cbf (Thu, 02 Feb 2017 17:30:58 GMT):
User User_1 added by cbf.

cbf (Thu, 02 Feb 2017 17:31:14 GMT):
ry

cbf (Thu, 02 Feb 2017 17:31:32 GMT):
ry

markparz (Thu, 02 Feb 2017 17:33:09 GMT):
Has joined the channel.

silliman (Thu, 02 Feb 2017 17:56:09 GMT):
Has joined the channel.

sstone1 (Thu, 02 Feb 2017 18:24:23 GMT):
Has joined the channel.

lehors (Thu, 02 Feb 2017 21:00:50 GMT):
Has joined the channel.

sbrakev (Thu, 02 Feb 2017 22:16:48 GMT):
Has joined the channel.

C0rWin (Fri, 03 Feb 2017 00:11:45 GMT):
Has joined the channel.

salmanbaset (Fri, 03 Feb 2017 01:20:47 GMT):
Has joined the channel.

JonathanTan (Fri, 03 Feb 2017 01:53:26 GMT):
Has joined the channel.

Ratnakar (Fri, 03 Feb 2017 02:51:38 GMT):
Has joined the channel.

SriramaSharma (Fri, 03 Feb 2017 03:22:50 GMT):
Has joined the channel.

didnotgetagoodname (Fri, 03 Feb 2017 03:57:41 GMT):
Has joined the channel.

grapebaba (Fri, 03 Feb 2017 06:27:22 GMT):
Has joined the channel.

dinesh.rivankar (Fri, 03 Feb 2017 06:50:13 GMT):
Has joined the channel.

frbrkoala (Fri, 03 Feb 2017 07:01:12 GMT):
Has joined the channel.

nvlasov (Fri, 03 Feb 2017 07:13:35 GMT):
Has joined the channel.

JonathanLevi (Fri, 03 Feb 2017 07:49:02 GMT):
Has joined the channel.

cca88 (Fri, 03 Feb 2017 08:22:02 GMT):
Has joined the channel.

dave.enyeart (Fri, 03 Feb 2017 11:21:47 GMT):
Has joined the channel.

dante (Fri, 03 Feb 2017 13:11:57 GMT):
Has joined the channel.

gormand (Fri, 03 Feb 2017 14:43:42 GMT):
Has joined the channel.

danacr (Fri, 03 Feb 2017 15:24:43 GMT):
Has joined the channel.

yacovm (Fri, 03 Feb 2017 15:26:07 GMT):
Has joined the channel.

tkuhrt (Fri, 03 Feb 2017 18:12:44 GMT):
Has joined the channel.

karkal (Fri, 03 Feb 2017 19:54:04 GMT):
Has joined the channel.

arner (Fri, 03 Feb 2017 20:44:35 GMT):
Has joined the channel.

TonyT (Fri, 03 Feb 2017 21:34:46 GMT):
Has joined the channel.

bfuentes@fr.ibm.com (Sat, 04 Feb 2017 09:20:26 GMT):
Has joined the channel.

nickgaski (Sun, 05 Feb 2017 03:22:23 GMT):
Has joined the channel.

schwentker2 (Sun, 05 Feb 2017 15:49:13 GMT):
Has joined the channel.

david.peyronnin (Mon, 06 Feb 2017 09:53:06 GMT):
Has joined the channel.

weeds (Mon, 06 Feb 2017 20:27:35 GMT):
Has joined the channel.

rameshthoomu (Mon, 06 Feb 2017 21:26:26 GMT):
Has joined the channel.

mgutala (Mon, 06 Feb 2017 21:39:03 GMT):
Has joined the channel.

mbaizan (Tue, 07 Feb 2017 07:49:32 GMT):
Has joined the channel.

vitaly.ilinykh (Tue, 07 Feb 2017 08:41:45 GMT):
Has joined the channel.

passkit (Tue, 07 Feb 2017 10:15:49 GMT):
Has joined the channel.

brianeno (Tue, 07 Feb 2017 10:50:19 GMT):
Has joined the channel.

XavierLepretre (Tue, 07 Feb 2017 14:30:32 GMT):
Has joined the channel.

ikruiper (Tue, 07 Feb 2017 14:52:32 GMT):
Has joined the channel.

ardashev120101 (Tue, 07 Feb 2017 14:59:31 GMT):
Has joined the channel.

mpage (Tue, 07 Feb 2017 15:22:01 GMT):
Has joined the channel.

mihaig (Tue, 07 Feb 2017 15:24:20 GMT):
Has joined the channel.

jjjjibm (Tue, 07 Feb 2017 15:51:18 GMT):
Has joined the channel.

mohamoud.egal (Tue, 07 Feb 2017 17:53:14 GMT):
Has joined the channel.

kell (Tue, 07 Feb 2017 18:00:59 GMT):
Has joined the channel.

binhn (Tue, 07 Feb 2017 19:00:58 GMT):
Has joined the channel.

mohamoud.egal (Tue, 07 Feb 2017 20:01:43 GMT):

Message Attachments

mohamoud.egal (Tue, 07 Feb 2017 20:02:04 GMT):

Message Attachments

patchpon (Wed, 08 Feb 2017 01:16:31 GMT):
Has joined the channel.

johnm (Wed, 08 Feb 2017 02:10:02 GMT):
Has joined the channel.

jojocheung (Wed, 08 Feb 2017 02:40:17 GMT):
Has joined the channel.

hshimo (Wed, 08 Feb 2017 03:41:13 GMT):
Has joined the channel.

ArulmuruganS (Wed, 08 Feb 2017 03:50:06 GMT):
Has joined the channel.

haidong (Wed, 08 Feb 2017 04:02:06 GMT):
Has joined the channel.

niteshsolanki (Wed, 08 Feb 2017 08:56:07 GMT):
Has joined the channel.

alexliu (Wed, 08 Feb 2017 09:00:33 GMT):
Has joined the channel.

oiakovlev (Wed, 08 Feb 2017 09:05:21 GMT):
Has joined the channel.

bur (Wed, 08 Feb 2017 13:29:41 GMT):
Has joined the channel.

jsalvachua (Wed, 08 Feb 2017 13:51:24 GMT):
Has joined the channel.

jadhavajay (Wed, 08 Feb 2017 14:01:07 GMT):
Has joined the channel.

cbf (Wed, 08 Feb 2017 15:08:24 GMT):
this is for v0.6?

rjones (Wed, 08 Feb 2017 16:36:39 GMT):
Has left the channel.

silliman (Wed, 08 Feb 2017 17:39:44 GMT):
@cbf @mohamoud.egal I worked with Mohamoud yesterday offline and this particular problem seemed to be some quirk in his Postman app.. creating a new tab in Postman and setting up the POST from scratch worked.

cbf (Wed, 08 Feb 2017 18:01:33 GMT):
oh cool

cbf (Wed, 08 Feb 2017 18:01:48 GMT):
would you mind documenting that question and self-answering on stack overflow?

cbf (Wed, 08 Feb 2017 18:02:19 GMT):
@silliman ^^

silliman (Wed, 08 Feb 2017 18:03:26 GMT):
I will delegate it to @mohamoud.egal ^^

StevenLanders (Wed, 08 Feb 2017 19:15:49 GMT):
Has joined the channel.

BlockchainSource (Thu, 09 Feb 2017 09:34:35 GMT):
Has joined the channel.

bravera (Thu, 09 Feb 2017 11:31:47 GMT):
Has joined the channel.

rahulhegde (Thu, 09 Feb 2017 14:51:45 GMT):
Has joined the channel.

gvlax (Thu, 09 Feb 2017 15:02:49 GMT):
Has joined the channel.

seanbarclay (Fri, 10 Feb 2017 11:57:17 GMT):
Has joined the channel.

PaulMoulson (Fri, 10 Feb 2017 18:53:04 GMT):
Has joined the channel.

mayerwa (Fri, 10 Feb 2017 19:49:34 GMT):
Has joined the channel.

Shroog AlSaquabi (Sun, 12 Feb 2017 21:52:49 GMT):
Has joined the channel.

murrekatt (Mon, 13 Feb 2017 12:40:22 GMT):
Has joined the channel.

s.narayanan (Mon, 13 Feb 2017 23:04:32 GMT):
Has joined the channel.

chenxl (Tue, 14 Feb 2017 03:01:26 GMT):
Has joined the channel.

jdockter (Tue, 14 Feb 2017 14:22:58 GMT):
Has joined the channel.

oiakovlev (Tue, 14 Feb 2017 23:32:16 GMT):
Hi here, have a question about Bluemix but have not found separate channel, so hope this one would be fine 🙂 If we want to restrict access to the peer url some how would it be possible with Bluemix via VPN setup for example? If so, I have not found such option in Bluemix dashboard - should it be separate request to Bluemix support?

niteshsolanki (Wed, 15 Feb 2017 06:00:45 GMT):
Hi. In v0.6 when the peer is started, tls.cert and tls.key files are generated in peer's directory. what these files are used for? is it used for tls-set up?

murrekatt (Wed, 15 Feb 2017 07:04:35 GMT):
are the terms non-validating and validating still in v1 or replaced by endorser and committer?

shabs (Wed, 15 Feb 2017 12:25:00 GMT):
Has joined the channel.

shabs (Wed, 15 Feb 2017 12:26:27 GMT):
hi folks, just tried to redeploy my hyperledger app after a small change and now it gives me this error : "Identity or token does not match.There was an error starting the demo. Please try again. Ensure you delete both the demo and the blockchain service" ....There is no good documentation on how to get it working again. Should I delete the whole project ?

jwolpert (Wed, 15 Feb 2017 13:34:44 GMT):
Has joined the channel.

ThomasB (Wed, 15 Feb 2017 23:20:56 GMT):
Has joined the channel.

ThomasB (Wed, 15 Feb 2017 23:24:09 GMT):
Hi! Newbie from the Ethereum world here! How does Hyperledger ensure that every piece of chaincode terminates? Am I missing something in the documentation?

ThomasB (Wed, 15 Feb 2017 23:25:39 GMT):

Message Attachments

UshKrish (Thu, 16 Feb 2017 02:29:47 GMT):
Has joined the channel.

yacovm (Thu, 16 Feb 2017 08:50:43 GMT):
It doesnt, @ThomasB

murrekatt (Thu, 16 Feb 2017 08:57:16 GMT):
@yacovm any discussions on how to potentially address it? thinking if chaincode e.g. only would get a certain timeslot to run or if there could be a cost related to time.

yacovm (Thu, 16 Feb 2017 09:05:53 GMT):
Well, the chaincode runs of the peers you select, right?

yacovm (Thu, 16 Feb 2017 09:05:53 GMT):
Well, the chaincode runs on the peers you select, right?

yacovm (Thu, 16 Feb 2017 09:06:07 GMT):
Not on all the peers of the fabric

murrekatt (Thu, 16 Feb 2017 09:21:03 GMT):
really?

murrekatt (Thu, 16 Feb 2017 09:21:18 GMT):
i understood all endorsing peers run the same chaincode

yacovm (Thu, 16 Feb 2017 09:32:25 GMT):
but, not every peer is an endorser for all chaincodes in the system

murrekatt (Thu, 16 Feb 2017 09:35:56 GMT):
yes that is right. still all endorsers for a chaincode runs the code

murrekatt (Thu, 16 Feb 2017 09:36:49 GMT):
or let's assume an endorsement policy that 2 of 3 must endorse...

murrekatt (Thu, 16 Feb 2017 09:37:24 GMT):
the client sends the proposal to two of the 3...gets back endorsements and thus sends that all to the orderer which results in delivery to committers

murrekatt (Thu, 16 Feb 2017 09:37:51 GMT):
i assume that in this case there are three committers too...will they all accept it and update the ledger?

murrekatt (Thu, 16 Feb 2017 09:38:13 GMT):
in this example i assume there are three parties each with an endorser and a committer

murrekatt (Thu, 16 Feb 2017 09:38:43 GMT):
so one of the three never ran the code but trust the others per endorsement policy that it's fine and thus can commit

murrekatt (Thu, 16 Feb 2017 09:40:22 GMT):
so that sounds like you are right that only "selected" ones run it :)

murrekatt (Thu, 16 Feb 2017 09:40:51 GMT):
still the question remains if there are plans how to mitigate a potential infinite loop in chaincode?

wutongtree (Thu, 16 Feb 2017 10:07:18 GMT):
Has joined the channel.

alviontaran (Thu, 16 Feb 2017 16:22:54 GMT):
Has joined the channel.

tiennv (Thu, 16 Feb 2017 16:29:01 GMT):
Has joined the channel.

ThomasB (Thu, 16 Feb 2017 21:32:07 GMT):
I see, so you could have a denial-of-service that way. But the "attacker" would only be able to seize up a chain on which they had chain code privileges. (Which I'd presume would be rare.)

ylsGit (Fri, 17 Feb 2017 02:29:51 GMT):
Has joined the channel.

RajkumarNatarajan (Fri, 17 Feb 2017 04:00:29 GMT):
Has joined the channel.

passkit (Fri, 17 Feb 2017 04:38:37 GMT):
I'm having difficulty understanding how one would create a resilient solo orderer. If the orderer crashes or restarts, how will it be aware of channels that have been created after it was initially provisioned? Is there a way to pass multiple genesis blocks back to an orderer? Or do the peers handle this automatically?

ecn (Fri, 17 Feb 2017 09:42:53 GMT):
Has joined the channel.

awa (Sat, 18 Feb 2017 10:41:43 GMT):
Has joined the channel.

awa (Sat, 18 Feb 2017 10:45:35 GMT):
Hi guys, what's the main difference between a peer and a non validating-peer ? can you explain it in your documentation ? you just talk about peer and something like validating node but not exactly two sort of peers.

awa (Sat, 18 Feb 2017 10:45:35 GMT):
Hi guys, what's the main difference between a validating peer and a non validating-peer ? can you explain it in your documentation ? you just talk about peer and something like validating node but not exactly two sort of peers.

angel-ibm (Sat, 18 Feb 2017 21:32:52 GMT):
Has joined the channel.

weeds (Sun, 19 Feb 2017 14:46:19 GMT):
@awa Validating peer: A network node that runs the consensus protocol for the network to validate transactions and maintain the ledger. Validated transactions are appended to the ledger, in blocks. If a transaction fails consensus, it is purged from the block and therefore, not written to the ledger. A validating peer (VP) has authority to deploy, invoke and query chaincode

weeds (Sun, 19 Feb 2017 14:46:31 GMT):
@awa Non-validating peer: A network node that functions as a proxy, connecting transactors to validating peers. A non-validating peer (NVP) forwards invocation requests to its connected validating peer (VP). It also hosts the event stream server and the REST service.

weeds (Sun, 19 Feb 2017 14:46:54 GMT):
This is for the version 0.6 version @awa... so be aware some of this is going to change somewhat with the version 1.0 design

weeds (Sun, 19 Feb 2017 14:49:38 GMT):
@kostas Kostas- can you answer passkit's question up above please

kostas (Sun, 19 Feb 2017 14:49:39 GMT):
Has joined the channel.

kostas (Sun, 19 Feb 2017 16:00:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2BEhEJMJ4LCpxAyYy) @passkit Whenever a channel is created, a ledger corresponding to the channel is created locally on the solo orderer. When the orderer restarts, it loads all the local ledgers, and is therefore aware of all channels that were created past its initial provision. This is a relatively easy case, since by definition running the solo orderer means you only have one orderer instance around. Without it, no channels can be created. So when the solo orderer comes back online, it knows that its local ledgers correspond to all existing channels. When you're dealing with a distributed ordering service, as is the case for example with the Kafka-based implementation, things get slightly more complex, because now _new channels may have been created during an orderer's downtime_. This is handled as follows: All channel creations are persisted in the system chain. All orderers know about this chain -- they are bootstrapped with it. Upon restarting, the orderer replays that system chain from where it left off, reads any new channel creation messages that were posted there during its downtime, and creates the respective local ledger copies. It then syncs these copies up, and is able to handle broadcast/deliver requests for those channels. Let me know if you have more questions. /cc @weeds

weeds (Sun, 19 Feb 2017 16:46:14 GMT):
Thanks Kostas!

passkit (Sun, 19 Feb 2017 20:06:04 GMT):
Thanks Kostas, that certainly helps. My challenge I guess is how to ensure resilience of the solo ordered. What if the (cloud) machine running the ordered crashes and/or the persistent storage is compromised? What would be the consequence of losing a solo orderer and what should a sys admin be doing to mitigate this?

kostas (Sun, 19 Feb 2017 20:17:19 GMT):
@passkit The solo orderer is only useful for development, when you want to test the end-to-end path. You should _not_ be using it in production, so trying to figure out ways to ensure its resilience is not a useful exercise. (To answer the question: losing the solo orderer means no broadcast/deliver/channel-creation/channel-reconfig requests go through, i.e. the network is effectively paralyzed. A sysadmin could probably group a dozen solo orderers behind a load balancer, have them replicating each other in real time, and point the clients to the load balancer. But as I said earlier, this exercise is not useful. That's what the Kafka-based implementation is for.)

passkit (Sun, 19 Feb 2017 21:09:11 GMT):
Ok - but is the Kafka ready for V1? The comments in the config files suggest not.

GoodFaith (Sun, 19 Feb 2017 21:12:07 GMT):
Has joined the channel.

kostas (Sun, 19 Feb 2017 21:12:17 GMT):
@passkit: Which comments specifically? The Kafka implementation is ready for v1, yes.

ThomasB (Sun, 19 Feb 2017 21:25:05 GMT):
If I have an application with say seven peers and a few hundred users over three orgs, could I give the users certificates and use them within endorsement policies?

ThomasB (Sun, 19 Feb 2017 21:52:53 GMT):
Also, under the Fabric 1 design, does my transaction need further validation after it has been ordered by the orderer? What does the committer peer (peers?) do after the atomic broadcast?

vdods (Mon, 20 Feb 2017 00:55:24 GMT):
Has joined the channel.

vdods (Mon, 20 Feb 2017 01:08:56 GMT):
What is the relationship between the key/value store available in ChaincodeStubInterface and the (proposed?) rich query DB? Will they both be available in parallel, or is the rich query DB implemented on top of the key/value store?

vdods (Mon, 20 Feb 2017 01:09:01 GMT):
or something else entirely

mastersingh24 (Mon, 20 Feb 2017 09:27:22 GMT):
Has joined the channel.

marcusvcs (Mon, 20 Feb 2017 14:24:18 GMT):
Has joined the channel.

AdnanC (Mon, 20 Feb 2017 16:50:21 GMT):
Has joined the channel.

marcusvcs (Mon, 20 Feb 2017 18:48:10 GMT):
i am reading https://github.com/hyperledger-archives/fabric/wiki/Next-Consensus-Architecture-Proposal, section 6, about confidentiality in chaincode. It says the on a confidential chaincode, it is possible to only the endorsers see the plaintext of the transaction payload. Is this document up-to-date? In http://hyperledger-fabric.readthedocs.io/en/latest I couldn't find that information

marcusvcs (Mon, 20 Feb 2017 18:48:10 GMT):
i am reading https://github.com/hyperledger-archives/fabric/wiki/Next-Consensus-Architecture-Proposal, section 6, about confidentiality in chaincode. It says that on a confidential chaincode, it is possible to only the endorsers see the plaintext of the transaction payload. Is this document up-to-date? In http://hyperledger-fabric.readthedocs.io/en/latest I couldn't find that information

theophoric (Mon, 20 Feb 2017 19:00:44 GMT):
Has joined the channel.

theophoric (Mon, 20 Feb 2017 19:06:37 GMT):
On a related note, is there an expectation for when endorsers will be able to execute endorsement logic beyond "does this piece of code terminate"? e.g. inspecting the contents of the transaction, payload, and current chaincode state before signing the proposal?

theophoric (Mon, 20 Feb 2017 19:06:51 GMT):
as per: > the peer forwards internally tran-proposal (and possibly tx) to the part of its (peer's) logic that endorses a transaction, referred to as endorsing logic. By default, endorsing logic at a peer accepts the tran-proposal and simply signs the tran-proposal. However, endorsing logic may interpret arbitrary functionality, to, e.g., interact with legacy systems with tran-proposal and tx as inputs to reach the decision whether to endorse a transaction or not.

OlufAndrews (Mon, 20 Feb 2017 19:51:03 GMT):
Has joined the channel.

weeds (Tue, 21 Feb 2017 02:07:23 GMT):
@smithbk Can you answer @ThomasB his questions up above regarding the user certificates? Thanks! Also @ThomasB for your 2nd question- VSCC sits at the committer. It has two functions- 1) it will make sure endorsement is forced (ie if you specify in your policy 5 out of 5 endorsers must sign- it will validate 5 out of 5 signed). and 2) validates read/write set is consistent before writing into the ledger.

smithbk (Tue, 21 Feb 2017 02:07:23 GMT):
Has joined the channel.

weeds (Tue, 21 Feb 2017 02:10:26 GMT):
@vdods The ledger spec actually does a good job explaining some of this. https://jira.hyperledger.org/browse/FAB-758 is a good place to look for this.

weeds (Tue, 21 Feb 2017 02:11:10 GMT):
@marcusvcs We are still in process of updating http://hyperledger-fabric.readthedocs.io/en/latest

weeds (Tue, 21 Feb 2017 02:17:49 GMT):
@theophoric Hopefully this might answer your question. If not, let me know. Let's say application sends transaction proposal. in the proposal response, there will be several fields - endorsement has yes/no vote, signature, result of the transaction is verified (ie I believe it's the hash that is verified to be similar)... This gets sent to the orderer,.. and utlimately gets sent to the committer which I indicated above does a series of functions based on questions @ThomasB asked.

weeds (Tue, 21 Feb 2017 02:21:12 GMT):
I also want to suggest there is a playback channel where there is some good information produced by the developers of fabric on youtube. go to the fabric-playbacks channel to get a link and you should be able to find the other videos

smithbk (Tue, 21 Feb 2017 11:18:34 GMT):
@ThomasB Yes, the protocol allows you to specify an end user's identity in an endorsement policy. See the comments in fabric/protos/common/msp_principal.proto pertaining to "ByIdentity". I'll have to defer to @aso regarding if the policy parser already supports the ByIdentity and with what syntax. I don't see it listed in fabric/docs/endorsement_policies.md so I'm guessing it isn't there yet.

aso (Tue, 21 Feb 2017 11:18:34 GMT):
Has joined the channel.

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these are external projects, but it is a bit of a stretch to expect adopters to do all of the legwork required to gain the capability to deploy a redundant network across multiple physical hosts. From a business perspective, until I can demonstrate that the network is reliable, resilient, secure, scalable and audit-able, I cannot proceed with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are Independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a redundant network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and audit-able, I cannot proceed with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a redundant network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and audit-able, I cannot proceed with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a resilient network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and audit-able, I cannot proceed with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a resilient network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and auditable, I cannot proceed with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a resilient network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and auditable, I cannot justify proceeding with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:38:11 GMT):
@kostas I may have been looking at an older revision. However, looking through the tests and other available examples, they all involve running multiple kafta and zookeeper containers on a single machine. I appreciate that these platforms are independent of hyperledger, but it is a bit of a stretch to expect Fabric adopters to do all of the legwork required to gain the capability to deploy a resilient network across multiple physical hosts. From a business perspective, until I can demonstrate that a Fabric network is reliable, resilient, secure, scalable and auditable, I cannot justify proceeding with developing applications on top of the platform. Is there anything available that can accelerate the process of getting a secure, multi-host network, communicating over TLS so that we can test resilience, capacity and ease of management, in order to make a decision as to whether or not Fabric is the right platform to invest in?

passkit (Tue, 21 Feb 2017 12:51:56 GMT):
As a background - these requirements are deal-breakers for the majority commercial clients. We will be required to meet PCI, ISO 27001 standards before being able to process any live transactions.

weeds (Tue, 21 Feb 2017 13:04:10 GMT):
@passkit We already have a lot of experience running with resilliency, security auditability and deep testing, backup/restore capabilities,etc,.. we have quite a few people already running in production. I suggest the person to reach out to and talk to is @angel-ibm

passkit (Tue, 21 Feb 2017 13:05:58 GMT):
thanks @weeds - it is best to dm @angel-ibm here?

weeds (Tue, 21 Feb 2017 13:07:07 GMT):
i would send him a direct message on rocket chat

kostas (Tue, 21 Feb 2017 13:09:20 GMT):
@passkit: Thanks for the feedback. Running Kafka brokers and ZooKeeper nodes on the same machine is _not_ how we operate in production. We only do this in the Docker Compose configurations you see for testing. The ordering service is to be run in a distributed manner, across several different machines.

kostas (Tue, 21 Feb 2017 13:09:20 GMT):
@passkit: Thanks for the feedback. Running Kafka brokers and ZooKeeper nodes on the same machine is _not_ how we operate in production. We only do this in the Docker Compose configurations you see for testing. The ordering service is to be run (and _can_ already run) in a distributed manner, across different machines.

passkit (Tue, 21 Feb 2017 13:11:06 GMT):
@kostas - I think we all recognise that - but the challenge I face is in deploying a basic "production worthy" environment. The learning curve without documentation is currently very steep.

kostas (Tue, 21 Feb 2017 13:13:22 GMT):
@passkit: You are absolutely right. We are working to address the documentation part. I will @-you when we have this ready.

passkit (Tue, 21 Feb 2017 13:13:52 GMT):
Thanks - truly appreciate it

weeds (Tue, 21 Feb 2017 20:18:42 GMT):
I just realized @passkit it's @angelnu not @angel-ibm that has the information

angelnu (Tue, 21 Feb 2017 20:18:42 GMT):
Has joined the channel.

angelnu (Tue, 21 Feb 2017 20:49:40 GMT):
Hi @passkit Yes, we are going through that to deploy the right setup with all the values/requirements you expressed in our cloud

passkit (Tue, 21 Feb 2017 20:54:51 GMT):
That's great to hear. Do you have any config files that you are able to share. Specifically, with regard a Kafka backed orderer network. Thanks.

lohitkrishnan (Wed, 22 Feb 2017 13:47:12 GMT):
Has joined the channel.

gomsb143 (Wed, 22 Feb 2017 15:22:31 GMT):
Has joined the channel.

psa (Wed, 22 Feb 2017 15:56:46 GMT):
Has joined the channel.

stanacton (Wed, 22 Feb 2017 16:20:45 GMT):
Has joined the channel.

stanacton (Wed, 22 Feb 2017 17:29:31 GMT):
Hello Gang. I have a question. Can I encrypt data in fabric so that 1) it can be processed by some chaincode 2) it can be read by party A and party B and not Party C 3) where all nodes have the same data? or can this only be done with Channels in V1?

vdods (Wed, 22 Feb 2017 20:57:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PuGA3NFXh4h2yDqeA) @weeds I think I may not have communicated what I'm looking for. I grepped for a while in the fabric repo and found some usage of this couchDB rich query in the marbles02 example. I guess I skimmed right over GetQueryResult when I read interfaces.go. The comments documentation in interfaces.go is a good starting point -- is there more complete documentation for interfaces.go somewhere?

padmaja (Thu, 23 Feb 2017 11:25:16 GMT):
Has joined the channel.

aambati (Thu, 23 Feb 2017 15:15:13 GMT):
Has joined the channel.

theophoric (Thu, 23 Feb 2017 20:59:02 GMT):
Out of curiosity, what is the motivation for moving from rocks to level?

RangaOnkaram (Fri, 24 Feb 2017 14:48:06 GMT):
Has joined the channel.

ray (Fri, 24 Feb 2017 17:10:16 GMT):
Has joined the channel.

albrandt (Fri, 24 Feb 2017 17:18:15 GMT):
Has joined the channel.

joacomoreno (Fri, 24 Feb 2017 17:54:24 GMT):
Has joined the channel.

harrijk (Fri, 24 Feb 2017 20:15:04 GMT):
Has joined the channel.

vdods (Fri, 24 Feb 2017 23:34:10 GMT):
@theophoric As I understand, so that "rich DB queries" can be made, meaning document-based queries, instead of only based on the keys of the key/value store.

theophoric (Fri, 24 Feb 2017 23:34:48 GMT):
But that's going in the opposite direction

theophoric (Fri, 24 Feb 2017 23:35:19 GMT):
I've done a little more reading up on the topic -- seems like there are going to be simple k/v as well as document-based interfaces for value store?

vdods (Fri, 24 Feb 2017 23:35:28 GMT):
Sorry, I read "level" as "couch"

theophoric (Fri, 24 Feb 2017 23:35:31 GMT):
and then some schema-like things down the line ?

theophoric (Fri, 24 Feb 2017 23:35:48 GMT):
yeah -- rocks vs level as the default

theophoric (Fri, 24 Feb 2017 23:36:45 GMT):
can rocks be embedded ?

vdods (Fri, 24 Feb 2017 23:36:46 GMT):
Right, I'm just learning up on this part of HLF 1.0 as well -- as far as I can tell, the k/v store remains, and if the underlying DB is couch (or maybe others?), then you can issue "rich queries"

vdods (Fri, 24 Feb 2017 23:37:04 GMT):
I don't know anything about rocks, unfortunately.

vdods (Fri, 24 Feb 2017 23:39:42 GMT):
I'm curious -- why prefer rocks or level? (I actually don't know, and I'm curious if there's some facility/design consideration I'd find interesting)

jfiscella (Sat, 25 Feb 2017 05:43:51 GMT):
Has joined the channel.

weeds (Sat, 25 Feb 2017 22:20:29 GMT):
From Rocksdb versus level, what I recall the original discussion was that there were some unusual legal requirements that concerned some various startups and companies with utilizing rocksdb.

weeds (Sat, 25 Feb 2017 22:20:53 GMT):
@theophoric see above

weeds (Sat, 25 Feb 2017 22:21:08 GMT):
I am not a lawyer so I can't comment what the particular details were that were so concerning.

weeds (Sat, 25 Feb 2017 22:32:39 GMT):
@nickgaski thought you might like to see the documentation comments from passkit up above.

weeds (Sat, 25 Feb 2017 22:33:59 GMT):
@vdods you are correct the K/V store does remain with level db and the "rich queries" comes with couchdb.. also you can plug in other databases if you so desire, provided interfaces are worked.

tennenjl (Sat, 25 Feb 2017 22:34:25 GMT):
Has joined the channel.

vdods (Sat, 25 Feb 2017 22:39:26 GMT):
@weeds Do you happen to know the status of the "DB simulation result set" spoken of in the pptx attachment at https://jira.hyperledger.org/browse/FAB-758 ?

vdods (Sat, 25 Feb 2017 22:40:04 GMT):
I.e. is it possible to simulate a transaction without modifying the "real" ledger DB?

weeds (Sat, 25 Feb 2017 22:41:45 GMT):
i assume you are utilizing Master? @dave.enyeart can you answer the question for @vdods? I do know that master had a series of changes and now works end to end (minus the SDK). They are planing on posting some new docker images for people to utilize as well as some new instructions in the documentation sometime early or mid next week.

vdods (Sat, 25 Feb 2017 22:41:49 GMT):
it seems like this would be necessary for the orderer to function at all in a couchDB supported ledger

vdods (Sat, 25 Feb 2017 22:42:54 GMT):
Oh sweet. I am using master, though really I'm still getting spun up on 1.0, and if there's some stable branch that has some working subset of fabric features, maybe I should use that

weeds (Sat, 25 Feb 2017 22:43:00 GMT):
i thinnk the DB simulation result set is there, but again one of the individuals I work with is @dave.enyeart or @manish-sethi who is better equipped to answer the question

manish-sethi (Sat, 25 Feb 2017 22:43:00 GMT):
Has joined the channel.

vdods (Sat, 25 Feb 2017 22:43:09 GMT):
I am looking to use the node SDK

vdods (Sat, 25 Feb 2017 22:43:17 GMT):
Thank you

weeds (Sat, 25 Feb 2017 22:43:46 GMT):
Node SDK i hear is updating some things relative to making sure all the cert material is working- again suspect they will get that fixed in next day or two.

weeds (Sat, 25 Feb 2017 22:43:50 GMT):
Same with Java SDK.

dave.enyeart (Sun, 26 Feb 2017 02:14:27 GMT):
@vdods @weeds Transaction simulation at endorsing peer(s) results in a read/write set and is returned to client application. No updates to ledger are made yet. Client application may choose to not submit the transaction results for ordering/commitment. For example if the chaincode does reads (queries) only, the client would likely not submit it to ordering since there are no writes to commit. If the chaincode did reads and writes, the read/write set has proposed updates to ledger that the client application can submit for ordering/commitment. The charts at https://jira.hyperledger.org/browse/FAB-758 and the ledger doc at https://gerrit.hyperledger.org/r/#/c/6387/7/docs/data_model.md are in line with current master function.

dave.enyeart (Sun, 26 Feb 2017 02:19:57 GMT):
You are correct - RocksDB was replaced with LevelDB due to legal reasons. LevelDB is the default embedded key/value store. All the 'core' chaincode operations work equivalent regardless of LevelDB or CouchDB (key-based lookups, range queries, composite key queries). You have the option to switch to CouchDB if you want to additionally leverage the new rich query capabilities.

dave.enyeart (Sun, 26 Feb 2017 02:19:57 GMT):
You are correct - RocksDB was replaced with LevelDB due to legal reasons. LevelDB is the default embedded key/value store. All the 'core' chaincode operations work equivalent regardless of LevelDB or CouchDB (key-based lookups, range queries, composite key queries). You have the option to switch to CouchDB if your data is JSON-based and you want to additionally leverage the new rich query capabilities.

bh4rtp (Mon, 27 Feb 2017 00:28:11 GMT):
Has joined the channel.

bh4rtp (Mon, 27 Feb 2017 00:51:56 GMT):
I am a newbie of Fabric. And I just made fabric and fabric-ca using the master branch yesterday. There is a dock-compose.yml file in the test directory. Run docker-compose up and three nodes will be started, a test_vp_1, a test_orderer_1 and a test_ca_1. Can anyone tell me an example to do testing by hand including deploy, invoke and query?

bh4rtp (Mon, 27 Feb 2017 03:32:23 GMT):
chaincode_example02 is used to test. run command CORE_LOGGING_LEVEL=debug peer chaincode deploy -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"args": ["init","a","100", "b", "200"]}' from $GOPATH/src/github.com/hyperledger/fabric under host. it failed with an error "2017-02-26 19:27:03.847 PST [SW_BCCSP] createKeyStoreIfNotExists -> INFO 001 KeyStore path [msp/sampleconfig/keystore] missing [false]: []"

bh4rtp (Mon, 27 Feb 2017 03:50:41 GMT):
And treat http://127.0.0.1:7050/network/peers as bogus greeting. Does anyone succeed in doing some tests with the same fabric version?

PushpalathaHiremath (Mon, 27 Feb 2017 07:15:37 GMT):
Has joined the channel.

PushpalathaHiremath (Mon, 27 Feb 2017 07:18:04 GMT):
HI All, What's the importance of these handlers? openchainDB.BlockchainCF = cfHandlers[1] openchainDB.StateCF = cfHandlers[2] openchainDB.StateDeltaCF = cfHandlers[3] openchainDB.IndexesCF = cfHandlers[4] openchainDB.PersistCF = cfHandlers[5] Is there a way that using these handlers, we store data to the peer local and which is not shared across ledger?

hyp0th3rmi4 (Mon, 27 Feb 2017 08:02:25 GMT):
Has joined the channel.

sitomani (Mon, 27 Feb 2017 12:45:00 GMT):
Has joined the channel.

latitiah (Mon, 27 Feb 2017 13:14:43 GMT):
Has joined the channel.

sitomani (Mon, 27 Feb 2017 13:15:07 GMT):
another green fabricator here - just trying to get the boilerplate example to run (from https://github.com/IBM-Blockchain/fabric-boilerplate) - I believe I've managed to follow the getting started guide but docker-compose up results in an error: ```ERROR: for client Cannot start service client: driver failed programming external connectivity on endpoint fabricboilerplate_client_1 (f9fa603130f1ddf9d38d0e93ea58a82e3e7df127ed03d18c52c1d7d34aaefd43): Error starting userland proxy: Bind for 0.0.0.0:49153 failed: port is already allocated````

sitomani (Mon, 27 Feb 2017 13:18:02 GMT):
Adjusting client/src/Dockerfile EXPOSE to another port won't help, and it seems that making sure that there's no-one at port 49153 does not do the trick either. Is anyone else seeing this with the fabric-boilerplate example?

weeds (Mon, 27 Feb 2017 13:33:18 GMT):
@bh4rtp @Ratnakar Ratnakar- can you help please with the question from bh4rtp? Also let's make sure we get out the latest images possibly as I'm not sure if he/she is trying to use the hackfest images.

weeds (Mon, 27 Feb 2017 13:33:55 GMT):
And maybe @ratnakar can also help @sitomani

sitomani (Mon, 27 Feb 2017 13:40:06 GMT):
@weeds I got past the port issue, just reconfigured the port to a free one in both docker-compose.yml and client's Dockerfile.

weeds (Mon, 27 Feb 2017 13:48:17 GMT):
ok great @sitomani

sitomani (Mon, 27 Feb 2017 13:51:14 GMT):
@weeds I was looking at the boilerplate project some time ago and it has changed quite a bit since. Is there any newbie pointers to look at besides the readme.md if I'd like to get a quickstart into it?

weeds (Mon, 27 Feb 2017 13:59:41 GMT):
@nickgaski I know Nick is working on that already. For version 1.0 they have later docker/compose pieces and he was going to update the instructions. I don't know if he's submitted and got it merged yet. he may be able to tell us.

weeds (Mon, 27 Feb 2017 13:59:54 GMT):
@sitomani ^^

bh4rtp (Mon, 27 Feb 2017 14:03:40 GMT):
@weeds i use my own built images from the main branch. and i have found the answer. the path should relative to GOPATH and this variable should be set correctly.

Ratnakar (Mon, 27 Feb 2017 14:04:14 GMT):
@weeds Sure Sharon. @bh4rtp, I have tested the End-to-End flow based on chaincode_example02, docker compose and scripts are available in this repository https://github.com/ratnakar-asara/e2e (probably they will be moved to fabric/examples/e2e at some point of time). You can build your images to use the docker-compose file available or you can use the below stable images and change your docker-compose file to point to those images. rameshthoomu/fabric-orderer-x86_64:x86_64-0.7.0-snapshot-9a09ac0 rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-9a09ac0 rameshthoomu/fabric-ccenv-x86_64:x86_64-0.7.0-snapshot-9a09ac0 This example does the below: * Creates two organizations with each Organization containing two peers ( with an anchor peer from each Org ) * One orderer service. * create a channel * Join all the peers to the channel * Install chaincode on two peers * Instantiate the chaincode. * Invoke transaction * Query on chaincode.

varadatibm (Mon, 27 Feb 2017 14:24:46 GMT):
Has joined the channel.

sitomani (Mon, 27 Feb 2017 14:25:37 GMT):
Another question: Not sure if this is expected or indication of a problem, but I'm having these prints to the log: ```2017/02/27 14:17:48 grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: write tcp 172.17.0.4:7051->172.17.0.6:38704: write: broken pipe"```

bh4rtp (Mon, 27 Feb 2017 14:28:25 GMT):
@Ratnakar thank you. your instruction is very useful to me.

vbortnik (Mon, 27 Feb 2017 15:21:37 GMT):
Has joined the channel.

suryalanka (Mon, 27 Feb 2017 15:38:25 GMT):
Has joined the channel.

jimthematrix (Mon, 27 Feb 2017 17:04:39 GMT):
Has joined the channel.

foobarometer (Mon, 27 Feb 2017 17:12:20 GMT):
Has joined the channel.

foobarometer (Mon, 27 Feb 2017 17:12:47 GMT):
Is there a way to copy different aspects of a chain code (I.e. World state, keys, blocks) from one chain code to another?

weeds (Mon, 27 Feb 2017 17:37:07 GMT):
@ratnakar @bmos299 how often do you expect the docker-compose/docker images to be updated this week?

bmos299 (Mon, 27 Feb 2017 17:37:07 GMT):
Has joined the channel.

weeds (Mon, 27 Feb 2017 17:37:16 GMT):
and where will we get notification of it?

weeds (Mon, 27 Feb 2017 17:39:28 GMT):
which channel- will you post it on this channel or some other channel?

simsc (Mon, 27 Feb 2017 18:39:02 GMT):
Has joined the channel.

tennenjl (Mon, 27 Feb 2017 19:12:49 GMT):
Hi, I'm reading through the V1 architecture and I have a "dummy" question. For each channel that gets created, does that mean that there will be a separate ledger with it's own order of transactions for each channel?

yacovm (Mon, 27 Feb 2017 20:08:29 GMT):
yes

tennenjl (Mon, 27 Feb 2017 20:54:59 GMT):
@yacovm Thanks, so is also safe to assume that there would also be a separate key value store as well for each channel? Thanks again and my apologies for the basic questions.

yacovm (Mon, 27 Feb 2017 20:56:06 GMT):
you mean a separate instance? I don't think so. Not sure if there is such a plan though... @dave.enyeart Do you know something about it? Also you can ask in #fabric-ledger

dave.enyeart (Mon, 27 Feb 2017 21:19:49 GMT):
@tennenjl logically you can think of it as one key/value store per channel. physically we use a single LevelDB, in order to conserve overhead when there are many channels

dave.enyeart (Mon, 27 Feb 2017 21:19:49 GMT):
@tennenjl logically you can think of it as one key/value store per channel. physically we use a single LevelDB, in order to conserve overhead when there are many channels (keys are still segregated though, using a channelId qualifier)

tennenjl (Mon, 27 Feb 2017 21:21:06 GMT):
thanks @dave.enyeart That makes sense. Appreciate it!

tennenjl (Mon, 27 Feb 2017 21:27:39 GMT):
thanks! @yacovm

bkvellanki (Mon, 27 Feb 2017 21:53:05 GMT):
Has joined the channel.

bh4rtp (Tue, 28 Feb 2017 00:37:10 GMT):
@yacovm @Ratnakar i found the testing instructions can not exactly applied to my built case a week ago. maybe the source codes change frequently. and most of all, my knowledge about fabric is pool. is there a suitable instruction to do the simplest example for github.com/hyperledeger/fabric/test/docker-compose.yml (https://github.com/hyperledger/fabric/blob/master/test/docker-compose.yml) use-case? i really do not want to bypass my question without any successful feeling:)

mohamoud.egal (Tue, 28 Feb 2017 03:27:06 GMT):
I'm going through the Fabric-Composer getting started tutorial and ran into an error npm run command. It was supposed to return "available via npm run-script: submitTransaction", but it didn't.

mohamoud.egal (Tue, 28 Feb 2017 03:27:43 GMT):

Message Attachments

mohamoud.egal (Tue, 28 Feb 2017 03:28:06 GMT):

Message Attachments

mohamoud.egal (Tue, 28 Feb 2017 03:28:40 GMT):
I also don't know what the "getting started" directory is that the directions are referring to. Please advise.

bravera (Tue, 28 Feb 2017 09:32:40 GMT):
@mohamoud.egal Have you completed these instructions? -> https://fabric-composer.github.io/tasks/prerequisites.html

bravera (Tue, 28 Feb 2017 09:33:15 GMT):
This should get you set up with the 'getting started' directory you are missing

bravera (Tue, 28 Feb 2017 11:39:52 GMT):
Can anyone point me at some docs that discuss how security is (will be) implemented when querying state and ledger databases? Looks like APIs and will require authentication and remote connections will not be allowed, but I am interested in how data that is private to a channel will be protected from queries coming from unauthorised parties.

Ratnakar (Tue, 28 Feb 2017 14:17:14 GMT):
@bh4rtp I have submitted a patch https://gerrit.hyperledger.org/r/#/c/6607 for a basic End-to-End flow. @bmos299 @nickgaski and myself would be working on a README. you can try this patch on latest code. all you need to do is generate the images on latest code using `make peer-docker orderer-docker` and then go to examples folder to execute the script ``` cd fabric/examples/e2e_cli ./network_setup up [optional-channel-name] ```

Ratnakar (Tue, 28 Feb 2017 14:17:14 GMT):
@bh4rtp I have submitted a patch https://gerrit.hyperledger.org/r/#/c/6607 for a basic End-to-End flow. @bmos299 @nickgaski and myself would be working on a README. you can try this patch on latest code. all you need to do is generate the images on latest code using `make peer-docker orderer-docker` and then go to examples folder to execute the script (channel name is optional, a default channel mychannel would create if you don't supply one) ``` cd fabric/examples/e2e_cli ./network_setup up [optional-channel-name] ```

Ratnakar (Tue, 28 Feb 2017 14:17:14 GMT):
@bh4rtp I have submitted a patch https://gerrit.hyperledger.org/r/#/c/6607 for a basic End-to-End flow. @bmos299 @nickgaski and myself would be working on a README. you can try this patch on latest code. all you need to do is generate the images on latest code using `make peer-docker orderer-docker` and then go to examples folder to execute the script (channel name is optional, a default channel mychannel would be created if you don't supply one) ``` cd fabric/examples/e2e_cli ./network_setup up [optional-channel-name] ```

bh4rtp (Tue, 28 Feb 2017 14:33:38 GMT):
@Ratnakar great! i really appreciate your codes.

bmos299 (Tue, 28 Feb 2017 14:39:11 GMT):
@bh4rtp please give us your feedback on the flow.

kletkeman (Tue, 28 Feb 2017 15:20:30 GMT):
Has joined the channel.

mohamoud.egal (Tue, 28 Feb 2017 15:25:05 GMT):
@bravera I followed those instructions and successfully ran "npm run". However, when I used the command "npm run submitTransaction" command it gave me this following error.

mohamoud.egal (Tue, 28 Feb 2017 15:25:18 GMT):

Message Attachments

bh4rtp (Tue, 28 Feb 2017 15:38:26 GMT):
@bmos299 i am testing. frankly, the documentation seems to be not so much clear for beginners. i suggest that it should provide step by step instructions as a get started first. and then explain further details. i am not so clear what your codes will do. anywhere, you give us a good example to learn fabric. thank you.

bh4rtp (Tue, 28 Feb 2017 15:38:26 GMT):
@bmos299 i am testing. frankly, the documentation seems to be not so much clear for beginners. i suggest that it should provide step by step instructions as a get started first. and then explain further details. i am not so clear what your codes will do. anyway, you give us a good example to learn fabric. thank you.

bh4rtp (Tue, 28 Feb 2017 15:38:26 GMT):
@bmos299 i am testing. frankly, the documentation seems to be not so much clear for beginners. i suggest that it should provide step by step instructions as a get started first. and then explain further details. i am not so clear what your codes will do. anyway, you give us a good example to learn fabric. thank you.

bh4rtp (Tue, 28 Feb 2017 15:54:35 GMT):
@bmos299 i am sorry i have misunderstood you. you just wrote the codes to do the test just in a script file, didn't you? really really good job. it worth time researching your implementations.

toddinpal (Tue, 28 Feb 2017 16:05:32 GMT):
Has joined the channel.

toddinpal (Tue, 28 Feb 2017 16:05:43 GMT):
In the new fabric 1.0 model, where/how are Byzantine faults handled? Specifically who or where is a faulty endorser detected? In other words if an endorser presents a different ReadWriteSet from other endorsers, how/where is that caught?

nickgaski (Tue, 28 Feb 2017 16:19:10 GMT):
@toddinpal the application/sdk will consume the propsal responses from the endorsers after transaction execution. They kick back the read/write sets and a YES/NO for endorsement and these payloads are compared. The tx then goes to ordering with one read/write set and the signatures of the endorsing peers.

toddinpal (Tue, 28 Feb 2017 16:22:04 GMT):
So the responsibility falls on the SDK to verify that all the endorsers return identical read/write sets and if they don't to fail the proposal?

nickgaski (Tue, 28 Feb 2017 16:27:15 GMT):
@jimthematrix ^^ - that's my understanding. However, there are more checks and balances. For instance, if the transaction was passed along but did not have the requisite number of signatures (endorsements), then it will fail at validation time. Also, if the state of the key-value pairs used for the inputs (read set) have been altered by any other ransaction between the time of execution and commitment, then it will also fail.

toddinpal (Tue, 28 Feb 2017 16:30:30 GMT):
@nickgaski Right, I'm aware of the endorsement policies and validation that concurrent updates haven't happened. The new model throws me for a little bit of a loop in that most blockchains have consensus around the state of the world, i.e., top hash of merkel tree, etc. I'm not seeing that in the current fabric model.

bh4rtp (Tue, 28 Feb 2017 16:35:26 GMT):
@Ratnakar hi, i learn a lot from your e2e scripts. how to clone e2e_cli?

bmos299 (Tue, 28 Feb 2017 16:56:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zyXHWuA8N5NauRsDc) @bh4rtp You are actually ahead of the curve here. You have the artifacts. We are now writing the documentation to support this work.

nickgaski (Tue, 28 Feb 2017 17:41:58 GMT):
@toddinpal - I'll make the succinct argument and then leave it to another developer to elaborate. Two things: the world state never gets updated unless a transaction actually passes the full gauntlet of consensus. So in v1 that is... generate a signed tx proposal and send to endorsing peers, peers verify client signature, execute tx, call ESCC for endorsement, return signed payloads to app, compare and verify again, send tx to ordering, validate signatures and policy definition, validate current state. If all that actually passes, then the world state gets updated. Then there is shared consensus on world state or rather "ledger synchronization" that takes place through an ongoing gossip protocol on a per-channel basis. @dave.enyeart can respond on behalf of ledger consensus

DrTES (Tue, 28 Feb 2017 18:00:06 GMT):
Has joined the channel.

dave.enyeart (Tue, 28 Feb 2017 18:57:24 GMT):
@toddinpal @nickgaski there is no 'ledger consensus' per se. The committing peers each apply the transaction's write set, which has gone through consensus. Applying write set to state database is deterministic, and therefore all state databases should match. Future transactions will require N endorsers and their results must match. If state database had been altered on a peer then the transaction results would be inconsistent across endorsing peers, the 'bad' peer will be found out, and the transaction will get invalidated. If you do read-only queries against peer you typically won't submit to ordering as a transaction. If you don't trust your own peer, then you can query N peers and ensure you get the same result from each. At the end of the day, the chain is the hash-chained source of truth, therefore if there is doubt about state database, you can simply delete it, it will get regenerated from the chain.

l1nux (Tue, 28 Feb 2017 22:45:56 GMT):
Has joined the channel.

bh4rtp (Wed, 01 Mar 2017 00:29:12 GMT):
@bmos299 i studied your implementation methods last night. very very powerful. thank you very much.

bh4rtp (Wed, 01 Mar 2017 01:23:29 GMT):
@bmos299 the testing results show two failures before exit. the first one is 2017/02/28 17:11:20 KeyStore path [examples/e2e/crypto/orderer/localMspConfig/keystore] missing [false]: [] 2017/02/28 17:11:20 Setting up the MSP manager failed, err KeyMaterial not found in SigningIdentityInfo panic: Setting up the MSP manager failed, err KeyMaterial not found in SigningIdentityInfo goroutine 1 [running]: panic(0x897a40, 0xc4202da1b0) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201711a0, 0x96ebb3, 0x29, 0xc4202da170, 0x1, 0x1) /home/allen/go/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x127 github.com/hyperledger/fabric/common/configvalues/msp.TemplateGroupMSP(0xc4201f9d68, 0x2, 0x2, 0xc42021fd80, 0x7) /home/allen/go/src/github.com/hyperledger/fabric/common/configvalues/msp/config_util.go:61 +0xba5 github.com/hyperledger/fabric/common/configtx/tool/provisional.New(0xc4201e68b0, 0x7, 0xc4201e68b0) /home/allen/go/src/github.com/hyperledger/fabric/common/configtx/tool/provisional/provisional.go:151 +0x5b5 main.main() /home/allen/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:47 +0x317 mv: cannot stat 'orderer.block': No such file or directory

bh4rtp (Wed, 01 Mar 2017 01:26:10 GMT):
@bmos299 and the second error message reads: Instantiating chaincode on Peer2/Org1 ... 2017-03-01 01:25:44.047 UTC [main] main -> WARN 001 Setting mspID to DEFAULT as temporary workaround 2017-03-01 01:25:44.049 UTC [SW_BCCSP] createKeyStoreIfNotExists -> INFO 002 KeyStore path [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer2/localMspConfig/keystore] missing [false]: [] 2017-03-01 01:25:44.110 UTC [logging] InitFromViper -> DEBU 003 Setting default logging level to DEBUG for command 'chaincode' 2017-03-01 01:25:44.112 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-03-01 01:25:44.112 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-03-01 01:25:44.113 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 006 Using default escc 2017-03-01 01:25:44.114 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 007 Using default vscc 2017-03-01 01:25:44.114 UTC [msp] Sign -> DEBU 008 Sign: plaintext: 0A8F050A59080322096D796368616E6E...314D53500A04657363630A0476736363 2017-03-01 01:25:44.114 UTC [msp] Sign -> DEBU 009 Sign: digest: B5508A8321C03A70422EC9BCDC1ED20CDEA2A10FFD6BB73FEFD3DE80810E2BDC Error: Error endorsing chaincode: rpc error: code = 2 desc = Failed to deserialize creator identity, err MSP DEFAULT is unknown Usage: peer chaincode instantiate [flags] Global Flags: -C, --chainID string The chain on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") --logging-level string Default logging level and overrides, see core.yaml for full syntax -n, --name string Name of the chaincode -p, --path string Path to chaincode -P, --policy string The endorsement policy associated to this chaincode --test.coverprofile string Done (default "coverage.cov") -t, --tid string Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 -u, --username string Username for chaincode operations when security is enabled -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode !!!!!!!!!!!!!!! Chaincode instantiation on PEER2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

bravera (Wed, 01 Mar 2017 08:37:48 GMT):
@mohamoud.egal Ah, I just noticed you are trying on a Mac. I have seen a number of posts that warn of issues with trying to get this working on Mac at the moment....you may want to try the https://chat.hyperledger.org/channel/fabric-composer channel to find out the latest on this one

SyneBlockChainTeam (Wed, 01 Mar 2017 11:42:42 GMT):
Has joined the channel.

bmos299 (Wed, 01 Mar 2017 16:29:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jJf7k28KwNDzgjjJu) @bh4rtp I think the issue is with the ```behave -k -D cache-deployment-spec features/bootstrap.feature```.

bmos299 (Wed, 01 Mar 2017 16:29:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jJf7k28KwNDzgjjJu) @bh4rtp the crypto material is not in the correct directory. Did you run the behave command?

bmos299 (Wed, 01 Mar 2017 16:44:47 GMT):
@bh4rtp I will ping you.

s.narayanan (Wed, 01 Mar 2017 17:02:54 GMT):
A few questions around endorsement that are not clear from the documentation. Appreciate answers to these: 1. Are channels used by clients to submit transaction proposals for endorsements or are channels only required for broadcasting transactions (after they have been endorsed) to orderer nodes? 2. How does a client look up endorsing peers for a chain code transaction? Can a client direct this query to any peer that is part of the chain? 3. How are various system chain codes (ESCC, VSCC, LSCC etc.) deployed? Do these come up with the peer process or need to be explicitly deployed? 4. An endorsement policy specifies the peers that will act as endorsers. Where is the policy itself deployed (at endorsers/committers/both) deployed and how is it persisted at the peers?

mohamoud.egal (Wed, 01 Mar 2017 17:19:47 GMT):
Hi. Does anyone know why the "node cli.js landregistry submit && node cli.js landregistry list" are failing whenever I run the command "npm run submitTransaction"?

dave.enyeart (Wed, 01 Mar 2017 17:20:17 GMT):
@s.narayanan 1. Channel id is included in the proposal that is sent to endorsers. Peer validates that it is a member of that channel. 2. Client should know endorsement policy already, and should direct proposals to peers such that endorsement policy is fulfilled. If the endorsement policy is general such as 'any two peers can endorse', then the client can send to any two peers. 3. System chain codes are deployed automatically 4. I'll defer to others.

nickgaski (Wed, 01 Mar 2017 18:37:04 GMT):
@bh4rtp - check https://gerrit.hyperledger.org/r/#/c/6607/ for the README. It's labeled `end-to-end.md`. From your vagrant environment, clone this repo https://github.com/ratnakar-asara/e2e in the /examples directory

mohamoud.egal (Wed, 01 Mar 2017 23:15:36 GMT):
What's a better place for a client new to Hyperledger to start developing 1) https://fabric-composer.github.io/ 2) http://hyperledger-fabric.readthedocs.io/en/latest/

bh4rtp (Thu, 02 Mar 2017 00:21:30 GMT):
@nickgaski ok, i will rebuild fabric, fabric-ca and run e2e again.

bh4rtp (Thu, 02 Mar 2017 01:00:33 GMT):
@nickgaski @bmos299 i removed all the images and recloned the master branch of fabric and fabric-ca, and then made again. now network_setup up runs ok! i feel very happy. thank you!

bmos299 (Thu, 02 Mar 2017 01:33:38 GMT):
@bh4rtp great news!! @nickgaski @Ratnakar @muralisr did a great job putting it all together. ....there is still so much work to do, but at least you can move forward.

muralisr (Thu, 02 Mar 2017 01:33:38 GMT):
Has joined the channel.

s.narayanan (Thu, 02 Mar 2017 01:38:09 GMT):
@dave.enyeart Thanks. Based on the escc and vscc code in fabric/code/scc, it appears the escc endorses the transaction by signing the input and returning the result while vscc validates that transaction has one correct endorsement. The documentation at http://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies/ suggests that one can specify endorsement policies at chaincode deployment time. The vscc code however does not seem to check endorsement policy. Is the documentation referring to capability that has not been implemented yet?

dave.enyeart (Thu, 02 Mar 2017 01:44:35 GMT):
@s.narayanan Correct, the currenct vscc is just the first/default endorsement policy that checks for at least one valid signature

s.narayanan (Thu, 02 Mar 2017 01:51:54 GMT):
@dave.enyeart Thanks.

nickgaski (Thu, 02 Mar 2017 01:57:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QwT28BGdfo2cmZn74) @bh4rtp awesome. we like happy users. It would make us happy if you'd be kind enough to provide some feedback on the documentation. Would love for that to be a super simple experience

s.narayanan (Thu, 02 Mar 2017 02:02:08 GMT):
A conceptual question on difference between endorsers and committers. Since chaincode is deployed to both and key difference appears to be who can execute the state changes (through simulation of result set), I am trying to understand when a participant will be committer only (and not be an endorser). I presume client could send a query transaction directly to a committing peer (since it has the chaincode as well)? Is it fair to say that if a participant in network needs visibility to the ledger but not right to make state changes, then they could be act in committer role (and not be an endorser)?

nickgaski (Thu, 02 Mar 2017 02:09:28 GMT):
@s.narayanan - technically chaincode is not deployed to both. Only entities that need to perform read/writes will have the chaincode installed on their files system. The actual source code doesn't exist on a channel's shared ledger. So for the sake of a channel with many chaincodes where certain peers need only endorse portions of the overall solution (maybe a car lifecycle, etc.) then they wouldn't have the chaincode. They'll still have the world state and the chain, but won't be able to properly interact with the ledger for a chaincode they don't have installed.

nickgaski (Thu, 02 Mar 2017 02:10:08 GMT):
or if they need to only query values (like an auditor might) they could have it installed

s.narayanan (Thu, 02 Mar 2017 02:18:03 GMT):
@nickgaski thanks. If a peer performs a role of a committer only, will we ever need to deploy chaincode to that peer? If the answer is no, then the peer only maintains the ledger but the peer cannot interact with the ledger (e.g. it cannot support operations such as read only queries). I am trying to understand what scenarios I would need a distinct commiter role within a network since if they hold only copies of ledger but cannot interact with it

nickgaski (Thu, 02 Mar 2017 02:21:15 GMT):
It's an interesting question and I'm sure there's a use case out there. Maybe for the sake of resiliency and ledger integrity. The committing peers perform a gossip protocol to constantly ensure synchronization. I also wonder if in an auditing scenario whether the auditing peer may only install the chaincode at audit time.

s.narayanan (Thu, 02 Mar 2017 02:29:06 GMT):
@nickgaski thanks

Liew.SC (Thu, 02 Mar 2017 02:56:14 GMT):
Has joined the channel.

sameerreddy13 (Thu, 02 Mar 2017 03:13:24 GMT):
Has joined the channel.

sameerreddy13 (Thu, 02 Mar 2017 03:20:36 GMT):
Hey guys I'm a developer on part of a team looking to get an blockchain application on Hyperledger working and ready for production.

sameerreddy13 (Thu, 02 Mar 2017 03:21:23 GMT):
What are best places to learn how to run, test, deploy etc. coming from someone newly trying Fabric

sameerreddy13 (Thu, 02 Mar 2017 03:22:00 GMT):
Would love some feedback as the documentation was a little hard for me to figure out what I can and can't do.

sameerreddy13 (Thu, 02 Mar 2017 03:22:22 GMT):
Also have an IBM Bluemix account; is that a good place to start and deploy from?

nickgaski (Thu, 02 Mar 2017 03:29:08 GMT):
@sameerreddy13 - try the getting started example. It's fully baked, but will demonstrate the network components and basic flow. There's a node app to see some APIs in action, and then you can use the CLI for a more hands on approach. It's a good starting place

nickgaski (Thu, 02 Mar 2017 03:29:18 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/included/

o.o. (Thu, 02 Mar 2017 15:40:52 GMT):
Has joined the channel.

toddinpal (Thu, 02 Mar 2017 16:11:55 GMT):
Where can I find something that describes what will be in fabric 1.0 and what won't? I've seen references to some things being beta in 1.0 and other things that indicate things that are planned. Is there a project plan and/or roadmap indicating what will be available when?

tennenjl (Thu, 02 Mar 2017 20:52:24 GMT):
@toddinpal I think jira.hyperledger.org should have the roadmap (according to the docs I have read)

dragosh (Thu, 02 Mar 2017 21:41:21 GMT):
Has joined the channel.

s.narayanan (Thu, 02 Mar 2017 21:59:56 GMT):
The documentation (glossary) refers to an "anchor" peer and "leader" peer. Are these the same?

yacovm (Thu, 02 Mar 2017 22:53:14 GMT):
@s.narayanan no, they are not. can I get a link to the glossary please?

s.narayanan (Thu, 02 Mar 2017 22:58:03 GMT):
@yacovm here is the link: https://github.com/hyperledger/fabric/blob/master/docs/source/glossary.rst . It is unclear from the description the difference between the two. Is there any other document that explains this?

yacovm (Thu, 02 Mar 2017 23:01:15 GMT):
_ The peer node that anchors a cluster of one, or more, peer nodes belonging to a Member participating in a Channel. Anchor peers are defined in the channel's configuration and serve as a routing apparatus for gossip protocol. _

yacovm (Thu, 02 Mar 2017 23:01:45 GMT):
No, this isn't a routing apparatus. It's just a peer that belongs to one of the orgs of the channel, that's all.

yacovm (Thu, 02 Mar 2017 23:01:45 GMT):
No, this isn't a routing apparatus. It's just a peer (not *any* peer though) that belongs to one of the orgs of the channel, that's all.

yacovm (Thu, 02 Mar 2017 23:03:28 GMT):
The leader peer is just a peer that connects to the ordering service on behalf of peers of the organization, for the channel

yacovm (Thu, 02 Mar 2017 23:05:27 GMT):
@nickgaski Can you please update the anchor peer definition? Also I think the following link is broken: https://github.com/hyperledger/fabric/blob/master/docs/source/glossary.rst#gossip-protocol

yacovm (Thu, 02 Mar 2017 23:05:41 GMT):
The " Refer to the :doc:`gossip` "

s.narayanan (Thu, 02 Mar 2017 23:06:51 GMT):
@yacovm thanks

yacovm (Thu, 02 Mar 2017 23:08:48 GMT):
@s.narayanan Anchor peers, should be highly available though.

s.narayanan (Thu, 02 Mar 2017 23:09:58 GMT):
@yacovm yes, understood ...

theathibm (Thu, 02 Mar 2017 23:32:27 GMT):
Has joined the channel.

rahulhegde (Thu, 02 Mar 2017 23:48:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QZzwcge3s7uCjGaED) @Ratnakar We will also require CA image/container specific to these images/setup?

Ratnakar (Fri, 03 Mar 2017 00:02:30 GMT):
No not required , This setup is for CLI based end-to-end flow. Once e2e instructions for node/java sdk are ready, we would need fabric-ca

Ratnakar (Fri, 03 Mar 2017 00:02:30 GMT):
@rahulhegde No not required , This setup is for CLI based end-to-end flow. Once e2e code available for node/java sdk , then we would need fabric-ca

rahulhegde (Fri, 03 Mar 2017 00:21:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NhgstmWFt7wobSd33) @Ratnakar Can you pass me the fabric-ca image, there is 1 team who is also working to run using java-SDK and they are getting certificate related issue.

Ratnakar (Fri, 03 Mar 2017 00:47:40 GMT):
I haven't tried e2e flow with SDKs yet, I would generate docker image from fabric-ca repo

toddinpal (Fri, 03 Mar 2017 02:19:05 GMT):
What sort of authorization capabilities are built into or supported by fabric 1.0

weeds (Fri, 03 Mar 2017 03:21:41 GMT):
@smithbk Are you able to help @toddinpal

guoger (Fri, 03 Mar 2017 06:02:17 GMT):
Has joined the channel.

guoger (Fri, 03 Mar 2017 06:04:26 GMT):
Hello, do we have a timeline for 1.0 release? thx

bh4rtp (Fri, 03 Mar 2017 06:51:33 GMT):
may i ask a simple question? what is the use of configtxgen?

dragosh (Fri, 03 Mar 2017 11:14:23 GMT):
Hello, REST support for calling chaincode, is this not supported in 1.0 release?

yacovm (Fri, 03 Mar 2017 11:14:44 GMT):
that is correct ^

yacovm (Fri, 03 Mar 2017 11:14:51 GMT):
use the client SDK instead

dragosh (Fri, 03 Mar 2017 11:15:07 GMT):
HFC SDK? What version?

yacovm (Fri, 03 Mar 2017 11:15:42 GMT):
uh, latest?

dragosh (Fri, 03 Mar 2017 11:15:50 GMT):
ok, thanks alot Ș)

dragosh (Fri, 03 Mar 2017 11:15:57 GMT):
:)

weeds (Fri, 03 Mar 2017 13:51:40 GMT):
@bh4rtp Configtxgen is utilized to help start bootstrap the network

weeds (Fri, 03 Mar 2017 13:51:58 GMT):
@dragosh do you want to use the nodesjs.sdk or the java sdk?

weeds (Fri, 03 Mar 2017 13:52:04 GMT):
they have both being supported by version 1.0

bh4rtp (Fri, 03 Mar 2017 14:01:42 GMT):
@weeds thanks. is there any documentation about configtxgen?

weeds (Fri, 03 Mar 2017 14:02:51 GMT):
i would go look here- http://hyperledger-fabric.readthedocs.io/en/latest/configtxgen.html?highlight=%20configtxgen

weeds (Fri, 03 Mar 2017 14:03:06 GMT):
I know they are updating documentation pretty actively

weeds (Fri, 03 Mar 2017 14:03:27 GMT):
@bh4tp ^^

weeds (Fri, 03 Mar 2017 14:03:36 GMT):
@bh4rtp ^^

weeds (Fri, 03 Mar 2017 14:07:35 GMT):
@guoger I always think timeline is a funny question as it's really decided by the community, so I can't say I'm the expert here as to when they will officially cut the release as it's a community decision. However, what I do know- they had a set of images in December.. they also had a set of images at the Hacfkest in late January where people were trying out the basics- And of course the CI produces continual images (fabric-ci channel is where they post on this) .There are new images now that they are getting working end to end with CLI and are working to add the Java/Nodejs sdk pieces as we rocket chat here. There is a lot of testing going on across different companies/startups,etc,. but one of the things I did hear this week is that 100 channels, 4 peers with 2 organizations (2 peers in each) with 10 chaincodes is up and running already. That is not to say the current code does not have defects to be clear.

bh4rtp (Fri, 03 Mar 2017 14:08:26 GMT):
@weeds oh yes! the docs are updated. great!

weeds (Fri, 03 Mar 2017 14:09:09 GMT):
@gouger I know they are seeking out help and a good place to start is to engage on the testing part- if interested, a good place to start would be the fabric-quality channel- that way you can learn a lot as well as help us get the quality to where we all in the community want it. Hope this helps.

weeds (Fri, 03 Mar 2017 14:09:33 GMT):
@bh4rtp I know there are more changesets they are trying to get through to get more of the content in- I think it's written it's just all being reviewed.

weeds (Fri, 03 Mar 2017 14:09:55 GMT):
supposedly the cli one is going to come in today once it's reviewed

weeds (Fri, 03 Mar 2017 14:10:00 GMT):
which i think will help everyone

bh4rtp (Fri, 03 Mar 2017 14:12:40 GMT):
@weeds thank you very much.

dragosh (Fri, 03 Mar 2017 14:14:34 GMT):
@weeds considering both options, where should I look into the documentation?

mlishok (Fri, 03 Mar 2017 15:00:38 GMT):
Has joined the channel.

jimthematrix (Fri, 03 Mar 2017 16:45:00 GMT):
@aso do you know offhand what could cause this error when I call instantiate on two peers each in their own org? ```GRPC client got an error response from the peer "grpc://localhost:8051". Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown```

jimthematrix (Fri, 03 Mar 2017 16:46:01 GMT):
the request is signed by an identity in `Org1MSP`, and sent to localhost:7051 which is in Org1MSP, and to localhost:8051 which is in Org2MSP

jimthematrix (Fri, 03 Mar 2017 16:46:28 GMT):
the channel config has both of the orgs

weeds (Fri, 03 Mar 2017 17:10:34 GMT):
@dragosh Documentation is being updated but here is the doc in general: http://hyperledger-fabric.readthedocs.io/en/latest/. I have not looked today to see as I know they were working on getting the SDK pieces up there, but wondering if this might help you in the interim: https://github.com/hyperledger/ci-management/tree/master/jjb

weeds (Fri, 03 Mar 2017 17:11:16 GMT):
i do know they are working on updating simple app for people to be able to see use over this next week(ie they had one but with some of the changes, I think they had to do updates)

weeds (Fri, 03 Mar 2017 17:14:01 GMT):
Also i think in today i know there was a report there was an error when the CI was run- so not sure what level of code you pulled down out of master. On fabric-CI they post the results of the dockers that they are testing the CI against and the results

jimthematrix (Fri, 03 Mar 2017 17:40:47 GMT):
@aso ignore the question above, turns out joinChannel() API is async, the returned status=200 does not mean the channel has been successfully joined, guess need to listen to the block event to be really sure. but for now just putting in a sleep(5000) after the joinChannel call

bh4rtp (Sat, 04 Mar 2017 01:40:34 GMT):
hi everyone. is there any documentation describing the generation, administration and application of keys and certificates in fabric?

passkit (Sat, 04 Mar 2017 04:11:40 GMT):
Could somebody help me understand this comment from ordered.yaml

passkit (Sat, 04 Mar 2017 04:12:13 GMT):
# LocalMSPID is the identity to register the local MSP material with the MSP # manager. IMPORTANT: Deployers need to change the value of the localMspId # string. In particular, the name of the local MSP ID of an orderer needs to # match the name of one of the MSPs in the ordering system channel.

passkit (Sat, 04 Mar 2017 04:12:46 GMT):
Where / how are MSPs set?

kostas (Sat, 04 Mar 2017 06:17:06 GMT):
^^ @vpaprots

vpaprots (Sat, 04 Mar 2017 06:17:06 GMT):
Has joined the channel.

weeds (Sat, 04 Mar 2017 15:12:47 GMT):
@passkit I would also suggest looking here http://hyperledger-fabric.readthedocs.io/en/latest/Setup/ca-setup.html

weeds (Sat, 04 Mar 2017 15:13:13 GMT):
@smithbk @passkit just want to confirm- is this link updated with the latest? just want to make sure

weeds (Sat, 04 Mar 2017 15:13:58 GMT):
I wondered as I'm pretty sure we don't support RSA

weeds (Sat, 04 Mar 2017 15:14:37 GMT):
@JonathanLevi @joshhus ^^

joshhus (Sat, 04 Mar 2017 15:14:37 GMT):
Has joined the channel.

passkit (Sat, 04 Mar 2017 15:16:02 GMT):
But what is MSP ID? Is it a directory path? a file name?

JonathanLevi (Sat, 04 Mar 2017 15:16:12 GMT):
@weeds That page could use a touch or two...

yacovm (Sat, 04 Mar 2017 15:16:12 GMT):
a string

JonathanLevi (Sat, 04 Mar 2017 15:16:22 GMT):
Identifier

passkit (Sat, 04 Mar 2017 15:16:46 GMT):
But relating to what? The document explains a directory structure, but what is the relationship of the string to this structure?

passkit (Sat, 04 Mar 2017 15:19:57 GMT):
How / where is this string defined in the "ordering system channel?". The comments assume backround knowledge that I am having trouble finding documentation or explaination for.

yacovm (Sat, 04 Mar 2017 15:23:28 GMT):
which doc? You have https://github.com/hyperledger/fabric/blob/master/common/configtx/tool/configtx.yaml - it is used to define the MSP-IDs of the ordering service and peers. There is also https://github.com/hyperledger/fabric/blob/master/docs/source/configtxgen.rst that explains it

passkit (Sat, 04 Mar 2017 15:24:45 GMT):
Could I suggest that crosrefferences tofiles be made in

passkit (Sat, 04 Mar 2017 15:36:14 GMT):
Thanks - I could only previously discover very broad definitions of the MSP, none of which mention that they are assigned an id

passkit (Sat, 04 Mar 2017 15:37:51 GMT):
I am also having trouble understanding how, if a certificate is revoked from the ca, it is communicated to the other nodes. From

passkit (Sat, 04 Mar 2017 15:37:51 GMT):
I am also having trouble understanding how, if a certificate is revoked from the ca, it is communicated to the other nodes.

passkit (Sat, 04 Mar 2017 15:39:27 GMT):
From what I can understand, the certificates are hard copied into folders on the various nodes. How are they dynamically validated?

yacovm (Sat, 04 Mar 2017 15:39:56 GMT):
This question is pretty specific and should be asked in #fabric-crypto

smithbk (Sat, 04 Mar 2017 15:46:44 GMT):
@weeds @mastersingh24 @JonathanLevi An update to the readthedocs is at https://gerrit.hyperledger.org/r/#/c/6759

smithbk (Sat, 04 Mar 2017 15:47:11 GMT):
WRT RSA, it is supported by bccsp and fabric-ca. If we don't want to incur the testing overhead of RSA, then we would need to pull it from the doc.

JonathanLevi (Sat, 04 Mar 2017 16:01:13 GMT):
@smithbk: Yes, needs a diagram update + a few minor fixes, but it's much better.

JonathanLevi (Sat, 04 Mar 2017 16:03:16 GMT):
FWIW, I think we should test the RSA, and then make a call (after a good first pass of testing). Mainly trying to avoid critical last minute changes at this point.

JonathanLevi (Sat, 04 Mar 2017 16:03:35 GMT):
BTW: FWIW, I think we should test the RSA, and then make a call (after a good first pass of testing). Mainly trying to avoid critical last minute changes at this point.

passkit (Sat, 04 Mar 2017 16:57:51 GMT):
@yacovm "This question is pretty specific and should be asked in #fabric-crypto" - I'm not sure that I agree. Granting and revoking access to participants is a fundamental activity. I can understand why from a design perspective fabric-ca can be decoupled and replaced with an alternative - but is it truly the case that peers and orderers blindly trust whatever certificates are baked into the MSP folders? Is there no API for checking their continued validity?

yacovm (Sat, 04 Mar 2017 17:24:59 GMT):
They blindly trust the root CA certs, and the admin certs in the folders because- well- it's in the file system. You have to trust your own file system, don't you?

yacovm (Sat, 04 Mar 2017 17:25:21 GMT):
There is a certain support from what I know to revocations

yacovm (Sat, 04 Mar 2017 17:26:14 GMT):
but as I said- the people that roam in #fabric-crypto can answer better than me

passkit (Sun, 05 Mar 2017 01:07:24 GMT):
"You have to trust your own file system, don't you". In the case of certificates, absolutely not! Aside from the fact that docker deployments will invariably require credentials to kicking around in build folders, repositories and other places outside of the chain (posing a security risk); blindly trusting the file system makes peers and orderers a de-facto authority. Does this imply that for a compromised certificate, images need to be rebuilt and redeployed? This would be almost impossible to manage at scale. Or am I completely missing something?

yacovm (Sun, 05 Mar 2017 07:13:31 GMT):
Ah, of course not. I was only talking about bootstraping, not revocation

yacovm (Sun, 05 Mar 2017 07:29:11 GMT):
You can revoke certs from fabric-ca

mohamoud.egal (Sun, 05 Mar 2017 18:08:59 GMT):
How can I get enrollId, WebAppAdmin, --enrollSecret variables for the following command; "$ composer network deploy --archiveFile DigitalLandTitle.bna --enrollId WebAppAdmin --enrollSecret DJY27pEnl16d"

obernin (Sun, 05 Mar 2017 20:45:33 GMT):
Has joined the channel.

saism (Sun, 05 Mar 2017 20:56:35 GMT):
Has joined the channel.

weeds (Mon, 06 Mar 2017 23:14:36 GMT):
I saw this come across and thought it would be useful to share/post here regarding a question on the configtx.yaml file and if it needs updated for adding a peer or channel.-- it does not. The configtx.yaml is used at build time for the configtxgen tool, as shown below. Once the tool is compiled (make configtxgen) all the profile information is baked into. 1. adding a peer - this should be a matter of running the cryptogen tool and putting the correct crypto material in the local msp for the new peer (or all peers if desired). If the user cert is signed by one of the Org CAs, you should be fine. 2. creating a new channel - here is a sample from the script below. ./build/bin/configtxgen -profile TwoOrgs -outputCreateChannelTx channel.tx -channelID $CHANNEL_NAME The profile parm I assume will not change as you have a set number of orgs. Now, you just need to create the output filename and name of your channel which is used when the cli issues the create channel as such, peer channel create -o $ORDERER_IP:7050 -c $CHANNEL_NAME -f crypto/orderer/channel.tx >&log.txt

tbrooke (Tue, 07 Mar 2017 01:39:22 GMT):
Has joined the channel.

SyneBlockChainTeam (Tue, 07 Mar 2017 07:38:13 GMT):
Earlier we have been using hyperledger fabric v0.5 and v0.6 with vagrant and successfully developed various sample applications. Now we want to switch to v1.0. Though we are following the steps given on "http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html", but somehow we are facing issues while setting up development environment. Is membersrvc.yaml file replaced with fabric-cop? Thanks in advance.

passkit (Tue, 07 Mar 2017 11:32:28 GMT):
The Kafka version in the test images is 0.9.0.1. Is Kafka 0.10.x supported also?

kostas (Tue, 07 Mar 2017 14:41:37 GMT):
@passkit: Yes. If you bump into any issues, please let me know.

mohamoud.egal (Tue, 07 Mar 2017 17:43:40 GMT):
Hello

mohamoud.egal (Tue, 07 Mar 2017 17:44:07 GMT):
I looked though the IBM wiki for a good technical customer facing deck and I didn't find any. Suggestions?

AdnanC (Tue, 07 Mar 2017 19:20:54 GMT):
@greg.haskins Question about peer docker: currently, AFAIK, if a peer container crashes, the ledger data is lost with it. Should mounting the container directories in the host be a part of the example docker-composes we provide?

AdnanC (Tue, 07 Mar 2017 19:20:54 GMT):
@greg.haskins Question about peer docker: currently, AFAIK, if a peer container crashes, the ledger data is lost with it. Should mounting the container directories in the host be a part of the example docker-composes we provide with fabric?

greg.haskins (Tue, 07 Mar 2017 19:20:54 GMT):
Has joined the channel.

greg.haskins (Tue, 07 Mar 2017 19:21:42 GMT):
@AdnanC I guess it depends on the context in which the example is provided

greg.haskins (Tue, 07 Mar 2017 19:21:49 GMT):
generally, i would be of the opinion "no"

AdnanC (Tue, 07 Mar 2017 19:22:37 GMT):
for example, in the end-to-end example scenario,

AdnanC (Tue, 07 Mar 2017 19:22:37 GMT):
for example, in the end-to-end example scenario, @dave.enyeart

greg.haskins (Tue, 07 Mar 2017 19:23:24 GMT):
i think anyone that is familiar with managing a container platform will understand persistent vs ephemeral, so as long as we provide guidance on what needs to be persisted (in this case, /var/hyperledger) that should be sufficient

greg.haskins (Tue, 07 Mar 2017 19:23:50 GMT):
to that point, perhaps we should add an explict VOLUME directive to the Dockerfile to advertise this clearer

greg.haskins (Tue, 07 Mar 2017 19:24:37 GMT):
any compositions need to strike a balance between clarity and correctness though

greg.haskins (Tue, 07 Mar 2017 19:25:25 GMT):
im not sure where ledger persistence sits on that spectrum...most I would classify as demo/test/simple-example and I would therefore probably not want to cloud it up with more clutter/confusion of trying to provide persistene

AdnanC (Tue, 07 Mar 2017 19:25:55 GMT):
I see your point, thanks.

JasonD (Wed, 08 Mar 2017 01:22:43 GMT):
Has joined the channel.

toddinpal (Wed, 08 Mar 2017 03:04:37 GMT):
Where does system chaincode execute? Inside the peer container? The orderer container? Is it interacted with exactly the same way user smart contracts are?

Suma (Wed, 08 Mar 2017 15:44:13 GMT):
Has joined the channel.

bkvellanki (Wed, 08 Mar 2017 19:40:48 GMT):
Any sample on how to capture the events when a transaction is submitted in smart contract. How do we also capture those events from Node.js I want to generate a uniqueid when i submit a transaction to smart contract and update my database with the transaction id and uniqueid

bh4rtp (Thu, 09 Mar 2017 00:19:14 GMT):
Has left the channel.

lenin.mehedy (Thu, 09 Mar 2017 04:09:40 GMT):
Has joined the channel.

dps (Thu, 09 Mar 2017 09:42:05 GMT):
Has joined the channel.

dps (Thu, 09 Mar 2017 09:42:37 GMT):
Hi Everyone, I just have a question in regards to integration of Hyperledger with other systems.

dps (Thu, 09 Mar 2017 09:43:59 GMT):
I am currently working on a design document, and the question is:

dps (Thu, 09 Mar 2017 09:44:24 GMT):
Potentially I would like to connect/integrate with an external blockchain. Please can I ask if this is possible with Fabric 1.0, and if so, can you point me at the documentation that describes this topic?

dps (Thu, 09 Mar 2017 09:45:01 GMT):
Please do let me know if I have posted in the wrong channel etc.

dragosh (Thu, 09 Mar 2017 09:51:58 GMT):
I was reading through http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build.html, but the link to setup the dev environment is leading to a non-existent page, what is the correct page? Thanks!

rikmoedt (Thu, 09 Mar 2017 11:10:32 GMT):
Has joined the channel.

kingwill101 (Thu, 09 Mar 2017 12:35:46 GMT):
Has joined the channel.

passkit (Thu, 09 Mar 2017 12:53:32 GMT):
Having some trouble with TLS enabled Kafka Orderer (Kafka 10.2.0). I can connect and send/receive fine with SSL using the kafka producers and consumers samples but the orderer cannot connect and repeatedly retries `[orderer/kafka] newProducer -> DEBU 0d5 Connecting to Kafka cluster:`

passkit (Thu, 09 Mar 2017 12:54:58 GMT):
orderer.yaml ```Kafka: # Retry: What to do if none of the Kafka brokers are available. Retry: # The producer should attempt to reconnect every Period: 3s # Panic if has elapsed and no connection has been established Stop: 60s # Verbose: Turn on logging for sarama, the client library that we use to # interact with the Kafka cluster. Verbose: false # TLS: TLS settings for the Kafka client TLS: # Enabled: set to true enable TLS Enabled: true # PrivateKey: PEM-encoded private key orderer will use for authentication. PrivateKey: File: /opt/orderer/ssl/key.pem # Certificate: PEM-encoded signed public key vertificate orderer will use # for authentication. Certificate: File: /opt/orderer/ssl/cert.pem # RootCAs: PEM encoded trusted signer certificates used to validate # certificates from the Kafka cluster. RootCAs: File: /opt/orderer/ssl/ca.pem ```

passkit (Thu, 09 Mar 2017 12:56:53 GMT):
configtx.yaml ```Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start. # Available types are "solo" and "kafka". OrdererType: kafka Addresses: - 0.0.0.0:7050 # Batch Timeout: The amount of time to wait before creating a batch. BatchTimeout: 10s # Batch Size: Controls the number of messages batched into a block. BatchSize: # Max Message Count: The maximum number of messages to permit in a # batch. MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 99 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the # preferred max bytes will result in a batch larger than preferred max # bytes. PreferredMaxBytes: 512 KB Kafka: # Brokers: A list of Kafka brokers to which the orderer connects. # NOTE: Use IP:port notation Brokers: - aaa.example.com:9093 - bbb.example.com:9093 - ccc.example.com:9093 # Organizations is the list of orgs which are defined as participants on # the orderer side of the network. Organizations:```

passkit (Thu, 09 Mar 2017 12:58:20 GMT):
If I flip TLS enabled to false and change the ports, everything works ok

passkit (Thu, 09 Mar 2017 13:01:21 GMT):
Log level is set to debug, but I'm not getting anything useful

passkit (Thu, 09 Mar 2017 13:56:26 GMT):
Found the issue - Go TLS did not support the cypher I was using - (more details here https://github.com/Shopify/sarama/issues/643)

weeds (Thu, 09 Mar 2017 16:43:20 GMT):
@markparz see question above from @dragosh wondering if latest build broke the setup of dev environment

weeds (Thu, 09 Mar 2017 16:43:59 GMT):
@dps @ianj_mitchell@uk.ibm.com Ian- wondering if you can help on question from dps up above ^^

weeds (Thu, 09 Mar 2017 16:44:43 GMT):
@bkvellanki I suggest asking the question on the fabric-sdk-node channel if asking about 1.0 I know they did a few changes recently that got some of this operating

lehors (Thu, 09 Mar 2017 16:48:11 GMT):
@dps, can you please be a bit more specific on what you mean by "integrate with an external blockchain"?

lehors (Thu, 09 Mar 2017 16:48:29 GMT):
from the application side you can of course call onto whatever you want

lehors (Thu, 09 Mar 2017 16:49:06 GMT):
but I imagine you're thinking of tying fabric with some other blockchain, is that what it is?

lehors (Thu, 09 Mar 2017 16:49:37 GMT):
it is too open ended a question though for anyone to answer right now

weeds (Thu, 09 Mar 2017 16:50:26 GMT):
@toddinpal Are you talking about version 1.0? If so- hopefully this gives some information that is helpful: SDK or the CLI can create separate channels which will isolate and segregate transactions and ledger. As a result, Chaincode is installed on peers that need to access the asset states to perform reads and writes. Chaincode is instantiated on specific channels for specific peers. Ledgers exist in the scope of a channel (please note that you can have a channel that has all participants participating and a ledger that goes across all.... or you might chose to have seperate channels as you want certain chaincodes to only be run for specific participants on a channel). Peers can participate in multiple channels. Because of that you now have to install/instantiate chaincode. INSTALL CHAINCODE: Example shows installing sample go code onto one of nodes peer chaincode install -n mycc -v 1.0 -p chaincode_example02 INSTANTIATE CHAINCODE: Instantiate the chaincode on a peer. This will launch a chaincode container for the targeted peer and set the endorsement policy for the chaincode. In this snippet, we define the policy as requiring an endorsement from one peer node that is a part of Org1. (ORG1 in our example in docker images contains PEER2 or PEER3) peer chaincode instantiate -C mychannel -n mycc -v 1.0 -p chaincode_example02 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND('Org1MSP.member')“

weeds (Thu, 09 Mar 2017 16:51:50 GMT):
I was asked again today what is content of version 1.0 Alpha- again I believe this is getting updated, but here is the link: https://wiki.hyperledger.org/projects/proposedv1alphacontent

weeds (Thu, 09 Mar 2017 16:52:20 GMT):
I don't know everyone has signed off on this in community- so I don't think it's "official" yet

markparz (Thu, 09 Mar 2017 17:25:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BKMPxRDXzrSEG6jnk) @weeds @dragosh Hmmm it seems to be working for me.... however, the link you sent wasn't the same that is linked from the readthedocs... when I click the link I resolve to: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html#building-the-fabric

markparz (Thu, 09 Mar 2017 17:26:29 GMT):
@dragosh ^^ try clearing your cache and try the link, might have had some old one in there... let me know if it's failing for you

samirsadeghi (Thu, 09 Mar 2017 20:02:20 GMT):
Has joined the channel.

bcbrock (Thu, 09 Mar 2017 21:19:24 GMT):
Has joined the channel.

bcbrock (Thu, 09 Mar 2017 21:27:58 GMT):
Hi, I attended a talk given this morning by @binhn and @weeds, which timed-out just as we were getting to the good stuff. I am particularly interested in how chaincode deployments and channels interact. I thought I heard Binh say that a chaincode would be deployed once, but that the single chaincode would service multiple channels. If so, wouldn't this go against the scalability ideas of V1? For example I could imagine that in a settlement type system, there might be a private channel for each pair of counter parties. So I would expect there to be up to N^2 chaincodes or chaincode contexts executing simultaneously, otherwise the single chaincode would become a point of serialization just as it is now in V0.6.

muralisr (Thu, 09 Mar 2017 21:32:48 GMT):
@bcbrock unlike 0.6, (1) 1.0 chaincode invokes need not be serialized (2) each invoke comes with its own channel (ledger) context

muralisr (Thu, 09 Mar 2017 21:32:48 GMT):
@bcbrock unlike 0.6, (1) 1.0 chaincode invokes are not serialized (2) each invoke comes with its own channel (ledger) context

muralisr (Thu, 09 Mar 2017 21:33:37 GMT):
so the "same" chaincode running on 10 channels can be running concurrently

bcbrock (Thu, 09 Mar 2017 21:34:03 GMT):
SO you're saying chaincodes are re-entrant, and can be executing on multiple channels simultaneously? Can a chaincode execute multiple TX on the same channel simultaneously?

muralisr (Thu, 09 Mar 2017 21:34:25 GMT):
and if you do want a different container for 11th channel , just install it with the chaincode with a different name

muralisr (Thu, 09 Mar 2017 21:35:23 GMT):
yes to both with the agreement that the chaincode developer needs to protect the Invoke call appropriately

bcbrock (Thu, 09 Mar 2017 21:35:50 GMT):
Cool - but what do you mean by "protect"?

muralisr (Thu, 09 Mar 2017 21:36:44 GMT):
for example if they are using global vars - and they should not - upto the dev to protect access

bcbrock (Thu, 09 Mar 2017 21:37:14 GMT):
Thanks Murali

tennenjl (Fri, 10 Mar 2017 01:34:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wRhJxi3rFxjpEc99K) @dave.enyeart Hi Dave, Thanks for your Consensus explanation, so with this new architecture, what does this mean for the concept of modular pluggable consensus, does that apply anymore? Thanks and my apologies in advance for the novice question.

weeds (Fri, 10 Mar 2017 01:49:21 GMT):
@bcbrock I could use your help as a lot of people are confused about channels, and I'm trying to think about how to explain it simply in a way people understand about data partitioning. I've drawn pictures, explained in dfferent ways. Do you think giving some samples helps? Scenario 1) Has 20 participants each with their own peers. There is chaincode A/Ledger A. All 20 participants can run chaincode A and will share the ledger A. You would install the chaincode on all 20 participants peers. You would instantiate the chaincodeA on channel A. When transactions are run and put in blocks, the ledger A will get appended. All 20 partcipants will see the ledger ............Scenario 2) Has 20 participants each with their own peers. There is chaincode A/Ledger A. There is chaincode B/Ledger B. All 20 participants can run chaincode and will share the ledger A. Participants 1-10 can run chaincode B and will share the ledger B. You would install the chaincode A on all 20 participant peers. You would instnatiate the chaincode A on Channel A . When chaincode A is run on Channel A, the ledger A will get appended. For chaincode B, you woul install the chaincode B on all 1-10 participant peers. You would instantiate the chaincode B on Channel B. When chaincode B is run on Channel B--ledger B will get appended. The only ones that would see the transactions running are participants 1-10. the only ones that see the ledger B will be participant 1-10.

weeds (Fri, 10 Mar 2017 01:49:42 GMT):
I tried to explain this in the charts- but there seemed to be a ton of confusion-- was wondering if this helped, confused things,.. or if you had suggestions on how to make it more clear?

weeds (Fri, 10 Mar 2017 01:50:07 GMT):
Or what part do you think got confusing during the presentation earlier today?

dave.enyeart (Fri, 10 Mar 2017 03:59:37 GMT):

Message Attachments

dave.enyeart (Fri, 10 Mar 2017 03:59:43 GMT):
there's my take

AlanLee (Fri, 10 Mar 2017 04:17:59 GMT):
Has joined the channel.

binhn (Fri, 10 Mar 2017 04:21:09 GMT):
@dps what level of integration are you thinking of? Possibilities are from piecemeal to side-by-side. For example, you could plug in a different crypto implementation, different consensus algorithm, or you could write your own chaincode to process Bitcoin transactions.

binhn (Fri, 10 Mar 2017 04:23:44 GMT):
@dave.enyeart nice chart

binhn (Fri, 10 Mar 2017 04:26:34 GMT):
@weeds @bcbrock Multichannel design doc https://docs.google.com/document/d/1eRNxxQ0P8yp4Wh__Vi6ddaN_vhN2RQHP-IruHNUwyhc/

dave.enyeart (Fri, 10 Mar 2017 05:40:01 GMT):
@tennenjl modular pluggable consensus still applies, as it relates to ordering service consensus. Please take the question to #fabric-consensus if you'd like more details.

dragosh (Fri, 10 Mar 2017 08:39:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T38TFiiXfiYgCtjTn) @markparz thanks, it seems I was using a broken link somehow

passkit (Fri, 10 Mar 2017 10:51:20 GMT):
Still having trouble with TLS support in the orderer - who/where would be the best place to discuss?

passkit (Fri, 10 Mar 2017 10:52:15 GMT):
Receiving this message when trying to connect to the Kafka broker `tls: received unexpected handshake message of type *tls.serverHelloMsg when waiting for *tls.finishedMsg`

muralisr (Fri, 10 Mar 2017 12:58:01 GMT):
@passkit I'd pose the question in fabric-consensus

muralisr (Fri, 10 Mar 2017 12:58:01 GMT):
@passkit I'd pose the question in fabric-consensus also

weeds (Fri, 10 Mar 2017 13:04:54 GMT):
@binhn Thanks Binh- the problem is I have used different approaches explaining to an audience- I can point to the spec- but that does not help in middle of pitch- so trying to get people to tell me what graphical approach is better- the one we used yesterday or possibly the one that Dave posted here- @bcbrock let me know what you think

weeds (Fri, 10 Mar 2017 13:05:35 GMT):
@passkit are you using Version 0.6 or version 1.0?

tennenjl (Fri, 10 Mar 2017 13:38:43 GMT):
@dave.enyeart Thanks! I'll read up some more and ask as appropriate.

dave.enyeart (Fri, 10 Mar 2017 13:40:28 GMT):
@tennenjl currently there is solo, kafka (crash fault tolerant), and sbft in progress (byzantine fault tolerant) implementations

tennenjl (Fri, 10 Mar 2017 13:43:01 GMT):
@dave.enyeart Thanks, that was part of my confusion. I will look for more information regarding those implementations. (Ordering systems vs Consensus Algorithms)

kostas (Fri, 10 Mar 2017 14:07:58 GMT):
@passkit We will look into it in #fabric-consensus.

dragosh (Fri, 10 Mar 2017 15:40:18 GMT):
Has left the channel.

JatinderBali (Fri, 10 Mar 2017 15:46:07 GMT):
Has joined the channel.

AdnanC (Fri, 10 Mar 2017 20:40:47 GMT):
Hi can anyone help @rahulhegde on how to reduce the loglevel of gossip component in peer logs?

BrijeshJ (Fri, 10 Mar 2017 21:44:50 GMT):
Has joined the channel.

saism (Sun, 12 Mar 2017 15:21:25 GMT):
Hello, I'm unable to pull fabric-orderer image with the following message `Error response from daemon: manifest for hyperledger/fabric-orderer:latest not found` am I missing something here or this image is not available atm?

StevenLanders (Sun, 12 Mar 2017 17:55:00 GMT):
@saism I've been using these (by tag, no latest): https://hub.docker.com/u/sfhackfest22017/, as they're referenced in the /examples/sfhackfest/ examples. I wish there were sensible `hyperledger/image-name` published versions of these

saism (Sun, 12 Mar 2017 18:04:29 GMT):
Thanks, I've already switched orderer image, will check for other network members as well

StevenLanders (Sun, 12 Mar 2017 18:28:58 GMT):
are there any opinions on automating the creation of fabric environments? I was able to get v0.6 working on amazon ECS + terraform, it was quite difficult to set up initially. As I switch over to v1.0, should I be using docker/swarm or kubernetes instead?

mastersingh24 (Sun, 12 Mar 2017 20:42:56 GMT):
@StevenLanders - given that we distribute the various pieces (fabric-peer, fabric-orderer, fabric-ca) as Docker containers, I think that using Docker orchestration "tools" is the way to go. You've probably noticed that we use docker-compose in our testing so it might be easier to use Docker Swarm (the standalone not swarm mode in Docker 1.13+). On the other hand, we've been looking for folks to help provide scripts for Kubernetes and for Docker swarm mode as well so that might be a good opportunity to contribute and work with others in the community

mastersingh24 (Sun, 12 Mar 2017 20:44:04 GMT):
we (IBM) are actually looking at using Kubernetes support in the Bluemix container service. We previously made extensive use of Docker, Docker Swarm and Docker overlay networking

mastersingh24 (Sun, 12 Mar 2017 20:44:41 GMT):
I've really wanted to try Docker 1.13+ swarm mode since it has built-in overlay network / multi-host support

StevenLanders (Sun, 12 Mar 2017 20:47:22 GMT):
thanks @mastersingh24, helpful insights - I'll experiment with swarm/kubernetesa bit.

StevenLanders (Sun, 12 Mar 2017 20:47:22 GMT):
thanks @mastersingh24, helpful insights - I'll experiment with swarm-mode/kubernetesa bit.

StevenLanders (Sun, 12 Mar 2017 20:47:22 GMT):
thanks @mastersingh24, helpful insights - I'll experiment with swarm-mode/kubernetes a bit.

mastersingh24 (Sun, 12 Mar 2017 20:49:53 GMT):
cool

kostas (Sun, 12 Mar 2017 22:36:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XJ4aPmnvwbdR7N4PN) @saism `make behave-deps` to recreate it locally with the `latest` tag?

kostas (Sun, 12 Mar 2017 22:36:54 GMT):
@saism `make behave-deps` to recreate it locally with the `latest` tag?

kostas (Sun, 12 Mar 2017 22:37:24 GMT):
@saism: `make behave-deps` to recreate it locally with the `latest` tag?

saism (Sun, 12 Mar 2017 22:46:46 GMT):
@kostas from fabric/images?

kostas (Sun, 12 Mar 2017 22:47:24 GMT):
In the root directory of the `fabric.git` tree, run `make behave-deps`.

saism (Sun, 12 Mar 2017 22:50:53 GMT):
Cool, thanks, nice to know there are other options

clydedacruz (Mon, 13 Mar 2017 05:28:16 GMT):
Has joined the channel.

clydedacruz (Mon, 13 Mar 2017 05:29:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric?msg=g8vY6jhv5hsJJofZE)

clydedacruz (Mon, 13 Mar 2017 05:29:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric?msg=g8vY6jhv5hsJJofZE) Posted the same question on SO http://stackoverflow.com/q/42737461/4627552

clydedacruz (Mon, 13 Mar 2017 05:29:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric?msg=g8vY6jhv5hsJJofZE) Posted the same question on SO http://stackoverflow.com/q/42737461/4627552 . Any ideas ?

talauliker.shreya (Mon, 13 Mar 2017 05:29:56 GMT):
Has joined the channel.

dave.enyeart (Mon, 13 Mar 2017 11:29:46 GMT):
@muralisr Any ideas if similar functions will be there in v1?

dave.enyeart (Mon, 13 Mar 2017 11:29:46 GMT):
@muralisr Any ideas if similar getCallerMetadata() and getCallerCertificate() functions will be there in v1?

mastersingh24 (Mon, 13 Mar 2017 12:06:22 GMT):
@clydedacruz @dave.enyeart - http://stackoverflow.com/questions/42737461/getcallermetadata-and-getcallercert-not-found-in-hyperledger-fabric-v1-0/42763240#42763240

clydedacruz (Mon, 13 Mar 2017 12:25:29 GMT):
Thanks @mastersingh24 !

jwalt (Mon, 13 Mar 2017 15:14:00 GMT):
Has joined the channel.

amilazzo (Mon, 13 Mar 2017 16:00:59 GMT):
Has joined the channel.

antoniovassell (Mon, 13 Mar 2017 16:31:57 GMT):
Has joined the channel.

tbrooke (Tue, 14 Mar 2017 12:03:47 GMT):
I assume Fabric is the groundwork for the Internet of Things. I understand Fabric with Finance, Title, Chain of Supply etc. But IOT Is there a presentation, paper, video or can someone explain ho it would work with say consumer appliances - Would there be Household channels? Manufacturer Channels? DIscovery services? O r are we talking about something beyond Fabric

tbrooke (Tue, 14 Mar 2017 12:03:47 GMT):
I assume Fabric is the groundwork for the Internet of Things. I understand Fabric with Finance, Title, Chain of Supply etc. But not IOT Is there a presentation, paper, video or can someone explain how it would work with say consumer appliances - Would there be Household channels? Manufacturer Channels? DIscovery services? O r are we talking about something beyond Fabric

debrajo (Tue, 14 Mar 2017 13:29:54 GMT):
Has joined the channel.

andyz (Tue, 14 Mar 2017 13:30:31 GMT):
Has joined the channel.

ErmyasTeshome (Tue, 14 Mar 2017 13:31:57 GMT):
Has joined the channel.

wwendy (Tue, 14 Mar 2017 13:49:16 GMT):
Has joined the channel.

dl2017 (Tue, 14 Mar 2017 14:43:37 GMT):
Has joined the channel.

pmullaney (Tue, 14 Mar 2017 15:48:03 GMT):
Has joined the channel.

ruslan.kryukov (Tue, 14 Mar 2017 15:52:02 GMT):
Has joined the channel.

lignyxg (Tue, 14 Mar 2017 17:40:37 GMT):
Has joined the channel.

IngCr3at1on (Tue, 14 Mar 2017 18:18:12 GMT):
Has joined the channel.

dhuseby (Tue, 14 Mar 2017 22:55:47 GMT):
Has joined the channel.

Hangyu (Wed, 15 Mar 2017 06:23:39 GMT):
Has joined the channel.

Xie.YZ (Wed, 15 Mar 2017 08:14:24 GMT):
Has joined the channel.

o.o. (Wed, 15 Mar 2017 08:49:26 GMT):
Where can I see what environment variables are used, and what their values could be, for the runs of the peer and orderer commands? (As set in the docker container when specified in the docker-compose.yml)

LoupTheron (Wed, 15 Mar 2017 09:33:05 GMT):
Has joined the channel.

Jonas.Hedin (Wed, 15 Mar 2017 09:39:27 GMT):
Has joined the channel.

mastersingh24 (Wed, 15 Mar 2017 12:10:28 GMT):
@o.o - the environment variables are used to set/override the configuration provided in `core.yaml` (for the peer) and `orderer.yaml` for the orderer

mastersingh24 (Wed, 15 Mar 2017 12:10:28 GMT):
@o.o. - the environment variables are used to set/override the configuration provided in `core.yaml` (for the peer) and `orderer.yaml` for the orderer. The way you convert one of the setting in the yaml file to an environment variable is to use the prefix `CORE_` for the peer and `ORDERER_` for the orderer. Then basically take any setting and build the variable using `_` to separate levels

mastersingh24 (Wed, 15 Mar 2017 12:13:31 GMT):
``` peer: # The Peer id is used for identifying this Peer instance. id: jdoe # The networkId allows for logical seperation of networks # networkId: dev # networkId: test networkId: dev # The Address this Peer will listen on listenAddress: 0.0.0.0:7051 # The Address this Peer will bind to for providing services address: 0.0.0.0:7051 # Whether the Peer should programmatically determine the address to bind to. # This case is useful for docker containers. addressAutoDetect: false # Setting for runtime.GOMAXPROCS(n). If n < 1, it does not change the current setting gomaxprocs: -1 workers: 2 ```

mastersingh24 (Wed, 15 Mar 2017 12:14:15 GMT):
so the above is a slice of core.yaml for the peer. So if you want to override the `peer.id` setting, use the environment variable `CORE_PEER_ID` . Hope this helps

o.o. (Wed, 15 Mar 2017 12:19:42 GMT):
Thanks a lot; it really helps with the comments in the core/orderer.yaml files! Some of the orderer.yaml properties are called "deprecated". (Such as deprecatedBatchTimeout) This is also one of the things we seem to set in the compose file (without deprecated prefix). How should this be interpreted?

o.o. (Wed, 15 Mar 2017 12:19:42 GMT):
Thanks a lot; it really helps with the comments in the core/orderer.yaml files! Some of the orderer.yaml properties are called "deprecated". (Such as deprecatedBatchTimeout) This is also one of the things we seem to set in the compose file (without deprecated prefix). (ORDERER_GENERAL_BATCHTIMEOUT=10s). How should this be interpreted?

o.o. (Wed, 15 Mar 2017 12:20:35 GMT):
Ah, genesis part is to be moved

o.o. (Wed, 15 Mar 2017 12:20:35 GMT):
Ah, genesis part is to be moved to configtx

Rymd (Wed, 15 Mar 2017 12:20:54 GMT):
Has joined the channel.

mychewcents (Wed, 15 Mar 2017 12:30:15 GMT):
Has joined the channel.

balashevich (Wed, 15 Mar 2017 12:35:14 GMT):
Has joined the channel.

ecn (Wed, 15 Mar 2017 12:55:17 GMT):
Hello, what does contain the file : /var/hyperledger/production/db/00000X.log ? I can see some transaction information (args for example), can it be hidden ?

asutosh (Wed, 15 Mar 2017 13:28:07 GMT):
Has joined the channel.

chenxl (Wed, 15 Mar 2017 14:56:02 GMT):
peer3 | 2017-03-15 14:55:26.906 UTC [gossip/discovery#peer3:7051] periodicalSendAlive -> DEBU 18c Sleeping 5s ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

chenxl (Wed, 15 Mar 2017 14:56:45 GMT):
when I docker-compose up in e2e_cli, occur up error

dorrakhribi (Wed, 15 Mar 2017 14:57:59 GMT):
Has joined the channel.

yacovm (Wed, 15 Mar 2017 14:59:41 GMT):
@chenxl it's ok, not a problem

chenxl (Wed, 15 Mar 2017 15:00:35 GMT):
what happened ,?

chenxl (Wed, 15 Mar 2017 15:06:22 GMT):
but , when I run : root@26f398311de6:/opt/gopath/src/github.com/hyperledger/fabric/peer# ./scripts/script.sh Channel name : my channel

chenxl (Wed, 15 Mar 2017 15:06:43 GMT):
It not continue ....

yacovm (Wed, 15 Mar 2017 15:07:10 GMT):
hmm, can you show the output of the logs?

yacovm (Wed, 15 Mar 2017 15:07:17 GMT):
`docker logs peer0`, etc etc

chenxl (Wed, 15 Mar 2017 15:08:14 GMT):
2017-03-15 15:05:56.530 UTC [nodeCmd] serve -> INFO 173 Started peer with ID=[name:"peer0" ], network ID=[dev], address=[peer0:7051] 2017-03-15 15:05:56.530 UTC [logging] SetModuleLevel -> DEBU 174 Module 'error' logger enabled for log level: WARNING 2017-03-15 15:05:56.530 UTC [logging] SetModuleLevel -> DEBU 175 Module 'msp' logger enabled for log level: WARNING 2017-03-15 15:05:56.530 UTC [nodeCmd] func5 -> INFO 176 Starting profiling server with listenAddress = 0.0.0.0:6060 2017-03-15 15:06:01.517 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 177 Sleeping 5s 2017-03-15 15:06:06.518 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 178 Sleeping 5s 2017-03-15 15:06:11.519 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 179 Sleeping 5s 2017-03-15 15:06:16.520 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 17a Sleeping 5s 2017-03-15 15:09:21.565 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a7 Sleeping 5s

chenxl (Wed, 15 Mar 2017 15:08:57 GMT):
It print periodicalSendAlive -> DEBU 1a7 Sleeping 5s 。。 all the time

yacovm (Wed, 15 Mar 2017 15:18:41 GMT):
@chenxl it does, and it's fine.

chenxl (Wed, 15 Mar 2017 15:19:45 GMT):
why, but I can not create channel

chenxl (Wed, 15 Mar 2017 15:20:18 GMT):
I use the master vsource

yacovm (Wed, 15 Mar 2017 15:20:36 GMT):
if you go to `examples/e2e_cli` and do `./network_setup.sh up`

yacovm (Wed, 15 Mar 2017 15:20:43 GMT):
does it work or fail?

chenxl (Wed, 15 Mar 2017 15:25:20 GMT):
eer0]] Name:Org0MSP ID:Org0MSP] map[Name:Org1MSP ID:Org1MSP MSPDir:examples/e2e_cli/crypto/peer/peer2/localMspConfig BCCSP:map[Default:SW SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]] AnchorPeers:[map[Host:peer2 Port:7051]]]] orderer:map[BatchTimeout:10s BatchSize:map[MaxMessageCount:10 AbsoluteMaxBytes:99 MB PreferredMaxBytes:512 KB] Kafka:map[Brokers:[127.0.0.1:9092]] Organizations: OrdererType:solo Addresses:[orderer0:7050]] application:map[Organizations:]] 2017/03/15 11:25:00 Checking for MSPDir at: . 2017/03/15 11:25:00 Checking for MSPDir at: . 2017/03/15 11:25:00 Checking for MSPDir at: . 2017/03/15 11:25:00 Generating new channel configtx 2017/03/15 11:25:00 Creating no-op MSP instance 2017/03/15 11:25:00 Obtaining default signing identity 2017/03/15 11:25:00 Creating no-op signing identity instance 2017/03/15 11:25:00 Serialinzing identity 2017/03/15 11:25:00 signing message 2017/03/15 11:25:00 signing message 2017/03/15 11:25:00 Writing new channel tx Creating network "e2ecli_default" with the default driver Creating orderer0 Creating peer0 Creating peer1 Creating peer2 Creating peer3 Creating cli

chenxl (Wed, 15 Mar 2017 15:25:31 GMT):
./network_setup.sh up log

chenxl (Wed, 15 Mar 2017 15:26:49 GMT):
the peer0 log : 2017-03-15 15:27:51.832 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 19e Sleeping 5s 2017-03-15 15:27:56.806 UTC [gossip/discovery#peer0:7051] periodicalReconnectToDead -> DEBU 19f Sleeping 25s 2017-03-15 15:27:56.833 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a0 Sleeping 5s 2017-03-15 15:28:01.835 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a1 Sleeping 5s 2017-03-15 15:28:06.835 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a2 Sleeping 5s 2017-03-15 15:28:11.836 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a3 Sleeping 5s 2017-03-15 15:28:16.838 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a4 Sleeping 5s 2017-03-15 15:28:21.808 UTC [gossip/discovery#peer0:7051] periodicalReconnectToDead -> DEBU 1a5 Sleeping 25s 2017-03-15 15:28:21.839 UTC [gossip/discovery#peer0:7051] periodicalSendAlive -> DEBU 1a6 Sleeping 5s

chenxl (Wed, 15 Mar 2017 15:31:40 GMT):
but run script.sh , it still not continue

yacovm (Wed, 15 Mar 2017 15:32:06 GMT):
can you ask in #fabric-quality ?

hycind (Wed, 15 Mar 2017 17:19:06 GMT):
Has joined the channel.

ecn (Thu, 16 Mar 2017 09:11:38 GMT):
Hello, to deploy a chaincode, I have to start and register it with "CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example2". Is there another way ? Because, if the peer running this command is down, I won't be able to use my chaincode right ?

muralisr (Thu, 16 Mar 2017 12:00:28 GMT):
@ecn in typical operating mode, the peer would start the chaincode for you and you wouldn't start chaincode yourself. I assume you got `CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example2` from 0.6 docs where you can run the peer wit `--peer-chaincodedev=true` flag. In that mode you can run the chaincode yourself and is helpul for quick turnaround during dev/test time

muralisr (Thu, 16 Mar 2017 12:00:51 GMT):
`--peer-chaincodedev=true` is not enabled yet in 1.0 but will be soon

ecn (Thu, 16 Mar 2017 12:02:11 GMT):
@muralisr Oh I see, thank you for the answer :)

muralisr (Thu, 16 Mar 2017 12:04:33 GMT):
by the way the equivalent comment in 1.0 will be `CORE_CHAINCODE_ID_NAME=mycc:versionstring CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example2`

muralisr (Thu, 16 Mar 2017 12:04:48 GMT):
where `versionstring` can be any reasonable string

ecn (Thu, 16 Mar 2017 12:06:02 GMT):
okay, but what happens if the peer that started the chaincode for me would go down for some reason ? The chaincode is also deployed in the other peers right ? (Assuming i have multiple peers of course)

muralisr (Thu, 16 Mar 2017 12:14:29 GMT):
@ecn I suspect you are thinking "high availalability" . this can be solved by having more than one peer in your Org

ecn (Thu, 16 Mar 2017 12:23:24 GMT):
ok, thanks again

Jonas.Hedin (Thu, 16 Mar 2017 14:30:04 GMT):
Hi. So I know that committers can reject transactions sent to them from the orderer if there are read- and write-sets does not match up. Is there any way for a client to see is their transaction were rejected or do you have to send a query and check the result?

apspeical (Thu, 16 Mar 2017 16:20:10 GMT):
Has joined the channel.

passkit (Thu, 16 Mar 2017 16:21:16 GMT):
Could somebody help me understand (or point to documentation) about the role of the gossip bootstrap peer, thanks.

yacovm (Thu, 16 Mar 2017 16:23:44 GMT):
@passkit - Gossip bootstrap peer(s) is a configuration option that makes the peers connect to a peer or a group of peers in its organization

yacovm (Thu, 16 Mar 2017 16:23:50 GMT):
in order to establish membership

passkit (Thu, 16 Mar 2017 16:24:26 GMT):
How to configure for a root (first) peer

yacovm (Thu, 16 Mar 2017 16:24:40 GMT):
well you can have 2 options basically

yacovm (Thu, 16 Mar 2017 16:24:54 GMT):
if you know beforehand of a peer that will be alive, meaning- know its endpoint

yacovm (Thu, 16 Mar 2017 16:25:30 GMT):
you can configure to the first peer that endpoint although that peer will only be alive in the future. although we have a limit of ~ 2 min or so before it gives up connecting to bootstrap peers

yacovm (Thu, 16 Mar 2017 16:25:37 GMT):
you can of course omit the option

yacovm (Thu, 16 Mar 2017 16:25:41 GMT):
and don't specify anything

passkit (Thu, 16 Mar 2017 16:26:03 GMT):
perfect - thanks

yacovm (Thu, 16 Mar 2017 16:26:11 GMT):
np

passkit (Thu, 16 Mar 2017 16:26:41 GMT):
Also for running chaincode, does the peer need docker installed?

yacovm (Thu, 16 Mar 2017 16:27:03 GMT):
it depends, you can configure the peer to use a remote endpoint

passkit (Thu, 16 Mar 2017 16:29:07 GMT):
Ok, that makes sense - was a little confused that core.yaml references the local socket but the image is build from baseos

yacovm (Thu, 16 Mar 2017 16:36:39 GMT):
yeah... `127.0.0.1:7051` is indeed a bit confusing but it's the only known address you can put right? Do you have a better idea? (I'm open to suggestions)

passkit (Thu, 16 Mar 2017 16:41:06 GMT):
Was just thinking that since the base configs assume that docker is deployed locally, it may make sense to add docker to the peer image so that things work out of the box. Obviously if image size is an issue, and users are comfortable creating and managing a remote network, they could elect to run on the minimal image.

passkit (Thu, 16 Mar 2017 16:44:26 GMT):
I'm planning a core of 3 core managed peers that will provide high availability for the rest of the network. I may try to get it working with Amazon ECS to manage scalability.

passkit (Thu, 16 Mar 2017 16:44:26 GMT):
I'm planning a core of 3 managed peers that will provide high availability for the rest of the network. I may try to get it working with Amazon ECS to manage scalability.

dejan.milosavljevic (Thu, 16 Mar 2017 19:26:19 GMT):
Has joined the channel.

RahulBagaria (Fri, 17 Mar 2017 03:57:03 GMT):
Has joined the channel.

LoupTheron (Fri, 17 Mar 2017 11:49:44 GMT):
Hi, which branch to get in order to get started with fabric v1 ? v1.0.0-preview or master ? Thank you

elitani (Fri, 17 Mar 2017 14:05:04 GMT):
Has joined the channel.

ManjeetGambhir (Fri, 17 Mar 2017 16:01:53 GMT):
Has joined the channel.

ManjeetGambhir (Fri, 17 Mar 2017 16:03:10 GMT):
@mastersingh24 Hi

mastersingh24 (Fri, 17 Mar 2017 16:39:16 GMT):
hey @ManjeetGambhir

rameshthoomu (Fri, 17 Mar 2017 20:40:34 GMT):
@LoupTheron please use `master` branch for v1.0

passkit (Sat, 18 Mar 2017 14:06:10 GMT):
I have a minor bug fix that I would like to commit, but the links in `Working with a local clone and Gerrit` at https://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html are broken. Where can I find instructions on how to set up for contributing?

yacovm (Sat, 18 Mar 2017 14:07:37 GMT):
First create a jira item

yacovm (Sat, 18 Mar 2017 14:07:51 GMT):
And make a local branch

yacovm (Sat, 18 Mar 2017 14:08:10 GMT):
And setup gerrit.hyoerledger.org in git

yacovm (Sat, 18 Mar 2017 14:08:18 GMT):
And install git-review

passkit (Sat, 18 Mar 2017 14:46:52 GMT):
I get ` ! [remote rejected] HEAD -> refs/publish/master/FAB-2824 (not Signed-off-by author/committer/uploader in commit message footer)` when attempting to push. Am I missing something?

yacovm (Sat, 18 Mar 2017 15:00:29 GMT):
You need to append a signed off by line

yacovm (Sat, 18 Mar 2017 15:00:40 GMT):
Look at the commits of people in gerrit

yacovm (Sat, 18 Mar 2017 15:00:54 GMT):
The commit msg needs to contain such a line

passkit (Sat, 18 Mar 2017 15:01:20 GMT):
Doing that now. How is the Change-Id generated?

yacovm (Sat, 18 Mar 2017 15:01:55 GMT):
Ummm you can have it generated via some plugin. Srry i cant help anymore, on the phone

yacovm (Sat, 18 Mar 2017 15:02:09 GMT):
Google how to add change id :expressionless:

passkit (Sat, 18 Mar 2017 15:02:15 GMT):
No problem - will work through it

dave.enyeart (Sat, 18 Mar 2017 16:59:23 GMT):
@Jonas.Hedin there is an event infrastructure that enables client to know if the transaction they submitted got validated or invalidated. @jimthematrix this question comes up often... is there a good explanation in the docs somewhere of how SDK provides the various events to client applications?

jimthematrix (Sat, 18 Mar 2017 17:50:54 GMT):
@Jonas.Hedin We are still working on documentation, but you can get a sense of how events work by referencing the test code, in particular test/integration/e2e/instantiate-chaincode.js and invoke-transaction.js

passkit (Sun, 19 Mar 2017 06:54:21 GMT):
Trying to start a peer with my own MSP but it will panic if the sampleconfig MSP is not present.

passkit (Sun, 19 Mar 2017 06:54:50 GMT):
`2017-03-19 06:27:53.665 UTC [common/configtx/test] 1 -> CRIT 001 Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly panic: Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly`

passkit (Sun, 19 Mar 2017 06:54:50 GMT):
```2017-03-19 06:27:53.665 UTC [common/configtx/test] 1 -> CRIT 001 Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly panic: Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly```

passkit (Sun, 19 Mar 2017 06:56:48 GMT):
This is an outdated message in configtx/test/helper.go that will trigger if a /msp/sampleconfig/ folder does not exist

GeorgeSamman (Mon, 20 Mar 2017 03:50:25 GMT):
Has joined the channel.

ananth_s (Mon, 20 Mar 2017 17:42:54 GMT):
Has joined the channel.

hshimo (Tue, 21 Mar 2017 05:37:07 GMT):
I got following error, anybody knows why? ``` {"jsonrpc":"2.0","error":{"code":-32003,"message":"Query failure","data":"Error when querying chaincode: Error:Failed to launch chaincode spec(Could not get deployment transaction for mycc - LedgerError - ResourceNotFound: ledger: resource not found)"},"id":1} ``` Fabric v0.6.2 An error happens when I send the query to deployed chaincode.

hshimo (Tue, 21 Mar 2017 05:37:07 GMT):
I got following error, anybody knows why? ``` {"jsonrpc":"2.0","error":{"code":-32003,"message":"Query failure","data":"Error when querying chaincode: Error:Failed to launch chaincode spec(Could not get deployment transaction for mycc - LedgerError - ResourceNotFound: ledger: resource not found)"},"id":1} ``` Fabric peer server version 0.6.2-preview-snapshot-16debfe An error happens when I send the query to deployed chaincode.

hshimo (Tue, 21 Mar 2017 05:38:07 GMT):
It happens even I delete all blockchain data from all peers.

Xiao (Tue, 21 Mar 2017 08:09:55 GMT):
Has joined the channel.

apspeical (Tue, 21 Mar 2017 10:51:18 GMT):
when I am trying to delopy the peer, I met error. Do anyone know how to solve it. 有谁遇到过这个问题:在peer 部署时,用 #peer chaincode deploy -u jim -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}' 进行, 正确结果应该返回chaincode ID, 实际返回为空。 查询docker 的 log得到如下错误信息:

apspeical (Tue, 21 Mar 2017 10:52:00 GMT):
10:45:36.423 [chaincode] sendInitOrReady -> DEBU 4e36 handler not found for chaincode vp0_1 | 10:45:36.423 [chaincode] Launch -> ERRO 4e37 sending init failed(handler not found for chaincode ) vp0_1 | 10:45:36.423 [chaincode] Launch -> ERRO 4e38 stop failed chaincode name not set(Failed to init chaincode(handler not found for chaincode ))

apspeical (Tue, 21 Mar 2017 10:55:30 GMT):
I met the errors when I was trying to deploy peer:I am using #peer chaincode deploy -u jim -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}' , the correct result should repose chaincode ID. however, no message comes back in my case。 after I checked docker's log, I got: 10:45:36.423 [chaincode] sendInitOrReady -> DEBU 4e36 handler not found for chaincode vp0_1 | 10:45:36.423 [chaincode] Launch -> ERRO 4e37 sending init failed(handler not found for chaincode ) vp0_1 | 10:45:36.423 [chaincode] Launch -> ERRO 4e38 stop failed chaincode name not set(Failed to init chaincode(handler not found for chaincode ))

SyneBlockChainTeam (Tue, 21 Mar 2017 12:37:23 GMT):
"Endorser related Issue" While referring video "V1 Chaincode install and instentiate" from "https://www.youtube.com/watch?v=itn2Ps8sarE", all worked fine but we are facing one issue during the following "query" command: CORE_PEER_ADDRESS=peer0:7051 peer chaincode query -C myc -n mycc -v v0 -c '{"Args":["query ","a"]}' -o orderer:5005 Error: "Error endorsing query: rpc error: code = 2 desc = failed to obtain cds for mycc - transaction not found mycc/myc" Any clue please? Thanks.

dave.enyeart (Tue, 21 Mar 2017 15:02:03 GMT):
I suspect there was a hiccup during install/instantiate. I'd suggest follow the step-by-step instructions on latest v1 alpha code, they are known to work: https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst

muralisr (Tue, 21 Mar 2017 15:22:27 GMT):
Thanks @dave.enyeart the e2e instructions are more current for sure. ...@synblockchainteam since that video there have been a few changes. The error basically says trasanctions aren't getting committed. Try adding "-o orderer:7050" to the instantiate and invoke commands please

bkvellanki (Tue, 21 Mar 2017 15:58:56 GMT):
If there four peers on the network and lets say all them are on a channel, does each peer need to install chaincode on the each peer? Does the CC node not get propagated/replicated as they are on the same channel. Any reasoning behind that

bkvellanki (Tue, 21 Mar 2017 15:59:29 GMT):
It looks logical to propagate/replicate from a solution or implementation perspective?

latitiah (Tue, 21 Mar 2017 16:11:37 GMT):
@bkvellanki: in this situation the install needs to happen on all 4 peers, but the instantiate only needs to happen on 1 peer. This setup allows for an admin to control what peers can act on or be aware of differing chaincode. One may not want for all chaincode to be installed on all peers, esp. if that peer is not to be on a channel that would use the chaincode. @muralisr can correct me if I'm missing anything.

weeds (Tue, 21 Mar 2017 17:17:50 GMT):
@bkvellanki Maybe this will help?

weeds (Tue, 21 Mar 2017 17:18:05 GMT):
Chaincode is installed on peers that need to access the asset states to perform reads and writes Chaincode is instantiated on specific channels for specific peers. Ledgers exist in the scope of a channel -Ledgers can be shared across entire network of peers -Ledgers can be include only on a specific set of participants Peers can participate in multiple channels

weeds (Tue, 21 Mar 2017 17:18:21 GMT):
(SDK or the CLI can create separate channels which will isolate and segregate transactions and ledger)

weeds (Tue, 21 Mar 2017 17:18:37 GMT):
And here is a bit more technical detail: INSTALL CHAINCODE: Example shows installing sample go code onto one of four peer nodes peer chaincode install -n mycc -v 1.0 -p chaincode_example02 INSTANTIATE CHAINCODE: Instantiate the chaincode on a peer. This will launch a chaincode container for the targeted peer and set the endorsement policy for the chaincode. In this snippet, we define the policy as requiring an endorsement from one peer node that is a part of Org1. (ORG1 in our example in docker images contains PEER2 or PEER3) peer chaincode instantiate -C mychannel -n mycc -v 1.0 -p chaincode_example02 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND('Org1MSP.member')“

raj (Tue, 21 Mar 2017 17:30:57 GMT):
Has joined the channel.

bobbiejc (Tue, 21 Mar 2017 22:51:34 GMT):
Has joined the channel.

bobbiejc (Tue, 21 Mar 2017 22:52:54 GMT):
@weeds @muralisr @jimthematrix are there any examples of chaincode that do not require that the source of the chaincode reside in the fabric hierarchy (similar to the way 'learn-chaincode' taught chaincode for v.5 and v.6?)

bobbiejc (Tue, 21 Mar 2017 22:53:13 GMT):
we understand the difference between instantiate and install, but are strugging a bit with the mechanics

jimthematrix (Tue, 21 Mar 2017 23:18:10 GMT):
@bobbiejc if you checkout fabric-sdk-node repo, under test/fixtures/src you can see the sample chaincode used in the test cases are set up in a folder outside of the fabric source tree, the test programs sets up the test/fixtures folder to be the $GOPATH value dynamically, and that's the only requirement to make it work. as a side note, if you have more complicated chaincode with external dependencies besides the fabric shim, you need to put them under the "vendor" folder next to the chaincode GO source, as per golang's vendor convention

xixuejia (Wed, 22 Mar 2017 01:10:52 GMT):
Has joined the channel.

bobbiejc (Wed, 22 Mar 2017 01:46:51 GMT):
thanks @jimthematrix! we will give that sample at ry

bobbiejc (Wed, 22 Mar 2017 01:47:12 GMT):
^try

AbhilekhSingh (Wed, 22 Mar 2017 05:15:44 GMT):
Has joined the channel.

judypriest (Wed, 22 Mar 2017 12:41:14 GMT):
Has joined the channel.

davidkel (Wed, 22 Mar 2017 15:48:11 GMT):
Has joined the channel.

bobbiejc (Wed, 22 Mar 2017 18:38:01 GMT):
ok, i'm still missing how that would be deployed

bobbiejc (Wed, 22 Mar 2017 18:38:37 GMT):
is it really through the instantiate directed at a node/set of nodes

bobbiejc (Wed, 22 Mar 2017 18:39:01 GMT):
so first you 'install' -- to the channel

bobbiejc (Wed, 22 Mar 2017 18:39:36 GMT):
what distributes the code to the nodes?

bobbiejc (Wed, 22 Mar 2017 18:39:43 GMT):
@jimthematrix

jimthematrix (Wed, 22 Mar 2017 20:08:45 GMT):
@bobbiejc you install to the *peers*, then after all the peers in the channel have had the chaincode installed (understandably the install can only be done by a user from the same organization that owns the peers, so this needs to be coordinated among the orgs in the channel), you then instantiate it on the channel

jimthematrix (Wed, 22 Mar 2017 20:08:45 GMT):
@bobbiejc you install to the *peers*, then after all the peers in the channel have had the chaincode installed (understandably the install can only be done by a user from the same organization that owns the peers, so this needs to be coordinated among the orgs in the channel), you then instantiate it on the *channel*

fbenhamo (Thu, 23 Mar 2017 01:15:04 GMT):
Has joined the channel.

fbenhamo (Thu, 23 Mar 2017 01:17:40 GMT):
Hi, in the new e2e example, it is shown that the chaincode does not need to be deployed on all peers. I was wondering whether it is possible to deploy a slightly different chaincode on each peer (like with a slightly different configuration file) but with the same chaincode and channel IDs? All chaincodes should share the same ledger.

fbenhamo (Thu, 23 Mar 2017 01:17:40 GMT):
Hi, I understand that the chaincode does not need to be installed on all peers. I was wondering whether it is possible to deploy a slightly different chaincode on each peer (like with a slightly different configuration file) but with the same chaincode and channel IDs? All chaincodes should share the same ledger and see exactly the same values

PushpalathaHiremath (Thu, 23 Mar 2017 04:38:00 GMT):
Hi All, recently started migrating to v1.0 . Trying to use couchDb for state store. But unable to pull image for it. image: hyperledger/fabric-couchdb:latest it says , Pulling couchdb0 (hyperledger/fabric-couchdb:latest)... ERROR: manifest for hyperledger/fabric-couchdb:latest not found Does the sfhackfest.tar.gz contains the image ? do we need to provide something similar to what we did for peer, eg: image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0 Anyone please suggest.

rrader (Thu, 23 Mar 2017 07:08:34 GMT):
Has joined the channel.

matanyahu (Thu, 23 Mar 2017 10:57:04 GMT):
Has joined the channel.

raj (Thu, 23 Mar 2017 11:54:26 GMT):
hi @jimthematrix I am encountering the following error while installing the peer

raj (Thu, 23 Mar 2017 11:54:28 GMT):
hash:"\207\226b\250_\000\311\240\230}\022\352F\204\342079\355YG\237g\315\013V\264\333\271(\341c" from 172.26.0.6:34634 2017-03-23 05:00:30.305 UTC [gossip/comm#-1] authenticateRemotePeer -> DEBU 364 Authenticated 172.26.0.6:34634 2017-03-23 05:00:30.305 UTC [gossip/comm#-1] GossipStream -> DEBU 365 Servicing 172.26.0.6:34634 2017-03-23 05:00:30.306 UTC [gossip/comm#-1] readFromStream -> DEBU 366 [124 106 190 45 202 73 70 61 231 37 80 248 168 0 152 219 43 182 19 187 247 89 220 205 131 76 25 235 143 67 87 129] Got error, aborting: stream error: code = 1 desc = "context canceled" 2017-03-23 05:00:30.306 UTC [gossip/comm#-1] func2 -> DEBU 367 Client 172.26.0.6:34634 disconnected 2017-03-23 05:00:30.306 UTC [gossip/comm#-1] writeToStream -> DEBU 368 Closing writing to stream 2017-03-23 05:00:32.313 UTC [gossip/comm#-1] authenticateRemotePeer -> DEBU 369 Sending GossipMessage: tag:EMPTY conn: , Envelope: 608 bytes, Signature: 608 bytes to 172.26.0.6:34644

raj (Thu, 23 Mar 2017 11:55:21 GMT):
instantiating the peers. this is through the ./network_setup.sh

raj (Thu, 23 Mar 2017 11:55:42 GMT):
I had deleted the docker images etc

rrader (Thu, 23 Mar 2017 12:29:17 GMT):
host:port/chaincode method "deploy" what is actually doing this method?

saism (Thu, 23 Mar 2017 13:12:07 GMT):
@PushpalathaHiremath there are images in the repo and `make behave-deps` from a repo root can build them, `make docker-clean` if you need to clear previosly built images

saism (Thu, 23 Mar 2017 13:14:04 GMT):
also couch db image ca be pulled with just `docker pull couchdb`

ersudiplama (Thu, 23 Mar 2017 18:38:58 GMT):
Has joined the channel.

bobbiejc (Thu, 23 Mar 2017 19:28:37 GMT):
@dave.enyeart @jimthematrix is it possible to pass a json string as an argument to chaincode ?

dave.enyeart (Thu, 23 Mar 2017 19:31:47 GMT):
of course, chaincode is not picky about the contents of the arguments (array of byte arrays). the content is between you and the chaincode

rrader (Thu, 23 Mar 2017 19:50:55 GMT):
I want to store in hyperledger data about exchange usd to eur, something like(date -> rate) "21 Mar 2017" -> 0.92940 "22 Mar 2017" -> 0.92583 "23 Mar 2017" -> 0.92699 so, as I understand, first I should deploy a chaincode with empty map, and everyday I should call invoke to update the map is this how it should be?

pd93 (Thu, 23 Mar 2017 21:28:02 GMT):
Has joined the channel.

pd93 (Thu, 23 Mar 2017 21:34:47 GMT):
Hey, I'm using the CLI to create/join my channels and install/instantiate my chaincode using the following commands: ``` peer channel create -o orderer:7050 -c mych -f channel.tx peer channel join -b mych.block peer chaincode install -o orderer:7050 -n mycc -v 0.1 -p mnt/chaincode peer chaincode instantiate -o orderer:7050 -C mych -n mycc -v 0.1 -p mnt/chaincode -c '{"Args":["init"]}' -P "OR ('$CORE_PEER_LOCALMSPID.member')" peer chaincode invoke -o orderer:7050 -C mych -n mycc -c '{"Args":["addUser", "test", "Test User"]}' ``` I'm getting this error after the invoke command: `Error endorsing invoke: rpc error: code = 2 desc = Unknown error`

pd93 (Thu, 23 Mar 2017 21:35:06 GMT):
I have a single org set up with the configtxgen tool

bobbiejc (Fri, 24 Mar 2017 00:23:18 GMT):
I'm getting :

bobbiejc (Fri, 24 Mar 2017 00:23:22 GMT):
>>> Error: Error getting endorser client channel: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing

bobbiejc (Fri, 24 Mar 2017 00:23:22 GMT):
> Error: Error getting endorser client channel: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing

bobbiejc (Fri, 24 Mar 2017 00:24:00 GMT):
trying to run e2e_cli with couchdb enabled

bobbiejc (Fri, 24 Mar 2017 00:24:38 GMT):
i pulled the latest snapshot images from nexus

bobbiejc (Fri, 24 Mar 2017 00:25:21 GMT):
@dave.enyeart @AdnanC

bobbiejc (Fri, 24 Mar 2017 00:25:32 GMT):
i did run this last night with leveldb and all worked

bobbiejc (Fri, 24 Mar 2017 00:25:47 GMT):
will try to do that again recommenting out the couchdb enablement

AdnanC (Fri, 24 Mar 2017 01:33:57 GMT):
@bobbiejc at what step you are getting this error?

bobbiejc (Fri, 24 Mar 2017 01:34:26 GMT):
when the peer is trying to connect to the channel

bobbiejc (Fri, 24 Mar 2017 01:34:39 GMT):
I just complete built my images again

bobbiejc (Fri, 24 Mar 2017 01:34:41 GMT):
and will run it again

AdnanC (Fri, 24 Mar 2017 01:36:49 GMT):
you mean join channel? ok. Plesase make sure that your containers are alive . If you do `docker ps` you should see 4 peers (and 4 couch if using) alive.

bobbiejc (Fri, 24 Mar 2017 01:41:06 GMT):
i have 4 couches

bobbiejc (Fri, 24 Mar 2017 01:41:25 GMT):
1 orderer and 3 peers

bobbiejc (Fri, 24 Mar 2017 01:41:25 GMT):
1 orderer and 4 peers

bobbiejc (Fri, 24 Mar 2017 01:46:01 GMT):
> PEER0 failed to join the channel, Retry after 2 second

dave.enyeart (Fri, 24 Mar 2017 01:47:49 GMT):
@bobbiejc did you check the peer0 logs?

bobbiejc (Fri, 24 Mar 2017 01:48:39 GMT):
panic: Error in instantiating ledger provider: Unable to connect to CouchDB, check the hostname and port: Get http://couchdb0:5984/: dial tcp 172.18.0.4:5984: getsockopt: connection refused

bobbiejc (Fri, 24 Mar 2017 01:50:31 GMT):
> [notice] 2017-03-24T01:50:22.029299Z nonode@nohost <0.326.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:327) <= mem3_shards:load_shards_from_disk/1(line:315) <= mem3_shards:load_shards_from_disk/2(line:331) <= mem3_shards:for_docid/3(line:87) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) [error] 2017-03-24T01:50:22.029367Z nonode@nohost emulator -------- Error in process <0.4196.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,327}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,315}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,331}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,87}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}

bobbiejc (Fri, 24 Mar 2017 01:50:46 GMT):
ok, so seems couchdb0 is not happy

bobbiejc (Fri, 24 Mar 2017 01:51:20 GMT):
yea -- couch1 is saying the same thing

bobbiejc (Fri, 24 Mar 2017 01:51:40 GMT):
am i trying to do too much on my single laptop ;-)

AdnanC (Fri, 24 Mar 2017 01:52:13 GMT):
@bobbiejc These errors are normal couch warnings and do not indicate problem, you should find them in working scenario too. Are your Couch containers running/alive after you see the connection refused error?

bobbiejc (Fri, 24 Mar 2017 01:52:37 GMT):
yes

bobbiejc (Fri, 24 Mar 2017 01:52:39 GMT):
they are up

bobbiejc (Fri, 24 Mar 2017 01:52:50 GMT):
i guess i coudl direct fauxton at them to see, right?

bobbiejc (Fri, 24 Mar 2017 01:53:03 GMT):
(If i remembered how to do that ;-)

bobbiejc (Fri, 24 Mar 2017 01:54:24 GMT):

Message Attachments

bobbiejc (Fri, 24 Mar 2017 01:55:31 GMT):
no databases got installed

bobbiejc (Fri, 24 Mar 2017 01:56:28 GMT):
so when do the databases get created?

bobbiejc (Fri, 24 Mar 2017 01:57:21 GMT):
p.s. i'm running natively on a mac

AdnanC (Fri, 24 Mar 2017 01:58:26 GMT):
@bobbiejc can you please share the compose file you are using? You can share as a direct message to me.

bobbiejc (Fri, 24 Mar 2017 02:00:03 GMT):

Message Attachments

bobbiejc (Fri, 24 Mar 2017 02:00:24 GMT):
did that work?

raj (Fri, 24 Mar 2017 02:19:12 GMT):
Hi Bobby it is a png and it is zero bytes

bobbiejc (Fri, 24 Mar 2017 02:19:28 GMT):
yea --- we're working offline

raj (Fri, 24 Mar 2017 02:19:32 GMT):
ok

bobbiejc (Fri, 24 Mar 2017 02:19:38 GMT):

Message Attachments

raj (Fri, 24 Mar 2017 02:20:17 GMT):
I might need help with my issue too

bobbiejc (Fri, 24 Mar 2017 02:39:30 GMT):
update: my couchdb containers would spin up, but they didn't start in time for the peer to connect

bobbiejc (Fri, 24 Mar 2017 02:39:42 GMT):
running manually now, should work...

bobbiejc (Fri, 24 Mar 2017 02:39:47 GMT):
@AdnanC ^^

mgk (Fri, 24 Mar 2017 09:09:15 GMT):
Has joined the channel.

markparz (Fri, 24 Mar 2017 13:33:14 GMT):
@dave.enyeart @bmos299 hey guys check out ^^

dave.enyeart (Fri, 24 Mar 2017 13:33:48 GMT):
@markparz I got bobbie running last night :)

markparz (Fri, 24 Mar 2017 13:34:55 GMT):
I'm thinking it would be good if we make sure we are logging these sort of things in stack overflow... the symptom and cure

markparz (Fri, 24 Mar 2017 13:35:33 GMT):
and/or FAQ if that's the better fit

dave.enyeart (Fri, 24 Mar 2017 13:35:33 GMT):
strict adherence to the e2e instructions got it working

markparz (Fri, 24 Mar 2017 13:35:48 GMT):
I want to start mining thru some of these sort of things

markparz (Fri, 24 Mar 2017 13:36:37 GMT):
ok, that's a really good one to have

joe-alewine (Fri, 24 Mar 2017 13:59:40 GMT):
Has joined the channel.

dave.enyeart (Fri, 24 Mar 2017 14:15:43 GMT):
@markparz the other troubleshooting takeaway is to watch docker logs closely at each step. identify if there are any problems BEFORE moving on to later steps. `docker logs `

dave.enyeart (Fri, 24 Mar 2017 14:16:09 GMT):
the e2e instructions mention that a few times, but it needs to be more emphasized

dave.enyeart (Fri, 24 Mar 2017 14:16:09 GMT):
the e2e instructions mentions logs, but it needs to be more emphasized

pd93 (Fri, 24 Mar 2017 14:40:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jZFfnR7eCNB8eFYgb) @dave.enyeart I still can't seem to get past this. Do you have any idea what might be wrong?

dave.enyeart (Fri, 24 Mar 2017 14:41:43 GMT):
what does it say in the peer0 log? `docker logs peer0`

raj (Fri, 24 Mar 2017 14:43:02 GMT):
Hi Dave, I am encountering issue in my hyperledger installation

raj (Fri, 24 Mar 2017 14:44:29 GMT):
I am getting exception instantiating on peer2 which is on org1. I am using the e2e script

raj (Fri, 24 Mar 2017 14:44:45 GMT):
Is it possible to help me @dave.enyeart

dave.enyeart (Fri, 24 Mar 2017 14:47:42 GMT):
i'd suggest get it working on peer0 first. cli env variables default to using peer0. watch the peer0 logs so that you know what to expect. then try on peer2 by setting the env variables for peer0 and org1. do the steps one at a time and watch the peer2 logs, and compare to peer0 logs. what is the difference?

dave.enyeart (Fri, 24 Mar 2017 14:47:42 GMT):
i'd suggest get it working on peer0 first. cli env variables default to using peer0. watch the peer0 logs so that you know what to expect. then try on peer2 by setting the env variables for peer2 and org1. do the steps one at a time and watch the peer2 logs, and compare to peer0 logs. what is the difference?

pd93 (Fri, 24 Mar 2017 14:53:10 GMT):
@dave.enyeart this is all that appears in the docker logs when I run the invoke command ``` orderer | 2017-03-24 14:52:31.243 UTC [orderer/main] Broadcast -> DEBU 3a0 Starting new Broadcast handler couchdb0 | [notice] 2017-03-24T14:52:31.246397Z nonode@nohost <0.2852.0> 0dfd8d8c95 couchdb0:5984 172.18.0.5 undefined GET /mych/lccc%00mycc?attachments=true 200 ok 1 couchdb0 | [notice] 2017-03-24T14:52:31.248072Z nonode@nohost <0.2853.0> 42be050801 couchdb0:5984 172.18.0.5 undefined GET /mych/mycc%00lastUserID?attachments=true 404 ok 0 ```

pd93 (Fri, 24 Mar 2017 14:55:08 GMT):
I can run an invoke/query against another function I've made successfully, but that function doesn't perform a `PutState()` or `GetState()` like the `addUser` function does. This is why I think it may be something wrong with couchdb

dave.enyeart (Fri, 24 Mar 2017 14:56:39 GMT):
please try with example02 or marbles02 first, so that we're looking at common scenario

pd93 (Fri, 24 Mar 2017 14:57:24 GMT):
Sure, 1 sec

raj (Fri, 24 Mar 2017 14:58:05 GMT):
ok. the error I am getting is ./network_setup.sh up

raj (Fri, 24 Mar 2017 15:00:46 GMT):
It is trying to instantiate the chain code on Peer02 Hanging for quite sometime and then failing. Is there any word(s) pattern I should search for in the log ?

raj (Fri, 24 Mar 2017 15:00:55 GMT):
===================== Chaincode is installed on remote peer PEER2 ===================== Instantiating chaincode on Peer2/Org1 ... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer2/localMspConfig/cacerts/peerOrg1.pem CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig/keystore/peer0Signer.pem CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer0/localMspConfig/signcerts/peer0Signer.pem CORE_PEER_ADDRESSAUTODETECT=true CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peer/peer2/localMspConfig CORE_PEER_ID=cli CORE_LOGGING_LEVEL=DEBUG CORE_PEER_GOSSIP_IGNORESECURITY=true CORE_PEER_ADDRESS=peer2:7051 CORE_PEER_ENDORSER_ENABLED=true CORE_NEXT=true

raj (Fri, 24 Mar 2017 15:01:03 GMT):
this is where it hangs

AdnanC (Fri, 24 Mar 2017 15:01:39 GMT):
@raj, give it some time, it stops here for a handful of seconds

raj (Fri, 24 Mar 2017 15:01:50 GMT):
I checked for the word abort and error and they are there in Peer0 and peer1

raj (Fri, 24 Mar 2017 15:02:33 GMT):
after that I get an exception

raj (Fri, 24 Mar 2017 15:04:05 GMT):
@AdnanC here is the error

raj (Fri, 24 Mar 2017 15:04:06 GMT):
2017-03-24 14:58:06.219 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 005 Using default vscc 2017-03-24 14:58:06.223 UTC [msp] Sign -> DEBU 006 Sign: plaintext: 0A8F050A59080322096D796368616E6E...314D53500A04657363630A0476736363 2017-03-24 14:58:06.223 UTC [msp] Sign -> DEBU 007 Sign: digest: DBFFA83D382A4B197DE7A2A944596DEEAF963E2E7C0F4ED2B0157FFAF8AB3BBC Error: Error endorsing chaincode: rpc error: code = 2 desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer2,tx:00300f19a7e1694e52806a34804c5ef808804e65b2f75d8fe415747b0a20bc26) Usage: peer chaincode instantiate [flags] Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint -C, --chainID string The chain on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") --logging-level string Default logging level and overrides, see core.yaml for full syntax -n, --name string Name of the chaincode -o, --orderer string Ordering service endpoint -p, --path string Path to chaincode -P, --policy string The endorsement policy associated to this chaincode --test.coverprofile string Done (default "coverage.cov") -t, --tid string Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 --tls Use TLS when communicating with the orderer endpoint -u, --username string Username for chaincode operations when security is enabled -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode !!!!!!!!!!!!!!! Chaincode instantiation on PEER2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario =================

raj (Fri, 24 Mar 2017 15:05:03 GMT):
here is my docker ps

raj (Fri, 24 Mar 2017 15:05:04 GMT):
| => docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0be4ac4056ef hyperledger/fabric-peer "peer node start -..." 7 minutes ago Up 7 minutes 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer3 e0f0e9d24744 hyperledger/fabric-peer "peer node start -..." 7 minutes ago Up 7 minutes 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer2 bb160699aa83 hyperledger/fabric-peer "peer node start -..." 7 minutes ago Up 7 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1 2a45c2b9f18e hyperledger/fabric-peer "peer node start -..." 7 minutes ago Up 7 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0 fb899763b773 hyperledger/fabric-orderer "orderer" 7 minutes ago Up 7 minutes 0.0.0.0:7050->7050/tcp orderer0

pd93 (Fri, 24 Mar 2017 15:06:13 GMT):
@dave.enyeart The chaincode_example02 installed and instantiated fine, but when invoking or querying I get `The creator certificate is not valid, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority`

pd93 (Fri, 24 Mar 2017 15:06:42 GMT):
a and b have been created in couchdb

AdnanC (Fri, 24 Mar 2017 15:06:51 GMT):
@raj can you do a `docker ps -a`? I dont see the chaincode container that should be there

AdnanC (Fri, 24 Mar 2017 15:06:51 GMT):
@raj can you do a `docker ps -a`? I dont see the chaibcode container that should be there

AdnanC (Fri, 24 Mar 2017 15:07:20 GMT):
@pd93 did the exact scenario work with leveldb?

raj (Fri, 24 Mar 2017 15:07:36 GMT):
ONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 374ee150850e hyperledger/fabric-peer "/bin/bash -c './s..." 9 minutes ago Exited (1) 3 minutes ago cli 0be4ac4056ef hyperledger/fabric-peer "peer node start -..." 9 minutes ago Up 9 minutes 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer3 e0f0e9d24744 hyperledger/fabric-peer "peer node start -..." 9 minutes ago Up 9 minutes 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer2 bb160699aa83 hyperledger/fabric-peer "peer node start -..." 9 minutes ago Up 9 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1 2a45c2b9f18e hyperledger/fabric-peer "peer node start -..." 9 minutes ago Up 9 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0 fb899763b773 hyperledger/fabric-orderer "orderer" 9 minutes ago Up 9 minutes 0.0.0.0:7050->7050/tcp orderer0

raj (Fri, 24 Mar 2017 15:07:36 GMT):
2017-03-24 14:58:06.223 UTC [msp] Sign -> DEBU 007 Sign: digest: DBFFA83D382A4B197DE7A2A944596DEEAF963E2E7C0F4ED2B0157FFAF8AB3BBC Error: Error endorsing chaincode: rpc error: code = 2 desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer2,tx:00300f19a7e1694e52806a34804c5ef808804e65b2f75d8fe415747b0a20bc26) Usage:

pd93 (Fri, 24 Mar 2017 15:08:39 GMT):
@AdnanC I haven't tried leveldb with the chaincode example

pd93 (Fri, 24 Mar 2017 15:08:43 GMT):
Can try now though

AdnanC (Fri, 24 Mar 2017 15:09:21 GMT):
@pd93 try with `./network.sh up` should run the whole e2e test for you

pd93 (Fri, 24 Mar 2017 15:10:13 GMT):
the e2e test runs fine

AdnanC (Fri, 24 Mar 2017 15:10:25 GMT):
ok

pd93 (Fri, 24 Mar 2017 15:12:58 GMT):
ok... my setup just failed to bring up the chaincode_example with couchdb disabled..

pd93 (Fri, 24 Mar 2017 15:14:13 GMT):
During channel join `Error: Error getting endorser client channel: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing`

AdnanC (Fri, 24 Mar 2017 15:15:44 GMT):
@pd93 is this with your own 1 org layout?

pd93 (Fri, 24 Mar 2017 15:15:52 GMT):
yess

AdnanC (Fri, 24 Mar 2017 15:15:59 GMT):
Though it looks like something different

AdnanC (Fri, 24 Mar 2017 15:15:59 GMT):
it looks like something different than endorsing issue

AdnanC (Fri, 24 Mar 2017 15:15:59 GMT):
Though it looks like something different than endorsing issue

pd93 (Fri, 24 Mar 2017 15:16:37 GMT):
Strange that channel join works if I enable couchdb though..

ericmvaughn (Fri, 24 Mar 2017 15:20:44 GMT):
Has joined the channel.

AdnanC (Fri, 24 Mar 2017 15:21:22 GMT):
@pd93 It seems like there are multiple issues. I would recommend this workflow 1) Get the default e2e to work (with leveldb and ./network.sh up) 2) get it to work with default goleveldb with manually doing the channel join,install/instantiate etc. 3) Work with your org. layout and with default leveldb with manually doing the join+install etc

AdnanC (Fri, 24 Mar 2017 15:21:32 GMT):
this would help locate the issue

pd93 (Fri, 24 Mar 2017 15:41:35 GMT):
e2e - out of the box - works e2e - couchdb - works

pd93 (Fri, 24 Mar 2017 15:41:59 GMT):
there's nothing wrong with that. The problem is when I use my own single org in the configtx tool.

AdnanC (Fri, 24 Mar 2017 15:42:19 GMT):
hmm ok

pd93 (Fri, 24 Mar 2017 15:42:25 GMT):
It will then create/join channel and install/instantiate chaincode happily

pd93 (Fri, 24 Mar 2017 15:42:41 GMT):
Just the invoke/query stuff that involves calls to the ledger that are causing issues

pd93 (Fri, 24 Mar 2017 15:43:01 GMT):
I can still invoke/query a test function that returns a string successfully

pd93 (Fri, 24 Mar 2017 15:45:04 GMT):
Can we go over what the envvars should be set to for each command?

AdnanC (Fri, 24 Mar 2017 15:46:49 GMT):
Let me try to reproduce , can you let me know the exact steps for your 1 org scenario

pd93 (Fri, 24 Mar 2017 15:47:38 GMT):
Sure, I'll send you some files in a private chat

AdnanC (Fri, 24 Mar 2017 15:48:32 GMT):
:+1:

bobbiejc (Fri, 24 Mar 2017 15:55:14 GMT):
is there any advice on structuring chain-code so that multiple chain-code can share libraries?

muralisr (Fri, 24 Mar 2017 15:57:52 GMT):
@bobbiejc there are two aspects to chaincode ...development and install. There is no notion of sharing libraries on the peer itself (each chaincode is separate). I assume the question is during dev/test ?

bobbiejc (Fri, 24 Mar 2017 16:04:50 GMT):
they want to share routines between the chaincode...

bobbiejc (Fri, 24 Mar 2017 16:05:07 GMT):
they have separate asset types, want to create separate chaincode per asset types

bobbiejc (Fri, 24 Mar 2017 16:05:41 GMT):
but there are common functions they want to share between the chaincode... (and we are go newbies, so maybe this is obvious to others)

bobbiejc (Fri, 24 Mar 2017 16:06:17 GMT):
so they were thinking of creating a library, and then including those as packages... but then how do their local packages make it to the chain during install..

muralisr (Fri, 24 Mar 2017 16:38:38 GMT):
they will create common packages and just `import` them in different chaincodes. The install command will assemble the chaincode with each common package and install it on the peer. there would be no sharing in the peer after install

bobbiejc (Fri, 24 Mar 2017 16:39:48 GMT):
ok -- good to know

bobbiejc (Fri, 24 Mar 2017 16:39:56 GMT):
so partitioning of chaincode is a tricky question

bobbiejc (Fri, 24 Mar 2017 16:40:19 GMT):
would they be better to put all of teh assets in a single chaincode? but then adding a new asset requires changing existing working chaincode

muralisr (Fri, 24 Mar 2017 17:08:50 GMT):
If asset is modelled using chaincode state , you wouldn't have to change the code itself ... or are you thinking of a new asset `type`

muralisr (Fri, 24 Mar 2017 17:09:57 GMT):
if you are changing the asset type (adding, modififying an attribute of an existing type , etc) you'd have to change the code

markparz (Fri, 24 Mar 2017 17:29:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=atgJ7P6DxwdRGySTv) @pd93 Hey if you wouldn't mind when you get this figured out putting it in Stackoverflow, or sending me the info I can add it, would be good to help some others too

pd93 (Fri, 24 Mar 2017 17:30:16 GMT):
@markparz I've created a JIRA so you can follow for now https://jira.hyperledger.org/browse/FAB-2876

markparz (Fri, 24 Mar 2017 17:30:31 GMT):
great, thanks

raj (Fri, 24 Mar 2017 18:34:45 GMT):
Hi All I am using mac for installing V1, I was successful installing on vagrant. However when use docker and not vagrant I get the following issues

jeffgarratt (Fri, 24 Mar 2017 18:34:56 GMT):
Has joined the channel.

raj (Fri, 24 Mar 2017 18:35:20 GMT):
make docker has the following

raj (Fri, 24 Mar 2017 18:35:42 GMT):
when I do docker images

raj (Fri, 24 Mar 2017 18:36:26 GMT):
=> docker images REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-couchdb latest 3abe26f9c720 19 minutes ago 1.51 GB hyperledger/fabric-couchdb x86_64-1.0.0-snapshot-6039474 3abe26f9c720 19 minutes ago 1.51 GB hyperledger/fabric-kafka latest 7251520775c6 25 minutes ago 1.3 GB hyperledger/fabric-kafka x86_64-1.0.0-snapshot-6039474 7251520775c6 25 minutes ago 1.3 GB hyperledger/fabric-zookeeper latest 493e40bad006 25 minutes ago 1.31 GB hyperledger/fabric-zookeeper x86_64-1.0.0-snapshot-6039474 493e40bad006 25 minutes ago 1.31 GB hyperledger/fabric-testenv latest e740ae7e9cf4 26 minutes ago 1.4 GB hyperledger/fabric-testenv x86_64-1.0.0-snapshot-6039474 e740ae7e9cf4 26 minutes ago 1.4 GB hyperledger/fabric-buildenv latest 5444357cd69c 28 minutes ago 1.31 GB hyperledger/fabric-buildenv x86_64-1.0.0-snapshot-6039474 5444357cd69c 28 minutes ago 1.31 GB hyperledger/fabric-baseimage x86_64-0.3.0 f4751a503f02 8 weeks ago 1.27 GB

raj (Fri, 24 Mar 2017 18:37:32 GMT):
as you can see orderer is not there. when I explicitly say make peer and make orderer they dont work ( I am using the right commands from the e2e_cli example). Any guidance is appreciated

mastersingh24 (Fri, 24 Mar 2017 19:20:48 GMT):
@raj - can you run `make peer-docker` and see if you get any errors?

raj (Fri, 24 Mar 2017 19:21:52 GMT):
| => make docker-peer make: *** No rule to make target `docker-peer'. Stop.

mastersingh24 (Fri, 24 Mar 2017 19:29:20 GMT):
@raj - it's the reverse - `peer-docker` not `docker-peer`

raj (Fri, 24 Mar 2017 22:38:15 GMT):
phew got it to work

raj (Fri, 24 Mar 2017 22:38:44 GMT):
@AdnanC wanted me to try this There might be some installations needed for this to work on mac (homebrew, gnutar, and libtool) from a freshly cloned repo, (please do not use old one), try this if you havent done it, in the fabric folder: `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` `brew install gnu-tar --with-default-names` `brew install libtool` and then do `make clean docker-clean dist-clean` and the rest

raj (Fri, 24 Mar 2017 22:39:20 GMT):
Although it said I have all the packages it seem to have helped me

raj (Fri, 24 Mar 2017 22:40:35 GMT):
for those who dont want to try vagrant. this is with just docker

raj (Fri, 24 Mar 2017 22:40:37 GMT):
AdnanC1:46 PM so heres the workflow: 1) after getting fabric, 2) do a `make docker` 3) go to `fabric/examples/e2e_cli` 4) run `docker rm -f $(docker ps -aq)` 5) do a `./network.sh up

raj (Fri, 24 Mar 2017 22:40:37 GMT):
I have the fabric running with e2e example on docker without vagrant. I want to introduce my owne chaincode. Is there a set of steps I can use

raj (Fri, 24 Mar 2017 22:41:21 GMT):
courtesy of @AdnanC

gvlax (Sat, 25 Mar 2017 13:29:53 GMT):
Is a known issue that when you run your peers using `docker-compose` then log messages (or fmt.Print*) produced by a deployed chaincode are not visible in the logs of the peers (for example, `docker logs peer0` ) ??? I am trying the _http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html_ example, everything works as expected by I cannot see any logs nowhere ...

gvlax (Sat, 25 Mar 2017 13:29:53 GMT):
Is it a known issue that when you run your peers using `docker-compose` then log messages (or fmt.Print*) produced by a deployed chaincode are not visible in the logs of the peers (for example, `docker logs peer0` ) ??? I am trying the _http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html_ example, everything works as expected by I cannot see any logs nowhere ...

gvlax (Sat, 25 Mar 2017 13:29:53 GMT):
Is it a known issue that when you run your peers using `docker-compose` then log messages (or fmt.Print*) produced by a deployed chaincode are not visible in the logs of the peers (for example, `docker logs peer0` ) ??? I am trying the _http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html_ example, everything works as expected but I cannot see any logs nowhere ...

gvlax (Sat, 25 Mar 2017 13:29:53 GMT):
Is it a known issue that when you run your peers using `docker-compose` then log messages (or fmt.Print*) produced by a deployed chaincode are not visible in the logs of the peers (for example, `docker logs peer0` ) ??? I am trying the _http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html_ example, everything works as expected but I cannot see any logs produced by the chaincode anywhere ...

yacovm (Sat, 25 Mar 2017 13:37:54 GMT):
these are logged into the chaincode container, @gvlax

yacovm (Sat, 25 Mar 2017 13:38:03 GMT):
do `docker ps` and see that you have a chaincode container there

yacovm (Sat, 25 Mar 2017 13:38:19 GMT):
then do `docker logs `

yacovm (Sat, 25 Mar 2017 13:38:20 GMT):
and see

mastersingh24 (Sat, 25 Mar 2017 13:40:53 GMT):
@gvlax - not sure if "known issue" is the "proper" term since this is simply the way things are given the fact that chaincode runs in Docker containers.

mastersingh24 (Sat, 25 Mar 2017 13:41:13 GMT):
BUT - https://github.com/hyperledger/fabric/blob/master/docs/source/Setup/logging-control.rst#go-chaincodes - checkout the `CORE_VM_DOCKER_ATTACHSTDOUT=true` part

gvlax (Sat, 25 Mar 2017 13:43:01 GMT):
@yacovm You mean `peer0`, `peer1`, `peer2` ? If so, the logs are not visible there. In my chain code I use fmt and log.logger and no outputs from the golang code in that logs ... I will check @mastersingh24 advice ...

yacovm (Sat, 25 Mar 2017 13:43:11 GMT):
no....

yacovm (Sat, 25 Mar 2017 13:43:25 GMT):
I mean, do `docker ps` and tell what you see :)

gvlax (Sat, 25 Mar 2017 13:44:45 GMT):
You mean those strange containers? :-) ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0be5f8fe5f1e peer0-peer1-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 21 minutes ago Up 21 minutes peer0-peer1-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 ed9d40271efc peer0-peer2-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 21 minutes ago Up 21 minutes peer0-peer2-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 b52675237fae peer0-peer0-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 21 minutes ago Up 21 minutes peer0-peer0-mycc2-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 bb38f67fd8df peer0-peer0-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 41 minutes ago Up 41 minutes peer0-peer0-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 aafd4c731193 peer0-peer2-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 41 minutes ago Up 41 minutes peer0-peer2-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 d74a84f6f1e3 peer0-peer1-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 "/opt/gopath/bin/m..." 41 minutes ago Up 41 minutes peer0-peer1-mycc-0-c659a47dce16ded8af86b9f91dfc411edac0416e43dff2ced2faac39f7633bbbde2fcc9a65a5d07adaeca3513c970f7b8b9f4125848bea488e5e1cfc85db5ac0 b211c3820def sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0 "sh -c './channel_..." 47 minutes ago Up 47 minutes cli b16f9c71d9de sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0 "peer node start -..." 47 minutes ago Up 47 minutes 0.0.0.0:8056->7051/tcp peer2 ac7d8c0bee9b sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0 "peer node start -..." 47 minutes ago Up 47 minutes 0.0.0.0:8055->7051/tcp peer1 fa0d3b07b6d3 sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0 "peer node start -..." 47 minutes ago Up 47 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0 7c75266b2aa3 sfhackfest22017/fabric-orderer:x86_64-0.7.0-snapshot-c7b3fe0 "orderer" 47 minutes ago Up 47 minutes 0.0.0.0:8050->7050/tcp orderer 79e90fc065b3 sfhackfest22017/fabric-ca:x86_64-0.7.0-snapshot-6294c57 "sh -c 'sleep 10; ..." 47 minutes ago Up 47 minutes 0.0.0.0:8054->7054/tcp ca ```

yacovm (Sat, 25 Mar 2017 13:46:35 GMT):
yeah

yacovm (Sat, 25 Mar 2017 13:46:46 GMT):
`docker ps | grep mycc`

gvlax (Sat, 25 Mar 2017 13:48:05 GMT):
Wow, I am going to check this out! So every chaincode is running in its separate container? Not inside a peer?

gvlax (Sat, 25 Mar 2017 13:48:05 GMT):
@yacovm Wow, I am going to check this out! So every chaincode is running in its separate container? Not inside a peer?

gvlax (Sat, 25 Mar 2017 13:51:14 GMT):
@yacovm Yes, there are my the log messages there! Thank you very much! :-D

yacovm (Sat, 25 Mar 2017 13:51:40 GMT):
yes. user chaincodes are running in containers

rrader (Sat, 25 Mar 2017 13:52:38 GMT):
is it possible to allow for someone in hyperledger rigth only to read, and to others read+write?

gvlax (Sat, 25 Mar 2017 14:02:41 GMT):
@yacovm BTW, do you know if it is possible to make fabric create more friendly names for that containers?

yacovm (Sat, 25 Mar 2017 14:11:35 GMT):
Maybe. what did you have in mind?

gvlax (Sat, 25 Mar 2017 14:19:14 GMT):
@yacovm, I mean whether you can configure somewhere what is to be a name of a container for your chaincode ...

yacovm (Sat, 25 Mar 2017 14:19:44 GMT):
I don't think you can.

gvlax (Sat, 25 Mar 2017 14:20:05 GMT):
yes, names must be unique etc ...

muralisr (Sat, 25 Mar 2017 20:40:50 GMT):
@gvlax the chaincode container derives its name from a few properties in core.yaml such as peer's ID, chaincode name and version. Beyond that there's no user control

rrader (Sun, 26 Mar 2017 11:05:30 GMT):
https://stackoverflow.com/questions/43017514/roles-readwrite-in-hyperledger

mastersingh24 (Sun, 26 Mar 2017 15:11:13 GMT):
@rrader - http://stackoverflow.com/a/43030473/6160507 - more to come but should help with basic understanding of how things do/will work with fabric v1.0.0

s.narayanan (Sun, 26 Mar 2017 19:57:32 GMT):
During chaincode instantiation the endorsement policy is deployed to all peers on the channel (i.e. both endorsers and committers). In this event where is the endorsement policy itself stored on the peer (e.g. file system, ledger etc.)? Since instantiation involves running the initialization logic (and initializing the state), how can committing peers that do not have chaincode installed run such initialization logic?

muralisr (Sun, 26 Mar 2017 20:47:36 GMT):
@s.narayanan the policy is stored along with the instantiation informaition in the life cycle system chaincode for the channel (ie, in the channel's ledger). this information along with state for the chaincode is on the transaction for the instantiation and is disseminated to all peers in the channel via the block containing that TX

mraikwar (Mon, 27 Mar 2017 07:17:20 GMT):
Has joined the channel.

rrader (Mon, 27 Mar 2017 07:31:45 GMT):
What mean path in "chaincodeID":{ "path":"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" } on deploy

rrader (Mon, 27 Mar 2017 07:35:53 GMT):
it should be a folder on github, on on local machine?

rrader (Mon, 27 Mar 2017 07:35:53 GMT):
it should be a folder on github, or on local machine?

bh4rtp (Mon, 27 Mar 2017 08:22:58 GMT):
Has joined the channel.

bh4rtp (Mon, 27 Mar 2017 08:23:05 GMT):
hi, are invoke and query different with endorsing? the following is our testing. 1. install and instantiate chaincode on peer2 and peer3, invoke will be ok on peer0 for endorsement policy -P "OR ('Org0MSP.member', 'Org1MSP.member')", while query fails with error endorsing query. 2. install and instantiate chaincode on peer2 and peer3, both invoke and query will fail on peer0 for endorsement policy -P "AND ('Org0MSP.member', 'Org1MSP.member')" it seems reasonable for -P "AND ('Org0MSP.member', 'Org1MSP.member')". i just cannot understand for -P "OR ('Org0MSP.member', 'Org1MSP.member')"

bh4rtp (Mon, 27 Mar 2017 08:23:05 GMT):
hi, are invoke and query different in endorsing? the following is our testing. 1. install and instantiate chaincode on peer2 and peer3, invoke will be ok on peer0 for endorsement policy -P "OR ('Org0MSP.member', 'Org1MSP.member')", while query fails with error endorsing query. 2. install and instantiate chaincode on peer2 and peer3, both invoke and query will fail on peer0 for endorsement policy -P "AND ('Org0MSP.member', 'Org1MSP.member')" it seems reasonable for -P "AND ('Org0MSP.member', 'Org1MSP.member')". i just cannot understand for -P "OR ('Org0MSP.member', 'Org1MSP.member')"

bh4rtp (Mon, 27 Mar 2017 08:23:05 GMT):
hi, are invoke and query different in endorsing? the following is our testing. 1. install and instantiate chaincode on peer2 and peer3, invoke will be ok on peer0 for endorsement policy -P "OR ('Org0MSP.member', 'Org1MSP.member')", while query fails with error endorsing query. 2. install and instantiate chaincode on peer2 and peer3, both invoke and query will fail on peer0 for endorsement policy -P "AND ('Org0MSP.member', 'Org1MSP.member')" it seems reasonable for -P "AND ('Org0MSP.member', 'Org1MSP.member')". i just cannot understand the first -P "OR ('Org0MSP.member', 'Org1MSP.member')" policy scenario.

bh4rtp (Mon, 27 Mar 2017 08:23:05 GMT):
hi, are invoke and query different in endorsing? the following is marbles testing. 1. install chaincode on peer0, install and instantiate on peer3, invoke will be ok on peer0 for endorsement policy -P "OR ('Org0MSP.member', 'Org1MSP.member')", while query fails with error endorsing query. 2. install chaincode on peer2, install and instantiate peer3, both invoke and query will fail on peer0 for endorsement policy -P "AND ('Org0MSP.member', 'Org1MSP.member')" it seems reasonable for -P "AND ('Org0MSP.member', 'Org1MSP.member')". i just cannot understand the first -P "OR ('Org0MSP.member', 'Org1MSP.member')" policy scenario.

bh4rtp (Mon, 27 Mar 2017 08:23:05 GMT):
hi, are invoke and query different in endorsing? the following is marbles testing. 1. install chaincode on peer0, install and instantiate on peer3, invoke will be ok on peer2 for endorsement policy -P "OR ('Org0MSP.member', 'Org1MSP.member')", while query fails with error endorsing query. 2. install chaincode on peer2, install and instantiate peer3, both invoke and query will fail on peer2 for endorsement policy -P "AND ('Org0MSP.member', 'Org1MSP.member')" it seems reasonable for -P "AND ('Org0MSP.member', 'Org1MSP.member')". i just cannot understand the first -P "OR ('Org0MSP.member', 'Org1MSP.member')" policy scenario.

joe-alewine (Mon, 27 Mar 2017 18:38:25 GMT):
How is it determined how a transaction (as submitted by the client through their SDK) falls under the specific endorsement policy that governs it?

joe-alewine (Mon, 27 Mar 2017 18:39:19 GMT):
Does the client/SDK decide which endorsement policy is relevant? Does a specific endorser (or group of endorsers) decide? Is there a smart contract that determines it?

mastersingh24 (Mon, 27 Mar 2017 20:03:55 GMT):
@joe-alewine - endorsement policies are specified as part of the chaincode instantiate transaction

joe-alewine (Mon, 27 Mar 2017 20:10:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jWtXqaQPp9qyXQkHZ) @mastersingh24 How is this done? What determines which is the correct endorsement policy for a specific transaction?

mastersingh24 (Mon, 27 Mar 2017 20:12:27 GMT):
endorsement policies are configured / enforced at the channel/chaincode level not on a per transaction basis

mastersingh24 (Mon, 27 Mar 2017 20:13:36 GMT):
so if I call CC1 and channel1, there's an endorsement policy that was configured when CC1 was instantiated on channel1

joe-alewine (Mon, 27 Mar 2017 20:14:29 GMT):
So the same endorsement policy is used on a particular channel regardless of the nature of the transaction?

mastersingh24 (Mon, 27 Mar 2017 20:18:25 GMT):
sorry - it's the channel + chaincode (because I could instantiate the same chaincode on multiple channels but have a different endorsement policy for that chaincode on each channel to which it is deployed)

mastersingh24 (Mon, 27 Mar 2017 20:19:21 GMT):
BTW - are you related to Neal by chance?

joe-alewine (Mon, 27 Mar 2017 20:19:46 GMT):
Darth Vader voice: "He is my father"

mastersingh24 (Mon, 27 Mar 2017 20:20:09 GMT):
nice. used to work with Neal on DataPower

joe-alewine (Mon, 27 Mar 2017 20:20:58 GMT):
Neat. I think I remember him talking about a Gari Singh

joe-alewine (Mon, 27 Mar 2017 20:23:03 GMT):
Anyway, is there a possibility that a different endorsement policy would be necessary/preferable within the same channel? I'm new to this tech but it seems to me that you might for example want -- or need -- different sets of endorsers

joe-alewine (Mon, 27 Mar 2017 20:23:39 GMT):
or a different policy in one way or another for one transaction as compared to another

ersudiplama (Mon, 27 Mar 2017 20:40:35 GMT):

Message Attachments

mastersingh24 (Mon, 27 Mar 2017 21:39:35 GMT):
brew install libtool

Hangyu (Tue, 28 Mar 2017 04:24:57 GMT):
hi all, I have pulled the images of alpha and test went smoothly when ordering service was in solo. I want to run kafka instead, so how I can do that? I have the images of kafka and zookeeper...

jansony1 (Tue, 28 Mar 2017 06:33:18 GMT):
Has joined the channel.

Hangyu (Tue, 28 Mar 2017 09:28:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GrRuwk3jx2L5Z4bbj) never mind, got it

PushpalathaHiremath (Tue, 28 Mar 2017 11:11:34 GMT):
Hi All, I'm new to v1.0. Trying to run examples other than examples_cc. Getting the following error , any idea? [2017-03-28 03:42:19.268] [INFO] DEPLOY - Executing Deploy {"chaincodePath":"github.com/hyperledger/fabric/examples/chaincode/go/map","chaincodeId":"mycc","fcn":"init","args":["a","100","b","200"],"chainId":"myc1","txId":{"type":"Buffer","data":[175,89,220,95,188,153,128,216,73,38]},"nonce":{"type":"Buffer","data":[122,165,56,1,60,125,134,13,159,117,43,83,74,4,125,17,218,75,223,131,147,167,188,189]},"dockerfile-contents":"from hyperledger/fabric-ccenv\n COPY . $GOPATH/src/build-chaincode/\n WORKDIR $GOPATH\n\n RUN go install build-chaincode && mv $GOPATH/bin/build-chaincode $GOPATH/bin/%s"} error: [Peer.js]: GRPC client got an error response from the peer. Error: Failed to deploy chaincode spec(Error creating image: %!s()) at /Users/Pushpalatha/go/FABRIC_V1.0/hackfest/node_modules/grpc/src/node/src/client.js:434:17 error: [Chain.js]: Chain-sendPeersProposal - Promise is rejected: Error: Error: Failed to deploy chaincode spec(Error creating image: %!s()) at Object.callback (/Users/Pushpalatha/go/FABRIC_V1.0/hackfest/node_modules/fabric-client/lib/Peer.js:191:13) at /Users/Pushpalatha/go/FABRIC_V1.0/hackfest/node_modules/grpc/src/node/src/client.js:437:14

PushpalathaHiremath (Tue, 28 Mar 2017 11:11:34 GMT):
Hi All, I'm new to v1.0. Trying to run examples other than examples_cc. Getting the following error , any idea? {"send_metadata":true,"send_message":true,"client_close":true,"metadata":{},"read":null,"status":{"code":2,"details":"Failed to deploy chaincode spec(Error creating image: %!s())","metadata":{"_internal_repr":{}}}}

PushpalathaHiremath (Tue, 28 Mar 2017 11:13:26 GMT):
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In the cli command mode as well i get path not found issue, though that path exists. 2017-03-28 09:19:31.447 UTC [logging] InitFromViper -> DEBU 024 Setting default logging level to DEBUG for command 'chaincode' 2017-03-28 09:19:31.450 UTC [peer] GetLocalMSP -> INFO 025 Returning existing local MSP 2017-03-28 09:19:31.450 UTC [msp] GetDefaultSigningIdentity -> INFO 026 Obtaining default signing identity Error: Error getting chaincode code chaincode: Path to chaincode does not exist: /opt/gopath/src/github.com/hyperledger/fabric/examples/map Usage: peer chaincode deploy [flags] Global Flags:

dbshah (Tue, 28 Mar 2017 13:55:20 GMT):
Has joined the channel.

holocron (Tue, 28 Mar 2017 14:56:27 GMT):
Has joined the channel.

holocron (Tue, 28 Mar 2017 14:58:54 GMT):
running into an error with the e2e_cli example (I modified the docker-compose.yaml to tag the v1 alpha image). Any help? http://paste.ubuntu.com/24263774/

ersudiplama (Tue, 28 Mar 2017 15:15:01 GMT):
Hello Can anyone let me know how to run the chaincode test as I see sample of chaincode_test file inside fabric/examples/chaincode/go/chaincode_example02. Thank you in advance.

AdnanC (Tue, 28 Mar 2017 15:44:18 GMT):
@ersudiplama , also, if you are in Mac, please follow this: https://chat.hyperledger.org/channel/fabric-questions?msg=7HrjkDGajLk8eLEvz

AdnanC (Tue, 28 Mar 2017 15:44:18 GMT):
@ersudiplama , also, if you are in Mac, please follow this: https://chat.hyperledger.org/channel/fabric-questions?msg=uNL4Z5CFaCj4WGotJ

ersudiplama (Tue, 28 Mar 2017 15:56:48 GMT):

Message Attachments

ersudiplama (Tue, 28 Mar 2017 15:57:08 GMT):
@AdnanC Thanks. I have completed the step and I can compile the chaincode its working fine.I wanted to know how to run the chaicode test file as it requires the parameter so does it have any module like junit in java which can be used for testing chaincode or any help to write more test code or any steps to perform that.

subbu165 (Tue, 28 Mar 2017 16:44:17 GMT):
Has joined the channel.

AdnanC (Tue, 28 Mar 2017 18:12:25 GMT):
@holocron I think you are missing the ccenv image , its here https://hub.docker.com/r/hyperledger/fabric-ccenv/ you will need to use this in addition to pulling alpha images

MartinaE (Tue, 28 Mar 2017 19:03:54 GMT):
Has joined the channel.

holocron (Tue, 28 Mar 2017 19:59:18 GMT):

Message Attachments

holocron (Tue, 28 Mar 2017 19:59:19 GMT):
@AdnanC

geminatea (Wed, 29 Mar 2017 00:09:35 GMT):
Has joined the channel.

geminatea (Wed, 29 Mar 2017 00:16:16 GMT):
Hello, a question about VSCC. I'm trying to understand where the VSCC code is actually run. The transaction flow doc (http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html) specifies step 3 as a separate step from endorsement and ordering and looks like VSCC would be invoked here. Is this step run on any peer in the network? However, step 5 also sounds like the invocation of VSCC on the committing peers....

muralisr (Wed, 29 Mar 2017 00:25:33 GMT):
@geminatea `3. Proposal responses are inspected` is about response from the peer being inspected on the client side (such as in an SDK)

vdods (Wed, 29 Mar 2017 00:31:51 GMT):
So where is VSCC run then? On the committer?

vdods (Wed, 29 Mar 2017 00:31:54 GMT):
after ordering?

vdods (Wed, 29 Mar 2017 00:32:07 GMT):
It's really unclear in the documentation

muralisr (Wed, 29 Mar 2017 01:31:27 GMT):
@vdods on the committer, after ordering yes.

Willson (Wed, 29 Mar 2017 01:36:22 GMT):
Has joined the channel.

levinkwong (Wed, 29 Mar 2017 03:50:51 GMT):
Has joined the channel.

7sigma (Wed, 29 Mar 2017 07:17:47 GMT):
Has joined the channel.

mastersingh24 (Wed, 29 Mar 2017 11:14:47 GMT):
[ what parameter is required? running `go test` in that folder should suffice](https://chat.hyperledger.org/channel/fabric-questions?msg=WQxA5tH6AfruEtpir) @ersudiplama

subbu165 (Wed, 29 Mar 2017 11:21:34 GMT):
Hi, I started the orderer in Development mode, When I start the peer using the following command peer node start --peer-chaincodedev=true During the start up of peer I get the error - [deliveryClient] NewDeliverService -> ERRO 032 Cannot dial to orderer:7050, because of grpc: timed out when dialing any idea?

yacovm (Wed, 29 Mar 2017 11:32:01 GMT):
do `docker ps` and tell what you see

yacovm (Wed, 29 Mar 2017 11:32:12 GMT):
is it `orderer` or `orderer0`?

muralisr (Wed, 29 Mar 2017 11:34:31 GMT):
@subbu165 try `peer node start --peer-chaincodedev=true -o 127.0.0.1:7050` assuming you started orderer and are running in a non-docker env

muralisr (Wed, 29 Mar 2017 11:35:46 GMT):
^^^ also some instructions in docs/source/peer-chaincode-devmode.rst

subbu165 (Wed, 29 Mar 2017 11:44:00 GMT):
@muralisr great, that did the trick. THanks

s.narayanan (Wed, 29 Mar 2017 13:18:49 GMT):
Based on instructions in https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst, when I run "make configtxgen", I get the following error. Appreciate any help. build/bin/configtxgen CGO_CFLAGS=" " GOBIN=/home/bcuser/gopath/src/github.com/hyperledger/fabric/build/bin go install -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=1.0.0-snapshot-51b7e85 -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.3.0 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric" github.com/hyperledger/fabric/common/configtx/tool/configtxgen # github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory compilation terminated. Makefile:185: recipe for target 'build/bin/configtxgen' failed make: *** [build/bin/configtxgen] Error 2

mastersingh24 (Wed, 29 Mar 2017 14:16:43 GMT):
sadly, you need to install libtool

s.narayanan (Wed, 29 Mar 2017 17:04:39 GMT):
yes I figured, its resolved, thanks

pd93 (Wed, 29 Mar 2017 17:26:14 GMT):
What would be the best way to test if a state exists in the ledger? ie. `stub.stateExists()`

holocron (Wed, 29 Mar 2017 17:40:48 GMT):
fyi http://area51.stackexchange.com/proposals/107923/hyperledger?referrer=S1gIajT3SnObXyZLiQ6nVQ2

raj (Wed, 29 Mar 2017 18:10:32 GMT):
Can we dynamically create channels in runtime

raj (Wed, 29 Mar 2017 18:10:41 GMT):
can one peer be on multiple channel

muralisr (Wed, 29 Mar 2017 18:26:07 GMT):
@raj yes to both

raj (Wed, 29 Mar 2017 18:26:31 GMT):
can we query across multiple channels

mohamoud.egal (Wed, 29 Mar 2017 18:27:26 GMT):
Hi

mohamoud.egal (Wed, 29 Mar 2017 18:27:28 GMT):
Some quick questions 1) if a customer is already using Bluemix and wants to use public Blockchain do they pay any extra? 2) What version of Blockchain is actually available on Bluemix today? Is it V0.6 or V1.0?

dbshah (Wed, 29 Mar 2017 18:45:10 GMT):
Hey, is there a way to control the gossip logs on peer. In the core.yaml I do not see any gossip specific options and also it seems that gossip creates a lot of logs

s.narayanan (Wed, 29 Mar 2017 18:51:02 GMT):
A few questions on HA topology for Fabric: Assuming that are multiple endorser instances deployed for HA, and client requests for endorsement are distributed across instances, I presume such instances must have same ECert/identity (so that any such instance can perform the endorsement). In other words the instances are logically the same but physically deployed as multiple servers. On the same vein, I presume Orderer nodes as well can be fronted by a proxy/load balancer that distributes broadcast/deliver messages across orderer nodes? Are there any constraints with having multiple endorsing peers (within an organization) connecting to orderer to receive blocks? I ask this question specifically related to gossip protocol. Is it necessary that only one designated peer (leader) connects to the order while the rest of peers receive ledger updates through gossip?

s.narayanan (Wed, 29 Mar 2017 18:51:02 GMT):
@yacovm I understand. I realize how this could work. Appreciate input from others. So if we have 4 redundant instances of endorser, all being members of say Org 1 (with distinct identities), as long as endorsement policy states that endorsement is required from a member of Org 1, the request could be load balanced to any of four endorsers. I presume member here means that member cert is issued by Org (or Org's MSP). The key concern for me is that clients should not be aware of identities of redundant instances because then it will make an infrastructure concern (load balancing/HA) transparent to clients.

yacovm (Wed, 29 Mar 2017 18:59:57 GMT):
Having multiple leers with the same certificate is a bad idea. No reason not to give each peer its own cert

yacovm (Wed, 29 Mar 2017 19:04:01 GMT):
Regarding whether its necessary-no. Its configurable

s.narayanan (Wed, 29 Mar 2017 20:08:41 GMT):
@yacovm I understand. I realize how this could work. Appreciate input from others. So if we have 4 redundant instances of endorser, all being members of say Org 1 (with distinct identities), as long as endorsement policy states that endorsement is required from a member of Org 1, the request could be load balanced to any of four endorsers. I presume member here means that member cert is issued by Org (or Org's MSP). The key concern for me is that clients should not be aware of identities of redundant instances because then it will make an infrastructure concern (load balancing/HA) transparent to clients.

yacovm (Wed, 29 Mar 2017 20:10:48 GMT):
what do you mean, "I realize how this could work"?

yacovm (Wed, 29 Mar 2017 20:11:39 GMT):
all I'm saying is- if you want to have 4 endorsers, make them each have its own certificate

yacovm (Wed, 29 Mar 2017 20:12:48 GMT):
> The key concern for me is that clients should not be aware of identities of redundant instances because then it will make an infrastructure concern (load balancing/HA) transparent to clients They do not need to.

s.narayanan (Wed, 29 Mar 2017 20:17:43 GMT):
@yacovm yup, that is what I have outlined above. If they have 4 distinct identies, here is how I see it working. So if we have 4 redundant instances of endorser, all being members of say Org 1 (with distinct identities), as long as endorsement policy states that endorsement is required from a member of Org 1, the request could be load balanced to any of four endorsers. The issue will be if we need a policy more fine grained than that.

yacovm (Wed, 29 Mar 2017 20:18:54 GMT):
you mean a policy that states identities instead of "organizations"?

s.narayanan (Wed, 29 Mar 2017 20:19:05 GMT):
yes

yacovm (Wed, 29 Mar 2017 20:19:15 GMT):
why would you want such a thing, though?

DennisM330 (Wed, 29 Mar 2017 20:20:38 GMT):
Has joined the channel.

s.narayanan (Wed, 29 Mar 2017 20:25:07 GMT):
if you have endorsement policy that ties to peer identities, you lose ability to have elasticity (i.e. growing/shrinking # of instances each with its own distinct identity). I would rather this is transparent to clients. So the endorsement policy needs to be more coarser grained (than just based on peer identity)

raj (Wed, 29 Mar 2017 20:28:08 GMT):
@muralisr please let me know if can we query across multiple channels

yacovm (Wed, 29 Mar 2017 20:34:41 GMT):
@s.narayanan but that's exactly what I mean- you want to have your endorsement policy course grained. That certainly can be done

mastersingh24 (Wed, 29 Mar 2017 20:57:34 GMT):
@s.narayanan - we generally expect the policies to be scoped to organizations rather than individual peer identities (which is the point @yacovm was making). all of the examples work this way

dorrakhribi (Wed, 29 Mar 2017 21:23:12 GMT):
how to start a non validating peer in a network using docker-compose?

muralisr (Wed, 29 Mar 2017 23:52:20 GMT):
@raj need more context for `if can we query across multiple channels` ... from where are you querying (sdk, chaincode, ...) ? what is the nature of the query ?

dave.enyeart (Thu, 30 Mar 2017 02:50:21 GMT):
@raj I assume you mean query APIs within chaincode. Chaincode is always invoked in the context of a single channel. Therefore the queries within that chaincode would run against the specified channel. That being said, it is acknowledged that if you are a member of N channels you may want to do a chaincode query across all the channels that you are a member of. This support is currently being investigated for feasibility in a future release.

Halminhu (Thu, 30 Mar 2017 02:53:04 GMT):
Has joined the channel.

raj (Thu, 30 Mar 2017 02:55:32 GMT):
can we do it from fabric client or at any other level ? Is there a way to know which channels this particular Peer belongs to

raj (Thu, 30 Mar 2017 02:55:46 GMT):
or Org belongs to

shibo.lin (Thu, 30 Mar 2017 05:31:15 GMT):
Has joined the channel.

raj (Thu, 30 Mar 2017 10:56:29 GMT):
Today we create channel create peer attach peer to channel and install chaincode. In case of the dynamic channel creation, how do you envision this working also what tests were done on the number of channels supported.

yacovm (Thu, 30 Mar 2017 10:57:09 GMT):
for the "what tests were done" you better ask in #fabric-quality

s.narayanan (Thu, 30 Mar 2017 13:30:45 GMT):
Is there any documentation on events frameworks within V1? I found the following https://github.com/hyperledger/fabric/blob/master/proposals/r1/Custom-Events-High-level-specification.md, is there more documentation available beyond what is providing in this link?

ersudiplama (Thu, 30 Mar 2017 13:30:57 GMT):
@mastersingh24 Thank you

s.narayanan (Thu, 30 Mar 2017 13:31:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RY2e8SBpemopZYiyJ) @mastersingh24 Thanks

pd93 (Thu, 30 Mar 2017 17:17:38 GMT):
hey guys, trying to bring up a docker-compose network on OSX and I'm getting the following error. `newCertStore -> ERRO 01e Failed associating self PKIID to cert: The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid`. Bringing up the exact same files on Ubuntu 16.04 works fine. I'm not too familiar with OSX. Am I missing something?

kuangchao (Thu, 30 Mar 2017 17:26:49 GMT):
Has joined the channel.

dbshah (Thu, 30 Mar 2017 18:20:04 GMT):
This is due to docker VM time clock drifting from the original time. Try restarting docker and run again @pd93

geminatea (Thu, 30 Mar 2017 18:39:41 GMT):
Thanks for your response earlier, @muralisr; is there somewhere were I can read more about step `3. Proposal responses are inspected` ? or could someone explain the purpose of this link in the transaction flow? I don't understand why application nodes inspect proposal responses instead of dealing with transactions only after ordering and committal.

geminatea (Thu, 30 Mar 2017 18:49:18 GMT):
One thing I don't understand is why proposal responses go back to the application, the application inspects them for endorsement policy satisfaction, and sends them off to the ordering service --when instead the proposal responses could be checked for validity directly by peers using the VSCC and then sent to the ordering service directly. What utility does this extra inspection step allow?

mastersingh24 (Thu, 30 Mar 2017 19:25:16 GMT):
@geminatea - The application / client does not have to check that the endorsement responses it obtains from peers match the endorsement policy (it's just an optimization to avoid sending invalid transactions to the ordering service as well as waiting for responses to invalid transactions). The reason why the application / client handles obtaining and assembling endorsements and the sends to the ordering service is to allow for flexible and complex endorsements. You are right that we can (and will for common cases/policies) look in the future to allow a client to submit to a single peer which will handle collecting and packaging endorsements and sending to the ordering service. I'll also mention that we don't really imagine end-user apps doing this but rather than you'd use the SDK(s) to build intermediary service(s) which do this

geminatea (Thu, 30 Mar 2017 19:31:15 GMT):
Thanks, @mastersingh24, that makes some more sense. A followup to that: why do we allow invalid transactions to go to the ordering service at all? I'm not seeing any reason why the policy checking doesn't happen prior to submitting to the orderer and not afterwards. What's the point of allowing invalid transactions to get ordered? Is it for some kind of auditing of the network behavior?

mastersingh24 (Thu, 30 Mar 2017 19:36:28 GMT):
As you mentioned, the application / client can do the endorsement policy check before sending transactions to eliminate ones which would fail endorsement. There may be some cases where people do want to have an audit trail of even failed endorsements and so we allow that

mastersingh24 (Thu, 30 Mar 2017 19:37:51 GMT):
and we'll likely make some refinements / optimizations based on common endorsement policies and feedback from users. we opted to provide a little more flexibility initially

pd93 (Thu, 30 Mar 2017 19:38:31 GMT):
@dbshah Only just saw your reply. Thanks, it worked :)

geminatea (Thu, 30 Mar 2017 19:48:43 GMT):
That makes sense. So the potential to audit the (even failed) transactions is the only reason we have the steps 1->2->3->4->5 instead of 1->2->5->4 then? In this case ordering is being used for two purposes: actual ordering, and also forensic network monitoring. It would seem cleaner to me to go with the order 1->2->3->5->4 and allow the packet inspection in step 3 to provide the ability for the user to plug in an optional forensic logging service which is independent of the orderer in step 4. That way you can analyze the network activity as needed, but you're not bogging down the orderer or the actual blockchain with failed transactions.

geminatea (Thu, 30 Mar 2017 19:48:43 GMT):
That makes sense. So the potential to audit the (even failed) transactions is the only reason we have the steps 1->2->3->4->5 instead of 1->2->3->5->4 then? In this case ordering is being used for two purposes: actual ordering, and also forensic network monitoring. It would seem cleaner to me to go with the order 1->2->3->5->4 and allow the packet inspection in step 3 to provide the ability for the user to plug in an optional forensic logging service which is independent of the orderer in step 4. That way you can analyze the network activity as needed, but you're not bogging down the orderer or the actual blockchain with failed transactions.

vdods (Thu, 30 Mar 2017 20:19:56 GMT):
@mastersingh24 Is it (will it eventually be) possible to configure the network to run VSCC and issue valid transactions to the orderer without depending on the client to approve continuing processing of the transaction? I'm thinking partially for reducing latency on the transaction pipeline, partially because most use cases will be the simpler case where the client doesn't want to be an intermediary, but only wants to be notified of invalid transactions.

mastersingh24 (Thu, 30 Mar 2017 20:34:44 GMT):
@vdods - it seems like a reasonable requirement to bring back in the concept of a "submitting peer" for the common endorsement case(s) (e.g. N out M signatures required) and then have that peer check endorsement policy, package and send to the orderer.

mastersingh24 (Thu, 30 Mar 2017 20:34:44 GMT):
@vdods - it seems like a reasonable requirement to bring back the concept of a "submitting peer" for the common endorsement case(s) (e.g. N out M signatures required) and then have that peer check endorsement policy, package and send to the orderer.

dorrakhribi (Thu, 30 Mar 2017 22:43:29 GMT):
please does any one know how to start a non validating peer in a network

jojocheung (Fri, 31 Mar 2017 08:04:33 GMT):
in http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html it mentions "While we still maintain a Vagrant based approach that can be used for older versions of MacOSX and Windows that Docker does not support, we strongly encourage that the non-Vagrant development setup be used.", however the https://github.com/hyperledger/fabric/blob/v1.0.0-alpha/examples/e2e_cli/end-to-end.rst still use vagrant, is e2e_cli/end-to-end.rst for v0.6 only? it's not for v1.0.0?

bh4rtp (Fri, 31 Mar 2017 08:23:58 GMT):
hi, who can tell me what the use of core.yaml is?

mastersingh24 (Fri, 31 Mar 2017 11:13:56 GMT):
hi @bh4rtp - it's the configuration file for the peer

mastersingh24 (Fri, 31 Mar 2017 11:14:41 GMT):
you'll notice that we often override the settings in there via environment variables passed in via docker compose in most of our setups / examples

hycind (Fri, 31 Mar 2017 12:57:57 GMT):
Did anyone try Marbles.v3 on fabric v1 ? The instructions on setting it up locally is still work in progress. (It has steps for bluemix - but what I am looking at is to host it locally)

s.narayanan (Fri, 31 Mar 2017 13:03:06 GMT):
When I run the e2e_cli script, get the following error. Appreciate assistance in resolving this. Channel name : mychannel 2017-03-31 12:39:00.725 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel' 2017-03-31 12:39:00.725 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2017-03-31 12:39:00.725 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [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 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

AdnanC (Fri, 31 Mar 2017 13:25:36 GMT):
@s.narayanan you probably already have a channel named mychannel. try with a different name.

yacovm (Fri, 31 Mar 2017 13:36:15 GMT):
Try `./network_setup down` then `up`

bh4rtp (Fri, 31 Mar 2017 13:52:27 GMT):
@hycind i have tried the marbles v3.0.2, it can run using sfhackfest network.

s.narayanan (Fri, 31 Mar 2017 13:59:04 GMT):
@AdnanC thanks that was the issue. I removed the containers and ran docker-composer again. When I the script.sh is run, the channel is created but peers are not starting. : Error: unknown flag: --peer-defaultchain Usage: peer node start [flags] Flags: --peer-chaincodedev Whether peer in chaincode development mode Global Flags: --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server

s.narayanan (Fri, 31 Mar 2017 13:59:04 GMT):
@AdnanC thanks was the issue. I removed the containers and ran docker-composer again. When I the script.sh is run, the channel is created bu peers are not starting. : Error: unknown flag: --peer-defaultchain Usage: peer node start [flags] Flags: --peer-chaincodedev Whether peer in chaincode development mode Global Flags: --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server

s.narayanan (Fri, 31 Mar 2017 13:59:04 GMT):
@AdnanC thanks that was the issue. I removed the containers and ran docker-composer again. When I the script.sh is run, the channel is created bu peers are not starting. : Error: unknown flag: --peer-defaultchain Usage: peer node start [flags] Flags: --peer-chaincodedev Whether peer in chaincode development mode Global Flags: --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server

allenc2016 (Fri, 31 Mar 2017 14:10:43 GMT):
Has joined the channel.

tennenjl (Fri, 31 Mar 2017 14:53:03 GMT):
Hi, I am trying to invoke some chaincode (example_cc.go) via the nodejs sdk. The chaincode is deployed on a remote peer running on Bluemix HSBN v1 beta. I am receiving the error, "Error: could not parse enrollment response [{"success":true, "result":{"Cert":"LS0.... I found a JIRA issue which looked promising FAB-2792 and I was wondering if anyone had suggestions on how to get past this issue. Thanks!

mastersingh24 (Fri, 31 Mar 2017 16:01:48 GMT):
@tennenjl - are you doing an `npm install fabric-ca-client`

tennenjl (Fri, 31 Mar 2017 16:04:47 GMT):
Thanks, I pulled down all of the assets via Curl using the directions at https://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html and ran an npm install following the docker compose and curl, I am able to deploy and invoke when I run locally

mastersingh24 (Fri, 31 Mar 2017 16:07:26 GMT):
ah - thx for the details here. actually that's not going to work with the HSBN v1 Beta

mastersingh24 (Fri, 31 Mar 2017 16:08:57 GMT):
https://github.com/hyperledger/fabric-sdk-node/blob/v1.0-alpha/examples/balance-transfer/package.json#L16 - this version of the node-sdk only works with the hackfest images and not the v1.0.0-alpha images (which is what HSBN uses)

tennenjl (Fri, 31 Mar 2017 16:09:15 GMT):
@mastersingh24 thanks, I had modified the config.json, invoke.js and helper.js hoping that would do the trick

tennenjl (Fri, 31 Mar 2017 16:10:14 GMT):
@mastersingh24 do you know if we have any docs for invoking chaincode on hsbn v1 beta or should I wait for now. Thanks!

mastersingh24 (Fri, 31 Mar 2017 16:15:02 GMT):
you can check out https://github.com/IBM-Blockchain/marbles - it works with the latest version(s) of the Node fabric-client, fabric-ca-client and v1.0.0-alpha / HSBN v1 Beta

mastersingh24 (Fri, 31 Mar 2017 16:15:27 GMT):
the SDK docs for 1.0.0 are here: https://fabric-sdk-node.github.io/

tennenjl (Fri, 31 Mar 2017 16:17:03 GMT):
@mastersingh24 thanks a bunch... will give that a try

smallant (Fri, 31 Mar 2017 16:30:18 GMT):
Has joined the channel.

hycind (Fri, 31 Mar 2017 17:28:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SCCuEraisk9JzBWjD) @bh4rtp was that fabric v1 alpha image? I thought it was 0.7. Can you please provide the url?

kpsid (Fri, 31 Mar 2017 18:30:54 GMT):
Has joined the channel.

kpsid (Fri, 31 Mar 2017 18:32:06 GMT):
Hi, just joined the channel. I was wondering if someone could help with a minor question.

kpsid (Fri, 31 Mar 2017 18:32:09 GMT):
Looking at the orderer documentation here: https://github.com/hyperledger/fabric/tree/master/orderer It seems that only the Solo Orderer is supported - "Presently, only the solo orderer is supported." Is this correct? Is the Kafka orderer not released yet?

rahulhegde (Fri, 31 Mar 2017 20:24:57 GMT):
@bmos299 what are ways, we can simulate one of the running peer is late or having backlog on Ledger Commits for that Channel. I can think of Network connection lost between Orderer and Peer. Is there any other way - we do it in Behave Test?

tennenjl (Fri, 31 Mar 2017 22:18:13 GMT):
@mastersingh24 Thanks to your guidance, the marbles v3 code worked like a champ. Now I just need to read more and dig into the code. Thank you!

magg (Fri, 31 Mar 2017 22:56:11 GMT):
Has joined the channel.

bh4rtp (Sat, 01 Apr 2017 00:38:52 GMT):
@hycind you can reference this issue https://github.com/IBM-Blockchain/marbles/issues/65

bh4rtp (Sat, 01 Apr 2017 00:38:52 GMT):
@hycind you can refer this issue https://github.com/IBM-Blockchain/marbles/issues/65

bh4rtp (Sat, 01 Apr 2017 00:42:32 GMT):
@tennenjl have you succeeded in running the latest ibm-marbles3?

tennenjl (Sat, 01 Apr 2017 00:43:25 GMT):
@bh4rtp Yes, I have

tennenjl (Sat, 01 Apr 2017 00:43:41 GMT):
@bh4rtp Anything I can help with?

tennenjl (Sat, 01 Apr 2017 00:45:08 GMT):
@bh4rtp I deployed the chaincode to the hsbn v1 beta and I am running the marble server and client code locally

bh4rtp (Sat, 01 Apr 2017 00:45:10 GMT):
@tennenjl can you provide us some instructions to make marbles3 run? i have only passed v3.0.2 only for sfhackfest v0.7.0.

bh4rtp (Sat, 01 Apr 2017 00:45:10 GMT):
@tennenjl can you provide us some instructions to make marbles3 run? i have passed v3.0.2 only for sfhackfest v0.7.0.

bh4rtp (Sat, 01 Apr 2017 00:46:56 GMT):
And v3.0.2 does not work well. there are two questions as i post issue https://github.com/IBM-Blockchain/marbles/issues/74

tennenjl (Sat, 01 Apr 2017 00:46:58 GMT):
@bh4rtp I followed the steps found here https://github.com/IBM-Blockchain/marbles/blob/v3.0/docs/tutorial_start_here.md

tennenjl (Sat, 01 Apr 2017 00:49:45 GMT):
@bh4rtp but it is important to note that my chaincode is running in the hsbn v1 beta instance and not a local hyperledger fabric v1 instance.

bh4rtp (Sat, 01 Apr 2017 00:52:32 GMT):
@tennenjl ok, i want to run marbles v3.0 based on locally hosted hyperledger fabric v1 network.

bh4rtp (Sat, 01 Apr 2017 00:53:54 GMT):
according to the author, locally hosted marbles v3.0 is still in progress.

tennenjl (Sat, 01 Apr 2017 00:56:45 GMT):
I can try running it and let you know if I hit any issues.

bh4rtp (Sat, 01 Apr 2017 01:15:17 GMT):
@tennenjl do you know what is the use of docker-compose/marbles.yml?

tennenjl (Sat, 01 Apr 2017 01:19:34 GMT):
@bh4rtp That should be for the node server def

tennenjl (Sat, 01 Apr 2017 01:20:01 GMT):
@bh4rtp and it's dependencies

tennenjl (Sat, 01 Apr 2017 01:30:50 GMT):
@bh4rtp I would wait until the author has things set up for local for now.

bh4rtp (Sat, 01 Apr 2017 02:10:00 GMT):
@tennenjl i have passed login, now blocked at step 2: find chaincode. Find Chaincode Whoops, we could not find the chaincode on your peer.

tennenjl (Sat, 01 Apr 2017 02:11:12 GMT):
@bh4rtp How are you deploying the chaincode?

bh4rtp (Sat, 01 Apr 2017 02:21:57 GMT):
@tennenjl i found the latest marbles does not implement deploy chaincode locally.

tennenjl (Sat, 01 Apr 2017 02:22:48 GMT):
@bh4rtp I didn't see it as an option either

dorrakhribi (Sat, 01 Apr 2017 21:32:01 GMT):
hi , is java chaincode supported in the V1.0 ?

tennenjl (Sun, 02 Apr 2017 02:37:19 GMT):
@dorrakhribi take a look at the docs here: http://hyperledger-fabric.readthedocs.io/en/latest/Setup/JAVAChaincode.html?highlight=java

bh4rtp (Sun, 02 Apr 2017 11:11:16 GMT):
@tennenjl hi, have you made marbles3 work ok using local blockchain network?

bh4rtp (Sun, 02 Apr 2017 11:38:10 GMT):
In a hyperledger blockchain network, can i add a ca, orderer, peer and cli nodes together? i don't know the use of cli, and e2e_cli example network does not have ca node. so i think the ca and cli node may not coexist. am i right?

bh4rtp (Sun, 02 Apr 2017 11:38:10 GMT):
In a hyperledger blockchain network, can i add 2 ca, 2 orderer, 4 peers and a cli nodes together? i don't know the use of cli, and fabric e2e_cli example network does not have a ca node. so i think the ca and cli node may not coexist. am i right?

dorrakhribi (Sun, 02 Apr 2017 13:07:42 GMT):
@tennenjl thanx for the link, but it seems that its content belongs to the V0.6 since we are no more talking about the 'deploy' function which is replaced with the instantiate and the install function i guess

tennenjl (Sun, 02 Apr 2017 15:29:59 GMT):
@bh4rtp Hi, no, I am going to wait until the author has marbles ready for local. The Nodejs and client components work just fine if you have the chaincode running in the HSBN v1 Beta env on Bluemix.

bh4rtp (Sun, 02 Apr 2017 15:31:08 GMT):
@tennenjl ok, i have passed login.

bh4rtp (Sun, 02 Apr 2017 15:34:49 GMT):
hi, i am test ibm-marbles. it stops at step2: Find chaincode. it will check marbles chaincode already deployed or not. there are two errors prompt:

bh4rtp (Sun, 02 Apr 2017 15:34:49 GMT):
hi, i am test ibm-marbles. it stops at step2: Find chaincode. it will check marbles chaincode already deployed or not. an error prompts:

bh4rtp (Sun, 02 Apr 2017 15:34:49 GMT):
hi all, i am testing ibm-marbles. it stops at step2: Find chaincode. it will check marbles chaincode already deployed or not. an error prompts:

bh4rtp (Sun, 02 Apr 2017 15:35:36 GMT):
Error: Failed to deserialize creator identity, err MSP Org0MSP is unknown

bh4rtp (Sun, 02 Apr 2017 15:35:36 GMT):
Error: Failed to deserialize creator identity, err MSP Org0MSP is unknown. this error message should be thrown out by ca. what does this error mean?

tennenjl (Sun, 02 Apr 2017 15:37:39 GMT):
@bh4rtp Sorry to ask again, but not sure how you are deploying the chaincode

choas (Sun, 02 Apr 2017 18:12:05 GMT):
Has joined the channel.

krupabathia (Mon, 03 Apr 2017 06:25:05 GMT):
Has joined the channel.

clydedacruz (Mon, 03 Apr 2017 10:21:20 GMT):

Message Attachments

clydedacruz (Mon, 03 Apr 2017 10:23:13 GMT):
getting the following error while trying to do a chain.joinChannel() what does the NOT_FOUND error mean here ?

clydedacruz (Mon, 03 Apr 2017 10:23:13 GMT):
getting the above error while trying to do a chain.joinChannel() what does the NOT_FOUND error mean here ?

clydedacruz (Mon, 03 Apr 2017 10:23:13 GMT):
getting the above error while trying to do a chain.joinChannel(). What does the NOT_FOUND error mean here ?

mastersingh24 (Mon, 03 Apr 2017 10:51:31 GMT):
@clydedacruz - means the channel does not exist

clydedacruz (Mon, 03 Apr 2017 12:18:36 GMT):
@mastersingh24 thanks!

raj (Mon, 03 Apr 2017 16:19:51 GMT):
Hi One of my collegues is getting the following error while running network_setup.sh

raj (Mon, 03 Apr 2017 16:19:55 GMT):
2017-04-03 16:13:16.579 UTC [gossip/gossip#172.18.0.11:7051] PeersOfChannel -> DEBU 69c No such channel [116 101 115 116 99 104 97 105 110 105 100]

raj (Mon, 03 Apr 2017 16:20:12 GMT):
in the e2e_cli example. Any reason why

holocron (Mon, 03 Apr 2017 16:22:35 GMT):
@raj did yall run the generateCfgTrx.sh script ?

raj (Mon, 03 Apr 2017 16:22:56 GMT):
I thought the network_setup.sh takes care of it

raj (Mon, 03 Apr 2017 16:23:11 GMT):
do we need to do it after the generateCfg ?

holocron (Mon, 03 Apr 2017 16:23:55 GMT):
hmm, perhaps the network_setup.sh should, but try it on it's own to see if it is completing okay

raj (Mon, 03 Apr 2017 16:26:25 GMT):
same error

kmad (Mon, 03 Apr 2017 16:31:42 GMT):
Has joined the channel.

holocron (Mon, 03 Apr 2017 16:33:03 GMT):
can you paste the whole output of generateCfgTrx?

holocron (Mon, 03 Apr 2017 16:33:10 GMT):
(pastebin or something)

raj (Mon, 03 Apr 2017 17:07:29 GMT):
ok, we are cleaning up and trying it once more

raj (Mon, 03 Apr 2017 17:07:51 GMT):
we will post it once we get to that point

raj (Mon, 03 Apr 2017 17:26:30 GMT):
2017-04-03 17:23:18.374 UTC [gossip/gossip#172.18.0.11:7051] PeersOfChannel -> DEBU 38a No such channel [116 101 115 116 99 104 97 105 110 105 100] 2017-04-03 17:23:22.609 UTC [gossip/discovery#172.18.0.11:7051] periodicalReconnectToDead -> DEBU 38b Sleeping 25s 2017-04-03 17:23:22.652 UTC [gossip/discovery#172.18.0.11:7051] periodicalSendAlive -> DEBU 38c Sleeping 5s 2017-04-03 17:23:27.677 UTC [gossip/discovery#172.18.0.11:7051] periodicalSendAlive -> DEBU 38d Sleeping 5s

holocron (Mon, 03 Apr 2017 17:54:37 GMT):
@raj the whole output please, from the beginning

holocron (Mon, 03 Apr 2017 17:54:55 GMT):
and use a paste service, don't dump it here please

raj (Mon, 03 Apr 2017 18:02:54 GMT):
can I attach the file

raj (Mon, 03 Apr 2017 18:03:46 GMT):

Message Attachments

raj (Mon, 03 Apr 2017 18:07:35 GMT):
@holocron hope this is ok. Alternatively I add add to paste service

holocron (Mon, 03 Apr 2017 18:14:09 GMT):
thanks @raj, apologies but i'm not sure what might be causing this-- good info for others to see though

s.narayanan (Mon, 03 Apr 2017 18:39:55 GMT):
What is the meaning of member when an endorsement policy refers to Org1MSP.member? Does this mean member that has been issued cert by Org1. The documentation refers to "role" being member or admin. Appreciate if someone could clarify

mohamoud.egal (Mon, 03 Apr 2017 19:19:03 GMT):
Hello everyone

mohamoud.egal (Mon, 03 Apr 2017 19:21:04 GMT):
I'm presenting at a Meetup in Brooklyn on April 24th and one question that I anticipate coming up is when V1.0 will be fully released. I've also been watching the newsletters and I know there's still work to be done, but what is a good response to give to that audience. In particular, what should I say to startups who might be hesitant to start developing on "moving ground" i.e a version that will change? Thanks in advance.

mastersingh24 (Mon, 03 Apr 2017 19:23:13 GMT):
[ An MSP member is any entity which has been issued a certificate by the MSP (so in this case anyone who has a certificate signed by the root CA of the MSP). As MSP admin is any entity in the list of admins for the MSP (where an admin is identified by its specific certificate ](https://chat.hyperledger.org/channel/fabric-questions?msg=jzvoh4FYAhPxqyR6P) @s.narayanan

Nink (Mon, 03 Apr 2017 20:41:09 GMT):
Has joined the channel.

raj (Mon, 03 Apr 2017 20:42:27 GMT):
Hitting another error while installing

raj (Mon, 03 Apr 2017 20:42:32 GMT):
2017-04-03 20:37:13.343 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel' 2017-04-03 20:37:13.343 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2017-04-03 20:37:13.343 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity 2017-04-03 20:37:16.348 UTC [logging] GetModuleLevel -> DEBU 004 Module 'error' logger enabled for log level: DEBUG Error: Error getting endorser client channel: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing /opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:84 github.com/hyperledger/fabric/peer/common.GetEndorserClient /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/channel.go:111 github.com/hyperledger/fabric/peer/channel.InitCmdFactory /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:133 github.com/hyperledger/fabric/peer/channel.join /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:41 github.com/hyperledger/fabric/peer/channel.joinCmd.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:111 main.main /opt/go/src/runtime/proc.go:192 runtime.main /opt/go/src/runtime/asm_amd64.s:2087 runtime.goexit 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

holocron (Mon, 03 Apr 2017 21:11:37 GMT):
raj, can you show the output of 'docker images' ?

holocron (Mon, 03 Apr 2017 21:11:37 GMT):
@raj can you show the output of 'docker images' ?

raj (Mon, 03 Apr 2017 22:33:05 GMT):
REPOSITORY TAG IMAGE ID CREATED SIZE dev-peer3-mycc-1.0 latest 0ecfe66e1219 7 minutes ago 176 MB dev-peer0-mycc-1.0 latest 60c0ab49d4e4 8 minutes ago 176 MB dev-peer2-mycc-1.0 latest 8bb195ceb2d9 8 minutes ago 176 MB hyperledger/fabric-kafka latest 1dd7a7eddf36 2 hours ago 1.3 GB hyperledger/fabric-kafka x86_64-1.0.0-snapshot-6039474 1dd7a7eddf36 2 hours ago 1.3 GB hyperledger/fabric-zookeeper latest fa9cf91701d2 2 hours ago 1.31 GB hyperledger/fabric-zookeeper x86_64-1.0.0-snapshot-6039474 fa9cf91701d2 2 hours ago 1.31 GB hyperledger/fabric-testenv latest 74536437a7d7 2 hours ago 1.4 GB hyperledger/fabric-testenv x86_64-1.0.0-snapshot-6039474 74536437a7d7 2 hours ago 1.4 GB hyperledger/fabric-buildenv latest e32d2bf04334 2 hours ago 1.31 GB hyperledger/fabric-buildenv x86_64-1.0.0-snapshot-6039474 e32d2bf04334 2 hours ago 1.31 GB hyperledger/fabric-orderer latest dedbda2281b8 2 hours ago 182 MB hyperledger/fabric-orderer x86_64-1.0.0-snapshot-6039474 dedbda2281b8 2 hours ago 182 MB hyperledger/fabric-peer latest 8dcbf668f122 2 hours ago 184 MB hyperledger/fabric-peer x86_64-1.0.0-snapshot-6039474 8dcbf668f122 2 hours ago 184 MB hyperledger/fabric-javaenv latest 530dc299552c 2 hours ago 1.42 GB hyperledger/fabric-javaenv x86_64-1.0.0-snapshot-6039474 530dc299552c 2 hours ago 1.42 GB hyperledger/fabric-ccenv latest 1a22966fe104 2 hours ago 1.29 GB hyperledger/fabric-ccenv x86_64-1.0.0-snapshot-6039474 1a22966fe104 2 hours ago 1.29 GB hyperledger/fabric-baseimage x86_64-0.3.0 f4751a503f02 2 months ago 1.27 GB hyperledger/fabric-baseos x86_64-0.3.0 c3a4cf3b3350 2 months ago 161 MB

tennenjl (Mon, 03 Apr 2017 22:37:47 GMT):
Hi Dummy Question here, I thought that REST support for calling chaincode was deprecated, but I see the docs here mention REST http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Chaincode-setup.html?highlight=Rest%20API

raj (Mon, 03 Apr 2017 22:37:56 GMT):
I tried again without giving the channel name. It worked however cli seems to die after sometime

raj (Mon, 03 Apr 2017 22:38:17 GMT):
docker exec -it cli bash Error response from daemon: Container 2a69fac4804c5433fb631abaead39a407f1e4a30c715f41064064a646d20462e is not running

tennenjl (Mon, 03 Apr 2017 22:38:41 GMT):
Is there a definitive document on REST support? If deprecated that documents the reasons why? Thanks!

raj (Mon, 03 Apr 2017 22:43:01 GMT):
although docker logs cli ended with following

raj (Mon, 03 Apr 2017 22:43:03 GMT):
017-04-03 22:24:35.660 UTC [msp] Sign -> DEBU 005 Sign: digest: 59BB8B44A92777F03BBB438407C78377BD18BA676B5AA9727BA152345098C159 Query Result: 90 2017-04-03 22:25:00.026 UTC [main] main -> INFO 006 Exiting..... ===================== Query on PEER3 on channel 'mychannel' is successful ===================== ===================== All GOOD, End-2-End execution completed =====================

raj (Tue, 04 Apr 2017 00:05:08 GMT):
I see the following

raj (Tue, 04 Apr 2017 00:05:09 GMT):
e2a2adebacb7 hyperledger/fabric-peer "/bin/bash -c './s..." 2 minutes ago Exited (0) About a minute ago cli

raj (Tue, 04 Apr 2017 00:05:24 GMT):
does it mean cli is created on a temp basis

tennenjl (Tue, 04 Apr 2017 00:07:10 GMT):
For the REST API Deprecation I've found https://jira.hyperledger.org/browse/FAB-754 I haven't found anywhere in the docs where we mention it, wondering if that is planned. Thanks!

raj (Tue, 04 Apr 2017 00:57:23 GMT):
@tennenji my understanding is REST is deprecated

tennenjl (Tue, 04 Apr 2017 02:16:05 GMT):
@raj yes, thanks, yes, I was wondering if there are docs that I can point people to related to this topic, so far the jira (FAB-754) is the best that I have found.

tennenjl (Tue, 04 Apr 2017 02:31:17 GMT):
@raj I think cli is just executing the end-2-end scenario as per the docs, try running the docker logs -f cli command and you should see what it executed

tennenjl (Tue, 04 Apr 2017 02:36:31 GMT):
@raj You can see that it is executing the scripts/script.sh ${CHANNEL_NAME} as per the docker-compose.yaml file

passkit (Tue, 04 Apr 2017 04:06:11 GMT):
What is the process for updating chaincode. Marbles 3.5 was released yesterday - how would one upgrade from 3.0 to 3.5? Installing on the peers seems to be no problem, but instantiating with the same name throws an error `Error: Error endorsing chaincode: rpc error: code = 2 desc = Chaincode exists marbles`

rockandroll-4w (Tue, 04 Apr 2017 07:48:34 GMT):
Has joined the channel.

raj (Tue, 04 Apr 2017 09:43:37 GMT):
Thanks @tennenjl I would like to add a second channel between peer 2 and peer 0 install the chain code to see if the data from each channel

tennenjl (Tue, 04 Apr 2017 12:04:37 GMT):
@raj Take a look at the getting started docs, you will want to edit the docker-compose file and comment out the command to run script.sh then follow the steps afterwords to create a channel, etc.

vdods (Tue, 04 Apr 2017 19:01:00 GMT):
@here Are there any plans to augment e2e_cli with usage of fabric-ca, so that e.g. TCerts can be used in transactions, among other CA features?

raj (Tue, 04 Apr 2017 21:26:35 GMT):
Adding a peer to multiple channel gives me the below error

raj (Tue, 04 Apr 2017 21:27:09 GMT):
using peer channel join -b e2eChan1.block

raj (Tue, 04 Apr 2017 21:35:35 GMT):
Error: proposal failed (err: rpc error: code = 2 desc = Block number should have been 3 but was 0)

raj (Tue, 04 Apr 2017 21:36:01 GMT):
what would cause this. the parameters are adjusted

raj (Wed, 05 Apr 2017 11:23:52 GMT):
@AdnanC Any insights on the above issue

SyneBlockChainTeam (Wed, 05 Apr 2017 12:31:57 GMT):
@Ratnakar, @muralisr : To explore Ordering service (fabric v1.0), please could you suggest example to follow. Thanks.

sitomani (Wed, 05 Apr 2017 13:14:22 GMT):
@here I can see in the chat history that people have had issues with instantiating chaincodes on the 1.0 fabric - I'm running some tests and bumped into the same, but can't find the solution proposals above. Chaincode install works, resulting in gzipped chaincode packages to emerge under /var/hyperledger/production/chaincodes folder in the peer filesystem, but attempt to instantiate the chaincode fails with "rpc error: code = 2 desc = Error starting container"

pd93 (Wed, 05 Apr 2017 13:17:03 GMT):
Can people please stop using `@here` tags. There are 222 people in this channel (most of which will be in a different timezone to you) - Please consider that you're directly sending a message to all these people. It's quite annoying and unless it's something extremely urgent, then it's totally unnecessary

pd93 (Wed, 05 Apr 2017 15:29:23 GMT):
Hey, does anyone know if it is possible to tell which method (invoke/query) was used to call the chaincode. In 0.6 this was trivial as we had separate entry points for each. Now that they use a single-combined method, I'm not sure how to achieve the same result. (All I'm trying to do it log all the invoke/query requests)

smallant (Wed, 05 Apr 2017 16:28:54 GMT):
you can check the arguments i think, there is one parameter that refers to the function

smallant (Wed, 05 Apr 2017 16:29:16 GMT):
for example check node sdk

smallant (Wed, 05 Apr 2017 16:29:16 GMT):
for example check node sdk sample

lbennett (Wed, 05 Apr 2017 18:56:37 GMT):
Has joined the channel.

in0rdr (Wed, 05 Apr 2017 19:10:13 GMT):
Has joined the channel.

vdods (Wed, 05 Apr 2017 19:41:32 GMT):
I'm on several of the hyperledger email lists (e.g. hyperledger-technical-discuss among others), I check RocketChat pretty often, and occasionally read through the JIRA tickets, trying to stay abreast of the current status of various features of fabric, CA, and sdk-node. Is there some central place where the status/progress of development is posted and updated? I.e. when TLS support was added, some central place where that fact was announced? Put another way, is there some channel of communication I'm missing out on?

geminatea (Wed, 05 Apr 2017 20:02:06 GMT):
I am attempting to adapt the e2e_cli test to a new setting. I'm running into the following error when I run `./network_setup.sh up` which is occurring when the `script.sh` calls `peer create channel ...` inside the function `createChannel`. Can anyone suggest what my mistake is? ```2017-04-05 19:58:29.969 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel' 2017-04-05 19:58:29.969 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2017-04-05 19:58:29.969 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure

geminatea (Wed, 05 Apr 2017 20:02:06 GMT):
I am attempting to adapt the e2e_cli test to a new setting. I'm running into the following error when I run `./network_setup.sh up` which is occurring when the `script.sh` calls `peer create channel ...` inside the function `createChannel`. Can anyone suggest what my mistake is? ```2017-04-05 19:58:29.969 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel' 2017-04-05 19:58:29.969 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2017-04-05 19:58:29.969 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure

geminatea (Wed, 05 Apr 2017 20:02:06 GMT):
I am attempting to adapt the e2e_cli test to a new setting. I'm running into the following error when I run `./network_setup.sh up` which is occurring when the `script.sh` calls `peer create channel ...` inside the function `createChannel`. Can anyone suggest what my mistake is?

geminatea (Wed, 05 Apr 2017 20:02:25 GMT):
``````2017-04-05 19:58:29.969 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel' 2017-04-05 19:58:29.969 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2017-04-05 19:58:29.969 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure ```

fbenhamo (Wed, 05 Apr 2017 20:20:25 GMT):
Hi, I understand that the chaincode does not need to be installed on all peers. I was wondering whether it is possible to deploy a slightly different chaincode on each peer (like with a slightly different configuration file) but with the same chaincode and channel IDs? All chaincodes should share the same ledger and see exactly the same values

rickr (Thu, 06 Apr 2017 01:38:21 GMT):
Has joined the channel.

suddutt1 (Thu, 06 Apr 2017 05:39:37 GMT):
Has joined the channel.

suddutt1 (Thu, 06 Apr 2017 05:39:44 GMT):
Hello ,

suddutt1 (Thu, 06 Apr 2017 05:41:44 GMT):
I have just started working in HL V1.0. I have question. Is it possible to read the data from stored by a chain code from another chain code under the same channel ? All the peers are participating in the both the chain code execution.

suddutt1 (Thu, 06 Apr 2017 05:41:52 GMT):
They are all in the same channel ..

andjux8 (Thu, 06 Apr 2017 08:37:43 GMT):
Has joined the channel.

andjux8 (Thu, 06 Apr 2017 08:40:16 GMT):
Hello, I'm Fabric newbie but fascinated by its features. Looking at the level of security on the ledger, I'm wondering if chaincode can perform encryption/decryption of data in input. Would it be possible? Would it make sense?

lizhih (Thu, 06 Apr 2017 09:46:34 GMT):
Has joined the channel.

muralisr (Thu, 06 Apr 2017 11:05:07 GMT):
@fbenhamo the key is what is instantiated on a channel. You could install different chaincodes on different peers but once instantiated the chaincode would be linked to the instantiation via hashes over the contents (at a high level). This is described in https://jira.hyperledger.org/browse/FAB-2859

VictoriaH (Thu, 06 Apr 2017 11:27:17 GMT):
Has joined the channel.

fbenhamo (Thu, 06 Apr 2017 17:43:40 GMT):
Thanks!

antoniovassell (Thu, 06 Apr 2017 23:03:27 GMT):
Hey. Let’s say I have 3 companies who want to trade together and A hosted website that these companies can log into and use the interface to trade.

antoniovassell (Thu, 06 Apr 2017 23:03:27 GMT):
Hey. Let’s say I have 3 companies who want to trade together and a hosted website that these companies can log into and use the interface to trade.

antoniovassell (Thu, 06 Apr 2017 23:04:34 GMT):
if i should set up a blockchain network, base on this example http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html I would setup a peer for each company, correct?

antoniovassell (Thu, 06 Apr 2017 23:07:28 GMT):
and these peers could be on their premises, right? (to make the blockchain truly decentralize)

antoniovassell (Thu, 06 Apr 2017 23:08:11 GMT):
And lets say Company A logs into the web application, and performs a trade, the website would send a request to both peers on behalf of Company A

antoniovassell (Thu, 06 Apr 2017 23:09:37 GMT):
I am assuming the only way that the blockchain knows "which user" is making the request, is because the web application and fabric SDK would be presenting Company A's certs

antoniovassell (Thu, 06 Apr 2017 23:12:19 GMT):
So my question is, when it comes on to "best practices", should peers be on each company's premises to truly represent them?

antoniovassell (Thu, 06 Apr 2017 23:15:04 GMT):
And is it safe to say that its alllll up to the web application to use the correct certs for a request on behalf of a logged in user

antoniovassell (Thu, 06 Apr 2017 23:15:04 GMT):
And is it safe to say that its alllll up to the web application to use the correct certs for a request on behalf of a logged in user?

Jay (Fri, 07 Apr 2017 01:11:33 GMT):
Has joined the channel.

redpanda (Fri, 07 Apr 2017 06:48:23 GMT):
Has joined the channel.

CodeReaper (Fri, 07 Apr 2017 07:19:15 GMT):
Has joined the channel.

CodeReaper (Fri, 07 Apr 2017 07:19:56 GMT):
I'm working on blockchain project. I've tested my chaincode on bluemix and even on local docker container environment. I've tested my functionality on the hyperledger-fabric environment and IBMblockchain environment. It was all running but me and my colleagues have run into the problem that the containers work one day and next throw some grpc error without us saving or committing states. Tried removing containers and images and then pull them back by the .yaml file but it still show. Note: No changes have been made to images and they were working before but now posing this error. Problem occuring in both IBMblockchain/hyperledger-fabric environment and hyperledger-fabric environment.

CodeReaper (Fri, 07 Apr 2017 07:19:56 GMT):
I'm working on blockchain project. I've tested my chaincode on bluemix and even on local docker container environment. I've tested my functionality on the hyperledger-fabric environment and IBMblockchain environment. It was all running but me and my colleagues have run into the problem that the containers work one day and next throw some grpc error without us saving or committing states. Tried removing containers and images and then pull them back by the .yaml file but it still show. Note: No changes have been made to images and they were working before but now posing this error. Problem occuring in both IBMblockchain/hyperledger-fabric environment and hyperledger-fabric environment.

CodeReaper (Fri, 07 Apr 2017 07:21:19 GMT):
vp3_1 | 2017/04/07 06:34:36 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 172.18.0.2:7054: getsockopt: no route to host"; Reconnecting to {"membersrvc:7054" } vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 01b [validator.test_vp3] Failed requesting read certificate [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure]. vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 01c [validator.test_vp3] Failed requesting ECA certificate [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure]. vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 01d [validator.test_vp3] Failed getting ECA certificate [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure]. vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 01e [validator.test_vp3] Failed retrieving ECA certs chain [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure]. vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 01f [validator.test_vp3] Failed registering node crypto engine [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure]. vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 020 [validator.test_vp3] Failed registering peer [test_vp3]: [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure] vp3_1 | 06:34:36.207 [crypto] Errorf -> ERRO 021 [validator.test_vp3] Failed registering [test_vp3]: [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure] vp3_1 | 06:34:36.207 [crypto] RegisterValidator -> ERRO 022 Failed registering validator [test_vp3] with name [test_vp3] [rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure].

mychewcents (Fri, 07 Apr 2017 07:41:46 GMT):
Has left the channel.

blocksait (Fri, 07 Apr 2017 12:36:42 GMT):
Has joined the channel.

agaragiola (Fri, 07 Apr 2017 19:17:07 GMT):
Has joined the channel.

ray (Sat, 08 Apr 2017 16:17:38 GMT):
Has left the channel.

ASMP (Sat, 08 Apr 2017 18:07:11 GMT):
Has joined the channel.

matanyahu (Sat, 08 Apr 2017 19:04:34 GMT):
I am currently working on Fabric chaincode development in an area of identity ([1] customer onboarding, [2] updating profile by different parties that would only see their part of customer profile, [3] passing the profile management through a cycle of institutions until it is scrapped). For a source of inspiration, Car Lease Demo applies quite well in [1] and [3] but with regards to [2] the vehicle profile can only be updated by a single institution (and full details of results thereof are seen by all parties). Therefore, I will greatly appreciate if anyone can direct me to some sample chaincode that will show how [2] could be done.

tennenjl (Sun, 09 Apr 2017 01:26:05 GMT):
@antoniovassell Check out the docs here: http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html regarding your questions regarding which peers a web application would send a request to. Hyperledger v1 introduces Endorsement policies which are used to determine which peers the client initially sends the transaction proposal to.

tennenjl (Sun, 09 Apr 2017 02:02:17 GMT):
Hi, I was wondering if there are any tools for building profile configtxx.yaml files, or if there are any plans for building a tool to generate configtx.yaml files. Thanks!

o.o. (Mon, 10 Apr 2017 09:07:48 GMT):
How is the `AnchorPeers` value used in the _configtx.yaml_ configuration file? It is described as _"AnchorPeers defines the location of peers which can be used for cross org gossip communication."_. Should I provide the address of a peer in the other organisation?

o.o. (Mon, 10 Apr 2017 10:32:50 GMT):
Answer: It seems not, got a `[gossip/gossip#peer0:7051] func1 -> WARN 02c Anchor peer peer1:7051 isn't in our org, but i s claimed to be` when they are in different organisations.

o.o. (Mon, 10 Apr 2017 10:32:50 GMT):
Answer: It seems not, got a `[gossip/gossip#peer0:7051] func1 -> WARN 02c Anchor peer peer1:7051 isn't in our org, but is claimed to be` when they are in different organisations.

YongchangChoi (Mon, 10 Apr 2017 12:16:19 GMT):
Has joined the channel.

YongchangChoi (Mon, 10 Apr 2017 12:29:41 GMT):
Hello, I'm working with fabric 1.0 having 4peer, 1ca, 1orderer server for our company next business model. We made 0.6 environment already then we progress 1.0 migration. According to this article (https://github.com/hyperledger/fabric/tree/master/orderer) we can't use orderer with pbft and kafka right? Please let me know how to we can make consensus with fabric 1.0.

zian (Mon, 10 Apr 2017 14:01:50 GMT):
Has joined the channel.

yacovm (Mon, 10 Apr 2017 14:29:21 GMT):
@o.o. so the anchor peers of an org need to be some peer(s) of that org.

yacovm (Mon, 10 Apr 2017 14:29:28 GMT):
that message tells you, that you mixed them up

o.o. (Mon, 10 Apr 2017 14:30:25 GMT):
Yes, the same org is required.

yacovm (Mon, 10 Apr 2017 14:32:06 GMT):
that is what I'm saying

s.narayanan (Mon, 10 Apr 2017 18:21:44 GMT):
Does the alpha release (i.e. alpha docker images available in docker hub) support changes to the channel configuration ( e.g. addition/removal of peers)? I could try but was wondering if anyone had tried.

s.narayanan (Mon, 10 Apr 2017 18:22:22 GMT):
Is there any documentation on how the ledger (i.e. blocks) are stored on the file system. By ledger I mean the hashchain of blocks and not the world state. Currently I see they are in /var/hyperledger/production/ledgersData. The ledger appears to be in ledgersData/chains/. There is also index folder here - what does this contain? In addition, what is stored within /ledgersData/historyLeveldb and /ledgersData/ledgerProvider?

geminatea (Mon, 10 Apr 2017 22:02:40 GMT):
For continued reference, it looks like there is now a Jira ticket FAB-3042 (https://jira.hyperledger.org/browse/FAB-3042) dealing with the error mentioned in my previous question here: https://chat.hyperledger.org/channel/fabric-questions?msg=ronHtAeKSn2GtWWSs

bkvellanki (Tue, 11 Apr 2017 00:47:54 GMT):
Is there an call to find out all the chanincodes installed for a user?

bkvellanki (Tue, 11 Apr 2017 00:48:09 GMT):
@here

mohamoud.egal (Tue, 11 Apr 2017 01:30:25 GMT):
I received an error after running "docker-compose up --force-recreate" in fabric-sdk-node/test/fixtures.

mohamoud.egal (Tue, 11 Apr 2017 01:30:52 GMT):

Message Attachments

hilbertzw (Tue, 11 Apr 2017 02:43:53 GMT):
Has joined the channel.

kpsid (Tue, 11 Apr 2017 07:54:30 GMT):
@s.narayanan - I had the same question. Were you able to find an answer to it?

smallant (Tue, 11 Apr 2017 08:36:23 GMT):
@mohamoud.egal use the download docker images sh to download that image

smallant (Tue, 11 Apr 2017 08:36:48 GMT):
or check hyperledger docker for that specific image

mastersingh24 (Tue, 11 Apr 2017 09:59:18 GMT):
[ no - you can currently only create new channels - you cannot modify existing ones](https://chat.hyperledger.org/channel/fabric-questions?msg=bCJqj6RpDxAovLfxu) @s.narayanan

kpsid (Tue, 11 Apr 2017 10:59:30 GMT):
@mastersingh24 - Is the modification of existing channels something that is on the roadmap?

mastersingh24 (Tue, 11 Apr 2017 11:11:45 GMT):
indeed it is - it will be part of the 1.0.0 release. Most of the code has been completed but we have not merged it as we need to make sure we update all the surrounding pieces as well

s.narayanan (Tue, 11 Apr 2017 13:48:22 GMT):
@mastersingh24 thanks

kpsid (Tue, 11 Apr 2017 15:10:44 GMT):
@mastersingh24 - thank you

mohamoud.egal (Tue, 11 Apr 2017 15:31:02 GMT):
@smallant what directory should I put it in? Should I put it in the same directory as fabric & fabric-ca?

mohamoud.egal (Tue, 11 Apr 2017 15:32:03 GMT):
@smallant

mohamoud.egal (Tue, 11 Apr 2017 15:32:06 GMT):
Mohamouds-MacBook-Pro:fabric-ca mohamoudegal_ibm$ cd .. Mohamouds-MacBook-Pro:hyperledger mohamoudegal_ibm$ ls fabric fabric-ca fabric-sdk-node Mohamouds-MacBook-Pro:hyperledger mohamoudegal_ibm$ docker pull hyperledger/fabric-orderer Using default tag: latest Error response from daemon: manifest for hyperledger/fabric-orderer:latest not found Mohamouds-MacBook-Pro:hyperledger mohamoudegal_ibm$

mohamoud.egal (Tue, 11 Apr 2017 15:32:20 GMT):
I got an error when I tried to pull that image

smallant (Tue, 11 Apr 2017 15:46:23 GMT):
go to this example e2e_cli on (GOPATH/hyperledger/fabric/examples/e2e_cli) and run download-dockerimages.sh

smallant (Tue, 11 Apr 2017 15:46:23 GMT):
@mohamoud.egal go to this example e2e_cli on (GOPATH/hyperledger/fabric/examples/e2e_cli) and run download-dockerimages.sh

pd93 (Tue, 11 Apr 2017 19:03:39 GMT):
Is it possible to vendor chaincode dependencies in the same way that we used to in v0.6?

pd93 (Tue, 11 Apr 2017 19:03:39 GMT):
It's great that we don't have to vendor the chaincode shim package anymore, but is it possible to vendor other chaincode dependencies in the same way that we used to in v0.6?

Lin-YiTang (Tue, 11 Apr 2017 21:16:53 GMT):
Has joined the channel.

mohamoud.egal (Tue, 11 Apr 2017 21:26:22 GMT):
Mohamouds-MacBook-Pro:examples mohamoudegal_ibm$ ls ccchecker chaincode e2e_cli events sfhackfest Mohamouds-MacBook-Pro:examples mohamoudegal_ibm$ cd e2e_cli/ Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ download-dockerimages.sh -bash: download-dockerimages.sh: command not found Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ download-dockerimages.sh -bash: download-dockerimages.sh: command not found Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$

mohamoud.egal (Tue, 11 Apr 2017 21:26:48 GMT):
@smallant any reason why that command doesn't work? all my other docker commands work just fine

PushpalathaHiremath (Wed, 12 Apr 2017 04:59:18 GMT):
Hi All, How can we delete/remove a channel permanently ? Is there a way? Plz let me know if anyone has any idea.

sitomani (Wed, 12 Apr 2017 07:04:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZG67DfTFDPomgjfFT) @mohamoud.egal try ./download-dockerimages.sh

smallant (Wed, 12 Apr 2017 08:46:56 GMT):
@mohamoud.egal because it's not a command it's a bash script check @sitomani sugestion. It will work

clydedacruz (Wed, 12 Apr 2017 12:29:09 GMT):
I got a `does not exist in channel` error for a chaincode even though the chaincode install, instantiate seems to be successfully. Posted the details of the error on SO. Would like some advice on this http://stackoverflow.com/questions/43369437/chaincode-not-found-in-channel-during-invoke

clydedacruz (Wed, 12 Apr 2017 12:29:09 GMT):
I got a `does not exist in channel` error for a chaincode even though the chaincode install, instantiate seems to be successfully. Posted the details of the error on SO. Would like some advice on this http://stackoverflow.com/questions/43369437/chaincode-not-found-in-channel-during-invoke

mohamoud.egal (Wed, 12 Apr 2017 16:19:56 GMT):
@sitomani

mohamoud.egal (Wed, 12 Apr 2017 16:19:56 GMT):
Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ ./download-dockerimages.sh -bash: ./download-dockerimages.sh: Permission denied Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ sudo ./download-dockerimages.sh Password: sudo: ./download-dockerimages.sh: command not found Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ ./download-dockerimages.sh -bash: ./download-dockerimages.sh: Permission denied Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$

mohamoud.egal (Wed, 12 Apr 2017 16:20:18 GMT):
@sitomani I was denied. Thoughts?

smallant (Wed, 12 Apr 2017 16:48:47 GMT):
@mohamoud.egal that is strange try to install sudo package apt-get install sudo

msoumeit (Wed, 12 Apr 2017 17:23:50 GMT):
Has joined the channel.

mohamoud.egal (Wed, 12 Apr 2017 18:05:29 GMT):
Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ apt-get install sudo -bash: apt-get: command not found Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$ install sudo package install: sudo: No such file or directory Mohamouds-MacBook-Pro:e2e_cli mohamoudegal_ibm$

mohamoud.egal (Wed, 12 Apr 2017 18:05:34 GMT):
@smallant

nickgaski (Wed, 12 Apr 2017 18:08:03 GMT):
@mohamoud.egal - please make the bash script an executable `chmod +x download-dockerimages.sh` then give it run `./download-dockerimages.sh`

mohamoud.egal (Wed, 12 Apr 2017 18:08:59 GMT):
@nickgaski is this supposed to get me out of bash so I can run the command?

nickgaski (Wed, 12 Apr 2017 18:10:38 GMT):
it will allow the script to run. We see the permission denied error if you don't first turn the script into an executable. So just run those two commands from whichever directory has your download-dockerimages.sh file

nickgaski (Wed, 12 Apr 2017 18:11:43 GMT):
you could also take the laborious route of doing a docker pull for each image and then retagging them as latest. But this script will do all that heavy lifting for you

mohamoud.egal (Wed, 12 Apr 2017 18:12:17 GMT):
@nickgaski @smallant @sitomani it worked!

mohamoud.egal (Wed, 12 Apr 2017 18:12:22 GMT):
thanks everyone

nickgaski (Wed, 12 Apr 2017 18:13:29 GMT):
groovy man. once you get those images try the getting started and sdk tests. Then if you're feeling brave give marbles a go - http://fabric-rtd.readthedocs.io/en/latest/marbles.html

mohamoud.egal (Wed, 12 Apr 2017 18:18:42 GMT):
@nickgaski i'll give it a try

PushpalathaHiremath (Wed, 12 Apr 2017 18:29:55 GMT):
Hi All, I have a doubt. I am setting some cache in init method and trying to use it in invoke(query). In the dev mode i'm able to work with this. But in prod mode i see some weird behaviour. 1. The cache set in deploy(init function) is not available to invoke methods 2. But the cache set under invoke is available during multiple calls to invoke. 3. I see after the deploy(init function) there is no container created. But after invoke the container gets created and which will have only the invoke logs, init method logs are not seen here. 4. But any PutState we do in deploy(init function) is available to invoke function. For cache storage i'm using https://github.com/patrickmn/go-cache Can you please help me to understand this.

rakeshm100 (Wed, 12 Apr 2017 18:35:57 GMT):
Has joined the channel.

mohamoud.egal (Thu, 13 Apr 2017 02:15:04 GMT):
@nickgaski I'm trying to clear out key value stores using this command "rm $GOPATH/src/github.com/hyperledger/fabric-sdk-node/test/fixtures/fabricca/tlsOrg1/fabric-ca-server.db" but "fabric-ca-server.db" doesn't exist in this directory. Do you know where it is?

clydedacruz (Thu, 13 Apr 2017 11:50:42 GMT):
Posted a question on SO. could someone take a look please ? http://stackoverflow.com/questions/43369437/chaincode-not-found-in-channel-during-invoke

nickgaski (Thu, 13 Apr 2017 13:29:49 GMT):
@mohamoud.egal - just use the two commands in the doc to kill the keyval stores. `rm -rf /tmp/hfc-*` and `rm -rf ~/.hfc-key-store`

nickgaski (Thu, 13 Apr 2017 13:31:58 GMT):
@clydedacruz - looks like you have a naming conflict. You init with the name of example_cc , but the instantiate program is looking for a chaincode named `end2end`

mohamoud.egal (Thu, 13 Apr 2017 16:05:18 GMT):

Message Attachments

mohamoud.egal (Thu, 13 Apr 2017 16:05:52 GMT):
@nickgaski I tried running a test and it failed even though I installed gulp. Then when I just ran gulp it gave me the same error.

PushpalathaHiremath (Thu, 13 Apr 2017 16:07:15 GMT):
@mohamoud.egal : run : npm install require-dir

mohamoud.egal (Thu, 13 Apr 2017 16:07:51 GMT):
Mohamouds-MacBook-Pro:test mohamoudegal_ibm$ npm install require-dir fabric-sdk-node@0.0.2 /Users/mohamoudegal_ibm/Desktop/gocode/src/github.com/hyperledger/fabric-sdk-node └── require-dir@0.3.1 Mohamouds-MacBook-Pro:test mohamoudegal_ibm$

mohamoud.egal (Thu, 13 Apr 2017 16:07:55 GMT):
@PushpalathaHiremath

PushpalathaHiremath (Thu, 13 Apr 2017 16:08:49 GMT):
@mohamoud.egal : Now try ur command...

PushpalathaHiremath (Thu, 13 Apr 2017 16:08:49 GMT):
@mohamoud.egal : Now try ur command... whatever test u r running

mohamoud.egal (Thu, 13 Apr 2017 16:18:42 GMT):

Message Attachments

mohamoud.egal (Thu, 13 Apr 2017 16:18:52 GMT):
@PushpalathaHiremath same thing happened

PushpalathaHiremath (Thu, 13 Apr 2017 16:20:28 GMT):
@mohamoud.egal : now it's diff module.. install all modules... normally all these should be included in package.son so when u do nam install all of them would get installed... Anyways install this also similar way : nam instal gulp-debug

mohamoud.egal (Thu, 13 Apr 2017 16:21:33 GMT):
@PushpalathaHiremath did you mean run npm install gulp-debug ?

PushpalathaHiremath (Thu, 13 Apr 2017 16:23:01 GMT):
yes

mohamoud.egal (Thu, 13 Apr 2017 16:37:26 GMT):

Message Attachments

mohamoud.egal (Thu, 13 Apr 2017 16:37:44 GMT):
@PushpalathaHiremath do you think it might be the directory I'm in?

mastersingh24 (Thu, 13 Apr 2017 20:40:35 GMT):
[http://stackoverflow.com/a/43401326/6160507 ](https://chat.hyperledger.org/channel/fabric-questions?msg=k9JNhNTtJNpR6SN3f) @clydedacruz

deveshaggrawal19 (Sat, 15 Apr 2017 14:29:11 GMT):
Has joined the channel.

mohamoud.egal (Sun, 16 Apr 2017 01:51:55 GMT):
I ran into an error after using the command npm test

mohamoud.egal (Sun, 16 Apr 2017 01:52:16 GMT):

Message Attachments

mohamoud.egal (Sun, 16 Apr 2017 02:09:59 GMT):
and I have node v6.9.5, npm 4.3.0 and I run npm install -g composer-cli to see if that would help

sstone1 (Sun, 16 Apr 2017 07:54:11 GMT):
@mohamoud.egal you should move those questions to #fabric-composer

eheastud (Mon, 17 Apr 2017 20:58:31 GMT):
Has joined the channel.

o.o. (Tue, 18 Apr 2017 10:09:12 GMT):
The following SO question recommends using _GetCreator_ for authorisation: http://stackoverflow.com/questions/43340644/how-to-authorise-user-in-fabric-chaincode Data from it I think looks as follows: ``` // GetCreator returns SignatureHeader.Creator of the proposal // this Stub refers to. GetCreator() ([]byte, error) ``` which is a ``` type SignatureHeader struct { // Creator of the message, specified as a certificate chain Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Arbitrary number that may only be used once. Can be used to detect replay attacks. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` }

o.o. (Tue, 18 Apr 2017 10:09:12 GMT):
The following SO question recommends using _GetCreator_ for authorisation: http://stackoverflow.com/questions/43340644/how-to-authorise-user-in-fabric-chaincode Data from it I think looks as follows: ``` // GetCreator returns SignatureHeader.Creator of the proposal // this Stub refers to. GetCreator() ([]byte, error) ``` which is a ``` type SignatureHeader struct { // Creator of the message, specified as a certificate chain Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Arbitrary number that may only be used once. Can be used to detect replay attacks. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` } ``` How would you recommend using this certificate?

achraf17 (Tue, 18 Apr 2017 10:20:11 GMT):
Has joined the channel.

o.o. (Tue, 18 Apr 2017 12:57:37 GMT):
Or what channel is appropriate for this question?

yacovm (Tue, 18 Apr 2017 14:14:38 GMT):
#fabric-crypto @o.o.

o.o. (Tue, 18 Apr 2017 14:14:53 GMT):
Thanks!

toddinpal (Tue, 18 Apr 2017 16:39:20 GMT):
Do clients only talk to a single peer that then acts as a proxy for communication to other peers, or do they need to make direct connections to each endorsing peer?

SotirisAlfonsos (Wed, 19 Apr 2017 10:49:41 GMT):
Has joined the channel.

SoumyaP (Wed, 19 Apr 2017 11:54:05 GMT):
Has joined the channel.

PushpalathaHiremath (Wed, 19 Apr 2017 12:07:11 GMT):
Any help is appreciated . _sendPeersProposal is failing with timeout.. error: [Peer.js]: GRPC client got an error response from the peer "grpc://localhost:7051". Error: Failed to execute transaction (Timeout expired while executing transaction) at /Users/Pushpalatha/Code/chainwalk/node_modules/grpc/src/node/src/client.js:434:17

JoaoAugusto (Wed, 19 Apr 2017 18:37:25 GMT):
Has joined the channel.

artemius22 (Thu, 20 Apr 2017 07:53:22 GMT):
Has joined the channel.

nhrishi (Thu, 20 Apr 2017 10:18:21 GMT):
Has joined the channel.

mastersingh24 (Thu, 20 Apr 2017 10:27:19 GMT):
@PushpalathaHiremath - can you provide some details about your env / setup - for example are you using Docker, are you using the alpha images, host operating system

jinvanstee (Thu, 20 Apr 2017 17:40:12 GMT):
Has joined the channel.

LoupTheron (Fri, 21 Apr 2017 08:39:32 GMT):
Hi, what protocols are used to get the TCert, ECert, etc ? HTTPS ?

LoupTheron (Fri, 21 Apr 2017 09:31:26 GMT):
Another question, for what is Kafka messaging used ? Thank you

LoupTheron (Fri, 21 Apr 2017 09:49:24 GMT):
@here ?

guoger (Fri, 21 Apr 2017 09:50:29 GMT):
I guess most of people are sleeping by now :P

LoupTheron (Fri, 21 Apr 2017 09:51:14 GMT):
Right, I'm in UTC+01 :)

PushpalathaHiremath (Fri, 21 Apr 2017 13:23:53 GMT):
@mastersingh24 : Mine is using docker alpha images... I found the issue.. It was a chaincodeID issue.. i was not changing the chain code id each time. Even though i restart my docker-compose and recreate channel, i was getting issues... Once i changed chain code id , it started working.. Thank you..

JackNeto (Fri, 21 Apr 2017 14:33:09 GMT):
Has joined the channel.

mastersingh24 (Fri, 21 Apr 2017 14:55:40 GMT):
[It is used by one of the ordering service implementions - https://github.com/hyperledger/fabric/blob/master/orderer/README.md ](https://chat.hyperledger.org/channel/fabric-questions?msg=MzSX9R7ChdToyMF9t) @LoupTheron

LoupTheron (Fri, 21 Apr 2017 14:58:48 GMT):
So it is not used by the peers right ?

LoupTheron (Fri, 21 Apr 2017 14:59:22 GMT):
I mean endorsing & commiting peers

bkvellanki (Fri, 21 Apr 2017 15:10:42 GMT):
Lets say an org want to need to migrate from one version of fabric (alpha) to another (prod or beta). Is there any document that explains all the items to be backed up.. that we need to backed up..I can definitely see smart contracts, DB, tx, orderer, block..I trying to see if there is any atrifact that explains a smooth transition

bkvellanki (Fri, 21 Apr 2017 15:10:48 GMT):
@here Lets say an org want to need to migrate from one version of fabric (alpha) to another (prod or beta). Is there any document that explains all the items to be backed up.. that we need to backed up..I can definitely see smart contracts, DB, tx, orderer, block..I trying to see if there is any atrifact that explains a smooth transition

LoupTheron (Fri, 21 Apr 2017 15:38:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dhqPDoNSYqFuQBrji) @mastersingh24 Ok, thx, this is not implemented yet right ? So it would encapsulate the protobufs ?

mastersingh24 (Fri, 21 Apr 2017 15:42:22 GMT):
@LoupTheron - oops - yeah - that was not updated - Kafka Orderer actually does work and is implemented today

mastersingh24 (Fri, 21 Apr 2017 15:42:41 GMT):
the readme was not updated to reflect that but the description is valid

LoupTheron (Fri, 21 Apr 2017 15:48:30 GMT):
@mastersingh24 Mhm ok! So if I understand the peers send kafka messages which ancapsulate protobufs ?

mastersingh24 (Fri, 21 Apr 2017 15:49:12 GMT):
actually no

toddinpal (Fri, 21 Apr 2017 15:49:27 GMT):
@LoupTheron No, Kafka is only used by the Kafka based orderer

mastersingh24 (Fri, 21 Apr 2017 15:49:36 GMT):
we have orderer shims which peers communicate with using GRPC

mastersingh24 (Fri, 21 Apr 2017 15:49:52 GMT):
behind the scenes these "shims" leverage Kafka

mastersingh24 (Fri, 21 Apr 2017 15:50:00 GMT):
this allows us to have pluggable ordering services

mastersingh24 (Fri, 21 Apr 2017 15:50:13 GMT):
Kafka protocol is never exposed to client or peers

toddinpal (Fri, 21 Apr 2017 15:50:54 GMT):
@LoupTheron The Kafka orderer uses Kafka to coordinate with other Kafka orderers to determine the transactions that should be contained in a block

LoupTheron (Fri, 21 Apr 2017 15:51:42 GMT):
Oh ok !

LoupTheron (Fri, 21 Apr 2017 15:52:39 GMT):
Last question, is HTTP used for requests of TCert & ECert ?

LoupTheron (Fri, 21 Apr 2017 15:53:25 GMT):
Thank you :)

mastersingh24 (Fri, 21 Apr 2017 15:55:22 GMT):
[Yes - the fabric-ca uses HTTP(S)/REST for its APIs](https://chat.hyperledger.org/channel/fabric-questions?msg=R4tSrfMKpiRZLXd2B) @LoupTheron

LoupTheron (Fri, 21 Apr 2017 15:55:56 GMT):
Great, thank you

bh4rtp (Sat, 22 Apr 2017 16:00:54 GMT):
@toddinpal how many transactions are there in a block? as we know, hundreds of transactions may be encapsulated in a block in bitcoin.

ioctl (Sat, 22 Apr 2017 16:35:19 GMT):
Has joined the channel.

toddinpal (Sat, 22 Apr 2017 17:07:02 GMT):
@bh4rtp That is determined by the ordering service. Typically an ordering service will try to place transactions in a block until some size limit is reached or some time interval has passed. In HL, from looking at the code, it appears there can be as few as one transaction in a block (if specifically requested), or as many as MaxMessageCount (configurable), or until the block size reaches PreferredMaxBytes (configurable).

bh4rtp (Sat, 22 Apr 2017 17:10:18 GMT):
@toddinpal thanks. it seems one transaction is the usual case because i used block_listener printing the block contents.

toddinpal (Sat, 22 Apr 2017 17:11:34 GMT):
@bh4rtp Which orderer are you using? And how fast are you submitting transactions? Generally orderers are going to want to cut blocks in a timely fashion to maintain liveliness.

bh4rtp (Sat, 22 Apr 2017 17:14:12 GMT):
@toddinpal i do the e2e_cli manually, maybe submitting a transaction every 5 seconds. i noticed that every invocation will generate a block.

bh4rtp (Sat, 22 Apr 2017 17:14:12 GMT):
@toddinpal solo orderring is used. i did the e2e_cli manually, maybe submitting a transaction every 5 seconds. i noticed that every invocation will generate a block.

toddinpal (Sat, 22 Apr 2017 17:15:02 GMT):
@bh4rtp Try submitting a batch of transactions in a very short interval. You should start to see multiple transactions in a block.

bh4rtp (Sat, 22 Apr 2017 17:16:04 GMT):
@toddinpal i see. thanks.

toddinpal (Sat, 22 Apr 2017 17:20:09 GMT):
@bh4rtp If you are using 1.0 and configtx, you should be able to control the timeout for cutting a batch in the yaml file.

toddinpal (Sat, 22 Apr 2017 17:21:47 GMT):
@bh4rtp The e2e_cli txconfig.yaml specifies a 2 second batch timeout, so if 2 seconds have elapsed since the last block was cut, a new block will be created, assuming there are transactions to commit.

bh4rtp (Sun, 23 Apr 2017 01:03:28 GMT):
@toddinpal which variable controls the timeout?

toddinpal (Sun, 23 Apr 2017 12:13:31 GMT):
@bh4rtp In txconfig.yaml it's BatchTimeout

bh4rtp (Sun, 23 Apr 2017 13:54:00 GMT):
@toddinpal thanks!

LoupTheron (Mon, 24 Apr 2017 16:14:14 GMT):
Hi @here , I am reading the fabric-ca doc, I don't get how and by whom are the peers' keys generated ?

holocron (Mon, 24 Apr 2017 16:15:03 GMT):
i believe this is pluggable

toddinpal (Mon, 24 Apr 2017 17:55:17 GMT):
@LoupTheron AFAIK you can use any mechanism you like to generate the peer keys, as long as the root CA is included in the genesis block or added by way of reconfiguration. So OpenSSL or any tool that can create keys/certificates.

toddinpal (Mon, 24 Apr 2017 18:00:43 GMT):
Also, I believe you can use the fabric-ca client to generate these. From the fabric-ca documentation: # export FABRIC_CA_CLIENT_HOME=$HOME/fabric-ca/clients/admin # fabric-ca-client enroll -u http://admin:adminpw@localhost:7054

DGreenstein (Mon, 24 Apr 2017 19:18:24 GMT):
Has joined the channel.

jamesv84 (Mon, 24 Apr 2017 20:04:12 GMT):
Has joined the channel.

jamesv84 (Mon, 24 Apr 2017 20:04:45 GMT):
I have two ubuntu hyperledgers, trying to make one the peer of the other, but am getting this error: address 172.17.0.3:7051: grpc: timed out when dialing

jamesv84 (Mon, 24 Apr 2017 20:04:51 GMT):
I am using docker for both

jamesv84 (Mon, 24 Apr 2017 20:05:24 GMT):
but I can deploy/invoke chaincode to the first peer with no issues

LoupTheron (Mon, 24 Apr 2017 20:17:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gX3gtDxDZy7ScmjRS) @toddinpal Thank you

shanthi0547 (Mon, 24 Apr 2017 23:11:22 GMT):
Has joined the channel.

shanthi0547 (Mon, 24 Apr 2017 23:19:49 GMT):
hi

shanthi0547 (Mon, 24 Apr 2017 23:25:44 GMT):
quick question, can in install the hyperledger fabric without vagrant or docker?

FengChen_1982 (Tue, 25 Apr 2017 02:47:31 GMT):
Has joined the channel.

FengChen_1982 (Tue, 25 Apr 2017 02:48:20 GMT):
The github contains Chaincode example of Go Language only for now? No other languages? And the peer chaincode(in Go language) deploy is actually done on source level instead of binary package?

pand (Tue, 25 Apr 2017 02:58:28 GMT):
Has joined the channel.

muralisr (Tue, 25 Apr 2017 04:57:11 GMT):
@shanthi0547 yes, you can do a `make native`. It should work on mac and *nix flavors in general ... not sure about windows.

muralisr (Tue, 25 Apr 2017 05:01:28 GMT):
@FengChen_1982 let me copy the question to fabric-java-chaincode

muralisr (Tue, 25 Apr 2017 05:03:35 GMT):
@FengChen_1982 yes, deploy is done at source level for go chaincodes

Rupertredding (Tue, 25 Apr 2017 06:07:53 GMT):
Has joined the channel.

Rupertredding (Tue, 25 Apr 2017 06:11:57 GMT):
Hyperledger Fabric (GO or Java) question - (1) how to get Ethereum like "msg.sender" in chaincode (smart contract)? (2) When chaincode A calls chaincode B, will the msg.sender be address of A (like in Ethereum)?

zzying (Tue, 25 Apr 2017 07:22:19 GMT):
Has joined the channel.

LoupTheron (Tue, 25 Apr 2017 08:40:57 GMT):
Hi @here, where do we specify the required signatures to modify an element in `mod_policy` ?

LoupTheron (Tue, 25 Apr 2017 08:41:14 GMT):
Or maybe it is just the number

LoupTheron (Tue, 25 Apr 2017 08:45:19 GMT):
(I am speaking about configtx)

guoger (Tue, 25 Apr 2017 09:18:14 GMT):
When I follow doc _getting started_, got error while executing `network_setup.sh up`: ```

guoger (Tue, 25 Apr 2017 09:18:14 GMT):
When I follow doc _getting started_, got error while executing `network_setup.sh up`: ```

guoger (Tue, 25 Apr 2017 09:18:14 GMT):
When I follow doc _getting started_, got error while executing `network_setup.sh up`: ``` Error: Error getting endorser client channel: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing /opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:84 github.com/hyperledger/fabric/peer/common.GetEndorserClient /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/channel.go:111 github.com/hyperledger/fabric/peer/channel.InitCmdFactory /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:133 github.com/hyperledger/fabric/peer/channel.join /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:41 github.com/hyperledger/fabric/peer/channel.joinCmd.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:111 main.main /opt/go/src/runtime/proc.go:192 runtime.main /opt/go/src/runtime/asm_amd64.s:2087 runtime.goexit ``` `docker logs` for peer container suggests following: ``` panic: Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly ``` Any ideas?

sivarajanrp (Tue, 25 Apr 2017 09:38:51 GMT):
Has joined the channel.

sivarajanrp (Tue, 25 Apr 2017 09:39:40 GMT):
How confidential tx are written in fabric v1.0 .. pls suggest

muralisr (Tue, 25 Apr 2017 09:43:11 GMT):
@guoger what level are you on (git log )

muralisr (Tue, 25 Apr 2017 09:47:20 GMT):
@sivarajanrp depends upon what you mean by "confidential" ... there are minimally these things that one can do into making TXs confidential (1) create a channel with only the parties involved (2) make sure only a subset of those can actually execute chaincode and endorse and (3) put only obfuscated (say hash) of data on the TX

guoger (Tue, 25 Apr 2017 09:50:05 GMT):
``` docker logs 4387ea811bb9 2017-04-25 09:46:42.151 UTC [common/configtx/test] 1 -> CRIT 001 Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly panic: Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly goroutine 1 [running]: panic(0xbe1b00, 0xc4201ea930) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201f2630, 0xd3bf90, 0x5d, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x127 github.com/hyperledger/fabric/common/configtx/test.init.1() /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/test/helper.go:73 +0x398 github.com/hyperledger/fabric/common/configtx/test.init() /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/test/helper.go:123 +0xb4 github.com/hyperledger/fabric/peer/channel.init() /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:140 +0x94 main.init() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:148 +0x80 ```

guoger (Tue, 25 Apr 2017 09:50:05 GMT):
``` $ docker logs containerId 2017-04-25 09:46:42.151 UTC [common/configtx/test] 1 -> CRIT 001 Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly panic: Could not find genesis.yaml, try setting PEER_CFG_PATH, ORDERER_CFG_PATH, or GOPATH correctly goroutine 1 [running]: panic(0xbe1b00, 0xc4201ea930) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201f2630, 0xd3bf90, 0x5d, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x127 github.com/hyperledger/fabric/common/configtx/test.init.1() /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/test/helper.go:73 +0x398 github.com/hyperledger/fabric/common/configtx/test.init() /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/test/helper.go:123 +0xb4 github.com/hyperledger/fabric/peer/channel.init() /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/join.go:140 +0x94 main.init() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:148 +0x80 ```

guoger (Tue, 25 Apr 2017 09:50:09 GMT):
@muralisr ^

muralisr (Tue, 25 Apr 2017 09:51:05 GMT):
and the git level @guoger ?

sivarajanrp (Tue, 25 Apr 2017 09:51:42 GMT):
@muralisr : This is my scenario, there are b2b interactions with multiple parties involved. If peer1 from Org1 and peer3 from Org2 needs to change specific keys and view those.. is that possible ? Or individual channels is the only way of addressing that I read somewhere that fabric can put encrypted date on ledger where only involved parties can decrypt with a private key.. pls suggest

sivarajanrp (Tue, 25 Apr 2017 09:51:42 GMT):
@muralisr : This is my scenario, there are b2b interactions with multiple parties involved. If peer1 from Org1 and peer3 from Org2 needs to change specific keys and view those.. is that possible ? Or individual channels is the only way of addressing that I read somewhere that fabric can put encrypted data on ledger where only involved parties can decrypt with a private key.. pls suggest

guoger (Tue, 25 Apr 2017 09:53:03 GMT):
@muralisr I don't follow.. what do you mean by _git level_?

muralisr (Tue, 25 Apr 2017 09:54:03 GMT):
if you do `git log` there should be a `commit` level

guoger (Tue, 25 Apr 2017 09:58:57 GMT):
@muralisr 7f114b, should be latest master

muralisr (Tue, 25 Apr 2017 10:01:26 GMT):
@guoger I'm on the same level and ./network_setup.sh up worked for me

guoger (Tue, 25 Apr 2017 10:01:51 GMT):
which platform are you running on? I'm using osx

muralisr (Tue, 25 Apr 2017 10:02:23 GMT):
I'm in vagrant

muralisr (Tue, 25 Apr 2017 10:02:33 GMT):
on osx

muralisr (Tue, 25 Apr 2017 10:02:52 GMT):
can you show output from `docker images` ?

muralisr (Tue, 25 Apr 2017 10:05:59 GMT):
@sivarajanrp `I read somewhere that fabric can put encrypted data on ledger where only involved parties can decrypt with a private key` - that's possible but its upto the application (SDK app + chaincode) to manage the crypto for that

muralisr (Tue, 25 Apr 2017 10:06:31 GMT):
ie, encryption / decryption won't be done for you by the fabric (at least currently)

sivarajanrp (Tue, 25 Apr 2017 10:07:04 GMT):
@muralisr : understood.. thanks for the clarity :thumbup:

guoger (Tue, 25 Apr 2017 10:07:11 GMT):
``` hyperledger/fabric-ca latest 35311d8617b4 5 weeks ago 240 MB hyperledger/fabric-ca x86_64-1.0.0-alpha 35311d8617b4 5 weeks ago 240 MB hyperledger/fabric-couchdb latest f3ce31e25872 5 weeks ago 1.51 GB hyperledger/fabric-couchdb x86_64-1.0.0-alpha f3ce31e25872 5 weeks ago 1.51 GB hyperledger/fabric-kafka latest 589dad0b93fc 5 weeks ago 1.3 GB hyperledger/fabric-kafka x86_64-1.0.0-alpha 589dad0b93fc 5 weeks ago 1.3 GB hyperledger/fabric-zookeeper latest 9a51f5be29c1 5 weeks ago 1.31 GB hyperledger/fabric-zookeeper x86_64-1.0.0-alpha 9a51f5be29c1 5 weeks ago 1.31 GB hyperledger/fabric-orderer latest 5685fd77ab7c 5 weeks ago 182 MB hyperledger/fabric-orderer x86_64-1.0.0-alpha 5685fd77ab7c 5 weeks ago 182 MB hyperledger/fabric-peer latest 784c5d41ac1d 5 weeks ago 184 MB hyperledger/fabric-peer x86_64-1.0.0-alpha 784c5d41ac1d 5 weeks ago 184 MB hyperledger/fabric-javaenv latest a08f85d8f0a9 5 weeks ago 1.42 GB hyperledger/fabric-javaenv x86_64-1.0.0-alpha a08f85d8f0a9 5 weeks ago 1.42 GB hyperledger/fabric-ccenv latest 91792014b61f 5 weeks ago 1.29 GB hyperledger/fabric-ccenv x86_64-1.0.0-alpha 91792014b61f 5 weeks ago 1.29 GB ```

muralisr (Tue, 25 Apr 2017 10:08:28 GMT):
@guoger so that's the issue (I think)... you are using alpha images

muralisr (Tue, 25 Apr 2017 10:09:22 GMT):
if you have downloaded latest fabric on osx, I' clean up docker images and do a `make native` in the fabric folder to build images based of your download

guoger (Tue, 25 Apr 2017 10:13:19 GMT):
@muralisr I see. So theoretically if I checkout `v1.0.0-alpha`, it should work? Nevertheless, I'll give `make native` a try

sivarajanrp (Tue, 25 Apr 2017 10:13:38 GMT):
@muralisr: is there a working example for node sdk + chaincode for v1.0 ? .. trying marbles and v1.0 fabric.. does not work and stops on chaincode instantiate e2e tests

muralisr (Tue, 25 Apr 2017 10:14:02 GMT):
@guoger yes as the config files will be in the expected location

muralisr (Tue, 25 Apr 2017 10:15:15 GMT):
@sivarajanrp let me make sure I understand... `./networks_setup.sh up` worked out of the box

muralisr (Tue, 25 Apr 2017 10:15:31 GMT):
when you modify it to use marbles, it fails ?

sivarajanrp (Tue, 25 Apr 2017 10:17:42 GMT):
yes.. it worked for me too out of the box.. for marbles.. there is fabric-ca involved and couchdb for state..

sivarajanrp (Tue, 25 Apr 2017 10:18:10 GMT):
for your ref.. doc i followed.. http://fabric-rtd.readthedocs.io/en/latest/marbles.html

muralisr (Tue, 25 Apr 2017 10:28:43 GMT):
@sivarajanrp I'm not sure (there may be some issues with e2e with the SDK as CI has difficultties with them too...) suggest you ask in fabric-sdk-node (if you haven't already)

sivarajanrp (Tue, 25 Apr 2017 10:29:41 GMT):
i will ask in fabric-sdk-node

sivarajanrp (Tue, 25 Apr 2017 10:29:46 GMT):
thnx

guoger (Tue, 25 Apr 2017 10:32:28 GMT):
@muralisr basically `download-dockerimages.sh` is not in `v1.0.0-alpha`, and `network_setup.sh` pulls `latest` by default instead of `x86_64-1.0.0-alpha`. However, `latest` tag are not available for some images, i.e. `fabric-orderer`. So I end up checking out `master`, run `download-dockerimages.sh`, checkout `v1.0.0-alpha`, and then `network_setup.sh`. Haven't finished yet... will give feedback here, thx!

muralisr (Tue, 25 Apr 2017 10:33:40 GMT):
you shouldn't have to checkout alpha when you download latest

muralisr (Tue, 25 Apr 2017 10:33:58 GMT):
you'd do `make native` if not using vagrant

muralisr (Tue, 25 Apr 2017 10:34:05 GMT):
or `make peer`,

muralisr (Tue, 25 Apr 2017 10:34:05 GMT):
or `make peer-docker`, `make orderer-docker` if using vagrant

muralisr (Tue, 25 Apr 2017 10:35:07 GMT):
they'll will build the images and tag them properly for network_setup.sh

guoger (Tue, 25 Apr 2017 10:42:19 GMT):
@muralisr I intended to try docker images from the hub, instead of building it natively. Any particular reason I shouldn't do that?

muralisr (Tue, 25 Apr 2017 10:48:32 GMT):
only reason I mentioned the above procedure is because you mentioned `checkout out master` and `checkout v1.0.0-alpha` in the same sentence :-)

muralisr (Tue, 25 Apr 2017 10:49:03 GMT):
alpha image wn't work with latest master

guoger (Tue, 25 Apr 2017 10:50:59 GMT):
I see, I guess I was just trying to say that `network_setup.sh` in `alpha` does NOT pull the image correctly, probably need a fix there.

guoger (Tue, 25 Apr 2017 11:29:47 GMT):
works like a charm! :P thanks @muralisr (a minor fix needed for osx, `true` is not in `/bin/true`, but a shell built-in command, so `generateCfgTrx.sh` needs to be tweaked)

LoupTheron (Tue, 25 Apr 2017 12:11:33 GMT):
Hi @here, for the configtx, where do we specify the required signatures to modify an element in `mod_policy` ? Or maybe it is just the number ?

jay.sharma (Tue, 25 Apr 2017 12:31:45 GMT):
Has joined the channel.

jay.sharma (Tue, 25 Apr 2017 12:32:03 GMT):
Hello All,

jay.sharma (Tue, 25 Apr 2017 12:41:17 GMT):
Hello All, I was running the example "e2e_cli" as given in the getting started: http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html It worked well. Then I tried to modify sample to have a basic flow as below: (a) Create the channel (b) One peer join the channel (c) Query the ledger (d) Invoke (e) Query It is fine working as it is simply do 1 transaction and 1 query. I want to do millions of transaction. For that i modified to call invoke transaction in a loop of some thousands.. But it always breaks after number of transactions may be 100,200,300 or sometime in 1000 ..below the is error that i get when it fails: Error: Error getting broadcast client: Error connecting to orderer0:7050 due to grpc: timed out when dialing Is any body have any idea for this?

jay.sharma (Tue, 25 Apr 2017 12:41:17 GMT):
Hello All, I was running the example "e2e_cli" as given in the getting started: http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html It worked well. Then I tried to modify sample to have a basic flow as below: (a) Create the channel (b) One peer join the channel (c) Query the ledger (d) Invoke (e) Query It is fine working as it is simply do 1 transaction and 1 query. I want to do millions of transaction. For that i modified to call invoke transaction in a loop of some thousands.. But it always breaks after number of transactions may be 100,200,300 or sometime in 1000 ..Below is error that i get when it fails: Error: Error getting broadcast client: Error connecting to orderer0:7050 due to grpc: timed out when dialing Is any body have any idea for this?

pd93 (Tue, 25 Apr 2017 13:12:36 GMT):
@jay.sharma almost sounds like you've DOS'd your orderer. GRPC errors like that are caused because it can't connect to the orderer for some reason. Check the status of your containers with `docker ps -a`. If the orderer saying `exited x min ago` or something similar, then the reason is because your container has crashed. Try checking your docker-compose logs with `docker-compose logs --tail 1000 -f`. You can check the logs for a specific container (orderer0 would be useful here) with `docker logs `. If you still can't find anything meaningful, try increasing the logging levels for your containers to `DEBUG`. All I can suggest for now

pd93 (Tue, 25 Apr 2017 13:12:36 GMT):
@jay.sharma almost sounds like you've DOS'd your orderer. GRPC errors like that are caused because it can't connect to the orderer for some reason. Check the status of your containers with `docker ps -a`. If the orderer says `exited x min ago` or something similar, then the reason is because your container has crashed. Try checking your docker-compose logs with `docker-compose logs --tail 1000 -f`. You can check the logs for a specific container (orderer0 would be useful here) with `docker logs `. If you still can't find anything meaningful, try increasing the logging levels for your containers to `DEBUG`. All I can suggest for now

mrkiouak (Tue, 25 Apr 2017 13:14:36 GMT):
Has joined the channel.

joe-alewine (Tue, 25 Apr 2017 13:16:38 GMT):
Can someone describe the difference in the kinds of background information (I've seen it described as "information-scoped messages") peers share when they were registered by one CA with different instances as compared to the information peers share when they were registered by entirely different CAs? Thanks.

mrshah-ibm (Tue, 25 Apr 2017 13:23:13 GMT):
Has joined the channel.

hancockp (Tue, 25 Apr 2017 13:51:22 GMT):
Has joined the channel.

marek.dapps (Tue, 25 Apr 2017 13:52:58 GMT):
Has joined the channel.

LoupTheron (Tue, 25 Apr 2017 14:21:14 GMT):
Can someone explain to me what does `ModPolicy` do ? I don't get it...

nickgaski (Tue, 25 Apr 2017 14:34:45 GMT):
@LoupTheron - have you read through this piece - http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html. If you need further edification, I would impose upon @muralisr or @jyellick or perhaps look at the configtx protos

jyellick (Tue, 25 Apr 2017 14:34:45 GMT):
Has joined the channel.

LoupTheron (Tue, 25 Apr 2017 14:41:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dwM9CjmRkKaDPC9Am) @nickgaski Yes, I've read but I can't understand what does the number of ModPolicy `stand for`... It is used to govern the required signatures to modify an element, but how ?

LoupTheron (Tue, 25 Apr 2017 14:41:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dwM9CjmRkKaDPC9Am) @nickgaski Yes, I've read but I can't understand what does the number of `ModPolicy` stand for... It is used to govern the required signatures to modify an element, but how ?

nickgaski (Tue, 25 Apr 2017 14:47:53 GMT):
I'm looking at the proto. Don't have a good answer for you, but your question certainly merits one. Will find out

LoupTheron (Tue, 25 Apr 2017 14:49:23 GMT):
I'm also looking at it, ok, thank you anyway :)

LoupTheron (Tue, 25 Apr 2017 15:20:55 GMT):
Another question: A chaincode access to the state database from the databse port but not to blockchain right ? As it is executed in a docker container

SzaboZoltan (Tue, 25 Apr 2017 15:23:27 GMT):
Has joined the channel.

SzaboZoltan (Tue, 25 Apr 2017 15:23:45 GMT):
Where does a Hyperledger Fabric system keeps its blockchain data? (I try to use https://github.com/DecodedCo/blockchain-vote , but it only collect the parties, not the votes – or maybe I am too inpatient.)

hugoB (Tue, 25 Apr 2017 15:26:27 GMT):
Has joined the channel.

tennenjl (Tue, 25 Apr 2017 15:48:19 GMT):
@SzaboZoltan Blockchain data is stored in the ledger (default leveldb). You can read more about the ledger here: https://hyperledger-fabric.readthedocs.io/en/latest/fabric_model.html#ledger-features and here https://hyperledger-fabric.readthedocs.io/en/latest/ledger.html

tennenjl (Tue, 25 Apr 2017 15:48:19 GMT):
@SzaboZoltan Blockchain data (state) is stored in the ledger (default leveldb) and the Blockchain is written to the filesystem. You can read more about the ledger here: https://hyperledger-fabric.readthedocs.io/en/latest/fabric_model.html#ledger-features and here https://hyperledger-fabric.readthedocs.io/en/latest/ledger.html

tomconte (Tue, 25 Apr 2017 15:51:37 GMT):
Has joined the channel.

LoupTheron (Tue, 25 Apr 2017 15:51:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DoG4sYzjmGeMhMzf5) @nickgaski In `protos/common/policies.proto`, `SignaturePolicy` structure policies within signatures (was hard to understand protobuff's variables values `1, 2, 3, 4...`)

LoupTheron (Tue, 25 Apr 2017 15:52:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5qGmCuwR2NYxxECcQ) @tennenjl As I understand, the leveldb is the state database, but not the ledger, I am wrong ?

tennenjl (Tue, 25 Apr 2017 15:56:32 GMT):
My apologies, that was a poor answer, my understanding is that the Blockchain itself is written to the file system and the state db is leveldb

LoupTheron (Tue, 25 Apr 2017 15:57:00 GMT):
Ok, it is also mine

bh4rtp (Tue, 25 Apr 2017 16:29:47 GMT):
@jay.sharma i am also facing this issue. i keep fabric updated every day. yesterday ran with dialing timeout error. today is ok. and a few minutes ago, i updated and built the latest fabric, the dialing timeout occurs again. it makes me confused.

assasinx93 (Tue, 25 Apr 2017 17:03:49 GMT):
Has joined the channel.

rangak (Wed, 26 Apr 2017 04:10:42 GMT):
Has joined the channel.

jay.sharma (Wed, 26 Apr 2017 04:22:40 GMT):
@bh4rtp Are you also trying for large number of transactions?

LoupTheron (Wed, 26 Apr 2017 08:59:14 GMT):
Hi @here, if the MSP is used to speak with the ca and to facilitate development certificate generation right ? So it implement the ca-client ?

pd93 (Wed, 26 Apr 2017 09:02:04 GMT):
@LoupTheron You don't need to use the `@here` tag if you're just asking a question... Each time you do that, you're sending a direct message to 250+ people...

LoupTheron (Wed, 26 Apr 2017 09:02:27 GMT):
oops sorry

pd93 (Wed, 26 Apr 2017 09:02:38 GMT):
It's all good :P

bh4rtp (Wed, 26 Apr 2017 09:23:18 GMT):
@jay.sharma no, just testing e2e_cli example.

pd93 (Wed, 26 Apr 2017 09:28:15 GMT):
Getting an `illegal file mode 100775` error when vendoring chaincode deps. Does anyone know what permissions our vendored files are expected to have?

pd93 (Wed, 26 Apr 2017 09:28:15 GMT):
Getting an `illegal file mode 100775` error when vendoring chaincode deps. Does anyone know what permissions our vendored files are expected to have? **-- edit --** Never mind.. `666` seems to be the answer (see here: https://github.com/hyperledger/fabric-sdk-go/blob/master/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/golang/platform.go#L140)

pd93 (Wed, 26 Apr 2017 09:28:15 GMT):
Getting an `illegal file mode 100775` error when vendoring chaincode deps. Does anyone know what permissions our vendored files are expected to have? **-- edit --** Never mind.. `chmod 666 vendor -R` seems to have fixed it (Found this here: https://github.com/hyperledger/fabric-sdk-go/blob/master/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/golang/platform.go#L140)

pd93 (Wed, 26 Apr 2017 09:28:15 GMT):
Getting an `illegal file mode 100775` error when vendoring chaincode deps. Does anyone know what permissions our vendored files are expected to have? **-- edit --** (Found this here: https://github.com/hyperledger/fabric-sdk-go/blob/master/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/golang/platform.go#L140) `sudo find ./vendor -type f -exec chmod 666 {} \;` and `sudo find ./vendor -type d -exec chmod 644 {} \;` seem to fix the permissions

LoupTheron (Wed, 26 Apr 2017 09:28:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tR28Z3bHtd3uxh3Xh) @bh4rtp Same error

hayato (Wed, 26 Apr 2017 10:42:54 GMT):
Has joined the channel.

prashiyn (Wed, 26 Apr 2017 17:05:18 GMT):
Has joined the channel.

jamesv84 (Wed, 26 Apr 2017 18:03:07 GMT):
Building 1.0 from source... How does my peer know what Fabric CA to communicate with upon startup? I don't such a setting in core.yml unless I missed it.

ssiegel95 (Wed, 26 Apr 2017 21:00:21 GMT):
Has joined the channel.

rohitbordia (Thu, 27 Apr 2017 00:11:30 GMT):
Has joined the channel.

rohitbordia (Thu, 27 Apr 2017 00:11:54 GMT):
Hi guys , have a question on fabric-setup on swarm cluster

pancake (Thu, 27 Apr 2017 09:00:26 GMT):
Has joined the channel.

dklesev (Thu, 27 Apr 2017 16:22:45 GMT):
Has joined the channel.

jinvanstee (Thu, 27 Apr 2017 16:46:02 GMT):
Newbie here. Since it is a distributed ledger, the idea is not one partner has full control of the entire blockchain correct? So how is it determined, who will setup the initial Blockchain network? And who will make changes to the model in the future? How do partners decide who to trust enough to act as the "Blockchain administrator" in this peered network?

muralisr (Fri, 28 Apr 2017 00:17:05 GMT):
@jinvanstee several aspects to this but broadly (1) orgs can contribute resources to setup ordering service (or use a 3rd party of they all agree) (2) there is bootstrapping procedures to setup the system which determine things like ACL, identity etc. Part of that would be things like who are admins. Only when all this has been agreed upon the system can be setup and only after it has been set up can it become operational

hshimo (Fri, 28 Apr 2017 07:16:34 GMT):
I'd like to start to use fabric v1.0, but how can I setup the fabric environment? very difficult to find to the document so far. Is this the best document at the moment? https://hyperledger-fabric.readthedocs.io/en/latest/getting_startedv2.html#

muralisr (Fri, 28 Apr 2017 07:56:47 GMT):
@hshimo getting_started gives you a practical means to start a network without going into the architecture or core concepts

hshimo (Fri, 28 Apr 2017 07:59:56 GMT):
any document for dev env setup?

muralisr (Fri, 28 Apr 2017 08:00:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html and https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html are good starting points for understanding concepts

muralisr (Fri, 28 Apr 2017 08:00:33 GMT):
let me check

muralisr (Fri, 28 Apr 2017 08:01:12 GMT):
perhaps you are looking for this - https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html ?

muralisr (Fri, 28 Apr 2017 08:02:14 GMT):

Message Attachments

muralisr (Fri, 28 Apr 2017 08:02:42 GMT):
I'd say all those links would help with setting up devenv

hshimo (Fri, 28 Apr 2017 08:04:12 GMT):
ok. I'll try to setup devenv . I tried the getting_started, but it doesn't work with error.

hshimo (Fri, 28 Apr 2017 08:05:19 GMT):
Where should I report error or problem in document?

hshimo (Fri, 28 Apr 2017 08:06:05 GMT):
ah, I found it. here. https://github.com/hyperledger/fabric/blob/master/docs/source/getting_startedv2.rst

muralisr (Fri, 28 Apr 2017 08:07:55 GMT):
what error were you getting @hshimo ?

hshimo (Fri, 28 Apr 2017 08:08:37 GMT):
./../../$os_arch/bin/configtxgen -profile TwoOrgs -outputBlock orderer.block 2017-04-28 16:07:18.130 JST [common/configtx/tool] main -> INFO 001 Loading configuration 2017-04-28 16:07:18.131 JST [configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type “” panic: Error reading configuration: Unsupported Config Type “” goroutine 1 [running]: panic(0x490d00, 0xc4201faae0) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201f87b0, 0x5663ea, 0x1f, 0xc4201faa00, 0x1, 0x1) /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x127 github.com/hyperledger/fabric/common/configtx/tool/localconfig.Load(0x7fff5fbffc16, 0x7, 0x0) /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/localconfig/config.go:195 +0x79c main.main() /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:204 +0x405 1 Comment Collapse 一時間も経ってしまったので、現状を報告します。

hshimo (Fri, 28 Apr 2017 08:08:37 GMT):
```./../../$os_arch/bin/configtxgen -profile TwoOrgs -outputBlock orderer.block 2017-04-28 16:07:18.130 JST [common/configtx/tool] main -> INFO 001 Loading configuration 2017-04-28 16:07:18.131 JST [configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type “” panic: Error reading configuration: Unsupported Config Type “” goroutine 1 [running]: panic(0x490d00, 0xc4201faae0) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc4201f87b0, 0x5663ea, 0x1f, 0xc4201faa00, 0x1, 0x1) /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x127 github.com/hyperledger/fabric/common/configtx/tool/localconfig.Load(0x7fff5fbffc16, 0x7, 0x0) /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/localconfig/config.go:195 +0x79c main.main() /w/workspace/fabric-verify-x86_64_1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:204 +0x405 ```

hshimo (Fri, 28 Apr 2017 08:09:40 GMT):
maybe this issue? https://github.com/hyperledger/fabric/pull/44

wsh_bob (Fri, 28 Apr 2017 08:12:02 GMT):
Has joined the channel.

hshimo (Fri, 28 Apr 2017 08:12:21 GMT):
yes, this pull request seems to fix the problem

muralisr (Fri, 28 Apr 2017 08:15:14 GMT):
ok, then :-)

dorrakhribi (Fri, 28 Apr 2017 08:37:01 GMT):
hello, i'm trying to run the fabric sdk but i keep getting the following error:"failed to get a new tcert" can ony one help me please ?

PushpalathaHiremath (Fri, 28 Apr 2017 10:28:43 GMT):
Hi All, i just pulled the latest fabric.. The command line channel creation is not working for me.. Do u know any known issue.. or am i missing something here??? Pushpalathas-Mac:fabric Pushpalatha$ peer channel create -o 127.0.0.1:7050 -c ch1 Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [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

vugranam (Fri, 28 Apr 2017 12:14:51 GMT):
Has joined the channel.

pd93 (Fri, 28 Apr 2017 14:07:52 GMT):
I'm getting this error in my production environment which I don't get in my test environment. Does anyone know what the problem might be? ``` TypeError: identityProto.SerializedIdentity is not a constructor at Identity.serialize (/...../node_modules/fabric-client/lib/msp/identity.js:113:28) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Chain.js:1987:49) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Client.js:742:16) ```

pd93 (Fri, 28 Apr 2017 14:07:52 GMT):
I'm getting this error in my production environment which I don't get in my test environment. Does anyone know what the problem might be? ``` TypeError: identityProto.SerializedIdentity is not a constructor at Identity.serialize (/...../node_modules/fabric-client/lib/msp/identity.js:113:28) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Chain.js:1987:49) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Client.js:742:16) ``` **--edit--** Solution was to downgrade GRPC from v1.3.0 to v.1.2.4 [ ](https://chat.hyperledger.org/channel/fabric-sdk-node?msg=pdoppvfRGq4gPKcYy) Thanks @sstone1. That saved me hours of debugging :P

pd93 (Fri, 28 Apr 2017 14:07:52 GMT):
I'm getting this error in my production environment which I don't get in my test environment. Does anyone know what the problem might be? ``` TypeError: identityProto.SerializedIdentity is not a constructor at Identity.serialize (/...../node_modules/fabric-client/lib/msp/identity.js:113:28) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Chain.js:1987:49) at Function.buildTransactionID (/...../node_modules/fabric-client/lib/Client.js:742:16) ``` **--edit--** Solution was to downgrade GRPC from v1.3.0 to v.1.2.4 [ ](https://chat.hyperledger.org/channel/fabric-sdk-node?msg=pdoppvfRGq4gPKcYy) Thanks @sstone1 . That saved me hours of debugging :P

nickgaski (Fri, 28 Apr 2017 14:39:10 GMT):
hi @hshimo - did you solve the "unsupported config type" error ?

hshimo (Fri, 28 Apr 2017 14:39:54 GMT):
@nickgaski It looks like it's solved.

nickgaski (Fri, 28 Apr 2017 14:40:12 GMT):
would you be kind enough to share the steps you took to resolve?

hshimo (Fri, 28 Apr 2017 14:41:37 GMT):
Just hit ""export FABRIC_CFG_PATH=$PWD" instead of export ORDERER_CFG_PATH=$PWD. Detail is https://github.com/hyperledger/fabric/pull/44

hshimo (Fri, 28 Apr 2017 14:41:37 GMT):
Just hit ""export FABRIC_CFG_PATH=$PWD" instead of "export ORDERER_CFG_PATH=$PWD". Detail is https://github.com/hyperledger/fabric/pull/44

nickgaski (Fri, 28 Apr 2017 14:44:40 GMT):
awesome. you rock!

svasilyev (Fri, 28 Apr 2017 16:51:14 GMT):
Has joined the channel.

jjjjibm (Fri, 28 Apr 2017 19:47:40 GMT):
@here I am looking at the list of fabric prerequisites in this document: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html . At the end of the list, seeing these items:

jjjjibm (Fri, 28 Apr 2017 19:47:40 GMT):
@here I am looking at the list of fabric prerequisites in this document: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html . At the end of the list, seeing these items:

jjjjibm (Fri, 28 Apr 2017 19:48:39 GMT):
•(only if using Vagrant) - Vagrant - 1.7.4 or later •(only if using Vagrant) - VirtualBox - 5.0 or later •BIOS Enabled Virtualization - Varies based on hardware •Note: The BIOS Enabled Virtualization may be within the CPU or Security settings of the BIOS

jjjjibm (Fri, 28 Apr 2017 19:49:19 GMT):
I am wondering if the BIOS virtualization is needed if you are not running Vagrant/VirtualBox?

shanthi0547 (Sun, 30 Apr 2017 11:54:00 GMT):
can i execute chaincode example 02 in windows?

shanthi0547 (Sun, 30 Apr 2017 12:16:26 GMT):
ubuntu@hyperledger-devenv:a6ecd3e:/opt/gopath/src/github.com/hyperledger/fabric-sample$ curl -L https://logs.hyperledger.org/sandbox/vex-yul-hyp-jenkins-2/fabric-verif y-x86_64_1/5/release.tar.gz -o release.tar.gz 2> /dev/null; tar -xvf release.tar.gz tar: This does not look like a tar archive gzip: stdin: not in gzip format tar: Child returned status 1

ianco (Sun, 30 Apr 2017 16:32:31 GMT):
Has joined the channel.

shanthi0547 (Mon, 01 May 2017 12:26:07 GMT):
hi i am trying in windows 64 bit windows 10 docker toolbox docker pull hyperledger/fabric-peer:latest the above gives Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/info: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.). Using system default: https://index.docker.io/v1 error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/images/create?fromImage=hyperledger%2Ffabric-peer&tag=latest: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running. suggest

nickgaski (Mon, 01 May 2017 13:58:00 GMT):
hi @shanthi0547 - we are fixing the issue with the tarball. Please bear with us; will have something by EOD

shanthi0547 (Mon, 01 May 2017 13:58:51 GMT):
@nickgaski

shanthi0547 (Mon, 01 May 2017 13:59:04 GMT):
is that issue with docker ?

nickgaski (Mon, 01 May 2017 14:00:01 GMT):
no. Let me look at your other post regarding Docker. The tarball issue arose because the repo got purged :grimacing:

nickgaski (Mon, 01 May 2017 14:00:16 GMT):
However, there is a workaround if you'd still like to run the getting started code

nickgaski (Mon, 01 May 2017 14:00:25 GMT):
let me know and I'll help

nickgaski (Mon, 01 May 2017 14:01:16 GMT):
I'd suggest perusing stack overflow with those error logs with your Docker Toolbox. I'd wager that someone has solved that

ShafqatMasood (Mon, 01 May 2017 14:56:06 GMT):
Has joined the channel.

ShafqatMasood (Mon, 01 May 2017 14:56:33 GMT):
getting this error in in orderer0 container "Error creating configtx manager and handlers: Error creating group Consortiums: Disallowed channel group: Consortiums"

saism (Mon, 01 May 2017 17:40:11 GMT):
Where can I read about Consortiums role in fabric? Seems like a recent update. Thanks.

nickgaski (Mon, 01 May 2017 18:08:02 GMT):
@mastersingh24 @smithbk - we see the following output when using the cryptogen tool. While it's obvious that the certs are in fact being generated properly, this logging is somewhat off putting. Can you offer any enlightenment on what this is telling us and why we're seeing it?

nickgaski (Mon, 01 May 2017 18:08:07 GMT):
```2017-05-01 13:14:22.696 EDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2017-05-01 13:14:22.716 EDT [bccsp] GetDefault -> WARN 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.```

yacovm (Mon, 01 May 2017 18:37:21 GMT):
@nickgaski you can try to compile cryptogen and invoke `factory.InitFactories(nil)` and the warning will disappear

yacovm (Mon, 01 May 2017 18:37:48 GMT):
@vpaprots ^

nickgaski (Mon, 01 May 2017 18:42:39 GMT):
thanks Yacov

alexrosen (Mon, 01 May 2017 22:14:43 GMT):
Has joined the channel.

malark (Tue, 02 May 2017 01:21:19 GMT):
Has joined the channel.

malark (Tue, 02 May 2017 01:21:49 GMT):
Hi, I am following this tutorial : http://openblockchain.readthedocs.io/en/latest/dev-setup/build in windows 7. When I run make peer within VM in a docker QuickStart Terminal, I get this message. Please help me to proceed further. vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$ make peer make: *** No rule to make target `peer'. Stop. vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$

Maha1992 (Tue, 02 May 2017 07:22:19 GMT):
Has joined the channel.

Maha1992 (Tue, 02 May 2017 07:25:38 GMT):
i was trying to run the four-peer example in my VM(ubuntu) 16.04 with 2 GB RAM and 20 GB hard disk ..but i was getting the following error, eer3 | 2017-05-01 15:42:01.190 UTC [nodeCmd] func6 -> INFO 32c Starting profiling server with listenAddress = 0.0.0.0:6060 Traceback (most recent call last): File "bin/docker-compose", line 3, in File "compose/cli/main.py", line 67, in main File "compose/cli/main.py", line 117, in perform_command File "compose/cli/main.py", line 937, in up File "compose/cli/log_printer.py", line 87, in run File "compose/cli/log_printer.py", line 235, in consume_queue MemoryError Failed to execute script docker-compose

noursaadallah (Tue, 02 May 2017 09:24:02 GMT):
Has joined the channel.

muralisr (Tue, 02 May 2017 10:21:47 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=XKCufDK3rthXGPJhJ

muralisr (Tue, 02 May 2017 10:31:14 GMT):
@Rupertredding meant to get back on that ... in the fabric the "SignedProposal" is the protocol data that contains details on who sent the proposal to the fabric and used for doing ACL. This data is also passed to chaincodes in the request. In particular please look at `SignatureHeader` in protos/common/common.proto and its usage (for example.. there are other places where you can look for such usage) in core/policy/policy.go (CheckPolicy uses that to check the creator of the message against the policy). ( @adc, @aso, do comment too if you would please). Hope that helps

muralisr (Tue, 02 May 2017 10:31:14 GMT):
@Rupertredding meant to get back on that ... in the fabric the "SignedProposal" is the protocol data that contains details on who sent the proposal to the fabric and used for doing ACL. This data is also passed to chaincodes in the request. In particular please look at `SignatureHeader` in protos/common/common.proto and its usage (that's just for example.. there are other places where you can look for such usage) in core/policy/policy.go (CheckPolicy uses that to check the creator of the message against the policy). ( @adc, @aso, do comment too if you would please). Hope that helps

adc (Tue, 02 May 2017 10:31:14 GMT):
Has joined the channel.

saism (Tue, 02 May 2017 19:29:02 GMT):
got `Rejecting CONFIG_UPDATE because: Config update for channel creation does not set application group version to 1, was 0` I'm building request using node sdk, maybe someone can link me to a proper request example so I can check what's missing? Thanks

Ayubkhan (Tue, 02 May 2017 20:37:09 GMT):
Has joined the channel.

foravneet (Tue, 02 May 2017 23:01:53 GMT):
Has joined the channel.

Rupertredding (Wed, 03 May 2017 00:06:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uMqGLmo2H4mR3H7Xa) @muralisr @adc @aso - Could you please address the second part of my question (2) When chaincode A calls chaincode B, will the 'msg.sender' be address of A (like in Ethereum) or it will be the public key of the original caller of chaincode A? (i.e. is there a way for a chaincode to pose as executor/message-sender ?)

yongkook (Wed, 03 May 2017 03:43:59 GMT):
Has joined the channel.

Ayubkhan (Wed, 03 May 2017 04:25:30 GMT):
After opening the blockchain service in ibm blue mix I do not see the samples and tutorials section, could some one guide me through this ? https://console.ng.bluemix.net/docs/services/blockchain/index.html

bmkor (Wed, 03 May 2017 05:33:36 GMT):
Has joined the channel.

antitoine (Wed, 03 May 2017 07:40:30 GMT):
Has joined the channel.

Kenster (Wed, 03 May 2017 07:58:21 GMT):
Has joined the channel.

SahilKapoor (Wed, 03 May 2017 08:36:06 GMT):
Has joined the channel.

SahilKapoor (Wed, 03 May 2017 08:37:08 GMT):
When I execute .network_setup.sh I receive 2017-05-03 08:33:35.871 UTC [msp] Sign -> DEBU 007 Sign: digest: 6454604F93A12B905A80E491D55F7462208FEAE0802FF13EC7CAF2A0E9AE11F0 Error: Error endorsing chaincode: rpc error: code = 2 desc = Error starting container: Failed to generate platform-specific docker build: Error creating container: no such image Usage: p !!!!!!!!!!!!!!! Chaincode instantiation on PEER2 on channel 'doctrax' failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

SanthoshKumarMK (Wed, 03 May 2017 09:14:09 GMT):
Has joined the channel.

SanthoshKumarMK (Wed, 03 May 2017 09:14:51 GMT):
#chaincode-dev #fabric I have successfully created the channel and able to join the channel too but i am getting this error "panic: runtime error: index out of range" when i want to install chaincode on the peer. The command I used to install chaincode is "peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 ".

FarooqAzam1 (Wed, 03 May 2017 10:56:43 GMT):
Has joined the channel.

narayanprusty (Wed, 03 May 2017 11:32:48 GMT):
Has joined the channel.

FarooqAzam1 (Wed, 03 May 2017 12:04:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YJo6oPy6WPzoCT5ij) i am facing same issue

muralisr (Wed, 03 May 2017 13:27:44 GMT):
@Rupertredding `or it will be the public key of the original caller of chaincode A?` - yes the SignedProposal from the request is passed along the chain. Will also note that this is a point in time statement. Things in ACL will keep evolving ... ( @adc @aso do correct / add please )

adc (Wed, 03 May 2017 14:24:39 GMT):
yes, that's correct

adc (Wed, 03 May 2017 14:24:52 GMT):
the point is that the chaincode does not have an identity at the current stage

conorfennell (Wed, 03 May 2017 16:01:48 GMT):
Has joined the channel.

conorfennell (Wed, 03 May 2017 16:03:22 GMT):
On a mac running the `network_setup.sh jam` I am receiving these errors: ``` 2017-05-02 17:45:50.386 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Usage: peer channel create [flags] ```

conorfennell (Wed, 03 May 2017 16:03:22 GMT):
On a mac running the `./network_setup.sh up jam` I am receiving these errors: ``` 2017-05-02 17:45:50.386 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Usage: peer channel create [flags] ```

weiz19702000 (Wed, 03 May 2017 17:31:28 GMT):
Has joined the channel.

weiz19702000 (Wed, 03 May 2017 17:31:37 GMT):
at step Start the network (No TLS), I tried to run "peer channel create -o orderer.example.com:7050 -c mychannel -f channel.tx" but get "Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure". I am running this on my macbook pro. Any one has the similar experience?

Paulo.Rodrigues (Wed, 03 May 2017 17:37:58 GMT):
Has joined the channel.

MikeC711 (Wed, 03 May 2017 17:54:22 GMT):
Has joined the channel.

MikeC711 (Wed, 03 May 2017 18:00:48 GMT):
Anyone run into the error in setting up environment (http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html) where the cli container does not come up? I am running on a Xenial (ubuntu 16.04) guest of RHEL 7.3 ... so I stopped firewalld on RHEL (issue I ran into in past with docker-compose) ... but it did not help. Main error is: peer0.org2.example.com | 2017-05-03 12:45:02.139 UTC [dockercontroller] deployImage -> ERRO 001 Error building images: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) peer0.org2.example.com | 2017-05-03 12:45:02.139 UTC [dockercontroller] deployImage -> ERRO 002 Image Output: peer0.org2.example.com | ******************** peer0.org2.example.com | Step 1/3 : FROM hyperledger/fabric-baseos:x86_64-0.3.0 peer0.org2.example.com | peer0.org2.example.com | ******************** peer0.org2.example.com | 2017-05-03 12:45:02.139 UTC [chaincode] Launch -> ERRO 003 launchAndWaitForRegister failed Error starting container: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) cli | 2017-05-03 12:44:41.094 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'chaincode' And I am attaching captured output. As I was going thru instructions, it was going almost scary good ... so I guess I was due.

MikeC711 (Wed, 03 May 2017 18:04:54 GMT):

Message Attachments

idpattison (Wed, 03 May 2017 22:46:45 GMT):
Has joined the channel.

MikeC711 (Thu, 04 May 2017 01:36:01 GMT):
Assuming this is not the right place to ask the question on the cli container not coming up ... anyone know a different place?

SanthoshKumarMK (Thu, 04 May 2017 06:24:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WYqHR22T7CidWP43s) @FarooqAzam1 Please let me know if you find any solutions for this. Thanks

FarooqAzam1 (Thu, 04 May 2017 06:25:35 GMT):
@SanthoshKumarMK still in hunt

Kenster (Thu, 04 May 2017 06:42:52 GMT):
hello guys, im now in TLS enabled script. I try to run PRIV_KEY=$(ls crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/keystore/) sed -i "s/ORDERER_PRIVATE_KEY/${PRIV_KEY}/g" docker-compose.yaml sed: 1: "docker-compose.yaml": extra characters at the end of d command is this normal? TIA

MathiasFoehr (Thu, 04 May 2017 13:07:47 GMT):
Has joined the channel.

arnuschky (Thu, 04 May 2017 14:20:41 GMT):
Has joined the channel.

arnuschky (Thu, 04 May 2017 14:22:12 GMT):
Hello. I have a beginner's question regarding fabric 1.0. How can contracts interact? Can I simply read the state or send messages between contracts?

arnuschky (Thu, 04 May 2017 15:07:48 GMT):
Nobody?

arnuschky (Thu, 04 May 2017 15:09:41 GMT):
Let me rephrase: no matter which way they interact, how can they *trust* each other? In Fabric 1.0, each chaincode can have a totally different set of validators. I guess chaincodes can only trust each other's results if their validators are overlapping or the same, no?

jtclark (Thu, 04 May 2017 16:22:08 GMT):
Has joined the channel.

MathiasFoehr (Thu, 04 May 2017 17:19:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KH2LK8WGCSXqJCGsP) @conorfennell

MathiasFoehr (Thu, 04 May 2017 17:19:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KH2LK8WGCSXqJCGsP) @conorfennell I have exactly the same problem using both stable and edge version of Docker and OSX 10.12.4 . There is no way to run peer via bash ? Is this normal ? (I'm bloody new to fabric )

MohammadObaid (Thu, 04 May 2017 17:27:49 GMT):
Has joined the channel.

MohammadObaid (Thu, 04 May 2017 17:28:24 GMT):
Everytime I ran this command `CHANNEL_NAME=mychannelname docker-compose -f docker-compose-no-tls.yaml up` it shows following output. I dont know why it exits. I am following this tutorial http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html

MohammadObaid (Thu, 04 May 2017 17:28:40 GMT):

Message Attachments

MohammadObaid (Thu, 04 May 2017 17:28:54 GMT):
I would be extremely grateful if someone helps me . Due to this I cannot create channel

ishan.gulhane (Thu, 04 May 2017 17:57:31 GMT):
Has joined the channel.

MathiasFoehr (Thu, 04 May 2017 17:58:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cw2D3SmP5sbG7aDKp) @MohammadObaid Hi Mohammad, are you sure you have a clean installation without reminers of 0.6 ? When googling signcerts fabric, I get missing pages messages ...

MathiasFoehr (Thu, 04 May 2017 17:58:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cw2D3SmP5sbG7aDKp) @MohammadObaid Hi Mohammad, are you sure you have a clean installation without remainers of 0.6 ? When googling signcerts fabric, I get missing pages messages ...

MohammadObaid (Thu, 04 May 2017 18:00:53 GMT):
@MathiasFoehr I didnt install fabric 0.6 previously. Also I didnt get any errors during installation. Is there a way I can check now if my installation is clean?

MathiasFoehr (Thu, 04 May 2017 18:03:09 GMT):
I don't know about checking the installation; I just saw in your printscreen that the system complained about missing "signcerts"

Rupertredding (Thu, 04 May 2017 19:27:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CZ7jHocv7npSMB4xZ) @muralisr @adc @aso So a contract (chaincode) cannot act as an 'account' in Hyperledeger Fabric today? Do you have any plans to develop that feature?

nickgaski (Thu, 04 May 2017 20:50:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vqNSMdkkLZCDXWZFj) @weiz19702000 are you passing the command in its entirety. Should be ```CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.example.com:7050 -c mychannel -f channel.tx```

nickgaski (Thu, 04 May 2017 20:50:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vqNSMdkkLZCDXWZFj) @weiz19702000 are you passing the command in its entirety. Should be `CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.example.com:7050 -c mychannel -f channel.tx`

nickgaski (Thu, 04 May 2017 20:55:21 GMT):
@MohammadObaid - the volumes are not being mounted properly in your containers

nickgaski (Thu, 04 May 2017 20:55:32 GMT):
you are running on windows I take it?

nickgaski (Thu, 04 May 2017 21:01:10 GMT):
@MohammadObaid - would you also kindly try the following: `./network_setup.sh down` and then `./network_setup.sh restart`. If that fails then we need to troubleshoot. Are we certain that your crypto material has been properly generated? One of your errors suggests that the crypto may in fact not even be in those folders. If the script fails, let's try not using the $os_arch flag and passing in `windows-amd64` when we run our tooling

nickgaski (Thu, 04 May 2017 21:01:51 GMT):
If the artifacts generate properly then my supposition is that this is a docker issue

nickgaski (Thu, 04 May 2017 21:02:09 GMT):
However, I don't think they are ;)

MohammadObaid (Thu, 04 May 2017 21:06:09 GMT):
when I run ,.network_setup.sh down it say no conatiner available for deletion .

nickgaski (Thu, 04 May 2017 21:06:29 GMT):
ok so that means nothing started. your docker-compose up failed.

nickgaski (Thu, 04 May 2017 21:06:39 GMT):
try the restart command and tell me what you see

nickgaski (Thu, 04 May 2017 21:07:34 GMT):
@MathiasFoehr - are you still hung?

MohammadObaid (Thu, 04 May 2017 21:08:31 GMT):
This is the entire output

MohammadObaid (Thu, 04 May 2017 21:08:54 GMT):

Message Attachments

nickgaski (Thu, 04 May 2017 21:55:49 GMT):
ok.

nickgaski (Thu, 04 May 2017 21:55:51 GMT):
try this for me

nickgaski (Thu, 04 May 2017 21:56:31 GMT):
`./../../windows-amd64/bin/cryptogen generate --config=./crypto-config.yaml`

nickgaski (Thu, 04 May 2017 21:56:40 GMT):
from your samples/e2e directory

nickgaski (Thu, 04 May 2017 21:58:39 GMT):
?

MohammadObaid (Thu, 04 May 2017 21:59:28 GMT):
done. got many warnings

MohammadObaid (Thu, 04 May 2017 22:00:16 GMT):

Message Attachments

nickgaski (Thu, 04 May 2017 22:03:27 GMT):
those are innocuous

nickgaski (Thu, 04 May 2017 22:03:33 GMT):
ok so we know what happened

nickgaski (Thu, 04 May 2017 22:03:47 GMT):
when you set the $os_arch tag, it didn't take

nickgaski (Thu, 04 May 2017 22:05:06 GMT):
we can work around it

MohammadObaid (Thu, 04 May 2017 22:05:26 GMT):
how

MohammadObaid (Thu, 04 May 2017 22:05:38 GMT):
?

nickgaski (Thu, 04 May 2017 22:06:46 GMT):
let's create your artifacts manually

nickgaski (Thu, 04 May 2017 22:06:59 GMT):
while I figure out how to fix that issue on windows

nickgaski (Thu, 04 May 2017 22:07:31 GMT):
now pass this `export FABRIC_CFG_PATH=$PWD`

nickgaski (Thu, 04 May 2017 22:07:37 GMT):
followed by

nickgaski (Thu, 04 May 2017 22:07:59 GMT):
`./../../windows-amd64/bin/configtxgen -profile TwoOrgs -outputBlock orderer.block`

MohammadObaid (Thu, 04 May 2017 22:08:15 GMT):
from samples/e2e directory?

nickgaski (Thu, 04 May 2017 22:08:23 GMT):
yep

nickgaski (Thu, 04 May 2017 22:08:40 GMT):
`./../../windows-amd64/bin/configtxgen -profile TwoOrgs -outputCreateChannelTx channel.tx -channelID mychannel

nickgaski (Thu, 04 May 2017 22:08:40 GMT):
`./../../windows-amd64/bin/configtxgen -profile TwoOrgs -outputCreateChannelTx channel.tx -channelID mychannel`

nickgaski (Thu, 04 May 2017 22:09:11 GMT):
tell me once you've generated those two artifacts - orderer.block and channel.tx

MohammadObaid (Thu, 04 May 2017 22:10:06 GMT):
done

nickgaski (Thu, 04 May 2017 22:11:26 GMT):
type `uname -m` and tell me what you see

MohammadObaid (Thu, 04 May 2017 22:12:25 GMT):
x86_64

nickgaski (Thu, 04 May 2017 22:12:37 GMT):
now pass this is:

nickgaski (Thu, 04 May 2017 22:13:50 GMT):
`ARCH_TAG=x86_64 CHANNEL_NAME=mychannel docker-compose -f docker-compose-no-tls.yaml up`

MohammadObaid (Thu, 04 May 2017 22:15:12 GMT):
done. but still get the same output

nickgaski (Thu, 04 May 2017 22:15:59 GMT):
are you using docker toolbox

MohammadObaid (Thu, 04 May 2017 22:16:46 GMT):
yes

MohammadObaid (Thu, 04 May 2017 22:17:48 GMT):

Message Attachments

nickgaski (Thu, 04 May 2017 22:19:23 GMT):
ok

nickgaski (Thu, 04 May 2017 22:19:26 GMT):
let's try one more thing

MohammadObaid (Thu, 04 May 2017 22:19:58 GMT):
using docker toolbox is an issue?

nickgaski (Thu, 04 May 2017 22:20:00 GMT):
open the docker-compose-no-tls.yaml and comment out the "command" prompt in the CLI container

MohammadObaid (Thu, 04 May 2017 22:20:30 GMT):
yes I already done that

MohammadObaid (Thu, 04 May 2017 22:21:24 GMT):
I also commented this line on docker-copmoser.yaml

MohammadObaid (Thu, 04 May 2017 22:21:53 GMT):
do I need to uncomment that?

nickgaski (Thu, 04 May 2017 22:22:07 GMT):
no it's ok.

MohammadObaid (Thu, 04 May 2017 22:22:31 GMT):
now again run that command?

nickgaski (Thu, 04 May 2017 22:22:32 GMT):
so when we are trying to spin up the network, it is not able to reach the directories that we are mounting

MohammadObaid (Thu, 04 May 2017 22:22:47 GMT):
yeah

nickgaski (Thu, 04 May 2017 22:23:50 GMT):
we will get it. I knew windows would be trouble

nickgaski (Thu, 04 May 2017 22:24:02 GMT):
vagrant will work but we don't want to go that route

nickgaski (Thu, 04 May 2017 22:24:23 GMT):
ping me tomorrow. I'll do some research

MohammadObaid (Thu, 04 May 2017 22:24:40 GMT):
ok thanks a lot :)

shanthi0547 (Fri, 05 May 2017 04:55:16 GMT):
amulya@LAPTOP-3CHVMF1U MINGW64 ~/go/src/github.com/chaincode_example02 $ CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=127.0.0.1:7051 ./chaincode_example02 2017-05-05 10:24:20.889 IST [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017/05/05 10:24:21 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: write tcp 127.0.0.1:56933->127.0.0.1:7051: wsasend: An established connection was aborted by the software in your host machine."; Reconnecting to {"127.0.0.1:7051" } 2017/05/05 10:24:21 transport: http2Client.notifyError got notified that the client transport was broken write tcp 127.0.0.1:56934->127.0.0.1:7051: wsasend: An existing connection was forcibly closed by the remote host.. Error starting Simple chaincode: Error sending chaincode REGISTER: rpc error: code = 13 desc = transport: write tcp 127.0.0.1:56934->127.0.0.1:7051: wsasend: An existing connection was forcibly closed by the remote host.

SubhraMazumdar (Fri, 05 May 2017 05:05:29 GMT):
Has joined the channel.

SubhraMazumdar (Fri, 05 May 2017 05:05:38 GMT):
While creating the channel CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com CORE_PEER_LOCALMSPID="OrdererMSP" CHANNEL_NAME= The syntax is as follows: peer channel create -o :7050 -c -f channel.tx I am getting this error panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com: err Could not load a valid signer certificate from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/signcerts, err Could not read directory open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/signcerts: no such file or directory, err /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/signcerts goroutine 1 [running]: panic(0xbe1b00, 0xc4202158b0) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:107 +0x67a root@95165e349329:/opt/gopath/src/github.com/hyperledger/fabric/peer#

SubhraMazumdar (Fri, 05 May 2017 05:08:15 GMT):
Please resolve

MohammadObaid (Fri, 05 May 2017 05:27:08 GMT):
@SubhraMazumdar Ar you using docker toolbox in windows 10?

MathiasFoehr (Fri, 05 May 2017 06:26:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P4sgdXjzkWFFiDzXf) @nickgaski [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P4sgdXjzkWFFiDzXf) @nickgaski

MathiasFoehr (Fri, 05 May 2017 06:27:11 GMT):
Hi Nick,

MathiasFoehr (Fri, 05 May 2017 06:27:11 GMT):
Hi Nick, network_setup.sh works, but I have the feeling that the description in getting_started is no longer up to date. I can progress now and I shall feedback. Thanks a lot!

sujayv (Fri, 05 May 2017 06:30:16 GMT):
Has joined the channel.

SubhraMazumdar (Fri, 05 May 2017 06:32:28 GMT):
No linux_amd64

MohammadObaid (Fri, 05 May 2017 06:32:45 GMT):
ok

MohammadObaid (Fri, 05 May 2017 06:35:47 GMT):
@SubhraMazumdar I am also facing the same error

Haojun (Fri, 05 May 2017 07:29:03 GMT):
Has joined the channel.

SubhraMazumdar (Fri, 05 May 2017 08:16:20 GMT):
how did u resolve it

MohammadObaid (Fri, 05 May 2017 08:18:09 GMT):
I am still facing this error. Couldnt resolve it

SotirisAlfonsos (Fri, 05 May 2017 09:26:27 GMT):
Hello everyone. I have been working with fabric 1.0 for some time now and i reached the point to think about channels and use cases. I know how channels work, however i can not think of a scenario with the use of channels in a large scale network where privacy and confidentiality is important. I am taking into consideration the fact that it is not really practical to create a channel for every "transaction". Can someone help me with a real life scenario involving different organisations in a consortium with different clients and interests. Thank you very much in advance.

jaswanth (Fri, 05 May 2017 10:57:10 GMT):
Has joined the channel.

jaswanth (Fri, 05 May 2017 11:04:49 GMT):
Not able to install chaincode in peer0 ... i am trying getting started ``` Error: Error endorsing chaincode: rpc error: code = 2 desc = Illegal file mode detected for file src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go: 100777```

jaswanth (Fri, 05 May 2017 11:04:49 GMT):
Not able to install chaincode in peer0 ... i am trying getting started for v 1.0 alpha ``` Error: Error endorsing chaincode: rpc error: code = 2 desc = Illegal file mode detected for file src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go: 100777```

jaswanth (Fri, 05 May 2017 11:05:01 GMT):
can any one help me out

krisnd (Fri, 05 May 2017 15:26:00 GMT):
Has joined the channel.

davidkel (Fri, 05 May 2017 15:40:36 GMT):
@MohammadObaid Docker Toolbox on windows is very restricted on the volumes it is able to mount and share. I believe docker engine on windows does a better job. But since both environments have to run a whole linux virtual machine in order to run the HLF linux containers I wonder at the benefit of using docker on windows compared to just running your own linux virtual machine and doing everything in there.

MohammadObaid (Fri, 05 May 2017 15:42:22 GMT):
@davidkel I first tried to install docker engine but got an error "Docker engine require window 10 enterpriize edition or specific built". That's why I have to go with docker toolbox

davidkel (Fri, 05 May 2017 15:46:50 GMT):
Docker engine used to only require Windows Pro or enterprise (I'd be surprised if it was only enterprise now), but I think the reality is docker toolbox isn't going to work unless you put everything you need to share with your containers in the correct place in your file system where the toolbox is able to perform volume share (sorry don't know what that directory is offhand) and then change the yaml file to match those changes.

MohammadObaid (Fri, 05 May 2017 16:17:16 GMT):
@davidkel seems like you are right because all the errors I am getting is related to mounting folders like unable to find folders or files

nickgaski (Fri, 05 May 2017 16:22:35 GMT):
Right, the breakage is happening because we can't mount the crypto volumes when you spin up your containers with docker-compose. I hate to say it, but you might want to try running in Vagrant.

nickgaski (Fri, 05 May 2017 16:24:10 GMT):
@MathiasFoehr - check out the fabric/examples/e2e_cli directory along with this CR for some documentation. The new configuration stuff is implemented - https://gerrit.hyperledger.org/r/#/c/8981/

nickgaski (Fri, 05 May 2017 16:25:01 GMT):
@SubhraMazumdar - are you literally passing this command `peer channel create -o :7050 -c -f channel.tx`

MohammadObaid (Fri, 05 May 2017 16:29:30 GMT):
@nickgaski I will try now with vagrant but I see in fabric doc that they do not recommend vagrant environment. So in future fabric support for vagrant will be removed ?

nickgaski (Fri, 05 May 2017 16:30:36 GMT):
the goal is to refrain from virtualization and extra layers of abstraction, hence our aversion to Vagrant

MathiasFoehr (Fri, 05 May 2017 16:37:29 GMT):
Everything seems to work Nick. I would like

MohammadObaid (Fri, 05 May 2017 16:38:11 GMT):
Alright. I hope this will get fix for windows user :) Anyway thanks a lot :)

davidkel (Fri, 05 May 2017 16:38:54 GMT):
@nickgaski but docker on windows is just a wrapper around virtualisation where it runs a full virtual machine with a copy of alpine linux as it has to do it to support linux containers

MathiasFoehr (Fri, 05 May 2017 16:40:02 GMT):
Hi Nick, thanks for the e2e_cli tip. I am there. A question which remains: How do I set up CLI command window ? I have used docker attach, but there is so much logging that I can not read (using the e2e_cli example)

MathiasFoehr (Fri, 05 May 2017 16:40:02 GMT):
@ nickgaski Hi Nick, thanks for the e2e_cli tip. I am there. A question which remains: How do I set up CLI command window ? I have used docker attach, but there is so much logging that I can not read (using the e2e_cli example)

MathiasFoehr (Fri, 05 May 2017 16:40:02 GMT):
@nickgaski Hi Nick, thanks for the e2e_cli tip. I am there. A question which remains: How do I set up CLI command window ? I have used docker attach, but there is so much logging that I can not read (using the e2e_cli example)

nickgaski (Fri, 05 May 2017 16:44:16 GMT):
@davidkel - indeed. At any rate, vagrant itself is on the "stay away" list

nickgaski (Fri, 05 May 2017 16:46:45 GMT):
@MathiasFoehr - please see my readme. 8981 that I posted above. You'll want to just comment out the script.sh in the docker-compose-cli.yaml and then exec into your cli container to drive your calls. Three steps - use the `generateArtifacts.sh` script to get your crypto and four artifacts. Then spin up your network. Lastly exec into the cli and follow my commands . If you give me a few I can render this in a nice output to follow

MathiasFoehr (Fri, 05 May 2017 16:48:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vPhFfh49x8DNs7RC9) @nickgaski Thanks Nick

raheelz (Fri, 05 May 2017 18:12:48 GMT):
Has joined the channel.

saism (Fri, 05 May 2017 20:54:13 GMT):

Message Attachments

saism (Fri, 05 May 2017 20:54:24 GMT):
Hello, can someone help me out in understanding of this behaviour, happened after joining a channel, I have two peers and another peer doesn't show anything like this

yacovm (Fri, 05 May 2017 22:19:26 GMT):
Yes @saism , this cryptic warning message speaks of the channel `mychannel` have both peers joined the channel?

saism (Fri, 05 May 2017 22:21:42 GMT):
it seems so, it wouldn't process instantiate request otherwise

yacovm (Fri, 05 May 2017 22:22:26 GMT):
hmmm is there any chance you tar.gz / zip all the logs of that peer and send them to me? :)

yacovm (Fri, 05 May 2017 22:22:31 GMT):
I'd like to have a look

saism (Fri, 05 May 2017 22:24:29 GMT):
on Monday perhaps, also will try to reproduce this

yacovm (Fri, 05 May 2017 22:26:04 GMT):
can't you perhaps just do `docker logs peer0 &> file.out` ?

yacovm (Fri, 05 May 2017 22:27:05 GMT):
I've never seen such behavior before and I'm curious what lead to it

saism (Fri, 05 May 2017 22:28:08 GMT):
just can't access this host right now

yacovm (Fri, 05 May 2017 22:28:27 GMT):
understood.

yacovm (Fri, 05 May 2017 22:28:36 GMT):
do you know of the JIRA site?

saism (Fri, 05 May 2017 22:28:53 GMT):
yep

yacovm (Fri, 05 May 2017 22:29:38 GMT):
so I'd appreciate if you open a bug there and attach the logs of the peer, and steps that you reproduced it https://jira.hyperledger.org/secure/Dashboard.jspa and then assign it to me , or tag me (@yacovm should work)

saism (Fri, 05 May 2017 22:31:51 GMT):
alright, got it

yacovm (Fri, 05 May 2017 22:31:57 GMT):
also very important

yacovm (Fri, 05 May 2017 22:32:04 GMT):
last git commit from `git log`

yacovm (Fri, 05 May 2017 22:32:26 GMT):
now when I think of it- a possible scenario could have lead to this, but I fixed it a few days ago.

saism (Fri, 05 May 2017 22:32:47 GMT):
ok, it's v1.0.0-alpha images btw

yacovm (Fri, 05 May 2017 22:32:55 GMT):
ah....

yacovm (Fri, 05 May 2017 22:33:44 GMT):
hmmmm ok I'd appreciate if you can reproduce this on images that were built from the master branch, but also - steps how to reproduce that with the v1.0-alpha are also welcome.

yacovm (Fri, 05 May 2017 22:33:59 GMT):
long story short I'll take whatever you can provide ;)

saism (Fri, 05 May 2017 22:34:28 GMT):
good, we'll get back to it

MohammadObaid (Sat, 06 May 2017 13:18:14 GMT):
If I install fabric environment inside virtual box with ubuntu on it . Will it cause me a problem in setting up network ?

vijaygopal (Sat, 06 May 2017 15:57:58 GMT):
Has joined the channel.

SahilKapoor (Sat, 06 May 2017 16:26:31 GMT):
https://logs.hyperledger.org/sandbox is an empty folder

ShafqatMasood (Sat, 06 May 2017 18:02:03 GMT):
hi, when i am running this command peer channel create -o orderer0:7050 -c mychannel -f channel.tx I am getting this error : -bash: peer: command not found

MohammadObaid (Sun, 07 May 2017 14:12:32 GMT):
When I ran this command `sudo ARCH_TAG=x86_64 CHANNEL_NAME=mychannel docker-compose -f docker-compose-no-tls.yaml up` I got an error 'unable to `Unable to get genesis block committed into the ledger, chainID mychannel `. For the first time this command run successfully but when I try to execute this command again I am getting such error. Do I need to generate orderer.block again? or someone please help me to fix this error

hemanshu (Sun, 07 May 2017 18:18:04 GMT):
Has joined the channel.

hemanshu (Sun, 07 May 2017 18:24:52 GMT):
Hi everyone, I am new here. Trying to get started with Hyper Ledger. I am following the instructions http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html listed here. However, I am unable to download https://logs.hyperledger.org/sandbox/vex-yul-hyp-jenkins-2/fabric-binaries/release.tar.gz .. as it does not exist.

hemanshu (Sun, 07 May 2017 18:27:20 GMT):
@nickgaski I see that you have mentioned that you were trying to fix the issue.. any luck with it?

hemanshu (Sun, 07 May 2017 18:27:30 GMT):
Is there an alternative which I can use?

MohammadObaid (Sun, 07 May 2017 18:32:15 GMT):
@hemanshu try this one as mentioned by community link you mention is expire https://nexus.hyperledger.org/content/repositories/snapshots/sandbox/vex-yul-hyp-jenkins-2/fabric-binaries/release.tar.gz

stu2 (Sun, 07 May 2017 21:05:04 GMT):
Has joined the channel.

himansri (Sun, 07 May 2017 21:32:02 GMT):
Has joined the channel.

mochechan (Mon, 08 May 2017 01:41:26 GMT):
Has joined the channel.

mochechan (Mon, 08 May 2017 01:41:53 GMT):
I posted a question to stackoverflow, but no answer has been responded. So, I post the question here. After enrolling, installing and instantiating the chaincode fabric/example/chaincode/go/chaincode_example02, I run the following steps. peer chaincode instantiate --orderer orderer0:7050 --tls true --path example02 --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig/cacerts/ordererOrg0.pem --chainID mychannel --name example02cc --version 1.0 --ctor '{"Args":["init","A","1000","B","2000"]}' peer chaincode query --chainID mychannel --name example02cc --ctor '{"Args":["query","A"]}' peer chaincode query --chainID mychannel --name example02cc --ctor '{"Args":["query","B"]}' So far, I confirm that A is equal to 1000 and B is equal to 2000. Afterwards, the result will be variable if I invoke the following step with different timings. peer chaincode invoke --orderer orderer0:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig/cacerts/ordererOrg0.pem --chainID mychannel --name example02cc --ctor '{"Args":["invoke","A","B","1"]}' Specifically, A will be equal to 998 and B will be equal to 2002 if I run the previous step twice with a 10 second pause. A will be equal to 990 and B will be equal to 2010 if I run the previous step ten times with 10 second pause between every step. However, without any pause, A will be equal to 999 and B will be equal to 2001 if I run the previous step twice. A will be equal to 999 and B will be equal to 2001 if I run the previous step ten times without pause between every step. I have tested several times with different arguments. Furthermore, I have tested different chaincodes. It seems like that the chaincode only accept the first invoking request, and discards subsequent invoking requests. So, the questions are: 1) Is this a mechanism to prevent double-spending? or just a weakness? 2) How to solve this problem which limits the transaction rate. 3) I think that chaincode should support concurrent invocations. Can chaincode support concurrent invocations actually? 4) Can a single chaincode invoke multiple requests in a single block period?

ShafqatMasood (Mon, 08 May 2017 08:02:46 GMT):
when running ./network_setup up i am getting this error Pulling cli (hyperledger/fabric-testenv:latest)... ERROR: repository hyperledger/fabric-testenv not found: does not exist or no pull access

SotirisAlfonsos (Mon, 08 May 2017 08:06:18 GMT):
@mochechan Each peer maintains a state of the ledger. When you invoke a chaincode the peer executes it against its state of the ledger and gets a result (lets say 999 for the first invoke). As far as i understand when he runs the second invoke consecutively, he will get 999 again since the state of A is still 1000. If you wait for the first invoke to be appended on the peer ledger then your second transaction will happen the way you expect to. Yes this limits the case where you want to change the same value again and again but it should not be a problem when you perform different invokes for different values.

reoim10 (Mon, 08 May 2017 08:22:38 GMT):
Has joined the channel.

cweiers (Mon, 08 May 2017 11:20:19 GMT):
Has joined the channel.

SubhraMazumdar (Mon, 08 May 2017 13:55:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gWQohs9bzC6yxKFpq) @nickgaski [ ] Yes I was passing that. And I got error

richard.holzeis (Mon, 08 May 2017 14:26:31 GMT):
Has joined the channel.

JijoGeorge (Mon, 08 May 2017 15:08:28 GMT):
Has joined the channel.

JijoGeorge (Mon, 08 May 2017 15:16:30 GMT):
Hi All I am trying to setup the Fabric Composer locally in my mac with one sample business network with the intention of deploying it in bluemix. I am getting the below error when I do "composer network deploy" locally. any help appreciated to resolve it. Also I am trying to deploy it to bluemix Fabric Composer, it keeps on working, no errors were thrown. I referred http://stackoverflow.com/questions/42309207/fabric-composer-integration-with-bluemix-blockchain-service —Error start Jijos-MacBook-Air:dist jijo$ composer network deploy -a my-network.bna -i admin -s Xurw3yU9zI0l Deploying business network from archive: my-network.bna Business network definition: Identifier: my-network@0.0.1 Description: My first fabric composer network events.js:160 throw er; // Unhandled 'error' event ^ Error at ClientDuplexStream._emitStatusIfDone (/usr/local/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:189:19) at ClientDuplexStream._readsDone (/usr/local/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:158:8) at readCallback (/usr/local/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:217:12) —Error end I used instructions given in the below page to do the initial setup https://hyperledger.github.io/composer/tutorials/getting-started-playground.html Here are my docker images 'Jijos-MacBook-Air:dist jijo$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 69cda0af3d1f fabriccomposer/composer-playground "pm2-docker compos..." 13 hours ago Up 13 hours 0.0.0.0:8080->8080/tcp fabric_composer_1 3e3eba544642 hyperledger/fabric-membersrvc:x86_64-0.6.1-preview "membersrvc" 13 hours ago Up 13 hours 0.0.0.0:7054->7054/tcp fabric_membersrvc_1'

d8bhatta (Mon, 08 May 2017 16:42:50 GMT):
Has joined the channel.

d8bhatta (Mon, 08 May 2017 16:43:15 GMT):
Hello, I am curious to know how blockchain stores information. Lets take anexample of supply chain of dimond, diamond extractor extract diamonds, and go through several wholesalers and retailers, finally on customer hand. if somebody wants to track this supply chain procedure, is blockchain capable to store extractor, wholesalers, retailers information, his price in blockchain hyperledegr? If yes, how such information gets stored there?

d8bhatta (Mon, 08 May 2017 16:43:28 GMT):
I meant in hyperledger fabric

subbu165 (Mon, 08 May 2017 16:43:43 GMT):
Hi, If we have a lot of load coming in for a deployed chaincode/smartcontract, can we do load balancing to share the load. If so, how the topology should be? any documentation or info in this please?

GururajL (Mon, 08 May 2017 17:11:14 GMT):
Has joined the channel.

holocron (Mon, 08 May 2017 19:38:58 GMT):
Is there a way to determine what channels have been created?

GururajL (Tue, 09 May 2017 01:36:20 GMT):
Hi, what are the steps to add a new peer to an exiting, operational channel?

vurumadla (Tue, 09 May 2017 05:10:18 GMT):
Has joined the channel.

vurumadla (Tue, 09 May 2017 05:10:34 GMT):
hi

vurumadla (Tue, 09 May 2017 05:11:19 GMT):
can anyone suggest how to run multiple peers on hyperledger fabric using vagrant

lenin.mehedy (Tue, 09 May 2017 05:23:59 GMT):
@nickgaski do you have any example code to run e2e_cli example with kafka orderer?

mreddychitti (Tue, 09 May 2017 06:06:04 GMT):
Has joined the channel.

mreddychitti (Tue, 09 May 2017 06:08:43 GMT):
Trying to setup hyperledger fabric 1.0 using https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html. Facing the below error-- 2017-05-08 15:46:15.091 UTC [SW_BCCSP] loadPrivateKey -> ERRO 001 Failed loading private key [aaa891fd51a244d37450536ca5726d0d66ca2ff2c76fce466d7210c4ff0337e7]: [open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/keystore/aaa891fd51a244d37450536ca5726d0d66ca2ff2c76fce466d7210c4ff0337e7_sk: permission denied]. panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com: err KeyMaterial not found in SigningIdentityInfo Anyone faced similar issue ?

akshay.lawange (Tue, 09 May 2017 06:48:54 GMT):
Has joined the channel.

akshay.lawange (Tue, 09 May 2017 06:49:18 GMT):
hi..after cloning release for v1, for downloading docker images I faced following error. Error: Pulling hyperledger/fabric-peer:x86_64-1.0.0-alpha Warning: failed to get default registry endpoint from daemon (An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info: open //./pipe/docker_engine: The system cannot find the file specified.). Using system default: https://index.docker.io/v1 An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=hyperledger%2Ffabric-peer&tag=x86_64-1.0.0-alpha: open //./pipe/docker_engine: The system cannot find the file specified. Can anyone explain?

michele (Tue, 09 May 2017 09:06:44 GMT):
Has joined the channel.

SanthoshKumarMK (Tue, 09 May 2017 10:33:59 GMT):
i have successfully setup the e2e_cli example and it is working fine. How can we get the REST API's for this so that we can consume it from the Front end ?

glotov (Tue, 09 May 2017 10:35:23 GMT):
Has joined the channel.

jchenibm (Tue, 09 May 2017 13:41:35 GMT):
Has joined the channel.

nickgaski (Tue, 09 May 2017 14:37:40 GMT):
@mreddychitti - there are a couple things that could be going on here. 1 - perhaps the crypto is not being generated (I doubt this is the case because we can tell that the program is trying to access a specific private key). 2 - and more likely, you have leftover crypto material from a previous run. Simple fix - `./network_setup.sh down` this will delete the crypto, chaincodes, network and artifacts. Then run the all in one option `./network_setup.sh up`

swettdj (Tue, 09 May 2017 16:03:31 GMT):
Has joined the channel.

swettdj (Tue, 09 May 2017 16:08:36 GMT):
Hi everyone, I'm searching for technical details on how channels work on fabric 1.0, could anyone explain me or give me some document? I found http://hyperledger-fabric.readthedocs.io/en/latest/channels.html but I would know in more detail how do they work.

swettdj (Tue, 09 May 2017 16:08:36 GMT):
Hi @here, I'm searching for technical details on how channels work on fabric 1.0, could anyone explain me or give me some document? I found http://hyperledger-fabric.readthedocs.io/en/latest/channels.html but I would know in more details how they work.

bkvellanki (Tue, 09 May 2017 16:32:41 GMT):
Where can we define the blocksize, blockheight,..etc..Also, is there any example that shows sample policies (SignedPolicy,Implicit) and how and where to configure..

bkvellanki (Tue, 09 May 2017 16:32:46 GMT):
@here Where can we define the blocksize, blockheight,..etc..Also, is there any example that shows sample policies (SignedPolicy,Implicit) and how and where to configure..

martijnwouters (Tue, 09 May 2017 17:37:07 GMT):
Has joined the channel.

noahzhang (Wed, 10 May 2017 02:57:53 GMT):
Has joined the channel.

tonyyang132 (Wed, 10 May 2017 03:06:16 GMT):
Has joined the channel.

zhouhuangjing (Wed, 10 May 2017 04:23:05 GMT):
Has joined the channel.

SubhraMazumdar (Wed, 10 May 2017 07:18:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Jp2GpYFnkJKmosoJ2) @MathiasFoehr Please do install all the docker images. I was missing out kafka but as per my limited knowledge I think it is needed for ordering services . So channel creation and joining won't be allowed unless you have kafka and zookeeper as your docker images. Also use docker-compose 1.8.1. I faced issues using 1.12. It was not accepting the environment variable ARCH_TAG.

jordipainan (Wed, 10 May 2017 08:13:29 GMT):
Has joined the channel.

nherbaut33 (Wed, 10 May 2017 12:05:20 GMT):
Has joined the channel.

nherbaut33 (Wed, 10 May 2017 12:07:41 GMT):
I'm wondering how the number of validating peers in the network influence the transaction throughput. Do more peers cause worst performances?

yacovm (Wed, 10 May 2017 13:10:29 GMT):
@nherbaut33 in v1.0 there are no validating peers. in 0.5/0.6 when we tested there is a decrease as the validators number increases

nharshita (Wed, 10 May 2017 13:11:16 GMT):
Has joined the channel.

nherbaut33 (Wed, 10 May 2017 13:21:31 GMT):
thanks @yacovm, that's what I suspected.

bkvellanki (Wed, 10 May 2017 15:00:20 GMT):
@greg.haskins How can we define the blocksize, blockheight, for a peer - From Any SDK, Or Interface in the Shim......Also, is there any example that shows sample policies (SignedPolicy,Implicit) and how and where to configure.. Is there a way to create our own Policy and how to do implement it..Any document or sample

greg.haskins (Wed, 10 May 2017 15:27:47 GMT):
@bkvellanki i dont know where that is tucked away in the current code

antitoine (Wed, 10 May 2017 15:49:32 GMT):
Hi, there is a `fabric-boilerplate` like (https://github.com/IBM-Blockchain/fabric-boilerplate) for Hyperledger Fabric v1.0 (alpha) ?

ajmanlove (Wed, 10 May 2017 22:57:40 GMT):
Has joined the channel.

arner (Thu, 11 May 2017 08:18:51 GMT):
Hi @antitoine, we are currently working on porting it, we might be able to release a very basic version soon.

antitoine (Thu, 11 May 2017 08:21:21 GMT):
@arner Thanks for the reply. Do you have any estimated date when this will be available ?

arner (Thu, 11 May 2017 08:55:52 GMT):
aiming for early next week

antitoine (Thu, 11 May 2017 08:58:43 GMT):
@arner Great!

nherbaut33 (Thu, 11 May 2017 13:01:38 GMT):
hello. If "Chaincode execution is partitioned from transaction ordering" and "If the data read for the transaction has changed between execution time and commitment time, (...) the transaction is marked as invalid". Can we expect transactions to be rejected quite often in case of a very dynamic world-state?

nherbaut33 (Thu, 11 May 2017 13:01:38 GMT):
hello. If "Chaincode execution is partitioned from transaction ordering" and "If the data read for the transaction has changed between execution time and commitment time, (...) the transaction is marked as invalid". Can we expect transactions to be rejected quite often in case of a very dynamic world-state?

nherbaut33 (Thu, 11 May 2017 13:01:38 GMT):
hello. If "Chaincode execution is partitioned from transaction ordering" and "If the data read for the transaction has changed between execution time and commitment time, (...) the transaction is marked as invalid". Can we expect transactions to be rejected quite often in case of a very dynamic world-state?

terrypst (Thu, 11 May 2017 13:18:17 GMT):
Has joined the channel.

Gerard9494 (Thu, 11 May 2017 13:19:23 GMT):
Has joined the channel.

terrypst (Thu, 11 May 2017 13:20:36 GMT):
Hi guys ! I'm trying to make chaincode query on my Hyperledger blockchain v1 deployed on bluemix. The problem is http protocole is no longer available on v1 so i can't make POST and GET request on a specific peer. I know i have to use the SDK but it's really hard to find documentation, is there anyone who knows how to do it ? Many thanks in advance !

bkvellanki (Thu, 11 May 2017 17:19:08 GMT):
@here Do we have a function in the shim to get the user attributes like similar to getUserAffiliates() in 0.6. The key reason for this is to restrict the user to perform only reads or writes based on the Role. Is see that we have them hfc sdk (getAffiliates, getSigningEntity, etc) and i think HFC fabric communicates with the Fabric CA to get the details. Is there any way to restrict the user in the chaincode to perforn only certian operations

toddinpal (Thu, 11 May 2017 17:42:16 GMT):
@nherbaut33 It all depends how often there are concurrent updates to the keys and how long it takes to commit a transaction. If there are hot spots in your world state, you may end up with lots of invalid transactions.

webdaford (Thu, 11 May 2017 18:56:43 GMT):
Has joined the channel.

l1nux (Thu, 11 May 2017 19:31:56 GMT):
Hi very basic few questions : 1. I know there are multi channels in v1.0, question is how many chain can be created in a channel? 2. Is the client defined key/value store tied or associate to a chain or channel? 3. How many client key/value store can be defined in a chain/channel?

nickgaski (Thu, 11 May 2017 19:45:54 GMT):
@l1nux - there is a one-to-one relationship between a channel and a ledger. Channels can have multiple chaincodes instantiated, which will result in different reads and writes to the state DB. (e.g. instantiate chaincodeA & chaincodeB on channel1 each with different key/vals. A query on a key for chaincodeA reveals the appropriate value, whereas a query on a key for chaincodeB reveals its corresponding value; therefore to answer your second question, the key/val store is tied to the channel and more granularly to a specific chaincode on that channel). Your third question is more performance based and I would encourage you to pose that on the fabric-quality channel for a more informed answer. Hope that helps

l1nux (Thu, 11 May 2017 19:47:49 GMT):
@NI let me clarify my third question, I meant how many 'store', not the total data size.

nickgaski (Thu, 11 May 2017 19:52:34 GMT):
It is one state DB per channel. However, I'm not sure I completely understand your question. Perhaps try fabric-ledger.

l1nux (Thu, 11 May 2017 20:01:18 GMT):
@NI I meant the KeyValuStore interface to store application persistence data defined in the fabric sdk , again question is how many such store one can have for a channel?

arner (Fri, 12 May 2017 06:51:12 GMT):
@l1nux do you mean how many key/valuepairs?

hugoB (Fri, 12 May 2017 08:05:39 GMT):
Hello @here, I’ve the e2e_cli example running on my machine and it’s working well. I want to setup the same example across different physical machines. How can I specify the IP addresses the peers have to connect to for the gossip ? I don’t see this kind of environment variables in the docker-compose file. Should I use Docker Swarm to simulate the same Docker network as in the example with multiple hosts ? Thanks in advance -H

SahilKapoor (Fri, 12 May 2017 08:07:45 GMT):
Can someone help me marble example for composer based on hlfv1?

smallX (Fri, 12 May 2017 11:13:07 GMT):
Has joined the channel.

bancey (Fri, 12 May 2017 13:28:52 GMT):
Has joined the channel.

bancey (Fri, 12 May 2017 13:30:47 GMT):
Hi all, I'm trying to run the "hyperledger-fabric-basics" example but I'm running into an error deploying the chaincode to a local network. The error I'm getting is `Error: ENOENT: no such file or directory, scandir '/opt/gopath/src//crowd_fund_chaincode'` `/opt/gopath` is my $GOPATH but it seems to be inserting an extra / in there, any idea why? Thanks in advance :)

mreddychitti (Fri, 12 May 2017 16:48:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xLD4KgJ8WcMExMg5v) @nickgaski Thanks for the response.. I followed your suggestion, but still see the same issue..

mreddychitti (Fri, 12 May 2017 16:49:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jH9dzthSbohbWDvbi) @mreddychitti 2017-05-09 21:24:48.088 UTC [SW_BCCSP] loadPrivateKey -> ERRO 001 Failed loading private key [78da90fbf7896c06ff888e25fb4f32ec4f64b77804eb41b6fa875407b269bbb1]: [open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/keystore/78da90fbf7896c06ff888e25fb4f32ec4f64b77804eb41b6fa875407b269bbb1_sk: permission denied]. panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com: err KeyMaterial not found in SigningIdentityInfo goroutine 1 [running]: panic(0xbe1b00, 0xc420210880) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:107 +0x67a !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

MohammadObaid (Fri, 12 May 2017 17:56:46 GMT):
Hi. Its general question regarding fabric. Consider if any third person or external want to verify our data present in a ledger how could he verify that? In normal blockchain scenario we have blockhash and merkel hash and public keys of committer to verify digital signatures. In fabric how we can?

lsalmen (Fri, 12 May 2017 22:35:06 GMT):
Has joined the channel.

mastersingh24 (Sat, 13 May 2017 17:26:36 GMT):
@MohammadObaid - you have the same thing with fabric - you can query a channel and retrieve any block. Once you have a block, you can get the next block (or the previous block). You can verify the hashchain this way as well as the signatures of the blocks themselves. You can also verify the individual transactions as well

MohammadObaid (Sat, 13 May 2017 17:27:24 GMT):
@mastersingh24 ok thanks :)

MohammadObaid (Sun, 14 May 2017 14:34:03 GMT):
Just a little question. When I open up my docker-compose.yaml file I see this `CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/msp/sampleconfig/keystore/da0521ee52c8d72175226b2a5d7ae2d7b6a87a362ca693a862cafbbb1d861068_sk` . My question is where this part `da0521ee52c8d72175226b2a5d7ae2d7b6a87a362ca693a862cafbbb1d861068_sk` come from? I need to know because when I am adding organizations or peers then I must set this variable.

MohammadObaid (Sun, 14 May 2017 14:34:03 GMT):
Yeah it is the private key. My initial guess was it might comes from location `samples/e2e/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/keystore` but it contains different value

MohammadObaid (Sun, 14 May 2017 14:34:03 GMT):
@yacovm Yeah it is the private key. My initial guess was it might comes from location `samples/e2e/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/keystore` but it contains different value

yacovm (Sun, 14 May 2017 15:23:12 GMT):
It's the private key

yacovm (Sun, 14 May 2017 15:23:26 GMT):
I think the long string is the SKI of the cert

narayanprusty (Sun, 14 May 2017 18:54:40 GMT):
in hyperledger fabric 1.0, is it possible to add new organisation after network bootup? I mean after creating the orderer block can be add new organisations to the network?

GururajL (Mon, 15 May 2017 05:26:18 GMT):
i have the same question as @narayanprusty , I would like to split it into 2 parts, 1. can a new peer join an already deployed channel? 2. what does an organisation literally mean in the fabric? is it just a logical arrangement of peers for authentication and membership services? or is there more to it? if yes, would like to understand more.

jerry10301 (Mon, 15 May 2017 06:25:38 GMT):
Has joined the channel.

zhangchao (Mon, 15 May 2017 08:01:32 GMT):
Has joined the channel.

zhangchao (Mon, 15 May 2017 08:27:26 GMT):
In java sdk envrionment, I got error when loading the keystore (sk file) generated by cryptogen tool manually, can anyone give some advice

zhangchao (Mon, 15 May 2017 08:27:58 GMT):
org.bouncycastle.openssl.PEMException: problem parsing PRIVATE KEY: java.lang.IllegalArgumentException: wrong version for private key info at org.bouncycastle.openssl.PEMParser$PrivateKeyParser.parseObject(Unknown Source) at org.bouncycastle.openssl.PEMParser.readObject(Unknown Source) at ip.rd.hitachi.cn.fabric.sc.SampleStore.getPrivateKeyFromBytes(SampleStore.java:195)

zhangchao (Mon, 15 May 2017 08:29:02 GMT):
I tried to use the example private key shipped within fabric-sdk-java, it worked.

mastersingh24 (Mon, 15 May 2017 10:01:20 GMT):
@narayanprusty @GururajL - 1) In the 1.0.0-alpha, you could add organizations by adding new channels but it was not possible to add new organizations to existing channels 2) In the current master / upcoming alpha2 release, it is technically possible to change the membership for an existing channel as well as add/remove members from the consortium. You can do this via config update transactions. While there is support for this within the ordering service, there is currently no support for this in the tooling but work is underway to produce a tool to aid in reconfiguring channels 3) @GururajL : `can a new peer join an already deployed channel? ` - Yes - if the organization the peer belongs to is part of the channel then a new peer can join an existing channel. If the peer's organization is not a member of the channel then the comments about about updating channel membership apply 4) ``` what does an organisation literally mean in the fabric? is it just a logical arrangement of peers for authentication and membership services? or is there more to it? if yes, would like to understand more. ``` An organization represents a top-level grouping for us within policies (e.g. channel access policies and endorsement policies). And yes - an organization can have multiple peers. For channels, this means that an organization can add peers to channels it is a member of at any time. For endorsement policy, enforcement only counts 1 peer per organization when evaluating a policy - so if an endorsement policy requires 3 out of 4 organizations, then even if a single organization tried to submit 2 endorsements it would only count as 1. It is of course possible to build policies with explicit peer identities as well

hanhzf (Mon, 15 May 2017 12:02:43 GMT):
Has joined the channel.

zstauffer (Mon, 15 May 2017 12:21:47 GMT):
Has joined the channel.

zstauffer (Mon, 15 May 2017 13:30:45 GMT):
I am attempting to set up a HLFv1 dev environment using the instructions at http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html and I was wondering if the following is the output I should expect when I run the cryptogen generate command:

zstauffer (Mon, 15 May 2017 13:30:45 GMT):
I am attempting to set up a HLFv1 dev environment using the instructions at http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html and I was wondering if the following is the output I should expect when I run the cryptogen generate command:

zstauffer (Mon, 15 May 2017 13:33:21 GMT):

Message Attachments

nickgaski (Mon, 15 May 2017 14:11:23 GMT):
@zstauffer - yes you're fine. Look in your crypto-config folder, you'll notice that the certs are generated and parked there

zstauffer (Mon, 15 May 2017 14:14:14 GMT):
@nickgaski Thank you for the response. I have another question - I proceeded with the tutorial and got to the point where I run the command: 'CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.example.com:7050 -c mychannel -f channel.tx ' but when I run it I get a panic error stating that I have no vert for orderer.eample.com

zstauffer (Mon, 15 May 2017 14:14:14 GMT):
@nickgaski Thank you for the response. I have another question - I proceeded with the tutorial and got to the point where I run the create channel command but when I run it I get a panic error stating that I have no cert for orderer.eample.com

nickgaski (Mon, 15 May 2017 14:16:34 GMT):
do me a favor and run this command just to make sure that everything wants to work on your machine - `./network_setup.sh restart`

kurthalex (Mon, 15 May 2017 14:18:24 GMT):
Has joined the channel.

kurthalex (Mon, 15 May 2017 14:18:33 GMT):
hi, in the getting started,after creating and joining channel, when I type the docker command to get the bash of the cli container I get disconnected after a few seconds and I can't connect anymore and the output log of the docker compose confirm that cli is disconnected. cli | ===================== Query on PEER3 on channel 'mychannel' is successful ===================== cli | cli | ===================== All GOOD, End-2-End execution completed ===================== cli | cli exited with code 0 is it normal ? then, another question, the next instructions is to execute the command "peer channel create -o orderer.example.com:7050 -c mychannel -f channel.tx", do we have to execute it inside the cli container, or from our host ? because I don't have the peer command on my host

zstauffer (Mon, 15 May 2017 14:19:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=732mNf3oBYB5ePTcN) @nickgaski The command ran successfully

nickgaski (Mon, 15 May 2017 14:20:10 GMT):
ah yes you need to be in the CLI absolutely for that because you need to talk to the orderer. BEFORE you spin up your network, make sure that you comment out the command.sh script in the CLI container at the bottom of your docker-compose

nickgaski (Mon, 15 May 2017 14:20:32 GMT):
if you leave it as is, the CLI exits after the query

kurthalex (Mon, 15 May 2017 14:24:10 GMT):
I commented the line #command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; '

kurthalex (Mon, 15 May 2017 14:24:10 GMT):
I commented the line : command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; '

kurthalex (Mon, 15 May 2017 14:24:43 GMT):
put a # at the beginning of the line

kurthalex (Mon, 15 May 2017 14:25:59 GMT):
and then I launched the network for the first time

kurthalex (Mon, 15 May 2017 14:26:49 GMT):
everything seems to be ok, during the launch of the network with docker-compose I connect inside the cli container

kurthalex (Mon, 15 May 2017 14:27:19 GMT):
but a few second after it disconnect ("cli exited with code 0")

kurthalex (Mon, 15 May 2017 14:27:47 GMT):
I tried it 3 times, trash my server and reinstanciate a new one, and follow the same instructions

kurthalex (Mon, 15 May 2017 14:29:07 GMT):
is it normal that the cli container quit ?

kurthalex (Mon, 15 May 2017 14:31:20 GMT):
and if I ctrl+c my docker-compose command what is the good command to re-run the network?

nickgaski (Mon, 15 May 2017 14:32:30 GMT):
are you using docker-compose to start your network or the network_setup script. If you're using docker compose and have the script.sh commented out, then your container will not exit.

kurthalex (Mon, 15 May 2017 14:33:14 GMT):
I use docker-compose with the commented line command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; ' and the cli exit

kurthalex (Mon, 15 May 2017 14:36:38 GMT):
after a few seconds

kurthalex (Mon, 15 May 2017 14:36:44 GMT):
cli | ===================== All GOOD, End-2-End execution completed ===================== cli | cli exited with code 0

clasoncjDA (Mon, 15 May 2017 14:47:52 GMT):
Has joined the channel.

laurentkatz (Mon, 15 May 2017 15:07:44 GMT):
Has joined the channel.

simers (Mon, 15 May 2017 16:36:21 GMT):
Has joined the channel.

samwood (Mon, 15 May 2017 20:31:34 GMT):
Has joined the channel.

czar0 (Mon, 15 May 2017 21:11:06 GMT):
Has joined the channel.

rangak (Tue, 16 May 2017 02:21:18 GMT):
Has left the channel.

GururajL (Tue, 16 May 2017 03:54:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=diRMfM3xJgZR6kT2x) @mastersingh24 thanks!

SeongjaeHwang (Tue, 16 May 2017 04:40:07 GMT):
Has joined the channel.

oooo (Tue, 16 May 2017 08:49:15 GMT):
Has joined the channel.

hshimo (Tue, 16 May 2017 09:06:49 GMT):
I'd like to try to run and test my chaincode, which version should I use to test it? Alpha-2 is released yesterday, but is it stable?

SeongjaeHwang (Tue, 16 May 2017 10:18:57 GMT):
ㅣㄴ

SeongjaeHwang (Tue, 16 May 2017 10:19:05 GMT):
sry wrong channel

JAVIERFALCESMARIN (Tue, 16 May 2017 10:22:55 GMT):
Has joined the channel.

mastersingh24 (Tue, 16 May 2017 10:55:36 GMT):
@hshimo - alpha2 is your best bet for sure

pancake (Tue, 16 May 2017 13:06:32 GMT):
All all, i am trying to use 'Fabric Starter Kit', but i got stuck when i try '''docker build -t hyperledger/fabric-starter-kit:latest .''', and the error message display as below:grpc@1.0.0 node_modules/grpc ├── arguejs@0.2.3 ├── nan@2.6.2 ├── lodash@3.10.1 └── protobufjs@4.1.3 (ascli@1.0.1, bytebuffer@4.1.0, glob@5.0.15, yargs@3.32.0) node_modules/.bin/typings install /opt/gopath/src/github.com/hyperledger/fabric/sdk/node/node_modules/typings/node_modules/update-notifier/index.js:2 const spawn = require('child_process').spawn; ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/opt/gopath/src/github.com/hyperledger/fabric/sdk/node/node_modules/typings/dist/bin.js:9:22) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) make: *** [lib/hfc.js] Error 1

hshimo (Tue, 16 May 2017 15:52:28 GMT):
@mastersingh24 Thanx! no spec change from preview or alpha?

mastersingh24 (Tue, 16 May 2017 16:57:19 GMT):
Hi @hshimo - there were definitely some changes from alpha to alpha2 - specifically around channel configuration and some stricter policies

hshimo (Tue, 16 May 2017 19:14:48 GMT):
@mastersingh24 That means the fabric document is old? or the document is up to date?

guoger (Wed, 17 May 2017 03:49:20 GMT):
I found two docs: http://openblockchain.readthedocs.io and hyperledger-fabric.readthedocs.io, only the latter one is referenced at hyperledger.org. I wonder if the former one is still up-to-date? Why two separate doc webpage? thx

kurthalex (Wed, 17 May 2017 08:34:10 GMT):
I solved my problem (cli quit) I commented out the good line but in the wrong docker-compose file (I used the docker-compose-no-tls one but commented the simple docker-compose)

vineetmago (Wed, 17 May 2017 10:23:01 GMT):
Has joined the channel.

srss (Wed, 17 May 2017 15:06:56 GMT):
Has joined the channel.

stevehooperjr (Wed, 17 May 2017 16:19:22 GMT):
Has joined the channel.

stevehooperjr (Wed, 17 May 2017 16:26:54 GMT):
I'm working on a project with Fabric and we're hoping to move our development to alpha2. I've been using the e2e example as a basis for testing. However, in alpha2 the docker-compose files don't mention couchdb at all. I've also seen that people are having issues with couch in alpha2. What's the suggested way to get a network up and running?

nickgaski (Wed, 17 May 2017 16:45:47 GMT):
@stevehooperjr - so check out the end-to-end.rst file in the examples/e2e_cli folder. You'll notice down at the bottom that there is a new approach to starting a network with couchDB containers

nickgaski (Wed, 17 May 2017 16:46:02 GMT):
you pass in two docker-compose files, one of which has couch containers

stevehooperjr (Wed, 17 May 2017 16:53:33 GMT):
I do remember seeing that somewhere but I can't find it now. The alpha2 version of the end-to-end rst doesn't seem to be correct at all, actually.

dave.enyeart (Wed, 17 May 2017 17:19:08 GMT):
@stevehooperjr there have been some recent updates to e2e_cli instructions and docker compose including couchdb usage, please use the latest content here: https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli. The alpha2 Getting Started is currently being prepared and will use the latest content from there. Let us know if you find specific issues using that content.

dave.enyeart (Wed, 17 May 2017 17:19:08 GMT):
@stevehooperjr there have been some recent updates (post-alpha2 even) to e2e_cli instructions and docker compose including couchdb usage, please use the latest content here: https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli. The alpha2 Getting Started is currently being prepared and will use the latest content from there. Let us know if you find specific issues using that content.

stevehooperjr (Wed, 17 May 2017 17:24:29 GMT):
I'll check that out, thanks.

vdods (Wed, 17 May 2017 19:51:10 GMT):
Hi all, what docker image is the configtxgen tool in? I'm looking to set up the configtx generation as part of my docker-compose services

stevehooperjr (Wed, 17 May 2017 19:55:18 GMT):
Unless I'm misunderstanding you, the configtxgen tool is not in a docker image, it's in the fabric itself. You could write a wrapper script that calls the tool and calls docker-compose as well.

vdods (Wed, 17 May 2017 19:59:09 GMT):
Hmm.. ok, just wondering if it was in some hyperledger/fabric-tools image or some such

vdods (Wed, 17 May 2017 19:59:19 GMT):
or in one of the common ones, such as peer

stevehooperjr (Wed, 17 May 2017 20:00:15 GMT):
I've never looked before, actually, but I'm assuming it is not.

mastersingh24 (Wed, 17 May 2017 20:00:39 GMT):
@vods - have a look at https://github.com/hyperledger/fabric/tree/master/examples/cluster

mastersingh24 (Wed, 17 May 2017 20:00:39 GMT):
@vdods - have a look at https://github.com/hyperledger/fabric/tree/master/examples/cluster

mastersingh24 (Wed, 17 May 2017 20:00:39 GMT):
@vdods - have a look at https://github.com/hyperledger/fabric/tree/master/examples/cluster

mastersingh24 (Wed, 17 May 2017 20:01:54 GMT):
[ It's not in any of the published images. We are about to publish some release artifacts which do contain the platform specific binaries](https://chat.hyperledger.org/channel/fabric-questions?msg=PJLzYpq6h6TTBon5T) @vdods

vdods (Wed, 17 May 2017 20:08:28 GMT):
Thanks

vdods (Wed, 17 May 2017 20:31:59 GMT):
Is there a "top level" document for describing the starting point and requirements for generating crypto and config materials for a peer network? I'm looking at https://github.com/hyperledger/fabric/blob/master/docs/source/configtxgen.rst and various other source files (and the cluster example you linked), but I think I need more context because the details of these configurations are rather opaque to me

nickgaski (Wed, 17 May 2017 20:35:30 GMT):
@vdods - for the time being, I would recommend inspecting the two .yaml files (crypto-config & configtx) in this directory - https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli . They are reflective of the new configuration structure. I especially encourage you to verse yourself with the topology of the crypto config and then notice how configtx.yaml contains different profiles (orderer and channel). As such, you can pass in different profiles when you are crafting channels on your network

vdods (Wed, 17 May 2017 20:35:59 GMT):
ok, thanks

nickgaski (Wed, 17 May 2017 20:36:16 GMT):
The end-to-end.rst piece in that directory also contains an explanation about what's going on

tarcisiocjr (Thu, 18 May 2017 00:31:40 GMT):
Has joined the channel.

mochechan (Thu, 18 May 2017 04:30:29 GMT):
After running the following end-to-end example successfully, I have attempted to remove command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT' in docker-compsose.yaml. https://github.com/hyperledger/fabric/tree/master/examples/dchackfest/samples/e2e https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli So far, the basic envoronment fullfill my requirements. I want to make something different now. How can I add/remove validating peer(s) dynamically? It is possible?

jkickens (Thu, 18 May 2017 05:06:57 GMT):
Has joined the channel.

RistoAlas (Thu, 18 May 2017 09:41:20 GMT):
Has joined the channel.

dushyant (Thu, 18 May 2017 10:13:28 GMT):
Has joined the channel.

SubhraMazumdar (Thu, 18 May 2017 13:45:57 GMT):
Can a node of one type also act as node of other type simultaneously ? That is node acting as client and peer or node acting as orderer and client at the same time ? Won't it jeopardise the security/validation issue in that case ?

pd93 (Thu, 18 May 2017 14:35:22 GMT):
Hey, I'm trying to get my data to persist after bringing the network down. I've set a mount in my docker-compose file to `/var/hyperledger`, but I'm getting `Block number should have been 2 but was 0` when running my set up again. What commands (in terms of the CLI) do I need to run to reconnect to the network successfully?

s.narayanan (Thu, 18 May 2017 18:22:54 GMT):
A question regarding e2e_cli. The purpose of crypto-gen tool is to generate the keys and certs (self signed) for orderer and peer orgs specfied in crypto-config.yaml file. In real world scenario these would be generated by CA (e.g. Fabric CA) and the tool will not be required?

mastersingh24 (Thu, 18 May 2017 18:42:48 GMT):
[correct ](https://chat.hyperledger.org/channel/fabric-questions?msg=JwfHEWbkceCvizAjy) @s.narayanan

mastersingh24 (Thu, 18 May 2017 18:43:36 GMT):
[Did you mount a directory for the orderer as well? ](https://chat.hyperledger.org/channel/fabric-questions?msg=qeDRPMTG6Cje4L7ox) @pd93

s.narayanan (Thu, 18 May 2017 18:59:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ah4aPBB7rq8Tnzvve) @mastersingh24 Thanks. A follow up question. In alpha 1, anchor peers were specified in orderer genesis block. However in alpha 2, there is separate step of configuring anchor peers on a channel. Why is this changed?

nickgaski (Thu, 18 May 2017 21:42:50 GMT):
@s.narayanan - I'm no expert on these specs. But I'd imagine that it allows orgs and consortiums much more granularity within their MSP , basically you might want certain peers on certain channels based on business divisions and such; therefore you don't want the exact same peer to be the discovery mechanism on every single channel

jeffgarratt (Thu, 18 May 2017 23:48:51 GMT):
@s.narayanan the latest behave actually defines the first consortium through a config_udpate to the orderer system channel as would be expected for most real systems. The anchor peers can either be specified in the channel creation request, or any subsequent channel config_update. It is reasonable to assume that most organization will define their anchor peers with a config_update post channel join after they have decided which peers will participate in the new channel.

Hangyu (Thu, 18 May 2017 23:53:51 GMT):
@nickgaski @jeffgarratt I also have a follow up question regarding to this aspect. In alpha1, the consortium info does not need to be specified in orderer's genesis block, which means client can create channel that can includes any orgs. But now in alpha2, I have noticed that you need to specify consortiums in orderer's genesis block. Does this mean that it is now impossible to add new orgs(which is not in the defined consortium) to a channel without touching the orderer's genesis block?

jeffgarratt (Thu, 18 May 2017 23:55:26 GMT):
@Hangyu the orderer system channel must be updated to include the newly desired consortium first, i.e. you must request to create a consortium to the orderer service provider. Then the provider (Admin) will create a config_update Tx for the orderer system channel to define your new consortium.

jeffgarratt (Thu, 18 May 2017 23:57:56 GMT):
therefore, in real world scenarios, the orderer would not create consortiums in their genesis block (which is a config_update). But instead, submit config_updates as new consortiums are defined.

jeffgarratt (Thu, 18 May 2017 23:58:00 GMT):
make sense?

Hangyu (Thu, 18 May 2017 23:59:43 GMT):
@jeffgarratt thank you for the answer, now I understand:). Do you know how can I do that? are there any precedures I can follow to create a config_update Tx can send it orderer?

jeffgarratt (Fri, 19 May 2017 00:00:54 GMT):
it is defined in the behave bootstrap.feature => https://github.com/hyperledger/fabric/blob/master/bddtests/features/bootstrap.feature#L86-L109

jeffgarratt (Fri, 19 May 2017 00:01:11 GMT):
that is a step by step description of the actual process

Hangyu (Fri, 19 May 2017 00:01:52 GMT):
thank you very much, I'll take a look into that. very helpful!

jeffgarratt (Fri, 19 May 2017 00:01:59 GMT):
yw!! Good luck!!

pd93 (Fri, 19 May 2017 08:23:54 GMT):
@mastersingh24 I had not! What directory do I need to mount for the orderer? I tried `/var/hyperledger`, but there's nothing in there

mastersingh24 (Fri, 19 May 2017 08:29:48 GMT):
@pd93 - by default, the file ledger for the orderer will be stored here: https://github.com/hyperledger/fabric/blob/master/sampleconfig/orderer.yaml#L99

pd93 (Fri, 19 May 2017 08:35:57 GMT):
@mastersingh24 Hmm, I'm not overriding the default, but `/var/hyperledger` is still empty when I bring up the orderer. I'm using couchdb instead of leveldb. Not sure if that makes a difference here. My mounts look like this: Orderer mount: `- ../data/orderer/:/var/hyperledger/` Peer mount: `- ../data/peer0/:/var/hyperledger/` Couch mount: `- ../data/couchdb0/:/opt/couchdb/data/`

pd93 (Fri, 19 May 2017 09:05:56 GMT):
ls

s.narayanan (Fri, 19 May 2017 13:53:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cmTxuwAyXXxjEnnwJ) @nickgaski Thanks

vdods (Fri, 19 May 2017 19:40:18 GMT):
Hi all, I'd like to know what the schedule for supporting TCerts is for Fabric and Fabric SDK Node -- is there any information on that? Need it for some planning logistics for my project. Thanks :)

farhan3 (Fri, 19 May 2017 20:34:06 GMT):
Has joined the channel.

farhan3 (Fri, 19 May 2017 20:34:47 GMT):
Hi - I had a question about endorsements. The docs read: > By default, endorsing logic at a peer accepts the tran-proposal and simply signs the tran-proposal. However, endorsing logic may interpret arbitrary functionality, to, e.g., interact with legacy systems with tran-proposal and tx as inputs to reach the decision whether to endorse a transaction or not. Can this endorsing logic be changed?

narayanprusty (Sat, 20 May 2017 07:21:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3ShAC8Pnc57t8rF6B) @GururajL According to this (https://github.com/hyperledger/fabric/releases) alpha2 is released now. Can you now guide how to reconfigure existing channels and also how to add/remove organisations from network dynamically?

narayanprusty (Sat, 20 May 2017 07:21:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3ShAC8Pnc57t8rF6B) @mastersingh24 According to this (https://github.com/hyperledger/fabric/releases) alpha2 is released now. Can you now guide how to reconfigure existing channels and also how to add/remove organisations from network dynamically?

yacovm (Sat, 20 May 2017 07:43:13 GMT):
@narayanprusty what you ask isn't possible yet because there is no tooling for that (people are working on it)

narayanprusty (Sat, 20 May 2017 07:43:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=agDwPfnyb3AYFyK4h) @yacovm Ok Thanks for the update.

MohammadObaid (Sun, 21 May 2017 15:00:17 GMT):
To add organizations and peer in alpha2 fabric I have modified `configtx.yaml`,`crypto-config.yaml`, `docker-compose-cli.yaml`,`docker-compose-e2e.yaml` and `docker-compose-base.yaml` exist in base folder. Do I also need to modify `docker-compose-e2e.yaml` or any other files?

MohammadObaid (Sun, 21 May 2017 15:00:17 GMT):
To add organizations and peer in alpha2 fabric I have modified `configtx.yaml`, `crypto-config.yaml`, `docker-compose-cli.yaml`, `docker-compose-e2e.yaml` and `docker-compose-base.yaml` exist in base folder. Do I also need to modify `docker-compose-e2e.yaml` or any other files?

nickgaski (Sun, 21 May 2017 15:28:25 GMT):
no @MohammadObaid - you can leave the e2e.yaml as is . We use that guy for the SDK tests. I think that will work fine as long as you have properly mounted the certs in your containers, and pass in the correct profile names when you run the utilities

bmkor (Sun, 21 May 2017 16:14:09 GMT):
submitted change to gerrit but build failed/not verified. Have checked for quite a while. Where could I get help?

bmkor (Sun, 21 May 2017 16:14:09 GMT):
submitted change to gerrit but build failed/not verified. Have checked for quite a while but found none issue. Where could I get help?

yacovm (Sun, 21 May 2017 16:14:50 GMT):
link to the change would be helpful

bmkor (Sun, 21 May 2017 16:15:26 GMT):
https://gerrit.hyperledger.org/r/#/c/9625/

bmkor (Sun, 21 May 2017 16:15:43 GMT):
got failure here https://gerrit.hyperledger.org/r/#/c/9625/

bmkor (Sun, 21 May 2017 16:16:24 GMT):
https://jenkins.hyperledger.org/job/fabric-verify-z/7553/

bmkor (Sun, 21 May 2017 16:16:24 GMT):
my change https://gerrit.hyperledger.org/r/#/c/9625/ and I got failure in https://jenkins.hyperledger.org/job/fabric-verify-z/7553/ https://jenkins.hyperledger.org/job/fabric-verify-x86_64/11901/ https://jenkins.hyperledger.org/job/fabric-merge-z/1284/

bmkor (Sun, 21 May 2017 16:19:03 GMT):
Any hint and help will be appreciated.

bmkor (Sun, 21 May 2017 16:19:03 GMT):
Any hint and help would be appreciated.

yacovm (Sun, 21 May 2017 16:24:28 GMT):
I rebased it

yacovm (Sun, 21 May 2017 16:24:35 GMT):
hope it'll work out

bmkor (Sun, 21 May 2017 18:27:20 GMT):
failed (goimports) then fixed, published and still failed

bmkor (Sun, 21 May 2017 18:28:00 GMT):
``` 18:23:43 [Cobertura] Publishing Cobertura coverage report... 18:23:43 FATAL: Unable to find coverage results 18:23:43 java.io.IOException: remote file operation failed: /w/workspace/fabric-merge-z at hudson.remoting.Channel@3cd85357:ubuntu1604-s390x-2c-16g-19: java.io.IOException: /w/workspace/fabric-merge-z/gopath/src/github.com/hyperledger/fabric/report.xml is not an XML file, please check your report pattern ```

bmkor (Sun, 21 May 2017 18:28:33 GMT):
`https://jenkins.hyperledger.org/job/fabric-merge-z/1314/console`

yacovm (Sun, 21 May 2017 19:34:52 GMT):
@bmkor there now it's green

yacovm (Sun, 21 May 2017 19:35:12 GMT):
ah but you need to update the year in the license header

TortueMat (Mon, 22 May 2017 00:01:09 GMT):
Has joined the channel.

Calvin_Heo (Mon, 22 May 2017 02:51:36 GMT):
Has joined the channel.

bmkor (Mon, 22 May 2017 10:50:11 GMT):
Thanks a lot! License header? Let me try @yacovm

bmkor (Mon, 22 May 2017 10:50:11 GMT):
Thanks a lot! License header? Let me check @yacovm

bmkor (Mon, 22 May 2017 10:54:01 GMT):
ah 2017... publish again...

Maha1992 (Mon, 22 May 2017 11:25:03 GMT):
how to write a chaincode for storing a document (pdf) (asset transfer between peers)...any ideas?

magg (Mon, 22 May 2017 11:26:12 GMT):
hello

magg (Mon, 22 May 2017 11:26:45 GMT):
i want put a proxy in every node of fabric... any tips on what ports are important?

magg (Mon, 22 May 2017 11:26:45 GMT):
i want put a proxy in every node of fabric... any tips on what ports are important? what protocols or ports do i need to take into account

yacovm (Mon, 22 May 2017 11:30:59 GMT):
fabric works only with gRPC so I guess you'll need http/2 aware proxy

yacovm (Mon, 22 May 2017 11:31:03 GMT):
Also in production there is TLS

yacovm (Mon, 22 May 2017 11:31:33 GMT):
with regard to ports - ports 7050 is for connecting to ordering service, port 7051 is to connect to peers

yacovm (Mon, 22 May 2017 11:31:58 GMT):
events port (in peers) is 7053

yacovm (Mon, 22 May 2017 11:32:09 GMT):
they can be configured here https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml

magg (Mon, 22 May 2017 11:39:08 GMT):
thanks @yacovm

magg (Mon, 22 May 2017 11:39:29 GMT):
do you know if they are the same ports for 0.6?

MohammadObaid (Mon, 22 May 2017 11:52:10 GMT):
I have a question regarding `dev-peer0.org1.example.com-mycc-1.0` . According to documentation it is chaincode container for each peer and must show transaction run on each separate container. I have successfully installed, initate and invoke queries against marble chaincode on `peer0.org1` but I am seeing completely different transaction on `dev-peer0.org2.example.com-mycc-1.0` logs. Here are two results. One of chaincode conatiner logs and other is just regular query run on peer0 about marble1 which was invoked. My question why I am getting two different result. Shouldnt I get the same transaction on chaincode container logs?

MohammadObaid (Mon, 22 May 2017 11:52:46 GMT):

Message Attachments

bmkor (Mon, 22 May 2017 12:26:34 GMT):
After changing the year in the header, verification failed again..[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v2e63b57SqLmf8AAo) @bmkor

bmkor (Mon, 22 May 2017 12:26:34 GMT):
After changing the year in the header, verification failed again..```12:11:25 ERROR: Step ‘Publish Cobertura Coverage Report’ failed: Unable to find coverage results 12:11:27 Finished: FAILURE``` any clue or hint on cobertura[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v2e63b57SqLmf8AAo) @bmkor ?

bmkor (Mon, 22 May 2017 12:26:34 GMT):
After changing the year in the header, verification failed again..```12:11:25 ERROR: Step ‘Publish Cobertura Coverage Report’ failed: Unable to find coverage results 12:11:27 Finished: FAILURE``` any clue or hint on cobertura[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v2e63b57SqLmf8AAo) ?

yacovm (Mon, 22 May 2017 12:32:49 GMT):
@bmkor I rebased your change set

yacovm (Mon, 22 May 2017 12:33:01 GMT):
please keep in mind to push rebased change sets

yacovm (Mon, 22 May 2017 12:33:27 GMT):
so brittle unit tests that were fixed would be included in your code set

yacovm (Mon, 22 May 2017 12:33:27 GMT):
so brittle unit tests that were fixed would be included in the uploaded change set

bmkor (Mon, 22 May 2017 12:34:09 GMT):
I see. Thanks!

nickgaski (Mon, 22 May 2017 13:10:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fY39jDs8WAD7y7CNo) @MohammadObaid - you're seeing the transactions that THOSE containers executed

MohammadObaid (Mon, 22 May 2017 13:15:39 GMT):
@nickgaski Yeah it is strange those container supposed to execute marble transactions but as per logs I guess it is executing default chaincode2.

nickgaski (Mon, 22 May 2017 13:20:12 GMT):
I think you are crossing over the two chaincodes. You would see marbles transactions if you queried a chaincode container on the right side of this screenshot

MohammadObaid (Mon, 22 May 2017 13:31:33 GMT):
Yeah you are right

stevehooperjr (Mon, 22 May 2017 14:43:09 GMT):
Is there any mechanism to trigger events automatically within the network? I'm already looking into invoking chaincodes from other chaincodes, but what about setting some sort of trigger based on the date or some external data feed? Right now it just looks like we would have to trigger that with calls from the outside (using an SDK) but I didn't know if there was a built in mechanism for that.

tsnyder (Mon, 22 May 2017 15:08:14 GMT):
Has joined the channel.

stevehooperjr (Mon, 22 May 2017 21:00:38 GMT):
I'll assume not, then.

jeffgarratt (Mon, 22 May 2017 21:05:22 GMT):
@stevehooperjr as of now I believe events are part of the TX, so therefore they must be deterministic. To trigger an event internally as such would be fairly complicated as times are non-trivial to implement in this manner.

stevehooperjr (Mon, 22 May 2017 21:06:33 GMT):
Thanks @jeffgarratt that makes sense...so setting up methods to be called from an SDK is the way to go?

jeffgarratt (Mon, 22 May 2017 21:07:25 GMT):
@stevehooperjr you could generalize this statement to mean externally generated.

jeffgarratt (Mon, 22 May 2017 21:07:51 GMT):
ie. you could use a trusted 3rd party to inject TXs as 'ticks' to represent such a function

jeffgarratt (Mon, 22 May 2017 21:08:33 GMT):
and leverage the endorsement policies to make sure only that party could submit such TXs, which of course would be emitted by the peers in the channel.

s.narayanan (Tue, 23 May 2017 00:54:50 GMT):
The docker-compose-cli.yaml (for alpha 2 e2e test) refers to fabric-testenv image which is not available in the docker hub repository. I replaced it with fabric peer image. Also this yaml file is missing ccenv image which is required for chaincode execution ..

mochechan (Tue, 23 May 2017 03:03:14 GMT):
How to create a local peer to connect/sync IBM BlueMix blockchain (Fabric 1.0 beta)? Is it possible?

alfa (Tue, 23 May 2017 10:23:00 GMT):
Has joined the channel.

SotirisAlfonsos (Tue, 23 May 2017 10:42:36 GMT):
Hi everyone, I am trying to apply network delays to my docker containers. Not to the entire network, but each container separately. Any suggestions?

SahilKapoor (Tue, 23 May 2017 12:11:10 GMT):
A question, in fabric, I want to trade an asset between party A n B. Asset XYZ has some public and some private data. I want private data to be shared only between A n B and rest can be shared across the chain. How can I achieve this?

stevehooperjr (Tue, 23 May 2017 13:55:25 GMT):
@SahilKapoor look into channels, that's the best way to segregate data.

stevehooperjr (Tue, 23 May 2017 13:56:06 GMT):
@mochechan There is no beta release, but as far as I know, it is possible to use Fabric in Bluemix.

Gerard9494 (Tue, 23 May 2017 15:02:04 GMT):
Hey everyone! Is there any consensus already implemented on the Hyperledger v1.0? I've seen that PBFT is available at the v0.6, but I'm not sure if we can use it at the latest version. I've read about SBFT, but is not available. Thanks

jeffgarratt (Tue, 23 May 2017 15:11:17 GMT):
@Gerard9494 sbft is post 1.0

Gerard9494 (Tue, 23 May 2017 15:13:35 GMT):
So, is there any consesus for the 1.0? Thanks @jeffgarratt

jeffgarratt (Tue, 23 May 2017 15:14:02 GMT):
@Gerard9494 kafka is the planned implementation for the orderer for v1

Gerard9494 (Tue, 23 May 2017 15:14:29 GMT):
Perfect! Thank you very much :) @jeffgarratt

jeffgarratt (Tue, 23 May 2017 15:14:34 GMT):
yw!!

nickgaski (Tue, 23 May 2017 16:17:56 GMT):
@SahilKapoor - we use channels to accommodate the confidentiality concerns. Only the participants on a channel will have the ledger

MohammadObaid (Tue, 23 May 2017 17:37:28 GMT):
What algorithm is used in fabric architecture to generate private key and public key? I know fabric uses public key infrastructure(PKI) to generate keys and digital signature but I guess we can use different algo inside PKI like rsa algo etc . so which algorithm is using fabric to generate keys?

FenglianXu (Tue, 23 May 2017 17:56:43 GMT):
Has joined the channel.

yacovm (Tue, 23 May 2017 18:30:24 GMT):
You can choose between RSA and ECDSA from what I know

MohammadObaid (Tue, 23 May 2017 18:33:21 GMT):
by default which one is selected?

MohammadObaid (Tue, 23 May 2017 18:42:02 GMT):
I am asking it because I haven't found any yaml file or any other file which defines what encryption algo is used

SahilKapoor (Tue, 23 May 2017 18:45:12 GMT):
@nickgaski I agree with that but then the whole transaction would be only between two parties. My use case is that only part of the asset needs to be secret. Example . Party A n Party B do some trade . Trade has two components i.e some public and some private. Now when the trade is done , private data remains private between Party A n B but the public data should be visible to Party C.

SahilKapoor (Tue, 23 May 2017 18:45:47 GMT):
So in all some part of the trade i.e asset is private and some public.

nickgaski (Tue, 23 May 2017 19:19:04 GMT):
right. ok so you could use a side DB to isolate the private data, and then hash the transaction to the public chain with an update to the channel world state with whatever is permissible for public. ask this to dave enyeart in the ledger channel, he'll give you a more granular answer

nickgaski (Tue, 23 May 2017 19:19:11 GMT):
@SahilKapoor ^^

jordipainan (Wed, 24 May 2017 00:24:53 GMT):
Hi, i dont understant all the process to set up an environment. In my case Im trying to build an asset (Car) and a network with 3 participants, this 3 participants are able to sell the car and the ownership of this car will change. So what is the process to do that? Set up a network with 3 peers? Develop the asset ? Develop the transaction as chaincode? Or what parts i should use ? Thank you for answers

jeffgarratt (Wed, 24 May 2017 00:29:18 GMT):
@jordipainan if your use case is asset transfer, you may wish to consider #composer

jeffgarratt (Wed, 24 May 2017 00:32:34 GMT):
The setting up the network part is of course essential. Composer offers a DSL/runtime combination specific to asset transfer use cases.

jordipainan (Wed, 24 May 2017 00:32:50 GMT):
yeah i consider it but i would like to set up a network and comunicate with the ledger trough a java app to insert, or delete cars to sell, transfer car from actual owner to other etc.. Is that possible or is too early for doing this ?

jeffgarratt (Wed, 24 May 2017 00:33:35 GMT):
I don't think it is too early. @muralisr is working on an example app which is a rework of the 0.6 asset transfer sample

jordipainan (Wed, 24 May 2017 00:33:36 GMT):
or its too hard for example ..

jeffgarratt (Wed, 24 May 2017 00:33:45 GMT):
too hard... hmmmm. :)

jeffgarratt (Wed, 24 May 2017 00:34:11 GMT):
composer offers what I would consider a much more business level perspective of asset transfer

jeffgarratt (Wed, 24 May 2017 00:34:29 GMT):
It is still in progress wrt to v1.0

jordipainan (Wed, 24 May 2017 00:34:46 GMT):
yeah ive done it

jeffgarratt (Wed, 24 May 2017 00:34:51 GMT):
ahhhh good

jordipainan (Wed, 24 May 2017 00:34:53 GMT):
with 1 car and 3 participants

jeffgarratt (Wed, 24 May 2017 00:34:59 GMT):
it should be ready for v1 shortly

jordipainan (Wed, 24 May 2017 00:35:09 GMT):
car model, rent date, etc

jordipainan (Wed, 24 May 2017 00:35:29 GMT):
but i would like to build it in the way i decribed

jeffgarratt (Wed, 24 May 2017 00:35:35 GMT):
k, then @muralisr may be someone good to reach out to for an example of straight chaincode impl

jordipainan (Wed, 24 May 2017 00:35:56 GMT):
ok thank you so much :D

jeffgarratt (Wed, 24 May 2017 00:36:02 GMT):
yw @joir

jeffgarratt (Wed, 24 May 2017 00:36:02 GMT):
yw @jordipainan

muralisr (Wed, 24 May 2017 00:39:06 GMT):
@jordipainan right, I am working on (with @adc help) on converting the "Asset management" chaincode in 0.6 to 1.0

muralisr (Wed, 24 May 2017 00:39:22 GMT):
haven't got very for yet

muralisr (Wed, 24 May 2017 00:39:22 GMT):
haven't got very far yet

muralisr (Wed, 24 May 2017 00:39:39 GMT):
hoping to have something by this weekend

magg (Wed, 24 May 2017 09:40:51 GMT):
hello, is there a way to change the default ports 7050, etc in fabric 0.6?

bmkor (Wed, 24 May 2017 12:26:40 GMT):
Hi guys. Would like to know after the client submitted endorsed proposal or transaction to the orderer which succeeded in ordering the transaction and returned "success" to the client, what would follow? Peers commit their own ledger? What if some of them rejected and, I assume, peers notified client and what should be next? Thanks a lot.

bmkor (Wed, 24 May 2017 12:26:40 GMT):
Hi guys. Would like to know after the client submitted endorsed proposal or transaction to the orderer which succeeded in ordering the transaction and returned "success" to the client, what would follow? Peers commit their own ledger? What if some of them rejected and, I assume, peers would notifiy client and what should be next? Thanks a lot.

pd93 (Wed, 24 May 2017 15:06:38 GMT):
Hi, I'm upgrading my app from an old version of fabric (shortly before the first v1 alpha was cut) to alpha2. When generating the configtx artefacts, I'm getting the following error. Does anyone know what might be causing this? ``` 2017-05-24 15:54:17.588 BST [common/configtx/tool] main -> INFO 001 Loading configuration panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x86ccf6] goroutine 1 [running]: github.com/hyperledger/fabric/common/configtx/tool/localconfig.translatePaths(0xc420200230, 0x40, 0xc42023ade0) ........../hyperledger/fabric/common/configtx/tool/localconfig/config.go:268 +0x56 ```

tennenjl (Wed, 24 May 2017 15:15:43 GMT):
Hi, is it possible to revoke the ability for a Blockchain peer to access data or historical transactions. My understanding is that this is not possible (except possibly for data that lives off chain). Is it possible to remove a peer from a channel and if so, how would that change what information they can view on the ledger and world state? Thanks!

jeffgarratt (Wed, 24 May 2017 15:46:26 GMT):
@tennenjl you can revoke the ability for a peer to access data on a channel (Through the policies for the channel). They would be able to access the existing ledger they have in place, but not receive new blocks for the channel.

tennenjl (Wed, 24 May 2017 15:48:34 GMT):
@jeffgarratt That makes sense, is it also safe to assume that they would be able to access any "World State" data associated with that channel that was written prior to their access getting revoked?

jeffgarratt (Wed, 24 May 2017 15:49:20 GMT):
I believe so

jeffgarratt (Wed, 24 May 2017 15:49:20 GMT):
@tennenjl I believe so

Kathyx (Wed, 24 May 2017 20:12:18 GMT):
Has joined the channel.

tennenjl (Wed, 24 May 2017 22:17:00 GMT):
Hi, for Fabric V1.0, the hyperledger docs state that - the default policy requires one signature from a member of the DEFAULT MSP). This is used if a policy is not specified in the CLI. So if I stand up a four peer implementation of fabric today, then just a single peer needs to endorse my transaction request? Thanks!

tennenjl (Wed, 24 May 2017 22:29:20 GMT):
As a followup when I read the docs, I see the ability to specify an Endorsement policy when deploying chaincode. Is there any way to specify a default Endorsement policy at the channel level?

troyronda (Thu, 25 May 2017 00:44:23 GMT):
Has joined the channel.

ShafqatMasood (Thu, 25 May 2017 09:36:56 GMT):
@here any plans to integrate IPFS in fabric?

guoger (Thu, 25 May 2017 09:40:50 GMT):
Is it possible to get `Block` by `Transaction ID`? I see there's `GetBlockByTxID` method in `PeerLedger` interface. thx

jeffgarratt (Thu, 25 May 2017 14:19:38 GMT):
@tennenjl [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WRyznM3EBYnjG2SAQ) @tennenj If you do NOT specify the policy during deployment, then yes. The default policy used is one of the channel's member MSPs.

jeffgarratt (Thu, 25 May 2017 14:20:39 GMT):
And keep in mind peers do not necessarily correlate 1-1 with MSPs.

jeffgarratt (Thu, 25 May 2017 14:21:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C6HyBvbnty593T4eS) @tennenjl Yes. You can get fairly detailed wrt to read/write/admin policy settings.

jeffgarratt (Thu, 25 May 2017 14:22:19 GMT):
perhaps I should rephrase, you can control who can read/write/admin the channel

tennenjl (Thu, 25 May 2017 14:23:50 GMT):
@jeffgarratt Jeff, many thanks, but wouldn't that be different than an endorsement policy which would apply to one or more chaincode deployments?

jeffgarratt (Thu, 25 May 2017 14:24:05 GMT):
@tennenjl yes. You are accurate. I am not.

tennenjl (Thu, 25 May 2017 14:24:17 GMT):
@jeffgarratt No, no, you are helping me :-)

jeffgarratt (Thu, 25 May 2017 14:24:55 GMT):
Currently I do not believe you can set a default endorsement policy at the channel level. But you could enforce one through convention on your deployments.

tennenjl (Thu, 25 May 2017 14:25:37 GMT):
@jeffgarratt Also, for the MSP and the peers, if I understand correctly, we could have multiple peers that all use the same MSP or we could have multiple peers that use different MSPs?

jeffgarratt (Thu, 25 May 2017 14:25:49 GMT):
Correct

jeffgarratt (Thu, 25 May 2017 14:26:07 GMT):
In general MSPs would delineate the organizational boundary

jeffgarratt (Thu, 25 May 2017 14:26:23 GMT):
be it intra- or inter org

tennenjl (Thu, 25 May 2017 14:26:36 GMT):
@jeffGarratt, so if we wanted to have a use case where we needed a signature from more than one org, we would need to deploy chaincode with a new endorsement policy

jeffgarratt (Thu, 25 May 2017 14:27:09 GMT):
correct, where you explicitly define your own vs allowing the default.

tennenjl (Thu, 25 May 2017 14:27:28 GMT):
@jeffgarratt That to me would represent a use case where we would want Composer to have the ability to deploy with an endorsement policy

tennenjl (Thu, 25 May 2017 14:28:04 GMT):
@jeffgarratt Thank you!!

jeffgarratt (Thu, 25 May 2017 14:28:25 GMT):
I believe composer team has some work ahead wrt to accommodating the intricacies of the policy setup for fabric

jeffgarratt (Thu, 25 May 2017 14:28:36 GMT):
@tennenjl you are most welcome!

stevehooperjr (Thu, 25 May 2017 16:37:19 GMT):
Hoping somebody can point me to some documentation for how to use examples 04 and/or 05, I'm having a hard time reverse-engineering how to call them and in what context.

xchen1130 (Thu, 25 May 2017 16:52:20 GMT):
Has joined the channel.

kontos (Thu, 25 May 2017 19:38:49 GMT):
Has joined the channel.

kontos (Thu, 25 May 2017 19:47:48 GMT):
Should the REST API be expected to work for a network setup from the getting started documentation (http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html)? If I submit a POST request like : curl -H "Content-Type: application/json" \ -X POST -d '{ "jsonrpc": "2.0", "method": "invoke", "params": { "type": 1, "chaincodeID":{ "name":"mycc" }, "ctorMsg": { "args":["invoke", "a", "100", "b", "200"] } }, "id": 1 }' \ http://localhost:7050/chaincode --- Nothing will be returned. If I tail the docker logs I will see : transport: http2Server.HandleStreams received bogus greeting from client: "POST /chaincode HTTP/1.1".

latitiah (Thu, 25 May 2017 19:53:00 GMT):
I receive the following error when using the configtxgen tool: ``` configtxgen -profile SampleSingleMSPChannel -outputCreateChannelTx /path/to/configs/mychannel.tx -outputBlock /path/to/configs/orderer.block -channelID mychannel 2017-05-25 19:35:36.697 UTC [common/configtx/tool] main -> INFO 001 Loading configuration panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x4ace5e] goroutine 1 [running]: panic(0x8cdce0, 0xc42000e0d0) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/common/configtx/tool/provisional.New(0xc420348ed0, 0x0, 0xc4200120c0) /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/provisional/provisional.go:93 +0x7e main.doOutputBlock(0xc420348ed0, 0x7ffc401cf705, 0x9, 0x7ffc401cf6c3, 0x36, 0x984bc6, 0x8a) /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:45 +0x40 main.main() /opt/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:331 +0x9c3 ``` I have set `ORDERER_CFG_PATH=/path/to/configs` where I have also saved my `config.yaml` file. Any ideas what I may be doing wrong?

latitiah (Thu, 25 May 2017 20:28:34 GMT):
nm... I figured out what I'm doing wrong. I was combining this into 1 command and I have to split this up into 2 commands. One for the channel transaction block which uses a Channel Profile and the other for the orderer genesis block which uses the Orderer Profile.

Glen (Fri, 26 May 2017 01:13:48 GMT):
Has joined the channel.

rama_rahul (Fri, 26 May 2017 05:32:30 GMT):
Has joined the channel.

akash42145 (Fri, 26 May 2017 12:59:25 GMT):
Has joined the channel.

bh4rtp (Sat, 27 May 2017 06:41:38 GMT):
@here why does marbles02 chaincode (https://github.com/hyperledger/fabric/blob/master/examples/chaincode/go/marbles02/marbles_chaincode.go) have no query method?

bh4rtp (Sat, 27 May 2017 06:42:46 GMT):
in the chaincode implementations, need init, invoke and query methods all be defined?

yacovm (Sat, 27 May 2017 09:23:15 GMT):
good morning @bh4rtp - V1 doesn't have a query method because even a query is a simulation of a transaction, it's just that it doesn't have any write set and doesn't end up being sent to the ordering service

bh4rtp (Sat, 27 May 2017 09:26:13 GMT):
@yacovm good morning! that's clear. thanks.

bh4rtp (Sat, 27 May 2017 09:27:43 GMT):
@yacovm is there any documentation about the specification of v1 chaincode?

yacovm (Sat, 27 May 2017 09:27:55 GMT):
what do you mean?

yacovm (Sat, 27 May 2017 09:29:02 GMT):
have you seen https://github.com/hyperledger/fabric/blob/master/docs/source/chaincode.rst ?

bh4rtp (Sat, 27 May 2017 09:36:10 GMT):
@yacovm thanks. i read [WIP] and skip the follow content. :grinning:

bh4rtp (Sat, 27 May 2017 14:20:25 GMT):
@here as we know, an invoke the chaincode will tigger a grpc calling. if my invoke method needs to submit 96 data points at a time, i.e. one point every 15 minutes, to improve the networking efficiency i prefer to implement the invoke method accepting all 96 data points as the argument. but this makes the invoke argument length very long. would anyone give me some suggections?

bh4rtp (Sat, 27 May 2017 14:20:25 GMT):
@here as we know, an invoke the chaincode will tigger a grpc calling procedure. if my invoke method needs to submit 96 data points at a time, i.e. one point every 15 minutes, to improve the networking efficiency i prefer to implement the invoke method accepting all 96 data points as the argument. but this makes the invoke argument length very long. would anyone give me some suggections?

muralisr (Sat, 27 May 2017 14:22:48 GMT):
@bh4rtp the question should be at a higher level given every invoke is a potential transaction... from a app/business logic point of view, would it make sense for 1 transaction with 96 points or 1 transaction per data point ?

muralisr (Sat, 27 May 2017 14:23:52 GMT):
if it doesn't matter and all you care is efficiency, given assuming you are using an SDK, this can be done in multiple ways

bh4rtp (Sat, 27 May 2017 14:24:29 GMT):
@muralisr yes, you cut the point. from the business logic point of view, it would make sense for 1 transaction with 96 points.

muralisr (Sat, 27 May 2017 14:25:24 GMT):
for example { numdatapoints, arrayofdatapoints } will result in an invoke with 2 arguments (or 1 if you want to make 1 structure out of the two)

muralisr (Sat, 27 May 2017 14:26:35 GMT):
the chaincode Invoke takes bytes for each argument ... so the argument structure coud be of different types ... even binary data that chaincode can decode

bh4rtp (Sat, 27 May 2017 14:30:12 GMT):
@muralisr it is really my choice. but how to implement in golang like this kind of array with variable for chaincode?

bh4rtp (Sat, 27 May 2017 14:30:12 GMT):
@muralisr it is really my choice. but how to implement in golang like this kind of array with variable size for chaincode?

muralisr (Sat, 27 May 2017 14:35:40 GMT):
what is a "data point" ?

bh4rtp (Sat, 27 May 2017 14:36:25 GMT):
@muralisr a data point includes time, price and quantity.

muralisr (Sat, 27 May 2017 14:36:34 GMT):
ok

muralisr (Sat, 27 May 2017 14:38:09 GMT):
so you could define JSON type for DataPoint and a construct an array of DataPoints . you can use go to unmarshal from JSON string to a golang structure

muralisr (Sat, 27 May 2017 14:38:21 GMT):
there should be examples if you google

muralisr (Sat, 27 May 2017 14:39:00 GMT):
https://blog.golang.org/json-and-go

bh4rtp (Sat, 27 May 2017 14:39:45 GMT):
@muralisr ok, thank you very much. the discussion gives me a wonderful solution.

muralisr (Sat, 27 May 2017 14:40:11 GMT):
anytime @bh4rtp

vijaygopal (Sat, 27 May 2017 16:53:57 GMT):
Is there a way to persist changes in docker container that came as part of "https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst" and start pointing to that container rather than using the older ones which was downloaded as part of the tutorial ?

bmalavan (Sat, 27 May 2017 20:05:24 GMT):
Has joined the channel.

akash42145 (Sun, 28 May 2017 07:06:02 GMT):
Hello All , I have a question regarding consensus mechanism Kafka, let assume in production environment 4 organisations are there and each organisation is having 4 peers out of which two are endorsing peer. So how many orderer and kafka broker container will be sufficient? Is there any calculation mechanism is there for designing number of orderer and kafka broker container? Any tutorial?

raasiel (Sun, 28 May 2017 11:53:47 GMT):
Has joined the channel.

SotirisAlfonsos (Mon, 29 May 2017 09:35:25 GMT):
Hello. Should a peer from org1 be able to invoke a chaincode installed on org2, where those two orgs are part of the same channel?

yacovm (Mon, 29 May 2017 09:37:08 GMT):
yeah

SotirisAlfonsos (Mon, 29 May 2017 09:48:33 GMT):
My bad, what i wanted to say was if a client can directly contact peers from another org. I should assume that the answer is the same?

FabianHinsenkamp (Mon, 29 May 2017 10:01:59 GMT):
Has joined the channel.

yacovm (Mon, 29 May 2017 10:04:54 GMT):
yeah

AbhilekhSingh (Mon, 29 May 2017 10:24:26 GMT):
Hi all, If I'm adding intermediate CA's and use certs issued by new CA. How peer or orderer will know it is issued by valid CA?

AbhilekhSingh (Mon, 29 May 2017 10:25:04 GMT):
Do I need to store new CA cert in peer and orderer machine ?

mastersingh24 (Mon, 29 May 2017 10:45:52 GMT):
[ This is all done via config updates to the orderer. You'll notice that when you create the genesis block for the orderer, you specify an initial (set) of orderer organization(s). You'll also notice that when you configure a consortium and/or a channel you specify organizations as well. When you initially define an organization, you'll notice that you specify an MSP for that organization and within the MSP you specify root and intermediate certificates. Now if you perform a config update transaction (a tool to do this is in the works), the updated MSP definitions will be propagated to all peers on a per channel basis ](https://chat.hyperledger.org/channel/fabric-questions?msg=yLb24hvhc52FyojH6) @AbhilekhSingh

rama_rahul (Tue, 30 May 2017 06:19:49 GMT):

Message Attachments

MDBijman (Tue, 30 May 2017 07:40:41 GMT):
Has joined the channel.

noursaadallah (Tue, 30 May 2017 09:14:45 GMT):
Hello , i'm currently following this tutorial : https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#manually-generate-the-artifacts but when i run : ./bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block I get the following : 2017-05-30 02:08:41.137 PDT [common/configtx/tool] main -> INFO 001 Loading configuration 2017-05-30 02:08:41.137 PDT [common/configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" goroutine 1 [running]: panic(0x89cf80, 0xc4201c8930) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201be630, 0xc42018d6c0, 0x2, 0x2) /w/workspace/fabric-binaries-x86_64-1/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xd0 github.com/hyperledger/fabric/common/configtx/tool/localconfig.Load(0x7ffce637be64, 0x15, 0x0) /w/workspace/fabric-binaries-x86_64-1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/localconfig/config.go:180 +0xa8e main.main() /w/workspace/fabric-binaries-x86_64-1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:328 +0x4fa any ideas? thank you

nickgaski (Tue, 30 May 2017 15:16:57 GMT):
@rama_rahul - is that actually an error? The logs suggest that the genesis block is being created and that the intermediate certs simply don't exist in your MSP directories

nickgaski (Tue, 30 May 2017 15:17:43 GMT):
@noursaadallah - did you run an `export FABRIC_CFG_PATH=$PWD` prior to running that command? We need to do that in order to tell the configtxgen tool where to locate the configtx.yaml

guillermo.correa (Tue, 30 May 2017 15:31:45 GMT):
Has joined the channel.

noursaadallah (Tue, 30 May 2017 15:35:56 GMT):
Yes i did, actually on the next section when i try to run the shell script to generate the artifacts and crypto it works, but not when i try to do it manually

noursaadallah (Tue, 30 May 2017 15:36:06 GMT):
thank you for the response

jarroyer (Tue, 30 May 2017 17:38:24 GMT):
Has joined the channel.

jarroyer (Tue, 30 May 2017 17:40:10 GMT):
2017-05-30 17:37:44.351 UTC [common/configtx/tool] main -> INFO 001 Loading configuration 2017-05-30 17:37:44.358 UTC [common/configtx/tool] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x401489] goroutine 1 [running]: panic(0x8ced60, 0xc4200100b0) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 main.doOutputChannelCreateTx(0xc4202a08d0, 0x7ffd6d2d9744, 0x5, 0x7ffd6d2d971a, 0x1e, 0x985c14, 0x8a) /w/workspace/fabric-binaries-x86_64-1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:68 +0x139 main.main() /w/workspace/fabric-binaries-x86_64-1/gopath/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen/main.go:337 +0x8b5

jarroyer (Tue, 30 May 2017 17:40:27 GMT):
I get this error after running the configtx tool

jarroyer (Tue, 30 May 2017 17:41:09 GMT):
I'm using another profile but it crashes when I use one of the pre-made ones though

toddinpal (Tue, 30 May 2017 23:28:03 GMT):
Is there a complete definition of what will be in Fabric 1.0? In other words, SBFT will not nor will Java smart contracts, at least from what I've heard.

bh4rtp (Wed, 31 May 2017 01:47:13 GMT):
@here is block-listener not updated? it failed to run `./block-listener -events-address=0.0.0.0:7053` Event Address: 127.0.0.1:7053 2017-05-31 09:40:32.914 CST [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. could not start chat error getting creator from MSP: could not obtain the default signing identity, err This MSP does not possess a valid default signing identity Error creating event client

bh4rtp (Wed, 31 May 2017 01:47:13 GMT):
@here is block-listener not updated? it failed to run `./block-listener -events-address=0.0.0.0:7053` Event Address: 127.0.0.1:7053 2017-05-31 09:40:32.914 CST [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. could not start chat error getting creator from MSP: could not obtain the default signing identity, err This MSP does not possess a valid default signing identity Error creating event client s

bh4rtp (Wed, 31 May 2017 01:47:13 GMT):
@here is block-listener not updated? it fails to run `./block-listener -events-address=0.0.0.0:7053` Event Address: 127.0.0.1:7053 2017-05-31 09:40:32.914 CST [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. could not start chat error getting creator from MSP: could not obtain the default signing identity, err This MSP does not possess a valid default signing identity Error creating event client

eroldan (Wed, 31 May 2017 07:22:38 GMT):
Has joined the channel.

magg (Wed, 31 May 2017 11:37:52 GMT):
hello, is there an example with multiple orderer, peers, kafka brokers and zookeeper?

jeffgarratt (Wed, 31 May 2017 16:17:14 GMT):
@magg yes, that is by default supported in the behave system

davidoevans (Wed, 31 May 2017 17:47:23 GMT):
Has joined the channel.

tmath (Wed, 31 May 2017 22:59:51 GMT):
Has joined the channel.

tmath (Wed, 31 May 2017 23:08:16 GMT):
when running generateArtifacts.sh I get the following error when generating the genesis block `[msp] getMspConfig -> INFO 002 intermediate certs folder not found`

tmath (Wed, 31 May 2017 23:08:25 GMT):
anyone have any idea?

jeffgarratt (Thu, 01 Jun 2017 01:46:06 GMT):
@tmath that is actually just 'info' level output. This is not indicative of an error.

michele (Thu, 01 Jun 2017 08:31:49 GMT):
When creating two ordererers, inspecting "docker ps", we are seeing this: 7050/tcp, 0.0.0.0:8050->8050/tcp 7050/tcp, 0.0.0.0:8150->8150/tcp after 30/40 seconds, both orderers (one for organization) are exited with status code 2 I believe they are conflicting in some way; using just one order (like in you tutorial example), everything works smooth. Is the scenario with two orderers supported in alpha1? Why there's a predefined 7050 port on each orderer?

magg (Thu, 01 Jun 2017 08:44:33 GMT):
@jeffgarratt what's the behave system? the bdd tests? how do i run it?

bh4rtp (Thu, 01 Jun 2017 09:23:29 GMT):
@here in the initMarble function implementation of marble02 chaincode, stub.CreateCompositeKey is used to create color~name index. what is the use of composite key? and how does the composite key work?

bh4rtp (Thu, 01 Jun 2017 09:23:29 GMT):
@here in the `initMarble` function implementation of `marble02` chaincode, `stub.CreateCompositeKey` is used to create "color~name" index. what is the use of composite key? and how does the composite key work?

akdj (Thu, 01 Jun 2017 12:50:01 GMT):
Has joined the channel.

akdj (Thu, 01 Jun 2017 12:50:10 GMT):
Hello, can anybody tell me how to add new peer, new organisation or member in a already running hyperledger fabric system?

AccentSandy (Thu, 01 Jun 2017 15:05:31 GMT):
Has joined the channel.

akdj (Thu, 01 Jun 2017 15:07:02 GMT):
how to use API REST with hyperledger v1.0.0-alpha2 ?

akdj (Thu, 01 Jun 2017 15:07:02 GMT):
how to use API REST with hyperledger fabric v1.0.0-alpha2 ?

AccentSandy (Thu, 01 Jun 2017 15:07:06 GMT):
HI all, Can someone please explain where are all the enrollment ids and secret are stored? If you look at this sample command taken from the documentation, they use WebAppAdmin and enrollment secret to deploy the network composer network deploy --archiveFile digitalPropertyNetwork.bna --enrollId WebAppAdmin --enrollSecret DJY27pEnl16d

kontos (Thu, 01 Jun 2017 15:09:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ppFcGiTtoMaEQAGSi) @AccentSandy The enrollSecret is a base64 encoded string.

AccentSandy (Thu, 01 Jun 2017 15:12:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H6HAaLALM5xygtt3P) @kontos Thanks. Is it a base64 encoded string of a username?

kontos (Thu, 01 Jun 2017 15:29:12 GMT):
@AccentSandy that should be an encoded string of the password. But that one you posted doesn't decode cleanly; so I'm not 100% sure.

AccentSandy (Thu, 01 Jun 2017 15:34:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=chTetdw37ExwSx5Yz) @kontos My confusion was due to the fact that i have not set any enrollId or enrollSecret at the time of sample network installation, so the credentials must be the default enrollId/enrollSecret that's getting pulled from some file. The reason i wanted to know this informaiton is because i am trying to deploying my own portotype network locally and don't know how to generate this enrollId and enrollSecret. Thanks

richard.holzeis (Fri, 02 Jun 2017 06:15:12 GMT):
When starting the network (as described in https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#network-setup `./network_setup.sh up default 3600` I get the following error. ```2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid goroutine 1 [running]: panic(0xc25580, 0xc4202871f0) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:114 +0x69b !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================``` Any suggestions on how to fix the issue?

richard.holzeis (Fri, 02 Jun 2017 06:15:12 GMT):
When starting the network (as described in https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#network-setup) `./network_setup.sh up default 3600` I get the following error. ```2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid goroutine 1 [running]: panic(0xc25580, 0xc4202871f0) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:114 +0x69b !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================``` Any suggestions on how to fix the issue?

richard.holzeis (Fri, 02 Jun 2017 06:15:12 GMT):
When starting the network `./network_setup.sh up default 3600` I get the following error. ```2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid goroutine 1 [running]: panic(0xc25580, 0xc4202871f0) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:114 +0x69b !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================``` Any suggestions on how to fix the issue?

richard.holzeis (Fri, 02 Jun 2017 06:15:12 GMT):
When starting the network with `./network_setup.sh up default 3600` I get the following error. I followed the instructions from https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#network-setup ```2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-06-02 05:49:33.258 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] panic: Fatal error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid goroutine 1 [running]: panic(0xc25580, 0xc4202871f0) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:114 +0x69b !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================``` Any suggestions on how to fix the issue?

ivaylopivanov (Fri, 02 Jun 2017 07:05:18 GMT):
Has joined the channel.

ArvsIndrarys (Fri, 02 Jun 2017 08:26:58 GMT):
Has joined the channel.

ArvsIndrarys (Fri, 02 Jun 2017 08:37:58 GMT):
Hey guys ! I successfully managed to make the getting_started tutorial on an Ubuntu 16.04 LTS. Now I want to setup a cluster with that Ubuntu and a bunch of Raspberry pi. Problem is : from the getting_started tutorial I get : ``` gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now bash: line 12: cd: release/linux-armv7l: No such file or directory sh: 0: Can't open download-dockerimages.sh ``` and from the end_to_end.rst in the alpha2 branch, I get : ``` mkdir -p build/image/ccenv/payload cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory Makefile:244: recipe for target 'build/image/ccenv/payload' failed make: *** [build/image/ccenv/payload] Error 1 ``` But apparently, ARM architecture is supported. Is there any tutorial out there about it?

ArvsIndrarys (Fri, 02 Jun 2017 08:37:58 GMT):
Hey guys ! I successfully managed to make the getting_started tutorial on an Ubuntu 16.04 LTS. Now I want to setup a cluster with that Ubuntu and a bunch of Raspberry pi. Problem is : from the getting_started tutorial I get : ` gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now bash: line 12: cd: release/linux-armv7l: No such file or directory sh: 0: Can't open download-dockerimages.sh` and from the end_to_end.rst in the alpha2 branch, I get : `mkdir -p build/image/ccenv/payload cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory Makefile:244: recipe for target 'build/image/ccenv/payload' failed make: *** [build/image/ccenv/payload] Error 1` But apparently, ARM architecture is supported. Is there any tutorial out there about it?

bh4rtp (Fri, 02 Jun 2017 09:10:23 GMT):
@here invoke chaincode in cli, how to parse payload? i need use the returned value.

AccentSandy (Fri, 02 Jun 2017 09:45:43 GMT):
Hi all, How do i update composer cli using command line? Thanks

lehors (Fri, 02 Jun 2017 11:20:03 GMT):
@AccentSandy ask on #composer

lehors (Fri, 02 Jun 2017 11:21:22 GMT):
@richard.holzeis what's your environment?

MohammadObaid (Fri, 02 Jun 2017 15:26:51 GMT):
Hey all . I have a question . Suppose only one peer joins the channel out of total 5 peers . Now what I observe with fabric cli that when peer invoke query data is appended into ledger no matter whether peers joined the channel or not . My question is how transaction get endorsed if endorsing peers are not joined the channel . My question is specifically related to fabric-cli ?

richard.holzeis (Fri, 02 Jun 2017 15:38:07 GMT):
@lehors I am working on mac os, but I manage to fix it myself. After removing all docker images from my local machine and restarting the getting started guidelines it worked without any problem.

lehors (Fri, 02 Jun 2017 15:38:40 GMT):
very good

jeffgarratt (Fri, 02 Jun 2017 16:56:43 GMT):
@magg are you here?

snowy13 (Fri, 02 Jun 2017 17:47:13 GMT):
Has joined the channel.

snowy13 (Fri, 02 Jun 2017 17:49:01 GMT):
@richard.holzeis Did you find a solution?

bobbiejc (Fri, 02 Jun 2017 18:41:05 GMT):
Question, in Getting started, it says the following about 'instantiation' : >>> "Instantiation adds the chaincode to the channel, starts the container for the target peer, and initializes the key value pairs associated with the chaincode. The initial values for this example are [“a”,”100” “b”,”200”]. This “instantiation” results in a container by the name of dev-peer0.org2.example.com-mycc-1.0 starting."

bobbiejc (Fri, 02 Jun 2017 18:41:05 GMT):
Question, in Getting started, it says the following about 'instantiation' : >>> "Instantiation adds the chaincode to the channel, starts the container for the target peer, and initializes the key value pairs associated with the chaincode. The initial values for this example are [“a”,”100” “b”,”200”]. This “instantiation” results in a container by the name of dev-peer0.org2.example.com-mycc-1.0 starting."

bobbiejc (Fri, 02 Jun 2017 18:42:06 GMT):
what is the 'target peer'? Is Instantiation really starting containers on the commit only peers? or does it start containers only on the endorsers? How does it know where to start teh container?

holocron (Fri, 02 Jun 2017 18:43:08 GMT):
yes, only the peer that instantiates the chaincode starts a container at this point

bobbiejc (Fri, 02 Jun 2017 18:45:37 GMT):
oh -- i see, i'm missing the identification of the peer in the instantiation -i thought that was only to a channel, let me go look more carefully

bobbiejc (Fri, 02 Jun 2017 18:47:45 GMT):
ok, what in this identifies peer0.org2.example.com...?

bobbiejc (Fri, 02 Jun 2017 18:47:47 GMT):
>>> peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

holocron (Fri, 02 Jun 2017 18:48:24 GMT):
I think you need to set CORE_PEER_ADDRESS as well

bobbiejc (Fri, 02 Jun 2017 18:48:41 GMT):
ah ---ok

bobbiejc (Fri, 02 Jun 2017 18:48:43 GMT):
got it

bobbiejc (Fri, 02 Jun 2017 18:48:52 GMT):
that is part of the enviornment, and I just missed it

holocron (Fri, 02 Jun 2017 18:49:02 GMT):
:) no worries

bobbiejc (Fri, 02 Jun 2017 18:49:30 GMT):
i assumed that the instantiate was to the channel and that all peers on the channel would act accordingly

bobbiejc (Fri, 02 Jun 2017 18:49:52 GMT):
so what if (which I think I did), i ahd CORE_PEER_ADDRESS set to one of the peers that is not an endorser

bobbiejc (Fri, 02 Jun 2017 18:49:56 GMT):
(i.e. that doesn't have the code)

bobbiejc (Fri, 02 Jun 2017 18:50:23 GMT):
would it still work and just spin up the containers at invoke?

bobbiejc (Fri, 02 Jun 2017 18:50:34 GMT):
what if I try to query a peer that doesn't have the code?

holocron (Fri, 02 Jun 2017 18:50:42 GMT):
um, you'll get a failure -- see http://hyperledger-fabric.readthedocs.io/en/latest/install_instantiate.html#instantiate-the-chaincode-on-the-channel-from-the-remote-cli

bobbiejc (Fri, 02 Jun 2017 18:51:38 GMT):
yea -- i'm only as far as "getting started" ;-)

holocron (Fri, 02 Jun 2017 18:52:14 GMT):
:)

bmkor (Sun, 04 Jun 2017 11:52:11 GMT):
Pulled the merged version of fabric yesterday and is glad that we got `configtxlator` for updating configuration. Thanks.

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask if I wanna add an extra peer organisation, for instance, adding org3 in e2e_cli example, what would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask if I wanna add an extra peer organisation, for instance, after running e2e_cli example, we got a channel(mychannel) with 4 peers from 2 orgs(org1 & org2) joined. Now I got peers from org3 would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel to include org3. What would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask if I wanna add an extra peer organisation; for instance, after running e2e_cli example, we got a channel(mychannel) with 4 peers from 2 orgs(org1 & org2) joined. Now I got peers from org3 would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel to include org3. What would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask if I wanna add an extra peer organisation; for instance, after running e2e_cli example, we got a channel(mychannel) with 4 peers from 2 orgs(org1 & org2) joined. Now I got peers from org3 would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel in order to include org3. What would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask how could I add an extra peer organisation; for instance, after running e2e_cli example, we got a channel(mychannel) with 4 peers from 2 orgs(org1 & org2) joined. Now I got peers from org3 would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel in order to include org3. What would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask how could I add an extra peer organisation; for instance, after running e2e_cli example, we got a channel(`mychannel`) with 4 peers from 2 orgs(`Org1` & `Org2`) joined. Now I got peers from `Org3` would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel in order to include `Org3`. What would be the policy I have to fulfill? The one stated in Channel/Admins?

bmkor (Sun, 04 Jun 2017 11:54:22 GMT):
I would like to ask how could I add an extra peer organisation; for instance, after running e2e_cli example, we got a channel( `mychannel` ) with 4 peers from 2 orgs( `Org1` & `Org2`) joined. Now I got peers from `Org3` would like to join mychannel as well. Without creating another channel, I would like to update the configuration in mychannel in order to include `Org3`. What would be the policy I have to fulfill? The one stated in Channel/Admins?

richard.holzeis (Mon, 05 Jun 2017 08:27:46 GMT):
@lehors Ok, this time I got the error again `x509: certificate has expired or is not yet valid`. Unfortunately cleaning all images and re-running the following commands did not do the trick. `curl -sSL https://goo.gl/NIKLiU | bash` `./network_setup up default 3600` Any suggestions on how to fix this issue? I am working on a mac.

jun (Mon, 05 Jun 2017 08:53:29 GMT):
Has joined the channel.

mastersingh24 (Mon, 05 Jun 2017 10:45:01 GMT):
@richard.holzeis - same error message as you posted previously?

mastersingh24 (Mon, 05 Jun 2017 10:50:45 GMT):
@richard.holzeis - You might want to restart Docker on your Mac and see if that resolves the problem

richard.holzeis (Mon, 05 Jun 2017 19:07:46 GMT):
@mastersingh24 thank you, rebooting docker really fixed the issue... do you know why?

mastersingh24 (Mon, 05 Jun 2017 19:24:06 GMT):
@richard.holzeis - I am not sure "why" it happens, but with Docker for Mac/Windows (and even Docker Toolbox) you can occasionally get into the situation where the clock on the host system does not match the clock in the underlying VM used by Docker. This can generally happen if the machine goes into sleep mode with Docker still running. It's an unpredicatable event as far as I know

mastersingh24 (Mon, 05 Jun 2017 19:25:03 GMT):
So in this case, the tools which generate the crypto material are run on the host system and with the drift/skew between the host and Docker mentioned above you run into the situation

mastersingh24 (Mon, 05 Jun 2017 19:25:53 GMT):
I think I've spent too many hours of my life working with Docker ;)

richard.holzeis (Mon, 05 Jun 2017 19:26:11 GMT):
@mastersingh24 I see. :) Thanks for the explanation.

catbus (Mon, 05 Jun 2017 20:47:43 GMT):
Has joined the channel.

PushpalathaHiremath (Tue, 06 Jun 2017 03:29:14 GMT):
Hi All, I have a question. In real scenario we expect the smart contract update. So, when we update the smart contract , 1. Do we have any option to continue with the same previous ledger? Instead of creating a new genesis block, can we continue appending new blocks from where we left with the previous chain code? 2. Or is there any way to copy all the data from previous ledger to this chain code's ledger? 3. Or do we need to store the chain code id's of the previous smart contract to access the previous data stored? 4. Or Do we need to have two smart contract, one for the storage and retrieval of data to and from the ledger ( which is more stable ) And other smart contract which will have the business logic, which can get changed. Which is the best option. Any help / suggestion really appreciated. Thank you

mastersingh24 (Tue, 06 Jun 2017 11:54:36 GMT):
@PushpalathaHiremath - v1.0.0 actually adds upgrade support to the chaincode lifecycle. If you use the upgrade feature, the new version of the chaincode will actually use the same store as the prior version

akdj (Tue, 06 Jun 2017 14:59:55 GMT):
`/bin/bash: ./scripts/script.sh: Permission denied` getting start e2e example doesn't work anymore with latest docker images

GururajL (Tue, 06 Jun 2017 15:06:19 GMT):
Hi All, when we raise a custom chaincode event in the chaincode, the event is raised twice, once when the proposal is received and once when the transaction is committed, is there a check we can do in the chaincode, to limit it to once after transaction is committed?

vdods (Tue, 06 Jun 2017 21:31:14 GMT):
Hi all, what is the distinction between the terms "chain" and "channel", if any?

yacovm (Tue, 06 Jun 2017 22:16:27 GMT):
same

holocron (Wed, 07 Jun 2017 00:36:40 GMT):
@vdods a channel is defined by members (organizations), anchor peers per member, the shared ledger, chaincode application(s) and the ordering service node(s). [source http://hyperledger-fabric.readthedocs.io/en/latest/channels.html]. Changes to a distributed ledger are stored in a chain of blocks or "blockchain" by each peer that participates in a particular channel, as far as i can tell...

holocron (Wed, 07 Jun 2017 00:38:23 GMT):
Additionally, each peer can have multiple ledgers, where each ledger is backed by a blockchain - please RTFM here... http://hyperledger-fabric.readthedocs.io/en/latest/ledger.html#chain

vdods (Wed, 07 Jun 2017 01:17:27 GMT):
ok, so the chain is the ledger state and sequence of blocks (containing transactions, events, etc)

holocron (Wed, 07 Jun 2017 01:20:37 GMT):
the chain is specifically the transaction log, stored in the peer filesystem as a hash-linked list of blocks. The world state is a separate thing

holocron (Wed, 07 Jun 2017 01:21:00 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/ledger.html#state-database

NiketYende (Wed, 07 Jun 2017 05:18:56 GMT):
Has joined the channel.

NiketYende (Wed, 07 Jun 2017 05:21:49 GMT):
Hello, i had a requirement of invoking one chaincode from other chaincode. Which api should i use to perform the same? Any chaincode API similar to "chain.sendTransactionProposal(request);" node-sdk code? Any help would be appreciated.

ivaylopivanov (Wed, 07 Jun 2017 06:57:08 GMT):
@NiketYende I think you need to `Invoke` that chaincode

NiketYende (Wed, 07 Jun 2017 06:57:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=63u95jighPFYFRacB) @ivaylopivanov I guess "response := stub.InvokeChaincode(chaincodeName, queryArgs, channelName)" should do it right?

ivaylopivanov (Wed, 07 Jun 2017 06:58:25 GMT):
I'm not sure as I never used the go sdk, if it doesn't work as in #fabric-sdk-go

ivaylopivanov (Wed, 07 Jun 2017 06:58:25 GMT):
I'm not sure as I never used the go sdk, if it doesn't work ask in #fabric-sdk-go

ivaylopivanov (Wed, 07 Jun 2017 06:59:25 GMT):
btw, as far as I know the current version of the that sdk does not work with the latest of fabric

ivaylopivanov (Wed, 07 Jun 2017 06:59:25 GMT):
btw, as far as I know the current version of that sdk does not work with the latest of fabric

s.narayanan (Wed, 07 Jun 2017 13:56:50 GMT):
what is the behavior of a (endorser/commiter) peer node when couch db fails or is brought down? does the peer return any error messages in response to endorsement requests or during validation/commit phase? ideally the peer can be marked unavailable and request routed to healthy peer in this scenario. Are there other approaches to detect such a scenario and route to healthy peer and to restore the routing to the peer when its underlying couchdb database becomes available?

s.narayanan (Wed, 07 Jun 2017 13:56:50 GMT):
what is the behavior of a (endorser/commiter) peer node when couch db fails or is brought down? What type of error messages does the peer return in response to endorsement requests or during validation/commit phase for such a scenario? ideally the peer can be marked unavailable and request routed to healthy peer in this scenario. Are there other approaches to detect such a scenario and route to healthy peer and to restore the routing to the peer when its underlying couchdb database becomes available?

d8bhatta (Wed, 07 Jun 2017 15:21:55 GMT):
Hello, we need a trainer for hyperledger fabric and node js sdk. Is here anybody with good experience with such technology?

mastersingh24 (Wed, 07 Jun 2017 17:29:54 GMT):
@d8bhatta - IBM does offer some training for fabric. If you are interested you can submit a request at https://www.ibm.com/blockchain/contact-expert.html

richard.holzeis (Wed, 07 Jun 2017 20:42:41 GMT):
hi, I run into an error when trying to create a genesis block for a channel ... ```root@dccd17213057:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.chained-voting.com:7050 -c default 2017-06-07 20:23:45.396 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-07 20:23:45.397 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-07 20:23:45.397 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-07 20:23:45.420 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-07 20:23:45.420 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure``` Any idea what I could have done wrong?

richard.holzeis (Wed, 07 Jun 2017 20:42:41 GMT):
hi, I run into an error when trying to create a genesis block for a channel ... ```root@dccd17213057:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.chained-voting.com:7050 -c default 2017-06-07 20:23:45.396 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-07 20:23:45.397 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-07 20:23:45.397 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-07 20:23:45.420 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-07 20:23:45.420 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure``` Any idea what I could have done wrong?

richard.holzeis (Wed, 07 Jun 2017 21:03:13 GMT):
it looks like I am not able to connect to the orderer service, but it is up and running ... ```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dccd17213057 registry.ng.bluemix.net/smarterdispatch/fabric-peer:x86_64-1.0.0-alpha2 "/bin/sh -c 'while..." 51 minutes ago Up 38 minutes cli 981f8e407c97 registry.ng.bluemix.net/smarterdispatch/fabric-orderer:x86_64-1.0.0-alpha2 "orderer" 51 minutes ago Up 39 minutes 0.0.0.0:7050->7050/tcp orderer0 e2b8c3307c55 registry.ng.bluemix.net/smarterdispatch/fabric-peer:x86_64-1.0.0-alpha2 "peer node start -..." 51 minutes ago Up 39 minutes peer0 d35a34396a2e registry.ng.bluemix.net/smarterdispatch/fabric-ca:x86_64-1.0.0-alpha2 "sh -c 'fabric-ca-..." 51 minutes ago Up 39 minutes 0.0.0.0:7054->7054/tcp ca0``` also the organizations managing orderer node is configured on the domain orderer.chained-voting.com in the crypto-config.yaml I am working on mac os, btw.

richard.holzeis (Wed, 07 Jun 2017 21:03:13 GMT):
it looks like I am not able to connect to the orderer service, but it is up and running ... ```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dccd17213057 hyperledger/fabric-peer:x86_64-1.0.0-alpha2 "/bin/sh -c 'while..." 51 minutes ago Up 38 minutes cli 981f8e407c97 hyperledger/fabric-orderer:x86_64-1.0.0-alpha2 "orderer" 51 minutes ago Up 39 minutes 0.0.0.0:7050->7050/tcp orderer0 e2b8c3307c55 hyperledger/fabric-peer:x86_64-1.0.0-alpha2 "peer node start -..." 51 minutes ago Up 39 minutes peer0 d35a34396a2e hyperledger/fabric-ca:x86_64-1.0.0-alpha2 "sh -c 'fabric-ca-..." 51 minutes ago Up 39 minutes 0.0.0.0:7054->7054/tcp ca0``` also the organizations managing orderer node is configured on the domain orderer.chained-voting.com in the crypto-config.yaml I am working on mac os, btw.

hshimo (Thu, 08 Jun 2017 03:11:06 GMT):
I've got this error. anyone has any idea? "Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2" ``` root@62b9aed6c049:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem -C $CHANNEL_NAME -n $CCNAME -v 1.0 -p $CCPATH -c '{"Args":["init"]}' -P "OR ('Org0MSP.member','Org1MSP.member')" 2017-06-07 05:11:34.487 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-06-07 05:11:34.488 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-06-07 05:11:34.489 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] 2017-06-07 05:11:34.530 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-07 05:11:34.530 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-06-07 05:11:34.551 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 006 Using default escc 2017-06-07 05:11:34.552 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 007 Using default vscc 2017-06-07 05:11:34.556 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AB1070A6708031A0C088696DEC90510...314D53500A04657363630A0476736363 2017-06-07 05:11:34.556 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 359A6C6BBAD994B6E02AAB7BD94D333F2BD6975AF92292D14E344DA5159785A8 Error: Error endorsing chaincode: rpc error: code = 2 desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# golang.org/x/crypto/sha3 chaincode/input/src/golang.org/x/crypto/sha3/keccakf_amd64.go:13: missing function body for "keccakF1600" ```

PushpalathaHiremath (Thu, 08 Jun 2017 05:02:21 GMT):
@mastersingh24 : Okay.. Thank you. So moving to alpha2 fabric would resolve the issue. There we have the redeploy / upgrade chain code functionality. Is the alpha2 version stable? and do we need any chaincode migration if i have to move to alpha2? major api level changes? Please suggest how feasible is to shift to alpha2..

richard.holzeis (Thu, 08 Jun 2017 05:35:27 GMT):
Ok I made a little progress today. It looks like I've forgot to mount the docker.sock file. However I get the same error messages and one addtional. `2017-06-07 22:35:43.931 UTC [grpc] Printf -> DEBU 006 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp: lookup orderer.chained-voting.com on 127.0.0.11:53: read udp 127.0.0.1:56104->127.0.0.11:53: i/o timeout"; Reconnecting to {"orderer.chained-voting.com:7050" }`

richard.holzeis (Thu, 08 Jun 2017 05:35:27 GMT):
Ok I made a little progress today. It looks like I've forgot to mount the docker.sock file. However I get the same error messages and one addtional. ```2017-06-07 22:35:43.931 UTC [grpc] Printf -> DEBU 006 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp: lookup orderer.chained-voting.com on 127.0.0.11:53: read udp 127.0.0.1:56104->127.0.0.11:53: i/o timeout"; Reconnecting to {"orderer.chained-voting.com:7050" }```

akdj (Thu, 08 Jun 2017 08:13:22 GMT):
@here hello, everyone! How can I set up hyperledger fabric v1.0 alpha2 with multiple hosts using Docker images?

mastersingh24 (Thu, 08 Jun 2017 08:43:15 GMT):
(https://chat.hyperledger.org/channel/fabric-questions?msg=r9pAryHgkNo8C9q9X) @richard.holzeis

mastersingh24 (Thu, 08 Jun 2017 08:43:15 GMT):
@richard.holzeis - in your Docker Compose file, you'll want to make sure that the service name and the container_name for the orderer are set to whichever hostname you are using, e.g. ``` services: orderer.chained-voting.com: extends: file: base/docker-compose-base.yaml service: orderer.example.com container_name: orderer.chained-voting.com ``` (https://chat.hyperledger.org/channel/fabric-questions?msg=r9pAryHgkNo8C9q9X)

richard.holzeis (Thu, 08 Jun 2017 09:57:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yg2aHYRWyRQPt9k6R) @mastersingh24 @mastersingh24 I still get the rpc error ... ```root@4b6283217d75:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.chained-voting.com:7050 -c default -f ./channel-artifacts/channel.tx 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-08 08:51:13.200 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-08 08:51:13.200 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure``` my docker compose file for the orderer service looks like this now .. ```orderer.chained-voting.com: container_name: orderer.chained-voting.com image: registry.ng.bluemix.net/smarterdispatch/fabric-orderer:x86_64-1.0.0-alpha2 environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/msp:/var/hyperledger/orderer/msp - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/tls:/var/hyperledger/orderer/tls ports: - 7050:7050```

richard.holzeis (Thu, 08 Jun 2017 09:57:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yg2aHYRWyRQPt9k6R) @mastersingh24 I still get the rpc error ... ```root@4b6283217d75:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.chained-voting.com:7050 -c default -f ./channel-artifacts/channel.tx 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-08 08:51:13.200 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-08 08:51:13.200 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure``` my docker compose file for the orderer service looks like this now .. ```orderer.chained-voting.com: container_name: orderer.chained-voting.com image: registry.ng.bluemix.net/smarterdispatch/fabric-orderer:x86_64-1.0.0-alpha2 environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/msp:/var/hyperledger/orderer/msp - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/tls:/var/hyperledger/orderer/tls ports: - 7050:7050```

richard.holzeis (Thu, 08 Jun 2017 09:57:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yg2aHYRWyRQPt9k6R) @mastersingh24 I still get the rpc error ... ```root@4b6283217d75:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.chained-voting.com:7050 -c default -f ./channel-artifacts/channel.tx 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-08 08:51:13.177 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-08 08:51:13.200 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-08 08:51:13.200 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure``` my docker compose file for the orderer service looks like this now .. ```orderer.chained-voting.com: container_name: orderer.chained-voting.com image: hyperledger/fabric-orderer:x86_64-1.0.0-alpha2 environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/msp:/var/hyperledger/orderer/msp - ./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/tls:/var/hyperledger/orderer/tls ports: - 7050:7050```

mastersingh24 (Thu, 08 Jun 2017 10:25:11 GMT):
Are you able to build your chaincode outside of Fabric - e.g. running go build in the chaincode root directory? (https://chat.hyperledger.org/channel/fabric-questions?msg=CA2Ks4ttQdNQnPQDK) @hshimo

mastersingh24 (Thu, 08 Jun 2017 10:28:39 GMT):
@richard.holzeis - you need to pass the `--tls` and `--cafile` flags to `peer channel create`, e.g. `--tls enabled --cafile PATH_TO_ORDERER_CA_CERT`

mastersingh24 (Thu, 08 Jun 2017 10:28:39 GMT):
@richard.holzeis - you need to pass the `--tls` and `--cafile` flags to `peer channel create`, e.g. `--tls enabled --cafile PATH_TO_ORDERER_CA_CERT`

mastersingh24 (Thu, 08 Jun 2017 10:28:39 GMT):
@richard.holzeis - you need to pass the `--tls` and `--cafile` flags to `peer channel create`, e.g. `--tls enabled --cafile PATH_TO_ORDERER_CA_CERT`

mastersingh24 (Thu, 08 Jun 2017 10:28:39 GMT):
@richard.holzeis - you need to pass the `--tls` and `--cafile` flags to `peer channel create`, e.g. `--tls enabled --cafile PATH_TO_ORDERER_CA_CERT` It would be the `./crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/tls/ca.crt`

richard.holzeis (Thu, 08 Jun 2017 10:41:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d7YX6txpCYxgjetpG) @mastersingh24 thanks, that was missing :)

DDmitry (Thu, 08 Jun 2017 10:51:19 GMT):
Has joined the channel.

DDmitry (Thu, 08 Jun 2017 10:57:55 GMT):
Good day, everyone. Was curious, what is the state of "doc-changes" branch of marbles? If I understand correctly, the tutorial is good to go for local deploy, but the node app is work in progress?

akdj (Thu, 08 Jun 2017 11:32:46 GMT):
hello, everyone! How can I set up hyperledger fabric v1.0 alpha2 with multiple hosts using Docker images?

toddinpal (Thu, 08 Jun 2017 14:43:37 GMT):
@akdj Take one of the existing Docker yaml configuration files and update it for Swarm

akdj (Thu, 08 Jun 2017 14:44:12 GMT):
but swarm doesn't support docker compose yaml

akdj (Thu, 08 Jun 2017 14:45:44 GMT):
@toddinpal

jeffgarratt (Thu, 08 Jun 2017 14:51:01 GMT):
@toddinpal are you sure? https://docs.docker.com/compose/swarm/

jeffgarratt (Thu, 08 Jun 2017 14:51:01 GMT):
@akdj are you sure? https://docs.docker.com/compose/swarm/

toddinpal (Thu, 08 Jun 2017 14:52:45 GMT):
@akdj What version of Docker are you using?

akdj (Thu, 08 Jun 2017 14:53:03 GMT):
I use docker 1.12

akdj (Thu, 08 Jun 2017 14:53:31 GMT):
https://blog.couchbase.com/deploy-docker-compose-services-swarm/ it seems, i eed use 1.13 experimentable version

akdj (Thu, 08 Jun 2017 14:53:31 GMT):
https://blog.couchbase.com/deploy-docker-compose-services-swarm/ it seems, need to use 1.13 experimentable version

toddinpal (Thu, 08 Jun 2017 14:53:55 GMT):
http://docs.master.dockerproject.org/compose/swarm/

akdj (Thu, 08 Jun 2017 14:53:57 GMT):
https://github.com/docker/compose/issues/3965

mastersingh24 (Thu, 08 Jun 2017 14:54:19 GMT):
@akdj - I'd move up to the latest version of Docker and set it up in Swarm mode across multiple machines

akdj (Thu, 08 Jun 2017 14:54:44 GMT):
@mastersingh24 what version is the latest?

akdj (Thu, 08 Jun 2017 14:54:57 GMT):
because for me, the latest is 1.12 with yum install

toddinpal (Thu, 08 Jun 2017 14:55:29 GMT):
Get the latest from: https://store.docker.com/search?type=edition&offering=community

toddinpal (Thu, 08 Jun 2017 14:55:48 GMT):
The distro repos are notoriously out of date

akdj (Thu, 08 Jun 2017 14:56:03 GMT):
@toddinpal @ and I already saw these two doc of swarm, and it explain to use docker-machine

akdj (Thu, 08 Jun 2017 14:56:03 GMT):
@toddinpal @jeffgarratt and I already saw these two doc of swarm, and it explain to use docker-machine

akdj (Thu, 08 Jun 2017 14:56:03 GMT):
@toddinpal @jeffgarratt and I already read these two doc of swarm, and it explain to use docker-machine

toddinpal (Thu, 08 Jun 2017 14:59:16 GMT):
@akdj Install the latest community edition and compose will work just fine with Docker in swarm mode

akdj (Thu, 08 Jun 2017 15:10:49 GMT):
and do I need to modify docker-compose yaml file? how to say which peer will be in which hostmachine?

akdj (Thu, 08 Jun 2017 15:11:31 GMT):
@toddinpal ?

akdj (Thu, 08 Jun 2017 15:11:41 GMT):
@mastersingh24

toddinpal (Thu, 08 Jun 2017 15:15:07 GMT):
@akdj You can if you switch to the new compose file version. There are placement constraints you can add tot he compose file to specify where containers should be placed

akdj (Thu, 08 Jun 2017 15:15:54 GMT):
` - "constraint:node==node-1" ` in http://docs.master.dockerproject.org/compose/swarm/ , is it the placement constraint tag?

toddinpal (Thu, 08 Jun 2017 15:18:22 GMT):
yup

akdj (Thu, 08 Jun 2017 15:18:49 GMT):
but, what means node-1?

toddinpal (Thu, 08 Jun 2017 15:21:52 GMT):
that's the worker node that was added to the swarm.

toddinpal (Thu, 08 Jun 2017 15:22:21 GMT):
In swarm mode you have to initialize one or more hosts to be swarm managers, and then add one or more swarm worker nodes

akdj (Thu, 08 Jun 2017 15:25:38 GMT):
yes, I know this, I mean, what is node-1? it is the nodeID that I need to replace with?

toddinpal (Thu, 08 Jun 2017 15:32:32 GMT):
hostname

akdj (Thu, 08 Jun 2017 15:33:49 GMT):
ok thank you @toddinpal

akdj (Thu, 08 Jun 2017 15:33:59 GMT):
thanks everyone !!!

toddinpal (Thu, 08 Jun 2017 15:34:03 GMT):
@akdj yw

vinitesh (Thu, 08 Jun 2017 17:10:17 GMT):
Has joined the channel.

vinitesh (Thu, 08 Jun 2017 17:10:29 GMT):
We are creating 2 channels (C1 and C2). On C1 we have 3 members(A,B and D) and on C2 we have 2 members (A and D). member A should have access to all transaction and assets in C1 and C2. There is one asset type on the Blockchain T. T1 asset instance is created on C1 and should then be available on C2 for certain changes . Q1) how does T1 get manifested in C2 without being created again ?

richard.holzeis (Thu, 08 Jun 2017 19:49:34 GMT):
@mastersingh24 ok, now with your help I managed to create a channel, but now I am failing on joining a channel. ```root@808e0b478649:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join -b default.block 2017-06-08 19:45:19.482 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts: no such file or directory] 2017-06-08 19:45:19.483 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/crls: no such file or directory] 2017-06-08 19:45:19.483 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.chained-voting.com/users/Admin@org.chained-voting.com/msp/config.yaml: no such file or directory] 2017-06-08 19:45:19.504 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-08 19:45:19.504 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-06-08 19:45:19.505 UTC [grpc] Printf -> DEBU 006 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.20.0.5:52584->172.20.0.2:7051: read: connection reset by peer. 2017-06-08 19:45:19.506 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0ABE070A5C08011A0C08CFD2E6C90510...58A3E2D3662F1A080A000A000A000A00 2017-06-08 19:45:19.506 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: E87936F54ABF8F2FD61D91F32C402A18B462EED43C5A370B3C216A51E289BA16 2017-06-08 19:45:19.507 UTC [grpc] Printf -> DEBU 009 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.20.0.5:52586->172.20.0.2:7051: read: connection reset by peer. Error: proposal failed (err: rpc error: code = 13 desc = transport: write tcp 172.20.0.5:52586->172.20.0.2:7051: write: broken pipe)``` I can't find the issue for the problem. Can you tell me what's the issue here? ```peer0.org.chained-voting.com: container_name: peer0.org.chained-voting.com image: hyperledger/fabric-peer:x86_64-1.0.0-alpha2 environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=darwinamd64_default #- CORE_LOGGING_LEVEL=ERROR - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_ENDORSER_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false # The following setting skips the gossip handshake since we are # are not doing mutual TLS - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_ID=peer0.org.chained-voting.com - CORE_PEER_ADDRESS=peer0.org.chained-voting.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org.chained-voting.com:7051 - CORE_PEER_LOCALMSPID=OrgMSP working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start --peer-defaultchain=false volumes: - /var/run/docker.sock:/host/var/run/docker.sock - ./crypto-config/peerOrganizations/org.chained-voting.com/peers/peer0.org.chained-voting.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/peerOrganizations/org.chained-voting.com/peers/peer0.org.chained-voting.com/tls:/etc/hyperledger/fabric/tls ports: - 7051:7051 - 7053:7053```

yacovm (Thu, 08 Jun 2017 21:41:24 GMT):
@richard.holzeis your TLS flags are missing no?

lbennett (Thu, 08 Jun 2017 23:17:27 GMT):
HI - has anyone run into this error (when trying to archive the bizmodel & bizlogic): Running command `composer archive create -a simple-todolist-network.bna -t dir -n .`/usr/local/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079 else throw err ^ SyntaxError: The keyword 'const' is reserved (17:0) at Parser.pp$4.raise (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2488:13) at Parser.pp$3.parseIdent (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2436:12) at Parser.pp$3.parseExprAtom (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1946:19) at Parser.pp$3.parseExprSubscripts (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1872:19) at Parser.pp$3.parseMaybeUnary (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1849:17) at Parser.pp$3.parseExprOps (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1791:19) at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1774:19) at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1750:19) at Parser.pp$3.parseExpression (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1722:19) at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:777:45)`

mastersingh24 (Thu, 08 Jun 2017 23:32:30 GMT):
@lbennett - moved this to the #composer channel

richard.holzeis (Fri, 09 Jun 2017 04:51:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4MyDNGpHZEAFdwDF9) @yacovm Looking at the script from the getting started example, the TLS flags aren't provided when joining either. However I had the same idea, but it isn't working ...

akdj (Fri, 09 Jun 2017 07:14:40 GMT):
Hi, can you help me again? Now I am using docker 17.03.1-ce with swarm, when I tried to launch docker-compose up, it said : ``` WARNING: The Docker Engine you're using is running in swarm mode. Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node. To deploy your application across the swarm, use `docker stack deploy`. ``` so, I used `docker stack deploy docker_compose.yaml Stack_name` but it seems that also need to change compose yaml file version from v2 to v3. then I added constaints for the placement, and a docker network. then I changed also all peer/orderer/cli services' name, because it don't allow "dot" in service name.. in short, I did all these modifications, however when docker was deploying in swarm or stack..(I don't really know where) I notice that it doesn't create containers with latest version of hyperledger fabric docker images (even if I alreafy pulled them in my machine) it create container with a old version of peer image, the v0.6... And I don't know why, because I never pull this one in my machine by myself.... So what I did it is add latest tag to each image of each services in the docker-compose-cli.yaml and docker-compose-base.yaml and as result : ``` [root@mydomain.com linux-amd64]# docker stack ps hyper ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS z3nmix3gxwvj hyper_peer0.1 hyperledger/fabric-peer:latest machine2.mydomain.com Ready Preparing 2 seconds ago av6ozqwetpqs hyper_peer3.1 hyperledger/fabric-peer:latest machine2.mydomain.com Running Starting 2 seconds ago ymjl2uux26ho hyper_orderer.1 hyperledger/fabric-orderer:latest machine1.mydomain.com Running Starting 2 seconds ago kg3qxksd0gbf hyper_peer2.1 hyperledger/fabric-peer:latest machine1.mydomain.com Running Starting 4 seconds ago j67kmkd7s9x5 hyper_peer1.1 hyperledger/fabric-peer:latest machine2.mydomain.com Running Starting 11 seconds ago pbmde1sf6fzq hyper_orderer.1 hyperledger/fabric-orderer:latest machine2.mydomain.com Shutdown Rejected 9 seconds ago "invalid mount config for type…" xykxt6fzn5k7 hyper_peer0.1 hyperledger/fabric-peer:latest machine1.mydomain.com Shutdown Failed 4 seconds ago "task: non-zero exit (1)" wqa3uwgydwxo hyper_peer3.1 hyperledger/fabric-peer:latest machine2.mydomain.com Shutdown Failed 8 seconds ago "task: non-zero exit (1)" 4pshvkztup8c hyper_peer2.1 hyperledger/fabric-peer:latest machine1.mydomain.com Shutdown Failed 10 seconds ago "task: non-zero exit (1)" huk6n36np5ui hyper_orderer.1 hyperledger/fabric-orderer:latest machine2.mydomain.com Shutdown Rejected 18 seconds ago "invalid mount config for type…" pfekzwa83t25 hyper_peer1.1 hyperledger/fabric-peer:latest machine2.mydomain.com Shutdown Failed 16 seconds ago "task: non-zero exit (1)" magtkp7gxkgh hyper_orderer.1 hyperledger/fabric-orderer:latest machine2.mydomain.com Shutdown Rejected 29 seconds ago "invalid mount config for type…" agqtfcb7u09t hyper_peer3.1 hyperledger/fabric-peer:latest machine2.mydomain.com Shutdown Failed 25 seconds ago "task: non-zero exit (1)" 9bu6l66icyeu hyper_peer0.1 hyperledger/fabric-peer:latest machine1.mydomain.com Shutdown Failed 20 seconds ago "task: non-zero exit (1)" vfj2rcgbt13z hyper_peer2.1 hyperledger/fabric-peer:latest machine1.mydomain.com Shutdown Failed 26 seconds ago "task: non-zero exit (1)" cn5t49rz4rz6 hyper_orderer.1 hyperledger/fabric-orderer:latest machine2.mydomain.com Shutdown Rejected 36 seconds ago "invalid mount config for type…" l9j7bs7ldz5b hyper_peer1.1 hyperledger/fabric-peer:latest machine2.mydomain.com Shutdown Failed 31 seconds ago "task: non-zero exit (1)" sv22qgab0tv5 hyper_peer0.1 hyperledger/fabric-peer:latest machine1.mydomain.com Shutdown Failed 40 seconds ago "task: non-zero exit (1)" yhepbxyc1rzq hyper_cli.1 hyperledger/fabric-peer:latest machine1.mydomain.com Running Running 47 seconds ago ````

guoger (Fri, 09 Jun 2017 08:18:00 GMT):
is `go` supposed to be part of fabric docker images, specifically `fabric-peer`? I feel it's installed in `fabric-baseos`, which is base of `fabric-peer`. but command not found in that container. thx

guoger (Fri, 09 Jun 2017 08:20:14 GMT):
I asked because I'm encountering an issue testing beta, saying `go list: exec not started`. I'm guessing it's trying to run `go list`

SDChoi (Fri, 09 Jun 2017 09:04:07 GMT):
Has joined the channel.

mastersingh24 (Fri, 09 Jun 2017 10:32:48 GMT):
@guoger - just responded to the same question on the mailing list. there's a reason why we use the fabric-tools container in the beta and not fabric-peer: ``` TL;DR - There was a change to more accurately package chaincode which requires that the Go compiler be present on the system. The fabric-peer image does not include the Go compiler but the fabric-tools image does. Take a look at https://jira.hyperledger.org/browse/FAB-4401 and it's parent https://jira.hyperledger.org/browse/FAB-2493. https://jira.hyperledger.org/browse/FAB-2493 is included in the beta (you can find the link to the change log under the beta release here: http://hyperledger-fabric.readthedocs.io/en/latest/releases.html ). The peer image basically only contains fabric-baseos, the peer executable and sample peer configuration files. With the change above, the Go compiler is now required in order to more accurately package the chaincode source. The fabric-tools container is derived from fabric-baseimage which included the Go compiler. ```

guoger (Fri, 09 Jun 2017 10:39:03 GMT):
@mastersingh24 ah, I see. let me try a clean build and see if the error goes away, thx

guoger (Fri, 09 Jun 2017 10:39:03 GMT):
@mastersingh24 ah, I see. let me build that image and try

ArvsIndrarys (Fri, 09 Jun 2017 14:00:24 GMT):
is there any fundamental change between the alpha2 and the beta "release" (tag)?

ArvsIndrarys (Fri, 09 Jun 2017 14:00:24 GMT):
is there any fjjundamental change between the alpha2 and the beta "release" (tag)?

mastersingh24 (Fri, 09 Jun 2017 14:08:05 GMT):
@ArvsIndrarys - there should not be any major breaking changes, but the beta is definitely what you should move to. The change log is here: https://github.com/hyperledger/fabric/blob/master/CHANGELOG.md#v100-beta

ArvsIndrarys (Fri, 09 Jun 2017 14:11:27 GMT):
@mastersingh24 thanks! will arm support will be added in the future (building from source takes a full afternoon on ARM) ? will the alpha3 be the next considered "release" version?

mastersingh24 (Fri, 09 Jun 2017 14:12:51 GMT):
We will go from beta to release candidate(s) to final release. alpha3 is no longer in play

mastersingh24 (Fri, 09 Jun 2017 14:13:28 GMT):
In terms of ARM - what do you actually want to run on ARM? Running a peer might not be the best idea ;)

mastersingh24 (Fri, 09 Jun 2017 14:15:44 GMT):
BUT - if you have figured out the right base image(s), etc happy to work to add them into the build scripts ;)

ArvsIndrarys (Fri, 09 Jun 2017 14:16:22 GMT):
it is considered in my company and it is what I want to setup and benchmark can a rasp support to be a peer, or not wha t does it take, etc... what is the network charge, ... things like that

ArvsIndrarys (Fri, 09 Jun 2017 14:17:01 GMT):
I'm already modifying the scripts so as to be able to run the getting started from scratch

ArvsIndrarys (Fri, 09 Jun 2017 14:17:27 GMT):
thing is, I find gerrit very bad and I'm likely to add my contribution on github

ArvsIndrarys (Fri, 09 Jun 2017 14:19:29 GMT):
the hyperledger community will be able to get it so as to adapt it to their way of processing things I keep it close to the original but the curls to the gerrit/jira repo are not mine to implement

mastersingh24 (Fri, 09 Jun 2017 14:28:33 GMT):
ok - well keep us apprised of your progress and happy to help integrate it into the repo

yacovm (Fri, 09 Jun 2017 14:56:33 GMT):
hmm you can run a fabric peer on arm, @ArvsIndrarys

yacovm (Fri, 09 Jun 2017 14:57:18 GMT):
the problem is that it's not that robust because of memory limitations.

yacovm (Fri, 09 Jun 2017 14:58:03 GMT):
How much memory does the RPI have? the peer needs a couple of hundreds and chaincode containers also take some memory

ArvsIndrarys (Fri, 09 Jun 2017 14:58:23 GMT):
adn there's some tweaking to do in order to a peer to instantiate a chaincode

ArvsIndrarys (Fri, 09 Jun 2017 14:58:23 GMT):
@yacovm and there's some tweaking to do in order to a peer to instantiate a chaincode

ArvsIndrarys (Fri, 09 Jun 2017 14:58:23 GMT):
and there's some tweaking to do in order to a peer to instantiate a chaincode

ArvsIndrarys (Fri, 09 Jun 2017 15:00:16 GMT):
but I got the full getting_started example working on a rasp

durantto (Fri, 09 Jun 2017 20:43:41 GMT):
Has joined the channel.

durantto (Fri, 09 Jun 2017 20:45:06 GMT):
two questions: (1) can you install chaincode directly from a git repo, or do you have to download the go file locally and point to it? (2) I know this is a silly question, but does the term 'artifact/artifacts' have any contextual meaning behind it that might help me understand what they are?

muralisr (Sat, 10 Jun 2017 10:34:48 GMT):
@durantto (1) the chaincode has to be local in the "client" (CLI, SDK, ... etc) which will then package it and install it on the peer (2) 'artifact/artifacts' as used in ... ?

CodeReaper (Sun, 11 Jun 2017 16:26:55 GMT):
im trying to figure out fabric-client (nodejs modules functionalities) Im struggling with the code where client.getUserContext is required to registers or enroll other members and work with chaincode..... client.getUserContext seems to be returning undefined as default. I'm not sure how to initialize the usercontext in the client object. Is it done through CLI?? Can anyone help answer this query...Thanks in advance, I've been struggling for quite a while.

jeffgarratt (Sun, 11 Jun 2017 16:41:28 GMT):
@CodeReaper You may wish to direct this question to #fabric-sdk-node . @jimthematrix may be able to assist you there

CodeReaper (Sun, 11 Jun 2017 16:42:00 GMT):
Ok thank you

jeffgarratt (Sun, 11 Jun 2017 16:42:05 GMT):
yw!

jrezwan (Sun, 11 Jun 2017 17:59:01 GMT):
Has joined the channel.

tennenjl (Sun, 11 Jun 2017 21:27:52 GMT):
Basic question on the default Endorsement Policy. As per the docs it says: "NOTE - the default policy requires one signature from a member of the DEFAULT MSP" Does that mean that the default endorsement policy requires only a single signed (endorsed) response or does this mean that a single signature is required from each endorser that is a member of the DEFAULT MSP? Thanks!

jimthematrix (Mon, 12 Jun 2017 02:40:59 GMT):
@CodeReaper #fabric-sdk-node would be a better channel for your question, but in any case, take a look at how fabric-sdk-node/examples/balance-transfer. basically the client instance needs to have been set a usercontext before you can use it to talk to the fabric

puneetsharma86 (Mon, 12 Jun 2017 10:32:40 GMT):
Has joined the channel.

puneetsharma86 (Mon, 12 Jun 2017 10:36:19 GMT):
I am getting the below given error in Windows 7 using fabric 1.0. Can anyone help me resolving this. after running the query: CHANNEL_NAME=fabric2 TIMEOUT=60000 docker-compose -f docker-compose-cli.yaml up

puneetsharma86 (Mon, 12 Jun 2017 10:37:02 GMT):

Message Attachments

mastersingh24 (Mon, 12 Jun 2017 11:14:19 GMT):
@puneetsharma86 - you should run `./network_setup.sh up` or run `./generateArtifacts.sh` prior to running docker-compose

toddinpal (Mon, 12 Jun 2017 14:15:40 GMT):
Is there a description of how to add a new organization (with its own peers) to an existing Fabric network?

magg (Mon, 12 Jun 2017 14:51:13 GMT):
say i want to modify the default ports... do I need to use the confintxgen tool to regenerate the genesis block? Do i need yo change configtx.yaml?

magg (Mon, 12 Jun 2017 14:51:13 GMT):
say i want to modify the default ports (7050, 7051, etc)... do I need to use the confintxgen tool to regenerate the genesis block? Do i need yo change configtx.yaml?

durantto (Mon, 12 Jun 2017 15:26:45 GMT):
@muralisr http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#manually-generate-the-artifacts

jeffgarratt (Mon, 12 Jun 2017 15:53:30 GMT):
@toddinpal if the organization does NOT exist in the orderer's system channel (i.e. it is not defined in the consortium), then you will first need to have the orderer config admin update the consortium with the new organization. Then channel config admin will need to update the channel with the new organization as well.

dklesev (Mon, 12 Jun 2017 15:57:55 GMT):
@jeffgarratt is there any howto/docs for all the steps?

jeffgarratt (Mon, 12 Jun 2017 15:59:03 GMT):
@dklesev not sure, we can ask @nickgaski to advise or perhaps create a placeholder

dklesev (Mon, 12 Jun 2017 15:59:28 GMT):
would be really nice :thumbsup:

jeffgarratt (Mon, 12 Jun 2017 15:59:36 GMT):
agreed, and understood

dklesev (Mon, 12 Jun 2017 15:59:56 GMT):
it's one of the main questions a lot of users have

dklesev (Mon, 12 Jun 2017 16:00:04 GMT):
me, too :D

jeffgarratt (Mon, 12 Jun 2017 16:01:16 GMT):
@dklesev @nickgaski if the jira item does NOT already exist, will create one and post back here

dklesev (Mon, 12 Jun 2017 16:01:38 GMT):
thx

jeffgarratt (Mon, 12 Jun 2017 16:01:40 GMT):
yw

toddinpal (Mon, 12 Jun 2017 16:40:28 GMT):
@jeffgarratt Thanks, but are there details on how to perform those operations on a running network?

jeffgarratt (Mon, 12 Jun 2017 16:41:31 GMT):
@toddinpal I can add a task to add this to the BDD subsystem asap, which will give you the basis for the mechanisms. Sound good?

toddinpal (Mon, 12 Jun 2017 16:42:19 GMT):
@jeffgarratt Sorry, BDD subsystem?

jeffgarratt (Mon, 12 Jun 2017 16:42:37 GMT):
the behavioral driven design subsystem

jeffgarratt (Mon, 12 Jun 2017 16:42:48 GMT):
used for exploration and definition of the fabric

toddinpal (Mon, 12 Jun 2017 16:42:48 GMT):
Ahh... ok, thanks

jeffgarratt (Mon, 12 Jun 2017 16:43:07 GMT):
do you have a few mins?

nickgaski (Mon, 12 Jun 2017 18:02:19 GMT):
@toddinpal @dklesev - have you guys used the tool yet? https://github.com/hyperledger/fabric/blob/master/examples/configtxupdate/README.md - essentially you use configtxgen as you normally would, then you use the new tool - `configtxlator` - to customize your system genesis block, then you bootstrap. From that point you can unmarshall system and channel protos to JSON, add updates, then convert back to proto, and finally send a config_update call to the ordering service

holocron (Mon, 12 Jun 2017 18:03:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmF2ehbSYBsZQ4nEj) @nickgaski https://chat.hyperledger.org/channel/fabric-quality?msg=rdGqeaoRPdTyMbFTs

nickgaski (Mon, 12 Jun 2017 18:04:58 GMT):
the one area where I'm still a little fuzzy on the particulars (however I know @jeffgarratt can do this with his bdd framework), is how to actually send a CSR for a new entity within an existing org. Say I want to add two new peers to an org that is already defined in the system. How do I get back the correct signing certs for those two peers ?

nickgaski (Mon, 12 Jun 2017 18:05:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kzLxGS5aEXy5txGFP) @holocron - yes, nice overview from Jason.

holocron (Mon, 12 Jun 2017 18:08:25 GMT):
@nickgaski are you using fabric-ca?

nickgaski (Mon, 12 Jun 2017 18:09:22 GMT):
mainly been using cryptogen, which I think is a crutch at this point. Do you simply send a REST call to the appropriate CA to accomplish what I'm asking?

holocron (Mon, 12 Jun 2017 18:12:00 GMT):
anyone feel free to correct me if i'm wrong, but I think you have to do the cert signing outside of cryptogen.. fabric-ca has mechanisms for this https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#explore-the-fabric-ca-cli

nickgaski (Mon, 12 Jun 2017 18:15:00 GMT):
nice, that looks like the ticket. And you're surely right. cryptogen will not accomplish what we're after here, because it generates fresh certs each run

hshimo (Mon, 12 Jun 2017 19:26:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iFNfNLizXacZ2rKLo) @mastersingh24 It was a bug in the chaincode. After I fix the code, it works now. Thank you for your answer! I couldn't have any clue from the error message, I wonder if it's possible to catch the compile error and display it.

dklesev (Mon, 12 Jun 2017 20:40:56 GMT):
@nickgaski @holocron I'll try with configtxlator and fabric-ca (when I have some time). However, I think an appropriate tutorial/howto would be very good to get even more people to use it as actually a lot get confused by this topics

dklesev (Mon, 12 Jun 2017 20:40:56 GMT):
@nickgaski @holocron I'll try with configtxlator and fabric-ca (when I have some time). However, I think an appropriate tutorial/howto would be very good to get even more people to use it as actually a lot get confused by this topics. and thank you a lot!

tsrb (Tue, 13 Jun 2017 07:35:25 GMT):
Has joined the channel.

puneetsharma86 (Tue, 13 Jun 2017 10:11:17 GMT):
@mastersingh24 , I have already run ./network_setup.sh up`.

SotirisAlfonsos (Tue, 13 Jun 2017 11:19:22 GMT):
Hi i am running configtxgen and getting `* 'Organizations[0]' has invalid keys: BCCSP`. Anyone has an idea what might be causing this?

yacovm (Tue, 13 Jun 2017 11:25:35 GMT):
update your configtx.yaml file

yacovm (Tue, 13 Jun 2017 11:25:39 GMT):
@SotirisAlfonsos

SotirisAlfonsos (Tue, 13 Jun 2017 11:27:03 GMT):
I did and now i am trying to create the genesis block. I can not see my error. Did anything change with bccsp in beta?

SotirisAlfonsos (Tue, 13 Jun 2017 11:27:03 GMT):
@yacovm I did and now i am trying to create the genesis block. I can not see my error. Did anything change with bccsp in beta?

toddinpal (Tue, 13 Jun 2017 11:40:26 GMT):
The current docs say the behave tests must be run in the Vagrant devenv. Is that really true and if so why?

pd93 (Tue, 13 Jun 2017 12:01:34 GMT):
@SotirisAlfonsos The BCCSP section in not required in configtx.yaml and has been removed https://jira.hyperledger.org/browse/FAB-4157

pd93 (Tue, 13 Jun 2017 12:01:34 GMT):
@SotirisAlfonsos The BCCSP section was not required in configtx.yaml and has been removed https://jira.hyperledger.org/browse/FAB-4157

pd93 (Tue, 13 Jun 2017 12:03:09 GMT):
@toddinpal I was running the behave tests in alpha2 natively, but I'm getting errors during instantiation on the beta. Not sure why :( In priciple though. You should be able to run them natively with no problem

toddinpal (Tue, 13 Jun 2017 12:11:22 GMT):
@pd93 Just did a pull and clean build, and when I try the behave tests they fail very early with: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/behave/model.py", line 1456, in run match.run(runner.context) File "/usr/lib/python2.7/site-packages/behave/model.py", line 1903, in run self.func(context, *args, **kwargs) File "steps/bootstrap_impl.py", line 37, in step_impl nodeAdminTuple = directory.registerOrdererAdminTuple(row['User'], row['Orderer'], row['Organization']) File "/home/tlittle/blockchain/src/github.com/hyperledger/fabric/bddtests/steps/bootstrap_util.py", line 9, in registerOrdererAdminTuple # Unless required by applicable law or agreed to in writing, software File "/usr/lib/python2.7/site-packages/b3j0f/aop/joinpoint/core.py", line 319, in start result = self.proceed() File "/usr/lib/python2.7/site-packages/b3j0f/aop/joinpoint/core.py", line 338, in proceed result = advice(self) File "/home/tlittle/blockchain/src/github.com/hyperledger/fabric/bddtests/steps/docgen.py", line 214, in registerNamedNodeAdminTupleAdvice namedNodeAdminTuple = joinpoint.proceed() File "/usr/lib/python2.7/site-packages/b3j0f/aop/joinpoint/core.py", line 334, in proceed result = self.target(*self.args, **self.kwargs) File "/home/tlittle/blockchain/src/github.com/hyperledger/fabric/bddtests/steps/bootstrap_util.py", line 354, in registerOrdererAdminTuple store = crypto.X509Store() AttributeError: 'module' object has no attribute 'X509Store'

SotirisAlfonsos (Tue, 13 Jun 2017 12:11:24 GMT):
@pd93 Aah thanks a lot. That was the issue.

pd93 (Tue, 13 Jun 2017 12:12:40 GMT):
@toddinpal Have you followed the instructions here? https://github.com/hyperledger/fabric/tree/master/bddtests and made sure that the peer binary is in your PATH

toddinpal (Tue, 13 Jun 2017 12:14:06 GMT):
@pd93 No, I was following the instructions here: https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build.html#running-behave-bdd-tests

pd93 (Tue, 13 Jun 2017 12:17:14 GMT):
@toddinpal I've never used those instructions before :P

pd93 (Tue, 13 Jun 2017 12:17:41 GMT):
Generally I think Vagrant is being phased out..

pd93 (Tue, 13 Jun 2017 12:18:24 GMT):
The ones I send definitely work on native with alpha2. I have an issue on beta.. but this is likely something wrong with my setup

toddinpal (Tue, 13 Jun 2017 12:19:57 GMT):
@pd93 Just set up according to the instructions in github with the virtualenv and get the same failure

pd93 (Tue, 13 Jun 2017 12:20:50 GMT):
@toddinpal peer binary is definitely in your PATH?

toddinpal (Tue, 13 Jun 2017 12:21:56 GMT):
yup

pd93 (Tue, 13 Jun 2017 12:23:07 GMT):
@toddinpal Ok, well I'm far from an expert at this. I suggest asking @jeffgarratt when he comes online. Might not be for a couple of hours though

toddinpal (Tue, 13 Jun 2017 12:26:37 GMT):
yeah, I'll ask Jeff... This used to work, but I wiped my environment a month or so ago and now it's no longer working

toddinpal (Tue, 13 Jun 2017 12:26:41 GMT):
Thanks

pd93 (Tue, 13 Jun 2017 12:35:06 GMT):
No problem. Like I said, I'm also having issues with it. I seem to get a load of chaincode errors out during instantiation and it's failing to build my chaincode container. I'm on a clean fabric v1-beta repository though. I have no idea what's causing it

magg (Tue, 13 Jun 2017 13:19:41 GMT):
```peer0.org2.example.com | 2017-06-13 13:16:26.098 UTC [ConnProducer] NewConnection -> ERRO 00d Failed connecting to orderer:7050 , error: grpc: timed out when dialing peer0.org2.example.com | 2017-06-13 13:16:26.098 UTC [deliveryClient] connect -> ERRO 00e Failed obtaining connection: Could not connect to any of the endpoints: [orderer:7050] ``` I keep getting this when I try changing the ports in fabric 1.0... I don't think it is an issue with the ports defined in docker-compose files

jeffgarratt (Tue, 13 Jun 2017 13:51:38 GMT):
@toddinpal this looks like you have perhaps a suspect PyOpenSSL module installation

toddinpal (Tue, 13 Jun 2017 13:53:06 GMT):
pyOpenSSL (17.0.0)

toddinpal (Tue, 13 Jun 2017 13:54:39 GMT):
Trying it all in a fresh Vagrant setup

jeffgarratt (Tue, 13 Jun 2017 13:54:47 GMT):
@toddinpal it looks like the lower level crypto libs

jeffgarratt (Tue, 13 Jun 2017 13:54:57 GMT):
you just set this up?

toddinpal (Tue, 13 Jun 2017 13:55:37 GMT):
Outside of Vagrant, I had things working a month or two ago... now that I'm back to it, I updated to the last sources, did a build, and then tried the behave tests

toddinpal (Tue, 13 Jun 2017 13:56:05 GMT):
Running on RHEL, so the setup is a little tricky

toddinpal (Tue, 13 Jun 2017 13:56:33 GMT):
Also trying to learn behave and python... :-)

toddinpal (Tue, 13 Jun 2017 13:58:09 GMT):
Hmmm... fresh Vagrant setup fails: Running behave tests Exception ImportError: No module named sha3 Traceback (most recent call last): File "/usr/local/bin/behave", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/behave/__main__.py", line 109, in main failed = runner.run() File "/usr/local/lib/python2.7/dist-packages/behave/runner.py", line 672, in run return self.run_with_paths() File "/usr/local/lib/python2.7/dist-packages/behave/runner.py", line 677, in run_with_paths self.load_hooks() File "/usr/local/lib/python2.7/dist-packages/behave/runner.py", line 631, in load_hooks exec_file(hooks_path, self.hooks) File "/usr/local/lib/python2.7/dist-packages/behave/runner.py", line 304, in exec_file exec(code, globals, locals) File "environment.py", line 8, in from steps.docgen import DocumentGenerator File "/opt/gopath/src/github.com/hyperledger/fabric/bddtests/steps/docgen.py", line 30, in from bootstrap_util import getDirectory File "/opt/gopath/src/github.com/hyperledger/fabric/bddtests/steps/bootstrap_util.py", line 21, in import sha3 ImportError: No module named sha3 Makefile:174: recipe for target 'behave' failed

toddinpal (Tue, 13 Jun 2017 14:01:43 GMT):
Interesting... in creating the Vagrant VM, I got this: Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-65L5ad/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpbtbfripip-wheel- --python-tag cp27: ==> default: c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory ==> default: compilation terminated. ==> default: Traceback (most recent call last): ==> default: File "", line 1, in ==> default: File "/tmp/pip-build-65L5ad/cryptography/setup.py", line 321, in ==> default: **keywords_with_side_effects(sys.argv) ==> default: File "/usr/lib/python2.7/distutils/core.py", line 111, in setup ==> default: _setup_distribution = dist = klass(attrs) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 269, in __init__ ==> default: self.fetch_build_eggs(attrs['setup_requires']) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs ==> default: replace_conflicting=True, ==> default: File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 826, in resolve ==> default: dist = best[req.key] = env.best_match(req, ws, installer) ==> default: File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1092, in best_match ==> default: return self.obtain(req, installer) ==> default: File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1104, in obtain ==> default: return installer(requirement) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 380, in fetch_build_egg ==> default: return cmd.easy_install(req) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 663, in easy_install ==> default: return self.install_item(spec, dist.location, tmpdir, deps) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 693, in install_item ==> default: dists = self.install_eggs(spec, download, tmpdir) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 873, in install_eggs ==> default: return self.build_and_install(setup_script, setup_base) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1101, in build_and_install ==> default: self.run_setup(setup_script, setup_base, args) ==> default: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1089, in run_setup ==> default: raise DistutilsError("Setup script exited with %s" % (v.args[0],)) ==> default: distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ==> default: ==> default: ---------------------------------------- ==> default: Failed building wheel for cryptography

mvaz (Tue, 13 Jun 2017 15:05:30 GMT):
Has joined the channel.

jeffgarratt (Tue, 13 Jun 2017 16:39:36 GMT):
@toddinpal did you follow the steps here => https://github.com/hyperledger/fabric/tree/master/bddtests#welcome-to-the-behavioral-driven-development-bdd-subsytem-for-fabric

toddinpal (Tue, 13 Jun 2017 16:42:21 GMT):
@jeffgarratt I've tried that, and the directions given in the "docs". Currently I'm trying to get this working in Vagrant and the above is the result of trying to create a new Vagrant VM. I'm guessing the above problems are perhaps the root of my problems, although I would have thought Vagrant would shield me from all the dependency hell issues

jeffgarratt (Tue, 13 Jun 2017 16:42:59 GMT):
is the VM running?

toddinpal (Tue, 13 Jun 2017 16:49:13 GMT):
It is now, and I'll try in the Vagrant VM the instructions you suggested

toddinpal (Tue, 13 Jun 2017 16:51:47 GMT):
Even in the VM I get basically the same error: Building wheels for collected packages: cryptography, pycparser Running setup.py bdist_wheel for cryptography ... error Complete output from command /home/ubuntu/Envs/behave_venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ztiTzq/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpHlrLO8pip-wheel- --python-tag cp27: c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory compilation terminated. Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-ztiTzq/cryptography/setup.py", line 321, in **keywords_with_side_effects(sys.argv) File "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 320, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 377, in fetch_build_eggs replace_conflicting=True, File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 852, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1124, in best_match return self.obtain(req, installer) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1136, in obtain return installer(requirement) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 445, in fetch_build_egg return cmd.easy_install(req) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 880, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1119, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/ubuntu/Envs/behave_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1107, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for cryptography

holocron (Tue, 13 Jun 2017 17:16:03 GMT):
I have some questions regarding enrollment to a fabric-ca. I'm walking through the fabric-sdk-node/example/balance-transfer application and can see how the fabric-ca servers are bootstrapped with an id/pw at start up. I also see how the certfiles and keyfiles are passed in through docker. I'm curious about is in the examples one can send enrollment requests for user "Jim" in org1 and user "Barry" in org2 - when I do this, I get back both an enrollment token and a secret but if I enroll some other user, say "Vance", I only get back a token. I'm wondering about where the Jim and Barry users got defined, and if I enroll any random user in an org, then it seems I'm able to create channels and such with the provided token. This is normal?

holocron (Tue, 13 Jun 2017 17:16:03 GMT):
I have some questions regarding enrollment to a fabric-ca. I'm walking through the fabric-sdk-node/example/balance-transfer application and can see how the fabric-ca servers are bootstrapped with an id/pw at start up. I also see how the certfiles and keyfiles are passed in through docker. I'm curious about is in the examples one can send enrollment requests for user "Jim" in org1 and user "Barry" in org2 -- it seems I can enroll any random user, say "Vance" and get back both an enrollment secret and token to further manipulate the org. Is this because the balance transfer is using the bootstrap credentials somehow?

holocron (Tue, 13 Jun 2017 17:25:13 GMT):
Answering my own question - yes this seems to be the case ><

kayadhami (Tue, 13 Jun 2017 19:29:32 GMT):
Has joined the channel.

kayadhami (Tue, 13 Jun 2017 19:34:23 GMT):
Hello, I'm getting this kind of error every time I try to execute the command ./network_setup.sh up

holocron (Tue, 13 Jun 2017 19:37:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fnhZ649s3Sk7sk9pZ) @kayadhami what kind of error?

kayadhami (Tue, 13 Jun 2017 19:37:59 GMT):

Message Attachments

holocron (Tue, 13 Jun 2017 19:40:26 GMT):
@kayadhami what happens when you run `./generateArtifacts.sh` ?

kayadhami (Tue, 13 Jun 2017 19:42:39 GMT):

Message Attachments

MikeMayori (Tue, 13 Jun 2017 19:47:16 GMT):
Has joined the channel.

holocron (Tue, 13 Jun 2017 19:57:14 GMT):
@kayadhami and if you run the `./network_setup.sh up` again?

kayadhami (Tue, 13 Jun 2017 20:04:30 GMT):
@holocron its all good now, I put the network down and then put it up and its working now.

holocron (Tue, 13 Jun 2017 20:04:48 GMT):
:thumbup:

richard.holzeis (Tue, 13 Jun 2017 21:03:18 GMT):
hi, I am trying to setup a fabric network aligned with the getting started guidelines which worked perfectly. But after making some adaptations to my use case, I am not able to join a channel anymore. ```2017-06-13 20:52:02.827 UTC [grpc] Printf -> DEBU 008 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. Error: proposal failed (err: rpc error: code = 13 desc = transport is closing)``` I am looking now for days and I cannot find the misconfiguration. I would appreciate any help on that topic.

jeffgarratt (Tue, 13 Jun 2017 21:05:38 GMT):
@richard.holzeis perhaps a TLS config issue?

jeffgarratt (Tue, 13 Jun 2017 21:05:59 GMT):
meaning, do you have TLS on for some portion of system, and not others?

jeffgarratt (Tue, 13 Jun 2017 21:06:43 GMT):
you will also need it from the CLI if this is how you are invoking

richard.holzeis (Tue, 13 Jun 2017 21:09:19 GMT):
@jeffgarratt thank you...! I've always overlooked this little bit of configuration `- CORE_PEER_TLS_ENABLED=false`:dizzy_face:

jeffgarratt (Tue, 13 Jun 2017 21:09:36 GMT):
@richard.holzeis perfect!!

naruto1982 (Wed, 14 Jun 2017 02:06:56 GMT):
Has joined the channel.

naruto1982 (Wed, 14 Jun 2017 02:09:41 GMT):
hello, I am an software engineer working on Fabric. I met a problem when executing the chain code in Java. The error says : the chain code is working in progress. Would someone help me to solve this issue ? And how should I run the chain code in diverse programming languages ? thanks

tsrb (Wed, 14 Jun 2017 03:17:52 GMT):
Hi, I'm building Fabric. But `make behave` is failed at ` And user "configAdminOrdererOrg0" using cert alias "config-admin-cert" connects to deliver function on orderer "orderer0" ` Does anyone knows this issue?

tsrb (Wed, 14 Jun 2017 03:17:52 GMT):
Hi, I'm building Fabric. But `make behave` is failed at `And user "configAdminOrdererOrg0" using cert alias "config-admin-cert" connects to deliver function on orderer "orderer0" ` Does anyone know this issue?

tsrb (Wed, 14 Jun 2017 03:17:52 GMT):
Hi, I'm building Fabric. But `make behave` is failed at `And user \"configAdminOrdererOrg0\" using cert alias \"config-admin-cert\" connects to deliver function on orderer \"orderer0\"` Does anyone know this issue?

tsrb (Wed, 14 Jun 2017 03:17:52 GMT):
Hi, I'm building Fabric. But `make behave` is failed at `And user "configAdminOrdererOrg0" using cert alias "config-admin-cert" connects to deliver function on orderer "orderer0\"` Does anyone know this issue?

tsrb (Wed, 14 Jun 2017 03:17:52 GMT):
Hi, I'm building Fabric. But `make behave` is failed at `And user "configAdminOrdererOrg0" using cert alias "config-admin-cert" connects to deliver function on orderer "orderer0"` Does anyone know this issue?

tsrb (Wed, 14 Jun 2017 03:18:06 GMT):

Message Attachments

terrypst (Wed, 14 Jun 2017 07:49:29 GMT):
Hello guys ! I'm using Hyperledger Fabric v1. I'm not sure to understand where the data is stored after invoking a smart-contract and what is the database by default. Is it LevelDB ? I looked into the peer at 'var/hyperledger/production/ledgerData/stateLeveldb'. I'm using Hyperledger Fabric v1 and i'm trying to make rich queries using CouchDB, but i don't know how to put the data into couchDB after invoking the smart-contract. I have my couchDB image which is used to store the keys (like the example of the Todo-list IBM Hyperledger app) but not the data used for transaction (or generated) through the smart-contract. Is there anyone who tried to do this ? Thanks !

akdj (Wed, 14 Jun 2017 07:52:57 GMT):
by defautl yes it is levelDB and data of peer is stored in /var/hyperledger/production of peer container

akdj (Wed, 14 Jun 2017 07:53:01 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#a-note-on-data-persistence

akdj (Wed, 14 Jun 2017 07:53:02 GMT):
@terrypst

akdj (Wed, 14 Jun 2017 07:54:15 GMT):
if you want to use json structure data asset, need to switch to couchdb

terrypst (Wed, 14 Jun 2017 07:55:52 GMT):
Thanks , i will have a try with this getting started !

akdj (Wed, 14 Jun 2017 07:57:23 GMT):
no problem :)

akdj (Wed, 14 Jun 2017 08:17:52 GMT):
Hello, just a little question, previously I tried to make hyperledger fabric working on a multi host environment, I was advised to use docker swarm for creating a cluster of machines. Now I succeed to make my hyperdlger fabric running with swarm. But a question come to me, Why I need to use a swarm cluser ? Can I not only use docker images and containers ? Because I need to make automate the process of adding a new machine with new Org/peer/orderer/ca to my system, but with swarm, I have to configure this new machine beforehand to my swarm cluster... I am thinking it can possible be more easy to make it automate without swarm? So why I need to use a swarm cluser ? Can I not only use docker images and containers ? (ps : sorry for my bad english skill... I hope someone can understand my question and answered me)

shanthi0547 (Wed, 14 Jun 2017 11:28:40 GMT):
hi

shanthi0547 (Wed, 14 Jun 2017 11:28:45 GMT):
make is not working on windows

shanthi0547 (Wed, 14 Jun 2017 11:28:49 GMT):
alternative

shanthi0547 (Wed, 14 Jun 2017 11:28:55 GMT):
Please response

shanthi0547 (Wed, 14 Jun 2017 11:28:59 GMT):
respond**

gormand (Wed, 14 Jun 2017 11:47:53 GMT):
e2e

shanthi0547 (Wed, 14 Jun 2017 11:52:30 GMT):
curl -SSL https://goo.gl/LQkuoh |bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 273 0 273 0 0 515 0 --:--:-- --:--:-- --:--:-- 530bash: line 1: syntax error near unexpected token `newline' bash: line 1: `'

shanthi0547 (Wed, 14 Jun 2017 11:52:40 GMT):
suggestion s please

muralisr (Wed, 14 Jun 2017 12:07:26 GMT):
@shanthi0547 `make is not working on windows` ... hoping @lehors or @rameshthoomu might have suggestions here..

toddinpal (Wed, 14 Jun 2017 12:26:11 GMT):
@akdj Well you don't need swarm as it is simply an orchestration tool, but presumably it makes life easier. Once a machine/VM is set up as a swarm worker, you can now easily deploy docker containers to it from a single location you don't have to log into each worker machine to perform steps. As well you have a single place to describe your entire application, i .e., you swarm-compose.yaml file.

narayanprusty (Wed, 14 Jun 2017 12:38:27 GMT):
Is it possible to achieve property level privacy in Fabric 1.0. For example: If I have a chaincode representing a tenancy contract. I want only tenant & lessor to see all the details, banks to see only payment terms and actual owner to see everything except payment terms. How can I achieve this in Fabric 1.0. If I use channels then I will need to deploy two different contracts and the total number of channels I can create is limited to the network performance. Channels are not meant to be used to achieve property level privacy. I don't want to do it off-chain and also don't want to do on-chain encryption as I cannot apply smart operations on it. What is the best solution for achieve this?

pd93 (Wed, 14 Jun 2017 13:02:36 GMT):
@narayanprusty Could you not do this at the chaincode level? Just make a member for each level of access you want to grant and then only return the corresponding properties from the chaincode depending on which member type queried/invoked the chaincode. I can't see how channels would help in your case as they require separate ledgers.

terrypst (Wed, 14 Jun 2017 13:06:40 GMT):
@akdj Hi bro, did you test the getting started you linked me ? I'm facing a problem with one command line when i make the instantiate for chaincode, everything worked well for you ? (Haven't answer for your problem sorry, to complicate for me ahah )

akdj (Wed, 14 Jun 2017 13:08:01 GMT):
@terrypst What is the problem exactly?

terrypst (Wed, 14 Jun 2017 13:11:04 GMT):
@akdj This command : peer chaincode install -o orderer.example.com:7050 -n marbles -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/marbles02 works well The next one : peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem -C $CHANNEL_NAME -n marbles -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/marbles02 -c '{"Args":["init"]}' -P "OR ('Org0MSP.member','Org1MSP.member')" gives me the following error : Error: Error getting broadcast client: Error connecting to orderer.example.com:7050 due to x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")

Gerard9494 (Wed, 14 Jun 2017 13:12:37 GMT):
Hey! Is there any tutorial which explains how to add new users to the blockchain? I've tried to use the register function from FabricCAClientImpl.js but I don't find out the way to use it.

Gerard9494 (Wed, 14 Jun 2017 13:12:37 GMT):
Hey! Is there any tutorial which explains how to add new users to the blockchain? I've tried to use the register function from FabricCAClientImpl.js but I don't find out the way to use it. Many thanks in advance

terrypst (Wed, 14 Jun 2017 13:20:35 GMT):
@akdj Maybe i forgot one command line, but i don't see which one

akdj (Wed, 14 Jun 2017 13:22:50 GMT):
hmmm @terrypst it seems there is something wrong with orderer cert...

akdj (Wed, 14 Jun 2017 13:23:07 GMT):
did you check all env variables?

akdj (Wed, 14 Jun 2017 13:25:06 GMT):
with which peer you tried to instantiate? @terrypst

terrypst (Wed, 14 Jun 2017 13:26:00 GMT):
@akdj i'm trying to instantiate on the peer orderer.example.com:7050

terrypst (Wed, 14 Jun 2017 13:26:27 GMT):
@akdj i executed sudo docker exec -it cli bash

terrypst (Wed, 14 Jun 2017 13:26:44 GMT):
and then installing chaincode and now instantiate

narayanprusty (Wed, 14 Jun 2017 13:27:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ovs8b2Gc5hqZMJGcQ) @pd93 What you mentioned is chaincode level permissioning not privacy. Even if query transaction will not return the information but the node will contain it. Reverse engineering can be applied to read the data.

akdj (Wed, 14 Jun 2017 13:28:18 GMT):
hmmm no, orderer is not peer @terrypst

terrypst (Wed, 14 Jun 2017 13:29:26 GMT):
@akdj My environment variables are : CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt

terrypst (Wed, 14 Jun 2017 13:30:06 GMT):
@akdj like in the getting started, i didn't change anything

terrypst (Wed, 14 Jun 2017 13:30:47 GMT):
@akdj Yes sorry, the peer used corresponds to the CORE_PEER_ADDRESS ?

akdj (Wed, 14 Jun 2017 13:31:46 GMT):
yes it is

akdj (Wed, 14 Jun 2017 13:33:55 GMT):
the crypto materials are created manually?

akdj (Wed, 14 Jun 2017 13:34:19 GMT):
what is the logs of peer0 and orderer?

akdj (Wed, 14 Jun 2017 13:34:52 GMT):
@terrypst you can checked it with `docker logs $CONTAINER_ID`

terrypst (Wed, 14 Jun 2017 13:40:55 GMT):
@akdj It works, i had to keep the ./network_setup.sh working, i think this solved the problem, that's stupid

akdj (Wed, 14 Jun 2017 13:42:13 GMT):
keep it working? @terrypst Normally you can stop it with ctrl+c

terrypst (Wed, 14 Jun 2017 13:43:18 GMT):
@akdj i don't know why, maybe it wasn't the problem in fact aha, but now it works, i'll continue this tutorial to see if i can integrate couchDB in my own project

akdj (Wed, 14 Jun 2017 13:43:33 GMT):
ok

jansony1 (Thu, 15 Jun 2017 01:16:06 GMT):
how to let docker container() created by docker-compose0-cli.yaml file using default bridge network, rather than the "e2ecli_default" network? Any idea would be appreciate

jansony1 (Thu, 15 Jun 2017 01:16:32 GMT):
Hi all how to let docker container() created by docker-compose0-cli.yaml file using default bridge network, rather than the "e2ecli_default" network? Any idea would be appreciate

alexliu (Thu, 15 Jun 2017 03:21:11 GMT):
= = why `./network_setup.sh down` command remove all of my containers even some has no relationship with fabric?

alexliu (Thu, 15 Jun 2017 03:28:45 GMT):
oh `clearContainers` function in shell did it...

dstarina (Thu, 15 Jun 2017 08:03:08 GMT):
Has joined the channel.

ArvsIndrarys (Thu, 15 Jun 2017 08:04:53 GMT):
@here Anyone knows what the configtxlator does? I see the binary but I don't know where it is executed...

pd93 (Thu, 15 Jun 2017 08:06:27 GMT):
@ArvsIndrarys https://github.com/hyperledger/fabric/tree/master/examples/configtxupdate

ArvsIndrarys (Thu, 15 Jun 2017 08:07:11 GMT):
@pd93 Thanks !

dstarina (Thu, 15 Jun 2017 08:52:30 GMT):
I have followed the Getting started guide to set up a network (2 organizations, 4 peers). Now I want to add another organization & peer, which would be running on a separate physical machine. How would I go about doing that, can you link me to the right document to do that?

magg (Thu, 15 Jun 2017 09:31:21 GMT):
hello guys, could you provide the Dockerfile for this container? https://hub.docker.com/r/hyperledger/fabric-tools

kaiho.fukuch (Thu, 15 Jun 2017 09:34:35 GMT):
Has joined the channel.

shanthi0547 (Thu, 15 Jun 2017 09:45:54 GMT):
windows?

shanthi0547 (Thu, 15 Jun 2017 09:46:10 GMT):
any body worked on windows?

shanthi0547 (Thu, 15 Jun 2017 09:46:23 GMT):
make "cmd not foubd"

shanthi0547 (Thu, 15 Jun 2017 10:15:54 GMT):

Message Attachments

ArvsIndrarys (Thu, 15 Jun 2017 10:55:28 GMT):
@here Hi all ! Can someone help? When I start the orderer container (getting_started example), I get the following error : ```

ArvsIndrarys (Thu, 15 Jun 2017 10:55:28 GMT):
@here Hi all ! Can someone help? When I start the orderer container (getting_started example), I get the following error : ``` orderer.example.com | 2017-06-15 10:39:06.917 UTC [orderer/main] main -> INFO 001 Starting orderer: orderer.example.com | Version: 1.0.0-beta orderer.example.com | Go version: go1.7.5 orderer.example.com | OS/Arch: linux/arm orderer.example.com | 2017-06-15 10:39:06.982 UTC [orderer/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 1 error(s) decoding: orderer.example.com | orderer.example.com | * '' has invalid keys: genesis, sbftlocal orderer.example.com | panic: Error unmarshaling config into struct:1 error(s) decoding: orderer.example.com | orderer.example.com | * '' has invalid keys: genesis, sbftlocal orderer.example.com | orderer.example.com | goroutine 1 [running]: orderer.example.com | panic(0x6dbe80, 0x571a8d10) orderer.example.com | /opt/go/src/runtime/panic.go:500 +0x33c orderer.example.com | github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0x5713ca00, 0x571a4920, 0x2, 0x2) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xa8 orderer.example.com | github.com/hyperledger/fabric/orderer/localconfig.Load(0x5713d460) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/localconfig/config.go:182 +0x60c orderer.example.com | main.main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:69 +0x220 orderer.example.com | 2017-06-15 10:50:55.841 UTC [orderer/main] main -> INFO 001 Starting orderer: orderer.example.com | Version: 1.0.0-beta orderer.example.com | Go version: go1.7.5 orderer.example.com | OS/Arch: linux/arm orderer.example.com | 2017-06-15 10:50:55.915 UTC [orderer/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 1 error(s) decoding: orderer.example.com | orderer.example.com | * '' has invalid keys: genesis, sbftlocal orderer.example.com | panic: Error unmarshaling config into struct:1 error(s) decoding: orderer.example.com | orderer.example.com | * '' has invalid keys: genesis, sbftlocal orderer.example.com | orderer.example.com | goroutine 1 [running]: orderer.example.com | panic(0x6dbe80, 0x5713ec58) orderer.example.com | /opt/go/src/runtime/panic.go:500 +0x33c orderer.example.com | github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0x570de5e0, 0x5713c8c0, 0x2, 0x2) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xa8 orderer.example.com | github.com/hyperledger/fabric/orderer/localconfig.Load(0x570df040) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/localconfig/config.go:182 +0x60c orderer.example.com | main.main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:69 +0x220 orderer.example.com exited with code 2 ```

ArvsIndrarys (Thu, 15 Jun 2017 10:56:46 GMT):
I don't know where genesis and sbftlocal are configured :/

glotov (Thu, 15 Jun 2017 11:24:48 GMT):
@ArvsIndrarys, are you running on ARM? Someone yesterday told here or the neighboring channel, he made a working example on ARM.

glotov (Thu, 15 Jun 2017 11:26:41 GMT):
ah, it was you, sorry :)

yacovm (Thu, 15 Jun 2017 11:31:00 GMT):
well the reason for the error

yacovm (Thu, 15 Jun 2017 11:31:05 GMT):
is that you need to update your orderer.yaml

yacovm (Thu, 15 Jun 2017 11:31:14 GMT):
it has no sBFT anymore

ArvsIndrarys (Thu, 15 Jun 2017 11:34:15 GMT):
[FAB-4185] remove sbft package in the hyperledger/fabric guthub

ArvsIndrarys (Thu, 15 Jun 2017 11:34:28 GMT):
tag 1.0.0-beta

ArvsIndrarys (Thu, 15 Jun 2017 11:36:20 GMT):
@yacovm apparently is has been removed for a reason :/ https://github.com/hyperledger/fabric/tree/v1.0.0-beta/sampleconfig , there's a correction with [FAB-4185] remove sbft package on orderer.yaml

yacovm (Thu, 15 Jun 2017 11:36:33 GMT):
I know

ArvsIndrarys (Thu, 15 Jun 2017 11:39:39 GMT):
@yacovm do you know why? Or why is it asking it even though all my images (docker) are up-to-date (1.0.0-beta). I should have encountered the same problem while testing on ubuntu if it was normal I think

yacovm (Thu, 15 Jun 2017 11:40:07 GMT):
why it was removed? because BFT is not for v1.0

yacovm (Thu, 15 Jun 2017 11:40:13 GMT):
not sure about the docker image though

ArvsIndrarys (Thu, 15 Jun 2017 11:40:59 GMT):
@yacovm I just built it from the 1.0.0 beta tag, I'm quite sure of it

yacovm (Thu, 15 Jun 2017 11:42:18 GMT):
ok

CodeReaper (Thu, 15 Jun 2017 11:59:36 GMT):
Can anyone suggest how I can test my chaincode?? 0.6 allowed me to check them locally...but with the changes like pb object Im having trouble to test it locally

muralisr (Thu, 15 Jun 2017 12:05:18 GMT):
@CodeReaper docs/source/peer-chaincode-devmode.rst describes "devmode" where you can run the chaincode from command line and test

CodeReaper (Thu, 15 Jun 2017 12:12:05 GMT):
Will look into it thanks :)

leoleo (Thu, 15 Jun 2017 12:15:11 GMT):
Has joined the channel.

ArvsIndrarys (Thu, 15 Jun 2017 12:19:14 GMT):
@yacovm Thanks a lot ! I managed to get the 1.0.0-beta version working on ARM too now ! I'm updating the github and check the changes to make for gerrit

shanthi0547 (Thu, 15 Jun 2017 13:33:09 GMT):
@mastersingh24 hi

mastersingh24 (Thu, 15 Jun 2017 13:33:28 GMT):
hey

shanthi0547 (Thu, 15 Jun 2017 13:33:49 GMT):
i am trying to setup v1.0 in windows machine

shanthi0547 (Thu, 15 Jun 2017 13:33:55 GMT):
can you help me @mastersingh24

shanthi0547 (Thu, 15 Jun 2017 13:34:09 GMT):
i am badly stuck here from long back.

mastersingh24 (Thu, 15 Jun 2017 13:35:06 GMT):
Which version of Windows?

shanthi0547 (Thu, 15 Jun 2017 13:35:13 GMT):
windows 7

mastersingh24 (Thu, 15 Jun 2017 13:36:16 GMT):
And you've got the latest version of Docker Toolbox installed?

shanthi0547 (Thu, 15 Jun 2017 13:36:28 GMT):
yes

shanthi0547 (Thu, 15 Jun 2017 13:37:08 GMT):
Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Fri May 5 15:36:11 2017 OS/Arch: windows/amd64 error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

shanthi0547 (Thu, 15 Jun 2017 13:38:42 GMT):
above is the request for docker version command

mastersingh24 (Thu, 15 Jun 2017 13:45:19 GMT):
ok - that looks good - where are you getting stuck?

shanthi0547 (Thu, 15 Jun 2017 13:45:51 GMT):
i am trying to follow

shanthi0547 (Thu, 15 Jun 2017 13:45:53 GMT):
https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst#id1

shanthi0547 (Thu, 15 Jun 2017 13:45:59 GMT):
this doc

shanthi0547 (Thu, 15 Jun 2017 13:46:12 GMT):
make is "command not found"

shanthi0547 (Thu, 15 Jun 2017 13:47:42 GMT):
as make is not working, I switchd to https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#

shanthi0547 (Thu, 15 Jun 2017 13:48:32 GMT):
i am stuck at Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found ERROR !!!! Unable to pull the images

shanthi0547 (Thu, 15 Jun 2017 13:48:54 GMT):
while ./network_setup.sh up channel547 60

shanthi0547 (Thu, 15 Jun 2017 13:49:08 GMT):
Please suggest

mastersingh24 (Thu, 15 Jun 2017 13:51:45 GMT):
Did you run the download script: http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#download-the-artifacts-and-binaries-pull-the-docker-images

mastersingh24 (Thu, 15 Jun 2017 13:52:04 GMT):
the `curl -sSL https://goo.gl/LQkuoh | bash` part

shanthi0547 (Thu, 15 Jun 2017 13:52:11 GMT):
yes

shanthi0547 (Thu, 15 Jun 2017 13:52:14 GMT):
coorect

mastersingh24 (Thu, 15 Jun 2017 13:56:09 GMT):
what is the output of `docker images`

shanthi0547 (Thu, 15 Jun 2017 13:57:04 GMT):
REPOSITORY TAG IMAGE ID CREATED SIZE dev-vp1-ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 latest 9553ad7df231 27 hours ago 1.47GB dev-vp3-ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 latest 7b1345ea4299 27 hours ago 1.47GB dev-vp0-ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 latest 9d7fdba9528b 27 hours ago 1.47GB dev-vp2-ee5b24a1f17c356dd5f6e37307922e39ddba12e5d2e203ed93401d7d05eb0dd194fb9070549c5dc31eb63f4e654dbd5a1d86cbb30c48e3ab1812590cd0f78539 latest 60ef5c2857e4 27 hours ago 1.47GB ibmblockchain/fabric-membersrvc x86_64-0.6.1-preview b3654d32e4f9 8 months ago 1.42GB hyperledger/fabric-baseimage latest 21cb00fb27f4 8 months ago 1.42GB ibmblockchain/fabric-peer x86_64-0.6.1-preview 21cb00fb27f4 8 months ago 1.42GB

akdj (Thu, 15 Jun 2017 13:57:33 GMT):
@dstarina Jeffgarratt has a Jira issue opened to show basically how to do this, i.e., add a new org/peer to an existing Fabric network. It is Jira issue 4570 If it's still empty, it means he probably hasn't done it yet

mastersingh24 (Thu, 15 Jun 2017 13:58:10 GMT):
@shanthi0547 - it looks like the script failed to download the images for you

mastersingh24 (Thu, 15 Jun 2017 13:58:44 GMT):
Can you do the following: 1) Open the Docker Quickstart Terminal 2) Run `curl -sSL https://goo.gl/LQkuoh | bash` 3) Post the output

shanthi0547 (Thu, 15 Jun 2017 13:59:33 GMT):
I got error for that

shanthi0547 (Thu, 15 Jun 2017 13:59:40 GMT):
so, i tried this curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0-beta.sh | bash

shanthi0547 (Thu, 15 Jun 2017 14:00:26 GMT):
$ curl -sSL https://goo.gl/LQkuoh | bash bash: line 1: syntax error near unexpected token `newline' bash: line 1: `'

mastersingh24 (Thu, 15 Jun 2017 14:05:33 GMT):
yeah - that's the issue

shanthi0547 (Thu, 15 Jun 2017 14:05:48 GMT):
mmm

mastersingh24 (Thu, 15 Jun 2017 14:06:09 GMT):
can you run `curl --version` in the same terminal?

shanthi0547 (Thu, 15 Jun 2017 14:06:40 GMT):
$ curl --version curl 7.49.1 (x86_64-w64-mingw32) libcurl/7.49.1 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.32 libssh2/1.7.0 nghttp2/1.11.1 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP HTTP2 Metalink

mastersingh24 (Thu, 15 Jun 2017 14:11:22 GMT):
so it turns out that the issue you are running into is related to the version of curl

shanthi0547 (Thu, 15 Jun 2017 14:11:35 GMT):
oh

shanthi0547 (Thu, 15 Jun 2017 14:11:47 GMT):
which version should i hold

shanthi0547 (Thu, 15 Jun 2017 14:24:09 GMT):
@mastersingh24

mastersingh24 (Thu, 15 Jun 2017 14:30:55 GMT):
sorry - was testing something out

mastersingh24 (Thu, 15 Jun 2017 14:31:19 GMT):
ok - so this worked for me

mastersingh24 (Thu, 15 Jun 2017 14:32:46 GMT):
In your Quickstart Terminal: ``` mkdir curl cd curl curl -k https://dl.uxnr.de/build/curl/curl_winssl_msys2_mingw64_stc/curl-7.53.1/curl-7.53.1.zip >> curl.zip unzip curl.zip cd .. export PATH=$PWD/curl/src:$PATH curl --version ```

shanthi0547 (Thu, 15 Jun 2017 14:33:11 GMT):
thank you will try

shanthi0547 (Thu, 15 Jun 2017 14:33:21 GMT):
one min

shanthi0547 (Thu, 15 Jun 2017 14:46:55 GMT):
curl 7.53.1 (x86_64-w64-mingw32) libcurl/7.53.1 WinSSL zlib/1.2.8 WinIDN libssh2/1.7.0_DEV Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz

shanthi0547 (Thu, 15 Jun 2017 14:49:36 GMT):
curl -sSL https://goo.gl/LQkuoh | bash url: (35) schannel: failed to receive handshake, SSL/TLS connection failed

shanthi0547 (Thu, 15 Jun 2017 14:53:37 GMT):
:( why is that

shanthi0547 (Thu, 15 Jun 2017 14:55:01 GMT):
@mastersingh24 hey i used curl -sSL -k1 https://goo.gl/LQkuoh | bash

shanthi0547 (Thu, 15 Jun 2017 14:55:23 GMT):
that is working and downloading something, lets see.. fingers cross

shanthi0547 (Thu, 15 Jun 2017 14:55:32 GMT):
thanks for your time and support

shanthi0547 (Thu, 15 Jun 2017 14:55:32 GMT):
@mastersingh24

mastersingh24 (Thu, 15 Jun 2017 14:55:38 GMT):
no problem

shanthi0547 (Thu, 15 Jun 2017 15:56:09 GMT):
panic: Error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err Could not load a valid signer certificate from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOr ganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts, err stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts: no such file or directory goroutine 1 [running]: panic(0xc4cfe0, 0xc42020af70) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:113 +0x69b

shanthi0547 (Thu, 15 Jun 2017 15:56:23 GMT):
please suggest

shanthi0547 (Thu, 15 Jun 2017 15:57:01 GMT):
@mastersingh24

shanthi0547 (Thu, 15 Jun 2017 15:57:17 GMT):
i reached till here

shanthi0547 (Thu, 15 Jun 2017 15:57:18 GMT):
Create & Join Channel

shanthi0547 (Thu, 15 Jun 2017 15:57:31 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#download-the-artifacts-and-binaries-pull-the-docker-images

shanthi0547 (Thu, 15 Jun 2017 16:00:17 GMT):
any suggestions please

shanthi0547 (Thu, 15 Jun 2017 16:07:46 GMT):
please respond

toddinpal (Thu, 15 Jun 2017 17:26:07 GMT):
So trying to setup a new development environment and encountering this when I try to build from source: File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 73, in ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD, AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

toddinpal (Thu, 15 Jun 2017 17:26:46 GMT):
building on Ubuntu 16.04 LTS

toddinpal (Thu, 15 Jun 2017 21:46:53 GMT):
Where can I find a succinct description of a consortium in fabric? Is it only a logical grouping of organizations to simplify configuration, or is it something understood at runtime?

jeffgarratt (Thu, 15 Jun 2017 22:07:58 GMT):
@toddinpal it is a logical grouping of organizations which are the required precursor to channel definition, i.e. a channel can NOT be created without referencing an existing consortium.

jeffgarratt (Thu, 15 Jun 2017 22:08:17 GMT):
it also contains the channel creation policy information

toddinpal (Thu, 15 Jun 2017 23:30:48 GMT):
@jeffgarratt That was my understanding... so at runtime there isn't anything like a consortium.

jeffgarratt (Thu, 15 Jun 2017 23:31:13 GMT):
@toddinpal Not from a channel users perspective

toddinpal (Thu, 15 Jun 2017 23:31:32 GMT):
Does a consortium exist in any protobuf?

jeffgarratt (Thu, 15 Jun 2017 23:31:35 GMT):
the only ones who would be interested in consortiums are those who create channels

jeffgarratt (Thu, 15 Jun 2017 23:32:20 GMT):
and of course orderer admins, and configAdmins for orgs looking to establish a network with other orgs

toddinpal (Thu, 15 Jun 2017 23:32:51 GMT):
right, but those things are protobuf entities....

jeffgarratt (Thu, 15 Jun 2017 23:32:53 GMT):
```// Consortium represents the consortium context in which the channel was created message Consortium { string name = 1; }

jeffgarratt (Thu, 15 Jun 2017 23:33:34 GMT):
common\configuration.proto

jeffgarratt (Thu, 15 Jun 2017 23:33:53 GMT):
it goes into a orderer system channel config_update

toddinpal (Thu, 15 Jun 2017 23:34:32 GMT):
right..... but at runtime, is it an entity? Seems like as you said it is essentially only a configuration artifact that groups a bunch of orgs

jeffgarratt (Thu, 15 Jun 2017 23:35:09 GMT):
at runtime it is referenced as a configGroup, as all other configuration

toddinpal (Thu, 15 Jun 2017 23:35:24 GMT):
ok, makes sense...

toddinpal (Thu, 15 Jun 2017 23:36:04 GMT):
Also, any thoughts as to how I can get a working behave environment? I've tried everything I can think of

toddinpal (Thu, 15 Jun 2017 23:37:00 GMT):
I've tried on a RHEL environment that can run all the unit tests,but none of the behave tests

toddinpal (Thu, 15 Jun 2017 23:37:28 GMT):
I've tried Vagrant, and I still can't run the behave tests in the Vagrant VM

jeffgarratt (Thu, 15 Jun 2017 23:37:40 GMT):
failure?

toddinpal (Thu, 15 Jun 2017 23:37:51 GMT):
And I've tried creating an Ubuntu environment, with no success

toddinpal (Thu, 15 Jun 2017 23:38:05 GMT):
which one? They've all failed

jeffgarratt (Thu, 15 Jun 2017 23:38:10 GMT):
:)

jeffgarratt (Thu, 15 Jun 2017 23:38:16 GMT):
time for a zoom?

toddinpal (Thu, 15 Jun 2017 23:38:35 GMT):
ok, give me a couple of minutes?

jeffgarratt (Thu, 15 Jun 2017 23:39:13 GMT):
sure thing

toddinpal (Thu, 15 Jun 2017 23:39:45 GMT):
which of the three do you want to look at?

jeffgarratt (Thu, 15 Jun 2017 23:42:04 GMT):
the vagrant one

CodeReaper (Fri, 16 Jun 2017 09:53:31 GMT):
Hello, I was wondering how would we define organizations architecturally. Is it on the basis of the one chaincode should be launched on a channel, and that channel comprises of peers of one organization only?? If there is scenario where there are 5 types of roles in my architecture, on what basis would I define the organizations?? Any advices or examples would be appreciated. Thanks in advance.

tbberg (Fri, 16 Jun 2017 10:28:09 GMT):
Has joined the channel.

tbberg (Fri, 16 Jun 2017 10:33:21 GMT):
Hello, I'm struggling to get the fabric-sample running on windows. In the docker-compose-cli.yaml the line " command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'" leeds to an error. ```Creating network "windowsamd64_default" with the default driver Creating peer0.org2.example.com ... Creating peer0.org2.example.com Creating peer0.org1.example.com ... Creating peer1.org1.example.com ... Creating peer1.org2.example.com ... Creating orderer.example.com ... Creating peer0.org1.example.com Creating peer1.org1.example.com Creating orderer.example.com Creating peer1.org1.example.com ... done Creating cli ... Creating cli ... done /bin/bash: ./scripts/script.sh: No such file or directory ```

tbberg (Fri, 16 Jun 2017 10:33:21 GMT):
Hello, I'm struggling to get the fabric-sample running on windows. In the docker-compose-cli.yaml the line " command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'" leeds to an error. ```... Creating network "windowsamd64_default" with the default driver Creating peer0.org2.example.com ... Creating peer0.org2.example.com Creating peer0.org1.example.com ... Creating peer1.org1.example.com ... Creating peer1.org2.example.com ... Creating orderer.example.com ... Creating peer0.org1.example.com Creating peer1.org1.example.com Creating orderer.example.com Creating peer1.org1.example.com ... done Creating cli ... Creating cli ... done /bin/bash: ./scripts/script.sh: No such file or directory ```

mastersingh24 (Fri, 16 Jun 2017 11:10:41 GMT):
@tbberg - Are you running Windows 7 and Docker Toolbox?

tbberg (Fri, 16 Jun 2017 11:20:41 GMT):
yes

tbberg (Fri, 16 Jun 2017 11:21:19 GMT):
@mastersingh24 yes

mastersingh24 (Fri, 16 Jun 2017 11:32:37 GMT):
Assuming you are in the Docker Quickstart Terminal, can you run `pwd` and show the output?

mastersingh24 (Fri, 16 Jun 2017 11:33:01 GMT):
My suspicion is that you are in directory that is not user `C:\Users`

mastersingh24 (Fri, 16 Jun 2017 11:33:01 GMT):
My suspicion is that you are in directory that is not under `C:\Users`

mastersingh24 (Fri, 16 Jun 2017 11:42:51 GMT):
The issue with that is that Docker Toolbox on Windows by default only allows the Docker daemon to mount folders under `C:\Users`

tbberg (Fri, 16 Jun 2017 12:14:12 GMT):
@mastersingh24, thank you very much for dealing with this issue. pwd shows /y. /y is the network user volume. I changed the directory to /c/tools/fabric-sample/release/windows-amd64 where the fabric-sample is installed. That did not help. Have I to install the fabric-sample on /y?

mastersingh24 (Fri, 16 Jun 2017 12:15:46 GMT):
In the Quickstart terminal, what does `echo $HOME` show?

mastersingh24 (Fri, 16 Jun 2017 12:16:43 GMT):
But in the end, I'm pretty sure you actually need to have fabric-sample under `/c/Users` with Docker Toolbox in order to mount folders

tbberg (Fri, 16 Jun 2017 12:17:14 GMT):
It shows /y/

mastersingh24 (Fri, 16 Jun 2017 12:17:55 GMT):
Ah - right - network mounter user folder

mastersingh24 (Fri, 16 Jun 2017 12:18:27 GMT):
But Docker can't mount volumes / folders from under that directory

mastersingh24 (Fri, 16 Jun 2017 12:18:37 GMT):
Has to be under `/c/Users`

tbberg (Fri, 16 Jun 2017 12:19:10 GMT):
ok I'll try this. Thank you ;-)

mastersingh24 (Fri, 16 Jun 2017 12:19:14 GMT):
sure thing

mastersingh24 (Fri, 16 Jun 2017 12:19:26 GMT):
(it worked for someone else yesterday ;) )

mastersingh24 (Fri, 16 Jun 2017 12:19:43 GMT):
If this works, I'll make sure we update the documentation to explain this

tbberg (Fri, 16 Jun 2017 12:19:59 GMT):
I tell you, if this works

mastersingh24 (Fri, 16 Jun 2017 12:20:11 GMT):
It's a limitation with the way Docker Toolbox works. There are ways to add more shared directories, but they are overly complicated

hariharanatarajan (Fri, 16 Jun 2017 12:57:16 GMT):
Has joined the channel.

Glen (Fri, 16 Jun 2017 14:54:24 GMT):
017-06-16 14:44:00.293 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-16 14:44:00.293 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-06-16 14:44:00.293 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining imports: go list: failed with error: "exec: not started"

Glen (Fri, 16 Jun 2017 14:54:37 GMT):
Has any boy met this same issue?

mastersingh24 (Fri, 16 Jun 2017 14:55:52 GMT):
@Glen - are you using Docker? Likely the issue is that you are using the fabric-peer image as the CLI rather than the fabric-tools image

Glen (Fri, 16 Jun 2017 14:56:06 GMT):
yes

Glen (Fri, 16 Jun 2017 14:56:28 GMT):
so I need to download the fabric-tools image?

gpflanagan (Fri, 16 Jun 2017 15:22:38 GMT):
Has joined the channel.

Glen (Fri, 16 Jun 2017 15:58:04 GMT):
@mastersingh24 , you are right, it works

mastersingh24 (Fri, 16 Jun 2017 16:10:17 GMT):
@tbberg - any luck?

tbberg (Fri, 16 Jun 2017 16:51:04 GMT):
@mastersingh24 I did not succeed. I managed to get docker to be located in the user-directory and $HOME$ is C:\Users\ now. But the error message is the same at the same point of processing. I'm now on holiday for a week. I will continue to try after my holiday. Thank you for your help. At least I have a little bit more understanding what is happen

mastersingh24 (Fri, 16 Jun 2017 19:11:51 GMT):
@tbberg - sure thing. Enjoy your holiday. I'm jealous and sadly I'll still be here when you get back ;)

xzib (Sat, 17 Jun 2017 11:01:48 GMT):
Has joined the channel.

dstarina (Sat, 17 Jun 2017 13:37:16 GMT):
Hi guys. There's a question on stackoverflow about privacy on Fabric. It hasn't received much attention and I think it's still relevant, so I created a bounty for it ... Hopefully someone can provide some insight. https://stackoverflow.com/questions/42684593/how-can-the-transaction-certificates-in-hyperledger-be-used-to-enforce-privacy

dstarina (Sat, 17 Jun 2017 13:59:37 GMT):
What I would like to know is, how can we insure privacy on the blockchain - when having different competitors using the same blockchain, we don't want them to be able to reverse-enginer blockchain and somehow be able to read the data about their competitors from the blockchain and/or world state database

muralisr (Sat, 17 Jun 2017 16:34:49 GMT):
@dstarina that post is based on 0.5 / 0.6 and the architecture has changed significantly in 1.0 (getting near release). The change in architecture was based on lessons learned and feedback from 0.5/0.6, Not sure if you have followed the 1.0 work concepts such as channels, policies and future sidedb work https://jira.hyperledger.org/browse/FAB-1151 would go towards privacy features not capable in 0.5/0.6

muralisr (Sat, 17 Jun 2017 16:34:49 GMT):
@dstarina that post is based on 0.5 / 0.6 and the architecture has changed significantly in 1.0 (getting near release). The change in architecture was based on lessons learned and feedback from 0.5/0.6, Not sure if you have followed the 1.0 work concepts such as channels, policies and future sidedb work https://jira.hyperledger.org/browse/FAB-1151 that would go towards privacy features not capable in 0.5/0.6

muralisr (Sat, 17 Jun 2017 16:35:25 GMT):
do you want to look into that and repost on stack overflow ?

dstarina (Sun, 18 Jun 2017 15:23:37 GMT):
@muralisr Thank you. I have posted a new question on stackoverflow: https://stackoverflow.com/questions/44616531/privacy-on-hyperledger-fabric-v1-0

travin (Sun, 18 Jun 2017 22:54:07 GMT):
Has joined the channel.

travin (Sun, 18 Jun 2017 22:59:46 GMT):
Hello everyone. Not sure if this is the right place to post this, so please let me know if I should take it elsewhere. I was recently approached regarding a project for a large company that will be using Hyperledger Fabric but is in need of developers familiar with Fabric. I'm not sure yet as to how much work will be needed for the project as well as how long the commitment will last as this is still being decided on, but I am looking to post this request somewhere. Would it be ok to post it on #fabric? Or is there a dedicated job-related channel somewhere?

travin (Sun, 18 Jun 2017 22:59:46 GMT):
Hello everyone. I was recently approached regarding a project for a large company that will be using Hyperledger Fabric but is in need of developers familiar with Fabric. I'm not sure yet as to how much work will be needed for the project as well as how long the commitment will last as this is still being decided on, but I am looking to post this request somewhere. Would it be ok to post it on #fabric? Or is there a dedicated job-related channel somewhere?

sfukazu (Mon, 19 Jun 2017 06:36:19 GMT):
Has joined the channel.

roj (Mon, 19 Jun 2017 10:42:00 GMT):
Has joined the channel.

bh4rtp (Mon, 19 Jun 2017 11:46:45 GMT):
hi, i am inspecting the logging information of the peers. and find below error message. is this a fatal error? ```2017-06-19 19:42:40.160 CST [gossip/discovery] handleAliveMessage -> ERRO 1ce Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg: timestamp: identity:"\n\007Org1MSP\022\232\007-----BEGIN -----\nMIICizCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw\nfzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK\nBgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw\nWhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg\nQ2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy\nIEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\nHBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ\n+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw\nFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC\ndcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1\nnEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG\nSM49BAMCA0cAMEQCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiAk\naXzB/jnlU39B7Wws9BIr9c8mSOEPF6VY1uGP+dKV0g==\n-----END -----\n" >```

bh4rtp (Mon, 19 Jun 2017 11:48:07 GMT):
i deploy the e2e_cli network onto two hosts using `docker export` and `import`

terrypst (Mon, 19 Jun 2017 13:56:30 GMT):
Hi guys ! Is there someone how tried the Todo-list-fabric https://github.com/IBM/todo-list-fabricV1 ? I'm trying to add couchDB to make rich queries like with marbles smart-contract.

terrypst (Mon, 19 Jun 2017 13:56:30 GMT):
Hi guys ! Is there someone how tried the Todo-list-fabric https://github.com/IBM/todo-list-fabricV1 ? I'm trying to add couchDB to make rich queries like with marbles smart-contract. But i have issues with adding couchDB, i modified the docker-compose-networksetup.yaml but then create-channel and join-channel no longer work.

ashahn (Mon, 19 Jun 2017 13:58:26 GMT):
Has joined the channel.

dave.enyeart (Mon, 19 Jun 2017 14:12:42 GMT):
@terrypst Let's move this to #fabric-ledger. If you configure couchdb and restart peer the block data from file system will automatically update couchdb current state db. So your previously created channel should remain. Did you try to re-create the same channel? That would indeed fail. Or did you try a new channel? What is the error? Again, please add these details to #fabric-ledger

durantto (Mon, 19 Jun 2017 19:24:20 GMT):
Are there repos which contain the DockerFiles for the peer, orderers, tools, and whichever image those are based off?

jeffgarratt (Mon, 19 Jun 2017 19:59:53 GMT):
@durantto I believe the goal is to have the planned images for test ready within the next couple of days.

durantto (Mon, 19 Jun 2017 20:02:50 GMT):
@jeffgarratt Thanks for the response. So, do you mean that the DockerFiles that are used to build the images that are pulled with the shell script in https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/download-dockerimages.sh will be published somewhere? Do you know where those will be posted?

jeffgarratt (Mon, 19 Jun 2017 20:03:23 GMT):
@durantto I mean the imags themselves

s.narayanan (Mon, 19 Jun 2017 20:06:24 GMT):
I run into the following issue when setting up a fabric network on Red Hat 6.3. I can create channel, however during join channel operation, see the following error in the logs: 2017-06-19 18:17:45.145 UTC [deliveryClient] NewDeliverService -> ERRO 2c2 Cannot dial to host:7050, because of grpc: timed out when dialing 2017-06-19 18:17:45.145 UTC [gossip/service] InitializeChannel -> WARN 2c3 Cannot create delivery client, due to Wasn't able to connect to any of ordering service endpoints [ulzbcd12.fg.rbc.com:7050] 2017-06-19 18:17:45.145 UTC [gossip/service] InitializeChannel -> WARN 2c4 Delivery client is down won't be able to pull blocks for chain mychannel. The same network set up scripts work on Ubuntu. I have checked the usual suspects (ensuring the orderer is up and listening on the port, tls certs are valid etc.). Any thoughts on what might be going wrong? Thanks

s.narayanan (Mon, 19 Jun 2017 20:06:24 GMT):
I run into the following issue when setting up a fabric network on Red Hat 6.3. I can create channel, however during join channel operation, see the following error in the logs: 2017-06-19 18:17:45.145 UTC [deliveryClient] NewDeliverService -> ERRO 2c2 Cannot dial to host:7050, because of grpc: timed out when dialing 2017-06-19 18:17:45.145 UTC [gossip/service] InitializeChannel -> WARN 2c3 Cannot create delivery client, due to Wasn't able to connect to any of ordering service endpoints [host:7050] 2017-06-19 18:17:45.145 UTC [gossip/service] InitializeChannel -> WARN 2c4 Delivery client is down won't be able to pull blocks for chain mychannel. The same network set up scripts work on Ubuntu. I have checked the usual suspects (ensuring the orderer is up and listening on the port, tls certs are valid etc.). Any thoughts on what might be going wrong? Thanks

durantto (Mon, 19 Jun 2017 20:18:30 GMT):
@jeffgarratt could I get the Dockerfile for each image as well, or are they not being published/released?

dongqi (Tue, 20 Jun 2017 08:37:21 GMT):
Has joined the channel.

jmcnevin (Tue, 20 Jun 2017 15:12:46 GMT):
Has joined the channel.

jmcnevin (Tue, 20 Jun 2017 15:14:28 GMT):
i'm trying to grok would a production, multi-org, fabric network topology would look like... would anyone have an example?

jeffgarratt (Tue, 20 Jun 2017 15:17:41 GMT):
@jmcnevin you can run the BDD system feature (bootsrap.feature) it will then report and show you an network diagram. Run in kafka mode which will have a real production setup.

jmcnevin (Tue, 20 Jun 2017 17:01:08 GMT):
does each node maintain its own state database, or can they all share a couch db instance?

mastersingh24 (Tue, 20 Jun 2017 17:22:24 GMT):
@jmcnevin - each node as it own instance

tkuhrt (Tue, 20 Jun 2017 18:30:31 GMT):
@durantto : The docker images are at https://hub.docker.com/r/hyperledger/

jmcnevin (Tue, 20 Jun 2017 18:37:11 GMT):
@jeffgarratt Would you have an example of what that output would look like? I can't seem to get those feature tests to pass on my local box

toddinpal (Tue, 20 Jun 2017 21:29:01 GMT):
Is gossiping used by the world state or only the ledger blocks?

toddinpal (Tue, 20 Jun 2017 21:31:15 GMT):
@jmcnevin It would be extremely difficult to share a database as every peer will try to perform the RWsets

mqmatt (Wed, 21 Jun 2017 09:28:50 GMT):
Has joined the channel.

ArvsIndrarys (Wed, 21 Jun 2017 09:54:10 GMT):
Hey guys ! I was wondering for those who have managed to make hyperledger work with docker swarm how they have resolved this conflict? http://imgur.com/a/IZHhc Basically, as swarm doesn't enable to give names to container, I can't tell my cli that the orderer container corresponds to orderer.example.com or orderer...

akdj (Wed, 21 Jun 2017 10:05:31 GMT):
@ArvsIndrarys possibly use --host to map with service adresseIP? try docker service inspect, and get adresseIP of each service,then use --host with docker service create --host orderer.example.com:$addressIP

akdj (Wed, 21 Jun 2017 10:06:05 GMT):
with docker-compose file, I think it is the same idea

ArvsIndrarys (Wed, 21 Jun 2017 10:10:31 GMT):
@akdj Thanks ! I try it now

ArvsIndrarys (Wed, 21 Jun 2017 10:37:38 GMT):
@akdj it seems I can't force the container to have a pre-defined IP on the network used. So it doesn't work :/ I'm thinking about setting up a DNS but surely it can be done without it

akdj (Wed, 21 Jun 2017 10:52:47 GMT):
@ArvsIndrarys it is more simple without, it is what I understood in the channel #fabric-kubernetes

akdj (Wed, 21 Jun 2017 10:52:47 GMT):
@ArvsIndrarys it is more simple without, it it what I understood in the channel #fabric-kubernetes

ArvsIndrarys (Wed, 21 Jun 2017 10:57:20 GMT):
@akdj I was considering that but I had no clue about how to setup the network between the containers on different hosts - what ingress does in swarm

akdj (Wed, 21 Jun 2017 11:01:29 GMT):
it is used to map docker container port with docker service port, but I'm not sure, I'm not a good user of swarm...

rcyrus (Wed, 21 Jun 2017 14:11:48 GMT):
Has joined the channel.

jmcnevin (Wed, 21 Jun 2017 14:52:46 GMT):
so, still trying to grok the overall map of things I would need to be concerned about during a prod deployment... from the docs, I'm unclear as to whether the MSP is separate piece of infrastructure I need to worry about?

jmcnevin (Wed, 21 Jun 2017 14:53:15 GMT):
I notice that there's no 1.0 beta image for hyperledger/fabric-membersrvc

jmcnevin (Wed, 21 Jun 2017 14:58:32 GMT):
also, i'm assuming from the bddtests that fabric-ca is optional

jeffgarratt (Wed, 21 Jun 2017 15:01:51 GMT):
@jmcnevin for v1 fabric-membersrvc is now fabric-ca

jeffgarratt (Wed, 21 Jun 2017 15:02:41 GMT):
@jmcnevin MSP is an abstraction used by the system to allow for pluggability of membership services (Membership Services Provider, MSP)

jeffgarratt (Wed, 21 Jun 2017 15:03:26 GMT):
of which fabric-ca can be used

jmcnevin (Wed, 21 Jun 2017 15:03:41 GMT):
ahhh

jeffgarratt (Wed, 21 Jun 2017 15:04:16 GMT):
@jmcnevin the bdd system in fabric uses openssl for PKI support, as it can not use fabric-ca which is in another project.

jeffgarratt (Wed, 21 Jun 2017 15:05:11 GMT):
the bdd system generates the PKI material base upon the declaration in the feature file (bootstrap.feature)

jmcnevin (Wed, 21 Jun 2017 15:19:34 GMT):
ok, so in an ideal scenario, each org would have it's own fabric-ca cluster?

jmcnevin (Wed, 21 Jun 2017 15:19:34 GMT):
ok, so in an ideal scenario, each org would have its own fabric-ca cluster?

jeffgarratt (Wed, 21 Jun 2017 15:21:59 GMT):
@jmcnevin that would be one possibility, and would seem like the most common approach.

jeffgarratt (Wed, 21 Jun 2017 15:22:37 GMT):
the folks in the #fabric-ca channel may have more specific advice

jmcnevin (Wed, 21 Jun 2017 15:22:59 GMT):
ok, i'm just trying to get a mental picture of all the necessary moving parts :)

jmcnevin (Wed, 21 Jun 2017 15:30:00 GMT):
can a single kafka cluster service all of the channels on the network?

jeffgarratt (Wed, 21 Jun 2017 15:51:50 GMT):
@jmcnevin care must be given to using the term 'network' in this context (or any for that matter wrt to fabric)

jeffgarratt (Wed, 21 Jun 2017 15:52:36 GMT):
by definition, a single kafka cluster in our current proposed production deployment model services all of the channels established through the orderer system

jeffgarratt (Wed, 21 Jun 2017 15:52:36 GMT):
by definition, a single kafka cluster in our current proposed production deployment model services all of the channels established through that specific orderer system (orderer channel)

jeffgarratt (Wed, 21 Jun 2017 15:53:17 GMT):
there are even some folks working on leveraging a single kafka cluster to service multiple orderer systems (i.e. system channels that support the peer network channels created thereunder)

jeffgarratt (Wed, 21 Jun 2017 15:54:18 GMT):
meaning, logically distinct orderer systems using the same kafka cluster

jeffgarratt (Wed, 21 Jun 2017 15:54:44 GMT):
as to not require a distinct kafka/zookeeper cluster per orderer network (aka system channel)

jmcnevin (Wed, 21 Jun 2017 16:01:26 GMT):
i'll keep these questions coming fast and furious :)

jeffgarratt (Wed, 21 Jun 2017 16:02:11 GMT):
@jmcnevin np :)

jmcnevin (Wed, 21 Jun 2017 16:05:36 GMT):
just so I'm understanding... kafka/zookeeper is one type of backend for an "ordering service", which is basically the collection of orderer nodes, and orderer nodes do not belong to a network "member"

jmcnevin (Wed, 21 Jun 2017 16:08:34 GMT):
there I go saying network again

jeffgarratt (Wed, 21 Jun 2017 17:19:19 GMT):
@jmcnevin ownership is dependent upon the situation... But in general, I would presume the organizations that provide the odering service are NOT the same as those wishing to form consortiums and subsequent channels (aka blockchains)

jeffgarratt (Wed, 21 Jun 2017 17:20:11 GMT):
and kafka is the current production level implementation of the pluggable consensus mechanism for fabric. Future ones are planned (e.g. SBFT)

jeffgarratt (Wed, 21 Jun 2017 17:21:03 GMT):
if you are interested in the consensus (ordering) function of the system. #fabric-consensus is the place to ask more specific questions

jeffgarratt (Wed, 21 Jun 2017 17:21:19 GMT):
that is where the folks with specific knowledge hang out

toddinpal (Wed, 21 Jun 2017 17:23:53 GMT):
@jeffgarratt When you say "there are even some folks working on leveraging a single kafka..." do you mean that is a planned/proposed feature?

jeffgarratt (Wed, 21 Jun 2017 17:24:36 GMT):
@toddinpal not that I am aware of, but I saw discussions (I believe in #fabric-consensus ) where a gentleman is verifying ability to achieve such

toddinpal (Wed, 21 Jun 2017 17:24:45 GMT):
Thanks

jeffgarratt (Wed, 21 Jun 2017 17:24:46 GMT):
@kostas may have more input

jeffgarratt (Wed, 21 Jun 2017 17:24:49 GMT):
yw!

jmcnevin (Wed, 21 Jun 2017 17:31:51 GMT):
would anyone be bothered if a posted a quick graphviz doc in here just to see if i've wrapped my head around all these concepts correctly?

jmcnevin (Wed, 21 Jun 2017 17:34:51 GMT):

Message Attachments

jmcnevin (Wed, 21 Jun 2017 17:35:54 GMT):
does anything about this look completely bonkers?

jeffgarratt (Wed, 21 Jun 2017 17:37:23 GMT):
@jmcnevin just note there is no runtime dependency between peers/orderer and CA functionality.

jeffgarratt (Wed, 21 Jun 2017 17:37:44 GMT):
though your organizational context diagram is accurate

jeffgarratt (Wed, 21 Jun 2017 17:39:13 GMT):
and it also possible to have peers interoperate across organizations (anchor peers)

jmcnevin (Wed, 21 Jun 2017 17:51:30 GMT):

Message Attachments

jeffgarratt (Wed, 21 Jun 2017 17:52:30 GMT):
@jmcnevin IMO :)

jeffgarratt (Wed, 21 Jun 2017 17:53:38 GMT):
thought the non-anchors do NOT communicate with other orgs anchors

jeffgarratt (Wed, 21 Jun 2017 17:53:38 GMT):
though the non-anchors do NOT communicate with other orgs anchors

jeffgarratt (Wed, 21 Jun 2017 17:53:49 GMT):
just the anchor peers connect to other anchors

jeffgarratt (Wed, 21 Jun 2017 17:53:57 GMT):
@jmcnevin ^^

jmcnevin (Wed, 21 Jun 2017 17:58:17 GMT):
ahh, the glossary makes that unclear: "A peer node on a channel that all other peers can discover and communicate with."

jmcnevin (Wed, 21 Jun 2017 18:00:28 GMT):
and, maybe this is a dumb question, do non-anchor peers within an org communicate with other non-anchor peers?

jmcnevin (Wed, 21 Jun 2017 18:00:28 GMT):
and, maybe this is a dumb question, do non-anchor peers within an org communicate with other non-anchor peers in the same org?

jeffgarratt (Wed, 21 Jun 2017 18:35:35 GMT):
@jmcnevin I believe they do.

davidkel (Wed, 21 Jun 2017 20:02:27 GMT):
This touches on an area we have been having discussions about as well and is still a source of confusion. 1. channels are configured with anchor peers from each organisation ?

davidkel (Wed, 21 Jun 2017 20:02:27 GMT):
This touches on an area we have been having discussions about as well and is still a source of confusion. 1. channels are configured with anchor peers from each organisation ? I assume that more than 1 anchor peer per org can be defined for HA purposes ? 2. anchor peers somehow know about the peers in their organisation but who else needs to know that information apart from the peers ? 3. if anchor peers need to talk to peers in other organisations do they download the necessary crypto material from orderer ? 4. leading peers are elected to receive blocks from the orderer and they distribute the blocks to other peers via gossip so I assume they need to contact the anchor peer to know about the other peers in the organisation ? if some more clarification on this including how leading peers fit in would be useful

ivaylopivanov (Wed, 21 Jun 2017 20:07:30 GMT):
@jeffgarratt @davidkel maybe I'm missing something, but is the ordered the single point of failure, even in cluster?

ivaylopivanov (Wed, 21 Jun 2017 20:07:30 GMT):
@jeffgarratt @davidkel maybe I'm missing something, but is the orderer the single point of failure, even in cluster?

ivaylopivanov (Wed, 21 Jun 2017 20:07:30 GMT):
@jeffgarratt @davidkel maybe I'm missing something, but is the orderer the single point of failure, even in a cluster?

jeffgarratt (Wed, 21 Jun 2017 20:08:15 GMT):
@ivaylopivanov not if you are running multiple orderers, as the default kafka cluster does

jeffgarratt (Wed, 21 Jun 2017 20:08:50 GMT):
and by default I mean wrt to the BDD system configuration

ivaylopivanov (Wed, 21 Jun 2017 20:09:56 GMT):
so in theory, DDoS attack should fail?

ivaylopivanov (Wed, 21 Jun 2017 20:10:51 GMT):
what would be the actions one should take in such scenario?

ivaylopivanov (Wed, 21 Jun 2017 20:12:19 GMT):
or that should never happen because the orderers are behind firewall?

yacovm (Wed, 21 Jun 2017 22:43:04 GMT):
@jmcnevin > do non-anchor peers within an org communicate with other non-anchor peers in the same org? Yes.

yacovm (Wed, 21 Jun 2017 22:46:55 GMT):
@davidkel > 1. channels are configured with anchor peers from each organisation ? I assume that more than 1 anchor peer per org can be defined for HA purposes ? Correct. > 2. anchor peers somehow know about the peers in their organisation but who else needs to know that information apart from the peers ? So, actually its the opposite - the peers know about the anchor peers and that's why the anchor peers know about them. > 3. if anchor peers need to talk to peers in other organisations do they download the necessary crypto material from orderer ? The "download" happens at JoinChannel, and this is a manual process where a peer admin (a person) fetches the block from the ordering service, or creates the channel himself/herself and does so, but nice observation. > 4. leading peers are elected to receive blocks from the orderer and they distribute the blocks to other peers via gossip so I assume they need to contact the anchor peer to know about the other peers in the organisation ? Correct! > if some more clarification on this including how leading peers fit in would be useful So... they just connect to the ordering service on behalf of other peers and send the blocks via gossip. It's done per organization and per channel - meaning, each channel and org has its own leader.

lbennett (Thu, 22 Jun 2017 00:44:28 GMT):
Am running the developer tutorial (https://hyperledger.github.io/composer/tutorials/developer-guide.html) - am at the step where one deploys to Hyperledger Fabric using the command `composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString`. Am getting the following error: ``Error: error trying login and get user Context. Error: error trying to enroll user. Error: Could not parse enrollment response [404 page not found ] as JSON due to error [SyntaxError: Unexpected token p in JSON at position 4]``

bh4rtp (Thu, 22 Jun 2017 00:45:24 GMT):
@lbennett #composer channel may get instant answer.

lbennett (Thu, 22 Jun 2017 00:46:05 GMT):
i posted there too - but thought since my q was fabric related - i should post here

bh4rtp (Thu, 22 Jun 2017 01:32:07 GMT):
@yacovm when joining channel, the peer fetch the block from ordering service. does the fetched block contain crypto artifacts?

jeffgarratt (Thu, 22 Jun 2017 02:49:25 GMT):
@bh4rtp yes the genesis block for the channel contains the initial member MSP configs, which contain cryptographic material

bh4rtp (Thu, 22 Jun 2017 02:51:28 GMT):
@jeffgarratt oh, yes! it is the genesis block. i got it.

jeffgarratt (Thu, 22 Jun 2017 02:51:40 GMT):
@bh4rtp ;)

Pere-Lluis (Thu, 22 Jun 2017 08:07:18 GMT):
Has joined the channel.

Pere-Lluis (Thu, 22 Jun 2017 08:21:10 GMT):
@lbennett have u checked this? https://hyperledger.github.io/composer/reference/composer.identity.import.html

Pere-Lluis (Thu, 22 Jun 2017 08:22:15 GMT):
Hi there, I'm trying to develop a blockchain solution for a network of 200 users, I already have my chain code with Composer, but I'm struggling figuring out what I should use to create the Fabric instance

Pere-Lluis (Thu, 22 Jun 2017 08:22:17 GMT):
any tips?

Pere-Lluis (Thu, 22 Jun 2017 08:22:59 GMT):
I followed the tutorials but if I try to modify something in order to adapt it, it gives me constant errors

Pere-Lluis (Thu, 22 Jun 2017 08:23:24 GMT):
is there any way for a more automatized node and peer creation?

Pere-Lluis (Thu, 22 Jun 2017 08:32:53 GMT):
@Binay1 has a similar problem and we can't figure out what's the best way to deploy a custom Fabric instance

Binay1 (Thu, 22 Jun 2017 08:32:53 GMT):
Has joined the channel.

Binay1 (Thu, 22 Jun 2017 08:33:38 GMT):
Yes, I've been struggling with that

atclik31 (Thu, 22 Jun 2017 09:25:09 GMT):
Has joined the channel.

Gerard9494 (Thu, 22 Jun 2017 10:00:13 GMT):
Hello everyone, How can I know which _sk file do I have to pick for the FABRIC_CA_SERVER_TLS_KEYFILE? I have 3 differents documents created using crypto tools and I don't know which one to take. Thanks!

Pere-Lluis (Thu, 22 Jun 2017 10:22:45 GMT):
I'm not enterelly sure, but there's one at the peer folder

Pere-Lluis (Thu, 22 Jun 2017 10:22:58 GMT):
within the ca folder

Pere-Lluis (Thu, 22 Jun 2017 10:24:02 GMT):
there's a .pem and a sk

Pere-Lluis (Thu, 22 Jun 2017 10:26:28 GMT):

Message Attachments

Pere-Lluis (Thu, 22 Jun 2017 10:27:12 GMT):
you should have something similar

Gerard9494 (Thu, 22 Jun 2017 12:18:20 GMT):
@Pere-Lluis thanks! I have three documents, no just one, but I think i haven't generated correctly the crypto certs

lbennett (Thu, 22 Jun 2017 17:03:10 GMT):
@Pere-Lluis - tx - I was using alpha instead of the beta version of composer.

vdods (Thu, 22 Jun 2017 19:57:26 GMT):
Hi all, I need help with porting the v0.6 chaincode that verified the transactor's identity (as well as extracted cert attributes) to v1.0. ChaincodeStubInterface is woefully underdocumented, which would be ok if the relevant methods returned meaningful and specific types, but it generally returns []byte, and doesn't indicate the format or type of that return value. Apropos: https://jira.hyperledger.org/browse/FAB-3959

vdods (Thu, 22 Jun 2017 19:58:46 GMT):
In particular, I need to know exactly what the following ChaincodeStubInterface methods do and *exactly* what formatted data they return: GetCreator, GetBinding, GetSignedProposal

mastersingh24 (Thu, 22 Jun 2017 19:59:49 GMT):
@vdods - v1.0.0 does not currently support TCerts (and therefore does not support attributes either)

vdods (Thu, 22 Jun 2017 20:00:07 GMT):
@mastersingh24 That's fine, I'm ok using ECerts

vdods (Thu, 22 Jun 2017 20:00:20 GMT):
All I really need is to be able to cryptographically verify the caller's identity in chaincode

vdods (Thu, 22 Jun 2017 20:00:25 GMT):
*transactor's identity

mastersingh24 (Thu, 22 Jun 2017 20:22:02 GMT):
To get the identity of the signer of the transaction, you can: 1) Call GetCreator 2) It returns a serialized / marshaled version of https://github.com/hyperledger/fabric/blob/master/protos/msp/identities.proto#L27 3) Once you unmarshal the bytes to a `SerializedIdentity`, you'll want to access the `id_bytes field (SerializedIdentity.IdBytes)` 4) `SerializedIdentity.IdBytes` is a PEM-encoded X509 certificate

mastersingh24 (Thu, 22 Jun 2017 20:22:14 GMT):
So something like this should work: ``` import ( "crypto/x509" "encoding/pem" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric/core/chaincode/shim" mspprotos "github.com/hyperledger/fabric/protos/msp" ) func getSigner(stub shim.ChaincodeStubInterface) { creator,err := stub.GetCreator() id := &mspprotos.SerializedIdentity{} err = proto.Unmarshal(creator, id) block, _ = pem.Decode(id.IdBytes) cert,err := x509.ParseCertificate(block.Bytes) enrollID := cert.Subject.CommonName } ```

vdods (Thu, 22 Jun 2017 20:38:01 GMT):
@mastersingh24 Much appreciated!

vdods (Thu, 22 Jun 2017 21:03:53 GMT):
@mastersingh24 How does one modify the docker image that the peer runs the chaincode within? It's failing to compile chaincode because of a missing import lib (github.com/golang/protobuf/proto)

vdods (Thu, 22 Jun 2017 21:04:22 GMT):
Presumably one can specify a Dockerfile with the chaincode (I think I remember seeing this in v0.6), though I haven't seen any indication of that in fabric-sdk-node v1.0 docs

mastersingh24 (Thu, 22 Jun 2017 21:10:16 GMT):
ah - @vdods - are you using the beta stuff?

mastersingh24 (Thu, 22 Jun 2017 21:10:38 GMT):
There is an issue with the way the peer cli creates the install package in the beta

mastersingh24 (Thu, 22 Jun 2017 21:10:44 GMT):
We have since rectified that

vdods (Thu, 22 Jun 2017 21:11:03 GMT):
Well, no.. I'm still on alpha2 -- I was thinking I'd get as far as I could before making a possibly api-breaking change

vdods (Thu, 22 Jun 2017 21:11:11 GMT):
ok

mastersingh24 (Thu, 22 Jun 2017 21:11:35 GMT):
But with alpha2 - you can vendor the protobuf library

vdods (Thu, 22 Jun 2017 21:11:36 GMT):
that is probably a good reason to upgrade. Should I expect a lot of API breakage? I'm thinking mostly in fabric-sdk-node

mastersingh24 (Thu, 22 Jun 2017 21:12:03 GMT):
We'll have another release early next week - the changes are not too terrible

vdods (Thu, 22 Jun 2017 21:12:05 GMT):
vendor it into which image?

mastersingh24 (Thu, 22 Jun 2017 21:12:16 GMT):
in your actually chaincode source project

vdods (Thu, 22 Jun 2017 21:12:24 GMT):
ahhh right

vdods (Thu, 22 Jun 2017 21:12:29 GMT):
that's nice and simple

vdods (Thu, 22 Jun 2017 21:12:34 GMT):
thanks!

mastersingh24 (Thu, 22 Jun 2017 21:12:50 GMT):
yep - and that will work in the version we have coming out as well ;)

davidkel (Thu, 22 Jun 2017 21:24:37 GMT):
@mastersingh24 useful code snip, many thanks I can replace my hack now :-) . Although bit disappointed that it's a protobuf as this makes the api overly complex and unintuitive to use

mastersingh24 (Thu, 22 Jun 2017 21:27:31 GMT):
I hear ya - working on some ideas on how to improve

mastersingh24 (Thu, 22 Jun 2017 21:27:53 GMT):
The issue is that technically we support multiple types of identities

mastersingh24 (Thu, 22 Jun 2017 21:28:28 GMT):
But I think we could possibly do some processing prior to chaincode execution but still leave the "raw" API for those that want it

tennenjl (Thu, 22 Jun 2017 21:34:47 GMT):
Team, have there been any tests with a large number of peers that are in disconnected mode and then after a period of time have been reconnected, if so is there anywhere that I can learn more about any testing? Thanks!

vdods (Thu, 22 Jun 2017 21:48:43 GMT):
@mastersingh24 Hmm.. I vendored the package, but there's no indication that the fabric-sdk-node actually packages up the whole gopath when it installs the chaincode (again, this is alpha2)

vdods (Thu, 22 Jun 2017 21:49:31 GMT):
in fact, it only packages up entries from the chaincodePath (relative to GOPATH)

vdods (Thu, 22 Jun 2017 21:52:36 GMT):
Ah, in fact it officially states that: ``` // All of the files in the directory of the environment variable // GOPATH joined to the request.chaincodePath will be included // in an archive file. // ------------------------------------------------------------------------- module.exports.package = function(chaincodePath) { logger.info('packaging GOLANG from %s', chaincodePath); ```

vdods (Thu, 22 Jun 2017 21:53:02 GMT):
I can hack it for now and put protobuf under my own chaincode path

CodeReaper (Fri, 23 Jun 2017 05:24:36 GMT):
ca_peerOrg1 | Error: Validation of certificate and key failed: Invalid certificate and/or key in files '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem' and '/etc/hyperledger/fabric-ca-server-config/dce35f70ae480e75aceb1e25e9d926ea0ee61f1f8c2e80ab08794d90d306b232_sk': Public key and private key do not match

CodeReaper (Fri, 23 Jun 2017 05:31:00 GMT):
Hey I've made a custom docker-environment for 1 CA. 1 orderer, and 5 peers. I made all the certs using cryptogen accordingly. I changed my aml file accordingly, giving the right FABRIC_CA_SERVER_TLS_KEYFILE and FABRIC_CA_SERVER_CA_KEYFILE. But when my CA looks to check whether my private key and public keys match it gives an error like this-- ca_peerOrg1 | Error: Validation of certificate and key failed: Invalid certificate and/or key in files '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem' and '/etc/hyperledger/fabric-ca-server-config/dce35f70ae480e75aceb1e25e9d926ea0ee61f1f8c2e80ab08794d90d306b232_sk': Public key and private key do not match What could be the problem??Any help appreciable

SubhraMazumdar (Fri, 23 Jun 2017 07:55:35 GMT):
I created a network of 6 peer nodes and 1 orderer. I used different MSP for orderer and peer nodes. But it seems orderer is not functioning because of different MSP structure message fails to reach orderer network. So if I am not installing chaincode in Peer node 0, none of the endorsement policy works . On installing it in Peer node 0, only this one pops up under endorser , others are neglected. What to do ?

SubhraMazumdar (Fri, 23 Jun 2017 07:58:27 GMT):
I am using Solo with kafka as consensus for orderer

saism (Fri, 23 Jun 2017 09:19:04 GMT):
does configtxgen tool requires specific key format?

holocron (Fri, 23 Jun 2017 11:00:27 GMT):
is configtxgen the only approved method for channel genesis block creation, or do any of the sdk's support the capability somehow? I see that there was a way through the node-sdk to create a channel but it was unsupported and removed in beta

holocron (Fri, 23 Jun 2017 11:00:27 GMT):
is configtxgen the only approved method for channel genesis block creation, or do any of the sdk's support the capability somehow? I see that there was a way through the node-sdk to create a channel configtx but it was unsupported and removed in beta

mastersingh24 (Fri, 23 Jun 2017 13:36:08 GMT):
@holocron - configtxgen and confixtxlator are the only supported methods for creating genesis block and channel config transactions

holocron (Fri, 23 Jun 2017 13:36:23 GMT):
thanks

groussarda (Fri, 23 Jun 2017 14:55:10 GMT):
Has joined the channel.

groussarda (Fri, 23 Jun 2017 14:58:58 GMT):
Hello, I have a question regarding the way channels works. For members of channel, they share the same ledger, and nobody else who is not a member shares it. Does it mean that only its members are in charge of storing the ledger ?

groussarda (Fri, 23 Jun 2017 15:00:06 GMT):
What does happen if the channel members leave the channel and get replace by new members ? How does the new members retrieve the ledger of the channel ?

jyellick (Fri, 23 Jun 2017 15:07:02 GMT):
@groussarda For now, the orderer retains a full copy of the ledger for any new clients. Assuming the clients were swapped out slowly, the gossip networking could also be used to replicate state and blocks. Eventually, post v1, we plan to introduce checkpointing which will allow for a new peer to get the current world state when joining a channel without having to replay the channel from its genesis.

groussarda (Fri, 23 Jun 2017 15:15:28 GMT):
@jyellick Alright, thank you !

AntonOyung (Fri, 23 Jun 2017 17:14:30 GMT):
Has joined the channel.

AntonOyung (Fri, 23 Jun 2017 17:23:27 GMT):
I'm trying to do the getting started tutorial and when I run the ./network_setup.sh up command I get this error does anyone know what I may be doing wrong? `Creating network "windowsamd64_default" with the default driver Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... manifest for hyperledger/fabric-orderer:latest not found ERROR !!!! Unable to pull the images`

weeds (Fri, 23 Jun 2017 19:30:24 GMT):
@lehors can you help - see AntonOyung

lehors (Fri, 23 Jun 2017 19:31:13 GMT):
hi

lehors (Fri, 23 Jun 2017 19:31:44 GMT):
could you please tell us a bit more about your environment: which system, which version of fabric

lehors (Fri, 23 Jun 2017 19:32:08 GMT):
@AntonOyung ^^

lehors (Fri, 23 Jun 2017 19:32:50 GMT):
specifically, are you on Windows 10 or 7?

mastersingh24 (Fri, 23 Jun 2017 20:12:06 GMT):
`hyperledger/fabric-orderer:latest` does not exist

saism (Sat, 24 Jun 2017 03:22:05 GMT):
I'm reading release notes, there is a mention that cryptogen now uses two CAs to generate TLS and signcerts, how can I reproduce this with using fabric-ca? In general how would these types of certs be different? https://github.com/hyperledger/fabric/commit/ea3528e1b8961793196524a2fd34df5c0cd88614 FAB-4903, FAB-4904

obernin (Sun, 25 Jun 2017 17:29:19 GMT):
Hi - looking at the sample (e2e), I am wondering why is there a dedicated organisation to run the orderer nodes ? is that a requirement that it be separate from the organisation running the peers ? If yes, why ? How to write the "crypto-config.yaml" file to have an organisation running both orderer(s) and peer(s) ? Thank you

jeffgarratt (Sun, 25 Jun 2017 18:09:59 GMT):
@obernin it has been an assumption that the ordering service will be offered as a standard service by 'trusted' providers. However, this is not technically required.

vdods (Sun, 25 Jun 2017 18:13:41 GMT):
Hi all, is there an env var which controls the fabric dockercontroller logging level? I grepped around but didn't come up with any obvious viper-based config retrieval call, or an obvious indirect one (such as in the serve function in fabric/peer/node/start.go)

vdods (Sun, 25 Jun 2017 18:14:34 GMT):
I'm getting errors in my install/instantiate, but the dockercontroller is frustratingly reticent about why: ``` peer1.org1.ledgerdomain | 2017-06-25 17:51:31.357 UTC [dockercontroller] Start -> ERRO 032 start-could not recreate container post recreate image: no such image ```

vdods (Sun, 25 Jun 2017 18:15:07 GMT):
I've separately verified that the chaincode does indeed build

vdods (Sun, 25 Jun 2017 18:17:33 GMT):
Related side question: Is dev-mode in the peers working in fabric 1? I recall that at some point it was temporarily unsupported

vdods (Sun, 25 Jun 2017 19:51:18 GMT):
Nevermind -- the problem was that I had a CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE set on my peer that didn't match my actual docker network name.

sai_ganesh (Mon, 26 Jun 2017 10:01:45 GMT):
Has joined the channel.

Gerard9494 (Mon, 26 Jun 2017 10:09:16 GMT):
Hello everyone, When I try to enroll a user i have this problem "No certificates found for provided serial and aki" doesn anyone knows what is going wrong? I can register+enroll just one user, then i have this problem. Thanks!

sai_ganesh (Mon, 26 Jun 2017 10:47:54 GMT):
Hi all, I am following the Hyperledger tutorial to write my first application in Hyperledger. In the samples folder, I ran the startfabric.sh script, but got the following error. ERRO 005 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP. Any help?

sai_ganesh (Mon, 26 Jun 2017 10:47:54 GMT):
Hi all, I am following the Hyperledger tutorial to write my first application in Hyperledger. In the samples folder, I ran the startfabric.sh script, but got the following error. ERRO 005 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP. Any help?

sai_ganesh (Mon, 26 Jun 2017 10:47:54 GMT):
Hi all, I am following the Hyperledger tutorial to write my first application in Hyperledger. In the samples folder, I ran the startfabric.sh script, but got the following error. '''ERRO 005 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP. Any help?

sai_ganesh (Mon, 26 Jun 2017 10:47:54 GMT):
Hi all, I am following the Hyperledger tutorial to write my first application in Hyperledger. In the samples folder, I ran the startfabric.sh script, but got the following error. ERRO 005 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP. Any help?

sai_ganesh (Mon, 26 Jun 2017 10:48:10 GMT):
''

mastersingh24 (Mon, 26 Jun 2017 12:10:53 GMT):
@sai_ganesh - when did you clone the samples? You might want to refresh your clone

sai_ganesh (Mon, 26 Jun 2017 12:43:15 GMT):
@mastersingh24 . The samples were cloned a week ago.

mastersingh24 (Mon, 26 Jun 2017 12:58:33 GMT):
ah - yeah - you'll likely want to do a git pull to refresh them

mastersingh24 (Mon, 26 Jun 2017 12:58:52 GMT):
we updated the crypto material on Friday and things work with the new crypto material

jmcnevin (Mon, 26 Jun 2017 13:25:49 GMT):
In the fabric docs, under endorsement policies, it shows principals as "Org1.admin" or "Org1.member"... but how is the admin/member distinction made in fabric-ca?

Gerard9494 (Mon, 26 Jun 2017 15:06:39 GMT):
Hello everyone, When I try to enroll a user I have this problem "[DEBUG] Failed to verify certificate: Failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")" doesnt anyone knows what is going wrong? Thanks!

mastersingh24 (Mon, 26 Jun 2017 15:33:16 GMT):
@Gerard9494 - what exactly are you doing / using?

mahoney1 (Mon, 26 Jun 2017 17:13:24 GMT):
Has joined the channel.

mahoney1 (Mon, 26 Jun 2017 17:24:02 GMT):
hi there (from my client): from an operational standpoint, can you 'stop' a channel - for application-type transactions? That is, 'quiesce' the channel (ie the question posed is from an operational management perspective based on a time-event)

jeffgarratt (Mon, 26 Jun 2017 17:29:17 GMT):
@mahoney1 one possibility is to alter the policies associated with the channel with a config update. However, in general config changes require multiple signatures from channel members.

jeffgarratt (Mon, 26 Jun 2017 17:30:05 GMT):
but once the config is changed, you can effectively 'stop' the channel, i.e. alter ability read and write.

jeffgarratt (Mon, 26 Jun 2017 17:30:05 GMT):
but once the config is changed, you can effectively 'stop' the channel, i.e. alter ability to write.

jeffgarratt (Mon, 26 Jun 2017 17:30:48 GMT):
this would still allow for reads, but the chain would not progress, as no writes are allowed

mahoney1 (Mon, 26 Jun 2017 18:43:25 GMT):
@jeffgarratt ..sure, I understand - thank you

jeffgarratt (Mon, 26 Jun 2017 18:43:48 GMT):
@mahoney1 your most welcome!

tennenjl (Mon, 26 Jun 2017 19:37:01 GMT):
Hi, does anyone have any recommendations on docs I can read on how to configure fabric to use an external CA? Thanks!

jmcnevin (Mon, 26 Jun 2017 20:05:51 GMT):
I'm trying to understand how one would bootstrap a production network with a fabric-ca server... I've enrolled an identity in fabric-ca and have stored the ecerts in a msp directory, but running configtxgen to generate an orderer genesis block, there's no admincerts directory... where would I get the certs for that directory?

davidkel (Mon, 26 Jun 2017 21:45:11 GMT):
What controls whether an MSP Admin or Member can install chaincode to a peer ? Or is it not controllable and you must always be an admin of the peer to install chaincode ?

mastersingh24 (Mon, 26 Jun 2017 22:16:54 GMT):
@davidkel - you must always be an admin of the peer's organization to install chaincode

mastersingh24 (Mon, 26 Jun 2017 22:17:12 GMT):
And to instantiate chaincode you must be an admin of any of the orgs which belong to the channel

mastersingh24 (Mon, 26 Jun 2017 22:17:20 GMT):
It's not configurable

davidkel (Mon, 26 Jun 2017 22:21:44 GMT):
Thanks @mastersingh24 How do I define an Admin for an org ?

mastersingh24 (Mon, 26 Jun 2017 22:22:40 GMT):
You add the admin users' public key to the `admincerts` folder in the MSP folder structure

mastersingh24 (Mon, 26 Jun 2017 22:22:40 GMT):
You add the admin user's public key to the `admincerts` folder in the MSP folder structure

mastersingh24 (Mon, 26 Jun 2017 22:24:24 GMT):
For example, in the fabric-samples/fabcar sample network, you'll notice that https://github.com/hyperledger/fabric-samples/tree/master/fabcar/network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/admincerts is the same as https://github.com/hyperledger/fabric-samples/tree/master/fabcar/network/crypto-config/peerOrganizations/org1.example.com/users/Admin%40org1.example.com/msp/signcerts

davidkel (Mon, 26 Jun 2017 22:26:36 GMT):
My question comes from the fact that when Jeff tried to use composer to deploy a business network, he was able to install the chaincode using the Admin for that peer but the instantiate failed as unauthorized so that cert needed to be placed elsewhere in order for the instantiate to work

davidkel (Mon, 26 Jun 2017 22:27:23 GMT):
But there was the discussion that the cert used to sign the instantiate would not be the same as a cert used to install onto Peer orgs

davidkel (Mon, 26 Jun 2017 22:28:59 GMT):
Although for my fabric setup I can instantiate using the Admin user of a Peer but I thought that might have been because my AdminPrinciple for the Order organisation was set to Role.Member

mastersingh24 (Mon, 26 Jun 2017 22:37:11 GMT):
So I should clarify. In order to instantiate chaincode on a channel: 1) You need to be able to have WRITE access to the channel. This of course is determined by the channel writers policy and is typically any member of any organization which is part of the channel. Given the the admin certificate will qualify as a member of the channel, admin should be able to submit transactions to the orderer 2) Once the orderer sends the instantiate transaction to the peers, during validation / commit the peers will check to see that the submitter is an admin (admin meaning it was added to the admincerts for it's org's MSP)

davidkel (Mon, 26 Jun 2017 22:41:22 GMT):
@mastersingh24 Many thanks for the clarification. Much appreciated

sai_ganesh (Tue, 27 Jun 2017 06:01:43 GMT):
Thank you @mastersingh24 . I sampled the clones again and it worked this time

LoupTheron (Tue, 27 Jun 2017 08:37:46 GMT):
Hi, In Fabric there is TLS + encryption in application layer ? (ECert + TCert) ?

LoupTheron (Tue, 27 Jun 2017 08:38:50 GMT):
@mastersingh24 ?

mastersingh24 (Tue, 27 Jun 2017 10:47:57 GMT):
@LoupTheron - Fabric supports TLS for connections but there is no application-level encryption built-in

Gerard9494 (Tue, 27 Jun 2017 12:33:16 GMT):
Hello everyone,

Gerard9494 (Tue, 27 Jun 2017 12:37:13 GMT):
Hello everyone, Does somebody knows why do i have this error? "Registration of 'Gerard' failed: Failed getting affiliation 'org3': sql: no rows in result set" I am trying to register the user Gerard to org3. Thanks!

rezamt (Tue, 27 Jun 2017 14:50:22 GMT):
Has joined the channel.

tbberg (Tue, 27 Jun 2017 15:03:08 GMT):
Hello @mastersingh24, I'm back from my holiday now. a lot of changes in the get-started-description. I did everthing again. But the result is the same. xck2025@C1017CE1 MINGW64 /c/users/xck2025/fabric-samples/first-network (master) $ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Starting orderer.example.com ... Starting peer1.org2.example.com ... Starting peer0.org2.example.com ... Starting orderer.example.com Starting peer1.org1.example.com ... Starting peer1.org2.example.com Starting peer0.org2.example.com Starting peer0.org1.example.com ... Starting peer1.org1.example.com Starting peer0.org1.example.com ... done cli is up-to-date /bin/bash: ./scripts/script.sh: No such file or directory #############+ The sample ist located in /c/users//fabric-samples

muralisr (Tue, 27 Jun 2017 15:07:57 GMT):
also tagging @lehors @tbberg ^^^

lehors (Tue, 27 Jun 2017 15:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zfJBs9EPMaNzLysfA) @tbberg Hi, I had the same error yesterday and it went away after I deleted the fabric images and retarded.

lehors (Tue, 27 Jun 2017 15:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zfJBs9EPMaNzLysfA) @tbberg Hi, I had the same error yesterday and it went away after I deleted the fabric images and restarted.

lehors (Tue, 27 Jun 2017 15:18:51 GMT):
Somehow you must not have the latest images

lehors (Tue, 27 Jun 2017 15:19:11 GMT):
At least that was the situation for me

tbberg (Tue, 27 Jun 2017 15:24:04 GMT):
@lehors : Thank you for replying.

tbberg (Tue, 27 Jun 2017 15:26:03 GMT):
I did everything from scratch today. $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE friendlyhello latest e84e78415ba9 About an hour ago 194MB hyperledger/fabric-tools latest 85d6d3ca0a30 3 days ago 1.32GB hyperledger/fabric-tools x86_64-1.0.0-rc1 85d6d3ca0a30 3 days ago 1.32GB hyperledger/fabric-couchdb latest b37a08f8a0cb 3 days ago 1.48GB hyperledger/fabric-couchdb x86_64-1.0.0-rc1 b37a08f8a0cb 3 days ago 1.48GB hyperledger/fabric-kafka latest dbb5796d915f 3 days ago 1.3GB hyperledger/fabric-kafka x86_64-1.0.0-rc1 dbb5796d915f 3 days ago 1.3GB hyperledger/fabric-zookeeper latest d2efbb01a999 3 days ago 1.31GB hyperledger/fabric-zookeeper x86_64-1.0.0-rc1 d2efbb01a999 3 days ago 1.31GB hyperledger/fabric-orderer latest 5ec6333eae10 3 days ago 179MB hyperledger/fabric-orderer x86_64-1.0.0-rc1 5ec6333eae10 3 days ago 179MB hyperledger/fabric-peer latest cf6bedc2935e 3 days ago 182MB hyperledger/fabric-peer x86_64-1.0.0-rc1 cf6bedc2935e 3 days ago 182MB hyperledger/fabric-javaenv latest 7cbe6aca3956 3 days ago 1.42GB hyperledger/fabric-javaenv x86_64-1.0.0-rc1 7cbe6aca3956 3 days ago 1.42GB hyperledger/fabric-ca latest cea779a46670 3 days ago 238MB hyperledger/fabric-ca x86_64-1.0.0-rc1 cea779a46670 3 days ago 238MB hyperledger/fabric-ccenv latest 13ed472038d2 3 days ago 1.29GB hyperledger/fabric-ccenv x86_64-1.0.0-rc1 13ed472038d2 3 days ago 1.29GB I

Gerard9494 (Tue, 27 Jun 2017 16:23:56 GMT):
How can i give an fabric-ca-server-config.yaml specific when i run the server using docker-compose? This is what i do right now, but it doesn't work ca.org1.example.com: image: hyperledger/fabric-ca:x86_64-1.0.0-rc1 environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/28fac2ea7fc90b5eaf5d4d4260fb2e019729a50d1ae0e3c8889f1ef472d617ca_sk #fabric-sdk-node/examples/balance-transfer/artifacts/channel/crypto-config/peerOrganizations/org1.example.com/ca/ - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/28fac2ea7fc90b5eaf5d4d4260fb2e019729a50d1ae0e3c8889f1ef472d617ca_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d --config fabric-ca-server-config2.yaml' volumes: - ./channel/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerOrg1 Thanks!

toddinpal (Tue, 27 Jun 2017 21:25:28 GMT):
@jeffgarratt Hey Jeff, how did you access that network diagram that is created in the behave tests?

jeffgarratt (Tue, 27 Jun 2017 21:27:15 GMT):
@toddinpal It is generated

jeffgarratt (Tue, 27 Jun 2017 21:28:08 GMT):
ohh, to access, simply go into the ,bddtests/tmp//scenario,html file and search for 'we compose'

jeffgarratt (Tue, 27 Jun 2017 21:28:08 GMT):
@toddinpal ohh, to access, simply go into the ,bddtests/tmp//scenario,html file and search for 'we compose'

jeffgarratt (Tue, 27 Jun 2017 21:28:55 GMT):
scroll down a bit and you will see the diagram

toddinpal (Tue, 27 Jun 2017 21:35:23 GMT):
ok, thanks

danielhex (Tue, 27 Jun 2017 22:48:36 GMT):
Has joined the channel.

danielhex (Tue, 27 Jun 2017 22:58:21 GMT):
Hi, I am following the tutorial in 'Writing You First Application'. When executing 'node query.js', I hit the following error:

danielhex (Tue, 27 Jun 2017 23:01:22 GMT):

Message Attachments

danielhex (Tue, 27 Jun 2017 23:02:08 GMT):
I did 'git pull' so I think I have the latest code base. Could someone help out?

jeffgarratt (Tue, 27 Jun 2017 23:49:24 GMT):
@danielhex it looks like issue connecting to peer. Could be either peer is unreachable, or perhaps TLS config issue

danielhex (Tue, 27 Jun 2017 23:59:57 GMT):
@jeffgarratt The peers and TLS config are set up through './startFabric.sh' and it succeeded. I didn't do anything out of the scope of the tutorial. Is there a way to troubleshoot this problem?

danielhex (Wed, 28 Jun 2017 00:00:34 GMT):
I noticed some error logs from docker daemon. I am not sure if they are related to the connection failure.

danielhex (Wed, 28 Jun 2017 00:00:49 GMT):
INFO[0000] Firewalld running: false INFO[0000] Firewalld running: false INFO[0000] Firewalld running: false ERRO[11446] Handler for POST /containers/dev-peer0.org1.example.com-fabcar-1.0/stop returned error: No such container: dev-peer0.org1.example.com-fabcar-1.0 ERRO[11446] Handler for POST /containers/dev-peer0.org1.example.com-fabcar-1.0/kill returned error: Cannot kill container dev-peer0.org1.example.com-fabcar-1.0: No such container: dev-peer0.org1.example.com-fabcar-1.0 ERRO[11446] Handler for DELETE /containers/dev-peer0.org1.example.com-fabcar-1.0 returned error: No such container: dev-peer0.org1.example.com-fabcar-1.0 WARN[11446] Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap. ERRO[11446] Handler for POST /containers/create returned error: No such image: dev-peer0.org1.example.com-fabcar-1.0:latest INFO[11456] Layer sha256:0bee05c9c90c84b6ca36fded5ff98629ac8fec4d366e9fc55179de66a6e4890d cleaned up INFO[11457] Layer sha256:0bee05c9c90c84b6ca36fded5ff98629ac8fec4d366e9fc55179de66a6e4890d cleaned up WARN[11457] Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap. INFO[0000] Firewalld running: false

jeffgarratt (Wed, 28 Jun 2017 00:01:15 GMT):
hmm

jeffgarratt (Wed, 28 Jun 2017 00:01:42 GMT):
this one looks bad -> Handler for POST /containers/create returned error: No such image: dev-peer0.org1.example.com-fabcar-1.0:latest

jeffgarratt (Wed, 28 Jun 2017 00:02:46 GMT):
what is the full link to the startF...?

danielhex (Wed, 28 Jun 2017 00:06:54 GMT):
startFabric.sh is inside the folder of '/fabric-samples/fabcar'. I am following the instructions in https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html in section 'Querying the Ledger'

mochechan (Wed, 28 Jun 2017 02:13:25 GMT):
In orderer to create kafka cluster, I followed the instruction attempting to find out the answer: https://github.com/hyperledger/fabric/tree/master/bddtests However, when I run the command "behave -k -D cache-deployment-spec", the screen shows that several tests are skipped. So, I run the command "behave -D cache-deployment-spec" without -k. The screen still shows that several tests are skipped. What's wrong with it? How can I run kafka tests? How can I create kafka cluster?

jeffgarratt (Wed, 28 Jun 2017 02:46:24 GMT):
@mochechan scroll to the bottom of the features/bootstrap.feature file, there you will find commented out scenario example lines. Simply comment out the first one (dc-base.yml) which is solo, and uncomment the line of your choosing. If you want kafka, simply uncomment that line and execute again.

jeffgarratt (Wed, 28 Jun 2017 02:46:58 GMT):
be sure to uncomment the \@doNotDecompose tag at the top to keep your system from being decomposed automatically at completion

mochechan (Wed, 28 Jun 2017 07:37:14 GMT):
@jeffgarratt Thank you. Your method is working. Now, I am going to extract the part regarding kafka creation to replace solo. I don't know much about python/behave. Could you kindly give me more hints? Thank you very much.

CodeReaper (Wed, 28 Jun 2017 07:40:32 GMT):
Hey @mastersingh24 , I made another customized network after recent changes. When I do ./byfn generate and then up with my customized input files I get docker-compose-e2e.yaml according to the customized template one. But I have started getting these 2 warnings for every peer.

CodeReaper (Wed, 28 Jun 2017 07:40:32 GMT):
Hey @mastersingh24 , I made another customized network after recent changes. When I do ./byfn generate and then up with my customized input files I get docker-compose-e2e.yaml according to the customized template one. But I have started getting these 2 warnings for every peer. peer4.org1.example.com | 2017-06-28 07:33:38.661 UTC [nodeCmd] createChaincodeServer -> WARN 021 peer.chaincodeListenAddress is not set, use peer.listenAddress 0.0.0.0:7051 peer2.org1.example.com | 2017-06-28 07:33:39.181 UTC [gossip/discovery] func1 -> WARN 1a0 Could not connect to {peer0.org1.example.com:7051 [] [] peer0.org1.example.com:7051} : context deadline exceeded Any advices?? Would u prefer to see all files in repo?

CodeReaper (Wed, 28 Jun 2017 07:45:05 GMT):

Message Attachments

bh4rtp (Wed, 28 Jun 2017 09:08:47 GMT):
hi, i am running example/e2e_cli on centos 7. execute `./network_setup.sh up ch1 500`, docker-compose will exit with below error: ```ERROR: for peer1.org2.example.com expected string or buffer ERROR: for peer0.org1.example.com expected string or buffer ERROR: for peer1.org1.example.com expected string or buffer ERROR: for peer0.org2.example.com expected string or buffer ERROR: for orderer.example.com expected string or buffer Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 68, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 118, in perform_command handler(command, command_options) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 926, in up scale_override=parse_scale_args(options['--scale']), File "/usr/lib/python2.7/site-packages/compose/project.py", line 424, in up get_deps File "/usr/lib/python2.7/site-packages/compose/parallel.py", line 69, in parallel_execute raise error_to_reraise TypeError: expected string or buffer``` docker-compose version: 1.14.0, docker version: 17.03.1-ce.

CodeReaper (Wed, 28 Jun 2017 10:59:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wXW7JuaZzqk5YtKjy) @mastersingh24 I cloned the new rc1 repo and did curl to make get binaries and other docker files-- It seems to me that there is some problem in the yaml file. The CORE_PEER_GOSSIP_BOOTSTRAP of peer 1 of org1 is set as same as the peer 0 when its supposed to be of peer 1 itself asi verified it from org2's peer 0 and peer 1. This gives the gossip error in terminal. Correct me if I'm wrong.

CodeReaper (Wed, 28 Jun 2017 11:00:20 GMT):

Message Attachments

jeffgarratt (Wed, 28 Jun 2017 13:02:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9d6QMZsSfBM3Td2Pm) @mochechan if you have any questions please feel free to ask them

nickgaski (Wed, 28 Jun 2017 14:48:29 GMT):
@danielhex - what version of node.js do you have?

Gerard9494 (Wed, 28 Jun 2017 15:54:52 GMT):
Hello, How could I add a new organisation to the balance-transfer sample? Thanks!

Gerard9494 (Wed, 28 Jun 2017 15:54:52 GMT):
Hello, How could I add a new organisation to the balance-transfer sample? I've tried adding a new fabric-ca-server at the docker-compose.yaml and generating the crypto material for it. But I can't connect to it to add a new user. Thanks!

obernin (Wed, 28 Jun 2017 16:41:54 GMT):
how can I build the configtxgen tool (or run it from the docker image) ? I seem to have downloaded a copy that doesn't match my network images build and it's panicing when executing ... thanks

nickgaski (Wed, 28 Jun 2017 16:46:54 GMT):
@obernin - from `$GOPATH/src/github.com/hyperledger/fabric` run `make configtxgen` or `make release-all`

nickgaski (Wed, 28 Jun 2017 16:47:28 GMT):
the first will go into build/bin , then second will go into release/

danielhex (Wed, 28 Jun 2017 17:02:47 GMT):
@nickgaski My node.js version is v6.11.0.

Tigermisu (Wed, 28 Jun 2017 19:03:57 GMT):
Has joined the channel.

rezamt (Thu, 29 Jun 2017 00:57:17 GMT):
Hi is there any setting that in fabric peer, to prevent launching a chaincode container? And also why this feature is required? Please send me a link if its mentioned in docs.

jeffgarratt (Thu, 29 Jun 2017 01:00:57 GMT):
@rezamt if you do not install any chaincode, it will never launch

jeffgarratt (Thu, 29 Jun 2017 01:00:57 GMT):
@rezamt if you do not install any chaincode on that peer, it will never launch

rezamt (Thu, 29 Jun 2017 01:29:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8WLPGze5mhFQDbjay) @jeffgarratt - Thats true. I rephrase my question is why the peer needs to launch a chaincode instance?

rezamt (Thu, 29 Jun 2017 01:29:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8WLPGze5mhFQDbjay) @jeffgarratt - Thats true. I rephrase my question - why does the peer needs to launch a chaincode instance?

rezamt (Thu, 29 Jun 2017 01:29:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b4fZaRcHruXfm39wy) @jeffgarratt Thanks for the reply jeff. And my last question is, if I install 2nd Chaincode, does it get executed in a separated runtime environment ?

rezamt (Thu, 29 Jun 2017 01:50:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wAtoWGHRHh983Arzn) @rezamt

jeffgarratt (Thu, 29 Jun 2017 13:04:59 GMT):
@rezamt During instantiatiation the chaincode is launched to verify availability. Subsequent endorsement requests will also trigger launching if the chaincode is not active at that moment (for example, if you stop and restart the peer)

rezamt (Thu, 29 Jun 2017 13:13:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b4fZaRcHruXfm39wy) @jeffgarratt

jeffgarratt (Thu, 29 Jun 2017 13:14:44 GMT):
@rezamt yes, separate chaincode are launched in separate containers

rezamt (Thu, 29 Jun 2017 13:15:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tvbbGMyqrSnMJioMA) @jeffgarratt Thank you.

udaykhambadkone (Thu, 29 Jun 2017 14:14:30 GMT):
Has joined the channel.

udaykhambadkone (Thu, 29 Jun 2017 14:14:45 GMT):
I have a few question about Fabric architecture. 1> In the fabric network, who owns the Fabric CA and how the keys are managed? Does each organization have a distributed system for PKI? 2> In the configuration files for endorsement policies and other configuration, how are they stored and managed. Is it distributed to all the peers on the system? 3> If a new peer/organization joins the fabric network, who decides to add them to the policy and distribute?

rbv (Thu, 29 Jun 2017 14:41:12 GMT):
Has joined the channel.

rbv (Thu, 29 Jun 2017 14:42:41 GMT):
Hello everyone, I am currently trying to set up fabric for java following the example that's on the fabric GitHub. Once I clone the repository, I tried to start up docker-compose so that I could install javacc and it's giving me the following *error: 2017-06-29 14:11:38.828 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP* . This is a pretty common error, I'm wondering if anyone has ever seen this or can offer any suggestions?

HypleA (Thu, 29 Jun 2017 14:51:06 GMT):
Has joined the channel.

HypleA (Thu, 29 Jun 2017 14:51:16 GMT):
i have some theoretical questions regarding the fabric: 1) Is it possible for init() to be executed multiple times for the same chaincode and if so how is the state affected ? 2) Last but not least can we use endorsement policies in a conditional way and not as an access control list? I mean how do you grant access to another node if they are not specified in the endorsement policies in a dynamic way?

tbberg (Thu, 29 Jun 2017 15:12:27 GMT):
I'm still struggling with the fabric-samples On Thuesday I did everthing new from scratch Installing Windows Docker Toolbox Starting Docker Toolbox git clone https://github.com/hyperledger/fabric-samples.git cd fabric-sample curl -sSL https://goo.gl/LQkuoh | bash (this I did again today) The following directories are now on my system C:\Users\\machines C:\Users\\cache C:\Users\\.VirtualBox C:\Users\\crypto-config C:\Users\\fabric-samples $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-tools latest ae6b0f53cb70 2 weeks ago 1.32GB hyperledger/fabric-tools x86_64-1.0.0-beta ae6b0f53cb70 2 weeks ago 1.32GB hyperledger/fabric-couchdb latest 31bbbec3d853 2 weeks ago 1.48GB hyperledger/fabric-couchdb x86_64-1.0.0-beta 31bbbec3d853 2 weeks ago 1.48GB hyperledger/fabric-kafka latest c4ac1c9a4797 2 weeks ago 1.3GB hyperledger/fabric-kafka x86_64-1.0.0-beta c4ac1c9a4797 2 weeks ago 1.3GB hyperledger/fabric-zookeeper latest 2c4ebacb6f00 2 weeks ago 1.31GB hyperledger/fabric-zookeeper x86_64-1.0.0-beta 2c4ebacb6f00 2 weeks ago 1.31GB hyperledger/fabric-orderer latest 11ff350dd297 2 weeks ago 179MB hyperledger/fabric-orderer x86_64-1.0.0-beta 11ff350dd297 2 weeks ago 179MB hyperledger/fabric-peer latest e01c2b645f11 2 weeks ago 182MB hyperledger/fabric-peer x86_64-1.0.0-beta e01c2b645f11 2 weeks ago 182MB hyperledger/fabric-javaenv latest 61c188dca542 2 weeks ago 1.42GB hyperledger/fabric-javaenv x86_64-1.0.0-beta 61c188dca542 2 weeks ago 1.42GB hyperledger/fabric-ccenv latest 7034cca1918d 2 weeks ago 1.29GB hyperledger/fabric-ccenv x86_64-1.0.0-beta 7034cca1918d 2 weeks ago 1.29GB hyperledger/fabric-ca latest e549e8c53c2e 2 weeks ago 238MB hyperledger/fabric-ca x86_64-1.0.0-beta e549e8c53c2e 2 weeks ago 238MB echo $HOME => /y/ docker-machine env default eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env default) cd /c/users//fabric-samples/first-network export PATH=/c//fabric-examples/bin:$PATH ./byfn.sh -m generate => runs perfectly xck2025@C1017CE1 MINGW64 /c/users//fabric-samples/first-network (master) $ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Creating network "net_byfn" with the default driver Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer1.org1.example.com ... Creating peer0.org1.example.com ... Creating peer0.org2.example.com ... Creating peer1.org2.example.com Creating orderer.example.com Creating peer0.org1.example.com Creating peer1.org1.example.com Creating peer0.org2.example.com ... done Creating cli ... Creating cli ... done /bin/bash: ./scripts/script.sh: No such file or directory

Tigermisu (Thu, 29 Jun 2017 18:00:52 GMT):
I have a simple issue, I am running the BYFN example network, except I renamed all the entities to something different for reasons, after modifying most docker-*, the gentool files and the script.sh, I am now running into this error: ``` 2017-06-29 17:54:39.924 UTC [grpc] Printf -> DEBU 007 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.mydomain.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.mydomain.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable ``` Now, I assume I need to set-up this virtualhost(?) somewhere, where would I do such a thing?

nehalshah50 (Thu, 29 Jun 2017 20:56:02 GMT):
Has joined the channel.

tennenjl (Thu, 29 Jun 2017 21:34:29 GMT):
Hi, How does HLFV1 handle chaincode versioning? Thanks!

fh48 (Thu, 29 Jun 2017 21:47:12 GMT):
Has joined the channel.

AntonOyung (Thu, 29 Jun 2017 22:06:10 GMT):
Hello, I'm and undergraduate student who's really excited about Fabric! I was wondering if someone could tell me how the Fabric interacts with its underlying DB. Additionally, I would love to chat with anyone who would be willing to discuss more about Fabric. Thanks all!

guruce (Fri, 30 Jun 2017 02:29:48 GMT):
Has joined the channel.

wealth (Fri, 30 Jun 2017 02:52:54 GMT):
Has joined the channel.

pratyushanaga (Fri, 30 Jun 2017 04:28:35 GMT):
Has joined the channel.

pratyushanaga (Fri, 30 Jun 2017 04:29:41 GMT):
hii everyone.i am getting this error while starting peer: error while loading shared libraries: librocksdb.so.4.1: cannot open shared object file: No such file or directory.can anyone help me out

akdj (Fri, 30 Jun 2017 07:33:43 GMT):
Can anyone explain me, what is the use of the basic-network example?

elrond (Fri, 30 Jun 2017 08:52:21 GMT):
Has joined the channel.

elrond (Fri, 30 Jun 2017 08:52:46 GMT):

Message Attachments

elrond (Fri, 30 Jun 2017 09:08:13 GMT):
never mind

elrond (Fri, 30 Jun 2017 09:08:20 GMT):
i fixed it, had a problem in the grub

elrond (Fri, 30 Jun 2017 09:09:06 GMT):
if anyone get anything similar, do the following: Change GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub so that it looks like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.legacy_systemd_cgroup_controller=yes" quiet is from default Debian grub install. Then update grub and reboot: sudo update-grub sudo reboot

nickgaski (Fri, 30 Jun 2017 12:10:09 GMT):
@akdj - we'll leverage the basic network setup for sample applications . It's a quick and easy docker-compose that will run against the SDK

akdj (Fri, 30 Jun 2017 12:12:46 GMT):
ok, so for the moment, it is not used ?

akdj (Fri, 30 Jun 2017 12:12:46 GMT):
ok, so for the moment, it is not used ? @nickgaski

elrond (Fri, 30 Jun 2017 12:38:43 GMT):

Message Attachments

nickgaski (Fri, 30 Jun 2017 13:39:23 GMT):
@elrond - do the following. `./byfn.sh -m down` `docker network prune` , select `y` , and then restart your docker engine. I've seen a docker restart solve the BAD REQUEST error

nickgaski (Fri, 30 Jun 2017 13:44:20 GMT):
@akdj - there's a CR out there right now to incorporate it

gen_el (Fri, 30 Jun 2017 14:24:42 GMT):
Has joined the channel.

gen_el (Fri, 30 Jun 2017 14:54:49 GMT):
Hi! I just looked at Sawtooth. So i am wondering, what are the limitations of Sawtooth compared to Fabric?

akdj (Fri, 30 Jun 2017 15:34:23 GMT):
what is the meaning of CR? sorry, I am not very good in English...

akdj (Fri, 30 Jun 2017 15:34:23 GMT):
what is the meaning of CR? sorry, I am not very good in English... @nickgaski

holocron (Fri, 30 Jun 2017 15:34:51 GMT):
Change Request

akdj (Fri, 30 Jun 2017 15:34:59 GMT):
thanks

holocron (Fri, 30 Jun 2017 15:35:53 GMT):
@akdj https://hyperledger-fabric.readthedocs.io/en/latest/Gerrit/gerrit.html

akdj (Fri, 30 Jun 2017 15:39:17 GMT):
:flushed: Oh I am not good enough for conribution

akdj (Fri, 30 Jun 2017 15:39:17 GMT):
:flushed: Oh I am not good enough for contribution

akdj (Fri, 30 Jun 2017 15:39:17 GMT):
:flushed: Hmmm....I am not good enough for contribution

jarroyer (Fri, 30 Jun 2017 18:50:22 GMT):
What are some methods for joining a peer to a channel that it didn't create? Does a peer have to have the .block file, or can it join in another way?

jeffgarratt (Fri, 30 Jun 2017 19:22:42 GMT):
@jarroyer needs the block file as far as I know

jarroyer (Fri, 30 Jun 2017 19:24:09 GMT):
How do you get the other peers on the channel then? Can they see the block somehow?

jeffgarratt (Fri, 30 Jun 2017 19:24:19 GMT):
the mechanism by which you obtain this channel genesis block file can differ. The first way is to have it given to you by someone who has the block. Another is to seek on the deliver channel and get the block yourself.

jarroyer (Fri, 30 Jun 2017 19:24:39 GMT):
I'll look into that. Thanks!

jeffgarratt (Fri, 30 Jun 2017 19:25:16 GMT):
@jarroyer your very welcome

jeffgarratt (Fri, 30 Jun 2017 19:25:50 GMT):
fyi, the seek on the orderer will only work if you have the channel name and you are an authorized READER of the channel

jeffgarratt (Fri, 30 Jun 2017 19:27:04 GMT):
but keep in mind the genesis block incorporates many of the artifacts you will need to successfully connect and seek

jeffgarratt (Fri, 30 Jun 2017 19:27:04 GMT):
but keep in mind the genesis block containse many of the artifacts you will need to successfully connect and seek

jarroyer (Fri, 30 Jun 2017 19:27:22 GMT):
Is that using the "peer channel fetch" command?

jeffgarratt (Fri, 30 Jun 2017 19:27:50 GMT):
I think that is the one :)

jeffgarratt (Fri, 30 Jun 2017 19:28:41 GMT):
the -cafile param is referring to the trused root for TLS for the orderer, which should be in the block

danduong (Sat, 01 Jul 2017 09:09:17 GMT):
Has joined the channel.

tbberg (Mon, 03 Jul 2017 06:49:54 GMT):
Good morning! I'm still struggling with the fabric-samples. I still end up with /bin/bash: ./scripts/script.sh: No such file or directory On Thuesday I did everthing new again from scratch Installing Windows Docker Toolbox Starting Docker Toolbox git clone https://github.com/hyperledger/fabric-samples.git cd fabric-sample curl -sSL https://goo.gl/LQkuoh | bash (this I did again today) The following directories are now on my system C:\Users\\machines C:\Users\\cache C:\Users\\.VirtualBox C:\Users\\crypto-config C:\Users\\fabric-samples $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-tools latest ae6b0f53cb70 2 weeks ago 1.32GB hyperledger/fabric-tools x86_64-1.0.0-beta ae6b0f53cb70 2 weeks ago 1.32GB hyperledger/fabric-couchdb latest 31bbbec3d853 2 weeks ago 1.48GB hyperledger/fabric-couchdb x86_64-1.0.0-beta 31bbbec3d853 2 weeks ago 1.48GB hyperledger/fabric-kafka latest c4ac1c9a4797 2 weeks ago 1.3GB hyperledger/fabric-kafka x86_64-1.0.0-beta c4ac1c9a4797 2 weeks ago 1.3GB hyperledger/fabric-zookeeper latest 2c4ebacb6f00 2 weeks ago 1.31GB hyperledger/fabric-zookeeper x86_64-1.0.0-beta 2c4ebacb6f00 2 weeks ago 1.31GB hyperledger/fabric-orderer latest 11ff350dd297 2 weeks ago 179MB hyperledger/fabric-orderer x86_64-1.0.0-beta 11ff350dd297 2 weeks ago 179MB hyperledger/fabric-peer latest e01c2b645f11 2 weeks ago 182MB hyperledger/fabric-peer x86_64-1.0.0-beta e01c2b645f11 2 weeks ago 182MB hyperledger/fabric-javaenv latest 61c188dca542 2 weeks ago 1.42GB hyperledger/fabric-javaenv x86_64-1.0.0-beta 61c188dca542 2 weeks ago 1.42GB hyperledger/fabric-ccenv latest 7034cca1918d 2 weeks ago 1.29GB hyperledger/fabric-ccenv x86_64-1.0.0-beta 7034cca1918d 2 weeks ago 1.29GB hyperledger/fabric-ca latest e549e8c53c2e 2 weeks ago 238MB hyperledger/fabric-ca x86_64-1.0.0-beta e549e8c53c2e 2 weeks ago 238MB echo $HOME => /y/ docker-machine env default eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env default) cd /c/users//fabric-samples/first-network export PATH=/c//fabric-examples/bin:$PATH ./byfn.sh -m generate => runs perfectly xck2025@C1017CE1 MINGW64 /c/users//fabric-samples/first-network (master) $ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Creating network "net_byfn" with the default driver Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer1.org1.example.com ... Creating peer0.org1.example.com ... Creating peer0.org2.example.com ... Creating peer1.org2.example.com Creating orderer.example.com Creating peer0.org1.example.com Creating peer1.org1.example.com Creating peer0.org2.example.com ... done Creating cli ... Creating cli ... done /bin/bash: ./scripts/script.sh: No such file or directory

habpygo (Mon, 03 Jul 2017 08:06:10 GMT):
Has joined the channel.

mastersingh24 (Mon, 03 Jul 2017 10:15:19 GMT):
@tbberg - can you try: ``` ./byfn -m down

mastersingh24 (Mon, 03 Jul 2017 10:15:19 GMT):
@tbberg - can you try: ``` ./byfn.sh -m down dos2unix scripts/script.sh ./byfn.sh -m up ```

mastersingh24 (Mon, 03 Jul 2017 10:30:05 GMT):
@tbberg - I think this is the issue: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html?highlight=git%20config#note-to-windows-users

mastersingh24 (Mon, 03 Jul 2017 10:49:41 GMT):
If you don't want to re-clone, you can try the `dos2unix` step above

RichardGreen (Mon, 03 Jul 2017 10:54:44 GMT):
Has joined the channel.

tbberg (Mon, 03 Jul 2017 10:56:41 GMT):
@mastersingh24 thank you for your help! dos2unix did not help. I will re-clone. This will take some time because I'm away now for a meeting. I'll tell you the result.

RichardGreen (Mon, 03 Jul 2017 11:13:16 GMT):
Am having issues getting started on a mac so will probably try fabric on a VM

RichardGreen (Mon, 03 Jul 2017 11:13:30 GMT):
any recommendations what distro will work best?

RichardGreen (Mon, 03 Jul 2017 11:13:39 GMT):
ubunutu etc?

RichardGreen (Mon, 03 Jul 2017 11:13:39 GMT):
ubuntu etc?

yacovm (Mon, 03 Jul 2017 11:17:10 GMT):
ubuntu 16

mastersingh24 (Mon, 03 Jul 2017 11:18:05 GMT):
@RichardGreen - what issues are you having on macOS?

rohitrocket (Mon, 03 Jul 2017 11:33:40 GMT):
Has joined the channel.

rohitrocket (Mon, 03 Jul 2017 11:37:00 GMT):
@mastersingh24 can you guide me in setting up fabric on ubuntu

elrond (Mon, 03 Jul 2017 11:39:35 GMT):
from the https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst example, trying to run "make docker" command i get this error: Makefile:73: *** "No go in PATH: Check dependencies". Stop.

elrond (Mon, 03 Jul 2017 11:39:39 GMT):
anyone help*

elrond (Mon, 03 Jul 2017 11:39:45 GMT):
?

yacovm (Mon, 03 Jul 2017 11:40:08 GMT):
install go

elrond (Mon, 03 Jul 2017 11:40:28 GMT):
i have go

yacovm (Mon, 03 Jul 2017 11:40:32 GMT):
take a look at https://github.com/yacovm/fabricDeployment/blob/master/install.sh

rohitrocket (Mon, 03 Jul 2017 11:40:35 GMT):
@yacovm @erlond kindly help me too

yacovm (Mon, 03 Jul 2017 11:40:55 GMT):
@rohitrocket what do you need?

yacovm (Mon, 03 Jul 2017 11:41:04 GMT):
ah you want to setup fabric on ubuntu?

rohitrocket (Mon, 03 Jul 2017 11:41:10 GMT):
yes.

yacovm (Mon, 03 Jul 2017 11:41:15 GMT):
just run the `install.sh` script above

elrond (Mon, 03 Jul 2017 11:41:15 GMT):
im on mint 18.1

rohitrocket (Mon, 03 Jul 2017 11:41:20 GMT):
i have docker and go installed

rohitrocket (Mon, 03 Jul 2017 11:42:37 GMT):
@yacovm then whats this fabric-sdk-node all about ?

yacovm (Mon, 03 Jul 2017 11:42:48 GMT):
no idea what you mean

elrond (Mon, 03 Jul 2017 11:42:50 GMT):
EXECUTABLES = go docker git curl K := $(foreach exec,$(EXECUTABLES),\ $(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH: Check dependencies")))

elrond (Mon, 03 Jul 2017 11:42:54 GMT):
i see what it does

elrond (Mon, 03 Jul 2017 11:43:02 GMT):
basically i need a $go

elrond (Mon, 03 Jul 2017 11:43:07 GMT):
to relate to the path

elrond (Mon, 03 Jul 2017 11:43:31 GMT):
could i just change EXECUTABLES to be -> EXECUTABLES = GOPATH docker git curl

elrond (Mon, 03 Jul 2017 11:43:32 GMT):
??

yacovm (Mon, 03 Jul 2017 11:43:41 GMT):
I dunno,

elrond (Mon, 03 Jul 2017 11:43:42 GMT):
depending ofcourse if it shows anywhere else

yacovm (Mon, 03 Jul 2017 11:43:50 GMT):
what are you trying to do

yacovm (Mon, 03 Jul 2017 11:43:51 GMT):
?

yacovm (Mon, 03 Jul 2017 11:43:56 GMT):
I mean the big picture

yacovm (Mon, 03 Jul 2017 11:43:58 GMT):
in a macro level

elrond (Mon, 03 Jul 2017 11:44:04 GMT):
im trying to build this example

elrond (Mon, 03 Jul 2017 11:44:06 GMT):
that i linked

elrond (Mon, 03 Jul 2017 11:44:07 GMT):
to work

elrond (Mon, 03 Jul 2017 11:44:16 GMT):
its a project for school

elrond (Mon, 03 Jul 2017 11:44:24 GMT):
so im fiddling a bit

elrond (Mon, 03 Jul 2017 11:44:24 GMT):
around

yacovm (Mon, 03 Jul 2017 11:44:33 GMT):
a project for school in HLF? :O

elrond (Mon, 03 Jul 2017 11:44:41 GMT):
sorry for bad english

elrond (Mon, 03 Jul 2017 11:44:42 GMT):
uni

elrond (Mon, 03 Jul 2017 11:44:43 GMT):
university

yacovm (Mon, 03 Jul 2017 11:44:49 GMT):
yeah, still

yacovm (Mon, 03 Jul 2017 11:44:50 GMT):
anyway

yacovm (Mon, 03 Jul 2017 11:44:53 GMT):
try to run my script

elrond (Mon, 03 Jul 2017 11:44:54 GMT):
still what?

yacovm (Mon, 03 Jul 2017 11:45:20 GMT):
> try to run my script

elrond (Mon, 03 Jul 2017 11:45:26 GMT):
oh ok, where is it?

rohitrocket (Mon, 03 Jul 2017 11:45:29 GMT):
@yacovm

elrond (Mon, 03 Jul 2017 11:45:29 GMT):
a link to it

elrond (Mon, 03 Jul 2017 11:45:31 GMT):
maybe?

elrond (Mon, 03 Jul 2017 11:45:42 GMT):
aha i see

elrond (Mon, 03 Jul 2017 11:45:44 GMT):
install.sh

elrond (Mon, 03 Jul 2017 11:46:02 GMT):
if it runs ubuntu 16.04, it should mint 18.1 i guess

rohitrocket (Mon, 03 Jul 2017 11:46:05 GMT):
@yacovm do you have any idea about fabric-sdk-node

rohitrocket (Mon, 03 Jul 2017 11:46:06 GMT):
?

yacovm (Mon, 03 Jul 2017 11:46:31 GMT):
not really

elrond (Mon, 03 Jul 2017 11:46:50 GMT):
yacovm, you think building in hyperledger isnt really a thing for a university student?

elrond (Mon, 03 Jul 2017 11:47:02 GMT):
thankful for any insight you can give

yacovm (Mon, 03 Jul 2017 11:47:17 GMT):
no, I'm just surprised that it can be used for a uni project that's all

yacovm (Mon, 03 Jul 2017 11:47:26 GMT):
what's the course?

elrond (Mon, 03 Jul 2017 11:48:32 GMT):
the subject is called, i guess you can translate it to "project" in english. basically, we can do whatever we want, we can use a mentors help or advice, or just go full on something of our own

rohitrocket (Mon, 03 Jul 2017 11:48:49 GMT):
your age erlond ?

elrond (Mon, 03 Jul 2017 11:49:00 GMT):
22

rohitrocket (Mon, 03 Jul 2017 11:49:16 GMT):
masters ?

elrond (Mon, 03 Jul 2017 11:49:34 GMT):
about to, next year i start my master in c science

rohitrocket (Mon, 03 Jul 2017 11:49:52 GMT):
yacovm yours ?

elrond (Mon, 03 Jul 2017 11:49:55 GMT):
although i know a fair bit about mlearning and dlearning as i have taking courses in free time and summer

elrond (Mon, 03 Jul 2017 11:50:05 GMT):
im currently interested in this phenomenon

yacovm (Mon, 03 Jul 2017 11:50:11 GMT):
I don't see how that's related to anything

rohitrocket (Mon, 03 Jul 2017 11:50:39 GMT):
Its not related. But if you feel comfortable to tell me you can.

rohitrocket (Mon, 03 Jul 2017 11:50:52 GMT):
I just wanted to know the age groups here

rohitrocket (Mon, 03 Jul 2017 11:50:57 GMT):
this community

yacovm (Mon, 03 Jul 2017 11:53:57 GMT):
Anyway @elrond it's pretty easy to install HLF

yacovm (Mon, 03 Jul 2017 11:54:00 GMT):
with my script

elrond (Mon, 03 Jul 2017 11:55:29 GMT):
aha, i see you do all installation, ill go and delete my current docker, go and all

elrond (Mon, 03 Jul 2017 11:55:31 GMT):
and run it

Mattasher (Mon, 03 Jul 2017 11:56:25 GMT):
Has joined the channel.

mastersingh24 (Mon, 03 Jul 2017 12:07:06 GMT):
@rohitrocket - Have you taken a look at the updated getting started and the tutorials: http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html (https://chat.hyperledger.org/channel/general?msg=657auuiDpE9xNq9LX)

rohitrocket (Mon, 03 Jul 2017 12:07:39 GMT):
See I am following this one

rohitrocket (Mon, 03 Jul 2017 12:07:43 GMT):
https://www.siliconian.com/blog/15-tutorials/27-hyperledger-fabric-v0-6-on-a-fresh-ubuntu-16-04

mastersingh24 (Mon, 03 Jul 2017 12:08:03 GMT):
That is really old

mastersingh24 (Mon, 03 Jul 2017 12:08:08 GMT):
We have moved way past that

mastersingh24 (Mon, 03 Jul 2017 12:08:24 GMT):
Check out the links above

mastersingh24 (Mon, 03 Jul 2017 12:09:00 GMT):
There is no further development and/or support on the v0.6 codebase

rohitrocket (Mon, 03 Jul 2017 12:09:10 GMT):
so you mean to say

elrond (Mon, 03 Jul 2017 12:09:20 GMT):
im running the script yacovm

rohitrocket (Mon, 03 Jul 2017 12:09:28 GMT):
i have to install hyperledger fabric samples ?

elrond (Mon, 03 Jul 2017 12:14:15 GMT):
yacovm, same crash, the same one i get

elrond (Mon, 03 Jul 2017 12:14:20 GMT):
is the one i get with your scipr

elrond (Mon, 03 Jul 2017 12:14:21 GMT):
script

elrond (Mon, 03 Jul 2017 12:14:24 GMT):
im really puzzled

yacovm (Mon, 03 Jul 2017 12:25:00 GMT):
reload your bash

yacovm (Mon, 03 Jul 2017 12:25:00 GMT):
reload your shell

yacovm (Mon, 03 Jul 2017 12:25:04 GMT):
it needs to reload the env vars

mariogemoll (Mon, 03 Jul 2017 12:51:56 GMT):
Has joined the channel.

RichardGreen (Mon, 03 Jul 2017 13:42:35 GMT):
@mastersingh24 - very similar to the issues I raised first time - ie

RichardGreen (Mon, 03 Jul 2017 13:43:04 GMT):
2017-06-15 18:52:32.632 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-15 18:52:32.632 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-06-15 18:52:32.633 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining imports: go list: failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02: no buildable Go source files in /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02

Eman0 (Mon, 03 Jul 2017 15:40:17 GMT):
Has joined the channel.

jarroyer (Mon, 03 Jul 2017 16:31:03 GMT):
How do I join the Users in an Organization (defined in the crypto-config.yaml) to a channel? It tells me they need to be admins to do so even though they have the .block

olga_k7953127 (Mon, 03 Jul 2017 18:54:32 GMT):
Has joined the channel.

olga_k7953127 (Mon, 03 Jul 2017 19:02:23 GMT):
Hi everyone, can I generate certificates (rootCert, E-cert, T-cert) on the linux-host without internet access, and if so, how? Thanks!

yacovm (Mon, 03 Jul 2017 19:09:34 GMT):
cryptogen

tbberg (Mon, 03 Jul 2017 19:11:11 GMT):
Hello @mastersingh24 no success. A new problem arised. I did $ docker-machine env default $ $ cd /c/users/ $ git config --global core.autocrlf false $ git clone https://github.com/hyperledger/fabric-samples.git $ cd fabric-samples $ curl -sSL https://goo.gl/LQkuoh | bash The bin subdirectory of fabric-samples was not created! I tried it twice. I copied then the bin subdir from an former frabric-samples directory (found in the trash). Then it worked but with the same result as before

beagry (Tue, 04 Jul 2017 07:16:12 GMT):
Has joined the channel.

PushpalathaHiremath (Tue, 04 Jul 2017 07:48:41 GMT):
Hi All, Can anyone suggest me when do we need more than one smart contract? What is the recommended way to architect the smart contracts? We can include all the business logic under only one smart contract. When and why we want to split the logic into more than one smart contract? Can anyone help me understand?

jaswanth (Tue, 04 Jul 2017 08:59:43 GMT):
hi all,

jaswanth (Tue, 04 Jul 2017 09:03:16 GMT):
why we are giving two port number - port 7051,7053 for peers.... when i invoke a transaction by giving localhost:7051 ..am getting an output as `transaction has been committed on peer localhost:7053` ... can anyone help me to understand this

mastersingh24 (Tue, 04 Jul 2017 10:22:25 GMT):
@jaswanth : Port 7051 is the default port for the peer endpoint which provides the endorsement service (i.e. the endpoint used by clients to submit invoke and query proposals). (It is also used by peers to communicate with each other via gossip) Port 7053 is the default port for the eventhub endpoint providing by the peer. Client subscribe to events from the eventhub. While invoke/query is synchronous, sending transactions to the ordering services is asynchronous - meaning that while a client knows that it submitted the transaction, it does not know if the transaction has been successfully committed. In order to be notified of this, clients subscribe to the eventhub

mindraker (Tue, 04 Jul 2017 10:48:32 GMT):
Has joined the channel.

elrond (Tue, 04 Jul 2017 14:22:07 GMT):
in their simple example, where where they have identifies as a character and an int value assigned to it, specifically: ['a':100, 'b':200], in the init method, we update the value on the ledger via the shim.ChaincodeStubInterface with stub.PutState('a', 20000)). where would we have to go to change the data that is stored on the chain. that is to say, where do we define the data structure that goes into the chain. with the putState, can a key be a custom object defined in go, if so, im assuming some form of the equals method equivalent as in java?

elrond (Tue, 04 Jul 2017 14:41:52 GMT):
for instance, can a key be a complex object when using the putState method?

dinesh.rivankar (Wed, 05 Jul 2017 05:02:53 GMT):
We have 2 endorsing peer, each running their own CA. Dose all this CA share there enrollment details with other in the network?

jaswanth (Wed, 05 Jul 2017 05:44:55 GMT):
Hi am using couchdb as my database . upon successful transaction , db is updating perfectly . i just added a record and updated it. My question is , GetHistoryOfKeys() function is returning a data which has all the transactions i made ,but in db i can only see the updated data (the initial data is replaced with updated data) . can anyone tell from where we are getting the data for GetHistoryOfKeys().

as93717913 (Wed, 05 Jul 2017 07:14:35 GMT):
Has joined the channel.

as93717913 (Wed, 05 Jul 2017 07:16:07 GMT):
hi all, is there any method to add org which wasn't involved in the orderer's genesis block?

VishalBatra (Wed, 05 Jul 2017 07:28:40 GMT):
Has joined the channel.

moulali308 (Wed, 05 Jul 2017 10:33:36 GMT):
Has joined the channel.

moulali308 (Wed, 05 Jul 2017 10:33:42 GMT):
I have done local block chain setup with single peer and run sample chain code by using the guidelines which are provided by IBM bluemix hyperledger fabric... now I want to create 4 peers and do some transactions between 4 peers and observe how distributed ledger is maintaining b/w peers. Can you please help me ,how i can do this if u have any idea

sandeep_vasa (Wed, 05 Jul 2017 10:47:15 GMT):
Has joined the channel.

elrond (Wed, 05 Jul 2017 11:31:17 GMT):
where can the code to " shim.ChaincodeStubInterface" be found. i was wondering where he gets his arguments from???

yacovm (Wed, 05 Jul 2017 11:32:27 GMT):
what do you mean?

elrond (Wed, 05 Jul 2017 11:52:22 GMT):
for instance: a snippet of code: func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response { fmt.Println("ex02 Invoke") function, args := stub.GetFunctionAndParameters() the stub.getFunctionAndParameters, are they received via the terminal, where exactly does the stub acquire these parameters and the function? And the "err = stub.PutState(A, []byte(strconv.Itoa(Aval)))"; can we instead of the "A" being a string representing the key here, can "A" be a custom defined object?

yacovm (Wed, 05 Jul 2017 11:57:44 GMT):
instead of a string?

yacovm (Wed, 05 Jul 2017 11:57:54 GMT):
I don't think so... but there is something called a composite key

yacovm (Wed, 05 Jul 2017 11:57:58 GMT):
Not too familiar with it though

yacovm (Wed, 05 Jul 2017 11:58:01 GMT):
ask in #fabric-ledger

elrond (Wed, 05 Jul 2017 11:58:52 GMT):
thanks again

noursaadallah (Wed, 05 Jul 2017 12:33:15 GMT):
Hello, Except for the "getting started" tutorial where we download and execute the script that sets up cryptogen, configtxgen and the necessary docker images (2 peers, 1 orderer, 1 ca), How can i setup an environment with the version of my choice and make/build all the necessary artifacts and docker images by myself (v1.0.0-alpha1 to be exact) ? Thanks

noursaadallah (Wed, 05 Jul 2017 12:46:21 GMT):
For the moment i cloned fabric and fabric-ca and did a git checkout to v1.0.0-alpha, but then when i'm on the fabric directory i get this error when i run make : chmod +x build/bin/chaintool Creating build/goshim.tar.bz2 mkdir -p build/image/ccenv/payload cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload cp: impossible to evaluate 'build/docker/gotools/bin/protoc-gen-go': file or directory does not exist Makefile:237 : target « build/image/ccenv/payload » failed make: *** [build/image/ccenv/payload] Error 1 (PS : i translated the error message myself so i'm sorry for translation errors if the meaning is altered in any way)

elrond (Wed, 05 Jul 2017 13:24:00 GMT):
whilst trying to run the marbles example i run the command : sudo bash setup_sdk.sh for booting a locally hosted Hyperledger Fabric Network, and then i get this HEAD is now at 196d048... Release v1.0.0-alpha * (HEAD detached at v1.0.0-alpha) master setup_sdk.sh: line 13: npm: command not found in line 13, there is "npm install", which makes no sense since the package manager is installed

elrond (Wed, 05 Jul 2017 13:24:10 GMT):
any ides as to why this is the case?

elrond (Wed, 05 Jul 2017 14:19:28 GMT):
is there a reason why the marbles setup once completed is continuosly connecting? im running it locally

elrond (Wed, 05 Jul 2017 14:36:12 GMT):
GRPC client got an error response from the peer "grpc://localhost:7051". Error: failed to obtain cds for marbles - transaction not found marbles/mychannel the marbles setup and gui is all there, but it's in a constant state of "connecting"

elrond (Wed, 05 Jul 2017 14:36:13 GMT):
??

tennenjl (Wed, 05 Jul 2017 16:16:25 GMT):
Hi Team, has anyone done any sort of integration between MSP and OAuth, or has there been any thought around OAuth authentication? Thanks!

yacovm (Wed, 05 Jul 2017 16:27:18 GMT):
I'd ask this in #fabric-crypto

tennenjl (Wed, 05 Jul 2017 16:54:51 GMT):
@yacovm will do. Thanks

Tigermisu (Wed, 05 Jul 2017 19:54:21 GMT):
Quick question. If a peer keeps the entire copy of the ledger even if it does not have the chaincode that generated some blocks installed, does that mean that peers don't check replay the transactions of the blocks they receive for validation purposes?

Tigermisu (Wed, 05 Jul 2017 19:54:21 GMT):
Quick question. If a peer keeps the entire copy of the ledger even when it does not have the chaincode installed, does that mean that peers don't replay the transactions of the blocks they receive for validation purposes?

mbochu (Thu, 06 Jul 2017 12:11:01 GMT):
Has joined the channel.

jarroyer (Thu, 06 Jul 2017 13:37:28 GMT):
How can I control the read/write permissions for a chain on a peer-by-peer basis? Or even an organization to organization basis? I can't find anything in the docs about this

jmcnevin (Thu, 06 Jul 2017 17:10:22 GMT):
I have some questions about how the ordering service works if the orderer nodes are spread across multiple organizations: * What kind of communication happens between ordering nodes? * Do you need a centralized Kafka cluster for all ordering nodes to communicate with each other, or would each org run their own Kafka cluster?

UDeshmukh (Thu, 06 Jul 2017 23:12:42 GMT):
Has joined the channel.

UDeshmukh (Thu, 06 Jul 2017 23:17:29 GMT):
I started following the steps ( http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html) but got stuck trying to bring up the Network up with the command ./byfn.sh -m up It gave an error /bin/bash: ./scripts.sh: /bin/bash^M: bad interpreter: No such file or directory. Can someone advise what I need to do fix this issue? Thanks in advance.

gauthampamu (Fri, 07 Jul 2017 03:06:12 GMT):
Has joined the channel.

gauthampamu (Fri, 07 Jul 2017 03:06:38 GMT):
There a single orderer (solo) in the Fabric Samples example. I want to setup the network with Kafka ordering. I noticed there is dc-orderer-kafka.yaml file in bddtests folder in fabric source code. I wanted to ask if anyone tried to build a simple network with Kafka. If anyone already tried to combine the two docker compose file and if you have an sample configuration, it would help me. Also in the dc-orderer-kafka.yaml sample, there are three orderers, four kafka brokers and three zookeepers. Is it possible to add new kafka brokers or orderers without restarting the network. Also if you are building a network with four to five participants and each participant in the network has their own data center. Where should we run the orderers and kafka servers. Are we required to run the orderer services in data center of the founder of the network. Also is it possible for other participants to contribute orderers to the network.

gauthampamu (Fri, 07 Jul 2017 03:16:05 GMT):
I have question related to transaction lifecycle. Thanks in advance for helping me with the question. According to the documentation, if you have endorsement policy, which requires one of the peers endorse the transaction, the SDK will send the request to both peers. In real network setup, peer B would be running inside the data center of the organization B and it might have network connectivity to the other peers and orderers in the network but I would think the application might not have network connectivity to the peer B. I wanted to understand the network connectivity requirements of the client (nodejs) application and other peers in the network.

gauthampamu (Fri, 07 Jul 2017 03:21:54 GMT):
I have another question on transaction processing. If you have two transactions coming from the same REST endpoint (same client), two request one request to transfer 1000 units of some asset X from A to B and another request to transaction 2000 units of same asset X from A to C. The second transaction is sent immediately after first transaction. First transaction was submitted and it simulated the transaction but did not commit and now the second transaction was sent to the same errors to simulate. Now will the second transaction fail when the committing peers try to commit the second transaction as the read values would have changed because the commit from the first transaction would have changed the current asset value of the asset X.

gauthampamu (Fri, 07 Jul 2017 03:22:27 GMT):
So what error will the SDK get for the second transaction.

VamsiKrishnak (Fri, 07 Jul 2017 09:48:53 GMT):
Has joined the channel.

FollowingGhosts (Fri, 07 Jul 2017 15:02:29 GMT):
Has joined the channel.

AbhishekSeth (Fri, 07 Jul 2017 15:03:47 GMT):
Has joined the channel.

AbhishekSeth (Fri, 07 Jul 2017 15:05:23 GMT):
Hey, I am using fabric-latest images for my setup. I have some fabric packages(other than shim) imported in my chaincode. It throws error saying package is not found in the image. Then I put the whole fabric in the vendor folder of my chaincode. That time it fails with the following error:

AbhishekSeth (Fri, 07 Jul 2017 15:08:00 GMT):

Message Attachments

FollowingGhosts (Fri, 07 Jul 2017 15:23:35 GMT):
I'm trying to run the command `peer channel create -o orderer.local:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA` However, it fails with the error ```2017-07-07 15:21:39.365 UTC [msp] getMspConfig -> WARN 001 Intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/intermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/intermediatecerts: no such file or directory] 2017-07-07 15:21:39.373 UTC [msp] getMspConfig -> WARN 002 TLS intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/tlsintermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/tlsintermediatecerts: no such file or directory] 2017-07-07 15:21:39.373 UTC [msp] getMspConfig -> WARN 003 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/crls: no such file or directory] 2017-07-07 15:21:39.374 UTC [msp] getMspConfig -> INFO 004 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.local/users/Admin@org1.local/msp/config.yaml: no such file or directory] 2017-07-07 15:21:39.415 UTC [msp] GetLocalMSP -> DEBU 005 Returning existing local MSP 2017-07-07 15:21:39.415 UTC [msp] GetDefaultSigningIdentity -> DEBU 006 Obtaining default signing identity 2017-07-07 15:21:39.435 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2017-07-07 15:21:39.440 UTC [msp] GetLocalMSP -> DEBU 008 Returning existing local MSP 2017-07-07 15:21:39.440 UTC [msp] GetDefaultSigningIdentity -> DEBU 009 Obtaining default signing identity 2017-07-07 15:21:39.440 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-07-07 15:21:39.440 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-07-07 15:21:39.441 UTC [msp/identity] Sign -> DEBU 00c Sign: plaintext: 0AF3050A074F7267314D535012E7052D...53616D706C65436F6E736F727469756D 2017-07-07 15:21:39.441 UTC [msp/identity] Sign -> DEBU 00d Sign: digest: 65BA3BBA2548B03E62D493D99AF02233149E983F5D57996AF73607370D37AF1B 2017-07-07 15:21:39.442 UTC [msp] GetLocalMSP -> DEBU 00e Returning existing local MSP 2017-07-07 15:21:39.442 UTC [msp] GetDefaultSigningIdentity -> DEBU 00f Obtaining default signing identity 2017-07-07 15:21:39.442 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP 2017-07-07 15:21:39.442 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity 2017-07-07 15:21:39.443 UTC [msp/identity] Sign -> DEBU 012 Sign: plaintext: 0AB0060A1B08021A060883CEFECA0522...F79B32F7A459341693C2B7C04B615671 2017-07-07 15:21:39.443 UTC [msp/identity] Sign -> DEBU 013 Sign: digest: 24B90BD11AC4EC73F94A67BF42AE514F0EB5B4842DD5962E4F98F845A67D4112 fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f1f6da2d259]

FollowingGhosts (Fri, 07 Jul 2017 15:24:08 GMT):
this is using the latest images from docker, I've created the certificates etc.

FollowingGhosts (Fri, 07 Jul 2017 15:43:04 GMT):
For anyone wondering, it seems this is caused by using .local and makes the golang networking library crash

jmcnevin (Fri, 07 Jul 2017 16:23:00 GMT):
So, under a peer's msp directory, "admincerts" is going to contain certs for any users that are peer admins, and those users can install chaincode on the peer, correct?

travin (Fri, 07 Jul 2017 16:41:41 GMT):
Hello all, I'm working with someone to compare various blockchain systems and it was mentioned that Fabric 1.0 has transaction-based certification, however I can't seem to find information about this capability.

Edama (Fri, 07 Jul 2017 18:41:00 GMT):
Has joined the channel.

ffilozov1 (Fri, 07 Jul 2017 22:25:16 GMT):
Has joined the channel.

yuleeandrea (Fri, 07 Jul 2017 23:35:11 GMT):
Has joined the channel.

vishalgupta96 (Sat, 08 Jul 2017 19:27:30 GMT):
Has joined the channel.

mygodwhoami (Sun, 09 Jul 2017 02:35:36 GMT):
Has joined the channel.

mygodwhoami (Sun, 09 Jul 2017 02:51:34 GMT):
@FollowingGhosts i have same error; "fatal error: unexpected signal during runtime execution"; i am beginner,so could you tell me the detail to resolve it,thanks;

Othman.Darwish (Sun, 09 Jul 2017 10:33:52 GMT):
Has joined the channel.

pancake (Sun, 09 Jul 2017 10:51:48 GMT):
Hi all, i am try to run fabcar sample, when i use `sudo node query.js`, an error occur. The info of the error as below:

pancake (Sun, 09 Jul 2017 10:52:02 GMT):
Create a client and set the wallet location Set wallet path, and associate user PeerAdmin with application Check user is enrolled, and set a query URL in the network Make query Assigning transaction_id: 6069da3967fc664d66e6695f43c42104e6591dba8595fbbd97680d9f5cbafbd5 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown at /home/chao/fabric-work/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17 returned from query Query result count = 1 error from query = { Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown at /home/chao/fabric-work/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17 code: 2, metadata: Metadata { _internal_repr: {} } } Response is Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown

pancake (Sun, 09 Jul 2017 10:52:36 GMT):
Could you pls give me some help?

Othman.Darwish (Sun, 09 Jul 2017 12:42:57 GMT):
Hi , if we have two transactions that transfer let say asset from A to B and from C to B that run at the same time ( same block window creation ) the second transaction will be rejected as design error code 11, this is acceptable if we think about it from end to end individual transfer , my case is i am planing to simulate the the corporate payroll transfer where we have one single corp accounts with let say X and many employee accounts ( A,B,C ) the committer wont processing such transactions in same block , how to overcome such problem ??

Othman.Darwish (Sun, 09 Jul 2017 12:42:57 GMT):
Hi , if we have two transactions that transfer let say asset from A to B and from C to B that run at the same time ( same block window creation ) the second transaction will be rejected as design error code 11, this is acceptable if we think about it from end to end individual transfer , my case is i am planing to simulate the the corporate payroll transfer where we have one single corp account let say X and many employee accounts ( A,B,C ) the committer wont processing such transactions in same block , how to overcome such problem ??

mochechan (Mon, 10 Jul 2017 01:24:24 GMT):
I have modified the balance-transfer to install, instantiate, invoke, and query my chaincode. https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer The first three steps, 1) INSTALL CHAINCODE, 2) INSTANTIATE CHAINCODE and 3) the first INVOKE ON CHAINCODE, are good. However, the subsequent INVOKE and QUERY are bad. The error message is: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) at /home/a/fabric-sdk-api/rc1/node_modules/grpc/src/node/src/client.js:434:17 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) at /home/a/fabric-sdk-api/rc1/node_modules/grpc/src/node/src/client.js:434:17 [2017-07-10 09:14:06.662] [ERROR] invoke-chaincode - transaction proposal was bad [2017-07-10 09:14:06.663] [ERROR] invoke-chaincode - transaction proposal was bad [2017-07-10 09:14:06.663] [ERROR] invoke-chaincode - Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... [2017-07-10 09:14:06.663] [ERROR] invoke-chaincode - Failed to order the transaction. Error code: undefined What are the possible solutions I can try? Thanks a lot.

ume0202 (Mon, 10 Jul 2017 05:16:08 GMT):
Has joined the channel.

sai_ganesh (Mon, 10 Jul 2017 06:38:14 GMT):
How do upgrade a chaincode in hyperledger after it is deployed without actually removing the docker images and starting all over again?

newint (Mon, 10 Jul 2017 08:47:02 GMT):
Has joined the channel.

LoupTheron (Mon, 10 Jul 2017 09:41:38 GMT):
Hi, can I get the transactions details ? There is the ECert in it ? Signed by the MSP ?

trygvevang (Mon, 10 Jul 2017 12:55:18 GMT):
Has joined the channel.

trygvevang (Mon, 10 Jul 2017 12:55:57 GMT):
Hi all! I have two questions I was hoping someone could answer; - Do certificates need to be generated before instantiating a peer? - How can I generate new certificates? I'm using fabric with composer.

daygee (Mon, 10 Jul 2017 15:24:33 GMT):
Has joined the channel.

daygee (Mon, 10 Jul 2017 15:24:57 GMT):
hello everyone

daygee (Mon, 10 Jul 2017 15:25:45 GMT):
I need some help so I'm new with fabric and trying to follow the docs to set up my first network but I got stuck trying to get the network up I ran the command: ./byfn.sh -m up -c demoChannel but getting 503 Service Unavailable Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable don't know if I'm missing something

Kathyx (Mon, 10 Jul 2017 16:09:08 GMT):
Hi everyone, I'm following Marbles example (https://github.com/IBM-Blockchain/marbles/blob/v3.0/docs/env_setup.md) and trying to set up my hyperledger fabric. I've downloaded GO, cloned fabric, and I'm trying to verify if my fabric installed properly. I ran `go build -tags nopkcs11 .` in one of the examples directory inside fabric git and I got the error: ``` # github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 ../../../../vendor/github.com/miekg/pkcs11/pkcs11.go:29:10: fatal error: 'ltdl.h' file not found #include ^ 1 error generated. ``` Has anyone seen this before?

Kathyx (Mon, 10 Jul 2017 16:14:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pERRr9D7ipgpCGc8z) @Kathyx I installed libtool `brew install libtool` and it worked.

yacovm (Mon, 10 Jul 2017 16:20:15 GMT):
@Kathyx `sudo apt-get install libltdl-dev`

sqwerrels (Mon, 10 Jul 2017 20:08:25 GMT):
Has joined the channel.

youngdahlm (Mon, 10 Jul 2017 21:32:19 GMT):
Has joined the channel.

geoms (Tue, 11 Jul 2017 05:23:36 GMT):
Has joined the channel.

geoms (Tue, 11 Jul 2017 05:25:06 GMT):
Hi! I am trying to set up the network by following 'BYFN' tutorial I am getting an error below, while 'Create and Join' Channel panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type "" goroutine 1 [running]: panic(0x7929c0, 0xc420218c00) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852 Please help!

SanthoshKumarMK (Tue, 11 Jul 2017 06:52:48 GMT):
how to assign permission at an asset level? For example, in the topology we have 4 orgs and want to allow only org2 and org4 to see asset1 and org3 to see asset2. please suggest me on this.

kustrun (Tue, 11 Jul 2017 08:15:03 GMT):
Has joined the channel.

kustrun (Tue, 11 Jul 2017 08:15:16 GMT):
Hi! Is CouchDB being distributed as same as LevelDB - across all peers on channel?

BalajiSR (Tue, 11 Jul 2017 09:49:31 GMT):
Has joined the channel.

BalajiSR (Tue, 11 Jul 2017 11:00:53 GMT):
Hi, I have installed hyper ledger fabric and when I did a build it failed with below error. Could you let know how to fix the issue The following files are missing SPDX-License-Identifier headers: orderer/multichain/manager.go orderer/multichain/manager_test.go Please replace the Apache license header comment text with: SPDX-License-Identifier: Apache-2.0 Makefile:111: recipe for target 'license' failed

geoms (Tue, 11 Jul 2017 11:38:16 GMT):
Hi, I am trying to experiment with 'Build Your First Network' tutorial by adding an additional organisation

geoms (Tue, 11 Jul 2017 11:38:57 GMT):
When I try to do *peer channel create*

geoms (Tue, 11 Jul 2017 11:39:07 GMT):
getting below error

geoms (Tue, 11 Jul 2017 11:39:33 GMT):
*Error: Got unexpected status: BAD_REQUEST*

geoms (Tue, 11 Jul 2017 11:39:42 GMT):
Complete error log is below

geoms (Tue, 11 Jul 2017 11:40:10 GMT):
'2017-07-11 11:36:30.020 UTC [msp] getMspConfig -> WARN 001 Intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2017-07-11 11:36:30.024 UTC [msp] getMspConfig -> WARN 002 TLS intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/tlsintermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/tlsintermediatecerts: no such file or directory] 2017-07-11 11:36:30.026 UTC [msp] getMspConfig -> WARN 003 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2017-07-11 11:36:30.026 UTC [msp] getMspConfig -> INFO 004 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] 2017-07-11 11:36:30.049 UTC [msp] GetLocalMSP -> DEBU 005 Returning existing local MSP 2017-07-11 11:36:30.049 UTC [msp] GetDefaultSigningIdentity -> DEBU 006 Obtaining default signing identity 2017-07-11 11:36:30.055 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2017-07-11 11:36:30.055 UTC [msp] GetLocalMSP -> DEBU 008 Returning existing local MSP 2017-07-11 11:36:30.056 UTC [msp] GetDefaultSigningIdentity -> DEBU 009 Obtaining default signing identity 2017-07-11 11:36:30.056 UTC [msp/identity] Sign -> DEBU 00a Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-07-11 11:36:30.056 UTC [msp/identity] Sign -> DEBU 00b Sign: digest: FF80D71FDD7B1C1B57D810874C8BBED8DD4B79E91372E5F128D0DD2B582EC094 2017-07-11 11:36:30.057 UTC [msp/identity] Sign -> DEBU 00c Sign: plaintext: 0AFE060A5008021A0608BEF092CB0522...FA0309BD99F01C1D25897D58EE565A7F 2017-07-11 11:36:30.057 UTC [msp/identity] Sign -> DEBU 00d Sign: digest: 9C334AE668B1763C04A00935E113C1A5282C83521364D6A6C5C208361943E255 2017-07-11 11:36:30.057 UTC [msp] GetLocalMSP -> DEBU 00e Returning existing local MSP 2017-07-11 11:36:30.057 UTC [msp] GetDefaultSigningIdentity -> DEBU 00f Obtaining default signing identity 2017-07-11 11:36:30.057 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP 2017-07-11 11:36:30.057 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity 2017-07-11 11:36:30.057 UTC [msp/identity] Sign -> DEBU 012 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-07-11 11:36:30.057 UTC [msp/identity] Sign -> DEBU 013 Sign: digest: 595EB579C8168B9774EB79FD74DAF30FE399049E8F1AE3AA317D1BE3F197DF3E 2017-07-11 11:36:30.058 UTC [msp] GetLocalMSP -> DEBU 014 Returning existing local MSP 2017-07-11 11:36:30.058 UTC [msp] GetDefaultSigningIdentity -> DEBU 015 Obtaining default signing identity 2017-07-11 11:36:30.058 UTC [msp] GetLocalMSP -> DEBU 016 Returning existing local MSP 2017-07-11 11:36:30.058 UTC [msp] GetDefaultSigningIdentity -> DEBU 017 Obtaining default signing identity 2017-07-11 11:36:30.059 UTC [msp/identity] Sign -> DEBU 018 Sign: plaintext: 0ABC060A0E08021A0608BEF092CB0522...DC3C435D5CB533EECB862CEE5076742B 2017-07-11 11:36:30.059 UTC [msp/identity] Sign -> DEBU 019 Sign: digest: 983169EC1BC6C836EF0EE8FF65641B3A05AC346314E5DB0362AD1899FC49968F Error: Got unexpected status: BAD_REQUEST'

geoms (Tue, 11 Jul 2017 11:40:33 GMT):
Please help on this error

akdj (Tue, 11 Jul 2017 12:01:57 GMT):
hello, I learned that It does not matter about if the transaction is signed by respecting the endorsement policy or not, it wiil be sent as block to peers by orderer service, then peers will check the valididate of this transaction block, if it is validated, if will take effect in the transactions story. And in both cases , this block wiil be store in the ledger. But can anyone tell me how to differentiate a valid transaction block, and an invalid transaction block? only by checking signatures? I used the nodejs sdk function channel.queryblock() to get block information of a valided transaction and an invalided one, however, I cannot see the difference between these two blocks' information, is there a target/label which indicate if this block is valided or not...?

jeffgarratt (Tue, 11 Jul 2017 13:32:09 GMT):
@akdj the one of the metadata fields on the block stores the bit array of valid transactions

akdj (Tue, 11 Jul 2017 13:40:47 GMT):
@jeffgarratt thank you, I checked the metadata fields with node sdk mathod channel.queryBlock() and there is no value for TxValidationCode . I moved my issue to #fabric-sdk-node , you can see my block metadata information in #fabric-sdk-node or #fabric-ledger

akdj (Tue, 11 Jul 2017 13:40:47 GMT):
@jeffgarratt thank you, I checked the metadata fields with node sdk method channel.queryBlock() and there is no value for TxValidationCode . I moved my issue to #fabric-sdk-node , you can see my block metadata information in #fabric-sdk-node or #fabric-ledger

VamsiKrishnak (Tue, 11 Jul 2017 14:19:36 GMT):
hi, As I am following this link "http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html" for chaincode and at last it mentioned that we can test our own chaincode by adding that to chaincode sub directory, could any one help me how to add new chaincode to that chaincode directory which can be accessible from chaincode container.

Binay1 (Tue, 11 Jul 2017 14:26:25 GMT):
Hi, I've completed the build your first network tutorial from the docs but it didn't teach me much. Anybody know of some resources which go more "in-depth" ?

clempo (Tue, 11 Jul 2017 14:49:28 GMT):
Has joined the channel.

clempo (Tue, 11 Jul 2017 14:52:55 GMT):
The REST API is documented here http://fabricrepo.readthedocs.io/en/stable/API/CoreAPI/#rest-api but I read the REST API is deprecated or not even supported in version v1.0 for example here https://github.com/yeasy/docker-compose-files/issues/12 What is the status of the REST API in v1.0.0 and beyond?

FollowingGhosts (Tue, 11 Jul 2017 15:18:14 GMT):
The REST API doesn't exist beyond v0.6

FollowingGhosts (Tue, 11 Jul 2017 15:18:27 GMT):
You can use the NodeSDK and Express4 to build an API

clempo (Tue, 11 Jul 2017 15:18:49 GMT):
That's what I thought, but why is it documented in http://fabricrepo.readthedocs.io/en/stable/API/CoreAPI/#rest-api

FollowingGhosts (Tue, 11 Jul 2017 15:39:51 GMT):
That's the old docs for v0.6

trygvevang (Tue, 11 Jul 2017 15:55:50 GMT):
Are there any documentation on the environment variables that are set in the docker-compose.yaml files?

tkuhrt (Tue, 11 Jul 2017 20:18:24 GMT):
@VamsiKrishnak : If you look in the docker-compose-simple.yaml under `chaincode`, you will see where volumes are being mounted under `volumes`. Under that the `./chaincode` directory is being mounted as `/opt/gopath/src/chaincode`. To add another chaincode, you can add a directory under `./chaincode`. Currently (even though it says they are only mounting `sacc`, it appears that they are mounting `chaincode_example02` https://chat.hyperledger.org/channel/fabric-questions?msg=rs4Zm92FcjAQor7SL

tkuhrt (Tue, 11 Jul 2017 20:19:07 GMT):
As mentioned, you will need to restart the docker processes to ensure that the new directory is picked up.

sqwerrels (Tue, 11 Jul 2017 21:02:31 GMT):
Are there any examples of how to modify the configuration from an SDK like Java SDK? It seems the way to go is probably from the configtxlator, but I'm unclear on how to get the configuration files, or what should I be passing to the configtxlator

sai_ganesh (Wed, 12 Jul 2017 05:07:06 GMT):
As I am new to hyperledger fabric, would like to know which fabric sdk (node, java, py or go) is better suited for learning as well as development

yacovm (Wed, 12 Jul 2017 05:14:42 GMT):
I would say go sdk because it references fabric itself in the source code

jaswanth (Wed, 12 Jul 2017 10:28:42 GMT):
Iam going through the official getting-started guide (hyperledger-fabric-rc1). I done it before and its successful .but now when I run( in windows ) `./byfn.sh -m up -c mychannel` getting an error ``` Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: err CA Certificate is not valid ``` i had my crypto files. any help with this

ambatigaan (Wed, 12 Jul 2017 11:14:44 GMT):
Has joined the channel.

mahoney1 (Wed, 12 Jul 2017 11:41:41 GMT):
hi there - in an attempt to configure as 'unlimited' gRPC message size in a Composer connection profile eg "maxSendSize": "-1", "maxRecvSize": "-1" ; is there an overall Fabric restriction / size gRPC message size limit ? reading here -> https://github.com/hyperledger/fabric/blob/master/core/comm/config.go and here https://jira.hyperledger.org/browse/FAB-5049 it suggests that the max gRPC message size in Fabric is 100Mb. Thanks.

MilindJoshi (Wed, 12 Jul 2017 14:00:01 GMT):
Has joined the channel.

MilindJoshi (Wed, 12 Jul 2017 14:03:11 GMT):
Hello there, i am checking hyperledger for POC purpose. For the same, i have set up docker-toolbox on my workstation. Also required pre-reqs are being taken cared of. When i am executing "./byfn.sh -m up", i am getting command not found. Is there any way to run the same on windows 7 using docker-toolbox?

FollowingGhosts (Wed, 12 Jul 2017 14:15:14 GMT):
When trying to communicate with a peer, which cert would I need to use for the client?

yacovm (Wed, 12 Jul 2017 14:21:58 GMT):
both certs

yacovm (Wed, 12 Jul 2017 14:22:00 GMT):
TLS and the other one

FollowingGhosts (Wed, 12 Jul 2017 14:22:28 GMT):
I'm currently trying to use the node sdk to connect to a peer, and it asks for a single cert as a pem file

yacovm (Wed, 12 Jul 2017 14:22:54 GMT):
better ask in #fabric-sdk-node

MilindJoshi (Wed, 12 Jul 2017 14:23:08 GMT):
```Creating cli ... Creating cli ... done /bin/bash: ./scripts/script.sh: No such file or directory```

yacovm (Wed, 12 Jul 2017 14:23:11 GMT):
ah wait

yacovm (Wed, 12 Jul 2017 14:23:26 GMT):
so I think you need the signing identity cert

yacovm (Wed, 12 Jul 2017 14:23:41 GMT):
and it depends if the peer uses TLS or nto

FollowingGhosts (Wed, 12 Jul 2017 14:23:54 GMT):
thanks, the peer is running in TLS mode

FollowingGhosts (Wed, 12 Jul 2017 14:24:03 GMT):
just using certs from cryptogen

yacovm (Wed, 12 Jul 2017 14:24:40 GMT):
so I'm not sure but take a look at https://github.com/hyperledger/fabric-samples/tree/master/fabcar

FollowingGhosts (Wed, 12 Jul 2017 14:25:41 GMT):
thanks, I'd been looking at that one but that's running without TLS

FollowingGhosts (Wed, 12 Jul 2017 14:25:56 GMT):
I don't have signing certs as such

FollowingGhosts (Wed, 12 Jul 2017 14:27:54 GMT):
The directory structure I have is as follows: ```peerOrganizations ├── org1.blockchain │   ├── ca │   │   ├── c3eea7c9c9fe119fc4238f15ed8236cc0a2b26afa0bd3aee5b91ca3f3e63c7b8_sk │   │   └── ca.org1.blockchain-cert.pem │   ├── msp │   │   ├── admincerts │   │   │   └── Admin@org1.blockchain-cert.pem │   │   ├── cacerts │   │   │   └── ca.org1.blockchain-cert.pem │   │   └── tlscacerts │   │   └── tlsca.org1.blockchain-cert.pem │   ├── peers │   │   ├── peer0.org1.blockchain │   │   │   ├── msp │   │   │   │   ├── admincerts │   │   │   │   │   └── Admin@org1.blockchain-cert.pem │   │   │   │   ├── cacerts │   │   │   │   │   └── ca.org1.blockchain-cert.pem │   │   │   │   ├── keystore │   │   │   │   │   └── c0305a577f06f9937f6d35dcb54da88c55b40f262590c2baf761d4957f1ee94f_sk │   │   │   │   ├── signcerts │   │   │   │   │   └── peer0.org1.blockchain-cert.pem │   │   │   │   └── tlscacerts │   │   │   │   └── tlsca.org1.blockchain-cert.pem │   │   │   └── tls │   │   │   ├── ca.crt │   │   │   ├── server.crt │   │   │   └── server.key │   │   └── peer1.org1.blockchain │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@org1.blockchain-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.org1.blockchain-cert.pem │   │   │   ├── keystore │   │   │   │   └── 70efb432ca97794da40ff6792cbba1498b335336a432d4f21093f35244827134_sk │   │   │   ├── signcerts │   │   │   │   └── peer1.org1.blockchain-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.org1.blockchain-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   ├── tlsca │   │   ├── 88dcd335970bacaf24becce9551cd9551f0bf4f77275e38c934f86ac0e3c03a8_sk │   │   └── tlsca.org1.blockchain-cert.pem │   └── users │   ├── Admin@org1.blockchain │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@org1.blockchain-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.org1.blockchain-cert.pem │   │   │   ├── keystore │   │   │   │   └── 7da17b439a9435eeb05cd9c5747871eac89ee4472226f2b48ec89bb43d11b510_sk │   │   │   ├── signcerts │   │   │   │   └── Admin@org1.blockchain-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.org1.blockchain-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   └── User1@org1.blockchain │   ├── msp │   │   ├── admincerts │   │   │   └── User1@org1.blockchain-cert.pem │   │   ├── cacerts │   │   │   └── ca.org1.blockchain-cert.pem │   │   ├── keystore │   │   │   └── 8bedcce9d82a7199c685435eec6a98bb1602f45507918d8c5bda5491162d4d9f_sk │   │   ├── signcerts │   │   │   └── User1@org1.blockchain-cert.pem │   │   └── tlscacerts │   │   └── tlsca.org1.blockchain-cert.pem │   └── tls │   ├── ca.crt │   ├── server.crt │   └── server.key └──

yacovm (Wed, 12 Jul 2017 14:28:47 GMT):
``` │ │ │ ├── keystore │ │ │ │ └── 7da17b439a9435eeb05cd9c5747871eac89ee4472226f2b48ec89bb43d11b510_sk │ │ │ ├── signcerts │ │ │ │ └── Admin@org1.blockchain-cert.pem ```

yacovm (Wed, 12 Jul 2017 14:28:56 GMT):
These are the signing cert (below) and the key (above)

yacovm (Wed, 12 Jul 2017 14:29:11 GMT):
well actually: ``` │ │ ├── keystore │ │ │ └── 8bedcce9d82a7199c685435eec6a98bb1602f45507918d8c5bda5491162d4d9f_sk │ │ ├── signcerts │ │ │ └── User1@org1.blockchain-cert.pem ```

yacovm (Wed, 12 Jul 2017 14:29:48 GMT):
and the TLS cert that it uses to connect to the peer is: ``` │ │ │ │ └── tlscacerts │ │ │ │ └── tlsca.org1.blockchain-cert.pem ```

FollowingGhosts (Wed, 12 Jul 2017 14:31:26 GMT):
Thanks, I wasn't 100% sure, I've been battling my way through based on examples

FollowingGhosts (Wed, 12 Jul 2017 14:43:41 GMT):
Weird, so using the tlsca.org1 cert, it just fails with error 14, but with the signcerts, it gives me an ssl error

tkuhrt (Wed, 12 Jul 2017 18:28:35 GMT):
@MilindJoshi : Have you installed the Windows Extras from http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

tkuhrt (Wed, 12 Jul 2017 18:29:03 GMT):
To run the shell scripts on Windows 7, you need a bash shell.

jeffgarratt (Wed, 12 Jul 2017 18:32:00 GMT):
[ ](https://chat.hyperledger.org/channel/general?msg=Z5hbY7qoTF5f3twn6) @gen_el

jeffgarratt (Wed, 12 Jul 2017 18:32:00 GMT):
[ ](https://chat.hyperledger.org/channel/general?msg=Z5hbY7qoTF5f3twn6) @gen_el The architecutre of v1 has changed whereby consensus is now a separate physical component of the system. Therefore you may need to specify if you mean the size of the consensus system (orderers) vs the size of a specific peer network utilizing the ordering service.

jeffgarratt (Wed, 12 Jul 2017 18:34:05 GMT):
in general the peer network should theoretically be able to scale to much larger than 6 nodes as it allows a gossip model amongst peers within the same organization.

jeffgarratt (Wed, 12 Jul 2017 18:34:05 GMT):
in general the peer network (contextually bound within a channel) should theoretically be able to scale to much larger than 6 nodes as it allows a gossip model amongst peers within the same organization.

gen_el (Wed, 12 Jul 2017 18:37:07 GMT):
@jeffgarratt Thanks for responding. In my case, the size of the consensus system is what matters.

jeffgarratt (Wed, 12 Jul 2017 18:38:46 GMT):
@gen_el k... wrt v1 there is not currently BFT support (as was the case pre v1). The current implementation is kafka based, and provides crash fault tolerance only. Therefore I am not sure if your question may change given that information.

jeffgarratt (Wed, 12 Jul 2017 18:39:36 GMT):
i.e., the pre v1 limits were constrained by BFT support. The v1 should not currently be constrained similarly, but that may not address your concerns.

jeffgarratt (Wed, 12 Jul 2017 18:39:59 GMT):
specific questions wrt to consensus can be perhaps more completely addressed in #fabric-consensus

gen_el (Wed, 12 Jul 2017 18:42:14 GMT):
@jeffgarratt Ok. Thanks

lcgomez (Wed, 12 Jul 2017 21:56:29 GMT):
Has joined the channel.

reoim (Thu, 13 Jul 2017 01:29:07 GMT):
Has joined the channel.

seungchan (Thu, 13 Jul 2017 03:04:18 GMT):
Has joined the channel.

seungchan (Thu, 13 Jul 2017 03:04:45 GMT):
Is fabric SDK used for the chain code different from some SDK used for the client application?

seungchan (Thu, 13 Jul 2017 03:12:13 GMT):
if i wanna get some value, which one is good? seeking in KVS or extracting in RDB(coped KVS).

seungchan (Thu, 13 Jul 2017 03:12:13 GMT):
if i wanna get some value, which one is good? seeking in KVS or extracting in RDB(coped KVS). and i wanna know structure of KVS, is it just set of key/value or some database?

seungchan (Thu, 13 Jul 2017 03:28:16 GMT):
i found CouchDB and LevelDB

mochechan (Thu, 13 Jul 2017 06:19:15 GMT):
How to solve the problem that fabric-sdk-node shows the following error messages when I invoking my chaincode: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) at /home/a/fabric-sdk-api/1.0.0/node_modules/grpc/src/node/src/client.js:434:17 E0713 14:08:17.958289923 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.958388121 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.958446765 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.958486086 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.958536644 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.958931638 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.958994493 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.959031811 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.959078263 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.959114511 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.959160896 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.959196630 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.959241962 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.959277998 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR E0713 14:08:17.959323748 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:08:17.959360059 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) at /home/a/fabric-sdk-api/1.0.0/node_modules/grpc/src/node/src/client.js:434:17 [2017-07-13 14:08:39.497] [ERROR] invoke-chaincode - transaction proposal was bad [2017-07-13 14:08:39.500] [ERROR] invoke-chaincode - transaction proposal was bad [2017-07-13 14:08:39.501] [ERROR] invoke-chaincode - Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... [2017-07-13 14:08:39.501] [ERROR] invoke-chaincode - Failed to order the transaction. Error code: undefined E0713 14:14:50.789445897 4053 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly. E0713 14:14:50.789623157 4053 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR Thanks a lot in advanced.

mochechan (Thu, 13 Jul 2017 06:20:07 GMT):
My chaincode passes unit test by $ go test.

ume0202 (Thu, 13 Jul 2017 06:57:28 GMT):
Hi, can anyone guide or provide an example for, yaml with access(like peer0 having only read access and peer1 having read/write access) on multi-peer setup (four-peer-ca.yaml) please..

CodeReaper (Thu, 13 Jul 2017 09:18:30 GMT):
Hey, I was wondering 0.6 had such a process that enrollment of one user to a peer can only gain him access to that peer, does this not follow anymore in fabric 1.0? And supposedly I want to put one peer for every role (buyer, admin, supplier), so am I to send every transaction to its peer? How? I saw the transfer-balance example and in it every invoke functionality was done by sending all peers of the organization. What is the methodology?

geoms (Thu, 13 Jul 2017 10:28:42 GMT):
Hi, I am trying to extend the Composer environment to add additional Organisations and Peers. I could add it and the network is up and running. When I try to deploy the *.bna file, in the network composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString I am getting below error. Error: error trying deploy. Error: error trying install chaincode. Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") Command failed I can see PeerAdmin under fabric-tools/fabric-scripts/hlfv1/composer/creds folder. Which is not matching with my modification. Looks like I need to create a new Enrolment Id & Secret. How can I create a new Enrolment Id & Secret in Composer environment?

MilindJoshi (Thu, 13 Jul 2017 10:38:02 GMT):
@tkuhrt i set it up on centos and can create the network

MilindJoshi (Thu, 13 Jul 2017 10:38:12 GMT):
thanks for the help (y)

trygvevang (Thu, 13 Jul 2017 11:29:12 GMT):

Message Attachments

FollowingGhosts (Thu, 13 Jul 2017 12:40:06 GMT):
Would anyone be able to help with this error? I'm getting it even providing the sample configtx.yaml to configtxgen `````` [orderer/common/broadcast] Handle -> WARN 0fa Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members

FollowingGhosts (Thu, 13 Jul 2017 12:40:06 GMT):
Would anyone be able to help with this error? I'm getting it even providing the sample configtx.yaml to configtxgen ``` [orderer/common/broadcast] Handle -> WARN 0fa Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members

muralisr (Thu, 13 Jul 2017 12:41:23 GMT):
@FollowingGhosts let me copy this to consensus

FollowingGhosts (Thu, 13 Jul 2017 12:42:02 GMT):
thanks

arbfay (Thu, 13 Jul 2017 14:47:33 GMT):
Has joined the channel.

mochechan-fusions360 (Fri, 14 Jul 2017 01:01:39 GMT):
Has joined the channel.

mochechan-fusions360 (Fri, 14 Jul 2017 03:15:51 GMT):
When running Invoke at the first time, the output is "success but no data". When running Invoke at the second time, the output is "just-data". How can I get "just-data" at the first time? 77 var err error 78 var byteArray []byte 79 80 err = stub.PutState("just-existing", []byte("just-data")) 81 if err != nil { 82 return shim.Error(err.Error()) 83 } 84 85 byteArray,err = stub.GetState("just-existing") 86 if err != nil { 87 return shim.Error(err.Error()) 88 } 89 if byteArray == nil { 90 fmt.Println("success but no data ") 91 } 92 fmt.Println(string(byteArray))

rock_martin (Fri, 14 Jul 2017 05:55:05 GMT):
Has joined the channel.

FollowingGhosts (Fri, 14 Jul 2017 08:33:13 GMT):
Hi all, would anyone be able to tell me why I'm getting this error? ```Error getting (mychannel) orderer endpoint: Error endorsing GetConfigBlock: rpc error: code = Unknown desc = chaincode error (status: 500, message: "GetConfigBlock" request failed authorization check for channel [mychannel]: [Failed to get policy manager for channel [mychannel]

FollowingGhosts (Fri, 14 Jul 2017 08:49:46 GMT):
Fixed it, I wasn't in the channel on the peer I was trying to use

seungchan (Fri, 14 Jul 2017 09:44:14 GMT):
I have seen that Composer provides transaction definitions and transaction processor functions. What is different from the chain code?

jaswanth (Fri, 14 Jul 2017 10:04:46 GMT):
hi all, iam following getting started doc...`curl -sSL https://goo.gl/iX9dek | bash` this command is not working can any one tell me the new link

jaswanth (Fri, 14 Jul 2017 10:04:46 GMT):
hi all, iam following getting started doc...` curl -sSL https://goo.gl/iX9dek | bash ` this command is not working can any one tell me the new link

jaswanth (Fri, 14 Jul 2017 10:04:46 GMT):
hi all, iam following getting started doc... ` curl -sSL https://goo.gl/iX9dek | bash ` this command is not working can any one tell me the new link

mastersingh24 (Fri, 14 Jul 2017 11:27:18 GMT):
@jaswanth - that's the right link. What error are you seeing and what operating system are you using?

jaswanth (Fri, 14 Jul 2017 11:33:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xB4ihZ4pyDRTALajK) @mastersingh24 am using windows 10 ..error: ```line1: syntax error near unexpected token "newline"```

geoms (Fri, 14 Jul 2017 12:45:51 GMT):
Hi I have created a channel using docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx Another peer from Org2 try to join the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer0.org2.example.com peer channel join -b composerchannel.block I am getting below error # Join peer0.org2.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer0.org2.example.com peer channel join -b composerchannel.block 2017-07-14 10:03:09.046 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-07-14 10:03:09.046 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-07-14 10:03:09.049 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: genesis block file not found open composerchannel.block: no such file or directory Any help on this issue will be appreciated.

muralisr (Fri, 14 Jul 2017 14:02:57 GMT):
@geoms what is the localmspid in both cases (CORE_PEER_LOCALMSPID)

muralisr (Fri, 14 Jul 2017 14:04:23 GMT):
examples/e2e_cli/scripts/script.sh shows you how you can set the variable appropriately for each peer for any command

muralisr (Fri, 14 Jul 2017 14:04:23 GMT):
examples/e2e_cli/scripts/script.sh shows you how you can set relevant variables appropriately for each peer for any command

geoms (Fri, 14 Jul 2017 14:04:49 GMT):
its different. In my case its Org1 and Org2

muralisr (Fri, 14 Jul 2017 14:05:03 GMT):
ok

muralisr (Fri, 14 Jul 2017 14:06:14 GMT):
oh wait, I should have looked closely... `Error: genesis block file not found open composerchannel.block: no such file or directory` ... why is it complaining about thta for the second and not the first

muralisr (Fri, 14 Jul 2017 14:07:02 GMT):
I'm guessing the file is not available in the second command for some reason

jmcnevin (Fri, 14 Jul 2017 15:37:39 GMT):
Quick question: How does Fabric ensure that records in the state database have not been tampered with?

geoms (Fri, 14 Jul 2017 15:38:07 GMT):
What is the location for channel.block file ?

yifanxiang (Sat, 15 Jul 2017 00:49:22 GMT):
Has joined the channel.

yifanxiang (Sat, 15 Jul 2017 00:53:05 GMT):
HI,orderer had running sometimes。I want add org3MSP to a channel . genesis.block,*.tx file had modify,into a peer to run script: "peer channel update -o orderer.example.com:7050 -f updateOrg3.tx" but return 400.check orderder log,say org3MSP not set

robert.feng (Sat, 15 Jul 2017 02:12:26 GMT):
Has joined the channel.

Binay1 (Sun, 16 Jul 2017 05:33:56 GMT):
Hi, I could not find any documentation on deploying fabric to a network with multiple nodes. Could somebody please help me ?

yacovm (Sun, 16 Jul 2017 06:23:28 GMT):
@Binay1 you can take a look at this https://github.com/yacovm/fabricDeployment for reference if you want to deploy on bare metal (linux).

smfaizalkhan (Sun, 16 Jul 2017 08:08:53 GMT):
Has joined the channel.

smfaizalkhan (Sun, 16 Jul 2017 08:09:09 GMT):
Hello All,My understanding is each peer ,orderer will be seprate physical machines which will have the chaicode as an image installed on top of hyperledger fabric ,thats how they maintain the world state.Now how to form a network between these all physical machines using docker

Abhijeet119 (Sun, 16 Jul 2017 15:35:15 GMT):
Has joined the channel.

Abhijeet119 (Sun, 16 Jul 2017 15:37:11 GMT):
Hi , I am trying to setup hyperledger fabric and using the ./byfn.sh -m up to bring myfirst network up, however getting below error Can you help with this error /bin/bash: ./scripts/script.sh: No such file or directory

Abhijeet119 (Sun, 16 Jul 2017 15:37:44 GMT):

Message Attachments

pramodKC (Sun, 16 Jul 2017 22:01:12 GMT):
Has joined the channel.

pramodKC (Sun, 16 Jul 2017 22:08:39 GMT):
Hi, I am trying to understand the privacy provided by fabric-channels. I hope this is the right channel for the question. My Question - Do proposed transactions sent to the ordering service contain the read and write sets ? If they do, is the assumption that the ordering service knows all the details of every transaction ? And if they do not - what exactly is in the proposed transaction sent to the ordering service and how to the committing peers connect the transaction to the write set ?

cre8bidio (Mon, 17 Jul 2017 00:47:11 GMT):
Has joined the channel.

smfaizalkhan (Mon, 17 Jul 2017 05:57:05 GMT):
Hello All,My understanding is each peer ,orderer will be seprate physical machines which will have the chaicode as an image installed on top of hyperledger fabric ,thats how they maintain the world state.Now how to form a network between these all physical machines using docker

rohitrocket (Mon, 17 Jul 2017 06:17:52 GMT):

Message Attachments

rohitrocket (Mon, 17 Jul 2017 06:18:13 GMT):
Any help would be highly appreciated :)

camdenT (Mon, 17 Jul 2017 06:44:36 GMT):
Has joined the channel.

dushyantbehl (Mon, 17 Jul 2017 07:57:23 GMT):
Has joined the channel.

FollowingGhosts (Mon, 17 Jul 2017 09:39:27 GMT):
Is there a way of essentially obscuring data from the blockchain through revocation of keys etc. that would allow the data to be "forgotten"/irretrievable whilst not impacting the overall integrity of the chain?

FollowingGhosts (Mon, 17 Jul 2017 09:39:38 GMT):
I feel like this would be plausible from the CA side

niteshsolanki (Mon, 17 Jul 2017 10:02:44 GMT):
Hi. Is it possible to start a network in 'dev ' mode using couchDB as stateDB ?

ume0202 (Mon, 17 Jul 2017 11:14:21 GMT):
Hi i am trying to build a multinode network (each peer on each PCs) with different roles(read or read/write) on each user. Have anybody tried similar thing? Can anyone guide on this plz..

jeffgarratt (Mon, 17 Jul 2017 14:03:50 GMT):
@rohitrocket it appears that you may be trying to use a CA cert for the peer signer. CAs are not allowed to sign submitted messages

jeffgarratt (Mon, 17 Jul 2017 14:19:04 GMT):
@FollowingGhosts you can deny right to the channel from the point of the confg update on the block. Meanng, you can remove or revoke someone from the channel, which will immediately terminate their ability to read/write from that point forward. But they of course will have access to their local channel blocks up to that point.

FollowingGhosts (Mon, 17 Jul 2017 14:19:45 GMT):
So you couldn't mask data that's historical by revoking keys @jeffgarratt

jeffgarratt (Mon, 17 Jul 2017 14:20:15 GMT):
@FollowingGhosts I do not think so... as the policy on the channel up to that point was they had access

jeffgarratt (Mon, 17 Jul 2017 14:20:39 GMT):
that would be like retroactively breaking a policy, which is not permitted

jeffgarratt (Mon, 17 Jul 2017 14:22:21 GMT):
and it would also leave that part with no proof to support any claims of their activities.

jeffgarratt (Mon, 17 Jul 2017 14:22:21 GMT):
and it would also leave that party with no proof to support any claims of their activities.

jeffgarratt (Mon, 17 Jul 2017 14:23:56 GMT):
remember one of the strongest rationales for blockchain is immutability of the chain once created

Moto (Mon, 17 Jul 2017 17:45:41 GMT):
Has joined the channel.

tkuhrt (Mon, 17 Jul 2017 18:20:02 GMT):
@pramodKC : You might be interested in this document: http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html. Specifically, step #4 says that the RW sets are passed to the Ordering Service. My understanding is that even though the ordering service has access to this data, it is treated as a black box. The ordering service just orders the incoming transaction messages.

Moto (Mon, 17 Jul 2017 21:15:03 GMT):
Hey I'm new to fabric so this might be a silly question but I've been going through the docs a few times I'm curious do you reguarding MSPs make it seem like you need to have all of the Orgs their peers and Orderers identified at the onset of the project. this seems wrong to me... but I haven't seen any documentation on adding peers to an established network... is this available in a tool somewhere?

Moto (Mon, 17 Jul 2017 21:15:03 GMT):
Hey I'm new to fabric so this might be a silly question but I've been going through the docs a few times regarding MSPs and Hyperldger-CA... I'm curious... it seem like you need to have all of the Orgs their peers and Orderers identified at the onset of the project. this seems wrong to me... but I haven't seen any documentation on adding peers to an established network... is this available in a tool somewhere?

lcgomez (Mon, 17 Jul 2017 23:15:08 GMT):
I'm going through the Building Your First Network documentation and there are references to the content of the configtx.yaml file for first-network that I can't find.

rohitrocket (Tue, 18 Jul 2017 05:00:56 GMT):
@jeffgarratt and others I have one doubt... I went through building your first network section in the doc. Wanted to know how can other peers join the newly created channel..? new channel was created within the cli container.

rohitrocket (Tue, 18 Jul 2017 05:01:04 GMT):
does anyone have any idea ?

jeffgarratt (Tue, 18 Jul 2017 12:15:17 GMT):
@rohitrocket you can fetch the genesis block of the channel from other peers, and then join them as well.

daygee (Tue, 18 Jul 2017 12:30:08 GMT):
Hi guys

daygee (Tue, 18 Jul 2017 12:32:19 GMT):
so I have an issue

daygee (Tue, 18 Jul 2017 12:39:05 GMT):
I'm trying to create a channel on fabric

daygee (Tue, 18 Jul 2017 12:39:19 GMT):
but I keep getting BAD REQUEST

daygee (Tue, 18 Jul 2017 12:39:56 GMT):
the command: peer channel create -o orderer.example.com:7050 -c CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

daygee (Tue, 18 Jul 2017 12:41:51 GMT):
am I missing something?

jeffgarratt (Tue, 18 Jul 2017 12:42:08 GMT):
@daygee can you check your orderer log for error?

jeffgarratt (Tue, 18 Jul 2017 12:42:31 GMT):
possibly issue with the channel.tx configuration

daygee (Tue, 18 Jul 2017 12:46:16 GMT):
@jeffgarratt sorry, I'm new to fabric, I have no idea where the logs are or how to access them

mastersingh24 (Tue, 18 Jul 2017 12:53:33 GMT):
@daygee - are you using the Docker setup?

daygee (Tue, 18 Jul 2017 12:54:09 GMT):
yes, I am using docker

mastersingh24 (Tue, 18 Jul 2017 12:56:44 GMT):
So run `docker ps` or `docker ps -a` - look for the container with a name like `orderer` - perhaps `orderer.example.com` Then `docker logs orderer.example.com` (or replace orderer.example.com with whatever the name of the container is)

daygee (Tue, 18 Jul 2017 12:58:38 GMT):
Rejecting CONFIG_UPDATE because: Bad channel id: channel ID 'CHANNEL_NAME' contains illegal characters

daygee (Tue, 18 Jul 2017 12:58:52 GMT):
that's what i saw

mastersingh24 (Tue, 18 Jul 2017 13:02:27 GMT):
You can't use `_` in channel names

mastersingh24 (Tue, 18 Jul 2017 13:04:07 GMT):
If you were copying the script, then `CHANNEL_NAME` should be `$CHANNEL_NAME` as in the scripts we set the `$CHANNEL_NAME` environment variable. But you can just set the name directly as well - just don't use `_` in the name

daygee (Tue, 18 Jul 2017 13:05:30 GMT):
okay, thank you

daygee (Tue, 18 Jul 2017 13:06:21 GMT):
but now there's another issue

daygee (Tue, 18 Jul 2017 13:07:33 GMT):
Error reading from stream: rpc error: code = Canceled desc = context canceled

daygee (Tue, 18 Jul 2017 13:07:49 GMT):
from orderer.example.com

daygee (Tue, 18 Jul 2017 13:42:40 GMT):
Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members

mrkiouak (Tue, 18 Jul 2017 15:00:34 GMT):
https://chat.hyperledger.org/channel/fabric?msg=6kYyKW3hCyfAFP9yR

jeffgarratt (Tue, 18 Jul 2017 15:54:39 GMT):
@daygee this occurs because the create channel TX does NOT contain any application group members, which it must contain at least one from the cornsortium group members

daygee (Tue, 18 Jul 2017 15:54:59 GMT):
yh, I figured

daygee (Tue, 18 Jul 2017 15:55:42 GMT):
added the organisations in the consortium to the application level on configtx.yaml

daygee (Tue, 18 Jul 2017 15:56:11 GMT):
that should fix the issue, about to test it

daygee (Tue, 18 Jul 2017 15:56:21 GMT):
@jeffgarratt thank you

jeffgarratt (Tue, 18 Jul 2017 15:56:43 GMT):
@daygee your most welcome! good luck!

VamsiKrishnak (Tue, 18 Jul 2017 15:59:54 GMT):
As , I am trying this "docker-compose -f docker-compose-simple.yaml up" to start a network but iam getting error:ERROR: for orderer No such image: sha256:5ec6333eae101fd087b43f1fd3763923eb63bda7e025ad5fa178c7d7436be970 ERROR: Encountered errors while bringing up the project. can anyone help me on this.

VamsiKrishnak (Tue, 18 Jul 2017 15:59:54 GMT):
@jeffgarratt As , I am trying "docker-compose -f docker-compose-simple.yaml up" to start a network but iam getting error:ERROR: for orderer No such image: sha256:5ec6333eae101fd087b43f1fd3763923eb63bda7e025ad5fa178c7d7436be970 ERROR: Encountered errors while bringing up the project. can you help me on this.

subbu165 (Tue, 18 Jul 2017 17:15:07 GMT):
when I google LevelDB, in the wikipedia page, the below is what they say: "LevelDB is widely noted for being unreliable and databases it manages are prone to corruption.[13][14][15][16][17][18] Academic studies of past versions of LevelDB[19] have found that, under some file systems, the data stored in those versions of LevelDB might become inconsistent after a system crash or power failure. LevelDB corruption is so commonplace that corruption detection has to be built into applications that use it.[20]" So is that leveldb can be considered seriously for production use or we should move over to the better alternative like couchDB?? we are using hyperledger V1.0 Beta

mrkiouak (Tue, 18 Jul 2017 20:22:42 GMT):
posting here to see if its a better location for the question: https://chat.hyperledger.org/channel/fabric-sdk-node?msg=acR2AZ2TnGPieExbd

lcgomez (Tue, 18 Jul 2017 22:57:51 GMT):
Noob question: Going through the First Network tutorial and am stuck on creating the genesis block. Receiving this error: Error: Got unexpected status: BAD_REQUEST

lcgomez (Tue, 18 Jul 2017 22:59:24 GMT):
happens at 2017-07-18 22:55:25.978 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: A665C7F8F5EA976893CD2DD9494373A390B016D90E09EAB245151E969C9933FC

lcgomez (Tue, 18 Jul 2017 23:01:34 GMT):
Started clean and went back through and still have the same result. Any help is appreciated :)

lcgomez (Tue, 18 Jul 2017 23:39:12 GMT):
Checked my docker logs as mentioned by @mastersingh24 above and see this: 2017-07-18 23:37:04.587 UTC [orderer/common/broadcast] Handle -> WARN d9a Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1 2017-07-18 23:37:04.588 UTC [orderer/main] func1 -> DEBU d9b Closing Broadcast stream 2017-07-18 23:37:04.590 UTC [orderer/common/deliver] Handle -> WARN d9c Error reading from stream: rpc error: code = Canceled desc = context canceled 2017-07-18 23:37:04.590 UTC [orderer/main] func1 -> DEBU d9d Closing Deliver stream

lcgomez (Tue, 18 Jul 2017 23:49:25 GMT):
Disregard. This is because the channel was already created. Now I need to figure out my next step :)

lcgomez (Wed, 19 Jul 2017 00:14:55 GMT):
stumped again immediately... new error is 2017-07-18 23:59:59.094 UTC [orderer/common/broadcast] Handle -> WARN db1 Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members. I can't find any regarding this error online and the configtx.yaml I used is unmodified.

tkuhrt (Wed, 19 Jul 2017 00:29:08 GMT):
@lcgomez : daygee had the same error earlier. https://chat.hyperledger.org/channel/fabric-questions?msg=SqEuC5wtMPPZnuMkm. Jeff answered with https://chat.hyperledger.org/channel/fabric-questions?msg=3cjPuAqPSgGXWJ7KF.

lcgomez (Wed, 19 Jul 2017 00:33:50 GMT):
I added the organizations and have a new error: CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application/Org1MSP at version 0, but got version 1 :sob:

tkuhrt (Wed, 19 Jul 2017 00:40:07 GMT):
That's the error you had earlier. :)

lcgomez (Wed, 19 Jul 2017 00:43:02 GMT):
arghhh. I need a break. sorry!

tkuhrt (Wed, 19 Jul 2017 01:03:24 GMT):
no apologies necessary.

kennethhutw (Wed, 19 Jul 2017 01:12:20 GMT):
Has joined the channel.

MikeZhang (Wed, 19 Jul 2017 01:22:21 GMT):
Has joined the channel.

qingdu (Wed, 19 Jul 2017 02:49:35 GMT):
Has joined the channel.

algo 5 (Wed, 19 Jul 2017 05:26:58 GMT):
Has joined the channel.

algo 5 (Wed, 19 Jul 2017 05:28:27 GMT):
hello all, im trying to simulate real life hyperledger network with multiple host, but when i try to create channel manualy i got this error , 2017-07-19 05:25:51.267 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: channel create configuration tx file not found open /home/algo/blockchain/fabric-samples/basic-network/config/algochannel.tx: no such file or directory i can't point out configuration file , any help would be appreciated

algo 5 (Wed, 19 Jul 2017 05:29:24 GMT):
my command : $ docker exec -it peer0 bash $ peer channel create -c algochannel -o orderer:7050 -f /home/algo/blockchain/fabric-samples/basic-network/config/algochannel.tx

algo 5 (Wed, 19 Jul 2017 06:23:39 GMT):
so i giveup and not using configuration and tls. my next command peer channel create -o orderer.example.com:7050 and i already success creating and joining the channel. but when i try to deploy chaincode, got error again peer chaincode install -n privatechannel -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 and peer chaincode install -n privatechannel -v 1.0 -p /home/algo/blockchain/fabric-samples/chaincode/chaincode_example02/chaincode_example02.go give me same error Error: Error getting chaincode code chaincode: path to chaincode does not exist:

shinsa82 (Wed, 19 Jul 2017 07:38:43 GMT):
Has joined the channel.

Katiyman (Wed, 19 Jul 2017 08:45:41 GMT):
Has joined the channel.

FollowingGhosts (Wed, 19 Jul 2017 08:46:44 GMT):
When working with chaincode, is there an upper limit to what can be stored in the key-value database before it becomes unmanageable?

Katiyman (Wed, 19 Jul 2017 08:48:31 GMT):
Hello I am trying to work with fabric on my window7 machine i followed the prerequisites post that when i running curl -sSL https://goo.gl/iX9dek | bash as mentioned in https://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries i get below Error Error response from daemon: manifest for hyperledger/fabric-peer:i686-1.0.0 not found Error response from daemon: No such image: hyperledger/fabric-peer:i686-1.0.0 ==> FABRIC IMAGE: orderer Error response from daemon: manifest for hyperledger/fabric-orderer:i686-1.0.0 n ot found Error response from daemon: No such image: hyperledger/fabric-orderer:i686-1.0.0 ==> FABRIC IMAGE: couchdb Error response from daemon: manifest for hyperledger/fabric-couchdb:i686-1.0.0 n ot found Error response from daemon: No such image: hyperledger/fabric-couchdb:i686-1.0.0 ==> FABRIC IMAGE: ccenv Error response from daemon: manifest for hyperledger/fabric-ccenv:i686-1.0.0 not found Error response from daemon: No such image: hyperledger/fabric-ccenv:i686-1.0.0 ==> FABRIC IMAGE: javaenv Error response from daemon: manifest for hyperledger/fabric-javaenv:i686-1.0.0 n ot found Error response from daemon: No such image: hyperledger/fabric-javaenv:i686-1.0.0 ==> FABRIC IMAGE: kafka Error response from daemon: manifest for hyperledger/fabric-kafka:i686-1.0.0 not found Error response from daemon: No such image: hyperledger/fabric-kafka:i686-1.0.0 ==> FABRIC IMAGE: zookeeper Error response from daemon: manifest for hyperledger/fabric-zookeeper:i686-1.0.0 not found Error response from daemon: No such image: hyperledger/fabric-zookeeper:i686-1.0 .0 ==> FABRIC IMAGE: tools Error response from daemon: manifest for hyperledger/fabric-tools:i686-1.0.0 not found Error response from daemon: No such image: hyperledger/fabric-tools:i686-1.0.0 ===> Pulling fabric ca Image ==> FABRIC CA IMAGE Error response from daemon: manifest for hyperledger/fabric-ca:i686-1.0.0 not fo und Error response from daemon: No such image: hyperledger/fabric-ca:i686-1.0.0 I have tried downloading other images that is working .. not sure why this is not working

mastersingh24 (Wed, 19 Jul 2017 09:07:33 GMT):
@Katiyman - in the terminal you are using to run the curl command, can you run `uname -m`

qingdu (Wed, 19 Jul 2017 09:08:34 GMT):
hi guys , do you know about pagination in couchdb in fabric?

Katiyman (Wed, 19 Jul 2017 09:10:55 GMT):
@mastersingh24 i m getting i686 also i tried in my ubuntu env there also same error i am getting where uname -m is giving x86_64

art_iona (Wed, 19 Jul 2017 09:22:37 GMT):
Has joined the channel.

art_iona (Wed, 19 Jul 2017 09:42:36 GMT):
[Storing data on fabric nodes] Is there any option to store docs on a block but make it visible after a certain time/date?

yacovm (Wed, 19 Jul 2017 09:43:40 GMT):
I guess if you encrypt the doc

yacovm (Wed, 19 Jul 2017 09:43:46 GMT):
and publish the encryption key later

art_iona (Wed, 19 Jul 2017 09:46:22 GMT):
I want to avoid a second step in the process (i.e. having to publish smth later)

yacovm (Wed, 19 Jul 2017 10:10:32 GMT):
I don't know then

CodeReaper (Wed, 19 Jul 2017 12:26:13 GMT):
So I'm making a project where I have 5 actors. I was wondering- 1) how should I make the network for this, should I give one peer to every actor?? 2) should I add all peers in one organization? 3) should I add all peers in one channel? 4) should I have one orderer for this whole architecture??then how does each peer act separately specific to the actor?? 5) should I have only one CA? any help appreciated. :)

s.narayanan (Wed, 19 Jul 2017 16:43:09 GMT):
Are there any hard limits set up by peer for the chaincode container? Specifically memory, swap space etc. I noticed that the core.yaml file, Memory is set to 2147483648 (under vm:docker:hostconfig:Memory).

blw (Wed, 19 Jul 2017 16:52:50 GMT):
Has joined the channel.

raasiel (Wed, 19 Jul 2017 18:32:57 GMT):
Lets say I have an organization with 4 peers. I have 20GB data in the chain. Then I add a peer to the organization, does the peer update itself with 20 GB chain?

Shubham1109 (Wed, 19 Jul 2017 20:14:10 GMT):
Has joined the channel.

nickgaski (Wed, 19 Jul 2017 20:36:41 GMT):
@raasiel - in Fabric the ledgers exist in the scope of channels. So if you were to add the Org's new peer to a channel that had a 20gb ledger, then this newly added peer would sync up and hold the same ledger. There is a plan down the road to implement pruning, in order to keep the ledger a bit more lightweight

Tigermisu (Wed, 19 Jul 2017 21:05:48 GMT):
@nickgaski Does the peer simply copy the ledger, or does it also simulate each transaction to validate it?

nickgaski (Wed, 19 Jul 2017 21:08:53 GMT):
nope, only validated transactions make it to the ledger. So the new peer simply grabs it through gossip

Tigermisu (Wed, 19 Jul 2017 21:09:13 GMT):
Thanks!

gauthampamu (Wed, 19 Jul 2017 22:30:09 GMT):
In the fabric samples we have fabcar nodejs example which connect to the network using the credential in creds folder. There are three files 5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8-priv 5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8-pub PeerAdmin Gauthams-MBP:creds gauthampamu$ cat PeerAdmin {"name":"PeerAdmin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8","identity":{"certificate":"-----BEGIN CERTIFICATE-----\nMIICGTCCAb+gAwIBAgIQKKKdQSzsDoUYn/LPAuRWGTAKBggqhkjOPQQDAjBzMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu\nb3JnMS5leGFtcGxlLmNvbTAeFw0xNzA2MjMxMjMzMTlaFw0yNzA2MjExMjMzMTla\nMFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T\nYW4gRnJhbmNpc2NvMR8wHQYDVQQDDBZBZG1pbkBvcmcxLmV4YW1wbGUuY29tMFkw\nEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECmbzUDozIrLKjp3OAzItSG7m7Flw76rT\n8VO8E6otlCwxKtBRkPpZL7norC3NsjyE339J5O4pXCqhIApQyRRsRqNNMEswDgYD\nVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgDnKSJOiz8xeE\nyKk8W4729MHJHZ5uV3xFwzFjYJ/kABEwCgYIKoZIzj0EAwIDSAAwRQIhALT02pc/\nyfE/4wUJfUBQ32GifUEh8JktAXzL/73S0rjYAiACNSp6zAQBX9SBxTOGMk4cGGAy\nCKqf8052NVUs2CvPzA==\n-----END CERTIFICATE-----\n"}}} I am creating the network using the first network sample, in the sample there is no CA but the cryptoconfig creates few users, is it possible to use these files to connect to the network with Nodejs.

gauthampamu (Wed, 19 Jul 2017 22:31:34 GMT):
Cryptoconfig tool generates two folders Admin@org1.example.com User1@org1.example.com

gauthampamu (Wed, 19 Jul 2017 22:31:53 GMT):
How should we use the files in msp and tls folder under this directory

jljordan_bcgov (Wed, 19 Jul 2017 23:48:52 GMT):
Has joined the channel.

gauthampamu (Wed, 19 Jul 2017 23:51:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eL7qeT3cT5Hnv2Rgk) @CodeReaper The number of organizations would depend on how real you want to setup the network. If the actors really represent external companies and don't belong to the same organization and don't trust each other, then you will need to have separate organization for each actor. You just need one peer for one organization and use a single channel. For the simple proof of concept, I would recommend just one orderer.

gauthampamu (Thu, 20 Jul 2017 00:02:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ENK5cn3uS6xaQmhSo) @Katiyman Strange, if the uname -m returns x86_64, you should not be getting the same error. If you look in the script it uses the output of the script to set the value for FABRIC_TAG

Katiyman (Thu, 20 Jul 2017 04:13:07 GMT):
@gauthampamu my bash sell is returning i686.. so will the setup not work there?

JoostZ (Thu, 20 Jul 2017 13:15:57 GMT):
Has joined the channel.

rush_mwright (Thu, 20 Jul 2017 14:50:39 GMT):
Has joined the channel.

joshhw (Thu, 20 Jul 2017 16:31:16 GMT):
Has joined the channel.

pramodKC (Fri, 21 Jul 2017 01:24:49 GMT):
@tkuhrt : Thanks for the link. Step 4 was what got me thinking :) . The problem is that in that scenario the assumption is that nothing is hidden from an organization that is running the ordering service. Makes the no of organizations that can run an ordering service pretty small in most situations. It looks like atleast one organization is trusted by everybody else to do the right thing - in which case how is fabric is no different from running a central database in one of the ordering orgs in terms of security.

colinGrahms (Fri, 21 Jul 2017 07:06:17 GMT):
Has joined the channel.

Randyshu2018 (Fri, 21 Jul 2017 07:20:20 GMT):
Has joined the channel.

mastersingh24 (Fri, 21 Jul 2017 08:17:06 GMT):
@rohitrocket - X509 certificates are use for 2 purposes: 1) Standard TLS Each of the runtime components (e.g. peer, orderer, fabric-ca) has configuration properties for specifying the TLS certificate pair to use and in our samples we generate these and clearly label them with tls in the folder and name structures. For the clients, they will need to be able to trust the TLS certificates presented by these components when connecting and you'll see that we configure the trust store / root certificates for use in TLS connections in all of the clients in the samples as well. 2) Digital signatures Digital signatures are used throughout the transaction flow. Each entity (client, peer, orderer) is configured with an X509 certificate pair used to sign messages/transactions. For clients, these are called enrollment certificates (which can be provided directly via files and/or by enrolling with the fabric-ca) and for peers/orderers these are configured as part of LocalMSPs. http://hyperledger-fabric.readthedocs.io/en/latest/msp.html should help explain MSPs (https://chat.hyperledger.org/channel/general?msg=SHvQbPSxmXbFcWmay)

as93717913 (Fri, 21 Jul 2017 10:19:03 GMT):
Hi, did everyone knows if there any possible that a malicious orderer pretends to make consensus with others orderers but finally send a batch of tx with different order to peers connected to it, if not, how can this attack can be found?

indirajith (Fri, 21 Jul 2017 10:22:30 GMT):
Has joined the channel.

rohitrocket (Fri, 21 Jul 2017 10:39:36 GMT):
@mastersingh24 do we need to have a fabric ca to configure LocalMSPs for peers/orderes ?

rohitrocket (Fri, 21 Jul 2017 11:33:37 GMT):
In the BYFN sample @mastersingh24 LocalMSP does configuration of certificates... I think LocalMSP is also setup by "cryptogen" tool ? Is it so ?

rohitrocket (Fri, 21 Jul 2017 11:33:53 GMT):
Or I am making a huge conceptual mistake ?

mastersingh24 (Fri, 21 Jul 2017 11:35:37 GMT):
@rohitrocket - You are not required to run fabric-ca with the peer or ordering nodes (or for clients either if you so choose). The BYFN sample generates all of the crypto material needed to configure an MSP for you - that's correct.

rohitrocket (Fri, 21 Jul 2017 11:37:02 GMT):
Can you give me a more depth insight on configuring MSP for peers/orderers ? the document is not so clear to me.

rohitrocket (Fri, 21 Jul 2017 11:40:42 GMT):
@mastersingh24 lets say I want to configure whole MSP and enrollment certificates on my own. How can I do that ?

rohitrocket (Fri, 21 Jul 2017 11:40:51 GMT):
any pointers or any useful link ?

mastersingh24 (Fri, 21 Jul 2017 11:58:25 GMT):
Are you saying that http://hyperledger-fabric.readthedocs.io/en/latest/msp.html#msp-setup-on-the-peer-orderer-side does not help or is unclear?

CodeReaper (Fri, 21 Jul 2017 13:21:06 GMT):
@gauthampamu I saw the balance transfer example and it seems to have different channel for every organization. One thing I also noticed was that balance transfer example seems to be making different channels with same name defined in the config file. Can anyone clear it to me?

JanRzepecki (Fri, 21 Jul 2017 14:26:24 GMT):
Has joined the channel.

blw (Fri, 21 Jul 2017 16:29:45 GMT):
Are there any templates available for starting up a docker network with a kafka orderer?

blw (Fri, 21 Jul 2017 16:32:12 GMT):
I've tried: github.com/hyperledger/fabric/bddtests/dc-orderer-kafka.yml but when do a docker-compose with it, it throws the following errors: ```$ docker-compose -f dc-orderer-kafka.yml up WARNING: The ORDERER2_ORDERER_GENERAL_LOCALMSPID variable is not set. Defaulting to a blank string. WARNING: The ORDERER2_ORDERER_GENERAL_LOCALMSPDIR variable is not set. Defaulting to a blank string. WARNING: The ORDERER2_ORDERER_GENERAL_TLS_PRIVATEKEY variable is not set. Defaulting to a blank string. WARNING: The ORDERER2_ORDERER_GENERAL_TLS_CERTIFICATE variable is not set. Defaulting to a blank string. WARNING: The ORDERER2_ORDERER_GENERAL_TLS_ROOTCAS variable is not set. Defaulting to a blank string. WARNING: The ORDERER1_ORDERER_GENERAL_LOCALMSPID variable is not set. Defaulting to a blank string. WARNING: The ORDERER1_ORDERER_GENERAL_LOCALMSPDIR variable is not set. Defaulting to a blank string. WARNING: The ORDERER1_ORDERER_GENERAL_TLS_PRIVATEKEY variable is not set. Defaulting to a blank string. WARNING: The ORDERER1_ORDERER_GENERAL_TLS_CERTIFICATE variable is not set. Defaulting to a blank string. WARNING: The ORDERER1_ORDERER_GENERAL_TLS_ROOTCAS variable is not set. Defaulting to a blank string. WARNING: The ORDERER_GENERAL_GENESISMETHOD variable is not set. Defaulting to a blank string. WARNING: The ORDERER_GENERAL_GENESISFILE variable is not set. Defaulting to a blank string. ERROR: Cannot extend service 'orderer0' in /Users/ben/workspace/go-workspace/src/github.com/hyperledger/fabric/bddtests/dc-orderer-kafka.yml: services with 'depends_on' cannot be extended```

blw (Fri, 21 Jul 2017 16:44:43 GMT):
nvm, figured it out

Lakshmipadmaja (Fri, 21 Jul 2017 18:05:32 GMT):
Has joined the channel.

gauthampamu (Sat, 22 Jul 2017 05:16:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=53Csnuep7MA5obemy) @CodeReaper Just reviewed the code for balance transfer, it is creating just one channel called mychannel. Please check the config.json file. It creates one channel and all peers join that channel.

blw (Sat, 22 Jul 2017 17:21:40 GMT):
I'm trying to make some changes to the "Build you first network" sample to use a kafka orderer, but I'm seeing the following error message `Error: Got unexpected status: SERVICE_UNAVAILABLE` when I run `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` Does anyone know what service might be unavailable?

blw (Sat, 22 Jul 2017 17:21:40 GMT):
I'm trying to make some changes to the "Build you first network" sample to use a kafka orderer, but I'm seeing the following error message `Error: Got unexpected status: SERVICE_UNAVAILABLE` when I run `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` Does anyone know what service might be unavailable?

blw (Sat, 22 Jul 2017 17:21:40 GMT):
I'm trying to make some changes to the "Build you first network" sample to use a kafka orderer, but I'm seeing the following error message `Error: Got unexpected status: SERVICE_UNAVAILABLE` when I run `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` I have verified that all the containers are up and running. Does anyone know what service might be unavailable?

jeffgarratt (Sun, 23 Jul 2017 14:47:50 GMT):
@blw the kafka system can take quite a bit of time to reach a ready state (about 40 secs or so)

Sagar87966 (Mon, 24 Jul 2017 05:24:10 GMT):
Has joined the channel.

Sagar87966 (Mon, 24 Jul 2017 05:26:57 GMT):
hey i'm new to fabrics, i had done all the necessary setup require for it but facing problem that from where should i start, so as i can gain good understanding of it

aberfou (Mon, 24 Jul 2017 07:32:58 GMT):
Has joined the channel.

daygee (Mon, 24 Jul 2017 10:24:05 GMT):
hello guys

daygee (Mon, 24 Jul 2017 10:25:08 GMT):
so I have a slight issue while going through the Build your first network tutorial

daygee (Mon, 24 Jul 2017 10:25:47 GMT):
I've been able to create the network

daygee (Mon, 24 Jul 2017 10:26:32 GMT):
however, based on the instructions given, I was expecting a channelid.block to be returned after creating the network

daygee (Mon, 24 Jul 2017 10:27:06 GMT):
but I can't seem to identify it anywhere on the logs

SanketPanchamia (Mon, 24 Jul 2017 13:30:04 GMT):
Has joined the channel.

CodeReaper (Mon, 24 Jul 2017 14:16:41 GMT):
@gauthampamu its making one channel for each organization. both channels are on different organization and hence I believe can have same name, check the code below-

CodeReaper (Mon, 24 Jul 2017 14:16:53 GMT):

Message Attachments

CodeReaper (Mon, 24 Jul 2017 14:18:02 GMT):

Message Attachments

cbf (Mon, 24 Jul 2017 19:57:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qWt8qSCD675ghbCRs) @Sagar87966 I would walk through the various tutorials for developers http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html#tutorials

cbf (Mon, 24 Jul 2017 20:27:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tuE2Y4TWySGvqTZPL) @daygee are you running the tutorial step-by-step? I just did and the mychannel.block was indeed returned from the appropriate peer command

cbf (Mon, 24 Jul 2017 20:28:56 GMT):

Message Attachments

cbf (Mon, 24 Jul 2017 20:29:45 GMT):
note the 2nd to last line of the debug log says: "2017-07-24 20:25:15.781 UTC [channelCmd] readBlock -> DEBU 020 Received block:0 "

cbf (Mon, 24 Jul 2017 20:30:14 GMT):
the block is left in the CWD

Sagar87966 (Tue, 25 Jul 2017 04:38:52 GMT):
thx @cbf

Sagar87966 (Tue, 25 Jul 2017 04:43:27 GMT):

Message Attachments

Sagar87966 (Tue, 25 Jul 2017 04:44:07 GMT):

Message Attachments

Sagar87966 (Tue, 25 Jul 2017 04:53:12 GMT):

Message Attachments

Sagar87966 (Tue, 25 Jul 2017 04:53:29 GMT):

Message Attachments

Sagar87966 (Tue, 25 Jul 2017 04:53:31 GMT):

Message Attachments

Sagar87966 (Tue, 25 Jul 2017 04:53:59 GMT):
and when i used to check that images are running properly it shows that two of the images get exited with code 1 and 2

Sagar87966 (Tue, 25 Jul 2017 04:55:13 GMT):
i tried to run orderer manually using docker but then also it fails and exited with the same error

CodeReaper (Tue, 25 Jul 2017 06:45:41 GMT):
@mastersingh24 I'm making a project where I have 5 actors. I was wondering- 1) how should I make the network for this, should I give one peer to every actor?? 2) should I add all peers in one organization? 3) should I add all peers in one channel? 4) should I have one orderer for this whole architecture??then how does each peer act separately specific to the actor?? 5) should I have only one CA? Any query that can be cleared will be appreciated.

MikeZhang (Tue, 25 Jul 2017 08:58:11 GMT):

Message Attachments

MikeZhang (Tue, 25 Jul 2017 08:58:23 GMT):
How can I fix this?

MikeZhang (Tue, 25 Jul 2017 09:05:45 GMT):

Message Attachments

daygee (Tue, 25 Jul 2017 09:18:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zRW5TTfNayAPoRweL) @cbf thanks, saw my issue

FollowingGhosts (Tue, 25 Jul 2017 09:22:57 GMT):
Does anyone know why my chaincode isn't updated when rebuilding using docker-compose?

FollowingGhosts (Tue, 25 Jul 2017 09:23:06 GMT):
I have tried purging the images to no avail

Sagar87966 (Tue, 25 Jul 2017 11:58:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YNswxaRM2XDYjPd8A) @Sagar87966 issue solved

Sagar87966 (Tue, 25 Jul 2017 11:59:20 GMT):
manage to run successfully...:grinning:

Sagar87966 (Tue, 25 Jul 2017 12:03:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C5G9E8Q7xP799oxjD) @Sagar87966

Sagar87966 (Tue, 25 Jul 2017 12:04:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C5G9E8Q7xP799oxjD) @Sagar87966

daygee (Tue, 25 Jul 2017 12:09:37 GMT):
hello guys, quick question

daygee (Tue, 25 Jul 2017 12:10:08 GMT):
must a channel exist on a network for transactions to occur on that network?

daygee (Tue, 25 Jul 2017 12:11:14 GMT):
because if a channel is just meant to be a private subnet, then transactions should still be processed

daygee (Tue, 25 Jul 2017 12:12:14 GMT):
however, if each transaction must be executed on a channel, then at least one channel must exist on the network

matanyahu (Tue, 25 Jul 2017 13:36:36 GMT):
Hi, I am looking for tutorials which would explain me how can I set up Hyperledger Fabric 1.0 across multiple hosts (VMs) in different topologies (50%/50% ; channel on 1 VM, rest on another) etc.

matanyahu (Tue, 25 Jul 2017 13:36:56 GMT):
if anyone is aware of such documentation, please do not hesitate to PM me

cbf (Tue, 25 Jul 2017 13:38:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bTdDZRRpTNebmE987) @daygee yes

cbf (Tue, 25 Jul 2017 13:41:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cw9QmyRcfwGwvQeY9) @matanyahu you are not alone. We'll be working on a formal tutorial, but in the meantime, one of the IBMers on my team @tongli has been working on this in his personal GH account here https://github.com/litong01/fabric-deploy - it isn't a tutorial but it contains lots of good clues if you understand Ansible

tongli (Tue, 25 Jul 2017 13:41:23 GMT):
Has joined the channel.

tongli (Tue, 25 Jul 2017 13:43:08 GMT):
@matanyahu If you need any help using the deploy project, I can help.

matanyahu (Tue, 25 Jul 2017 13:44:07 GMT):
@tongli : thanks, will go through the setup tonight and keep you informed about results

tongli (Tue, 25 Jul 2017 13:44:46 GMT):
@matanyahu cool, cool. please do not hesitate.

tongli (Tue, 25 Jul 2017 13:46:59 GMT):
@matanyahu if you need any help on.

matanyahu (Tue, 25 Jul 2017 13:51:43 GMT):
has anyone managed to run Marbles (https://github.com/IBM-Blockchain/marbles) on Fabric 1.0 GA?

matanyahu (Tue, 25 Jul 2017 13:51:53 GMT):
or any other GUI-based app?

matanyahu (Tue, 25 Jul 2017 13:52:26 GMT):
I am looking for inspiration but I am finding difficulties in effectively setting up an app

tongli (Tue, 25 Jul 2017 13:55:32 GMT):
@matanyahu so your gui app running on some server and the server works with fabric network ?

tongli (Tue, 25 Jul 2017 13:55:46 GMT):
using its APIs?

matanyahu (Tue, 25 Jul 2017 13:57:49 GMT):
@tongli : I managed to deploy Fabric 1.0 network as per "Getting Started" instructions and played around with tutorials available in https://hyperledger-fabric.readthedocs.io . However, I am now looking for a complete application that is compatible with Fabric 1.0 GA so that I can decompose it and learn more about its structure. Marbles is a good example (it worked well in HF 0.6) but whenever I try to force it to run with Fabric 1.0 GA docker images, the deployment of peers fails.

matanyahu (Tue, 25 Jul 2017 13:58:09 GMT):
I am not aware of any other tutorial or sample apps that are Fabric 1.0 GA compatible

matanyahu (Tue, 25 Jul 2017 14:00:31 GMT):
I assume I have to modify Marbles codebase to run it on an existing Fabric deployment instead of following the tutorial closely

matanyahu (Tue, 25 Jul 2017 14:28:50 GMT):
@dshuffma : would you be able to help me with the above? I assume the reason current branch of Marbles does not work with Fabric 1.0 GA images because certificates which are pre-generated are not compatible with it (whenever I run docker-compose-marblesv3.yaml, peer nodes never come up while Fabric 1.0 GA images are downloaded instead of Alpha images).

dshuffma (Tue, 25 Jul 2017 14:28:50 GMT):
Has joined the channel.

akdj (Tue, 25 Jul 2017 15:22:49 GMT):
Hello, where can I ask about how does orderer work? how do multiple orderers work together?

akdj (Tue, 25 Jul 2017 15:49:36 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#member here the definition of member, it is the synonym of organization?

muralisr (Tue, 25 Jul 2017 18:11:56 GMT):
@akdj the channel wold be `fabric-consensus`

ume0202 (Tue, 25 Jul 2017 18:34:44 GMT):
Can anybody help me with example on ACL (Access Control Lists) ??

plee (Tue, 25 Jul 2017 19:09:19 GMT):
Has joined the channel.

neharprodduturi (Tue, 25 Jul 2017 23:51:12 GMT):
Has joined the channel.

neharprodduturi (Wed, 26 Jul 2017 04:00:25 GMT):
@matanyahu I briefly tried marbles recently. Yes the current download-dockerimages.sh script tries to get alpha versions of fabric and fabric-ca. Pointing the tags to rc1 versions will download the Fabric 1.0 GA images. Lines 62 and 63 in download-dockerimages.sh : ${CA_TAG:="x86_64-1.0.0-rc1"} : ${FABRIC_TAG:="x86_64-1.0.0-rc1"}

Sagar87966 (Wed, 26 Jul 2017 04:57:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cw9QmyRcfwGwvQeY9) @matanyahu hey there i had also gone through the fabric getting started and the small projects they had provided for practice, now i'm doing one task on ubuntu vm who are connected in fabric network and any transaction or asset related update, query when we run can be seen on both the VM ?

matanyahu (Wed, 26 Jul 2017 06:24:23 GMT):
@neharprodduturi : Thanks for reaching me out. Please note that RC1 images are not GA images. Changing image names in .sh file will obviously download newer versions but if you try to run the network with setup_sdk.sh, peers will not run correctly

neharprodduturi (Wed, 26 Jul 2017 06:32:04 GMT):
@matanyahu : Okay. Thank you for correcting me. I updated the setup_sdk.sh to get v1.0.0 for fabric-sdk-node. I faced a similar issue as you, peers did not run correctly

matanyahu (Wed, 26 Jul 2017 06:33:10 GMT):
@neharprodduturi : I think the problem comes up with pre-generated certificates which are used by docker-compose-marblesv3.yaml.

neharprodduturi (Wed, 26 Jul 2017 06:34:54 GMT):
yes. The docker-compose-marblesv3.yaml file needs to be updated according to the latest fabric and fabric-ca. If you have any thoughts on it, I can try together with you

Sagar87966 (Wed, 26 Jul 2017 07:13:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=npzbX39NQ9qAEbgyZ) @Sagar87966 how can i connect two ubuntu vm using the channel (Setup Blockchain Network) on it

Sagar87966 (Wed, 26 Jul 2017 07:21:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jKtzLf7CMwca6KJyx) @neharprodduturi when i clone that code and checkout the latest commit then there is docker-compose-marbles.yaml file i when i run that only six images are running fabric-ca and 2 peer images are not running as in documentation it has been given that eight images are going to run

Sagar87966 (Wed, 26 Jul 2017 07:22:02 GMT):

Message Attachments

sampath06 (Wed, 26 Jul 2017 10:53:17 GMT):
Has joined the channel.

matanyahu (Wed, 26 Jul 2017 13:21:50 GMT):
@Sagar87966 : I think it is related to pre-generated certs, provided by Marbles repo clone

matanyahu (Wed, 26 Jul 2017 13:22:24 GMT):
I will try to re-generate these certs with the use of configtxgen and create channel with 1.0 GA binaries

Sagar87966 (Wed, 26 Jul 2017 13:23:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cMTKtMKjPGfyW3bcn) @matanyahu thx but above issue solved

matanyahu (Wed, 26 Jul 2017 13:24:03 GMT):
@Sagar87966 : did you manage to run Marbles with 1.0 GA?

cbf (Wed, 26 Jul 2017 13:52:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G2u6Sjha3vguFg2bw) @matanyahu https://developer.ibm.com/code/journey/deploy-an-asset-transfer-app-using-blockchain/ has step-by-step instructions to run marbles on Hyperledger Fabric 1.0

matanyahu (Wed, 26 Jul 2017 14:22:04 GMT):
@cbf : thanks for the link, however please note that the article refers back to the original github repo which is based on Fabric 1.0 Alpha images

matanyahu (Wed, 26 Jul 2017 14:22:32 GMT):
when you make an attempt to run it against Fabric 1.0 GA images, deployment will fail

matanyahu (Wed, 26 Jul 2017 14:22:53 GMT):
it is probably due to pre-generated certificates used by startup scripts

matanyahu (Wed, 26 Jul 2017 14:24:09 GMT):
https://github.com/IBM-Blockchain/marbles/blob/master/scripts/download-dockerimages.sh

matanyahu (Wed, 26 Jul 2017 14:24:18 GMT):
lines 62-63 : : ${CA_TAG:="x86_64-1.0.0-alpha"} : ${FABRIC_TAG:="x86_64-1.0.0-alpha"}

matanyahu (Wed, 26 Jul 2017 14:25:16 GMT):
https://github.com/IBM-Blockchain/marbles/blob/master/scripts/docker-compose-marblesv3.yaml

magg (Wed, 26 Jul 2017 15:49:44 GMT):
I have this error while trying to configure hyperledger, ``` peer1_org1_example_com_1 | 2017-07-26 15:45:27.725 UTC [gossip/discovery] handleAliveMessage -> ERRO 004 Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg:<membership:<endpoint:"peer0.org1.example.com:37051" pki_id:"\344#X\002\274xf~\336\264!3p\201_\255\246\277Q\006\3253R[\341YC\315\354\256\374\235" > timestamp:<inc_num:1501083897700733329 seq_num:2 > identity:"\n\007Org1MSP\022\232\007-----BEGIN -----\nMIICizCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw\nfzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK\nBgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw\nWhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg\nQ2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy\nIEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\nHBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ\n+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw\nFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC\ndcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1\nnEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG\nSM49BAMCA0cAMEQCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiAk\naXzB/jnlU39B7Wws9BIr9c8mSOEPF6VY1uGP+dKV0g==\n-----END -----\n" > peer0_org1_example_com_1 | Returning from /protos.Endorser/ProcessProposal, error: The creator certificate is not valid, err Could not validate identity's OUs, err The identity certificate does not contain an Organizational Unit (OU)2017-07-26 15:45:27.739 UTC [gossip/discovery] handleAliveMessage -> ERRO 004 Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg: timestamp: > ``` any ideas how can I fix it?

cbf (Wed, 26 Jul 2017 16:08:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bbESWt2DF752QTPpK) @matanyahu thanks i'll fix that

anweiss (Wed, 26 Jul 2017 16:38:23 GMT):
Has joined the channel.

anweiss (Wed, 26 Jul 2017 16:45:15 GMT):
I apologize in advance if this is a bit of a noob question ... but what is the typical backplane for orgs on completely separate networks/providers to be able to connect to the same Fabric network? ... are the peer nodes internet-connected? is there some sort of site-to-site VPN connectivity between the orgs? do we have any best practices/samples that show this as the current docker-compose samples are designed for running the entire network on a single host

mastersingh24 (Wed, 26 Jul 2017 17:27:54 GMT):
@anweiss - It's a good question although I think the answer is fairly simple if you think about it this way: 1) Peer nodes host and run chaincode 2) Client applications submit proposals to one or more peer nodes in order to obtain endorsements 3) Client applications package signed proposals together and submit them to ordering nodes 4) Peer nodes connect to ordering nodes in order to receive batches (blocks) of transactions which they then commit and validate So in the end, that leaves you with the following: 1) Peer nodes must expose endpoints which are accessible from client applications 2) Ordering nodes must expose endpoints which are accessible from client applications and peer nodes Fabric supports TLS for client apps, peer nodes and ordering nodes. So it will all depend on the security requirements of the various organizations which are part of a Fabric network as to whether to connect solely using TLS over the public internet or whether they need a VPN / private network / leased line / etc

mastersingh24 (Wed, 26 Jul 2017 17:27:54 GMT):
@anweiss - It's a good question although I think the answer is fairly simple if you think about it this way: 1) Peer nodes host and run chaincode 2) Client applications submit proposals to one or more peer nodes in order to obtain endorsements 3) Client applications package signed proposals together and submit them to ordering nodes 4) Peer nodes connect to ordering nodes in order to receive batches (blocks) of transactions which they then commit and validate 5) Peer nodes can communicate with peer nodes from other organizations via the gossip protocol So in the end, that leaves you with the following: 1) Peer nodes must expose endpoints which are accessible from client applications 2) Ordering nodes must expose endpoints which are accessible from client applications and peer nodes Fabric supports TLS for client apps, peer nodes and ordering nodes. So it will all depend on the security requirements of the various organizations which are part of a Fabric network as to whether to connect solely using TLS over the public internet or whether they need a VPN / private network / leased line / etc

mastersingh24 (Wed, 26 Jul 2017 17:27:54 GMT):
@anweiss - It's a good question although I think the answer is fairly simple if you think about it this way: 1) Peer nodes host and run chaincode 2) Client applications submit proposals to one or more peer nodes in order to obtain endorsements 3) Client applications package signed proposals together and submit them to ordering nodes 4) Peer nodes connect to ordering nodes in order to receive batches (blocks) of transactions which they then commit and validate 5) Peer nodes can communicate with peer nodes from other organizations via the gossip protocol So in the end, that leaves you with the following: 1) Peer nodes must expose endpoints which are accessible from client applications (and from peers from other orgs if gossip is enabled) 2) Ordering nodes must expose endpoints which are accessible from client applications and peer nodes Fabric supports TLS for client apps, peer nodes and ordering nodes. So it will all depend on the security requirements of the various organizations which are part of a Fabric network as to whether to connect solely using TLS over the public internet or whether they need a VPN / private network / leased line / etc

anweiss (Wed, 26 Jul 2017 17:41:46 GMT):
this is perfect, thanks @mastersingh24 !

mastersingh24 (Wed, 26 Jul 2017 17:47:35 GMT):
Sure thing - I do think we need to add this type of stuff to the docs - I'll open an item for it

Mattasher (Wed, 26 Jul 2017 20:27:44 GMT):
Is it possible for a transaction to reference environment variables related to the ledger itself? For example in ethereum a smart contract can reference it's block number, hash, etc.

kennethhutw (Thu, 27 Jul 2017 01:50:01 GMT):
Hi, Can hyperledger composer run without hyerledger fabric ?

kennethhutw (Thu, 27 Jul 2017 01:50:58 GMT):
Does hyperledger composer is front-end application and then hyperledger fabric is back-end application ?

Sagar87966 (Thu, 27 Jul 2017 04:32:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AtFswipJt6HCGinhB) @matanyahu Hey sorry for late reply, im unable to run marbles at first, there are some issue while running i followed all the steps then also some issue arises then i'm solving

Sagar87966 (Thu, 27 Jul 2017 04:55:49 GMT):
Hi, after i run create -channel.js in marbles i got error-----------------module.js:568 return process.dlopen(module, path._makeLong(filename)); ^ Error: Module version mismatch. Expected 48, got 46. at Error (native) at Object.Module._extensions..node (module.js:568:18) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object. (/home/afour/marbles/scripts/fabric-sdk-node/node_modules/grpc/src/node/src/grpc_extension.js:45:15) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10)

Sagar87966 (Thu, 27 Jul 2017 04:56:10 GMT):
my node --version is 6.2.1

Sagar87966 (Thu, 27 Jul 2017 04:56:31 GMT):
npm version is 3.9.3

Sagar87966 (Thu, 27 Jul 2017 06:23:02 GMT):

Message Attachments

Sagar87966 (Thu, 27 Jul 2017 06:24:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AtFswipJt6HCGinhB) @matanyahu go through the steps given on this page https://github.com/IBM-Blockchain/marbles.git

matanyahu (Thu, 27 Jul 2017 08:24:12 GMT):
@Sagar87966 : will try immediately, thanks

magg (Thu, 27 Jul 2017 08:56:58 GMT):
hello, is there something like github.com/hyperledger/blockchain-explorer for fabric v1.0? also how would it be possible to track application level metrics like transaction throughput and export them to a system like prometheus?

daygee (Thu, 27 Jul 2017 10:40:54 GMT):
hi guys, has anyone tried to deploy fabric on kubernetes

yacovm (Thu, 27 Jul 2017 11:12:51 GMT):
yes, there is a channel #fabric-kubernetes

yacovm (Thu, 27 Jul 2017 11:12:55 GMT):
@daygee

FollowingGhosts (Thu, 27 Jul 2017 12:26:18 GMT):
Is there an upper limit on recommended document sizes when working with getstate and putstate/

magg (Thu, 27 Jul 2017 12:58:13 GMT):
has someone created a sample compose file for Docker Swarm? i'm running into many issues

sampath06 (Thu, 27 Jul 2017 12:58:50 GMT):
Hello, Any documentation on how to setup hyperledger fabric on different physical servers?

yacovm (Thu, 27 Jul 2017 13:13:31 GMT):
@sampath06 yeah

yacovm (Thu, 27 Jul 2017 13:13:43 GMT):
well not exactly documentation but I have https://github.com/yacovm/fabricDeployment

yacovm (Thu, 27 Jul 2017 13:13:49 GMT):
if you preconfigure ssh keys

yacovm (Thu, 27 Jul 2017 13:14:05 GMT):
it is pretty straight forward, and sets a fabric network with a solor orderer and multiple peers with TLS

sampath06 (Thu, 27 Jul 2017 13:14:36 GMT):
Thanks. Will have a look.

pd93 (Thu, 27 Jul 2017 13:41:14 GMT):
Getting the error `mkdir /tmp/go-build975452718: no such file or directory` when trying to build my chaincode (either manually or when deploying via bddtests) Anyone know where this is coming from?

pd93 (Thu, 27 Jul 2017 13:41:14 GMT):
Getting the error `mkdir /tmp/go-build975452718: no such file or directory` when trying to build my chaincode (either manually or when deploying via bddtests) Anyone know where this is coming from? **edit**: This appears to be non-specific to fabric. I also can't use commands like `go env` or `go version`

mastersingh24 (Thu, 27 Jul 2017 15:04:42 GMT):
@pd93 - I've occasionally seen this - I have usually seen this when running a specific package and then I just run `go clean`

pd93 (Thu, 27 Jul 2017 15:06:01 GMT):
@mastersingh24 I literally just solved my issue by running `mkdir /tmp && chmod 777 /tmp`

pd93 (Thu, 27 Jul 2017 15:06:13 GMT):
I have no idea how I managed to delete my /tmp directory

magg (Thu, 27 Jul 2017 15:07:15 GMT):
how can I add the crypto-config files to the containters in docker swarm mode.... im getting error that the source was not specified

RichardGreen (Thu, 27 Jul 2017 16:15:49 GMT):
gah.. What's with the "getting started" stuff... "./startFabric.sh " gives me "ERROR: for couchdb Cannot create container for service couchdb: Conflict. The name "/couchdb" is already in use by container 8a82b9ce3a89222c3406bc47551dd976eb76a27fe5d5310464b18c43baeec34c. You have to remove (or rename) that container to be able to reuse that name. ERROR: for orderer.example.com Cannot create container for service orderer.example.com: Conflict. The name "/orderer.example.com" is already in use by container d23df704609c485ea96d74c6e46d6e5bdb1e170d039531623d9f24641633b915. You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project. r"

m.egal (Thu, 27 Jul 2017 16:42:26 GMT):
Has joined the channel.

lcgomez (Thu, 27 Jul 2017 16:56:24 GMT):
@RichardGreen Have you done a `./byfn.sh -m down` to clean up your environment? You can also run a `docker ps` to get a list of containers and `docker rm ` to remove them.

nickgaski (Thu, 27 Jul 2017 18:08:11 GMT):
@RichardGreen - it's just saying that you already have an active container for your couch database. I'm guessing you already ran through the sample app or perhaps the first network. Just kill your containers `docker rm -f $(docker ps -aq)` and remove any chaincode images with `docker rmi -f `

nickgaski (Thu, 27 Jul 2017 18:08:51 GMT):
Throw a `docker network prune` in there too for good measure. Try again after those three steps and let me know if you're good. I'd expect it to work

wlahti (Thu, 27 Jul 2017 19:20:50 GMT):
Has joined the channel.

Howdy (Thu, 27 Jul 2017 20:21:51 GMT):
Has joined the channel.

Howdy (Thu, 27 Jul 2017 20:22:35 GMT):
Just fired up the fabcar tutorial and am getting an error running startFabric.sh. Exiting VerifyCouchConfig() peer0.org1.example.com | panic: Error in instantiating ledger provider: Unable to connect to CouchDB, check the hostname and port: invalid character '<' looking for beginning of value

Howdy (Thu, 27 Jul 2017 20:25:31 GMT):
I can run this from my host machine curl localhost:5984 {"couchdb":"Welcome","version":"2.0.0","vendor":{"name":"The Apache Software Foundation"}}

magg (Fri, 28 Jul 2017 09:13:48 GMT):
anyone has faced this issue? `Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org2.example.com,t```

magg (Fri, 28 Jul 2017 09:13:48 GMT):
anyone has faced this issue? `Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org2.example.com,t`

magg (Fri, 28 Jul 2017 09:13:48 GMT):
has anyone faced this issue? `Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org2.example.com,t`

akdj (Fri, 28 Jul 2017 11:46:42 GMT):
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) where can I check the timeout value?

matanyahu (Fri, 28 Jul 2017 12:46:54 GMT):
Hi, is anyone aware of proof-of-existence demo for notary-like tasks that we can install on Hyperledger Fabric 1.0? I tried Blocledger's POE (https://github.com/blocledger/poe-alpha2), however it does not seem to work correctly from the interface side.

RichardGreen (Fri, 28 Jul 2017 12:53:11 GMT):
Thanks @nickgaski and @lcgomez - the startFabric.sh works now. Having a bit of fun with the "node query.js" step now but that's another story

Sagar87966 (Fri, 28 Jul 2017 13:31:52 GMT):
I am new to Hyperledger Fabric and I am doing fabric 1.0 setup in two ubuntu VM. I wanted to setup one Organisation in one VM and other Organisation is in another VM. Kindly help me to know what all changes I need to do and what all files should be same in both VM.

RichardGreen (Fri, 28 Jul 2017 13:38:51 GMT):
Would each peer on a network be owned by an identifiable authority? If I was an actor in a transaction - would I set up my own peer or just the API to talk to another peer ?

glotov (Fri, 28 Jul 2017 13:42:25 GMT):
hi! Different Channels work with different blockchain databases, am I right? In other words, there is no way to share some data between chaincodes belonging to different channels?

RichardGreen (Fri, 28 Jul 2017 14:15:43 GMT):
Ah I'm also curious about the above question

ShermanHLee (Fri, 28 Jul 2017 16:13:45 GMT):
Has joined the channel.

ShermanHLee (Fri, 28 Jul 2017 16:14:19 GMT):
Hi everyone I have been running into compilation issues when I tried to perform unit testing in golang locally, when trying to instantiate and invoke another chaincode through the MockStub object. Below is my file hierarchy: ├── transaction-chaincode │ ├── transaction.go │ ├── transaction_test.go │ └── vendor └── user-chaincode ├── user.go ├── user_test.go └── vendor The scenario here basically involves one of the chaincode, for example user.go, calling the other chaincode transaction.go. The vendor folders in both directories contain the exact same content. The problem occurs when I try to instantiate a new instance of the transaction chaincode thru shim.NewMockStub in user_test.go, as the transaction mock object looks for the init method from within transaction-chaincode/vendor/ instead of user-chaincode/vendor/, despite the vendor folders having the same packages (and thus the same method). I was able to get rid of this error by having a single vendor folder at the parent directory of transaction-chaincode & user-chaincode, but I cannot do so for developmental purposes. Can anyone suggest how I would solve this unit testing problem while keeping the vendor folders in their respective locations?

ShermanHLee (Fri, 28 Jul 2017 16:14:45 GMT):
I have posted this on #fabric as well

stevehooperjr (Fri, 28 Jul 2017 16:30:39 GMT):
@ShermanHLee We've had the same problem with unit testing. We were unable to find a solution and abandoned it. It seems the MockStub is not fully capable of emulating inter-chaincode calls right now. I would also be very interested in a solution.

ShermanHLee (Fri, 28 Jul 2017 16:47:20 GMT):
@stevehooperjr I see, that would be quite interesting to research about as well. Is it something that HL would look to eventually fix?

ShermanHLee (Fri, 28 Jul 2017 16:47:54 GMT):
Thank you for the timely reply btw

stevehooperjr (Fri, 28 Jul 2017 16:49:08 GMT):
I can't say, I'm just developing chaincode for an IBM project. I don't have any connection to the fabric dev team, but I figured I would chime in. :thumbsup:

ShermanHLee (Fri, 28 Jul 2017 16:51:18 GMT):
Cool. Hopefully someone from the HL team would be able to give us both a response on this

bgaisford (Fri, 28 Jul 2017 17:20:25 GMT):
Has joined the channel.

bgaisford (Fri, 28 Jul 2017 17:24:30 GMT):
Hello everyone, newbie here. I've been trying build fabric based from source as per the developer setup instructions. Compilation is successful and the unit-tests succeed. However, I'm having issues with the bddtests. I'm seeing the error below: ``` | Peer | | peer3 | Given the user "configAdminPeerOrg1" creates an peer anchor set "anchors1" for orgs # steps/bootstrap_impl.py:346 0.001s | User | Peer | Organization | | peer2Signer | peer2 | peerOrg1 | When user "peer0Admin" creates a chaincode spec "ccSpec" with name "example02" of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" with args # steps/endorser_impl.py:20 0.001s | funcName | arg1 | arg2 | arg3 | arg4 | | init | a | 100 | b | 200 | And user "peer0Admin" using cert alias "peer-admin-cert" creates a install proposal "installProposal1" for channel "com.acme.blockchain.jdoe.channel1" using chaincode spec "ccSpec" # steps/endorser_impl.py:41 0.010s Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/behave/model.py", line 1456, in run match.run(runner.context) File "/usr/lib/python2.7/site-packages/behave/model.py", line 1903, in run self.func(context, *args, **kwargs) File "steps/endorser_impl.py", line 49, in step_impl ccDeploymentSpec = endorser_util.createDeploymentSpec(context=context, ccSpec=ccSpec) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/endorser_util.py", line 178, in createDeploymentSpec _createDeploymentSpecAsFile(ccSpec=ccSpec, outputPath=outputPath) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/endorser_util.py", line 166, in _createDeploymentSpecAsFile bdd_test_util.cli_call(["peer","chaincode","package"] + nameArgs + ctorArgs + pathArgs + versionArgs + [outputPath], expect_success=True, env=myEnv) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/bdd_test_util.py", line 32, in cli_call p = subprocess.Popen(arg_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory ``` Any pointers would be greatly appreciated.

bgaisford (Fri, 28 Jul 2017 17:24:30 GMT):
Hello everyone, newbie here. I've been trying build fabric from source as per the developer setup instructions. Compilation is successful and the unit-tests succeed. However, I'm having issues with the bddtests. I'm seeing the error below: ``` | Peer | | peer3 | Given the user "configAdminPeerOrg1" creates an peer anchor set "anchors1" for orgs # steps/bootstrap_impl.py:346 0.001s | User | Peer | Organization | | peer2Signer | peer2 | peerOrg1 | When user "peer0Admin" creates a chaincode spec "ccSpec" with name "example02" of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" with args # steps/endorser_impl.py:20 0.001s | funcName | arg1 | arg2 | arg3 | arg4 | | init | a | 100 | b | 200 | And user "peer0Admin" using cert alias "peer-admin-cert" creates a install proposal "installProposal1" for channel "com.acme.blockchain.jdoe.channel1" using chaincode spec "ccSpec" # steps/endorser_impl.py:41 0.010s Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/behave/model.py", line 1456, in run match.run(runner.context) File "/usr/lib/python2.7/site-packages/behave/model.py", line 1903, in run self.func(context, *args, **kwargs) File "steps/endorser_impl.py", line 49, in step_impl ccDeploymentSpec = endorser_util.createDeploymentSpec(context=context, ccSpec=ccSpec) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/endorser_util.py", line 178, in createDeploymentSpec _createDeploymentSpecAsFile(ccSpec=ccSpec, outputPath=outputPath) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/endorser_util.py", line 166, in _createDeploymentSpecAsFile bdd_test_util.cli_call(["peer","chaincode","package"] + nameArgs + ctorArgs + pathArgs + versionArgs + [outputPath], expect_success=True, env=myEnv) File "/home/gaisford/projects/src/github.com/hyperledger/fabric/bddtests/steps/bdd_test_util.py", line 32, in cli_call p = subprocess.Popen(arg_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory ``` Any pointers would be greatly appreciated.

bgaisford (Fri, 28 Jul 2017 17:27:07 GMT):
I'm building at these tag levels (as per the instructions): fabric: 3a4b1f2bce86daa86c025a9244a90106a58bb54b fabric-ca: bc2b642f4a9ef2dcb393bf7da512ce43e1ec1a68

bgaisford (Fri, 28 Jul 2017 17:27:07 GMT):
I'm building at these commit levels (as per the instructions): fabric: 3a4b1f2bce86daa86c025a9244a90106a58bb54b fabric-ca: bc2b642f4a9ef2dcb393bf7da512ce43e1ec1a68

dave.enyeart (Fri, 28 Jul 2017 19:19:58 GMT):
@glotov It is possible to query data on one channel from another channel. But it is not possible to update data from one channel to another channel, or have a transaction consisting of updates to two channels.

dave.enyeart (Fri, 28 Jul 2017 19:20:28 GMT):
For more details on the channel to channel queries, see the chaincode API for InvokeChaincode:

dave.enyeart (Fri, 28 Jul 2017 19:20:29 GMT):
https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L80

akay (Fri, 28 Jul 2017 19:37:06 GMT):
Has joined the channel.

ChandraLekhaChavva (Fri, 28 Jul 2017 20:10:57 GMT):
Has joined the channel.

bgaisford (Fri, 28 Jul 2017 23:17:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N6BAzL36t9LNBYNM7) @bgaisford I was able to resolve the bddtests execution issue by carefully reading the README.md within the bddtests subfolder `$GOPATH/src/github.com/hyperledger/fabric/bddtests` and updating my environment appropriately. RTFM was the solution in this case.

sampath06 (Sat, 29 Jul 2017 01:46:46 GMT):
Hello, How do I bring up a peer/orderer node and connect it to a fabric-ca node that is running on another physical server? Most of the examples I see have the CA and the nodes being started in the same docker-compose file. I would like to start them on different nodes and not really sure how to do it. Any pointers would be great. Thanks.

mastersingh24 (Sat, 29 Jul 2017 08:42:26 GMT):
@sampath06 - peer and orderer nodes don't actually connect to the fabric-ca. So to run the fabric-ca on a different node, you can simply bring it up on a different server and then you just need to make sure you configure the client with the proper endpoint (hostname:port) for the fabric-ca

sampath06 (Sat, 29 Jul 2017 09:34:10 GMT):
@mastersingh24 how do the peers get the credentials from the fabric-ca?

glotov (Sat, 29 Jul 2017 10:07:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YBuoPSwQJQHFzrsNk) @dave.enyeart, thank you for the link, but can a chaincode update (not only query) data on the other channel. I noticed that different channels use different database instances. Does it mean, that channels are actually different Blockchains (only with ability to read each other, but not update)?

chenxuan (Sat, 29 Jul 2017 10:58:56 GMT):
Has joined the channel.

dave.enyeart (Sat, 29 Jul 2017 12:21:45 GMT):
That is correct @glotov, each channel has its own chain and database. They can read each other but not update each other.

Captain63Dragon (Sat, 29 Jul 2017 22:21:34 GMT):
Has joined the channel.

deepak9438 (Mon, 31 Jul 2017 04:34:03 GMT):
Has joined the channel.

Sagar87966 (Mon, 31 Jul 2017 07:46:14 GMT):
hey i got one error while enrolling the client for another machine TLS handshake error from vm1_ip_address:40692: tls: oversized record received with length 21536

Sagar87966 (Mon, 31 Jul 2017 07:46:22 GMT):
what should i do

Sagar87966 (Mon, 31 Jul 2017 07:46:26 GMT):
?

rhudson (Mon, 31 Jul 2017 10:33:50 GMT):
Has joined the channel.

rhudson (Mon, 31 Jul 2017 10:35:43 GMT):
Hello, a newbie question here: if I have a channel with only one peer, is there anything to stop that peer from altering the channel ledger? For example, are the hash values from the channel ledger replicated to a global ledger that is independent of the channel?

mastersingh24 (Mon, 31 Jul 2017 10:50:03 GMT):
[Usually this error indicates that one side is not configured to use TLS ](https://chat.hyperledger.org/channel/fabric-questions?msg=qyF67Ao6XadSfZefe) @Sagar87966

dave.enyeart (Mon, 31 Jul 2017 12:31:46 GMT):
@rhudson The ordering service creates and hashes the blocks. Even with a single peer receiving blocks, it would be possible to detect if the peer's ledger is altered. A client can check the block signatures and hashes are still valid.

dave.enyeart (Mon, 31 Jul 2017 12:31:46 GMT):
@rhudson The ordering service creates and hashes the blocks. Even with a single peer receiving blocks, it would be possible to detect if the peer's ledger is altered. A client can check that the block signatures and hashes are still valid.

dave.enyeart (Mon, 31 Jul 2017 12:31:46 GMT):
@rhudson The ordering service creates, hashes, and signs the blocks. Even with a single peer receiving blocks, it would be possible to detect if the peer's ledger is altered. A client can check that the block signatures and hashes are still valid.

FollowingGhosts (Mon, 31 Jul 2017 13:15:02 GMT):
when using couchdb, is it possible to store nested JSON objects that can be searched?

FollowingGhosts (Mon, 31 Jul 2017 13:15:10 GMT):
So far I've been having to save them as strings

magg (Mon, 31 Jul 2017 13:38:09 GMT):
anyone has run kafka in docker swarm, i'm getting this erro everytime `"task: non-zero exit (1)"` and the containers are dying

dave.enyeart (Mon, 31 Jul 2017 14:04:16 GMT):
@FollowingGhosts When saving JSON to state database it can indeed by a nested JSON structure. See the couchdb find API for various examples of queries against the JSON data: http://docs.couchdb.org/en/2.0.0/api/database/find.html

dave.enyeart (Mon, 31 Jul 2017 14:05:40 GMT):
There is an example of marshaling a golang struct to JSON bytes here: https://github.com/hyperledger/fabric/blob/master/examples/chaincode/go/marbles02/marbles_chaincode.go#L194

dave.enyeart (Mon, 31 Jul 2017 14:05:53 GMT):
In the example the struct is simple but it can be nested as well.

rahulhegde (Mon, 31 Jul 2017 17:24:35 GMT):
@bmos299 Do we have the file-system sizing estimates for fabric images - I agree this will vary upon factors like policy, endorsement request, batching etc. But did we capture any best estimates around it?

rahulhegde (Mon, 31 Jul 2017 17:24:35 GMT):
@bmos299 Do we have the file-system sizing estimates for fabric images - I agree this will vary upon factors like policy, endorsement request, batching etc. But do we captured any best estimates or guidelines around it?

raidinesh80 (Mon, 31 Jul 2017 19:27:10 GMT):
Has joined the channel.

VenuVemula (Mon, 31 Jul 2017 19:30:08 GMT):
Has joined the channel.

gauthampamu (Tue, 01 Aug 2017 03:21:51 GMT):
https://chat.hyperledger.org/channel/fabric-ca?msg=unDBhDa29CNk2GfPw I have question on fabric-ca and LDAP. I have posted the question on #fabric-ca

jaswanth (Tue, 01 Aug 2017 06:10:24 GMT):
Hi all, I am using Couchdb as my database to store the data , when i update the data ( by getting it and editing it ), in couchdb am seeing only the updated data , but when i query using node sdk , its returning all the transactions ( previous data and edited data ) . My question is hows it returning the previous data ? . if it stores every transaction separately then why in couchdb i find only the updated data ?

Katiyman (Tue, 01 Aug 2017 09:55:22 GMT):
Hello... Need help to setup my first network https://stackoverflow.com/questions/45434262/first-network-in-hyperledger

Sagar87966 (Tue, 01 Aug 2017 11:06:44 GMT):
@Katiyman go with the following step you will get it http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

Katiyman (Tue, 01 Aug 2017 11:18:19 GMT):
@Sagar87966 got the ans on stack .. thanks

gauthampamu (Tue, 01 Aug 2017 13:43:33 GMT):
https://chat.hyperledger.org/channel/fabric-sdk-node?msg=jMCJsc9r4m9dpRMCQ

thesaurabhchoudhary (Tue, 01 Aug 2017 18:37:21 GMT):
Has joined the channel.

thesaurabhchoudhary (Tue, 01 Aug 2017 18:37:34 GMT):
Please if someone could help me ....I'm new to BC dev I was trying this http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html I was able to run the code all i want to know how can i make changes to fabcar.go (chaincode) and deploy it because if I make any changes to fabcar.go, and run startFabric.sh , it doesnt pick up the changes

a.komkov (Tue, 01 Aug 2017 18:38:32 GMT):
Has joined the channel.

a.komkov (Tue, 01 Aug 2017 18:56:29 GMT):
Hi all, I'm trying to build test blockchain on fabric v1 and have a problem with "channel join" command I've generated new configuration via configtxgen: ``` configtxgen -profile=OneOrgOrdererGenesis -channelID=dumka3 -outputBlock ./genesis.block configtxgen -profile=OneOrgChannel -channelID=dumka3 -outputCreateChannelTx=channel.tx configtxgen -profile=OneOrgChannel -channelID=dumka3 -outputAnchorPeersUpdate ./SellerMSPanchors.tx -asOrg SellerMSP ``` Than successfully created channel: ``` docker exec -e "CORE_PEER_LOCALMSPID=SellerMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@seller.45hc/msp" 45hc-seller peer channel create -o 45hc-orderer:7050 -c dumka3 -f /etc/hyperledger/configtx/channel.tx ``` Now I'm trying to join ``` docker exec -e "CORE_PEER_LOCALMSPID=SellerMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@seller.45hc/msp" -e "CORE_PEER_ADDRESS=0.0.0.0:7051" 45hc-seller peer channel join -b /etc/hyperledger/configtx/genesis.block ``` But, in the command output I'm getting `"JoinChain" for chainID = dumka3 failed because of validation of configuration block, because of Invalid configuration block, missing Application configuration group`` ``` 2017-08-01 18:40:46.296 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-01 18:40:46.296 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-01 18:40:46.297 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-08-01 18:40:46.324 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AF7060A5C08011A0C08AE9683CC0510...41646D696E731A080A000A000A000A00 2017-08-01 18:40:46.324 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 056BF18E98050D8D17EFEC46107FC208C7F7AC456DC08D5F33CDF2B9ACD5847D Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" for chainID = dumka3 failed because of validation of configuration block, because of Invalid configuration block, missing Application configuration group)) ``` and this in the peer's log: ``` 45hc-seller | 2017-08-01 18:40:46.328 UTC [cscc] Invoke -> DEBU 22b Invoke function: JoinChain 45hc-seller | 2017-08-01 18:40:46.328 UTC [shim] func1 -> DEBU 22c [4ef54d33]Transaction completed. Sending COMPLETED 45hc-seller | 2017-08-01 18:40:46.328 UTC [shim] func1 -> DEBU 22d [4ef54d33]Move state message COMPLETED 45hc-seller | 2017-08-01 18:40:46.328 UTC [shim] handleMessage -> DEBU 22e [4ef54d33]Handling ChaincodeMessage of type: COMPLETED(state:ready) 45hc-seller | 2017-08-01 18:40:46.328 UTC [shim] func1 -> DEBU 22f [4ef54d33]send state message COMPLETED 45hc-seller | 2017-08-01 18:40:46.328 UTC [chaincode] processStream -> DEBU 230 [4ef54d33]Received message COMPLETED from shim 45hc-seller | 2017-08-01 18:40:46.328 UTC [chaincode] HandleMessage -> DEBU 231 [4ef54d33]Fabric side Handling ChaincodeMessage of type: COMPLETED in state ready 45hc-seller | 2017-08-01 18:40:46.328 UTC [chaincode] HandleMessage -> DEBU 232 [4ef54d33278a8a2762f654b47c3a0de9cb84da1f999dd06f585e25ced24e0c36]HandleMessage- COMPLETED. Notify 45hc-seller | 2017-08-01 18:40:46.328 UTC [chaincode] notify -> DEBU 233 notifying Txid:4ef54d33278a8a2762f654b47c3a0de9cb84da1f999dd06f585e25ced24e0c36 45hc-seller | 2017-08-01 18:40:46.328 UTC [chaincode] Execute -> DEBU 234 Exit 45hc-seller | 2017-08-01 18:40:46.328 UTC [endorser] callChaincode -> DEBU 235 Exit 45hc-seller | 2017-08-01 18:40:46.328 UTC [endorser] simulateProposal -> DEBU 236 Exit 45hc-seller | 2017-08-01 18:40:46.328 UTC [endorser] ProcessProposal -> ERRO 237 simulateProposal() resulted in chaincode response status 500 for txid: 4ef54d33278a8a2762f654b47c3a0de9cb84da1f999dd06f585e25ced24e0c36 ``` So, can somebody help with this "Application configuration group"? I've posted configtx.yaml and crypto-config.yaml on Dropbox: https://www.dropbox.com/sh/c2cnypxwv0lpwds/AADDmT5fV6syZ6fAT0kLcYfaa?dl=0 I've found that error raised from `cscc` chaincode (https://github.com/hyperledger/fabric/blob/d9c320297bd2a4eff2eb253ce84dc431ef860972/core/scc/cscc/configure.go#L178) but I don't understand what exactly I need to fix :)

silliman (Tue, 01 Aug 2017 19:12:19 GMT):
@a.komkov I suspect that your problem is from using the same channel name in all three *configtxgen* commands. The first invocation when using * -profile=OneOrgOrdererGenesis * will create a genesis block for the orderer's "system channel". Your next two invocations, using profile OneOrgChannel, are for a "user" or "application" channel. Since you've already used that name dumka3 for your system channel, I think this is the source of your problem. Try using a different names for these two channels.

muralisr (Tue, 01 Aug 2017 19:16:04 GMT):
@a.komkov at least two things...assuming you are using genesis.block to start the orderer with 1) remove `-channelID=dumka3` from the genesis block command (2) the step `"CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@seller.45hc/msp" 45hc-seller peer channel create -o 45hc-orderer:7050 -c dumka3 -f /etc/hyperledger/configtx/channel.tx` must have produced a "dumka3.block" which should be used in the join instead of "genesis.block"

muralisr (Tue, 01 Aug 2017 19:17:47 GMT):
assuming the yaml files are correct, that should do the trick

muralisr (Tue, 01 Aug 2017 19:19:01 GMT):
@silliman think (1) is basically what you are suggesting ?

silliman (Tue, 01 Aug 2017 19:20:14 GMT):
@a.komkov @muralisr yes I'm suggest (1) but you are also right Muralii, dumka3.block should be specified in the peer channel join command

a.komkov (Tue, 01 Aug 2017 19:32:41 GMT):
@silliman and @muralisr, thank you very much! It works! But I don't understand the _"user" or "application" channel_ thing. Why there are different channels? Can you point me where I can read more?

silliman (Tue, 01 Aug 2017 19:34:41 GMT):
@a.komkov Forget I ever said 'user' channel, but this page disscuses the Orderer system channel and application channels: http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html

silliman (Tue, 01 Aug 2017 19:37:13 GMT):
Each Hyperledger Fabric network must have one, and only one, ordering system channel. It is a fundamental part of the network. Then, you can have any number of application channels, but you have to start things first with the ordering system channel

a.komkov (Tue, 01 Aug 2017 19:39:00 GMT):
thank you again @silliman. it's really helpful

Terminalman90 (Tue, 01 Aug 2017 20:36:54 GMT):
Has joined the channel.

dhuseby (Tue, 01 Aug 2017 23:14:46 GMT):
how is the endorsement policy encoded?

dhuseby (Tue, 01 Aug 2017 23:15:08 GMT):
how is it specified that a transaction must get signatures from specific peers?

YandryPozo (Tue, 01 Aug 2017 23:42:26 GMT):
Has joined the channel.

lasantha (Wed, 02 Aug 2017 00:21:01 GMT):
Has joined the channel.

muralisr (Wed, 02 Aug 2017 00:30:57 GMT):
@dhuseby the endorsement policy is expressed in terms of MSPs .. as in "all (msp1.admin, one-of(msp2.member, msp3.member)" ...in otherwords not directly in terms of peers but in terms of identities as specified by MSPs

dhuseby (Wed, 02 Aug 2017 00:31:26 GMT):
gotcha

muralisr (Wed, 02 Aug 2017 00:31:29 GMT):
each peer is defined in terms of "local MSP"

dhuseby (Wed, 02 Aug 2017 00:32:12 GMT):
how are endorsement policies created? is it a file of some sort? i'm super ignorant about this ATM

dhuseby (Wed, 02 Aug 2017 00:32:17 GMT):
javascript?

muralisr (Wed, 02 Aug 2017 00:34:52 GMT):
no worries at all... so theres the question of "how does the user specify it" vs "how's it encoded" ... the former depends upon what the user uses (CLI, SDK...) .. CLI has a simply string based expression such as "OR ('Org1MSP.member','Org2MSP.member')" ... not sure about SDK but could be JSON

muralisr (Wed, 02 Aug 2017 00:38:17 GMT):
for the later, these "expressions" are converted to a "policy" protobuf definition (fabric/common/policies.proto) which is used uniformly in the fabric for evaluation

muralisr (Wed, 02 Aug 2017 00:39:47 GMT):
CheckPolicy(channel, policy, ) is a typical usage

muralisr (Wed, 02 Aug 2017 00:39:47 GMT):
`CheckPolicy(channel, policy, )` is a typical usage

amber-zhang (Wed, 02 Aug 2017 02:17:39 GMT):
Has joined the channel.

DarshanBc (Wed, 02 Aug 2017 05:56:18 GMT):
Has joined the channel.

prmdmshra (Wed, 02 Aug 2017 05:56:40 GMT):
Has joined the channel.

prmdmshra (Wed, 02 Aug 2017 05:56:52 GMT):
Could you please clarify on the following technical queries related to Fabric: 1. What are the various protocols used throughout the fabric ecosystem, and what are the usage of each? 2. What are the basic requirements(Hardware, Software) and the difficulties faced with integration with the legacy system?

DarshanBc (Wed, 02 Aug 2017 05:58:00 GMT):
Hi I am trying to execute fabcar example but when I execute node query.js its giving an error fabric-client was not found

deepak9438 (Wed, 02 Aug 2017 10:30:34 GMT):
Hi all. we are doing some small application on Fabric. Is there is anyway we can see the Data/blocks which are being created and stored in the backend. Thanks for Helping.

deepak9438 (Wed, 02 Aug 2017 10:31:34 GMT):
Basically I want to check any possibility to check if we can see the data in the backend

dave.enyeart (Wed, 02 Aug 2017 11:05:50 GMT):
@deepak9438 Depending on what you want, there are several options 1) From client application using SDK you can subscribe to block creation events 2) From client application using SDK you can query for a block or iterate through all blocks 3) From client application using SDK you can query for a certain transaction id 4) From chaincode you can call GetHistoryForKey() to see the full transaction history of a certain item on the chain 5) If you want to directly see the data, you could utilize CouchDB as state database, and then you could view the data using CouchDB Fauxton UI (assuming you expose the port... recommended for dev env but not production due to security concern)

dave.enyeart (Wed, 02 Aug 2017 11:05:50 GMT):
@deepak9438 Depending on what you want, there are several options 1) From client application using SDK you can subscribe to block creation events 2) From client application using SDK you can query for a block or iterate through all blocks 3) From client application using SDK you can query for a certain transaction id 4) From chaincode you can call GetHistoryForKey() to see the full transaction history of a certain item on the chain 5) If you want to directly see the data, you could utilize CouchDB as state database, and then you could view the data using CouchDB Fauxton UI (assuming you expose the port... recommended for dev env but not production due to security concern...it's better to go through the secured peers APIs rather than expose the underlying db)

dave.enyeart (Wed, 02 Aug 2017 11:05:50 GMT):
@deepak9438 Depending on what you want, there are several options 1) From client application using SDK you can subscribe to block creation events 2) From client application using SDK you can query for a block or iterate through all blocks 3) From client application using SDK you can query for a certain transaction id 4) From chaincode you can call GetHistoryForKey() to see the full transaction history of a certain item on the chain 5) If you want to directly see the data, you could utilize CouchDB as state database, and then you could view the data using CouchDB Fauxton UI (assuming you expose the port... recommended for dev env but not production due to security concern...it's better to go through the secured peer APIs rather than expose the underlying db)

UtkarshSingh (Wed, 02 Aug 2017 14:10:25 GMT):
Has joined the channel.

UtkarshSingh (Wed, 02 Aug 2017 14:11:35 GMT):
Is there any online course on How to run Hyperledger fabric and make app ?

subbu165 (Wed, 02 Aug 2017 14:22:41 GMT):
Hi, is there any example in hyperledger beta version using couch DB in the GitHub?

FollowingGhosts (Wed, 02 Aug 2017 14:34:37 GMT):
Some of the examples have it

FollowingGhosts (Wed, 02 Aug 2017 14:34:54 GMT):
Is there any information on persistence with docker?

FollowingGhosts (Wed, 02 Aug 2017 14:35:04 GMT):
I want my network to persist between restarts if possible

dave.enyeart (Wed, 02 Aug 2017 15:02:29 GMT):
The persistence location within container can be mounted to host file system as described here: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#a-note-on-data-persistence. If it is mounted to host then data will be persisted across container starts/stops

dave.enyeart (Wed, 02 Aug 2017 15:02:29 GMT):
@FollowingGhosts The persistence location within container can be mounted to host file system as described here: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#a-note-on-data-persistence. If it is mounted to host then data will be persisted across container starts/stops

AdnanC (Wed, 02 Aug 2017 15:21:30 GMT):
@subbu165 not sure what exactly you are looking for, but you can take a look at `fabric/example/e2e_cli/network_setup.sh`, it has an example on how to use couchdb as statedb

guce (Wed, 02 Aug 2017 15:28:15 GMT):
Has joined the channel.

scupyr (Wed, 02 Aug 2017 15:31:04 GMT):
Has joined the channel.

dave.enyeart (Wed, 02 Aug 2017 15:32:33 GMT):
@subbu165 @AdnanC Better to reference the official doc examples: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#using-couchdb

AdnanC (Wed, 02 Aug 2017 15:35:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=82N6x5eD5ud4ca7FX) @dave.enyeart @subbu165 that would be the right place to start, thanks Dave.

scupyr (Wed, 02 Aug 2017 15:50:17 GMT):
Hello everybody, Is the number of peers in a fabric network determined by configuration file and *can't* be changed ? In other word, that means can I add new peer *dynamically* after the network has been started ?

toddinpal (Wed, 02 Aug 2017 16:31:32 GMT):
@scupyr The network configuration is dynamic up to the limits of the policies in effect at the time. A new peer can be added by distributing the appropriate crypto material to the membership services

Terminalman90 (Wed, 02 Aug 2017 16:36:23 GMT):
Has left the channel.

mastersingh24 (Wed, 02 Aug 2017 16:38:59 GMT):
@scupyr - Just to follow up on the correct answer provided by @toddinpal , take a look at http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html#adding-an-organization for how to add an organization to an existing channel. You can also of course create new channels with new organizations as well. Additionally, if you have an organization which is already part of multiple channels and you simply want to add another peer for redundancy or scale, you simple need to obtain addtional credentials for your peer signed by your organizations certificate authority

TiaPashentsava (Wed, 02 Aug 2017 16:45:20 GMT):
Has joined the channel.

brianY (Wed, 02 Aug 2017 21:27:54 GMT):
Has joined the channel.

brianY (Wed, 02 Aug 2017 21:36:10 GMT):
``` 2017-08-02 21:21:50.662 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-02 21:21:50.662 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-02 21:21:51.085 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: authentication handshake failed: EOF"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable ``` Anyone come across this error?

guce (Thu, 03 Aug 2017 00:35:28 GMT):
Has left the channel.

guce (Thu, 03 Aug 2017 00:35:57 GMT):
Has joined the channel.

hamptonsmith (Thu, 03 Aug 2017 00:53:27 GMT):
Has joined the channel.

DarshanBc (Thu, 03 Aug 2017 08:34:01 GMT):
for the fabcar example from where does chaincode gets installed I am trying to get it from .sh script but I am not able to understand

Randyshu2018 (Thu, 03 Aug 2017 08:43:37 GMT):

Message Attachments

Randyshu2018 (Thu, 03 Aug 2017 08:44:57 GMT):
hi,all .what should I do with "context deadline exceeded"?

mastersingh24 (Thu, 03 Aug 2017 09:33:12 GMT):
@Randyshu2018 - 1) Are you just trying to get up and running with am example network? If so, you should actually use https://github.com/hyperledger/fabric-samples/tree/release/first-network rather than trying to run the e2e from the fabric source repo 2) There's likely some type of connectivity issue between your peers (that's the context deadline exceeded message) although it should not effect the e2e sample 3) The actual error you got was a timeout from Compose but your Docker containers are still running (you can set the COMPOSE_HTTP_TIMEOUT to a higher value) 4) Try running `docker ps` and you should see your containers running BUT - I'll refer you back to my point 1) above - if you just want to get up and running with a sample network

DarshanBc (Thu, 03 Aug 2017 09:37:22 GMT):
Hi I am running fabcar code to I alter that chaincode and commit I am again starting the network which takes sometime removing and installing the images is there any other way that I can just install the chaincode without starting the network

mastersingh24 (Thu, 03 Aug 2017 09:48:53 GMT):
@DarshanBc - looks like you figured out the answer to the question below?(https://chat.hyperledger.org/channel/general?msg=6vfwdTSGQQgA7Dho4)

DarshanBc (Thu, 03 Aug 2017 09:50:57 GMT):
@mastersingh24 yes I figured out but now I am stuck in other problem that is commiting the altered code

mastersingh24 (Thu, 03 Aug 2017 09:51:43 GMT):
Are you trying to actually update the fabcar chaincode?

DarshanBc (Thu, 03 Aug 2017 10:13:39 GMT):
yes, and I think I didnt find from where it is updating instead I found whatever the changes that I make in host machine will reflect in peers

DarshanBc (Thu, 03 Aug 2017 10:13:39 GMT):
yes, and I think I didnt find from where it is installing instead I found whatever the changes that I make in host machine will reflect in peers

imtiyazbhat (Thu, 03 Aug 2017 11:42:43 GMT):
Has joined the channel.

imtiyazbhat (Thu, 03 Aug 2017 11:45:10 GMT):
Is there any documentation available to setup multiple hosts for different organisations.

kmohanar (Thu, 03 Aug 2017 11:51:20 GMT):
Has joined the channel.

Wayneandreed (Thu, 03 Aug 2017 12:53:29 GMT):
Has joined the channel.

brianY (Thu, 03 Aug 2017 15:06:14 GMT):
``` 2017-08-02 21:21:50.662 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-02 21:21:50.662 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-02 21:21:51.085 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: authentication handshake failed: EOF"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable ``` Error creating channel while doing the first-network example. Any ideas on how to fix?

aleksandar.likic (Thu, 03 Aug 2017 20:36:43 GMT):
Has joined the channel.

aleksandar.likic (Thu, 03 Aug 2017 20:52:40 GMT):
@muralisr Is there any access control when one CC calls another beyond https://jira.hyperledger.org/browse/FAB-2103? Can I restrict which CC can call my CC?

nickgaski (Thu, 03 Aug 2017 21:09:57 GMT):
@brianY - can you share a bit more information. What OS are you running on? What version of docker? etc..

muralisr (Thu, 03 Aug 2017 21:56:47 GMT):
@aleksandar.likic https://jira.hyperledger.org/browse/FAB-2103 provides generic ACL at the fabric level ("is the caller part of the channel WRITERS policy of the called CC ?"). There are no hooks for plugging in your own ACL.

aleksandar.likic (Thu, 03 Aug 2017 22:34:20 GMT):
Thanks @muralisr

muralisr (Thu, 03 Aug 2017 22:35:21 GMT):
just curious @aleksandar.likic ... how would you restrict the CC-CC call ?

aleksandar.likic (Thu, 03 Aug 2017 22:45:01 GMT):
@muralisr This is in the context of Fabric extensions (custom SCCs). Before v1.0.0 SCCs could not and SCC couldn't access ledgers. So we thought we would need to have SCC call user CC (specific to the extension) for (extension specific) persistence. In that scenario we would wont to allow access to the user CC (that logically belong to the extension) from the SCC only. If in v1.0.0 an SCC can access ledger (putState, getState, etc.) we won't need a user CC for extension persistence. So, can an SCC in v1.0.0 access the ledger (assuming the same restrictions applicable to user CC)?

aleksandar.likic (Thu, 03 Aug 2017 22:45:01 GMT):
@muralisr This is in the context of Fabric extensions (custom SCCs). Before v1.0.0 SCCs couldn't access ledgers. So we thought we would need to have SCC call user CC (specific to the extension) for (extension specific) persistence. In that scenario we would wont to allow access to the user CC (that logically belong to the extension) from the SCC only. If in v1.0.0 an SCC can access ledger (putState, getState, etc.) we won't need a user CC for extension persistence. So, can an SCC in v1.0.0 access the ledger (assuming the same restrictions applicable to user CC)?

aleksandar.likic (Thu, 03 Aug 2017 22:45:01 GMT):
@muralisr This is in the context of Fabric extensions (custom SCCs). Before v1.0.0 SCCs couldn't access ledgers. So we thought we would need to have SCC call user CC (specific to the extension) for (extension specific) persistence. In that scenario we would want to allow access to the user CC (that logically belong to the extension) from the SCC only. If in v1.0.0 an SCC can access ledger (putState, getState, etc.) we won't need a user CC for extension persistence. So, can an SCC in v1.0.0 access the ledger (assuming the same restrictions applicable to user CC)?

aleksandar.likic (Thu, 03 Aug 2017 22:45:01 GMT):
@muralisr This is in the context of Fabric extensions (custom SCCs). Before v1.0.0 SCCs couldn't access ledgers. So we thought we would need to have SCC call user CC (specific to the extension) for (extension specific) persistence. In that scenario we would want to allow access to the user CC (that logically belong to the extension) from that SCC only. If in v1.0.0 an SCC can access ledger (putState, getState, etc.) we won't need a user CC for extension persistence. So, can an SCC in v1.0.0 access the ledger (assuming the same restrictions applicable to user CC)?

muralisr (Thu, 03 Aug 2017 22:56:24 GMT):
@aleksandar.likic SCC in v1.0.0 can access the ledger (e.g., "lscc" has to, so it can maintain chaincode instantiations on the channel)

muralisr (Thu, 03 Aug 2017 22:57:38 GMT):
in other words, there's no difference between SCC and UCC in that respect....

Captain63Dragon (Fri, 04 Aug 2017 01:28:13 GMT):
Has left the channel.

chenxuan (Fri, 04 Aug 2017 05:31:48 GMT):
@AdnanC i think the msp is ca?

Katiyman (Fri, 04 Aug 2017 05:38:32 GMT):
Can somebody help me with below error https://stackoverflow.com/questions/45411300/getting-connection-failed-in-hyperledger-fabric-sample

niteshsolanki (Fri, 04 Aug 2017 10:53:54 GMT):
Why are GetHistoryForKey() and GetQueryResult() NOT re-executed at validating/committing phase ?

dave.enyeart (Fri, 04 Aug 2017 11:30:11 GMT):
@niteshsolanki They are intended for read-only in v1.0.0. They may be enhanced in the future to validate against phantom reads, which at that time would make them appropriate for use in update transactions.

dave.enyeart (Fri, 04 Aug 2017 11:30:11 GMT):
@niteshsolanki They are intended for read-only queries in v1.0.0. They may be enhanced in the future to validate against phantom reads, which at that time would make them appropriate for use in update transactions.

niteshsolanki (Fri, 04 Aug 2017 11:33:30 GMT):
Thanks @dave.enyeart .. had another question: I have an event listener connected to a peer listening for block events. But wen my listener crashes down it loose the past events. how can I use Kafka or any other MQ to not loose the event's. What design pattern should I follow?

dave.enyeart (Fri, 04 Aug 2017 11:35:54 GMT):
I think you would need to read from block storage upon coming up to get prior blocks, and then switch over to the event listener to get live blocks

dave.enyeart (Fri, 04 Aug 2017 11:36:35 GMT):
You can think of block storage itself as the 'queue' containing all prior blocks

dave.enyeart (Fri, 04 Aug 2017 11:37:11 GMT):
The SDKs provide APIs to read from block storage

niteshsolanki (Fri, 04 Aug 2017 11:47:24 GMT):
@dave.enyeart okay. Apart from tht can peers publish the event's into some MQ and then client subscribe to those to get event's even if it miss them?

dstarina (Fri, 04 Aug 2017 11:49:25 GMT):
Hi. I have asked this a while ago, the question is the same, but I'm hoping the answer has changed. Is there any manual/tutorial on how to set up a Fabric network with multiple peers hosted on different servers - and on how to add another peer once the network is already operating?

Katiyman (Fri, 04 Aug 2017 11:53:37 GMT):
@dstarina try this link if this helps http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

dave.enyeart (Fri, 04 Aug 2017 12:03:01 GMT):
@niteshsolanki No out of the box capability to publish block events to MQ or Kafka. You could write a client application using one of the SDKs to do that, to provide distribution to a wider set of applications via MQ or Kafka.

niteshsolanki (Fri, 04 Aug 2017 12:04:32 GMT):
@dave.enyeart thanks! can "Kafka Connect" be used for that to get live streams of events?

dave.enyeart (Fri, 04 Aug 2017 12:10:12 GMT):
@niteshsolanki It looks like you can build custom Java-based Kafka Connect connectors, so yes it seams reasonable to have a SourceConnector that pulls data out of blockchain using Java SDK.

dave.enyeart (Fri, 04 Aug 2017 12:10:12 GMT):
@niteshsolanki It looks like you can build custom Java-based Kafka Connect connectors, so yes it seems reasonable to have a SourceConnector that pulls data out of blockchain using Java SDK.

dave.enyeart (Fri, 04 Aug 2017 12:11:46 GMT):
@dstarina Here are some utilities to help with a network deployment across hosts: https://github.com/yacovm/fabricDeployment

niteshsolanki (Fri, 04 Aug 2017 12:15:45 GMT):
okay! thanks @dave.enyeart

dstarina (Fri, 04 Aug 2017 12:39:52 GMT):
@Katiyman I believe this in only for deploymet on a single host

dstarina (Fri, 04 Aug 2017 12:41:03 GMT):
@dave.enyeart Thanks, will check it out. Is it also possible to add a new peer to an existing network with this utilities?

dstarina (Fri, 04 Aug 2017 12:42:18 GMT):
Also, the documentation says it installs peer of a single organization. Is it possible to set up multiple organizations?

dave.enyeart (Fri, 04 Aug 2017 13:36:02 GMT):
@dstarina To add a new peer to an existing organization on the channel, see https://stackoverflow.com/questions/43751966/how-to-generate-certificates-for-new-peers-in-organization-in-hyperledger-fabric. To add a new organization to the channel you will need to update the channel config, see: https://stackoverflow.com/questions/45494225/modifying-the-genesis-block-using-configtxlator.

dave.enyeart (Fri, 04 Aug 2017 13:36:21 GMT):
The utility is a set of scripts, you should be able to extend for things like multiple organizations.

nickgaski (Fri, 04 Aug 2017 14:36:11 GMT):
@dstarina - check this repo out as well. https://github.com/litong01/fabric-deploy It should be donated to Hyperledger soon

MohammadObaid (Fri, 04 Aug 2017 14:42:42 GMT):
Hey all. Just one question What is hyperledger-fabric pow?. What I understand is that every peers validate transaction using endorsement policy defined in chaincode. is this the pow of hyperledger-fabric?

fbenhamo (Fri, 04 Aug 2017 14:44:00 GMT):
Hi, can the orderers see all the transactions over all the channels?

fbenhamo (Fri, 04 Aug 2017 14:44:33 GMT):
Or is each channel somehow encrypted using a key shared only by the subscribers of the channel but not the orderer?

fbenhamo (Fri, 04 Aug 2017 14:44:33 GMT):
Or is each channel somehow encrypted using a key shared only by the subscribers of the channel but not the orderer(s)?

dave.enyeart (Fri, 04 Aug 2017 15:03:15 GMT):
@fbenhamo The orderers order and distribute all the transactions for all the channels. They do not actually open up the transactions, but the transaction bytes do flow through the orderers. In 1.0.0 clients can encrypt or hash data before storing on the blockchain, securing the data but also making it unqueryable on the blockchain. There is work underway to optionally keep data completely private from orderers in future versions, while still allowing authorized peers to query the data.

pd93 (Fri, 04 Aug 2017 15:05:15 GMT):
So I'm using the behave tests to bring up my network. But I'm getting the following when connecting to the node sdk: ``` Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/pete/dev/go/src/gitlab.com/eqdlt/common/fabric-rest/node_modules/fabric-client/lib/Orderer.js:258:23) at emitOne (events.js:96:13) at ClientDuplexStream.emit (events.js:188:7) at ClientDuplexStream._emitStatusIfDone (/home/pete/dev/go/src/gitlab.com/eqdlt/common/fabric-rest/node_modules/grpc/src/node/src/client.js:204:12) at ClientDuplexStream._readsDone (/home/pete/dev/go/src/gitlab.com/eqdlt/common/fabric-rest/node_modules/grpc/src/node/src/client.js:169:8) at readCallback (/home/pete/dev/go/src/gitlab.com/eqdlt/common/fabric-rest/node_modules/grpc/src/node/src/client.js:229:12) ``` I've also got this in my peer log ``` 2017-08-04 14:30:11.433 UTC [eventhub_producer] Chat -> ERRO c22 error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled 2017-08-04 14:30:11.433 UTC [eventhub_producer] deRegisterHandler -> DEBU c23 deregistering event type: BLOCK 2017-08-04 14:30:13.875 UTC [eventhub_producer] validateEventMessage -> DEBU c24 ValidateEventMessage starts for signed event 0xc4221b0ae0 2017-08-04 14:30:13.876 UTC [eventhub_producer] registerHandler -> DEBU c25 registering event type: BLOCK ``` Anyone know what's going on. The error messages aren't too clear

fbenhamo (Fri, 04 Aug 2017 16:14:36 GMT):
@dave.enyeart Thanks.

dklesev (Fri, 04 Aug 2017 16:30:04 GMT):
could someone help me out how to decode a result of `peer chaincode query -C "composerchannel" -n qscc -c '{"Args":["GetBlockByNumber","composerchannel", "15"]}'`? f.e. using protoc, but I don't know where to find the proto-definition

dklesev (Fri, 04 Aug 2017 16:30:04 GMT):
could someone help me out how to decode a result of `peer chaincode query -C "someChannel" -n qscc -c '{"Args":["GetBlockByNumber","someChannel", "2"]}'`? f.e. using protoc, but I don't know where to find the proto-definition

dklesev (Fri, 04 Aug 2017 16:30:37 GMT):
alternatively a single transaction result would be sufficient, too (GetTransactionById)

mastersingh24 (Fri, 04 Aug 2017 19:09:56 GMT):
@dklesev - You do know that all of the SDKs support this functionality and actually parse this out for you? The function you are asking about returns a common.Block which is defined here https://github.com/hyperledger/fabric/blob/release/protos/common/common.proto#L144

dklesev (Fri, 04 Aug 2017 19:34:31 GMT):
@mastersingh24 I know... switched already to node-sdk

dklesev (Fri, 04 Aug 2017 19:34:40 GMT):
thx anyway

eacoeytaux (Fri, 04 Aug 2017 19:55:08 GMT):
Has joined the channel.

mastersingh24 (Fri, 04 Aug 2017 20:12:40 GMT):
sure thing

mastersingh24 (Sun, 06 Aug 2017 09:47:17 GMT):
@Selvam_Annamalai - You may be running into the issue where the time in VM used by Docker Toolbox has drifted from the time on your host. You might want to try the following: Run the following commands in the Docker Quickstart Terminal: ``` docker-machine stop docker-machine restart ```

mastersingh24 (Sun, 06 Aug 2017 09:47:17 GMT):
@Selvam_Annamalai - You may be running into the issue where the time in VM used by Docker Toolbox has drifted from the time on your host. You might want to try the following: Run the following commands in the Docker Quickstart Terminal: ``` docker-machine stop docker-machine restart ```

mastersingh24 (Sun, 06 Aug 2017 09:47:17 GMT):
@Selvam_Annamalai - You may be running into the issue where the time in VM used by Docker Toolbox has drifted from the time on your host. You might want to try the following: Run the following commands in the Docker Quickstart Terminal: ``` docker-machine stop docker-machine restart ``` https://chat.hyperledger.org/channel/general?msg=vHdgTW3CMRyaSFBDP

mastersingh24 (Sun, 06 Aug 2017 09:47:17 GMT):
@Selvam_Annamalai - You may be running into the issue where the time in VM used by Docker Toolbox has drifted from the time on your host. You might want to try the following: Run the following commands in the Docker Quickstart Terminal: ``` docker-machine stop docker-machine start ``` https://chat.hyperledger.org/channel/general?msg=vHdgTW3CMRyaSFBDP

Selvam_Annamalai (Sun, 06 Aug 2017 09:47:17 GMT):
Has joined the channel.

k0hl1 (Sun, 06 Aug 2017 10:03:31 GMT):
Has joined the channel.

k0hl1 (Sun, 06 Aug 2017 10:03:56 GMT):
Hi All, I wanted to know how to make sense of the data returned by queryBlock, queryTransaction or some other similar function in HL. The data is of the format "data": [ { "signature": { "type": "Buffer", "data": [ 48, 69, How to get to know from this, what was saved/updated in blockchain and when ? Any help is appreciated! Thanks!

y204990 (Sun, 06 Aug 2017 16:25:20 GMT):
Has joined the channel.

glotov (Sun, 06 Aug 2017 21:18:33 GMT):
hi! Are chaincodes atomic? I mean that if an invoked chaincode made several writes (`PutState`s) and crashed, will the keys that has already been written, be reverted?

glotov (Sun, 06 Aug 2017 21:18:33 GMT):
hi! Are chaincodes atomic? I mean that if an invoked chaincode made several writes (`PutState`s) and crashed, will the keys that has already been written, be reverted?

yacovm (Sun, 06 Aug 2017 21:39:38 GMT):
the writes to the stateDB occur while reading the blocks

yacovm (Sun, 06 Aug 2017 21:39:43 GMT):
not when invoking chaincode

yacovm (Sun, 06 Aug 2017 21:39:49 GMT):
a chaincode invocation is only a simulation

dave.enyeart (Mon, 07 Aug 2017 03:48:41 GMT):
correct, the chaincode simulation/execution does not update state database, it only creates a readset/writeset that goes into the block's transaction. and then at validation/commit phase, assuming the transaction gets validated, the transaction's writeset will be applied to state database atomically.

dave.enyeart (Mon, 07 Aug 2017 03:49:50 GMT):
if the peer crashes during commit, it is guaranteed to return to a consistent state upon peer startup (before any further transactions are simulated/executed)

ztanaka1971 (Mon, 07 Aug 2017 08:55:28 GMT):
Has joined the channel.

mastersingh24 (Mon, 07 Aug 2017 09:00:38 GMT):
@rohitrocket - http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html (https://chat.hyperledger.org/channel/general?msg=jZ7D7eru3M9btiAbx)

rohitrocket (Mon, 07 Aug 2017 09:01:22 GMT):
@mastersingh24 I am trying to instantiate chaincode after installing it

rohitrocket (Mon, 07 Aug 2017 09:01:26 GMT):
but getting this error

rohitrocket (Mon, 07 Aug 2017 09:01:32 GMT):
do you have any idea why is it so ?

rohitrocket (Mon, 07 Aug 2017 09:01:44 GMT):
"handler not found for chaincode"

Selvam_Annamalai (Mon, 07 Aug 2017 09:20:45 GMT):
Hi, can you please tell me how to deploy new chain code instead of chaincode_example02 in first-network tutorial?

art_iona (Mon, 07 Aug 2017 09:54:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KnDZaAwWmhMgTxuZz) @dave.enyeart @mastersingh24 hello, i added another fabcar01 chaincode to the fabcar example and i am trying to instantiate it (fabcar01 is basically the same, just has other cars under InitLedger, I am trying to see how two chaincodes work on one channel). It seems though I cannot instantiate this second chaincode.

art_iona (Mon, 07 Aug 2017 09:54:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KnDZaAwWmhMgTxuZz) @dave.enyeart @Vadim @mastersingh24 hello, i added another fabcar01 chaincode to the fabcar example and i am trying to instantiate it (fabcar01 is basically the same, just has other cars under InitLedger, I am trying to see how two chaincodes work on one channel). It seems though I cannot instantiate this second chaincode.

art_iona (Mon, 07 Aug 2017 09:54:51 GMT):
I get this error: 2017-08-07 09:39:50.414 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: C24A75EC7247B813478E9ED0D215029B3B4CFC605CC9AFA0BA25868F8055D477 Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar chaincode/input/src/github.com/fabcar/fabcar01.go:42: SmartContract redeclared in this block previous declaration at chaincode/input/src/github.com/fabcar/fabcar.go:42 chaincode/input/src/github.com/fabcar/fabcar01.go:46: Car redeclared in this block previous declaration at chaincode/input/src/github.com/fabcar/fabcar.go:46

art_iona (Mon, 07 Aug 2017 09:55:11 GMT):
Why is that?

art_iona (Mon, 07 Aug 2017 11:54:37 GMT):
I think it might be related to this https://jira.hyperledger.org/browse/FAB-3029 just not sure how to fix it because I think I am already running v1.0.0

mastersingh24 (Mon, 07 Aug 2017 12:02:54 GMT):
@art_iona - you are actually trying to define different chaincodes in the same package

art_iona (Mon, 07 Aug 2017 12:03:28 GMT):
yep, also renamed the structures

art_iona (Mon, 07 Aug 2017 12:03:39 GMT):
sorry for that, the top error persists though

art_iona (Mon, 07 Aug 2017 12:03:49 GMT):
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar

mastersingh24 (Mon, 07 Aug 2017 12:04:07 GMT):
What you should do is to create a "fabcar01" directory at the same level as the "fabcar" directory and reference it as `github.com/fabcar01`

mastersingh24 (Mon, 07 Aug 2017 12:04:07 GMT):
What you should do is to create a `fabcar01` directory at the same level as the `fabcar` directory and reference it as `github.com/fabcar01`

mastersingh24 (Mon, 07 Aug 2017 12:05:20 GMT):
Else you are basically defining the same struct in the same package

art_iona (Mon, 07 Aug 2017 12:05:47 GMT):
so there is no way that they update the same ledger then, right? if I then run node query.js (where i take into consideration both chaincode_ids) will it return an updated ledger from both chaincodes?

mastersingh24 (Mon, 07 Aug 2017 12:05:58 GMT):
Think of difference chaincodes as being unique golang packages

mastersingh24 (Mon, 07 Aug 2017 12:06:52 GMT):
Technically they will be on the same ledger but their state databases will be namespaced differently (with the approach I mentioned)

art_iona (Mon, 07 Aug 2017 12:07:37 GMT):
so can you give me some hint how can i implement some functionality where a chaincode calls another chaincode and they access the same world state

art_iona (Mon, 07 Aug 2017 12:07:42 GMT):
a bit confused now

art_iona (Mon, 07 Aug 2017 12:08:04 GMT):
i just want to see that two chaincodes are able to update the same ledger

art_iona (Mon, 07 Aug 2017 12:09:34 GMT):
will try out what you suggested, thanks!

dave.enyeart (Mon, 07 Aug 2017 12:44:29 GMT):
@art_iona The only way is to have one chaincode invoke another chaincode. See InvokeChaincode() api:

dave.enyeart (Mon, 07 Aug 2017 12:44:30 GMT):
https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L80

DrissB (Mon, 07 Aug 2017 13:18:41 GMT):
Has joined the channel.

art_iona (Mon, 07 Aug 2017 16:02:34 GMT):
Hi again. Trying to use the InvokeChaincode method. Why do I get this error "2017-08-07 15:54:21.541 UTC [golang-platform] func1 -> DEBU 00c Discarding GOROOT package strconv Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/common/util: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/common/util: cannot find package "github.com/hyperledger/fabric/common/util" in any of: /opt/go/src/github.com/hyperledger/fabric/common/util (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/common/util (from $GOPATH)" when I see that it was most probably fixed with *FAB-4737* or *FAB-4883*

art_iona (Mon, 07 Aug 2017 16:03:12 GMT):
Links for easiness: https://jira.hyperledger.org/browse/FAB-4883?jql=text%20~%20%22can%27t%20load%20package%3A%20package%20github.com%2Fhyperledger%2Ffabric%2Fcommon%2Futil%3A%22 https://jira.hyperledger.org/browse/FAB-4737?jql=text%20~%20%22can%27t%20load%20package%3A%20package%20github.com%2Fhyperledger%2Ffabric%2Fcommon%2Futil%3A%22

jane3wang (Mon, 07 Aug 2017 16:33:20 GMT):
Has joined the channel.

FrankShikhaliev (Mon, 07 Aug 2017 20:20:59 GMT):
Has joined the channel.

DarshanBc (Tue, 08 Aug 2017 07:19:08 GMT):
Hi In fabcar sample if I have to query car by owner name how do it

sampath06 (Tue, 08 Aug 2017 07:44:04 GMT):
Hi, Can somebody help with modelling this scenario. Say a document has to be validated by two organisations. Org1 uploads the document and Org2 has to validate it. How does this exactly work? Will we have document states maintained and track which users have been validated? This is not the scenario for the endorsing peers associated with a chaincode, right?

DarshanBc (Tue, 08 Aug 2017 08:26:58 GMT):
Hi I need need to create users and give authorization permission for them to alter the values associated with their ID how can I achieve this task

hugo-borne (Tue, 08 Aug 2017 10:03:09 GMT):
Has joined the channel.

dave.enyeart (Tue, 08 Aug 2017 10:18:13 GMT):
@DarshanBc There are two basic approaches for querying, let's use your owner name example.

dave.enyeart (Tue, 08 Aug 2017 10:18:24 GMT):
First approach is to create a composite key for your asset such as Owner:CarId. Now you can do a partial composite key query on "Owner:*" to find all the owner's assets (GetStateByPartialCompositeKey chaincode api). The composite key may be the primary key for your asset, or it may be a side 'index' for your asset. This approach works on the default leveldb state database as well as couchdb state database.

dave.enyeart (Tue, 08 Aug 2017 10:18:31 GMT):
Second approach is to utilize couchdb as state database, model owner field in the asset JSON document, and then utilize couchdb query language to query for the owner field (GetQueryResult chaincode api).

dave.enyeart (Tue, 08 Aug 2017 10:18:33 GMT):
An example of both approaches is available in the marbles02 example: https://github.com/hyperledger/fabric/blob/release/examples/chaincode/go/marbles02/marbles_chaincode.go.

dave.enyeart (Tue, 08 Aug 2017 10:22:46 GMT):
@sampath06 The document or a hash of the document would reside on chain. You would have a workflow outside of the chain, and at certain milestones (document uploaded, document validated) you would call chaincode to update the document or document hash on chain.

Selvam_Annamalai (Tue, 08 Aug 2017 10:23:40 GMT):
I want to setup one org with 2 peers in one computer(One IP Address) and another org with 2 peers in another computer(Different IP address). I also want both the orgs to be in the same network. Can you please tell me the steps to be followed and the changes that I have to make in yaml files? Thanks in advance.

rwadhwa (Tue, 08 Aug 2017 10:24:51 GMT):
Has joined the channel.

DarshanBc (Tue, 08 Aug 2017 10:25:18 GMT):
I have written a function `xyz` which will be called when a `query` function is invoked I am getting error as undefined function name `xyz`

rwadhwa (Tue, 08 Aug 2017 10:29:00 GMT):
Hi All, I'm new to Hyperledger Fabric. I have tried to run all initial BYFN example, and fabcar example also with Nodejs. I know now about all the components. But still didn't understand how we will create our own chaincode. Is it mandatory to use Docker. Is it mandatory to use Go language. As per the docs, I presume "Yes". And Does someone has all the required info consolidated somewhere? Please help me. I want to understand how can I create my custom chaincode. And where will I hold the logic? Any example?

sampath06 (Tue, 08 Aug 2017 10:33:50 GMT):
@dave.enyeart Thanks.

AntonGubarkov (Tue, 08 Aug 2017 10:43:20 GMT):
Has joined the channel.

AntonGubarkov (Tue, 08 Aug 2017 10:43:34 GMT):
Hi, I'm new to HL and I'm trying to evaluate the possibilities to track provenance in a very competitive and trustless supply chain network also with govt stake (it's shoes market in Russia). I understand that Fabric channels can be used to segregate access. I assume 1 channel per supply chain leg is needed to keep deals confidential. A ledger is maintained per channel. I fail to understand how 1) provenance can be tracked accros channel subledgers; 2) how to ensure the same item is not delivered several times, as the subledgers are disconnected and the stock at the peer can't be queried reliably; 3) how to ensure a peer run by a supply chain participant canit be hacked to retrieve the information from the peer's CouchDB. If you could point me to the correct reading about it - would be marvelous.

DarshanBc (Tue, 08 Aug 2017 10:57:47 GMT):
Error: Error endorsing invoke: rpc error: code = Unknown desc = Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) - I am getting this error while installing chaincode

DarshanBc (Tue, 08 Aug 2017 10:58:08 GMT):
@dave.enyeart Thank you

dave.enyeart (Tue, 08 Aug 2017 11:01:27 GMT):
@rwadhwa You will find your answers here: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html. In a nutshell, chaincode is written in golang and runs in a container. Java chaincode support is in progress. Example of chaincode authoring can be found at that link.

dave.enyeart (Tue, 08 Aug 2017 11:01:27 GMT):
@rwadhwa You will find your answers here: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html. In a nutshell, chaincode is written in golang and runs in a docker container to isolate it from the peer process. Java chaincode support is in progress. Example of chaincode authoring can be found at that link.

rwadhwa (Tue, 08 Aug 2017 11:02:43 GMT):
@dave.enyeart Thank You ! I will explore this link. :)

dave.enyeart (Tue, 08 Aug 2017 11:11:43 GMT):
@AntonGubarkov There was relevant discussion on the fabric mailing list last week. For example using an escrow pattern to move assets across channels, see https://lists.hyperledger.org/pipermail/hyperledger-fabric/2017-August/001486.html. Concerning hacking a peer, like any enterprise data store you must secure access. You mention couchdb specifically... for couchdb you should not expose the port to the host, and should secure it with username/password.

AntonGubarkov (Tue, 08 Aug 2017 11:31:48 GMT):
@dave.enyeart, Thank you for the link. It clearly explains that my understanding about the way channels work is close to reality. It also shows that I can't propose this approach to my clients :-( I'll have to wait until the industry matures to share at least some information with each other.

prmdmshra (Tue, 08 Aug 2017 11:41:56 GMT):
I have crated a business network in locally installed Fabric using the steps mentioned in the below URL. Could you please suggest how can I get the number of Blocks and the Block data. https://hyperledger.github.io/composer/tutorials/developer-guide.html

art_iona (Tue, 08 Aug 2017 11:50:37 GMT):
(i) I have added - ../../../../../common:/opt/gopath/src/github.com/hyperledger/fabric/common - ../../../../../vendor:/opt/gopath/src/github.com/hyperledger/fabric/vendor . under volumes for the cli container and (ii) I can run go get github.com/hyperledger/fabric/common/util fine. I still get the error though *Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/common/util: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/common/util: cannot find package "github.com/hyperledger/fabric/common/util" in any of: /opt/go/src/github.com/hyperledger/fabric/common/util (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/common/util (from $GOPATH)* Ideas?

art_iona (Tue, 08 Aug 2017 11:50:37 GMT):
(i) I have added - ../../../../../common:/opt/gopath/src/github.com/hyperledger/fabric/common - ../../../../../vendor:/opt/gopath/src/github.com/hyperledger/fabric/vendor . under volumes for the cli container and (ii) I can run go get github.com/hyperledger/fabric/common/util fine. I still get the error though *Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/common/util: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/common/util: cannot find package "github.com/hyperledger/fabric/common/util" in any of: /opt/go/src/github.com/hyperledger/fabric/common/util (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/common/util (from $GOPATH)* Ideas? @dave.enyeart @mastersingh24 thanks!

art_iona (Tue, 08 Aug 2017 11:50:37 GMT):
(i) Added - ../../../../../common:/opt/gopath/src/github.com/hyperledger/fabric/common - ../../../../../vendor:/opt/gopath/src/github.com/hyperledger/fabric/vendor . under volumes for the cli container and (ii) I can run go get github.com/hyperledger/fabric/common/util fine. I still get the error though *Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/common/util: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/common/util: cannot find package "github.com/hyperledger/fabric/common/util" in any of: /opt/go/src/github.com/hyperledger/fabric/common/util (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/common/util (from $GOPATH)* Ideas? @dave.enyeart @mastersingh24 thanks!

rwadhwa (Tue, 08 Aug 2017 12:51:35 GMT):
@art_iona Hi, I remember, I also had the similar issue. Mistake that I did was ..I created the directory structure initially in a separate directory and then moved it to actual GOPATH directory that I set. I deleted the initially structure...Retrieved it again, and it worked fine.

art_iona (Tue, 08 Aug 2017 12:59:23 GMT):
hi @rwadhwa thanks, think I read this comment somewhere...but in my case everything is under what originally cloned from hyperledger/fabric, haven't done any movement of directories :/

rwadhwa (Tue, 08 Aug 2017 13:00:19 GMT):
@art_iona Okay ! All the best :)

art_iona (Tue, 08 Aug 2017 13:42:35 GMT):
the problem was in the volume mounts. this worked: - /usr/local/go/src/github.com/hyperledger/fabric/common:/opt/go/src/github.com/hyperledger/fabric/common - /usr/local/go/src/github.com/hyperledger/fabric/vendor:/opt/gopath/src/github.com/hyperledger/fabric/vendor

dstarina (Tue, 08 Aug 2017 14:01:54 GMT):
Are there some hardware requirements defined to run a Fabric node?

dstarina (Tue, 08 Aug 2017 14:01:54 GMT):
What are the hardware requirements to run a Fabric peer? Is there some document about it?

art_iona (Tue, 08 Aug 2017 14:58:51 GMT):
I read this: http://openblockchain.readthedocs.io/en/latest/API/CoreAPI/ How do I find the hashcode of one chaincode if I do not have any rest docker image running? My docker ps -a returns: fcb0b2436770 dev-peer0.org1.example.com-fabcar01-2.0 "chaincode -peer.a..." About an hour ago Up About an hour dev-peer0.org1.example.com-fabcar01-2.0 dab229baaea4 dev-peer0.org1.example.com-fabcar-2.0 "chaincode -peer.a..." About an hour ago Up About an hour dev-peer0.org1.example.com-fabcar-2.0 487c8e63e316 hyperledger/fabric-tools:x86_64-1.0.0 "/bin/bash" About an hour ago Up About an hour cli 419af58345c6 hyperledger/fabric-peer:x86_64-1.0.0 "peer node start" About an hour ago Up About an hour 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com 628c23a5c58f hyperledger/fabric-ca:x86_64-1.0.0 "sh -c 'fabric-ca-..." About an hour ago Up About an hour 0.0.0.0:7054->7054/tcp ca.example.com e2cc0200ae3b hyperledger/fabric-orderer:x86_64-1.0.0 "orderer" About an hour ago Up About an hour 0.0.0.0:7050->7050/tcp orderer.example.com 360876c89e70 hyperledger/fabric-couchdb:x86_64-1.0.0 "tini -- /docker-e..." About an hour ago Up About an hour 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb

bstasyszyn (Tue, 08 Aug 2017 15:13:16 GMT):
Has joined the channel.

bstasyszyn (Tue, 08 Aug 2017 15:20:36 GMT):
@muralisr Re. @aleksandar.likic question about system CC persisting state ... this currently works for lscc because the validator hardcodes logic for lscc's policy. It fails for any other SCC with error ''Unable to get chaincode data from ledger ...". Do you think it would be a good idea to extend the SystemChaincode descriptor with a 'Policy' field so that any system chaincode can specify its policy?

muralisr (Tue, 08 Aug 2017 15:25:14 GMT):
what is the full error @bstasyszyn ?

muralisr (Tue, 08 Aug 2017 15:27:19 GMT):
basically that code is trying to get the vscc name from lscc for the chaincode instance (and so bypasses that code if the chaincode instance is lscc itself)

bstasyszyn (Tue, 08 Aug 2017 15:29:22 GMT):
The full error is: [txvalidator] GetInfoForValidate -> ERRO 34e Unable to get chaincode data from ledger for txid 5fdcbe377c5cdd86497614c1ddce84ea3a0420ccbbae3926e5cbb4fefceca881, due to lscc's state for [mscc] not found.

muralisr (Tue, 08 Aug 2017 15:29:39 GMT):
mscc is a system chaincode ?

bstasyszyn (Tue, 08 Aug 2017 15:29:52 GMT):
yes - a sample I created

muralisr (Tue, 08 Aug 2017 15:30:30 GMT):
sytem chaincode's instantiations are not stored in the LSCC

muralisr (Tue, 08 Aug 2017 15:30:47 GMT):
that's what the error indicates

bstasyszyn (Tue, 08 Aug 2017 15:33:29 GMT):
yes, that's why I was thinking that system chaincode could specify a policy when it's registered in importsysccs.go - and the validator can read that policy instead of attempting to load it from LSCC

muralisr (Tue, 08 Aug 2017 15:37:39 GMT):
that sounds reasonable ... but it will be global across all channels

bstasyszyn (Tue, 08 Aug 2017 15:38:09 GMT):
I think that would be ok

muralisr (Tue, 08 Aug 2017 15:38:22 GMT):
let me check something

muralisr (Tue, 08 Aug 2017 15:53:06 GMT):
what you'd then want to do is define a ChaincodeData in the SCC registration

muralisr (Tue, 08 Aug 2017 15:53:16 GMT):
(instead of just a policy)

muralisr (Tue, 08 Aug 2017 15:53:22 GMT):
for generality

muralisr (Tue, 08 Aug 2017 15:54:54 GMT):
and if the CC is an SCC us that chaincode data

muralisr (Tue, 08 Aug 2017 15:55:54 GMT):
that committer side code path should be deterministic

bstasyszyn (Tue, 08 Aug 2017 16:00:44 GMT):
Yes that would work

R1j1t (Tue, 08 Aug 2017 16:27:01 GMT):
Has joined the channel.

aleksandar.likic (Tue, 08 Aug 2017 16:27:49 GMT):
@muralisr Is Fabric 1.0.1 officially released? I can see https://github.com/hyperledger/fabric/commit/2cab745abf031d8ff5d3e8f4fa7a5e5af8907fad, but no 1.0.1 tag in gerrit/github.

muralisr (Tue, 08 Aug 2017 16:32:21 GMT):
@aleksandar.likic let me redirect ^^^ to @cbf

cbf (Tue, 08 Aug 2017 16:50:00 GMT):
not yet

aleksandar.likic (Tue, 08 Aug 2017 16:56:10 GMT):
Thanks @cbf

bstasyszyn (Tue, 08 Aug 2017 18:25:57 GMT):
@muralisr @aleksandar.likic I've created Jira ticket FAB-5671

muralisr (Tue, 08 Aug 2017 18:27:18 GMT):
may I suggest a different subject @bstasyszyn ?

muralisr (Tue, 08 Aug 2017 18:30:40 GMT):
"Persistent State in System Chaincode" sounds like SCC's CANNOT store state currently... but that;s not what we are saying. perhaps something more specific such as "specify policy for system chaincode validation" ... or something along those lines ?

aleksandar.likic (Tue, 08 Aug 2017 18:34:33 GMT):
@muralisr In 1.0.0, if I write an SCC, it won't be able to persist any data. Isn't this a new feature?

muralisr (Tue, 08 Aug 2017 18:35:34 GMT):
oh I see what you are saying

muralisr (Tue, 08 Aug 2017 18:35:34 GMT):
oh I see what you are saying @aleksandar.likic

muralisr (Tue, 08 Aug 2017 18:36:22 GMT):
the endorser does do the simulation but the transaction commit will always fail for direct calls to the SCC

muralisr (Tue, 08 Aug 2017 18:36:36 GMT):
you are right

muralisr (Tue, 08 Aug 2017 18:38:56 GMT):
I was focused on the specific failure and not the main issue

muralisr (Tue, 08 Aug 2017 18:47:59 GMT):
We have to think about the security and usability angles on opening this up ... let me add some folks to the JIRA please

sait (Wed, 09 Aug 2017 05:05:11 GMT):
Has joined the channel.

sait (Wed, 09 Aug 2017 05:06:18 GMT):
when we can expect Fabric 1.0 official release ??

medhak19 (Wed, 09 Aug 2017 07:11:01 GMT):
Has joined the channel.

dstarina (Wed, 09 Aug 2017 07:29:48 GMT):
Hi guys. We need to have some hardware specification/requirements for a project proposal. Where can I find some info on that?

NancySelvarathinam (Wed, 09 Aug 2017 08:05:06 GMT):
Has joined the channel.

NancySelvarathinam (Wed, 09 Aug 2017 08:11:30 GMT):
hi, I have used Java fabric SDK to work with fabric 1.0. I can create channel, join, install, instantiate chaincode and query transaction. But i couldn't persist channel. Once i have restarted the application, i couldn't get the existing channel. Please help me to solve the issue. I raised as bug in JIRA also. But they are asked to look on End2EndIT and End2EndITAgain java SDK test classes. In that classes also we couldn't get existing channel , after restarting the application.

DarshanBc (Wed, 09 Aug 2017 09:03:40 GMT):
Hi while installing in chaincode I am getting this error `2017-08-09 08:56:24.495 UTC [msp/identity] Sign -> DEBU 00d Sign: plaintext: 0A8A070A5C08031A0C08B89CABCC0510...077FFE2F0000FFFFB684B535002E0000 2017-08-09 08:56:24.495 UTC [msp/identity] Sign -> DEBU 00e Sign: digest: 3209C6DDB1AEF8C14154ABA6FF7B0449E9716AC0BC11E28F8A12A430E7E2F159 2017-08-09 08:56:24.497 UTC [chaincodeCmd] install -> DEBU 00f Installed remotely response: 2017-08-09 08:56:24.497 UTC [main] main -> INFO 010 Exiting..... 2017-08-09 08:56:24.609 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-09 08:56:24.609 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-09 08:56:24.609 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-09 08:56:24.609 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-09 08:56:24.610 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08B89CABCC0510...324D53500A04657363630A0476736363 2017-08-09 08:56:24.610 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 0C9810D77E2FC4EE3B0E1917FD94CDB2D453BA76C7E758282C7FAD45F34E7C8F 2017-08-09 08:56:38.294 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A95070A6708031A0C08B89CABCC0510...053A78FC7316ED5C63D48A1B58C3068B 2017-08-09 08:56:38.294 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 2EDA73AEB2D7FF7167301154CEB7B83A7FA0248F047E01703D6DB64494EA4CC8 2017-08-09 08:56:38.296 UTC [main] main -> INFO 009 Exiting..... 2017-08-09 08:56:48.382 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-09 08:56:48.382 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-09 08:56:48.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-09 08:56:48.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-09 08:56:48.383 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A97070A6908031A0C08D09CABCC0510...1A0E0A0A696E69744C65646765720A00 2017-08-09 08:56:48.383 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 733A4D71FED33B153CF8B0335BF79B2B8E5B31B383D389CC6A8E1A5FF74DA0C7 Error: Error endorsing invoke: rpc error: code = Unknown desc = Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) -

DarshanBc (Wed, 09 Aug 2017 09:03:40 GMT):
Hi while installing chaincode I am getting this error `2017-08-09 08:56:24.495 UTC [msp/identity] Sign -> DEBU 00d Sign: plaintext: 0A8A070A5C08031A0C08B89CABCC0510...077FFE2F0000FFFFB684B535002E0000 2017-08-09 08:56:24.495 UTC [msp/identity] Sign -> DEBU 00e Sign: digest: 3209C6DDB1AEF8C14154ABA6FF7B0449E9716AC0BC11E28F8A12A430E7E2F159 2017-08-09 08:56:24.497 UTC [chaincodeCmd] install -> DEBU 00f Installed remotely response: 2017-08-09 08:56:24.497 UTC [main] main -> INFO 010 Exiting..... 2017-08-09 08:56:24.609 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-09 08:56:24.609 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-09 08:56:24.609 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-09 08:56:24.609 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-09 08:56:24.610 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08B89CABCC0510...324D53500A04657363630A0476736363 2017-08-09 08:56:24.610 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 0C9810D77E2FC4EE3B0E1917FD94CDB2D453BA76C7E758282C7FAD45F34E7C8F 2017-08-09 08:56:38.294 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A95070A6708031A0C08B89CABCC0510...053A78FC7316ED5C63D48A1B58C3068B 2017-08-09 08:56:38.294 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 2EDA73AEB2D7FF7167301154CEB7B83A7FA0248F047E01703D6DB64494EA4CC8 2017-08-09 08:56:38.296 UTC [main] main -> INFO 009 Exiting..... 2017-08-09 08:56:48.382 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-09 08:56:48.382 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-09 08:56:48.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-09 08:56:48.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-09 08:56:48.383 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A97070A6908031A0C08D09CABCC0510...1A0E0A0A696E69744C65646765720A00 2017-08-09 08:56:48.383 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 733A4D71FED33B153CF8B0335BF79B2B8E5B31B383D389CC6A8E1A5FF74DA0C7 Error: Error endorsing invoke: rpc error: code = Unknown desc = Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) -

ztanaka1971 (Wed, 09 Aug 2017 09:18:44 GMT):
HI, I tried "fabcar" sample in "http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html", and it worked. Then I looked over the fabcar directory and came up with a question that how can I create files in "creds" directory ? I think cryptogen command will generate private key and certificate for "PeerAdmin", but I cannot find how to create public key file. ```htanaka@ubuntu:~/fabric/fabric-samples/fabcar$ ls creds/ 5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8-priv PeerAdmin 5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8-pub htanaka@ ubuntu:~/fabric/fabric-samples/fabcar$```

yacovm (Wed, 09 Aug 2017 09:33:36 GMT):
the public key is the signing cert

yacovm (Wed, 09 Aug 2017 09:33:38 GMT):
@ztanaka1971

ztanaka1971 (Wed, 09 Aug 2017 09:46:42 GMT):
@yacovm Thank you for your reply ! signcerts generated by cryptogen looks like this. ```first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts$ cat Admin@org1.example.com-cert.pem -----BEGIN CERTIFICATE----- MIICGTCCAb+gAwIBAgIQCbUF/oIEOyxqndjp/iTOpDAKBggqhkjOPQQDAjBzMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu b3JnMS5leGFtcGxlLmNvbTAeFw0xNzA4MDkwMjQ2MThaFw0yNzA4MDcwMjQ2MTha MFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T YW4gRnJhbmNpc2NvMR8wHQYDVQQDDBZBZG1pbkBvcmcxLmV4YW1wbGUuY29tMFkw EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELfEFHP61drhDnm9NxvFP8DOIJqu6OWmj IauGGjchjE+lvcVXUQnoiOPAX4i+eKGc20hGqveK2C3GXHKEIB5QFqNNMEswDgYD VR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgkWsAHJ3RGRF5 ucVi+Ia8cKgVZG31MxIAqvAarHBfnKswCgYIKoZIzj0EAwIDSAAwRQIhAMGwD0En OM08Gx6sHp5v9ilgKkaRvivweFj4M5nQwyqaAiBV7CURcEO9Z+GgRjiQp2/gMLhp 01AM51ylsqzjWTVqkg== -----END CERTIFICATE-----``` On the other hand, Public key for fabcar sample looks like this. ```$ cat org/5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8-pub -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECmbzUDozIrLKjp3OAzItSG7m7Flw 76rT8VO8E6otlCwxKtBRkPpZL7norC3NsjyE339J5O4pXCqhIApQyRRsRg== -----END PUBLIC KEY-----``` Do I need to convert ?

yacovm (Wed, 09 Aug 2017 09:47:07 GMT):
ah really? I didn't know that actually...

yacovm (Wed, 09 Aug 2017 09:47:21 GMT):
I mean I didn't know they had that public key in the fab-car

yacovm (Wed, 09 Aug 2017 09:47:58 GMT):
I don't know how these were generated then. I guess you can use the golang x509 library to do that

yacovm (Wed, 09 Aug 2017 09:48:05 GMT):
but I don't think that's the answer you seek

ztanaka1971 (Wed, 09 Aug 2017 09:49:31 GMT):
@yacovm OK, I understand. I'll look for how I can get the public key.

ztanaka1971 (Wed, 09 Aug 2017 10:08:19 GMT):
I think I found the answer ... ```signcerts$ openssl x509 -pubkey -noout -in Admin@org1.example.com-cert.pem -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELfEFHP61drhDnm9NxvFP8DOIJqu6 OWmjIauGGjchjE+lvcVXUQnoiOPAX4i+eKGc20hGqveK2C3GXHKEIB5QFg== -----END PUBLIC KEY-----```

Sagar87966 (Wed, 09 Aug 2017 10:08:54 GMT):
when i used to run make docker command or make peer command i got the following error:-------Installing peer 10.1.#.9 mkdir -p build/image/ccenv/payload cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory Makefile:263: recipe for target 'build/image/ccenv/payload' failed make: *** [build/image/ccenv/payload] Error 1 Installing peer 10.1.#.9 mkdir -p build/image/ccenv/payload cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory Makefile:263: recipe for target 'build/image/ccenv/payload' failed make: *** [build/image/ccenv/payload] Error 1 Starting orderer Starting peer 10.1.#.9 Starting peer 10.1.#.9

prmdmshra (Wed, 09 Aug 2017 10:35:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4n4ekSt728iqjLyT3)

ztanaka1971 (Wed, 09 Aug 2017 14:31:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZF77HSQGdgoBo799p) @ztanaka1971 I just realized that pub key is generated by HFC ...

MohammadObaid (Wed, 09 Aug 2017 15:50:27 GMT):
Hey @here In transaction flow of hyperledger-fabric, transaction first send by client to ordering service, which then send it to endorsing peers right?

jyellick (Wed, 09 Aug 2017 15:54:16 GMT):
@MohammadObaid Not exactly, a proposal is sent to the endorsing peers for endorsement. The endorsers return proposal responses. These are packaged into a transaction which is sent to ordering. The transaction is embedded in a block, which is then consumed by all the peers (not just the endorsers).

dave.enyeart (Wed, 09 Aug 2017 15:54:43 GMT):
full details here: https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html

MohammadObaid (Wed, 09 Aug 2017 16:14:26 GMT):
@jyellick and ordering service contains both invalid transaction and valid transaction right? @dave.enyeart Thanks :) I am reading that link

pd93 (Wed, 09 Aug 2017 16:28:51 GMT):
Does anyone know why I'm getting `fatal error: concurrent map writes` when I use `make(map[string]string)` in my chaincode?

dave.enyeart (Wed, 09 Aug 2017 16:39:48 GMT):
@MohammadObaid Correct, orderer doesnt even know which transactions will be valid/invalid. Even the peer ledger contains both valid and invalid transactions, but the peer adds metadata to each block during validation/commit phase indicating which trans in the block are valid/invalid.

jyellick (Wed, 09 Aug 2017 16:43:25 GMT):
The ordering service validates the transactions are authorized for that channel, but does not do any further checks, such as for MVCC conflicts which might make the transaction invalid. For this you must check the peer. [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QnSio3ZksBoDsB4Fd)

MohammadObaid (Wed, 09 Aug 2017 16:52:13 GMT):
@dave.enyeart it is written in transaction flow that when peers receive invalid transactions , it did not cause any change or update in peer ledger

dave.enyeart (Wed, 09 Aug 2017 16:59:06 GMT):
@MohammadObaid The ledger consists of the actual blockchain and state db. The invalid transactions remain in the blockchain but are marked as invalid, and only valid transactions are applied to state db.

muralisr (Wed, 09 Aug 2017 17:31:08 GMT):
@pd93 are you creating a global map for the chaincode ?

muralisr (Wed, 09 Aug 2017 17:31:21 GMT):
or is it per invoke ?

pd93 (Wed, 09 Aug 2017 17:32:24 GMT):
Yeah, it's a map of error codes to their messages, so I want it to be global Does that mean I can get around this by just checking if it's already set?

pd93 (Wed, 09 Aug 2017 17:32:24 GMT):
@muralisr Yeah, it's a map of error codes to their messages, so I want it to be global Does that mean I can get around this by just checking if it's already set?

MohammadObaid (Wed, 09 Aug 2017 17:34:47 GMT):
OK thanks . @dave.enyeart Just one more question.when peer append transaction in stateDB , how they tell other peers that their ledger is updated? Any event triggered? How synchronization is done among all committing peers?

pd93 (Wed, 09 Aug 2017 17:36:40 GMT):
I'm also getting a `http: read on closed response body` when using `stub.GetQueryResult()`. I couldn't find anything about it other than a composer issue

dave.enyeart (Wed, 09 Aug 2017 17:38:41 GMT):
@MohammadObaid There is no need to tell other peers that ledger is updated. Each peer processes the block from ordering service independently. The block processing is deterministic - each peer comes to the same conclusions concerning which transactions are valid/invalid. That being said, there is a block event that can be registered, to notify you every time a block is processed by a peer.

AdnanC (Wed, 09 Aug 2017 17:38:44 GMT):
@pd93 are you running stress tests of some kind which involves many http connections?

pd93 (Wed, 09 Aug 2017 17:40:11 GMT):
@AdnanC There might be a few queries at a similar time, but definitely not a stress test. Max about 10 requests

AdnanC (Wed, 09 Aug 2017 17:42:17 GMT):
@pd93 hmm ok, I saw these errors when a read was attempted on a connection that was closed due to very high number of connections, but that should not happen with 10 requests

AdnanC (Wed, 09 Aug 2017 17:42:17 GMT):
@pd93 hmm ok, I saw these errors when a read was attempted on a connection that was closed due to very high number of connections, but that happened with many more than 10 requests

pd93 (Wed, 09 Aug 2017 17:43:42 GMT):
@AdnanC Do you know what the error actually means? Might help me to debug it

AdnanC (Wed, 09 Aug 2017 17:44:21 GMT):
probablt mean attempting to read from an http connection *after* it was closed

AdnanC (Wed, 09 Aug 2017 17:44:21 GMT):
probably means attempting to read from an http connection *after* it was closed

pd93 (Wed, 09 Aug 2017 17:46:37 GMT):
Ok, I'll have a look. I think it might be to do with the `defer resultsIterator.Close()` statement, but I've never had an issue before

pd93 (Wed, 09 Aug 2017 17:46:37 GMT):
@AdnanC Ok, I'll have a look. I think it might be to do with the `defer resultsIterator.Close()` statement, but I've never had an issue before

R1j1t (Wed, 09 Aug 2017 19:25:49 GMT):
hello all! I am new to Hyperledger Fabric so if the question sounds stupid then forgive me. I was on `building my first network` tutorial and had a few question on that. first is, `./byfn.sh -m generate/up` to create a channel automatically and the manual steps are for own understanding? and second when i execute `docker exec -it cli bash` i get something like this `root@0d78bb69300d:/opt/gopath/src/github.com/hyperledger/fabric/peer#` so I do i exit this "thing".

R1j1t (Wed, 09 Aug 2017 19:25:53 GMT):
Thanks in Advace

silliman (Wed, 09 Aug 2017 19:43:05 GMT):
@R1j1t Hello and welcome to Hyperledger Fabric! Your understanding is correct. The beginning of the tutorial does most of the heavy lifting for you via the script, and then the following section basically has you repeat the steps manually in order to gain a deeper understanding. After you ran `docker exec -it cli bash` you are now in a bash shell inside the cli Docker container. To get out of it, just type `exit` and you will be returned back to the shell of your native operating system.

GongZhang (Thu, 10 Aug 2017 03:08:08 GMT):
Has joined the channel.

torresjeff (Thu, 10 Aug 2017 03:59:36 GMT):
Has joined the channel.

torresjeff (Thu, 10 Aug 2017 04:05:56 GMT):
@here hi, this may sound stupid but what is the difference between root certs, signing certs and keys?

GongZhang (Thu, 10 Aug 2017 06:32:33 GMT):
Dear all, which linux kernel version does Fabric1.0 require?

DarshanBc (Thu, 10 Aug 2017 08:07:21 GMT):
should we create a channel everytim ewe invoke chaincode?

DarshanBc (Thu, 10 Aug 2017 08:07:21 GMT):
should we create a channel everytime we invoke chaincode?

MShakeri (Thu, 10 Aug 2017 09:44:59 GMT):
Has joined the channel.

DrissB (Thu, 10 Aug 2017 09:52:43 GMT):
Hello, I have this error: it's searching shim in /usr/lib/go-1.6 instead of searching in my GOPATH ```~/go/src/github.com/hyperledger/fabric$ sudo make release can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/lib/go-1.6/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) ($GOPATH not set) find: «/src/github.com/hyperledger/fabric/core/chaincode/shim»: Aucun fichier ou dossier de ce type Building release/linux-amd64/bin/configtxgen for linux-amd64 mkdir -p release/linux-amd64/bin CGO_CFLAGS=" " GOOS=linux GOARCH=amd64 go build -o /home/driss/go/src/github.com/hyperledger/fabric/release/linux-amd64/bin/configtxgen -tags "nopkcs11" -ldflags "-X github.com/hyperledger/fabric/common/configtx/tool/configtxgen/metadata.Version=1.0.1" github.com/hyperledger/fabric/common/configtx/tool/configtxgen can't load package: package github.com/hyperledger/fabric/common/configtx/tool/configtxgen: cannot find package "github.com/hyperledger/fabric/common/configtx/tool/configtxgen" in any of: /usr/lib/go-1.6/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen (from $GOROOT) ($GOPATH not set) Makefile:342 : la recette pour la cible « release/linux-amd64/bin/configtxgen » a échouée make: *** [release/linux-amd64/bin/configtxgen] Erreur 1``` my go version is ```go version go version go1.8.3 linux/amd64 ``` my go env is: ```go env GOARCH="amd64" GOBIN="/home/driss/go/bin" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/driss/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build535402316=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" PKG_CONFIG="pkg-config" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" ``` and the hello world works.

MShakeri (Thu, 10 Aug 2017 09:55:58 GMT):
@DrissB But your log says $GOPATH not set. Can you echo it and see it matches your env settings?

DrissB (Thu, 10 Aug 2017 09:56:49 GMT):
exactly and I don't understand why ```echo $GOPATH /home/driss/go ```

MShakeri (Thu, 10 Aug 2017 09:57:50 GMT):
@here Hi, I'm new to Fabric and I'm trying to run a Kafka version. I use kafka settings from bddtests and created my own Org settings with only org and one peer node to minimize everything. I managed to bring the network up, created the channel and installed the chaincode. But I can't initiate the chaincode. The chaincode I'm using is from Fabric samples, "chaincode_example02" I run the command in peer node: ``` peer chaincode instantiate -o orderer1.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR('Org1MSP.member','Org1MSP.admin')" ``` and here is the error! ``` 2017-08-10 09:43:30.952 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-10 09:43:30.952 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-10 09:43:30.958 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-10 09:43:30.958 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-10 09:43:30.959 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08C2D5B0CC0510...535010010A04657363630A0476736363 2017-08-10 09:43:30.959 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 2ABBC8BDFBF03D1DC4A04E118D734ED2094524D1C538BA9D76D25FF081CABAD7 Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to deserialize creator identity, err MSP Org1MSP is unknown ``` --------- Who can not see the Org1MSP? There is only one Org and orderers also know it since I could create the channel and install the chaincode! Thanks in advance.

DarshanBc (Thu, 10 Aug 2017 10:02:58 GMT):
how to give access to the paticular user for a particular channel

Selvam_Annamalai (Thu, 10 Aug 2017 10:03:51 GMT):
I have modified the first network • Generated certificates and channel artifacts in the first machine with configtx and crypto-config yaml files (which contains both the org details,the 4 nodes & one Orderer) by running the command ./byfn.sh –m generate • Updated docker-compose-cli, docker-compose-couch, docker-compose-e2e-template and docker-compose-base yaml files to contain first org, 2 peer nodes and 1 Orderer. • Started the network (First Org with 2 nodes and Orderer) in the first machine by running the command ./byfn.sh –m up • Copied the generated certificates and the channel artifacts in to the second machine • Updated docker-compose-cli, docker-compose-couch, docker-compose-e2e-template and docker-compose-base yaml files to contain second org, 2 peer nodes and without Orderer. • Did not call CreateChannel function in script.sh file. Commented out. • Started the network (Second Org with 2 nodes without Orderer) in the second machine by running the command ./byfn.sh –m up • Got the exception “Error: genesis block file not found open mychannel.block: no such file or directory” during Channel Join Operation. Can you please tell me how to resolve this issue?

DarshanBc (Thu, 10 Aug 2017 11:12:32 GMT):
can we create channel dynamically after installing the chain code

dave.enyeart (Thu, 10 Aug 2017 11:25:58 GMT):
@DarshanBc I think all of your questions can be answered by the Getting Started example: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

dave.enyeart (Thu, 10 Aug 2017 11:27:45 GMT):
The sequence is add organizations to the channel configuration block, create the channel against orderer using the channel configuration block, have peer join channel, install chaincode on peer, instantiate chaincode on channel, invoke chaincode on channel.

nikit-os (Thu, 10 Aug 2017 11:44:52 GMT):
Has joined the channel.

DarshanBc (Thu, 10 Aug 2017 11:50:40 GMT):
@dave.enyeart ok let me put it this way after starting my first network and deploying my first chaincode will I be able to create one more channel and for the existing organisations

DarshanBc (Thu, 10 Aug 2017 11:50:40 GMT):
@dave.enyeart ok let me put it this way after starting my first network and deploying my first chaincode will I be able to create one more channel and for the existing organisations through SDK

dave.enyeart (Thu, 10 Aug 2017 12:02:34 GMT):
Yes, you can always create additional channels in the future.

R1j1t (Thu, 10 Aug 2017 12:30:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c2vmCbYCyjrg4WQPS) @silliman Thank you so much. I appreciate you taking time to resolve my quaries. :)

R1j1t (Thu, 10 Aug 2017 12:30:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c2vmCbYCyjrg4WQPS) @silliman Thank you so much. I appreciate you taking the time to resolve my quaries. :)

Othman.Darwish (Thu, 10 Aug 2017 14:26:43 GMT):
does fabric sdk specific for iOS ?

Othman.Darwish (Thu, 10 Aug 2017 14:26:43 GMT):
does fabric have sdk specific for iOS ?

hamptonsmith (Thu, 10 Aug 2017 14:46:36 GMT):
Hey folks! I'm stuck at the point of trying to instantiate chain code. The results of installation on each peer was `Installed remotely response:

hamptonsmith (Thu, 10 Aug 2017 16:14:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E4wremrS45y8bEGpM) @hamptonsmith Appears my peers are joining up to the wrong channel (`peer channel list` doesn't include the channel I'm working with). I'll dig into if I've done something obviously dumb there or if I legitimately misunderstand how channel joining works.

mastersingh24 (Thu, 10 Aug 2017 19:03:54 GMT):
@hamptonsmith - Possibly a silly question, but did you create the channel and then have each peer join the channel as well?

torresjeff (Thu, 10 Aug 2017 19:52:14 GMT):
Hi, I was just reading about Fabric CA at http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html and it says that one of the features that the Fabric CA offers is: `issuance of Transaction Certificates (TCerts), providing both anonymity and unlinkability when transacting on a Hyperledger Fabric blockchain`

torresjeff (Thu, 10 Aug 2017 19:52:30 GMT):
but doesn't this defeat the purpose of HLF?

torresjeff (Thu, 10 Aug 2017 19:52:49 GMT):
we are supposed to know who does what in the network

torresjeff (Thu, 10 Aug 2017 19:53:17 GMT):
unlike bitcoin for example, where it is completely anonymous

torresjeff (Thu, 10 Aug 2017 19:53:47 GMT):
can someone help me understand this better? Thanks!

hamptonsmith (Thu, 10 Aug 2017 20:02:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FGRsh8LgTYqffc6h6) @mastersingh24 This is roughly what I'd missed, yes. I gather what happened was: I'd messed up and genesis block had been generated with the incorrect (default) channel name, which bootstrapped the orderer, but I later used the CLI to create a correctly-named channel as well (it's unclear to me how that's possible without a corresponding genesis block?). When I joined the peers, I used the genesis.block with the bad name embedded and they joined the wrong channel, which I didn't realize since I didn't know there were two channels. Do you know if there's a technical or security reason the error here can't read, "No such channel" or somesuch? If not, are y'all open to pull requests? :)

HypleA (Thu, 10 Aug 2017 20:03:31 GMT):
How can I ensure authorization for a specific transaction in the hyperledger fabric? I do not want seperate channels, I want to use only 1 chanel for efficiency and I am looking for a dynamic way to authorize access to specific data i know I can use nedorsement policies or an ACL list but that is not dynamic

binhn (Thu, 10 Aug 2017 20:24:55 GMT):
@HypleA i might miss something, but couldn't you do that in your chaincode?

yacovm (Thu, 10 Aug 2017 20:54:31 GMT):
@HypleA you can pass an encryption key (i.e AES) to the chaincode proposal via the transient map and have the chaincode - encrypt the data before invoking write operations. This way, only clients with the key could read the data (via the same way - passing the key in the transient map), and the data on the ledger would be encrypted

HypleA (Thu, 10 Aug 2017 20:55:29 GMT):
i see what you mean but how do I choose who gets acces to the key?

HypleA (Thu, 10 Aug 2017 20:55:37 GMT):
Can I use OAUTH?

yacovm (Thu, 10 Aug 2017 20:56:46 GMT):
not a clue, never used OAUTH

HypleA (Thu, 10 Aug 2017 20:57:57 GMT):
ok then but how do you decide who has access to the encryption keys?

HypleA (Thu, 10 Aug 2017 23:56:06 GMT):
Again I would like to ask you how can authorization be implemented in the chaincode logic. I understand the encryption of the data part and use of keys to authorize access, however I do not understand which policies or how you can implement policies to specify who can have acces to the data and how.

malkochoglu (Fri, 11 Aug 2017 00:26:42 GMT):
Has joined the channel.

malkochoglu (Fri, 11 Aug 2017 00:27:01 GMT):
Hi. I am reading and trying to run some examples and building dev environment. I found two different links. One is http://openblockchain.readthedocs.io/en/latest and the other one is http://hyperledger-fabric.readthedocs.io/en/latest/index.html. Which one should I use or what is the difference between these?

Glen (Fri, 11 Aug 2017 00:51:51 GMT):
Hello, if I modify some protobuff files in fabric like ab.proto, How can I generate the corresponding pb.go file, thanks

silliman (Fri, 11 Aug 2017 04:19:24 GMT):
@malkochoglu Definitely use hyperledger-fabric.readthedocs.io/en/latest/index.html which is for the latest version of Hyperledger Fabric. openblockchain.readthedocs.io is ancient- the project was renamed from openblockchain to hyperledger fabric well over a year ago so those pages are obsolete.

oliver_gahr (Fri, 11 Aug 2017 07:30:17 GMT):
Has joined the channel.

antitoine (Fri, 11 Aug 2017 08:04:32 GMT):
Hi, I'm trying to perform a rich query in the chaincode. Every peer have CouchDB and I have follow example in marble source code (https://github.com/hyperledger/fabric/blob/master/examples/chaincode/go/marbles02/marbles_chaincode.go). But I get any result (no error), just an empty array. When I run the same query in CouchDB directly there is no issue and I get one or more result. Someone have an idea ?

antitoine (Fri, 11 Aug 2017 08:28:44 GMT):
Stackoverflow link: https://stackoverflow.com/questions/45630401/any-result-with-rich-query-hyeperledger-fabric-v1-0

AER_IoT (Fri, 11 Aug 2017 08:43:37 GMT):
Has joined the channel.

prmdmshra (Fri, 11 Aug 2017 09:17:01 GMT):
Could you please suggest whether we have any sample network where I can test multiple endorsing peers and the consensus mechanism?

AER_IoT (Fri, 11 Aug 2017 10:02:20 GMT):
Hello I'm working on the Marbles projet and I wanted to get Block informations with the Node SDK. Marbles project is using the SDK 1.0.0-alpha version. But I saw the newest versions are more usefull decode function. So I'm trying to use the SDK 1.0.0-alpha with 1.0.0 fuction (I just chnaged the Block.js and Chain.js). Is someone already try it with success? Cause I got this error for the Read/Write set : error: [Chain.js]: Failed Query block. Error: Error: Illegal group end indicator for Message .rwset.TxReadWriteSet: 0 (not a group) at Error (native) at T.ProtoBuf.Reflect.MessagePrototype.decode (/home/ausy/marbles/node_modules/protobufjs/dist/protobuf.js:3230:31) at Function.Message.decode (/home/ausy/marbles/node_modules/protobufjs/dist/protobuf.js:2952:37) at decodeReadWriteSets (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:596:59) at decodeChaincodeAction (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:578:29) at decodeProposalResponsePayload (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:570:40) at decodeChaincodeEndorsedAction (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:547:37) at decodeChaincodeActionPayload (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:540:19) at decodeEndorserTransaction (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:182:20) at decodeBlockDataEnvelope (/home/ausy/marbles/node_modules/fabric-client/lib/Block.js:166:27) Thanks in advance 🙂 Jack

marryton007 (Fri, 11 Aug 2017 13:09:19 GMT):
Has joined the channel.

marryton007 (Fri, 11 Aug 2017 13:11:28 GMT):
The master branch of project 'fabric-samples' can't start the 'first-network'.

marryton007 (Fri, 11 Aug 2017 13:12:07 GMT):

Message Attachments

marryton007 (Fri, 11 Aug 2017 13:13:21 GMT):
I make a patch file

marryton007 (Fri, 11 Aug 2017 13:15:38 GMT):

Message Attachments

gen_el (Fri, 11 Aug 2017 16:10:27 GMT):
Hi! Does fabric work with MongoDB

gen_el (Fri, 11 Aug 2017 16:10:55 GMT):
My colleagues haven't had good experiences with CouchDB

dave.enyeart (Fri, 11 Aug 2017 17:18:35 GMT):
@antitoine I've answered your question over at: https://stackoverflow.com/questions/45630401/any-result-with-rich-query-hyeperledger-fabric-v1-0

dave.enyeart (Fri, 11 Aug 2017 17:21:19 GMT):
@gen_el The chaincode programming model is based on key/value store, and as such many key/value or key/document stores would be a git fit for the programming model. Fabric has a state database interface, with current implementations based on leveldb and couchdb. It would be entirely reasonable to create a MongoDB implementation if you like, it would look very much like the couchdb impl.

dave.enyeart (Fri, 11 Aug 2017 17:21:19 GMT):
@gen_el The chaincode programming model is based on key/value store, and as such many key/value or key/document databases would be a git fit for the programming model. Fabric has a state database interface, with current implementations based on leveldb and couchdb. It would be entirely reasonable to create a MongoDB implementation if you like, it would look very much like the couchdb impl.

dave.enyeart (Fri, 11 Aug 2017 17:21:19 GMT):
@gen_el The chaincode programming model is based on key/value store, and as such many key/value or key/document databases would be a good fit for the programming model. Fabric has a state database interface, with current implementations based on leveldb and couchdb. It would be entirely reasonable to create a MongoDB implementation if you like, it would look very much like the couchdb impl.

dave.enyeart (Fri, 11 Aug 2017 17:23:01 GMT):
CouchDB had several good enhancements in 2.0 which made it a good fit for Fabric. If you have specific concerns with CouchDB please highlight them so that we can investigate.

dave.enyeart (Fri, 11 Aug 2017 17:23:01 GMT):
CouchDB had several good enhancements in 2.0 which made it a good fit for Fabric, for example ad hoc query capability without requiring map/reduce views. If you have specific concerns with CouchDB please highlight them so that we can investigate.

DarshanBc (Sat, 12 Aug 2017 09:25:53 GMT):
balance-transfer

mastersingh24 (Sat, 12 Aug 2017 11:19:48 GMT):
@strrl - No. Peers, orderers and CAs do not need to be on the same server. (https://chat.hyperledger.org/channel/general?msg=o6ddS5BAuC54yjPJy)

strrl (Sat, 12 Aug 2017 11:19:48 GMT):
Has joined the channel.

acosta_rodrigo (Sat, 12 Aug 2017 17:04:40 GMT):
Has joined the channel.

acosta_rodrigo (Sat, 12 Aug 2017 17:07:55 GMT):
Hi all, one of the functionalities that I like more about Fabric are the private channels and handling assets privately. However, I have seen comments saying that private channels should be used with caution and avoided. Does anyone know where can I read more about this? is there a limit or escalation issue with private channels?

sampath06 (Sat, 12 Aug 2017 19:35:08 GMT):
I was trying out the balance-transfer samples. It works perfectly as it is. But when I tried regenerating the crypt files using cryptogen, the add channel command started failing. I did change the KEYS in the docker-compose.yaml file to use the private keys from crypto-config/peerOrganizations/org1.example.com/ca. What else should I change for this to work? The error from the orderer logs ``` 2017-08-12 19:34:10.598 UTC [cauthdsl] func2 -> ERRO 1b4 Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 0a074f72 ```

ydk210999 (Sun, 13 Aug 2017 07:23:05 GMT):
Has joined the channel.

mastersingh24 (Sun, 13 Aug 2017 09:20:02 GMT):
@sampath06 - see my response in one of the other channels in which you posted, but the short answer is that you'll need to regenerate the orderer / channel config using configtxgen

mochechan-fusions360 (Mon, 14 Aug 2017 03:45:55 GMT):
My Fabric can run the Fabric sample, balance-transfer. https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer Since I want keep the ledger persistence, I modify docker-compose.yaml according to: https://github.com/hyperledger/fabric/blob/master/docs/source/build_network.rst#a-note-on-data-persistence When I attempting to re-run ./runApp.sh to restart docker containers, only "query" requests have good response. https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer#join-channel-request All "invoke" requests always fail. What should I do to resume the Fabric after restarting peers?

DarshanBc (Mon, 14 Aug 2017 09:12:11 GMT):
If I have 5 peers should I install chaincode on all the 5 peers and instantiate?

DarshanBc (Mon, 14 Aug 2017 09:12:11 GMT):
If I have 5 peers should I install chaincode on all the 5 peers on a single organization and instantiate?

antitoine (Mon, 14 Aug 2017 09:38:37 GMT):
@dave.enyeart Thanks a lot!

dave.enyeart (Mon, 14 Aug 2017 11:46:33 GMT):
@DarshanBc You need to install chaincode on any peer that you want to send transaction proposals to for endorsement. For example if you will only have 3 of the 5 peers doing endorsements, then you only need to install the chaincode on those 3 peers. All 5 peers can commit the transactions, even if they don't have the chaincode installed.

pd93 (Mon, 14 Aug 2017 12:01:10 GMT):
Is it possible to pass in args/flags to a chaincode (golang) I'd like to be able to turn on/off certain features of my logic depending on whether I'm in development/production.

pd93 (Mon, 14 Aug 2017 12:01:10 GMT):
Is it possible to pass [compile time constants](https://stackoverflow.com/questions/15214459/how-to-properly-use-build-tags#answer-15217754) to my chaincode (golang) I'd like to be able to turn on/off certain features of my logic depending on whether I'm in development/production.

pd93 (Mon, 14 Aug 2017 12:01:10 GMT):
Is it possible to pass [compile time constants](https://stackoverflow.com/questions/15214459/how-to-properly-use-build-tags#answer-15217754) to my chaincode (golang)? I'd like to be able to turn on/off certain features of my logic depending on whether I'm in development/production.

DarshanBc (Mon, 14 Aug 2017 12:30:21 GMT):
@dave.enyeart Thank you

DarshanBc (Mon, 14 Aug 2017 12:31:46 GMT):
I have 4 peers I am creating a channel using this command and joining those peers ```# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer2.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer3.org1.example.com peer channel join -b mychannel.block ``` with this I am able to join only peer0 not other peers

DarshanBc (Mon, 14 Aug 2017 12:31:46 GMT):
I have 4 peers I am creating a channel using this command and joining those peers to the channel ```# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer2.org1.example.com peer channel join -b mychannel.block docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer3.org1.example.com peer channel join -b mychannel.block ``` with this I am able to join only peer0 not other peers

dave.enyeart (Mon, 14 Aug 2017 12:56:42 GMT):
I think you need to set additional environment variables for the other peers, see the instructions here: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#environment-variables

mastersingh24 (Mon, 14 Aug 2017 13:14:14 GMT):
@pd93 - No. There's no way to pass in build or compile flags. Your best bet would be to control similar variables but optionally setting them in the "init" of your chaincode when instantiating (https://chat.hyperledger.org/channel/fabric-questions?msg=2ocSbYaxgJ3PB5Eph)

pd93 (Mon, 14 Aug 2017 13:17:01 GMT):
@mastersingh24 Ok thanks. Is there a specific reason why this isn't possible or is it something that could potentially be added in the future? Just out of curiosity..

mastersingh24 (Mon, 14 Aug 2017 13:54:18 GMT):
We try to be 100% deterministic about how all chaincode is built across all peers and we also try to have a standard interface in the peer for building/packaging/deploying all type of chaincode. So there's not really a great place to add build time flags plus they could be dangerous depending on how they are set.

plee (Mon, 14 Aug 2017 15:04:23 GMT):
Would anyone know the process for manually decoding a transaction payload when security is set to true?

ajp (Mon, 14 Aug 2017 15:25:15 GMT):
Has joined the channel.

pd93 (Mon, 14 Aug 2017 15:50:42 GMT):
@mastersingh24 Thanks for the info. The issue of determinism hadn't occurred to me. I'll use your suggestion instead :)

prmdmshra (Mon, 14 Aug 2017 18:53:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wkbgsvndRNWiomdkt) @prmdmshra Do we have any such Sample Application

prmdmshra (Mon, 14 Aug 2017 18:53:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wkbgsvndRNWiomdkt) @prmdmshra Do we have any such Sample Application

prmdmshra (Tue, 15 Aug 2017 06:56:59 GMT):
Also, I am receiving the below error on 'Install Chaincode' while following the below fabric sample: https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer curl -s -X POST http://localhost:4000/chaincodes -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MDI4MDkyNzksInVzZXJuYW1lIjoiUHJhbW9kIiwib3JnTmFtZSI6Im9yZzEiLCJpYXQiOjE1MDI3NzMyNzl9.INpo9VZSTJ3XsCTgLH2IDHfTpK_TyGpoCUefQVjzSac" -H "content-type: application/json" -d '{ "peers": ["localhost:7051","localhost:7056"], "chaincodeName":"mycc", "chaincodePath":"github.com/example_cc", "chaincodeVersion":"v0" }' Failed to send install Proposal or receive valid response. Response null or status is not 200. exiting..

prmdmshra (Tue, 15 Aug 2017 18:22:22 GMT):
Hi All, I am getting the following error on runing byfn.sh scipt http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html ./byfn.sh -m generate -c channel Generating certs and genesis block for with channel 'channel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... /home/abc/Desktop/fabric-samples/first-network/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4de6ca] goroutine 1 [running]: panic(0x6b7d00, 0xc4200100f0) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc4200193c0, 0x34, 0x0, 0x0, 0xc420013dc0, 0x16) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:168 +0x20a main.generatePeerOrg(0x70329e, 0xd, 0xc4200115d0, 0x4, 0xc420011600, 0x10, 0x7009fb, 0x2, 0xc420013d60, 0x13, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:405 +0x5f2 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:263 +0x1ce main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:212 +0x262 Failed to generate certificates...

shimos (Wed, 16 Aug 2017 01:28:41 GMT):
Has joined the channel.

jingweili (Wed, 16 Aug 2017 07:52:34 GMT):
Has joined the channel.

glotov (Wed, 16 Aug 2017 08:06:55 GMT):
Hi! Can a peer join a channel if the peer is not mentioned in the channels genesis block (`mychannel.tx`)? I mean, is there a legal way to update channel configuration after the channel is created and worked for some time, so it can accept new peer?

mastersingh24 (Wed, 16 Aug 2017 11:55:18 GMT):
@glotov - 2 possible answers to your question: 1) If the peer is part of an organization which is a member of the channel, then nothing special needs to be done. You can simply issue a JoinChannel request on the new peer 2) If the peer is part of an organization which is not currently a member of the channel, you'll have to create a configuration transaction to add the new organization to the channel. The doc on how to do this is http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html

sampath06 (Wed, 16 Aug 2017 12:00:37 GMT):
@mastersingh24 The part about adding a new organisation seems to have less details. It says that a channel has to be created. But will it work if the channel is already created? How do we change the membership data for the channel? Will a peer join work? Would you know of any document which details these steps. Thanks.

Zarf (Wed, 16 Aug 2017 13:45:34 GMT):
Has joined the channel.

MShakeri (Wed, 16 Aug 2017 13:55:59 GMT):
I'm trying to go through configtxlator example (http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html) for changing the max_message_count. Everything goes well till when I submit the request to the orderer. Can you have a look at my log and see if you can help me? The updated_envelope.pb looks like this: ``` h  " testchainidS Q testchainid  Orderer31 Orderer&$ BatchSize ���1�� Admins ``` I run the "peer channel update..." command from cli container with env variables set for peer0 env variables: ``` CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/ca.crt CORE_PEER_ADDRESS=peer0.org1.example.com:7051 ``` ``` peer channel update -f /etc/hyperledger/channel-artifacts/config_update_as_envelope.pb -c testchainid -o orderer0.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA ``` And Orderer logs says: ``` [msp/identity] newIdentity -> DEBU 101 Creating identity instance for ID &{Org1MSP c264f08881534e3c34115057bde27e62b4ffef965adada8f1aedd14c18452dea} [cauthdsl] func2 -> DEBU 102 0xc420076168 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) [cauthdsl] func2 -> DEBU 103 0xc420076168 principal evaluation fails [cauthdsl] func1 -> DEBU 104 0xc420076168 gate 1502890767421497756 evaluation fails [orderer/common/broadcast] Handle -> WARN 105 Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Values] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining [orderer/main] func1 -> DEBU 106 Closing Broadcast stream [orderer/common/deliver] Handle -> WARN 107 Error reading from stream: rpc error: code = Canceled desc = context canceled [orderer/main] func1 -> DEBU 108 Closing Deliver stream ``` Why orderer expects its own MSP? Should't this change come from peers? Thanks in advance.

MShakeri (Wed, 16 Aug 2017 13:55:59 GMT):
I'm trying to go through configtxlator example (http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html) for changing the max_message_count. Everything goes well till when I submit the request to the orderer. Can you have a look at my log and see if you can help me? The updated_envelope.pb looks like this: ``` h  " testchainidS Q testchainid  Orderer31 Orderer&$ BatchSize ���1�� Admins ``` I run the "peer channel update..." command from cli container with env variables set for peer0 env variables: ``` CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/ca.crt CORE_PEER_ADDRESS=peer0.org1.example.com:7051 ``` ``` peer channel update -f /etc/hyperledger/channel-artifacts/config_update_as_envelope.pb -c testchainid -o orderer0.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA ``` And Orderer logs says: ``` [msp/identity] newIdentity -> DEBU 101 Creating identity instance for ID &{Org1MSP c264f08881534e3c34115057bde27e62b4ffef965adada8f1aedd14c18452dea} [cauthdsl] func2 -> DEBU 102 0xc420076168 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) [cauthdsl] func2 -> DEBU 103 0xc420076168 principal evaluation fails [cauthdsl] func1 -> DEBU 104 0xc420076168 gate 1502890767421497756 evaluation fails [orderer/common/broadcast] Handle -> WARN 105 Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Values] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining [orderer/main] func1 -> DEBU 106 Closing Broadcast stream [orderer/common/deliver] Handle -> WARN 107 Error reading from stream: rpc error: code = Canceled desc = context canceled [orderer/main] func1 -> DEBU 108 Closing Deliver stream ``` Why orderer expects its own MSP? Should't this change come from peers? Thanks in advance.

MShakeri (Wed, 16 Aug 2017 13:55:59 GMT):
I'm trying to go through configtxlator example (http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html) for changing the max_message_count. Everything goes well till when I submit the request to the orderer. Can you have a look at my log and see if you can help me? The updated_envelope.pb looks like this: ``` h  " testchainidS Q testchainid  Orderer31 Orderer&$ BatchSize ���1�� Admins ``` I run the "peer channel update..." command from cli container with env variables set for peer0 env variables: ``` CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/peer/peer0.org1.example.com/tls/ca.crt CORE_PEER_ADDRESS=peer0.org1.example.com:7051 ``` ``` peer channel update -f /etc/hyperledger/channel-artifacts/config_update_as_envelope.pb -c testchainid -o orderer0.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA ``` And Orderer logs says: ``` [msp/identity] newIdentity -> DEBU 101 Creating identity instance for ID &{Org1MSP c264f08881534e3c34115057bde27e62b4ffef965adada8f1aedd14c18452dea} [cauthdsl] func2 -> DEBU 102 0xc420076168 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) [cauthdsl] func2 -> DEBU 103 0xc420076168 principal evaluation fails [cauthdsl] func1 -> DEBU 104 0xc420076168 gate 1502890767421497756 evaluation fails [orderer/common/broadcast] Handle -> WARN 105 Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Values] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining [orderer/main] func1 -> DEBU 106 Closing Broadcast stream [orderer/common/deliver] Handle -> WARN 107 Error reading from stream: rpc error: code = Canceled desc = context canceled [orderer/main] func1 -> DEBU 108 Closing Deliver stream ``` Why orderer expects its own MSP? Should't this change come from peers? Thanks in advance. edit: I'm using Fabric v1.0.0

jeffgarratt (Wed, 16 Aug 2017 17:18:23 GMT):
@MShakeri it appears you are trying to alter the batchsize which requires signatures of the orderer orgs in the usual case

ArnabChatterjee (Thu, 17 Aug 2017 04:11:29 GMT):
Has joined the channel.

BeierCai (Thu, 17 Aug 2017 05:03:17 GMT):
Has joined the channel.

rock_martin (Thu, 17 Aug 2017 05:53:34 GMT):
There needs to be a way to connect a chaincode container to a network. In the case where a user runs a peer on one machine, but wants to run that peers chaincode on a different machine, they may need to have additional control over what network the chaincode container connects to. An example of such a scenario would be wanting the peer to communicate with the chaincode container over a docker overlay network.

MShakeri (Thu, 17 Aug 2017 07:11:34 GMT):
@jeffgarratt Thanks for help. I will try it. So is this related to TLS connection between peer and orderer? Or this signature is related to the type of transaction? Unfortunately nothing is mentioned in documentations. And since the command is "peer channel..." and "peer" binary is not available in orderer, I assume it should be ran from peer or cli nodes. If yes, then why we sign it in orderer org and run it in peer org?!?!

MShakeri (Thu, 17 Aug 2017 07:45:24 GMT):
@jeffgarratt Could you also tell me how to sign the file? I'm trying to sign it with openssl, like how we sign the Kafka certificates. but it fails :/

jeffgarratt (Thu, 17 Aug 2017 14:05:12 GMT):
@MShakeri you want to use 'openssl dgst ...'

jeffgarratt (Thu, 17 Aug 2017 14:08:43 GMT):
I believe fabric uses ecdsa with SHA256 as the hashfunc

FollowingGhosts (Thu, 17 Aug 2017 14:54:37 GMT):
In terms of performance, how long should a transaction take to execute?

FollowingGhosts (Thu, 17 Aug 2017 14:54:55 GMT):
Including the proposal, endorsement and committing it

torresjeff (Thu, 17 Aug 2017 15:09:43 GMT):
@here Hi, I was looking at the fabcar sample here (specifically invoking a function): https://github.com/hyperledger/fabric-samples/blob/release/fabcar/invoke.js

torresjeff (Thu, 17 Aug 2017 15:10:06 GMT):
is it necessary to set the KeyValStore every time you are going to invoke a transaction, or just once?

FollowingGhosts (Thu, 17 Aug 2017 15:10:15 GMT):
please avoid using here if it's not for channel announcements

joe-alewine (Thu, 17 Aug 2017 15:22:50 GMT):
@torresjeff You won't be able to create two #10 cars, for example, so you would have to change at least that variable every time you invoke.

torresjeff (Thu, 17 Aug 2017 15:25:44 GMT):
@joe-alewine but setting the path for the key val store every time you're going to invoke isn't necessary, right?

tskzh (Thu, 17 Aug 2017 15:26:00 GMT):
Has joined the channel.

hamptonsmith (Thu, 17 Aug 2017 15:27:42 GMT):
Since chaincode is just arbitrary code, a badly-behaved endorser could endorse whatever garbage they wanted to, yes? Whether or not it actually conformed to any published chaincode. The only balance against that is establishing a policy that multiple endorsers sign off on a changeset?

AdnanC (Thu, 17 Aug 2017 15:29:17 GMT):
@FollowingGhosts Short answer: There is no specific value, as it depends on a list of factors. The block size, network size, if everyrthing on a same host or in multihost, Hardware/CPU/if VM is used, client type, if transactions are being paralelled, among others.

AdnanC (Thu, 17 Aug 2017 15:29:17 GMT):
@FollowingGhosts Short answer: There is no specific value, as it depends on a list of factors. Depends on the block size, network size, if everyrthing on a same host or in multihost, Hardware/CPU/if VM is used, client type, if transactions are being paralelled, among others.

jeffgarratt (Thu, 17 Aug 2017 15:30:07 GMT):
@hamptonsmith correct

hamptonsmith (Thu, 17 Aug 2017 15:30:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wffXzvuCWqoegXapR) @jeffgarratt Cool, thank you!

tskzh (Thu, 17 Aug 2017 15:37:11 GMT):
Hi, I am trying to run fabcar samples with a custom hostname not `example.com`. I understand that I neccesary generate credentials manually, but I don't know how to use `fabric-ca-client` to create files like in `fabcar/creds/*` (`PeerAdmin`, `*-priv`, `*-pub`). In below procedure, the private key is generated in `$FABRIC_CA_CLIENT_HOME/msp/keystore/`, but other files are not generated. ``` export FABRIC_CA_CLIENT_HOME=$PWD/.fabric-ca-client/admin fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 fabric-ca-client register \ --id.name peeruser \ --id.secret peeruserpw \ --id.type user \ --id.affiliation org1.department1 \ --id.attrs 'hf.Registrar.Roles=user' \ --id.attrs 'hf.Revoker=true' fabric-ca-client enroll -u http://peeruser:peeruserpw@localhost:7054 ```

nickgaski (Thu, 17 Aug 2017 15:37:59 GMT):
@torresjeff - the KVS only needs to be set once. It's used to help create the userContext that the client needs for authentication. We have that baked in; but basically you're just storing a private key and a signed certificate for your application (client) to use when communicating with the network. The ledger's view of the key/val store (i.e. the state databse) exists within the context of the peer

nickgaski (Thu, 17 Aug 2017 15:40:23 GMT):
@tskzh - take a look at the balance transfer example. Namely this helper file and the steps after this point https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/app/helper.js#L186

torresjeff (Thu, 17 Aug 2017 15:41:33 GMT):
@nickgaski well now I'm confused, I tought the KVS was for storing certificates/keys, because that's what I see when I go into that folder. But, you said "The ledger's view of the key/val store (i.e. the state databse) exists..."

nickgaski (Thu, 17 Aug 2017 15:42:06 GMT):
well yea sorry to add confusion. I like to think of the state DB as a key/val store as well.

torresjeff (Thu, 17 Aug 2017 15:42:13 GMT):
does it store keys or state?

nickgaski (Thu, 17 Aug 2017 15:42:20 GMT):
a=100, b=200, etc...

nickgaski (Thu, 17 Aug 2017 15:42:26 GMT):
state DB only stores state

torresjeff (Thu, 17 Aug 2017 15:42:41 GMT):
but state db is not the same as kvs right?

nickgaski (Thu, 17 Aug 2017 15:42:52 GMT):
exactly two different stores.

nickgaski (Thu, 17 Aug 2017 15:43:15 GMT):
one is local (i.e. the user context). The other is a part of the ledger (hash chain and state DB)

torresjeff (Thu, 17 Aug 2017 15:43:31 GMT):
@nickgaski thanks for clearing that up!

torresjeff (Thu, 17 Aug 2017 15:43:57 GMT):
so, looking at the `invoke.js` code again

torresjeff (Thu, 17 Aug 2017 15:44:21 GMT):
would it be a good idea to have a global of the peers, orderer, channel, etc

torresjeff (Thu, 17 Aug 2017 15:44:31 GMT):
instead of having to do the "addPeer" for every transaction?

tskzh (Thu, 17 Aug 2017 15:46:24 GMT):
@nickgaski thanks! I look at balance-transfer sample. it's likely to be helpful.

nickgaski (Thu, 17 Aug 2017 15:53:20 GMT):
@torresjeff - it's probably more of a question for the #fabric-sdk-node channel. But the `addPeer` method is used to create the channel object and it's part of the Channel class. Your question is a good one though - do I have to call this API every time I want to invoke. Throw it out there on the SDK channel, and someone with more expertise can help :)

torresjeff (Thu, 17 Aug 2017 15:53:48 GMT):
@nickgaski thanks for your help!

richard.holzeis (Fri, 18 Aug 2017 08:21:25 GMT):
Hi, I am currently trying to upgrade my fabric from beta to v1.0.0 so far everything worked fine, but I cannot instantiate my chaincode anymore as the peer does not trust the orderer. `2017-08-18 08:16:36.536 UTC [ConnProducer] NewConnection -> ERRO 393 Failed connecting to orderer.chained-voting.com:7050 , error: x509: certificate signed by unknown authority` Any suggestions?

mastersingh24 (Fri, 18 Aug 2017 10:42:52 GMT):
@richard.holzeis - are you using TLS?

richard.holzeis (Fri, 18 Aug 2017 10:44:45 GMT):
yes

richard.holzeis (Fri, 18 Aug 2017 10:44:45 GMT):
@mastersingh24 yes

mastersingh24 (Fri, 18 Aug 2017 10:59:08 GMT):
I assume that you are trying to use the existing crypto material you created for your beta setup?

richard.holzeis (Fri, 18 Aug 2017 11:00:44 GMT):
correct..

mastersingh24 (Fri, 18 Aug 2017 11:05:07 GMT):
One of the changes between the beta and the final v1.0.0 release was that we separated the crypto material for signing and TLS in the MSP structure. There is now a `tlscacerts` folder that is part of the MSP. This folder holds the root certs that will be used by the TLS stack to verify TLS certificates. Since the beta did not have this, the peer cannot verify the TLS cert(s) of the orderer. While we recommend using separate roots for signing and TLS, you can simply create a `tlscacerts` folder in each of the existing MSPs and copy the root(s) from `cacerts`

richard.holzeis (Fri, 18 Aug 2017 11:05:43 GMT):
i see.. thanks I will try..

prmdmshra (Fri, 18 Aug 2017 11:33:24 GMT):
Hi, could you please help me with the parameter in the net-config.yaml file in Block chain monitoring tool. https://blockchain-monitoring.org/

richard.holzeis (Fri, 18 Aug 2017 11:36:54 GMT):
@mastersingh24 ok, I've copied the content of the cacerts folder (orderer + peer) to the msp/tlscacerts folder, the error remains though. what have I done wrong? :sweat_smile:

richard.holzeis (Fri, 18 Aug 2017 11:36:54 GMT):
@mastersingh24 ok, I've copied the certifacts of the cacerts folder (orderer + peer) to the msp/tlscacerts folder, the error remains though. what have I done wrong? :sweat_smile:

mastersingh24 (Fri, 18 Aug 2017 12:13:39 GMT):
Did you regenerate your orderer config using configtxgen? Unfortunately the easiest thing to do moving from beta to final release will be to restart / reconfigure your entire network - i.e. recreate your channel(s) and start with fresh peers and have them join the channels

richard.holzeis (Fri, 18 Aug 2017 12:24:04 GMT):
I've created the channel artifacts (genesis.block + channel) and join the peers at startup with the fabric-client (v1.0.0) - what do you mean by "reconfigure your entire network"?

mastersingh24 (Fri, 18 Aug 2017 12:25:15 GMT):
If you did all that from scratch not sure what's going on then

richard.holzeis (Fri, 18 Aug 2017 12:35:59 GMT):
hmm... ok then I'll try to investigate further.. thanks for your help

jmcnevin (Fri, 18 Aug 2017 13:00:06 GMT):
FWIW, I have been having this issue as well

richard.holzeis (Fri, 18 Aug 2017 13:07:57 GMT):
currently it works for me by leaving the peer on beta..

jmcnevin (Fri, 18 Aug 2017 13:26:54 GMT):
@richard.holzeis Are you building your network with kubernetes by any chance?

richard.holzeis (Fri, 18 Aug 2017 13:30:58 GMT):
@jmcnevin nope

jmcnevin (Fri, 18 Aug 2017 14:06:37 GMT):
@richard.holzeis Another question... are you generating your TLS certs using fabric-ca?

FollowingGhosts (Fri, 18 Aug 2017 14:44:08 GMT):
Is it possible to bundle the Node fabric-client with webpack? I get errors with graceful-fs

richard.holzeis (Fri, 18 Aug 2017 14:50:39 GMT):
@jmcnevin no i am using the cryptogen tool..

hamptonsmith (Fri, 18 Aug 2017 17:49:00 GMT):
Are transaction ids globally unique within the fabric? How is that guaranteed, are they keyed to the current depth, plus a GUID? Could a badly-behaved endorser duplicate transaction ids, or would the orderer catch that?

hamptonsmith (Fri, 18 Aug 2017 18:51:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gbFARZhTWzaxpxxGn) @hamptonsmith Aha, answered my own question: https://github.com/hyperledger/fabric-sdk-go/blob/master/vendor/github.com/hyperledger/fabric/protos/common/common.proto#L92

jeffgarratt (Fri, 18 Aug 2017 19:36:11 GMT):
@hamptonsmith current TX ids are generated with hash (payload and a nonce)

hamptonsmith (Fri, 18 Aug 2017 20:00:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hDJYnGoQZeEqpLQAn) @jeffgarratt Perhaps I don't understand what constitutes a transaction, then. TxId seems to be available to chaincode through shim.GetTxId(), but payload wouldn't be decided during chaincode invokation?

jeffgarratt (Fri, 18 Aug 2017 20:10:50 GMT):
@hamptonsmith the TX is actually the hash of the (nonce + serializedIdentity)

jeffgarratt (Fri, 18 Aug 2017 20:11:29 GMT):
sorry for misleading you

hamptonsmith (Fri, 18 Aug 2017 20:18:14 GMT):
@jeffgarratt Aha! Gotcha, that makes more sense. Overall, then, it's safe to treat a TxId as a unique id for a digital asset, for example? To create a duplicate I'd have to find a second nonce that, combined with my identity, generates the same hash.

jeffgarratt (Fri, 18 Aug 2017 20:18:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rxMymSxiJpXo3sDu7) @hamptonsmith correct

hamptonsmith (Fri, 18 Aug 2017 20:19:11 GMT):
@jeffgarratt thank you!

jmcnevin (Fri, 18 Aug 2017 20:35:15 GMT):
@richard.holzeis : Are your peers and orderers in the same org?

k0hl1 (Sat, 19 Aug 2017 09:20:47 GMT):
What is the best way to do asset management? Like, track a PO from inception till the end. Right now I have written all the logic in chaincode and have created a transaction metadata struct. Does HL fabric store from whom to whom the transaction is happening between, if yes how to access it from within chaincode.

k0hl1 (Sat, 19 Aug 2017 09:20:55 GMT):
Thanks in advance

mastersingh24 (Sat, 19 Aug 2017 10:30:11 GMT):
@R1j1t - moving this to #fabric-questions (https://chat.hyperledger.org/channel/general?msg=wiX4c894WoMbGLFpm)

jeffgarratt (Sat, 19 Aug 2017 14:17:26 GMT):
@k0hl1 you may want to check out #composer

jeffgarratt (Sat, 19 Aug 2017 14:17:26 GMT):
@k0hl1 you may want to check out #composer which specializes in asset management

k0hl1 (Sat, 19 Aug 2017 14:19:39 GMT):
@jeffgarratt What if I have already created an application without composer, is there some other way around it? And I assume composer will also have a learning curve associated with it.

jeffgarratt (Sat, 19 Aug 2017 14:21:41 GMT):
@k0hl1 it does. But it also has a very high level view of assets and participants, which may allow you to reason about your problem more directly.

k0hl1 (Sat, 19 Aug 2017 14:22:48 GMT):
@jeffgarratt hmm thanks a lot for the suggestion :) Will look into it!

prmdmshra (Sat, 19 Aug 2017 15:26:30 GMT):
I have a couple of questions regarding Balance Transfer sample network(https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer#sample-rest-apis-requests): 1. The following error is displayed in logs on attempting to join channel: Failed to find a peer matching the url peer1 [2017-08-19 20:07:14.240] [ERROR] Helper - Failed to find a peer matching the url peer2 error: [Client.js]: installChaincode error Missing peer objects in install chaincode request [2017-08-19 20:07:14.245] [ERROR] install-chaincode - Error: Missing peer objects in install chaincode request at Client.installChaincode (/home/pwc/Desktop/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Client.js:690:26) at helper.getOrgAdmin.then (/home/pwc/Desktop/fabric-samples/balance-transfer/app/install-chaincode.js:40:17) (node:16184) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Error: Missing peer objects in install chaincode request at Client.installChaincode (/home/pwc/Desktop/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Client.js:690:26) at helper.getOrgAdmin.then (/home/pwc/Desktop/fabric-samples/balance-transfer/app/install-chaincode.js:40:17) 2. Kindly suggest how should I pass endorsing peers while installing chaincode 3. How can a endorsing peer endorse a transaction. Thanks for you support!!

richard.holzeis (Sun, 20 Aug 2017 11:21:56 GMT):
@jmcnevin yes

richard.holzeis (Sun, 20 Aug 2017 11:26:57 GMT):
@mastersingh24 Ok, I've pulled the lates configtxgen and cryptogen tools and regenerated all certificates, key, channel artifacts, etc. now I get an ssl error during channel creation. ```E0820 10:50:36.057197657 78 ssl_transport_security.c:947] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0820 10:50:36.065095164 78 ssl_transport_security.c:947] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone (/usr/src/app/node_modules/grpc/src/node/src/client.js:201:19)\n at ClientDuplexStream._readsDone (/usr/src/app/node_modules/grpc/src/node/src/client.js:169:8)\n at readCallback (/usr/src/app/node_modules/grpc/src/node/src/client.js:229:12)" Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/usr/src/app/node_modules/fabric-client/lib/Orderer.js:128:21) at emitOne (events.js:96:13) at ClientDuplexStream.emit (events.js:188:7) at ClientDuplexStream._emitStatusIfDone (/usr/src/app/node_modules/grpc/src/node/src/client.js:204:12) at ClientDuplexStream._readsDone (/usr/src/app/node_modules/grpc/src/node/src/client.js:169:8) at readCallback (/usr/src/app/node_modules/grpc/src/node/src/client.js:229:12)``` Do you have an idea what might be the issue here?

mastersingh24 (Sun, 20 Aug 2017 13:16:33 GMT):
@richard.holzeis - You'll likely need to make sure that you've properly set the https://fabric-sdk-node.github.io/global.html#ConnectionOpts when creating the Orderer - https://fabric-sdk-node.github.io/Orderer.html#Orderer__anchor https://github.com/hyperledger/fabric-sdk-node/blob/release/test/integration/orderer-channel-tests.js#L117 is a good example. I assume if this was working for you in the beta that perhaps you just need to update the pem value to the correct root CA for the orderer TLS certificate

richard.holzeis (Sun, 20 Aug 2017 13:30:47 GMT):
@mastersingh24 - the orderer is created with pem pointing to crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/msp/cacerts/ca.chained-voting.com-cert.pem

mastersingh24 (Sun, 20 Aug 2017 13:36:40 GMT):
What does ORDERER_GENERAL_TLS_CERTIFICATE point to?

richard.holzeis (Sun, 20 Aug 2017 13:37:13 GMT):
`/var/hyperledger/orderer/tls/server.crt`

richard.holzeis (Sun, 20 Aug 2017 13:37:13 GMT):
`/var/hyperledger/orderer/tls/server.crt` which is mounted from crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/tls

mastersingh24 (Sun, 20 Aug 2017 13:39:09 GMT):
So I think that when you create the Orderer via the NodeSDK, you want to point at `crypto-config/ordererOrganizations/chained-voting.com/orderers/orderer.chained-voting.com/msp/tlscacerts/tlsca.chained-voting.com-cert.pem`

richard.holzeis (Sun, 20 Aug 2017 13:40:13 GMT):
I've tried that as well with the same outcome..

richard.holzeis (Sun, 20 Aug 2017 13:44:54 GMT):
ok, I've also changed the path for the peer and its working now :) thanks for your help :D

mastersingh24 (Sun, 20 Aug 2017 16:57:14 GMT):
Phew. Sorry it was not as easy as it could/should be

itesanovic57 (Mon, 21 Aug 2017 08:34:11 GMT):
Has joined the channel.

adachij2002 (Mon, 21 Aug 2017 09:13:03 GMT):
Has joined the channel.

ZhengquanQin (Mon, 21 Aug 2017 11:17:22 GMT):
Has joined the channel.

chris.elder (Mon, 21 Aug 2017 12:13:35 GMT):
Has joined the channel.

antitoine (Mon, 21 Aug 2017 12:31:07 GMT):
@dave.enyeart I'm still on the complex query in CouchDB using chaincode. When I add the parameter `limit`, it is completely ignored. In Fauxton, it works great. The query looks like this: `{"limit":1,"selector":{"sequence":{"$gt":1}}}` Do you have an idea of why?

dave.enyeart (Mon, 21 Aug 2017 13:37:20 GMT):
@antitoine We don't want a malicious query to request millions of records from couchdb in a single request, and therefore hardcode the limit using core.yaml queryLimit config property. FAB-2809 is created to add implicit paging support between chaincode and couchdb, which would allow us to honor a passed in limit.

antitoine (Mon, 21 Aug 2017 13:42:33 GMT):
@dave.enyeart Thanks :) (the next time, I must search on Jira too !)

HypleA (Mon, 21 Aug 2017 14:31:27 GMT):
is there a way to hide what is on the chaincode? (other than using visibility settings for endorsers, or symmetric/assymetric encryption)

jeffgarratt (Mon, 21 Aug 2017 15:37:14 GMT):
@HypleA assume you mean on the ledger vs on the chaincode?

HypleA (Mon, 21 Aug 2017 17:00:58 GMT):
@jeffgarratt yes

HypleA (Mon, 21 Aug 2017 17:01:21 GMT):
@jeffgarratt but I would like for the chaincode nor for the ledger

HypleA (Mon, 21 Aug 2017 17:01:28 GMT):
not*

CodeReaper (Mon, 21 Aug 2017 17:43:43 GMT):
Hey I was wondering if the default consensus right now being used is PBFT or not

jeffgarratt (Mon, 21 Aug 2017 18:10:51 GMT):
@CodeReaper for >= v1 no

jeffgarratt (Mon, 21 Aug 2017 18:10:51 GMT):
@CodeReaper for >= v1 no (currently)

CodeReaper (Mon, 21 Aug 2017 18:17:21 GMT):
@jeffgarratt Then does it depend on selecting majority outcome(block hash) of the series of transactions for building consensus?

CodeReaper (Mon, 21 Aug 2017 18:18:29 GMT):
Any other specific consensus method or algo its using?

deraw (Mon, 21 Aug 2017 18:21:18 GMT):
Has joined the channel.

mastersingh24 (Mon, 21 Aug 2017 19:52:04 GMT):
@CodeReaper - "Consensus" in v1 is actually broken into a couple of pieces: 1) Ordering service: As you know, ordering nodes batch transactions and deliver the ordered batches to peer nodes. The ordering nodes are fault tolerant but currently only crash fault tolerance via Kafka / ZK has been implemented. So while Kafka / ZK do each have "consensus" across nodes for crash fault tolerance, the ordering service today would be considered a set of trusted nodes 2) Endorsement policies and validation: Endorsement policies are tied to a combination of channel / chaincode. You can specify a variety of different endorsement policies - majority, N of M, etc. So the client sends endorsement proposals to a bunch of peers for endorsement. It collects the endorsements (peers denote their endorsement by signing a proposal response), packages them up and sends them to the ordering service (to be ordered of course). When the peer receives the batch / block, it will check each transaction to make sure it meets the endorsement policy. Since endorsement policies are deterministic, all peers achieve identical results for validation and commitment of transactions

mastersingh24 (Mon, 21 Aug 2017 19:52:04 GMT):
@CodeReaper - "Consensus" in v1 is actually broken into a couple of pieces: 1) Ordering service: As you know, ordering nodes batch transactions and deliver the ordered batches to peer nodes. The ordering nodes are fault tolerant but currently only crash fault tolerance via Kafka / ZK has been implemented. So while Kafka / ZK do each have "consensus" across nodes for crash fault tolerance, the ordering service today would be considered a set of trusted nodes 2) Endorsement policies and validation: Endorsement policies are tied to a combination of channel / chaincode. You can specify a variety of different endorsement policies - majority, N of M, etc. So the client sends endorsement proposals to a bunch of peers for endorsement. It collects the endorsements (peers denote their endorsement by signing a proposal response), packages them up and sends them to the ordering service (to be ordered of course). When the peer receives the batch / block, it will check each transaction to make sure it meets the endorsement policy. Since endorsement policies are deterministic, all peers achieve identical results for validation and commitment of transactions The docs provide more detail: https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html

mastersingh24 (Mon, 21 Aug 2017 19:56:42 GMT):
Hope this helps

CodeReaper (Mon, 21 Aug 2017 21:24:23 GMT):
Helps more than enough, Thanks @mastersingh24

acosta_rodrigo (Tue, 22 Aug 2017 00:19:23 GMT):
hi to all, I'm trying to create a network on the cloud using EC2 peers instead of using the docker instances as in the examples. Has anyone accomplish this? I'm having some trouble making it work

rwadhwa (Tue, 22 Aug 2017 06:59:30 GMT):
Hi All, I have a question regarding the Hyperledger Fabric Network Setup.

rwadhwa (Tue, 22 Aug 2017 07:00:14 GMT):
By Network setup, I mean, is there any user-friendly way to configure the components of the network. For-ex, Peers, Orderers...

CodeReaper (Tue, 22 Aug 2017 10:12:20 GMT):
@mastersingh24 so I was going through the block data, and I noticed that based on just block number a user can see all read sets and write sets that were involved in the transactions in that block. So any registered user can in fact read all key and their values(including all meta data). I want to set a system where people can view all their transaction log or blocks. But the read set and the write set is exposing all data. Is the only way around this is that the SDK wont send the the whole block just a few details??

dave.enyeart (Tue, 22 Aug 2017 10:47:22 GMT):
@CodeReaper Privacy enhancements will be coming in next releases, see for example https://jira.hyperledger.org/browse/FAB-3621 and https://jira.hyperledger.org/browse/FAB-5481 and https://jira.hyperledger.org/browse/FAB-1151

niteshsharma (Tue, 22 Aug 2017 12:09:44 GMT):
Has joined the channel.

CodeReaper (Tue, 22 Aug 2017 13:58:17 GMT):
@dave.enyeart when you say privacy enhancement does it involve putting restraints on checking the role or affiliation of certificate when executing a chaincode transaction and querying data. Because right now what I've come across is that there is no way to restrict any registered and enrolled user from a functionality.

dave.enyeart (Tue, 22 Aug 2017 14:10:20 GMT):
@CodeReaper yes, those features help to address that, please read the jira items and linked docs

hamptonsmith (Tue, 22 Aug 2017 14:11:48 GMT):
In chaincode, is there a way to get metadata (specifically I'd like to know which user submitted the transaction) for historical transactions? GetSignedProposal() seems promising for metadata about the transaction being constructed, but not historical transactions. And the KeyModification returned by the iterator from GetHistoryForKey() doesn't seem to include this information. At the high level I'm looking for a way to determine, "The last time this key was touched, who was it by?"

dave.enyeart (Tue, 22 Aug 2017 14:20:52 GMT):
GetHistoryForKey() returns the tran id, and then you can retreive the tran by id to find the tran metadata. This was the design intent.

dave.enyeart (Tue, 22 Aug 2017 14:20:52 GMT):
@hamptonsmith GetHistoryForKey() returns the tran id, and then you can retreive the tran by id to find the tran metadata. This was exactly the design intent.

dave.enyeart (Tue, 22 Aug 2017 14:20:52 GMT):
@hamptonsmith GetHistoryForKey() returns the tran id, and then you can retreive the tran by id to look at the tran metadata. This was exactly the design intent.

hamptonsmith (Tue, 22 Aug 2017 14:37:04 GMT):
@dave.enyeart Getting from the txid to the metadata with a ChaincodeStubInterface is the step I'm missing.

hamptonsmith (Tue, 22 Aug 2017 15:03:48 GMT):
@dave.enyeart Perhaps I'm looking at outdated documentation? https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStubInterface

dave.enyeart (Tue, 22 Aug 2017 16:31:12 GMT):
@hamptonsmith Ah, I was talking from perspective of client using SDK... you can retrieve tran by id. You are right, within chaincode itself there is no ability to lookup prior trans.

hamptonsmith (Tue, 22 Aug 2017 18:22:40 GMT):
@dave.enyeart I see. Is that a planned feature? Any technical reason it can't be exposed? Certainly if the peer has the history, it has the metadata as well. Workaround for the moment just to have the chaincode "farm out" to some local client sdk logic?

dave.enyeart (Tue, 22 Aug 2017 19:52:09 GMT):
@hamptonsmith If you need to know who updated a key from chaincode, I'd suggest storing that info in the key value.

hamptonsmith (Tue, 22 Aug 2017 19:58:44 GMT):
@dave.enyeart Sure, that'll be my workaround for the moment, but that puts me at the mercy of the endorser to speak truth rather than relying on a signature that only the combination of the user and endorser could produce. With access to the block's signature, I'd know with confidence which user/endorser pair created this block. If I read it from a key, I have to re-implement those signatures or just trust.

Neboysa (Tue, 22 Aug 2017 20:49:07 GMT):
Has joined the channel.

Neboysa (Tue, 22 Aug 2017 20:52:57 GMT):
Hi all! Is there any way for two chaincodes to communicate one with another (in the same channel, of course)? For example, can chaincode `A` use `stub.GetState()` to read value written by chaincode `B` via `stub.PutState()`? Or is there any other way for two chaincodes to communicate (can cc `A` invoke cc `B` somehow)?

jeffgarratt (Tue, 22 Aug 2017 21:39:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M5eDf63zkPaswg58j) @Neboysa Chaincodes can invoke other chaincodes

jeffgarratt (Tue, 22 Aug 2017 21:40:34 GMT):
@Neboysa read here https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html?highlight=chaincode%20invoke%20other%20chaincodes#what-is-chaincode

jeffgarratt (Tue, 22 Aug 2017 21:44:54 GMT):
```Given the appropriate permission, a chaincode may invoke another chaincode to access its state within the same network.

Neboysa (Tue, 22 Aug 2017 22:04:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vFaSdctjT23m2SdKr) @jeffgarratt Thanks - I've seen that in the docs but I was too blind to see _how_ to do this? Finally found the `InvokeChaincode` function in `ChaincodeStub`

DarshanBc (Wed, 23 Aug 2017 04:34:24 GMT):
In solo ordering is that the block is formed for every 2secs as the batch time is 2 secs

shivap_17 (Wed, 23 Aug 2017 05:28:58 GMT):
Has joined the channel.

CodeReaper (Wed, 23 Aug 2017 07:16:24 GMT):
Thanks @dave.enyeart. Do you by any chance know how much time can it take for that version implementing permission checks. Without i dont believe anyone should make a production based project.

CodeReaper (Wed, 23 Aug 2017 07:16:24 GMT):
Thanks @dave.enyeart. Do you by any chance know how much time can it take for that version implementing permission checks. Without them I don't believe anyone should make a production based project.

CodeReaper (Wed, 23 Aug 2017 07:16:24 GMT):
Thanks @dave.enyeart Do you by any chance know how much time can it take for that version implementing permission checks. Without them I don't believe anyone should make a production based project.

HypleA (Wed, 23 Aug 2017 09:23:38 GMT):
Hello, 2 questions: 1)How do we hide a value stored in the chaincode (without using visibility setting for endorsers and without using encryption on the chaincode) 2)Where can we find current security issues that exist with v1?

Venkatr (Wed, 23 Aug 2017 10:05:08 GMT):
Has joined the channel.

Venkatr (Wed, 23 Aug 2017 10:07:01 GMT):
HL Composer - Playground Web UI - Unable to create a New Identity. No error messages. It just asks for ID name and Participant name(already created). No response after that. Can experts help here.

richard.holzeis (Wed, 23 Aug 2017 11:47:56 GMT):
hi! I am running into issue when trying to join a channel `peer channel join -b shared.block -o dev-orderer:7050` ```Error: proposal failed (err: rpc error: code = Unknown desc = Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate``` I am not using TLS; any idea what might be the issue here?

mna2016 (Wed, 23 Aug 2017 12:55:24 GMT):
Has joined the channel.

mna2016 (Wed, 23 Aug 2017 12:59:02 GMT):
Hi Team, I have installed a blockchain network inside of IBM container service. Now I want to access the chaincode from external Applications. I want to be able to access the old endpoints like "/registrar" and "/chaincode". 1) What peer URL and PORT should I use for these endpoints to work? 2) Would I still be able to use GET and POST request to interact with v1. hyperledger chaincode?

lehors (Wed, 23 Aug 2017 13:52:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aFhpbRYSLamfSiyiy) @mna2016 fabric 1.0 doesn't support the REST API, this will come back in a future version

mna2016 (Wed, 23 Aug 2017 13:59:23 GMT):
@lehors But the hyperledger composer server does provide a REST interface? is that interface beta version or some experimental stuff?

hamptonsmith (Wed, 23 Aug 2017 14:18:05 GMT):
I know if previous versions of fabric there was an imperative that chaincode be able to be deterministically executed by all nodes, but am I correct in understanding that requirement has been relaxed? I think I remember seeing that endorsers can now execute what amounts to "secret" chaincode and so long as the resulting transaction is able to meet the established endorsement policy, that's ok. The specific thing I'm considering is having peers include a digital signature as a field in the transaction so that, while any peer can make a change, no peer can make a change asserting that some other peer did it. Obviously, other peers would not then be able to deterministically execute the chaincode in the same way as the original peer.

hamptonsmith (Wed, 23 Aug 2017 14:18:05 GMT):
I know in previous versions of fabric there was an imperative that chaincode be able to be deterministically executed by all nodes, but am I correct in understanding that requirement has been relaxed? I think I remember seeing that endorsers can now execute what amounts to "secret" chaincode and so long as the resulting transaction is able to meet the established endorsement policy, that's ok. The specific thing I'm considering is having peers include a digital signature as a field in the transaction so that, while any peer can make a change, no peer can make a change asserting that some other peer did it. Obviously, other peers would not then be able to deterministically execute the chaincode in the same way as the original peer.

hamptonsmith (Wed, 23 Aug 2017 14:18:05 GMT):
I know in previous versions of fabric there was an imperative that chaincode be able to be deterministically executed by all nodes, but am I correct in understanding that requirement has been relaxed in v1? I think I remember seeing that endorsers can now execute what amounts to "secret" chaincode and so long as the resulting transaction is able to meet the established endorsement policy, that's ok. The specific thing I'm considering is having peers include a digital signature as a field in the transaction so that, while any peer can make a change, no peer can make a change asserting that some other peer did it. Obviously, other peers would not then be able to deterministically execute the chaincode in the same way as the original peer.

lehors (Wed, 23 Aug 2017 14:26:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cbjgtRwKPvm5a9nPq) @mna2016 Sorry, I don't know about that. I suggest you ask on #composer

FollowingGhosts (Wed, 23 Aug 2017 14:56:14 GMT):
How long should I expect an invoke that just puts a state into the database to take?

FollowingGhosts (Wed, 23 Aug 2017 14:56:20 GMT):
Currently it's taking 2s from the Node SDK

FollowingGhosts (Wed, 23 Aug 2017 14:56:27 GMT):
and I feel like it could/should be faster

FollowingGhosts (Wed, 23 Aug 2017 14:56:42 GMT):
running a docker environment with 2 peers and an orderer

FollowingGhosts (Wed, 23 Aug 2017 14:56:54 GMT):
CPU and RAM are not being taxed

jeffgarratt (Wed, 23 Aug 2017 15:26:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XrNqbppb6vAt6ANxz) @hamptonsmith I believe the determinism of v1 is greater than that of pre-v1. As far as including a digital signature in the TX, the system already does this.

jeffgarratt (Wed, 23 Aug 2017 15:28:38 GMT):
base upon you endorsement policies, there will be signatures on the changeset from the endorsements from every required member, as well as a signature of the actual entity creating the TX.

hamptonsmith (Wed, 23 Aug 2017 15:29:32 GMT):
@jeffgarratt It does this, but based on my conversation with @dave.enyeart yesterday, it seems that this information is inaccessible in chaincode. Recommended work-around seemed to be, "Include information about whodunnit explicitly as a field."

jeffgarratt (Wed, 23 Aug 2017 15:30:37 GMT):
hmmm, seem to recall that convo

jeffgarratt (Wed, 23 Aug 2017 15:31:29 GMT):
yes, then it seems like a lastModifier type field can be used

jeffgarratt (Wed, 23 Aug 2017 15:31:42 GMT):
or however many you require

hamptonsmith (Wed, 23 Aug 2017 15:32:08 GMT):
@jeffgarratt Cool. But it sounds like maybe I need to avoid an actual signature since they can't be deterministically reproduced by the other peers?

jeffgarratt (Wed, 23 Aug 2017 15:32:25 GMT):
wouldn't you just store the getCreator cert?

jeffgarratt (Wed, 23 Aug 2017 15:32:38 GMT):
that is the entity invoking at that moment

jeffgarratt (Wed, 23 Aug 2017 15:33:29 GMT):
would be the same value across endorsers

hamptonsmith (Wed, 23 Aug 2017 15:33:39 GMT):
Assuming that's the publicly accessible identity of the endorsing entity, that wouldn't prevent a separate badly-behaved peer from asserting that the change was made by somebody else.

hamptonsmith (Wed, 23 Aug 2017 15:33:51 GMT):
I'm Hampton Smith and Jeff Garratt made this change. :)

jeffgarratt (Wed, 23 Aug 2017 15:34:20 GMT):
no, they could not, because your proposal responses would differ from each endorser in that case, and you would not submit the TX

jeffgarratt (Wed, 23 Aug 2017 15:34:35 GMT):
the badly behaved peer's response would NOT match

jeffgarratt (Wed, 23 Aug 2017 15:35:57 GMT):
also, I would slightly change your wording from 'endorsing entity' to the requestor fo the endorsement

jeffgarratt (Wed, 23 Aug 2017 15:35:57 GMT):
also, I would slightly change your wording from 'endorsing entity' to the requestor of the endorsement

jeffgarratt (Wed, 23 Aug 2017 15:36:24 GMT):
the endrosing entity is actually the identity of the peer you are requesting endrosement from

hamptonsmith (Wed, 23 Aug 2017 15:39:11 GMT):
If I follow the "differ from each endorser" line (and I'm still hazy on all this so it's possible I'm off base!) you mean that, since I require X endorsements anyway, certainly one of the endorsers will play nice. That's ok, I guess, but given that the block needs to be signed by an endorser anyway, which provides absolute proof of who made the change, it's weird that I can't just access that info in chaincode. I'd like to know which organization ok'd the change, and that info is in the blockchain, but it's inaccessible to me in the chaincode.

jeffgarratt (Wed, 23 Aug 2017 15:40:47 GMT):
that would lead to non-determinism if you involved local specific information in any calculations

hamptonsmith (Wed, 23 Aug 2017 15:41:25 GMT):
That may be where my understanding is breaking down. Certainly "who made the last change to this field" is channel-global info?

jeffgarratt (Wed, 23 Aug 2017 15:41:52 GMT):
that is the getCreator

jeffgarratt (Wed, 23 Aug 2017 15:41:58 GMT):
the submitter of the proposal

jeffgarratt (Wed, 23 Aug 2017 15:42:17 GMT):
whereas the endorsements would represent all of the identities that simulated the proposal

jeffgarratt (Wed, 23 Aug 2017 15:42:29 GMT):
which of course is specific to each node

jeffgarratt (Wed, 23 Aug 2017 15:42:46 GMT):
it is safe to use the creator

jeffgarratt (Wed, 23 Aug 2017 15:42:54 GMT):
as it is consistent across endorsing peers

hamptonsmith (Wed, 23 Aug 2017 15:42:55 GMT):
GetCreator() will tell me who made the last change to a key? My read of the documentation is that it tells me who is currently requesting to make a change.

jeffgarratt (Wed, 23 Aug 2017 15:43:27 GMT):
no, you would need to store the result of GetCreator() in the chaincode keystore

jeffgarratt (Wed, 23 Aug 2017 15:43:48 GMT):
this result 'should' be consistent across endorsing peers

jeffgarratt (Wed, 23 Aug 2017 15:43:58 GMT):
as they received the proposal from the same creator

hamptonsmith (Wed, 23 Aug 2017 15:43:59 GMT):
Ok, but what prevents a badly-behaved peer from storing a false creator?

jeffgarratt (Wed, 23 Aug 2017 15:44:03 GMT):
nothing

jeffgarratt (Wed, 23 Aug 2017 15:44:29 GMT):
but.... the creator will NOT submit the proposal responses as a TX if they do NOT match

jeffgarratt (Wed, 23 Aug 2017 15:44:45 GMT):
thus the ledger will NOT be updated

hamptonsmith (Wed, 23 Aug 2017 15:44:51 GMT):
Meaning multiple peers would have to collude.

jeffgarratt (Wed, 23 Aug 2017 15:45:05 GMT):
correct, and circumnavigate the endorsement policy

jeffgarratt (Wed, 23 Aug 2017 15:45:19 GMT):
thus, you are screwed any way :)

jeffgarratt (Wed, 23 Aug 2017 15:45:40 GMT):
thus, make sure endorsement policy is what you think it is

jeffgarratt (Wed, 23 Aug 2017 15:45:45 GMT):
and be cautious

hamptonsmith (Wed, 23 Aug 2017 15:46:00 GMT):
I don't get that second part. If the endorsement policy says you need my and your sign off, and we collude to sign off on bogus info, that's not really a circumvention--the endorsement policy is fulfilled, we're just jerks. Yes? :)

jeffgarratt (Wed, 23 Aug 2017 15:46:23 GMT):
correct, but then the system is behaving exactly as specified

jeffgarratt (Wed, 23 Aug 2017 15:46:48 GMT):
caveat emptor

hamptonsmith (Wed, 23 Aug 2017 15:48:47 GMT):
Ok, I'm with you on all this. The part that I'm hung up on is that it seems like I it should be possible in this case to not require caveat emptor. (I acknowledge the current API doesn't support it, I guess I'm getting at is this something that I should make a feature request for or is it technically infeasible). It seems like certainly the signatures I want are embedded in the chaincode? And if the endorsing peer is able to see the history of the keystore, they must have access to those signatures too? So why rely on trust when I can rely on cryptographic proof.

jeffgarratt (Wed, 23 Aug 2017 15:50:34 GMT):
you simply need to specific the level of cryptographic proof you require to attain 'trust'

jeffgarratt (Wed, 23 Aug 2017 15:51:06 GMT):
you can always specify that you require the same answer from all participants

jeffgarratt (Wed, 23 Aug 2017 15:52:12 GMT):
and make sure you at least trust yourself

hamptonsmith (Wed, 23 Aug 2017 15:52:20 GMT):
The question is about the technical feasibility about the feature I'm asking about, though. :) I'm just trying to ascertain if the idea is absurd for some reason.

jeffgarratt (Wed, 23 Aug 2017 15:52:58 GMT):
I wonder if you perhaps are missing a piece of understanding wrt to how the current system works

jeffgarratt (Wed, 23 Aug 2017 15:53:19 GMT):
whu don't we take this offline

jeffgarratt (Wed, 23 Aug 2017 15:53:23 GMT):
will ping you privately

hamptonsmith (Wed, 23 Aug 2017 15:53:27 GMT):
Thanks!

jeffgarratt (Wed, 23 Aug 2017 15:53:54 GMT):
can you private message me?

FollowingGhosts (Wed, 23 Aug 2017 15:54:01 GMT):
Can anyone tell me how long it takes them to invoke a function and receive a callback through the eventhub? It seems to take me a large amount of time each time and I'm not sure why

jeffgarratt (Wed, 23 Aug 2017 15:54:03 GMT):
I am having hard time finding you

ajp (Wed, 23 Aug 2017 17:50:33 GMT):
Cross posting this here in case it's the more appropriate place to ask: Hi all I have a question regarding ensuring security of chaincode and that no one can mess with it. Is the chaincode binary hashed and checked every time it's invoked to make sure no one has messed with the binary between transactions? I can't imagine this being a very efficient process, but otherwise what stops an attacker or someone with malicious intent to arbitrarily run any chaincode?

toddinpal (Wed, 23 Aug 2017 18:46:46 GMT):
Is there a write-up (functional and/or design) of the event mechanism in Fabric?

qizhang (Wed, 23 Aug 2017 19:00:46 GMT):
Has joined the channel.

toddinpal (Wed, 23 Aug 2017 19:08:26 GMT):
@ajp what do you mean by arbitrary chaincode? Chaincode has to be installed in a peer before it can be executed. Unless the peer is running in development mode, it will reject connections from chaincode containers that it hasn't started.

ajp (Wed, 23 Aug 2017 19:13:56 GMT):
I mean if someone logged on to the peer node and docker exec'd into the container running the chaincode and literally put a new binary in where the current binary is

ajp (Wed, 23 Aug 2017 19:14:17 GMT):
No new container, no transactions

toddinpal (Wed, 23 Aug 2017 19:15:22 GMT):
I'm not aware of any checks that would prevent that. It would also seem extremely hard to prevent.

ajp (Wed, 23 Aug 2017 19:18:16 GMT):
I agree, hashing the binary every time and comparing it to a known hash would be very computationally expensive and long to run for each transaction. Nevertheless, I think it remains an issue as a party in a channel has full control over its own nodes and therefore the chaincode each node is running, and I don't see how other parties would know that a chaincode has been substituted other than discrepancies in perceived vs actual ledger contents.

jeffgarratt (Wed, 23 Aug 2017 19:23:29 GMT):
@toddinpal @ajp there is current work under way for signed chaincode packages that will address some of these issues

ajp (Wed, 23 Aug 2017 19:24:03 GMT):
Do you know if this work is public/accessible or is it in the very early stages?

jeffgarratt (Wed, 23 Aug 2017 19:24:22 GMT):
best source would be to query in #fabric-crypto I believe

jeffgarratt (Wed, 23 Aug 2017 19:24:33 GMT):
I think it is both :)

ajp (Wed, 23 Aug 2017 19:24:52 GMT):
Alright sounds good I will ask there!

toddinpal (Wed, 23 Aug 2017 19:25:41 GMT):
Signing isn't adequate if someone is inside the container. What prevents them from injecting code into the existing binary in memory?

jeffgarratt (Wed, 23 Aug 2017 19:26:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W3pmAAubeXnHtDNsm) @toddinpal that presumably produce a different proposal response and be caught during that phase

jeffgarratt (Wed, 23 Aug 2017 19:26:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W3pmAAubeXnHtDNsm) @toddinpal that presumably would produce a different proposal response and be caught during that phase

toddinpal (Wed, 23 Aug 2017 19:27:05 GMT):
right, assuming reasonable endorsement policy

jeffgarratt (Wed, 23 Aug 2017 19:27:08 GMT):
if they give same response as other endorsers, then not sure an issue

jeffgarratt (Wed, 23 Aug 2017 19:27:12 GMT):
correct!!

jeffgarratt (Wed, 23 Aug 2017 19:27:44 GMT):
endorsement policy is you best protection against malicious intent as you describe

RodrigoCastilla (Wed, 23 Aug 2017 19:49:28 GMT):
Has joined the channel.

RodrigoCastilla (Wed, 23 Aug 2017 19:51:15 GMT):
Hi, im having the next problem: Castilla@PC MINGW64 ~/fabric-samples/fabcar (release) $ ls creds/ invoke.js package.json query.js startFabric.sh*

RodrigoCastilla (Wed, 23 Aug 2017 19:51:52 GMT):
$ ./startFabric.sh cp: cannot stat '/c/Users/Rodrigo': No such file or directory cp: cannot stat 'Castilla/fabric-samples/fabcar/creds/*': No such file or directory

RodrigoCastilla (Wed, 23 Aug 2017 19:55:13 GMT):
But the file exists. I was thinking that I have the next problem: I am trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed. But, i dont know how to fixe it. Can somebody help me.

toddinpal (Wed, 23 Aug 2017 19:56:51 GMT):
just a guess, but does your directory path have a space in the name?

RodrigoCastilla (Wed, 23 Aug 2017 20:05:01 GMT):
No, it does not. Why ?

toddinpal (Wed, 23 Aug 2017 20:12:39 GMT):
Well it looks like a filename was split. So I'm thinking the script tried to copy /c/Users/Rodrigo Castilla/fabric-samples/fabcar/creds/* without quoting the file name.

toddinpal (Wed, 23 Aug 2017 20:13:20 GMT):
@RodrigoCastilla What's directories are under /c/Users

RodrigoCastilla (Wed, 23 Aug 2017 21:11:53 GMT):
OH, I understand you know!

Vrai1127 (Wed, 23 Aug 2017 21:36:23 GMT):
Has joined the channel.

Vrai1127 (Wed, 23 Aug 2017 21:36:31 GMT):
All, I have a design question: 1) In most of the use cases, the participants of the network will have data which they would really like to keep confidential (for e.g. how much amount one invested) among select few peers.I understand channel is an option for peers to transact privately. But does that mean for all practical purposes, we will end up with multiple channels irrespective of how big or small a usecase is and then on the application side( front end) we will have to orchestrate to get data from all the channels and present to the user based on access level? 2) is there a mechanism to control access level for a peer on a channel so as it could access only specific data? Please help

muralisr (Wed, 23 Aug 2017 22:55:50 GMT):
@Vrai1127 there are several mechanisms - current and in plan - in the fabric to help with privacy (at different levels depending upon how strict your requirements are). Channels is one .. another is the "side db" described in https://jira.hyperledger.org/browse/FAB-1151. Suggest you take a peek at it please ?

toddinpal (Wed, 23 Aug 2017 23:00:30 GMT):
@Vrai1127 Wouldn't it be possible to encrypt the data and only provide the peers you want accessing that data the key(s)? It would make endorsement trickier as you'd have to limit the endorsing peers to those you provided the keys. There is also a sub-working group of the architecture working group looking at this very issue, although the discussions are still very preliminary.

vdods (Thu, 24 Aug 2017 00:31:12 GMT):
Hi all, wasn't the TCerts (in SDK) slated for v1.1? It looks like Identity Mixer may be the alternative.. is that slated for v1.1?

shivap_17 (Thu, 24 Aug 2017 05:24:48 GMT):
Hi All :) I'm following the developer guide https://hyperledger.github.io/composer/tutorials/developer-guide.html Am I in right path.. I didn't find any difficulty, but the guide is talking about CTO language, which is little new and no proper doc is there for it

ashok.pannala (Thu, 24 Aug 2017 06:07:28 GMT):
Has joined the channel.

ashok.pannala (Thu, 24 Aug 2017 06:24:58 GMT):
Hi, I am started working on fabric sample balance-transfer: while running the ./testAPI.sh file i am getting the below errors: POST instantiate chaincode on peer1 of Org1 Failed to order the transaction. Error code: undefined POST invoke chaincode on peers of Org1 and Org2 Transacton ID is Failed to order the transaction. Error code: undefined GET query chaincode on peer1 of Org1 a now has Error: could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again after the move GET query Block by blockNumber Error: chaincode error (status: 500, message: Failed to get block number 1, error Entry not found in index) at /home/ashok/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:434:17 GET query Transaction by TransactionID Error: chaincode error (status: 500, message: Failed to get transaction with id Failed, error Entry not found in index) at /home/ashok/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:434:17 Can anyone please help me to resolve this issue?

seungchan (Thu, 24 Aug 2017 08:30:52 GMT):
Hello, I have simple question. In the Marble example, is Client same mean with Admin?

benjamin_J_sb (Thu, 24 Aug 2017 12:46:51 GMT):
Has joined the channel.

mna2016 (Thu, 24 Aug 2017 13:37:35 GMT):
Hi Team, I am trying to install chaincode inside an IBM container serivice. The yaml file has the following script: command: ["sh", "-c", "git clone -b v1.0.0 https://github.com/hyperledger/fabric $GOPATH/src/github.com/hyperledger/fabric/ && peer chaincode install -n ${CHAINCODE_NAME} -v ${CHAINCODE_VERSION} -p https://github.com/mygithubid/project-samples/testcontract/testplatform/sample/"] This command is returning the following error "Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error getting code code does not exist Could not open file open /opt/gopath/src/https:/github.com/nihalansari/blockchain-samples/tree/master/contracts/platform/iotcontractminimalsample: no such file or directory" 1) What I am doing wrong here? How to fix this so that script runs ok and picks up my chaincode from my repository? Any information or clues will be a great help.

mna2016 (Thu, 24 Aug 2017 13:40:36 GMT):
Correcting the question... please ignore the earlier ones:

mna2016 (Thu, 24 Aug 2017 13:41:04 GMT):
Hi Team, I am trying to install chaincode inside an IBM container serivice. The yaml file has the following script: command: ["sh", "-c", "git clone -b v1.0.0 https://github.com/hyperledger/fabric $GOPATH/src/github.com/hyperledger/fabric/ && peer chaincode install -n ${CHAINCODE_NAME} -v ${CHAINCODE_VERSION} -p "https:/github.com/nihalansari/blockchain-samples/tree/master/contracts/platform/iotcontractminimalsample/"] This command is returning the following error "Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error getting code code does not exist Could not open file open /opt/gopath/src/https:/github.com/nihalansari/blockchain-samples/tree/master/contracts/platform/iotcontractminimalsample: no such file or directory" 1) What I am doing wrong here? How to fix this so that script runs ok and picks up my chaincode from my repository? Any information or clues will be a great help.

mna2016 (Thu, 24 Aug 2017 14:07:40 GMT):
When I change the github repo link to "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/", the script starts working fine

mna2016 (Thu, 24 Aug 2017 15:01:17 GMT):
The error is resolved now. Thanks.

toddinpal (Thu, 24 Aug 2017 16:35:48 GMT):
Do system chaincode (lccc) transactions such as install or instantiate generate events?

mastersingh24 (Thu, 24 Aug 2017 16:42:49 GMT):
@toddinpal - Install does not because it's a local peer call. Instantiate and other lifecycle transactions are just like any other transaction - you can see them in block events. They don't generate any special custom event

toddinpal (Thu, 24 Aug 2017 16:47:15 GMT):
Thanks!

toddinpal (Thu, 24 Aug 2017 17:18:03 GMT):
How does a client "discover" or access the peers in another organization? I'm assuming it can look at the channel configtx and discover the other peers that have the chaincode instantiated. But is it supposed to talk directly to those peers, or is the anchor peer somehow involved? The architecture description is very weak on this.

yicchen (Thu, 24 Aug 2017 18:14:25 GMT):
Has joined the channel.

yicchen (Thu, 24 Aug 2017 18:16:18 GMT):
Can I call outside restAPI through chaincode?(I want to move complex computation off the blockchain )

mastersingh24 (Thu, 24 Aug 2017 18:52:33 GMT):
@yicchen - Technically you can as you have full access to do what you want within chaincode. Whether or not you should is a different question. One of the issues would be making sure that the REST API you call returns the same results given the same inputs. You would also likely want to include the value returned by the REST API call in a PutState call in your chaincode so that you record the value as part of the transaction (although you do not need to) (https://chat.hyperledger.org/channel/fabric-questions?msg=aXBDGKsW8Y8pzLATQ)

ivaylopivanov (Thu, 24 Aug 2017 19:50:48 GMT):
Hi, asked few minutes the following, hope someone can help https://stackoverflow.com/questions/45869493/hyperledger-rest-request

ivaylopivanov (Thu, 24 Aug 2017 19:50:48 GMT):
Hi, asked few minutes ago the following, hope someone can help https://stackoverflow.com/questions/45869493/hyperledger-rest-request

mastersingh24 (Thu, 24 Aug 2017 20:31:50 GMT):
[responded ](https://chat.hyperledger.org/channel/fabric-questions?msg=qXDZpA6rbfRWco7yk) @ivaylopivanov

ivaylopivanov (Thu, 24 Aug 2017 20:32:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zP2aeMDhboPGPDLkY) @mastersingh24 Yes, thank you

RodrigoCastilla (Thu, 24 Aug 2017 20:52:44 GMT):
Hi, im doing the "Building Your First Network" samples to lear how this works. But I am havieng the next error, please, can somebody help me to understand what is happening ? Rodrigo@PC MINGW64 ~/fabric-samples/first-network (release) $ ./byfn.sh -m generate Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... which: no cryptogen in (/c/Users/Rodrigo/fabric-samples/first-network/../bin:/c/Users/Rodrigo/fabric-samples/first-network:/c/Users/Rodrigo/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Program Files/Docker Toolbox:/c/Users/Rodrigo/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/Rodrigo/bin:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Users/Rodrigo Castilla/desktop/Vargant/bin:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files/Cloud Foundry:/c/Program Files (x86)/Skype/Phone:/c/Program Files (x86)/Brackets/command:/cmd:/c/Go/bin:/c/Program Files/nodejs:/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) cryptogen tool not found. exiting

silliman (Thu, 24 Aug 2017 21:01:49 GMT):
@RodrigoCastilla back up on directory to ~/fabric-samples and run the two commands from the *Download Platform-specific Binaries* section of http://hyperledger-fabric.readthedocs.io/en/latest/samples.html

silliman (Thu, 24 Aug 2017 21:01:49 GMT):
@RodrigoCastilla back up one directory to ~/fabric-samples and run the two commands from the *Download Platform-specific Binaries* section of http://hyperledger-fabric.readthedocs.io/en/latest/samples.html

HypleA (Thu, 24 Aug 2017 21:11:30 GMT):
If we program a chaincode function that receives a value, and checks if tha value is correct, who can see the values inside that function? Only the developers or can someone else also see the source code?

RodrigoCastilla (Thu, 24 Aug 2017 21:19:44 GMT):
@silliman Thank you for your answer, it was helpful.

jeffgarratt (Fri, 25 Aug 2017 00:35:52 GMT):
@HypleA fabric support the ability to only deploy the chaincodes to nodes of your choosing, thus you can limit who actually has access to the chaincode. This of course must be accounted for in your endorsement policy settings.

jeffgarratt (Fri, 25 Aug 2017 00:36:55 GMT):
in addition, there are transient fields, which can be supplied to the chaincode, but which will be cleared prior to hash calculation and signing, thus allowing you to use values for calculation, but NOT encode them in the eventual TX.

toddinpal (Fri, 25 Aug 2017 01:21:33 GMT):
Is joining a channel a transaction and if so is it recorded in the blockchain? In other words can I find out what peers have joined a channel?

jeffgarratt (Fri, 25 Aug 2017 02:18:17 GMT):
@toddinpal no, joining the channel is simply an endorsement process against a peer. From the ledger, no you can not determine that

jeffgarratt (Fri, 25 Aug 2017 02:18:39 GMT):
however, the peer does offer the 'peer channel list' command

jeffgarratt (Fri, 25 Aug 2017 02:20:52 GMT):
there may be a command to check other peers within an organization... that have joined the same channel as gossip will have determined this in general. @muralisr or @yacovm may have insight

jeffgarratt (Fri, 25 Aug 2017 02:20:52 GMT):
there may be a command to check other peers within an organization that have joined the same channel as gossip will have determined this in general. @muralisr or @yacovm may have insight

ermyas (Fri, 25 Aug 2017 04:01:27 GMT):
Has joined the channel.

yacovm (Fri, 25 Aug 2017 05:36:52 GMT):
You can't and you shouldn't

yacovm (Fri, 25 Aug 2017 05:37:21 GMT):
Only the peers in your organization, or in the channel know who are the other peers in the channel

rwadhwa (Fri, 25 Aug 2017 08:37:05 GMT):
Hi All, In bring your first network example, docker-compose-cli.yaml , base/docker-compose-base.yaml, peer-base.yaml

rwadhwa (Fri, 25 Aug 2017 08:37:36 GMT):
Do we need to create these yaml files manually? If yes, is there any easy way to do it?

mastersingh24 (Fri, 25 Aug 2017 09:52:10 GMT):
(https://chat.hyperledger.org/channel/general?msg=GqAN8zzPricxPRTZN) @Stubey

Stubey (Fri, 25 Aug 2017 09:52:10 GMT):
Has joined the channel.

mastersingh24 (Fri, 25 Aug 2017 09:52:32 GMT):
@Stubey - moving ^^^ to this channel

mastersingh24 (Fri, 25 Aug 2017 10:57:58 GMT):
@Stubey - Have you taken a look at http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html ? It gives some good detail about how the transaction flow and components fit together in the v1 architecture. The one thing to note is that the current fault-tolerant ordering service provides crash fault tolerance and is based on Kafka. Typically you'll need a minimum of 5 Kafka brokers and 3 Zookeeper nodes for a highly available ordering service. You would need to make sure that you distribute the Kafka and ZK nodes across multiple servers as well (e.g. let's say you go with 5 Kafka brokers and 5 ZK nodes - you'd want 5 different servers). You could choose to have all of the companies host different ordering nodes, but given crash fault tolerance there is already an implied trust in the ordering service so it could be hosted by one of the companies or by an external party as well. In terms of the peer nodes, you'll want to pay attention to the section in the documentation above about endorsement flow. There's technically no minimum number of nodes required, but you'd want to make sure that your endorsement policy would be majority and then you just need to ensure that there all always enough nodes available for each company in order for you to get a endorsements from a majority of the companies

AuHuR (Fri, 25 Aug 2017 12:04:33 GMT):
Has joined the channel.

toddinpal (Fri, 25 Aug 2017 12:40:38 GMT):
@yacovm So what's the expected mechanism to provide a client with enough peers to succeed in in getting a proposal endorsed?

yacovm (Fri, 25 Aug 2017 12:41:02 GMT):
what do you mean enough peers?

yacovm (Fri, 25 Aug 2017 12:41:11 GMT):
a client may use several peers from other orgs oto

yacovm (Fri, 25 Aug 2017 12:41:12 GMT):
*too

toddinpal (Fri, 25 Aug 2017 12:43:04 GMT):
I guess my point is, if a client needs endorsements from 3 other organizations, it needs to know a priori the address of at least 1 peer in each of those organizations

yacovm (Fri, 25 Aug 2017 12:43:23 GMT):
yes.

toddinpal (Fri, 25 Aug 2017 12:44:23 GMT):
Seems very burdensome on the client, plus the issue of peers in an org coming and going... although I suppose the proposed discovery service will help with this

yacovm (Fri, 25 Aug 2017 12:44:46 GMT):
how do you know of that?

yacovm (Fri, 25 Aug 2017 12:44:56 GMT):
and yes - that is the point of that

toddinpal (Fri, 25 Aug 2017 12:45:03 GMT):
discovery service? Jira

yacovm (Fri, 25 Aug 2017 12:45:14 GMT):
I see

toddinpal (Fri, 25 Aug 2017 13:32:12 GMT):
Is there any detailed description of what an anchor peer is and how it functions?

mastersingh24 (Fri, 25 Aug 2017 13:33:26 GMT):
@toddinpal - https://github.com/hyperledger/fabric/blob/release/sampleconfig/configtx.yaml#L120

toddinpal (Fri, 25 Aug 2017 13:34:51 GMT):
So it is only related to the gossip mechanism? Speaking of which, is there a design document describing what the gossip mechanism gossips and what it doesn't?

toddinpal (Fri, 25 Aug 2017 13:38:09 GMT):
@mastersingh24 there seems to be very little information about anchor peers and how they function. Are there plans to update the architecture information to include this?

mastersingh24 (Fri, 25 Aug 2017 13:44:19 GMT):
Probably not the architecture as this is really more of an operations type thing - but yes - we need to include this type of info in a setup / operators guide. The function is literally as simple as indicated in the comments in the YAML

toddinpal (Fri, 25 Aug 2017 13:46:19 GMT):
My issue is more around what is being gossiped and amongst whom is it being gossiped. A design document would be helpful.

Stubey (Fri, 25 Aug 2017 14:37:14 GMT):
Thanks for that looks like a good starting point. I will read the docs and may raise further questions [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e8WnC6XM5hynaYcom) @mastersingh24

mastersingh24 (Fri, 25 Aug 2017 14:49:15 GMT):
I'd suggest pinging this on the #fabric-gossip channel. https://docs.google.com/document/d/157AvKxVRqgeaCTSpN86ICa5x-XihZ67bOrNMc5xLvEU/edit?usp=sharing is the design doc (https://chat.hyperledger.org/channel/fabric-questions?msg=RnmFskbKQLqrb5yYx) @toddinpal

toddinpal (Fri, 25 Aug 2017 17:27:21 GMT):
@mastersingh24 Thanks

mastersingh24 (Fri, 25 Aug 2017 17:27:49 GMT):
sure thing

rcnewman (Sat, 26 Aug 2017 04:04:43 GMT):
Has joined the channel.

rcnewman (Sat, 26 Aug 2017 04:08:52 GMT):
Hi, I'm looking for somewhere to start reading more into, I want to have some records associated with a person, that are only visible to certain people who are allowed. Where should I start looking more?

rcnewman (Sat, 26 Aug 2017 04:25:21 GMT):
My initial thought is for users to store public GPG keys in the ledger. Then a User A can encrypt a record using the User B's public key, which they can then store in the ledger. That way, user B and only user B can unencrypt User A's record? But I was wondering if there was something built in for read permissions

rcnewman (Sat, 26 Aug 2017 04:34:27 GMT):
Okay, I might need to use channels

rcnewman (Sat, 26 Aug 2017 04:34:39 GMT):
Now to figure out how to generate channels on the fly

rcnewman (Sat, 26 Aug 2017 05:01:43 GMT):
is there a limit to the number of channels that are created? and/or performance issues from generating hundreds/thousands of channels?

prhinge1 (Sat, 26 Aug 2017 14:28:06 GMT):
Has joined the channel.

Vrai1127 (Sat, 26 Aug 2017 19:07:52 GMT):
My Question is pretty fundamental. Q is who hosts the network? Does one of the organization host network to get it started and others join the network through peers? Again these peers are running in the network hosted by one organization. So doesn't that mean one of the organization has little more control than others? Actually I'm fine with it if that's how it has to be. I just want to be clear that network is hosted/originated by 1 org, others join the network through proper credentials. But all the components like ledger, couchdb, chaincode etc for each peer are all within that hosted network not in individual's organization own infrastructure.

fintanmcelroy (Sun, 27 Aug 2017 08:04:32 GMT):
Has joined the channel.

vinis (Mon, 28 Aug 2017 06:31:06 GMT):
Has joined the channel.

evader1337 (Mon, 28 Aug 2017 09:13:28 GMT):
Has joined the channel.

msandig (Mon, 28 Aug 2017 11:38:45 GMT):
Has joined the channel.

GuiGui2 (Mon, 28 Aug 2017 12:31:00 GMT):
Has joined the channel.

jmcnevin (Mon, 28 Aug 2017 13:28:21 GMT):
@Vrai1127 My understanding is that the orderer nodes are the only point of necessary centralization right now, because of the kafka-based consensus. Once the PBFT consensus backend is ready, I don't think there's any part of the network that necessarily needs to be controlled by one organization.

ambatigaan (Mon, 28 Aug 2017 15:54:00 GMT):
Hi. blockchain explorer works for fabric v1.0? Can i have the setup instructions in order to plugin to a running fabric blockchain?

hamptonsmith (Mon, 28 Aug 2017 15:54:17 GMT):
When I call GetCreator(), I get back a SerializedIdentity, which contains an MSP-specific blob of identifying information. Based on the description of the default MSP here (http://hyperledger-fabric.readthedocs.io/en/latest/msp.html) am I to assume by default these bytes represent an ASN.1-encoded X.509 certificate suitable to be decoded by https://golang.org/pkg/crypto/x509/#ParseCertificates ?

jeffgarratt (Mon, 28 Aug 2017 16:38:43 GMT):
@hamptonsmith it is a PEM encoded form

hamptonsmith (Mon, 28 Aug 2017 16:41:19 GMT):
@jeffgarratt Aha, thank you!

hamptonsmith (Mon, 28 Aug 2017 16:44:29 GMT):
Is that specified somewhere that I missed, or one of those things you just have to know? Want to make sure I'm getting better about learning the ins and outs of the documentation/codebase so I can find these answers for myself.

jeffgarratt (Mon, 28 Aug 2017 16:49:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B2zYxt8nWbPXgEymp) @hamptonsmith I just happen to know this as I work with the raw protobuf constantly

jeffgarratt (Mon, 28 Aug 2017 16:51:17 GMT):
@hamptonsmith but if you look here -> https://github.com/hyperledger/fabric/blob/release/protos/msp/identities.proto#L31-L32 you can see that this is determined by the associated MSP

jeffgarratt (Mon, 28 Aug 2017 16:52:58 GMT):
@hamptonsmith you may wish to ask for a more complete explanation in #fabric-crypto

hamptonsmith (Mon, 28 Aug 2017 16:56:14 GMT):
@jeffgarratt Thanks again! As I explore I may do just that.

jeffgarratt (Mon, 28 Aug 2017 16:56:29 GMT):
@hamptonsmith your most welcome!

milesc22 (Mon, 28 Aug 2017 17:12:12 GMT):
Has joined the channel.

gauthampamu (Mon, 28 Aug 2017 18:28:02 GMT):
https://chat.hyperledger.org/channel/fabric-consensus?msg=zzW3KJXPE2bwxPces

Vrai1127 (Mon, 28 Aug 2017 22:07:36 GMT):
Could anyone point me to a good read on Permissions and the ACL piece. Is there a mechanism in fabric to control who access what asset and what they could do to that asset. (I want to understand how this is done outside of composer)

SimonOberzan (Tue, 29 Aug 2017 06:50:25 GMT):
Has joined the channel.

SimonOberzan (Tue, 29 Aug 2017 07:03:23 GMT):
HI. I'm trying to setup a multi-host project. I currently run a orderer on one host, and a CA with two peers on the other. When I call user register and enroll it works fine, but when I call create channel it fails at sendBroadcast(). The log on orderer: `[grpc] Printf -> DEBU 0fe transport: http2Server.HandleStreams received bogus greeting from client: "\x16\x03\x01\x00\xc1\x01\x00\x00\xbd\x03\x03\x8d:\x82\x93\xbe\x05H\xe4\x16W:'\x91"`. Does anyone know what could be the problem or if I can somehow intercept the message on orderer so I can see what was recieved? Thanks

rwadhwa (Tue, 29 Aug 2017 10:58:52 GMT):
Hi

rwadhwa (Tue, 29 Aug 2017 11:02:37 GMT):
I have run the bring your first network example. And understood all the components. My question now is How can I add a peer when the existing network is already up? I saw that we have the option of using configtxlator. But it's written somewhere that we can add a new organization by this, and not a new peer. Then how exactly can we add a new peer?

rwadhwa (Tue, 29 Aug 2017 12:36:16 GMT):
My another questions: How do we decide on the number of peer to be kept in the beginning? Because ultimately, peers will be having the Chaincode installed, which holds the business logic.

jeffgarratt (Tue, 29 Aug 2017 15:44:03 GMT):
@rwadhwa this will be dictated by the policies of your application (i.e. the endorsement policy). If your policy requires 2 different entities to endorse, then at a minimum you will require 2 peers in your network.

jeffgarratt (Tue, 29 Aug 2017 15:44:26 GMT):
In general you will want more for the purposes of HA

milesc22 (Tue, 29 Aug 2017 16:19:07 GMT):
Hi. Could someone point me to resources or explain to me how Fabric handles a degraded communication environment where some fully-functional subset of the network’s nodes temporarily loses connectivity to the greater network? In particular, I want to know how a forked blockchain situation is handled once the two portions of the network regain connectivity with one another. Is it a longest chain wins type of deal like in Bitcoin?

IvanSager (Tue, 29 Aug 2017 17:51:50 GMT):
Has joined the channel.

yacovm (Tue, 29 Aug 2017 18:42:29 GMT):
why would there be a fork?

milesc22 (Tue, 29 Aug 2017 19:09:30 GMT):
Why wouldn't there be? If two fully operative segments of the network get disconnected from one another, they could each continue to function independently of one another and while separated they might each extend their respective version of the blockchain with the different transactions. Then, upon regaining connectivity, there would be two different versions of the blockchain that have evolved differently from one another.

milesc22 (Tue, 29 Aug 2017 19:10:21 GMT):
Or am I missing something about the architecture of Fabric that precludes this scenario in the first place?

jeffgarratt (Tue, 29 Aug 2017 21:17:15 GMT):
@milesc22 given the proper endorsement policy settings, this behavior would not be possible. In stead, the chain could not make progress, but this would be the desired outcome.

milesc22 (Tue, 29 Aug 2017 22:06:44 GMT):
Thanks jeffgarratt. Does your answer imply that this situation could still arise currently with improper endorsement policy settings?

jeffgarratt (Tue, 29 Aug 2017 22:17:26 GMT):
@milesc22 no... if the endorsement were to only require a single signature, the orderer would ensure the blocks were propogated similarly to all READERS. When the disconnected portion of the network came back (i.e. reestablished connection(s) to orderer(s) ) it would READ the blocks in the same order as other peers.

jeffgarratt (Tue, 29 Aug 2017 22:20:52 GMT):
in this case, the disconnected org could NOT stop the chain from advancing, but consistency would be maintained across peers (at least from the received blocks perspective)

rwadhwa (Wed, 30 Aug 2017 08:41:51 GMT):
@jeffgarratt Thanks for the reply. Okay, so it depends on the load on the application. Okay, will take care of it. Thanks once again

rwadhwa (Wed, 30 Aug 2017 08:43:22 GMT):
I have another question. Let's say that I have a network already up.. For ex: Bring Your First Network, is it already bringing Fabric CA server up by default with it? I think, No. Can you tell me how do I do it?

jeffgarratt (Wed, 30 Aug 2017 12:53:57 GMT):
@rwadhwa not necessarily the load, but rather that if an organization's endorsement is required and you only have a single peer, then this is considered a single point of failure (SPOF), which in a production environment is undesirable.

jeffgarratt (Wed, 30 Aug 2017 12:54:51 GMT):
with respect to fabric CA, I would refer you to ask more detailed questions in #fabric-ca

milesc22 (Wed, 30 Aug 2017 16:31:11 GMT):
@jeffgarratt Is there only one orderer? I.e., is it not possible for both of the two non-connected segments to advance the chain independently of the other in a mutually inconsistent way that is hard to reconcile upon reconnection?

jeffgarratt (Wed, 30 Aug 2017 16:45:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ekwLuuwNTsn5geqaC) @milesc22 no, in a production environment there are at least 3 orderer nodes, and they are backed by kafka.

milesc22 (Wed, 30 Aug 2017 16:55:06 GMT):
I feel like I must be missing some key piece of information here. Is it that it's not possible for two temporarily disconnected segments of the network to both advance the chain, but rather the network is structured in such a way that only one of them can? I'm basically trying to answer the question, what happens if my network gets split into two where both halves have the ability to advance the chain and they each do so in a way that is inconsistent with what the other did?

milesc22 (Wed, 30 Aug 2017 16:59:59 GMT):
* what happens once they become reconnected

jeffgarratt (Wed, 30 Aug 2017 17:48:30 GMT):
@milesc22 you technically should NOT be able to do this as the orderer assures the proper sequence of block output utilizing kafka/zookeeper for network partition management wrt to orderer internal operation.

jeffgarratt (Wed, 30 Aug 2017 17:52:12 GMT):
if you wish for a more detailed explanation of the actual mechanisms employed you may find more information in #fabric-consensus

milesc22 (Wed, 30 Aug 2017 18:33:14 GMT):
Ok, thanks very much for your help jeffgarratt

ArnabChatterjee (Thu, 31 Aug 2017 02:54:27 GMT):
Hi All, I was going through the link: https://hyperledger-fabric.readthedocs.io/en/latest/msp.html#msp-setup-on-the-peer-orderer-side and really having a hard time understanding the role of each type of certificates that are used in here. Can anyone provide any simpler explanation about MSP and certificates? @smithbk Could you please help me? :)

pine (Thu, 31 Aug 2017 05:47:27 GMT):
Has joined the channel.

leogzl (Thu, 31 Aug 2017 05:52:15 GMT):
Has joined the channel.

jarvis488 (Thu, 31 Aug 2017 07:29:12 GMT):
Has joined the channel.

jarvis488 (Thu, 31 Aug 2017 07:31:21 GMT):
i have fundamental question as i am very new to this my question is there any global instance of hyper-ledger-fabric block-chain available ??

Hangyu (Thu, 31 Aug 2017 08:28:53 GMT):

Message Attachments

Hangyu (Thu, 31 Aug 2017 08:29:58 GMT):
@jeffgarratt It is possible that one peer connects to two different ordering service? I have tried the following case: peer0, peer1 and orderer0 formed channel A, and then peer2, peer 3 and orderer1 formed channel B, Now I want to create new channel with peer1, peer3 and orderer0, but peer3 always tries to get blocks from orderer1 instead of orderer0. thanks in advance.

Hangyu (Thu, 31 Aug 2017 08:30:10 GMT):

Message Attachments

raduciobanu (Thu, 31 Aug 2017 08:45:15 GMT):
Has joined the channel.

ume0202 (Thu, 31 Aug 2017 09:57:34 GMT):
Hi when i do "npm install" while following fabcar example i am getting the error as '''TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Umesh\Hyperledger\f abric-samples\fabcar\node_modules\pkcs11js\build\pkcs11.vcxproj]''' Anyone faced the similar issue.?

Smithatv (Thu, 31 Aug 2017 10:24:32 GMT):
Has joined the channel.

Smithatv (Thu, 31 Aug 2017 10:25:45 GMT):
Hello all, I have been trying to set up a blockchain network with below ACL. * network contains 4(p1,p2,p3,p4) participants * P1 is the leader of the network. Meaning P1 should be able to add other members to the network and should have control of the chain code . * P2 should be validator * P3 can be non-validator but, should still be able to query the chain code * P4 should be able to see only those transactions which are validated by P2 but, not by P1. Can sombody help me with this. Please kindly help me to understand the concept and to set up the network which has the above topology.

smithbk (Thu, 31 Aug 2017 12:12:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7ZGj9LRkeGqinfgL) @ArnabChatterjee Here you go. Hope this helps ... Suppose you have an MSP for ORG1 and a client certificate CLIENT which you need to validate. These directories are used to evaluate policies as follows. 1) ORG1.MEMBER is true if all of the following are true: a) We can build a trust chain between the root CAs in "cacerts" and CLIENT using "intermediatecerts". For example, if CLIENT was issued by I1 in "intermediatecerts" and I1 was issued by R1 in "cacerts", we can build a trust chain. b) If OUs are listed in config.yaml, CLIENT must additionally contain the specified OUs. c) CLIENT is not in "clrs". 2) ORG1.ADMIN is true if all of the following are true: a) CLIENT equals exactly one of the certificates in "admincerts". b) CLIENT is not in "crls" When connecting over TLS to a endpoint that claims to be in ORG1, the TLS client trusts "tlscacerts" and "tlsintermediatecerts" to make sure it is indeed connecting to an endpoint in ORG1.

smithbk (Thu, 31 Aug 2017 12:12:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7ZGj9LRkeGqinfgL) @ArnabChatterjee Here you go. Hope this helps ... Suppose you have an MSP for ORG1 and a client certificate CLIENT which you need to validate. These directories are used to evaluate policies as follows. 1) ORG1.MEMBER is true if all of the following are true: a) We can build a trust chain between the root CAs in "cacerts" and CLIENT using "intermediatecerts". For example, if CLIENT was issued by I1 in "intermediatecerts" and I1 was issued by R1 in "cacerts", we can build a trust chain. b) If OUs are listed in config.yaml, CLIENT must additionally contain the specified OUs. c) CLIENT is not in "clrs". 2) ORG1.ADMIN is true if all of the following are true: a) CLIENT equals exactly one of the certificates in "admincerts". b) CLIENT is not in "crls" When connecting over TLS to a endpoint that claims to be in ORG1, the TLS client trusts "tlscacerts" and "tlsintermediatecerts" to make sure it is indeed connecting to an endpoint in ORG1.

smithbk (Thu, 31 Aug 2017 12:12:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7ZGj9LRkeGqinfgL) @ArnabChatterjee Here you go. Hope this helps ... Suppose you have an MSP for ORG1 and a client certificate CLIENT which you need to validate. These directories are used to evaluate policies as follows.``` 1) ORG1.MEMBER is true if all of the following are true: a) We can build a trust chain between the root CAs in "cacerts" and CLIENT using "intermediatecerts". For example, if CLIENT was issued by I1 in "intermediatecerts" and I1 was issued by R1 in "cacerts", we can build a trust chain. b) If OUs are listed in config.yaml, CLIENT must additionally contain the specified OUs. c) CLIENT is not in "clrs". 2) ORG1.ADMIN is true if all of the following are true: a) CLIENT equals exactly one of the certificates in "admincerts". b) CLIENT is not in "crls" When connecting over TLS to a endpoint that claims to be in ORG1, the TLS client trusts "tlscacerts" and "tlsintermediatecerts" to make sure it is indeed connecting to an endpoint in ORG1.```

smithbk (Thu, 31 Aug 2017 12:14:49 GMT):
@nickgaski Nick, perhaps something similar to ^^^^ could be added to https://hyperledger-fabric.readthedocs.io/en/latest/msp.html#msp-setup-on-the-peer-orderer-side

jeffgarratt (Thu, 31 Aug 2017 14:17:39 GMT):
@Hangyu are the orderers logically separate? Meaning are you running solo and two different ordering system channels?

qizhang (Thu, 31 Aug 2017 18:15:37 GMT):
Hi, can anyone explain what does this `Chat` function do in Fabric? Thanks! `func (p *EventsServer) Chat(stream pb.Events_ChatServer) error`

mastersingh24 (Thu, 31 Aug 2017 18:40:40 GMT):
@qizhang - it's basically the gRPC service itself

mastersingh24 (Thu, 31 Aug 2017 18:40:44 GMT):
It's just called chat

mastersingh24 (Thu, 31 Aug 2017 18:41:01 GMT):
For the eventhub server / service

qizhang (Thu, 31 Aug 2017 18:42:11 GMT):
Thanks @mastersingh24 . For the eventhub, does the server side represent the Fabric that sends out the event, and client side represents the user application that receives the event?

qizhang (Thu, 31 Aug 2017 18:42:11 GMT):
Thanks @mastersingh24 . For the eventhub, does the server side represent the Fabric that sends out the event, and client side represent the user application that receives the event?

mastersingh24 (Thu, 31 Aug 2017 18:42:27 GMT):
You got it

qizhang (Thu, 31 Aug 2017 19:27:32 GMT):
@mastersingh24 There is a`in, err := stream.Recv()` in `Chat()`, and `stream` is defined as `stream pb.Events_ChatServer`. What is Fabric trying to receive here?

qizhang (Thu, 31 Aug 2017 19:27:32 GMT):
@mastersingh24 There is a`in, err := stream.Recv()` in `Chat()`, and `stream` is defined as `stream pb.Events_ChatServer`. Is this `stream` connecting the Fabric server with the user application? What is Fabric trying to receive here?

qizhang (Thu, 31 Aug 2017 19:27:32 GMT):
@mastersingh24 There is a `in, err := stream.Recv()` in `Chat()`, and `stream` is defined as `stream pb.Events_ChatServer`. Is this `stream` connecting the Fabric server with the user application? What is Fabric trying to receive here?

qizhang (Thu, 31 Aug 2017 19:27:32 GMT):
@mastersingh24 There is a `in, err := stream.Recv()` in `Chat()`, and `stream` is defined as `stream pb.Events_ChatServer`. Is this `stream` connecting the Fabric server with the user application? What is Fabric trying to receive here?

qizhang (Thu, 31 Aug 2017 19:34:05 GMT):
@mastersingh24 I am asking this because I am experiencing an error from the peer saying `[eventhub_producer] Chat -> ERRO 087 error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled` during the transaction processing, and I am wondering how to solve it? Thanks!

Vrai1127 (Thu, 31 Aug 2017 19:44:39 GMT):
@mastersingh24 Could you pls help me with this question: Does the read of data has to be through chaincode(methods available through SDK)? Or Could directly query Couchdb or chain data at peer? What is the recommended way and why?

jeffgarratt (Thu, 31 Aug 2017 22:38:44 GMT):
@qizhang this is the standard error when a client breaks its stream with the server. In general it does NOT represent an error within service itself, but rather that the client disconnected

Hangyu (Thu, 31 Aug 2017 23:42:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yTbLjM9Zmdv5m7WXv) @jeffgarratt yes, that's right

Hangyu (Thu, 31 Aug 2017 23:42:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yTbLjM9Zmdv5m7WXv) @jeffgarratt yes, that's right. what can I do to realize this use case? or is this a bug?

qizhang (Fri, 01 Sep 2017 00:11:18 GMT):
@jeffgarratt I am running a client with 64 processes, each process waits for the notifications from the eventhub that a block has been committed. However, many of the processes cannot receive the event notification (in other words, many events got lost). Then I checked the peer logs, and saw many of those `eventhub_producer` errors. Can you advise how to solve it? Thanks!

jeffgarratt (Fri, 01 Sep 2017 00:35:59 GMT):
@Hangyu believe this should technically be possible. Just wondering why you wish to have 2 different ordering systems.

qizhang (Fri, 01 Sep 2017 00:56:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JTcz6TK7B2CrqYGk2) @jeffgarratt Is it possible that the connect was broken from the server side?

qizhang (Fri, 01 Sep 2017 00:56:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JTcz6TK7B2CrqYGk2) @jeffgarratt Is it possible that the connection was broken from the server side?

Hangyu (Fri, 01 Sep 2017 01:03:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R3LSEc74rPYLgXtRD) @jeffgarratt in my use case, two organization (A and B) have already been running their own blockchain network meaning that they have their own ordering system and peer. It is possible some day that the peer of organization A wants to join the channel of organization B. In this case, organization A peer needs to send request to organization B's ordering service. I have tried, but organization A's peer always tries to send request to its own orderering service instead of that of organizationB. Now I am going through source code....thanks for your help:)

jeffgarratt (Fri, 01 Sep 2017 01:35:51 GMT):
@Hangyu would seem that the join channel should adhere to the orderer addresses coming from the block you received from the second orderer.

zasamen (Fri, 01 Sep 2017 08:08:18 GMT):
Has joined the channel.

rhudson (Fri, 01 Sep 2017 13:48:47 GMT):
Hi everyone, I am trying to set up a Fabric demo with multiple organisations. In my setup each organisation has its own root CA both for signing blockchain messages and for TLS and I have come up against the problem of specifying multiple TLS root CAs to peers. Unlike at the corresponding position in orderer.yaml, there only seems to be the possibility to specify a single value under CORE_PEER_TLS_ROOTCERT_FILE in core.yaml. So how do I start a peer with multiple TLS root CAs? I am very new to hyperledger, so apologies in advance if I have misunderstood what is going on. Could it also be that the certificates are actually loaded directly from the MSP path and that I have somehow messed up with the file paths?

mastersingh24 (Fri, 01 Sep 2017 13:59:07 GMT):
@rhudson - The TLS root CAs for each organization are actually distributed as part of the channel configuration. When you create channels, make sure that the MSPs for each organization have a `tlscacerts` folder and place the TLS root CA(s) in there. See https://github.com/hyperledger/fabric/tree/release/sampleconfig/msp for an example structure

mastersingh24 (Fri, 01 Sep 2017 13:59:51 GMT):
`CORE_PEER_TLS_ROOTCERT_FILE` is only used for communication between the peer and chaincode but you'll also want to make sure you configure this property for the peers in each org

DTanna (Fri, 01 Sep 2017 14:07:33 GMT):
Has joined the channel.

yacovm (Fri, 01 Sep 2017 14:08:09 GMT):
@mastersingh24 I think it's also used for priming the TLS config of the peers: ``` // check for root cert if config.GetPath("peer.tls.rootcert.file") != "" { rootCert, err := ioutil.ReadFile(config.GetPath("peer.tls.rootcert.file")) if err != nil { return secureConfig, fmt.Errorf("Error loading TLS root certificate (%s)", err) } secureConfig.ServerRootCAs = [][]byte{rootCert} }

jeffgarratt (Fri, 01 Sep 2017 14:25:08 GMT):
@rhudson you are free to concatenate multiple PEM entries in this file

mastersingh24 (Fri, 01 Sep 2017 14:40:39 GMT):
@yacovm - true enough

yacovm (Fri, 01 Sep 2017 14:42:59 GMT):
I know the guy who wrote that ;)

DTanna (Fri, 01 Sep 2017 14:45:20 GMT):
Hi Everyone, I could run the BYFN but when trying to run the network manually I am running into various problems at various steps. Here with the list of questions: 1. Can I connect other Peers from other host with BYFN? If yes, How? 2. Can I use the BYFN network to connect to the Composer? If yes, How?

DTanna (Fri, 01 Sep 2017 14:45:34 GMT):
Thanks

hobozilla (Fri, 01 Sep 2017 20:29:46 GMT):
Has joined the channel.

mastersingh24 (Fri, 01 Sep 2017 23:27:46 GMT):
@carlskii - There's really nothing special which needs to be done. Neither fabric-peer nor fabric-orderer directly communicate with the CA and the SDKs all have the ability to load keypairs from the filesystem. In terms of the peer and orderer (and MSPs for each org), you need only follow the folder structure for MSPs outlined in the documentation (https://chat.hyperledger.org/channel/general?msg=gvzL8j3jJ6WrhCyLN)

carlskii (Fri, 01 Sep 2017 23:27:46 GMT):
Has joined the channel.

ugmo04 (Fri, 01 Sep 2017 23:28:47 GMT):
Has joined the channel.

rhudson (Sat, 02 Sep 2017 05:31:21 GMT):
Thanks everyone. My channel now works with an orderer and three peers on four separate physical hosts with Docker running on each one. The startup procedure is based on the 'my first network' tutorial and is structured as follows: the genesis block is created on the orderer machine, then sent out of band to the first host which issues the 'peer create channel' command and joins the channel. The configuration block that came into being on the first host is then sent out of band to the second and third hosts who then also use it to join the channel. Everything works, but I am wondering whether I have understood the architecture right: specifically, is all this out of band communication really necessary?

DTanna (Sat, 02 Sep 2017 06:27:09 GMT):
@rhudson : Is it possible for you to share the steps that you followed? I tried followinf the "my first network" but at the step where I have to get the I am getting either the bad request or the channel id mismatch or exiting .... but without the channel-ID.block

rhudson (Sat, 02 Sep 2017 06:56:55 GMT):
@DTanna, as I have only been working on Hyperledger Fabric for a few days myself, I am not really the right person to be giving you advice, but I had a whole sequence of similar problems. The best way to find out what is going on is to use 'docker ps' to display the docker instances running on each machine, then 'docker logs ' to get the logs from the docker VM in question. When I got bad request at this point, I typically found the answer in the logs written by the orderer VM.

DTanna (Sat, 02 Sep 2017 06:58:07 GMT):
@rhudson thanks

jeffgarratt (Sat, 02 Sep 2017 13:52:34 GMT):
@rhudson you can also use 'peer channel fetch config ...' to retrieve the genesis block from each peer itself, and subsequently join using that block.

rhudson (Sat, 02 Sep 2017 16:14:41 GMT):
@jeffgarratt thanks, I thought there must be something like that available.

jeffgarratt (Sat, 02 Sep 2017 16:14:58 GMT):
@rhudson your most welcome!

dave.enyeart (Sat, 02 Sep 2017 16:38:14 GMT):
@Vrai1127 The only APIs to query are within chaincode, this is because some people like to control user access in the chaincode itself. You could expose the CouchDB port and have clients query directly, but many people won't want to open that path up in production environment for security reasons.

Khakhar (Sun, 03 Sep 2017 05:43:30 GMT):
Has joined the channel.

DTanna (Sun, 03 Sep 2017 06:01:03 GMT):
In every scenario that I tried is not generated but always a genesis.block what is going wrong?

DTanna (Sun, 03 Sep 2017 06:04:00 GMT):
It does give "tbcchannel" successfully created but no genesis block with the

AlexAlper (Sun, 03 Sep 2017 11:32:17 GMT):
Has joined the channel.

AlexAlper (Sun, 03 Sep 2017 11:35:25 GMT):
Hi!) I have a question on Hyperledgerr Fabric. When working with a Fabric, should I make my network nodes? Or is it ready, which I can use?

mastersingh24 (Sun, 03 Sep 2017 12:50:54 GMT):
@AlexAlper - Are you new to Fabric? Not sure exactly what you are asking?

mastersingh24 (Sun, 03 Sep 2017 12:52:46 GMT):
@DTanna - Not exactly what you are trying to do / what commands you are running, but `configtxgen -profile TwoOrgsOrdererGenesis -outputBlock WHATEVER.block` will create a genesis block name `WHATEVER.block`

Khakhar (Sun, 03 Sep 2017 15:44:13 GMT):
@jeffgarratt @mastersingh24 What is the best way to edit Genesis.Block? I like to create my own design with seven organizations and multiple peers.

muralisr (Sun, 03 Sep 2017 16:23:57 GMT):
@Khakhar one way to see the contents of genesis block is to use "configtxlator" tool

muralisr (Sun, 03 Sep 2017 16:24:02 GMT):
make configtxlator

muralisr (Sun, 03 Sep 2017 16:24:09 GMT):
configtxlator start

muralisr (Sun, 03 Sep 2017 16:24:38 GMT):
from another window `curl -X POST --data-binary @gb.block http://127.0.0.1:7059/protolator/decode/common.Block`

muralisr (Sun, 03 Sep 2017 16:24:38 GMT):
from another window `curl -X POST --data-binary @your-genesis-block-file http://127.0.0.1:7059/protolator/decode/common.Block`

muralisr (Sun, 03 Sep 2017 16:26:09 GMT):
this will output a JSON file which you can use to build upon. ... configtxlator also supports and `encode` which can be used to generate block from JSON ... (also tagging @jyellick @mastersingh24 )

muralisr (Sun, 03 Sep 2017 16:26:09 GMT):
this will output a JSON file which you can use to build upon. ... configtxlator also supports an `encode` which can be used to generate block from JSON ... (also tagging @jyellick @mastersingh24 )

Vrai1127 (Sun, 03 Sep 2017 17:19:11 GMT):
How do I decide on number of peers for each Organisation. Is there a rule based on # of users to be enrolled?

Vrai1127 (Sun, 03 Sep 2017 17:19:11 GMT):
How do I decide on number of peers for each Organisation. Is there a rule based on # of users to be enrolled? 2) On MSP documentation link http://hyperledger-fabric.readthedocs.io/en/latest/msp.html under best practices scenario :"Multiple organizations using a single MSP". This corresponds to a case of a consortium of organisations that are governed by similar membership architecture. *One needs to know here that peers would propagate organization-scoped messages to the peers that have an identity under the same MSP regardless of whether they belong to the same actual organization.* What does it mean? Anyways on the same channel there is nothing private? If these peers (Organisations) are on different channels but under same MSP would they still receive each other messages?

mastersingh24 (Sun, 03 Sep 2017 17:57:02 GMT):
@Khakhar - Have you taken a look at configtxgen and configtx.yaml? http://hyperledger-fabric.readthedocs.io/en/latest/configtxgen.html

AlexAlper (Sun, 03 Sep 2017 19:52:29 GMT):
@mastersingh24 Yes, I am new. I do not know English well. Should I start my nodes? Or will Fabrik provide its nodes?

mastersingh24 (Sun, 03 Sep 2017 20:12:08 GMT):
So there is no public network or testnet for Hyperledger Fabric. The best way to get started would be to go through the samples which will help set up a local network for you to start development. http://hyperledger-fabric.readthedocs.io/en/latest/samples.html - setting up the samples and getting the Fabric binaries and Docker images http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html - tutorial for setting up a network http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html - tutorial on how to write chaincode (aka smart contracts)

Khakhar (Mon, 04 Sep 2017 04:11:54 GMT):
@mastersingh24 and @muralisr Thanks. I am able to encode and see contents of the Genesis file now. Is it possible to add 7 org and multiple peers in the genesis block? If yes, how.

DTanna (Mon, 04 Sep 2017 04:25:05 GMT):
@mastersingh24 Thanks. How should I interpret this:

DTanna (Mon, 04 Sep 2017 04:26:18 GMT):
For the following CLI commands against peer0.org1.example.com to work, we need to preface our commands with the four environment variables given below. These variables for peer0.org1.example.com are baked into the CLI container, therefore we can operate without passing them. HOWEVER, if you want to send calls to other peers or the orderer, then you will need to provide these values accordingly. Inspect the docker-compose-base.yaml for the specific paths: For communicating with other peers in the network will i modify the cli file looking into the compose-base? or should I modify the compose-base?

DTanna (Mon, 04 Sep 2017 04:27:09 GMT):
with the environment variable mentioned here:

DTanna (Mon, 04 Sep 2017 04:27:10 GMT):
# Environment variables for PEER0 CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt

DTanna (Mon, 04 Sep 2017 04:28:53 GMT):
Can I decode the contents of the channel.tx? if yes how?

DTanna (Mon, 04 Sep 2017 04:35:46 GMT):
@mastersingh24 :root@8f077fb73b5a:/opt/gopath/src/github.com/hyperledger/fabric/peer# export CHANNEL_NAME=tbcchannel root@8f077fb73b5a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/tbcchannel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2017-09-04 04:33:41.679 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-09-04 04:33:41.679 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-09-04 04:33:41.815 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 Can you please help?

DTanna (Mon, 04 Sep 2017 04:39:17 GMT):
All the images have been downloaded this morning...

kapilAtrey (Mon, 04 Sep 2017 06:14:10 GMT):
Has joined the channel.

carlskii (Mon, 04 Sep 2017 10:29:18 GMT):
@mastersingh24 So my CA exposes a REST API. Am I right in my thinking that using the marbles demo as an example, a certificate is requested for each user to determine their identity? If so I would like to configure my CA to issue the identity certs for the users? Calling and key-pairs via my CA's API's seems to be preferable to having them lying around in the file-system.

mastersingh24 (Mon, 04 Sep 2017 10:35:49 GMT):
@carlskii - CAs do not / should not manage the private keys. Not sure which CA you are using, but my guess is that the REST API only supports issuing public X509 certificates and does not manage the private keys?

carlskii (Mon, 04 Sep 2017 10:40:48 GMT):
@mastersingh24 Its not actually a CA as such and it can do both. i.e. accept a CSR for submission to any CA or generate a key-pair and CSR for submission to any CA. Agreed security best practise suggests the CA should never see the private key. My goal is essentially replace the Fabric-CA backend API with our API.

mastersingh24 (Mon, 04 Sep 2017 10:44:57 GMT):
Got it. In any case, as long as the client gets access to the keypair (whether from the filesystem or in memory after an API call) using the keypair within the client would remain the same

carlskii (Mon, 04 Sep 2017 10:56:53 GMT):
@mastersingh24 So where would I change/configure the client to point to a specific API?

mastersingh24 (Mon, 04 Sep 2017 10:58:43 GMT):
Which SDK are you using? Personally, I would just not use the fabric-ca client parts of the SDKs at all. In your actually client, I would just call your API, make sure you get the keypair and then directly use the SDK client APIs to load the keypair returned from your API

carlskii (Mon, 04 Sep 2017 15:10:05 GMT):
@mastersingh24 OK that makes sense. Where do look for the SDK client code/configuration ?

Vrai1127 (Mon, 04 Sep 2017 23:45:57 GMT):
Please advice difference between anchor and leading peer. Are they one and the same thing?

jeffgarratt (Mon, 04 Sep 2017 23:53:04 GMT):
@jarvis488 anchor peer is a concept that is denoted in a channel's configuration block for each organization exposing such functionality. It allows for a a gossip establishment between organizations within a channel. The leader is the term given wrt to the implementation of gossip within a channel for an organization. The leader is responsible for delivering blocks from the orderer service and subsequent dissemination to other members of the established gossip network (non -leaders).

jeffgarratt (Mon, 04 Sep 2017 23:53:04 GMT):
@jarvis488 anchor peer is a concept that is denoted in a channel's configuration block for each organization exposing such functionality. It allows for a a gossip establishment between organizations within a channel. The leader is the term given wrt to the implementation of gossip within a channel for an organization (i.e. a leader is elected dynamically by the peers in the channel within the organization). The leader is responsible for delivering blocks from the orderer service and subsequent dissemination to other members of the established gossip network (non -leaders).

qq597332855 (Tue, 05 Sep 2017 01:07:52 GMT):
Has joined the channel.

qq597332855 (Tue, 05 Sep 2017 01:08:12 GMT):
我试图运行E2E示例org.hyperledger.fabric_ca.sdk.exception.EnrollmentException:Url:http ://10.60.248.32:7054 ,无法注册用户admin 由:org。 apache.http.NoHttpResponseException:10.60.248.32:7054无法响应

qq597332855 (Tue, 05 Sep 2017 02:35:13 GMT):
Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response

qq597332855 (Tue, 05 Sep 2017 02:35:26 GMT):
org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Url:http://10.60.248.32:7054, Failed to enroll user admin

qq597332855 (Tue, 05 Sep 2017 03:37:03 GMT):
Docker server error reporting:TLS oversized record received with length 21536

kutenglaoshu (Tue, 05 Sep 2017 05:47:49 GMT):
Has joined the channel.

ISpoonJelly (Tue, 05 Sep 2017 10:30:46 GMT):
Has joined the channel.

ISpoonJelly (Tue, 05 Sep 2017 10:34:58 GMT):
Hello, I'm new to hyperledger fabric and was trying to implement something so I'm wondering if it is possible. I wanted to extract some statistics from the ledger like the no. of transactions & no. of blocks for certain keys. I knew that there is some function to get the history of transactions for a specific key in the chaincodeInterface, but that returns an iterator that then I'd have to loop on all the transactions ever made for getting a simple count statistic, is there a simpler way to achieve this? can I get more statistics if possible? Thanks in advance

Colonel_HLE (Tue, 05 Sep 2017 11:55:19 GMT):
Has joined the channel.

greg.haskins (Tue, 05 Sep 2017 12:31:37 GMT):
@rjones: where is the hyperledger-archive repos?

rjones (Tue, 05 Sep 2017 12:31:37 GMT):
Has joined the channel.

greg.haskins (Tue, 05 Sep 2017 12:31:42 GMT):
i cant remember the URL and cant find it

greg.haskins (Tue, 05 Sep 2017 12:31:54 GMT):
(looking for the archived chaintool src, specifically

greg.haskins (Tue, 05 Sep 2017 12:32:32 GMT):
nm, found it

rjones (Tue, 05 Sep 2017 12:34:46 GMT):
Ok 😀

nickgaski (Tue, 05 Sep 2017 18:56:28 GMT):
@DTanna - the environment variables section is simply stating that you need to pass four specific arguments for any peer besides `peer0.org1`. The `peer0.org1` variables are baked into the cli container. You can see this by opening up the `docker-compose-cli.yaml` file. For example, to join `peer0.org2` to the channel, you would pass in the following: `CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer channel join -b `

nickgaski (Tue, 05 Sep 2017 18:57:18 GMT):
After you exec into the cli container and send your channel create command, the channel genesis block is returned to the top level directory of the cli container.

nickgaski (Tue, 05 Sep 2017 18:59:09 GMT):
The channel.tx config file is simply an encoded representation of the `TwoOrgsChannel` profile in your `configtx.yaml` file

rjones (Tue, 05 Sep 2017 18:59:38 GMT):
Has left the channel.

SethiSaab (Tue, 05 Sep 2017 21:00:11 GMT):
Has joined the channel.

SethiSaab (Tue, 05 Sep 2017 21:00:26 GMT):
Hi team i am getting error while running ./byfn.sh -m generate command ...... i am new to hyperledger and trying to learn Error on outputBlock: Error writing genesis block: open ./channel-artifacts/genesis.block: no such file or directory Failed to generate orderer genesis block... can anyone help me out

smith (Wed, 06 Sep 2017 02:53:11 GMT):
Has joined the channel.

ShashikumarVishweshwara (Wed, 06 Sep 2017 06:08:45 GMT):
Has joined the channel.

ShashikumarVishweshwara (Wed, 06 Sep 2017 06:10:00 GMT):
Hi Team, when i execute curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts it fails with the following message : echo "===> Pulling fabric Images" dockerFabricPull ${FABRIC_TAG} echo "===> Pulling fabric ca Image" dockerCaPull ${CA_TAG} echo echo "===> List out hyperledger docker images" docker images | grep hyperledger* curl: (7) Failed to connect to port 80: Connection refused curl: (6) Couldn't resolve host 'bash'

ShashikumarVishweshwara (Wed, 06 Sep 2017 06:12:59 GMT):
while i execute ./byfn.sh -m up i get the following error: SVI3KOR@BMHE1023762 MINGW64 /d/Hyperledger-related/binaries/fabric-samples/first -network (release) $ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... ERROR: manifest for hyperledger/fabric-peer:latest not found ERROR !!!! Unable to start network Error response from daemon: No such container: cli

nickgaski (Wed, 06 Sep 2017 11:26:34 GMT):
@ShashikumarVishweshwara - did you follow the getting started instructions here - http://hyperledger-fabric.readthedocs.io/en/latest/samples.html . Clone the `fabric-samples` git repo and then run this command - `curl -sSL https://goo.gl/Gci9ZX | bash` from the top level of that directory. You'll also want to implement the instructions outlined here - http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#windows-extras - if you're running on windows

ShashikumarVishweshwara (Wed, 06 Sep 2017 11:42:36 GMT):
yes i followed the getting started instruction ,when i execute curl on windows 7 i get the following : C:\Users\svi3kor\blockchaintest\fabric-samples>curl -sSL https://goo.gl/Gci9ZX | bash 'bash' is not recognized as an internal or external command, operable program or batch file. C:\Users\svi3kor\blockchaintest\fabric-samples>curl -sSL https://goo.gl/Gci9ZX : bash curl: (6) Could not resolve host: goo.gl curl: (7) Failed to connect to port 80: Connection refused curl: (6) Could not resolve host: bash

DarshanBc (Wed, 06 Sep 2017 12:06:52 GMT):
In FAQ of the document how to I ensure the data privacy has this answer ```within a channel you can restrict the input data to chaincode to the set of endorsers only, by using visibility settings. The visibility setting will determine whether input and output chaincode data is included in the submitted transaction, versus just output data. ``` Can somebody explain this

nickgaski (Wed, 06 Sep 2017 13:27:14 GMT):
@ShashikumarVishweshwara - I don't have a windows machine to test on, but your error seems indicative of an outdated curl version. I'd suggest running a search in this channel and #fabric against `windows` as I'm sure folks have hit this same problem

viswanath.tg (Wed, 06 Sep 2017 13:30:36 GMT):
Has joined the channel.

rcnewman (Wed, 06 Sep 2017 16:47:17 GMT):
Is it possible to have different "user" types with different permissions for reading/writing to the ledger?

rcnewman (Wed, 06 Sep 2017 16:47:21 GMT):
i can't find it in the docs

rcnewman (Wed, 06 Sep 2017 16:47:50 GMT):
UserTypeA can write A, B, and C. UserTypeB can write B, D and E.

rcnewman (Wed, 06 Sep 2017 16:51:50 GMT):
Where A, B, C, D, E are types of transactions

rcnewman (Wed, 06 Sep 2017 16:54:40 GMT):
I believe its related to the MSP, but can't exactly figure out how

mastersingh24 (Wed, 06 Sep 2017 17:05:33 GMT):
@rcnewman - you would need to code this logic in your chaincode

jeffgarratt (Wed, 06 Sep 2017 17:05:41 GMT):
@rcnewman #composer has the functionality

mastersingh24 (Wed, 06 Sep 2017 17:05:58 GMT):
or use #composer as @jeffgarratt mentioned

rcnewman (Wed, 06 Sep 2017 17:06:06 GMT):
@mastersingh24 @jeffgarratt Can you point me to somewhere in the docs where I can read more?

jeffgarratt (Wed, 06 Sep 2017 17:07:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yd9MGwTThP8vFZxFX) @rcnewman https://hyperledger.github.io/composer/

jeffgarratt (Wed, 06 Sep 2017 17:08:19 GMT):
https://hyperledger.github.io/composer/business-network/programmatic-access-control.html

rcnewman (Wed, 06 Sep 2017 17:09:45 GMT):
And if I wanted to do it at the chaincode level?

AlexAlper (Wed, 06 Sep 2017 17:17:51 GMT):
Hi!)

AlexAlper (Wed, 06 Sep 2017 17:17:53 GMT):
Is it possible to write chaincode on JS?

rcnewman (Wed, 06 Sep 2017 17:34:18 GMT):
I can't find anything on how to define access control at the chaincode level within the docs

rcnewman (Wed, 06 Sep 2017 17:40:41 GMT):
I'm trying to avoid adding extra dependencies like #composer if I can

rcnewman (Wed, 06 Sep 2017 17:43:44 GMT):
@AlexAlper Not at the moment

AlexAlper (Wed, 06 Sep 2017 18:06:34 GMT):
thank you

SethiSaab (Wed, 06 Sep 2017 19:35:52 GMT):
Hi team

SethiSaab (Wed, 06 Sep 2017 19:36:53 GMT):
i am trying not able to generate crypto-config.yaml can you please tell me how to generate this file because when i run the command i am getting the following error ./cryptogen generate --config=./crypto-config.yaml cryptogen: error: open ./crypto-config.yaml: no such file or directory, try --help

Fayder (Wed, 06 Sep 2017 20:45:42 GMT):
Has joined the channel.

Fayder (Wed, 06 Sep 2017 20:53:16 GMT):
Is there only one orderer per network?

jeffgarratt (Wed, 06 Sep 2017 21:51:58 GMT):
@Fayder In 'solo' mode yes. But this orderer mode is for development purposes only. In the only current production mode of the ordere (kafka), you should have a minimum of 3 orderer nodes, and the requisite number of kafka and zookeeper nodes.

rcnewman (Thu, 07 Sep 2017 03:07:22 GMT):
Does anyone know of a guide to defining access control at the chaincode level?

ZainozZaini (Thu, 07 Sep 2017 03:25:37 GMT):
Has joined the channel.

ygnr (Thu, 07 Sep 2017 03:35:32 GMT):
Has joined the channel.

raduciobanu (Thu, 07 Sep 2017 03:44:50 GMT):
@rcnewman I was looking for the same thing but .acl composer files is the only thing I found

rcnewman (Thu, 07 Sep 2017 03:45:14 GMT):
I'd rather not add that dependency if possible

raduciobanu (Thu, 07 Sep 2017 03:51:46 GMT):
looking at the API I would assume that you have to build that functionality by yourself

raduciobanu (Thu, 07 Sep 2017 03:51:53 GMT):
the user object has a role field

rcnewman (Thu, 07 Sep 2017 03:51:56 GMT):
I'm going through the Chaincode for developers tutorial. On command: "docker-compose -f docker-compose-simple.yaml up" I'm getting an error ```cli | 2017-09-07 03:50:17.224 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AD7070A0F08021A0608F983C3CD0522...BFBB6ECE9D8155FC3CAC2E282E592CE7 cli | 2017-09-07 03:50:17.224 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: DCC4B28A60327348D16907676FFB1B7014CF4919C458AA96694F6E486500201A cli | Error: Got unexpected status: BAD_REQUEST```

raduciobanu (Thu, 07 Sep 2017 03:53:18 GMT):
most likely you'd have to check/validate access based on the user role, affiliation fields

raduciobanu (Thu, 07 Sep 2017 03:53:23 GMT):
if you don't want to use composer

raduciobanu (Thu, 07 Sep 2017 03:54:20 GMT):
I think I had the same issue with the cli container

jeffgarratt (Thu, 07 Sep 2017 03:54:51 GMT):
@rcnewman check the orderer log

rcnewman (Thu, 07 Sep 2017 03:55:56 GMT):
where would that be?

jeffgarratt (Thu, 07 Sep 2017 03:56:01 GMT):
docker ps -a

jeffgarratt (Thu, 07 Sep 2017 03:56:07 GMT):
find the orderer container...

jeffgarratt (Thu, 07 Sep 2017 03:56:11 GMT):
then ....

jeffgarratt (Thu, 07 Sep 2017 03:56:23 GMT):
```docker logs --tail 100

jeffgarratt (Thu, 07 Sep 2017 03:56:33 GMT):
guessing an error that will give you more info

raduciobanu (Thu, 07 Sep 2017 03:56:48 GMT):
that .sh script that runs when it starts was the issue in my case

rcnewman (Thu, 07 Sep 2017 03:58:08 GMT):
```2017-09-07 03:51:40.099 UTC [orderer/common/broadcast] Handle -> WARN 176 Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: invalid mod_policy for element [Policy] /Channel/Application/Readers: mod_policy not set 2017-09-07 03:51:40.099 UTC [orderer/main] func1 -> DEBU 177 Closing Broadcast stream 2017-09-07 03:51:40.100 UTC [orderer/common/deliver] Handle -> WARN 178 Error reading from stream: rpc error: code = Canceled desc = context canceled 2017-09-07 03:51:40.101 UTC [orderer/main] func1 -> DEBU 179 Closing Deliver stream```

jeffgarratt (Thu, 07 Sep 2017 03:58:20 GMT):
ahhhh

jeffgarratt (Thu, 07 Sep 2017 03:58:32 GMT):
you are using an outdated version of configtxgen perhaps?

jeffgarratt (Thu, 07 Sep 2017 03:58:48 GMT):
are you using the a recent version of the binaries?

rcnewman (Thu, 07 Sep 2017 03:59:17 GMT):
i think so, i installed it all last week following the logs

jeffgarratt (Thu, 07 Sep 2017 03:59:21 GMT):
this was changed a few weeks ago (more stringent checking of mod_policy existence), which was added to configtxgen around then

jeffgarratt (Thu, 07 Sep 2017 03:59:32 GMT):
using a newly created genesisblock?

rcnewman (Thu, 07 Sep 2017 03:59:33 GMT):
maybe 2 weeks ago

jeffgarratt (Thu, 07 Sep 2017 03:59:37 GMT):
ahhhh

jeffgarratt (Thu, 07 Sep 2017 03:59:44 GMT):
I woul rebuild configtxgen

jeffgarratt (Thu, 07 Sep 2017 03:59:52 GMT):
```make configtxgen

jeffgarratt (Thu, 07 Sep 2017 04:00:11 GMT):
and recreate gensisblock (basically run entire example again)

jeffgarratt (Thu, 07 Sep 2017 04:01:52 GMT):
this should address this issue I think

rcnewman (Thu, 07 Sep 2017 04:05:46 GMT):
i cant find where i rebuild configtxgen from

jeffgarratt (Thu, 07 Sep 2017 04:05:53 GMT):
root of repo

jeffgarratt (Thu, 07 Sep 2017 04:06:04 GMT):
.../fabric folder

jeffgarratt (Thu, 07 Sep 2017 04:06:08 GMT):
if you have cloned the repo

rcnewman (Thu, 07 Sep 2017 04:07:03 GMT):
hm... maybe i cloned the wrong repo

jeffgarratt (Thu, 07 Sep 2017 04:07:24 GMT):
```git remote -v

rcnewman (Thu, 07 Sep 2017 04:08:26 GMT):
`origin https://github.com/hyperledger/fabric-samples.git`

jeffgarratt (Thu, 07 Sep 2017 04:08:39 GMT):
ahhh, that is a different repo

raduciobanu (Thu, 07 Sep 2017 04:09:04 GMT):
I think @rcnewman is following the guide in the docs

raduciobanu (Thu, 07 Sep 2017 04:09:15 GMT):
build your first network

jeffgarratt (Thu, 07 Sep 2017 04:10:17 GMT):
ahhhh... k... the error definitely has to do with an out of date genesis block

jeffgarratt (Thu, 07 Sep 2017 04:10:48 GMT):
@rcnewman I have to call it a night. Others may be able to assiste. I will check back in the AM

jeffgarratt (Thu, 07 Sep 2017 04:10:48 GMT):
@rcnewman I have to call it a night. Others may be able to assist. I will check back in the AM

rcnewman (Thu, 07 Sep 2017 04:11:06 GMT):
ah bummer

rcnewman (Thu, 07 Sep 2017 04:11:27 GMT):
trying to learn fabric is making me feel like a first year CS student again

jeffgarratt (Thu, 07 Sep 2017 04:11:43 GMT):
don't lose heart.... it is fairly complicated

jeffgarratt (Thu, 07 Sep 2017 04:11:57 GMT):
if you felt comfortable then I would think you delusional :)

rcnewman (Thu, 07 Sep 2017 04:12:08 GMT):
can you point me to the correct repo quickly before you leave?

jeffgarratt (Thu, 07 Sep 2017 04:12:54 GMT):
not that it is correct, but the main repo (at least github sync) is here... https://github.com/hyperledger/fabric

jeffgarratt (Thu, 07 Sep 2017 04:13:18 GMT):
you will be able to build configtxgen from that

jeffgarratt (Thu, 07 Sep 2017 04:13:27 GMT):
at root of repo (make configtxgen)

jeffgarratt (Thu, 07 Sep 2017 04:13:51 GMT):
good luck!!!

rcnewman (Thu, 07 Sep 2017 04:13:58 GMT):
thank you

raduciobanu (Thu, 07 Sep 2017 04:14:35 GMT):
which tutorial are you following?

rcnewman (Thu, 07 Sep 2017 04:14:42 GMT):
Chaincode for Develoeprs

raduciobanu (Thu, 07 Sep 2017 04:15:45 GMT):
wait a sec, I'll do the same

raduciobanu (Thu, 07 Sep 2017 04:20:05 GMT):
run `docker images`

raduciobanu (Thu, 07 Sep 2017 04:20:11 GMT):
and paste the output here

rcnewman (Thu, 07 Sep 2017 04:20:44 GMT):
```REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-ca latest 5f30bda5f7ee 3 weeks ago 238MB hyperledger/fabric-ca x86_64-1.0.1 5f30bda5f7ee 3 weeks ago 238MB hyperledger/fabric-tools latest 259847d24868 3 weeks ago 1.34GB hyperledger/fabric-tools x86_64-1.0.1 259847d24868 3 weeks ago 1.34GB hyperledger/fabric-couchdb latest dd645e1e92c7 3 weeks ago 1.48GB hyperledger/fabric-couchdb x86_64-1.0.1 dd645e1e92c7 3 weeks ago 1.48GB hyperledger/fabric-kafka latest cbdc916590a0 3 weeks ago 1.3GB hyperledger/fabric-kafka x86_64-1.0.1 cbdc916590a0 3 weeks ago 1.3GB hyperledger/fabric-zookeeper latest eb07e5cc9674 3 weeks ago 1.31GB hyperledger/fabric-zookeeper x86_64-1.0.1 eb07e5cc9674 3 weeks ago 1.31GB hyperledger/fabric-orderer latest bbf2708c9487 3 weeks ago 179MB hyperledger/fabric-orderer x86_64-1.0.1 bbf2708c9487 3 weeks ago 179MB hyperledger/fabric-peer latest abb05def5cfb 3 weeks ago 182MB hyperledger/fabric-peer x86_64-1.0.1 abb05def5cfb 3 weeks ago 182MB hyperledger/fabric-javaenv latest 2bd60859415d 3 weeks ago 1.42GB hyperledger/fabric-javaenv x86_64-1.0.1 2bd60859415d 3 weeks ago 1.42GB hyperledger/fabric-ccenv latest 7e2019cf8174 3 weeks ago 1.29GB hyperledger/fabric-ccenv x86_64-1.0.1 7e2019cf8174 3 weeks ago 1.29GB hyperledger/fabric-tools x86_64-1.0.0 0403fd1c72c7 8 weeks ago 1.32GB hyperledger/fabric-couchdb x86_64-1.0.0 2fbdbf3ab945 8 weeks ago 1.48GB hyperledger/fabric-orderer x86_64-1.0.0 e317ca5638ba 8 weeks ago 179MB hyperledger/fabric-peer x86_64-1.0.0 6830dcd7b9b5 8 weeks ago 182MB hyperledger/fabric-ccenv x86_64-1.0.0 7182c260a5ca 8 weeks ago 1.29GB hyperledger/fabric-ca x86_64-1.0.0 a15c59ecda5b 8 weeks ago 238MB hello-world latest 1815c82652c0 2 months ago 1.84kB hyperledger/fabric-baseos x86_64-0.3.1 4b0cab202084 4 months ago 157MB```

rcnewman (Thu, 07 Sep 2017 04:21:27 GMT):
quite a bit larger than the example showed

raduciobanu (Thu, 07 Sep 2017 04:22:29 GMT):
so i've got the same error like you

raduciobanu (Thu, 07 Sep 2017 04:22:29 GMT):
yay

rcnewman (Thu, 07 Sep 2017 04:22:37 GMT):
at least its not just me!

raduciobanu (Thu, 07 Sep 2017 04:29:10 GMT):
you are in the chaincode-docker-devmode dir right?

raduciobanu (Thu, 07 Sep 2017 04:29:46 GMT):
@rcnewman

rcnewman (Thu, 07 Sep 2017 04:29:53 GMT):
yes

raduciobanu (Thu, 07 Sep 2017 04:30:25 GMT):
I'm telling you what I've discovered so far, hopefully we can find a solution together

raduciobanu (Thu, 07 Sep 2017 04:30:44 GMT):
if you check the .yaml file

raduciobanu (Thu, 07 Sep 2017 04:31:14 GMT):
there's this line `command: /bin/bash -c './script.sh'`

raduciobanu (Thu, 07 Sep 2017 04:31:26 GMT):
at the cli container config

rcnewman (Thu, 07 Sep 2017 04:32:39 GMT):
i see

raduciobanu (Thu, 07 Sep 2017 04:32:54 GMT):
that script is crashing at this line `peer channel create -c myc -f myc.tx -o orderer:7050`

raduciobanu (Thu, 07 Sep 2017 04:32:59 GMT):
when the cli container is started

raduciobanu (Thu, 07 Sep 2017 04:33:07 GMT):
you can check that with some echo statements

raduciobanu (Thu, 07 Sep 2017 04:35:10 GMT):
based on what @jeffgarratt said before, I think the issue is with the myc.tx file

raduciobanu (Thu, 07 Sep 2017 04:36:34 GMT):
question is how to regenerate it

rcnewman (Thu, 07 Sep 2017 04:42:07 GMT):
perhaps change the "peer channel create" to something other than myc?

rcnewman (Thu, 07 Sep 2017 04:45:30 GMT):
that's not it...

raduciobanu (Thu, 07 Sep 2017 04:46:43 GMT):
I'm in the first-network dir now

raduciobanu (Thu, 07 Sep 2017 04:47:05 GMT):
there is a configtx.yaml file

raduciobanu (Thu, 07 Sep 2017 04:49:04 GMT):
which is the config for the configtxgen tool

raduciobanu (Thu, 07 Sep 2017 04:49:09 GMT):
a sample at least...

raduciobanu (Thu, 07 Sep 2017 04:52:32 GMT):
I think I got something

raduciobanu (Thu, 07 Sep 2017 04:52:34 GMT):
@rcnewman

raduciobanu (Thu, 07 Sep 2017 04:52:41 GMT):
here's what I did

raduciobanu (Thu, 07 Sep 2017 04:53:45 GMT):
in the ./first-network dir I ran this `configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID myc`

raduciobanu (Thu, 07 Sep 2017 04:53:59 GMT):
I took this from the byfn.sh file

raduciobanu (Thu, 07 Sep 2017 04:54:22 GMT):
just changed the -channelID param to myc to match our sample

raduciobanu (Thu, 07 Sep 2017 04:54:41 GMT):
that generates a new channel.tx file in the ./channel-artifacts dir

raduciobanu (Thu, 07 Sep 2017 04:54:53 GMT):
copy it to the chaincode-docker-dev dir

raduciobanu (Thu, 07 Sep 2017 04:55:10 GMT):
rename it to myc.tx and try to run the docker-compose command

rcnewman (Thu, 07 Sep 2017 05:00:02 GMT):
hm...

raduciobanu (Thu, 07 Sep 2017 05:00:41 GMT):
docker-compose command doesn't show that error anymore

raduciobanu (Thu, 07 Sep 2017 05:00:50 GMT):
but

rcnewman (Thu, 07 Sep 2017 05:01:16 GMT):
same issue for me

raduciobanu (Thu, 07 Sep 2017 05:01:41 GMT):
really?

rcnewman (Thu, 07 Sep 2017 05:01:48 GMT):
nvm, different error actually

rcnewman (Thu, 07 Sep 2017 05:01:51 GMT):
```2017-09-07 04:59:27.127 UTC [orderer/common/broadcast] Handle -> WARN 0d5 Rejecting CONFIG_UPDATE because: Attempted to include a member which is not in the consortium 2017-09-07 04:59:27.127 UTC [orderer/main] func1 -> DEBU 0d6 Closing Broadcast stream 2017-09-07 04:59:27.129 UTC [orderer/common/deliver] Handle -> WARN 0d7 Error reading from stream: rpc error: code = Canceled desc = context canceled 2017-09-07 04:59:27.129 UTC [orderer/main] func1 -> DEBU 0d8 Closing Deliver stream```

raduciobanu (Thu, 07 Sep 2017 05:03:44 GMT):
yeah..this makes sense, was hoping the configtx.yaml is the same with the one that was used to generate myc.tx

rcnewman (Thu, 07 Sep 2017 05:08:09 GMT):
looks like we might be out of luck

rcnewman (Thu, 07 Sep 2017 05:09:02 GMT):
unless we can reverse engineer the configtx.yaml

rcnewman (Thu, 07 Sep 2017 05:09:05 GMT):
or find it somewhere

raduciobanu (Thu, 07 Sep 2017 05:09:27 GMT):
they didn't provide it for this tutorial..

rcnewman (Thu, 07 Sep 2017 05:13:11 GMT):
okay... i just did a git checkout on the repo, the updated .tx works

rwadhwa (Thu, 07 Sep 2017 05:14:49 GMT):
Hi, I set up a network with 4 peers, 2 orgs, 2 CAs and 1 orderer. I created a channel on peer0, but unable to join it. But, I can join peer 1 to the channel created on peer0. Am I doing something wrong here?

raduciobanu (Thu, 07 Sep 2017 05:16:41 GMT):
@rcnewman you just pulled the repo?

rcnewman (Thu, 07 Sep 2017 05:17:31 GMT):
yeah, seems like the updated repo fixed the tx block

raduciobanu (Thu, 07 Sep 2017 05:17:44 GMT):
lovely

raduciobanu (Thu, 07 Sep 2017 05:17:51 GMT):
should have tried this from the beginning

raduciobanu (Thu, 07 Sep 2017 05:17:51 GMT):
lol

rcnewman (Thu, 07 Sep 2017 05:18:05 GMT):
right?

rcnewman (Thu, 07 Sep 2017 05:18:12 GMT):
:sweat_smile:

raduciobanu (Thu, 07 Sep 2017 05:18:31 GMT):
I got the repo a couple of weeks ago

raduciobanu (Thu, 07 Sep 2017 05:18:50 GMT):
but started working with it a bit later

raduciobanu (Thu, 07 Sep 2017 05:18:55 GMT):
that was the issue

raduciobanu (Thu, 07 Sep 2017 05:19:04 GMT):
and there were some changes in between

rcnewman (Thu, 07 Sep 2017 05:20:40 GMT):
same thing for me

rcnewman (Thu, 07 Sep 2017 05:23:36 GMT):
now I can actually start testing new things!

rcnewman (Thu, 07 Sep 2017 05:24:05 GMT):
:weary:

raduciobanu (Thu, 07 Sep 2017 05:25:02 GMT):
actually I went on and tried the composer tool after I got this issue

raduciobanu (Thu, 07 Sep 2017 05:25:26 GMT):
seems much nicer to work with

rcnewman (Thu, 07 Sep 2017 05:25:45 GMT):
does it complicate the dependencies much?

raduciobanu (Thu, 07 Sep 2017 05:26:31 GMT):
I wouldn't say so, but I'm still playing with it

rcnewman (Thu, 07 Sep 2017 05:28:56 GMT):
ill take a look at it

ZainozZaini (Thu, 07 Sep 2017 06:10:19 GMT):
I followed the samples call fabcar, which is use couchdb as the state database. when i select one of data to view directly from the browser, its shown 'never-end' loading. Can somebody help to explain

ZainozZaini (Thu, 07 Sep 2017 06:10:34 GMT):

Message Attachments

sujitedu (Thu, 07 Sep 2017 07:28:02 GMT):
Has joined the channel.

sujitedu (Thu, 07 Sep 2017 07:28:09 GMT):
Hi, please help me. Is there any UI by which I can monitor occupied storage per block and required time for consensus for every transaction?

sujitedu (Thu, 07 Sep 2017 07:28:09 GMT):
Hi, please help me. Is there any UI or api by which I can monitor occupied storage per block and required time for consensus for every transaction?

rwadhwa (Thu, 07 Sep 2017 08:31:11 GMT):
Hi, My question is related to Channels. When I create a channel I need .tx file for channel block. Now, when I already have a running network, using Node SDK, Will I be able to create a new channel? Because, then I will have to create .tx for the new channel. Can someone throw some light on it? Is my understanding correct here?

zhangchungame (Thu, 07 Sep 2017 10:29:21 GMT):
Has joined the channel.

ume0202 (Thu, 07 Sep 2017 11:11:57 GMT):
Hi, Anyone tried setting up multi node or multi host network using swarm cluster or any other type? Please guide me if you have done that..

Vladimir_Bichev (Thu, 07 Sep 2017 12:33:08 GMT):
Has joined the channel.

rwadhwa (Fri, 08 Sep 2017 05:04:08 GMT):
Hi to Everyone here in this group. Can someone tell me how do I utilise the core.yaml? I don't see it in most of the examples. How exactly is it referred?

raduciobanu (Fri, 08 Sep 2017 06:20:44 GMT):
@rcnewman composer is great! very neat tool!

hncslwx (Fri, 08 Sep 2017 08:17:57 GMT):
Has joined the channel.

cotofei (Fri, 08 Sep 2017 08:52:47 GMT):
Has joined the channel.

Vladimir_Bichev (Fri, 08 Sep 2017 09:17:14 GMT):
Hello! Is it posible in Fabric to use voting-based consensus strategy?

southernseas (Fri, 08 Sep 2017 09:18:38 GMT):
Has joined the channel.

SethiSaab (Fri, 08 Sep 2017 09:28:12 GMT):
Hi team please help me i am new to Fabric . what is the difference between intermediate and root CA's what is the difference btw the responsiblities they handle

SethiSaab (Fri, 08 Sep 2017 09:28:13 GMT):
?

jeffgarratt (Fri, 08 Sep 2017 13:24:47 GMT):
@rwadhwa core.yaml (as well as orderer.yaml) form the basis of configuration for their respective processes (peer/orderer). Every property can be overriden through the use of an Environment variable. In general you will provide values such as storage choice (defaults levelDB), as well as gossip settings for your network.

mauricio.salinas (Fri, 08 Sep 2017 13:29:37 GMT):
Has joined the channel.

a.ochs (Fri, 08 Sep 2017 13:30:09 GMT):
Has joined the channel.

kostas (Fri, 08 Sep 2017 15:03:41 GMT):
Has left the channel.

AlexAlper (Fri, 08 Sep 2017 15:13:51 GMT):
Hi)) I have a question.Can I organize the document flow of the company at the Fabric?

OlegPun (Fri, 08 Sep 2017 16:56:53 GMT):
Has joined the channel.

rwadhwa (Sun, 10 Sep 2017 17:47:09 GMT):
@jeffgarratt Thank You, Jeff, for the information. :)

jon_s (Sun, 10 Sep 2017 17:54:21 GMT):
Has joined the channel.

jeffgarratt (Sun, 10 Sep 2017 18:07:24 GMT):
@rwadhwa your most welcome!

skbodwell (Sun, 10 Sep 2017 19:19:11 GMT):
Has joined the channel.

railninja (Sun, 10 Sep 2017 22:22:34 GMT):
Has joined the channel.

railninja (Sun, 10 Sep 2017 22:24:25 GMT):
Hi all. Can someone help wrap my head around Fabric? I understand it's supposed to be some kind of blockchain hosted on the cloud, but how does it work exactly? What is hosted on the cloud, and what do I get as a user of that service? Thanks

Kyroy (Mon, 11 Sep 2017 08:10:53 GMT):
Has joined the channel.

szlaci1983 (Mon, 11 Sep 2017 10:53:02 GMT):
Has joined the channel.

szlaci1983 (Mon, 11 Sep 2017 10:53:29 GMT):
i guys, as I understand fabric is no the right thing to store big files(pictures for example) so what is the suggested solution? (Store only the ID's on the blockchain, and the actual files on a separate storage? )

vpetryk (Mon, 11 Sep 2017 12:03:05 GMT):
Has joined the channel.

UtkarshSingh (Mon, 11 Sep 2017 12:15:13 GMT):
Hi all. Can someone tell me how to setup Hyperledger Fabric network, every single entity(i.e. peers and orderers) in different PCs ?

detroitpro (Mon, 11 Sep 2017 14:19:21 GMT):
Has joined the channel.

detroitpro (Mon, 11 Sep 2017 14:21:50 GMT):
Hello, I asked a very generic question about Fabric's capabilities, to transfer assets from one type to another, on Stackoverflow. Can anyone help answer this question? https://stackoverflow.com/questions/46136594/can-hyperledger-fabric-support-asset-mutation

soccerhaotian (Tue, 12 Sep 2017 02:10:00 GMT):
Has joined the channel.

PingchengRuan (Tue, 12 Sep 2017 05:13:46 GMT):
Has joined the channel.

PingchengRuan (Tue, 12 Sep 2017 05:13:54 GMT):
Hi, every one. I am a new hander on hyperledger. I have encountered a chaincode deployment problem and posted it on stackoverflow. But until now, there is no answer. Can any one help me? https://stackoverflow.com/questions/46152379/fail-to-instantiate-the-chaincode-in-first-network-of-fabric-samples Thank you very much!!

vpetryk (Tue, 12 Sep 2017 08:51:57 GMT):
Hello ! I tried to invoke chaicode in sequence: Chaincode1:Method1 -> Chaincode2:Method1 -> Chaincode1:Method2 and got an error Is this an issue or expected behavior?

vpetryk (Tue, 12 Sep 2017 08:51:57 GMT):
Hello! I tried to invoke chaicode in sequence: Chaincode1:Method1 -> Chaincode2:Method1 -> Chaincode1:Method2 and got an error Is this an issue or expected behavior?

muralisr (Tue, 12 Sep 2017 12:40:13 GMT):
@vpetryk the framework prevents loops so it is expected to not work

vpetryk (Tue, 12 Sep 2017 13:14:28 GMT):
@muralisr Thank you for the answer!

DennisM330 (Tue, 12 Sep 2017 13:20:50 GMT):
Anyone have any experience and suggestions with setting up a proxy so that it allows grpc traffic

detroitpro (Tue, 12 Sep 2017 13:52:12 GMT):
Has left the channel.

DennisM330 (Tue, 12 Sep 2017 14:03:49 GMT):
or is it a matter of ensuring the internet proxy supports HTTP/2?

nchangfong (Tue, 12 Sep 2017 14:10:49 GMT):
Has joined the channel.

mastersingh24 (Tue, 12 Sep 2017 14:36:20 GMT):
@DennisM330 - It all depends at what layer of the stack you want to proxy. Assuming Layer 7, then yes - minimally you need something which will reverse proxy HTTP/2. Beware that the usual suspects such as nginx and haproxy DO NOT support reverse proxying of HTTP/2 (they do HTTP/2 to HTTP only). There are a few projects out there which claim to be gRPC proxies (the one from etcd looks interesting) but most did not seem mature enough last time I looked. We used nghttp2 for one of our services and it worked like a charm

mastersingh24 (Tue, 12 Sep 2017 14:38:15 GMT):
This does look interesting: https://coreos.com/etcd/docs/latest/op-guide/grpc_proxy.html

Jameslikt (Tue, 12 Sep 2017 15:07:51 GMT):
Has joined the channel.

ArvsIndrarys (Tue, 12 Sep 2017 15:15:51 GMT):
Hi guys ! Apparently, the following command is deprecated in hyperledger/fabric:1.0.2 as it returns me an error (in 1.0.0 it doesn't) ` peer channel create -o testing_orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/testing_orderer.example.com/tls/ca.crt` What is the new command I need to do for the peers to create a channel?

AlexanderEx123 (Tue, 12 Sep 2017 16:53:32 GMT):
Has joined the channel.

AlexanderEx123 (Tue, 12 Sep 2017 16:54:04 GMT):
Hello everyone, anybody know how to perform genesis block upgrade without restart orderer? for example to add new organization

Amit04Patel (Tue, 12 Sep 2017 17:07:22 GMT):
Has joined the channel.

Amit04Patel (Tue, 12 Sep 2017 17:09:02 GMT):
Hello , I am getting the following error on importing "github.com/hyperledger/fabric/events/consumer" in chain code Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/events/consumer: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/events/consumer: cannot find package "github.com/hyperledger/fabric/events/consumer" in any of: /opt/go/src/github.com/hyperledger/fabric/events/consumer (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/events/consumer (from $GOPATH)

Amit04Patel (Tue, 12 Sep 2017 17:09:54 GMT):
any suggestions on how i can resolve this issue?

evanearnest (Tue, 12 Sep 2017 17:34:13 GMT):
Has joined the channel.

evanearnest (Tue, 12 Sep 2017 17:34:27 GMT):
Hi, How to set PATH environment variable for platform-specific binaries in windows after running curl -sSL https://goo.gl/Gci9ZX | bash. I couldnt find the downloaded files in system

nickgaski (Tue, 12 Sep 2017 17:37:46 GMT):
@ArvsIndrarys - channel create is not deprecated. I'm guessing there is an issue reaching your orderer. My supposition would be that you need to use dot notation and cannot use underscores in the container name

nickgaski (Tue, 12 Sep 2017 17:39:06 GMT):
at any rate the command still works against 1.0.2 images

gauthampamu (Tue, 12 Sep 2017 18:09:39 GMT):
I have question on transaction lifecycle. Documentation says peer verifies when transaction proposal are sent to the peer. I have a question on this last verification 4.... How does the peer verify the operation performed on the channel ensures it has the permission to write to channel... Endorsing peers verify signature & execute the transaction The endorsing peers verify (1) that the transaction proposal is well formed, (2) it has not been submitted already in the past (replay-attack protection), (3) the signature is valid (using MSP), and (4) that the submitter (Client A, in the example) is properly authorized to perform the proposed operation on that channel (namely, each endorsing peer ensures that the submitter satisfies the channel’s Writers policy). https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html Let says you submit transaction to peer X for channel B and Peer x has not joined the channel, where does the transaction fail. Will it fail during endorsement or will it fail when it submit the responses from the peers to the orderer.

jeffgarratt (Tue, 12 Sep 2017 18:54:56 GMT):
@gauthampamu the endorsement attempt will fail as the Peer cannot endorse on a channel it has not joined, as this is a pre-req to the chaincode being instantiated on this peer.

jeffgarratt (Tue, 12 Sep 2017 18:54:56 GMT):
@gauthampamu the endorsement attempt will fail as the Peer cannot endorse on a channel it has not joined, as this is a pre-req to the chaincode being instantiated on this peer in this channel (which the peer is unaware of)

Henni (Tue, 12 Sep 2017 22:17:19 GMT):
Has joined the channel.

samwood (Wed, 13 Sep 2017 00:17:48 GMT):
is this document https://github.com/hyperledger/fabric/blob/master/proposals/r1/Next-Consensus-Architecture-Proposal.md up to date? Or is there a similar doc that describes the ordering and consensus in a similar style ?

medhak19 (Wed, 13 Sep 2017 07:03:59 GMT):
In *crypto-config.yaml*, we provide peer org details like, name, domain, no of peers and no of users(in addition to admin) for that org. We can only specify user count for the org and fabric creates the users with names as User1, User2 etc.. Is there a way to specify user name in this file ?

Tin_Vo (Wed, 13 Sep 2017 07:05:03 GMT):
Has joined the channel.

Amit04Patel (Wed, 13 Sep 2017 07:21:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QnFFTfRAdrzMY9Thn) @nickgaski hi i am also facing the same issue as [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vZZoZ4rdu4jG9RAmB) @ArvsIndrarys and I am running the following command peer channel create -o TestOrderer.testOrdr.com:7050 -c mychannel -f ./configtx/channel.tx --tls true --cafile $ORDERER_CA

ArvsIndrarys (Wed, 13 Sep 2017 08:13:01 GMT):
@nickgaski @Amit04Patel I noticed that making them stop, then start doesn't make them recognized within the service (docker service ps the_service shows all containers with replicas : 0/1). But when inspecting the containers and the network they should connect to, they are on the same network. Also, when trying to get the chaincodes containers back, I have a `Error response from daemon: Address already in use` sometimes.

ArvsIndrarys (Wed, 13 Sep 2017 08:16:53 GMT):
pic : https://imgur.com/uCiF1VR

mastersingh24 (Wed, 13 Sep 2017 09:06:29 GMT):
Nope. But note that you can actually use the crypto material in the `ca` folder under each org to spin up a fabric-ca and then you can register/enroll users with any name you like (https://chat.hyperledger.org/channel/fabric-questions?msg=zBrHhL2Tjw5ZCt6Wa) @medhak19

Amit04Patel (Wed, 13 Sep 2017 09:16:17 GMT):
@ArvsIndrarys for me it worked I had to update the cryptogen and configtxgen tool also

Amit04Patel (Wed, 13 Sep 2017 09:16:51 GMT):
no changes in any other file

ArvsIndrarys (Wed, 13 Sep 2017 09:19:11 GMT):
@Amit04Patel Alright thanks ! It is true that I only changed the images in my docker-compose file to the 1.0.2 version. Testing it right away !

ArvsIndrarys (Wed, 13 Sep 2017 09:19:11 GMT):
@Amit04Patel Alright thanks ! It is true that I only changed the images in my docker-compose file to the 1.0.2 version. Testing it right away ! All working

vlad421 (Wed, 13 Sep 2017 10:19:03 GMT):
Has joined the channel.

pd93 (Wed, 13 Sep 2017 16:17:49 GMT):
Hey, I've been getting a few `MVCC_READ_CONFLICT` errors. I'm trying to set up a retry loop, but I keep getting a `NOT_FOUND` status back. Should I be retrying the same request? or creating a completely new request?

s.narayanan (Wed, 13 Sep 2017 16:58:33 GMT):
What is level of support in Fabric 1.0 for cross channel chaincode invocation?

DarshanBc (Wed, 13 Sep 2017 17:10:27 GMT):
Hi I need to know whether the Creators (msp) 2 transactions are same or not only through Transaction IDs without querying transactions any idea how that can be done?

jellevdp (Wed, 13 Sep 2017 19:43:17 GMT):
Has joined the channel.

AryaGhodsi (Wed, 13 Sep 2017 22:13:15 GMT):
Has joined the channel.

AryaGhodsi (Wed, 13 Sep 2017 22:34:11 GMT):
Hi, I am oging to repreat a question that was asked in General here :)

AryaGhodsi (Wed, 13 Sep 2017 22:34:12 GMT):
Hello,Who knows how the file PeerAdmin in the fabric-samples\fabcar\creds produced? The content is as follows: {"name":"PeerAdmin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"cd96d5260ad4757551ed4a5a991e62130f8008a0bf996e4e4b84cd097a747fec","identity":{"certificate":"-----BEGIN CERTIFICATE-----\nMIICGDCCAb+gAwIBAgIQFSxnLAGsu04zrFkAEwzn6zAKBggqhkjOPQQDAjBzMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu\nb3JnMS5leGFtcGxlLmNvbTAeFw0xNzA4MzEwOTE0MzJaFw0yNzA4MjkwOTE0MzJa\nMFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T\nYW4gRnJhbmNpc2NvMR8wHQYDVQQDDBZBZG1pbkBvcmcxLmV4YW1wbGUuY29tMFkw\nEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV1dfmKxsFKWo7o6DNBIaIVebCCPAM9C/\nsLBt4pJRre9pWE987DjXZoZ3glc4+DoPMtTmBRqbPVwYcUvpbYY8p6NNMEswDgYD\nVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgQjmqDc122u64\nugzacBhR0UUE0xqtGy3d26xqVzZeSXwwCgYIKoZIzj0EAwIDRwAwRAIgXMy26AEU\n/GUMPfCMs/nQjQME1ZxBHAYZtKEuRR361JsCIEg9BOZdIoioRivJC+ZUzvJUnkXu\no2HkWiuxLsibGxtE\n-----END CERTIFICATE-----\n"}}}

AryaGhodsi (Wed, 13 Sep 2017 22:34:28 GMT):
(question asked by someone else, but I would very much like to know sa well :))

Jay89 (Wed, 13 Sep 2017 23:12:01 GMT):
Has joined the channel.

Jay89 (Wed, 13 Sep 2017 23:14:00 GMT):
I am trying to create an app with fabric. iv gone through samples etc but i cant seem to find any sample code showing how user login for an app works. Has anyone got any usfful links / code that shows this process. Also the fabric-samples networks do not seem to contain a membership service peer?

mavericklam (Thu, 14 Sep 2017 00:14:07 GMT):
Has joined the channel.

nickgaski (Thu, 14 Sep 2017 00:35:30 GMT):
@AryaGhodsi @Jay89 - I will push a CR tomorrow. In the meantime I suggest looking at the helper.js code in the balance transfer repo

johnfilippone (Thu, 14 Sep 2017 01:36:34 GMT):
Has joined the channel.

johnfilippone (Thu, 14 Sep 2017 01:36:40 GMT):
Is there any way to determine which db (couch or level) a peer is using from inside the chaincode? Reason: How else can we know if it is possible to do ad hoc queries with couch db? And How else can we properly construct the query if ad hoc queries are supported on other db besides couch db in the future?

ShashikumarVishweshwara (Thu, 14 Sep 2017 04:21:26 GMT):
Getting this issue on Windows7 : SVOR@BMH MINGW64 ~/blockchaintest/fabric-samples/first-network (relea se) $ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker. io on [::1]:53: read udp [::1]:49794->[::1]:53: read: connection refused ERROR !!!! Unable to start network Error response from daemon: No such container: cli

WangRM88 (Thu, 14 Sep 2017 05:07:14 GMT):
Has joined the channel.

WangRM88 (Thu, 14 Sep 2017 05:09:39 GMT):
while i go test from fabric-sdk-go/test/integration, i need a libsofthsm2.so from config_test.yaml's BCCSP's libiary ,but i download hsm from its website‘ libsofthsm2.so have not label:"ForFabric" 。 what should i do

WangRM88 (Thu, 14 Sep 2017 05:31:00 GMT):
hello fabric-sdk-go , anybody help ?

nicehyperledger (Thu, 14 Sep 2017 05:31:36 GMT):
Has joined the channel.

nicehyperledger (Thu, 14 Sep 2017 05:33:15 GMT):

Message Attachments

nicehyperledger (Thu, 14 Sep 2017 05:33:40 GMT):
hey any one know why not create Chaincode container in this demo

nicehyperledger (Thu, 14 Sep 2017 05:34:17 GMT):
as I want to access Web UI from 8080 port

nicehyperledger (Thu, 14 Sep 2017 05:34:28 GMT):
can any one help me

nicehyperledger (Thu, 14 Sep 2017 05:35:11 GMT):
as I refer following links https://github.com/IBM-Blockchain-Archive/car-lease-demo/blob/8212bfd1cd434c896747de25fea876f1b3d02bbc/Documentation/Installation%20Guide.md

atiffarrukh (Thu, 14 Sep 2017 06:10:53 GMT):
Has joined the channel.

atiffarrukh (Thu, 14 Sep 2017 06:26:33 GMT):
hello, I need some help regarding running the "First-Network" example. I am following the instructions on http://hyperledger-fabric.readthedocs.io. I am trying to build the first network using "first-network" in the fabric-samples. The `./byfn -m generate` is OK. But when I try to run `./byfn -m up` I am getting `/bin/bash: ./scripts/script.sh: No such file or directory`. I am on Windows 10.

Jay89 (Thu, 14 Sep 2017 06:50:06 GMT):
@AryaGhodsi thankyou

smallX (Thu, 14 Sep 2017 07:17:53 GMT):
i don't know how to achieve **100,000 transactions per second** in a standard production environment. anyone can do that?

WangRM88 (Thu, 14 Sep 2017 07:43:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zHfdtockADz9cNAqw) @WangRM88 i solve it use "softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin *** --pin *** "

MariaHenderson (Thu, 14 Sep 2017 08:17:56 GMT):
Has joined the channel.

MariaHenderson (Thu, 14 Sep 2017 08:27:21 GMT):
Hello. The block chain network of hyperledger fabric 0.6v implemented using Docker with Vagrant. Is there a way to build and run the go file in the Ubuntu environment rather than using these two tools (Docker, Vagrant)? Do you have a homepage that I can refer to? Thank you.

AryaGhodsi (Thu, 14 Sep 2017 08:50:13 GMT):
@nickgaski thanks

johnfilippone (Thu, 14 Sep 2017 09:46:47 GMT):
@ShashikumarVishweshwara port mapping is different for windows 7. You will have to edit the docker-compose file to comply with the way windows does port forwarding

johnfilippone (Thu, 14 Sep 2017 09:47:42 GMT):
Is there any way to determine which db (couch or level) a peer is using from inside the chaincode? Reason: How else can we know if it is possible to do ad hoc queries with couch db? And How else can we properly construct the query if ad hoc queries are supported on other db besides couch db in the future? Any help is appreciated

dave.enyeart (Thu, 14 Sep 2017 09:54:57 GMT):
@johnfilippone When writing your chaincode you have to know what the target state database is you'd like to do queries. But you could attempt to call GetQueryResult() and handle the error if not on couchdb. If ad hoc query is not available to you (e.g. using leveldb) then you will need to create composite keys to support queries, see the example at: https://github.com/hyperledger/fabric/blob/release/examples/chaincode/go/marbles02/marbles_chaincode.go#L208-L214

dave.enyeart (Thu, 14 Sep 2017 09:54:57 GMT):
@johnfilippone When writing your chaincode you have to know what the target state database is if you'd like to do queries. But you could attempt to call GetQueryResult() and handle the error if not on couchdb. If ad hoc query is not available to you (e.g. using leveldb) then you will need to create composite keys to support queries, see the example at: https://github.com/hyperledger/fabric/blob/release/examples/chaincode/go/marbles02/marbles_chaincode.go#L208-L214

ArvsIndrarys (Thu, 14 Sep 2017 09:55:07 GMT):
Hi guys ! I was wondering if the blockchain was permanently stored somewhere by default ? It seems that putting the chaincode down suppresses the data... Do we have to setup a volume to store it permanently?

dave.enyeart (Thu, 14 Sep 2017 09:57:26 GMT):
@ArvsIndrarys yes, see: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#a-note-on-data-persistence

johnfilippone (Thu, 14 Sep 2017 09:59:47 GMT):
@dave.enyeart Thank you.

ArvsIndrarys (Thu, 14 Sep 2017 10:02:14 GMT):
@dave.enyeart thanks ! so the blocks are stored there, as the peers have it. In the case the chaincode is supposed to keep the data too (for example : the value of a room temperature, timestamped), is there a way to tell the chaincode to get the old values when it gets up? Or is this only way via the couchDB?

dave.enyeart (Thu, 14 Sep 2017 10:03:15 GMT):
There is a chaincode API GetHistoryForKey() which will return all the historic values for a key

dave.enyeart (Thu, 14 Sep 2017 10:03:41 GMT):
It pulls the historic values from block storage rather than current state db

dave.enyeart (Thu, 14 Sep 2017 10:04:52 GMT):
https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L152-L164

ArvsIndrarys (Thu, 14 Sep 2017 10:05:51 GMT):
@dave.enyeart Okay perfect ! Thanks a lot, you made me gain an incredible amount of time !

johnfilippone (Thu, 14 Sep 2017 13:37:44 GMT):
Does anyone know the way to get attributes from the tCert from inside the chaincode in v1.0?

johnfilippone (Thu, 14 Sep 2017 13:38:09 GMT):
I use to accomplish this with ReadCertAttribute in v0.6

Colonel_HLE (Thu, 14 Sep 2017 13:57:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WMTjzKM3THqFREipn) @atiffarrukh Hey, I am also doing the "First-Network" example. Ending up with:

Colonel_HLE (Thu, 14 Sep 2017 13:57:21 GMT):
Error: Got unexpected status: BAD_REQUEST

acloudfan (Thu, 14 Sep 2017 16:22:23 GMT):
Has joined the channel.

johnfilippone (Thu, 14 Sep 2017 18:11:00 GMT):
@Colonel_HLE did you check to see that the script is in that directory? Also make sure you run that command from inside of the first-network dir

SethiSaab (Thu, 14 Sep 2017 21:45:50 GMT):
HI team i am getting Autorizaton faliure error while running this command fabric-ca-client enroll -u “http://admin:adminpw@localhost:7054”

SethiSaab (Thu, 14 Sep 2017 21:46:02 GMT):
but i have checked that credentials are correct

ArnabChatterjee (Fri, 15 Sep 2017 02:25:34 GMT):
Hello team. I am using couchDB with Go chaincode and Node SDK. Is there any example where I can encrypt the data in the chaincode itself with public and private key encryption mechanism, so that it can only be read from the chaincode and not from the Fauxton UI? Thanks.

atiffarrukh (Fri, 15 Sep 2017 04:26:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=96KhryJGNLQ5afwDK) @johnfilippone hi, yes i have checked the file is there.

pxuereb (Fri, 15 Sep 2017 05:08:21 GMT):
Has joined the channel.

viswanath.tg (Fri, 15 Sep 2017 05:14:04 GMT):
In channel configuration(configtx) What does Proto Structure refers to?

Colonel_HLE (Fri, 15 Sep 2017 07:01:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=96KhryJGNLQ5afwDK) @johnfilippone byfn.sh starts creating the channel, then it is getting the "default signing identities". Afterwards it throws the Error: BAD_REQUEST. The command "peer channel create" seams not to work. The folder containing "peer" however was correctly added to $PATH and is usable.

Colonel_HLE (Fri, 15 Sep 2017 08:06:22 GMT):
my assumption so far is: the *curl* command form the hyperledger-samples is using an older version of the chaintools

AryaGhodsi (Fri, 15 Sep 2017 08:15:49 GMT):
@nickgaski could you hit me up when you push the CR? (and the location where you push it to :)) thanks!

AryaGhodsi (Fri, 15 Sep 2017 08:17:02 GMT):
@Jay89 if you find out anything, do let me know

Colonel_HLE (Fri, 15 Sep 2017 08:35:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kZkwXdAWQTTGgJxLS) @Colonel_HLE I am still not making progress. I used the *peer* tool from 1.0.2 and from 1.0.0. No success :/

johnfilippone (Fri, 15 Sep 2017 12:18:54 GMT):
Do you have any other containers running? If you do, they might be using port 7050

johnfilippone (Fri, 15 Sep 2017 12:19:20 GMT):
you can do netstat -ltup to see if the port is being used

johnfilippone (Fri, 15 Sep 2017 12:19:36 GMT):
or lsof -i :

johnfilippone (Fri, 15 Sep 2017 12:19:38 GMT):
for mac

johnfilippone (Fri, 15 Sep 2017 12:20:02 GMT):
What operating system are you using?

Colonel_HLE (Fri, 15 Sep 2017 12:45:10 GMT):
I am on macOS v10.12. I have two TCP Sockets listening on that port 7050. (ipv4 and ipv6) Both from the same PID. PID belongs to docker.for.mac.localhost. 'docker network ls' gives me: bridge, host, net_byfn, none at the time of BAD_REQUEST. After bringing down the network net_byfn with '-m down' it is removed as it should be and i end up with bridge, host, none. Networks seem to be okay. What do you think? Really appreciate your help john!

sid_zafar (Fri, 15 Sep 2017 13:00:49 GMT):
Has joined the channel.

nickgaski (Fri, 15 Sep 2017 14:24:17 GMT):
@Colonel_HLE - have you tried the fabcar example? does that work for you? I saw this error earlier in the week with someone running on basically the exact same environment as you. Something fishy is going on with the certificate creation

MaximP (Fri, 15 Sep 2017 14:41:10 GMT):
Has joined the channel.

MaximP (Fri, 15 Sep 2017 14:41:17 GMT):
Hi, everyone. I've seen a video about Hyperledger Fabric and saw an example there about diamonds. It's stunning, but one thing looks wired. It's sad that blockchain contains a high-resolution image of a diamond. Where do these images are stored physically? I mean that the block is not an appropriate place for binary data.

Jay89 (Fri, 15 Sep 2017 15:50:51 GMT):
Still Cannot work out how to create a login for users for my app. would anyone care to explain how i achieve this? (I am new to fabric)

szhman (Fri, 15 Sep 2017 16:44:14 GMT):
Has joined the channel.

AryaGhodsi (Fri, 15 Sep 2017 19:00:50 GMT):
@Jay89 Just wait for @nickgaski to upload and it may be become clear for both of us :)

BlockchainSolutions (Fri, 15 Sep 2017 21:02:22 GMT):
Has joined the channel.

johnfilippone (Sat, 16 Sep 2017 02:41:24 GMT):
@Colonel_HLE my best advice would be to remove all your docker images and redownload them with the curl command given in the tutorial. Reclone the fabric samples repo and try it again.

johnfilippone (Sat, 16 Sep 2017 02:42:55 GMT):
@Colonel_HLE technically you'll have to do the clone first. Have you tried doing the tutorial step by step instead of just trying the script?

johnfilippone (Sat, 16 Sep 2017 02:45:24 GMT):
@MaximP binary data like an image can be stored on the ledger just like any data can. However, there is a consideration that must be made with regards to the size. The ledger data will be replicated on all peers; so it does not make sense to store huge data in the ledger. It makes more sense to store huge data externally and encrypt the data with keys that are saved on the ledger and only accessible through the chaincode

raasiel (Sat, 16 Sep 2017 07:49:10 GMT):
In our network we have 2 endorser nodes. one node has a couch db as external store. When we try to call rich query it fails. But if we set 2 nodes to have 2 different couch dbs then the query is successful. Why is that? Do we need a couchdb in each node to make rich query?

beauson45 (Sat, 16 Sep 2017 12:09:00 GMT):
Has joined the channel.

evanearnest (Sat, 16 Sep 2017 17:49:13 GMT):
Hi, I started fabcar and i am able to query data. Now am trying to start blockchain-monitoring-master >> example >> ./runApp.sh up. But am getting following error. Someone please help me to configure blockchain-monitoring for fabcar 'The container name "/orderer.example.com" is already in use by container "c98cf0e76ae9413d383c1fa41856b87b0fd1d45ad51d561d5d024d0fbfbcec22". You have to remove (or rename) that container to be able to reuse that name.' 'ERROR: for ca_peerOrg1 Cannot start service ca.org1.example.com: driver failed programming external connectivity on endpoint ca_peerOrg1 (1b2a192f6b8e4d627c06327d6f7d716ea6e293dcba9ae63bbe137557b8e90171): Bind for 0.0.0.0:7054 failed: port'

johnfilippone (Sat, 16 Sep 2017 19:43:17 GMT):
@evanearnest run 'docker ps -a' to see all existing containers including the ones that are not running. If you already have one named /orderer.example.com and you want to make a new one, you'll have to delete the old one with 'docker rm [container]'

johnfilippone (Sat, 16 Sep 2017 19:44:19 GMT):
@evanearnest If you get the bind to port failed error it means you have something on your machine running already using that port. Make sure you aren't running any virtual machines or docker containers that have mapped a port to your host port 7050.

nicoj 1 (Sat, 16 Sep 2017 21:30:16 GMT):
Has joined the channel.

rolandnsharp (Sun, 17 Sep 2017 03:28:40 GMT):
Has joined the channel.

AdamLeon (Sun, 17 Sep 2017 04:02:30 GMT):
Has joined the channel.

RezwanKabir (Sun, 17 Sep 2017 10:06:35 GMT):
Has joined the channel.

nicoj 1 (Sun, 17 Sep 2017 10:45:38 GMT):
Hi something I was wondering is: Can I extend the roles (member and admin) of the organizations or do I have to stick with those two? Also: Is there an example on how to implement a client endorsement via a mobile app or something similar? Because I have a small test case (I want to make a secure club vote protocol that takes votes from members who have different stake and rights and I mobile app to vote with). From my understanding I would implement that via the node JS Docker and a Rest Interface for the Apps which is being authenticated with their chain certificates?

nicoj 1 (Sun, 17 Sep 2017 10:45:38 GMT):
Hi something I was wondering is: Can I extend the roles (member and admin) of the organizations or do I have to stick with those two also what is the "certificate literal" (https://hyperledger-fabric.readthedocs.io/en/latest/policies.html) when I want to tie access to a specific client (for example only Alice is allowed to do xy)? Also: Is there an example on how to implement a client endorsement via a mobile app or something similar? Because I have a small test case (I want to make a secure club vote protocol that takes votes from members who have different stake and rights and I mobile app to vote with). From my understanding I would implement that via the node JS Docker and a Rest Interface for the Apps which is being authenticated with their chain certificates?

nicoj 1 (Sun, 17 Sep 2017 10:45:38 GMT):
Hi something I was wondering is: Can I extend the roles (member and admin) of the organizations or do I have to stick with those two also what is the "certificate literal" (https://hyperledger-fabric.readthedocs.io/en/latest/policies.html) when I want to tie access to a specific client (for example only Alice is allowed to do xy)? Also: Is there an example on how to implement a client endorsement via a mobile app or something similar? Because I have a small test case (I want to make a secure club vote protocol that takes votes from members who have different stake and rights and a mobile app to vote with). From my understanding I would implement that via the node JS Docker and a Rest Interface to (at least one of) the peer nodes for the apps which is being authenticated with the clients (f.e. Alice's) chain certificate?

nicoj 1 (Sun, 17 Sep 2017 10:45:38 GMT):
Hi something I hope you could help me with is: Can I extend the roles (member and admin) of the organizations or do I have to stick with those two? Also what is the "certificate literal" (https://hyperledger-fabric.readthedocs.io/en/latest/policies.html) when I want to tie access to a specific client (for example only Alice is allowed to do xy)? Also: Is there an example on how to implement a client endorsement via a mobile app or something similar? Because I have a small test case (I want to make a secure club vote protocol that takes votes from members who have different stake and rights and a mobile app to vote with). From my understanding I would implement that via the node JS Docker and a REST interface to (at least one of) the peer nodes for the apps which is being authenticated with the clients (f.e. Alice's) chain certificate?

evanearnest (Sun, 17 Sep 2017 12:38:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zy88yWpWHqPG7jEpt) @johnfilippone Thanks 4 d reply. Actually my question is how to configure/run blockchain-monitoring for a fabric project (for my case its fabcar)

AlexAlper (Sun, 17 Sep 2017 15:22:56 GMT):

Message Attachments

AlexAlper (Sun, 17 Sep 2017 15:22:59 GMT):
Hi!) Can you help me? I'm doing this lesson: https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

evanearnest (Sun, 17 Sep 2017 17:02:12 GMT):
Hi All, Someone pls help me to configure blockchain-monitoring for my sample fabric appilcation

SethiSaab (Sun, 17 Sep 2017 19:03:40 GMT):
Hiii everyone

SethiSaab (Sun, 17 Sep 2017 19:03:45 GMT):
can somebody pleae help me ?

rolandnsharp (Sun, 17 Sep 2017 23:18:04 GMT):
Hi, I'm trying to work through the first tutorial: first-network and am getting an error when I try to bring up the network with `./byfn.sh -m up`

rolandnsharp (Sun, 17 Sep 2017 23:18:18 GMT):
`!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========`

johnfilippone (Sun, 17 Sep 2017 23:20:49 GMT):
@AlexAlper Did startFabric.sh run without error?

rolandnsharp (Sun, 17 Sep 2017 23:21:01 GMT):
This is my second attempt to complete the tutorial, but the confusing thing is that I got further in the first attempt before encountering an error

johnfilippone (Sun, 17 Sep 2017 23:22:27 GMT):
@rolandnsharp I suggest deleting all your images and using the curl command to download them again fresh. I had a similar situation and that is how I fixed it. However, I do not know what the exact root cause was.

rolandnsharp (Sun, 17 Sep 2017 23:23:19 GMT):
@johnfilippone That's what I did the first time I encountered the error further on in the tutorial

johnfilippone (Sun, 17 Sep 2017 23:24:04 GMT):
what os are you running?

rolandnsharp (Sun, 17 Sep 2017 23:24:09 GMT):
ubuntu

johnfilippone (Sun, 17 Sep 2017 23:26:19 GMT):
I suggest executing each step in the tutorial until it fails to identify the exact step in the script that fails

rolandnsharp (Sun, 17 Sep 2017 23:26:51 GMT):
that's what i did with my first question

johnfilippone (Sun, 17 Sep 2017 23:27:04 GMT):
Is it consistently failing on channel creation?

rolandnsharp (Sun, 17 Sep 2017 23:27:09 GMT):
it's when i attempt to bring up the network

rolandnsharp (Sun, 17 Sep 2017 23:27:28 GMT):
yeah

rolandnsharp (Sun, 17 Sep 2017 23:27:50 GMT):
i'll redo it all again

johnfilippone (Sun, 17 Sep 2017 23:28:27 GMT):
./byfn.sh -m up basically executes everything in the entire tutorial all at once. After that, the tutorial shows you step by step, command by command what byft.sh is doing. You should do those steps and see where it fails.

rolandnsharp (Mon, 18 Sep 2017 00:11:09 GMT):
okay thanks

jon_s (Mon, 18 Sep 2017 06:31:27 GMT):
How peer approves the transaction

jon_s (Mon, 18 Sep 2017 06:31:44 GMT):
Or how to configure peer to validate transaction and apporve it

kapilAtrey (Mon, 18 Sep 2017 07:12:07 GMT):
hi everyone i am just curious in knowing the behind the scenes of a network and stuck on the very first step i.e. * cryptogen generate --config=./crypto-config.yaml * this'll create two directory in the crypto-config folder ( if I consider the first-network ) i.e. ordererOrganization and peerOrganization , it is good it is cool being curious i changed the *ordererOrgs* to *ordererOrg* just wanna know that what factor is responsible for such name of the folders and you know what it is not even making a folder with the name "ordererOrganization" but peerOrganization is all good .can anyone sate my curiousity ?what the hell this cryptogen tool is doing behind the scenes

Colonel_HLE (Mon, 18 Sep 2017 08:39:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p4gPaeQ6Rhe5DnaAr) @johnfilippone I used some *bash sleep* in the script to get the "step by step" approach and give docker enough time to get the containers up. But still fails at *peer channel create*

mastersingh24 (Mon, 18 Sep 2017 10:13:30 GMT):
@Colonel_HLE @rolandnsharp - My advice would be to do the following: 1) Update your clone of the fabric-samples repo 2) From within the fabric-samples folder, re-run the following script `curl -sSL https://goo.gl/Gci9ZX | bash`

AlexAlper (Mon, 18 Sep 2017 10:57:13 GMT):
@johnfilippone Yes. startFabric.sh run run without error.

AlexAlper (Mon, 18 Sep 2017 18:56:11 GMT):
Oh, nooo This Error: Error getting endorser client channel: PER:404 - Error trying to connect to local peer

AlexAlper (Mon, 18 Sep 2017 20:42:49 GMT):

Message Attachments

alix (Tue, 19 Sep 2017 06:29:28 GMT):
Has joined the channel.

Kemodroid (Tue, 19 Sep 2017 06:39:21 GMT):
Has joined the channel.

Colonel_HLE (Tue, 19 Sep 2017 07:33:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cuzvJeCComh3gugjE) @mastersingh24 done that multiple times.. no success

ShashikumarVishweshwara (Tue, 19 Sep 2017 10:39:50 GMT):
while writing chaincode with Go program we have the PutState() and GetState() methods ,if my understanding is right should i be using the PutState method to store the contract or transaction rules example PutState('rules_for_successful',rule1_in_bytes)

ShashikumarVishweshwara (Tue, 19 Sep 2017 10:41:11 GMT):
something like b := []byte("transaction_can_take_place_if_color_green")

ShashikumarVishweshwara (Tue, 19 Sep 2017 10:44:46 GMT):
using putstate method should we be using this method to fill the agreement points between two transacting parties for the transaction to be successful and then using the getstate method to pull the points and verify it, can someone clarify this?

DarshanBc (Tue, 19 Sep 2017 11:21:26 GMT):
can anyone comment more about this example chain-code present in this path https://github.com/hyperledger/fabric/tree/release/examples/chaincode/go/utxo because it speaks about bitcoin type of transaction

ShashikumarVishweshwara (Tue, 19 Sep 2017 11:56:47 GMT):
Where should the conditions for asset transfer be stored ? and also the records of asset transfer? , should this be stored in hyperledger fabric or a database???

DarshanBc (Tue, 19 Sep 2017 11:59:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zxFaCy8L4e36NWyLF) In your chaincode

DarshanBc (Tue, 19 Sep 2017 12:01:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9SxTEGqcN8cbcTtCy) The DB you are using in example is a state DB getState() is used to get the state of a key and PutState() is used to write to an element of a key its simple read write operation

DarshanBc (Tue, 19 Sep 2017 12:02:54 GMT):
@ShashikumarVishweshwara refer this more info https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go

ShashikumarVishweshwara (Tue, 19 Sep 2017 12:03:22 GMT):
So HyperLedger fabric is like oracle database where we store all the required information to it and query it to verify???

DarshanBc (Tue, 19 Sep 2017 12:06:13 GMT):
Hyperledger-Fabric is Blockchain framework which includes StateDb here you can find more info about states http://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html#state

ShashikumarVishweshwara (Tue, 19 Sep 2017 12:10:23 GMT):
So using hyper ledger fabric does not require the usage of any other database , and we can store all the details to it and then query it with key using the getstate method for millions of records millions of keys will be there ,and this will be seen in the code during putstate

ShashikumarVishweshwara (Tue, 19 Sep 2017 12:12:26 GMT):
can hyperledger fabric be considered as a public HashMap which stores the records in key,value format and to query or fetch details we need to know the key?

DarshanBc (Tue, 19 Sep 2017 12:15:38 GMT):
As per my knowledge most of the components in Fabric are pluggable you can even use RocksDb instead of couchDB which you are using currently and ultimately its upto you how you use this framework you can use it just as DB or as Blockchain

msoumeit (Tue, 19 Sep 2017 16:48:44 GMT):
Are there any guidelines for designing blockchain solutions for high volume ( a large number of assets and transactions ) application like Electronic Medical Records?

Jay89 (Tue, 19 Sep 2017 20:07:58 GMT):
when trying to bring up chaincode-docker-devmode im getting "ERROR: manifest for hyperledger/fabric-orderer:latest not found" anyone know how to fix

harlanlc (Tue, 19 Sep 2017 22:32:13 GMT):
Has joined the channel.

harlanlc (Tue, 19 Sep 2017 23:11:03 GMT):
Hello, all! I'm struggling to get up and running with a Kafka based orderer. I'm starting with the example here https://github.com/hyperledger/fabric/blob/master/test/feature/docker-compose/docker-compose-kafka.yml. Using the x86_64-1.0.2 tag for orderer, peer, kafka, zookeeper; and single replica for zk and kafka for POC. The issue is when I try to create a channel (peer channel create), the orderer crashes and I see "producer/broker/0 state change to [open] on loyyalchannel/0" and immediately the error "fatal error: unexpected signal during runtime execution". I have the full stack and am able to consistently reproduce it, any help would be appreciated and of course I'm glad to open a ticket if need be. Thanks

Kemodroid (Wed, 20 Sep 2017 09:20:07 GMT):
Hello people, i am trying to get the fabric up and running on my windows 10 64 bit system. I complete the pre-requisites, and in getting started link it asks to download platform specific binaries (https://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries)...but has the "| bash "at the end of the command.. how will that work in windows ? bash is for linux right ?

Kemodroid (Wed, 20 Sep 2017 09:21:24 GMT):
need your help please

ShashikumarVishweshwara (Wed, 20 Sep 2017 09:38:47 GMT):
@Kemodroid you should run the command from the docker terminal window

Kemodroid (Wed, 20 Sep 2017 09:47:45 GMT):
@ShashikumarVishweshwara thankyou, will try now

ArvsIndrarys (Wed, 20 Sep 2017 10:01:57 GMT):
Hey guys ! I am wondering ; if I have three peers with their chaincode, and my chaincode in Go ask for something like PutState(time.Now()). As the request couldn't be done at the same exact time by all peers, how Hyperledger would react?

leminhy89 (Wed, 20 Sep 2017 10:48:50 GMT):
Has joined the channel.

thomas_p (Wed, 20 Sep 2017 11:48:14 GMT):
Has joined the channel.

johnfilippone (Wed, 20 Sep 2017 14:03:17 GMT):
Has anyone figured out how to use TransientMap?? I cannot get my transient map attributes into my chaincode. Anyone tried to use this feature yet??

JohnWhitton (Wed, 20 Sep 2017 20:59:31 GMT):
Has joined the channel.

qingsongGuo (Thu, 21 Sep 2017 05:00:41 GMT):
Has joined the channel.

DarshanBc (Thu, 21 Sep 2017 11:12:54 GMT):
How many PC do I require to implement balance tranfer on a real PC instead of docker

navaneethaa (Thu, 21 Sep 2017 11:13:02 GMT):
Has joined the channel.

DarshanBc (Thu, 21 Sep 2017 11:13:31 GMT):
How do I implement on real PC ?

xiaxia102102 (Thu, 21 Sep 2017 12:29:08 GMT):
Has joined the channel.

xiaxia102102 (Thu, 21 Sep 2017 12:30:11 GMT):
Organizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts : no such file or directory] 2017-09-21 11:56:58.878 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/o rg1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [ stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory ] 2017-09-21 11:56:58.879 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrga nizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat / opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.e xample.com/users/Admin@org1.example.com/msp/config.yaml: no such file or director y] 2017-09-21 11:56:58.920 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing loca l MSP 2017-09-21 11:56:58.920 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-09-21 11:56:58.921 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A95 070A6708031A0C088AD28ECE0510...6D7963631A0A0A0571756572790A0161 2017-09-21 11:56:58.921 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 9E28524 ED4ED428D2593290CF64A406B6A9D5B1039D18C09BB7633CD0A56BAF9 Error: Error endorsing query: rpc error: code = Unknown desc = could not find cha incode with name 'mycc' - make sure the chaincode mycc has been successfully inst antiated and try again - Usage: peer chaincode query [flags] Flags: -x, --hex If true, output the query value byte array in hexadecimal. Incompat ible with --raw -r, --raw If true, output the query value as raw bytes, otherwise format as a printable string Global Flags: --cafile string Path to file containing PEM-encoded trusted ce rtificate(s) for the ordering endpoint -C, --chainID string The chain on which this command should be exec uted (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode t o be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang")

xiaxia102102 (Thu, 21 Sep 2017 12:30:17 GMT):
!!!!!!!!!!!!!!! Query result on PEER0 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ===============

xiaxia102102 (Thu, 21 Sep 2017 12:30:59 GMT):
how to solve this error ?,guys

mastersingh24 (Thu, 21 Sep 2017 12:53:21 GMT):
@xiaxia102102 - What exactly are you trying to run here? The byfn sample from fabric-samples? Are you running on Windows?

xiaxia102102 (Thu, 21 Sep 2017 12:58:31 GMT):
yes,i I just started learning fabric,and want to run the byfn sample from fabric-samples on ubuntu,

xiaxia102102 (Thu, 21 Sep 2017 12:58:42 GMT):
@mastersingh24

xiaxia102102 (Thu, 21 Sep 2017 13:00:07 GMT):
i can't find the reason...,can you help me ? @mastersingh24

hamptonsmith (Thu, 21 Sep 2017 18:37:19 GMT):
What is the intended mechanism for rich queries against the ledger history? For example, "What was the value associated with key X whenever key Y changed?" Right now this seems to require cooperation between chaincode and the client (perhaps this is a specific deficiency in the node client otherwise supported by the underlying grpc?) The chaincode can give me transaction ids when Y changed, but can't look up the details of the transactions by id, while the client can look up details by transaction id, but can't give me transaction ids when Y changed. The result is an initial chaincode query to get a list of ids, then a bunch of individual lookups of transactions (each incurring a round trip). Should a query like this be "chaincode-y" or "client-y"? And in either case, am I missing something that allows me not to straddle the line?

Kemodroid (Fri, 22 Sep 2017 02:31:39 GMT):
Hello all, I am following this (https://developer.ibm.com/opentech/2016/07/21/running-hyperledger-fabric-natively-on-windows/) to get started with hyperledger in my machine... when i created docker-compose.yml and hit docker-compose up it says "ERROR: manifest for hyperledger/fabric-peer:latest not found"

Kemodroid (Fri, 22 Sep 2017 02:33:49 GMT):
I am new to this, so pardon me if this is a newbie question - docker-compose is to build our own container right - why are we trying to do that here ? shouldnt we be pulling the already existing hyperledger image from docker hub ?

xiaxia102102 (Fri, 22 Sep 2017 03:49:18 GMT):
Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again -

xiaxia102102 (Fri, 22 Sep 2017 03:49:41 GMT):
this questions how can solved? thanks

nickgaski (Fri, 22 Sep 2017 19:11:33 GMT):
@ArvsIndrarys - it's an interesting question. So fabric v1.0 does counter against non-determinism through the transaction flow - endorse->order->validate->commit - so in your scenario this would depend on the endorsement policy. For example, if your policy required a 3/3 agreement from the peers, then the tx would be invalidated at the commit phase if one of the peers endorsed against a different timestamp. The endorsing peers are signing over a read/write set, and thus a signature over a different read/write set will be caught by the validating system chaincode at the validation/commit phase. As such it's recommended to write deterministic functions and not rely on non-static variables such as time

mastersingh24 (Sat, 23 Sep 2017 12:30:17 GMT):
(https://chat.hyperledger.org/channel/general?msg=oYmYfgAxsjJvForw7) @gentios

gentios (Sat, 23 Sep 2017 12:30:17 GMT):
Has joined the channel.

mastersingh24 (Sat, 23 Sep 2017 12:30:42 GMT):
@gentios - we'd need to know a little more about your setup and what you ran

gentios (Sat, 23 Sep 2017 15:24:17 GMT):
I ran this command

gentios (Sat, 23 Sep 2017 15:24:18 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=org1.example.com" -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer0.example.com:7050 -c mychannel -f /var/hyperledger/configs/channel.tx

gentios (Sat, 23 Sep 2017 15:24:24 GMT):
@mastersingh24

gentios (Sat, 23 Sep 2017 15:25:00 GMT):
my peer looks like this: peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_NETWORKID=${CORE_PEER_NETWORKID} - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${CORE_PEER_NETWORKID}_default - CORE_PEER_ID=peer0.org1.example.com - CORE_PEER_ADDRESSAUTODETECT=true - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_MSPCONFIGPATH=/var/hyperledger/msp/peer/ - CORE_PEER_LOCALMSPID=org1.example.com - CORE_LOGGING_LEVEL=DEBUG # TLS settings - CORE_PEER_TLS_ENABLED=false - CORE_PEER_TLS_CERT_FILE=/var/hyperledger/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/var/hyperledger/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/var/hyperledger/tls/ca.crt - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= volumes: - /var/run/:/host/var/run/ - ./configs/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/var/hyperledger/msp/peer - ./configs/peerOrganizations/org1.example.com/users:/var/hyperledger/msp/users - ./configs/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/var/hyperledger/tls - ./configs:/var/hyperledger/configs ports: - '7051' - '7053' depends_on: - orderer0.example.com - orderer1.example.com - orderer2.example.com links: - orderer0.example.com - orderer1.example.com - orderer2.example.com working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start networks: default: aliases: - ${CORE_PEER_NETWORKID}

gentios (Sat, 23 Sep 2017 15:25:21 GMT):
and my orderer looks like this:

gentios (Sat, 23 Sep 2017 15:25:22 GMT):
orderer0.example.com: container_name: orderer0.example.com image: hyperledger/fabric-orderer environment: - ORDERER_GENERAL_LOGLEVEL=debug - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${CORE_PEER_NETWORKID}_default - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/msp - ORDERER_GENERAL_LOCALMSPID=example.com - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_LISTENPORT=7050 - CONFIGTX_ORDERER_ORDERERTYPE=kafka - CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka0:9092,kafka1:9092,kafka2:9092,kafka3:9092] - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFKA_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true - CONFIGTX_ORDERER_ADDRESSES=[127.0.0.1:7050] - ORDERER_GENERAL_LEDGERTYPE=ram - ORDERER_GENERAL_GENESISPROFILE=SampleInsecureKafka - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/configs/orderer.block # TLS settings - ORDERER_GENERAL_TLS_ENABLED=false - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/tls/ca.crt] volumes: - ./configs/:/var/hyperledger/configs - ./configs/ordererOrganizations/example.com/orderers/orderer0.example.com/msp:/var/hyperledger/msp - ./configs/ordererOrganizations/example.com/orderers/orderer0.example.com/tls:/var/hyperledger/tls working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer command: orderer ports: - '7050' depends_on: - kafka0 - kafka1 - kafka2 - kafka3 links: - kafka0:kafka0 - kafka1:kafka1 - kafka2:kafka2 - kafka3:kafka3 networks: default: aliases: - ${CORE_PEER_NETWORKID}

gentios (Sat, 23 Sep 2017 15:43:09 GMT):
could this be because I have modified the configtx to create the channel.tx from this code:

gentios (Sat, 23 Sep 2017 15:43:09 GMT):
SampleInsecureKafka: Orderer: <<: *OrdererDefaults OrdererType: kafka Addresses: - orderer0.example.com:7050 - orderer1.example.com:7050 - orderer2.example.com:7050 Organizations: - *ExampleCom Application: <<: *ApplicationDefaults Organizations: - *ExampleCom Consortiums: SampleConsortium: Organizations: - *ExampleCom - *Org1ExampleCom - *Org2ExampleCom

gentios (Sat, 23 Sep 2017 15:43:13 GMT):
to this code

gentios (Sat, 23 Sep 2017 15:43:31 GMT):
SampleInsecureKafka: Orderer: <<: *OrdererDefaults OrdererType: kafka Addresses: - orderer0.example.com:7050 - orderer1.example.com:7050 - orderer2.example.com:7050 Organizations: - *ExampleCom Application: <<: *ApplicationDefaults Organizations: - *ExampleCom Consortium: SampleConsortium

gentios (Sat, 23 Sep 2017 15:43:57 GMT):
because I didn't know how to run the configtx when there is a hierarchical consortium like the example above

gentios (Sat, 23 Sep 2017 15:44:15 GMT):
@mastersingh24

gentios (Sat, 23 Sep 2017 18:06:36 GMT):
guys now I have another error :D

gentios (Sat, 23 Sep 2017 18:06:38 GMT):
Error: timeout waiting for channel creation

gentios (Sat, 23 Sep 2017 18:23:09 GMT):
```2017-09-23 18:05:42.219 UTC [msp/identity] Sign -> DEBU 867 Sign: digest: BA51075257687A7D89CF685E012E71EB5B7BE4ADF742B5630BD26CC8F435E801 2017-09-23 18:05:42.219 UTC [orderer/ramledger] appendBlock -> DEBU 868 Sending signal that block 0 has a successor 2017-09-23 18:05:42.219 UTC [orderer/multichain] WriteBlock -> DEBU 869 [channel: testchainid] Wrote block 1 2017-09-23 18:05:42.219 UTC [orderer/kafka] processRegular -> DEBU 86a [channel: testchainid] Batch filled, just cut block 1 - last persisted offset is now 3 2017-09-23 18:05:42.218 UTC [orderer/kafka] setupProducerForChannel -> INFO 85b [channel: mychannel] Setting up the producer for this channel... 2017-09-23 18:05:42.219 UTC [orderer/kafka] try -> DEBU 86b [channel: mychannel] Retrying every 1s for a total of 30s 2017-09-23 18:05:42.356 UTC [orderer/common/deliver] Handle -> WARN 86c [channel: mychannel] Rejecting deliver request because of consenter error 2017-09-23 18:05:42.357 UTC [orderer/main] func1 -> DEBU 86d Closing Deliver stream 2017-09-23 18:05:42.361 UTC [orderer/main] Deliver -> DEBU 86e Starting new Deliver handler 2017-09-23 18:05:42.361 UTC [orderer/common/deliver] Handle -> DEBU 86f Starting new deliver loop 2017-09-23 18:05:42.361 UTC [orderer/common/deliver] Handle -> DEBU 870 Attempting to read seek info message 2017-09-23 18:05:42.561 UTC [orderer/common/deliver] Handle -> WARN 871 [channel: mychannel] Rejecting deliver request because of consenter error 2017-09-23 18:05:42.561 UTC [orderer/main] func1 -> DEBU 872 Closing Deliver stream 2017-09-23 18:05:42.564 UTC [orderer/main] Deliver -> DEBU 873 Starting new Deliver handler 2017-09-23 18:05:42.564 UTC [orderer/common/deliver] Handle -> DEBU 874 Starting new deliver loop 2017-09-23 18:05:42.564 UTC [orderer/common/deliver] Handle -> DEBU 875 Attempting to read seek info message 2017-09-23 18:05:42.766 UTC [orderer/common/deliver] Handle -> WARN 876 [channel: mychannel] Rejecting deliver request because of consenter error 2017-09-23 18:05:42.767 UTC [orderer/main] func1 -> DEBU 877 Closing Deliver stream 2017-09-23 18:05:42.770 UTC [orderer/main] Deliver -> DEBU 878 Starting new Deliver handler 2017-09-23 18:05:42.770 UTC [orderer/common/deliver] Handle -> DEBU 879 Starting new deliver loop 2017-09-23 18:05:42.770 UTC [orderer/common/deliver] Handle -> DEBU 87a Attempting to read seek info message 2017-09-23 18:05:42.973 UTC [orderer/common/deliver] Handle -> WARN 87b [channel: mychannel] Rejecting deliver request because of consenter error 2017-09-23 18:05:42.973 UTC [orderer/main] func1 -> DEBU 87c Closing Deliver stream 2017-09-23 18:05:42.976 UTC [orderer/main] Deliver -> DEBU 87d Starting new Deliver handler 2017-09-23 18:05:42.976 UTC [orderer/common/deliver] Handle -> DEBU 87e Starting new deliver loop 2017-09-23 18:05:42.976 UTC [orderer/common/deliver] Handle -> DEBU 87f Attempting to read seek info message 2017-09-23 18:05:43.177 UTC [orderer/common/deliver] Handle -> WARN 880 [channel: mychannel] Rejecting deliver request because of consenter error 2017-09-23 18:05:43.177 UTC [orderer/main] func1 -> DEBU 881 Closing Deliver stream

mariogemoll (Sat, 23 Sep 2017 22:29:37 GMT):
I'm having a huge blocking problem with Fabric, I have been trying to solve this for days but I can't find the solution. The setup of my (sample/demo) network is the following: Two organizations with only one peer each, one (solo) orderer. Everything works fine in a local dev setup (everything on one machine in a docker-compose network) similar to the sample apps. However in production I run this on separate servers. Also here everything works fine, transactions are processed, endorsed, ordered and committed. However, this is only after a fresh deployment. After some minutes of the network running, there's an error like this in the peer's log: ``` 2017-09-23 22:07:37.664 UTC [blocksProvider] DeliverBlocks -> WARN 1e10 [thechannel] Receive error: Attempts (1) or elapsed time (9m13.859571973s) exhausted 2017-09-23 22:07:37.664 UTC [grpc] Printf -> DEBU 1e11 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: operation was canceled"; Reconnecting to {[URL REDACTED]:7050 } 2017-09-23 22:07:37.665 UTC [grpc] Printf -> DEBU 1e12 grpc: addrConn.transportMonitor exits due to: grpc: the connection is closing ``` And this seems to be the point when the network stops functioning. Now transactions still get endorsed and ordered, the orderer produces a block and the logs say "Delivering block", however the blocks don't seem to reach the peers any more. Any idea why this could be? BTW the components (and some additional components for my app) are running as docker containers inside docker (compose) on the servers, ie on each peer server there is a docker-compose setup with a fabric-peer container, and on the orderer server there is a docker-compose system with a fabric-orderer container; maybe this has something to do with it?

mariogemoll (Sat, 23 Sep 2017 22:46:28 GMT):
Could be this (unresolved) error maybe?! https://jira.hyperledger.org/browse/FAB-2787

mariogemoll (Sat, 23 Sep 2017 22:46:43 GMT):
I'm using 1.0.2 btw (also happens with 1.0.1)

yacovm (Sat, 23 Sep 2017 22:48:23 GMT):
the `9m13s` seems odd

mariogemoll (Sat, 23 Sep 2017 22:49:56 GMT):
it's always around 10 minutes

yacovm (Sat, 23 Sep 2017 22:55:27 GMT):
@mastersingh24 you got an idea for the above? The configured `ClientKeepaliveTime` is `5m` in fabric. It seems to me that the peer calls `Recv()` and it "figures out" the stream is dead after `9m` - but shouldn't it detect it after ~ 5 minutes instead of 9 minutes?

mariogemoll (Sat, 23 Sep 2017 23:01:01 GMT):
Also found this: https://jira.hyperledger.org/browse/FAB-5658 Do I understand this correctly: If there is nothing happening for some time on the Fabric (5, 9, 10 minutes or whatever) the connection between the peer and the orderer will be dropped, and because "there is no reconnecting strategy currently" this peer will never again be informed of new blocks?

yacovm (Sat, 23 Sep 2017 23:01:43 GMT):
you don't understand correctly

mariogemoll (Sat, 23 Sep 2017 23:03:09 GMT):
OK can you explain please how it works?

yacovm (Sat, 23 Sep 2017 23:04:23 GMT):
yeah of course

yacovm (Sat, 23 Sep 2017 23:04:29 GMT):
but I also have a proposition for you

mariogemoll (Sat, 23 Sep 2017 23:05:15 GMT):
I'm all ears :)

yacovm (Sat, 23 Sep 2017 23:05:19 GMT):
how is the peer configured with regarding to PEER_GOSSIP_LEADERELECTION ?

mariogemoll (Sat, 23 Sep 2017 23:07:18 GMT):
I've tried several configurations there. Since there's only one peer for each org I actually don't need gossip (right?) so I set CORE_PEER_GOSSIP_LEADERELECTION=false and CORE_PEER_GOSSIP_ORGLEADER=true

yacovm (Sat, 23 Sep 2017 23:09:10 GMT):
right. Try to set it to true

yacovm (Sat, 23 Sep 2017 23:09:15 GMT):
regardless

yacovm (Sat, 23 Sep 2017 23:09:28 GMT):
this might seem counter-intuitive

yacovm (Sat, 23 Sep 2017 23:09:33 GMT):
but I think it might save you easily

yacovm (Sat, 23 Sep 2017 23:11:42 GMT):
I mean, make it the opposite

yacovm (Sat, 23 Sep 2017 23:11:47 GMT):
what now is true - make it false

yacovm (Sat, 23 Sep 2017 23:11:50 GMT):
what now is false, make it true

mariogemoll (Sat, 23 Sep 2017 23:11:51 GMT):
umm okay, but actually the comments in the source code say "orgLeader and useLeaderElection parameters are mutual exclusive. Setting both to true would result in the termination of the peer since this is undefined state." https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L112

yacovm (Sat, 23 Sep 2017 23:11:55 GMT):
do not set both to true at the same time

mariogemoll (Sat, 23 Sep 2017 23:11:57 GMT):
ah ok

yacovm (Sat, 23 Sep 2017 23:12:03 GMT):
forgot to add...

mariogemoll (Sat, 23 Sep 2017 23:14:31 GMT):
OK I changed it now. Redeploying now, I guess we'll know if it works in 10 minutes :D

mariogemoll (Sat, 23 Sep 2017 23:14:55 GMT):
Would you mind telling me why this is a solution in the meantime?

yacovm (Sat, 23 Sep 2017 23:15:03 GMT):
that's the plan

yacovm (Sat, 23 Sep 2017 23:15:12 GMT):
you need to pass these 10 min somehow right?

mariogemoll (Sat, 23 Sep 2017 23:15:22 GMT):
haha yes

yacovm (Sat, 23 Sep 2017 23:15:24 GMT):
so what I _ think _ is happening is:

yacovm (Sat, 23 Sep 2017 23:18:45 GMT):
the connection is broken because of network issues, and since the peer calls `Recv()` and not `Send()` (since.. it waits for blocks) it doesn't detect that since you can't really know you have a broken TCP connection when you read from a socket, *unless* you have TCP keepalive or application level heart-beats. Fabric uses gRPC keepalives and they're configured to fire each 5 minutes. the thing is.... the retry logic of the application layer has a total retry time of 5 minutes (I'm going to take a look at it tomorrow!) https://github.com/hyperledger/fabric/blob/master/core/deliverservice/deliveryclient.go#L32 before it gives up. This was in place before we added the gRPC keepalives, and it made sense back then but I think now we need to crank up the number to something higher.

yacovm (Sat, 23 Sep 2017 23:19:46 GMT):
so I think what happens is that the gRPC detects the inactivity and the broken connection, returns an error but then the retry logic gives up because the accumulated time is higher than 5 minutes.

yacovm (Sat, 23 Sep 2017 23:20:10 GMT):
I think that if we set it to something higher, it will retry connecting and either fail or succeed (both are OK for our case)

yacovm (Sat, 23 Sep 2017 23:20:10 GMT):
I think that if we set it to something higher (i.e 15 min), it will retry connecting and either fail or succeed (both are OK for our case)

yacovm (Sat, 23 Sep 2017 23:20:44 GMT):
you can also do an experiment, you can set the number in the link I posted to something like 15 min and see

mariogemoll (Sat, 23 Sep 2017 23:26:56 GMT):
Thanks for the explanation. I'm using the official docker container images, haven't been playing with the sourcecode itself so far (and would really rather like to concentrate on the chaincode and app development). In any case I think it's vital that broken connections are detected and repaired immediately and not after minutes. I guess most projects so far are proofs of concept etc. so it's pretty common that there's no activity for a long time

mariogemoll (Sat, 23 Sep 2017 23:28:30 GMT):
OK it's been 10 minutes after the last transaction. The error hasn't shown up in the logs any more. I'll try another transaction now...

yacovm (Sat, 23 Sep 2017 23:28:55 GMT):
do you have some load balancer or something?

yacovm (Sat, 23 Sep 2017 23:29:04 GMT):
that kills connection mapping after a few minutes?

mariogemoll (Sat, 23 Sep 2017 23:29:32 GMT):
Oh wow SEEMS TO WORK

mariogemoll (Sat, 23 Sep 2017 23:29:34 GMT):
PHEW

yacovm (Sat, 23 Sep 2017 23:29:48 GMT):
what do you see in the logs?

yacovm (Sat, 23 Sep 2017 23:29:48 GMT):
what do you see in the logs? anything interesting?

mariogemoll (Sat, 23 Sep 2017 23:30:39 GMT):
everything seems to be fine (just as with the first transactions after a fresh deployment)

mariogemoll (Sat, 23 Sep 2017 23:32:12 GMT):
This idle connection killing seems to be something our cloud provider does (would it happen in Bluemix? :D)

mariogemoll (Sat, 23 Sep 2017 23:33:20 GMT):
I still don't really see how the leader election (which happens in-org?!) would prevent the idling of the peer-orderer connection

yacovm (Sat, 23 Sep 2017 23:33:52 GMT):
I'll explain!

yacovm (Sat, 23 Sep 2017 23:34:09 GMT):
leader election determines if your peer will connect to the orderer or not, right?

mariogemoll (Sat, 23 Sep 2017 23:34:26 GMT):
umm yeah I guess

yacovm (Sat, 23 Sep 2017 23:35:11 GMT):
the problem that happens, as I explained (if my theory is correct, and according to your logs I think it is) is that the peer gives up on the connection to the orderer after the inactivity

yacovm (Sat, 23 Sep 2017 23:35:21 GMT):
now, if the peer is alone, it's also a leader

yacovm (Sat, 23 Sep 2017 23:35:31 GMT):
and when a leader sees it can't contact the orderer, it gives up its leadership

yacovm (Sat, 23 Sep 2017 23:35:37 GMT):
and then leader election happens again

yacovm (Sat, 23 Sep 2017 23:35:37 GMT):
and then leader election happens again ;)

yacovm (Sat, 23 Sep 2017 23:35:42 GMT):
;)

yacovm (Sat, 23 Sep 2017 23:36:01 GMT):
it is re-elected as a leader and restores the connection

mariogemoll (Sat, 23 Sep 2017 23:36:40 GMT):
OKAY

mariogemoll (Sat, 23 Sep 2017 23:39:14 GMT):
If so it would be really good if this (and so many other things...) was explained somewhere... anyway it seems to work now, I'll let it run and will try again tomorrow, if it works then I guess the problem is solved. Thanks for your help, you probably saved me a lot of detective work!!!

mariogemoll (Sat, 23 Sep 2017 23:45:46 GMT):
BTW are you aware of any TECHNICAL Fabric Meetups or anything (maybe online?) where one could ask questions and learn about things? The Hyperledger Meetups (in London at least) are usually mostly business-talk

yacovm (Sat, 23 Sep 2017 23:46:54 GMT):
not that I know of, but you're asking questions here, no?

yacovm (Sat, 23 Sep 2017 23:47:05 GMT):
you can ask questions in rocket.chat and in stackoverflow

yacovm (Sat, 23 Sep 2017 23:47:08 GMT):
and in the mailing list

yacovm (Sat, 23 Sep 2017 23:47:29 GMT):
I think meetups aren't good for these kind of situations where you're at right now.

mariogemoll (Sat, 23 Sep 2017 23:51:43 GMT):
Usually it's not that easy to get an answer here. I think hands-on developer meetups would be great.

mariogemoll (Sat, 23 Sep 2017 23:52:03 GMT):
I'm off now, thanks again so much for the great help!!

avi-nyc (Sun, 24 Sep 2017 00:03:26 GMT):
Has joined the channel.

mariogemoll (Sun, 24 Sep 2017 17:24:41 GMT):
@yacovm it still works after letting the network run for a day. Thanks again!! I have another problem that _sometimes_ it takes _some_ peers ages to be informed about a new block (most of the time it's immediate). That's also problematic but not so much as the problem of a peer completely "switching off".

yacovm (Sun, 24 Sep 2017 18:04:22 GMT):
@mariogemoll please translate ages to fabric time

mariogemoll (Sun, 24 Sep 2017 18:37:56 GMT):
Several minutes. I'll monitor and tell you when it occurs again

yacovm (Sun, 24 Sep 2017 19:13:40 GMT):
how many peers do you have btw?

yacovm (Sun, 24 Sep 2017 19:14:02 GMT):
and what is the rate of block production

mariogemoll (Sun, 24 Sep 2017 21:38:19 GMT):
only 2 peers for now

mariogemoll (Sun, 24 Sep 2017 21:38:35 GMT):
blocks are only produced when there are transactions, right?

mariogemoll (Sun, 24 Sep 2017 21:38:48 GMT):
and configtx.yaml says BatchTimeout: 2s

yacovm (Sun, 24 Sep 2017 22:05:50 GMT):
yep

FengChen_1982 (Mon, 25 Sep 2017 03:02:34 GMT):
Has left the channel.

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with 256 tps. I noticed that the peer fails to deliver the evetts for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with 256 tps. I noticed that the peer fails to deliver the evetts for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing What could be the issue here ? Additionally i would like to know the if the in the below link parameters plays an important role ? https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L198

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with rate of 256 tps. I noticed that the peer fails to deliver the evetts for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing What could be the issue here ? Additionally i would like to know the if the in the below link parameters plays an important role ? https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L198

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with rate of 256 tps. I noticed that the peer fails to deliver the events for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing What could be the issue here ? Additionally i would like to know the if the in the below link parameters plays an important role ? https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L198

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with rate of 256 tps. I noticed that the peer fails to deliver the events for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing What could be the issue here ? Additionally i would like to know the if the parameters in the below link plays an important role ? https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L198

niteshsolanki (Mon, 25 Sep 2017 06:32:09 GMT):
Hi. I am doing a load performance test with hyperledger network. Let me first articulate the scenario m trying to do. I have a network of 4 peers and 1 OSN. I have 4 parallel clients to flood the transactions. Each client is sending a total of 3000 txn's with rate of 256 tps. I noticed that the peer fails to deliver the events for the particular transaction the client registers. Error on peer container side is: 2017-09-25 04:50:18.920 UTC [eventhub_producer] Chat -> ERRO 0c0 Error handling message: error sending response to signature:"0D\002 ;\300%n\332\212\327n\000\35 53H$\222\004\364\37540\361\032\367\210\177\035\261.-\023\036&\036\002 \037\177*\ 017\317;\014\214@'\216\026\321\275\003\310\275\220\316\030\365\234\220rV\020\231 \255\377](\020" eventBytes:"*\004\n\002\010\0012\242\006\n\007Org2MSP\022\226\00 6-----BEGIN CERTIFICATE-----\nMIICGTCCAcCgAwIBAgIRAP48omMbKvcj2zJ7R44eyeswCgYIKo ZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG \ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzIuZXhh bXBsZS5jb20wHhcNMTcwNzIxMDEyODEwWhcNMjcwNzE5MDEyODEw\nWjBbMQswCQYDVQQGEwJVUzETMB EGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzEfMB0GA1UEAwwWQWRtaW5A b3JnMi5leGFtcGxlLmNvbTBZ\nMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCDYP9gCWMyekhl3fNWvDj qiDNDjHRLm\nsMjGEWVKpAg94XQy8hsNCra/MerOZtv4O3nVTsLlSQRlcTqNmyR3CDCjTTBLMA4G\nA1 UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIL9Wwj/JF8cY\n00YbLJ3lTnXDZXXo g+gICR4l5NZFIMT5MAoGCCqGSM49BAMCA0cAMEQCIAx73JJJ\n7lfNr/7TBWZ5PTd7IgGnLEq0hQvKIo 6ok2VuAiAnc6Mw53he5ufUaxo6Z+TxUook\nBhS+2eAvmEbQi4UdlQ==\n-----END CERTIFICATE-- ---\n" : rpc error: code = Internal desc = transport is closing What could be the issue here ? Additionally i would like to know the if the parameters in the below link plays an important role OR needs to be configured? https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L198

gentios (Mon, 25 Sep 2017 07:32:27 GMT):
@niteshsolanki with what tool you are doing load testing ?

niteshsolanki (Mon, 25 Sep 2017 07:32:42 GMT):
@gentios caliper framework

hurui777 (Mon, 25 Sep 2017 08:28:02 GMT):
Has joined the channel.

tiennv (Mon, 25 Sep 2017 09:23:30 GMT):
Hi all,

tiennv (Mon, 25 Sep 2017 09:23:57 GMT):
Could you please show me how to tun first-network sample with kafka cluster?

tiennv (Mon, 25 Sep 2017 09:23:57 GMT):
Could you please show me how to run first-network sample with kafka cluster?

gentios (Mon, 25 Sep 2017 09:32:30 GMT):
@tiennv you have some samples here

gentios (Mon, 25 Sep 2017 09:32:31 GMT):
https://github.com/hyperledger/fabric/tree/release/bddtests

gentios (Mon, 25 Sep 2017 09:32:45 GMT):
and here

gentios (Mon, 25 Sep 2017 09:32:45 GMT):
https://github.com/hyperledger/fabric/tree/release/test/feature

gentios (Mon, 25 Sep 2017 09:32:55 GMT):
I have used the second one to

gentios (Mon, 25 Sep 2017 09:32:59 GMT):
run kafka clusters

habpygo (Mon, 25 Sep 2017 10:48:47 GMT):
Hi there, I’m using data persistence with CouchDB. After a `docker-compose down` and `…up` again my Key/Value pairs are preserved, but data like `TxId` and `Timestamp` not. Is this normal? If so, where are the `Block Header, Block Data & Block Metadata` saved; in other words, is the blockchain saved using CouchDB?

toriaezunama (Mon, 25 Sep 2017 12:19:42 GMT):
Has joined the channel.

naruto1982 (Mon, 25 Sep 2017 12:37:19 GMT):
Has left the channel.

gentios (Mon, 25 Sep 2017 12:57:41 GMT):
hi guys, I am trying to get an answer on how to generate the /creds folder which is located in the fabric-samples/fabcar

gentios (Mon, 25 Sep 2017 12:58:05 GMT):
I have created a custom network and I need to generate it for my custom network

gentios (Mon, 25 Sep 2017 12:58:21 GMT):
and don't know how can someone help me out ?

ganbold (Mon, 25 Sep 2017 13:07:47 GMT):
Has joined the channel.

ganbold (Mon, 25 Sep 2017 13:09:49 GMT):
Is it possible to make fabric-sdk-go and fabric run without docker? So when I run peer node start --peer-chaincodedev=true and try again to run make in fabric-idk-go, following error appears: ```2017-09-18 01:32:15.121 ULAST [chaincode] sendReady -> DEBU 656 handler not found for chaincode e1q81biqy3:v0 2017-09-18 01:32:15.121 ULAST [chaincode] Launch -> ERRO 657 sending init failed(handler not found for chaincode e1q81biqy3:v0)``` What could the reason of this error?

tiennv (Mon, 25 Sep 2017 13:40:54 GMT):
@gentios thanks. I'll try it.

nickgaski (Mon, 25 Sep 2017 14:31:43 GMT):
@habpygo - the peer holds the hashchain and the stateDB/worldstate is with your couch container

AlexAlper (Mon, 25 Sep 2017 15:40:57 GMT):
Good day! Can you tell me or at least indicate the direction? You need to organize a blockchain network between the two computers, and with the operation of 1 simple smart contract. Do it on the Fabric. Can you advise something?

yacovm (Mon, 25 Sep 2017 15:41:20 GMT):
check out https://github.com/yacovm/fabricDeployment @AlexAlper

AlexAlper (Mon, 25 Sep 2017 15:42:37 GMT):
@yacovm Ok, thank you

jon_s (Mon, 25 Sep 2017 16:25:04 GMT):
how to i update composer to 0.13 0|composer | Connection fails: Error: Error trying to ping. Error: Composer runtime (0.12.1) is not compatible with client (0.13.0) 0|composer | It will be retried for the next request. 0|composer | Exception: Error: Error trying to ping. Error: Composer runtime (0.12.1) is not compatible with client (0.13.0)

habpygo (Mon, 25 Sep 2017 18:25:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9rcHEeSsh4W7aPZbK) @nickgaski OK, by stopping/restarting the containers instead of removing them, the hashchain remains preserved. Thanks for the help!

habpygo (Mon, 25 Sep 2017 18:25:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9rcHEeSsh4W7aPZbK) @nickgaski OK, by stopping/restarting the containers instead of removing them, the hashchain remains preserved. Thanks for the help! By the way, is there a method or doc you can refer me to that shows a method that takes a `TxId` as parameter and returns the Key/Value pair? For example, I'm using the method `stub.GetHistoryForKey(keyvalue)` but I'm looking for something like `stub.GetHistoryForTx(transactionHash)`

habpygo (Mon, 25 Sep 2017 18:25:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9rcHEeSsh4W7aPZbK) @nickgaski OK, by stopping/restarting the containers instead of removing them, the hashchain remains preserved. Thanks for the help! By the way, is there a method or doc you can refer me to that shows a method that takes a `TxId` as parameter and returns the Key/Value pair?

ArnabChatterjee (Tue, 26 Sep 2017 05:39:10 GMT):
Hello Team, Is there any reason why SDK now communicates over grpc rather than any other protocol like REST and all? Thanks.

DarshanBc (Tue, 26 Sep 2017 05:47:32 GMT):
Is there any Usecase which involves a block is searched by hash or TxID

habpygo (Tue, 26 Sep 2017 06:48:54 GMT):
Exactly my question as well @DarshanBc

benjaminverhaegen (Tue, 26 Sep 2017 07:14:13 GMT):
Has joined the channel.

benjaminverhaegen (Tue, 26 Sep 2017 07:14:16 GMT):
Hello, does somebody know where to find a good tutorial for setting up a multinode network between different physical machines?

yacovm (Tue, 26 Sep 2017 07:38:29 GMT):
@benjaminverhaegen I don't have a tutorial but I have a script that does all the work for you https://github.com/yacovm/fabricDeployment

benjaminverhaegen (Tue, 26 Sep 2017 07:44:37 GMT):
@yacovm thanks, i'll try this one.

ganbold (Tue, 26 Sep 2017 07:49:33 GMT):
@yacovm looks like, I wish there were such an easy way to build network without docker

ganbold (Tue, 26 Sep 2017 07:49:33 GMT):
@yacovm looks nice, I wish there were such an easy way to build network without docker

yacovm (Tue, 26 Sep 2017 07:50:08 GMT):
it doesn't use docker

yacovm (Tue, 26 Sep 2017 07:50:24 GMT):
... it deploys using ssh to the VM itself and runs everything as a binary

ganbold (Tue, 26 Sep 2017 07:50:30 GMT):
I mean for chaincode validation etc.

ganbold (Tue, 26 Sep 2017 07:50:59 GMT):
and install.sh installs docker etc on hosts

yacovm (Tue, 26 Sep 2017 07:52:21 GMT):
it installs docker, because the build process uses docker

ganbold (Tue, 26 Sep 2017 07:54:15 GMT):
@yacovm yeah, it would be really great if it doesn't require docker and docker-compose

yacovm (Tue, 26 Sep 2017 07:54:27 GMT):
why?

yacovm (Tue, 26 Sep 2017 07:55:24 GMT):
having the build in docker enables you to prevent all the build problems that are related to your own environment

ganbold (Tue, 26 Sep 2017 07:56:00 GMT):
@yacovm because some OS like FreeBSD is different

yacovm (Tue, 26 Sep 2017 07:56:27 GMT):
ah I see

yacovm (Tue, 26 Sep 2017 07:56:44 GMT):
I guess you can always... `scp` the peer and orderer binaries to the server

ganbold (Tue, 26 Sep 2017 07:57:26 GMT):
@yacovm yeah, only docker part is the problem other than that it is Go so runs ok in FreeBSD

ganbold (Tue, 26 Sep 2017 08:00:03 GMT):
@yacovm https://matiasaguirre.com/posts/docker-on-freebsd/

ganbold (Tue, 26 Sep 2017 08:00:20 GMT):
@yacovm not sure whether it is worth try or not :)

benjaminverhaegen (Tue, 26 Sep 2017 08:53:26 GMT):
@yacovm can i use ip of the virtual machines as hostname? because all the vm's have the same hostname (full cloned vm's)

habpygo (Tue, 26 Sep 2017 08:53:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T6JDr5X6ArmSAomXZ) @DarshanBc Not a use case, but info about methods how to query the blocks. Hope this helps. https://blockchain-fabric.blogspot.nl/2017/09/three-component-maintained-by-ledger-in.html?showComment=1506415842219

benjaminverhaegen (Tue, 26 Sep 2017 08:57:59 GMT):
@yacovm nevermind, just changed the hostnames

mariogemoll (Tue, 26 Sep 2017 10:05:37 GMT):
@yacovm another follow-up on the dropped TCP/GRPCS connection issue: Unfortunately your trick with the single peer leader election also didn't work reliably all of the time. I then found out the timeout for idle TCP connections in our cloud environment is actually 4 minutes, too early for the keepalive after 5 minutes. It can be changed, however after I set it to 12 minutes there were still dropped connections which resulted in "hiccups" in the block distribution. I have implemented a sort of application-level keepalive now: Every minute a dummy transaction which sets some state value is invoked which results in a block being created and delivered. Quite hacky, but at least all nodes stay alive and responsive now.

yacovm (Tue, 26 Sep 2017 10:13:22 GMT):
@mariogemoll how bout you collect some tcpdump traffic for me?

yacovm (Tue, 26 Sep 2017 10:13:49 GMT):
If it's TLS it should be fine

yacovm (Tue, 26 Sep 2017 10:14:22 GMT):
And also peer logs

mariogemoll (Tue, 26 Sep 2017 10:22:01 GMT):
Yes TLS, it's only a demo network anyway. Thanks for the offer! Unfortunately I cannot change the current system right now to reproduce the error. Atm I don't have the time to set up a separate network and I'm going on holiday in a few days. If I find the time afterwards I'll try to reproduce the bug and send you the logs!

mauricio.salinas (Tue, 26 Sep 2017 16:11:29 GMT):
marbles version 4.0 doesn't include the instructions for the marble network, just test the fabcar sample, and in github repository version 3.0 i see the same has version 4.0. Any help, please ?

gauthampamu (Tue, 26 Sep 2017 17:20:55 GMT):
I have a question on the transaction when you don't specify the endorsement policy. https://chat.hyperledger.org/channel/fabric-sdk-node?msg=vhFHthbBHTdmcrL6S

nickgaski (Tue, 26 Sep 2017 23:58:12 GMT):
@gauthampamu - the policies exist within the scope of an organization; for example `ORG1.member , ORG2.member` (note you can also specify admin). But to your question, the policy is only after one endorsement per org. So within the current codebase it will still be fulfilled as long as one of the org's peers is reachable

nickgaski (Tue, 26 Sep 2017 23:58:50 GMT):
assuming they are joined to channel, have the correct cc version installed/instantiated, etc...

DarshanBc (Wed, 27 Sep 2017 02:21:06 GMT):
I need to join another organization to my network of channel xyz dynamically where already 2orgs exist org3 have their own set of functionalities p,q,r written in chaincode how to make these new functionalities available for the members of org1 and org2

slender (Wed, 27 Sep 2017 05:53:46 GMT):
Has joined the channel.

benjaminverhaegen (Wed, 27 Sep 2017 09:57:57 GMT):
@yacovm i don't manage to get your script working? i get following error message: "cannot connect to the Docker daemon. Is the docker daemon running on this host?"

benjaminverhaegen (Wed, 27 Sep 2017 09:58:05 GMT):
@yacovm do you know how to fix this?

yacovm (Wed, 27 Sep 2017 09:58:11 GMT):
of course

yacovm (Wed, 27 Sep 2017 09:58:21 GMT):
install and make sure docker is running

daygee (Wed, 27 Sep 2017 09:59:08 GMT):
hello everyone so I have been working on some chaincode and have need of some access control on functions in the chaincode that is, not all endorsers can execute all functions in the chaincode and from my investigation the only way I saw was to getCreator and clean it up so I have a certificate that can be decoded to verify the identity/name/issuer of the certificate unfortunately, it feels like a hack and I know it's actually a post v1 feature but I'm hoping someone may have come up with a clean way to do this at least pending the release of the feature officially I would really appreciate any help, thanks in advance!

benjaminverhaegen (Wed, 27 Sep 2017 10:54:12 GMT):
@yacovm my docker service is running, still getting the same error messag

yacovm (Wed, 27 Sep 2017 10:54:40 GMT):
hmm do `ps -ef | grep docker` and tell what you see

yacovm (Wed, 27 Sep 2017 10:54:45 GMT):
also tell what version is your docker

benjaminverhaegen (Wed, 27 Sep 2017 10:57:50 GMT):
docker version 1.12.6

benjaminverhaegen (Wed, 27 Sep 2017 10:59:02 GMT):

Message Attachments

benjaminverhaegen (Wed, 27 Sep 2017 11:09:02 GMT):
@yacovm

yacovm (Wed, 27 Sep 2017 11:15:43 GMT):
should be with `/usr/bin/dockerd -H tcp://0.0.0.0:2375`

yacovm (Wed, 27 Sep 2017 11:15:48 GMT):
that's why it doesn't work

benjaminverhaegen (Wed, 27 Sep 2017 11:24:49 GMT):
@yacovm any idea how to change this? i didn't change any config file from docker

benjaminverhaegen (Wed, 27 Sep 2017 11:25:51 GMT):
@yacovm any idea how to change this? didn't change any config file from docker

yacovm (Wed, 27 Sep 2017 11:26:18 GMT):
`default/docker:DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock`

benjaminverhaegen (Wed, 27 Sep 2017 11:37:08 GMT):
still getting the same error message

yacovm (Wed, 27 Sep 2017 11:40:01 GMT):
lol, restart the docker

gentios (Wed, 27 Sep 2017 13:26:51 GMT):
why I am getting this error when trying to instantiate the chaincode ``` Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {"message":"network _default not found"}

collins (Wed, 27 Sep 2017 15:17:30 GMT):
Has joined the channel.

abhi201191 (Wed, 27 Sep 2017 15:36:17 GMT):
Has joined the channel.

absingh0 (Wed, 27 Sep 2017 15:51:49 GMT):
Has joined the channel.

latitiah (Wed, 27 Sep 2017 17:35:39 GMT):
FYI: Something that's a "good to know" that took waay longer than it should to find: be sure to unset GOROOT when upgrading golang...

collins (Wed, 27 Sep 2017 18:06:56 GMT):
Anyone who has faced this before? I'm geeting this error in fabric-rest pod ```Exception: Error: Error trying to ping. Error: Error trying to query chaincode. Error: Failed to deserialize creator identity, err MSP XYZMSP is unknown 0|composer | Error: Error trying to ping. Error: Error trying to query chaincode. Error: Failed to deserialize creator identity, err MSP XYZMSP is unknown```

collins (Wed, 27 Sep 2017 18:06:56 GMT):
Anyone who has faced this before? ```Exception: Error: Error trying to ping. Error: Error trying to query chaincode. Error: Failed to deserialize creator identity, err MSP XYZMSP is unknown 0|composer | Error: Error trying to ping. Error: Error trying to query chaincode. Error: Failed to deserialize creator identity, err MSP XYZMSP is unknown```

mghasletwala (Wed, 27 Sep 2017 18:15:34 GMT):
Has joined the channel.

mghasletwala (Wed, 27 Sep 2017 18:17:11 GMT):
User1 from Org1 instantiates transaction. Need to get it endorsed from an endorser peer of Org2 before sending to ordering service. How can it be done?

nicolapaoli (Wed, 27 Sep 2017 18:40:26 GMT):
Has joined the channel.

yacovm (Wed, 27 Sep 2017 19:03:21 GMT):
> FYI: Something that's a "good to know" that took waay longer than it should to find: be sure to unset GOROOT when upgrading golang... @latitiah why? I upgraded golang by simply making the new golang folder be the old path and didn't unset GOROOT and everything worked OK

latitiah (Wed, 27 Sep 2017 19:22:14 GMT):
I definitely had problems building the binary files Strangely enough the docker images built just fine. I kept getting flag errors for -goversion

ChristopheJurczak (Wed, 27 Sep 2017 23:59:18 GMT):
Has joined the channel.

vdods (Thu, 28 Sep 2017 00:48:59 GMT):
Hi there, I've created a Jira bug for fabric-ca -- who should I assign that to? https://jira.hyperledger.org/browse/FAB-6321

kuyseng (Thu, 28 Sep 2017 02:16:00 GMT):
Has joined the channel.

lclclc (Thu, 28 Sep 2017 02:29:55 GMT):
Has joined the channel.

lclclc (Thu, 28 Sep 2017 02:36:09 GMT):
Hi, Guys. I am new to fabric and I have run other experiment like fabcar, chain code dev mode and first-network by byfn.sh. I am step by step running the tutorial of "Building your first network" now. Instantiation always fails with this message: "Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:019502256de53503f399d612c3d259d6abb6c43693fe6cfb974bf67a6fecb506)". I don't know why, any hints about this? Looks like something is just too slow to respond I don't see any troubleshooting clue here. and in document.

asuchit (Thu, 28 Sep 2017 04:29:40 GMT):
Has joined the channel.

asuchit (Thu, 28 Sep 2017 04:30:48 GMT):
I am new for hyperledger and do not know much about docker as well. I am able to run the 'first network' example (fabric example) successfully on a host. I want to run it on multiple host setup. Is there any guide present for it? Thanks in advance

DarshanBc (Thu, 28 Sep 2017 05:23:06 GMT):
what is purpose of having multiple orgs in network

gentios (Thu, 28 Sep 2017 06:40:23 GMT):
why I am getting this error ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {"message":"network _default not found"}

gentios (Thu, 28 Sep 2017 06:50:29 GMT):
and in the peer I got this ```2017-09-28 06:38:43.263 UTC [container] lockContainer -> DEBU 384 waiting for container(dev-peer0.org1.example.com-fabcar-1.0) lock 2017-09-28 06:38:43.263 UTC [container] lockContainer -> DEBU 385 got container (dev-peer0.org1.example.com-fabcar-1.0) lock 2017-09-28 06:38:43.264 UTC [dockercontroller] Start -> DEBU 386 Cleanup container dev-peer0.org1.example.com-fabcar-1.0 2017-09-28 06:38:43.265 UTC [dockercontroller] stopInternal -> DEBU 387 Stop container dev-peer0.org1.example.com-fabcar-1.0(No such container: dev-peer0.org1.example.com-fabcar-1.0) 2017-09-28 06:38:43.266 UTC [dockercontroller] stopInternal -> DEBU 388 Kill container dev-peer0.org1.example.com-fabcar-1.0 (No such container: dev-peer0.org1.example.com-fabcar-1.0) 2017-09-28 06:38:43.267 UTC [dockercontroller] stopInternal -> DEBU 389 Remove container dev-peer0.org1.example.com-fabcar-1.0 (No such container: dev-peer0.org1.example.com-fabcar-1.0) 2017-09-28 06:38:43.267 UTC [dockercontroller] Start -> DEBU 38a Start container dev-peer0.org1.example.com-fabcar-1.0 2017-09-28 06:38:43.270 UTC [dockercontroller] getDockerHostConfig -> DEBU 38b docker container hostconfig NetworkMode: _default 2017-09-28 06:38:43.271 UTC [dockercontroller] createContainer -> DEBU 38c Create container: dev-peer0.org1.example.com-fabcar-1.0 2017-09-28 06:38:43.397 UTC [dockercontroller] createContainer -> DEBU 38d Created container: dev-peer0.org1.example.com-fabcar-1.0 2017-09-28 06:38:43.473 UTC [dockercontroller] Start -> ERRO 38e start-could not start container: API error (404): {"message":"network _default not found"} 2017-09-28 06:38:43.473 UTC [container] unlockContainer -> DEBU 38f container lock deleted(dev-peer0.org1.example.com-fabcar-1.0) 2017-09-28 06:38:43.473 UTC [chaincode] Launch -> ERRO 390 launchAndWaitForRegister failed Error starting container: API error (404): {"message":"network _default not found"} 2017-09-28 06:38:43.473 UTC [endorser] callChaincode -> DEBU 391 Exit 2017-09-28 06:38:43.473 UTC [endorser] simulateProposal -> ERRO 392 failed to invoke chaincode name:"lscc" on transaction d2d01752c8ece2bca823d762bbfd4f05227ba308a4f76921f82506fc66dd0bd2, error: Error starting container: API error (404): {"message":"network _default not found"} 2017-09-28 06:38:43.473 UTC [endorser] simulateProposal -> DEBU 393 Exit 2017-09-28 06:38:43.473 UTC [lockbasedtxmgr] Done -> DEBU 394 Done with transaction simulation / query execution [c205aad6-b17b-4c37-a3e0-2bc0f2548eb7] 2017-09-28 06:38:43.473 UTC [endorser] ProcessProposal -> DEBU 395 Exit

gentios (Thu, 28 Sep 2017 06:58:38 GMT):
I am using this command ```

gentios (Thu, 28 Sep 2017 06:58:44 GMT):
```docker exec -e "CORE_PEER_LOCALMSPID=org1.example.com" -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/configs/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer0.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1ExampleCom.admin','Org2ExampleCom.admin')"

gentios (Thu, 28 Sep 2017 07:38:05 GMT):
@Vadim do you have any clue why I cannot instantiate the chaincode ?

Vadim (Thu, 28 Sep 2017 07:38:05 GMT):
Has joined the channel.

Vadim (Thu, 28 Sep 2017 07:39:13 GMT):
@gentios seems like env var CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE on peer is incorrect

gentios (Thu, 28 Sep 2017 07:40:26 GMT):
```- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${CORE_PEER_NETWORKID}_default

sampath06 (Thu, 28 Sep 2017 07:40:43 GMT):
I have a setup with couchdb as the store. The chaincode is able to insert the objects into the database. But the queries are not returning any results. I can see those objects in the couchdb browser. Even the empty query is returning null results from couchdb. Any ideas on how to debug this? ``` curl -vv -G \ 'http://localhost:3000/channels/mychannel/chaincodes/marbles_mini3?peer=peer1&fcn=queryMarbles' \ -H "authorization: Bearer $ORG1_TOKEN" \ --data-urlencode 'args=["{\"selector\":{\"_id\":{\"$gt\": null}}}"]' ```

gentios (Thu, 28 Sep 2017 07:41:27 GMT):
@Vadim I have this in that variable but don't know what is ${CORE_PEER_NETWORKID} or where to set it as a global ?

Vadim (Thu, 28 Sep 2017 07:41:35 GMT):
@gentios looks like it's not set

gentios (Thu, 28 Sep 2017 07:42:08 GMT):
@Vadim , how to set it as global and not replace it everywhere

lclclc (Thu, 28 Sep 2017 07:42:59 GMT):
hi @Vadim ,do you know when this "Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0" will be thrown when instantiating a chaincode? Thanks in advance.

Vadim (Thu, 28 Sep 2017 07:49:22 GMT):
@gentios from which example do you have your network?

gentios (Thu, 28 Sep 2017 07:49:41 GMT):
@Vadim I think my problem is from there

gentios (Thu, 28 Sep 2017 07:49:44 GMT):
```HTTP Request: GET /mychannel/lscc%00fabcar?attachments=true HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2017-09-28 07:34:06.514 UTC [couchdb] handleRequest -> DEBU 39f Couch DB Error:not_found, Status Code:404, Reason:missing

Vadim (Thu, 28 Sep 2017 07:50:32 GMT):
@lclclc increase the timeout `Client.setConfigSetting('request-timeout', 60000);`

Vadim (Thu, 28 Sep 2017 07:50:32 GMT):
@lclclc increase the timeout `Client.setConfigSetting('request-timeout', 120000);`

gentios (Thu, 28 Sep 2017 07:50:44 GMT):
@Vadim my example is from here https://github.com/hyperledger/fabric/blob/release/test/feature/docker-compose/docker-compose-kafka.yml

Vadim (Thu, 28 Sep 2017 07:50:45 GMT):
@gentios that is something else

gentios (Thu, 28 Sep 2017 07:51:11 GMT):
but I have created a custom network

gentios (Thu, 28 Sep 2017 07:51:23 GMT):
with kafka based orderers

gentios (Thu, 28 Sep 2017 07:51:30 GMT):
and couchdb

DarshanBc (Thu, 28 Sep 2017 07:52:43 GMT):
if I bring up fabcar example only basic network with org1 starts but endorsement policy has org2 isn't that a bug ?

Vadim (Thu, 28 Sep 2017 07:53:26 GMT):
@gentios you need to do "docker inspect" on one of the peers and check which network it is connected to. Should be _defailt. Then set the env var accordingly.

gentios (Thu, 28 Sep 2017 07:54:30 GMT):
@Vadim when I do docker networks ls

gentios (Thu, 28 Sep 2017 07:54:37 GMT):
I get this

gentios (Thu, 28 Sep 2017 07:54:41 GMT):
covenetwork_default

Vadim (Thu, 28 Sep 2017 07:54:55 GMT):
so it's that one most likely

gentios (Thu, 28 Sep 2017 07:54:56 GMT):
but the chaincode isn't instantiated in couchdb

Vadim (Thu, 28 Sep 2017 07:55:29 GMT):
@gentios wait a sec, you had the error: ``` 2017-09-28 06:38:43.473 UTC [endorser] simulateProposal -> ERRO 392 failed to invoke chaincode name:"lscc" on transaction d2d01752c8ece2bca823d762bbfd4f05227ba308a4f76921f82506fc66dd0bd2, error: Error starting container: API error (404): {"message":"network _default not found"}

gentios (Thu, 28 Sep 2017 07:55:37 GMT):
yes

Vadim (Thu, 28 Sep 2017 07:55:40 GMT):
that comes from incorrect env var

Vadim (Thu, 28 Sep 2017 07:55:44 GMT):
so fix it first

lclclc (Thu, 28 Sep 2017 07:59:03 GMT):
@Vadim thanks. Actually I am using command line in cli container like this, exactly like the "first network" wrote: peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

lclclc (Thu, 28 Sep 2017 07:59:23 GMT):
Any thing wrong in this command?

Vadim (Thu, 28 Sep 2017 08:00:10 GMT):
@lclclc not at first glance, I also don't know how to increase timeout there

gentios (Thu, 28 Sep 2017 08:00:56 GMT):
do a -t 10

lclclc (Thu, 28 Sep 2017 08:01:52 GMT):
Actually there is no t in its usage flags:

lclclc (Thu, 28 Sep 2017 08:01:54 GMT):
Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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

Vadim (Thu, 28 Sep 2017 08:02:25 GMT):
@lclclc maybe also check the peer logs

lclclc (Thu, 28 Sep 2017 08:02:45 GMT):
That's great idea, let me check

lclclc (Thu, 28 Sep 2017 08:03:25 GMT):
Can sth like this do the magic: sudo docker logs -f peer0

lclclc (Thu, 28 Sep 2017 08:03:27 GMT):
?

Vadim (Thu, 28 Sep 2017 08:04:11 GMT):
docker ps, check the peer container name, then docker logs

Vadim (Thu, 28 Sep 2017 08:04:26 GMT):
also, normally you don't need sudo

lclclc (Thu, 28 Sep 2017 08:04:33 GMT):
That's what i am doing

lclclc (Thu, 28 Sep 2017 08:06:41 GMT):
2017-09-28 07:57:38.057 UTC [container] lockContainer -> DEBU 34d waiting for container(dev-peer0.org1.example.com-mycc-1.0) lock 2017-09-28 07:57:38.057 UTC [container] lockContainer -> DEBU 34e got container (dev-peer0.org1.example.com-mycc-1.0) lock 2017-09-28 07:57:38.063 UTC [dockercontroller] Start -> DEBU 34f Cleanup container dev-peer0.org1.example.com-mycc-1.0 2017-09-28 07:57:38.083 UTC [dockercontroller] stopInternal -> DEBU 350 Stop container dev-peer0.org1.example.com-mycc-1.0(No such container: dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 07:57:38.084 UTC [dockercontroller] stopInternal -> DEBU 351 Kill container dev-peer0.org1.example.com-mycc-1.0 (No such container: dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 07:57:38.087 UTC [dockercontroller] stopInternal -> DEBU 352 Remove container dev-peer0.org1.example.com-mycc-1.0 (No such container: dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 07:57:38.087 UTC [dockercontroller] Start -> DEBU 353 Start container dev-peer0.org1.example.com-mycc-1.0 2017-09-28 07:57:38.087 UTC [dockercontroller] getDockerHostConfig -> DEBU 354 docker container hostconfig NetworkMode: net_byfn 2017-09-28 07:57:38.088 UTC [dockercontroller] createContainer -> DEBU 355 Create container: dev-peer0.org1.example.com-mycc-1.0 2017-09-28 07:57:38.226 UTC [dockercontroller] createContainer -> DEBU 356 Created container: dev-peer0.org1.example.com-mycc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9 2017-09-28 07:57:38.712 UTC [dockercontroller] Start -> DEBU 357 Started container dev-peer0.org1.example.com-mycc-1.0 2017-09-28 07:57:38.712 UTC [container] unlockContainer -> DEBU 358 container lock deleted(dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 08:02:38.713 UTC [chaincode] launchAndWaitForRegister -> DEBU 359 stopping due to error while launching Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:5dcc8361b1004bd623fdb3016dc9024c2016efeadb7491349b392d84c04056bc) 2017-09-28 08:02:38.713 UTC [container] lockContainer -> DEBU 35a waiting for container(dev-peer0.org1.example.com-mycc-1.0) lock 2017-09-28 08:02:38.713 UTC [container] lockContainer -> DEBU 35b got container (dev-peer0.org1.example.com-mycc-1.0) lock 2017-09-28 08:02:38.715 UTC [dockercontroller] stopInternal -> DEBU 35c Stop container dev-peer0.org1.example.com-mycc-1.0(Container not running: dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 08:02:38.717 UTC [dockercontroller] stopInternal -> DEBU 35d Kill container dev-peer0.org1.example.com-mycc-1.0 (API error (500): {"message":"Cannot kill container dev-peer0.org1.example.com-mycc-1.0: Container 8283031d9ce6b2577600adba435b61535dedf25d1c1b5360351a0872596c4338 is not running"} ) 2017-09-28 08:02:38.733 UTC [dockercontroller] stopInternal -> DEBU 35e Removed container dev-peer0.org1.example.com-mycc-1.0 2017-09-28 08:02:38.733 UTC [container] unlockContainer -> DEBU 35f container lock deleted(dev-peer0.org1.example.com-mycc-1.0) 2017-09-28 08:02:38.734 UTC [chaincode] func1 -> DEBU 360 chaincode mycc:1.0 launch seq completed 2017-09-28 08:02:38.734 UTC [chaincode] Launch -> ERRO 361 launchAndWaitForRegister failed Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:5dcc8361b1004bd623fdb3016dc9024c2016efeadb7491349b392d84c04056bc) 2017-09-28 08:02:38.734 UTC [endorser] callChaincode -> DEBU 362 Exit 2017-09-28 08:02:38.734 UTC [endorser] simulateProposal -> ERRO 363 failed to invoke chaincode name:"lscc" on transaction 5dcc8361b1004bd623fdb3016dc9024c2016efeadb7491349b392d84c04056bc, error: Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:5dcc8361b1004bd623fdb3016dc9024c2016efeadb7491349b392d84c04056bc) 2017-09-28 08:02:38.734 UTC [endorser] simulateProposal -> DEBU 364 Exit 2017-09-28 08:02:38.734 UTC [lockbasedtxmgr] Done -> DEBU 365 Done with transaction simulation / query execution [91399e7d-defd-4823-bac2-1e7619b2b260] 2017-09-28 08:02:38.734 UTC [endorser] ProcessProposal -> DEBU 366 Exit

lclclc (Thu, 28 Sep 2017 08:07:39 GMT):
Looks like container is started but it still gets timeout

lclclc (Thu, 28 Sep 2017 08:13:09 GMT):
I think there should be a secure container launched as dev-peer0.org1.example.com-mycc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9, but it fails to start.

gentios (Thu, 28 Sep 2017 08:20:03 GMT):
@lclclc I have a similar problem, but not with the tls

lclclc (Thu, 28 Sep 2017 08:20:48 GMT):
I follow very strictly with the guide http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

lclclc (Thu, 28 Sep 2017 08:21:05 GMT):
I don't know if there are missing steps in the document.

gentios (Thu, 28 Sep 2017 08:21:23 GMT):
you should check if the tls is enabled

gentios (Thu, 28 Sep 2017 08:21:29 GMT):
in docker-compose files

gentios (Thu, 28 Sep 2017 08:21:58 GMT):
and verify that the .certs files are correctly

gentios (Thu, 28 Sep 2017 08:22:11 GMT):
their paths to docker

lclclc (Thu, 28 Sep 2017 08:22:18 GMT):
Actually they are

lclclc (Thu, 28 Sep 2017 08:22:34 GMT):
- CORE_PEER_TLS_ENABLED=true

gentios (Thu, 28 Sep 2017 08:22:52 GMT):
ok good

gentios (Thu, 28 Sep 2017 08:23:08 GMT):
and do you have their paths mounted in docker correctly

gentios (Thu, 28 Sep 2017 08:23:13 GMT):
if you do a docker ps

lclclc (Thu, 28 Sep 2017 08:23:15 GMT):
and the certs are correctly generated ,otherwise user will failure in early stage

gentios (Thu, 28 Sep 2017 08:23:22 GMT):
are there all the containers running ?

lclclc (Thu, 28 Sep 2017 08:23:38 GMT):
Almost all containers running

lclclc (Thu, 28 Sep 2017 08:24:02 GMT):
except container supposed to be bootstrapped by peer node to run chaincode.

gentios (Thu, 28 Sep 2017 08:24:58 GMT):
@lclclc are these variables exported

gentios (Thu, 28 Sep 2017 08:24:59 GMT):
$CORE_PEER_TLS_ENABLED

lclclc (Thu, 28 Sep 2017 08:25:25 GMT):
let me echo it in the container for you

gentios (Thu, 28 Sep 2017 08:26:21 GMT):
do you export $CORE_PEER_TLS_ENABLED = true

gentios (Thu, 28 Sep 2017 08:26:47 GMT):
and ```export $CHANNEL_NAME = your channel name ?

lclclc (Thu, 28 Sep 2017 08:27:45 GMT):
root@fcaa6a04753a:/opt/gopath/src/github.com/hyperledger/fabric/peer# echo $CHANNEL_NAME mychannel

lclclc (Thu, 28 Sep 2017 08:28:08 GMT):
root@fcaa6a04753a:/opt/gopath/src/github.com/hyperledger/fabric/peer# echo $CORE_PEER_TLS_ENABLED true

lclclc (Thu, 28 Sep 2017 08:28:37 GMT):
atually I have checked these injected env variables yesterday, everything looks normal

lclclc (Thu, 28 Sep 2017 08:32:42 GMT):
I follow very strictly with the guide http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html。I carefully remove old containers and images while tearing down the experimantal network.

lclclc (Thu, 28 Sep 2017 08:37:24 GMT):
suddenly I can instantiate the chaincode, after I remove a stale image left by last network. Looks like if user do not gracefully shutdown the network, the old images will block new chain code instantiation. But I still don't know why.

asuchit (Thu, 28 Sep 2017 09:29:53 GMT):
I am running Orderer in one PC and all peers in another PC and while creating the channel, I am getting below error. Please help me, How can I fix it. I am new for hyperledger and do not know much about docker as well. I am able to run the 'first network' example (fabric example) successfully on a host. I want to run it on multiple host setup. Is there any guide present for it? Thanks in advance

asuchit (Thu, 28 Sep 2017 09:30:09 GMT):
root@e145030d1a92:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2017-09-28 06:02:56.934 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-09-28 06:02:56.934 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-09-28 06:02:56.938 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable

asuchit (Thu, 28 Sep 2017 09:31:05 GMT):
It is trying to look the Orderer in local PC.

lclclc (Thu, 28 Sep 2017 09:35:17 GMT):
I heard a Hyperledger Composer project from other channel, which may help you build a network. @asuchit

alix (Thu, 28 Sep 2017 09:38:42 GMT):
I want to create channel from endorse peer(for example: create one channel in the chaincode ), i don`t know if it is possible to create channel in this way , anyone can give me some clue.Tanks a lot !

asuchit (Thu, 28 Sep 2017 09:40:00 GMT):
@lclclc Thanks, I will check there.

Vadim (Thu, 28 Sep 2017 10:02:08 GMT):
@asuchit it cannot resolve the orderer.example.com address into IP address of the orderer

Vadim (Thu, 28 Sep 2017 10:03:05 GMT):
you can try to add ip-host mapping to the /etc/hosts

asuchit (Thu, 28 Sep 2017 10:47:28 GMT):
@Vadim Thanks for thr information I tried to add ip address of the orderer host in /etc/hosts of peers host. But it did not work and still giving same error.

asuchit (Thu, 28 Sep 2017 10:49:06 GMT):
I did not understand that why it is looking specific to this ip address only. orderer.example.com on 127.0.0.11:53

Vadim (Thu, 28 Sep 2017 10:53:11 GMT):
@asuchit ah, it seems you run it within a container?

Vadim (Thu, 28 Sep 2017 10:53:52 GMT):
then probably I can only think of using IP addresses instead of domain names

DarshanBc (Thu, 28 Sep 2017 11:11:35 GMT):
``` "namespace": "mycc", "rwset": { "reads": [ { "key": "a", "version": { "block_num": { "low": 6, "high": 0, "unsigned": true }, "tx_num": { "low": 0, "high": 0, "unsigned": true } } }, { "key": "b", "version": { "block_num": { "low": 6, "high": 0, "unsigned": true }, "tx_num": { "low": 0, "high": 0, "unsigned": true } } } ], "range_queries_info": [], "writes": [ { "key": "a", "is_delete": false, "value": "60" }, { "key": "b", "is_delete": false, "value": "240" } ] } } ] }, "events": { "chaincode_id": "", "tx_id": "", "event_name": "", "payload": { "type": "Buffer", "data": [] } }, "response": { "status": 200, "message": "", "payload": "" } } },```

DarshanBc (Thu, 28 Sep 2017 11:11:46 GMT):
this part of a Block

DarshanBc (Thu, 28 Sep 2017 11:12:22 GMT):
and the block num is 10 but I am wondering that what is the block number that is there in rwset

DarshanBc (Thu, 28 Sep 2017 11:12:22 GMT):
and the block num is 10 but I am wondering that what is the `block_num :{low:6,high:0}` that is there in rwset

shubhammangla (Thu, 28 Sep 2017 12:31:43 GMT):
Has joined the channel.

gauthampamu (Thu, 28 Sep 2017 14:57:02 GMT):
I have a questions about support for Java chaincode. Is Java chaincode fully supported in Fabric ? https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html Documentation says... only Go is supported. Is this correct ? "Chaincode is a program, written in Go, and eventually in other programming languages such as Java, that implements a prescribed interface."

gauthampamu (Thu, 28 Sep 2017 14:57:02 GMT):
I have a question about support for Java chaincode. Is Java chaincode fully supported in Fabric ? https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html Documentation says... only Go is supported. Is this correct ? "Chaincode is a program, written in Go, and eventually in other programming languages such as Java, that implements a prescribed interface."

rock_martin (Thu, 28 Sep 2017 15:06:44 GMT):
Anyone let me know some links for using hyperledger fabric as for production based environment setup on multiple different hosts with respect to docker swarm or kubernates, Thanks in advance

ujjwalmishra (Thu, 28 Sep 2017 16:20:28 GMT):
Has joined the channel.

mastersingh24 (Thu, 28 Sep 2017 23:35:55 GMT):
@gauthampamu - Java chaincode is not supported

qq597332855 (Fri, 29 Sep 2017 01:24:08 GMT):
Excuse me, who knows fabric-sdk-java better? Where should it begin to study? I've run it now and I know E2E,But I still can't make an example. It does not seem to have too many examples to refer to How do I build a project of my own?

Glen (Fri, 29 Sep 2017 01:29:59 GMT):
Hi, how to use peer channel fetch to fetch the config block , I executed the command on cli, i.e client, but I can't find the block. Thanks

lclclc (Fri, 29 Sep 2017 03:38:17 GMT):
Anyone knows how to generate a client

lclclc (Fri, 29 Sep 2017 03:38:39 GMT):
wallet for SDK-based application to connect to blockchainnetwork?

qq597332855 (Fri, 29 Sep 2017 03:38:50 GMT):
yes

lclclc (Fri, 29 Sep 2017 03:39:14 GMT):
I don't see any clues from this http://hyperledger-fabric.readthedocs.io/

qq597332855 (Fri, 29 Sep 2017 03:40:32 GMT):
There are currently nodejs SDK documents, but there is no documentation for Java SDK

qq597332855 (Fri, 29 Sep 2017 03:43:56 GMT):
I want to find a way to learn this SDK or study together

qq597332855 (Fri, 29 Sep 2017 03:45:58 GMT):

Message Attachments

tensorfoundry (Fri, 29 Sep 2017 03:57:49 GMT):
Has joined the channel.

tensorfoundry (Fri, 29 Sep 2017 04:00:24 GMT):
Hi Team, I have done all prepeq on a RHEL box 7.4 and on step build your own network running command ./byfn.sh -m up getting below error

tensorfoundry (Fri, 29 Sep 2017 04:00:52 GMT):
===================== Chaincode is installed on remote peer PEER2 ===================== Instantiating chaincode on org2/peer2... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org2MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=DEBUG CORE_PEER_ADDRESS=peer0.org2.example.com:7051 2017-09-29 03:53:23.786 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-09-29 03:53:23.786 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-09-29 03:53:23.789 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-09-29 03:53:23.789 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-09-29 03:53:23.789 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08B387B7CE0510...324D53500A04657363630A0476736363 2017-09-29 03:53:23.789 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 89CC839109B20C307B75954455E5583611447F867864B1EC7134FD6B6E382F6D Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org2.example.com-mycc-1.0: dial unix /host/var/run/docker.sock: connect: permission denied Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 !!!!!!!!!!!!!!! Chaincode instantiation on PEER2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

tensorfoundry (Fri, 29 Sep 2017 04:24:07 GMT):

Message Attachments

yacovm (Fri, 29 Sep 2017 05:04:54 GMT):
@tensorfoundry my guess is that the peer runs under a user without docker permissions

yacovm (Fri, 29 Sep 2017 05:05:01 GMT):
what is the docker endpoint?

yacovm (Fri, 29 Sep 2017 05:05:13 GMT):
it needs to be a TCP one

username343 (Fri, 29 Sep 2017 05:29:26 GMT):
Has joined the channel.

username343 (Fri, 29 Sep 2017 05:29:48 GMT):
can anyone tell me how do peers, orderer, msp and ca interact with each other?

lclclc (Fri, 29 Sep 2017 08:32:28 GMT):

Message Attachments

lclclc (Fri, 29 Sep 2017 08:32:57 GMT):
@username343 peers, orderers are working together like this in a transaction

lclclc (Fri, 29 Sep 2017 08:33:28 GMT):
But I still don't quite get how MSP work in whole architecture.

lclclc (Fri, 29 Sep 2017 08:34:01 GMT):
To build a blockchain network we need to generate a lot of certificates for each nodes

lclclc (Fri, 29 Sep 2017 08:34:21 GMT):
I don't understand how the ca container work.

Vadim (Fri, 29 Sep 2017 08:34:43 GMT):
@lclclc CA generates this certificates

lclclc (Fri, 29 Sep 2017 08:35:12 GMT):
But I can use cryptogen binary to do this before bootstrap whole network.

lclclc (Fri, 29 Sep 2017 08:35:28 GMT):
That's how the tutorial told me

lclclc (Fri, 29 Sep 2017 08:35:42 GMT):
I don't need to run a ca container to do this.

Vadim (Fri, 29 Sep 2017 08:36:07 GMT):
@lclclc cryptogen is a shortcut for development, it kinda acts like a CA

lclclc (Fri, 29 Sep 2017 08:36:23 GMT):
What is the use case for CA container?

Vadim (Fri, 29 Sep 2017 08:36:31 GMT):
CA container you need if you need users which transact with your network

lclclc (Fri, 29 Sep 2017 08:36:33 GMT):
Dynamically add nodes in whole network?

Vadim (Fri, 29 Sep 2017 08:36:43 GMT):
and you want to generate users on the fly

Vadim (Fri, 29 Sep 2017 08:36:54 GMT):
or dynamically add nodes to already running network

lclclc (Fri, 29 Sep 2017 08:36:58 GMT):
you mean the user wallet is generated ca container?

Vadim (Fri, 29 Sep 2017 08:37:10 GMT):
no, I did not mean that

lclclc (Fri, 29 Sep 2017 08:37:26 GMT):
What do you mean by user

Vadim (Fri, 29 Sep 2017 08:39:02 GMT):
e.g. you implement a bank demo, bank A has a peer and bank B has a peer. Peer certs for simplicity can be generated by cryptogen. Then consider a use case: user X of bank A sends $100 to user Y of bank B. In Fabric, users X and Y should be identifiable to the network with certificates. YOu can use fabric CA to obtain these certs.

lclclc (Fri, 29 Sep 2017 08:39:47 GMT):
I see, so there are identical user entity concept for each organization?

lclclc (Fri, 29 Sep 2017 08:39:56 GMT):
I didn't get this from the document.

lclclc (Fri, 29 Sep 2017 08:41:06 GMT):
And how to generate a client wallet if ca does not do the magic?

Vadim (Fri, 29 Sep 2017 08:41:16 GMT):
well if user A sends a transaction, he needs to sign it somehow

Vadim (Fri, 29 Sep 2017 08:41:29 GMT):
what is "client wallet"?

lclclc (Fri, 29 Sep 2017 08:42:40 GMT):
I think what you take as an example, is like a client wallet.

lclclc (Fri, 29 Sep 2017 08:43:10 GMT):
In the fabric example, the node js application have to attach wallet info if he wants to invoke chaincode

Vadim (Fri, 29 Sep 2017 08:43:34 GMT):
there are no wallets in Fabric, what do you mean by that?

lclclc (Fri, 29 Sep 2017 08:43:48 GMT):
Let me show you some codes

lclclc (Fri, 29 Sep 2017 08:44:09 GMT):
`var options = { wallet_path: path.join(__dirname, './creds'), user_id: 'PeerAdmin', channel_id: 'mychannel', chaincode_id: 'fabcar', peer_url: 'grpc://localhost:7051', event_url: 'grpc://localhost:7053', orderer_url: 'grpc://localhost:7050' }; var channel = {}; var client = null; var targets = []; var tx_id = null; Promise.resolve().then(() => { console.log("Create a client and set the wallet location"); client = new hfc(); return hfc.newDefaultKeyValueStore({ path: options.wallet_path }); }).then((wallet) => { console.log("Set wallet path, and associate user ", options.user_id, " with application"); client.setStateStore(wallet); return client.getUserContext(options.user_id, true);`

lclclc (Fri, 29 Sep 2017 08:44:42 GMT):
The is a creds folder that can be read from client sdk to invoke chaincode.

Vadim (Fri, 29 Sep 2017 08:45:28 GMT):
yes, it's essentially a certificate and private key of a user

lclclc (Fri, 29 Sep 2017 08:45:55 GMT):
so here, a certificate+ pub key +private key == wallet

lclclc (Fri, 29 Sep 2017 08:46:05 GMT):
this wallet is generated by a ca server?

Vadim (Fri, 29 Sep 2017 08:46:21 GMT):
well yes

lclclc (Fri, 29 Sep 2017 08:46:38 GMT):
Can I use a crytogen binary tool to generate it

Vadim (Fri, 29 Sep 2017 08:47:17 GMT):
it can generate user certificates too, but then you need to import it somehow to the SDK

Vadim (Fri, 29 Sep 2017 08:47:41 GMT):
also, the user names are hardcoded "user 1", "user 2" and so on

lclclc (Fri, 29 Sep 2017 08:48:03 GMT):
Can you show me a example to do that? a yaml file or something, I don't see it in document.

Vadim (Fri, 29 Sep 2017 08:50:16 GMT):
I've only seen this done in tests: https://github.com/hyperledger/fabric-sdk-node/blob/e7b80dcae83dcf1efd94121ac397a73f214bb2a7/test/unit/util.js#L165

lclclc (Fri, 29 Sep 2017 08:52:46 GMT):
If the CA server is the classic way to generate CA, why it does not show up "build your first network" section in the tutorial? And after I read through all documents, I don't get how to set up it, and send request to generate certificate.

username343 (Fri, 29 Sep 2017 08:56:14 GMT):
thanks @lclclc @Vadim

Vadim (Fri, 29 Sep 2017 08:58:45 GMT):
@lclclc work in progress, I guess

username343 (Fri, 29 Sep 2017 08:58:58 GMT):
i'm still confused by the concept of msp, fabric ca being the "implementation of msp" and the membersrvc container provided in example network

lclclc (Fri, 29 Sep 2017 08:59:10 GMT):
Thanks for guessing @Vadim

Vadim (Fri, 29 Sep 2017 08:59:20 GMT):
no prob, anytime

Vadim (Fri, 29 Sep 2017 08:59:52 GMT):
@username343 https://docs.google.com/document/d/1Qg7ZEccOIsrShSHSNl4kBHOFvLYRhQ3903srJ6c_AZE/edit#

username343 (Fri, 29 Sep 2017 09:00:35 GMT):
thanks @Vadim i am reading that document

lclclc (Fri, 29 Sep 2017 09:00:46 GMT):
Then where we can learn CA things, from user perspective?

lclclc (Fri, 29 Sep 2017 09:04:50 GMT):
@Vadim this document has more content than what is in the website, looks like a draft.

Vadim (Fri, 29 Sep 2017 09:05:04 GMT):
it is

Vadim (Fri, 29 Sep 2017 09:05:24 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/latest/ for ca

lclclc (Fri, 29 Sep 2017 09:05:53 GMT):
This is what I want! thanks a lot.

gentios (Fri, 29 Sep 2017 09:32:24 GMT):
who are the endorsing peers, and commiting peers in a network ?

gentios (Fri, 29 Sep 2017 09:32:28 GMT):
the anchor peers ?

lclclc (Fri, 29 Sep 2017 09:33:56 GMT):
I think endorsing peers are peers specified in endorsing policy of specific chaincode. Anchor peer are configured in organization profiles.

Vadim (Fri, 29 Sep 2017 09:34:30 GMT):
endorsing are the ones you ask to simulate the transaction and sign the results

lclclc (Fri, 29 Sep 2017 09:34:56 GMT):
endorsing peers are needed by concensus algorithem, anchor peers are you use to find an other member in an organization.

Vadim (Fri, 29 Sep 2017 09:34:57 GMT):
committing are the ones keeping the chaincode state and updating it when it receives a new block

Vadim (Fri, 29 Sep 2017 09:35:22 GMT):
commiting peer will check the endorsement policy before committing

gentios (Fri, 29 Sep 2017 09:36:31 GMT):
and where can I check them in the files ?

gentios (Fri, 29 Sep 2017 09:37:32 GMT):
If I deploy a network, and everything works fine, my chaincode is instantiated and invoked with a value

gentios (Fri, 29 Sep 2017 09:37:43 GMT):
is my network configured correctly in this case ?

lclclc (Fri, 29 Sep 2017 09:38:20 GMT):

Message Attachments

lclclc (Fri, 29 Sep 2017 09:38:36 GMT):
anchor peers are in configtx.yaml

lclclc (Fri, 29 Sep 2017 09:39:02 GMT):
endorsing peers are in your chaincode endorsing policy

Vadim (Fri, 29 Sep 2017 09:40:26 GMT):
@lclclc btw as far as I know endorsement policy might specify concrete peers, but usually it's just number of signatures from an org

lclclc (Fri, 29 Sep 2017 09:41:23 GMT):
the document agrees with you.

gentios (Fri, 29 Sep 2017 09:41:45 GMT):
@Vadim I have used this command ```cli peer chaincode instantiate -o orderer0.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1ExampleCom.admin','Org2ExampleCom.admin')"

gentios (Fri, 29 Sep 2017 09:41:56 GMT):
so ```'Org1ExampleCom.admin','Org2ExampleCom.admin' are anchor peers

gentios (Fri, 29 Sep 2017 09:42:01 GMT):
is this correct ?

Vadim (Fri, 29 Sep 2017 09:42:03 GMT):
no

Vadim (Fri, 29 Sep 2017 09:42:35 GMT):
it says that it needs one signature from admin of the Org1ExampleCom and one from admin of Org2ExampleCom

Vadim (Fri, 29 Sep 2017 09:42:48 GMT):
anchor peers are in configtx.yaml

gentios (Fri, 29 Sep 2017 09:43:18 GMT):
@vadim if my network is, deployed succesfully and chaincode is instantiated and ivoked successfully

gentios (Fri, 29 Sep 2017 09:43:26 GMT):
is that ok ?

gentios (Fri, 29 Sep 2017 09:43:31 GMT):
does it works fine ?

Vadim (Fri, 29 Sep 2017 09:44:08 GMT):
I don't understand the question, you mean if the command you posted above is OK?

gentios (Fri, 29 Sep 2017 09:44:33 GMT):
no I am asking to be sure I have configured the network as it should be

Vadim (Fri, 29 Sep 2017 09:44:46 GMT):
if it works, I guess it's ok

gentios (Fri, 29 Sep 2017 09:44:53 GMT):
ah ok than thank you

gentios (Fri, 29 Sep 2017 10:00:41 GMT):
is it ok to all orderers run in one port :7050 ?

gentios (Fri, 29 Sep 2017 10:01:32 GMT):
I am getting a ```error : Error: SERVICE_UNAVAILABLE

gentios (Fri, 29 Sep 2017 10:01:44 GMT):
when trying to send requests from client side

gentios (Fri, 29 Sep 2017 10:01:55 GMT):
```error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone

gentios (Fri, 29 Sep 2017 10:02:02 GMT):
any help on this ?

hrokling (Fri, 29 Sep 2017 10:32:34 GMT):
Has joined the channel.

hrokling (Fri, 29 Sep 2017 10:33:38 GMT):
Is there any information on the work on pruning the ledger?

gentios (Fri, 29 Sep 2017 12:38:16 GMT):
do I have to export this variable ```export CORE_PEER_TLS_ENABLED=true

gentios (Fri, 29 Sep 2017 12:38:28 GMT):
if I do ```--tls $CORE_PEER_TLS_ENABLED

lclclc (Sat, 30 Sep 2017 02:18:08 GMT):
I think you don't have to do this. This is core environment variables which is configured in the docker-compose.yaml

xiaxia102102 (Sat, 30 Sep 2017 08:12:23 GMT):
$FABRIC_ROOT/bin/peer channel create -o orderer.local:7050 -f $FABRIC_CFG_PATH/channel-artifacts/channel.tx -c mychannel -t 30 --tls true --cafile $ordererCa Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags]

xiaxia102102 (Sat, 30 Sep 2017 08:12:47 GMT):
this error how to solved?

lclclc (Sat, 30 Sep 2017 09:36:57 GMT):
Apparently some node is unavailable.

mastersingh24 (Sat, 30 Sep 2017 12:24:59 GMT):
What's the error? (https://chat.hyperledger.org/channel/general?msg=JDPirLKFREwz8z2os) @rekwet

rekwet (Sat, 30 Sep 2017 12:24:59 GMT):
Has joined the channel.

mayankgulaty (Sat, 30 Sep 2017 12:38:52 GMT):
Has joined the channel.

jayd22 (Sat, 30 Sep 2017 15:00:38 GMT):
Has joined the channel.

rekwet (Sat, 30 Sep 2017 19:08:58 GMT):
hi, @mastersingh24 here is the terminal output:

rekwet (Sat, 30 Sep 2017 19:09:05 GMT):
Louws-MacBook-Pro:first-network louw$ ./byfn.sh -m up -c prichannel Starting with channel 'prichannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Creating network "net_byfn" with the default driver Creating orderer.example.com ... Creating peer1.org1.example.com ... Creating peer0.org2.example.com ... Creating peer0.org1.example.com ... Creating peer1.org2.example.com ... Creating peer1.org2.example.com Creating orderer.example.com Creating peer1.org1.example.com Creating peer0.org2.example.com Creating orderer.example.com ... done Creating cli ... Creating cli ... done ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : prichannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=DEBUG CORE_PEER_ADDRESS=peer0.org1.example.com:7051 2017-09-30 08:21:58.059 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-09-30 08:21:58.059 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-09-30 08:21:58.074 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-09-30 08:21:58.077 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-09-30 08:21:58.077 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-09-30 08:21:58.077 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2017-09-30 08:21:58.077 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2017-09-30 08:21:58.077 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-09-30 08:21:58.077 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: BE864D84ACB46EA8ECAA2ED7689FE7CAF242BA2158D5396B0308BC4C20CC58BA 2017-09-30 08:21:58.077 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-09-30 08:21:58.077 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-09-30 08:21:58.077 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2017-09-30 08:21:58.077 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2017-09-30 08:21:58.078 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC4060A1608021A0608A6A8BDCE0522...F857677BA6C990E723828134EC25617E 2017-09-30 08:21:58.078 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C9EC0C99D94AF78D187CB4D342BBB8834253645F008B2C1913A500D10B066772 Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

mastersingh24 (Sat, 30 Sep 2017 19:34:46 GMT):
@rekwet - What version of Fabric are you using? Also, when was the last time you updated your clone of the fabric-samples repository?

mastersingh24 (Sat, 30 Sep 2017 19:34:46 GMT):
@rekwet - What version of Fabric are you using? Also, when was the last time you updated your clone of the fabric-samples repository? And are you using Docker for Mac?

mastersingh24 (Sat, 30 Sep 2017 19:34:46 GMT):
@rekwet - What version of Fabric are you using? Also, when was the last time you updated your clone of the fabric-samples repository? And are you using Docker for Mac or Docker Toolbox? I strongly recommend Docker for Mac in any case

rekwet (Sat, 30 Sep 2017 19:56:03 GMT):
@mastersingh24 - I'm using Docker for Mac. I downloaded the samples last night

rekwet (Sat, 30 Sep 2017 19:58:14 GMT):
I followed all the pre-req's from :http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

VanC 7 (Sun, 01 Oct 2017 04:27:24 GMT):
Has joined the channel.

rahul-1996 (Sun, 01 Oct 2017 20:46:04 GMT):
Has joined the channel.

rahul-1996 (Sun, 01 Oct 2017 20:48:20 GMT):
Hi, this is my first time here and I'm new to blockchain development. I'm trying to build some sort of prototype for an IOT security application using blockchain. Should I be using fabric or composer for this purpose

AlexanderEx123 (Sun, 01 Oct 2017 20:48:24 GMT):
how can i specify policy for CHANNEL_UPDATE action? For now i have a scenario when another organization join already existing channel and i need pass two signatures signed from Org1 and Org2 to the request What if i want perform this action only with

AlexanderEx123 (Sun, 01 Oct 2017 20:48:24 GMT):
how can i specify policy for CHANNEL_UPDATE action? For now i have a scenario when another organization join already existing channel and i need pass two signatures signed from Org1 and Org2 to the request What if i want perform this action only with one signed request, Org1 by example?

AlexanderEx123 (Sun, 01 Oct 2017 20:48:24 GMT):
how can i specify policy for CHANNEL_UPDATE action? For now i have a scenario when another organization join already existing channel and i need pass two signatures signed from Org1 and Org2 to the request What if i want perform this action only with one signed request, Org1 for example?

AlexanderEx123 (Sun, 01 Oct 2017 20:48:24 GMT):
how can i specify policy for CHANNEL_UPDATE action on channel? For now i have a scenario when another organization join already existing channel and i need pass two signatures signed from Org1 and Org2 to the request What if i want perform this action only with one signed request, Org1 for example?

AlexanderEx123 (Sun, 01 Oct 2017 20:48:24 GMT):
how can i specify policy for CHANNEL_UPDATE action on channel? For now i have a scenario when another organization join already existing channel and i need pass two signatures signed from Org1 and Org2 to the request to make it accepted by the orderer What if i want perform this action only with one signed request, Org1 for example?

gentios (Mon, 02 Oct 2017 06:19:43 GMT):
how to pass the --cafile to this command

gentios (Mon, 02 Oct 2017 06:19:45 GMT):
```docker exec -e "CORE_PEER_LOCALMSPID=org1.example.com" -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer0.example.com:7050 -c mychannel -t 10 -f /var/hyperledger/configs/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /var/hyperledger/configs/orderer/tlsca.example.com-cert.pem

gentios (Mon, 02 Oct 2017 06:32:40 GMT):
I mean do I have to pit it on peer as a local path

gentios (Mon, 02 Oct 2017 06:32:56 GMT):
like this

gentios (Mon, 02 Oct 2017 06:32:58 GMT):
``` - ./configs/ordererOrganizations/example.com/orderers/orderer0.example.com/msp/tlscacerts:/var/hyperledger/configs/orderer

gentios (Mon, 02 Oct 2017 06:58:45 GMT):
chaincode isnstantiate timouts when I try with --tls true --cafile why ?

gentios (Mon, 02 Oct 2017 07:18:44 GMT):
in the logs i get this

gentios (Mon, 02 Oct 2017 07:18:49 GMT):
```launchAndWaitForRegister

gentios (Mon, 02 Oct 2017 07:18:52 GMT):
it timouts

gentios (Mon, 02 Oct 2017 07:22:02 GMT):
```2017-10-02 07:21:40.778 UTC [container] lockContainer -> DEBU 396 waiting for container(cove-peer0.org1.example.com-fabcar-1.0) lock 2017-10-02 07:21:40.778 UTC [container] lockContainer -> DEBU 397 got container (cove-peer0.org1.example.com-fabcar-1.0) lock 2017-10-02 07:21:40.790 UTC [dockercontroller] stopInternal -> DEBU 398 Stop container cove-peer0.org1.example.com-fabcar-1.0(Container not running: cove-peer0.org1.example.com-fabcar-1.0) 2017-10-02 07:21:40.792 UTC [dockercontroller] stopInternal -> DEBU 399 Kill container cove-peer0.org1.example.com-fabcar-1.0 (API error (500): {"message":"Cannot kill container cove-peer0.org1.example.com-fabcar-1.0: Container aa955cf22ac32c0b2f9a7f4e8b2e4c451e1ed2aec02b743ce7a7b7356ef90d67 is not running"} ) 2017-10-02 07:21:40.812 UTC [dockercontroller] stopInternal -> DEBU 39a Removed container cove-peer0.org1.example.com-fabcar-1.0 2017-10-02 07:21:40.812 UTC [container] unlockContainer -> DEBU 39b container lock deleted(cove-peer0.org1.example.com-fabcar-1.0) 2017-10-02 07:21:40.812 UTC [chaincode] Launch -> ERRO 39c launchAndWaitForRegister failed Timeout expired while starting chaincode fabcar:1.0(networkid:cove,peerid:peer0.org1.example.com,tx:a55e7ca5e857de077fbe882a84590e898df62151b4caecf189cf82a45e1e4847) 2017-10-02 07:21:40.812 UTC [endorser] callChaincode -> DEBU 39d Exit 2017-10-02 07:21:40.812 UTC [endorser] simulateProposal -> ERRO 39e failed to invoke chaincode name:"lscc" on transaction a55e7ca5e857de077fbe882a84590e898df62151b4caecf189cf82a45e1e4847, error: Timeout expired while starting chaincode fabcar:1.0(networkid:cove,peerid:peer0.org1.example.com,tx:a55e7ca5e857de077fbe882a84590e898df62151b4caecf189cf82a45e1e4847) 2017-10-02 07:21:40.813 UTC [endorser] simulateProposal -> DEBU 39f Exit 2017-10-02 07:21:40.814 UTC [lockbasedtxmgr] Done -> DEBU 3a0 Done with transaction simulation / query execution [de0bc056-97ba-4ee9-8edb-e3b5290b1a11] 2017-10-02 07:21:40.814 UTC [endorser] ProcessProposal -> DEBU 3a1 Exit

fredbi (Mon, 02 Oct 2017 12:19:52 GMT):
Has joined the channel.

UmeshG (Mon, 02 Oct 2017 15:34:20 GMT):
Has joined the channel.

the_identity_guy (Mon, 02 Oct 2017 19:15:00 GMT):
Has joined the channel.

douglasthiel (Mon, 02 Oct 2017 19:48:26 GMT):
Has joined the channel.

douglasthiel (Mon, 02 Oct 2017 19:50:18 GMT):
Hi, first time user here. I’m running the first tutorial and I’m getting an error when running the following on my MacOS install: ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Creating network "net_byfn" with the default driver Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found ERROR !!!! Unable to start network Error response from daemon: No such container: cli So, I shut it down with: ./byfn.sh -m down I do have LittleSnitch running, not sure if that matters here, but I approved all network traffic for the script.

silliman (Mon, 02 Oct 2017 22:22:39 GMT):
@douglasthiel Did you download the Hyperledger Fabric Docker images? https://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries

douglasthiel (Mon, 02 Oct 2017 22:30:13 GMT):
yeah, did that. Doing it again in case I missed an error. Docker claims to be running.

douglasthiel (Mon, 02 Oct 2017 22:30:55 GMT):
How do I check Docker to see if the images are there?

silliman (Mon, 02 Oct 2017 22:51:26 GMT):
#douglasthiel `docker images`

douglasthiel (Mon, 02 Oct 2017 23:19:05 GMT):
@silliman Thanks. ./byfn.sh -m up ran to completion successfully. The original docker download must have had an issue. While there were an ample number of "Already exists" there were an equal number of "Pull complete" that I assume was new material. Additionally, docker found a couple of newer images.

falix (Tue, 03 Oct 2017 03:39:18 GMT):
Has joined the channel.

asuchit (Tue, 03 Oct 2017 05:12:09 GMT):
@Vadim I do not know much about the docker, just followed the 'first network' example and I got all the peers and orders from dockers. How Can I run it out of the container ? Thanks

lovesh (Tue, 03 Oct 2017 14:04:21 GMT):
Has joined the channel.

stacie (Tue, 03 Oct 2017 14:41:12 GMT):
Has joined the channel.

hect1c (Tue, 03 Oct 2017 15:09:17 GMT):
Has joined the channel.

hect1c (Tue, 03 Oct 2017 15:09:28 GMT):
Hey everyone, hope you are all having a good day. I'm new and following the tutorials on Hyperledger. I have setup the network, and now doing the application for the *fabcar*. When I run the startFrabric.sh get an error Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found I know this is fixed by setting a specific version to the fabric-orderer but I'm just not sure where it is accessing the docker-compose.yml file ?

yacovm (Tue, 03 Oct 2017 15:10:21 GMT):
@hect1c run `make orderer-docker`

yacovm (Tue, 03 Oct 2017 15:10:26 GMT):
in the fabric repo

hect1c (Tue, 03 Oct 2017 15:14:25 GMT):
@yacovm Thanks, just to confirm would that be the hyperledger/fabric repo or the hyperledger/fabric-samples repo ?

yacovm (Tue, 03 Oct 2017 15:14:36 GMT):
the former

hect1c (Tue, 03 Oct 2017 15:14:51 GMT):
Kindly appreciated

hect1c (Tue, 03 Oct 2017 15:41:25 GMT):
@yacovm So got through that thanks again, but now tried it again and it seems to be giving the same error for the hyperledger/fabric-couchDB

hect1c (Tue, 03 Oct 2017 15:41:25 GMT):
@yacovm So got through that thanks again, but now tried it and it seems to be giving the same error for the hyperledger/fabric-couchDB

nickgaski (Tue, 03 Oct 2017 15:48:56 GMT):
@hect1c run this command from the root of the `fabric-samples` directory. It will pull the images and binaries for you. `curl -sSL https://goo.gl/Gci9ZX | bash`

hect1c (Tue, 03 Oct 2017 15:49:33 GMT):
Ah I see, thanks.

hect1c (Tue, 03 Oct 2017 15:49:41 GMT):
@nickgaski

nickgaski (Tue, 03 Oct 2017 15:50:25 GMT):
you may want to start from scratch. `docker rmi -f $(docker images -q)` and then run the command

yacovm (Tue, 03 Oct 2017 16:22:18 GMT):
Just do `make docker`

nickgaski (Tue, 03 Oct 2017 17:17:58 GMT):
or that, if you want to clone fabric as well ^^

AlexanderEx123 (Tue, 03 Oct 2017 18:17:10 GMT):
is it possible to update genesis block on orderer without replacing the file and restarting service?

AlexanderEx123 (Tue, 03 Oct 2017 18:17:17 GMT):
only by transaction

jungilpark (Tue, 03 Oct 2017 20:07:22 GMT):
Has joined the channel.

jungilpark (Tue, 03 Oct 2017 20:10:03 GMT):
Hello, I have issue with dynamically create user. I am using https://github.com/hyperledger/fabric-sdk-node/blob/release/test/integration/e2e/query.js

jungilpark (Tue, 03 Oct 2017 20:11:00 GMT):
admin json file and pub / priv files are generated.

jungilpark (Tue, 03 Oct 2017 20:11:19 GMT):
but when I run, I got error like this.

jungilpark (Tue, 03 Oct 2017 20:11:31 GMT):
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority

jungilpark (Tue, 03 Oct 2017 20:13:00 GMT):
Using Admin user which is created by cryptoGen tool is working fine.

jungilpark (Tue, 03 Oct 2017 20:13:07 GMT):
do you have any idea?

jeffgarratt (Tue, 03 Oct 2017 20:27:02 GMT):
@jungilpark make sure the new users cert is signed by one of the CA's of the organizations that are members of the target channel

jungilpark (Tue, 03 Oct 2017 20:32:05 GMT):
Thanks a lot for the response.

jungilpark (Tue, 03 Oct 2017 20:32:16 GMT):
var keyPath = path.join(__dirname, util.format('../fixtures/channel/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/keystore', userOrg, userOrg)); var keyPEM = Buffer.from(readAllFiles(keyPath)[0]).toString(); var certPath = path.join(__dirname, util.format('../fixtures/channel/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/signcerts', userOrg, userOrg)); var certPEM = readAllFiles(certPath)[0]; var cryptoSuite = Client.newCryptoSuite(); if (userOrg) { cryptoSuite.setCryptoKeyStore(Client.newCryptoKeyStore({path: module.exports.storePathForOrg(ORGS[userOrg].name)})); client.setCryptoSuite(cryptoSuite); } return Promise.resolve(client.createUser({ username: 'peer'+userOrg+'Admin', mspid: ORGS[userOrg].mspid, cryptoContent: { privateKeyPEM: keyPEM.toString(), signedCertPEM: certPEM.toString() } }));

jungilpark (Tue, 03 Oct 2017 20:32:30 GMT):
this is working fine....

jungilpark (Tue, 03 Oct 2017 20:33:36 GMT):
I can query..

jungilpark (Tue, 03 Oct 2017 20:33:41 GMT):
var cop = new copService(caUrl, tlsOptions, ORGS[userOrg].ca.name, cryptoSuite); return cop.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' }).then((enrollment) => { t.pass('Successfully enrolled user \'' + username + '\''); logger.info('admin : ' , enrollment.key, enrollment.certificate); return member.setEnrollment(enrollment.key, enrollment.certificate, ORGS[userOrg].mspid); }).then(() => { var skipPersistence = false; if (!client.getStateStore()) { skipPersistence = true; } return client.setUserContext(member, skipPersistence); }).then(() => { return resolve(member);

jungilpark (Tue, 03 Oct 2017 20:34:27 GMT):
but this one throw an error / error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority

jungilpark (Tue, 03 Oct 2017 20:35:25 GMT):
So you mean I have to use Peer's certificate t enroll the user in my case? not with CA's certificate?

jungilpark (Tue, 03 Oct 2017 20:50:36 GMT):
I have been working on this for three days already. It would be really helpful for me if you have an example.

AlekNS (Wed, 04 Oct 2017 05:14:08 GMT):
Has joined the channel.

DarshanBc (Wed, 04 Oct 2017 05:15:19 GMT):
Can Somebody help me with the docs or links to setup Hyperledger-Fabric on a real PC

DarshanBc (Wed, 04 Oct 2017 05:15:19 GMT):
Can Somebody help me with the docs or links to setup Hyperledger-Fabric on 2different real PC

DarshanBc (Wed, 04 Oct 2017 05:15:19 GMT):
Can Somebody help me with the docs or links to setup Hyperledger-Fabric on 2different PC

rock_martin (Wed, 04 Oct 2017 06:01:49 GMT):
HI ,Can we access transaction id of the parent invocation of the transaction in chaincode?

mghasletwala (Wed, 04 Oct 2017 06:08:37 GMT):
I would like to understand CORE_PEER_CHAINCODELISTENADDRESS in detail.Can it be used to bind a peer to already existing chaincode container

mghasletwala (Wed, 04 Oct 2017 06:11:00 GMT):
I am using Fabric 1.0.2 and would like to deploy peer and chaincode in different docker daemon. If we use "dev-mode", we can build chain code image seperately and then provide the same to peer and then install it. But without using "dev-mode" can we use CORE_PEER_CHAINCODELISTENADDRESS attribute for same purpose?

asuchit (Wed, 04 Oct 2017 06:27:44 GMT):
I am having docker access issue while doing build command. How Can I solve it ? $ make native Building docker ccenv-image docker build -t hyperledger/fabric-ccenv build/image/ccenv Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=hyperledger%2Ffabric-ccenv&ulimits=null: dial unix /var/run/docker.sock: connect: permission denied make: *** [build/image/ccenv/.dummy-x86_64-1.1.0-snapshot-3145da5] Error 1 all docker commands works with sudo only.

mghasletwala (Wed, 04 Oct 2017 06:31:13 GMT):
did you installd ocker using sudo?

asuchit (Wed, 04 Oct 2017 06:31:28 GMT):
yes

mghasletwala (Wed, 04 Oct 2017 06:32:13 GMT):
then obviously, default permission is to root only

mghasletwala (Wed, 04 Oct 2017 06:33:24 GMT):
you need add your user to docker group

asuchit (Wed, 04 Oct 2017 06:33:25 GMT):
yes but make command does not work with sudo. How can I pass the permission on make ?

asuchit (Wed, 04 Oct 2017 06:34:10 GMT):
I did it using this command " I am having docker access issue while doing build command. How Can I solve it ? $ make native Building docker ccenv-image docker build -t hyperledger/fabric-ccenv build/image/ccenv Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=hyperledger%2Ffabric-ccenv&ulimits=null: dial unix /var/run/docker.sock: connect: permission denied make: *** [build/image/ccenv/.dummy-x86_64-1.1.0-snapshot-3145da5] Error 1 all docker commands works with sudo only. "

asuchit (Wed, 04 Oct 2017 06:34:20 GMT):
sorry

asuchit (Wed, 04 Oct 2017 06:34:30 GMT):
sudo gpasswd -a $USER docker

asuchit (Wed, 04 Oct 2017 06:34:40 GMT):
I did it using this command

asuchit (Wed, 04 Oct 2017 06:34:45 GMT):
but still same error

mghasletwala (Wed, 04 Oct 2017 06:35:35 GMT):
you have group named docker?

mghasletwala (Wed, 04 Oct 2017 06:35:53 GMT):
does your user has root access?

mghasletwala (Wed, 04 Oct 2017 06:37:32 GMT):
did you restart docker service, also did you log out and login back again

mghasletwala (Wed, 04 Oct 2017 06:38:18 GMT):
do other docker commands work?

asuchit (Wed, 04 Oct 2017 06:40:59 GMT):
other docker command work with sudo

asuchit (Wed, 04 Oct 2017 06:41:14 GMT):
I did not restart it

asuchit (Wed, 04 Oct 2017 06:43:37 GMT):
even after "sudo docker restart", I have same error

username343 (Wed, 04 Oct 2017 07:14:54 GMT):
can i use json strings as parameter while instantiating the chaincode, if yes, how can i do that? I tried using backticks for passing a json string, but i got the error: Error: Chaincode argument error: invalid character '`' looking for beginning of value

Vadim (Wed, 04 Oct 2017 07:19:07 GMT):
@username343 like this? `-c '{"Args":["init","a","100","b","200"]}'`

Vadim (Wed, 04 Oct 2017 07:21:08 GMT):
@asuchit add your user to the docker group, then logout and login

username343 (Wed, 04 Oct 2017 07:27:15 GMT):
thx for reply, but i'm trying to do something like this => -c '{"Args":["init","{"key":"value"}"]}'

username343 (Wed, 04 Oct 2017 07:27:39 GMT):
where each argument is a json string like key:value pair

Vadim (Wed, 04 Oct 2017 07:27:57 GMT):
try -c '{"Args":["init","{\"key\":\"value\"}"]}'

username343 (Wed, 04 Oct 2017 07:28:12 GMT):
i'll try this one thx

username343 (Wed, 04 Oct 2017 07:30:23 GMT):
this one works, thx

username343 (Wed, 04 Oct 2017 07:30:34 GMT):
@Vadim thank you

asuchit (Wed, 04 Oct 2017 07:32:30 GMT):
Thanks @Vadim , It is working now

asuchit (Wed, 04 Oct 2017 07:44:12 GMT):
fabric-tools Vs fabric-peer ? I am tried to remove the cli container from the "first network" example. I replaced the peer containers from fabric-peer to fabric-tools to create channel and join channel because cli container was using it. But do not have exact usage of fabric-tools ....

asuchit (Wed, 04 Oct 2017 07:51:22 GMT):
Can I make the use case so that all peers are running in one host and order is running in another host ? I tried to run it but while creating the channel, It is not able to find the orderer which is running on another host. How can I solve this problem of "first network" example ?

Vadim (Wed, 04 Oct 2017 07:53:36 GMT):
@asuchit check this project: https://github.com/yacovm/fabricDeployment

asuchit (Wed, 04 Oct 2017 07:57:36 GMT):
@Vadim, Thanks, I will check it.

mghasletwala (Wed, 04 Oct 2017 09:06:44 GMT):
@asuchit for multi-host network, you will need to make use of Docker Swarm with Overlay network

mghasletwala (Wed, 04 Oct 2017 09:08:32 GMT):
I would like to understand CORE_PEER_CHAINCODELISTENADDRESS in detail.Can it be used to bind a peer to already existing chaincode container I am using Fabric 1.0.2 and would like to deploy peer and chaincode in different docker daemon. If we use "dev-mode", we can build chain code image separately and then provide the same to peer and then install it. But without using "dev-mode" can we use CORE_PEER_CHAINCODELISTENADDRESS attribute for same purpose?

asuchit (Wed, 04 Oct 2017 09:34:33 GMT):
@mghasletwala, I will look for usage of Docker Swarm also and try to implement it. Thanks

username343 (Wed, 04 Oct 2017 11:07:56 GMT):
how does consensus work when one contract invokes a function of another contract? And are there any modifiers available in golang for writing chaincode like in case of solidity, where we had modifiers to restrict a function to be executed only by a certain address. What I'm looking for is to restrict a function to be invoked only by a certain contract and no one else

mritunjaychourasia (Wed, 04 Oct 2017 11:17:25 GMT):
Has joined the channel.

deva-madala (Wed, 04 Oct 2017 11:17:36 GMT):
Has joined the channel.

mritunjaychourasia (Wed, 04 Oct 2017 11:17:41 GMT):
Hello everyone, can someone help me how can I link the basic network to the dapp. the examples shown @http://fabricrepo.readthedocs.io/en/fix/sample-web-app/ is not working

Vadim (Wed, 04 Oct 2017 11:21:07 GMT):
@mritunjaychourasia fabcar uses the basic-network

Vadim (Wed, 04 Oct 2017 11:21:13 GMT):
https://github.com/hyperledger/fabric-samples/tree/release/fabcar

carlosfaria (Wed, 04 Oct 2017 12:51:07 GMT):
Has joined the channel.

avinash.cs (Wed, 04 Oct 2017 14:10:20 GMT):
Has joined the channel.

stevehooperjr (Wed, 04 Oct 2017 14:59:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5p9oo6xTt4oRjsxJB) If someone can @ me when this question is answered, I would appreciate it. I'm also very interested in that process.

alexandra_g (Wed, 04 Oct 2017 21:47:42 GMT):
Has joined the channel.

alexandra_g (Wed, 04 Oct 2017 23:40:42 GMT):
Hi All, I'm currently working through "building a first network instructions" and I've gotten to the point where I am running `./byfn.sh -m up` and getting the following error:

alexandra_g (Wed, 04 Oct 2017 23:40:46 GMT):

Message Attachments

alexandra_g (Wed, 04 Oct 2017 23:40:57 GMT):
any help would be great, thanks!!

username343 (Thu, 05 Oct 2017 04:05:23 GMT):
@alexandra_g did you try deleting your container and building the network again

AbhishekSeth (Thu, 05 Oct 2017 06:23:25 GMT):
hello.. I have one doubt.. The`genesis.block` is unique for the network or is it unique for every channel?

AbhishekSeth (Thu, 05 Oct 2017 06:23:25 GMT):
hello.. I have one doubt.. The `genesis.block` is unique for the network or is it unique for every channel?

Vadim (Thu, 05 Oct 2017 06:24:06 GMT):
@AbhishekSeth it's per network

bennettneale (Thu, 05 Oct 2017 07:38:03 GMT):
Has joined the channel.

ShaliceMoideen (Thu, 05 Oct 2017 09:28:36 GMT):
Has joined the channel.

username343 (Thu, 05 Oct 2017 09:32:59 GMT):
is there any way to implement a currency in hyperledger fabric or to include ethereum's ether in hyperledger transactions

kiproping (Thu, 05 Oct 2017 10:04:47 GMT):
Has joined the channel.

suvpatil (Thu, 05 Oct 2017 14:00:56 GMT):
Has joined the channel.

suvpatil (Thu, 05 Oct 2017 14:01:14 GMT):
Hi All , I got an below error while joining the peer to channel "Cannot create ledger from genesis block, due to LedgerID already exists" I have 5 org with 1 peer each, here created channel successfully, then join peer0 successfully, then for joining peer1 i got above error

nickgaski (Thu, 05 Oct 2017 14:10:34 GMT):
@alexandra_g - if you message me directly I'll help you get it up and running

jljordan_bcgov (Thu, 05 Oct 2017 15:52:21 GMT):
Has left the channel.

jeffgarratt (Thu, 05 Oct 2017 16:02:13 GMT):
@suvpatil would assume the channel is already defined for that peer. Try 'peer channel list' to see if it does.

d88 (Thu, 05 Oct 2017 16:40:26 GMT):
Has joined the channel.

a.ochs (Thu, 05 Oct 2017 16:41:52 GMT):
Why is there no composer-questions chatroom? ;)

jeffgarratt (Thu, 05 Oct 2017 17:02:44 GMT):
@a.ochs try #composer

PeterGirard (Thu, 05 Oct 2017 17:50:23 GMT):
Has joined the channel.

suvpatil (Thu, 05 Oct 2017 18:08:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vDZEd23kj2HqtXCut) @jeffgarratt "peer channel list" gives me nothing for that peer. That means that peer is not joined channel.

jeffgarratt (Thu, 05 Oct 2017 18:10:31 GMT):
@suvpatil check under the peers filestore location and see if you can find the named channel

jeffgarratt (Thu, 05 Oct 2017 18:14:02 GMT):
somehow the DB believes the channel is already registered

dharmjit (Thu, 05 Oct 2017 18:15:01 GMT):
Has joined the channel.

gvsmraju (Thu, 05 Oct 2017 18:19:23 GMT):
Has joined the channel.

suvpatil (Thu, 05 Oct 2017 18:19:32 GMT):
@jeffgarratt are you referring filestore to cryptoconfig!! please make me correct if I am wrong

jeffgarratt (Thu, 05 Oct 2017 18:19:46 GMT):
the filestore for the peer

jeffgarratt (Thu, 05 Oct 2017 18:20:18 GMT):
CORE_PEER_FILESYSTEMPATH

jeffgarratt (Thu, 05 Oct 2017 18:20:39 GMT):
there will be directories there created for each channel joined (if using levelDB, the default)

suvpatil (Thu, 05 Oct 2017 18:34:08 GMT):
I have not set the CORE_PEER_FILESYSTEMPATH in any compose file. If I print it on cmd it gives me nothing.

jayd22 (Thu, 05 Oct 2017 18:36:40 GMT):
Hi I'm having make issue can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/jaydeep/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) find: ‘/home/jaydeep/go/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory Creating build/goshim.tar.bz2 tar: Cowardly refusing to create an empty archive Try 'tar --help' or 'tar --usage' for more information. Makefile:289: recipe for target 'build/goshim.tar.bz2' failed make: *** [build/goshim.tar.bz2] Error 2

jayd22 (Thu, 05 Oct 2017 18:41:07 GMT):

Message Attachments

jeffgarratt (Thu, 05 Oct 2017 18:48:11 GMT):
@suvpatil fileSystemPath: /var/hyperledger/production

jeffgarratt (Thu, 05 Oct 2017 18:48:20 GMT):
that is the default from core.yaml

suvpatil (Thu, 05 Oct 2017 19:10:35 GMT):
@jeffgarratt there is no named channel found in fileSystemPath. But earlier I used data persistence using volumes: - /var/hyperledger/peer0:/var/hyperledger/production

suvpatil (Thu, 05 Oct 2017 19:10:59 GMT):
but later I removed the complete folder from my local machine

suvpatil (Thu, 05 Oct 2017 19:11:40 GMT):
that may create a issue?

suvpatil (Thu, 05 Oct 2017 19:12:21 GMT):
I also commented volume in docker-compose file

jeffgarratt (Thu, 05 Oct 2017 19:25:09 GMT):
yes... you may have wiped the store for peer0 away

jeffgarratt (Thu, 05 Oct 2017 19:25:23 GMT):
or at least the addition of the channel

jeffgarratt (Thu, 05 Oct 2017 19:25:30 GMT):
I would start again if you can

iuriarte (Thu, 05 Oct 2017 20:13:40 GMT):
Has joined the channel.

AnandBanik (Thu, 05 Oct 2017 21:01:29 GMT):
Has joined the channel.

AnandBanik (Thu, 05 Oct 2017 21:03:35 GMT):
hi guys...i am new to blockchain and hyperledger..I am trying to build a simple app...i completed the "Build your network" tutorial, but could not understand user enrollment, registration....would someone please help me with User registration and

AnandBanik (Thu, 05 Oct 2017 21:04:10 GMT):
how to check user access in chaincode

AnandBanik (Thu, 05 Oct 2017 21:05:06 GMT):
I have posted in stackoverflow : https://stackoverflow.com/questions/46594569/user-creation-in-hyperledger-fabric-1-0

bennettneale (Thu, 05 Oct 2017 22:09:11 GMT):
Hi All -- Is there a general pattern for accessing off-chain data like an "oracle"?

ArnabChatterjee (Fri, 06 Oct 2017 01:20:56 GMT):
Hello All, I need to confirm a few things. Timeout configuration for 1. CC in Node SDK can be achieved by `Client.setConfigSetting('request_timeout', )`. -> default 45s 2. CC execution timeout can be done in core.yaml of peer `chaincode.executetimeout` -> default 30s 3. Query execution timeout for couchDb can be done by `ledger.state.couchDBConfig.requestTimeout` -> default 35s If the above is correct, then shouldn't `chaincode.executetimeout` > `ledger.state.couchDBConfig.requestTimeout` in the default configuration? Thanks. :)

ArnabChatterjee (Fri, 06 Oct 2017 01:20:56 GMT):
Hello All, I need to confirm a few things. Timeout configuration for 1. CC in Node SDK can be achieved by `Client.setConfigSetting('request_timeout', )`. -> default 45s 2. CC execution timeout can be done in core.yaml of peer, by modifying `chaincode.executetimeout` -> default 30s 3. Query execution timeout for couchDb can be done in core.yaml of peer by modifying `ledger.state.couchDBConfig.requestTimeout` -> default 35s If the above is correct, then shouldn't `chaincode.executetimeout` > `ledger.state.couchDBConfig.requestTimeout` in the default configuration? Thanks. :)

ArnabChatterjee (Fri, 06 Oct 2017 04:55:33 GMT):
Hello everyone. I am using Go chaincodes and want to read files from chaincode. Can anyone let me know how to mount volumes (where files would be placed) in chaincode docker container?

AbhishekSeth (Fri, 06 Oct 2017 05:21:28 GMT):
@ArnabChatterjee, u can do that by extending the volumes in ur docker-compose.yaml file. Does not that work?

ArnabChatterjee (Fri, 06 Oct 2017 05:22:23 GMT):
@AbhishekSeth - I tried that with the peer image by mounting a path with the file in the docker-compose.yaml but it does not work

ArnabChatterjee (Fri, 06 Oct 2017 05:22:59 GMT):
It says no such file or directory

AbhishekSeth (Fri, 06 Oct 2017 05:25:50 GMT):
Sorry.. The other though not-so-suitable solution is that u create a byte stream of the content of the file, pass as argument in ur txn invocation, read that bytes data and then use it

AbhishekSeth (Fri, 06 Oct 2017 05:28:16 GMT):
hey all...

AbhishekSeth (Fri, 06 Oct 2017 05:33:23 GMT):
Hey all, My doubt is regarding endorsement policy. In the policy, we define like: `signed-by` `admin` of `org1`. Is this signing checked against the the signature of the txn submitter? For ex: I invoked a txn on `org1` using its `admin`, so will the endorsement policy be satisfied because the `admin` of `org1` SUBMITS the txn?

AbhishekSeth (Fri, 06 Oct 2017 05:34:07 GMT):
Whose signatures are checked against for endorsement policy??

rolandnsharp (Fri, 06 Oct 2017 06:09:00 GMT):
Hi, I'm running through the first-network tutorial and running into an error when trying to install the platform specific binaries after cloning the repo. `Warning: failed to get default registry endpoint from daemon`.

rolandnsharp (Fri, 06 Oct 2017 06:09:30 GMT):
```(Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ ```

rolandnsharp (Fri, 06 Oct 2017 06:10:24 GMT):
My `sudo docker run hello-world` docker test is working just fine ...

Vadim (Fri, 06 Oct 2017 06:11:18 GMT):
@rolandnsharp add you user to the "docker" group, then logout and login again. You don't need to use "sudo" with docker commands.

rolandnsharp (Fri, 06 Oct 2017 06:12:19 GMT):
@Vadim I have already run `sudo usermod -aG docker $USER` and logged out and in

Vadim (Fri, 06 Oct 2017 06:13:07 GMT):
what does `groups` show?

rolandnsharp (Fri, 06 Oct 2017 06:15:04 GMT):
$ grep /etc/group -e "docker" docker:x:999:roland

Vadim (Fri, 06 Oct 2017 06:16:22 GMT):
and you still need "sudo" for docker commands?

rolandnsharp (Fri, 06 Oct 2017 06:16:50 GMT):
they don't work with sudo and without sudo

rolandnsharp (Fri, 06 Oct 2017 06:19:23 GMT):
@Vadim I'll try another logout and in

rolandnsharp (Fri, 06 Oct 2017 06:21:33 GMT):
No luck. ```===> List out hyperledger docker images Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/images/json: dial unix /var/run/docker.sock: connect: permission denied ```

Vadim (Fri, 06 Oct 2017 06:23:42 GMT):
@rolandnsharp what does `ls -la /var/run/docker.sock ` show?

rolandnsharp (Fri, 06 Oct 2017 06:24:07 GMT):
`srw-rw---- 1 root docker 0 Oct 6 14:51 /var/run/docker.sock`

Vadim (Fri, 06 Oct 2017 06:24:27 GMT):
same for me

Vadim (Fri, 06 Oct 2017 06:24:34 GMT):
strange it does not work for you

rolandnsharp (Fri, 06 Oct 2017 06:24:38 GMT):
yes

rolandnsharp (Fri, 06 Oct 2017 06:25:08 GMT):
hmm. I think I'll try to reinstall docker?

Vadim (Fri, 06 Oct 2017 06:25:57 GMT):
I guess you can try

Vadim (Fri, 06 Oct 2017 06:26:57 GMT):
maybe try to restart docker service first @rolandnsharp

rolandnsharp (Fri, 06 Oct 2017 06:27:19 GMT):
will do, thanks

rolandnsharp (Fri, 06 Oct 2017 06:32:13 GMT):
@Vadim haha yeah that did the trick. Turn it off and on again ...

Vadim (Fri, 06 Oct 2017 06:32:24 GMT):
yeah, as usual

mthieke (Fri, 06 Oct 2017 07:31:24 GMT):
Has joined the channel.

rolandnsharp (Fri, 06 Oct 2017 07:43:30 GMT):
Hi, I've just been going through the steps to build my first-network manually. I'm at the step 'Create and Join Channel'. I've entered my docker container and ran `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` but I receive an error:

rolandnsharp (Fri, 06 Oct 2017 07:43:34 GMT):
```root@9a4f3c09fbe3:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2017-10-06 07:35:33.888 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-06 07:35:33.888 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-10-06 07:35:33.893 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-10-06 07:35:33.894 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-10-06 07:35:33.894 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-10-06 07:35:33.894 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2017-10-06 07:35:33.894 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2017-10-06 07:35:33.894 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-10-06 07:35:33.894 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 9289486E0CC535AF8AA14312EBD98D80975809393DD01D95F200F9813F81D4FE 2017-10-06 07:35:33.895 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-10-06 07:35:33.895 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-10-06 07:35:33.895 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2017-10-06 07:35:33.895 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2017-10-06 07:35:33.895 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608C5E4DCCE0522...4542891E0BBCA7FB60497FA683E4FB7A 2017-10-06 07:35:33.896 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: FD7712F3037CF0520388B1168CBD691994C6A0816749E609622DB265D58730A5 Error: Got unexpected status: BAD_REQUEST```

rolandnsharp (Fri, 06 Oct 2017 07:44:31 GMT):
I've tested ran `$CORE_PEER_TLS_ENABLED` in the container and this var seems to be non existant

rolandnsharp (Fri, 06 Oct 2017 07:45:11 GMT):
and I can't find it in my docker-compose-base.yaml

Vadim (Fri, 06 Oct 2017 07:48:21 GMT):
@rolandnsharp it's because this command is run from the script https://github.com/hyperledger/fabric-samples/blob/release/first-network/scripts/script.sh which is executed in the separate container.

Vadim (Fri, 06 Oct 2017 07:49:33 GMT):
also, the value of that var seems to be set in https://github.com/hyperledger/fabric-samples/blob/ca8fad315128a528dc8f3eab2395105723d5f95b/first-network/base/peer-base.yaml#L19

rolandnsharp (Fri, 06 Oct 2017 07:51:21 GMT):
@Vadim hmm. So I'm not supposed to run this line from within the container that I created? I didn't run that command from the script. I'm going through the tutorial manually

Vadim (Fri, 06 Oct 2017 07:52:53 GMT):
I guess the var should be set, since it's defined in the peer-base

Vadim (Fri, 06 Oct 2017 07:53:21 GMT):
there are some other vars which script sets, but not that one

rolandnsharp (Fri, 06 Oct 2017 07:57:03 GMT):
@Vadim I'm not sure I'm following. But now when I attempt to start the network with docker-compose without the -d flag I get this: ```orderer.example.com | 2017-10-06 07:54:50.465 UTC [orderer/common/broadcast] Handle -> WARN f3e Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application/Org2MSP at version 0, but got version 1 orderer.example.com | 2017-10-06 07:54:50.465 UTC [orderer/main] func1 -> DEBU f3f Closing Broadcast stream orderer.example.com | 2017-10-06 07:54:50.468 UTC [orderer/common/deliver] Handle -> WARN f40 Error reading from stream: rpc error: code = Canceled desc = context canceled orderer.example.com | 2017-10-06 07:54:50.468 UTC [orderer/main] func1 -> DEBU f41 Closing Deliver stream ```

Vadim (Fri, 06 Oct 2017 07:57:24 GMT):
I think it's because your network is configured already

Vadim (Fri, 06 Oct 2017 07:57:54 GMT):
you need to put it down and make sure that script.sh is not run

rolandnsharp (Fri, 06 Oct 2017 07:59:01 GMT):
How did script.sh run without me

Vadim (Fri, 06 Oct 2017 08:06:51 GMT):
@rolandnsharp https://github.com/hyperledger/fabric-samples/blob/release/first-network/docker-compose-cli.yaml#L70

rolandnsharp (Fri, 06 Oct 2017 08:08:47 GMT):
@Vadim So just put down the network with down script then delete that line?

Vadim (Fri, 06 Oct 2017 08:09:37 GMT):
yes

rolandnsharp (Fri, 06 Oct 2017 08:09:46 GMT):
thanks

giokou (Fri, 06 Oct 2017 08:12:59 GMT):
Has joined the channel.

giokou (Fri, 06 Oct 2017 08:13:09 GMT):
hi all, I am upgrading an existing application from v0.6 to v1. I am having some trouble to migrate the stub.ReadCertAttribute(). What I want to achieve is to get the current user that is triggering the request. Any help on this would be really appreciated. Thank you

Vadim (Fri, 06 Oct 2017 08:14:25 GMT):
@giokou stub.getCreator(), search the #fabric channel on how to use it

rolandnsharp (Fri, 06 Oct 2017 08:14:56 GMT):
@Vadim So this will happen to everyone following the docs? Should I add a line to the docs saying that the script.sh needs to be removed so that it doesn't run when docker-compose starts?

Vadim (Fri, 06 Oct 2017 08:15:12 GMT):
@rolandnsharp

Vadim (Fri, 06 Oct 2017 08:15:12 GMT):
@rolandnsharp don't know, I didn't read that docs

giokou (Fri, 06 Oct 2017 08:15:31 GMT):
Thank you @Vadim

username343 (Fri, 06 Oct 2017 09:14:41 GMT):
Hi, in fabcar example folder the creds folder contains PeerAdmin files. How are those files generated and in the startFabric.sh script for the example the files in creds folder are copied to ~/.hf-keystore/ folder, but i did not find anything using that folder. I'm trying to write a web application to query and invoke a chaincode written in go. what is the process for writing a web application using node sdk?

ccebrecos (Fri, 06 Oct 2017 09:53:43 GMT):
Has joined the channel.

gentios (Fri, 06 Oct 2017 12:35:46 GMT):
I want to start the e2e_cli with kafka in ubuntu but I don't want to make docker or make release

gentios (Fri, 06 Oct 2017 12:35:55 GMT):
just to download the platform specific binaries

gentios (Fri, 06 Oct 2017 12:35:58 GMT):
how to do that

SametYilmaz (Fri, 06 Oct 2017 15:10:12 GMT):
Has joined the channel.

AnandBanik (Fri, 06 Oct 2017 16:54:00 GMT):
Hi All....I getting the below error while enrolling the admin user from the Fabric-ca server

AnandBanik (Fri, 06 Oct 2017 16:54:02 GMT):
root@931a2bbc611a:~# export FABRIC_CA_CLIENT_HOME=$HOME/fabric-ca/clients/admin root@931a2bbc611a:~# fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 2017/10/06 16:41:14 [INFO] User provided config file: /root/fabric-ca/clients/admin/fabric-ca-client-config.yaml 2017/10/06 16:41:14 [INFO] Created a default configuration file at /root/fabric-ca/clients/admin/fabric-ca-client-config.yaml 2017/10/06 16:41:14 [INFO] generating key: &{A:ecdsa S:256} 2017/10/06 16:41:14 [INFO] encoded CSR Error: POST failure [Post http://localhost:7054/enroll: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"]; not sending POST http://localhost:7054/enroll Authorization: Basic YWRtaW46YWRtaW5wdw== {"hosts":["931a2bbc611a"],"certificate_request":"-----BEGIN CERTIFICATE REQUEST-----\nMIIBQjCB6QIBADBdMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xp\nbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMQ8wDQYDVQQLEwZGYWJyaWMxDjAMBgNV\nBAMTBWFkbWluMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEkkt0SM4iK2h1hq2V\n92u2B8iqNkX2IjSaVJqqjY/48Al+gNSFu/omArz3BLAs1/yOHwBYw0jW30ELpvfR\n0J3J+6AqMCgGCSqGSIb3DQEJDjEbMBkwFwYDVR0RBBAwDoIMOTMxYTJiYmM2MTFh\nMAoGCCqGSM49BAMCA0gAMEUCIQCYtifMME8w/nnlVGAnjJn1zI3xRqWSSRIBlgLY\ntpLsjQIgFjFisyRUOsr09EIS/b6sVOn9uaJYcQtgqaHL3gx9szU=\n-----END CERTIFICATE REQUEST-----\n","profile":"","crl_override":"","label":"","CAName":""}

AnandBanik (Fri, 06 Oct 2017 16:54:09 GMT):
Could you please help

mastersingh24 (Fri, 06 Oct 2017 19:35:19 GMT):
@AnandBanik - Is TLS enabled on your fabric-ca?

aatkddny (Fri, 06 Oct 2017 20:18:12 GMT):
Has joined the channel.

aatkddny (Fri, 06 Oct 2017 20:21:40 GMT):
Trying to deploy some java chaincode to a development fabric.

aatkddny (Fri, 06 Oct 2017 20:21:40 GMT):
Trying to deploy some java chaincode to a development fabric. Using the latest version of fabric deployed from fabric-samples/chaincode-docker-devmode

aatkddny (Fri, 06 Oct 2017 20:21:40 GMT):
Trying to deploy some java chaincode to a development fabric. Using the latest version of fabric deployed from fabric-samples/chaincode-docker-devmode. Built a slightly modified example from the latest java-sdk from the example here: fabric-sdk-java/src/test/fixture/sdkintegration/javacc/example_cc/src/main/java/example/SimpleChaincode.java. When I do the peer chaincode install I'm seeing Error: Java chaincode is work-in-progress and disabled. Is this correct or am I using a bad combination of the fabric and the java sdk? Obviously if it is disabled is there an ETA on it not being disabled - my go-fu is weak and learning it may slow things down relative to just using composer for this poc.

aatkddny (Fri, 06 Oct 2017 20:21:40 GMT):
Trying to deploy some java chaincode to a development fabric. Using the latest version of fabric deployed from fabric-samples/chaincode-docker-devmode. I built a slightly modified example from the latest java-sdk from the example here: fabric-sdk-java/src/test/fixture/sdkintegration/javacc/example_cc/src/main/java/example/SimpleChaincode.java. When I do the peer chaincode install I'm seeing Error: Java chaincode is work-in-progress and disabled. Is this correct or am I using a bad combination of the fabric and the java sdk? Obviously if it is disabled is there an ETA on it not being disabled - my go-fu is weak and learning it may slow things down. I may as well resort to using composer for this poc.

aitoribanez (Fri, 06 Oct 2017 23:45:27 GMT):
Has joined the channel.

sorenwolf (Sat, 07 Oct 2017 04:44:31 GMT):
Has joined the channel.

garima (Sat, 07 Oct 2017 07:21:50 GMT):
Has joined the channel.

garima (Sat, 07 Oct 2017 07:48:04 GMT):
hi , I am trying to create first-network but im getting following error bin/bash ./scripts/script.sh : no directory or file found . Please help

anuragsrivastava (Sat, 07 Oct 2017 08:38:14 GMT):
Has joined the channel.

mastersingh24 (Sat, 07 Oct 2017 10:49:48 GMT):
@garima - are you running on Windows?

garima (Sun, 08 Oct 2017 05:02:10 GMT):
@mastersingh24 yes windows 8.1

mastersingh24 (Sun, 08 Oct 2017 10:12:11 GMT):
@garima - http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#windows-extras

mastersingh24 (Sun, 08 Oct 2017 10:12:48 GMT):
You'll likely need to delete your clone of fabric-samples, make the git config changes and the clone fabric-samples again

xiaxia102102 (Sun, 08 Oct 2017 14:18:39 GMT):
Error: Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.orderer.local\")" Usage: peer channel create [flags]

xiaxia102102 (Sun, 08 Oct 2017 14:19:11 GMT):
this error how to solved? thanks

username343 (Mon, 09 Oct 2017 05:35:43 GMT):
can anybody please tell me what are the contents of creds folder in the fabcar example and how are those generated? I tried to take the PeerAdmin file out of the creds folder and i was not able to send transaction using query.js or inovke.js however even when i put the file PeerAdmin back in the creds folder query.js and invoke.js were not working as they were before this experiment. What do you think is the reason behind that?

lclclc (Mon, 09 Oct 2017 05:43:00 GMT):
Does anyone knows how can I query a block via chaincodes? I don't see any api in the chaincode shims here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim

lclclc (Mon, 09 Oct 2017 05:44:49 GMT):
And If know a transaction id, how can I know which block it belongs to?

asuchit (Mon, 09 Oct 2017 06:01:55 GMT):
Hi All, 1. One overlay network. 2. 2 services on one host 3. 1 service on another host How can I attach all 3 services with this overlay network ? Thanks

garima (Mon, 09 Oct 2017 06:38:19 GMT):
@mastersingh24 thanks i'll try that. :)

lclclc (Mon, 09 Oct 2017 06:44:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nFjfzGNxbPoLoGgo6) @username343 credentials are generated by CA node as far as I know.

lclclc (Mon, 09 Oct 2017 06:44:25 GMT):
Does anyone knows how can I query a block via chaincodes? I don't see any api in the chaincode shims here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim And If know a transaction id, how can I know which block it belongs to?

lclclc (Mon, 09 Oct 2017 06:44:43 GMT):
Does anyone knows how can I query a block via chaincodes? I don't see any api in the chaincode shims here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim And If know a transaction id, how can I know which block it belongs to?

username343 (Mon, 09 Oct 2017 06:46:57 GMT):
@lclclc thanks, yes i tried generating credentials via fabric-ca and then using those credentials instead of the PeerAdmin in creds folder, but doing that i get an error stating that supplied identity is not valid, do you happen to know which files from the cacerts, keystore and signcerts am i supposed to provide to node sdk for invoking or querying a chaincode

lclclc (Mon, 09 Oct 2017 06:47:26 GMT):
I don't even know how to use fabric-ca yet.

username343 (Mon, 09 Oct 2017 06:48:38 GMT):
@lclclc ok

asuchit (Mon, 09 Oct 2017 06:51:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G8ybTxiTRfGLgSQeG) @asuchit I am starting 4 services in a compose file and given below information about overlay network but only one service/container is connected on that overlay network and it is random. version: '3' networks: net_byfn: external: name: net_byfn services: peer0_org1_example_com: .... peer1_org1_example_com: .... peer0_org2_example_com: .... peer1_org2_example_com: ....

username343 (Mon, 09 Oct 2017 07:54:19 GMT):
does anybody know what is meant by the error "Failed to load user "admin" from local key value store. Error: Error: Private key missing from key store. Can not establish the signing identity for user admin" when using nodejs sdk for invoking and querying chaincode

Vadim (Mon, 09 Oct 2017 07:55:46 GMT):
@asuchit https://docs.docker.com/compose/compose-file/#networks

MShakeri (Mon, 09 Oct 2017 08:05:37 GMT):
Hi there, When I want to fetch config block from orderer with following command: ```peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid --tls true --cafile $CAFILE``` I get this error: ```trailing args detected``` Could it be a bug in https://github.com/hyperledger/fabric/blob/release/peer/channel/fetchconfig.go#L60 ?

MShakeri (Mon, 09 Oct 2017 08:05:37 GMT):
Hi there, When I want to fetch config block from orderer with following command: ``` peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid --tls true --cafile $CAFILE ``` I get this error: ``` trailing args detected ``` Could it be a bug in https://github.com/hyperledger/fabric/blob/release/peer/channel/fetchconfig.go#L60 ?

MShakeri (Mon, 09 Oct 2017 08:05:37 GMT):
Hi there, When I want to fetch config block from orderer with following command: ``` peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid --tls true --cafile $CAFILE ``` I get this error: ``` trailing args detected ``` Could it be a bug in https://github.com/hyperledger/fabric/blob/release/peer/channel/fetchconfig.go#L60 ?

asuchit (Mon, 09 Oct 2017 08:44:37 GMT):
@Vadim Thanks I joined the other host also as manager so overlay network is visible to the host which is joined swarm as manager. Now this command "docker network inspect net_byfn" is showing all 4 peer containers are connected with net_byfn on one host and 1 orderer container is connected with net_byfn on another host. Facing problem while creating the channel because docker version file does not support '.' in the service name and all assets, certificates are created for *example.com form. Now, I need to solve it. Thanks again

Vadim (Mon, 09 Oct 2017 08:46:48 GMT):
@asuchit rename the services in compose file without dots, then add the correct aliases (with dots) to networks section

asuchit (Mon, 09 Oct 2017 08:46:52 GMT):
one more thing, When services are created on swarm than stack name as prefix added to all the services. Can we neglect it ?

Vadim (Mon, 09 Oct 2017 08:47:36 GMT):
``` orderer_example_com: networks: byfn_default: aliases: - orderer.example.com

asuchit (Mon, 09 Oct 2017 08:49:22 GMT):
@Vadim Hmmmm, Thanks I will try it. Interesting ...

username343 (Mon, 09 Oct 2017 08:52:17 GMT):
does anyone know about nodejs sdk's error " Promise is rejected: Error: Failed to deserialize creator identity, err Could not decode the PEM structure"

ccebrecos (Mon, 09 Oct 2017 09:08:05 GMT):
Hi ! I just installed hyperledger fabric on a server, i run the e2e_cli example environment. At the time to attempt to create a new channel it crashes and returns: root@29c916dfb3b0:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -c myc2 -o orderer.example.com:7050 2017-10-09 09:01:02.188 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-09 09:01:02.189 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-10-09 09:01:02.190 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-10-09 09:01:02.190 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-10-09 09:01:02.191 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 45C1D6CA048224A7369C1C1696AB187683CDC28BF29F94CAFF8842D0B50D5AB9 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A80070A5208021A0608CEF5ECCE0522...D71404017B6C236A5B6F38E84331117E 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: F64D92248FCCCA3C16D98E21CBB428A2EC8ADD95C4B5DFE9C0B78C75B5C6D4E3 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-10-09 09:01:02.192 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2017-10-09 09:01:02.192 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: BB9A4479C40D8BBB4E84562D240101260E5D60D3381DA26241B1E80A9FBCDFB3 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP 2017-10-09 09:01:02.193 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity 2017-10-09 09:01:02.193 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP 2017-10-09 09:01:02.193 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity 2017-10-09 09:01:02.193 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0ABE060A1008021A0608CEF5ECCE0522...ED9D773ED48E0B7322535DFA75026DF5 2017-10-09 09:01:02.193 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 7E5D27C85C690A44094B0105D5F810FD675B647AF9E49FFBE512F7CFC6970EF6 2017-10-09 09:01:02.193 UTC [grpc] Printf -> DEBU 016 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48524->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.194 UTC [grpc] Printf -> DEBU 017 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. 2017-10-09 09:01:02.195 UTC [grpc] Printf -> DEBU 019 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48526->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.194 UTC [grpc] Printf -> DEBU 018 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48528->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } 2017-10-09 09:01:02.196 UTC [grpc] Printf -> DEBU 01a transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48530->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.197 UTC [grpc] Printf -> DEBU 01b grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48532->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } 2017-10-09 09:01:03.202 UTC [grpc] Printf -> DEBU 01c transport: http2Client.notifyError got notified that the client transport was broken write tcp 172.18.0.7:48536->172.18.0.6:7050: write: connection reset by peer. Error: Error getting broadcast client: Error connecting to orderer.example.com:7050 due to rpc error: code = Internal desc = transport: write tcp 172.18.0.7:48536->172.18.0.6:7050: write: connection reset by peer 2017-10-09 09:01:03.203 UTC [grpc] Printf -> DEBU 01d grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48534->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 }

ccebrecos (Mon, 09 Oct 2017 09:08:05 GMT):
Hi ! I just installed hyperledger fabric on a server, i run the e2e_cli example environment. At the time to attempt to create a new channel it crashes and returns: root@29c916dfb3b0:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -c myc2 -o orderer.example.com:7050 2017-10-09 09:01:02.188 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-09 09:01:02.189 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-10-09 09:01:02.190 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-10-09 09:01:02.190 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-10-09 09:01:02.191 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 45C1D6CA048224A7369C1C1696AB187683CDC28BF29F94CAFF8842D0B50D5AB9 2017-10-09 09:01:02.191 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A80070A5208021A0608CEF5ECCE0522...D71404017B6C236A5B6F38E84331117E 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: F64D92248FCCCA3C16D98E21CBB428A2EC8ADD95C4B5DFE9C0B78C75B5C6D4E3 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-10-09 09:01:02.192 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2017-10-09 09:01:02.192 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 2017-10-09 09:01:02.192 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: BB9A4479C40D8BBB4E84562D240101260E5D60D3381DA26241B1E80A9FBCDFB3 2017-10-09 09:01:02.192 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP 2017-10-09 09:01:02.193 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity 2017-10-09 09:01:02.193 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP 2017-10-09 09:01:02.193 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity 2017-10-09 09:01:02.193 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0ABE060A1008021A0608CEF5ECCE0522...ED9D773ED48E0B7322535DFA75026DF5 2017-10-09 09:01:02.193 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 7E5D27C85C690A44094B0105D5F810FD675B647AF9E49FFBE512F7CFC6970EF6 2017-10-09 09:01:02.193 UTC [grpc] Printf -> DEBU 016 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48524->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.194 UTC [grpc] Printf -> DEBU 017 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. 2017-10-09 09:01:02.195 UTC [grpc] Printf -> DEBU 019 transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48526->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.194 UTC [grpc] Printf -> DEBU 018 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48528->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } 2017-10-09 09:01:02.196 UTC [grpc] Printf -> DEBU 01a transport: http2Client.notifyError got notified that the client transport was broken read tcp 172.18.0.7:48530->172.18.0.6:7050: read: connection reset by peer. 2017-10-09 09:01:02.197 UTC [grpc] Printf -> DEBU 01b grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48532->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } 2017-10-09 09:01:03.202 UTC [grpc] Printf -> DEBU 01c transport: http2Client.notifyError got notified that the client transport was broken write tcp 172.18.0.7:48536->172.18.0.6:7050: write: connection reset by peer. Error: Error getting broadcast client: Error connecting to orderer.example.com:7050 due to rpc error: code = Internal desc = transport: write tcp 172.18.0.7:48536->172.18.0.6:7050: write: connection reset by peer 2017-10-09 09:01:03.203 UTC [grpc] Printf -> DEBU 01d grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.18.0.7:48534->172.18.0.6:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } Anyone knows what happens and why i can not create another channel ? Thanks!

Vadim (Mon, 09 Oct 2017 09:11:11 GMT):
@ccebrecos anything in the orderer logs?

username343 (Mon, 09 Oct 2017 09:14:52 GMT):
@Vadim do you know if there is any nodejs sdk documentation detailing the public and private key use in settinup the wallet for invoking chaincode

Vadim (Mon, 09 Oct 2017 09:15:51 GMT):
I only know https://fabric-sdk-node.github.io/ and you of course can read the sdk code, since it's open-source

ccebrecos (Mon, 09 Oct 2017 09:17:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RYhg99WePgv7yKZPg) @Vadim 2017-10-09 09:01:02.190 UTC [grpc] Printf -> DEBU f20 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48524": tls: first record does not look like a TLS handshake 2017-10-09 09:01:02.194 UTC [grpc] Printf -> DEBU f21 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48528": tls: first record does not look like a TLS handshake 2017-10-09 09:01:02.195 UTC [grpc] Printf -> DEBU f22 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48526": tls: first record does not look like a TLS handshake 2017-10-09 09:01:02.196 UTC [grpc] Printf -> DEBU f23 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48530": tls: first record does not look like a TLS handshake 2017-10-09 09:01:02.196 UTC [grpc] Printf -> DEBU f24 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48532": tls: first record does not look like a TLS handshake 2017-10-09 09:01:03.201 UTC [grpc] Printf -> DEBU f25 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48536": tls: first record does not look like a TLS handshake 2017-10-09 09:01:03.203 UTC [grpc] Printf -> DEBU f26 grpc: Server.Serve failed to complete security handshake from "172.18.0.7:48534": tls: first record does not look like a TLS handshake These are the docker logs

Vadim (Mon, 09 Oct 2017 09:17:42 GMT):
@ccebrecos seems like you don't use TLS when you create the channel

ccebrecos (Mon, 09 Oct 2017 09:20:45 GMT):
@Vadim if i just add --tls at the end of the command it returns the following error: root@29c916dfb3b0:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -c myc2 -o orderer.example.com:7050 --tls 2017-10-09 09:19:12.749 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-09 09:19:12.749 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity Error: grpc: no transport security set (use grpc.WithInsecure() explicitly or set credentials) which credentials i should specify ?

Vadim (Mon, 09 Oct 2017 09:23:18 GMT):
@ccebrecos check the script.sh how it's done there: https://github.com/hyperledger/fabric-samples/blob/release/first-network/scripts/script.sh

ccebrecos (Mon, 09 Oct 2017 09:24:26 GMT):
@Vadim i will! Thanks

jichen (Mon, 09 Oct 2017 09:36:41 GMT):
Has joined the channel.

ccebrecos (Mon, 09 Oct 2017 09:41:26 GMT):
@Vadim it is mandatory to create a transaction with the configtxgen to create the base of the channel or it will be by default ?

lclclc (Mon, 09 Oct 2017 10:28:12 GMT):
@Vadim Do you know how can I query a block via chaincodes? I don't see any api in the chaincode shims here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim And If know a transaction id, how can I know which block it belongs to?

Vadim (Mon, 09 Oct 2017 10:30:19 GMT):
@lclclc I'm not sure this is possible

lclclc (Mon, 09 Oct 2017 10:34:22 GMT):
none of them possible?

Vadim (Mon, 09 Oct 2017 10:35:54 GMT):
@lclclc as you can see, there is no API for that. I suggest you ask on #chaincode-dev

lclclc (Mon, 09 Oct 2017 10:36:56 GMT):
here is fabric-question and I should ask on chaincode-dev……hahaha

lclclc (Mon, 09 Oct 2017 10:37:05 GMT):
thanks for advising

habpygo (Mon, 09 Oct 2017 10:41:12 GMT):
@lclclc a similar question came up on the fabric-sdk-go channel; see discussion starting on October 1. You can query the block with the sdk, but the information coming out of there is not (yet) usable.

Vadim (Mon, 09 Oct 2017 10:42:29 GMT):
@lclclc you're welcome

lclclc (Mon, 09 Oct 2017 11:10:28 GMT):
I didn't get what is " the information coming out of there is not (yet) usable." Haven't this been release?

lclclc (Mon, 09 Oct 2017 11:10:34 GMT):
@habpygo

username343 (Mon, 09 Oct 2017 11:16:16 GMT):
I've registered a new user with fabric-ca in fabcar example and trying to configure that user for invoking the chaincode however i'm getting the error " Promise is rejected: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority", does it mean i'm taking the wrong ceritifate or key from the fabric-ca, certificate i'm using the cert.pem file obtained in the signcert folder and for private key i'm using the key obtained in the keystore folde of fabric-ca-server msp directory. Am i taking the wrong files or is it the configuration mistake in the user file in creds folder, eg. "PeerAdmin" file in creds folder in fabcar

habpygo (Mon, 09 Oct 2017 11:19:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nCDMKQTt7DG3KrDWb) @lclclc If you read the discussion following my question you know what I mean.

lclclc (Mon, 09 Oct 2017 11:21:05 GMT):
@habpygo reading,thanks

lclclc (Mon, 09 Oct 2017 11:24:24 GMT):
I don't see things in October 1, but October 3 have some discussion about cli, which can print block info.

habpygo (Mon, 09 Oct 2017 11:37:13 GMT):
Just read the stuff from habpy, troyronda and bstasyszym from October 1 till October 5. It’s all related.

habpygo (Mon, 09 Oct 2017 11:39:09 GMT):
Basically with the fabric-sdk-go you can retrieve things like block height, but if you want to get the block data in a readable form it didn't work. Then bstasyszym points at the repository.

lclclc (Mon, 09 Oct 2017 11:49:33 GMT):
I trying to understand your api example. But all api programming example is about shim api in tutorial.

lclclc (Mon, 09 Oct 2017 11:49:59 GMT):
The shim api does not have any thing like this: channel.QueryBlock(1)

asuchit (Mon, 09 Oct 2017 11:52:39 GMT):
@Vadim Thanks, Alias name is worked. But now I have another problem. Channel creation is not getting success. Getting below logs: root@53f0147038a7:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2017-10-09 10:48:37.752 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-09 10:48:37.752 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-10-09 10:48:37.761 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-10-09 10:48:37.762 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-10-09 10:48:37.762 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-10-09 10:48:37.762 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2017-10-09 10:48:37.762 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2017-10-09 10:48:37.762 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A88060A0744454641554C5412FC052D...53616D706C65436F6E736F727469756D 2017-10-09 10:48:37.762 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: C30B7CB2458DB28B3DB500978B45D9AEB6AF2F806044703FEC01B8B4E7D056C7 2017-10-09 10:48:37.762 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2017-10-09 10:48:37.762 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2017-10-09 10:48:37.762 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2017-10-09 10:48:37.763 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2017-10-09 10:48:37.763 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1508021A060885A8EDCE0522...E92CD8C2E0999B05D1BF024BF8672A60 2017-10-09 10:48:37.763 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: A956A51A6FD90C6FAF0C2D56194DD2E0DB9E7274F7043B5284107FD4480D065D Error: Got unexpected status: BAD_REQUEST 1. Create overlay network 2. Generate "channel-artifacts" in peer host and shared/copied on orderer host 3. Generate "crypto-config" for 4 peers in peer host and shared/copied on orderer host 4. Generate "crypto-config" for 1 orderer in orderer host and shared/copied on peer host 5. Try to create the channel from peer0.org1.example.com container but did not success and got above error. Note: Same process working on single host.

asuchit (Mon, 09 Oct 2017 11:54:53 GMT):
Please help me out, if I have doing some thing wrong OR missed some thing. I am not getting what is the mistake, I am doing here.

Vadim (Mon, 09 Oct 2017 11:54:57 GMT):
@asuchit check the orderer logs

asuchit (Mon, 09 Oct 2017 11:57:30 GMT):
How can I check the orderer log in orderer container ?

Vadim (Mon, 09 Oct 2017 11:59:34 GMT):
`docker service logs ``

asuchit (Mon, 09 Oct 2017 12:03:58 GMT):
stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-09 10:49:13.251 UTC [cauthdsl] func2 -> DEBU 354 0xc420028918 processing identity 0 with bytes of 0a0744454641554c5412fc052d2d2d2d2d424547494e202d2d2d2d2d0a4d4949434744434341622b67417749424167495144506c43544169516466644d6339764d374572753344414b42676771686b6a4f50515144416a427a4d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a455a4d4263474131554543684d5162334a6e4d53356c654746746347786c4c6d4e76625445634d426f474131554541784d54593245750a62334a6e4d53356c654746746347786c4c6d4e7662544165467730784e7a45774d4459784d4451794d546861467730794e7a45774d4451784d4451794d5468610a4d467378437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d5259774641594456515148457731540a59573467526e4a68626d4e7063324e764d523877485159445651514445785a775a5756794d433576636d63784c6d56345957317762475575593239744d466b770a457759484b6f5a497a6a3043415159494b6f5a497a6a3044415163445167414531516f644f31594e694f6943354a6c42525a6e667242764f76627241614e4d6c0a396e79646c484c45435630695230712b364756613343506a726f6c72646d324e67764f3164686262536164453953753367673241704b4e4e4d457377446759440a565230504151482f42415144416765414d41774741315564457745422f7751434d4141774b7759445652306a42435177496f41674a6d6e706866457544574c590a6f5a4378386e49667672576775414c7154364737584e44685448426d6c737777436759494b6f5a497a6a3045417749445277417752414967644938622b62464c0a4f716c656c6b6664756942524245396e69412b395768446d566e704f78723065755645434944337951496c6566344134627064557477716e6e586e7a483561790a563548566b4b584c54795a4c676e76420a2d2d2d2d2d454e44202d2d2d2d2d0a stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-09 10:49:13.252 UTC [cauthdsl] func2 -> ERRO 355 Principal deserialization failure (MSP DEFAULT is unknown) for identity 0a0744454641554c5412fc052d2d2d2d2d424547494e202d2d2d2d2d0a4d4949434744434341622b67417749424167495144506c43544169516466644d6339764d374572753344414b42676771686b6a4f50515144416a427a4d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a455a4d4263474131554543684d5162334a6e4d53356c654746746347786c4c6d4e76625445634d426f474131554541784d54593245750a62334a6e4d53356c654746746347786c4c6d4e7662544165467730784e7a45774d4459784d4451794d546861467730794e7a45774d4451784d4451794d5468610a4d467378437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d5259774641594456515148457731540a59573467526e4a68626d4e7063324e764d523877485159445651514445785a775a5756794d433576636d63784c6d56345957317762475575593239744d466b770a457759484b6f5a497a6a3043415159494b6f5a497a6a3044415163445167414531516f644f31594e694f6943354a6c42525a6e667242764f76627241614e4d6c0a396e79646c484c45435630695230712b364756613343506a726f6c72646d324e67764f3164686262536164453953753367673241704b4e4e4d457377446759440a565230504151482f42415144416765414d41774741315564457745422f7751434d4141774b7759445652306a42435177496f41674a6d6e706866457544574c590a6f5a4378386e49667672576775414c7154364737584e44685448426d6c737777436759494b6f5a497a6a3045417749445277417752414967644938622b62464c0a4f716c656c6b6664756942524245396e69412b395768446d566e704f78723065755645434944337951496c6566344134627064557477716e6e586e7a483561790a563548566b4b584c54795a4c676e76420a2d2d2d2d2d454e44202d2d2d2d2d0a

asuchit (Mon, 09 Oct 2017 12:05:45 GMT):
@Vadim Sorry, I needs to leave for the day so I will check the error in details tomorrow and try to understand it. Thanks a lot

habpygo (Mon, 09 Oct 2017 14:55:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kyLnBoAj2TdagySrG) @lclclc No that's correct. That is the Go sdk, i.e fabric-sdk-go. I don't know whether you are comfortable with Go. If not, leave it.

MarcoReitano (Mon, 09 Oct 2017 15:14:27 GMT):
Has joined the channel.

MarcoReitano (Mon, 09 Oct 2017 15:14:47 GMT):
hi, we (a team of students in germany) are trying to understand hyperledger, especially we are interested in a usecase where endusers can "trust" a company. we are currently discussing if every enduser gets a separate channel with a separate endorsing policy, so the enduser (which gets its own endorsing peer) and the company (with its endorsing peer) have to endorse a transaction. In our understanding this would mean for 1000 users we'd have 1000 channels, 1000 peers, 1000 endorsing policies and so on.... Is this feasible at all? Or do we understand some of the underlying concepts wrong?

mikykey (Mon, 09 Oct 2017 16:20:17 GMT):
Has joined the channel.

jeffgarratt (Mon, 09 Oct 2017 17:16:19 GMT):
@MarcoReitano this depends on what "trust" means. If I assume it means the end users all trust a single entity, then the use of blockchain may be a inconsequential to the users (e.g. purchasing from Amazon). Whether blockchain is used by Amazon or not would be of no concern I assume in this case. Therefore it may be more natural to view this from the perspective of problems to be solved vs the technology that can be employed. If you search for common blockchain uses cases, most will include more than a single organization (though this is definitely plausible), and the concept of trust is NOT inherent to any specific actor within the system (Other than oneself).

jeffgarratt (Mon, 09 Oct 2017 17:16:19 GMT):
@MarcoReitano this depends on what "trust" means. If I assume it means the end users all trust a single entity, then the use of blockchain may be a inconsequential to the users (e.g. purchasing from Amazon). Whether blockchain is used by Amazon or not would be of no concern I assume in this case. Therefore it may be more natural to view this from the perspective of problems to be solved vs the technology that can be employed. If you search for common blockchain uses cases, most will include more than a single organization (though this is definitely plausible), and the concept of trust is NOT inherent to any specific actor within the system (other than oneself).

MarcoReitano (Mon, 09 Oct 2017 18:09:25 GMT):
@jeffgarratt if i understand you correct you wouldn't count the enduser as a organization then, correct?

MarcoReitano (Mon, 09 Oct 2017 18:15:11 GMT):
@jeffgarratt maybe a bit of context: our endusers should be able to sign a contract (in a not smartcontract sense), if just the company have to endorse it and only their ledger holds a record of the contract, how can the user be sure the contract signed (by the company) and valid. Sure he can ask for a record of it, but thats not the "trust" in a blockchain sense.

gstremote (Mon, 09 Oct 2017 18:53:45 GMT):
Has joined the channel.

gstremote (Mon, 09 Oct 2017 18:55:51 GMT):
Hey guys, is there a way to make a block that has an information, refer to a previous block, where that specific information changed, and show it on the actual block?

douglasthiel (Mon, 09 Oct 2017 20:20:22 GMT):
What happened to the chat listed in Simon Stone’s March 23rd, 2017 youtube. com [video](https://www.youtube.com/watch?v=fdFUsrsv5iw) called #fabric-composer?

JayJong (Tue, 10 Oct 2017 02:36:12 GMT):
Has joined the channel.

amazingguni (Tue, 10 Oct 2017 02:40:20 GMT):
Has joined the channel.

asuchit (Tue, 10 Oct 2017 04:57:10 GMT):
Can someone help me that why this error is coming on orderer while peer on another host trying to create a channel: stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42b 0xc420192d88 processing identity 0 with bytes of stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> ERRO 42c Principal deserialization failure (MSP DEFAULT is unknown) for identity stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42d 0xc420192d88 principal evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 42e 0xc420192d88 gate 1507605496231564477 evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/common/broadcast] Handle -> WARN 42f Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/main] func1 -> DEBU 430 Closing Broadcast stream stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/common/deliver] Handle -> WARN 431 Error reading from stream: rpc error: code = Canceled desc = context canceled stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/main] func1 -> DEBU 432 Closing Deliver stream

asuchit (Tue, 10 Oct 2017 04:57:10 GMT):
Can someone help me that why this error is coming on orderer while peer on another host trying to create a channel: stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42b 0xc420192d88 processing identity 0 with bytes of stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> ERRO 42c Principal deserialization failure (MSP DEFAULT is unknown) for identity stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42d 0xc420192d88 principal evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 42e 0xc420192d88 gate 1507605496231564477 evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/common/broadcast] Handle -> WARN 42f Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/main] func1 -> DEBU 430 Closing Broadcast stream stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/common/deliver] Handle -> WARN 431 Error reading from stream: rpc error: code = Canceled desc = context canceled stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/main] func1 -> DEBU 432 Closing Deliver stream

asuchit (Tue, 10 Oct 2017 04:57:10 GMT):
Can someone help me that why this error is coming on orderer while peer on another host trying to create a channel: stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 429 0xc420192d88 gate 1507605496231564477 evaluation starts stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42a 0xc420192d88 signed by 0 principal evaluation starts (used [false]) stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42b 0xc420192d88 processing identity 0 with bytes of stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> ERRO 42c Principal deserialization failure (MSP DEFAULT is unknown) for identity stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42d 0xc420192d88 principal evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 42e 0xc420192d88 gate 1507605496231564477 evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/common/broadcast] Handle -> WARN 42f Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/main] func1 -> DEBU 430 Closing Broadcast stream stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/common/deliver] Handle -> WARN 431 Error reading from stream: rpc error: code = Canceled desc = context canceled stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/main] func1 -> DEBU 432 Closing Deliver stream

asuchit (Tue, 10 Oct 2017 04:57:10 GMT):
Can someone help me that why this error is coming on orderer while peer on another host trying to create a channel: stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 429 0xc420192d88 gate 1507605496231564477 evaluation starts stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42a 0xc420192d88 signed by 0 principal evaluation starts (used [false]) stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42b 0xc420192d88 processing identity 0 with bytes of stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> ERRO 42c Principal deserialization failure (MSP DEFAULT is unknown) for identity stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func2 -> DEBU 42d 0xc420192d88 principal evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [cauthdsl] func1 -> DEBU 42e 0xc420192d88 gate 1507605496231564477 evaluation fails stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/common/broadcast] Handle -> WARN 42f Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.231 UTC [orderer/main] func1 -> DEBU 430 Closing Broadcast stream stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/common/deliver] Handle -> WARN 431 Error reading from stream: rpc error: code = Canceled desc = context canceled stack_peer_orderer_example_com.1.hepzfpj9oupe@2030019784 | 2017-10-10 03:18:16.234 UTC [orderer/main] func1 -> DEBU 432 Closing Deliver stream

username343 (Tue, 10 Oct 2017 05:59:51 GMT):
after getting the certificates and keys from the fabric-ca do we have to manually add them to peer msp directory and orderer msp directory?

garima (Tue, 10 Oct 2017 06:12:26 GMT):
@mastersingh24 I am still getting the same error

asuchit (Tue, 10 Oct 2017 08:57:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eJSTsprwax7NbJQ27) @Vadim As per orderer log, MSP default is unknown. I do not know, what is MSP default and why is this problem happening.

asuchit (Tue, 10 Oct 2017 11:54:22 GMT):
Modifed for "first network"example in following way for 2 hosts (host2 : all 4 peers and 2 orgs AND host1: 1 orderer) 1. Create overlay network and joined both hosts 2. Generate "crypto-config" on host1 3. Generate "crypto-config" on host2 4. delete peerOrganizations from host1 and copied peerOrganizations from host 2 to host1 5. delete ordererOrganizations from host2 and copied ordererOrganizations from host 1 to host2 6. Now generating the genesis block on both the hosts genesis block refer the msp of orderers and peers but generating the genesis on both host have some differences. Can anyone help me that why those differences are there in genesis blocks even msp of orderer and peers are same in both hosts ?

IandeBeer (Tue, 10 Oct 2017 14:16:18 GMT):
Has joined the channel.

IandeBeer (Tue, 10 Oct 2017 14:16:54 GMT):
Can someone please direct me to an example configtx that implements an organization hierarchy, i.e. Company with Division where only some of the divisions participate on a channel

lmars (Tue, 10 Oct 2017 15:07:14 GMT):
Has joined the channel.

mastersingh24 (Tue, 10 Oct 2017 15:56:04 GMT):
@garima - Docker Toolbox? Likely an issue with shared volumes - check out the Note at the top here - http://hyperledger-fabric.readthedocs.io/en/latest/samples.html (https://chat.hyperledger.org/channel/fabric-questions?msg=NeepaEX5iBiCYtbqd) @garima

hamtamtots (Tue, 10 Oct 2017 19:28:07 GMT):
Has joined the channel.

hamtamtots (Tue, 10 Oct 2017 19:37:43 GMT):
Hi guys, have a couple of questions if you don't mind - 1 - Would fabric be appropriate for a private blockchain - with potential to go public after POC and adoption? And briefly what would this look like in terms of topology (a single org, with n peer and orderer nodes for redundency?) 2 - Is there a dotnet SDK in the works? I can't seem to find any (and would it be hard to port one? I can perhaps contribute to the effort) Thanks a lot for any advice :)

mastersingh24 (Tue, 10 Oct 2017 20:39:40 GMT):
@hamtamtots - 2) DotNet SDK - nothing currently underway, but I'd be happy to discuss what you are looking to do and how best to go about it.

hamtamtots (Tue, 10 Oct 2017 20:56:31 GMT):
@mastersingh24 Hey, looking to create a platform that would involve users from a web application moving a virtual currency around. Hopefully would involve businesses joining the platform, this is where a blockchain tech might help remove trust issues. However, I'm unclear how this would grow from a private blockchain (pretty pointless? beyond the immutable history?) into a public (b2b) consortium style chain network. Also it would probably be a single chaincode being used at first (for the currency asset). All of this seems to be too little of a requirement for using fabric, what do you think? Also on the topic of dotnet, I would just prefer to write my webapps using dotnet than node. I was a little surprised dotnet wasn't on the list of SDKs to be implemented in the future. If it's a basic gRPC protocol I can probably manage a port of the node SDK?

Hangyu (Wed, 11 Oct 2017 01:04:44 GMT):
@mdu Hi, I found your jira ticket about the MVP,. Could you kindly inform me the time table of this feature added to fabric? will it make it to fabric 1.1? very much appreciate it

Hangyu (Wed, 11 Oct 2017 01:04:44 GMT):
@mdu Hi, I found your jira ticket about the MVP,. Could you kindly inform me the time table of this feature added to fabric? will it make it to fabric 1.1? could you also give me some insight on the relationship between fabric-ca and this Identity Mixer ? very much appreciate it

mdu (Wed, 11 Oct 2017 01:04:44 GMT):
Has joined the channel.

Hangyu (Wed, 11 Oct 2017 02:06:34 GMT):
could you also give me some insight on the relationship between fabric-ca and this Identity Mixer ? My understanding is that fabric-ca issues Ecert and Identity mixer issuers Tcert based on the Ecert it receives. Sort of like the TCA of fabric 0.6?

amolpednekar (Wed, 11 Oct 2017 05:17:49 GMT):
Has joined the channel.

CodeReaper (Wed, 11 Oct 2017 06:35:51 GMT):
Hey, I was wondering can we save some messages along with every transaction?? So that when a transaction is viewed in blockchain explorer, I can also see the message too.

giokou (Wed, 11 Oct 2017 06:54:50 GMT):
Hello, I am getting the following error when trying to instantiate my blockchain network ```Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package build-chaincode: no buildable Go source files in /chaincode/input/src/build-chaincode```. Any ideas from where this comes and how it can be solved? Thanks

giokou (Wed, 11 Oct 2017 08:31:41 GMT):
Also, I am getting this when trying to invoke a transaction: ```Error executing chaincode: Could not get deployment transaction from LSCC for mychaincode:v1 - Get ChaincodeDeploymentSpec for mychaincode/mychannel from LSCC error: chaincode fingerprint mismatch data mismatch ```

username343 (Wed, 11 Oct 2017 08:33:30 GMT):
does anybody know how to make a new user to use with the fabcar example instead of using PeerAdmin file in the creds folder in fabcar example? I've spent too much time trying to create a new user and add it's certificates to the peer and to use it with application to access chain data, any help would be appreciated.

Vadim (Wed, 11 Oct 2017 08:34:29 GMT):
@username343 use SDK to register it with CA and then enroll it

username343 (Wed, 11 Oct 2017 08:38:29 GMT):
@Vadim thanks for reply. I've registered a new user using the fabric-ca-client and then i enrolled it using the same fabric-ca-client, i do get the public and private key in the msp directory and then tried to create the same pub priv keys and the PeerAdmin equivalent for that user in the creds folder of fabcar , after that i get certificate signed by uknown authority. Are you saying i need to register a user using sdk and then enroll it using sdk?

Vadim (Wed, 11 Oct 2017 08:44:01 GMT):
@username343 you need to register and enroll with sdk, not fabric-ca-client

Vadim (Wed, 11 Oct 2017 08:44:10 GMT):
these files are sdk-generated

Vadim (Wed, 11 Oct 2017 08:44:59 GMT):
you also need to make sure that the root cert of CA are trusted by your network, e.g. it can be org CA cert from cryptogen artifacts

Vadim (Wed, 11 Oct 2017 08:45:14 GMT):
that error tells you that the cert is not trusted

username343 (Wed, 11 Oct 2017 08:47:36 GMT):
@Vadim thanks for replying so quickly

iamdm (Wed, 11 Oct 2017 09:03:34 GMT):
Has joined the channel.

suvpatil (Wed, 11 Oct 2017 10:07:25 GMT):
hi all, I had used kafka as ordering service. while creation of channel it gives me "Error: Got unexpected status: SERVICE_UNAVAILABLE" error. I have used time out option also in create channel command but stil the error comes. Sometimes create channel command will run successfully. Not able to understood this kind of behaviour.

jaswanth (Wed, 11 Oct 2017 10:51:46 GMT):
iam using windows 10 home . i got error in `npm install` . no able to proceed further any help @here . Got ``` npm ERR! pkcs11js@1.0.9 install: `npm run build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.9 install script 'npm run build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the pkcs11js package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs pkcs11js npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls pkcs11js npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\jaswanth.gorripati\hyperledger\devSetup\fabric-samples\balance-transfer\npm-debug.log```

dave.enyeart (Wed, 11 Oct 2017 10:52:43 GMT):
@jaswanth Please do not use at-here, and please do not paste same question into multiple channels.

bamboo (Wed, 11 Oct 2017 11:52:44 GMT):
Has joined the channel.

benoit.razet (Wed, 11 Oct 2017 18:46:28 GMT):
Has joined the channel.

yancoupro (Wed, 11 Oct 2017 21:41:24 GMT):
Has joined the channel.

yancoupro (Wed, 11 Oct 2017 21:43:13 GMT):
Hi, I'm trying to run the "hyperledger/fabric/examples/e2e_cli/examples/chaincode/go/enccc_example", but I get an error on peer0 at instantiation : ```

yancoupro (Wed, 11 Oct 2017 21:43:13 GMT):
2017-10-11 21:31:36.123 UTC [dockercontroller] Start -> DEBU 47f start-could not find image (container id ), because of ...attempt to recreate image 2017-10-11 21:31:36.123 UTC [chaincode-platform] generateDockerfile -> DEBU 480 FROM hyperledger/fabric-baseos:x86_64-0.3.2 ADD binpackage.tar /usr/local/bin LABEL org.hyperledger.fabric.chaincode.id.name="ccc1015" \ org.hyperledger.fabric.chaincode.id.version="1.0" \ org.hyperledger.fabric.chaincode.type="GOLANG" \ org.hyperledger.fabric.version="1.0.2" \ org.hyperledger.fabric.base.version="0.3.2" ENV CORE_CHAINCODE_BUILDLEVEL=1.0.2 ENV CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt COPY peer.crt /etc/hyperledger/fabric/peer.crt

yancoupro (Wed, 11 Oct 2017 21:58:26 GMT):
A little bit more context, I run `generateArtifcat.sh` `network_setup.sh up` and it works fine for chaincode_example02 but when I change it to enccc_example, it gets stuck at instantiation. Thanks for any help

baramustafa (Wed, 11 Oct 2017 22:29:53 GMT):
Has joined the channel.

luomin (Thu, 12 Oct 2017 01:12:10 GMT):
Has joined the channel.

viswanath.tg (Thu, 12 Oct 2017 03:41:01 GMT):
In hyperledger-fabric build your first nextwork example - The docker-compose-cli.yml file is set with some environment variables. I didn't find any reference docs/information specific to configuration. Can any one help me in availing information/refence docs. Your's support is very much appriciated

username343 (Thu, 12 Oct 2017 04:38:20 GMT):
does anybody know of any resources where i can read more on crypto-config.yaml and configtx.yaml

jaswanth (Thu, 12 Oct 2017 05:41:04 GMT):
hi all . iam using windows 10 . i am trying to run `balance-transfer` example from docs. when i run `./testAPIs.sh` its printing ```Please Install 'jq' https://stedolan.github.io/jq/ to execute this script``` . i downloaded `jq-win64.exe` file but when i open it opens and closes instantly . even tried run as admin . but no luck .. any idea on how to do it .

jaswanth (Thu, 12 Oct 2017 05:41:04 GMT):
hi all . iam using windows 10 . i am trying to run `balance-transfer` example from docs. when i run `./testAPIs.sh` its printing ```Please Install 'jq' https://stedolan.github.io/jq/ to execute this script``` . i downloaded `jq-win64.exe` file but when i open it . it just opens and closes instantly . even tried run as admin . but no luck .. any idea on how to do it .

mastersingh24 (Thu, 12 Oct 2017 08:25:45 GMT):
@jaswanth - In the balance-transfer directory: curl -kL https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe >> jq export PATH=.:$PATH

eirlis (Thu, 12 Oct 2017 08:52:53 GMT):
Has joined the channel.

RezwanKabir (Thu, 12 Oct 2017 09:01:28 GMT):
By using generate.sh I am creating certificates for 2 orgs.. each org has 2 peers. Those certificates work fine with balance transfer example. But when I generate 3 peers for each org and use these certificates in balance transfer project it shows creator identity not found... Am I missing something ?

kapilAtrey (Thu, 12 Oct 2017 11:56:20 GMT):
can we provide file other then *configtx.yaml* to the *configtxgen*, if i want to do this what should i change and where, there is no such requirement in usecase but curiosity .. Thank you :-)

niteshsolanki (Thu, 12 Oct 2017 12:41:07 GMT):
Hi. I had a question regarding events in hyperledger. What happens if the rate of consumption of events is slower than the production? what happens if the events.buffer is full and events.timeout has reached ? are the events from the buffer dropped ?

lehors (Thu, 12 Oct 2017 13:48:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DzXhzit5rkBrbfidS) @jaswanth was that question ever answered? in my experience this is solved by doing: npm install --global windows-build-tools

lehors (Thu, 12 Oct 2017 13:49:09 GMT):
it is documented at the end of the prereqs page http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

a.hyper (Thu, 12 Oct 2017 16:44:59 GMT):
Has joined the channel.

sarathkumar (Thu, 12 Oct 2017 18:35:52 GMT):
Has joined the channel.

Jonny (Fri, 13 Oct 2017 02:25:48 GMT):
Has joined the channel.

Jonny (Fri, 13 Oct 2017 03:16:36 GMT):
hi, can someone help me to understand the usage of organization in hyperledger? maybe give me real life example how people make use of that

jaswanth (Fri, 13 Oct 2017 05:19:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jbmzPquTEdCnLqXxZ) @mastersingh24 Thank you .. it worked

iamdm (Fri, 13 Oct 2017 07:50:09 GMT):
Hi everybody, how can i know about chaincode's caller? How to get identity of user, who called chaincode?

Vadim (Fri, 13 Oct 2017 07:59:09 GMT):
@iamdm stub.GetCreator(), search on #fabric on how to use it

lclclc (Fri, 13 Oct 2017 08:42:49 GMT):
I know in theory, fabric will get to 100k tps, but how is its classic tps right now in production environment?

lclclc (Fri, 13 Oct 2017 08:42:53 GMT):
10k?

lclclc (Fri, 13 Oct 2017 08:42:56 GMT):
1k?

iamdm (Fri, 13 Oct 2017 09:16:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KqbJRb3tKSPz8taYj) @Vadim thx, found it

lclclc (Fri, 13 Oct 2017 09:20:34 GMT):
Have anyone has a production experience, about tps? Thanks in advance.

Asara (Fri, 13 Oct 2017 15:41:58 GMT):
Has joined the channel.

douglasthiel (Fri, 13 Oct 2017 15:42:11 GMT):
How are people handling documents, referenced in a transaction, shared between Organizations? This is where each Organization must be able to actually read the document(s).

rodneyr (Fri, 13 Oct 2017 19:09:48 GMT):
Has joined the channel.

rodneyr (Fri, 13 Oct 2017 19:11:59 GMT):
Hi everyone, not sure this is the right place to ask but I'm getting this error when I try to create the containers and instal the playground locally:

rodneyr (Fri, 13 Oct 2017 19:12:09 GMT):
docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b composerchannel.block flag provided but not defined: -e See 'docker exec --help'.

rodneyr (Fri, 13 Oct 2017 19:12:36 GMT):
The error is pretty clear but I'm not sure how to fix it :-)

rodneyr (Fri, 13 Oct 2017 19:13:13 GMT):
That line is from the install-hlfv1.sh script btw (from here https://hyperledger.github.io/composer/installing/using-playground-locally.html)

silliman (Fri, 13 Oct 2017 19:44:39 GMT):
@rodneyr upgrade your Docker, the -e flag was introduced in Docker 1.13 and should be in all of the newer Community Editions or Enterprise editions. I'll bet your Docker version is 1.12 or earlier

ajksharma (Sat, 14 Oct 2017 06:09:18 GMT):
Has joined the channel.

rodneyr (Sat, 14 Oct 2017 10:18:45 GMT):
@silliman thank, sorry for asking sth so obvious :-)

HandsomeRoger (Sat, 14 Oct 2017 13:23:51 GMT):
Has joined the channel.

sorenwolf (Sat, 14 Oct 2017 14:43:14 GMT):
Greetings all, I’m attempting to run the stock e2e test on an AWS Ubuntu instance with no luck. Everything loads but _Querying on PEER0 on channel ‘mychannel’_ fails. Checking the peer log shows the orderer certificate was signed by unknown authority. Can anyone point me to where to address this?

sorenwolf (Sat, 14 Oct 2017 14:43:34 GMT):

Fabric-Cert-Error.png

JosephKovuri (Sun, 15 Oct 2017 09:46:35 GMT):
Has joined the channel.

CodeReaper (Sun, 15 Oct 2017 15:34:43 GMT):
do peers maintain separate ledgers for each channel, isolated from each other??

kokiweb (Sun, 15 Oct 2017 16:11:35 GMT):
Has joined the channel.

jeffgarratt (Sun, 15 Oct 2017 16:37:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tRoanJPhu3mxmpkd2) @CodeReaper Yes they do.

CodeReaper (Sun, 15 Oct 2017 17:19:22 GMT):
Thanks, just went through the docs also for that one.

mastersingh24 (Sun, 15 Oct 2017 22:21:43 GMT):
@sorenwolf - from inside the VM, can you try `ping orderer.example.com` ?

mastersingh24 (Sun, 15 Oct 2017 22:21:58 GMT):
I assume you are using Docker and Docker Compose?

mastersingh24 (Sun, 15 Oct 2017 22:26:54 GMT):
You may also want to have a look at https://stackoverflow.com/a/45916717/6160507 as you might need to set the dns_search parameter (you'll need to set this if the result for the ping call I mentioned above takes you to an odd address)

marc0o (Sun, 15 Oct 2017 23:00:33 GMT):
Has joined the channel.

sorenwolf (Mon, 16 Oct 2017 00:12:18 GMT):
@mastersingh24 - thanks for the feedback, and yes using Docker and Docker Compose. I dug into this a bit further and found that my paths were out of alignment for the e2e test.

sorenwolf (Mon, 16 Oct 2017 00:13:09 GMT):
I've made changes to a few config files but now I cannot get my chaincode to load in the peer. This looks like more docker config issues.

sorenwolf (Mon, 16 Oct 2017 00:26:52 GMT):
I'll keep chipping away at it before bugging the list again.

username343 (Mon, 16 Oct 2017 04:20:50 GMT):
can one chaincode read data written by another chaincode on the same channel?

username343 (Mon, 16 Oct 2017 04:27:02 GMT):
1.What are the "rich complex queries", for which we have couchdb to store the world state, do these queries use chaincode as ntermediary or we can directly query the couchdb? What prevents the world state in couchdb being modified by an external entitiy? When we invoke a transaction on chaincode, does the chaincode read the value for the keys from ledger or from the world state database like couchdb? I tried deleting a database in couchdb but i got method not allowed, so is it a couchdb feature or something on the hyperledger fabrics part? I'm completely new to couchdb, i am reading more on it now, so the third

username343 (Mon, 16 Oct 2017 04:27:28 GMT):
question might sound stupid, but i'm reading more on it now

CodeReaper (Mon, 16 Oct 2017 05:59:34 GMT):
Hey, how can I access the common name of the user who invoked the chaincode at the chaincode level??

CodeReaper (Mon, 16 Oct 2017 06:19:58 GMT):
I dont want to send it as arguments, someone could be faking it.

waterlord (Mon, 16 Oct 2017 06:20:52 GMT):
Has joined the channel.

Vadim (Mon, 16 Oct 2017 07:48:15 GMT):
@CodeReaper stub.getCreator(), find in #farbic how to use it

Vadim (Mon, 16 Oct 2017 07:48:15 GMT):
@CodeReaper stub.getCreator(), find in #fabric how to use it

qq597332855 (Mon, 16 Oct 2017 07:56:07 GMT):

Clipboard - October 16, 2017 3:55 PM

Vadim (Mon, 16 Oct 2017 07:57:00 GMT):
@qq597332855 looks like you java app is not using tls, but the peer does

qq597332855 (Mon, 16 Oct 2017 07:58:38 GMT):
When you create a channel, this error is reported, add order after error, server:2017-10-16 09:47:07.301 UTC [grpc] Printf -> DEBU 3e56 grpc: Server.Serve failed to complete security handshake from "10.100.208.142:38780": tls: first record does not look like a TLS handshake

Vadim (Mon, 16 Oct 2017 07:59:09 GMT):
as I said, enable TLS in your java app

qq597332855 (Mon, 16 Oct 2017 08:00:02 GMT):

Clipboard - October 16, 2017 3:59 PM

qq597332855 (Mon, 16 Oct 2017 08:00:07 GMT):
like this?

CodeReaper (Mon, 16 Oct 2017 08:02:20 GMT):
@Vadim can I get role and affiliation also from parsing the certificate??

AlexanderEx123 (Mon, 16 Oct 2017 08:07:09 GMT):
Hello, anybody get this error early then encode common.ConfigUpdate with configtxlator? *common.ConfigUpdate: error in PopulateFrom for field read_set for message *common.ConfigUpdate: *common.DynamicChannelGroup: unknown field "write_set" in common.ConfigGroup

Ferdoran (Mon, 16 Oct 2017 09:23:01 GMT):
Has joined the channel.

Vadim (Mon, 16 Oct 2017 09:23:38 GMT):
@CodeReaper this is supposed to be in 1.1

Vadim (Mon, 16 Oct 2017 09:23:38 GMT):
@CodeReaper this is supposed to be in v1.1

Ferdoran (Mon, 16 Oct 2017 09:28:02 GMT):
Hello everybody, Currently I'm doing a student's project about Blockchains using Hyperledger Fabric. Sadly, we find the documentation not useful at all, since our knowledge with Hyperledger or Blockchain frameworks at all is not big. Therefore we try to find a documentation on the Hyperledger Fabric architecture (not something like in the current docs). We are thinking of a more technical architecture, for example which components exist and how they interact with each other. We'd be happy if anybody could help us

Vadim (Mon, 16 Oct 2017 09:31:07 GMT):
@Ferdoran http://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html is not enough?

Ferdoran (Mon, 16 Oct 2017 09:39:06 GMT):
@Vadim Sadly not. I've dugged myself through all tutorials (Getting started, Writing your first application, first network, etc.) and didn't get an idea at all what Hyperledger Fabric is doing there. Now I'm halfway through the architecture section that you posted, but it's not giving me any information at all. I mean it's a huge famework but the docs aren't really helping to get in touch with it. I don't know how I would set up / develop an application myself. To be honest I don't have any Docker knowledge, but this doesn't seem like the problem at the moment.

Ferdoran (Mon, 16 Oct 2017 09:39:06 GMT):
@Vadim Sadly not. I've dug myself through all tutorials (Getting started, Writing your first application, first network, etc.) and didn't get an idea at all what Hyperledger Fabric is doing there. Now I'm halfway through the architecture section that you posted, but it's not giving me any information at all. I mean it's a huge famework but the docs aren't really helping to get in touch with it. I don't know how I would set up / develop an application myself. To be honest I don't have any Docker knowledge, but this doesn't seem like the problem at the moment.

Vadim (Mon, 16 Oct 2017 09:53:10 GMT):
@Ferdoran have you seen the tutorial? http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

Ferdoran (Mon, 16 Oct 2017 09:55:19 GMT):
@Vadim Yes I have. Probably I have a big lack in blockchain technologies / frameworks at all.

Vadim (Mon, 16 Oct 2017 09:56:16 GMT):
maybe try to go through the tutorial and if you have more concrete questions, ask them

username343 (Mon, 16 Oct 2017 11:06:41 GMT):
If i delete the mychannel database from couchdb, does that mean all of my data is lost?

CodeReaper (Mon, 16 Oct 2017 11:52:46 GMT):
@Vadim can I get some example to fetch common name from the certificate we get from GetCreator ?

iamdm (Mon, 16 Oct 2017 12:09:08 GMT):
@CodeReaper at first you should unmarshal bytes to msp.SerializedIdentity, then you get IdBytes field, which contains PEM-decoded certificate

rbulgarelli (Mon, 16 Oct 2017 12:44:53 GMT):
Has joined the channel.

rbulgarelli (Mon, 16 Oct 2017 12:44:59 GMT):
Does anyone know how to have multiple virtual machines join the same channel and then deploy the chaincode to each machines peer??

CodeReaper (Mon, 16 Oct 2017 12:52:08 GMT):
@iamdm I've managed to get the certificate out. I cant seem to find any reference golang code in respect to separating CN from a certificate. Do you have anything I can refer from??

iamdm (Mon, 16 Oct 2017 12:55:26 GMT):
@CodeReaper have you got pem.Block? Use it for parsing into x509.Certificate

CodeReaper (Mon, 16 Oct 2017 12:55:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QpP5BGavKqr8hJKHu) @iamdm yes

CodeReaper (Mon, 16 Oct 2017 12:56:16 GMT):
was even able to get public key from cert.

CodeReaper (Mon, 16 Oct 2017 12:56:25 GMT):
not sure about cN

iamdm (Mon, 16 Oct 2017 12:56:42 GMT):
@CodeReaper so what's the problem? fetch cert.Subject.CommonName

CodeReaper (Mon, 16 Oct 2017 12:57:25 GMT):
seems to be return nil. Must be a problem from my end, I'll redo it.

iamdm (Mon, 16 Oct 2017 13:01:49 GMT):
it looks like you made mistake while you were creating certificate

iamdm (Mon, 16 Oct 2017 13:01:49 GMT):
it looks like you made mistake when you were creating certificate

CodeReaper (Mon, 16 Oct 2017 13:40:20 GMT):
Thanks @iamdm problem was totally different, I'm trying to make user's unique id at chaincode level, I dont want it to be based public key as it along with certificates keep on changing, so I've decided to hash the issuer.commonName and subject.commonName together. Any other such fields I can include to increase the difficulty of creation of these unique identities??

CodeReaper (Mon, 16 Oct 2017 13:40:20 GMT):
Thanks @iamdm problem was totally different, I got it now. I'm trying to make user's unique id at chaincode level, I dont want it to be based public key as it along with certificates keep on changing, so I've decided to hash the issuer.commonName and subject.commonName together. Any other such fields I can include to increase the difficulty of creation of these unique identities??

Vadim (Mon, 16 Oct 2017 13:52:46 GMT):
@CodeReaper the whole DN field

nickgaski (Mon, 16 Oct 2017 13:54:40 GMT):
@Ferdoran - you might want to check out one of these playbacks; they will likely prove helpful as we have developers walking through the entire architecture and marrying the components with how an application interacts with the backend. https://developer.ibm.com/code/videos/tech-talk-replay-deploy-asset-transfer-app-using-blockchain/ OR https://developer.ibm.com/tv/dwlive008-replay-build-business-network-ibm-blockchain-platform/

vudathasaiomkar (Mon, 16 Oct 2017 13:59:33 GMT):
Has joined the channel.

habpygo (Mon, 16 Oct 2017 14:55:17 GMT):
Hi there, Problem: `GetStateByRange` api not returning keys in the ledger starting with capital letter. When calling this method like `keysIter, err := stub.GetStateByRange(startKey, endKey)` from my CC, and feeding it empty strings it gives me all the values belonging for the keys except from those keys that start with a capital letter. Thus, if I have `key1 key2 Key3 key4` on the ledger it returns only `key1 key2 key4` with their values; however, if putting `Key3` as startKey input, then it does return the value belonging to `Key3`. Any idea what could be the (my) problem? Thanks.

Vadim (Mon, 16 Oct 2017 14:57:48 GMT):
@habpygo are you trying keysIter, err := stub.GetStateByRange("", "")?

habpygo (Mon, 16 Oct 2017 14:58:30 GMT):
Yes, but indirectly of course. That is both `startKey` and `endKey` are empty strings.

Vadim (Mon, 16 Oct 2017 14:58:58 GMT):
and you want to query all keys?

habpygo (Mon, 16 Oct 2017 14:59:04 GMT):
Yes Sir

habpygo (Mon, 16 Oct 2017 14:59:49 GMT):
That's the power of Blockchain, i can see everythign that has been done on which makes it perfect to detect fraud

Vadim (Mon, 16 Oct 2017 15:00:01 GMT):
if I correctly remember, for that you need to provide (smallestUnicodeCharCode, biggestUnicodeCharCode).

habpygo (Mon, 16 Oct 2017 15:01:26 GMT):
Ah, if so that will be the problem. Are these existing methods in Golang 'cause I'm using the Go sdk

Vadim (Mon, 16 Oct 2017 15:01:28 GMT):
i.e. it compares the keys as strings

habpygo (Mon, 16 Oct 2017 15:01:46 GMT):
All my keys are strings

Vadim (Mon, 16 Oct 2017 15:02:12 GMT):
I think it's (0, utf8.MaxRune), but you probably need to convert that to strings

habpygo (Mon, 16 Oct 2017 15:02:28 GMT):
OK, I'll have a look at that.

Vadim (Mon, 16 Oct 2017 15:02:37 GMT):
I hope I don't mistake that with something else, but I think it should work

habpygo (Mon, 16 Oct 2017 15:02:51 GMT):
I'll have a try. Thanks!

JabezSam (Mon, 16 Oct 2017 21:00:47 GMT):
Has joined the channel.

rohitadivi (Mon, 16 Oct 2017 21:43:56 GMT):
Has joined the channel.

jinwooChu (Tue, 17 Oct 2017 04:31:40 GMT):
Has joined the channel.

jinwooChu (Tue, 17 Oct 2017 04:31:48 GMT):
hi!!

luxus (Tue, 17 Oct 2017 04:40:00 GMT):
Has joined the channel.

luxus (Tue, 17 Oct 2017 04:42:07 GMT):
Hi all, who can explain the mechanism of consensus in fabric v1.0? Please help me :)

cumt168 (Tue, 17 Oct 2017 06:36:02 GMT):
Has joined the channel.

cumt168 (Tue, 17 Oct 2017 06:36:23 GMT):
Does fabric v1.0 supports restful ?

vhm (Tue, 17 Oct 2017 06:57:12 GMT):
Has joined the channel.

vhm (Tue, 17 Oct 2017 07:02:35 GMT):
hello, would it be possible to run fabric peer without access to /var/run/docker.sock? thing is this might be a security risk and not always accessible on orchestration platforms

yacovm (Tue, 17 Oct 2017 07:46:16 GMT):
@vhm I never tried but you should try using the tcp socket instead of the unix domain socket and replacing the `VM_ENDPOINT` in the config

metalog (Tue, 17 Oct 2017 07:49:27 GMT):
Has joined the channel.

vhm (Tue, 17 Oct 2017 07:50:44 GMT):
@yacovm thanks for the suggestion, but I'm not really sure if that helps, we would be running fabric on docker swarm and the concern is mainly security, having access to the docker platform around it either via tcp or unix the container can launch new containers, inspect other running containers etc. I was more thinking of running chaincode directly within the peer (I've found it can be done for development mode), but nothing as standard setup.

yacovm (Tue, 17 Oct 2017 07:52:08 GMT):
aha like via a binary?

yacovm (Tue, 17 Oct 2017 07:52:11 GMT):
and not via docker?

vhm (Tue, 17 Oct 2017 07:54:08 GMT):
@yacovm well still the peers, orderers etc. would run in docker, but yes, the chaincode would have to be probably instantiated as binary without access to the socket

vhm (Tue, 17 Oct 2017 07:54:31 GMT):
@yacovm this is only my guess though, not sure if there is some other way

johncaboose (Tue, 17 Oct 2017 08:12:54 GMT):
Has joined the channel.

corentindaniel (Tue, 17 Oct 2017 08:36:28 GMT):
Has joined the channel.

corentindaniel (Tue, 17 Oct 2017 08:36:41 GMT):
hi all i'm following this tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html and i got this error : /bin/bash: ./scripts/script.sh : Permission denied when i run this command ./byfn.sh -m up can you help me please

yacovm (Tue, 17 Oct 2017 08:41:19 GMT):
@vhm we currently can't run the chaincode outside of docker in producton

yacovm (Tue, 17 Oct 2017 08:41:19 GMT):
@vhm we currently can't run the chaincode outside of docker in production

vhm (Tue, 17 Oct 2017 08:42:17 GMT):
@yacovm ok thanks, I'll try to get access to the socket :)

ibmamnt (Tue, 17 Oct 2017 09:07:01 GMT):
Has joined the channel.

thakkarparth007 (Tue, 17 Oct 2017 10:56:06 GMT):
Has joined the channel.

thakkarparth007 (Tue, 17 Oct 2017 10:56:27 GMT):
Does fabric support "n-out-of" syntax for endorsement policy in cli? http://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html This doesn't say it supports, but I probably had seen that being supported somewhere. Maybe I'm mistaken?

aviralwal (Tue, 17 Oct 2017 12:43:59 GMT):
Has joined the channel.

jmcnevin (Tue, 17 Oct 2017 12:46:30 GMT):
is it possible to put an orgs peers behind a load balancer, or would that be problematic?

kirsch47 (Tue, 17 Oct 2017 13:19:28 GMT):
Has joined the channel.

toddinpal (Tue, 17 Oct 2017 13:20:44 GMT):
Where can I find instructions on how to set up TLS for gRPC communication in peers, orderers, and SDK?

NabeelSheikh (Tue, 17 Oct 2017 13:52:28 GMT):
Has joined the channel.

NabeelSheikh (Tue, 17 Oct 2017 13:52:47 GMT):
i ran docker exec -it cli bash but getting response " Error daemon container is not running"

utiMan (Tue, 17 Oct 2017 14:49:03 GMT):
Has joined the channel.

utiMan (Tue, 17 Oct 2017 15:01:12 GMT):
Hi all, I am trying to use a hardware HSM via pkcs11 as the BCCSP. I setup everything with docker 17.09. When I start the ca container it stops immediately. docker logs shows `[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]` plus this trace https://pastebin.com/Sq8YPYhb What is going wrong here?

brianz (Tue, 17 Oct 2017 19:48:56 GMT):
Has joined the channel.

SamuelDare (Tue, 17 Oct 2017 21:02:30 GMT):
Has joined the channel.

SamuelDare (Tue, 17 Oct 2017 21:02:44 GMT):
Hi Community Trying to run the fastcar application but hitting a blocker with the `query js` file throws ``` Santi (release *) fabcar $ node query.js module.js:529 throw err; ^ Error: Cannot find module '/Users/pro/Documents/Code/HyperLegderFabric/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64/grpc_node.node' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. (/Users/pro/Documents/Code/HyperLegderFabric/fabric-samples/fabcar/node_modules/grpc/src/node/src/grpc_extension.js:30:15) at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) ``` running python 3.6...had to bypass the block by running `sudo npm install -g --python=python2.7` will appreciate pointers on this

SamuelDare (Tue, 17 Oct 2017 21:47:44 GMT):
sorted :)

kojima714 (Wed, 18 Oct 2017 02:32:22 GMT):
Has joined the channel.

luomin (Wed, 18 Oct 2017 05:41:43 GMT):
@corentindaniel have you tried your command "./byfn.sh -m up" with 'sudo '?

UmerJafer (Wed, 18 Oct 2017 05:42:20 GMT):
Has joined the channel.

UmerJafer (Wed, 18 Oct 2017 05:42:29 GMT):
Hi Everyone, I am newbie on Hyperledger. I am trying out the sample projects provided on Github and following information provided on the docs. I am facing problem in the first-network deployment. When I run ./byfn.sh -m up, the containers are created but during E2E testing the process crashes on with following error: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: read udp 127.0.0.1:60699->127.0.0.11:53: read: connection refused"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable.

mastersingh24 (Wed, 18 Oct 2017 08:57:42 GMT):
@UmerJafer - You might want to have a look at https://stackoverflow.com/questions/45856564/error-starting-hyperledger-fabcar-sample-application/45916717#45916717 I think adding the `dns_search` property to your containers in the compose file should do the trick

giokou (Wed, 18 Oct 2017 09:14:01 GMT):
Hi all, I have a blockchain network with 4 organizations - 1 Orderer / 1 Org1 / 1 Org2 / 1 Org3. For the Org1 and Org2 I have only 1 peer for each one of them and for Org3 I have 2 peers. On each peer of the Org3 a different server is connected to it. The process of booting up our network is that we first boot up the blockchain which is bound to the Org1, and then the rest of the servers one by one. Everything goes fine until we boot the second server bound to the Org3, which returns this error: Error: chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin])) The interesting part is that, once we restart the server it starts with no issues. Do you have any idea of why this is happening and how we can resolve this issue? Any help would be highly appreciated. Thank you!

giokou (Wed, 18 Oct 2017 09:14:01 GMT):
Hi all, I have a blockchain network with 4 organizations - 1 Orderer / 1 Org1 / 1 Org2 / 1 Org3. For the Org1 and Org2 I have only 1 peer for each one of them and for Org3 I have 2 peers. On each peer of the Org3 a different server is connected to it. The process of booting up our network is that we first boot up the blockchain which is bound to the Org1, and then the rest of the servers one by one. Everything goes fine until we boot the second server bound to the Org3, which returns this error: `Error: chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))` The interesting part is that, once we restart the server it starts with no issues. Do you have any idea of why this is happening and how we can resolve this issue? Any help would be highly appreciated. Thank you!

giokou (Wed, 18 Oct 2017 09:14:01 GMT):
Hi all, I have a blockchain network with 4 organizations - 1 Orderer / 1 Org1 / 1 Org2 / 1 Org3. For the Org1 and Org2 I have only 1 peer for each one of them and for Org3 I have 2 peers. On each peer of the Org3 a different server is connected to it. The process of booting up our network is that we first boot up the blockchain which is bound to the Org1, and then the rest of the servers one by one. Everything goes fine until we boot the second server bound to the Org3, which returns this error: `Error: chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))` The interesting part is that, once I restart the server it starts with no issues. Do you have any idea of why this is happening and how I can resolve this issue? Any help would be highly appreciated. Thank you!

ArvsIndrarys (Wed, 18 Oct 2017 09:46:08 GMT):
Hi guys ! I made the blockchain persistent by copying the `/var/hyperledger/production/` folder on my server. The thing is, I want now to be able to remove/recreate the containers, attach them back to the channel and reconnect to the blockchain already present. The problem I have concerns the peers as I don't know how to attach them to the blockchain : I would like them to recreate the `dev-peerX-chaincode...` container but : when I use `peer chaincode install -n chaincode -v 1.0 -p github.com/hyperledger/fabric/peer/chaincode` command I get the error : `status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists`, and same thing when I use the command `peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt - C $CHANNEL_NAME -n chaincode -v 1.0 -c '{"Args":["init"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"`. Is there any way to resolve that?

dolanor (Wed, 18 Oct 2017 09:47:24 GMT):
Has joined the channel.

lclclc (Wed, 18 Oct 2017 09:48:17 GMT):
I have a question about fabric's disaster tolerance, and no clue from the document, I hope some expert or designer of Fabric can tell me some insight opinion.

Vadim (Wed, 18 Oct 2017 09:48:56 GMT):
@ArvsIndrarys if you stop a container and remove the corresponding docker image, the peer will rebuild it and start it again when you invoke it

lclclc (Wed, 18 Oct 2017 09:49:22 GMT):
According to document, fabric network has different nodes, like orderer, ca, peer, and we can have extra couch db containers and kafka containers.

lclclc (Wed, 18 Oct 2017 09:49:43 GMT):
How the failover will happen when some of them are down?

lclclc (Wed, 18 Oct 2017 09:49:59 GMT):
Do they have something like quorum?

lclclc (Wed, 18 Oct 2017 09:51:30 GMT):
how many nodes can be lost for a certain network, like a classic 2 orgs 4 peers network with 3 kafka containers, 3 couchdb container, 3 orderers, and 1 ca container.

Vadim (Wed, 18 Oct 2017 09:57:01 GMT):
@lclclc I guess how many peers can go down depends on the endorsement policy; for kafka the doc says it needs 4 nodes and then it continues to work if one node goes down (see http://hyperledger-fabric.readthedocs.io/en/latest/kafka.html for more details); if the CA is down then you won't be able to register/enroll new users; if couchdb container is down, then the peer will not be able to read/write the state and you can also consider it down I guess.

KristofSajdak (Wed, 18 Oct 2017 09:57:16 GMT):
Has joined the channel.

lclclc (Wed, 18 Oct 2017 09:57:39 GMT):
That clear something

luxus (Wed, 18 Oct 2017 09:58:15 GMT):
@Vadim Hi, I am newbie on Hyperledger Fabric. I have a question: Infact, who will set up orderor node and kafka-zookeeper node?

Vadim (Wed, 18 Oct 2017 09:58:45 GMT):
so Kafka is not BFT, I guess it can be any org that does it

lclclc (Wed, 18 Oct 2017 09:58:56 GMT):
I know that if I use "Or" endorsement policy, will let the transaction be endorsed normally.

lclclc (Wed, 18 Oct 2017 09:59:45 GMT):
But, what if the anchor/leader peer is down?

Vadim (Wed, 18 Oct 2017 09:59:55 GMT):
policy just says how many signatures are needed and since you get it from peers and there are not enough peers online, the tx will be wrong

lclclc (Wed, 18 Oct 2017 09:59:57 GMT):
Can system get over it?

Vadim (Wed, 18 Oct 2017 10:02:19 GMT):
if the policy needs 4 signatures but only 2 peers are online, I don't see how it can get around it.

lclclc (Wed, 18 Oct 2017 10:03:02 GMT):
Let's say, we have 8 peers, and 4 of them are down.

lclclc (Wed, 18 Oct 2017 10:03:27 GMT):
But we have down anchors/leaders. Can system re-choose these special peers?

Vadim (Wed, 18 Oct 2017 10:03:46 GMT):
are you talking now about gossiping?

Vadim (Wed, 18 Oct 2017 10:03:57 GMT):
and syncing the ledger?

Vadim (Wed, 18 Oct 2017 10:04:29 GMT):
so anchor peers as far as I know can be used for syncing when orderers are not reachable

lclclc (Wed, 18 Oct 2017 10:04:49 GMT):
Not sure about if it is about gossiping. I want to know if this happens, can new transaction be recorded transparently.

Vadim (Wed, 18 Oct 2017 10:05:27 GMT):
if you cannot contact any orderer, there won't be any transaction possible

lclclc (Wed, 18 Oct 2017 10:05:37 GMT):
I think the anchor peer is used to understand network topology for other peers.

Vadim (Wed, 18 Oct 2017 10:05:52 GMT):
no, that's for syncing

lclclc (Wed, 18 Oct 2017 10:06:32 GMT):
But "finding orderer" -- knowing the topology isn't syncing?

Vadim (Wed, 18 Oct 2017 10:06:48 GMT):
orderer addresses are encoded in the genesis block

lclclc (Wed, 18 Oct 2017 10:07:42 GMT):
Oh, I see. Then if orderer is ok, and anchor peer is down, how will system behave?

Vadim (Wed, 18 Oct 2017 10:08:25 GMT):
normally

Vadim (Wed, 18 Oct 2017 10:08:50 GMT):
you might not even set these anchor peers, everything runs fine as long as orderers are ok

Vadim (Wed, 18 Oct 2017 10:09:14 GMT):
maybe check https://docs.google.com/document/d/157AvKxVRqgeaCTSpN86ICa5x-XihZ67bOrNMc5xLvEU/edit#

lclclc (Wed, 18 Oct 2017 10:09:30 GMT):
Oh, I think I was correct, the anchor peer is like this according the Glossary: ```A peer node on a channel that all other peers can discover and communicate with. Each Member on a channel has an anchor peer (or multiple anchor peers to prevent single point of failure), allowing for peers belonging to different Members to discover all existing peers on a channel. ```

lclclc (Wed, 18 Oct 2017 10:09:52 GMT):
anchor peer is for detecting topology(not orderer but for peers)

lclclc (Wed, 18 Oct 2017 10:10:02 GMT):
And syncing is by leading peer

lclclc (Wed, 18 Oct 2017 10:10:18 GMT):
```Leading Peer Each Member can own multiple peers on each channel that it subscribes to. One of these peers is serves as the leading peer for the channel, in order to communicate with the network ordering service on behalf of the member. The ordering service “delivers” blocks to the leading peer(s) on a channel, who then distribute them to other peers within the same member cluster.```

Vadim (Wed, 18 Oct 2017 10:11:07 GMT):
ok, but it works without anchor peers pretty well

lclclc (Wed, 18 Oct 2017 10:11:33 GMT):
but if leading peer is down, the system will still keep normal?

Vadim (Wed, 18 Oct 2017 10:11:53 GMT):
it can be reelected, read the doc I've attached

Vadim (Wed, 18 Oct 2017 10:12:00 GMT):
and leading peer != anchor peer

lclclc (Wed, 18 Oct 2017 10:12:16 GMT):
Yes, I can tell that from Glossary.

lclclc (Wed, 18 Oct 2017 10:12:47 GMT):
And what is the difference between normal orderer nodes and kafka nodes?

Vadim (Wed, 18 Oct 2017 10:13:27 GMT):
kafka enables distributed consensus and allows to run more than one orderer

Vadim (Wed, 18 Oct 2017 10:13:51 GMT):
but it's only crash-tolerant and does not protect when some orderer misbehaves

Vadim (Wed, 18 Oct 2017 10:14:05 GMT):
so... looking forward to BFT consensus

lclclc (Wed, 18 Oct 2017 10:14:21 GMT):
I haven't tried, but I can just bootstrap one orderer?

lclclc (Wed, 18 Oct 2017 10:14:41 GMT):
BFT consensus is support by what node?

Vadim (Wed, 18 Oct 2017 10:15:28 GMT):
one orderer is called "solo consensus"

Vadim (Wed, 18 Oct 2017 10:15:54 GMT):
BFT consensus is currently not supported at all, but there is ongoing work to bring it in the future releases

lclclc (Wed, 18 Oct 2017 10:17:02 GMT):
I read from document that in the future, consensus will be plugable.

lclclc (Wed, 18 Oct 2017 10:17:10 GMT):
And BFT is coming.

lclclc (Wed, 18 Oct 2017 10:17:38 GMT):
So now options I have in hand are: 1 use one order, 2 use kafka and zookeeper?

lclclc (Wed, 18 Oct 2017 10:17:45 GMT):
Can they work together?

Vadim (Wed, 18 Oct 2017 10:18:17 GMT):
no

Vadim (Wed, 18 Oct 2017 10:18:27 GMT):
there will be 3. some bft consensus

Vadim (Wed, 18 Oct 2017 10:18:51 GMT):
the consensus is encoded in the genesis block. But I think you can have different consensus on different channels.

lclclc (Wed, 18 Oct 2017 10:19:27 GMT):
I belive so

lclclc (Wed, 18 Oct 2017 10:19:49 GMT):
And what is the couch db nodes is mapping to peer nodes?

Vadim (Wed, 18 Oct 2017 10:20:10 GMT):
1:1

Vadim (Wed, 18 Oct 2017 10:20:23 GMT):
so each peer has its own couchdb

lclclc (Wed, 18 Oct 2017 10:20:29 GMT):
Do couchdb nodes join a cluster, or if one couchdb node is down, its peer will be functional?

lclclc (Wed, 18 Oct 2017 10:20:41 GMT):
won't be

Vadim (Wed, 18 Oct 2017 10:20:55 GMT):
not sure, perhaps it depends on couchdb

lclclc (Wed, 18 Oct 2017 10:21:04 GMT):
I see.

lclclc (Wed, 18 Oct 2017 10:21:13 GMT):
As far as I summarize now.

lclclc (Wed, 18 Oct 2017 10:21:26 GMT):
Each layer has its failover mechanism

lclclc (Wed, 18 Oct 2017 10:21:47 GMT):
It depends on the traditional technology it is using

Vadim (Wed, 18 Oct 2017 10:23:09 GMT):
some are in fabric, e.g. in gossip

lclclc (Wed, 18 Oct 2017 10:23:30 GMT):
Yes, gossip is so useful, I have seen it in several systems.

lclclc (Wed, 18 Oct 2017 10:24:31 GMT):
Consul is also using gossip to sync its data

lclclc (Wed, 18 Oct 2017 10:24:48 GMT):
Thanks Vadim.

NabeelSheikh (Wed, 18 Oct 2017 10:58:40 GMT):
I am working on this tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html To Create and Join Channel i am trying to run following peer command : peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem I am connected to container as well after executing docker exec -it cli bash. Even i have tried ./peer but i am still getting no peer directory exist or peer command not found

tixu (Wed, 18 Oct 2017 12:11:23 GMT):
Has joined the channel.

nickgaski (Wed, 18 Oct 2017 14:35:58 GMT):
@NabeelSheikh - how did you retrieve the docker images? Also does the all in one script - `./byfn.sh -m generate` & `./byfn.sh -m up` succeed on your machine?

SamuelDare (Wed, 18 Oct 2017 14:43:57 GMT):
Hi @community : I`composer archive create -a dist/my-network.bna --sourceType dir --sourceName` and getting the following error ` bash : composer : command not found ` what file path do I have to add to my `.bash_profile`?

ArvsIndrarys (Wed, 18 Oct 2017 14:51:57 GMT):
@Vadim the thing is, I totally remove the peers containers, orderer container and chaincode containers and images. So the only thing that proves the blockchain existed is the data copied from `/var/hyperledger/production`. I want when I create them back to link with the blockchain that existed. Shall I keep the chaincode images in that case? What is the way to connect the new containers to the "old" data?

Vadim (Wed, 18 Oct 2017 14:53:58 GMT):
@ArvsIndrarys so I tried to store the /var/hyperledger/production so it survives container restart and completely removed cc images and containers. When I started the container, the peer was exactly in the state like before manipulations and cc containers were started after I invoked them

Vadim (Wed, 18 Oct 2017 14:53:58 GMT):
@ArvsIndrarys so I tried to store the /var/hyperledger/production on a persistent volume so it survives container restart and completely removed cc images and containers. When I started the container, the peer was exactly in the state like before manipulations and cc containers were started after I invoked them

Vadim (Wed, 18 Oct 2017 14:53:58 GMT):
@ArvsIndrarys so I tried to store the /var/hyperledger/production on a persistent volume so it survives container restart and completely removed cc images and containers. When I started the container, the peer was exactly in the state like before manipulations and cc containers were started after I invoked them.

ArvsIndrarys (Wed, 18 Oct 2017 14:55:19 GMT):
@Vadim dumb question then : which was the version you are using? we are on the 1.0.2 one

Vadim (Wed, 18 Oct 2017 14:55:27 GMT):
that one too

ArvsIndrarys (Wed, 18 Oct 2017 14:55:28 GMT):
(fabric 1.0.2)

Vadim (Wed, 18 Oct 2017 14:56:10 GMT):
you have different expirience?

corentindaniel (Wed, 18 Oct 2017 14:57:05 GMT):
hi i have some questions with acls of hyperledger api

corentindaniel (Wed, 18 Oct 2017 14:57:26 GMT):
nothing DENY acl are working

Vadim (Wed, 18 Oct 2017 14:57:46 GMT):
@corentindaniel it's not composer-related?

Vadim (Wed, 18 Oct 2017 14:57:46 GMT):
@corentindaniel is its not composer-related question maybe?

Vadim (Wed, 18 Oct 2017 14:57:46 GMT):
@corentindaniel is it not composer-related question maybe?

corentindaniel (Wed, 18 Oct 2017 14:58:20 GMT):
yes it is ^^

Vadim (Wed, 18 Oct 2017 14:58:45 GMT):
@corentindaniel perhaps makes sense to ask on #composer channel

corentindaniel (Wed, 18 Oct 2017 14:58:50 GMT):
yes thanks

ArvsIndrarys (Wed, 18 Oct 2017 15:10:09 GMT):
@Vadim Okay thanks, I think my problem is related to something else then I have the error : `Org1MSP unknown`. But in our configtx, we have the Org1MSP and same on our client. we are using the peerOrganizations/.../peers/.../tlsca.org1.example.com-cert.pem certificate to initiate the connection with our peer... We did not regenerate the certificates between the two containers creation. But I think the error is on our side

Vadim (Wed, 18 Oct 2017 15:11:44 GMT):
@ArvsIndrarys and before peer restart it works?

Vadim (Wed, 18 Oct 2017 15:12:26 GMT):
are you sure you set all env vars correctly?

ArvsIndrarys (Wed, 18 Oct 2017 15:20:42 GMT):
we are looking into it

aatkddny (Thu, 19 Oct 2017 00:48:13 GMT):
So I have a best practices question. I've reworked the java-sdk example to work with some very basic go chaincode that adds a representation of an actor to the ledger.

aatkddny (Thu, 19 Oct 2017 00:48:13 GMT):
So I have a best practices question. I've reworked the java-sdk example to work with some very basic go chaincode that adds a representation of an actor to the ledger. Let's say I have two or three different flavors of actor and then a network of interactions they can make. Am I better to have separation of concerns and make distinct chaincode deployments for each or should I lump it all together into one giant chaincode and use actions as part of the args to determine what I'm doing?

aatkddny (Thu, 19 Oct 2017 00:48:13 GMT):
So I have a best practices question. I've reworked the java-sdk example to work with some very basic go chaincode that adds a representation of an actor to the ledger. Let's say I have two or three different flavors of actor, a bunch of assets and then a rats nest of transactions they can undertake. Am I better to have separation of concerns and make distinct chaincode deployments for each or should I lump it all together into one giant chaincode and use actions as part of the args to determine what I'm doing?

aatkddny (Thu, 19 Oct 2017 00:48:13 GMT):
So I have a best practices question. I've reworked the java-sdk example to work with some very basic go chaincode that adds a representation of an actor to the ledger. Let's say I have two or three different flavors of actor, a bunch of assets and then a rats nest of transactions they can undertake. Am I better to have separation of concerns and make distinct chaincode deployments for each or should I lump it all together into one giant chaincode and use actions as part of the args to determine what I'm doing? Also am I better to put validation logic into the go code or keep it in the java wrapper?

qq597332855 (Thu, 19 Oct 2017 01:32:44 GMT):
I succeeded in installing chaincode with fabric-sdk-java, and the initialization was successful. The log can see it. But when the query can not find chaincode, what is the matter?

aatkddny (Thu, 19 Oct 2017 01:45:45 GMT):
@qq597332855 I'm assuming the container with the deployed chain code is visible in docker. If not then your chaincode isn't installed properly. I ended up using the tgz approach from my own location. I missed the required _go suffix on the name the first go around. That doesn't give much in the way of helpful messages, as you think it went in ok but it failed miserably. Double check the chaincode id of the query against what you put in there as part of the deploy (there's an implicit required /src/ in the path to the go code that can mess you up if you start using your own locations.

qq597332855 (Thu, 19 Oct 2017 01:47:28 GMT):
Okay, thank you

luxus (Thu, 19 Oct 2017 02:00:20 GMT):
How to Fabric prevent double spending?

lclclc (Thu, 19 Oct 2017 02:12:58 GMT):
read-write semantics can prevent that I believe.

lclclc (Thu, 19 Oct 2017 02:13:34 GMT):
It will do a compare-and-write in sequence while finally writing transaction to the ledgers.

lclclc (Thu, 19 Oct 2017 02:13:59 GMT):
If you do a double spend, the last transaction will be treat elegal.

lclclc (Thu, 19 Oct 2017 02:14:05 GMT):
illegal

lclclc (Thu, 19 Oct 2017 02:14:08 GMT):
@luxus

luxus (Thu, 19 Oct 2017 02:27:24 GMT):
thank @lclclc .And I have another question: Infact, who will set up the orderor node ?

lclclc (Thu, 19 Oct 2017 02:33:39 GMT):
IMHO, the docker-compose

lclclc (Thu, 19 Oct 2017 02:34:03 GMT):
Or, the network manager which control initial design of network.

luxus (Thu, 19 Oct 2017 02:38:14 GMT):
@lclclc suppose we have four organizations, who will the network manager?

lclclc (Thu, 19 Oct 2017 02:42:30 GMT):
I guess, no official document.

lclclc (Thu, 19 Oct 2017 02:42:42 GMT):
This is a cortursim chain.

lclclc (Thu, 19 Oct 2017 02:42:55 GMT):
Must have a joining process.

lclclc (Thu, 19 Oct 2017 02:43:13 GMT):
Then, who will take up the first ca server?

lclclc (Thu, 19 Oct 2017 02:43:27 GMT):
The first founder, not the second joiner.

lclclc (Thu, 19 Oct 2017 02:43:50 GMT):
The network will be running equally for 4 orgs.

lclclc (Thu, 19 Oct 2017 02:44:00 GMT):
But not set up by 4 of them.

luxus (Thu, 19 Oct 2017 02:47:16 GMT):
Okay, I understood. Thank you very much @lclclc

luomin (Thu, 19 Oct 2017 04:24:25 GMT):
Hi, guys! I am Running the unit tests (make unit-test)behind a Proxy, and got the errors like "Cannot initiate the connection to 20066:80 (0.0.78.98). - connect (22: Invalid argument)"

luomin (Thu, 19 Oct 2017 04:27:22 GMT):
Anyone can give me some hint? I've export the http_proxy, https_proxy, and also the proxy for apt-get. Here below is a longer list of the msg: W: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file. E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/source/Sources Cannot initiate the connection to 20066:80 (0.0.78.98). - connect (22: Invalid argument) E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/source/Sources Cannot initiate the connection to 20066:80 (0.0.78.98). - connect (22: Invalid argument) E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/source/Sources Cannot initiate the connection to 20066:80 (0.0.78.98). - connect (22: Invalid argument) E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages Cannot initiate the connection to 20066:80 (0.0.78.98). - connect (22: Invalid argument) E: Some index files failed to download. They have been ignored, or old ones used instead. The command '/bin/sh -c bash /tmp/install-softhsm2.sh && rm -f install-softhsm2.sh' returned a non-zero code: 100 Makefile:285: recipe for target 'build/image/testenv/.dummy-x86_64-1.1.0-snapshot-8149916' failed make: *** [build/image/testenv/.dummy-x86_64-1.1.0-snapshot-8149916] Error 100

luomin (Thu, 19 Oct 2017 04:31:15 GMT):
neither the solutions helped in https://askubuntu.com/questions/762273/16-04-upgrade-failed-to-fetch-empty-files-cant-be-valid-archives nor https://ubuntuforums.org/archive/index.php/t-1889695.html

BrianOtieno (Thu, 19 Oct 2017 05:10:10 GMT):
Has joined the channel.

alexandra_g (Thu, 19 Oct 2017 05:40:06 GMT):
I am testing out the fabcar sample application -- and I am getting the following error after running ./startFabric.sh. ``` Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar chaincode/input/src/github.com/fabcar/fabcar.go:196: cannot use new(SmartContract) (type *SmartContract) as type shim.Chaincode in argument to shim.Start: *SmartContract does not implement shim.Chaincode (missing Init method) ```

alexandra_g (Thu, 19 Oct 2017 05:40:25 GMT):
If I can get some clarity on the issue I'm experiencing that would be great! Thank you in advance!

amolpednekar (Thu, 19 Oct 2017 05:50:28 GMT):
Can someone tell me, when is the hfc-test-kvs folder created on the host machine running the container?

amolpednekar (Thu, 19 Oct 2017 05:50:28 GMT):
Can someone tell me, when is the *hfc-test-kvs* folder created on the host machine running the container?

luxus (Thu, 19 Oct 2017 06:00:13 GMT):
.

alexandra_g (Thu, 19 Oct 2017 06:54:24 GMT):
Hi All, I'm testing out the fabcar sample application and after trying to make a query I'm getting the following error ``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") ```

alexandra_g (Thu, 19 Oct 2017 06:54:58 GMT):
If anyone knows what I should adjust that would be helpful! Thanks in advance!

luomin (Thu, 19 Oct 2017 07:12:13 GMT):
@luomin answer of my question above. Have to add http_proxy info. in the Dockfile document. such as fabric/images/testenv/Dockfile.in. More hints around could be found at https://blog.codeship.com/using-docker-behind-a-proxy/

ConConCop (Thu, 19 Oct 2017 08:51:28 GMT):
Has joined the channel.

ConConCop (Thu, 19 Oct 2017 08:58:08 GMT):
hello guys, i learning fabric for the first time, I have some question : + about back-end, how it work ? + After development can be deployed independently without dependence on IBM's resources such as server, cloud, ....? thanks

hugo-borne (Thu, 19 Oct 2017 09:40:19 GMT):
Hello Fabric community, We are working on a project based on Fabric 1.0.1 and we use the fabric node SDK. We also use configtxlator to add an organisation to an existing channel. Our 'AddPermission' logic is based on https://github.com/sandp125/FabricNodeAPI_V1. We noticed a strange behaviour of Fabric when updating the channel permission: If the channel we update is young (not a lot of blocks), everything works fine. However, if the channel is old (many blocks), we are only able to join the new organisation. All the following invoke attempts from the new organisation in the channel trigger errors. The system acts as if we try to invoke from a foreign organisation (orgMSP is unknown). The limit (young/old) seems to be around 100 blocks. Do you have any idea of what could cause this behaviour? Cheers, -H

hugo-borne (Thu, 19 Oct 2017 09:40:19 GMT):
Hello Fabric community, We are working on a project based on Fabric 1.0.1 and we use the fabric node SDK. We also use configtxlator to add an organisation to an existing channel. Our 'AddPermission' logic is based on https://github.com/sandp125/FabricNodeAPI_V1/blob/master/app/channel-config.js. We noticed a strange behaviour of Fabric when updating the channel permission: If the channel we update is young (not a lot of blocks), everything works fine. However, if the channel is old (many blocks), we are only able to join the new organisation. All the following invoke attempts from the new organisation in the channel trigger errors. The system acts as if we try to invoke from a foreign organisation (orgMSP is unknown). The limit (young/old) seems to be around 100 blocks. Do you have any idea of what could cause this behaviour? Cheers, -H

ArvsIndrarys (Thu, 19 Oct 2017 09:41:51 GMT):
@Vadim Hi ! just concluding that the problem was on our side and everything is working perfectly ! Thanks for helping us out

UmerJafer (Thu, 19 Oct 2017 10:13:33 GMT):
Hi, I am going through the documentation for Build your First Network and I am reviewing the behind the scenes section. There it is mentioned that once all nodes join a channel the anchor peers of each organization are updated in their respective MSPs. I wanted to know what is an anchor peer and how is it different from a normal peer and how do we define a peer as an anchor peer?

mastersingh24 (Thu, 19 Oct 2017 14:16:08 GMT):
@Chanjiki Are you running on Windows? (https://chat.hyperledger.org/channel/general?msg=k64ttkY2ZLQa7H6BQ)

Chanjiki (Thu, 19 Oct 2017 14:16:08 GMT):
Has joined the channel.

ngg0707 (Thu, 19 Oct 2017 15:58:54 GMT):
Has joined the channel.

ngg0707 (Thu, 19 Oct 2017 16:02:33 GMT):
Who can tell me the function of the docker image "hyperledger/fabric-ccenv"?What is its relationship with "hyperledger/peer“?Or where can I find the information about it (hyperledger/fabric-ccenv)?:sob:

jeffgarratt (Thu, 19 Oct 2017 16:28:45 GMT):
@ngg0707 it is the basis for chaincode deployment. If you notice, when you deploy, a new VM is launched and your chaincode is built using this image.

ngg0707 (Thu, 19 Oct 2017 16:35:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vWGQgDfbPubqTBKwh) @jeffgarratt Is "a new VM" equal to a new Docker container?

jeffgarratt (Thu, 19 Oct 2017 16:35:43 GMT):
correct, sorry.. should have said container

jeffgarratt (Thu, 19 Oct 2017 16:36:30 GMT):
if you watch the process... you will see a new ..ccenv spin up, then they will be replaced with your newly minted container with the chaincode

jeffgarratt (Thu, 19 Oct 2017 16:36:30 GMT):
@ngg0707 if you watch the process... you will see a new ..ccenv spin up, then they will be replaced with your newly minted container with the chaincode

nickgaski (Thu, 19 Oct 2017 18:22:28 GMT):
@UmerJafer - the anchor peers are really discovery mechanisms for peers to learn about not only peers in their own orgs, but peers in other orgs as well. So essentially a cross-organization gossip mechanism

nickgaski (Thu, 19 Oct 2017 18:22:48 GMT):
they're defined within the configuration of a channel

ngg0707 (Fri, 20 Oct 2017 01:57:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aRtZqKXxmTMXxAN4K) @jeffgarratt Thank you!I think I generally understand it and

ngg0707 (Fri, 20 Oct 2017 01:59:17 GMT):
need more practical experience then:relaxed:

luxus (Fri, 20 Oct 2017 04:35:25 GMT):
Hi all. I read the Fabric's document and can set the maximum block size in `configtx.yaml` file.But, what is maximum number can set?

Mitch17 (Fri, 20 Oct 2017 06:56:50 GMT):
Has joined the channel.

mastersingh24 (Fri, 20 Oct 2017 08:44:31 GMT):
@luxus - https://github.com/hyperledger/fabric/blob/release/sampleconfig/configtx.yaml#L151 - sets the max messages per block

luxus (Fri, 20 Oct 2017 08:47:51 GMT):
@mastersingh24 : what is maximum value of MaxMessageCount and AbsoluteMaxBytes in https://github.com/hyperledger/fabric/blob/release/sampleconfig/configtx.yaml#L157 ?

hoffin (Fri, 20 Oct 2017 09:52:05 GMT):
Has joined the channel.

mastersingh24 (Fri, 20 Oct 2017 09:52:59 GMT):
AbsoluteMaxBytes <= ~98MB (we only allow payloads 100MB or less at the transport layer) MaxMessageCount is a uint32 so 4294967295 is the largest value it can technically hold. I think you are typically looking at 500-1000 msgs at the high end for a realistic configuration

luxus (Fri, 20 Oct 2017 09:56:28 GMT):
@mastersingh24 thank you very much

jungilpark (Fri, 20 Oct 2017 18:14:40 GMT):
Hi All, I just upgrade from 0.6 to 1.03 (hyperledger and nodejs client). but it looks like chaincode upgrade does not work as expected. First, the data is not moved to newly upgraded chaincode. second, when I invoke a query, it does not go to the new version of chaincode.

jungilpark (Fri, 20 Oct 2017 18:16:16 GMT):
Does anyone know it is expected behavior? Or I did something wrong?

Asara (Fri, 20 Oct 2017 18:18:09 GMT):
@jungilpark You will need to upgrade your chaincode. https://developer.ibm.com/blockchain/2017/03/17/migrate-fabric-v0-6-based-chaincode-run-latest-fabric-v1-0/ is a good starting point

jungilpark (Fri, 20 Oct 2017 18:22:32 GMT):
Thanks a lot for the response. I will look into it.

jungilpark (Fri, 20 Oct 2017 18:34:25 GMT):
Oh, this article I already looked at before.... actually, I successfully upgrade the chaincode and everything is working, invoking transactions and querying the ledger with TLS enabled. Also, CA server is running to register and enroll users. My problem is that I had to change the chaincode after I was ruinning blockchain network (1.0 version) for sometime, so I installed new version of chaincode and upgrade it. But new chaincode is empty. Old one has all the blocks of data. And even I invoke the new transaction it is still going to the old chaincde... Do I have to do something more after the upgrade? Or do I have to do something specific while I am upgrade the chaincode? Actually, I did upgarde with empty init.... Is it a problem?

kumar (Fri, 20 Oct 2017 22:18:33 GMT):
Has joined the channel.

kumar (Fri, 20 Oct 2017 22:19:21 GMT):
Hi, I am trying to understand the best practices for identifying Orgs and peers for setup the infrastructure for any uses building. so when we setup an org, what all things should be considered

Chanjiki (Sat, 21 Oct 2017 07:24:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xwbFoLE8g7Ckhd7by) @mastersingh24 sorry for late reply - i am running this on Mac!

mastersingh24 (Sat, 21 Oct 2017 11:29:22 GMT):
Docker for Mac or Docker Toolbox?

Chanjiki (Sat, 21 Oct 2017 13:03:57 GMT):
It's just a docker for Mac

Chanjiki (Sat, 21 Oct 2017 13:04:14 GMT):
should I use Docker for mac in this case?

mastersingh24 (Sat, 21 Oct 2017 13:23:23 GMT):
So if you use Docker Toolbox, you'll have an issue in that the fabcar NodeJS app tries to access the endpoint via localhost which won't work

mastersingh24 (Sat, 21 Oct 2017 13:23:33 GMT):
It should work ok if you are using Docker for Mac

Chanjiki (Sat, 21 Oct 2017 13:39:08 GMT):
I see. Thanks for information, and would there be anyway that I can check if i am using docker toolbox or docker for mac?

mogamboizer (Sat, 21 Oct 2017 15:11:27 GMT):
Has joined the channel.

ngg0707 (Sat, 21 Oct 2017 15:31:05 GMT):
Who know what is endorser?There is no docker image or

ngg0707 (Sat, 21 Oct 2017 15:31:36 GMT):
docker container named endorser.

ngg0707 (Sat, 21 Oct 2017 15:32:43 GMT):
What is the relationship between endorser and orderer?

ngg0707 (Sat, 21 Oct 2017 15:32:52 GMT):
Thank you.

shubhammangla (Sat, 21 Oct 2017 18:15:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Q8R76CLaLg2sAK8z) @alexandra_g Any luck in getting past this issue. I am getting the same error...

UmerJafer (Sun, 22 Oct 2017 05:15:23 GMT):
@nickgaski Thanks for the information. The documentation provides the information but you have to dig here and there to get the full picture.

BrianOtieno (Sun, 22 Oct 2017 14:54:57 GMT):
Hi guys, I would like to deploy a hyperledger fabric network in the cloud. However, I am wondering how much processing power and memory will I need to set aside for this project. I just want to create a network that a team of 4 can work on over time. Your help will be highly appreciated.

carlosho17 (Sun, 22 Oct 2017 23:23:38 GMT):
Has joined the channel.

username343 (Mon, 23 Oct 2017 04:33:15 GMT):
Hello everyone,1. do the peers read the values from the couchdb store, if yes what happens when the couchdb data gets compromised? If ouchdb is not used by the peer for validating and committing transactions what is it used for?

username343 (Mon, 23 Oct 2017 04:33:47 GMT):
2. Can a chaincode access data of another chaincode in the same channel?

username343 (Mon, 23 Oct 2017 04:34:38 GMT):
3. What are resources for reading about, writing network configuration yaml file?

Ferdoran (Mon, 23 Oct 2017 09:49:11 GMT):
Hey everybody, I have a question regarding the setup of a nodeJS client. I can't find which certificates of the crypto config are being used for the nodeJS client. In the fabcar example there is a *creds* folder containing a private and public key and a JSON file called _PeerAdmin_. In the _PeerAdmin_ file there are the fields *identity* and *signingIdentity* and *certificate*. 1. Where do these values come from? 2. And where do the public and private key come from?

Vadim (Mon, 23 Oct 2017 09:58:47 GMT):
@Ferdoran these are generated by the nodesdk itself when you enroll with fabric-ca

Ferdoran (Mon, 23 Oct 2017 10:00:33 GMT):
@Vadim Could you maybe tell me where the script / code is that generates them? Or is there a tutorial for this?

Ferdoran (Mon, 23 Oct 2017 10:00:33 GMT):
@Vadim Could you maybe tell me where _PeerAdmin_ file is generated? Or how it is generated?

Juehai (Mon, 23 Oct 2017 10:11:38 GMT):
Has joined the channel.

Vadim (Mon, 23 Oct 2017 10:43:11 GMT):
@Ferdoran you can look at this ca test: https://github.com/hyperledger/fabric-sdk-node/blob/release/test/integration/fabric-ca-services-tests.js, as soon as the user is enrolled, the key store (~/.hfc-key-store) will be populated with credentials similar to the creds folder.

Ferdoran (Mon, 23 Oct 2017 11:00:50 GMT):
@Vadim So I need to enroll a user first. Then the key store (~/.hfc-key-store) will be populated with credentials dynamically and I do not need the static creds folder?

Vadim (Mon, 23 Oct 2017 11:02:06 GMT):
that static creds folder exists because the project it is part of does not use fabric-ca for simplicity. Normally you would have fabric-ca and the key store will be populated automatically whenever you enroll a user.

Ferdoran (Mon, 23 Oct 2017 11:06:18 GMT):
@Vadim So I need to set up a fabric-ca-client first to enroll users, which then can be used by "normal" fabric-clients to perform transactions?

Vadim (Mon, 23 Oct 2017 11:06:41 GMT):
you just need fabric-ca server running, the client will be your nodejs app

Ferdoran (Mon, 23 Oct 2017 11:07:30 GMT):
So my nodejs app just needs to be a fabric-client and not a fabric-ca-client?

Vadim (Mon, 23 Oct 2017 11:08:18 GMT):
you can enroll users directly with fabric-ca-server from your nodejs app using fabric-sdk-node without any intermediaries

Ferdoran (Mon, 23 Oct 2017 11:10:31 GMT):
fabric-sdk-node/fabric-ca-client or fabric-sdk-node/fabric-client?

Vadim (Mon, 23 Oct 2017 11:10:48 GMT):
what is fabric-client?

Vadim (Mon, 23 Oct 2017 11:11:17 GMT):
I send you the test, it enrolls directly without any fabric-clients or fabric-ca-clients

Ferdoran (Mon, 23 Oct 2017 11:12:06 GMT):
fabric-client (https://github.com/hyperledger/fabric-sdk-node/tree/release/fabric-client) fabric-ca-client (https://github.com/hyperledger/fabric-sdk-node/tree/release/fabric-ca-client)

Vadim (Mon, 23 Oct 2017 11:14:15 GMT):
this is fabric-sdk-node

Vadim (Mon, 23 Oct 2017 11:14:23 GMT):
so yes, you need those two

Vadim (Mon, 23 Oct 2017 11:14:56 GMT):
there is fabric-ca-client which is standalone command line tool, that's why confusion

Ferdoran (Mon, 23 Oct 2017 11:17:58 GMT):
Thank you @Vadim . I think I got it now. I will test it.

CodeReaper (Mon, 23 Oct 2017 12:28:22 GMT):
Hey, Can somene explain the purpose of Org1MSPanchors.tx file that we can generate with configtxgen ?? I dont see it being used in channel creation(.block extension genesis block file) and joining.

CodeReaper (Mon, 23 Oct 2017 12:28:22 GMT):
Hey, Can somene explain the purpose of Org1MSPanchors.tx file that we can generate with configtxgen ?? I dont see it being used in channel creation and joining.

daanporon (Mon, 23 Oct 2017 15:30:08 GMT):
Has joined the channel.

daanporon (Mon, 23 Oct 2017 15:34:31 GMT):
hi, when you set up a channel ... you can define the consortium and the organisations ... consortium are the ones that can administer the channel? and the users that can execute chaincode on the channel should be part of one of the organizations within the channel ... but does this means that they can also create a peer that can join the channel? If they can only execute chaincode then they don't get full access to the state, but if they would be able to set up a peer, then they can get an instance of the statedb

daanporon (Mon, 23 Oct 2017 15:35:07 GMT):
how is it defined who can set up a peer to join a channel?

daanporon (Mon, 23 Oct 2017 15:36:13 GMT):
in the application we are going to create we have two organisation, org1 and org2 ... org2 will have a private channel with state in it ... and we want users from org1 to execute the chaincode on the private channel, but they can't have access to the full state ... how should you do this?

daanporon (Mon, 23 Oct 2017 15:36:13 GMT):
hi, in the application we are going to create we have two organisation, org1 and org2 ... org2 will have a private channel with state in it ... and we want users from org1 to execute the chaincode on the private channel, but they can't have access to the full state (so they cannot setup a peer for the private channel) ... how should we do this? is this possible?

thakkarparth007 (Mon, 23 Oct 2017 17:34:15 GMT):
Currently fabric allows only cross-chain reads. Will it allow cross-chain writes? If not, why not?

BrianOtieno (Mon, 23 Oct 2017 19:00:45 GMT):
Hi guys, I would like to deploy a hyperledger fabric network in the cloud. However, I am wondering how much processing power and memory will I need to set aside for this project. I just want to create a network that a team of 4 can work on over time. Your help will be highly appreciated.

ngg0707 (Tue, 24 Oct 2017 01:17:08 GMT):
Is anyone know what is the function of couchdb?What is the relationship between peer and couchdb?

qq597332855 (Tue, 24 Oct 2017 02:07:09 GMT):
org.hyperledger.fabric.sdk.exception.ProposalException: Getting block time exceeded 5 seconds for channel foo at org.hyperledger.fabric.sdk.Channel.joinPeer(Channel.java:546)

qq597332855 (Tue, 24 Oct 2017 02:09:40 GMT):
Get genesis block error ???

ngg0707 (Tue, 24 Oct 2017 02:49:58 GMT):
I‘ve found the answer...’

Jonny (Tue, 24 Oct 2017 03:17:26 GMT):
Hi guys, where can I find the info for the release planning. I need to know when will be the release of v1.1.0

Jonny (Tue, 24 Oct 2017 03:17:26 GMT):
Hi guys, where can I find the info for the release planning. I need to know where will be the release of v1.1.

Jonny (Tue, 24 Oct 2017 03:17:26 GMT):
Hi guys, where can I find the info for the release planning. I need to know when will be the release of v1.1.

lclclc (Tue, 24 Oct 2017 03:45:24 GMT):
I have a operational question about chaincode

lclclc (Tue, 24 Oct 2017 03:45:51 GMT):
Per my understanding, every installed chaincode has unique container.

lclclc (Tue, 24 Oct 2017 03:47:16 GMT):
What if those containers are down?

lclclc (Tue, 24 Oct 2017 03:47:31 GMT):
What will happen in whole blockchain network.

lmars (Tue, 24 Oct 2017 04:06:27 GMT):
@Jonny, please, try this: https://wiki.hyperledger.org/groups/tsc/project-updates/fabric-2017-oct

Jonny (Tue, 24 Oct 2017 04:32:23 GMT):
thanks @lmars

luxus (Tue, 24 Oct 2017 04:59:26 GMT):
hi guys, How can I set up hyperledger fabric v1 on multi hosts?

luxus (Tue, 24 Oct 2017 04:59:26 GMT):
hi guys, How can I set up hyperledger fabric v1 on multiple hosts?

luxus (Tue, 24 Oct 2017 04:59:26 GMT):
hi guys, How can I set up hyperledger fabric v1 on multiple hosts? I don't understand creating generate Network Artifacts. Please help me.

Vadim (Tue, 24 Oct 2017 05:43:40 GMT):
@luxus have you tried to put containers down and see what happens?

Vadim (Tue, 24 Oct 2017 05:43:40 GMT):
@lclclc have you tried to put containers down and see what happens?

lclclc (Tue, 24 Oct 2017 05:44:45 GMT):
No

lclclc (Tue, 24 Oct 2017 05:45:09 GMT):
I have zero knowledge about, if the network is down.

lclclc (Tue, 24 Oct 2017 05:45:16 GMT):
I don't know how to bring it back.

Vadim (Tue, 24 Oct 2017 05:46:14 GMT):
@lclclc so if you put chaincode containers down, the corresponding peers will restart/recreate them when you query/invoke

lclclc (Tue, 24 Oct 2017 05:46:58 GMT):
If the peer is down?

Vadim (Tue, 24 Oct 2017 05:50:50 GMT):
@lclclc what do you mean? What happens to cc containers if their peers are down?

lclclc (Tue, 24 Oct 2017 05:51:13 GMT):
yes

lclclc (Tue, 24 Oct 2017 05:51:27 GMT):
will they be zombie containers?

lclclc (Tue, 24 Oct 2017 05:51:39 GMT):
Then operator has to manually shut them down?

username343 (Tue, 24 Oct 2017 06:23:15 GMT):
Hi @Vadim , what identity does a web app written on using node sdk use to connect to fabric ca?

Vadim (Tue, 24 Oct 2017 06:25:00 GMT):
@username343 for registering another users there is a bootstrapped admin

Kyroy (Tue, 24 Oct 2017 06:30:59 GMT):
Hello :) When executing a network update, I will sign the update with the orderer org admin and execute this command `peer channel update -f config_update_as_envelope.pb -c testchainid -o orderer.$ORGANIZATION.$DOMAIN:7050 --tls true --cafile tlsca.$ORGANIZATION.$DOMAIN-cert.pem` Does this command send the update to the orderer or to the peer? I am asking because I want to use the fabric-sdk to send it and I am not sure how to send it to the orderer (if I have to)

username343 (Tue, 24 Oct 2017 06:31:48 GMT):
so what is the difference between the user identities created by using cryptogen and the identities created by node sdk, if there is any. I assume i register a user using sdk and then enroll it and receive the cryptographic material from fabric-ca, and then that crypto material can be used for interacting with the chaincode

Jonny (Tue, 24 Oct 2017 08:04:03 GMT):
technically what is the usage of hyperledger/fabric-tools?

daanporon (Tue, 24 Oct 2017 08:16:49 GMT):
when setting up a channel or an orderer you can specify the Consortium and the Organizations ... what is the difference between both? What can an organization do that is part of the consortium and not of the organizations and the other way around?

Vadim (Tue, 24 Oct 2017 08:51:08 GMT):
@username343 no difference

Vadim (Tue, 24 Oct 2017 08:51:08 GMT):
@username343 no difference

Vadim (Tue, 24 Oct 2017 08:52:13 GMT):
@daanporon channel orgs must be a subset of consortium orgs

daanporon (Tue, 24 Oct 2017 08:53:01 GMT):
ls

username343 (Tue, 24 Oct 2017 08:55:31 GMT):
thanks @Vadim , one more question that i would like to ask is when installing a chaincode on a peer, we install it on every endorser right, however what happens if i change the before installing it to another peer after installing the chaincode ? Is instantiation carried out on every peer separately?

username343 (Tue, 24 Oct 2017 08:55:51 GMT):
*change the chaincode code

daanporon (Tue, 24 Oct 2017 09:00:07 GMT):
@vadim so for a channel the organizations defined there are the ones that participate on the channel? And you say those organizations are part of that consortium? But what for the orderers ... what is the difference there between the Consortium and the Organizations ... the Organizations will be the Admins?

daanporon (Tue, 24 Oct 2017 09:00:07 GMT):
@Vadim so for a channel the organizations defined there are the ones that participate on the channel? And you say those organizations are part of that consortium? But what for the orderers ... what is the difference there between the Consortium and the Organizations ... the Organizations will be the Admins?

daanporon (Tue, 24 Oct 2017 09:12:35 GMT):
is there any way to put restrictions or a policy to who can join the channel? ... like approval from the other nodes or anything

Vadim (Tue, 24 Oct 2017 09:17:37 GMT):
@username343 you can instantiate on every peer as long as instantiation policies are met (by default, any channel admin can do that)

Vadim (Tue, 24 Oct 2017 09:17:37 GMT):
@username343 you can instantiate on any peer as long as instantiation policies are met (by default, any channel admin can do that)

Vadim (Tue, 24 Oct 2017 09:18:40 GMT):
@daanporon are you asking what the difference is between orderer org and a consorium?

daanporon (Tue, 24 Oct 2017 09:20:09 GMT):
when you configure an orderer you need to specify the consortiums and the organizations ... so yeah, i'm wondering what an oganization that is part of the consortium and the organizations list can do more then one that is part of the Consortium and not defined in the organizations ...

Vadim (Tue, 24 Oct 2017 09:48:59 GMT):
@daanporon are you referring to https://github.com/hyperledger/fabric-samples/blob/release/basic-network/configtx.yaml#L25?

Vadim (Tue, 24 Oct 2017 09:49:13 GMT):
and https://github.com/hyperledger/fabric-samples/blob/release/basic-network/configtx.yaml#L31?

daanporon (Tue, 24 Oct 2017 09:50:59 GMT):
line 25 and line 21 ... because in that case organizations is no subset of the consortiums ... what is the relation there ... the OrdererOrg is the administrator Organization of the Orderer?

Vadim (Tue, 24 Oct 2017 09:52:32 GMT):
line 21 describes orgs which only run orderer nodes

Vadim (Tue, 24 Oct 2017 09:53:12 GMT):
line 25 describes orgs which could establish channels, run peers, deploy chaincodes, invoke transactions

daanporon (Tue, 24 Oct 2017 09:54:01 GMT):
but it's also possible that line 21 is Org1 as well ... it doesn't need to be a different organisation?

Vadim (Tue, 24 Oct 2017 09:54:59 GMT):
it's possible to define the same org for orderer and for channels

daanporon (Tue, 24 Oct 2017 09:55:05 GMT):
and if the SampleConsortium would exists out or Org1 and Org2 ... and the channel only out of Org1 ... then peers from Org2 cannot join the channel right?

Vadim (Tue, 24 Oct 2017 09:55:22 GMT):
right

daanporon (Tue, 24 Oct 2017 09:56:12 GMT):
but if you are part of the consortium then you can do everything .. run peers, deploy chaincode, invoke transactions ... it's not possible to define that an organisation can only invoke chaincode for a specific channel ... and don't setup a peer

Vadim (Tue, 24 Oct 2017 09:59:20 GMT):
@daanporon this seems like you just need a user certificate, not an org

Vadim (Tue, 24 Oct 2017 09:59:20 GMT):
@daanporon this seems like you just need a user certificate issued by one of the existing orgs, not the whole org

daanporon (Tue, 24 Oct 2017 10:03:15 GMT):
ok but that means you will have two certificates then ... one user certificate for org2 and one user certificate to do things in org1?

daanporon (Tue, 24 Oct 2017 10:05:38 GMT):
and with a user certificate you can only invoke chaincode right?

pd93 (Tue, 24 Oct 2017 10:09:46 GMT):
Hey, I'm trying to upgrade my chaincode and query the new version. However, despite the upgrade saying it was successful, the old chaincode is still running and seems to receive all my queries whereas the new container does nothing (logs are blank). What could I have done wrong?

pd93 (Tue, 24 Oct 2017 10:09:46 GMT):
Hey, I'm trying to upgrade my chaincode and query the new version. However, despite the upgrade saying it was successful, when I send a query, the old chaincode is recreated and seems to receive all my queries whereas the new container does nothing (logs are blank). What could I have done wrong?

daanporon (Tue, 24 Oct 2017 10:12:05 GMT):
@Vadim one more question, if you can only invoke chaincode with a user certificate ... then that means if the ca or org1 only gives user certificates then org1 can become part of the consortium right ... and then they can only invoke chaincode ...

daanporon (Tue, 24 Oct 2017 10:12:05 GMT):
@Vadim one more question, if you can only invoke chaincode with a user certificate ... then that means if the ca or org1 only gives user certificates then org1 can become part of the consortium right ... and then they can only invoke chaincode ... if on line 21 multiple organizations are defined ... that means each Orderer will run an orderer and they will be connected through Kafka?

jaswanth (Tue, 24 Oct 2017 11:52:39 GMT):
i am trying to build the fabric . i cloned the fabric from git and tried `make clean` and `make docker` .got following error ``` chmod +x build/bin/chaintool find: ‘/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory Creating build/goshim.tar.bz2 tar: Cowardly refusing to create an empty archive Try 'tar --help' or 'tar --usage' for more information. Makefile:295: recipe for target 'build/goshim.tar.bz2' failed make: *** [build/goshim.tar.bz2] Error 2 ``` . fabric folder is under `$GOPATH/src/github.com/hyperledger . Any help here

a.ochs (Tue, 24 Oct 2017 13:32:30 GMT):
I have a problem when i try running my peer. I can't start the peer. see the terminal: ```$ goPath/bin/peer node start --peer-chaincodedev Illegal instruction (core dumped)``` Any suggestions? Could it be that I have an old/bad CPU? (Intel Celeron CPU 847)

yacovm (Tue, 24 Oct 2017 14:14:32 GMT):
@a.ochs are you running fabric 1.0.x or 1.1 (master branch) ?

a.ochs (Tue, 24 Oct 2017 14:25:23 GMT):
BASE_VERSION = 0.6.0 CHAINTOOL_RELEASE=v0.8.1 no 1.x because it's not just gaming around :p

a.ochs (Tue, 24 Oct 2017 14:26:02 GMT):
It's gaming around with many code so no update possible during the gaming

a.ochs (Tue, 24 Oct 2017 14:27:21 GMT):
oh: at another computer it works, at this computer it doesn't work. the same VM image

mastersingh24 (Tue, 24 Oct 2017 15:24:19 GMT):
@a.ochs - Yes - this is likely an issue with the Go compiler and x86 optimizations (https://chat.hyperledger.org/channel/fabric-questions?msg=Fm8AWzQH3Dv6trz3k)

ConConCop (Tue, 24 Oct 2017 16:01:08 GMT):
Can I access couchDB in peer ? where data store ?:thinking:

hamptonsmith (Tue, 24 Oct 2017 16:56:34 GMT):
My understanding is that an endorsement policy establishes whether a set of endorsements (i.e., signatures from endorsing peers) would be acceptable on a given transaction proposal for it to be acceptable to an orderer (and thus the rest of the network.) When specifying this policy at the command line with the -P flag, you have options like "orgX.member" and "orgX.admin". What is the difference between a "member" endorser and an "admin" endorser, or do I misunderstand and this is a specification of which *users* the proposal is acceptable from?

jeffgarratt (Tue, 24 Oct 2017 17:01:47 GMT):
@hamptonsmith 'for it to be acceptable to an orderer ' the orderer does NOT concern itself with the endorsements, this is the purview of the validation process in the peer. The orderer simply verifies the submission based upon signature policy for the channel. The member vs admin is a specification of the ROLE within the organization that the endorsement's must satisfy.

jeffgarratt (Tue, 24 Oct 2017 17:02:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XkbCGoSXxL3RgP3uh) @ConConCop If you have configured your peer to leverage couchDB, then you can access it directly (per your config and security policy)

hamptonsmith (Tue, 24 Oct 2017 17:06:10 GMT):
'the signature policy for the channel' - which signatures does this refer to if not the endorsements? 'the ROLE within the organization' - is there some specified thing that an admin endorsement peer can do that a member endorsement peer cannot? What is gained by requiring an admin endorsement over a member endorsement?

hamptonsmith (Tue, 24 Oct 2017 17:06:10 GMT):
'the signature policy for the channel' - which signatures does this refer to if not the endorsements? 'the ROLE within the organization' - is there some specified thing that an admin endorser peer can do that a member endorser peer cannot? What is gained by requiring an admin endorsement over a member endorsement?

jeffgarratt (Tue, 24 Oct 2017 17:07:31 GMT):
@hamptonsmith I believe it is the /Channel/Application/Writers policy which I believe is defaulted to an implicit meta that allows any WRITER for any of the organizations in the channel.

jeffgarratt (Tue, 24 Oct 2017 17:08:39 GMT):
wrt to your second question regarding ROLE, I am not specifically familiar with a use case where Admin would be preferred.

hamptonsmith (Tue, 24 Oct 2017 17:09:20 GMT):
So is the admin/member distinction more of an internal one within an organization? They can make it meaningful or not?

jeffgarratt (Tue, 24 Oct 2017 17:09:21 GMT):
i.e. I always use Member :)

jeffgarratt (Tue, 24 Oct 2017 17:09:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bd38Bz6SYDX7K9qzb) @hamptonsmith correct

ConConCop (Tue, 24 Oct 2017 17:10:13 GMT):
So I use MongoDB or Mysql store state database instead of CouchDB, LevelDB ?

ConConCop (Tue, 24 Oct 2017 17:10:13 GMT):
So Can I use MongoDB or Mysql store state database instead of CouchDB, LevelDB ?

jeffgarratt (Tue, 24 Oct 2017 17:10:35 GMT):
Well.. the roles are delineated within fabric.... but the selection of one is up to the org.

jeffgarratt (Tue, 24 Oct 2017 17:11:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8v2kiwrMhdshtMMFE) @ConConCop I would pose this question to #fabric-ledger, wherein they will direct you to your options wrt to storage, and the interface which can be implemented

hamptonsmith (Tue, 24 Oct 2017 17:11:47 GMT):
@jeffgarratt Aha, that's what I was missing thank you. And my next question was going to be about the writers policy, so I'm glad you brought it up: what makes a given user a writer? Is that a tag within the certificate proper, or is that stored somewhere in the structure server-side, or something else entirely?

jeffgarratt (Tue, 24 Oct 2017 17:12:13 GMT):
It is up to the Org's WRITER policy

jeffgarratt (Tue, 24 Oct 2017 17:12:13 GMT):
@hamptonsmith It is up to the Org's WRITER policy

ConConCop (Tue, 24 Oct 2017 17:13:31 GMT):
thank @jeffgarratt

hamptonsmith (Tue, 24 Oct 2017 17:13:53 GMT):
@jeffgarratt How does an endorser/orderer determine an org's writer policy? Is that committed as a block to the chain?

jeffgarratt (Tue, 24 Oct 2017 17:13:57 GMT):
so for example, in general an Org will create a policy of type signature with a identity of member

jeffgarratt (Tue, 24 Oct 2017 17:14:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vCjMzwrbarABK6ehz) @hamptonsmith Yes. There is a config_update block on the chain.. The latest one is the controlling version.

jeffgarratt (Tue, 24 Oct 2017 17:15:05 GMT):
this means that any user with a cert signed by the Organization is a WRITER and can submit TXs

jeffgarratt (Tue, 24 Oct 2017 17:16:27 GMT):
now, acceptance (i.e. validation by the Peer(s)) is determined based upon Endorsement policy

jeffgarratt (Tue, 24 Oct 2017 17:17:00 GMT):
your TX may end up in a block, but be marked invalid by the Peer(s) due to failure of endorsement policy

hamptonsmith (Tue, 24 Oct 2017 17:17:33 GMT):
@jeffgarratt That helps a lot, thank you. Do endorsers check that a random request to endorse comes from someone sensible, or do they just blindly execute and its up to the orderer to detect that the proposal's source is "some random unauthorized person"?

jeffgarratt (Tue, 24 Oct 2017 17:18:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cC8jEfs3pwq8wGojk) @hamptonsmith Endorsers make sure the proposal is coming from a creator that has its cert signed by one of the channel's MSPs

jeffgarratt (Tue, 24 Oct 2017 17:19:11 GMT):
so yes... it does verify

hamptonsmith (Tue, 24 Oct 2017 17:19:15 GMT):
@jeffgarratt But only because that's the default writer policy for the channel, yes? If I made a different policy endorsers would obey that instead?

jeffgarratt (Tue, 24 Oct 2017 17:19:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AxDDs5jfgBe3darhi) @hamptonsmith best to double check with @muralisr on the exact policy

jeffgarratt (Tue, 24 Oct 2017 17:20:19 GMT):
but I am fairly certain that not just anyone can submit endorsements to peers, though they can try and fail.

jeffgarratt (Tue, 24 Oct 2017 17:23:03 GMT):
I do NOT think the endorsement access check in a Peer is predicated on the /Channel/Application/Writer policy, but rather an association with one of the MSPs defined for the channel.. Though you are correct that these 2 concepts by default would have equivalent evaluation.

hamptonsmith (Tue, 24 Oct 2017 17:24:23 GMT):
So, modulo more information from @muralisr, if I understand correctly, the various points at which a random transaction could become not-permitted: 1) the endorser could refuse to even look at my proposal because I don't have a certificate from a channel MSP. 2) the arbitrary chaincode logic could decide to return an error because it doesn't like me, rather than generate a transaction. 3) the orderer could refuse to order my proposal because my proposal doesn't meet the governing writer policy for the channel (by default, any person with a cert from any participating organization, which would imply a valid certificate from a channel MSP.) 4) the peers could choose to ignore my transaction because it doesn't meet the endorsement policy. Any glaring omissions or inaccuracies there?

hamptonsmith (Tue, 24 Oct 2017 17:24:23 GMT):
So, modulo more information from @muralisr, if I understand correctly, the various points at which a random transaction could become not-permitted: 1) the endorser could refuse to even look at my invocation because I don't have a certificate from a channel MSP. 2) the arbitrary chaincode logic could decide to return an error because it doesn't like me, rather than generate a transaction. 3) the orderer could refuse to order my proposal because my proposal doesn't meet the governing writer policy for the channel (by default, any person with a cert from any participating organization, which would imply a valid certificate from a channel MSP.) 4) the peers could choose to ignore my transaction because it doesn't meet the endorsement policy. Any glaring omissions or inaccuracies there?

hamptonsmith (Tue, 24 Oct 2017 17:24:23 GMT):
So, modulo more information from @muralisr, if I understand correctly, the various points at which a random transaction could become not-permitted: 1) the endorser could refuse to even look at my invocation because I don't have a certificate from a channel MSP. 2) the arbitrary chaincode logic could decide to return an error because it doesn't like me, rather than generate a proposal. 3) the orderer could refuse to order my proposal because my proposal doesn't meet the governing writer policy for the channel (by default, any person with a cert from any participating organization, which would imply a valid certificate from a channel MSP.) 4) the peers could choose to ignore my transaction because it doesn't meet the endorsement policy. Any glaring omissions or inaccuracies there?

jeffgarratt (Tue, 24 Oct 2017 17:32:35 GMT):
@hamptonsmith @muralisr just corrected me.. The default is the /Channel/Application/Writer policy. I was incorrect.

muralisr (Tue, 24 Oct 2017 17:33:29 GMT):
well, corrected is a strong word @jeffgarratt .... currently users CAN change the policy

muralisr (Tue, 24 Oct 2017 17:33:41 GMT):
with the resource based ACL work

jeffgarratt (Tue, 24 Oct 2017 17:33:48 GMT):
@hamptonsmith wrt to 4) ignore may not be correct, they marked it invalid

muralisr (Tue, 24 Oct 2017 17:34:21 GMT):
but before that work it was hard coded to `/Channel/Application/Writers` for checking ACL on proposal

muralisr (Tue, 24 Oct 2017 17:34:58 GMT):
and since resource based acl has not caught on, it continues to be `/Channel/Application/Writers`

muralisr (Tue, 24 Oct 2017 17:34:58 GMT):
and since resource based acl has not caught on (and is not in a "release" yet I think) it continues to be `/Channel/Application/Writers`

muralisr (Tue, 24 Oct 2017 17:35:04 GMT):
(if that makes sense ?)

muralisr (Tue, 24 Oct 2017 17:37:52 GMT):
checkACL change in https://gerrit.hyperledger.org/r/#/c/12399/10/core/endorser/endorser.go should help

ConConCop (Tue, 24 Oct 2017 17:43:40 GMT):
I have a management asset system, still in use, can I now apply BlockChain HyperLedger Fabric to this system? Or have to rebuild a system using BlockChain Fabric alone?

hamptonsmith (Tue, 24 Oct 2017 18:13:15 GMT):
@jeffgarrat @muralisr Thanks for the info! I think I've got a relatively complete picture now.

hamptonsmith (Tue, 24 Oct 2017 18:13:15 GMT):
@jeffgarratt @muralisr Thanks for the info! I think I've got a relatively complete picture now.

vdods (Wed, 25 Oct 2017 01:08:27 GMT):
Hi there, who is a tech lead on the peer?

ngg0707 (Wed, 25 Oct 2017 01:28:16 GMT):
Does anyone know the differen测

ngg0707 (Wed, 25 Oct 2017 01:31:54 GMT):
Does anyone know the difference between a peer connects to a couchdb and a peer without a couchdb?

vdods (Wed, 25 Oct 2017 01:32:25 GMT):
@ngg0707 The non-couchDB peer uses levelDB

ngg0707 (Wed, 25 Oct 2017 01:33:13 GMT):
OK!Thanks a lot!!

lclclc (Wed, 25 Oct 2017 02:47:36 GMT):
@Vadim I do some experiment, if the peer is stopped by "docker stop command", the chaincode container will be stopped consequently.

lclclc (Wed, 25 Oct 2017 02:48:04 GMT):
And if the peer is restart, a query will be restart the chaincode.

luxus (Wed, 25 Oct 2017 03:30:36 GMT):
what is SANS IP in cryptogen.yaml ?

username343 (Wed, 25 Oct 2017 05:28:12 GMT):
@Vadim is it possible to add a new endorsing peer to a chaincode once it is deployed? What i am trying to do is to instantiate a chaincode on another peer after installing and instantiating a chaincode on one of the peers in a channel, I did install a chaincode on one peer and instantiated it successfully. Now i am trying to do the same on another peer, do you know if it's possible?

Vadim (Wed, 25 Oct 2017 07:02:23 GMT):
@username343 yes, you just need to make sure that 1) new peer is on the same channel 2) new peer has the chaincode installed. You don't need to instantiate anything.

username343 (Wed, 25 Oct 2017 07:08:33 GMT):
thanks @Vadim

CodeReaper (Wed, 25 Oct 2017 07:38:16 GMT):
Do we need to define ChannelCreationPolicy explicitly in consortiums in configtx or it takes those organizations mentioned in it as the members who need to sign together to create channel??

Vadim (Wed, 25 Oct 2017 07:41:45 GMT):
@CodeReaper from http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html: `Typically, this value will be set to an ImplicitMetaPolicy requiring that the new members of the channel sign to authorize the channel creation. `

Vadim (Wed, 25 Oct 2017 07:42:09 GMT):
@CodeReaper from http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html: `Typically, this value will be set to an ImplicitMetaPolicy requiring that the new members of the channel sign to authorize the channel creation. `

Vadim (Wed, 25 Oct 2017 07:42:47 GMT):
@CodeReaper from http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html: "Typically, this value will be set to an ImplicitMetaPolicy requiring that the new members of the channel sign to authorize the channel creation. "

Vadim (Wed, 25 Oct 2017 07:43:10 GMT):
so the new members need to sign (by default)

indira.kalagara (Wed, 25 Oct 2017 07:52:51 GMT):
Has joined the channel.

lclclc (Wed, 25 Oct 2017 09:18:06 GMT):
How would a peer catch up the latest block, if it was shutdown for a long time?

lclclc (Wed, 25 Oct 2017 09:18:37 GMT):
for example, I have 2 orgs, peer0, peer1 of org1, peer2, peer3 of org2.

lclclc (Wed, 25 Oct 2017 09:19:45 GMT):
If peer0 was shutdown like 1 day, it miss about 100 blocks, how can it sync up to latest block?

ArvsIndrarys (Wed, 25 Oct 2017 09:38:35 GMT):
Hi all ! I seem to always have a timeout when the time between each request is long (30mn between each request for example). Is it configurable or is it some erratic behavior?

gut (Wed, 25 Oct 2017 09:43:26 GMT):
Has joined the channel.

Vadim (Wed, 25 Oct 2017 09:51:30 GMT):
@ArvsIndrarys what is your environment?

username343 (Wed, 25 Oct 2017 09:56:08 GMT):
hi guys I am not sure if this question belongs here, but i want to know how are the client identities restricted to access the chaincodes on a channel ?

ArvsIndrarys (Wed, 25 Oct 2017 10:10:08 GMT):
@Vadim I have an orderer and a peer on the same node and two other peer on two other server (if I understand your question right) I may share the docker-compose.yaml on gist if you want

lclclc (Wed, 25 Oct 2017 12:23:12 GMT):
@Vadim Can you elaborate the mechanism about how the peers inside an organization sync up with each other?

lclclc (Wed, 25 Oct 2017 12:23:41 GMT):
What if one peer is lagged very far with latest world state of the ledger?

Vadim (Wed, 25 Oct 2017 12:24:05 GMT):
@lclclc https://docs.google.com/document/d/157AvKxVRqgeaCTSpN86ICa5x-XihZ67bOrNMc5xLvEU/edit

lclclc (Wed, 25 Oct 2017 12:27:32 GMT):

2017年10月25日晚上8点26分

lclclc (Wed, 25 Oct 2017 12:28:12 GMT):

Clipboard

lclclc (Wed, 25 Oct 2017 12:29:15 GMT):
I guess this is the mechanism I want to see, but what is that background activity that is what I want to know

lclclc (Wed, 25 Oct 2017 12:29:53 GMT):
I hope hyperledger has very strong guarantee

lclclc (Wed, 25 Oct 2017 12:30:03 GMT):
Even one peer is down for very long time

lclclc (Wed, 25 Oct 2017 12:30:10 GMT):
It can catch up eventually.

Vadim (Wed, 25 Oct 2017 12:30:17 GMT):
have you read the whole document? It describes the gossip in details.

lclclc (Wed, 25 Oct 2017 12:30:54 GMT):
Oh, I get you.

lclclc (Wed, 25 Oct 2017 12:31:01 GMT):
Thanks for pointing out that.

maaar1234 (Wed, 25 Oct 2017 13:46:28 GMT):
Has joined the channel.

maaar1234 (Wed, 25 Oct 2017 13:51:02 GMT):
Hi guys, I have I doubt I'm not able to clearify, Once a channel is running with the nodes maintaining, are they interacting peer to peer through some kind of Hyperledger infrastructure/servers? Run locally means that once it is running it does not have anything to do with hypeledger? is there a copy of the blockchains in hyperledger servers or everything is stored locally? thanks

Vadim (Wed, 25 Oct 2017 13:52:38 GMT):
@maaar1234 everything is stored locally, peers fetch blocks from orderers and use gossip protocol within orgs to sync the local copy of the blockchain

maaar1234 (Wed, 25 Oct 2017 14:37:02 GMT):
@Vadim Thank you so much. So, if you want to add a peer or do some changes at admin level, you don't have to interact with anything external at all, right? I mean, if Hyperledger stop offering open source services, once you have yours installed locally you don't care

Vadim (Wed, 25 Oct 2017 14:40:46 GMT):
@maaar1234 I'm not sure I understand the question, you mean if source code on fabric becomes closed?

maaar1234 (Wed, 25 Oct 2017 14:42:31 GMT):
Yes

CodeReaper (Wed, 25 Oct 2017 14:43:31 GMT):
Thanks @Vadim , One more thing I wasnted to ask is that configtxlator only to change config for orderer system channel configuration??

CodeReaper (Wed, 25 Oct 2017 14:43:31 GMT):
Thanks @Vadim , One more thing I wanted to ask is that configtxlator only to change config for orderer system channel configuration??

Vadim (Wed, 25 Oct 2017 14:44:14 GMT):
@maaar1234 it's managed by the Linux Foundation, I find it hard to believe they decide to remove the sources

Vadim (Wed, 25 Oct 2017 14:44:40 GMT):
@CodeReaper both system channel and application channels

CodeReaper (Wed, 25 Oct 2017 14:46:25 GMT):
the example in the documents doesnt cover any manipulations to application channel configs??

Vadim (Wed, 25 Oct 2017 14:52:00 GMT):
@CodeReaper this is e.g. adding an org to the channel: https://github.com/sandp125/FabricNodeAPI_V1/blob/master/app/channel-config.js#L57

hamptonsmith (Wed, 25 Oct 2017 16:12:23 GMT):
Not a crypto person, so forgive me if this question is remedial: when using cryptogen, at least, the output MSP directory hierarchy seems to represent identities as 256-bit ids (signing keys, for example, are stored in files named <64-character-hex>_sk). At first I think I assumed these were public keys, but extracting the public keys from the certs that doesn't seem to be the case. Are these arbitrary identifiers, or are they hashes of something in particular? I.e., if I'm manually manipulating an MSP hierarchy can I just "make up" an identifier?

jeffgarratt (Wed, 25 Oct 2017 16:27:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5EEtxmyaZR9ZSZ6Kf) @hamptonsmith this value is a calculation based upon the 256 bit hash of a prefix byte array and the public key from the cert

jeffgarratt (Wed, 25 Oct 2017 16:30:12 GMT):
so in short... no... I do not believe you can just make up an identifier.

hamptonsmith (Wed, 25 Oct 2017 16:31:27 GMT):
@jeffgarratt Cool. Is that calculation specified somewhere or do I just need to mimic the source?

eacoeytaux (Wed, 25 Oct 2017 17:34:36 GMT):
hi everyone, I'm trying to run startFabric.sh but I'm getting the error `ERROR: Get https://registry-1.docker.io/v2/hyperledger/fabric-ca/manifests/x86_64-1.0.1: unauthorized: incorrect username or password`, I wasn't even aware I needed a username or password. Am I doing something wrong?

luxus (Wed, 25 Oct 2017 17:50:32 GMT):
hi all, In configtx.yaml, what is minimum value and maximum of BatchTimeout?

luxus (Wed, 25 Oct 2017 17:50:32 GMT):
hi all, In configtx.yaml, what is minimum value and maximum value of BatchTimeout?

knagware9 (Wed, 25 Oct 2017 18:20:38 GMT):
Has joined the channel.

philviana (Wed, 25 Oct 2017 20:32:07 GMT):
Has joined the channel.

sharkfisher (Wed, 25 Oct 2017 21:21:23 GMT):
Has joined the channel.

lclclc (Thu, 26 Oct 2017 02:46:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yuY8QtoryG8j2XdMN) @luxus I also want to know this.

FiratSertgoz (Thu, 26 Oct 2017 08:59:48 GMT):
Has joined the channel.

Selvam_Annamalai (Thu, 26 Oct 2017 09:10:36 GMT):
I have a org with 2 peers. When I try to install a chaincode on the 2 peers, I am getting the below error (Connection refused). Can you please tell me how to resolve this issue? cli.a.example.com CORE_PEER_ADDRESS=peer0.a.example.com:7051 peer chaincode install -n relationship -v 1.0 -p relationship && CORE_PEER_ADDRESS=peer1.a.example.com:7051 peer chaincode install -n relationship -v 1.0 -p relationship 2017-10-25 09:24:16.350 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-10-25 09:24:16.363 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-10-25 09:24:16.398 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-10-25 09:24:16.398 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-10-25 09:24:16.668 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS relationship 2017-10-25 09:24:17.722 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt 2017-10-25 09:24:17.722 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim 2017-10-25 09:24:17.723 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer 2017-10-25 09:24:17.723 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv 2017-10-25 09:24:17.723 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done 2017-10-25 09:24:17.725 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0AFB060A5C08031A0C08C1B0C1CF0510...3C70FC2B0000FFFF23C7E864001C0000 2017-10-25 09:24:17.725 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 48535E5AAA200D2FF621CA28A7A90D04E1C7F13EBCE2B7502F9596613552D9BC 2017-10-25 09:24:17.732 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response: 2017-10-25 09:24:17.732 UTC [main] main -> INFO 00e Exiting..... 2017-10-25 09:24:17.780 UTC [grpc] Printf -> DEBU 001 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.19.0.10:7051: getsockopt: connection refused"; Reconnecting to {peer1.a.example.com:7051 } 2017-10-25 09:24:18.782 UTC [grpc] Printf -> DEBU 002 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.19.0.10:7051: getsockopt: connection refused"; Reconnecting to {peer1.a.example.com:7051 } 2017-10-25 09:24:20.488 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.19.0.10:7051: getsockopt: connection refused"; Reconnecting to {peer1.a.example.com:7051 } Error: Error getting endorser client chaincode: PER:404 - Error trying to connect to local peer /opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:116 github.com/hyperledger/fabric/peer/common.GetEndorserClient /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/common.go:240 github.com/hyperledger/fabric/peer/chaincode.InitCmdFactory /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/install.go:166 github.com/hyperledger/fabric/peer/chaincode.chaincodeInstall /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/install.go:54 github.com/hyperledger/fabric/peer/chaincode.installCmd.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:118 main.main /opt/go/src/runtime/proc.go:192 runtime.main /opt/go/src/runtime/asm_amd64.s:2087 runtime.goexit Caused by: context deadline exceeded Usage: peer chaincode install [flags]

mastersingh24 (Thu, 26 Oct 2017 09:24:57 GMT):
@Selvam_Annamalai - Can you describe your environment? Are you running the peers using Docker Compose? How are you running the CLI? Are you running that in a Docker container started via the same Compose file as the peers?

Selvam_Annamalai (Thu, 26 Oct 2017 09:25:49 GMT):
I am running the peers using Docker Compose

Selvam_Annamalai (Thu, 26 Oct 2017 09:26:32 GMT):
I am running CLI in a Docker container started via the same Compose file as the peers.

CodeReaper (Thu, 26 Oct 2017 14:34:16 GMT):
Thanks @Vadim , going through it.

CodeReaper (Thu, 26 Oct 2017 14:46:11 GMT):
Visualizing this example i got a question, How will artifacts containing all certificates be updated for the added organization?? Is it gonna be manual process to add or delete certificates for every nodejs application?? Some app administrator perhaps ? doesnt sound much scalable.

srongzhe (Fri, 27 Oct 2017 06:28:24 GMT):
Has joined the channel.

srongzhe (Fri, 27 Oct 2017 06:28:58 GMT):
I run the example "https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli" by start network_setup.sh. fail to execute the command "peer channel fetch" , I got the errors from orderer logs:

srongzhe (Fri, 27 Oct 2017 06:29:24 GMT):
2017-10-27 05:36:01.887 UTC [orderer/main] Deliver -> DEBU 11c Starting new Deliver handler 2017-10-27 05:36:01.887 UTC [orderer/common/deliver] Handle -> DEBU 11d Starting new deliver loop 2017-10-27 05:36:01.888 UTC [orderer/common/deliver] Handle -> DEBU 11e Attempting to read seek info message 2017-10-27 05:36:01.889 UTC [orderer/common/deliver] Handle -> WARN 11f [channel: testchainid] Rejecting deliver request because of consenter error 2017-10-27 05:36:01.889 UTC [orderer/main] func1 -> DEBU 120 Closing Deliver stream 2017-10-27 05:36:04.963 UTC [orderer/main] Deliver -> DEBU 121 Starting new Deliver handler 2017-10-27 05:36:04.963 UTC [orderer/common/deliver] Handle -> DEBU 122 Starting new deliver loop 2017-10-27 05:36:04.963 UTC [orderer/common/deliver] Handle -> DEBU 123 Attempting to read seek info message 2017-10-27 05:36:04.964 UTC [orderer/common/deliver] Handle -> WARN 124 [channel: testchainid] Rejecting deliver request because of consenter error 2017-10-27 05:36:04.964 UTC [orderer/main] func1 -> DEBU 125 Closing Deliver stream 2017-10-27 05:36:08.049 UTC [orderer/main] Deliver -> DEBU 126 Starting new Deliver handler 2017-10-27 05:36:08.049 UTC [orderer/common/deliver] Handle -> DEBU 127 Starting new deliver loop 2017-10-27 05:36:08.049 UTC [orderer/common/deliver] Handle -> DEBU 128 Attempting to read seek info message 2017-10-27 05:36:08.049 UTC [orderer/common/deliver] Handle -> WARN 129 [channel: testchainid] Rejecting deliver request because of consenter error 2017-10-27 05:36:08.050 UTC [orderer/main] func1 -> DEBU 12a Closing Deliver stream [sarama] 2017/10/27 05:36:10.636650 broker.go:96: Failed to connect to broker kafka2:9092: dial tcp: i/o timeout [sarama] 2017/10/27 05:36:10.638179 client.go:620: client/metadata got error from broker while fetching metadata: dial tcp: i/o timeout [sarama] 2017/10/27 05:36:10.638308 client.go:626: client/metadata no available broker to send metadata request to [sarama] 2017/10/27 05:36:10.638368 client.go:428: client/brokers resurrecting 4 dead seed brokers [sarama] 2017/10/27 05:36:10.638418 client.go:590: client/metadata retrying after 250ms... (3 attempts remaining) [sarama] 2017/10/27 05:36:10.889141 config.go:329: ClientID is the default of 'sarama', you should consider setting it to something application-specific. [sarama] 2017/10/27 05:36:10.889359 client.go:601: client/metadata fetching metadata for all topics from broker kafka3:9092

ArvsIndrarys (Fri, 27 Oct 2017 08:53:22 GMT):
silly question, but what happens if we use PutState for the same key multiple times? I would guess that the state is updated and that there is a way to get the history of that key then, am I wrong?

AlexanderEx123 (Fri, 27 Oct 2017 09:08:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jqy3PmyzfnQcnRE7Q) @ArvsIndrarys MVCC_READ_CONFLICT will happen

ArvsIndrarys (Fri, 27 Oct 2017 09:14:07 GMT):
@AlexanderEx123 when I meant multiple times, I meant putting like `PutState("a", ['100'])` and then a week later `PutState("a", ['200'])` is it still the case ? just to avoid the confusion about the case of writing the same key in the state in the same invoke

AlexanderEx123 (Fri, 27 Oct 2017 09:14:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QzKDwDZxx65FXoWyF) @ArvsIndrarys sorry, dont correctly understand your question

Vadim (Fri, 27 Oct 2017 09:16:56 GMT):
@ArvsIndrarys you can get history with stub.GetHistoryForKey('key')

ArvsIndrarys (Fri, 27 Oct 2017 09:17:51 GMT):
`PutState("a", ['100'])` and then a week later `PutState("a", ['200'])` wouldn't work? I thought `MVCC_READ_CONFLICT` was due to trying to write the key (a) with different values (100 then 200) in the same invoke. Like ``` func Invoke(...) { PutState(a, 100) PutState(a, 200) } ```

ArvsIndrarys (Fri, 27 Oct 2017 09:17:51 GMT):
`PutState("a", ['100'])` and then a week later `PutState("a", ['200'])` wouldn't work? I thought `MVCC_READ_CONFLICT` was due to trying to write the key (a) with different values (100 then 200) in the same invoke. Like ``` func Invoke(...) { PutState(a, 100) PutState(a, 200) } ```

ArvsIndrarys (Fri, 27 Oct 2017 09:17:51 GMT):
`PutState("a", ['100'])` and then a week later `PutState("a", ['200'])` wouldn't work? I thought `MVCC_READ_CONFLICT` was due to trying to write the key (a) with different values (100 then 200) in the same invoke. Like ``` func Invoke(...) { PutState(a, 100) PutState(a, 200) } ```

ArvsIndrarys (Fri, 27 Oct 2017 09:17:51 GMT):
@AlexanderEx123 `PutState("a", ['100'])` and then a week later `PutState("a", ['200'])` wouldn't work? I thought `MVCC_READ_CONFLICT` was due to trying to write the key (a) with different values (100 then 200) in the same invoke. Like ``` func Invoke(...) { PutState(a, 100) PutState(a, 200) } ```

gut (Fri, 27 Oct 2017 09:29:53 GMT):
One question here. I've been working aroung with SetEvent code to emit chaincode custom events and catch them from the SDK EventHub. Do you know any *technique to push notification messages* from the chaincode without an SDK request?

Vadim (Fri, 27 Oct 2017 09:44:58 GMT):
@gut what the SDK is doing is that it's monitoring new blocks, analyses events attached to the transactions in each new block and calls some callback when these events match the ones your requested. What do you mean "push without SDK"?

gut (Fri, 27 Oct 2017 10:05:02 GMT):
@Vadim Thanks for your response. I understand the SDK workflow basics, and I wouldn't say _"push without SDK"_, but _"push without a request"_. What I mean is if there's any support in Fabric for something like "Chaincode Push notifications". A messaging service where chaincode can pubblish a message to subscribers. In all the documentation I've read, chaincode can only react to SDK Tx calls.

Vadim (Fri, 27 Oct 2017 10:05:59 GMT):
@gut you mean if chaincode can run on its own without external trigger?

gut (Fri, 27 Oct 2017 10:17:02 GMT):
@Vadim Yes ;) Maybe my head is in the clouds

MuhammadSalah (Fri, 27 Oct 2017 10:25:24 GMT):
Has joined the channel.

MuhammadSalah (Fri, 27 Oct 2017 10:27:48 GMT):
Hello, people. I would like to ask you where to get a well documented real hands on blockchain hyperledger technologies? I also would like to be redirected to an updated documents hopefully! I am new to blockchain, but I have basic developer knowledge of course.

Vadim (Fri, 27 Oct 2017 10:38:49 GMT):
@gut afaik Corda can do it

Vadim (Fri, 27 Oct 2017 10:39:13 GMT):
you can schedule triggers

gut (Fri, 27 Oct 2017 10:46:29 GMT):
@Vadim Great help! Will check it :ok_hand:

risabhsharma71 (Fri, 27 Oct 2017 10:52:04 GMT):
Has joined the channel.

risabhsharma71 (Fri, 27 Oct 2017 10:52:32 GMT):
how do i use the network i cfreated by byfn in fabcar example?

mmick (Fri, 27 Oct 2017 15:06:33 GMT):
Has joined the channel.

alexandra_g (Fri, 27 Oct 2017 17:02:18 GMT):
Hi all, I noticed that sbft package was removed for version 1.0 -- with the understanding it would be re-introduced later on when it was production ready. I was wondering when it be available? Thanks!

alexandra_g (Fri, 27 Oct 2017 17:02:18 GMT):
Hi all, I noticed that sbft package was removed for version 1.0 -- with the understanding it would be re-introduced later on when it was production ready. I was wondering when it be available? Thanks in advance!

jmapps88 (Fri, 27 Oct 2017 19:26:32 GMT):
Has joined the channel.

jmapps88 (Fri, 27 Oct 2017 19:32:31 GMT):
hi there, I am working on a fork on bitcoin, we are able to create our own digital assets, I was wondering if I could create smart contracts in Hyperledger and trade them like in the IBM Marbles demo. would our blockchain work with Hyperledger, could it be used as a counterparty

jmapps88 (Fri, 27 Oct 2017 19:33:36 GMT):
*fork of primecoin

vdods (Fri, 27 Oct 2017 21:11:13 GMT):
Is the approximate release date for Fabric v1.1 known? I few google searches didn't turn up anything obvious.

vdods (Fri, 27 Oct 2017 21:11:13 GMT):
Is the approximate release date for Fabric v1.1 known? A few google searches didn't turn up anything obvious.

yacovm (Fri, 27 Oct 2017 21:14:18 GMT):
well apparently google doesn't index #fabric-release

yacovm (Fri, 27 Oct 2017 21:14:22 GMT):
https://chat.hyperledger.org/channel/fabric-release?msg=aNmThcC86Pq748xXw

meridian (Sat, 28 Oct 2017 13:57:37 GMT):
Has joined the channel.

aatkddny (Sun, 29 Oct 2017 01:53:13 GMT):
trying to instantiate some chain code from the CLI in a non development fabric. it has multiple orgs in a consortium. everything i try gets me to the same place - it times out right after it creates the container. 2017-10-29 01:47:57.990 UTC [container] unlockContainer -> DEBU a6a container lock deleted

aatkddny (Sun, 29 Oct 2017 01:53:13 GMT):
trying to instantiate some chain code from the CLI in a non development fabric. it has multiple orgs in a consortium. everything i try gets me to the same place - it times out right after it creates the container. 2017-10-29 01:47:57.990 UTC [container] unlockContainer -> DEBU a6a container lock deleted 2017-10-29 01:52:58.010 UTC [chaincode] func1 -> DEBU a72 chaincode mycce:1.0 launch seq completed

aatkddny (Sun, 29 Oct 2017 01:53:13 GMT):
trying to instantiate some chain code from the CLI in a non development fabric. it has multiple orgs in a consortium. everything i try gets me to the same place - it times out right after it creates the container. 2017-10-29 01:47:57.990 UTC [container] unlockContainer -> DEBU a6a container lock deleted 2017-10-29 01:52:58.010 UTC [chaincode] func1 -> DEBU a72 chaincode mycce:1.0 launch seq completed 2017-10-29 01:52:58.010 UTC [chaincode] Launch -> ERRO a73 launchAndWaitForRegister failed Timeout expired while starting chaincode mycce:1.0(networkid:fabric_poc,peerid:peer0.first.com,tx:69d9a93d3123b2ee7bd78a7963d258ab88b03ec5758b7c29b7e1521d0f0b7a98) 2017-10-29 01:52:58.010 UTC [endorser] callChaincode -> DEBU a74 Exit 2017-10-29 01:52:58.010 UTC [endorser] simulateProposal -> ERRO a75 failed to invoke chaincode name:"lscc" on transaction 69d9a93d3123b2ee7bd78a7963d258ab88b03ec5758b7c29b7e1521d0f0b7a98, error: Timeout expired while starting chaincode mycce:1.0(networkid:fabric_poc,peerid:peer0.first.com,tx:69d9a93d3123b2ee7bd78a7963d258ab88b03ec5758b7c29b7e1521d0f0b7a98) The CLI messages are as follows 2017-10-29 01:47:43.624 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-10-29 01:47:43.624 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-10-29 01:47:43.625 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA2070A7508031A0C08BFE6D4CF0510...01300A000A04657363630A0476736363 2017-10-29 01:47:43.625 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 56956DA86859B0F74DD36BEDB4394D7AA0B46D8446BF3A52FFC5A0B800EBE285 Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycce:1.0(networkid:fabric_poc,peerid:peer0.first.com,tx:69d9a93d3123b2ee7bd78a7963d258ab88b03ec5758b7c29b7e1521d0f0b7a98) I've tried every combination of stuff I can think of and I'm getting tired of the squishy sound of my head banging against the wall. Does anyone know what it's supposed to be doing next and why it might be timing out?

mmick (Sun, 29 Oct 2017 09:49:31 GMT):
i want to make a telehealth dapp backed with fabric. I want frontend to in vue js ( not sure if it works with java or c#). can any one guide me in this regard. thanks

mmick (Sun, 29 Oct 2017 14:27:35 GMT):
anybody!

jeffgarratt (Sun, 29 Oct 2017 16:17:45 GMT):
@mmick you may wish to consider the #fabric-sdk-node channel

jeffgarratt (Sun, 29 Oct 2017 16:18:24 GMT):
there you will find guidance on using the node sdk for fabric which would seem reasonable given your app context

nate94305 (Mon, 30 Oct 2017 01:25:29 GMT):
Has joined the channel.

nate94305 (Mon, 30 Oct 2017 01:26:16 GMT):
nate94305 오전 10시 7분 If some chaincode is written wrong or data is wrong causing a hang with chaincode docker, what is the solution to resolve the situation? Stop docker and update/re-install/instantiate the fixed chaincode?

the_identity_guy (Mon, 30 Oct 2017 01:33:04 GMT):
hello, quick question: Is the concept of forking (hard or soft forking) a relevant term (and concern) in Hyperledger Fabric? Does it have the same process (and challenges) as Bitcoin or Ethereum forking?

lclclc (Mon, 30 Oct 2017 02:17:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SYinPbYEiY9BMJBkR) @the_identity_guy I think it depends on the consensus algorithm you choose.

ngg0707 (Mon, 30 Oct 2017 02:20:31 GMT):
ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block

ngg0707 (Mon, 30 Oct 2017 02:21:05 GMT):
Does anyone understand this line?

ngg0707 (Mon, 30 Oct 2017 02:22:05 GMT):
I thought every channel has its own genesis block and file "genesis.block".

ngg0707 (Mon, 30 Oct 2017 02:22:56 GMT):
But why the orderer has the file "genesis.block".?

ngg0707 (Mon, 30 Oct 2017 02:24:12 GMT):
What does the file "orderer.genesis.block" mean to an orderer?

ngg0707 (Mon, 30 Oct 2017 02:24:49 GMT):
Thank you.

the_identity_guy (Mon, 30 Oct 2017 04:05:20 GMT):
@lclclc do you mean the consensus algorithm impacts whether blocks are going to be forked? or are you referring to source code forking

lclclc (Mon, 30 Oct 2017 04:36:27 GMT):
the fork of chain

lclclc (Mon, 30 Oct 2017 04:37:04 GMT):
If you are using the orderer as transaction bundler, you will not see any fork.

meridian (Mon, 30 Oct 2017 04:38:11 GMT):
hmm

meridian (Mon, 30 Oct 2017 04:38:27 GMT):
has anyone tried using a different hashing algo for fabric

the_identity_guy (Mon, 30 Oct 2017 04:46:36 GMT):
@lclclc oh ok, I was referring to the forks of the code itself.. I want to know if nodes running hyperledger fabric decide to rewrite history (revise some transactions) can they make a hard fork/soft fork of the code they are running.

lclclc (Mon, 30 Oct 2017 04:47:19 GMT):
They all get transactions from one bundler

lclclc (Mon, 30 Oct 2017 04:47:37 GMT):
Where the fork comes from?

lclclc (Mon, 30 Oct 2017 04:48:11 GMT):
In public network, only 2 valid miners produces 2 blocks in nearly same time, can produce fork.

lclclc (Mon, 30 Oct 2017 04:48:37 GMT):
One orderer is one valid miner, repectively.

the_identity_guy (Mon, 30 Oct 2017 04:54:31 GMT):
yes thats the block forks, I am referring to the source code GIT forks that happens on Bitcoin .. which results in Bitcoin Cash or Bitcoin Gold

the_identity_guy (Mon, 30 Oct 2017 04:55:28 GMT):
I want to know if forking the source code is still a possibiity for fabric or not, because forking allows the whole system to change (after approval by the validating nodes)

lclclc (Mon, 30 Oct 2017 05:14:52 GMT):
I see, you mean if you upgrade the fabric as you wish, if the ledgers are compatible.

lclclc (Mon, 30 Oct 2017 05:15:06 GMT):
I don't think They will be compatible.

yacovm (Mon, 30 Oct 2017 11:48:54 GMT):
Fabric doesn't support history re-writing

yacovm (Mon, 30 Oct 2017 11:48:58 GMT):
it's not bitcoin

meridian (Mon, 30 Oct 2017 12:51:13 GMT):
lol

meridian (Mon, 30 Oct 2017 12:51:57 GMT):
fabric is not bitcoin for a lot of reasons least of which rewriting

Ferdoran (Mon, 30 Oct 2017 13:58:35 GMT):
Hey everbody,

Ferdoran (Mon, 30 Oct 2017 14:00:51 GMT):
Hey everybody, I am still trying to setup a node REST Server to use my hyperledger-fabric network. The problem I'm facing is the following: `E1030 14:51:29.622551455 22760 ssl_transport_security.c:625] Invalid cipher list: undefined. E1030 14:51:29.622614067 22760 security_connector.c:857] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1030 14:51:29.622621411 22760 secure_channel_create.c:112] Failed to create secure subchannel for secure name 'localhost:7051' E1030 14:51:29.622628136 22760 secure_channel_create.c:143] Failed to create subchannel arguments during subchannel creation. error: [Peer.js]: sendProposal - timed out after:3000 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT at Timeout._onTimeout (/home/roland/dev/blockchain-rest-server/node_modules/fabric-client/lib/Peer.js:107:19) at ontimeout (timers.js:386:11) at tryOnTimeout (timers.js:250:5) at Timer.listOnTimeout (timers.js:214:5)`

Ferdoran (Mon, 30 Oct 2017 14:00:51 GMT):
Hey everybody, I am still trying to setup a node REST Server to use my hyperledger-fabric network. The problem I'm facing is the following: ```E1030 14:51:29.622551455 22760 ssl_transport_security.c:625] Invalid cipher list: undefined. E1030 14:51:29.622614067 22760 security_connector.c:857] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1030 14:51:29.622621411 22760 secure_channel_create.c:112] Failed to create secure subchannel for secure name 'localhost:7051' E1030 14:51:29.622628136 22760 secure_channel_create.c:143] Failed to create subchannel arguments during subchannel creation. error: [Peer.js]: sendProposal - timed out after:3000 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT at Timeout._onTimeout (/home/roland/dev/blockchain-rest-server/node_modules/fabric-client/lib/Peer.js:107:19) at ontimeout (timers.js:386:11) at tryOnTimeout (timers.js:250:5) at Timer.listOnTimeout (timers.js:214:5)```

Ferdoran (Mon, 30 Oct 2017 14:02:57 GMT):
I am simply trying to send a transaction proposal with preset data, similar to the *invoke.js* in the *fabcar-example*

nickgaski (Mon, 30 Oct 2017 14:37:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z6PwirTvsn76BdE6c) @ngg0707 - it's best to think of the ordering service as the system channel. It will contain root certs for participating orgs, consortium definitions, orderer config info and a set of policies (most importantly the mod_policy) dictating how many admins must sign off on any reconfiguration proposals. That info is all encapsulated within the ordering service genesis block. That's the guy you bootstrap the network with. Similarly to the ordering service genesis block, you also have application channel genesis blocks - which in essence contain the same information: who is defined to participate in the channel, what level of agreement do I need to reconfig, what are the reader/writer policies, etc. So think of it as two levels - System channel and then application channels; and every channel is its own ledger and thus needs to start its chain with a configuration block (i.e. the genesis block)

Ferdoran (Mon, 30 Oct 2017 16:21:12 GMT):
Alright, I could settle down the problem to something else by disabling TLS for my peers. Now it seems like there is a problem with the MSP. ``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP MyMSP is unknown at /home/roland/dev/blockchain-rest-server/node_modules/grpc/src/node/src/client.js:554:15 ```

Ferdoran (Mon, 30 Oct 2017 16:21:12 GMT):
Alright, I could settle down the problem to something else by disabling TLS for my peers. Now it seems like there is a problem with the MSP. ```error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP MyMSP is unknown at /home/roland/dev/blockchain-rest-server/node_modules/grpc/src/node/src/client.js:554:15```

Ferdoran (Mon, 30 Oct 2017 16:21:12 GMT):
Alright, I could settle down the problem to something else by disabling TLS for my peers. Now it seems like there is a problem with the MSP. ```error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP MyMSP is unknown at /home/roland/dev/blockchain-rest-server/node_modules/grpc/src/node/src/client.js:554:15``` *Note:* I have the latest docker version and images installed.

the_identity_guy (Mon, 30 Oct 2017 17:29:25 GMT):
thanks @yacovm so forking is not a big concern in fabric, its not easily possible all nodes may decide to fork to another fabric and run both?

the_identity_guy (Mon, 30 Oct 2017 17:29:25 GMT):
thanks @yacovm so forking is not a big concern in fabric, its not easily possible for all nodes to decide to fork to another fabric and run both?

yacovm (Mon, 30 Oct 2017 17:29:52 GMT):
what do you mean decide?

yacovm (Mon, 30 Oct 2017 17:30:13 GMT):
peers are computers, they don't have a consciousness

yacovm (Mon, 30 Oct 2017 17:30:17 GMT):
... yet

the_identity_guy (Mon, 30 Oct 2017 17:30:44 GMT):
if some transaction has to be reverted (similar Ethererum DAO), can all nodes of a fabric blockchain create a fork to revert the transaction or change a chaincode?

the_identity_guy (Mon, 30 Oct 2017 17:30:59 GMT):
by nodes I mean people managing the nodes..

yacovm (Mon, 30 Oct 2017 17:32:23 GMT):
it's not that easy, fabric doesn't use an unspent transaction output model but it's just runs arbitrary code

yacovm (Mon, 30 Oct 2017 17:32:32 GMT):
so human intervention would be required here

yacovm (Mon, 30 Oct 2017 17:32:37 GMT):
there is nothing automatic

yacovm (Mon, 30 Oct 2017 17:32:57 GMT):
I guess the easiest thing is to make a transaction that fixes the situation

yacovm (Mon, 30 Oct 2017 17:33:05 GMT):
instead of going back in time

the_identity_guy (Mon, 30 Oct 2017 17:36:31 GMT):
Ok thanks, does the default consensus algorithm require the approval of every node on a transation?

yacovm (Mon, 30 Oct 2017 17:37:34 GMT):
please skim through http://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html :)

the_identity_guy (Mon, 30 Oct 2017 17:44:55 GMT):
thank you

the_identity_guy (Mon, 30 Oct 2017 18:33:53 GMT):
are there any documentations on how to deploy and operate hyperledger fabric into an organizations existing ecosystem?

szhman (Mon, 30 Oct 2017 19:38:48 GMT):
I am just starting and setting up fabric samples (try to run first-network) on Windows 7 Docker Toolbox byfn.sh -m up starts up, but getting /bin/bash: ./scripts/script.sh: No such file or directory error I did run dos2unix and the issue doesn't go away....the path to the script.sh is correct, but still getting error...can you please help

szhman (Mon, 30 Oct 2017 19:52:07 GMT):
$ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10000' Continue (y/n)? y proceeding ... Starting peer0.org1.example.com ... Starting peer1.org1.example.com ... Starting orderer.example.com ... Starting peer0.org2.example.com ... Starting peer1.org2.example.com ... Starting peer0.org1.example.com Starting peer1.org1.example.com Starting orderer.example.com Starting peer0.org2.example.com Starting peer1.org2.example.com ... done Starting cli ... Starting cli ... done /bin/bash: ./scripts/script.sh: No such file or directory

atiffarrukh (Tue, 31 Oct 2017 04:23:19 GMT):
@szhman switch to Ubuntu, that will solve the issue, I was getting the same issue on Windows 10

ezrasanders (Tue, 31 Oct 2017 04:26:56 GMT):
Has joined the channel.

atiffarrukh (Tue, 31 Oct 2017 04:40:47 GMT):
Greetings everyone, I am trying to run balance-transfer sample, everything runs smoothly but when i try to enroll a user other than "Jim" i get a successful message on the terminal, but user is registration and enrollment fails. Here is the link to logs image. https://ibb.co/hZNz0m. Please guide me on how to attach images here

atiffarrukh (Tue, 31 Oct 2017 04:40:47 GMT):
Greetings everyone, I am trying to run balance-transfer sample, everything runs smoothly but when i try to enroll a user other than "Jim" i get a successful message on the terminal, but user is registration and enrollment fails. Here is the link to logs image. https://ibb.co/hZNz0m. I am on Cent OS 7. Please guide me on how to attach images here

mastersingh24 (Tue, 31 Oct 2017 10:58:38 GMT):
@szhman - http://hyperledger-fabric.readthedocs.io/en/latest/samples.html ``` If you are using Docker Toolbox on Windows 7 or macOS, you will need to use a location under C:\Users (Windows 7) or /Users (macOS) when installing and running the samples. ``` (https://chat.hyperledger.org/channel/fabric-questions?msg=H2KZk6PBFwWG4vCyr) @szhman

UtkarshSingh (Tue, 31 Oct 2017 12:53:23 GMT):
Hi all !! I wanna know about , How to add a new Organisation in the existing channel ? I have an existing fully-working 2 Organisation setup ( according to the Hyperledger Fabric documentation ) Now, if I want to add a new Organisation, What are the changes I need to do ? I did these changes : 1. Created crypto-materials using cryptogen 2. Made a new genesis.block using configtx (with changes like, Orderer Genesis containing all 3 Orgs now) 3. Replaced this genesis block with the Old genesis Block of Orderer 4. Shared the mychannel.block with new Org-Peers 5. Tried to make query, But FAILED!!!!!!!!!!

nickgaski (Tue, 31 Oct 2017 13:25:01 GMT):
@UtkarshSingh - have you looked at this example? https://github.com/hyperledger/fabric/tree/release/examples/configtxupdate - In your scenario are you trying to add an organization to the system channel or to an application channel? The basic flow is pretty much the same regardless. Fetch the channel genesis block -> unmarshall to JSON -> extract config specifc information from the JSON -> copy contents of this file to a new one with an appropriate name (e.g. updated_config.json) -> embed your Org3 MSP material -> encode both JSON config artifacts back to proto format -> calculate the difference as a proto -> so now you have a brand new proto that is really the delta between the initial config and your updated config (Org3) being added -> unmarshall this proto -> wrap in envelope -> encode back to proto -> sign with Org1 admin cert -> submit to ordering service with Org2 admin cert. Now the peers for your new org (Org3) can issue a peer channel fetch command to the ordering service to retrieve the initial config (i.e. the genesis block) and join the channel with this block. Once the new peer(s) join with the genesis block, their ledgers will sync up and they'll ultimately add the new config blocks to the ledger

nickgaski (Tue, 31 Oct 2017 13:25:01 GMT):
@UtkarshSingh - have you looked at this example? https://github.com/hyperledger/fabric/tree/release/examples/configtxupdate - In your scenario are you trying to add an organization to the system channel or to an application channel? The basic flow is pretty much the same regardless. Fetch the latest channel config block -> unmarshall to JSON -> extract config specifc information from the JSON -> copy contents of this file to a new one with an appropriate name (e.g. updated_config.json) -> embed your Org3 MSP material -> encode both JSON config artifacts back to proto format -> calculate the difference as a proto -> so now you have a brand new proto that is really the delta between the current config and your updated config (Org3 being added) -> unmarshall this proto -> wrap in envelope -> encode back to proto -> sign with Org1 admin cert -> submit to ordering service with Org2 admin cert. Now the peers for your new org (Org3) can issue a peer channel fetch command to the ordering service to retrieve the initial config (i.e. the genesis block) and join the channel with this block. Once the new peer(s) join with the genesis block, their ledgers will sync up and they'll ultimately add the new config blocks to the ledger

blockchacha (Tue, 31 Oct 2017 14:05:23 GMT):
Has joined the channel.

blockchacha (Tue, 31 Oct 2017 14:05:32 GMT):
Hi everyone, I'm relatively new to blockchain, trying to extend the balance transfer app from the hyperledger fabric samples. I am curious if anyone has any knowledge on how I would go about splitting the orgs between two servers I have setup. They require ssh with a password, so I am fairly certain just adding the IP's in place of localhost in the network config and docker compose files will not be enough. appreciate any suggestions

szhman (Tue, 31 Oct 2017 14:23:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TJNpXHoG5zbqDPQqf) @mastersingh24

szhman (Tue, 31 Oct 2017 14:23:28 GMT):
Thanks. I'l give it a try Master Singh

szhman (Tue, 31 Oct 2017 14:24:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mz5gWRdwdp6sYCp9G) @atiffarrukh Thank you.

RezwanKabir (Tue, 31 Oct 2017 18:57:29 GMT):
how can i create more channels ? as I have only mychannel.tx how can i create more certificate using cryptogentx ? raw commands would be appreciated

Asara (Tue, 31 Oct 2017 18:58:24 GMT):
@RezwanKabir http://hyperledger-fabric.readthedocs.io/en/latest/configtxgen.html

RezwanKabir (Tue, 31 Oct 2017 19:01:15 GMT):
I can create one channel by the crypto created by `configtxgen -profile -channelID -outputCreateChannelTx ` but i need to create more channels... how can I do that ? that link is not useful for creating multiple channels

Asara (Tue, 31 Oct 2017 19:01:42 GMT):
You would create the channels one at a time

rodrigofdz (Tue, 31 Oct 2017 19:02:51 GMT):
Has joined the channel.

rodrigofdz (Tue, 31 Oct 2017 19:09:08 GMT):
Hi guys im wondering how we can achieve data privacy in an hyperledger network.

RezwanKabir (Tue, 31 Oct 2017 19:09:12 GMT):
@Asara let me describe the situation. I could generate channel configuration transaction and anchor peer transaction by `configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./config/channel.tx -channelID $CHANNEL_NAME configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./config/Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP` Now I need to create more channels ..

Asara (Tue, 31 Oct 2017 19:09:59 GMT):
`-channelID $CHANNEL_NAME`

Asara (Tue, 31 Oct 2017 19:10:14 GMT):
Update that to whatever you want your channel name to be, rerun it, new channel.tx

RezwanKabir (Tue, 31 Oct 2017 19:11:58 GMT):
right. for generating anchor peer do i have the provision to put the two channels for Org1MSP ?

maaar1234 (Tue, 31 Oct 2017 21:17:16 GMT):
Hi! I have a concrete issue with permissions. I have to types of Participantes (let's say Part1 and Part2). Participants in Part1 are provided with an asset. I wnat that this asset can only be transferred to participants in Part2. For that, I was thinking in doing something like getPart2() (similar to getCurrentParticipant() here https://hyperledger.github.io/composer/business-network/programmatic-access-control.html). Then it would ckeck that the name of the new owner introduced in the transaction matches one of the users in getPart2(). Obviously, that commando getPart2() doesnt exist so I wondered how could I do that. Thanks!!

jeffgarratt (Tue, 31 Oct 2017 21:24:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yuXmHQHz6GFdctvLy) @maaar1234 may wish to repost in #composer

andy_joyful (Wed, 01 Nov 2017 00:24:51 GMT):
Has joined the channel.

ajksharma (Wed, 01 Nov 2017 04:36:54 GMT):
Hello Guys, I had posted a question on stackoverflow (https://stackoverflow.com/questions/47044063/hyperledger-fabric-multiple-hosts-setup-marbles-demo) Re-posting it here too. I have successfully installed a few hyperledger demos, including the marbles one (https://github.com/IBM-Blockchain/marbles) A few questions, 1.) How can I move some of the marbles demo nodes to another host/s and still get this demo to work? I have read the following two posts on the same topic already (where docker-swarm has been used for intra-host communication) 2.) How can I set up hyperledger fabric with multiple hosts using Docker? hyperledger-fabric-with-multiple-hosts-using-docker & https://stackoverflow.com/questions/43113916/how-can-i-set-up-hyperledger-fabric-with-multiple-hosts-using-docker https://stackoverflow.com/questions/46825974/how-can-i-make-a-communication-between-several-docker-containers-on-my-local-net I still couldn't decipher installing additional nodes and running them on different hosts. As running blockchain nodes on multiple hosts seems to be a common task, how is it being done now? I saw references to Cello and an Ansible script, though they look not so mature(0.7 v) and sure shot solutions. Is there a blog post or an experience I could look in to? Could I install the fabric nodes manually by pulling the hyperledger/fabric peer images from the docker hub? How do I then install & run the marbles demo on this pulled images? Thanks

ajksharma (Wed, 01 Nov 2017 04:36:54 GMT):
Hello Guys, I had posted a question on stackoverflow (https://stackoverflow.com/questions/47044063/hyperledger-fabric-multiple-hosts-setup-marbles-demo) Re-posting it here too. I have successfully installed a few hyperledger demos, including the marbles one (https://github.com/IBM-Blockchain/marbles) A few questions, 1.) How can I move some of the marbles demo nodes to another host/s and still get this demo to work? I have read the following two posts on the same topic already (where docker-swarm has been used for intra-host communication) https://stackoverflow.com/questions/43113916/how-can-i-set-up-hyperledger-fabric-with-multiple-hosts-using-docker https://stackoverflow.com/questions/46825974/how-can-i-make-a-communication-between-several-docker-containers-on-my-local-net I still couldn't decipher installing additional nodes and running them on different hosts. As running blockchain nodes on multiple hosts seems to be a common task, how is it being done now? I saw references to Cello and an Ansible script, though they look not so mature(0.7 v) and sure shot solutions. Is there a blog post or an experience I could look in to? 2. ) Could I install the fabric nodes manually by pulling the hyperledger/fabric peer images from the docker hub? How do I then install & run the marbles demo on this pulled images? Thanks

DeepakMule (Wed, 01 Nov 2017 05:52:30 GMT):
Has joined the channel.

DeepakMule (Wed, 01 Nov 2017 05:54:23 GMT):
Does the fabric use Queue for Transaction ? Which components handle the queuing for fabric?

Lokeshsah (Wed, 01 Nov 2017 06:02:18 GMT):
Has joined the channel.

Jonny (Wed, 01 Nov 2017 06:27:29 GMT):
Hi guys. I need some help troubleshooting my network. I tried to create channel but the guy keep on telling me as following ```[1b0 11-01 06:25:45.76 UTC] [github.com/hyperledger/fabric/common/cauthdsl] handleStream.processStreamingRPC._AtomicBroadcast_Broadcast_Handler.Broadcast.Handle.Process.Process.newChannelConfig.ProposeConfigUpdate.proposeConfigUpdate.authorizeUpdate.verifyDeltaSet.Evaluate.Evaluate.func1.func2 -> DEBU 0xc420028ed8 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected SecondaryMSP, got PrimaryMSP)```

Jonny (Wed, 01 Nov 2017 06:27:29 GMT):
Hi guys. I need some help troubleshooting my network. I tried to create channel but the guy keep on telling me as following ```[1b0 11-01 06:25:45.76 UTC] [github.com/hyperledger/fabric/common/cauthdsl] handleStream.processStreamingRPC._AtomicBroadcast_Broadcast_Handler.Broadcast.Handle.Process.Process.newChannelConfig.ProposeConfigUpdate.proposeConfigUpdate.authorizeUpdate.verifyDeltaSet.Evaluate.Evaluate.func1.func2 -> DEBU 0xc420028ed8 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected SecondaryMSP, got PrimaryMSP)[1b0 11-01 06:25:45.76 UTC] [github.com/hyperledger/fabric/common/cauthdsl] handleStream.processStreamingRPC._AtomicBroadcast_Broadcast_Handler.Broadcast.Handle.Process.Process.newChannelConfig.ProposeConfigUpdate.proposeConfigUpdate.authorizeUpdate.verifyDeltaSet.Evaluate.Evaluate.func1.func2 -> DEBU 0xc420028ed8 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected SecondaryMSP, got PrimaryMSP)```

Jonny (Wed, 01 Nov 2017 07:23:38 GMT):
``` WARN Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

Kayd29 (Wed, 01 Nov 2017 10:20:42 GMT):
Has joined the channel.

JoshuaBarker (Wed, 01 Nov 2017 12:22:52 GMT):
Has joined the channel.

ercw1 (Wed, 01 Nov 2017 13:41:32 GMT):
Has joined the channel.

ercw1 (Wed, 01 Nov 2017 13:41:54 GMT):
I have written about a problem with the fabric structure Please comment on it if I am misunderstanding something The problem comes when you want to leverage blockchain technology for trading, which is not an uncommon area of interest for banks and other institutions looking into blockchain technology right now. In these instances, Bank A will put up a limit order saying I want to trade X barrles of oil for Y dollars and the first other bank to respond to that order will get to fill the trade. If there’s two banks which simultaneously want to fill that order, Bank B and C, and it’s Bank B:s turn to make a block, then Bank B can simply choose to include his fill order into the next block for the whole network and cheat C on the trade. Most existing permissioned DLTs behave this way. In Hyperledger Fabric, the role is called the Orderer; the node which gets to decide which one of two transactions that arrived first, and this node exerts an unbalanced amount of power of the system, which makes it a conflict of interest for other banks to assume it. So the Orderer will have to be controlled by a trusted counterparty, which severely diminishes the extent to which these systems can draw benefit of real decentralization. Am I wrong in saying that about the orderer?

Asara (Wed, 01 Nov 2017 13:47:08 GMT):
You can have multiple orderers backed by a kafka cluster

Asara (Wed, 01 Nov 2017 13:47:15 GMT):
But then you are putting the trust into the kafka cluster.

Asara (Wed, 01 Nov 2017 13:47:32 GMT):
Once different consensus mechanisms are integrated you will have more options

enbochen (Wed, 01 Nov 2017 13:52:15 GMT):
Has joined the channel.

ercw1 (Wed, 01 Nov 2017 13:53:05 GMT):
@Asara so let's talk about the kafka cluster

ercw1 (Wed, 01 Nov 2017 13:53:15 GMT):
As I understand it in a Kafka cluster, there is a Zookeeper

ercw1 (Wed, 01 Nov 2017 13:53:30 GMT):
The Zookeper elects a leader in the cluster

ercw1 (Wed, 01 Nov 2017 13:54:08 GMT):
So the Zookeeper decides the leader which then decides the order. Therefore the Zookeeper needs to be a trusted counterparty. Am I right?

Vadim (Wed, 01 Nov 2017 13:56:44 GMT):
@ercw1 kafka in general is not for BFT consensus, you seem like you need BFT

ercw1 (Wed, 01 Nov 2017 13:57:10 GMT):
Yes, agreed

Jonny (Wed, 01 Nov 2017 14:04:27 GMT):
Hi, guys, if I want to create and join channel mannually, I should do it in peer node or from cli?

Asara (Wed, 01 Nov 2017 14:05:15 GMT):
@ercw1 AFAIK, BFT will be included in 1.2-1.3 release timeline, so you will have to wait on those features

Asara (Wed, 01 Nov 2017 14:05:49 GMT):
I remember someone creating a java based, PBFT ordering service. I'm sure if you search around you could find it.

ercw1 (Wed, 01 Nov 2017 14:19:55 GMT):
@Asara big thanks

alainN (Wed, 01 Nov 2017 17:01:48 GMT):
Has joined the channel.

philviana (Thu, 02 Nov 2017 01:10:20 GMT):
Hi. I'm trying to query for an asset in my chaincode (this is from the "Chaincode for developers" tutorial) and I'm getting this: `Error: Error endorsing query: rpc error: code = Unknown desc = chaincode error (status: 500, message: Asset not found: a) - ` How can I access the logs of the chaincode? e.g. where I can get more details about the 500 status?

jeffgarratt (Thu, 02 Nov 2017 01:45:41 GMT):
@philviana you can set this on the peer and log info will show there for the chaincode (CORE_CHAINCODE_LOGGING_LEVEL=debug)

philviana (Thu, 02 Nov 2017 02:15:29 GMT):
@jeffgarratt Thanks for the answer. I'm new to HL, so let me know if this makes sense. I tried two things:

philviana (Thu, 02 Nov 2017 02:15:29 GMT):
@jeffgarratt Thanks for the answer. I'm new to HL, so let me know if this makes sense. I tried two things:

philviana (Thu, 02 Nov 2017 02:16:20 GMT):
1) I ran the chaincode container with `docker exec -e CORE_LOGGING_CHAINCODE=debug -e CORE_PEER_ADDRESS=peer:7051 -e CORE_CHAINCODE_ID_NAME=mycc:0 chaincode bash -c "go build $chaincode.go && ./sacc"`

philviana (Thu, 02 Nov 2017 02:16:53 GMT):
2) When running the query, I added the logging level to the peer command: `peer chaincode query -n mycc -c '{"Args":["query","a"]}' -C myc --logging-level=debug`

philviana (Thu, 02 Nov 2017 02:17:14 GMT):
Neither of them made a difference (in fact, the logging for the query seemed to already be in DEBUG)

jeffgarratt (Thu, 02 Nov 2017 02:17:52 GMT):
@philviana I meant to add that env var to the peer node start command

jeffgarratt (Thu, 02 Nov 2017 02:18:02 GMT):
meaning.. set that in the environment for the peer process

philviana (Thu, 02 Nov 2017 02:18:11 GMT):
OK, trying that

philviana (Thu, 02 Nov 2017 02:20:01 GMT):
Yep, that gives me the same output as without the CORE_LOGGING_CHAINCODE option (which has messages with `DEBU` in them)

philviana (Thu, 02 Nov 2017 02:20:16 GMT):
I was hoping to get more detailed logs from the running chaincode.

philviana (Thu, 02 Nov 2017 02:20:22 GMT):
When I run it, I get this message:

philviana (Thu, 02 Nov 2017 02:20:24 GMT):
```2017-11-02 02:17:41.700 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017-11-02 02:17:41.701 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... ```

philviana (Thu, 02 Nov 2017 02:21:05 GMT):
I want to see what's happening in the chaincode when it calls `GetState` after the query from the CLI. And eventually why it returns an HTTP 500 to the CLI. Does that make sense?

jeffgarratt (Thu, 02 Nov 2017 02:50:07 GMT):
@philviana after setting this variable I get output in peer...

jeffgarratt (Thu, 02 Nov 2017 02:50:21 GMT):
```2017-11-02 02:33:06.306 UTC [shim] func1 -> DEBU 67f [914ead70]Transaction completed. Sending COMPLETED 2017-11-02 02:33:06.306 UTC [shim] func1 -> DEBU 680 [914ead70]Move state message COMPLETED 2017-11-02 02:33:06.306 UTC [shim] handleMessage -> DEBU 681 [914ead70]Handling ChaincodeMessage of type: COMPLETED(state:ready) 2017-11-02 02:33:06.306 UTC [shim] func1 -> DEBU 682 [914ead70]send state message COMPLETED 2017-11-02 02:33:06.307 UTC [chaincode] processStream -> DEBU 683 [914ead70]Received message COMPLETED from shim 2017-11-02 02:33:06.307 UTC [chaincode] handleMessage -> DEBU 684 [914ead70]Fabric side Handling ChaincodeMessage of type: COMPLETED in state ready 2017-11-02 02:33:06.307 UTC [chaincode] handleMessage -> DEBU 685 [914ead70-3a97-4e11-8598-9cd9b2bd3f2c]HandleMessage- COMPLETED. Notify 2017-11-02 02:33:06.307 UTC [chaincode] notify -> DEBU 686 notifying Txid:914ead70-3a97-4e11-8598-9cd9b2bd3f2c 2017-11-02 02:33:06.307 UTC [chaincode] Execute -> DEBU 687 Exit

philviana (Thu, 02 Nov 2017 02:55:17 GMT):
Mmmm

philviana (Thu, 02 Nov 2017 02:55:29 GMT):
@jeffgarratt Can you show me which command you ran that gave you that output?

philviana (Thu, 02 Nov 2017 03:01:42 GMT):
Let me try a full refresh of my environment...

Lavende (Thu, 02 Nov 2017 03:35:06 GMT):
Has joined the channel.

Jonny (Thu, 02 Nov 2017 03:35:19 GMT):
What is the meaning of this debug log return by orderer : ``` [8da 11-02 03:28:05.86 UTC] [github.com/hyperledger/fabric/common/cauthdsl] handleStream.processStreamingRPC._AtomicBroadcast_Deliver_Handler.Deliver.Handle.Apply.Evaluate...Evaluate.func1.func2 -> DEBU 0xc420028cb0 identity 0 does not satisfy principal: The identity is a member of a different MSP (expected SecondaryMSP, got PrimaryMSP) ``` But I'm able to create and join network successfully.

atiffarrukh (Thu, 02 Nov 2017 05:04:16 GMT):

error.png

atiffarrukh (Thu, 02 Nov 2017 05:04:16 GMT):

error.png

Taffies (Thu, 02 Nov 2017 05:08:42 GMT):
Has joined the channel.

JoshuaBarker (Thu, 02 Nov 2017 08:02:33 GMT):

Screenshot from 2017-11-02 15-00-30.png

Vadim (Thu, 02 Nov 2017 08:27:48 GMT):
@JoshuaBarker I can guess that you did not set the proper root certs to the CA, so it issues user certs which is not trusted by your network

JoshuaBarker (Thu, 02 Nov 2017 08:29:54 GMT):
@Vadim I managed to fix it by opening the .hfc-key-store folder and deleting the existing files and then re-running the code. This is what the terminal troubleshooting from the course was trying to do but for some reason wasn't working. Thanks for your reply!

Vadim (Thu, 02 Nov 2017 08:30:28 GMT):
no problem

Marshalll (Thu, 02 Nov 2017 09:14:33 GMT):
Has joined the channel.

Marshalll (Thu, 02 Nov 2017 09:22:04 GMT):

Clipboard - 2017年11月2日下午5点21分

Marshalll (Thu, 02 Nov 2017 09:23:27 GMT):
Hi, i have some problems in following tutorial"chaincode for developers".when i launch `docker-compose -f docker-compose-simple.yaml up`

Marshalll (Thu, 02 Nov 2017 09:26:20 GMT):

Clipboard - 2017年11月2日下午5点25分

Marshalll (Thu, 02 Nov 2017 09:28:52 GMT):
is there anybody encountered the same error before? please guide me, otherwise i'll delve into the source repo.....:sob:

Vadim (Thu, 02 Nov 2017 09:30:22 GMT):
@Marshalll any errors in the orderer log?

Marshalll (Thu, 02 Nov 2017 09:33:38 GMT):

Clipboard - 2017年11月2日下午5点32分

Vadim (Thu, 02 Nov 2017 09:34:37 GMT):
is it from the same flow? The time is different on your first log and in the last one.

Vadim (Thu, 02 Nov 2017 09:35:14 GMT):
do you see any logs in the orderer appearing when you run your command?

Marshalll (Thu, 02 Nov 2017 09:38:09 GMT):
yes, when i run command, the same log appearing in the console

Marshalll (Thu, 02 Nov 2017 09:39:15 GMT):
other lines' color is blue, so i think it is irrelevant.

atiffarrukh (Thu, 02 Nov 2017 09:39:53 GMT):
@Vadim can you look into my issue, whenever i generate certificates for any of the fabric sample or the edx example app, i get these sort of errors

Marshalll (Thu, 02 Nov 2017 09:41:44 GMT):
@atiffarrukh that sort of errors just the same as me ?

atiffarrukh (Thu, 02 Nov 2017 10:08:53 GMT):
@Marshalll no, i have already posted my error before josh posts, you can check that. https://chat.hyperledger.org/channel/fabric-questions?msg=oQ3r8rJfyS2x2MXLs

mastersingh24 (Thu, 02 Nov 2017 11:50:57 GMT):
@atiffarrukh - if you generated new crypto material, it's likely that https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/artifacts/docker-compose.yaml#L15 https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/artifacts/docker-compose.yaml#L18 https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/artifacts/docker-compose.yaml#L31 https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/artifacts/docker-compose.yaml#L34 are not properly set to the new keys which were generated

DeepakMule (Thu, 02 Nov 2017 11:56:31 GMT):
Observersion : if increase speed of transactions at peer then speed to block commit get reduced. How transactions are managed at Peer to commit in blocks?

DeepakMule (Thu, 02 Nov 2017 11:57:26 GMT):
does peer manage transaction using queue ?

mastersingh24 (Thu, 02 Nov 2017 11:59:34 GMT):
@DeepakMule - The orderer cuts blocks based on total bytes, number of transaction or time. So depending on the settings of those values, each block can contain multiple transaction and blocks can be cut faster

mastersingh24 (Thu, 02 Nov 2017 12:00:12 GMT):
So therefore the peer starts to process multiple transactions per block and the overall latency per transaction will likely appear to go down

DeepakMule (Thu, 02 Nov 2017 12:04:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=J5YzBkh75oKZ2hDna) @mastersingh24 dose Peer should have configuration for setting max bytes , num of transactions/block. transaction timeout ? I can see configuration for orderer only as BatchTimeout and Batchsize

yacovm (Thu, 02 Nov 2017 12:09:23 GMT):
why would the peer have such a thing? He's not the one creating the blocks...

ngg0707 (Thu, 02 Nov 2017 12:47:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HTFDLfGdS4Zg4roNJ) @nickgaski Thank you very much!

emiliobucha (Thu, 02 Nov 2017 17:26:42 GMT):
Has joined the channel.

emiliobucha (Thu, 02 Nov 2017 17:27:03 GMT):
Hey there. could I install the fabric nodes manually by pulling the hyperledger/fabric peer images from the docker hub? How do I then install & run the marbles demo on this pulled images? Thanks

emiliobucha (Thu, 02 Nov 2017 17:30:03 GMT):
Hey there, there is any tutorial to deploy many peers in multiple machines? How to deploy nodes in a real network? Thanks

philviana (Thu, 02 Nov 2017 20:43:24 GMT):
@jeffgarratt I tried a full refresh of my environment and still no luck :( I'm running the chaincode and the peer command setting CORE_CHAINCODE_LOGLEVEL=DEBUG and CORE_LOGGING_CHAINCODE=DEBUG (I saw both referenced in documentation/conversations)

philviana (Thu, 02 Nov 2017 20:44:18 GMT):
When running the chaincode, I still get the default INFO log level: ```root@cb723dfab84e:/opt/gopath/src/tttblockchain# CORE_LOGGING_CHAINCODE=DEBUG CORE_CHAINCODE_LOGLEVEL=DEBUG CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc 2017-11-02 20:34:58.579 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017-11-02 20:34:58.579 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... ``` And when I run `peer` , I tried passing --logging-level and also setting the environment variable - no luck ```root@41f03120d629:/opt/gopath/src/tttblockchain# CORE_LOGGING_CHAINCODE=DEBUG CORE_CHAINCODE_LOGLEVEL=DEBUG peer chaincode invoke -n mycc -v 0 -c '{"Args":["get","b"]}' -C myc --logging-level=DEBUG 2>&1 | grep chaincode 2017-11-02 20:42:55.287 UTC [chaincodeCmd] InitCmdFactory -> INFO 0a0 Get chain(myc) orderer endpoint: orderer:7050 2017-11-02 20:42:55.524 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a1 Using default escc 2017-11-02 20:42:55.524 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a2 Using default vscc Error: Error endorsing invoke: rpc error: code = Unknown desc = chaincode error (status: 500, message: Asset not found: b) - peer chaincode invoke [flags] -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -n, --name string Name of the chaincode ```

philviana (Thu, 02 Nov 2017 20:44:52 GMT):
I get logs with `[chaincodeCmd]` but none of `[chaincode]` like you showed before.

yarunkumar11 (Fri, 03 Nov 2017 00:53:36 GMT):
Has joined the channel.

jeffgarratt (Fri, 03 Nov 2017 02:15:00 GMT):
@philviana can you try CORE_LOGGING_LEVEL=debug?

philviana (Fri, 03 Nov 2017 02:26:07 GMT):
@jeffgarratt Just tried that. I can see the `[chaincode]` entries in the peer log now! Thank you! Also, I was able to enable debug logging on the chaincode container by setting `CORE_CHAINCODE_LOGGING_LEVEL=debug` :-) Thanks a lot! ``` 2017-11-03 02:36:56.657 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode (build level: ) starting up ... 2017-11-03 02:36:56.657 UTC [bccsp] initBCCSP -> DEBU 002 Initialize BCCSP [SW] 2017-11-03 02:36:56.657 UTC [shim] userChaincodeStreamGetter -> DEBU 003 Peer address: peer:7051 2017-11-03 02:36:56.792 UTC [shim] userChaincodeStreamGetter -> DEBU 004 os.Args returns: [./sacc] 2017-11-03 02:36:56.792 UTC [shim] chatWithPeer -> DEBU 005 Registering.. sending REGISTER 2017-11-03 02:36:56.793 UTC [shim] func1 -> DEBU 006 []Received message REGISTERED from shim 2017-11-03 02:36:56.793 UTC [shim] handleMessage -> DEBU 007 []Handling ChaincodeMessage of type: REGISTERED(state:created) 2017-11-03 02:36:56.793 UTC [shim] beforeRegistered -> DEBU 008 Received REGISTERED, ready for invocations 2017-11-03 02:36:56.793 UTC [shim] func1 -> DEBU 009 []Received message READY from shim 2017-11-03 02:36:56.793 UTC [shim] handleMessage -> DEBU 00a []Handling ChaincodeMessage of type: READY(state:established)```

philviana (Fri, 03 Nov 2017 02:26:07 GMT):
@jeffgarrat Just tried that. Still no luck :( Here are all the log-related variables I set on the CLI container (I'm sure most of them don't mean anything to the code, but somehow I found references to them on the internet). ```root@ff0c33fb5af7:/opt/gopath/src/tttblockchain# env|grep CORE|grep LOG CORE_CHAINCODE_LOGGING_LEVEL=debug CORE_CHAINCODE_LOGLEVEL=DEBUG CORE_LOGGING_LEVEL=debug CORE_LOGGING_CHAINCODE=debug ``` And here are the commands I ran from the CLI container: ```peer chaincode install -p tttblockchain -n mycc -v 0 peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc peer chaincode invoke -n mycc -c '{"Args":["set", "a", "20"]}' -C myc peer chaincode query -n mycc -c '{"Args":["query","a"]}' -C myc peer chaincode invoke -n mycc -c '{"Args":["set", "b", "30"]}' -C myc peer chaincode query -n mycc -c '{"Args":["query","b"]}' -C myc``` Some of them show `[chaincodeCmd]` log entries but never a `[chaincode]` log entry. When I run the actual chaincode I still get the default INFO level: ```2017-11-03 02:21:36.587 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017-11-03 02:21:36.587 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... ```

philviana (Fri, 03 Nov 2017 02:26:07 GMT):
@jeffgarratt Just tried that. Still no luck :( Here are all the log-related variables I set on the CLI container (I'm sure most of them don't mean anything to the code, but somehow I found references to them on the internet). ```root@ff0c33fb5af7:/opt/gopath/src/tttblockchain# env|grep CORE|grep LOG CORE_CHAINCODE_LOGGING_LEVEL=debug CORE_CHAINCODE_LOGLEVEL=DEBUG CORE_LOGGING_LEVEL=debug CORE_LOGGING_CHAINCODE=debug ``` And here are the commands I ran from the CLI container: ```peer chaincode install -p tttblockchain -n mycc -v 0 peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc peer chaincode invoke -n mycc -c '{"Args":["set", "a", "20"]}' -C myc peer chaincode query -n mycc -c '{"Args":["query","a"]}' -C myc peer chaincode invoke -n mycc -c '{"Args":["set", "b", "30"]}' -C myc peer chaincode query -n mycc -c '{"Args":["query","b"]}' -C myc``` Some of them show `[chaincodeCmd]` log entries but never a `[chaincode]` log entry. When I run the actual chaincode I still get the default INFO level: ```2017-11-03 02:21:36.587 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017-11-03 02:21:36.587 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... ```

luxus (Fri, 03 Nov 2017 02:37:25 GMT):
Hi all, Can I deploy chaincode on other blockchain network node?

Jacob (Fri, 03 Nov 2017 03:40:55 GMT):
Has joined the channel.

atiffarrukh (Fri, 03 Nov 2017 06:34:17 GMT):
@mastersingh24 thank you so much. That was the issue, it works now. you saved my butt. But how was I suppose to know that? is documented somewhere? I missed something?

dpk2877 (Fri, 03 Nov 2017 07:03:04 GMT):
Has joined the channel.

dpk2877 (Fri, 03 Nov 2017 07:04:12 GMT):
Hi Everyone, Could you guys please let me know that Is it possible to send email from go chaincode in fabric?

mastersingh24 (Fri, 03 Nov 2017 09:32:38 GMT):
@atiffarrukh - Glad to help and glad it works. And no - it's not really documented anywhere. Feel free to enter a JIRA against the fabric-samples component and assign to me it you'd like (lookup Gari Singh in the assign field) (https://chat.hyperledger.org/channel/fabric-questions?msg=qtiGFp6ZkvQfFfLao)

Jacob (Fri, 03 Nov 2017 09:33:57 GMT):
Hi All, could anyone advise how to deploy membership service or MSP (V1.0) in production env.? Should it be the another physical servers from orderer/endorser? What's the best practice?

Jacob (Fri, 03 Nov 2017 09:33:57 GMT):
Hi All, could anyone advise how to deploy membership service or MSP (V1.0) in production env.? Should it be the another physical server from orderer/endorser? What's the best practice?

as93717913 (Fri, 03 Nov 2017 10:10:38 GMT):
Hi did anyone knows that Is node js chaincode much slower then golang chaincode ?

toddinpal (Fri, 03 Nov 2017 11:14:13 GMT):
@dpk2877 I can't see any reason you couldn't, although realize that your chaincode will be executed by all endorsing peers, so it may get sent many times

dpk2877 (Fri, 03 Nov 2017 11:36:35 GMT):
@toddinpal thanks :)

JoshuaRippon (Fri, 03 Nov 2017 11:46:36 GMT):
Has joined the channel.

JoshuaRippon (Fri, 03 Nov 2017 11:46:43 GMT):
Has anyone had any luck setting up a Fabric on multiple hosts? I have tried Hyperledger Cello but to no avail!

rbraniste (Fri, 03 Nov 2017 13:35:24 GMT):
Has joined the channel.

philviana (Fri, 03 Nov 2017 17:01:48 GMT):
Is there a way to check if a chaincode is installed in a peer? In the `sacc` example, this command is run: `peer chaincode install -p sacc -n mycc -v 0` Is there a way to then list it?

philviana (Fri, 03 Nov 2017 17:31:49 GMT):
i.e. see that chaincode `mycc` is already installed/instantiated?

joshhw (Fri, 03 Nov 2017 17:45:48 GMT):
What is exactly is the "SampleConsortium" portion of the orderer yaml file mean?

joshhw (Fri, 03 Nov 2017 17:45:48 GMT):
What is exactly is the "SampleConsortium" portion of the orderer yaml file mean?

joshhw (Fri, 03 Nov 2017 17:45:48 GMT):
So the What is exactly is the "SampleConsortium" portion of the orderer yaml file mean?

joshhw (Fri, 03 Nov 2017 17:45:59 GMT):
what is its purpose?

jeffgarratt (Fri, 03 Nov 2017 18:36:53 GMT):
@joshhw consortiums define the base set from which new channels can be created

jeffgarratt (Fri, 03 Nov 2017 18:37:54 GMT):
in which channel creation policy is set, and the pool of members from which you can select to populate the new channel

jeffgarratt (Fri, 03 Nov 2017 18:37:54 GMT):
in which channel creation policy is set, and the pool of members from which you can select to populate the new channel are predefined

philviana (Fri, 03 Nov 2017 18:52:15 GMT):
@joshhw @jeffgarratt But the creation of a consortium is not mandatory for channel creation, right? Because not all examples have the consortium defined in the YAML.

jeffgarratt (Fri, 03 Nov 2017 18:52:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GRSjjqaFTNB2XwjBJ) @philviana It is mandatory to reference an existing consortium on channel creation

jeffgarratt (Fri, 03 Nov 2017 18:53:09 GMT):
ahhh... not all of the examples :)

jeffgarratt (Fri, 03 Nov 2017 18:53:27 GMT):
most of them are pre-seeding the consortium in the genesis block of the orderer system channel

philviana (Fri, 03 Nov 2017 18:53:35 GMT):
Aha! Got it.

jeffgarratt (Fri, 03 Nov 2017 18:53:37 GMT):
this in general would NOT happen

philviana (Fri, 03 Nov 2017 18:53:58 GMT):
thank you for clarifying that

jeffgarratt (Fri, 03 Nov 2017 18:54:40 GMT):
you are most welcome

vieiramanoel (Fri, 03 Nov 2017 19:02:49 GMT):
Has joined the channel.

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I'm having an trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, I can create channel on my pc too, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, I can create channel on my pc too, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, furthermore i commented line `command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT'` on compose file too.I can create channel on my pc, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, furthermore I commented line `command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT'` on compose file too.I can create channel on my pc, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, besides I commented line `command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT'` on compose file too.I can create channel on my pc, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, besides I commented line `command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT'` in compose file too.I can create channel on my pc, but I've failed in connect to this channel through the other one

vieiramanoel (Fri, 03 Nov 2017 19:09:57 GMT):
Hey, guys! I have a trivial question. I can run first-network tutorial from docs http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, but I can't establish an blockchain network on my pc and then connect on it from another one that is connect at same local network. I've added extra_hosts tag in all services inside my docker-compose-cli.yaml with my ip and second computer's ip, besides I commented line `command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT'` in compose file too. I can create channel on my pc, but I've failed in connect to this channel through the other one. The question is: what's the procedure two connect two remote peers on the same blockchain network? I googled for days searching for that but no progress was made

philviana (Fri, 03 Nov 2017 19:30:14 GMT):
@vieiramanoel Hi Manoel. I'm no expert in Fabric (still learning), but I suggest testing these first: 1) Connecting from your 2nd computer to your 1st computer via a service such as SSH (without a Docker container) - if this doesn't work you likely have a firewall issue. 2) Connecting from your 2nd computer to your 1st computer via SSH running in a Docker container - if this doesn't work but (1) does, you likely need to configure your Docker network. 3) Then try what you're trying to do. Can you successfully run tests (1) and (2) above?

joshhw (Fri, 03 Nov 2017 20:32:06 GMT):
@jeffgarratt so is it a default setup for a specific configuration involving certain orgs?

jeffgarratt (Fri, 03 Nov 2017 20:48:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=reydFXRBzAmqEisPn) @joshhw yes

ivaylobb (Fri, 03 Nov 2017 22:10:23 GMT):
Has joined the channel.

risabhsharma71 (Sat, 04 Nov 2017 07:45:27 GMT):
i have created first network in fabric samples

risabhsharma71 (Sat, 04 Nov 2017 07:45:32 GMT):
how do i run it

risabhsharma71 (Sat, 04 Nov 2017 07:45:43 GMT):
is there any script provided for that?

mmick (Sat, 04 Nov 2017 08:43:25 GMT):
when to use hyperledger composer vs SDK's (java, node)?

mklilley (Sat, 04 Nov 2017 18:16:36 GMT):
Has joined the channel.

jeffgarratt (Sat, 04 Nov 2017 19:49:46 GMT):
@mmick composer offers a higher level interface that encompasses the concepts of assets and participants, thus allowing you to more rapidly build solutions wrt to this model. It uses the node SDK internally. If #composer cannot satisfy your use case, you could then consider rolling your own chaincode

vieiramanoel (Sun, 05 Nov 2017 01:08:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ba5CMEqmeGE7oGima) @skriv I'll try those tests and reply to you

vieiramanoel (Sun, 05 Nov 2017 01:08:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ba5CMEqmeGE7oGima) @skriv I'll try those tests and reply to you after that

a.hyper (Sun, 05 Nov 2017 14:48:37 GMT):
@vieiramanoel I too am trying to connect my 2nd peer over the network to Fabric. I'm not sure where to start as I can't find any documentation. Have you had any luck with the steps you followed. Can you send me what you've done so far, I will try it too, maybe we can figure this out together.

Manu (Sun, 05 Nov 2017 18:55:18 GMT):
Has joined the channel.

tenghuanhe (Mon, 06 Nov 2017 01:45:22 GMT):
Has joined the channel.

ngg0707 (Mon, 06 Nov 2017 01:48:41 GMT):
In fabric,a chaincode is not able to call another chaincode (just like that a smart contract can call another smart contract in ethereum),isn't it?

vieiramanoel (Mon, 06 Nov 2017 01:53:35 GMT):
@a.hyper what i've done until now (those tests suggested by @philviana wasn't made yet): I ran all instructions for network creation on first PC, added the line extra_hosts to my compose file (i'll attach it at the end). Ran cryptogen and generate keys on the second host, I didn't generated genesis block at the second one, instead I shared the genesis generated at the first one. Run cli in both hosts, on the first one I created channel, next I tried to connect to this channel, but wasn't possible. The channel was not listed when i ran `peer channel list`

vieiramanoel (Mon, 06 Nov 2017 01:53:35 GMT):
@a.hyper what i've done until now (those tests suggested by @philviana wasn't made yet): I ran all instructions for network creation on first PC, added the line extra_hosts to my compose file (i'll attach it at the end). Ran cryptogen and generate keys on the second host, I didn't generated genesis block at the second one, instead I shared the genesis generated at the first one. Run cli in both hosts, on the first one I created channel, next I tried to connect to this channel, but wasn't possible. The channel was not listed when i ran `peer channel list`

vieiramanoel (Mon, 06 Nov 2017 01:53:35 GMT):
@a.hyper what i've done until now (those tests suggested by @philviana wasn't made yet): I ran all instructions for network creation on first PC, added the line extra_hosts to my compose file (i'll attach it at the end). Ran cryptogen and generate keys on the second host, I didn't generated genesis block at the second one, instead I shared the genesis generated at the first one. Run cli in both hosts, on the first one I created channel, next I tried to connect to this channel, but wasn't possible. The channel was not listed when i ran `peer channel list` My docker compose is here: https://gist.github.com/vieiramanoel/e641fb296928e1ef2f64d61f880bb5dc

vieiramanoel (Mon, 06 Nov 2017 01:53:35 GMT):
@a.hyper what i've done until now (those tests suggested by @philviana wasn't made yet): I ran all instructions for network creation on first PC, added the line extra_hosts to my compose file (i'll attach it at the end). Ran cryptogen and generate keys on the second host, I didn't generated genesis block at the second one, instead I shared the genesis generated at the first one. Run cli in both hosts, on the first one I created channel, next I tried to connect to this channel, but wasn't possible. The channel was not listed when i ran `peer channel list`

vieiramanoel (Mon, 06 Nov 2017 01:53:35 GMT):
@a.hyper what i've done until now (those tests suggested by @philviana wasn't made yet): I ran all instructions for network creation on first PC, added the line extra_hosts to my compose file (i'll attach it at the end). Ran cryptogen and generate keys on the second host, I didn't generated genesis block at the second one, instead I shared the genesis generated at the first one. Run cli in both hosts, on the first one I created channel, next I tried to connect to this channel, but wasn't possible. The channel was not listed when i ran `peer channel list`

IamMukulTaneja (Mon, 06 Nov 2017 02:23:40 GMT):
Has joined the channel.

miguelcalero (Mon, 06 Nov 2017 03:32:54 GMT):
Has joined the channel.

VinodPai (Mon, 06 Nov 2017 05:34:44 GMT):
Has joined the channel.

VinodPai (Mon, 06 Nov 2017 05:35:20 GMT):
I have explored fabric and composer. Also implemented sample BNA on playground as well as Fabric on IBM Bluemix. The question I have is , say there is a manufacturer and 10 suppliers. Each of these will be peers on the blockchain. My question is , who is responsible for setting up the infrastructure - nodes on the cloud, installing the fabric and bna on all nodes, and who will pay the monthly charges for those nodes ( server on cloud)?

omathurin (Mon, 06 Nov 2017 06:52:22 GMT):
Has joined the channel.

omathurin (Mon, 06 Nov 2017 07:00:02 GMT):
If it is not you, you will probably need to find a way to make the manufacturer and/or the supplier to pay. Same goes for operating and managing your network: if it is not you, then you will need to find people doing it for you or whoever is the sponsor of this ledger, and find a way to pay for them / their time...

wininani (Mon, 06 Nov 2017 07:00:56 GMT):
Has joined the channel.

Lucifer (Mon, 06 Nov 2017 07:08:19 GMT):
Has joined the channel.

jojialex2 (Mon, 06 Nov 2017 08:39:55 GMT):
Has joined the channel.

jojialex2 (Mon, 06 Nov 2017 08:42:34 GMT):
1) How Hyperledger ensure the endorsed transaction broadcast(endorsement) delivered to ordering service nodes from the client node, when the client node receive the response from endorser and crashed before it send to the ordering service nodes? Client or submitting-client: a client that submits an actual transaction-invocation to the endorsers, and broadcasts transaction-proposals to the ordering service.

Vadim (Mon, 06 Nov 2017 08:44:00 GMT):
@jojialex2 it does not, it's a client responsibility to ensure that

risabhsharma71 (Mon, 06 Nov 2017 08:56:09 GMT):

Clipboard - November 6, 2017 2:25 PM

Vadim (Mon, 06 Nov 2017 08:58:58 GMT):
@risabhsharma71 check the peer logs, check if the cc container has started, check its logs

risabhsharma71 (Mon, 06 Nov 2017 09:00:25 GMT):
by cc containers you mean the dev-peers?

jojialex2 (Mon, 06 Nov 2017 09:00:44 GMT):
Once a client initiates a transaction into a network why client responsible for that. What is the confidentiality of the transaction into that network? Because client got the response and acknowledge to the application say that the transaction success. But it is not send to the ordering service nodes and even client will not get any event message say that transaction is failed for success.

Vadim (Mon, 06 Nov 2017 09:01:04 GMT):
@risabhsharma71 by cc containers I mean chaincode containers, not peer containers

risabhsharma71 (Mon, 06 Nov 2017 09:01:43 GMT):

Clipboard - November 6, 2017 2:31 PM

risabhsharma71 (Mon, 06 Nov 2017 09:02:09 GMT):
@Vadim

Vadim (Mon, 06 Nov 2017 09:02:31 GMT):
@risabhsharma71 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n5F2oLothvETr2DG4)

risabhsharma71 (Mon, 06 Nov 2017 09:08:29 GMT):

Clipboard - November 6, 2017 2:37 PM

risabhsharma71 (Mon, 06 Nov 2017 09:10:22 GMT):
is this the correct way to check peer logs? or i have done it wrong? sorry for such noob questions

UtkarshSingh (Mon, 06 Nov 2017 09:22:43 GMT):
How the consensus between peers meet on whether to add the Block or discard it (Block that is given by the Orderer) ? Is it using Gossip Protocol for that ?

mastersingh24 (Mon, 06 Nov 2017 10:21:09 GMT):
@UtkarshSingh - take a look at http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html#

UtkarshSingh (Mon, 06 Nov 2017 12:39:12 GMT):
@mastersingh24 I have gone through that, but wanted to what's happening inside

mastersingh24 (Mon, 06 Nov 2017 12:54:22 GMT):
OK - well as indicated, there is no communication between peers on block validation. The validate and commit process is deterministic so there is no need to do this. All blocks are added and invalid transactions are marked within the block metadata

Jonny (Mon, 06 Nov 2017 13:41:37 GMT):
hi, if I'm implementing something like balance transfer example, I only instantiate for balance for 'a' and 'b'. how can I open a new account for c,d,e etc. Is that possible to transfer direct from 'a' to 'c' without creating 'c' account?

joshhw (Mon, 06 Nov 2017 16:31:26 GMT):
is there documentation in regards to reading the various docker-compose files and what each object represents. For instance, does each peer need a set of environment variables, similar to what is container within cli under docker-compose-cli file?

the_identity_guy (Mon, 06 Nov 2017 17:58:06 GMT):
I have a quick question, when developing a solution with Fabric, are privacy policies for a given business use case setup using the composer?

toddinpal (Mon, 06 Nov 2017 21:40:48 GMT):
@Jonny That's totally up to your chaincode. You could have chaincode functions that create accounts and establish an initial balance and only accept transfers between existing accounts. Alternatively you could allow the mention of a new account to effectively create it. Personally I'd go with the former as the latter has issues around potentially creating accounts spuriously. Think about a bank. A bank won't let you transfer money to an account that doesn't exist. So while you could allow this in your chaincode, I wouldn't.

toddinpal (Mon, 06 Nov 2017 21:43:29 GMT):
@UtkarshSingh Each peer makes the decision itself based upon MVCC. Since all peers on a channel should receive all transactions in the same order, they should all update their state of the world and history databases in the same manner. However the current implementation doesn't address issues where peers state of the world or history database may be different due to errors or hacking.

toddinpal (Mon, 06 Nov 2017 21:45:34 GMT):
This is something I believe checkpointing is going to address. This issue is somewhat unique to Fabric as most (many?) blockchains ensure consensus around the world state and not just the updates to the world state. The former detects differences immediately, whereas in Fabric non-endorsing peer's world state could be vastly different from other peers due to corruption or hacking.

toddinpal (Mon, 06 Nov 2017 21:47:22 GMT):
@UtkarshSingh Peers don't make decisions about whether to accept a block or not. As long as the deliver message containing the block from the orderer is properly signed, the peer will accept it. The only thing a peer can do is reject a transaction contained in the block because it is determined to be invalid due to multi-version concurrency control.

toddinpal (Mon, 06 Nov 2017 21:48:42 GMT):
@risabhsharma71 that is the way to access peer logs if peers are being run in Docker.

Jonny (Tue, 07 Nov 2017 01:07:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XPGKJthMsuiEZpWrg) @toddinpal For creating account on the chaincode what is exactly function or method I can use? I was wrongly imagine that we call instantiate again for account creation.

john111 (Tue, 07 Nov 2017 03:23:25 GMT):
Has joined the channel.

Jacob (Tue, 07 Nov 2017 04:19:55 GMT):
@mastersingh24 Hi, could you help advise how to deploy membership service or MSP (V1.0) in production env.? Should it be the another physical server from endorser/orderer? What's the best practice?

Ryo (Tue, 07 Nov 2017 05:01:06 GMT):
Has joined the channel.

asuchit (Tue, 07 Nov 2017 10:20:56 GMT):
what is the different in fabric-tools vs fabric-peer ?

Vadim (Tue, 07 Nov 2017 10:25:53 GMT):
@asuchit fabric-tools contains cryptogen, configtxgen and so on and fabric-peer contains peer

asuchit (Tue, 07 Nov 2017 10:28:34 GMT):
hmm Thanks

UtkarshSingh (Tue, 07 Nov 2017 14:30:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wYDgxRtHY9Lsv9fzD) @toddinpal So, if an attack somehow makes the Orderer stop, then the protocol will get failed or delayed

JoshuaRippon (Tue, 07 Nov 2017 15:27:38 GMT):
Hi guys, I have a conceptual question that has been bugging me for a while but I still don't have an answer yet. It would be awesome if someone can clear this up for me.

JoshuaRippon (Tue, 07 Nov 2017 15:28:15 GMT):
So a host can contain multiple organisations which each have multiple peers.

JoshuaRippon (Tue, 07 Nov 2017 15:28:43 GMT):
I have to install chaincode onto each of the peers.

johnfilippone (Tue, 07 Nov 2017 15:29:24 GMT):
Anyone know what CHAINCODE_VERSION_CONFLICT is?

johnfilippone (Tue, 07 Nov 2017 15:29:37 GMT):
It is returned after failed instantiate chaincode

JoshuaRippon (Tue, 07 Nov 2017 15:30:14 GMT):
Can I have separate channels that all live on one host?

JoshuaRippon (Tue, 07 Nov 2017 15:31:03 GMT):
Also, how do the peers keep their own blockchain if they all live on one host?

Vadim (Tue, 07 Nov 2017 15:31:28 GMT):
why do they all live on all host?

JoshuaRippon (Tue, 07 Nov 2017 15:31:30 GMT):
If anyone can push me in the right direction it would be greatly appreciated?

JoshuaRippon (Tue, 07 Nov 2017 15:32:00 GMT):
I'm saying that it is possible to have multiple peers from different organisations on one host

Vadim (Tue, 07 Nov 2017 15:32:27 GMT):
does not make much sense, but yes

Vadim (Tue, 07 Nov 2017 15:32:43 GMT):
or for development only

JoshuaRippon (Tue, 07 Nov 2017 15:34:24 GMT):
Ok so lets say I have 4 peers on one host. Do they all have a separate record of the blockchain?

Vadim (Tue, 07 Nov 2017 15:35:01 GMT):
they should

Vadim (Tue, 07 Nov 2017 15:35:15 GMT):
it's your responsibility to configure that

Vadim (Tue, 07 Nov 2017 15:36:01 GMT):
If you use docker, so then each container has its own file system

Vadim (Tue, 07 Nov 2017 15:36:01 GMT):
If you use docker, so then each container has its own file system isolated from other containers

JoshuaRippon (Tue, 07 Nov 2017 15:36:56 GMT):
Ok, I guess it is the docker part that I don't fully understand yet. Does each peer have a separate docker?

Vadim (Tue, 07 Nov 2017 15:38:07 GMT):
this is how it works in the examples

Vadim (Tue, 07 Nov 2017 15:38:53 GMT):
you can also run it without containers, but then you have to make sure that all peer processes use differents paths on the fs and different host ports

JoshuaRippon (Tue, 07 Nov 2017 15:40:04 GMT):
So lets say I set up a fabric that has 2 peers, is there a way for me to prove to myself that if I am peer1, I can't view peer2's containers?

Vadim (Tue, 07 Nov 2017 15:40:28 GMT):
docker guarantees that

JoshuaRippon (Tue, 07 Nov 2017 15:43:02 GMT):
So is there a way for me to "sign in" as peer0 and check?

JoshuaRippon (Tue, 07 Nov 2017 15:43:08 GMT):
peer1*

Vadim (Tue, 07 Nov 2017 15:45:56 GMT):
check what?

Vadim (Tue, 07 Nov 2017 15:46:49 GMT):
@JoshuaRippon I suggest that you familiarize yourself with what docker container is: https://www.docker.com/what-container

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like 'peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ' seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like 'peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ' seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like 'peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ' seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ` seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like ...`peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ...` seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

joshhw (Tue, 07 Nov 2017 23:39:15 GMT):
Hey folks, I'm trying to build a small custom network by utilizing the byfn file structure, my question is: when using the byfn instructions, most of the code is run using just one peer from within the cli container, so code like 'peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ' seems to create some block to connect the peer with. Would I need to do this on each peer node if I wasn't using the cli container?

Jacob (Wed, 08 Nov 2017 05:31:34 GMT):
jacob

toddinpal (Wed, 08 Nov 2017 07:29:28 GMT):
@Jonny Your chaincode would have to provide a function that a client could invoke to create a new account, much like invoking the invoke,delete, or query functions of the example02 sample. Unfortunately the sample uses the function "invoke" to really mean "transfer" which I believe is what the function should have been named.

toddinpal (Wed, 08 Nov 2017 07:30:38 GMT):
@Jonny Remember that the accounts in the example02 have nothing to do with Fabric accounts. The accounts in that sample are just keys in the world state.

toddinpal (Wed, 08 Nov 2017 07:36:39 GMT):
@UtkarshSingh Yes, that is correct. If you can somehow "stop" (maybe crash) the ordering service, then clients would no longer be able to submit endorsed transactions and no blocks would be cut until the ordering service is functional again. Peers always add blocks delivered by the ordering service to the ledger unless there is something wrong with the block (bad signature, header, etc.) or the block had previously been delivered. The gossip protocol's role in this is to allow non-leader peers to get blocks via gossiping with each other and a leader peer. As long as the block is OK, it will always be added to the ledger.

Ryo (Wed, 08 Nov 2017 11:01:09 GMT):
hello folks,i am facing an issue in starting my chaincode in docker-devmode as it is giving the following error : root@52d3289543c3:/opt/gopath/src/chaincode/key# CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=myc1:0 ./keydemo 2017-11-08 10:09:00.135 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017-11-08 10:09:00.135 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... 2017-11-08 10:09:00.136 UTC [shim] func1 -> ERRO 003 Received error from server, ending chaincode stream: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport Error in starting the chaincode : %!(EXTRA *status.statusError=rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport)

Ryo (Wed, 08 Nov 2017 11:02:06 GMT):
it is running fine in BYFN but showing error in docker-devmode

yacovm (Wed, 08 Nov 2017 11:12:27 GMT):
Switch to port 52

yacovm (Wed, 08 Nov 2017 11:12:32 GMT):
@Ryo

Ryo (Wed, 08 Nov 2017 11:16:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qSyncF3ser8cbA3qY) @yacovm what port 52? and how?

yacovm (Wed, 08 Nov 2017 11:16:57 GMT):
Yes. Instead of 51

yacovm (Wed, 08 Nov 2017 11:17:11 GMT):
In core oeer address env var

yacovm (Wed, 08 Nov 2017 11:17:17 GMT):
*peer

Ryo (Wed, 08 Nov 2017 11:17:19 GMT):
7051? okay got it

yacovm (Wed, 08 Nov 2017 11:17:27 GMT):
Ah yeah

yacovm (Wed, 08 Nov 2017 11:17:41 GMT):
Sorry... I'm typingfrom the phone

yacovm (Wed, 08 Nov 2017 11:18:06 GMT):
So use 7052

Ryo (Wed, 08 Nov 2017 11:18:16 GMT):
ok..will look into it now

Ryo (Wed, 08 Nov 2017 11:18:20 GMT):
thanks

Ryo (Wed, 08 Nov 2017 11:23:36 GMT):
@yacovm thanks it worked

IamMukulTaneja (Wed, 08 Nov 2017 11:34:10 GMT):
I am following this tutorial 'writing your first application' Link : http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html Here when i am trying to make user1 signer by giving this command: *fabric_client.getUserContext('user1',true);* But it is giving me this error:- *bash: syntax error near unexpected token `'user1',true'* If someone can help with this?

username343 (Wed, 08 Nov 2017 12:29:24 GMT):
Hi everyone, can anyone tell me how is couchdb the world state used? What happens if a value is changed in couchdb?

Ryo (Wed, 08 Nov 2017 12:33:30 GMT):
@yacovm thanks for helping, everything worked fine but can you tell me what was wrong with port 7051? just want to know for knowledge :slight_smile:

UtkarshSingh (Wed, 08 Nov 2017 12:34:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9wwBkMsX6viygGEfj) @toddinpal I have a couple of questions on this : 1). So the case of crashing of Orderer, will be a Single-Point-of-Failure here, which violates the decentralisation property of the blockchain ? 2). How does Orderer make a Block? What are the things inside the block? Is it also having some puzzle to solve(like in bitcoin) or, just a simple hash is made out of the block, by applying Hash Function? [i.e., 'Finding the hash of the Block' is a Hard-computation (like bitcoin) or a simple approach (to apply the hash function over txns+previous hash+block no.) ] 3) As you said, "The gossip protocol's role in this is to allow non-leader peers to get blocks via gossiping with each other and a leader peer. As long as the block is OK, it will always be added to the ledger". So, all the peers need to know, whether to add or not, (i.e. whether the Block is OK or NOT_OK). So, how all the peers will come to that consensus ? I think, Gossip Protocol is a way to come to some consensus correctly among n-peers, amongst which n/3 peers could be faulty. So, after getting the Block from the Orderer to all peers(using Gossip Protocol), the peers should have to come to some consensus, whether to add it or not. And, I guess, Again Gossip protocol will be used to reach the consensus.(correct me if I am wrong)

yacovm (Wed, 08 Nov 2017 12:36:11 GMT):
The chaincode server now runs on port 7052

yacovm (Wed, 08 Nov 2017 12:36:16 GMT):
Thats it

username343 (Wed, 08 Nov 2017 12:44:38 GMT):
@yacovm can you please tell me what is the role of couchdb and what happens if i change a value in couchdb?

mastersingh24 (Wed, 08 Nov 2017 13:01:07 GMT):
@username343 - CouchDB is one of the supported state databases. Have a look at http://hyperledger-fabric.readthedocs.io/en/release/ledger.html#state-database and http://hyperledger-fabric.readthedocs.io/en/release/ledger.html#state-database-options to understand the role of the state database and the options for supported state databases. If you directly change a value in CouchDB, you don't affect the validity of the actual ledger since the state database is simply a snapshot of the current state but the ledger is the actual immutable record. That being said, if you directly change a value in the state database, there are two potential issues: 1) People who query your peer will receive the wrong information. This is mitigated by actually doing a strong query (querying multiple peers to see check that you have the same result) 2) The peer may not be able to endorse transactions which use the modified state to make decisions. This does not result in any corruption of the actual distributed ledgers but could possibly disrupt transaction flow if you don't have enough endorsers in the network

username343 (Wed, 08 Nov 2017 13:04:32 GMT):
thanks @mastersingh24 , so is the statedb used to query the value of a variable using web applications without invoking a transaction?

username343 (Wed, 08 Nov 2017 13:05:15 GMT):
or does the chaincode use the statedb to return values to invoke operations?

mastersingh24 (Wed, 08 Nov 2017 13:24:33 GMT):
@username343 - The latter. Web applications *should* communicate with a backend web app which invokes/queries chaincode and the chaincode would access the state database

username343 (Wed, 08 Nov 2017 13:28:32 GMT):
thanks @mastersingh24 that makes sense, so is it possible for every peer to have it's own couchdb node for worldstate, or is there only one worldstate db in entire network? Because if there is only one worldstate node won't all the peers be reading from that node, which will disrupt the transaction flow?

username343 (Wed, 08 Nov 2017 13:28:59 GMT):
if the values in that single world state node are changed

a.hyper (Wed, 08 Nov 2017 13:39:03 GMT):
Hi All - I have a 4 docker container setup running (ordered, CA, peer and couchDB) on 1 server. Everything works great and I opened up all the ports within my LAN. I am trying to connected a second peer to this network. I'm assuming I need to 2 containers to do this (peer and couchdb). Does anyone have instructions on how to do this? I've tried a million things with no success.

bh4rtp (Wed, 08 Nov 2017 14:06:42 GMT):
@a.hyper do you mean dynamically add peer? i was told it doesn't support yet.

joshhw (Wed, 08 Nov 2017 14:36:09 GMT):
Does every peer need access to the orderer's root certificate to gain access to the channel?

joshhw (Wed, 08 Nov 2017 14:36:26 GMT):
from within each Peer container, how would one join a channel?

a.hyper (Wed, 08 Nov 2017 14:44:49 GMT):
@bh4rtp I'm not sure what you mean by dynamically? The network is up and running already, do you mean I can't add a peer after the network has already come up?

a.hyper (Wed, 08 Nov 2017 14:45:41 GMT):
@joshhw I wish I knew enough to answer your question. I can't find any documentation on how to add a peer other than a few vague posts.

bh4rtp (Wed, 08 Nov 2017 14:45:57 GMT):
yes. add peer after starting up.

a.hyper (Wed, 08 Nov 2017 14:46:32 GMT):
@bh4rtp hmm... do you have a link that says you can't add peers after the network is up already?

MaximP (Wed, 08 Nov 2017 14:53:29 GMT):
Hi all, can anybody help me to understand the CA server. What does "enroll the users" mean? I see this "fabric-ca-client enroll" command but what it actually does?

joshhw (Wed, 08 Nov 2017 14:56:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eqXwui5j6FYyiaomz) @bh4rtp when you say after starting up, how would you go about that?

bh4rtp (Wed, 08 Nov 2017 14:56:30 GMT):
@a.hyper i did remeber exactly. the affiliations cannot be added dynamically. https://chat.hyperledger.org/channel/fabric-ca?msg=WHzwnn43hnoZnvqqG

bh4rtp (Wed, 08 Nov 2017 14:56:30 GMT):
@a.hyper i did not remeber exactly. the affiliations cannot be added dynamically. https://chat.hyperledger.org/channel/fabric-ca?msg=WHzwnn43hnoZnvqqG

bh4rtp (Wed, 08 Nov 2017 14:56:30 GMT):
@a.hyper i did not remember exactly. the affiliations cannot be added dynamically. https://chat.hyperledger.org/channel/fabric-ca?msg=WHzwnn43hnoZnvqqG

joshhw (Wed, 08 Nov 2017 14:57:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LdBe4h4HZmMo7baks) @a.hyper same, its an issue I'm trying to understand. I'm not sure how the certs work within the system, and I'm not sure which certs need to be accessibile to all parties

a.hyper (Wed, 08 Nov 2017 14:59:25 GMT):
@joshhw Pretty much exactly where I'm at. It really is hard to believe there is no doc for this. Seems like a pretty common thing to do.

johnfilippone (Wed, 08 Nov 2017 15:00:40 GMT):
Anyone know what CHAINCODE_VERSION_CONFLICT is? It is returned after failed instantiate chaincode

mna2016 (Wed, 08 Nov 2017 15:08:44 GMT):
Hi All, How channel can be used to implement data visibility? For example creating channel1 for admin with 100% visibility of data. And channel2 for business partner organization with limited visibility to data? Appreciate if examples can be shared.

toddinpal (Wed, 08 Nov 2017 15:26:10 GMT):
@UtkarshSingh 1) Well crashing an orderer will only be a single point of failure if you're only running one orderer. You can run multiple orderer servers using the same Kafka instance and Kafka is typically configured in a highly available cluster configuration. The only real issue is that I don't believe the Fabric SDKs support providing more than one address for the ordering service, so you'd need to use some sort of load balancer or virtual IP address to allow the SDKs to use a single IP address or host name. I suppose you could even use DNS round robin. 2) The orderers accept endorsed transactions and publishes them to a Kafka topic associated with the channel (at least for the Kafka based orderer). The orderer will then publish a message indicating to cut a block based upon either elapsed time, number of transactions, size of the block, etc., at which point it takes all the endorsed transactions that have been published since the last block was cut, and creates the block. The block contains a header, the hash of the previous block, all the endorsed transactions, and the signature of the orderer. There is no "mining" as Fabric doesn't use proof of work. Consensus is achieved by soliciting multiple endorsements and guaranteeing the serialization of the transactions in a consistent matter, basically the time they hit the Kafka topic. 3) There isn't any consensus as they can all tell whether the block is valid by examining the header, the hash of the previous block, and the signature. As long as those are good, then the block will be accepted. If they aren't, then some corruption has occurred and the block won't be accepted. AFAIK there is no consensus mechanism used in the gossip protocol because the blocks stand on their own. There is nothing to reach consensus on.

toddinpal (Wed, 08 Nov 2017 15:28:08 GMT):
@bh4rtp You can definitely add new peers to an existing Fabric 1.0 network, as well as add new channels and new organizations.

bh4rtp (Wed, 08 Nov 2017 15:29:36 GMT):
@toddinpal thanks. it's a good news. would you please provide docs instructing how to add them?

joshhw (Wed, 08 Nov 2017 15:29:55 GMT):
@toddinpal have you done any customization outside of the byfn documentation?

joshhw (Wed, 08 Nov 2017 15:30:13 GMT):
@toddinpal do you have experience connecting peers outside of the provided cli container?

toddinpal (Wed, 08 Nov 2017 15:30:20 GMT):
@bh4rtp I'll see if I can get someone to write it up as I'm at the Hyperledger Summit this week

toddinpal (Wed, 08 Nov 2017 15:32:35 GMT):
@bh4rtp We don't use the cli container, and I'm not sure what you mean by customization. I'm an architect working on Oracle's Blockchain Cloud Service and we don't use a number of the Fabric tools as our environment is a bit different. But Fabric definitely supports adding new peers to an existing network.

joshhw (Wed, 08 Nov 2017 15:33:09 GMT):
@toddinpal how are you connecting a peer to a channel?

toddinpal (Wed, 08 Nov 2017 15:33:22 GMT):
Sorry, that was supposed to be for @joshhw

joshhw (Wed, 08 Nov 2017 15:33:34 GMT):
@toddinpal are you creating the channel block somewhere and then passing it along to your other peer nodes?

joshhw (Wed, 08 Nov 2017 15:33:59 GMT):
@toddinpal does your orderer's root certificate need to be shared amongst all the peer nodes in order to join the channel?

toddinpal (Wed, 08 Nov 2017 15:36:21 GMT):
Not sure why an orderers root cert would need to be shared... The peer would need access to the orderers public key in order to verify the signature

toddinpal (Wed, 08 Nov 2017 15:36:38 GMT):
that's just standard PKI

toddinpal (Wed, 08 Nov 2017 15:36:48 GMT):
I gotta go to bed so I can get up for this summit

toddinpal (Wed, 08 Nov 2017 15:37:56 GMT):
I believe were doing a channel configuration update transaction to add the peer to the channel.

a.hyper (Wed, 08 Nov 2017 15:57:06 GMT):
@toddinpal @joshhw @bh4rtp I've read that you can use configtxgen for that purpose also, but it doesn't say anything in the official docs. http://hyperledger-fabric.readthedocs.io/en/release/configtxgen.html

joshhw (Wed, 08 Nov 2017 15:59:14 GMT):

Screen Shot 2017-11-08 at 10.58.24 AM.png

joshhw (Wed, 08 Nov 2017 15:59:32 GMT):
@a.hyper @toddinpal in this command, it is creating a channel-ID.block

joshhw (Wed, 08 Nov 2017 16:00:54 GMT):
@a.hyper @toddinpal I'm trying to understand how to join a channel from a peer container, similar to the instructions presented in byfn without using the cli container to execute the code. All of this is done via command line. I'm curious if this can be done from inside a peer containers command line rather then the cli command line.

daanporon (Wed, 08 Nov 2017 16:23:14 GMT):
Hi, we've setup a blockchain network and installed the fabcar example on it ... we are using grpcs to communicate but for some reason the hyperledger client sdk doesn't want to connect to our Peer (It just says `[client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed` in the logs). Any idea which PEM file we should give to the newPeer() function? and how this should be structured when using intermediate certificates (which certificates should it contain)? Invoking the chaincode works when using the cli ... We don't see anything appearing in the logs on the Peer

daanporon (Wed, 08 Nov 2017 16:23:14 GMT):
Hi, we've setup a blockchain network and installed the fabcar example on it ... we are using grpcs to communicate but for some reason the hyperledger client sdk doesn't want to connect to our Peer (It just says `[client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed` in the logs). Any idea which PEM file we should give to the newPeer() function? and how this should be structured when using intermediate certificates (which certificates should it contain)? Invoking the chaincode works when using the cli ... We don't see anything appearing in the logs on the Peer even though the Peer receives tcp packets when the proposal is send.

daanporon (Wed, 08 Nov 2017 16:23:14 GMT):
Hi, we've setup a blockchain network and installed the fabcar example on it ... we are using grpcs to communicate but for some reason the hyperledger client sdk doesn't want to connect to our Peer (It just says `[client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed` in the logs). Any idea which PEM file we should give to the newPeer() function? and how this should be structured when using intermediate certificates (which certificates should it contain)? Invoking the chaincode works when using the cli ... We don't see anything appearing in the logs on the Peer even though the Peer receives tcp packets when the proposal is sent.

daanporon (Wed, 08 Nov 2017 16:37:46 GMT):
also asked it through stackoverflow, all help is appreciated because we are really stuck at this --> https://stackoverflow.com/questions/47185013/invoking-chaincode-using-hyperledger-fabric-client-using-grpcs-and-intermediate

knagware9 (Wed, 08 Nov 2017 16:38:25 GMT):
@username343

knagware9 (Wed, 08 Nov 2017 16:38:49 GMT):
every peer will have own state database

knagware9 (Wed, 08 Nov 2017 16:51:02 GMT):
@joshhw --You can join channel using any sdk like Node sdk

knagware9 (Wed, 08 Nov 2017 16:52:12 GMT):
https://fabric-sdk-node.github.io/Channel.html

knagware9 (Wed, 08 Nov 2017 16:52:30 GMT):
joinChannel(request, timeout) For a peer node to become part of a channel, it must be sent the genesis block, as explained here. This method sends a join channel proposal to one or more endorsing peers.

joshhw (Wed, 08 Nov 2017 17:53:48 GMT):
@knagware9 do you know the significance of the cafile? I'm trying to understand if this is a private key

joshhw (Wed, 08 Nov 2017 17:55:01 GMT):
@knagware9 so for a command like "peer channel create" requires the cafile to communicate with the orderer. I don't understand why I would need to create a channel if I've already created a genesis block.

knagware9 (Wed, 08 Nov 2017 18:08:50 GMT):
@joshhw when we create channel genesis block copied to the peers so that configuration used during endorsment

knagware9 (Wed, 08 Nov 2017 18:11:06 GMT):
@joshhw -- cafile It is the local path to the orderer’s root cert, allowing us to verify the TLS handshake.

joshhw (Wed, 08 Nov 2017 18:11:29 GMT):
@knagware9 is that file meant to be a private key shared amongst all peers?

knagware9 (Wed, 08 Nov 2017 18:11:56 GMT):
@joshhw --public key

joshhw (Wed, 08 Nov 2017 18:12:08 GMT):
@knagware9 Thank you.

knagware9 (Wed, 08 Nov 2017 18:12:34 GMT):
@joshhw welcome

IamMukulTaneja (Wed, 08 Nov 2017 18:59:03 GMT):
Hi everyone, I just wanted to know that how can we start making our own network? Thanks in advance!!

joshhw (Wed, 08 Nov 2017 19:46:04 GMT):
@IamMukulTaneja http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#

risabhsharma71 (Thu, 09 Nov 2017 05:21:37 GMT):
hello guys wanted to know the roles of the orgs in network when used in real world application.. like what would be the role in production application..

risabhsharma71 (Thu, 09 Nov 2017 05:22:54 GMT):
is the org0 the one big company say google talking to other big company (org1) ibm in a big business network

risabhsharma71 (Thu, 09 Nov 2017 05:22:57 GMT):
??

ajksharma (Thu, 09 Nov 2017 10:43:36 GMT):
@a.hyper Saw your question of adding peers to an existing network. I had asked the same last week. Have you found a way to do this? I too want to add peers with the added condition that they exist on a separate machine.

IamMukulTaneja (Thu, 09 Nov 2017 10:59:53 GMT):
Can someone give me the exact definition of peer in an organization? if possible please explain it with real life example

IamMukulTaneja (Thu, 09 Nov 2017 11:01:04 GMT):
and can we instantiate more than one chaincode on one peer?

MoulaliMvg (Thu, 09 Nov 2017 12:01:17 GMT):
Has joined the channel.

IamMukulTaneja (Thu, 09 Nov 2017 12:03:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fZEZfci864hk6QScS) @joshhw Thanks!

a.hyper (Thu, 09 Nov 2017 13:10:41 GMT):
@ajksharma Negative. Still looking. If I find out I'll report back. If you find out, please do the same.

ajksharma (Thu, 09 Nov 2017 13:12:54 GMT):
@a.hyper Great man, thanks. Been stuck in this adding extra nodes addition thing since 10 days

Vadim (Thu, 09 Nov 2017 13:21:11 GMT):
@ajksharma @a.hyper if you don't know how to generate the crypto material, then there was a script posted on #fabric-ca https://github.com/hyperledger/fabric-samples/blob/v1.1.0-preview/fabric-ca/scripts/start-peer.sh

Vadim (Thu, 09 Nov 2017 13:21:11 GMT):
@ajksharma @a.hyper if you don't know how to generate the crypto material, then there was a link posted on #fabric-ca https://github.com/hyperledger/fabric-samples/blob/v1.1.0-preview/fabric-ca/scripts/start-peer.sh

UtkarshSingh (Thu, 09 Nov 2017 13:53:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3PfcvZmkhRFDgjshZ) @IamMukulTaneja Organization, you can consider it as a big comapny with a Admin, (if you will look at the crypto-config.yaml, & make Users:0, no peers and users will be generated), whose MSP is used by all the peers of that Org. Peers, can be considered as Employees of that big company(Organisation).

UtkarshSingh (Thu, 09 Nov 2017 13:56:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t9DptmP3DaXYvM3om) @IamMukulTaneja Yes, we can run multiple chaincodes in a peer. But, remember, only one chaincode per channel. One peer can be a part of many channels, & each channel is associated with only one chaincode. So, one peer may have many chaincodes, each corresponding to a channel

Vadim (Thu, 09 Nov 2017 13:56:33 GMT):
@UtkarshSingh there can be many chaincodes in a channel

UtkarshSingh (Thu, 09 Nov 2017 14:07:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vth5mRjMHhYZxJDXc) @Vadim Is it so ?? I have read somewhere, that there would be 1 chaincode per channel. Thnx for correcting.

Vadim (Thu, 09 Nov 2017 14:12:44 GMT):
@UtkarshSingh no, definitely many chaincodes. You can also call from one chaincode other chaincodes.

Vadim (Thu, 09 Nov 2017 14:46:37 GMT):
@simcan [ ](https://chat.hyperledger.org/channel/general?msg=G3GD3pi9RhtkXAdLE) cryptogen generates new root certs for each invocation, so the new peer is not trusted by the rest of your network

simcan (Thu, 09 Nov 2017 14:46:37 GMT):
Has joined the channel.

Vadim (Thu, 09 Nov 2017 14:47:29 GMT):
the easiest if you generate certs for 3 peers, then use the first two peers to start the network as usual and then use the remaining certs for peer3 to join it to the network when it's already running

Vadim (Thu, 09 Nov 2017 14:47:52 GMT):
you can also use fabric-ca to obtain new MSP certs dynamically, but it needs more effort

simcan (Thu, 09 Nov 2017 14:57:28 GMT):
@Vadim thanks for your response I have executed the generate script and the crypto materials are generated int the crypto-config folder

simcan (Thu, 09 Nov 2017 14:58:45 GMT):

Capture4.PNG

Vadim (Thu, 09 Nov 2017 15:01:13 GMT):
@simcan so you still have the issue?

simcan (Thu, 09 Nov 2017 15:01:35 GMT):
yes

Vadim (Thu, 09 Nov 2017 15:04:03 GMT):
do you run the whole network with newly generated certs or only the peer you want to add?

simcan (Thu, 09 Nov 2017 15:06:08 GMT):
i restarded the whole network

Vadim (Thu, 09 Nov 2017 15:08:06 GMT):
it does not really answer my question...

Vadim (Thu, 09 Nov 2017 15:08:44 GMT):
make sure that peers use certs signed by the same CA

Vadim (Thu, 09 Nov 2017 15:09:00 GMT):
or generated by the same cryptogen invocation

IamMukulTaneja (Thu, 09 Nov 2017 15:56:30 GMT):
Anyone knows how to use Fabric CA to generate certificates? In tutorial they have generated certificates using cryptogen tool.

Vadim (Thu, 09 Nov 2017 15:59:24 GMT):
@IamMukulTaneja https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#fabric-ca-client

mastersingh24 (Thu, 09 Nov 2017 17:38:55 GMT):
@RajKumarPandey - do you really need to build it or are you just trying to use Fabric to build apps, etc (https://chat.hyperledger.org/channel/general?msg=FWsT32cmfeKAp46G3)

RajKumarPandey (Thu, 09 Nov 2017 17:38:55 GMT):
Has joined the channel.

MuhammadSalah (Thu, 09 Nov 2017 17:57:25 GMT):
Hello, people. If anyone has an idea "github.com/hyperledger/fabric/core/chaincode/shim" <<< Why this link is broken? What is the alternative link?

MuhammadSalah (Thu, 09 Nov 2017 18:01:35 GMT):
I am trying "github.com/hyperledger/fabric/tree/release/core/chaincode/shim" this instead! but it doesn't proceed

jeffgarratt (Thu, 09 Nov 2017 18:04:09 GMT):
@MuhammadSalah try https://github.com/hyperledger/fabric/tree/master/core/chaincode/shim

jeffgarratt (Thu, 09 Nov 2017 18:04:21 GMT):
or whichever branch you so desire

MuhammadSalah (Thu, 09 Nov 2017 18:05:35 GMT):
Okay, I am on it thanks a bunch @jeffgarratt

MuhammadSalah (Thu, 09 Nov 2017 18:05:50 GMT):
I am just still new to the whole thing! So I am getting my head around it :)

jeffgarratt (Thu, 09 Nov 2017 18:06:16 GMT):
no worries... it is my pleasure. Always feel free to ask away.

MuhammadSalah (Thu, 09 Nov 2017 18:06:53 GMT):
Thanks

MuhammadSalah (Thu, 09 Nov 2017 18:07:37 GMT):
go get -u --tags nopkcs11 github.com/hyperledger/fabric/tree/release/core/chaincode/shim

MuhammadSalah (Thu, 09 Nov 2017 18:07:45 GMT):
that's how I should be running it?

MuhammadSalah (Thu, 09 Nov 2017 18:08:02 GMT):
It should get into the gopath right?

MuhammadSalah (Thu, 09 Nov 2017 18:08:18 GMT):
Obviously, it holds the scripts that will build the sample chain code I just developed?

jeffgarratt (Thu, 09 Nov 2017 18:08:25 GMT):
hmmm... a test is worth a thousand words...

jeffgarratt (Thu, 09 Nov 2017 18:08:50 GMT):
sounds reasonable... you can always start a go based container and give it a shot to verify

jeffgarratt (Thu, 09 Nov 2017 18:08:54 GMT):
ala docker

jeffgarratt (Thu, 09 Nov 2017 18:09:29 GMT):
which I would always recommend as to support the "oh I screwed up" moment without consequences

jeffgarratt (Thu, 09 Nov 2017 18:09:56 GMT):
and you can even view the file system changes post mortem to verify

MuhammadSalah (Thu, 09 Nov 2017 18:10:06 GMT):
You suggest

MuhammadSalah (Thu, 09 Nov 2017 18:10:12 GMT):
I replicate some docker image?

jeffgarratt (Thu, 09 Nov 2017 18:10:25 GMT):
do you fabric dev env?

MuhammadSalah (Thu, 09 Nov 2017 18:10:34 GMT):
I have the dev env yes

MuhammadSalah (Thu, 09 Nov 2017 18:10:37 GMT):
using vagrant

jeffgarratt (Thu, 09 Nov 2017 18:10:43 GMT):
then you have all the images

MuhammadSalah (Thu, 09 Nov 2017 18:10:51 GMT):
Yes all the fabric ones

MuhammadSalah (Thu, 09 Nov 2017 18:10:53 GMT):
peer

MuhammadSalah (Thu, 09 Nov 2017 18:10:55 GMT):
orderer

MuhammadSalah (Thu, 09 Nov 2017 18:10:56 GMT):
etc

jeffgarratt (Thu, 09 Nov 2017 18:11:04 GMT):
let me verify real quick, 2 secs

MuhammadSalah (Thu, 09 Nov 2017 18:11:26 GMT):
Sure, take your time. Just consider this I don't really find a good document / tutorial / course

MuhammadSalah (Thu, 09 Nov 2017 18:11:31 GMT):
That wraps the whole thing

MuhammadSalah (Thu, 09 Nov 2017 18:11:45 GMT):
It's like I am exploring a different aspect every once in a while

jeffgarratt (Thu, 09 Nov 2017 18:11:49 GMT):
```docker run -it hyperledger/fabric-ccenv /bin/bash

jeffgarratt (Thu, 09 Nov 2017 18:11:56 GMT):
then try your go get...

MuhammadSalah (Thu, 09 Nov 2017 18:11:57 GMT):
okkk

jeffgarratt (Thu, 09 Nov 2017 18:11:59 GMT):
see if it works :)

MuhammadSalah (Thu, 09 Nov 2017 18:12:11 GMT):
and I should define $GOPATH?

MuhammadSalah (Thu, 09 Nov 2017 18:12:15 GMT):
beforehand?

jeffgarratt (Thu, 09 Nov 2017 18:12:29 GMT):
already done for you :)

jeffgarratt (Thu, 09 Nov 2017 18:12:37 GMT):
GOPATH=/opt/gopath

MuhammadSalah (Thu, 09 Nov 2017 18:13:01 GMT):
okkk I got it

jeffgarratt (Thu, 09 Nov 2017 18:13:06 GMT):
then you can test to your hearts content with no consequences

jeffgarratt (Thu, 09 Nov 2017 18:13:09 GMT):
good luck!!

MuhammadSalah (Thu, 09 Nov 2017 18:13:16 GMT):
I will do it right away

MuhammadSalah (Thu, 09 Nov 2017 18:13:44 GMT):
Do you mind telling me what this image is about exactly?

MuhammadSalah (Thu, 09 Nov 2017 18:13:49 GMT):
CCENV >> Chaincode environment?

MuhammadSalah (Thu, 09 Nov 2017 18:14:04 GMT):
Just consider me a 101 blockchain here

jeffgarratt (Thu, 09 Nov 2017 18:14:05 GMT):
this is precisely the image that is used to construct deployed chaincode

jeffgarratt (Thu, 09 Nov 2017 18:14:20 GMT):
when you deploy, this image is used as base for the chaincode

jeffgarratt (Thu, 09 Nov 2017 18:14:32 GMT):
stands for chaincode environment

jeffgarratt (Thu, 09 Nov 2017 18:14:58 GMT):
if you run a system, this container is launched to build your chaincode's image for execution

jeffgarratt (Thu, 09 Nov 2017 18:15:37 GMT):
so trying stuff here wrt to chaincode is exactly what you want

MuhammadSalah (Thu, 09 Nov 2017 18:16:32 GMT):
Okay I get it now

jeffgarratt (Thu, 09 Nov 2017 18:16:53 GMT):
have fun!!

MuhammadSalah (Thu, 09 Nov 2017 18:17:09 GMT):
And actually it complains

MuhammadSalah (Thu, 09 Nov 2017 18:17:15 GMT):
the directory is not using a git system

MuhammadSalah (Thu, 09 Nov 2017 18:17:32 GMT):
I guess it means I should clone it beforehand maybe?

MuhammadSalah (Thu, 09 Nov 2017 18:17:43 GMT):
But I think that's the dirty way of thinking.

jeffgarratt (Thu, 09 Nov 2017 18:18:22 GMT):
perhaps explain what you wish to accomplish?

MuhammadSalah (Thu, 09 Nov 2017 18:18:36 GMT):
I want to do the Chaincode for Developers

MuhammadSalah (Thu, 09 Nov 2017 18:18:38 GMT):
exercise

MuhammadSalah (Thu, 09 Nov 2017 18:19:02 GMT):
I want to see how to write CC apart from using hyperledger composer

jeffgarratt (Thu, 09 Nov 2017 18:19:11 GMT):
do you speak English?

MuhammadSalah (Thu, 09 Nov 2017 18:19:14 GMT):
Yes.

jeffgarratt (Thu, 09 Nov 2017 18:19:22 GMT):
2 secs, going to direct channel

aatkddny (Thu, 09 Nov 2017 23:38:27 GMT):
I'm using the CLI to package some chain code for 3 orgs. Each org is running 2 peers in their own containers. I need endorsement from them all for this to be ok, so the first package looks like this: peer chaincode package -n $CHAINCODE_NAME -v $CHAINCODE_VERSION -p $CHAINCODE_LOCATION -s -S -i "AND(‘Org1MSP.member’,’Org2MSP.member’,’Org3MSP.member')" /${SIGNED_CHAINCODE_LOCATION} I try to instantiate it on a peer and it fails miserably with this: Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) How do I get it to instantiate here? It all works fine if the policy is OR rather than AND.

aatkddny (Thu, 09 Nov 2017 23:38:27 GMT):
I'm using the CLI to package some chain code for 3 orgs. Each org is running 2 peers in their own containers. I need endorsement from them all for this to be ok, so the first package looks like this: `peer chaincode package -n $CHAINCODE_NAME -v $CHAINCODE_VERSION -p $CHAINCODE_LOCATION -s -S -i "AND(‘Org1MSP.member’,’Org2MSP.member’,’Org3MSP.member')" /${SIGNED_CHAINCODE_LOCATION}` I try to instantiate it on a peer and it fails miserably with this: Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) How do I get it to instantiate here? It all works fine if the policy is OR rather than AND.

aatkddny (Thu, 09 Nov 2017 23:38:27 GMT):
I'm using the CLI to package some chain code for 3 orgs. Each org is running 2 peers in their own containers. I need endorsement from them all for this to be ok, so the first package looks like this: `peer chaincode package -n $CHAINCODE_NAME -v $CHAINCODE_VERSION -p $CHAINCODE_LOCATION -s -S -i "AND(‘Org1MSP.member’,’Org2MSP.member’,’Org3MSP.member')" /${SIGNED_CHAINCODE_LOCATION}` I try to instantiate it on a peer and it fails miserably with this: `Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy))` How do I get it to instantiate here? It all works fine if the policy is OR rather than AND.

mastersingh24 (Thu, 09 Nov 2017 23:52:51 GMT):
@aatkddny - You can only use "OR". Instantiation policy is used to determine which org(s) are allowed to instantiate chaincode so only "OR" policies are valid

aatkddny (Thu, 09 Nov 2017 23:54:42 GMT):
Then how do I set the endorsement policy?

mastersingh24 (Thu, 09 Nov 2017 23:56:24 GMT):
You set the endorsement policy when you instantiate

mastersingh24 (Thu, 09 Nov 2017 23:58:57 GMT):
`peer chaincode instantiate ...... -P "AND(‘Org1MSP.member’,’Org2MSP.member’,’Org3MSP.member')"`

aatkddny (Fri, 10 Nov 2017 00:05:07 GMT):
Perfect. Thanks

HandsomeRoger (Fri, 10 Nov 2017 03:31:16 GMT):
Hello everybody. I have some questions about fabric-tuna app, I have set up the port on 8000. But I can't connect in localhost:8000. What i have done is through the steps: $ npm install $ node registerAdmin.js $ node registerUser.js $ node server.js thanks!

HandsomeRoger (Fri, 10 Nov 2017 03:31:53 GMT):
$ node server.js Live on port: 8000

john111 (Fri, 10 Nov 2017 03:49:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JYZFn9WGstCgcjaG7) @HandsomeRoger try changing port in server.js file

DeepakMule (Fri, 10 Nov 2017 05:59:45 GMT):
I have some queries when orderer service deliver block to peer for commit and peer takes time to commit. in this case peer does order waits for sending blocks to commit at peer ? and all blocks / transactions are kept in queue using kafka / in-memory in case of solo does order will send blocks in sequence and at peer blocks are kept in memory ? My understanding from blocksprovider.go code, orderer wait for response from peer and then send next block. please confirm my understanding.

DeepakMule (Fri, 10 Nov 2017 05:59:45 GMT):
I have some queries when orderer service deliver block to peer for commit and peer takes time to commit. in this case does order waits for sending blocks to commit at peer ? and all blocks / transactions are kept in queue using kafka / in-memory in case of solo does order will send blocks in sequence and at peer blocks are kept in memory ? My understanding from blocksprovider.go code, orderer wait for response from peer and then send next block. please confirm my understanding.

mastersingh24 (Fri, 10 Nov 2017 09:59:37 GMT):
@suchith.arodi - I believe that what you are looking to do simply requires the GetState / PutState operations provided by chaincode. I'd suggest taking a look at http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html# and particularly http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html#querying-the-ledger and http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html#updating-the-ledger (https://chat.hyperledger.org/channel/general?msg=MmfmPZ7CMooviXwFa)

suchith.arodi (Fri, 10 Nov 2017 09:59:37 GMT):
Has joined the channel.

rajasekharpippalla (Fri, 10 Nov 2017 10:54:31 GMT):
Has joined the channel.

simcan (Fri, 10 Nov 2017 11:05:37 GMT):
@Vadim I succeeded to run a network with 2 orgs : org1 (3 peers) and org2 (2 peers)

simcan (Fri, 10 Nov 2017 11:16:28 GMT):
i have installed the chaincode on all peers and instantited it only on Org2/peer0 Then I have queried all the peers and all aueries were successful I wonder how it passed even if i haven't instantiated the chaincode on all peers

Vadim (Fri, 10 Nov 2017 11:29:24 GMT):
@simcan you instantiate chaincode once

simcan (Fri, 10 Nov 2017 13:12:15 GMT):
ok thanks :)

MuhammadSalah (Fri, 10 Nov 2017 14:10:14 GMT):
Does anybody has a minute to help me start up the development environment?

MuhammadSalah (Fri, 10 Nov 2017 14:11:21 GMT):
Or better yet, explain to me an end to end scenario on how to create a simple block chain network from scratch.

MuhammadSalah (Fri, 10 Nov 2017 14:11:49 GMT):
I am stuck at this page in the documents

MuhammadSalah (Fri, 10 Nov 2017 14:12:00 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html

joshhw (Fri, 10 Nov 2017 18:23:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=myER3ssTnTRpR4W8f) @MuhammadSalah the build your first network explains a traditional setup pretty well. I'd start there.

suchith.arodi (Fri, 10 Nov 2017 19:12:50 GMT):
Hello All, I am new to Hyperledger Fabric. Is it possible with the chaincode (Smart contract) to use a hash map and store a set of key value pairs (Where key is the user address/public-key/any unique ID which links back to user and the value is a number). In my app, when the user wants something the user will start a transaction and this transaction will intern trigger the chaincode which has the hashmap stored and based on the user unique ID the hash lookup in the chaincode will return the value. I want to store this value back on the ledger with the user key. Can this be done on Fabric? If someone knows anything about this, please help me out. -Thanks

PabloG12 (Sat, 11 Nov 2017 16:54:46 GMT):
Has joined the channel.

jeffgarratt (Sat, 11 Nov 2017 22:47:05 GMT):
[ ](https://chat.hyperledger.org/channel/general?msg=NNQQsnkzz7rTFgcDA) @suchith.arodi going to answer here

jeffgarratt (Sat, 11 Nov 2017 22:47:54 GMT):
[ ](https://chat.hyperledger.org/channel/general?msg=NNQQsnkzz7rTFgcDA) @suchith.arodi You can not determine all of the nodes participating in a channel

jeffgarratt (Sat, 11 Nov 2017 22:48:12 GMT):
joining a channel does NOT put identifying information into the channel

jeffgarratt (Sat, 11 Nov 2017 22:48:30 GMT):
you (as an organization) would have to manage the nodes that are part of specific channels

jeffgarratt (Sat, 11 Nov 2017 22:49:18 GMT):
i.e. the only information in the Channel is MSP, but not specific nodes (other than anchor peers, which are not required)

jeffgarratt (Sat, 11 Nov 2017 22:50:13 GMT):
for example, you would NOT be able to determine the number of nodes I have that have joined the channel

jeffgarratt (Sat, 11 Nov 2017 22:50:46 GMT):
only the MSP information is available (if you are a member)

suchith.arodi (Sat, 11 Nov 2017 22:51:10 GMT):
Sure. Organisation/admin manages that hash map (Creating and adding new elements).

suchith.arodi (Sat, 11 Nov 2017 22:51:48 GMT):
Oh, I see.

jeffgarratt (Sat, 11 Nov 2017 22:52:08 GMT):
so I could have 10,000 nodes in the channel, and you would be none the wiser

jeffgarratt (Sat, 11 Nov 2017 22:52:56 GMT):
this of course would only be useful from my perspective as a replication factor, so 10,000 would be extreme :)

suchith.arodi (Sat, 11 Nov 2017 22:59:46 GMT):
My scenario is this. Basically, I want a user/node to invoke a transaction and based on the nodes Identity I need to assign him a number. For this, I am thinking of creating a hashmap of all the nodes with thier identity and a number as value. I want to use this haspmap in chaincode when a transaction is invoked. In the end, I want to write a key/value pair on the blockchain and return the value back to the user. So from what you are suggesting I see that I can't create a haspmap of all the nodes. Is it possible for me to collect this information while the user/node is getting created and getting the private and public key in the beginning with CA?

suchith.arodi (Sat, 11 Nov 2017 23:00:26 GMT):
* return a number back to user based on his identity

suchith.arodi (Sat, 11 Nov 2017 23:01:15 GMT):
@jeffgarratt

yacovm (Sat, 11 Nov 2017 23:16:19 GMT):
@suchith.arodi do you care what is the number of the node?

yacovm (Sat, 11 Nov 2017 23:16:40 GMT):
if not... you can just hash the identity, and turn it into a number and with high probability it will be unique, no?

suchith.arodi (Sat, 11 Nov 2017 23:16:43 GMT):
As of now, No.

yacovm (Sat, 11 Nov 2017 23:17:32 GMT):
You can compute the probability of collision from the hash space (256 bits) to the number space (64 bits)

yacovm (Sat, 11 Nov 2017 23:18:39 GMT):
and it depends on the number of nodes, of course

suchith.arodi (Sat, 11 Nov 2017 23:20:09 GMT):
@jeffgarratt I think you misunderstood my scenario. The number (Value) for the identity (key) will be decided by the organization based on each user. So, the values are 0, 1, 2, 3. Based on the node one of the value should be assigned

suchith.arodi (Sat, 11 Nov 2017 23:20:40 GMT):
I apologize, @yacovm

yacovm (Sat, 11 Nov 2017 23:21:23 GMT):
oh so you just need to map the MSP id of the identity to a number?

suchith.arodi (Sat, 11 Nov 2017 23:22:34 GMT):
I am not sure, what is a MSP id. Is the MSP given to a channel or for individual node ?

yacovm (Sat, 11 Nov 2017 23:22:56 GMT):
the MSP ID is a string that represents the node's organization...

suchith.arodi (Sat, 11 Nov 2017 23:23:44 GMT):
I want to mapindividual nodes ID to a number, not the organisation ID

suchith.arodi (Sat, 11 Nov 2017 23:23:53 GMT):
node*

suchith.arodi (Sat, 11 Nov 2017 23:25:02 GMT):
node ID in the sense, it can be address or public key or signature of the node, any ID which is unique to all nodes

suchith.arodi (Sat, 11 Nov 2017 23:27:24 GMT):
Node or client or each user *

auxillium (Sun, 12 Nov 2017 03:36:48 GMT):
Has joined the channel.

Yashwanthv21 (Sun, 12 Nov 2017 05:02:42 GMT):
Has joined the channel.

Yashwanthv21 (Sun, 12 Nov 2017 07:21:13 GMT):
how do i connect different clients on different machines?

Yashwanthv21 (Sun, 12 Nov 2017 07:21:25 GMT):
on different networks

Yashwanthv21 (Sun, 12 Nov 2017 07:22:24 GMT):
I have a basic setup running on a server For eg. The first network application

Yashwanthv21 (Sun, 12 Nov 2017 07:22:54 GMT):
how do i connect to it as a client from a different network on different machine

auxillium (Sun, 12 Nov 2017 10:16:20 GMT):
what is the minimum number of nodes that i need for fabric to work? sorry I'm new to this

bh4rtp (Sun, 12 Nov 2017 10:36:02 GMT):
hi, as for `balance-transfer` example, i try to run `./runApi.sh` following these steps: $ npm install $ su # ./runApi.sh An error about `async` occurs. ```/home/allen/gopath/src/github.com/hyperledger/fabric-samples/balance-transfer/app.js:109 app.post('/users', async function(req, res) { ^^^^^ SyntaxError: missing ) after argument list at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3``` how to fix it?

bh4rtp (Sun, 12 Nov 2017 10:36:02 GMT):
hi, as for `balance-transfer` example, i try to run `./runApi.sh` following these steps: ```$ npm install $ su # ./runApp.sh``` An error about `async` occurs. ```/home/allen/gopath/src/github.com/hyperledger/fabric-samples/balance-transfer/app.js:109 app.post('/users', async function(req, res) { ^^^^^ SyntaxError: missing ) after argument list at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3``` how to fix it?

bh4rtp (Sun, 12 Nov 2017 10:36:02 GMT):
hi, as for `balance-transfer` example, i try to run `./runApp.sh` following these steps: ```$ npm install $ su # ./runApp.sh``` An error about `async` occurs. ```/home/allen/gopath/src/github.com/hyperledger/fabric-samples/balance-transfer/app.js:109 app.post('/users', async function(req, res) { ^^^^^ SyntaxError: missing ) after argument list at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3``` how to fix it?

bh4rtp (Sun, 12 Nov 2017 10:36:52 GMT):
i am using node 6.9.5 and 8.9.1. the error occurs for both versions.

mastersingh24 (Sun, 12 Nov 2017 11:27:33 GMT):
@bh4rtp - Are you sure that after you run `su` that you are running Node v6.9.5 and/or Node v8.9.1? Any reason you are running `su`?

kedarr (Sun, 12 Nov 2017 11:36:58 GMT):
Has joined the channel.

bh4rtp (Sun, 12 Nov 2017 12:14:19 GMT):
@mastersingh24 yes. actually, v6.9.5 is running. `nvm use 8.9.1` does not work for `su`.

Derashe (Sun, 12 Nov 2017 13:02:49 GMT):
Has joined the channel.

mastersingh24 (Sun, 12 Nov 2017 13:05:47 GMT):
@bh4rtp - the master branch for fabric-samples requires Node v8.4.0 or higher

knagware9 (Sun, 12 Nov 2017 15:23:42 GMT):
@Yashwanthv21 ..use any SDK to be installed on client machine and then you can connect to your network

meridian (Sun, 12 Nov 2017 17:01:34 GMT):
has anyone thought of using WiredTiger instead of LevelDB

meridian (Sun, 12 Nov 2017 17:01:42 GMT):
or CouchDB

RezwanKabir (Sun, 12 Nov 2017 17:27:43 GMT):
just curious. I am using kafka orderer... In some example of docker-compose i have seen three orderer four kafka cluster and 3 zookeeper setup... Why we are using three orderer instead of one ...

jeffgarratt (Sun, 12 Nov 2017 21:06:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X4fWkmhxZdtjEBJtA) @RezwanKabir high availability

jeffgarratt (Sun, 12 Nov 2017 21:07:24 GMT):
and to some degree I believe it allows for greater scalability... but that would need to be confirmed

oleg_ (Mon, 13 Nov 2017 00:25:40 GMT):
Has joined the channel.

Banggijin (Mon, 13 Nov 2017 01:51:40 GMT):
Has joined the channel.

Banggijin (Mon, 13 Nov 2017 01:51:47 GMT):
hello

rojanjose (Mon, 13 Nov 2017 04:12:55 GMT):
Has joined the channel.

gut (Mon, 13 Nov 2017 07:27:20 GMT):
@RezwanKabir , @jeffgarratt An orderer is by definition who consent on the order of transactions included in the ledger. They provide trust, flexibilty and scalability to the network. If you centralize it you are centralizing trust, and consensus would be then a nonsense. By now, ordering service is just ensuring an ordered transaction ledger through a shared communication channel. But it is evolving to a full consensus system, where different consensus systems will be allowed. You can read more [here](https://jira.hyperledger.org/browse/FAB-37).

gut (Mon, 13 Nov 2017 07:27:20 GMT):
@RezwanKabir , @jeffgarratt An orderer is by definition who consent on the order of transactions included in the ledger. They provide trust, flexibilty and scalability to the network. If you centralize it you are centralizing trust, and consensus (among other Blockchain premises) would be then a nonsense. By now, ordering service is just ensuring an ordered transaction ledger through a shared communication channel. But it is evolving to a full consensus system, where different consensus protocols will be allowed. You can read more [here](https://jira.hyperledger.org/browse/FAB-37).

AkshayJindal (Mon, 13 Nov 2017 11:55:56 GMT):
Has joined the channel.

jeffgarratt (Mon, 13 Nov 2017 13:54:05 GMT):
@gut I was answering @RezwanKabir 's question precisely within the context it was posed. Your exposition does not directly address the question given the current state of fabric (i.e. no production BFT support, only crash fault tolerance).

vieiramanoel (Mon, 13 Nov 2017 13:56:59 GMT):
Has someone succeeded in connect a peer from another pc on network? I'm still on this...

yacovm (Mon, 13 Nov 2017 14:10:36 GMT):
yeah @vieiramanoel what is the issue?

yacovm (Mon, 13 Nov 2017 14:10:54 GMT):
https://github.com/yacovm/fabricDeployment shows a script that deploys fabric to multiple VMs

meridian (Mon, 13 Nov 2017 14:30:29 GMT):
@yacovm thanks for the link

yacovm (Mon, 13 Nov 2017 14:30:55 GMT):
my pleasure, avatar that resembles a pig...

meridian (Mon, 13 Nov 2017 14:31:09 GMT):
really? a pig!

yacovm (Mon, 13 Nov 2017 14:31:18 GMT):
what does your avatar mean?

yacovm (Mon, 13 Nov 2017 14:31:23 GMT):
to me it remind a pig :)

yacovm (Mon, 13 Nov 2017 14:31:23 GMT):
to me it reminds a pig :)

meridian (Mon, 13 Nov 2017 14:31:53 GMT):
your avatar reminds me of the SLACK logo, except if SLACK was a Alabama football fan

yacovm (Mon, 13 Nov 2017 14:32:04 GMT):
that is exactly what it is

yacovm (Mon, 13 Nov 2017 14:32:07 GMT):
I took the slack logo

yacovm (Mon, 13 Nov 2017 14:32:10 GMT):
and made it black and white

yacovm (Mon, 13 Nov 2017 14:32:17 GMT):
because previously we were using slack instead of rocket chat

meridian (Mon, 13 Nov 2017 14:32:26 GMT):

800px-Freebsd_logo.svg.png

meridian (Mon, 13 Nov 2017 14:32:43 GMT):
I am a HERETIC!

yacovm (Mon, 13 Nov 2017 14:32:52 GMT):
ah

yacovm (Mon, 13 Nov 2017 14:32:54 GMT):
I see

meridian (Mon, 13 Nov 2017 14:33:02 GMT):
considering hyperledger is a linux foundation project :O

TimWalton (Mon, 13 Nov 2017 15:23:35 GMT):
Has joined the channel.

TimWalton (Mon, 13 Nov 2017 15:24:34 GMT):
moving question from #fabric: is the proper way to flag for node chaincode -l node?

TimWalton (Mon, 13 Nov 2017 15:25:05 GMT):
i have always used go for chaincode, but wanted to try node.. it returns weird error during CC install if using flag -l node

TimWalton (Mon, 13 Nov 2017 15:26:14 GMT):
something like `unknown chaincode type node` (i can spin it up if the exact error is needed)

Vadim (Mon, 13 Nov 2017 15:31:31 GMT):
@TimWalton are you on master/v1.1-preview?

Vadim (Mon, 13 Nov 2017 15:31:31 GMT):
@TimWalton are you on master/v1.1-preview branch?

TimWalton (Mon, 13 Nov 2017 15:33:10 GMT):
Sorry, I didn't specify that, no.

TimWalton (Mon, 13 Nov 2017 15:33:17 GMT):
I am 1.0.1 images

TimWalton (Mon, 13 Nov 2017 15:33:23 GMT):
should i move up?

TimWalton (Mon, 13 Nov 2017 15:33:51 GMT):
and branch is also not 1.1-preview

Vadim (Mon, 13 Nov 2017 15:35:38 GMT):
nodejs chaincode is available on 1.1-preview

TimWalton (Mon, 13 Nov 2017 15:35:41 GMT):
ah

TimWalton (Mon, 13 Nov 2017 15:35:45 GMT):
haha i feel so dumb

TimWalton (Mon, 13 Nov 2017 15:36:29 GMT):
so dumb.. lol. thank you!

vieiramanoel (Mon, 13 Nov 2017 16:01:31 GMT):
@yacovm thnks, i'll try this, if I can't do it I tell here

jmcnevin (Mon, 13 Nov 2017 17:13:02 GMT):
Hi all.. I've managed to set up a 3-org fabric setup, but I'm noticing that my non-anchor peers in one org have logs full of "warn" messages about trying to gossip with non-anchor peers in other orgs, and I've disabled that ability... any idea why they might be trying to do that?

joaquimpedrooliveira (Mon, 13 Nov 2017 17:36:06 GMT):
Has joined the channel.

vieiramanoel (Mon, 13 Nov 2017 18:21:51 GMT):

Clipboard - November 13, 2017 4:21 PM

vieiramanoel (Mon, 13 Nov 2017 18:22:20 GMT):
@yacovm (I think that's not possible to mention inside file comment)

yacovm (Mon, 13 Nov 2017 18:36:48 GMT):
Dns issue

suchith.arodi (Mon, 13 Nov 2017 18:58:58 GMT):
Hi All, I am trying to modify the http://hyperledger-fabric.readthedocs.io/en/release/chaincode4ade.html sacc chaincode according to my needs (dev mode). I have modified the Init function to NOT include the transaction proposal arguments that stores the key value pair using the putState function. Instead, I have created another function called Initledger where I am doing the same thing (Similar to fabcar). I have a couple of questions: 1) Since I am not expecting any key value pair in the Init function, Is the -c Args command compulsory in the peer chaincode instantiate command? peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc 2) Since I am writing a new chaincode for a different app, do I need to change any system chaincode?. My app stores the key value pair similar to sacc or fabcar chaincode. -Thanks

suchith.arodi (Mon, 13 Nov 2017 18:58:58 GMT):
Hi All, I am trying to modify the http://hyperledger-fabric.readthedocs.io/en/release/chaincode4ade.html sacc chaincode according to my needs (dev mode). I have modified the Init function to NOT include the transaction proposal arguments that stores the key value pair using the putState function. Instead I have created another function called Initledger where I am doing the same thing (Similar to fabcar). I have couple of questions: 1) Since I am not expecting any key value pair in the Init function, Is the -c Args command compusary in the peer chaincode instantiate command? peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc 2) Since I am writing a new chaincode for a different app, do I need to change any system chaincode?. My app stores the key value pair similar to sacc or fabcar chaincode. -Thanks

suchith.arodi (Mon, 13 Nov 2017 19:14:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CfW373oxCtSLPjb5v)

suchith.arodi (Mon, 13 Nov 2017 19:16:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CfW373oxCtSLPjb5v) Also, the Args provided in the instantiate command is the first key value pair in the ledger? Will that be included in the genesis block?

rajasekharpippalla (Tue, 14 Nov 2017 05:42:21 GMT):
how we can implement privacy through channels?

rajasekharpippalla (Tue, 14 Nov 2017 05:53:42 GMT):
Oracle ---->>> verification module JPMorgan ---->>> verification module 1. Oracle as well as JPMorgan has done transactions with verfication module. 2. Now verification module can have information for both Oracle and JPMorgan. 3. Oracle should not have access for JPMorgan data and vice-versa. How can we implement this kind of requirement? Can we implement this by using channels and how we can implement if we have any chances?

Ryo (Tue, 14 Nov 2017 11:55:55 GMT):
hello all, i am trying to start the docker in devmode(as provided in fabric samples). When I am using the docker compose up command for the provided file(docker-compose-simple.yaml in fabric samples) it is giving the following error: cli | 2017-11-14 11:50:42.445 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer on 127.0.0.11:53: no such host"; Reconnecting to {peer:7051 } cli | 2017-11-14 11:50:43.511 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer on 127.0.0.11:53: no such host"; Reconnecting to {peer:7051 } cli | 2017-11-14 11:50:45.144 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer on 127.0.0.11:53: no such host"; Reconnecting to {peer:7051 } cli | Error: Error getting endorser client channel: error trying to connect to local peer: context deadline exceeded

Ryo (Tue, 14 Nov 2017 11:56:56 GMT):
any way to solve this?

AuHuR (Tue, 14 Nov 2017 12:59:26 GMT):
Has left the channel.

yacovm (Tue, 14 Nov 2017 14:32:49 GMT):
can you link here the docker compose file, @Ryo ?

greg2git (Tue, 14 Nov 2017 14:41:43 GMT):
Has joined the channel.

jmcnevin (Tue, 14 Nov 2017 15:30:51 GMT):
Should non-anchor peers be attempting to reach across org boundaries... and vice-versa, should anchor peers be attempting to gossip with non-anchors in other orgs?

jmcnevin (Tue, 14 Nov 2017 15:31:55 GMT):
Firewalling non-anchors to be non-accessible to other orgs is flooding my peer logs with warnings

yacovm (Tue, 14 Nov 2017 15:40:31 GMT):
of course they should

yacovm (Tue, 14 Nov 2017 15:40:35 GMT):
that's the idea of anchor peers ;)

yacovm (Tue, 14 Nov 2017 15:40:40 GMT):
so non anchor peers can reach them

jmcnevin (Tue, 14 Nov 2017 15:50:24 GMT):
i guess i've been unclear on that point.. I thought that anchor peers were the only ones allow to communicate across org boundaries

yacovm (Tue, 14 Nov 2017 15:50:30 GMT):
of course not

yacovm (Tue, 14 Nov 2017 15:50:35 GMT):
what actually determines

yacovm (Tue, 14 Nov 2017 15:50:39 GMT):
what is inter-organization

yacovm (Tue, 14 Nov 2017 15:50:45 GMT):
is the EXTERNAL_ENDPOINT configuration

yacovm (Tue, 14 Nov 2017 15:50:51 GMT):
if the peer has an external endpoint

yacovm (Tue, 14 Nov 2017 15:50:58 GMT):
it will communicate with peers with other orgs

yacovm (Tue, 14 Nov 2017 15:51:01 GMT):
if it doesn't have such

yacovm (Tue, 14 Nov 2017 15:51:08 GMT):
it will not communicate with other orgs

yacovm (Tue, 14 Nov 2017 15:51:15 GMT):
and the other orgs won't know about it

jmcnevin (Tue, 14 Nov 2017 15:52:28 GMT):
ahh ok, that's a piece of my config i need to change :)

SharedMocha (Tue, 14 Nov 2017 18:12:53 GMT):
Has joined the channel.

SharedMocha (Tue, 14 Nov 2017 18:32:21 GMT):
Hello All -Can someone pls help with how to setup an API server around nodejs SDK to handle HTTP requests from web browser ?

wordforthis (Tue, 14 Nov 2017 21:08:32 GMT):
Has joined the channel.

Cryptobuster (Tue, 14 Nov 2017 23:05:36 GMT):
Has joined the channel.

Marshalll (Wed, 15 Nov 2017 03:51:13 GMT):
Has left the channel.

Ryo (Wed, 15 Nov 2017 05:07:37 GMT):
@yavcom, it is the same as provided in fabric samples : https://github.com/hyperledger/fabric-samples/blob/release/chaincode-docker-devmode/docker-compose-simple.yaml . Still it didn't work

mghasletwala (Wed, 15 Nov 2017 13:22:05 GMT):
Does anyone know how we can persist kafka data and log4j logs outside docker container? As I understand as of now data is under /tmp/kafka and logs are under /opt/kafka. Should I just mount these volumes or it is also possible to change the path?

mghasletwala (Wed, 15 Nov 2017 13:22:05 GMT):
Does anyone know how we can persist kafka data and log4j logs outside docker container? As I understand as of now data is under /tmp/kafka-logs and logs are under /opt/kafka. Should I just mount these volumes or it is also possible to change the path?

vijay5378 (Wed, 15 Nov 2017 17:03:59 GMT):
Has joined the channel.

vijay5378 (Wed, 15 Nov 2017 17:04:10 GMT):
was going through byfn...is it possible to separate the particpating entities to different physical servers? For e.g orderer and peer1 in one server and peer2 on another server. Any pointers on how this can be acheieved? All the config files assume that both peers are on the same machine. Does any service need to be started on the second server?

yacovm (Wed, 15 Nov 2017 17:07:11 GMT):
yes there is

yacovm (Wed, 15 Nov 2017 17:07:20 GMT):
either run them on docker swarm or kubernetes

yacovm (Wed, 15 Nov 2017 17:07:23 GMT):
or deploy them on VMs

yacovm (Wed, 15 Nov 2017 17:07:27 GMT):
i.e with https://github.com/yacovm/fabricDeployment

yacovm (Wed, 15 Nov 2017 17:07:27 GMT):
i.e with stuff similar to https://github.com/yacovm/fabricDeployment

vijay5378 (Wed, 15 Nov 2017 17:09:43 GMT):
thanks let me check it out

wbhagan (Wed, 15 Nov 2017 23:37:58 GMT):
Has joined the channel.

ArnabChatterjee (Thu, 16 Nov 2017 02:25:05 GMT):
Hi people

JosephKovuri (Thu, 16 Nov 2017 03:36:04 GMT):
hi ,is there a way add / remove peers or orgs dynamically from a running fabric network ?

mghasletwala (Thu, 16 Nov 2017 05:06:04 GMT):
I think like...stop the peer, invalidate its MSP and it is out of network. To add one, u need MSP, then create peer, join channel, deploy chaincode. Done

ArnabChatterjee (Thu, 16 Nov 2017 06:07:08 GMT):
I am trying to invoke a transaction (with 2 orgs having 2 peers each) with an endorsement policy that says that both orgs (member) must sign it. But when the transaction succeeds, I try to get the transaction json using (getTransactionById). When I see the json response, I want to see that both org has endorsed the transaction at the time of invocation. But I see only one endorsement in the JSON. This endorsement is of the organisation who invoked the transaction (example Org1MSP)

jojialex2 (Thu, 16 Nov 2017 10:10:11 GMT):
I am getting Error while peer chaincode install : Error getting endorser client chaincode: error trying to connect to local peer: context deadline exceeded

jojialex2 (Thu, 16 Nov 2017 10:10:28 GMT):
trying from CLI

jojialex2 (Thu, 16 Nov 2017 10:11:04 GMT):
Any one know why it's giving the error

C.Jason.Phelps (Thu, 16 Nov 2017 16:24:38 GMT):
Has joined the channel.

vieiramanoel (Thu, 16 Nov 2017 18:49:58 GMT):
@yacovm i've made some progress with your script, thanks a lot, but at creating channels, i get this error message:

vieiramanoel (Thu, 16 Nov 2017 18:50:04 GMT):

Clipboard - November 16, 2017 4:49 PM

yacovm (Thu, 16 Nov 2017 18:51:06 GMT):
What do the peer and orserer logs say

yacovm (Thu, 16 Nov 2017 18:51:12 GMT):
*orderer

vieiramanoel (Thu, 16 Nov 2017 18:52:26 GMT):
And i don't know from where it comes from

yacovm (Thu, 16 Nov 2017 18:53:53 GMT):
Again- what do the orderer/peers logs say

yacovm (Thu, 16 Nov 2017 18:54:01 GMT):
?

vieiramanoel (Thu, 16 Nov 2017 18:55:12 GMT):
where do that logs are saved?

vieiramanoel (Thu, 16 Nov 2017 18:55:12 GMT):
where do logs are saved?

yacovm (Thu, 16 Nov 2017 19:07:48 GMT):
depends

yacovm (Thu, 16 Nov 2017 19:07:52 GMT):
if they run in docker

yacovm (Thu, 16 Nov 2017 19:08:04 GMT):
so they are saved in the docker container place

yacovm (Thu, 16 Nov 2017 19:08:06 GMT):
somewhere under /var

yacovm (Thu, 16 Nov 2017 19:08:17 GMT):
else if it runs as a binary it outputs where you redirected it to

yacovm (Thu, 16 Nov 2017 19:08:24 GMT):
or to the standard output stream

vieiramanoel (Thu, 16 Nov 2017 19:10:30 GMT):
ok, I think that your script runs the binary

vieiramanoel (Thu, 16 Nov 2017 19:10:45 GMT):
all output that I have is this

vieiramanoel (Thu, 16 Nov 2017 19:11:05 GMT):
(the complete script output goes above)

vieiramanoel (Thu, 16 Nov 2017 19:11:05 GMT):
(the complete script output goes bellow)

vieiramanoel (Thu, 16 Nov 2017 19:11:05 GMT):
(the complete script's output goes bellow)

vieiramanoel (Thu, 16 Nov 2017 19:11:20 GMT):

Clipboard - November 16, 2017 5:11 PM

yacovm (Thu, 16 Nov 2017 20:38:49 GMT):
Oh right @vieiramanoel

yacovm (Thu, 16 Nov 2017 20:39:28 GMT):
Sorry, i answer so many people during the day/night so i sometimes forget the context :dizzy_face:

yacovm (Thu, 16 Nov 2017 20:39:50 GMT):
So the output is in hostname.out

yacovm (Thu, 16 Nov 2017 20:40:19 GMT):
In the $GOPATH/src/github.com/hyperledger/fabric

yacovm (Thu, 16 Nov 2017 20:40:39 GMT):
Where hostname is the host name of the peer

yacovm (Thu, 16 Nov 2017 20:41:10 GMT):
So plz give me the output

vieiramanoel (Thu, 16 Nov 2017 20:46:36 GMT):
```2017-11-16 18:45:43.016 -02 [orderer/main] main -> INFO 001 Starting orderer: Version: 1.0.5-snapshot-c7c8827 Go version: go1.7.3 OS/Arch: linux/amd64 2017-11-16 18:45:43.027 -02 [orderer/main] initializeSecureServerConfig -> INFO 002 Starting orderer with TLS enabled 2017-11-16 18:45:43.123 -02 [orderer/main] initializeLocalMsp -> CRIT 003 Failed to initialize local MSP: The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.hrl.ibm.il") ```

vieiramanoel (Thu, 16 Nov 2017 20:46:36 GMT):
@yacovm thnks! this is my output ```2017-11-16 18:45:43.016 -02 [orderer/main] main -> INFO 001 Starting orderer: Version: 1.0.5-snapshot-c7c8827 Go version: go1.7.3 OS/Arch: linux/amd64 2017-11-16 18:45:43.027 -02 [orderer/main] initializeSecureServerConfig -> INFO 002 Starting orderer with TLS enabled 2017-11-16 18:45:43.123 -02 [orderer/main] initializeLocalMsp -> CRIT 003 Failed to initialize local MSP: The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.hrl.ibm.il") ```

yacovm (Thu, 16 Nov 2017 20:56:11 GMT):
hmmmm do you know how to read certificate PEM content?

yacovm (Thu, 16 Nov 2017 20:56:24 GMT):
if so - do it on the sampleconfig/msp folder

yacovm (Thu, 16 Nov 2017 20:56:32 GMT):
to the ca certificate and signcert

vieiramanoel (Thu, 16 Nov 2017 21:24:54 GMT):

Clipboard - November 16, 2017 7:24 PM

vieiramanoel (Thu, 16 Nov 2017 21:25:03 GMT):
@yacovm here the PEM

yacovm (Thu, 16 Nov 2017 21:25:37 GMT):
and the other one?

vieiramanoel (Thu, 16 Nov 2017 21:25:47 GMT):
which one?

yacovm (Thu, 16 Nov 2017 21:25:58 GMT):
signcerts/something.pem

vieiramanoel (Thu, 16 Nov 2017 21:27:06 GMT):
here

vieiramanoel (Thu, 16 Nov 2017 21:27:09 GMT):

Clipboard - November 16, 2017 7:27 PM

yacovm (Thu, 16 Nov 2017 21:32:38 GMT):
well that's your problem

yacovm (Thu, 16 Nov 2017 21:33:15 GMT):
what is @localhost.hrl.ibm.il ?

yacovm (Thu, 16 Nov 2017 21:33:31 GMT):
something is messed up in the config... my guess is that the config has .localhost or something

yacovm (Thu, 16 Nov 2017 21:33:37 GMT):
get rid of the .localhost somehow

yacovm (Thu, 16 Nov 2017 21:33:40 GMT):
and it should work

vieiramanoel (Thu, 16 Nov 2017 21:35:02 GMT):
it must be just vieira.localhost.hrl.ibm.il?

vieiramanoel (Thu, 16 Nov 2017 21:35:02 GMT):
it must be just vieira.hrl.ibm.il?

vieiramanoel (Thu, 16 Nov 2017 21:35:02 GMT):
Must it be just vieira.hrl.ibm.il?

vieiramanoel (Thu, 16 Nov 2017 21:35:02 GMT):
It be just vieira.hrl.ibm.il?

vieiramanoel (Thu, 16 Nov 2017 21:35:02 GMT):
It must be just vieira.hrl.ibm.il?

yacovm (Thu, 16 Nov 2017 21:35:37 GMT):
just hrl.ibm.il

vieiramanoel (Thu, 16 Nov 2017 21:39:42 GMT):
hmm ok

vieiramanoel (Thu, 16 Nov 2017 21:39:43 GMT):
thnks

JayJong (Fri, 17 Nov 2017 05:44:53 GMT):
Hi all, I have some questions regarding encryption and stress testing. I wish to encrypt transaction data with multiple client's public keys (multisig) and store the ciphertext into the fabric ledger. Any client is able to decrypt it using their private key. From my understanding, there is no way to use the keys generated by the fabric-ca so that's why I'm thinking of generating additional public/private keys for encryption. Recently, I found out about fabric's encryption chaincode (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example) So my question is 1. should I generate the additional keys outside of fabric or can i use the keys in fabric? 2. Can the encryption chaincode use the keys generated by the fabric-ca?

JayJong (Fri, 17 Nov 2017 05:45:44 GMT):
As for stress testing of fabric, how do i go about doing it?

flash139 (Fri, 17 Nov 2017 06:46:51 GMT):
Has joined the channel.

doraemon7 (Fri, 17 Nov 2017 06:49:46 GMT):
Has joined the channel.

Jonny (Fri, 17 Nov 2017 10:55:12 GMT):
hi, how can I migrate data to another network/server?

Katiyman (Fri, 17 Nov 2017 11:07:16 GMT):
Hello I need to build all the docker images again using RHEL can somebody kindly point me to some good documentations....Also i have gone through https://github.com/linux-on-ibm-z/docs/wiki/Building-Hyperledger but there i am facing some issue.. also it talks about rocksdb which i am not able to understand why

aatkddny (Fri, 17 Nov 2017 13:40:39 GMT):
So I have a consortium fabric running locally on my mac. Four orgs, each with their own CA and certs, two peers each. It's all fine. I have a set of scripts to run do do all the heavy lifting and eliminate typos. I tried to move them to a linux server and it fails miserably. It'll create the channels but won't allow me to set anchor peers. I'm using 1.1.0-preview Error in the CLI is: `BAD_REQUEST -- Consortium config value missing` The errors from fabric are manifold, but they all boil down to this: `2017-11-17 13:32:17.094 UTC [cauthdsl] deduplicate -> ERRO 520 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.firstorg.com")) for identity 0a0d4d656469616f6365616e4d5350128e062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943457a434341626d6741774942416749514f2f4c7051516e677555763169774d74365945654d44414b42676771686b6a4f50515144416a42764d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a45584d4255474131554543684d4f6257566b61574676593256686269356a62323078476a415942674e5642414d5445574e684c6d316c0a5a476c6862324e6c59573475593239744d423458445445334d5445784e7a457a4d6a4d304e316f58445449334d5445784e54457a4d6a4d304e316f775754454c0a4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e68626942470a636d467559326c7a593238784854416242674e5642414d544648426c5a5849784c6d316c5a476c6862324e6c59573475593239744d466b77457759484b6f5a490a7a6a3043415159494b6f5a497a6a30444151634451674145626c4b46577653463966736a5548796662436659597a656159612f4c432b366c77564d395a62456e0a426770533972447538366272416754565474416458524b57497351594d794d516d2b375a74444a4674524241414b4e4e4d45737744675944565230504151482f0a42415144416765414d41774741315564457745422f7751434d4141774b7759445652306a42435177496f41675a5670637a756c557173513954357059394f41680a4b444c4a30795445574676622f5a37626b4e695431576777436759494b6f5a497a6a30454177494453414177525149684150524c4d4232465973755079684e7a0a394758424a736e5a612b76765a327143466251534649354c436c4532416941304c6b5558616d6746383833417a6b54696a4b6f47646b647a77757331644571500a6f7644457a456d7055673d3d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a` Why would it work on one machine but not the other? I'm really confused here.

MuhammadSalah (Fri, 17 Nov 2017 15:25:37 GMT):
I have a simple question, is it possible to have more than an orderer container? In other words, in terms of higher scaling how to order those transaction blocks? Any explanations are welcome, I am new to this, but that's just an important question that popped up on my mind.

ArvsIndrarys (Fri, 17 Nov 2017 16:50:24 GMT):
Hi all ! By default, does a client setup a tcp connection with a peer via https? `netstat -t` on my client gave me that result, but I doubt that is from the hyperledger implementation...

mogamboizer (Fri, 17 Nov 2017 17:44:00 GMT):
Does fabric continue to use leveldb or local file system storage in case couchdb is specified or all data is stored in couchdb?

mikykey (Fri, 17 Nov 2017 18:16:24 GMT):
Hello to everybody! I have a problem, I need to feed the blockchain reading from a huge file. How can I read a file to do it? I'm not able to find the current working directory. I creted a file but I'm not able to find it. The CWD command returns simply /. Can you help me? thanks. I'm using docker for windows.

joshhw (Fri, 17 Nov 2017 21:23:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gzfvHmcbbGw3Gqugc) @MuhammadSalah yes, if you look at some of the code in the examples there shows multiple orderers for a network. basically each org would have its own orderer

joshhw (Fri, 17 Nov 2017 21:30:02 GMT):
Has anyone run into an issue when instantiating chaincode on custom docker-compose yamls? here is the error that keeps happening:

joshhw (Fri, 17 Nov 2017 21:30:43 GMT):
I'm using the first-network is a starting point and modifiying as I go along, I've gotten everything working to the point of installing chaincode on each peer from the cli

joshhw (Fri, 17 Nov 2017 21:31:18 GMT):
Now, when I try to instantiate the chaincode, I the chaincode container scales up and exits abruptly.

joshhw (Fri, 17 Nov 2017 21:31:23 GMT):
here is the error that is shown:

joshhw (Fri, 17 Nov 2017 21:33:51 GMT):
``` 2017-11-17 21:32:09.931 UTC [shim] userChaincodeStreamGetter -> ERRO 001 x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.filler.example.com") error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:109 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:148 main.main /chaincode/input/src/github.com/hyperledger/fabric/peer/chaincode/chaincode_example02/chaincode_example02.go:195 runtime.main /opt/go/src/runtime/proc.go:185 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2337 Error starting Simple chaincode: error trying to connect to local peer: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.filler.example.com")LA ```

joshhw (Fri, 17 Nov 2017 21:34:41 GMT):
this seems to be a issue with certs, but I can't understand why it would be occurring

dave.enyeart (Sat, 18 Nov 2017 05:02:38 GMT):
@mogamboizer To understand the ledger components please read: https://hyperledger-fabric.readthedocs.io/en/release/ledger.html

dave.enyeart (Sat, 18 Nov 2017 05:03:47 GMT):
@JayJong I'd recommend posting crypto questions to #fabric-crypto

risabhsharma71 (Sat, 18 Nov 2017 09:39:29 GMT):
how to set up production env for fabric projects?

risabhsharma71 (Sat, 18 Nov 2017 09:39:58 GMT):
i am done with development but what to know how should i move it to production

MuhammadSalah (Sat, 18 Nov 2017 13:57:24 GMT):
@joshhw Thanks, for clarifying.

lkolisko (Sun, 19 Nov 2017 11:24:11 GMT):
Has joined the channel.

JayJong (Sun, 19 Nov 2017 15:33:06 GMT):
@dave.enyeart ok thanks!

philviana (Sun, 19 Nov 2017 19:23:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eXQEHDTTcFQybR7n5) @risabhsharma71 When you say "set up production env" do you mean running the fabric without Docker? With the CLI installed + the documentation you should be able to extend the examples.

Katiyman (Mon, 20 Nov 2017 06:00:57 GMT):
Hello All One ques, suppose there are 'n' peer nodes in hyperledger and one of the peer is compromised and thus the state of that peer is not consistent with other peers, then will HLF automatically restore its state to that of the state of other peer or will it remain compromised and has to be taken care outside of the HLF..TIA.

gentios (Mon, 20 Nov 2017 10:50:54 GMT):
Hi All, does anyone have any resource how to deploy fabric with kafka to kubernetes, but not with cello framework since that is still in incubator, and it's not recommended by the community

MShakeri (Mon, 20 Nov 2017 11:05:08 GMT):
Has left the channel.

miguelcalero (Mon, 20 Nov 2017 12:28:35 GMT):
Hi, everyone! I'm planning to develop a Fabric blockchain that needs to be offline first... ¿is there any way to manage offline first endorsing peers? ¿Could I make a mobile endorsing peer?

vijay5378 (Mon, 20 Nov 2017 17:35:39 GMT):
Hi i am trying to have a peer join a channel. Getting an error: "grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:7051: getsockopt: connection refused" - This is because of the address parameter in core.yaml. Any pointers on how to resolve this?

MohammadObaid (Mon, 20 Nov 2017 18:27:32 GMT):
Can we change endorsment policy after chaincode instantiation and invoke?

wordforthis (Mon, 20 Nov 2017 21:29:28 GMT):
I want to add a new organization to a running Hyperledger Fabric. My understanding is that I need to get the system channel, add a new organization to it, compute the difference, wrap it in an envelope, and submit the resulting config update transaction to the orderer (plus a bunch of proto -> json -> proto conversions). I'm getting stuck on the first step :) How do I get the system channel? I'm using the 1.0 sample first-network, which creates a "testchainid" system channel and a "mychannel" channel. Looking at http://hyperledger-fabric.readthedocs.io/en/release/configtxlator.html, I first tried (in the "cli" container): peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid root@9917244fa7c0:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid 2017-11-20 21:13:57.420 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-11-20 21:13:57.420 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-11-20 21:13:57.421 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:7050: getsockopt: connection refused"; Reconnecting to {127.0.0.1:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Then I tried: root@9917244fa7c0:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel fetch config config_block.pb -o orderer.example.com:7050 -c testchainid --tls --cafile ./crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2017-11-20 21:14:58.468 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-11-20 21:14:58.468 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-11-20 21:14:58.472 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2017-11-20 21:14:58.472 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-11-20 21:14:58.473 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-11-20 21:14:58.473 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2017-11-20 21:14:58.473 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2017-11-20 21:14:58.473 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AC5060A1708021A0608D28BCDD00522...84B5F22FBE6E12080A020A0012020A00 2017-11-20 21:14:58.474 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 6601675FBBD468D699C9D99C9508A93DA21B7DC8B05F0BB208E1C9E922CB4BF0 2017-11-20 21:14:58.476 UTC [channelCmd] readBlock -> DEBU 00a Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} However if I try to do that last one for the "mychannel" channel, it works. And if I try a nonsense channel, it returns "&{NOT_FOUND}" instead of "&{FORBIDDEN}". So I feel like I'm close. Do I have to update a permission somewhere? Thanks, Steve

lucasdf (Mon, 20 Nov 2017 22:04:40 GMT):
Has joined the channel.

wordforthis (Mon, 20 Nov 2017 22:41:33 GMT):
To answer my own question about getting the system channel, I modified configtx.yaml to include a "- *Org1" line under Profiles/TwoOrgsOrdererGenesis/Orderer/Organizations, and now I'm able to get the system channel (with the second command). Two days struggling with it, then I post a question and figure it out myself in an hour. I guess that's usually how it goes...

philviana (Tue, 21 Nov 2017 02:26:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kZ8mR2J7QWeoho7dg) @MohammadObaid Maybe this will help: considering a channel can be reconfigured after instantiation (for example using configtxlator) I think you could recreate the genesis block, change the endorsement policy and then submit the new config. See here: http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html

philviana (Tue, 21 Nov 2017 02:27:18 GMT):
I haven't tried this yet, so it's just a guess based on what I read. If you do try this out please let me know if it worked :-D

philviana (Tue, 21 Nov 2017 02:35:28 GMT):
@wordforthis Glad you got it figured out. Not sure if this is what you followed, but @nickgaski made a video about that: https://www.youtube.com/watch?v=DKuGU5CYV_E&t=3s

DeepakMule (Tue, 21 Nov 2017 05:20:13 GMT):
in sample core.yaml file there are few configurations related to peer gossip peer.gossip.maxBlockCountToStore: 100 peer.gossip.maxPropagationBurstLatency: 10ms peer.gossip.maxPropagationBurstSize: 10 peer.gossip.propagateIterations: 1 peer.gossip.propagatePeerNum: 3 peer.gossip.pullInterval: 4s peer.gossip.pullPeerNum: 3 peer.gossip.requestStateInfoInterval: 4s As per my understanding blocks get committed at peer after adding it to payloads. It get committed at peer from deliveryPayload method. So, what is purpose of above configurations set for gissip ?

vijay5378 (Tue, 21 Nov 2017 09:15:18 GMT):
im getting an error: Bad channel id: channel ID 'myChannel' contains illegal characters - I havent created channel name with underscores. Any idea why?

Vadim (Tue, 21 Nov 2017 09:16:30 GMT):
try all lower case

vijay5378 (Tue, 21 Nov 2017 09:24:31 GMT):
changed it to all lower with numbers. Works fine. Is this a bug?

Vadim (Tue, 21 Nov 2017 09:29:58 GMT):
no, it's not allowed to have capital letters in channel name

vijay5378 (Tue, 21 Nov 2017 09:39:48 GMT):
oh ok thanks

vijay5378 (Tue, 21 Nov 2017 10:08:42 GMT):
while trying to have the peer join the channel, i am getting an error message: Error: Error getting endorser client channel: error trying to connect to local peer: context deadline exceeded" I am not using docker here.

MuhammadSalah (Tue, 21 Nov 2017 10:51:23 GMT):
Hello guys, a quick question. How are users managed? Are users associated with Peers or Organizations as a whole?

Vadim (Tue, 21 Nov 2017 11:02:31 GMT):
@MuhammadSalah user is associated with an org

MuhammadSalah (Tue, 21 Nov 2017 11:32:30 GMT):
So users act on behalf of an organization? @Vadim

MuhammadSalah (Tue, 21 Nov 2017 11:33:02 GMT):
If there is any part of documentation that controls the user access, and such configurations, can you also please provide me?

Vadim (Tue, 21 Nov 2017 11:42:27 GMT):
@MuhammadSalah user access to what exactly?

MuhammadSalah (Tue, 21 Nov 2017 12:00:21 GMT):
On the ledger, if the user queries something from the ledger or invokes a chaincode using his own identity and certs? How to control his access?

MuhammadSalah (Tue, 21 Nov 2017 12:00:42 GMT):
I know, it looks like a noobish question, but this part I am trying to figure out.

Vadim (Tue, 21 Nov 2017 12:01:14 GMT):
@MuhammadSalah https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid it's on 1.1-preview

MuhammadSalah (Tue, 21 Nov 2017 13:02:51 GMT):
@Vadim Thank you very much indeed.

vijay5378 (Tue, 21 Nov 2017 13:25:37 GMT):
When I try to join a channel , i am getting the following error: Error: Error getting endorser client channel: error trying to connect to local peer: context deadline exceeded - Any tips on what the issue could be?

vijay5378 (Tue, 21 Nov 2017 13:25:52 GMT):
I am not using dockers

Vadim (Tue, 21 Nov 2017 13:26:43 GMT):
@vijay5378 seems like it cannot reach your peer, is it running?

vijay5378 (Tue, 21 Nov 2017 13:34:48 GMT):
@Vadim the peer has started. Let me cross check if i am able to reach the port in other ways to rule out other issues

vijay5378 (Tue, 21 Nov 2017 13:59:41 GMT):
@Vadim thanks for the pointer - the port was blocked due to a security list.

vijay5378 (Tue, 21 Nov 2017 13:59:41 GMT):
Lets say that I have a peer and orderer in machine a. I create a channel tx using configtxgen. I create the channel using the peer locally and also join the channel. Now, if I need to setup another peer in machine b, do I need to physically copy the channel transaction that I created?If yes, cant this be a potential security threat?

vijay5378 (Tue, 21 Nov 2017 13:59:41 GMT):
Lets say that I have a peer and orderer in machine a. I create a channel tx using configtxgen. I create the channel using the peer locally and also join the channel. Now, if I need to setup another peer in machine b, do I need to physically copy the channel transaction that I created?If yes, cant this be a potential security threat?

joshhw (Tue, 21 Nov 2017 14:01:55 GMT):
Has anyone had issues generating certs within a mac os?

joshhw (Tue, 21 Nov 2017 14:02:17 GMT):
I've come to the conclusion that I think cryptogen tool doesn't properly work on the mac

joshhw (Tue, 21 Nov 2017 14:02:39 GMT):
I tried running a fresh install of byfn and generating the certs and it hangs on instantiation.

Vadim (Tue, 21 Nov 2017 14:12:09 GMT):
@joshhw works well for me, I'm also on Mac

joshhw (Tue, 21 Nov 2017 14:12:36 GMT):
@Vadim what os are you running?

Vadim (Tue, 21 Nov 2017 14:12:54 GMT):
10.12.6

Vadim (Tue, 21 Nov 2017 14:13:28 GMT):
but why do you think it's cryptogen if it hangs on instantiation?

joshhw (Tue, 21 Nov 2017 14:15:41 GMT):
@Vadim when I ran the byfn without generatign the certs it would instantiate fine

joshhw (Tue, 21 Nov 2017 14:16:00 GMT):
@Vadim I've modeled a custom build off of byfn and kept getting hangs on instantiation

Vadim (Tue, 21 Nov 2017 14:16:09 GMT):
any errors?

joshhw (Tue, 21 Nov 2017 14:16:12 GMT):
@Vadim sometimes it would go through and other times it wouldnt

joshhw (Tue, 21 Nov 2017 14:16:14 GMT):
yest

joshhw (Tue, 21 Nov 2017 14:16:41 GMT):
~~~ 2017-11-21 14:14:41.695 UTC [shim] userChaincodeStreamGetter -> ERRO 001 x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org2.example.com") error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:109 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:148 main.main /chaincode/input/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go:195 runtime.main /opt/go/src/runtime/proc.go:185 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2337 Error starting Simple chaincode: error trying to connect to local peer: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org2.exampLAMLAMU02RJ0P8G8WPLAMU02RJ0P8G8WP:~ jdeLAMU02RJ0P8GLAMU02RJ0P8G8WP:~ LAMU02RJ0P8G8WP:~ LAMU02RJ0P8G8WPLAMU02LAMU02RJ0LAMU02LAMLAMLAMU02LAMU02RJ0P8GLAMU02RJ0P8GLAMU02RJ0P8G8WPLAMU02RJ0P8GLAMU02RJ0P8GLAMU02LAMU02RJ0LAMLAMLAMLAMU02RJ0LAMU02LAMU02LAMU02RJ0LAMU02LAMU02LAMU02LAMU02LAMLAMLAMLAMLAMLAMLAMU02LAMU02RJ0LAMU02LAMU02LAMU02LAMU02LAMLAMU02LAMLAMLAMLAMLAMLAMLAMLAMLAMU02RJ0P8G8WP:~ jdecost1$ ~~~

Vadim (Tue, 21 Nov 2017 14:17:31 GMT):
which errors?

joshhw (Tue, 21 Nov 2017 14:23:12 GMT):
``` 2017-11-21 14:22:19.037 UTC [shim] userChaincodeStreamGetter -> ERRO 001 x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org2.example.com") error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:109 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:148 main.main /chaincode/input/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go:195 runtime.main /opt/go/src/runtime/proc.go:185 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2337 Error starting Simple chaincode: error trying to connect to local peer: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org2.example.com")

joshhw (Tue, 21 Nov 2017 14:23:38 GMT):
that is the error within the instantiate chaincode container

joshhw (Tue, 21 Nov 2017 14:23:51 GMT):
it exits prematurely

joshhw (Tue, 21 Nov 2017 14:24:12 GMT):
all I'm doing is running the byfn generate command and then the byfn up command

joshhw (Tue, 21 Nov 2017 14:25:44 GMT):
could there be a package that is misconfigured on my mac that would cause these errors?

joshhw (Tue, 21 Nov 2017 14:31:22 GMT):
@Vadim otherwise I can't figure out what is going on.

Vadim (Tue, 21 Nov 2017 14:34:31 GMT):
@joshhw no, it's something in your setup

joshhw (Tue, 21 Nov 2017 14:34:54 GMT):
@Vadim I'm using there setup though

Vadim (Tue, 21 Nov 2017 14:34:59 GMT):
make sure you clean all containers and old artifacts before you generate new ones and start the network

joshhw (Tue, 21 Nov 2017 14:35:09 GMT):
@Vadim does that include images?

Vadim (Tue, 21 Nov 2017 14:35:23 GMT):
no

joshhw (Tue, 21 Nov 2017 14:43:37 GMT):
@Vadim I think I'm not removing something that the byfn down command is, once I ran that command it connected correctly

joshhw (Tue, 21 Nov 2017 14:43:47 GMT):
@Vadim thank you for reminding about that command

vijay5378 (Tue, 21 Nov 2017 15:04:22 GMT):
Lets say that I have a peer and orderer in machine a. I create a channel tx using configtxgen. I create the channel using the peer locally and also join the channel. Now, if I need to setup another peer in machine b, do I need to physically copy the channel transaction that I created?If yes, cant this be a potential security threat?

MuhammadSalah (Tue, 21 Nov 2017 16:46:57 GMT):
Hello, I have a little problem if anyone can help. I have made a network setup that's very similar to the first network. How can I make sure that my configuration is running correctly?

MuhammadSalah (Tue, 21 Nov 2017 16:47:37 GMT):
I have tried to use the CLI and instantiate one of the sample chaincode, but I can't communicate with the network! But I still get the whole network up and running, and it seems not to be reporting any bugs.

MuhammadSalah (Tue, 21 Nov 2017 16:58:42 GMT):

Clipboard - November 21, 2017 6:58 PM

MohammadObaid (Tue, 21 Nov 2017 17:08:48 GMT):
What will be the consequences if I dont define anchors peers? Wont I able to invke transactions?

joshhw (Tue, 21 Nov 2017 17:46:40 GMT):
@MuhammadSalah can you post what your compose files look like? this includes the base folder as well

joshhw (Tue, 21 Nov 2017 17:47:01 GMT):
this error could be due to a docker networking misconfig

philviana (Tue, 21 Nov 2017 17:47:25 GMT):
Is the orderer container up and running?

joshhw (Tue, 21 Nov 2017 17:47:37 GMT):
do a "docker ps"

joshhw (Tue, 21 Nov 2017 17:47:46 GMT):
and screen shot what you see

joshhw (Tue, 21 Nov 2017 17:47:55 GMT):
your container might've exited prematurely

MohammadObaid (Tue, 21 Nov 2017 17:48:07 GMT):
Hey when I run command to upgrade chaincode ```peer chaincode upgrade -C firstchannel -n firstchaincode -v 2.0 -c '{"Args":["init","Obaid", "Software", "Ned/1186/13-14", "3.5" , "Ned "]}' -P "OR ('orga.member','orgb.member')"``` from peer shell it return with an error ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) ```

MohammadObaid (Tue, 21 Nov 2017 17:48:07 GMT):
Hey when I run command to upgrade chaincode ```peer chaincode upgrade -C firstchannel -n firstchaincode -v 2.0 -c '{"Args":["init","Obaid", "Software", "Ned/1186/13-14", "3.5" , "Ned "]}' -P "OR ('orga.member','orgb.member')"``` from peer shell it return with an error ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) ```

MohammadObaid (Tue, 21 Nov 2017 17:48:07 GMT):
Hey when I run command to upgrade chaincode `peer chaincode upgrade -C firstchannel -n firstchaincode -v 2.0 -c '{"Args":["init","Obaid", "Software", "Ned/1186/13-14", "3.5" , "Ned "]}' -P "OR ('orga.member','orgb.member')"` from peer shell it return with an error ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) ```

MohammadObaid (Tue, 21 Nov 2017 17:48:07 GMT):
Hey @dave.enyeart when I run command to upgrade chaincode `peer chaincode upgrade -C firstchannel -n firstchaincode -v 2.0 -c '{"Args":["init","Obaid", "Software", "Ned/1186/13-14", "3.5" , "Ned "]}' -P "OR ('orga.member','orgb.member')"` from peer shell it return with an error ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode instantiation policy violated(Failed to authenticate policy)) . I couldnt see anything on console except this error . Is there anyway I can debug this or am I missing something? ```

MuhammadSalah (Tue, 21 Nov 2017 17:48:09 GMT):
I am pretty siding with that it's a docker networking thing

MuhammadSalah (Tue, 21 Nov 2017 17:49:01 GMT):

Clipboard - November 21, 2017 7:48 PM

MuhammadSalah (Tue, 21 Nov 2017 17:49:13 GMT):
@joshhw take a look at this.

joshhw (Tue, 21 Nov 2017 17:50:09 GMT):
@MuhammadSalah are you using the e2e compose file?

MuhammadSalah (Tue, 21 Nov 2017 17:50:44 GMT):
No, I am using a custom compose file, that I wrote myself guided with BYFN compose files.

joshhw (Tue, 21 Nov 2017 17:50:56 GMT):
did you rewrite the configtx file?

MuhammadSalah (Tue, 21 Nov 2017 17:51:06 GMT):

Clipboard - November 21, 2017 7:50 PM

MuhammadSalah (Tue, 21 Nov 2017 17:51:16 GMT):
Yes, everything configtx and crypto-config

joshhw (Tue, 21 Nov 2017 17:51:48 GMT):
@MuhammadSalah your best bet is to compare what you did to what is being done with the compose files within first-network

joshhw (Tue, 21 Nov 2017 17:52:02 GMT):
and take the "build first network" instructions and go line by line

joshhw (Tue, 21 Nov 2017 17:52:08 GMT):
make sure you pass each part

MuhammadSalah (Tue, 21 Nov 2017 17:52:18 GMT):
That's what I am already doing. And I am stuck at the creating the channel part

joshhw (Tue, 21 Nov 2017 17:52:20 GMT):
as in follow along and do the commands manually

joshhw (Tue, 21 Nov 2017 17:52:30 GMT):
do you have the .env file?

joshhw (Tue, 21 Nov 2017 17:52:48 GMT):
when you start your docker-compose does it say "compose_project missing"

MuhammadSalah (Tue, 21 Nov 2017 17:53:09 GMT):
No, I assign that variable with a name

joshhw (Tue, 21 Nov 2017 17:53:16 GMT):
this stuff gets tough to debug if I don't know what part you've made it to

MuhammadSalah (Tue, 21 Nov 2017 17:53:22 GMT):
because I know the network goes with that name_network

MuhammadSalah (Tue, 21 Nov 2017 17:53:34 GMT):
or at least that is my guess

joshhw (Tue, 21 Nov 2017 17:53:38 GMT):
well byfn if you left it there

joshhw (Tue, 21 Nov 2017 17:53:54 GMT):
where are you running commands from?

MuhammadSalah (Tue, 21 Nov 2017 17:53:58 GMT):
CLI

joshhw (Tue, 21 Nov 2017 17:54:08 GMT):
also know that after each mistake you'll want to remove all containers and images

MuhammadSalah (Tue, 21 Nov 2017 17:54:29 GMT):
I remove the containers completely

joshhw (Tue, 21 Nov 2017 17:54:30 GMT):
I had a bug that was stuck because of images/containers being left over

joshhw (Tue, 21 Nov 2017 17:54:41 GMT):
use the networkdown function from byfn

MuhammadSalah (Tue, 21 Nov 2017 17:54:41 GMT):
and I stick to version 1.0.3 fabric images

MuhammadSalah (Tue, 21 Nov 2017 17:54:44 GMT):
as a tag

joshhw (Tue, 21 Nov 2017 17:54:53 GMT):
the tag shouldnt matter

joshhw (Tue, 21 Nov 2017 17:55:01 GMT):
do "docker network ls"

MuhammadSalah (Tue, 21 Nov 2017 17:55:06 GMT):
okay

joshhw (Tue, 21 Nov 2017 17:55:12 GMT):
tell me what you see

MuhammadSalah (Tue, 21 Nov 2017 17:55:53 GMT):

Clipboard - November 21, 2017 7:55 PM

joshhw (Tue, 21 Nov 2017 17:56:18 GMT):
it looks like you've tried to build several versions

MuhammadSalah (Tue, 21 Nov 2017 17:56:46 GMT):
I was experimenting, so these might be some leftovers

MuhammadSalah (Tue, 21 Nov 2017 17:56:54 GMT):
but my yaml file creates those two networks

joshhw (Tue, 21 Nov 2017 17:56:55 GMT):
I have to go at the moment, but I'd be willing to take a look at your compose files that you're running and show me the commands you are inputing up to the point of the bug

MuhammadSalah (Tue, 21 Nov 2017 17:56:58 GMT):
blkchwknd ones

MuhammadSalah (Tue, 21 Nov 2017 17:57:09 GMT):
sure

joshhw (Tue, 21 Nov 2017 17:57:13 GMT):
I'll be back tomorrow.

MuhammadSalah (Tue, 21 Nov 2017 17:57:19 GMT):
That's cool

MuhammadSalah (Tue, 21 Nov 2017 17:57:23 GMT):
I'll keep cranking it

joshhw (Tue, 21 Nov 2017 17:57:27 GMT):
9am eastern time

joshhw (Tue, 21 Nov 2017 17:57:39 GMT):
its a pain trying to debug this when the documentation is sparse

joshhw (Tue, 21 Nov 2017 17:57:48 GMT):
but I've gotten to a point that I might be able to help

MuhammadSalah (Tue, 21 Nov 2017 17:58:01 GMT):
oh tell me

MuhammadSalah (Tue, 21 Nov 2017 19:16:02 GMT):
@joshhw IT WAS A STUPID CONFIG MISTAKE OF ME, I FORGOT TO ATTACH MY ORDERERS TO THE NETWORK :( GOshhh!

MuhammadSalah (Tue, 21 Nov 2017 19:16:41 GMT):
So docker compose created that default network, and both two orderers connected to it, anyway.. mistakes do happen. I must have been so blinded for almost over 2 hours..

MuhammadSalah (Tue, 21 Nov 2017 20:36:55 GMT):
Guys, I am running into a very weird issue. Fabric can't build chaincode image for go example chaincode.

SharedMocha (Wed, 22 Nov 2017 02:54:42 GMT):
Hello All- Can someone pls help/guide with below issue when trying to add new org to existing network for - Getting below error when trying to access the file from a peer- Error: Error connecting to orderer.example.com:7050 due to open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory I am running below command from a peer0 of a different ORG peer channel fetch config config_block.pb -o orderer.example.com:7050 -c common --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Absolute path on my local host for the file- artifacts/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem I am running this on local host -Any idea how to get the correct path of .pem file on orderer and pass it in above command from a peer of different org ?

jojialex2 (Wed, 22 Nov 2017 09:02:00 GMT):
peer chaincode instantiate using kafka orderer giving following error, Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode mycc Any idea why this error

mna2016 (Wed, 22 Nov 2017 10:29:23 GMT):
Hi All, Appreciate a quick answer to this. Is consensus really plug and play in hyperledger fabric? Can we control the way PBFT works? What exactly does "plug and play consensus means"?

jojialex2 (Wed, 22 Nov 2017 11:13:45 GMT):
Hi, Please help on the following error : peer chaincode instantiate using kafka orderer giving following error, ←[34;1mpeer0.org1.example.com |←[0m ←[33m2017-11-22 10:47:31.505 UTC [gossip/comm] sendToEndpoint -> WARN 54d←[0m Failed obtaining connection for 172.18.0.15:7051, PKIid:[71 88 115 27 28 222 244 157 196 20 206 87 238 41 173 71 185 195 175 121 236 34 206 183 63 153 178 63 241 226 254 204] reason: x509: cannot validate certificate for 172.18.0.15 because it doesn't contain any IP SANs

doraemon7 (Wed, 22 Nov 2017 12:23:01 GMT):
Does someone know the API's through which I can get the blocks in hyperledger fabric ?

nickgaski (Wed, 22 Nov 2017 14:07:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y9HZtFLmGB9PAzdYG) @vijay5378 - no that's not necessary; the channel has already been created and is defined within the ordering service. As such, the peer on machine b (assuming his org was defined within the channel configuration), can simply issue a `peer channel fetch 0 ` and retrieve the genesis block. Once he has the block simply join and sync up with the current state of the ledger

nickgaski (Wed, 22 Nov 2017 14:08:02 GMT):
@SharedMocha - follow along with this tutorial - https://gerrit.hyperledger.org/r/#/c/15323/

nickgaski (Wed, 22 Nov 2017 14:08:24 GMT):
the accompanying artifacts are within `first-network` on the MASTER branch

vieiramanoel (Wed, 22 Nov 2017 17:07:01 GMT):
On a network with two computers, just one must run orderer right?

vieiramanoel (Wed, 22 Nov 2017 17:07:01 GMT):
On a network with two computers, just one must run orderer, right?

vitorduarte (Wed, 22 Nov 2017 17:12:19 GMT):
Has joined the channel.

douglasthiel (Wed, 22 Nov 2017 17:22:41 GMT):
In the First Network sample there's this line in the docker-compose-cli.yaml file: - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key Since I'm building my own PoC network, I don't understand how to modify the path here for my own purposes. Can anyone help me? I'm not using github.com and I don't understand why that would be there at all. I don't understand how this is used. And yes, I've generated my crypto-config folder.

vitorduarte (Wed, 22 Nov 2017 17:28:03 GMT):
@douglasthiel In your composer file you map the volumes from host to container (host:container) in volumes section, there you define where your crypto-config folder will be, once you did that you can change TLS path to this new one path that you've set

vitorduarte (Wed, 22 Nov 2017 17:28:03 GMT):
@douglasthiel In your compose file you map the volumes from host to container (host:container) in volumes section, there you define where your crypto-config folder will be, once you did that you can change TLS path to this new one path that you've set

douglasthiel (Wed, 22 Nov 2017 17:51:08 GMT):
@vitorduarte thanks, so in my case I would change this: ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ to my local path, like this? ~/finixDLT/crypto-config

douglasthiel (Wed, 22 Nov 2017 17:54:54 GMT):
oh wait, more like this: ./crypto-config:~/finixDLT/crypto-config

douglasthiel (Wed, 22 Nov 2017 17:55:44 GMT):
actually, I don't know what the target should be. Is that whatever I want it to be?

vieiramanoel (Wed, 22 Nov 2017 17:58:20 GMT):
yes, but you need to keep in mind that you have to set this new paths to your enviroment variables

douglasthiel (Wed, 22 Nov 2017 17:59:35 GMT):
@vieiramanoel you mean the docker environment variables, right?

vieiramanoel (Wed, 22 Nov 2017 17:59:51 GMT):
yes

pmabres (Wed, 22 Nov 2017 19:18:05 GMT):
Has joined the channel.

pmabres (Wed, 22 Nov 2017 19:19:08 GMT):
Hi guys I'm new here. I started playing yesterday with fabric and I'm trying to troubleshoot some issues

pmabres (Wed, 22 Nov 2017 19:20:26 GMT):
I get a SEGFAULT when trying to run the first network sample. On the first step of configuring the keys. ./byfn.sh: line 256: 5663 Segmentation fault configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block

pmabres (Wed, 22 Nov 2017 19:20:42 GMT):
I'm running Arch linux x64

pmabres (Wed, 22 Nov 2017 19:21:34 GMT):
Is there anyway I can at least debug configtxgen to see what might be happening? I've been checking out the gerrit project but couldn't find any indication of where the sources might be

philviana (Wed, 22 Nov 2017 19:40:16 GMT):
@pmabres If you manually run just configtxgen (without any parameters) do you also get a segfault? If yes, then perhaps try recompiling it.

pmabres (Wed, 22 Nov 2017 19:49:06 GMT):
running manually I don't get any segfault

pmabres (Wed, 22 Nov 2017 19:50:40 GMT):
I've found with the makefile in fabric project that configtxgen is under /common/tools/configtxgen sorry that I'm not really an expert in Golang but might be worth a try to compile just that project with debug symbols so I can step over?

SharedMocha (Wed, 22 Nov 2017 20:26:14 GMT):
@nickgaski Thanks a lot

pmabres (Wed, 22 Nov 2017 20:28:48 GMT):
So I managed to recompile configtxgen but still get a segfault

yacovm (Wed, 22 Nov 2017 20:28:56 GMT):
what is the error @pmabres ?

yacovm (Wed, 22 Nov 2017 20:29:07 GMT):
also what is your go version?

yacovm (Wed, 22 Nov 2017 20:29:11 GMT):
platform

yacovm (Wed, 22 Nov 2017 20:29:30 GMT):
operating system, cpu architecture

pmabres (Wed, 22 Nov 2017 20:33:35 GMT):
Error: segmentation fault configtxgen -profile TwoOrgsOrdererGenesis -outputBlock OS: Arch linux x64 Go version: go version go1.9.2 linux/amd64 Linux kernel version: 4.13.12-1-ARCH

pmabres (Wed, 22 Nov 2017 20:34:06 GMT):
any way that I can use gdb to debug that process?

vieiramanoel (Wed, 22 Nov 2017 21:22:14 GMT):
@pmabres Dumb solution: did you try to reclone the rep

vieiramanoel (Wed, 22 Nov 2017 21:22:14 GMT):
@pmabres Dumb solution: did you try to reclone the repo?

pmabres (Wed, 22 Nov 2017 21:22:58 GMT):
Don't know what you mean but I just cloned it few moments ago. Do you mean re clone the fabric repo or the fabric-samples repo

vieiramanoel (Wed, 22 Nov 2017 21:28:29 GMT):
The samples one

vieiramanoel (Wed, 22 Nov 2017 21:29:11 GMT):
Also is your path configured to find the tools?

philviana (Wed, 22 Nov 2017 21:34:08 GMT):
Good point @vieiramanoel. @pmabres which branch did you compile from? And yes, I think some tracing/debugging would be good :-)

philviana (Wed, 22 Nov 2017 21:40:19 GMT):
@pmabres There is also a line that reads `logging.SetLevel(logging.INFO, "")` - perhaps you could change that to `logging.DEBUG` and run configtxgen again? That could give you more information :)

pmabres (Wed, 22 Nov 2017 21:56:37 GMT):
Yes , sorry my path has correctly set up the tools path and I've re cloned the repo just in case. Master branch in fabric-samples and master branch in fabric sources. Will try with changing the log level

pmabres (Wed, 22 Nov 2017 21:59:44 GMT):
sorry I'm a little lost , which file you refer @philviana ?

greg2git (Wed, 22 Nov 2017 22:39:23 GMT):
building dockers images for fabric 1.1.0 but got this twice after reloading vagrant:

greg2git (Wed, 22 Nov 2017 22:39:48 GMT):
''' ---> Running in a36ebb4d217d + cd / + tar -xz + curl -fsSL http://www.apache.org/dist/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz curl: (22) The requested URL returned error: 404 Not Found gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now Makefile:285: recipe for target 'build/image/zookeeper/.dummy-x86_64-1.1.0-preview' failed The command '/bin/sh -c set -x && cd / && curl -fsSL "http://www.apache.org/dist/zookeeper/$DISTRO_NAME/$DISTRO_NAME.tar.gz" | tar -xz && mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR"' returned a non-zero code: 2 make: *** [build/image/zookeeper/.dummy-x86_64-1.1.0-preview] Error 2

SharedMocha (Wed, 22 Nov 2017 22:45:46 GMT):
@nickgaski The doc you provided to update works for 1.1 which is good -But for old versions such as 1.0 can we still use configtxlator (or) should we bring the entire network down and manually update the config files and restart it ? Any idea on the best approach to achieve this in 1.0 without bringing the entire network down?

nickgaski (Wed, 22 Nov 2017 22:46:35 GMT):
you can still use configtxlator, but you won't be able to leverage the `printOrg` command against the utility

SharedMocha (Wed, 22 Nov 2017 22:54:43 GMT):
Thank you @nickgaski -If that's the case -Is there an alternative to read the details in JSON format in 1.0 ?

philviana (Wed, 22 Nov 2017 23:01:39 GMT):
@pmabres main.go for configtxgen (in the source tree)

philviana (Wed, 22 Nov 2017 23:51:48 GMT):
@pmabres https://github.com/hyperledger/fabric/blob/2cab745abf031d8ff5d3e8f4fa7a5e5af8907fad/common/configtx/tool/configtxgen/main.go

pmabres (Wed, 22 Nov 2017 23:56:44 GMT):
okey exchanging for debug level didn't print more info

pmabres (Wed, 22 Nov 2017 23:57:14 GMT):
I could start trying debug it with gdb and see what comes out of it

pmabres (Thu, 23 Nov 2017 00:02:38 GMT):
@philviana new finding so just doing which configtxgen printed /home/pancho/bin/configtxgen running anywhere just configtxgen alone with no parameters fires segfault BUT... cd /home/pancho/bin/ ./configtxgen no segfault

pmabres (Thu, 23 Nov 2017 00:02:38 GMT):
@philviana new finding so just doing which configtxgen printed /home/pancho/bin/configtxgen running anywhere just configtxgen alone with no parameters fires segfault BUT... cd /home/pancho/bin/ ./configtxgen no segfault BTW: im using my new compiled version of configtxgen

philviana (Thu, 23 Nov 2017 00:05:34 GMT):
Mmmm

philviana (Thu, 23 Nov 2017 00:07:20 GMT):
What is your platform?

pmabres (Thu, 23 Nov 2017 01:03:44 GMT):
arch

philviana (Thu, 23 Nov 2017 01:55:21 GMT):
@pmabres What happens if you run the fully qualified path (without using the $PATH variable, i.e. `/home/pancho/bin/configtxgen`)

philviana (Thu, 23 Nov 2017 02:00:17 GMT):
Changing the logging to debug didn't work because there are no debug messages :-( does configtxgen show any messages before the segfault? If not, you can try a debugger like you said, or temporarily add a few log messages to the code and recompile it to try to find the point of failure. Starting from `main()` of course.

pmabres (Thu, 23 Nov 2017 02:34:35 GMT):
Sorry for bothering you guys I think its problem with my system or my go install

pmabres (Thu, 23 Nov 2017 02:34:52 GMT):
I've tried replacing everything inside configtxgen with just a sample main

pmabres (Thu, 23 Nov 2017 02:34:58 GMT):
recompiling it

pmabres (Thu, 23 Nov 2017 02:35:04 GMT):
and still having the segfailt

pmabres (Thu, 23 Nov 2017 02:35:05 GMT):
fault

pmabres (Thu, 23 Nov 2017 02:35:21 GMT):
just an empty main method with a hello work debug log message

pmabres (Thu, 23 Nov 2017 02:36:16 GMT):
executing directly its ok , copying that folder to the added PATH folder gets sigfault

pmabres (Thu, 23 Nov 2017 02:37:28 GMT):
So another thing that I've tried was to just create a new empty go file with the same hello world example, compiling it with go install and that output file gives no segfault at all, even copying that to the bin folder and executing it from anywhere

pmabres (Thu, 23 Nov 2017 02:43:25 GMT):
So my second attempt was to try to build with similar flags that make uses GOBIN=/path/to/myproject/bin go install -tags "experimental nopkcs11" /path/to/myproject Note that I haven't used -ldflags "-X ..." (Sorry that I'm not used to linker options, so I had to find that this is for discarding compilation symbols (which I suppose it shouldn't affect output at all))

pmabres (Thu, 23 Nov 2017 02:43:36 GMT):
but still compiling ok

pmabres (Thu, 23 Nov 2017 02:44:28 GMT):
sorry for bothering you guys , but I think it must be an issue with my own GoLang install, Will keep you notified if I find anything that solves it if its beneficial to you. Thanks for helping me out

pmabres (Thu, 23 Nov 2017 02:46:40 GMT):
Thanks @philviana , @vieiramanoel and @yacovm

philviana (Thu, 23 Nov 2017 02:54:23 GMT):
@pmabres Nice debugging approach (compiling a dummy go program). Glad you sorted it out.

CodeReaper (Thu, 23 Nov 2017 04:42:46 GMT):
Hey, I was running my POC with fabric 1.0.0 or 1.0.1 versions, but lately when i installed the latest fabric-client and fabric-ca-client modules(along with grpc) it started giving me handshake errors. Hinting something like the domain name where my docker containers are dont match with the service names such as peer1.or1.example.com. When i downgraded my npm modules it worked again just fine. Is this by design? If yes then why??

CodeReaper (Thu, 23 Nov 2017 04:42:46 GMT):
Hey, I was running my POC with fabric 1.0.0 or 1.0.1 versions, but lately when i installed the latest fabric-client and fabric-ca-client modules(along with grpc) it started giving me handshake errors. Hinting something like the domain name where my docker containers are running dont match with the service names such as peer1.or1.example.com. When i downgraded my npm modules it worked again just fine. Is this by design? If yes then why??

yogesh.fulsunge (Thu, 23 Nov 2017 05:51:28 GMT):
Has joined the channel.

yogesh.fulsunge (Thu, 23 Nov 2017 05:52:06 GMT):
hyperledger provides features such as private channel, consessus and smart contract but the same whether composer also provides??? how to integrate composer code with fabric and make use of fabric features as well ????

yogesh.fulsunge (Thu, 23 Nov 2017 05:52:20 GMT):
Hello shall i user fabric or composer for development of block chain applications?

JoshuaBarker (Thu, 23 Nov 2017 08:56:17 GMT):
Hey all, I was just wondering what is the best way to debug chaincode in go? I have worked through the tuna-app example from the edX class and have changed it to another variable. Everything is fine from the UI perspective however when it goes to submit a recording of the variable it returns 'undefined'

Vadim (Thu, 23 Nov 2017 08:56:40 GMT):
@JoshuaBarker you can write tests

Vadim (Thu, 23 Nov 2017 08:57:07 GMT):
https://github.com/hyperledger/fabric/blob/release/examples/chaincode/go/chaincode_example02/chaincode_example02_test.go

vijay5378 (Thu, 23 Nov 2017 08:57:23 GMT):
If i create a channel transaction using configtxgen and specify org1 and org2. However subsequently if org3 wants to join the channel, can it be done?

JoshuaBarker (Thu, 23 Nov 2017 08:57:49 GMT):
@Vadim thanks for that!

Vadim (Thu, 23 Nov 2017 08:58:40 GMT):
@vijay5378 yes, see https://www.youtube.com/watch?v=DKuGU5CYV_E

vijay5378 (Thu, 23 Nov 2017 09:01:58 GMT):
@Vadim Thanks wil check that out

JoshuaBarker (Thu, 23 Nov 2017 09:12:32 GMT):

invoke_error.PNG

MuhammadSalah (Thu, 23 Nov 2017 12:23:33 GMT):

Clipboard - November 23, 2017 2:23 PM

Jonny (Thu, 23 Nov 2017 12:32:06 GMT):
Hi, is that normal getting this retry warning up to 5 times? ```2017-11-23 12:11:31.001 UTC [couchdb] handleRequest -> WARN 018 Retrying couchdb request in 1s. Attempt:4 Error:Get http://couchdb3:5984/: dial tcp 172.18.0.5:5984: getsockopt: connection refused```

MuhammadSalah (Thu, 23 Nov 2017 12:34:04 GMT):
@Jonny could you do a docker ps

MuhammadSalah (Thu, 23 Nov 2017 12:34:16 GMT):
Also docker network ls

MuhammadSalah (Thu, 23 Nov 2017 12:34:36 GMT):
make sure all of your instances are all on the same network.

Jonny (Fri, 24 Nov 2017 02:35:48 GMT):
hi, i can confirm that all instance is on the same network. It's technically trying until 5 times and then success as per following : ```2017-11-23 12:11:34.077 UTC [couchdb] VerifyCouchConfig -> DEBU 01d VerifyConnection() dbResponseJSON: {"couchdb":"Welcome","version":"2.0.0","vendor":{"name":"The Apache Software Foundation"}}```

jackeyliliang (Fri, 24 Nov 2017 03:00:59 GMT):
Has joined the channel.

MuhammadSalah (Fri, 24 Nov 2017 03:04:53 GMT):
Well, it may be a machine dependent thing.

MuhammadSalah (Fri, 24 Nov 2017 03:05:19 GMT):
It is on the comments of the byfn script that it might take few trials for a peer to join.

MuhammadSalah (Fri, 24 Nov 2017 03:05:35 GMT):
thats why they have the join with a retry.

MuhammadSalah (Fri, 24 Nov 2017 03:05:53 GMT):
Maybe we can wait for an expert opinion on this.

Jonny (Fri, 24 Nov 2017 06:40:06 GMT):
thank you for the feedback @MuhammadSalah. Yes, agree. Maybe we can wait for the expert to clarify

Vadim (Fri, 24 Nov 2017 06:41:10 GMT):
@Jonny perhaps couchdb container does not start fast enough?

Jonny (Fri, 24 Nov 2017 09:21:54 GMT):
Hi @Vadim, I think you are right. I tried again and the retry now up to 2 time only instead of 5.

jojialex2 (Fri, 24 Nov 2017 11:44:40 GMT):
Hi I am using CLI for chaincode instantiate , once the console get stuck after this message ←[31;1mpeer0.org1.example.com |←[0m ←[36m2017-11-24 11:40:29.631 UTC [dockercontroller] createContainer -> DEBU 3d6←[0m Created container: feature-peer0.org1.example .com-mycc-1.0-69b833ea5b04412aed03b0935d4ea03b1b0d2b1788b7b308262c5fe39c29eee3

jojialex2 (Fri, 24 Nov 2017 11:45:24 GMT):
In CLI getting the time out after some time, I s any one get this kind of error .

jojialex2 (Fri, 24 Nov 2017 11:45:24 GMT):
In CLI getting the time out after some time, Is any one get this kind of error .

jojialex2 (Fri, 24 Nov 2017 11:45:24 GMT):
In CLI getting the time out after some time, Is any one get this kind of error .[006 11-24 11:40:29.43 UTC] [github.com/hyperledger/fabric/msp] main.Execute.ExecuteC.execute.func1.chaincodeDeploy.instantiate.GetSignedProposal.Sign -> DEBU Sign: dig est: 9F86E80C3F14B0F14959DC3781573F95542DE8C2F9E135871804A31E2FD9BFD8 Error: Error endorsing chaincode: rpc error: code = Unknown desc = Timeout expired while starting chaincode mycc:1.0(networkid:feature,peerid:peer0.org1.example.com,tx: 66a909cd6c86b389b73e2760bc86417b9b3047cc85b48f69e86803326a092b1d)

jojialex2 (Fri, 24 Nov 2017 11:45:29 GMT):
Please help

mogamboizer (Fri, 24 Nov 2017 15:12:01 GMT):
Anyone knows what is the way to gracefully shutdown/restart docker instance of peer, orderer etc?

MuhammadSalah (Fri, 24 Nov 2017 16:20:29 GMT):
Simply, do a docker-compose -f theconfig.yaml down

MuhammadSalah (Fri, 24 Nov 2017 16:20:59 GMT):
@mogamboizer or just docker rm $(docker ps -aq)

MuhammadSalah (Fri, 24 Nov 2017 16:21:07 GMT):
followed by this

MuhammadSalah (Fri, 24 Nov 2017 16:21:10 GMT):
docker network prune

MuhammadSalah (Fri, 24 Nov 2017 16:21:49 GMT):
by the way $(docker ps -aq) will return all tags for all your docker instances.

YandryPozo (Fri, 24 Nov 2017 23:38:25 GMT):
hello there! are minor versions of fabric 1.0.x compatibles between them ?

yacovm (Sat, 25 Nov 2017 07:30:18 GMT):
yes @YandryPozo

yacovm (Sat, 25 Nov 2017 07:30:39 GMT):
they are compatible and they basically contain bug fixes and usability enhancements

yacovm (Sat, 25 Nov 2017 07:30:52 GMT):
but you should always upgrade to latest (1.0.4)

YandryPozo (Sat, 25 Nov 2017 07:35:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5frfBubggZgB7Szeo) @yacovm thanks!

hshimo (Sat, 25 Nov 2017 11:04:06 GMT):
Hi all! If an orderer creates the block which contains some invalid txs, how do committers treat invalid txs? I know it's marked as invalid and state is not updated with invalid txs. Are invalid txs also stored in ledger? 1. tx is removed from the block. and stored in the ledger. 2. tx is just marked as invalid, the block of all txs are stored in the ledger including invalid txs

hshimo (Sat, 25 Nov 2017 11:04:06 GMT):
Hi all! If an orderer creates the block which contains some invalid txs, how do committers treat invalid txs? I know it's marked as invalid and state is not updated with invalid txs. Are invalid txs also stored in ledger? 1. tx is removed from the block. and stored in the ledger. 2. tx is just marked as invalid, the block of all txs are stored in the ledger including invalid txs So far, I counldn't find the answer in the official document.

hshimo (Sat, 25 Nov 2017 11:04:06 GMT):
Hi all! If an orderer creates the block which contains some invalid txs, how do committers treat invalid txs? I know it's marked as invalid and state is not updated with invalid txs. Are invalid txs also stored in ledger? 1. tx is removed from the block. and stored in the ledger. 2. tx is just marked as invalid, all txs in the block are stored in the ledger including invalid txs So far, I counldn't find the answer in the official document.

hshimo (Sat, 25 Nov 2017 11:04:06 GMT):
Hi all! If an orderer sends the block which contains some invalid txs to peers on the channel, how do committers treat invalid txs? I know it's marked as invalid and state is not updated with invalid txs. Are invalid txs also stored in ledger? 1. tx is removed from the block. and stored in the ledger. 2. tx is just marked as invalid, all txs in the block are stored in the ledger including invalid txs So far, I counldn't find the answer in the official document.

hshimo (Sat, 25 Nov 2017 11:25:54 GMT):
I may found it. http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html#post-v1-validated-ledger-and-peerledger-checkpointing-pruning

hshimo (Sat, 25 Nov 2017 13:23:49 GMT):
What happens if previous block data is manipulated in an orderer and the orderer sends corrupted block to peers? I guess peers discard the block, but what about the orderer? The Orderer add the block to the chain in OrdererLedger, but the orderer doesn't know all peers discard the block.

MuhammadSalah (Sat, 25 Nov 2017 14:26:09 GMT):
Quick question, how can I verify the identity inside a chaincode to implement some permissioned control?

MuhammadSalah (Sat, 25 Nov 2017 14:26:32 GMT):
I have been looking for a handler that retrieves username, role kind of thing.

MuhammadSalah (Sat, 25 Nov 2017 14:26:49 GMT):
But I don't seem to find it, any help is appreciated.

mikykey (Sat, 25 Nov 2017 17:11:42 GMT):
Hello to everybody! I have a problem. I created a function in go to update the state of the database. I can call it via cli or node.js. In both cases I can see on stdout the function is executed. If I executed the same operation via CLI the state of the blockchain changes (i.e. I execute a query and see the changes), if I execute it via node.js, the state does not change. The same problem occurs for deletion of elements. Node invocations work perfectly when creating new key-value pairs in the blockchain or querying the state. I used "basic-network" configuration without modifications. Can you help me to solve this problem? Thanks in advance

sasiedu (Sun, 26 Nov 2017 09:55:10 GMT):
Has joined the channel.

mastersingh24 (Sun, 26 Nov 2017 10:56:03 GMT):
@VaibhavChotaliya - what is your environment? Are you running on Windows, Linux, macOS? (https://chat.hyperledger.org/channel/general?msg=7duDjHX5ZCsxi73hs)

VaibhavChotaliya (Sun, 26 Nov 2017 10:56:03 GMT):
Has joined the channel.

VaibhavChotaliya (Sun, 26 Nov 2017 10:56:18 GMT):
Linux

VaibhavChotaliya (Sun, 26 Nov 2017 10:56:27 GMT):
Linux @mastersingh24

mastersingh24 (Sun, 26 Nov 2017 10:57:25 GMT):
And I assume you are trying to use the Python client SDK?

mastersingh24 (Sun, 26 Nov 2017 10:57:25 GMT):
And I assume you are trying to use the Python client SDK ( https://github.com/hyperledger/fabric-sdk-py ) ?

VaibhavChotaliya (Sun, 26 Nov 2017 10:58:30 GMT):
I run first-network according to tutorial and it's working. Now, I want to see peer_list and chain_list all things using python sdk.

mastersingh24 (Sun, 26 Nov 2017 10:59:18 GMT):
Since you are on Linux, you should be able to access the endpoints using `localhost` rather than `0.0.0.0`

VaibhavChotaliya (Sun, 26 Nov 2017 11:01:26 GMT):
Let me try using localhost instead of 0.0.0.0

mastersingh24 (Sun, 26 Nov 2017 11:03:31 GMT):
Looks like you already posted to the #fabric-sdk-py channel as well. I've never really used the Python SDK so any help actually using it is best found in the #fabric-sdk-py channel. Have you taken a look at https://github.com/hyperledger/fabric-sdk-py/tree/master/test/integration ? Looks like it has some good example of setting things up

VaibhavChotaliya (Sun, 26 Nov 2017 11:04:55 GMT):
okay, Thanks.

gut (Mon, 27 Nov 2017 09:46:42 GMT):
Hi. I have one Fabric channels' related question. As far as I've read there's no way to close a channel (Or is it possible?). I could have a CRL that prevents the organizations in a channel from updating. But I assume that they still have ledger's information on their locals, and they are able to read it. The question is: _How can I create information in Fabric that at certain time is not readable anymore by some peers?_

vijay5378 (Mon, 27 Nov 2017 10:11:06 GMT):
Hi, I am trying to issue a peer channel fetch 0 channel.block -o orderer.com -c mychannel --tls --cafile /home/ubuntu/cryptoconfig/peerOrganizations/orgName/msp/tlscacerts/. I am getting an error: Error: Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" What I am trying to do: I have an orderer running on server A. I have created a channel on server A and have a peer connected to it. While creating the channel, I have also added server B's details to it. Now I am trying to retrieve the channel block from server B in order to allow server B's peer to join the same channel

jinwooChu (Mon, 27 Nov 2017 10:34:36 GMT):
hello everyone! can i ask something~?

yacovm (Mon, 27 Nov 2017 10:44:43 GMT):
yes you may

vudathasaiomkar (Mon, 27 Nov 2017 11:53:06 GMT):
hi everyone,

vudathasaiomkar (Mon, 27 Nov 2017 11:53:06 GMT):
hi everyone,I have two channel in my application with different chaincode installed, Now my doubt is how i can communicate between chaincode that are instantiate on two different channels

vudathasaiomkar (Mon, 27 Nov 2017 11:53:06 GMT):
hi everyone,I have two channel in my application with different chaincode installed, Now my doubt is how i can communicate between chaincode that are instantiate on two different channels

miguelcalero (Mon, 27 Nov 2017 13:14:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ijzd6EMCKXcWYx7bA) @murrekatt did you make any advance on this?

MuhammadSalah (Mon, 27 Nov 2017 13:22:50 GMT):
@vijay5378 The attribute --tls must be suplied with true

MuhammadSalah (Mon, 27 Nov 2017 13:22:56 GMT):
--tls true

MuhammadSalah (Mon, 27 Nov 2017 13:23:31 GMT):
You are clearly issuing the binaries without TLS verification. :)

MuhammadSalah (Mon, 27 Nov 2017 13:23:37 GMT):
Due to bad configuration in your command :)

MuhammadSalah (Mon, 27 Nov 2017 13:24:34 GMT):
@vudathasaiomkar Chaincodes are instantiated over the channel (Ledger). You can have as many as chaincodes as you want, but the chaincodes are stateless code and should run on behalf of all peers.

MuhammadSalah (Mon, 27 Nov 2017 13:26:55 GMT):
You install the chaincode over all concerned peers, if you want to communicate two different chaincodes on two different channels (ledgers). I think this is a hard issue you are raising here, because the chaincode can't invoke another chaincode that's on another channel I assume. (I have not tried to invoke a chaincode over a different channel)

MuhammadSalah (Mon, 27 Nov 2017 13:27:59 GMT):
You can use rest-calls or MQ but now you are liable to the issue of determination; because all chaincode instances should get the same exact answer for the transaction to be verified.

MuhammadSalah (Mon, 27 Nov 2017 13:28:32 GMT):
However, one approach you should be taking is you assign the communication process to the application you are creating; and send the message as transient.

MuhammadSalah (Mon, 27 Nov 2017 13:28:53 GMT):
and through the shim interface you can fetch that transient message.

Kyroy (Mon, 27 Nov 2017 14:26:24 GMT):
I know how to set the endorsement policy for a chaincode. But is there a way to get it from the peer?

MuhammadSalah (Mon, 27 Nov 2017 18:23:58 GMT):
@gut; I guess this you may have a chaincode, that deletes all the states. A transaction will be comitted that you have deleted the states, but the information will no longer be there in the Database.

MuhammadSalah (Mon, 27 Nov 2017 18:25:40 GMT):
@gut; Now that you want some peers are targetted, and others not; It can be used via some identitiy trick, to set a rule on which to peers to be excluded of this contract.

MuhammadSalah (Mon, 27 Nov 2017 18:27:04 GMT):
However, a such kind of application that requires deleting the states after a while; is not suitable for a blockchain, at least fabric. I am not issuing a thesis here; but this is mostly valid in most cases; because no you are going against the transparency concept of Fabric.

Amit04Patel (Tue, 28 Nov 2017 05:32:41 GMT):
Hi guys, Does anybody knows to deploy hyperledger in different physical machines thanks

prabhat.kashyap (Tue, 28 Nov 2017 05:55:29 GMT):
Has joined the channel.

baoyangc (Tue, 28 Nov 2017 06:10:16 GMT):
Has joined the channel.

baoyangc (Tue, 28 Nov 2017 06:14:59 GMT):
any one tried change certificate of organization's rootCA

baoyangc (Tue, 28 Nov 2017 06:15:02 GMT):
?

UtkarshSingh (Tue, 28 Nov 2017 06:21:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zJHJDjiuWNB2qS2iM) @Amit04Patel Yes you need to change some docker configurations. Swarm will be required to make docker network amongst different machines. @asuchit can help you

gut (Tue, 28 Nov 2017 07:44:58 GMT):
@MuhammadSalah; Thanks for the answer. I know what I propose is a bit tricky. But imagine a scenario where the law doesn't let an organization to store information from now on.

gut (Tue, 28 Nov 2017 07:46:17 GMT):
In Fabric I can use my chaincode to delete states, but that information is still auditable. This is a blockchain premise. Is it different for Fabric channels?

gut (Tue, 28 Nov 2017 07:51:18 GMT):
@MuhammadSalah; Let myself try explaining a little better. I want to know if a channel can be totally closed and its information buried by some technique. I mean, by creating channels, transparency is not the best game for Fabric ;)

vijay5378 (Tue, 28 Nov 2017 08:01:00 GMT):
@MuhammadSalah Please note that if you supply a parameter for --tls for the command peer channel fetch, it throws an error regarding trailing errors. https://jira.hyperledger.org/browse/FAB-6815. The error for me was different , I was passing the node's public certificate, however I didn't realise that the orderer and the peer had obtained certificates from different CA's. When I changed to orderer's public key, it worked.

jojialex2 (Tue, 28 Nov 2017 12:40:51 GMT):
Hi I am getting following error

jojialex2 (Tue, 28 Nov 2017 12:41:04 GMT):
... /opt/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory

jojialex2 (Tue, 28 Nov 2017 12:41:32 GMT):
Please help if any one know the solution

matrisis (Tue, 28 Nov 2017 14:59:34 GMT):
Has joined the channel.

MuhammadSalah (Tue, 28 Nov 2017 15:55:57 GMT):
@vijay5378 Glad it worked. I always pass the parameter as --tls true --cafile path to cafile; I did not know you could skip the true part.

MuhammadSalah (Tue, 28 Nov 2017 15:57:51 GMT):
@gut Please notify me, if you find any clear solution on this case; because this looks interesting.

MohammadObaid (Tue, 28 Nov 2017 17:07:54 GMT):
@gut @MuhammadSalah I might be wrong but I think its not possible with fabric or with any other blockchain. One of the core features of blockchain is it allows every participating node to receive every transaction and apply the same validation rules . If `after certain time not readable anymore by some peers` is possible then it simply means one or more participant can manipulate the whole network i.e delete peer data which is against the core principle of blockchain . What is the purpose of blockchain network then if you need master-worker node system where master controls everything?

MohammadObaid (Tue, 28 Nov 2017 17:07:54 GMT):
@gut @MuhammadSalah I might be wrong but I think its not possible with fabric or with any other blockchain. One of the core features of blockchain is it allows every participating node to receive every transaction and apply the same validation rules . If `after certain time not readable anymore by some peers` is possible then it simply means one or more participant can manipulate the whole network i.e delete peer data which is against the core principle of blockchain . What is the purpose of blockchain network then if you need master-worker node system where master controls everything? I am interested in your take ons regarding this?

mikykey (Tue, 28 Nov 2017 17:11:04 GMT):
Hello to everybody! I have a question. Is there a way to install fabric without using Docker nor Vagrant?

MuhammadSalah (Tue, 28 Nov 2017 17:15:48 GMT):
@MohammadObaid @gut, I don't think you should be able to blind some peers from the channel, but I think a diffuse mechanism can be available. My proposal to this, is you can take down Peers, and revoke them from the channel, and delete the states through a contract.

MuhammadSalah (Tue, 28 Nov 2017 17:16:20 GMT):
But once it has been shared, and recorded; it's immutable. It's there, and always be there.

douglasthiel (Tue, 28 Nov 2017 19:33:05 GMT):
I have 3 orderers on my network. Must they each use a different genesis-block or the exact same instance of a common genesis block? If you happen to know the rationale I'd like to learn that too. Thanks in advance.

gbolo (Tue, 28 Nov 2017 19:39:02 GMT):
Has joined the channel.

gbolo (Tue, 28 Nov 2017 19:39:12 GMT):
hey all. when adding a new org (with its own ca and peers) to an existing fabric cluster, do i need to manually copy the new ca cert to each existing peer's `msp/cacerts` directory or is updating the channel config block enough?

weeds (Tue, 28 Nov 2017 21:22:43 GMT):
i wanted to share the following information which i thought was helpful-

weeds (Tue, 28 Nov 2017 21:23:28 GMT):
Peer command displays help when invoked without any params or with --help option For example: peer --help Usage: peer [flags] peer [command] Available Commands: chaincode Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade|list. channel Operate a channel: create|fetch|join|list|update|signconfigtx|getinfo. logging Log levels: getlevel|setlevel|revertlevels. node Operate a peer node: start|status. version Print fabric peer version. Flags: -h, --help help for peer --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server Use "peer [command] --help" for more information about a command. peer chaincode --help Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade|list. Usage: peer chaincode [command] Available Commands: install Package the specified chaincode into a deployment spec and save it on the peer's path. instantiate Deploy the specified chaincode to the network. invoke Invoke the specified chaincode. list Get the instantiated chaincodes on a channel or installed chaincodes on a peer. package Package the specified chaincode into a deployment spec. query Query using the specified chaincode. signpackage Sign the specified chaincode package upgrade Upgrade chaincode. Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint -o, --orderer string Ordering service endpoint --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding Global Flags: --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server Use "peer chaincode [command] --help" for more information about a command. peer channel --help Operate a channel: create|fetch|join|list|update|signconfigtx|getinfo. Usage: peer channel [command] Available Commands: create Create a channel fetch Fetch a block getinfo get blockchain information of a specified channel. join Joins the peer to a channel. list List of channels peer has joined. signconfigtx Signs a configtx update. update Send aconfigtx update. Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint Global Flags: --logging-level string Default logging level and overrides, see core.yaml for full syntax --test.coverprofile string Done (default "coverage.cov") -v, --version Display current version of fabric peer server Use "peer channel [command] --help" for more information about a command.

wordforthis (Tue, 28 Nov 2017 21:32:01 GMT):
I have a question about dynamically adding an organization to the Fabric. In the "Reconfiguration example" section of the configtxlator documentation (http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html), it shows how to do a reconfiguration: - Fetch the config_block proto for the "testchainid" ordering system channel - Convert it to json, modify the json, convert it back to proto, and compute an update proto - Wrap the update proto in an envelope and submit it to the orderer Then in the "Adding an organization" section it says that adding an organization is just like the above, only the "modify the json" step is more complicated because adding an organization is more complicated than changing a batch size value. Based on that, I determined that to add a new organization into our Fabric, I would have to update the "testchainid" system channel as above from a special peer that has access to the system channel. Then after the system channel was updated, I would be able to create new (or modify existing) channels with the new organization (after getting each organization to sign the required config block, etc.). But in Nick Gaski's youtube video (https://www.youtube.com/watch?v=DKuGU5CYV_E&t=3s) he never did that. Instead he just created a new org's crypto material and then added that org to the existing "mychannel" channel. He never (directly) interacted with the "testchainid" system channel, but rather just with the "mychannel" channel. Based on that, it seems that I wouldn't have to update the system channel with the new organization at all. Rather "all" I would have to do is is generate new crypto material and put the orderer's certs in the new org's VM (in my environment each org is on its own VM). Then I'd (or rather, the orgs) would be able to create new channels or modify existing channels as if the organization had been there from the start (with the extra step of using an outside mechanism to pass the signed block from VM to VM). Now, I'm definitely in the "don't know what I don't know" stage of things here, but can somebody explain the difference between the Reconfigration example in the documentation and Nick's video? Is the documentation not actually telling me to update the system channel block?

joshhw (Tue, 28 Nov 2017 21:42:55 GMT):
has anyone after building their first network, gone on to connect it to a node server.

FTuncoglu (Tue, 28 Nov 2017 22:00:47 GMT):
Has joined the channel.

ShefaliMittal (Wed, 29 Nov 2017 06:42:02 GMT):
Has joined the channel.

Hangyu (Wed, 29 Nov 2017 06:46:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jbF7wLa4wQMYhrY2o) @wordforthis actually I have done this before. The difficult part is how to get the json info of the new org. This is how I did it : firstly, use add new org info to configtx.yaml. Secondly use configtxgen to create a new genesis block which contains the new org info and then use configtxlator to convert this new genesis block to json. Thirdly, extract the new org json info and then add it to the json file converted with the original genesis block. this is all about updating the testchainid genesisblock. In order to do that you need to config to admin of orderer's org. hope it can help

xingstarx (Wed, 29 Nov 2017 06:48:22 GMT):
Has joined the channel.

blackdog1987 (Wed, 29 Nov 2017 09:24:12 GMT):
Has joined the channel.

blackdog1987 (Wed, 29 Nov 2017 09:25:01 GMT):
How to add an org? I follow this site: https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html . And I had some problem at section 4. the section 4 said that, I should add a new org ( that is Org3MSP ). And the site didn't mention how can I generate the org's content. especially there are some contents like the picture I post.

blackdog1987 (Wed, 29 Nov 2017 09:25:01 GMT):
How to add an org? I follow this site: https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html . And I had some problem at section 4. the section 4 said that, I should add a new org json content ( that is Org3MSP ). And the site didn't mention how can I generate the org's content. especially there are some contents like the picture I post.

blackdog1987 (Wed, 29 Nov 2017 09:25:24 GMT):

Clipboard - November 29, 2017 5:25 PM

matrisis (Wed, 29 Nov 2017 09:31:06 GMT):
Hi, is it possible fon an org to be in multiple channels ?

Vadim (Wed, 29 Nov 2017 09:32:01 GMT):
yes

matrisis (Wed, 29 Nov 2017 09:32:18 GMT):
Thx :)

geoms (Wed, 29 Nov 2017 09:41:57 GMT):
Hi There, I have network setup of 2 Orgs(Org1 & Org2) and 1 peer each in an Org. A channel is created and peers from both Orgs has joined the same channel.

geoms (Wed, 29 Nov 2017 09:41:58 GMT):
When we install the chain code, should we install it in One of the Orgs(ex. Org1)? or same chain code need to be installed in both the Orgs?

geoms (Wed, 29 Nov 2017 09:42:05 GMT):
My confusing here is since peers from both Orgs has joined the same channel, individual chain code installation is needed or not.

Vadim (Wed, 29 Nov 2017 09:42:57 GMT):
@geoms you need to install cc to all peers from which you want to get endorsements

matrisis (Wed, 29 Nov 2017 10:22:35 GMT):
Hi, in crypto-config.yaml, `OrdererOrgs` set the orderer for each organizations in the network, just one, or for all of them? Thank you very much.

geoms (Wed, 29 Nov 2017 10:34:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2bdbrMpXByZ92eG7W) @Vadim Thanks got it!

egeek (Wed, 29 Nov 2017 11:17:41 GMT):
Has joined the channel.

matrisis (Wed, 29 Nov 2017 13:32:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mzp8Gop3YLd2bKzbm) To answer my question : Each `Name`set a new order that can be given to an org.

matrisis (Wed, 29 Nov 2017 13:32:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mzp8Gop3YLd2bKzbm) To answer my question : Each `Name`set a new orderer that can be given to an org.

wordforthis (Wed, 29 Nov 2017 14:00:54 GMT):
Thanks @HangYu. I guess my fundamental question is: if I want to add a new organization to the Fabric, under what circumstances (if any) do I even need to update the orderer system channel? I assume it's not always necessary, because Nick Gaski didn't do that in his youtube video (https://www.youtube.com/watch?v=DKuGU5CYV_E&t=3s), he only updated the "normal" channel he wanted to add the new org to.

nickgaski (Wed, 29 Nov 2017 14:02:48 GMT):
@geoms - each peer on the channel that needs to execute chaincode or otherwise interface with the ledger (i.e. query only) must have the chaincode source installed on the file system. One peer will instantiate the chaincode on the channel, which will start a chaincode container for that peer. Any subsequent interactions (query or endorse) will start containers for the other peers. In a nutshell, any peer that needs to endorse or query must have the chaincode installed in order to spin up the according chaincode container. The chaincode container is what interfaces with the peer ledger

jeffgarratt (Wed, 29 Nov 2017 14:42:20 GMT):
@wordforthis updating the system channel's consortium would provide for the addition of the Org to any newly created channels for the consortium. You can still however add them directly to the channels without doing this, but if you plan on creating channels in the future with this consortium it may be worth the effort to update the consortium itself.

jeffgarratt (Wed, 29 Nov 2017 14:43:57 GMT):
it also depends on your business case. You may think of your consortium as a group of orgs that you always work with, and then invite orgs into each instantiated channel on an as needed basis.

joshhw (Wed, 29 Nov 2017 15:38:19 GMT):
has anyone had luck connecting a node server to a custom fabric instance?

joshhw (Wed, 29 Nov 2017 15:38:38 GMT):
I'm not finding how to utilize my custom orderer/certs within a node instance.

aatkddny (Wed, 29 Nov 2017 16:46:45 GMT):
Anyone ever come across this before? `2017-11-29 16:40:41.088 UTC [endorser] simulateProposal -> ERRO 9f0 failed to invoke chaincode name:"lscc" on transaction 4d7e66cbdfb93f563620857b3fb12a5ea074729c511aa35db90dc4a6fe16b651, error: API error (400): {"message":"oci runtime error: container_linux.go:265: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\"\n"}` This was all working. Then I tried changing to a different piece of chaincode and it all went wrong... I'm guessing it's something to do with GOPATH, but it's a pure guess right now.

MohammadObaid (Wed, 29 Nov 2017 16:50:29 GMT):
To convert genesis.block into human readable form using configtxlator tool , do I need to create genesis.pb first or can be directly converted?

vieiramanoel (Wed, 29 Nov 2017 17:59:11 GMT):
@MohammadObaid why would you want to do this?

MohammadObaid (Wed, 29 Nov 2017 18:03:06 GMT):
@vieiramanoel Actually I am facing some msp issue in node sdk so for debuging purpose I want to see if that msp included in genesis block configuration file or not?

vieiramanoel (Wed, 29 Nov 2017 18:06:57 GMT):
@MohammadObaid can you describe your msp problem (with your output error)?

MohammadObaid (Wed, 29 Nov 2017 18:08:58 GMT):

Clipboard - November 29, 2017 11:08 PM

MohammadObaid (Wed, 29 Nov 2017 18:10:56 GMT):
@vieiramanoel I am getting this error when I connect node sdk with existing blockchain network and then try to getchannel info using query. I ran out of ideas to how to solve this. I am able to enroll user successfully but not being able to invoke transactions or fetch blocks etc.

vieiramanoel (Wed, 29 Nov 2017 18:13:38 GMT):
I don't know much about node sdk, but try to find where you define your MSP ID, as error suggests it is set to peer1st-orga.orga where it should be orga only

vieiramanoel (Wed, 29 Nov 2017 18:13:38 GMT):
I don't know much about node sdk, but try to find where you define your MSP ID, as error suggests it is set to `peer1st-orga.orga` where it should be `orga` only

Russell-Columbia (Wed, 29 Nov 2017 22:59:50 GMT):
Has joined the channel.

erickfjordan (Thu, 30 Nov 2017 05:43:51 GMT):
Has joined the channel.

erickfjordan (Thu, 30 Nov 2017 05:44:10 GMT):
Hi all. "Writing Your First Application", step "Register and Enroll user1" fails. $ node registerUser.js Store path:/home/ej934739/Desktop/git-repos/fabric-samples/fabcar/hfc-key-store Successfully loaded admin from persistence Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"No identity type provided. Please provide identity type"}]]

aaron_z7 (Thu, 30 Nov 2017 05:46:14 GMT):
Has joined the channel.

username343 (Thu, 30 Nov 2017 05:47:37 GMT):
can anybody please tell me where can i learn the syntax for writing the configtx.yaml file for channel creation

kumar (Thu, 30 Nov 2017 06:55:39 GMT):
can anyone help me understand how users registration and identity management is handle in fabric ?

matrisis (Thu, 30 Nov 2017 08:42:27 GMT):
@username343 i suggest you these videos, it might help you : https://www.youtube.com/watch?v=nF9fkBuBNpE , https://www.youtube.com/watch?v=y8GfJPP7BI8

asuchit (Thu, 30 Nov 2017 09:18:17 GMT):
in configtx.yaml, as per my understanding that msp directory have specific formats as admincerts, cacerts and tlscacerts of an organization. Do I need to keep same names of these directories Or we have some other option as well ?

matrisis (Thu, 30 Nov 2017 09:27:18 GMT):
Hello, could you please explain me what is CouchDB used for? Thank you.

Vadim (Thu, 30 Nov 2017 09:27:35 GMT):
@matrisis to store the world state

matrisis (Thu, 30 Nov 2017 09:28:44 GMT):
Ok i see, thank you.

MohammadObaid (Thu, 30 Nov 2017 09:30:33 GMT):
@Vadim If I dont define anchor peers of an org would it make any trouble in invoking transaction or fetching blocks?

Vadim (Thu, 30 Nov 2017 09:30:53 GMT):
at least not in the dev mode

Vadim (Thu, 30 Nov 2017 09:30:53 GMT):
at least not in the dev environment, for prod I'd set them as they help to discover peers of other orgs

matrisis (Thu, 30 Nov 2017 10:34:48 GMT):
Could you explain me of give me a link to understand how do i set my chaincode in my channel peers and then how to call my chaincode methods to update this channel blochain ? Thank you.

CodeReaper (Thu, 30 Nov 2017 10:40:04 GMT):
Can anyone explain me following environment variables-

CodeReaper (Thu, 30 Nov 2017 10:40:16 GMT):
- CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true

yacovm (Thu, 30 Nov 2017 10:48:31 GMT):
yes

yacovm (Thu, 30 Nov 2017 10:49:01 GMT):
1) Makes the peers of the org select a leader peer that will connect to the orderer and send them the blocks, meaning- only that peer will connect to the orderer

yacovm (Thu, 30 Nov 2017 10:49:18 GMT):
2) Makes them use option (1).

yacovm (Thu, 30 Nov 2017 10:49:27 GMT):
3) I guess it enables the golang profiler

yacovm (Thu, 30 Nov 2017 10:49:27 GMT):
3) I guess it enables the golang profiler, so no use to you

CodeReaper (Thu, 30 Nov 2017 11:04:19 GMT):
@yacovm All transaction commits on a channel are broadcasted to the peers that have joined the channel, right? So whats the purpose of having an org leader?

CodeReaper (Thu, 30 Nov 2017 11:04:19 GMT):
@yacovm All transaction commits on a channel are broadcasted to the peers by orderer that have joined the channel, right? So whats the purpose of having an org leader?

yacovm (Thu, 30 Nov 2017 11:05:32 GMT):
well in some cases you don't want all your 1000 peers to connect to the orderer

yacovm (Thu, 30 Nov 2017 11:05:36 GMT):
right?

yacovm (Thu, 30 Nov 2017 11:05:45 GMT):
do you want the orderer to send the same block, 1000 times?

CodeReaper (Thu, 30 Nov 2017 11:06:06 GMT):
Ok so its not exactly a broadcast system

yacovm (Thu, 30 Nov 2017 11:06:17 GMT):
the orderer broadcasts to peers

yacovm (Thu, 30 Nov 2017 11:06:24 GMT):
but not all peers connect to it

CodeReaper (Thu, 30 Nov 2017 11:06:38 GMT):
ok got it thanks

Taffies (Thu, 30 Nov 2017 11:12:55 GMT):
I'm trying to figure out the encryption and currently following the EnCC example. I managed to successfully install the chaincode (enccc_example) on my network but when I instantiated the chaincode, this error message pops up: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/enccc_example/enccc_chaincode/vendor/github.com/hyperledger/fabric/core/chaincode/shim/ext/entities chaincode/input/src/github.com/enccc_example/enccc_chaincode/vendor/github.com/hyperledger/fabric/core/chaincode/shim/ext/entities/entities.go:39:67: unknown field 'IV' in struct literal of type bccsp.AESCBCPKCS7ModeOpts Can anyone help me out on this? Thank you!

ShefaliMittal (Thu, 30 Nov 2017 11:22:47 GMT):
Do we need to create the channel to each peer in case of multiple peers ?

gut (Thu, 30 Nov 2017 11:30:31 GMT):
No. Only the ORGLEADER. Yo can see related: https://jira.hyperledger.org/browse/FAB-3680

username343 (Thu, 30 Nov 2017 11:31:37 GMT):
thanks @matrisis

Luxii (Thu, 30 Nov 2017 11:32:20 GMT):
Has joined the channel.

Luxii (Thu, 30 Nov 2017 11:32:31 GMT):
Is it possible to have multiple orderers for one channel using kafka ?

yacovm (Thu, 30 Nov 2017 11:33:25 GMT):
yes it is

yacovm (Thu, 30 Nov 2017 11:33:29 GMT):
that's the idea...

Luxii (Thu, 30 Nov 2017 11:35:17 GMT):
Do they relay blocks in kafka partition in increasing order or is it sorted locally inside an orderer ?

gut (Thu, 30 Nov 2017 11:38:00 GMT):
It is shared partition

yacovm (Thu, 30 Nov 2017 11:38:19 GMT):
the blocks are saved in the file system of each orderer node

yacovm (Thu, 30 Nov 2017 11:38:26 GMT):
the *transactions* are saved in kafka

gut (Thu, 30 Nov 2017 11:40:41 GMT):
Ops! thanks for the point @yacovm :upside_down:

gut (Thu, 30 Nov 2017 11:44:51 GMT):
Orderer nodes don't communicate with each other, so then blocks are stored locally and they consume a common ordered list of transactions. Right?

Luxii (Thu, 30 Nov 2017 11:47:22 GMT):
Are the blocks stored in increasing order ?

Luxii (Thu, 30 Nov 2017 11:48:52 GMT):
Oh okay , So Orderers only store transactions in kafka not blocks ?

mastersingh24 (Thu, 30 Nov 2017 11:52:51 GMT):
@Luxii - Yes - blocks are stored in ascending order on the file system Each orderer node maintains a file-based ledger of blocks (this is true for any type of orderer - Solo or Kafka or any future type of orderer).

gut (Thu, 30 Nov 2017 11:59:57 GMT):
@mastersingh24 Do they also maintain a time or offset based table to keep block ordering sense?

Luxii (Thu, 30 Nov 2017 12:25:13 GMT):
@mastersingh24 If kafka clusters only store transactions( assuming in any order ) then how does blocks get synchronised between all orderers ?

mastersingh24 (Thu, 30 Nov 2017 13:31:17 GMT):
Each block has a block number (https://chat.hyperledger.org/channel/fabric-questions?msg=F7JjyfNkEbY9Eghtt) @gut

mastersingh24 (Thu, 30 Nov 2017 13:31:17 GMT):
Every block has a block number (https://chat.hyperledger.org/channel/fabric-questions?msg=F7JjyfNkEbY9Eghtt) @gut

mastersingh24 (Thu, 30 Nov 2017 13:33:19 GMT):
Technically, there are also "block cutter" messages which are sent via Kafka which tell each OSN when to actually cut blocks (so they all cut blocks with the same content) (https://chat.hyperledger.org/channel/fabric-questions?msg=cQ3RKCLNP6wz7Fozt) @Luxii

Luxii (Thu, 30 Nov 2017 13:36:36 GMT):
okay thanks for your response

carlosho17 (Thu, 30 Nov 2017 14:58:24 GMT):
Hi there! I'm trying to figure out how to install HF on top of LXC containers and KVM vm's, I mean not using Docker, by using with ansible playbooks ... is there any ansible playbook or just a recipe to deploy the software on top of whatever VMs or containers ? any guidance will be appreciated...

MohammadObaid (Thu, 30 Nov 2017 15:17:01 GMT):
@carlosho17 Here is ansible script https://github.com/hyperledger/cello/tree/master/src/agent/ansible .. You can ask join #cello channel for more details

MohammadObaid (Thu, 30 Nov 2017 15:17:01 GMT):
@carlosho17 Here is ansible script https://github.com/hyperledger/cello/tree/master/src/agent/ansible .. You can join #cello channel for more details

carlosho17 (Thu, 30 Nov 2017 15:34:08 GMT):
thank you @MohammadObaid , I'll get into it

nickgaski (Thu, 30 Nov 2017 15:50:37 GMT):
@Taffies - did you make sure to vendor the dependencies for the chaincode?

nickgaski (Thu, 30 Nov 2017 15:51:20 GMT):
the second step takes some time - `govendor add +external`

matrisis (Thu, 30 Nov 2017 16:38:39 GMT):
Hi, when i install my chain code using : peer chaincode install -n asset_mgmt -v 1.0 -p sacc I get the following error : ``` 2017-11-30 16:36:18.136 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-11-30 16:36:18.136 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-11-30 16:36:18.136 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-11-30 16:36:18.137 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: Error getting chaincode code chaincode: : failed with error: "exec: not started" ``` Do you have any ideas how ot solve this? Thank you.

MuhammadSalah (Thu, 30 Nov 2017 17:38:03 GMT):
Hello, has anybody tried the 1.1.0-preview containers; I was so interested in trying out the Attribute Based Access Control; and I pulled the image; and I couldn't locate the new lib in the chaincode env image. Therefore, the video Keith presented here (https://www.youtube.com/watch?v=KZ5HThNjaeI) I was not able to follow on his trail.

CarlitoIBM (Thu, 30 Nov 2017 18:26:45 GMT):
Has joined the channel.

vsadriano (Thu, 30 Nov 2017 19:08:39 GMT):
Has joined the channel.

vsadriano (Thu, 30 Nov 2017 19:10:29 GMT):
Hi! I'm new in Hyperledger and I would like to know why Fabric Peer needs to access **/var/run/docker.sock**. It's a big security failure! Thanks!

jeffgarratt (Thu, 30 Nov 2017 22:50:18 GMT):
@vsadriano it does not have to.. This is a default setting to facilitate the local docker sandbox system. You can configure it per your system requirements.

Taffies (Fri, 01 Dec 2017 02:28:36 GMT):
@nickigaski Yes I did! I'm using the first network setup to instantiate the example chaincode, but I made sure to vendor the dependencies for the chaincode within the same folder as the chaincode.

Taffies (Fri, 01 Dec 2017 04:05:06 GMT):
@nickgaski Yes I did. I'm using the byfn example as my network.

john111 (Fri, 01 Dec 2017 05:05:59 GMT):
hi

john111 (Fri, 01 Dec 2017 05:06:35 GMT):
how could I delete contents of .hfc-key-store?

ShefaliMittal (Fri, 01 Dec 2017 05:39:33 GMT):
does peer join channel command join all peers to the channel?

flash139 (Fri, 01 Dec 2017 05:51:08 GMT):
I would like to build a setup over multiple hosts to deploy multiple chains (owned by different customers) in such a way that each chain is "running" over the different hosts. I did not find any information on how to setup such a solution . Would a docker swarm cluster be adequate ? what is recommended? Could you point me to some tutorial or explanation to succeed with such setup ?

jojialex2 (Fri, 01 Dec 2017 05:56:57 GMT):
Hi I am not able to deploy chain code getting following error ... FROM hyperledger/fabric-baseos:x86_64-0.4.2 ADD binpackage.tar /usr/local/bin LABEL org.hyperledger.fabric.chaincode.id.name="mycc" \ org.hyperledger.fabric.chaincode.id.version="1.0" \ org.hyperledger.fabric.chaincode.type="GOLANG" \ org.hyperledger.fabric.version="1.1.0-preview" \ org.hyperledger.fabric.base.version="0.4.2" ENV CORE_CHAINCODE_BUILDLEVEL=1.1.0-preview ENV CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt COPY peer.crt /etc/hyperledger/fabric/peer.crt [395 12-01 05:53:09.27 UTC] [github.com/hyperledger/fabric/core/chaincode/platforms/golang] generateDockerBuild.GenerateDockerBuild -> INFO building chaincode with ldfl agsOpt: '-ldflags "-linkmode external -extldflags '-static'"' [396 12-01 05:53:09.27 UTC] [github.com/hyperledger/fabric/core/chaincode/platforms/golang] generateDockerBuild.GenerateDockerBuild -> INFO building chaincode with tags : [397 12-01 05:53:09.27 UTC] [github.com/hyperledger/fabric/core/chaincode/platforms/util] generateDockerBuild.GenerateDockerBuild.DockerBuild -> DEBU Attempting build w ith image hyperledger/fabric-ccenv:x86_64-1.1.0-preview [398 12-01 05:53:29.01 UTC] [github.com/hyperledger/fabric/core/container/dockercontroller] do.do.Start.deployImage -> DEBU Created image: dev-peer0.org1.example.com-my cc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9 [399 12-01 05:53:29.01 UTC] [github.com/hyperledger/fabric/core/container/dockercontroller] do.do.Start -> DEBU start-recreated image successfully [39a 12-01 05:53:29.01 UTC] [github.com/hyperledger/fabric/core/container/dockercontroller] do.do.Start.createContainer -> DEBU Create container: dev-peer0.org1.example .com-mycc-1.0 [39b 12-01 05:53:29.04 UTC] [github.com/hyperledger/fabric/core/container/dockercontroller] do.do.Start -> ERRO start-could not recreate container post recreate image: no such image [39c 12-01 05:53:29.04 UTC] [github.com/hyperledger/fabric/core/container] unlockContainer -> DEBU container lock deleted(dev-peer0.org1.example.com-mycc-1.0) [39d 12-01 05:53:29.04 UTC] [github.com/hyperledger/fabric/core/chaincode] handleStream.processUnaryRPC._Endorser_ProcessProposal_Handler.ProcessProposal.ProcessProposa l.simulateProposal.callChaincode.Execute.Launch.launchAndWaitForRegister -> DEBU stopping due to error while launching: no such image error starting container

jojialex2 (Fri, 01 Dec 2017 05:57:26 GMT):
Any one know why this error getting ?

vijay5378 (Fri, 01 Dec 2017 06:04:23 GMT):
I am trying to create the java shim using v1.1.0-preview. The compileJava task is failing. Anyone else seen this?

vijay5378 (Fri, 01 Dec 2017 06:08:56 GMT):
> Task :core:chaincode:shim:java:compileJava /home/ubuntu/bin/src/github.com/hyperledger/v1.1.0-preview/core/chaincode/shim/java/src/main/java/org/hyperledger/fabric/protos/peer/ChaincodeSupportGrpc.java:16: error: cannot find symbol @javax.annotation.Generated("by gRPC proto compiler") ^ symbol: class Generated location: package javax.annotation Note: /home/ubuntu/bin/src/github.com/hyperledger/v1.1.0-preview/core/chaincode/shim/java/src/main/java/org/hyperledger/fabric/shim/ChaincodeBase.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILURE: Build failed with an exception.

vijay5378 (Fri, 01 Dec 2017 06:51:25 GMT):
this is with java 9....ok I have found the solution: Please add dependency for javax.annotation:javax.annotation-api in the grade file, else it doesn't compile

Kemodroid (Fri, 01 Dec 2017 07:00:58 GMT):
guys, i am trying to understand how a private block chain built using hyperledger fabric can avoid 51% attack .... can somebody help me or point me in the right direction please ?

Kemodroid (Fri, 01 Dec 2017 07:01:15 GMT):
went to #general and was routed to here

Vadim (Fri, 01 Dec 2017 07:05:08 GMT):
@Kemodroid not sure the attack applies here, since by definition it's about controlling 51% of mining power and there is no mining in fabric

bh4rtp (Fri, 01 Dec 2017 07:20:14 GMT):
@MuhammadSalah what terminal are you using? look not like putty.

bh4rtp (Fri, 01 Dec 2017 07:20:14 GMT):
@MuhammadSalah what ssh client are you using? it looks not like putty.

Kemodroid (Fri, 01 Dec 2017 07:23:58 GMT):
@Vadim thanks for the reply - mining power in bitcoin is a way to (encourage) process transactions right ? in hyperledger fabric i read that we use centralized validating peers control ...meaning that trusted VP which transmits the blocks to others can control and alter the history right ?

Vadim (Fri, 01 Dec 2017 07:25:07 GMT):
there are no validating peers in fabric, in the new architecture the smart contract execution and blocks building are separated onto different entities

Kemodroid (Fri, 01 Dec 2017 07:27:23 GMT):
@Vadim can you point me to a material where i can read more about how it works in the background please ?

Vadim (Fri, 01 Dec 2017 07:27:25 GMT):
currently the peers which build blocks (orderers) are using non-BFT consensus, so you could mess up with the process of building blocks potentially. But on the other hand, this situation is quite easily detectable. And since all members in fabric are known and nobody can join the network without consent of the existing orgs, it's also possible to fall back from this situation.

Vadim (Fri, 01 Dec 2017 07:27:42 GMT):
https://hyperledger-fabric.readthedocs.io/en/release/txflow.html

Kemodroid (Fri, 01 Dec 2017 08:14:14 GMT):
@Vadim thanks for the link - will read and return

gut (Fri, 01 Dec 2017 08:23:17 GMT):
@ShefaliMittal You have to join each anchor peer involved in a channel

ShefaliMittal (Fri, 01 Dec 2017 08:30:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r7eg2gxyukiwdcMwm) @gut Ok, Thanks

Kemodroid (Fri, 01 Dec 2017 08:38:56 GMT):
https://www.youtube.com/watch?v=js3Zjxbo8TM why cant we use a database here and why do i need a blockchain ?

Kemodroid (Fri, 01 Dec 2017 08:39:31 GMT):
whatever explained ^ - is also possible with a db right ?

Kemodroid (Fri, 01 Dec 2017 08:40:02 GMT):
so whats the advantage of using the blockchain ?

Vadim (Fri, 01 Dec 2017 08:44:07 GMT):
@Kemodroid who would run a db?

Kemodroid (Fri, 01 Dec 2017 08:46:26 GMT):
@Vadim everybody using distributed databases ?

Kemodroid (Fri, 01 Dec 2017 08:46:29 GMT):
not possible ?

Vadim (Fri, 01 Dec 2017 08:47:11 GMT):
how do you guarantee data consistency in a distributed database if participants misbehave?

Vadim (Fri, 01 Dec 2017 08:48:18 GMT):
and also, how do you apply commonly shared business logic in a distributed database?

wanghaihui (Fri, 01 Dec 2017 08:48:29 GMT):
Has joined the channel.

Kemodroid (Fri, 01 Dec 2017 08:52:20 GMT):
@Vadim i am not claiming i know - but just thinking aloud - participants misbehave: conflict resolutions ways based on time from multiple other participants or a consensus algorithm not possible ?

Vadim (Fri, 01 Dec 2017 08:53:14 GMT):
well blockchain does it out of the box - you won't even have conflicts

Vadim (Fri, 01 Dec 2017 08:53:34 GMT):
db with a consensus algorithm = blockchain

Vadim (Fri, 01 Dec 2017 08:53:34 GMT):
db with a BFT consensus algorithm = blockchain

Kemodroid (Fri, 01 Dec 2017 08:53:48 GMT):
commonly shared logic: the logic will be in the business logic layer right ? or can you explain what do you mean by commonly shared business logic in a distributed database?

Vadim (Fri, 01 Dec 2017 08:53:58 GMT):
smart contract

Vadim (Fri, 01 Dec 2017 08:54:48 GMT):
business layer belongs to each participant and they can do whatever they want with it, while smart contract is shared and none of the participants can modify it without consent of others

Kemodroid (Fri, 01 Dec 2017 08:56:12 GMT):
for a customer who already have their application built and running for years now - when they want to scale across locations (hence distributed data sharing) - wont the customer prefer incorporating the conflict resolution ways than rewriting the entire application on blockchain ?

Vadim (Fri, 01 Dec 2017 08:57:28 GMT):
well this is how the banks work now, and then you end up with at least 3 days of sending money transaction to a neighbor country

Vadim (Fri, 01 Dec 2017 08:57:58 GMT):
conflict resolution requires rules require time and money

Vadim (Fri, 01 Dec 2017 08:59:24 GMT):
also, the customer does not necessarily need to rewrite an entire application, just the part which involves interactions with others

Vadim (Fri, 01 Dec 2017 08:59:54 GMT):
from my experience, currently this is done over email-exchange or even post-exchange and sometimes takes weeks

Vadim (Fri, 01 Dec 2017 09:00:38 GMT):
also, at every point you have humans and humans make errors, then the errors accumulate and you spend days figuring out what went wrong and when

Kemodroid (Fri, 01 Dec 2017 09:01:56 GMT):
to rewrite an entire application, just the part which involves interactions with others = = common shared logic and data - correct ?

Vadim (Fri, 01 Dec 2017 09:02:49 GMT):
it's heavily use-case related, of course

Vadim (Fri, 01 Dec 2017 09:03:39 GMT):
but for the use cases I'm thinking about (loyalty programs, over-the-counter transactions, mobile roaming) I think this would be the case

Vadim (Fri, 01 Dec 2017 09:05:14 GMT):
also, sometimes rewriting applications can be cheaper than spending resources on inter-party communications and potential conflict resolutions

Kemodroid (Fri, 01 Dec 2017 09:08:48 GMT):
so with hyperledger fabric - the chain code is also hashed and any tampering on chain code or the blocks content will lead to a re-download of content from other genuine validators ?

Vadim (Fri, 01 Dec 2017 09:10:33 GMT):
@Kemodroid it's hashed; the tampering would violate the endorsement policy and this can be detected, then the admin of that peer would need to handle that.

Kemodroid (Fri, 01 Dec 2017 09:13:06 GMT):
@Vadim its confusing for me now...will go through the docs from beginning and get back here - thanks for the time and knowledge share

Kemodroid (Fri, 01 Dec 2017 09:13:32 GMT):
one last question for now, is there a official video series to get started on this ?

Kemodroid (Fri, 01 Dec 2017 09:14:32 GMT):
this one is a good source ? https://www.youtube.com/channel/UC7_X0WkMtkWzaVUKF-PRBNQ

Kemodroid (Fri, 01 Dec 2017 09:15:27 GMT):
naa sorry wipe that off - seems like a marketting channel

Vadim (Fri, 01 Dec 2017 09:16:40 GMT):
@Kemodroid check https://www.youtube.com/channel/UCCFdgCWH_1vCndMPVqQlwZw if you want videos

Vadim (Fri, 01 Dec 2017 09:17:06 GMT):
you can also study the tutorials like http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

matrisis (Fri, 01 Dec 2017 09:24:53 GMT):
Hi @Vadim, do you know any tutorail for hyperledger with kafka for orderers ? Thank you.

Vadim (Fri, 01 Dec 2017 09:25:48 GMT):
e2e_cli on master is using kafka: https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli

CodeReaper (Fri, 01 Dec 2017 09:35:53 GMT):
I'm not a database person, but I wanted to understand what is the database strategy which does not let the user see the data of another user if the chaincode doesnt allow it despite having same synced database for a channel? Are we using any authentication process provided by LevelDB/couchDB?

matrisis (Fri, 01 Dec 2017 09:38:08 GMT):
Thnaks.

Vadim (Fri, 01 Dec 2017 09:39:37 GMT):
@CodeReaper there is no synced db for a channel, each peer has its own db which (ideally) should be accessible only by the peer it belongs to

CodeReaper (Fri, 01 Dec 2017 09:42:11 GMT):
@Vadim But the global state is required to have a synced ledger and global state is saved in LevelDB/CouchDb right?

Vadim (Fri, 01 Dec 2017 09:42:44 GMT):
@CodeReaper yes, but there are as many db instances as peers in the network

Vadim (Fri, 01 Dec 2017 09:43:09 GMT):
each peer builds its own state and saves it in its own db instance

CodeReaper (Fri, 01 Dec 2017 09:44:17 GMT):
What my doubt is that how does a user no have and access to state of another user? Why is chaincode the only way to access these states?

Vadim (Fri, 01 Dec 2017 09:44:37 GMT):
how a user would access it?

CodeReaper (Fri, 01 Dec 2017 09:45:58 GMT):
supposedly a peer an organisation commits a transaction submitted by another user of another organization, updates its own state database.

CodeReaper (Fri, 01 Dec 2017 09:47:13 GMT):
So the peer of a organization would have the updated state database, what stops him from seeing that state of another user's state

Vadim (Fri, 01 Dec 2017 09:47:54 GMT):
a peer has access to all its state

Vadim (Fri, 01 Dec 2017 09:48:17 GMT):
you asked about how a user can see the state of another user, that's not possible

Vadim (Fri, 01 Dec 2017 09:48:21 GMT):
but peer is not a user

CodeReaper (Fri, 01 Dec 2017 09:49:24 GMT):
so a peer of an organization can view all sensitive information for any user/participant of a different organization?

Vadim (Fri, 01 Dec 2017 09:49:55 GMT):
if they are on the same channel, yes

Vadim (Fri, 01 Dec 2017 09:50:28 GMT):
because what they store in the state is supposed to be a shared data

Vadim (Fri, 01 Dec 2017 09:50:46 GMT):
if there is something really sensitive, you can use encryption

Vadim (Fri, 01 Dec 2017 09:51:00 GMT):
or hash that data and never send it to blockchaib

Vadim (Fri, 01 Dec 2017 09:51:00 GMT):
or hash that data and never send it to blockchain

CodeReaper (Fri, 01 Dec 2017 09:51:48 GMT):
If I maintain multiple channels then I cannot have a chaincode installed in one channel invoke in another channel right?

Vadim (Fri, 01 Dec 2017 09:52:46 GMT):
you can send read queries to it, afaik, write-queries are not possible

CodeReaper (Fri, 01 Dec 2017 09:53:28 GMT):
this is when the peer is present in both channels

CodeReaper (Fri, 01 Dec 2017 09:54:21 GMT):
So i guess having multiple channel makes more sense, but we cant have it for ever few organizations otherwise we'll have scalibility issues

vsadriano (Fri, 01 Dec 2017 10:56:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GDDvFJ7evWNeu8Rep) @jeffgarratt Is there a documentation about to configure chaincode generation process without mapping docker.sock? Do you know any tutorial? Thanks for reply!

mastersingh24 (Fri, 01 Dec 2017 12:05:27 GMT):
I'm not sure why you think this is a big security issue? The peer needs to be able to communicate with a Docker daemon in order to create and run chaincode. And the peer need not run as root to access the local Docker daemon over Unix sockets either since you can add users to the docker group. You can also choose to enable the Docker daemon to listen on a TCP port as well and then use that address for the CORE_VM_ENDPOINT rather than using the local Docker socket. It's also possible to configure TLS communication between the peer and the Docker daemon as well. See the VM settings in core.yaml. (https://chat.hyperledger.org/channel/fabric-questions?msg=qQgGRkgc6Fa4tfwFJ) @vsadriano

vsadriano (Fri, 01 Dec 2017 12:26:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TFyceG3cZoAa8YD8t) @mastersingh24 In view of "The owner of the docker /var/run/docker.sock is root of the host where the container is running, with default group membership to docker group. That's why mounting var/run/docker.sock inside another container gives you root privileges since now you can do anything that a root user with group membership of docker can". Anyway, I'll see the VM settings...thanks a lot!

Kemodroid (Fri, 01 Dec 2017 12:29:24 GMT):
Thanks @Vadim

CodeReaper (Fri, 01 Dec 2017 13:19:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=poQknoeq3deRNFHHF) @Vadim encryption with what, user's public key?? I believe its ecdsa only for now? and if my chaincode requires to manipulate the state it'll need the private key again which is again very insecure? What type of encryption are you referring to?

Vadim (Fri, 01 Dec 2017 14:37:18 GMT):
@CodeReaper symmetric encryption

Vadim (Fri, 01 Dec 2017 14:43:20 GMT):
https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example

Vadim (Fri, 01 Dec 2017 14:43:20 GMT):
https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example @CodeReaper

matrisis (Fri, 01 Dec 2017 14:53:57 GMT):
Hi. Do i need to have a docker container for each of my peer ? Thank you :)

Vadim (Fri, 01 Dec 2017 14:57:24 GMT):
no

matrisis (Fri, 01 Dec 2017 15:06:54 GMT):
Ty

CodeReaper (Fri, 01 Dec 2017 15:14:40 GMT):
>This call will encrypt using a random IV. This may be undesirable for instance if the chaincode invocation needs to be endorsed by multiple peers since it would cause the endorsement of conflicting read/write sets. It is possible to encrypt deterministically by specifying the IV, as follows: at first the IV must be created

CodeReaper (Fri, 01 Dec 2017 15:14:40 GMT):
`This call will encrypt using a random IV. This may be undesirable for instance if the chaincode invocation needs to be endorsed by multiple peers since it would cause the endorsement of conflicting read/write sets. It is possible to encrypt deterministically by specifying the IV, as follows: at first the IV must be created`

CodeReaper (Fri, 01 Dec 2017 15:14:40 GMT):
This call will encrypt using a random IV. This may be undesirable for instance if the chaincode invocation needs to be endorsed by multiple peers since it would cause the endorsement of conflicting read/write sets. It is possible to encrypt deterministically by specifying the IV, as follows: at first the IV must be created

CodeReaper (Fri, 01 Dec 2017 15:14:40 GMT):
@Vadim How does this get resolved? >This call will encrypt using a random IV. This may be undesirable for instance if the chaincode invocation needs to be endorsed by multiple peers since it would cause the endorsement of conflicting read/write sets. It is possible to encrypt deterministically by specifying the IV, as follows: at first the IV must be created

abutler (Fri, 01 Dec 2017 16:43:20 GMT):
Has joined the channel.

hamptonsmith (Fri, 01 Dec 2017 17:32:37 GMT):
What is the most straightforward way to have all peers collude to "reset" a channel? I've built an application for the purposes of showing off to clients and it would be nice to enable it to return to a fresh state.

hamptonsmith (Fri, 01 Dec 2017 17:33:14 GMT):
I assume there's no first-class API way to do this, but is there a single file or directory that can be deleted on each peer to simulate this?

douglasthiel (Fri, 01 Dec 2017 20:39:46 GMT):
Does anyone have an example "docker-compose-base.yaml" file with multiple MSPs they could share? I'm trying to understand how unique the directory structure needs to be for each orderer/msp.

jeffgarratt (Fri, 01 Dec 2017 21:36:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AAMhjugYDYyCyyQu3) @hamptonsmith No. You could either build a function into your chaincode to reset state. But this would not reset the chain itself (i.e. the blocks).

jeffgarratt (Fri, 01 Dec 2017 21:36:50 GMT):
the other option is to bootstrap a new network and reset the credentials in the app

hamptonsmith (Fri, 01 Dec 2017 21:52:18 GMT):
@jeffgarratt Committing a reset would be acceptable, but I don't immediately see a way to iterate over all keys on the chaincode side? GetQueryResult() could maybe work, but would that then require that each node have its own separate CouchDB configured?

jeffgarratt (Fri, 01 Dec 2017 21:52:49 GMT):
are you running this in a docker sandbox system?

jeffgarratt (Fri, 01 Dec 2017 21:53:06 GMT):
or is this bluemix or some other env?

hamptonsmith (Fri, 01 Dec 2017 21:53:15 GMT):
Docker Swarm on AWS.

jeffgarratt (Fri, 01 Dec 2017 21:53:18 GMT):
k

jeffgarratt (Fri, 01 Dec 2017 21:53:42 GMT):
yeah... this is not a trivial issue

jeffgarratt (Fri, 01 Dec 2017 21:54:07 GMT):
so I see your reason for asking :)

hamptonsmith (Fri, 01 Dec 2017 21:54:25 GMT):
Haha, yeah, sort of the opposite of the point of chaincode, so I get why there's not an easy function for this.

jeffgarratt (Fri, 01 Dec 2017 21:54:30 GMT):
other than a bulk reset of key/values

jeffgarratt (Fri, 01 Dec 2017 21:54:40 GMT):
is composer an option?

jeffgarratt (Fri, 01 Dec 2017 21:54:55 GMT):
as I think there are some simple ways to wipe things out... but I could be wrong

hamptonsmith (Fri, 01 Dec 2017 21:55:54 GMT):
I suppose I could keep a key mapped to a list of all other keys as I touch them. I imagine that wouldn't work well in a production system (I assume values in the writeset aren't deltas, so the size of the proposal would grow linearly with the set of keys...) but I can maybe swing it under these conditions.

jeffgarratt (Fri, 01 Dec 2017 21:57:10 GMT):
will think about it a bit and see if I can come up with something salient

jeffgarratt (Fri, 01 Dec 2017 21:57:25 GMT):
rapid system up would be optimal IMO

jeffgarratt (Fri, 01 Dec 2017 21:57:47 GMT):
meaning.. recreate the system... and give the App a new key per the new crypto

jeffgarratt (Fri, 01 Dec 2017 21:58:00 GMT):
this is how the fabric prototype system works

hamptonsmith (Fri, 01 Dec 2017 21:58:54 GMT):
Appreciate it. On a mildly related note, is expunging blocks something that's on the roadmap? I have at least one client for which I think that ability has legitimate use cases. At the end of the day, for a big enough distributed system somebody's eventually going to accidentally write a SSN or some other radioactive personally identifiable information and there would need to be a way to go back and clean that up.

jeffgarratt (Fri, 01 Dec 2017 21:59:32 GMT):
I would assume perhaps the forthcoming snapshot functionality may be useful in this case

jeffgarratt (Fri, 01 Dec 2017 21:59:44 GMT):
meaning.. you would snapshot just prior to the block

jeffgarratt (Fri, 01 Dec 2017 21:59:50 GMT):
and then dump and reload

jeffgarratt (Fri, 01 Dec 2017 22:00:08 GMT):
or continue on from the snapshot losing the interim (i.e. the exposed data)

jeffgarratt (Fri, 01 Dec 2017 22:00:42 GMT):
but in general... the peers could of course just keep the blocks as they may have already recieved them

jeffgarratt (Fri, 01 Dec 2017 22:00:59 GMT):
the morale of the story.... careful what you do (it is a blockchain)

jeffgarratt (Fri, 01 Dec 2017 22:01:09 GMT):
caveat emptor :)

hamptonsmith (Fri, 01 Dec 2017 22:01:33 GMT):
Absolutely. This presumes that the peer group is trusted enough to agree to actually expunge the data.

jeffgarratt (Fri, 01 Dec 2017 22:01:37 GMT):
the world will become a no take backsies very soon!!

jeffgarratt (Fri, 01 Dec 2017 22:02:03 GMT):
thus the ledger term (i.e. no deletions, just adjustments)

hamptonsmith (Fri, 01 Dec 2017 22:07:11 GMT):
Still, I'd like to see a mechanism where with a unanimously signed proposal (since any individual peer could practically refuse anyway), the peers could expunge a block and leave a breadcrumb that doesn't break the blockchain and says, "There used to be a block here. It was expunged at time T for reason R. It hashed to H." Not hard to dream up reasons why that might become important, particularly with Fabric's more B2B and less anarchistic focus.

jeffgarratt (Fri, 01 Dec 2017 22:32:39 GMT):
I understand

EmanHerawy (Sat, 02 Dec 2017 00:14:38 GMT):
Has joined the channel.

EmanHerawy (Sat, 02 Dec 2017 00:15:55 GMT):
Hi , I'm trying to pull hyperledger/fabric-peer image but I got not found error , any one can help ?

jeffgarratt (Sat, 02 Dec 2017 01:09:16 GMT):
@EmanHerawy did you supply a tag?

EmanHerawy (Sat, 02 Dec 2017 07:18:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fixWvseCFo6CwPQzY) @jeffgarratt

EmanHerawy (Sat, 02 Dec 2017 07:18:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fixWvseCFo6CwPQzY) @jeffgarratt

EmanHerawy (Sat, 02 Dec 2017 07:18:08 GMT):
Yes I did

mikykey (Sat, 02 Dec 2017 08:43:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4uT5EkNTapN2Tiife) @EmanHerawy If you are using Windows make sure to be logged in using the docker account.

Megaco (Sat, 02 Dec 2017 08:57:59 GMT):
Has joined the channel.

bizhenchao1201 (Sun, 03 Dec 2017 09:33:57 GMT):
Has joined the channel.

gut (Sun, 03 Dec 2017 11:25:09 GMT):
[I'm still thinking on this scenario.](https://chat.hyperledger.org/channel/fabric-questions?msg=w8rzDMYwanaXrkZ6w) GDPR is coming to Europe the next year, and ID sovereign is one of the strongest topics. The 'right to be forgotten' is affecting Blockchain behavior and here was pointing my first question. I know Blockchain immutability principle, but some works are in the way. Following IBM's point of view on this topic, 'control is shared across participants in a network where each person has varying degrees of permission to view data'. I can have control over what can see others about my identity, but once the info is in the ledger it is not forgettable. I can control its access, but can't forget it. @MuhammadSalah @MohammadObaid

gut (Sun, 03 Dec 2017 11:25:09 GMT):
I'm still thinking on this scenario. GDPR is coming to Europe the next year, and ID sovereign is one of the strongest topics. The 'right to be forgotten' is affecting Blockchain behavior and here was pointing my first question. I know Blockchain immutability principle, but some works are in the way. Following IBM's point of view on this topic, 'control is shared across participants in a network where each person has varying degrees of permission to view data'. I can have control over what can see others about my identity, but once the info is in the ledger it is not forgettable. I can control its access, but can't forget it. [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w8rzDMYwanaXrkZ6w) @MuhammadSalah @MohammadObaid

gut (Sun, 03 Dec 2017 11:25:09 GMT):
[I'm still thinking on this scenario. GDPR is coming to Europe the next year, and ID sovereign is one of the strongest topics. The 'right to be forgotten' is affecting Blockchain behavior and here was pointing my first question. I know Blockchain immutability principle, but some works are in the way. Following IBM's point of view on this topic, 'control is shared across participants in a network where each person has varying degrees of permission to view data'. I can have control over what can see others about my identity, but once the info is in the ledger it is not forgettable. I can control its access, but can't forget it.](https://chat.hyperledger.org/channel/fabric-questions?msg=w8rzDMYwanaXrkZ6w) @MuhammadSalah @MohammadObaid

vijay5378 (Sun, 03 Dec 2017 11:27:11 GMT):
whenever I try to deploy a java Chaincode on v1.1.0-preview, I'm getting the following error: Dec 03, 2017 11:21:49 AM org.hyperledger.fabric.shim.ChaincodeBase$1 onError SEVERE: Unable to connect to peer server: UNIMPLEMENTED: unknown service protos.ChaincodeSupport

vijay5378 (Sun, 03 Dec 2017 11:27:16 GMT):
any pointers??

gut (Sun, 03 Dec 2017 11:27:51 GMT):
Anyway, on classic architectures they have also their problems. Once the info is on the internet, it can be catched by anyone. Not just hacking, but selling the information, sometimes illegally.

MohammadObaid (Sun, 03 Dec 2017 14:09:56 GMT):
Hey all what happen if endorsing peer goes down? will transaction need to be resend again or will automatically be picked up by endorsing peers when they will be back in network?

mastersingh24 (Sun, 03 Dec 2017 15:09:29 GMT):
@MohammadObaid - If a client sends an endorsement proposal to a peer which is down, then that call will fail (and the client will need to find another peer if it does not receive enough responses from other peers). It is up to the client to resend any endorsement proposals to peers in the case where there is some type of failure. On the committing end, if a down peer comes back up it will be able to get any blocks / transactions it missed from the ordering service (or another peer).

MohammadObaid (Sun, 03 Dec 2017 15:15:33 GMT):
@mastersingh24 On the committing end peer will only get validated/committed blocks from ordering service right? or all blocks both validated and invalidated?

mastersingh24 (Sun, 03 Dec 2017 15:18:48 GMT):
The peer will get all blocks which it missed and then process those blocks exactly the same as if it had been continually receiving them from the orderer

MohammadObaid (Sun, 03 Dec 2017 15:21:44 GMT):
Alright . Thanks :)

alvaradojl (Sun, 03 Dec 2017 18:53:07 GMT):
Has joined the channel.

MuhammadSalah (Sun, 03 Dec 2017 20:50:55 GMT):
@gut I stand by your point, and I am convinced that the issue should be investigated; but I have a work around on mind; is you simply hold some external service that cyphers/decyphers the data. Hence, if you want to purge the data; you simply stop decyphering the data to the endpoints. It's like using the black INK on CIA agenda's. It may not be the most effective solution; but I think this will be the good way of thinking to go.

gut (Sun, 03 Dec 2017 22:23:00 GMT):
@MuhammadSalah Let's see what Hyperledger can offer us :) Maybe when Indy grows up. Your approach is very interesting. Go's crypto library can be used at chaincode level. I'd like to open this topic in order anyone else can give us their point of view.

MuhammadSalah (Sun, 03 Dec 2017 23:24:36 GMT):
@gut I will adopt this idea with my colleagues and I will see how it pays out. :)

blw (Mon, 04 Dec 2017 01:10:10 GMT):
has anyone seen this issue when running `make dist-clean all`? ```Building docker testenv-image docker build -t hyperledger/fabric-testenv build/image/testenv Sending build context to Docker daemon 63.25MB Step 1/10 : FROM hyperledger/fabric-buildenv:x86_64-1.1.0-alpha-snapshot-01859c34 pull access denied for hyperledger/fabric-buildenv, repository does not exist or may require 'docker login' make: *** [build/image/testenv/.dummy-x86_64-1.1.0-alpha-snapshot-263d3c08] Error 1```

blw (Mon, 04 Dec 2017 01:10:10 GMT):
Has anyone seen this issue when running `make dist-clean all`? ```Building docker testenv-image docker build -t hyperledger/fabric-testenv build/image/testenv Sending build context to Docker daemon 63.25MB Step 1/10 : FROM hyperledger/fabric-buildenv:x86_64-1.1.0-alpha-snapshot-01859c34 pull access denied for hyperledger/fabric-buildenv, repository does not exist or may require 'docker login' make: *** [build/image/testenv/.dummy-x86_64-1.1.0-alpha-snapshot-263d3c08] Error 1```

vijay5378 (Mon, 04 Dec 2017 05:40:34 GMT):
In core.yaml - there is a section related to GOSSIP: # Gossip related configuration gossip: # Bootstrap set to initialize gossip with bootstrap: 0.0.0.0:7051

vijay5378 (Mon, 04 Dec 2017 05:40:40 GMT):
Whats this used for?

CodeReaper (Mon, 04 Dec 2017 06:38:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jRayBnpEqjkyTagJA) @Vadim I went through the example, but I suppose not all usecases can be implemented with this? Suppose I have some assets whose ownership changes between different participants. I cant encrypt and store the value of the asset because other participant wont know the encryption/decryption key and cant claim ownership of the asset. Any solutions to such problems?

CodeReaper (Mon, 04 Dec 2017 06:38:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jRayBnpEqjkyTagJA) @Vadim I went through the example, but I suppose not all usecases can be implemented with this? Suppose I have some assets whose ownership changes between different participants. I can't encrypt and store the value of the asset because other participant wont know the encryption/decryption key and can't claim ownership of the asset. Any solutions to such problems?

CodeReaper (Mon, 04 Dec 2017 06:38:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jRayBnpEqjkyTagJA) @Vadim I went through the example, but I suppose not all usecases can be implemented with this? Suppose I have some assets whose ownership changes between different participants. I can't encrypt and store the value of the asset because other participant wont know the encryption/decryption key and can't claim ownership of the asset. Any solutions to such problems? If we want to implement privacy between organization's peer visibility and ignore privacy between peer's visibility for participants and assets for same organization, can this usecase be solved by implementing channels? Storing of assets on different different channel seems to be a complication from what I can tell.

Taffies (Mon, 04 Dec 2017 07:07:12 GMT):
Hello! I'm trying out the encryption example (enccc_example) but I'm getting an error whenever I try to invoke the chain. Has anyone else gotten this error as well? `Error: unknown flag: --transient` I'm not sure if it has something to do with the encshim library extension being removed but yeah... Would appreciate some help here! Thank you! :)

CodeReaper (Mon, 04 Dec 2017 07:12:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2CkBPMsQezueyfsoo) @Taffies Its 'transient' I believe

nickgaski (Mon, 04 Dec 2017 09:11:53 GMT):
@Taffies - have you moved to the 1.1-preview images? If not, I suggest you upgrade

Taffies (Mon, 04 Dec 2017 09:54:46 GMT):
@nickgaski I just updated my images but only my fabric-ca was updated to 1.1.0 preview -- is that right? (It's still not working after updating my fabric-ca image)

nickgaski (Mon, 04 Dec 2017 09:55:21 GMT):
fairly certain you need the peer to be updated as well

nickgaski (Mon, 04 Dec 2017 09:55:52 GMT):
`x86_64-1.1.0-preview` works for me on the enccc

rolandnsharp (Mon, 04 Dec 2017 10:32:37 GMT):
Hi!, I'm trying to a basic-network into a few docker containers but am now getting this error when trying to initialise fabric: `bpapi | error: [Client.js]: Failed to load user "PeerAdmin" from local key value store. Error: Error: Private key missing from key store. Can not establish the signing identity for user PeerAdmin

rolandnsharp (Mon, 04 Dec 2017 10:32:53 GMT):
*move

rolandnsharp (Mon, 04 Dec 2017 10:34:05 GMT):
But it should be registering the generated PeerAdmin keys because if I change the path I get a different error

rolandnsharp (Mon, 04 Dec 2017 10:35:28 GMT):
What is the local key value store?

rolandnsharp (Mon, 04 Dec 2017 10:42:31 GMT):
It it possible that I'm getting this error for incorrect credentials and not because it's not loading them

MuhammadSalah (Mon, 04 Dec 2017 11:54:49 GMT):
@Taffies transient is supported under 1.0.3 and 1.0.4.

mmick (Mon, 04 Dec 2017 15:51:39 GMT):
Even months after the launch of Commercial Blockchain The Fabric ( March 2017) from IBM, Why we can't find any Big Scale dapp on this Using Fabric?

Vadim (Mon, 04 Dec 2017 15:55:33 GMT):
@mmick because dapps is on ethereum?

Vadim (Mon, 04 Dec 2017 15:55:33 GMT):
@mmick because dapps are on ethereum?

mmick (Mon, 04 Dec 2017 15:56:27 GMT):
@Vadim so what's the big i can't find?

Vadim (Mon, 04 Dec 2017 15:57:07 GMT):
and also fabric unlike ethereum is a private chain and I from my experience, many companies just don't open source their projects

mmick (Mon, 04 Dec 2017 15:58:20 GMT):
at least their should be hustle in the market, "Org X" has implemented a system on fabric.

Vadim (Mon, 04 Dec 2017 15:58:26 GMT):
also, most of dapps on ethereum are various ICOs

Vadim (Mon, 04 Dec 2017 15:58:51 GMT):
well search for "fabric maersk"

Vadim (Mon, 04 Dec 2017 15:59:41 GMT):
I see also a lot of news if I enter "hyperledger fabric" on news.google.com

Vadim (Mon, 04 Dec 2017 15:59:50 GMT):
for you it's different?

mmick (Mon, 04 Dec 2017 16:02:34 GMT):
the thing boggling me is that i see no apps on fabric but every noe and then there is an ICO from some ethereum based app.

mmick (Mon, 04 Dec 2017 16:03:14 GMT):
you name an area and ethereum is backing a system in that area.

Vadim (Mon, 04 Dec 2017 16:03:58 GMT):
well frankly speaking, most of ethereum websites claim that they do something, while in fact the focus is mostly on ICO

Vadim (Mon, 04 Dec 2017 16:04:17 GMT):
and again, ethereum is public chain, while fabric is not

mmick (Mon, 04 Dec 2017 16:05:32 GMT):
what's some other after the "fabric maersk" cause their last press release is from march 2017.

Vadim (Mon, 04 Dec 2017 16:06:08 GMT):
go to news.google.com and enter "hyperledger fabric"

mmick (Mon, 04 Dec 2017 16:06:15 GMT):
Sure.

mmick (Mon, 04 Dec 2017 16:10:29 GMT):
So Russians are top in the list!

mmick (Mon, 04 Dec 2017 16:13:00 GMT):
https://screenshots.firefox.com/bMMwBYpIGYozNEz6/news.google.com

mmick (Mon, 04 Dec 2017 16:13:13 GMT):
i was expecting more of an list.

mmick (Mon, 04 Dec 2017 16:13:13 GMT):
i was expecting more of a list

mmick (Mon, 04 Dec 2017 16:15:42 GMT):
@Vadim BTW i have used Hyperledger Composer and it's fairly easy to use. what's the major difference community see between sdk's (node or java) and composer?

jmaheswaran (Mon, 04 Dec 2017 16:47:37 GMT):
Has joined the channel.

jmaheswaran (Mon, 04 Dec 2017 17:16:04 GMT):
How can I test the REST API for the `chaincode-docker-devmode` network?

jarias (Mon, 04 Dec 2017 17:17:18 GMT):
Has joined the channel.

jarias (Mon, 04 Dec 2017 17:17:22 GMT):
Anyone know the most common reason for a grpc "error: code = Unavailable desc = transport: write tcp 172.25.0.6:58610->172.25.0.4:7050: write: broken pipe" when trying to invoke chaincode in a cli container?

jeffgarratt (Mon, 04 Dec 2017 17:35:24 GMT):
@jarias sometimes this can be a TLS config issue

jeffgarratt (Mon, 04 Dec 2017 17:36:10 GMT):
if TLS is on, make sure to provide the --tls option

jarias (Mon, 04 Dec 2017 17:37:26 GMT):
thanks, id forgotten that tls was enabled, that looks to have solved my problem

Taffies (Tue, 05 Dec 2017 02:06:20 GMT):
@MuhammadSalah i'm definitely at least on v1.0.4 but i can't see transient anywhere hmmm. do i need to download anything else or something?

bitdream (Tue, 05 Dec 2017 02:07:23 GMT):
Has joined the channel.

bitdream (Tue, 05 Dec 2017 02:08:07 GMT):
hi all,how can I get a java chaincode tar package in v1.0.2.I have annotated the limitations of the Java language in the source code.When i used peer chaincode install , it returns ok ,but when I use peer chaincode instantiate ,it returns error,"Failed to generated platform-specific DockerFIle:Build file not found".I read the source ,it seems like parsing the tar package failure. it seems like there is a problem in the way of packing the java chaincode .What is the directory structure of the tar package or What tools can help me to make tar packages ?

hariexcel (Tue, 05 Dec 2017 03:26:27 GMT):
Has joined the channel.

MohammadObaid (Tue, 05 Dec 2017 05:55:28 GMT):
Does anyone here get `segmentation fault` error while generating genesis.block using configtxgen tool

MohammadObaid (Tue, 05 Dec 2017 05:55:28 GMT):
Does anyone here get `segmentation fault` error while generating genesis.block using configtxgen tool?

bitdream (Tue, 05 Dec 2017 09:12:17 GMT):

Clipboard - December 5, 2017 5:11 PM

bitdream (Tue, 05 Dec 2017 09:13:30 GMT):

Clipboard - December 5, 2017 5:12 PM

bitdream (Tue, 05 Dec 2017 09:15:46 GMT):
when i instantiate the java chaincode in container cli , the container peer0.org1.example.com log above show it is ,it seems like dns problem,how can i resolve it ?

DarshanBc (Tue, 05 Dec 2017 10:42:22 GMT):
can the world state be shared between 2 channels

lvdh (Tue, 05 Dec 2017 13:42:19 GMT):
Has joined the channel.

dave.enyeart (Tue, 05 Dec 2017 13:59:10 GMT):
chaincode on one channel can query chaincode on another channel, for details see https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66-L80

albrandt (Tue, 05 Dec 2017 15:37:51 GMT):
Has left the channel.

michael_aR (Tue, 05 Dec 2017 15:39:34 GMT):
Has joined the channel.

michael_aR (Tue, 05 Dec 2017 15:39:38 GMT):
Any good solution for an IDE to write chaincode for windows user ? Because i saw that Composer with VSCode and Hyperledger Composer VSCode plugin is Linux & Mac support only.

aatkddny (Tue, 05 Dec 2017 16:05:53 GMT):
I've looked for a while now and can't find the answer to this. I know it's written to a file, but not where (as I'd like to override it so it will stick around along with my state DB when I kill my peer containers). So the question is: Where is the ledger (or more accurately the chain) written when running in a container?

MohammadObaid (Tue, 05 Dec 2017 17:54:37 GMT):
Hey @dave.enyeart @Vadim when any peer container goes down and then retry to join channel what command should we run . I ran this command `peer channel join -b a.block -o orderer3rth-orgc` but getting follwoing error

MohammadObaid (Tue, 05 Dec 2017 17:54:37 GMT):
Hey @dave.enyeart @Vadim when any peer container goes down and then retry to join channel what command should I run . I ran this command `peer channel join -b a.block -o orderer3rth-orgc` but getting follwoing error

MohammadObaid (Tue, 05 Dec 2017 17:54:37 GMT):
Hey @dave.enyeart @Vadim when any peer container goes down and then retry to join channel what command should I run . I ran this command `peer channel join -b a.block -o orderer3rth-orgc` but getting follwoing error

MohammadObaid (Tue, 05 Dec 2017 17:54:37 GMT):
Hey @nickgaski when any peer container goes down and then retry to join channel what command should I run . I ran this command `peer channel join -b a.block -o orderer3rth-orgc` but getting following error

MohammadObaid (Tue, 05 Dec 2017 17:55:09 GMT):

a.png

MohammadObaid (Tue, 05 Dec 2017 17:56:02 GMT):
Another question is what block file should we passed in join channel request? genesis block or latest block file?

MohammadObaid (Tue, 05 Dec 2017 18:03:39 GMT):
I think I have to include admin identity in request but I dont know what flags I should use to do.

nammn (Tue, 05 Dec 2017 18:53:22 GMT):
Has joined the channel.

nammn (Tue, 05 Dec 2017 18:56:10 GMT):
Hi Guys, im currently trying to write some chaincode. I have the container from the fabcar example. peer0.org1.example.com , on it i have deployed 2 chaincodes . ```docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME" -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE"``` ```docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME_REGISTER" -v 1.0 -p "$CC_SRC_PATH_REGISTER" -l "$LANGUAGE" ``` Now im invoking per nodejs api a transaction which is finally saved. I can query it in one chaincode, but the ledger is empty in the other one. Do you guys have any idea where i should start to look? :D

nammn (Tue, 05 Dec 2017 18:56:10 GMT):
Hi Guys, im currently trying to write some chaincode. I have the container from the fabcar example. peer0.org1.example.com , on it i have deployed 2 chaincodes . ```docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME" -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE"``` ```docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME_REGISTER" -v 1.0 -p "$CC_SRC_PATH_REGISTER" -l "$LANGUAGE" ``` Now im invoking per nodejs api a transaction which is finally saved. I can query it in one chaincode, but the ledger is empty in the other one. Do you guys have any idea where i should start to look? :D

nammn (Tue, 05 Dec 2017 18:56:10 GMT):
Hi Guys, im currently trying to write some chaincode. I have the container from the fabcar example. peer0.org1.example.com , on it i have deployed 2 chaincodes . ``` docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME" -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE" ``` ```docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n "$CC_NAME_REGISTER" -v 1.0 -p "$CC_SRC_PATH_REGISTER" -l "$LANGUAGE" ``` Now im invoking per nodejs api a transaction which is finally saved. I can query it in one chaincode, but the ledger is empty in the other one. Do you guys have any idea where i should start to look? :D

gbolo (Tue, 05 Dec 2017 19:31:14 GMT):
hey all, does the peer binary support getting endorsements form multiple peers?

samwood (Tue, 05 Dec 2017 20:15:50 GMT):
have folks tried setting up fabric with couchdb over https?

nchangfong (Tue, 05 Dec 2017 20:41:50 GMT):
Has left the channel.

jeffgarratt (Tue, 05 Dec 2017 21:21:28 GMT):
@nammn did both peers join the channel and did you instantiate the chaincode in the channel?

jeffgarratt (Tue, 05 Dec 2017 21:21:28 GMT):
@nammn did both peers join the channel?

jeffgarratt (Tue, 05 Dec 2017 21:22:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SJX9SNpMraDrTWdqs) @MohammadObaid Think this needs to be the genesis block today

nammn (Tue, 05 Dec 2017 21:51:38 GMT):
@jeffgarratt Actually i only had one peer, which joined the channel with the necessary blocks etc. . On this peer i've deployed both chaincodes (installation + invoke)

MuhammadSalah (Tue, 05 Dec 2017 23:31:57 GMT):
@MohammadObaid You need first block of this channel.

MuhammadSalah (Tue, 05 Dec 2017 23:33:01 GMT):
And before hand you should update the channel configuration to accept the new org.

MuhammadSalah (Tue, 05 Dec 2017 23:33:29 GMT):
using configtxlator/ CLI

MuhammadSalah (Tue, 05 Dec 2017 23:34:30 GMT):
check Nick Gaski video on youtube; adding an organization to byfn.

poisontofu (Wed, 06 Dec 2017 01:47:35 GMT):
Has joined the channel.

MohammadObaid (Wed, 06 Dec 2017 05:50:24 GMT):
@MuhammadSalah Yeah I watched that video but I am not adding new org or new peer . I want to know if participating peer goes down and after some time it cames alive then how that peer wil join channel . In nick gaski video he is adding completely new organization

MuhammadSalah (Wed, 06 Dec 2017 05:52:11 GMT):
maybe just do peer join channel

MuhammadSalah (Wed, 06 Dec 2017 05:52:39 GMT):
with channel tx maybe like usual

MohammadObaid (Wed, 06 Dec 2017 05:53:08 GMT):
Hmm . I will try that

vijay5378 (Wed, 06 Dec 2017 07:26:43 GMT):
hi,

vijay5378 (Wed, 06 Dec 2017 07:27:00 GMT):
when I try to make a peer join a channel , I get an error -Error: Error getting endorser client channel: error trying to connect to local peer: context deadline exceeded

MohammadObaid (Wed, 06 Dec 2017 07:28:55 GMT):
@vijay5378 check new peer docker ip . Is new peer is in the same subnet as in existing docker containers?

vijay5378 (Wed, 06 Dec 2017 07:29:15 GMT):
@MohammadObaid Thanks ...im not using docker in this example

MohammadObaid (Wed, 06 Dec 2017 07:29:32 GMT):
Alright

MohammadObaid (Wed, 06 Dec 2017 07:29:32 GMT):
Alright sorry

MohammadObaid (Wed, 06 Dec 2017 07:34:37 GMT):
Btw as per my experience this error comes in when your peer couldnt communicate with ordering service or local peers.

vijay5378 (Wed, 06 Dec 2017 07:39:51 GMT):
@MohammadObaid thanks

vijay5378 (Wed, 06 Dec 2017 09:43:14 GMT):
Hi...in configtx.yaml, when we provide the path to the msp's of the various peer orgs, I assume that it requires only the public keys right? I can safely remove the keystore from this path?

KangkanBora (Wed, 06 Dec 2017 11:08:04 GMT):
Has joined the channel.

MohitYadav2317 (Wed, 06 Dec 2017 11:08:26 GMT):
Has joined the channel.

MohitYadav2317 (Wed, 06 Dec 2017 11:08:29 GMT):
hi vadim can you help me with 2 questions please? 1.) does the query car by id query the couchdb or the blockchain file? 2.) How is blockchain file in /var/hyperledger/production/chains/chains/mychannel/blockfile_0000 is mapped to the couchdb entries?

nickgaski (Wed, 06 Dec 2017 11:31:50 GMT):
@vijay5378 - yes only signed certificates get mounted into a channel's config block. In particular, three certs from each org are defined - admin user cert, CA root cert and TLS root cert

NitinPrakash (Wed, 06 Dec 2017 11:37:32 GMT):
Has joined the channel.

NitinPrakash (Wed, 06 Dec 2017 11:38:14 GMT):
while starting the peer container:

NitinPrakash (Wed, 06 Dec 2017 11:38:16 GMT):
panic: Could not open current file for detecting last block in the file: bufio: negative count

NitinPrakash (Wed, 06 Dec 2017 11:38:26 GMT):
I am getting the above error

NitinPrakash (Wed, 06 Dec 2017 11:38:52 GMT):
Please help

asuchit (Wed, 06 Dec 2017 12:01:14 GMT):
I created below setup : Host1: Root CA Host2: Orderer CA, Org1 CA, Org2 CA Host3 : running orderer Host4 : running org1 peer1 Host5 running org2 peer1 CAs are running as native binaries because these are required to generate the certificate. orderer, org1 peer1 and org2 peer1 are running on docker. peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./c hannel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile channel-artifacts/cert.pem While creating the channel, I am getting following error : 2017-12-06 11:23:45.051 UTC [grpc] Printf -> DEBU 003 Failed to dial orderer.example.com:7050: connection error: desc = "transport: authentication handshake failed: x509: certificate is valid for orgOrdererCa, not orderer.example.com"; please retry. Error: Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate is valid for orgOrdererCa, not orderer.example.com" Please help me that, where am I doing mistake. Thanks

Vadim (Wed, 06 Dec 2017 12:06:06 GMT):
@asuchit are you using the wrong TLS cert for the orderer?

Vadim (Wed, 06 Dec 2017 12:06:27 GMT):
it looks like you run it with orgOrdererCa cert

asuchit (Wed, 06 Dec 2017 12:19:24 GMT):
@Vadim yes, Even I saw it but not able to find out that where is error. For root ca : --ca.name "rootCa" For org1 ca : --id.name "org1Ca" --id.affiliation "org1" --ca.name "org1Ca" For org2 ca : --id.name "org2Ca" --id.affiliation "org2" --ca.name "org2Ca" For orgOrderer ca : --id.name "orgOrderer" --id.affiliation "org3" --ca.name "orgOrdererCa" orderer : --id.name "orderer1" --id.affiliation "org3" org1 peer1 : --id.name "org1peer1" --id.affiliation "org1" org2 peer1 : --id.name "org2peer1" --id.affiliation "org2" I think, I am doing some mistake in these settings. orderer docker file is : version: '3' networks: net_byfn: external: name: net_byfn services: orderer_example_com: container_name: orderer.example.com networks: - net_byfn image: hyperledger/fabric-orderer environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/7bc76027970c97dc92303cb836dcf7954f466c6aaa42eb242071ef56d9155641_sk - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/cert.pem - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/tls-cert.pem] working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./genesis/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ./msp:/var/hyperledger/orderer/msp - ./tls/:/var/hyperledger/orderer/tls ports: - 7050:7050 networks: net_byfn: aliases: - orderer.example.com

Vadim (Wed, 06 Dec 2017 12:21:19 GMT):
@asuchit check this cert: /var/hyperledger/orderer/tls/cert.pem and make sure it's for orderer and not ordererOrgCa

asuchit (Wed, 06 Dec 2017 12:30:13 GMT):
@Vadim - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/7bc76027970c97dc92303cb836dcf7954f466c6aaa42eb242071ef56d9155641_sk - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/cert.pem Above 2 certificate generated using below command : ./fabric-ca-client enroll --enrollment.profile tls -u https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 -M ~/Desktop/Hyperledger/fabric-ca/bin/client/orderer1/tls --csr.hosts "107.109.107.106" --tls.certfiles /home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem,/home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/rootCa/tls-cert.pem Is it fine ?

Vadim (Wed, 06 Dec 2017 12:31:19 GMT):
why "orgOrdererCa"?

asuchit (Wed, 06 Dec 2017 12:33:26 GMT):
https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 this is orderer ca running on system 107.109.107.54 and called with user:password

asuchit (Wed, 06 Dec 2017 12:33:26 GMT):
@Vadim https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 this is orderer ca running on system 107.109.107.54 and called with user:password

Vadim (Wed, 06 Dec 2017 12:33:54 GMT):
so user == orgOrdererCa?

asuchit (Wed, 06 Dec 2017 12:34:03 GMT):
yes

Vadim (Wed, 06 Dec 2017 12:34:15 GMT):
why?

Vadim (Wed, 06 Dec 2017 12:35:21 GMT):
it should be "orderer.example.com" if you ask me

Vadim (Wed, 06 Dec 2017 12:38:14 GMT):
or what does "csr.hosts "107.109.107.106"" do? Can you add there orderer.example.com? But in any case, enrolling ordering identity with "orgOrderer*Ca*" does not seem correct

asuchit (Wed, 06 Dec 2017 12:38:59 GMT):
Have user name any role here ? I feel that--ca.name should have that role. if not then what is the role of ca.name ?

Vadim (Wed, 06 Dec 2017 12:40:47 GMT):
when you do "enroll ... https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056" the cert is issued for orgOrdererCa, hence your error message

Vadim (Wed, 06 Dec 2017 12:41:11 GMT):
because the orderer presents the cert for orgOrdererCa, but you access it by hostname orderer.example.com

vijay5378 (Wed, 06 Dec 2017 12:41:19 GMT):
what is the section under gossip: # Bootstrap set to initialize gossip with bootstrap: BOOTSTRAP do in core.yaml? What should I provide for bootstrap?

asuchit (Wed, 06 Dec 2017 12:42:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Gwh78QZjWuJzJLf5a) @Vadim I am setting the ip address of the machine in csr.hosts while creating root ca and intermediateca otherwise I was getting error while creating admin and registering intermediate ca or orderer/peer. So same is followed every place

Vadim (Wed, 06 Dec 2017 12:44:03 GMT):
@asuchit just read the cert you give to orderer with openssl, you will see that there is no "orderer.example.com" present, but instead "orgOrdererCa"

asuchit (Wed, 06 Dec 2017 12:48:12 GMT):
@Vadim yes, I read and found same as you told. so if I change networks: net_byfn: aliases: - orderer.example.com TO networks: net_byfn: aliases: - orgOrdererCa It should work and I should call the command with orgOrdererCa instead orderer.example.com am I right ?

Vadim (Wed, 06 Dec 2017 12:48:32 GMT):
why do you call your orderer CA?

Vadim (Wed, 06 Dec 2017 12:48:44 GMT):
you are issuing a cert wrong

Vadim (Wed, 06 Dec 2017 12:48:44 GMT):
you are issuing a wrong cert

asuchit (Wed, 06 Dec 2017 12:55:35 GMT):
Even I on same page that I need to call orderer service not orderer CA. But not able to find out the mess. evene I will set the orderer.example.com as username that it would be username of the orderer ca, not the orderer service right ?

Vadim (Wed, 06 Dec 2017 12:57:15 GMT):
so when you want to get the cert from CA you need first 1) register and then 2) enroll; how did you register the orderer?

asuchit (Wed, 06 Dec 2017 12:57:40 GMT):
Intermediate orgOrderer Admin tls ./fabric-ca-client enroll --enrollment.profile tls -u https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 -M ~/Desktop/Hyperledger/fabric-ca/bin/client/orgOrdererCaAdmin/tls --csr.hosts "107.109.107.106" --tls.certfiles ~/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem Intermediate orgOrderer Admin ./fabric-ca-client enroll -c client/orgOrdererCaAdmin/config.yaml -u https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 --tls.certfiles ~/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem --csr.hosts "107.109.107.106" Orderer1 tls ./fabric-ca-client enroll --enrollment.profile tls -u https://orgOrdererCa:orgOrdererCapw@107.109.107.54:7056 -M ~/Desktop/Hyperledger/fabric-ca/bin/client/orderer1/tls --csr.hosts "107.109.107.106" --tls.certfiles /home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem,/home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/rootCa/tls-cert.pem Orderer1 register ./fabric-ca-client register -c client/orgOrdererCaAdmin/config.yaml --id.name "orderer1" --id.type "orderer" --id.affiliation "org3" --csr.hosts "107.109.107.106" --tls.certfiles /home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem Orderer1 ./fabric-ca-client enroll -c client/orderer1/config.yaml -u https://orderer1:sPuPTRoJKqiU@107.109.107.54:7056 --csr.hosts "107.109.107.106" --tls.certfiles /home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/rootCa/ca-cert.pem,/home/utkarsh/Desktop/Hyperledger/fabric-ca/bin/server/orgOrdererCA/tls-cert.pem

Vadim (Wed, 06 Dec 2017 12:59:10 GMT):
the last line you use orderer1 as a user name, can you use the same name to get the TLS cert?

asuchit (Wed, 06 Dec 2017 13:07:15 GMT):
orderer1 definitely is coming in the msp signing certificate because it is set in the command but same would not appear in tls signing certificate

asuchit (Wed, 06 Dec 2017 13:07:50 GMT):
msp signing certificate : Signature Algorithm: ecdsa-with-SHA256 Issuer: C=US, ST=North Carolina, O=Hyperledger, OU=client, OU=org3, CN=orgOrderer Validity Not Before: Nov 28 09:39:00 2017 GMT Not After : Nov 28 09:39:00 2018 GMT Subject: C=US, ST=North Carolina, O=Hyperledger, OU=orderer, OU=org3, CN=orderer1 Subject Public Key Info:

asuchit (Wed, 06 Dec 2017 13:08:19 GMT):
tls signing certificate : Signature Algorithm: ecdsa-with-SHA256 Issuer: C=US, ST=North Carolina, O=Hyperledger, OU=client, OU=org3, CN=orgOrderer Validity Not Before: Nov 28 09:01:00 2017 GMT Not After : Nov 28 09:01:00 2018 GMT Subject: C=US, ST=North Carolina, O=Hyperledger, OU=client, CN=orgOrdererCa Subject Public Key Info:

Vadim (Wed, 06 Dec 2017 13:09:26 GMT):
because you enroll orgOrdererCa, but should orderer1 and perhaps provide "orderer.example.com" in csr.hosts

asuchit (Wed, 06 Dec 2017 13:15:58 GMT):
set csr.hosts to "orderer.example.com" in all registration, enroll orderer tls and enroll orderer ?

Vadim (Wed, 06 Dec 2017 13:16:24 GMT):
well try

Vadim (Wed, 06 Dec 2017 13:16:48 GMT):
you can always read the cert with openssl and check if it seems correct or not

asuchit (Wed, 06 Dec 2017 13:18:49 GMT):
but I did not see the csr.hosts entry in the any certificate. I feel It will not help.

asuchit (Wed, 06 Dec 2017 13:19:20 GMT):
It always set in config file

Vadim (Wed, 06 Dec 2017 13:19:28 GMT):
what is this for: csr.hosts "107.109.107.106"?

asuchit (Wed, 06 Dec 2017 13:22:40 GMT):
I do not know the exact definition but when I was creating the admin of root CA from another system, root CA was not reachable if config file do not have entry of ip address in csr.hosts section.

Vadim (Wed, 06 Dec 2017 13:23:12 GMT):
can you send me the certificate for orderer?

asuchit (Wed, 06 Dec 2017 13:23:54 GMT):
sorry, Company does not allow any attachment

Vadim (Wed, 06 Dec 2017 13:23:58 GMT):
I think csr.hosts provide subject alt names (SANs) which in your case should be orderer.example.com

asuchit (Wed, 06 Dec 2017 13:24:12 GMT):
yes

asuchit (Wed, 06 Dec 2017 13:24:12 GMT):
yes, correct, It is in the certificate

asuchit (Wed, 06 Dec 2017 13:26:17 GMT):
X509v3 Subject Alternative Name: IP Address:107.109.107.106

asuchit (Wed, 06 Dec 2017 13:32:05 GMT):
@Vadim Thanks for giving your time. I will try it thanks again

muasif80 (Wed, 06 Dec 2017 13:33:40 GMT):
Has joined the channel.

vijay5378 (Wed, 06 Dec 2017 14:02:11 GMT):
@Vadim Can you point me to any info on what bootstrap under the section gossip do in core.yaml? What would be appropriate values to put there?

MatiasKruk (Wed, 06 Dec 2017 14:22:13 GMT):
Has joined the channel.

MatiasKruk (Wed, 06 Dec 2017 14:25:36 GMT):
Hi all! I'm new in this but I curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-preview but I have this error: ===> List out hyperledger docker images WARNING: Error loading config file:/.../.docker/config.json - open /.../.docker/config.json: authentication error

MatiasKruk (Wed, 06 Dec 2017 14:25:36 GMT):
Hi all! I'm new in this when I do curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-preview I have this error: ===> List out hyperledger docker images WARNING: Error loading config file:/.../.docker/config.json - open /.../.docker/config.json: authentication error

MatiasKruk (Wed, 06 Dec 2017 14:25:36 GMT):
Hi all! I'm new in this when I do curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-preview I have this error: ===> List out hyperledger docker images WARNING: Error loading config file:/.../.docker/config.json - open /.../.docker/config.json: authentication error could not read CA certificate "/Users/matiasleandrokruk/.docker/machine/machines/default/ca.pem": open /Users/matiasleandrokruk/.docker/machine/machines/default/ca.pem: authentication error

MatiasKruk (Wed, 06 Dec 2017 14:25:36 GMT):
Hi all! I'm new in this when I do curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-preview I have this error: ===> List out hyperledger docker images WARNING: Error loading config file:/.../.docker/config.json - open /.../.docker/config.json: authentication error could not read CA certificate "/...machine/machines/default/ca.pem": open /.../.docker/machine/machines/default/ca.pem: authentication error

MatiasKruk (Wed, 06 Dec 2017 14:56:41 GMT):
Now I have this error: sudo ./byfn.sh -m generate => cryptogen: error: open ./crypto-config.yaml: operation not permitted

Vadim (Wed, 06 Dec 2017 14:59:15 GMT):
@MatiasKruk why do you use sudo?

MatiasKruk (Wed, 06 Dec 2017 14:59:31 GMT):
I tried also without it

MatiasKruk (Wed, 06 Dec 2017 14:59:39 GMT):
and I have the same error

Vadim (Wed, 06 Dec 2017 14:59:45 GMT):
everything should work without sudo

MatiasKruk (Wed, 06 Dec 2017 15:00:06 GMT):
./byfn.sh -m generate Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' Continue (y/n)? y proceeding ... /Users/matiasleandrokruk/workspace/tensorflow-testbed/fabric-samples/first-network/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## cryptogen: error: open ./crypto-config.yaml: operation not permitted, try --help Failed to generate certificates...

Nuwan-Walisundara (Wed, 06 Dec 2017 15:01:05 GMT):
Has joined the channel.

MuhammadSalah (Wed, 06 Dec 2017 15:03:06 GMT):
@MatiasKruk Make sure you delete the folder first "crypto-config"

MuhammadSalah (Wed, 06 Dec 2017 15:03:27 GMT):
It must have been created by admin rights. And it's not accessible to script without the sudo.

MuhammadSalah (Wed, 06 Dec 2017 15:04:19 GMT):
And also check the owner ship of your yaml files.

MatiasKruk (Wed, 06 Dec 2017 15:04:33 GMT):
ok. Let me check it

MuhammadSalah (Wed, 06 Dec 2017 15:04:37 GMT):
chown it to your user if it's set to root

MuhammadSalah (Wed, 06 Dec 2017 15:05:12 GMT):
tyt

MatiasKruk (Wed, 06 Dec 2017 15:06:18 GMT):
the files are with my user. the crypt-config.yaml in first-network folder has the next permissions: -rw-r--r--

MatiasKruk (Wed, 06 Dec 2017 15:06:30 GMT):
@MuhammadSalah

MatiasKruk (Wed, 06 Dec 2017 15:06:51 GMT):
and there's no folder with the name crypto-config

MuhammadSalah (Wed, 06 Dec 2017 15:06:56 GMT):
hmmm

MuhammadSalah (Wed, 06 Dec 2017 15:06:59 GMT):
create it :D

MuhammadSalah (Wed, 06 Dec 2017 15:07:04 GMT):
mkdir crypto-config

MatiasKruk (Wed, 06 Dec 2017 15:07:16 GMT):
in first-network folder?

MuhammadSalah (Wed, 06 Dec 2017 15:07:18 GMT):
ye

MatiasKruk (Wed, 06 Dec 2017 15:07:24 GMT):
ok. let me check it :)

MuhammadSalah (Wed, 06 Dec 2017 15:07:32 GMT):
I don't remember but one of the tools seemed to refuse creating folders.

MuhammadSalah (Wed, 06 Dec 2017 15:07:37 GMT):
Probably configtxgen.

MuhammadSalah (Wed, 06 Dec 2017 15:07:42 GMT):
But you may create it anyway.

MuhammadSalah (Wed, 06 Dec 2017 15:07:45 GMT):
And try

MuhammadSalah (Wed, 06 Dec 2017 15:09:36 GMT):
the script tries to delete the crypto-config then uses the binary

MuhammadSalah (Wed, 06 Dec 2017 15:09:39 GMT):
to generate it again

MatiasKruk (Wed, 06 Dec 2017 15:09:40 GMT):
I'm n it

MatiasKruk (Wed, 06 Dec 2017 15:10:03 GMT):
########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## rm: crypto-config: Operation not permitted cryptogen: error: open ./crypto-config.yaml: operation not permitted, try --help Failed to generate certificates...

MatiasKruk (Wed, 06 Dec 2017 15:10:12 GMT):
pemissins?

MuhammadSalah (Wed, 06 Dec 2017 15:10:42 GMT):
It looks like a permissions problem yes

MuhammadSalah (Wed, 06 Dec 2017 15:10:57 GMT):
Where do you put the first-network folder?

MuhammadSalah (Wed, 06 Dec 2017 15:11:27 GMT):
Is it somewhere that's like opt?

MuhammadSalah (Wed, 06 Dec 2017 15:11:34 GMT):
any root owned path?

MatiasKruk (Wed, 06 Dec 2017 15:11:46 GMT):
it's a workspace folder, inside my user home

MatiasKruk (Wed, 06 Dec 2017 15:11:57 GMT):
it's not in root

MuhammadSalah (Wed, 06 Dec 2017 15:11:59 GMT):
okay kind of weird.

MatiasKruk (Wed, 06 Dec 2017 15:12:09 GMT):
It's Mac OS

MatiasKruk (Wed, 06 Dec 2017 15:12:12 GMT):
not Linux

MuhammadSalah (Wed, 06 Dec 2017 15:12:17 GMT):
Ahhh.. okayy

MuhammadSalah (Wed, 06 Dec 2017 15:12:30 GMT):
I never owned a Mac

MuhammadSalah (Wed, 06 Dec 2017 15:12:31 GMT):
xD

MuhammadSalah (Wed, 06 Dec 2017 15:12:36 GMT):
Can't be much of help here

MatiasKruk (Wed, 06 Dec 2017 15:12:49 GMT):
hehe. Ok. let me try with 777 in this folder.

MatiasKruk (Wed, 06 Dec 2017 15:12:54 GMT):
maybe it fixes

MuhammadSalah (Wed, 06 Dec 2017 15:13:03 GMT):
yea

MuhammadSalah (Wed, 06 Dec 2017 15:13:12 GMT):
maybe you don't have w on the workspace folder

MuhammadSalah (Wed, 06 Dec 2017 15:13:14 GMT):
or so

MatiasKruk (Wed, 06 Dec 2017 15:13:37 GMT):
kinda weid because my pjects ae thee

MuhammadSalah (Wed, 06 Dec 2017 15:13:58 GMT):
It's weird I give you that

MuhammadSalah (Wed, 06 Dec 2017 15:13:59 GMT):
anyway

MuhammadSalah (Wed, 06 Dec 2017 15:14:01 GMT):
could you do that

MuhammadSalah (Wed, 06 Dec 2017 15:14:04 GMT):
by your own

MuhammadSalah (Wed, 06 Dec 2017 15:14:06 GMT):
like

MatiasKruk (Wed, 06 Dec 2017 15:14:25 GMT):
yeah

MuhammadSalah (Wed, 06 Dec 2017 15:14:27 GMT):
cryptogen --config=./crypto-config.yaml

MatiasKruk (Wed, 06 Dec 2017 15:14:38 GMT):
Ok

MuhammadSalah (Wed, 06 Dec 2017 15:14:44 GMT):
lets see what it pops up

MuhammadSalah (Wed, 06 Dec 2017 15:14:56 GMT):
I assume you have the binaries in your PATH

MatiasKruk (Wed, 06 Dec 2017 15:15:00 GMT):
yeah

MuhammadSalah (Wed, 06 Dec 2017 15:15:05 GMT):
good

MuhammadSalah (Wed, 06 Dec 2017 15:15:30 GMT):
So what does it give you?

MatiasKruk (Wed, 06 Dec 2017 15:15:49 GMT):
cryptogen --config=crypto-config.yaml cryptogen: error: unknown long flag '--config', try --help

MatiasKruk (Wed, 06 Dec 2017 15:15:59 GMT):
there's no --config

MuhammadSalah (Wed, 06 Dec 2017 15:16:05 GMT):
sorry

MuhammadSalah (Wed, 06 Dec 2017 15:16:17 GMT):
cryptogen generate --config=./crypto-config.yaml

MuhammadSalah (Wed, 06 Dec 2017 15:16:26 GMT):
I forgot that "generate" thing.

MuhammadSalah (Wed, 06 Dec 2017 15:16:32 GMT):
My mistake sir

MatiasKruk (Wed, 06 Dec 2017 15:16:39 GMT):
k n pblem :)

MatiasKruk (Wed, 06 Dec 2017 15:16:54 GMT):
tying again

MuhammadSalah (Wed, 06 Dec 2017 15:17:04 GMT):
lets what it pays

MuhammadSalah (Wed, 06 Dec 2017 15:17:06 GMT):
lets see*

MatiasKruk (Wed, 06 Dec 2017 15:17:19 GMT):
I'll let u knw

MuhammadSalah (Wed, 06 Dec 2017 15:17:30 GMT):
Always here to help

MatiasKruk (Wed, 06 Dec 2017 15:17:37 GMT):
cryptogen generate --config=./crypto-config.yaml cryptogen: error: open ./crypto-config.yaml: operation not permitted, try --help

MatiasKruk (Wed, 06 Dec 2017 15:17:47 GMT):
weird

MuhammadSalah (Wed, 06 Dec 2017 15:17:59 GMT):
could you

MuhammadSalah (Wed, 06 Dec 2017 15:18:02 GMT):
ls -ah

MuhammadSalah (Wed, 06 Dec 2017 15:18:07 GMT):
ls -alh

MuhammadSalah (Wed, 06 Dec 2017 15:18:10 GMT):
I guess

MuhammadSalah (Wed, 06 Dec 2017 15:18:14 GMT):
to check the permissions

MuhammadSalah (Wed, 06 Dec 2017 15:18:21 GMT):
just the crypto-config.yaml

MatiasKruk (Wed, 06 Dec 2017 15:18:23 GMT):
-rw-r--r-- 1 matiasleandrokruk staff 3,8K 6 dic 11:05 crypto-config.yaml

MuhammadSalah (Wed, 06 Dec 2017 15:18:24 GMT):
I am interested in

MatiasKruk (Wed, 06 Dec 2017 15:18:28 GMT):
hmm

MatiasKruk (Wed, 06 Dec 2017 15:18:59 GMT):
maybe I should try +w?

MuhammadSalah (Wed, 06 Dec 2017 15:19:10 GMT):
ye

MatiasKruk (Wed, 06 Dec 2017 15:20:08 GMT):
I did +777

Vadim (Wed, 06 Dec 2017 15:20:21 GMT):
@MatiasKruk try with absolute path to crypto-config.yaml

MatiasKruk (Wed, 06 Dec 2017 15:21:18 GMT):
k

MatiasKruk (Wed, 06 Dec 2017 15:22:36 GMT):
same message:

MatiasKruk (Wed, 06 Dec 2017 15:22:36 GMT):
cryptogen generate --config=/Users/matiasleandrokruk/workspace/tensorflow-testbed/fabric-samples/first-network/crypto-config.yaml cryptogen: error: open /Users/matiasleandrokruk/workspace/tensorflow-testbed/fabric-samples/first-network/crypto-config.yaml: operation not permitted, try --help

MatiasKruk (Wed, 06 Dec 2017 15:23:15 GMT):
I can open that file

MuhammadSalah (Wed, 06 Dec 2017 15:29:06 GMT):
I have no idea!

PatrickOrtell (Wed, 06 Dec 2017 15:29:59 GMT):
Has joined the channel.

MatiasKruk (Wed, 06 Dec 2017 15:30:17 GMT):
No problem. I'll check a bit more in google

MatiasKruk (Wed, 06 Dec 2017 15:40:51 GMT):
If the yaml is ommited I have this other error: cryptogen generate org1.example.com Error generating local MSP for {peer0 peer0.org1.example.com [peer0.org1.example.com peer0]}: rename crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/peer0.org1.example.com-cert.pem crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt: operation not permitted

MuhammadSalah (Wed, 06 Dec 2017 16:09:11 GMT):
what do you mean if yaml is omitted

MuhammadSalah (Wed, 06 Dec 2017 16:09:11 GMT):
?

MatiasKruk (Wed, 06 Dec 2017 16:51:44 GMT):
cryptogen generate

brucezhu512 (Wed, 06 Dec 2017 17:35:03 GMT):
Has joined the channel.

brucezhu512 (Wed, 06 Dec 2017 17:39:10 GMT):
is the binary file for your OS? e.g. I used to run 'cryptogen' of Mac version on Linux

brucezhu512 (Wed, 06 Dec 2017 17:39:51 GMT):
and it did work at all

brucezhu512 (Wed, 06 Dec 2017 17:40:02 GMT):
*didn't

MohammadObaid (Wed, 06 Dec 2017 17:53:08 GMT):
Hi all . When new peer join an existing channel , I think they need to install chaincode . So when I try to install chaincode from peer terminal `peer chaincode install -n firstchaincode -v 1.0 -p firtchaincode` I am getting error ```Error: Error getting chaincode code chaincode: : failed with error: "exec: not started"``` . Is something missing in peer docker image or any package which I need to install in peer terminal ? `

aatkddny (Wed, 06 Dec 2017 19:49:26 GMT):
is it really "firtchaincode" ?

aatkddny (Wed, 06 Dec 2017 19:49:26 GMT):
@MohammadObaid is it really "firtchaincode" ?

aatkddny (Wed, 06 Dec 2017 19:52:24 GMT):
How do you version chaincode? I just tried signing, installing and instantiating a piece of chain code with -v 2.0. It obviously installs ok, but when you try to instantiate it you get an error on the peer `Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: chaincode exists` Of course it exists - version 1.0 was there. Ought it not to hash name and version? Otherwise what's the point of having version?

rolandnsharp (Thu, 07 Dec 2017 01:06:00 GMT):
Hi everyone. I've got a hyperledger network running on my local machine but as I attempt to move everything over into Docker im getting this error: ```bpapi | error: [Client.js]: Failed to load user "PeerAdmin" from local key value store. Error: Error: Private key missing from key store . Can not establish the signing identity for user PeerAdmin ```

rolandnsharp (Thu, 07 Dec 2017 01:06:55 GMT):
I've checked that my PeerAdmin identity material is in the correct path and that the network urls have been updated to be docker paths and ports

qiang0723 (Thu, 07 Dec 2017 02:11:10 GMT):
Has joined the channel.

muasif80 (Thu, 07 Dec 2017 07:29:40 GMT):
Starting business network definition. This may take a minute... Error: Error trying to instantiate composer runtime. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# composer/vendor/gopkg.in/olebedev/go-duktape.v3 In file included from chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go:7:0: chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go: In function '_duk_error': chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h:510:127: warning: right-hand operand of comma expression has no effect [-Wunused-value] (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) ^ chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/api.go:153:2: note: in expansion of macro 'duk_error' duk_error(ctx, err_code, "%s", str); ^ # composer/vendor/gopkg.in/olebedev/go-duktape.v3 chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:134: constant 18446744073709551615 overflows int " Command failed

Vadim (Thu, 07 Dec 2017 07:57:56 GMT):
@aatkddny you need to upgrade it, not instantiate

nharshita (Thu, 07 Dec 2017 08:44:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2PX562FvH5usnFxCw) @rolandnsharp I was able to solve this by removing keystores used, when was testing client app (balance-transfer). rm -rf /tmp/fabric-client-kv-org* ; (inside client app) rm -rf fabric-client-kv-org*

rolandnsharp (Thu, 07 Dec 2017 10:00:56 GMT):
@nharshita Can you please be a little more specific about what you are removing here?

rolandnsharp (Thu, 07 Dec 2017 10:01:32 GMT):
is that folder not specific to your project?

rolandnsharp (Thu, 07 Dec 2017 10:03:22 GMT):
are you talking about deleting something from within a docker container? I'm using docker compose to join this all together

nharshita (Thu, 07 Dec 2017 10:44:29 GMT):
In case of balance-transfer example, client's keystore/credentialStore will be created inside the balance-transfer directory and /tmp as per the yaml config file of the organization (balance-transfer/artifacts/org1.yaml). When I get the error you specified, I remove those 2 directories and restart the network. Then the error will be resolved. Hope i made my point clear

muasif80 (Thu, 07 Dec 2017 10:54:49 GMT):
I could not setup hyperledger fabric composer on windows. But then i have setup it using hyper-v/ubuntu vm

MohammadObaid (Thu, 07 Dec 2017 14:45:16 GMT):
@nharshita Can you help me on this issue . Hi all . When new peer join an existing channel , I think they need to install chaincode . So when I try to install chaincode from peer terminal `peer chaincode install -n firstchaincode -v 1.0 -p firtchaincode` I am getting error ```Error: Error getting chaincode code chaincode: : failed with error: "exec: not started"``` . Is something missing in peer docker image or any package which I need to install in peer terminal ? `

MohammadObaid (Thu, 07 Dec 2017 14:45:56 GMT):
@nharshita Can you help me on this issue [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kzX7NNv2Hrvzo4EfT)

jarias (Thu, 07 Dec 2017 14:58:41 GMT):
Hello all, I'm trying to use the balance-transfers sample with some chaincode I wrote, but the chaincode contains packages I wrote and am trying to import, but when I try to instantiate, I get errors saying it can't find the packages. Where do I need to mount these packages so it can build correctly?

MuhammadSalah (Thu, 07 Dec 2017 15:46:29 GMT):
vendor them

MuhammadSalah (Thu, 07 Dec 2017 15:47:02 GMT):
Create a folder vendor

MuhammadSalah (Thu, 07 Dec 2017 15:47:10 GMT):
and put the packages inside

mikykey (Thu, 07 Dec 2017 15:49:46 GMT):
Hello to everybody. I noticed running a fabric instance consumes a lot of hard drive storage. With 2 peers (1 organization) 1 cli, 1 CouchDB, 1 orderer containers, storing in blockchain about 1GB of data, more than 60GB of my hard drive have been consumed. How is it possible? I also tried with 4 peers and 4 CouchDB containers to store 5MB, about 1GB consumed of hard drive consumed. Thanks in advance.

holocron (Thu, 07 Dec 2017 16:03:10 GMT):
@mikykey how are you shipping the data? What's the payload size per transaction?

holocron (Thu, 07 Dec 2017 16:03:36 GMT):
how many transactions are you storing per block, how many blocks are are you storing?

mikykey (Thu, 07 Dec 2017 16:08:30 GMT):
I created a function receiving a file of 1MB, about 400 records. I store each record in the chain. Predefined block size. I do putState for each of the record. I do return shim.Success for each record. Is it the problem?

mikykey (Thu, 07 Dec 2017 16:08:30 GMT):
@holocron I created a function receiving a file of 1MB, about 400 records. I store each record in the chain. Predefined block size. I do putState for each of the record. I do return shim.Success for each record. Is it the problem?

holocron (Thu, 07 Dec 2017 16:14:08 GMT):
so.. your incoming transaction contains a file of 1MB, then you process 400 records from the file and putState on each record?

a.hyper (Thu, 07 Dec 2017 16:14:15 GMT):
Hi All - I'm able to create my BNA file from my business network code and deploy it to my Fabric containers successfully. When I bring my containers down, edit my model.cto file (simple change like adding an email to my User participant), recreated my BNA, bring up containers, and deploy I was expecting to see all my old data there. What is deleting the data and how do I change a model without deleting my data.

holocron (Thu, 07 Dec 2017 16:14:17 GMT):
yeah I don't think this is a good pattern

mikykey (Thu, 07 Dec 2017 16:18:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F8QStWDhAhpPKA7mt) @holocron exactly. I did it to speed up the feeding of the blockchain to do some tests. I try modifying something and then I will tell you. Thank you very much :)

jarias (Thu, 07 Dec 2017 16:39:31 GMT):
What's the process for vendoring my packages? I have them in my src/ folder and i've tried doing `govendor add [package name]` in my fabric folder in my src/ folder, but im still having errors saying the packages cant be found

MuhammadSalah (Thu, 07 Dec 2017 21:20:23 GMT):
@jarias you just create a vendor folder, and put them there. no need to the govendor init and add stuff. At least that's how I do it.

MuhammadSalah (Thu, 07 Dec 2017 21:21:00 GMT):
Just make sure what you vendor is treated as if it's part of gopath.

MuhammadSalah (Thu, 07 Dec 2017 21:21:13 GMT):
So make sure you reference your packages right.

blackdog1987 (Fri, 08 Dec 2017 01:17:37 GMT):
can not run the `chaincode-docker-devmode`.

blackdog1987 (Fri, 08 Dec 2017 01:18:46 GMT):

Clipboard - December 8, 2017 9:18 AM

nharshita (Fri, 08 Dec 2017 05:32:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kRGCJQpkPz6cSQDFE) @MohammadObaid Haven't encountered this issue myself. But, if you can tell me the fabric envorinment details, I'll try to reproduce the issue and see if i have something to say on it.

MohammadObaid (Fri, 08 Dec 2017 06:40:52 GMT):
Hey @nharshita Solved it . Actually I was running chaincode install command peer image instead of fabrictool image that's why I was getting this error

MohammadObaid (Fri, 08 Dec 2017 06:40:52 GMT):
Hey @nharshita Solved it . Actually I was running chaincode install command from peer image instead of fabrictool image that's why I was getting this error

asuchit (Fri, 08 Dec 2017 07:21:03 GMT):
We have 2 types of certificates CA certificates and CA tls certificates. Why are we having 2 and How and when are these certificates used ?

MohitYadav2317 (Fri, 08 Dec 2017 07:41:28 GMT):
hi everyone can anyone explain where do we have hashes for the block? is there a way to retrieve a block using shim api?

Vadim (Fri, 08 Dec 2017 07:45:04 GMT):
@MohitYadav2317 what's your use case?

MohitYadav2317 (Fri, 08 Dec 2017 07:46:13 GMT):
i would like to query for the blocks of the blockchain, something like we see on https://blockchain.info/block/0000000000000000004c7fa47637304d6581ac63c21b9abe8d3af6c396e324f5

Vadim (Fri, 08 Dec 2017 07:46:49 GMT):
you have to do it using sdks, not chaincode

MohitYadav2317 (Fri, 08 Dec 2017 07:47:37 GMT):
ok can you please suggest the approach? i mean i saw the methods in shim api and there is no helper method.

MohitYadav2317 (Fri, 08 Dec 2017 07:48:06 GMT):
eventually sdk will invoke particular chaincode mthod right?

Vadim (Fri, 08 Dec 2017 07:48:59 GMT):
yes, but of the system chaincode

MohitYadav2317 (Fri, 08 Dec 2017 07:49:55 GMT):
ah ok so how do i go about that? can you please suggest the approach? where is system chaincode stored?

Vadim (Fri, 08 Dec 2017 07:52:18 GMT):
Use SDK, e.g. node SDK you can use https://fabric-sdk-node.github.io/Channel.html#queryInfo__anchor to get block height and then query individual blocks with https://fabric-sdk-node.github.io/Channel.html#queryBlock__anchor

MohitYadav2317 (Fri, 08 Dec 2017 07:55:01 GMT):
thank you very much @Vadim i will read about it and get back to you in case i need some clarification.

medhak19 (Fri, 08 Dec 2017 09:34:16 GMT):
I want to access user ecert attributes in the chaincode, but somehow not able to fetch them the chaincode. Following are the details of what I am doing for access control inside my nodejs and Go code. I can see the user attributes received in the CA logs. But I am not sure if it really becomes a part of the ecert sent to the user on enrollment. When I try to read the attributes in the chaincode I get nothing. Please see on rocket chat if someone can help understand the mistake I am making 1. Code below is used to register a user in NodeJS with attributes var attributes = {name: 'attr1', value: 'somevalue'}; member = adminUserObj; return caClient.register({ enrollmentID: username, affiliation: userOrg + '.department2', attrs: [attributes] }, member); 2. Code below is used to enroll a user in NodeJS from step 1 above }).then((secret) => { enrollmentSecret = secret; return caClient.enroll({ enrollmentID: username, enrollmentSecret: secret }); } 3. Inside the chain code (.go) I use the following to get attributes from the user certificate Import github.com/hyperledger/fabric/core/chaincode/lib/cid val, ok, err := cid.GetAttributeValue(APIstub, "attr1") if err != nil { logger.Error("Error while fetching attribure attr1 --------") } if !ok { logger.Error("Something went wrong while getting the user attribute ------- ") } else { logger.Info("User attribute ------- " + val) } This piece of code always prints "Something went wrong while getting the user attribute ------- "

Vadim (Fri, 08 Dec 2017 09:40:45 GMT):
@medhak19 var attributes = {Name: 'attr1', Value: 'somevalue', Ecert: true};

mikykey (Fri, 08 Dec 2017 09:47:42 GMT):
@holocron I tried modifying configtx.yaml from basic-network sample. BatchTimeout: 40s MaxMessageCount: 1000 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 5 MB In Coudch DB web interface I see channel: 5.6MB - 12548 # of Docs https://github.com/cendhu/fetch-block this tool shows me 4 blocks have been created Still 300MB of data consumed (used df linux command). Is there something to change yet?

mikykey (Fri, 08 Dec 2017 09:48:24 GMT):
I did also other tests with larger MaxMessageCount and MaxBytes, Timeout, etc. but still very large values

hobozilla (Fri, 08 Dec 2017 09:57:22 GMT):
Hi, I have a use case where items created in the blockchain are immutable but expire after a particular datetime. There will be many hundreds of millions of them added every week so I'd quite like to remove the anything not required. So my questions are: a) Are the item and the transaction that creates the item separate things? b) If so, are they stored in separate places (is the KV store is different to the ledger)? c) Is there a more efficient way of removing old items than adding transactions to delete them from the KV store? d) Does the entire history of transactions (from day 1) need to be kept for ever, or after some time does the most recent x days of transactions provide enough to validate against Sorry for any misguided assumptions I have, I'm struggling to hit all the components of fabric in my head. I can provide more details on the use case if it would help.

medhak19 (Fri, 08 Dec 2017 12:41:40 GMT):
@Vadim ...Thanks for the prompt reply, however it didn't work. Is it because some kind of versioning mismatch ?

Vadim (Fri, 08 Dec 2017 12:49:18 GMT):
@medhak19 read your cert with openssl (`openssl x509 -in yourcert.pem -text -noout`), do you see any attributes?

stevehooperjr (Fri, 08 Dec 2017 14:48:17 GMT):
Is it recommended, discouraged, or neutral to use fabric images @ 1.0.5 with the node client @ 1.0.2 ?

Vadim (Fri, 08 Dec 2017 14:50:09 GMT):
@stevehooperjr I think the latest SDK is 1.0.2 and you should use it

stevehooperjr (Fri, 08 Dec 2017 15:00:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rrWWa6AzikZBxkFX7) @Vadim Yes but is that SDK compatible with the latest fabric images on Docker (1.0.5) ?

Vadim (Fri, 08 Dec 2017 15:01:47 GMT):
@stevehooperjr https://lists.hyperledger.org/pipermail/hyperledger-fabric/2017-December/002424.html

hincapie (Fri, 08 Dec 2017 15:38:25 GMT):
Has joined the channel.

hincapie (Fri, 08 Dec 2017 15:41:01 GMT):
@hobozilla did you get a reply on your use case? I can see that being something regulators would ask about

MuhammadSalah (Fri, 08 Dec 2017 16:01:58 GMT):
@hobozilla @gut This seems to be an issue required by many use cases, and I suggest whenever someone reaches a proper solution, please provide it here. Tecnalia team, have already proposed a similar use case of expunging data; and I think it would be cool if such feature can be implemented. _________ Throughout my experience, Banks for example, archive their data into a safe storage over regular period to flush it out of their working systems. There should be some mechanism to achieve such a thing; and hopefully not just creating a new ledger, and archiving the last one.

Vadim (Fri, 08 Dec 2017 16:03:59 GMT):
@MuhammadSalah @hobozilla @gut found this ticket: https://jira.hyperledger.org/browse/FAB-106

hobozilla (Fri, 08 Dec 2017 16:18:06 GMT):
@Vadim thanks for that, I haven't had any other replies so I'll keep an eye on that ticket. Could you clear up my thinking about points b) and c) ?

hobozilla (Fri, 08 Dec 2017 16:18:06 GMT):
@Vadim / @MuhammadSalah thanks for that, I haven't had any other replies so I'll keep an eye on that ticket. Could you clear up my thinking about points b) and c) ?

Vadim (Fri, 08 Dec 2017 16:21:37 GMT):
@hobozilla KV store is current world state, ledger is a history of transactions which updated that state; state is rebuild individually on each peer, ledger is distributed over blocks; there is no other way to remove items. When you do stub.DelState, the item is removed from the state and the TX is recorded on the ledger. Imagine that you don't put the tx to the ledger, then the peers won't be able to rebuilt the state correctly.

hobozilla (Fri, 08 Dec 2017 16:22:20 GMT):
thanks, that makes sense

MuhammadSalah (Fri, 08 Dec 2017 17:03:31 GMT):
@Vadim I am checking it out, thank you.

MuhammadSalah (Fri, 08 Dec 2017 17:07:14 GMT):
@Vadim so sad the ticket seems to be few months old.

MuhammadSalah (Fri, 08 Dec 2017 17:07:28 GMT):
I hope they are not dropping it. It doesn't seem to be a priority.

jeffgarratt (Fri, 08 Dec 2017 17:21:22 GMT):
@MuhammadSalah @Vadim I believe the pruning support is slated for the 1.2 release (or shortly thereafter)

MuhammadSalah (Fri, 08 Dec 2017 17:24:06 GMT):
@jeffgarratt 1.2 release, that means this feature not going to be sticking in the LTS version?

MuhammadSalah (Fri, 08 Dec 2017 17:24:54 GMT):
And also, there should be some mechanism to allow updating the fabric infrastructure without tearing up the whole thing.

jeffgarratt (Fri, 08 Dec 2017 17:25:40 GMT):
@MuhammadSalah by update do you mean upgrade?

MuhammadSalah (Fri, 08 Dec 2017 17:25:47 GMT):
Ah yes, upgrade.

MuhammadSalah (Fri, 08 Dec 2017 17:25:57 GMT):
I mean, I think you can push down peers, and up them again.

MuhammadSalah (Fri, 08 Dec 2017 17:26:08 GMT):
But what happens if the orderer service goes down?

jeffgarratt (Fri, 08 Dec 2017 17:26:12 GMT):
k... that work is underway and is being tested as we speak

MuhammadSalah (Fri, 08 Dec 2017 17:26:20 GMT):
Ah that's sweet.

MuhammadSalah (Fri, 08 Dec 2017 17:26:24 GMT):
I am just interested as usual :D

jeffgarratt (Fri, 08 Dec 2017 17:26:33 GMT):
always appreciated :)

MuhammadSalah (Fri, 08 Dec 2017 17:26:46 GMT):
I always like seeing you here monsieur :)

jeffgarratt (Fri, 08 Dec 2017 17:27:12 GMT):
like wise... https://github.com/jeffgarratt/fabric-prototype/blob/master/features/upgrade.feature

jeffgarratt (Fri, 08 Dec 2017 17:27:33 GMT):
that is a technical verification that is actually being used to drive the full documentation

MuhammadSalah (Fri, 08 Dec 2017 17:28:16 GMT):
I trust your work sir. :D I just digest by my own pace :) Thank you for sharing.

jeffgarratt (Fri, 08 Dec 2017 17:28:40 GMT):
@MuhammadSalah but verify... :) always

MuhammadSalah (Fri, 08 Dec 2017 17:29:00 GMT):
Well, I blow things up :D

MuhammadSalah (Fri, 08 Dec 2017 17:29:32 GMT):
and I come over here all ranting about it :D

jeffgarratt (Fri, 08 Dec 2017 17:29:38 GMT):
also -> https://jira.hyperledger.org/browse/FAB-6123

gut (Sun, 10 Dec 2017 22:57:27 GMT):
When were v0.6 and 1.0 release dates?

silliman (Sun, 10 Dec 2017 23:19:23 GMT):
@gut 1.0 release was announced on July 11, 2017, see https://www.hyperledger.org/announcements/2017/07/11/hyperledger-announces-production-ready-hyperledger-fabric-1-0 Re 0.6, September 16, 2016 was a key date as stated here: http://fabricrepo.readthedocs.io/en/master/releases/

Jonny (Mon, 11 Dec 2017 09:02:08 GMT):
Is there any build in function that I can use to retrieve record creation and update date? Or I need to store is manually in the ledger?

medhak19 (Mon, 11 Dec 2017 09:19:48 GMT):
@Vadim, thanks for the tip. The attributes were not present in the certificate itself, the reason being, I was using fabric-ca server version 1.0.0. The issue was resolved after shifting to version x86_64-1.1.0-preview. Thanks a lot for your prompt inputs

mikykey (Mon, 11 Dec 2017 09:27:38 GMT):
Hi. I continued tests of overhead in terms of storage. I modified the block size (enlarge) to about 4MB. Storing a trace of about 1GB, I downloaded all the created blocks (peer channel fetch), they sum to 1.2GB (good). With 2 peers and 1 CouchDB. But a very large overhead (total 14GB of storage consumption on hard drive) -> I expected no more than 5GB having only 2 peers. Are there other source of storage consumption? Thanks in advance

mikykey (Mon, 11 Dec 2017 09:30:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uKK4bxhDpfXA4busR) @Jonny Hi! What about GetHistoryForKey? https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetHistoryForKey

mikykey (Mon, 11 Dec 2017 09:35:46 GMT):
Hello to everybody. I continued tests of overhead in terms of storage. I modified the block size (enlarge) to about 4MB. Storing a trace of about 1GB, I downloaded all the created blocks (peer channel fetch), they sum to 1.2GB (good). With 2 peers and 1 CouchDB. But a very large overhead (total 14GB of storage consumption on hard drive) -> I expected no more than 5GB having only 2 peers. Are there any other sources of storage consumption? I know there exists block, state, history ledgers. Thanks in advance

Vadim (Mon, 11 Dec 2017 09:36:36 GMT):
@mikykey how do you measure the storage consumption on hard drive?

mikykey (Mon, 11 Dec 2017 09:36:58 GMT):
@Vadim df command linux

Vadim (Mon, 11 Dec 2017 09:37:24 GMT):
you use docker?

mikykey (Mon, 11 Dec 2017 09:37:36 GMT):
yes

Vadim (Mon, 11 Dec 2017 09:40:05 GMT):
@mikykey try with `docker system df -b`

Vadim (Mon, 11 Dec 2017 09:40:05 GMT):
@mikykey try with `docker system df -v`

MohitYadav2317 (Mon, 11 Dec 2017 11:56:32 GMT):
hi all, i have a use case where i am making transactions using the `userid` key and now i want to query using a key for a particular user, now since it is possible that the subsequent transactions for a user might be in different blocks in blockchain so how can i query to get all the transactions with a userid: 'userid1'

MohitYadav2317 (Mon, 11 Dec 2017 11:57:55 GMT):
My understanding is that i can use `GetHistoryForKey` shim method to get the history for this particular key, but this will query the history db(which is mutable) and not the actual blockchain right?

mikykey (Mon, 11 Dec 2017 13:19:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CQ3c7wWcoTG9qZoCv) @Vadim Thank you very much. Storage consumption shown with this command is correct. Using df under linux there are about 9GB more with respect to the space shown by 'docker system df -v' . I think docker produces a large overhead.

matrisis (Mon, 11 Dec 2017 13:34:20 GMT):
Hi, when i run query.js with node i get the following error : `returned x509: certificate signed by unknown authority`

matrisis (Mon, 11 Dec 2017 13:34:50 GMT):
Do you have any idea why ?

MohitYadav2317 (Mon, 11 Dec 2017 15:02:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L268ZyGcCSzsdmi8z)

guolidong (Tue, 12 Dec 2017 06:02:04 GMT):
Has joined the channel.

asuchit (Tue, 12 Dec 2017 11:41:51 GMT):
RootCaCert ----> RootCaTlsCert | v InterCaCert -----> InterCaTlsCert | \ v -----> OrdererTlsCert OrdererCert My certificates are generating like above and I am confused how to write ORDERER_GENERAL_TLS_ROOTCAS array. But based on above senario, it should be set with InterCaCert, RootCaCert. And also in the above manner, no use of RootCaTlsCert and InterCaTlsCert. Can someone correct/guide me in it?

asuchit (Tue, 12 Dec 2017 11:41:51 GMT):
@yacovm In my case, When starting the root ca with tls enabled than RootCaTlsCert issuer is RootCaCert.

yacovm (Tue, 12 Dec 2017 11:44:12 GMT):
There is no connection between the root CAs and the TLS root CAs, @asuchit

asuchit (Tue, 12 Dec 2017 11:47:47 GMT):
Sorry It got edited previous query

yacovm (Tue, 12 Dec 2017 11:50:59 GMT):
I don't understand what youre asking

yacovm (Tue, 12 Dec 2017 11:51:06 GMT):
can you phrase that as a question instead of a statement?

asuchit (Tue, 12 Dec 2017 11:52:06 GMT):
@yacovm RootCaCert -> InterCaCert -> OrdererCert RootCaTlsCert -> InterCaTlsCert -> OrdererTlsCert Am I right that certificate should be in this manner ?

asuchit (Tue, 12 Dec 2017 11:55:36 GMT):
@yacovm How to create/start a Root CA with 2 certificates (RootCaCert and RootCaTlsCert) without the connection with each other ?

yacovm (Tue, 12 Dec 2017 11:57:34 GMT):
ah

yacovm (Tue, 12 Dec 2017 11:57:40 GMT):
yes of course that's.. right

yacovm (Tue, 12 Dec 2017 11:57:46 GMT):
but, that's according to definition no?

yacovm (Tue, 12 Dec 2017 11:57:55 GMT):
root CA signs the intermediate CAs

yacovm (Tue, 12 Dec 2017 11:58:00 GMT):
which sign the leaves

asuchit (Tue, 12 Dec 2017 11:59:03 GMT):
is it same in case of tls certs ?

yacovm (Tue, 12 Dec 2017 11:59:57 GMT):
yes

asuchit (Tue, 12 Dec 2017 12:02:51 GMT):
hmm Thanks Than How can I generate RootCaTlsCert certificate ?

Luxii (Tue, 12 Dec 2017 12:10:39 GMT):
Any help on this is appreciated https://stackoverflow.com/questions/47772274/docker-network-not-getting-created-as-attachable-in-standalone-swarm

Vadim (Tue, 12 Dec 2017 12:11:42 GMT):
@Luxii perhaps you need to upgrade your another machine from 17.06 to 17.09 or even newer?

CodeReaper (Tue, 12 Dec 2017 12:13:15 GMT):
17.09.1 is the latest version @Vadim

CodeReaper (Tue, 12 Dec 2017 12:13:57 GMT):
and starting the docker swarm manager and consul itself results in downgrading of version of swarm manager

CodeReaper (Tue, 12 Dec 2017 12:14:20 GMT):
we've tested in on 17.06 and 17.09.1

CodeReaper (Tue, 12 Dec 2017 12:15:59 GMT):

Clipboard - December 12, 2017 5:45 PM

CodeReaper (Tue, 12 Dec 2017 12:16:37 GMT):
checking the version of the manager we see, it downgraded itself for some reason

CodeReaper (Tue, 12 Dec 2017 12:17:58 GMT):
downgraded API version that is

Vadim (Tue, 12 Dec 2017 12:18:53 GMT):
@Luxii I have docker 17.11

Vadim (Tue, 12 Dec 2017 12:19:43 GMT):
@CodeReaper @Luxii don't you think that the server is just too old?

Vadim (Tue, 12 Dec 2017 12:20:00 GMT):
seems like you update the docker client, but the server remains old

CodeReaper (Tue, 12 Dec 2017 12:31:53 GMT):
@Vadim How did deduct that server version is old? We've made the container from the latest tag-1.2.8

CodeReaper (Tue, 12 Dec 2017 12:32:54 GMT):
that version for the server is swarm/1.2.8, where the tag is 1.2.8

Vadim (Tue, 12 Dec 2017 12:33:19 GMT):
why is it not the same as client?

Vadim (Tue, 12 Dec 2017 12:34:12 GMT):
are you using the old docker swarm? Now it's built-in

Vadim (Tue, 12 Dec 2017 12:34:49 GMT):
you just install docker-ce and it has swarm in it, no need to install standalone docker swarm

CodeReaper (Tue, 12 Dec 2017 12:35:32 GMT):
we're following this tutorial on official site-https://docs.docker.com/swarm/install-manual/#step-3-install-engine-on-each-node

Vadim (Tue, 12 Dec 2017 12:36:31 GMT):
yes, for standalone docker swarm

CodeReaper (Tue, 12 Dec 2017 12:36:41 GMT):
directly statrting consul and manager, and checking version of the swarm manager gives this downgrading of docker API

Vadim (Tue, 12 Dec 2017 12:36:59 GMT):
because the client api is newer of server api

Vadim (Tue, 12 Dec 2017 12:37:11 GMT):
you need to use docker-ce, not standalone swarm

CodeReaper (Tue, 12 Dec 2017 12:37:34 GMT):
what you are referring to is I believe swarm mode and not swarm standalone?

Vadim (Tue, 12 Dec 2017 12:37:42 GMT):
yes

CodeReaper (Tue, 12 Dec 2017 12:38:45 GMT):
docker standalone does not allow network creation at this point?

CodeReaper (Tue, 12 Dec 2017 12:39:15 GMT):
*attachable network

Vadim (Tue, 12 Dec 2017 12:39:16 GMT):
no idea

CodeReaper (Tue, 12 Dec 2017 12:40:00 GMT):
any particular docs or tutuorials for swarm mode without virtual box??

CodeReaper (Tue, 12 Dec 2017 12:40:00 GMT):
any particular docs or tutorials for swarm mode without virtual box??

Vadim (Tue, 12 Dec 2017 12:40:33 GMT):
shall I google it for you?

Vadim (Tue, 12 Dec 2017 12:41:39 GMT):
https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/

CodeReaper (Tue, 12 Dec 2017 12:41:39 GMT):
nevermind, was just asking for direction, will stick with standalone swarm until we get to know exact problem

CodeReaper (Tue, 12 Dec 2017 12:41:42 GMT):
thanks

Vadim (Tue, 12 Dec 2017 12:42:35 GMT):
@CodeReaper the problem is that swarm is replaced with swarmkit and I don't think it's being developed anymore

Vadim (Tue, 12 Dec 2017 12:43:12 GMT):
check their repo, the last commit one month ago

CodeReaper (Tue, 12 Dec 2017 12:43:35 GMT):
Ok

CodeReaper (Tue, 12 Dec 2017 12:43:46 GMT):
will look into it

PetrVlasekCA (Tue, 12 Dec 2017 16:49:05 GMT):
Has joined the channel.

EmmvnuelCvs (Tue, 12 Dec 2017 18:31:13 GMT):
Has joined the channel.

EmmvnuelCvs (Tue, 12 Dec 2017 18:31:19 GMT):
He there! I'm having problems to run the Hyperledger Fabric locally, due Docker is sending me the following error in the console: "Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/x86_64-1.0.4: unauthorized: incorrect username or password"... Previously I was able to run the Hyperledger Fabric on the localhost:8080... Can somebody help?

MuhammadSalah (Tue, 12 Dec 2017 18:37:26 GMT):
Do you need sudo to run docker?

MuhammadSalah (Tue, 12 Dec 2017 18:37:43 GMT):
On your machine.

MuhammadSalah (Tue, 12 Dec 2017 18:39:35 GMT):
And I tried that link it seems you can't access that image?

EmmvnuelCvs (Tue, 12 Dec 2017 18:40:12 GMT):
well, basically I did it as sudo, but the error persisted. What I had to do, was to clear all the containers and install them again :disappointed:

MuhammadSalah (Tue, 12 Dec 2017 18:41:50 GMT):
hold on

MuhammadSalah (Tue, 12 Dec 2017 18:41:56 GMT):
just run this

MuhammadSalah (Tue, 12 Dec 2017 18:42:02 GMT):
docker run hello-world

MuhammadSalah (Tue, 12 Dec 2017 18:42:06 GMT):
NO SUDO

MuhammadSalah (Tue, 12 Dec 2017 18:42:16 GMT):
Then we talk :)

MuhammadSalah (Tue, 12 Dec 2017 18:46:28 GMT):
Because, if that's the case that you can't issue containers without the super doer privelleges, maybe your containers can't do the same.

MuhammadSalah (Tue, 12 Dec 2017 18:46:46 GMT):
Although I am not sure.

MuhammadSalah (Tue, 12 Dec 2017 18:47:07 GMT):
But hopefully, if that's the case the fix is easy.

wordforthis (Tue, 12 Dec 2017 22:44:09 GMT):
Hi, I've successfully followed the instructions at hyperledger-fabric.readthedocs.io/en/master/channel_update.html to add an organization to a new channel, but I'm trying to understand how this process will work in an environment where the different organizations are on different servers. At the start, Org1 and Org2 are both joined to mychannel, and they want to give a new organization Org3 access to that channel. The first step is to create Org3's crypto material (cryptogen generate --config=org3-crypto.yaml) -- certainly that would be done on Org3's server. The next step is to create the Org3 configuration material (configtxgen -printOrg Org3MSP > org3.json). Org1 (or Org2) needs this org3.json file to add Org3 to mychannel, but the org3.json file contains Org3's admin user cert, CA root cert and TLS root cert. I think that means that those 3 certs need to be publicly available (or at least available to any organizations who want to add Org3 to their channels) -- is that right? It seems like it must be, but I just wanted to make sure I'm not missing something. (note: I'm still using cryptogen and manually copying certificates around (but not private keys, as they are generated on the system they're used on), and realize that a real environment would actually be using a ca...) Thanks!

mogamboizer (Tue, 12 Dec 2017 23:14:23 GMT):
What is the reason the same image has two tags? hyperledger/fabric-ca latest 2736904862db 5 weeks ago 218 MB hyperledger/fabric-ca x86_64-1.1.0-preview 2736904862db 5 weeks ago 218 MB

MuhammadSalah (Wed, 13 Dec 2017 00:04:08 GMT):
@wordforthis thats quite true yes.

silliman (Wed, 13 Dec 2017 00:18:37 GMT):
@mogamboizer because if you specify an image without a tag, tag defaults to •latest*, so giving the image tagged with x86_64-1.1.0-preview another tag named *latest* makes it convenient to reference the image by omitting the tag altogether

silliman (Wed, 13 Dec 2017 00:18:37 GMT):
@mogamboizer because if you specify an image without a tag, tag defaults to *latest*, so giving the image tagged with x86_64-1.1.0-preview another tag named *latest* makes it convenient to reference the image by omitting the tag altogether

mogamboizer (Wed, 13 Dec 2017 00:25:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=itP3y3pPfLLqrFgfq) @silliman Thank you

mogamboizer (Wed, 13 Dec 2017 00:28:40 GMT):
What is the difference between the IBM and HL fabric docker images? Is there a one to one mapping between the images? What are the IBM docker base images (fabric-basejvm, fabric-baseimage etc)?

silliman (Wed, 13 Dec 2017 01:15:46 GMT):
@mogamboizer the ibmblockchain Docker images are based on the Hyperledger Fabric Docker images and claim to have "a number of serviceability enhancements", e.g. see the wording here: https://hub.docker.com/r/ibmblockchain/fabric-baseimage/ IBM offers paid support for the ibmblockchain Docker images but not for the Hyperledger Fabric Docker images. So, e.g. if you wanted to use Docker images and wanted paid support from IBM, you would need to use the ibmblockchain images. There are too many different images and tags between the two repositories for you to rely on their being a one-to-one mapping between the two at any given point in time.

mogamboizer (Wed, 13 Dec 2017 01:20:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jrvKwiKQhBchtivcf) @silliman Thank you.

sandeepnv8 (Wed, 13 Dec 2017 01:52:14 GMT):
Has joined the channel.

ChevonDebora (Wed, 13 Dec 2017 05:49:34 GMT):
Has joined the channel.

Katiyman (Wed, 13 Dec 2017 06:24:41 GMT):
How to find out all the peers that are part of a channel.

Katiyman (Wed, 13 Dec 2017 06:24:41 GMT):
How to find out all the peers that are part of a channel using cli.

Luxii (Wed, 13 Dec 2017 06:44:59 GMT):
Im getting following error when starting a peer container ```2017-12-13 06:43:20.527 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: admin 0 is invalid: could not validate identity's OUs: the identity certificate does not contain an Organizational Unit (OU)```

tian (Wed, 13 Dec 2017 06:47:17 GMT):
Has joined the channel.

yacovm (Wed, 13 Dec 2017 08:25:18 GMT):
@Luxii do you have anything in the `msp/config.yaml` file?

yacovm (Wed, 13 Dec 2017 08:25:18 GMT):
@Luxii do you have anything in the `msp-config.yaml` file?

Luxii (Wed, 13 Dec 2017 09:06:06 GMT):
@yacovm , Solved it now ... somehow adding the volumes using `ADD` in Dockerfile was a problem now i've started container using `-v` flag in `docker run ` command

Luxii (Wed, 13 Dec 2017 09:06:17 GMT):
Thanks for your response

mikykey (Wed, 13 Dec 2017 09:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=faw5yoqDthqAqkdX5) @MohitYadav2317 Hi! you can do that even without node sdk look this article https://blockchain-fabric.blogspot.it/2017/09/three-component-maintained-by-ledger-in.html peer chaincode query -C "" -n qscc -c '{"Args":["GetBlockByNumber","mychannel","1"]}' I was able to get the block number but not the GetBlockchainInfo(). I don't know why but some errors occurred.

mikykey (Wed, 13 Dec 2017 09:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=faw5yoqDthqAqkdX5) @MohitYadav2317 Hi! you can do that even without node sdk look this article https://blockchain-fabric.blogspot.it/2017/09/three-component-maintained-by-ledger-in.html peer chaincode query -C "" -n qscc -c '{"Args":["GetBlockByNumber","mychannel","1"]}' I was able to get the block number but not the GetBlockchainInfo(). I don't know why but some errors occurred. I don't understand how to write the command to GetBlockchainInfo

mikykey (Wed, 13 Dec 2017 09:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=faw5yoqDthqAqkdX5) @MohitYadav2317 Hi! you can do that even without node sdk look this article https://blockchain-fabric.blogspot.it/2017/09/three-component-maintained-by-ledger-in.html `peer chaincode query -C "" -n qscc -c '{"Args":["GetBlockByNumber","mychannel","1"]}'` I was able to get the block number but not the GetBlockchainInfo(). I don't know why but some errors occurred. I don't understand how to write the command to GetBlockchainInfo

mikykey (Wed, 13 Dec 2017 09:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=faw5yoqDthqAqkdX5) @MohitYadav2317 Hi! you can do that even without node sdk look this article https://blockchain-fabric.blogspot.it/2017/09/three-component-maintained-by-ledger-in.html `peer chaincode query -C "" -n qscc -c '{"Args":["GetBlockByNumber","mychannel","1"]}'` Alternatively if you want to retrieve information on the whole blockchain you can do `peer chaincode query -C "mychannel" -n qscc -c '{"Args":["GetChainInfo","mychannel",""]}' ` that returns a BlockchainInfo struct as explained here: https://stackoverflow.com/questions/45172999/how-to-check-the-blockchain-height-in-hyperledger-fabric

MR (Wed, 13 Dec 2017 11:53:33 GMT):
Has joined the channel.

MR (Wed, 13 Dec 2017 12:16:35 GMT):
Guys , i am able to run small helloworld application on my ubuntu 16.04 localhost. can some one please guide me on how can i run the same hello world application on multiple hosts in the same network ?

atifzia (Wed, 13 Dec 2017 12:56:59 GMT):
Has joined the channel.

collins (Wed, 13 Dec 2017 14:04:14 GMT):
Hi. How do you add a new org or a new peer to an existing org in a network that is already setup(cryptogen side of things)?

Vadim (Wed, 13 Dec 2017 14:07:01 GMT):
@collins for peer you just generate new crypto material and then execute `peer channel join`, for an org read https://github.com/hyperledger/fabric/blob/master/docs/source/channel_update.rst

collins (Wed, 13 Dec 2017 14:12:14 GMT):
@Vadim thanks for the response. Let me go through the documentation you've shared. Yeah joining a peer is straightforward. :thumbsup:

mikykey (Wed, 13 Dec 2017 14:13:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5f9Dna6PktHhLM7RC) @MR Hi.. Are you looking for it? https://chat.hyperledger.org/channel/fabric-questions?msg=i4HQ4itbLeitr3tKx

MR (Wed, 13 Dec 2017 14:16:47 GMT):
@mikykey , @yacovm - thanks , i will look into that link and will try.

mikykey (Wed, 13 Dec 2017 14:18:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8KGE49a2J2fTTbRiH) @MR I will probably test it in the future. So actually I'm not able to solve other problems related to it :)

Khaled.MH (Wed, 13 Dec 2017 16:15:08 GMT):
Has joined the channel.

hamptonsmith (Wed, 13 Dec 2017 17:13:55 GMT):
Can the peer command line binary be used to get the version name of the currently instantiated chaincode for a given channel*chaincode? I.e., what I passed to the last successful instantiate command with --version ?

collins (Wed, 13 Dec 2017 17:55:18 GMT):
Hi. What can be the cause of this, `Rejecting deliver because channel XYZ not found`. The system has been working well till today this error has emerged with fabric rest error status code 500 being logged.

Rapture (Wed, 13 Dec 2017 19:35:27 GMT):
Has joined the channel.

Rapture (Wed, 13 Dec 2017 19:35:50 GMT):
Hi guys, I've currently just built a simple hyperledger fabric network, and I understand how to create peers, organizations and users by editing the crypto config, however I'm struggling to understand how to join the Fabric network from another host. Can anyone give me some tips on how to go about it?

MR (Thu, 14 Dec 2017 06:03:22 GMT):
@Rapture yacovm November 13, 2017 7:40 PM https://github.com/yacovm/fabricDeployment shows a script that deploys fabric to multiple VMs

MR (Thu, 14 Dec 2017 06:03:33 GMT):
i am also looking for same.

MR (Thu, 14 Dec 2017 06:04:00 GMT):
need to try the link.

mkagenius (Thu, 14 Dec 2017 07:25:17 GMT):
Has joined the channel.

asuchit (Thu, 14 Dec 2017 09:51:08 GMT):
Is there any way in fabric to share the chaincode between peers ? I did not find such option in "peer chaincode" command ?

MohitYadav2317 (Thu, 14 Dec 2017 11:37:51 GMT):
hi everyone i have a usecase where i want to run orderer service and two peers on different machines, is there some example or documentation to achieve this in hyperledger fabric

leezie (Thu, 14 Dec 2017 14:02:13 GMT):
Has joined the channel.

vieiramanoel (Thu, 14 Dec 2017 14:08:21 GMT):
@asuchit if i'm not wrong when you install a chaincode to a channel, all peers in that channel gets a copy of that chaincode

Vadim (Thu, 14 Dec 2017 14:09:00 GMT):
@vieiramanoel it's not possible in fabric to install chaincode to a channel

vieiramanoel (Thu, 14 Dec 2017 14:15:14 GMT):
hmm I asked to my team here, the chaincode is installed for each peer on that channel

Vadim (Thu, 14 Dec 2017 14:15:52 GMT):
which does not mean that there is a command that installs chaincode to a channel

Vadim (Thu, 14 Dec 2017 14:16:09 GMT):
chaincode is installed on each peer separately

vieiramanoel (Thu, 14 Dec 2017 14:17:33 GMT):
on instance of that chaincode, sorry

vieiramanoel (Thu, 14 Dec 2017 14:18:35 GMT):
when you ask peer to instantiate that chaincode installed on it, all peers at the same channel receives that chaincode

Vadim (Thu, 14 Dec 2017 14:19:14 GMT):
they don't receive it, they should already have it

Vadim (Thu, 14 Dec 2017 14:19:45 GMT):
if the peer does not have it installed, you won't be able to invoke it on that peer

gut (Thu, 14 Dec 2017 14:44:52 GMT):
One quick and noobish question: Is there a way that ledger data is accessible by peers without chaincode intermediation? In other words, is the db accessible from the peer by directly querying it? (I mean a scenario where an organization is not participating anymore in the network, but still has the peer)

Vadim (Thu, 14 Dec 2017 14:52:34 GMT):
@gut yes, all ledger data is stored in plaintext on all peers within a channel

gut (Thu, 14 Dec 2017 14:56:13 GMT):
Then, If a node is compromised, the channel data is leaked

gut (Thu, 14 Dec 2017 14:57:01 GMT):
And what's the path of the DB storage?

Vadim (Thu, 14 Dec 2017 14:57:37 GMT):
path is /var/hyperledger/production

matrisis (Thu, 14 Dec 2017 15:02:09 GMT):
Hi, do you know where i can change the fabric-ca-server-config.yaml before i start my ca ?

Vadim (Thu, 14 Dec 2017 15:06:21 GMT):
@matrisis fabric-ca generates it on first start, then you can edit it

matrisis (Thu, 14 Dec 2017 15:07:07 GMT):
@Vadim If a change for examples the org in it, do i have to restart something ?

matrisis (Thu, 14 Dec 2017 15:07:07 GMT):
@Vadim If i change for examples the org in it, do i have to restart something ?

Vadim (Thu, 14 Dec 2017 15:07:38 GMT):
most likely you need to remove CA database and restart it

matrisis (Thu, 14 Dec 2017 15:08:14 GMT):
directly with `fabric-ca-server start` ?

matrisis (Thu, 14 Dec 2017 15:10:01 GMT):
Than you for you help !

matrisis (Thu, 14 Dec 2017 15:10:01 GMT):
Than you for your help !

matrisis (Thu, 14 Dec 2017 15:10:01 GMT):
Thank you for your help !

matrisis (Thu, 14 Dec 2017 15:10:02 GMT):
:)

Vadim (Thu, 14 Dec 2017 15:10:43 GMT):
are you asking how to restart fabric ca?

matrisis (Thu, 14 Dec 2017 15:11:10 GMT):
Yes with the new conf

Vadim (Thu, 14 Dec 2017 15:11:30 GMT):
stop it and start it again

matrisis (Thu, 14 Dec 2017 15:12:04 GMT):
Ok i'll try that, thank you.

matrisis (Thu, 14 Dec 2017 15:55:17 GMT):
Hi i get the `Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"Failed getting affiliation 'mycompany.departement1': sql: no rows in result set"}]]` error even if a have set this affiliation in my ca configuration file : ``` affiliations: mycompany: - department1 ``` Can you help me ?

matrisis (Thu, 14 Dec 2017 16:30:29 GMT):
Fixed.

Roger12 1 (Thu, 14 Dec 2017 16:46:08 GMT):
Has joined the channel.

Roger12 1 (Thu, 14 Dec 2017 16:46:55 GMT):
hi, how to edit crypto config yaml file to generate crypto for four organization and also wants to change the name of organization from org1 to something else i.e instead of org1 I would like to have name like 'Unisef' and also wants to change domain from example.com to "KPLO.com" .so, Is it possible to do this in hyperledger 1.0 ??? because when I tried doing this changes , during user enroll i'm getting error : unable to fine the keyvaulestore. and when I'll again change the organization name to default i.e just 'org1' and domain to 'example.com'. Then everything works fine..? So what I'm trying to do is that thing is possible or not??? I want my network peer should look like Unisef.KPLO.com instead of org1.example.com?? Pls help

matrisis (Thu, 14 Dec 2017 16:51:19 GMT):
Hi @Roger12 1, i suggest you yo watch this video about crypto config : https://www.youtube.com/watch?v=z-bZ71LN_mw

matrisis (Thu, 14 Dec 2017 16:51:19 GMT):
Hi @Roger12 1 , i suggest you yo watch this video about crypto config : https://www.youtube.com/watch?v=z-bZ71LN_mw

matrisis (Thu, 14 Dec 2017 16:52:05 GMT):
It should help you understand, i strongly suggest you to watch all the video of this serie wich are really

matrisis (Thu, 14 Dec 2017 16:52:05 GMT):
It should help you understand, i strongly suggest you to watch all the video of this serie wiche are really usefull

mitovskaol (Thu, 14 Dec 2017 16:52:07 GMT):
Has joined the channel.

mitovskaol (Thu, 14 Dec 2017 16:52:33 GMT):
hello everyone, can someone please share the latest genesis file for the SOVRIN TEST network?

matrisis (Thu, 14 Dec 2017 16:54:13 GMT):
@Roger12 1 , also, when you edit your config config you also want to change your configtx and your docker-compose.

matrisis (Thu, 14 Dec 2017 16:54:13 GMT):
@Roger12 1 , also, when you edit your crypto config you also want to change your configtx and your docker-compose.

Roger12 1 (Thu, 14 Dec 2017 16:55:12 GMT):
@matrisis I did all the changes Edited configtx and docker also.

matrisis (Thu, 14 Dec 2017 16:56:19 GMT):
Are you using node?

matrisis (Thu, 14 Dec 2017 16:58:20 GMT):
Try generating again crypo-config and channel artifact- folders

odalle (Thu, 14 Dec 2017 16:58:37 GMT):
Has joined the channel.

Roger12 1 (Thu, 14 Dec 2017 16:58:58 GMT):
@matrisis my network gets up but couldn't able to enroll through curl command. But when again I revert all this changes to default one i.e org1 and example, evrything works fine

Roger12 1 (Thu, 14 Dec 2017 16:59:14 GMT):
@matrisis yes i'm using node

Roger12 1 (Thu, 14 Dec 2017 16:59:55 GMT):
@matrisis many time I tried re-generating this all

matrisis (Thu, 14 Dec 2017 17:02:05 GMT):
Have tried to enroll user through fabcar example with node?

Roger12 1 (Thu, 14 Dec 2017 17:02:31 GMT):
@matrisis I think somewhere I'm messing up with configuration only in crypto config file. I want some proper documents to edit this file and also wants to know how to change domain name from 'example.com' to what I want

matrisis (Thu, 14 Dec 2017 17:03:31 GMT):
Watch the video for the crypto config part

matrisis (Thu, 14 Dec 2017 17:04:18 GMT):
It is pretty easy to understand

Roger12 1 (Thu, 14 Dec 2017 17:06:11 GMT):
@matrisis i'm referring balance transfer and wants to edit the crypto config with desired name changes like .. Instead of org1, org2 I want Unisef and KPL and I want orderer domain name "KPLO.com" instead of example.com

Roger12 1 (Thu, 14 Dec 2017 17:06:27 GMT):
@matrisis ok will watch video

matrisis (Thu, 14 Dec 2017 17:06:56 GMT):
Yes it is pretty good

matrisis (Thu, 14 Dec 2017 17:07:31 GMT):
What i find weird is that you get an error when you enroll an user but if there was an obvious error, it should appear earlier i guess

Roger12 1 (Thu, 14 Dec 2017 17:08:47 GMT):
@matrisis I exactly this is what I'm also thinking .... it is because somewhere something i'm messing up

matrisis (Thu, 14 Dec 2017 17:09:24 GMT):
Also if you want you can ask #fabric-crypto for more details around how it works

matrisis (Thu, 14 Dec 2017 17:09:24 GMT):
Also if you want you can ask #fabric-crypto for more details about how it works

matrisis (Thu, 14 Dec 2017 17:10:28 GMT):
(but you did actually :'))

Roger12 1 (Thu, 14 Dec 2017 17:11:49 GMT):
@matrisis [2017-12-14 12:28:23.029] [DEBUG] Helper - [FileKeyValueStore.js]: FileKeyValueStore.js - constructor [2017-12-14 12:28:23.032] [ERROR] Helper - Failed to get registered user: Jim, error: TypeError: Cannot read property 'setStateStore' of undefined at hfc.newDefaultKeyValueStore.then (/home/ubuntu/fabric-samples/balance-transfer/app/helper.js:208:9)

odalle (Thu, 14 Dec 2017 17:15:00 GMT):
Hi All, I have been reading multiple times section 2.2 of Architecture explained at http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html but I still can't decide how exactly the writeset is used by the endorser peer. My guess would be that the client's Peer sends it's version of the readset and writeset produced by it's local execution of the transaction to the endorser, and the endorser checks that it can reproduce the same execution, ie obtain the same readset and writeset by executing the same transaction on its side. From what I read it seems that this is way relaxed by allowing only a subset of the readset to be checked if anchor is given, and no mention is given of how the writeset is checked, which could mean that it is not. On contrary, it says "By default, endorsing logic at a peer accepts the tran-proposal and simply signs the tran-proposal", which to me means no check at all on the result. I see a clear benefit in not checking the writeset if the chaincode is non deterministic. But in that case, how can we ensure that all peers will end up with same Ledger? Are they not suppose to compute the new state independently by each executing the transaction? Are they just applying the the writeset updates as computed initially on the client side? Does it mean that there is no way to verify whether a malicious or faulty client tries to pollute the chain with wrong updates?

e-nikolov (Thu, 14 Dec 2017 17:19:30 GMT):
Has joined the channel.

jeffgarratt (Thu, 14 Dec 2017 17:51:42 GMT):
@odalle only the endorsing peers simulate the proposal. The proposal are then aggregated by the client per the expectation of meeting the endorsement policy (and all proposal responses must match). This is then packaged as a transaction and broadcasted to the network through the orderers. The peers then receive them and validate the TXs per the endorsement policy and mark the status accordingly, meaning they verify there is no MVCC conflict per the RWsets.

odalle (Thu, 14 Dec 2017 18:01:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PeKTKeEkjGjgp9kMx) @jeffgarratt Ok, so the nedorsers are the only ones to simulate. So the produce readset and writeset corresponding to the transaction. But do they base their endorsing decision only on the readset matching, or do they use both the readset and writeset?

odalle (Thu, 14 Dec 2017 18:01:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PeKTKeEkjGjgp9kMx) @jeffgarratt Ok, so the endorsers are the only ones to simulate. So the produce readset and writeset corresponding to the transaction. But do they base their endorsing decision only on the readset matching, or do they use both the readset and writeset?

odalle (Thu, 14 Dec 2017 18:01:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PeKTKeEkjGjgp9kMx) @jeffgarratt Ok, so the endorsers are the only ones to simulate. So they produce readset and writeset corresponding to the transaction. But do they base their endorsing decision only on the readset matching, or do they use both the readset and writeset?

jeffgarratt (Thu, 14 Dec 2017 18:39:46 GMT):
each endorser has no consideration of matching, this is up to the client (usually using an SDK) to determine if the responses match

Rapture (Thu, 14 Dec 2017 19:12:57 GMT):
I'm trying to join a new peer to a fabric network that is already up (for now I just used the BYFN), I'm not sure how to leverage the CA to generate new peer certs,anyone know how to do this?

odalle (Thu, 14 Dec 2017 21:19:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TmPzZYuEMKJQox4wT) @jeffgarratt Thank you. After reading further the doc about semantics of RWSets (http://hyperledger-fabric.readthedocs.io/en/release/readwrite.html), I understand much better the why and hows. And to wrap-up about non-determinism, is it correct to state that a non-deterministic transaction processing can well be endorsed provided the non-determinism does not apply to the read-set? Eg a transaction computing statistics on a random selection of KV pairs would be prone to fail, while a transaction reading a fixed set but altering one element of the read-set chosen at random would pass.

LabibFarag (Thu, 14 Dec 2017 21:20:16 GMT):
Has joined the channel.

slipe (Thu, 14 Dec 2017 22:38:36 GMT):
Has joined the channel.

slipe (Thu, 14 Dec 2017 22:41:39 GMT):
Hello, I'm new to Hyperledger fabric. The first tutorial (fabric-samples) worked fine. Now, at the Second one (writing your first application) I got some problems. By running npm install it throws a WARN.. fabcar@1.0.0 No repository field. If I try so run node enrollAdmin.js anyway it return en Error: ENOENT no such file or directory

EmmvnuelCvs (Thu, 14 Dec 2017 23:09:04 GMT):
[ I solved it by logging out from docker in the terminal and log in again with the docker ID. Thanks ](https://chat.hyperledger.org/channel/fabric-questions?msg=dJEPTFcWPWPq4KgRW) @MuhammadSalah

EmmvnuelCvs (Thu, 14 Dec 2017 23:16:17 GMT):
*Hi channel* I'm building the labs for Hyperledger Fabric and I have done all the prerequisites. Now the problem is at the moment to run the environment with the command line `./byfn.sh -m up -l node` but I got the following error. ``` Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Error validating DeltaSet: invalid mod_policy for element [Policy] /Channel/Application/Readers: mod_policy not set Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --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 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

Rapture (Thu, 14 Dec 2017 23:21:59 GMT):
Anyone know how to build and start fabric-ca-server and client

Rapture (Thu, 14 Dec 2017 23:22:05 GMT):
and how to add new peers

jeffgarratt (Fri, 15 Dec 2017 01:37:19 GMT):
@odalle correct

asuchit (Fri, 15 Dec 2017 04:13:41 GMT):
@vieiramanoel @Vadim I think, copy happen when first query OR invoke transaction happens on that peer because at this time only new docker container for this chaincode creates ....

CodeReaper (Fri, 15 Dec 2017 07:54:22 GMT):
Hey Can I make a channel config such that no matter how many organizations join that specific channel, I only need signatures of admin of one specific organization to add more organizations and not all organizations signatures ?

markthedark (Fri, 15 Dec 2017 08:06:59 GMT):
Has joined the channel.

markthedark (Fri, 15 Dec 2017 08:08:42 GMT):
Hello, i'm following the firstNetwork sample and i can't get past the 'peer channel create -o orderer.example.com:7050 ...' command.. the error i get is the following: 2017-12-15 07:55:19.609 UTC [cauthdsl] func2 -> ERRO 28e Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com"))

markthedark (Fri, 15 Dec 2017 08:19:23 GMT):
Tried again, this time with the following error: Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1

Vadim (Fri, 15 Dec 2017 08:31:05 GMT):
@markthedark seems like your channel exists already

markthedark (Fri, 15 Dec 2017 08:32:14 GMT):
hmm. i'll try again with a new name for channel

MohammadObaid (Fri, 15 Dec 2017 09:50:39 GMT):
Hi all . In hyperledger fabric , how many transactions store in one block? Any limit? . In bitcoin one block contain multiple transactions but size is limited to somewhat like 1 MB . Something similar in hyperledger-fabric ?

Vadim (Fri, 15 Dec 2017 09:52:08 GMT):
@MohammadObaid https://github.com/hyperledger/fabric-samples/blob/release/basic-network/configtx.yaml#L93-L106

MohammadObaid (Fri, 15 Dec 2017 09:53:34 GMT):
Hey @Vadim `AbsoluteMaxBytes` size means maximum size of block right ? and `MaxMessageCount` means number of transactions ?

Vadim (Fri, 15 Dec 2017 09:53:54 GMT):
yes

matrisis (Fri, 15 Dec 2017 10:05:40 GMT):
@MohammadObaid you can you can also set a timer that submits your block each `Time`. `BatchTimeout: {NumberOfSeconds}s`

MohammadObaid (Fri, 15 Dec 2017 10:09:32 GMT):
Hey @matrisis Yeah thanks . So basically it waits for 2 sec before constructing block . In 2 sec time period it looks for validated transaction and embeds in block and deliver it right ?

asuchit (Fri, 15 Dec 2017 10:10:06 GMT):
Where can I find about fabric-sdk, what is it's role and how can we use it ?

matrisis (Fri, 15 Dec 2017 10:11:33 GMT):
@asuchit You can ask questions on #fabric-sdk to start if you didn't already. If you want to use a specific sdk, you can join the corrrect channel for questions.

asuchit (Fri, 15 Dec 2017 10:12:35 GMT):
Thanks @matrisis, I will check there...

matrisis (Fri, 15 Dec 2017 10:13:29 GMT):
@MohammadObaid if i'm not wrong, it submits the block every {NumberOfSeconds}s to the orderer

matrisis (Fri, 15 Dec 2017 10:13:29 GMT):
@MohammadObaid if i'm not wrong, it submits the block every {NumberOfSeconds}s from the orderer

matrisis (Fri, 15 Dec 2017 10:14:29 GMT):
If the size of your block didn't reach the size params, otherwise it will submit before the time you set, obviously

matrisis (Fri, 15 Dec 2017 10:15:58 GMT):
@asuchit I strongly suggest you to read the sdk pages on github i.e : https://github.com/hyperledger/fabric-sdk-node or https://github.com/hyperledger/fabric-sdk-java ...

MohammadObaid (Fri, 15 Dec 2017 10:24:24 GMT):
Alright thanks a lot

slipe (Fri, 15 Dec 2017 10:36:46 GMT):
Hey everyone. I'm trying to take my way threw the Tutorial. the wirst one, Building your first network worked fine. But at the second one npm throws a WARN... fabcar@1.0.0 No repository field. I just tryed to keep on going.. but after running node enrollAdmin.js there is an Error: ENOENT no such file or directory Anyone any hint?

rock_martin (Fri, 15 Dec 2017 10:53:15 GMT):
Hey Can I make a channel config such that no matter how many organizations join that specific channel, I only need signatures of admin of one specific organization to add more organizations and not all organizations signatures ?

matrisis (Fri, 15 Dec 2017 11:22:02 GMT):
@slipe This error occur when you set a wrong path for your repo. Can you show me your code and the line you used please?

matrisis (Fri, 15 Dec 2017 11:22:02 GMT):
@slipe This error occurs when you set a wrong path for your repo. Can you show me your code and the line you used please?

matrisis (Fri, 15 Dec 2017 11:29:24 GMT):
@rock_martin Idk, it is not really meant to be used this way but there might be a bypass, i will think about it.

slipe (Fri, 15 Dec 2017 11:29:45 GMT):
@matrisis I used the samples from the tutorial. So in /home/ch/Hyperledger/fabric-samples/fabcar i used npm install

matrisis (Fri, 15 Dec 2017 11:33:34 GMT):
@slipe did you try https://stackoverflow.com/questions/44917705/hyperledger-fabcar-sample-fabric-showing-connect-failed-error ?

matrisis (Fri, 15 Dec 2017 11:35:15 GMT):
Do you have your package.json int the correct folder, do you run your node files in the correct folder, do you run npm install with `sudo`?

matrisis (Fri, 15 Dec 2017 11:35:41 GMT):
Does it display the installed package or only the warning?

slipe (Fri, 15 Dec 2017 11:43:30 GMT):
in the fabcar folder there are: enrollAdmin.js, node_modules, query.js, startFabric.sh, invoke.js, package.json, registerUser.js I run it in a root shell... its just a VM for Hyperledger, so I don't care about that. After running ./startFabric.sh it displays the following: Start by installing required packages run 'npm install' Then run 'node enrollAdmin.js', then 'node registerUser' The 'node invoke.js' will fail until it has been updated with valid arguments The 'node query.js' may be run at anytime once the user has been registered When I try to run node enrollAdmin.js the following is the result: Start by installing required packages run 'npm install' Then run 'node enrollAdmin.js', then 'node registerUser' The 'node invoke.js' will fail until it has been updated with valid arguments The 'node query.js' may be run at anytime once the user has been registered

slipe (Fri, 15 Dec 2017 11:44:55 GMT):
When I'm running node enrollAdmin.js anyway it displays: root@user-VirtualBox:/home/chri/Hyperledger/fabric-samples/fabcar# node enrollAdmin.js fs.js:808 return binding.readdir(pathModule._makeLong(path)); ^ Error: ENOENT: no such file or directory, scandir '/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary' at Error (native) at Object.fs.readdirSync (fs.js:808:18) at Object. (/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc/src/grpc_extension.js:37:23) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc/src/client.js:38:12)

Vadim (Fri, 15 Dec 2017 11:49:20 GMT):
@slipe seems like npm install did not work

MohammadObaid (Fri, 15 Dec 2017 11:50:03 GMT):
Hey . I am trying to update my endorsment policy using chaincode upgrade command `peer chaincode upgrade -n firstchaincode -v 2.0 -c '{"Args":["initDegree"]}' -P "OR ('orga.member','orgb.member')" -C firstchannel` but I am getting following error ```status: 500, message: cannot get package for the chaincode to be upgraded (firstchaincode:2.0)-open /var/hyperledger/production/chaincodes/firstchaincode.2.0: no such file or directory``` . Do I need to install and instantiate chaincode again with v2.0 ?

slipe (Fri, 15 Dec 2017 11:50:36 GMT):
@Vadim any idea why it doesn't work?

Vadim (Fri, 15 Dec 2017 11:51:07 GMT):
@MohammadObaid have you installed the chaincode firstchaincode of version 2.0?

MohammadObaid (Fri, 15 Dec 2017 11:51:42 GMT):
No . I didnt make any changes in my chaincode that's why I didnt reinstall it

Vadim (Fri, 15 Dec 2017 11:52:17 GMT):
but now you upgrade it and specify different version, so it tries to look for installed chaincode of that version

MohammadObaid (Fri, 15 Dec 2017 11:52:46 GMT):
@Vadim Can I update endorsement policy with same previous version 1.0 ?

Vadim (Fri, 15 Dec 2017 11:53:03 GMT):
have you tried? I'm not sure.

Vadim (Fri, 15 Dec 2017 11:53:03 GMT):
have you tried? I'm not sure this is possible.

MohammadObaid (Fri, 15 Dec 2017 11:57:02 GMT):
Yeah it is not possible because then I am getting error `status: 500, message: version already exists for chaincode with name 'firstchaincode'` . So it means I have to reinstall chaincode with newer version

MohammadObaid (Fri, 15 Dec 2017 12:34:49 GMT):
@Vadim So I reinstall chaincode v2.0 and upgraded my endorsment policy. I get `200` stattus code can see `firstchaincode.2.0` in every peer container in following path `var/hyperledger/production/chaincodes` . However when I try to invoke transaction , I am getting below error. Is it connectivity issues or something else because I can clearly see `firstchaincode.2.0` in peer containers

MohammadObaid (Fri, 15 Dec 2017 12:35:21 GMT):

chaincodeupgrade.png

Vadim (Fri, 15 Dec 2017 12:36:33 GMT):
looks as if some peer does not have it

kapilAtrey (Fri, 15 Dec 2017 12:51:08 GMT):
hey i wanted to know when using couchDb why every document inserted is starting with *marbles* as with the *initMarbles* function of the *marblechaincode02* of example chaincode it gives two documents *marblescolor~namebluemarble1* while writing the state for the composite key and *marblesmarble1* as per the *http://localhost:6984/_utils/#database/mychannel/_all_docs* for the marble initialize with args ["initMarble","marble1","blue","35","tom"] the id should be marble1 not marblesmarble1 from where it is getting this name and how it is useful in querying ? thanks in advance

kapilAtrey (Fri, 15 Dec 2017 12:51:08 GMT):
hey i wanted to know when using couchDb why every document inserted is starting with *marbles* as with the *initMarbles* function of the *marblechaincode02* of example chaincode it gives two documents *marblescolor~namebluemarble1* while writing the state for the composite key and *marblesmarble1* as per the *http://localhost:6984/_utils/#database/mychannel/_all_docs* for the marble initialize with args ["initMarble","marble1","blue","35","tom"] the id should be marble1 not marblesmarble1 from where it is getting this name and how it is useful in querying ? thanks in advance I think it is cause of the chaincode name as i provided while installing the chaincode

Vadim (Fri, 15 Dec 2017 12:58:27 GMT):
@kapilAtrey you are not supposed to query couchdb directly

kapilAtrey (Fri, 15 Dec 2017 13:01:55 GMT):
Yeah i understand i'll have to query through chaincode by using *GetQueryResult*

kapilAtrey (Fri, 15 Dec 2017 13:02:36 GMT):
{ "_id": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000", "_rev": "1-3a9d18637f204f5b55a2952c438475e6", "value": { "rev": "1-3a9d18637f204f5b55a2952c438475e6" }, "key": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000" }

kapilAtrey (Fri, 15 Dec 2017 13:02:36 GMT):
*{ "_id": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000", "_rev": "1-3a9d18637f204f5b55a2952c438475e6", "value": { "rev": "1-3a9d18637f204f5b55a2952c438475e6" }, "key": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000" }*

kapilAtrey (Fri, 15 Dec 2017 13:02:36 GMT):
*{* * "_id": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000",* *"_rev": "1-3a9d18637f204f5b55a2952c438475e6",* *"value": {* *"rev": "1-3a9d18637f204f5b55a2952c438475e6"* *},* *"key": "marbles\u0000\u0000color~name\u0000blue\u0000marble1\u0000"* *}*

kapilAtrey (Fri, 15 Dec 2017 13:03:20 GMT):
but i didnt understand how we are getting the marble data on querying using this data

kapilAtrey (Fri, 15 Dec 2017 13:03:45 GMT):
is there some sort of mapping with the local peer file system data

kapilAtrey (Fri, 15 Dec 2017 13:06:52 GMT):
and the couch db document

MohammadObaid (Fri, 15 Dec 2017 13:33:05 GMT):
@Vadim You are right. Some peers havent installed upgraded chaincode. I think we need to install upgraded chaincode in all peers in a channel

ArvsIndrarys (Fri, 15 Dec 2017 14:58:15 GMT):
Is it normal that my chaincode container does restart after a while, or does it come from a memory leak from the code?

Vadim (Fri, 15 Dec 2017 14:58:51 GMT):
@ArvsIndrarys I haven't noticed that my chaincode containers ever restart

ArvsIndrarys (Fri, 15 Dec 2017 15:04:56 GMT):
@Vadim in my production, I see that my peers are up since 2 months but my chaincode only since few days Does your answer concern that timescale?

Vadim (Fri, 15 Dec 2017 15:05:50 GMT):
no

Vadim (Fri, 15 Dec 2017 15:06:10 GMT):
do you see stopped cc containers in `docker ps -a`?

ArvsIndrarys (Fri, 15 Dec 2017 15:08:23 GMT):
Nope, but I see in the docker.log the kill signals. I have no functionnality nor data loss but I was curious

Vadim (Fri, 15 Dec 2017 15:09:15 GMT):
and you sure there were invocations of chaincode on that peers before?

ArvsIndrarys (Fri, 15 Dec 2017 15:11:10 GMT):
yes, I regularly check that all is ok and alway have a chaincode container up ; but with an uptime different than the other containers

Vadim (Fri, 15 Dec 2017 15:16:22 GMT):
@ArvsIndrarys probably you have to check the peer logs... but I'm not aware that there is such feature that fabric e.g. stops containers after some inactivity or sp

Vadim (Fri, 15 Dec 2017 15:16:22 GMT):
@ArvsIndrarys probably you have to check the peer logs... but I'm not aware that there is such feature that fabric e.g. stops containers after some inactivity or so

ArvsIndrarys (Fri, 15 Dec 2017 15:18:23 GMT):
I was thinking about some memory leak that would cause the container to request too much RAM, then being shut down (hypothesis) At the next call, the peer would recreate it again (this I am sure of)

Vadim (Fri, 15 Dec 2017 15:19:40 GMT):
yes, but if you don't see stopped containers in `docker ps -a` it means peer removed it

ArvsIndrarys (Fri, 15 Dec 2017 15:22:57 GMT):
I'll check in the logs at the next chaincode restart then, the last one is behind too much logs

slipe (Fri, 15 Dec 2017 16:41:47 GMT):
xj42k4r8s

slipe (Fri, 15 Dec 2017 16:42:37 GMT):
@Vadim so no idea? =(

slipe (Fri, 15 Dec 2017 18:50:54 GMT):
okay.. I went on.. now I can run node enrollAdmin.js it creates the hfc-key-store.. but with nothing inside. So the node registerUser.js throws an error because that folder is empty

MuhammadSalah (Fri, 15 Dec 2017 18:52:31 GMT):
is Fabric-CA image up and running?

MuhammadSalah (Fri, 15 Dec 2017 18:54:30 GMT):
@slipe you need to make sure, you have the minimal environment available. That in case, your orderer, peer, and CA containers. I believe the example, creates also a chaincode container for you to start invoking.

MuhammadSalah (Fri, 15 Dec 2017 18:55:23 GMT):
So what I suggest for you is, to start the network first, and wait untill that part it says SLEEP TIMEOUT in the script. Usually, it's about 15 seconds. Then wait and keep watching the trail of the containers, untill you make sure you got all these containers up and running.

MuhammadSalah (Fri, 15 Dec 2017 18:55:36 GMT):
Check them via "docker ps -a"

slipe (Fri, 15 Dec 2017 18:56:12 GMT):
The example threw the errors I posted earlier. now i downloaded the fabric-sdk-node-release und installed fabric client from that folder. then wrote it to PATH, too

MuhammadSalah (Fri, 15 Dec 2017 18:56:50 GMT):
Hold on, I will read it up there. :)

MuhammadSalah (Fri, 15 Dec 2017 18:57:53 GMT):
Do you have node

MuhammadSalah (Fri, 15 Dec 2017 18:57:58 GMT):
I mean node_modules folder?

MuhammadSalah (Fri, 15 Dec 2017 18:58:07 GMT):
inside that fabcar example?

MuhammadSalah (Fri, 15 Dec 2017 18:58:34 GMT):
If you do, delete it. and issue "npm install"

slipe (Fri, 15 Dec 2017 18:58:55 GMT):
docker ps -a returns the following /fabric-tools up fabric-peer up fabric-ca up fabric-orderer up fabric couchdb up

MuhammadSalah (Fri, 15 Dec 2017 18:59:13 GMT):
yes good.

MuhammadSalah (Fri, 15 Dec 2017 18:59:30 GMT):
tools => chaincode peer CA DB for wolrdstate and Orderer

MuhammadSalah (Fri, 15 Dec 2017 18:59:37 GMT):
great, no problem with fabric.

MuhammadSalah (Fri, 15 Dec 2017 18:59:38 GMT):
supposedly.

slipe (Fri, 15 Dec 2017 19:00:05 GMT):
i tryed by deleting node_modules.. npm still got the error.. so i copies the node_modules folder from the fabric-client folder

MuhammadSalah (Fri, 15 Dec 2017 19:00:19 GMT):
oh no no

MuhammadSalah (Fri, 15 Dec 2017 19:00:26 GMT):
just delete that node_modules

MuhammadSalah (Fri, 15 Dec 2017 19:00:30 GMT):
and please just issue

MuhammadSalah (Fri, 15 Dec 2017 19:00:32 GMT):
npm install

slipe (Fri, 15 Dec 2017 19:00:37 GMT):
:D okay... i'm going to delete it again

MuhammadSalah (Fri, 15 Dec 2017 19:00:44 GMT):
npm will consume the package.json file.

MuhammadSalah (Fri, 15 Dec 2017 19:00:53 GMT):
It has all the application dependencies.

MuhammadSalah (Fri, 15 Dec 2017 19:01:01 GMT):
So what npm will does, is to package your application.

MuhammadSalah (Fri, 15 Dec 2017 19:01:05 GMT):
will do*

MuhammadSalah (Fri, 15 Dec 2017 19:01:15 GMT):
creates the modules folder for node.

MuhammadSalah (Fri, 15 Dec 2017 19:01:27 GMT):
fetches all the nodules used in the 3 node programs.

MuhammadSalah (Fri, 15 Dec 2017 19:01:50 GMT):
which are fabric-ca client etc.

slipe (Fri, 15 Dec 2017 19:01:59 GMT):
the problem is.. npm didn't do that :/

slipe (Fri, 15 Dec 2017 19:02:12 GMT):
but I'll try again

MuhammadSalah (Fri, 15 Dec 2017 19:02:15 GMT):
Then it's a problem of how you installed node.

MuhammadSalah (Fri, 15 Dec 2017 19:02:23 GMT):
Try again, and keep me updated.

MuhammadSalah (Fri, 15 Dec 2017 19:02:34 GMT):
If that's so, I know a trick to get a good environment running.

MuhammadSalah (Fri, 15 Dec 2017 19:02:46 GMT):
usually works if you use ubuntu/mint like a charm.

MuhammadSalah (Fri, 15 Dec 2017 19:03:03 GMT):
The composer guys, have an automated script.

MuhammadSalah (Fri, 15 Dec 2017 19:03:15 GMT):
you just simply run that.

MuhammadSalah (Fri, 15 Dec 2017 19:03:32 GMT):
and install go, and you got all what you need to be doing almost anything with fabric :)

slipe (Fri, 15 Dec 2017 19:05:20 GMT):
I installed go versin 1.8.2 i think and by running npm install it returns.. WARN engine.... fabric client @1.1.0-snapshot.40: wanted: {"node":"^8.9.0","npm":"

MuhammadSalah (Fri, 15 Dec 2017 19:05:48 GMT):
node -v

MuhammadSalah (Fri, 15 Dec 2017 19:05:51 GMT):
please

MuhammadSalah (Fri, 15 Dec 2017 19:05:59 GMT):
Which version of node you have?

slipe (Fri, 15 Dec 2017 19:06:05 GMT):
v4.2.6

MuhammadSalah (Fri, 15 Dec 2017 19:06:08 GMT):
also npm -v

MuhammadSalah (Fri, 15 Dec 2017 19:06:08 GMT):
while you at it

MuhammadSalah (Fri, 15 Dec 2017 19:06:18 GMT):
4.2.6 that's npm?

slipe (Fri, 15 Dec 2017 19:06:22 GMT):
3.5.2

MuhammadSalah (Fri, 15 Dec 2017 19:06:26 GMT):
or node?

slipe (Fri, 15 Dec 2017 19:06:35 GMT):
nope 4.2.6 node and 3-5-2 npm

MuhammadSalah (Fri, 15 Dec 2017 19:06:47 GMT):
oh man, okay okay.

MuhammadSalah (Fri, 15 Dec 2017 19:06:50 GMT):
you need at least node v6

MuhammadSalah (Fri, 15 Dec 2017 19:07:04 GMT):
like I said problem with node :)

MuhammadSalah (Fri, 15 Dec 2017 19:07:13 GMT):
so here is the fix

MuhammadSalah (Fri, 15 Dec 2017 19:07:36 GMT):
you are on a virtual box / VMware?

slipe (Fri, 15 Dec 2017 19:07:44 GMT):
yes

MuhammadSalah (Fri, 15 Dec 2017 19:07:49 GMT):
ubuntu?

slipe (Fri, 15 Dec 2017 19:07:49 GMT):
with ubuntu running

slipe (Fri, 15 Dec 2017 19:07:56 GMT):
16.04

MuhammadSalah (Fri, 15 Dec 2017 19:07:57 GMT):
ye cool pretty cool

MuhammadSalah (Fri, 15 Dec 2017 19:07:57 GMT):
just

MuhammadSalah (Fri, 15 Dec 2017 19:08:02 GMT):
ye ye ye perfect!

MuhammadSalah (Fri, 15 Dec 2017 19:08:13 GMT):
sudo apt-get purge npm node

MuhammadSalah (Fri, 15 Dec 2017 19:08:19 GMT):
get rid of those

MuhammadSalah (Fri, 15 Dec 2017 19:08:41 GMT):
and do the password, and yes thingie if it pops up

MuhammadSalah (Fri, 15 Dec 2017 19:08:49 GMT):
possibly follow it with

slipe (Fri, 15 Dec 2017 19:08:53 GMT):
done

MuhammadSalah (Fri, 15 Dec 2017 19:08:53 GMT):
sudo apt-get autoremove

MuhammadSalah (Fri, 15 Dec 2017 19:08:59 GMT):
to remove unnecessary stuff

MuhammadSalah (Fri, 15 Dec 2017 19:09:06 GMT):
now gimme one moment to fetch you the magic

slipe (Fri, 15 Dec 2017 19:09:28 GMT):
oh no.. I didn#t node -v still returns 4.2.6 -.-

MuhammadSalah (Fri, 15 Dec 2017 19:09:30 GMT):
https://hyperledger.github.io/composer/installing/development-tools.html

MuhammadSalah (Fri, 15 Dec 2017 19:09:46 GMT):
do

MuhammadSalah (Fri, 15 Dec 2017 19:09:50 GMT):
sudo apt-get purge node

MuhammadSalah (Fri, 15 Dec 2017 19:09:50 GMT):
sudo apt-get purge node*

MuhammadSalah (Fri, 15 Dec 2017 19:10:09 GMT):
visit that url

MuhammadSalah (Fri, 15 Dec 2017 19:10:14 GMT):
there is a prereqs script

MuhammadSalah (Fri, 15 Dec 2017 19:10:30 GMT):
it's perfectly designed for ubuntu 16.04

MuhammadSalah (Fri, 15 Dec 2017 19:10:30 GMT):
just curl it

MuhammadSalah (Fri, 15 Dec 2017 19:10:37 GMT):
and run it

MuhammadSalah (Fri, 15 Dec 2017 19:10:48 GMT):
it will install stuff correctly for you

slipe (Fri, 15 Dec 2017 19:10:49 GMT):
cante do the purge.. no node installed... but node -v still returns 4.2.6

MuhammadSalah (Fri, 15 Dec 2017 19:10:58 GMT):
Ah

MuhammadSalah (Fri, 15 Dec 2017 19:11:01 GMT):
it's manually maintained

MuhammadSalah (Fri, 15 Dec 2017 19:11:03 GMT):
okaay

MuhammadSalah (Fri, 15 Dec 2017 19:11:05 GMT):
whereis node

MuhammadSalah (Fri, 15 Dec 2017 19:11:12 GMT):
and that's a command :d

slipe (Fri, 15 Dec 2017 19:12:18 GMT):
./usr/share/man/man1/node1.gz

slipe (Fri, 15 Dec 2017 19:12:25 GMT):
just remove it?

MuhammadSalah (Fri, 15 Dec 2017 19:12:33 GMT):
that's the only path you get ?

slipe (Fri, 15 Dec 2017 19:12:49 GMT):
yes

MuhammadSalah (Fri, 15 Dec 2017 19:12:55 GMT):
ye

MuhammadSalah (Fri, 15 Dec 2017 19:13:00 GMT):
bash it to hell

MuhammadSalah (Fri, 15 Dec 2017 19:13:02 GMT):
baba :D

MuhammadSalah (Fri, 15 Dec 2017 19:13:07 GMT):
and probably

MuhammadSalah (Fri, 15 Dec 2017 19:13:17 GMT):
examine your ~/.profile or ~/.bashrc

MuhammadSalah (Fri, 15 Dec 2017 19:13:41 GMT):
to remove the path

MuhammadSalah (Fri, 15 Dec 2017 19:13:41 GMT):
You know that step that you had to do

MuhammadSalah (Fri, 15 Dec 2017 19:13:50 GMT):
export PATH=(somewhateverpath):$PATH

MuhammadSalah (Fri, 15 Dec 2017 19:14:07 GMT):
It will be an unnecessary line

MuhammadSalah (Fri, 15 Dec 2017 19:14:15 GMT):
and then run the script in the link I provided, it wil be cool :)

MuhammadSalah (Fri, 15 Dec 2017 19:14:23 GMT):
it might even update docker for you.

MuhammadSalah (Fri, 15 Dec 2017 19:14:32 GMT):
I don't know which docker version you are using :)

slipe (Fri, 15 Dec 2017 19:14:33 GMT):
oh wait a second

slipe (Fri, 15 Dec 2017 19:14:56 GMT):
it threw 2 places for node.. .-.- /usr/bin/node, too

MuhammadSalah (Fri, 15 Dec 2017 19:15:11 GMT):
you can delete that binary yes

MuhammadSalah (Fri, 15 Dec 2017 19:15:22 GMT):
but that sole binary file!

slipe (Fri, 15 Dec 2017 19:15:28 GMT):
docker version 1.13.1 build 092cba3

MuhammadSalah (Fri, 15 Dec 2017 19:15:29 GMT):
so just issue

MuhammadSalah (Fri, 15 Dec 2017 19:15:39 GMT):
oh man

MuhammadSalah (Fri, 15 Dec 2017 19:15:45 GMT):
sudo apt-get purge docker*

MuhammadSalah (Fri, 15 Dec 2017 19:15:48 GMT):
too please

MuhammadSalah (Fri, 15 Dec 2017 19:16:17 GMT):
and then just install through that script

MuhammadSalah (Fri, 15 Dec 2017 19:16:20 GMT):
and you will be so good :)

MuhammadSalah (Fri, 15 Dec 2017 19:16:31 GMT):
It would take you sometime of course

MuhammadSalah (Fri, 15 Dec 2017 19:16:43 GMT):
like 10 minutes depending on your internet, but finally you will do fine.

MuhammadSalah (Fri, 15 Dec 2017 19:17:01 GMT):
But gonna pull fabric again

MuhammadSalah (Fri, 15 Dec 2017 19:17:16 GMT):
so basically maybe other 10 minutes wasted

MuhammadSalah (Fri, 15 Dec 2017 19:17:22 GMT):
but you will have a nice environment.

MuhammadSalah (Fri, 15 Dec 2017 19:17:34 GMT):
Sorry to break it to you like this.

MuhammadSalah (Fri, 15 Dec 2017 19:18:01 GMT):
and oh by the way, after the script does its charm

MuhammadSalah (Fri, 15 Dec 2017 19:18:04 GMT):
you may want to relogin

MuhammadSalah (Fri, 15 Dec 2017 19:18:25 GMT):
because it needs that to activate the docker non sudo privelliges

MuhammadSalah (Fri, 15 Dec 2017 19:18:29 GMT):
and you never have to work as a root :)

MuhammadSalah (Fri, 15 Dec 2017 19:18:40 GMT):
but since it's a VM

MuhammadSalah (Fri, 15 Dec 2017 19:18:45 GMT):
do whatever suits you.

MuhammadSalah (Fri, 15 Dec 2017 19:18:49 GMT):
Cheers.

slipe (Fri, 15 Dec 2017 19:19:16 GMT):
thanks a lot.. I#ll try

MuhammadSalah (Fri, 15 Dec 2017 19:21:42 GMT):
Theoritically should work :)

MuhammadSalah (Fri, 15 Dec 2017 19:21:51 GMT):
I will be available, and happy blockchaining :)

slipe (Fri, 15 Dec 2017 19:56:34 GMT):
@MuhammadSalah it won't let me install node v8.x -.- I used this one: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - but it doesn't work.. it wants me to add a cdrom? oO any ideas? With apt-get install nodejs.. and node-js-legacy I just get the 4.x version

MuhammadSalah (Fri, 15 Dec 2017 19:57:01 GMT):
relax

MuhammadSalah (Fri, 15 Dec 2017 19:57:07 GMT):
sudo apt-get install curl

MuhammadSalah (Fri, 15 Dec 2017 19:57:27 GMT):
just make sure you have curl

MuhammadSalah (Fri, 15 Dec 2017 19:57:39 GMT):
and I don't want you to import any packages outside

slipe (Fri, 15 Dec 2017 19:57:40 GMT):
it's already installed.. version 7.47.0

MuhammadSalah (Fri, 15 Dec 2017 19:57:41 GMT):
it's all automated

MuhammadSalah (Fri, 15 Dec 2017 19:57:48 GMT):
okkk

MuhammadSalah (Fri, 15 Dec 2017 19:57:49 GMT):
cool

MuhammadSalah (Fri, 15 Dec 2017 19:57:53 GMT):
please do this

MuhammadSalah (Fri, 15 Dec 2017 19:58:05 GMT):
curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh chmod u+x prereqs-ubuntu.sh

MuhammadSalah (Fri, 15 Dec 2017 19:58:09 GMT):
./prereqs-ubuntu.sh

MuhammadSalah (Fri, 15 Dec 2017 19:58:17 GMT):
then you can delete the script

MuhammadSalah (Fri, 15 Dec 2017 19:58:48 GMT):
This will take care of npm and node

MuhammadSalah (Fri, 15 Dec 2017 19:58:52 GMT):
docker for you.

MuhammadSalah (Fri, 15 Dec 2017 19:59:05 GMT):
you can also read it

MuhammadSalah (Fri, 15 Dec 2017 19:59:08 GMT):
if you like

slipe (Fri, 15 Dec 2017 20:00:04 GMT):
that doesn't work either W: The repository 'cdrom://Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801) xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.

slipe (Fri, 15 Dec 2017 20:00:43 GMT):
thats the english part of the return.. the other one say I can't take apt-get update.. i have to use apt-cdrom

MuhammadSalah (Fri, 15 Dec 2017 20:03:21 GMT):
Check your mirrors

MuhammadSalah (Fri, 15 Dec 2017 20:03:27 GMT):
in ubuntu

MuhammadSalah (Fri, 15 Dec 2017 20:03:31 GMT):
software resources

MuhammadSalah (Fri, 15 Dec 2017 20:03:40 GMT):
tell me do you have your mirrors enabled?

slipe (Fri, 15 Dec 2017 20:04:05 GMT):
for being true i just installed ubuntu for this :D sorry :/

MuhammadSalah (Fri, 15 Dec 2017 20:04:32 GMT):
I understand that.

MuhammadSalah (Fri, 15 Dec 2017 20:05:05 GMT):
All I am asking is, does your aptitude see the online resources?

MuhammadSalah (Fri, 15 Dec 2017 20:05:21 GMT):
in order to find out that, we need to check your mirror list.

MuhammadSalah (Fri, 15 Dec 2017 20:05:31 GMT):
And I have no idea how you could have possible screwed it up.

MuhammadSalah (Fri, 15 Dec 2017 20:05:39 GMT):
By default, you get default mirror list.

slipe (Fri, 15 Dec 2017 20:08:31 GMT):
there is inside: cdrom:[Ubuntu 16.04.3 LTS ..../xenial mein resticted

slipe (Fri, 15 Dec 2017 20:08:47 GMT):
so i have to add it without the restiction? or can i change it?

slipe (Fri, 15 Dec 2017 20:11:07 GMT):
main resticted.. sry

MuhammadSalah (Fri, 15 Dec 2017 20:19:41 GMT):
Just enable the online main repo

MuhammadSalah (Fri, 15 Dec 2017 20:20:12 GMT):
from the official repositories

slipe (Fri, 15 Dec 2017 20:22:49 GMT):
everythin is enabled.. official, (Canonical (main)), universe, resticted, multiverse, and Code

MuhammadSalah (Fri, 15 Dec 2017 20:23:03 GMT):
sudo apt-get update

MuhammadSalah (Fri, 15 Dec 2017 20:23:05 GMT):
do that

slipe (Fri, 15 Dec 2017 20:23:52 GMT):
oh maybe found the mistake.. it didn't use the main server.. but the german server instead

slipe (Fri, 15 Dec 2017 20:26:30 GMT):
even update throws the same mistake.. maybe because I enabled the cdrom at "Other Programs"?

slipe (Fri, 15 Dec 2017 20:29:32 GMT):
okay.. seems to work now.. thanks so much!

MuhammadSalah (Fri, 15 Dec 2017 20:40:22 GMT):
Welcome!

MuhammadSalah (Fri, 15 Dec 2017 20:40:31 GMT):
I love linux so :D

MuhammadSalah (Fri, 15 Dec 2017 20:40:47 GMT):
now just do the damn script, and get to blockchaining mate :D

slipe (Fri, 15 Dec 2017 20:45:25 GMT):
Docker, node und npm are up to date now.. but npm install in the fabcar folder still doesn't work

MuhammadSalah (Fri, 15 Dec 2017 20:45:39 GMT):
ok ok

MuhammadSalah (Fri, 15 Dec 2017 20:45:42 GMT):
great

MuhammadSalah (Fri, 15 Dec 2017 20:45:50 GMT):
at least we got good environment

MuhammadSalah (Fri, 15 Dec 2017 20:45:52 GMT):
show me what

MuhammadSalah (Fri, 15 Dec 2017 20:45:55 GMT):
npm install throws out at you

slipe (Fri, 15 Dec 2017 20:47:11 GMT):
root@user-VirtualBox:/home/chri/Hyperledger/fabric-samples/fabcar# npm install > pkcs11js@1.0.12 install /home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js > node-gyp rebuild sh: 1: node-gyp: Permission denied npm WARN fabcar@1.0.0 No repository field. npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! pkcs11js@1.0.12 install: `node-gyp rebuild` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the pkcs11js@1.0.12 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-12-15T20_46_41_620Z-debug.log

MuhammadSalah (Fri, 15 Dec 2017 20:48:29 GMT):
ye

MuhammadSalah (Fri, 15 Dec 2017 20:48:31 GMT):
well

MuhammadSalah (Fri, 15 Dec 2017 20:48:37 GMT):
dont do it as root

MuhammadSalah (Fri, 15 Dec 2017 20:48:45 GMT):
ahh goosh

slipe (Fri, 15 Dec 2017 20:48:51 GMT):
oh okay

MuhammadSalah (Fri, 15 Dec 2017 20:48:58 GMT):
I never done this as root, and it seems like a permision problem

MuhammadSalah (Fri, 15 Dec 2017 20:49:06 GMT):
now I can't deduce

slipe (Fri, 15 Dec 2017 20:49:10 GMT):
though it would be a good idea.. cause it's just for testing this :D

MuhammadSalah (Fri, 15 Dec 2017 20:49:10 GMT):
whether it's in your installation

MuhammadSalah (Fri, 15 Dec 2017 20:49:17 GMT):
nooo

MuhammadSalah (Fri, 15 Dec 2017 20:49:20 GMT):
man, look

MuhammadSalah (Fri, 15 Dec 2017 20:49:30 GMT):
if you are playing as root on linux it's just no good

MuhammadSalah (Fri, 15 Dec 2017 20:49:40 GMT):
it's not like you are getting extra functionalities

MuhammadSalah (Fri, 15 Dec 2017 20:49:48 GMT):
just because you are root

MuhammadSalah (Fri, 15 Dec 2017 20:50:11 GMT):
the user spaces on linux are used to manage and coordinate between the OS and the applications

MuhammadSalah (Fri, 15 Dec 2017 20:50:38 GMT):
just run it as normal user, then lets see what is happening.

slipe (Fri, 15 Dec 2017 20:51:06 GMT):
as a normal user i know don't get any "node" :D so installing again as normal user?

MuhammadSalah (Fri, 15 Dec 2017 20:51:18 GMT):
oh ye

MuhammadSalah (Fri, 15 Dec 2017 20:51:19 GMT):
please

MuhammadSalah (Fri, 15 Dec 2017 20:51:28 GMT):
run the script as a normal user

MuhammadSalah (Fri, 15 Dec 2017 20:51:37 GMT):
possibly this is trashy as hell.

MuhammadSalah (Fri, 15 Dec 2017 20:51:48 GMT):
but forget about maintaining the sweetness of your VM now

MuhammadSalah (Fri, 15 Dec 2017 20:51:54 GMT):
lets get it running

MuhammadSalah (Fri, 15 Dec 2017 20:51:59 GMT):
then maybe just do a fresh install.

MuhammadSalah (Fri, 15 Dec 2017 20:52:02 GMT):
just run this script

MuhammadSalah (Fri, 15 Dec 2017 20:52:06 GMT):
as a normal user

MuhammadSalah (Fri, 15 Dec 2017 20:52:25 GMT):
and you will be a happy fella :D

slipe (Fri, 15 Dec 2017 20:54:43 GMT):
If it works.. I got to spend you a dink :D

MuhammadSalah (Fri, 15 Dec 2017 20:56:04 GMT):
What's a dink? :D

slipe (Fri, 15 Dec 2017 20:58:27 GMT):
oh.. drink.. sorry :D

MuhammadSalah (Fri, 15 Dec 2017 20:58:40 GMT):
HA ye!

MuhammadSalah (Fri, 15 Dec 2017 20:58:52 GMT):
Gin tonic is fine by me.

slipe (Fri, 15 Dec 2017 21:00:10 GMT):
what ever you want... BUT.. there is still a problem :D

slipe (Fri, 15 Dec 2017 21:00:14 GMT):
I'm sorry ;)

slipe (Fri, 15 Dec 2017 21:00:19 GMT):
chri@user-VirtualBox:~/Hyperledger/fabric-samples/fabcar$ npm install > pkcs11js@1.0.12 install /home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js > node-gyp rebuild make: Verzeichnis „/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js/build“ wird betreten CXX(target) Release/obj.target/pkcs11/src/main.o CXX(target) Release/obj.target/pkcs11/src/dl.o CXX(target) Release/obj.target/pkcs11/src/const.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/error.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/v8_convert.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/template.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/mech.o ../src/pkcs11/mech.cpp: In member function ‘void Mechanism::Free()’: ../src/pkcs11/mech.cpp:121:15: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete] delete(param); ^ CXX(target) Release/obj.target/pkcs11/src/pkcs11/param.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_aes.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_rsa.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_ecdh.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/pkcs11.o CXX(target) Release/obj.target/pkcs11/src/async.o CXX(target) Release/obj.target/pkcs11/src/node.o SOLINK_MODULE(target) Release/obj.target/pkcs11.node COPY Release/pkcs11.node make: Verzeichnis „/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js/build“ wird verlassen > grpc@1.8.0 install /home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library [grpc] Success: "/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node" is installed via remote npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN fabcar@1.0.0 No repository field. added 287 packages in 82.475s

MuhammadSalah (Fri, 15 Dec 2017 21:00:45 GMT):
oh ok ok

MuhammadSalah (Fri, 15 Dec 2017 21:00:50 GMT):
delete the node_modules

MuhammadSalah (Fri, 15 Dec 2017 21:00:55 GMT):
delete the lockfile

MuhammadSalah (Fri, 15 Dec 2017 21:01:11 GMT):
did you rerun the installation script?

MuhammadSalah (Fri, 15 Dec 2017 21:01:18 GMT):
as a non root?

slipe (Fri, 15 Dec 2017 21:01:43 GMT):
yes

slipe (Fri, 15 Dec 2017 21:01:50 GMT):
in the parent folder

MuhammadSalah (Fri, 15 Dec 2017 21:01:54 GMT):
okay let me think

MuhammadSalah (Fri, 15 Dec 2017 21:02:31 GMT):
delete both stuff I told you about

MuhammadSalah (Fri, 15 Dec 2017 21:02:33 GMT):
and re-try

MuhammadSalah (Fri, 15 Dec 2017 21:02:56 GMT):
if it gives same bunch of error then I don't have a clue.

slipe (Fri, 15 Dec 2017 21:03:06 GMT):
okay.. node_modules and package-lockfile are deleted.. so I try again

MuhammadSalah (Fri, 15 Dec 2017 21:03:10 GMT):
yep

MuhammadSalah (Fri, 15 Dec 2017 21:05:04 GMT):
works well?

slipe (Fri, 15 Dec 2017 21:05:37 GMT):
the same mistake again so I tryed to use the node enrollAdmin.js anyway.. then this returns

slipe (Fri, 15 Dec 2017 21:05:51 GMT):
Store path:/home/chri/Hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:809:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin

slipe (Fri, 15 Dec 2017 21:06:01 GMT):
so seems to be a problem with the ca?

MuhammadSalah (Fri, 15 Dec 2017 21:06:14 GMT):
did you pass the npm thing?

slipe (Fri, 15 Dec 2017 21:06:29 GMT):
nope.. the same mistake as above

MuhammadSalah (Fri, 15 Dec 2017 21:06:35 GMT):
npm install.

MuhammadSalah (Fri, 15 Dec 2017 21:06:37 GMT):
worked?

slipe (Fri, 15 Dec 2017 21:06:41 GMT):
nope

MuhammadSalah (Fri, 15 Dec 2017 21:06:47 GMT):
what does npm install give

slipe (Fri, 15 Dec 2017 21:08:27 GMT):
the same problem I posted before. npm WARN fabcar@1.0.0 No repository fileld and the problem with the delete

MuhammadSalah (Fri, 15 Dec 2017 21:08:48 GMT):
ok hold on

MuhammadSalah (Fri, 15 Dec 2017 21:09:53 GMT):
copy me the package.json

MuhammadSalah (Fri, 15 Dec 2017 21:10:25 GMT):
the warnning is okay

MuhammadSalah (Fri, 15 Dec 2017 21:10:47 GMT):
could you make sure that the

MuhammadSalah (Fri, 15 Dec 2017 21:10:53 GMT):
folder is owned by your user

MuhammadSalah (Fri, 15 Dec 2017 21:11:09 GMT):
I know it seems silly, but I am run out of ideas

slipe (Fri, 15 Dec 2017 21:11:31 GMT):
I cused chmod -R 777 on tht hole Hyperledger folder

MuhammadSalah (Fri, 15 Dec 2017 21:11:42 GMT):
ok cool

slipe (Fri, 15 Dec 2017 21:11:42 GMT):
used*

MuhammadSalah (Fri, 15 Dec 2017 21:11:46 GMT):
yea yea

MuhammadSalah (Fri, 15 Dec 2017 21:11:53 GMT):
but while you were root?

slipe (Fri, 15 Dec 2017 21:12:04 GMT):
yes

MuhammadSalah (Fri, 15 Dec 2017 21:12:09 GMT):
do it as a chris

MuhammadSalah (Fri, 15 Dec 2017 21:12:29 GMT):
and do a chown

MuhammadSalah (Fri, 15 Dec 2017 21:12:35 GMT):
make it owned by your normal user

MuhammadSalah (Fri, 15 Dec 2017 21:12:36 GMT):
not root

MuhammadSalah (Fri, 15 Dec 2017 21:13:56 GMT):
or just clone the fabric-samples again

MuhammadSalah (Fri, 15 Dec 2017 21:13:58 GMT):
somewhere else

MuhammadSalah (Fri, 15 Dec 2017 21:14:04 GMT):
as your normal user

MuhammadSalah (Fri, 15 Dec 2017 21:14:12 GMT):
and give it a try

MuhammadSalah (Fri, 15 Dec 2017 21:14:18 GMT):
you up the network

MuhammadSalah (Fri, 15 Dec 2017 21:14:20 GMT):
then

MuhammadSalah (Fri, 15 Dec 2017 21:14:21 GMT):
npm install

MuhammadSalah (Fri, 15 Dec 2017 21:14:25 GMT):
and do the node thing

slipe (Fri, 15 Dec 2017 21:15:51 GMT):
oh here, as requested the package.jason file: { "name": "fabcar", "version": "1.0.0", "description": "Hyperledger Fabric Car Sample Application", "main": "fabcar.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { "fabric-ca-client": "unstable", "fabric-client": "unstable", "grpc": "^1.6.0" }, "author": "Anthony O'Dowd", "license": "Apache-2.0", "keywords": [ "Hyperledger", "Fabric", "Car", "Sample", "Application" ] }

slipe (Fri, 15 Dec 2017 21:16:49 GMT):
did chmod -R 777 as Chri.. but the same return by npm install

MuhammadSalah (Fri, 15 Dec 2017 21:16:54 GMT):
{ "name": "fabcar", "version": "1.0.0", "description": "Hyperledger Fabric Car Sample Application", "main": "fabcar.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { "fabric-ca-client": "^1.0.2", "fabric-client": "^1.0.2", "grpc": "^1.6.0" }, "author": "Anthony O'Dowd", "license": "Apache-2.0", "keywords": [ "Hyperledger", "Fabric", "Car", "Sample", "Application" ] }

MuhammadSalah (Fri, 15 Dec 2017 21:17:08 GMT):
put this as your package.json

slipe (Fri, 15 Dec 2017 21:19:32 GMT):
still the same after running npm inport

MuhammadSalah (Fri, 15 Dec 2017 21:20:39 GMT):
could you copy again please?

slipe (Fri, 15 Dec 2017 21:21:19 GMT):
chri@user-VirtualBox:~/Hyperledger/fabric-samples/fabcar$ npm install npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in. > pkcs11js@1.0.12 install /home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js > node-gyp rebuild make: Verzeichnis „/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js/build“ wird betreten CXX(target) Release/obj.target/pkcs11/src/main.o CXX(target) Release/obj.target/pkcs11/src/dl.o CXX(target) Release/obj.target/pkcs11/src/const.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/error.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/v8_convert.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/template.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/mech.o ../src/pkcs11/mech.cpp: In member function ‘void Mechanism::Free()’: ../src/pkcs11/mech.cpp:121:15: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete] delete(param); ^ CXX(target) Release/obj.target/pkcs11/src/pkcs11/param.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_aes.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_rsa.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_ecdh.o CXX(target) Release/obj.target/pkcs11/src/pkcs11/pkcs11.o CXX(target) Release/obj.target/pkcs11/src/async.o CXX(target) Release/obj.target/pkcs11/src/node.o SOLINK_MODULE(target) Release/obj.target/pkcs11.node COPY Release/pkcs11.node make: Verzeichnis „/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/pkcs11js/build“ wird verlassen > grpc@1.8.0 install /home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library [grpc] Success: "/home/chri/Hyperledger/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node" is installed via remote npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN fabcar@1.0.0 No repository field. added 283 packages in 76.166s

MuhammadSalah (Fri, 15 Dec 2017 21:22:05 GMT):
okay

MuhammadSalah (Fri, 15 Dec 2017 21:22:12 GMT):
this is good

MuhammadSalah (Fri, 15 Dec 2017 21:22:19 GMT):
docker ps -a

MuhammadSalah (Fri, 15 Dec 2017 21:22:23 GMT):
you have no dockers up?

MuhammadSalah (Fri, 15 Dec 2017 21:22:39 GMT):
did you do the ./startFabric?

slipe (Fri, 15 Dec 2017 21:22:58 GMT):
chri@user-VirtualBox:~/Hyperledger/fabric-samples/fabcar$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES abbf8f529544 dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba "chaincode -peer.a..." 3 hours ago Exited (2) About an hour ago dev-peer0.org1.example.com-fabcar-1.0 4a318d5dea2d hyperledger/fabric-tools "/bin/bash" 3 hours ago Exited (0) About an hour ago cli 591ba8704fd2 hyperledger/fabric-peer "peer node start" 3 hours ago Exited (0) About an hour ago peer0.org1.example.com 6060130ec89b hyperledger/fabric-ca "sh -c 'fabric-ca-..." 3 hours ago Exited (137) About an hour ago ca.example.com 42126c38316a hyperledger/fabric-orderer "orderer" 3 hours ago Exited (2) About an hour ago orderer.example.com 5be4af4c7ee7 hyperledger/fabric-couchdb "tini -- /docker-e..." 3 hours ago Exited (143) About an hour ago couchdb

MuhammadSalah (Fri, 15 Dec 2017 21:23:10 GMT):
ye

MuhammadSalah (Fri, 15 Dec 2017 21:23:13 GMT):
they are exited

MuhammadSalah (Fri, 15 Dec 2017 21:23:17 GMT):
issue these

MuhammadSalah (Fri, 15 Dec 2017 21:23:23 GMT):
docker rm -f $(docker ps -aq)

MuhammadSalah (Fri, 15 Dec 2017 21:23:27 GMT):
docker network prune -f

slipe (Fri, 15 Dec 2017 21:23:48 GMT):
no i thought i should first start npm import and than sstartFabric

slipe (Fri, 15 Dec 2017 21:23:51 GMT):
okay.. second

MuhammadSalah (Fri, 15 Dec 2017 21:23:59 GMT):
we are just cleaning up

MuhammadSalah (Fri, 15 Dec 2017 21:24:06 GMT):
then we will start fabric now

MuhammadSalah (Fri, 15 Dec 2017 21:24:09 GMT):
and try with node

MuhammadSalah (Fri, 15 Dec 2017 21:24:17 GMT):
the npm install is okay, there is no error

MuhammadSalah (Fri, 15 Dec 2017 21:24:17 GMT):
in your trail

slipe (Fri, 15 Dec 2017 21:24:56 GMT):
so docker is deleted... so now startFabric?

MuhammadSalah (Fri, 15 Dec 2017 21:25:00 GMT):
yep

MuhammadSalah (Fri, 15 Dec 2017 21:25:08 GMT):
if you don't have the images

MuhammadSalah (Fri, 15 Dec 2017 21:25:12 GMT):
do the pull fabric

MuhammadSalah (Fri, 15 Dec 2017 21:25:31 GMT):
sometimes it can't pull the latest tag for some god knows what reason

MuhammadSalah (Fri, 15 Dec 2017 21:25:41 GMT):
at least it never did with me :D

slipe (Fri, 15 Dec 2017 21:26:07 GMT):
the last lines: Total setup execution time : 33 secs ... Start by installing required packages run 'npm install' Then run 'node enrollAdmin.js', then 'node registerUser' The 'node invoke.js' will fail until it has been updated with valid arguments The 'node query.js' may be run at anytime once the user has been registered

MuhammadSalah (Fri, 15 Dec 2017 21:26:19 GMT):
yes

MuhammadSalah (Fri, 15 Dec 2017 21:26:20 GMT):
now

MuhammadSalah (Fri, 15 Dec 2017 21:26:25 GMT):
node enrollAdmin.js

slipe (Fri, 15 Dec 2017 21:26:59 GMT):
Oh! Successfully enrolled admin user "admin"

MuhammadSalah (Fri, 15 Dec 2017 21:27:17 GMT):
Good luckyo

MuhammadSalah (Fri, 15 Dec 2017 21:27:18 GMT):
owe me a drink there xD

slipe (Fri, 15 Dec 2017 21:27:26 GMT):
Thanks so much dude! And sorry for being stupid :D

MuhammadSalah (Fri, 15 Dec 2017 21:27:49 GMT):
You were so good.

MuhammadSalah (Fri, 15 Dec 2017 21:28:02 GMT):
Anyway, my recommendition

MuhammadSalah (Fri, 15 Dec 2017 21:28:03 GMT):
delete that image

MuhammadSalah (Fri, 15 Dec 2017 21:28:06 GMT):
I mean the VM

MuhammadSalah (Fri, 15 Dec 2017 21:28:12 GMT):
and issue things again as a normal user

MuhammadSalah (Fri, 15 Dec 2017 21:28:17 GMT):
just to have a solid env.

MuhammadSalah (Fri, 15 Dec 2017 21:28:38 GMT):
well of course that's if you care enough about it

MuhammadSalah (Fri, 15 Dec 2017 21:28:52 GMT):
because I am sure that VM now is pretty messed up

MuhammadSalah (Fri, 15 Dec 2017 21:29:18 GMT):
anyway enjoy running the example

MuhammadSalah (Fri, 15 Dec 2017 21:29:20 GMT):
to end

MuhammadSalah (Fri, 15 Dec 2017 21:29:23 GMT):
and celebrate victory

slipe (Fri, 15 Dec 2017 21:39:57 GMT):
and till now it realy works.. thanks so much :) If we ever meet you'll get your drink at least :)

MuhammadSalah (Fri, 15 Dec 2017 21:42:20 GMT):
No problem. :D

MuhammadSalah (Fri, 15 Dec 2017 21:42:33 GMT):
Happy blokchaining :)

Nikitas2105 (Fri, 15 Dec 2017 22:09:23 GMT):
Has joined the channel.

Nikitas2105 (Fri, 15 Dec 2017 22:14:09 GMT):
Hello, I really hope for your help, stuck with this problem for several days already. I've wrote a chaincode, tested it a little in dev mode, and decided to test it in network. The problem is that I had exmple tuna-app, and even if I change the chaincode inside tuna-chaincode.go it doesn't affect, whatever I do chaincode is still the same, I always do docker rm -f $(docker ps -aq) but still same chaincode.

Nikitas2105 (Fri, 15 Dec 2017 22:14:09 GMT):
Hello, I really hope for your help, stuck with this problem for several days already. I've wrote a chaincode, tested it a little in dev mode, and decided to test it in network. The problem is that I had exmple tuna-app, and even if I change the chaincode inside tuna-chaincode.go it doesn't affect, whatever I do chaincode is still the same, I always do docker rm -f $(docker ps -aq) but still same chaincode. I started deployment with basic-network script start.sh, changed directory in yml file, still the same.

Nikitas2105 (Fri, 15 Dec 2017 22:14:09 GMT):
Hello, I really hope for your help, stuck with this problem for several days already. I've wrote a chaincode, tested it a little in dev mode, and decided to test it in network. The problem is that I had exmple tuna-app, and even if I change the chaincode inside tuna-chaincode.go it doesn't affect, whatever I do chaincode is still the same, I always do docker rm -f $(docker ps -aq) but still same chaincode. I started deployment of chaincode with basic-network script start.sh, changed directory in yml file, still the same.

Nikitas2105 (Fri, 15 Dec 2017 22:14:09 GMT):
Hello, I really hope for your help, stuck with this problem for several days already. I've wrote a chaincode, tested it a little in dev mode, and decided to test it in network. The problem is that I had exmple tuna-app, and even if I change the chaincode inside tuna-chaincode.go it doesn't affect, whatever I do chaincode is still the same, I always do docker rm -f $(docker ps -aq) but still same chaincode. I started deployment of chaincode with basic-network script start.sh, changed directory in yml file, still the same.

slipe (Fri, 15 Dec 2017 22:34:19 GMT):
Sorry Dude, Think you have to come back tomorrow. Then, I hope, there will be soneone online who can help you

Nikitas2105 (Fri, 15 Dec 2017 22:36:26 GMT):
I hope...

mmick (Sat, 16 Dec 2017 12:16:56 GMT):
how to store an audio file to fabric?

MuhammadSalah (Sat, 16 Dec 2017 14:09:03 GMT):
ah

MuhammadSalah (Sat, 16 Dec 2017 14:09:08 GMT):
it's probably pulling a bad image

MuhammadSalah (Sat, 16 Dec 2017 14:09:12 GMT):
try

MuhammadSalah (Sat, 16 Dec 2017 14:09:15 GMT):
running

MuhammadSalah (Sat, 16 Dec 2017 14:09:27 GMT):
docker rmi $(docker images dev-*)

MuhammadSalah (Sat, 16 Dec 2017 14:09:38 GMT):
it will delete the chaincode pre built images

MuhammadSalah (Sat, 16 Dec 2017 14:09:41 GMT):
and voila

douglasthiel (Sat, 16 Dec 2017 17:30:14 GMT):
**Can anyone tell me the significance of this error? ** Debugging my customized fabric network I see the stdout showing errors like this for each of my peers: peer1.custodian-org.finixn.com | 2017-12-16 17:21:20.148 UTC [nodeCmd] serve -> CRIT 017 Error loading secure config for peer (Error loading TLS key and/or certificate (open /etc/hyperledger/fabric/tls/server.crt: no such file or directory)) The folder, /etc/hyperledger/fabric/tls, isn't one I'm mapping to in the :volumes section of my docker files and if I did I don't see how since I have 6 peers, 2 for each of 3 organizations.

douglasthiel (Sat, 16 Dec 2017 17:50:33 GMT):
never mind, just another typo.

MuhammadSalah (Sat, 16 Dec 2017 18:52:25 GMT):
@douglasthiel happens with me all the time!

ledger (Sun, 17 Dec 2017 08:50:55 GMT):
Has joined the channel.

jellevdp (Sun, 17 Dec 2017 12:02:53 GMT):
We are working on the configuration of the fabrick go sdk at the moment, and as such we are wondering what the most convenient way would be to share config and crypto material of a blockchain network operator to onboarding participants. ie. *What would be the expected way for someone who operates a hyperledger fabric blockhain network to provide access to a new participant in a production environment? *In the case of fabric, at present, would they have to provide the config.yaml file and all pem files + crypto config? All in one archive with relative paths in the config.yaml (a la .bna file of composer)? Or would the user be expected to compile the config.yaml themselves after they are given information about the addresses of the peers and their certificates? Any feedback is very welcome.

bruteforced (Sun, 17 Dec 2017 15:00:57 GMT):
Has joined the channel.

MuhammadSalah (Sun, 17 Dec 2017 15:13:34 GMT):
@jellevdp how long is this going to be open for debate?

iyerrama25 (Sun, 17 Dec 2017 17:33:13 GMT):
Has joined the channel.

ArnabChatterjee (Mon, 18 Dec 2017 00:39:00 GMT):
Hi everyone, Can anyone let me know why are we not joining anchor peers in the channel and the balance-transfer example? I want to know the benefit and disadvantage if any of defining anchor peers. Also, please let me know what is the effect of not having anchor peers on election or behavior of leading peer. Thank you. 🙂

sayan-chatterjee (Mon, 18 Dec 2017 05:17:53 GMT):
Has joined the channel.

sayan-chatterjee (Mon, 18 Dec 2017 05:22:37 GMT):
hi everyone.. i could get the hyper ledger fabric running in a machine with peers..

sayan-chatterjee (Mon, 18 Dec 2017 05:23:29 GMT):
however I am not getting any reference documents to try this out by having different peers on different system(host machine) and then deploying chaincode to them

sayan-chatterjee (Mon, 18 Dec 2017 05:23:48 GMT):
any reference to documents or sample codes will be very helpful

CodeReaper (Mon, 18 Dec 2017 05:29:32 GMT):
Hey, in balance transfer example we see two channel objects each for one organization. If I dont mention the peers in it, it will send proposal to all peers in that channel object, which means peers of second organization wont receive any transaction proposal? I'm guessing the default endorsement policy of the chaincode is basically proposals from any one organization. Will I have to add peers of other organizations also in my channel object of node application belonging to one organization for production based?

ArvsIndrarys (Mon, 18 Dec 2017 11:25:11 GMT):
Hi guys ! I'm on a strange kind of error. I voluntarily cut the connection of one my client for some time, then I put it back on. I would expect it starts working again when it reconnects but instead I have this : ``` //connection still blocked, normal behaviour 10:51:20.364 [grpc] DEBU : grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp myserver:itsport: getsockopt: no route to host"; Reconnecting to {myserver:itsport } //From this on for several minutes (one request/mn) I'll receive only "invalid transactions" error Couldn't create measure ({98765432198765 Prod ACC00000001 BASE 3712614 2017-12-18T10:52:17.322Z 0 0}): couldn't query the chaincode: invoke Error received from eventhub for txid(e6cf35c9f8c8ec92f8fed7965c74d53a7840612654d5394c4eb6e0333ea1e5ce), error(Received invalid transaction from channel dev) [GIN] 2017/12/18 - 10:52:19 | 500 | 2.153166331s | 172.18.0.3 | POST /ACC00000001/meters/98765432198765/measures Couldn't create measure ({98765432198765 Prod ACC00000001 BASE 3712862 2017-12-18T10:53:17.336Z 0 0}): couldn't query the chaincode: invoke Error received from eventhub for txid(83732c5dd60d28e0994f30f7f933e7aeae223f5a2762d44bd0db8336c7056129), error(Received invalid transaction from channel dev) [GIN] 2017/12/18 - 10:53:21 | 500 | 3.988733031s | 172.18.0.3 | POST /ACC00000001/meters/98765432198765/measures Couldn't create measure ({98765432198765 Prod ACC00000001 BASE 3712902 2017-12-18T10:54:17.354Z 0 0}): couldn't query the chaincode: invoke Error received from eventhub for txid(a29a2118b6841cd97749373957c663f605c938691a765e4beabd3d5ef1a5b16d), error(Received invalid transaction from channel dev) [GIN] 2017/12/18 - 10:54:29 | 500 | 11.720014739s | 172.18.0.3 | POST /ACC00000001/meters/98765432198765/measures Couldn't create measure ({98765432198765 Prod ACC00000001 BASE 3713104 2017-12-18T10:55:17.371Z 0 0}): couldn't query the chaincode: invoke Error received from eventhub for txid(4d1f779403a75696c05bb1f1235380b5baa3d8b41b1d99d400731346c0b44bc8), error(Received invalid transaction from channel dev) // data is right again, but I don't know why [GIN] 2017/12/18 - 10:55:28 | 500 | 10.762418284s | 172.18.0.3 | POST /ACC00000001/meters/98765432198765/measures ``` Could someone give me some advice on how to debug it? My peer/orderer are set up to `logging level: error`. Is there another way to debug it without restarting all to find why these transactions were refused? Anyway, I haven't seen in the hyperledger tutorials a debug part. It would be nice to have a listing of common errors and how to debug/resolve it (or at least some clues)

asuchit (Mon, 18 Dec 2017 11:58:36 GMT):
"Build you first network" example, what is the use of Users generated in the organization ? Can we use them for query and invoke operation on the peers and how ?

matrisis (Mon, 18 Dec 2017 13:09:04 GMT):
@asuchit Yes, the user is created for this reason. You can see in fabcar how it is done with the node sdk.

matrisis (Mon, 18 Dec 2017 13:10:14 GMT):
You can set your user to do whant you want

matrisis (Mon, 18 Dec 2017 13:10:14 GMT):
You can set your user to do what you want.

andy_joyful (Mon, 18 Dec 2017 14:24:33 GMT):
Hi! I'm trying to connect Fabric-Rest to Composer in order to get blocks and transactions. What I Do:

andy_joyful (Mon, 18 Dec 2017 14:24:33 GMT):
Hi! I'm trying to connect Fabric-Rest to Composer in order to get blocks and transactions. 1) "http://localhost:3000/api/fabric/1_0/channels" returns me composerchannel 2) "http://localhost:3000/api/fabric/1_0/channels/composerchannel" returns me error "Channel not found for name composerchannel." Does Fabric-Rest work well with Composer?

michael_aR (Mon, 18 Dec 2017 15:51:49 GMT):
i started the "first-network"... invoke/query from inside docker cli container is working fine... if i want to execute chaincode with postman (Rest) docker logs says: "tls: oversized record received with length 21536". I'm not working with a local vm. the nework is on a standalone suse linux server.

michael_aR (Mon, 18 Dec 2017 15:54:08 GMT):
i don't know which are the right TLS certificates for postman: Which CRT file, Key file, Passphrase ?

muasif80 (Mon, 18 Dec 2017 17:55:04 GMT):
A general question is that how fabric achieves immutability? What tools it incorporates to achieve it?

charcook24 (Mon, 18 Dec 2017 19:47:10 GMT):
Has joined the channel.

charcook24 (Mon, 18 Dec 2017 19:56:59 GMT):
I am following this tutorial 'writing your first application' Link : http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html Here when i am trying to make user1 signer by giving this command: *fabric_client.getUserContext('user1',true);* But it is giving me this error:- *bash: syntax error near unexpected token `'user1',true'*

charcook24 (Mon, 18 Dec 2017 19:57:51 GMT):
Does anyone know why I am receiving this message?

silliman (Mon, 18 Dec 2017 20:13:31 GMT):
@charcook24 That is not a command meant to be entered from your bash shell. That is a line within the query.js Node.js program.

charcook24 (Mon, 18 Dec 2017 20:18:47 GMT):
@silliman thank you. Few hours into the documentation leads to silly mistakes like that :)

prabvi01 (Mon, 18 Dec 2017 22:26:46 GMT):
Has joined the channel.

prabvi01 (Mon, 18 Dec 2017 22:27:16 GMT):
Can anyone help me in deploying business network in 2 different VM (ubuntu server)?

tmkaranraj (Mon, 18 Dec 2017 22:33:26 GMT):
Has joined the channel.

prabvi01 (Mon, 18 Dec 2017 22:59:18 GMT):
i have created business network using fabric composer. i have deployed 2 org in same VM but i want to deploy this business network in 2 different VM as 2 org... can anyone help me in this. any doc or link would be appreciated

vdods (Tue, 19 Dec 2017 00:53:59 GMT):
Question regarding chaincode instantiation: The default instantiation policy is "one of channel-admins". When you instantiate chaincode, you send the instantiation transaction proposal to a set of peers, get their endorsement, and send that to the orderer, which then causes the instantiation transaction to be committed to the ledger. Say you're in a multi-org network, and after having all the orgs install the chaincode on their peers (separately, since only peer admins can install chaincode), you (as the channel admin) want to instantiate the chaincode on the channel. Do you send your instantiation transaction proposal to all peers on the channel? Or do you have to have an admin from each org send the proposal?

vdods (Tue, 19 Dec 2017 00:55:50 GMT):
To put it more concisely, assuming default instantiation policy of "one of channel-admins", can a channel admin send the instantiation proposal to all peers on the channel? Or is one admin per org needed?

FaysalAhmed (Tue, 19 Dec 2017 04:11:34 GMT):
Has joined the channel.

Lucifer (Tue, 19 Dec 2017 07:03:40 GMT):
hi , i am trying to implement the chaincode encryption example from here:- https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example

Lucifer (Tue, 19 Dec 2017 07:04:02 GMT):
but getting the following error : enccc_example/vendor/github.com/hyperledger/fabric/msp vendor/github.com/hyperledger/fabric/msp/cert.go:80:22: undefined: sw.SignatureToLowS

Lucifer (Tue, 19 Dec 2017 07:04:14 GMT):
when using gobuild

Lucifer (Tue, 19 Dec 2017 07:04:56 GMT):
anyone who implemented this and can help me with this?

Vadim (Tue, 19 Dec 2017 07:54:36 GMT):
@vdods http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#creating-the-package

Vadim (Tue, 19 Dec 2017 07:55:03 GMT):
@Lucifer I suppose you are on 1.1-preview?

zhishui (Tue, 19 Dec 2017 08:02:40 GMT):
Has joined the channel.

zhishui (Tue, 19 Dec 2017 08:03:40 GMT):
Hyperledger Fabric Client Registration failed I am new to Hyperledger Fabric and i am trying to register the fabric client with the server locally. here is what i have done so far. go get -u github.com/hyperledger/fabric-ca/cmd... fabric-ca-server start -b admin:adminpw after that i got the logs 2017/12/19 15:07:21 [DEBUG] validate local profile 2017/12/19 15:07:21 [DEBUG] profile is valid 2017/12/19 15:07:21 [DEBUG] CA initialization successful 2017/12/19 15:07:21 [INFO] Home directory for default CA: /Users/xxx/workspace_go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server 2017/12/19 15:07:21 [DEBUG] 1 CA instance(s) running on server 2017/12/19 15:07:21 [INFO] Listening on http://0.0.0.0:7054 2017/12/19 15:07:58 [DEBUG] Received request then i tried to register the fabric client with server by using the following commands export FABRIC_CA_CLIENT_HOME=/Users/xxx/workspace_go/src/github.com/hyperledger/fabric-ca/clients/admin fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 and I got the following logs 2017/12/19 14:31:18 [INFO] generating key: &{A:ecdsa S:256} 2017/12/19 14:31:18 [INFO] encoded CSR 2017/12/19 14:31:18 [INFO] Stored client certificate at /Users/xxx/workspace_go/src/github.com/fabric-ca/clients/admin/msp/signcerts/cert.pem 2017/12/19 14:31:18 [INFO] Stored CA root certificate at /Users/xxx/workspace_go/src/github.com/fabric-ca/clients/admin/msp/cacerts/localhost-7054.pem but when i tried to register the client then i got the following error fabric-ca-client register --id.name admin --id.affiliation org1.department1 --id.attrs 'hf.Revoker=true,admin=true:ecert' Error: Error response from server was: Authorization failure on the fabric-server side i got the following logs 2017/12/19 15:15:33 [DEBUG] Checking for revocation/expiration of certificate owned by 'admin' 2017/12/19 15:15:33 [DEBUG] DB: Get certificate by serial (7b68a45b818e80f2421c7c1ba9e56f955c9d0d4c) and aki (e0e139ed3d2a5ce17e0b3f70373264062b25d6f5) 2017/12/19 15:15:33 [ERROR] No certificates found for provided serial and aki Can anyone tell what i am doing wrong here.

Vadim (Tue, 19 Dec 2017 08:25:08 GMT):
@zhishui remove everything from /Users/xxx/workspace_go/src/github.com/fabric-ca/clients/admin and try again

zhishui (Tue, 19 Dec 2017 08:34:23 GMT):
@Vadim The same problem.

zhishui (Tue, 19 Dec 2017 08:34:42 GMT):

Clipboard - 2017年12月19日下午4点34分

zhishui (Tue, 19 Dec 2017 08:35:17 GMT):

Clipboard - 2017年12月19日下午4点35分

alexandra_g (Tue, 19 Dec 2017 09:42:46 GMT):
Question regarding endorsing and committing peers: Since endorsing peers can perform same function as committing peers, wouldn't it be more efficient and performant to get rid of committing peers altogether? What is the benefit of having overlap functionality? Thanks in advance!

Vadim (Tue, 19 Dec 2017 09:45:23 GMT):
@alexandra_g endorsing and commiting peers are in fact the same peer on different stage of tx processing

Vadim (Tue, 19 Dec 2017 09:45:23 GMT):
@alexandra_g endorsing and commiting peers are in fact the same peer on different stages of tx processing

Vadim (Tue, 19 Dec 2017 09:45:58 GMT):
there is no physical separation between endorsers and committers

Lucifer (Tue, 19 Dec 2017 09:46:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A8GK5qsYsMvoykZEA) @Vadim yup

Vadim (Tue, 19 Dec 2017 09:47:53 GMT):
@Lucifer and you have a source code from master branch in your gopath?

Vadim (Tue, 19 Dec 2017 09:50:36 GMT):
@Lucifer I've just checked: I tried to compile enccc using the 1.1-preview source code base and that worked

Vadim (Tue, 19 Dec 2017 09:51:29 GMT):
works on the latest master too

matrisis (Tue, 19 Dec 2017 10:43:00 GMT):
Hi, i get this error : `sendPeersProposal - Promise is rejected: Error: chaincode error (status: 500, message: Invalid Smart Contract function name.)` when i try to update my chaincode. My chaincode on my peer is the correct one, i restarted everything... If someone has an idea, i dont really see why...

matrisis (Tue, 19 Dec 2017 10:43:53 GMT):
And i can still access the previous removed functions ...

Vadim (Tue, 19 Dec 2017 10:44:15 GMT):
@matrisis error message comes from your chaincode, apparently, it does not like the function name you pass to it

matrisis (Tue, 19 Dec 2017 10:45:44 GMT):
Yes that's what i understood with the status but i call the right name : initLedgerData

Vadim (Tue, 19 Dec 2017 10:46:02 GMT):
this is from your chaincode logic, so check it

Vadim (Tue, 19 Dec 2017 10:46:34 GMT):
the request arrives to Invoke function, so that logic must be there

matrisis (Tue, 19 Dec 2017 10:47:16 GMT):
Yes but why can i call removed fonctions from the invoke and code but not the new one

matrisis (Tue, 19 Dec 2017 10:48:04 GMT):
``` func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response { // Retrieve the requested Smart Contract function and arguments function, args := APIstub.GetFunctionAndParameters() // Route to the appropriate handler function to interact with the ledger appropriately if function == "initLedgerData" { return s.initLedgerData(APIstub) } else if function == "addData" { return s.addData(APIstub, args) } else if function == "queryAllData" { return s.queryAllData(APIstub, args) } else if function == "removeData" { return s.removeData(APIstub, args) } return shim.Error("Invalid Smart Contract function name : " + function) } func (s *SmartContract) initLedgerData(APIstub shim.ChaincodeStubInterface) sc.Response ```

Vadim (Tue, 19 Dec 2017 10:48:06 GMT):
then the request going to your old chaincode which is still running

matrisis (Tue, 19 Dec 2017 10:49:11 GMT):
Exactly since itis not de correct shim Error

matrisis (Tue, 19 Dec 2017 10:49:15 GMT):
Than this one

matrisis (Tue, 19 Dec 2017 10:49:49 GMT):
However, i deleted ans created my docker peers using this chaincode but still

matrisis (Tue, 19 Dec 2017 10:51:05 GMT):
i checked on my peers and they seem to have my curent chaincode version

Vadim (Tue, 19 Dec 2017 10:51:44 GMT):
how do you know you deploy your latest chaincode and not the old chaincode?

matrisis (Tue, 19 Dec 2017 10:53:07 GMT):
i dont have the older version anymore locally foa and when i connect to my peer through bash the only chaincode i get is mine

matrisis (Tue, 19 Dec 2017 10:53:30 GMT):
I also peer chaincode init this one

Vadim (Tue, 19 Dec 2017 10:53:40 GMT):
and yet it seems it runs the old version

matrisis (Tue, 19 Dec 2017 10:54:15 GMT):
There must be somewhere i'm missing something ...

ArvsIndrarys (Tue, 19 Dec 2017 10:55:10 GMT):
Hi guys ! I have an error : `Block [232] Transaction index [0] TxId [019e5cdf5f5245420b42d7e04a8b5cf06a691ea811f7d2d9ea14ab21103fa7ce] marked as invalid by state validator. Reason code [12]` 12 - means phantom_read but it doesn't help me much. Does that mean the state has been modified (another transaction was validated) while the transaction was occuring?

matrisis (Tue, 19 Dec 2017 10:57:15 GMT):
@Vadim It doesnt make sens ...

Vadim (Tue, 19 Dec 2017 10:57:35 GMT):
how do you deploy your chaincode?

matrisis (Tue, 19 Dec 2017 10:59:25 GMT):
`docker exec -e "CORE_PEER_LOCALMSPID=$CPLMSPID" -e "CORE_PEER_MSPCONFIGPATH=$CPMSPCONF" cli peer chaincode install -n $CCNAME -v 1.0 -p $CCADDR`

Vadim (Tue, 19 Dec 2017 11:00:14 GMT):
and you sure you have the latest chaincode in cli?

matrisis (Tue, 19 Dec 2017 11:02:14 GMT):
`sudo docker exec -it cli cat ../../../../github.com/edgewhere/go/fabcar.go` echoes my updated fabcar chaincode

matrisis (Tue, 19 Dec 2017 11:02:14 GMT):
`sudo docker exec -it cli cat ../../../../github.com/comp/go/fabcar.go` echoes my updated fabcar chaincode

matrisis (Tue, 19 Dec 2017 11:03:37 GMT):
``` CCADDR=github.com/comp/go/ CCNAME=fabcar ```

matrisis (Tue, 19 Dec 2017 11:03:37 GMT):
```CCADDR=github.com/comp/go/ CCNAME=fabcar ```

matrisis (Tue, 19 Dec 2017 11:03:47 GMT):
btw

MuhammadSalah (Tue, 19 Dec 2017 11:16:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CfCNQfyff9wL3nzEm) @ArnabChatterjee Anchor peers are allowed to be gossiping with other peers of other organizations. They act like a gateway for your organization peers; non anchor peers only gossip with their respective peers of the same organization. In other words, anchor peers are the actual peers subscribing to a cross channel between two organizations. I am not an expert, but I am giving you an answer through my understanding, and based on the series of Ivan Vankov videos on youtube.

ArnabChatterjee (Tue, 19 Dec 2017 11:23:07 GMT):
Thanks @MuhammadSalah

MuhammadSalah (Tue, 19 Dec 2017 11:23:59 GMT):
@ArnabChatterjee you are most welcome anytime.

matrisis (Tue, 19 Dec 2017 13:25:12 GMT):
@Vadim no new ideas?

Vadim (Tue, 19 Dec 2017 13:34:35 GMT):
@matrisis does $GOPATH/src/$CCADDR in your container contain the correct chainode?

matrisis (Tue, 19 Dec 2017 13:38:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L66E46fAoEaK7XDkq) @Vadim There is no directory having this name

matrisis (Tue, 19 Dec 2017 13:39:37 GMT):
isn't $CCADDR the address in the docker container ?

MuhammadSalah (Tue, 19 Dec 2017 13:40:09 GMT):
No, on your environment

MuhammadSalah (Tue, 19 Dec 2017 13:40:17 GMT):
the bash one.

MuhammadSalah (Tue, 19 Dec 2017 13:40:23 GMT):
you are executing from.

MuhammadSalah (Tue, 19 Dec 2017 13:40:55 GMT):
Sorry to jump in like this. @matrisis

matrisis (Tue, 19 Dec 2017 13:41:05 GMT):
Haha, no problem

matrisis (Tue, 19 Dec 2017 13:41:22 GMT):
What i find weird is how does this work then

matrisis (Tue, 19 Dec 2017 13:41:29 GMT):
what chaincode does it use?

MuhammadSalah (Tue, 19 Dec 2017 13:41:32 GMT):
$CCADDR is specified in your docker env, you need it also on your terminal.

MuhammadSalah (Tue, 19 Dec 2017 13:42:01 GMT):
I don't know, I have not read the whole thread, but if you pass an argument the bash replaces them first, then sends them to the docker socket.

Vadim (Tue, 19 Dec 2017 13:42:09 GMT):
@matrisis it should be chaincode package name, not the docker container address

Vadim (Tue, 19 Dec 2017 13:42:57 GMT):
and yes, CCADDR should be defined in your env,

Vadim (Tue, 19 Dec 2017 13:43:10 GMT):
but the path is within the container

matrisis (Tue, 19 Dec 2017 13:43:59 GMT):
it is set in my env

matrisis (Tue, 19 Dec 2017 13:44:08 GMT):
but there is nothing inside locally

Vadim (Tue, 19 Dec 2017 13:44:18 GMT):
in container, not locally

MuhammadSalah (Tue, 19 Dec 2017 13:44:39 GMT):
If you want to manage from both sides.

muasif80 (Tue, 19 Dec 2017 13:44:51 GMT):
Lets say I have an org, a peer for that org, an orderer, a fabric-ca. Now I make a transaction like invoke a=100 and b=200 and exit. So now later on i want to make move from a to b of 50 1. How will i know which channel i need to connect to ? Will i have to store it somewhere with me the channel name or some other identifier? 2. To use a user identity, will i need to store something for a user used in the initial transaction? Like its certs etc. 3. Can i make a new user and use that to make 2nd transaction ?

MuhammadSalah (Tue, 19 Dec 2017 13:45:05 GMT):
You can specify a volume. Do your changes from your local machine; and do the docker exec command

matrisis (Tue, 19 Dec 2017 13:46:46 GMT):
It is in my container at the address i have set locally. I specified a volum as : `./chaincode/:/opt/gopath/src/github.com/comp/go/`

matrisis (Tue, 19 Dec 2017 13:47:43 GMT):
If i had to run it : ``` export CCADDR=github.com/comp/go/ export CCNAME=fabcar docker exec -e "CORE_PEER_LOCALMSPID=$CPLMSPID" -e "CORE_PEER_MSPCONFIGPATH=$CPMSPCONF" cli peer chaincode install -n $CCNAME -v 1.0 -p $CCADDR

matrisis (Tue, 19 Dec 2017 13:47:43 GMT):
If i had to run it : ```export CCADDR=github.com/comp/go/ export CCNAME=fabcar docker exec -e "CORE_PEER_LOCALMSPID=$CPLMSPID" -e "CORE_PEER_MSPCONFIGPATH=$CPMSPCONF" cli peer chaincode install -n $CCNAME -v 1.0 -p $CCADDR ```

Vadim (Tue, 19 Dec 2017 13:50:01 GMT):
that appears to be correct, but if you could make sure that /opt/gopath/github.com/comp/go/ really contain what you expect?

MuhammadSalah (Tue, 19 Dec 2017 13:50:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uzXLZDYQdxN8xcrgb) @muasif80 Well the trick in your question, you have to separate between two concepts of identities here. There is the Business Network identities, and Fabric Network identities. In this example there is no business network identities, you are using the network identities to perform a transaction. i.e the admin peer identitiy to issue that chaincode transaction through CLI container. That's if I get it right, you are using the ab chaincode. to create user identities, you can pretty much tie them to PEER, or even manage identities over application level (chaincode) as what COMPOSER does. That's up to you, and your use case of course. To create a new user, you just need some valid crypto certs, which are signed by root cert, to establish the chain of trust. Or if you have a fabric-ca you can do the enrolment procedure, there is a nodejs sdk example for that in fabric-samples. To know correct channels, you can always query the channel through peer channel list Do pretty much the same for chaincodes on this channel. Hope this suffices your question.

matrisis (Tue, 19 Dec 2017 13:52:04 GMT):
@Vadim ```docker exec -it cli cat /opt/gopath/src/github.com/edgewhere/go/fabcar.go > echoes the right file cat /opt/gopath/src/github.com/edgewhere/go/fabcar.go > No such file or directory. ```

matrisis (Tue, 19 Dec 2017 13:52:04 GMT):
@Vadim ```docker exec -it cli cat /opt/gopath/src/github.com/comp/go/fabcar.go > echoes the right file cat /opt/gopath/src/github.com/comp/go/fabcar.go > No such file or directory. ```

Vadim (Tue, 19 Dec 2017 13:52:56 GMT):
ok, so any old chaincodes in docker ps -a?

MuhammadSalah (Tue, 19 Dec 2017 13:53:11 GMT):
images!

muasif80 (Tue, 19 Dec 2017 13:53:23 GMT):
Business network entities are a and b for example. And peer and channel are fabric entities. I am just saying that i have used a user to do a transaction now later on i can use any user that is validated by channel root cert to make another transaction on the channel? @MuhammadSalah

MuhammadSalah (Tue, 19 Dec 2017 13:53:43 GMT):
@Vadim chaincode Images, fabric tries to inquire the images, if there is a pre built chaincode image, they don't look into the path they just package it and deploy it over docker.

MuhammadSalah (Tue, 19 Dec 2017 13:53:57 GMT):
docker images dev*

Vadim (Tue, 19 Dec 2017 13:54:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RmGbQoNDJfQZSdb6B) what do yoi mean?

Vadim (Tue, 19 Dec 2017 13:54:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RmGbQoNDJfQZSdb6B) what do you mean?

MuhammadSalah (Tue, 19 Dec 2017 13:54:34 GMT):
docker ps -a, returns docker instances.

MuhammadSalah (Tue, 19 Dec 2017 13:54:42 GMT):
or docker containers whether exited or not.

Vadim (Tue, 19 Dec 2017 13:54:45 GMT):
no, it returns all chaincode containers

MuhammadSalah (Tue, 19 Dec 2017 13:54:54 GMT):
yes true.

MuhammadSalah (Tue, 19 Dec 2017 13:54:57 GMT):
not the images.

matrisis (Tue, 19 Dec 2017 13:54:59 GMT):
Ok that might explain something

MuhammadSalah (Tue, 19 Dec 2017 13:55:05 GMT):
Yes yes I know it

MuhammadSalah (Tue, 19 Dec 2017 13:55:07 GMT):
just issue

MuhammadSalah (Tue, 19 Dec 2017 13:55:11 GMT):
docker images dev*

MuhammadSalah (Tue, 19 Dec 2017 13:55:16 GMT):
you will find some images

MuhammadSalah (Tue, 19 Dec 2017 13:55:24 GMT):
referring to your peer and chaincode

Vadim (Tue, 19 Dec 2017 13:55:32 GMT):
@matrisis just make sure that you remove all dev* images and containers

MuhammadSalah (Tue, 19 Dec 2017 13:55:56 GMT):
well, if he removes the containers he may remove other chaincodes.

MuhammadSalah (Tue, 19 Dec 2017 13:56:03 GMT):
if it's a dummy play yea do that

MuhammadSalah (Tue, 19 Dec 2017 13:56:15 GMT):
But problem is with images.

MuhammadSalah (Tue, 19 Dec 2017 13:56:41 GMT):
the peer invokes the docker socket, looks for images tied to fabcard with version

MuhammadSalah (Tue, 19 Dec 2017 13:56:47 GMT):
he finds the images already there

MuhammadSalah (Tue, 19 Dec 2017 13:56:49 GMT):
they deploy it

matrisis (Tue, 19 Dec 2017 13:56:50 GMT):
Yeah dont worry i'm basically testing things so ...

MuhammadSalah (Tue, 19 Dec 2017 13:56:52 GMT):
don't look to build it.

Vadim (Tue, 19 Dec 2017 13:56:59 GMT):
@MuhammadSalah and you can't remove images if there are containers which use them

MuhammadSalah (Tue, 19 Dec 2017 13:57:11 GMT):
Yea, true.

MuhammadSalah (Tue, 19 Dec 2017 13:57:18 GMT):
I just meant he doesn't need to remove them all

MuhammadSalah (Tue, 19 Dec 2017 13:57:24 GMT):
Just the respective one

matrisis (Tue, 19 Dec 2017 13:57:29 GMT):
I actually have a dev peer running

MuhammadSalah (Tue, 19 Dec 2017 13:57:30 GMT):
if he had a development environment going on or so

matrisis (Tue, 19 Dec 2017 13:58:09 GMT):
So the dev peer would actually be the one used to execute the chaincode ?

MuhammadSalah (Tue, 19 Dec 2017 13:58:16 GMT):
it would totally work if you just give it another name

MuhammadSalah (Tue, 19 Dec 2017 13:58:26 GMT):
It's the chaincode (program).

MuhammadSalah (Tue, 19 Dec 2017 13:58:51 GMT):
Where all the go files run there as a service waiting to be invoked.

MuhammadSalah (Tue, 19 Dec 2017 14:00:05 GMT):
that's how all chaincodes are in isolated environment.

matrisis (Tue, 19 Dec 2017 14:00:50 GMT):
Ok it makes sense but didnt kew that thanks.

MuhammadSalah (Tue, 19 Dec 2017 14:01:01 GMT):
I have ran into that issue before.

MuhammadSalah (Tue, 19 Dec 2017 14:01:08 GMT):
No problem.

matrisis (Tue, 19 Dec 2017 14:01:33 GMT):
So basically how do you instantiate a chaincode after the command i gave before ?

MuhammadSalah (Tue, 19 Dec 2017 14:01:44 GMT):
okay look

MuhammadSalah (Tue, 19 Dec 2017 14:01:46 GMT):
install

MuhammadSalah (Tue, 19 Dec 2017 14:01:50 GMT):
just packs the image

MuhammadSalah (Tue, 19 Dec 2017 14:01:59 GMT):
instantiate

MuhammadSalah (Tue, 19 Dec 2017 14:02:04 GMT):
starts the program in that image

MuhammadSalah (Tue, 19 Dec 2017 14:02:07 GMT):
and makes it a container

MuhammadSalah (Tue, 19 Dec 2017 14:02:18 GMT):
You can install your code

MuhammadSalah (Tue, 19 Dec 2017 14:02:22 GMT):
issue docker ps -a

MuhammadSalah (Tue, 19 Dec 2017 14:02:28 GMT):
no dev containers

MuhammadSalah (Tue, 19 Dec 2017 14:02:35 GMT):
instantiate

MuhammadSalah (Tue, 19 Dec 2017 14:02:38 GMT):
you find a dev container

MuhammadSalah (Tue, 19 Dec 2017 14:02:45 GMT):
but before you instantiate

MuhammadSalah (Tue, 19 Dec 2017 14:02:49 GMT):
you can find a dev images :)

markthedark (Tue, 19 Dec 2017 14:41:15 GMT):
hello

markthedark (Tue, 19 Dec 2017 14:43:10 GMT):
anyone managed to get through the https://hyperledger-fabric.readthedocs.io/en/v1.0.0-beta/Setup/Chaincode-setup.html#running-the-chaincode tutorial? Everything is working fine, until the *Terminal 3* step, i connect to the peer in cli but don't know how to invoke, query or do anything with the chaincode.

MuhammadSalah (Tue, 19 Dec 2017 14:45:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LALsBRwQ46zAmriXi) @markthedark https://www.youtube.com/watch?v=5AtAA9ZMAA4&list=PLz3iwtnWFin-yUUgn-zP7KJp0iW0IFas9

MuhammadSalah (Tue, 19 Dec 2017 14:46:04 GMT):
These videos run the same steps.

markthedark (Tue, 19 Dec 2017 14:46:22 GMT):
thx, i'll check em out

MuhammadSalah (Tue, 19 Dec 2017 14:46:28 GMT):
Take them a reference, you shouldn't get lost :)

MuhammadSalah (Tue, 19 Dec 2017 14:46:30 GMT):
No problem.

C.Jason.Phelps (Tue, 19 Dec 2017 15:33:24 GMT):
is there an expect release schedule?

markthedark (Tue, 19 Dec 2017 15:36:42 GMT):
another question, i managed to get the go tutorial working. now i'm wondering what's the easiest way to deploy some java chaincode to the network? Or what is the easiest way to copy the compiled code to the docker container?

CodeReaper (Tue, 19 Dec 2017 16:05:50 GMT):
Can anyone explain me the motive of admin of orderer organization in the followinf endorsement policy?? This means that admin peer signing identity signing a transaction has to be taken in consideration??

CodeReaper (Tue, 19 Dec 2017 16:06:02 GMT):

Clipboard - December 19, 2017 9:35 PM

CodeReaper (Tue, 19 Dec 2017 16:07:08 GMT):
Can we have committing peers from orderer organization also for a channel?? What is the difference between 'admin' and' member' mentioned here?

rajeev20 (Tue, 19 Dec 2017 17:43:07 GMT):
Has joined the channel.

rajeev20 (Tue, 19 Dec 2017 17:43:30 GMT):
I have few doubts. Can anyone help me in getting clear answer? What is org1 and org2 in network? what is the role of org in running the fabric application?

GavinPacini (Tue, 19 Dec 2017 17:45:33 GMT):
Has joined the channel.

muasif80 (Tue, 19 Dec 2017 18:14:19 GMT):
I want to run blockchain explorer for java sdk test docker-compose setup of e2e-2orgs

muasif80 (Tue, 19 Dec 2017 18:14:47 GMT):
It shows only foo channel details but although list down bar channel but don't show its blocks and other data

AgnesaHa (Tue, 19 Dec 2017 18:42:44 GMT):
Has joined the channel.

MuhammadSalah (Tue, 19 Dec 2017 18:50:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R9KQ2kib3YEhMRBsf) @markthedark instantiate a fabric-tools image, just like you do with the chaincode-dev example. That's if you really want to be doing it your own way; and up till now there is no Java support I guess. Go and NodeJs I guess are the only supported. It is in the plan, but I don't think that has been released yet.

alexandra_g (Tue, 19 Dec 2017 19:19:52 GMT):
@Vadim - Thanks for your response to my question earlier about endorsing and committing peers. Do you have a link to documentation that talks about this more? From the internal documentation I've read I had the impression that endorsers and committers existed simultaneously so how can they be the same entity? Does that just mean that at that moment in time peers are performing different roles within the transaction cycle? More clarity on this would be much appreciated!

yacovm (Tue, 19 Dec 2017 20:05:04 GMT):
@alexandra_g , obviously, if a peer endorses - it needs to have the database inside of it, and that means it needs to have the blockchain

yacovm (Tue, 19 Dec 2017 20:05:11 GMT):
so, every endorser is a committer

yacovm (Tue, 19 Dec 2017 20:05:24 GMT):
however, a peer may not have the chaincode installed

yacovm (Tue, 19 Dec 2017 20:05:31 GMT):
and in that case it is only a committer for the chaincode

yacovm (Tue, 19 Dec 2017 20:05:36 GMT):
and not an endorser

alexandra_g (Tue, 19 Dec 2017 20:16:25 GMT):
Hm so it seems like peers can perform both functions depending on whether chaincode is installed. What determines whether chaincode is installed or not?

kleniu (Tue, 19 Dec 2017 21:48:38 GMT):
Has joined the channel.

krabradosty (Tue, 19 Dec 2017 22:04:22 GMT):
Has joined the channel.

yacovm (Tue, 19 Dec 2017 22:15:02 GMT):
> What determines whether chaincode is installed or not? The chaincode installation on the peer

alexandra_g (Tue, 19 Dec 2017 22:52:11 GMT):
yes, who/what determines chaincode installation on the peer is my question

yacovm (Tue, 19 Dec 2017 23:32:33 GMT):
oh

yacovm (Tue, 19 Dec 2017 23:32:44 GMT):
it's the administrator of the peer's organization, or of the peer, @alexandra_g

yacovm (Tue, 19 Dec 2017 23:33:11 GMT):
the peer has admin certificates

yacovm (Tue, 19 Dec 2017 23:33:18 GMT):
in the msp folder in the configuration

yacovm (Tue, 19 Dec 2017 23:33:34 GMT):
so any user that has the corresponding private key is an admin of the peer

alexandra_g (Tue, 19 Dec 2017 23:48:23 GMT):
Great thanks @yacovm

alexandra_g (Tue, 19 Dec 2017 23:49:13 GMT):
so back to my original question, there are no inefficiencies are produced with this setup, correct?

yacovm (Tue, 19 Dec 2017 23:49:58 GMT):
what do you mean by inefficiencies ?

yacovm (Tue, 19 Dec 2017 23:50:18 GMT):
be more specific please

bh4rtp (Wed, 20 Dec 2017 00:58:51 GMT):
hi, does sdk provide api to reconfigure channels?

bh4rtp (Wed, 20 Dec 2017 00:59:44 GMT):
i mean add new organizations using node sdk.

mrkiouak (Wed, 20 Dec 2017 02:36:21 GMT):
I'm upgrading a project from 1.0.1-pre3 to v1.0.5. tag-- there are a ton of unit-tests now running that i haven't seen in previous releases... is there a flag or other knob i can set to not run these?

CodeReaper (Wed, 20 Dec 2017 05:02:08 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=HwxhBvazH3PZG62Lh

CodeReaper (Wed, 20 Dec 2017 05:02:56 GMT):
Can anyone explain me the motive of admin of orderer organization in the followinf endorsement policy?? This means that admin peer signing identity signing a transaction has to be taken in consideration?? Can we have committing peers from orderer organization also for a channel?? What is the difference between 'admin' and' member' mentioned here?

CodeReaper (Wed, 20 Dec 2017 05:02:56 GMT):
@yacovm please comment on this. Can anyone explain me the motive of admin of orderer organization in the followinf endorsement policy?? This means that admin peer signing identity signing a transaction has to be taken in consideration?? Can we have committing peers from orderer organization also for a channel?? What is the difference between 'admin' and' member' mentioned here?

CodeReaper (Wed, 20 Dec 2017 05:03:31 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=Wya46ikYmzScn5hyg

muasif80 (Wed, 20 Dec 2017 05:54:02 GMT):
Summary: A client sends proposal to peers. The peers endorse it and send response. The tx proposal and response is sent orderer. The orderer validates and builds new blocks for chain and sends them to each peer in a channel. The peer validates and then adds the blocks to the chain.

muasif80 (Wed, 20 Dec 2017 05:54:44 GMT):
Is this tx flow correct. I got this from http://hyperledger-fabric.readthedocs.io/en/release/txflow.html

asuchit (Wed, 20 Dec 2017 06:37:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BPQi8mzJFf47Xkfd7) @matrisis Is it possible without sdk ?

ynkumar143 (Wed, 20 Dec 2017 07:45:48 GMT):
Has joined the channel.

ynkumar143 (Wed, 20 Dec 2017 07:45:54 GMT):
Hi Team

ynkumar143 (Wed, 20 Dec 2017 07:46:24 GMT):
I am having a question for usage of GetQueryResult in fabric

ynkumar143 (Wed, 20 Dec 2017 07:46:49 GMT):
what exactly the issue we will face on using this rich query access method

ShefaliMittal (Wed, 20 Dec 2017 08:02:54 GMT):
Hi, I have deployed a network using docker swarm.. now I am trying to install and instantiate the chaincode but getting this error - Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode AonB2BMessaging:1.0(networkid:dev,peerid:peer0.benfield.aon.com,tx:b976efd74c66ed09391bfc9493aeccf1d26c2b9841eb9c3f39964efdb3f5d48b)

ShefaliMittal (Wed, 20 Dec 2017 08:03:05 GMT):
anyone faced this error before

Vadim (Wed, 20 Dec 2017 08:28:19 GMT):
@ShefaliMittal did you tell your peer to start the chaincode containers on the same network as the peers?

ShefaliMittal (Wed, 20 Dec 2017 08:28:50 GMT):
I am not sure if I did

ShefaliMittal (Wed, 20 Dec 2017 08:28:54 GMT):
how do we specify that

Vadim (Wed, 20 Dec 2017 08:29:46 GMT):
@ShefaliMittal CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=

ShefaliMittal (Wed, 20 Dec 2017 08:30:06 GMT):
yes .. I did specify that in my peer configuration

Vadim (Wed, 20 Dec 2017 08:30:38 GMT):
is the docker network attachable?

ShefaliMittal (Wed, 20 Dec 2017 08:30:43 GMT):
yes

Vadim (Wed, 20 Dec 2017 08:30:53 GMT):
any logs from chaincode containers?

ShefaliMittal (Wed, 20 Dec 2017 08:31:06 GMT):
issued following command docker network create --attachable --driver overlay

ShefaliMittal (Wed, 20 Dec 2017 08:31:16 GMT):
how do I fetch them

Vadim (Wed, 20 Dec 2017 08:31:27 GMT):
I suppose peers are also running on that network?

ShefaliMittal (Wed, 20 Dec 2017 08:31:38 GMT):
yes

Vadim (Wed, 20 Dec 2017 08:31:43 GMT):
docker logs

ShefaliMittal (Wed, 20 Dec 2017 08:33:52 GMT):
In my docker compose I have this version: '3' networks: net1: external: name: net1

Vadim (Wed, 20 Dec 2017 08:34:14 GMT):
so you create another network there?

ShefaliMittal (Wed, 20 Dec 2017 08:34:24 GMT):
and I am using CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net1 for each peer , orderer

Vadim (Wed, 20 Dec 2017 08:34:36 GMT):
what does "docker network ls" show?

ShefaliMittal (Wed, 20 Dec 2017 08:34:47 GMT):
it shows only one with name net1

ShefaliMittal (Wed, 20 Dec 2017 08:34:56 GMT):
that is overlay and in swarm

Vadim (Wed, 20 Dec 2017 08:35:07 GMT):
no other networks?

Vadim (Wed, 20 Dec 2017 08:35:09 GMT):
at all?

ShefaliMittal (Wed, 20 Dec 2017 08:35:18 GMT):
yes there are .. but not related to mine

ShefaliMittal (Wed, 20 Dec 2017 08:35:33 GMT):
like host

ShefaliMittal (Wed, 20 Dec 2017 08:35:35 GMT):
ingress

ShefaliMittal (Wed, 20 Dec 2017 08:35:36 GMT):
none

Vadim (Wed, 20 Dec 2017 08:35:39 GMT):
ok, do you see any cc containers in `docker ps -a`?

ShefaliMittal (Wed, 20 Dec 2017 08:35:41 GMT):
bridge

ShefaliMittal (Wed, 20 Dec 2017 08:36:17 GMT):
no

Vadim (Wed, 20 Dec 2017 08:36:59 GMT):
you should try to look for them before timeout expires on peer

Vadim (Wed, 20 Dec 2017 08:37:05 GMT):
I guess it then removes them

ShefaliMittal (Wed, 20 Dec 2017 08:37:30 GMT):
u mean after install it creates cc containers?

Vadim (Wed, 20 Dec 2017 08:37:50 GMT):
no, after invoke

ShefaliMittal (Wed, 20 Dec 2017 08:38:44 GMT):
but I am gettign errro on instantiating

Vadim (Wed, 20 Dec 2017 08:39:04 GMT):
which error?

ShefaliMittal (Wed, 20 Dec 2017 08:39:20 GMT):
Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode AonB2BMessaging:1.0(networkid:dev,peerid:peer0.benfield.aon.com,tx:b976efd74c66ed09391bfc9493aeccf1d26c2b9841eb9c3f39964efdb3f5d48b)

Vadim (Wed, 20 Dec 2017 08:39:50 GMT):
can you post a full log to some pastebin?

ShefaliMittal (Wed, 20 Dec 2017 08:44:07 GMT):
pastebin?

Vadim (Wed, 20 Dec 2017 08:44:27 GMT):
https://pastebin.com/

ShefaliMittal (Wed, 20 Dec 2017 08:59:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RkDKMG6af5Tn9AnvE) @Vadim - https://pastebin.com/DtxALM0K

Vadim (Wed, 20 Dec 2017 08:59:23 GMT):
@ShefaliMittal I need peer logs

ShefaliMittal (Wed, 20 Dec 2017 09:32:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SBu7ib9fWwMwFDRrP) @Vadim

ShefaliMittal (Wed, 20 Dec 2017 09:32:32 GMT):
https://pastebin.com/vQxhGsKA

Vadim (Wed, 20 Dec 2017 09:35:51 GMT):
have you instantiated the chaincode?

Vadim (Wed, 20 Dec 2017 09:36:24 GMT):
I guess you stopped the peer after that? because it's not in the logs

Vadim (Wed, 20 Dec 2017 09:41:25 GMT):
I also find it strange that it shows that message after 8 seconds, because the default startup timeout is 300 seconds

matrisis (Wed, 20 Dec 2017 09:44:57 GMT):
Hi, do you know where i can find Println results when processed in my chaincode ?

Vadim (Wed, 20 Dec 2017 09:47:56 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/logging-control.html#go-chaincodes

ShefaliMittal (Wed, 20 Dec 2017 09:50:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ATRdd77TtmLvkneha) @Vadim I am receiving this error while instantiating chaincode itself

ShefaliMittal (Wed, 20 Dec 2017 09:50:41 GMT):
and the eror showed after 300 seconds only

Vadim (Wed, 20 Dec 2017 09:51:09 GMT):
ok, and before the error shows up, do you see any chaincode containers?

ShefaliMittal (Wed, 20 Dec 2017 09:51:50 GMT):
how could I .. it was waiting to exit.. before that I didn't see any

Vadim (Wed, 20 Dec 2017 09:52:17 GMT):
"it was waiting to exit" - what do you mean?

ShefaliMittal (Wed, 20 Dec 2017 09:52:41 GMT):
I mean when I passed the instantiate command it just halted for 300 seconds

ShefaliMittal (Wed, 20 Dec 2017 09:52:48 GMT):
then it returned

Vadim (Wed, 20 Dec 2017 09:53:06 GMT):
you need to go to host where the peer task is scheduled and do there "docker ps -a". Do you see any containers?

Vadim (Wed, 20 Dec 2017 09:53:06 GMT):
you need to go to host where the peer task is scheduled and do there "docker ps -a". Do you see any chaincode containers?

ShefaliMittal (Wed, 20 Dec 2017 09:53:43 GMT):
no

ShefaliMittal (Wed, 20 Dec 2017 09:53:48 GMT):
I dont see any

Vadim (Wed, 20 Dec 2017 09:54:46 GMT):
ok, I'm out of ideas

ShefaliMittal (Wed, 20 Dec 2017 09:56:38 GMT):
I can see it takes the network id of dev while fetching chaincode

ShefaliMittal (Wed, 20 Dec 2017 09:56:48 GMT):
does it causing the erro?

Vadim (Wed, 20 Dec 2017 09:56:54 GMT):
what do you mean?

ShefaliMittal (Wed, 20 Dec 2017 09:58:27 GMT):
ERRO 03e launchAndWaitForRegister failed: timeout expired while starting chaincode AonB2BMessaging:1.0(networkid:dev,peerid:peer0.benfield.aon.com,tx:2fbc2741f30798b54d0b3fcc519c72c4599ccbcf83e781d06e0cb22ff62be4b2)

ShefaliMittal (Wed, 20 Dec 2017 09:58:35 GMT):
here , the network id is dev

ShefaliMittal (Wed, 20 Dec 2017 09:59:18 GMT):
can it be causing issue?

Vadim (Wed, 20 Dec 2017 10:02:21 GMT):
no, it's something else

ShefaliMittal (Wed, 20 Dec 2017 10:05:09 GMT):
ok

michael_aR (Wed, 20 Dec 2017 12:30:27 GMT):
Can anyone help?! My question https://stackoverflow.com/questions/47175754/hyperledger-fabric-peer-certificates-and-keyfiles

abelkuruvilla (Wed, 20 Dec 2017 12:32:58 GMT):
Has joined the channel.

abelkuruvilla (Wed, 20 Dec 2017 12:34:06 GMT):
Hey can someone help me on how to run a fabric node within a browser extension... Is it possible?? I want want user to be a node in my network..

abelkuruvilla (Wed, 20 Dec 2017 12:34:06 GMT):
Hey can someone help me on how to run a fabric node within a browser extension... Is it possible?? I want each user to be a node in my network and they interact with a browser extension..

Vadim (Wed, 20 Dec 2017 12:35:05 GMT):
@abelkuruvilla a user does not need a node, he only needs a certificate. He can use any peer then to submit a transaction.

abelkuruvilla (Wed, 20 Dec 2017 12:35:58 GMT):
i was not refering to user like that...

abelkuruvilla (Wed, 20 Dec 2017 12:36:39 GMT):
In the application i was trying to create , i wanted many users, journalists and agencies as part of the network..

abelkuruvilla (Wed, 20 Dec 2017 12:37:16 GMT):
Here the regular consumer users will interact with the system via an extension..

Vadim (Wed, 20 Dec 2017 12:37:47 GMT):
the regular consumers don't need a fabric node

gentios (Wed, 20 Dec 2017 14:01:19 GMT):
just for curiosity, has anybody thought launching a new coin with hyperledger ?

michael_aR (Wed, 20 Dec 2017 14:44:45 GMT):
Can anyone help?! My question: https://stackoverflow.com/questions/47890322/hyperledger-fabric-orderer-container-and-client-rest-postman-oversized-record-er

rtemprano (Wed, 20 Dec 2017 16:56:47 GMT):
Has joined the channel.

mastercpt (Wed, 20 Dec 2017 17:04:37 GMT):
Has joined the channel.

vieiramanoel (Wed, 20 Dec 2017 17:40:47 GMT):
Is there any way to remove peer from network through fabric? I just find node-sdk references about it

yacovm (Wed, 20 Dec 2017 17:55:47 GMT):
Just remove the process and never bring it up?

yacovm (Wed, 20 Dec 2017 17:57:47 GMT):
Or do you mean revoke?

vieiramanoel (Wed, 20 Dec 2017 18:09:19 GMT):
I think in this case is revoke

vieiramanoel (Wed, 20 Dec 2017 18:09:41 GMT):
I don't that peer to be able to join network again

vieiramanoel (Wed, 20 Dec 2017 18:09:41 GMT):
I don't want that peer to be able to join network again

joshhw (Wed, 20 Dec 2017 19:12:16 GMT):
has anyone figured out a way to access docker containers hosted on different ip addresses? My orderer can't be found.

joshhw (Wed, 20 Dec 2017 19:12:40 GMT):
I've tried using IP addresses within the configtx.yaml file

joshhw (Wed, 20 Dec 2017 19:12:44 GMT):
that didn't work though

MuhammadSalah (Wed, 20 Dec 2017 19:15:02 GMT):
try creating a dns hostname registery

MuhammadSalah (Wed, 20 Dec 2017 19:15:25 GMT):
I never tried it, but I think that's the correct way to do it.

MuhammadSalah (Wed, 20 Dec 2017 19:15:41 GMT):
They will resolve the urls into ips.

MuhammadSalah (Wed, 20 Dec 2017 19:15:54 GMT):
thus they should be able to see each other.

MuhammadSalah (Wed, 20 Dec 2017 19:16:08 GMT):
Just make sure they are accessible, and exposed publicly

MuhammadSalah (Wed, 20 Dec 2017 19:16:18 GMT):
or at least within their domain.

arjunkhera (Wed, 20 Dec 2017 19:38:12 GMT):
Has joined the channel.

yacovm (Wed, 20 Dec 2017 19:40:06 GMT):
@vieiramanoel - you need to create a CRL and send a config update transaction in each channel you want to revoke the peer in

yacovm (Wed, 20 Dec 2017 19:40:28 GMT):
you have to revoke the peer in all channels so it won't be able to connect to other peers / orderers

vsadriano (Wed, 20 Dec 2017 19:40:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dHbxk6KsTbbhnFb39) @joshhw Do you use any container orchestrator for docker containers? Kubernetes? Docker Swarm?

joshhw (Wed, 20 Dec 2017 19:41:29 GMT):
@vsadriano not really, I should figure that out but right now I'm manually manipulating docker-compose files and uploading specific versions of it to each instance

vsadriano (Wed, 20 Dec 2017 19:48:45 GMT):
I think that you can set your hostname on 'CommonName' parameter for generate cert artifacts (crypto-config.yaml) as well as set hostname on configtx.yaml. I use a similar approach on my Kubernetes cluster.

vsadriano (Wed, 20 Dec 2017 19:49:51 GMT):
You'll need map your ports on hosts.

vsadriano (Wed, 20 Dec 2017 19:50:18 GMT):
Same entity ports.

joshhw (Wed, 20 Dec 2017 20:20:15 GMT):
@vsadriano did you ever have a problem with the peer ip address chaincode conflict?

joshhw (Wed, 20 Dec 2017 20:20:54 GMT):
@vsadriano when I added the host names to each container, whatever ip address is associated with the current container causes an issue for listening on chaincode

joshhw (Wed, 20 Dec 2017 20:20:54 GMT):
@vsadriano when I added the host names to each container, each peers self referenced ip address in hosts would cause a failure.

vsadriano (Wed, 20 Dec 2017 20:43:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qZhWFAvp48cXsBZH9) @joshhw No, I don't. I'd to use service name (with Headless Service) on Kubernetes.

vsadriano (Wed, 20 Dec 2017 20:43:20 GMT):
Do you've multiples peers per host?

joshhw (Wed, 20 Dec 2017 20:43:25 GMT):
no

vsadriano (Wed, 20 Dec 2017 20:43:28 GMT):
Ok.

joshhw (Wed, 20 Dec 2017 20:44:04 GMT):
``` 2017-12-20 20:28:39.516 UTC [eventhub_producer] start -> INFO 020 Event processor started 2017-12-20 20:28:39.516 UTC [nodeCmd] createChaincodeServer -> WARN 021 peer.chaincodeListenAddress is not set, using peer0.payer.optum.com:7052 panic: listen tcp 172.31.80.141:7052: bind: cannot assign requested address ```

joshhw (Wed, 20 Dec 2017 20:44:04 GMT):
``` 2017-12-20 20:28:39.516 UTC [eventhub_producer] start -> INFO 020 Event processor started 2017-12-20 20:28:39.516 UTC [nodeCmd] createChaincodeServer -> WARN 021 peer.chaincodeListenAddress is not set, using peer0.example.test.com:7052 panic: listen tcp 172.31.80.141:7052: bind: cannot assign requested address ```

vsadriano (Wed, 20 Dec 2017 20:45:59 GMT):
I think that you can't to bind on host address directly.

vsadriano (Wed, 20 Dec 2017 20:46:42 GMT):
I'm testing a similar architecture with peers out of my kubernetes network.

joshhw (Wed, 20 Dec 2017 20:47:22 GMT):
I think you're right about the binding.

joshhw (Wed, 20 Dec 2017 20:47:30 GMT):
let me know if you find/get different results

vsadriano (Wed, 20 Dec 2017 20:48:18 GMT):
Can I return tomorrow? I need of a firewall role...

vsadriano (Wed, 20 Dec 2017 20:48:30 GMT):
Bad dependencies!

vsadriano (Wed, 20 Dec 2017 20:48:36 GMT):
Ops!

vsadriano (Wed, 20 Dec 2017 20:50:03 GMT):
I'll set up a peer container on external VM with docker-compose and I'll verify the behavior...

charcook24 (Thu, 21 Dec 2017 00:46:48 GMT):
When entering the . docker exec -it cli bash command into the terminal, i receive this error:

charcook24 (Thu, 21 Dec 2017 00:47:00 GMT):
Error response from daemon: Container f69bd8373c7366b314b40b9a8dc9b46ba75a168f1c52561e8c5f6d0b5471ca7a is not running

charcook24 (Thu, 21 Dec 2017 00:47:36 GMT):
see http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel

vieiramanoel (Thu, 21 Dec 2017 01:10:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dHbxk6KsTbbhnFb39) @joshhw josh add ```extra_hosts:

vieiramanoel (Thu, 21 Dec 2017 01:10:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dHbxk6KsTbbhnFb39) @joshhw josh add ```extra_hosts: - "orderer.example.com orderer_host_ip" ```

vieiramanoel (Thu, 21 Dec 2017 01:10:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dHbxk6KsTbbhnFb39) @joshhw add ```extra_hosts: - "orderer.example.com orderer_host_ip" ```

vieiramanoel (Thu, 21 Dec 2017 01:12:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yrKXZDxjMaPQubbv5) @joshhw check with `netstat -tulpn` if that port is already in use before up peer

smpakes (Thu, 21 Dec 2017 03:58:18 GMT):
Has joined the channel.

asuchit (Thu, 21 Dec 2017 06:24:40 GMT):
How the policy verification happen on the orderer when policy term (smart contract) says that 1 peer of each organization of the blockchain should generate the endorsement result ? When we are doing any transaction, we would be sending the request to one of the peer of an organization. So How would endorsement results generate from at lease one peer of each organization of that blockchain ?

Vadim (Thu, 21 Dec 2017 06:38:55 GMT):
@asuchit orderers don't verify policies

rbole (Thu, 21 Dec 2017 06:45:51 GMT):
Has joined the channel.

asuchit (Thu, 21 Dec 2017 06:46:23 GMT):
@Vadim Where is the policy verification happen in a blockchain and how this condition -P "AND ('Org1MSP.member','Org2MSP.member')" works because as per my knowledge we are initiating the transaction on one peer only.

Vadim (Thu, 21 Dec 2017 06:50:25 GMT):
@asuchit peers verify it when committing TXes that they receive in new blocks from orderers

Vadim (Thu, 21 Dec 2017 06:51:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QXyyMqD8g38dt2tus) are you using cli?

asuchit (Thu, 21 Dec 2017 06:51:56 GMT):
So, 'all the endorsement results summery or something' would present in block ?

asuchit (Thu, 21 Dec 2017 06:51:56 GMT):
@Vadim So, 'all the endorsement results summery or something' would present in block ?

Vadim (Thu, 21 Dec 2017 06:52:49 GMT):
yes

asuchit (Thu, 21 Dec 2017 06:56:37 GMT):
if we are doing the transaction on a peer of ORG1 then how orderer gets the endorsement result from the ORG2's peer ? OR we need to initiate the transaction on the different peers based on the policy ...

Vadim (Thu, 21 Dec 2017 06:57:33 GMT):
orderer does not get any endorsements, they should already be present in the tx which it needs to order in a block

Vadim (Thu, 21 Dec 2017 06:58:00 GMT):
policy is for checking, not for getting endorsements. The client must get the endorsements explicitly.

UtkarshSingh (Thu, 21 Dec 2017 06:59:03 GMT):
Hi everyone, Can anyone explain me All the Actions(Step-by-step) done by each entity Endorsing peer, Commiting peer & Orderer. As per my knowledge, I know : Txn Prososal ---->(goes to endorsing peers) -----> endorsing peers [ 1. This txn proposal goes to how many peers for endorsement? It is a Broadcast ? ; 2. What kind of validations are done by endorsing peers? Are they only involved to give Read and Write sets (of the ledger) ?] Endorsement from the endorsing peers---->( goes to the)-------> Orderer Orderer checks the endorsement policy, then does the ordering & make a block out of txns. Orderer-------> (sends the block to the) ------> Leading peer----->(sends to )------> all the peers(commiting peers) Peers again check some policies and Read & Write sets, [What are the other things commiting peers do ? (step-by-step) ] Peers commit it into the block-chain **(Correct me where I am wrong)

asuchit (Thu, 21 Dec 2017 06:59:06 GMT):
I get all this information from youtube video https://www.youtube.com/watch?v=2_RgCfjunEU

Vadim (Thu, 21 Dec 2017 06:59:46 GMT):
@asuchit no time to watch the video, but I told you how it works

asuchit (Thu, 21 Dec 2017 06:59:59 GMT):
yes, I got it

asuchit (Thu, 21 Dec 2017 07:01:03 GMT):
client is responsible to get all the responses and send to orderer as invocation request... is it ?

Vadim (Thu, 21 Dec 2017 07:01:47 GMT):
@UtkarshSingh 1. Client sends proposals to peers, which peers - up to the client to decide (it's not a broadcast). Endorsers run the chaincode and sign the results (rwsets) 2. Orderer does not check the policy, it just makes a block 3. Peers check the policy when they commit the tx.

UtkarshSingh (Thu, 21 Dec 2017 07:01:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6JZhttrQMpcheZxxF) I still couldn't get the whole Protocol (Step-by-Step)

UtkarshSingh (Thu, 21 Dec 2017 07:04:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6JZhttrQMpcheZxxF) I am still not able to get the Step-by-Step full protocol. If anyone can tell us or give some reference, it would be good for everyone(as, there is no any document, that explains each n every step of the protocol)

Vadim (Thu, 21 Dec 2017 07:05:07 GMT):
@UtkarshSingh what about https://hyperledger-fabric.readthedocs.io/en/release/txflow.html?

UtkarshSingh (Thu, 21 Dec 2017 07:11:23 GMT):
@Vadim Its good. But still everything is not cleared. How orderer sends block to all the peers ? When the Gossip Protocol is being used ? and many more doubts regarding the protocol

Vadim (Thu, 21 Dec 2017 07:12:06 GMT):
@UtkarshSingh here are design docs about protocols: https://wiki.hyperledger.org/projects/fabric/design-docs

UtkarshSingh (Thu, 21 Dec 2017 07:15:48 GMT):
Its too long :sweat_smile: :stuck_out_tongue_winking_eye: . Will go through this, Thanx man

asuchit (Thu, 21 Dec 2017 07:53:42 GMT):
@Vadim based on https://www.youtube.com/watch?v=2_RgCfjunEU, Only one transaction is valid for one asset in a block. So We can not do 2nd transaction with that asset till 1st transaction block is not generated.

Vadim (Thu, 21 Dec 2017 07:54:33 GMT):
@asuchit well yes, you cannot modify one key with two transactions in the same block

asuchit (Thu, 21 Dec 2017 08:00:44 GMT):
@Vadim When I read this page 1st time than I did not understand much. Now it is more clear for me. Thanks

zhai2005 (Thu, 21 Dec 2017 08:27:44 GMT):
Has joined the channel.

mikykey (Thu, 21 Dec 2017 08:43:00 GMT):
Hi! how to check if the data of the state database is coherent with data stored in the chain? (in case an attacker modifies the content of the state database manually, can the user read wrong data with GetState?)

mikykey (Thu, 21 Dec 2017 08:43:00 GMT):
Hi! how to check if the data of the state database is coherent with data stored in the chain? (in case an attacker modifies the content of the state database manually, can the user read wrong data with GetState?) Thanks in advance

markthedark (Thu, 21 Dec 2017 10:08:07 GMT):
if the composite key is as follows: ("varName~op~value~txID") can i query only by op or value, or does it have to be prefixed with varName? looking at high-throughput example

vsadriano (Thu, 21 Dec 2017 11:09:51 GMT):
@joshhw Did you see? https://docs.docker.com/engine/userguide/networking/default_network/binding/

michael_aR (Thu, 21 Dec 2017 15:25:07 GMT):
@Vadim is this project https://github.com/hyperledger/fabric-sdk-rest linux onlny? Because i get error while execute npm link

michael_aR (Thu, 21 Dec 2017 15:25:07 GMT):
@Vadim is this project https://github.com/hyperledger/fabric-sdk-rest linux only? Because i get error while execute npm link

Vadim (Thu, 21 Dec 2017 15:25:25 GMT):
I don't know

michael_aR (Thu, 21 Dec 2017 15:26:07 GMT):
it seems so. i need a windows solution. so it can't help with my rest problem :(

charcook24 (Thu, 21 Dec 2017 17:09:08 GMT):
When entering the . docker exec -it cli bash command into the terminal, i receive this error:

charcook24 (Thu, 21 Dec 2017 17:09:20 GMT):
Error response from daemon: Container f69bd8373c7366b314b40b9a8dc9b46ba75a168f1c52561e8c5f6d0b5471ca7a is not running

charcook24 (Thu, 21 Dec 2017 17:09:32 GMT):
see http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel

AYOUB_HAMIDI (Thu, 21 Dec 2017 17:18:54 GMT):
Has joined the channel.

AnandVijay (Thu, 21 Dec 2017 17:19:08 GMT):
Has joined the channel.

AnandVijay (Thu, 21 Dec 2017 17:19:57 GMT):
@here To use fabric in my enterprise for digital rights management

AnandVijay (Thu, 21 Dec 2017 17:20:10 GMT):
do i need a few other enterprises to participate in my blockchain or fabric has a network to support consensus

vieiramanoel (Thu, 21 Dec 2017 17:22:10 GMT):
Your consensus would be just your Org, but i think this doesn't make sense by design

AnandVijay (Thu, 21 Dec 2017 17:24:28 GMT):
@vieiramanoel you mean that like all blockchains i will need to build a network to ensure the consensus is built but not trusting parties

AnandVijay (Thu, 21 Dec 2017 17:24:31 GMT):
even in fabric

AnandVijay (Thu, 21 Dec 2017 17:24:33 GMT):
?

AnandVijay (Thu, 21 Dec 2017 17:25:29 GMT):
sorry if i am sounding novice but yes I am new to all of this :)

vieiramanoel (Thu, 21 Dec 2017 17:25:46 GMT):
It's ok. I'm too

vieiramanoel (Thu, 21 Dec 2017 17:26:19 GMT):
I did get your question, let's see if some of the others can answer

vieiramanoel (Thu, 21 Dec 2017 17:26:19 GMT):
I did get your question, lets see if some of the others can answer

AnandVijay (Thu, 21 Dec 2017 17:26:29 GMT):
okii:)

vieiramanoel (Thu, 21 Dec 2017 18:54:28 GMT):
hey guys, at documentation all operations at fabric are made using orderer tlsca cert, on production there isn't cli after peers join. Must peers have the orderer's tlsca cert to operate on network?

jeffgarratt (Thu, 21 Dec 2017 20:01:52 GMT):
@vieiramanoel yes. they will get it from the genesis block

vieiramanoel (Thu, 21 Dec 2017 20:09:29 GMT):
@jeffgarratt i didn't found any orderer cert after channel join, how do I do this?

jeffgarratt (Thu, 21 Dec 2017 22:30:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JDxJWnu2j8hiTnwbR) @vieiramanoel It is in the genesis block itself, you may be able to get to this with a json dump of the genesis block using...

jeffgarratt (Thu, 21 Dec 2017 22:30:47 GMT):
```configtxgen -inspectblock

matrisis (Fri, 22 Dec 2017 08:55:07 GMT):
Hi, how would you describe the 'difference' between Chaincode ans "Smart Contract".

matrisis (Fri, 22 Dec 2017 08:55:07 GMT):
Hi, how would you describe the 'difference' between Chaincode ans "Smart Contract".?

gentios (Fri, 22 Dec 2017 12:46:45 GMT):
@matrisis there is no difference, thet are synonyms

matrisis (Fri, 22 Dec 2017 13:36:16 GMT):
Really ? But why a different name then?

e-nikolov (Fri, 22 Dec 2017 15:40:12 GMT):
marketing?

e-nikolov (Fri, 22 Dec 2017 15:40:12 GMT):
@matrisis marketing?

matrisis (Fri, 22 Dec 2017 15:52:18 GMT):
Well ok i guess ...

MuhammadSalah (Fri, 22 Dec 2017 22:56:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xk4HCFLtQzMmo5tAF) @matrisis Many people take them as synonyms; but I would like to keep it like this. Chaincode is a program that runs over the blockchain network, and think of it as an application; like for example composer runtime so you have application functionalities with you such as Identity Management. Smart Contract, is the contract where your business logic is embedded as a program steps. They are sort of the same thing, but still the smart contract is more of a business term, and only focusing the business aspect of the chaincode program. That's the most convenient to me, I am not expert I just share the way I always visualize it, even through work.

MuhammadSalah (Fri, 22 Dec 2017 22:59:57 GMT):
I also want to add, a chaincode can with-hold many smart contracts.

vdods (Sat, 23 Dec 2017 19:24:16 GMT):
Hi all, does the versioning of chaincode (notably regarding chaincode upgrade) use semantic versioning? Or is the version ignored when upgrading, meaning that you can "upgrade" to whatever version is specified?

swawibe (Sat, 23 Dec 2017 22:39:13 GMT):
Has joined the channel.

swawibe (Sat, 23 Dec 2017 22:42:05 GMT):
Hi Everyone. I am trying to make two channels with hyper ledger fabric. In one channel there will be two organizations and in another channel, there will be another two organizations. In every organization, there will be two peers. So total 8 peers in 4 organizations with two channels. But I could not make more than one channel. Can anyone please check this question in StackOverflow (https://stackoverflow.com/questions/47954083/configure-multiple-channel-in-hyper-ledger-fabric) ?

lexsys (Sun, 24 Dec 2017 12:23:46 GMT):
Has joined the channel.

abelkuruvilla (Sun, 24 Dec 2017 12:58:26 GMT):
Hey which is the best platform to host our fabric peers, AWS/DigitalOceans/ any other?

abelkuruvilla (Sun, 24 Dec 2017 13:08:04 GMT):
And is there any good guides to do this

abelkuruvilla (Sun, 24 Dec 2017 13:08:04 GMT):
And is there any good guides to do this?

MuhammadSalah (Sun, 24 Dec 2017 22:18:50 GMT):
@vdods No semantics in version; it just applies whatever version number you give it.

MuhammadSalah (Sun, 24 Dec 2017 22:20:16 GMT):
@swawibe Just issue another channel transaction; that's through the configuration files; or better yet just use peer channel create; and go from there.

crj (Mon, 25 Dec 2017 01:22:16 GMT):
Has joined the channel.

vdods (Mon, 25 Dec 2017 07:06:03 GMT):
Thanks

yllan (Mon, 25 Dec 2017 09:33:22 GMT):
Has joined the channel.

yllan (Mon, 25 Dec 2017 09:38:09 GMT):
Hi, just some quick questions. 1. Is there any limitation or permission setting on "who can install/upgrade the chaincode"? 2. How do I dynamically add a peer node into a running network?

MuhammadSalah (Mon, 25 Dec 2017 19:13:44 GMT):
@yllan Hello, considering to your questions: 1- The installation/upgrade of chaincode is done on each Peer individually, you don't need to have any control on it because simply, there is a consensus process for each transaction that is being made; if a malicious peer uses a different chaincode, will definitely reach a different result ergo no consensus reached. So far, I have not come to any limitations on which chaincode you can install on a peer. 2- Adding a dynamically peer node into a running network, you can find that yourself through youtube "Nickgaski" video for adding a whole new organization to a running network, and I believe the fabric-samples now include this feature that's applied to version 1.1-preview. Here is the link: https://www.youtube.com/watch?v=DKuGU5CYV_E&t=756s Good luck

MuhammadSalah (Mon, 25 Dec 2017 19:15:27 GMT):
This is also a good video but I have not watched yet, but seems interesting with a lot of talk: https://www.youtube.com/watch?v=HxPp1JeQYrw

alexliu (Tue, 26 Dec 2017 02:37:35 GMT):
hey guys, I am new to fabric and i have a question now which i can't find in documents: Does `certificate` mentioned in fabric documents is represent public key and private key pair?

anupamsinha15 (Tue, 26 Dec 2017 16:09:33 GMT):
Has joined the channel.

Raghuvamz (Tue, 26 Dec 2017 16:27:21 GMT):
Has joined the channel.

gbodra (Tue, 26 Dec 2017 16:27:40 GMT):
Has joined the channel.

Raghuvamz (Tue, 26 Dec 2017 16:30:30 GMT):
Can i store large files within the couchDb implementation within fabric? I believe it would make the block fat and eventually bloat the network! However if i want to process the files offchain and reference a hash within the block, how do i do it? How is the data of the user secure in this case? If i were to encrypt the file and take a hash such that the file is not visible to anyone in the network.. How do i share the key in this scenario with some other participant within the network who wants to access this file. TIA

muralisr (Tue, 26 Dec 2017 16:50:54 GMT):
@Raghuvamz if storing large files with couchDB is OK, would it solve your problems ?

Raghuvamz (Tue, 26 Dec 2017 16:51:13 GMT):
sure it would

Raghuvamz (Tue, 26 Dec 2017 16:51:44 GMT):
given the blocks donot become fat, since multiple ledgers are maintained

muralisr (Tue, 26 Dec 2017 16:52:45 GMT):
well, then the second set of questions regarding privacy and encryption is moot isn;t it ?

muralisr (Tue, 26 Dec 2017 16:53:19 GMT):
because I'd argue since you were ok with storing the files anyway, you might as well store the hash without encryption

muralisr (Tue, 26 Dec 2017 16:53:33 GMT):
and hence no need to worry about sharing keys etc

Raghuvamz (Tue, 26 Dec 2017 16:54:11 GMT):
No the data is private within a channel among different participants

Raghuvamz (Tue, 26 Dec 2017 16:54:19 GMT):
I would encrypt it anyways

muralisr (Tue, 26 Dec 2017 16:54:35 GMT):
so you'd encrypt the file and store it ?

Raghuvamz (Tue, 26 Dec 2017 16:54:38 GMT):
because looks like inorder to scale this in b2c scenarios, there is no other way

muralisr (Tue, 26 Dec 2017 16:55:39 GMT):
I think storing the hash is a good thing instead of the file... we just need to understand the higher level business model

muralisr (Tue, 26 Dec 2017 16:56:26 GMT):
at the extreme you can always share the keys out-of-band in a trusted manner if necessary

anupamsinha15 (Tue, 26 Dec 2017 17:07:33 GMT):
Is there any way to uninstall the fabric from Mac? or just deleting the folder would work?

yacovm (Tue, 26 Dec 2017 17:27:35 GMT):
@muralisr actually though even if you can put large files into couchDB you can't put large files in fabric's chain :wink:

yacovm (Tue, 26 Dec 2017 17:27:48 GMT):
The nodes have an upper limit of gRPC message size which is 100MB

muralisr (Tue, 26 Dec 2017 17:28:13 GMT):
@yacovm that was just a hypothetical thought experiment to understand the problem

yacovm (Tue, 26 Dec 2017 17:28:23 GMT):
oh ok

artessan (Tue, 26 Dec 2017 17:32:08 GMT):
Has joined the channel.

muasif80 (Tue, 26 Dec 2017 18:24:28 GMT):
fs.js:961 return binding.readdir(pathModule._makeLong(path), options.encoding); ^ Error: ENOENT: no such file or directory, scandir '/home/ubuntu/blockchain-explorer/node_modules/grpc/src/node/extension_binary' at Error (native) at Object.fs.readdirSync (fs.js:961:18) at Object. (/home/ubuntu/blockchain-explorer/node_modules/grpc/src/grpc_extension.js:37:23) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

muasif80 (Tue, 26 Dec 2017 18:24:52 GMT):
I m getting this error in blockchain explorer

bo2 (Tue, 26 Dec 2017 18:57:20 GMT):
Has joined the channel.

scooby09 (Tue, 26 Dec 2017 20:51:54 GMT):
Has joined the channel.

scooby09 (Tue, 26 Dec 2017 20:52:58 GMT):
Has anyone done an actual "production" type of test/setup? I have done tutorials to run Fabric locally, but how do you go about actually getting this setup with other PCs, real users, etc?

CaryMa (Tue, 26 Dec 2017 21:08:11 GMT):
Has joined the channel.

tkuhrt (Tue, 26 Dec 2017 23:20:00 GMT):
@anupamsinha15 : You would want to remove the docker containers and images that are running for Hyperledger Fabric. The following might be a good reference: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes. I have also seen the following recommended, but *NOTE this will remove all docker container and images (even non-Fabric ones)*: ``` docker kill $(docker ps -q) docker rm $(docker ps -aq) docker rmi $(docker images -q) ```

MohammadObaid (Wed, 27 Dec 2017 05:04:55 GMT):
If all nodes in hyperledger fabric goes down for sometime , then it possible to regain data once nodes comes alive? or we have to rebuild network again from scratch?

Roger (Wed, 27 Dec 2017 05:59:16 GMT):
Has joined the channel.

pb (Wed, 27 Dec 2017 06:23:30 GMT):
Has joined the channel.

YOGESHBHARGAV (Wed, 27 Dec 2017 11:36:15 GMT):
Has joined the channel.

CodeReaper (Wed, 27 Dec 2017 11:51:04 GMT):
@MohammadObaid I do it everyday, the network data persists. chaincode containers are also restarted when the invoke is done corresponding to that chaincode. Only when you remove the containers the data will be lost and that can resynced if the orderer containers havent been removed. If we remove those also, I believe the blockchain is lost forever.

mastersingh24 (Wed, 27 Dec 2017 14:19:19 GMT):
Even when running in Docker, you can use external volumes to store the data. It will then be preserved even if you destroy the container(s)

naggarwal (Wed, 27 Dec 2017 17:01:23 GMT):
Has joined the channel.

anupamsinha15 (Wed, 27 Dec 2017 20:22:06 GMT):
@tkuhrt - Thanks!

ronald.petty (Thu, 28 Dec 2017 03:28:09 GMT):
Has joined the channel.

kannfu (Thu, 28 Dec 2017 04:13:53 GMT):
Has joined the channel.

kannfu (Thu, 28 Dec 2017 04:24:11 GMT):
Hi who know this error: PEER1 failed to join the channel, Retry after 2 seconds 2017-12-28 04:22:38.060 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-12-28 04:22:38.060 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-12-28 04:22:38.061 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: looku p peer1.org1.example.com on 127.0.0.11:53: no such host"; Reconnecting to {peer1.org1.example.com:7051 }2017-12-28 04:22:39.061 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: looku p peer1.org1.example.com on 127.0.0.11:53: no such host"; Reconnecting to {peer1.org1.example.com:7051 }2017-12-28 04:22:40.767 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: looku p peer1.org1.example.com on 127.0.0.11:53: no such host"; Reconnecting to {peer1.org1.example.com:7051 }Error: Error getting endorser client channel: error trying to connect to local peer: context deadline exceeded

kannfu (Thu, 28 Dec 2017 04:25:18 GMT):
when I run [root@izj6cel9eqr15sz6wc0ro0z first-network]# ./byfn.sh -m up

pb (Thu, 28 Dec 2017 06:44:35 GMT):
I was trying to use the getHistoryKey method. But the response was empty. Can anyone suggest on what could be the issue?

pb (Thu, 28 Dec 2017 10:28:07 GMT):
Genesis block: "header": { "number": { "low": 0, "high": 0, "unsigned": true }, "previous_hash": "", "data_hash": "71a06e3f717210bc914be8de60f4994c45f11e21875433565895f165501282ee" }.............. Next Block: "header": { "number": { "low": 1, "high": 0, "unsigned": true }, "previous_hash": "af2f6ff4cf91d3ca08d5d2d65682ad252b1e960e94d034191d8f97e62119b9d7", "data_hash": "ee1267f9f94bd9b4faf7365f40cb1556425fb42497629e2ec59198b863cd3794" } This is from the output of running balance transfer example. Isn't the "previous_hash" of the block after genesis should have the same value as the data_hash of the genisis block??? Please clarify. Any help woulfd be of real help. Thanks.

RasmusThorsoee (Thu, 28 Dec 2017 12:08:19 GMT):
Has joined the channel.

joshhw (Thu, 28 Dec 2017 15:21:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k7SBSKJFCsJe4XNWK) @vieiramanoel this is exactly what I ended up doing, I did however get errors when binding a containers ip within it.

joshhw (Thu, 28 Dec 2017 15:21:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k7SBSKJFCsJe4XNWK) @vieiramanoel this is exactly what I ended up doing, I did however get errors when binding a containers ip within it.

RasmusThorsoee (Thu, 28 Dec 2017 15:29:47 GMT):
hi there! I get failed tests when i run make behave, this is the output i get: `Failing scenarios: features/bootstrap.feature:386 Bootstrap a development network with 4 peers (2 orgs) and 1 orderer (1 org), each having a single independent root of trust (No fabric-ca, just openssl) -- @1.1 Orderer Options 0 features passed, 1 failed, 2 skipped 0 scenarios passed, 1 failed, 24 skipped 15 steps passed, 1 failed, 290 skipped, 0 undefined` Does anyone know how this might be? i am using vagrant version 2.0.1, docker version 17.09.1-ce, build 19e2cf6, docker-compose version 1.17.1, build 6d101fb

vieiramanoel (Thu, 28 Dec 2017 15:30:46 GMT):
@joshhw what kind of errors?

joshhw (Thu, 28 Dec 2017 15:31:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3hv8rFCLNWTKxCqxQ) @abelkuruvilla I'd take a look at the 1.1 preview within the master branch of the fabric-samples. The balance transfer has a network-config-aws file that shows how you would go about using it on AWS. I imagine that would be easy to mod for digital ocean

joshhw (Thu, 28 Dec 2017 15:37:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yHEe4ehkLtL3i96oA) @vsadriano I'm reading it now, but I'm not sure if it helps the problem I've been having. I also don't know fundementals of networking protocols and that could be an issue.

joshhw (Thu, 28 Dec 2017 15:37:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PpwGPoi4tAQ9vyzNY) @vieiramanoel it was the binding error that you have already addressed. I haven't tested that netstat command yet.

vieiramanoel (Thu, 28 Dec 2017 16:41:35 GMT):
@joshhw send me in pm your docker-compose's file which the error is coming from

joshhw (Thu, 28 Dec 2017 16:42:30 GMT):
@vieiramanoel I have it working fine, its more about why the extra_host of the container cannot reference its own ip address.

vieiramanoel (Thu, 28 Dec 2017 16:43:19 GMT):
if it's inside a docker network, the container name is already mapped with docker ip inside network

vieiramanoel (Thu, 28 Dec 2017 16:44:35 GMT):
if you want access it outside docker, i.e. from another machine, you need point to machine ip's (where docker is running) at port which that container exposes to host

vieiramanoel (Thu, 28 Dec 2017 16:44:39 GMT):
example

vieiramanoel (Thu, 28 Dec 2017 16:45:02 GMT):
```networks: orderer: services: ca0: image: hyperledger/fabric-ca:latest environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server ports: - "7054:8054" command: bash -c './scripts/initialize_ca.sh' volumes: - ./scripts:/etc/hyperledger/fabric-ca-server/scripts - ./cacert:/etc/hyperledger/fabric-ca-server/publiccert working_dir: /etc/hyperledger/fabric-ca-server/ container_name: ca.example.com networks: - orderer```

vieiramanoel (Thu, 28 Dec 2017 16:45:02 GMT):
```networks: orderer: services: ca0: image: hyperledger/fabric-ca:latest environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server ports: - "8054:7054" command: bash -c './scripts/initialize_ca.sh' volumes: - ./scripts:/etc/hyperledger/fabric-ca-server/scripts - ./cacert:/etc/hyperledger/fabric-ca-server/publiccert working_dir: /etc/hyperledger/fabric-ca-server/ container_name: ca.example.com networks: - orderer```

vieiramanoel (Thu, 28 Dec 2017 16:45:52 GMT):
if there's another container inside my docker network "orderer" I can access fabric-ca-server through {container_name}:{port}

vieiramanoel (Thu, 28 Dec 2017 16:45:52 GMT):
if there's a second container inside my docker network "orderer" I can access fabric-ca-server through {container_name}:{port}

vieiramanoel (Thu, 28 Dec 2017 16:45:52 GMT):
if there's a second container inside my docker network "orderer" I can access fabric-ca-server through {container_name}:{7054}

vieiramanoel (Thu, 28 Dec 2017 16:46:07 GMT):
(inside second container)

vieiramanoel (Thu, 28 Dec 2017 16:46:46 GMT):
if I want to access my fabric-ca-server from outside docker, i.e. another machine or in host bash enviroment

vieiramanoel (Thu, 28 Dec 2017 16:47:03 GMT):
I need to access it through {host_ip}:{port}

vieiramanoel (Thu, 28 Dec 2017 16:47:03 GMT):
I need to access it through {host_ip}:{8054}

joshhw (Thu, 28 Dec 2017 16:48:32 GMT):
@vieiramanoel my issue is due to using AWS. they can all see and communicate with each other if I don't bind the host address to an ip

RasmusThorsoee (Fri, 29 Dec 2017 09:10:54 GMT):
hi, i am trying to to follow this tutorial: https://openblockchain.readthedocs.io/en/latest/Setup/Chaincode-setup/. I run into a problem when trying to run `CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./chaincode_example02` At first i got a timeout. Then i changed the adress to 0.0.0.0:7051, since that is what the peer was reporting it was listening on. Here i didn't get a timeout, but i still get no answer. When i run the peer with logging-level = debug i can see that it receives a message, and even sends a "state message READY". But this message is never received. Does anyone have any pointers?

yacovm (Fri, 29 Dec 2017 09:18:16 GMT):
Yes I have a pointer

yacovm (Fri, 29 Dec 2017 09:18:25 GMT):
This is a tutuorial for v0.6

yacovm (Fri, 29 Dec 2017 09:18:36 GMT):
If you're using v1.0 or higher don't use that site

yacovm (Fri, 29 Dec 2017 09:18:47 GMT):
use https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html

RasmusThorsoee (Fri, 29 Dec 2017 09:22:57 GMT):
oh ok, thanks! It probably should state that somewhere.

yacovm (Fri, 29 Dec 2017 09:25:47 GMT):
it is stated....

yacovm (Fri, 29 Dec 2017 09:25:53 GMT):
you're using the wrong document

yacovm (Fri, 29 Dec 2017 09:26:15 GMT):
where do you suggest we state it?

yacovm (Fri, 29 Dec 2017 09:26:54 GMT):
@cbf , @nickgaski another example of misleading documentation...

RasmusThorsoee (Fri, 29 Dec 2017 09:29:35 GMT):
In the header if possible. Otherwise at least in the "Home" section would be good.

Kaltrak (Fri, 29 Dec 2017 12:54:20 GMT):
Has joined the channel.

cbf (Fri, 29 Dec 2017 13:14:11 GMT):
@yacovm this seems owned by someone not on the project https://readthedocs.org/profiles/razormind/

cbf (Fri, 29 Dec 2017 13:14:22 GMT):
at least, I don't recognize the name

cbf (Fri, 29 Dec 2017 13:16:49 GMT):
not sure what we can do.

ronald.petty (Fri, 29 Dec 2017 14:15:45 GMT):
I noticed in the fabcar tutorial there is no stop or tear down in the directory. It seems to me that having one would make sense as there is a startfabric.sh script. Is this something I should just add to JIRA and see what everyone thinks? I created one locally but figured I ask for pro advice! Also noticed the basic_network/teardown.sh doesn't work fully, from what I can tell the newly generated image and in turn container is not under control from docker-compose, so when removing the image it fails as a container is still running. Can probably fix that as well. Also have other suggestions on clean up like use of meta information instead of the image name as "dev-*" seems kinda brutish :) Anyway, appreciate the feedback.

ronald.petty (Fri, 29 Dec 2017 15:05:43 GMT):
Does CLI_DELAY mean wait that duration before attempting an operation or disconnect after waiting? Referring to byfn.sh setup.

SamuelDare (Fri, 29 Dec 2017 16:31:29 GMT):
Hi, Was wondering if anyone could help with this :: https://stackoverflow.com/questions/48025007/deleting-chaincode-from-peer

chadgates (Fri, 29 Dec 2017 16:58:45 GMT):
Has joined the channel.

ChrisHart (Fri, 29 Dec 2017 23:30:45 GMT):
Has joined the channel.

Evans347 (Sat, 30 Dec 2017 03:39:11 GMT):
Has joined the channel.

vgotcheva (Sat, 30 Dec 2017 03:46:00 GMT):
Has joined the channel.

SB85 (Sat, 30 Dec 2017 18:12:05 GMT):
Has joined the channel.

SB85 (Sun, 31 Dec 2017 04:13:47 GMT):
Any help?? # Create the channel docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx 2017-12-31 04:04:38.094 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-12-31 04:04:38.094 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-12-31 04:04:38.096 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: channel create configuration tx file not found open C:/Program Files (x86)/Git/etc/hyperledger/configtx/composer-channel.tx: no such file or directory Usage: peer channel create [flags]

SB85 (Sun, 31 Dec 2017 04:16:47 GMT):
Hi , I am getting an error while starting fabric with ./startFabric.sh. Error "# Create the channel docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx # Create the channel docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx 2017-12-31 04:04:38.094 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-12-31 04:04:38.094 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-12-31 04:04:38.096 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: channel create configuration tx file not found open C:/Program Files (x86)/Git/etc/hyperledger/configtx/composer-channel.tx: no such file or directory Usage: peer channel create [flags] I tried to copy composer-channel.tx file into error location . Still not resolved. Same issue. Any help?

supernus (Mon, 01 Jan 2018 12:45:19 GMT):
Has joined the channel.

xingstarx (Tue, 02 Jan 2018 03:18:48 GMT):
Hi, I have a problem, I try fabric-samples/fabcar , when I run `node registerUser.js`, I get error that ``` Store path:/Users/xingxing/nodeProject/fabric-samples/fabcar/hfc-key-store Successfully loaded admin from persistence Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"No identity type provided. Please provide identity type"}]] ```

xingstarx (Tue, 02 Jan 2018 03:30:16 GMT):
okay, I found the answer on stackoverflow https://stackoverflow.com/a/47197263/5279354

MR (Tue, 02 Jan 2018 08:57:18 GMT):
i am trying to install sample fabric application on multiple hosts. on Host 1 - every thing looks good. on Host 2 - when i try to query the channel (CORE_PEER_ADDRESS=peer0.b.example.com:7051 peer chaincode query -n reference -v 1.0 -c {\"Args\":[\"query\"]} -C common) i am getting below error . message: "Error executing chaincode: Could not get deployment transaction from LSCC for reference:1.0 - Get ChaincodeDeploymentSpec for reference/common from LSCC error: chaincode fingerprint mismatch data mismatch" Host1 and Host2 are different machines with the same go path and same application folder path. i am checking with this example - https://github.com/olegabu/fabric-starter

yacovm (Tue, 02 Jan 2018 11:04:12 GMT):
@MR - it seems like the chaincode that was installed in `Host 2` has a different hash than the one installed on `Host 1`

yacovm (Tue, 02 Jan 2018 11:04:20 GMT):
I presume you instantiated via `Host 1`

yacovm (Tue, 02 Jan 2018 11:05:09 GMT):
hence its hash was recorded into the ledger, and then when `Host 2` tries to launch it, it suspects that the chaincode that was defined on the channel, and the chaincode that was installed on it are different ones

MR (Tue, 02 Jan 2018 11:17:06 GMT):
@yacovm - so , do we need to package the chaincode and use the same package on host 2 ?

yacovm (Tue, 02 Jan 2018 11:17:20 GMT):
yeah you have to use the exact same package :(

yacovm (Tue, 02 Jan 2018 11:17:31 GMT):
even if that means sending the other organization the binary

yacovm (Tue, 02 Jan 2018 11:17:46 GMT):
if you only send the source and he/she builds it on his/her computer

yacovm (Tue, 02 Jan 2018 11:17:51 GMT):
that might end up bad ;)

yacovm (Tue, 02 Jan 2018 11:18:33 GMT):
if you can't recover the way you built it, you can just... well, take the chaincode itself from `/var/hyperledger/production/chaincodes`

yacovm (Tue, 02 Jan 2018 11:18:39 GMT):
it's a file

yacovm (Tue, 02 Jan 2018 11:18:45 GMT):
and just transfer it to the other peer

MR (Tue, 02 Jan 2018 11:20:12 GMT):
@yacovm - ok let me try that . thank you :-)

yacovm (Tue, 02 Jan 2018 11:20:16 GMT):
sure

vsadriano (Tue, 02 Jan 2018 12:18:29 GMT):
Hi! Where can I learn about chain code proccess (creation, instantiate...)?

vsadriano (Tue, 02 Jan 2018 12:25:34 GMT):
I would like to learn about the chaincode full structure (properties etc...). Is there any information of docker container?

Luxii (Tue, 02 Jan 2018 13:31:16 GMT):
@vsadriano you can start from here

Luxii (Tue, 02 Jan 2018 13:31:16 GMT):
@vsadriano you can start from here http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html

vsadriano (Tue, 02 Jan 2018 13:36:03 GMT):
@Luxii I didn't see how hyperledger fabric manages docker containers for create and operationalize the chaincode.

vsadriano (Tue, 02 Jan 2018 13:36:20 GMT):
I would like to see this flux.

gut (Tue, 02 Jan 2018 13:49:52 GMT):
Do you mean by the operator side? You can try this: https://hyperledger-fabric.readthedocs.io/en/release/chaincode4noah.html

vsadriano (Tue, 02 Jan 2018 13:51:47 GMT):
I want to implement a Kubernetes intead docker controller. I need to understand the container flux (creation e management).

vsadriano (Tue, 02 Jan 2018 13:56:57 GMT):
*instead

yacovm (Tue, 02 Jan 2018 14:02:02 GMT):
@vsadriano are you referring to FAB-7406 ?

sativ01.ca (Tue, 02 Jan 2018 16:08:07 GMT):
Has joined the channel.

vsadriano (Tue, 02 Jan 2018 16:57:19 GMT):
I'm following. Thanks!

charcook24 (Tue, 02 Jan 2018 18:44:28 GMT):
When entering the . docker exec -it cli bash command into the terminal, i receive this error: Error response from daemon: Container f69bd8373c7366b314b40b9a8dc9b46ba75a168f1c52561e8c5f6d0b5471ca7a is not running see http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel

nickgaski (Tue, 02 Jan 2018 19:22:57 GMT):
@charcook24 - you can just restart the container `docker start cli`

nickgaski (Tue, 02 Jan 2018 19:23:17 GMT):
I thought we fixed the timeout

charcook24 (Tue, 02 Jan 2018 19:24:57 GMT):
@nickgaski do i need to specify a specific container when restarting? Still having the same issue.

nickgaski (Tue, 02 Jan 2018 19:29:15 GMT):
isn't the container named `cli`

nickgaski (Tue, 02 Jan 2018 19:29:33 GMT):
you may just want to restart your daemon and give it another go

charcook24 (Tue, 02 Jan 2018 19:42:22 GMT):
@nickgaski ok thank you i will post again if i have trouble. Cheers!

douglasthiel (Wed, 03 Jan 2018 00:05:33 GMT):
Hi — I'm having a BAD_REQUEST day. I'm getting this error when trying to start a channel. I am not trying to attach a peer to the channel yet. Any help you can provide would be warmly appreciated. Background: I have a 3 organization, 6 peer network running. Docker version 17.09.1-ce, build 19e2cf6 OS X 10.13.2 Hyperledger Fabric version 1.0.4 Here's the script: # Set the channel name for the AssetBroadcastChannel > echo > export CHANNEL_NAME=AssetBroadcastChannel > ORDERER_CA=/opt/fabric/crypto-config/ordererOrganizations/finixn.com/orderers/custodianordererorg.finixn.com/msp/tlscacerts/tlsca.finixn.com-cert.pem > export CORE_PEER_LOCALMSPID="CustodianOrgMSP" > export CORE_PEER_MSPCONFIGPATH=/opt/fabric/crypto-config/peerOrganizations/custodianorg.finixn.com/users/Admin@custodianorg.finixn.com/msp > export CORE_PEER_ADDRESS=peer0.custodianorg.finixn.com:7051 > echo > echo CORE_PEER_ADDRESS is $CORE_PEER_ADDRESS > echo > echo bringing up $CHANNEL_NAME... # here's the line that generates the error BAD_REQUEST > peer channel create -t 100 -o custodianordererorg.finixn.com:7050 -c AssetBroadcastChannel -f /opt/fabric/channel-artifacts/assetbroadcastchannel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA >&log.txt > res=$? ### Here's the output from the script bringing up AssetBroadcastChannel... Showing log.txt... 2018-01-02 22:48:34.801 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-01-02 22:48:34.801 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-01-02 22:48:34.812 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-01-02 22:48:34.817 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2018-01-02 22:48:34.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2018-01-02 22:48:34.818 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2018-01-02 22:48:34.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2018-01-02 22:48:34.818 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AB0060A0F437573746F6469616E4F72...0F46696E6978436F6E736F727469756D 2018-01-02 22:48:34.818 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 9B9468741D79CB12F4A1FC19DE491EB6CE4E1826105004D601CA8CB3B56540D8 2018-01-02 22:48:34.818 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2018-01-02 22:48:34.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2018-01-02 22:48:34.818 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2018-01-02 22:48:34.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2018-01-02 22:48:34.818 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AF3060A2108021A0608C298B0D20522...CE729E5DED845E9D6CCE248437BD50B9 2018-01-02 22:48:34.819 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 31FC2661DFF3B21539B52F78FFDCEB1BB648AE1CB2D4A81096816AF013168F36 Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

douglasthiel (Wed, 03 Jan 2018 00:06:18 GMT):
Any pointers?

douglasthiel (Wed, 03 Jan 2018 00:06:36 GMT):
and what does DEBU stand for?

yacovm (Wed, 03 Jan 2018 00:12:13 GMT):
debug

yacovm (Wed, 03 Jan 2018 00:13:03 GMT):
show the orderer log please

douglasthiel (Wed, 03 Jan 2018 00:13:24 GMT):
where do I find that?

yacovm (Wed, 03 Jan 2018 00:13:50 GMT):
`docker logs orderer-name` ?

douglasthiel (Wed, 03 Jan 2018 00:15:56 GMT):
the log files is pretty long, you sure you want it?

yacovm (Wed, 03 Jan 2018 00:17:05 GMT):
I don't but I guess you want me to have it

yacovm (Wed, 03 Jan 2018 00:17:11 GMT):
upload it to pastebin

yacovm (Wed, 03 Jan 2018 00:17:17 GMT):
and put here only the link

douglasthiel (Wed, 03 Jan 2018 00:20:31 GMT):
I think I should clear the log and re-run my attempt. How do I clear the log inside docker?

douglasthiel (Wed, 03 Jan 2018 00:24:43 GMT):
actually the log shows "Bad channel id: channel ID 'AssetBroadcastChannel' contains illegal characters"

douglasthiel (Wed, 03 Jan 2018 00:24:55 GMT):
are caps not allowed in a channel name?

douglasthiel (Wed, 03 Jan 2018 00:30:53 GMT):
never mind. I have a lead here and will pursue it. Thanks.

vikimeng (Wed, 03 Jan 2018 01:24:26 GMT):
Has joined the channel.

ishwaryak (Wed, 03 Jan 2018 04:08:14 GMT):
Has joined the channel.

ishwaryak (Wed, 03 Jan 2018 06:24:11 GMT):
export PATH=$PWD/bin:$PATH

ishwaryak (Wed, 03 Jan 2018 06:24:32 GMT):
which path i need to give either go path or bin path?

matrisis (Wed, 03 Jan 2018 10:11:42 GMT):
Has left the channel.

CodeReaper (Wed, 03 Jan 2018 10:59:53 GMT):
Hey, if all the peer containers are stopped and removed and started again, will they communicate with orderers to re-sync their ledger??

yacovm (Wed, 03 Jan 2018 11:22:30 GMT):
yes

MohammadObaid (Wed, 03 Jan 2018 11:27:32 GMT):
Hey all . I have a question. If wrong data is accidentally inserted in blockchain , can we modify/correct that block later? MY question if from both perspective as in general blockchain and fabric specific ?

kapilAtrey (Wed, 03 Jan 2018 11:30:45 GMT):
@yacovm can you please repond to this [ ](https://chat.hyperledger.org/channel/fabric?msg=EmxeamWKsvo9E7t3r)

yacovm (Wed, 03 Jan 2018 11:31:06 GMT):
it's complicated and I'm a bit busy

yacovm (Wed, 03 Jan 2018 11:31:29 GMT):
also I'm bombarded with user questions :(

kapilAtrey (Wed, 03 Jan 2018 11:33:20 GMT):
ok got it :-) but please do respond as soon as you can thank you man

muralisr (Wed, 03 Jan 2018 16:21:10 GMT):
@MR this is a known issue. For now the workaround is to use the "package" option as follows

muralisr (Wed, 03 Jan 2018 16:21:10 GMT):
@MR assuming the chaincode is identical with respect to path, code etc, this is a known issue. For now the workaround is to use the "package" option as follows

muralisr (Wed, 03 Jan 2018 16:22:24 GMT):
```peer chaincode package -n mycc -v 0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 mycc.pak CORE_PEER_ADDRESS=:7051 peer chaincode install mycc.pak CORE_PEER_ADDRESS=:7051 peer chaincode instal mycc.pak ...and proceed with the rest of the commands .... ```

muralisr (Wed, 03 Jan 2018 16:25:00 GMT):
or copying the file around as @yacovm suggested will work too (if that's easier... its equivalent to doing the above)

nickgaski (Wed, 03 Jan 2018 16:38:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xnDuaxuzepihBMkDW) @MohammadObaid - well that would defy the basic principal of the blockchain, wouldn't it? What you could do however is issue a subsequent transaction to modify the world state and update your key/val pair(s) to accurately reflect the state of the asset.

gen_el (Wed, 03 Jan 2018 16:41:02 GMT):
Hello How do i specify an endorsement policy such that only 1 peer of 1 org endorses a trxn. Currently all 4 peers (2 peers per org) in my network seem to endorsing transactions. That is not what i want.

ga25waq (Wed, 03 Jan 2018 17:20:16 GMT):
Has joined the channel.

ga25waq (Wed, 03 Jan 2018 17:20:54 GMT):
Hi, I've got a question regarding the endorsement process: How can I influence if a transaction proposal is endorsed by a peer? Let's say I want to ask the user (who represents the endorsing peer) via STDIN if he/she wants to endorse a certain transaction proposal (typing 'y' would endorse the proposal, typing 'n' would not). How can I implement that? Simply prompting the user via the chaincode implementation? Or is there a different way to achieve that? Thanks!

yacovm (Wed, 03 Jan 2018 17:24:18 GMT):
You can implement a custom ESCC

yacovm (Wed, 03 Jan 2018 17:24:22 GMT):
but... I would recommend against that

yacovm (Wed, 03 Jan 2018 17:24:31 GMT):
You're confusing what endorsement means

yacovm (Wed, 03 Jan 2018 17:24:47 GMT):
endorsement means that certain peers attest that the chaincode execution is correct

yacovm (Wed, 03 Jan 2018 17:24:56 GMT):
it's not a user consent

yacovm (Wed, 03 Jan 2018 17:25:36 GMT):
if you want to implement something that requires users consent you need to write chaincode logic that collects user consent, puts it into the blockchain

yacovm (Wed, 03 Jan 2018 17:25:46 GMT):
and then another chaincode that checks if the consent is found in the blockchain

gurel (Wed, 03 Jan 2018 17:46:18 GMT):
Has joined the channel.

LeonardoLeite (Wed, 03 Jan 2018 19:00:57 GMT):
Has joined the channel.

LeonardoLeite (Wed, 03 Jan 2018 19:03:34 GMT):
Hello everyone. I'm having a problem following the chaincode for developers tutorial. Are there any known issues with the "go get" command

LeonardoLeite (Wed, 03 Jan 2018 19:04:48 GMT):
having problems finding the package github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN, which I also can't find on github

RashidUjang (Wed, 03 Jan 2018 19:13:23 GMT):
Has joined the channel.

RashidUjang (Wed, 03 Jan 2018 19:22:02 GMT):
Hi all, I was wondering where is the documentation for the `peer channel` family of commands (e.g. `peer channel create` and `peer channel join`) I am going through the BYFN sample scenario and came across these commands after they launched the CLI container. Thank you in advance!

ga25waq (Wed, 03 Jan 2018 19:40:05 GMT):
@yacovm Thanks for your quick reply! And the second chaincode (that checks if the consent is found) is automatically triggered by the first chaincode (which is invoked by a user to express the user's consent on something)?

douglasthiel (Wed, 03 Jan 2018 20:01:28 GMT):
Hi @yacovm: [Pastebin link](https://pastebin.com/DZ9Axgb8) **Goal:** Get the custodianordererorg.finixn.com to run the channel named 'AssetBroadcastChannel' **Error background** - I'm still getting this error: > 172.18.0.17:33460 because of error: initializing configtx manager failed: Bad channel id: channel ID 'AssetBroadcastChannel' contains illegal characters Note: my script is **not** yet calling "peer channel join" I've verified all folder paths used in the script within the docker cli. **Environment Background**: I have a 3 organization, 6 peer network running. Docker version 17.09.1-ce, build 19e2cf6 OS X 10.13.2 Hyperledger Fabric version 1.1.0 preview (switched to this hoping for improved error reporting)

douglasthiel (Wed, 03 Jan 2018 20:02:13 GMT):
any pointers or help is greatly appreciated.

douglasthiel (Wed, 03 Jan 2018 20:21:32 GMT):
@RashidUjang - if you look at the file named script.sh, it has some examples of peer commands. See ~/fabric-samples/first-network/scripts/script.sh Hope this helps.

silliman (Wed, 03 Jan 2018 20:29:39 GMT):
@douglasthiel channel names can only contain lowercase ASCII alphanumerics characters, dots and dashes. And must begin with a letter, and must be shorter than 250 characters. So your uppercase characters in your channel name are a problem.

douglasthiel (Wed, 03 Jan 2018 20:34:18 GMT):
@silliman Thanks.

mvaibhavshah (Wed, 03 Jan 2018 20:39:11 GMT):
Has joined the channel.

mvaibhavshah (Wed, 03 Jan 2018 20:40:04 GMT):
I have execute BYFN.sh script...everything is setup...now I want to add fifth peer in different machine how to do that..any pointers please.. and what all do we need to install / put in the second machine..

roshans1 (Wed, 03 Jan 2018 21:05:00 GMT):
Has joined the channel.

roshans1 (Wed, 03 Jan 2018 21:07:17 GMT):
Hi all, when running through the tutorial to build your first network, I keep getting the following error when trying to bring up the network: '''2018-01-03 20:41:40.058 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: err CA Certificate is not valid, (SN: 78975828611497117025425737698577616861) [Could not obtain certification chain, err The supplied identity is not valid, Verify() returned x509: certificate has expired or is not yet valid] !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========='''

douglasthiel (Wed, 03 Jan 2018 21:52:07 GMT):
@yacovm - please ignore my last request. I'm over the hump and on to another steel door to pound on. :-)

nickgaski (Thu, 04 Jan 2018 01:29:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oxv4E5FE97KyPacDr) @RashidUjang - additionally, `peer --help` or `peer channel --help`

RashidUjang (Thu, 04 Jan 2018 03:25:18 GMT):
@douglasthiel @nickgaski Thank you so much for the response! Will be trying that!

ronald.petty (Thu, 04 Jan 2018 04:50:59 GMT):
Anyone have advice on how to debug chain code in the container? I see some broken links to chaincode debugging on IBMs site about fabric but no much else.

danshao (Thu, 04 Jan 2018 04:59:35 GMT):
Has joined the channel.

MohammadObaid (Thu, 04 Jan 2018 05:28:31 GMT):
@nickgaski You are right that would break basic principal of blockchain but what does del state in chaincode does. Doesnt it delete record from fabric blockchain?

MR (Thu, 04 Jan 2018 05:35:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hvfxTNHkaGnxL3R34) @muralisr thank you. we are trying to pack the chaincode.we got few issues like chaincode path not correct. but i hope we will resolve that.

seungchan (Thu, 04 Jan 2018 07:30:31 GMT):
I using fabcar tutorial. I have question. In Fabcar, Is function of Admin and User1 related with Node.js application? If I use cli when I invokes chaincode, isn't CA useful?

seungchan (Thu, 04 Jan 2018 08:31:08 GMT):
If peers use the same chain code, is there any chance that Endorsement of Endorsement Policy will be different?

DRSK (Thu, 04 Jan 2018 09:10:49 GMT):
Has joined the channel.

DRSK (Thu, 04 Jan 2018 09:17:35 GMT):
In a committing peer, whether there is a separate chaincode for describing validation condition? How is validation implemented in fabric sample, say fabcar?

DRSK (Thu, 04 Jan 2018 09:17:35 GMT):
In a committing peer, whether there is a separate chaincode for describing validation condition? How is validation implemented in fabric sample, say fabcar?

DRSK (Thu, 04 Jan 2018 09:17:35 GMT):
@here In a committing peer, whether there is a separate chaincode for describing validation condition? How is validation implemented in fabric sample, say fabcar?

michael_aR (Thu, 04 Jan 2018 09:46:41 GMT):
Does this solution work on windows or linux only ?! https://github.com/hyperledger/fabric-sdk-rest

michael_aR (Thu, 04 Jan 2018 09:53:12 GMT):
i get many errors while executing npm link..

Taffies (Thu, 04 Jan 2018 10:37:09 GMT):
Hello! I'm following the fabric-ca tutorial on ubuntu. When I try to generate my key pair for the server, my private key is not stored in my files. I'm still able to start my server but when I move on the to client side, I'm unable to enroll my client at all. It says there's an authorisation failure. Not sure if it's related but that's the only thing I see different from the tutorial so far. Any clue?

Taffies (Thu, 04 Jan 2018 10:37:37 GMT):

Screen Shot 2018-01-04 at 6.32.16 PM.png

Taffies (Thu, 04 Jan 2018 10:38:32 GMT):

Screen Shot 2018-01-04 at 6.32.47 PM.png

ishwaryak (Thu, 04 Jan 2018 10:41:01 GMT):

client failure.png

ishwaryak (Thu, 04 Jan 2018 10:41:16 GMT):
@Taffies i am also facing the same issue

Taffies (Thu, 04 Jan 2018 11:00:32 GMT):
@ishwaryak I'll update if I come across a solution

ga25waq (Thu, 04 Jan 2018 11:01:00 GMT):
Referring to the story 'Chaincode calling chaincode' (https://jira.hyperledger.org/browse/FAB-1788), is there any vivid example that demonstrates how to use this feature on a peer?

allonblocks21 (Thu, 04 Jan 2018 11:06:58 GMT):
Has joined the channel.

mvaibhavshah (Thu, 04 Jan 2018 11:18:47 GMT):
Getting error when try to connect from different machine..

mvaibhavshah (Thu, 04 Jan 2018 11:18:48 GMT):
docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer2.org1.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel 2018-01-04 11:14:30.353 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-01-04 11:14:30.353 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-01-04 11:14:30.368 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable

Jonny (Thu, 04 Jan 2018 12:08:46 GMT):
Is that possible to use rich query for GetHistoryForKey?

nickgaski (Thu, 04 Jan 2018 15:37:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wip3634uQEoCwNX5S) @MohammadObaid - https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L101

nickgaski (Thu, 04 Jan 2018 15:38:02 GMT):
so it's just a chaincode API to delete the key and corresponding value. However, the block with the initial key creation and subsequent value is still persisted on the chain

nickgaski (Thu, 04 Jan 2018 15:38:17 GMT):
you're simply updating the world state

tkuhrt (Thu, 04 Jan 2018 16:33:42 GMT):
@mvaibhavshah : In your error message, I see the following IP address 127.0.0.11:53. Is this where your orderer exists?

voutasaurus (Thu, 04 Jan 2018 16:35:13 GMT):
Has joined the channel.

tkuhrt (Thu, 04 Jan 2018 16:41:29 GMT):
@Taffies : from #fabric-ca channel, this response might help: https://chat.hyperledger.org/channel/fabric-ca?msg=HAkdejQmShxg9X9Ly

mvaibhavshah (Thu, 04 Jan 2018 17:31:34 GMT):
@tkuhrt : Yes orderer is in 127.0.0.1...don't know why this "127.0.0.11:53" is coming.

tkuhrt (Thu, 04 Jan 2018 18:20:47 GMT):
@mvaibhavshah : Do you have an `extra_hosts` entry in your Docker Compose file for peer2.org1.example.com. Or a `hosts` file that is pointing to an invalid address?

basithuss (Thu, 04 Jan 2018 19:39:23 GMT):
Has joined the channel.

kyosuke2da (Fri, 05 Jan 2018 01:56:11 GMT):
Has joined the channel.

YuChinFabianLim (Fri, 05 Jan 2018 03:06:40 GMT):
Has joined the channel.

YuChinFabianLim (Fri, 05 Jan 2018 03:09:30 GMT):
User User_1 added by YuChinFabianLim.

ShefaliMittal (Fri, 05 Jan 2018 04:45:51 GMT):
Hi I have setup my network using docker swarm. Below is my setup details - - Two organisations having one peer each and one orderer - Orderer and org1 peer is on one machine - org 2 peer is on second machine I am able to create and join channel from both peers. But when I try to install chaincode from my peer, I get below error - 2018-01-05 04:41:13.962 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-01-05 04:41:13.962 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-01-05 04:41:13.962 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-01-05 04:41:13.962 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: Error getting chaincode code chaincode: : failed with error: "exec: not started" Usage: peer chaincode install [flags]

ShefaliMittal (Fri, 05 Jan 2018 04:46:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FXBJB2TRp6ePYe88i) @mvaibhavshah - try passing the IP address of machine where the orderer is hosted instead of orderer.example.com.

AffineR (Fri, 05 Jan 2018 04:50:12 GMT):
Has joined the channel.

DRSK (Fri, 05 Jan 2018 06:16:21 GMT):
@C0rWin @guoger In all the sample we have, peers are added statically through configuration file right? Is there any way to add peers dynamically once the application is already up and running? Also is it possible to add users also on the fly for making it suitable for real world scenarios?

DRSK (Fri, 05 Jan 2018 06:16:21 GMT):
@C0rWin In all the sample we have, peers are added statically through configuration file right? Is there any way to add peers dynamically once the application is already up and running? Also is it possible to add users also on the fly for making it suitable for real world scenarios?

arjunkhera (Fri, 05 Jan 2018 06:37:11 GMT):
we can, see this https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#configuration-block and https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#dynamic-membership

arjunkhera (Fri, 05 Jan 2018 06:37:11 GMT):
@DRSK we can, see this https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#configuration-block and https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#dynamic-membership

DRSK (Fri, 05 Jan 2018 07:18:19 GMT):
@arjunkhera Thanks for the documentation stating it's possiblity . Now that it is possible, can you also suggest some documentation that can guide me to implement it in the existing scenario?

arjunkhera (Fri, 05 Jan 2018 07:51:51 GMT):
i think this should address the implementation part : http://hyperledger-fabric.readthedocs.io/en/release/configtx.html#configuration-updates

ShefaliMittal (Fri, 05 Jan 2018 08:00:18 GMT):
I have setup a network using docker swarm. but it seems that they are unable to communicate using the service name or alias name

ShefaliMittal (Fri, 05 Jan 2018 08:00:29 GMT):
only when I provide the IP address, it works

ShefaliMittal (Fri, 05 Jan 2018 08:01:04 GMT):
but that is creating problem in committing transactions to both peer.. transactions are committing to only peer on which orderer exissts

DRSK (Fri, 05 Jan 2018 08:16:52 GMT):
@arjunkhera Ok Thanks, Shall go through that.

jaswanth (Fri, 05 Jan 2018 08:58:43 GMT):
Hi all , A quick question . Say i gave an endorsement policy of OR('Org1.admin', AND('Org1.member', 'Org2.member')) , when this policy fails , I know that if Org1.admin and Org1.member did not sign the tx it fails but on what basis they opt not to sign the tx . I guess if they are not available then it fails , but in which situations will they are not available

jaswanth (Fri, 05 Jan 2018 08:58:43 GMT):
Hi all , A quick question . Say i gave an endorsement policy of `OR('Org1.admin', AND('Org1.member', 'Org2.member'))` , when this policy fails , I know that if `Org1.admin and Org1.member` did not sign the tx it fails but on what basis they opt not to sign the tx . I guess if they are not available then it fails , but in which situations will they are not available

jaswanth (Fri, 05 Jan 2018 08:58:43 GMT):
Hi all , A quick question . Say i gave an endorsement policy of `OR('Org1.admin', AND('Org1.member', 'Org2.member'))` , when this policy fails , I know that if `Org1.admin and Org1.member` did not sign the tx it fails but on what basis they opt not to sign the tx . I guess if they are not available then it fails , but in which situations will they not be available

ShefaliMittal (Fri, 05 Jan 2018 09:54:00 GMT):
Hi I have created a distributed network using swarm.. I have one issue now When I instantiate chaincode it commits record to couchdb on which orderer is hosted it does not commit to another peer

mastersingh24 (Fri, 05 Jan 2018 12:52:03 GMT):
Don't think of signed endorsement responses like human signatures. It's not really about opting *not* to sign an endorsement response. Clearly if the peer(s) for Org1 are not available then you won't get any response from them and therefore the transaction would not meet the policy. It might also be the case that somehow a peer from Org1 and a peer from Org2 get different results when executing the chaincode (for example perhaps Org2 was trying to be malicious). So in this case the the responses from Org1 and Org2 peers would not match and the transaction would fail. (https://chat.hyperledger.org/channel/fabric-questions?msg=emuBw7P5CP3TdZzv3) @jaswanth

joaquimpedrooliveira (Fri, 05 Jan 2018 13:28:17 GMT):
Hi, all. I'm a bit confused about chaincode install and instantiation. I'm running a network with two Peers beloging to the same Org. I did the following steps: 1. Peer1 - Created channel 2. Peer 2 - Joined channel 3. Peer 1 - Joined channel 4. Peer 2 - Installed chaincode (I'm using `chaincode_example02`) 5. Peer 2 - Instantiated chaincode 6. Peer 1 - Query chaincode. Result OK. 7. Peer 1 - Invoked chaincode. Result OK 8. Peer 2 - Query chaincode. Got `Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name '05jan1' - make sure the chaincode 05jan1 has been successfully instantiated and try again - ` So I tried to reinstall the c

joaquimpedrooliveira (Fri, 05 Jan 2018 13:28:17 GMT):
Hi, all. I'm a bit confused about chaincode install and instantiation. I'm running a network with two Peers beloging to the same Org. I did the following steps: 1. Peer1 - Created channel 2. Peer 2 - Joined channel 3. Peer 1 - Joined channel 4. Peer 2 - Installed chaincode (I'm using `chaincode_example02`) 5. Peer 2 - Instantiated chaincode 6. Peer 1 - Installed chaincode 7. Peer 1 - Query chaincode. Result OK. 8. Peer 1 - Invoked chaincode. Result OK 9. Peer 2 - Query chaincode. Got `Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name '05jan1' - make sure the chaincode 05jan1 has been successfully instantiated and try again - ` So I tried to reinstall the chaincode on Peer2, but got `Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code 05jan1:1.0(chaincode /var/hyperledger/production/chaincodes/05jan1.1.0 exists))`

joaquimpedrooliveira (Fri, 05 Jan 2018 13:28:17 GMT):
Hi, all. I'm a bit confused about chaincode install and instantiation. I'm running a network with two Peers belonging to the same Org. I did the following steps: 1. Peer1 - Created channel 2. Peer 2 - Joined channel 3. Peer 1 - Joined channel 4. Peer 2 - Installed chaincode (I'm using `chaincode_example02`) 5. Peer 2 - Instantiated chaincode 6. Peer 1 - Installed chaincode 7. Peer 1 - Query chaincode. Result OK. 8. Peer 1 - Invoked chaincode. Result OK 9. Peer 2 - Query chaincode. Got `Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name '05jan1' - make sure the chaincode 05jan1 has been successfully instantiated and try again - ` So I tried to reinstall the chaincode on Peer2, but got `Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code 05jan1:1.0(chaincode /var/hyperledger/production/chaincodes/05jan1.1.0 exists))`

joaquimpedrooliveira (Fri, 05 Jan 2018 13:30:18 GMT):
I'm running the commands on a cli, only changing the variable CORE_PEER_ADDRESS to Peer1 or Peer2

joaquimpedrooliveira (Fri, 05 Jan 2018 13:30:18 GMT):
I'm running the commands on a cli container, only changing the variable CORE_PEER_ADDRESS to Peer1 or Peer2

joaquimpedrooliveira (Fri, 05 Jan 2018 13:47:25 GMT):
Why Peer2 does not contain the chaincode installed anymore?

diego88 (Fri, 05 Jan 2018 13:49:17 GMT):
Has joined the channel.

diego88 (Fri, 05 Jan 2018 13:49:53 GMT):
Hi everyone. I don't get a basic concept of fabcar example: 1) I have a basic-network with crypto materials 2) then with the fabcar app, I generate new crypto materials in a hfc-key-store So my question is, in a nutshell how it works and whats the meaning of this? is not redundant? Thank you in advance!

joaquimpedrooliveira (Fri, 05 Jan 2018 14:14:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qc2jwFXWfaX6JshEP) @diego88 As far as I understand, the crypto assets from basic-network are related to the network components (orderer, CA, peers...). The application, that is external to the network, needs to enroll and obtain its user certificate, issued by the CA.

joaquimpedrooliveira (Fri, 05 Jan 2018 14:16:10 GMT):
from the docs (http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html): >When we launched our network, an admin user - admin - was registered with our Certificate Authority. Now we need to send an enroll call to the CA server and retrieve the enrollment certificate (eCert) for this user.

mastersingh24 (Fri, 05 Jan 2018 14:29:01 GMT):
It communicate via a gRPC API (https://chat.hyperledger.org/channel/general?msg=dWtQXxwxSXmDrJPks) @niteshsolanki

nagarajants (Fri, 05 Jan 2018 14:29:38 GMT):
Has joined the channel.

niteshsolanki (Fri, 05 Jan 2018 14:29:44 GMT):
@mastersingh24 so chaincode acts as a client here ?

mastersingh24 (Fri, 05 Jan 2018 14:30:27 GMT):
Correct - chaincode is a client to the peer

mastersingh24 (Fri, 05 Jan 2018 14:30:42 GMT):
The peer provides a gRPC server endpoint for the chaincode to communicate with

mastersingh24 (Fri, 05 Jan 2018 14:31:03 GMT):
The chaincode itself can only create client connections - it will not accept connections

niteshsolanki (Fri, 05 Jan 2018 14:33:03 GMT):
ok. got it. thanks @mastersingh24

michael_aR (Fri, 05 Jan 2018 15:05:52 GMT):
https://stackoverflow.com/questions/48112331/which-are-the-right-node-npm-versions-for-hyperledger-fabric-composer-rest-ser

michael_aR (Fri, 05 Jan 2018 15:06:19 GMT):
tried it on windwos and Linux but i get this error. Can someone help ?

michael_aR (Fri, 05 Jan 2018 15:06:19 GMT):
Tried it on Windows and Linux but i get this error. Can someone help ?

matrisis (Fri, 05 Jan 2018 15:17:41 GMT):
Has joined the channel.

joaquimpedrooliveira (Fri, 05 Jan 2018 17:07:53 GMT):
@michael_aR , according to the docs, Node 8.9 or higher (9.x not supported) and npm 5x

joaquimpedrooliveira (Fri, 05 Jan 2018 17:07:59 GMT):
See https://hyperledger.github.io/composer/stable/installing/installing-prereqs.html

diego88 (Fri, 05 Jan 2018 17:15:15 GMT):
@joaquimpedrooliveira [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXdpWMpzQxmk3XCZA) so in that case we are talking about a permissionless blockchain? (every client can obtain a certificate)

joaquimpedrooliveira (Fri, 05 Jan 2018 17:17:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uewWTz8NBojRXkaw7) @diego88 I understand a permissionless blockchain as a network where new organizations and peers can join the network without authorization. In this case, imagine that the blockchain can be permissioned (running inside your company) but your end users will have access to its transactions.

joaquimpedrooliveira (Fri, 05 Jan 2018 17:17:57 GMT):
But I'm not that experienced :)

nickgaski (Fri, 05 Jan 2018 17:18:04 GMT):
the client needs the identity to be `registered` into the CA database before a certificate will be returned. If the CA admin/registrar does not place this identity into the CA DB, then the CSR (i.e. enroll call) will fail

nickgaski (Fri, 05 Jan 2018 17:19:36 GMT):
the initial enrollAdmin program returns a cert immediately, because the default `admin` `adminpw` credentials are pre-loaded into the CA

nickgaski (Fri, 05 Jan 2018 17:20:32 GMT):
the returned admin identity is then used to register subsequent users (e.g. user1 and user2)

diego88 (Fri, 05 Jan 2018 17:22:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=69zfSx2pJt7cwP3Qn) so, once an admin is preloaded into the CA-Server, the Client with the admin/adminpw can enroll any number of users? (users have not to be preloaded into the CA-Server, right?

nickgaski (Fri, 05 Jan 2018 17:23:05 GMT):
exactly. you want the role of registrar. This tends to default to the CA admin

joaquimpedrooliveira (Fri, 05 Jan 2018 17:30:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vijaT8cWqtNruxZEq) Guys, any tips?

vieiramanoel (Fri, 05 Jan 2018 19:14:46 GMT):
```peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] StopDeliverForChannel -> DEBU 40c This peer will stop pass blocks from orderer service to other peers peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] try -> WARN 40d Got error: rpc error: code = Canceled desc = context canceled ,at 1 attempt. Retrying in 1s peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [blocksProvider] DeliverBlocks -> WARN 40e [mychannel] Receive error: Client is closing peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] Close -> DEBU 40f Entering peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] Close -> DEBU 410 Exiting ``` what does this lines means?

vieiramanoel (Fri, 05 Jan 2018 19:14:46 GMT):
```peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] StopDeliverForChannel -> DEBU 40c This peer will stop pass blocks from orderer service to other peers peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] try -> WARN 40d Got error: rpc error: code = Canceled desc = context canceled ,at 1 attempt. Retrying in 1s peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [blocksProvider] DeliverBlocks -> WARN 40e [mychannel] Receive error: Client is closing peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] Close -> DEBU 40f Entering peer0.ministerio.org | 2018-01-05 19:08:35.756 UTC [deliveryClient] Close -> DEBU 410 Exiting ``` what does these lines means?

vieiramanoel (Fri, 05 Jan 2018 19:31:52 GMT):
(after update anchor peers)

joaquimpedrooliveira (Fri, 05 Jan 2018 19:35:08 GMT):
@vieiramanoel Are you using `CORE_PEER_GOSSIP_USELEADERELECTION` or `CORE_PEER_GOSSIP_ORGLEADER`?

joaquimpedrooliveira (Fri, 05 Jan 2018 19:35:23 GMT):
Maybe you're dealing with https://jira.hyperledger.org/browse/FAB-5246

vieiramanoel (Fri, 05 Jan 2018 19:55:11 GMT):
@joaquimpedrooliveira CORE_PEER_GOSSIP_USELEADERELECTION, even that idk what it is haha

yacovm (Fri, 05 Jan 2018 20:03:45 GMT):
it means - do the peers use leader election, or not

joaquimpedrooliveira (Fri, 05 Jan 2018 20:06:02 GMT):
note that both configurations are mutually exclusive

vieiramanoel (Fri, 05 Jan 2018 20:06:07 GMT):
i mean - i didn't found until now nothing explaining about what's a leader election, neither searched about it cuz I didn't knew about this until now

vieiramanoel (Fri, 05 Jan 2018 20:06:07 GMT):
i mean - i didn't found until now anything explaining about what's a leader election, neither searched about it cuz I didn't knew about this until now

joaquimpedrooliveira (Fri, 05 Jan 2018 20:06:23 GMT):
https://github.com/hyperledger/fabric/blob/release/sampleconfig/core.yaml#L112

rmbern (Fri, 05 Jan 2018 22:55:54 GMT):
Has joined the channel.

friends110110 (Sat, 06 Jan 2018 02:46:16 GMT):
Has joined the channel.

friends110110 (Sat, 06 Jan 2018 02:47:10 GMT):
hello, everybody

friends110110 (Sat, 06 Jan 2018 02:47:15 GMT):
I have read the fabric source code about peer join channel , this step will invoke to create chain ledger (database) . Now I wanna to manage this step, someone want to join the channel must be accepted , but how to get the accept message according to the chain ? As the current peer has not create ledger, so it is impossible to get the accept message.Do you have some ideas to add authority control when join channel ? My ideas : create a common chain which everybody must join when start, we can get the accept from the common chain 2.orderer create grpc interface and save a white list (who could join the channel now), peer must know he is in the while list from orderer ,then he could join channel successfully.But orderer must be consistency with other orderer.

mogamboizer (Sat, 06 Jan 2018 04:52:02 GMT):
Hi In couchDB I see the first document is

mogamboizer (Sat, 06 Jan 2018 04:52:06 GMT):

Clipboard - January 5, 2018 11:52 PM

mogamboizer (Sat, 06 Jan 2018 04:53:02 GMT):
What are the contents of this document what do these hold?

mogamboizer (Sat, 06 Jan 2018 04:55:16 GMT):
Also what the following databases _global_changes, _replicator and _users hold?

mogamboizer (Sat, 06 Jan 2018 04:55:21 GMT):

Clipboard - January 5, 2018 11:55 PM

ishwaryak (Sat, 06 Jan 2018 07:14:42 GMT):
what is Anchor Peer?

ronald.petty (Sat, 06 Jan 2018 07:19:18 GMT):
@ishwaryak http://hyperledger-fabric.readthedocs.io/en/release/glossary.html#anchor-peer

RashidUjang (Sat, 06 Jan 2018 08:22:43 GMT):
Hi all, how many nodes or peers can Fabric support?

vdods (Sat, 06 Jan 2018 09:21:39 GMT):
@RashidUjang I don't think there's an inherent limit. As to the performance of particular numbers of peers and orderers, that's still an open question which is being addressed by the performance and benchmarking workgroup

vdods (Sat, 06 Jan 2018 09:29:30 GMT):
Hi all, I've got a question about the two uses of configtx.yaml -- for genesis block creation and for channel config tx creation. It appears that the genesis block (and presumably configuration updates) define the organizations in each consortium. The channel configuration includes an "Application" section which lists the organizations allowed to participate in that channel. The yaml file uses references to the org definitions in the consortium def and the application def, but it seems that if the orgs' info (e.g. MSPID, MSP dir, anchor peers, etc) is already present in the genesis block, then there's no reason to include it in the channel configuration tx, and so it should be possible to just use the names of the orgs in the Application section. Is this way off? I'm trying to separate the concerns of genesis block creation and channel config tx creation.

ishwaryak (Sat, 06 Jan 2018 11:59:34 GMT):
Hyperledger Fabric Node SDK Hyperledger Fabric Java SDK we need to install either option? or both we required? if both what is the use case of it?

greg2git (Sat, 06 Jan 2018 15:22:13 GMT):
@vdods i think all subsequent steps to genesis block creation are configured via profiles that can refer to other sections in the configtx.yaml file. in my mind, genesis block is necessary in every network but is not a config file in and of itself.

vdods (Sat, 06 Jan 2018 18:51:31 GMT):
@greg2git The configtx.yaml example files all use yaml references to the organizations for the Application section, which presumably requires all the org data to be present. Do you know if there's any way to just use the name of the org for that step? For example, I want to have a separate configtx.yaml file for channel creation that only has org names in it, and doesn't have to redundantly specify the pieces of data MSPID, anchor peer, MSP dir, etc.

muralisr (Sat, 06 Jan 2018 21:20:42 GMT):
@vdods organizations defines both orgs that participate in a channel (the "application" specific ones) and those that participate in the orderiring... these could be differently defined with different MSP ids and so forth. Perhaps in your case you are using the same orgs for both orderer and channel definitions ?

muralisr (Sat, 06 Jan 2018 21:20:42 GMT):
@vdods `Organizations` defines both orgs that participate in a channel (the "application" specific ones) and those that participate in the orderiring... these could be differently defined with different MSP ids and so forth. Perhaps in your case you are using the same orgs for both orderer and channel definitions ?

vdods (Sat, 06 Jan 2018 21:21:51 GMT):
@muralisr You could define an organization in the channel Application section having the same name as one in the genesis block configuration, but different MSP ID, anchor peer, etc?

muralisr (Sat, 06 Jan 2018 21:22:40 GMT):
I meant they could be different Org definitions entirely

muralisr (Sat, 06 Jan 2018 21:22:40 GMT):
I meant they could be different Org definitions entirely (didn't mean the same name with different definitions)

muralisr (Sat, 06 Jan 2018 21:22:53 GMT):
but not the same name

muralisr (Sat, 06 Jan 2018 21:24:45 GMT):
but perhaps check in `fabric-orderer` if you have a specific situation you'd like to clarify (don't want to mislead)

muralisr (Sat, 06 Jan 2018 21:37:03 GMT):
@vdods I see what you are saying ... the org definitions are already in the block. Your question (I think) is specific to why `configtxgen` needs it again to generate the channel tx ... ie, the org names should be enough ?

muralisr (Sat, 06 Jan 2018 21:37:03 GMT):
@vdods I see what you are saying ... the org definitions are already in the block. Your question (I think) is specific to why `configtxgen` needs it again (in configtx.yaml) to generate the channel tx ... ie, the org names should be enough ?

vdods (Sat, 06 Jan 2018 21:37:21 GMT):
Correct

muralisr (Sat, 06 Jan 2018 21:37:27 GMT):
ok

vdods (Sat, 06 Jan 2018 21:37:45 GMT):
It just seems to violate the "don't repeat yourself" principle

vdods (Sat, 06 Jan 2018 21:38:02 GMT):
I don't see any real utility in specifying different info during the application definition

muralisr (Sat, 06 Jan 2018 21:38:15 GMT):
I don't know... good question for `fabric-orderer`

vdods (Sat, 06 Jan 2018 21:38:17 GMT):
It would seem that that's what a config update is for

muralisr (Sat, 06 Jan 2018 21:38:39 GMT):
on the face of it, I tend to agree .. but don't know if there's a deeper reason we are missing

yacovm (Sat, 06 Jan 2018 21:56:13 GMT):
Well every config block is a full snapshot of the config

vdods (Sat, 06 Jan 2018 21:59:28 GMT):
Hmm.. ok -- and if you were to specify different config values for an existing org in the channel config, would that update the org's config values for the orderer? I.e. are the channel creation org configs distinct from the application org configs?

sagarvilas (Sat, 06 Jan 2018 22:11:27 GMT):
Has joined the channel.

yacovm (Sat, 06 Jan 2018 22:17:58 GMT):
I don't understand fully your question so I don't want to give a wrong answer

yacovm (Sat, 06 Jan 2018 22:18:03 GMT):
better ask in #fabric-orderer

anupamsinha15 (Sun, 07 Jan 2018 06:44:49 GMT):
I was doing the lab assignment for Hyperledger Composer doing a sample tutorial-network business network and stumbling upon while doing the trnsaction wondering if anyone could help me understnad the issue.. i have been trying from past 1 hour trying different approach, but none of them are working this is my CTO * * My commodity trading network * namespace org.acme.biznet asset Commodity identified by tradingSymbol { o String tradingSymbol o String description o String mainExchange o Double quantity --> Trader owner } participant Trader identified by tradeId { o String tradeId o String firstName o String lastName } transaction Trade { --> Commodity commodity --> Trader newOwner } here;s my logic.js function tradeCommodity(trade) { trade.commodity.owner = trade.newOwner; return getAssetRegistry('org.acme.biznet.Commodity') .then(function (assetRegistry) { return assetRegistry.update(trade.commodity); }); } and here's ACL rule Default { description: "Allow all participants access to all resources" participant: "ANY" operation: ALL resource: "org.acme.biznet.*" action: ALLOW } rule SystemACL { description: "System ACL to permit all access" participant: "ANY" operation: ALL resource: "org.hyperledger.composer.system.**" action: ALLOW } using the REST server here's my Data Source for: Trader [ { "$class": "org.acme.biznet.Trader", "tradeId": "TID1", "firstname": "TID1", "lastname": "TID1" }, { "$class": "org.acme.biznet.Trader", "tradeId": "TID2", "firstname": "TID2", "lastname": "TID2" } ] here;s my data soruce for: Commodity { "$class": "org.acme.biznet.Commodity", "tradingSymbol": "Symbol1", "description": "Cypto Symbol1", "mainExchange": "Ex1", "Quantity": 24, "Owner": "TID1" } When issuing below trade, i'm gettign error { "$class": "org.acme.biznet.Trade", "commodity": "Symbol1", "newOwner": "TID2" } Error: chaincode error (status: 500, message: Error: Instance Symbol1 has a property named owner which is not declared in org.acme.biznet.Commodity) This looks like quite straight forward to me, but not sure what am I missing here...? Please help

sagarvilas (Sun, 07 Jan 2018 20:02:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7vJxc35CeofZ4nCCB) @rolandnsharp i am getting same error, were you able to solve this

muralisr (Sun, 07 Jan 2018 21:48:14 GMT):
@sagarvilas could be because channel has already been created

sagarvilas (Sun, 07 Jan 2018 21:49:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6YyurgbWQ6iQhnjEe) @muralisr i thought so but i have tried using different channel name, that didnt solve it

muralisr (Sun, 07 Jan 2018 22:27:46 GMT):
@sagarvilas starting the orderer in debug (with ORDERER_GENERAL_LOGLEVEL=debug) would get more log info from the orderer

jaswanth (Mon, 08 Jan 2018 04:51:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PpTLijbcraWwJAGLZ) @anupamsinha15 I dont know what your doing wrong , i tried it and it worked for me , changed owner from TID1 to TID2

anupamsinha15 (Mon, 08 Jan 2018 04:53:13 GMT):
@jaswanth - thanks for looking into. I changed the owner to Owner in commodity asset and re-deployed the package. That resolved my issue

anupamsinha15 (Mon, 08 Jan 2018 04:53:36 GMT):
seems it was case sensitive

gut (Mon, 08 Jan 2018 07:56:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kyzFDerKFkb9LDrix) @anupamsinha15 In your Commodity you declare `"Owner": "TID1"`, while your Commodity asset has `--> Trader owner`. You have the same issue for `Double quantity` attribute, where you have `"Quantity": 24`. Finally, have a look at your js file, where you use `trade.commodity.owner`. You can also have a problem there.

MR (Mon, 08 Jan 2018 09:49:41 GMT):
thank you @yacovm and @muralisr - we are able to succeed with multiple hosts deployment.

yacovm (Mon, 08 Jan 2018 09:51:28 GMT):
You dont have to thank ne twice in 2 different channels

yacovm (Mon, 08 Jan 2018 09:51:35 GMT):
And sjre

yacovm (Mon, 08 Jan 2018 09:51:36 GMT):
Sure

MR (Mon, 08 Jan 2018 10:07:39 GMT):
sure

DRSK (Mon, 08 Jan 2018 10:28:57 GMT):
To build an application from scratch, can anyone suggest a tutorial for generating certificates and building my own network without using the certificates or network from any existing fabric sample?

cbf (Mon, 08 Jan 2018 13:43:08 GMT):
the "Build Your First Network" does this

cbf (Mon, 08 Jan 2018 13:43:41 GMT):
@DRSK http://hyperledger-fabric.readthedocs.io/en/v1.1.0-preview/build_network.html

toddinpal (Mon, 08 Jan 2018 13:54:57 GMT):
The Fabric documentation (http://hyperledger-fabric.readthedocs.io/en/release/capabilities.html) refers to access control lists for authorization, although I've not seen any such thing in fabric. Does Fabric currently support access control lists, and if so, where can I find the details?

Vadim (Mon, 08 Jan 2018 13:55:50 GMT):
@toddinpal https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid it's in v1.1

Vadim (Mon, 08 Jan 2018 13:56:50 GMT):
@toddinpal are you talking about executing chaincode or giving access of nodes to network?

toddinpal (Mon, 08 Jan 2018 14:16:34 GMT):
@Vadim Actually both. I'm trying to understand the permissioning system within Fabric, and what areas might be reasonable for extension.

toddinpal (Mon, 08 Jan 2018 14:17:18 GMT):
With regards to chaincode, I'm a fan of removing this from the chaincode and making it declarative within Fabric but outside the chaincode itself.

Vadim (Mon, 08 Jan 2018 14:17:40 GMT):
well you can use this library to control the chaincode access: https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid

toddinpal (Mon, 08 Jan 2018 14:17:42 GMT):
For access to nodes, clearly that has to be in Fabric as user chaincode can't affect that.

Vadim (Mon, 08 Jan 2018 14:18:27 GMT):
for node access, you specify in the channel config which orgs are allowed to read/write on that channel and you can also ban specific nodes using CRLs

toddinpal (Mon, 08 Jan 2018 14:21:00 GMT):
Right, I knew that about node access, although even that seems pretty rudimentary. As for the library, that still pushes the issue into the chaincode making it harder to see exactly what is going on. By using an external to the chaincode declarative mechanism, it should be possible to easily see what the permissions for a chaincode are. Just trying to think about where this could be improved upon.

Vadim (Mon, 08 Jan 2018 14:21:47 GMT):
@toddinpal external declarative mechanism will be less flexible than using a library

Vadim (Mon, 08 Jan 2018 14:22:24 GMT):
and it also creates a problem that the chaincode logic is separated from the chaincode access, so it's easy to mess that up

toddinpal (Mon, 08 Jan 2018 14:22:25 GMT):
Absolutely! But it will be entirely obvious what access is allowed. I believe there is a place for both.

toddinpal (Mon, 08 Jan 2018 14:22:52 GMT):
Well, if the access declarations were part of the chaincode specification, then they'd still be tied together.

Vadim (Mon, 08 Jan 2018 14:23:36 GMT):
and what do you mean by "rudimentary node access"?

toddinpal (Mon, 08 Jan 2018 14:24:37 GMT):
Perhaps coarse grained is the adjective I should have used instead of rudimentary.

Vadim (Mon, 08 Jan 2018 14:24:49 GMT):
no, just curious

Vadim (Mon, 08 Jan 2018 14:25:10 GMT):
you mean you want to specify white list of the specific nodes which allowed to be run, or what?

toddinpal (Mon, 08 Jan 2018 14:30:17 GMT):
White lists are one possibility, roles or other enrollment certificate attributes beyond organization would be another.

toddinpal (Mon, 08 Jan 2018 16:10:02 GMT):
@Vadim You posted something about 1.1 related to this and then removed the post. Is there something in 1.1 related to access control that isn't present in 1.0.x?

Vadim (Mon, 08 Jan 2018 18:34:22 GMT):
@toddinpal [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cP2mgEXJz7hjjx8eG)

toddinpal (Mon, 08 Jan 2018 18:35:17 GMT):
Ah, ok, thanks... I thought there was something that you said had been added to V1.1...

douglasthiel (Mon, 08 Jan 2018 18:45:02 GMT):
general configuration question: How many 'solo' orderers am I allowed to run in a docker container?

KathyXu (Mon, 08 Jan 2018 19:35:25 GMT):
Has joined the channel.

krabradosty (Mon, 08 Jan 2018 23:06:36 GMT):
Hello! Should I expect something terrible if I expose my fabric network to the whole internet?

Amir (Tue, 09 Jan 2018 02:01:15 GMT):
Has joined the channel.

Amir (Tue, 09 Jan 2018 02:10:27 GMT):
Hello, couldn't find org3-artifacts subdirectory in the github, which is referenced here (http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html#setup-the-environment). any help ? thanks

sagarvilas (Tue, 09 Jan 2018 02:53:30 GMT):
getting error while trying https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#manually-generate-the-artifacts 2018-01-09 02:23:43.721 UTC [orderer/common/broadcast] Handle -> WARN f4f Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members 2018-01-09 02:23:43.721 UTC [orderer/main] func1 -> DEBU f50 Closing Broadcast stream 2018-01-09 02:23:43.726 UTC [orderer/common/deliver] Handle -> WARN f51 Error reading from stream: rpc error: code = Canceled desc = context canceled

sagarvilas (Tue, 09 Jan 2018 02:53:30 GMT):
getting error while trying https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#manually-generate-the-artifacts 2018-01-09 02:23:43.721 UTC [orderer/common/broadcast] Handle -> WARN f4f Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members 2018-01-09 02:23:43.721 UTC [orderer/main] func1 -> DEBU f50 Closing Broadcast stream 2018-01-09 02:23:43.726 UTC [orderer/common/deliver] Handle -> WARN f51 Error reading from stream: rpc error: code = Canceled desc = context canceled

Vadim (Tue, 09 Jan 2018 06:20:53 GMT):
@douglasthiel one per channel

rhansharief (Tue, 09 Jan 2018 07:07:24 GMT):
Has joined the channel.

ArnabChatterjee (Tue, 09 Jan 2018 07:12:40 GMT):
I was going through https://github.com/hyperledger/fabric/blob/release/sampleconfig/configtx.yaml and I am not sure what is the significance of each field in this document. Is there any documentation that can clarify the use cases and functionalities of the configuration fields? For example : 1. In what cases should/can I omit creating a consortium 2. What are the differences between Orderer Org and consortium? 3. What is the significance of AdminPrincipal? ( I know its used in Endorsement Policy, but how is an Admin MSP superior that a Member) Thank you very much.

ascatox (Tue, 09 Jan 2018 07:38:44 GMT):
Has joined the channel.

ascatox (Tue, 09 Jan 2018 07:41:25 GMT):
Hi All! I started to build a java library to interact with Fabric using the fabcar network to begin. I registered and successfully enrolled a new user using the ca-server now every kind of transaction on fabric gives me always the same error ` Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority``

ascatox (Tue, 09 Jan 2018 07:42:51 GMT):
I understand the problem arises because I'm using the CA identities and the Cryptogen too. I can use only the CA Server for authentication? Thanks for the help!

markthedark (Tue, 09 Jan 2018 08:45:23 GMT):
Hello, regarding couchDB rich querying, can i force a field to be presented as integer when querying? i got a timestamp saved in some JSONs, but the value is saved as string. Now i want to make some time based queries, using the $lt, $gt on the value..

DRSK (Tue, 09 Jan 2018 12:05:40 GMT):
I got the following error while running ./byfn.sh -m up. Can anyone suggest what could be the issue? Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1

vijay5378 (Tue, 09 Jan 2018 12:41:36 GMT):
I have the following setup - org1 on machine 1 and org2 on machine 2. Both the orgs are on a single channel. I have installed my chaincode on both the machines. The instantiation also goes fine when I instantiate on org1. When I go to org 2 and issue the command: peer chaincode list --instantiated, it throws up an error (The orderer says that it expected the MSP of org1 but got org2). Now, isnt the design supposed to be such that the chaincode should be instantiated only once on the channel? I am able to query on the other machine though!!

niteshsolanki (Tue, 09 Jan 2018 12:49:26 GMT):
Hi @mastersingh24 . Is there any limitations on no. of chaincodes that can be deployed on a single machine? i was able to deploy 1001 CC and run invoke call on first 1000 CC.but when i tried to invoke on 1001'th CC, peer gave connection errror.

mastersingh24 (Tue, 09 Jan 2018 12:49:59 GMT):
There are none from a Fabric perspective

mastersingh24 (Tue, 09 Jan 2018 12:50:14 GMT):
You might need to check the per process file descriptor limit on the host machine

mastersingh24 (Tue, 09 Jan 2018 12:50:27 GMT):
There is also an issue with Docker

mastersingh24 (Tue, 09 Jan 2018 12:50:41 GMT):
It can only support 1023 containers on single bridge network

markthedark (Tue, 09 Jan 2018 12:51:14 GMT):
Hello, i have some issues with richQueries on couchDB. I'm making a query on a JSON object, which is a unix timestamp and if i put $gt: "0" or $lt: "currTimestamp" i get the results, but i try to limit the range using $and ``` "$and": [ { "createTimestamp": { "$gt":"0000000000" } }, { "createTimestamp":{ "$lt":"1515491954" } } ] }``` i get an empty result.. Any ideas what could cause this?

niteshsolanki (Tue, 09 Jan 2018 12:52:39 GMT):
thanks @mastersingh24 . is it possible to create multiple bridge network and deploy more CC's on them?

niteshsolanki (Tue, 09 Jan 2018 12:52:39 GMT):
thanks @mastersingh24 . is it possible to create multiple bridge network and deploy more CC's on them on a single host?

nammn (Tue, 09 Jan 2018 13:19:48 GMT):
Hi guys,Im not sure if i can write things into the worldstate and keep overwriting the value using the same key `api.putState("public", `. Could i still access the change history of the worldstate of "public" in the blockchain per node query? thanks!

antitoine (Tue, 09 Jan 2018 14:02:27 GMT):
@markthedark check the type of the timestamp, need to be an integer (try in the Fauxton interface)

gut (Tue, 09 Jan 2018 14:12:30 GMT):
@nammn At #chaincode-dev level, by using `stub.PutState (,)` function you store the last state in the ledger for that key. Then, you can use `stub.GetState()` to get current state and `stub.GetHistoryForKey()` to get the historical changes for that as an iterator (if the peer allows it).

nammn (Tue, 09 Jan 2018 14:13:23 GMT):
@gut Great, thanks you are my hero of the day!

collins (Tue, 09 Jan 2018 14:13:53 GMT):
Hi. I have this problem whereby when orderer, kafka brokers and zk are restarted, the peer throws this error `Got error {SERVICE_UNAVAILABLE}`. While the orderer this `Rejecting deliver request because of consenter error`. Any idea what the problem might be? Thanks.

markthedark (Tue, 09 Jan 2018 14:14:31 GMT):
@antitoine the timestamp in the go chaincode is the type time.Time because originaly the was an ISO-86** date saved, I started saving the timestamp instead as i thought it would simplify the querying. I'll try with an integer..

gut (Tue, 09 Jan 2018 14:14:59 GMT):
If you need to go deeper in transaction validation, you can check [here](http://hyperledger-fabric.readthedocs.io/en/release/readwrite.html#transaction-validation-and-updating-world-state-using-read-write-set).

antitoine (Tue, 09 Jan 2018 14:18:52 GMT):
@markthedark the `>` and `<` require number (float or int), check in the Fauxton interface, if there are quotes around the timestamp value, is not a number. I use the same query in my app and it works only with number

markthedark (Tue, 09 Jan 2018 14:19:07 GMT):
@antitoine ok, thanx a lot

vijay5378 (Tue, 09 Jan 2018 16:33:44 GMT):
Hi My chaincode gets instantiated. (I have a 2 peer network). When I try peer chaincode list --instantiate I keep getting the error: *_Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to deserialize creator identity, err MSP xyzzy is unknown_*. My docker is at version 17.12

SjirNijssen (Tue, 09 Jan 2018 20:00:42 GMT):
Has joined the channel.

dgale (Tue, 09 Jan 2018 23:55:42 GMT):
Has joined the channel.

italycappuccino (Wed, 10 Jan 2018 01:17:47 GMT):
Has joined the channel.

Ann (Wed, 10 Jan 2018 07:24:45 GMT):
Has joined the channel.

ishwaryak (Wed, 10 Jan 2018 10:01:56 GMT):

error enrolladmin.png

ishwaryak (Wed, 10 Jan 2018 10:02:09 GMT):
cananye solve this error?

DRSK (Wed, 10 Jan 2018 11:21:51 GMT):
I am trying to run ./byfn.sh -m up. But got the following error. The chaincode go file is available in my system in the specified path (ie /home/test/go/src/github.com/chaincode/chaincode_example02/go). Can anyone please suggest any solution? Any help would be very much appreciated. "Error getting chaincode code chaincode: path to chaincode does not exist: /home/test/go/src/github.com/chaincode/chaincode_example02/go"

matrisis (Wed, 10 Jan 2018 12:56:44 GMT):
Has left the channel.

CodeReaper (Wed, 10 Jan 2018 14:15:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rvhEc3sM9fqeZM9cv) @mastersingh24 1023 total? Including the chaincode containers??

CodeReaper (Wed, 10 Jan 2018 14:28:57 GMT):
Any documents or examples on how to implement Intermediate CAs in a fabric network?

joshhw (Wed, 10 Jan 2018 14:56:42 GMT):
I was wondering what occurs if the server decides to be malicious with the endored transaction, would that be a weak point? What if the node server decided not to send out the endorsed proposal transaction?

shkakkad (Wed, 10 Jan 2018 15:49:38 GMT):
Has joined the channel.

vu2xff (Wed, 10 Jan 2018 16:03:36 GMT):
Has joined the channel.

vinay_g (Wed, 10 Jan 2018 20:05:41 GMT):
Has joined the channel.

vinay_g (Wed, 10 Jan 2018 20:09:05 GMT):
need help on chaincode instantiation which is dependent on other go packages like golang/protobuf and pkg/errors. Below is the error i am getting in the peer logs, ```2018-01-10 19:59:42.040 UTC [endorser] simulateProposal -> ERRO 405 failed to invoke chaincode name:"lscc" on transaction 380f014688cb8638b66cc9e9c8c85f1bf06ba062fbb979442483f7e9ae2139be, error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/Loyalty/loyalty.go:15:2: cannot find package "github.com/golang/protobuf/proto" in any of: /opt/go/src/github.com/golang/protobuf/proto (from $GOROOT) /chaincode/input/src/github.com/golang/protobuf/proto (from $GOPATH) /opt/gopath/src/github.com/golang/protobuf/proto chaincode/input/src/Loyalty/loyalty.go:18:2: cannot find package "github.com/pkg/errors" in any of: /opt/go/src/github.com/pkg/errors (from $GOROOT) /chaincode/input/src/github.com/pkg/errors (from $GOPATH) /opt/gopath/src/github.com/pkg/errors```

tkuhrt (Wed, 10 Jan 2018 23:23:39 GMT):
@vinay_g : I just saw this PR that might help answer your question: https://gerrit.hyperledger.org/r/#/c/16591/8/docs/source/chaincode4ade.rst

CodeReaper (Thu, 11 Jan 2018 05:46:46 GMT):
What sort of attributes can we save in a user identity?? Can it be our custom?

waterman808 (Thu, 11 Jan 2018 05:58:46 GMT):
Has joined the channel.

waterman808 (Thu, 11 Jan 2018 06:00:31 GMT):
Hello, everyone! I’m sure someone has already asked this here. Is there a fix for running the first Chaincode tutorial of the Hyperledger Fabric tutorial in a MacOs without getting the error while starting the codechain program?

waterman808 (Thu, 11 Jan 2018 06:00:56 GMT):
The SimpleAsset Chaincode

MuhammadSalah (Thu, 11 Jan 2018 06:43:43 GMT):
@joshhw The SDK collects the proposed transactions, and collects the endorsed signatures; the policy should be flexible enough not to cause any problems in case of malicious nodes.

MuhammadSalah (Thu, 11 Jan 2018 06:45:04 GMT):
@CodeReaper a user identity can be embedded with custom attributes; this was demonstrated by Keith Smith over "Youtube", you can check for "Attribute Based Access Control".

luxus (Thu, 11 Jan 2018 07:36:59 GMT):
Hi all, can I use other consensus algorithms in Fabric, eg: pow, pos,..?

gut (Thu, 11 Jan 2018 09:01:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x4gkAXQJhdtZeMnD8) @luxus In Hyperledger Fabric [no consensus, aka `noops` and BFT consensus](https://github.com/hyperledger-archives/fabric/wiki/Consensus) are in the roadmap at the moment. `noops` is the default option at the moment, as a Simple implementation of BFT is under development AFAIK. You can find more info [at this proposal](https://github.com/hyperledger/fabric/blob/master/proposals/r1/Next-Consensus-Architecture-Proposal.md). Anyway, don't confuse Consensus with ordering service.

ishwaryak (Thu, 11 Jan 2018 09:27:59 GMT):

chaincodejs.png

ishwaryak (Thu, 11 Jan 2018 09:28:03 GMT):
kindly solve this error

mastersingh24 (Thu, 11 Jan 2018 09:56:12 GMT):
@ishwaryak - the app is failing to connect to the eventHub endpoint on the peer. By default it runs on port 7053

ishwaryak (Thu, 11 Jan 2018 10:03:32 GMT):
how to resolve it?

ishwaryak (Thu, 11 Jan 2018 10:14:07 GMT):
@mastersingh24 https://github.com/IBM-Blockchain/marbles/issues/170

ishwaryak (Thu, 11 Jan 2018 10:15:29 GMT):
solution i just find .. but don't know how to fix it

CodeReaper (Thu, 11 Jan 2018 13:50:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5wFoHdCe8HjYPhGLk) @MuhammadSalah is this implementation of Access control possible in fabric 1.0 or is it for 1.1 only??

joshhw (Thu, 11 Jan 2018 14:07:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gJkXQYTrbhRYJBeTm) @MuhammadSalah what if the org in control of the node server decides not to send out the transaction?

MuhammadSalah (Thu, 11 Jan 2018 14:14:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YEoXJRqv8S74wj9gH) @joshhw

MuhammadSalah (Thu, 11 Jan 2018 14:14:12 GMT):
tx is not completed

MuhammadSalah (Thu, 11 Jan 2018 14:15:14 GMT):
which in terms should be no harm done.

CodeReaper (Thu, 11 Jan 2018 14:15:43 GMT):
Is there any limit to the LevelDB database of peer or couchDB database?

MuhammadSalah (Thu, 11 Jan 2018 14:16:29 GMT):
Datalimit; theoritically it is big to good extent on couchdb; it is a nosql db designed for such purpose.

MuhammadSalah (Thu, 11 Jan 2018 14:16:52 GMT):
and it can be archived

MuhammadSalah (Thu, 11 Jan 2018 14:17:14 GMT):
however; notice DB maintains world states for queries

MuhammadSalah (Thu, 11 Jan 2018 14:17:39 GMT):
so at a point of time; some of data can be archived

MuhammadSalah (Thu, 11 Jan 2018 14:18:04 GMT):
blocks prove the authenticity of the transactions

MuhammadSalah (Thu, 11 Jan 2018 14:18:37 GMT):
and you always just need the blockchain to stay safe.

mvaibhavshah (Thu, 11 Jan 2018 14:18:48 GMT):
can we deploy bna file using composer in all peers or specific peers

MuhammadSalah (Thu, 11 Jan 2018 14:18:54 GMT):
the blocks are on peers and orderers

MuhammadSalah (Thu, 11 Jan 2018 14:19:17 GMT):
yes; you do that sir through the connection profile in the JSON.

MuhammadSalah (Thu, 11 Jan 2018 14:19:36 GMT):
just be aware connection profiles are deprecated.

MuhammadSalah (Thu, 11 Jan 2018 14:20:12 GMT):
But the JSON is usually hard coded in Fabric-tools scripts inside fabric-scripts in hlfv1 or hlfv11

yacovm (Thu, 11 Jan 2018 14:20:17 GMT):
what do you mean deprecated ?

MuhammadSalah (Thu, 11 Jan 2018 14:20:25 GMT):
you will find this in the create Admin peer script

yacovm (Thu, 11 Jan 2018 14:20:37 GMT):
in composer?

yacovm (Thu, 11 Jan 2018 14:20:39 GMT):
or in SDK?

MuhammadSalah (Thu, 11 Jan 2018 14:20:46 GMT):
they dont use the concept of connection profile

yacovm (Thu, 11 Jan 2018 14:20:51 GMT):
ah in composer

MuhammadSalah (Thu, 11 Jan 2018 14:20:53 GMT):
in composer sir.

yacovm (Thu, 11 Jan 2018 14:20:54 GMT):
not in SDK right?

MuhammadSalah (Thu, 11 Jan 2018 14:21:34 GMT):
I am just pointing towards what you should take a look at.

MuhammadSalah (Thu, 11 Jan 2018 14:22:10 GMT):
Dont panic, all I am saying CreateConnectionprofile script is doing nothing.

MuhammadSalah (Thu, 11 Jan 2018 14:22:18 GMT):
thats all sir.

MuhammadSalah (Thu, 11 Jan 2018 14:22:37 GMT):
it is all documented

MuhammadSalah (Thu, 11 Jan 2018 14:23:25 GMT):
you can enlist the peer urls in the peers array.

MuhammadSalah (Thu, 11 Jan 2018 14:23:38 GMT):
and you will be connected to multiple peers.

MuhammadSalah (Thu, 11 Jan 2018 14:24:05 GMT):
but it will be hectic if they dont have same admin.

MuhammadSalah (Thu, 11 Jan 2018 14:24:43 GMT):
I have not done it to connect to multiple peers with different admins.

MuhammadSalah (Thu, 11 Jan 2018 14:25:13 GMT):
but realistically, you need 1 peer for development; deployment is you distributed the banana file.

MuhammadSalah (Thu, 11 Jan 2018 14:25:32 GMT):
respective admins start the deployment process

MuhammadSalah (Thu, 11 Jan 2018 14:26:16 GMT):
but this is still sane logic to me.

praveentalari (Thu, 11 Jan 2018 14:32:52 GMT):
Has joined the channel.

praveentalari (Thu, 11 Jan 2018 14:40:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ncRFPMGYGnTqYZDb2) @ga25waq FAB-1788 story is not yet completed. Looks like that feature is not ready yet.

mogamboizer (Thu, 11 Jan 2018 15:07:58 GMT):

Clipboard - January 5, 2018 9-46 PM.png

joshhw (Thu, 11 Jan 2018 15:14:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KW9nhjqJidj58M3YB) @MuhammadSalah couldn't that be considered bad practice if these transactions are good? I'm trying to understand how a multiple org blockchain would operate with node rest services.

MuhammadSalah (Thu, 11 Jan 2018 17:41:23 GMT):
well, I guess you cant hit that rate up to few k tx per sec unless you have a real huge network.

MuhammadSalah (Thu, 11 Jan 2018 17:41:44 GMT):
I never reached that limit; but yes thats an issue

MuhammadSalah (Thu, 11 Jan 2018 17:41:59 GMT):
but in all blockchain frameworks I suppose

MuhammadSalah (Thu, 11 Jan 2018 17:42:08 GMT):
and Fabric has an edge here

vsadriano (Thu, 11 Jan 2018 19:47:29 GMT):
Hi! Is there an app equivalent to CRL on Hyperleger Fabric?

waterman808 (Thu, 11 Jan 2018 19:56:10 GMT):
Hi, guys

waterman808 (Thu, 11 Jan 2018 19:56:57 GMT):
I'm having this problem trying to use the Chaincode tutorial at https://hyperledger-fabric.readthedocs.io/en/release/chaincode4ade.html#testing-new-chaincode

waterman808 (Thu, 11 Jan 2018 19:57:07 GMT):
# CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc 2018-01-11 02:53:20.916 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2018-01-11 02:53:20.916 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... Error starting SimpleAsset chaincode: error sending chaincode REGISTER: EOF

waterman808 (Thu, 11 Jan 2018 19:57:14 GMT):
do you have any idea what it could be?

tkuhrt (Thu, 11 Jan 2018 23:02:03 GMT):
@waterman808 : Are you running 1.1-preview or 1.0.2? My docker images are 1.1-preview. I can recreate your issue. The samples seem to have been updated for 1.0.2. Not sure if that is the problem.

tkuhrt (Thu, 11 Jan 2018 23:02:24 GMT):
I will see if I can recreate with 1.0.2

waterman808 (Thu, 11 Jan 2018 23:04:30 GMT):
1.1.0-preview, you're correct

waterman808 (Thu, 11 Jan 2018 23:04:35 GMT):
REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-ca latest 2736904862db 2 months ago 218MB hyperledger/fabric-ca x86_64-1.1.0-preview 2736904862db 2 months ago 218MB hyperledger/fabric-tools latest c584c20ac82b 2 months ago 1.42GB hyperledger/fabric-tools x86_64-1.1.0-preview c584c20ac82b 2 months ago 1.42GB hyperledger/fabric-couchdb latest 5b8a15e6e972 2 months ago 1.57GB hyperledger/fabric-couchdb x86_64-1.1.0-preview 5b8a15e6e972 2 months ago 1.57GB hyperledger/fabric-kafka latest cf09c5534ef9 2 months ago 1.37GB hyperledger/fabric-kafka x86_64-1.1.0-preview cf09c5534ef9 2 months ago 1.37GB hyperledger/fabric-zookeeper latest ac127485fdc7 2 months ago 1.37GB hyperledger/fabric-zookeeper x86_64-1.1.0-preview ac127485fdc7 2 months ago 1.37GB hyperledger/fabric-orderer latest 2fccc91736df 2 months ago 159MB hyperledger/fabric-orderer x86_64-1.1.0-preview 2fccc91736df 2 months ago 159MB hyperledger/fabric-peer latest 337f3d90b452 2 months ago 165MB hyperledger/fabric-peer x86_64-1.1.0-preview 337f3d90b452 2 months ago 165MB hyperledger/fabric-javaenv latest cd459b218651 2 months ago 1.49GB hyperledger/fabric-javaenv x86_64-1.1.0-preview cd459b218651 2 months ago 1.49GB hyperledger/fabric-ccenv latest 82489d1c11e8 2 months ago 1.35GB hyperledger/fabric-ccenv x86_64-1.1.0-preview 82489d1c11e8 2 months ago 1.35GB hyperledger/fabric-baseos x86_64-0.4.2 6be1916d236d 3 months ago 130MB

waterman808 (Thu, 11 Jan 2018 23:05:58 GMT):
this is where the error occur in my environment:

waterman808 (Thu, 11 Jan 2018 23:05:59 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#terminal-2-build-start-the-chaincode

waterman808 (Thu, 11 Jan 2018 23:06:07 GMT):
the "Terminal 2" part of it

tkuhrt (Thu, 11 Jan 2018 23:06:15 GMT):
me too

tkuhrt (Thu, 11 Jan 2018 23:06:31 GMT):
Trying with 1.0.5 docker images...will let you know if that works shortly

waterman808 (Thu, 11 Jan 2018 23:06:48 GMT):
oh, that is good... means I'm not alone :D

tkuhrt (Thu, 11 Jan 2018 23:11:16 GMT):
@waterman808 : I changed my docker-compose-simple.yaml to pull the 1.0.5 images instead of the latest, and I could get it to work

tkuhrt (Thu, 11 Jan 2018 23:11:38 GMT):
```diff --git a/chaincode-docker-devmode/docker-compose-simple.yaml b/chaincode-docker-devmode/docker-compose-simple.yaml index 7661e0c..2295012 100644 --- a/chaincode-docker-devmode/docker-compose-simple.yaml +++ b/chaincode-docker-devmode/docker-compose-simple.yaml @@ -3,7 +3,7 @@ version: '2' services: orderer: container_name: orderer - image: hyperledger/fabric-orderer + image: hyperledger/fabric-orderer:x86_64-1.0.5 environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=orderer @@ -22,7 +22,7 @@ services: - 7050:7050 peer: container_name: peer - image: hyperledger/fabric-peer + image: hyperledger/fabric-peer:x86_64-1.0.5 environment: - CORE_PEER_ID=peer - CORE_PEER_ADDRESS=peer:7051 @@ -44,7 +44,7 @@ services: cli: container_name: cli - image: hyperledger/fabric-tools + image: hyperledger/fabric-tools:x86_64-1.0.5 tty: true environment: - GOPATH=/opt/gopath @@ -67,7 +67,7 @@ services: chaincode: container_name: chaincode - image: hyperledger/fabric-ccenv + image: hyperledger/fabric-ccenv:x86_64-1.0.5 tty: true environment: - GOPATH=/opt/gopath ```

tkuhrt (Thu, 11 Jan 2018 23:12:36 GMT):
Do you want to check and see if a Jira issue already exists for this one and if not create one (https://jira.hyperledger.org) in the Fabric project?

waterman808 (Thu, 11 Jan 2018 23:13:40 GMT):
Oh, that's great news @tkuhrt ! Is that the patch to correct the script? I'll try it right away

tkuhrt (Thu, 11 Jan 2018 23:15:22 GMT):
It will at least get you working, but with 1.0.5 instead of the 1.1-preview.

tkuhrt (Thu, 11 Jan 2018 23:15:32 GMT):
I don't know why 1.1-preview does not work

tkuhrt (Thu, 11 Jan 2018 23:15:51 GMT):
So really depends on if you need 1.1-preview for what you are doing

krisava (Thu, 11 Jan 2018 23:16:04 GMT):
Has joined the channel.

tkuhrt (Thu, 11 Jan 2018 23:16:13 GMT):
And of course assumes you are working on an x86_64 machine

krisava (Thu, 11 Jan 2018 23:16:28 GMT):
Hi, I am going through on integrating the Chaincode deployed on the "Blockchain instance on IBM cloud" with the "java application sdk". I found few examples, struggling with the user certs/keys to construct the "User/SimpleUser" to get the connectivity to the channel/chaincode. In the "Blockchain instance on IBM cloud", I see the "credentials json" which got various certs for each peer/orders/ca's. So I got confused which one to use, as I see in couple of examples it was mentioned as "xxxx.priv" and I don't see that in that "credentials json". Any help in constructing the "user" and assigning to the "client.setUserContext(user)" is much appreciated. Thanks!

waterman808 (Thu, 11 Jan 2018 23:40:49 GMT):
@tkuhrt it worked! I had to change the peer door to 7051 though, instead of 7052 like the documentation states

waterman808 (Thu, 11 Jan 2018 23:40:51 GMT):
2018-01-11 23:40:15.205 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-01-11 23:40:15.205 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-01-11 23:40:15.205 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-01-11 23:40:15.206 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-01-11 23:40:15.206 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AB2070A6008031A0B08DFEBDFD20510...6D7963631A0A0A0571756572790A0161 2018-01-11 23:40:15.206 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 213AC089D11C2BFE50BE3BFC96BF7AECF68F9FB29EBDD24E3F1B7C6C69AB253F Query Result: 10 2018-01-11 23:40:15.224 UTC [main] main -> INFO 007 Exiting.....

waterman808 (Thu, 11 Jan 2018 23:40:55 GMT):
:))

waterman808 (Thu, 11 Jan 2018 23:41:17 GMT):
thanks for your help! I will check the Jira for this issue, like you asked

tkuhrt (Thu, 11 Jan 2018 23:48:16 GMT):
Great! Thanks, @waterman808

B2BProgrammer (Thu, 11 Jan 2018 23:57:03 GMT):
Has joined the channel.

B2BProgrammer (Thu, 11 Jan 2018 23:59:22 GMT):

Clipboard - January 11, 2018 3:59 PM

B2BProgrammer (Thu, 11 Jan 2018 23:59:40 GMT):
Error while : Installing HyperLedger Fabric platform-specific libraries .. any help to fix this issue . Reference from : http://hyperledger-fabric.readthedocs.io/en/release/samples.html sudo curl -sSL https://goo.gl/byy2Qj | bash -s 1.0.5 Command Use is above

B2BProgrammer (Fri, 12 Jan 2018 00:00:11 GMT):
"sudo usermod -a -G docker bcuser" Ran this command to add user : bcuser to Docker daemon

B2BProgrammer (Fri, 12 Jan 2018 00:00:25 GMT):
Still the same error ..

B2BProgrammer (Fri, 12 Jan 2018 01:00:59 GMT):
@B2BProgrammer : Looks like your user does not have permission to the Docker daemon.

B2BProgrammer (Fri, 12 Jan 2018 01:04:01 GMT):
@tkuhrt : How to verify/check that the user has permission to Docker daemon

B2BProgrammer (Fri, 12 Jan 2018 01:04:19 GMT):
after running "sudo usermod -a -G docker bcuser"

mogamboizer (Fri, 12 Jan 2018 01:06:31 GMT):

Clipboard - January 11, 2018 8:05 PM

luxus (Fri, 12 Jan 2018 01:39:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=as7vPP9sH75LH8cgx) @gut thanks @Tenalia

praveentalari (Fri, 12 Jan 2018 05:21:54 GMT):
docker-compose up --force-recreate -d is losing the previous data. Is that because of peer0.org1.example.com: volumes: /var/run/:/host/var/run/ in docker-compose.yaml ??? How to never lose data?

friends110110 (Fri, 12 Jan 2018 07:54:29 GMT):
What is difference between admincerts and signcerts in hyperledge Fabric msp

terry8956 (Fri, 12 Jan 2018 08:57:44 GMT):
Has joined the channel.

ascatox (Fri, 12 Jan 2018 09:44:01 GMT):
Hi All!!! Someone can help me to understand the *Eventhub*, and give me tutorial or docs about this component!!! Thanks in advance!!!

ptippett (Fri, 12 Jan 2018 11:07:14 GMT):
Has joined the channel.

Vadim (Fri, 12 Jan 2018 13:10:43 GMT):
@B2BProgrammer you need to logout and login after you add your user to the docker group

jmcnevin (Fri, 12 Jan 2018 13:45:10 GMT):
Can someone tell me what this error message is signalling exactly? Only one of my peers is behaving this way: `2018-01-12 13:44:24.122 UTC [blocksProvider] DeliverBlocks -> WARN 167b [lynnhurst] Got error &{SERVICE_UNAVAILABLE}`

VinciRohit (Fri, 12 Jan 2018 16:48:49 GMT):
Has joined the channel.

VinciRohit (Fri, 12 Jan 2018 16:51:43 GMT):
Why are users defined in crypto-config.yaml of Fabric's Build Your Own Network? What's the difference between users and peers in this script?

B2BProgrammer (Fri, 12 Jan 2018 17:37:04 GMT):
@Vadim - thanks, Logout & Login - did work

joaquimpedrooliveira (Fri, 12 Jan 2018 18:45:06 GMT):
Hello, guys! I install and instantiate the chaincode in one peer and it works fine. But when I install and query in another peer from the same Org, I get the following error: `Error: Error endorsing query: rpc error: code = Unknown desc = chaincode error (status: 500, message: {"Error":"Nil amount for j"}) - `. It seems that the entity `j` is not stored in this peer ledger. Does anyone know how to solve this?

MuhammadSalah (Fri, 12 Jan 2018 18:46:30 GMT):
@joaquimpedrooliveira The world state is tracked only for transactions that happened by the peer.

MuhammadSalah (Fri, 12 Jan 2018 18:46:45 GMT):
@joaquimpedrooliveira I mean, the blind transactions are not on the DB I guess.

MuhammadSalah (Fri, 12 Jan 2018 18:47:16 GMT):
@joaquimpedrooliveira However, these tx's are on the blockchain, but it doesn't track the world state of them; because it did not witness them.

MuhammadSalah (Fri, 12 Jan 2018 18:48:12 GMT):
@joaquimpedrooliveira if you find a solution for it; how to get them to rework that thing; I would like to know. I don't know if people deliberately designed it to be that way or it's just a missing piece.

MuhammadSalah (Fri, 12 Jan 2018 18:48:44 GMT):
@joaquimpedrooliveira so if you issue a new transaction while the peer has the chaincode installed, it will track it in the world state DB.

joaquimpedrooliveira (Fri, 12 Jan 2018 18:55:58 GMT):
@MuhammadSalah , thank you for your help! Why do all the peers see the world state in `first-network` sample?

MuhammadSalah (Fri, 12 Jan 2018 18:57:00 GMT):
@joaquimpedrooliveira you mean after the recently joined org scenario?

joaquimpedrooliveira (Fri, 12 Jan 2018 18:57:34 GMT):
I don't know what you mean by "recently joined org"...

MuhammadSalah (Fri, 12 Jan 2018 18:58:01 GMT):
BYFN has a scenario that a new added organization joins the network I think.

joaquimpedrooliveira (Fri, 12 Jan 2018 18:58:14 GMT):
I'm using version 1.0.2

joaquimpedrooliveira (Fri, 12 Jan 2018 18:58:17 GMT):
This one: https://github.com/hyperledger/fabric-samples/blob/v1.0.2/first-network/scripts/script.sh

MuhammadSalah (Fri, 12 Jan 2018 18:58:24 GMT):
okkk let me check

joaquimpedrooliveira (Fri, 12 Jan 2018 18:59:02 GMT):
So, after creating, joining channel, updating anchor peers we have:

MuhammadSalah (Fri, 12 Jan 2018 18:59:07 GMT):
Okay cool, there is something here

MuhammadSalah (Fri, 12 Jan 2018 18:59:12 GMT):
yes yes this includes the org3

MuhammadSalah (Fri, 12 Jan 2018 18:59:19 GMT):
joining channel

MuhammadSalah (Fri, 12 Jan 2018 18:59:26 GMT):
after the transcation

MuhammadSalah (Fri, 12 Jan 2018 18:59:29 GMT):
transaction*

joaquimpedrooliveira (Fri, 12 Jan 2018 19:00:00 GMT):
Org3? I don't see this in the script. Could you tell me the lines?

MuhammadSalah (Fri, 12 Jan 2018 19:01:28 GMT):
I am sorry

MuhammadSalah (Fri, 12 Jan 2018 19:01:29 GMT):
peer3

MuhammadSalah (Fri, 12 Jan 2018 19:01:30 GMT):
:)

MuhammadSalah (Fri, 12 Jan 2018 19:01:34 GMT):
my mistake

MuhammadSalah (Fri, 12 Jan 2018 19:01:37 GMT):
I need to coffee up

MuhammadSalah (Fri, 12 Jan 2018 19:01:38 GMT):
haha

MuhammadSalah (Fri, 12 Jan 2018 19:01:38 GMT):
:D

MuhammadSalah (Fri, 12 Jan 2018 19:01:41 GMT):
Sorry for mislead

MuhammadSalah (Fri, 12 Jan 2018 19:01:47 GMT):
totally my mistake

MuhammadSalah (Fri, 12 Jan 2018 19:02:34 GMT):
Well, anchor peers allow peers to start gossiping

joaquimpedrooliveira (Fri, 12 Jan 2018 19:02:46 GMT):
The sequence I'm trying to reproduce is: 1) Org1-peer0: install chaincode 2) Org2-peer0: install chaincode and instantiate chaincode 3) Org1-peer0: query chaincode initial state 4) Org1-peer0: invoke chaincode 5) Org1-peer2: install and query state. State is updated

MuhammadSalah (Fri, 12 Jan 2018 19:03:04 GMT):
So it works?

joaquimpedrooliveira (Fri, 12 Jan 2018 19:03:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iJmDeHe7TdK47tYJi) @MuhammadSalah No problem :)

MuhammadSalah (Fri, 12 Jan 2018 19:03:37 GMT):
I faced the issue that some peers lose tracking of world state, but usually I workaround it like I tell you

joaquimpedrooliveira (Fri, 12 Jan 2018 19:03:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NFvWo7B6ya6eCkjxQ) @MuhammadSalah The original script, that runs everything on containers on a single machine works fine to me. But I'm running each peer as a container in different machines

joaquimpedrooliveira (Fri, 12 Jan 2018 19:04:05 GMT):
I could not reproduce this example because of this problem

MuhammadSalah (Fri, 12 Jan 2018 19:04:13 GMT):
Aha, well.

joaquimpedrooliveira (Fri, 12 Jan 2018 19:04:16 GMT):
Is this behaviour documented somewhere?

MuhammadSalah (Fri, 12 Jan 2018 19:04:25 GMT):
no I have no idea sorry.

MuhammadSalah (Fri, 12 Jan 2018 19:04:41 GMT):
I just had that behavior before.

MuhammadSalah (Fri, 12 Jan 2018 19:04:49 GMT):
So I shared my experience with you

MuhammadSalah (Fri, 12 Jan 2018 19:04:52 GMT):
at that time

MuhammadSalah (Fri, 12 Jan 2018 19:05:01 GMT):
then I guess I did not care that much to dig deep on it

MuhammadSalah (Fri, 12 Jan 2018 19:05:32 GMT):
but I always have a messy system so I kind of doubt my system too

joaquimpedrooliveira (Fri, 12 Jan 2018 19:06:45 GMT):
I'm using `chaincode_example02` and look how weird: in the same peer, after instantiate, `a` has a value and `b` is `Nil`

joaquimpedrooliveira (Fri, 12 Jan 2018 19:06:45 GMT):
I'm using `chaincode_example02` and look how weird: in the same peer, after instantiate, `b` has a value and `a` is `Nil`

MuhammadSalah (Fri, 12 Jan 2018 19:07:15 GMT):
okay I would suggest

MuhammadSalah (Fri, 12 Jan 2018 19:07:20 GMT):
to clean up your system

MuhammadSalah (Fri, 12 Jan 2018 19:07:26 GMT):
like start fresh

MuhammadSalah (Fri, 12 Jan 2018 19:07:31 GMT):
make sure you run those commands

MuhammadSalah (Fri, 12 Jan 2018 19:07:46 GMT):
docker rmi $(docker images dev-* -q)

MuhammadSalah (Fri, 12 Jan 2018 19:07:49 GMT):
docker network prune -f

MuhammadSalah (Fri, 12 Jan 2018 19:07:56 GMT):
and clean up your system

MuhammadSalah (Fri, 12 Jan 2018 19:08:08 GMT):
of any dev- chaincode images

joaquimpedrooliveira (Fri, 12 Jan 2018 19:08:10 GMT):
Query b: `Query Result: 200` Query a: `Error: Error endorsing query: rpc error: code = Unknown desc = chaincode error (status: 500, message: {"Error":"Nil amount for a"}) - `

MuhammadSalah (Fri, 12 Jan 2018 19:08:17 GMT):
maybe docker is mixing stuff up

MuhammadSalah (Fri, 12 Jan 2018 19:08:22 GMT):
then try to reproduce

MuhammadSalah (Fri, 12 Jan 2018 19:08:26 GMT):
would be a good idea

MuhammadSalah (Fri, 12 Jan 2018 19:09:08 GMT):
if problem persists, then we may start thinking about it

joaquimpedrooliveira (Fri, 12 Jan 2018 19:10:42 GMT):
@MuhammadSalah , thank you very much for your help. I'll try to clean the chaincode containers and reproduce the steps!

MuhammadSalah (Fri, 12 Jan 2018 19:10:51 GMT):
images

MuhammadSalah (Fri, 12 Jan 2018 19:10:53 GMT):
not containers

MuhammadSalah (Fri, 12 Jan 2018 19:10:54 GMT):
:D

joaquimpedrooliveira (Fri, 12 Jan 2018 19:10:57 GMT):
sorry

joaquimpedrooliveira (Fri, 12 Jan 2018 19:10:59 GMT):
images

MuhammadSalah (Fri, 12 Jan 2018 19:11:17 GMT):
it's rmi

joaquimpedrooliveira (Fri, 12 Jan 2018 19:11:17 GMT):
I need to coffee up too :D

MuhammadSalah (Fri, 12 Jan 2018 19:11:18 GMT):
not rm

MuhammadSalah (Fri, 12 Jan 2018 19:11:21 GMT):
hahaha yea yea

MuhammadSalah (Fri, 12 Jan 2018 19:11:27 GMT):
we all need REDBULL AND ESPRESSO :P

MuhammadSalah (Fri, 12 Jan 2018 19:11:43 GMT):
let me know

MuhammadSalah (Fri, 12 Jan 2018 19:11:46 GMT):
I will be on for a while :)

sauravshrestha (Fri, 12 Jan 2018 19:34:15 GMT):
Has joined the channel.

tkuhrt (Sat, 13 Jan 2018 00:30:13 GMT):
@praveentalari : Did you read this on data persistence: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html?highlight=persistent#a-note-on-data-persistence

HandsomeRoger (Sat, 13 Jan 2018 10:23:04 GMT):
How many peers are better? I think more peers is more safe but slow? endorsers、orders、committers

MuhammadSalah (Sat, 13 Jan 2018 14:23:30 GMT):
@HandsomeRoger More peers are better for decentralization, speed of the consensus process is mainly dependent on your endorsement policy! However, we should take into account that expanding the network always comes at a cost; so it's usually other business variables are put into that equation.

kuvelky (Sat, 13 Jan 2018 22:49:08 GMT):
Has joined the channel.

kuvelky (Sat, 13 Jan 2018 22:50:19 GMT):
Need help with signcerts not found error when starting network using docker-compose

kuvelky (Sat, 13 Jan 2018 22:50:21 GMT):
$ CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up Creating network "net_byfn" with the default driver Creating peer0.org2.example.com ... Creating peer1.org1.example.com ... Creating peer1.org2.example.com ... Creating peer0.org1.example.com ... Creating orderer.example.com ... Creating peer1.org1.example.com Creating peer0.org1.example.com Creating orderer.example.com Creating peer1.org2.example.com Creating peer0.org1.example.com ... done Creating cli ... Creating cli ... done Attaching to peer1.org1.example.com, peer1.org2.example.com, peer0.org2.example.com, orderer.example.com, peer0.org1.example.com, cli peer1.org1.example.com | 2018-01-13 21:30:10.251 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer1.org2.example.com | 2018-01-13 21:30:10.991 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer0.org2.example.com | 2018-01-13 21:30:11.775 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory orderer.example.com | panic: Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory orderer.example.com | orderer.example.com | goroutine 1 [running]: peer0.org1.example.com | 2018-01-13 21:30:14.254 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory orderer.example.com | github.com/hyperledger/fabric/orderer/common/performance.init.1() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/performance/utils.go:44 +0x2dd orderer.example.com | github.com/hyperledger/fabric/orderer/common/performance.init() orderer.example.com | :1 +0xac orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.init() orderer.example.com | :1 +0xd2 orderer.example.com | main.init() orderer.example.com | :1 +0x44 peer1.org1.example.com exited with code 1 peer1.org2.example.com exited with code 1 peer0.org2.example.com exited with code 1 peer0.org1.example.com exited with code 1 orderer.example.com exited with code 2

diego88 (Sun, 14 Jan 2018 03:41:20 GMT):
Hi, i have a question. On the sdk there is a file called TestConfig.java. Inside there are some properties like String INTEGRATIONTESTS_ORG =org.hyperledger.fabric.sdktest.integrationtests.org. and some default properties like: defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.mspid", "Org2MSP"); defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.domname", "org2.example.com"); defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.ca_location", "http://localhost:8054"); defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.peer_locations", "peer0.org2.example.com@grpc://localhost:8051,peer1.org2.example.com@grpc://localhost:8056"); defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.orderer_locations", "orderer.example.com@grpc://localhost:7050"); defaultProperty(INTEGRATIONTESTS_ORG + "peerOrg2.eventhub_locations", "peer0.org2.example.com@grpc://localhost:8053, peer1.org2.example.com@grpc://localhost:8058"); if i try to run the network with the example i have no issues, but if i run my own network how i have to modify these integrationtest_org?

diego88 (Sun, 14 Jan 2018 03:41:44 GMT):
sorry wrong channel

chainoid (Sun, 14 Jan 2018 09:32:44 GMT):
Has joined the channel.

MuhammadSalah (Sun, 14 Jan 2018 22:53:04 GMT):
@kuvelky Could you please try running the BYFN scenario first.

MuhammadSalah (Sun, 14 Jan 2018 22:53:35 GMT):
Without assigning anything special, then we will figure out whatever you are trying to do together.

MuhammadSalah (Sun, 14 Jan 2018 22:55:58 GMT):
@diego88 Although, I never worked with the sdks yet in depth; but you only need to do the domain name map to PROTOCOL:IP:PORT maybe check for the pitfalls like grpc or grpcs and that kind of stuff sometimes just be KINKY..

MuhammadSalah (Sun, 14 Jan 2018 22:56:38 GMT):
Assuming you are all on your local host, you can always check for the port mapping from the docker.yaml file you are consuming by docker compose

MuhammadSalah (Sun, 14 Jan 2018 22:56:50 GMT):
Hope everything turns better for you.

kuvelky (Mon, 15 Jan 2018 01:11:30 GMT):
Muhammad Salah - in the byfn scenario, ./byfn.sh -m generate works fine and I get the singncerts folder not found error when starting the network

kuvelky (Mon, 15 Jan 2018 01:11:35 GMT):
yoges@DESKTOP-SQDOR04:/mnt/c/Users/yoges/fabric-samples/first-network$ export CHANNEL_NAME=mychannel yoges@DESKTOP-SQDOR04:/mnt/c/Users/yoges/fabric-samples/first-network$ vi docker-compose-cli.yaml yoges@DESKTOP-SQDOR04:/mnt/c/Users/yoges/fabric-samples/first-network$ yoges@DESKTOP-SQDOR04:/mnt/c/Users/yoges/fabric-samples/first-network$ CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up Creating peer1.org1.example.com ... done Creating cli ... done Creating peer1.org1.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org1.example.com ... Creating cli ... Attaching to peer0.org1.example.com, peer0.org2.example.com, peer1.org2.example.com, orderer.example.com, peer1.org1.example.com, cli peer0.org1.example.com | 2018-01-15 00:59:55.766 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer0.org2.example.com | 2018-01-15 00:59:55.888 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer1.org2.example.com | 2018-01-15 00:59:56.665 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory orderer.example.com | panic: Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory orderer.example.com | peer1.org1.example.com | 2018-01-15 00:59:57.951 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory orderer.example.com | goroutine 1 [running]: orderer.example.com | github.com/hyperledger/fabric/orderer/common/performance.init.1() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/performance/utils.go:44 +0x2dd orderer.example.com | github.com/hyperledger/fabric/orderer/common/performance.init() orderer.example.com | :1 +0xac orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.init() orderer.example.com | :1 +0xd2 orderer.example.com | main.init() orderer.example.com | :1 +0x44 peer0.org2.example.com exited with code 1 peer0.org1.example.com exited with code 1 peer1.org1.example.com exited with code 1 peer1.org2.example.com exited with code 1

MuhammadSalah (Mon, 15 Jan 2018 02:47:50 GMT):
well folder not found is simply you cant mount your folders as a volume.

MuhammadSalah (Mon, 15 Jan 2018 02:48:51 GMT):
you need not re issue the environment variable for docker compose if you have it exported.

MuhammadSalah (Mon, 15 Jan 2018 02:49:26 GMT):
docker yaml doesnt consume channel name; it is already embedded in channel.tx

MuhammadSalah (Mon, 15 Jan 2018 02:49:34 GMT):
byfn needs it only.

MuhammadSalah (Mon, 15 Jan 2018 02:49:41 GMT):
the shell script itself.

MuhammadSalah (Mon, 15 Jan 2018 02:50:07 GMT):
I would also suggest you run all of these in a good path; non root owned and that kind of linux stuff.

kuvelky (Mon, 15 Jan 2018 03:17:23 GMT):
the same folder gets mounted successfully as a volume for ca.example.com. The error occurs for starting Orderer and Peer, The difference is that in CA the absolute path for cert is provided as environment variable. In this case it tries to find the signcerts folder and then the cert, and the error is that it cannot find the folder or cannot find a valid certificate. I have checked the folders, certs and permissions everything seems fine .

vieiramanoel (Mon, 15 Jan 2018 03:50:38 GMT):
@kuvelky I'd like to recommend you to reclone fabric-samples and start process all over again, see if the issue persists

vieiramanoel (Mon, 15 Jan 2018 03:51:01 GMT):
In theory no errors should come up when running byfn environment

MuhammadSalah (Mon, 15 Jan 2018 05:21:03 GMT):
do as vieramonel suggested and keep us updated

MuhammadSalah (Mon, 15 Jan 2018 05:21:43 GMT):
if an issue persists we can have a call and share screen to investigate :)

newlife 1 (Mon, 15 Jan 2018 06:11:30 GMT):
Has joined the channel.

HandsomeRoger (Mon, 15 Jan 2018 08:06:06 GMT):
@MuhammadSalah thanks!

username343 (Mon, 15 Jan 2018 10:00:28 GMT):
has anyone here deployed the hyperledger fabric network on docker swarm

username343 (Mon, 15 Jan 2018 10:00:52 GMT):
I've setup the compose file and network but while instantiating the chaincode i get the following error Error trying to connect to local peer: context deadline exceeded Error starting Simple chaincode: Error trying to connect to local peer: context deadline exceeded

username343 (Mon, 15 Jan 2018 11:05:04 GMT):
hey @Vadim have you ever setup a hyperledger fabric network on docker swarm or multiple hosts using direct processes

Ferdoran (Mon, 15 Jan 2018 12:33:42 GMT):
Hey everybody. Is there a way to persist the data on the ledger? When you stop the network all data on it gets lost.

mirioeggmann (Mon, 15 Jan 2018 13:08:34 GMT):
Has joined the channel.

SurajThapaNTL (Mon, 15 Jan 2018 14:52:40 GMT):
Has joined the channel.

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
Hi All, Can someone please guide me on how to deploy Fabric on multiple machine.

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
Hi All, Can someone please guide me on how to deploy Fabric on multiple machine. For example: Machine: Composer, Fabric-CA, Fabric-Peer1, Fabric-Orderer, Machine Two: Fabric-Peer2

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
@Rapture When I try to instantiate chaincode on peer1 I get error "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050". On both the host VM I have updated /etc/hosts and I can ping orderer.example.com from the host VM. How I ensure that it's also reachable from docker container of Peer1?

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
@Rapture When I try to instantiate chaincode on peer1 I get error "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050". On both the host VM I have updated /etc/hosts and I can ping orderer.example.com from the host VM. How I ensure that it's also reachable from docker container of Peer1?

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
@Rapture When I try to instantiate chaincode on peer1 I get error "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050". On both the host VM I have updated /etc/hosts and I can ping orderer.example.com from the host VM. How I ensure that it's also reachable from docker container of Peer1?

SurajThapaNTL (Mon, 15 Jan 2018 14:53:27 GMT):
@vieiramanoel @Rapture When I try to instantiate chaincode on peer1 I get error "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050". On both the host VM I have updated /etc/hosts and I can ping orderer.example.com from the host VM. How I ensure that it's also reachable from docker container of Peer1?

vieiramanoel (Mon, 15 Jan 2018 15:15:48 GMT):
@SurajThapaNTL this @yacovm 's repository helped me a lot to understand how this process is made: https://github.com/yacovm/fabricDeployment

vieiramanoel (Mon, 15 Jan 2018 15:15:48 GMT):
@SurajThapaNTL this @yacovm 's repository helped me a lot to understand how this process works: https://github.com/yacovm/fabricDeployment

vieiramanoel (Mon, 15 Jan 2018 15:15:48 GMT):
@SurajThapaNTL this @yacovm 's repository helped me a lot to understand how this process works: https://github.com/yacovm/fabricDeployment

Rapture (Mon, 15 Jan 2018 15:31:49 GMT):
@SurajThapaNTL I am struggling to do this also, please let me know if you make any progress. @vieiramanoel I saw this link too a while ago but I didn't quite find out the key difference to deploying it on multiple hosts. Could you perhaps highlight where to get started on deploying it to multiple hosts instead of just one?

vieiramanoel (Mon, 15 Jan 2018 15:40:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rQeogQCgonQGiRE4W) @Rapture on a start make sure that all machines has all certificates, as you keep going on you eventually find out which ones are needed in each machine

vieiramanoel (Mon, 15 Jan 2018 15:40:44 GMT):
next, the networks elements publishes to a port, peers publish to 7051, orderer 7050, and so on

vieiramanoel (Mon, 15 Jan 2018 15:41:22 GMT):
so you need to access that port in that ip using a hostname 'orderer.example.com', 'peer0.org1.example.com' etc

vieiramanoel (Mon, 15 Jan 2018 15:41:51 GMT):
in order to do this is map that ip address into /etc/hosts or if you are in docker enviroment

vieiramanoel (Mon, 15 Jan 2018 15:42:09 GMT):
add a tag `extra_hosts` to your docker compose files

vieiramanoel (Mon, 15 Jan 2018 15:43:24 GMT):
I just understood the process reading line by line from yacov's scripts and it gave me the directions I needed

vieiramanoel (Mon, 15 Jan 2018 15:43:24 GMT):
I only understood the process reading line by line from yacov's scripts and it gave me the directions I needed

Vanitha (Mon, 15 Jan 2018 15:47:45 GMT):
Has joined the channel.

Vanitha (Mon, 15 Jan 2018 15:48:11 GMT):
Hi Team

Vanitha (Mon, 15 Jan 2018 15:49:42 GMT):
I was trying to run curl -sSL https://goo.gl/iX9dek | bash command, it was throwing an error bash: line 1: 404:: command not found

Vanitha (Mon, 15 Jan 2018 15:49:56 GMT):
Can someone help me on this

Vanitha (Mon, 15 Jan 2018 15:51:19 GMT):
I also tried with the link but it is not working, could u please help me to know what is the role of that link and how it is being useful to download docker images and binaries......

vieiramanoel (Mon, 15 Jan 2018 15:52:21 GMT):
you can find all scripts here

vieiramanoel (Mon, 15 Jan 2018 15:52:21 GMT):
https://github.com/hyperledger/fabric/tree/release/scripts

gbodra (Mon, 15 Jan 2018 15:58:55 GMT):
Has left the channel.

Derashe (Mon, 15 Jan 2018 16:10:38 GMT):
Has left the channel.

udaykhambadkone (Mon, 15 Jan 2018 16:30:07 GMT):
Can I manually edit the blockfile_000000 which holds the ledger data? I am testing a scenario where a hacker has gotten into one of the peer nodes and has messed the data. Can the block on that peer node recover when the next transaction/chaincode is executed on a good node

mvaibhavshah (Mon, 15 Jan 2018 18:31:22 GMT):
I am getting following error...I have 1 Org, 1 CA, 2 couchdb and 2 peers ... I have created network card but getting error while composer install ⠼ Installing runtime for business network v10. This may take a minute...E0115 18:27:12.460107055 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0115 18:27:12.461132409 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. ⠦ Installing runtime for business network v10. This may take a minute...E0115 18:27:34.372226506 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0115 18:27:34.373038001 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0115 18:27:34.373996846 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0115 18:27:34.374327504 14177 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. ✖ Installing runtime for business network v10. This may take a minute... Error: Error trying install composer runtime. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Connect Failed Response from attempted peer comms was an error: Error: Connect Failed

Vanitha (Mon, 15 Jan 2018 20:53:12 GMT):
When I am running npm run start-orderer I am getting errors

kgunn (Mon, 15 Jan 2018 20:53:53 GMT):
Has joined the channel.

Vanitha (Mon, 15 Jan 2018 20:54:20 GMT):

Screenshot from 2018-01-15 15-53-56.png

kgunn (Mon, 15 Jan 2018 22:46:52 GMT):
hey there, i was working my way through the fabric samples... currently on the "build your first network" sample

kgunn (Mon, 15 Jan 2018 22:47:37 GMT):
unfortunately, getting an error that looks like the msp identity is failing....says due to "mod_policy" not set

kgunn (Mon, 15 Jan 2018 22:48:16 GMT):

Screen Shot 2018-01-15 at 4.47.49 PM.png

kgunn (Mon, 15 Jan 2018 22:48:43 GMT):
anyone else with this experience ? suggestions?

mastersingh24 (Tue, 16 Jan 2018 03:43:17 GMT):
@kgunn - my guess is that you likely have a mismatch in terms of versions of the tools and the runtime images. When did you download the release binaries / images as well as cloning the samples?

shubhammangla (Tue, 16 Jan 2018 07:01:51 GMT):
Hello everybody. We are planning to use UCP in Docker to make sure the hyperledger fabric peer containers (and orderer containers) are always up and running. To do this, we need a way to check the health of the containers. Has anybody got an insight on how to check if the hyperledger peer/orderer container is up and running?

thammarith (Tue, 16 Jan 2018 07:59:03 GMT):
Has joined the channel.

username343 (Tue, 16 Jan 2018 08:51:24 GMT):
guys, have anyone of you deployed fabric network on docker swarm

username343 (Tue, 16 Jan 2018 08:51:24 GMT):
guys, has anyone of you deployed fabric network on docker swarm

prabvi01 (Tue, 16 Jan 2018 09:32:25 GMT):
while deploying multiorg on multiple vm when i ping the deployed network i got Error trying invoke business network. Error: Failed to receive commit notification for transaction '2dc146af3ca39311c2fbc53511663f05c38578ed2e25d9476cadee876f1f75fe' within the timeout period. But when i see docker logs for peer, the transaction is successful but getting ERRO 1a23 error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled

ascatox (Tue, 16 Jan 2018 11:37:23 GMT):
Hi All! What's the best way and simplest way to install Fabric in a production environment! I know these solutions but are very hard to achieve in my experience https://github.com/yacovm/fabricDeployment and https://github.com/keoja/hyperledger-ansible

ascatox (Tue, 16 Jan 2018 11:37:37 GMT):
Do you know something of different?

vieiramanoel (Tue, 16 Jan 2018 12:57:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWFDqz6y8jPDor7BT) @prabvi01 we are facing same issue, when you find out the solution can you share with me?

vieiramanoel (Tue, 16 Jan 2018 12:57:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWFDqz6y8jPDor7BT) @prabvi01 we are facing same issue, when you find out the solution can you share here?

SurajThapaNTL (Tue, 16 Jan 2018 13:40:57 GMT):
@vieiramanoel @Rapture When I try to instantiate chaincode on peer1 I get error "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050". On both the host VM I have updated /etc/hosts and I can ping orderer.example.com from the host VM. How I ensure that it's also reachable from docker container of Peer1?

username343 (Tue, 16 Jan 2018 13:55:11 GMT):
@SurajThapaNTL are you using docker-compose file version 3

SurajThapaNTL (Tue, 16 Jan 2018 13:58:08 GMT):
@username343 sorry I didn't get the question but I am docker-compose version 1.18.0

username343 (Tue, 16 Jan 2018 13:59:12 GMT):
are you running the network in docker swarm mode, what is the version number in your docker-compose file, with which you are deploying the network?

SurajThapaNTL (Tue, 16 Jan 2018 14:08:12 GMT):
@username343 I am running docker in swarm mode, but when fabric is created it creates the bridge network, I've been following this link https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html but to setup the fabric by editing yaml and script files

SurajThapaNTL (Tue, 16 Jan 2018 14:08:12 GMT):
@username343 I am running docker in swarm mode, but when fabric is created it creates the bridge network, I've been following this link https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html but to setup the fabric by editing yaml and script files I being told that swarm mode is not required and docker container should reach with host ip and port mapping

SurajThapaNTL (Tue, 16 Jan 2018 14:22:28 GMT):
@username343 yes I am using docker-compose file version greater than 3

SurajThapaNTL (Tue, 16 Jan 2018 14:23:07 GMT):
trying to use extra_host in the yaml file now, will keep you posted

username343 (Tue, 16 Jan 2018 14:31:05 GMT):
try to use aliases for peers in network in compose file

username343 (Tue, 16 Jan 2018 14:31:25 GMT):
deploy your stack on overlay network

joaquimpedrooliveira (Tue, 16 Jan 2018 14:35:55 GMT):
Hello, all! Where can I find `OpenSSL` commands to generate the complete Peer MSP certificates? (admincerts, cacerts, keystore, signcerts, tlscerts)

joaquimpedrooliveira (Tue, 16 Jan 2018 14:35:55 GMT):
Hello, all! Where can I find `OpenSSL` commands to generate the all Peer MSP certificates needed? (admincerts, cacerts, keystore, signcerts, tlscerts)

joaquimpedrooliveira (Tue, 16 Jan 2018 14:35:55 GMT):
Hello, all! Where can I find `OpenSSL` commands to generate all Peer MSP certificates needed? (admincerts, cacerts, keystore, signcerts, tlscerts)

SurajThapaNTL (Tue, 16 Jan 2018 14:41:46 GMT):
@username343 sorry just realised that I am using version 2 file of docker compose, any way we can change to version 3 compatible?

kgunn (Tue, 16 Jan 2018 15:04:00 GMT):
@mastersingh24 thanks for the response, i did clone & download all within a few minutes of one another...i perused the versions and went back over the instructions, and i didn't see any red flags....but happy to double check on anything specific

kgunn (Tue, 16 Jan 2018 15:05:08 GMT):
@mastersingh24 altho...i will admit, i'm on a mac and had trouble with the binary download script...my mac ended up prompting me to use brew tap...which i did....so could pathing be an issue?

vieiramanoel (Tue, 16 Jan 2018 15:48:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SD9XvDbzdr3EEGfWq) @SurajThapaNTL at docker-compose file map orderer ip using `extra_hosts` tag

vieiramanoel (Tue, 16 Jan 2018 15:51:14 GMT):
extra_hosts: - "orderer.goledger.com:10.0.0.213" - "peer0.ministerio.org:10.0.0.173" - "peer1.ministerio.org:10.0.0.188" networks: - byfn```

vieiramanoel (Tue, 16 Jan 2018 15:51:14 GMT):
```extra_hosts: - "orderer.goledger.com:10.0.0.213" - "peer0.ministerio.org:10.0.0.173" - "peer1.ministerio.org:10.0.0.188" networks: - byfn```

vieiramanoel (Tue, 16 Jan 2018 15:51:14 GMT):
```extra_hosts: - "orderer.goledger.com:10.0.0.213" - "peer0.ministerio.org:10.0.0.173" - "peer1.ministerio.org:10.0.0.188" networks: - byfn```

vieiramanoel (Tue, 16 Jan 2018 15:51:14 GMT):
```extra_hosts: - "orderer.example.com:10.0.0.213" - "peer0.example.com:10.0.0.173" - "peer1.example.com:10.0.0.188" networks: - byfn```

lucasdf (Tue, 16 Jan 2018 16:50:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWFDqz6y8jPDor7BT) @prabvi01 hey, have you discovered anything on this?

zafartm (Tue, 16 Jan 2018 17:19:41 GMT):
Has joined the channel.

zafartm (Tue, 16 Jan 2018 17:19:50 GMT):
https://chat.hyperledger.org/channel/fabric-sdk-node?msg=MJ8hjARRi9eQYYbtP

lucasdf (Tue, 16 Jan 2018 17:40:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWFDqz6y8jPDor7BT) @prabvi01 so, we faced this same issue and we solved it by setting `CORE_PEER_GOSSIP_USELEADERELECTION=true` to one of our peers.

lucasdf (Tue, 16 Jan 2018 17:40:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWFDqz6y8jPDor7BT) @prabvi01 so, we faced this same issue and we solved it by setting `CORE_PEER_GOSSIP_USELEADERELECTION=true` in one of our peers.

lucasdf (Tue, 16 Jan 2018 17:42:41 GMT):
So, here goes my question: we had two peers and we used `CORE_PEER_GOSSIP_ORGLEADER=true` and `CORE_PEER_GOSSIP_USELEADERELECTION=false` in one of the peers. In the other peer, we set both variables to false. We got some problems with lack of transaction confirmation. In the end, the issue was solved by setting one peer to `CORE_PEER_GOSSIP_ORGLEADER=true` and `CORE_PEER_GOSSIP_USELEADERELECTION=false`, and the other peer to `CORE_PEER_GOSSIP_ORGLEADER=false` and `CORE_PEER_GOSSIP_USELEADERELECTION=true`. So, do we need to set at least one of these options to true? I know that we can't set both to `true`, but is it correct that we can't set both to `false` too?

Vanitha (Tue, 16 Jan 2018 18:10:44 GMT):
I am getting errors while running "npm run create-channel"

Vanitha (Tue, 16 Jan 2018 18:11:00 GMT):

Screenshot from 2018-01-16 13-09-18.png

Vanitha (Tue, 16 Jan 2018 18:11:24 GMT):
Could someone help me on this

tonchtheconch (Tue, 16 Jan 2018 19:49:34 GMT):
Has joined the channel.

blockhash (Tue, 16 Jan 2018 23:22:54 GMT):
Has joined the channel.

SB85 (Tue, 16 Jan 2018 23:31:17 GMT):
Getting error while

SB85 (Tue, 16 Jan 2018 23:33:41 GMT):

Clipboard - January 16, 2018 6:33 PM

SB85 (Tue, 16 Jan 2018 23:34:23 GMT):
Getting Error while starting the fabcar network with chaincode written in Node but while running in go all fine.Can somebody help what is causing issue for Node chaincode.

ga25waq (Tue, 16 Jan 2018 23:48:42 GMT):
Hi! I've got a question regarding chaincode events and could not find any specific answer to it in the documentation: When is a chaincode event triggered? When the chaincode invocation is simulated or when the corresponding transaction is committed to the peers?

MuhammadSalah (Tue, 16 Jan 2018 23:50:42 GMT):
There are several events that are triggered; however the events you specify in your chaincode are triggered whenever the chaincode is invoked either through (query|init|invocation) and goes through program cycle, and reaches event.emit :)

ga25waq (Tue, 16 Jan 2018 23:53:23 GMT):
Thanks @MuhammadSalah! So I need a block event to be sure that a transaction's write-set produced by the invocation of function 1 of chaincode X has been committed to the ledger?

MuhammadSalah (Tue, 16 Jan 2018 23:54:15 GMT):
oh no no thats handled already on fabric protocol.

ga25waq (Tue, 16 Jan 2018 23:55:35 GMT):
Okay, so conceptually speaking, when fabric-sdk-go writes a CCEvent into the subscriber's channel, the corresponding transaction is already committed to the ledger?

ga25waq (Tue, 16 Jan 2018 23:56:02 GMT):
And by channel I mean a channel of golang here.

MuhammadSalah (Wed, 17 Jan 2018 00:39:46 GMT):
yes

ga25waq (Wed, 17 Jan 2018 00:50:19 GMT):
Okay, thank you very much!

chill37 (Wed, 17 Jan 2018 02:04:34 GMT):
Has joined the channel.

prabvi01 (Wed, 17 Jan 2018 04:24:42 GMT):
@lucasdf for deploying hyperledger fabric network using composer do i need to deploy composer per orgs (here in this case i'm using 2 orgs on 2 physical machine) or i setup of composer for all orgs is required? anyone have idea on this?

AlexTheGreat 1 (Wed, 17 Jan 2018 05:00:08 GMT):
Has joined the channel.

underlabs (Wed, 17 Jan 2018 05:42:42 GMT):
Has joined the channel.

zajanksk (Wed, 17 Jan 2018 07:55:08 GMT):
Has joined the channel.

chill37 (Wed, 17 Jan 2018 08:42:12 GMT):
HELP. I accidentally deleted my chaincode go file from CLI (rm -rf xxx) which was linked to my local chaincode folder. I still have chaincode container and peers I have installed the chaincode running. is there a way to retrieve my chaincode file?

mastersingh24 (Wed, 17 Jan 2018 10:03:03 GMT):
@chill37 - you can try to reverse engineer the chaincode package that was installed on the peer(s). I'm a bit tied up now, but maybe you can find some help on the #fabric-peer-endorser-committer channel. Ask if anyone can help extract chaincode source from a chaincode package

chill37 (Wed, 17 Jan 2018 10:08:02 GMT):
@mastersingh24 Thanks for the recommendation. Since I am new to this and need to getting used to this chaincode thing, I decided I would take my time to re-develop my code and try to simplify things to make a neater code. I still appreciate your comment! it's a helpful community =)

DmitryNovenkykh (Wed, 17 Jan 2018 10:14:53 GMT):
Has joined the channel.

DmitryNovenkykh (Wed, 17 Jan 2018 10:22:49 GMT):
Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block return me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF"

DmitryNovenkykh (Wed, 17 Jan 2018 10:22:49 GMT):
Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block return me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF" In balance transfer example no cli running. Shuould i add it and run this there?

DmitryNovenkykh (Wed, 17 Jan 2018 10:22:49 GMT):
Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block return me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF" In balance transfer example no cli running. Shuould i add it and run this there? Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block return me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF" In balance transfer example no cli running. Should i add it and run this there? Ty for for any advise )

DmitryNovenkykh (Wed, 17 Jan 2018 10:22:49 GMT):
Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block returns me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF" In balance transfer example no cli running. Shuould i add it and run this there? Trying to add an org on a fly. Having troubles with first step even. curl -X POST --data-binary @configuration_block.json http://127.0.0.1:7059/protolator/encode/common.Block return me an error: "Warning: Couldn't read data from file "configuration_block.json", this makes Warning: an empty POST. error unmarshaling intermediate JSON: EOF" In balance transfer example no cli running. Should i add it and run this there? Ty for for any advise )

SurajThapaNTL (Wed, 17 Jan 2018 11:24:29 GMT):
Thanks guys @vieiramanoel @username343 @Rapture I was able to setup two peers on separate machines. My setup is single organization with machine 1 = Hyperledger Fabric composer; machine 2 = Peer0 along with CA, Orderer; machine 3 = Peer1. Now I want to add additional peer to exiting network and to same organization, but how do I do it? Any guidance will be much appreciated.

vieiramanoel (Wed, 17 Jan 2018 12:29:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3YSJvgoDDpcGeKbhi) @SurajThapaNTL you'll need to setup fabric-ca to generate certificates for you

boriskazmin (Wed, 17 Jan 2018 12:39:16 GMT):
Has joined the channel.

lozzad (Wed, 17 Jan 2018 13:00:14 GMT):
Has joined the channel.

lozzad (Wed, 17 Jan 2018 13:04:39 GMT):
Hi Folks, am knew to RocketChat and to Hyperledger. Doing a course through Coursera - IBM Hyperledger Foundation for Developers, and having trouble getting my local Fabric instance started. Am in the following section of the course: http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html#install-the-clients-launch-the-network and running the startScript.sh. Getting a bunch of errors and don't know enough to diagnose what's happening. Running this on a MacBook Pro (MacOS 10.13.2). Getting the following errors: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar/go /opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-716576880/000000.o: In function `pluginOpen': /tmp/workdir/go/src/plugin/plugin_dlopen.go:19: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libltdl.a: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Can anyone help please or point me in the right direction?

lozzad (Wed, 17 Jan 2018 13:04:39 GMT):
Hi Folks, am new to RocketChat and to Hyperledger. Doing a course through Coursera - IBM Hyperledger Foundation for Developers, and having trouble getting my local Fabric instance started. Am in the following section of the course: http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html#install-the-clients-launch-the-network and running the startScript.sh. Getting a bunch of errors and don't know enough to diagnose what's happening. Running this on a MacBook Pro (MacOS 10.13.2). Getting the following errors: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar/go /opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-716576880/000000.o: In function `pluginOpen': /tmp/workdir/go/src/plugin/plugin_dlopen.go:19: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libltdl.a: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Can anyone help please or point me in the right direction?

lozzad (Wed, 17 Jan 2018 13:04:39 GMT):
Hi Folks, am new to RocketChat and to Hyperledger. Doing a course through Coursera - IBM Hyperledger Foundation for Developers, and having trouble getting my local Fabric instance started. Am in the following section of the course: http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html#install-the-clients-launch-the-network and running the startScript.sh. Getting a bunch of errors and don't know enough to diagnose what's happening. Running this on a MacBook Pro (MacOS 10.13.2). *Getting the following errors:* Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/fabcar/go /opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-716576880/000000.o: In function `pluginOpen': /tmp/workdir/go/src/plugin/plugin_dlopen.go:19: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libltdl.a: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Can anyone help please or point me in the right direction?

ascatox (Wed, 17 Jan 2018 13:26:39 GMT):
Hi Folks!!! I installed a Fabric instance with 4 peers and couchdb I'm encountering this error in only one peer ` panic: Error during commit to txmgr:Couch DB Error:conflict, Status Code:409, Reason:Document update conflict.`

ascatox (Wed, 17 Jan 2018 13:26:39 GMT):
Hi Folks!!! I installed a Fabric instance with 4 peers and couchdb I'm encountering this error in only one peer ` panic: Error during commit to txmgr:Couch DB Error:conflict, Status Code:409, Reason:Document update conflict.`

ascatox (Wed, 17 Jan 2018 13:26:39 GMT):
Hi Folks!!! I installed a Fabric instance with 4 peers and couchdb I'm encountering this error in only one peer `panic: Error during commit to txmgr:Couch DB Error:conflict, Status Code:409, Reason:Document update conflict.`

ascatox (Wed, 17 Jan 2018 13:26:55 GMT):
Someone knows this error?

boriskazmin (Wed, 17 Jan 2018 13:44:45 GMT):
Hello! I have problems with receiving evenhub events using HFC Node SDK 1.0.2. The issue is not permanent as I recevie event from time to time. Accoding to SDK logs the HFC Eventhub is connected on one side and according to the peer logs - the peer succesfully sends the events. It looks like the event is lost somewhere between the peer and hfc. Would appreciate for any ideas on this. Thank you in advance!

vieiramanoel (Wed, 17 Jan 2018 14:33:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B3NsAq2uWkFd8YFfF) @ascatox remove all containers (including couchdb) and restart network.

ascatox (Wed, 17 Jan 2018 15:39:39 GMT):
Someone knows how to disable TLS Handshake `grpc: Server.Serve failed to complete security handshake from "192.168.56.1:62126": tls: first record does not look like a TLS handshake``

ascatox (Wed, 17 Jan 2018 15:39:46 GMT):
in Fabric ?

jsrhome (Wed, 17 Jan 2018 16:30:39 GMT):
Has joined the channel.

nabilchaabane (Wed, 17 Jan 2018 17:18:58 GMT):
Has joined the channel.

nabilchaabane (Wed, 17 Jan 2018 17:19:11 GMT):
I am not sure if the community is aware of this problem but I tried to run the balance-transfer application under [fabric samples]: https://github.com/hyperledger/fabric-samples. Everything seems to run smoothly. However, when running a query or an invoke operation, the docker container containing the chaincode crashes and gets restarted. You can check it out by running docker ps -a. The status will show that the container had just started. I looked up the logs of the peer that was queried and it seems the problem resides somewhere here: 2018-01-17 07:06:33.654 UTC [container] lockContainer -> DEBU 891 waiting for container(dev-peer0.org1.example.com-mycc-v0) lock 2018-01-17 07:06:33.654 UTC [container] lockContainer -> DEBU 892 got container (dev-peer0.org1.example.com-mycc-v0) lock 2018-01-17 07:06:33.655 UTC [dockercontroller] Start -> DEBU 893 Cleanup container dev-peer0.org1.example.com-mycc-v0 ****2018-01-17 07:06:33.693 UTC [chaincode] processStream -> ERRO 894 Error handling chaincode support stream: rpc error: code = Canceled desc = context canceled**** 2018-01-17 07:06:33.693 UTC [chaincode] deregisterHandler -> DEBU 895 Deregister handler: mycc:v0 2018-01-17 07:06:34.343 UTC [dockercontroller] stopInternal -> DEBU 896 Stopped container dev-peer0.org1.example.com-mycc-v0 2018-01-17 07:06:34.343 UTC [dockercontroller] stopInternal -> DEBU 897 Kill container dev-peer0.org1.example.com-mycc-v0 (API error (409): {"message":"Cannot kill container: dev-peer0.org1.example.com-mycc-v0: Container d818357f76068ab0a9efbf70be9b9a19fd7f6cc7bbe11eaba95c0a61d208ceac is not running"} ) 2018-01-17 07:06:34.459 UTC [dockercontroller] stopInternal -> DEBU 898 Removed container dev-peer0.org1.example.com-mycc-v0 2018-01-17 07:06:34.459 UTC [dockercontroller] Start -> DEBU 899 Start container dev-peer0.org1.example.com-mycc-v0 2018-01-17 07:06:34.459 UTC [dockercontroller] createContainer -> DEBU 89a Create container: dev-peer0.org1.example.com-mycc-v0 2018-01-17 07:06:34.724 UTC [dockercontroller] createContainer -> DEBU 89b Created container: dev-peer0.org1.example.com-mycc-v0-f021beca29998638e0bb7caa7af8fda7f1e709518214a3181d259abcb2347093 Any idea what is going on?

nabilchaabane (Wed, 17 Jan 2018 17:23:52 GMT):
@ascatox Add `CORE_PEER_TLS_ENABLED=false` to your docker file

mvaibhavshah (Wed, 17 Jan 2018 18:15:59 GMT):
started getting error while composer install

mvaibhavshah (Wed, 17 Jan 2018 18:16:00 GMT):
ubuntu@ubuntu-xenial:~/fabric-tools$ composer -version v0.17.0

mvaibhavshah (Wed, 17 Jan 2018 18:16:11 GMT):
ubuntu@ubuntu-xenial:~/fabric-tools$ composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName v9 ✖ Installing runtime for business network v9. This may take a minute... Error: No connection type provided, probably because the connection profile has no 'x-type' property defined. Command failed

armel (Wed, 17 Jan 2018 19:25:47 GMT):
Has joined the channel.

tmenninga (Wed, 17 Jan 2018 19:33:51 GMT):
Has joined the channel.

tmenninga (Wed, 17 Jan 2018 19:40:08 GMT):
Hi everyone! Does anyone know of a Fabric use case that goes into detail about its implementation? Maybe something that has a sample deployment diagram?

armel (Wed, 17 Jan 2018 19:54:33 GMT):
@lozzad I am using linux it is hard for me to have the whole picture of your situation since you are using Mac. But is it normal for you to have those linux paths(for example /opt/go/pkg/tool/linux_amd64/link) in your error message? can you check the startScript.sh file, I can't on linux we have startFabric.sh in fabric-tools as starting point

lozzad (Wed, 17 Jan 2018 21:49:22 GMT):
@armel, yes good point. I assume that these paths are coming from the 'peer0.org1.example.com' Docker container, which is running on 'linux/amd64' ('OS/Arch'). This is also my first experience with Docker containers, so it is not clear to me how to access the 'peer0' container to fix this problem, or even if it is possible to do so...

kgunn (Wed, 17 Jan 2018 22:42:45 GMT):
@armel @lozzad i've a little experience with linux containers...i was about to say you can just ssh in, but did some checking first ;) looks like docker has some built in tools that permit you to tinker with the container https://stackoverflow.com/questions/30172605/how-to-get-into-a-docker-container

nodrunkdriving (Thu, 18 Jan 2018 02:30:54 GMT):
Has joined the channel.

nodrunkdriving (Thu, 18 Jan 2018 02:32:00 GMT):
hi somebody know this error with java sdk

nodrunkdriving (Thu, 18 Jan 2018 02:32:02 GMT):
10:23:52,367 ERROR [fabric.sdk.OrdererClient] Received error on channel mychannel, orderer orderer, url grpc://10.22.31.92:7050, INTERNAL io.grpc.StatusRuntimeException: INTERNAL at io.grpc.Status.asRuntimeException(Status.java:526) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:380) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:419) at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:60) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:493) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$500(ClientCallImpl.java:422) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:525) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:102) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 1503010002 at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85)

nodrunkdriving (Thu, 18 Jan 2018 02:32:25 GMT):
10:23:52,367 ERROR [fabric.sdk.OrdererClient] Received error on channel mychannel, orderer orderer, url grpc://127.0.0.1:7050, INTERNAL io.grpc.StatusRuntimeException: INTERNAL at io.grpc.Status.asRuntimeException(Status.java:526) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:380) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:419) at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:60) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:493) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$500(ClientCallImpl.java:422) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:525) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:102) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 1503010002 at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85)

sudheesh001 (Thu, 18 Jan 2018 05:28:26 GMT):
Has joined the channel.

SurajThapaNTL (Thu, 18 Jan 2018 05:29:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vfoRy52MbgG9upCko) @vieiramanoel I have setup the fabric-ca initially while deploying the fabric. And during initial step I generated certificates for 3rd peer as well using cryptogen - can this certificate be used? Do we have any documentation on how to do it? All I got is how to add a new member or org.

Chalex (Thu, 18 Jan 2018 06:38:13 GMT):
Has joined the channel.

Chalex (Thu, 18 Jan 2018 06:38:19 GMT):
Hi, all. In my chaincode project, I refered the `github.com/miekg/pkcs11" in my chaincode project` and I put it the `vendor` directory. But it seem when the peer node instantiate my chaincode with command like this `GOPATH=/chaincode/input:$GOPATH go build -tags \"\" -ldflags \"-linkmode external -extldflags '-static'\" -o /chaincode/output/chaincode github.my.com/haizi/mychaincode/chaincode/all`, it will report the error ```/opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-738818963/000003.o: In function `GetSessionInfo': /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:184: multiple definition of `GetSessionInfo' /tmp/go-link-738818963/000002.o:/chaincode/input/src/github.ibm.com/haizi/mychaincode/chaincode/all/vendor/github.com/miekg/pkcs11/pkcs11.go:194: first defined here /tmp/go-link-738818963/000003.o: In function `FindObjects': /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:298: multiple definition of `FindObjects' /tmp/go-link-738818963/000002.o:/chaincode/input/src/github.ibm.com/haizi/mychaincode/chaincode/all/vendor/github.com/miekg/pkcs11/pkcs11.go:320: first defined here /tmp/go-link-738818963/000003.o: In function `VerifyRecover': /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:573: multiple definition of `VerifyRecover' /tmp/go-link-738818963/000002.o:/chaincode/input/src/github.ibm.com/haizi/mychaincode/chaincode/all/vendor/github.com/miekg/pkcs11/pkcs11.go:602: first defined here /tmp/go-link-738818963/000003.o: In function `DecryptInit': /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:368: multiple definition of `DecryptInit' /tmp/go-link-738818963/000002.o:/chaincode/input/src/github.ibm.com/haizi/mychaincode/chaincode/all/vendor/github.com/miekg/pkcs11/pkcs11.go:392: first defined here /tmp/go-link-738818963/000003.o: In function `Decrypt': /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:374: multiple definition of `Decrypt' /tmp/go-link-738818963/000002.o:/chaincode/input/src/github.ibm.com/haizi/mychaincode/chaincode/all/vendor/github.com/miekg/pkcs11/pkcs11.go:398: first defined here /tmp/go-link-738818963/000003.o: In function `DigestFinal'```

DmitryNovenkykh (Thu, 18 Jan 2018 07:48:56 GMT):
Hi all. I`m new in fabric. Can fabrc add peer and organisation on a fly in existing network without restarting network?

DmitryNovenkykh (Thu, 18 Jan 2018 07:48:56 GMT):
Hi all. I`m new in fabric. Is it possible in Fabric add peer and organisation on a fly in existing network without restarting network?

DmitryNovenkykh (Thu, 18 Jan 2018 07:48:56 GMT):
Hi all. I`m new in fabric. Is it possible in Fabric add peer and organisation on a fly to existing network without restarting network?

prabvi01 (Thu, 18 Jan 2018 08:22:10 GMT):
@ascatox you need to disable TLS flag in all yaml file which you are running to create a docker container and use grpc and http instead of grpcs and https in connection.json file

prabvi01 (Thu, 18 Jan 2018 08:22:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SxiZhdMrAhE3Z7oMk) @ascatox you need to disable TLS flag in all yaml file which you are running to create a docker container and use grpc and http instead of grpcs and https in connection.json file

lozzad (Thu, 18 Jan 2018 08:32:24 GMT):
@kgunn Thanks! Will check it out. Do you have any insight on the errors that are coming up for me when I try to start Fabric using the shell script?

nodrunkdriving (Thu, 18 Jan 2018 09:04:04 GMT):
@prabvi01 17:03:14,099 ERROR [fabric.sdk.Channel] Bad newest block expected status 200 got 403, Channel mychannel org.hyperledger.fabric.sdk.exception.TransactionException: Bad newest block expected status 200 got 403, Channel mychannel at org.hyperledger.fabric.sdk.Channel.seekBlock(Channel.java:1216) at org.hyperledger.fabric.sdk.Channel.getLatestBlock(Channel.java:1274) at org.hyperledger.fabric.sdk.Channel.getLastConfigIndex(Channel.java:1097) at org.hyperledger.fabric.sdk.Channel.getConfigurationBlock(Channel.java:1028) at org.hyperledger.fabric.sdk.Channel.parseConfigBlock(Channel.java:949) at org.hyperledger.fabric.sdk.Channel.initialize(Channel.java:676) at SimpleChaincode.main(SimpleChaincode.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

nodrunkdriving (Thu, 18 Jan 2018 09:04:45 GMT):
@prabvi01 can you help me?

lexsys (Thu, 18 Jan 2018 09:05:26 GMT):
Hello! I have added the third org to the existing blockchain according to this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html Now I want to grant `org3` permissions to create new channel with `org1`. How can I do this?

lexsys (Thu, 18 Jan 2018 09:08:08 GMT):
@DmitryNovenkykh yes. See the link in my previous message

nodrunkdriving (Thu, 18 Jan 2018 09:22:49 GMT):
order error

nodrunkdriving (Thu, 18 Jan 2018 09:22:58 GMT):
2018-01-18 09:03:14.051 UTC [cauthdsl] func2 -> ERRO f56 Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 0a074f7267314d53501292062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434744434341622b674177494241674951454648677355354d4a395733656f546631577a30777a414b42676771686b6a4f50515144416a427a4d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a455a4d4263474131554543684d5162334a6e4d53356c654746746347786c4c6d4e76625445634d426f474131554541784d54593245750a62334a6e4d53356c654746746347786c4c6d4e7662544165467730784f4441784d5459774d5455794e445a61467730794f4441784d5451774d5455794e445a610a4d467378437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d5259774641594456515148457731540a59573467526e4a68626d4e7063324e764d523877485159445651514444425a425a473170626b4276636d63784c6d56345957317762475575593239744d466b770a457759484b6f5a497a6a3043415159494b6f5a497a6a30444151634451674145572b53656e796c65714731307445702f4572344347694953685349464c3676550a4731574831747937497343485767307641626369487a797a39394b4a50344a6a39592f586a6e6579786238416b68766c376d616479614e4e4d457377446759440a565230504151482f42415144416765414d41774741315564457745422f7751434d4141774b7759445652306a42435177496f4167664e78566f336e7a4c76784f0a694f7157576d6f554e39724d6969554a42704d2b7142324d6c52727172306377436759494b6f5a497a6a3045417749445277417752414967444b6f47637338590a396c52336b6478744637515370763537416f3273424c5255384c464e766461572f636b4349416a6761316743394b49375650554573394e333348667865454e670a79574e546d66474c38772f30666367470a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a

Manish.Sharma (Thu, 18 Jan 2018 09:37:48 GMT):
Has joined the channel.

mastersingh24 (Thu, 18 Jan 2018 10:04:22 GMT):
Looks like you used the wrong identity / cert to sign whichever transaction you sent to the orderer

MohammadObaid (Thu, 18 Jan 2018 10:24:54 GMT):
Hey @mastersingh24 Can any peer alter chaincode after it is initialized or it is read and execute only ?

yacovm (Thu, 18 Jan 2018 10:27:30 GMT):
what do you mean by alter chaincode?

MohammadObaid (Thu, 18 Jan 2018 10:39:45 GMT):
I mean if any peer can maliciously change chaincode parameters from chaincode containers ?

yacovm (Thu, 18 Jan 2018 11:06:04 GMT):
well, it can technically but the chaincode has a way of verifying that if you implement proper logic

yacovm (Thu, 18 Jan 2018 11:06:15 GMT):
the chaincode shim API has a method to get the request

yacovm (Thu, 18 Jan 2018 11:06:17 GMT):
and it's signed

yacovm (Thu, 18 Jan 2018 11:06:31 GMT):
so you can verify whether the peer did something suspicious

ascatox (Thu, 18 Jan 2018 11:17:21 GMT):
Hi All!!! [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M3LNePpnxPZN8fF2L) I've the same error received from my orderer. I'm trying to use the certificate created by the Fabric CA, but I've created all the crypto material using the cryptogen tool. I don't understand the relation between cryptogen and CA Server authorization.

Vanitha (Thu, 18 Jan 2018 11:20:07 GMT):
```error: [Client.js]: TypeError: Cannot read property 'toString' of null at promise.then.then.then (/root/blockchain/hyperledger-fabric-example/node_modules/fabric-client/lib/Client.js:1124:51) at ``` When I am trying to create a channel in hyperledger I am facing the above issue. Can anyone please help me out. Thank you

Devender_Singh (Thu, 18 Jan 2018 11:23:18 GMT):
Has joined the channel.

Ammu (Thu, 18 Jan 2018 13:36:49 GMT):
Has joined the channel.

kgunn (Thu, 18 Jan 2018 15:18:05 GMT):
@lozzad you might check that your fabcar source sample and the binaries you pulled are associated with the same version - b/c it looks like your hitting a linker error on the compile

kgunn (Thu, 18 Jan 2018 15:18:24 GMT):
you might also check the permissions on those .o files?

lozzad (Thu, 18 Jan 2018 15:42:12 GMT):
@kgunn good ideas, thanks! Just checked the version of 'fabcar' (from `package.json`) and it is '1.0.0.' This is the same as the latest one included in `fabric-samples-1.1.0-preview'. Also checked the version in `get-docker-images.sh` in the `bin` directory and that version is `1.1.0-preview` which also corresponds to the latest available. Were those the versions you meant? If not can you point me to the right ones to check? Also, which `.o` files do you recommend I check the permissions on?

lozzad (Thu, 18 Jan 2018 15:42:12 GMT):
@kgunn good ideas, thanks! Just checked the version of 'fabcar' (from `package.json`) and it is '1.0.0.' This is the same as the latest one included in `fabric-samples-1.1.0-preview`. Also checked the version in `get-docker-images.sh` in the `bin` directory and that version is `1.1.0-preview` which also corresponds to the latest available. Were those the versions you meant? If not can you point me to the right ones to check? Also, which `.o` files do you recommend I check the permissions on?

lozzad (Thu, 18 Jan 2018 15:42:12 GMT):
@kgunn good ideas, thanks! Just checked the version of 'fabcar' (from `package.json`) and it is '1.0.0.' This is the same as the latest one included in `fabric-samples-1.1.0-preview`. Also checked the version in `get-docker-images.sh` in the `~/hyperledger/bin` directory and that version is `1.1.0-preview` which also corresponds to the latest available. Were those the versions you meant? If not can you point me to the right ones to check? Also, which `.o` files do you recommend I check the permissions on?

lozzad (Thu, 18 Jan 2018 15:42:12 GMT):
@kgunn good ideas, thanks! Just checked the version of `fabcar` (from `package.json`) and it is `1.0.0.` This is the same as the latest one included in `fabric-samples-1.1.0-preview`. Also checked the version in `get-docker-images.sh` in the `~/hyperledger/bin` directory and that version is `1.1.0-preview` which also corresponds to the latest available. Were those the versions you meant? If not can you point me to the right ones to check? Also, which `.o` files do you recommend I check the permissions on?

Vanitha (Thu, 18 Jan 2018 17:02:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3FHAgqaukdgpf8ZZm) Can anyone help us out, I am facing the same issue from last couple of days. Thank you.

javrevasandeep (Thu, 18 Jan 2018 17:35:46 GMT):
Has joined the channel.

douglasthiel (Thu, 18 Jan 2018 18:09:14 GMT):
Please help if you can, I'm trying to install the node hfc libraries according to [this](https://jimthematrix.github.io/tutorial-node-sdk-indepth.html) on OS X and failing due to a **fatal error: 'tr1/unordered_map' file not found** OS X: 10.13.2 xcode-select version 2349 node —version: v8.9.4 Details on pastebin [here](https://pastebin.com/5FhinEX7)

douglasthiel (Thu, 18 Jan 2018 18:09:14 GMT):
Please help if you can, I'm trying to install the node hfc libraries according to [this](https://jimthematrix.github.io/tutorial-node-sdk-indepth.html) on OS X and failing due to a **fatal error: 'tr1/unordered_map' file not found** OS X: 10.13.2 xcode-select version 2349 node —version: v8.9.4 Details on pastebin [here](https://pastebin.com/5FhinEX7)

douglasthiel (Thu, 18 Jan 2018 18:09:14 GMT):
Please help if you can, I'm trying to install the node hfc libraries according to [this](https://jimthematrix.github.io/tutorial-node-sdk-indepth.html) on OS X and failing due to a **fatal error: 'tr1/unordered_map' file not found** OS X: 10.13.2 xcode-select version 2349 node —version: v8.9.4 Details on pastebin [here](https://pastebin.com/5FhinEX7) This information may be relevant: https://github.com/neubig/lader/issues/5

lozzad (Thu, 18 Jan 2018 18:17:45 GMT):
@kgunn I cleaned out all my images from Docker and then pulled new images and binaries for version `1.0.5` instead of `1.1.0-preview` and now my containers start fine... later will try clearing out the images again and try again with 1.1.0-preview, but will have to wait until I have more time. For now thought the main thing is that it is working. Currently don't know though if it is an error related to v1.1.0-preview, or was perhaps a glitch in the pull process when I did it the first time...?

lozzad (Thu, 18 Jan 2018 18:17:45 GMT):
@kgunn I cleaned out all my images from Docker and then pulled new images and binaries for version `1.0.5` instead of `1.1.0-preview` and now my containers start fine... later will try clearing out the images again and try again with 1.1.0-preview, but will have to wait until I have more time. For now though the main thing is that it is working. Currently don't know though if it is an error related to v1.1.0-preview, or was perhaps a glitch in the pull process when I did it the first time...?

jrosmith (Thu, 18 Jan 2018 19:20:39 GMT):
Has joined the channel.

jrosmith (Thu, 18 Jan 2018 19:21:52 GMT):
@Vanitha it looks like within the node-sdk-client you are getting back a null buffer. i imagine this means the request for the channel creation is bad. try running it again with hfc logs set to debug and also check the peer logs

kgunn (Thu, 18 Jan 2018 20:13:41 GMT):
@lozzad fwiw, i think the docs aren't completely clear about being people watching out for versioning...i've seen others fall into the same trap

username343 (Fri, 19 Jan 2018 04:41:59 GMT):
how do i specify that i require endorsements from multiple peers in an organizations, during instantation using the -P flag

Ammu (Fri, 19 Jan 2018 05:53:50 GMT):
ow to implement marbles into cloud?

Ammu (Fri, 19 Jan 2018 05:53:55 GMT):
how to implement marbles into cloud AWS

username343 (Fri, 19 Jan 2018 07:32:19 GMT):
what is the use of anchor peers in hyperledger fabric

lozzad (Fri, 19 Jan 2018 08:57:19 GMT):
@kgunn, yes I think you might be right there. The version numbers themselves are a little confusing too. `1.1.0-preview` is actually *older* than `1.0.5`... what's going on with that? Does that mean that `1.0.5` will contain fixes that aren't included in `1.1.0-preview`?

lozzad (Fri, 19 Jan 2018 08:57:19 GMT):
@kgunn, yes I think you might be right there. The version numbers themselves are a little confusing too. `1.1.0-preview` is actually *older* than `1.0.5`... what's going on with that? Does that mean that `1.0.5` will contain fixes that aren't included in `1.1.0-preview`? I will try the process again with `1.1.0-preview` as in the instructions and see what happens this time... will report back... :)

lozzad (Fri, 19 Jan 2018 09:35:23 GMT):
@kgunn Just cleaned my environment again, removed containers / images / hfc-key-store / bin /etc. Used the cURL script to download the binaries and images again for `1.1.0-preview` as specified in the instructions. This time it worked without errors! Very strange... Not sure what I missed the first time? Did the images perhaps not download correctly? I assume that I would have been notified of that when I came to try and run the `startFabric.sh` script.... Anyway, main thing is that it's working now. Thanks all for your help! :)

username343 (Fri, 19 Jan 2018 09:35:28 GMT):
hey @lozzad do you know how to setup fabric network on docker swarm

lozzad (Fri, 19 Jan 2018 09:47:39 GMT):
@username343 I haven't done it yet so am not sure of how to do it exactly, however I understand that it is possible. You might find this answer useful, which links to a couple of other questions on StackOverflow: https://developer.ibm.com/answers/questions/404475/setup-multiple-peer-blockchain-on-multiple-hosts/ Good luck with that! Let me know how you get on...

VasilyRebrov (Fri, 19 Jan 2018 10:48:51 GMT):
Has joined the channel.

VasilyRebrov (Fri, 19 Jan 2018 10:52:55 GMT):
Good time of day, dear colleagues! I'm new to fabric, just installed the env and started the hyperledger fabric samples. Building Your first network sample script ./byfn.sh -m up generated following error: 2018-01-19 09:40:51.054 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: ECDD46B7259BD10BD8CF475380594507043C1ED46A30622DEFDBD94F913C9565 Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/chaincode/chaincode_example02/go /opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libdl.a: file not recognized: File format not recognized collect2: error: ld returned 1 exit status

DarshanBc (Fri, 19 Jan 2018 11:20:14 GMT):
Hi Is there any doc to decide hardware requirement for fabric deployment like for x no. of transaction/second this is required?

vsadriano (Fri, 19 Jan 2018 11:50:04 GMT):
Hi! How can I update endorsement policy on a business network?

vsadriano (Fri, 19 Jan 2018 11:50:22 GMT):
Endorsement policy only.

mattdean1 (Fri, 19 Jan 2018 15:28:13 GMT):
Has joined the channel.

mattdean1 (Fri, 19 Jan 2018 15:29:27 GMT):
Hi there,

mattdean1 (Fri, 19 Jan 2018 15:29:27 GMT):
Hi there, I've been reading through the fabric docs and I'm stuck on one architecture point - who owns the orderer nodes? Are they jointly owned by the consortium, one of the member orgs, or a separate entity? Thanks in advance!

jeffgarratt (Fri, 19 Jan 2018 16:09:49 GMT):
@mattdean1 orderers are owned and controlled based upon the membership specification of the orderers group under the orderer system channel. These are distinct from the consortium definitions, though orderer organizations are free to participate in consortiums as any other organization may.

tmenninga (Fri, 19 Jan 2018 16:22:14 GMT):
Hi everyone! Does anyone know of a Fabric use case that goes into detail about its implementation? Maybe something open-source? Maybe something that has a sample deployment diagram? (I'm not sure if this is the right channel to ask this in, I asked it a couple days ago and got no response...)

mattdean1 (Fri, 19 Jan 2018 16:29:32 GMT):
@jeffgarratt thanks for the speedy reply! I understand now how this works in the context of the fabric arch \[\href{http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html?highlight=system%20channel#orderer-system-channel-configuration}{docs page}\]. When setting this up which orgs would you typically give ordering membership to?

mattdean1 (Fri, 19 Jan 2018 16:29:32 GMT):
@jeffgarratt thanks for the speedy reply! I understand now how this works in the context of the fabric arch \href{http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html?highlight=system%20channel#orderer-system-channel-configuration}{docs page}. When setting this up which orgs would you typically give ordering membership to?

mattdean1 (Fri, 19 Jan 2018 16:29:32 GMT):
@jeffgarratt thanks for the speedy reply! I understand now how this works in the context of the fabric arch \[href{http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html?highlight=system%20channel#orderer-system-channel-configuration}{docs page}\]. When setting this up which orgs would you typically give ordering membership to?

mattdean1 (Fri, 19 Jan 2018 16:29:32 GMT):
@jeffgarratt thanks for the speedy reply! I understand now how this works in the context of the fabric arch (http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html?highlight=system%20channel#orderer-system-channel-configuration). When setting this up which orgs would you typically give ordering membership to?

jeffgarratt (Fri, 19 Jan 2018 17:07:35 GMT):
@mattdean1 the orderers are the most critical members of the network, who also have the greatest visibility of all interactions (i.e. across all channels created). With respect to your question, the answer is unfortunately it depends. It depends mostly upon the trust relationship you wish to establish based upon your network, which fabric's flexibility offers a wide spectrum of choices.

mattdean1 (Fri, 19 Jan 2018 17:33:28 GMT):
@jeffgarratt thanks again! that makes sense, from everything I've read so far fabric can serve a very wide variety of use cases

Vanitha (Fri, 19 Jan 2018 17:53:16 GMT):
Setting up the cryptoSuite .. Setting up the keyvalue store .. Creating the admin user context .. Reading the envelope from manually created channel transaction .. Extracting the channel configuration .. Signing the extracted channel configuration .. Sending the request to create the channel .. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/root/BC_sample/hyperledger-fabric-example/node_modules/grpc/src/client.js:65:15)\n at ClientDuplexStream._emitStatusIfDone (/root/BC_sample/hyperledger-fabric-example/node_modules/grpc/src/client.js:271:19)\n at ClientDuplexStream._readsDone (/root/BC_sample/hyperledger-fabric-example/node_modules/grpc/src/client.js:237:8)\n at readCallback (/root/BC_sample/hyperledger-fabric-example/node_modules/grpc/src/client.js:297:12)" (node:17224) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: SERVICE_UNAVAILABLE When I am trying to create a channel by running------------- npm run create-channel, I am getting these errors. Could anyone help me resolve this. Thank you.

cmj (Fri, 19 Jan 2018 23:11:28 GMT):
Has joined the channel.

Brucepark (Sat, 20 Jan 2018 06:16:02 GMT):
Has joined the channel.

Ammu (Sat, 20 Jan 2018 11:53:46 GMT):

chaincode.png

Ammu (Sat, 20 Jan 2018 11:54:05 GMT):
can anyone help for this error

MuhammadSalah (Sat, 20 Jan 2018 23:02:47 GMT):
@Ammu don't run as sudo.

MuhammadSalah (Sat, 20 Jan 2018 23:02:52 GMT):
try npm install

MuhammadSalah (Sat, 20 Jan 2018 23:02:54 GMT):
first

bhavneesh (Sun, 21 Jan 2018 00:54:21 GMT):
Has joined the channel.

Toan2211 (Sun, 21 Jan 2018 07:28:59 GMT):
Has joined the channel.

Toan2211 (Sun, 21 Jan 2018 07:36:27 GMT):
Does anyone know the command to list all the card name like PeerAdmin@hlfv1 and so on?

MuhammadSalah (Sun, 21 Jan 2018 07:39:50 GMT):
composer card list

MuhammadSalah (Sun, 21 Jan 2018 07:39:54 GMT):
@Toan2211

Toan2211 (Sun, 21 Jan 2018 09:10:39 GMT):
@MuhammadSalah Thank you One more thing, how can i use composer with the network i have built in this following tutorial? http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I have succeeded building chaincode in step 2, but i do not know what to do next in step 3: https://www.ibm.com/developerworks/cloud/library/cl-ibm-blockchain-101-quick-start-guide-for-developers-bluemix-trs/index.html Can you give me some advisions or information about this step?

MuhammadSalah (Sun, 21 Jan 2018 12:35:18 GMT):
@Toan2211 you can neglect this step, and fabric CLI

MuhammadSalah (Sun, 21 Jan 2018 12:35:31 GMT):
or just use the client SDKs, I don't know up to your flavor :)

MuhammadSalah (Sun, 21 Jan 2018 12:35:39 GMT):
If you want to invest some effort sure go ahead

MuhammadSalah (Sun, 21 Jan 2018 12:35:55 GMT):
monitoring events can be logged as simple as using wscat

MuhammadSalah (Sun, 21 Jan 2018 12:35:59 GMT):
npm -g install wscat

MuhammadSalah (Sun, 21 Jan 2018 12:36:08 GMT):
use it through

MuhammadSalah (Sun, 21 Jan 2018 12:36:09 GMT):
wscat

MuhammadSalah (Sun, 21 Jan 2018 12:36:15 GMT):
and give it the socket uri

MuhammadSalah (Sun, 21 Jan 2018 12:36:28 GMT):
register enroll members, invoke and bla bla bla

MuhammadSalah (Sun, 21 Jan 2018 12:36:35 GMT):
you can do it through the development CLI :)

MuhammadSalah (Sun, 21 Jan 2018 12:36:42 GMT):
That's if you want to focus on your chaincode

MuhammadSalah (Sun, 21 Jan 2018 12:37:02 GMT):
But on a later stage, you need to build the app that you will give to the clients, so that's the moral of this step :)

MuhammadSalah (Sun, 21 Jan 2018 12:37:21 GMT):
It's not Fabric side D

MuhammadSalah (Sun, 21 Jan 2018 12:37:23 GMT):
:D *

Toan2211 (Sun, 21 Jan 2018 12:44:17 GMT):
@MuhammadSalah thank you ill give it a try

MuhammadSalah (Sun, 21 Jan 2018 12:45:11 GMT):
most welcome get started man good luck

AnandBanik (Mon, 22 Jan 2018 05:40:36 GMT):
hi...can any provide me an example of chaincode where we can get the attributes mentioned during the user registration process

AnandBanik (Mon, 22 Jan 2018 05:40:36 GMT):
hi...can anyone provide me an example of chaincode where we can get the attributes mentioned during the user registration process

AnandBanik (Mon, 22 Jan 2018 05:41:31 GMT):
currently i am using the below code to get name and org

AnandBanik (Mon, 22 Jan 2018 05:41:32 GMT):
var getCreator = func(certificate []byte) (string, string) { data := certificate[strings.Index(string(certificate), "-----") : strings.LastIndex(string(certificate), "-----")+5] block, _ := pem.Decode([]byte(data)) cert, _ := x509.ParseCertificate(block.Bytes) organization := cert.Issuer.Organization[0] commonName := cert.Subject.CommonName logger.Debug("commonName: " + commonName + ", organization: " + organization) organizationShort := strings.Split(organization, ".")[0] return commonName, organizationShort }

AnandBanik (Mon, 22 Jan 2018 05:43:04 GMT):
But cannot find a way to get the values of attributes i use to register the user

AnandBanik (Mon, 22 Jan 2018 05:43:52 GMT):
Using the below Node SDK request

AnandBanik (Mon, 22 Jan 2018 05:43:54 GMT):
https://fabric-sdk-node.github.io/global.html#RegisterRequest__anchor

kapilAtrey (Mon, 22 Jan 2018 07:45:32 GMT):
Can anyone help me in this [ ](https://chat.hyperledger.org/channel/fabric?msg=cMqJoJHund2WtNAwe)

prabvi01 (Mon, 22 Jan 2018 08:56:07 GMT):

error_composer.png

Ammu (Mon, 22 Jan 2018 11:02:30 GMT):
can anyone send medocumentation or website to understand about hyperledger fabrics?

mastersingh24 (Mon, 22 Jan 2018 11:30:36 GMT):
@Ammu - http://hyperledger-fabric.readthedocs.io/en/release/

Ammu (Mon, 22 Jan 2018 11:33:42 GMT):
other than this?

zasamen (Mon, 22 Jan 2018 11:44:11 GMT):
Hi. Could anyone help me. I want to understand how to configure network between two different machines. Is it possible, and what should i learn?

zasamen (Mon, 22 Jan 2018 11:44:11 GMT):
Hi. Could anyone help me? I want to understand how to configure network between two different machines. Is it possible, and what should i learn?

username343 (Mon, 22 Jan 2018 12:52:45 GMT):
@zasamen are you trying to setup fabric network on different machines like doker swarm

zasamen (Mon, 22 Jan 2018 13:00:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=twMmNH3pEBffs2dkC) @username343 i'm trying to find any way to do it. I've read some information about swarm technology. But when i setup my network on swarm, how can i (as a client) be sure that i'm connected to specified organization peer?

Ferdoran (Mon, 22 Jan 2018 13:00:56 GMT):
Hey everyone. I read that hyperledger fabric offers a pluggable consensus mechanism. So far I cannot find any hints about how to switch the consensus mechanism. Are there any documents about it?

zasamen (Mon, 22 Jan 2018 13:13:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=twMmNH3pEBffs2dkC) @username343 I've heard about docker swarm. But i have a question about it: How client can be sure that he connects to certain peer (depending on organization).

zasamen (Mon, 22 Jan 2018 13:13:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=twMmNH3pEBffs2dkC) @username343 I've heard about docker swarm. But i have a question about it: How client can be sure that he connects to certain peer (depending on organization) ?

GavinPacini (Mon, 22 Jan 2018 13:54:51 GMT):
Hi all, quick question. Is the only way to make sure that the orderer cannot see sensitive data is by encrypting data before it goes into "PutState"?

GavinPacini (Mon, 22 Jan 2018 13:54:52 GMT):
Thanks!

AnandBanik (Mon, 22 Jan 2018 14:22:43 GMT):
@zasamen I am also working on something similar...DM me if u want to work on this together

AnandBanik (Mon, 22 Jan 2018 14:26:18 GMT):
@GavinPacini we have encrypted the data in PutState...fabric 1.1.0 has a new encryption library...please refer to https://jira.hyperledger.org/browse/FAB-830 for details

AnandBanik (Mon, 22 Jan 2018 14:27:11 GMT):
this avoids importing extra encryption in chaincode and makes it easier for devs

AnandBanik (Mon, 22 Jan 2018 14:27:11 GMT):
@Ammu Please refer to this video to understand the use-case for fabric https://www.youtube.com/watch?v=EKa5Gh9whgU

DmitryNovenkykh (Mon, 22 Jan 2018 14:46:18 GMT):
Hello! can anyone tell me does balance transfer goes in fabric v1.1? Or its still on 1.02?

Vadim (Mon, 22 Jan 2018 14:52:53 GMT):
@DmitryNovenkykh the master branch should work on 1.1

AkshayJindal (Mon, 22 Jan 2018 15:14:07 GMT):
Hello..Has anyone tried to run `block listener` over composer local fabric network?

vijay5378 (Mon, 22 Jan 2018 16:20:01 GMT):
Is it possible to set a policy on a channel where one org can only read and second org can write and read? If yes, is there any config file that I need to put it in? Can someone point me to any relevant examples?

AnandBanik (Mon, 22 Jan 2018 16:55:42 GMT):
@vijay5378 you can implement it my reading the Org from the users certification and based on that write your chaincode to only allow users from certain org to write

AnandBanik (Mon, 22 Jan 2018 16:55:42 GMT):
@vijay5378 you can implement it my reading the Org from the users certificate and based on that write your chaincode to only allow users from certain org to write

AnandBanik (Mon, 22 Jan 2018 16:58:14 GMT):
@AkshayJindal Not using Composer (not a fan of composer), but you can take a look @ https://github.com/anandbanik/hypermusic as an example

bhavneesh (Mon, 22 Jan 2018 17:02:48 GMT):
Developers needed. Incentives provided in the webpage. https://paeanproject.org

bhavneesh (Mon, 22 Jan 2018 17:13:18 GMT):
Please email me: bhavneesh@vasudacapitalmanagement.com

nickgaski (Mon, 22 Jan 2018 17:20:25 GMT):
@vijay5378 - you could also implement this within the channel configuration block by setting an explicit policy in your `Readers` `Writers` fields

douglasthiel (Mon, 22 Jan 2018 19:54:28 GMT):
Question: Is the [Chaintool](https://fabric-chaintool.readthedocs.io/en/latest/application-development/) still relevant? Is it up to date with the 1.1 release. Asking before I study it.

krisava (Mon, 22 Jan 2018 21:21:13 GMT):
Hi. I am getting the below error while trying to post the transaction from PeerOrg2. Can you please help? 2018-01-22 16:43:27.403 UTC [vscc] Invoke -> WARN 02f Endorsement policy failure for transaction txid=, err: Failed to authenticate policy 2018-01-22 16:43:27.403 UTC [txvalidator] VSCCValidateTxForCC -> ERRO 030 VSCC check failed for transaction txid=, error VSCC error: policy evaluation failed, err Failed to authenticate policy 2018-01-22 16:43:27.403 UTC [txvalidator] Validate -> ERRO 031 VSCCValidateTx for transaction txId = returned error VSCC error: policy evaluation failed, err Failed to authenticate policy 2018-01-22 16:43:27.403 UTC [statevalidator] ValidateAndPrepareBatch -> WARN 032 Block [35] Transaction index [0] marked as invalid by committer. Reason code [10]

udaykhambadkone (Mon, 22 Jan 2018 21:40:19 GMT):
Has anyone tried using a pluggable consensus mechanism for the peer nodes. I want to use some for of BFT on the peer nodes and wanted to know if anyone has tried it in v1.0 of Hyperledger Fabric?

yacovm (Mon, 22 Jan 2018 21:49:45 GMT):
why would you want peers to run BFT?

yacovm (Mon, 22 Jan 2018 21:49:53 GMT):
you need orderers to run BFT, @udaykhambadkone

udaykhambadkone (Mon, 22 Jan 2018 21:52:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tyt4u4XwNPCDHpXf7) @yacovm currently there is no consensus mechanism on the peers I have in my system. I already have orderers running kafka-zookeeper.

yacovm (Mon, 22 Jan 2018 21:52:43 GMT):
you need orderers

yacovm (Mon, 22 Jan 2018 21:52:45 GMT):
for consensu

yacovm (Mon, 22 Jan 2018 21:52:47 GMT):
not peers

udaykhambadkone (Mon, 22 Jan 2018 21:53:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fwu7g82A8Bua5ZwWM) @yacovm I was under the impression that there is consensus on both. So that my peers cannot be compromised

yacovm (Mon, 22 Jan 2018 21:54:03 GMT):
i see....

yacovm (Mon, 22 Jan 2018 21:54:47 GMT):
so no consensus in peers yet, unfortunately.

blockhash (Mon, 22 Jan 2018 23:33:28 GMT):
@here Orderer collects endorsements from application and broadcasts the endorsements to peers for validation and commit. My question here is, how many endorsements an Orderer can collect for a block? what is the limit? where in config we should put this limit?

guoger (Tue, 23 Jan 2018 01:43:24 GMT):
@blockhash just to be precise, client collects signatures from endorsing peers, sends the Tx to orderer, and the block produced is delivered to committing peers, then signatures are checked against `endorsement policy`, R-w set is validated, and eventually committed. By _limit_, I'm assuming you are talking about the endorsement policy, and please refer to the doc here: http://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html

bamboo (Tue, 23 Jan 2018 01:59:00 GMT):
what is system chaincode? somebody can help me?

Ratnakar (Tue, 23 Jan 2018 02:11:03 GMT):
@bamboo http://hyperledger-fabric.readthedocs.io/en/latest/systemchaincode.html#system-chaincode-plugins

rogerso (Tue, 23 Jan 2018 02:33:29 GMT):
Has joined the channel.

prabvi01 (Tue, 23 Jan 2018 04:29:36 GMT):
while deploying multi org in multiple machine i have deployed business network but when i'm trying to ping from VM1 where my orderer and org1 is setup i'm getting Error: Error trying invoke business network. Error: Peer has rejected transaction 'e5132f42894c9058a287751e8be3301beb665b41f1705d1f3944bf1d88355e24' with code ENDORSEMENT_POLICY_FAILURE

prabvi01 (Tue, 23 Jan 2018 04:29:36 GMT):
while deploying multi org in multiple machine i have deployed business network but when i'm trying to ping from VM1 where my orderer and org1 is setup i'm getting Error: Error trying invoke business network. Error: Peer has rejected transaction 'e5132f42894c9058a287751e8be3301beb665b41f1705d1f3944bf1d88355e24' with code ENDORSEMENT_POLICY_FAILURE

blockhash (Tue, 23 Jan 2018 04:44:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GsJrJyy4Dxpww8h4Z) @guoger Thank you @guoger

blockhash (Tue, 23 Jan 2018 04:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b6Kt9gd63yz2D8a8G) so, each transaction will go as one block?

guoger (Tue, 23 Jan 2018 04:52:43 GMT):
@blockhash it depends on your config, namely: ``` # Batch Timeout: The amount of time to wait before creating a batch. BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block. BatchSize: # Max Message Count: The maximum number of messages to permit in a # batch. MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. If the "kafka" OrdererType is # selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the # Kafka brokers to a value that is larger than this one. AbsoluteMaxBytes: 10 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the # preferred max bytes will result in a batch larger than preferred max # bytes. PreferredMaxBytes: 512 KB ```

blockhash (Tue, 23 Jan 2018 05:04:37 GMT):
@guoger ok, this one exists configtx. If I want to change this config(ex. BatchTimeout=10s) after I started network would that need restart network to reflect change?

guoger (Tue, 23 Jan 2018 05:49:53 GMT):
@blockhash no you don't need to restart. You should *reconfigure* the channel, see http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html

Ammu (Tue, 23 Jan 2018 06:06:08 GMT):
front end application what are the things we need to use for hyperledger fabrics

Ammu (Tue, 23 Jan 2018 06:06:09 GMT):
?

javrevasandeep (Tue, 23 Jan 2018 14:10:38 GMT):
Hi guys. can anyone pls help me with create channel issue. I am using 2 orgs with 2 peer and 1 CA each and kafka based ordering service. I have 2 orderers, 3 zookeepers and 4 kafka brokers on on 1st VM. Org1 peers and its CA on 2nd VM. Org2 peers and its CA on 3rd VM. I am invoking all the calls from node-sdk on 4th VM. I am getting error while creating channel error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/bteam/go/src/github.com/hyperledger/fabric-samples-latest/fabric-samples/smartPropertyKafka/node_modules/grpc/src/client.js:65:15)\n at ClientDuplexStream._emitStatusIfDone (/home/bteam/go/src/github.com/hyperledger/fabric-samples-latest/fabric-samples/smartPropertyKafka/node_modules/grpc/src/client.js:271:19)\n at ClientDuplexStream._readsDone (/home/bteam/go/src/github.com/hyperledger/fabric-samples-latest/fabric-samples/smartPropertyKafka/node_modules/grpc/src/client.js:237:8)\n at readCallback (/home/bteam/go/src/github.com/hyperledger/fabric-samples-latest/fabric-samples/smartPropertyKafka/node_modules/grpc/src/client.js:297:12)" [2018-01-23 13:53:26.962] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE when i checked orderer0.example.com logs. I can see the below error transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 172.18.0.9:7050->10.0.1.6:47326: read: connection reset by peer i am sharing my docker-compose files

javrevasandeep (Tue, 23 Jan 2018 14:10:44 GMT):

docker-compose-orderer-kafka-vm1.txt

javrevasandeep (Tue, 23 Jan 2018 14:10:49 GMT):

docker-compose-org1-vm2.txt

javrevasandeep (Tue, 23 Jan 2018 14:10:55 GMT):

docker-compose-org2-vm3.txt

javrevasandeep (Tue, 23 Jan 2018 14:11:01 GMT):

network-config-vm4.txt

blockhash (Tue, 23 Jan 2018 15:41:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DtSubPhj3AsoFKAsC) @guoger awesome, thanks for your time!

vijay5378 (Tue, 23 Jan 2018 15:45:41 GMT):
Thanks. Can you briefly let me know how to do it? Do I need to use configtxlator to go about doing it or is it possible to do the same by changing the configtx.yaml file or some other file?[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MzfHe84LhJjSubkxn) @nickgaski

susmita (Tue, 23 Jan 2018 16:47:52 GMT):
Has joined the channel.

david.medvedev (Tue, 23 Jan 2018 16:55:02 GMT):
Has joined the channel.

nickgaski (Tue, 23 Jan 2018 18:46:43 GMT):
@vijay5378 - I haven't seen a bespoke channel creation where the orgs are scoped to admin/writer/reader upon the initial call to the ordering service. I have to imagine there is a way to customize the yaml file, but I haven't seen a good example. Your best bet is to follow along with the reconfigure tutorial, and in the `Reader` `Writer` groups within your channel definition (bottom half of the JSON, can't remember the header off the top of my head) inject your customized policies. You'll want to use `Type 1` - explicit - as opposed to `Type 3` which is implicit. And then use the MSP identifiers to specify which orgs you want to read/write. I'll find you a snippet where we explicitly define a channel's admins using the MSP identifiers. You can adopt the exact same structure to specify your Readers/Writers

nickgaski (Tue, 23 Jan 2018 21:24:16 GMT):
@rohitadivi - can you be a good soul and help this guy out ^^

rohitadivi (Tue, 23 Jan 2018 21:58:42 GMT):
@vijay5378 - Please refer to this json snippet. as suggested by Nick use the MSP identifiers to specify which orgs you want to read/write https://gist.github.com/rohitadivi/d849b0e115b245f4e797a4c05d446435.

wordforthis (Tue, 23 Jan 2018 22:42:36 GMT):
I'm trying to update a Fabric's system channel (to add an organization) using the Node SDK and configtxlator but not the CLI. According to http://hyperledger-fabric.readthedocs.io/en/v1.0.5/configtxlator.html, the steps are: 1. SDK retrieves latest config 2. configxlator produces human readable version of config 3. User or application edits the config 4. configtxlator is used to compute config update representation of changes to the config 5. SDK submits sign[ature]s and submits config I have steps 2-5 working, but am having trouble with step 1. In the CLI, I could get the config block protobuf like: peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid and then pass that config_block.pb protobuf to the configxlator. But how do I do the equivalant in the Node SDK? There's a "getChannelConfig" function in the Channel class that almost does what I want, but that returns a (promise for a) ConfigEnvelope object, whereas I need a protobuf (that I can pass to configxlator). Is there a way to convert the ConfigEnvelope object to a protobuf? There's a BlockDecoder class that converts protobuf -> JSON object, but I don't see anything for the other way around. I also tried just converting the ConfigEnvelope to JSON using stringify, but got an error about a circular structure. Thanks!

MuhammadSalah (Wed, 24 Jan 2018 00:37:46 GMT):
@wordforthis configtxlator does translation from JSON to profobuf and vice versa.

MuhammadSalah (Wed, 24 Jan 2018 00:39:15 GMT):
curl -X POST --data-binary @config_update_as_envelope.json http://127.0.0.1:7059/protolator/encode/common.Envelope > config_update_as_envelope.pb

MuhammadSalah (Wed, 24 Jan 2018 00:39:19 GMT):
Just like this example.

MuhammadSalah (Wed, 24 Jan 2018 00:40:14 GMT):
I think you should spend more time with configtxlator, I have not done that myself so I can't help further.

Chalex (Wed, 24 Jan 2018 03:00:01 GMT):
Hi, all. Is it possible to query the asset created by other chaincode without invoking `Invokechaincode`?

vijay5378 (Wed, 24 Jan 2018 04:32:35 GMT):
@nickgaski @rohitadivi Thanks a lot... Will try this out. Also there is another design issue - I have two orgs and there is a chaincode that both must agree to. - For e.g.orgA creates a contract. orgB must physically check it and sign it. Currently I create a transaction proposal and get it endorsed by both the peers. Is there a way to limit orgB signing the proposal subject to some criteria. For eg. sign only if order_quantity>100 else do not endorse the proposal.

username343 (Wed, 24 Jan 2018 06:20:50 GMT):
how do we restrict the upgradation of a chaincode without the knowledge of other members of the channel

phal0r (Wed, 24 Jan 2018 06:58:47 GMT):
Has joined the channel.

phal0r (Wed, 24 Jan 2018 07:54:05 GMT):
Hi Guys, we are evaluating Fabric for one of our projects and so far, I really like it. I was making my way through the examples and the documentation and found two interesting features regarding chaincode: - chaincode can trigger events via stub.setEvent - chaincode can call other chaincode Unfortunately, I coulnd't find examples or in-depth documentation describing these features. I found somehow an example which triggers an event, but where is it broadcasted to and how to listen for it in other chaincode. Thanks in advance for your help :)

AshishMishra 1 (Wed, 24 Jan 2018 10:21:43 GMT):
Has joined the channel.

AshishMishra 1 (Wed, 24 Jan 2018 10:22:21 GMT):
Hi, Can anyone tell me how I can remove/blacklist a peer from my n/w? Shutting down the peer service is not in option. I want to do this using the channel admin kind of role.

Vadim (Wed, 24 Jan 2018 10:25:36 GMT):
@AshishMishra 1 https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#generating-a-crl-certificate-revocation-list

AshishMishra 1 (Wed, 24 Jan 2018 10:30:37 GMT):
@Vadim , superb! Thanks.

Ammu (Wed, 24 Jan 2018 10:50:08 GMT):
how to set primary key and foreign key in couch DB

markthedark (Wed, 24 Jan 2018 11:43:35 GMT):
the 'DelState(key string) error' function actually deletes the data from the hyperledger? What about the block in which the state was saved in, isn't it still readable?

markthedark (Wed, 24 Jan 2018 11:43:35 GMT):
the `DelState(key string) error` function actually deletes the data from the hyperledger? What about the block in which the state was saved in, isn't it still readable?

Vadim (Wed, 24 Jan 2018 11:46:07 GMT):
@markthedark the data is deleted from the state, but stays in the history

markthedark (Wed, 24 Jan 2018 11:46:50 GMT):
@Vadim so technically it is still accessible, just not recorded in the current state of the hyperledger state?

markthedark (Wed, 24 Jan 2018 11:46:50 GMT):
@Vadim so technically it is still accessible, just not recorded in the current state of the hyperledger?

Vadim (Wed, 24 Jan 2018 11:47:11 GMT):
yes

markthedark (Wed, 24 Jan 2018 11:48:54 GMT):
ok, thanx.. The thing is, we will be saving some personal data on the BC and we're looking at possibilities if the person requests that their data is to be deleted.

Vadim (Wed, 24 Jan 2018 11:52:36 GMT):
@markthedark the point of blockchain is that the history cannot be deleted, so you should think of some other methods to protect it (hashing, encryption)

markthedark (Wed, 24 Jan 2018 11:53:51 GMT):
yeah, i figure.. ok, thanks, we'll try to figure something out..

username343 (Wed, 24 Jan 2018 12:38:01 GMT):
Hey @vadim i'm trying to use fabric v1.1.0-preview and installing the encc chaincode for checking the encryption & decryption of read/write sets. However i'm getting the error : pacakge not found github.com/hyperledger/fabric/core/chaincode/shim/ext/encshim

username343 (Wed, 24 Jan 2018 12:38:01 GMT):
Hey @Vadim i'm trying to use fabric v1.1.0-preview and installing the encc chaincode for checking the encryption & decryption of read/write sets. However i'm getting the error : pacakge not found github.com/hyperledger/fabric/core/chaincode/shim/ext/encshim

Vadim (Wed, 24 Jan 2018 12:38:43 GMT):
@username343 vendor it

username343 (Wed, 24 Jan 2018 12:38:54 GMT):
where can i find it?

username343 (Wed, 24 Jan 2018 12:38:54 GMT):
where can i find it? i'm not very fluent in go and govendor yet

Vadim (Wed, 24 Jan 2018 12:41:15 GMT):
is it in your gopath somewhere? just copy it to the vendor folder of the chaincode, keeping the full path starting with github.com/

username343 (Wed, 24 Jan 2018 12:41:42 GMT):
i tried to find it in the github repo but i couldn't find it even in the tags/v1.1.0-preview

username343 (Wed, 24 Jan 2018 12:41:52 GMT):
there is ext folder in shim folder but not the enshim

Vadim (Wed, 24 Jan 2018 12:42:24 GMT):
can you build the chaincode on your host?

username343 (Wed, 24 Jan 2018 12:43:07 GMT):
i didn't try to build it on host machine, i'm directly working with docker cli container,

username343 (Wed, 24 Jan 2018 12:43:28 GMT):
but the problem is i couldn't find the folder encshim in the ext folder in the repo

Vadim (Wed, 24 Jan 2018 12:44:53 GMT):
where did you get that example from?

Vadim (Wed, 24 Jan 2018 12:45:02 GMT):
is it https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example?

username343 (Wed, 24 Jan 2018 13:12:19 GMT):
@Vadim i downloaded the fabic v1.1.0-preview images and i found that example the cli container, but i believe that is the source of that example chaincode

username343 (Wed, 24 Jan 2018 13:12:19 GMT):
@Vadim i downloaded the fabic v1.1.0-preview images and i found that example the cli container, but i believe the link that you have mentioned is the source of that example chaincode

javrevasandeep (Wed, 24 Jan 2018 13:28:22 GMT):
Hi Guys. I am using kafka based ordering service network based on node-sdk. I have 2 orderers with kafka and zookeepers on 1st VM, Org1 and its peers and CA on 2nd VM. Org2 and its peers and CA on 3rd VM. and node-sdk client on 4th VM. Though able to connect the network and invokations and query but out of 2 orderers, only first orderer is getting used. Second orderer is not getting used by any peer. I have run 4 different scripts each one for different peer from 4th VM. when checked logs, I am able to see orderer0 is ordering the data trafiic for all of the peers but orderer1 is not getting used. however orderer1 logs are getting updated for each invokation but its not directly ordering the traffic from peers as orderer0 does.

javrevasandeep (Wed, 24 Jan 2018 13:28:46 GMT):
Any idea how to utilize orderer1 to also order the data traffic

javrevasandeep (Wed, 24 Jan 2018 13:29:29 GMT):
I am providing my docker compose files and network-config.json file

javrevasandeep (Wed, 24 Jan 2018 13:30:56 GMT):
VM1

javrevasandeep (Wed, 24 Jan 2018 13:30:58 GMT):
https://hastebin.com/ucisagozub.json

Vadim (Wed, 24 Jan 2018 13:31:58 GMT):
@javrevasandeep and if you stop orderer0?

javrevasandeep (Wed, 24 Jan 2018 13:32:18 GMT):
error service unavailable

username343 (Wed, 24 Jan 2018 13:32:52 GMT):
hey @Vadim do you know where i can find that folder in the repo

Vadim (Wed, 24 Jan 2018 13:33:24 GMT):
@username343 this folder is located where it's supposed to be: https://github.com/hyperledger/fabric/blob/master/examples/chaincode/go/enccc_example/enccc_example.go#L15

username343 (Wed, 24 Jan 2018 13:33:50 GMT):
no, not this one, i'm talking about core/chaincode/shim/ext/encshim

Vadim (Wed, 24 Jan 2018 13:34:11 GMT):
where is that from?

username343 (Wed, 24 Jan 2018 13:35:00 GMT):
i'm getting the error that package not found "github.com/hyperledger/fabric/core/chaincode/shim/ext/encshim" while installing the above chaincode in the cli container of the fabric v1.1.0-preview images

Vadim (Wed, 24 Jan 2018 13:35:30 GMT):
I don't know why it's in your cli, the example from github uses shim/ext/entities

username343 (Wed, 24 Jan 2018 13:36:24 GMT):
yes, the ext/entities folder is present, but the above mentioned folder is present in my import section of the chaincode

username343 (Wed, 24 Jan 2018 13:36:31 GMT):
i'll try to edit the chaincode, thanks

javrevasandeep (Wed, 24 Jan 2018 13:40:00 GMT):
VM1 - https://hastebin.com/axudoluqok.cs VM2 - https://hastebin.com/nigosuhage.cs VM3 - https://hastebin.com/ixihabifig.cs VM4 - https://hastebin.com/suxosidaju.json

javrevasandeep (Wed, 24 Jan 2018 13:40:18 GMT):
I have pasted my docker-compose files

javrevasandeep (Wed, 24 Jan 2018 13:40:40 GMT):
can you just check and let me know is this due to some misconfiguration

javrevasandeep (Wed, 24 Jan 2018 13:42:27 GMT):
configtx.yaml - https://hastebin.com/xorivegone.coffeescript cryptogen.yaml - https://hastebin.com/bexexoweba.pl

Vadim (Wed, 24 Jan 2018 13:42:49 GMT):
@javrevasandeep orderer1.example.com:8050?

Vadim (Wed, 24 Jan 2018 13:42:54 GMT):
why 8050?

javrevasandeep (Wed, 24 Jan 2018 13:43:13 GMT):
actually i have provided in configtx.yaml also the same

Vadim (Wed, 24 Jan 2018 13:43:42 GMT):
hm ok

RobertDiebels (Wed, 24 Jan 2018 13:49:21 GMT):
Has joined the channel.

javrevasandeep (Wed, 24 Jan 2018 13:49:40 GMT):
@Vadim any idea....

Vadim (Wed, 24 Jan 2018 13:50:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KfrR9rYuEpXsMX4Zr) where is this error coming from?

RobertDiebels (Wed, 24 Jan 2018 13:50:59 GMT):
Hey everyone, question. Does anyone know if there are any caveats to use Fabric for a single PeerOrganization instead of multiple?

Vadim (Wed, 24 Jan 2018 13:51:29 GMT):
@RobertDiebels centralized control?

RobertDiebels (Wed, 24 Jan 2018 13:52:28 GMT):
For my use-case that would not be an issue I think. As it's not aiming for consortium capabilities. Would it be an issue if other Orgs wish to join later?

Vadim (Wed, 24 Jan 2018 13:52:51 GMT):
no, but what's the point to use a blockchain if it's centralized?

Vadim (Wed, 24 Jan 2018 13:53:12 GMT):
assuming that only one org will be participating

RobertDiebels (Wed, 24 Jan 2018 13:53:46 GMT):
Decentralized storage I assume.

Vadim (Wed, 24 Jan 2018 13:54:28 GMT):
it's not decentralized in terms of control

Vadim (Wed, 24 Jan 2018 13:54:47 GMT):
if you want redundancy, I'd go for e.g. MongoDB replica set

javrevasandeep (Wed, 24 Jan 2018 13:55:50 GMT):
at node-sdk client

RobertDiebels (Wed, 24 Jan 2018 13:57:01 GMT):
@Vadim for me that would not be an issue. I'm attempting to setup a basic use-case to measure fabric performance.

Vadim (Wed, 24 Jan 2018 13:57:21 GMT):
well for that it does not matter then

Vadim (Wed, 24 Jan 2018 13:57:51 GMT):
perhaps look at https://github.com/hyperledger/fabric-test/tree/master/tools/PTE before you implement something on your own

RobertDiebels (Wed, 24 Jan 2018 13:57:52 GMT):
Just wanted to know if there are any caveats I need to be aware of :P

RobertDiebels (Wed, 24 Jan 2018 13:58:16 GMT):
Ow cool thanks :D

RobertDiebels (Wed, 24 Jan 2018 14:00:22 GMT):
FYI I'm building a Kubernetes resource generator for Fabric based of Luke Chen's work.

RobertDiebels (Wed, 24 Jan 2018 14:00:31 GMT):
So that test setup will come in handy

Vadim (Wed, 24 Jan 2018 14:08:31 GMT):
@javrevasandeep can you provide full log?

javrevasandeep (Wed, 24 Jan 2018 14:08:57 GMT):
full log of orderer0 and orderer1?

Vadim (Wed, 24 Jan 2018 14:09:27 GMT):
first of the node js app

Vadim (Wed, 24 Jan 2018 14:09:37 GMT):
use hastebin

RobertDiebels (Wed, 24 Jan 2018 14:10:55 GMT):
Has left the channel.

AshishMishra 1 (Wed, 24 Jan 2018 14:19:41 GMT):
@Vadim , can you please help here.. I 've some issues with persisting chaincode with Kafka based orderer. I 've data persisted on all dockers. I reboot the system, the dockers are back up and invoke any transaction it works if I use a solo orderer. With all the same comfigurations except the orderer is kafka based, it doesn't work... Is there any additional confguration in the orderer/kafka/peer to handle that? I 'm sure should be a trivial issue but I 'm struggling with it.

AshishMishra 1 (Wed, 24 Jan 2018 14:21:48 GMT):
When chaincodes are not installed.. the peers get connected easily to kafka even after reboot.. but when.. I 've chaincode installed after reboot, it refuses to connect. Here are the logs: [1d1 01-24 14:14:09.84 UTC] [github.com/hyperledger/fabric/orderer/common/deliver] handleStream.processStreamingRPC._AtomicBroadcast_Deliver_Handler.Deliver.Handle -> DEBU Starting new deliver loop [1d2 01-24 14:14:09.84 UTC] [github.com/hyperledger/fabric/orderer/common/deliver] handleStream.processStreamingRPC._AtomicBroadcast_Deliver_Handler.Deliver.Handle -> DEBU Attempting to read seek info message [1d3 01-24 14:14:09.85 UTC] [github.com/hyperledger/fabric/orderer/common/deliver] handleStream.processStreamingRPC._AtomicBroadcast_Deliver_Handler.Deliver.Handle -> WARN [channel: composerchannel] Rejecting deliver request because of consenter error [1d4 01-24 14:14:09.85 UTC] [main] handleStream.processStreamingRPC._AtomicBroadcast_Deliver_Handler.Deliver.func1 -> DEBU Closing Deliver stream [1d5 01-24 14:14:11.39 UTC] [github.com/hyperledger/fabric/orderer/kafka] setupChannelConsumerForChannel.retry.try -> DEBU [channel: composerchannel] Connecting to the Kafka cluster

username343 (Wed, 24 Jan 2018 14:22:29 GMT):
hey @Vadim is there any mechanism, using which i can ensure that a chaincode is querying a specific version of the chaincode by stub.InvokeChaincode() function

username343 (Wed, 24 Jan 2018 14:23:22 GMT):
basically what i'm trying to do is to ensure that a organization doesn't deploy a new version of a chaincode without the consent of other organizations

AshishMishra 1 (Wed, 24 Jan 2018 14:24:23 GMT):
@username343, i think you can pass the version too in the invoke command.

username343 (Wed, 24 Jan 2018 14:24:40 GMT):
i'm doing it through another chaincode

Vadim (Wed, 24 Jan 2018 14:30:54 GMT):
@username343 I guess it's regulated by an instantiation policy... additionally, other orgs need to install the new versions of the chaincode

Vadim (Wed, 24 Jan 2018 14:33:20 GMT):
@AshishMishra 1 you probably need to mount some directories from kafka/zookeeper from containers for persistence

username343 (Wed, 24 Jan 2018 14:40:42 GMT):
@Vadim so signing the chaincode package should do it, i guess, but i'm not clear on how is the instantiation policy enforced

username343 (Wed, 24 Jan 2018 14:41:24 GMT):
i understood the endorsement policy, that the client has to collect the endorsements from the endorsers, but i couldn't find documentation explaining the instantiation policies

username343 (Wed, 24 Jan 2018 14:42:22 GMT):
have you come across documentation where the instantiation policy and how it is enforced, is explained

Vadim (Wed, 24 Jan 2018 14:43:20 GMT):
you pass around the signed CDS (out of band) which only can be instantiated if has enough signatures

username343 (Wed, 24 Jan 2018 14:44:35 GMT):
so if i instantion v1 chaincode with two signature and instation policy requiring those two signatures, the chaincode v2 instantiation will require the instantiation policy to be fulfilled

username343 (Wed, 24 Jan 2018 14:44:35 GMT):
so if i instantiate v1 chaincode with two signature and instantiation policy requiring those two signatures, the chaincode v2 instantiation will require the instantiation policy to be fulfilled

username343 (Wed, 24 Jan 2018 14:44:44 GMT):
is that how its gonna work

javrevasandeep (Wed, 24 Jan 2018 14:45:46 GMT):
@vadim I am facing this issue intermittently. Now when i tried to reproduce, its getting connected to both orderers. However i want to have control based access like org1 can access orderer0 and org2 can access orderer1. Is this possible?

markthedark (Wed, 24 Jan 2018 14:45:57 GMT):
hello, i'm using couchDB and need to set some indexes on elements in json. i managed to do it using the Project Fauxton, but i'm not sure how to do it or via chaincode when saving the json or later using the SDK?

Vadim (Wed, 24 Jan 2018 14:46:05 GMT):
@username343 http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#packaging

Vadim (Wed, 24 Jan 2018 14:46:37 GMT):
@javrevasandeep not sure [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ewz7Kf7795iteFyQn)

username343 (Wed, 24 Jan 2018 14:46:38 GMT):
thanks @Vadim

username343 (Wed, 24 Jan 2018 14:47:55 GMT):
if anyone comes across the problem where, while working with the example chaincode enccc in fabric images v1.1.0-preview the encshim is not found, you can change the chaincode with the following chaincode https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example and make sure you also get the utils.go file

username343 (Wed, 24 Jan 2018 14:49:15 GMT):
i think current images were built 2 months ago, after which the modifications to the sample chaincode were made

wordforthis (Wed, 24 Jan 2018 14:57:45 GMT):
I asked above how to get a config block protobuf using the Node SDK. In other words I want to do this: peer channel fetch config config_block.pb -o 127.0.0.1:7050 -c testchainid but use the Node SDK instead of the CLI. What I'm ultimately looking for is a way to get the config block JSON, and so my plan (as specified in the configtxlator documentation) is to get the config block protobuf and then use configtxlator to convert it to JSON. I can use Channel::getChannelConfig to get the corresponding ConfigEnvelope object, but then I need to convert that ConfigEnvelope object to a protobuf. @MuhammadSalah suggested using configxlator for that, but in order to do that I would need to already have a JSON representation of it. I tried using JSON.stringify to convert the ConfigEnvelope object to JSON, but it gives me an error about not being able to convert a circular structure. The configtxlator documentation clearly says that first two steps for modifying a channel are "1. SDK retrieves latest config; 2. configxlator produces human readable version of config". Presumably step 2 means to use configtxlator to convert the config protobuf to JSON, which means step 1 should be producing a protobuf. Does anybody have any other suggestions on how to do use the Node SDK to get this protobuf? Thanks!

Vadim (Wed, 24 Jan 2018 14:59:14 GMT):
@wordforthis https://fabric-sdk-node.github.io/Channel.html#getChannelConfig__anchor?

AshishMishra 1 (Wed, 24 Jan 2018 15:19:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WyPJjgBfQLKGQrJwf) @Vadim Yeah already done that. .

wordforthis (Wed, 24 Jan 2018 15:21:23 GMT):
Thanks @Vadim. But getChannelConfig returns a (promise for a) ConfigEnvelope object. How do I convert that to JSON? I've tried converting it directly using stringify, but that doesn't work. I think what I'm supposed to do is convert it to a protobuf and pass that protobuf to configtxlator, but how do I convert from a ConfigEnvelope object to a protobuf?

Vadim (Wed, 24 Jan 2018 15:24:17 GMT):
@wordforthis http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html#start-the-configtxlator-server

wordforthis (Wed, 24 Jan 2018 15:34:11 GMT):
Thanks @Vadim . I want to use the Node SDK instead of the CLI. One of the steps on that page is: peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA That uses the CLI to get the config block protobuf. How do I use the Node SDK to get the config block protobuf instead? Channel::getChannelConfig seems like it gets the right information but in the wrong format, as it doesn't return a protobuf.

Vadim (Wed, 24 Jan 2018 15:37:02 GMT):
@wordforthis this is the method https://github.com/hyperledger/fabric-sdk-node/blob/master/fabric-client/lib/Channel.js#L600

Vadim (Wed, 24 Jan 2018 15:37:13 GMT):
I'm not sure what you need

wordforthis (Wed, 24 Jan 2018 16:01:13 GMT):
@Vadim I'm trying to write a node.js program to update a channel. Since I'm doing this programatically, it makes more sense (maybe only to me?) to use the Node SDK instead of the CLI. So I'm trying to "convert" all of the CLI commands in the channel_update documentation you referenced into javascript (Node SDK). For the most part I've been successful; the only step I'm having trouble with is the one I mentioned above -- getting the config block protobuf (which I'll then pass onto the configtxlator, modify the resulting json, convert it back to a protobuf, compute the update, and sign/submit it). I'll have to play around with the getChannelConfig code you pointed me to, but it looks like that function basically gets the protobuf and then decodes it at the very end and returns the decoded object. In that case I guess I could create a nearly duplicate function except that it skips doing the decode? If I have that right, maybe it would be a good idea for the SDK to expose an additional getChannelConfigProto function that returns the protobuf, and then have getChannelConfig simply call that function and then do the decode? It seems like anybody who wants to modify a channel using the Node SDK would have use for that, and having them duplicate 100+ lines from the SDK itself can't be the right way to go. Does that make sense, or maybe I'm not doing things the way I'm supposed to?

vijay5378 (Wed, 24 Jan 2018 16:05:55 GMT):
I have two orgs and there is a chaincode that both must agree to. - For e.g.orgA creates a contract. orgB must physically check it and sign it. Currently I create a transaction proposal and get it endorsed by both the peers. Is there a way to limit orgB signing the proposal subject to some criteria. For eg. sign only if order_quantity>100 else do not endorse the proposal.

jeffgarratt (Wed, 24 Jan 2018 16:36:45 GMT):
@vijay5378 this could be a logical test within the contract itself

DusanKovacevic (Wed, 24 Jan 2018 16:44:22 GMT):
Has joined the channel.

kgunn (Wed, 24 Jan 2018 18:35:43 GMT):
hiya, so i had trouble with the fabric sample "first network" (fabcar worked fine)....so walking back through instrutions/prereqs - got to wondering on the note "node.js 7 not supported, but requires 6 or greater" - i presume this means version 8 node.js _is_ supported ?

kgunn (Wed, 24 Jan 2018 18:52:23 GMT):
User User_1 added by kgunn.

kgunn (Wed, 24 Jan 2018 18:55:31 GMT):
hmmm, so just redid all the setup steps...now byfn works for me if i use "go" but not "node"

kgunn (Wed, 24 Jan 2018 18:55:48 GMT):
fails with 2018-01-24 18:53:43.974 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 2E76C7BAD7BBEE2CC303B448D208F7CB817EB917A3490BF7D3847830718A66D3 Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application/Org1MSP at version 0, but got version 1 Usage: peer channel create [flags]

kgunn (Wed, 24 Jan 2018 19:02:31 GMT):
so to use node, do i have to separately install fabric-shim? (which the install of that seems to be failing)

kgunn (Wed, 24 Jan 2018 19:09:33 GMT):
nvmd - i feel stupid - i left my original network up, that's why node was failing....

mastersingh24 (Thu, 25 Jan 2018 08:40:09 GMT):
happens to me all the time (https://chat.hyperledger.org/channel/fabric-questions?msg=7nrKCFxHNWshHeu4A) @kgunn

chill37 (Thu, 25 Jan 2018 09:21:56 GMT):
hi. I'm really not sure when anchor peer does its work. After RW set is endorsed and ordering service puts it into a block, doesn't all the peers get the blocks from the ordering service? what circumstance would you need an anchor peer?

RobertDiebels (Thu, 25 Jan 2018 11:45:26 GMT):
Has joined the channel.

DusanKovacevic (Thu, 25 Jan 2018 17:22:14 GMT):
First, remove any pre-existing containers, as it may conflict with commands in this tutorial: $ docker rm -f $(docker ps -aq)

DusanKovacevic (Thu, 25 Jan 2018 17:22:23 GMT):
So when i do this it says

DusanKovacevic (Thu, 25 Jan 2018 17:22:40 GMT):
"docker rm" requires at least 1 argument.

DusanKovacevic (Thu, 25 Jan 2018 17:23:11 GMT):
Oh sorry i see it now

DusanKovacevic (Thu, 25 Jan 2018 17:24:26 GMT):
Or no, I don't see it :D

DusanKovacevic (Thu, 25 Jan 2018 17:27:36 GMT):
Nvm just did docker ps and there are no running

vieiramanoel (Thu, 25 Jan 2018 19:05:26 GMT):
When trying to create channel orderer returns this error ```orderer.goledger.com | 2018-01-25 18:55:56.090 UTC [cauthdsl] func2 -> ERRO 6a4 Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.ministerio.org")) for identity ```

vieiramanoel (Thu, 25 Jan 2018 19:05:35 GMT):
and I can't find out what is the problem

vieiramanoel (Thu, 25 Jan 2018 19:06:10 GMT):
I've generated orderer,peers and admin certs

vieiramanoel (Thu, 25 Jan 2018 19:06:25 GMT):
created channel-artifacts

vieiramanoel (Thu, 25 Jan 2018 19:06:48 GMT):
but at the time I try to create a channel I get this error at orderer

vieiramanoel (Thu, 25 Jan 2018 19:06:59 GMT):
using `peer channel create -o orderer.goledger.com:7050 -c mychannel -f channel-artifacts/channel.tx --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem`

george.skrbic (Thu, 25 Jan 2018 21:02:18 GMT):
Has joined the channel.

zajanksk (Fri, 26 Jan 2018 00:28:49 GMT):
hi everyone, i have a question. I'm doing Fabric Tutorial provided by Fabric Doc. Here is my question, Whenever I stop containers with

zajanksk (Fri, 26 Jan 2018 00:30:43 GMT):
'./byfn.sh -m down; and restart contatiners, have to do all procedure? like 'enviroment variables setting. create & join channel

zajanksk (Fri, 26 Jan 2018 00:42:11 GMT):
when i stop container and restart, it look like there is no chaincode deployed previously

vieiramanoel (Fri, 26 Jan 2018 01:54:03 GMT):
when you down byfn everything is cleaned

vieiramanoel (Fri, 26 Jan 2018 01:54:23 GMT):
ppl, ```peer0.ministerio.org | panic: listen tcp 192.168.0.222:7052: bind: cannot assign requested address```

vieiramanoel (Fri, 26 Jan 2018 01:54:39 GMT):
7052 port at host is not being used

vieiramanoel (Fri, 26 Jan 2018 01:54:50 GMT):
i do not understand

vieiramanoel (Fri, 26 Jan 2018 02:07:44 GMT):
nvmd, was a wrong extra_hosts on docker-compose file ?p

vieiramanoel (Fri, 26 Jan 2018 02:07:44 GMT):
nvmd, was a wrong extra_hosts on docker-compose file :p

vieiramanoel (Fri, 26 Jan 2018 02:37:50 GMT):
ok, now i'm stucked

vieiramanoel (Fri, 26 Jan 2018 02:38:08 GMT):
```Error: Error getting endorser client channel: error trying to connect to local peer: x509: certificate signed by unknown authority``` when `peer channel join -b mychannel.block`

vieiramanoel (Fri, 26 Jan 2018 02:38:26 GMT):
i'm able to create channel but not join my peers in it ??

vieiramanoel (Fri, 26 Jan 2018 02:38:48 GMT):
there's not any logs in orderer or peer

vieiramanoel (Fri, 26 Jan 2018 02:39:07 GMT):
so which cert is the problem?

zajanksk (Fri, 26 Jan 2018 02:39:22 GMT):
see the log at ca-server

zajanksk (Fri, 26 Jan 2018 02:40:13 GMT):
docker logs -f

vieiramanoel (Fri, 26 Jan 2018 02:42:10 GMT):
nothing in there too

zajanksk (Fri, 26 Jan 2018 02:42:43 GMT):
is there any logs at cli?

vieiramanoel (Fri, 26 Jan 2018 02:43:11 GMT):
no, i'm running manually every command in cli

vieiramanoel (Fri, 26 Jan 2018 02:44:09 GMT):
@yacovm do you know what it is?

zajanksk (Fri, 26 Jan 2018 02:44:13 GMT):
command docker logs -f out of container with another terminal

vieiramanoel (Fri, 26 Jan 2018 02:44:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=daDq4Sj8Nx3Jz7yh9) @zajanksk cli command is 'sleep infinity' there's not any logs in it

vieiramanoel (Fri, 26 Jan 2018 02:44:57 GMT):
i'm from inside cli

vieiramanoel (Fri, 26 Jan 2018 02:45:07 GMT):
docker exec -it cli bash

vieiramanoel (Fri, 26 Jan 2018 02:45:24 GMT):
this process used to work haha

zajanksk (Fri, 26 Jan 2018 02:45:28 GMT):
oh sorry for not helping you i;m so beginner ...

vieiramanoel (Fri, 26 Jan 2018 02:45:40 GMT):
it's ok

vieiramanoel (Fri, 26 Jan 2018 02:45:50 GMT):
i guess we all are

zajanksk (Fri, 26 Jan 2018 02:46:36 GMT):
did you construct your own specific network?

vieiramanoel (Fri, 26 Jan 2018 02:46:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=estGgE3eAnTfBwoLt) what I'm trying to understand is: which certificate is wrong once I could create a channel

vieiramanoel (Fri, 26 Jan 2018 02:46:48 GMT):
yes

vieiramanoel (Fri, 26 Jan 2018 02:47:00 GMT):
Using my own fabric-ca and everything

zajanksk (Fri, 26 Jan 2018 02:49:11 GMT):
what is your command when you create channel

vieiramanoel (Fri, 26 Jan 2018 03:00:15 GMT):
`peer channel join -b mychannel.block`

zajanksk (Fri, 26 Jan 2018 04:25:09 GMT):
where can i get some information about non-local blockchain network setup?

zajanksk (Fri, 26 Jan 2018 04:27:15 GMT):
For non-local network(each peer in each different network), what i have to do ? (network config etc)

arjunkhera (Fri, 26 Jan 2018 06:08:31 GMT):
When a block is added in the ledger as a result of a transaction, is its data visible to all users on the channel or we can put in place some access control rules in place to restrict whether a user can see the contents of a particular block of the ledger ?

arjunkhera (Fri, 26 Jan 2018 06:08:31 GMT):
When a block is added in the ledger as a result of a transaction, is its data visible to all users on the channel or we can put in place some access control rules to restrict whether a user can see the contents of a particular block of the ledger ?

kerokhin (Fri, 26 Jan 2018 06:09:56 GMT):
Has joined the channel.

zajanksk (Fri, 26 Jan 2018 06:11:58 GMT):
there is specific authority on init, invoke, query each USERS

zajanksk (Fri, 26 Jan 2018 06:12:35 GMT):
it's configured at MSD(Membership Service Provider) config

zajanksk (Fri, 26 Jan 2018 06:13:36 GMT):
find more info about MSD in fabric.doc

zajanksk (Fri, 26 Jan 2018 06:14:18 GMT):
sorry not MSD -> MSP

zajanksk (Fri, 26 Jan 2018 06:14:21 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/msp.html

arjunkhera (Fri, 26 Jan 2018 06:16:49 GMT):
thanks @zajanksk , i knew about the constraints on invoking chaincode by users, but regarding the query i am a bit confused. You are saying that there is specific authority for that too, so this means that a user cannot necessarily view the whole ledger even though he is a part of the channel, right ?

zajanksk (Fri, 26 Jan 2018 06:20:58 GMT):
@arjunkhera if a user have autority for query, user can see whole ledger data or particular data he wants. i think it's Chaincode Area.

zajanksk (Fri, 26 Jan 2018 06:22:17 GMT):
is it necessary to view whole ledger data ? => It;s depend on what method is in Chaincode

zajanksk (Fri, 26 Jan 2018 06:25:28 GMT):
i'm not 100% sure there is authority for "Query" b

zajanksk (Fri, 26 Jan 2018 06:26:44 GMT):
but the answer is "depend on how build chaincode method" about Whole data vs particular data issue

zajanksk (Fri, 26 Jan 2018 06:26:50 GMT):
i think

arjunkhera (Fri, 26 Jan 2018 06:29:48 GMT):
The thing is @zajanksk , i was looking into composer where I came across acl, i know that you can stop a user from invoking certain methods, but i had small tussle with my friend who says that we can also control the data that he can see on the ledger, which I don't think one can do.

arjunkhera (Fri, 26 Jan 2018 06:31:08 GMT):
Say that for a given asset a user should not be able to see what transactions is it undergoing, so we can stop him from transacting on that asset, but can we stop him from viewing the transactions being done on that asset. Do we need to create a separate private channel for that, or we can make do with a single channel ?

zajanksk (Fri, 26 Jan 2018 06:35:07 GMT):
@arjunkhera i don't understand exactly what you mean.

zajanksk (Fri, 26 Jan 2018 06:35:52 GMT):
if a User shouldn't see any assets. why don't we remove this user?

arjunkhera (Fri, 26 Jan 2018 06:45:18 GMT):
Let me rephrase it properly. A given user bob can transact on asset A, but not on B. Now bob,A and B are all part of the same channel. The ledger will hold transaction history of both assets A and B together. Now my question is, is it possible that bob can view the data pertaining to asset A on the ledger but not for those belonging to B.

zajanksk (Fri, 26 Jan 2018 06:59:06 GMT):
i got it. i'm so beginner about fabric so i'm not sure. i think it's not possible.

zajanksk (Fri, 26 Jan 2018 06:59:41 GMT):
it look like Authorize to particular table In RDBMS

zajanksk (Fri, 26 Jan 2018 07:01:57 GMT):
Or it is possible if "shim" Chaincode interface has function about user's infor. Then you can validate user on chaincode

kerokhin (Fri, 26 Jan 2018 08:39:54 GMT):
Is it possible to connect different Fabric deployment? Simple example: Org1 and Org2 deploys Fabric, but currently they not connect to each over. They have different genesis, channels, chaincode, apps, etc. After some time they decide to collaborate and somehow connect they Fabric deployments. I mean Org1 able to use Org2 chaincode and channels, able to read and modify Org2 ledger data. In my understanding Org1 and Org2 need to create new shared Fabric deployment and migrate they data, or modify chaincode to support cross channel communication. Cant find similar cases in docs/maillist.

yacovm (Fri, 26 Jan 2018 09:00:42 GMT):
@vieiramanoel i'd guess you didnt define organization config like MSP_ID and msp config path env vars

yacovm (Fri, 26 Jan 2018 09:00:52 GMT):
This isnt rocket science

yacovm (Fri, 26 Jan 2018 09:01:03 GMT):
:wink:

SGLFE (Fri, 26 Jan 2018 10:35:35 GMT):
Has joined the channel.

SGLFE (Fri, 26 Jan 2018 10:37:22 GMT):
node ./enrollAdmin.js fs.js:951 return binding.readdir(pathModule._makeLong(path), options.encoding); ^ Error: ENOENT: no such file or directory, scandir '/home/sglfe/Workspace/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary' at Error (native) at Object.fs.readdirSync (fs.js:951:18) at Object. (/home/sglfe/Workspace/fabric-samples/fabcar/node_modules/grpc/src/grpc_extension.js:37:23) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

SGLFE (Fri, 26 Jan 2018 10:37:48 GMT):
Hi everyone ,I got this error ..who can give me a hand?

mastersingh24 (Fri, 26 Jan 2018 11:18:42 GMT):
@SGLFE - looks like there was an error installing the grpc package

suryaiiit123 (Fri, 26 Jan 2018 11:33:50 GMT):
Has joined the channel.

suryaiiit123 (Fri, 26 Jan 2018 11:35:14 GMT):
please let me how to store my customer data in ledger and respected transaction using RESTfull

suryaiiit123 (Fri, 26 Jan 2018 11:35:58 GMT):
till now I stored in traditional tables

suryaiiit123 (Fri, 26 Jan 2018 11:40:19 GMT):
My website is related property buying like houses and etc

daanporon (Fri, 26 Jan 2018 12:51:35 GMT):
Hi, we have an issue invoking/querying chaincode. - Each peer is running on it's own AWS instance. - Public channel has all the chaincode that everyone can access, these are installed and instantiated on every peer. Instantiation did happen via Org1 Peer. - Private channel has only chaincode accessable by Org3 and is only installed and instantiated on that peer. Instantiation did happen via Org3 - Querying and invoking publicchannel chaincode works on the Peer of Org1 - Querying and invoking privatechannel chaincode works on the Peer of Org3 But now we have issues with querying and invoking the publicchannel chaincode on the Peers of Org2 and Org3. I see that the container is created for that chaincode and that the container is started. But afterwards the chaincode just timeouts without a clear error. Can anyone help?

daanporon (Fri, 26 Jan 2018 12:51:57 GMT):

Technische architectuur POC.png

daanporon (Fri, 26 Jan 2018 12:52:18 GMT):

configtx.txt

daanporon (Fri, 26 Jan 2018 12:52:33 GMT):

logs.txt

daanporon (Fri, 26 Jan 2018 12:52:44 GMT):
Does anyone know what the issue could be?

janb87 (Fri, 26 Jan 2018 12:53:21 GMT):
Has joined the channel.

vieiramanoel (Fri, 26 Jan 2018 13:00:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ccNwMrhKbhpNjcz9Z) @yacovm I'll check that, but the path is ok

vieiramanoel (Fri, 26 Jan 2018 13:01:12 GMT):
Thnks

MuhammadSalah (Fri, 26 Jan 2018 15:53:27 GMT):
@daanporon have you tested the chaincode in a dev environment first?

MuhammadSalah (Fri, 26 Jan 2018 16:07:50 GMT):
And why do you have different genesis blocks for different orderers?

vieiramanoel (Fri, 26 Jan 2018 16:40:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ccNwMrhKbhpNjcz9Z) @yacovm can you help me? I reviewed configtx file and cert are certainly the same

vieiramanoel (Fri, 26 Jan 2018 16:41:14 GMT):
still I get ```Error: Error getting endorser client channel: error trying to connect to local peer: x509: certificate signed by unknown authority```

vieiramanoel (Fri, 26 Jan 2018 16:41:30 GMT):
no references about it on web

vieiramanoel (Fri, 26 Jan 2018 16:41:41 GMT):
peer doesn't log anything

vieiramanoel (Fri, 26 Jan 2018 16:43:08 GMT):
I even installed ping on cli to make sure that peer is accessible :joy:

vieiramanoel (Fri, 26 Jan 2018 18:10:20 GMT):
solved

ga25waq (Fri, 26 Jan 2018 18:22:59 GMT):
Hi! Is there an easy way in a chaincode implementation to deserialize the creator of a transaction (retrieved with stub.GetCreator()), e.g. via an API?

yacovm (Fri, 26 Jan 2018 18:30:26 GMT):
@vieiramanoel happy to help!

vieiramanoel (Fri, 26 Jan 2018 18:31:45 GMT):
If anyone face same problem: I had to change `- CORE_PEER_ID` from `cli` to `peer0.ministerio.org`

vieiramanoel (Fri, 26 Jan 2018 18:31:49 GMT):
in cli container

DennisNewel (Fri, 26 Jan 2018 19:41:59 GMT):
Has joined the channel.

DennisNewel (Fri, 26 Jan 2018 19:43:44 GMT):
hey everyone, are there any reference apps or other examples of how to build a mobile "wallet" that can interact with fabric? should i be using iroha instead/as well?

RobertDiebels (Fri, 26 Jan 2018 20:32:12 GMT):
Has left the channel.

Ammu (Sat, 27 Jan 2018 05:16:21 GMT):
i had done with marbles, output also perfect . Is it possible that i can link with my front end application with marbles?

sashico (Sat, 27 Jan 2018 05:24:00 GMT):
Has joined the channel.

joojis (Sat, 27 Jan 2018 06:12:02 GMT):
Has joined the channel.

joojis (Sat, 27 Jan 2018 06:56:43 GMT):
Hi, I'm new to Fabric and have read some architecture docs. As far as I understand, the data of channel(ledger)s are isolated from each other. I'm not sure, is it right? If then, what disadvantages exist for creating new network instead of creating a new channel? In other words, which resources in the network are re-used among channels?

arjunkhera (Sat, 27 Jan 2018 11:01:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fLnWnCGE2xkPdBzcm) @zajanksk np, i myself am a beginner. I will surely look into the things you have pointed out

arjunkhera (Sat, 27 Jan 2018 11:06:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AxhFWRzcfQX6kzo5i) @joojis yes, the data is separated for each channel. The things is that a given network consists of a set of organizations, and you can form channels between those organizations in the same network, so you dont use any extra resources for creating a new channel.

arjunkhera (Sat, 27 Jan 2018 11:07:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vhgmBhmmj55Xc4ERH) can anybody help me figure this out this question

nickgaski (Sat, 27 Jan 2018 13:46:33 GMT):
@arjunkhera - 3 ways I can think of off the top of my head. 1. you could follow the encryption chaincode example and pass an encryption key to the chaincode invokes transient parameter. This turns the value for the corresponding key into cipher text and only the possessor of the decryption key can properly query for the value. FYI the same key is used for encrypt/decrypt. This is probably the most effective method 2. You could split the keys (a & b) into two different chaincodes, and simply withhold the chaincode containing the `b` key from the other user. This is a little hacky, not really the right route, because both peers on the channel have the ledger, so it's possible to discern certain pieces of information from the transaction log and state DB. 3. Probably the more complicated of the bunch, but you could go with a combination of chaincode attribute based access control and attribute based enrollment certificates. Essentially you code your chaincode functions against attribute requirements that the caller must possess. With this approach, only a user with an eCert attribute of `queryB, true` could query for the value of `b` when that function is called. (FYI I'm somewhat oversimplifying). But see this sample snippet, where an error is returned if the caller does not possess an ` "abac init" , true ` attribute with his eCert.

nickgaski (Sat, 27 Jan 2018 13:46:53 GMT):
```err := cid.AssertAttributeValue(stub, "abac.init", "true") if err != nil { return shim.Error(err.Error()) }```

nickgaski (Sat, 27 Jan 2018 13:53:35 GMT):
https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example && https://github.com/hyperledger/fabric-samples/blob/master/chaincode/abac/abac.go#L42-L45

arjunkhera (Sat, 27 Jan 2018 14:15:45 GMT):
Thanks a lot @nickgaski , i will definitely go through the links, I do seem to get a hang of the solutions and just noticed that they have been released as a part of v1.1.0. Just one last thing, i was going through the ACL documentation of composer today, and there it is mentioned that one can put specific operations restriction including that of READ on select participants, in that case can it not also solve this very problem ?

ronald.petty (Sun, 28 Jan 2018 01:34:48 GMT):
Hello, can someone point me to instructions on how to build Fabric from scratch? I haven't found it yet.

ronald.petty (Sun, 28 Jan 2018 01:34:48 GMT):
Hello, can someone point me to instructions on how to build Fabric from scratch? I haven't found it yet. (compile all the parts, etc.)

ronald.petty (Sun, 28 Jan 2018 06:38:42 GMT):
Also, anyone run into issues with crypto-config/ ownership? I can recreate an issue moving between byfn.sh and docker-compose where the ownership is root in one case and $USER in another. Haven't figured out if its ok since the order of operations might not be valid. ./byfn.sh -m up ./byfn.sh -m down # comment out script.sh CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up ./byfn.sh -m down (fails do to root ownership of `crypto-config` Then both docker-compose up and byfn up fail for same reason fix (for now) `sudo chown -R $USER:$USER crypto-config` Now byfn up works again. Ran into the above trying this step here: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#what-s-happening-behind-the-scenes It talks about manually doing the steps, but byfn does more than docker-compose up it seems.

ronald.petty (Mon, 29 Jan 2018 00:53:34 GMT):
Hello again, can someone provide a high level description on what docker-compose-e2e.yaml is doing? I see it adding CAs for org1 and org2, but talks about testing and see thousands of lines of output, hard to tell. When using docker-compose-cli.yaml you can follow along the script.sh; but with e2e its not clear to me... will keep looking but lots of deciphering that hopefully can be clarified with some teamwork ;)

ronald.petty (Mon, 29 Jan 2018 00:53:34 GMT):
Hello again, can someone provide a high level description on what docker-compose-e2e.yaml is doing? I see it adding CAs for org1 and org2, but talks about testing and see thousands of lines of output, hard to tell. When using docker-compose-cli.yaml you can follow along the script.sh; but with e2e its not clear to me... will keep looking but lots of deciphering that hopefully can be clarified with some teamwork ;) It says its for node.js sdk testing, but no details on how (also testing section doesn't really speak to that either http://hyperledger-fabric.readthedocs.io/en/latest/testing.html)

username343 (Mon, 29 Jan 2018 05:22:44 GMT):
hey @nickgaski can you please guide me towards some resources that can enable me to ensure that I'm sending the transactions to a specific version of chaincode using nodejs and also the interchaincode communication on the same channel. What I'm trying to do is to ensure that an organization does not change the chaincode after it has been deployed. I did look into chaincode packaging and signing but still i could not figure how how can i specify the instantiation policy to that the package has been signed by all parties concerned, before it can be instantiated

zajanksk (Mon, 29 Jan 2018 05:44:03 GMT):
Hello. guys. I can't understand how to connect between peers on other machine.

zajanksk (Mon, 29 Jan 2018 05:44:39 GMT):
Every sample tutorials just run on "localhost"

zajanksk (Mon, 29 Jan 2018 05:46:15 GMT):
Could you tell me how to network between containers on other machine itself? And how to configure Network with docker-compose .yaml file?

username343 (Mon, 29 Jan 2018 06:53:58 GMT):
@zajanksk you can docker swarm to setup container on multiple machines

username343 (Mon, 29 Jan 2018 06:55:49 GMT):
for example have a look at this composer file https://github.com/Cleanshooter/hyperledger-pi-composer/blob/master/docker-compose-cli.yaml

alexliu (Mon, 29 Jan 2018 07:02:38 GMT):
Hey, guys.I don't know how to enable consensus algorithm, could any one tell me that?

AshishMishra 1 (Mon, 29 Jan 2018 09:02:18 GMT):
Hi guys, can someone give me an idea what the following arguments do w.r.t to a peer. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051 - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true 1. For the gossip external endpoint, will be always the identity of that peer itself? If that's the case why do we need an argument at all. 2. What identity to use in the gossipbootstrap ? For eg. I 've a multi-org, multipeer setup. Will it be same across all the peers in the same org? 3. CORE_PEER_GOSSIP_USELEADERELECTION - What's the implication of setting it true or false? and when should I set it to false. Should it be same on all the peers in an Org. 4. CORE_PEER_GOSSIP_ORGLEADER=false and CORE_PEER_PROFILE_ENABLED=true. No idea what they are. I feel there is a lack of documentation for such arguments.

username343 (Mon, 29 Jan 2018 11:51:45 GMT):
is it possible for a peer to get access to the source code of a chaincode installed on a peer which is either on the same channel or different channel?

username343 (Mon, 29 Jan 2018 11:59:28 GMT):
what's the practical use of chaincode packaging and signing?

zasamen (Mon, 29 Jan 2018 12:27:17 GMT):
Hi, all. Can anyone explain what does it mean? ` [orderer/common/broadcast] Handle -> WARN 908 Error reading from stream: rpc error: code = Canceled desc = context canceled`. It is from orderer log on code instantiation.

javrevasandeep (Mon, 29 Jan 2018 16:52:20 GMT):
can anyone pls help me with fabric-samples/fabric-ca example. II run this example as stated by running start.sh script. Now further I want to run invoke and query using fabric-node-sdk for the same network. what changes i need to make in node-sdk network-config.yaml file

madhurbatra (Mon, 29 Jan 2018 18:47:44 GMT):
Has joined the channel.

marc0o (Mon, 29 Jan 2018 20:41:00 GMT):
does anybody know whether the tuna app example can run under windows?

marc0o (Mon, 29 Jan 2018 20:41:01 GMT):
https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material/tuna-app

marc0o (Mon, 29 Jan 2018 20:41:36 GMT):
I am always getting errors with the grpc module

marc0o (Mon, 29 Jan 2018 20:45:02 GMT):
ahh ok changed version of grpc to latest and now it seems to work

RobertDiebels (Mon, 29 Jan 2018 21:03:49 GMT):
Has joined the channel.

AdamParker (Mon, 29 Jan 2018 22:16:24 GMT):
Has joined the channel.

AdamParker (Mon, 29 Jan 2018 22:17:58 GMT):
Has left the channel.

joojis (Mon, 29 Jan 2018 23:26:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i4QQ9B3fBqHW3WDPL) @arjunkhera Thank you!

dainliff (Mon, 29 Jan 2018 23:41:50 GMT):
Has joined the channel.

dainliff (Mon, 29 Jan 2018 23:49:30 GMT):
Hello I'm having some issues writing a custom system chaincode. Are there any examples of loading one? ``` peer0.org1.example.com | 2018-01-29 23:33:48.099 UTC [viperutil] unmarshalJSON -> DEBU 055 Unmarshal JSON: value is not a string: [map[enabled:true name:testscc path:/scc/testscc/testscc.so invokableExternal:true invokableCC2CC:true]] peer0.org1.example.com | 2018-01-29 23:33:48.099 UTC [viperutil] getKeysRecursively -> DEBU 056 Found real value for chaincode.systemPlugins setting to []interface {} [map[path:/scc/testscc/testscc.so invokableExternal:true invokableCC2CC:true enabled:true name:testscc]] peer0.org1.example.com | 2018-01-29 23:33:48.099 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 057 map[chaincode.systemPlugins:[map[name:testscc path:/scc/testscc/testscc.so invokableExternal:true invokableCC2CC:true enabled:true]]] peer0.org1.example.com | fatal error: unexpected signal during runtime execution peer0.org1.example.com | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0] peer0.org1.example.com | peer0.org1.example.com | runtime stack: peer0.org1.example.com | runtime.throw(0xebe1da, 0x2a) peer0.org1.example.com | /opt/go/src/runtime/panic.go:605 +0x95 peer0.org1.example.com | runtime.sigpanic() peer0.org1.example.com | /opt/go/src/runtime/signal_unix.go:351 +0x2b8 ```

dainliff (Mon, 29 Jan 2018 23:49:55 GMT):
This is on 1.1-preview by the way

yacovm (Tue, 30 Jan 2018 00:05:55 GMT):
why are you writing a custom system chaincode?

dainliff (Tue, 30 Jan 2018 00:13:28 GMT):
I have been tasked with just trying to get one up and running. But I think idea was to allow there to be some preinstalled chaincode if it was required

dainliff (Tue, 30 Jan 2018 00:13:57 GMT):
but if I could just get some help getting a toy piece of code working, that would be great

yacovm (Tue, 30 Jan 2018 00:15:23 GMT):
well but _ why _ have you been tasked?

yacovm (Tue, 30 Jan 2018 00:15:36 GMT):
what are you or your accomplice, trying to accomplish?

dainliff (Tue, 30 Jan 2018 00:19:25 GMT):
So from my understanding, normal chaincode could satisfy what we're currently trying to do, since there's nothing that requires it to be running outside of a container. But, team still thinks that it might still be handy to try running it as a system chaincode

dainliff (Tue, 30 Jan 2018 00:19:30 GMT):
mostly I think this is a learning thing

yacovm (Tue, 30 Jan 2018 00:19:54 GMT):
ah so you want to run an application chaincode

yacovm (Tue, 30 Jan 2018 00:20:01 GMT):
one that runs business logic

yacovm (Tue, 30 Jan 2018 00:20:05 GMT):
inside the peer as a system chaincode?

dainliff (Tue, 30 Jan 2018 00:20:16 GMT):
yeah basically haha

yacovm (Tue, 30 Jan 2018 00:20:23 GMT):
I would advise you, not to do that.

dainliff (Tue, 30 Jan 2018 00:21:27 GMT):
look that's totally fair, and hey we'll probably not end up going that direction in the end

dainliff (Tue, 30 Jan 2018 00:21:42 GMT):
but still I'd like to know how to write + load a custom system chaincode for the future

dainliff (Tue, 30 Jan 2018 00:22:25 GMT):
so far I've found the sample system chaincode in the repository, but I haven't been able to successfully load it

yacovm (Tue, 30 Jan 2018 00:22:33 GMT):
have you compiled with `pluginsenabled` build flag?

dainliff (Tue, 30 Jan 2018 00:22:53 GMT):
I'm currently compiling with `go build --tags nopkcs11 -buildmode=plugin testscc.go`

yacovm (Tue, 30 Jan 2018 00:23:22 GMT):
no, I mean you need to compile the *peer* with a build flag

yacovm (Tue, 30 Jan 2018 00:23:25 GMT):
`pluginsenabled`

dainliff (Tue, 30 Jan 2018 00:23:38 GMT):
oh :| it appears to be trying to load the plugin though

yacovm (Tue, 30 Jan 2018 00:24:05 GMT):
it shouldn't work

dainliff (Tue, 30 Jan 2018 00:24:05 GMT):
I was just using the 1.1-preview peer docker image

yacovm (Tue, 30 Jan 2018 00:25:25 GMT):
hmm, even if it will load the plugins - it will not get them to the chaincode dispatch table

yacovm (Tue, 30 Jan 2018 00:26:05 GMT):
but I think that it's possible, because I know some people that managed to do that

yacovm (Tue, 30 Jan 2018 00:26:58 GMT):
however, you may end up shooting yourself in the foot. Changing the fabric code on your own or adding system chaincodes comes with a risk.

dainliff (Tue, 30 Jan 2018 00:27:57 GMT):
ok I'll give the `pluginsenabled` a whirl, and see if I can get the example running

dainliff (Tue, 30 Jan 2018 00:30:20 GMT):
sorry but is this documented at all. This is all I've found on system chaincode in general http://hyperledger-fabric.readthedocs.io/en/latest/systemchaincode.html

yacovm (Tue, 30 Jan 2018 00:33:25 GMT):
sigh.. I guess that part is missing

yacovm (Tue, 30 Jan 2018 00:34:37 GMT):
but can you say why you want to do that?

dainliff (Tue, 30 Jan 2018 00:36:36 GMT):
So don't know how well it's going to work, but the idea is to try and do some data splitting across multiple instances of fabric

dainliff (Tue, 30 Jan 2018 00:37:06 GMT):
and that this could somehow be facilitated through chaincode, maybe system chaincode

yacovm (Tue, 30 Jan 2018 00:38:46 GMT):
what do you mean data splitting?

yacovm (Tue, 30 Jan 2018 00:38:57 GMT):
and what do you mean multiple instances of fabric?

yacovm (Tue, 30 Jan 2018 00:39:03 GMT):
you want to have a clustered peer?

yacovm (Tue, 30 Jan 2018 00:39:05 GMT):
or what?

dainliff (Tue, 30 Jan 2018 00:41:09 GMT):
like data partitioning, across multiple blockchains. Imo probably not going to work all that well

dainliff (Tue, 30 Jan 2018 00:41:32 GMT):
but anyways I just want to get some toy code going for now lol

yacovm (Tue, 30 Jan 2018 00:41:50 GMT):
multiple... blockchains?

yacovm (Tue, 30 Jan 2018 00:41:56 GMT):
like, fabric and other blockchains?

yacovm (Tue, 30 Jan 2018 00:42:00 GMT):
or what?

dainliff (Tue, 30 Jan 2018 00:42:12 GMT):
I took a search through the repo, and I couldn't see any references to `pluginsenabled`

dainliff (Tue, 30 Jan 2018 00:42:30 GMT):
can you point me to where I should be looking

dainliff (Tue, 30 Jan 2018 00:43:38 GMT):
I think the actual use I'll get out of the system chaincode is questionable. But I'd still appreciate the know how

yacovm (Tue, 30 Jan 2018 00:44:54 GMT):
https://github.com/hyperledger/fabric/blob/master/core/scc/register_plugins.go#L1

dainliff (Tue, 30 Jan 2018 00:45:51 GMT):
ok that doesn't seem to be in 1.1-preview

dainliff (Tue, 30 Jan 2018 00:46:09 GMT):
I guess maybe the feature was added after..?

dainliff (Tue, 30 Jan 2018 00:46:56 GMT):
anyways thanks

yacovm (Tue, 30 Jan 2018 00:47:57 GMT):
oh...

yacovm (Tue, 30 Jan 2018 00:48:02 GMT):
I missed the preview part

yacovm (Tue, 30 Jan 2018 00:48:09 GMT):
I thought you're using v1.1-alpha

zajanksk (Tue, 30 Jan 2018 00:55:03 GMT):
hey gutys

zajanksk (Tue, 30 Jan 2018 00:55:13 GMT):
i have a question

zajanksk (Tue, 30 Jan 2018 00:57:57 GMT):
it's same question i have done above. but i still wonder HOW Containers(peer or CA or Orderer) network across machines? As i know Docker Containers network within local machine. So someone replied that using Docker Swarm Mode.

zajanksk (Tue, 30 Jan 2018 00:59:20 GMT):
but, i think there is another way (defined way by Hyperledger Fabric), Anybody knows about that?

zajanksk (Tue, 30 Jan 2018 01:15:22 GMT):

1.png

zajanksk (Tue, 30 Jan 2018 01:16:26 GMT):
I want to setup network, is it possible? and If it is, what should i do with docker-compose network settings?

Amir (Tue, 30 Jan 2018 01:27:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=djG9qAnmjduXpybsk) @zajanksk may be u can check Hyperledger Cello (https://github.com/hyperledger/cello)

zajanksk (Tue, 30 Jan 2018 01:31:21 GMT):
@Amir thanks, amir. As i know cello is hyperledger tool, is it possible that setup Fabric Components(like peer, orderer, CA .. i think these are configured and runned by docker-compose with yaml file)?

niyuelin (Tue, 30 Jan 2018 01:34:31 GMT):
Has joined the channel.

Amir (Tue, 30 Jan 2018 01:38:29 GMT):
@zajanksk cello is a blockchain as a service platform and yes it will help to setup Fabric components

Amir (Tue, 30 Jan 2018 01:39:58 GMT):
you can ask more specific questions about cello on #cello channel

zajanksk (Tue, 30 Jan 2018 01:49:48 GMT):
@Amir thanks a lot amir. It will be help

zajanksk (Tue, 30 Jan 2018 04:33:39 GMT):
hello, again. After we run fabric components with docker-compose, if server is down or docker-compose down, then all data (channel, user, data etc) is gone. (docker images is static). so For persistence, Should i do something?

zajanksk (Tue, 30 Jan 2018 04:35:08 GMT):
As i know , docker images tagged 'lastest' are because of that issue. Then, It happens automatically when server is down?

zajanksk (Tue, 30 Jan 2018 04:36:19 GMT):
Or have to do some settings for that?

friends110110 (Tue, 30 Jan 2018 05:28:50 GMT):
?

friends110110 (Tue, 30 Jan 2018 05:28:58 GMT):
What is main difference between hyperledge Fabric 0.6、1.0 and 1.1 version?

zajanksk (Tue, 30 Jan 2018 07:07:31 GMT):

Clipboard - 2018년 1월 30일 오후 4시 7분

zajanksk (Tue, 30 Jan 2018 07:08:59 GMT):
i had an error like this when i enroll 'admin' user, i didn't set 'tls' on CA server, then why it's comes up?

username343 (Tue, 30 Jan 2018 08:47:36 GMT):
has anyone worked on making sure that only a specific version of chaincode is being invoked during the interchaincode and sdk invocation?

username343 (Tue, 30 Jan 2018 08:48:16 GMT):
How can we make sure that a chaincode is not upgraded without the consent of multiple members in the network?

GavinPacini (Tue, 30 Jan 2018 10:39:24 GMT):
Hi all, I thought the purpose of channels was to allow for separate communication between peers. However, if the orderer (or multiple kafka orderers) can see all the r/w sets, doesn't this mean the orderer can see everything that's happening? i.e. there is no private comms between peers?

GavinPacini (Tue, 30 Jan 2018 10:39:53 GMT):
Would appreciate a response on this! I know you can encrypt the data before calling `PutState` however I feel there must be a better way!

GavinPacini (Tue, 30 Jan 2018 10:39:55 GMT):
Thanks! :)

mna2016 (Tue, 30 Jan 2018 10:59:12 GMT):
I am following this http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html. i have brought the network up already. When I attempt "peer chaincode query...." I am getting the following error

mna2016 (Tue, 30 Jan 2018 10:59:46 GMT):
panic: Fatal error when initializing core config : Error when reading core confi g file: Unsupported Config Type "" goroutine 1 [running]: panic(0xbc7600, 0xc0421d9750) /opt/go/go1.7.5.linux.amd64/src/runtime/panic.go:500 +0x1af main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fa bric/peer/main.go:94 +0x859

mna2016 (Tue, 30 Jan 2018 11:00:18 GMT):
Appreciate if I can get quick advices about how to solve this. Thanks!

shubhamvrkr (Tue, 30 Jan 2018 13:08:41 GMT):
Has joined the channel.

RasmusThorsoee (Tue, 30 Jan 2018 13:48:14 GMT):
Hi there! Are there any resources on how to do chaincode access control, for example so that only Bob is allowed to invoke, and only Alice is allowed to query?

jeffgarratt (Tue, 30 Jan 2018 14:40:49 GMT):
@GavinPacini see https://jira.hyperledger.org/browse/FAB-1151

lexsys (Tue, 30 Jan 2018 15:05:13 GMT):
Hi! How can I add a new organization to the system channel `testchainid`? Trying to fetch its config block fails with the message `Error: can't read the block: &{FORBIDDEN}`

jeffgarratt (Tue, 30 Jan 2018 15:08:39 GMT):
@lexsys you must have channel reader rights to the system channel, which in general requires a cert from the orderer's CA

lexsys (Tue, 30 Jan 2018 15:09:19 GMT):
```

lexsys (Tue, 30 Jan 2018 15:09:19 GMT):
``` peer channel fetch config config_block.pb \ -o orderer.example.com:7050 \ -c $CHANNEL_NAME \ --tls \ --cafile $ORDERER_CA ```

jeffgarratt (Tue, 30 Jan 2018 15:10:12 GMT):
you would need to run this using the identity with a cert signed by the orderer's CA

jeffgarratt (Tue, 30 Jan 2018 15:11:06 GMT):
so would need to add CORE_PEER_MSPCONFIGPATH and CORE_PEER_LOCALMSPID

jeffgarratt (Tue, 30 Jan 2018 15:11:18 GMT):
and they would need to refer to orderer relative credentials

jeffgarratt (Tue, 30 Jan 2018 15:11:34 GMT):
by default you are running as the identity of the peer you are using

jeffgarratt (Tue, 30 Jan 2018 15:11:46 GMT):
and unless that peer is owned by the orderer org, you will NOT have access

lexsys (Tue, 30 Jan 2018 15:12:13 GMT):
ok, got it! will try in a minute

lexsys (Tue, 30 Jan 2018 15:15:07 GMT):
``` Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp: could not load a valid signer certificate from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/signcerts: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/signcerts: no such file or directory # ls /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/ admincerts/ cacerts/ keystore/ tlscacerts/ ```

lexsys (Tue, 30 Jan 2018 15:15:55 GMT):
@jeffgarratt it looks like `orderer` org has no `signcerts` directory

jeffgarratt (Tue, 30 Jan 2018 15:17:06 GMT):
find that folder, it should be there somewhere

jeffgarratt (Tue, 30 Jan 2018 15:17:19 GMT):
then reference the root of that folder as your local msp path

jeffgarratt (Tue, 30 Jan 2018 15:17:38 GMT):
meaning, one folder up from signcerts

jeffgarratt (Tue, 30 Jan 2018 15:18:20 GMT):
if not, you need to get it as that is the private key

jeffgarratt (Tue, 30 Jan 2018 15:18:29 GMT):
unless this is a production env?

lexsys (Tue, 30 Jan 2018 15:18:30 GMT):
oh, i forgot about `users` subfolder

lexsys (Tue, 30 Jan 2018 15:18:50 GMT):
no, it is testing env with `first-network` example running

jeffgarratt (Tue, 30 Jan 2018 15:18:54 GMT):
good

lexsys (Tue, 30 Jan 2018 15:22:18 GMT):
i have configured all the certs pointing to the `orderer` org but still getting `forbidden` ``` # echo $CORE_PEER_LOCALMSPID OrdererOrg # echo $CORE_PEER_TLS_ROOTCERT_FILE /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt # echo $CORE_PEER_MSPCONFIGPATH /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/users/Admin@example.com/msp # echo $CORE_PEER_ADDRESS orderer.example.com:7051 ```

lexsys (Tue, 30 Jan 2018 15:24:04 GMT):
solved: CORE_PEER_LOCALMSPID=`OrdererMSP`

lexsys (Tue, 30 Jan 2018 15:24:59 GMT):
@jeffgarratt thank you for help!

lexsys (Tue, 30 Jan 2018 15:25:58 GMT):
maybe you can comment on my hypothesis: I expect `org3` will be able to create new channels if I add this org as `Admin` to the system channel. Is it correct?

AshishMishra 1 (Tue, 30 Jan 2018 15:27:30 GMT):
Hi guys, did anyone already tried the 1.1.0alpha release? how is the performance improvement over 1.0.5 ?

AshishMishra 1 (Tue, 30 Jan 2018 15:27:30 GMT):
Hi guys, did anyone already try the 1.1.0alpha release? how is the performance improvement over 1.0.5 ?

AshishMishra 1 (Tue, 30 Jan 2018 15:28:05 GMT):
I was getting around 80-90 TPS with 4 peers on a 1.0.5, would be interested to see if I see higher TPS.

GavinPacini (Tue, 30 Jan 2018 15:31:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KZ3yqovPhvGJ7dAf3) @jeffgarratt Thank you, this is great! I'm not too used to JIRA, is it possible to see if this is being worked on in another branch? I would be happy to contribute to the code. Thanks!

pd93 (Tue, 30 Jan 2018 15:39:53 GMT):
Hey, I've been looking at the encCC stuff in fabric v1. I was just wondering if it's possible to call this chaincode from other chaincodes and if there's any reason you shouldn't do this. I'm still slightly unable to wrap my head around how encryption is possible in a deterministic environment.

pd93 (Tue, 30 Jan 2018 15:39:53 GMT):
Hey, I've been looking at the encCC stuff in fabric v1.1. I was just wondering if it's possible to call this chaincode from other chaincodes and if there's any reason you shouldn't do this. I'm still slightly unable to wrap my head around how encryption is possible in a deterministic environment.

jeffgarratt (Tue, 30 Jan 2018 15:49:05 GMT):
@lexsys if you add them as Config Admin to system channel then they can create consortiums, the boostrap system for subsequent channel creation by consortium members

jeffgarratt (Tue, 30 Jan 2018 15:49:20 GMT):
this is considered a orderer config admin function

jeffgarratt (Tue, 30 Jan 2018 15:50:34 GMT):
channel creation occurs amongst the consortium members per their channel creation policy

lexsys (Tue, 30 Jan 2018 15:50:56 GMT):
@jeffgarratt and what if I want them to create not consortiums but only ordinary channels? like `org1` can do

jeffgarratt (Tue, 30 Jan 2018 15:51:13 GMT):
then add them to the consortium

lexsys (Tue, 30 Jan 2018 15:51:29 GMT):
ok, will try it

jeffgarratt (Tue, 30 Jan 2018 15:51:34 GMT):
which is also a ordere config admin operation :)

jeffgarratt (Tue, 30 Jan 2018 15:51:43 GMT):
as they can update the system channels config

pd93 (Tue, 30 Jan 2018 15:59:48 GMT):
Also, is there any reason why the version numbers for the CouchDB Docker container now follow the baseimage version rather than the fabric version?

lexsys (Tue, 30 Jan 2018 16:19:06 GMT):
@jeffgarratt i am trying to send an update config transaction for a system channel but have some syntax issues. Can you please take a look? https://gist.github.com/lexsys27/670369c538522d01c6ad5d32bb95cfa1

lexsys (Tue, 30 Jan 2018 16:19:43 GMT):
`Error: proto: can't skip unknown wire type 6 for common.Envelope`

jeffgarratt (Tue, 30 Jan 2018 16:25:13 GMT):
@lexsys can you inspect the envelope you created to verify it is what you expect?

lexsys (Tue, 30 Jan 2018 16:28:15 GMT):
ok - `configtranslator` puts error messages in the *.pb file. Now I found it :)

lexsys (Tue, 30 Jan 2018 16:28:27 GMT):
`*common.Payload: error in PopulateFrom for field data for message *common.Payload: *common.ConfigEnvelope: unknown field "config_update" in common.ConfigEnvelope`

lexsys (Tue, 30 Jan 2018 16:29:04 GMT):
hm.. this worked for the application channels: `echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat org3_update.json)'}}}' | jq . > org3_update_in_envelope.json`

lexsys (Tue, 30 Jan 2018 16:40:49 GMT):
solved: the wrong type in header "1" -> "2"

lexsys (Tue, 30 Jan 2018 16:57:10 GMT):
I have finally added `org3` as a full admin that can create new channels with `org1` and `org2`. Thanks @jeffgarratt for help!

zajanksk (Wed, 31 Jan 2018 00:45:02 GMT):
Hello. I have a question.

zajanksk (Wed, 31 Jan 2018 00:46:08 GMT):
What is the role of Anchor peers? If i haven't configured Anchor peer, what happens?

Yieazy (Wed, 31 Jan 2018 01:13:11 GMT):
Has joined the channel.

username343 (Wed, 31 Jan 2018 05:21:12 GMT):
How does the fabric blockchain handle large number of requests modifying the same key in a very short time. For example if a there are 1000 transactions that are just modifiying the value of the key "A", the endorser will sign the transaction endorsement with the same readset/key version until the one of the transaction has been committed and the readset modified. So if there are 1000 transactions which can be endorsed according to the chaincode endorses logic, will be rejected, just because a previous transaction has not been commited. How is this problem solved in the fabric?

username343 (Wed, 31 Jan 2018 05:21:12 GMT):
How does the fabric blockchain handle large number of transactions modifying the same key in a very short time. For example if a there are 1000 transactions that are modifiying the value of the key "A", the endorser will sign the transaction endorsement with the same readset/key version until the one of the transaction has been committed and the key version in the ledger modified. So if there are 1000 transactions which can be endorsed according to the chaincode endorses logic, will be rejected, just because a previous transaction has not been commited. How is this problem solved in the fabric?

AshishMishra 1 (Wed, 31 Jan 2018 06:03:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WmQbPBM9awbD6Sc6j) @zajanksk I 've similar questions revolving anchor peer. In case of a 1 org n/w do I need an anchor peer? and also can I configure multiple anchor peers for HA?

aceyin (Wed, 31 Jan 2018 06:38:17 GMT):
Has joined the channel.

aceyin (Wed, 31 Jan 2018 07:01:56 GMT):
@here ``` what the difference between "anchor peer" and "leading peer"? are they the same meaning in fabric? From the "first-network" example, i knew that the anchor peers were updated by command : "peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org1MSPanchor.tx --tls true --cafile $ORDERER_CCA" . But in the "basic-example" there is no such step to update the anchor peer. Does this mean the "anchor peer" is optional? One more question: what will happened if the anchor peers are down(the anchor peer docker container instances been killed or have no response)? Seems many guys has the same question(about the anchor peer) with me, but the question never been answered clearly. So is there any official answer about this question? ```

username343 (Wed, 31 Jan 2018 07:03:18 GMT):
I think leading peer talks to the orderer and receives the blocks and anchor peer is used for finding the peers in other organization for the gossip process

AshishMishra 1 (Wed, 31 Jan 2018 07:04:01 GMT):
yes.. I understand the concept of leading peer, and also it has elections to elect a leader so it's fine.. the doubts I have is for anchor peer.

friends110110 (Wed, 31 Jan 2018 07:04:17 GMT):
leader peer could fetch block from orderer, anchor peer could communicate with other organizations which config in core.yaml bootstrap field

AshishMishra 1 (Wed, 31 Jan 2018 07:05:20 GMT):
What kind of communication with other organization? the gossips happens between same org I suppose. The cross org consensus is maintained by kafka.

aceyin (Wed, 31 Jan 2018 07:06:05 GMT):
so, if there are multiple channels and if we need peers to communicate with other channel, then we must config the anchor peer, but if there is no such need, the anchor peer is optional. am i right?

zajanksk (Wed, 31 Jan 2018 07:16:25 GMT):
@AshishMishra 1 First of all, as i know it can that configure multiple anchor, i saw on document. But i have no idea about how it works.

AshishMishra 1 (Wed, 31 Jan 2018 07:22:01 GMT):
@zajanksk , not sure about that. One workaround could be having multiple peers sharing the same peerid and certificates.

AshishMishra 1 (Wed, 31 Jan 2018 07:22:43 GMT):
It works for me but I 'm not sure if I 'm compromising anything here in terms of security etc.

Ammu (Wed, 31 Jan 2018 07:31:44 GMT):
where our data's will store in couchdb?

Taffies (Wed, 31 Jan 2018 09:23:36 GMT):
Hi. I'm doing the marbles tutorial on a VM (Ubuntu EC2 instance) running on MacOS host machine. I've done all the parts but I'm unable to access the marbles app in my host machine browser. I'm not very familiar with this area of networking/communication between machines so If someone could point me in the right direction it would be very much appreciated. Thank you :)

Taffies (Wed, 31 Jan 2018 09:24:07 GMT):
`https://github.com/IBM-Blockchain/marbles` the tutorial fyi~

RasmusThorsoee (Wed, 31 Jan 2018 09:24:38 GMT):
I ran onto a weird issue when installing chaincode. It seems to be sometimes installing an old version of the chaincode with that name, even when that chaincode exists nowhere on my computer, and i have used docker-compose down to destroy the network. How can this be? Simply changing the name of the chaincode fixes it for me, but it is an annoying fix.

RasmusThorsoee (Wed, 31 Jan 2018 09:25:36 GMT):
@Taffies Sounds like an issue with port forwarding, your VM is not forwarding the port on your VM to a port on your Host

Taffies (Wed, 31 Jan 2018 09:32:17 GMT):
@RasmusThorsoee I tried to do `ssh -L 3001:localhost:3001 -i ~/.ssh/MKP.pem ubuntu@` on my host but I might be using the wrong method or inputs. The connection was refused

Taffies (Wed, 31 Jan 2018 09:34:26 GMT):
I didn't really know what to put for the ports or if I have any misconceptions on how it works. my server is up at `localhost:3001` on my VM

torsten.stein.faizod (Wed, 31 Jan 2018 12:00:39 GMT):
Has joined the channel.

aceyin (Wed, 31 Jan 2018 12:08:36 GMT):

fabric-peers-and-networks.png

aceyin (Wed, 31 Jan 2018 12:10:54 GMT):
@username343 @AshishMishra 1 @friends110110 @here https://chat.hyperledger.org/file-upload/dWvtv8WyGo3T7BuWv/fabric-peers-and-networks.png

aceyin (Wed, 31 Jan 2018 12:10:54 GMT):
@username343 @AshishMishra 1 @friends110110 @here is my understanding about the anchor peer and leading peer correct? https://chat.hyperledger.org/file-upload/dWvtv8WyGo3T7BuWv/fabric-peers-and-networks.png

mna2016 (Wed, 31 Jan 2018 12:32:05 GMT):
how do i remove hyperledger fabric images from my windows machine. I want to erase fabric and then start downloading things all over agian.

suryaiiit123 (Wed, 31 Jan 2018 12:44:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pzfw6usndddb59Gvi) @mna2016 $ docker rm -f $(docker ps -aq) or $ docker rmi -f $(docker images -a -q) try this to Remove all Docker containers and images that you created

suryaiiit123 (Wed, 31 Jan 2018 12:45:34 GMT):
after that check by executing "docker images"

suryaiiit123 (Wed, 31 Jan 2018 12:45:46 GMT):
and you see none of the images

mna2016 (Wed, 31 Jan 2018 12:58:53 GMT):
@suryaiiit123 ok I will try this. thanks.

AshishMishra 1 (Wed, 31 Jan 2018 13:18:52 GMT):
@aceyin , yes at per the documentation it's correct.. However I have some doubts which I feel some expert in this channel can answer. 1. Can I have multiple anchors? (You have it in your diagram but is is possible? I read somewhere we have to do a channel config update to update the anchor peers if my current anchor peer is lost.) 2. Why do I need cross org gossip? Peers can sync blocks from local peers always mainly from the leader peer. The leader peer can connect to orderer (kafka based and can sync the blocks based on the current offset). So why do I need cross org gossips?

Vadim (Wed, 31 Jan 2018 13:36:55 GMT):
@AshishMishra 1 1. Yes. 2. Because in the future the ledger history can be pruned and orderer won't have all blocks

AshishMishra 1 (Wed, 31 Jan 2018 14:48:15 GMT):
@Vadim yeah pruning would need gossip, didn't think of that. So for #1, so can I assign multiple anchor peers? How ? AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 - Host: peer1.org1.example.com Port: 7051 Like this?

DmitryNovenkykh (Wed, 31 Jan 2018 15:07:12 GMT):
Hello everyone! Is there a limit of channels count for peer? Didn`t found this in doc

joe-alewine (Wed, 31 Jan 2018 18:31:11 GMT):
@DmitryNovenkykh As far as I know, there's no set maximum

herrsergio (Wed, 31 Jan 2018 18:31:47 GMT):
Has joined the channel.

herrsergio (Wed, 31 Jan 2018 18:35:19 GMT):
hi everybody ! I have an issue trying to run the "tuna-app" example. After the 'startFabric.sh', node registerAdmin.js, node registerUser.js, node server.js ; when I try to create a tuna record, I get the following error https://paste.ubuntu.com/26496557/

herrsergio (Wed, 31 Jan 2018 18:35:59 GMT):
I 've had deleted the docker images, reinstalled them but the result is always the same :(

herrsergio (Wed, 31 Jan 2018 18:36:43 GMT):
I also tried with different versions of Fabric

herrsergio (Wed, 31 Jan 2018 19:14:27 GMT):
Oh, I cloned again the education repo and now it's working

ronald.petty (Wed, 31 Jan 2018 19:57:33 GMT):
Hello. Can someone shed light on why the node chaincode image has go configuration in it? I did not deep dive yet, but looking at the image history, you see various Golang related things in it. Just curious if its just debt or purpose?

ronald.petty (Wed, 31 Jan 2018 19:57:33 GMT):
Hello. Can someone shed light on why the node chaincode image has golang configuration in it? I did not deep dive yet, but looking at the image history, you see various Golang related things in it. Just curious if its just debt or purpose?

ronald.petty (Wed, 31 Jan 2018 19:57:33 GMT):
Hello. Can someone shed light on why the node chaincode image has golang configuration in it? I did not deepdived yet, but looking at the image history, you see various Golang related things in it. Just curious if its just debt or purpose?

MuhammadSalah (Wed, 31 Jan 2018 23:44:16 GMT):
@ronald.petty Do you mean the Shim interface?

ronald.petty (Wed, 31 Jan 2018 23:44:52 GMT):
When doing the byfn I noticed when you run -l node the dev-peer images have go artifacts in the layers.

ronald.petty (Wed, 31 Jan 2018 23:45:18 GMT):
docker image inspect dev..... (assuming -l node) | grep go

MuhammadSalah (Wed, 31 Jan 2018 23:45:51 GMT):
I still don't understand your concern, please elaborate.

ronald.petty (Wed, 31 Jan 2018 23:54:29 GMT):
Its a node chaincode, why is there go in it?

ronald.petty (Wed, 31 Jan 2018 23:54:58 GMT):
is there a go based tool in the node chaincode image doing something?

ronald.petty (Wed, 31 Jan 2018 23:55:07 GMT):
if not, its debt, aka leads to security issues

ronald.petty (Wed, 31 Jan 2018 23:55:36 GMT):
Personally just don't like unexplained things running around in code

MuhammadSalah (Wed, 31 Jan 2018 23:59:57 GMT):
So your concern is that the chaincode image has got GoLang in it?

MuhammadSalah (Thu, 01 Feb 2018 00:00:11 GMT):
And you are afraid that it is a liability of security?

MuhammadSalah (Thu, 01 Feb 2018 00:01:27 GMT):
Please correct me if I am wrong.

ronald.petty (Thu, 01 Feb 2018 00:02:18 GMT):
Correct

ronald.petty (Thu, 01 Feb 2018 00:02:18 GMT):
Correct, well partly, its the fact we have things in an image that have unknown purpose

ronald.petty (Thu, 01 Feb 2018 00:03:01 GMT):
it is standard best practice to make containers have the minimum for a reason

ronald.petty (Thu, 01 Feb 2018 00:03:14 GMT):
have no proof its an issue, its just tribal wisdom

MuhammadSalah (Thu, 01 Feb 2018 00:03:46 GMT):
Well, I can answer that rest assured.

MuhammadSalah (Thu, 01 Feb 2018 00:04:05 GMT):
I am not a security expert, but I know the mechanism (conceptually I hope)

MuhammadSalah (Thu, 01 Feb 2018 00:04:14 GMT):
Fabric protocol is all in GoLang.

MuhammadSalah (Thu, 01 Feb 2018 00:04:25 GMT):
So Fabric-ccenv

MuhammadSalah (Thu, 01 Feb 2018 00:04:40 GMT):
Which is the chaincode image is all running over GoLang.

MuhammadSalah (Thu, 01 Feb 2018 00:04:51 GMT):
In order to do basic functions as a part of the network.

MuhammadSalah (Thu, 01 Feb 2018 00:05:08 GMT):
It's a unified base for all languages.

MuhammadSalah (Thu, 01 Feb 2018 00:05:29 GMT):
So the polyglot concept of having more than programming language is simply going over gRPC

MuhammadSalah (Thu, 01 Feb 2018 00:05:41 GMT):
so far we got NodeJS and GoLang doing that.

MuhammadSalah (Thu, 01 Feb 2018 00:05:47 GMT):
At least to my knowledge.

MuhammadSalah (Thu, 01 Feb 2018 00:06:00 GMT):
So NodeJS is just interfacing with the GoLang base.

MuhammadSalah (Thu, 01 Feb 2018 00:06:10 GMT):
hope this suffices.

ronald.petty (Thu, 01 Feb 2018 00:07:31 GMT):
That sounds reasonable, thanks for that. I am still working my way through the pieces. In my mind, I was thinking the peer launched the dev-peer and they talked over grpc or something (not runtime to some fabric agent in the dev-peer). Not saying anything is wrong, just filling in my knowledge. Thanks!

MuhammadSalah (Thu, 01 Feb 2018 00:07:57 GMT):
I am here to help, most welcome ronald. :)

MuhammadSalah (Thu, 01 Feb 2018 00:10:32 GMT):
However, just to clarify your PEER launches dev-peer.

MuhammadSalah (Thu, 01 Feb 2018 00:10:39 GMT):
Through the docker daemon socket.

MuhammadSalah (Thu, 01 Feb 2018 00:10:52 GMT):
And it builds the image too.

MuhammadSalah (Thu, 01 Feb 2018 00:11:17 GMT):
When you install the chaincode; you are delivering your source code to the PEER.

MuhammadSalah (Thu, 01 Feb 2018 00:11:27 GMT):
When you instantiate you go into that launching and building process.

douglasthiel (Thu, 01 Feb 2018 00:12:30 GMT):
what environment variables must be set in order to run 'peer chaincode install' ?? I'm getting an error thusly:

douglasthiel (Thu, 01 Feb 2018 00:12:32 GMT):
Error: Error getting endorser client chaincode: error trying to connect to local peer: remote error: tls: bad certificate

MuhammadSalah (Thu, 01 Feb 2018 00:13:16 GMT):
@douglasthiel best way to know that is to look at docker-compose yaml file.

MuhammadSalah (Thu, 01 Feb 2018 00:13:29 GMT):
Of one of those ready made samples corresponding to your peer

MuhammadSalah (Thu, 01 Feb 2018 00:13:42 GMT):
You will find some env variables for your CLI container

MuhammadSalah (Thu, 01 Feb 2018 00:13:53 GMT):
Usually I just map them in my terminal

MuhammadSalah (Thu, 01 Feb 2018 00:13:58 GMT):
with an export :)

MuhammadSalah (Thu, 01 Feb 2018 00:14:02 GMT):
to override them

MuhammadSalah (Thu, 01 Feb 2018 00:14:16 GMT):
having them on a text file to copy and paste

MuhammadSalah (Thu, 01 Feb 2018 00:14:19 GMT):
to switch between peers

douglasthiel (Thu, 01 Feb 2018 00:14:34 GMT):
I'm using a variant of the setGlobals function but I'm not exporting them

MuhammadSalah (Thu, 01 Feb 2018 00:15:04 GMT):
Are you developing over a client or CLI container?

MuhammadSalah (Thu, 01 Feb 2018 00:15:10 GMT):
Like NodeJS?

douglasthiel (Thu, 01 Feb 2018 00:15:10 GMT):
of course, my scripts echo everything to the terminal

douglasthiel (Thu, 01 Feb 2018 00:15:15 GMT):
CLI

MuhammadSalah (Thu, 01 Feb 2018 00:15:22 GMT):
then you gotta export

MuhammadSalah (Thu, 01 Feb 2018 00:15:36 GMT):
you export so the binaries can see these env variables

MuhammadSalah (Thu, 01 Feb 2018 00:15:45 GMT):
peer chaincode install

MuhammadSalah (Thu, 01 Feb 2018 00:15:53 GMT):
actually means you are calling the peer binary file :)

MuhammadSalah (Thu, 01 Feb 2018 00:16:18 GMT):
unless you are better with linux and you know someother way.

douglasthiel (Thu, 01 Feb 2018 00:16:22 GMT):
ok, that might be my issue, let me try that. I thought the binary would inherit the env.

MuhammadSalah (Thu, 01 Feb 2018 00:16:31 GMT):
But all I know, it fetches the configs from the env variables

MuhammadSalah (Thu, 01 Feb 2018 00:17:02 GMT):
Well if you wanna do it the cool way, you can do all variables inline.

MuhammadSalah (Thu, 01 Feb 2018 00:17:24 GMT):
var1=balbla var2=blabla2 peer chaincode install whatever you do :P

MuhammadSalah (Thu, 01 Feb 2018 00:17:37 GMT):
But for sure that's hectic

douglasthiel (Thu, 01 Feb 2018 00:18:05 GMT):
not my style :-)

MuhammadSalah (Thu, 01 Feb 2018 00:18:28 GMT):
well it suites if it's a variable or two

bh4rtp (Thu, 01 Feb 2018 00:18:31 GMT):
as fabric-1.1.0-alpha has been released, where can i read the next release plan?

MuhammadSalah (Thu, 01 Feb 2018 00:19:14 GMT):
anyway, just let us know if it solves your problem @douglasthiel

douglasthiel (Thu, 01 Feb 2018 00:21:53 GMT):
@MuhammadSalah — nope, exporting did not solve my issue

MuhammadSalah (Thu, 01 Feb 2018 00:22:22 GMT):
Okay, that's interesting so what kind of error you are getting?

douglasthiel (Thu, 01 Feb 2018 00:23:21 GMT):
Error: Error getting endorser client chaincode: error trying to connect to local peer: remote error: tls: bad certificate

douglasthiel (Thu, 01 Feb 2018 00:24:19 GMT):
the build and packaging seem to work

MuhammadSalah (Thu, 01 Feb 2018 00:24:42 GMT):
so it seems it's not env problem are you running over TLS?

douglasthiel (Thu, 01 Feb 2018 00:24:51 GMT):
yes, running over TLS

MuhammadSalah (Thu, 01 Feb 2018 00:25:06 GMT):
did you pass that tls true attribute?

MuhammadSalah (Thu, 01 Feb 2018 00:25:15 GMT):
the correct cert?

douglasthiel (Thu, 01 Feb 2018 00:25:16 GMT):
it's in the yaml files

MuhammadSalah (Thu, 01 Feb 2018 00:25:17 GMT):
etc

MuhammadSalah (Thu, 01 Feb 2018 00:25:21 GMT):
oh no

MuhammadSalah (Thu, 01 Feb 2018 00:25:24 GMT):
you have to pass it

MuhammadSalah (Thu, 01 Feb 2018 00:25:32 GMT):
let me copy you an example

MuhammadSalah (Thu, 01 Feb 2018 00:25:37 GMT):
one moment please

douglasthiel (Thu, 01 Feb 2018 00:25:41 GMT):
an example would be great

MuhammadSalah (Thu, 01 Feb 2018 00:25:53 GMT):
oui oui sec :)

douglasthiel (Thu, 01 Feb 2018 00:26:13 GMT):
trying to follow the Read the Docs samples but it's pretty confusing with the 2 environments mentioned dev and ops

MuhammadSalah (Thu, 01 Feb 2018 00:28:31 GMT):
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

MuhammadSalah (Thu, 01 Feb 2018 00:28:44 GMT):
hell yea, I had a hard time putting things together sir :)

MuhammadSalah (Thu, 01 Feb 2018 00:29:06 GMT):
$CORE_PEER_TLS_ENABLED is just "true"

douglasthiel (Thu, 01 Feb 2018 00:29:11 GMT):
not instantiate, install

douglasthiel (Thu, 01 Feb 2018 00:29:47 GMT):
yeah, dealing with 1.x releases is not easy

MuhammadSalah (Thu, 01 Feb 2018 00:30:32 GMT):
ohhh well

MuhammadSalah (Thu, 01 Feb 2018 00:30:39 GMT):
so you are stuck with the install

douglasthiel (Thu, 01 Feb 2018 00:30:53 GMT):
yup

MuhammadSalah (Thu, 01 Feb 2018 00:30:55 GMT):
uhmm I don't remember if it takes any variables

MuhammadSalah (Thu, 01 Feb 2018 00:31:00 GMT):
but let me double check.

douglasthiel (Thu, 01 Feb 2018 00:31:02 GMT):
2

douglasthiel (Thu, 01 Feb 2018 00:31:20 GMT):
here's mine: peer chaincode install -n $CORE_CHAINCODE_ID_NAME -v 1.0 -p $CORE_CHAINCODE_ID_NAME >&log.txt

douglasthiel (Thu, 01 Feb 2018 00:32:18 GMT):
export CORE_CHAINCODE_ID_NAME=investorapp

MuhammadSalah (Thu, 01 Feb 2018 00:32:57 GMT):
seems pretty legit

MuhammadSalah (Thu, 01 Feb 2018 00:33:03 GMT):
just check all the env variables

douglasthiel (Thu, 01 Feb 2018 00:33:04 GMT):
I also don't understand why the packaging material isn't part of the parameter set. :-(

MuhammadSalah (Thu, 01 Feb 2018 00:33:25 GMT):
-p is the path for your

MuhammadSalah (Thu, 01 Feb 2018 00:33:32 GMT):
source code

douglasthiel (Thu, 01 Feb 2018 00:33:46 GMT):
right

douglasthiel (Thu, 01 Feb 2018 00:33:56 GMT):
keep in mind I'm using 1.1.0

douglasthiel (Thu, 01 Feb 2018 00:34:00 GMT):
if [ $1 -eq $INVESTORPEER0 -o $1 -eq $INVESTORPEER1 ] ; then export CORE_PEER_LOCALMSPID="InvestorOrgMSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/users/Admin@investororg.finixn.com/msp export CORE_PEER_TLS_KEY_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/server.key export CORE_PEER_TLS_CERT_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/server.crt if [ $1 -eq $INVESTORPEER0 ]; then export CORE_PEER_ADDRESS=peer0.investororg.finixn.com:7052 else export CORE_PEER_ADDRESS=peer1.investororg.finixn.com:7052 fi fi

douglasthiel (Thu, 01 Feb 2018 00:34:36 GMT):
I double-checked all the paths so I must be missing something

MuhammadSalah (Thu, 01 Feb 2018 00:34:42 GMT):
well it was still the path for your source code at least I am sure about 1.1.0-preview

MuhammadSalah (Thu, 01 Feb 2018 00:34:50 GMT):
I have not explored the alpha yet

douglasthiel (Thu, 01 Feb 2018 00:35:49 GMT):
there are privacy features of the 1.1.0-preview that I know I'm going to need. It also eliminates some bugs (probably introduces some too, lol)

MuhammadSalah (Thu, 01 Feb 2018 00:36:33 GMT):
well two things you gotta be sure of

MuhammadSalah (Thu, 01 Feb 2018 00:36:40 GMT):
That you have access to the source code from your CLI

douglasthiel (Thu, 01 Feb 2018 00:36:47 GMT):
got that

MuhammadSalah (Thu, 01 Feb 2018 00:36:49 GMT):
if not just attach a volume

MuhammadSalah (Thu, 01 Feb 2018 00:37:02 GMT):
-p

douglasthiel (Thu, 01 Feb 2018 00:37:53 GMT):
well the peer install implicitly uses $GOPATH and then you have add to that /src/yourdirname

douglasthiel (Thu, 01 Feb 2018 00:39:15 GMT):
oh wait, I forgot the src part, retrying

MuhammadSalah (Thu, 01 Feb 2018 00:39:23 GMT):
okkk

MuhammadSalah (Thu, 01 Feb 2018 00:39:47 GMT):
just echo the gopath

MuhammadSalah (Thu, 01 Feb 2018 00:39:56 GMT):
and put whatever preceeds

MuhammadSalah (Thu, 01 Feb 2018 00:40:02 GMT):
I mean you know

MuhammadSalah (Thu, 01 Feb 2018 00:40:09 GMT):
your directory is a sub dir from the gopath

MuhammadSalah (Thu, 01 Feb 2018 00:40:13 GMT):
you just give it the subdir :)

MuhammadSalah (Thu, 01 Feb 2018 00:42:39 GMT):
let me know if anything pops up

douglasthiel (Thu, 01 Feb 2018 00:44:55 GMT):
same error

douglasthiel (Thu, 01 Feb 2018 00:44:57 GMT):
CORE_PEER_TLS_ROOTCERT_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/server.key CORE_CHAINCODE_ID_NAME=investorapp CORE_PEER_LOCALMSPID=InvestorOrgMSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/peers/peer0.investororg.finixn.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/fabric/peer/crypto/peerOrganizations/investororg.finixn.com/users/Admin@investororg.finixn.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=DEBUG CORE_PEER_ADDRESS=peer0.investororg.finixn.com:7052 GOPATH=/opt/gopath path=/opt/gopath/src/investorapp code is located at=/opt/gopath/src/investorapp Error: Error getting endorser client chaincode: error trying to connect to local peer: remote error: tls: bad certificate

MuhammadSalah (Thu, 01 Feb 2018 00:45:21 GMT):
did you try

MuhammadSalah (Thu, 01 Feb 2018 00:45:23 GMT):
with directly

MuhammadSalah (Thu, 01 Feb 2018 00:45:26 GMT):
github part?

douglasthiel (Thu, 01 Feb 2018 00:45:34 GMT):
=== seems like a connection error

douglasthiel (Thu, 01 Feb 2018 00:45:50 GMT):
GitHub part?

MuhammadSalah (Thu, 01 Feb 2018 00:46:04 GMT):
oh you got your src directly in gopath

MuhammadSalah (Thu, 01 Feb 2018 00:46:04 GMT):
okay

MuhammadSalah (Thu, 01 Feb 2018 00:46:13 GMT):
forget about what I just said sir.

douglasthiel (Thu, 01 Feb 2018 00:46:18 GMT):
yeah, points to the folder where the source is

MuhammadSalah (Thu, 01 Feb 2018 00:46:42 GMT):
hey quick question

MuhammadSalah (Thu, 01 Feb 2018 00:46:59 GMT):
did you up the CLI in same network?

MuhammadSalah (Thu, 01 Feb 2018 00:47:07 GMT):
CLI is connected to same docker network?

douglasthiel (Thu, 01 Feb 2018 00:47:13 GMT):
afaik, yes

MuhammadSalah (Thu, 01 Feb 2018 00:47:26 GMT):
okay bummer

MuhammadSalah (Thu, 01 Feb 2018 00:47:31 GMT):
uhmm thinking ..

douglasthiel (Thu, 01 Feb 2018 00:47:46 GMT):
just a Proof of Concept, not trying to look like production yet

MuhammadSalah (Thu, 01 Feb 2018 00:48:00 GMT):
nono

MuhammadSalah (Thu, 01 Feb 2018 00:48:15 GMT):
I just wanted to be sure that your CLI container is able to communicate with your network that was all

MuhammadSalah (Thu, 01 Feb 2018 00:48:20 GMT):
not criticizing the setup

douglasthiel (Thu, 01 Feb 2018 00:48:32 GMT):
right, np

MuhammadSalah (Thu, 01 Feb 2018 00:49:04 GMT):
change the peerID

douglasthiel (Thu, 01 Feb 2018 00:49:05 GMT):
setup is 1 orderer (no kafka yet), 3 orgs each with 2 peers, a CA for each org.

MuhammadSalah (Thu, 01 Feb 2018 00:49:05 GMT):
to

MuhammadSalah (Thu, 01 Feb 2018 00:49:08 GMT):
peer

MuhammadSalah (Thu, 01 Feb 2018 00:49:16 GMT):
or whatever ID

MuhammadSalah (Thu, 01 Feb 2018 00:49:23 GMT):
you gave to the peer you are acting on its behalf

douglasthiel (Thu, 01 Feb 2018 00:49:32 GMT):
say again?

MuhammadSalah (Thu, 01 Feb 2018 00:49:49 GMT):
CORE_PEER_ID=cli

MuhammadSalah (Thu, 01 Feb 2018 00:49:51 GMT):
this var

MuhammadSalah (Thu, 01 Feb 2018 00:49:53 GMT):
make it

MuhammadSalah (Thu, 01 Feb 2018 00:50:00 GMT):
CORE_PEER_ID=peer1org1

MuhammadSalah (Thu, 01 Feb 2018 00:50:02 GMT):
or whatever ID

MuhammadSalah (Thu, 01 Feb 2018 00:50:06 GMT):
you gave to the peer :)

douglasthiel (Thu, 01 Feb 2018 00:50:34 GMT):
I don't see the literal 'CORE_PEER_ID' anywhere

MuhammadSalah (Thu, 01 Feb 2018 00:50:42 GMT):
look up

MuhammadSalah (Thu, 01 Feb 2018 00:50:49 GMT):
in the env vars

MuhammadSalah (Thu, 01 Feb 2018 00:51:21 GMT):
just go find it from your yaml file

MuhammadSalah (Thu, 01 Feb 2018 00:51:24 GMT):
and export it

MuhammadSalah (Thu, 01 Feb 2018 00:51:25 GMT):
try again

douglasthiel (Thu, 01 Feb 2018 00:52:02 GMT):
echo $CORE_PEER_ID cli

MuhammadSalah (Thu, 01 Feb 2018 00:52:07 GMT):
yep

MuhammadSalah (Thu, 01 Feb 2018 00:52:24 GMT):
we want it to be equal to "peerwhatever"

MuhammadSalah (Thu, 01 Feb 2018 00:52:31 GMT):
definitely not CLI

MuhammadSalah (Thu, 01 Feb 2018 00:52:48 GMT):
not sure of your setup so check in your yaml

douglasthiel (Thu, 01 Feb 2018 00:52:49 GMT):
ic, so CORE_PEER_ID needs to be set always?

MuhammadSalah (Thu, 01 Feb 2018 00:52:59 GMT):
yep

MuhammadSalah (Thu, 01 Feb 2018 00:53:01 GMT):
I usually set it

MuhammadSalah (Thu, 01 Feb 2018 00:53:05 GMT):
so not sure

MuhammadSalah (Thu, 01 Feb 2018 00:53:08 GMT):
but you gotta try

douglasthiel (Thu, 01 Feb 2018 00:53:20 GMT):
that may be what I'm missing, let me retry and get right back to you

MuhammadSalah (Thu, 01 Feb 2018 00:53:26 GMT):
sure go ahead

zajanksk (Thu, 01 Feb 2018 00:58:17 GMT):
hey i have a question

zajanksk (Thu, 01 Feb 2018 00:59:10 GMT):
chaincode should be installed every peer? or just need one command per Org?

MuhammadSalah (Thu, 01 Feb 2018 00:59:34 GMT):
every peer on the channel

zajanksk (Thu, 01 Feb 2018 00:59:37 GMT):
should i command every each peers for installing chaincode??

MuhammadSalah (Thu, 01 Feb 2018 01:00:06 GMT):
yep

MuhammadSalah (Thu, 01 Feb 2018 01:00:15 GMT):
instantiate only once

zajanksk (Thu, 01 Feb 2018 01:00:46 GMT):
hm that's so unconfortable

MuhammadSalah (Thu, 01 Feb 2018 01:01:07 GMT):
well, it's reasonable as the admins of the peers are the ones responsible for delivering source code

MuhammadSalah (Thu, 01 Feb 2018 01:01:16 GMT):
so this process is blind.

MuhammadSalah (Thu, 01 Feb 2018 01:01:32 GMT):
instantiate goes through the blockchain

MuhammadSalah (Thu, 01 Feb 2018 01:01:47 GMT):
then these peers start deploying the code as chaincode instances over docker

MuhammadSalah (Thu, 01 Feb 2018 01:02:08 GMT):
they won't be able to instantiate whatever code if they don't have it

zajanksk (Thu, 01 Feb 2018 01:02:30 GMT):
okay thanks other question.

MuhammadSalah (Thu, 01 Feb 2018 01:02:51 GMT):
sure

zajanksk (Thu, 01 Feb 2018 01:04:02 GMT):
how can i "remove" chaincode? is it impossible cause block chain can not erase?

MuhammadSalah (Thu, 01 Feb 2018 01:05:35 GMT):
That's very tricky question.

MuhammadSalah (Thu, 01 Feb 2018 01:05:52 GMT):
but you can always just kill the container

zajanksk (Thu, 01 Feb 2018 01:06:10 GMT):
yeah

MuhammadSalah (Thu, 01 Feb 2018 01:06:11 GMT):
that means your peer will no longer be servicing the "chaincode"

MuhammadSalah (Thu, 01 Feb 2018 01:06:45 GMT):
or if you just want to keep servicing the data or whatever, you can update it according to your needs

zajanksk (Thu, 01 Feb 2018 01:06:48 GMT):
but it might be the chaincode that not used anymore

MuhammadSalah (Thu, 01 Feb 2018 01:07:19 GMT):
Well, you can always update it with a new chaincode

MuhammadSalah (Thu, 01 Feb 2018 01:07:35 GMT):
giving it a new version

MuhammadSalah (Thu, 01 Feb 2018 01:07:44 GMT):
and just replace entirely with whatever you want :0

zajanksk (Thu, 01 Feb 2018 01:07:48 GMT):
hm i think it's fool question .either

MuhammadSalah (Thu, 01 Feb 2018 01:08:03 GMT):
There is no such a thing like a fool question

MuhammadSalah (Thu, 01 Feb 2018 01:08:22 GMT):
speak up your mind, I am just an enthusiast as well no expert :D

MuhammadSalah (Thu, 01 Feb 2018 01:08:41 GMT):
we work stuff out here together

zajanksk (Thu, 01 Feb 2018 01:08:48 GMT):
have you ever done your own project with fabric?

zajanksk (Thu, 01 Feb 2018 01:09:05 GMT):
thank for telling like that

MuhammadSalah (Thu, 01 Feb 2018 01:09:05 GMT):
a real production project?

zajanksk (Thu, 01 Feb 2018 01:09:28 GMT):
em real, not-real but just not Sample tutorial thing?

MuhammadSalah (Thu, 01 Feb 2018 01:09:35 GMT):
ah yes few

MuhammadSalah (Thu, 01 Feb 2018 01:09:45 GMT):
and hopefully I am working on 2 production ones

MuhammadSalah (Thu, 01 Feb 2018 01:09:50 GMT):
but no clear vision about them yet

zajanksk (Thu, 01 Feb 2018 01:09:57 GMT):
cool

MuhammadSalah (Thu, 01 Feb 2018 01:10:08 GMT):
they can take long or not depends on the circumstances

zajanksk (Thu, 01 Feb 2018 01:10:29 GMT):
then

MuhammadSalah (Thu, 01 Feb 2018 01:10:34 GMT):
Soon we will know if the tech is reliable

zajanksk (Thu, 01 Feb 2018 01:11:16 GMT):
i don;t understand how connect between peers across the other network

zajanksk (Thu, 01 Feb 2018 01:11:29 GMT):
(physically on other server)

douglasthiel (Thu, 01 Feb 2018 01:11:36 GMT):
@MuhammadSalah — I restarted my network, tried again with the CORE_PEER_ID set, but received the same error: Error: Error getting endorser client chaincode: error trying to connect to local peer: remote error: tls: bad certificate

douglasthiel (Thu, 01 Feb 2018 01:11:50 GMT):
funny little thing tho...

zajanksk (Thu, 01 Feb 2018 01:11:59 GMT):
docker network is private. right?

MuhammadSalah (Thu, 01 Feb 2018 01:12:11 GMT):
@douglasthiel oh tell me, if you found out a teeny tiney mistake

MuhammadSalah (Thu, 01 Feb 2018 01:12:26 GMT):
because I am run out of whatever ideas it might be really.

douglasthiel (Thu, 01 Feb 2018 01:12:27 GMT):
I could only set the CORE_PEER_ID from the cli. The export did *not* work within the script. Really weird.

MuhammadSalah (Thu, 01 Feb 2018 01:12:51 GMT):
which script?

douglasthiel (Thu, 01 Feb 2018 01:13:05 GMT):
the script I run to install the chaincode

MuhammadSalah (Thu, 01 Feb 2018 01:13:24 GMT):
is it automated to start through your docker-network yaml?

MuhammadSalah (Thu, 01 Feb 2018 01:13:38 GMT):
like a start command?

MuhammadSalah (Thu, 01 Feb 2018 01:13:53 GMT):
@zajanksk docker network is private yes, it uses its own proxy.

douglasthiel (Thu, 01 Feb 2018 01:14:06 GMT):
no, I have several steps for generating certs, running the network, getting the channels running, then running chaincode (working on that last now)

MuhammadSalah (Thu, 01 Feb 2018 01:14:17 GMT):
@zajanksk you can always expose it, configure DNS and iptables and do the networking thing.

MuhammadSalah (Thu, 01 Feb 2018 01:14:25 GMT):
I am not so experienced about it :)

MuhammadSalah (Thu, 01 Feb 2018 01:14:50 GMT):
just put it inline in your script

MuhammadSalah (Thu, 01 Feb 2018 01:14:58 GMT):
CORE_PEER_ID=peer

MuhammadSalah (Thu, 01 Feb 2018 01:15:21 GMT):
this should override whatever scope your script is working on.

MuhammadSalah (Thu, 01 Feb 2018 01:16:03 GMT):
and probably just ditch the script work

MuhammadSalah (Thu, 01 Feb 2018 01:16:10 GMT):
just do it hardcore make sure things are working

MuhammadSalah (Thu, 01 Feb 2018 01:16:12 GMT):
export the variables

MuhammadSalah (Thu, 01 Feb 2018 01:16:15 GMT):
do the command

MuhammadSalah (Thu, 01 Feb 2018 01:16:25 GMT):
through an interactive shell of docker

zajanksk (Thu, 01 Feb 2018 01:16:54 GMT):
thanks,

zajanksk (Thu, 01 Feb 2018 01:17:03 GMT):
sorry, other one

MuhammadSalah (Thu, 01 Feb 2018 01:17:13 GMT):
@zajanksk you are welcome, ask as much as you want no need to be sorry.

MuhammadSalah (Thu, 01 Feb 2018 01:17:27 GMT):
you can also refer to a DevOps people

MuhammadSalah (Thu, 01 Feb 2018 01:17:39 GMT):
in case you need the details.

MuhammadSalah (Thu, 01 Feb 2018 01:17:44 GMT):
But I am not one of those so.

MuhammadSalah (Thu, 01 Feb 2018 01:18:08 GMT):
as a developer you should be concerned that things run on your docker all locally.

MuhammadSalah (Thu, 01 Feb 2018 01:18:16 GMT):
rather than that it's a deployment problem.

MuhammadSalah (Thu, 01 Feb 2018 01:18:23 GMT):
Not yours as a developer.

MuhammadSalah (Thu, 01 Feb 2018 01:18:32 GMT):
unless you wanna do it because you want to

MuhammadSalah (Thu, 01 Feb 2018 01:18:36 GMT):
that's a whole other thing

zajanksk (Thu, 01 Feb 2018 01:19:22 GMT):
yeah right.

douglasthiel (Thu, 01 Feb 2018 01:20:11 GMT):
haha, I have a list of sysadmin things for the sysadmin when he arrives, lol

joojis (Thu, 01 Feb 2018 01:20:54 GMT):
is there cross-channel protocol/mechanism in fabric? Or any plan?

zajanksk (Thu, 01 Feb 2018 01:21:13 GMT):
if the container is down whatever cause, the all data(chaincode, data, state ) is gone. right? then how can i keep that if component's down?

MuhammadSalah (Thu, 01 Feb 2018 01:21:31 GMT):
@joojis you can always communicate through the events sir. :)

zajanksk (Thu, 01 Feb 2018 01:22:08 GMT):
i know than docker Volumn set. but this is just for DATA not chaincode, anchor peer update things

zajanksk (Thu, 01 Feb 2018 01:22:13 GMT):
am i right?

MuhammadSalah (Thu, 01 Feb 2018 01:22:21 GMT):
@zajanksk oh no no, you can always persist whatever you want if you map it to a volume :)

MuhammadSalah (Thu, 01 Feb 2018 01:22:32 GMT):
then it's being written over your directory on your hard drive.

MuhammadSalah (Thu, 01 Feb 2018 01:22:49 GMT):
you can persist the database

MuhammadSalah (Thu, 01 Feb 2018 01:22:59 GMT):
you can persist almost anything you want I believe.

zajanksk (Thu, 01 Feb 2018 01:23:11 GMT):
excluding chaincode instance ?

MuhammadSalah (Thu, 01 Feb 2018 01:23:30 GMT):
chaincode instance doesn't store a thing

MuhammadSalah (Thu, 01 Feb 2018 01:23:34 GMT):
it only processes requests

zajanksk (Thu, 01 Feb 2018 01:23:40 GMT):
aha

MuhammadSalah (Thu, 01 Feb 2018 01:23:41 GMT):
the invoke query etc

MuhammadSalah (Thu, 01 Feb 2018 01:23:57 GMT):
data and blocks are on peer and couchDB

MuhammadSalah (Thu, 01 Feb 2018 01:24:05 GMT):
blocks are on peer

MuhammadSalah (Thu, 01 Feb 2018 01:24:09 GMT):
data in DB

MuhammadSalah (Thu, 01 Feb 2018 01:24:10 GMT):
obviously

zajanksk (Thu, 01 Feb 2018 01:26:09 GMT):
hm whatever it is, i have to build network again like create channel , join channel, install chaincode, instantiate chaincode things

MuhammadSalah (Thu, 01 Feb 2018 01:26:51 GMT):
@zajanksk if you are in a real production environment

MuhammadSalah (Thu, 01 Feb 2018 01:27:00 GMT):
if your peers went down, you are down.

MuhammadSalah (Thu, 01 Feb 2018 01:27:11 GMT):
the idea of multiple peers

zajanksk (Thu, 01 Feb 2018 01:27:11 GMT):
kkkkkkk

MuhammadSalah (Thu, 01 Feb 2018 01:27:13 GMT):
is resellience

MuhammadSalah (Thu, 01 Feb 2018 01:27:21 GMT):
get the point here?

MuhammadSalah (Thu, 01 Feb 2018 01:27:21 GMT):
:D

zajanksk (Thu, 01 Feb 2018 01:27:29 GMT):
yeah right

MuhammadSalah (Thu, 01 Feb 2018 01:27:51 GMT):
so hypothetically saying that you brought all these supporting nodes in the network down

MuhammadSalah (Thu, 01 Feb 2018 01:28:06 GMT):
well only God can help you :D

MuhammadSalah (Thu, 01 Feb 2018 01:28:28 GMT):
but realistically

MuhammadSalah (Thu, 01 Feb 2018 01:28:32 GMT):
not gonna happen

zajanksk (Thu, 01 Feb 2018 01:28:33 GMT):
right, container down just look like server is down

MuhammadSalah (Thu, 01 Feb 2018 01:28:52 GMT):
container is just an instance.

MuhammadSalah (Thu, 01 Feb 2018 01:28:56 GMT):
in production

MuhammadSalah (Thu, 01 Feb 2018 01:29:01 GMT):
you will be having tons of peers

MuhammadSalah (Thu, 01 Feb 2018 01:29:07 GMT):
on different geographical locations

MuhammadSalah (Thu, 01 Feb 2018 01:29:07 GMT):
etc

MuhammadSalah (Thu, 01 Feb 2018 01:29:12 GMT):
so if some are down

MuhammadSalah (Thu, 01 Feb 2018 01:29:14 GMT):
some are still up

MuhammadSalah (Thu, 01 Feb 2018 01:29:21 GMT):
till peers recover

MuhammadSalah (Thu, 01 Feb 2018 01:29:26 GMT):
and catch up with network

MuhammadSalah (Thu, 01 Feb 2018 01:29:29 GMT):
and cycle goes on

MuhammadSalah (Thu, 01 Feb 2018 01:29:38 GMT):
but ALL peers down at the same time?

MuhammadSalah (Thu, 01 Feb 2018 01:29:51 GMT):
come on, doesn't happen

zajanksk (Thu, 01 Feb 2018 01:30:03 GMT):
kk yeah right

zajanksk (Thu, 01 Feb 2018 01:30:18 GMT):
oh

zajanksk (Thu, 01 Feb 2018 01:32:14 GMT):
cryptongen and configtxgen is optional or not?

MuhammadSalah (Thu, 01 Feb 2018 01:32:24 GMT):
these are just development tools

MuhammadSalah (Thu, 01 Feb 2018 01:32:33 GMT):
for you to generate crytpo material

MuhammadSalah (Thu, 01 Feb 2018 01:32:42 GMT):
instead of doing stuff core-like openssl

MuhammadSalah (Thu, 01 Feb 2018 01:32:51 GMT):
and configtxgen

MuhammadSalah (Thu, 01 Feb 2018 01:32:58 GMT):
is just to help you configure a transaction

MuhammadSalah (Thu, 01 Feb 2018 01:33:04 GMT):
create a block and stuff

zajanksk (Thu, 01 Feb 2018 01:33:15 GMT):
then

MuhammadSalah (Thu, 01 Feb 2018 01:33:16 GMT):
instead of doing it programmatically.

MuhammadSalah (Thu, 01 Feb 2018 01:33:44 GMT):
then yea, optional but not wise not to use them.

MuhammadSalah (Thu, 01 Feb 2018 01:33:54 GMT):
unless you really know what you are doing.

zajanksk (Thu, 01 Feb 2018 01:35:39 GMT):
if i wanna create other channel, then do i just run earilyer step that Create channel

zajanksk (Thu, 01 Feb 2018 01:35:42 GMT):
?

MuhammadSalah (Thu, 01 Feb 2018 01:35:54 GMT):
yea but back earlier

MuhammadSalah (Thu, 01 Feb 2018 01:36:04 GMT):
you need to configure a channel transaction first :)

MuhammadSalah (Thu, 01 Feb 2018 01:36:13 GMT):
channel.tx

MuhammadSalah (Thu, 01 Feb 2018 01:36:14 GMT):
that you do

MuhammadSalah (Thu, 01 Feb 2018 01:36:17 GMT):
at beginning

MuhammadSalah (Thu, 01 Feb 2018 01:36:21 GMT):
then create a channel using it yes

MuhammadSalah (Thu, 01 Feb 2018 01:36:49 GMT):
want a good advice?

MuhammadSalah (Thu, 01 Feb 2018 01:36:58 GMT):
I suggest you use configtxlator tool

MuhammadSalah (Thu, 01 Feb 2018 01:37:05 GMT):
decode the protos

MuhammadSalah (Thu, 01 Feb 2018 01:37:09 GMT):
into readable JSONs

MuhammadSalah (Thu, 01 Feb 2018 01:37:14 GMT):
and view them with text editor

MuhammadSalah (Thu, 01 Feb 2018 01:37:20 GMT):
they will help you understand some stuff :)

zajanksk (Thu, 01 Feb 2018 01:37:27 GMT):
configure .yaml --.> create channel.tx --> create channel --> join channel

MuhammadSalah (Thu, 01 Feb 2018 01:37:38 GMT):
yep

MuhammadSalah (Thu, 01 Feb 2018 01:37:57 GMT):
that's the sequence

zajanksk (Thu, 01 Feb 2018 01:38:48 GMT):
i think there are so many enviorment variables, i fully confused because of them

MuhammadSalah (Thu, 01 Feb 2018 01:39:52 GMT):
just go easy with yourself, take your time to digest the process

zajanksk (Thu, 01 Feb 2018 01:40:56 GMT):
thanks for helping me, it was really helpful.

MuhammadSalah (Thu, 01 Feb 2018 01:41:03 GMT):
my pleasure.

zajanksk (Thu, 01 Feb 2018 01:41:15 GMT):
what time in your place?

MuhammadSalah (Thu, 01 Feb 2018 01:41:21 GMT):
3 41 AM

zajanksk (Thu, 01 Feb 2018 01:41:27 GMT):
wow so late

MuhammadSalah (Thu, 01 Feb 2018 01:41:40 GMT):
I am a night owl

zajanksk (Thu, 01 Feb 2018 01:41:53 GMT):
i'm in the morning.

zajanksk (Thu, 01 Feb 2018 01:42:49 GMT):
anyway thanks again. if i have a question, i upload here, please give me advice if you can.

MuhammadSalah (Thu, 01 Feb 2018 01:43:05 GMT):
I just pray to God that I have answers :)

MuhammadSalah (Thu, 01 Feb 2018 01:43:27 GMT):
and people are pretty helpful here, and you can find plenty of experts. :)

zajanksk (Thu, 01 Feb 2018 01:43:58 GMT):
yeah . you are one of them for me at least

zajanksk (Thu, 01 Feb 2018 01:44:00 GMT):
haha

MuhammadSalah (Thu, 01 Feb 2018 01:44:15 GMT):
not at all, I could be wrong :)

MuhammadSalah (Thu, 01 Feb 2018 01:44:58 GMT):
please refer to your direct messages

MuhammadSalah (Thu, 01 Feb 2018 01:45:19 GMT):
we should not flood the channel anymore.

joojis (Thu, 01 Feb 2018 01:48:55 GMT):
@MuhammadSalah Thank you and one more. Is "EventHub" in the SDK what I'm looking for?

MuhammadSalah (Thu, 01 Feb 2018 01:49:21 GMT):
yes

joojis (Thu, 01 Feb 2018 01:49:40 GMT):
Ok, Thank you!

MuhammadSalah (Thu, 01 Feb 2018 01:49:55 GMT):
there is also another thing

MuhammadSalah (Thu, 01 Feb 2018 01:50:06 GMT):
chaincodes can invoke another chaincodes

joojis (Thu, 01 Feb 2018 01:51:36 GMT):
That means, the chaincode in a specific channel can invoke the chaincode in another channel?

MuhammadSalah (Thu, 01 Feb 2018 01:52:50 GMT):
well let me break it down to you like this you can pretty much do that because you can import any package you want

MuhammadSalah (Thu, 01 Feb 2018 01:53:08 GMT):
thing is: 1- I am not so sure if that's a good practice.

MuhammadSalah (Thu, 01 Feb 2018 01:53:27 GMT):
2- I am not sure if the invocation will be happening once, since all chaincodes will be doing the same invocation

MuhammadSalah (Thu, 01 Feb 2018 01:53:39 GMT):
so events are the safe way to go.

joojis (Thu, 01 Feb 2018 01:53:48 GMT):
ahh

MuhammadSalah (Thu, 01 Feb 2018 01:54:05 GMT):
However, in theory yes you can do pretty much whatever you want.

MuhammadSalah (Thu, 01 Feb 2018 01:54:16 GMT):
just think in terms of decentralized computing

MuhammadSalah (Thu, 01 Feb 2018 01:54:26 GMT):
whatever you do is being done by X others

MuhammadSalah (Thu, 01 Feb 2018 01:54:55 GMT):
events are the good way of communication because it's only published once on behalf of all the chaincodes

MuhammadSalah (Thu, 01 Feb 2018 01:56:17 GMT):
However, a beautiful way of doing it is

MuhammadSalah (Thu, 01 Feb 2018 01:56:29 GMT):
lets say you have 2 chaincodes

MuhammadSalah (Thu, 01 Feb 2018 01:56:41 GMT):
you want chaincode A to invoke chaincode B

MuhammadSalah (Thu, 01 Feb 2018 01:56:59 GMT):
you can create a random wait in chaincode A

MuhammadSalah (Thu, 01 Feb 2018 01:57:17 GMT):
so all X instances processing this code will be waiting differently

MuhammadSalah (Thu, 01 Feb 2018 01:57:27 GMT):
only one of them will execute the invocation as a first.

MuhammadSalah (Thu, 01 Feb 2018 01:58:00 GMT):
but before hand the invocation of chaincode B

MuhammadSalah (Thu, 01 Feb 2018 01:58:07 GMT):
just check for event if the chaincode was invoked

MuhammadSalah (Thu, 01 Feb 2018 01:58:17 GMT):
if not then you are the first to invoke.

MuhammadSalah (Thu, 01 Feb 2018 01:58:35 GMT):
That's like having a mini consensus on which instance to be invoking :)

MuhammadSalah (Thu, 01 Feb 2018 01:58:46 GMT):
of course this could crash

MuhammadSalah (Thu, 01 Feb 2018 01:58:51 GMT):
but it deserves investigating :D

joojis (Thu, 01 Feb 2018 01:59:29 GMT):
Ok, got it, thank you for your explanation.

MuhammadSalah (Thu, 01 Feb 2018 01:59:35 GMT):
no problemo!

joojis (Thu, 01 Feb 2018 01:59:36 GMT):
It saved a lot of my time

MuhammadSalah (Thu, 01 Feb 2018 01:59:48 GMT):
glad to know

joojis (Thu, 01 Feb 2018 01:59:55 GMT):
:)

MuhammadSalah (Thu, 01 Feb 2018 02:00:03 GMT):
happy blockchaining :)

MuhammadSalah (Thu, 01 Feb 2018 02:01:41 GMT):
Actually better yet

MuhammadSalah (Thu, 01 Feb 2018 02:01:47 GMT):
is doing a random election

MuhammadSalah (Thu, 01 Feb 2018 02:01:55 GMT):
oh gosh it's a good feature to implement

MuhammadSalah (Thu, 01 Feb 2018 02:02:04 GMT):
I will be suggesting it

MuhammadSalah (Thu, 01 Feb 2018 02:02:09 GMT):
thank you for the question

MuhammadSalah (Thu, 01 Feb 2018 02:02:14 GMT):
here is the scenario :)

MuhammadSalah (Thu, 01 Feb 2018 02:03:38 GMT):
1- All instances will select some random number. 2- All instances publish that on some sort of event communication. 3- The lowest or the highest number is the one who gets to do the invocation. only draw back is you need to be sure that all chaincode instances were done electing.

MuhammadSalah (Thu, 01 Feb 2018 02:04:08 GMT):
There is a lot of ways on how to approach it, maybe if I refer to literature I may find a good solution :)

MuhammadSalah (Thu, 01 Feb 2018 02:04:17 GMT):
Just sharing my thoughts, good night.

MuhammadSalah (Thu, 01 Feb 2018 02:06:01 GMT):
and it would be more beautiful to link this to the consensus algorithm

MuhammadSalah (Thu, 01 Feb 2018 02:06:10 GMT):
like to let peers elect :)

MuhammadSalah (Thu, 01 Feb 2018 02:06:16 GMT):
then chaincode executes

MuhammadSalah (Thu, 01 Feb 2018 02:06:31 GMT):
it will be a steep price to pay for sure to be waiting that time.

MuhammadSalah (Thu, 01 Feb 2018 02:07:05 GMT):
But good people here may be able to come up with a solution who knows!

MuhammadSalah (Thu, 01 Feb 2018 02:07:20 GMT):
@joojis thanks for the question it lightened up my mind :)

MuhammadSalah (Thu, 01 Feb 2018 02:08:12 GMT):
however, I think just using the events suffices.

MuhammadSalah (Thu, 01 Feb 2018 02:08:31 GMT):
because if our problem if action is taken once, and only once.

MuhammadSalah (Thu, 01 Feb 2018 02:08:37 GMT):
then just better listen to an event.

MuhammadSalah (Thu, 01 Feb 2018 02:09:24 GMT):
but my scenario is valid if you don't want to publish the parameters that you invoke on the network :)

joojis (Thu, 01 Feb 2018 02:13:33 GMT):
glad that my question could be productive :) haha

vikimeng (Thu, 01 Feb 2018 04:02:36 GMT):
Right now the node SDK not support chaincode package and sign(http://hyperledger-fabric.readthedocs.io/en/release/chaincode4noah.html?highlight=package) Is there a plan to support?

ronald.petty (Thu, 01 Feb 2018 05:16:49 GMT):
I am running through byfn, just curious could someone explain the following peer channel create command? https://gist.githubusercontent.com/anonymous/27c6e2439ef03ba3869f57536cbd01a7/raw/26189e88da4cf3b1cc85d42278c3461eeead5c5a/channel.tx.md Just curious, if that is debug level output, how would debug an issue? It seems to only show signing information but nothing about transmission? Is that correct? Nothing is wrong in my example, but the debug logs don't seem that useful.

chandg12 (Thu, 01 Feb 2018 05:55:32 GMT):
Has joined the channel.

adarshsaraf123 (Thu, 01 Feb 2018 06:21:34 GMT):
Has joined the channel.

javrevasandeep (Thu, 01 Feb 2018 07:27:30 GMT):
Hi Guys. I am trying to subscribe chaincode events through node-sdk client using registerChaincodeEvent(chaincodeid, eventname, onevent, onerror)

javrevasandeep (Thu, 01 Feb 2018 07:28:13 GMT):
but getting the error Timeout - Failed to receive the chaincode event

javrevasandeep (Thu, 01 Feb 2018 07:28:43 GMT):
i tried to increase the timeout but even after waiting for longer time, it is throwing same erroe

Lucifer (Thu, 01 Feb 2018 07:35:05 GMT):
Hi, i am currently working on a chaincode which stores the data into the ledger using encryption, but whenever i try to instantiate the chaincode i get timeout error. I know sometimes we have to instantiate more than once so I tried it many times but it still returns timeout error. Then i tried instantiating the same chaincode without encryption and it got instantiated in first try. It is happening only when i try to instantiate my encryption chaincode. any idea?

username343 (Thu, 01 Feb 2018 08:49:31 GMT):
Hi, I'm working with interchaincode communcation. I have found that if a chaincode "A" calls a chaincode "B", and some changes are made to the world state of the chaincode "B" during this call, then the changes are committed to the ledger, only if both the chaincodes are on the same channel and the chaincode "B" is instantiated with the default endorsement policy. However, if we have specified a custom endorsement policy while instantiating the chaincode "B", that endorsement policy will not be fulfiled and hence the changes won't be commited to the ledger. Now can anyone help me find out if there is any way i can make sure that the changes made during the interchaincode communication are committed.

Vadim (Thu, 01 Feb 2018 08:50:24 GMT):
@username343 it won't work if chaincodes are on different channels

username343 (Thu, 01 Feb 2018 08:50:42 GMT):
hi @Vadim , thx for quick reply

username343 (Thu, 01 Feb 2018 08:51:04 GMT):
i know it wont work if the chaincodes are on different channels, but in my case the chaincodes are on the same channel

Vadim (Thu, 01 Feb 2018 08:51:54 GMT):
are you sure you get all necessary proposal responses?

username343 (Thu, 01 Feb 2018 08:53:17 GMT):
as I mentioned in the above scenario, i'm calling chaincode "B", from chaincode "A", I've the required endorsements for invoking the chaincode "A"

username343 (Thu, 01 Feb 2018 08:53:34 GMT):
and the chaincode B is being called using the util.InvokeChaincode() function

username343 (Thu, 01 Feb 2018 08:53:56 GMT):
i'm using util from github.com/hyperledger/fabric/common/util

Vadim (Thu, 01 Feb 2018 08:54:12 GMT):
what about endorsements that chaincode B requires?

Vadim (Thu, 01 Feb 2018 08:54:30 GMT):
have you tried to send to that peers too?

username343 (Thu, 01 Feb 2018 08:55:10 GMT):
I'm not aware of the method with which i can do that while calling the chaincode B from chaincode a is there any other function

username343 (Thu, 01 Feb 2018 08:56:10 GMT):
i'm not aware if i can even do that

username343 (Thu, 01 Feb 2018 08:56:28 GMT):
I mean how do i collect endorsements by calling a chaincode from a chaincode

Vadim (Thu, 01 Feb 2018 08:58:04 GMT):
so chaincode A requires endorsements from some peers from set A, chaincode B requires endorsements from the set of peers B, have you tried to send invocation of chaincode A (which invokes B) to the set of peers A and B (i.e. union)?

Vadim (Thu, 01 Feb 2018 08:58:04 GMT):
so chaincode A requires endorsements from some peers from set A, chaincode B requires endorsements from the set of peers B, have you tried to send invocation of chaincode A (which invokes B ) to the set of peers A and B (i.e. union)?

Vadim (Thu, 01 Feb 2018 08:58:04 GMT):
so chaincode A requires endorsements from some peers from set A, chaincode B requires endorsements from the set of peers B, have you tried to send invocation of chaincode A (which invokes B ) to the set of peers A and B (i.e. union of both)?

username343 (Thu, 01 Feb 2018 09:00:03 GMT):
I'll try that and get back to you, but since chaincode a is not installed on set of peers of B, how will those peers handle the requests made for the chaincode A

Vadim (Thu, 01 Feb 2018 09:01:38 GMT):
well they wont, I just asked you to try if that works

Vadim (Thu, 01 Feb 2018 09:02:20 GMT):
because it makes sense that chaincode B requires that when it's state is modified, it needs its own endorsement policy to be fulfilled

username343 (Thu, 01 Feb 2018 09:03:04 GMT):
but that will require the client to handle the endorsements for the chaincode B separately and send them to the orderer, don't you think?

Vadim (Thu, 01 Feb 2018 09:04:03 GMT):
no, why?

Vadim (Thu, 01 Feb 2018 09:05:06 GMT):
I suggested that if A needs org1 and org2, and B org2 and org3, then when you invoke A which invokes B, you need to send proposals to org1, org2, org3

username343 (Thu, 01 Feb 2018 09:06:52 GMT):
let me try something else and i'll get back to you

username343 (Thu, 01 Feb 2018 09:14:47 GMT):
nope, it doesn't work.

username343 (Thu, 01 Feb 2018 09:16:17 GMT):
i tried what you said but unfortunately it doesn't work. I'm not able to imagine who handles the endorsements in case if a chaincode is being ivoked from a chaincode, i mean will the chaincode will gather the endorsements by itself (for invoking the second chaincode) and how will those endorsements be handed over to the orderer.

username343 (Thu, 01 Feb 2018 09:18:22 GMT):
I assume you @Vadim you were thinking that even though one organization for each smart contract doesn't have the chaincode installed, it's error response will be neglected because we are fulfilling the endorsements policy with other two orgs, but how will the endorsements for the callee chaincode ("B") will be obtained and transfered to the orderer

Vadim (Thu, 01 Feb 2018 09:19:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9HuqvYLfZSa3mFQFk) I did not assume that, I assumed that it is installed. I just wanted you to try to install the cc on all orgs and check whether that works or not.

Vadim (Thu, 01 Feb 2018 09:20:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QpjacFYZwYwmFgiuP) obviously it won't do that

Vadim (Thu, 01 Feb 2018 09:21:12 GMT):
@username343 can you elaborate whether you tried 1) to install cc on all peers 2) send proposals to all peers which satisfy endorsements of both chaincode A and B?

username343 (Thu, 01 Feb 2018 09:21:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pFXdv72TwcmkQ3qdw) lol magical optimism on my part

Vadim (Thu, 01 Feb 2018 09:21:44 GMT):
@username343 when cc invokes another cc, it does it locally, i.e. peer must have both chaincodes installed

username343 (Thu, 01 Feb 2018 09:23:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D68WPHCD299ieSLWm) interesting, can you point me towards some documentation on this. I thought routing the call was handled by the system chaincode irrespective of whether the chaincode is installed on current peer or not. I will try this

Vadim (Thu, 01 Feb 2018 09:25:35 GMT):
@username343 https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66-L80

username343 (Thu, 01 Feb 2018 09:25:44 GMT):
thx

username343 (Thu, 01 Feb 2018 09:39:45 GMT):
hey @Vadim if i install the caller chaincode i.e. chaincode "A" on all the peers from where the chaincode B requires endorsements i'm getting the transaction through to the orderer and it's being commited to the legder. But how

username343 (Thu, 01 Feb 2018 09:39:45 GMT):
hey @Vadim if i install the caller chaincode i.e. chaincode "A" on all the peers from where the chaincode B requires endorsements i'm getting the transaction through to the orderer and it's being commited to the legder. But how?

Vadim (Thu, 01 Feb 2018 09:40:27 GMT):
you mean how endorsement policy for B is fulfilled?

username343 (Thu, 01 Feb 2018 09:40:32 GMT):
yes

Vadim (Thu, 01 Feb 2018 09:41:36 GMT):
well A needs signatures from org1, org2. B needs from org2 and org3. When you send to all 3 orgs, the TX will have signatures from all of them, so the policies for A and B are fulfilled.

username343 (Thu, 01 Feb 2018 09:42:36 GMT):
@Vadim thanks for help

username343 (Thu, 01 Feb 2018 09:43:15 GMT):
but what happens when we need to keep the smart contract separate, in case we need to protect the business logic from other party

Vadim (Thu, 01 Feb 2018 09:43:32 GMT):
well as you can see, you can't do it

username343 (Thu, 01 Feb 2018 09:43:54 GMT):
well then that solves my other problems as well,

Vadim (Thu, 01 Feb 2018 09:44:05 GMT):
perhaps you need somehow to separate calls to A and B

Vadim (Thu, 01 Feb 2018 09:44:13 GMT):
i.e. don't do InvokeChaincode

username343 (Thu, 01 Feb 2018 09:44:18 GMT):
when i wanted to make sure that a chaincode is communcating with the correct version of another chaincode

Vadim (Thu, 01 Feb 2018 09:44:36 GMT):
I think this is handled by fabric

username343 (Thu, 01 Feb 2018 09:44:51 GMT):
yes, my doubts about that are clear now

Vadim (Thu, 01 Feb 2018 09:45:08 GMT):
e.g. try to update the chaincode, but keep an old chaincode on some peer and see what happens when you invoke it

username343 (Thu, 01 Feb 2018 09:45:30 GMT):
it gives me error, saying that a new version is not found

username343 (Thu, 01 Feb 2018 09:45:43 GMT):
i think lscc handles that on the peer when the new chaincode is not being updated

Vadim (Thu, 01 Feb 2018 09:45:55 GMT):
well yes, as you can see, the fabric handles that

username343 (Thu, 01 Feb 2018 09:46:43 GMT):
apart from this, if i delete a key in couchdb, then how can i regenerate the state of the couchdb from the leger

username343 (Thu, 01 Feb 2018 09:46:43 GMT):
apart from this, if i delete a key in couchdb, then how can i regenerate the state of the couchdb from the ledger

Vadim (Thu, 01 Feb 2018 09:47:57 GMT):
not sure exactly... have you tried to drop the whole couchdb?

Vadim (Thu, 01 Feb 2018 09:48:26 GMT):
also, clearing the peer's blockchain should also cause it to resync

Vadim (Thu, 01 Feb 2018 09:48:26 GMT):
also, clearing the peer's blockchain and restarting it should also cause it to resync

username343 (Thu, 01 Feb 2018 09:49:56 GMT):
not yet, i must destroy it:nerd:

praveencastelino (Thu, 01 Feb 2018 10:53:54 GMT):
Has joined the channel.

username343 (Thu, 01 Feb 2018 11:25:21 GMT):
@Vadim i deleted the couchdb database and restarted the couchdb container it recreated the database

GavinPacini (Thu, 01 Feb 2018 11:30:05 GMT):
Hi all, playing around with couchdb. My understanding is that it replaces goleveldb as the state db. What is to stop someone changing the underlying data in couchdb? Thanks!

Vadim (Thu, 01 Feb 2018 11:35:12 GMT):
@GavinPacini nothing to stop, but as the data is replicated across peers, the faulty peer will deliver results which will differ from other peers. So proper endorsement policy should protect the network against malicious state db changes.

username343 (Thu, 01 Feb 2018 11:38:16 GMT):
hey @vadim, have you worked with the encryption in fabric v1.1.0-preview

username343 (Thu, 01 Feb 2018 11:38:16 GMT):
hey @Vadim have you worked with the encryption in fabric v1.1.0-preview

GavinPacini (Thu, 01 Feb 2018 11:48:25 GMT):
@Vadim Understood, thanks!

Vadim (Thu, 01 Feb 2018 11:53:14 GMT):
@username343 I'm aware of the library, but did not use it directly

username343 (Thu, 01 Feb 2018 11:54:54 GMT):
i've worked with that example, now i was passing the enckey as a transient field. it generates a 32byte array , but the when i convert the enckey string to []byte it gets 44 []byte array

username343 (Thu, 01 Feb 2018 11:55:10 GMT):
how do i use the key written in the chaincode instead of transient field

Vadim (Thu, 01 Feb 2018 11:55:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rejPyYE9EhP23sCvg) what do you mean "written in chaincode"?

username343 (Thu, 01 Feb 2018 12:23:30 GMT):
i was taking the key from the transient field, however i want to maintain that key in the chaincode as a const field

Vadim (Thu, 01 Feb 2018 12:24:52 GMT):
@username343 you want to keep the encryption key in the chaincode's source code?

username343 (Thu, 01 Feb 2018 12:25:14 GMT):
that is what i am trying

Vadim (Thu, 01 Feb 2018 12:26:00 GMT):
that does not seem to be secure

username343 (Thu, 01 Feb 2018 12:27:01 GMT):
the chaincode is only shared with the peers of the organizations. I've assumed that the chaincode can not be accessed by any peer which is not a member of that channel, or even the peer on which that chaincode has not been installed

Vadim (Thu, 01 Feb 2018 12:27:36 GMT):
if that key gets compromised, all data gets compromised too

username343 (Thu, 01 Feb 2018 12:27:48 GMT):
yes, i'm aware of that

Vadim (Thu, 01 Feb 2018 12:28:05 GMT):
anyway, how do you get "the enckey string"?

username343 (Thu, 01 Feb 2018 12:29:04 GMT):
the reason i thought of that stupid idea is, that the transaction is gonna be initiated from the chaincode A, however, all the read/write sets generated from the chaincode B need to be encrypted. But the problem is i'm not sure how wil i provide the transient field to the chaincode "B" (callee chaincode) if the transaction is being invoked on the chaincode "A"(caller chaincode)

Lucifer (Thu, 01 Feb 2018 12:29:40 GMT):
there will be no purpose of encryption if the chaincode stores the enckey

Vadim (Thu, 01 Feb 2018 12:30:06 GMT):
@username343 I think you can just read the transient field

username343 (Thu, 01 Feb 2018 12:30:07 GMT):
thanks for your input @Lucifer as i've writen above my requirement is a bit complex

username343 (Thu, 01 Feb 2018 12:30:30 GMT):
so even if the transaction is for the chaincode A, the chaincode B can call the getTransientField()

Vadim (Thu, 01 Feb 2018 12:31:33 GMT):
yes, it has the same tx context

username343 (Thu, 01 Feb 2018 12:34:43 GMT):
thanks @Vadim , i was thinking about trying that

username343 (Thu, 01 Feb 2018 12:36:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n28iufnmWEAXAk8GM) I remember reading this line

suryaiiit123 (Thu, 01 Feb 2018 14:11:47 GMT):
Is there anyone tries this https://github.com/hyperledger/fabric-sdk-rest

suryaiiit123 (Thu, 01 Feb 2018 14:12:31 GMT):
I'm struggling to use for hyperledger/fabric-samples

javrevasandeep (Thu, 01 Feb 2018 14:38:48 GMT):
can anyone please let me know how to balance the load between peers. I mean incoming requests should randomly choose available peers for invokation and query

jrosmith (Thu, 01 Feb 2018 15:06:40 GMT):
@javrevasandeep you can select which peer targets the transaction proposal goes to via the sdk

paulconn (Thu, 01 Feb 2018 16:07:22 GMT):
Has joined the channel.

paulconn (Thu, 01 Feb 2018 16:08:23 GMT):
I'm having some trouble with the instructions @ https://hyperledger-fabric.readthedocs.io/en/release/samples.html#binaries

paulconn (Thu, 01 Feb 2018 16:09:02 GMT):
On Win 7, using the Docker Quickstart Terminal, when executing "curl -sSL https://goo.gl/byy2Qj | bash -s 1.0.5" (for platform specific libs)

paulconn (Thu, 01 Feb 2018 16:09:30 GMT):

Clipboard - February 1, 2018 4:09 PM

paulconn (Thu, 01 Feb 2018 16:09:50 GMT):
Causes the above, apologies for the stretched image.

Alcabal88 (Thu, 01 Feb 2018 16:50:36 GMT):
Has joined the channel.

suryaiiit123 (Thu, 01 Feb 2018 17:44:07 GMT):
better you can try using linux

suryaiiit123 (Thu, 01 Feb 2018 17:44:17 GMT):
or virtual linux ubuntu

suryaiiit123 (Thu, 01 Feb 2018 17:44:38 GMT):
in windows those commands not supported much

suryaiiit123 (Thu, 01 Feb 2018 17:45:32 GMT):
or try by giving root access to curl

suryaiiit123 (Thu, 01 Feb 2018 17:45:38 GMT):
than you will get

suryaiiit123 (Thu, 01 Feb 2018 17:46:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8joK4vNiGT927qPM4) @paulconn hope it will work

Masthanbee 1 (Thu, 01 Feb 2018 18:18:12 GMT):
Has joined the channel.

ronald.petty (Thu, 01 Feb 2018 18:20:54 GMT):
@paulconn what does this show. curl .... | head -2

ronald.petty (Thu, 01 Feb 2018 18:22:52 GMT):
Actually it seems your version of curl is not doing a redirect.

ronald.petty (Thu, 01 Feb 2018 18:23:14 GMT):
try it without the "| bash ...". You will see its HTML and not a shell scipt

ronald.petty (Thu, 01 Feb 2018 18:23:38 GMT):
You can always do it manually, pull out the Location header (I did it for you here)

ronald.petty (Thu, 01 Feb 2018 18:23:45 GMT):
curl https://raw.githubusercontent.com/hyperledger/fabric/v1.0.5/scripts/bootstrap.sh | bash -s 1.0.5

ronald.petty (Thu, 01 Feb 2018 18:57:54 GMT):
Is there any interest in automating the removal of the chaincode images for byfn/docker-compose? I suspect they are not removed due to compose not knowing about transitively started images, but we could do something like launch a cleanup image that simply removes the others. Just a thought.

KathyXu (Thu, 01 Feb 2018 19:31:46 GMT):
Has anyone tried or know anything about the High-Thoughput example under fabric samples (https://github.com/hyperledger/fabric-samples/tree/release/high-throughput)? The new model stores the deltas of a value and creates a new row for each transaction instead of always updating the single row in world state. The deltas are merged later on when the final value is required. It sounds great in theory however I don't see the results. When I send a large number of transactions under this method, not all of them are stored and some are still dropped just like what happens with the traditional way. Why is this so?

aceyin (Fri, 02 Feb 2018 01:38:18 GMT):
@AshishMishra 1 thanks for your answer, and your questions are very good, but as a fabric beginner i cannot answer it :sweat_smile: . @Vadim

aceyin (Fri, 02 Feb 2018 01:38:18 GMT):
@AshishMishra 1 thanks for your answer, and your questions are very good, but as a fabric beginner i cannot answer it :sweat_smile: .

aceyin (Fri, 02 Feb 2018 01:38:18 GMT):
@AshishMishra 1 thanks for your answer, and your questions are very good, but as a fabric beginner i cannot answer it :sweat_smile: , hope the experts in this channel can give us more detailed answer.

bm (Fri, 02 Feb 2018 05:20:40 GMT):
Has joined the channel.

ctan (Fri, 02 Feb 2018 06:55:54 GMT):
Has joined the channel.

subigyaupadhyay (Fri, 02 Feb 2018 09:11:26 GMT):
Has joined the channel.

subigyaupadhyay (Fri, 02 Feb 2018 09:14:37 GMT):
I tried to include multiple pairs in my network through connection profile (connection.js) to deploy my composer to single fabric organization. and it is giving me "Duplicate Peer: peer with this url already exists" . Any idea what this is?

subigyaupadhyay (Fri, 02 Feb 2018 09:14:37 GMT):
I tried to include multiple peers in my network through connection profile (connection.js) to deploy my composer to single fabric organization. and it is giving me "Duplicate Peer: peer with this url already exists" . Any idea what this is?

hushun (Fri, 02 Feb 2018 09:14:41 GMT):
Has joined the channel.

mickK (Fri, 02 Feb 2018 10:05:56 GMT):
Has joined the channel.

mickK (Fri, 02 Feb 2018 10:07:49 GMT):
I developed a Little test application for hyperledger, which runs currently on one node. But it is not clear to me, how now to build the Network behind it. Can you Point me to a good documentation for that. I did not find a lot which was usable for me.

Vadim (Fri, 02 Feb 2018 10:08:34 GMT):
@mickK http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

changu02 (Fri, 02 Feb 2018 12:14:31 GMT):
Has joined the channel.

username343 (Fri, 02 Feb 2018 13:47:08 GMT):
@mickK are you comfortable with setting up the crypto material for the organization network

username343 (Fri, 02 Feb 2018 13:47:34 GMT):
if you can do that then the rest of the task is relatively easier

username343 (Fri, 02 Feb 2018 13:47:55 GMT):
setting up fabric-ca and settling the msp directory is what you should look first

mna2016 (Fri, 02 Feb 2018 14:57:18 GMT):
Hi All, I am getting the following error while trying to download fabric images: ADMIN@M951-PC05NTJ5 MINGW64 ~/fabric-samples (master) $ curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha bash: line 1: syntax error near unexpected token `newline' bash: line 1: `' ADMIN@M951-PC05NTJ5 MINGW64 ~/fabric-samples (master) $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts /bootstrap-1.0.0.sh | bash bash: line 1: 404:: command not found Need urgent help in this regards. Many Thanks.

mna2016 (Fri, 02 Feb 2018 14:57:54 GMT):
I am running these commands from "docker toolbox command line" on windows 7

paulconn (Fri, 02 Feb 2018 16:36:41 GMT):
@ronald.petty Thanks for the advice, thank resolved.

AkshayJindal (Fri, 02 Feb 2018 20:11:40 GMT):
Hello. If a client submits a transaction which will just query the ledger and produce some output, will this submitted transaction go to ordering service after the generating R/W sets by endorsing peer? Please explain this.

jeffgarratt (Fri, 02 Feb 2018 21:11:58 GMT):
@AkshayJindal this is completely up to the client to decide (per the application requirements)

vdods (Sat, 03 Feb 2018 00:43:24 GMT):
Hi all, there has been a nice whitepaper recently published on Fabric ( https://arxiv.org/abs/1801.10228 ) in which some benchmarking is done using an app called 'fabcoin', but there's no link to the source code that I can find (in the paper or by googling a bit). Is this source code available anywhere? If not, I'd like to request that it be open-sourced and published.

ronald.petty (Sat, 03 Feb 2018 06:46:16 GMT):
@vdods thanks for the link

KnightTuring (Sat, 03 Feb 2018 10:23:21 GMT):
Has joined the channel.

Rapture (Sat, 03 Feb 2018 16:55:30 GMT):
Hi guys, I have a question that I hope someone will be able to assist with: I've currently used the fabric-ca scripts in the fabric-samples to generate a network with working CA's. Now I want to enroll new peers (and users) into organization myself, but I'm not sure how to do this. I believe there is an fabric-ca-client enroll command, however I'm not sure how to use the appropriate identity and how to make sure that these peers land in the correct organizations. Anyone have some experience/knowledge on this and can help me out? Thanks!

varun-raj (Sun, 04 Feb 2018 04:05:58 GMT):
Has joined the channel.

varun-raj (Sun, 04 Feb 2018 04:06:07 GMT):
Can someone explain me what all possible fields we can pass to ClientIdentity getAttributeValue?

teopistalu (Sun, 04 Feb 2018 09:09:36 GMT):
Has joined the channel.

navalsinghIBM (Sun, 04 Feb 2018 11:02:45 GMT):
Has joined the channel.

navalsinghIBM (Sun, 04 Feb 2018 11:20:16 GMT):
User User_2 added by navalsinghIBM.

toddinpal (Sun, 04 Feb 2018 13:06:13 GMT):
Do the client SDKs verify the signature of messages received? Do they verify the signature of the sender's certificate?

krisava (Sun, 04 Feb 2018 17:23:48 GMT):
Hi, This is regarding the "Blockchain Instance on Bluemix", in the "Blockchain-GUI". What is the purpose of the "Certificates tab under Members"? As I could able to post a transaction or read a transaction from the client connecting to the "Peer" without even uploading the "Client side certificate" on to the "Certificates tab under Members". So, I am not sure what is the purpose of "Certificates tab under Members". And how is it secure to control the client to Post or Read transactions from Blockchain? Thanks.

ajithjosek (Sun, 04 Feb 2018 20:26:26 GMT):
Has joined the channel.

SB85 (Sun, 04 Feb 2018 21:58:39 GMT):
I have a question. If I am running fabric in my local system , do I need to be connected to internet? I thought I don't need to be but when starting a network if my wireless is off and I am not connected Internet ,it's giving me error.

wengleboy (Mon, 05 Feb 2018 01:11:29 GMT):
Has joined the channel.

aceyin (Mon, 05 Feb 2018 01:18:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WhrDigMp5Sxpq5dLK) @SB85 the only thing that need network is pulling fabric docker images. So if your starting script includes the step "pulling docker images from docker hub", then you need to connect to the network. To avoid this, you can save your docker images in your local system and then modify your fabric starting script, remove the "pulling docker images" step.

aceyin (Mon, 05 Feb 2018 01:18:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WhrDigMp5Sxpq5dLK) @SB85 the only thing that need network is pulling fabric docker images. So if your starting script includes the step "pulling docker images from docker hub", then you need to connect to the network. To avoid this, you can save your docker images locally and then modify your fabric starting script, remove the "pulling docker images" step.

SB85 (Mon, 05 Feb 2018 01:26:19 GMT):
okay. So I was working on installing development environment (https://hyperledger.github.io/composer/installing/development-tools.html) . I ran ./downloadFabric.sh script. It pulled all the required images. But when I am checking docker-compose.yml file It is using the image file. version: '2' services: ca.org1.example.com: image: hyperledger/fabric-ca:$ARCH-1.0.4

SB85 (Mon, 05 Feb 2018 01:27:06 GMT):
I am not understanding this part. Is it using already pulled image or directly trying to get it from docker hub?

aceyin (Mon, 05 Feb 2018 01:28:34 GMT):
you can run `docker images` to check if all the docker images have been download, if yes, then there is no need to download them again.

SB85 (Mon, 05 Feb 2018 01:29:14 GMT):
it's downloaded.

SB85 (Mon, 05 Feb 2018 01:32:00 GMT):
I am trying to understand In docker-compose file , the statement Image: hyperledger/fabric-ca:$ARCH-1.0.4. Is it reading from my downloaded images or reading from docker hub?

aceyin (Mon, 05 Feb 2018 01:33:32 GMT):
docker will check the images from your local system, if no images found, it will download the images from docker hub.

SB85 (Mon, 05 Feb 2018 01:35:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9r88Z2rgJZX7nXBf6) @aceyin alright. Thank you.Can you tell me where can I go and check those images? I don't know where these are downloaded.

aceyin (Mon, 05 Feb 2018 01:37:58 GMT):
you can use "docker images" to show all the images in your local system, and i think there is no need to know where the images file stored, since the image files are managed by docker. and if you really want to know, you can check the docker options to see where the images are saved.

SB85 (Mon, 05 Feb 2018 01:40:01 GMT):
Great. Thanks.

aceyin (Mon, 05 Feb 2018 01:41:32 GMT):
welcome. i am also a new beginner of hyperledger fabric. here are some memos i wrote in my daily study of fabric, hope it can help you: https://github.com/aceyin/hyperledger-memo/blob/master/crypto-config.xmind

wengleboy (Mon, 05 Feb 2018 02:25:37 GMT):
Hi, I see this video on fabric website https://www.youtube.com/watch?v=js3Zjxbo8TM How can I implement an demo like that? After reading through fabric docs and run some examples, I still has no clue where to start building a network where private transaction can work. I see you introduce private transaction as a core feature of fabric but it has no example, demo... :(

aceyin (Mon, 05 Feb 2018 02:33:07 GMT):
i am currently studying this demo: https://github.com/IBM/build-blockchain-insurance-app

changu02 (Mon, 05 Feb 2018 03:26:42 GMT):
I am curious that I understand rightly about anchor peer

changu02 (Mon, 05 Feb 2018 03:27:54 GMT):
I think that anchor peer is a kind of data hub that helps peers in a same channel but in different orgs communicate

changu02 (Mon, 05 Feb 2018 03:28:54 GMT):
So anchor peer must belong to all channels of org that it belongs

changu02 (Mon, 05 Feb 2018 03:29:10 GMT):
is it right?

username343 (Mon, 05 Feb 2018 05:47:59 GMT):
Is it possible to invoke a chaincode installed on peer b from a chaincode installed on peer a, is it in the roadmap? (I know right now the chaincodes are invoked locally)

username343 (Mon, 05 Feb 2018 05:52:12 GMT):
@Rapture, settle the crypto materials for your network according to the msp directory structure. Initialize a ca for an organization, generate the peer certificates and users certificates using that ca for that particular organization

Taffies (Mon, 05 Feb 2018 06:25:16 GMT):
Hi. I'm having some trouble with eventhub.. When I try to invoke my chaincode I'm getting this error: `info: [EventHub.js]: _connect - options {"grpc.max_receive_message_length":-1,"grpc.max_send_message_length":-1}` `Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: 12 UNIMPLEMENTED: unknown service protos.Events` Does anyone have any inkling of what might be the issue?

Taffies (Mon, 05 Feb 2018 06:53:15 GMT):
Context: I'm modifying this code from fabcar: https://github.com/hyperledger/fabric-samples/blob/6a5a1c3183deb06b22692a809fc056cb39bc5495/fabcar/invoke.js to allow me to invoke from one virtual machine to another.

gen_el (Mon, 05 Feb 2018 07:32:55 GMT):
Hi, i have a question. I have 2 networks `N1 (with 1 orderer, Org1MSP, ca.org1msp and peer.org1msp)` and `N2 (with 1 orderer, Org2MSP, ca.org2msp, and peer.org2msp)`. N1 has a channel `org1channel` and Org2MSP wants to join it. How do i get this done? I have added the `Org2MSP` to `N1` and `peer.org2msp` can fetch the channel genesis block from orderer of `N1`. However, when `peer.org2msp` tries to join the channel using the fetched block, it complains that the `Org1MSP is unknown`. Am i missing a step? Like an Anchor peer update?

DmitryNovenkykh (Mon, 05 Feb 2018 09:10:43 GMT):
Hi everyone! Is there any example of updating chaincode in balance transfer example? Would be appreciated for any help =)

DmitryNovenkykh (Mon, 05 Feb 2018 09:10:43 GMT):
Hi everyone! Is there any example of upgrading chaincode from node SDK in balance transfer example? Would be appreciated for any help =)

rbole (Mon, 05 Feb 2018 13:13:47 GMT):
Hi, one question regarding HLF vs hyperledger-composer. Which version should be used to make a production ready application?

damodaranp (Mon, 05 Feb 2018 13:30:42 GMT):
Has joined the channel.

bingo1234 (Mon, 05 Feb 2018 14:55:01 GMT):
Has joined the channel.

bingo1234 (Mon, 05 Feb 2018 15:04:38 GMT):
Hi everyone ,i am beginner and i have few questions for you all. Is hyperledger fabric hosted by the linux foundation as in is hosted on a server ? Do we push our application with the blockchain network unto a server or only the application.Thanks

Vadim (Mon, 05 Feb 2018 15:05:57 GMT):
@bingo1234 no, its not hosted by the linux foundation. You can get the source code and samples which will help to deploy the network locally using docker.

bingo1234 (Mon, 05 Feb 2018 15:31:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mKa7DPdvkehS2ewWi) @Vadim Does that mean that when you deploy to production and you want add and organisation ,since is the cloud or a private server the network it will not be like how you download the bitcoin-core and come online before you join the network.Thanks

Vadim (Mon, 05 Feb 2018 15:31:52 GMT):
@bingo1234 it's a private ledger, there is no globally available fabric

armel (Mon, 05 Feb 2018 15:31:55 GMT):
Hi everyone, I have noticed something strange with Hyperledger Fabric. This is the problem: I am working locally, I built a Business network, start Hyperledger Fabric deployed my Business Network on, it works perfectly then I stop and restart Hyperledger Fabric, ping my business network and get this error message: ping --card admin@tontine-network Error: Error trying to ping. Error: Error trying to query business network. Error: could not find chaincode with name 'tontine-network' - make sure the chaincode tontine-network has been successfully instantiated and try again Command failed

bingo1234 (Mon, 05 Feb 2018 15:33:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bXKRWBkaA2WSMtKnY) @Vadim Thanks

armel (Mon, 05 Feb 2018 15:34:15 GMT):
I do not understand... is there something that cancel the business network when you stop Hyperledger Fabric? Can somebody help me ? please

jrosmith (Mon, 05 Feb 2018 15:35:44 GMT):
@armel what do you mean by restart hyperledger fabric?

armel (Mon, 05 Feb 2018 15:36:17 GMT):
@bingo1234 every organization or participant should have his own committing peer that update his private ledger

armel (Mon, 05 Feb 2018 15:38:12 GMT):
@jrosmith I mean I used startFabric and stopFabric command

Vadim (Mon, 05 Feb 2018 15:54:12 GMT):
@armel could be that stopFabric removed containers which means that the state is lost (assuming you not mounting the peer/orderer directories to the host for persistence)

armel (Mon, 05 Feb 2018 16:03:45 GMT):
@Vadim I see even if I do not understand the benefit of that, maybe because I am making a parallel between HF and a web server such as tomcat. Is this parallel possible? what do you think? thanks for your help

ahmedsajid (Mon, 05 Feb 2018 17:13:33 GMT):
Has joined the channel.

der0pa (Mon, 05 Feb 2018 18:50:03 GMT):
Has joined the channel.

msarres (Mon, 05 Feb 2018 19:16:42 GMT):
Has joined the channel.

rennman (Mon, 05 Feb 2018 20:00:27 GMT):
Has joined the channel.

friends110110 (Tue, 06 Feb 2018 01:04:54 GMT):
what is difference of anchor peer and leader peer ? which param related to them in core.yaml file ?

aceyin (Tue, 06 Feb 2018 02:17:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PWHo4MpanEtQ9Tjfu) @friends110110 see my summary here: [] (https://chat.hyperledger.org/file-upload/dWvtv8WyGo3T7BuWv/fabric-peers-and-networks.png)

aceyin (Tue, 06 Feb 2018 02:17:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PWHo4MpanEtQ9Tjfu) @friends110110 see my summary here: https://chat.hyperledger.org/file-upload/dWvtv8WyGo3T7BuWv/fabric-peers-and-networks.png

wengleboy (Tue, 06 Feb 2018 03:02:17 GMT):
Hi, can chaincodes in the same channel interact with each other-i.e., invoke other chaincode's method??

wengleboy (Tue, 06 Feb 2018 03:02:17 GMT):
Hi, can chaincodes in the same channel interact with each other, for example: invoke other chaincode's method??

DRSK (Tue, 06 Feb 2018 03:20:31 GMT):
Can we add multiple transactions to one block by just updating the BatchTimeout and BatchSize? I was trying tuna-app application, but even after updating both fields, only a single transaction got added to a block. Can anyone please help me out in figuring out how a block can be created with multiple transactions?

username343 (Tue, 06 Feb 2018 05:36:25 GMT):
@PatrickWenger yes the chaincode can interact with other chaincodes in same channel and different channel but the other chaincode(callee) chaincode should be installed on the same peer as that of the caller chaincode

username343 (Tue, 06 Feb 2018 05:36:25 GMT):
@wengleboy yes the chaincode can interact with other chaincodes in same channel and different channel but the other chaincode(callee) chaincode should be installed on the same peer as that of the caller chaincode

PatrickWenger (Tue, 06 Feb 2018 05:36:26 GMT):
Has joined the channel.

username343 (Tue, 06 Feb 2018 05:40:44 GMT):
do i nee to make a new configuration block for adding a new peer to an already deployed organization (just like adding an organization to an already deployed consortium). I tried adding a peer by generating the certificates for that peer by bootstrapping a ca with that organizations ca-certs, but i'm getting the identity invalid error. I tried adding a peer peer2.org1.example.com by getting certificates from ca.org1.example.com, i verified that the signcerts of the peer were signed by the ca.org1.example.com certs but even after that i'm getting the identity invalid error( ecdsa verification failed)

chandg12 (Tue, 06 Feb 2018 06:05:49 GMT):
@username343 It would be helpful if you could point to some documentation that details the inter-chaincode interaction. Thanks.

username343 (Tue, 06 Feb 2018 06:06:28 GMT):
https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.InvokeChaincode

username343 (Tue, 06 Feb 2018 06:07:11 GMT):
example -> https://github.com/hyperledger/fabric/blob/release/examples/chaincode/go/chaincode_example04/chaincode_example04.go

username343 (Tue, 06 Feb 2018 06:09:43 GMT):
https://github.com/hyperledger/fabric/blob/c23f6cc7f633e35909179d3a6107b6ec92e48cfb/core/chaincode/shim/interfaces.go#L66

chandg12 (Tue, 06 Feb 2018 06:23:12 GMT):
@username343 Fantastic!

AshishMishra 1 (Tue, 06 Feb 2018 07:05:49 GMT):
Do I actually need the CA server for any of the sample projects? I mean if my keys are present in the peers/cli container why would i need the CA server?

username343 (Tue, 06 Feb 2018 07:07:32 GMT):
if you have already settled the crypto material for your network, i don't see any reason why would you need a fabric-ca

AshishMishra 1 (Tue, 06 Feb 2018 07:09:18 GMT):
@username343 , thanks. but what exactly is "settled the crypto material". I used the cryptogen tool to generate the materials and mounted that folder in all the nodes. That's settling?

Vadim (Tue, 06 Feb 2018 08:06:30 GMT):
@ [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cXebjfEjhSXo2mCZK) @armel this is how docker containers work and the samples which are provided include minimal config needed for development. For production, you need to tune that to your needs.

Vadim (Tue, 06 Feb 2018 08:06:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cXebjfEjhSXo2mCZK) @armel this is how docker containers work and the samples which are provided include minimal config needed for development. For production, you need to tune that to your needs.

Vadim (Tue, 06 Feb 2018 08:07:17 GMT):
@armel if you run tomcat in docker container and restart it, its state will also be lost.

Vadim (Tue, 06 Feb 2018 08:07:57 GMT):
@armel to persist data in docker, use volumes: https://docs.docker.com/storage/volumes/

shailaja.mahara (Tue, 06 Feb 2018 08:12:04 GMT):
Has joined the channel.

shailaja.mahara (Tue, 06 Feb 2018 08:13:13 GMT):
hi everyone I'm trying to run your first network by following the hyperledger fabric docs while i run the query fabric_client.getUserContext('user1', true); it throws the following error -bash: syntax error near unexpected token `'user1',' I'd be grateful if anyone could help me out thanks in advance

Vadim (Tue, 06 Feb 2018 08:16:26 GMT):
@shailaja.mahara where do you run command "fabric_client.getUserContext('user1', true);" ?

shailaja.mahara (Tue, 06 Feb 2018 08:17:21 GMT):
after i've enrolled and admin and a user called user1

shailaja.mahara (Tue, 06 Feb 2018 08:17:38 GMT):
i'm following this document: https://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html

shailaja.mahara (Tue, 06 Feb 2018 08:18:01 GMT):
*an admin

Vadim (Tue, 06 Feb 2018 08:19:26 GMT):
@shailaja.mahara you did not really answer the question. Where do you run this command that gives the error? It seems like it's javascript, but why does the error come from bash? Are you running it in terminal?

shailaja.mahara (Tue, 06 Feb 2018 08:19:43 GMT):
yes i am

Vadim (Tue, 06 Feb 2018 08:20:09 GMT):
well terminal (bash) understands only bash-syntax, not javascript

Vadim (Tue, 06 Feb 2018 08:20:53 GMT):
if you read the document correctly, you should run `node query.js`

shailaja.mahara (Tue, 06 Feb 2018 08:22:52 GMT):
i have already run this

ParveenPandit (Tue, 06 Feb 2018 08:26:57 GMT):
Has joined the channel.

AshishMishra 1 (Tue, 06 Feb 2018 09:15:53 GMT):
Hi team, Can someone please help me with this error.. 2018-02-06 09:13:52.545 UTC [eventhub_producer] start -> INFO 040 Event processor started 2018-02-06 09:13:52.549 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 041 Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com 2018-02-06 09:13:52.550 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 042 Exit with ccEndpoint: peer0.org1.example.com:7052 2018-02-06 09:13:52.550 UTC [nodeCmd] createChaincodeServer -> WARN 043 peer.chaincodeListenAddress is not set, using peer0.org1.example.com:7052 2018-02-06 09:13:52.552 UTC [accessControl] newCertKeyPair -> DEBU 044 Classified peer0.org1.example.com as a hostname, adding it as a DNS SAN 2018-02-06 09:13:52.575 UTC [nodeCmd] createChaincodeServer -> ERRO 045 Error creating GRPC server: listen tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no such host 2018-02-06 09:13:52.575 UTC [nodeCmd] serve -> CRIT 046 Failed to create chaincode server: listen tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no such host goroutine 1 [running]: I 'm getting when trying to bring up my peer using docker swarm. With standalone compose file it works well.

Vadim (Tue, 06 Feb 2018 09:21:43 GMT):
@AshishMishra 1 is peer0.org1.example.com running in your docker network?

username343 (Tue, 06 Feb 2018 09:22:12 GMT):
@AshishMishra 1 yes that's settling the crypto materials

AshishMishra 1 (Tue, 06 Feb 2018 09:23:49 GMT):
@Vadim Yes, I created a attached fabric n/w separately and mapped that network to the peer containers. All my other containers (orderer, zk , kafka))have the same n/w and they are working

AshishMishra 1 (Tue, 06 Feb 2018 09:24:17 GMT):
I even tried with aliases and extra hosts.. networks: fabric: # aliases: # - "peer0.org1.example.com"

Vadim (Tue, 06 Feb 2018 09:24:18 GMT):
@AshishMishra 1 the message says that it queries the DNS and it cannot resolve the host.

Vadim (Tue, 06 Feb 2018 09:24:46 GMT):
can you post to hastebin how you defined the peer?

AshishMishra 1 (Tue, 06 Feb 2018 09:24:55 GMT):
Sure.. let me do that.

AshishMishra 1 (Tue, 06 Feb 2018 09:26:29 GMT):
@Vadim https://hastebin.com/voniwawobo.http

Vadim (Tue, 06 Feb 2018 09:29:30 GMT):
@AshishMishra 1 you should use aliases

AshishMishra 1 (Tue, 06 Feb 2018 09:30:29 GMT):
@Vadim I did try that but it's giving me another problem. Wait let me fetch the logs from that configuration.

AshishMishra 1 (Tue, 06 Feb 2018 09:34:16 GMT):
@Vadim , some error with certs now. Idk why, these certs are freshly generated. https://hastebin.com/isoxolojux.lua But I remember I was getting an error due to the alias using the docker internal ip, which was somehow not reachable by my chaincode container and it was failing to launch.

Vadim (Tue, 06 Feb 2018 09:35:37 GMT):
you ca config is incorrect, most likely you need to regenerate certs and make sure you provide correct filenames for public and private keys

username343 (Tue, 06 Feb 2018 09:39:33 GMT):
hey @Vadim i tried to add the peer1.org1.example.com to the channel mychannel after i installed and instantiated a chaincode on peer0.org1.example.com in byfn example, i used the certificates for the peer from the same example, but when i query the chaincode on the peer1.org1.example.com after joining the channel and installing the chaincode i get the ecdsa verification failed error related to the identity

Vadim (Tue, 06 Feb 2018 09:41:55 GMT):
@username343 you used the certs generated for peer0 for peer1?

username343 (Tue, 06 Feb 2018 09:42:09 GMT):
no i used the certs for the peer1

username343 (Tue, 06 Feb 2018 09:42:37 GMT):
i even tried the same experiment on the network where i obtained certificates by using a fabric-ca

Vadim (Tue, 06 Feb 2018 09:42:45 GMT):
yes, but the identity in the cert is peer0?

Vadim (Tue, 06 Feb 2018 09:43:14 GMT):
I did not really understand how you obtained the certs fro the peer1

username343 (Tue, 06 Feb 2018 09:43:41 GMT):
the byfn example, we have certificates for peer0 and peer1 for their own identities right?

username343 (Tue, 06 Feb 2018 09:44:20 GMT):
when i used the byfn.sh script i started the network and removed the peer1.org1.example.com from the compose-file and made appropriate changes in the compose file to deploy the network.

username343 (Tue, 06 Feb 2018 09:44:51 GMT):
after my network came up i used the certificates in the peer1.org1.example.com for the new peer i created using the compose file

username343 (Tue, 06 Feb 2018 09:45:22 GMT):
if i don't make any changes in the byfn.sh script and compose-file the network comes up without any error

username343 (Tue, 06 Feb 2018 09:46:45 GMT):
I even tried to bootstrap a ca with the org1's ca certs and verified that the new certificates i obtained for the peer1.org1.example.com were signed by the same ca certs as that of the peer0.org1.example.com

username343 (Tue, 06 Feb 2018 09:46:45 GMT):
@Vadim I'm getting the following error : Failed to deserialize creator identity, err the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") -

AshishMishra 1 (Tue, 06 Feb 2018 09:49:20 GMT):
@Vadim , that was an error with the CA.. which is fixed.. so coming back to original problem using swarm.. even after using alias, I 'm not able to launch the chaincode containers. as it is not able to connect to the peer container. https://hastebin.com/hekopihehi.vbs

username343 (Tue, 06 Feb 2018 09:53:14 GMT):
@AshishMishra 1 add the following parameter to the peer's environment in compose file CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE: <>

username343 (Tue, 06 Feb 2018 09:53:54 GMT):
and while creating the network use --attachable parameter and set driver to overlay

AshishMishra 1 (Tue, 06 Feb 2018 09:54:10 GMT):
@username343 , it's there... https://hastebin.com/voniwawobo.http See line 36.

AshishMishra 1 (Tue, 06 Feb 2018 09:55:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=twpgKzxCxZp5NLm89) @username343 yeah, done that as well :(

AshishMishra 1 (Tue, 06 Feb 2018 09:59:50 GMT):
@username343 do I need CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE: in my CLI container also? shouln't be the case.

username343 (Tue, 06 Feb 2018 10:00:17 GMT):
i don't think so, because anyways that's not going to try to launch any containers

username343 (Tue, 06 Feb 2018 10:00:31 GMT):
but it won't harm if you try it

AshishMishra 1 (Tue, 06 Feb 2018 10:00:46 GMT):
Right.. will put it anyway

AshishMishra 1 (Tue, 06 Feb 2018 10:09:57 GMT):
Sometimes, when I restart my stack, I also get this.. https://hastebin.com/oqosokugil.css

AshishMishra 1 (Tue, 06 Feb 2018 10:13:02 GMT):
even with nw aliases in place

Vadim (Tue, 06 Feb 2018 10:18:49 GMT):
@AshishMishra 1 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rpBb9mA8deH44QxZL) I guess it's because that peer has not started yet

Vadim (Tue, 06 Feb 2018 10:18:57 GMT):
you need to properly define dependencies

Vadim (Tue, 06 Feb 2018 10:19:20 GMT):
@username343 what exactly is your error message?

AshishMishra 1 (Tue, 06 Feb 2018 10:20:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2cZTFwKJ5QG6g4EhA) @Vadim these are my peer's log actually. Dependency on what else? I 've my peer dependency on orderer and couchdb.. do I need anything else?

Vadim (Tue, 06 Feb 2018 10:21:07 GMT):
ok, are these the logs from chaincode?

AshishMishra 1 (Tue, 06 Feb 2018 10:21:17 GMT):
No this is from peer..

AshishMishra 1 (Tue, 06 Feb 2018 10:21:41 GMT):
https://hastebin.com/hekopihehi.vbs

AshishMishra 1 (Tue, 06 Feb 2018 10:21:49 GMT):
this from chaincode.. where my peer was started.

Vadim (Tue, 06 Feb 2018 10:22:13 GMT):
I have the impression that your docker swarm or overlay network is somehow misconfigured...

Vadim (Tue, 06 Feb 2018 10:23:06 GMT):
I'd try to verify whether I can ping the other services and itself by using the alias from a certain peer

AshishMishra 1 (Tue, 06 Feb 2018 10:23:09 GMT):
I think the same.. but it's so easy configuration.. that you really can't do much wrong.. I 've an attachable n/w of overlay type, which I 've used in all my compose files.

Vadim (Tue, 06 Feb 2018 10:23:27 GMT):
you have several compose files?

AshishMishra 1 (Tue, 06 Feb 2018 10:23:30 GMT):
I wish.. I had ping command inside the containers

Vadim (Tue, 06 Feb 2018 10:23:42 GMT):
well just install it

AshishMishra 1 (Tue, 06 Feb 2018 10:23:53 GMT):
yes.. 3 actually.. 1 for kafka + zk, 1 for Orderer + ca, 1 for peers + cli

Vadim (Tue, 06 Feb 2018 10:24:29 GMT):
apt-get update && apt-get install ping (I'm not sure about package name, but it should suggest something if it's wrong)

Vadim (Tue, 06 Feb 2018 10:24:45 GMT):
and how do you deploy it? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ar2Th6bXiARzWjBBB)

AshishMishra 1 (Tue, 06 Feb 2018 10:25:01 GMT):
Yeah.. will try that.. I hope it would work.. normally in such containers they disable all the repos.

Vadim (Tue, 06 Feb 2018 10:25:09 GMT):
no, it works

AshishMishra 1 (Tue, 06 Feb 2018 10:25:09 GMT):
docker stack deploy.. 1 by 1

AshishMishra 1 (Tue, 06 Feb 2018 10:25:29 GMT):
1st the kafka compose, then the orderer + ca then the peer in the last

Vadim (Tue, 06 Feb 2018 10:25:38 GMT):
do you have only one fabric network in `docker network ls`?

AshishMishra 1 (Tue, 06 Feb 2018 10:26:03 GMT):
ubuntu@ip-172-31-22-132:~/fabric-samples/first-network$ docker network ls NETWORK ID NAME DRIVER SCOPE fb9374309916 bridge bridge local a0ad71368815 docker_gwbridge bridge local hng6wscs6fw5 fabric overlay swarm 32dcb6bd6fcf host host local keynsy77ayhj ingress overlay swarm 5528903b0ff3 none null local

AshishMishra 1 (Tue, 06 Feb 2018 10:26:05 GMT):
Yes..

Vadim (Tue, 06 Feb 2018 10:26:45 GMT):
you can also check that all services are connected to it `docker network inspect fabric`

Vadim (Tue, 06 Feb 2018 10:27:00 GMT):
I think it should also output aliases

AshishMishra 1 (Tue, 06 Feb 2018 10:27:23 GMT):
I did that also.. saw the containers.. will anyway do more deep checks..

AshishMishra 1 (Tue, 06 Feb 2018 10:27:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rYLjFZjYgZeWeECTt) @Vadim What's that?

Vadim (Tue, 06 Feb 2018 10:27:45 GMT):
well the DNS names

Vadim (Tue, 06 Feb 2018 10:27:59 GMT):
which you set in compose files as aliases

AshishMishra 1 (Tue, 06 Feb 2018 10:28:17 GMT):
Oh.. alright.. thanks will check the ping and the n/w..

username343 (Tue, 06 Feb 2018 10:30:25 GMT):
@Vadim i'm getting the following error Failed to deserialize creator identity, err the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") -

Vadim (Tue, 06 Feb 2018 10:30:54 GMT):
@username343 when do you get this?

username343 (Tue, 06 Feb 2018 10:31:14 GMT):
while trying to invoke the chaincode on the newly added peer to the network

Vadim (Tue, 06 Feb 2018 10:31:33 GMT):
so it seems it does not like the user certificate

Vadim (Tue, 06 Feb 2018 10:31:53 GMT):
the peer joined the network without problems?

username343 (Tue, 06 Feb 2018 10:32:23 GMT):
it joined the channel

username343 (Tue, 06 Feb 2018 10:34:03 GMT):
after joining the channel on the new peer i'm getting the following Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity

username343 (Tue, 06 Feb 2018 10:34:51 GMT):
when i run the peer channel list on the peer, i get the mychannel to which the peer0 has already joined

Vadim (Tue, 06 Feb 2018 10:36:47 GMT):
and if you invoke the chaincode on peer0, it works?

Vadim (Tue, 06 Feb 2018 10:36:47 GMT):
and if you invoke the chaincode on peer0.org1, it works?

username343 (Tue, 06 Feb 2018 10:40:15 GMT):
yes

Vadim (Tue, 06 Feb 2018 10:41:32 GMT):
and the identity is issued by the same root cert which is in local peer's msp?

username343 (Tue, 06 Feb 2018 10:49:33 GMT):
yes, the same certs work if use the byfn.sh without removing the peer1.org1.example.com

Vadim (Tue, 06 Feb 2018 10:53:55 GMT):
@username343 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v8QkrT69L76MvNmkq) this is not what I asked

username343 (Tue, 06 Feb 2018 10:54:32 GMT):
the certs in the msp for peer2 are signed by the same root ca which signed the certs for peer1

Vadim (Tue, 06 Feb 2018 10:54:50 GMT):
but the error message implies it's not

username343 (Tue, 06 Feb 2018 10:55:44 GMT):
that's the problem i'm not able to understand, because if i use the same certs with peer1.org1.example.com without removing it from the compose-file it works, but when i provide these certs separately to a new peer, it gives the above error

AshishMishra 1 (Tue, 06 Feb 2018 11:02:48 GMT):
I don't know why but my peer is just refusing to start.. now and I 'm getting that error.. again. So I can't debug with service name and ping stuff. https://hastebin.com/abayocugub.css

AshishMishra 1 (Tue, 06 Feb 2018 11:03:08 GMT):
@Vadim . why is my peer trying to start 7052 port anyway?

AshishMishra 1 (Tue, 06 Feb 2018 11:07:15 GMT):
I just changed my swarm config to compose config.. started the peer.. 1st attempt.. it's Up.

AshishMishra 1 (Tue, 06 Feb 2018 11:30:06 GMT):
Done.. gosh.. this was a big issue.. added sleep in the command for peer node..

AshishMishra 1 (Tue, 06 Feb 2018 11:30:25 GMT):
I guess the alias is bit slow.. to update the dns records.

AshishMishra 1 (Tue, 06 Feb 2018 11:30:39 GMT):
@Vadim @username343 thanks for the help. cheers

Vadim (Tue, 06 Feb 2018 11:35:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JeGcd26YYjyezXy6B) it's the port which chaincode uses to connect to peer

AshishMishra 1 (Tue, 06 Feb 2018 12:04:59 GMT):
@Vadim , so now that my peer node is running and my chaincode is also installed.. when I try to instantiate it. I 'm getting 2018-02-06 11:58:41.074 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 10.0.0.12:7052: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7052 } Where 10.0.0.12 is the vip of my peer container. I 've nothing bind on 7052 port. ubuntu@ip-172-31-22-132:~/fabric-samples/first-network$ sudo netstat -nap | grep 7051 tcp6 0 0 :::7051 :::* LISTEN 4680/docker-proxy ubuntu@ip-172-31-22-132:~/fabric-samples/first-network$ sudo netstat -nap | grep 7052 ubuntu@ip-172-31-22-132:~/fabric-samples/first-network$ If I 'm expecting 7052 to listen, should I not expose this port as well?

Vadim (Tue, 06 Feb 2018 12:06:09 GMT):
@AshishMishra 1 no, you won't see that in ubuntu netstat as it is inside docker network

Vadim (Tue, 06 Feb 2018 12:06:37 GMT):
I don't think you need to expose that to host

Vadim (Tue, 06 Feb 2018 12:07:06 GMT):
you can try to bash into the peer and do the netstat there

AshishMishra 1 (Tue, 06 Feb 2018 12:07:38 GMT):
so the scope of my 7052 port is only between the docker containers... so my chaincode in order to communicate should be on the same overlay n/w

Vadim (Tue, 06 Feb 2018 12:08:12 GMT):
yes it should

AshishMishra 1 (Tue, 06 Feb 2018 12:09:31 GMT):
root@4babec80f86e:/opt/gopath/src/github.com/hyperledger/fabric/peer# netstat -nap | grep 7052 tcp 0 0 10.0.0.12:7052 0.0.0.0:* LISTEN 7/peer it's there inside the container.

AshishMishra 1 (Tue, 06 Feb 2018 12:10:23 GMT):
so the chaincode container exactly knows the ip and the port.. to where it shoud connect.. but that ip seems to be not reachablel from the chaincode containter

Vadim (Tue, 06 Feb 2018 12:10:28 GMT):
so then the question is which network your chaincode container uses

AshishMishra 1 (Tue, 06 Feb 2018 12:10:46 GMT):
yes.. exactly.. how to force chaincode container to use a particular n/w

AshishMishra 1 (Tue, 06 Feb 2018 12:12:30 GMT):
Isn't this config for it? - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric

Vadim (Tue, 06 Feb 2018 12:12:54 GMT):
yes

AshishMishra 1 (Tue, 06 Feb 2018 12:14:54 GMT):
if I enter the container.. do a env.. I can that configuration... so is it a bug? root@4babec80f86e:/opt/gopath/src/github.com/hyperledger/fabric/peer# env | grep MODE CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric

Vadim (Tue, 06 Feb 2018 12:17:46 GMT):
@AshishMishra 1 I have deployed it in swarm and it works (not 1.1-alpha though)

Vadim (Tue, 06 Feb 2018 12:19:22 GMT):
the examples in 1.1-alpha still use CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE to set the chaincode network, so I don't think anything changed

AshishMishra 1 (Tue, 06 Feb 2018 12:20:09 GMT):
One thing.. i noticed.. using the telnet command

AshishMishra 1 (Tue, 06 Feb 2018 12:20:16 GMT):
I did telnet from the cli container

AshishMishra 1 (Tue, 06 Feb 2018 12:20:28 GMT):
and I can telnet to 7051 and 7053 port

AshishMishra 1 (Tue, 06 Feb 2018 12:20:32 GMT):
but not 7052

AshishMishra 1 (Tue, 06 Feb 2018 12:20:35 GMT):
root@7bf2d9ac763d:/opt/gopath/src/github.com/hyperledger/fabric/peer# telnet 10.0.0.12 7052 Trying 10.0.0.12... telnet: Unable to connect to remote host: Connection refused root@7bf2d9ac763d:/opt/gopath/src/github.com/hyperledger/fabric/peer# telnet 10.0.0.12 7051 Trying 10.0.0.12... Connected to 10.0.0.12. Escape character is '^]'.

AshishMishra 1 (Tue, 06 Feb 2018 12:20:53 GMT):
not sure.. if relevant..

Vadim (Tue, 06 Feb 2018 12:21:05 GMT):
well the peer is listening on that port

Vadim (Tue, 06 Feb 2018 12:21:28 GMT):
I guess

Vadim (Tue, 06 Feb 2018 12:21:49 GMT):
however, your telnet experiment shows that chaincode might as well experience the same problem

AshishMishra 1 (Tue, 06 Feb 2018 12:22:55 GMT):
this exact setup.. and code works if I do the normal compose.. I don't know how swarm can create so many problems.

AshishMishra 1 (Tue, 06 Feb 2018 12:23:44 GMT):
maybe.. because of swarm.. I need to expose the 7052 port also.. just a thought

Vadim (Tue, 06 Feb 2018 12:24:50 GMT):
you can try, but I'd be surprised if you need to. YOu only expose ports when you want to connect to services running on host in docker container using the host ip address

Vadim (Tue, 06 Feb 2018 12:29:56 GMT):
@AshishMishra 1 try to set CORE_PEER_ADDRESSAUTODETECT=true on peer

AshishMishra 1 (Tue, 06 Feb 2018 12:33:51 GMT):
exposing 7052 didn't work.. :|

AshishMishra 1 (Tue, 06 Feb 2018 12:34:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D4xdmugWcu4BF3q3X) @Vadim will try this

AshishMishra 1 (Tue, 06 Feb 2018 12:38:57 GMT):
@Vadim , one of my diff setup where I 'm not using swarm.. I checked the netstat thing.. and it's allowing me to connect on 7052.

AshishMishra 1 (Tue, 06 Feb 2018 12:38:59 GMT):
root@6311414ebcc1:/opt/gopath/src/github.com/hyperledger/fabric# telnet 172.17.0.2 7051 Trying 172.17.0.2... Connected to 172.17.0.2. Escape character is '^]'. ^CConnection closed by foreign host. root@6311414ebcc1:/opt/gopath/src/github.com/hyperledger/fabric# telnet 172.17.0.2 7052 Trying 172.17.0.2... Connected to 172.17.0.2. Escape character is '^]'. ^CConnection closed by foreign host. root@6311414ebcc1:/opt/gopath/src/github.com/hyperledger/fabric# telnet 172.17.0.2 7053 Trying 172.17.0.2... Connected to 172.17.0.2. Escape character is '^]'.

Vadim (Tue, 06 Feb 2018 12:39:23 GMT):
no idea

AshishMishra 1 (Tue, 06 Feb 2018 12:39:55 GMT):
I ''ll try CORE_PEER_ADDRESSAUTODETECT=true thing.. and still if that doesn't work.. I might have to drop.. swarm for good.

eomer (Tue, 06 Feb 2018 12:52:53 GMT):
Has joined the channel.

eomer (Tue, 06 Feb 2018 12:54:51 GMT):
hi all. I'm trying to install fabric platform binaries on ubuntu with curl (I'm following the course on EDX)

eomer (Tue, 06 Feb 2018 12:55:34 GMT):
but "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha" this just gives me syntax error. how could this be happen?

eomer (Tue, 06 Feb 2018 12:56:54 GMT):
has anyone here face with the same issue?

CorentinPacaud (Tue, 06 Feb 2018 13:00:20 GMT):
Has joined the channel.

AshishMishra 1 (Tue, 06 Feb 2018 13:02:10 GMT):
@eomer update your curl maybe.

eomer (Tue, 06 Feb 2018 13:02:37 GMT):
latest version already :(

MuhammadSalah (Tue, 06 Feb 2018 13:41:46 GMT):
Hello @eomer , have you solved your issue?

eomer (Tue, 06 Feb 2018 13:44:16 GMT):
no, I'm stucked

MuhammadSalah (Tue, 06 Feb 2018 13:44:44 GMT):
shoot me :)

MuhammadSalah (Tue, 06 Feb 2018 13:45:18 GMT):
Give me the error please

eomer (Tue, 06 Feb 2018 13:46:49 GMT):

Clipboard - 6 Şubat 2018 16:46

eomer (Tue, 06 Feb 2018 13:47:24 GMT):
my curl version

eomer (Tue, 06 Feb 2018 13:47:35 GMT):

Clipboard - 6 Şubat 2018 16:47

MuhammadSalah (Tue, 06 Feb 2018 13:53:18 GMT):
curl -sSL https://goo.gl/byy2Qj | bash -s 1.1.0-alpha

MuhammadSalah (Tue, 06 Feb 2018 13:53:29 GMT):
just go with this link instead

MuhammadSalah (Tue, 06 Feb 2018 13:53:31 GMT):
from the official docs

MuhammadSalah (Tue, 06 Feb 2018 13:53:32 GMT):
:)

MuhammadSalah (Tue, 06 Feb 2018 13:55:35 GMT):
although they are both somewhat kind of the same scripts, but lets just stick to this.

eomer (Tue, 06 Feb 2018 13:58:41 GMT):
omg it's working but why?? I took that look from https://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries

MuhammadSalah (Tue, 06 Feb 2018 13:59:55 GMT):
mosho bosho, no idea :)

MuhammadSalah (Tue, 06 Feb 2018 14:00:05 GMT):
no need to investigate outdated links anyway :)

MuhammadSalah (Tue, 06 Feb 2018 14:00:16 GMT):
Enjoy the course, it's very lovely.

MuhammadSalah (Tue, 06 Feb 2018 14:01:08 GMT):
I thought you had the link from the edX course.

MuhammadSalah (Tue, 06 Feb 2018 14:01:16 GMT):
Uhmm, well I have no idea really.

MuhammadSalah (Tue, 06 Feb 2018 14:01:30 GMT):
But however keep in mind two things, you will probably have two images that are not going to be pulled

MuhammadSalah (Tue, 06 Feb 2018 14:01:36 GMT):
because they follow a different versioning

MuhammadSalah (Tue, 06 Feb 2018 14:01:43 GMT):
with base-os versioning

MuhammadSalah (Tue, 06 Feb 2018 14:01:51 GMT):
you just simply pull them and tag them manually

MuhammadSalah (Tue, 06 Feb 2018 14:02:07 GMT):
anyway, I will stay here for a while, ping me and I will help with that if you get stuck :)

eomer (Tue, 06 Feb 2018 14:03:19 GMT):
Ok so, thank you so much :)

MuhammadSalah (Tue, 06 Feb 2018 14:05:38 GMT):
No problems

depaulj (Tue, 06 Feb 2018 14:42:33 GMT):
Has joined the channel.

depaulj (Tue, 06 Feb 2018 14:43:00 GMT):
Hi - I'm running through this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html I have managed to get to the Section called "Form the Update Objects and Reconfigure Channel". I try to run this command: peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA I get an error on the command line saying: ERRO 001 Fatal error when initializing core config : DevConfigDir not found in /home/james/go I know I have configured golang on my machine.... what do I do?

depaulj (Tue, 06 Feb 2018 14:43:54 GMT):
I have also launched the docker -im cli bash command, I can see cli running now... do I have to connect to the cli docker instance?

depaulj (Tue, 06 Feb 2018 14:43:54 GMT):
I have also launched the docker -im cli bash command, I can see cli running now... do I have to connect to the cli docker instance first?

jeffgarratt (Tue, 06 Feb 2018 14:49:33 GMT):
@depaulj make sure GOPATH is set

jeffgarratt (Tue, 06 Feb 2018 14:49:56 GMT):
if in CLI container, this is set for you

depaulj (Tue, 06 Feb 2018 14:50:11 GMT):
How do I get into CLI container

depaulj (Tue, 06 Feb 2018 14:50:18 GMT):
the instructions didn't state that

jeffgarratt (Tue, 06 Feb 2018 14:50:36 GMT):
docker exec -it /bin/sh

depaulj (Tue, 06 Feb 2018 14:51:01 GMT):
aha... small typo in the instructions - thx, will try that

jrosmith (Tue, 06 Feb 2018 15:13:30 GMT):
hey all, looking for a bit more information on endorsement policies. is it possible to set a policy specifically for channel updates? the case i'm thinking of is a channel of multiple organizations, but only one organization has rights to add other orgs to the channel

AlexisJ 1 (Tue, 06 Feb 2018 15:19:30 GMT):
Has joined the channel.

nickgaski (Tue, 06 Feb 2018 15:19:51 GMT):
@jrosmith - yes you can scope the ownership of the channel by reconfiguring the channel config block. You would accomplish this through usage of the configtxlator utility which allows you to decode the proto object into editable JSON. Your specific example would involve issuing an explicit MSP Identifier within the channel's admin mod_policy field. If you're actually looking to implement this I'm happy to share some code and point you to some nice documentation demonstrating the process

jrosmith (Tue, 06 Feb 2018 15:23:42 GMT):
@nickgaski i actually watched your video on adding orgs to a channel, i feel like i have a pretty good handle on that part of the process. i guess i just don't know how to set the mod_policy when initially configuring the channel

nickgaski (Tue, 06 Feb 2018 15:25:00 GMT):
so it will default to majority on the initial creation, just take that object and go through the process to curate it to your specific needs.

nickgaski (Tue, 06 Feb 2018 15:25:19 GMT):
I'll give you the JSON

jrosmith (Tue, 06 Feb 2018 15:25:41 GMT):
that makese sense, thank you!

nickgaski (Tue, 06 Feb 2018 15:26:39 GMT):
https://gist.github.com/rohitadivi/d849b0e115b245f4e797a4c05d446435#file-policy-json-L9-L11

nickgaski (Tue, 06 Feb 2018 15:27:08 GMT):
so this shows an explicit representation of Org1 & Org3 admins requiring a 2/2 signature fulfillment

nickgaski (Tue, 06 Feb 2018 15:27:41 GMT):
you just want the 1, so only pass your single MSP Identifier and `n: 1`

jrosmith (Tue, 06 Feb 2018 15:28:16 GMT):
cool, i will give this a go. thank you so much this is very helpful

nickgaski (Tue, 06 Feb 2018 15:28:26 GMT):
no problemo

aflament (Tue, 06 Feb 2018 15:35:15 GMT):
Has joined the channel.

jaguarg (Tue, 06 Feb 2018 15:38:22 GMT):
Has joined the channel.

aflament (Tue, 06 Feb 2018 15:38:32 GMT):
Hi everyone, I would like to know if it is possible to access the world state outside a transaction?

Vadim (Tue, 06 Feb 2018 15:49:59 GMT):
@aflament stub.GetState()?

aflament (Tue, 06 Feb 2018 16:01:10 GMT):
the stub is available inside ChainCode not outside?

Vadim (Tue, 06 Feb 2018 16:01:27 GMT):
inside

aflament (Tue, 06 Feb 2018 16:03:13 GMT):
The query in Hyperledger Composer are executed inside ChainCode too?

aflament (Tue, 06 Feb 2018 16:03:24 GMT):
queries

malengatiger (Tue, 06 Feb 2018 18:55:49 GMT):
Has joined the channel.

nagarajants (Wed, 07 Feb 2018 00:05:25 GMT):
@here do we support DR in fabric

changu02 (Wed, 07 Feb 2018 01:12:52 GMT):
endorsers are set when instantiate chaincode?

changu02 (Wed, 07 Feb 2018 01:13:09 GMT):
I can't find where to determine endorsers

changu02 (Wed, 07 Feb 2018 01:13:48 GMT):
-P AND('Org1.member', 'Org2.member', 'Org3.member') means that all peers in org1, org2 ,org3 are endorsers?

changu02 (Wed, 07 Feb 2018 01:16:02 GMT):
I wanna know where and how to determine set of endorsers exactly

jeffgarratt (Wed, 07 Feb 2018 01:16:26 GMT):
@changu02 that is determined by install choices

jeffgarratt (Wed, 07 Feb 2018 01:16:47 GMT):
based upon endorsement policy, you will require minimum of three endorsers

jeffgarratt (Wed, 07 Feb 2018 01:16:51 GMT):
one from each org

changu02 (Wed, 07 Feb 2018 01:17:11 GMT):
install? you mean that doing before instantiate?

jeffgarratt (Wed, 07 Feb 2018 01:17:24 GMT):
so each org will need to install the chaincode on at least one of their peers

jeffgarratt (Wed, 07 Feb 2018 01:17:26 GMT):
yes

jeffgarratt (Wed, 07 Feb 2018 01:17:42 GMT):
though I think order is not strictly necessary

changu02 (Wed, 07 Feb 2018 01:17:48 GMT):
So

changu02 (Wed, 07 Feb 2018 01:18:15 GMT):
you mean that a particular command doesn't exist?

jeffgarratt (Wed, 07 Feb 2018 01:18:20 GMT):
correct

changu02 (Wed, 07 Feb 2018 01:18:23 GMT):
wow

jeffgarratt (Wed, 07 Feb 2018 01:18:28 GMT):
it is security issue

changu02 (Wed, 07 Feb 2018 01:18:31 GMT):
really thank you genius

changu02 (Wed, 07 Feb 2018 01:18:53 GMT):
with your answer

changu02 (Wed, 07 Feb 2018 01:19:07 GMT):
hyperleger of my country will be more powerful

changu02 (Wed, 07 Feb 2018 01:19:17 GMT):
no one knows about this

changu02 (Wed, 07 Feb 2018 01:19:22 GMT):
really thank you

changu02 (Wed, 07 Feb 2018 01:19:32 GMT):
for your immadiate answer

aceyin (Wed, 07 Feb 2018 01:19:48 GMT):
one more question: how if i want to change the endorser policy?

jeffgarratt (Wed, 07 Feb 2018 01:20:03 GMT):
@aceyin you will need to update the chaincode

changu02 (Wed, 07 Feb 2018 01:20:15 GMT):
jeffgarratt are you a developer of IBM?

aceyin (Wed, 07 Feb 2018 01:20:19 GMT):
ok, i do think so

jeffgarratt (Wed, 07 Feb 2018 01:20:21 GMT):
yes

changu02 (Wed, 07 Feb 2018 01:20:39 GMT):
wow

changu02 (Wed, 07 Feb 2018 01:20:40 GMT):
th

changu02 (Wed, 07 Feb 2018 01:20:41 GMT):
thx

changu02 (Wed, 07 Feb 2018 01:21:52 GMT):
I have one more question

changu02 (Wed, 07 Feb 2018 01:22:32 GMT):
should I install through all peers that i want to make to endorser before first instantiate?

jeffgarratt (Wed, 07 Feb 2018 01:22:57 GMT):
that would be reasonable

changu02 (Wed, 07 Feb 2018 01:23:10 GMT):
oh thank you

jeffgarratt (Wed, 07 Feb 2018 01:23:13 GMT):
in this way you can catch any issues before attempting to open to use

changu02 (Wed, 07 Feb 2018 01:23:21 GMT):
and

changu02 (Wed, 07 Feb 2018 01:23:55 GMT):
if i wanna do this in cli container , then should I change all related environment variables?

changu02 (Wed, 07 Feb 2018 01:24:01 GMT):
Like core_peer_address

jeffgarratt (Wed, 07 Feb 2018 01:24:24 GMT):
that is more complex as you will require access to each org's MSP material

jeffgarratt (Wed, 07 Feb 2018 01:24:35 GMT):
but if it is available, you can do it through there

changu02 (Wed, 07 Feb 2018 01:24:38 GMT):
yeah im worrying about it

jeffgarratt (Wed, 07 Feb 2018 01:25:03 GMT):
meaning... you can do it from any peer with access to MSP info for the org's target peer

changu02 (Wed, 07 Feb 2018 01:25:10 GMT):
Then you are meaning that not doing it in cli is recommended?

jeffgarratt (Wed, 07 Feb 2018 01:25:26 GMT):
you can do it from there, or from any peer executable location

jeffgarratt (Wed, 07 Feb 2018 01:25:39 GMT):
the CLI is simply the same binary as a peer

jeffgarratt (Wed, 07 Feb 2018 01:25:45 GMT):
just different command line

jeffgarratt (Wed, 07 Feb 2018 01:25:57 GMT):
peer chaincode.... (CLI)

jeffgarratt (Wed, 07 Feb 2018 01:26:02 GMT):
peer node start (Peer start)

changu02 (Wed, 07 Feb 2018 01:26:09 GMT):
Okay your explanation is quite precise and easy thank you

jeffgarratt (Wed, 07 Feb 2018 01:26:22 GMT):
good luck!

changu02 (Wed, 07 Feb 2018 01:26:28 GMT):
And last question

changu02 (Wed, 07 Feb 2018 01:26:43 GMT):
what time you guys browse this question chat channel

jeffgarratt (Wed, 07 Feb 2018 01:27:06 GMT):
it is monitored quite often by many folks involved in the project

changu02 (Wed, 07 Feb 2018 01:27:31 GMT):
Oh it's good to know

changu02 (Wed, 07 Feb 2018 01:27:33 GMT):
thx

jeffgarratt (Wed, 07 Feb 2018 01:27:34 GMT):
but 9-4 EST is probably best coverage

jeffgarratt (Wed, 07 Feb 2018 01:27:43 GMT):
yw!

changu02 (Wed, 07 Feb 2018 01:27:56 GMT):
really appreciate!

jeffgarratt (Wed, 07 Feb 2018 01:28:03 GMT):
your most welcome!

changu02 (Wed, 07 Feb 2018 01:28:18 GMT):
:joy:

changu02 (Wed, 07 Feb 2018 01:29:05 GMT):
And i am facing a big problem..

changu02 (Wed, 07 Feb 2018 01:29:22 GMT):
I wanna make a mobile application using fabric

changu02 (Wed, 07 Feb 2018 01:30:04 GMT):
but java sdk provided doesn't seem to be applied to android

changu02 (Wed, 07 Feb 2018 01:30:32 GMT):
Out team doesn't wanna do this with iroha

aceyin (Wed, 07 Feb 2018 01:30:52 GMT):
@changu02 are you Chinese or Japanese ?

changu02 (Wed, 07 Feb 2018 01:30:57 GMT):
iam korean

changu02 (Wed, 07 Feb 2018 01:31:08 GMT):
south

changu02 (Wed, 07 Feb 2018 01:31:33 GMT):
is there any possible way to do it?

jeffgarratt (Wed, 07 Feb 2018 01:32:29 GMT):
there is a node and a go sdk as well

changu02 (Wed, 07 Feb 2018 01:32:59 GMT):
I know but I think node.js is not suitable for android native develop

jeffgarratt (Wed, 07 Feb 2018 01:33:39 GMT):
not sure if go-mobile would be an oiption

changu02 (Wed, 07 Feb 2018 01:34:05 GMT):
but you are sure that java sdk doesn't work in android?

jeffgarratt (Wed, 07 Feb 2018 01:34:06 GMT):
you can always use composer and then use HTTP/REST

changu02 (Wed, 07 Feb 2018 01:34:32 GMT):
Okay I'll check it

jeffgarratt (Wed, 07 Feb 2018 01:34:34 GMT):
composer generates swagger output

jeffgarratt (Wed, 07 Feb 2018 01:34:44 GMT):
#composer

jeffgarratt (Wed, 07 Feb 2018 01:34:50 GMT):
good luck!

changu02 (Wed, 07 Feb 2018 01:35:04 GMT):
yes really thank you

jeffgarratt (Wed, 07 Feb 2018 01:35:24 GMT):
yw!!

aceyin (Wed, 07 Feb 2018 01:41:22 GMT):
@jeffgarratt , is there any other sample project like "build-blockchain-insurance-app" and "BlockchainPublicRegulationFabric-Food"?

changu02 (Wed, 07 Feb 2018 01:45:58 GMT):
All peers have their own world state?

changu02 (Wed, 07 Feb 2018 01:47:27 GMT):
If so, If all peers use couch DB for world state, then all peers instantly synchronize their couch DB for consensus?

jeffgarratt (Wed, 07 Feb 2018 01:52:45 GMT):
@aceyin I am not sure, someone else may be able to answer

jeffgarratt (Wed, 07 Feb 2018 01:53:03 GMT):
@changu02 all peers have their own world state

jeffgarratt (Wed, 07 Feb 2018 01:53:29 GMT):
they will update their world state upon successful validation of transactions within a block

changu02 (Wed, 07 Feb 2018 01:54:27 GMT):
So it means all world state are identical?

changu02 (Wed, 07 Feb 2018 01:54:54 GMT):
Unless some peers deliberately distort its state

jeffgarratt (Wed, 07 Feb 2018 01:57:51 GMT):
correct

changu02 (Wed, 07 Feb 2018 01:59:08 GMT):
really thank you...

aceyin (Wed, 07 Feb 2018 01:59:57 GMT):
what will happened if one peer update its ledger failed, and always fail in every transaction?

changu02 (Wed, 07 Feb 2018 02:02:53 GMT):
all peers are always doing PBFT consensus

changu02 (Wed, 07 Feb 2018 02:03:29 GMT):
failed peer would update its ledger to normal ledger

changu02 (Wed, 07 Feb 2018 02:17:15 GMT):
In Architecture - Transaction flow at http://hyperledger-fabric.readthedocs.io, There is a phrase that says "Each peer appends the block to the channel’s chain, and for each valid transaction the write sets are committed to current state database. An event is emitted, to notify the client application that the transaction (invocation) has been immutably appended to the chain, as well as notification of whether the transaction was validated or invalidated." in 6. Leger updates.

changu02 (Wed, 07 Feb 2018 02:17:28 GMT):
How can I get so-called 'emitted event' in application?

changu02 (Wed, 07 Feb 2018 02:18:17 GMT):
It is just returned from function? or Is there any event function in sdk?

aceyin (Wed, 07 Feb 2018 03:26:55 GMT):
you can use event hub on peers to receive the event

aceyin (Wed, 07 Feb 2018 03:28:22 GMT):
the peer node docker container instance expose 2 port, 7053 is for event hub

aceyin (Wed, 07 Feb 2018 03:30:01 GMT):
here are the example codes in the "fabcar" example: // get an eventhub once the fabric client has a user assigned. The user // is required bacause the event registration must be signed let event_hub = fabric_client.newEventHub(); event_hub.setPeerAddr('grpc://localhost:7053');

bh4rtp (Wed, 07 Feb 2018 03:38:22 GMT):
hi, where can i find a technical presentation on `fabric`?

aceyin (Wed, 07 Feb 2018 03:41:44 GMT):
depends on which kind of resource you want, the official site may be helpful to a beginner : http://hyperledger-fabric.readthedocs.io/en/latest/

shailaja.mahara (Wed, 07 Feb 2018 03:55:55 GMT):
Hello everyone. I've been going through the official documents and needed some guidance.

shailaja.mahara (Wed, 07 Feb 2018 03:56:52 GMT):
can anyone explain what the "pluggable implementations" of fabric are?

chandg12 (Wed, 07 Feb 2018 04:47:04 GMT):
@shailaja.mahara, "pluggable" primarily refers to the Ordering Service. You can choose between the different ordering service implementations (Solo, Kafka or PBFT) based on your needs for your blockchain setup.

shailaja.mahara (Wed, 07 Feb 2018 04:47:41 GMT):
Thanks @chandg12

changu02 (Wed, 07 Feb 2018 04:59:21 GMT):
@aceyin Thank you!

aceyin (Wed, 07 Feb 2018 04:59:46 GMT):
welcome

VinodPai (Wed, 07 Feb 2018 05:35:29 GMT):
I have 3 ubuntu machines, how can I setup fabric on these three machines and configure one machine as orderer, second machine as endorsing peer and third machine as committing peer.? Also do I need a separate machine for CA?

AshishMishra 1 (Wed, 07 Feb 2018 05:49:58 GMT):
Hi Everyone, was anyone able to make 1.1-alpha release work with Docker swarm? Please I 'm stuck with peer and chaincode containers need some help. Thanks

aczire (Wed, 07 Feb 2018 06:56:30 GMT):
Has joined the channel.

aczire (Wed, 07 Feb 2018 06:58:25 GMT):
Hello All, I was trying to understand the error message thrown by the fabric-composer playground (web), "Error: Invalid or missing identifier for Type Admin in namespace com.aczire.alm.base.user.admin", what does this mean? The type "com.aczire.alm.base.user.admin.Admin" is there though.

aczire (Wed, 07 Feb 2018 07:02:13 GMT):

Type not defined.

aczire (Wed, 07 Feb 2018 07:02:22 GMT):
Any idea?

aczire (Wed, 07 Feb 2018 07:05:18 GMT):
the models and transactions are available here: https://github.com/aczire/hyperledger-alm/tree/dev

changu02 (Wed, 07 Feb 2018 08:03:36 GMT):
Is ledger means blockchain?

changu02 (Wed, 07 Feb 2018 08:03:53 GMT):
or ledger has blockchain of transactions and worldstate

changu02 (Wed, 07 Feb 2018 08:11:43 GMT):
I found the answer Ledger consists of blockchain and world state

shailaja.mahara (Wed, 07 Feb 2018 08:24:53 GMT):
im working on CentOS and even after installing golang, I am getting an error while running the command: go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim

shailaja.mahara (Wed, 07 Feb 2018 08:25:39 GMT):
The error is: bash: go: command not found...

shailaja.mahara (Wed, 07 Feb 2018 08:26:34 GMT):
i'm trying to compile the chaincode, following the official docs guidlines.

mastersingh24 (Wed, 07 Feb 2018 11:56:18 GMT):
@shailaja.mahara - likely the Go compiler is not in your path. Which method did you use to install Go?

shailaja.mahara (Wed, 07 Feb 2018 12:17:35 GMT):
export GOPATH=$HOME/go

shailaja.mahara (Wed, 07 Feb 2018 12:17:41 GMT):
export PATH=$PATH:$GOPATH/bin

mastersingh24 (Wed, 07 Feb 2018 12:59:40 GMT):
what does `which go` return?

DmitryNovenkykh (Wed, 07 Feb 2018 13:00:46 GMT):
Hi everyone! Is There available permission or roles for users in fabric? Something like User.role = member can`t make some transactions. Would be apritiated for any help

username343 (Wed, 07 Feb 2018 13:10:46 GMT):
@DmitryNovenkykh you can have a look at cid library

username343 (Wed, 07 Feb 2018 13:11:07 GMT):
but then you will have to hardcode the logic in your chaincode

DmitryNovenkykh (Wed, 07 Feb 2018 13:12:09 GMT):
ty! what is cid library?

username343 (Wed, 07 Feb 2018 13:12:43 GMT):
attribute based access control library

username343 (Wed, 07 Feb 2018 13:12:45 GMT):
https://medium.com/wearetheledger/the-new-and-exciting-features-in-hyperledger-fabric-1-1-preview-4261ece3590d

username343 (Wed, 07 Feb 2018 13:12:54 GMT):
https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid

DmitryNovenkykh (Wed, 07 Feb 2018 13:13:35 GMT):
Ty for help)

C.Jason.Phelps (Wed, 07 Feb 2018 14:54:35 GMT):
I have added indexes to couchdb and am able to submit a search through couchdb using sort, however when trying to submit through fabric request getting `Error: http: read on closed response body` my request using this as query string ```{ selector:{docType:"provider", index:{$lt:1000}}, sort:[{"index":"asc" }] }``` Dont know if there is something I am missing due to the index needing to be on field data.index but have tried both, data.index and index, on fabric request couchdb index ```{ "index": { "fields": [ "data.docType", "data.index" ] }, "type": "json" }```

C.Jason.Phelps (Wed, 07 Feb 2018 15:24:06 GMT):
if I remove the sort from request it works but need sorted information

ronald.petty (Wed, 07 Feb 2018 15:25:43 GMT):
Hi all, aside https://github.com/hyperledger/fabric-samples, can someone point me to any industry type examples of using Fabric (not just, but maybe actual demo)? I am doing some digging find lots of people talking about it but no code showing it. Probably just my week Google-fu, but any help appreciated. (any industry is fine, just examples to review is what I am hoping for). Thank you.

bingo1234 (Wed, 07 Feb 2018 19:04:30 GMT):
Hi all ,can anyone show me how to access the fabric marbles project which is inside an ubuntu vm on windows 10 host.i have tried most of the possible ways but to know avail.

bingo1234 (Wed, 07 Feb 2018 19:04:30 GMT):
Hi all ,can anyone show me how to access the fabric marbles project which is inside an ubuntu vm on windows 10 host.i have tried most of the possible ways but to know avail. By the way am talking about the localhost:3001 url

geni (Wed, 07 Feb 2018 19:36:59 GMT):
Has joined the channel.

ronald.petty (Wed, 07 Feb 2018 19:46:36 GMT):
@bingo1234 you mean from a browser on your laptop?

geni (Wed, 07 Feb 2018 19:48:36 GMT):
Hi Guyz, Since hyperledger is already being containerized is there any need for a sandbox. If there is any i don't understand may be for security. Can u suggest any sandbox for setting up fiber if any.

ronald.petty (Wed, 07 Feb 2018 19:50:00 GMT):
@geni a container is a form of a sandbox. Are you just testing or trying to productionize it?

geni (Wed, 07 Feb 2018 19:51:20 GMT):
In both cases what is the best way.

Faradayfuture (Wed, 07 Feb 2018 19:53:15 GMT):
Has joined the channel.

geni (Wed, 07 Feb 2018 19:55:31 GMT):
@ronald.petty if Hyperledger is already containerized what will be the need of any sort of sandbox or so *_*

ronald.petty (Wed, 07 Feb 2018 20:17:59 GMT):
Not sure, is there somewhere asking you to?

ronald.petty (Wed, 07 Feb 2018 20:18:05 GMT):
In general no.

bingo1234 (Wed, 07 Feb 2018 20:54:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ojFAFxfMzRvunp9wr) @ronald.petty From the browser .When is open the localhost:3001 url after i run gulp it doesn't seem to work in the host os that's windows 10.I have tried port forwarding but its still not working.I don't know if i am the one not doing it right

ronald.petty (Wed, 07 Feb 2018 21:11:40 GMT):
@binbg

ronald.petty (Wed, 07 Feb 2018 21:11:40 GMT):
@bingo1234 which hypervisor are you using (virtualbox or vmware)?

aczire (Wed, 07 Feb 2018 21:12:40 GMT):
Anyone kind enough to answer this question? https://stackoverflow.com/questions/48671801/error-invalid-or-missing-identifier-for-type-in-namespace

jrosmith (Wed, 07 Feb 2018 21:19:19 GMT):
@aczire try asking #composer

aczire (Wed, 07 Feb 2018 21:21:07 GMT):
Thanks @jrosmith, on to #composer

bingo1234 (Wed, 07 Feb 2018 21:23:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yvpL5Zfyy7hSLZrHN) @ronald.petty virtual box

bingo1234 (Wed, 07 Feb 2018 21:23:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yvpL5Zfyy7hSLZrHN) @ronald.petty virtual box

dainliff (Thu, 08 Feb 2018 00:25:33 GMT):
Hi there, is there a way to get the channel name from a Golang chaincode? Tried looking through https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim but didn't have much luck

yacovm (Thu, 08 Feb 2018 00:43:17 GMT):
yeah there is

yacovm (Thu, 08 Feb 2018 00:43:47 GMT):
@dainliff

dainliff (Thu, 08 Feb 2018 00:45:19 GMT):
Ok sweet, could you point me to the relevant function or explain the steps to getting it

yacovm (Thu, 08 Feb 2018 00:46:43 GMT):
oh... there is no function

yacovm (Thu, 08 Feb 2018 00:46:50 GMT):
but I wrote one for you just now

yacovm (Thu, 08 Feb 2018 00:46:54 GMT):
``` sp, _ := stub.GetSignedProposal() p := &pb.Proposal{} proto.Unmarshal(sp.ProposalBytes, p) hdr := &common.Header{} proto.Unmarshal(p.Header, hdr) cHdr := &common.ChannelHeader{} proto.Unmarshal(hdr.ChannelHeader, cHdr) fmt.Println("channel name:", cHdr.ChannelId) ```

dainliff (Thu, 08 Feb 2018 00:47:09 GMT):
Awesome :D thanks man

dainliff (Thu, 08 Feb 2018 00:47:13 GMT):
appreciated

yacovm (Thu, 08 Feb 2018 00:47:32 GMT):
oh wait we actually have

yacovm (Thu, 08 Feb 2018 00:47:35 GMT):
``` // GetChannelID returns the channel the proposal is sent to for chaincode to process. // This would be the channel_id of the transaction proposal (see ChannelHeader // in protos/common/common.proto) except where the chaincode is calling another on // a different channel GetChannelID() string ```

dainliff (Thu, 08 Feb 2018 00:49:34 GMT):
Ok I definitely gotta get around to moving to 1.1.0-alpha

dainliff (Thu, 08 Feb 2018 00:49:47 GMT):
cheers :)

dainliff (Thu, 08 Feb 2018 01:27:02 GMT):
So just tried both your function and the GetChannelID Your function works fine for me, but GetChannelID appears to return an empty string.

dainliff (Thu, 08 Feb 2018 01:27:15 GMT):
Note I'm running the chaincode in dev mode

SB85 (Thu, 08 Feb 2018 01:33:09 GMT):
Can somebody tell me when using chaincode install "peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" what do we specify with -n?

SB85 (Thu, 08 Feb 2018 01:36:37 GMT):
Is this the name I have option to choose? What I am understanding in this example is we are trying to install chaincode_example02 but we want to refer the chaincode in further invoke/query statement as mycc. Am I correct?

SB85 (Thu, 08 Feb 2018 01:36:37 GMT):
Is this the name I have option to choose? What I am understanding in this example is we are trying to install chaincode_example02 but we want to refer the chaincode in further invoke/query statement as mycc. I don't see any chaincode named mycc in fabric chaincode samples also.

bamboo (Thu, 08 Feb 2018 01:57:41 GMT):
hello,

bamboo (Thu, 08 Feb 2018 01:57:41 GMT):
hello, how to i can show all chaincode?

jagz (Thu, 08 Feb 2018 02:28:17 GMT):
Has joined the channel.

changu02 (Thu, 08 Feb 2018 03:10:41 GMT):
How can I set remote peer?

changu02 (Thu, 08 Feb 2018 03:10:59 GMT):
I made an org with 3 peers

changu02 (Thu, 08 Feb 2018 03:11:23 GMT):
and those peers are running in my local docker image

changu02 (Thu, 08 Feb 2018 03:11:46 GMT):
I wanna set each peers are separated to differenct PC

changu02 (Thu, 08 Feb 2018 03:12:19 GMT):
is it possible? I can't find any of it from hyperledger fabric read the doc

changu02 (Thu, 08 Feb 2018 03:12:53 GMT):
And I also want to know how to add an remote org to my fabric network

changu02 (Thu, 08 Feb 2018 03:13:23 GMT):
All existing method in google are doing this within local environment

aceyin (Thu, 08 Feb 2018 03:14:25 GMT):
you should use something like kubernates to manage your docker containers

aceyin (Thu, 08 Feb 2018 03:15:15 GMT):
you can google this keyword: hyperledger fabric kubernates

changu02 (Thu, 08 Feb 2018 03:16:49 GMT):
Hi aceyin

changu02 (Thu, 08 Feb 2018 03:17:02 GMT):
really thank you I'll check it

aceyin (Thu, 08 Feb 2018 03:17:47 GMT):
you are welcome, i am also a beginner, and currently also run the example project under local laptop:)

aceyin (Thu, 08 Feb 2018 03:18:01 GMT):
i will face the same issue with you soon

changu02 (Thu, 08 Feb 2018 03:18:10 GMT):
good luck dude

aceyin (Thu, 08 Feb 2018 03:18:18 GMT):
good luck

username343 (Thu, 08 Feb 2018 04:18:10 GMT):
Hey @Vadim I believe you are the only person who can answer this question. Can you please tell me what happens when i install and instantiate a chaincode on a peer on a channel (say x). If i try to install and query a slightly modified chaincode with the same name on a different peer on the same channel, i can't do that. I get fingerprint mismatch error. So i believe lscc takes care of this process, so can you guide towards some resource which specify how does this process take place. Does lscc maintain a hash of the chaincode, if it does how does it send this information to the lscc component on the new peer. I would like to read the code myself if you could tell me which part actually handles it. Thanks in advance you have been very helpful during these last four months

username343 (Thu, 08 Feb 2018 04:18:10 GMT):
Hey @Vadim I believe you are the only person who can answer this question. Can you please tell me what happens when i install and instantiate a chaincode on a peer on a channel (say x). If i try to install and query a slightly modified chaincode with the same name on a different peer on the same channel, i can't do that. I get fingerprint mismatch error. So i believe lscc takes care of this process, so can you guide towards some resource which specify how does this process take place. Does lscc maintain a hash of the chaincode, if it does how does it send this information to the lscc component on the new peer. I would like to read the code myself if you could tell me which part actually handles it.

username343 (Thu, 08 Feb 2018 04:19:55 GMT):
@SB85 with install command you use -n for specifying the name of the chaincode with which you want to identify the chaincode, -v for version -p for the path of the chaincode

username343 (Thu, 08 Feb 2018 04:20:35 GMT):
with instantiate you use -C for specifying the name of the channel and -c for the instantiation arguments -P for the endorsement policy

dpk2877 (Thu, 08 Feb 2018 05:11:53 GMT):
is there any way I can get the transactions per second in fabric network?

luxus (Thu, 08 Feb 2018 07:13:24 GMT):
Hi all, How to add a new orderer node to an existing Hyperledger Fabric network?

rakeshoo7 (Thu, 08 Feb 2018 07:23:56 GMT):
Has joined the channel.

rakeshoo7 (Thu, 08 Feb 2018 07:29:32 GMT):
Hi all ...As per my requirement is need to pass more field in req.body (like ..mobNo,pwd,age) in users Api (fabric samples balance transfer example), i am tried but facing some issue..can you guys please help...Thanks in advance..

rakeshoo7 (Thu, 08 Feb 2018 07:29:32 GMT):
Hi..I want to add a password field for user in balance transfer application.Can you guys please help me.Thanks in advance..

Vadim (Thu, 08 Feb 2018 07:51:19 GMT):
@username343 are you trying to upgrade existing chaincode?

PyiTheinKyaw (Thu, 08 Feb 2018 08:50:35 GMT):
Has joined the channel.

PyiTheinKyaw (Thu, 08 Feb 2018 08:51:07 GMT):
Hello Members, May I confirm about one more thing. According to my knowledge, (May wrong) For a channel, ledger maintains the following three components: Block Storage - hash linked tamper-proof logs of ordered transactions State Database - current state of all keys History Database - past state of all keys I am clear for "Block storage", and "State Database" But, where is history database and how could i check it. The SDK for hyperledger fabric also supprot the following API. `GetHistoryForKey(namespace string, key string) (commonledger.ResultsIterator, error)` I would like to know the physical location of that History DB. > Ref : https://blockchain-fabric.blogspot.com/2017/09/three-component-maintained-by-ledger-in.html

bami0988 (Thu, 08 Feb 2018 09:40:46 GMT):
Has joined the channel.

pd93 (Thu, 08 Feb 2018 10:10:17 GMT):
Hey, I keep getting `DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.18.0.10:7051: getsockopt: connection refused"; Reconnecting to {test-peer0.org1.example.com:7051 }` when trying to join my peers to a channel. I'm also getting this in my peer logs: `Unable to connect to CouchDB, check the hostname and port: Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: no such host`. Both the IP, the hostname and ports look fine to me, but none of my containers seem to be able to talk

pd93 (Thu, 08 Feb 2018 10:10:17 GMT):
Hey, I keep getting `DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.18.0.10:7051: getsockopt: connection refused"; Reconnecting to {test-peer0.org1.example.com:7051 }` when trying to join my peers to a channel. I'm also getting this in my peer logs: `Unable to connect to CouchDB, check the hostname and port: Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: no such host`. Both the IP, the hostname and ports look fine to me, but none of my containers seem to be able to talk

ShefaliMittal (Thu, 08 Feb 2018 10:59:43 GMT):
Hi, I have setup a swarm to run peers on different machine.. but I am unable to access the containers on different node using container name.. I need to use IP .. any idea why this might be happening.

AshishMishra 1 (Thu, 08 Feb 2018 11:51:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G9vZumTJbyfdFoo3u) @ShefaliMittal use aliases with the fqdn of the peer

pandanax (Thu, 08 Feb 2018 15:24:05 GMT):
Has joined the channel.

pandanax (Thu, 08 Feb 2018 15:24:55 GMT):
Hi! i have a question. For example "fabcar" tutorial. How to make query by car owner or car color? If i have ledger {CAR1: {owner: "1", color: "red"}, CAR2: {owner: "2", color: "green"}, ... , CAR20000: {owner: "1", color: "green"}}. I want to get all cars for owner "1". How to do it?

sbukhari (Thu, 08 Feb 2018 15:36:01 GMT):
Has joined the channel.

sbukhari (Thu, 08 Feb 2018 15:38:10 GMT):
Hi all. Is it possible to input existing JSON data into the REST API that we can make with Hyperledger Fabric? If I write a script that does that? Any help would be highly appreciated. (What I want to do is convert my company's existing contract database into a blockchain registry)

urvesh (Thu, 08 Feb 2018 15:59:05 GMT):
Has joined the channel.

nickgaski (Thu, 08 Feb 2018 17:01:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oWvnifuj9Eeru8AsS) @pandanax - take a look here http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#using-couchdb

nickgaski (Thu, 08 Feb 2018 17:02:36 GMT):
you can take the same approach with the fabcar data. It's modeled as JSON and you have couchDB underneath with the tutorial

armel (Thu, 08 Feb 2018 17:42:44 GMT):
@Vadim thank you very much

grreeenn (Thu, 08 Feb 2018 22:27:04 GMT):
Has joined the channel.

grreeenn (Thu, 08 Feb 2018 22:27:34 GMT):
Good everning (mornig? ) 🙂 I've stumbled upon Hyperledger yesterday while studiying the possibilities ob implementin the transactions services for the app that I build. This is a social app with an ability to transfer assets between members; members don't know each other hence I want the transactions to be private, so only parties negotiated in transaction will see it. As I get from the docs, the Hyperledger provides such functionality with Channels; channels are also good because users won't need to store the whole ledger on their devices, but only the parts of it which are related to them. The question is - what is the performance price, if any, in case of network growth? In this usage scenario every negotiation between two peers that negotiate for the first time will open a new channel... Thanks,

SB85 (Thu, 08 Feb 2018 23:05:44 GMT):
aaa

ChuckGriess (Thu, 08 Feb 2018 23:20:34 GMT):
Has joined the channel.

Bchainer (Fri, 09 Feb 2018 01:39:51 GMT):
Has joined the channel.

Bchainer (Fri, 09 Feb 2018 01:43:46 GMT):
Hello, can someone help with understanding Endorsement peers? I have been going over the documentation and understand that they are responsible for endorsing a transaction received from the client and is evaluated based on the endorsing policy. Let's say we have 2 organizations org 1 (peer1, peer2) & org 2 (peer3, peer4) with peer1 and peer3 having the chaincode installed, making them the endorsing peer 1) When a client creates a transaction, how does it send the proposal to Peer1 and Peer3? 2) How does it work with endorsement policy (where I can only mention org.member and not the actual peer)

wengleboy (Fri, 09 Feb 2018 01:51:05 GMT):
Hi, I change some source code in hyperledger fabric, then rebuild the code by run: *make* but nothing has changed until I run: *make clean* then *make* again, what actually happen here?

ShefaliMittal (Fri, 09 Feb 2018 04:02:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XQumXSXvWGS245PkR) @AshishMishra 1 I have used aliases also.. but unable to access with alias name also.. only IP address works.

dinesh.rivankar (Fri, 09 Feb 2018 05:18:32 GMT):
Hi Guys, we are trying to create a wallet by using Fabric v1.0. Here are the challenges faced: https://jira.hyperledger.org/browse/FAB-8129 Appreciate if someone can share design thinking.

ben.dougherty (Fri, 09 Feb 2018 06:18:19 GMT):
Has joined the channel.

Taffies (Fri, 09 Feb 2018 06:49:28 GMT):
Hi! Does anyone have any experience with modelling nested JSON data inside the chaincode? I'm trying to use a nested structure but I'm running into some difficulties when coding it out.

Taffies (Fri, 09 Feb 2018 06:50:42 GMT):
Concrete examples showing how it is being done would be awesome if you all know of any. :)

Vadim (Fri, 09 Feb 2018 07:58:31 GMT):
@Taffies it's just go struct inside another go struct

Vadim (Fri, 09 Feb 2018 08:12:33 GMT):
[ ](https://chat.hyperledger.org/channel/general?msg=XGGS3aq8LHm64AZ55) @zzylmt is fabric repo in gopath?

zzylmt (Fri, 09 Feb 2018 08:12:34 GMT):
Has joined the channel.

zzylmt (Fri, 09 Feb 2018 08:15:49 GMT):
@Vadim yes,i set fabric in gopath,can you see my env?i will upload here again

MokeyJoy (Fri, 09 Feb 2018 08:15:57 GMT):
Has joined the channel.

zzylmt (Fri, 09 Feb 2018 08:16:09 GMT):

s8.png

Vadim (Fri, 09 Feb 2018 08:17:20 GMT):
so GOPATH is /home/zz/go, but your fabric source code is not there

zzylmt (Fri, 09 Feb 2018 08:17:38 GMT):
oh,no

zzylmt (Fri, 09 Feb 2018 08:18:51 GMT):
i forgot source

Vadim (Fri, 09 Feb 2018 08:19:25 GMT):
seems that you cloned it to ~/gocode

Vadim (Fri, 09 Feb 2018 08:19:43 GMT):
it should be in $GOPATH/src

MokeyJoy (Fri, 09 Feb 2018 08:20:06 GMT):
1. How do I know which peer is archon peer? 2. How do I set peer to be archon endonsing peer? 3. Why fabcar sample no archon setup? "The anchor peers for Org1MSP (peer0.org1.example.com) and Org2MSP (peer0.org2.example.com) are then updated. We do this by passing the Org1MSPanchors.tx and Org2MSPanchors.tx artifacts to the ordering service along with the name of our channel." ref: http://hyperledger-fabric.readthedocs.io/en/release/build_network.html#behind-scenes

MokeyJoy (Fri, 09 Feb 2018 08:20:06 GMT):
"The anchor peers for Org1MSP (peer0.org1.example.com) and Org2MSP (peer0.org2.example.com) are then updated." What updated? Why need to update?

Vadim (Fri, 09 Feb 2018 08:21:59 GMT):
1. YOu decide it yourself 2. You install chaincode on it and send a proposal to it 3. Anchor peers are desirable, but not necessary

MokeyJoy (Fri, 09 Feb 2018 08:23:30 GMT):
"The anchor peers for Org1MSP (peer0.org1.example.com) and Org2MSP (peer0.org2.example.com) are then updated." What updated? Why need to update?

zzylmt (Fri, 09 Feb 2018 08:24:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PjM75ywmejFhmgkzd) @Vadim thaaaaaaaaaaaaaank you

Vadim (Fri, 09 Feb 2018 08:31:24 GMT):
@MokeyJoy probably they meant that the peers are added to the channel config and that is done by sending CONFIG_UPDATE transaction

MokeyJoy (Fri, 09 Feb 2018 08:35:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pvf5ownyqjgYJpPYg) @Vadim I just check docker-compose-base.yaml in fabric-sample/first-network no special config to set peer0.org1.example.com to be the anchor peers

Vadim (Fri, 09 Feb 2018 08:35:28 GMT):
@MokeyJoy it's done in the orther place by the script

Vadim (Fri, 09 Feb 2018 08:35:52 GMT):
https://github.com/hyperledger/fabric-samples/blob/release/first-network/scripts/script.sh#L73

MokeyJoy (Fri, 09 Feb 2018 08:47:06 GMT):
@Vadim Thank you! last question What is Org1MSPanchors.tx? Why other sample like fabcar don't need it? 1. configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP 2. peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/${CORE_PEER_LOCALMSPID}anchors.tx >&log.txt very confused

Vadim (Fri, 09 Feb 2018 08:47:44 GMT):
@MokeyJoy which network does fabcar use?

Vadim (Fri, 09 Feb 2018 08:48:06 GMT):
Org1MSPanchors.tx is a channel update transaction which contains the address of the anchor peer

Vadim (Fri, 09 Feb 2018 08:48:06 GMT):
Org1MSPanchors.tx is a channel update transaction which contains the address of the anchor peer for org1

MokeyJoy (Fri, 09 Feb 2018 08:49:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hY7MxeYaeucDxpErZ) @Vadim fabric-sample/first-network 1../byfn will run generateChannelArtifacts() then run peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/${CORE_PEER_LOCALMSPID}anchors.tx >&log.txt in script.sh

Vadim (Fri, 09 Feb 2018 08:50:04 GMT):
then fabrcar uses network which has anchor peers

Vadim (Fri, 09 Feb 2018 08:52:13 GMT):
anchor peers can be used to request blocks/states from another trusted peers in another org when orderers don't contain these blocks

Vadim (Fri, 09 Feb 2018 08:53:05 GMT):
afaik, for now they just there but not really needed right now, because orderer data archiving is not implemented yet

zzylmt (Fri, 09 Feb 2018 08:57:53 GMT):
@Vadim this time,i seems i have no authorization,how can i do ?

zzylmt (Fri, 09 Feb 2018 08:57:59 GMT):

19.png

MokeyJoy (Fri, 09 Feb 2018 08:59:00 GMT):
@Vadim Thank you! :)

Vadim (Fri, 09 Feb 2018 08:59:25 GMT):
@zzylmt well, it seems that it wants to install it on your system

Vadim (Fri, 09 Feb 2018 09:01:13 GMT):
do you see a binary in build/bin/configtxgen=

Vadim (Fri, 09 Feb 2018 09:01:13 GMT):
do you see a binary in build/bin/configtxgen=?

Vadim (Fri, 09 Feb 2018 09:01:13 GMT):
do you see a binary in fabric/build/bin/configtxgen?

zzylmt (Fri, 09 Feb 2018 09:01:58 GMT):
no ,it said recipe for target 'build/bin/configtxgen' failed

Vadim (Fri, 09 Feb 2018 09:02:43 GMT):
@zzylmt ah, I see

Vadim (Fri, 09 Feb 2018 09:03:41 GMT):
try to put fabric to gopath and run make configtxgen from there

zzylmt (Fri, 09 Feb 2018 09:05:30 GMT):
should i sudo chmod 777 /usr/lib/go-1.9/

zzylmt (Fri, 09 Feb 2018 09:05:35 GMT):
@Vadim

Vadim (Fri, 09 Feb 2018 09:05:45 GMT):
I don't think so

zzylmt (Fri, 09 Feb 2018 09:08:50 GMT):
@Vadim i tried,and succeeded……

Vadim (Fri, 09 Feb 2018 09:09:03 GMT):
what, still the same error?

zzylmt (Fri, 09 Feb 2018 09:09:45 GMT):
i got build/bin/configtxgen

Vadim (Fri, 09 Feb 2018 09:16:03 GMT):
well then it worked

zzylmt (Fri, 09 Feb 2018 09:23:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z8W5jdSHrEoQ6N4u2) @Vadim thx all the same

Naithan (Fri, 09 Feb 2018 09:59:15 GMT):
Has joined the channel.

Naithan (Fri, 09 Feb 2018 10:00:26 GMT):
Hi, I'm looking into the viability of using fabric for our project. Can I have a one-on-one chat with a fabric expert

Vadim (Fri, 09 Feb 2018 10:01:55 GMT):
@Naithan you don't want to ask your questions here?

Naithan (Fri, 09 Feb 2018 10:02:23 GMT):
rather one on one as it is rather elaborate

MokeyJoy (Fri, 09 Feb 2018 10:03:10 GMT):
does org1 join with org2 in fabirc-sample/first-network ? why no command 'configtxlator' used just like in "https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html"

Vadim (Fri, 09 Feb 2018 10:04:20 GMT):
@MokeyJoy configtxlator is used to reconfigure the running network, in first-network the network gets created from scratch, so the tool is not needed

Ryan2 (Fri, 09 Feb 2018 10:05:25 GMT):
Has joined the channel.

PyiTheinKyaw (Fri, 09 Feb 2018 10:40:51 GMT):
Hello everyone, I have 4 peer. I got following error message in my peer 2. It says, Peer 3 and peer 4 is invalid or not alive. Actually, It is still alive. I think, i might wrong config for crypto. What I miss and.. what is possible reson. Would you please help me. ``` 2018-02-05 16:49:20.002 MMT [gossip/comm] sendToEndpoint -> WARN c116c Failed obtaining connection for peer4:7051, PKIid:[235 77 236 183 109 143 111 226 89 83 172 102 143 151 78 208 219 60 160 243 69 162 72 114 130 197 77 74 78 224 40 183] reason: context deadline exceeded ```

yacovm (Fri, 09 Feb 2018 11:05:36 GMT):
try to turn CORE_LOGGING_GRPC=debug @PyiTheinKyaw

yacovm (Fri, 09 Feb 2018 11:05:49 GMT):
maybe it can't connect because of TLS

yacovm (Fri, 09 Feb 2018 11:06:06 GMT):
also - is peer2 in the same organization as peer4?

yacovm (Fri, 09 Feb 2018 11:06:11 GMT):
do they have a common channel?

yacovm (Fri, 09 Feb 2018 11:06:29 GMT):
can you get into the container/VM of peer2 and ping peer4, or connect via telnet to peer4?

dtp (Fri, 09 Feb 2018 15:03:35 GMT):
Has joined the channel.

dtp (Fri, 09 Feb 2018 15:08:44 GMT):
Hi there, I want to develop a trading platform and run it with Fabric. I have some doubts on how to proceed. I was thinking of doing this: 1) Use the "BYFN" tutorial as my starting point for my fabric network 2) Configure transactions details to match the type of trades I require 3) Integrate HL Composer with my Fabric network and develop my trading platform on Composer Is this a good way to proceed? Any advice, or better ways? Thanks

mastersingh24 (Fri, 09 Feb 2018 15:23:51 GMT):
@dtp - generally speaking that sounds about right. I'd suggest that you actually start with Composer and see if you can model the assets you want to trade as well as the types of transactions you want for those assets. Once you have proven that out, you can then deploy to one of the example networks. Composer actually has instructions as well for working with sample Fabric networks

dtp (Fri, 09 Feb 2018 15:30:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vMBe3FqkC4MNkcPAu) @mastersingh24 Thanks for the reply! Since I am planning to use a Raspberry Pi 3 as a peer (correct term?) on the fabric network, would I encounter problems if I use Composer? Composer only supports Ubuntu for Linux. Another question is: By using Composer does that replace entirely the need to use one of the Fabric SDKs? Thanks again!

mastersingh24 (Fri, 09 Feb 2018 16:41:47 GMT):
I don't believe there will be any issues deploying the artifacts created by Composer to a peer running on a Pi3. You would just need to use a supported development system to actually use the tooling to create the artifacts. If you choose to deploy the Composer REST server, then your apps can interact with the blockchain via REST and you would not need to directly use of the SDKs to build your apps

MohammadObaid (Fri, 09 Feb 2018 16:51:08 GMT):
Hey @mastersingh24 can we use hyperledger fabric with iot sensers ?

MohammadObaid (Fri, 09 Feb 2018 16:51:37 GMT):
like as a blockchain +iot project

mastersingh24 (Fri, 09 Feb 2018 16:54:11 GMT):
@MohammadObaid - you mean have sensors send data to the blockchain?

MohammadObaid (Fri, 09 Feb 2018 16:54:41 GMT):
Yeah . Data collected from iot sensers to fabric blockchain ?

MohammadObaid (Fri, 09 Feb 2018 16:54:41 GMT):
@mastersingh24 Yeah . Data collected from iot sensers to fabric blockchain ?

MohammadObaid (Fri, 09 Feb 2018 17:00:33 GMT):
I know it would be tough but from pharmaceutical supplychain perspective I wanted to know

mastersingh24 (Fri, 09 Feb 2018 17:46:54 GMT):
Typically the sensors won't communicate directly with Fabric as you won't be able to add code to them (and typically they are pretty small footprint). Of course there is usually a gateway to which they connect and send data. So typically what you would end up doing is creating a trusted application which consumed the aggregated device feed(s) from the gateway (or other collection point), filters the data and then acts as a client to send the relevant data to the Fabric blockchain

WoleCharles (Fri, 09 Feb 2018 17:56:16 GMT):
Has joined the channel.

MohammadObaid (Fri, 09 Feb 2018 17:57:52 GMT):
Yeah like using aws iot to filter data after getting from iot sensor and then insert that filtered data to fabric ledger

mastersingh24 (Fri, 09 Feb 2018 20:31:09 GMT):
or IBM IoT ;) (I used to work on that) ;)

MuhammadSalah (Fri, 09 Feb 2018 20:55:40 GMT):
@MohammadObaid @mastersingh24 It's manageable over the fabric level; Watson IoT platform can integrate with it beautifully; probably use something like NODERED for fast composition.

yacovm (Fri, 09 Feb 2018 21:02:24 GMT):
If I had spare time on my hands I'd integrate the node SDK and build a nodeRED fabric node.

yacovm (Fri, 09 Feb 2018 21:02:42 GMT):
It's pretty straight forward to build you own nodes, I did it a couple of times

MuhammadSalah (Fri, 09 Feb 2018 21:23:01 GMT):
@yacovm it would be lovely to see something like that; and I think there is bad composer node I think! I am not really big fan of NODERED :D I just do the fast stuff with it.

MuhammadSalah (Fri, 09 Feb 2018 21:23:56 GMT):
And to that point, I think more appropriate integration would be considering some MQ ; like Rabbit maybe.

MuhammadSalah (Fri, 09 Feb 2018 21:24:15 GMT):
There is lots to pick;

yacovm (Fri, 09 Feb 2018 21:25:56 GMT):
There is a composer node??

MuhammadSalah (Fri, 09 Feb 2018 21:26:57 GMT):
yep, with issues!

MuhammadSalah (Fri, 09 Feb 2018 21:27:00 GMT):
maybe you fix it :D

BalaM (Fri, 09 Feb 2018 22:03:38 GMT):
Has joined the channel.

BalaM (Fri, 09 Feb 2018 22:06:26 GMT):
I have setup Fabric on AWS EC2 machine running on UBUNTU OS. While testing it with the first network sample project , I get the below error... ubuntu@ip-10-35-128-73:~/fabric-samples/first-network$ ./byfn.sh generate Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x77c4fe]

MuhammadSalah (Fri, 09 Feb 2018 23:26:49 GMT):
check if it's the correct binaries, doesn't hurt to double check.

yetanotheruser23 (Fri, 09 Feb 2018 23:46:42 GMT):
Has joined the channel.

yetanotheruser23 (Fri, 09 Feb 2018 23:48:38 GMT):
Hello, I used the cryptogen tool to generate crypto material for one OrdererOrg and two PeerOrgs. But when I try to create the Genesis block, I get an error.

yetanotheruser23 (Fri, 09 Feb 2018 23:49:13 GMT):
peerOrganizations//msp/cacerts: no such file or directory.

yetanotheruser23 (Fri, 09 Feb 2018 23:49:52 GMT):
I can see the files present in that folder. I've verified that they are valid certificates using an openssl tool. Does anyone know what I might be doing wrong?

yetanotheruser23 (Fri, 09 Feb 2018 23:50:23 GMT):
The Error begins with -Error loading MSP Configuration for

yetanotheruser23 (Sat, 10 Feb 2018 00:08:02 GMT):
- Error loading MSP configuration for org : Could not load a valid ca certificate from directory /root/fabric-samples/basic-network/crypto-config/peerOrganizations//msp/cacerts, err stat /root/fabric-samples/basic-network/crypto-config/peerOrganizations//msp/cacerts: no such file or directory

akarshHegde (Sat, 10 Feb 2018 00:59:56 GMT):
Has joined the channel.

SB85 (Sat, 10 Feb 2018 01:21:21 GMT):
can somebody tell me what do we mean by installing chaincode on peers? Is it compiling the source code?

yetanotheruser23 (Sat, 10 Feb 2018 01:24:02 GMT):
Chaincode is code that runs functions on peers. Not all peers have Chaincode when you first create them. An Admin peer has to copy the chaincode (usually a .go file) on all the peers.

SB85 (Sat, 10 Feb 2018 02:08:37 GMT):
so installing means just copying the chaincode into peers.Not related any compilation of code or anything

craik.zhang (Sat, 10 Feb 2018 02:38:26 GMT):
Has joined the channel.

devth (Sat, 10 Feb 2018 04:10:12 GMT):
Has joined the channel.

devth (Sat, 10 Feb 2018 04:11:57 GMT):
how to join org1(orderer1) with org2(orderer2) with separate order or?

MohammadObaid (Sat, 10 Feb 2018 05:43:14 GMT):
@MuhammadSalah Yeah . I heard that IBM watson IOT can integerate it with IBM Blockchain service but I would prefer to build a custom network of my own and connect it with IOT platform. I have used ibm blockchain service but it dosent give full control over code and other thing is its little bit expensive as well :p

Koptop (Sat, 10 Feb 2018 08:29:31 GMT):
Has joined the channel.

nycycr (Sat, 10 Feb 2018 09:35:49 GMT):
Has joined the channel.

mastersingh24 (Sat, 10 Feb 2018 09:55:14 GMT):
Installing basically means making the chaincode "bytes" (aka package) available on the peer's filesytem (https://chat.hyperledger.org/channel/fabric-questions?msg=ChCBt9vZiEWwy2QvF) @SB85

dpk2877 (Sat, 10 Feb 2018 17:26:40 GMT):
Could anyone please help me to answer this question? Let suppose, If we have two organizations and each organization has two peers and during chaincode installation, we specified one peer of each organization should endorse the transaction. Now, my question is, should our application know the address of every peer in the network? because according to node SDK, the application receives transaction response from all the endorsing peers before it submits to the orderer.

yacovm (Sat, 10 Feb 2018 19:27:27 GMT):
@dpk2877 - in v1.0 and v1.1 the application should know the address of all peers. in v1.2 it could query peers and ask about addresses of other peers, so presumably you would only need to know 1 peer that from it you could know about all other peers

Lorismelik (Sun, 11 Feb 2018 16:26:27 GMT):
Has joined the channel.

Lorismelik (Sun, 11 Feb 2018 16:26:41 GMT):
Can someone explain how the data immutability in private channels is implemented in Fabric? How i can establish which ledger stores valid history of transactions, if one party has forged data on its peer?

MokeyJoy (Mon, 12 Feb 2018 04:18:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hLMWeYrzW5G4gXPa2) @dpk2877 Your application no need to know all address, just address of peer which you install chaincode and you want to call read/update/set. The concept is "https://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html" Chaincode trust flexibility.

changu02 (Mon, 12 Feb 2018 07:00:36 GMT):
what does Profile: TwoOrgsChannel organizations: -org1 , -org2 in configx.yaml exactly mean?

changu02 (Mon, 12 Feb 2018 07:03:09 GMT):
I heard that this means how many and what orgs are going to join to the channel

changu02 (Mon, 12 Feb 2018 07:04:25 GMT):
But why should we type additional command such as "peer join -b channel.block" after loading containers?

ShefaliMittal (Mon, 12 Feb 2018 08:17:32 GMT):
Hi.. I am facing issues in endorsement policy with two orgs. When I set the endorsement policy as - "OR ('Org1.member','Org2.member')", everything works. But when I change the "OR" to "AND" in the endorsement policy, it doesn't work. I receive the error message saying endorsement policy failure. I am trying to invoke the chaincode using below command - peer chaincode invoke -o orderer.org1.com:7050 -C b2bchannel -n B2BMessaging -c '{"function":"initLedger","Args":[""]}'

MokeyJoy (Mon, 12 Feb 2018 08:34:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2gBDunAMYxyRJZzpN) More "http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html" 2. Basic workflow of transaction endorsement will explain more

rhansharief (Mon, 12 Feb 2018 11:24:37 GMT):
mismatched channel ID mychannel

rhansharief (Mon, 12 Feb 2018 11:24:52 GMT):
anyone experienced this error?

changu02 (Mon, 12 Feb 2018 13:18:59 GMT):
how to set chaincode policy to make only one org can use it when instantiate. for example. or(org1member , org2member ) guarantee two orgs but i wanna make only org1 member use the chaincode.

DmitryNovenkykh (Mon, 12 Feb 2018 13:45:52 GMT):
Hello everyone! i`m using Attribute-based Access Control and faced problem. s it possible to change user attributes? I didnt found how to change it

DmitryNovenkykh (Mon, 12 Feb 2018 13:45:57 GMT):
Ty for any help

jeffgarratt (Mon, 12 Feb 2018 14:29:39 GMT):
@DmitryNovenkykh may wish to pose your question in #fabric-ca as well

C.Jason.Phelps (Mon, 12 Feb 2018 15:20:32 GMT):
I have added indexes to couchdb and am able to submit a search through couchdb using sort, however when trying to submit through fabric request getting `Error: http: read on closed response body` my request using this as query string ```{ selector:{docType:"provider", index:{$lt:1000}}, sort:[{"index":"asc" }] }``` Dont know if there is something I am missing due to the index needing to be on field data.index but have tried both, data.index and index, on fabric request couchdb index ```{ "index": { "fields": [ "data.docType", "data.index" ] }, "type": "json" }```

C.Jason.Phelps (Mon, 12 Feb 2018 15:20:33 GMT):
if I remove the sort from request it works but need sorted information

C.Jason.Phelps (Mon, 12 Feb 2018 15:20:53 GMT):
any help would be appreciated

ohmeraka (Mon, 12 Feb 2018 16:23:54 GMT):
Has joined the channel.

yetanotheruser23 (Mon, 12 Feb 2018 16:42:35 GMT):
In the configtx.yaml file, we define Orderer side of the network and the application side of the network. Can someone clarify what the Application defaults are? I've been looking at the fabric-samples, but I don't see application defaults being set anywhere. Are the peer organizations the applications?

atbe (Mon, 12 Feb 2018 20:40:26 GMT):
Has joined the channel.

Jonny (Tue, 13 Feb 2018 02:47:03 GMT):
hi, how can I safely restore data coachdb directory to another installation? Sometime we need to restore our backup data

jes (Tue, 13 Feb 2018 03:45:39 GMT):
Has joined the channel.

jes (Tue, 13 Feb 2018 03:46:09 GMT):
I built a Fabric network using Kafka-based orderer service. (5 peers, 1 orderer and 4 kafka) I was checking the peer logs and keep seeing this warning message: "Deep probe of peer0:7051 failed: context deadline exceeded Could not connect to {peer0:7051 [] [] peer0:7051} : context deadline exceeded" Any ideas?

PyiTheinKyaw (Tue, 13 Feb 2018 03:49:44 GMT):
Dear guys, in my one of the peer display following log. Would you please kindly help me, how can I handle it. ` [33m2018-02-05 10:19:57.443 UTC [gossip/state] queueNewMessage -> WARN 6117 [0m Failed adding payload: Ledger height is at 4333, cannot enqueue block with sequence of 938` Thanks with regards,

tiennv (Tue, 13 Feb 2018 04:46:08 GMT):
Hi,

tiennv (Tue, 13 Feb 2018 04:47:24 GMT):
When I run node ./test/integration/e2e/create-channel.js, I got this error "Successfully failed with max error on the create channel: Error: 8 RESOURCE_EXHAUSTED: Sent message larger than max (6865 vs. 6800)".

tiennv (Tue, 13 Feb 2018 04:47:55 GMT):
Could you please help me on the problem?

changu02 (Tue, 13 Feb 2018 06:04:34 GMT):
Hi, Im facing very weird situation. I set a hyperledger fabric network with two orgs (each have 3peers and one couchdb for every peer) and two fabric ca server. All container are normally made with my docker. But after few minutes, all container's file system is modified automatically and simultaneously. MSP related directory and files are also removed. plz teach me how to solve this...

changu02 (Tue, 13 Feb 2018 06:08:49 GMT):
When I browse directory with 'ls'

changu02 (Tue, 13 Feb 2018 06:09:08 GMT):
cannot access : input/output error occurs

username343 (Tue, 13 Feb 2018 06:28:24 GMT):
Does hyperledger fabric only support symmetric encryption in form of AES

AshishMishra 1 (Tue, 13 Feb 2018 07:00:01 GMT):
Is 1000 TPS a realistic performance which can be achieved on Fabric? I tried out the 1.1.0 alpha release but the max TPS I could reach was 350. My setup consists of 5 nodes, each running a peer. And 4 Kafka, 3 ZK, 3 orderer, 1 CA spread out on these nodes only. The node is having 16 vpcus and 32 GB memory, AWS C5.8x large instances.

MokeyJoy (Tue, 13 Feb 2018 07:10:18 GMT):
@AshishMishra 1 How did you setup kafka with orderers? After reach 350 TPS what happen? something down?

AshishMishra 1 (Tue, 13 Feb 2018 07:22:34 GMT):
@MokeyJoy after 350 nothing happens. I 'm using a REST webserver to send the request to fabric nodes. So my client was not able to push more requests.

PyiTheinKyaw (Tue, 13 Feb 2018 07:33:32 GMT):
Hello Guys @here, In my all of peers apper following logs, What I was wrong. I think data could not able to sync over "Gossip" protocol. ``` 2018-02-13 08:27:39.437 MMT [gossip/state] queueNewMessage -> WARN 315 Failed adding payload: Ledger height is at 5704, cannot enqueue block with sequence of 200 2018-02-13 08:27:39.437 MMT [gossip/state] queueNewMessage -> WARN 316 Failed adding payload: Ledger height is at 5704, cannot enqueue block with sequence of 236 2018-02-13 08:27:39.437 MMT [gossip/state] queueNewMessage -> WARN 317 Failed adding payload: Ledger height is at 5704, cannot enqueue block with sequence of 189 2018-02-13 08:27:39.437 MMT [gossip/state] queueNewMessage -> WARN 318 Failed adding payload: Ledger height is at 5704, cannot enqueue block with sequence of 261 ``` How could I able to solve it. Any Idea ?

AshishMishra 1 (Tue, 13 Feb 2018 07:54:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FzHeP4iftddfgoYqs) @PyiTheinKyaw I 'm having the same issue. Maybe just a warning.

zasamen (Tue, 13 Feb 2018 08:43:00 GMT):
Hello, @here . Can anyone explain why does it happen? ```2018-02-13 08:21:01.516 UTC [orderer/common/deliver] Handle -> WARN 985 Error reading from stream: rpc error: code = Canceled desc = context canceled```

yacovm (Tue, 13 Feb 2018 08:43:15 GMT):
yes

yacovm (Tue, 13 Feb 2018 08:43:25 GMT):
a client/peer disconnects from the orderer abruptly

yacovm (Tue, 13 Feb 2018 08:43:30 GMT):
and the orderer fails reading from the socket

yacovm (Tue, 13 Feb 2018 08:43:33 GMT):
so it complains in the log

zasamen (Tue, 13 Feb 2018 08:44:44 GMT):
@yacovm But why? If everything seems ok. All peers & orders are up and in the same network

yacovm (Tue, 13 Feb 2018 08:45:00 GMT):
that's how the code is written

yacovm (Tue, 13 Feb 2018 08:45:17 GMT):
@jyellick maybe we should mute that logging?

yacovm (Tue, 13 Feb 2018 08:48:12 GMT):
make it debug, etc.

zasamen (Tue, 13 Feb 2018 08:49:01 GMT):
How can i resolve the this problem? Where should i reed more information? How to make everything working?

AshishMishra 1 (Tue, 13 Feb 2018 08:52:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zh756krBTEKRYirYe) @yacovm , Hi can you please provide some inputs here.

PyiTheinKyaw (Tue, 13 Feb 2018 08:52:31 GMT):
@AshishMishra 1 Thank for your cooperation. I found one explanation. Please refer to following link > https://stackoverflow.com/questions/48700036/errors-when-invoking-chaincode

AshishMishra 1 (Tue, 13 Feb 2018 08:55:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fFWtihGocd4XWYnMT) @PyiTheinKyaw Thanks. Interesting. I was under the impression that only the leader peer would pull the blocks from orderer. By gossip the blocks will be then broadcasted to other peers. If individual peers start pulling blocks, then we might create a bottleneck.

yacovm (Tue, 13 Feb 2018 08:56:17 GMT):
No I can't, it depends on too many factors.

PyiTheinKyaw (Tue, 13 Feb 2018 08:56:35 GMT):
@AshishMishra 1 If you have any solution idea, please suggest me Thanks.

PyiTheinKyaw (Tue, 13 Feb 2018 08:58:06 GMT):
@zasamen Could you provide more information about steps which you occur that error. I need to reporduce it.

AshishMishra 1 (Tue, 13 Feb 2018 08:58:22 GMT):
@PyiTheinKyaw Not at this moment. So far I verified my blocks and transactions and didn't find any issue so chose to ignore this warning.

PyiTheinKyaw (Tue, 13 Feb 2018 08:58:50 GMT):
@AshishMishra 1 Thank for supporting :)

PyiTheinKyaw (Tue, 13 Feb 2018 09:04:11 GMT):
Hello everyone, @here When we start the peer service, we need to modify (or) add the environment variable. In those environment variable, I have a little confuse on one environment variable. That are `CORE_PEER_GOSSIP_USELEADERELECTION=true` Could anyone explain it ? Thanks.

PyiTheinKyaw (Tue, 13 Feb 2018 09:04:11 GMT):
Hello everyone, When we start the peer service, we need to modify (or) add the environment variable. In those environment variable, I have a little confuse on one environment variable. That are `CORE_PEER_GOSSIP_USELEADERELECTION=true` Could anyone explain it ? Thanks.

yacovm (Tue, 13 Feb 2018 09:04:36 GMT):
look at the core.yaml file

yacovm (Tue, 13 Feb 2018 09:04:38 GMT):
it has comments

kapilAtrey (Tue, 13 Feb 2018 09:05:01 GMT):
@PyiTheinKyaw will you please using @here all the time

PyiTheinKyaw (Tue, 13 Feb 2018 09:05:31 GMT):
@kapilAtrey I am sorry for your inconvenineces.

JonathanLevi (Tue, 13 Feb 2018 09:05:40 GMT):
Stop using the @ 'here' thingy... please.

JonathanLevi (Tue, 13 Feb 2018 09:05:40 GMT):
Stop using the @ `here` thingy... please.

PyiTheinKyaw (Tue, 13 Feb 2018 09:06:07 GMT):
I am sorry !

JonathanLevi (Tue, 13 Feb 2018 09:06:08 GMT):
@kapilAtrey and @PyiTheinKyaw

PyiTheinKyaw (Tue, 13 Feb 2018 09:13:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6SXi8bPzag7w7Q3Au) can anyone expalin me ? please

MokeyJoy (Tue, 13 Feb 2018 09:16:23 GMT):
@yacovm where core.yaml?

yacovm (Tue, 13 Feb 2018 09:16:35 GMT):
in https://github.com/hyperledger/fabric/tree/master/sampleconfig

zasamen (Tue, 13 Feb 2018 09:26:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F4icvKPniuK8zzubP) @PyiTheinKyaw I've created crypto-configs & artifacts, Deployed all necessary images, created channel, connected all peers to it, installed chaincode, and instantiated it (I think this error happened here) and try to query it on peer different than instantiated chaincode, here i've got message that i've no chaincode with that name.

Jonny (Tue, 13 Feb 2018 09:39:53 GMT):
Is that safe to ignore the following error ```couchdb1 | [os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang ```

Jonny (Tue, 13 Feb 2018 09:39:53 GMT):
Is that safe to ignore the following error `couchdb1 | [os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang `

rizwan92 (Tue, 13 Feb 2018 10:22:02 GMT):
Has joined the channel.

DmitryNovenkykh (Tue, 13 Feb 2018 13:10:51 GMT):
Hello everyone! Faced this error with kafka

DmitryNovenkykh (Tue, 13 Feb 2018 13:10:52 GMT):
ERROR [Replica Manager on Broker 0]: Error processing append operation on partition [mychannel1,0] (kafka.server.ReplicaManager) kafka.common.NotEnoughReplicasException: Number of insync replicas for partition [mychannel1,0] is [1], below required minimum [2]

DmitryNovenkykh (Tue, 13 Feb 2018 13:10:52 GMT):
Current thread (0x00007fdf4000d800): JavaThread "Unknown thread" [_thread_in_vm, id=84, stack(0x00007fdf48bd6000,0x00007fdf48cd7000)]

DmitryNovenkykh (Tue, 13 Feb 2018 13:11:00 GMT):
Did anyone faced it?

AshishMishra 1 (Tue, 13 Feb 2018 13:56:12 GMT):
Hi team.. regarding endorsement policy.. when I mention AND for Org1 and Org2 for example, when invoking the chaincode from CLI how can I get the transaction endorsed from both the org ?

Ratnakar (Tue, 13 Feb 2018 14:30:20 GMT):
@AshishMishra 1 , The Policy with *AND* would require the transaction to be signed by both Org1 and Org2. Unfortunately this is not possible from CLI. you have to use SDK for this to work.

Ratnakar (Tue, 13 Feb 2018 14:30:20 GMT):
@AshishMishra 1 , The Policy with *AND* would require the transaction to be signed by both Org1 and Org2. Unfortunately this is not possible from CLI. you have to use SDK for this to work.

AshishMishra 1 (Tue, 13 Feb 2018 14:37:29 GMT):
@Ratnakar , thanks. :)

AshishMishra 1 (Tue, 13 Feb 2018 14:38:06 GMT):
Can anyone confirm if https://jira.hyperledger.org/browse/FAB-3389 is available in the master branch or 1.1. alpha release ?

alden 3 (Wed, 14 Feb 2018 01:28:02 GMT):
Has joined the channel.

MokeyJoy (Wed, 14 Feb 2018 03:40:23 GMT):
where can i setup MSP like org1.member?

MokeyJoy (Wed, 14 Feb 2018 03:40:23 GMT):
how can i setup MSP like org1.member?

JayJong (Wed, 14 Feb 2018 03:59:14 GMT):
Hi guys, I have set up fabric using kubernetes and the fabric SDK for node.js to talk to the blockchain. I am testing the performance of fabric by timing the start of invoking a single transaction on node A to the end of quering the same transaction on node B. I wrote a shell script to run the invoke.js and query.js in the fabcar sample. The result was 3.9 seconds for the writing and reading to complete. I have 2 questions: 1. Am i testing it correctly? Is that the right way to calculate tx per second? Fabric is said to be able to do 3500 tx per second and ethereum is able to do 15 tx per second. Should I be pushing 10,000 or more transactions to the blockchain and see how long it takes and divide 10,000 by time taken? 2. Why does it take 3.9 seconds to invoke and query using the node.js sdk? Is it because of the javascript code or the authentication takes sometime?

chandrasekarangengadharan (Wed, 14 Feb 2018 06:02:00 GMT):
Has joined the channel.

changu02 (Wed, 14 Feb 2018 06:15:45 GMT):
@here Im facing serious problem. when I set fabric ca server service in docker-compose.yml

DarshanBc (Wed, 14 Feb 2018 06:16:08 GMT):
can you stop using @ here @changu02

changu02 (Wed, 14 Feb 2018 06:16:15 GMT):
sorry

changu02 (Wed, 14 Feb 2018 06:16:15 GMT):
when FABRIC_CA_SERVER_CA_KEYFILE is set rightly, container doesn't up

changu02 (Wed, 14 Feb 2018 06:16:15 GMT):
but set wrongly, container does up

prabvi01 (Wed, 14 Feb 2018 06:21:10 GMT):
I'm trying run "composer network start" for multi org multiple machine on CentOS. It is showing network _byfn not found, $(COMPOSE_PROJECT_NAME) is empty. Can anyone help me in this?

Luxii (Wed, 14 Feb 2018 06:24:41 GMT):
@prabvi01 this channel is for fabric questions only

shalinigpt (Wed, 14 Feb 2018 09:08:27 GMT):
Has joined the channel.

smithbk (Wed, 14 Feb 2018 09:16:52 GMT):
@changu02 You can ask your question on the #fabric-ca channel

MokeyJoy (Wed, 14 Feb 2018 09:20:21 GMT):
"The client creates a transaction and sends it to endorsing peers of its choice" what does it means "its choice" ? Questions 1. Can anyone give me a use case why I need to create endorsement policy for (org1.member, org2.member) 2. Why the example shows client send transaction propose to 3 peers (https://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html) how endorsement policy required 3 peers to endorse from the same org?

MokeyJoy (Wed, 14 Feb 2018 09:20:21 GMT):
"The client creates a transaction and sends it to endorsing peers of its choice" what does it means "its choice" ? Questions 1. Can anyone give me a use case why I need to create endorsement policy for (org1.member, org2.member) 2. Why the example shows client send transaction propose to 3 peers (https://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html) how endorsement policy required 3 peers to endorse from the same org? find out how endorsement policy work for 2 days. very confuse

DmitryNovenkykh (Wed, 14 Feb 2018 15:08:48 GMT):
Hello everyone. Is anyone know about this issue? When i`m trying to instantiate chaincode on a server i`m getting this error: " sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT" reading the logs of peer instantiating goes like 10 minutes. Can anyone help me with suggestion? Ty

abelsilva (Thu, 15 Feb 2018 02:13:39 GMT):
Has joined the channel.

DmitryNovenkykh (Thu, 15 Feb 2018 07:48:18 GMT):
Weel actualy the question is now sounds like this. Is it possible to compile chaincode on local machine and paste it to peers then? Seems like compile on a server too long for this timeout

DmitryNovenkykh (Thu, 15 Feb 2018 07:48:18 GMT):
Well actualy the question is now sounds like this. Is it possible to compile chaincode on local machine and paste it to peers then? Seems like compile on a server too long for this timeout

DmitryNovenkykh (Thu, 15 Feb 2018 07:48:47 GMT):
Would be appreciated for any help)

jellevdp (Thu, 15 Feb 2018 08:17:53 GMT):
Hi! - I have a short question about something I'm reading out on the logs of a peer and was wondering whether somebody could provide me some insight: `peer0.powerpeers.nl | 2018-02-15 08:12:28.732 UTC [gossip/gossip] NewGossipService -> WARN 043 External endpoint is empty, peer will not be accessible outside of its organization` Does anybody know what this is about and how to remedy this?

linocatucci (Thu, 15 Feb 2018 08:47:42 GMT):
Has joined the channel.

yacovm (Thu, 15 Feb 2018 09:33:31 GMT):
@jellevdp yep i do

jellevdp (Thu, 15 Feb 2018 09:34:00 GMT):
@yacovm great - any env variables that need to be set?

yacovm (Thu, 15 Feb 2018 09:35:48 GMT):
Wait beforw that , do yoy understand what that means?

yacovm (Thu, 15 Feb 2018 09:35:55 GMT):
*you

yacovm (Thu, 15 Feb 2018 09:36:24 GMT):
Are you using docker to run the peer?

e-nikolov (Thu, 15 Feb 2018 09:38:29 GMT):
he is

yacovm (Thu, 15 Feb 2018 09:40:33 GMT):
So you can configure core_peer_gossip_externalendpoint but in ippercase

yacovm (Thu, 15 Feb 2018 09:40:40 GMT):
Uppercase

yacovm (Thu, 15 Feb 2018 09:40:49 GMT):
(sorry, on the phone)

jellevdp (Thu, 15 Feb 2018 09:49:28 GMT):
Thanks @yacovm

MokeyJoy (Thu, 15 Feb 2018 10:21:36 GMT):
fabric-sample/basic-network in docker-compose.yml orderer container volumes: - ./config/:/etc/hyperledger/configtx - ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1 fabric-sample/first-network in base/docker-compose-base.yaml orderer container volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls Why basic-network map ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1 ?

CorentinPacaud (Thu, 15 Feb 2018 10:31:29 GMT):
Hello, in this tuto https://discourse.skcript.com/t/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-physical-machine/602 , it referes many times of the folder /etc/hyperledger. But I don't have this folder. Why ? and how to fix it ? thx

MokeyJoy (Thu, 15 Feb 2018 10:38:24 GMT):
@CorentinPacaud /etc/hyperledger is inside docker container

CorentinPacaud (Thu, 15 Feb 2018 10:38:52 GMT):
Ah, ok. I understand know. Sry

CorentinPacaud (Thu, 15 Feb 2018 10:38:52 GMT):
Ah, ok. I understand now. Sry

eomer (Thu, 15 Feb 2018 13:07:42 GMT):
hi all. I'm following this doc : https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#start-the-network In manually generate artifacts section, I'm trying to join a channel. It says "This command returns a genesis block - - which we will use to join the channel. It contains the configuration information specified in channel.tx."

eomer (Thu, 15 Feb 2018 13:07:55 GMT):
but I get " Received Block : 0 "

eomer (Thu, 15 Feb 2018 13:07:59 GMT):
Any idea?

PyiTheinKyaw (Thu, 15 Feb 2018 13:11:57 GMT):
Hello I could not able to create channel I show following log `2018-02-15 13:11:48.808 UTC [orderer/common/broadcast] Handle -> WARN 2ef Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1

CorentinPacaud (Thu, 15 Feb 2018 13:28:35 GMT):
hello again, I try to start my network. When I run the followin cmd, I have a error : ``` docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f channel-artifacts/channel.tx 2018-02-15 13:26:30.761 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-02-15 13:26:30.761 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-02-15 13:26:30.763 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: failed to write window update: write tcp 172.22.0.5:56142->172.22.0.2:7050: write: broken pipe"; Reconnecting to {orderer.example.com:7050 } ``` Any help ?

CorentinPacaud (Thu, 15 Feb 2018 13:54:00 GMT):
Maybe, it's because of this ? https://discourse.skcript.com/t/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-physical-machine/602/4

CorentinPacaud (Thu, 15 Feb 2018 14:01:52 GMT):
So, do I need to replace by th IP on the machine in configtx ? ?

CorentinPacaud (Thu, 15 Feb 2018 15:16:10 GMT):
Ok, I change it. It seems to be better but now, I have another problem : ```

CorentinPacaud (Thu, 15 Feb 2018 15:16:10 GMT):
Ok, I change it. It seems to be better but now, I have another problem : ``` /apps/BusinessNetwork/tutorial-network$ docker exec peer0.org1.example.com peer channel create -o .3:7050 -c composerchannel -f channel.tx 2018-02-15 15:15:01.521 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-02-15 15:15:01.521 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-02-15 15:15:01.522 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: channel create configuration tx file not found open channel.tx: no such file or directory ```

CorentinPacaud (Thu, 15 Feb 2018 15:17:03 GMT):
But, there is a channel.tx file ! So what happened ?

CorentinPacaud (Thu, 15 Feb 2018 15:17:47 GMT):
Rights issue ? ``` ls -l channel.tx -rw-r--r-- 1 admlcl admlcl 364 févr. 15 16:04 channel.tx ```

jeffgarratt (Thu, 15 Feb 2018 15:46:53 GMT):
@CorentinPacaud look like you are trying to execute the command inside a container. Make sure to copy (docker cp) that file to the container first.

Stecec (Thu, 15 Feb 2018 15:54:45 GMT):
Has joined the channel.

Stecec (Thu, 15 Feb 2018 15:55:08 GMT):
Hi, I'd like extra support for the installation of Fabric in a production environment, is there any kind of paid support other than what IBM offers?

nickgaski (Thu, 15 Feb 2018 15:55:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oqxuJSXtPwbQsA9qT) @eomer issue an `ls` inside of your CLI container. You'll see a returned value based on the specified argument you pass to the channelID parameter on your channel creation call to the ordering service. The tutorial defaults to `mychannel`. So an `ls` should reveal a proto titled `mychannel.block` within your CLI container

CorentinPacaud (Thu, 15 Feb 2018 16:00:49 GMT):
@jeffgarratt So, I need to copy the channel.tx file from my vm to my docker container ? i'll try

vsadriano (Thu, 15 Feb 2018 18:23:45 GMT):
Hi! Is someone running a fabric network with non-root images?

yetanotheruser23 (Thu, 15 Feb 2018 19:56:20 GMT):
In the docker-compose-cli.yaml file, can someone tell me why we only define the environment variables for Org1? But in the "depends_on" section, we declare all the peers from all the peerOrgs.

nickgaski (Thu, 15 Feb 2018 20:33:52 GMT):
@yetanotheruser23 - it just gets bootstrapped with the org1 admin material. However, you mount it with all of the MSP so that it can 1. flip identities and 2. verify returned signatures

kikko7 (Thu, 15 Feb 2018 21:47:35 GMT):
Has joined the channel.

MichuER (Thu, 15 Feb 2018 22:08:45 GMT):
Has joined the channel.

MichuER (Thu, 15 Feb 2018 22:19:33 GMT):
Hello everyone, I had the following problem: When I typed in the Docker Terminal "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha" I received the following answer: bash: line 1: syntax error near unexpected token `newline ' bash: line 1: ` ' I could not find the answer here, and I noticed that the question was repeated. So I will share the solution that worked for me: "curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/v1.0.5/scripts /bootstrap.sh | bash -s 1.1.0-alpha "

yetanotheruser23 (Thu, 15 Feb 2018 22:29:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ye8RToiaW3AijLFtK) @nickgaski Thanks. Makes sense.

kikko7 (Thu, 15 Feb 2018 22:51:24 GMT):
I am having trouble getting a fabric network up in edx course. I have checked and now I am not able to start the . I am receiving this error: Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found when I try and tun ./startFabric.sh in the tuna-app demo This script has worked for me but is not anymore. I have tried cloning a fresh copy of the tuna-app but experience the same issue. To me it seems this is something along the lines of not being able to pull a docker image of a fabric-orderer from a cdn or something?

yetanotheruser23 (Thu, 15 Feb 2018 22:56:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xywQbX5sStcjWiAhp) @kikko7 Hi, it looks like this i a question on stackoverflow. https://stackoverflow.com/questions/43830372/error-manifest-for-hyperledger-fabric-ordererlatest-not-found

kikko7 (Thu, 15 Feb 2018 22:58:42 GMT):
Thank you @yetanotheruser23 I did not find that question useful but rereading https://hyperledger-fabric.readthedocs.io/en/release/samples.html and https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#bring-up-the-network worked for me.

kikko7 (Thu, 15 Feb 2018 22:59:18 GMT):
I think somehow I had deleted the platform specific binaries

skanamarla (Fri, 16 Feb 2018 00:25:47 GMT):
Has joined the channel.

skanamarla (Fri, 16 Feb 2018 00:26:30 GMT):
I'm a newcomer as well I'm currently on this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html under the "Bring Up the Network" section and when I try using "./byfn.sh up" command I am getting an error that says "windows named pipe error: The system cannot find the file specified. (code: 2) ERROR !!!! Unable to start network" What should I do to mitigate this problem?

Spicy5Shumai (Fri, 16 Feb 2018 03:42:57 GMT):
Has joined the channel.

fabcan (Fri, 16 Feb 2018 09:07:44 GMT):
Has joined the channel.

Stecec (Fri, 16 Feb 2018 09:11:31 GMT):
Hello everyone. How can Fabric be configured to start a network with two peers with the same organization but distributed on two different operating systems? Or how is possible to add a new peer (in a separate operating system) to an existing organization?

Turikalen (Fri, 16 Feb 2018 09:32:49 GMT):
Has joined the channel.

Turikalen (Fri, 16 Feb 2018 09:47:25 GMT):
Hello people! I recently began to study hyperleger tissue, and I already have some knowledge, but I finally did not understand how it works ( Can anyone explain the business processes and technical flow? For a better understanding, for example, for this situation: There are many coffee plantations, some transport companies, some frying, where fried grains, and buyers who can buy coffee. How would it look if I wanted to create my application on a hyperledger-fabric?

Mohammed_Azhar (Fri, 16 Feb 2018 10:16:20 GMT):
Has joined the channel.

CorentinPacaud (Fri, 16 Feb 2018 10:29:02 GMT):
Hello, Can anyone help me ? I have this pb : ``` docker exec peer0.org1.example.com peer channel create -o myIp:7050 -c composerchannel -f channel.tx 2018-02-16 10:27:41.950 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-02-16 10:27:41.950 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-02-16 10:27:41.952 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: channel create configuration tx file not found open channel.tx: no such file or directory ```

MokeyJoy (Fri, 16 Feb 2018 10:52:08 GMT):
@CorentinPacaud no channel.tx ?

CorentinPacaud (Fri, 16 Feb 2018 10:52:56 GMT):
that's the question. Where do I need to put the channel.tx ? copy it in the docker vm ?

MokeyJoy (Fri, 16 Feb 2018 10:53:03 GMT):
@CorentinPacaud just map volumn from /config to peer container

CorentinPacaud (Fri, 16 Feb 2018 10:53:22 GMT):
Ahhh, ok, will try

MokeyJoy (Fri, 16 Feb 2018 10:54:01 GMT):
./:/etc/hyperledger/configtx

MokeyJoy (Fri, 16 Feb 2018 10:56:23 GMT):
@Stecec join a new peer u need msp, then you just fetch channel config file, and then join channel

MokeyJoy (Fri, 16 Feb 2018 10:56:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YLsobpfiAuR5t2abS) @Stecec join a new peer u need msp, then you just fetch channel config file, and then join channel

MokeyJoy (Fri, 16 Feb 2018 10:56:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YLsobpfiAuR5t2abS) @Stecec join a new peer u need msp, then you just fetch channel config file, and then join channel https://discourse.skcript.com/t/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-physical-machine/602

CorentinPacaud (Fri, 16 Feb 2018 14:02:18 GMT):
Ok, I have moved forward. Now the error is this : ``` docker exec ea98db3ca7f8 peer channel create -o myIP:7050 -c channel -f /etc/hyperledger/configtx/channel.tx Error: Could not send :rpc error: code = Internal desc = transport: write tcp 172.22.0.5:45433->myIP:7050: write: broken pipe) ```

Cyrold (Fri, 16 Feb 2018 15:12:43 GMT):
Has joined the channel.

douglasthiel (Fri, 16 Feb 2018 16:39:31 GMT):
**Instantiate error** @yacovm The output from the peer0 on which I'm trying to instantiate my chaincode is [here](https://pastebin.com/p671hZQs) The chaincode install went fine on 4 peers that included the peer0 instantiate target. Any pointers would be helpful.

douglasthiel (Fri, 16 Feb 2018 16:39:31 GMT):
**Instantiate error** The instantiate attempt times out The output from the peer0 on which I'm trying to instantiate my chaincode is [here](https://pastebin.com/p671hZQs) The chaincode install went fine on 4 peers that included the peer0 instantiate target. Any pointers would be helpful.

yacovm (Fri, 16 Feb 2018 16:39:43 GMT):
why me? :(

douglasthiel (Fri, 16 Feb 2018 16:39:51 GMT):
reasons

douglasthiel (Fri, 16 Feb 2018 16:40:42 GMT):
anyway, the last time you offered I didn't take you up on it. :-)

douglasthiel (Fri, 16 Feb 2018 16:40:52 GMT):
You did help me just be commenting

douglasthiel (Fri, 16 Feb 2018 16:40:52 GMT):
ok, np

yacovm (Fri, 16 Feb 2018 16:41:06 GMT):
in the middle of something, sorry

douglasthiel (Fri, 16 Feb 2018 17:27:56 GMT):
got my chaincode to instantiage to work, but why is there a dev-peer image left in docker when it is

douglasthiel (Fri, 16 Feb 2018 17:27:56 GMT):
got my chaincode to instantiage to work, but why is there a dev-peer image left in docker when the network is shut down and docker system prune is used?

douglasthiel (Fri, 16 Feb 2018 17:27:56 GMT):
got my chaincode to instantiate to work, but why is there a dev-peer image left in docker when the network is shut down and docker system prune is used?

wbhagan (Fri, 16 Feb 2018 19:25:27 GMT):
Hello All. On creating a business contract, "the second way, and probably the more efficient way, is to use chaincode to create decentralized applications that manage the life cycle of one or multiple types of business contracts, and let end users instantiate instances of contracts within these applications" Can someone please expatiate on this as I am confused

vieiramanoel (Fri, 16 Feb 2018 20:25:49 GMT):
ppl i getting some basic error

vieiramanoel (Fri, 16 Feb 2018 20:26:09 GMT):
``` Obtaining default signing identity Error: Error getting endorser client channel: error trying to connect to local peer: x509: certificate is valid for peer0.ministerio.saude.gov.br.ministerio.saude.gov.br, not peer0.ministerio.saude.gov.br ```

vieiramanoel (Fri, 16 Feb 2018 20:26:09 GMT):
``` Obtaining default signing identity Error: Error getting endorser client channel: error trying to connect to local peer: x509: certificate is valid for peer0.ministerio.saude.gov.br.ministerio.saude.gov.br, not peer0.ministerio.saude.gov.br ```

vieiramanoel (Fri, 16 Feb 2018 20:26:09 GMT):
when ```export CORE_PEER_ADDRESS=peer0.ministerio.saude.gov.br:7051 peer channel join -b mychannel.block``` i got ``` Obtaining default signing identity Error: Error getting endorser client channel: error trying to connect to local peer: x509: certificate is valid for peer0.ministerio.saude.gov.br.ministerio.saude.gov.br, not peer0.ministerio.saude.gov.br ```

vieiramanoel (Fri, 16 Feb 2018 20:26:28 GMT):
i checked all my certs on peer0.ministerio.saude.gov.bt

vieiramanoel (Fri, 16 Feb 2018 20:26:28 GMT):
i checked all my certs on peer0.ministerio.saude.gov.br

vieiramanoel (Fri, 16 Feb 2018 20:26:48 GMT):
not even one of them has this CN

vieiramanoel (Fri, 16 Feb 2018 20:26:48 GMT):
not even one of them has this strange CN `peer0.ministerio.saude.gov.br.ministerio.saude.gov.br`

vieiramanoel (Fri, 16 Feb 2018 20:28:45 GMT):
to which certificate cli refers when it says that host is invalid?

AnandBanik (Fri, 16 Feb 2018 21:09:16 GMT):
@wbhagan it means that you can in some respect, code your business contract....say, for example, you are an investment banker who buys loans from consumer banks and packages then and sell as MBS. You goal is to buy less risky loans and the way to do, (in a simple way) is to check the credit score of the borrower and only buy, its lets say, if its above 700....in your smart contract with the consumer bank...you can take the social of the borrower as input and then check the credit score and decide whether to buy the loan or not

xhan2018 (Fri, 16 Feb 2018 22:24:35 GMT):
Has joined the channel.

xhan2018 (Fri, 16 Feb 2018 22:24:47 GMT):
Hello All:

akeelnazir (Fri, 16 Feb 2018 22:26:41 GMT):
Has joined the channel.

xhan2018 (Fri, 16 Feb 2018 22:27:55 GMT):
I just use fabric basic-network configuration. could anyone know how to enable core.ledger.history.enableHistoryDatabase to ture

yetanotheruser23 (Fri, 16 Feb 2018 22:43:01 GMT):
I'm running the same settings as the Basic Network configuration, but with changed Orderer and Org domains. I've just changed the domains across all config files. I'm getting the following error.

yetanotheruser23 (Fri, 16 Feb 2018 22:43:44 GMT):
grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup on 127.0.0.11:53: no such host"; Reconnecting to {:7050 }

yetanotheruser23 (Fri, 16 Feb 2018 22:45:48 GMT):
It looks like it's unable to resolve to connect to the orderer. ORDERER_GENERAL_LISTENADRESS is 0.0.0.0

yetanotheruser23 (Fri, 16 Feb 2018 22:46:21 GMT):
Where are the IPs of org1, orderer.example etc set?

yetanotheruser23 (Fri, 16 Feb 2018 22:50:23 GMT):
Got my answer while looking at https://docs.docker.com/compose/networking/.

yetanotheruser23 (Fri, 16 Feb 2018 23:25:37 GMT):
So, docker-compose creates it's own network and adds all containers to that network. Does anyone know how I can test that each peer is reachable from another peer?

gdestree (Sat, 17 Feb 2018 04:30:47 GMT):
Has joined the channel.

root_007 (Sat, 17 Feb 2018 04:34:12 GMT):
Has joined the channel.

gdestree (Sat, 17 Feb 2018 04:38:30 GMT):
Hi there! Can anyone help me out with http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

gdestree (Sat, 17 Feb 2018 04:39:37 GMT):

Clipboard - February 16, 2018 11:39 PM

gdestree (Sat, 17 Feb 2018 04:39:49 GMT):
I have all the prereqs done, and i use the generate command

gdestree (Sat, 17 Feb 2018 04:39:58 GMT):
that seems to work just fine

gdestree (Sat, 17 Feb 2018 04:40:36 GMT):
but when i do ./byfn.sh up it goes wrong

gdestree (Sat, 17 Feb 2018 04:41:01 GMT):
here is an error message:

gdestree (Sat, 17 Feb 2018 04:41:31 GMT):

Clipboard - February 16, 2018 11:41 PM

gdestree (Sat, 17 Feb 2018 04:41:38 GMT):
Org unknown

gdestree (Sat, 17 Feb 2018 04:42:05 GMT):
and here the query result is invalid

gdestree (Sat, 17 Feb 2018 04:42:15 GMT):

Clipboard - February 16, 2018 11:42 PM

gdestree (Sat, 17 Feb 2018 04:42:40 GMT):
any help would be appreciated!

wbhagan (Sat, 17 Feb 2018 08:44:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SSZuZMKsLSAMCsfB3) @AnandBanik Thanks for the feedback. So, if I understand this, this is more like a dependency of injection model one should adopt in the development of business contracts

waleed (Sat, 17 Feb 2018 09:33:41 GMT):
Has joined the channel.

waleed (Sat, 17 Feb 2018 09:35:46 GMT):
Hi, I am trying to get better understanding in hyperledger-fabric. so I have a question: - Where can I see the difference between the endorser-peer and the committer-peer? Can I debug the transaction flow?

mastersingh24 (Sat, 17 Feb 2018 12:04:03 GMT):
@waleed - not quite sure I understand what you want to see via debugging? Maybe the descriptions are a bit unclear: 1) An endorsing peer executes chaincode ("smart contract") logic 2) A committing peer receives blocks from the orderer services and validate and commits transactions (which are essentially state changes) 3) Endorsing peers are also committing peers

gdestree (Sat, 17 Feb 2018 14:21:09 GMT):
can anyone help with the problem i am having above?

JonathanJones (Sat, 17 Feb 2018 16:01:50 GMT):
Has joined the channel.

M4rcelNo4ck (Sat, 17 Feb 2018 16:04:52 GMT):
Has joined the channel.

M4rcelNo4ck (Sat, 17 Feb 2018 16:11:04 GMT):
hello guys. i am really new to the hyperledger fabric network and i am still trying to understand various things but i got a question. first off i had to install all the prerequesites of hyperledger fabric (docker, etc.)mentioned in the documentation on an ubuntu system inside a virtual machine(oracle virtual box) because my main system is windows 10 home which has no support for docker. however i would like to implement my business logic/chaincode inside my normal eclipse environment on my windows system outside the virtual machine(because it is not really comfortable to code inside a virtual machine because of the performance). my question is, how can i get access to the blockchain network of hyperledger fabric inside the ubuntu system in the virtual machine from outside of it ? might be dump question but as i said above, i am really new to all this stuff.

jeffgarratt (Sat, 17 Feb 2018 16:26:51 GMT):
@M4rcelNo4ck there is a Vagrantfile under /devenv you can use to set everything up for you

jeffgarratt (Sat, 17 Feb 2018 16:27:18 GMT):
it uses synced folders to allow you to develop from your host env

M4rcelNo4ck (Sat, 17 Feb 2018 16:30:23 GMT):
ok thanks for the hint but what especially should i do with that file ? as i said i am really new to all this and according to that i do not think i have the knowledge to change anything in those files

jeffgarratt (Sat, 17 Feb 2018 16:59:38 GMT):
@M4rcelNo4ck see http://hyperledger-fabric.readthedocs.io/en/release/dev-setup/devenv.html?highlight=vagrant#setting-up-the-development-environment

M4rcelNo4ck (Sat, 17 Feb 2018 17:07:33 GMT):
wow thanks for the resource. i did not find that point in the documentation. so the prerequisites mentioned there are for the ubuntu system inside the VM or for the my system i work on ?

M4rcelNo4ck (Sat, 17 Feb 2018 17:07:33 GMT):
@jeffgarratt wow thanks for the resource. i did not find that point in the documentation. so the prerequisites mentioned there are for the ubuntu system inside the VM or for the my system i work on ?

jeffgarratt (Sat, 17 Feb 2018 19:25:12 GMT):
@M4rcelNo4ck I use a windows host

akshaynet (Sun, 18 Feb 2018 14:55:27 GMT):
Has joined the channel.

krisava (Sun, 18 Feb 2018 15:37:46 GMT):
Hi, I have few below questions. Can anybody help me to understand? Thanks. 1. In Blockchain network, is Institution and Organization synonymous to Member? 2. Does the Member always require one or more peers in order to connect to the Channel and Chaincode? What if the Member is just a querying client/user? 3. How many peers are ideal for a Member? 4. Are CA's common and shared for all the Members in the network?

AnandBanik (Sun, 18 Feb 2018 22:49:30 GMT):
@krisava below are my answer. Pls feel-free to correct me in-case i am wrong

AnandBanik (Sun, 18 Feb 2018 22:49:57 GMT):
1. Yes

AnandBanik (Sun, 18 Feb 2018 22:50:15 GMT):
2. Yes, members can only query there own node

AnandBanik (Sun, 18 Feb 2018 22:50:15 GMT):
2. Yes, members can only query there own peer

AnandBanik (Sun, 18 Feb 2018 22:51:02 GMT):
3. atleast 2. It depends on the number of transactions being processed by ur peers

AnandBanik (Sun, 18 Feb 2018 22:51:59 GMT):
4. Absolutely not. CA's issue certificates to user based on the Org's root certificate. They should always be per Org.

juni (Mon, 19 Feb 2018 06:10:24 GMT):
Has joined the channel.

juni (Mon, 19 Feb 2018 06:12:00 GMT):
Hello , i am new in Hyperledegr fabric... i want to add organization ?? can anyone help me..

Jonny (Mon, 19 Feb 2018 07:09:25 GMT):
hi, how can I safely restore data coachdb directory to another installation?

juni (Mon, 19 Feb 2018 09:50:57 GMT):
can anyone plz help me .. Chaincode folder pupose in Fabric-sample?? is all the chaincodes are insalled in the Chaincode folder ??

PyiTheinKyaw (Mon, 19 Feb 2018 11:11:52 GMT):
Hello Everyone, When I tried to fetch chanel configuration, I faces the forbidden error

PyiTheinKyaw (Mon, 19 Feb 2018 11:12:39 GMT):
Is there anybody faces problem llike me ?

waleed (Mon, 19 Feb 2018 12:41:04 GMT):
I am using fabric with composer to create a small web shop. ist it possible to create a login functionality (username + password = login)?

gospodin.bodurov (Mon, 19 Feb 2018 13:33:34 GMT):
Has joined the channel.

nickgaski (Mon, 19 Feb 2018 14:14:00 GMT):
@PyiTheinKyaw - what do you see in your ordering node's logs? Most likely you're not passing the proper admin and/or TLS certificate on the call

rohitadivi (Mon, 19 Feb 2018 14:26:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fPc2LKyNxciheY8sS) @juni Please refer to this documentation, this might help you - http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html

rohitadivi (Mon, 19 Feb 2018 14:26:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fPc2LKyNxciheY8sS) @juni This might help you - http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html

yetanotheruser23 (Mon, 19 Feb 2018 16:33:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nWFAhX9v9FY9Gwyf5) @waleed You can handle that in the application side. Allow queries against the ledger only after you have a valid login. I don't think Hyperledger has a login functionality of it's own.

sashico (Mon, 19 Feb 2018 17:13:59 GMT):
does fabric have a library for a blockchain explorer?

RobertDiebels (Mon, 19 Feb 2018 17:26:51 GMT):
Has left the channel.

vmpr (Mon, 19 Feb 2018 17:27:35 GMT):
Has joined the channel.

shubhammangla (Mon, 19 Feb 2018 17:52:37 GMT):
Hi All, I am getting this error in the orderer log when I run ``peer channel update`` for updating the anchor peers in the network. Anybody has seen this error before?

shubhammangla (Mon, 19 Feb 2018 17:53:15 GMT):
`inline code`

shubhammangla (Mon, 19 Feb 2018 17:55:19 GMT):
Hi all, I am getting the below error when I run `peer channel update` to update the Anchor nodes for the channel. Anybody has seen this error before. ` 2018-02-19 17:19:34.892 UTC [orderer/main] Deliver -> DEBU 3c2 Starting new Deliver handler 2018-02-19 17:19:34.892 UTC [orderer/common/deliver] Handle -> DEBU 3c3 Starting new deliver loop 2018-02-19 17:19:34.892 UTC [orderer/common/deliver] Handle -> DEBU 3c4 Attempting to read seek info message 2018-02-19 17:19:34.896 UTC [orderer/main] Broadcast -> DEBU 3c5 Starting new Broadcast handler 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> DEBU 3c6 Starting new broadcast loop 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> DEBU 3c7 Preprocessing CONFIG_UPDATE 2018-02-19 17:19:34.896 UTC [orderer/configupdate] Process -> DEBU 3c8 Processing channel creation request for channel mychannel 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> WARN 3c9 Rejecting CONFIG_UPDATE because: Consortium config value missing 2018-02-19 17:19:34.896 UTC [orderer/main] func1 -> DEBU 3ca Closing Broadcast stream 2018-02-19 17:19:34.898 UTC [orderer/common/deliver] Handle -> WARN 3cb Error reading from stream: rpc error: code = Canceled desc = context canceled 2018-02-19 17:19:34.898 UTC [orderer/main] func1 -> DEBU 3cc Closing Deliver stream `

shubhammangla (Mon, 19 Feb 2018 17:55:49 GMT):
Hi all, I am getting the below error when I run `peer channel update` to update the Anchor nodes for the channel. Anybody has seen this error before. ``` 2018-02-19 17:19:34.892 UTC [orderer/main] Deliver -> DEBU 3c2 Starting new Deliver handler 2018-02-19 17:19:34.892 UTC [orderer/common/deliver] Handle -> DEBU 3c3 Starting new deliver loop 2018-02-19 17:19:34.892 UTC [orderer/common/deliver] Handle -> DEBU 3c4 Attempting to read seek info message 2018-02-19 17:19:34.896 UTC [orderer/main] Broadcast -> DEBU 3c5 Starting new Broadcast handler 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> DEBU 3c6 Starting new broadcast loop 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> DEBU 3c7 Preprocessing CONFIG_UPDATE 2018-02-19 17:19:34.896 UTC [orderer/configupdate] Process -> DEBU 3c8 Processing channel creation request for channel mychannel 2018-02-19 17:19:34.896 UTC [orderer/common/broadcast] Handle -> WARN 3c9 Rejecting CONFIG_UPDATE because: Consortium config value missing 2018-02-19 17:19:34.896 UTC [orderer/main] func1 -> DEBU 3ca Closing Broadcast stream 2018-02-19 17:19:34.898 UTC [orderer/common/deliver] Handle -> WARN 3cb Error reading from stream: rpc error: code = Canceled desc = context canceled 2018-02-19 17:19:34.898 UTC [orderer/main] func1 -> DEBU 3cc Closing Deliver stream ```

yetanotheruser23 (Mon, 19 Feb 2018 18:02:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FD3wuuMw5MNtsToMQ) @shubhammangla Have you added the Orgs to a Consortium in your configtx file?

shubhammangla (Mon, 19 Feb 2018 18:04:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e3Apbf2v8srNbLjdp) @yetanotheruser23 Yes, the consortium defined in the channel's profile is defined.

shubhammangla (Mon, 19 Feb 2018 18:04:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e3Apbf2v8srNbLjdp) @yetanotheruser23 Yes, the consortium mentioned in the channel's profile is defined.

jeffgarratt (Mon, 19 Feb 2018 18:04:30 GMT):
@yetanotheruser23 you need to make sure to include a "Consortium" value in your write set

shubhammangla (Mon, 19 Feb 2018 18:06:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oQsDpQAvM5K29vHTL) @jeffgarratt Thanks for your reply. Can you please explain what do you mean by write set? I have checked that the Consortium defined in the channel's profile has been defined. What else would you suggest that I look?

jeffgarratt (Mon, 19 Feb 2018 18:11:33 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html?highlight=channel%20create%20consortium#configuration-transaction-generator

jeffgarratt (Mon, 19 Feb 2018 18:11:48 GMT):
make sure you are referencing the consortium properly

shubhammangla (Mon, 19 Feb 2018 18:17:51 GMT):
Thanks

yetanotheruser23 (Mon, 19 Feb 2018 18:53:38 GMT):
2018-02-19 18:45:24.329 UTC [orderer/common/server] initializeLocalMsp -> CRIT 007 Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory orderer.crushit.ibm.com exited with code 1 I get the following error when I try to create the docker containers. I've checked and ensured that the msp directory contains the certificate. Is there something that I'm missing here?

b39647 (Mon, 19 Feb 2018 20:19:34 GMT):
Has joined the channel.

atbe (Mon, 19 Feb 2018 20:59:27 GMT):
what is the quickest way to load new permissions into a running business network (on local machine)??

atbe (Mon, 19 Feb 2018 21:14:07 GMT):
is it possible to use a permission like this ` condition: (r.owner.authorizedPractitioners.indexOf(p.getIdentifier()) > -1)`

dainliff (Tue, 20 Feb 2018 00:07:55 GMT):
Hello, I'm trying to use Fabric with the Kafka ordering service, I was wondering if there is a good way to tell if the orderer has successfully connected to the Kafka cluster. Currently my approach has been to just have a long timeout before issuing requests to the orderer, but it would be nice if there was some way to tell if the Orderer is ready.

atbe (Tue, 20 Feb 2018 02:11:19 GMT):
Has anyone had this issue before: `nhandled error for request POST /api/wallet/import?name=MAIN: Error: There are multiple instances found.Upsert Operation will not be performed! `

SB85 (Tue, 20 Feb 2018 02:50:19 GMT):
can somebody tell what is the function of anchor peers?

zajanksk (Tue, 20 Feb 2018 04:58:55 GMT):
hi guys, i have a question about chaincode

zajanksk (Tue, 20 Feb 2018 05:02:53 GMT):
what happens if RANDOM logic (like rand(100)) in the chaincode? As i know, Chaincode is each of peers and excute independently. So i think if the random method is chaincode, each peer has different value.

zajanksk (Tue, 20 Feb 2018 05:04:47 GMT):
Then they can't reach consensus. I think

dainliff (Tue, 20 Feb 2018 05:08:19 GMT):
if the random logic causes them to have different read/write sets, then they won't reach consensus

zajanksk (Tue, 20 Feb 2018 05:09:46 GMT):
then, we can't do any random logic in the chaincode right?

dainliff (Tue, 20 Feb 2018 05:13:00 GMT):
You can use things like the block hashes to get psuedo random behaviour, people have been exploring the problem in public space for a while http://hackingdistributed.com/2017/12/24/how-not-to-run-a-blockchain-lottery/

dainliff (Tue, 20 Feb 2018 05:13:00 GMT):
You can use things like the block hashes to get psuedo random behaviour, people have been exploring the problem in the public space for a while http://hackingdistributed.com/2017/12/24/how-not-to-run-a-blockchain-lottery/

dainliff (Tue, 20 Feb 2018 05:15:57 GMT):
with fabric, you could also setup some external api that could return the same random number to all the peers

zajanksk (Tue, 20 Feb 2018 05:19:41 GMT):
okay, thanks @dainliff !

dainliff (Tue, 20 Feb 2018 05:20:03 GMT):
no worries :)

SudheerKaspa (Tue, 20 Feb 2018 05:35:46 GMT):
Has joined the channel.

juni (Tue, 20 Feb 2018 06:22:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LWHdL4AwmREhz2PWv) @rohitadivi thanks :)

zajanksk (Tue, 20 Feb 2018 06:40:19 GMT):
hey, guys. how can i do cron jobs in chaincode? is there any api? or is it impossible?

chandg12 (Tue, 20 Feb 2018 08:48:37 GMT):
@zajanksk Not possible. The concept of time is not well defined in a distributed system, anyway. You will have to do the cron part in your application and simply issue transactions as needed.

jellevdp (Tue, 20 Feb 2018 09:50:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MnXEJwRPzHC4tEEWA) @sashico https://github.com/hyperledger/blockchain-explorer fairly easy to install with docker images, you can follow the example in this repo: https://github.com/yeasy/docker-compose-files/blob/master/hyperledger_fabric/v1.1.0-alpha/docker-compose-2orgs-4peers-solo-be.yaml

daanporon (Tue, 20 Feb 2018 10:37:22 GMT):
i'm trying to instantiate my chaincode with a specific policy using the --policy option ... but i'm always getting an error that i have an invalid policy. If i look at the logs of the orderer i see somewhere `[cauthdsl] func2 -> DEBU 53d 0xc42000f590 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected org1-MSP, got org2-MSP)` but i'm not sure why it's expecting the org1 MSP. I never specify it anywhere, but it's the first MSP in my configtx.yaml ... is this a coincidence? or am i missing something? the org1 MSP isn't part of the endorsement policy i'm trying to set.

daanporon (Tue, 20 Feb 2018 10:39:27 GMT):
it looks like the org1 is the one that signed the instantiation ... but i'm not sure how to specify this

daanporon (Tue, 20 Feb 2018 11:19:07 GMT):
whenever i'm getting this error the orderer in charge receives something ... ``` 2018-02-20 11:17:47.092 UTC [orderer/common/server] Broadcast -> DEBU 56f Starting new Broadcast handler 2018-02-20 11:17:47.095 UTC [orderer/common/broadcast] Handle -> DEBU 570 Starting new broadcast loop for 192.168.100.8:47560 2018-02-20 11:17:47.095 UTC [orderer/common/broadcast] Handle -> WARN 571 Error reading from 192.168.100.8:47560: rpc error: code = Canceled desc = context canceled 2018-02-20 11:17:47.095 UTC [orderer/common/server] func1 -> DEBU 572 Closing Broadcast stream ```

daanporon (Tue, 20 Feb 2018 11:19:28 GMT):
``` 2018-02-20 11:17:47.178 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-02-20 11:17:47.178 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-02-20 11:17:47.182 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-02-20 11:17:47.182 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: Invalid policy AND('vlaanderen-be-MSP.member', OR('anb-vlaanderen-be-MSP.member', 'grb-vlaanderen-be-MSP.member')) Usage: peer chaincode instantiate [flags] ```

daanporon (Tue, 20 Feb 2018 11:19:35 GMT):
not sure where to look next :/

daanporon (Tue, 20 Feb 2018 11:20:14 GMT):
this is the command ```

daanporon (Tue, 20 Feb 2018 11:20:14 GMT):
this is the command ``` peer chaincode --cafile /etc/hyperledger/crypto-config/vlaanderen.be/orderers/orderer.vlaanderen.be/tlsca.combined.orderer.vlaanderen.be-cert.pem --orderer orderer.vlaanderen.be:7050 --logging-level debug instantiate --name identity_management --version 1.0.4 --ctor "{\"Args\":[\"Init\"]}" --channelID publicchannel --policy "AND('vlaanderen-be-MSP.member', OR('anb-vlaanderen-be-MSP.member', 'grb-vlaanderen-be-MSP.member'))" --tls true --lang node --logging-level debug ```

daanporon (Tue, 20 Feb 2018 11:20:14 GMT):
this is the command ``` peer chaincode --cafile /etc/hyperledger/crypto-config/vlaanderen.be/orderers/orderer.vlaanderen.be/tlsca.combined.orderer.vlaanderen.be-cert.pem --orderer orderer.vlaanderen.be:7050 --logging-level debug instantiate --name identity_management --version 1.0.4 --ctor "{\"Args\":[\"Init\"]}" --channelID publicchannel --policy "AND('vlaanderen-be-MSP.member', OR('anb-vlaanderen-be-MSP.member', 'grb-vlaanderen-be-MSP.member'))" --tls true --lang node ```

geni (Tue, 20 Feb 2018 13:07:13 GMT):
Hello, Bitcoin blockchain has a block size limit of 1mb is there any size for hyperledger blocksize. Plz reply i am unable to stop any answer.

yacovm (Tue, 20 Feb 2018 13:11:07 GMT):
it varies depends on throughput and configuration

daanporon (Tue, 20 Feb 2018 13:44:30 GMT):
any idea how to get more logging when instantiating the chaincode? especially logging from cauthdsl

daanporon (Tue, 20 Feb 2018 13:44:48 GMT):
--logging-level debug doesn't show anything

daanporon (Tue, 20 Feb 2018 13:46:04 GMT):
and export CORE_LOGGING_CAUTHDSL="DEBUG" also didn't do anything

geni (Tue, 20 Feb 2018 13:47:14 GMT):
@yacovm So here we have no block size limit

yacovm (Tue, 20 Feb 2018 13:48:35 GMT):
we have a limit

yacovm (Tue, 20 Feb 2018 13:48:37 GMT):
it's configurable

geni (Tue, 20 Feb 2018 14:33:25 GMT):
@yacovm Thank you

maethalion (Tue, 20 Feb 2018 15:00:09 GMT):
Has joined the channel.

nickgaski (Tue, 20 Feb 2018 15:37:15 GMT):
@daanporon - within your CLI container, can you try exporting the admin material for `vlaanderen-be` MSP before you send the instantiate call.

daanporon (Tue, 20 Feb 2018 16:36:39 GMT):
thanks, found the issue ... i was wrongly escaping the quotes :( thanks anyway

zajan.ksk (Wed, 21 Feb 2018 00:42:57 GMT):
Has joined the channel.

sudheesh001 (Wed, 21 Feb 2018 03:51:48 GMT):
Hey everyone, is there a limit on the number of nodes that could be in the network before there are performance problems? What is the maximum nodes that when used still result in block commit times of less than 5 seconds?

sudheesh001 (Wed, 21 Feb 2018 03:54:02 GMT):
A recent paper called Blockbench shows that the throughput of Hyperledger Fabric drastically drops as the nodes increase to 16, However it looks like for their analysis they've used Fabric 0.6, Are there any recent metrics regarding the benchmarks and the scalability of fabric?

chandg12 (Wed, 21 Feb 2018 05:11:06 GMT):
@sudheesh001 , the Fabric v1 architecture is completely different from the 0.6 architecture. In the new architecture, performance is more or less independent of the number of committer nodes. You can see the recent paper (https://arxiv.org/abs/1801.10228v1) for some metrics and evaluation.

sudheesh001 (Wed, 21 Feb 2018 05:15:24 GMT):
@chandg12 Thanks, However, the recent paper only tests with 5 nodes while the blockbench paper shows benchmarks with upto 32 nodes. Also, the experiments for `fabcoin` mentioned in the paper aren't available publicly, When will they be open sourced?

chandg12 (Wed, 21 Feb 2018 05:25:44 GMT):
@sudheesh001 Not sure.

dainliff (Wed, 21 Feb 2018 05:53:41 GMT):
Hello I was wondering, is it possible to subscribe to events from peers outside of your organisation? I am talking about events from https://fabric-sdk-node.github.io/EventHub.html

jodafm (Wed, 21 Feb 2018 06:01:27 GMT):
Has joined the channel.

TsuiSauChi (Wed, 21 Feb 2018 06:07:37 GMT):
Has joined the channel.

yacovm (Wed, 21 Feb 2018 06:24:48 GMT):
@dainliff yes in v1.1

dainliff (Wed, 21 Feb 2018 07:46:54 GMT):
Ok sweet I'll try it out, thanks :)

dainliff (Wed, 21 Feb 2018 07:47:10 GMT):
yacovm you have all the answers

yacovm (Wed, 21 Feb 2018 07:55:05 GMT):
unfortunately

dainliff (Wed, 21 Feb 2018 07:56:18 GMT):
so since you're here... do you happen to also have an answer to this question I posted earlier lol

dainliff (Wed, 21 Feb 2018 07:56:30 GMT):
"I'm trying to use Fabric with the Kafka ordering service, I was wondering if there is a good way to tell if the orderer has successfully connected to the Kafka cluster. Currently my approach has been to just have a long timeout before issuing requests to the orderer, but it would be nice if there was some way to tell if the Orderer is ready."

Exci (Wed, 21 Feb 2018 08:25:23 GMT):
Has joined the channel.

yacovm (Wed, 21 Feb 2018 09:09:25 GMT):
Just look at logs?

dainliff (Wed, 21 Feb 2018 09:15:26 GMT):
well I want another service to be able to tell it's ready, and I don't think that service would have access to the orderer's logs

dainliff (Wed, 21 Feb 2018 09:15:54 GMT):
I guess I was looking for some kind of event I could listen for, or endpoint I could hit

dainliff (Wed, 21 Feb 2018 10:25:09 GMT):
@yacovm so I gave the v1.1 external org events a shot, but I'm not having much luck. With the byfn network I'm getting a `Error: event message validation failed: [failed deserializing event creator: [expected MSP ID Org2MSP, received Org1MSP]]`. Do you have an example of how to set it up?

yacovm (Wed, 21 Feb 2018 10:32:48 GMT):
oh, you need to use the new event service

yacovm (Wed, 21 Feb 2018 10:32:50 GMT):
@dainliff

yacovm (Wed, 21 Feb 2018 10:32:53 GMT):
not the old events

dainliff (Wed, 21 Feb 2018 10:33:30 GMT):
@yacovm this one? https://fabric-sdk-node.github.io/ChannelEventHub.html

yacovm (Wed, 21 Feb 2018 10:34:09 GMT):
I don't know the api itself... just the infrastructure :( Better ask in #fabric-sdk-node

dainliff (Wed, 21 Feb 2018 10:34:35 GMT):
Ok no problem, thanks anyways :)

daanporon (Wed, 21 Feb 2018 10:44:41 GMT):
any idea what the best way is to debug "ENDORSEMENT_POLICY_FAILURE"? I have the following endorsement policy "AND('VOOrg.member', OR('ANBOrg.member', 'GRBOrg.member'))" and my transaction is endorsed by a peer of the VOOrg and a peer of the ANBOrg. Both endorsements are the same and everything ... and still my transaction is marked with code "ENDORSEMENT_POLICY_FAILURE" ... can't seem to find anything useful in the logs of the orderer ... any idea how to solve this?

pd93 (Wed, 21 Feb 2018 10:53:38 GMT):
Hey, I was wondering what the best way to send a large amount of data to the ledger is? I have around 17,000 records that I want to 'import' into the ledger. I could do this by calling an `add` invoke endpoint 17,000 times, but this doesn't feel right. Is there a better way to send this data? ie.. can a large byte slice containing an encoded version of the data be sent all at once? or maybe in a few large blocks?

dbhalgami (Wed, 21 Feb 2018 11:07:35 GMT):
Has joined the channel.

dbhalgami (Wed, 21 Feb 2018 11:07:42 GMT):
Hello, I'm using fabric v1.1-alpha docker images but still those images are not having github.com/hyperledger/fabric/core/chaincode/lib/cid how can I create a chaincode with lib/cid

mastersingh24 (Wed, 21 Feb 2018 14:55:30 GMT):
@dbhalgami - you need to vendor the cid package with your chaincode just like any other 3rd party library

dbhalgami (Wed, 21 Feb 2018 15:15:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fSnM5eDqQYRwRBm5m) @mastersingh24 Can you give me some example for reference how to vendor it?

mastersingh24 (Wed, 21 Feb 2018 15:16:27 GMT):
Sure - take a look at https://golang.github.io/dep/ .... dep is a nice tool for vendoring dependencies

mastersingh24 (Wed, 21 Feb 2018 15:16:47 GMT):
you would run it in your chaincode source folder prior to packaging and installing the chaincode

dbhalgami (Wed, 21 Feb 2018 15:20:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sqAbNJYT9M32pdmkB) @mastersingh24 Thanks I'll try this way... In case of queries can I drop you a direct message?

mastersingh24 (Wed, 21 Feb 2018 15:20:24 GMT):
sure thing

Stecec (Wed, 21 Feb 2018 16:15:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=egWSat4aZfijBspDj) @MokeyJoy Thank you. The tutorial works

Stecec (Wed, 21 Feb 2018 16:56:00 GMT):
Hi, it is not at all clear to me how to add new peers to the chain on a running system. Any hint?

aatkddny (Wed, 21 Feb 2018 18:26:36 GMT):
is there a sample of adding an org to a consortium?

aatkddny (Wed, 21 Feb 2018 18:26:36 GMT):
is there a sample showing adding an org to a consortium? i want to add the org then set up channels between it and the existing members (need separation). the documentation talks about creating a channel first, so i'm unsure how that works without pre-defined members.

aatkddny (Wed, 21 Feb 2018 18:26:36 GMT):
is there a sample showing adding an org to a consortium? i want to add the org then set up channels between it and the existing members (need separation). the documentation talks about creating a channel first, so i'm unsure how that works without pre-defined members. I was using configtxgen to create the genesis block and my (current) channels. I can edit my yaml to add a new org, update the consortium and define new channels (and so create the channel definitions). i wanted to package the delta between old and new genesis block using configtxlator but the channel requirement is throwing me for a loop.

jrosmith (Wed, 21 Feb 2018 19:42:16 GMT):
@aatkddny https://www.youtube.com/watch?v=DKuGU5CYV_E&feature=youtu.be

jrosmith (Wed, 21 Feb 2018 19:42:32 GMT):
https://github.com/kiwi-koder/getting-started-with-hyperledger-composer/blob/master/adding_an_organisation.txt#L174

waleed (Wed, 21 Feb 2018 19:43:39 GMT):
I am creating fabric-network. I have one Org wit 2 peers. now i want to create a channel. and join the 2 peers to this channel. how can i do this?

yetanotheruser23 (Wed, 21 Feb 2018 19:48:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qn3YebiLDYvNQxAcB) @waleed http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel

marksta (Wed, 21 Feb 2018 19:51:27 GMT):
Has joined the channel.

aatkddny (Wed, 21 Feb 2018 19:59:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXwMHR28b5pvmDttc) @jrosmith

waleed (Wed, 21 Feb 2018 20:03:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RhY5XXhBytNXSwr64) @yetanotheruser23 Thanks. this helps

aatkddny (Wed, 21 Feb 2018 20:27:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXwMHR28b5pvmDttc) @jrosmith Sadly this appears to be adding an org to an existing channel. I want to add an org to the consortium and then create some channels between this and other members. I need to make channels between member pairs for data separation.

aatkddny (Wed, 21 Feb 2018 20:27:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXwMHR28b5pvmDttc) @jrosmith Sadly this appears to be adding an org to an existing channel. I want to add an org to the consortium and then create some channels between this and other members. I need to make channels between member pairs for data separation. I have A, B, C with channels A-B and B-C. I want to add D and create channels A-D and B-D. Hopefully that makes sense.

aatkddny (Wed, 21 Feb 2018 20:27:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXwMHR28b5pvmDttc) @jrosmith Sadly this appears to be adding an org to an existing channel. I want to add an org to the consortium and then create some channels between this and other members. I need to make channels between member pairs for data separation. I have A, B, C with channels A->B and B->C. I want to add D and create channels A->D and B->D. Hopefully that makes sense.

vieiramanoel (Thu, 22 Feb 2018 01:22:40 GMT):
hey guys im face some weird problem after join the channel

vieiramanoel (Thu, 22 Feb 2018 01:22:46 GMT):
```018-02-22 01:20:43.497 UTC [ConnProducer] NewConnection -> ERRO 36f Failed connecting to orderer.goledger.com.br7050 , error: context deadline exceeded 2018-02-22 01:20:43.497 UTC [deliveryClient] connect -> DEBU 370 Connected to 2018-02-22 01:20:43.498 UTC [deliveryClient] connect -> ERRO 371 Failed obtaining connection: Could not connect to any of the endpoints: [orderer.goledger.com.br7050] 2018-02-22 01:20:43.498 UTC [deliveryClient] try -> WARN 372 Got error: Could not connect to any of the endpoints: [orderer.goledger.com.br7050] ,at 8 attempt. Retrying in 2m8s ```

vieiramanoel (Thu, 22 Feb 2018 01:23:07 GMT):
note that the `:` is missing between host and port

vieiramanoel (Thu, 22 Feb 2018 01:23:33 GMT):
the host is set right and I can ping to that from inside the container

jeffgarratt (Thu, 22 Feb 2018 01:43:09 GMT):
@vieiramanoel check your genesis block for the channel, specifically the orderer addresses values

vieiramanoel (Thu, 22 Feb 2018 01:43:58 GMT):
@jeffgarratt i do that using the configtxlator?

jeffgarratt (Thu, 22 Feb 2018 01:44:11 GMT):
you generally create it that way

jeffgarratt (Thu, 22 Feb 2018 01:44:21 GMT):
you can inspect it with configtxgen

jeffgarratt (Thu, 22 Feb 2018 01:44:57 GMT):
check the yaml you used to create it for a type wrt to orderer addresses

jeffgarratt (Thu, 22 Feb 2018 01:44:57 GMT):
check the yaml you used to create it for a typo wrt to orderer addresses

jeffgarratt (Thu, 22 Feb 2018 01:46:04 GMT):
may have occurred on the consortium definition

vieiramanoel (Thu, 22 Feb 2018 01:51:28 GMT):
now that you mentioned i guess was that

vieiramanoel (Thu, 22 Feb 2018 01:51:53 GMT):
I'm writing a general deploy script for was instances

vieiramanoel (Thu, 22 Feb 2018 01:51:53 GMT):
I'm writing a general deploy script for aws instances

vieiramanoel (Thu, 22 Feb 2018 01:52:14 GMT):
and the template for configtx.yaml was missing the :

vieiramanoel (Thu, 22 Feb 2018 01:52:29 GMT):
I changed that and i'm running the deploy again

vieiramanoel (Thu, 22 Feb 2018 01:52:55 GMT):
I report here if it works

vieiramanoel (Thu, 22 Feb 2018 01:53:04 GMT):
but I'm quite sure that it will

vieiramanoel (Thu, 22 Feb 2018 01:53:24 GMT):
thanks a lot

jeffgarratt (Thu, 22 Feb 2018 01:56:06 GMT):
best of luck!

juni (Thu, 22 Feb 2018 05:06:04 GMT):
can anyone tell me where the all chaincodes are installed??? in the Fabric-samples folders

Subramanyam (Thu, 22 Feb 2018 06:15:41 GMT):
Has joined the channel.

Subramanyam (Thu, 22 Feb 2018 06:18:42 GMT):
I want to generate password field for new user created in an organization for hyperledger fabric-sample balance transfer example

vudathasaiomkar (Thu, 22 Feb 2018 06:31:51 GMT):
Hi all , i want to generate a network of 4peers 2 orgs in two separate machines/vm . is there any docs that i can follow ?

mabnhdev (Thu, 22 Feb 2018 10:18:52 GMT):
Has joined the channel.

mabnhdev (Thu, 22 Feb 2018 10:23:16 GMT):
Has left the channel.

mabnhdev (Thu, 22 Feb 2018 10:23:30 GMT):
Has joined the channel.

mabnhdev (Thu, 22 Feb 2018 10:27:19 GMT):
Could someone explain consortium or point me to relevant documentation? I'm trying to understand how belonging to the same or different consortia effects the relationship between orgs.

dbhalgami (Thu, 22 Feb 2018 10:40:18 GMT):
Why hyperledger/fabric-ccenv:x86_64-1.1.0-preview docker image is not having "github.com/hyperledger/fabric/core/chaincode/lib/cid" folder???

e-nikolov (Thu, 22 Feb 2018 12:28:22 GMT):
Can chaincode that is installed on a peer get automatically instantiated?

juni (Thu, 22 Feb 2018 12:30:37 GMT):
can anyone tell me that when i run ./byfn.sh ... script.sh also run in it that joins the peer , install chaincode in the peers nd instiante them ... but there is no command in the byfn.sh file to run this file. So how it runs??

pekayde (Thu, 22 Feb 2018 13:51:22 GMT):
Has joined the channel.

pekayde (Thu, 22 Feb 2018 14:22:51 GMT):
I have some basic architecture questions: 1) I would like to know it's technically solved that a transaction request is send to all running peers. 2) If I understood correctly that the the current state which is saved in the couchdb holds the current state of the distribution of the asserts across the participants on that channel? So if there are two participants and one has 2 radish the current state would be A: 2 , B:0? And after a transaction with sending a radish it would be A:1, B: 1? 3) If 2) is correct, then why is that couchdb needed anyway should that state be the sum/head of the chain? 4) Wouldn't it be possible to fake the the current state in the couchdb?

CNelson (Thu, 22 Feb 2018 16:56:28 GMT):
Has joined the channel.

gen_el (Fri, 23 Feb 2018 05:41:33 GMT):
Hi! In the crypto-config.yaml, i want to change the `Prefix` variable used by `Template`. It is always "peer". ``` # Template: # Count: 1 # Start: 0 # Hostname: {{.Prefix}}{{.Index}} # default ``` How do i do that?

Subramanyam (Fri, 23 Feb 2018 05:56:31 GMT):
Hi all, I am unable to add password field in balance transfer example in hyperledger fabric. Anyone could help. Thanks in advance

DeepakMule (Fri, 23 Feb 2018 06:43:08 GMT):
Hi Currently I am using fabric V1.0.4. In my org contain (Leader peer only). I am adding new peer (nonLeader peer) to Org. triggered command to join new peer to Channel, but it took 240 seconds. Leader peer start streaming blocks with new peer. but after some time new peer lost connection and try to connect leader peer continuously. on Leader peer side even though no peer is connected, leader peer continue streaming same set of block number, and go out of memory.

juni (Fri, 23 Feb 2018 07:00:08 GMT):
hiii i am generating the the Channel artifacts , anchor update , channel creating from the command byfn.sh independently.. it has generated Channel Artifacts , crypto-config folders , channel but when I run to On the Network by command *"CHANNEL_NAME=$CHANNEL_NAME TIMEOUT=$CLI_TIMEOUT DELAY=$CLI_DELAY docker-compose -f $COMPOSE_FILE up -d 2>&1"* it is creating the CLI but not going into the script.sh file for further Peer joining , Chaincode installation , instantiate etc..

juni (Fri, 23 Feb 2018 07:00:08 GMT):
hiii i am generating the the Channel artifacts , anchor update , channel creating from the command byfn.sh independently.. it has generated Channel Artifacts , crypto-config folders , channel but when I run to On the Network by command *"CHANNEL_NAME=$CHANNEL_NAME TIMEOUT=$CLI_TIMEOUT DELAY=$CLI_DELAY docker-compose -f $COMPOSE_FILE up -d 2>&1"* it is creating the CLI but not going into the script.sh file for further Peer joining , Chaincode installation , instantiate etc.. Please help me in learning .. make my correction

sashico (Fri, 23 Feb 2018 11:28:28 GMT):
what's the easiest way to add an org or network to an existing fabric network?

jrosmith (Fri, 23 Feb 2018 13:54:25 GMT):
@sashico https://www.youtube.com/watch?v=DKuGU5CYV_E&feature=youtu.be

Evans347 (Fri, 23 Feb 2018 15:10:19 GMT):
Hi,

Evans347 (Fri, 23 Feb 2018 15:11:24 GMT):
I am testing my first network. Just wondering if records keep adding into the fabric blockchain, how to control the size of the chain and state database?

Evans347 (Fri, 23 Feb 2018 15:13:42 GMT):
Since the blocks will be kept forever, I doubt keep adding storage is the solution. Could be a dump question. But thanks in advance to give me a clue.

cbf (Fri, 23 Feb 2018 15:29:30 GMT):
@Evans347 we plan on adding ledger archive and pruning in 1.2 as a function of the usability theme

Evans347 (Fri, 23 Feb 2018 15:31:12 GMT):
@cbf Thanks for clarifying this.

phanikumar1210 (Fri, 23 Feb 2018 19:49:42 GMT):
Has joined the channel.

phanikumar1210 (Fri, 23 Feb 2018 19:50:22 GMT):
@here can we delete a channel in hyper-ledger fabrics sample

jrosmith (Fri, 23 Feb 2018 19:50:37 GMT):
@phanikumar1210 do not use at here

Asara (Fri, 23 Feb 2018 19:50:39 GMT):
please don't use (@)here

jarias (Fri, 23 Feb 2018 19:50:40 GMT):
dont use @ here.

phanikumar1210 (Fri, 23 Feb 2018 19:51:07 GMT):
Ok Sure

jyellick (Fri, 23 Feb 2018 19:51:15 GMT):
And, to answer your question deleting channels is not support

jyellick (Fri, 23 Feb 2018 19:51:15 GMT):
And, to answer your question deleting channels is not supported

phanikumar1210 (Fri, 23 Feb 2018 19:52:14 GMT):
What if I need to delete a channel in the hyper-ledger fabric. Is it not possible in hyper-ledger fabric or only in the sample code?

jyellick (Fri, 23 Feb 2018 19:52:57 GMT):
You may certainly disable new transactions on a channel by reconfiguring it, but fabric is a blockchain, and is not engineered to support deleting history

phanikumar1210 (Fri, 23 Feb 2018 19:53:17 GMT):
Ok

phanikumar1210 (Fri, 23 Feb 2018 20:32:53 GMT):
I wonder if I could get some information on what *configtxgen* command and its operations

phanikumar1210 (Fri, 23 Feb 2018 20:33:04 GMT):
what is the use of it

Ratnakar (Fri, 23 Feb 2018 20:33:41 GMT):
this might be helpful , take a look at this http://hyperledger-fabric.readthedocs.io/en/latest/commands/configtxgen.html

phanikumar1210 (Fri, 23 Feb 2018 20:48:47 GMT):
How can I check whether a particular channel is disabled or not?

vieiramanoel (Sat, 24 Feb 2018 01:05:25 GMT):
@jeffgarratt I got another trouble with configtx.yaml

vieiramanoel (Sat, 24 Feb 2018 01:05:29 GMT):
this is my config file

vieiramanoel (Sat, 24 Feb 2018 01:05:45 GMT):
https://hastebin.com/voyuhinicu.makefile

vieiramanoel (Sat, 24 Feb 2018 01:06:00 GMT):
when I update the anchor peers I got those messages at orderer

vieiramanoel (Sat, 24 Feb 2018 01:06:44 GMT):
```2018-02-24 01:01:18.402 UTC [cauthdsl] func2 -> DEBU 518 0xc42000e6c8 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got ministerioMSP) 2018-02-24 01:01:18.402 UTC [cauthdsl] func2 -> DEBU 519 0xc42000e6c8 principal evaluation fails 2018-02-24 01:01:18.402 UTC [cauthdsl] func1 -> DEBU 51a 0xc42000e6c8 gate 1519434078402019684 evaluation fails 2018-02-24 01:01:18.402 UTC [policies] Evaluate -> DEBU 51b Signature set did not satisfy policy /Channel/Orderer/governo/Readers 2018-02-24 01:01:18.402 UTC [policies] Evaluate -> DEBU 51c == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/governo/Readers 2018-02-24 01:01:18.402 UTC [policies] func1 -> DEBU 51d Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ governo.Readers ] 2018-02-24 01:01:18.402 UTC [policies] Evaluate -> DEBU 51e Signature set did not satisfy policy /Channel/Orderer/Readers 2018-02-24 01:01:18.402 UTC [policies] Evaluate -> DEBU 51f == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Readers 2018-02-24 01:01:18.403 UTC [policies] Evaluate -> DEBU 520 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/Readers == 2018-02-24 01:01:18.403 UTC [policies] Evaluate -> DEBU 521 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2018-02-24 01:01:18.403 UTC [policies] Evaluate -> DEBU 522 == Evaluating *cauthdsl.policy Policy /Channel/Application/ministerio/Readers == 2018-02-24 01:01:18.403 UTC [cauthdsl] func1 -> DEBU 523 0xc42000e6e0 gate 1519434078403270465 evaluation starts 2018-02-24 01:01:18.403 UTC [cauthdsl] func2 -> DEBU 524 0xc42000e6e0 signed by 0 principal evaluation starts (used [false]) ```

vieiramanoel (Sat, 24 Feb 2018 01:07:02 GMT):
https://hastebin.com/galejokema.hs

vieiramanoel (Sat, 24 Feb 2018 01:07:22 GMT):
and at peers

vieiramanoel (Sat, 24 Feb 2018 01:07:23 GMT):
https://hastebin.com/kokenefaci.hs

vieiramanoel (Sat, 24 Feb 2018 01:07:39 GMT):
any ideas

sashico (Sat, 24 Feb 2018 03:59:55 GMT):
how does different orgs from different networks communicate with each other? like for example i have 1 ec2 instance for my first fabric org and i have another ec2 instance for my org2, how will the two communicate w/ each other?

sashico (Sat, 24 Feb 2018 04:00:48 GMT):
I'm following this tutorial but this needs to have the two orgs in the same network and machine https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html

sashico (Sat, 24 Feb 2018 04:03:02 GMT):
and does the two different fabric network needs to have each own orderer?

vieiramanoel (Sat, 24 Feb 2018 04:03:50 GMT):
@sashico using the ports that docker exposes

sashico (Sat, 24 Feb 2018 04:04:29 GMT):
i see, so just like how the two orgs communicate w/in the same machine

sashico (Sat, 24 Feb 2018 04:04:34 GMT):
how about the orderer?

sashico (Sat, 24 Feb 2018 04:04:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RLknB45bBGAxskjmF)

vieiramanoel (Sat, 24 Feb 2018 04:05:24 GMT):
Same thing, it exposes the 7050 port

vieiramanoel (Sat, 24 Feb 2018 04:05:48 GMT):
Map the extra_hosts on docker compose file

sashico (Sat, 24 Feb 2018 04:08:20 GMT):
i mean i need to have two orderers for the two fabric network?

vieiramanoel (Sat, 24 Feb 2018 04:09:26 GMT):
No, just one

sashico (Sat, 24 Feb 2018 04:27:29 GMT):
ahh i see, is it advisable to put it in another machine? Thanks, I think i understand it now

Spicy5Shumai (Sat, 24 Feb 2018 08:50:24 GMT):
Hi~~ I try to download Platform-specific binaries using following command: ``` curl -sSL https://goo.gl/kFFqh5 | bash -s 1.0.6 ``` But I got this error: ``` gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ===> Pulling fabric Images ==> FABRIC IMAGE: peer ``` My gzip version is 1.8 and my OS is windows 7.

Spicy5Shumai (Sat, 24 Feb 2018 08:50:56 GMT):
Is there anyone know which made this error?

Spicy5Shumai (Sat, 24 Feb 2018 08:50:56 GMT):
Is there anyone knows which made this error?

phanikumar1210 (Sat, 24 Feb 2018 09:00:42 GMT):
windows have compatibility issues

phanikumar1210 (Sat, 24 Feb 2018 09:01:27 GMT):
are you running the command using docker quickstart terminal

Spicy5Shumai (Sat, 24 Feb 2018 09:26:42 GMT):
I tried to use docker quickstart terminal But I got this error ``` bash: line 1: syntax error near unexpected token `newline' bash: line 1: `' ```

Spicy5Shumai (Sat, 24 Feb 2018 09:26:42 GMT):
@phanikumar1210 Thank you for your quick reply! I tried to use docker quickstart terminal But I got this error ``` bash: line 1: syntax error near unexpected token `newline' bash: line 1: `' ```

juni (Sat, 24 Feb 2018 10:37:45 GMT):
Has anyone gone through it *http://hyperledger-fabric.readthedocs.io/en/latest/channel_update.html* .. i couldnot understand what is *org3-artifacts* ... plz tell where to get this Folder??

dyeghikoo (Sat, 24 Feb 2018 12:05:17 GMT):
Has joined the channel.

nickgaski (Sat, 24 Feb 2018 13:52:48 GMT):
@juni - make sure you are on the master branch of `fabric-samples`. Once there the path is `fabric-samples/first-network/org3-artifacts`

phanikumar1210 (Sat, 24 Feb 2018 14:10:24 GMT):
in fabric-sample it is specified that *crypto-config.yaml* contains count which specified the number of peers. But I found two counts Template: Count: 2 Users: Count: 1 I would like to know which count specifies what. Is it two peers containing 1 user for each peer or something else.

mastersingh24 (Sat, 24 Feb 2018 15:56:31 GMT):
it's number of peers and users per organization

mastersingh24 (Sat, 24 Feb 2018 15:57:07 GMT):
so the above would create 2 peers and 1 user for the org. It also automatically creates an admin user for each org as well

phanikumar1210 (Sat, 24 Feb 2018 16:22:07 GMT):
Is it like single user managing two peers in an organization?

CaryMa (Sat, 24 Feb 2018 18:35:42 GMT):
hey guys, I am trying to set up the fabric first network but stuck with downloading "platform-specific binaries" by curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha. Erros i am getting are like ```Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/x86_64-1.1.0-alpha: unauthorized: incorrect username or password Error response from daemon: No such image: hyperledger/fabric-peer:x86_64-1.1.0-alpha ==> FABRIC IMAGE: orderer```. My curl version is latest, any idea?

phanikumar1210 (Sat, 24 Feb 2018 18:40:17 GMT):
I think you might need to authenticate yourself to dockerhub to get this done.

phanikumar1210 (Sat, 24 Feb 2018 18:40:51 GMT):
try running this command *docker login -u username -p*

CaryMa (Sat, 24 Feb 2018 18:43:08 GMT):
I am new to Docker, but I did log into the frontend Docker app on my mac, but let me try the command

CaryMa (Sat, 24 Feb 2018 18:44:35 GMT):
Log in failed through command line, i am confused

CaryMa (Sat, 24 Feb 2018 18:45:05 GMT):
I am using exactly the same dockerId and password

phanikumar1210 (Sat, 24 Feb 2018 18:46:10 GMT):
As you are new to docker a small info is that docker has different username than email-id that used to create docker account

phanikumar1210 (Sat, 24 Feb 2018 18:46:44 GMT):
you should only use username not email-id. If you are using username then, try resetting password.

CaryMa (Sat, 24 Feb 2018 18:47:31 GMT):
Make sense let me try, thx

CaryMa (Sat, 24 Feb 2018 18:48:43 GMT):
Thank you @phanikumar1210 That works!

phanikumar1210 (Sat, 24 Feb 2018 18:49:05 GMT):
you are welcome

saifi_ali_rahat (Sat, 24 Feb 2018 20:08:47 GMT):
Has joined the channel.

yoko (Sun, 25 Feb 2018 03:49:53 GMT):
Has joined the channel.

yoko (Sun, 25 Feb 2018 03:50:02 GMT):
where can i configure fabric order grpc max send length?

yacovm (Sun, 25 Feb 2018 06:11:21 GMT):
@yoko it's 100mb globally in all fabric

yacovm (Sun, 25 Feb 2018 06:11:27 GMT):
Why do you want to do that?

phanikumar1210 (Sun, 25 Feb 2018 06:50:56 GMT):
where do chaincode stores ledger in fabric sample

phanikumar1210 (Sun, 25 Feb 2018 06:51:31 GMT):
If I need to make change of storage location where should I make changes

saifi_ali_rahat (Sun, 25 Feb 2018 09:43:05 GMT):
Hello All, while I am trying to "Download Platform-specific Binaries", I am getting following error.... ..... ===> List out hyperledger docker images Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/images/json: dial unix /var/run/docker.sock: connect: permission denied ..... The command I am using to download platform-specific binaries is, "curl -sSL https://goo.gl/kFFqh5 | bash -s 1.0.6" I have all the required (to create fabric network) configurations and my docker daemon is also running. I am using ubuntu 16.04. Please help!!!

phanikumar1210 (Sun, 25 Feb 2018 09:44:26 GMT):
did you login into docker?

phanikumar1210 (Sun, 25 Feb 2018 09:44:31 GMT):
@saifi_ali_rahat

saifi_ali_rahat (Sun, 25 Feb 2018 09:45:08 GMT):
how to do that (login into docker)?

phanikumar1210 (Sun, 25 Feb 2018 09:45:30 GMT):
*docker login -u username p*

phanikumar1210 (Sun, 25 Feb 2018 09:45:50 GMT):
Note: username is different from email-id

phanikumar1210 (Sun, 25 Feb 2018 09:46:05 GMT):
docker login -u username -p

saifi_ali_rahat (Sun, 25 Feb 2018 09:46:17 GMT):
do I need to do this into a separate terminal?

phanikumar1210 (Sun, 25 Feb 2018 09:46:32 GMT):
no you can do it in the same terminal

saifi_ali_rahat (Sun, 25 Feb 2018 09:47:20 GMT):
username must be created first?

phanikumar1210 (Sun, 25 Feb 2018 09:48:01 GMT):
Do you have docker account?

saifi_ali_rahat (Sun, 25 Feb 2018 09:48:33 GMT):
nope

phanikumar1210 (Sun, 25 Feb 2018 09:49:06 GMT):
Please do create one at https://hub.docker.com/

saifi_ali_rahat (Sun, 25 Feb 2018 09:49:16 GMT):
okay

phanikumar1210 (Sun, 25 Feb 2018 09:49:26 GMT):
Also check whether docker service is up and running or not?

phanikumar1210 (Sun, 25 Feb 2018 09:49:52 GMT):
under which user you have installed docker? Root or someother user?

saifi_ali_rahat (Sun, 25 Feb 2018 09:50:43 GMT):
home

saifi_ali_rahat (Sun, 25 Feb 2018 09:51:16 GMT):
docker service seems up and running...

phanikumar1210 (Sun, 25 Feb 2018 09:52:01 GMT):
home user? would you mine where sending output of *whoami*

saifi_ali_rahat (Sun, 25 Feb 2018 09:53:10 GMT):
"rahat" it' my user

phanikumar1210 (Sun, 25 Feb 2018 09:54:35 GMT):
ok

saifi_ali_rahat (Sun, 25 Feb 2018 09:55:54 GMT):
docker id created

phanikumar1210 (Sun, 25 Feb 2018 09:56:29 GMT):
login with previous command and check the command works

saifi_ali_rahat (Sun, 25 Feb 2018 09:59:51 GMT):
login didn't work...says... Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Password: when I give the password, it says... Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/auth: dial unix /var/run/docker.sock: connect: permission denied

phanikumar1210 (Sun, 25 Feb 2018 10:04:15 GMT):
under which user you have installed docker

phanikumar1210 (Sun, 25 Feb 2018 10:04:48 GMT):
Can you check whether root user have access to docker

phanikumar1210 (Sun, 25 Feb 2018 10:05:08 GMT):
or redhat user have access to docker deamon

phanikumar1210 (Sun, 25 Feb 2018 10:05:23 GMT):
the issue is with docker not with the application

saifi_ali_rahat (Sun, 25 Feb 2018 10:12:00 GMT):
how to check...whether root user have access to docker? I am in root now....

phanikumar1210 (Sun, 25 Feb 2018 10:13:31 GMT):
service docker status

phanikumar1210 (Sun, 25 Feb 2018 10:13:39 GMT):
paste the output here

saifi_ali_rahat (Sun, 25 Feb 2018 10:14:35 GMT):
docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-02-24 17:40:13 IST; 22h ago Docs: https://docs.docker.com Main PID: 1276 (dockerd) Tasks: 20 Memory: 59.1M CPU: 1min 30.475s CGroup: /system.slice/docker.service ├─1276 /usr/bin/dockerd -H fd:// └─1384 docker-containerd --config /var/run/docker/containerd/containerd.toml Feb 25 14:49:43 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:43.836376924+05:30" level=warning msg="unknown container" container=9e1f86010d9bd2fc52ab0f5bf1fc9b Feb 25 14:49:43 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:43.956194730+05:30" level=warning msg="unknown container" container=9e1f86010d9bd2fc52ab0f5bf1fc9b Feb 25 14:49:45 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:45.670415713+05:30" level=warning msg="unknown container" container=9e1f86010d9bd2fc52ab0f5bf1fc9b Feb 25 14:49:46 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:46+05:30" level=info msg="shim reaped" id=9e1f86010d9bd2fc52ab0f5bf1fc9b995ba80cd048cbbc38e2a9b3f8 Feb 25 14:49:46 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:46.591423950+05:30" level=info msg="ignoring event" module=libcontainerd namespace=plugins.moby to Feb 25 14:49:46 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:46.593836668+05:30" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tas Feb 25 14:49:46 rahat-VirtualBox dockerd[1276]: time="2018-02-25T14:49:46.963304494+05:30" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/con Feb 25 14:54:49 rahat-VirtualBox systemd[1]: Started Docker Application Container Engine. Feb 25 14:55:18 rahat-VirtualBox systemd[1]: Started Docker Application Container Engine. Feb 25 15:00:25 rahat-VirtualBox systemd[1]: Started Docker Application Container Engine. lines 1-22/22 (END)

phanikumar1210 (Sun, 25 Feb 2018 10:20:18 GMT):
docker is running but looks like there is some issue with the deamon. Can you please restart the service

phanikumar1210 (Sun, 25 Feb 2018 10:20:18 GMT):
service docker restart

phanikumar1210 (Sun, 25 Feb 2018 10:25:04 GMT):
*sudo usermod -a -G docker redhat*

phanikumar1210 (Sun, 25 Feb 2018 10:25:44 GMT):
the above command will add redhat user to access docker check that as well and let me know.

saifi_ali_rahat (Sun, 25 Feb 2018 10:26:52 GMT):
it says, "usermod: user 'redhat' does not exist"

phanikumar1210 (Sun, 25 Feb 2018 10:27:18 GMT):
it seems you don't have redhat user

phanikumar1210 (Sun, 25 Feb 2018 10:27:36 GMT):
you are not running command under redhat user.

phanikumar1210 (Sun, 25 Feb 2018 10:28:36 GMT):
you got mislead let me know the output of whoami from where you are executing hyper-ledger application

saifi_ali_rahat (Sun, 25 Feb 2018 10:29:28 GMT):
now, when I tried login docker again (from root), it asked for password (without an error)...when I gave password, it says... Error response from daemon: Get https://p/v2/: dial tcp: lookup p on 127.0.1.1:53: no such host

phanikumar1210 (Sun, 25 Feb 2018 10:30:41 GMT):
did you restart docker?

saifi_ali_rahat (Sun, 25 Feb 2018 10:30:45 GMT):
yes

saifi_ali_rahat (Sun, 25 Feb 2018 10:31:10 GMT):
it was restart effect I guess...

phanikumar1210 (Sun, 25 Feb 2018 10:33:18 GMT):
It is a kind of odd response but try restarting the system or VM

saifi_ali_rahat (Sun, 25 Feb 2018 10:33:40 GMT):
okay

saifi_ali_rahat (Sun, 25 Feb 2018 11:00:18 GMT):
restart done....same issue every where like docker-login, downloading platform-specific binaries....

saifi_ali_rahat (Sun, 25 Feb 2018 11:00:37 GMT):
I think I need to re-install docker

phanikumar1210 (Sun, 25 Feb 2018 11:03:07 GMT):
Yep

phanikumar1210 (Sun, 25 Feb 2018 11:03:13 GMT):
https://github.com/docker/for-mac/issues/1317

phanikumar1210 (Sun, 25 Feb 2018 11:03:46 GMT):
If possible install it under root user

saifi_ali_rahat (Sun, 25 Feb 2018 11:06:01 GMT):
sure...

saifi_ali_rahat (Sun, 25 Feb 2018 11:07:58 GMT):
but as hyperledger-fabric documentation suggests....we'll have to install platform-specific binaries into the directory where we'll create our fabric project

saifi_ali_rahat (Sun, 25 Feb 2018 11:08:00 GMT):
???

saifi_ali_rahat (Sun, 25 Feb 2018 11:08:52 GMT):
install = download

phanikumar1210 (Sun, 25 Feb 2018 11:08:56 GMT):
run fabric project under root user

saifi_ali_rahat (Sun, 25 Feb 2018 11:09:26 GMT):
okay

phanikumar1210 (Sun, 25 Feb 2018 11:10:04 GMT):
are you running sample application or building your own application

saifi_ali_rahat (Sun, 25 Feb 2018 11:10:05 GMT):
thanks a lot for your kind support...

saifi_ali_rahat (Sun, 25 Feb 2018 11:10:21 GMT):
as of now, sample application....

phanikumar1210 (Sun, 25 Feb 2018 11:10:59 GMT):
Ok

phanikumar1210 (Sun, 25 Feb 2018 11:48:52 GMT):
Is everything working good now @saifi_ali_rahat

saifi_ali_rahat (Sun, 25 Feb 2018 13:23:00 GMT):
several images are downloaded now....but still getting error for some.... Digest: sha256:06b97a4a915682b630a4b118725edbc734ae20b1fc19155fce40721aace78c9c Status: Downloaded newer image for hyperledger/fabric-kafka:x86_64-1.0.5 ==> FABRIC IMAGE: zookeeper Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:42921->127.0.1.1:53: i/o timeout Error response from daemon: No such image: hyperledger/fabric-zookeeper:x86_64-1.0.5 ==> FABRIC IMAGE: tools Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:35548->127.0.1.1:53: i/o timeout Error response from daemon: No such image: hyperledger/fabric-tools:x86_64-1.0.5 ===> Pulling fabric ca Image ==> FABRIC CA IMAGE Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:44665->127.0.1.1:53: i/o timeout Error response from daemon: No such image: hyperledger/fabric-ca:x86_64-1.0.5

saifi_ali_rahat (Sun, 25 Feb 2018 13:23:38 GMT):
image status now... REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-couchdb x86_64-1.0.6 380446aa57b6 3 days ago 1.5GB hyperledger/fabric-kafka x86_64-1.0.6 4e726a9527ec 3 days ago 1.29GB hyperledger/fabric-orderer x86_64-1.0.6 659d92c1be85 5 days ago 151MB hyperledger/fabric-peer x86_64-1.0.6 28c7c07db540 5 days ago 154MB hyperledger/fabric-javaenv x86_64-1.0.6 b39e5e521f2a 5 days ago 1.41GB hyperledger/fabric-ccenv x86_64-1.0.6 2e695012bcff 5 days ago 1.28GB hyperledger/fabric-couchdb latest 9a58db2d2723 2 months ago 1.5GB hyperledger/fabric-couchdb x86_64-1.0.5 9a58db2d2723 2 months ago 1.5GB hyperledger/fabric-kafka latest b8c5172bb83c 2 months ago 1.29GB hyperledger/fabric-kafka x86_64-1.0.5 b8c5172bb83c 2 months ago 1.29GB hyperledger/fabric-orderer latest 368c78b6f03b 2 months ago 151MB hyperledger/fabric-orderer x86_64-1.0.5 368c78b6f03b 2 months ago 151MB hyperledger/fabric-peer latest c2ab022f0bdb 2 months ago 154MB hyperledger/fabric-peer x86_64-1.0.5 c2ab022f0bdb 2 months ago 154MB hyperledger/fabric-javaenv latest 50890cc3f0cd 2 months ago 1.41GB hyperledger/fabric-javaenv x86_64-1.0.5 50890cc3f0cd 2 months ago 1.41GB hyperledger/fabric-ccenv latest 33feadb8f7a6 2 months ago 1.28GB hyperledger/fabric-ccenv x86_64-1.0.5 33feadb8f7a6 2 months ago 1.28GB hello-world latest f2a91732366c 3 months ago 1.85kB

phanikumar1210 (Sun, 25 Feb 2018 14:05:58 GMT):
I believe all the images that are required got downloded

saifi_ali_rahat (Sun, 25 Feb 2018 14:26:42 GMT):
I again executed the command for downloading the images....the images I got error for, are also downloaded now.....

saifi_ali_rahat (Sun, 25 Feb 2018 14:28:10 GMT):
the status now is.... REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-couchdb latest 380446aa57b6 3 days ago 1.5GB hyperledger/fabric-couchdb x86_64-1.0.6 380446aa57b6 3 days ago 1.5GB hyperledger/fabric-kafka latest 4e726a9527ec 3 days ago 1.29GB hyperledger/fabric-kafka x86_64-1.0.6 4e726a9527ec 3 days ago 1.29GB hyperledger/fabric-zookeeper latest 205a873eee5d 3 days ago 1.32GB hyperledger/fabric-zookeeper x86_64-1.0.6 205a873eee5d 3 days ago 1.32GB hyperledger/fabric-tools latest 322eaa2b8786 5 days ago 1.33GB hyperledger/fabric-tools x86_64-1.0.6 322eaa2b8786 5 days ago 1.33GB hyperledger/fabric-orderer latest 659d92c1be85 5 days ago 151MB hyperledger/fabric-orderer x86_64-1.0.6 659d92c1be85 5 days ago 151MB hyperledger/fabric-peer latest 28c7c07db540 5 days ago 154MB hyperledger/fabric-peer x86_64-1.0.6 28c7c07db540 5 days ago 154MB hyperledger/fabric-javaenv latest b39e5e521f2a 5 days ago 1.41GB hyperledger/fabric-javaenv x86_64-1.0.6 b39e5e521f2a 5 days ago 1.41GB hyperledger/fabric-ca latest fe3c9b6542cf 5 days ago 238MB hyperledger/fabric-ca x86_64-1.0.6 fe3c9b6542cf 5 days ago 238MB hyperledger/fabric-ccenv latest 2e695012bcff 5 days ago 1.28GB hyperledger/fabric-ccenv x86_64-1.0.6 2e695012bcff 5 days ago 1.28GB hyperledger/fabric-tools x86_64-1.0.5 6a8993b718c8 2 months ago 1.33GB hyperledger/fabric-couchdb x86_64-1.0.5 9a58db2d2723 2 months ago 1.5GB hyperledger/fabric-kafka x86_64-1.0.5 b8c5172bb83c 2 months ago 1.29GB hyperledger/fabric-zookeeper x86_64-1.0.5 68945f4613fc 2 months ago 1.32GB hyperledger/fabric-orderer x86_64-1.0.5 368c78b6f03b 2 months ago 151MB hyperledger/fabric-peer x86_64-1.0.5 c2ab022f0bdb 2 months ago 154MB hyperledger/fabric-javaenv x86_64-1.0.5 50890cc3f0cd 2 months ago 1.41GB hyperledger/fabric-ccenv x86_64-1.0.5 33feadb8f7a6 2 months ago 1.28GB hyperledger/fabric-ca x86_64-1.0.5 002c9089e464 2 months ago 238MB hello-world latest f2a91732366c 3 months ago 1.85kB

phanikumar1210 (Sun, 25 Feb 2018 14:46:55 GMT):
Good to hea

phanikumar1210 (Sun, 25 Feb 2018 14:46:59 GMT):
hear @saifi_ali_rahat

saifi_ali_rahat (Sun, 25 Feb 2018 14:55:34 GMT):
yup....thanks :)

phanikumar1210 (Sun, 25 Feb 2018 14:58:53 GMT):
Not a problem

amirhosainh (Sun, 25 Feb 2018 16:16:48 GMT):
Has joined the channel.

amirhosainh (Sun, 25 Feb 2018 16:17:35 GMT):
Hi, I just Installed Hyperledger fabric on Ubuntu 14.04 using command "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha" which was given in this doc: https://hyperledger-fabric.readthedocs.io/en/latest/samples.html But I have a problem. When I want to run "peer" binary, it gives the following error: "2018-02-25 19:30:06.420 IRST [main] main -> ERRO 001 Fatal error when initializing core config : GOPATH not set" And when I set the GOPATH to /home/amir/go and then run peer, it says: "2018-02-25 19:30:49.130 IRST [main] main -> ERRO 001 Fatal error when initializing core config : DevConfigDir not found in /home/amir/go" Does anybody know what's the problem?

phanikumar1210 (Sun, 25 Feb 2018 17:05:30 GMT):
Can you post the command that you are using to run peer

phanikumar1210 (Sun, 25 Feb 2018 17:06:06 GMT):
@amirhosainh

phanikumar1210 (Sun, 25 Feb 2018 17:51:30 GMT):
*configtxgen -profile SixOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block* command resulting in response code 1 causing generation of network to fail. Can someone let me know where should I find the logs to trace the issue *Output* 2018-02-25 17:49:56.349 UTC [common/configtx/tool] main -> INFO 001 Loading configuration 2018-02-25 17:49:56.386 UTC [common/configtx/tool] doOutputBlock -> INFO 002 Generating genesis block

yzhivkov (Sun, 25 Feb 2018 18:47:57 GMT):
Has joined the channel.

caelum (Sun, 25 Feb 2018 22:09:47 GMT):
Has joined the channel.

shailaja.mahara (Mon, 26 Feb 2018 07:14:10 GMT):
I'm facing an error while creating the channel withing the CLI container and it's giving an error "Error: Got unexpected status: BAD_REQUEST". Not sure where I went wrong. I'm following the fabric official docs. Can anyone help out?

Jonny (Mon, 26 Feb 2018 07:31:26 GMT):
Hi, is anyone here using couchdb with fabric? I want to know if you guys can successfully bring the data file to other installation?

zasamen (Mon, 26 Feb 2018 08:10:49 GMT):
Hi, @here . Can anyone explain, why can't i instantiate chaincode? I've tried do deploy fabric network like in byfn, but when instantiating chaincode i'm facing errors.

zasamen (Mon, 26 Feb 2018 08:10:49 GMT):
Hi, @here . Can anyone explain, why can't i instantiate chaincode? I've tried do deploy fabric network like in byfn, but when instantiating chaincode i'm facing errors. Here are logs of peer container: ```Payload with sequence number 2 wasn't added to payload buffer: Payload with sequence number = 2 has been already processed 2018-02-26 08:04:56.922 UTC [gossip/state] handleStateResponse -> WARN 401 Payload with sequence number 2 wasn't added to payload buffer: Payload with sequence number = 2 has been already processed 2018-02-26 08:04:58.044 UTC [chaincode] launchAndWaitForRegister -> DEBU 402 stopping due to error while launching Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer.blockchain-clone.iba,tx:1f428ec8244678048c7848eb79403c9ae03bcab97a819ff5d36d762493d1def6) 2018-02-26 08:04:58.044 UTC [container] lockContainer -> DEBU 403 waiting for container(dev-peer.blockchain-clone.iba-mycc-1.0) lock 2018-02-26 08:04:58.044 UTC [container] lockContainer -> DEBU 404 got container (dev-peer.blockchain-clone.iba-mycc-1.0) lock 2018-02-26 08:04:58.045 UTC [dockercontroller] stopInternal -> DEBU 405 Stop container dev-peer.blockchain-clone.iba-mycc-1.0(Container not running: dev-peer.blockchain-clone.iba-mycc-1.0) 2018-02-26 08:04:58.046 UTC [dockercontroller] stopInternal -> DEBU 406 Kill container dev-peer.blockchain-clone.iba-mycc-1.0 (API error (409): {"message":"Cannot kill container: dev-peer.blockchain-clone.iba-mycc-1.0: Container 713bdc375a4743d7df3ca3050ca010f2e3cf56a8fcfa52eb5260b302a26e0949 is not running"} ) 2018-02-26 08:04:58.058 UTC [dockercontroller] stopInternal -> DEBU 407 Removed container dev-peer.blockchain-clone.iba-mycc-1.0 2018-02-26 08:04:58.058 UTC [container] unlockContainer -> DEBU 408 container lock deleted(dev-peer.blockchain-clone.iba-mycc-1.0) 2018-02-26 08:04:58.058 UTC [chaincode] func1 -> DEBU 409 chaincode mycc:1.0 launch seq completed 2018-02-26 08:04:58.058 UTC [chaincode] Launch -> ERRO 40a launchAndWaitForRegister failed Timeout expired while starting chaincode mycc...``` I understand that is timeout, but why?

phanikumar1210 (Mon, 26 Feb 2018 08:17:10 GMT):
@zasamen can you please help me where I can find logs for bync.sh file

phanikumar1210 (Mon, 26 Feb 2018 08:17:29 GMT):
I have some issue with building the network

zasamen (Mon, 26 Feb 2018 08:27:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8Q56K9TEwLXW8KCrh) @phanikumar1210 do you mean byfn.sh The script's output is sent to terminal (if you don't redirect it). If you want to see the logs of fabric and you use docker containers: execute this command `docker logs _container_name_`

prabvi01 (Mon, 26 Feb 2018 08:34:31 GMT):
i have already setup fabric network for 2 orgs, now i want to add one more org in it. is it possible to add one more org in already setup fabric network, if yes then can anyone help me in this?

Pranoti (Mon, 26 Feb 2018 09:12:25 GMT):
Has joined the channel.

saifi_ali_rahat (Mon, 26 Feb 2018 10:56:41 GMT):
@shailaja.mahara please let me know: - you are using windows or ubuntu? - are you getting the issue at the step "Bring Up the Network" under "Building Your First Network"?

phanikumar1210 (Mon, 26 Feb 2018 10:57:47 GMT):
@zasamen I found that the container are not even started to have a look into the containers for logs

username343 (Mon, 26 Feb 2018 11:00:01 GMT):
is it possible to return a transient value from chaincode and for the same transaction retain the state changes ? What i want is to be able to return a value which will not be written on the blockchain, neither will be included on read/write states but i want to be able to write other values to the ledger

username343 (Mon, 26 Feb 2018 11:07:31 GMT):
if i return a message from the function it is included in the transaction proposal response payload

username343 (Mon, 26 Feb 2018 11:13:10 GMT):
@prabvi01 you can add a new organization to a deployed network. Have a look at this https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html

zasamen (Mon, 26 Feb 2018 11:14:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3rjPoxm58E3ajgyg3) @phanikumar1210 so what do you see when executing script?

prabvi01 (Mon, 26 Feb 2018 11:17:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6aMCaaQ58ByC2DGir) @username343 thanks

phanikumar1210 (Mon, 26 Feb 2018 11:23:19 GMT):
@zasamen /root/fabric-samples_updating/first-network/../bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## 2018-02-26 10:55:40.869 UTC [common/configtx/tool] main -> INFO 001 Loading configuration 2018-02-26 10:55:40.913 UTC [common/configtx/tool] doOutputBlock -> INFO 002 Generating genesis block Failed to generate orderer genesis block...

phanikumar1210 (Mon, 26 Feb 2018 11:25:11 GMT):
In the end it is saying *generate orderer genesis block failed* and the point at which I am getting this is *configtxgen -profile SixOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org2MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org2MSP*

zasamen (Mon, 26 Feb 2018 11:34:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5giFSrbJnXtrzSXjC) @phanikumar1210 It is error from configtxgen, please check configuration in `configtx.yaml` .

shailaja.mahara (Mon, 26 Feb 2018 11:54:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LkaawXNSanvwyQMLR) @saifi_ali_rahat thanks for replying. Im working on centOS and byfn gives no such error.

saifi_ali_rahat (Mon, 26 Feb 2018 11:58:40 GMT):
okay, which step are you facing mentioned error at?

mflipw (Mon, 26 Feb 2018 12:02:52 GMT):
Has joined the channel.

shailaja.mahara (Mon, 26 Feb 2018 12:05:47 GMT):
while creating the channel

shailaja.mahara (Mon, 26 Feb 2018 12:06:14 GMT):
I run this command:

shailaja.mahara (Mon, 26 Feb 2018 12:06:15 GMT):
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

shailaja.mahara (Mon, 26 Feb 2018 12:09:20 GMT):

Screenshot from 2018-02-26 17-37-11.png

phanikumar1210 (Mon, 26 Feb 2018 12:30:44 GMT):
do anyone have any idea on links on how to build a separate enterprise blockchain from scratch?

phanikumar1210 (Mon, 26 Feb 2018 15:06:57 GMT):
where can I find a .bna file of my network?

phanikumar1210 (Mon, 26 Feb 2018 15:07:03 GMT):
for sample project

Kavaz (Mon, 26 Feb 2018 16:50:57 GMT):
Has joined the channel.

AnilOner (Mon, 26 Feb 2018 17:41:54 GMT):
Has joined the channel.

phanikumar1210 (Mon, 26 Feb 2018 18:44:17 GMT):
adding fields to SampleConsortium causing network build failure

phanikumar1210 (Mon, 26 Feb 2018 18:44:17 GMT):
Do anyone have any idea on how to do that?

foxtrot9 (Mon, 26 Feb 2018 19:32:19 GMT):
Has joined the channel.

schwinnez (Mon, 26 Feb 2018 19:40:23 GMT):
Has joined the channel.

schwinnez (Mon, 26 Feb 2018 19:49:34 GMT):
Hi, Might be a stupid question, but I am wondering what part of the msp is needed on the filesystem of a peer. I think it should be the orderers tls cert, PeerAdmin cert and all other peers tls certs. All remaining siging certs are part of the channel configuration right (or are they not used for the gossip)? In the cryptogen generated msp, i can find PeerAdmin cert and caCert and tlsca cert. I assume, that peers tls certs are all accepted if they are signed by the tlsca, right? So this gives me the explanation why der is only the tlsca cert and not all the peers tls cert. What i don't understand yet is, why there is the orgs ca cert. Is this for the gossip and the channel configuration is not used for gossip. Is gossip maybe not a channel thing?

yacovm (Mon, 26 Feb 2018 19:57:26 GMT):
@schwinnez - everything under `sampleconfig/msp` is needed on the peer's file system

yacovm (Mon, 26 Feb 2018 19:57:38 GMT):
That is for enrollement certificates

yacovm (Mon, 26 Feb 2018 19:57:57 GMT):
for TLS - we need: - private key - tls root CA cert - tls certificate

yacovm (Mon, 26 Feb 2018 19:58:09 GMT):
this has nothing to do with gossip in any way

yacovm (Mon, 26 Feb 2018 19:58:44 GMT):
but, having said that - the peer's TLS CA certificate pool expands as the peer joins channels

schwinnez (Mon, 26 Feb 2018 20:05:08 GMT):
Thanks so far=) But i didn't understand this completely yet. I am having tls connections to the orderers and to other peers of the own organisation, right? So what i need is orderers tls certificate and one for every peer right? I could also use the tls root ca certificate for tls with peers (is this actually done?) But ehy is the certificate pool extending when joining channels? Only if there are new orderers?

yacovm (Mon, 26 Feb 2018 20:11:47 GMT):
the TLS root CA pool is expanding *in a peer* because it probably needs to connect to other peers, and also to other orderers (of other organizations)

yacovm (Mon, 26 Feb 2018 20:12:09 GMT):
on top of it - it is very common and is a good practice to have orderers in their own organization than the peer

yacovm (Mon, 26 Feb 2018 20:12:09 GMT):
on top of it - it is very common and is a good practice to have orderers in their own organization than the peer(s) and client(s)

yacovm (Mon, 26 Feb 2018 20:26:53 GMT):
But actually this got me thinking... @mastersingh24 , if `o` is an orderer and it uses mutual TLS and a client in a different org creates a channel, either the client needs to use a TLS certificate and a corresponding key, that is issued by the orderer's CA, or the orderer needs to have pre-configured in its file system, the client root CA cert of the client's organization... right?

yacovm (Mon, 26 Feb 2018 20:27:44 GMT):
because, the orderer adds the `AppRootCAsByChain` at channel creation but this is sort of a chicken and egg problem

yacovm (Mon, 26 Feb 2018 20:27:56 GMT):
@jyellick ^

vieiramanoel (Mon, 26 Feb 2018 20:30:43 GMT):
@yacovm once you're here. I'm facing same issue as this jira https://jira.hyperledger.org/browse/FAB-6092?attachmentViewMode=list

vieiramanoel (Mon, 26 Feb 2018 20:31:07 GMT):
but I don't know ever where to start to fix this

vieiramanoel (Mon, 26 Feb 2018 20:31:24 GMT):
after running channel update for anchorpeers

vieiramanoel (Mon, 26 Feb 2018 20:31:30 GMT):
the anchor itself logs;

vieiramanoel (Mon, 26 Feb 2018 20:31:54 GMT):
``` ``` 2018-02-26 19:30:47.645 UTC [gossip/channel] handleStateInfSnapshot -> DEBU 4b5 Channel mainchannel : Couldn't find org identity of peer (�!?$p��k�HH����Fcnj~6j�� message sent from :b罟��+P����d_�o�� /m�,_���� 2018-02-26 19:30:49.904 UTC [gossip/gossip] handleMessage -> WARN 4b6 Message GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 90 bytes, Signature: 70 bytes Secret payload: 36 bytes, Secret Signature: 70 bytes isn't valid```

vieiramanoel (Mon, 26 Feb 2018 20:31:54 GMT):
``` 2018-02-26 19:30:47.645 UTC [gossip/channel] handleStateInfSnapshot -> DEBU 4b5 Channel mainchannel : Couldn't find org identity of peer (�!?$p��k�HH����Fcnj~6j�� message sent from :b罟��+P����d_�o�� /m�,_���� 2018-02-26 19:30:49.904 UTC [gossip/gossip] handleMessage -> WARN 4b6 Message GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 90 bytes, Signature: 70 bytes Secret payload: 36 bytes, Secret Signature: 70 bytes isn't valid```

vieiramanoel (Mon, 26 Feb 2018 20:31:54 GMT):
```2018-02-26 19:30:47.645 UTC [gossip/channel] handleStateInfSnapshot -> DEBU 4b5 Channel mainchannel : Couldn't find org identity of peer (�!?$p��k�HH����Fcnj~6j�� message sent from :b罟��+P����d_�o�� /m�,_���� 2018-02-26 19:30:49.904 UTC [gossip/gossip] handleMessage -> WARN 4b6 Message GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 90 bytes, Signature: 70 bytes Secret payload: 36 bytes, Secret Signature: 70 bytes isn't valid```

vieiramanoel (Mon, 26 Feb 2018 20:32:18 GMT):
and the orderer

vieiramanoel (Mon, 26 Feb 2018 20:32:43 GMT):
```2018-02-26 19:30:45.668 UTC [cauthdsl] func2 -> DEBU 502 0xc42000e690 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got ministerioMSP) 2018-02-26 19:30:45.669 UTC [cauthdsl] func2 -> DEBU 503 0xc42000e690 principal evaluation fails```

vieiramanoel (Mon, 26 Feb 2018 20:33:06 GMT):
the peer channel update command runs properly on cli, though

yacovm (Mon, 26 Feb 2018 20:33:20 GMT):
did you add the anchor peers to the channel?

vieiramanoel (Mon, 26 Feb 2018 20:33:29 GMT):
yep

vieiramanoel (Mon, 26 Feb 2018 20:33:48 GMT):
the update is the last command on script for cli

vieiramanoel (Mon, 26 Feb 2018 20:34:10 GMT):
```peer channel create -o orderer.governo.gov.br:7050 -c mainchannel -f ./channel-artifacts/channel.tx --tls --cafile tlsca.pem if [ $? -ne 0 ]; then peer channel fetch config mainchannel.block -o orderer.governo.gov.br:7050 -c mainchannel --tls --cafile tlsca.pem fi export CORE_PEER_ADDRESS=peer0.ministerio.saude.gov.br:7051 peer channel join -b mainchannel.block export CORE_PEER_ADDRESS=peer2.ministerio.saude.gov.br:7051 peer channel join -b mainchannel.block export CORE_PEER_ADDRESS=peer1.ministerio.saude.gov.br:7051 peer channel join -b mainchannel.block peer channel update -c mainchannel -o orderer.governo.gov.br:7050 -f ./channel-artifacts/ministerioMSPanchors.tx --tls --cafile tlsca.pem```

yacovm (Mon, 26 Feb 2018 20:35:54 GMT):
hmm, so the orderer logs that thing - I guess the peer also logs something that corresponds to the orderer?

yacovm (Mon, 26 Feb 2018 20:36:02 GMT):
I'd guess it tried to connect to it, and failed - right?

yacovm (Mon, 26 Feb 2018 20:36:17 GMT):
if yes - then I think maybe you made the configtx.yaml wrong

yacovm (Mon, 26 Feb 2018 20:38:33 GMT):
now, as for the anchor peers - it's all right as long as the message doesn't re-appear constantly. If it only appears a few times, it's ok.

yacovm (Mon, 26 Feb 2018 20:39:04 GMT):
The reason it may log that - is that it got a message from some peer which it didn't get (yet) its identity

yacovm (Mon, 26 Feb 2018 20:39:10 GMT):
it will eventually get its identity from some peer

yacovm (Mon, 26 Feb 2018 20:39:16 GMT):
but it will be slower (takes a few seconds....)

yacovm (Mon, 26 Feb 2018 20:39:59 GMT):
oh, wait `Couldn't find org identity`

yacovm (Mon, 26 Feb 2018 20:40:06 GMT):
scratch what I said

yacovm (Mon, 26 Feb 2018 20:42:31 GMT):
as for the anchor peer printing this - it is OK as long as it doesn't print it over and over again

yacovm (Mon, 26 Feb 2018 20:43:00 GMT):
it may print it a few times when it learns about a stateInfo message of a peer it didn't receive (yet) its identity via replication

Sriyansh (Mon, 26 Feb 2018 20:55:27 GMT):
Has joined the channel.

vieiramanoel (Mon, 26 Feb 2018 21:07:18 GMT):
thanks for your help

vieiramanoel (Mon, 26 Feb 2018 21:07:31 GMT):
now I understand what's going on

Sriyansh (Mon, 26 Feb 2018 21:50:15 GMT):
Hi, I've installed chaincode on peer1 of Org1 and peer2 of org2. But when instantiating on org2, it fails. I can't seem to figure out why it fails on org2.

nickgaski (Mon, 26 Feb 2018 21:51:43 GMT):
is it saying `invalid endorsement policy`

schwinnez (Mon, 26 Feb 2018 21:56:28 GMT):
@yacovm thanks for your help. One more/last question (i am currently trying to kind of automate an additional org joining network): For our setup, when a new org joins the network a new channel is created. In http://nick-fabric.readthedocs.io/en/latest/channel_update.html a lot explanation is concerned with changing channel configuration. Actually in our setting, we don't need to modify the channel but to create a new channel. Is is sufficient, to update the crypto material (by the new orgs ca cert, tls ca cert, admin cert) and using configtxchan to generate the new initial channel transaction? I am asking becaus i am still wondering about the orderer. Don't i need a way to provide the new org to the orderer somehow? Somehow, the orderer has to know that the new org is a legitimate identity to communicate, right? This should not be in the hands of the peers? Or is this something only the channel creation policies care about?

yacovm (Mon, 26 Feb 2018 21:57:29 GMT):
hold on

yacovm (Mon, 26 Feb 2018 21:57:34 GMT):
why are you using that site?

yacovm (Mon, 26 Feb 2018 21:58:02 GMT):
what's wrong with https://hyperledger-fabric.readthedocs.io/en/latest/ ?

yacovm (Mon, 26 Feb 2018 21:58:30 GMT):
> For our setup, when a new org joins the network a new channel is created. Why?

yacovm (Mon, 26 Feb 2018 21:58:41 GMT):
Is this a business use case?

yacovm (Mon, 26 Feb 2018 21:59:01 GMT):
> and using configtxchan to generate the new initial channel transaction? Yes.

nickgaski (Mon, 26 Feb 2018 21:59:17 GMT):
Let me take that site down

yacovm (Mon, 26 Feb 2018 21:59:37 GMT):
> Don't i need a way to provide the new org to the orderer somehow? That's what the create channel does... it does exactly this

yacovm (Mon, 26 Feb 2018 21:59:50 GMT):
@nickgaski nice monitoring skills ;)

yacovm (Mon, 26 Feb 2018 22:01:04 GMT):
> Somehow, the orderer has to know that the new org is a legitimate identity to communicate, right? When you create the channel, and the new org's MSP stuff are in the config transaction - it goes into the orderer too.

nickgaski (Mon, 26 Feb 2018 22:05:27 GMT):
@Sriyansh - are you running the automated script or going through the steps manually? If you're using the up to date scripts with older images, then you're going to see a failure on instantiate. The endorsement policy uses `.peer` as the suffix as opposed to the original `.member`. If you update your `fabric-tools` image, which the CLI is based upon, then the automated approach should work just fine

nickgaski (Mon, 26 Feb 2018 22:05:53 GMT):
@yacovm - the sites are gone. That was a little sad

Sriyansh (Mon, 26 Feb 2018 22:08:38 GMT):
Actually instantiating fails on first try, but after trying few times, it got instantiated.

Sriyansh (Mon, 26 Feb 2018 22:10:54 GMT):
Error : ```error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for the chaincode to be instantiated (fabcar:v0)-open /var/hyperledger/production/chaincodes/fabcar.v0: no such file or directory) at new createStatusError (/home/sriyanshcse/Project/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15) at /home/sriyanshcse/Project/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:583:15 [2018-02-27 03:34:34.091] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-02-27 03:34:34.091] [INFO] instantiate-chaincode - instantiate proposal was good [2018-02-27 03:34:34.092] [ERROR] instantiate-chaincode - Failed to send instantiate Proposal or receive valid response. Response null or status is not 200. exiting... [2018-02-27 03:34:34.092] [ERROR] instantiate-chaincode - Failed to order the transaction. Error code: undefined ```

yacovm (Mon, 26 Feb 2018 22:13:02 GMT):
@Sriyansh what do the peer logs say?

Sriyansh (Mon, 26 Feb 2018 22:16:41 GMT):
How do we view peer logs ? I'm installing and instantiating through curl API commands.

Sriyansh (Mon, 26 Feb 2018 22:19:53 GMT):
and on instantiating chaincode, does it instantiate on all peers of the channel which have chaincode installed ?

yacovm (Mon, 26 Feb 2018 22:21:28 GMT):
docker logs

yacovm (Mon, 26 Feb 2018 22:21:38 GMT):
> and on instantiating chaincode, does it instantiate on all peers of the channel which have chaincode installed ? on the target peer

schwinnez (Mon, 26 Feb 2018 22:29:10 GMT):
@yacovm @nickgaski : that was the first v.1.1.0 dite that came to me ;-) the tutorial actually is pretty good but i just have problems to understand how and waht certificates are used in which kind of communication

schwinnez (Mon, 26 Feb 2018 22:33:24 GMT):
Myabe i habe to take a look under the hood. The main problem of my understanding is, that fo a initial creation of a channel somehow the channel creator has to authenticate agaist the orderer. Otherwise everyone in posession of the orderer url could start a channel. Somehow the channel creation policy must come into play here. But also for this, orderer has to be setup with identity provder already

schwinnez (Mon, 26 Feb 2018 22:34:55 GMT):
And i don't get how the hole authorization stuff happens for new channels. I didn't find a good documentatiom about this yet.

Sriyansh (Mon, 26 Feb 2018 22:39:49 GMT):

Screenshot from 2018-02-27 04-07-31.png

silliman (Mon, 26 Feb 2018 22:39:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ga3HifpzcGj2LPTAE) @nickgaski Hi Nick,this _automated script_ of which thou speaketh, it doth allow one to add organizations to an existing channel? If so, I humbly beseech you to tell me where this script resideth. I have heretofore performed these steps manually. Thanks!

Sriyansh (Mon, 26 Feb 2018 22:40:03 GMT):
@yacovm I got these logs

yacovm (Mon, 26 Feb 2018 22:45:10 GMT):
there are not peer logs, @Sriyansh

yacovm (Mon, 26 Feb 2018 22:45:17 GMT):
try `docker ps`

yacovm (Mon, 26 Feb 2018 22:45:25 GMT):
and then figure out the name of the peer container

Sriyansh (Mon, 26 Feb 2018 22:55:37 GMT):
@yacovm this is the name of peer container : peer1.org1.example.com

Sriyansh (Mon, 26 Feb 2018 22:59:34 GMT):
Okay chaincode image wasn't being displayed in docker logs. after a minute I tried and I could see the chaincode image logs. I think this is because it wasn't instantiating on first try ?

yacovm (Mon, 26 Feb 2018 23:05:10 GMT):
No idea

yacovm (Mon, 26 Feb 2018 23:06:27 GMT):
@schwinnez right- someone or a party fr an existing consortium needs to invite your org in

nickgaski (Mon, 26 Feb 2018 23:13:26 GMT):
@schwinnez - so the channel creation will fail unless you pass in the correct org admin cert against a consortium that your org is defined as part of. Basically you use the consortium as the starting point for a channel creation and then specify a subset of orgs for the application group. So the orderer is already aware of the orgs that are defined on its system channel. If you're defined and are using a consortium that you're a part in the channel config transaction, then he's happy

nickgaski (Mon, 26 Feb 2018 23:14:07 GMT):
In other words, you have to be defined within a consortium at the system level (i.e. the orderer) in order to make channel creation requests in the first place

nickgaski (Mon, 26 Feb 2018 23:15:36 GMT):
@silliman - have you seen this? https://github.com/hyperledger/fabric-samples/blob/master/first-network/eyfn.sh I'm not positive if the doc is merged yet; I've been doing some cursory monitoring of this release. But I'm sure an `./eyfn.sh --help` will tell you what it can do

nickgaski (Mon, 26 Feb 2018 23:16:00 GMT):
anyway, it's a scripted execution of that tutorial I wrote

silliman (Mon, 26 Feb 2018 23:17:19 GMT):
@nickgaski hi Nick, no, I haven't seen that.... I take it *e* is for _extend_? I'll check it out, thanks!

nickgaski (Mon, 26 Feb 2018 23:17:57 GMT):
you got it. I just recently managed to reconfigure my new machine to behave properly, so I have not had the pleasure of running through it either. But we know the manual steps work :)

fafsoft (Mon, 26 Feb 2018 23:59:24 GMT):
Has joined the channel.

username343 (Tue, 27 Feb 2018 03:24:42 GMT):
how do i specify that i want endorsements from 10 members/peer of an organizations while instantiating the chaincode?

yoko (Tue, 27 Feb 2018 03:30:19 GMT):
``` client.createUser( {username: caImport.orgs[userOrg].username, mspid: caImport.orgs[userOrg].mspid, cryptoContent: { privateKey: prvKey, signedCert: sgnCert } }); ``` what exactly are the private key and signed cert? is it the key.pem and cert.pem from my fabric orderer running on kube?

yoko (Tue, 27 Feb 2018 03:30:48 GMT):
i get this error when i try: ``` 2018-02-26T20:37:18.26-0500 [APP/PROC/WEB/0] ERR error: [crypto_ecdsa_aes]: importKey - {} 2018-02-26T20:37:18.26-0500 [APP/PROC/WEB/0] ERR error: [Client.js]: Error: Does not understand PEM contents other than ECDSA private keys and certificates 2018-02-26T20:37:18.26-0500 [APP/PROC/WEB/0] ERR at CryptoSuite_ECDSA_AES.importKey (/home/vcap/app/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:196:12) 2018-02-26T20:37:18.26-0500 [APP/PROC/WEB/0] ERR at promise.then (/home/vcap/app/node_modules/fabric-client/lib/Client.js:1091:35) 2018-02-26T20:37:18.26-0500 [APP/PROC/WEB/0] ERR error: [fcw] Failed to get enrollment marbles-Docker Compose Network-composerchannel-peer0.org1.example.com Error: Does not understand PEM contents other than ECDSA private keys and certificates ```

AshishMishra 1 (Tue, 27 Feb 2018 04:56:40 GMT):
Hi Guys, how can I migrate a blockchain/channel from one n/w to another n/w? Eg. I 've 3 peers in network A and 3 peers in network B. In network A, I 've 3 channels 1,2 and 3 and on network B I 've channels 4 and 5. Now I want my channel 3 to be in my network B. Is it possible at all?

sarahkhan (Tue, 27 Feb 2018 05:09:48 GMT):
Has joined the channel.

sarahkhan (Tue, 27 Feb 2018 05:36:23 GMT):

BlockChainError.png

sarahkhan (Tue, 27 Feb 2018 05:36:52 GMT):
Hello everyone, i have setup a network for 3 orgs, now i want to create multiple channels on it. Im trying to generate channel configuration transaction for second channel as 'channelTwo.tx', and then generating anchor pear update for org1 & org2 -FOR channelTwo -using following commands > configtxgen -profile channelTwo -outputCreateChannelTx ./channel-artifacts/channelTwo.tx -channelID channelTwo > configtxgen -profile channelTwo -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID channelTwo -asOrg Org1MSP > configtxgen -profile channelTwo -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID channelTwo -asOrg Org2MSP but it failed giving me above error

sarahkhan (Tue, 27 Feb 2018 05:39:15 GMT):
what should i do to fix channel ID ? for channelTwo

AshishMishra 1 (Tue, 27 Feb 2018 05:45:53 GMT):
Is the new channel output block accessible from your peer container?

AshishMishra 1 (Tue, 27 Feb 2018 05:46:38 GMT):
Also, what command are you using to create the channel?

schwinnez (Tue, 27 Feb 2018 05:52:54 GMT):
Hi @sarahkhan, looks like the cannel id you are using in your create transaction had been mychannel.

juni (Tue, 27 Feb 2018 06:03:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uDeCPpGCWtgNaHQxb) @nickgaski thanks ...

sarahkhan (Tue, 27 Feb 2018 06:05:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7mXdyYBcuutBwmuzq) @AshishMishra 1 i have followed : http://hyperledger-fabric.readthedocs.io/en/release/build_network.html & used byfn.sh file for generating ChannelsConfigurations & anchorPeerUpdates FOR both channelOne & channelTwo

sarahkhan (Tue, 27 Feb 2018 06:05:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6g7Ddjh3DfYo5RudR) @schwinnez why is it mychannel when im giving it as channelTwo for second channel?

AshishMishra 1 (Tue, 27 Feb 2018 06:06:32 GMT):
@sarahkhan byfn won't cater to multiple channels I think. You can simply edit the bash script to cater the need for 2nd channel.

amolpednekar (Tue, 27 Feb 2018 06:11:51 GMT):
So I was trying a small experiment, where I vary the payload size I send to the chaincode from the SDK, (1mb, 10mb, 20mb .. till 40mb), and noting 3 times: 1) client sending the request for endorsement and receiving it (c2e) 2) sending the endorsement txn to orderer and getting acknowledgment (e2o) 3) time taken by committing peers to confirm the block after ordering (o2v) What I noticed was the while all times increase, c2e, e2o are pretty close, whereas o2v is almost double of each of them at all the payload sizes. Why does this happen? Not sure if this is the right channel to ask this, please redirect me if otherwise.

amolpednekar (Tue, 27 Feb 2018 06:11:51 GMT):
Edited with more details - All time recording is done on client side I was trying a small experiment, where I vary the payload size I send the chaincode (and do a putstate of this payload) from the SDK, (1mb, 10mb, 20mb .. till 40mb), and noting 3 times: 1) client sending the request for endorsement and receiving it (c2e) 2) sending the endorsement txn to orderer and getting acknowledgment (e2o) 3) time taken by committing peers to confirm the block after getting acknowledgement of block received from orderer (o2v) What I noticed was the while all times increase, c2e, e2o are pretty close, whereas o2v is almost double of each of them at all the payload sizes. Why does this happen?

amolpednekar (Tue, 27 Feb 2018 06:11:51 GMT):
Edited with more details - All time recording is done on client side I was trying a small experiment, where I vary the payload size I send the chaincode (and do a putstate of this payload) from the SDK, (1mb, 10mb, 20mb .. till 40mb), and noting 3 times: 1) client sending the request for endorsement and receiving it (c2e) 2) sending the endorsement txn to orderer and getting acknowledgment (e2o) 3) time taken by committing peers to confirm the block after getting acknowledgement of txn received from orderer (o2v) What I noticed was the while all times increase, c2e, e2o are pretty close, whereas o2v is almost double of each of them at all the payload sizes. Why does this happen?

schwinnez (Tue, 27 Feb 2018 06:12:18 GMT):
@sarahkhan it is not the name of the transaction but the channel id you have to provide in the create channel statement that defines the name of the channel.

schwinnez (Tue, 27 Feb 2018 06:13:38 GMT):
@yacovm @nickgaski thanks a lot for your help.

saifi_ali_rahat (Tue, 27 Feb 2018 07:15:33 GMT):
curl command not working unable to execute following curl command: # Fetch the Hyperledger Farbic tools and docker images curl -sSL https://goo.gl/iX9dek | bash Given link (https://goo.gl/iX9dek) not working only... anybody, any help?

schwinnez (Tue, 27 Feb 2018 07:16:47 GMT):
You need a recent version of curl that allows for redirects. You can also access the link, copy the redirwct url and use that link with curl.

saifi_ali_rahat (Tue, 27 Feb 2018 07:52:45 GMT):
but redirect URL (https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh) is not working only...it gives... 404: Not Found

schwinnez (Tue, 27 Feb 2018 08:07:37 GMT):
@yacovm @nickgaski: I tried to just setup new channel with new organisation by generating a new channel tx but i got "Attempted to include a member which is not in the consortium." that is, i was missing the "invite" step right? What do i have to do when generating the channel transaction and using configtxgen? Is the invitie implicitly contained in the channel transaction, when adjusting the consortium in the configtx as well?

yacovm (Tue, 27 Feb 2018 08:14:15 GMT):
the transaction needs to be signed by a member of the cons'

amolpednekar (Tue, 27 Feb 2018 08:28:24 GMT):
any ideas, guys? https://chat.hyperledger.org/channel/fabric-questions?msg=CPnrxSK39bu99XF4P

AshishMishra 1 (Tue, 27 Feb 2018 08:30:08 GMT):
Guys.. If I have 2 orgs and suppose the 2nd Org is hosted by a partner of mine. We both are connected to same channel. Now since my partner controls the 2nd org he can delete entries in couchdb (since he has control on it). Now if I have the usecase of currencies, any transaction which is missing in his peer's database will show a different balance then what is on my peer. Isn't that a big problem in establishing trust with Fabric?

AshishMishra 1 (Tue, 27 Feb 2018 08:46:48 GMT):
env

amolpednekar (Tue, 27 Feb 2018 09:02:20 GMT):
@mastersingh24 @jyellick

schwinnez (Tue, 27 Feb 2018 09:14:34 GMT):
@yacovm: The transaction that i am using is signed by the peeradmin of existing org. Isn't this okay? Isn't this admin a member?

suva (Tue, 27 Feb 2018 09:25:35 GMT):
Has joined the channel.

suva (Tue, 27 Feb 2018 09:25:56 GMT):
Can anybody help how to check block and ledger details on ubuntu? I have ran the first-network sample on ubuntu I am able to see genesis block in channel-artifacts folder is there any command to see no of blocks and block creation path etc etc plz help

suva (Tue, 27 Feb 2018 09:58:34 GMT):
while running below command I m getting error azureuser@block1rpy-ca0:~/fabric-samples/first-network$ peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type "" goroutine 1 [running]: panic(0xba6880, 0xc4201c8460) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852

suva (Tue, 27 Feb 2018 09:58:41 GMT):
can aby body help me

suva (Tue, 27 Feb 2018 09:58:48 GMT):
?

mastersingh24 (Tue, 27 Feb 2018 10:02:57 GMT):
@suva - which version of fabric are you using?

suva (Tue, 27 Feb 2018 10:17:28 GMT):
how to check fabric version

suva (Tue, 27 Feb 2018 10:17:29 GMT):
?

suva (Tue, 27 Feb 2018 10:17:37 GMT):
@mastersingh24

suva (Tue, 27 Feb 2018 10:18:34 GMT):
I think its VERSION=1.0.5

mastersingh24 (Tue, 27 Feb 2018 10:18:37 GMT):
Did you use the download script?

suva (Tue, 27 Feb 2018 10:18:47 GMT):
I check in the get-docker-images.sh

suva (Tue, 27 Feb 2018 10:19:28 GMT):
sorry its get-byfn.sh

mastersingh24 (Tue, 27 Feb 2018 10:19:36 GMT):
download https://raw.githubusercontent.com/hyperledger/fabric/release/sampleconfig/core.yaml and put it in the same directory as the peer binary

suva (Tue, 27 Feb 2018 10:19:38 GMT):
The version is 1.0.5

mastersingh24 (Tue, 27 Feb 2018 10:20:10 GMT):
ok - cool - the above link is good then .... just download the file and put it in the same directory as the peer binary

mastersingh24 (Tue, 27 Feb 2018 10:23:58 GMT):
actually, you are going to have several issues even after this ..... you might just want to use the fabric-tools container instead and run your commands from there

suva (Tue, 27 Feb 2018 10:25:34 GMT):
@mastersingh24 .still it is showing the same error

mastersingh24 (Tue, 27 Feb 2018 10:26:10 GMT):
Yeah ... you need to set `FABRIC_CFG_PATH` to the location of the core.yaml file you just downloaded

dushyantbehl (Tue, 27 Feb 2018 10:26:29 GMT):
Cross posting this from the fabric channel - While running my fabric network (v1.0.3) I’m getting this error a lot gRPC failure=Status{code=UNKNOWN, description=Error executing chaincode: premature execution - chaincode is being launched, cause=null} 

Is this a problem with my configuration of fabric network or a known issue with v1.0.3? I get this error even if the chaincode containers are properly up

mastersingh24 (Tue, 27 Feb 2018 10:28:03 GMT):
@dushyantbehl - you probably need to wait for a bit after instantiating the chaincode before sending invokes/query

dushyantbehl (Tue, 27 Feb 2018 10:29:15 GMT):
@mastersingh24 If I run the invokes first time they succeed but if I run them after some time then I see this error a lot

mastersingh24 (Tue, 27 Feb 2018 10:29:55 GMT):
is the chaincode crashing?

dushyantbehl (Tue, 27 Feb 2018 10:30:05 GMT):
no the containers seem to be up

dushyantbehl (Tue, 27 Feb 2018 10:35:59 GMT):
I can do exec bash in the chaincode container and everything looks fine

chaitanya (Tue, 27 Feb 2018 10:38:24 GMT):
Has joined the channel.

chaitanya (Tue, 27 Feb 2018 10:40:58 GMT):
@mastersingh24 I am getting the same errors, while running invokes through SDK v1.0.1, against Fabric v1.0.3 images

chaitanya (Tue, 27 Feb 2018 10:40:58 GMT):
@mastersingh24 I am getting the same errors, while running invokes through Java SDK v1.0.1, against Fabric v1.0.3 images

chaitanya (Tue, 27 Feb 2018 10:41:35 GMT):
```gRPC failure=Status{code=UNKNOWN, description=Error executing chaincode: premature execution - chaincode is being launched, cause=null}. Was verified:false```

CorentinPacaud (Tue, 27 Feb 2018 10:51:41 GMT):
Hi, I built my own network,. Now, I try to install my BNA but this cmd failed. Any help ? ``` composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial.bna --file admin.card Starting business network from archive: tutorial.bna Business network definition: Identifier: tutorial@0.0.1 Description: Demo Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to instantiate composer runtime. Error: Peer has rejected transaction '6fdd6f02a8b0896d13811dc6c394b3601c51b4551da678be03b8173dc3d2cb04' with code ENDORSEMENT_POLICY_FAILURE Command failed ```

Jonny (Tue, 27 Feb 2018 11:00:59 GMT):
Is that normal getting `[os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang` ?

AshishMishra 1 (Tue, 27 Feb 2018 12:03:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oaAKufbEEbMwsMnca) Can someone please help here?

hulk_baba (Tue, 27 Feb 2018 12:55:54 GMT):
Has joined the channel.

CorentinPacaud (Tue, 27 Feb 2018 13:57:03 GMT):
Anyone for my question ? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=brq4c57N8buCiduFi)

Stecec (Tue, 27 Feb 2018 16:16:35 GMT):
Hi everyone. Is it possible to create a Fabric network with only one organization, which uses the tls connection?

yacovm (Tue, 27 Feb 2018 16:21:37 GMT):
yes

nickgaski (Tue, 27 Feb 2018 16:28:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qz34TuSbZKMJCEqDM) @schwinnez - yes but that is not the error you got, is it? Remember, you start at the high level with a consortium view. As an example, `SampleConsortium` at the system level has Orgs1, 2, and 3 defined within it. Now you try to create a channel transaction artifact starting with `SampleConsortium` as your top level identifier, and attempt to include Org1, Org2 & Org4 as part of your channel application group. It's going to bark at you for including Org4 because that org has no relationship to the consortium

nickgaski (Tue, 27 Feb 2018 16:30:02 GMT):
Now after the fact you can easily add Org4 with a channel configuration update. But you can't begin your channel with Org4 unless that Org is defined within the consortium (i.e. within the system channel)

schwinnez (Tue, 27 Feb 2018 16:51:51 GMT):
@nickgaski So i have to create the channel first with already existing orgs and do a reconfiguration? Isn't there a way to just add the org to the consortium and create a channel with the new org then? Could be in two steps but should be addOrg first and then create channel. Two create channel and then reconfigure it is a little strange, or am I missing a point?

nickgaski (Tue, 27 Feb 2018 16:54:47 GMT):
so there are two approaches. You can update your system channel first to include this org in the consortium. Now in my example, you would have all four orgs available for your application group. But if the org is not defined within the consortium at the system level, then it's a non-starter. In any event, if this org was not defined within the genesis of the system channel, then it's not available for the standard channel creation approach. You need to reconfigure

cuevrob (Tue, 27 Feb 2018 16:55:07 GMT):
Has joined the channel.

nickgaski (Tue, 27 Feb 2018 16:55:19 GMT):
Meaning you need to authenticate this org to your network

cuevrob (Tue, 27 Feb 2018 16:55:36 GMT):
Hello, I am at the BYFN tutorial and when I get to the point where I have to run the (docker exec -it cli bash) command, something happens and it doesnt work giving me the error that the container is not running. Please help meee

nickgaski (Tue, 27 Feb 2018 16:56:21 GMT):
@cuevrob - go into `docker-compose-cli.yaml` and change the `sleep` on the CLI container to a big ole value

nickgaski (Tue, 27 Feb 2018 16:56:47 GMT):
then restart your network

nickgaski (Tue, 27 Feb 2018 16:57:33 GMT):
I think it times out after 1000 seconds. So if you're manually generating crypto and channel update artifacts, then by the time you need to create and join the channel, it might be exited

cuevrob (Tue, 27 Feb 2018 17:01:07 GMT):
Alright man thanks for helping, I will try to follow what you say

cuevrob (Tue, 27 Feb 2018 17:01:18 GMT):

help.png

cuevrob (Tue, 27 Feb 2018 17:01:28 GMT):
What sleep should I change?

nickgaski (Tue, 27 Feb 2018 17:02:27 GMT):
can you run against master and not release branch

nickgaski (Tue, 27 Feb 2018 17:02:38 GMT):
you'll see a different yaml orchestration

nickgaski (Tue, 27 Feb 2018 17:03:52 GMT):
in any event, you'll notice that in this iteration, the CLI container is actually driving an end to end script - `script.sh` - . So if you wanna run stuff manually on the release branch, you should comment out the the `command` line

cuevrob (Tue, 27 Feb 2018 17:04:58 GMT):
Alright man Ill try that, be back in some minutes. Have to do something

nickgaski (Tue, 27 Feb 2018 17:08:30 GMT):
the timeout issue is addressed on master

nickgaski (Tue, 27 Feb 2018 17:09:02 GMT):
you can see the change here - https://github.com/hyperledger/fabric-samples/commit/981efba23294aee10b1fcc0d38da4bbbc776f92c

KGiou (Tue, 27 Feb 2018 17:13:04 GMT):
Has joined the channel.

debutinfotech (Tue, 27 Feb 2018 17:15:56 GMT):
Has joined the channel.

debutinfotech (Tue, 27 Feb 2018 17:16:08 GMT):
Hi

schwinnez (Tue, 27 Feb 2018 17:16:58 GMT):
@nickgaski so id need to be available at the genisis of the system channel or it just nee to be added to the system channel? If so how can i update the system channel?

schwinnez (Tue, 27 Feb 2018 17:16:58 GMT):
@nickgaski so id need to be available at the genisis of the system channel or it just nee to be added to the system channel? If so how can i update the system channel? Or do you say that at the moment standard channel creation is only possible with the org in the system channel genesis block? But this is then rather a shortcoming, isn't it?

debutinfotech (Tue, 27 Feb 2018 17:17:05 GMT):
anyone here can tell me the actual role or orderer?

nickgaski (Tue, 27 Feb 2018 17:24:31 GMT):
Nothing is cast in stone. You can reconfigure the system channel or an application channel. Truth be told, you really would only need to define this org within the consortium if 1. you plan on using this consortium rather often as a channel creation starting point 2. if this org needs the ability to create channels. Otherwise, simply updating the application channels to include the org is a reasonable approach

cuevrob (Tue, 27 Feb 2018 17:32:49 GMT):
@nickgaski thank you man. I commented the command line on the yaml file and it worked. Now, how do i this against master and not the release? Thanks in advance

nickgaski (Tue, 27 Feb 2018 17:34:13 GMT):
master doesn't have the script bootstrapped. So you can manually go through the steps on master, with no issues. Or you can drive the automated script using `./byfn.sh`

cuevrob (Tue, 27 Feb 2018 17:35:50 GMT):
Alright man really thank you.

carne 2 (Tue, 27 Feb 2018 17:57:30 GMT):
Has joined the channel.

parsiya (Tue, 27 Feb 2018 18:00:38 GMT):
Has joined the channel.

schwinnez (Tue, 27 Feb 2018 18:00:45 GMT):
Okay, but i think the application channel reconfiguration approach is not really nice and I have to add new orgs and new channels programatically. that is why i am looking for a nice approach. So creating channels can be automated quite good. (i store keys, create a channel transaction out of a template and i am using java sdk to create the channel with that channel transaction.) The problem is, that when adding a new org, which is not yet part of the consortium, I din't find a good approach yet. Of course all the reconfiguration can be done, but i looks like i have to use the configtxlator several times and,... (just not really nice =( ) Is there an easy way to do theses two steps (adding new Org and creating new Channel)? If so, where is a description of what to do? Or do I really have to automate all the reconfiguration steps oO?

koenbuyens (Tue, 27 Feb 2018 18:14:16 GMT):
Has joined the channel.

belike (Tue, 27 Feb 2018 18:26:11 GMT):
Has joined the channel.

yetanotheruser23 (Tue, 27 Feb 2018 18:33:06 GMT):
Hi, I am trying to instantiate my chaincode, but I get the following error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network fabric_basic not found". I have set the CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE to fabric_default in my peer.yaml. Do I have to explicitly define this network somewhere? Am I doing something wrong here?

yetanotheruser23 (Tue, 27 Feb 2018 18:33:06 GMT):
Hi, I am trying to instantiate my chaincode, but I get the following error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network fabric_basic not found". I have set the CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE to fabric_default in my peer.yaml. Do I have to explicitly define this network somewhere? Am I doing something wrong here?

aatkddny (Tue, 27 Feb 2018 18:33:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ywvTp9pbnJWjahtSN) @schwinnez If you find a way to add an org to the consortium I'd like to know. I've been beating my head against that wall for two weeks now

aatkddny (Tue, 27 Feb 2018 18:34:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rCx9y3MioRtnspp8t) @nickgaski

aatkddny (Tue, 27 Feb 2018 18:34:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rCx9y3MioRtnspp8t) @nickgaski So you've no use case where you'd take on a new customer that has to be integrated to the rest of your customer base, but that has privacy concerns so you can't do a permissioned single chain?

aatkddny (Tue, 27 Feb 2018 18:34:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rCx9y3MioRtnspp8t) @nickgaski So you've no use case where you'd take on a new customer that has to be integrated to the rest of your customer base, but that has privacy concerns so you can't do a permissioned single chain? Then you are lucky...

nickgaski (Tue, 27 Feb 2018 18:37:01 GMT):
^^ @rohitadivi - when you have a moment, can you point the above two folks to any artifacts you have on updating the system channel and signing with the orderer admin. Basically they want to update a consortium definition

kakuzu (Tue, 27 Feb 2018 18:40:49 GMT):
Has joined the channel.

schwinnez (Tue, 27 Feb 2018 19:02:12 GMT):
that would be great. But I din't understand why the use case of adding "new customer" (as aatkddny said) seems not to be important. For each customer I create a new channel and since the customer base is growing, i want to automate the process of adding new customers. For me, this sounds like a common hyperledger use case, so i would expect that there should be a nice way of adding a new org. ;-)

rohitadivi (Tue, 27 Feb 2018 19:02:13 GMT):
I have the instructions for updating the system channel but they are pretty old. I will update them now and post the link here in sometime

aatkddny (Tue, 27 Feb 2018 19:02:29 GMT):
that would be great.

schwinnez (Tue, 27 Feb 2018 19:02:34 GMT):
Thanks for your efforts =)

nickgaski (Tue, 27 Feb 2018 19:06:47 GMT):
out of curiosity, did I somewhere say that `adding new organizations is not important` ?

aatkddny (Tue, 27 Feb 2018 19:07:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AXmMqHDMvNGQXBLbh) @schwinnez It's even more convoluted in my case. i'm dealing with org pairs, Orgs A, B, C has channels AB, AC, BC. Add D and I need to add channels AD, BD, CD. And so on. As I understand it - and I'd love to be told I'm misunderstanding - the only way to ensure the other orgs in the consortium that would be made up from ABCD cannot collaborate to join (say) channel AB is to create a consortium AB-Consortium and define the AB channel to that. But with access to the system channel I can figure the rest out.

nickgaski (Tue, 27 Feb 2018 19:08:37 GMT):
@aatkddny - that assertion is not true. An org cannot join a channel unless they are defined within the channel's config

kakuzu (Tue, 27 Feb 2018 19:09:02 GMT):
ooh but i want to join a running network them

nickgaski (Tue, 27 Feb 2018 19:09:14 GMT):
It doesn't matter if they are a part of the consortium that served as the baseline for the channel creation

aatkddny (Tue, 27 Feb 2018 19:09:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mA36pHDrs7sRFWTek) @nickgaski But they can be added, no? Isn't that the whole point of editing the channel config to add an org.

aatkddny (Tue, 27 Feb 2018 19:09:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mA36pHDrs7sRFWTek) @nickgaski But they can be added, no? Isn't that the whole point of editing the channel config to add an org. If I put channel AB into consortium ABCD then C or D could be added in theory, no?

kakuzu (Tue, 27 Feb 2018 19:09:35 GMT):
A->B is fine but same contract i want to C so it should be A-

kakuzu (Tue, 27 Feb 2018 19:09:35 GMT):
A->B is fine but same contract i want to C so it should be

kakuzu (Tue, 27 Feb 2018 19:09:53 GMT):
A->BC, by A->B A->c

kakuzu (Tue, 27 Feb 2018 19:09:53 GMT):
A->BC, but you are saying A->B and A->c

nickgaski (Tue, 27 Feb 2018 19:10:55 GMT):
yes they can be added of course. I guess I'm missing the big flaw in here somewhere. @aatkddny - in your case, why not just add D to your consortium definition. Then you have a starting point for any channel flavor you want to create

kakuzu (Tue, 27 Feb 2018 19:12:29 GMT):
i think we share certificate to the organization and authenticate that org in our network so that it can get in. I have moved to composer with fabric for simpler arrangement

aatkddny (Tue, 27 Feb 2018 19:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6DSzM7bWaGhkcqGNh) @nickgaski Think SAAS provider. A, B, C, D are competitors. They each run a consortium - with their own peers (think access to the couchdb instances). They transact with one another through us but need to keep details private so competitors can't see anything - up to and including being able to do frequency analysis on transaction counts. So if we have A, B, C signed and running and we sign D we need to add them and allow them to transact with A, B, C in the running fabric. The SLAs require us to ring fence as much as possible. The only way I can see to do that is to have a consortium with the two members for each channel.

aatkddny (Tue, 27 Feb 2018 19:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6DSzM7bWaGhkcqGNh) @nickgaski Think SAAS provider. A, B, C, D are competitors. They each run a consortium - with their own peers (think access to the couchdb instances). They transact with one another through us but need to keep details private so competitors can't see anything - up to and including being able to do frequency analysis on transaction counts. So if we have A, B, C signed and running and we sign D we need to add them and allow them to transact with A, B, C in the running fabric. The SLAs require us to ring fence as much as possible. The only way I can see to do that is to have multiple consortiums, each with the two members for each channel.

aatkddny (Tue, 27 Feb 2018 19:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6DSzM7bWaGhkcqGNh) @nickgaski Think SAAS provider. A, B, C, D are competitors. They each run a consortium - with their own peers (think access to the couchdb instances). They transact with one another through us but need to keep details private so competitors can't see anything - up to and including being able to do frequency analysis on transaction counts. So if we have A, B, C signed and running and we sign D we need to add them and allow them to transact with A, B, C in the running fabric. The SLAs require us to ring fence as much as possible. The only way I can see to do that is to have multiple consortiums, each with the two members for each channel. My problem is dynamically adding D to the fabric genesis channel. I can create the channels easily.

aatkddny (Tue, 27 Feb 2018 19:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6DSzM7bWaGhkcqGNh) @nickgaski Think SAAS provider. A, B, C, D are competitors. They each run a consortium - with their own peers (think access to the couchdb instances). They transact with one another through us but need to keep details private so competitors can't see anything - up to and including being able to do frequency analysis on transaction counts. So if we have A, B, C signed as clients and running on a fabric and then we sign D, we need to add D to the fabric and allow them to transact with A, B, C through new channels in same. The SLAs require us to ring fence as much as possible. The only way I can see to do that is to have multiple consortiums, each with the two members that comprise each channel. My problem is dynamically adding D to the fabric genesis channel in a running fabric. I can create the subsidiary channels easily enough.

nickgaski (Tue, 27 Feb 2018 19:19:29 GMT):
understood. So you need the process to fetch the system channel config block, parse and inject new consortium definitions with D.

nickgaski (Tue, 27 Feb 2018 19:26:12 GMT):
@aatkddny - the application channel update is scriptable, you'll be able to do the same for the system

schwinnez (Tue, 27 Feb 2018 19:33:45 GMT):
Nobody said it ;-) But since there is no easily accessible documentation or tools or something else to this, I am feeling like it has not been considererd as very important in the past. I am just wondering if my use case could be maybe some kind of odd and there is a better way of doing this.[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X7JWJfRREqPmphjBG)

nickgaski (Tue, 27 Feb 2018 19:41:17 GMT):
not easy, but getting easier arguably. @aatkddny , let me try an experiment and I'll show you how to do it

aatkddny (Tue, 27 Feb 2018 19:43:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CyBMcArWZ9Hc5hreC) @nickgaski That would be great. I've been trying everything I can think of to get hold of the system channel in a way that allows me to update it.

kakuzu (Tue, 27 Feb 2018 19:43:58 GMT):
there is work going on to make more docs and tutorials i put the point that docs are messed up and confusing. Hope fully we will see some good tutorial easy to understand

kakuzu (Tue, 27 Feb 2018 19:44:36 GMT):
join #training-and-education-wg

nickgaski (Tue, 27 Feb 2018 19:44:57 GMT):
if the three or four of you could collaborate on a JIRA and make a story for the system tutorial, then I bet someone will grab it ;)

kakuzu (Tue, 27 Feb 2018 19:47:46 GMT):
good idea

joaquimpedrooliveira (Tue, 27 Feb 2018 20:08:59 GMT):
Hi all. What's the impact of not configuring `PEER_GOSSIP_*` env vars in a network having multiple organizations, each one with multiple peers?

VikasJakhar (Tue, 27 Feb 2018 20:09:52 GMT):
Has joined the channel.

kakuzu (Tue, 27 Feb 2018 20:10:21 GMT):
are you talking about anchor peers

joaquimpedrooliveira (Tue, 27 Feb 2018 20:11:18 GMT):
I was asking about gossip config, but what is the impact of not defining anchor peers :)

joaquimpedrooliveira (Tue, 27 Feb 2018 20:11:19 GMT):
?

kakuzu (Tue, 27 Feb 2018 20:16:52 GMT):
list of AnchorPeers allows the peers of different organizations to contact each other for peer gossip networking.to avoid a single point of failure and to keep sync between different organization

kakuzu (Tue, 27 Feb 2018 20:16:52 GMT):
list of AnchorPeers allows the peers of different organizations to contact each other for peer gossip networking to avoid a single point of failure and to keep sync between different organization

joaquimpedrooliveira (Tue, 27 Feb 2018 20:19:14 GMT):
If I understood correctly, the orderer sends new transaction blocks to the leader peer of each org, right? So, why the need for gossip between different organizations?

kakuzu (Tue, 27 Feb 2018 20:22:52 GMT):
http://hyperledger-fabric.readthedocs.io/en/release/gossip.html look this hope it will help.

joaquimpedrooliveira (Tue, 27 Feb 2018 20:24:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s724Gmj3iCrmjmmFo) @kakuzu Thanks for your help. I'll take a look at the docs.

kakuzu (Tue, 27 Feb 2018 20:25:19 GMT):
:thumbsup:

joaquimpedrooliveira (Tue, 27 Feb 2018 20:26:38 GMT):
But, going back to the original question: my theory is that if I don't configure `CORE_PEER_GOSSIP_USELEADERELECTION/ORGLEADER`, `CORE_PEER_GOSSIP_EXTERNALENDPOINT` and `CORE_PEER_GOSSIP_BOOTSTRAP`, the default config from `core.yaml` will be applied and every peer will be defined as `ORGLEADER`, receiving the blocks directly from the orderer. Is this right?

ionionascu (Tue, 27 Feb 2018 20:42:06 GMT):
Has joined the channel.

rohitadivi (Tue, 27 Feb 2018 20:51:54 GMT):
@aatkddny @schwinnez @nickgaski Here are the instructions to make a channel config update on system channel: https://github.com/rohitadivi/Reconfigure-BYFN/blob/master/Create_channel.md

nickgaski (Tue, 27 Feb 2018 20:53:34 GMT):
thanks rohit. so guys, just run the `byfn` script followed by `eyfn` and then proceed with his instructions. We've seen them work on mac and ubuntu

pandrejko (Tue, 27 Feb 2018 21:31:54 GMT):
Has joined the channel.

yetanotheruser23 (Tue, 27 Feb 2018 23:54:54 GMT):
I had a question about the endorsement policy. Is `admin` a `member`? Or are they two separate entities?

yacovm (Tue, 27 Feb 2018 23:59:41 GMT):
yes

yacovm (Tue, 27 Feb 2018 23:59:51 GMT):
it is implicitly a member

yacovm (Wed, 28 Feb 2018 00:00:02 GMT):
they are separate entities in the implementation

yacovm (Wed, 28 Feb 2018 00:00:16 GMT):
but because of how they are implemented, for x509 MSPs - they are implictly members

yacovm (Wed, 28 Feb 2018 00:01:01 GMT):
so, you can send chaincode proposals with admin certificates

yacovm (Wed, 28 Feb 2018 00:01:13 GMT):
@yetanotheruser23

yetanotheruser23 (Wed, 28 Feb 2018 00:37:22 GMT):
So, if I have an admin and I set the endorsement policy to Org.member, an admin will still be able to endorse it right?

ben.dougherty (Wed, 28 Feb 2018 00:56:18 GMT):
@yetanotheruser23 yes, I think that is correct. I think it's touched on here - http://hyperledger-fabric.readthedocs.io/en/release/policies.html

zyc (Wed, 28 Feb 2018 01:34:07 GMT):
Has joined the channel.

debutinfotech (Wed, 28 Feb 2018 04:40:00 GMT):
@here Does anyone implemented HyperLedger Fabric & Chaincode in Java?

debutinfotech (Wed, 28 Feb 2018 06:17:37 GMT):
@here What is Endorser, Committer & Consenters? What are their roles?

sudheesh001 (Wed, 28 Feb 2018 06:39:38 GMT):
@debutinfotech The information about that is available in the documentation. Please take a look at the deep-dive in the architecture http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html

schwinnez (Wed, 28 Feb 2018 06:57:39 GMT):
@rohitadivi thanks a lot=) as far as i can see, this is exactly how to reconfigure channel but channel in this case is the system channel. =)

gxx (Wed, 28 Feb 2018 08:09:31 GMT):
Has joined the channel.

suva (Wed, 28 Feb 2018 08:12:40 GMT):
Hi All, I am successfully run the first network script. While I am doing peer version its throws me below error

suva (Wed, 28 Feb 2018 08:12:47 GMT):
panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type "" goroutine 1 [running]:

suva (Wed, 28 Feb 2018 08:13:56 GMT):
I am trying to query using peer ( The same command written in byfn.sh for query in ledger)

suva (Wed, 28 Feb 2018 08:14:25 GMT):
Also tell me where I can see the block and ledger details

suva (Wed, 28 Feb 2018 08:14:36 GMT):
Plz tell me the path where I will look

DarshanBc (Wed, 28 Feb 2018 08:36:25 GMT):
can anyone tell me command line query for this ```curl -s -X GET \ "http://localhost:4000/channels?peer=peer0.org1.example.com" \ -H "authorization: Bearer $ORG1_TOKEN" \ -H "content-type: application/json" echo```

DarshanBc (Wed, 28 Feb 2018 08:36:49 GMT):
from balance transfer example

DarshanBc (Wed, 28 Feb 2018 09:01:09 GMT):
can anyone tell me where to look for commands to get channel information through cli container

DarshanBc (Wed, 28 Feb 2018 10:10:41 GMT):
can anyone tell me what are the falgs that I need to pass to get channel info after setting these environment variables ``` export CORE_PEER_ID=peer1st-orga export CORE_PEER_ADDRESS=peer1st-orga:7051 export CORE_PEER_LOCALMSPID=orga export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/allorgs/orga/users/Admin@orga/msp ``` `peer channel getinfo ...

DarshanBc (Wed, 28 Feb 2018 10:10:41 GMT):
can anyone tell me what are the falgs that I need to pass to get channel info after setting these environment variables ``` export CORE_PEER_ID=peer1st-orga export CORE_PEER_ADDRESS=peer1st-orga:7051 export CORE_PEER_LOCALMSPID=orga export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/allorgs/orga/users/Admin@orga/msp ``` `peer channel getinfo ...`

akshay.lawange (Wed, 28 Feb 2018 11:05:20 GMT):
Hi..Getting error while running network for chaincode instantiation. is there any change docker-compose files for fabric 1.1.0-preview or alpha?

akshay.lawange (Wed, 28 Feb 2018 11:05:47 GMT):

Clipboard - February 28, 2018 4:35 PM

ben.dougherty (Wed, 28 Feb 2018 12:10:22 GMT):
@DarshanBc see https://hyperledger-fabric.readthedocs.io/en/latest/peer-commands.html

SashiKanth (Wed, 28 Feb 2018 12:36:29 GMT):
Has joined the channel.

SashiKanth (Wed, 28 Feb 2018 12:36:33 GMT):
Hi can u help with this I got this error when connecting a peer to the already exsiting fabric network, but the peer resides in different host Failed to dial 10.0.0.6:7050: connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 10.0.0.6 because it doesn't contain any IP SANs"; please retry.

yacovm (Wed, 28 Feb 2018 12:38:44 GMT):
@SashiKanth https://stackoverflow.com/questions/49024158/peers-not-joining-channel-and-error-with-tls-connection-ip-sans-error

AlanPalmer (Wed, 28 Feb 2018 13:38:55 GMT):
Has joined the channel.

AlanPalmer (Wed, 28 Feb 2018 13:39:19 GMT):
Hello Fellow Hyperledgers

AlanPalmer (Wed, 28 Feb 2018 13:39:25 GMT):
I’m new here so not sure if this the correct channel so happy to be advised. My friend and myself want to use Fabric to set up blockchain to record the details of a diamond through the supply chain journey. Any initial guidance would be appreciated.

jrosmith (Wed, 28 Feb 2018 13:57:37 GMT):
@debutinfotech please do not use @ here. it pings every on the channel. you spammed several different channels, pinging over 5000 people overnight.

dtp (Wed, 28 Feb 2018 15:12:24 GMT):
Hi there, I would like to store some data (energy readings) on the blockchain using composer. I don't get the logical aspect of it: Would the energy readings be stored as transactions? is that the right term? Thanks

jrosmith (Wed, 28 Feb 2018 15:18:08 GMT):
@dtp yes, the transaction stored on the ledger would contain the energy reading

R-J96 (Wed, 28 Feb 2018 15:57:07 GMT):
Has joined the channel.

dampuero (Wed, 28 Feb 2018 15:57:29 GMT):
Has joined the channel.

yetanotheruser23 (Wed, 28 Feb 2018 16:36:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2bkim4fHLzq28oHB5) @ben.dougherty Thank you!

yetanotheruser23 (Wed, 28 Feb 2018 16:36:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cqsANigWaADnHeHSB) @yacovm Thank you!

kakuzu (Wed, 28 Feb 2018 16:45:41 GMT):
```Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... ERROR: manifest for hyperledger/fabric-peer:latest not found ERROR !!!! Unable to start network Error response from daemon: No such container: cli ``` anyone having this issue. i have have to change latest to some version does anyone know solution other than that.

kakuzu (Wed, 28 Feb 2018 16:45:41 GMT):
```Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... ERROR: manifest for hyperledger/fabric-peer:latest not found ERROR !!!! Unable to start network Error response from daemon: No such container: cli ``` anyone having this issue. i have to change latest to some specific version ,does anyone know solution other than that.

rohitadivi (Wed, 28 Feb 2018 16:47:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XzaDz5eefDYnffLJG) @schwinnez Yes, you're right. you just need to pass in `-c testchainid` which is the default name for system channel in order to make changes to the system channel

farhadab (Wed, 28 Feb 2018 17:27:09 GMT):
Has joined the channel.

farhadab (Wed, 28 Feb 2018 18:04:29 GMT):
Hi all, I'm using the java SDK and calling org.hyperledger.fabric.sdk.HFClient.newChannel(String name, Orderer orderer, ChannelConfiguration channelConfiguration, byte[]... channelConfigurationSignatures), but in my console logs, i see that it reads "DEBUG org.hyperledger.fabric.sdk.Channel - Creating channel: SYSTEM_CHANNEL, client context Admin", which is only possible if the Channel(String name, HFClient client, final boolean systemChannel) constructor is called, which can't seem to be the case given the specific newChannel() i mentioned. I'm trying to debug the same problem as brought up in https://stackoverflow.com/questions/45573727/hyperledger-fabric-1-0-how-to-get-channel-by-name?rq=1. The log i mentioned implies a SYSTEM_CHANNEL is created. I'm wondering how this is possible in order to continue debugging the aforementioned problem. Thanks.

aatkddny (Wed, 28 Feb 2018 18:30:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C3KuaJuA5c9SgTgTe) @rohitadivi So I just got round to this. I'm getting `error validating DeltaSet: invalid mod_policy for element [Group] /Channel/Consortiums/AllMemberConsortium: mod_policy not set` on the final update. I"m sure it's a config issue, but Googling isn't giving me anything useful. Anyone know what's missing?

schwinnez (Wed, 28 Feb 2018 18:40:04 GMT):
hey again, last time to bother you with that ;-) I did the channel update with configtxlator first. It works quite okay, except the json merge of the old config with the new. I can merge them manually (then everything is okay) but using jq i fail. Here comes the command and the json docs: `jq -s '.[0]*{"channel_group":{"groups":{"Application":{"groups": {"TestchannelMSP": .[1]}}}}}'` ``

schwinnez (Wed, 28 Feb 2018 18:41:18 GMT):
`{ "groups": {}, "mod_policy": "Admins", "policies": { "Admins": { "mod_policy": "Admins", "policy": { "type": 1, "value": { "identities": [ { "principal": { "msp_identifier": "TestchannelMSP", "role": "ADMIN" }, "principal_classification": "ROLE" } ], "rule": { "n_out_of": { "n": 1, "rules": [ { "signed_by": 0 } ] } }, "version": 0 } }, "version": "0" }, "Readers": { "mod_policy": "Admins", "policy": { "type": 1, "value": { "identities": [ { "principal": { "msp_identifier": "TestchannelMSP", "role": "MEMBER" }, "principal_classification": "ROLE" } ], "rule": { "n_out_of": { "n": 1, "rules": [ { "signed_by": 0 } ] } }, "version": 0 } }, "version": "0" }, "Writers": { "mod_policy": "Admins", "policy": { "type": 1, "value": { "identities": [ { "principal": { "msp_identifier": "TestchannelMSP", "role": "MEMBER" }, "principal_classification": "ROLE" } ], "rule": { "n_out_of": { "n": 1, "rules": [ { "signed_by": 0 } ] } }, "version": 0 } }, "version": "0" } },`

schwinnez (Wed, 28 Feb 2018 18:42:11 GMT):
sorry i think json is to long. but from a first look at them, the look compatible oO

rohitadivi (Wed, 28 Feb 2018 18:44:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9h46Bjtju4uWE3Pt2) @aatkddny In this command ``` jq -s '.[0] * {"channel_group":{"groups":{"Consortiums":{"groups": {"SampleConsortium": {"groups": {"Org3MSP":.[1]}}}}}}}' sys_config.json ./channel-artifacts/org3.json >& sys_updated_config.json ``` did you change *SampleConsortium* to *AllMemberConsortium* as per your configuration?

rohitadivi (Wed, 28 Feb 2018 18:51:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W3EhoD9FnGGf4Kmdp) @schwinnez Can you check if the params you're passing are properly framed i.e. org3.json and whether they are mounted from the right directory?

rohitadivi (Wed, 28 Feb 2018 18:51:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W3EhoD9FnGGf4Kmdp) @schwinnez Can you check if the params you're passing are properly formatted i.e. org3.json and whether it is mounted from the right directory?

aatkddny (Wed, 28 Feb 2018 18:58:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fdmMJnyvXhc7oECgh) @rohitadivi Yes.

aatkddny (Wed, 28 Feb 2018 18:58:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fdmMJnyvXhc7oECgh) @rohitadivi Yes. I also have a custom name for the system channel and I changed all those too.

aatkddny (Wed, 28 Feb 2018 18:58:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fdmMJnyvXhc7oECgh) @rohitadivi Yes. I also have a custom name for the system channel and I changed all those too.

aatkddny (Wed, 28 Feb 2018 18:58:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fdmMJnyvXhc7oECgh) @rohitadivi Yes. I also have a custom name for the system channel and I changed all those too. Edit: Apologies - I'm an idiot. Had a typo. Works fine now, and I do appreciate the help.

schwinnez (Wed, 28 Feb 2018 19:05:11 GMT):
@rohitadivi well i managed in manually merging them. so it looks good. But i don't know what the jq multiplication exactly tries to do and why it is not working for my case. I will have a closer look again.

schwinnez (Wed, 28 Feb 2018 19:05:44 GMT):
ah btw. one file is with tabs and one only using spaces. could this make the difference?

schwinnez (Wed, 28 Feb 2018 19:18:14 GMT):
okay. i can not really se the problem. I put the files here. maybe you can find the issue? https://github.com/chtinnes/samples

TBiehn (Wed, 28 Feb 2018 20:01:20 GMT):
Has joined the channel.

TBiehn (Wed, 28 Feb 2018 20:03:48 GMT):
Hey Fabric Questions

TBiehn (Wed, 28 Feb 2018 20:04:13 GMT):
fabric-samples/chaincode/chaincode_example02/chaincode_example02.go does some mysterious things with reply construction

TBiehn (Wed, 28 Feb 2018 20:04:49 GMT):
is constructing replies like;LN189 jsonResp := "{\"Name\":\"" + A + "\",\"Amount\":\"" + string(Avalbytes) + "\"}" considered idiomatic?

schwinnez (Wed, 28 Feb 2018 20:06:45 GMT):
Okay solved my problem. it must have been a jq bug. Version jq 1.3. lead to the problem, jq 1.5. everything fine =) maybe you could add this version requirement to the manual? (@rohitadivi)

trixromero (Wed, 28 Feb 2018 20:16:46 GMT):
Has joined the channel.

AdnanC (Wed, 28 Feb 2018 20:23:56 GMT):
is https://gerrit.hyperledger.org/ down for anyone else?

yacovm (Wed, 28 Feb 2018 20:25:14 GMT):
@TBiehn you mean - why isn't this encoded properly and encoded using awkward manual JSON construction?

TBiehn (Wed, 28 Feb 2018 20:31:06 GMT):
@yacovm - right

yacovm (Wed, 28 Feb 2018 20:31:32 GMT):
oh, I guess no one bothered to use maps and the json package

yacovm (Wed, 28 Feb 2018 20:31:44 GMT):
if you want, you can submit a change set to fix it

TBiehn (Wed, 28 Feb 2018 20:32:32 GMT):
yeah, so, that's the second part of the question

TBiehn (Wed, 28 Feb 2018 20:32:40 GMT):
if we were to fix the examples, what would be considered idiomatic

TBiehn (Wed, 28 Feb 2018 20:32:43 GMT):
use of the json package?

kakuzu (Wed, 28 Feb 2018 20:32:45 GMT):

Clipboard - February 28, 2018 3:31 PM

yacovm (Wed, 28 Feb 2018 20:33:16 GMT):
for example: https://gobyexample.com/json

yacovm (Wed, 28 Feb 2018 20:33:23 GMT):
or the example in https://golang.org/pkg/encoding/json/

rohitadivi (Wed, 28 Feb 2018 21:20:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pAbopaz5Qw95vHbhq) @schwinnez sure, I will include that :)

kakuzu (Wed, 28 Feb 2018 22:17:46 GMT):
when the transaction fails where does it get logged.

yacovm (Wed, 28 Feb 2018 22:31:35 GMT):
in the log

kakuzu (Wed, 28 Feb 2018 22:39:36 GMT):
ok so it does not go in blockchain i saw some video guy was saying logged in blockchain got confused, thanks

kakuzu (Wed, 28 Feb 2018 22:40:31 GMT):
hey @yacovm do you have time 5 min

yacovm (Wed, 28 Feb 2018 22:40:36 GMT):
if the transaction is not valid

yacovm (Wed, 28 Feb 2018 22:40:42 GMT):
it is not logged in the blockchain

yacovm (Wed, 28 Feb 2018 22:40:52 GMT):
because the blockchain only contains pre-validated transactions

kakuzu (Wed, 28 Feb 2018 22:40:59 GMT):
yeah. i understand i can look up in Kafka container

yacovm (Wed, 28 Feb 2018 22:41:00 GMT):
each peer validates transactions itself

kakuzu (Wed, 28 Feb 2018 22:41:10 GMT):
yeah. sure

kakuzu (Wed, 28 Feb 2018 22:41:39 GMT):
could you look a the snap I shared?

kakuzu (Wed, 28 Feb 2018 22:42:32 GMT):

Clipboard - February 28, 2018 3_31 PM.png

kakuzu (Wed, 28 Feb 2018 22:42:59 GMT):
@yacovm what are the first 3 containers for . dev.peer1.

kakuzu (Wed, 28 Feb 2018 22:43:15 GMT):
do you have idea about it

kakuzu (Wed, 28 Feb 2018 22:43:44 GMT):
?

yacovm (Wed, 28 Feb 2018 22:44:19 GMT):
@kakuzu

yacovm (Wed, 28 Feb 2018 22:44:35 GMT):
each peer puts inside the block, an indicator for each transaction

yacovm (Wed, 28 Feb 2018 22:44:41 GMT):
its status (valid / not valid)

yacovm (Wed, 28 Feb 2018 22:44:50 GMT):
but it is only locally in each peer

yacovm (Wed, 28 Feb 2018 22:45:01 GMT):
so, the orderer sends the blocks that are pre-validated

yacovm (Wed, 28 Feb 2018 22:45:16 GMT):
and the peer validates, and adds these indicators to the blocks when it writes them to the file system

TsuiSauChi (Wed, 28 Feb 2018 22:46:02 GMT):
@kakuzu they are the chaincode conatiner https://stackoverflow.com/questions/45728688/what-is-chaincode-container-in-hyperledger-fabric

kakuzu (Wed, 28 Feb 2018 22:46:20 GMT):
no i am asking that dev.peer1.org2.example.com-mycc-1.0

kakuzu (Wed, 28 Feb 2018 22:46:31 GMT):
ok i will look at the link and come back thanks

kakuzu (Wed, 28 Feb 2018 22:50:32 GMT):
got those are chaincode container

kakuzu (Wed, 28 Feb 2018 22:50:32 GMT):
got it those are chaincode container

ArnabChatterjee (Thu, 01 Mar 2018 00:40:54 GMT):
Hello Fabric Experts. Thank you for your support. I was looking and the documentation while I stumbled across this http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html#message-patterns. I have learnt that it is possible to specify the `anchor` (read versions to use) in the `` (with anchor) I was wondering how the `anchor` can be passed to other peers for endorsement. Also, in what scenarios would I want to use such a feature. Thanks. :)

ArnabChatterjee (Thu, 01 Mar 2018 00:40:54 GMT):
Hello Fabric Experts. Thank you for your support. I was looking and the documentation while I stumbled across this http://hyperledger-fabric.readthedocs.io/en/release/arch-deep-dive.html#message-patterns. I have learnt that it is possible to specify the `anchor` (read versions to use) in the `` (with anchor). I was wondering how the `anchor` can be passed to other peers for endorsement. Also, in what scenarios would I want to use such a feature. Thanks. :)

bengwb (Thu, 01 Mar 2018 01:48:27 GMT):
Has joined the channel.

zyc (Thu, 01 Mar 2018 02:44:06 GMT):
hi,experts;I have a question when I run the ./byfn.sh - m up 2018-03-01 02:39:23.580 UTC [main] main -> INFO 001 Exiting..... LOCAL_VERSION=1.1.0-alpha DOCKER_IMAGE_VERSION=1.1.0-alpha ERROR! Local Fabric binary version of 1.1.0-alpha does not match this newer version of BYFN and is unsupported. Either move to a later version of Fabric or checkout an earlier version of fabric-samples.

TobiasN (Thu, 01 Mar 2018 02:55:10 GMT):
Has joined the channel.

aatkddny (Thu, 01 Mar 2018 02:59:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W83m6oifbuJAbbrqm) @zyc revisit this: http://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries

zyc (Thu, 01 Mar 2018 03:08:09 GMT):
@aatkddny I have visit this page , but I don't know the meaning of this : git checkout{TAG}. Is a wrong version?

changfeifan (Thu, 01 Mar 2018 03:09:17 GMT):
Has joined the channel.

aatkddny (Thu, 01 Mar 2018 03:09:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=os57T9ufjummWbM6u) @zyc Keep reading. Pay particular attention to the part that has this `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-alpha` in it

changfeifan (Thu, 01 Mar 2018 03:10:27 GMT):
Hi all,I have a problem when i startup the first-network. Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again/

changfeifan (Thu, 01 Mar 2018 03:11:15 GMT):
did anyone solve this error?

zyc (Thu, 01 Mar 2018 03:15:47 GMT):

2018-03-01 11-12-59屏幕截图.png

zyc (Thu, 01 Mar 2018 03:15:59 GMT):

2018-03-01 11-13-24屏幕截图.png

zyc (Thu, 01 Mar 2018 03:17:43 GMT):
@aatkddny I just start learning the fabric, I don't find the problem

changfeifan (Thu, 01 Mar 2018 03:24:24 GMT):
Hi all,I have a problem when i startup the first-network. Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again/

zyc (Thu, 01 Mar 2018 03:25:26 GMT):
@aatkddny thanks for your help ,i have find the problem,i will try another version

tylerw 3 (Thu, 01 Mar 2018 03:34:37 GMT):
Has joined the channel.

changfeifan (Thu, 01 Mar 2018 03:38:30 GMT):
hi all, can you run the example network on your pc? my mate and I can not run the examples from the latest git code.

changfeifan (Thu, 01 Mar 2018 03:40:32 GMT):
This problem has plagued us for a long time

changfeifan (Thu, 01 Mar 2018 03:40:57 GMT):
Please help us ,thank you

amolpednekar (Thu, 01 Mar 2018 04:25:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CzAAyxiZwqu9DJeZs) @changfeifan The error is pretty self explanatory, make sure you have instantiated your chaincode and not just installed it. Command examples - http://hyperledger-fabric.readthedocs.io/en/release/install_instantiate.html

uma94 (Thu, 01 Mar 2018 05:30:12 GMT):
Has joined the channel.

NakaoK (Thu, 01 Mar 2018 07:15:03 GMT):
Has joined the channel.

suva (Thu, 01 Mar 2018 08:41:43 GMT):
Running peer help giving me below error

suva (Thu, 01 Mar 2018 08:41:44 GMT):
panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type "" goroutine 1 [running]: panic(0xba6880, 0xc4201c8460) /opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1 main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852

suva (Thu, 01 Mar 2018 08:41:53 GMT):
plz somebody help?

suva (Thu, 01 Mar 2018 08:42:07 GMT):
I have downloaded the core.yaml file in peer directory

suva (Thu, 01 Mar 2018 08:42:16 GMT):
but still getting the same error

suva (Thu, 01 Mar 2018 09:08:06 GMT):
suva 2:20 PM can some body help how to intialize core.yaml file with peer in hyperledger fabric

javakamal1 (Thu, 01 Mar 2018 09:13:26 GMT):
Has joined the channel.

Yakechi (Thu, 01 Mar 2018 09:49:32 GMT):
Has joined the channel.

SashiKanth (Thu, 01 Mar 2018 10:25:57 GMT):
does fabric v1.1.0-alpha support chaincodes in java

SashiKanth (Thu, 01 Mar 2018 10:25:59 GMT):
??

suva (Thu, 01 Mar 2018 12:48:11 GMT):
plz help me how to check peer version in hyperledger fabric. I am getting the error reading core config file

darapich92 (Thu, 01 Mar 2018 12:51:05 GMT):
Has joined the channel.

darapich92 (Thu, 01 Mar 2018 12:54:51 GMT):
Hi all, now i try hyperledger sample and work well with v1.1.0-alpha but when i want to create and join channel, it showed error.i hope anybody can help me. This error has even i change Channelname.

darapich92 (Thu, 01 Mar 2018 12:55:29 GMT):

Capture (1).PNG

waleed (Thu, 01 Mar 2018 13:24:35 GMT):
Hi folks :) Is it possible to run peers, orderers, etc... witout docker? I mean native.

aatkddny (Thu, 01 Mar 2018 13:34:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZZFHBWMjMH2A75DDx) @darapich92

aatkddny (Thu, 01 Mar 2018 13:34:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZZFHBWMjMH2A75DDx) @darapich92 I think the version piece means the channel already exists. Try starting over again.

darapich92 (Thu, 01 Mar 2018 13:39:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=85MKgCTW73y9j8cJz) @aatkddny I try to start many times, since the part of 'Want to Run?' Until 'Start Your Network' in this link http://hyperledger-fabric.readthedocs.io/en/master/build_network.html

darapich92 (Thu, 01 Mar 2018 13:40:27 GMT):
At first, i choose 'mychannel' then i change my channel name to 'testingchannel', it still show error. i try to deal many days without any result.

aatkddny (Thu, 01 Mar 2018 14:08:40 GMT):
did you create a new channel config?

aatkddny (Thu, 01 Mar 2018 14:08:40 GMT):
did you create a new channel config file with configtxgen for the new channel name? you can't just change the name and run the same file.

changfeifan (Thu, 01 Mar 2018 14:16:03 GMT):
@amolpednekar I've writed the instantiate at `script.sh` and when I `./network_setup.sh`I can see the docker images already but the error also appeared.thank you for your answer

changfeifan (Thu, 01 Mar 2018 14:19:00 GMT):
When I see the logs in cli ,the log is ```2018-03-01 14:03:14.097 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory] 2018-03-01 14:03:14.097 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2018-03-01 14:03:14.097 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory] Error: Error getting endorser client chaincode: PER:404 - Error trying to connect to local peer /opt/gopath/src/github.com/hyperledger/fabric/peer/common/common.go:107 github.com/hyperledger/fabric/peer/common.GetEndorserClient /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/common.go:250 github.com/hyperledger/fabric/peer/chaincode.InitCmdFactory /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/query.go:50 github.com/hyperledger/fabric/peer/chaincode.chaincodeQuery /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/query.go:35 github.com/hyperledger/fabric/peer/chaincode.queryCmd.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:117 main.main /opt/go/src/runtime/proc.go:192 runtime.main /opt/go/src/runtime/asm_amd64.s:2087 runtime.goexit Caused by: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org1.example.com")```

changfeifan (Thu, 01 Mar 2018 14:19:47 GMT):
Is it the problem of docker?

gut (Thu, 01 Mar 2018 14:26:15 GMT):
@waleed I'm not sure about the possibility to run orderers/peers oustide a Docker. At least some months ago docker/docker-compose were mandatory to run Chaincodes. You can review Cello project state in case it can help you. That said, why should you need to run natively the peers? Docker helps you with the management, and there are no direct conflicts with its use.

changfeifan (Thu, 01 Mar 2018 14:28:48 GMT):

Clipboard - March 1, 2018 10:28 PM

gut (Thu, 01 Mar 2018 14:32:20 GMT):
I also have a question. Nowadays I have deployed an environment with 3 organizations. Each one has a domain and a certificate. Each one has an administrator who is in charge of accessing the ledger info. That information is showed at a frontend, where he can manage via forms. Now, the use case has changed, and organizations will also have supervisors (or any other role) to access different information of an organization. In this scenario, *how do you manage different users for an organization?* Any help welcome

waleed (Thu, 01 Mar 2018 14:33:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xXo22SJEdt56iD5Tw) @gut thanks for your answer. I have a fabric network and I want to run every Container on different computers and because of that I don't see the need to use Docker

waleed (Thu, 01 Mar 2018 14:33:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xXo22SJEdt56iD5Tw) @gut thanks for your answer. I have a fabric network and I want to run every Container on different computer and because of that I don't see the need to use Docker

darapich92 (Thu, 01 Mar 2018 14:44:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Qcfw8QeEBqwYsitJ) @aatkddny Sorry i am new in hyperledger, these are the code that i execute: echo y | ./byfn.sh -m generate echo y | ./byfn.sh -m up echo y | ./byfn.sh -m down ../bin/cryptogen generate --config=./crypto-config.yaml export FABRIC_CFG_PATH=$PWD ../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block export CHANNEL_NAME=testingchannel && ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME ../bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP ../bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org2MSP docker-compose -f docker-compose-cli.yaml up -d docker start cli docker exec -it cli bash export CHANNEL_NAME=testingchannel peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Can you check and please give me a commend. At the beginning i run byfn.sh file with the channel name "mychannel". then i create new with new name "testingchannel".

darapich92 (Thu, 01 Mar 2018 14:49:10 GMT):
I think i had created a new channel with configtxgen.

Elulup (Thu, 01 Mar 2018 14:50:39 GMT):
Has joined the channel.

Elulup (Thu, 01 Mar 2018 14:53:23 GMT):
Hi, not sure it's the right place to ask this but are channels still relevant when using Hyperledger Composer and particularly the Access Control which manages reading rights ? As I understood channels are existing to avoid a complete transparency of the ledger, thing that the access control file does am I right ?

hesanchez (Thu, 01 Mar 2018 14:58:30 GMT):
Has joined the channel.

hesanchez (Thu, 01 Mar 2018 14:58:58 GMT):
Hello everyone. I am a new developer in Hyperledger-Fabric, and I have some doubts. Where are the transactions stored? Where are the blocks stored? Where are the peers stored?

gut (Thu, 01 Mar 2018 14:59:19 GMT):
@waleed I also have different peers scattered on VMs, but I didn't feel like killing Docker. I'm sorry I can't help you beyond this point. Anyway, the easy path to install Fabric in any scenario goes through installing Docker, and then you simply map your IP/DN to the container running your code. I don't think that Docker is adding any significant overhead to your VM, and it makes it more manageable. But as I said, maybe Cello is your allied.

gut (Thu, 01 Mar 2018 15:02:36 GMT):
@Elulup you can try asking at #composer channel. Beside, I'm not composer developer and I didn't checked it, but you may be a one Google search from the response (https://stackoverflow.com/questions/47882334/channels-in-hyperlerdger-composer) :P

Elulup (Thu, 01 Mar 2018 15:07:03 GMT):
Thank you !

Alcabal88 (Thu, 01 Mar 2018 15:07:40 GMT):
Hello everyone. I am a new developer in Hyperledger-Fabric, and I have some doubts. Where are the transactions stored? Where are the blocks stored? Where are the peers stored?

kakuzu (Thu, 01 Mar 2018 15:34:57 GMT):
check the docker specs and volume path it will show the location of. Every peer have its blockchain.

Alcabal88 (Thu, 01 Mar 2018 15:35:49 GMT):
@kakuzu tnks for your answer.... I'm gonna check that

kakuzu (Thu, 01 Mar 2018 15:36:04 GMT):
welcome.

JLyon (Thu, 01 Mar 2018 15:50:59 GMT):
Has joined the channel.

tmkaranraj (Thu, 01 Mar 2018 15:54:18 GMT):
Hello all

tmkaranraj (Thu, 01 Mar 2018 15:55:22 GMT):
I am trying to setup Hyperledger Fabric dev environment on AWS

tmkaranraj (Thu, 01 Mar 2018 15:55:49 GMT):
So that my peers can use it too as I will will be giving permissions to them

tmkaranraj (Thu, 01 Mar 2018 15:55:55 GMT):
my question is

tmkaranraj (Thu, 01 Mar 2018 15:56:06 GMT):
Can I load Fabric on AMI ?

tmkaranraj (Thu, 01 Mar 2018 15:56:18 GMT):
if yes, can someone help me on how to do it

SKDHANUKA (Thu, 01 Mar 2018 16:15:46 GMT):
Has joined the channel.

Alcabal88 (Thu, 01 Mar 2018 16:16:41 GMT):
@kakuzu where can I found the docker specs? I'm google it but I think I'm lost

AndrewRy 1 (Thu, 01 Mar 2018 16:28:31 GMT):
Has joined the channel.

wbhagan (Thu, 01 Mar 2018 16:35:49 GMT):
Hello All, I'm curious, what are the implications of having one logical organisation with multiple peers belonging to different physical organisations? Basically, as I try to come up to speed with HLF, I am also running different architectural designs in my head. Should it be 1 organisation (say belonging to a regulator) with multiple peers (belonging to organisations being regulated)? Or should each physical organisation have their own logical organisation and associated peers? etc Regards

wbhagan (Thu, 01 Mar 2018 16:40:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3AjAQJXG6ogYnnfFd) @Alcabal88 If you have downloaded the Hyperledger project/binaries, you should see docker-compose-*.yaml files. These files contain the information you need.

Alcabal88 (Thu, 01 Mar 2018 16:44:18 GMT):
tnks @wbhagan

SethiSaab (Thu, 01 Mar 2018 19:17:10 GMT):
hi team i am getting error while enrolling admin user ... .when i run this command node enrollAdmin.js i get the following error Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/rio/Public/IBM HyperLedger Playground/HyperLedger Fbric Sample Apps/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at ClientRequest.emit (events.js:127:13) at Socket.socketErrorListener (_http_client.js:394:9) at Socket.emit (events.js:127:13) at emitErrorNT (internal/streams/destroy.js:64:8) at process._tickCallback (internal/process/next_tick.js:152:19) Failed to enroll admin: Error: Failed to enroll admin

kakuzu (Thu, 01 Mar 2018 19:20:39 GMT):
i am running the BYN but my ca docker are not coming up

kakuzu (Thu, 01 Mar 2018 19:23:49 GMT):
i was getting error for ```latest not found``` so i updated images to specific version. Does it broke some thing

iperrota (Thu, 01 Mar 2018 19:40:55 GMT):
Has joined the channel.

iperrota (Thu, 01 Mar 2018 19:41:42 GMT):
Hi! I have a problem to exec create_channel.sh, the script didn't finish and print the message Wating for Createchanel to be completed

ravig-kant (Fri, 02 Mar 2018 00:50:33 GMT):
Has joined the channel.

e-nikolov (Fri, 02 Mar 2018 00:59:40 GMT):
In my project, currently if a chaincode invocation takes longer than 10 seconds, it gets timed out. I would like to increase this timeout, does anyone know if it can be adjusted and if so, should it be done in the config of the network or via the SDK?

SaiChaitanya (Fri, 02 Mar 2018 01:20:29 GMT):
Has joined the channel.

SaiChaitanya (Fri, 02 Mar 2018 01:21:00 GMT):

peer0.org1.example.com

SaiChaitanya (Fri, 02 Mar 2018 01:22:06 GMT):
Hi everyone, i started the first-network from the fabric-examples. I've been stumped with the lines that say peer0.org1.example.com starting twice. and peer0.org2.example.com is not started? It looks like a typo most likely.

SaiChaitanya (Fri, 02 Mar 2018 01:22:43 GMT):
Can anyone please clarify that this is not an issue?

ArnabChatterjee (Fri, 02 Mar 2018 01:31:46 GMT):
Dear Fabric Experts. I am inviting you to please review my document on Chaincode writing guidelines. https://github.com/arnabkaycee/fabric-tools. Please feel free to comment and let me know your feedback. Thank you.

nagarajants (Fri, 02 Mar 2018 01:52:33 GMT):
hello had a quick question I have data in channel1 that I need to move to channel2 wanted to understand how to go about it

ArnabChatterjee (Fri, 02 Mar 2018 01:56:37 GMT):
@e-nikolov - You can refer to my previous post. https://chat.hyperledger.org/channel/fabric-questions?msg=GcKHchmqv8k8Cs54q

Ryan2 (Fri, 02 Mar 2018 04:42:04 GMT):
Hi, I have this endorsement policy "AND ('Org0MSP.member')" is this mean that it require any member of Org0 signs this proposal is OK (just only one member signing is considered valid proposal) or require all member of Org0 signs this proposal?

changfeifan (Fri, 02 Mar 2018 05:13:08 GMT):

Clipboard - March 2, 2018 1:12 PM

changfeifan (Fri, 02 Mar 2018 05:13:28 GMT):
@amolpednekar this is position i

changfeifan (Fri, 02 Mar 2018 05:14:43 GMT):
i‘ve already instantiation the chaincode on channel “mychannel”

changfeifan (Fri, 02 Mar 2018 05:15:38 GMT):
and the problem also exist。

uLan08 (Fri, 02 Mar 2018 06:40:21 GMT):
Has joined the channel.

uLan08 (Fri, 02 Mar 2018 06:45:16 GMT):
I just finished http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html, so are there any list of existing chaincodes that I can play around with rather than me building them from the ground up? I don't mind building one but if there's one that already exists then why not.

uLan08 (Fri, 02 Mar 2018 06:45:16 GMT):
I just finished http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html, so are there any list of existing chaincodes that I can play around with rather than me building them from the ground up? I don't mind building one but if there's one that already exists for my use case then why not.

uLan08 (Fri, 02 Mar 2018 06:46:43 GMT):
I haven't checked out how to build a chaincode yet. Could it be that building one is very easy?

uLan08 (Fri, 02 Mar 2018 06:54:55 GMT):
any good tutorials out there that would help guide me building an application from the ground up?

pauldev (Fri, 02 Mar 2018 09:35:25 GMT):
Has joined the channel.

Quevin (Fri, 02 Mar 2018 10:12:00 GMT):
Has joined the channel.

Quevin (Fri, 02 Mar 2018 10:12:18 GMT):
Hi, I am new to working with Hyperledger Fabric, I got a general question about which coding languages are supported for chaincode. According to the documentation it's "The Go Programming Language", but i'm also searching on StackOverflow, which provides me with different responses. Are multiple coding languages supported, or are they still being developed, if so which onces?

Taffies (Fri, 02 Mar 2018 11:05:01 GMT):
hi! i just tried to change my batch timeout variable (using kafka orderer) to see if it affects the amount of time it takes to invoke a transaction but i realized that the time taken remains the same, i.e. my batch timeout isn't updated at all! has anyone faced similar issues before?

MuhammadSalah (Fri, 02 Mar 2018 11:47:35 GMT):
Hello everyone; does anyone know where is the file system that a PEER uses?

MuhammadSalah (Fri, 02 Mar 2018 11:47:53 GMT):
To store actual blocks on.

SashiKanth (Fri, 02 Mar 2018 11:54:06 GMT):
does fabric v1.1.0-rc1 support chaincode in nodejs

gut (Fri, 02 Mar 2018 12:02:25 GMT):
Has anyone more than one user per org? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sScEbNfYYwPseFYcz)

Adeel Qureshi (Fri, 02 Mar 2018 12:40:05 GMT):
Has joined the channel.

Adeel Qureshi (Fri, 02 Mar 2018 12:42:13 GMT):
@Quevin : I believe ChainCode can be written in 'GoLang' as well as 'JavaScript' using the NodeJS Libraries. Javascript got introduced in v1.1 recently

Adeel Qureshi (Fri, 02 Mar 2018 12:43:23 GMT):
Here is the mailing list announcement about the v1.1 candidate release which also mentions how both GoLang and NodeJS is supported for writing ChainCode .. https://lists.hyperledger.org/pipermail/hyperledger-fabric/2018-March/002934.html

Adeel Qureshi (Fri, 02 Mar 2018 12:44:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eFjhcRoJS8FJRGnmx) @SashiKanth .. Yes it does checkout the features summary at : https://lists.hyperledger.org/pipermail/hyperledger-fabric/2018-March/002934.html

Exci (Fri, 02 Mar 2018 13:08:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zo5T8RP8YhrjCWZpJ) @MuhammadSalah /var/hyperledger/production/

tsuberg (Fri, 02 Mar 2018 13:09:31 GMT):
Has joined the channel.

MuhammadSalah (Fri, 02 Mar 2018 13:10:08 GMT):
@exci thank you

kevinstr (Fri, 02 Mar 2018 14:59:55 GMT):
Has joined the channel.

kakuzu (Fri, 02 Mar 2018 15:31:04 GMT):

Clipboard - March 2, 2018 10:30 AM

tejpowar (Fri, 02 Mar 2018 16:07:51 GMT):
Has joined the channel.

tejpowar (Fri, 02 Mar 2018 16:08:16 GMT):
Hey guys

tejpowar (Fri, 02 Mar 2018 16:09:33 GMT):
trying to decide between sawtooth and fabric? Probably a common question but what would be the benefit of each. Im more developing for business processes so transactions can be found quicker

vishwak (Fri, 02 Mar 2018 16:21:06 GMT):
Has joined the channel.

kevinstr (Fri, 02 Mar 2018 16:44:57 GMT):
Hello, I've got a very general question. Is it possible to create smart contract together with my own token? For example, if certain requirements of the contract are met, the receiver gets x amount of tokens

kakuzu (Fri, 02 Mar 2018 16:48:39 GMT):
yeah but you need to check all that off the smart contract. by subscribing to events.

kevinstr (Fri, 02 Mar 2018 16:55:17 GMT):
sorry i'm a beginner, subscribing to events? didn't know there were events in a blockchain!

Rmannn (Fri, 02 Mar 2018 17:00:17 GMT):
Has joined the channel.

Rmannn (Fri, 02 Mar 2018 17:00:24 GMT):
Hi, Can someone say me where can I find a complete configtx.yml with all possible keys/values ? I want to create an organisation that will be admin in the network, but I do not know how to do it.

Evans347 (Fri, 02 Mar 2018 17:25:33 GMT):
Hello, I am trying to run the sample of first network. After installing chaincode, I am able launch the chaincode containers on three peers by running a query. However, for the fourth one, always got error. Want to know how to verify whether the chaincode has been installed successfully on a specific peer.

Evans347 (Fri, 02 Mar 2018 17:39:01 GMT):
here is the error:

Evans347 (Fri, 02 Mar 2018 17:39:10 GMT):

Clipboard - March 2, 2018 12:39 PM

vsadriano (Fri, 02 Mar 2018 17:51:56 GMT):
Hi! I'm running Fabric Tools container with a non-root application user to generate crypto (cryptogen) and config (configtxgen) artifacts and I'm getting the error bellow: ```shell panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4de77a] goroutine 1 [running]: panic(0x7aa1a0, 0xc420012040) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420051200, 0x32, 0x0, 0x0, 0xc420011fa0, 0x14) /opt/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:168 +0x20a main.generatePeerOrg(0x7f8889, 0xd, 0xc420013558, 0x7, 0xc420013580, 0xe, 0x7f5f5b, 0x2, 0xc420011f40, 0x11, ...) /opt/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:405 +0x5f2 main.generate() /opt/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:263 +0x1ce main.main() /opt/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:212 +0x262 ``` Any idea?

balakrishna.devasani (Fri, 02 Mar 2018 19:02:18 GMT):
Has joined the channel.

balakrishna.devasani (Fri, 02 Mar 2018 19:02:46 GMT):
Hi Team, I am facing this error when query transaction is triggered (Query will return around 15mb of data). chaincode error logs: GetAssetLatestEvents(): GetList operation failed. Error : [6c910f34]No ledger context for GetStateByRange. Sending ERROR 2018-03-02 18:32:55.807 UTC [shim] handleQueryStateClose -> ERRO 167cc [6c910f34]Received ERROR 2018-03-02 18:32:55.809 UTC [shim] handleQueryStateClose -> ERRO 167cd [6c910f34]Received ERROR 2018-03-02 18:32:55.809 UTC [shim] handleQueryStateClose -> ERRO 167ce [6c910f34]Received ERROR Peer error log: TRUNCATED>>17c35 [[6c910f34 ERROR]]Failed to get transaction context. Sending %!s(MISSING) 2018-03-02 18:32:58.241 UTC [chaincode] 2 -> ERRO 17c36 [[6c910f34 ERROR]]Failed to get transaction context. Sending %!s(MISSING) 2018-03-02 18:32:58.241 UTC [chaincode] 2 -> ERRO 17c37 [[6c910f34 ERROR]]Failed to get transaction context. Sending %!s(MISSING) 2018-03-02 18:32:58.241 UTC [chaincode] 2 -> ERRO 17c38 [[6c910f34 ERROR]]Failed to get transaction context. Sending %!s(MISSING) NodeJs logs: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction) at new createStatusError (/home/bala/work_dir/src/github.com/hyperledger/fab-gc/temp_hardware/BEAM/node_modules/grpc/src/client.js:64:15) at /home/bala/work_dir/src/github.com/hyperledger/fab-gc/temp_hardware/BEAM/node_modules/grpc/src/client.js:583:15 can anyone help, how to solve this issue ?

igetgames (Fri, 02 Mar 2018 19:26:35 GMT):
Has joined the channel.

Evans347 (Fri, 02 Mar 2018 19:39:56 GMT):
Team, please forget my previous question. Problem was fixed by removing the chaincode in folder /var/hyperledger/production/chaincodes on the peer container and reinstalling the chaincode from the cli container.

saritta3 (Fri, 02 Mar 2018 20:17:56 GMT):
Has joined the channel.

saritta3 (Fri, 02 Mar 2018 20:18:25 GMT):
Hi all..where do i go to find devs willing to join my project?

saritta3 (Fri, 02 Mar 2018 20:19:45 GMT):
www.trustabit.io is the project contact me here if you are interested saritta@trustabit.io

jcap (Fri, 02 Mar 2018 21:00:37 GMT):
Has joined the channel.

vieiramanoel (Fri, 02 Mar 2018 21:11:31 GMT):
Hi all! I'm using 1.1.0-alpha image for cli but when I try to `configtxlator proto_decode --input config_block.pb --type common.Block --output config_block.json` i got `configtxlator: error: expected command but got "proto_decode", try --help`

yacovm (Fri, 02 Mar 2018 21:14:47 GMT):
I just compiled configtxlator from latest master and the command worked for me... :thinking:

yacovm (Fri, 02 Mar 2018 21:15:33 GMT):
@jyellick did you fix any bug in that since \[ \alpha \]

yacovm (Fri, 02 Mar 2018 21:15:33 GMT):
@jyellick did you fix any bug in that since alpha?

jyellick (Fri, 02 Mar 2018 21:16:15 GMT):
@vieiramanoel The `proto_decode` option was an enhancement added after alpha. Please try rc1

vieiramanoel (Fri, 02 Mar 2018 21:16:41 GMT):
nice! thanks!

vieiramanoel (Fri, 02 Mar 2018 22:18:22 GMT):
following the tutorial for adding a new org to channel at `peer channel update` I got the error on cli ```Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel ```, at orderer the message is: ```2018-03-02 22:16:08.503 UTC [orderer/common/broadcast] Handle -> WARN 59f [channel: mainchannel] Rejecting broadcast of config message from 34.226.218.27:49872 because of error: Error authorizing update: Update not for correct channel: for mainchannel```

vieiramanoel (Fri, 02 Mar 2018 22:18:22 GMT):
following the tutorial for adding a new org to channel at `peer channel update` I got the error on cli ```Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel ```, at orderer the message is: ```2018-03-02 22:16:08.503 UTC [orderer/common/broadcast] Handle -> WARN 59f [channel: mainchannel] Rejecting broadcast of config message from 34.226.218.27:49872 because of error: Error authorizing update: Update not for correct channel: for mainchannel```

vieiramanoel (Fri, 02 Mar 2018 22:18:22 GMT):
following the tutorial for adding a new org to channel at `peer channel update` I got the error on cli ```Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel ```, at orderer the message is: ```2018-03-02 22:16:08.503 UTC [orderer/common/broadcast] Handle -> WARN 59f [channel: mainchannel] Rejecting broadcast of config message from 34.226.218.27:49872 because of error: Error authorizing update: Update not for correct channel: for mainchannel```

vieiramanoel (Fri, 02 Mar 2018 22:19:11 GMT):
and it doesn't makes sense haha :thinking:

vieiramanoel (Fri, 02 Mar 2018 22:19:22 GMT):
everything works until this point

vieiramanoel (Fri, 02 Mar 2018 22:19:52 GMT):
someone faced this issue too?

yacovm (Fri, 02 Mar 2018 22:28:42 GMT):
I haven't, but I think it's because you have the channel header's channel ID to have `mainchannel` while the config update itself has a different channel

yacovm (Fri, 02 Mar 2018 22:29:50 GMT):
``` message ConfigUpdate { string channel_id = 1; // Which channel this config update is for ConfigGroup read_set = 2; // ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set ConfigGroup write_set = 3; // WriteSet lists the portion of the config which was written, this should included updated Versions int32 type = 4; // The type of config this update is intended for (usually a value from ConfigType enum) , must match the type in the Config message map isolated_data = 5; // Data which is not to be reflected in the resulting Config, but is still needed for some other purpose. For instance, rscc_seed_data } ```

yacovm (Fri, 02 Mar 2018 22:30:11 GMT):
this has a channel ID and it needs to match the channel ID of the channel header in the header in the payload, in the envelope

yacovm (Fri, 02 Mar 2018 22:40:16 GMT):
`return nil, errors.Errorf("Update not for correct channel: %s for %s", configUpdate.ChannelId, vi.channelID)` So seems like the the config update's channel ID is empty...

yacovm (Fri, 02 Mar 2018 22:41:01 GMT):
Is this something you have control over? Or is it a bug in your opinion?

satarupa (Sat, 03 Mar 2018 00:16:39 GMT):
Has joined the channel.

jyellick (Sat, 03 Mar 2018 04:17:44 GMT):
@yacovm @vieiramanoel If you are using `configtxlator` to compute your config update, be sure to pass the channel ID via the CLI flag or REST argument

jyellick (Sat, 03 Mar 2018 04:25:29 GMT):
Either: ```configtxlator compute_update --channel_id "${CHANNEL}" --original original_config.pb --updated modified_config.pb``` or ```curl -X POST -F original=@config.pb -F updated=@updated_config.pb -F channel=${CHANNEL} http://127.0.0.1:7059/configtxlator/compute/update-from-configs```

jyellick (Sat, 03 Mar 2018 04:25:29 GMT):
Either: ```configtxlator compute_update --channel_id "${CHANNEL}" --original original_config.pb --updated modified_config.pb ``` or ```curl -X POST -F original=@config.pb -F updated=@updated_config.pb -F channel=${CHANNEL} http://127.0.0.1:7059/configtxlator/compute/update-from-configs ```

jyellick (Sat, 03 Mar 2018 04:25:29 GMT):
Either: ```configtxlator compute_update --channel_id "${CHANNEL}" --original original_config.pb --updated modified_config.pb ``` or ```curl -X POST -F original=@config.pb -F updated=@updated_config.pb -F channel=${CHANNEL} http://127.0.0.1:7059/configtxlator/compute/update-from-configs ```

jyellick (Sat, 03 Mar 2018 04:25:29 GMT):
Either: ```configtxlator compute_update --channel_id "${CHANNEL}" --original original_config.pb --updated modified_config.pb ``` or ```curl -X POST -F original=@config.pb -F updated=@modified_config.pb -F channel=${CHANNEL} http://127.0.0.1:7059/configtxlator/compute/update-from-configs ```

jyellick (Sat, 03 Mar 2018 04:25:29 GMT):
Either: ```configtxlator compute_update --channel_id "${CHANNEL}" --original original_config.pb --updated modified_config.pb ``` or ```curl -X POST -F original=@original_config.pb -F updated=@modified_config.pb -F channel=${CHANNEL} http://127.0.0.1:7059/configtxlator/compute/update-from-configs ```

ravig-kant (Sat, 03 Mar 2018 05:33:50 GMT):
Do readset and writeset of each transaction proposal in a endrosement match? I think it should match.

ravig-kant (Sat, 03 Mar 2018 05:33:50 GMT):
Do readset and writeset of each transaction proposal in an endrosement match? I think it should match.

jyellick (Sat, 03 Mar 2018 06:00:18 GMT):
@ravig-kant Yes, RW set must all match across the endorsements for a tx

ravig-kant (Sat, 03 Mar 2018 06:01:02 GMT):
Thanks Jyellick

ravig-kant (Sat, 03 Mar 2018 06:03:41 GMT):
What is the purpose of bitmask? I mean, alternatively peer can discard an invalid transaction and not update the ledger!!

jyellick (Sat, 03 Mar 2018 06:27:12 GMT):
@ravig-kant The bitmask is for record-keeping and or forwarding to clients. Yes, certainly for the statedb to be correct there is no need to set this mask.

uma94 (Sat, 03 Mar 2018 07:55:23 GMT):
Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found I'm getting this error when trying to start network.

clubiot (Sat, 03 Mar 2018 08:36:49 GMT):
Has joined the channel.

pasimoes (Sat, 03 Mar 2018 09:25:55 GMT):
Has joined the channel.

dtp (Sat, 03 Mar 2018 11:37:06 GMT):
Hi there, I was thinking of having two PCs acting as two peers on a Fabric network and execute a transaction from one PC to the other, how could I configure this starting from the BYFN guide?

brendonakay (Sat, 03 Mar 2018 14:31:41 GMT):
Has joined the channel.

streetpoet (Sat, 03 Mar 2018 15:14:20 GMT):
Has joined the channel.

ashishapy (Sat, 03 Mar 2018 19:35:13 GMT):
Has joined the channel.

bamboo (Sun, 04 Mar 2018 16:07:37 GMT):
hi, every one, how to user make transaction in fabric? somebody can instruction for me do it. thanks

anil.k (Sun, 04 Mar 2018 17:44:52 GMT):
Has joined the channel.

wbhagan (Sun, 04 Mar 2018 22:39:35 GMT):
hello all,

wbhagan (Sun, 04 Mar 2018 22:39:35 GMT):
hello all, if I wanted to only install a peer on a server, how do I do that? I copied the Makefile from the Fabric download path to the server and ran "make peer"... first I was prompted for the GO installation path, then was prompted for the Docker setup and then was prompted for the Git setup. Now it seems to me that I must download the entire hyperledger fabric to the server. I should be able to install just the peer not so? Kindly assist

etrn (Sun, 04 Mar 2018 23:18:18 GMT):
Has joined the channel.

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state ```State partitioning. Keys in the KVS can be recognized from their name to belong to a particular chaincode, in the sense that only transaction of a certain chaincode may modify the keys belonging to this chaincode. In principle, any chaincode can read the keys belonging to other chaincodes. Support for cross-chaincode transactions, that modify the state belonging to two or more chaincodes is a post-v1 feature.``` whereas in https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66 ```InvokeChaincode locally calls the specified chaincode `Invoke` using the same transaction context; that is, chaincode calling chaincode doesn't create a new transaction message. If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.``` I am confused if cross chaincode call on the same channel will modify the writeset of the other chaincode. Thanks. :)

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state `State partitioning. Keys in the KVS can be recognized from their name to belong to a particular chaincode, in the sense that only transaction of a certain chaincode may modify the keys belonging to this chaincode. In principle, any chaincode can read the keys belonging to other chaincodes. Support for cross-chaincode transactions, that modify the state belonging to two or more chaincodes is a post-v1 feature. ` whereas in https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66 `InvokeChaincode locally calls the specified chaincode `Invoke` using the same transaction context; that is, chaincode calling chaincode doesn't create a new transaction message. If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.` I am confused if cross chaincode call on the same channel will modify the writeset of the other chaincode. Thanks. :)

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state *State partitioning. Keys in the KVS can be recognized from their name to belong to a particular chaincode, in the sense that only transaction of a certain chaincode may modify the keys belonging to this chaincode. In principle, any chaincode can read the keys belonging to other chaincodes. Support for cross-chaincode transactions, that modify the state belonging to two or more chaincodes is a post-v1 feature.* whereas in https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66 *InvokeChaincode locally calls the specified chaincode `Invoke` using the same transaction context; that is, chaincode calling chaincode doesn't create a new transaction message. If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.* I am confused if cross chaincode call on the same channel will modify the writeset of the other chaincode. Thanks. :)

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state *State partitioning. Keys in the KVS can be recognized from their name to belong to a particular chaincode, in the sense that only transaction of a certain chaincode may modify the keys belonging to this chaincode. In principle, any chaincode can read the keys belonging to other chaincodes. Support for cross-chaincode transactions, that modify the state belonging to two or more chaincodes is a post-v1 feature.* whereas in https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66 *InvokeChaincode locally calls the specified chaincode Invoke using the same transaction context; that is, chaincode calling chaincode doesn't create a new transaction message. If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.* I am confused if cross chaincode call on the same channel will modify the writeset of the other chaincode. Thanks. :)

ArnabChatterjee (Mon, 05 Mar 2018 03:06:04 GMT):
Dear Fabric Experts, I have a doubt regarding cross chaincode call. As per docs: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#state *State partitioning. Keys in the KVS can be recognized from their name to belong to a particular chaincode, in the sense that only transaction of a certain chaincode may modify the keys belonging to this chaincode. In principle, any chaincode can read the keys belonging to other chaincodes. Support for cross-chaincode transactions, that modify the state belonging to two or more chaincodes is a post-v1 feature.* whereas in https://github.com/hyperledger/fabric/blob/release/core/chaincode/shim/interfaces.go#L66 *InvokeChaincode locally calls the specified chaincode Invoke using the same transaction context; that is, chaincode calling chaincode doesn't create a new transaction message. If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.* I am confused if cross chaincode call on the same channel will modify the writeset of the other chaincode. Thanks. :)

ArnabChatterjee (Mon, 05 Mar 2018 03:12:30 GMT):
Also, I am seeing that in http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/arch-deep-dive.html#ledger it is mentioned that *Therefore, state as described in Sec 1.2.1 is an optional datastructure.* I want to know that where, how and why would I want the state DB as an optional feature.

amolpednekar (Mon, 05 Mar 2018 04:01:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FjaNZdGHfKHT7MToK) @changfeifan Your certs (crypto-config folder) are old I think, regenerate them and deploy network again

kangkan91 (Mon, 05 Mar 2018 05:29:46 GMT):
Has joined the channel.

IgorSim (Mon, 05 Mar 2018 07:20:10 GMT):
Has joined the channel.

leezie (Mon, 05 Mar 2018 10:24:02 GMT):
Who has tried running hyperledger fabric on a raspberry pi?

bingimanasa (Mon, 05 Mar 2018 10:45:18 GMT):
Has joined the channel.

pankajcheema (Mon, 05 Mar 2018 12:15:42 GMT):
Has joined the channel.

pankajcheema (Mon, 05 Mar 2018 12:15:45 GMT):
`Error: Error endorsing query: rpc error: code = Unknown desc = make sure the chaincode mycc has been successfully instantiated and try again: could not find chaincode with name 'mycc' - `

pankajcheema (Mon, 05 Mar 2018 12:15:51 GMT):
anyone know this issue?

dtp (Mon, 05 Mar 2018 12:40:46 GMT):
Hi there, can anyone redirect me towards someone who worked on fabric base image? the make docker-local isn't recognised

KrishnaVatsalTyagi (Mon, 05 Mar 2018 12:57:36 GMT):
Has joined the channel.

KrishnaVatsalTyagi (Mon, 05 Mar 2018 12:57:52 GMT):
is there anyone representing IBM here?

toddinpal (Mon, 05 Mar 2018 14:56:04 GMT):
@ArnabChatterjee Yes, cross chaincode calls on the same channel accumulate the RWsets from both chaincodes and submit them to the ordering service as a unit. As far as world state being optional, one can imagine that the chaincode can make all its decisions/calculations based completely on the inputs to the transaction.

toddinpal (Mon, 05 Mar 2018 14:57:09 GMT):
@pankajcheema Did you instantiate the mycc chaincode on the peer the client is attempting to seek endosement?

toddinpal (Mon, 05 Mar 2018 14:59:17 GMT):
@wbhagan You don't need to build the peer. You can simply pull the peer docker image and use that.

kevinstr (Mon, 05 Mar 2018 15:00:47 GMT):
Hello all! I'm following the tutorials from the website. Could anybody tell me what they mean by "orderer" in the tutorial? There is 1 orderer organization and 2 peer organization. They all got an admin but the peer orgs also got a user and a peer0.example.com

toddinpal (Mon, 05 Mar 2018 15:02:24 GMT):
Every fabric network needs at least one orderer which is responsible for accumulating and ordering the transactions into a block to be added to the ledger.

kevinstr (Mon, 05 Mar 2018 15:05:30 GMT):
So, the orderer is the miner?

kakuzu (Mon, 05 Mar 2018 15:11:25 GMT):
yes

jcap (Mon, 05 Mar 2018 15:52:34 GMT):
I realize there are tons of variables, but are there any benchmarks along the lines of $x node cluster will achieve ~$y transactions/second?

jcap (Mon, 05 Mar 2018 15:52:51 GMT):
I see a few references, I see a few goals like aiming to do 100k transactions/second in the docs

jcap (Mon, 05 Mar 2018 15:53:24 GMT):
I'm mostly looking for something ballpark

vieiramanoel (Mon, 05 Mar 2018 16:35:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PnsWeTDESvu88LEGn) `@jyellick configtxlator compute_update --channel_id mainchannel --original config.pb --updated modified_config.pb --output prefeitura_update.pb` my update line is this one

vieiramanoel (Mon, 05 Mar 2018 16:36:09 GMT):
it need to be in a variable?

vieiramanoel (Mon, 05 Mar 2018 16:36:09 GMT):
need it to be in a variable?

vieiramanoel (Mon, 05 Mar 2018 16:36:09 GMT):
is it need to be in a variable?

jyellick (Mon, 05 Mar 2018 16:36:34 GMT):
@vieiramanoel What about your `peer channel update` command, did you pass a channel ID there?

vieiramanoel (Mon, 05 Mar 2018 16:39:46 GMT):
yes

vieiramanoel (Mon, 05 Mar 2018 16:39:50 GMT):
`peer channel update -f prefeitura_update_in_envelope.pb -c mainchannel -o orderer.governo.gov.br:7050 --tls --cafile tlsca.pem`

vieiramanoel (Mon, 05 Mar 2018 16:40:03 GMT):
returns: `Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel`

vieiramanoel (Mon, 05 Mar 2018 16:43:11 GMT):
yes @jyellick `peer channel update -f prefeitura_update_in_envelope.pb -c mainchannel -o orderer.governo.gov.br:7050 --tls --cafile tlsca.pem` returns: `Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel

vieiramanoel (Mon, 05 Mar 2018 16:43:11 GMT):
yes @jyellick `peer channel update -f prefeitura_update_in_envelope.pb -c mainchannel -o orderer.governo.gov.br:7050 --tls --cafile tlsca.pem` returns: `Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel~

vieiramanoel (Mon, 05 Mar 2018 16:43:11 GMT):
yes @jyellick `peer channel update -f prefeitura_update_in_envelope.pb -c mainchannel -o orderer.governo.gov.br:7050 --tls --cafile tlsca.pem` returns: `Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel`

vieiramanoel (Mon, 05 Mar 2018 16:43:11 GMT):
yes, @jyellick `peer channel update -f prefeitura_update_in_envelope.pb -c mainchannel -o orderer.governo.gov.br:7050 --tls --cafile tlsca.pem` returns: `Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Update not for correct channel: for mainchannel`

vieiramanoel (Mon, 05 Mar 2018 16:57:08 GMT):
I'll check better, then I report here if I can achieve the update. I really don't think its a bug, @yacovm. I'm pretty sure that is something wrong in the middle of the process

vieiramanoel (Mon, 05 Mar 2018 16:57:08 GMT):
I'll check better, then I report here if I can achieve the update. I really don't think its a bug, @yacovm . I'm pretty sure that is something wrong in the middle of the process

vieiramanoel (Mon, 05 Mar 2018 16:59:45 GMT):
thanks for your help, guys!

abhinkraj (Mon, 05 Mar 2018 17:01:22 GMT):
Has joined the channel.

vieiramanoel (Mon, 05 Mar 2018 17:10:50 GMT):
@jyellick I was blindly following the tutorial on a script, the error was in the line on encode `configtxlator compute_update --channel_id $CHANNEL_NAME --original config.pb --updated modified_config.pb --output org3_update.pb` where the original block fetched is `config_block.pb` ``` peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA```

vieiramanoel (Mon, 05 Mar 2018 17:10:50 GMT):
@jyellick I was blindly following the tutorial on a script, the error was in the line on encode `configtxlator compute_update --channel_id $CHANNEL_NAME --original config.pb --updated modified_config.pb --output org3_update.pb` when the original block fetched is `config_block.pb` ``` peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA```

jyellick (Mon, 05 Mar 2018 17:10:51 GMT):
@vieiramanoel If you can post the JSON of your `profeitura_update_in_envelope.json` via a service like hastebin.com I will take a look

jyellick (Mon, 05 Mar 2018 17:10:51 GMT):
~@vieiramanoel If you can post the JSON of your `profeitura_update_in_envelope.json` via a service like hastebin.com I will take a look~

jyellick (Mon, 05 Mar 2018 17:10:51 GMT):
@vieiramanoel If you can post the JSON of your `profeitura_update_in_envelope.json` via a service like hastebin.com I will take a look

vieiramanoel (Mon, 05 Mar 2018 17:11:05 GMT):
but when I do this

vieiramanoel (Mon, 05 Mar 2018 17:11:15 GMT):
configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb configtxlator: error: Error computing update: error unmarshaling original config: proto: bad wiretype for field common.Config.Sequence: got wiretype 2, want 0

vieiramanoel (Mon, 05 Mar 2018 17:11:15 GMT):
```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb configtxlator: error: Error computing update: error unmarshaling original config: proto: bad wiretype for field common.Config.Sequence: got wiretype 2, want 0```

vieiramanoel (Mon, 05 Mar 2018 17:15:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mmy5bqNtaYKREc2m6) If the error is only this, i'll submit a commit changing this line on tutorial. But the next error confused me. I don't know exactly what's wrong, if is the json or anything else

vieiramanoel (Mon, 05 Mar 2018 17:16:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mmy5bqNtaYKREc2m6) If the error is only this, i'll submit a commit changing this line on tutorial. But the next error confused me. I don't know exactly what's wrong, if is the json or anything else

vieiramanoel (Mon, 05 Mar 2018 17:16:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mmy5bqNtaYKREc2m6) If the error is only this, i'll submit a commit changing this line on tutorial. But the next error confused me. I don't know exactly what's wrong, if is the json itself or anything else

vieiramanoel (Mon, 05 Mar 2018 17:19:32 GMT):
@jyellick anyway, here is my json with the definitions to be updated, I don't think it's wrong, but correct me if it is https://hastebin.com/ivobozikib.json

jyellick (Mon, 05 Mar 2018 17:20:44 GMT):
@vieiramanoel That looks like the JSON of your config update, I was curious about the JSON for your `profeitura_update_in_envelope.json`

vieiramanoel (Mon, 05 Mar 2018 17:21:55 GMT):
Well, now I can't even get to this point haha, the error on encoding is before the enveloping

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb``` should be: ```configtxlator compute_update --channel_id mainchannel --original conig.pb --updated modified_config.pb --output prefeitura_update.pb``` You cannot pass a config block as a parameter to `compute_update`.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original conig.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update`.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original conig.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update`.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original cofiig.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update`.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original config.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update`.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original config.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update` -- only the config embedded in it.

jyellick (Mon, 05 Mar 2018 17:22:37 GMT):
This line: ```configtxlator compute_update --channel_id mainchannel --original config_block.pb --updated modified_config.pb --output prefeitura_update.pb ``` should be: ```configtxlator compute_update --channel_id mainchannel --original config.pb --updated modified_config.pb --output prefeitura_update.pb ``` You cannot pass a config block as a parameter to `compute_update` -- only the config embedded in it.

vieiramanoel (Mon, 05 Mar 2018 17:23:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html following this guide line I haven't any config.pb at this point

vieiramanoel (Mon, 05 Mar 2018 17:23:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html following this guide line I haven't any config.pb at that point

vieiramanoel (Mon, 05 Mar 2018 17:23:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html following this guideline I haven't any config.pb at that point

jyellick (Mon, 05 Mar 2018 17:24:28 GMT):
You have a `config.json` from this line: ```configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json ```

vieiramanoel (Mon, 05 Mar 2018 17:24:41 GMT):
yes

jyellick (Mon, 05 Mar 2018 17:24:45 GMT):
Then: "First, translate config.json back into a protobuf called config.pb:"

jyellick (Mon, 05 Mar 2018 17:24:57 GMT):
```configtxlator proto_encode --input config.json --type common.Config --output config.pb ```

jyellick (Mon, 05 Mar 2018 17:25:05 GMT):
(From the tutorial)

jyellick (Mon, 05 Mar 2018 17:25:05 GMT):
(From the tutorial/doc)

vieiramanoel (Mon, 05 Mar 2018 17:25:24 GMT):
sure, i missed this

vieiramanoel (Mon, 05 Mar 2018 17:25:26 GMT):
sorry

jyellick (Mon, 05 Mar 2018 17:25:31 GMT):
No problem

vieiramanoel (Mon, 05 Mar 2018 17:28:30 GMT):
it worked, thanks

vieiramanoel (Mon, 05 Mar 2018 21:03:25 GMT):
The anchorpeers.tx are generated when you define the profiles on configtx.yaml. In the case of adding a new org to a network how do I generate this .tx file to update the anchor peers for this new org/

vieiramanoel (Mon, 05 Mar 2018 21:03:25 GMT):
The anchorpeers.tx are generated when you define the profiles on configtx.yaml. In the case of adding a new org to a network how do I generate this .tx file to update the anchor peers for this new org?

ArnabChatterjee (Tue, 06 Mar 2018 00:17:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i8MBc56sjAaQimaM7) @toddinpal - Thank you for your response. So it means I cannot just "turn off" the world state. I know this is odd, but what if I want something like an UTXO model. Is it possible?

DonghanKim (Tue, 06 Mar 2018 03:00:11 GMT):
Has joined the channel.

DonghanKim (Tue, 06 Mar 2018 03:00:45 GMT):
Hi. I'mdeploying hyperledger fabric network in Multiple Physical Machine with sample code.(chain code : github.com/hyperledger/fabric-samples.git/chaincode/chaincode_example02) Chaincode installation and instantiation are successful. But when i query, i get the following instantiated error. ``` /opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode query -C composerchannel -n mycc -c '{"Args":["query","a"]}' 2018-03-05 14:05:52.628 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-05 14:05:52.628 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-03-05 14:05:52.629 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-03-05 14:05:52.629 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-03-05 14:05:52.629 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-03-05 14:05:52.630 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AB1070A6D08031A0C08C09DF5D40510...6D7963631A0A0A0571756572790A0161 2018-03-05 14:05:52.630 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 6F98B56C869A406A537061D166495C44129E2003393BDA3C480463642704BB2A Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again - ``` I don't know where should i check.

DonghanKim (Tue, 06 Mar 2018 03:00:45 GMT):
Hi. I'm deploying hyperledger fabric network in Multiple Physical Machine with sample code.(chain code : github.com/hyperledger/fabric-samples.git/chaincode/chaincode_example02) Chaincode installation and instantiation are successful. But when i query, i get the following instantiated error. ``` /opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode query -C composerchannel -n mycc -c '{"Args":["query","a"]}' 2018-03-05 14:05:52.628 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-05 14:05:52.628 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-03-05 14:05:52.629 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-03-05 14:05:52.629 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-03-05 14:05:52.629 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-03-05 14:05:52.630 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AB1070A6D08031A0C08C09DF5D40510...6D7963631A0A0A0571756572790A0161 2018-03-05 14:05:52.630 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 6F98B56C869A406A537061D166495C44129E2003393BDA3C480463642704BB2A Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'mycc' - make sure the chaincode mycc has been successfully instantiated and try again - ``` I don't know where should i check.

rawoor (Tue, 06 Mar 2018 03:07:55 GMT):
Has joined the channel.

rawoor (Tue, 06 Mar 2018 03:08:24 GMT):
hello ... i created a first network this evening from the hyperledger fabric samples. I generated the network artifacts successfully and was able to bring the network (byfn) up. however i notificed that the chain code was installed on org1/peer0 , org2/peer2 and org2/peer3 but was instantiated only on org2/peer2 . Also any reason why the chain code was not installed on org1/peer1 ?

zhishui (Tue, 06 Mar 2018 03:22:08 GMT):
@jyellick can you tell me how to create multichannel ? I don't know how to do it

jyellick (Tue, 06 Mar 2018 03:23:18 GMT):
@zhishui I'm not sure I understand the question. If you look at the https://github.com/hyperledger/fabric-samples/tree/release/first-network it creates a network with one application channel. You may simply follow the same process a second time but with a different name to create another.

zhishui (Tue, 06 Mar 2018 03:35:56 GMT):
@jyellick Do this, the configuration file will not overwrite or conflict?

jyellick (Tue, 06 Mar 2018 03:36:26 GMT):
The configuration files do not, but you will need to change the channel ID passed in to some of the commands

zhishui (Tue, 06 Mar 2018 03:39:01 GMT):
@jyellick I only need to change channel ID?

jyellick (Tue, 06 Mar 2018 03:42:44 GMT):
Generate a new channel creation transaction using the new channel ID using `configtxgen`, send it as an admin via `peer channel create` with the updated channel ID, and you will have a new channel.

zhishui (Tue, 06 Mar 2018 03:43:19 GMT):
@jyellick How to configure the organization under the different channels, for example, channel A: org1, org2 channel B: org1, org3

jyellick (Tue, 06 Mar 2018 03:44:44 GMT):
Edit the `configtx.yaml` make a copy of the channel creation profile. Customize it to include whichever orgs you desire

zhishui (Tue, 06 Mar 2018 03:46:05 GMT):
@jyellick like this

zhishui (Tue, 06 Mar 2018 03:46:08 GMT):

Clipboard - 2018年3月6日中午11点45分

jyellick (Tue, 06 Mar 2018 03:47:00 GMT):
Yes, like that. Be sure to specify the new profile name when you create your channel (`Collection1Channel` for instance)

jyellick (Tue, 06 Mar 2018 03:47:00 GMT):
Yes, like that. Be sure to specify the new profile name when you create your channel ( `Collection1Channel` for instance)

zhishui (Tue, 06 Mar 2018 03:47:50 GMT):

Clipboard - 2018年3月6日中午11点46分

zhishui (Tue, 06 Mar 2018 03:47:54 GMT):
@jyellick

jyellick (Tue, 06 Mar 2018 03:49:46 GMT):
Using `${CHANNEL_NAME}1` is a strange convention, but, it looks like it should work

zhishui (Tue, 06 Mar 2018 03:50:58 GMT):

Clipboard - 2018年3月6日中午11点50分

jyellick (Tue, 06 Mar 2018 03:52:52 GMT):
Yes, now simply duplicate the `peer channel create` calls

jyellick (Tue, 06 Mar 2018 03:52:52 GMT):
Yes, now simply duplicate the `peer channel create` calls (being sure to modify the channel ID there as well)

zhishui (Tue, 06 Mar 2018 03:54:20 GMT):
@jyellick thank you very much

rawoor (Tue, 06 Mar 2018 04:00:53 GMT):
hello ... i created a first network this evening from the hyperledger fabric samples. I generated the network artifacts successfully and was able to bring the network (byfn) up. however i notificed that the chain code was installed on org1/peer0 , org2/peer2 and org2/peer3 but was instantiated only on org2/peer2 . Also any reason why the chain code was not installed on org1/peer1 ?

wininani (Tue, 06 Mar 2018 05:34:37 GMT):

Clipboard - March 6, 2018 11:04 AM

wininani (Tue, 06 Mar 2018 05:34:56 GMT):
What does it means,iam running the marbles on my multipeer setup ...iam getting this error please help me out how to solve this error

harshal.gandhe (Tue, 06 Mar 2018 07:49:50 GMT):
Has joined the channel.

lislunev (Tue, 06 Mar 2018 08:04:53 GMT):
Has joined the channel.

lislunev (Tue, 06 Mar 2018 08:05:40 GMT):
Hello, i need to uderstand somthing: one peer = one docker contaier?

TobiasN (Tue, 06 Mar 2018 08:50:01 GMT):
@lislunev not necessarily, but in most cases yes.

lislunev (Tue, 06 Mar 2018 09:09:31 GMT):
@TobiasN Tell me please how to run more than one peer using one docker container?

TobiasN (Tue, 06 Mar 2018 09:18:11 GMT):
@lislunev need to run the peer command a second time. in fabric samples you see how the peer command is running one time, just do it a second time.

joshtharakan (Tue, 06 Mar 2018 09:21:22 GMT):
Has joined the channel.

lislunev (Tue, 06 Mar 2018 09:28:11 GMT):
Thank you

Spicy5Shumai (Tue, 06 Mar 2018 09:32:55 GMT):
Does anyone have the same error? ``` node enrollAdmin.js ``` ``` Successfully enrolled admin user "admin" error: [Client.js]: Error: Missing parameter. Must have a username. at _setUserFromConfig ```

magicliang (Tue, 06 Mar 2018 10:24:45 GMT):
Has joined the channel.

frankz (Tue, 06 Mar 2018 11:10:53 GMT):
Has joined the channel.

aatkddny (Tue, 06 Mar 2018 14:22:02 GMT):
1.1.0-RC1 problem with couchdb configuration. It's started throwing errors all over the place. Where's the best place for help? Here, or is there a dedicated couchdb channel? For completeness it throws starts with this: "`chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)`" and keeps erroring from there

aatkddny (Tue, 06 Mar 2018 14:22:02 GMT):
1.1.0-RC1 problem with couchdb configuration. It's started throwing errors all over the place. Where's the best place for help? Here, or is there a dedicated couchdb channel? For completeness it throws starts with this: ```chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)``` and keeps erroring from there ```

aatkddny (Tue, 06 Mar 2018 14:22:02 GMT):
1.1.0-RC1 problem with couchdb configuration. It's started throwing errors all over the place. Where's the best place for help? Here, or is there a dedicated couchdb channel? For completeness it throws starts with this: ```chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)``` and keeps erroring from there ```

aatkddny (Tue, 06 Mar 2018 14:22:02 GMT):
1.1.0-RC1 problem with couchdb configuration. It's started throwing errors all over the place. Where's the best place for help? Here, or is there a dedicated couchdb channel? For completeness it throws starts with this: ``` chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) ``` and keeps erroring from there

aatkddny (Tue, 06 Mar 2018 14:22:02 GMT):
1.1.0-RC1 problem with couchdb configuration. It's started throwing errors all over the place after updating from -alpha. Where's the best place for help? Here, or is there a dedicated couchdb channel? For completeness it throws starts with this: ``` chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) ``` and keeps erroring from there

Nghiadt (Tue, 06 Mar 2018 15:10:10 GMT):
Has joined the channel.

Nghiadt (Tue, 06 Mar 2018 15:14:21 GMT):
Farbric is designed to support pluggable implementations, so can i unplug the blockchain service in fabric and plug sawtooth to fabric with my appropriate consensus?

akula (Tue, 06 Mar 2018 15:33:03 GMT):
Has joined the channel.

tmciver (Tue, 06 Mar 2018 15:50:40 GMT):
Has joined the channel.

mustd (Tue, 06 Mar 2018 16:21:34 GMT):
Has joined the channel.

silliman (Tue, 06 Mar 2018 16:38:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rwoFT4yEribHxxxNG) @rawoor Instantiation is a channel level operation so it only needs to be performed on one peer on the channel. You do not have to install chaincode on every peer if you don't want to. Only if you want to send transaction proposals for endorsement to it do you have to do so. (And the target of the instantiate request also has to have the chaincode installed). So, the first network script is just showing an example where it chooses to install on only 3 of the 4 peers. The 4th peer, where the chaincode wasn't installed, still fulfills the committing role. This is a good read if you haven't seen it yet: http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html

Sale7 (Tue, 06 Mar 2018 16:50:08 GMT):
Has joined the channel.

apoorvmittal (Tue, 06 Mar 2018 17:21:02 GMT):
Has joined the channel.

diegoduncan21 (Tue, 06 Mar 2018 18:04:10 GMT):
Has joined the channel.

diegoduncan21 (Tue, 06 Mar 2018 18:05:49 GMT):
Hi, i'm having this error trying to execute `./network_setup.sh up` on /fabric/fabric/examples/e2e_cli ``` !!!!!!!!!!!!!!! Ordering Service is not available, Please try again ... !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ``` i'm on the master branch.

rjones (Tue, 06 Mar 2018 18:17:11 GMT):
dave.enyeart

jpcuga (Tue, 06 Mar 2018 18:35:56 GMT):
Has joined the channel.

jpcuga (Tue, 06 Mar 2018 18:42:30 GMT):
I have a question about setting/using endorsement policies other than the default/single validator one. If you change the endorsement policy to require a peer from each of two orgs (using a setup very similar to the first network tutorial), by changing: -P “OR('Org1MSP.member','Org2MSP.member')" To: -P “AND(‘Org1MSP.member','Org2MSP.member')" Do you need to provide a custom vscc/escc ? I see the default ones at: https://github.com/hyperledger/fabric/blob/release/core/scc/escc/endorser_onevalidsignature.go https://github.com/hyperledger/fabric/blob/release/core/scc/vscc/validator_onevalidsignature.go So my sanity-check question is: to require endorsements from more than one organization, does that actually require one to write custom vscc/escc code? I know you can set using the “-vscc” and “-escc” options. I am surprised if a simple AND policy doesn’t come out of the box…

gochoa (Tue, 06 Mar 2018 18:57:10 GMT):
Has joined the channel.

vinu (Tue, 06 Mar 2018 19:04:56 GMT):
Has joined the channel.

rawoor (Tue, 06 Mar 2018 19:15:05 GMT):
Thank You @silliman. Appreciate the prompt response

rawoor (Tue, 06 Mar 2018 19:15:27 GMT):
@silliman... Thank You

Prince_Israel (Tue, 06 Mar 2018 19:25:45 GMT):
Has joined the channel.

tmciver (Tue, 06 Mar 2018 21:42:03 GMT):
@silliman I was just reading over the link you posted above (http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html) and there's a note at the bottom that references a swimlane diagram. Do you know where that diagram can be found?

silliman (Tue, 06 Mar 2018 21:44:45 GMT):

Consensus service.png

silliman (Tue, 06 Mar 2018 21:44:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xxt39Tw2QQkeo4PWj) @tmciver good question I noticed that too...couldn't find it anywhere official... I think they are referring to this image that I squirreled away but I'm not certain of it...

silliman (Tue, 06 Mar 2018 21:45:44 GMT):
@tmciver I could be wrong about assuming that's what they're referring to, but it's a nice image nonetheless :-)

silliman (Tue, 06 Mar 2018 21:46:58 GMT):
@tmciver actually considering the image has the IBM logo on it and it Hyperledger Fabric is an open source project, it almost certainly *is not* an _official_ image

silliman (Tue, 06 Mar 2018 21:46:58 GMT):
@tmciver actually considering the image has the IBM logo on it and Hyperledger Fabric is an open source project, it almost certainly *is not* an _official_ image

tmciver (Tue, 06 Mar 2018 21:47:11 GMT):
@silliman Thanks! Do you know how we could find out for sure? I'd be happy to update the docs myself, I just want to be sure.

tmciver (Tue, 06 Mar 2018 21:47:38 GMT):
@silliman BTW, are you a HL dev?

silliman (Tue, 06 Mar 2018 21:49:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9ftnQFR5vHfpaCbHD) @tmciver I am not a HL dev but I did stay at a Holiday Inn Express last night. ;-) Unless somebody jumps in here that knows more about it, probably the best way to ensure it gets updated would be to open a JIRA against the documentation.

tmciver (Tue, 06 Mar 2018 21:51:37 GMT):
Ha! OK, thanks!

tmciver (Tue, 06 Mar 2018 22:03:15 GMT):
@silliman Perhaps this is it: https://github.com/hyperledger/fabric/blob/master/docs/source/images/chaincode_swimlane.png (it's the only file in the repo containing "swimlane").

tmciver (Tue, 06 Mar 2018 22:05:16 GMT):
Hmm, I don't seem to be able to create issues for that repo.

silliman (Tue, 06 Mar 2018 22:06:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aKn66f4gFTRiEJzta) @tmciver well the thing about that drawing is it doesn't seem to cover the ordering and validation/commit steps just the first part of the flow, getting the endorsement

silliman (Tue, 06 Mar 2018 22:07:42 GMT):
@tmciver most of the fabric repos on github are read-only mirrors of gerrit repositories so you have to use gerrit to actually contribute chnages and you either have to (or are strongly encouraged) also have a JIRA issue opened up and referenced in any change you might wish to contribute.

tmciver (Tue, 06 Mar 2018 22:08:44 GMT):
Oh yeah, I remember that now. OK, I'll try to do that.

tmciver (Tue, 06 Mar 2018 22:25:48 GMT):
Off topic but I've never used Gerrit before and I'm trying to figure if I'm able to browse the code in the web UI ala github. I'm trying to create a Jira issue and would like to be able to give a URL to a particular file.

serkanersanli (Tue, 06 Mar 2018 22:29:41 GMT):
Has joined the channel.

tmciver (Tue, 06 Mar 2018 22:35:50 GMT):
The Gerrit wiki says I can (https://www.mediawiki.org/wiki/Gerrit/Navigation#Browsing_projects) but I don't see any of these so-called _diffusion links._

Ryan2 (Wed, 07 Mar 2018 01:32:49 GMT):
hi, I faced the issue: "Rejecting CONFIG_UPDATE because: Proposed configuration has no application group members, but consortium contains members" when install fabric on multi hosts, can someone help me

MichaelCutrer (Wed, 07 Mar 2018 01:40:45 GMT):
Has joined the channel.

MichaelCutrer (Wed, 07 Mar 2018 01:45:09 GMT):
Hello all I am new to Hyperledger and am trying to build a channel and get started with creating a network. I am running into a problem. I am able to generate the channel but when I try to bring *up* the network(executing this command in the terminal: ./byfn.sh -m up) I am getting this error for the script.sh file:

MichaelCutrer (Wed, 07 Mar 2018 01:46:51 GMT):

Clipboard - March 6, 2018 5:46 PM

MichaelCutrer (Wed, 07 Mar 2018 01:47:08 GMT):
CORE_PEER_ADDRESS=peer0.org1.example.com:7051 scripts/script.sh: line 43: peer: command not found !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

MichaelCutrer (Wed, 07 Mar 2018 02:07:04 GMT):
Forgot I said anything got it. lol

Nghiadt (Wed, 07 Mar 2018 04:01:39 GMT):
Farbric is designed to support pluggable implementations, so can i unplug the blockchain service in fabric and plug sawtooth to fabric with my appropriate consensus algorithm? Thank you all!

ArvindKumar111 (Wed, 07 Mar 2018 06:07:44 GMT):
Has joined the channel.

anjana (Wed, 07 Mar 2018 06:30:38 GMT):
Has joined the channel.

zhishui (Wed, 07 Mar 2018 06:38:33 GMT):
@anjana hello ,I got a problem, peer0 create a channel A ,peer1 create a channel B ,peer2 create a channel C , when peer0 join channel B,got a error "Invalid channel create transaction : mismatched channel ID A != B" , why? pls help me

rolland (Wed, 07 Mar 2018 06:56:27 GMT):
Has joined the channel.

MichaelCutrer (Wed, 07 Mar 2018 07:59:18 GMT):
I am "building the network" for Hyperledger Fabric and am running into a problem with the documentation section "Create & Join Channel". Trying to run this line and getting an error: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

MichaelCutrer (Wed, 07 Mar 2018 07:59:39 GMT):
Error below wondering if anyone can help:

MichaelCutrer (Wed, 07 Mar 2018 08:00:41 GMT):

Clipboard - March 7, 2018 12:00 AM

suva (Wed, 07 Mar 2018 08:05:48 GMT):
Hi All,

suva (Wed, 07 Mar 2018 08:05:50 GMT):
azureuser@block1rpy-ca0:~$ ps -ef | grep peer root 42544 42527 4 Mar06 ? 00:45:48 peer node start root 42654 42640 4 Mar06 ? 00:48:59 peer node start root 42879 42863 4 Mar06 ? 00:48:58 peer node start root 42915 42887 4 Mar06 ? 00:47:52 peer node start root 44014 43996 0 Mar06 ? 00:00:00 chaincode -peer.address=peer0.org2.example.com:7051 root 44770 44739 0 Mar06 ? 00:00:00 chaincode -peer.address=peer0.org1.example.com:7051 root 45599 45571 0 Mar06 ? 00:00:00 chaincode -peer.address=peer1.org2.example.com:7051 azureus+ 102339 102128 0 08:04 pts/8 00:00:00 grep --color=auto peer azureuser@block1rpy-ca0:~$ which peer /home/azureuser/fabric-samples/bin/peer azureuser@block1rpy-ca0:~$ peer version panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type "" goroutine 1 [running]: panic(0xbb8480, 0xc4201e6a70) /opt/go/go1.7.5.linux.amd64/src/runtime/panic.go:500 +0x1a1 main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852

suva (Wed, 07 Mar 2018 08:05:54 GMT):
please help

suva (Wed, 07 Mar 2018 08:06:05 GMT):
I am unable to check peer version on ubuntu

suva (Wed, 07 Mar 2018 08:06:17 GMT):
Ith throws me the above error

suva (Wed, 07 Mar 2018 08:15:38 GMT):
Since peer is related to orgarnisation we cann't access peer binary directly. SO for access we can use following command docker exec peer0.org1.example.com peer version

suva (Wed, 07 Mar 2018 08:15:52 GMT):
This help me to resolve my issue

pavithrans (Wed, 07 Mar 2018 09:45:06 GMT):
Has joined the channel.

pavithrans (Wed, 07 Mar 2018 09:45:11 GMT):
I have developed hyperledger fabric application as a private network, can any one expain me how to make the private to public hyperledger fabric, so that any one can connect the network easily...

mobis (Wed, 07 Mar 2018 10:02:28 GMT):
Has joined the channel.

mobis (Wed, 07 Mar 2018 10:07:12 GMT):
hi i'm begging ago 3 weeks i need your helps.I've already create in java my chaincode and deploy it .my problem is when i create an end user with fabric-java-sdk and i try to create channel i catch exception here is the message :Exception in thread "main" org.hyperledger.fabric.sdk.exception.TransactionException: Getting block time exceeded 5 seconds for channel mychannel.....

ja17cob (Wed, 07 Mar 2018 10:20:17 GMT):
Has joined the channel.

ja17cob (Wed, 07 Mar 2018 10:20:22 GMT):
curl

ja17cob (Wed, 07 Mar 2018 10:25:53 GMT):
Hi people, I'm trying to get the hyperledger-fabric samples on windows 10. I run curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-rc1 but get curl: (60) SSL certificate problem: unable to get local issuer certificate I have the latest version of curl installed (7.58.0) Ive tried the other URL but to no avail.....any ideas?

holzeis (Wed, 07 Mar 2018 11:32:34 GMT):
Has joined the channel.

holzeis (Wed, 07 Mar 2018 11:32:41 GMT):
hey, I am currently trying to update a channel configuration ``` peer channel update -o orderer:7050 -c mychannel -f /path/to/channel.tx --tls true --cafile /path/to/pem ``` but get the following error ``` 2018-03-07 11:26:09.032 UTC [orderer/common/broadcast] Handle -> WARN 200d Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1 ``` I am actually using the unchanged channel.tx file for the update. Any ideas what could be the issue here?

holzeis (Wed, 07 Mar 2018 11:32:41 GMT):
hey, I am currently trying to update a channel configuration ```peer channel update -o orderer:7050 -c mychannel -f /path/to/channel.tx --tls true --cafile /path/to/pem ``` but get the following error ```2018-03-07 11:26:09.032 UTC [orderer/common/broadcast] Handle -> WARN 200d Rejecting CONFIG_UPDATE because: Error authorizing update: Error validating ReadSet: Readset expected key [Groups] /Channel/Application at version 0, but got version 1 ``` I am actually using the unchanged channel.tx file for the update. Any ideas what could be the issue here?

EEB (Wed, 07 Mar 2018 11:40:38 GMT):
Has joined the channel.

AhsanSaleem (Wed, 07 Mar 2018 11:43:33 GMT):
Has joined the channel.

AhsanSaleem (Wed, 07 Mar 2018 11:52:02 GMT):
Hi guys, I am having some issues running docker-compose file ? it gives the following error when I run it first time : ERROR: In file './docker-compose.yml', service 'environment' must be a mapping not an array.

AhsanSaleem (Wed, 07 Mar 2018 11:52:26 GMT):
can someone provide me an initial docker-compose file ?

username343 (Wed, 07 Mar 2018 11:55:40 GMT):
Have anyone of you ran into this error before, The proposal response is [ [ { Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (32517427 vs. 4194304) at new createStatusError. Can anyone tell me how can i deal with this error

ArvsIndrarys (Wed, 07 Mar 2018 11:57:30 GMT):
dsl

username343 (Wed, 07 Mar 2018 12:09:05 GMT):
why is my transaction size limited to 4mb?

schwinnez (Wed, 07 Mar 2018 13:43:09 GMT):
Hi, I added a new org to an existing channel and startet a peer for that org. For joining the peer i need to fetch the first block. When trying to do this, i get "Marhsal called with nil" error. As far as i can see this is due to unsucessfull authorisation. With a peer of an initially included organisation fetching block works fine. Any Ideas where this might come from? `docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@testorg.example.com/msp" peer0.testorg.example.com peer channel fetch 0 config_block.pb -o orderer.example.com:7050 -c testorg 2018-03-07 13:30:57.015 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proto: Marshal called with nil`

suva (Wed, 07 Mar 2018 14:00:05 GMT):
unable to see any orderer service while doing ps -ef | grep orderer

suva (Wed, 07 Mar 2018 14:00:20 GMT):
can somebody help me how to validate orderer is running or not?

schwinnez (Wed, 07 Mar 2018 14:21:17 GMT):
when updating channel with a new org and joining a peer of the new org, i can see the following log in the new peers logs: `2018-03-07 14:16:06.008 UTC [gossip/service] updateAnchors -> ERRO 028 Tried joining channel testorg but our org( TestorgMSP ), isn't among the orgs of the channel: [Org1MSP] , aborting.` Rest looks okay. This looks quite confusing, does anyone know where it comes from?

yacovm (Wed, 07 Mar 2018 14:52:16 GMT):
yep i do

yacovm (Wed, 07 Mar 2018 14:52:39 GMT):
that's because the genesis block of the channel, doesn't container the org of which that peer is a member of, @schwinnez

yacovm (Wed, 07 Mar 2018 14:53:19 GMT):
you should configure the peer to use leader election and it should eventually pull the block which configures itself as part of the channel

ArvsIndrarys (Wed, 07 Mar 2018 14:54:19 GMT):
Hi guys ! I have these problems when my peer tries to interact with the orderer about the chaincode : ``` dev_peer_0.1.j0tx18n3il6u@ec1 | 2018-03-07 14:45:37.121 UTC [ConnProducer] NewConnection -> ERRO 3ac Failed connecting to orderer_0:7050 , error: x509: certificate signed by unknown authority dev_peer_0.1.j0tx18n3il6u@ec1 | 2018-03-07 14:45:37.121 UTC [deliveryClient] connect -> DEBU 3ad Connected to dev_peer_0.1.j0tx18n3il6u@ec1 | 2018-03-07 14:45:37.121 UTC [deliveryClient] connect -> ERRO 3ae Failed obtaining connection: Could not connect to any of the endpoints: [orderer_0:7050] ``` The thing is, I used a CA, so I have my own certs... Can someone tell me what is the cert used by the `ConnProducer` and the `deliveryClient` and how I can define it? It makes a while I am blocked by this, and I a clueless now...

yacovm (Wed, 07 Mar 2018 14:56:31 GMT):
@ArvsIndrarys - you need the TLS CA to be in the configuration block of the channel

ArvsIndrarys (Wed, 07 Mar 2018 14:56:35 GMT):
For more details, my chaincode is up and running but each time I try to interact with it, I have a : `no chaincode devcode in channel dev` error and I think it is because the peer/chaincode can't reach it due to that cert. The peers have joined the channel successfully though

yacovm (Wed, 07 Mar 2018 14:56:38 GMT):
there is a folder of tls CAs

yacovm (Wed, 07 Mar 2018 14:56:48 GMT):
put inside the ca cert that issued the TLS cert of the orderer

ArvsIndrarys (Wed, 07 Mar 2018 14:57:29 GMT):
Isn't that already done thanks to that? ``` Organizations: - &OrdererOrg Name: OrdererOrg ID: OrdererMSP MSPDir: /home/sun/devmsp/orderer_admin - &Org1 Name: Org1MSP ID: Org1MSP MSPDir: /home/sun/devmsp/peer_admin ```

yacovm (Wed, 07 Mar 2018 14:58:09 GMT):
depends what's in the MSP folder

yacovm (Wed, 07 Mar 2018 14:58:13 GMT):
i don't know what you put there...

ArvsIndrarys (Wed, 07 Mar 2018 14:58:18 GMT):
with the orderer_admin folder looking like that : ``` orderer_admin/ orderer_admin/signcerts orderer_admin/signcerts/cert.pem orderer_admin/keystore orderer_admin/keystore/975e5fb339f062014c5a8b5330dd6ac586926c3902a904ed0c3788f9a085ec35_sk orderer_admin/intermediatecerts orderer_admin/intermediatecerts/ca_intermediate-7054-ca_intermediate.pem orderer_admin/admincerts orderer_admin/admincerts/cert.pem orderer_admin/cacerts orderer_admin/cacerts/ca_intermediate-7054-ca_intermediate.pem orderer_admin/tls orderer_admin/tls/ca.key orderer_admin/tls/ca.crt ```

ArvsIndrarys (Wed, 07 Mar 2018 14:59:50 GMT):
I use the ca.key and ca.crt that are there to sign any tls config (server.key and server.crt) for any orderer I create. (same thing goes with the peer)

yacovm (Wed, 07 Mar 2018 14:59:51 GMT):
oh no no

yacovm (Wed, 07 Mar 2018 14:59:57 GMT):
no, please don't do that

yacovm (Wed, 07 Mar 2018 15:00:08 GMT):
don't put the private keys in the genesis block :dizzy_face:

ArvsIndrarys (Wed, 07 Mar 2018 15:00:57 GMT):
Thanks to the `configtx.yaml`, the entire folder is copied in the genesis block?

yacovm (Wed, 07 Mar 2018 15:01:04 GMT):
yes....

ArvsIndrarys (Wed, 07 Mar 2018 15:01:58 GMT):
ok I didn't know that, I just have to extract the `orderer_admin/tls/ca.crt`, `orderer_admin/signcerts/cert.pem` and `orderer_admin/admincerts/cert.pem` then, if I understand

yacovm (Wed, 07 Mar 2018 15:02:07 GMT):
no, that won't do

ArvsIndrarys (Wed, 07 Mar 2018 15:03:17 GMT):
for another test I have in the msp folder only that : ``` ./ordererOrganizations/test/msp ./ordererOrganizations/test/msp/admincerts ./ordererOrganizations/test/msp/admincerts/Admin@test-cert.pem ./ordererOrganizations/test/msp/cacerts ./ordererOrganizations/test/msp/cacerts/ca.test-cert.pem ./ordererOrganizations/test/msp/tlscacerts ./ordererOrganizations/test/msp/tlscacerts/tlsca.test-cert.pem ```

yacovm (Wed, 07 Mar 2018 15:03:41 GMT):
``` cryptogen showtemplate > crypto-config.yaml cryptogen generate --config=crypto-config.yaml ``` Now you have a folder named `crypto-config` right? look into that folder and you need just to grab the folder: `crypto-config/ordererOrganizations/example.com/msp` that's it! nothing else

yacovm (Wed, 07 Mar 2018 15:04:06 GMT):
``` crypto-config/ordererOrganizations/example.com/msp: admincerts cacerts tlscacerts crypto-config/ordererOrganizations/example.com/msp/admincerts: Admin@example.com-cert.pem crypto-config/ordererOrganizations/example.com/msp/cacerts: ca.example.com-cert.pem crypto-config/ordererOrganizations/example.com/msp/tlscacerts: tlsca.example.com-cert.pem ``` ```

yacovm (Wed, 07 Mar 2018 15:04:06 GMT):
``` crypto-config/ordererOrganizations/example.com/msp: admincerts cacerts tlscacerts crypto-config/ordererOrganizations/example.com/msp/admincerts: Admin@example.com-cert.pem crypto-config/ordererOrganizations/example.com/msp/cacerts: ca.example.com-cert.pem crypto-config/ordererOrganizations/example.com/msp/tlscacerts: tlsca.example.com-cert.pem ```

yacovm (Wed, 07 Mar 2018 15:04:28 GMT):
now, put the ca cert that issued the orderer's TLS cert in the `tlscacerts` folder

ArvsIndrarys (Wed, 07 Mar 2018 15:04:30 GMT):
As I said, I have my custom CA, that generates the msp and tls certs separately :/

yacovm (Wed, 07 Mar 2018 15:04:31 GMT):
and you're all set

yacovm (Wed, 07 Mar 2018 15:04:39 GMT):
so what?

yacovm (Wed, 07 Mar 2018 15:04:54 GMT):
put this custom CA's cert of yours into that folder

ArvsIndrarys (Wed, 07 Mar 2018 15:06:27 GMT):
so I just have to rename the folder tls into tlscacerts and get these certs out, isn't it?

yacovm (Wed, 07 Mar 2018 15:06:52 GMT):
no

yacovm (Wed, 07 Mar 2018 15:07:00 GMT):
just do as i said

yacovm (Wed, 07 Mar 2018 15:07:07 GMT):
copy the CA cert to that folder

ArvsIndrarys (Wed, 07 Mar 2018 15:07:35 GMT):
Are these certs totally independent that any certs generated for each orderer?

ArvsIndrarys (Wed, 07 Mar 2018 15:07:35 GMT):
Are these certs totally independent from any certs generated for each orderer?

yacovm (Wed, 07 Mar 2018 15:08:06 GMT):
i dont understand the question

ArvsIndrarys (Wed, 07 Mar 2018 15:10:18 GMT):
are any of the certs that generates `crypto-config.yaml` self-signed? or are the certs from that (e.g: orderer) msp folder used to sign the certificates of all orderers?

ArvsIndrarys (Wed, 07 Mar 2018 15:31:25 GMT):
``` sun@ec1:~/test/serverConfig/certs/ordererOrganizations/test$ openssl verify -CAfile ./msp/tlscacerts/tlsca.test-cert.pem ./orderers/orderer.test/tls/server.crt ./orderers/orderer.test/tls/server.crt: OK sun@ec1:~/test/serverConfig/certs/ordererOrganizations/test$ openssl x509 -in ./orderers/orderer.test/tls/server.crt -text |grep Issuer Issuer: C=US, ST=California, L=San Francisco, O=test, CN=tlsca.test sun@ec1:~/test/serverConfig/certs/ordererOrganizations/test$ openssl x509 -in ./orderers/orderer.test/tls/server.crt -text |grep Subject: Subject: C=US, ST=California, L=San Francisco, CN=orderer.test ``` that shows that the `tlscacert.test-cert.pem` file signed the orderer's tls `server.crt` file

ArvsIndrarys (Wed, 07 Mar 2018 15:32:55 GMT):
What does my orderer_admin with all orderers, my `ca.crt` signs all `server.crt` of any of my orderers

schwinnez (Wed, 07 Mar 2018 15:58:19 GMT):
Hey, That is what I did and in fact it is working for me. So the message is expected, even when everything is considered correctly? Maybe this should be not on ERROR level then? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E8TEHYfWoncseQtmJ) @yacovm

yacovm (Wed, 07 Mar 2018 15:59:19 GMT):
it should be on error

yacovm (Wed, 07 Mar 2018 15:59:32 GMT):
because if someone did something wrong

yacovm (Wed, 07 Mar 2018 15:59:38 GMT):
like join a peer to a channel it is never part of

yacovm (Wed, 07 Mar 2018 15:59:43 GMT):
then this error tells you something

vieiramanoel (Wed, 07 Mar 2018 19:01:00 GMT):
I've got some questions about deploying a local network with kafka: using `fabric/bddtests/dc-orderer-kafka.yml` and `dc-orderer-kafka-base.yml` In the case of all brokers being on same host, I just need to add /

vieiramanoel (Wed, 07 Mar 2018 19:04:29 GMT):
I've got some questions about deploying a local network with kafka: using `fabric/bddtests/dc-orderer-kafka.yml` and `dc-orderer-kafka-base.yml` In the case of all brokers being on same host, how do I manage the ports of brokers on `configtx.yaml` once just one container can use `x` port per host? ```Brokers: - __container name__:9092 - __another container__:9092 ``` or ```Brokers

vieiramanoel (Wed, 07 Mar 2018 19:04:29 GMT):
I've got some questions about deploying a local network with kafka: using `fabric/bddtests/dc-orderer-kafka.yml` and `dc-orderer-kafka-base.yml` In the case of all brokers being on same host, how do I manage the ports of brokers on `configtx.yaml` once just one container can use `x` port per host? ```Brokers: - __container name__:9092 - __another container__:9092 ``` or ```Brokers - 127.0.0.1:9092 ``` just?

vieiramanoel (Wed, 07 Mar 2018 19:04:29 GMT):
I've got some questions about deploying a local network with kafka: using `fabric/bddtests/dc-orderer-kafka.yml` and `fabric/bddtests/dc-orderer-kafka-base.yml` as referente In the case of all brokers being on same host, how do I manage the ports of brokers on `configtx.yaml` once just one container can use `x` port per host? ```Brokers: - __container name__:9092 - __another container__:9092 ``` or just ```Brokers - 127.0.0.1:9092 ```

vieiramanoel (Wed, 07 Mar 2018 19:07:49 GMT):
in `fabric/bddtests/dc-orderer-kafka-base.yml` the ports tag doesn't map to a host port, so how the communication is made? (inside docker network, I guess, but without configtx configured I can't up network and check this)

widemouthfrog (Wed, 07 Mar 2018 20:49:53 GMT):
Has joined the channel.

widemouthfrog (Wed, 07 Mar 2018 20:50:13 GMT):
How does an enduser to authenticate to hyperledger? I understand that there are register and enroll sdk function calls. I believe the peer receives enrollment and transaction certs for an enrolled user. But how does a user verify themselves when using the blockchain?

widemouthfrog (Wed, 07 Mar 2018 20:55:20 GMT):
That is, once a user is registered, and enrolled, how do they access the certs they've been given, and how do they use them to verify their identity when transaction on the blockchain.

DenisSkovpen (Wed, 07 Mar 2018 21:10:14 GMT):
Has joined the channel.

DenisSkovpen (Wed, 07 Mar 2018 21:11:26 GMT):
Hello, everyone! Is anybody have powerpoint slides or pdf to this beautiful presentation https://developer.ibm.com/tv/dwlive008-replay-build-business-network-ibm-blockchain-platform ? it would make it easier for me to tell my employers what is hyperlayer fabric.

vishwasbalakrishna (Wed, 07 Mar 2018 21:41:59 GMT):
Has joined the channel.

nickgaski (Wed, 07 Mar 2018 21:45:39 GMT):
@widemouthfrog - you might want to run through the sample application tutorial - http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html It shows the register/enroll calls that you referenced and then places the enrollment cert and corresponding private key into a local directory that the application can load and call the `setUserContext` method from - https://github.com/hyperledger/fabric-samples/blob/master/fabcar/invoke.js#L27-L52. The peer(s) the client is trying to contact will have the issuing CA root cert loaded in their configuration (the organizational CA cert) and can thus verify the attached signature

nbajjuri (Wed, 07 Mar 2018 22:59:21 GMT):
Has joined the channel.

rupa12 (Thu, 08 Mar 2018 00:07:44 GMT):
Has joined the channel.

rupa12 (Thu, 08 Mar 2018 02:12:24 GMT):
Hi Guys.. I am new to Hyperledger fabric. I am actually trying to generate TLS certifictaes using Fabric CA. I am referring this documentation : http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#fabric-ca-client . I have my fabric-ca-server up and running. I have registered and enrolled a peer as well. However, this fabric-ca just creates MSP certificates. I want the CA to generate TLS certificates as well and make the peer and the server communicate using TLS. Could someone please help me with this.

rupa12 (Thu, 08 Mar 2018 02:21:19 GMT):
I am using Fabric CA instead of cryptogen to generate the certificates ..

huy.tranibm (Thu, 08 Mar 2018 02:37:06 GMT):
Has joined the channel.

huy.tranibm (Thu, 08 Mar 2018 02:37:11 GMT):
Hello all, can someone tell me if an orderer is allowed to join multiple channels? Thank you

TobiasN (Thu, 08 Mar 2018 02:43:47 GMT):
@huy.tranibm the orderer is never joining channels, the orderer is managing channels. channels get created on the orderer. peer-servers are going to join the channels on that orderer. but YES, one orderer can maintain many channels

huy.tranibm (Thu, 08 Mar 2018 02:44:26 GMT):
Thanks @TobiasN

TobiasN (Thu, 08 Mar 2018 02:50:49 GMT):
@rupa12 I think you already understand that there is two sets of certificates, TLS and MSP. TLS is used for the server connections, but MSP identifies servers and users for the blockchain logic. you can use any method to generate the TLS, a public CA-authority, self signed or signed with the CA's TLS cert. The CA-server on the other hand is only to manage the MSP certificates, providing APIs for register identities and issuing certificates.

huy.tranibm (Thu, 08 Mar 2018 03:10:38 GMT):
@rupa12 here's a way to generate some TLS certs https://github.com/hyperledger/fabric-sdk-java#tls-connection-to-orderer-and-peers

huy.tranibm (Thu, 08 Mar 2018 03:10:46 GMT):
using openssl

liuhaifeng (Thu, 08 Mar 2018 04:23:40 GMT):
Has joined the channel.

joydeepb (Thu, 08 Mar 2018 04:40:47 GMT):
Has joined the channel.

liuhaifeng (Thu, 08 Mar 2018 05:03:58 GMT):
Hi I have a question about fabric consensus. In which step and which peer(endorser, committer) will perform the validation of consistence of Write Set of each endorser peer?

Pranoti (Thu, 08 Mar 2018 06:47:12 GMT):
Just curious! Have anybody implemented single blockchain on multiple machines(multi-peer! peers on different physical machines)?? If yes, then is it using this document https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine or any other?

Pranoti (Thu, 08 Mar 2018 06:47:12 GMT):
Just curious! Have anybody successfully implemented single blockchain on multiple machines(multi-peer! peers on different physical machines)?? If yes, then is it using this document https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine or any other?

username343 (Thu, 08 Mar 2018 06:48:50 GMT):
@Pranoti you can use docker swarm for setting up network on multiple machines

username343 (Thu, 08 Mar 2018 06:49:24 GMT):
Has anyone here tried to increase the max size limit for receiving and sending the messages in grpc in hyperledger fabric?

username343 (Thu, 08 Mar 2018 06:51:04 GMT):
I'm looking at github.com/hyperledger/fabric/core/comm/config.go maxRecvMsgSize and maxSendMsgSize to increase the limit of the messgae size, but I'm not sure how do i make docker images with those changes

schwinnez (Thu, 08 Mar 2018 07:19:16 GMT):
@liuhaifeng you can have a look at the transaction flow at http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html or here https://vitalflux.com/blockchain-transaction-hyperledger-blockchain-network/. When receiving new blocks, peers check the MVCC(i.e. the Read-Write-Set) by use of a special chaincode (the VSCC). Furthermore, the SDK should also check the consistency of the MVCCs it receives, if there is more then one Endorsing Peer. (I know the Java SDK has it as a toggable feature and I am pretty sure, that others SDKs will do this as well). So you don't need to do the consistency check manually in your application.

grahul (Thu, 08 Mar 2018 07:21:49 GMT):
Has joined the channel.

grahul (Thu, 08 Mar 2018 07:22:16 GMT):
Hi all, can anyone direct me to a tutorial for setting up multiple orderers using kafka. Also, is it possible to setup multiple orderers using SOLO (Just curious)?

schwinnez (Thu, 08 Mar 2018 07:33:11 GMT):
A question on Peer Gossip: Where do the organisation peers know each other from? I don't mean how they authenticate against eachother but where they get each others IP-Adress? The only way that I could see is that the Orderer provides this information? So the orderer is maintaining something like Discovery Service for Peers of a channel? If so, why isn't this service also used in otherer processes, e.g. sending propsals to endorsing peers?

WHATISOOP (Thu, 08 Mar 2018 07:34:34 GMT):
Has joined the channel.

schwinnez (Thu, 08 Mar 2018 07:50:01 GMT):
Okay, found the answer. There is a bootstrapping list for each peer "CORE_PEER_GOSSIP_BOOTSTRAP". But do the peers tell each other about other peers in the organization? So can I start with something like all peers use one bootstrapping peer and eventually they all know each other? Furthermore, why isn't a list maintained by the orderer. Would this be much nicer to configure to have something like a discovery service? There are many situations where this would have been very helpful for me )

TobiasN (Thu, 08 Mar 2018 07:52:08 GMT):
@schwinnez is it important that peers know each other? as long as the SDK-apps know what peer to ask for endorsement and to send the transaction to orderer.

zhangguiping (Thu, 08 Mar 2018 07:54:22 GMT):
Has joined the channel.

schwinnez (Thu, 08 Mar 2018 07:56:42 GMT):
@TobiasN Well, for peer gossip it of course is. And also for endorsement. I find it kind of troublesome to deal with maintaining all endorsing peers (also from different orgs!!) in my application. I think that this is also not nice from an architectural point of view. I would be nice to ask some Service: "Hey can you give me a few peers from Org "xyz" for endorsement?". If you have to maintain hundreds of channels with differend endorsement policies the current setting pretty fast becomes pain for operations, or I am missing some cool feature to relieve this pain a little bit?

liuhaifeng (Thu, 08 Mar 2018 08:00:45 GMT):
@schwinnez Thanks a lot. Got more detail information but still one confuse about "The blocks of transactions are “delivered” to all peers on the channel. The transactions within the block are validated to ensure endorsement policy is fulfilled and to ensure that there have been no changes to ledger state for read set variables since the read set was generated by the transaction execution. Transactions in the block are tagged as being valid or invalid." It is not described how to make sure every peer has same result(Every transaction is kept as same status).

TobiasN (Thu, 08 Mar 2018 08:05:29 GMT):
@schwinnez good point, I would also like to hear more in that direction. I can imagine that peers can figure out something. someone might want to have a peer that is in a private network, it is important to know what chaincodes are installed, the node-SDK at least has currently no API for exploring the nodes in a network.

schwinnez (Thu, 08 Mar 2018 08:10:40 GMT):
@liuhaifeng Peers do only attach transaction in blocks to their ledger, if RW-Set (MVCC) is consistent to their current state. And orderer is checking that endorsement is reached. If the RW-Set is not consistent to your current state (e.g. because you manually changed something locally) then you will be out of sync for that keys. The orderer or the "ordering service" is responsible for making sure, that every peer gets the same blocks.(the consensus used between multiple orderers is pluggable and can also be choosen to be BFT).

TobiasN (Thu, 08 Mar 2018 08:13:31 GMT):
@liuhaifeng recently blocks that are stored in the peer, have some metadata, recently I was also searching how to determine if a transaction was valid and applied to ledger: https://chat.hyperledger.org/channel/fabric-sdk-node?msg=zABTNs9k7WqxE8dAT

liujinzhong (Thu, 08 Mar 2018 09:33:11 GMT):
Has joined the channel.

dokany (Thu, 08 Mar 2018 09:43:33 GMT):
Has joined the channel.

SergioTorres (Thu, 08 Mar 2018 09:52:35 GMT):
Has joined the channel.

SergioTorres (Thu, 08 Mar 2018 09:53:44 GMT):
Hi all! Is there a tutorial where Hyperledger Fabric (not Composer) is installed on different machines with different orgs?

devchaud (Thu, 08 Mar 2018 09:58:34 GMT):
Has joined the channel.

SmoDav (Thu, 08 Mar 2018 10:49:30 GMT):
Has joined the channel.

piotrek94 (Thu, 08 Mar 2018 12:14:38 GMT):
Has joined the channel.

piotrek94 (Thu, 08 Mar 2018 12:14:49 GMT):
Hi, I make tutorial: https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html and works fine, but how configure multi org betwen several machine? Not in localhost

stiley (Thu, 08 Mar 2018 12:44:24 GMT):
Has joined the channel.

hbkmadness (Thu, 08 Mar 2018 12:52:27 GMT):
Has joined the channel.

hbkmadness (Thu, 08 Mar 2018 12:52:42 GMT):
Hi, Can someone confirm that https://gerrit.hyperledger.org/r/#/c/13265/17/core/chaincode/lib/cid/README.md works for custom attributes? Because I'm testing with exactly the example that is given, I register an user with attrs="app1Admin=true:ecert" and then in the chaincode it doesnt show that the user (which is the same enrolled user as the registered 1) has "app1Admin" atribute at all

DenisSkovpen (Thu, 08 Mar 2018 13:04:23 GMT):
Can chaincode that is running in one channel read from and write to another channel ?

TanusreeChatterjee (Thu, 08 Mar 2018 13:33:47 GMT):
Has joined the channel.

TanusreeChatterjee (Thu, 08 Mar 2018 13:33:54 GMT):
Hi,Can we implement Hyperledger Fabric using Java ?

raphaelbenoit (Thu, 08 Mar 2018 13:48:02 GMT):
Has joined the channel.

joaquimpedrooliveira (Thu, 08 Mar 2018 13:55:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZfHguB3kqQHccJCSe) @TanusreeChatterjee What do you mean by "implement Hyperledger Fabric"? Developing a chaincode?

joaquimpedrooliveira (Thu, 08 Mar 2018 13:59:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RL79c5zNgNLMknd2Y) @SergioTorres `fabric-samples/first-network` is a example with two orgs, but uses docker. You could try to start from these two Dockerfiles and run on separate machines.

joaquimpedrooliveira (Thu, 08 Mar 2018 13:59:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RL79c5zNgNLMknd2Y) @SergioTorres `fabric-samples/first-network` is a example with two orgs, but uses docker. You could try to start from these Dockerfiles and run each org on separate machines.

TanusreeChatterjee (Thu, 08 Mar 2018 14:05:52 GMT):
Actually In Hyperledger Fabric there is an support for nodeJS and Go language.Is there any support to develop chaincode in Java language?

TanusreeChatterjee (Thu, 08 Mar 2018 14:07:36 GMT):
I found one link https://github.com/hyperledger/fabric-sdk-java .By using this dependencies can i develop the chaincode?

joaquimpedrooliveira (Thu, 08 Mar 2018 14:10:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2ByarSzC5GmHb2CRo) @TanusreeChatterjee As far as I know, there isn't. The doc for *v1.1* states that "Chaincode is a program, written in Go, node.js, that implements a prescribed interface. Eventually, other programming languages such as Java, will be supported" (http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html)

joaquimpedrooliveira (Thu, 08 Mar 2018 14:10:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qeF9nKeFPGMutdsjC) @TanusreeChatterjee I think that the SDK is used by the client applications to interact with the fabric network and chaincodes, not to develop chaincode itself

joaquimpedrooliveira (Thu, 08 Mar 2018 14:10:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qeF9nKeFPGMutdsjC) @TanusreeChatterjee I understand that the SDK is used by the client applications to interact with the fabric network and chaincodes, not to develop chaincode itself

SergioTorres (Thu, 08 Mar 2018 14:17:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vGiC7DBQFK3mXACnF) @joaquimpedrooliveira and how do you connect these docker containers??? because you need swarm and it is not trivial

joaquimpedrooliveira (Thu, 08 Mar 2018 14:20:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S59vuvLaqPL6vgsZC) @SergioTorres As far as I know, you only need Docker Compose, not Swarm.

joaquimpedrooliveira (Thu, 08 Mar 2018 14:20:54 GMT):
I run it locally on my machine without Swarm :)

joaquimpedrooliveira (Thu, 08 Mar 2018 14:21:30 GMT):
Docker-compose creates a docker network where all containers live and can communicate with each other

SergioTorres (Thu, 08 Mar 2018 14:23:13 GMT):
but compose creates a network inside the host, not outside

SergioTorres (Thu, 08 Mar 2018 14:23:15 GMT):
no?

joaquimpedrooliveira (Thu, 08 Mar 2018 14:24:24 GMT):
but exposes ports to the host

joaquimpedrooliveira (Thu, 08 Mar 2018 14:24:30 GMT):
what do you need to do?

MuhammadSalah (Thu, 08 Mar 2018 15:38:58 GMT):
Greetings, any idea how to access couchdb directly while it's running? I would like to replicate the world state to another db or file system to run analytics on.

gbolarhan (Thu, 08 Mar 2018 16:44:42 GMT):
Has joined the channel.

schwinnez (Thu, 08 Mar 2018 17:51:06 GMT):
If your analytics is just reading, why are you not using peer gossip and use another couchdb instance + peer to replicate the couchdb?I mean thats the nice thing about hyperledger that it has continuous replication out of the box =). You can then access the couchdb directly without disturbing the productive system.

schwinnez (Thu, 08 Mar 2018 17:51:06 GMT):
If your analytics is just reading, why are you not using peer gossip and use another couchdb instance + peer to replicate the couchdb?I mean thats the nice thing about hyperledger that it has continuous replication out of the box =). You can then access the couchdb directly without disturbing the productive system. @MuhammadSalah

rupa12 (Thu, 08 Mar 2018 18:05:22 GMT):
Thank you so much @TobiasN and @huy.tranibm for your reply. Like you said I can use CA's TLS cert to generate TLS, can you direct me to some documentation which lists the steps to do so. Right now I have one fabric-ca-server which is generating MSP certificates. Can I have that same server generate TLS certificates? I have enabled tls in the fabric-ca-server-config.yaml file : ''' tls: # Enable TLS (default: false) enabled: true # TLS for the server's listening port certfile: ca-cert.pem keyfile: ca-key.pem clientauth: type: noclientcert certfiles: '''

rupa12 (Thu, 08 Mar 2018 18:05:22 GMT):
But this didnt create any tls certificates for the server.

rupa12 (Thu, 08 Mar 2018 18:05:22 GMT):
Thank you so much @TobiasN and @huy.tranibm for your reply. Like you said I can generate TLS certificates with CA's TLS cert, could you direct me to some documentation which lists the step to do so. I currently have one fabric-ca-server running which generated the MSP certificates. Can I have the same server generate TLS certificates? I have made the following changes to my fabric-ca-server-config.yaml file : ''' tls: # Enable TLS (default: false) enabled: true # TLS for the server's listening port certfile: ca-cert.pem keyfile: ca-key.pem clientauth: type: noclientcert certfiles: '''

rupa12 (Thu, 08 Mar 2018 18:14:45 GMT):
But this didnt create any TLS certificates for the server. However, when I ran the following command inside the fabric-ca-server container I got an additional folder named 'tlscacerts' along with signcerts,cacerts and keystore: ''' fabric-ca-client enroll -d --enrollment.profile tls -u http://peer2:peer2pw@localhost:7054 -M $FABRIC_CA_CLIENT_HOME/tls --csr.hosts peer2.tharthar '''

psingh 2 (Thu, 08 Mar 2018 19:23:34 GMT):
Has joined the channel.

MuhammadSalah (Thu, 08 Mar 2018 22:19:53 GMT):
@schwinnez I already achieved that result yes. To replicate to another target Couch.

MuhammadSalah (Thu, 08 Mar 2018 22:20:11 GMT):
Thank you for pitching in; I am open to better ideas too.

timms (Thu, 08 Mar 2018 23:11:50 GMT):
Has joined the channel.

RameshChundru (Fri, 09 Mar 2018 00:52:25 GMT):
Has joined the channel.

RameshChundru (Fri, 09 Mar 2018 00:52:58 GMT):
Hi i have quick question in how the communication works between peers and also organizations

RameshChundru (Fri, 09 Mar 2018 00:53:02 GMT):

Clipboard - March 8, 2018 4:52 PM

RameshChundru (Fri, 09 Mar 2018 00:53:33 GMT):
from the documentation i read its using gossip protocol to have communication between peers

RameshChundru (Fri, 09 Mar 2018 00:54:27 GMT):
is that same between organizations? basically i was trying to understand the mechanism data sync between peers

TobiasN (Fri, 09 Mar 2018 00:59:53 GMT):
@RameshChundru the peers between eachother actually do not need any communication. the SDK uses the peer to get endorsement, puch the transaction to orderer, the orderer send it to all peers, the peers have from initial configuration all information they need, to determine if a transaction is valid or not and if the write should happen to the ledger-database. the transaction-Flow makes that very clear: http://hyperledger-fabric.readthedocs.io/en/v1.1.0-rc1/txflow.html

TobiasN (Fri, 09 Mar 2018 01:02:56 GMT):
@RameshChundru I also want to understand the gossip protocol better, but as the name suggest, it is actually not necessary. or,... i never used it actively.

TobiasN (Fri, 09 Mar 2018 01:04:35 GMT):
@RameshChundru on your picture, in the bottom are the orderers directly connected, but currently with orderers in Solo or Kafka node, the orderer of one organization will directly send the transactions to the peers of all organizations.

RameshChundru (Fri, 09 Mar 2018 01:15:51 GMT):
@TobiasN thanks for quick response, can you please elaborate when you say "the orderer of one organization will directly send the transactions to the peers of all organizations" what protocol is beeing used in terms of OSI TCP/HTTP/UDP ...

TobiasN (Fri, 09 Mar 2018 01:26:59 GMT):
@RameshChundru first a channel is created/configured on the Orderer. Then the peers connect to the orderer and 'join' the channel. there is a grpc protocol with optional TLS is used. when the SDK app send a transaction to orderer, the orderer will broadcast it through the connection that was initialized by the peer.

RameshChundru (Fri, 09 Mar 2018 03:56:35 GMT):
Thanks @TobiasN . I remember seeing grpc in some documents which is an http2 implementation.

purandam (Fri, 09 Mar 2018 04:27:56 GMT):
Has joined the channel.

purandam (Fri, 09 Mar 2018 04:30:18 GMT):
Hi Team, I am facing issue to integrate the SoftHsm . It is connected as per the given configuration. Also I got the message "admin successful enrollment" but when try to register then it is throw the error. Plz see the attached error.

purandam (Fri, 09 Mar 2018 04:30:57 GMT):

enrollmentKey.png

mithunsama (Fri, 09 Mar 2018 06:17:43 GMT):
Has joined the channel.

rolland (Fri, 09 Mar 2018 06:32:57 GMT):
Any instructions for running fabric *without* docker ? Is this possible / supported with current design ?

rolland (Fri, 09 Mar 2018 06:51:18 GMT):
As per these [1][2], Fabric has a strong dependency on Docker [1] https://lists.hyperledger.org/pipermail/hyperledger-fabric/2017-May/001075.html [2] https://stackoverflow.com/questions/48070380/does-hyperledger-fabric-need-docker Has this changed ? Is container-less support on the roadmap ?

suva (Fri, 09 Mar 2018 06:54:52 GMT):
Hi All I am running composer-playground but my browser will not open automatically.

suva (Fri, 09 Mar 2018 06:55:02 GMT):
what could be the problem?

suva (Fri, 09 Mar 2018 06:55:21 GMT):
I run cd ~/fabric-tools ./startFabric.sh ./createPeerAdminCard.sh

suva (Fri, 09 Mar 2018 06:55:31 GMT):
it working with no error

AnomalRoil (Fri, 09 Mar 2018 08:17:34 GMT):
Has joined the channel.

AnomalRoil (Fri, 09 Mar 2018 08:18:42 GMT):
Hello, sorry to bump your 1337 user's count to 1338, but I happen to have an unanswered question which I'd like to really discuss with someone and maybe I should have asked here in the first place: [ ](https://chat.hyperledger.org/channel/fabric?msg=zeoARFknihratQ62N)

kiattchaip (Fri, 09 Mar 2018 08:43:30 GMT):
Has joined the channel.

ajay_konda (Fri, 09 Mar 2018 09:44:45 GMT):
Has joined the channel.

CorentinPacaud (Fri, 09 Mar 2018 10:00:34 GMT):
Hi everyone, I follow this tuto : https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ When I execute this commande `docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer2.org1.example.com peer channel join -b composerchannel_config.block` I have this error : ``` Error: proposal failed (err: rpc error: code = Unknown desc = Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) ``` Any tips ?

raphaelbenoit (Fri, 09 Mar 2018 10:31:05 GMT):
Hi everyone! I have a question regarding querying the ledger: As I understand it, if a client/SDK wants to query the ledger it invokes a READ PROPOSAL to any number of endorsing peers who will then return a readset and an empty (??) writeset. It can then choose whether or not it wants to send an endorsement to the ordering service. Is it somehow possible to force a client/SDK to always transmit a query of the ledger to the ordering service and thus include this query into the blockchain? The reason behind this is that it might be necessary to know whether or not somebody is aware of the state of the ledger at a given point in time or not. If it was possible to force the clients to transmit a query to the ordering service ... could it be simply be outsmarted by consciously not comply with the endorsement policy? Thanks in advance !!

NiallC (Fri, 09 Mar 2018 10:46:35 GMT):
Has joined the channel.

canka (Fri, 09 Mar 2018 12:31:58 GMT):
Has joined the channel.

snowy13 (Fri, 09 Mar 2018 14:08:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DYJM6bbPmWpt5boQ3) @AnomalRoil Did a discussion thread start in another channel? After having built two PoC's with composer, I'm looking to share thoughts with others about this.

AnomalRoil (Fri, 09 Mar 2018 14:09:20 GMT):
@snowy13 Sadly not.

snowy13 (Fri, 09 Mar 2018 14:09:51 GMT):
Have you taken it for a test drive?

AnomalRoil (Fri, 09 Mar 2018 14:10:25 GMT):
Having built those PoCs, did you sometime felt that Composer was limiting you compare to what the actual Fabric should allow to do or newer?

AnomalRoil (Fri, 09 Mar 2018 14:10:25 GMT):
Having built those PoCs, did you sometime felt that Composer was limiting you compared to what the actual Fabric should allow to do or newer?

AnomalRoil (Fri, 09 Mar 2018 14:10:47 GMT):
I haven't decided yet if we will be using Composer or native HLF yet

snowy13 (Fri, 09 Mar 2018 14:11:30 GMT):
Well composer is a blocking model, so depending on your requirements or user experience, don't expect Tx throughput to be the same

snowy13 (Fri, 09 Mar 2018 14:12:29 GMT):
As for the DAO hack comment you made, it's a non issue. Comparing apples to oranges!

snowy13 (Fri, 09 Mar 2018 14:13:35 GMT):
Composer gets you up and running in a couple of days depending on your client side development effort

snowy13 (Fri, 09 Mar 2018 14:15:40 GMT):
https://anon-solutions.ca/blog/go-go-hyperledger-fabric/

AnomalRoil (Fri, 09 Mar 2018 14:16:49 GMT):
So, Composer is not running a single generic chaincode on the actual Fabric network? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JnfkT77uJ9EuDJYwW)

snowy13 (Fri, 09 Mar 2018 14:42:05 GMT):
Sure it is, but the chain code in fabric is not processed by a VM that processes code who's methods are exposed to anyone with an account and holds a certain commodity/asset traded on open anonymous markets :D

AnomalRoil (Fri, 09 Mar 2018 14:48:37 GMT):
So @snowy13 you would use Composer for both rapid prototyping and production software?

AnomalRoil (Fri, 09 Mar 2018 14:48:37 GMT):
So @snowy13 you would use Composer for both rapid prototyping and production software? (excepted if one needs good Tx throughput)

leurqum (Fri, 09 Mar 2018 15:21:13 GMT):
Has joined the channel.

leurqum (Fri, 09 Mar 2018 15:28:04 GMT):
Hi I have to use Hyperledger with an artifactory docker of my company. So I have to add before all my image in docker-compose the url of the artifactory. The problem is when I want to deploy the chaincode on the peer, it will do a "docker-build" of hyperledger/fabric-ccenv without my artifactory, and raise an error : "UrlBlockByPolicy". Is it possible to configure somewhere this ?

AnthonyRoux (Fri, 09 Mar 2018 15:32:53 GMT):
Has joined the channel.

snowy13 (Fri, 09 Mar 2018 15:46:14 GMT):
Depends what the definition of production software is. For a private consortium it might work depending on the application. For a semi-private or public facing services it might not fit the bill.

snowy13 (Fri, 09 Mar 2018 15:47:23 GMT):
With everything in flux...expect to refactor down the road regardless of what tech stack you choose.

snowy13 (Fri, 09 Mar 2018 15:47:44 GMT):
@channel anyone else can add to this discussion?

snowy13 (Fri, 09 Mar 2018 15:47:44 GMT):
@channel anyone else can add to this discussion?

UmeshAsaigoli (Fri, 09 Mar 2018 16:05:36 GMT):
Has joined the channel.

renato 24 (Fri, 09 Mar 2018 16:50:38 GMT):
Has joined the channel.

renato 24 (Fri, 09 Mar 2018 16:51:08 GMT):
hello, i am new here. Does anyone know why chaincode instatiation fails when i use dockerswarm mode?

renato 24 (Fri, 09 Mar 2018 16:51:35 GMT):
it works fine without it, but when i use dockerswarm i only installs successfully but fails at instantiation

renato 24 (Fri, 09 Mar 2018 16:56:15 GMT):
docker i have successfully conected 2 peers from different machines to the same channel, but it chashes when i instantiated the chaincode, and it is because the swarm mode :(

SergioTorres (Fri, 09 Mar 2018 18:06:37 GMT):
whats the problem??? about TLS????

renato 24 (Fri, 09 Mar 2018 18:07:46 GMT):
this is the error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode mycc

renato 24 (Fri, 09 Mar 2018 18:08:12 GMT):
but this only happens when i use docker swarm mode, but i need to use docker swarm mode to make sure peers can communite among them

renato 24 (Fri, 09 Mar 2018 18:08:32 GMT):
thats how i was able to fetch the channel block from another machine to the orderer

aj07 (Fri, 09 Mar 2018 18:24:40 GMT):
Has joined the channel.

widemouthfrog (Fri, 09 Mar 2018 19:34:42 GMT):
@nickgaski In response to how endusers authenticate, the answer then is that users are registered and enrolled by an application on a specific peer. So, an application may contain numerous eCerts and tCerts for individual users... So, then how do users authenticate to the blockchain is really reduced to how do users authenticate to the application, and this is likely an application specific implementation detail?

schwinnez (Fri, 09 Mar 2018 21:04:29 GMT):
We are trying to deploy Hyperledger soon to OpenShift. I read, that their are some issues with starting the chaincode containers from the peers. Is there a complete tutorial/instructions what to do, to run hyperledger on OpenShift/Kubernetes?

Hopes (Fri, 09 Mar 2018 22:42:23 GMT):
Has joined the channel.

SethiSaab (Sat, 10 Mar 2018 08:41:13 GMT):
HI Team i am getting the following error while doing channel config tx /......................................config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

ShereenSallam (Sat, 10 Mar 2018 12:26:19 GMT):
Has joined the channel.

ajuoga (Sat, 10 Mar 2018 14:06:49 GMT):
Has joined the channel.

zubairIdrees (Sat, 10 Mar 2018 14:19:21 GMT):
Has joined the channel.

zubairIdrees (Sat, 10 Mar 2018 14:19:40 GMT):
Hi,I am new to hyperledger and bit confused about hyperledger composer & nodejs api. I saw using composer we can create assets, transactions, participants and chaincode and in last we have to archive it this all into .bna file and finally we deploy this chaincode into network using admin card But at other end using NodeJs API we can also write chaincode by overiding init & invoke methods. How can we relate these all.

NaveedSiddiqui (Sat, 10 Mar 2018 19:23:31 GMT):
Has joined the channel.

mc (Sat, 10 Mar 2018 19:37:50 GMT):
Has joined the channel.

SethiSaab (Sat, 10 Mar 2018 19:46:26 GMT):
hi team i am getting error while doing channel configuration config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

maddydev (Sat, 10 Mar 2018 23:24:32 GMT):
Has joined the channel.

MichaelShin (Sat, 10 Mar 2018 23:48:46 GMT):
Has joined the channel.

lvzewen (Sun, 11 Mar 2018 03:57:24 GMT):
Has joined the channel.

Deciantis (Sun, 11 Mar 2018 04:16:23 GMT):
Has joined the channel.

ArnabChatterjee (Sun, 11 Mar 2018 11:53:41 GMT):
Dear Fabric Experts. I am inviting you to please review my document on Chaincode writing guidelines. https://gist.github.com/arnabkaycee/d4c10a7f5c01f349632b42b67cee46db. Please feel free to comment and let me know your feedback. Thank you.

ohori (Sun, 11 Mar 2018 12:17:56 GMT):
Has joined the channel.

Taffies (Sun, 11 Mar 2018 15:28:29 GMT):

Screen Shot 2018-03-11 at 11.26.17 PM.png

Taffies (Sun, 11 Mar 2018 15:28:37 GMT):
Hi! I'm trying to use kafka orderer but i'm running into this error... anyone faced similar issues?

Taffies (Sun, 11 Mar 2018 15:29:39 GMT):
(oops the commands looks a bit screwed up but am pretty sure i used the right commands!)

Frank_X_LING (Sun, 11 Mar 2018 16:23:58 GMT):
Has joined the channel.

rsha (Sun, 11 Mar 2018 17:31:19 GMT):
Has joined the channel.

rsha (Sun, 11 Mar 2018 17:35:00 GMT):
hi I have question about how to create the container manually http://hyperledger-fabric.readthedocs.io/en/release-1.0/build_network.html hi

rsha (Sun, 11 Mar 2018 17:35:40 GMT):
and have any one tried to build the multi physical blockchain???

andacaydin (Sun, 11 Mar 2018 18:31:40 GMT):
Has joined the channel.

EDNELCHA (Sun, 11 Mar 2018 18:46:43 GMT):
Has joined the channel.

EDNELCHA (Sun, 11 Mar 2018 18:47:24 GMT):
hello everyone, trying to create network but got stuck here:2018-03-11 18:01:17.208 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

MuhammadSalah (Sun, 11 Mar 2018 20:10:48 GMT):
@rsha What do you mean the container manually?! Do you mean build from source code?

EDNELCHA (Sun, 11 Mar 2018 20:32:43 GMT):
Ok got it fixed. edit your bashrc file and add export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin

leogzl (Mon, 12 Mar 2018 01:19:31 GMT):
anyone get same experience as me, using v1.1.0-rc1 and now no logs on cli (`docker logs cli`)

leogzl (Mon, 12 Mar 2018 01:19:31 GMT):
anyone get same experience as me, using v1.1.0-rc1 and now no logs on cli `docker logs cli`

luongthomas (Mon, 12 Mar 2018 02:22:25 GMT):
Has joined the channel.

Taffies (Mon, 12 Mar 2018 04:21:39 GMT):
hi! anyone got this error? 2018-03-12 04:20:59.967 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/peer/channel-artifacts/chaincode_example02 Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining imports: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/peer/channel-artifacts/chaincode_example02: channel-artifacts/chaincode_example02/chaincode_example02.go:1:1: expected 'package', found 'INT' 404

pankajcheema (Mon, 12 Mar 2018 04:48:42 GMT):
Anyone here know how to find `CORE_PEER_LOCALMSPID`?

pb (Mon, 12 Mar 2018 04:53:17 GMT):
Hi all I have run firstnetwork using ./byfn.sh -m generate followed by ./byfn.sh -m up .Then when i saw docker ps -a ,the cli container is "exited".I have cloned the firstnetwork from fabric sample git clone https://github.com/hyperledger/fabric-samples.git .Have anyone noticed it?

jyellick (Mon, 12 Mar 2018 04:53:26 GMT):
@pankajcheema The local MSP ID is the MSP ID of the organization the peer belongs to

pankajcheema (Mon, 12 Mar 2018 04:54:05 GMT):
@jyellick I think the each peer has a local MSP ID

pankajcheema (Mon, 12 Mar 2018 04:54:06 GMT):
?

PrashantS (Mon, 12 Mar 2018 04:54:15 GMT):
Has joined the channel.

pankajcheema (Mon, 12 Mar 2018 04:54:25 GMT):
An organization has a seperate MSP ID....

jyellick (Mon, 12 Mar 2018 04:55:45 GMT):
@pankajcheema This is not correct. Each peer's local MSP ID is the MSP ID of the organization which issued its certificate

pankajcheema (Mon, 12 Mar 2018 04:55:54 GMT):
Ok

pankajcheema (Mon, 12 Mar 2018 06:55:54 GMT):
anyone facing this issue? `Error creating channelconfig bundle: initializing configtx manager failed: error converting config to map: Illegal characters in key: [Group]` orderer is throwing this error

gk00533482 (Mon, 12 Mar 2018 07:16:13 GMT):
Has joined the channel.

gk00533482 (Mon, 12 Mar 2018 07:16:22 GMT):
Hi everyone, i was started working on hyperledger fabric v1.0. Struggling to connect peers running in two different VMs. Any suggested docs, videos , URLs. Pls share the same to help me out on this.

NAWAZUDDIN552 (Mon, 12 Mar 2018 07:24:37 GMT):
Has joined the channel.

kiattchaip (Mon, 12 Mar 2018 07:36:52 GMT):
Bank1155#

cunsheng (Mon, 12 Mar 2018 07:44:09 GMT):
Has joined the channel.

yamochen (Mon, 12 Mar 2018 08:05:03 GMT):
Has joined the channel.

yamochen (Mon, 12 Mar 2018 08:05:20 GMT):
I am using Hyperledger Explorer , and can consequently view the block data. However they seem incorrect, for example: #2 hash: 38afae3941a400149c8508f7d8e4a26bf938cf60dd3a6f4be602ec829f7115fd previous: e4617a6446d30628b723206d3f0a0e61308e08dc5eef502bb4c87d228c1c4d10 #1 hash: 5db250d70a874db0fbe186b8c39f28b41d17cab09d5515284688844b8834ca19 previous: 3f9cb6a6c20d50b0c9908cfc9505832a30a39f253ba70409a7cb1b2b948ffd48 #0 hash: abc8d27b021ae9636ae379926a5a1a14b96fe9f4a04d9653c72a935c43bd087e previous: (none indeed) Each block's previous hash does not match the previous block's hash.

PavanJuttada (Mon, 12 Mar 2018 09:35:51 GMT):
Has joined the channel.

ossgeek22 (Mon, 12 Mar 2018 10:05:02 GMT):
Has joined the channel.

joaofguerreiro (Mon, 12 Mar 2018 10:24:26 GMT):
Has joined the channel.

pankajcheema (Mon, 12 Mar 2018 10:44:43 GMT):
Anyone know this error? ```orderer.example.com | 2018-03-12 10:43:28.563 UTC [orderer/commmon/multichannel] newLedgerResources -> CRIT 004 Error creating channelconfig bundle: initializing configtx manager failed: error converting config to map: Illegal characters in key: [Group] ```

rolland (Mon, 12 Mar 2018 11:38:23 GMT):
Trying the source checkout cmd from here: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html git clone ssh://LFID@gerrit.hyperledger.org:29418/fabric && scp -p -P 29418 LFID@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/ Is the port number given correct ? Hitting the port over telnet also times out

nmarcetic (Mon, 12 Mar 2018 11:38:43 GMT):
Has joined the channel.

rolland (Mon, 12 Mar 2018 11:39:10 GMT):
Port 22 (SSH) is open though

FrankCastellucci (Mon, 12 Mar 2018 12:03:13 GMT):
Has joined the channel.

RubenLassau-Strauven (Mon, 12 Mar 2018 12:07:51 GMT):
Has joined the channel.

ongar (Mon, 12 Mar 2018 12:08:47 GMT):
Has joined the channel.

ongar (Mon, 12 Mar 2018 12:09:02 GMT):
Hi - Is there a HSM support in the 1.1 release? We need to take a few decisions based on the availability of the HSM support. If not available right now, is there any visibility on when it would be available? Thanks!

BOGATIM (Mon, 12 Mar 2018 12:28:27 GMT):
Has joined the channel.

BOGATIM (Mon, 12 Mar 2018 12:28:31 GMT):
currently i'm using hyperledger fabric v-1.1.0-preview. When i'm trying to add org4 via configtxlator tool. When i'm viewing the logs of docker cli container i can see this error:

BOGATIM (Mon, 12 Mar 2018 12:29:23 GMT):
error: 2018-03-12 11:52:07.759 UTC [gossip/service] configUpdated -> ERRO 25b Tried joining channel mychannel but our org( Org4MSP ), isn't among the orgs of the channel: [Org1MSP Org2MSP] , aborting. 2018-03-12 11:52:07.759 UTC [gossip/service] configUpdated -> ERRO 25b Tried joining channel mychannel but our org( Org4MSP ), isn't among the orgs of the channel: [Org1MSP Org2MSP] , aborting.

pvrbharg (Mon, 12 Mar 2018 13:19:03 GMT):
Has joined the channel.

dtp (Mon, 12 Mar 2018 13:27:02 GMT):
What is the equivalent of the .cto model file if one were to use Fabric only, without Composer? Some .yaml file?

eramitg (Mon, 12 Mar 2018 13:57:07 GMT):
Has joined the channel.

andreosti (Mon, 12 Mar 2018 13:59:33 GMT):
Has joined the channel.

andreosti (Mon, 12 Mar 2018 14:29:28 GMT):
In the byfn example, the transactions are being performed using the peer credentials (not the credentials from an application, for example)?

innomon (Mon, 12 Mar 2018 15:00:18 GMT):
Has joined the channel.

croese (Mon, 12 Mar 2018 15:06:07 GMT):
Has joined the channel.

DenisSkovpen (Mon, 12 Mar 2018 15:12:45 GMT):
Maybe somebody know, how identity management is performed in HL?

DenisSkovpen (Mon, 12 Mar 2018 15:12:45 GMT):
Maybe somebody know, how identity management is performed in HL? I have generated crypto materials for user and admin in crypto-config/peerOrganizations/org1.example.com/users/ folder

DenisSkovpen (Mon, 12 Mar 2018 15:12:45 GMT):
Maybe somebody know, how identity management is performed in HL? I have generated crypto materials for user and admin in crypto-config/peerOrganizations/org1.example.com/users/ folder How i can use it to block new chaincode installation?

DenisSkovpen (Mon, 12 Mar 2018 15:12:45 GMT):
Maybe somebody know, how identity management is performed in HL? I have generated crypto materials for user and admin in crypto-config/peerOrganizations/org1.example.com/users/ folder How i can use it to block new chaincode installation? How HL do distinguish admin and user certs ?

DenisSkovpen (Mon, 12 Mar 2018 15:12:45 GMT):
Maybe somebody know, how identity management is performed in HL? I have generated crypto materials for user and admin in crypto-config/peerOrganizations/org1.example.com/users/ folder How i can use it to block new chaincode installation? How HL do distinguish this admin and user certs ?

AkshayJindal (Mon, 12 Mar 2018 15:16:35 GMT):
@jyellick Hello.. I am running fabric network with 2 peers and 1 org. I would like to view the arranged Transactions and committed block (after ordering) as I would like to calculate the difference between submitted Tx time and committed Tx time. How can I do this?

JuanSilva (Mon, 12 Mar 2018 15:37:49 GMT):
Has joined the channel.

JuanSilva (Mon, 12 Mar 2018 15:41:35 GMT):
Hi, can anyone help me with the following: 2018-03-12 15:34:44.710 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-12 15:34:44.710 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-03-12 15:34:44.712 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-03-12 15:34:44.713 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-03-12 15:34:44.713 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-03-12 15:34:44.714 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AB4070A7008031A0C0894BC9AD50510...1A0E0A0A696E69744C65646765720A00 2018-03-12 15:34:44.714 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 6D9A37C7394B4650C2BA38AF865ED4163B6AEB397B7A3C0E62B8652AF64A4F01 Error: Error endorsing invoke: rpc error: code = Unknown desc = chaincode error (status: 500, message: Invalid Smart Contract function name.) -

JuanSilva (Mon, 12 Mar 2018 15:42:07 GMT):
I am running a test based on the basic network examples provided in hyperledger webpage

JuanSilva (Mon, 12 Mar 2018 15:43:11 GMT):
getting this error when running: peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n trackandtrace -c '{"function":"initLedger","Args":[""]}'

JuanSilva (Mon, 12 Mar 2018 15:43:20 GMT):
initLedger is defined in the chaincode

joaofguerreiro (Mon, 12 Mar 2018 15:45:24 GMT):
When running a network on Fabric, which Docker container has the blocks with transactions? Is it possible to access them?

jyellick (Mon, 12 Mar 2018 15:46:20 GMT):
@AkshayJindal The transaction is not mutated during commit, the timestamp in the committex tx will be the same as the one the client set

aatkddny (Mon, 12 Mar 2018 15:48:31 GMT):
Don't want to have to set up a test if someone can answer this quickly. It looks like every peer in a channel gets a copy of the chaincode - so that turns into quite a lot of containers. If I have a participant in a second channel using the same chaincode does it get a second container running the same chaincode or does it reuse the one that's already attached?

akshay.sood (Mon, 12 Mar 2018 15:49:23 GMT):
Has joined the channel.

akshay.sood (Mon, 12 Mar 2018 15:49:57 GMT):
byfn always shows ``` ```ERROR: for peer1.debutinfotech.com Cannot start service peer1.debutinfotech.com: driver failed programming external connectivity on endpoint DebutInfotechPeer1 (f808c3c48dfebbe508c66b81aeaceb137656520998d5089d895b698822910149): Bind for 0.0.0.0:1051 failed: port is already allocated``` even if the ports are changed

akshay.sood (Mon, 12 Mar 2018 15:49:57 GMT):
byfn always shows ```ERROR: for peer1.debutinfotech.com Cannot start service peer1.debutinfotech.com: driver failed programming external connectivity on endpoint DebutInfotechPeer1 (f808c3c48dfebbe508c66b81aeaceb137656520998d5089d895b698822910149): Bind for 0.0.0.0:1051 failed: port is already allocated``` even if the ports are changed

jyellick (Mon, 12 Mar 2018 15:50:45 GMT):
@akshay.sood Based on the names and ports, you have modified the byn example. Can you reproduce this with an un-modified copy of `fabric-samples/first-network`?

jyellick (Mon, 12 Mar 2018 15:50:45 GMT):
@akshay.sood Based on the names and ports, you have modified the byfn example. Can you reproduce this with an un-modified copy of `fabric-samples/first-network`?

akshay.sood (Mon, 12 Mar 2018 15:51:25 GMT):
sure

akshay.sood (Mon, 12 Mar 2018 15:51:26 GMT):
wait

jyellick (Mon, 12 Mar 2018 15:51:47 GMT):
@aatkddny > It looks like every peer in a channel gets a copy of the chaincode - so that turns into quite a lot of containers. If I have a participant in a second channel using the same chaincode does it get a second container running the same chaincode or does it reuse the one that's already attached? Chaincode containers only execute on peers which have the chaincode installed. If the same chaincode is deployed in multiple channels, only one container executes for it.

jyellick (Mon, 12 Mar 2018 15:51:47 GMT):
@aatkddny > It looks like every peer in a channel gets a copy of the chaincode - so that turns into quite a lot of containers. If I have a participant in a second channel using the same chaincode does it get a second container running the same chaincode or does it reuse the one that's already attached? Chaincode containers only execute on peers which have the chaincode installed. If the same chaincode is deployed in multiple channels, only one container executes for it (per peer with the chaincode installed)

akshay.sood (Mon, 12 Mar 2018 15:53:37 GMT):
@jyellick please find the screenshot attached

akshay.sood (Mon, 12 Mar 2018 15:54:13 GMT):

Screen Shot 2018-03-12 at 9.22.57 PM.png

jyellick (Mon, 12 Mar 2018 15:56:14 GMT):
@akshay.sood This looks like an error with your environment, please see: https://github.com/docker/for-mac/issues/205

akshay.sood (Mon, 12 Mar 2018 15:58:12 GMT):
Thanks @jyellick

joaofguerreiro (Mon, 12 Mar 2018 15:58:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iZbFAZx6LPCrvBJX3) Does anyone have a quick answer on this please?

jyellick (Mon, 12 Mar 2018 15:59:08 GMT):
@joaofguerreiro Each peer keeps a copy of the ledger. You may query blocks using the `QSCC.GetBlockByNumber` function, among other ways

AkshayJindal (Mon, 12 Mar 2018 16:03:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M8nubTYWLRzwpenaX) @jyellick Thank you. Is there any way to get `Block` creation timestamp or the timestamp when block is appended to ledger by the peers? How can I check the list of Txs in the block?

jyellick (Mon, 12 Mar 2018 16:04:56 GMT):
Thee is no timestamp on blocks, only on transactions. If you wanted to find the time the block comitted, you would need to check the logs

AkshayJindal (Mon, 12 Mar 2018 16:06:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i8wb8QQHQXcMwKQGg) @jyellick How can I check the list of Txs in the committed block?

jyellick (Mon, 12 Mar 2018 16:09:14 GMT):
@AkshayJindal You can see the proto definition for `common.Block` here: https://github.com/hyperledger/fabric/blob/release-1.0/protos/common/common.proto#L140-L165 Although it is not its intended purpose, you can always pass the block to `configtxlator` (like, `configtxlator proto_decode --input --type common.Block` ) though you must use a v1.1.0-rc1 version of the tool or better

jyellick (Mon, 12 Mar 2018 16:09:14 GMT):
@AkshayJindal You can see the proto definition for `common.Block` here: https://github.com/hyperledger/fabric/blob/release-1.0/protos/common/common.proto#L140-L165 Although it is not its intended purpose, you can always pass the block to `configtxlator` (like, `configtxlator proto_decode --input --type common.Block` ) though you must use a v1.1.0-rc1 version of the tool or newer

jyellick (Mon, 12 Mar 2018 16:09:14 GMT):
@AkshayJindal You can see the proto definition for `common.Block` here: https://github.com/hyperledger/fabric/blob/release-1.0/protos/common/common.proto#L140-L165 Although it is not its intended purpose, you can always pass the block to `configtxlator` to inspect it (like, `configtxlator proto_decode --input --type common.Block` ) though you must use a v1.1.0-rc1 version of the tool or newer

gskerry (Mon, 12 Mar 2018 16:47:29 GMT):
Has joined the channel.

schwinnez (Mon, 12 Mar 2018 17:14:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7J7FPxA8KieykenbR) Really noone having experience on deploying on environments other then swarm?

jyellick (Mon, 12 Mar 2018 17:52:30 GMT):
@schwinnez There is an example deployment on k8s which has not yet been merged, https://gerrit.hyperledger.org/r/c/12159/

kmadala (Mon, 12 Mar 2018 18:38:42 GMT):
Has joined the channel.

JuanSilva (Mon, 12 Mar 2018 20:05:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aQTfxahZCexLAoq7c) anyone to help me with this??

neharprodduturi (Mon, 12 Mar 2018 20:12:42 GMT):
Hi everyone, in Fabric 1.0 for Event Hub framework, what is the default bufferSize and timeout duration for an event?

neharprodduturi (Mon, 12 Mar 2018 20:13:56 GMT):
I am looking at the fabric code for it, but can't find it.

Hopes (Mon, 12 Mar 2018 20:33:29 GMT):

Screenshot from 2018-03-12 22-26-16.png

JuanSilva (Mon, 12 Mar 2018 20:38:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LnqFzECkjWX4QrrPf) @Hopes Go path not set ... check http://hyperledger-fabric.readthedocs.io/en/release-1.0/prereqs.html#go-programming-language

Hopes (Mon, 12 Mar 2018 21:11:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9ss9wZJZwfteZD3PA) @JuanSilva Thanks a lot for responding, I tried it out, and I got a new error that says " Fatal error when initializing core config : DevConfigDir not found"

JuanSilva (Mon, 12 Mar 2018 21:35:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E2JBbeyadbgJqg5PY) @Hopes I am pretty new here so, not sure how much help I can give you, but arent you executing the command outside the cli? you need to go first: docker exec -it cli bash and then execute the peer commands inside

vieiramanoel (Mon, 12 Mar 2018 22:01:42 GMT):
kafka

GopalPanda (Mon, 12 Mar 2018 22:45:23 GMT):
Has joined the channel.

rupa12 (Tue, 13 Mar 2018 00:10:40 GMT):
I am using openssl to generate TLS certificate for the peers.. I used this: https://github.com/hyperledger/fabric-sdk-java#tls-connection-to-orderer-and-peers. The cert.pem, key.pem files have been generated successfully. However when I try to bring up that particular peer container it fails with the following error : `2018-03-13 00:03:15.034 UTC [nodeCmd] serve -> CRIT 032 Error loading secure config for peer (Error loading TLS key and/or certificate (open /etc/hyperledger/fabric-ca/clients/peer3.tharthar/cert.pem: no such file or directory))` Can someone advice what I might be doing wrong ?

jwhelan (Tue, 13 Mar 2018 00:14:19 GMT):
Has joined the channel.

BryanZima (Tue, 13 Mar 2018 00:55:13 GMT):
Has joined the channel.

BryanZima (Tue, 13 Mar 2018 00:55:37 GMT):
I am new to hyperledger fabric, I am trying to understand the difference between, peer's and Org's in the "First Network" byfn.sh examples

SB85 (Tue, 13 Mar 2018 01:28:17 GMT):
Is there a single ledger or multiple copies of ledger exist in a blockchain network? If a single ledger is available , then where is it stored?

darapich92 (Tue, 13 Mar 2018 03:17:08 GMT):
hi everybody, i want to build fabric Java SDK but i follow the existing documents on github doesn't clear enough to understand. do anybody know which source or tutorial that easy to understand and clear? thank you very much.

guiomie (Tue, 13 Mar 2018 03:33:24 GMT):
Has joined the channel.

guiomie (Tue, 13 Mar 2018 03:33:29 GMT):
hi, i read some where REST API is deprecated, but can't find this anywhere, anyone knows if its is deprecated and where it is officially annouced?

yamochen (Tue, 13 Mar 2018 03:42:18 GMT):
how to verify Previous_Hash

yamochen (Tue, 13 Mar 2018 03:42:18 GMT):
Hi everyone, how to verify Previous_Hash

kiattchaip (Tue, 13 Mar 2018 04:09:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gcK7aQ6BTwvJMESKg) @SB85 There are multiple copies of the ledger. Each peer has its own ledger (chain and state). Find more detail from http://hyperledger-fabric.readthedocs.io/en/latest/ledger.html.

pankajcheema (Tue, 13 Mar 2018 04:32:52 GMT):

Screenshot from 2018-03-13 09-49-51.png

pankajcheema (Tue, 13 Mar 2018 05:03:37 GMT):
Hi I removed all the docker images for fabric and pull again and try to run byfn without any changes and getting `starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory"`

pankajcheema (Tue, 13 Mar 2018 05:04:28 GMT):
in scripts script.sh already exist

schwinnez (Tue, 13 Mar 2018 07:16:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=46YnDXQSWzRi8f38r) @jyellick Thanks for this, as far as I can see, the containers are working on Kubernetes but not on OpenShift, since OpenShift doesn't run containers with root permissions without relaxed security constraints. Is it really necessary that the containers require root rights?

schwinnez (Tue, 13 Mar 2018 07:16:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=46YnDXQSWzRi8f38r) @jyellick Thanks for this. As far as I can see, the containers are working on Kubernetes but not on OpenShift, since OpenShift doesn't run containers with root permissions without relaxed security constraints. Is it really necessary that the containers require root rights? Also, with more then 1 node, I will get into trouble with chaincode containers as described here: https://hackernoon.com/how-to-deploy-hyperledger-fabric-on-kubernetes-1-a2ceb3ada078. The workaround they are doing there is not possible for me, since I want to use a manged OpenShift environment.

rhansharief (Tue, 13 Mar 2018 07:24:57 GMT):
Good day! is the java SDK backward compatible to fabric 1.0.6?

rsha (Tue, 13 Mar 2018 09:07:34 GMT):
hi

rsha (Tue, 13 Mar 2018 09:08:31 GMT):
has any one build a blockchain on multi physical network??

FrankCastellucci (Tue, 13 Mar 2018 10:27:51 GMT):
Has left the channel.

rsha (Tue, 13 Mar 2018 10:44:00 GMT):
in docker-compose-cli.yaml where can i define my network type ( my network is overlay NOT bridge)

Saschaka (Tue, 13 Mar 2018 10:46:38 GMT):
Has joined the channel.

Saschaka (Tue, 13 Mar 2018 10:46:42 GMT):
I have to use the Fabric Blockchain Service of SAPs Cloud Platform soon and I would love to continue using my siness Network Archive files (.bna) for the deployment. Unfortunately SAP says I have to create a ZIP archive, which includes a chaincode.yaml manifest, the chaincode GO code (.go) and the OpenAPI description (.yaml) for the deployment. This is cumbersome and beside that I am not familiar with GO. Is there any possibility to generate those files (the two YAML and the GO-Code) out of the Business Network Archive file (.bna)?

pankajcheema (Tue, 13 Mar 2018 11:31:20 GMT):

Screenshot from 2018-03-13 17-00-16.png

pankajcheema (Tue, 13 Mar 2018 11:32:19 GMT):
getting at the time of adding anchor peers to channel in console running in debug mode

RajkumarTiwari (Tue, 13 Mar 2018 11:32:41 GMT):
Has joined the channel.

greg2git (Tue, 13 Mar 2018 12:00:10 GMT):
@Saschaka i don't think there's a way around GO as it's the main language of the fabric, but how do you get to fabric on SAP CP?

zimabry (Tue, 13 Mar 2018 12:57:04 GMT):
Has joined the channel.

zimabry (Tue, 13 Mar 2018 13:17:57 GMT):
Hi I am new to hyperledger, wanted to know the main difference between Org's and Peers in the YAML files

jspark84 (Tue, 13 Mar 2018 13:20:21 GMT):
Has joined the channel.

JuanSilva (Tue, 13 Mar 2018 13:25:05 GMT):
Hi, my chaincode is running on linux but on mac is not. I am using the basic network provided in the examples to build it. this is the error: Error: Error endorsing invoke: rpc error: code = Unknown desc = chaincode error (status: 500, message: Invalid Smart Contract function name.) -

JuanSilva (Tue, 13 Mar 2018 13:25:10 GMT):
any clues?

JuanSilva (Tue, 13 Mar 2018 13:25:20 GMT):
I am stuck since 2 days already

Saschaka (Tue, 13 Mar 2018 13:40:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h5XZ3fz9zPRy5HfEb) @greg2git SAP will (currently in Beta) offer the Fabric as a SAP Cloud Foundry Service. BaaS (Blockchain as a service). You can check their Help-Pages for more details ( https://help.sap.com/viewer/6d82a6f862374f88a4a635b02e2806d5/BLOCKCHAIN/en-US/3de4f9401ee5493db13ccb7ef97e2d39.html ) . I am working with a customer who has a co-innovation partnership and has access to the beta.

Saschaka (Tue, 13 Mar 2018 13:42:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Ji4HH5eQpWDetqL4) One additional question for my understanding. If GO is the main language, what happens with the Javascript when you deploy a .bna file? Is there a kind of GO Code generation?

PieterBogemans (Tue, 13 Mar 2018 13:53:26 GMT):
Has joined the channel.

greg2git (Tue, 13 Mar 2018 13:53:30 GMT):
@Saschaka thx for the help link, but it looks like my id is not entitled to either their hyperledger or multichain app, as far as how other languages interact with GO, your best bet is to look at source control at gerrit, e.g. https://gerrit.hyperledger.org/r/#/q/status:open where you can navigate off to actual code and files that make up the fabric

Saschaka (Tue, 13 Mar 2018 13:56:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PZwfgPJkssmu33N5P) @greg2git Thx, I will check this.

KGiou (Tue, 13 Mar 2018 14:03:53 GMT):
@neharprodduturi Here you are

KGiou (Tue, 13 Mar 2018 14:03:53 GMT):
@neharprodduturi Here you are https://github.com/hyperledger/fabric/blob/release-1.0/sampleconfig/core.yaml

bourbonkidQ (Tue, 13 Mar 2018 14:47:14 GMT):
Has joined the channel.

pankajcheema (Tue, 13 Mar 2018 14:56:11 GMT):
```root@e5016ddfd07a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o hr.debut.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('DebutMSP.peer','AxisMSP.peer')" 2018-03-13 14:50:14.176 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-13 14:50:14.176 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity Error: Must supply value for chaincode name parameter.``` anyone have any solution for this ??

pankajcheema (Tue, 13 Mar 2018 14:56:43 GMT):
@Saschaka

pankajcheema (Tue, 13 Mar 2018 14:56:46 GMT):
@greg2git

pankajcheema (Tue, 13 Mar 2018 14:56:48 GMT):
@JuanSilva

SB85 (Tue, 13 Mar 2018 15:04:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FTaAL7mQeo5kCH5rM) @kiattchaip For state database couch DB is there but where is the chain stored?If there are multiple copies, how the network understand whose copy can be taken as source of truth?(ex: if a new Peer is joining the network)

Saschaka (Tue, 13 Mar 2018 15:12:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZiiWhssCykTHckj2h) @SB85 It would probably make sense that you spend some time on the basic concept of a distributed ledger. edx would be a good source: https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x

joaofguerreiro (Tue, 13 Mar 2018 15:12:55 GMT):
Hi everyone. Are there any other options for my State database besides CouchDB and LevelDB?

JuanSilva (Tue, 13 Mar 2018 15:14:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9sApJ7yDEMKsEwWgJ) @pankajcheema mycc is not the channel name? you need to supply the name of your chaincode

pankajcheema (Tue, 13 Mar 2018 15:15:21 GMT):
mycc is the name of chaincode

pankajcheema (Tue, 13 Mar 2018 15:33:15 GMT):
``` ```

rsha (Tue, 13 Mar 2018 15:46:21 GMT):
in docker-compose-cli.yaml where can i define my network type ( my network is overlay NOT bridge)?????

pankajcheema (Tue, 13 Mar 2018 16:15:21 GMT):
```2018-03-13 16:14:13.150 UTC [gossip/comm] GossipStream -> ERRO 02d Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 08 44 65 62 75 74 4d 53 50 12 8e 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 46 44 43 43 41 62 71 67 41 77 49 42 41 67 49 52 41 4c 54 32 75 49 48 41 52 59 77 30 39 4d 59 79 43 6d 48 73 6a 6d 59 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 41 77 49 77 5a 54 45 4c 0a 4d 41 6b 47 41 31 55 45 42 68 4d 43 56 56 4d 78 45 7a 41 52 42 67 4e 56 42 41 67 54 43 6b 4e 68 62 47 6c 6d 62 33 4a 75 61 57 45 78 46 6a 41 55 42 67 4e 56 42 41 63 54 44 56 4e 68 62 69 42 47 0a 63 6d 46 75 59 32 6c 7a 59 32 38 78 45 6a 41 51 42 67 4e 56 42 41 6f 54 43 57 52 6c 59 6e 56 30 4c 6d 4e 76 62 54 45 56 4d 42 4d 47 41 31 55 45 41 78 4d 4d 59 32 45 75 5a 47 56 69 64 58 51 75 0a 59 32 39 74 4d 42 34 58 44 54 45 34 4d 44 4d 78 4d 7a 45 31 4d 6a 6b 79 4f 46 6f 58 44 54 49 34 4d 44 4d 78 4d 44 45 31 4d 6a 6b 79 4f 46 6f 77 59 7a 45 4c 4d 41 6b 47 41 31 55 45 42 68 4d 43 0a 56 56 4d 78 45 7a 41 52 42 67 4e 56 42 41 67 54 43 6b 4e 68 62 47 6c 6d 62 33 4a 75 61 57 45 78 46 6a 41 55 42 67 4e 56 42 41 63 54 44 56 4e 68 62 69 42 47 63 6d 46 75 59 32 6c 7a 59 32 38 78 0a 44 54 41 4c 42 67 4e 56 42 41 73 54 42 48 42 6c 5a 58 49 78 47 44 41 57 42 67 4e 56 42 41 4d 54 44 33 42 6c 5a 58 49 77 4c 6d 52 6c 59 6e 56 30 4c 6d 4e 76 62 54 42 5a 4d 42 4d 47 42 79 71 47 0a 53 4d 34 39 41 67 45 47 43 43 71 47 53 4d 34 39 41 77 45 48 41 30 49 41 42 4f 70 46 45 77 76 73 37 6f 52 67 46 42 75 31 2f 64 34 32 2f 74 32 4a 63 78 78 48 64 32 70 67 70 76 77 2b 68 4a 43 69 0a 4e 45 49 38 67 69 61 48 34 35 53 4b 6d 31 4b 78 36 59 39 4e 5a 37 62 52 50 6c 30 70 38 4e 42 57 47 59 57 4b 37 31 39 71 34 33 50 54 62 4b 69 6a 54 54 42 4c 4d 41 34 47 41 31 55 64 44 77 45 42 0a 2f 77 51 45 41 77 49 48 67 44 41 4d 42 67 4e 56 48 52 4d 42 41 66 38 45 41 6a 41 41 4d 43 73 47 41 31 55 64 49 77 51 6b 4d 43 4b 41 49 50 34 64 56 46 4d 48 35 62 52 35 61 4b 6a 6e 69 6f 69 62 0a 56 37 41 4e 42 63 53 61 32 62 43 4b 59 59 47 55 57 50 78 6a 7a 44 41 75 4d 41 6f 47 43 43 71 47 53 4d 34 39 42 41 4d 43 41 30 67 41 4d 45 55 43 49 51 44 6d 33 32 6b 72 68 5a 4d 67 75 55 30 52 0a 41 70 62 33 52 4c 53 39 4c 62 67 72 6d 62 39 72 4c 32 74 61 33 6f 42 43 53 62 4f 31 44 41 49 67 45 35 44 55 42 36 49 4f 33 69 31 34 50 2f 64 72 57 72 6e 61 55 6c 6d 51 72 58 50 4b 66 64 70 74 0a 78 4a 6e 61 78 46 58 57 33 6c 73 3d 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.```

pankajcheema (Tue, 13 Mar 2018 16:15:31 GMT):
has anyone faced this issue?

akshay.sood (Tue, 13 Mar 2018 16:27:03 GMT):
Hello All 🙂 If anyone here know this issue please let me know ```root@3c2657d9dffd:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"2018-03-13 16:18:59.725 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-13 16:18:59.725 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity Error: Must supply value for chaincode name parameter.```

pankajcheema (Tue, 13 Mar 2018 17:07:07 GMT):

Screenshot from 2018-03-13 22-34-21.png

pankajcheema (Tue, 13 Mar 2018 17:07:47 GMT):
we also tried in custom configuration same issue if we did not add anchor peers works fine.

pankajcheema (Tue, 13 Mar 2018 17:07:47 GMT):
we also tried in our custom configuration but faced same issue. if we did not add anchor peers works fine.

Hopes (Tue, 13 Mar 2018 17:28:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5tCHG5xmfcKpYP9rx) @JuanSilva I am doing it on two terminals because I am displaying the logs in one; however, even when i am not displaying the logs and performing the commands in one terminal, the CLI idle time seems to be too short for me to do anything within that time window, or is it actually sufficient enough and this means there's something wrong?

vieiramanoel (Tue, 13 Mar 2018 18:15:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jCatu8rej6eB3ERvR) @akshay.sood your variable $CHANNEL_NAME is not set, so before this command pls export CHANNEL_NAME e.g `export CHANNEL_NAME=mychannel`, then instantiate the code

vieiramanoel (Tue, 13 Mar 2018 18:15:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jCatu8rej6eB3ERvR) @akshay.sood your variable $CHANNEL_NAME is not set, so before this command pls export CHANNEL_NAME e.g `export CHANNEL_NAME=mychannel`, then instantiate the chaincode

mastersingh24 (Tue, 13 Mar 2018 18:16:49 GMT):
@akshay.sood You are missing the name (-n) and version (-v) flags (https://chat.hyperledger.org/channel/fabric-questions?msg=jCatu8rej6eB3ERvR)

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke `peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'` instead of the query `peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100`

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}' ``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}' ``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}' ``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' ``` output be `Query Result: 90`, it is `Query Result: 100```

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network and instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}' ``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' ``` output be `Query Result: 90`, it is `Query Result: 100`

vieiramanoel (Tue, 13 Mar 2018 18:19:30 GMT):
Hey, guys! I'm doing some tests on my network instantiating `chaincode_example02` and when I invoke ```peer chaincode invoke -o orderer.goledger.com:7050 --tls --cafile crypto/orderer/goledger/orderer/msp/tlscacerts/ca-goledger-com-7054-ca-goledger-com.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}' ``` instead of the query ```peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' ``` output be `Query Result: 90`, it is `Query Result: 100`

vieiramanoel (Tue, 13 Mar 2018 18:24:20 GMT):
as if the chaincode was not invoked

bandreghetti (Tue, 13 Mar 2018 18:25:07 GMT):
Has joined the channel.

neharprodduturi (Tue, 13 Mar 2018 18:29:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=frcP6DnJT3XDQGkfg) @KGiou Thank you!! This helps

Hopes (Tue, 13 Mar 2018 18:54:31 GMT):
I get this warning `WARNING: The TIMEOUT variable is not set. Defaulting to a blank string.` whenever I type in the command `docker-compose -f docker-compose-cli.yaml up` Is this the timeout variable for the CLI? If so, how can I change it?

vieiramanoel (Tue, 13 Mar 2018 18:57:27 GMT):
@Hopes Timeout is used in byfn to keep cli alive after running script.sh

vieiramanoel (Tue, 13 Mar 2018 19:01:16 GMT):
So to change that just up docker-cli `TIMEOUT=10000 docker-compose -f docker-compose-cli.yaml up`

vieiramanoel (Tue, 13 Mar 2018 19:02:16 GMT):
where `10000` is an arbitrary number, in fact the time in seconds that you want to keep cli alive

hamptonsmith (Tue, 13 Mar 2018 19:30:55 GMT):
Anyone with experience with/opinions about pointing Fabric's world db at a Couchbase instance? Supposedly Couchbase is API compatible with CouchDB so in theory this should work, yes?

SB85 (Tue, 13 Mar 2018 19:58:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZtKaSmkuzpjTaGSkz) @Saschaka Thank you. let me spend some time on this.

Taffies (Wed, 14 Mar 2018 03:26:45 GMT):
Hello! Would like to get some of your views on encryption/decryption on the blockchain, especially for those who have implemented/thinking of doing it. I want to encrypt my info such that if someone gets access to the blockchain, they won't be able to see the data in plaintext. However, I also want to be able to run specific queries from the blockchain and I don't see how I am achieve both efficiently. Any thoughts? :)

yamochen (Wed, 14 Mar 2018 04:23:18 GMT):
Hello everyone, how do hash the Block Header and verify the Previous Hash in the next block?

yamochen (Wed, 14 Mar 2018 04:55:35 GMT):
I verified successfully

SashiKanth (Wed, 14 Mar 2018 05:10:17 GMT):
Plz, Can anyone answer this queestion https://stackoverflow.com/questions/46465298/understanding-various-certificates-in-hyperledger-fabric

yopep (Wed, 14 Mar 2018 05:13:58 GMT):
Has joined the channel.

yghazi (Wed, 14 Mar 2018 06:43:37 GMT):
Has joined the channel.

junhwanchoi (Wed, 14 Mar 2018 08:36:32 GMT):
Has joined the channel.

Exci (Wed, 14 Mar 2018 09:20:05 GMT):
Is there a straight forward way to get the ID of the last transaction that updated an asset? Right now I'm doing it via getHistoryForKey -> Iterate to last transaction -> get its ID. Feels like there has to be a better way, but I can't see something in the shim documentation.

SumanYadav (Wed, 14 Mar 2018 09:52:38 GMT):
Has joined the channel.

mastersingh24 (Wed, 14 Mar 2018 09:56:44 GMT):
@Exci - that's the right way

Hopes (Wed, 14 Mar 2018 10:04:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2kX5x7pPB6EZMXLZk) @vieiramanoel thank you, it worked!

pankajcheema (Wed, 14 Mar 2018 10:35:35 GMT):

Screenshot from 2018-03-14 16-04-50.png

pankajcheema (Wed, 14 Mar 2018 10:36:04 GMT):
i am trying to instantiate chaincode and everytime i get this error

ShereenSallam (Wed, 14 Mar 2018 10:49:49 GMT):

Screenshot from 2018-03-14 12-47-26.png

Hopes (Wed, 14 Mar 2018 11:04:26 GMT):

Screenshot from 2018-03-14 13-03-25.png

DavidHiston (Wed, 14 Mar 2018 11:59:08 GMT):
Has joined the channel.

pankajcheema (Wed, 14 Mar 2018 12:45:24 GMT):
@ShereenSallam please upload docker logs

pankajcheema (Wed, 14 Mar 2018 12:45:44 GMT):
@Hopes Please upload docker logs

pankajcheema (Wed, 14 Mar 2018 12:47:22 GMT):
Anyone knows where ledger is stored in byfn 1.1.0-rc1. How can I access the file? How can I explore the ledger

pankajcheema (Wed, 14 Mar 2018 12:47:32 GMT):
any help would be appreciated.

pankajcheema (Wed, 14 Mar 2018 12:47:33 GMT):
Thanks

zasamen (Wed, 14 Mar 2018 12:56:27 GMT):
Hi. I got same error with @pankajcheema Could anyone help? command ```root@35e829114266:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o $orderer:7050 -C $CHANNEL_NAME $TLS -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-03-14 12:39:01.290 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-14 12:39:01.290 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-03-14 12:39:01.291 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-03-14 12:39:01.291 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-03-14 12:39:01.291 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-03-14 12:39:01.292 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A9E070A6608031A0C08E5AFA4D50510...324D53500A04657363630A0476736363 2018-03-14 12:39:01.292 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: B707BC1E24D107F4D0C7F35356CCB775497C3FCC13ABC4C95575ED207467C30D Error: Error endorsing chaincode: rpc error: code = Unknown desc = failed to execute transaction: timeout expired while executing transaction ``` logs of chaincode container ```docker logs dev-peer.blockchain.iba-mycc-1.0 ex02 Init Aval = 100, Bval = 200 2018-03-14 12:39:02.149 UTC [shim] handlePutState -> ERRO 001 [5e51af56]Received ERROR. Payload: [[5e51af56 PUT_STATE ERROR]]No ledger context for %!s(MISSING). Sending %!s(MISSING) 2018-03-14 12:39:02.149 UTC [shim] 2 -> ERRO 002 [[5e51af56 ERROR]]Init get error response [%!s(MISSING)]. Sending %!s(MISSING) ```

pankajcheema (Wed, 14 Mar 2018 12:57:56 GMT):
@zasamen Please upload your docker logs. It shows the real error

pankajcheema (Wed, 14 Mar 2018 12:58:00 GMT):
and detailed

zasamen (Wed, 14 Mar 2018 13:01:17 GMT):

Clipboard - March 14, 2018 4:01 PM

zasamen (Wed, 14 Mar 2018 13:01:19 GMT):
@pankajcheema

zasamen (Wed, 14 Mar 2018 13:01:19 GMT):
@pankajcheema here are they

iamdm (Wed, 14 Mar 2018 13:04:28 GMT):
@pankajcheema @zasamen possibly error is chaincode can't connect to peer

iamdm (Wed, 14 Mar 2018 13:04:36 GMT):
check you peer config

pankajcheema (Wed, 14 Mar 2018 13:05:15 GMT):
have u exported tha channel name inside the container

pankajcheema (Wed, 14 Mar 2018 13:05:17 GMT):
>

pankajcheema (Wed, 14 Mar 2018 13:05:48 GMT):
after `docker exec -it cli bash`

iamdm (Wed, 14 Mar 2018 13:07:07 GMT):
ohh i can't help you with `cli` cause i dont' use it, i instantiate manually :)

pankajcheema (Wed, 14 Mar 2018 13:07:53 GMT):
manually ?

pankajcheema (Wed, 14 Mar 2018 13:08:17 GMT):
check `echo $CHANNEL_NAME inside the container`

iamdm (Wed, 14 Mar 2018 13:08:28 GMT):
`manually` seems i start peer and use sdk for instantiation

iamdm (Wed, 14 Mar 2018 13:10:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DKKW2CzRfXWM2ZGBd) @pankajcheema which container do you mean? chaincode container?

pankajcheema (Wed, 14 Mar 2018 13:11:43 GMT):
run `docker exec -it cli bash` in seperate terminal

pankajcheema (Wed, 14 Mar 2018 13:12:15 GMT):
and send me screen log

iamdm (Wed, 14 Mar 2018 13:12:41 GMT):
@pankajcheema i don't use `cli`

pankajcheema (Wed, 14 Mar 2018 13:13:23 GMT):
run `docker ps -a` and send us log

iamdm (Wed, 14 Mar 2018 13:13:49 GMT):
:) what do you want to see?

pankajcheema (Wed, 14 Mar 2018 13:14:26 GMT):
I am going offline sorry

pankajcheema (Wed, 14 Mar 2018 13:14:49 GMT):
i want to see running list of container

ShereenSallam (Wed, 14 Mar 2018 14:00:12 GMT):

Screenshot from 2018-03-14 15-58-00.png

cosminprunaru (Wed, 14 Mar 2018 14:00:44 GMT):
Has joined the channel.

zimabry (Wed, 14 Mar 2018 14:18:18 GMT):

chaincode Invoke error

zimabry (Wed, 14 Mar 2018 14:19:21 GMT):
cannot invoke chaincode. Not sure if my instantiate is working correctly..

ArvsIndrarys (Wed, 14 Mar 2018 14:20:22 GMT):
@zimabry check the logs of the peers and of the orderer if the log_level is debug

zimabry (Wed, 14 Mar 2018 14:23:17 GMT):
@ArvsIndrarys how can I see these logs?

ArvsIndrarys (Wed, 14 Mar 2018 14:24:02 GMT):
with the docker logs command

zimabry (Wed, 14 Mar 2018 14:30:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GfDQhpkQN8mtn56GM) @ArvsIndrarys anything specific I am looking for in the logs of the orderer? I see some WARN messages..

ArvsIndrarys (Wed, 14 Mar 2018 14:33:15 GMT):
the peer logs are more explicit

ArvsIndrarys (Wed, 14 Mar 2018 14:33:45 GMT):
what can be an error for the peers are just warns for the orderers so I check always the peers

ArvsIndrarys (Wed, 14 Mar 2018 14:33:45 GMT):
what can be an error for the peers are just warns for the orderers so I always check the peers

zimabry (Wed, 14 Mar 2018 14:41:18 GMT):

Clipboard - March 14, 2018 10:41 AM

Hopes (Wed, 14 Mar 2018 14:45:56 GMT):

Screenshot from 2018-03-14 16-43-17.png

papegaaij (Wed, 14 Mar 2018 15:09:07 GMT):
Has joined the channel.

papegaaij (Wed, 14 Mar 2018 15:10:23 GMT):
does fabric provide any protection against tampering with the couchdb database?

papegaaij (Wed, 14 Mar 2018 15:11:01 GMT):
I just tried the fabcar example, and after modifying the data in the database, queryCar returns the modified data

brian038 (Wed, 14 Mar 2018 15:16:55 GMT):
Has joined the channel.

bandreghetti (Wed, 14 Mar 2018 15:34:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bwbqv67prFcoi4RfQ) @zimabry what command did you use to instantiate your chaincode? try running ``` $ peer chaincode list --instantiated -C $CHANNEL_NAME ``` to see if it is instantiated correctly

zimabry (Wed, 14 Mar 2018 15:38:50 GMT):
@bandreghetti peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n jitvci -v 1.0 -c '{"Args":[""]}' -P "OR ('VzOrgMSP.member','SupplierOrgMSP.member')" >&log.txt

zimabry (Wed, 14 Mar 2018 15:39:48 GMT):

gloabals

zimabry (Wed, 14 Mar 2018 15:39:54 GMT):
@bandreghetti global variables are here

bandreghetti (Wed, 14 Mar 2018 15:42:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qs8R6NhLmRdR7DSwo) @zimabry what is the return of ```peer chaincode list```?

bandreghetti (Wed, 14 Mar 2018 15:42:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qs8R6NhLmRdR7DSwo) @zimabry what is the return of `peer chaincode list`?

bandreghetti (Wed, 14 Mar 2018 15:42:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qs8R6NhLmRdR7DSwo) @zimabry what does `peer chaincode list` return?

zimabry (Wed, 14 Mar 2018 15:45:10 GMT):

Clipboard - March 14, 2018 11:45 AM

zimabry (Wed, 14 Mar 2018 15:45:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bMyhNnYueAbgJnPbY) @bandreghetti

ntok (Wed, 14 Mar 2018 15:48:19 GMT):
Has joined the channel.

bandreghetti (Wed, 14 Mar 2018 15:50:06 GMT):
@zimabry what fabric version are you using? it seems the list command is not there

zimabry (Wed, 14 Mar 2018 15:50:55 GMT):
@bandreghetti 1.0

zimabry (Wed, 14 Mar 2018 15:52:08 GMT):
@bandreghetti when I run the instantiate code manually I get the following error: Error response from daemon: Container fdef8384d3b93caeb005e8f9e4aeef4ed7d80d718902acafec7614b69db24b9a is not running

bandreghetti (Wed, 14 Mar 2018 15:53:24 GMT):
@zimabry is your peer alive?

zimabry (Wed, 14 Mar 2018 15:54:04 GMT):
@bandreghetti docker ps command shows my chaincode, peers, and orderer

bandreghetti (Wed, 14 Mar 2018 15:55:04 GMT):
@zimabry then who is Container fdef8384d3b93caeb005e8f9e4aeef4ed7d80d718902acafec7614b69db24b9a?

zimabry (Wed, 14 Mar 2018 16:13:47 GMT):
@bandreghetti I am not sure..

unselect (Wed, 14 Mar 2018 19:03:17 GMT):
Has joined the channel.

hamptonsmith (Wed, 14 Mar 2018 19:46:09 GMT):
Anyone have experience with/opinions about pointing Fabric's world db at a Couchbase instance? Supposedly Couchbase is API compatible with CouchDB so in theory this should work, yes?

vparihar (Wed, 14 Mar 2018 20:27:28 GMT):
Has joined the channel.

vparihar (Wed, 14 Mar 2018 20:27:44 GMT):
Hello All - I am quite new to Hyperledger and been only working on it for over a month now. My curiosity is towards how the Hyperledger Fabric infrastructure is being hosted for businesses? Is there any company who is working on deploying Hyperledger in cloud environments perhaps?

mastersingh24 (Wed, 14 Mar 2018 21:11:14 GMT):
@vparihar - several companies: IBM, Oracle, Microsoft, Google, Amazon

vparihar (Wed, 14 Mar 2018 21:13:10 GMT):
Thanks for that information @mastersingh24, however I am looking for more information as in how are they deploying Hyperledger in AWS for example. Are they using HVM for Hyperledger? And if so, how does the deployment might look like in case of autoscaling and how does Hyperledger fabric handle that?

bandreghetti (Wed, 14 Mar 2018 21:22:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=feRaotqiKKJjXNseN) @zimabry try checking the hash under docker ps

gskerry (Wed, 14 Mar 2018 23:12:17 GMT):
Hello all. (I am new to community and to chats. Feel free to redirect me if I’m inquiring in the wrong place). I’m working through the Fabric doc ‘First-Network’ exercise (the ‘How does it work?’ detail sections).

gskerry (Wed, 14 Mar 2018 23:12:36 GMT):
Getting error when trying to join Org2peer0 to channel: “Expected MSP ID Org1MSP, received Org2MSP”. Should CORE_PEER_LOCALMSPID not be Org2MSP when joining Org2 peers?

Taffies (Thu, 15 Mar 2018 02:57:50 GMT):
Hi! Do you know any good way to query a range of values from the value inside the blockchain? I know within the marbles chaincode example, there's one that allows you to query by range for the key - but I'm looking at querying for the value instead

Taffies (Thu, 15 Mar 2018 03:04:23 GMT):
or some kinda timestamp? :grimacing:

Taffies (Thu, 15 Mar 2018 03:50:26 GMT):
Hi! Does anyone have an example of how to perform rich queries in couchdb on two parameters? :)

Taffies (Thu, 15 Mar 2018 04:26:41 GMT):
hello! is there a way to query transactions by a range of time in the chaincode?

juliezhu324 (Thu, 15 Mar 2018 05:26:22 GMT):
Has joined the channel.

SashiKanth (Thu, 15 Mar 2018 05:55:34 GMT):
sashi

SashiKanth (Thu, 15 Mar 2018 05:56:06 GMT):
Plz , Can anyone answer this queestion https://stackoverflow.com/questions/46465298/understanding-various-certificates-in-hyperledger-fabric

username343 (Thu, 15 Mar 2018 06:06:39 GMT):
is there any way i can specify an endorsement policy which states that i require endorsements from any 2 peers of a specific organization, or that i require endorsement from a specific peer (eg. peer a) of an organization?

pankajcheema (Thu, 15 Mar 2018 06:19:33 GMT):
`ERROR: for Hr.debutinfotech.com Cannot start service Hr.debutinfotech.com: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"Hrordere\": executable file not found in $PATH": unknown ` getting this error .at the time of `docker-compose -f docker-compose-cli.yaml up` .Please help if anyone have any idea.

pankajcheema (Thu, 15 Mar 2018 06:19:33 GMT):
`ERROR: for Hr.debutinfotech.com Cannot start service Hr.debutinfotech.com: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"Hrordere\": executable file not found in $PATH": unknown` getting this error .at the time of `docker-compose -f docker-compose-cli.yaml up` .Please help if anyone have any idea.

zasamen (Thu, 15 Mar 2018 07:14:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yAW6DoH5gNXaDrNEW) @iamdm it has worked on fabric 1.0.5, but after upgrade i see that error.

zasamen (Thu, 15 Mar 2018 07:14:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yAW6DoH5gNXaDrNEW) @iamdm it has worked on fabric 1.0.5, but after update i see that error.

iamdm (Thu, 15 Mar 2018 07:15:06 GMT):
@zasamen what version do you use?

zasamen (Thu, 15 Mar 2018 07:16:32 GMT):
1.1.0-rc1

iamdm (Thu, 15 Mar 2018 07:16:59 GMT):
have you used config from previous version?

zasamen (Thu, 15 Mar 2018 07:19:23 GMT):
Yes

zasamen (Thu, 15 Mar 2018 07:19:51 GMT):
Ok. I understand, i try to find the difference. Thank you

zasamen (Thu, 15 Mar 2018 07:28:50 GMT):
Can anybody help me to understand what is "EnableNodeOUs" option for?

zasamen (Thu, 15 Mar 2018 07:55:53 GMT):
@iamdm i checked the config difference and updated my own, but it still doesn't instantiate chaincode.

iamdm (Thu, 15 Mar 2018 07:58:31 GMT):
@zasamen can you show me your config?

Javad (Thu, 15 Mar 2018 08:08:47 GMT):
Has joined the channel.

Javad (Thu, 15 Mar 2018 08:08:57 GMT):
I am getting an issue when i start the "byfn.sh -m up" with the error ./scripts/script.sh no such file or directory

Javad (Thu, 15 Mar 2018 08:09:21 GMT):
What could be the issue ...similarly have observed that the volumes mapped in the docker-compose file are not being identified as valid paths

sapnaupreti (Thu, 15 Mar 2018 08:10:42 GMT):
Has joined the channel.

magicianx25 (Thu, 15 Mar 2018 08:11:20 GMT):
Has joined the channel.

magicianx25 (Thu, 15 Mar 2018 08:11:35 GMT):
Hello. I am trying to generate artifacts but i don't know how to run the cryptogen tool. It says to run command ../bin/cryptogen generate --config=./crypto-config.yaml but I don't understand where to run it from

magicianx25 (Thu, 15 Mar 2018 08:13:40 GMT):
there is a file cryptogen but it is not a folder so can't get to that path

Javad (Thu, 15 Mar 2018 08:15:55 GMT):
Hi Pankaj

Javad (Thu, 15 Mar 2018 08:16:19 GMT):
@pankajcheema did u find a solution for this issue "Hi I removed all the docker images for fabric and pull again and try to run byfn without any changes and getting `starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory"` in scripts script.sh already exist"

zasamen (Thu, 15 Mar 2018 08:35:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v2zLYX7hubfbQjEwZ) @magicianx25 I think you can add bins (cryptogen,configtxgen ....) to `PATH` variable to make them available everywhere. You should tun that command from the directory with `crypto-config.yaml` file (or any other, but you should correct the path to that file)

magicianx25 (Thu, 15 Mar 2018 08:38:41 GMT):
@zasamen I added the bin from platform specific variables to Path and run the command ../bin/cryptogen generate --config=./crypto-config.yaml from the fabric-samples\first-network directory where crypto-config.yaml' is but doesn't work

zasamen (Thu, 15 Mar 2018 08:39:17 GMT):
remove `../bin/cryptogen`

zasamen (Thu, 15 Mar 2018 08:39:17 GMT):
remove `../bin/`

magicianx25 (Thu, 15 Mar 2018 08:40:05 GMT):
then a window opens that asks me how to open the file

magicianx25 (Thu, 15 Mar 2018 08:40:30 GMT):
cryptogen is just a file and doesn't know how to open it

magicianx25 (Thu, 15 Mar 2018 08:41:39 GMT):

1.png

kiattchaip (Thu, 15 Mar 2018 08:44:13 GMT):
@magicianx25 The cryptogen is a command for Unix. You cannot run it on Windows.

magicianx25 (Thu, 15 Mar 2018 08:44:53 GMT):
so what do I do?

magicianx25 (Thu, 15 Mar 2018 08:45:22 GMT):
in the tutorial it doesn't explain anything at all

kiattchaip (Thu, 15 Mar 2018 08:47:17 GMT):
Install Ubuntu or other Linux platforms.

magicianx25 (Thu, 15 Mar 2018 08:47:42 GMT):
so there is no way of doing this in windows?

magicianx25 (Thu, 15 Mar 2018 08:55:56 GMT):
ah i used git bash

zasamen (Thu, 15 Mar 2018 08:56:00 GMT):
please try to open `git bash` application and try to perform

magicianx25 (Thu, 15 Mar 2018 08:56:06 GMT):
yea thanks @zasamen

argman (Thu, 15 Mar 2018 09:08:33 GMT):
Has joined the channel.

khalifa (Thu, 15 Mar 2018 09:22:48 GMT):
Has joined the channel.

WellyTambunan (Thu, 15 Mar 2018 09:36:42 GMT):
Has joined the channel.

WellyTambunan (Thu, 15 Mar 2018 09:38:56 GMT):
WellyTambunan 4:37 PM hi all, i would like to start contribution ? anyone can guide me where to start ?

joaofguerreiro (Thu, 15 Mar 2018 09:55:34 GMT):
Hi everyone. What happens if I try to forge the values of some transaction in Fabric? Will it deny those changes like Bitcoin? Or will it still work and the following transactions won't even notice that the parent transaction was altered?

joaofguerreiro (Thu, 15 Mar 2018 09:56:14 GMT):
Also, is it possible that I just go to my State database and manually change the value of an asset? Or will there be anything stopping me from doing it?

Poneey (Thu, 15 Mar 2018 10:13:24 GMT):
Has joined the channel.

Poneey (Thu, 15 Mar 2018 10:13:33 GMT):
Hi. I am new to hyperledger and i'm trying to follow a tutoriel about an application for tuna fishing but i have an error when i use the interface. Someone can help me .

Poneey (Thu, 15 Mar 2018 10:15:27 GMT):

Clipboard - March 15, 2018 11:15 AM

Yakechi (Thu, 15 Mar 2018 10:22:23 GMT):
Hi, have anyone successfully deploy a Hyperledger-fabric network using Azure's Hyperledger Fabric Single Member Blockchain ??? I'm struggling on the configuration step.

mageover (Thu, 15 Mar 2018 12:42:34 GMT):
Has joined the channel.

mageover (Thu, 15 Mar 2018 12:45:26 GMT):
Hi, guys. I run first-network of fabric-samples on Mac and get some error message.

mageover (Thu, 15 Mar 2018 12:46:47 GMT):

8.45.37.png

mageover (Thu, 15 Mar 2018 12:47:48 GMT):
firstly I run ./byfn.sh -m generate and it works well.

mageover (Thu, 15 Mar 2018 12:48:31 GMT):
but then when I run ./byfn.sh -m up, it reports two error.

mageover (Thu, 15 Mar 2018 12:48:53 GMT):
anyone knows why?

Hopes (Thu, 15 Mar 2018 13:35:43 GMT):
what's the difference between docker-compose-e2e and the docker-compose-base one? What are their uses?

DavidHiston (Thu, 15 Mar 2018 13:54:42 GMT):
gpdr

ntok (Thu, 15 Mar 2018 13:57:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jmt4kiGzvtbpAob7B) @mageover please check ownership of files under fabric-samples . folder

ntok (Thu, 15 Mar 2018 13:58:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BnyD8AsKCFshfzEM5) if owner is root , you need to take ownership for your user: sudo chown -R [your user] *

AnomalRoil (Thu, 15 Mar 2018 14:07:25 GMT):
Has anybody some sort of UML diagram of a system running on Fabric??

mageover (Thu, 15 Mar 2018 14:13:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BnyD8AsKCFshfzEM5) @ntok it works! Thanks very much!! and could you tell me why? when the ownership is root, i run ./byfn.sh -m up in root mode. why it will report errors?

JuanSilva (Thu, 15 Mar 2018 14:16:35 GMT):
Hi, I am getting the following error sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied:

JuanSilva (Thu, 15 Mar 2018 14:17:03 GMT):
log in the peer: 2018-03-15 13:58:38.644 UTC [protoutils] ValidateProposalMessage -> WARN 041 channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 2018-03-15 13:58:54.552 UTC [protoutils] ValidateProposalMessage -> WARN 042 channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 2018-03-15 14:11:44.963 UTC [protoutils] ValidateProposalMessage -> WARN 043 channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority

Hopes (Thu, 15 Mar 2018 14:17:11 GMT):

Screenshot from 2018-03-15 16-12-23.png

Hopes (Thu, 15 Mar 2018 14:17:11 GMT):

Screenshot from 2018-03-15 16-12-23.png

Hopes (Thu, 15 Mar 2018 14:17:11 GMT):

Screenshot from 2018-03-15 16-12-23.png

JuanSilva (Thu, 15 Mar 2018 14:19:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cXsSAqNPJwPyikX3M) registerAdmin.js and registerUser.js are working

amal (Thu, 15 Mar 2018 14:25:03 GMT):
Has joined the channel.

Poneey (Thu, 15 Mar 2018 14:27:29 GMT):
Does someone has followed tutoriel "Writing Your First Application" of Hyperledger-Fabric ?

Poneey (Thu, 15 Mar 2018 14:30:30 GMT):
I have to run this command : "fabric_client.getUserContext('user1', true);" but i have a synthax error

RahulSonanis (Thu, 15 Mar 2018 14:50:23 GMT):
Has joined the channel.

RahulSonanis (Thu, 15 Mar 2018 14:50:37 GMT):
Hello everyone.. I found a problem while invoking chaincode requests through node sdk following some endorsement policy. Can you please help? Link of the detailed question - https://stackoverflow.com/questions/49302463/endorsement-policy-failure-for-invoke-chaincode-request-even-when-sufficient-end

jrosmith (Thu, 15 Mar 2018 15:43:54 GMT):
@RahulSonanis please see my response in #fabric-chaincode-dev

aatkddny (Thu, 15 Mar 2018 16:13:07 GMT):
So I can now enroll a new org in an existing consortium - thanks to whoever did it for that work. What about adding a new consortium and enrolling orgs into it? I have a privacy requirements that I think can only be addressed by ringfencing subsets of my consortium into their own sub-consortiums and instantiating channels from that. Can I duplicate an existing one (from Consortiums.groups) and edit the groups so they are my new orgs and then add it back to the "Consortiums" tree, or is there more to it?

thangnv (Thu, 15 Mar 2018 16:28:37 GMT):
Has joined the channel.

Hopes (Thu, 15 Mar 2018 17:30:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3JbmQzghfhmdksW9w) I fixed this issue by removing the docker images, and downloading the binaries again.

sillysachin (Thu, 15 Mar 2018 17:39:09 GMT):
Has joined the channel.

sillysachin (Thu, 15 Mar 2018 17:39:57 GMT):
anybody familiar hardware sizing for fabric peer nodes, ordering nodes and CA nodes

sillysachin (Thu, 15 Mar 2018 17:40:50 GMT):
i am looking for information relating to hardware sizing and scaling of the nodes in a fabric deployment

silliman (Thu, 15 Mar 2018 17:46:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D2nvTnfzxx6YKmnJz) @Poneey The page you are looking at has commands you are to enter as well as code snippets that are meant for explanation, but the formatting on the page is the same...what you tried to run here and received a syntax error on is a javascript code snippet that is not meant to be run a the command line.

silliman (Thu, 15 Mar 2018 17:46:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D2nvTnfzxx6YKmnJz) @Poneey The page you are looking at has commands you are to enter as well as code snippets that are meant for explanation, but the formatting on the page is the same...what you tried to run here and received a syntax error on is a javascript code snippet that is not meant to be run at the command line.

NAWAZUDDIN552 (Thu, 15 Mar 2018 18:25:04 GMT):
Hello Everyone,

blockgeek (Thu, 15 Mar 2018 18:33:30 GMT):
Has joined the channel.

huy.tranibm (Thu, 15 Mar 2018 21:18:50 GMT):
When a new peer joins a channel, will the new peer's ledger automatically update with the rest of the peers in the channel?

huy.tranibm (Thu, 15 Mar 2018 21:18:50 GMT):
When a new peer joins a channel, will the new peer's ledger automatically update from the other peers ledger?

gskerry (Thu, 15 Mar 2018 22:53:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HGHbqx2ddLkF6EE4d) https://stackoverflow.com/questions/49310345/hyperledger-fabric-failed-to-deserialize-creator-identity-err-expected-msp-id (For more detailed explanation. SO unfortunately blocked inline images).

rupa12 (Fri, 16 Mar 2018 00:10:04 GMT):
I am trying to generate TLS certificates using Fabric CA. I have a fabric-ca-server which is up and running. There is an environment variable called CORE_PEER_TLS_ROOTCERT_FILE=fully qualified path of the file that contains cert chain of the CA that issued the TLS server cert. Does anyone know where I can look for this file?

RJEAN (Fri, 16 Mar 2018 00:19:50 GMT):
Has joined the channel.

RJEAN (Fri, 16 Mar 2018 00:24:52 GMT):
Hi guys, does anyone know how to define a named query to look for an object inside of an array of objects?

huy.tranibm (Fri, 16 Mar 2018 00:46:33 GMT):
@gskerry i think i know your problem, what sdk and version are u running?

oseifrimpong (Fri, 16 Mar 2018 00:48:07 GMT):
Has joined the channel.

Taffies (Fri, 16 Mar 2018 02:18:35 GMT):
Hi! Is there a function for pagination currently for pulling batches of transactions from the blockchain?

gskerry (Fri, 16 Mar 2018 02:31:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ended2g9xdT8dJKLg) @huy.tranibm peer version gives 1.0.5

gskerry (Fri, 16 Mar 2018 02:32:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ended2g9xdT8dJKLg) @huy.tranibm node SDK

libingcheng (Fri, 16 Mar 2018 02:49:41 GMT):
Has joined the channel.

amal (Fri, 16 Mar 2018 04:21:25 GMT):
Hi , I am new to hyperledger. I have some doubts. Can any one help me with that. When I use hyperledger where is the data stored?

NAWAZUDDIN552 (Fri, 16 Mar 2018 06:59:02 GMT):
Hello Everyone, I got an error when I started the docker container "CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up -d" `Error: manifest for hyperledger/fabric-peer: Latest not found` I change the docker-composer-base.yaml to "image:hyperledger/fabric-orderer:x86_64-1.0.0-rc1" But still I got the same error

ShobhitSrivastava (Fri, 16 Mar 2018 07:39:13 GMT):
Has joined the channel.

ShobhitSrivastava (Fri, 16 Mar 2018 07:39:32 GMT):
Hi

ravig-kant (Fri, 16 Mar 2018 07:40:49 GMT):
i didn't understand the purpose of shim API composite key purpose. The key values can be combined in the chain code also. Is there anything special that a developer gets by using shim composite key APIs

ShobhitSrivastava (Fri, 16 Mar 2018 07:40:50 GMT):
Hi , Is there any good document to deploy/test chaincode written on Java in hyperledger?

magicianx25 (Fri, 16 Mar 2018 08:41:54 GMT):
Good morning.I try to create channel transaction artifact but I get an error: the supplied identity is not valid: x509: certificate signed by unknown authority. Anyone knows with this means?

magicianx25 (Fri, 16 Mar 2018 08:42:03 GMT):

1.png

sillysachin (Fri, 16 Mar 2018 09:05:12 GMT):
Hello, All, is there any benchmarking numbers for hyperledger fabric nodes and the hardware sizing needed. What would be CPU/RAM/SSD required for 2 ordering nodes to support 10k transactions per minute

bryceeaton2 (Fri, 16 Mar 2018 09:14:06 GMT):
Has joined the channel.

Poneey (Fri, 16 Mar 2018 09:44:59 GMT):

Clipboard - 16 mars 2018 10:44

RahulSonanis (Fri, 16 Mar 2018 10:01:32 GMT):
@Poneey can you check if your peers are up?

Poneey (Fri, 16 Mar 2018 10:01:51 GMT):
How can i do this ?

RahulSonanis (Fri, 16 Mar 2018 10:02:19 GMT):
@Poneey are you using docker? If yes then run docker ps command

Poneey (Fri, 16 Mar 2018 10:03:50 GMT):

Clipboard - 16 mars 2018 11:03

iserikov (Fri, 16 Mar 2018 10:05:02 GMT):
Has joined the channel.

RahulSonanis (Fri, 16 Mar 2018 10:05:59 GMT):
@Poneey so it looks like your node SDK is not able to connect to peers. Have you used correct network config? Can you check your peer configuration to which you are submitting request?

Poneey (Fri, 16 Mar 2018 10:07:44 GMT):
I have a proxy, maybe it is it who block connection ?

Poneey (Fri, 16 Mar 2018 10:09:16 GMT):
Sorry but i new in Blockchain, i'm following "Writing Your First Application" by Hyperledger .. I don't know how check my peer configuration

RahulSonanis (Fri, 16 Mar 2018 10:09:23 GMT):
If you are locally hosting the HLF network then it may not be a problem

RahulSonanis (Fri, 16 Mar 2018 10:09:41 GMT):
@Poneey which fabric-sample are you trying?

Poneey (Fri, 16 Mar 2018 10:10:14 GMT):
fabcar

Poneey (Fri, 16 Mar 2018 10:10:54 GMT):
I also tried tuna app but i has the same error

RahulSonanis (Fri, 16 Mar 2018 10:11:57 GMT):
Have you tried enrolling admin?

Poneey (Fri, 16 Mar 2018 10:13:08 GMT):
I run "enrollAdmin" and "registerUser" successfully

RahulSonanis (Fri, 16 Mar 2018 10:15:43 GMT):
So error is in invoke right?

Poneey (Fri, 16 Mar 2018 10:16:30 GMT):

Clipboard - 16 mars 2018 11:14

Poneey (Fri, 16 Mar 2018 10:16:59 GMT):
I don't know if it is in invoke or in query

RahulSonanis (Fri, 16 Mar 2018 10:17:05 GMT):
can you do console.log(fabric_client) at line 54?

RahulSonanis (Fri, 16 Mar 2018 10:17:05 GMT):
can you do console.log(fabric_client) at line 53 in invoke.js?

Poneey (Fri, 16 Mar 2018 10:18:09 GMT):
Yes, one minute

ShobhitSrivastava (Fri, 16 Mar 2018 10:19:48 GMT):
Can any one tell me what all change sis required if i want to change to chaincode from GO to Java?

ShobhitSrivastava (Fri, 16 Mar 2018 10:20:13 GMT):
Can any one tell me what all changes are required if I want to change to chaincode from GO to Java?

Poneey (Fri, 16 Mar 2018 10:20:45 GMT):
@RahulSonanis when can I see this console.log ? When i run node query.js ?

RahulSonanis (Fri, 16 Mar 2018 10:20:58 GMT):
when you run invoke.js

Poneey (Fri, 16 Mar 2018 10:21:52 GMT):
It's return "[object Object]"

RahulSonanis (Fri, 16 Mar 2018 10:24:00 GMT):
can you use JSON.stringify(fabric_client)?

Poneey (Fri, 16 Mar 2018 10:24:23 GMT):
i will trie

Poneey (Fri, 16 Mar 2018 10:24:24 GMT):
try

Poneey (Fri, 16 Mar 2018 10:25:31 GMT):
No, i can't, i have this error "Failed to invoke successfully :: TypeError: Converting circular structure to JSON"

RahulSonanis (Fri, 16 Mar 2018 10:27:16 GMT):
use util.inspect(fabric_client) but you need install util submodule using npm install

Poneey (Fri, 16 Mar 2018 10:28:02 GMT):

Clipboard - 16 mars 2018 11:27

Poneey (Fri, 16 Mar 2018 10:28:56 GMT):

Clipboard - 16 mars 2018 11:28

pavithrans (Fri, 16 Mar 2018 11:21:07 GMT):
how to solve the issue while running ./startfabric.sh

pavithrans (Fri, 16 Mar 2018 11:21:12 GMT):
Error response from daemon: Container 507b4b2876e7a92e7fb325ba3cc4837442665758ee7554238aaf8269d769918f is not running

Poneey (Fri, 16 Mar 2018 11:27:07 GMT):
Do you start your docker ?

Poneey (Fri, 16 Mar 2018 11:29:49 GMT):
@pavithrans try "docker --version" to see if docker is running

pavithrans (Fri, 16 Mar 2018 11:34:19 GMT):
if i run "docker --version" it showing below result Docker version 18.02.0-ce, build fc4de447b5

Poneey (Fri, 16 Mar 2018 11:39:03 GMT):
Maybe you has an error when you installed images ... Did you try to reinstall images ?

SashiKanth (Fri, 16 Mar 2018 11:40:53 GMT):
CORE_PEER_GOSSIP_EXTERNALENDPOINT CORE_PEER_GOSSIP_BOOTSTRAP why is this env variables for !!!!

SashiKanth (Fri, 16 Mar 2018 11:40:58 GMT):
?

nikbole90 (Fri, 16 Mar 2018 11:48:56 GMT):
Has joined the channel.

pavithrans (Fri, 16 Mar 2018 11:48:57 GMT):
I also reinstalled images, still the issue exist any other idea :disappointed: ?

zasamen (Fri, 16 Mar 2018 11:58:13 GMT):
Hi, All. Today i have tried to update fabric to from 1.1.0-rc1 to 1.1.0. When i tried to create channel i face that error: ```2018-03-16 11:34:37.713 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ``` Could anyone explain me what is wrong?and about what version is it?

aatkddny (Fri, 16 Mar 2018 12:23:54 GMT):
I've seen that when I accidentally tried to update from the channel genesis block rather than the current one. What did you use to get the channel config bytes?

zasamen (Fri, 16 Mar 2018 13:01:52 GMT):
fabric bun utils

sigma67 (Fri, 16 Mar 2018 13:03:59 GMT):
Has joined the channel.

Poneey (Fri, 16 Mar 2018 13:27:58 GMT):
Someone else have "The 'node invoke.js' will fail until it has been updated with valid arguments " when he run "./startFabric.sh" in fabric-samples/fabcar ?

sillysachin (Fri, 16 Mar 2018 13:33:01 GMT):
which channel discusses security related concepts

jrosmith (Fri, 16 Mar 2018 13:34:01 GMT):
@sillysachin #fabric-crypto might be your best bet? and if not they'll know where to direct you

patelan (Fri, 16 Mar 2018 13:37:36 GMT):
Has joined the channel.

Hopes (Fri, 16 Mar 2018 13:48:17 GMT):
I have a question, what is the difference between the users and the peers folders generated by cryptogen?

RohanMalcolm (Fri, 16 Mar 2018 13:58:19 GMT):
Has joined the channel.

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0-alpha and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ```

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0-alpha and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforce IPv4 instead of IPv6 ...

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0-alpha and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ...

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ...

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... I tried to set a totally other port (3333) but still didn't work

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... [EDITS] I tried to set a totally other port (3333) but still didn't work I found out my peer containers weren't able to attach to the network : ``` "Peers": [ { "Name": "5796dd8eb548", "IP": "172.31.31.186" }, { "Name": "f0060b3b6de1", "IP": "172.31.17.233" }, { "Name": "0f733e230ad2", "IP": "172.31.19.76" } ```

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... [EDITS] I tried to set a totally other port (3333) but still didn't work I found out my peer containers weren't able to attach to the network (docker inspect result): ``` "f73e520c3d8907e6b0b37d922d90521ff6839a259b80718f731583d0fcc555af": { "Name": "dev_orderer_dev_0.1.90ncubx429x6lwe903n7xaosk", "EndpointID": "3ae18c5cd4f16ea2bed195069d217d677729ed4579f6eb0372c39fc761e0c80c", "MacAddress": "02:42:0a:00:04:91", "IPv4Address": "10.0.4.145/24", "IPv6Address": "" } }, "Options": { "com.docker.network.driver.overlay.vxlanid_list": "4357" }, "Labels": {}, "Peers": [ { "Name": "5796dd8eb548", "IP": "172.31.31.186" }, { "Name": "f0060b3b6de1", "IP": "172.31.17.233" }, { "Name": "0f733e230ad2", "IP": "172.31.19.76" } ```

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... [EDITS] I tried to set a totally other port (3333) but still didn't work I found out my peer containers weren't able to attach to the network (docker inspect result): ``` "f73e520c3d8907e6b0b37d922d90521ff6839a259b80718f731583d0fcc555af": { "Name": "dev_orderer_dev_0.1.90ncubx429x6lwe903n7xaosk", "EndpointID": "3ae18c5cd4f16ea2bed195069d217d677729ed4579f6eb0372c39fc761e0c80c", "MacAddress": "02:42:0a:00:04:91", "IPv4Address": "10.0.4.145/24", "IPv6Address": "" } }, "Options": { "com.docker.network.driver.overlay.vxlanid_list": "4357" }, "Labels": {}, "Peers": [ { "Name": "5796dd8eb548", "IP": "172.31.31.186" }, { "Name": "f0060b3b6de1", "IP": "172.31.17.233" }, { "Name": "0f733e230ad2", "IP": "172.31.19.76" } ``` I had never had that problem before being on the 1.1.0 version, does someone know what update could lead to that behavior change?

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... [EDITS] I tried to set a totally other port (3333) but still didn't work I found out my peer containers attach to the network differently (docker inspect result): ``` "f73e520c3d8907e6b0b37d922d90521ff6839a259b80718f731583d0fcc555af": { "Name": "dev_orderer_dev_0.1.90ncubx429x6lwe903n7xaosk", "EndpointID": "3ae18c5cd4f16ea2bed195069d217d677729ed4579f6eb0372c39fc761e0c80c", "MacAddress": "02:42:0a:00:04:91", "IPv4Address": "10.0.4.145/24", "IPv6Address": "" } }, "Options": { "com.docker.network.driver.overlay.vxlanid_list": "4357" }, "Labels": {}, "Peers": [ { "Name": "5796dd8eb548", "IP": "172.31.31.186" }, { "Name": "f0060b3b6de1", "IP": "172.31.17.233" }, { "Name": "0f733e230ad2", "IP": "172.31.19.76" } ``` I had never had that problem before being on the 1.1.0 version, does someone know what update could lead to that behavior change?

ArvsIndrarys (Fri, 16 Mar 2018 14:03:56 GMT):
Hi guys ! I just updated my network from 1.0.4 to 1.1.0 and I got this error on only one peer : ``` dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.546 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer_dev_0:7052 dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.547 UTC [accessControl] newCertKeyPair -> DEBU 029 Classified peer_dev_0 as a hostname, adding it as a DNS SAN dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] createChaincodeServer -> ERRO 02a Error creating GRPC server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | 2018-03-16 14:00:13.548 UTC [nodeCmd] serve -> CRIT 02b Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address dev_peer_dev_0.1.hkafojhhpubf@ec1 | panic: Failed to create chaincode server: listen tcp 10.0.4.74:7052: bind: cannot assign requested address ``` Can someone help me out? For the error `cannot assign requested address` I only get something about enforcing IPv4 instead of IPv6 ... [EDITS] I tried to set a totally other port (3333) but still didn't work I found out my peer containers attach to the network differently (docker inspect result): ``` "f73e520c3d8907e6b0b37d922d90521ff6839a259b80718f731583d0fcc555af": { "Name": "dev_orderer_dev_0.1.90ncubx429x6lwe903n7xaosk", "EndpointID": "3ae18c5cd4f16ea2bed195069d217d677729ed4579f6eb0372c39fc761e0c80c", "MacAddress": "02:42:0a:00:04:91", "IPv4Address": "10.0.4.145/24", "IPv6Address": "" } }, "Options": { "com.docker.network.driver.overlay.vxlanid_list": "4357" }, "Labels": {}, "Peers": [ { "Name": "5796dd8eb548", "IP": "172.31.31.186" }, { "Name": "f0060b3b6de1", "IP": "172.31.17.233" }, { "Name": "0f733e230ad2", "IP": "172.31.19.76" } ``` I had never had that problem before being on the 1.1.0 version, does someone know what update could lead to that behavior change? [RESOLVED] I had to put CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 to make it work ; it was unset before, so I would guess its default behavior was faulty?

RohanMalcolm (Fri, 16 Mar 2018 14:06:43 GMT):
Hey I don't know if this is the right place to ask this and if it is not I would greatly appreciate being pointed to the right place. I am trying to figure out the minimum requirements for running a hyperledger setup. I understand that each individual setup will have its own requirements, but was wondering if there is a general rule to follow. My local setup contains 3 peers, 2 organizations, 1 orderer, with kafka. Hyperledger is version 1.1.0. I had previously ran versions 0.6 and alpha 1 preview with the same setup excluding zookeeper and it worked good locally and on a remote server (2 gigs of RAM). After upgrading to 1.1 and adding kafka it basically brings my local system to a standstill and watching the memory usage on the remote server climb to over 5 gigs of ram.

ArvsIndrarys (Fri, 16 Mar 2018 14:12:12 GMT):
vim @darrell.odonnell

darrell.odonnell (Fri, 16 Mar 2018 14:12:12 GMT):
Has joined the channel.

michaelschapira (Fri, 16 Mar 2018 14:28:18 GMT):
Has joined the channel.

fkrzewinski (Fri, 16 Mar 2018 14:29:10 GMT):
Has joined the channel.

michaelschapira (Fri, 16 Mar 2018 14:38:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zDLxFgkkcCYEtRd2P) I seem to have the exact same problem when starting ./startFabric.sh. I run under Ubuntu Xenial and followed the doc from https://hyperledger.github.io/composer/installing/development-tools.html

michaelschapira (Fri, 16 Mar 2018 14:49:56 GMT):
Ok. Doing a little digging. when looking at the peer0.org1.example.com container logs, here is what I found `2018-03-16 14:21:46.893 UTC [couchdb] CreateConnectionDefinition -> DEBU 00e Exiting CreateConnectionDefinition() 2018-03-16 14:21:46.893 UTC [couchdb] VerifyCouchConfig -> DEBU 00f Entering VerifyCouchConfig() 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 010 Entering handleRequest() method=GET url=http://couchdb:5984/ 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 011 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-03-16 14:21:46.897 UTC [couchdb] handleRequest -> WARN 012 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.18.0.3:5984: getsockopt: connection refused 2018-03-16 14:21:47.023 UTC [couchdb] handleRequest -> DEBU 013 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f8024b0d259]` Can someone please give me advices?

michaelschapira (Fri, 16 Mar 2018 14:49:56 GMT):
Ok. Doing a little digging. when looking at the peer0.org1.example.com container logs, here is what I found ``2018-03-16 14:21:46.893 UTC [couchdb] CreateConnectionDefinition -> DEBU 00e Exiting CreateConnectionDefinition() 2018-03-16 14:21:46.893 UTC [couchdb] VerifyCouchConfig -> DEBU 00f Entering VerifyCouchConfig() 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 010 Entering handleRequest() method=GET url=http://couchdb:5984/ 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 011 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-03-16 14:21:46.897 UTC [couchdb] handleRequest -> WARN 012 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.18.0.3:5984: getsockopt: connection refused 2018-03-16 14:21:47.023 UTC [couchdb] handleRequest -> DEBU 013 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f8024b0d259]`` Can someone please give me advices?

Mihai.A (Fri, 16 Mar 2018 14:52:00 GMT):
Has joined the channel.

michaelschapira (Fri, 16 Mar 2018 14:52:36 GMT):
Ok. Doing a little digging. when looking at the peer0.org1.example.com container logs, here is what I found Can someone please give me advices?

michaelschapira (Fri, 16 Mar 2018 14:52:45 GMT):
`2018-03-16 14:21:46.893 UTC [couchdb] CreateConnectionDefinition -> DEBU 00e Exiting CreateConnectionDefinition() 2018-03-16 14:21:46.893 UTC [couchdb] VerifyCouchConfig -> DEBU 00f Entering VerifyCouchConfig() 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 010 Entering handleRequest() method=GET url=http://couchdb:5984/ 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 011 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-03-16 14:21:46.897 UTC [couchdb] handleRequest -> WARN 012 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.18.0.3:5984: getsockopt: connection refused 2018-03-16 14:21:47.023 UTC [couchdb] handleRequest -> DEBU 013 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f8024b0d259]`

michaelschapira (Fri, 16 Mar 2018 14:53:39 GMT):

michaelschapira (Fri, 16 Mar 2018 14:53:57 GMT):
2018-03-16 14:21:46.893 UTC [couchdb] CreateConnectionDefinition -> DEBU 00e Exiting CreateConnectionDefinition() 2018-03-16 14:21:46.893 UTC [couchdb] VerifyCouchConfig -> DEBU 00f Entering VerifyCouchConfig() 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 010 Entering handleRequest() method=GET url=http://couchdb:5984/ 2018-03-16 14:21:46.893 UTC [couchdb] handleRequest -> DEBU 011 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-03-16 14:21:46.897 UTC [couchdb] handleRequest -> WARN 012 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.18.0.3:5984: getsockopt: connection refused 2018-03-16 14:21:47.023 UTC [couchdb] handleRequest -> DEBU 013 HTTP Request: GET / HTTP/1.1 | Host: couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f8024b0d259]

darioAnongba (Fri, 16 Mar 2018 15:04:49 GMT):
Has joined the channel.

SB85 (Fri, 16 Mar 2018 15:23:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZtKaSmkuzpjTaGSkz) @Saschaka I was looking for this. http://hyperledger-fabric.readthedocs.io/en/latest/gossip.html?highlight=world%20state. This gives complete understanding how peers get synched up

michaelschapira (Fri, 16 Mar 2018 15:24:59 GMT):
@pavithrans restarting peer0.org1.example.com container made the trick for me (seems like).

michaelschapira (Fri, 16 Mar 2018 15:25:08 GMT):
issue docker start peer0.org1.example.com

patelan (Fri, 16 Mar 2018 15:48:56 GMT):
Hi All, I am part of one finance company and we are using hyperledger 1.0.3. We deployed all services in Docker UCP (Enterprise Edition). After 15 mins call is timing out from fabric SDK(node) to Peers. 0|ProxyAPI | error: [Peer.js]: sendProposal - timed out after:45000 0|ProxyAPI | error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT 0|ProxyAPI | at Timeout._onTimeout (/src/node_modules/fabric-client/lib/Peer.js:107:19) 0|ProxyAPI | at ontimeout (timers.js:386:11) 0|ProxyAPI | at tryOnTimeout (timers.js:250:5) 0|ProxyAPI | at Timer.listOnTimeout (timers.js:214:5) Your assistance in this matter is greatly appreciated.

AnomalRoil (Fri, 16 Mar 2018 16:35:27 GMT):
Hello there. I've just re-read http://hyperledger-fabric.readthedocs.io/en/latest/txflow.html follwing @mikykey's question in #fabric and I've stumbled upon this mention in the Ledger update phase : `Each peer appends the block to the channel’s chain, and for each valid transaction the write sets are committed to current state database. An event is emitted, to notify the client application that the transaction (invocation) has been immutably appended to the chain, as well as notification of whether the transaction was validated or invalidated.` And I'm wondering who is in charge of emitting the event to notify the client application that the transaction has been appended to the chain. Will that be done by the OSNs (but then, how could they say whether the tx was validated or invalidated)? Will each peer in the network emit that event? Is it handled in a different way?

azanux (Fri, 16 Mar 2018 18:35:21 GMT):
Has joined the channel.

ongar (Fri, 16 Mar 2018 19:59:42 GMT):
Did anyone why the following error happens?

ongar (Fri, 16 Mar 2018 19:59:42 GMT):
Does anyone know why we get the following error, and what to to resolve it?

ongar (Fri, 16 Mar 2018 19:59:42 GMT):
Does anyone know why we get the following error, and what to do to resolve it?

ongar (Fri, 16 Mar 2018 20:01:53 GMT):
``` Creating peer1.org2.example.com ... done Creating cli ... done Creating peer1.org1.example.com ... Creating peer0.org2.example.com ... Creating orderer.example.com ... Creating peer0.org1.example.com ... Creating cli ... ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=DEBUG CORE_PEER_ADDRESS=peer0.org1.example.com:7051 2018-03-16 19:55:29.915 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-16 19:55:29.915 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-03-16 19:55:29.922 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-03-16 19:55:29.923 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2018-03-16 19:55:29.923 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2018-03-16 19:55:29.923 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2018-03-16 19:55:29.923 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2018-03-16 19:55:29.923 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A88060A074F7267314D535012FC052D...53616D706C65436F6E736F727469756D 2018-03-16 19:55:29.923 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: E181DDA144941E411159ADD2CFF28797547B2A9F36945C102415F81D85A90AC9 2018-03-16 19:55:29.923 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2018-03-16 19:55:29.923 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2018-03-16 19:55:29.923 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2018-03-16 19:55:29.923 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2018-03-16 19:55:29.923 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1508021A0608B1C2B0D50522...4CAAB54234281E8A7432C5EE08D2ABD0 2018-03-16 19:55:29.923 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 1001BF745547315D387F323E34CC1E199B2F9A72C2B5A3222EFEA29DFF7197CC Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

ongar (Fri, 16 Mar 2018 20:04:34 GMT):
I'm running byfn on RHEL7 and I didn't make any modifications

Hopes (Fri, 16 Mar 2018 21:29:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g2B8as9RCBQMyngvC) @ongar try doing ./byfn.sh -m down to delete the files that were previously created and do the same command with

Hopes (Fri, 16 Mar 2018 21:29:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g2B8as9RCBQMyngvC) @ongar try doing ./byfn.sh -m down to delete the files that were previously created and do the same command with 'up' again.

Hopes (Fri, 16 Mar 2018 21:29:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g2B8as9RCBQMyngvC) @ongar try doing ./byfn.sh -m down to delete the files that were previously created and do the same command with 'up' again. I used to have such an error but when I was manually bringing up the network, and it eventually got fixed by removing the docker images and re-installing them again alongside the fabric-samples folder.

Hopes (Fri, 16 Mar 2018 22:00:09 GMT):

Screenshot from 2018-03-16 23-59-15.png

Hopes (Fri, 16 Mar 2018 22:00:09 GMT):

Screenshot from 2018-03-16 23-59-15.png

ongar (Fri, 16 Mar 2018 22:12:00 GMT):
@Hopes - Thank you very much for the insights. I will try it now.

ongar (Fri, 16 Mar 2018 22:18:22 GMT):
Awesome - it works !!!

Hopes (Fri, 16 Mar 2018 22:22:55 GMT):
I am glad it worked! :grin:

ongar (Fri, 16 Mar 2018 22:23:32 GMT):
On a different note - Just wondering why HSM support is still not available in Fabric on the server-side (MSP/BCCSP). It is puzzling how the designers decided to keep whole bunch of crypto material on file system, the while the product is touted to be an enterprise-grade thing

ongar (Fri, 16 Mar 2018 22:23:32 GMT):
On a different note - Just wondering why HSM support is still not available in Fabric on the server-side (MSP/BCCSP). It is puzzling how the designers decided to keep whole bunch of crypto material on file system, while the product is touted to be an enterprise-grade thing

ongar (Fri, 16 Mar 2018 22:31:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yeQYmiGZbfZ84p4Kz) @Hopes Yep. Super!!

ongar (Fri, 16 Mar 2018 22:33:56 GMT):
This whole project appears like devised to bring sales to the IBM-hosted blockchain platform, because the plain vanilla version of the fabric (opensource github version) is hardly usable in business scenario.

ongar (Fri, 16 Mar 2018 22:35:53 GMT):
The security practices are being introduced as an afterthought to a product in the crypto/blockchain domain

ongar (Fri, 16 Mar 2018 22:35:53 GMT):
The security practices (HSM support etc) are being introduced as an afterthought to a product in the crypto/blockchain domain

ongar (Fri, 16 Mar 2018 22:37:15 GMT):
The most simple scenario of one orderer, two peers (as in examples) involves storing 16 private keys in the file system

ongar (Fri, 16 Mar 2018 22:37:15 GMT):
The most simple scenario of one orderer, two peers (as in examples) involves storing and handling of 16 private keys in the file system

ongar (Fri, 16 Mar 2018 22:37:15 GMT):
The most simple scenario of one orderer, two peers (as in examples) involves storing and handling of 16 private keys in the file system, for this bloated design

ongar (Fri, 16 Mar 2018 22:40:08 GMT):
Design of the crypto provider interfaces (for both for SDK and for MSP) assume that keys are available to the callers and keys will passed when the API calls are made for any crypto processing.

ongar (Fri, 16 Mar 2018 22:41:17 GMT):
Can someone from the Fabric team please comment on the above-mentioned observations?

chenjun-bj (Sat, 17 Mar 2018 01:01:53 GMT):
Has joined the channel.

ssaddem (Sat, 17 Mar 2018 03:14:57 GMT):
Has joined the channel.

ssaddem (Sat, 17 Mar 2018 03:17:06 GMT):
hi i have the following error in https://github.com/hyperledger/fabric-samples/tree/master/chaincode-docker-devmode [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp: signing identity expired 3010h4m31.397716393s ago i want to regenerate certs i dont know how

magicianx25 (Sat, 17 Mar 2018 07:53:20 GMT):
Good morning.I try to create channel transaction artifact but I get an error: the supplied identity is not valid: x509: certificate signed by unknown authority. Anyone knows with this means?

magicianx25 (Sat, 17 Mar 2018 07:53:20 GMT):
Good morning.I am trying to create channel transaction artifact but I get an error: the supplied identity is not valid: x509: certificate signed by unknown authority. Anyone knows with this means?

magicianx25 (Sat, 17 Mar 2018 07:53:33 GMT):

1.png

sillysachin (Sat, 17 Mar 2018 10:29:15 GMT):
Has anybody done hyperledger setup with hardware sizing in mind? What sort of setup allows 1000 or 10,000 transactions per day ?

tonihurtado (Sat, 17 Mar 2018 11:50:47 GMT):
Has joined the channel.

schwinnez (Sat, 17 Mar 2018 13:43:14 GMT):
@magicianx25 looks like your certificates are not valid. Did you use cryptogen for the generation of the MSPs?

schwinnez (Sat, 17 Mar 2018 13:45:03 GMT):
@sillysachin Depends maybe on the size of your transactions and your network topology, but i think the best you could do is loadtesting your network. You can use simply docker stats or some other tool to watch the behaviour of your containers while firering transactions.

schwinnez (Sat, 17 Mar 2018 13:53:30 GMT):
I just realized, that in my channel and orderer configuration, there is no information about anchor peers at all. I had a look into the configurations and genesis block and I couldn't find the anchor peer information. I thought, that since i configured it in the config-tx.yaml, that it is contained in the orderer genisis or channel genesis. But the it looks like anchor peers have to be configured separately by configuration updates. Looks like my network is working without the anchor peers. But then, what exactly do I need the anchor peers for? A similar question has been asekd here : https://stackoverflow.com/questions/45632859/what-is-anchor-peer-in-fabric . But i still didn't get what i exactly need the anchors for? What am I missing or what problems might happen without any anchor peer information?

VinayChaudhary (Sat, 17 Mar 2018 14:51:48 GMT):
Has joined the channel.

VinayChaudhary (Sat, 17 Mar 2018 15:32:27 GMT):

Clipboard - March 17, 2018 9:01 PM

VinayChaudhary (Sat, 17 Mar 2018 15:35:03 GMT):
Can anyone help me out with error as "FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':core:chaincode:shim:java'. > No signature of method: org.gradle.api.internal.tasks.DefaultTaskInputs.source() is applicable for argument types: (com.google.protobuf.gradle.ProtobufSourceDirectorySet_Decorated) values: [main Proto source] Possible solutions: collect(), use([Ljava.lang.Object;)"

Saschaka (Sat, 17 Mar 2018 15:41:10 GMT):
Forks possible? Client asked what happens when we have bigger fabric network is split up for whatever reason. So that we have two set of nodes which are still able to find consensus. Would that lead to a fork?

akshaynet (Sat, 17 Mar 2018 16:38:44 GMT):
I am following the instructions given on http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html to setup and execute fabric-ca server & client. But, while executing the below register command through the client, getting the error. terminal$ fabric-ca-client register --id.name admin2 --id.affiliation org1.department1 --id.attrs 'hf.Revoker=true,admin=true:ecert' Error Message received - Error: Error response from server was: Authorization failure. Need help in getting this resolved.

patelan (Sat, 17 Mar 2018 19:23:44 GMT):
patelan

magicianx25 (Sat, 17 Mar 2018 21:50:02 GMT):
I am trying to pass in the channel configuration transaction artifact to the order-er using the command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem But I get an error: 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" What does this error mean? and how can I fix it?

magicianx25 (Sat, 17 Mar 2018 21:50:02 GMT):
I am trying to pass in the channel configuration transaction artifact to the order-er using the command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem But I get an error: 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" What does this error mean? and how can I fix it?

dokany (Sun, 18 Mar 2018 10:17:23 GMT):
Guys I'm on macOS and I'm going through the first-network tutorial and the bringing up the network gives me this error

dokany (Sun, 18 Mar 2018 10:18:01 GMT):

first-network_up_error

magicianx25 (Sun, 18 Mar 2018 10:34:38 GMT):
did you generate first?

magicianx25 (Sun, 18 Mar 2018 10:35:11 GMT):
and do you have docker running?

dokany (Sun, 18 Mar 2018 11:39:55 GMT):
Yes and yes.

magicianx25 (Sun, 18 Mar 2018 12:08:05 GMT):
maybe try and delete the fabric folder and download again

magicianx25 (Sun, 18 Mar 2018 12:08:54 GMT):
not really sure why its not working. don't really know about mac

dokany (Sun, 18 Mar 2018 12:58:50 GMT):
I tried that a few times :/

darrell.odonnell (Sun, 18 Mar 2018 13:14:56 GMT):
Has left the channel.

OmarKayali (Sun, 18 Mar 2018 14:24:14 GMT):
Has joined the channel.

OmarKayali (Sun, 18 Mar 2018 14:25:56 GMT):
I would be grateful if you could answer the below questions, Do all peers have access to assets and smart contracts since they are replicated? What if access is restricted using ACL rules? If a peer is not allowed to view an asset (by ACL rules), how can its smart contract use that asset in a calculation? Does ACL restrict access to an asset by encrypting it?

OmarKayali (Sun, 18 Mar 2018 14:25:56 GMT):
I would be grateful if you could answer the below questions, Do all peers have access to assets and smart contracts since they are replicated? What if access is restricted using ACL rules? If a peer is not allowed to view an asset (by ACL rules), how can its smart contract use that asset in a calculation? Does ACL restrict access to an asset by encrypting it?

manish27 (Sun, 18 Mar 2018 16:48:03 GMT):
Has joined the channel.

manish27 (Sun, 18 Mar 2018 16:49:46 GMT):
Hello Everyone, I am executing "./byfn.sh -m up" commands in first-network fabric samples and getting the below exception

manish27 (Sun, 18 Mar 2018 16:50:02 GMT):
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such fi le or directory": unknown ERROR !!!! Test failed

manish27 (Sun, 18 Mar 2018 16:51:18 GMT):
Any help would be appreciated :)

rrantzau (Sun, 18 Mar 2018 18:48:10 GMT):
Has joined the channel.

Gerard9494 (Sun, 18 Mar 2018 19:16:28 GMT):
Hello everyone, I am trying to deploy a new Blockchain network and I got this error at the moment to start the CouchDB container. [os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang Could somebody help me? Many thanks for your time ! :) Container information: couchdb10: container_name: couchdb10 image: hyperledger/fabric-couchdb:x86_64-1.0.4 ports: - 5984:5984 environment: DB_URL: http://localhost:5984/member_db

shivgupta (Sun, 18 Mar 2018 20:49:53 GMT):
Has joined the channel.

IgnacioDiazVa (Mon, 19 Mar 2018 01:15:10 GMT):
Has joined the channel.

liuhaifeng (Mon, 19 Mar 2018 01:52:08 GMT):
Hi Is there Inter-Blockchain Communication design in Hyperledger fabric plan?

TobiasN (Mon, 19 Mar 2018 05:16:40 GMT):
@liuhaifeng there is the event API's that let you easily build integrations with third party systems and blockchains

duwenhui (Mon, 19 Mar 2018 06:14:12 GMT):
Has joined the channel.

ZhangQiankun (Mon, 19 Mar 2018 06:37:18 GMT):
Has joined the channel.

zhaoyulong (Mon, 19 Mar 2018 08:21:07 GMT):
Has joined the channel.

jiedeng (Mon, 19 Mar 2018 08:33:13 GMT):
Has joined the channel.

jiedeng (Mon, 19 Mar 2018 08:33:21 GMT):
hello, i want to know where is the configtx.yml's description, thank you

argman (Mon, 19 Mar 2018 08:47:20 GMT):
Hello! I use Fabric 1.1 and when I try to create channel I get next message: ```2018-03-19 08:45:27.358 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AE8060A1408021A0608A7F1BDD50522...2A56B2D0C0626331AB515F78F40B14F8 2018-03-19 08:45:27.358 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: DEC09A0BA7CDF48D208AA7F77933A04FBE5BF7783456474972D6F6D2C0A8F86B Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` Can you help me?

pankajcheema (Mon, 19 Mar 2018 09:39:55 GMT):
```ca.example.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca.example.com - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/ ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' volumes: - ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca.example.com networks: - basic``` ca.example.com not working in basic network.Please help me.

pankajcheema (Mon, 19 Mar 2018 09:48:28 GMT):
Found solution we need to add CA key here `- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/ `

pankajcheema (Mon, 19 Mar 2018 09:48:28 GMT):
Found solution we need to add CA key here `- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/`

PieterBogemans (Mon, 19 Mar 2018 09:57:29 GMT):
Hi! I'm trying to set up an application to show some simple data graphically, I've set up the network and can query using CLI and the query.js file. Is there any sample project that does something similar to what I'm looking for? Or any tips that I can start looking in the right direction?

matthewehoward (Mon, 19 Mar 2018 11:07:20 GMT):
Has joined the channel.

pankajcheema (Mon, 19 Mar 2018 11:27:42 GMT):
Hello guys

pankajcheema (Mon, 19 Mar 2018 11:27:57 GMT):
I tried to execute this command ```peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` on a cli container

pankajcheema (Mon, 19 Mar 2018 11:28:23 GMT):
But I am getting this error ```2018-03-19 11:27:07.193 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-03-19 11:27:07.193 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: tls: first record does not look like a TLS handshake Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server```

Unni_1994 (Mon, 19 Mar 2018 11:28:39 GMT):
Has joined the channel.

pankajcheema (Mon, 19 Mar 2018 11:30:46 GMT):

1.png

pankajcheema (Mon, 19 Mar 2018 11:31:02 GMT):
Any help/suggestion would be appreciated

pankajcheema (Mon, 19 Mar 2018 11:31:04 GMT):
Thanks

magicliang (Mon, 19 Mar 2018 11:34:11 GMT):
A serious security problem about underlying ledger state storage. Is the ledger data encrypted by peer keystore? No matter using LevelDB or CouchDB, if someone hack into the container, and get the data file using by db storage, can they just read the ledger's world state directly?

zasamen (Mon, 19 Mar 2018 11:34:59 GMT):
@pankajcheema is the tls enabled in peers and orderer containers?

magicliang (Mon, 19 Mar 2018 11:35:20 GMT):
I heard that this is a common issue and Fabric 1.1 fix that. Can someone elaborate this that if I use Fabric 1.1, should I worry about that?

canerbuga (Mon, 19 Mar 2018 11:43:42 GMT):
Has joined the channel.

pankajcheema (Mon, 19 Mar 2018 12:09:43 GMT):
@magicliang Is this Issue in Fabric 1.1 ?

pankajcheema (Mon, 19 Mar 2018 12:11:31 GMT):
@zasamen yes TLS is enabled

pankajcheema (Mon, 19 Mar 2018 12:12:17 GMT):
Below is the cli configurations ``` cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp - CORE_CHAINCODE_KEEPALIVE=10 - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/ - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/ networks: - basic #depends_on: # - orderer.example.com # - peer0.org1.example.com # - couchdb```

magicliang (Mon, 19 Mar 2018 12:12:25 GMT):
https://www.hyperledger.org/blog/2017/11/02/hyperledger-fabric-v1-1-0-preview-is-now-available

magicliang (Mon, 19 Mar 2018 12:12:37 GMT):
acorrding to this, it is an issue.

pankajcheema (Mon, 19 Mar 2018 12:13:22 GMT):
If I run this command ```peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx``` [without tls and ca file] it runs fine

MWard 2 (Mon, 19 Mar 2018 12:37:11 GMT):
Has joined the channel.

pavithrans (Mon, 19 Mar 2018 12:47:24 GMT):
2018-03-19 18:10:45.335 IST [common/tools/configtxgen/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type "" 2018-03-19 18:10:45.338 IST [common/tools/configtxgen] func1 -> ERRO 003 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH is set to a path which contains configtx.yaml

pavithrans (Mon, 19 Mar 2018 12:49:01 GMT):
can any one explain how to fix the errors in docker terminal?

kit (Mon, 19 Mar 2018 13:45:15 GMT):
Has joined the channel.

kit (Mon, 19 Mar 2018 13:46:43 GMT):
Hello guys! Today I started getting this strange error. Could someone please help with this? `Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/myppkg/vendor/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of: /chaincode/input/src/myppkg/vendor/github.com/hyperledger/fabric/vendor/plugin (vendor tree) /chaincode/input/src/myppkg/vendor/plugin /opt/go/src/plugin (from $GOROOT) /chaincode/input/src/plugin (from $GOPATH) /opt/gopath/src/plugin`

kit (Mon, 19 Mar 2018 13:47:11 GMT):
on Friday everything worked fine.

kit (Mon, 19 Mar 2018 13:51:51 GMT):
it seems that plugin package missed in repository

kit (Mon, 19 Mar 2018 13:51:51 GMT):
it seems that «plugin» package missed in repository

lz331 (Mon, 19 Mar 2018 14:37:53 GMT):
Has joined the channel.

lz331 (Mon, 19 Mar 2018 14:38:08 GMT):
Hi team, I'm new to this chat. Could I please get some help on using "node query.js" with my script? My error is: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Failed to deserialize creator identity, err MSP DEFAULT is unknown But I double checked that DEFAULT is my peer's MSPID. Any suggestions?

tchataigner (Mon, 19 Mar 2018 14:41:21 GMT):
Has joined the channel.

rajswarnam (Mon, 19 Mar 2018 14:42:02 GMT):
Has joined the channel.

tchataigner (Mon, 19 Mar 2018 14:45:43 GMT):
Hey guys ! I'm currently studying feasability for a use case i'm working on. I'm considering Fabric but i just have kind of a misunderstanding. So i want to use dlt to calculate some amount of money and share it in between participant BUT as some of the contract are private i don't want to show every amount to everyone on the network. From what i understood channels is what i should use there. But isn't it strange to kinda "recreate" a ledger to ensure privacy ? Is there another way to do it ?

tchataigner (Mon, 19 Mar 2018 14:45:43 GMT):
Hey guys ! I'm currently studying feasability for a use case i'm working on. I'm considering Fabric but i just have kind of a misunderstanding. So i want to use dlt to calculate some amount of money and share it in between participant BUT as some of the contract are private i don't want to show every amount to everyone on the network. From what i understood channels is what i should use there. But isn't it strange to kinda "recreate" a ledger everytime to ensure privacy ? Is there another way to do it ?

UmeshAsaigoli (Mon, 19 Mar 2018 15:54:18 GMT):
@tchataigner - As per my understanding Ledger is not per channel. Channel is part of blockchain system you are using to share money. Peer nodes will have copy of ledger, and your private channel is associated with peers; since your transaction is part of channel, visibility is only to channel participants.

tchataigner (Mon, 19 Mar 2018 15:59:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bf4c2XHuZeFgMiJAX) @UmeshAsaigoli From the Fabric doc : `Although any one anchor peer can belong to multiple channels, and therefore maintain multiple ledgers, no ledger data can pass from one channel to another. This separation of ledgers, by channel, is defined and implemented by configuration chaincode, the identity membership service and the gossip data dissemination protocol.` Here they mention multiple ledger w/ multiple channels. So privacy, from what i understand, exists because there is kinda like multiple blockchain.

UmeshAsaigoli (Mon, 19 Mar 2018 16:56:12 GMT):
@tchataigner - hum....yeah. from glossary: A channel is a private blockchain overlay which allows for data isolation and confidentiality. A channel-specific ledger is shared across the peers in the channel, and transacting parties must be properly authenticated to a channel in order to interact with it. Channels are defined by a Configuration-Block. not sure how channel specific ledger gets consolidated.

kevinmcmahon (Mon, 19 Mar 2018 17:40:46 GMT):
Has joined the channel.

tchataigner (Mon, 19 Mar 2018 17:58:39 GMT):
@UmeshAsaigoli ok thank you for your input. Just saw that fabric have private tx on their roadmap for 1.2 . It just seemed weird to recreate a blockchain to ensure confidentiality. Have a good day !

patelan (Mon, 19 Mar 2018 18:45:54 GMT):
How to enable Hyper Ledger SDK to enable keep-alive on the socket and send TCP keep alive packets at regular intervals ?

patelan (Mon, 19 Mar 2018 18:46:37 GMT):
(node sdk) All help in this matter greatly appreciated.

patelan (Mon, 19 Mar 2018 18:49:54 GMT):
somehow it is not able to reuse old grpcs connection.

gewing (Mon, 19 Mar 2018 19:08:42 GMT):
Has joined the channel.

gewing (Mon, 19 Mar 2018 19:09:07 GMT):
``` Hello, I'm upgrading to v1.1.0 and running into trouble getting my Orderer started. The error from the docker logs for the orderer container is: Failed to initialize local MSP: could not load a valid signer certificate from directory..[directory] ...no such file or directory. I verified that the directory and file actually exists. I originally had it in my /home directory and have also tried putting my /crypto-config in /var/hyperledger/ gewing 2:13 PM Here's the complete docker log from the orderer service startup: `2018-03-19 03:50:52.472 UTC [bccsp_sw] createKeyStoreIfNotExists -> DEBU 001 KeyStore path [/var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/keystore] missing [true]: [] 2018-03-19 03:50:52.472 UTC [bccsp_sw] createKeyStore -> DEBU 002 Creating KeyStore at [/var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/keystore]... 2018-03-19 03:50:52.473 UTC [bccsp_sw] createKeyStore -> DEBU 003 KeyStore created at [/var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/keystore]. 2018-03-19 03:50:52.473 UTC [bccsp_sw] openKeyStore -> DEBU 004 KeyStore opened at [/var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/keystore]...done 2018-03-19 03:50:52.473 UTC [bccsp] initBCCSP -> DEBU 005 Initialize BCCSP [SW] 2018-03-19 03:50:52.473 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/signcerts 2018-03-19 03:50:52.473 UTC [orderer/common/server] initializeLocalMsp -> CRIT 007 Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/signcerts: stat /var/hyperledger/crypto-config/ordererOrganizations/scsvault.com/orderers/orderer.scsvault.com/msp/signcerts: no such file or directory ```

nickgaski (Mon, 19 Mar 2018 19:25:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aNZ2aYsKXbjwGQQzd) @pavithrans - the error suggests that the utilities don't know where to read in the configuration file from. It wants you to say look in the present directory for the configtx.yaml file. so ... `export FABRIC_CFG_PATH=$PWD` from the location of your `configtx.yaml` file

joshuajeeson (Mon, 19 Mar 2018 19:27:44 GMT):
Has joined the channel.

joshuajeeson (Mon, 19 Mar 2018 19:38:00 GMT):
Ho do I reference a transaction in a fabric script ?

joshuajeeson (Mon, 19 Mar 2018 19:38:00 GMT):
How do I reference a transaction in a fabric script ?

joshuajeeson (Mon, 19 Mar 2018 19:38:00 GMT):
How do I reference a transaction in a fabric script ? i.e., how to execute a transaction based on the existence and information contained within a transaction.

lz331 (Mon, 19 Mar 2018 20:07:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FL2RcXeCFqRnyy8LP) @joshuajeeson Do you mean making changes to a transaction? You can do that by obtaining the "key" of that transaction with GetState and then update the information with PutState

daseybold (Tue, 20 Mar 2018 01:32:11 GMT):
Has joined the channel.

suva (Tue, 20 Mar 2018 06:07:30 GMT):
@All, I have few questions 1. In hyperledger fabric which file we will give the permission

suva (Tue, 20 Mar 2018 06:08:00 GMT):
2. Can we change the genesis block structure means customize our own structure

suva (Tue, 20 Mar 2018 06:08:08 GMT):
with some default value

suva (Tue, 20 Mar 2018 06:09:10 GMT):
3. I came to know user will interact with blockchain using SDK. plz suggest or any link where I can get about the SDK

suva (Tue, 20 Mar 2018 06:21:42 GMT):
4. How to check number of block of hyperledger fabric?

suva (Tue, 20 Mar 2018 06:21:52 GMT):
both using UI or webbrowser

lwrabbit (Tue, 20 Mar 2018 06:22:13 GMT):
Has joined the channel.

suva (Tue, 20 Mar 2018 06:23:58 GMT):
?

lwrabbit (Tue, 20 Mar 2018 06:24:33 GMT):
@suva https://github.com/hyperledger/blockchain-explorer

suva (Tue, 20 Mar 2018 06:29:28 GMT):
@lwrabbit . Thanks

bochetan (Tue, 20 Mar 2018 06:41:29 GMT):
Has joined the channel.

pavithrans (Tue, 20 Mar 2018 06:44:08 GMT):
Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: EventHub has been shutdown

pavithrans (Tue, 20 Mar 2018 06:44:18 GMT):
how to resolve this errors

nizamariffin (Tue, 20 Mar 2018 06:49:27 GMT):
Has joined the channel.

nizamariffin (Tue, 20 Mar 2018 06:50:35 GMT):
i tried to clone fabric repo as per documentation in http://hyperledger-fabric.readthedocs.io/en/release-1.0/dev-setup/devenv.html#building-hyperledger-fabric by issuing this command: root@mars:~/gopath/src/github.com/hyperledger# git clone ssh://nizamariffin@gerrit.hyperledger.org:29418/fabric && scp -p -P 29418 nizamariffin@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/ Cloning into 'fabric'... ssh: connect to host gerrit.hyperledger.org port 29418: Connection timed out fatal: Could not read from remote repository.

nizamariffin (Tue, 20 Mar 2018 06:51:31 GMT):
anyone knows why remote host could not be contacted? Is there anything i missed?

suva (Tue, 20 Mar 2018 06:55:20 GMT):
@nizamariffin . You need to put SSH key in gerrit.hyperledger.org

suva (Tue, 20 Mar 2018 06:56:10 GMT):
First create a LINUXID and login to gerrit, after that where you want to pull the data copy the SSH key and paste it in gerrit

Unni_1994 (Tue, 20 Mar 2018 06:56:53 GMT):
Hi All, How can we use Attribute Based Access Control (ABAC) for providing permissions using roles in chaincode level?

nizamariffin (Tue, 20 Mar 2018 06:57:05 GMT):
thanks suva. I've created linuxid..but where's link to gerrit?

Unni_1994 (Tue, 20 Mar 2018 07:00:37 GMT):
@suva We can check number of block of hyperledger fabric using the Api :"http://localhost:4000/channels/mychannel?peer=peer0.org1.example.com"

jastisriradheshyam (Tue, 20 Mar 2018 07:02:06 GMT):
Has joined the channel.

nizamariffin (Tue, 20 Mar 2018 07:21:08 GMT):
hi @suva i have added SSH public key in gerrit.hyperledger.org and when issuing: root@mars:~/gopath/src/github.com/hyperledger# git clone ssh://nizamariffin@gerrit.hyperledger.org:29418/fabric && scp -p -P 29418 nizamariffin@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/ Cloning into 'fabric'... ssh: connect to host gerrit.hyperledger.org port 29418: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

nizamariffin (Tue, 20 Mar 2018 07:21:14 GMT):
same error

nizamariffin (Tue, 20 Mar 2018 07:21:48 GMT):
@suva this is my .ssh directory: root@mars:~# ll .ssh total 20 drwx------ 2 root root 4096 Mar 20 23:16 ./ drwx------ 10 root root 4096 Mar 20 23:16 ../ -rw------- 1 root root 1766 Mar 20 23:14 id_rsa -rw-r--r-- 1 root root 391 Mar 20 23:14 id_rsa.pub -rw-r--r-- 1 root root 222 Aug 9 2016 known_hosts

CodeReaper (Tue, 20 Mar 2018 07:40:10 GMT):
I'm seeing that one extra binding of volume is added in first-network, so that even if peers containers are removed the blockchain can be continued when they are started again, I'm having trouble however finding that volume on my host machine to remove it. Any pointer?

CodeReaper (Tue, 20 Mar 2018 07:40:15 GMT):

Clipboard - March 20, 2018 1:10 PM

lwrabbit (Tue, 20 Mar 2018 07:50:37 GMT):
There was a problem "genesis block retrieval failed: error from orderer: unknown response type from ordering service" when join channel use the latest fabric-sdk-go, have anyone ever met this problem?

yinzhiwu (Tue, 20 Mar 2018 07:54:15 GMT):
Has joined the channel.

pankajcheema (Tue, 20 Mar 2018 07:54:28 GMT):
Please help at the time of chaincode instantiate `peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n fabcar -l "golang" -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')"` getting error `Error: could not send: rpc error: code = Unavailable desc = transport is closing`.Any help much appreciated .Thanks in advance

pankajcheema (Tue, 20 Mar 2018 07:54:39 GMT):
chaincode install working fine

Matthieu.inBlocks (Tue, 20 Mar 2018 07:58:19 GMT):
Has joined the channel.

nizamariffin (Tue, 20 Mar 2018 08:00:20 GMT):
hi does anyone knows what's the fabric release hyperledger composer is using?

ashishapy (Tue, 20 Mar 2018 08:07:32 GMT):
By default they support v1.0.4 & v1.1.0 . Composer is trying to keep up to date with latest Fabric version.

nizamariffin (Tue, 20 Mar 2018 08:15:41 GMT):
@ashishapy currently composer using v1.0.4 right?

ashishapy (Tue, 20 Mar 2018 08:19:23 GMT):
@nizamariffin I am checking their fabric-dev-server config, See doc here https://github.com/hyperledger/composer-tools/blob/master/packages/fabric-dev-servers/README.md

ashishapy (Tue, 20 Mar 2018 08:19:55 GMT):
It says "This dev server package contains scripts to setup 2 different levels of fabric. A released version of Hyperledger Fabric V1.0 A released version of Hyperledger Fabric V1.1 You can select a version by setting the environment variable HL_FABRIC_VERSION. If set to hlfv1 or not set you will get Hyperledger Fabric v1.0. If set to hlfv11 you will get Hyperledger Fabric V1.1"

nizamariffin (Tue, 20 Mar 2018 08:21:13 GMT):
thanks @ashishapy

magicianx25 (Tue, 20 Mar 2018 08:33:33 GMT):
I am trying to pass in the channel configuration transaction artifact to the order-er using the command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem But I get an error: 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" What does this error mean? and how can I fix it?

darioAnongba (Tue, 20 Mar 2018 09:31:23 GMT):
Hi everyone ! I'm a student doing his master thesis at the moment in the decentralized systems area (blockchain) and I would like to ask a few questions to someone with a deep knowledge of Hyplerledger if that's possible

CorentinPacaud (Tue, 20 Mar 2018 10:07:09 GMT):
@darioAnongba I develop on Hyperledger. Maybe, I can try to answer you ? MP me.

CorentinPacaud (Tue, 20 Mar 2018 10:11:45 GMT):
Hi everyone. I successfully deployed a network with Orderer, CA, 2 peers, 2 CouchDB on 1 server and 1 Peer, 1 CoucheDB on a other server. Is it possible to do it when the network is running ? Add a peer when the network is already running ?

ShobhitSrivastava (Tue, 20 Mar 2018 10:14:09 GMT):
Hello Everyone..i am using fabric version 1.0.0 alpha2 for java chaincode . But i ma not able to start the fabric netowork..on checking logs, I saw orderer has not started.

ShobhitSrivastava (Tue, 20 Mar 2018 10:14:20 GMT):
Please find error below "orderer.example.com | 2018-03-20 10:09:09.836 UTC [orderer/multichain] newLedgerResources -> CRIT 03d Error creating configtx manage r and handlers: Error creating group Consortiums: Disallowed channel group: Consortiums "

ShobhitSrivastava (Tue, 20 Mar 2018 10:15:46 GMT):

1.0.JPG

ShobhitSrivastava (Tue, 20 Mar 2018 10:15:53 GMT):
Any suggestions?

RadekS 3 (Tue, 20 Mar 2018 10:54:17 GMT):
Has joined the channel.

hussein.knight (Tue, 20 Mar 2018 11:24:09 GMT):
Has joined the channel.

hussein.knight (Tue, 20 Mar 2018 11:24:14 GMT):
Hello all, I am new to hyperledger, i have a project i want to build my own chaincode for a school and put all the students certificate on the blockchain any one can help me plz

patelan (Tue, 20 Mar 2018 12:49:46 GMT):
Hello All, Anyone deployed hyper ledger in docker UCP with Overlay network ? Actually we are facing some issue and need help on that.

MuhammadSalah (Tue, 20 Mar 2018 13:00:53 GMT):
Greetings everyone, has any one attempted to encrypt the data over CouchDB?

ricotmo (Tue, 20 Mar 2018 13:08:43 GMT):
Has joined the channel.

ongar (Tue, 20 Mar 2018 13:15:02 GMT):
Why doesn't the opensource version of Fabric doesn't support HSM or other enterprise features? IBM blockchain, built on the opensource version does provide these enterprisey stuff. Does IBM influence against the adding HSM support to the opensource code base? I thought HSM support was in the roadmap for v1.1, but it is nowhere to be found now.

ongar (Tue, 20 Mar 2018 13:15:02 GMT):
Why doesn't the opensource version of Fabric support HSM or other enterprise features? IBM blockchain, built on the opensource version does provide all these enterprisey stuff. Does IBM influence against the adding HSM support to the opensource code base? I thought HSM support was in the roadmap for v1.1, but it is nowhere to be found now.

ongar (Tue, 20 Mar 2018 13:15:02 GMT):
Why doesn't the opensource version of Fabric support HSM or other enterprise features? IBM blockchain, built on the opensource version does provide all these enterprisey stuff. Does IBM influence against adding of the HSM support to the opensource code base? I thought HSM support was in the roadmap for v1.1, but it is nowhere to be found now.

xiajun (Tue, 20 Mar 2018 13:20:13 GMT):
Has joined the channel.

xiajun (Tue, 20 Mar 2018 13:20:37 GMT):

Clipboard - 2018年3月20日晚上9点20分

xiajun (Tue, 20 Mar 2018 13:20:37 GMT):
I try to run Hyperledger Fabric samples code from github(https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html). After I start Docker and run ./startFabric.sh, then I try to run node enrollAdmin.js to invoke a certificate signing request, but I got the following error:

xiajun (Tue, 20 Mar 2018 13:21:02 GMT):
Has anyone meet this problem?

ongar (Tue, 20 Mar 2018 13:21:05 GMT):
It seems node SDK has some support for HSM, but how is it useful, if the MSP/BCCSP interfaces do not expect externalization of key storage and management?

xiajun (Tue, 20 Mar 2018 13:21:47 GMT):
HSM?

ongar (Tue, 20 Mar 2018 13:21:51 GMT):
Are the fabric clients expected to use only SDK, but not have any peers in their environments?

ongar (Tue, 20 Mar 2018 13:21:51 GMT):
Are the fabric users expected to use only SDK, but not have any peers in their environments?

ongar (Tue, 20 Mar 2018 13:22:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZugfNjMKpwsJSyBgR) @xiajun Hardware Security Module

ongar (Tue, 20 Mar 2018 13:22:56 GMT):
Where do the real production projects keep their keys and certs?

ongar (Tue, 20 Mar 2018 13:23:09 GMT):
Current Fabric design seems to assume it is file storage

ongar (Tue, 20 Mar 2018 13:23:24 GMT):
Which is very very naive for an enterprise product

xiajun (Tue, 20 Mar 2018 13:24:08 GMT):
I see

ongar (Tue, 20 Mar 2018 13:24:22 GMT):
Probably this design decision is influenced by the vendors of enterprise features

xiajun (Tue, 20 Mar 2018 13:24:22 GMT):
I follow this tutorial:https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

xiajun (Tue, 20 Mar 2018 13:24:35 GMT):
But when I run node enrollAdmin.js I got a error

xiajun (Tue, 20 Mar 2018 13:25:06 GMT):
I google it but I cannot find anything

xiajun (Tue, 20 Mar 2018 13:25:49 GMT):

Clipboard - 2018年3月20日晚上9点25分

xiajun (Tue, 20 Mar 2018 13:26:19 GMT):
I seems that the error is throwed from node_modules

ongar (Tue, 20 Mar 2018 13:26:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SWZtqDHHjXdvysfRs) @cbf, @mastersingh24 ??

CorentinPacaud (Tue, 20 Mar 2018 13:33:27 GMT):
Hello, I need to update the cryptogen tool but can't find the command. any help ?

MuhammadSalah (Tue, 20 Mar 2018 13:43:20 GMT):
@xiajun you don't need sudo to use this script I think; and I believe it can be debugged; maybe go through your setup / code if you have time :)

MuhammadSalah (Tue, 20 Mar 2018 13:43:53 GMT):
@CorentinPacaud How do you mean to update the cryptogen tool?

MuhammadSalah (Tue, 20 Mar 2018 13:44:04 GMT):
You can always download the binaries for whatever version you like / or build them.

zasamen (Tue, 20 Mar 2018 13:44:59 GMT):
Hi. Please help me. Does anyone know why it does not start network? and how to fix it?! [orderer logs ](https://pastebin.com/P3e67qpv) ```2018-03-20 13:20:41.890 UTC [cauthdsl] deduplicate -> ERRO 37d Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.blockchain-clone.iba")) for identity ``` [peer logs](https://pastebin.com/rw79WUnx)

zasamen (Tue, 20 Mar 2018 13:51:16 GMT):
configuration information [configtx.yaml](https://pastebin.com/QffhgWnm) [crypto-config.yaml](https://pastebin.com/35S9MWEn)

ndatebayo (Tue, 20 Mar 2018 13:56:13 GMT):
Has joined the channel.

ndatebayo (Tue, 20 Mar 2018 13:56:32 GMT):
Hi, sorry to bother you, but I have an issue when deploying a channel on multiple nodes due to a fabric version on a certain node (it tries to use fabric v1.0.5 instead of v1.1.0). Do you know a way to do a clean uninstall of all fabric versions ? I didn't find anything on the web...

zasamen (Tue, 20 Mar 2018 14:01:35 GMT):
i have inspected and all containers use right fabric-image version (1.1.0)

zasamen (Tue, 20 Mar 2018 14:01:35 GMT):
i have inspected it and all containers use right fabric-image version (1.1.0)

CorentinPacaud (Tue, 20 Mar 2018 14:20:19 GMT):
@MuhammadSalah My cryptogen is in version 1.0.5 and I need version 1.1.0-alpha.So there is no update command like "npm update" ? ok I will download the binairies

MuhammadSalah (Tue, 20 Mar 2018 14:20:36 GMT):
no no there is not any that I know of.

MuhammadSalah (Tue, 20 Mar 2018 14:20:52 GMT):
I always use the convenience script to do so.

MuhammadSalah (Tue, 20 Mar 2018 14:21:01 GMT):
patch it whatever version I want.

mileszim (Tue, 20 Mar 2018 14:32:15 GMT):
Has joined the channel.

Vya4eslav (Tue, 20 Mar 2018 15:08:36 GMT):
Has joined the channel.

CorentinPacaud (Tue, 20 Mar 2018 15:55:43 GMT):
Hi again, I think I added a peer to my running network but I think I think only the orginal one answer request. Is there cmd to know which peers are connected to the network ?

joaofguerreiro (Tue, 20 Mar 2018 16:08:54 GMT):
Guys where do I define resources and transactions in a Fabric instance? the equivalent to the model.cto in Composer?

Gerard9494 (Tue, 20 Mar 2018 16:39:24 GMT):
Hello everyone,

Gerard9494 (Tue, 20 Mar 2018 16:48:50 GMT):
Hello everyone, I have created a consortium with 3 organizations, that have 2 peers each, and using the cryptogen and configtxgen tool I have generated all the things I need to start the network. Neverthless, when I execute this: docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer0.org2.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel I have the following error at the orderer: Principal deserialization failure (MSP org2MSP is unknown) And the returned error is: Error: can't read the block: &{FORBIDDEN} Does anyone know what is happening, I have the same error using the org3? I try to execute this to fetch&join every peer to the channel: # Create the channel docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b composerchannel.block # Fetch the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel # Join peer1.org1.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b composerchannel_config.block # Fetch the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer0.org2.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel # Join peer0.org2.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer0.org2.example.com peer channel join -b composerchannel_config.block # Fetch the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer1.org2.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel # Join peer1.org2.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org2.example.com/msp" peer1.org2.example.com peer channel join -b composerchannel_config.block # Fetch the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org3.example.com/msp" peer0.org3.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel # Join peer0.org3.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org3.example.com/msp" peer0.org3.example.com peer channel join -b composerchannel_config.block # Fetch the channel docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org3.example.com/msp" peer1.org3.example.com peer channel fetch config -o orderer.example.com:7050 -c composerchannel # Join peer1.org3.example.com to the channel. docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org3.example.com/msp" peer1.org3.example.com peer channel join -b composerchannel_config.block Thanks ! :)

KGiou (Tue, 20 Mar 2018 17:02:33 GMT):
Hi all,

KGiou (Tue, 20 Mar 2018 17:05:11 GMT):
Hi all,

KGiou (Tue, 20 Mar 2018 17:07:46 GMT):
hi all, is there a way to control what chaincodes can be installed in a channel. I.e I want to install myCC to mychannel and forbid everyone else in mychannel install/instantiate any other CC. Is there a way to accomplish that?

andrasfe (Tue, 20 Mar 2018 18:14:54 GMT):
Has joined the channel.

andrasfe (Tue, 20 Mar 2018 18:15:01 GMT):
s there any publicly available documentation on the various forms of testing that has been performed on Hyperledger Fabric at the time of the GA and subsequently? Thank you!!

wjzheng (Tue, 20 Mar 2018 19:04:22 GMT):
Has joined the channel.

iNeil77 (Tue, 20 Mar 2018 22:27:57 GMT):
Has joined the channel.

yacovm (Tue, 20 Mar 2018 22:30:24 GMT):
@andrasfe ask in #fabric-quality

ShikarSharma (Tue, 20 Mar 2018 22:44:21 GMT):
Has joined the channel.

parthask (Wed, 21 Mar 2018 01:15:25 GMT):
Has joined the channel.

charlierubin (Wed, 21 Mar 2018 01:40:44 GMT):
Has joined the channel.

chenjun-bj (Wed, 21 Mar 2018 01:54:49 GMT):
@KGiou only admin of channel can install chaincode, any member of the channel can instantiate a chain code, but it requires write permission of channel to append init cc tx to ledger

nelsonthamhc (Wed, 21 Mar 2018 02:57:48 GMT):
Has joined the channel.

nelsonthamhc (Wed, 21 Mar 2018 02:58:04 GMT):
Hi Guys, I have encountered an issue while setting up the installing environment of Hyperledger. I followed the instructions found on the Hyperledger website: https://hyperledger.github.io/composer/installing/development-tools.html I have also installed all the pre-requisite as stated in the website. However, we encountered a problem in the last step; step 4 (installing Hyperledger Fabric) , part 2. We have successfully download and unzip the zip file. But we are unable to run the command ".~downloadFabric.sh". The error stated is "Failed to register layer: Error processing tar file(exit status 1): Invalid argument." We are running on Windows 10, Ubuntu Version 16.04.3 LTS Xenial, Docker Version 17.12.1 CE. Would anyone be able to advise on this? Sorry for troubling. Thank you for your help.

dpk2877 (Wed, 21 Mar 2018 05:40:08 GMT):
Can anyone tell me how can I store my keys in database instead of file storage, I am using fabric-CA-client SDK for generating user certificate but it stores in file-based storage but I want to store it on database

dpk2877 (Wed, 21 Mar 2018 05:40:09 GMT):
?

NAWAZUDDIN552 (Wed, 21 Mar 2018 06:54:48 GMT):
Hi Guys,

NAWAZUDDIN552 (Wed, 21 Mar 2018 06:55:24 GMT):
Hey Guys,

jastisriradheshyam (Wed, 21 Mar 2018 06:57:43 GMT):
Hi, I read the Node SDK tutorial ( https://fabric-sdk-node.github.io/tutorial-app-dev-env-setup.html ) and their were these lines: "user identities provisioned this way are only of the MEMBER role, which means it won't be able to perform certain operations reserved for the ADMIN role: create/update channel install/instantiate chaincode query installed/instantiated chaincodes For these privileged operations, the client must use an ADMIN user to submit the request." And I have a question that why only ADMIN have the permission to query the chaincode? Calling a ADMIN peer only for query will cause the extra latency in the network / Response instead of other member peers ( reducing the load on one peer that is ADMIN peer ) in a given channel, If there is any security implications for the above statement that I referenced then what are they.

NAWAZUDDIN552 (Wed, 21 Mar 2018 06:58:19 GMT):
Hey Friends, I got an error whenever I started the network ./startFabric-Peer2.sh on the second machine on Ubuntu16 2018-03-21 06:45:54.729 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /etc/hyperledger/msp/users/Admin@org1.example.com/msp folder Any help is appreciated ```

zasamen (Wed, 21 Mar 2018 07:12:01 GMT):
Please, help me. [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8XFMpxAbAd9jFQyZt)

PaulYeoh (Wed, 21 Mar 2018 07:20:29 GMT):
Has joined the channel.

pankajcheema (Wed, 21 Mar 2018 07:27:51 GMT):
Hello everyone,

pankajcheema (Wed, 21 Mar 2018 07:31:41 GMT):

Screenshot from 2018-03-21 12-57-04.png

madhm (Wed, 21 Mar 2018 07:40:15 GMT):
Has joined the channel.

notOccupanther (Wed, 21 Mar 2018 07:48:09 GMT):
Has joined the channel.

Mark818 (Wed, 21 Mar 2018 08:34:39 GMT):
Has joined the channel.

Mark818 (Wed, 21 Mar 2018 08:35:13 GMT):
Is there any guideline about how to deploy a Hyperledger Composer blockchain business network to the Hyperledger Fabric single member network on Azure?

xiangyue (Wed, 21 Mar 2018 09:03:33 GMT):
Has joined the channel.

bourbonkidQ (Wed, 21 Mar 2018 09:04:34 GMT):
Hi, I see on my peer the file core.yaml. In this file there is a line localMspId: DEFAULT. I don't really understand what i must change and what does that means

filippoboiani (Wed, 21 Mar 2018 09:15:31 GMT):
Has joined the channel.

zasamen (Wed, 21 Mar 2018 09:23:49 GMT):
Hi, All. Does anyone successfully launched `first-network` on different than `*.example.com` configuration?

zasamen (Wed, 21 Mar 2018 09:23:49 GMT):
Hi, All. Does anyone successfully launched `first-network` on different from `*.example.com` configuration?

zasamen (Wed, 21 Mar 2018 09:23:49 GMT):
Hi, All. Did anyone successfully launched `first-network` on different from `*.example.com` configuration?

zasamen (Wed, 21 Mar 2018 09:23:49 GMT):
Hi, All. Did anyone successfully launch `first-network` on different from `*.example.com` configuration?

Mihai.A (Wed, 21 Mar 2018 09:32:21 GMT):
Is there a way to connect 2 organizations, physically separated, with docker peers and orderers? (except docker swarm)

rekwet (Wed, 21 Mar 2018 09:37:09 GMT):
Hi, is 1.1 public yet?

Gerard9494 (Wed, 21 Mar 2018 09:41:16 GMT):
Hello, Somebody knows what does "EnableNodeOUs: true" from the crypto-config.yaml activates? - Name: Org1 Domain: org1.example.com EnableNodeOUs: true Template: Count: 2 Users: Count: 1 Thanks ! :)

Gerard9494 (Wed, 21 Mar 2018 09:42:30 GMT):
@Mihai.A This tutorial may help you https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/

Mihai.A (Wed, 21 Mar 2018 09:47:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E2HmzFnnbWaCGZZEv) @Gerard9494 https://hyperledger-fabric.readthedocs.io/en/latest/msp.html# see chapters Organizational Units and Identity Classification

pankajcheema (Wed, 21 Mar 2018 09:50:29 GMT):
can we have 2 CA in network if we have two organization ? Thanks in advance.

CorentinPacaud (Wed, 21 Mar 2018 09:51:53 GMT):
Hi, I started a network with 2 peers on a machine and it works. Now, I want to add a third peer to this network but on a second machine. The peer is started and has joined the channel but when I signin, only two peers respond. I think there is something missing but i don't know what. The tuto I followed : https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217

Unni_1994 (Wed, 21 Mar 2018 09:54:38 GMT):
hi ```

Unni_1994 (Wed, 21 Mar 2018 09:57:25 GMT):
``` Is it possible for me to call the ordering service which is running in other machine from my machine ```

Unni_1994 (Wed, 21 Mar 2018 10:01:13 GMT):
I edited the network-configuration.yaml file with second machine ip address .But I am getting an error grpc: Server.Serve failed to complete security handshake from "172.19.0.1:48328" .

raphaelbenoit (Wed, 21 Mar 2018 10:31:17 GMT):
java

shkurata (Wed, 21 Mar 2018 10:35:00 GMT):
Has joined the channel.

suva (Wed, 21 Mar 2018 11:01:49 GMT):
@All, Can we do multiple write and multiple read for the same key in a ledger?

bzeyben (Wed, 21 Mar 2018 11:10:40 GMT):
Has joined the channel.

sarvesh_16 (Wed, 21 Mar 2018 13:07:14 GMT):
Has joined the channel.

CorentinPacaud (Wed, 21 Mar 2018 13:25:44 GMT):
Hi again, Is it possible to configure fabric this way : At least two out of the three peers agree with a transaction so this transaction should be validated.

CorentinPacaud (Wed, 21 Mar 2018 13:25:46 GMT):
?

ga25waq (Wed, 21 Mar 2018 13:48:27 GMT):
Hi! Does anyone know if the fabric-couchdb Docker images (tags *-1.0.6) are compatible with Hyperledger Fabric 1.1.0?

qb (Wed, 21 Mar 2018 14:07:08 GMT):
Has joined the channel.

IgorSim (Wed, 21 Mar 2018 14:09:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e7QdRFk9PAvdpNAoo) @Mihai.A Of course there is, for ex, i succesfully setup HLF network with three organizations, each one running in separate machine.

qb (Wed, 21 Mar 2018 14:10:21 GMT):
@ga25waq from 1.1.0rc1, third-party images don't use the same release version number with fabric, you can try to use v0.4.6.

MisterJava (Wed, 21 Mar 2018 14:31:19 GMT):
Has joined the channel.

MisterJava (Wed, 21 Mar 2018 14:36:23 GMT):
Hey Folks, I am currently reading the following paper: https://arxiv.org/pdf/1801.10228.pdf I have a question regarding the execute-order paradigm. Every transaction is first executed and afterwards the order of the outputs of the transactions is determined by the orderers. But what happens if two transaction read and write the same state e.g. a variable? What exactly happens then and which transaction is then discarded? Thanks in advance.

suva (Wed, 21 Mar 2018 14:41:44 GMT):
@All please ans my previous question plz

schwinnez (Wed, 21 Mar 2018 14:43:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xZNBJ5PfyLrHtZp48) @suva what exactly to you mean by multiple writes and read. Of course you can override keys and read them abitrary many times. Why should there be a restriction on that?

suva (Wed, 21 Mar 2018 14:45:58 GMT):
@schwinnez . Let's say I am storing every 15 mins live temp data on blockchain during my IoT device journey. if I want to extract all the data with that Key . Can I get all the history data or I only get the latest data written in block chain

schwinnez (Wed, 21 Mar 2018 14:46:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wiHt8zFoyrmuGAnN5) @MisterJava I would think, that an orderer rejects all transactions, which have inconsistent RW to the previous state and transactions in the block that is currently built. The conensus in between orderers is pluggable. (Could be simply leader election)

schwinnez (Wed, 21 Mar 2018 14:47:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5wfNjzYsedT6x22y7) @suva The API provides both. You can just fetch latest state or entire history for a key.

jverhoelen (Wed, 21 Mar 2018 14:49:29 GMT):
Has joined the channel.

suva (Wed, 21 Mar 2018 14:49:54 GMT):
@schwinnez . Thanks. It would be gr8 if you will help me where I can get underlying architecture or flow while reading value from a block chain. Means what exactly happens steps by steps in back end. Also if possible share me the link where I can get all the information about the API

schwinnez (Wed, 21 Mar 2018 14:51:41 GMT):
API information can be found here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim

schwinnez (Wed, 21 Mar 2018 14:51:41 GMT):
API information can be found here: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim. For the other information on architecture: I would also love to have such a reference that give a compact but complete overview of the architecture and all the flows. I am also working on lot of assumptions and don't have the time to look everything up in the code =/

KunwarRattan (Wed, 21 Mar 2018 15:20:55 GMT):
Has joined the channel.

JuanSilva (Wed, 21 Mar 2018 15:22:28 GMT):
Hi Guys, stupid question: when I have something like this in my chaincode: fmt.Printf("- getQueryResultForQueryString queryString:\n%s\n", queryString) where do I see the the printf ? I am running this in docker

JuanSilva (Wed, 21 Mar 2018 15:22:42 GMT):
I have tried some docker logs containaer but not seen the output

MisterJava (Wed, 21 Mar 2018 15:23:29 GMT):
@schwinnez Thanks for Response. In the case that one user read a value and a other use Write the value, both of These Transactions would be discarded? Did I Understand it properly?

schwinnez (Wed, 21 Mar 2018 15:26:50 GMT):
In my understanding, only the transaction the is received last will be discarded. But I am not sure what the current implementation is doing. I mean it is not necessary to discard all transactions if there is some inconsistency. And if you think of BFT, it would not be good to discard them all, because then a "bad" peer could get transaction discarded very easily.

schwinnez (Wed, 21 Mar 2018 15:27:13 GMT):
I would just do first-come first served ;-)

MisterJava (Wed, 21 Mar 2018 15:27:26 GMT):
Okay thats a Point =)

schwinnez (Wed, 21 Mar 2018 15:27:43 GMT):
But this answer is not 100% reliable since i do not know the current orderer implementation.

MisterJava (Wed, 21 Mar 2018 15:27:45 GMT):
Im just Kind confused, coming from a ethereal study

MisterJava (Wed, 21 Mar 2018 15:27:54 GMT):
*ethereum

MisterJava (Wed, 21 Mar 2018 15:29:25 GMT):
Okay thank you anyhow =)

aatkddny (Wed, 21 Mar 2018 15:50:38 GMT):
Updating the genesis block to add ~something~. I've done the add a member to a channel and the add a member to a consortium examples. They led me to wonder if instead of running through all the jq (or programatically in my case) rigmarole if I could just run another configtxgen to create a new genesis block with the updated config and have configtxlator generate the diff from that and the channel block configuration you get from the channel. I'm guessing that since that's too easy there's some other stuff that's in the current high block that'll get wiped out. Anyone try it, so I don't have to write a test?

aatkddny (Wed, 21 Mar 2018 15:50:38 GMT):
Updating the genesis block to add -something-. I've done the add a member to a channel and the add a member to a consortium examples. They led me to wonder if instead of running through all the jq (or programatically in my case) rigmarole if I could just run another configtxgen to create a new genesis block with the updated config and have configtxlator generate the diff from that and the channel block configuration you get from the channel. I'm guessing that since that's too easy there's some other stuff that's in the current high block that'll get wiped out. Anyone try it, so I don't have to write a test?

oe19fyfa (Wed, 21 Mar 2018 16:15:45 GMT):
Has joined the channel.

nickgaski (Wed, 21 Mar 2018 16:16:37 GMT):
@MisterJava - so orderer implementation aside (solo, Kafka, bft), one of those transactions is going to precede the other within the block that the ordering service delivers to the peers. As long as the version of the world state for the modified key is still the same as when the tx was executed/simulated, then the first guy will succeed and the world state is updated and version incremented. The second tx will get rejected bc it was executed against the same version of the world state as #1, and that version is no longer true. So #2 gets marked as invalid and no state updates.

oe19fyfa (Wed, 21 Mar 2018 16:21:21 GMT):
guys where should i specify the COMPOSE_PROJECT_NAME environment variable? In my application I get this error "Error starting container: API error (404): {"message":"network _byfn not found"}" , i have read on stackoverflow that this is due to the empty environment variable

aatkddny (Wed, 21 Mar 2018 16:29:54 GMT):
COMPOSE_PROJECT_NAME=XXXX docker-compose -f ...

oe19fyfa (Wed, 21 Mar 2018 16:31:02 GMT):
@aatkddny yes, but why i cannot see this line in the 'byfn.sh' script , how do they do that there?

oe19fyfa (Wed, 21 Mar 2018 16:31:21 GMT):
byfn.sh script from the your-frist-network example

aatkddny (Wed, 21 Mar 2018 16:36:34 GMT):
their network is hard coded

aatkddny (Wed, 21 Mar 2018 16:36:34 GMT):
their network is hard coded. look at the docker-compose-cli script. it's set to byfn. no prefix.

MisterJava (Wed, 21 Mar 2018 16:37:22 GMT):
@nickgaski Thank you! Really helpful :) I

ace3 1 (Wed, 21 Mar 2018 16:43:13 GMT):
Has joined the channel.

crissi (Wed, 21 Mar 2018 16:45:31 GMT):
Has joined the channel.

oe19fyfa (Wed, 21 Mar 2018 16:45:59 GMT):
@aatkddny hmmm okay, is there a propper way to set this COMPOSE_PROJECT_NAME environment variable ?

oe19fyfa (Wed, 21 Mar 2018 16:46:16 GMT):
except putting it into the script?

aatkddny (Wed, 21 Mar 2018 16:52:22 GMT):
What are you trying to do? Are you trying to use the yaml from the first-network example, which has a hard coded docker network or are you trying to use something else. If the former you don't need that variable.

aatkddny (Wed, 21 Mar 2018 16:52:22 GMT):
What are you trying to do? Are you trying to use the yaml from the first-network example, which has a hard coded docker network or are you trying to use something else. If the former you don't need that variable. If the latter then you need to set it in your env. So you need to pass it in as I already showed

oe19fyfa (Wed, 21 Mar 2018 16:57:49 GMT):
@aatkddny i see, thankyou

bourbonkidQ (Wed, 21 Mar 2018 17:03:47 GMT):
Hi is there someone who has trying to loadbalancing the peer ?

inzamam (Wed, 21 Mar 2018 17:33:38 GMT):
Has joined the channel.

inzamam (Wed, 21 Mar 2018 17:34:55 GMT):
hello, I have couple of questions on orderer

inzamam (Wed, 21 Mar 2018 17:35:41 GMT):
1. If there are multiple orderes, how it is determined which one is proposing the next block?

inzamam (Wed, 21 Mar 2018 17:37:31 GMT):
2. if organiztion A,B,C are in a blockchain network and if all three run peer and orderes, then if A,B want to make a transaction in a private channel will the orderer of C be able to see that transaction?

alainN (Wed, 21 Mar 2018 17:56:28 GMT):
ipfs

ppseguel (Wed, 21 Mar 2018 18:39:16 GMT):
Has joined the channel.

azur3s0ng (Wed, 21 Mar 2018 20:35:37 GMT):
Has joined the channel.

SriniH 1 (Wed, 21 Mar 2018 21:23:50 GMT):
Has joined the channel.

parthask (Wed, 21 Mar 2018 22:25:06 GMT):
Hello people! Excuse me if it's a very basic question. I've been following along the tutorial in the documentation. I tried to run the invoke.js file that also has the following code: var request = { //targets: let default to the peer assigned to the client chaincodeId: 'fabcar', fcn: 'createCar', args: ['CAR10', 'Chevy', 'Volt', 'Red', 'Nick'], chainId: 'mychannel', txId: tx_id }; I'm getting the following error: Store path:/home/partha/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: 744495802c5987b018239de3ca5b3ce23f0e1fa26e94e4e08f5b55e50ff08946 Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "OK" Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: EventHub has been shutdown Could you please help? I'm trying to call this createCar function through the invoke.js file .a

hzrari (Wed, 21 Mar 2018 22:31:30 GMT):
Has joined the channel.

hzrari (Wed, 21 Mar 2018 22:31:40 GMT):
Hi all

hzrari (Wed, 21 Mar 2018 22:33:09 GMT):
I hope this is the good place to ask questions about hyperledger fabric

hzrari (Wed, 21 Mar 2018 22:33:38 GMT):
I am facing some issues to build my first network

hzrari (Wed, 21 Mar 2018 22:33:55 GMT):
Following this link

hzrari (Wed, 21 Mar 2018 22:34:19 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

hzrari (Wed, 21 Mar 2018 22:34:47 GMT):
I am trying to build my first network, and I am facing some issues when I want to customize the domain and users and admin emails

hzrari (Wed, 21 Mar 2018 22:35:12 GMT):
here is my question with my details: https://stackoverflow.com/questions/49413675/customizing-hyperledger-first-network

hzrari (Wed, 21 Mar 2018 22:35:33 GMT):
If you have any idea please feel free

hzrari (Wed, 21 Mar 2018 22:35:46 GMT):
And thanks for your help

yacovm (Wed, 21 Mar 2018 22:38:27 GMT):
@hzrari https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/crypto-config.yaml#L73

jackschultz (Wed, 21 Mar 2018 22:42:45 GMT):
Has joined the channel.

parthask (Thu, 22 Mar 2018 00:00:12 GMT):
I'm following the same document as well I tried run this command: ./byfn.sh -m generate and, I get the error instead of the output listed there. Could you guys please advice on what I may have missed? Error unmarshaling config into struct: 4 error(s) decoding: * '' has invalid keys: capabilities * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities + res=1 + set +x Failed to generate orderer genesis block... I appreciate the help, Thanks!

parthask (Thu, 22 Mar 2018 00:01:04 GMT):
@hzrari , @yacovm would be great if you guys can helpo

hzrari (Thu, 22 Mar 2018 00:16:38 GMT):
@yacovm your link points to the default cryptogen config file, but how to override the admin name and the username

hzrari (Thu, 22 Mar 2018 00:17:46 GMT):
@parthask are you using the default cryptogen config file ? You can use 'git diff' to see your difference

parthask (Thu, 22 Mar 2018 00:23:54 GMT):
Thankfully, I was able to solve this by doing a "git checkout " and then "curl -sSL https://goo.gl/kFFqh5 | bash -s 1.1.0" instead of "...bash -s 1.0.6" as it's pointed out in the tutorial documentation. Apparently the "Capabilities" keyword was only introduced in the later version

parthask (Thu, 22 Mar 2018 00:24:24 GMT):
@hzrari Thank you tho :)

scmchan (Thu, 22 Mar 2018 00:41:55 GMT):
Has joined the channel.

scmchan (Thu, 22 Mar 2018 00:59:34 GMT):
I have 2 questions regarding persistent data for fabric. I'm currently running HL Fabric 1.0.4 via docker using a set of docker-compose files along with the node sdk. 1. Which directories in which containers do I need to mount as a volume in order to preserve state after I run docker-compose down? I know that at least for the couchdb docker containers, I need to mount /opt/couchdb/data, but this doesn't seem to be sufficient. 2. Assuming I've already enrolled users, created a channel, joined the channel, installed chaincode, instantiated the chaincode in my initial run (using the node sdk), if I were to restart my containers with the correctly mounted directories using docker-compose up, the only actions I need to take to get my chaincode application up and running again would be to join the channel and reinstantiate the chaincode containers, correct?

scmchan (Thu, 22 Mar 2018 00:59:57 GMT):
Thanks in advance!

Mqy402590161 (Thu, 22 Mar 2018 02:53:07 GMT):
Has joined the channel.

DRSK (Thu, 22 Mar 2018 03:28:54 GMT):
Hi, If we have 2 peers A and B, in endorsement policy, we can say either one or both should endorse. But where in code, the criteria for the peer to decide whether to endorse or not is specified?

suntoe (Thu, 22 Mar 2018 03:46:18 GMT):
Has joined the channel.

alexliu (Thu, 22 Mar 2018 03:57:12 GMT):
@dave.enyeart Hi dave, i have a question about contributing. I submitted a change of fabric-samples into gerrit which passed the CI, But what to do next? Should I invite reviewers on gerrit manually?

dave.enyeart (Thu, 22 Mar 2018 04:04:34 GMT):
@alexliu post the gerrit id in #fabric-pr-review to notify people to review it. You can also call out individual names in Gerrit for review, I see you've done that now.

alexliu (Thu, 22 Mar 2018 04:05:44 GMT):
yeah I did it just now, so if I call out people in gerrit, then they will receive the message, right?

dave.enyeart (Thu, 22 Mar 2018 04:07:08 GMT):
correct, they will get notified. I've added a comment in Gerrit myself.

alexliu (Thu, 22 Mar 2018 04:09:53 GMT):
okay, what will happen if the change gets consent of reviewers? It will be merged immidiently?

dave.enyeart (Thu, 22 Mar 2018 04:12:12 GMT):
Two +2s from maintainers are required. The second maintainer to +2 will also merge.

alexliu (Thu, 22 Mar 2018 04:21:08 GMT):
So I add explain in Jira, what should i call out revierwers again?

alexliu (Thu, 22 Mar 2018 04:21:08 GMT):
So I added explain in Jira, Should i call out revierwers again?

alexliu (Thu, 22 Mar 2018 04:26:47 GMT):
@dave.enyeart Got it . Thx dave:)

dave.enyeart (Thu, 22 Mar 2018 04:27:57 GMT):
No need to call out reviewers upon every change. Each comment in Gerrit will trigger another email to all reviewers on the list.

alexliu (Thu, 22 Mar 2018 04:28:17 GMT):
okay

pankajcheema (Thu, 22 Mar 2018 04:51:43 GMT):
Anyone know how to specify a particular peer for endorsement in while specifying policy in ``` peer chaincode instantiate -o hr.debut.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem -C $CHANNEL_NAME -n cc -v 1.0 -c '{"Args":[]}' -P "OR ('DebutMSP.peer','AxisMSP.peer')"```

pankajcheema (Thu, 22 Mar 2018 04:53:34 GMT):
@jyellick

pankajcheema (Thu, 22 Mar 2018 04:53:38 GMT):
@TobiasN

pankajcheema (Thu, 22 Mar 2018 04:53:47 GMT):
@mikykey

TobiasN (Thu, 22 Mar 2018 05:39:07 GMT):
@pankajcheema that is the point, the policy only describe what organization need to endorse. as long as a peer of that organization joined the channel and has the current chaincode installed, it can endorese.

TobiasN (Thu, 22 Mar 2018 05:39:43 GMT):
@pankajcheema you would to that decision in the code that is calling the SDKs methods for endorsement and ordering.

pankajcheema (Thu, 22 Mar 2018 05:43:02 GMT):
@TobiasN What will happen if that peer in down and offline. What will happen ?

pankajcheema (Thu, 22 Mar 2018 05:43:02 GMT):
@TobiasN What will happen if that peer in down and offline ?

pankajcheema (Thu, 22 Mar 2018 05:43:02 GMT):
@TobiasN What will happen if that peer is down and offline ?

pankajcheema (Thu, 22 Mar 2018 05:43:16 GMT):
and what is the difference between `DebutMSP.peer` & `DebutMSP.member

pankajcheema (Thu, 22 Mar 2018 05:43:16 GMT):
and what is the difference between `DebutMSP.peer` & `DebutMSP.member`

TobiasN (Thu, 22 Mar 2018 05:44:55 GMT):
@pankajcheema ```DebutMSP.peer``` is not possible in the policy, only ```OrgMSP.member``` or ```orgMSP.admin```

TobiasN (Thu, 22 Mar 2018 05:45:24 GMT):
@pankajcheema in the case that a peer fail, you hopefully have already second peer in place.

pankajcheema (Thu, 22 Mar 2018 05:46:25 GMT):
@TobiasN here `DebutMSP` is the MSPId of `Organization named Debut`

pankajcheema (Thu, 22 Mar 2018 05:46:44 GMT):
So is it fine to use `DebutMSP`?

TobiasN (Thu, 22 Mar 2018 05:48:34 GMT):
MSPid

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use .member

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use ```.member```

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use ``.member``

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use ``` .member ```

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use ``` .member ```.

TobiasN (Thu, 22 Mar 2018 05:48:56 GMT):
better use ``` .member ```

pankajcheema (Thu, 22 Mar 2018 05:50:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mEA44MR8P6krgvt2m) @TobiasN This means If I have a single organization with 2 peers.. then it is not required for every peer to endorse.. If only one of them endorse, it will be a valid endorsement. Am I right? Please comment

pankajcheema (Thu, 22 Mar 2018 05:51:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gQQAY8ZarAtLz2ZEn) I am still confused with these two statements

TobiasN (Thu, 22 Mar 2018 05:51:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Nak2WbouExCnAYiE7) @pankajcheema right

TobiasN (Thu, 22 Mar 2018 05:51:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CAGradoXfjJMd2q54) @pankajcheema only the second is valid

pankajcheema (Thu, 22 Mar 2018 05:52:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EanZmrE7G4rXnzkgP) Wow! Thanks for this one.

pankajcheema (Thu, 22 Mar 2018 05:59:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ziRp7ZN5Z7PuHt8hW) @TobiasN: Please find the statement ```peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"``` in `http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html` and topic is `Install & Instantiate Chaincode`

Jennath (Thu, 22 Mar 2018 06:00:39 GMT):
Has joined the channel.

pankajcheema (Thu, 22 Mar 2018 06:14:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MWT7fvNMnAAbYEXk8) @TobiasN Are you there bro?

SudheerKaspa (Thu, 22 Mar 2018 07:08:21 GMT):

Clipboard - March 22, 2018 12:38 PM

SudheerKaspa (Thu, 22 Mar 2018 07:08:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7fttoy7Jmxc7NSnNn) I am trying to run byfn command But facing the following error

IgorSim (Thu, 22 Mar 2018 07:24:54 GMT):
Hi, question regarding fabric doc: https://media.readthedocs.org/pdf/hyperledger-fabric/latest/hyperledger-fabric.pdf This doc is updated periodically....is there a way to understand what has been changed between two versions?

magicliang (Thu, 22 Mar 2018 07:26:59 GMT):
Can some core developer of Fabric introduce something about FAB-830, an enhancement about data encryption in Fabric 1.1? Per my understanding, the chaincode developer will have some interface or library support in Stub to encrypt the data they save in the ledger world state. If I am correct, where the encryption key was generated and store?

leogzl (Thu, 22 Mar 2018 09:09:30 GMT):
i do not understand, why the chaincode command for go has to harcorded the *src* in the application, it is impossible to install chaincode that is not in *src* folder.

risentveber (Thu, 22 Mar 2018 09:41:52 GMT):
Has joined the channel.

risentveber (Thu, 22 Mar 2018 09:42:11 GMT):
Hello! Can anybody help me why I'm getting this error: `GossipStream -> ERRO 1f6 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity`

risentveber (Thu, 22 Mar 2018 09:45:21 GMT):
while run `peer channel update ..`

risentveber (Thu, 22 Mar 2018 09:45:21 GMT):
while run `peer channel update ...`

darunk67 (Thu, 22 Mar 2018 09:53:38 GMT):
Has joined the channel.

VarshithM (Thu, 22 Mar 2018 09:57:59 GMT):
Has joined the channel.

crissi (Thu, 22 Mar 2018 10:25:23 GMT):
I am using Hyperledger version 1.0.6.How can I update the version to 1.1 version?

hkrichen (Thu, 22 Mar 2018 10:54:44 GMT):
Has joined the channel.

DonBiggyBee (Thu, 22 Mar 2018 11:37:34 GMT):
Has joined the channel.

shikherwalia07 (Thu, 22 Mar 2018 12:33:18 GMT):
Has joined the channel.

shikherwalia07 (Thu, 22 Mar 2018 12:34:02 GMT):
hello experts !! can you please tell me how to use the Hyperledger explorer with the couchdb instead of ,myswl

shikherwalia07 (Thu, 22 Mar 2018 12:34:12 GMT):
*mysql

SashiKanth (Thu, 22 Mar 2018 12:44:34 GMT):
hi what the difference between install and instantiate of chaincode?? can we launch a number of similar chaincode docker containers in the network in the same channel ?? if the answer is no .... but i can see that, in fabric-sample/first-network launches three chaincode docker containers ffor the same mycc-v1.0 chaincode !!

patelan (Thu, 22 Mar 2018 12:45:43 GMT):
patelan

SashiKanth (Thu, 22 Mar 2018 13:01:33 GMT):
@yacovm

shikherwalia07 (Thu, 22 Mar 2018 13:07:48 GMT):
Install is when your chaincode is installed on peers. And instantiate is when you first time run your chaincode.Then the function initledger in the chaincode runs and initialize the ledger

shikherwalia07 (Thu, 22 Mar 2018 13:08:08 GMT):
every peer has the chaincode thats why it get installed

shikherwalia07 (Thu, 22 Mar 2018 13:08:24 GMT):
@SashiKanth

risentveber (Thu, 22 Mar 2018 13:12:34 GMT):

Clipboard - March 22, 2018 4:12 PM

risentveber (Thu, 22 Mar 2018 13:13:03 GMT):
why I'm getting such errors when run `peer channel update`

CorentinPacaud (Thu, 22 Mar 2018 13:32:50 GMT):
Hello, I have 3 peers running for my network. I set an endrosment policy that says only 1 peer should validate the TX to accept this TX. But when I send a TX. I have this error : `[Channel.js]: compareProposalResponseResults - read/writes result sets do not match index=1`

CorentinPacaud (Thu, 22 Mar 2018 13:32:55 GMT):
Any idea ?

MisterJava (Thu, 22 Mar 2018 14:26:43 GMT):
Hey folks, I have a question regarding consensus. I read a lot about consensus in fabric but its a little bit confusing. I understand that it is modular. The default is Kafka I guess? There are two others Solo and PBFT. Others like BFT Smart, SBFT are being developed but not available yet. Is this right?

CorentinPacaud (Thu, 22 Mar 2018 14:30:40 GMT):
Apparently, the endorsment policy is not responsible... [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dBRLo6Jneb6KnaxEA)

uber.twin (Thu, 22 Mar 2018 15:15:34 GMT):
Has joined the channel.

inzamam (Thu, 22 Mar 2018 16:12:18 GMT):
Re-posting the question as no one has answred,

inzamam (Thu, 22 Mar 2018 16:12:23 GMT):
I have couple of questions on orderer 1. If there are multiple orderes, how it is determined which one is proposing the next block? 2. if organiztion A,B,C are in a blockchain network and if all three run peer and orderes, then if A,B want to make a transaction in a private channel will the orderer of C be able to see that transaction?

MisterJava (Thu, 22 Mar 2018 16:27:06 GMT):
@inzamam 1. guess that depends on the used consensus algorithm/ ordering service

parthask (Thu, 22 Mar 2018 16:56:09 GMT):
Hey guys, I'm trying to follow through the "Build your first network tutorial" and been facing this error. The doc says to run the following command. I'm not sure what comes in place of "channel-ID.block" peer channel join -b I get the following error: bash: syntax error near unexpected token `newline' Thanks in advance!

parthask (Thu, 22 Mar 2018 17:07:37 GMT):
Looks like the following command should've returned a block number but it didn't, not sure why. peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Can you guys pls help? The first time I ran it, it printed these: 2018-03-22 16:45:43.331 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-03-22 16:45:44.129 UTC [channelCmd] InitCmdFactory -> INFO 002 Endorser and orderer connections initialized 2018-03-22 16:45:44.386 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-03-22 16:45:44.679 UTC [main] main -> INFO 004 Exiting.....

inzamam (Thu, 22 Mar 2018 17:22:33 GMT):
@MisterJava can u please answer the second question also

nickgaski (Thu, 22 Mar 2018 17:30:05 GMT):
@parthask - take a peek in your cli container. you will have a block titled `mychannel.block` that was returned by the orderer after your channel create call. You pass that in to join. So `peer channel join -b mychannel.block` . If you had named your channel `partha1991` then you would have `partha1991.block` returned

MisterJava (Thu, 22 Mar 2018 17:44:19 GMT):
I don't get it. On the Internet I always read that Fabric is using PBFT as consensus, but in the documentation it is written that Kafka is actually used and BFT algorithms are being developed. Am I missing something or do I mess things up?

patelan (Thu, 22 Mar 2018 18:02:41 GMT):
Hi All, if keep fabric environment idle for 15 mins. if we add any smart contract then install chaincode is working fine. But instantiating chaincode is going into hung state and no error. Can anybody please help on this issue.

dylanccccc (Thu, 22 Mar 2018 18:20:35 GMT):
Has joined the channel.

dylanccccc (Thu, 22 Mar 2018 18:20:38 GMT):
Hello, i have some questions about the Example project. https://github.com/hyperledger/fabric/blob/release-1.1/examples/chaincode/java/Example/src/main/java/example/Example.java i'm new for fabric. When i build this demo, meet some errors. functions `run` and `query` not in ChaincodeBase, replaced by init and run . Who can give a latest demo

dharuq (Thu, 22 Mar 2018 18:27:17 GMT):
Has joined the channel.

toddinpal (Thu, 22 Mar 2018 19:35:48 GMT):
@MisterJava Not sure where you are seeing that Fabric is using PBFT. It is either the solo orderer (no any kind of fault tolerance) or the Kafka based orderer (fault tolerant, but not Byzantine fault tolerant.)

toddinpal (Thu, 22 Mar 2018 19:36:32 GMT):
There are plans to support SBFT (Simplified Byzantine Fault Tolerance) protocol, and others can certainly be plugged in.

toddinpal (Thu, 22 Mar 2018 19:37:06 GMT):
With sidedb support, there are significant limitations as to what a byzantine ordering service could do.

toddinpal (Thu, 22 Mar 2018 19:39:37 GMT):
@inzamam There can be multiple orderering services within a Fabric network, and for a given ordering service there can be multiple ordering service nodes.

toddinpal (Thu, 22 Mar 2018 19:42:47 GMT):
@inzamam The only transactions an ordering service can see are the ones on the channel using that ordering service. So to answer your question, Ordering service C would only see transactions on the channel being used by A and B would be if the channel is using Ordering Service C. If the channel is created on the Ordering service provided by A or B, then C wouldn't see anything related to that channel.

toddinpal (Thu, 22 Mar 2018 19:45:18 GMT):
2

toddinpal (Thu, 22 Mar 2018 19:45:55 GMT):
@MisterJava Also note that endorsement plays a part in Byzantine fault tolerance...

scmchan (Thu, 22 Mar 2018 19:47:51 GMT):
Just reposting for visibility, please let me know if this isn't okay. I have 2 questions regarding persistent data for fabric. I'm currently running HL Fabric 1.0.4 via docker using a set of docker-compose files along with the node sdk. 1. Which directories in which containers do I need to mount as a volume in order to preserve state after I run docker-compose down? I managed to preserve some semblance of state by mounting "var/hyperledger" for the orderer and peers + /opt/couchdb/data for the couchdb containers, but is that all? 2. Assuming I've already enrolled users, created a channel, joined the channel, installed chaincode, instantiated the chaincode in my initial run (using the node sdk), if I were to restart my containers using docker-compose up (after running docker-compose down), the only actions I need to take to get the chaincode application up and running again would be to reinstantiate the chaincode containers, correct? I've attempted to this after mounting the previously mentioned directories and the node sdk keeps telling me that the chaincode already exists despite the chaincode docker containers being down

parthask (Thu, 22 Mar 2018 20:48:21 GMT):
@nickgaski Thanks for your response. I'm a beginner to this technology so excuse if it's a very basic question. But when you say "take a peek in your cli container' Is it a specific file? or just the logs that got printed on the cli. If it's latter, I've added the logs I got with my second message. Also, I left the channel name to be the default "mychannel"

nickgaski (Thu, 22 Mar 2018 20:56:40 GMT):
so the CLI container is essentially your "client" that is going to interface with the network (peers and orderer). It has the entire `crypto-config` directory mounted as a volume, so you can flip flop identities. Before you sent the channel create call to the orderer, you ran a command `docker exec -it cli bash`, which moved you from your basic shell into that specific process. The channel create call returns an artifact into that service/container. So if you were to issue an `ls` while within the CLI container, you'll see a block that is correlates to whatever value you passed to the `c` flag on the create call

kasmobir (Thu, 22 Mar 2018 21:14:06 GMT):
Has joined the channel.

kasmobir (Thu, 22 Mar 2018 21:14:28 GMT):
Getting start help needed! I have been following latest "Build Your First Network"- tutorial. Having problem when executing "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 I have reinstalled everything, and tried with new channel name. No luck. Any help?

nickgaski (Thu, 22 Mar 2018 21:33:18 GMT):
@kasmobir - can you wipe out everything with `./byfn.sh -m down` and try again from a fresh slate - `./byfn.sh -m generate` then `./byfn.sh -m up -t 10000` . See if the end-to-end execution will run

kasmobir (Thu, 22 Mar 2018 21:39:43 GMT):
@nickgaski I tried that one. also tried making new channel with new name. always end up in that same error. Is there a way to delete old channels which are once generated?

nickgaski (Thu, 22 Mar 2018 21:47:10 GMT):
you can't "delete" a channel. It's a transaction on the system ledger.

kasmobir (Thu, 22 Mar 2018 21:53:54 GMT):
ok, that makes sense ^^

krisava (Thu, 22 Mar 2018 21:57:11 GMT):
Hi, Is it possible to trigger multiple events from the chaincode? stub.SetEvent("EVENT-1", eventdata-1) stub.SetEvent("EVENT-2", eventdata-2) Looks like the last event (EVENT-2) alone is getting triggered but not both (EVENT-1 and EVENT-2). Is there any alternative to trigger one or more events at the same time?

Vincent Fremaux (Thu, 22 Mar 2018 22:56:20 GMT):
Has joined the channel.

MisterJava (Thu, 22 Mar 2018 23:11:16 GMT):
@toddinpal Thank you! Always read that on Medium blogs and was confused

zhaoyulong (Fri, 23 Mar 2018 00:39:37 GMT):

Clipboard - 2018年3月23日早上8点38分

zhaoyulong (Fri, 23 Mar 2018 00:40:43 GMT):
install marbles's chaincode

smcha84 (Fri, 23 Mar 2018 01:47:53 GMT):
Has joined the channel.

smcha84 (Fri, 23 Mar 2018 01:47:56 GMT):
Getting started need help! We are currently using hyperledger fabric. We need some help on finding some sample codes. our main concern is that after building our platform, we are afraid the performance and storage shortage might occur. anyone have a suggestion or have sample code I can try? thanks!

ga25waq (Fri, 23 Mar 2018 02:01:58 GMT):
Hi! Does anyone know if I have to vendor the new Client Identity Chaincode Library introduced in Fabric 1.1 by myself? I get a > cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" during the instantiation of my chaincode in a peer container based on the new 1.1.0 Docker image.

Jilal (Fri, 23 Mar 2018 02:36:05 GMT):
Has joined the channel.

Jilal (Fri, 23 Mar 2018 02:36:10 GMT):
Hi

yinzhiwu (Fri, 23 Mar 2018 02:52:01 GMT):
https://github.com/hyperledger/fabric-samples @smcha84

smcha84 (Fri, 23 Mar 2018 02:59:57 GMT):
Thank you @yinzhiwu anyone worried about the performance and storage issue in the future?

smcha84 (Fri, 23 Mar 2018 03:00:37 GMT):
we are building a big data and after few years, we are afraid that there might be some lagging issue. should i be worried?

yinzhiwu (Fri, 23 Mar 2018 03:09:06 GMT):
Distributed storage, and only the fingerprints and index online

prasu (Fri, 23 Mar 2018 03:09:40 GMT):
Has joined the channel.

smcha84 (Fri, 23 Mar 2018 03:14:21 GMT):
know any projects that is doing this right now? hoping to get some co-work offer in or other initiatives

azur3s0ng (Fri, 23 Mar 2018 04:44:31 GMT):
Hi everyone. I have a question about the performance when the ledger size increases. Currently I measure the response time for the RESTful API to both query and create new state in the ledger through Fabric client. I didn't see significant increase response time as the state size goes from 1 to 10,000. Is that normal? Isn't the blockchain network is getting slower when the scale increases, or that's not the case for Hyperledger fabric?

krishna108 (Fri, 23 Mar 2018 05:17:00 GMT):
Has joined the channel.

krishna108 (Fri, 23 Mar 2018 05:17:16 GMT):
When is user is enrolled ,we get "enrollment secret".But where to use enrollment secret?. If we want to get user context only user id is required.

saifi_ali_rahat (Fri, 23 Mar 2018 05:18:56 GMT):
Is there any link where I can find POCs on Hyperledger fabric/composer?

RohanMudaliar (Fri, 23 Mar 2018 05:48:01 GMT):
Has joined the channel.

SashiKanth (Fri, 23 Mar 2018 05:51:46 GMT):
@shikherwalia07 but what about this can we launch a number of similar chaincode docker containers in the network in the same channel ?? if the answer is no .... but i can see that, in fabric-sample/first-network launches three chaincode docker containers ffor the same mycc-v1.0 chaincode !!

NAWAZUDDIN552 (Fri, 23 Mar 2018 06:32:54 GMT):
I got an error when ever I started the docker container Error: manifest for hyperledger/fabric-peer:latest not found

dylanccccc (Fri, 23 Mar 2018 06:40:10 GMT):
Hello, i have some questions about the Example project. https://github.com/hyperledger/fabric/blob/release-1.1/examples/chaincode/java/Example/src/main/java/example/Example.java i'm new for fabric. When i build this demo, meet some errors. functions `run` and `query` not in ChaincodeBase, replaced by init and run . Who can give a latest demo

suva (Fri, 23 Mar 2018 06:41:26 GMT):
Can somebody help me to create a REST API to access chaincode function ? https://abc.com/purchaseorderdetails/?$filter='ORD0002' I need a service like this how can I create this type of service? Any document or help doc to proceed further

lwrabbit (Fri, 23 Mar 2018 07:04:19 GMT):
hi all, i have a problem that got an err "InstantiateCC error: instantiateOrUpgradeCC timed out or cancelled" when run InstantiateCC function via go-sdk,why?

magicianx25 (Fri, 23 Mar 2018 08:23:37 GMT):
Hello i am trying to use `apt update && apt install -y jq' command from the adding org to channel tutorial but there is ann error apt command not found.does anyone know why?

zhaok12 (Fri, 23 Mar 2018 08:49:55 GMT):
Has joined the channel.

zhaok12 (Fri, 23 Mar 2018 08:57:40 GMT):
hi, can somebody help me understand the relationship between read-write set and transections? Is read-write set a part of transection? and by the way, what is the relationship between them and ChancodeMessage?

kiattchaip (Fri, 23 Mar 2018 09:08:07 GMT):
@zhaok12 https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html, https://hyperledger-fabric.readthedocs.io/en/latest/readwrite.html

vish 180 (Fri, 23 Mar 2018 09:15:19 GMT):
Has joined the channel.

vish 180 (Fri, 23 Mar 2018 09:15:55 GMT):
In setup of Hyperledger Fabric Docker image did anybody encounter the issue : can not find cannot find package "github.com/hyperledger/fabric/core/chaincode/shim

vish 180 (Fri, 23 Mar 2018 09:15:55 GMT):
In setup of Hyperledger Fabric Docker image did anybody encountered issue : cannot find package "github.com/hyperledger/fabric/core/chaincode/shim

shikherwalia07 (Fri, 23 Mar 2018 09:16:49 GMT):
@SashiKanth see every channel has peer and each peer has chaincode (it have to be installed on peers) -----their is only a single chaincode docker container

shikherwalia07 (Fri, 23 Mar 2018 09:19:05 GMT):
@SashiKanth In Fabric each chaincode is deployed in separate Docker container. When Validation Peer receives “deploy” request, it creates docker image and immediately starts container. As soon as container started, VP will execute chaincode “Init” method. From this moment chaincode is ready to serve incoming requests. if multiple chaincodes ----docker container are also different -----------as per my understanding

andreamagagna (Fri, 23 Mar 2018 09:19:52 GMT):
Has joined the channel.

shikherwalia07 (Fri, 23 Mar 2018 09:20:17 GMT):
can someone tell me how to use Hyperledger Explorer with Couchdb ??

ArvsIndrarys (Fri, 23 Mar 2018 09:48:45 GMT):
Hi guys ! I am trying to convert my single orderer network into a multi-orderer network. So I have setup Kafka and Zookeeper and it seems to work well : `[sarama] 2018/03/23 09:00:00.694931 client.go:154: Successfully initialized new client` Channel creation and chaincode installation on my peer works well, but in my instantiation, I get : `2018-03-23 09:35:33.622 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.34 because it doesn't contain any IP SANs` I use custom tls certificates, which actually don't have the SAN attributes (what I am correcting atmo). As the chaincode worked well before the Kafka implementation without giving that error, can someone explain to me why the Kafka implementation suddenly needs the SAN entry for the chaincode to work? I thought he chaincode should be independant from the implementation, be it Kafka or single orderer.

ArvsIndrarys (Fri, 23 Mar 2018 09:48:45 GMT):
Hi guys ! I am trying to convert my single orderer network into a multi-orderer network. So I have setup Kafka and Zookeeper and it seems to work well : orderer : `[sarama] 2018/03/23 09:00:00.694931 client.go:154: Successfully initialized new client` Channel creation and chaincode installation on my peer works well, but in my instantiation, I get : chaincode : `2018-03-23 09:35:33.622 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.34 because it doesn't contain any IP SANs` I use custom tls certificates, which actually don't have the SAN attributes (what I am correcting atmo). As the chaincode worked well before the Kafka implementation without giving that error, can someone explain to me why the Kafka implementation suddenly needs the SAN entry for the chaincode to work? I thought he chaincode should be independant from the implementation, be it Kafka or single orderer.

andreamagagna (Fri, 23 Mar 2018 09:55:07 GMT):
Hi everybody, does anyone know how to run the query `GET host:port/chain/blocks/{block-id}` in Fabric?

Nghiadt (Fri, 23 Mar 2018 10:38:39 GMT):
Hi forks! I'm trying to deploy Fabric on Kubernetes (kubeadm) and i'm having a problem with starting chaincode container from peer container. I've configured DOCKER_OPTS from this link https://hackernoon.com/how-to-deploy-hyperledger-fabric-on-kubernetes-1-a2ceb3ada078. Problem not solved :( Anyone can help? thanks!

krishna108 (Fri, 23 Mar 2018 10:42:01 GMT):
Where to use enrollment secret generated during enrollment of user?

Poneey (Fri, 23 Mar 2018 11:32:57 GMT):
[](https://chat.hyperledger.org/channel/fabric-questions?msg=h8NBtroWTNmKSg9ZQ) @magicianx25 apt is for Ubuntu, you can remplace "apt" by "yum" or "npm" ... it depends on what you use to install somethink.

pankajcheema (Fri, 23 Mar 2018 12:15:38 GMT):
Anyone knows where I can find these packages in docker containers used in chaincode ```"github.com/hyperledger/fabric/core/chaincode/shim" sc "github.com/hyperledger/fabric/protos/peer"```

pankajcheema (Fri, 23 Mar 2018 12:15:46 GMT):
Any help would be appreciated

rahul-kothari (Fri, 23 Mar 2018 12:56:30 GMT):
Has joined the channel.

Poneey (Fri, 23 Mar 2018 13:09:54 GMT):
Someone already have " Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". Unexpected identifier-Unexpected " ? How to fix it ?

CorentinPacaud (Fri, 23 Mar 2018 13:51:26 GMT):
@Poneey Yes, I had it

CorentinPacaud (Fri, 23 Mar 2018 13:51:50 GMT):
You need to upgrade your npm to 8.9.4

CorentinPacaud (Fri, 23 Mar 2018 13:52:14 GMT):
and update composer too (If I remember)

mrFranklin (Fri, 23 Mar 2018 14:01:03 GMT):
Has joined the channel.

toddinpal (Fri, 23 Mar 2018 14:03:00 GMT):
@azur3s0ng Fabric doesn't get significantly slower as the size of the ledger grows because it maintains a cache of the world state in an embedded database (LevelDB). So instead of having to scan the entire ledger to handle a getState() operation, it can simply query the local embedded database. So until the number of keys/values stored gets so large that LevelDB has difficulty handling it, the performance should be fairly constant. I believe that is true for most blockchains.

toddinpal (Fri, 23 Mar 2018 14:06:24 GMT):
@krishna108 The enrollment secret is used by the SDKs to sign all gRPC messages.

toddinpal (Fri, 23 Mar 2018 14:06:24 GMT):
@krishna108 The enrollment secret is used by the SDKs to sign all gRPC messages. During enrollment the client creates a public/private key pair. The public key ends up in the enrollment certificate while the private key is used to sign things.

toddinpal (Fri, 23 Mar 2018 14:08:25 GMT):
@andreamagagna

toddinpal (Fri, 23 Mar 2018 14:08:25 GMT):
@andreamagagna The REST APIs were removed from Fabric in v1.0, so you'll have to use a Fabric SDK to perform a query like that, or create the appropriate gRPC protobuf based request.

toddinpal (Fri, 23 Mar 2018 14:10:07 GMT):
@Poneey Your question will stand a better chance of being answered in the Composer channel.

andreamagagna (Fri, 23 Mar 2018 14:10:38 GMT):
@toddinpal Thanks, I've just read it :confused:

Poneey (Fri, 23 Mar 2018 14:12:26 GMT):
@CorentinPacaud The lastest version of npm isn't 5.6 ? The complete error is Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". Cannot find module '/usr/lib/node_modules/composer-cli/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64/grpc_node.node'" But when i look the path, i actually have grpc_node.node in this folder ...

CorentinPacaud (Fri, 23 Mar 2018 14:13:31 GMT):
@Poneey Sry, update Node to 8.9.4

Poneey (Fri, 23 Mar 2018 14:13:53 GMT):
@andreamagagna thanks, i just changed fabric to composer and i didn't think to change channel.

CorentinPacaud (Fri, 23 Mar 2018 14:14:08 GMT):
I think I resolved this error by updating the node, npm and modules, etc

toddinpal (Fri, 23 Mar 2018 14:14:46 GMT):
@suva It should be quite easy to create a REST based API using Node.js and the Fabric Node.js SDK

Poneey (Fri, 23 Mar 2018 14:15:54 GMT):
@CorentinPacaud I just upgrated node to 8.10 because i saw too in forum that it can cause my problem. But it doesn't work

CorentinPacaud (Fri, 23 Mar 2018 14:16:18 GMT):
@Poneey composer version ?

Poneey (Fri, 23 Mar 2018 14:17:21 GMT):
0.16.6

CorentinPacaud (Fri, 23 Mar 2018 14:17:32 GMT):
hmmm, ok....

CorentinPacaud (Fri, 23 Mar 2018 14:17:50 GMT):
did you do a npm install --save grpc ?

Poneey (Fri, 23 Mar 2018 14:18:26 GMT):
I install grpc yes ...

Poneey (Fri, 23 Mar 2018 14:19:08 GMT):
I also saw in forum that it can due by root but i can't use "user" ..

CorentinPacaud (Fri, 23 Mar 2018 14:20:01 GMT):
Yes, it can be. Where cn't you use user instead of root ?

Poneey (Fri, 23 Mar 2018 14:20:38 GMT):
i don't know informations connection

Poneey (Fri, 23 Mar 2018 14:21:48 GMT):
(i'm connected to a server by ssh)

CorentinPacaud (Fri, 23 Mar 2018 14:23:24 GMT):
Yes, I do the same. But I can't remember how I exactly fix this pb

Poneey (Fri, 23 Mar 2018 14:24:41 GMT):
ok, thank anyway

CorentinPacaud (Fri, 23 Mar 2018 14:37:39 GMT):
Hello, Can anyone help me with this ? https://stackoverflow.com/questions/49451382/read-writes-result-sets-do-not-match-index-1

yacovm (Fri, 23 Mar 2018 14:48:07 GMT):
@CorentinPacaud your chaincode is not deterministic

yacovm (Fri, 23 Mar 2018 14:48:14 GMT):
do you roll a dice or something?

robinrob (Fri, 23 Mar 2018 14:50:26 GMT):
Has joined the channel.

CorentinPacaud (Fri, 23 Mar 2018 14:57:55 GMT):
@yacovm what ???

yacovm (Fri, 23 Mar 2018 14:58:39 GMT):
your chaincode produced different results

yacovm (Fri, 23 Mar 2018 14:58:44 GMT):
among peers

CorentinPacaud (Fri, 23 Mar 2018 14:59:20 GMT):
Yes, I understand that. But why ? There is no ramdom func in this project.

yacovm (Fri, 23 Mar 2018 14:59:30 GMT):
i don't know...

aatkddny (Fri, 23 Mar 2018 15:24:01 GMT):
timing? if it hasn't committed a previous transaction you'll get different results. we had to rewrite to account for "not founds"

ArvsIndrarys (Fri, 23 Mar 2018 15:28:20 GMT):
Hi ! Again, I tried with my new tls certificates who have the SAN attributes but I still get the error : `[shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.34 because it doesn't contain any IP SANs` I did not have any problem before the kafka implementation, can anyone help me on this one?

yacovm (Fri, 23 Mar 2018 15:37:06 GMT):
@ArvsIndrarys what version are you using?

ArvsIndrarys (Fri, 23 Mar 2018 15:37:25 GMT):
fabric and kafka 1.0.4

ArvsIndrarys (Fri, 23 Mar 2018 15:37:25 GMT):
@yacovm fabric and kafka 1.0.4

yacovm (Fri, 23 Mar 2018 15:37:32 GMT):
phew, very good

yacovm (Fri, 23 Mar 2018 15:37:40 GMT):
that thing doesn't exist in v1.1 :)

yacovm (Fri, 23 Mar 2018 15:37:45 GMT):
was worried for a second

yacovm (Fri, 23 Mar 2018 15:38:02 GMT):
so you need to configure some environment variable

yacovm (Fri, 23 Mar 2018 15:38:05 GMT):
and then it will work

yacovm (Fri, 23 Mar 2018 15:38:15 GMT):
are you using docker?

ArvsIndrarys (Fri, 23 Mar 2018 15:38:22 GMT):
do you know which one? yes

yacovm (Fri, 23 Mar 2018 15:39:11 GMT):
`CORE_PEER_CHAINCODEADDRESS=peer0.org1.example.com:7052`

yacovm (Fri, 23 Mar 2018 15:39:14 GMT):
something like this

ArvsIndrarys (Fri, 23 Mar 2018 15:39:20 GMT):
``` - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=dev_xxxx - CORE_VM_DOCKER_ATTACHSTDOUT=true - CORE_LOGGING_LEVEL=debug - CORE_PEER_ADDRESSAUTODETECT=true - CORE_PEER_ID=peer_dev_0 - CORE_PEER_GOSSIP_BOOTSTRAP=peer_dev_0:7051 - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/tls/ca.crt - CORE_PEER_NETWORKID=dev_xxxx - CORE_PEER_TLS_ENABLED=true - CORE_PEER_ENDORSER_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=false - CORE_PEER_GOSSIP_ORGLEADER=true - CORE_PEER_ADDRESS=peer_dev_0:7051 - CORE_CHAINCODE_EXECUTETIMEOUT=30s ``` current environment variables

yacovm (Fri, 23 Mar 2018 15:39:34 GMT):
`CORE_PEER_CHAINCODEADDRESS=peer0.org1.example.com:7052`

yacovm (Fri, 23 Mar 2018 15:39:34 GMT):
`CORE_PEER_CHAINCODEADDRESS=peer_dev_0:7051`

ArvsIndrarys (Fri, 23 Mar 2018 15:40:16 GMT):
okay thanks a lot ! I was worried I would encounter another error that would require me to tweak things

yacovm (Fri, 23 Mar 2018 15:40:30 GMT):
please tell me if that doesn't work

ArvsIndrarys (Fri, 23 Mar 2018 15:45:46 GMT):
@yacovm Same error, it didn't work :/

yacovm (Fri, 23 Mar 2018 15:46:09 GMT):
impossible... :/

ArvsIndrarys (Fri, 23 Mar 2018 15:46:24 GMT):
The problem didn't happen before I setup the kafka ordering service, so I don't think it is peer or chaincode specific

ArvsIndrarys (Fri, 23 Mar 2018 15:46:38 GMT):
I am clueless on this one

ArvsIndrarys (Fri, 23 Mar 2018 15:47:36 GMT):
`2018-03-23 15:44:45.301 UTC [gossip/comm] func1 -> WARN 2d6 peer_dev_0:7051, PKIid:[127 83 153 34 127 27 250 22 247 238 125 78 104 255 5 116 140 95 211 136 170 33 222 93 135 103 11 89 214 43 210 19] isn't responsive: rpc error: code = Internal desc = transport is closing`

ArvsIndrarys (Fri, 23 Mar 2018 15:48:04 GMT):
`2018-03-23 15:43:50.275 UTC [gossip/discovery] func1 -> WARN 1a9 Could not connect to {peer_dev_0:7051 [] [] peer_dev_0:7051} : context deadline exceeded` I got these logs on my peer (peer_dev_0)

ArvsIndrarys (Fri, 23 Mar 2018 15:48:29 GMT):
perhaps it is linked

ArvsIndrarys (Fri, 23 Mar 2018 15:49:35 GMT):
What is the use of the `0.0.0.0:6060` part? When I started with hyperledger (0.6.0) the only ports used were 7051 and 7053

ArvsIndrarys (Fri, 23 Mar 2018 15:50:34 GMT):
@yacovm I can put my current implementation (configtx.yaml and multiple docker-compose.yaml) on gist for you to check if you want to?

yacovm (Fri, 23 Mar 2018 15:51:07 GMT):
0.6?

yacovm (Fri, 23 Mar 2018 15:51:43 GMT):
> I can put my current implementation (configtx.yaml and multiple docker-compose.yaml) on gist for you to check if you want to? No, sorry - I'm too busy today and I'm not even supposed to work today :rolling_eyes:

ArvsIndrarys (Fri, 23 Mar 2018 15:55:36 GMT):
I instantiate the chaincode that way : bash into cli, channel creation (works), chaincode installation (works), then : `peer chaincode instantiate -o orderer_dev_0:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderer_dev_0/tls/ca.crt -C dev -n devcode -v 1.0 -c '{"Args":["init"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"` Perhaps the Kafka implementation wants something else concerning the parameters?

ArvsIndrarys (Fri, 23 Mar 2018 15:57:51 GMT):
I used that github folder to understand how should I implement Kafka in my network ; https://github.com/hyperledger/fabric/tree/v1.0.4/bddtests . Is there any other or a better documentation?

ArvsIndrarys (Fri, 23 Mar 2018 15:57:51 GMT):
I used that github folder to understand how should I implement Kafka in my network : https://github.com/hyperledger/fabric/tree/v1.0.4/bddtests . Is there any other or a better documentation?

yacovm (Fri, 23 Mar 2018 15:58:37 GMT):
look at https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli

ArvsIndrarys (Fri, 23 Mar 2018 15:59:42 GMT):
Okay, doing it right now Perhaps something I missed, thanks @yacovm !

gregmisiorek (Fri, 23 Mar 2018 16:42:58 GMT):
Has joined the channel.

azur3s0ng (Fri, 23 Mar 2018 17:20:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YEffZMiQBAvBJq8JX) @toddinpal Thanks for your reply, and your answer justified the evaluation to our blockchain network. We observed pretty consistent response time when the state goes from 1 to 10,000 for both creation and query.

VamzR (Fri, 23 Mar 2018 17:49:31 GMT):
Has joined the channel.

VamzR (Fri, 23 Mar 2018 17:50:04 GMT):
Is there a good solution for initiating payments through Fabric contracts? Is there any way a payment protocol can be implemented using a smart-contract. For example, Joe checks into point "A". This is recorded to the ledger, and he is automatically paid out for his service (which is also recorded to the ledger).

VamzR (Fri, 23 Mar 2018 17:50:04 GMT):
Is there a good solution for initiating payments through Fabric? Is there any way a payment protocol can be implemented using a smart-contract. For example, Joe checks into point "A". This is recorded to the ledger, and he is automatically paid out for his service (which is also recorded to the ledger).

Vincent Fremaux (Fri, 23 Mar 2018 17:52:19 GMT):
Hi, i m not able to call my chaincode due to "getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [] creator org [Org1MSP], cause=null}". Where i can find documentation to understand access control ?

MohammadObaid (Fri, 23 Mar 2018 18:06:04 GMT):
Hey Fabric experts in a production environment with Kafka consensus how many transactions fabric can process (TPS) ?

VamzR (Fri, 23 Mar 2018 18:09:06 GMT):
Does anyone know if Oracles are supported?

andreosti (Fri, 23 Mar 2018 18:09:36 GMT):
Is it possible to limit the number of participants from one organization?

surendra-kushwaha (Fri, 23 Mar 2018 19:29:55 GMT):
Has joined the channel.

patelan (Fri, 23 Mar 2018 19:35:26 GMT):
Hi All, QQ. Do we have any keepalive setting between peer and orderer ? We are using fabric 1.0.3 because we are seeing below error from node js SDK (1.0.0) while instantiating chain code. First time it is working fine. if we keep everything idle for 15 mins and then try to add new smart contract we are seeing this error. 0|app | error: [Channel.js]: getChannelConfig - Failed Proposal. Error: Error: REQUEST_TIMEOUT 0|app | at Timeout._onTimeout (/src/node_modules/fabric-client/lib/Orderer.js:186:20) 0|app | at ontimeout (timers.js:386:11) 0|app | at tryOnTimeout (timers.js:250:5) 0|app | at Timer.listOnTimeout (timers.js:214:5) 0|app | error: [Channel.js]: Error: REQUEST_TIMEOUT 0|app | at Timeout._onTimeout (/src/node_modules/fabric-client/lib/Orderer.js:186:20) 0|app | at ontimeout (timers.js:386:11) 0|app | at tryOnTimeout (timers.js:250:5) 0|app | at Timer.listOnTimeout (timers.js:214:5)

remyabdullahi (Fri, 23 Mar 2018 19:49:20 GMT):
Has joined the channel.

Ed.Curran (Fri, 23 Mar 2018 19:55:19 GMT):
Has joined the channel.

Ed.Curran (Fri, 23 Mar 2018 20:34:42 GMT):
Hey I have some queries regarding consensus in hyperledger. I understand there are no Byzantine fault tolerant ordering solutions at the moment, however SBFT is being developed. My question really is, is it expected to be possible to implement PBFT given the current architecture of hyperledger is based largely on endorsers. Whereas consensus is meant to be plugable via altering the ordering service. For example at the moment once the ordering service delivers a supposedly endorsed transaction to peers. It is then ultimately up to the peer whether they accept the endorsement and the readset etc. If they misbehave at this point what implications would that have?

abrookins (Fri, 23 Mar 2018 21:34:26 GMT):
Has joined the channel.

Nghiadt (Sat, 24 Mar 2018 02:33:46 GMT):
Hi forks! I'm trying to deploy Fabric on Kubernetes (kubeadm) and i'm having a problem with starting chaincode container from peers. I've configured DOCKER_DNS by DOCKER_OPTS from this link https://hackernoon.com/how-to-deploy-hyperledger-fabric-on-kubernetes-1-a2ceb3ada078. Problem not solved 😞 Anyone can help me? thanks!

akhilkrishna (Sat, 24 Mar 2018 04:06:14 GMT):
Has joined the channel.

QwertyJack (Sat, 24 Mar 2018 05:45:37 GMT):
Has joined the channel.

QwertyJack (Sat, 24 Mar 2018 05:46:37 GMT):
I am not sure whether fabric or fabric-sdk supports application ACL. Any helps plz?

chenjun-bj (Sat, 24 Mar 2018 10:08:51 GMT):
You could check policy section. Ledger structure is consisted by groups,each group has policy associate it, which defines who can read/write/modify the group, for example, if you want to run a chaincode you must have write permission of channel application group, and you can define it at channel creation time or alter it using channel config update after that @QwertyJack [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=awyBGgs9tzTp83GP4)

QwertyJack (Sat, 24 Mar 2018 12:41:18 GMT):
@chenjun-bj Thanks.

QwertyJack (Sat, 24 Mar 2018 12:41:33 GMT):
Maybe I'm not clear.

QwertyJack (Sat, 24 Mar 2018 12:44:13 GMT):
Suppose Alice and Bob both has an account on the ledger; can I write a chaincode where Alice can only modify her own value while she can not do so with bob's account?

chenjun-bj (Sat, 24 Mar 2018 13:46:09 GMT):
Sorry, I don’t know about this.I suppose you have to implement the auth in your chaincode @QwertyJack [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vhRfftK79nbHAAgzb)

QwertyJack (Sat, 24 Mar 2018 15:49:07 GMT):
Looking forward to any idea and examples. Thanks very much.

dmproof (Sat, 24 Mar 2018 18:20:03 GMT):
Has joined the channel.

dmproof (Sat, 24 Mar 2018 18:25:11 GMT):
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 (windows 10 powershell) bash is not recognized. how do I Download Platform-specific Binaries on windows 10 for powershell? http://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries

dmproof (Sat, 24 Mar 2018 18:25:13 GMT):
thanks

kunalkukreja (Sat, 24 Mar 2018 19:28:04 GMT):
Has joined the channel.

kunalkukreja (Sat, 24 Mar 2018 19:34:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aisFMQPsdaWmT7gQ8) @dmproof this commands uses bash shell to execute the script. I'm not sure, but you can either try with powershell instead of bash or you can get yourself a virtual linux box installed.

dmproof (Sat, 24 Mar 2018 19:36:49 GMT):
i was trying to run that command in powershell, but it doesnt work. the docs are not very friendly for windows users it seems. am I better of just trying to install a linux vm like you said for hyperledger?

kunalkukreja (Sat, 24 Mar 2018 19:40:26 GMT):
I think so. It is recommended to use a mac or linux env since these types of projects are never exactly built with windows on mind.

dmproof (Sat, 24 Mar 2018 19:43:27 GMT):
good point.. I always try tho. thanks

DUY_TA_CONG (Sat, 24 Mar 2018 19:51:23 GMT):
Has joined the channel.

kunalkukreja (Sat, 24 Mar 2018 19:51:24 GMT):
@dmproof :thumbsup:

hshahtibco (Sat, 24 Mar 2018 21:15:17 GMT):
Has joined the channel.

hshahtibco (Sat, 24 Mar 2018 21:15:46 GMT):
hi support I am trying to ./startFabric.sh I am getting error ARCH=$ARCH docker-compose -f "${DIR}"/composer/docker-compose.yml down Removing ca.org1.example.com ... done Removing network composer_default ARCH=$ARCH docker-compose -f "${DIR}"/composer/docker-compose.yml up -d Creating orderer.example.com ... error Creating orderer.example.com ... Creating couchdb ... Creating couchdb ... error

sensahin (Sat, 24 Mar 2018 21:18:35 GMT):
Has joined the channel.

SB85 (Sat, 24 Mar 2018 21:26:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aisFMQPsdaWmT7gQ8) @dmproof Use Git bash for windows. I use it and it's super easy.

kriss1897 (Sat, 24 Mar 2018 21:40:14 GMT):
Has joined the channel.

kriss1897 (Sat, 24 Mar 2018 21:40:26 GMT):
How can I build REST API's for fabric network without using composer?

parastooveisi (Sun, 25 Mar 2018 02:19:36 GMT):
Has joined the channel.

parastooveisi (Sun, 25 Mar 2018 02:28:49 GMT):
Hello everybody. Is there any management tool in Fabric? How the blockchain can be managed?

VivekKr08 (Sun, 25 Mar 2018 03:34:26 GMT):
Has joined the channel.

VivekKr08 (Sun, 25 Mar 2018 03:34:35 GMT):
Hello Everyone

VivekKr08 (Sun, 25 Mar 2018 03:35:02 GMT):
I have an issue with installing the hyperledger fabric

VivekKr08 (Sun, 25 Mar 2018 03:36:56 GMT):
I am done with the docker, Docker composer and Node

ravig-kant (Sun, 25 Mar 2018 03:52:13 GMT):
Is ledger shared across channels? Also, are blocks shared across channels?

griffin4 (Sun, 25 Mar 2018 05:09:38 GMT):
Has joined the channel.

kartop (Sun, 25 Mar 2018 08:46:19 GMT):
Has joined the channel.

kartop (Sun, 25 Mar 2018 08:46:25 GMT):
Hi,

kartop (Sun, 25 Mar 2018 08:46:55 GMT):
I would like to get recommendation on implementing a hyperledger fabric network in a police station cluster.

ittomato (Sun, 25 Mar 2018 08:53:43 GMT):
Has joined the channel.

ittomato (Sun, 25 Mar 2018 08:53:47 GMT):
now my hyperledger fabric has one peer, how to config another peer to work together ? or , three , four. thanks very much .

pankajcheema (Sun, 25 Mar 2018 09:37:45 GMT):
Hi all! Anyone here knows how to print chaincode logs in peer container? For example I am using invoke command and the body of `invoke` function has a statement `fmt.Print("Hii")`. I want to print that log on container when executing that command. Any help would be appreciated Thanks

pankajcheema (Sun, 25 Mar 2018 10:14:42 GMT):
Anyone knows how to remove old chaincode from peers and whole network? I am trying to install a new chaicode with same name as pervious but it is installing previous chaincode file (that file is removed. I dont know from where it is installing that chaincode)

kriss1897 (Sun, 25 Mar 2018 10:45:38 GMT):
@pankajcheema you can try changing the version, or just restart the fabric.

kriss1897 (Sun, 25 Mar 2018 10:46:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NxizyeLofj5jDpaA5) @pankajcheema try changing the version of your chaincode

pankajcheema (Sun, 25 Mar 2018 11:02:16 GMT):
@kriss1897 How to restart fabric?

kriss1897 (Sun, 25 Mar 2018 11:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6m4TvBnJpWWZogFW6) @pankajcheema if you are using it locally, then restart the docker containers

pankajcheema (Sun, 25 Mar 2018 11:06:22 GMT):
Can anyone guide me or any reference on kafka integretion ?

dubdabasoduba (Sun, 25 Mar 2018 11:35:31 GMT):
Has joined the channel.

Tcnguyen (Sun, 25 Mar 2018 12:55:23 GMT):
Has joined the channel.

zhaok12 (Sun, 25 Mar 2018 14:11:35 GMT):
I have a question about the ordering part of a transaction flow. The orderers receive some transactions and tries to order, but if there are multiple write sets which update the same key, there will be conflicts. If the number of transactions is large, there is a high probability of conflict.

hantzaras (Sun, 25 Mar 2018 14:21:25 GMT):
Has joined the channel.

chenjun-bj (Sun, 25 Mar 2018 14:30:37 GMT):
The write set is validated at peer when the block is gossiped to the peer. If write conflicts, only the first one is valid, others will mark as invalidate, you can check validation array in the metadata of the block @zhaok12 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qY3zCWkK9sGfikueY)

zhaok12 (Sun, 25 Mar 2018 14:40:13 GMT):
@chenjun-bj thank you. You mean the committer peer will check the conflicts and the orderers just do the ordering? So in each block, each key can only be updated once? I don't the size of a block in general. If it is large, is such design(you can not change one's ledger frequently) reasonable?

chenjun-bj (Sun, 25 Mar 2018 14:49:23 GMT):
Yes, committer peer checks conflicts and others, orderer also validate something, such as permission, max size etc, but value conflict is not included in orderer. Regarding to your other questions, I’m afraid that I’m not able to answer it @zhaok12 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XbxdzefdnuGoe3nc3)

fgtortosa (Sun, 25 Mar 2018 19:41:51 GMT):
Has joined the channel.

haniraza (Sun, 25 Mar 2018 20:50:27 GMT):
Has joined the channel.

Hatchi 1 (Sun, 25 Mar 2018 22:24:03 GMT):
Has joined the channel.

tennenjl (Sun, 25 Mar 2018 22:28:31 GMT):
endorsement

gaeshi (Mon, 26 Mar 2018 01:15:13 GMT):
Has joined the channel.

gaeshi (Mon, 26 Mar 2018 01:23:11 GMT):
Hi, I'm trying to go through this fabric-ca user's guide: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started But when I'm executing `go get -u github.com/hyperledger/fabric-ca/cmd/...`, I'm getting: ``` $ fabric-ca-server start -b admin:adminpw 2018/03/26 09:47:35 [INFO] Created default configuration file at /home/gvb/fabric-ca-server-config.yaml 2018/03/26 09:47:35 [INFO] Starting server in home directory: /home/gvb panic: Version is not set for fabric-ca library ``` I'm running this on a virtual machine with the clean install of Ubuntu 16.04 Server. My go version is `go1.10 linux/amd64`. How to specify the version of fabric-ca library? Should I?

gaeshi (Mon, 26 Mar 2018 01:23:11 GMT):
Hi, I'm trying to go through this fabric-ca user's guide: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started But when I'm executing `go get -u github.com/hyperledger/fabric-ca/cmd/...`, I'm getting: ``` $ fabric-ca-server start -b admin:adminpw 2018/03/26 09:47:35 [INFO] Created default configuration file at /home/gvb/fabric-ca-server-config.yaml 2018/03/26 09:47:35 [INFO] Starting server in home directory: /home/gvb panic: Version is not set for fabric-ca library goroutine 1 [running]: github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x2c, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60 github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202dcfc0, 0x0, 0xc42015bc20, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x26 github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc4202dcfc0, 0xc4202dcfc0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:131 +0xe4 main.(*ServerCmd).init.func3(0xc420096fc0, 0xc4200fbf20, 0x0, 0x2, 0x0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xec github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc420096fc0, 0xc4200fbd80, 0x2, 0x2, 0xc420096fc0, 0xc4200fbd80) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3db github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420096b40, 0xd9e980, 0xf29d90, 0xc42015bef8) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2d4 github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420096b40, 0xc42011a3c0, 0xc42008ac30) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b main.(*ServerCmd).Execute(0xc42008ac30, 0x5, 0xc42015cf01) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f main.RunMain(0xc42001e0c0, 0x4, 0x4, 0xc42015bf78, 0xc420074058) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb2 main.main() /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45 ``` I'm running this on a virtual machine with the clean install of Ubuntu 16.04 Server. My go version is `go1.10 linux/amd64`. How to specify the version of fabric-ca library? Should I?

gaeshi (Mon, 26 Mar 2018 01:23:11 GMT):
Hi, I'm trying to go through this fabric-ca user's guide: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started But when I'm executing `go get -u github.com/hyperledger/fabric-ca/cmd/...`, I'm getting: ``` $ fabric-ca-server start -b admin:adminpw 2018/03/26 09:47:35 [INFO] Created default configuration file at /home/gvb/fabric-ca-server-config.yaml 2018/03/26 09:47:35 [INFO] Starting server in home directory: /home/gvb panic: Version is not set for fabric-ca library goroutine 1 [running]: github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x2c, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60 github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202dcfc0, 0x0, 0xc42015bc20, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x26 github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc4202dcfc0, 0xc4202dcfc0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:131 +0xe4 main.(*ServerCmd).init.func3(0xc420096fc0, 0xc4200fbf20, 0x0, 0x2, 0x0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xec github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc420096fc0, 0xc4200fbd80, 0x2, 0x2, 0xc420096fc0, 0xc4200fbd80) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3db github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420096b40, 0xd9e980, 0xf29d90, 0xc42015bef8) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2d4 github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420096b40, 0xc42011a3c0, 0xc42008ac30) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b main.(*ServerCmd).Execute(0xc42008ac30, 0x5, 0xc42015cf01) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f main.RunMain(0xc42001e0c0, 0x4, 0x4, 0xc42015bf78, 0xc420074058) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb2 main.main() /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45 ``` I'm running this on a virtual machine with the clean install of Ubuntu 16.04 Server. My go version is `go1.10 linux/amd64`. How to specify the version of fabric-ca library? Should I?

gaeshi (Mon, 26 Mar 2018 01:23:11 GMT):
Hi, I'm trying to go through this fabric-ca user's guide: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started But when I'm executing `go get -u github.com/hyperledger/fabric-ca/cmd/...`, I'm getting: ``` $ fabric-ca-server start -b admin:adminpw 2018/03/26 09:47:35 [INFO] Created default configuration file at /home/gvb/fabric-ca-server-config.yaml 2018/03/26 09:47:35 [INFO] Starting server in home directory: /home/gvb panic: Version is not set for fabric-ca library goroutine 1 [running]: github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x2c, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60 github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202cc900, 0x0, 0xc42015dc20, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x26 github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc4202cc900, 0xc4202cc900, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:131 +0xe4 main.(*ServerCmd).init.func3(0xc420096fc0, 0xc4200fbf20, 0x0, 0x2, 0x0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xec github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc420096fc0, 0xc4200fbd80, 0x2, 0x2, 0xc420096fc0, 0xc4200fbd80) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3db github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420096b40, 0xd9e980, 0xf29d90, 0xc42015def8) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2d4 github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420096b40, 0xc42011a3c0, 0xc42008ac30) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b main.(*ServerCmd).Execute(0xc42008ac30, 0x5, 0xc42015ef01) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f main.RunMain(0xc42001e0c0, 0x4, 0x4, 0xc42015df78, 0xc420074058) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb2 main.main() /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45``` I'm running this on a virtual machine with the clean install of Ubuntu 16.04 Server. My go version is `go1.10 linux/amd64`. How to specify the version of fabric-ca library? Should I?

gaeshi (Mon, 26 Mar 2018 01:23:11 GMT):
Hi, I'm trying to go through this fabric-ca user's guide: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started But when I'm executing `go get -u github.com/hyperledger/fabric-ca/cmd/...`, I'm getting: ``` $ fabric-ca-server start -b admin:adminpw 2018/03/26 09:47:35 [INFO] Created default configuration file at /home/gvb/fabric-ca-server-config.yaml 2018/03/26 09:47:35 [INFO] Starting server in home directory: /home/gvb panic: Version is not set for fabric-ca library goroutine 1 [running]: github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x2c, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60 github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202cc900, 0x0, 0xc42015dc20, 0x1) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x26 github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc4202cc900, 0xc4202cc900, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/lib/server.go:131 +0xe4 main.(*ServerCmd).init.func3(0xc420096fc0, 0xc4200fbf20, 0x0, 0x2, 0x0, 0x0) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xec github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc420096fc0, 0xc4200fbd80, 0x2, 0x2, 0xc420096fc0, 0xc4200fbd80) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3db github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420096b40, 0xd9e980, 0xf29d90, 0xc42015def8) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2d4 github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420096b40, 0xc42011a3c0, 0xc42008ac30) /home/gvb/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b main.(*ServerCmd).Execute(0xc42008ac30, 0x5, 0xc42015ef01) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f main.RunMain(0xc42001e0c0, 0x4, 0x4, 0xc42015df78, 0xc420074058) /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb2 main.main() /home/gvb/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45``` I'm running this on a virtual machine with the clean install of Ubuntu 16.04 Server. My go version is `go1.10 linux/amd64`. How to specify the version of fabric-ca library? Should I?

gaeshi (Mon, 26 Mar 2018 01:47:06 GMT):
tried clean install with go 1.9.4 - same error.

gaeshi (Mon, 26 Mar 2018 01:47:06 GMT):
tried clean install with `go1.9.4` - got the same error.

jiedeng (Mon, 26 Mar 2018 02:28:53 GMT):
hello, where can i find acl config in hyperledger fabric's docs? thank you

Xinchun (Mon, 26 Mar 2018 04:13:19 GMT):
Has joined the channel.

root_007 (Mon, 26 Mar 2018 04:20:21 GMT):
hi i am following byfn network file to run a fabric network but when i am trying to delete network using byfn down msp,tls files are not deleting.what is the reason?

root_007 (Mon, 26 Mar 2018 04:22:38 GMT):

hyperledger1.jpeg

root_007 (Mon, 26 Mar 2018 04:22:38 GMT):

hyperledger1.jpeg

sangd1989 (Mon, 26 Mar 2018 05:29:34 GMT):
Has joined the channel.

DaraPenhchet (Mon, 26 Mar 2018 05:30:03 GMT):
Has joined the channel.

DaraPenhchet (Mon, 26 Mar 2018 05:30:26 GMT):
Hello could I ask all of you about the Hyperledger Fabric with Pagination on the CouchDB it doesn't work when I used the GetQueryResult. Anyone has met this problems and can share yours?

pankajcheema (Mon, 26 Mar 2018 06:09:29 GMT):
Anyone knows where I can locate `shim` and `peer` inside containers. The go import declares these packages ```import ( "fmt" "github.com/hyperledger/fabric/core/chaincode/shim" "github.com/hyperledger/fabric/protos/peer" ) ```

crissi (Mon, 26 Mar 2018 06:48:57 GMT):
I am trying to develop supply chain use case using fabric..Any sample chaincode to refer?

j1984 (Mon, 26 Mar 2018 06:59:13 GMT):
Has joined the channel.

labcoinpoc (Mon, 26 Mar 2018 06:59:19 GMT):
Has joined the channel.

Teckchun94 (Mon, 26 Mar 2018 07:09:25 GMT):
Has joined the channel.

magicianx25 (Mon, 26 Mar 2018 07:15:12 GMT):
do you know what this error means? 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

magicianx25 (Mon, 26 Mar 2018 07:15:52 GMT):
i think my ca.example.com is down but dont know how to turn it on

zhaok12 (Mon, 26 Mar 2018 08:09:43 GMT):

txflow.png

AnthonyLimo (Mon, 26 Mar 2018 08:26:07 GMT):
Has joined the channel.

AnthonyLimo (Mon, 26 Mar 2018 08:26:10 GMT):
Hey guys I'm having and issue trying to run some golang chaincode on Hyperledger Fabric. Can anyone help?

AnthonyLimo (Mon, 26 Mar 2018 08:27:01 GMT):
./main.go:41:23: cannot use new(DecodedChainCode) (type *DecodedChainCode) as type shim.Chaincode in argument to shim.Start: *DecodedChainCode does not implement shim.Chaincode (wrong type for Invoke method) have Invoke(shim.ChaincodeStubInterface, string, []string) ([]byte, error) want Invoke(shim.ChaincodeStubInterface) "github.com/hyperledger/fabric/protos/peer".Response

AnthonyLimo (Mon, 26 Mar 2018 08:27:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XPyXHtkBiu9RaGirk) This is the error I'm getting

Mohammed_Azhar (Mon, 26 Mar 2018 08:37:04 GMT):
Hello everyone, I was trying to test chaincode using node js. But i am getting an error while executing the following command: CORE_PEER_LOCALMSPID=Org1MSP CORE_PEER_MSPCONFIGPATH=/home/composer/Hyperledger/src/github.com/hyperledger/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp peer chaincode install -l node -n mycc -v v0 -p /home/composer/Hyperledger/src/github.com/hyperledger/fabric-samples/basic-network/nodecc/ *Error : ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

ragupathiR (Mon, 26 Mar 2018 08:47:56 GMT):
Has joined the channel.

khalifa (Mon, 26 Mar 2018 08:47:58 GMT):
Hi all, I have just finished some fabric tutorials. I have seen that cryptogen tool is only used for testing environment. Have you the reasons fot this information. thanks in advance

ragupathiR (Mon, 26 Mar 2018 08:48:05 GMT):
Hi All, I need a basic real time Dapp using Hyperledger Fabric.If any body have means,pls send that github repository.That will more helpful for my future process.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system needs only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system needs only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method. You can get additional parameters you passing to the invoke method by using GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system needs only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method. You can get additional parameters you passing to the invoke method by calling GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system has only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method. You can get additional parameters you passing to the invoke method by calling GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system has only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method. Instead, you can get additional parameters you passing to the invoke method by calling GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method required by the system has only 1 parameter that is shim.ChaincodeStubInterface. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method. Instead, you can get additional parameters you passing to the invoke method by calling GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

kiattchaip (Mon, 26 Mar 2018 08:54:52 GMT):
@AnthonyLimo The invoke method must have 1 parameter that is shim.ChaincodeStubInterface and the return type must be peer.Response. So, you need to remove the 2 unrelated parameters (String and String[]) from your invoke method and correct the return type. You can get additional parameters you passing to the invoke method by calling GetFunctionAndParameters method of the shim.ChaincodeStubInterface instance.

UmangGoel (Mon, 26 Mar 2018 09:58:56 GMT):
Has joined the channel.

UmangGoel (Mon, 26 Mar 2018 09:58:58 GMT):
Hi everyone, I have a question regarding chaincode instantiation through node js. I want to copy some my chaincode dependencies (like my own libraries) into my network. Can anyone help me with this?

crissi (Mon, 26 Mar 2018 10:02:38 GMT):
I am trying to test the chaincode.I am following the tutorial. https://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html

crissi (Mon, 26 Mar 2018 10:02:38 GMT):
I am trying to test the chaincode.I am following the tutorial. https://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html But it raises the following error :- ```

crissi (Mon, 26 Mar 2018 10:02:38 GMT):
I am trying to test the chaincode.I am following the tutorial. https://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html But it raises the following error :- ```orderer | 2018-03-26 10:01:29.657 UTC [orderer/common/server] initializeLocalMsp -> CRIT 017 Failed to initialize local MSP: signing identity expired 3232h54m29.657735856s ago orderer exited with code 1 cli | 2018-03-26 10:01:32.424 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp: signing identity expired 3232h54m32.424504147s ago cli exited with code 1 ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value ```(current value: 60).

pankajcheema (Mon, 26 Mar 2018 10:02:57 GMT):
Hi I have integrated kafka created a channel and also installed the chaincode on my custom network

pankajcheema (Mon, 26 Mar 2018 10:03:19 GMT):
but when running `peer channel fetch newest anothertestchannel.block -c anothertestchannel.block --orderer hr.debutinfotech.com:7050--tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/debutinfotech.com/orderers/hr.debutinfotech.com/msp/tlscacerts/tlsca.debutinfotech.com-cert.pem`

pankajcheema (Mon, 26 Mar 2018 10:03:46 GMT):
getting error `Error: failed to create deliver client: orderer client failed to connect to hr.debutinfotech.com:7050--tls: failed to create new connection: context deadline exceeded`

pankajcheema (Mon, 26 Mar 2018 10:03:56 GMT):
thanks in advance for help

pankajcheema (Mon, 26 Mar 2018 10:04:28 GMT):
i installed the chincode fabcar1.0 query also working fine

jiedeng (Mon, 26 Mar 2018 10:17:06 GMT):
hello, what is the channel’s ACL? and where i can find it's config,thank you

StupidPerson007 (Mon, 26 Mar 2018 10:21:06 GMT):
Has joined the channel.

chessequality (Mon, 26 Mar 2018 10:21:19 GMT):
Has joined the channel.

crissi (Mon, 26 Mar 2018 10:43:12 GMT):
I have verified the status chaincode-docker-dev. It returns the following error .

crissi (Mon, 26 Mar 2018 10:43:19 GMT):
```docker logs cli 2018-03-26 10:36:08.003 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp: signing identity expired 3233h29m8.003713315s ago 2018-03-26 10:36:44.619 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp: signing identity expired 3233h29m44.619112197s ago```

haxhaagn15 (Mon, 26 Mar 2018 10:53:22 GMT):
Has joined the channel.

haxhaagn15 (Mon, 26 Mar 2018 10:55:52 GMT):
Hello Guys. I am new here and very interested in how hyperledger fabric ensures security. I had a look at your website and I just want to be sure if I forgot something So: Security is provided through the implementation of channels, chaincodes and roles. Also by using identity management (MSP and digital signatures) and with the usage of TLS. Can anyone tell me if I’m on the right path? Thank you so much

username343 (Mon, 26 Mar 2018 11:33:41 GMT):
how do i specify read and write permissions for a channel in hyperledger fabric?

username343 (Mon, 26 Mar 2018 11:36:05 GMT):
@pankajcheema if you are trying to use the print statement for debugging purposes you can try the chaincode dev mode. the print statements in the chaincode will be printed in the chaincode container

shikherwalia07 (Mon, 26 Mar 2018 11:40:23 GMT):
Hi Experts....Where are blocks being Stored? Thanks in advance

username343 (Mon, 26 Mar 2018 11:47:37 GMT):
@crissi those certificate expired in nov 2017, you can checkout to tags/v1.1.0-alpha

crissi (Mon, 26 Mar 2018 11:52:25 GMT):
@username343 Can you please help me to resolve this issue?

crissi (Mon, 26 Mar 2018 11:52:33 GMT):
I am a beginner.

username343 (Mon, 26 Mar 2018 11:55:14 GMT):
go to the fabric-samples/chaincode-docker-devmode/ folder

username343 (Mon, 26 Mar 2018 11:55:18 GMT):
and run the following command

username343 (Mon, 26 Mar 2018 11:55:25 GMT):
git checkout tags/v1.1.0-alpha

crissi (Mon, 26 Mar 2018 11:55:36 GMT):
okay

crissi (Mon, 26 Mar 2018 11:55:42 GMT):
Let me try.

crissi (Mon, 26 Mar 2018 11:56:42 GMT):
git checkout tags/v1.1.0-alpha error: Your local changes to the following files would be overwritten by checkout: fabcar/invoke.js fabcar/registerUser.js Please commit your changes or stash them before you switch branches. Aborting

crissi (Mon, 26 Mar 2018 11:56:42 GMT):
```git checkout tags/v1.1.0-alpha error: Your local changes to the following files would be overwritten by checkout: fabcar/invoke.js fabcar/registerUser.js Please commit your changes or stash them before you switch branches. Aborting```

username343 (Mon, 26 Mar 2018 11:56:46 GMT):
@Vadim is there any documentation for defining/specifying the reader/writer policies for a channel in hyperledger fabric

username343 (Mon, 26 Mar 2018 11:57:05 GMT):
you can use the command -> git stash

username343 (Mon, 26 Mar 2018 11:57:05 GMT):
@crissi you can use the command -> git stash

username343 (Mon, 26 Mar 2018 11:57:33 GMT):
or commit your changes if you want

crissi (Mon, 26 Mar 2018 12:23:10 GMT):
@username343 Now it worked.

joaofguerreiro (Mon, 26 Mar 2018 12:26:50 GMT):
guys have anyone ever configured a fabric network using Aerospike as the default db?

pankajcheema (Mon, 26 Mar 2018 12:46:26 GMT):
Anyone know how can I explore of read the contents of blockchain and ledger?

nmarcetic (Mon, 26 Mar 2018 13:26:18 GMT):
@pankajcheema Maybe explorer can help you ? https://vimeo.com/174814785

nmarcetic (Mon, 26 Mar 2018 13:26:31 GMT):
https://github.com/hyperledger/blockchain-explorer

nmarcetic (Mon, 26 Mar 2018 13:29:43 GMT):
@joaofguerreiro As far as I know, only levelDB and couchDB are supported

username343 (Mon, 26 Mar 2018 13:45:28 GMT):
@nmarcetic do you know how can i specify the reader/writer policies for a channel in hyperledger fabric?

lmckhoi (Mon, 26 Mar 2018 13:47:02 GMT):
Has joined the channel.

nmarcetic (Mon, 26 Mar 2018 13:55:14 GMT):
@username343 maybe this can help you ? http://hyperledger-fabric.readthedocs.io/en/release-1.0/policies.html

AnthonyLimo (Mon, 26 Mar 2018 13:56:21 GMT):
@kiattchaip Thanks for the help!!!!

username343 (Mon, 26 Mar 2018 14:22:15 GMT):
how do admin sign the endorsements?

username343 (Mon, 26 Mar 2018 14:22:15 GMT):
how does admin sign the endorsements?

username343 (Mon, 26 Mar 2018 14:23:18 GMT):
i can understand the peer processess signing the endorsements but when we say that admin needs to endorse a transaction, do we wait for an explicit input from an user or the transaction is signed in a usual way by just using admin certs instead of peer certs?

nmarcetic (Mon, 26 Mar 2018 14:25:15 GMT):
Hm interesting question @username343 :) Not sure...

nmarcetic (Mon, 26 Mar 2018 14:25:20 GMT):
Let me check online

Net (Mon, 26 Mar 2018 15:09:56 GMT):
Has joined the channel.

nmarcetic (Mon, 26 Mar 2018 15:19:21 GMT):
@username343 Looks like you don't wait https://medium.com/kokster/hyperledger-fabric-endorsing-transactions-3c1b7251a709

nmarcetic (Mon, 26 Mar 2018 15:19:50 GMT):
Its just normal transaction process witch needs to satisfy some rules first

rob_Newton (Mon, 26 Mar 2018 15:26:42 GMT):
Has joined the channel.

MiguelPires (Mon, 26 Mar 2018 16:43:44 GMT):
Has joined the channel.

andreosti (Mon, 26 Mar 2018 17:32:07 GMT):
If I modify the ledger inside a single peer maliciously, will the peer at any moment download the correct block again?

akhilkrishna (Mon, 26 Mar 2018 17:54:11 GMT):
Hey! can any help me to figure out what exactly is the error below!

akhilkrishna (Mon, 26 Mar 2018 17:54:27 GMT):

error.txt

akhilkrishna (Mon, 26 Mar 2018 17:56:52 GMT):
I am facing this error while Updateing the anchor peers

akhilkrishna (Mon, 26 Mar 2018 17:56:52 GMT):
I am facing this error while Updating the anchor peers

douglasthiel (Mon, 26 Mar 2018 19:10:50 GMT):
I noticed that in the 1.1.0 docker-compose-cli.yaml for the first-network sample that the following lines were added to the top of the file. What do these lines do? volumes: orderer.example.com: peer0.org1.example.com: peer1.org1.example.com: peer0.org2.example.com: peer1.org2.example.com:

douglasthiel (Mon, 26 Mar 2018 19:15:59 GMT):
If you're using couchDB you can use [Fauxton](https://www.npmjs.com/package/fauxton)

douglasthiel (Mon, 26 Mar 2018 19:16:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Buuo6ztoaDszcbCoo) @pankajcheema If you're using couchDB you can use Fauxton

douglasthiel (Mon, 26 Mar 2018 19:22:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yZoyGMsc2A9bG73D9) @haxhaagn15 You may also want to check out the [Endorsement policies:] (http://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html)

0xSEGFAULT (Mon, 26 Mar 2018 19:29:57 GMT):
Has joined the channel.

0xSEGFAULT (Mon, 26 Mar 2018 19:29:59 GMT):
man for some reason I can't get the 1.1 network to work.. when I tried last it was 1.0.6 and it worked great! I just followed the byfn tutorial and it keeps giving me permission issues

0xSEGFAULT (Mon, 26 Mar 2018 19:30:21 GMT):
CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-03-26 19:30:16.014 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

0xSEGFAULT (Mon, 26 Mar 2018 19:30:39 GMT):
Does anyone know why this is happening?

Tuoba (Mon, 26 Mar 2018 19:36:01 GMT):
Has joined the channel.

aharita (Mon, 26 Mar 2018 23:19:40 GMT):
Has joined the channel.

dmproof (Mon, 26 Mar 2018 23:39:40 GMT):
@SB85 are u running fabric on windows? any success? I and others didnt have any real success as there are so many things to work around - was recommended to move to ubuntu os or ubuntu image on windows if no mac.

BroNull (Tue, 27 Mar 2018 02:15:20 GMT):
Has joined the channel.

krishna108 (Tue, 27 Mar 2018 03:51:38 GMT):
In the fabcar nodejs example ,the domain name is example.com,But i have replaced every where(configtx.yml,cryptoconfig.yml,docker compose .yml,enrollAdmin.js ) example.com to some other domain.

krishna108 (Tue, 27 Mar 2018 03:53:27 GMT):
After that I run generate.sh and startFabric.sh ,enrollAdmin.js and registerUser.js Everything goes fine upto this point,but when I run query.js ,I get following error error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority

krishna108 (Tue, 27 Mar 2018 04:00:36 GMT):
please some one guide me in this issue?

krishna108 (Tue, 27 Mar 2018 04:00:36 GMT):
please some one guide me in this issue.

pankajcheema (Tue, 27 Mar 2018 05:33:25 GMT):

Screenshot from 2018-03-27 10-57-23.png

pankajcheema (Tue, 27 Mar 2018 05:34:06 GMT):
does anyone know what might be the problem

prasuk.jain (Tue, 27 Mar 2018 05:37:49 GMT):
Has joined the channel.

prasuk.jain (Tue, 27 Mar 2018 05:38:10 GMT):
Hi! Anyone has a good reference to crypto-config , configtx and other .yaml files

pankajcheema (Tue, 27 Mar 2018 05:53:15 GMT):
@0xSEGFAULT I think you have assigned the wrong msp

tivak (Tue, 27 Mar 2018 06:14:36 GMT):
Has joined the channel.

crissi (Tue, 27 Mar 2018 06:17:39 GMT):
I am facing an issue while creating the chaincode in any other location other than the fabric-samples directory.Can I need to specify any path to the directory for the chaincodes,I am writing. ``` go install "github.com/hyperledger/fabric/bccsp/factory: open /usr/lib/go-1.9/pkg/linux_amd64/github.com/hyperledger/fabric/bccsp/factory.a :permission denied ``` I am facing this issue in fabric-samples directory too,If I create any other directory other than the directories listed in fabric-samples. Any comment on this issue?

thakurnikk (Tue, 27 Mar 2018 06:30:49 GMT):
Has joined the channel.

mrFranklin (Tue, 27 Mar 2018 06:40:12 GMT):
why does fabric v1.1 removed "pbft" ?

sanjeevkumarmsg (Tue, 27 Mar 2018 06:46:02 GMT):
Has joined the channel.

sanjeevkumarmsg (Tue, 27 Mar 2018 06:48:08 GMT):
What is basic structure of hyperledger fabric

username343 (Tue, 27 Mar 2018 06:49:02 GMT):
@sanjeevkumarmsg are you asking about the block structure or a basic transaction flow?

sanjeevkumarmsg (Tue, 27 Mar 2018 06:49:04 GMT):
Can anyone explain about configuration file of network creation?

shailaja.mahara (Tue, 27 Mar 2018 06:52:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7Y4Cns2TqtYuD5yYT) @sanjeevkumarmsg Hi Sanjeev,

shailaja.mahara (Tue, 27 Mar 2018 06:53:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7Y4Cns2TqtYuD5yYT) @sanjeevkumarmsg I recommend this video https://www.youtube.com/watch?v=nF9fkBuBNpE

shailaja.mahara (Tue, 27 Mar 2018 06:54:00 GMT):
This one too https://www.youtube.com/watch?v=2_RgCfjunEU

shailaja.mahara (Tue, 27 Mar 2018 06:57:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5kzphej7erhsRzwbJ) @mrFranklin I'm not sure why you say 'removed'. To my knowledge, PBFT was never implemented in version 1.0. There was only SOLO and Kafka based ordering.

shailaja.mahara (Tue, 27 Mar 2018 06:58:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3h7wr6kZoyu7hwKwv) @prasuk.jain Hi Prasuk. What exactly are you looking for?

prasuk.jain (Tue, 27 Mar 2018 06:59:54 GMT):
I am new to fabric and want to build my customized network .

prasuk.jain (Tue, 27 Mar 2018 07:01:31 GMT):
@shailaja.mahara I am looking for a list of all properties and their discription

shailaja.mahara (Tue, 27 Mar 2018 07:03:27 GMT):
@prasuk.jain Not sure what you mean by that, but if you're absolutely new then why don't you try the edx course on blockchain for business and youtube videos on blockchain. I recommend this channel: https://www.youtube.com/channel/UC90Kw63c-FzGulDb_w2GFzw

shailaja.mahara (Tue, 27 Mar 2018 07:04:31 GMT):
I'm assuming you already have access to the fabric readthedocs. They are one of the best sources out there/

prasuk.jain (Tue, 27 Mar 2018 07:10:50 GMT):
Thanks

ibmamnt (Tue, 27 Mar 2018 07:33:34 GMT):
0.4.6

trilochanachary (Tue, 27 Mar 2018 07:35:36 GMT):
Has joined the channel.

anilrachakonda (Tue, 27 Mar 2018 07:36:01 GMT):
Has joined the channel.

ibmamnt (Tue, 27 Mar 2018 07:36:17 GMT):
Question around versioning of 3rd party image. Looks like community has changed to use "baseimage" version in stead of "hyperledger release version" for 3rd party images. For example, baseimage/couchdb/kafka is "0.4.6", while peer/orderer is "1.1.0". Is my understanding correct ?

magicianx25 (Tue, 27 Mar 2018 07:36:19 GMT):
do you know what this error means? 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" i think my ca.example.com is down but dont know how to turn it on

anilrachakonda (Tue, 27 Mar 2018 07:36:39 GMT):
Hello, Can any one help me to understand what does single peer docker image contains of

ibmamnt (Tue, 27 Mar 2018 07:39:01 GMT):
@anilrachakonda ```FROM _BASE_NS_/fabric-baseos:_BASE_TAG_ ENV FABRIC_CFG_PATH /etc/hyperledger/fabric RUN mkdir -p /var/hyperledger/production $FABRIC_CFG_PATH COPY payload/peer /usr/local/bin ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH CMD ["peer","node","start"]```

ibmamnt (Tue, 27 Mar 2018 07:39:51 GMT):
Refer to here https://github.com/hyperledger/fabric/tree/release-1.1/images

anilrachakonda (Tue, 27 Mar 2018 07:39:59 GMT):
@ibmamnt Thank you

ibmamnt (Tue, 27 Mar 2018 07:47:16 GMT):
fabric-baseos seems to be Ubuntu. So peer image only has "peer" command and sample config under /etc/hyperledger/fabric

pavithrans (Tue, 27 Mar 2018 08:50:42 GMT):
How to solve the below error

pavithrans (Tue, 27 Mar 2018 08:50:43 GMT):
ERROR: Service 'market-shell' failed to build: The command '/bin/sh -c echo "deb apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD" && echo 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe' >> /etc/apt/sources.list && apt-get update && apt-get install -y --allow-unauthenticated -q python3-pip python3-sawtooth-sdk python3-sawtooth-rest-api python3-sawtooth-cli python3-sawtooth-signing cron-apt curl' returned a non-zero code: 100

ArvsIndrarys (Tue, 27 Mar 2018 09:04:45 GMT):
Hi guys ! I still have trouble making my chaincode work after setting up the kafka, wuth the same error : ` 2018-03-27 08:56:02.176 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.20 because it doesn't contain any IP SANs` Disabling the TLS in my netwwork made the chaincode work, but it would be avoidable for production purposes. What I am finding strange is that the address given isn't linked to any container. `10.0.4.20` isn't linked to any container when I do `docker network inspect `. I would guess that address would be the one of the chaincode's container, but I never gave him any TLS cert before. Can someone help me?

ArvsIndrarys (Tue, 27 Mar 2018 09:04:45 GMT):
Hi guys ! I still have trouble making my chaincode work after setting up the kafka, with the same error : ` 2018-03-27 08:56:02.176 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.20 because it doesn't contain any IP SANs` Disabling the TLS in my netwwork made the chaincode work, but it would be avoidable for production purposes. What I am finding strange is that the address given isn't linked to any container. `10.0.4.20` isn't linked to any container when I do `docker network inspect `. I would guess that address would be the one of the chaincode's container, but I never gave him any TLS cert before. Can someone help me?

ArvsIndrarys (Tue, 27 Mar 2018 09:04:45 GMT):
Hi guys ! I still have trouble making my chaincode work after setting up the kafka, with the same error : ` 2018-03-27 08:56:02.176 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.20 because it doesn't contain any IP SANs` Disabling the TLS in my network made the chaincode work, but it would be avoidable for production purposes. What I am finding strange is that the address given isn't linked to any container. `10.0.4.20` isn't linked to any container when I do `docker network inspect `. I would guess that address would be the one of the chaincode's container, but I never gave him any TLS cert before. Can someone help me?

ArvsIndrarys (Tue, 27 Mar 2018 09:04:45 GMT):
Hi guys ! I still have trouble making my chaincode work after setting up the kafka, with the same error : ` 2018-03-27 08:56:02.176 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: x509: cannot validate certificate for 10.0.4.20 because it doesn't contain any IP SANs` Disabling the TLS in my network made the chaincode work, but it would be avoidable for production purposes. What I am finding strange is that the address given isn't linked to any container. `10.0.4.20` isn't linked to any container when I do `docker network inspect `. I would guess that address would be the one of the chaincode's container, but I never gave it any TLS cert before. Can someone help me?

tho39108 (Tue, 27 Mar 2018 09:06:55 GMT):
Has joined the channel.

IlhamQasse (Tue, 27 Mar 2018 09:19:35 GMT):
Has joined the channel.

IlhamQasse (Tue, 27 Mar 2018 09:26:08 GMT):
Hello, can any one know a way to access the data saved in couchdb of peer from another program that its not running on the network (not Chaincode). I want to check the value of a variable, and based on that my program will do some task. Due to the application im working on I can't use Chaincode to perform that. Any hint ?

tho39108 (Tue, 27 Mar 2018 09:35:37 GMT):
Hi guys, I'm having problems with the chaincode container. can you help me? it seams like the server can not create genesis block.. see this log: server.medication.com | error: [Orderer.js]: sendDeliver - rejecting - status:NOT_FOUND server.medication.com | Could not find genesis block. Going to create channel! server.medication.com | creating channel. later on i get this error, which shut down chaincode... server.tracked-medication.com | error: [Peer.js]: sendProposal - timed out after:45000 server.tracked-medication.com | error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT server.tracked-medication.com | at Timeout._onTimeout (/usr/src/app/node_modules/fabric-client/lib/Peer.js:100:19) server.tracked-medication.com | at ontimeout (timers.js:386:11) server.tracked-medication.com | at tryOnTimeout (timers.js:250:5) server.tracked-medication.com | at Timer.listOnTimeout (timers.js:214:5) server.tracked-medication.com | Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... server.tracked-medication.com | proposal was bad server.tracked-medication.com | error: [Channel.js]: sendTransaction error Missing input request object on the proposal request server.tracked-medication.com | (node:79) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Missing input request object on the proposal request server.tracked-medication.com | (node:79) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): undefined peer0.org.tracked-medication.com | 2018-03-27 09:20:17.319 UTC [chaincode] launchAndWaitForRegister -> DEBU 3ad stopping due to error while launching Timeout expired while starting chaincode trackedmeds:v1(networkid:dev,peerid:peer0.org.tracked-medication.com,tx:60cc08a78a6e8cbfd0a126161eb44547f4b03596cecaf330f4c35470e03e2f1c)[....] peer0.org.tracked-medication.com | 2018-03-27 09:20:17.332 UTC [endorser] ProcessProposal -> DEBU 3ba Exit i only added smart contracts and server controllers to this working exampel. please help

zian.yusuf (Tue, 27 Mar 2018 09:45:37 GMT):
Has joined the channel.

AshishMishra 1 (Tue, 27 Mar 2018 09:50:39 GMT):
Hi guys, how is the ledger different from my block-chain? The blockchain is tamper proof but not my ledger (say I 'm using couch). So how do I trust the ledger which is a state of my blockchain.

crissi (Tue, 27 Mar 2018 11:02:32 GMT):
I am testing chaincode. I am following the above link for your reference http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html.

crissi (Tue, 27 Mar 2018 11:02:52 GMT):
But it raises the following error :-

crissi (Tue, 27 Mar 2018 11:03:05 GMT):
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1

crissi (Tue, 27 Mar 2018 12:54:01 GMT):
Its possible to build the chaincode, even though it raises the above issue. I have written a simple chaincode.I am following this tutorial http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html for deployment of chaincode. But it raises the following issue. ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 Usage: peer channel create [flags] ``` Any idea regarding this.

walnemer1976 (Tue, 27 Mar 2018 13:06:48 GMT):
Has joined the channel.

walnemer1976 (Tue, 27 Mar 2018 13:06:52 GMT):
hello every one, im trying to build network of 4 peers and 2 orderers, all in same channel, how to create channel, and which orderer to use to create the channel and how the other orderer will be part of the channel

ShobhitSrivastava (Tue, 27 Mar 2018 13:28:39 GMT):
@crissi ..by looking at the error it seems you already have a channel created. Try log in to peer and check "peer channel list" to see the list of channel peer joined.

SB85 (Tue, 27 Mar 2018 14:03:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n5MsSnGaQbPZeuf8b) @dmproof . Yes. I am running fabric on windows 10. yes. It was real pain to set up everything on windows as we don't have much guidance.

SB85 (Tue, 27 Mar 2018 14:03:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n5MsSnGaQbPZeuf8b) @dmproof . Yes. I am running fabric on windows 10. yes. It was real pain to set up everything in windows as we don't have much guidance.

skarim (Tue, 27 Mar 2018 14:08:38 GMT):
Has joined the channel.

pankajcheema (Tue, 27 Mar 2018 14:11:43 GMT):
Hi I have stop all the container of zookeeper bt everything working fine

pankajcheema (Tue, 27 Mar 2018 14:11:52 GMT):
like query and update

pankajcheema (Tue, 27 Mar 2018 14:11:59 GMT):
on chaincode

pankajcheema (Tue, 27 Mar 2018 14:12:21 GMT):
why didn.t evrything go down

pankajcheema (Tue, 27 Mar 2018 14:12:21 GMT):
why didn't everything go down

mujji89 (Tue, 27 Mar 2018 16:00:48 GMT):
Has joined the channel.

mujji89 (Tue, 27 Mar 2018 16:01:39 GMT):
Hi, I have a question related hacker/sybil attack. If there are two organization with 1 private channel and lets say 5 peers. Is it possible for 1 organization to over power other and change the ledger?

ruffsl (Tue, 27 Mar 2018 16:14:33 GMT):
Has joined the channel.

chadevans (Tue, 27 Mar 2018 16:24:04 GMT):
Has joined the channel.

vparihar (Tue, 27 Mar 2018 16:50:50 GMT):
@ragupathiR Here is a good starting point if you want to take a look https://chainhero.io/2017/07/tutorial-build-blockchain-app/

XingqiangMao (Tue, 27 Mar 2018 18:10:00 GMT):
Has joined the channel.

XingqiangMao (Tue, 27 Mar 2018 18:10:34 GMT):
Hi Everyone having a stupid question. But already stuck for a while. I am playing e2e example. After running ./network_setup.sh up Check orderering service availability... Attempting to fetch system channel 'testchainid' ...3 secs Attempting to fetch system channel 'testchainid' ...7 secs Attempting to fetch system channel 'testchainid' ...10 secs Attempting to fetch system channel 'testchainid' ...13 secs Attempting to fetch system channel 'testchainid' ...16 secs Attempting to fetch system channel 'testchainid' ...19 secs Attempting to fetch system channel 'testchainid' ...23 secs Attempting to fetch system channel 'testchainid' ...26 secs Attempting to fetch system channel 'testchainid' ...29 secs Attempting to fetch system channel 'testchainid' ...32 secs Attempting to fetch system channel 'testchainid' ...35 secs Attempting to fetch system channel 'testchainid' ...39 secs Attempting to fetch system channel 'testchainid' ...42 secs Attempting to fetch system channel 'testchainid' ...45 secs Attempting to fetch system channel 'testchainid' ...48 secs Attempting to fetch system channel 'testchainid' ...51 secs Attempting to fetch system channel 'testchainid' ...54 secs Attempting to fetch system channel 'testchainid' ...57 secs Attempting to fetch system channel 'testchainid' ...60 secs 2018-03-27 18:06:09.183 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/intermediatecerts: no such file or directory] 2018-03-27 18:06:09.184 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/crls: no such file or directory] 2018-03-27 18:06:09.184 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/config.yaml: no such file or directory] 2018-03-27 18:06:09.220 UTC [bccsp_sw] loadPrivateKey -> ERRO 004 Failed loading private key [4ed720b133e7cfccfa28505d5b078df1021a93c53e84faae19f6aab87cc24a68]: [open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/keystore/4ed720b133e7cfccfa28505d5b078df1021a93c53e84faae19f6aab87cc24a68_sk: permission denied]. panic: Error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp: err KeyMaterial not found in SigningIdentityInfo goroutine 1 [running]: panic(0xc4cfe0, 0xc420271860) /opt/go/src/runtime/panic.go:500 +0x1a1 main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:113 +0x69b !!!!!!!!!!!!!!! Ordering Service is not available, Please try again ... !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

XingqiangMao (Tue, 27 Mar 2018 18:11:11 GMT):
Anyone can help?

vatsal.shah (Tue, 27 Mar 2018 20:24:47 GMT):
Has joined the channel.

XingqiangMao (Tue, 27 Mar 2018 21:29:23 GMT):
Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1

XingqiangMao (Tue, 27 Mar 2018 21:29:23 GMT):
Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 Rejecting broadcast of config message from 172.18.0.7:60718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1

XingqiangMao (Tue, 27 Mar 2018 21:29:59 GMT):
Getting this in the container

XingqiangMao (Tue, 27 Mar 2018 21:30:05 GMT):
Any one can help?

thoduerr (Tue, 27 Mar 2018 21:44:41 GMT):
Has joined the channel.

MichaelCutrer (Tue, 27 Mar 2018 23:12:47 GMT):
Im getting this error and for the life of me do not understand it: "composer network ping --card admin@airlinev8 Error: Error trying to ping. Error: Error trying to query business network. Error: access denied: channel [composerchannel] creator org [Org1MSP]"

MichaelCutrer (Tue, 27 Mar 2018 23:15:27 GMT):
The error came from using these commands: teardownFabric.sh,stopFabric.sh,startFabric.sh

jrosmith (Wed, 28 Mar 2018 03:30:04 GMT):
@MichaelCutrer #composer will be able to help you best

username343 (Wed, 28 Mar 2018 05:03:29 GMT):
@XingqiangMao if you are trying to create a channel, don't. the channel has already been created

username343 (Wed, 28 Mar 2018 05:04:02 GMT):
where does the orderer process read the channel readers/writers permissions from?

username343 (Wed, 28 Mar 2018 05:04:27 GMT):
and how can i specify those permissions according to my requirement?

pankajcheema (Wed, 28 Mar 2018 05:37:24 GMT):
Anyone here know what is a `Chaincode Deployment Specs`?? What it is used for? I could not understand from official doc. If anyone here can explain me, it would be really helpful for me. @TobiasN @jyellick @mikykey @martinvaller

martinvaller (Wed, 28 Mar 2018 05:37:24 GMT):
Has joined the channel.

DaraPenhchet (Wed, 28 Mar 2018 05:55:03 GMT):
ll

DaraPenhchet (Wed, 28 Mar 2018 05:55:46 GMT):
Hello everyone could I ask all of you how to define the user and participants in our Hyperledger Fabric Network?

sanjeevkumarmsg (Wed, 28 Mar 2018 05:58:27 GMT):
which branch i should clone sample, or i can use master also

ankitrajshree (Wed, 28 Mar 2018 06:19:10 GMT):
Has joined the channel.

BilalAhmad (Wed, 28 Mar 2018 06:43:39 GMT):
Has joined the channel.

BilalAhmad (Wed, 28 Mar 2018 06:44:44 GMT):
How can we define that a certain peer can only endorse but it should not be able to maintain the state of ledger ? How can we define that a certain peer can only endorse but it should not be able to maintain the state of ledger ? How can we define that a certain peer can only endorse but it should not be able to maintain the state of ledger ? How can we define that a certain peer can only endorse but it should not be able to maintain the state of ledger ?

BilalAhmad (Wed, 28 Mar 2018 06:44:56 GMT):
How can we define that a certain peer can only endorse but it should not be able to maintain the state of ledger ?

atiffarrukh (Wed, 28 Mar 2018 08:52:27 GMT):

error.png

atiffarrukh (Wed, 28 Mar 2018 08:52:27 GMT):

error.png

atiffarrukh (Wed, 28 Mar 2018 09:00:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6jRgrPcGdbFSttPfa) I believe its TLS issue? I have enabled TLS.

atiffarrukh (Wed, 28 Mar 2018 09:16:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E9mePHmuQ4CX5abiD) Is there a way to add TLS certificates to Fabcar example?

LuanHongjun (Wed, 28 Mar 2018 09:21:28 GMT):
Has joined the channel.

LuanHongjun (Wed, 28 Mar 2018 09:21:48 GMT):
Hello. I'm trying fabric-samples.

LuanHongjun (Wed, 28 Mar 2018 09:21:57 GMT):
And got an error as below:

LuanHongjun (Wed, 28 Mar 2018 09:22:01 GMT):
########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2018-03-28 17:15:39.321 CST [common/configtx/tool] main -> INFO 001 Loading configuration 2018-03-28 17:15:39.326 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 4 error(s) decoding: * '' has invalid keys: capabilities * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities

LuanHongjun (Wed, 28 Mar 2018 09:22:15 GMT):
Anyone could help me?

LuanHongjun (Wed, 28 Mar 2018 09:24:56 GMT):
It blocks me for 24hs

martinvaller (Wed, 28 Mar 2018 09:28:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iouFEkRBXNxfAGdoA) @LuanHongjun What version of fabric are you using?

martinvaller (Wed, 28 Mar 2018 09:28:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iouFEkRBXNxfAGdoA) @LuanHongjun What version of fabric are you using? peer versio

martinvaller (Wed, 28 Mar 2018 09:28:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iouFEkRBXNxfAGdoA) @LuanHongjun What version of fabric are you using?

LuanHongjun (Wed, 28 Mar 2018 09:30:10 GMT):
I've tried both with 1.0.0 and 1.1.0

LuanHongjun (Wed, 28 Mar 2018 09:30:15 GMT):
Both failed

martinvaller (Wed, 28 Mar 2018 09:30:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wCywDbYYeBBrTRvbD) @LuanHongjun Have you compared your file to this example? https://github.com/hyperledger/fabric/blob/release-1.1/sampleconfig/configtx.yaml

LuanHongjun (Wed, 28 Mar 2018 09:31:55 GMT):
Not till now.

LuanHongjun (Wed, 28 Mar 2018 09:32:59 GMT):
I will compare it soon

LuanHongjun (Wed, 28 Mar 2018 09:34:33 GMT):
And it's totally different with mine.

LuanHongjun (Wed, 28 Mar 2018 09:35:03 GMT):
I'm try with http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html

LuanHongjun (Wed, 28 Mar 2018 09:35:21 GMT):
and http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

LuanHongjun (Wed, 28 Mar 2018 09:35:56 GMT):
git clone -b master https://github.com/hyperledger/fabric-samples.git cd fabric-samples git checkout {TAG}

LuanHongjun (Wed, 28 Mar 2018 09:36:08 GMT):
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

LuanHongjun (Wed, 28 Mar 2018 09:36:26 GMT):
cd fabric-samples/first-network

LuanHongjun (Wed, 28 Mar 2018 09:36:38 GMT):
./byfn.sh -m generate

LuanHongjun (Wed, 28 Mar 2018 09:36:43 GMT):
Then it fails.

LuanHongjun (Wed, 28 Mar 2018 09:36:55 GMT):
:sob:

atiffarrukh (Wed, 28 Mar 2018 10:55:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mLsPoMaBsJuQ2pKXL) I added the PEM file to peer and orderer using the code ``` var peer = fabric_client.newPeer('grpcs://localhost:7051', { pem: '..//root/bingeables/crypto-config/peerOrganizations/org1.abc.com/peers/peer0.org1.abc.com/tls/', 'ssl-target-name-override': 'peer0.org1.abc.com' }); var order = fabric_client.newOrderer('grpcs://localhost:7050', { pem: '../crypto-config/ordererOrganizations/bingeable.com/tlsca/tlsca.abc.com-cert.pem', 'ssl-target-name-override': 'orderer.abc.com' }) channel.addPeer(peer) channel.addOrderer(order); ``` now i am getting `ssl_transport_security.cc:599] Could not load any root certificate. Using GRPC version 1.10.0

thesachinmittal (Wed, 28 Mar 2018 11:29:59 GMT):
Has joined the channel.

magicianx25 (Wed, 28 Mar 2018 13:45:43 GMT):

Untitled1.png

magicianx25 (Wed, 28 Mar 2018 13:46:00 GMT):
What does this error mean for ./byfn.sh -m up?

magicianx25 (Wed, 28 Mar 2018 13:46:08 GMT):
think something wrong with docker

bandreghetti (Wed, 28 Mar 2018 14:26:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E3ZQ25cRi8DfkDZoR) @magicianx25 what is in your docker compose file? try changing the fabric images to v1.1.0-release

magicianx25 (Wed, 28 Mar 2018 14:30:11 GMT):
how do i do that?

haniraza (Wed, 28 Mar 2018 14:32:19 GMT):
@magicianx25 There will be a docker-compose.yaml file. @bandreghetti is talking about that file

magicianx25 (Wed, 28 Mar 2018 14:33:03 GMT):
there are multiple files

magicianx25 (Wed, 28 Mar 2018 14:33:24 GMT):
docker-compose-cli

magicianx25 (Wed, 28 Mar 2018 14:33:26 GMT):
couch

magicianx25 (Wed, 28 Mar 2018 14:33:28 GMT):
couch-org3

magicianx25 (Wed, 28 Mar 2018 14:33:29 GMT):
e3e

nicolasburtey (Wed, 28 Mar 2018 14:33:31 GMT):
Has joined the channel.

magicianx25 (Wed, 28 Mar 2018 14:33:48 GMT):
they are in fabric-samples/first-network

magicianx25 (Wed, 28 Mar 2018 14:34:36 GMT):
there is one though that is just docker-compose.yaml in fabric-samples/balance-transfer/artifacts

XingqiangMao (Wed, 28 Mar 2018 14:37:08 GMT):
@username343 Thank you! I get the point. It about the first network example. If I run the ./byrc -m up. The channel has already been created and joined.

XingqiangMao (Wed, 28 Mar 2018 14:37:18 GMT):
Recreate will have problem.

bandreghetti (Wed, 28 Mar 2018 14:40:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e8EFAASpdPtqHe47q) @XingqiangMao just edit script.sh and comment out the channel create and join commands alternatively you can alter the cli docker file and remove execution of script.sh what i do is run ```$ docker stop $(docker ps -aq)``` and then ```$ docker rm $(docker ps -aq)``` before running a test network to guarantee it is a clean slate maybe that's not what you want

bandreghetti (Wed, 28 Mar 2018 14:40:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e8EFAASpdPtqHe47q) @XingqiangMao just edit script.sh and comment out the channel create and join commands alternatively you can alter the cli docker file and remove execution of script.sh what i do is run ``` $ docker stop $(docker ps -aq) $ docker rm $(docker ps -aq) ``` before running a test network to guarantee it is a clean slate maybe that's not what you want

bandreghetti (Wed, 28 Mar 2018 14:42:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nYR2JHxcyTE6s5HnP) @magicianx25 you have to edit all of them to ensure they are trying to use more recent versions of fabric

magicianx25 (Wed, 28 Mar 2018 14:43:12 GMT):
edit them how? can't i just download the latest fabric-samples file?

bandreghetti (Wed, 28 Mar 2018 14:44:02 GMT):
i guess you can just checkout the latest files from github, yes

magicianx25 (Wed, 28 Mar 2018 14:44:39 GMT):
i did that though

magicianx25 (Wed, 28 Mar 2018 14:44:43 GMT):
i use v1.1.0

bandreghetti (Wed, 28 Mar 2018 14:46:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uqBoKtM744YevjQ4v) @magicianx25 your log said you were using v1.0.0-beta though... that's weird

magicianx25 (Wed, 28 Mar 2018 14:47:22 GMT):
git clone -b 1.1.0 https://github.com/hyperledger/fabric-samples.git

magicianx25 (Wed, 28 Mar 2018 14:47:28 GMT):
il use that

XingqiangMao (Wed, 28 Mar 2018 14:48:35 GMT):
@bandreghetti Thanks make tons of sense. Thank you very much!

magicianx25 (Wed, 28 Mar 2018 14:48:47 GMT):
how can i change the version of docker_image

AnomalRoil (Wed, 28 Mar 2018 14:49:48 GMT):
Hello. I was wondering how one could handle "counters" in Fabric: let's say I'd like to have a counter counting the number of a given asset currently circulating... I can see two methods to handle this: - the first one would be to have an asset `counter={amount}`, and each time a CreateAsset transaction is run, the counter is incremented by the client at the same time that the asset is created. - the second one implies handling this using a chaincode, but this would imply a latency of at least one block I think (since I could not possibly handle this at the VSCC level, otherwise it would violate the fact that peers do not create transactions....). The chaincode could watch the previous blocks and write the updated `counter` asset in the next block... But aren't chaincode supposed to be called by a client too? So it would be the responsibility of the clients creating new assets to correctly call this chaincode, wouldn't it? I believe my first solution wouldn't work, since there would be read-write conflicts on that `counter` asset... I also believe my second solution is not fault-tolerant, since the client might miss the chaincode call... What's your take on this challenge? How would you solve it using Fabric?

bandreghetti (Wed, 28 Mar 2018 14:58:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L7jrERyp6HuxxqxkY) @magicianx25 inside the docker-compose files there are lines like this one: ``` image: hyperledger/fabric-peer:x86_64-1.1.0 ``` this is where you choose the version of your docker fabric image for that node of the network

magicianx25 (Wed, 28 Mar 2018 14:59:07 GMT):
use visual studio to change them?

bandreghetti (Wed, 28 Mar 2018 14:59:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DndaiXbNYjgjzi6id) @magicianx25 whatever text editor you prefer

magicianx25 (Wed, 28 Mar 2018 15:00:31 GMT):
image: hyperledger/fabric-orderer:$IMAGE_TAG

magicianx25 (Wed, 28 Mar 2018 15:00:40 GMT):
mine is that dont know why

bandreghetti (Wed, 28 Mar 2018 15:09:05 GMT):
this means your file is using an environment variable to define the images version

bandreghetti (Wed, 28 Mar 2018 15:11:46 GMT):
in byfn.sh there is a line defining IMAGETAG variable, i'm guessing if you change that to ```1.1.0``` or ```latest``` it might work

bandreghetti (Wed, 28 Mar 2018 15:11:46 GMT):
in byfn.sh there is a line defining IMAGETAG variable, i'm guessing if you change that to `1.1.0` or `latest` it might work

bandreghetti (Wed, 28 Mar 2018 15:14:56 GMT):
why are you using -m, by the way?

nadineouro (Wed, 28 Mar 2018 15:26:39 GMT):
Has joined the channel.

nadineouro (Wed, 28 Mar 2018 15:26:51 GMT):
Hello! I just started in Hyperledger Fabric and even seeing the tutorials, I'm still lost about how to start a blockchain network. What's the first step I should take? Please, help me ☹

Gerard9494 (Wed, 28 Mar 2018 16:19:20 GMT):
Hello, Does anyone knows how to solve this problem when i try to start a new network using composer? peer1.org2.example.com | 2018-03-28 14:59:18.682 UTC [eventhub_producer] Chat -> ERRO 36a Error handling message: event message must be properly signed by an identity from the same organization as the peer: [failed deserializing event creator: [Expected MSP ID Org2MSP, received Org1MSP]] Thanks! 🙂

SharonDevasia (Wed, 28 Mar 2018 16:33:41 GMT):
Has joined the channel.

magicianx25 (Wed, 28 Mar 2018 16:53:35 GMT):
@bandreghetti thats what the tutorial says to do don't know why

william123 (Wed, 28 Mar 2018 17:55:15 GMT):
Has joined the channel.

MohammadObaid (Wed, 28 Mar 2018 17:56:34 GMT):
Does anyone know about FabCoin which is published in one of hyperledger-fabric paper ? @yacovm

yacovm (Wed, 28 Mar 2018 17:58:16 GMT):
why is everyone tagging me all the time :tired_face:

yacovm (Wed, 28 Mar 2018 17:58:27 GMT):
what do you want to ask about FabCoin?

joaquimpedrooliveira (Wed, 28 Mar 2018 18:00:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wXBhbRhPNeAoBb3KL) @nadineouro I've been lost just like you. My advice is to start from "First Network" tutorial and understand what `byfn.sh` and `scripts/script.sh` do in every step.

MohammadObaid (Wed, 28 Mar 2018 18:02:34 GMT):
@yacovm Actually I saw you name on that paper :D Anyway Can I get a link of that fabcon repo if it is public ? It will help me in my usecase :)

magicianx25 (Wed, 28 Mar 2018 18:16:41 GMT):
i re-installed docker and I get different error...

magicianx25 (Wed, 28 Mar 2018 18:18:03 GMT):

Untitled1.png

vsadriano (Wed, 28 Mar 2018 18:21:24 GMT):
Hi! I'm getting the error bellow after try to instantiate a chaincode: ```shell 2018-03-28 12:51:27.568 UTC [util] DockerBuild -> DEBU 3b2 Attempting build with image hyperledger/fabric-ccenv:x86_64-1.0.6 2018-03-28 12:51:28.418 UTC [chaincode-platform] func1 -> ERRO 3b3 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package chaincode/chaincode_example02: cannot find package "chaincode/chaincode_example02" in any of: /opt/go/src/chaincode/chaincode_example02 (from $GOROOT) /chaincode/input/src/chaincode/chaincode_example02 (from $GOPATH) /opt/gopath/src/chaincode/chaincode_example02 ``` Well, other operations such as `channel create`, `channel join` and `chaincode install` was succeeded or there's no error messages on logs at least. I'm running all commands from cli container and the chaincode exists on PATH mentioned. Can someone please help me?

vsadriano (Wed, 28 Mar 2018 18:21:24 GMT):
Hi! I'm getting the error bellow after try to instantiate a chaincode: ```shell 2018-03-28 12:51:27.568 UTC [util] DockerBuild -> DEBU 3b2 Attempting build with image hyperledger/fabric-ccenv:x86_64-1.0.6 2018-03-28 12:51:28.418 UTC [chaincode-platform] func1 -> ERRO 3b3 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package chaincode/chaincode_example02: cannot find package "chaincode/chaincode_example02" in any of: /opt/go/src/chaincode/chaincode_example02 (from $GOROOT) /chaincode/input/src/chaincode/chaincode_example02 (from $GOPATH) /opt/gopath/src/chaincode/chaincode_example02 ``` Well, other operations such as `channel create`, `channel join` and `chaincode install` were succeeded or there's no error messages on logs at least. I'm running all commands from cli container and the chaincode exists on PATH mentioned. Can someone please help me?

vsadriano (Wed, 28 Mar 2018 18:23:37 GMT):
Of course `channel create`, `channel join` and `chaincode install` were previous operations.

yacovm (Wed, 28 Mar 2018 18:37:02 GMT):
@MohammadObaid i don't have it handy.... you may want to ask @stchrysa

stchrysa (Wed, 28 Mar 2018 18:37:02 GMT):
Has joined the channel.

ceebo (Wed, 28 Mar 2018 18:39:35 GMT):
Has joined the channel.

tmorstyn (Wed, 28 Mar 2018 18:57:20 GMT):
Has joined the channel.

pmryan (Wed, 28 Mar 2018 21:22:54 GMT):
Has joined the channel.

pmryan (Wed, 28 Mar 2018 22:05:11 GMT):
Hello, Looking for direction from someone that can help with adding CA servers programmatically during the use of BYFN scripts. There was an issue @sstone1 brought up, [FAB-6978] Provide an option to BYFN to start the Fabric CA for the network, but for some reason the issue was struck down as "works as designed". Any way some one can help me get rid of the use of cryptogen in BYFN in favor of using CAs for each organisation?

rstefanov (Wed, 28 Mar 2018 22:20:57 GMT):
Has joined the channel.

rstefanov (Wed, 28 Mar 2018 22:27:50 GMT):
Hello, i'm running HL on an ubuntu virtual machine. After installing hyperledger prerequisites and binaries, when i try to execute the 'peer' command, it returns: [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "". On my machine (MAC) the command runs perfectly and displays the command usage description. Any ideas? I tried with 3 virtual machines and all result to to the same error. Thank you!

bandreghetti (Wed, 28 Mar 2018 22:54:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rKeWK6XN6KHjybSYt) @magicianx25 try running it without -m apparently this arg is for compatibility with deprecated usage of the script or something

pmryan (Wed, 28 Mar 2018 23:38:35 GMT):
@mastersingh24 , you had commented on this issue about the use of docker-compose-e2e.yaml, but instead, can you direct me to any resource that can show how to use CAs from the onset instead of cryptogen? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o7q8soKZuHWEREjww)

pmryan (Wed, 28 Mar 2018 23:39:20 GMT):
* inside of BYFN.sh

silliman (Thu, 29 Mar 2018 00:12:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aPPhLcrEaiSqCpg44) @pmryan this has what you're looking for: https://github.com/hyperledger/fabric-samples/tree/release-1.1/fabric-ca

pmryan (Thu, 29 Mar 2018 00:39:42 GMT):
@silliman Thank you fro replying. I have looked at fabric-ca, but I was trying to use the setup that BYFN is using, just WITH the CAs for each org instead of cryptogen. I am trying to scale this to N number of Orgs. Does Fabric-CA work on top of BYFN setup? The lego pieces wont fit together for some reason, and every sample is missing or designed not to use everything needed for a full scale network.

silliman (Thu, 29 Mar 2018 00:53:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JngpYbZ7SSZEyAb9C) @pmryan I've only run Fabric-CA sample standalone and haven't tried to bolt it on top of BYFN. Was just pointing you to the only example I'm aware of that doesn't use cryptogen

pmryan (Thu, 29 Mar 2018 01:05:02 GMT):
@silliman ``` Thank you. I will look into adapting Fabric-CA to my use. ```

pmryan (Thu, 29 Mar 2018 01:05:02 GMT):
@silliman Thank you. I will look into adapting Fabric-CA to my use.

pmryan (Thu, 29 Mar 2018 01:09:14 GMT):
If anyone else has any suggestions as to how to do it by adapting BYFN, please let me know

Brucepark (Thu, 29 Mar 2018 01:42:18 GMT):
Can I register a scheduler that can run periodically in the chaincode layer?

atiffarrukh (Thu, 29 Mar 2018 03:27:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k33pAwojLpYQL635m) can anyone guide me on this issue?

mrFranklin (Thu, 29 Mar 2018 05:17:38 GMT):
%/chaintool: Makefile @echo "Installing chaintool" @mkdir -p $(@D) curl -fL $(CHAINTOOL_URL) > $@ chmod +x $@ what the meaning of "Makefile" here?

atiffarrukh (Thu, 29 Mar 2018 05:55:57 GMT):
If try to run send "Invoke request" for the "balance-transfer" sample. i am getting ``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority at new createStatusError (/root/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15) at /root/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:583:15 ```

atiffarrukh (Thu, 29 Mar 2018 05:55:57 GMT):
If try to run send "Invoke request" for the "balance-transfer" sample on version 1.0. i am getting ``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority at new createStatusError (/root/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15) at /root/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:583:15 ```

magicianx25 (Thu, 29 Mar 2018 06:40:41 GMT):
@bandreghetti doesn't change much.

pankajcheema (Thu, 29 Mar 2018 06:47:49 GMT):
does anyone know how to access blocks of the chain of your custom channel?

pankajcheema (Thu, 29 Mar 2018 06:47:49 GMT):
does anyone know how to access blocks of the blockchain of your custom channel?

robin666 (Thu, 29 Mar 2018 07:28:35 GMT):
Has joined the channel.

manish27 (Thu, 29 Mar 2018 07:38:10 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Invalid network configuration due to m issing configuration data"} If anyone having any idea about this then please share. Your help would be appreciated :)

hrt031293 (Thu, 29 Mar 2018 08:46:21 GMT):
Has joined the channel.

hrt031293 (Thu, 29 Mar 2018 08:47:52 GMT):
Hello everyone, I am new here as well as in the hyperledger, I was just following the documentation of building my first network on hyperledger fabric, I successfully downloaded the Prerequisites, and Hyperledger Fabric Samples, but as I ran "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0" for downloading "Download Platform-specific Binaries", I got this error "Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/json: dial unix /var/run/docker.sock: connect: permission denied" Please anyone help me with this problem

kumar.pushpam (Thu, 29 Mar 2018 09:40:45 GMT):
Has joined the channel.

kumar.pushpam (Thu, 29 Mar 2018 09:40:52 GMT):
hello i am trying to register node chain code with basic network provided with fabric-sample but i get error CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./chaincode_example02 -bash: ./chaincode_example02: No such file or directory

kumar.pushpam (Thu, 29 Mar 2018 09:42:22 GMT):
hello i am trying to register node chain code with basic network provided with fabric-sample but i get error CORE_CHAINCODE_ID_NAME ="mycc" npm start -- --peer.address grpc://peer0.org1.example.com:7052 CORE_CHAINCODE_ID_NAME: command not found

kumar.pushpam (Thu, 29 Mar 2018 09:42:51 GMT):
core_chaincode_id_name command not found

kumar.pushpam (Thu, 29 Mar 2018 09:42:59 GMT):
can any one help me out

pravimalabhishek (Thu, 29 Mar 2018 09:55:23 GMT):
Has joined the channel.

pravimalabhishek (Thu, 29 Mar 2018 09:58:08 GMT):
Hello All, I'm doing the Tutorial "Building Your First Network" When I tried to bring up the network, it showed me the following error. ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use by container "eacefcf2beac3ec519e2b26fd6ec971c92eadf226764597d007a75cf34a18500". You have to remove (or rename) that container to be able to reuse that name.

pravimalabhishek (Thu, 29 Mar 2018 09:58:08 GMT):
Hello All, I'm doing the Tutorial "Building Your First Network" When I tried to bring up the network, it showed me the following error. ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use by container "eacefcf2beac3ec519e2b26fd6ec971c92eadf226764597d007a75cf34a18500". You have to remove (or rename) that container to be able to reuse that name.

pravimalabhishek (Thu, 29 Mar 2018 09:58:08 GMT):
Hello All, I'm doing the Tutorial "Building Your First Network" When I tried to bring up the network, it showed me the following error. ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use by container "eacefcf2beac3ec519e2b26fd6ec971c92eadf226764597d007a75cf34a18500". You have to remove (or rename) that container to be able to reuse that name. Can someone please help with this?

hrt031293 (Thu, 29 Mar 2018 09:59:28 GMT):
Hi Abhishek,

pravimalabhishek (Thu, 29 Mar 2018 09:59:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Jsx9M629FrbRGP3H9) @hrt031293 Hello!

hrt031293 (Thu, 29 Mar 2018 09:59:51 GMT):
Did you ran "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0" command?

hrt031293 (Thu, 29 Mar 2018 10:00:06 GMT):
in this tutorial ony?

hrt031293 (Thu, 29 Mar 2018 10:00:58 GMT):
while downloading "Download Platform-specific Binaries" this file?

pravimalabhishek (Thu, 29 Mar 2018 10:01:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=auJHgJjwjknAm5HTe) @hrt031293 Yes I did it

pravimalabhishek (Thu, 29 Mar 2018 10:02:31 GMT):
The error says that the container name is already in use. So I need to remove that container or rename it. How to do this?

hrt031293 (Thu, 29 Mar 2018 10:05:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xmaZLykWx5GHvGpNr) @pravimalabhishek I am getting this error "Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/json: dial unix /var/run/docker.sock: connect: permission denied"

hrt031293 (Thu, 29 Mar 2018 10:06:14 GMT):
Can you help me with this??

pravimalabhishek (Thu, 29 Mar 2018 10:08:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fkHGSraRaXJogMZwm) @hrt031293 Try to run the Docker related troubleshoot

davidhu (Thu, 29 Mar 2018 10:11:54 GMT):
Has joined the channel.

hrt031293 (Thu, 29 Mar 2018 10:14:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=85uQTzrj4dEohv5Lc) @pravimalabhishek Any link for its documentation?

pravimalabhishek (Thu, 29 Mar 2018 10:15:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SgwbPoKk4SiaYJ6Cr) @hrt031293 http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot

hrt031293 (Thu, 29 Mar 2018 10:18:07 GMT):
ok, thanks i am trying, from this

hrt031293 (Thu, 29 Mar 2018 10:18:07 GMT):
@pravimalabhishek ok, thanks i am trying, from this

Ed.Curran (Thu, 29 Mar 2018 10:49:15 GMT):
Hi all, I'm trying to create a unique id for each identity on the network so that when they submit a transaction / invoke a chaincode to write some date to the blockchain the data is written in and contains a unique id to link the data to the user that submitted it. getCreator() can be used to get the identity of the agent submitting the transaction, I figured this would be a good way to achieve this but I can't quite figure out how. getCreator() returns a 'SignatureHeader.Creator' which I found out from here: https://blockchain-fabric.blogspot.co.uk/2017/04/hyperledger-fabric-v10-block-structure.html contains a 'x.509 certificate, public key and membership' . I can compute a hash of the x.509 certificate to create a unique identifier we would probably work. but I'm concerned this might not be secure. For example what happens if I steal somebodies certificates could I then make requests on their behalf or are already protections against this? I guess hyperledger encrypts each transaction with the agents private key, so getting the certificate is at least as difficult as getting the private key so should be secure. Anyway my immediate problem is I'm not sure how to isolate the certificate component from the rest as it's just a byte array. Does anyone know if the certificate has a fixed size I can use? Thanks in advance!

Guid0 (Thu, 29 Mar 2018 11:00:17 GMT):
Has joined the channel.

jrosmith (Thu, 29 Mar 2018 11:18:05 GMT):
@Ed.Curran you can get the common name from the certificate and do something with that to get a unique identifier. alternatively 1.1 has attribute based access control and you could create a uid attribute for a user and populate it that way. to answer your other question, if you control someones signcerts, you are them, no real way to prevent that kind of identity theft within the network

hrt031293 (Thu, 29 Mar 2018 11:45:22 GMT):
Is anyone online?

hrt031293 (Thu, 29 Mar 2018 11:45:22 GMT):
Is anyone online?

hrt031293 (Thu, 29 Mar 2018 11:55:54 GMT):
I am going through the tutorial of Building Your First Network on hyperledger, I had completed till "Generate Network Artifacts", but on "Bring Up the Network", when I ran the command, "./byfn.sh -m up -l node" for node.js, I am getting the error ```docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/containers/create: dial unix /var/run/docker.sock: connect: permission denied. LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION= =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. ``` Please anyone help me, regerding this error

rstefanov (Thu, 29 Mar 2018 12:07:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XbM4aWo9BBtkbETjs) @hrt031293 Try with sudo usermod -a -G docker $USER

rstefanov (Thu, 29 Mar 2018 12:07:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XbM4aWo9BBtkbETjs) @hrt031293 Try with ```sudo usermod -a -G docker $USER```

manish27 (Thu, 29 Mar 2018 12:12:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tGNcsnH4KJRTTTGb9) @rstefanov

manish27 (Thu, 29 Mar 2018 12:16:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Yd86uQZeE3r7SwXi) Restart your docker and VM. Also make sure your docker image and fabric binaries having the same version :)

cbf (Thu, 29 Mar 2018 12:50:28 GMT):
@duwenhui please ask questions on this channel https://chat.hyperledger.org/channel/fabric-release?msg=WiFX2GmLqhiR9p74Z

cbf (Thu, 29 Mar 2018 12:50:51 GMT):
@jyellick is probably the most qualified to help you with this question

manish27 (Thu, 29 Mar 2018 12:52:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Yd86uQZeE3r7SwXi) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Yd86uQZeE3r7SwXi) Restart your docker and VM. Also make sure your docker image and fabric binaries having the same version :)

manish27 (Thu, 29 Mar 2018 12:52:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Yd86uQZeE3r7SwXi) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Yd86uQZeE3r7SwXi)

manish27 (Thu, 29 Mar 2018 12:52:03 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} Please help to resolve this issue.

jrosmith (Thu, 29 Mar 2018 13:14:22 GMT):
based on the new capability requirements, will there be a tutorial released about best practices to update existing 1.0 channels to be 1.1 compatible? capability reqs: http://hyperledger-fabric.readthedocs.io/en/latest/capability_requirements.html

sushil_saha (Thu, 29 Mar 2018 13:15:21 GMT):
Has joined the channel.

sushil_saha (Thu, 29 Mar 2018 13:15:24 GMT):
Hyperledger Testting - Has anyone used the testing frameworks Selenium/JUnit for testing projects built using Hyperledger fabric?

MonnyClara (Thu, 29 Mar 2018 13:50:30 GMT):
Has joined the channel.

manish27 (Thu, 29 Mar 2018 13:51:03 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} Please help to resolve this issue.

manish27 (Thu, 29 Mar 2018 13:51:03 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} Please help to resolve this issue.

manish27 (Thu, 29 Mar 2018 13:51:03 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} Please help to resolve this issue.

manish27 (Thu, 29 Mar 2018 13:51:03 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} ORG1 token is null POST request Enroll on Or {"success":false,"message h error [Error: connect E ORG2 token is null Please help to resolve this issue.

jyellick (Thu, 29 Mar 2018 13:51:20 GMT):
> Because my production environment is generated based on the 1.0.0 version. In order to expand the organization, more than a dozen organizations were previously produced. However, only three organizations were actually used. Now that 1.1.0 can dynamically add organizations, the redundant organizations are useless. I am now trying to remove these redundant organizations. I now upgrade all nodes to version 1.1.0, but do not enable Capabilities, and then delete redundant organizations like adding organizations. Then turn on the Capabilities feature. Complete the 1.1.0 upgrade. Is this operation correct? @duwenhul Yes, this seems like a solid approach to me.

jyellick (Thu, 29 Mar 2018 13:51:20 GMT):
> Because my production environment is generated based on the 1.0.0 version. In order to expand the organization, more than a dozen organizations were previously produced. However, only three organizations were actually used. Now that 1.1.0 can dynamically add organizations, the redundant organizations are useless. I am now trying to remove these redundant organizations. I now upgrade all nodes to version 1.1.0, but do not enable Capabilities, and then delete redundant organizations like adding organizations. Then turn on the Capabilities feature. Complete the 1.1.0 upgrade. Is this operation correct? @duwenhui Yes, this seems like a solid approach to me.

CorentinPacaud (Thu, 29 Mar 2018 14:01:17 GMT):
Hello, I am following this link : https://hyperledger.github.io/composer/latest/reference/connectionprofile.html but the script's still telling me : `Error: The orderers array has not been specified in the connection profile` but I have set the orderer array like in the doc any idea ?

richzhao (Thu, 29 Mar 2018 17:07:54 GMT):
Has joined the channel.

ChrisMcQueenDevelopment (Thu, 29 Mar 2018 17:26:23 GMT):
Has joined the channel.

ChrisMcQueenDevelopment (Thu, 29 Mar 2018 17:26:30 GMT):
If anyone can answer my stackoverfllow question, that would be dream: https://stackoverflow.com/questions/49560791/hyperledger-fabric-endorsement-based-on-specific-parties-involved-in-the-trans

Chandoo (Thu, 29 Mar 2018 19:09:08 GMT):
Has joined the channel.

Chandoo (Thu, 29 Mar 2018 19:09:23 GMT):
hi

Chandoo (Thu, 29 Mar 2018 19:09:57 GMT):
i just installed fabric, i dont see fabric-baseos in my docker image list, any idea

vieiramanoel (Thu, 29 Mar 2018 20:27:15 GMT):
hey guys, we're getting some problems with chaincode in a distributed network (each host has a peer), for example: when `chaincode_example02` or `sacc` is installed, instantiated or invoked everything goes well. So theoretically after `args set a = 20` at `sacc` `a` should be 20, but either query or get commands returns the a's value at instantiation

vieiramanoel (Thu, 29 Mar 2018 20:27:15 GMT):
hey guys, we're getting some problems with chaincode in a distributed network (each host has a peer), for example: when `chaincode_example02` or `sacc` is installed, instantiated or invoked everything goes well. So theoretically after `args set a = 20` at `sacc` `a` should be 20, but either query or get commands returns the a's value at instantiation. We're at v1.1

vieiramanoel (Thu, 29 Mar 2018 20:27:26 GMT):
anyone has faced this already?

XingqiangMao (Thu, 29 Mar 2018 20:59:19 GMT):
Hi everyone.

XingqiangMao (Thu, 29 Mar 2018 20:59:23 GMT):
Quick question

XingqiangMao (Thu, 29 Mar 2018 20:59:33 GMT):
I am trying this command - peer chaincode package -n mycc -p fabric-samples/chaincode -v 0 -s -S -i "AND('OrgA.admin')" ccpack.out

XingqiangMao (Thu, 29 Mar 2018 21:00:04 GMT):
-p fabric-samples/chaincode (Chaincode path). I am keep getting Error getting chaincode code chaincode: path to chaincode does not exist:

XingqiangMao (Thu, 29 Mar 2018 21:00:13 GMT):
Thank you!

XingqiangMao (Thu, 29 Mar 2018 21:00:33 GMT):
Is the path I need to define in the config file first?

tkg (Thu, 29 Mar 2018 21:55:29 GMT):
Has joined the channel.

ronald.petty (Thu, 29 Mar 2018 23:09:11 GMT):
Hello all. I am trying to start the fabric-ca-server but seeing the following. ``` ubuntu@ip-10-0-5-48:~$ $(go env GOPATH)/bin/fabric-ca-server start -b admin:adminpw 2018/03/29 23:05:45 [INFO] Configuration file location: /home/ubuntu/fabric-ca-server-config.yaml 2018/03/29 23:05:45 [INFO] Starting server in home directory: /home/ubuntu panic: Version is not set for fabric-ca library goroutine 1 [running]: ``` I did notice in the generated yaml the version was not set, so I hardcoded to v1.1.0 and still fails. ``` ... # Version of config file version: v1.1.0 ... ``` Any tips? Thank you.

ronald.petty (Thu, 29 Mar 2018 23:09:11 GMT):
Hello all. I am trying to start the fabric-ca-server but seeing the following. ``` ubuntu@ip-10-0-5-48:~$ $(go env GOPATH)/bin/fabric-ca-server start -b admin:adminpw 2018/03/29 23:05:45 [INFO] Configuration file location: /home/ubuntu/fabric-ca-server-config.yaml 2018/03/29 23:05:45 [INFO] Starting server in home directory: /home/ubuntu panic: Version is not set for fabric-ca library goroutine 1 [running]: ``` I did notice in the generated yaml the version was not set, so I hardcoded to v1.1.0 and still fails. ``` ... # Version of config file version: v1.1.0 ... ``` Looks like its hardcode? ``` // Version specifies fabric-ca-client/fabric-ca-server version // It is defined by the Makefile and passed in with ldflags ``` Any tips? Thank you.

ronald.petty (Thu, 29 Mar 2018 23:09:11 GMT):
Hello all. I am trying to start the fabric-ca-server but seeing the following. ``` ubuntu@ip-10-0-5-48:~$ $(go env GOPATH)/bin/fabric-ca-server start -b admin:adminpw 2018/03/29 23:05:45 [INFO] Configuration file location: /home/ubuntu/fabric-ca-server-config.yaml 2018/03/29 23:05:45 [INFO] Starting server in home directory: /home/ubuntu panic: Version is not set for fabric-ca library goroutine 1 [running]: ``` I did notice in the generated yaml the version was not set, so I hardcoded to v1.1.0 and still fails. ``` ... # Version of config file version: v1.1.0 ... ``` Looks like its hardcode? ``` // Version specifies fabric-ca-client/fabric-ca-server version // It is defined by the Makefile and passed in with ldflags ``` from https://github.com/hyperledger/fabric-ca/blob/d536f5a4b9dbfe057af16dd5ae2ab87841b80f9c/lib/metadata/version.go Any tips? Thank you.

ronald.petty (Thu, 29 Mar 2018 23:09:11 GMT):
Hello all. I am trying to start the fabric-ca-server but seeing the following. ``` ubuntu@ip-10-0-5-48:~$ $(go env GOPATH)/bin/fabric-ca-server start -b admin:adminpw 2018/03/29 23:05:45 [INFO] Configuration file location: /home/ubuntu/fabric-ca-server-config.yaml 2018/03/29 23:05:45 [INFO] Starting server in home directory: /home/ubuntu panic: Version is not set for fabric-ca library goroutine 1 [running]: ``` I did notice in the generated yaml the version was not set, so I hardcoded to v1.1.0 and still fails. ``` ... # Version of config file version: v1.1.0 ... ``` Looks like its hardcode? ``` // Version specifies fabric-ca-client/fabric-ca-server version // It is defined by the Makefile and passed in with ldflags ``` from https://github.com/hyperledger/fabric-ca/blob/d536f5a4b9dbfe057af16dd5ae2ab87841b80f9c/lib/metadata/version.go Installed as follows `go get -u github.com/hyperledger/fabric-ca/cmd/...` Any tips? Thank you.

danastos (Thu, 29 Mar 2018 23:15:45 GMT):
Has joined the channel.

LuanHongjun (Fri, 30 Mar 2018 01:24:41 GMT):
Hi. Anyone could tell me where I can find the logs of orderer, peer and cli?

LuanHongjun (Fri, 30 Mar 2018 01:24:54 GMT):
I couldn't find the log's config

ronald.petty (Fri, 30 Mar 2018 02:37:20 GMT):
@LuanHongjun are you using docker to deploy them?

Ryan2 (Fri, 30 Mar 2018 04:44:31 GMT):
can I ask which configtxgen version support flag -printOrg

NAWAZUDDIN552 (Fri, 30 Mar 2018 06:05:11 GMT):
Hello Friends, I am trying to start the network but I got the below error:ERROR: no such image: hyperledger/fabric-peer:: invalid reference format

NAWAZUDDIN552 (Fri, 30 Mar 2018 06:47:28 GMT):
Hello Friends, I am trying to start the network but I got the below error:ERROR: no such image: hyperledger/fabric-peer:: invalid reference format

pmryan (Fri, 30 Mar 2018 07:36:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PhPTsjrZmgbeBPqd7) @mastersingh24 @silliman I have tried to use fabric-ca for my use case of more than 2 orgs, node chaincode (based from fabcar, but re-done) and of course, using CAs and users that were registered just like in Fabcar example. I am running into an issue where I need to use Couchdb for my use. Is there any documentation or anyone that has coded this to work as part of the makeDocker.sh?

pmryan (Fri, 30 Mar 2018 08:05:34 GMT):
*need to use couchDB for the ledger db for each peer

MonnyClara (Fri, 30 Mar 2018 08:19:04 GMT):
@NAWAZUDDIN552 Have you pulled the images ? To check do a `docker ps -a`

NAWAZUDDIN552 (Fri, 30 Mar 2018 08:53:38 GMT):
yes, Thanks for replying I got the answer @MonnyClara

vaucouleur (Fri, 30 Mar 2018 09:05:14 GMT):
Has joined the channel.

magicianx25 (Fri, 30 Mar 2018 09:30:29 GMT):

Untitled1.png

magicianx25 (Fri, 30 Mar 2018 09:30:40 GMT):
Do you know why I get this error?

MonnyClara (Fri, 30 Mar 2018 09:35:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RyJjzMAAnMENr9c5y) @magicianx25 The error is likely caused by docker and the fact that your user can run docker You can verify this by typing `groups $USER` and docker should not appear The solution : either you run the script in root or the with `sudo` or you add your user to the docker group ` sudo usermod -a -G docker $USER`

MonnyClara (Fri, 30 Mar 2018 09:35:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RyJjzMAAnMENr9c5y) @magicianx25 The error is likely caused by docker and the fact that your user can't run docker You can verify this by typing `groups $USER` and docker should not appear The solution : either you run the script in root or the with `sudo` or you add your user to the docker group ` sudo usermod -a -G docker $USER`

magicianx25 (Fri, 30 Mar 2018 09:36:11 GMT):
I am using windows 10 and bash so can't use sudo

MonnyClara (Fri, 30 Mar 2018 09:38:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y4qL27eR2dxJvowZN) @magicianx25 Youps... so I don't know sorry

magicianx25 (Fri, 30 Mar 2018 09:38:42 GMT):
i know the problem is with docker but what exactly is the problem with it?

MonnyClara (Fri, 30 Mar 2018 09:39:37 GMT):
I think it's a permission issue, but I don't know how to solve it on windows

vishaldumbre (Fri, 30 Mar 2018 09:43:50 GMT):
Has joined the channel.

vishaldumbre (Fri, 30 Mar 2018 09:44:24 GMT):
All, Can you please help me to solve this issue - getting error while creating channel in fabric -sample-1.1.0 -preview. error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:255:19)\n at ClientDuplexStream._readsDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:221:8)\n at readCallback (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:283:12)" [2018-03-30 17:18:05.881] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/fabric-client/lib/Orderer.js:136:21) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at ClientDuplexStream._emitStatusIfDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:258:12) at ClientDuplexStream._readsDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:221:8) at readCallback (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:283:12) (node:15002) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/dishank/fabric-samples-1.1.0-preview/secu_test/app/create-channel.js:65:9) at

johnpentester (Fri, 30 Mar 2018 09:53:32 GMT):
Has joined the channel.

johnpentester (Fri, 30 Mar 2018 09:59:10 GMT):
hello i've created a network, tested on local machine, its working. now the thing that i'm confused about is, how should i create a real network? i have a remote linux server, started fabric on it. how create real peer? should every peer, download Fabric images? how many remote server do i need for a simple network, with 4 participant, 2 asset, 3 transaction. a simple scenario. if there is a tutorial, that would be great if you lead me there. thanks in advance

johnpentester (Fri, 30 Mar 2018 09:59:10 GMT):
hello i've created a network, tested on local machine, its working. now the thing that i'm confused about is, how should i create a real network? i have a remote linux server, started fabric on it. how create real peer? should every peer, download Fabric images? how many remote server do i need for a simple network, with 4 participant, 2 asset, 3 transactions. a simple scenario. if there is a tutorial, that would be great if you lead me there. thanks in advance

silliman (Fri, 30 Mar 2018 10:12:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AvTt7EvTnQtAm9bSD) @pmryan the "end-to-end" test in *fabric/examples/e2e_cli* makes use of CouchDB so use that as a guide. See also http://hyperledger-fabric.readthedocs.io/en/release-1.1/couchdb_as_state_database.html?highlight=couchdb

pavithrans (Fri, 30 Mar 2018 11:12:49 GMT):
How to specify Endorsement in hyperledger fabric ?

MonnyClara (Fri, 30 Mar 2018 11:24:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8WbfCdfqbRKwWnoPj) @pavithrans http://hyperledger-fabric.readthedocs.io/en/release-1.0/endorsement-policies.html this ?

shikherwalia07 (Fri, 30 Mar 2018 11:24:07 GMT):
Can anyone answer this

shikherwalia07 (Fri, 30 Mar 2018 11:24:10 GMT):
How can I prove immutability in Hyperledger Fabric. To be more precise - How can I relate initial state of the database, transaction hashes and current state of database to ensure nothing has been tampered in the system. Or in general, can we achieve some ramdom state on the database by adding n transactions from the blocks

shikherwalia07 (Fri, 30 Mar 2018 11:40:13 GMT):
anyone ??

CorentinPacaud (Fri, 30 Mar 2018 11:58:59 GMT):
@shikherwalia07 You can get the history

CorentinPacaud (Fri, 30 Mar 2018 11:59:36 GMT):
There are all the activity in it. Add/Update/delete if there are done with transaction.

bourbonkidQ (Fri, 30 Mar 2018 13:08:08 GMT):
hello ! When i try to "peer node start" with my own certificate but i have this error `2018-03-30 13:04:14.248 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/crypto/peer/msp: err admin 0 is invalid, validation error Could not validate identity's OUs, err None of the identity's organizational units [[0xc4203449f0]] are in MSP exMSP ` I don't understand

muhammad (Fri, 30 Mar 2018 13:29:22 GMT):
Has joined the channel.

NAWAZUDDIN552 (Fri, 30 Mar 2018 13:50:39 GMT):
Hey friends , When I try to install chaincode on to the peer I got the below error: `Error: Error getting chaincode code chaincode: path to chaincode does not exist: /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02` I change the path in docker-compose-cli.yaml still I got the same error

MonnyClara (Fri, 30 Mar 2018 13:56:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qxYbwQKQKyTsTtvuW) @NAWAZUDDIN552 Your `$GOPATH` should be set to `/opt/gopath`, then you should run the command `peer chaincode install -n ` -v -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02`

MonnyClara (Fri, 30 Mar 2018 13:56:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qxYbwQKQKyTsTtvuW) @NAWAZUDDIN552 Your `$GOPATH` should be set to `/opt/gopath`, then you should run the command `peer chaincode install -n -v -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02`

MonnyClara (Fri, 30 Mar 2018 13:56:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qxYbwQKQKyTsTtvuW) @NAWAZUDDIN552 Your `$GOPATH` should be set to `/opt/gopath`, then you should run the command `peer chaincode install -n -v -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02` It worked for me like this, I guess its just about convention. The chaincode can only store on this location ... If someone got an explanation ?

muhammad (Fri, 30 Mar 2018 15:04:02 GMT):
hello, I try to create first-network manually, and when I try to create channel inside cli container. `peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ` I get this error: `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ` and this error from orderer: `ERRO 008 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity ` *How I can fix this error?*

muhammad (Fri, 30 Mar 2018 15:05:13 GMT):
hello, I try to create first-network manually, and when I try to create channel inside cli container. ``` peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` I get this error: ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` and this error from orderer: ``` ERRO 008 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity ``` *How I can fix this error?*

muhammad (Fri, 30 Mar 2018 15:05:13 GMT):
hello friends, I try to create first-network manually, and when I try to create channel inside cli container. ``` peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` I get this error: ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` and this error from orderer: ``` ERRO 008 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity ``` *How I can fix this error?*

bdjidi (Fri, 30 Mar 2018 15:10:28 GMT):
Has joined the channel.

ronald.petty (Fri, 30 Mar 2018 16:05:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bgxYM86oPQZa6BHER) @Ryan2 Not sure if you are referring to me, but if so its 1.1.0. I had just downloaded everything last night.

Pan0ptic (Fri, 30 Mar 2018 16:25:57 GMT):
Has joined the channel.

ronald.petty (Fri, 30 Mar 2018 16:34:08 GMT):
@muhammad can you place your manual steps in pastebin (including steps used to install and host os info)? I am no expert but happy to run through and try to debug in a little bit.

kiranarshakota (Fri, 30 Mar 2018 16:39:29 GMT):
Has joined the channel.

kiranarshakota (Fri, 30 Mar 2018 16:39:47 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.1/Fabric-FAQ.html?highlight=transaction visibility, where do we set the visibility settings

muhammad (Fri, 30 Mar 2018 16:58:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x8FJNZcF5FZdXBkfg) @ronald.petty I try with this [build_network](https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html) manually instead of using byfn.sh script, it's work fine if I use byfn.sh but when I try it manually, I get error at [Create Channel](https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html#create-join-channel). host os ubuntu 16.04.4 hyperledger-fabric x86_64-1.1.0

ronald.petty (Fri, 30 Mar 2018 17:12:04 GMT):
@muhammad I can't look at the moment but will tonight and get back sorry for delay

muhammad (Fri, 30 Mar 2018 17:25:21 GMT):
@ronald.petty thank you for your time

negupta (Fri, 30 Mar 2018 18:48:11 GMT):
Has joined the channel.

TechShadow (Fri, 30 Mar 2018 19:04:10 GMT):
Has joined the channel.

TechShadow (Fri, 30 Mar 2018 19:04:32 GMT):
I am stuck at the point of installing platform specific binaries..... there is an error : Invoke-WebRequest : A parameter cannot be found that matches parameter name 'sSL'. At line:1 char:6 + curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 + ~~~~ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

ronald.petty (Fri, 30 Mar 2018 19:45:09 GMT):
@TechShadow I don't use windows but it seems curl on windows doesn't like one of the curl params.

ronald.petty (Fri, 30 Mar 2018 19:45:19 GMT):
try curl -L .....|bash -s 1.1.0

ramiroquai (Fri, 30 Mar 2018 20:31:29 GMT):
Has joined the channel.

Ahtsham (Fri, 30 Mar 2018 21:19:59 GMT):
Has joined the channel.

Ahtsham (Fri, 30 Mar 2018 21:20:38 GMT):
Hi all! I have a use case where I have to store data on-Chain and off-chain simultaneously. Please can any one guide that how can I do it using hyperledger fabric? Is there any documentation or other tutorial that can help me to build such a use case.

jyellick (Fri, 30 Mar 2018 21:38:46 GMT):
@Ahtsham I'm unaware of any specific documentation, but a fairly straightforward strategy is to store the the hashes of the data on the blockchain, and the actual data itself somewhere convenient.

Ahtsham (Fri, 30 Mar 2018 21:40:19 GMT):
@jyellick Thanks for your reply.

kbokarius (Fri, 30 Mar 2018 23:39:13 GMT):
Has joined the channel.

kbokarius (Fri, 30 Mar 2018 23:39:58 GMT):
Hello we're getting the following errors on our orderer: 2018-03-30 18:54:15.194 UTC [orderer/consensus/kafka/sarama] tryRefreshMetadata -> DEBU 29b client/metadata fetching metadata for [testchainid] from broker kafka3.test.com:9092 2018-03-30 18:54:15.200 UTC [orderer/consensus/kafka/sarama] tryRefreshMetadata -> DEBU 29c client/metadata found some partitions to be leaderless We have 3 zookeepers and 4 kafka nodes. The zookeepers successfully elect a leader and the kafka node logs don't display any errors, so the cluster appears to be working. We connected to the kafka nodes and ran kafka-topics.sh to describe the testchainid topic: Topic:testchainid PartitionCount:1 ReplicationFactor:3 Configs: Topic: testchainid Partition: 0 Leader: 3 Replicas: 3,0,1 Isr: 3,0,1 This output looks correct and indicates that the partition has 3 replicas and a leader. Why, then, does the orderer show an error indicating that the testchainid partition is leaderless when connecting to kafka3, which is actually the leader of the partition?

kbokarius (Fri, 30 Mar 2018 23:40:04 GMT):
We did see a few of these errors in our zookeeper leader, but it's an INFO message and appears to be normal: 2018-03-30 18:28:42,164 [myid:3] - INFO [ProcessThread(sid:3 cport:-1)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x26278217f350001 type:create cxid:0x40 zxid:0x10000003d txntype:-1 reqpath:n/a Error Path:/brokers/topics/testchainid/partitions Error:KeeperErrorCode = NoNode for /brokers/topics/testchainid/partitions


chakra (Fri, 30 Mar 2018 23:40:31 GMT):
Has joined the channel.

kbokarius (Fri, 30 Mar 2018 23:47:03 GMT):
We're running 3 zookeeper nodes and 4 kafka nodes, and we used the kafka/zookeeper settings in the fabric example. We've verified that the kafka version running is 0.10.2.0 and that the kafka client the orderer uses is compatible with that version. This network is running on separate instances on AWS and all nodes can communicate with each other. We do see that connection between orderer and kafka is successful:
/sarama] func1 -> DEBU 0b3 Connected to broker at kafka3.test.com:9092 (unregistered) 2018-03-30 20:19:02.515 UTC [orderer/consensus/kafka/sarama] NewClient -> DEBU 0b4 Successfully initialized new client 2018-03-30 20:19:02.515 UTC [orderer/consensus/kafka] try -> DEBU 0b5 [channel: testchainid] Error is nil, breaking the retry loop 2018-03-30 20:19:02.515 UTC [orderer/consensus/kafka] startThread -> INFO 0b6 [channel: testchainid] Producer set up successfully

chakra (Fri, 30 Mar 2018 23:49:01 GMT):
Hi newbee here. Is it possible to create/register a user without needing to enroll as a admin first. I already can register a user if I have the credential for the admin user that was created when launching fabric-ca-server. What I want to achieve is that an arbitrary user can come and register themselves to our DAPP. One option is to cake in the admin credential into the client application so that they can generate the required certificates for themselves locally. However, this is a dumb idea. Alternatively, the process of registering a user can be sent to the backend and it registers a user and sent the client their certificates. Then again, the client doesnt generate their own certificates, private and public key and is depended on the backend server. I would like your help in identify a way where a user can register themselves from the client while generating their certificates locally. Thanks

aatkddny (Sat, 31 Mar 2018 00:34:30 GMT):
Save the admin enrollment - you can serialize it - and pull it from storage as required. Use that with the user-id to get the user secret and then enroll the user. You can make it self serve that way.

aatkddny (Sat, 31 Mar 2018 00:35:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Gta86p5GoBnNvjQe9) You already got one answer, but is that what you want, or do you want an off-chain copy of the on-chain data?

SharedMocha (Sat, 31 Mar 2018 00:45:04 GMT):
Hello All - Can anyone pls help me with below 3 questions related to an use case we are implementing I do have a use case where there are 3 nodes (or) 3 companies in a fabric channel that creates, updates, add records. There are 3 problems where we are struck: 1.)How to bulk upload 1000+ records into the channel from a file? 2.)In the link below I have drawn a sample transaction flow as 3 steps. Now the requirement is after Node 1(or) Company 1 add's records and if Node 2 (or) Company 2 (or) Participant 2 tries to update it - I need to perform checks like "Price change is not greater than $15 and send the request for approval to node1 (or) company1 participants" How to achieve this? https://imgur.com/gallery/cxTKO 3.)Another problem is how to rollback state/values to previous values? EX- We updates price to 10 then 20 and then 30. But after a day (or) two we sometimes roll back the price to 10

chakra (Sat, 31 Mar 2018 00:55:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oL2cKv4T749vhzg8z) @aatkddny Thanks mate. Could you please elaborate a bit more. If i store the serialized object locally, then someone could deserialize it and view the private key of the admin. If i store it on the backend, i go back to my original issue.

aatkddny (Sat, 31 Mar 2018 01:02:37 GMT):
You can encrypt it. Give me a minute and I'll dig out a code sample for you.

chakra (Sat, 31 Mar 2018 01:07:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PxsdP44XvYejiD7g4) @aatkddny cool. thank. however, in this case we also need to decrypt in the fabric-server-ca side, which would need changes to the source code. what do u think?

aatkddny (Sat, 31 Mar 2018 01:08:54 GMT):
Why? If you decrypt the admin key/secret in your code isn't that sufficient? It's going out over https.

chakra (Sat, 31 Mar 2018 01:11:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PxsdP44XvYejiD7g4) @aatkddny The client/user would be an untrusted entity as in our use case an arbitrary individual can register with the blockchain using their email id

chakra (Sat, 31 Mar 2018 01:16:46 GMT):
therefore, they cannot have the admin enrollment info locally in their client app (mobile). However, in order to use the blockchain application, they need to have a generated by fabric-ca-client locally on their mobile app. In order to do that we need to have the admin user enrolled that in turn can create this user. This functionality can be moved outside the mobile app into the backend services, but then the user enrollment and secret are generated by the backend service on behalf of the user and then sent to the users mobile app. This is also not ideal as there would be a third party that would handle the users credentials first

aatkddny (Sat, 31 Mar 2018 01:17:47 GMT):
And why would you not expose an endpoint for you to invoke the fabric ca_client on their behalf? You then limit your exposure.

aatkddny (Sat, 31 Mar 2018 01:18:22 GMT):
They authenticate to you. You enroll them and pass back the enrollment and they look after it locally from there on.

chakra (Sat, 31 Mar 2018 01:21:53 GMT):
Thats the only option that i see now. However, it is still not ideal as we introduce a third party. what u were saying that we encrypt the admin enrollment and give it to the users mobile app. then wen the users local mobile client calls fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1',role: 'user'}, admin_user); the "admin_user" part would be encrypted by the backend service. However, then when fabric-ca-server recieves this requiest, it needs to decyypt it before running the next module. But I suspect it will be lot of work to hack this in the source code, if someone else has not already done it

aatkddny (Sat, 31 Mar 2018 01:27:41 GMT):
I'm not getting who the third party is. You get back the enrollment from the fabric server. You enroll a user based on his user id (so email). So your user surely has to be known to you - or are you allowing anonymous enrollment, which opens up a completely different can of worms. He/she sends the email to your enroll endpoint to enroll. That's it, unless you are having affiliations. The endpoint then stands up the ca client and registers the user. It can then return the enrollment details to the original caller and you are good to go. If you don't do it that way, then you will need a copy of the ca server certs on every user device. That in of itself will be a nightmare, let alone thousands of copies of the admin id floating around.

aatkddny (Sat, 31 Mar 2018 01:27:41 GMT):
I'm not getting who the third party is. You get back the enrollment from the ca server. You enroll a user based on his user id (so email). So your user surely has to be known to you - or are you allowing anonymous enrollment, which opens up a completely different can of worms. He/she sends the email to your enroll endpoint to enroll. That's it, unless you are having affiliations. The endpoint then stands up the ca client and registers the user. It can then return the enrollment details to the original caller and you are good to go. If you don't do it that way, then you will need a copy of the ca server certs on every user device. That in of itself will be a nightmare, let alone thousands of copies of the admin id floating around.

chakra (Sat, 31 Mar 2018 01:35:56 GMT):
Yea, I agree, for now at least in this manner where we generate and send the identities to the users on their email. The initial idea was that users generate their public-private keys locally and their account becomes activated once they validate their email notification. Since, all operations for the user would be based on their private keys we wanted the users to have complete control over their keys and not even us who is offering them the service have access to those.

chakra (Sat, 31 Mar 2018 01:35:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uxPqQBaseiXXb8eKS) @aatkddny Yea, I agree, for now at least in this manner where we generate and send the identities to the users on their email. The initial idea was that users generate their public-private keys locally and their account becomes activated once they validate their email notification. Since, all operations for the user would be based on their private keys we wanted the users to have complete control over their keys and not even us who is offering them the service have access to those.

dara652 (Sat, 31 Mar 2018 01:51:15 GMT):
Has joined the channel.

kbokarius (Sat, 31 Mar 2018 02:24:50 GMT):
Disregard our issue above. We figured it out. Our docker containers didn't have their hostname set and for some strange reason the Orderer was trying to connect to the docker container ID of a kafka container running on another host.

kbokarius (Sat, 31 Mar 2018 02:24:50 GMT):
Disregard our issue above. We figured it out. Our docker containers didn't have their hostname set and for some strange reason the Orderer was trying to connect to the docker container ID (instead of the hostname) of a kafka container running on another host.

magicianx25 (Sat, 31 Mar 2018 06:45:26 GMT):

Untitled1.png

magicianx25 (Sat, 31 Mar 2018 06:45:38 GMT):
How can I resolve this error?

bgalande250 (Sat, 31 Mar 2018 07:24:19 GMT):
Has joined the channel.

SriramJothiswaran (Sat, 31 Mar 2018 10:30:32 GMT):
Has joined the channel.

SriramJothiswaran (Sat, 31 Mar 2018 10:31:10 GMT):
getting following error " Cannot use v0.16.4 version of composer with this level of fabric " when try to run createPeerAdminCard.sh getting following error " Cannot use v0.16.4 version of composer with this level of fabric " when try to run createPeerAdminCard.sh getting following error " Cannot use v0.16.4 version of composer with this level of fabric " when try to run createPeerAdminCard.sh getting following error " Cannot use v0.16.4 version of composer with this level of fabric " when try to run createPeerAdminCard.sh

SriramJothiswaran (Sat, 31 Mar 2018 10:31:21 GMT):
getting following error " Cannot use v0.16.4 version of composer with this level of fabric " when try to run createPeerAdminCard.sh

Ammu (Sat, 31 Mar 2018 13:03:34 GMT):
what is Membership Service Providers?

Ammu (Sat, 31 Mar 2018 13:03:44 GMT):
what is the use case too?

MuhammadSalah (Sat, 31 Mar 2018 14:30:13 GMT):
@SriramJothiswaran Make sure you have composer 0.19.0 that's compatible with fabric 1.1.0

MuhammadSalah (Sat, 31 Mar 2018 14:32:39 GMT):
@Ammu Membership Service Provider, is the component that handles the membership of the network. I don't know what you mean by the use case here, but it's an essential component; and it's plug-able, one can use Fabric-CA as a provider, or any external one.

SriramJothiswaran (Sat, 31 Mar 2018 15:26:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dtP927JZ72LvZ4XyX) @MuhammadSalah you mean composer-cli ? i tried upgrading it to 0.19.0 still the issue persists

MiguelPires (Sat, 31 Mar 2018 16:01:08 GMT):
Hi, I would greatly appreciate it if someone could help with an issue that I'm stuck with. I've set up a simple network like the one in this (https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux) guide and I've written a very simple chaincode that works fine when receiving function calls via the CLI. However, I'm trying to adapt the query.js from the fabcar sample to work in my chaincode. My only modification was to the request itself (changed "queryAllCars" to "query" and so on). The enrollAdmin.js and the registerUser.js work fine but, when runnning query.js, I get the following error: Store path:/home/mute/Documents/fabric-samples/basic-network/hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'EOF' } Does anyone know what this might be? Thank you.

MiguelPires (Sat, 31 Mar 2018 16:01:08 GMT):
Hi, I would greatly appreciate it if someone could help with an issue that I'm stuck with. I've set up a simple network like the one in this (https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux) guide and I've written a very simple chaincode that works fine when receiving function calls via the CLI. However, I'm trying to adapt the query.js from the fabcar sample to work in my chaincode. My only modification was to the request itself (changed "queryAllCars" to "query" and so on). The enrollAdmin.js and the registerUser.js work fine but, when runnning query.js, I get the following error: Store path:/home/mute/Documents/fabric-samples/basic-network/hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'EOF' } Does anyone know what the problem might be? Thank you.

MiguelPires (Sat, 31 Mar 2018 16:01:08 GMT):
Hi, I would greatly appreciate it if someone could help with an issue that I'm stuck with. I've set up a simple network like the one in this (https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux) guide and I've written a very simple chaincode that works fine when receiving function calls via the CLI. However, I'm trying to adapt the query.js from the fabcar sample to work with my chaincode. My only modification was to the request itself (changed "queryAllCars" to "query" and so on). The enrollAdmin.js and the registerUser.js work fine but, when runnning query.js, I get the following error: Store path:/home/mute/Documents/fabric-samples/basic-network/hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:64:15) at /home/mute/Documents/fabric-samples/basic-network/node_modules/grpc/src/client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'EOF' } Does anyone know what the problem might be? Thank you.

wbhagan (Sat, 31 Mar 2018 16:49:24 GMT):
So, to add a peer to a channel we run "peer channel join".....what do we need to run to remove a peer from a channel? I can't seem to find that documented

MuhammadSalah (Sat, 31 Mar 2018 22:42:48 GMT):
@SriramJothiswaran I think it needs more details so we can help.

EfratLevy (Sun, 01 Apr 2018 06:57:15 GMT):
Has joined the channel.

EfratLevy (Sun, 01 Apr 2018 06:57:19 GMT):
Hi, does Hyperledger Fabric system protect against 51%-66% attack?

ronald.petty (Sun, 01 Apr 2018 07:04:22 GMT):
@EfratLevy it is permissioned

magicianx25 (Sun, 01 Apr 2018 07:38:45 GMT):

unsupported file.png

magicianx25 (Sun, 01 Apr 2018 07:39:00 GMT):
Hello does anyone know why i get this error?

magicianx25 (Sun, 01 Apr 2018 07:40:10 GMT):
I am trying to pass in the generated channel configuration transaction artifact to the orderer as part of the create channel request

EfratLevy (Sun, 01 Apr 2018 09:40:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gDMKtFgss8Tn7yZCp) @ronald.petty

EfratLevy (Sun, 01 Apr 2018 09:41:25 GMT):
@ronald.petty permissioned doesn't mean that one peer cannot be compromised...

amolpednekar (Sun, 01 Apr 2018 09:49:10 GMT):
Fabric isn't byzantine fault tolerant

johnpentester (Sun, 01 Apr 2018 10:19:16 GMT):
hello, is there a documentation or best practice to "how to create a production environment" ?

johnpentester (Sun, 01 Apr 2018 10:20:02 GMT):
or a documentation about how to set up Orderer server on separate place?

johnpentester (Sun, 01 Apr 2018 10:20:28 GMT):
should Peers, have images downloaded and call .startFabric.sh ?

johnpentester (Sun, 01 Apr 2018 10:20:43 GMT):
thank you for your time

johnpentester (Sun, 01 Apr 2018 10:29:55 GMT):
in production environment, how do we preserve transaction logs? if for any reason server goes down, all transaction will be gone?

wbhagan (Sun, 01 Apr 2018 11:38:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6KbtqbYfrnKdHHLJS) @magicianx25 Do ensure that the environment variable, FABRIC_CFG_PATH, has been properly set to enable Fabric locate your configuration files. I'm working on the assumption that you are following the byfn tutorials.

wbhagan (Sun, 01 Apr 2018 11:47:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wgZhiZuY4T3HeE8Rq) @EfratLevy In a public network such as the bitcoin network, where there is no control, this is highly likely because our how consensus is achieved on the network. With Hyperledger Fabric, the chances, in my opinion, are quite low and may even need the connivance of the network administrator. I mean, before a transaction block is accepted on the network, every endorsing peer - based on the agreed endorsement policy - among all the participating organisations will need to agree.

wbhagan (Sun, 01 Apr 2018 11:47:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wgZhiZuY4T3HeE8Rq) @EfratLevy In a public network such as the bitcoin network, where there is no control, this is highly likely because our how consensus is achieved on the network. With Hyperledger Fabric, the chances, in my opinion, are quite low and may even need the connivance of the network administrator. I mean, before a transaction block is accepted on the network, every endorsing peer - based on the agreed endorsement policy - among all the participating organisations will need to agree. A lone attacker will need to understand the endorsement policy in place and go compromising as many peer nodes as required that will satisfy the policy criteria

wbhagan (Sun, 01 Apr 2018 11:50:44 GMT):
To add a peer to a channel we run "peer channel join".....what do we need to run to remove a peer from a channel? I can't seem to find that documented. Anyone?

yacovm (Sun, 01 Apr 2018 11:52:50 GMT):
@EfratLevy - there is no system that can protect against a 51% attack...

yacovm (Sun, 01 Apr 2018 11:53:14 GMT):
if an adversary controls the majority of the consensus nodes, its game over

yacovm (Sun, 01 Apr 2018 11:53:14 GMT):
if an adversary controls the majority of the consensus nodes, it's game over

yacovm (Sun, 01 Apr 2018 11:54:47 GMT):
but Fabric is a permissioned Blockchain, and the consensus nodes run in companies, not run by anonymous users like bitcoin

Nghiadt (Sun, 01 Apr 2018 12:01:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2CNZcN8z4orFmd2Qm) @daygee I'm trying and still stucked! It has been for 2 weeks :(

EfratLevy (Sun, 01 Apr 2018 13:17:49 GMT):
Is the fabric CA deployed on a blockchain network also?

yacovm (Sun, 01 Apr 2018 13:22:22 GMT):
you can deploy your own CA @EfratLevy

yacovm (Sun, 01 Apr 2018 13:23:03 GMT):
but yes - you can use the CA that the project provides (AKA fabric-ca)

EfratLevy (Sun, 01 Apr 2018 13:52:08 GMT):
Thanks, Yacov. The fabric-ca is blockchain based DB?

miaohua (Sun, 01 Apr 2018 13:52:33 GMT):
Has joined the channel.

yacovm (Sun, 01 Apr 2018 13:55:02 GMT):
there is no such a thing as a blockchain based DB ;)

yacovm (Sun, 01 Apr 2018 13:55:16 GMT):
it supports all kinds of DBs... i.e postgress, etc.

EfratLevy (Sun, 01 Apr 2018 14:04:45 GMT):
Tanks, Yacov. but What is the meaning by "ca servers cluster"? Is it a cluster of blockchain peers?

yacovm (Sun, 01 Apr 2018 14:05:14 GMT):
no

yacovm (Sun, 01 Apr 2018 14:05:20 GMT):
it's just a CA server... nothing to do with peers

yacovm (Sun, 01 Apr 2018 14:05:27 GMT):
and the cluster is for HA (high availability)

EfratLevy (Sun, 01 Apr 2018 14:05:50 GMT):
I mean. What is the security advantage for me as organization to use the Hyperledger Fabric (blockchain implementation) but a central CA?

EfratLevy (Sun, 01 Apr 2018 14:07:48 GMT):
I mean, there are some security reasons to use blockchain. Moving to permissioned blockchain is also reasonable. But if the CA is centralized, don't we miss the security here? ...

yacovm (Sun, 01 Apr 2018 14:09:43 GMT):
who said it's a central CA?

yacovm (Sun, 01 Apr 2018 14:09:49 GMT):
each organization has its own CA(s)

EfratLevy (Sun, 01 Apr 2018 14:10:56 GMT):
ok....

EfratLevy (Sun, 01 Apr 2018 14:13:05 GMT):
Thanks, Yacov

yacovm (Sun, 01 Apr 2018 14:14:07 GMT):
be keif

EfratLevy (Sun, 01 Apr 2018 14:14:13 GMT):
LOL

EfratLevy (Sun, 01 Apr 2018 14:16:57 GMT):
Yacov, it seems to me that the solution is incomplete. I mean - there are security advantages in private/permissioned blockchain, but a solution that does not address the CA as a security hole, seems to me incomplete...

yacovm (Sun, 01 Apr 2018 14:17:33 GMT):
what security hole are you talking about?

yacovm (Sun, 01 Apr 2018 14:17:41 GMT):
it's really all very simple

yacovm (Sun, 01 Apr 2018 14:17:48 GMT):
you have organizations

yacovm (Sun, 01 Apr 2018 14:18:06 GMT):
they want to have some business with each other that involves exchange of data

yacovm (Sun, 01 Apr 2018 14:18:59 GMT):
they want to be able to have non repudiation and selective data disclosure, so they use a blockchain

yacovm (Sun, 01 Apr 2018 14:19:25 GMT):
a CA is just an entity that has a public certificate that you put inside the blockchain to represent your org

yacovm (Sun, 01 Apr 2018 14:19:34 GMT):
and it also issues certificates for the nodes and clients

yacovm (Sun, 01 Apr 2018 14:19:37 GMT):
that's all there is to it

yacovm (Sun, 01 Apr 2018 14:19:47 GMT):
what security hole are you talking about?

EfratLevy (Sun, 01 Apr 2018 14:25:10 GMT):
OK, In order to be able to have non repudiation and selective data disclosure, they can use common centralized DB as well. why blockchain?

yacovm (Sun, 01 Apr 2018 14:25:36 GMT):
you can't have non repudiation in a central DB

EfratLevy (Sun, 01 Apr 2018 14:25:42 GMT):
why?

yacovm (Sun, 01 Apr 2018 14:26:06 GMT):
lets assume you and me use a shared mysql server and both have access writes to a table.

EfratLevy (Sun, 01 Apr 2018 14:26:49 GMT):
ok

yacovm (Sun, 01 Apr 2018 14:27:48 GMT):
you insert a new row that says that you owe me 100 NIS and then I can change that row to say that you owe me 100 $ instead

yacovm (Sun, 01 Apr 2018 14:28:09 GMT):
in Fabric, to do that - you'll need both mine and yours signatures

yacovm (Sun, 01 Apr 2018 14:28:31 GMT):
and hopefully if the programmer that wrote the chaincode isn't stupid - it will do such checks

EfratLevy (Sun, 01 Apr 2018 14:29:00 GMT):
but writing on ledger "A gives B 100 NIS" and then "B gives A 100 NIS" is like writing "A gives B 100 NIS" and deleting this row ....

yacovm (Sun, 01 Apr 2018 14:29:17 GMT):
it is, but it has nothing to do with my example

EfratLevy (Sun, 01 Apr 2018 14:30:22 GMT):
but I just showed you why they're equivalent ...

EfratLevy (Sun, 01 Apr 2018 14:30:44 GMT):
and regarding the signatures, the central DB row can be signed as well.

yacovm (Sun, 01 Apr 2018 14:31:02 GMT):
so, the essence is that in Fabric - we can have a transaction that only gets committed if *both* you and I agree on its content

yacovm (Sun, 01 Apr 2018 14:32:07 GMT):
in a shared DB - clients can do more or less whatever they want as long as they have privileges.

yacovm (Sun, 01 Apr 2018 14:32:22 GMT):
In Fabric it's not like that - you have a channel that is controlled by multiple parties (organizations)

EfratLevy (Sun, 01 Apr 2018 14:32:29 GMT):
Who the "BOTH" thing is enforced in fabric?

yacovm (Sun, 01 Apr 2018 14:32:31 GMT):
every party on its own can't do anything useful

EfratLevy (Sun, 01 Apr 2018 14:32:39 GMT):
How*

yacovm (Sun, 01 Apr 2018 14:32:47 GMT):
oh, it's enforced by policies

EfratLevy (Sun, 01 Apr 2018 14:33:31 GMT):
But If I write transaction "I owe you 100 NIS" , does it ask you for your agreement?

yacovm (Sun, 01 Apr 2018 14:33:51 GMT):
it could if we require signatures from both me and you

wbhagan (Sun, 01 Apr 2018 14:44:29 GMT):
@yacovm please can you help me with this? what do we need to run to remove a peer from a channel just as we have "peer channel join" to add a peer?

yacovm (Sun, 01 Apr 2018 14:48:24 GMT):
you can just delete its channel data

yacovm (Sun, 01 Apr 2018 14:48:34 GMT):
(take it down, delete it, and bring it up)

wbhagan (Sun, 01 Apr 2018 15:25:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cSMZKdhFFif9QTQuq) @yacovm Do you mean 1. Bring down the peer? 2. Delete its data as contained in /var/hyperledger/production/ 3. Bring it back up?

yacovm (Sun, 01 Apr 2018 15:25:53 GMT):
not everything

wbhagan (Sun, 01 Apr 2018 15:26:13 GMT):
sure

wbhagan (Sun, 01 Apr 2018 15:26:38 GMT):
i'm guessing the ledger data

wbhagan (Sun, 01 Apr 2018 15:27:52 GMT):
however, I am thinking what if i don't have access to the peer as the peer could be in an organisation i have no control over however, as an administrator, i do not need the peer as being a part of the channel

wbhagan (Sun, 01 Apr 2018 15:28:20 GMT):
i know one can simply create a new channel without this peer

yacovm (Sun, 01 Apr 2018 15:28:57 GMT):
we didn't implement "leave channel" yet

wbhagan (Sun, 01 Apr 2018 15:29:17 GMT):
but that will require having to find a way to replicate existing data in new channel

wbhagan (Sun, 01 Apr 2018 15:29:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tAi5riNucNvpKNTec) @yacovm okay. design decisions?

yacovm (Sun, 01 Apr 2018 15:31:10 GMT):
more like time constraints

Nghiadt (Sun, 01 Apr 2018 15:31:15 GMT):

Screen Shot 2018-04-01 at 10.18.24 PM.png

wbhagan (Sun, 01 Apr 2018 15:34:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8eMsbY8xogATKtYFZ) @yacovm okay. but are there plans for its inclusion?

sampath06 (Sun, 01 Apr 2018 15:35:31 GMT):
I would like to get the inserted/extracted entity in another node and update a local database. I was thinking of using the Event Listener to do this? Is that approach correct? Any tutorials on how to get the exact object that was added?

yacovm (Sun, 01 Apr 2018 15:35:35 GMT):
hmm... I'm actually not sure... @mastersingh24 do we have plans for inclusion of "leave channel" on peers?

yacovm (Sun, 01 Apr 2018 15:36:06 GMT):
I don't know

yacovm (Sun, 01 Apr 2018 15:36:20 GMT):
I think there is a JIRA for that

yacovm (Sun, 01 Apr 2018 15:36:40 GMT):
you can post in #fabric-release if you think it should be prioritized for v1.2

wbhagan (Sun, 01 Apr 2018 15:38:25 GMT):
okay. thanks.

akula (Sun, 01 Apr 2018 15:46:45 GMT):
@Nghiadt I'm not at this point yet, but together we may try to figure out. When you ask for install a new chaincode the fabric-ccenv starts to create a new image (something like this: dev-peer0.mainorg.synapsetec.com.br-tutorial-network-1.0.1-deploy.5-da56ffd921c434eb3b8fe78020a96e41404d6a7b04d46f55bf9cf62f41259a37) To do so the fabric-ccenv must have admin privileges at the host. By looking at the logs you provide the dev-peer0... image has been succefuly created, but it cannot start the container. It may happen due permission on host, so make sure the user you are using possess all privileges to start containers

Nghiadt (Sun, 01 Apr 2018 15:50:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SaNdxPD84fM9T7ggu) @akula yep! absolute about permissions, because i set it for non-root user. I think the chaincode container started then stop right few seconds because it cannot connect to peer.

Nghiadt (Sun, 01 Apr 2018 15:50:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SaNdxPD84fM9T7ggu) @akula yep! absolute about permissions, because i set it for non-root users. I think the chaincode container started then stop right few seconds because it cannot connect to peer.

akula (Sun, 01 Apr 2018 15:52:39 GMT):
@Nghiadt let's try to do the thing with root to see what happen

Nghiadt (Sun, 01 Apr 2018 15:59:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C9GEFDthAqqDvtspb) @akula i've just tried. I started container manually and it stopped after few seconds. I think it's not about permissions.

akula (Sun, 01 Apr 2018 16:01:22 GMT):
@Nghiadt you are using hyperledger 1.0.6. Have you tried to go latest?

Nghiadt (Sun, 01 Apr 2018 16:02:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ezs8srD2GRtkNeKcP) @akula No, i'm not. I deploy from Cello-K8s documents

akula (Sun, 01 Apr 2018 16:07:34 GMT):
@Nghiadt I will take a look at Cello... In meantime, have you ever heard about Rancher? I was thinking to use it to manage the nodes. All I have to do is to provide a docker-compose just like the first network tutorial

Nghiadt (Sun, 01 Apr 2018 16:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MC6zfLC4KWuHcLn6f) @akula No, I haven't using Rancher. You mean Rancher + docker compose -> Docker cluster or just used on a node?

Nghiadt (Sun, 01 Apr 2018 16:26:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2u4fZY3cZJoS5j6s8) Hope hearing from all of you!

aatkddny (Sun, 01 Apr 2018 16:28:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kMRq4DacQcjBcEXoi) I'll chime in here as a caveat. I have a guy going through an issue very similar to this - an asset is added on Peer A to channel 1. He throws an event that's trapped on Peer B. He wants to use a different piece of chaincode on channel 2 on B to record details about the first asset on a different asset in channel 2 - he uses a cross chain read. It all works just fine if he does it only on A, but that's not answering his FR. His issue is that when he reads for the asset on B it's not always there. Which implies the event is thrown (and trapped) before the channel 1 RW Tx set is applied on B. So if you are trying to update something external by reading the ledger you may hit the same issue. Insofar as I can tell - but I didn't design the commit logic - the only way to ensure visibility to the original asset is to pass it as part of the event. There's no peer-local post-commit event hook that I can see. The earliest -composer examples (which we aren't using) imply this is correct since they throw the asset as part of the event.

akula (Sun, 01 Apr 2018 16:30:49 GMT):
@Nghiadt I mean Rancher+Docker. It can be used in a single or multiple nodes

sampath06 (Sun, 01 Apr 2018 16:49:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vAZDLFs2roZrBHWRw) @aatkddny Thanks. This is useful. Any idea how the second peer gets information on which asset was added?

sampath06 (Sun, 01 Apr 2018 16:58:32 GMT):
I wouldnt mind putting in a retry logic in the application if I could figure out which asset got added

Nghiadt (Sun, 01 Apr 2018 17:22:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rAqKBsgtHvdqJvk7Y) @akula I'll take care it. Thank you for your advices.

aatkddny (Sun, 01 Apr 2018 18:49:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dxJatoZJEkiHwyGDr) @sampath06 These are distributed transactions - so they are going to be eventually consistent. Waiting would help, but it's hard to turn eventually into a number.

arvindjaiswal (Sun, 01 Apr 2018 19:16:49 GMT):
Has joined the channel.

arvindjaiswal (Sun, 01 Apr 2018 19:40:04 GMT):
Hello Everyone, I have recently started exploring hyperledger composer. I have few questions for which I didn't know where should I ask. Please help me with below questions 1) How contracts and transactions are managed? Does every node in the chain maintains their own set of transactions? 2) Does contracts and business logic also deployed on every node or any specific server. 3) If contracts are managed centrally then how we are securing the contracts. If one person is managing contracts then can easily change the contracts. 4) How to use these contracts and transactions from some front -end UI. can anyone share me end to end working demo.

ronald.petty (Sun, 01 Apr 2018 20:46:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7koP2HMcKSheuxcgG) @EfratLevy That is correct, but that is also a point to permissioned networks. If you know the participants, you know in general how they will act, which is why you have them to begin with. From a pure technical measure you are correct, it doesn't stop them, unless I am mistaken there are no ways to stop majority based attacks. In a very general sense, eventual consensus does this, but its eventual (aka it may never reach consensus). So even existing systems are not absolutes.

BeneHei (Sun, 01 Apr 2018 23:57:04 GMT):
Has joined the channel.

BeneHei (Sun, 01 Apr 2018 23:58:47 GMT):
Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more?

mc (Mon, 02 Apr 2018 00:46:26 GMT):
hi all

olutesting (Mon, 02 Apr 2018 02:41:27 GMT):
Has joined the channel.

EfratLevy (Mon, 02 Apr 2018 03:50:00 GMT):
Hi, I have a question regarding the following link: https://www.ibm.com/blogs/insights-on-business/government/is-blockchain-secure/ Can you provide me with a detailed list of what the roles of Blockchain Application are? (admin and participant sides)

allen96-hku (Mon, 02 Apr 2018 03:51:28 GMT):
Has joined the channel.

allen96-hku (Mon, 02 Apr 2018 03:51:42 GMT):
Hi all I have a question regarding to the docker containers and CA. In BYFN tutorial, there is no CA container defined in the docker-compose file, so I assumed there is no CA set up in that tutorial. However, in FabCar tutorial, there is a CA containers. The CA container specified the ca certificate generated by cryptogen in the env.. But i cant see any setting for connecting the CA container with the peer containers or other containers. May I know what actually is the meaning in adding CA container into the docker-compose? Is there any change in the communication between nodes after adding it? Thank you very much #fabric-ca #fabric-questions

sampath06 (Mon, 02 Apr 2018 04:43:52 GMT):
Any help with getting the actual asset being added. I used EventHub to get the block and transaction. But that is returning just bytes. How do I get the asset information?

vishaldumbre (Mon, 02 Apr 2018 05:16:48 GMT):
xAll, Can you please help me to solve this issue - getting error while creating channel in fabric -sample-1.1.0 -preview. error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:255:19)\n at ClientDuplexStream._readsDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:221:8)\n at readCallback (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:283:12)" [2018-03-30 17:18:05.881] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/fabric-client/lib/Orderer.js:136:21)

vishaldumbre (Mon, 02 Apr 2018 05:16:48 GMT):
All, Can you please help me to solve this issue - getting error while creating channel in fabric -sample-1.1.0 -preview. error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:255:19)\n at ClientDuplexStream._readsDone (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:221:8)\n at readCallback (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:283:12)" [2018-03-30 17:18:05.881] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/dishank/fabric-samples-1.1.0-preview/secu_test/node_modules/fabric-client/lib/Orderer.js:136:21)

RajathNandan (Mon, 02 Apr 2018 06:04:19 GMT):
Has joined the channel.

RajathNandan (Mon, 02 Apr 2018 06:04:24 GMT):
I have generated .bna file. But am not able to run it. Error: Card not found: PeerAdmin@hlfv1 Command failed Help please!

EfratLevy (Mon, 02 Apr 2018 06:39:24 GMT):
You need to generate a network card as well

EfratLevy (Mon, 02 Apr 2018 06:39:41 GMT):
.bna is not the only thing you need

RajathNandan (Mon, 02 Apr 2018 06:58:18 GMT):
How do I do that?

RajathNandan (Mon, 02 Apr 2018 06:58:22 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT

RajathNandan (Mon, 02 Apr 2018 06:58:27 GMT):
PLEASE HELP.

magicianx25 (Mon, 02 Apr 2018 07:01:32 GMT):
@wbhagan i did set that variable twice

magicianx25 (Mon, 02 Apr 2018 07:02:34 GMT):
and yea I do use byfn

pankajcheema (Mon, 02 Apr 2018 07:07:40 GMT):
Any Kafka expert here?

pankajcheema (Mon, 02 Apr 2018 07:08:37 GMT):
I need a clarification about some terms/ports used in the following zookeeper configuration

pankajcheema (Mon, 02 Apr 2018 07:08:40 GMT):
```zookeeper0: container_name: zookeeper0 image: hyperledger/fabric-zookeeper environment: - ZOO_MY_ID=1 - ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888 ports: - 2181 - 2888 - 3888 networks: - recheck```

RajathNandan (Mon, 02 Apr 2018 07:09:06 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT PLEASE HELP.

pankajcheema (Mon, 02 Apr 2018 07:09:20 GMT):
What ```ports: - 2181 - 2888 - 3888``` this means?

pankajcheema (Mon, 02 Apr 2018 07:09:39 GMT):
why there are three different ports for a single zookeeper?

RajathNandan (Mon, 02 Apr 2018 07:10:22 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT PLEASE HELP. @magicianx25 @EfratLevy @vishaldumbre @pankajcheema ?

pankajcheema (Mon, 02 Apr 2018 07:11:31 GMT):
@RajathNandan at which phase you are facing this issue .

atiffarrukh (Mon, 02 Apr 2018 07:22:00 GMT):
Greetings everyone, After running the examples I have a question. Whenever I kill the docker containers, the ledger is destroyed. If for some reasons my server power cuts off or due to some hardware failure, the server shuts down, all the blockchain ledger will be lost?

pankajcheema (Mon, 02 Apr 2018 07:27:26 GMT):
@atiffarrukh here when you are killing the docker containers means you are destroying the system physically .

atiffarrukh (Mon, 02 Apr 2018 07:31:42 GMT):
@pankajcheema Sorry if I am asking a noob question, i am not a server expert. lets assume i have a Ubuntu server and it gets shutdown, not a clean shutdown, will the containers be killed and my data is lost? If so then whats the solution for this? How do we solve this problem?

pankajcheema (Mon, 02 Apr 2018 07:33:47 GMT):
killing a docker containers means you are formatting your system

pankajcheema (Mon, 02 Apr 2018 07:35:07 GMT):
@atiffarrukh let us verify the same over here

atiffarrukh (Mon, 02 Apr 2018 07:36:51 GMT):
@pankajcheema can we somehow "export" the ledger after certain time-interval and then "import" it back when server is back online?

pankajcheema (Mon, 02 Apr 2018 07:37:36 GMT):
@atiffarrukh Sorry am not sure about this

atiffarrukh (Mon, 02 Apr 2018 07:38:58 GMT):
@pankajcheema okay, thank you. can we have peers on more than one servers? e.g. peer0 of org1 on Server1 and peer0 of org2 on Server2?

pankajcheema (Mon, 02 Apr 2018 07:39:09 GMT):
yes

atiffarrukh (Mon, 02 Apr 2018 07:40:57 GMT):
do you think will this somehow solve the issue? will both of them sync if server1 shutsdown and after getting it back online, lets say after 2-3 hours, will the data sync from peer0 of org2 fromserver 2?

wbhagan (Mon, 02 Apr 2018 07:46:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HTon2u5eHD6kCX68E) @atiffarrukh With docker, there's the concept of volumes which enable one to persist data to the local host even after the container is gone. If you're following the byfn tutorial, you will notice in the docker-compose*.yaml files the volumes entry. That's where you will find your container's data storage

wbhagan (Mon, 02 Apr 2018 07:49:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ruk6okAeMf5gsLc4b) @magicianx25 hmm. For some reason, that setting doesn't seem to be persisting. How are you starting your peer containers?

atiffarrukh (Mon, 02 Apr 2018 07:50:51 GMT):
@wbhagan `orderer.example.com:/var/hyperledger/production/orderer` are you talking about this line? its in the `/base/docker-compose-base.yaml`

wbhagan (Mon, 02 Apr 2018 07:54:45 GMT):
Yes. There's also the docker-compose-cli.yaml and I think a few more files. Sorry I'm not behind a PC at the moment to confirm the actual files. #mobile

atiffarrukh (Mon, 02 Apr 2018 07:56:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xi6ZKp7jGotazgm4d) @wbhagan Great, thank you. I will give it a try.

lacrimosa (Mon, 02 Apr 2018 08:26:36 GMT):
Has joined the channel.

manish27 (Mon, 02 Apr 2018 08:27:00 GMT):
Hello Everyone, I am trying to register and enroll new users in Organization - Org1: using below command :- curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' and getting below error:- {"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]"} ORG1 token is null POST request Enroll on Or {"success":false,"message h error [Error: connect E ORG2 token is null Please help to resolve this issue.

magicianx25 (Mon, 02 Apr 2018 08:38:14 GMT):
@wbhagan so I am doing the first tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

magicianx25 (Mon, 02 Apr 2018 08:38:30 GMT):
and use the command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

magicianx25 (Mon, 02 Apr 2018 08:39:16 GMT):
i set FABRIC_CFG_PATH=$PWD where configtx is

magicianx25 (Mon, 02 Apr 2018 08:39:31 GMT):
and crypto-config

lclclc (Mon, 02 Apr 2018 09:02:33 GMT):
A question about auth. How can I distinguish the transaction invoker inside the chaincode? I want to set up a chaincode that some accounts have priviledge operation. For example, only the admin can run a priviledged method, only it can authorize a list of organizations' identities to run same method. I need the capability to identify transaction creator and trance if it belongs to some organization to achieve my goal. I search in the chaincode API, found an API named `getCreator()`,its output is like this: ``` end query org info by code: %s {"Code":"DIDI1","name":"DIDI CO.","info":"hello DIDI","Id":"CgdERUZBVUxUEroGLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNOakNDQWQyZ0F3SUJBZ0lSQU1uZjkvZG1WOVJ2Q0NWdzlwWlFVZlV3Q2dZSUtvWkl6ajBFQXdJd2dZRXgKQ3pBSkJnTlZCQVlUQWxWVE1STXdFUVlEVlFRSUV3cERZV3hwWm05eWJtbGhNUll3RkFZRFZRUUhFdzFUWVc0ZwpSbkpoYm1OcGMyTnZNUmt3RndZRFZRUUtFeEJ2Y21jeExtVjRZVzF3YkdVdVkyOXRNUXd3Q2dZRFZRUUxFd05EClQxQXhIREFhQmdOVkJBTVRFMk5oTG05eVp6RXVaWGhoYlhCc1pTNWpiMjB3SGhjTk1UY3hNVEV5TVRNME1URXgKV2hjTk1qY3hNVEV3TVRNME1URXhXakJwTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHQTFVRUNCTUtRMkZzYVdadgpjbTVwWVRFV01CUUdBMVVFQnhNTlUyRnVJRVp5WVc1amFYTmpiekVNTUFvR0ExVUVDeE1EUTA5UU1SOHdIUVlEClZRUURFeFp3WldWeU1DNXZjbWN4TG1WNFlXMXdiR1V1WTI5dE1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMEQKQVFjRFFnQUVaOFM0VjcxT0JKcHlNSVZaZHdZZEZYQWNrSXRycHZTckNmMEhRZzQwV1c5WFNvT09PNzZJK1VtZgpFa21UbElKWFA3L0F5UlJTUlUzOG9JOEl2dHU0TTZOTk1Fc3dEZ1lEVlIwUEFRSC9CQVFEQWdlQU1Bd0dBMVVkCkV3RUIvd1FDTUFBd0t3WURWUjBqQkNRd0lvQWdpbk9SSWhuUEVGWlVoWG02ZVdCa203SzdaYzhSNC96N0xXNEgKb3NzRGxDc3dDZ1lJS29aSXpqMEVBd0lEUndBd1JBSWdWaWtJVVp6Z2Z1RnNHTFFIV0pVVkpDVTdwRGFFVGthegpQekZnc0NpTHhVQUNJQ2d6SllsVzdudlp4UDdiNnRiZXUzdDhtcmhNWFFzOTU2bUQ0K0JvS3VOSQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="} ````

lclclc (Mon, 02 Apr 2018 09:02:33 GMT):
A question about auth. How can I distinguish the transaction invoker inside the chaincode? I want to set up a chaincode that some accounts have priviledge operation. For example, only the admin can run a priviledged method, only it can authorize a list of organizations' identities to run same method. I need the capability to identify transaction creator and trance if it belongs to some organization to achieve my goal. I search in the chaincode API, found an API named `getCreator()`,its output is like this: ``` end query org info by code: %s {"Code":"DIDI1","name":"DIDI CO.","info":"hello DIDI","Id":"CgdERUZBVUxUEroGLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNOakNDQWQyZ0F3SUJBZ0lSQU1uZjkvZG1WOVJ2Q0NWdzlwWlFVZlV3Q2dZSUtvWkl6ajBFQXdJd2dZRXgKQ3pBSkJnTlZCQVlUQWxWVE1STXdFUVlEVlFRSUV3cERZV3hwWm05eWJtbGhNUll3RkFZRFZRUUhFdzFUWVc0ZwpSbkpoYm1OcGMyTnZNUmt3RndZRFZRUUtFeEJ2Y21jeExtVjRZVzF3YkdVdVkyOXRNUXd3Q2dZRFZRUUxFd05EClQxQXhIREFhQmdOVkJBTVRFMk5oTG05eVp6RXVaWGhoYlhCc1pTNWpiMjB3SGhjTk1UY3hNVEV5TVRNME1URXgKV2hjTk1qY3hNVEV3TVRNME1URXhXakJwTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHQTFVRUNCTUtRMkZzYVdadgpjbTVwWVRFV01CUUdBMVVFQnhNTlUyRnVJRVp5WVc1amFYTmpiekVNTUFvR0ExVUVDeE1EUTA5UU1SOHdIUVlEClZRUURFeFp3WldWeU1DNXZjbWN4TG1WNFlXMXdiR1V1WTI5dE1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMEQKQVFjRFFnQUVaOFM0VjcxT0JKcHlNSVZaZHdZZEZYQWNrSXRycHZTckNmMEhRZzQwV1c5WFNvT09PNzZJK1VtZgpFa21UbElKWFA3L0F5UlJTUlUzOG9JOEl2dHU0TTZOTk1Fc3dEZ1lEVlIwUEFRSC9CQVFEQWdlQU1Bd0dBMVVkCkV3RUIvd1FDTUFBd0t3WURWUjBqQkNRd0lvQWdpbk9SSWhuUEVGWlVoWG02ZVdCa203SzdaYzhSNC96N0xXNEgKb3NzRGxDc3dDZ1lJS29aSXpqMEVBd0lEUndBd1JBSWdWaWtJVVp6Z2Z1RnNHTFFIV0pVVkpDVTdwRGFFVGthegpQekZnc0NpTHhVQUNJQ2d6SllsVzdudlp4UDdiNnRiZXUzdDhtcmhNWFFzOTU2bUQ0K0JvS3VOSQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="} ``` Surely I can hard-code these byte array inside my chaincode, but it is ugly. Is there any elegant way to do authentication and authorization?

harmansohanpal (Mon, 02 Apr 2018 09:07:20 GMT):
Has joined the channel.

jrosmith (Mon, 02 Apr 2018 09:24:25 GMT):
@lclclc you can decode that block and actually get information like the common name on the signing certificate. you can also use attribute based access control in 1.1 to set fine grain permissions

ganeshraut (Mon, 02 Apr 2018 09:51:55 GMT):
Has joined the channel.

ganeshraut (Mon, 02 Apr 2018 09:51:59 GMT):
How to integrate kafka + Hyper ledger fabric please guide me if any one have knowledge about HA environment I want to set up multiple Orderer with multiple node

atiffarrukh (Mon, 02 Apr 2018 09:53:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PeRJSotERynNA2gYi) @wbhagan I managed to get it working that way. Thank you for your help.

zhenbing (Mon, 02 Apr 2018 10:04:02 GMT):
Has joined the channel.

cslijo (Mon, 02 Apr 2018 10:13:01 GMT):
Has joined the channel.

lclclc (Mon, 02 Apr 2018 10:54:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PXnGckFRZiDqNzoiM) @jrosmith ABAC looks good, let me check.

arvindjaiswal (Mon, 02 Apr 2018 11:05:24 GMT):
Hello Everyone, I have recently started exploring hyperledger composer. I have few questions for which I didn't know where should I ask. Please help me with below questions 1) How contracts and transactions are managed? Does every node in the chain maintains their own set of transactions? 2) Does contracts and business logic also deployed on every node or any specific server. 3) If contracts are managed centrally then how we are securing the contracts. If one person is managing contracts then can easily change the contracts. 4) How to use these contracts and transactions from some front -end UI. can anyone share me end to end working demo.

ume0202 (Mon, 02 Apr 2018 11:12:03 GMT):
jquery

wbhagan (Mon, 02 Apr 2018 11:15:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vJ6cfHurt7946oAPt) @atiffarrukh Great. Well done pal.

lclclc (Mon, 02 Apr 2018 11:16:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PXnGckFRZiDqNzoiM) @jrosmith one more question,which api will decode the block? I search the shim document(https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim) founding nothing about decoding and block.

jrosmith (Mon, 02 Apr 2018 11:27:41 GMT):
@lclclc you'll need to decode the block yourself, assuming you're using go: ```import ( "crypto/x509" "encoding/pem" "github.com/golang/protobuf/proto" mspprotos "github.com/hyperledger/fabric/protos/msp" ) func getSigner(stub shim.ChaincodeStubInterface) (string, error) { creator, err := stub.GetCreator() if err != nil { return "", err } id := &mspprotos.SerializedIdentity{} err = proto.Unmarshal(creator, id) if err != nil { return "", err } block, _ := pem.Decode(id.GetIdBytes()) cert, err := x509.ParseCertificate(block.Bytes) if err != nil { return "", err } signer := cert.Subject.CommonName return signer, nil } ```

lclclc (Mon, 02 Apr 2018 11:28:40 GMT):
That looks like I can turn this output: ```

yacovm (Mon, 02 Apr 2018 11:33:11 GMT):
wow @jrosmith nice one. I'm happy people have their own code snippets by now.... :)

lclclc (Mon, 02 Apr 2018 11:35:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bB9K4AnwScoGn5Goz) @jrosmith If ` signer := cert.Subject.CommonName ` returns a human-readble format like "org1" that will be what I want perfectly.

lclclc (Mon, 02 Apr 2018 11:35:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bB9K4AnwScoGn5Goz) @jrosmith If ` signer := cert.Subject.CommonName ` returns a human-readble format like "org1" that will be what I want perfectly. Thank you very much.

BeneHei (Mon, 02 Apr 2018 11:36:13 GMT):
Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? "resource:at.oenb.dlt.participants.musiker#11" Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? "resource:at.oenb.dlt.participants.musiker#11" Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more? Hello, how does hyperledger fabric interacts with hyperledger composer? I'm also interested in the architecture concept behind. where can i learn more?

BeneHei (Mon, 02 Apr 2018 11:36:40 GMT):
Hello, i already generated a .bna via Hyperledger Composer playground. Now i'm curious to understand how hyperledger fabric interacts with hyperleder composer playground. I'm also very interested in the architecture concept behind. Where can I learn more?

jrosmith (Mon, 02 Apr 2018 11:36:43 GMT):
@yacovm just contributing back to the community :), pretty sure gari singh gave me that snippet originally months ago

jrosmith (Mon, 02 Apr 2018 11:36:57 GMT):
@lclclc yep its a human readable string of the name of the registered user

jrosmith (Mon, 02 Apr 2018 11:37:10 GMT):
@BeneHei #composer will help you best

yacovm (Mon, 02 Apr 2018 11:37:11 GMT):
oh... cool.

lclclc (Mon, 02 Apr 2018 11:37:47 GMT):
@jrosmith you save my day.

BeneHei (Mon, 02 Apr 2018 11:37:49 GMT):
@jrosmith thx

yacovm (Mon, 02 Apr 2018 11:38:11 GMT):
by the way we have: https://github.com/hyperledger/fabric/tree/release-1.1/core/chaincode/lib/cid

yacovm (Mon, 02 Apr 2018 11:38:33 GMT):
`cert, err := cid.GetX509Certificate(stub)`

yacovm (Mon, 02 Apr 2018 11:39:03 GMT):
it puts you very close to Josh's `cert.Subject.CommonName`

jrosmith (Mon, 02 Apr 2018 11:40:06 GMT):
oh awesome! excited to play around with those once we update our systems to 1.1

lclclc (Mon, 02 Apr 2018 11:43:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tBBDhTED3D52xCzeQ) @yacovm ha, I search ABAC and found some out-of-date link. This link with release-1.1 tag meets what I need. Thanks.

hrt031293 (Mon, 02 Apr 2018 11:57:35 GMT):
```[common/tools/configtxgen/localconfig] Load -> CRIT 002 Error reading configuration: While parsing config: yaml: line 22: did not find expected key ``` Any idea to anyone about this error?

wbhagan (Mon, 02 Apr 2018 12:05:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HLiqRFMGrhgoiqd5f) @magicianx25 Hi. So I looked at the original error message you captured in the image you uploaded and compared it with what is contained in the example you're trying to run``` From the docs:``` --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` ``` From your entry:``` --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderer/Organizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem`````` ``` The docs has ordererOrganizations as a directory in that path while you have got yours as orderer / Organizations. Kindly confirm your entries again.``` Cheers. ``` ``` ``` ``` ```

wbhagan (Mon, 02 Apr 2018 12:05:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HLiqRFMGrhgoiqd5f) @magicianx25 Hi. So I looked at the original error message you captured in the image you uploaded and compared it with what is contained in the example you're trying to run``` From the docs:``` --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` ``` From your entry:``` --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderer/Organizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem`````` The docs has ordererOrganizations as a directory in that path while you have got yours as orderer / Organizations. Kindly confirm your entries again.``` Cheers.

NAWAZUDDIN552 (Mon, 02 Apr 2018 12:45:37 GMT):
Hey Friends, after Starting the docker container when I want to enter CLI container using the command `docker exec -it cli bash` I got the below error `Error response from daemon: Container b68d5c01e51abf559126904b92f33036b40013d9e66050e35d477afc9ee219b1 is not running `

mastersingh24 (Mon, 02 Apr 2018 13:20:55 GMT):
@NAWAZUDDIN552 - if you started the CLI container as part of one of the samples, eventually it times out and shuts down (i.e. it does not run forever)

NAWAZUDDIN552 (Mon, 02 Apr 2018 13:26:14 GMT):
@mastersingh24 can you explain me how to resolve this issue

allen96-hku (Mon, 02 Apr 2018 14:13:15 GMT):
Hi all I have a question regarding to the docker containers and CA. In BYFN tutorial, there is no CA container defined in the docker-compose file, so I assumed there is no CA set up in that tutorial. However, in FabCar tutorial, there is a CA containers. The CA container specified the ca certificate generated by cryptogen in the env.. But i cant see any setting for connecting the CA container with the peer containers or other containers. May I know what actually is the meaning in adding CA container into the docker-compose? Is there any change in the communication between nodes after adding it? Thank you very much

magicianx25 (Mon, 02 Apr 2018 15:35:28 GMT):
@wbhagan changed it without / but I have the same error

magicianx25 (Mon, 02 Apr 2018 15:35:58 GMT):
could it be that I have to set env variables?

magicianx25 (Mon, 02 Apr 2018 15:36:04 GMT):
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt

parkerlewis9 (Mon, 02 Apr 2018 16:16:58 GMT):
Has joined the channel.

sthavisomboon (Mon, 02 Apr 2018 17:55:47 GMT):
Has joined the channel.

sthavisomboon (Mon, 02 Apr 2018 17:56:31 GMT):
@scmchan I am wondering the same thing about the data persistence. Did you ever find out the answers?

sthavisomboon (Mon, 02 Apr 2018 17:57:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=feydntp9oaf2c78rY) @scmchan I am wondering the same thing about the data persistence. Did you ever find out the answers?

ceebo (Mon, 02 Apr 2018 17:58:13 GMT):
Hello, I was wondering how can you know chaincode policy through SDK

miahfost (Mon, 02 Apr 2018 18:09:44 GMT):
Has joined the channel.

douglasthiel (Mon, 02 Apr 2018 18:18:13 GMT):
When calling > channel.sendTransactionProposal(request); I'm getting the following error: > error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Stream removed at ~/finixDLT/node_modules/grpc/src/client.js:554:15 Environment: OS X 10.13.4 Docker 18.03.0-ce-mac60 (23751) Hyperledger Fabric 1.1.0 TLS is enabled Using a custom network based on the first-network example Background: - The same call with the same data works from the CLI - Now trying to use the Node.js SDK and the call is failing. - Enrollment and user Registration, ported from the fabcar example, reports success when calling the CAs running within Docker. Connecting to the CAs is done with HTTPS: The request object looks like this: > var request = { > chaincodeId: 'investorapp', > txId: tx_id, > fcn: 'createInvestor', > chainId: 'investorapplicationchannel', > args: ['1', 'Quinn', 'X', 'Tran'] > }; I've tried: > var peer = fabric_client.newPeer('grpc://localhost:7053'); > var peer = fabric_client.newPeer('grpc://localhost:7051'); Question: - Since TLS is enabled do I have to use 'grpcs://...' ?? When I do it says I need a .pem file but I'm not getting a connection error. - So is this really a request issue or a connection issue? Any pointers would help at this juncture.

fabianoa (Mon, 02 Apr 2018 19:55:03 GMT):
Has joined the channel.

kumaraswamypallukuri (Mon, 02 Apr 2018 20:27:17 GMT):
Has joined the channel.

rameshd (Mon, 02 Apr 2018 20:53:29 GMT):
Has joined the channel.

jimmyli (Mon, 02 Apr 2018 21:00:29 GMT):
Has joined the channel.

jimmyli (Mon, 02 Apr 2018 21:02:31 GMT):
Hello, just started learning about Fabric and I have some newbie questions. Hope this is the right place. Is it possible to remove an organization from a channel (i.e. revoke their permission to the ledger)? I couldn't seem to find any information on this topic.

yacovm (Mon, 02 Apr 2018 21:03:27 GMT):
yes

jimmyli (Mon, 02 Apr 2018 21:06:08 GMT):
@yacovm do you have a link to the docs that discusses this topic?

yacovm (Mon, 02 Apr 2018 21:07:31 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/config_update.html

jimmyli (Mon, 02 Apr 2018 21:17:03 GMT):
thanks!

kgamal (Tue, 03 Apr 2018 01:51:34 GMT):
Has joined the channel.

SashiKanth (Tue, 03 Apr 2018 05:14:48 GMT):
How to run a chaincode written in nodejs in chaincode-docker-devmode project given in fabric-samples ?? whats the command to run the chaincode ?? for GO the command is CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02 but what is it for node ??

gatakka (Tue, 03 Apr 2018 06:33:47 GMT):
Has joined the channel.

SashiKanth (Tue, 03 Apr 2018 06:58:46 GMT):
now getting an error when trying to run the chaincode written in node in dev-mode throw new Error('The "peer.address" program argument must be set to a legitimate value of :'); ??

SashiKanth (Tue, 03 Apr 2018 06:59:24 GMT):
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node chaincode_example02

SashiKanth (Tue, 03 Apr 2018 06:59:24 GMT):
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node chaincode_example02.js

SashiKanth (Tue, 03 Apr 2018 07:20:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XW7iKeSbJfaR5nAFy) CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node chaincode_example02.js --peer.address=peer:7052

mdoan (Tue, 03 Apr 2018 07:37:56 GMT):
Has joined the channel.

CorentinPacaud (Tue, 03 Apr 2018 07:45:48 GMT):
Hello, I have this problem : `Error: The orderers array has not been specified in the connection profile` here is my connection.json : ``` { "name": "odm-poc-network", "type": "hlfv1", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } }, "channels": { "composerchannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer1.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer0.org2.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer1.org2.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true } } } }, "orderers":{ "orderer.example.com": { "url": "grpcs://:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" }, "tlsCACerts": { "pem": "INSERT_ORDERER_CA_CERT" } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com", "peer1.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] }, "Org2": { "mspid": "Org2MSP", "peers": [ "peer0.org2.example.com", "peer1.org2.example.com" ], "certificateAuthorities": [ "ca.org2.example.com" ] } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://:7054", "caName": "ca-org1", "httpOptions": { "verify": false } }, "ca.org2.example.com": { "url": "https://:8054", "caName": "ca-org2", "httpOptions": { "verify": false } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://:7051", "eventUrl": "grpcs://:7053", "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com" }, "tlsCACerts": { "pem": "INSERT_ORG1_CA_CERT" } }, "peer1.org1.example.com": { "url": "grpcs://:8051", "eventUrl": "grpcs://:8053", "grpcOptions": { "ssl-target-name-override": "peer1.org1.example.com" }, "tlsCACerts": { "pem": "INSERT_ORG1_CA_CERT" } }, "peer0.org2.example.com": { "url": "grpcs://:9051", "eventUrl": "grpcs://:9053", "grpcOptions": { "ssl-target-name-override": "peer0.org2.example.com" }, "tlsCACerts": { "pem": "INSERT_ORG2_CA_CERT" } }, "peer1.org2.example.com": { "url": "grpcs://:10051", "eventUrl": "grpcs://:10053", "grpcOptions": { "ssl-target-name-override": "peer1.org2.example.com" }, "tlsCACerts": { "pem": "INSERT_ORG2_CA_CERT" } } } } ```

papegaaij (Tue, 03 Apr 2018 08:56:35 GMT):
Hi, I'm trying to build fabric from source as explained in http://hyperledger-fabric.readthedocs.io/en/release-1.1/dev-setup/build.html , but the build fails when running the tests: ```unit-tests_1 | unit-tests_1 | gotools/build/gopath/src/github.com/AlekSi/gocov-xml/gocov-xml.go:13:2: cannot find package "github.com/axw/gocov" in any of: unit-tests_1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/axw/gocov (vendor tree) unit-tests_1 | /opt/go/src/github.com/axw/gocov (from $GOROOT) unit-tests_1 | /opt/gopath/src/github.com/axw/gocov (from $GOPATH) unit-tests_1 | gotools/build/gopath/src/github.com/axw/gocov/gocov/test.go:33:2: cannot find package "github.com/axw/gocov/gocov/internal/testflag" in any of: unit-tests_1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/axw/gocov/gocov/internal/testflag (vendor tree) unit-tests_1 | /opt/go/src/github.com/axw/gocov/gocov/internal/testflag (from $GOROOT) unit-tests_1 | /opt/gopath/src/github.com/axw/gocov/gocov/internal/testflag (from $GOPATH) unit-tests_1 | gotools/build/gopath/src/github.com/axw/gocov/gocov/convert.go:34:2: cannot find package "github.com/axw/gocov/gocovutil" in any of: unit-tests_1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/axw/gocov/gocovutil (vendor tree) unit-tests_1 | /opt/go/src/github.com/axw/gocov/gocovutil (from $GOROOT) unit-tests_1 | /opt/gopath/src/github.com/axw/gocov/gocovutil (from $GOPATH) ```

papegaaij (Tue, 03 Apr 2018 08:58:28 GMT):
many more dependencies are missing, these are the first 3

Unni_1994 (Tue, 03 Apr 2018 09:27:40 GMT):
Hi all, I am trying to do Hyperledger Fabric on Multiple Hosts using this document "https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f " . I am able to do the same in two machines. Is it possible to Dynamicaly create and join peers to a new network.

CorentinPacaud (Tue, 03 Apr 2018 09:29:06 GMT):
@Unni_1994 Yes it's possible. But you have to find how by your own. Hyperledger doc is ....bad

Unni_1994 (Tue, 03 Apr 2018 09:29:51 GMT):
Any other document

MonnyClara (Tue, 03 Apr 2018 09:30:58 GMT):
@Unni_1994 As you like medium : https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217 ;) I never tried it by my self but I'm interested to know if this doc is working

MonnyClara (Tue, 03 Apr 2018 09:30:58 GMT):
@Unni_1994 As you like medium : https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217 ;) I never tried it by my self but I'm interested in knowing if this doc is working

CorentinPacaud (Tue, 03 Apr 2018 09:33:31 GMT):
you can try this one : https://blockchain-fabric.blogspot.fr/2017/09/underconstruction-setting-up-blockchain.html

CorentinPacaud (Tue, 03 Apr 2018 09:33:48 GMT):
And this one : https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/

Unni_1994 (Tue, 03 Apr 2018 09:35:36 GMT):
Thanks @CorentinPacaud and @MonnyClara

Unni_1994 (Tue, 03 Apr 2018 09:42:47 GMT):
I have created "myNetwork" . stated peer0 in one machine and peer1 in the second machine, suppose if I want add peer2 from third machine ,I need to edit crypto-config file, and want to do all the steps again...

pb (Tue, 03 Apr 2018 09:42:58 GMT):
Hi can anyone tell me how the node layer in intereacts with the chaincode in hyperledger fabric?

pb (Tue, 03 Apr 2018 09:42:58 GMT):
Hi can anyone tell me how the node layer in interacts with the chaincode in hyperledger fabric?

pb (Tue, 03 Apr 2018 09:42:58 GMT):
Hi can anyone tell me how the node layer interacts with the chaincode in hyperledger fabric?

Unni_1994 (Tue, 03 Apr 2018 09:48:57 GMT):
@MonnyClara I tried with the document , but once we execute the crypto-config.yaml ,ca-certificates and all will change. That what i understood ,

CorentinPacaud (Tue, 03 Apr 2018 09:49:55 GMT):
@Unni_1994 , yes, it change each time. I create a script that generate this and replace it on Yaml and other file with a "sed" command :)

DRSK (Tue, 03 Apr 2018 10:27:48 GMT):
Hi, I am working to build an application from scratch without composer. Can anyone please tell how can I specify the access control permissions in such a case?

BlockMcChainy (Tue, 03 Apr 2018 11:46:39 GMT):
Has joined the channel.

arvindjaiswal (Tue, 03 Apr 2018 13:51:05 GMT):
Perishable Shipping Network 1) "before all" hook 0 passing (1s) 1 failing 1) Perishable Shipping Network "before all" hook: Error: Failed to save connection profile defaultProfile at mkdirp.then.then.catch (node_modules\composer-common\lib\fsconnectionprofilestore.js:110:23) at at runMicrotasksCallback (internal/process/next_tick.js:121:5) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) can anyone help me to resolve it

patelan (Tue, 03 Apr 2018 14:08:44 GMT):
How to configure grpc.keepalive_time_ms for the peer in fabric#1.0.3 ? Can anyone please help on this issue.

CorentinPacaud (Tue, 03 Apr 2018 14:08:48 GMT):
Hello, When I try to import card, I have this error. Any idea ? `Error: The orderers array has not been specified in the connection profile Command failed`

CorentinPacaud (Tue, 03 Apr 2018 14:08:48 GMT):
Hello, When I try to import card, I have this error. Any idea ? `Error: The orderers array has not been specified in the connection profileCommand failed`

CorentinPacaud (Tue, 03 Apr 2018 14:36:41 GMT):
It seems that we need to update to Composer 0.19.0

wbhagan (Tue, 03 Apr 2018 15:06:49 GMT):
Hello @yacovm Can you assist me please. I made some certificate related mix-up when joining peers and anchor peers to channels. Now I need to correct and make use of the actual certificates when joining to a channel. An attempt to rejoin give the "ledger id already exists" error. Since I can neither remove peers from channels nor delete channels, what folders or files do I need to delete in order to recreate the channels?

Rumeel_Hussain (Tue, 03 Apr 2018 15:06:59 GMT):
Has joined the channel.

yacovm (Tue, 03 Apr 2018 15:07:20 GMT):
what mix-up?

yacovm (Tue, 03 Apr 2018 15:07:35 GMT):
oh i guess you provided the wrong genesis block?

yacovm (Tue, 03 Apr 2018 15:09:00 GMT):
anyway - that's a question to #fabric-ledger

yacovm (Tue, 03 Apr 2018 15:09:10 GMT):
because you have all kinds of indexes in the ledger directory

yacovm (Tue, 03 Apr 2018 15:09:21 GMT):
it can be tricky... ask there

Chandoo (Tue, 03 Apr 2018 15:12:04 GMT):
hi

Chandoo (Tue, 03 Apr 2018 15:12:29 GMT):
what is the purpose of the hyperledger/fabric-baseos

hzrari (Tue, 03 Apr 2018 15:16:24 GMT):
Hi all, is it possible to query (getState) an information from the ledger based on transctionId and not the Key !?

hzrari (Tue, 03 Apr 2018 15:18:50 GMT):
We need something similar to the getStateByRange, but ByTransactionId

rajqumar (Tue, 03 Apr 2018 15:26:00 GMT):
Has joined the channel.

rajqumar (Tue, 03 Apr 2018 15:26:42 GMT):
How does the ledger and CA authority works when user connects to hyperledger fabric using mobile application ?

wbhagan (Tue, 03 Apr 2018 15:29:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Hb3nZPrcMBa3mP8sf) @yacovm I think so. When I turned on debug I noticed it was complaining about the wrong certificates

wbhagan (Tue, 03 Apr 2018 15:30:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r4nSwr6Rjg9SCN2we) @yacovm Thanks. Will ask there

KuAmirul (Tue, 03 Apr 2018 15:48:51 GMT):
Has joined the channel.

sambhavdutt (Tue, 03 Apr 2018 18:25:23 GMT):
Has joined the channel.

AtulSatyajit (Tue, 03 Apr 2018 18:59:09 GMT):
Has joined the channel.

emraanzaki (Tue, 03 Apr 2018 20:17:09 GMT):
Has joined the channel.

cammachusa (Tue, 03 Apr 2018 20:23:47 GMT):
Has joined the channel.

cammachusa (Tue, 03 Apr 2018 20:24:06 GMT):
Hello everyone! In first-network example from https://github.com/hyperledger/fabric-samples, I couldn't find the network-config.yaml, but I can find it from "balance-transfer" network. So, I am wondering where/how I can find/generate the network-config.yaml file?

david636 (Tue, 03 Apr 2018 23:51:46 GMT):
Has joined the channel.

thanhhaibka (Wed, 04 Apr 2018 01:15:39 GMT):
Has joined the channel.

thanhhaibka (Wed, 04 Apr 2018 01:17:59 GMT):
Hi everyone. What data saved in CouchDB?. Does the database contains only index of transactions?

akula (Wed, 04 Apr 2018 01:33:45 GMT):
@thanhhaibka it contains the entire transaction along with assets and participants

thanhhaibka (Wed, 04 Apr 2018 01:42:23 GMT):
@akula , so, if i can edit the data in CouchDB, the transaction state will be modified, then blockchain is no meaning? Is that right?

akula (Wed, 04 Apr 2018 01:46:13 GMT):
yes, but you have to do it in every node that contains data, and don't forget that those information are encrypted, also, you have to modify the entire blockchain because the information in there are linked in blocks. So, it is a very hard task to accomplish

akula (Wed, 04 Apr 2018 01:48:10 GMT):
take a look at this: https://www.altoros.com/blog/how-hyperledger-fabric-delivers-security-to-enterprise-blockchain/

americanumbertwo (Wed, 04 Apr 2018 01:48:58 GMT):
Has joined the channel.

americanumbertwo (Wed, 04 Apr 2018 01:49:05 GMT):
hi all,how can i band the unique Tcert to 1 identity or the Ecert in fabric 1.0? and how to distinguish the identity from his Tcert in a transantion for anyone else? i can't find any useful message in the code.

thanhhaibka (Wed, 04 Apr 2018 01:49:13 GMT):
Thank you, @akula . It is enough information to me. :D

akula (Wed, 04 Apr 2018 01:49:32 GMT):
@thanhhaibka nice

ThangDC (Wed, 04 Apr 2018 02:10:58 GMT):
Has joined the channel.

Ammu (Wed, 04 Apr 2018 05:08:22 GMT):

up.png

Ammu (Wed, 04 Apr 2018 05:08:49 GMT):

up2.png

Ammu (Wed, 04 Apr 2018 05:31:06 GMT):
where i can learn docker which is related to hyperledger fabrics?

hrt031293 (Wed, 04 Apr 2018 05:50:07 GMT):
@Ammu Have you installed, grpc?

Ammu (Wed, 04 Apr 2018 05:53:34 GMT):
nope

hrt031293 (Wed, 04 Apr 2018 05:54:39 GMT):
install that, the problem might be because of that

SashiKanth (Wed, 04 Apr 2018 06:28:16 GMT):
I am following the steps to run the blockchain code from balance-transfer in the sample codes provided by hyperledger. https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer. Things work smoothly when I run it with golang but I get the following error when I run it with node.js. error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: error starting container: Failed to generate platform-specific docker build: Error returned from build: 254 "npm WARN example_cc@1.0.0 No repository field. is chaincodes written in nodeJs supported in release-1.1.0 ???

jojialex2 (Wed, 04 Apr 2018 07:14:56 GMT):
If my node is admin node and joined to all the channels in the network and same smart contract deployed to all the channel, this scenario , is admin can query all data from all channels from a single query.

jojialex2 (Wed, 04 Apr 2018 07:16:38 GMT):
My understanding is No, but is there any workaround ?

magicianx25 (Wed, 04 Apr 2018 07:36:57 GMT):
hello, I am trying to start my network but one of my peers is denied access, any1 knows how to resolve error below?

magicianx25 (Wed, 04 Apr 2018 07:37:08 GMT):

unsupported file3.png

andreamagagna (Wed, 04 Apr 2018 07:52:14 GMT):
Has left the channel.

chenjun-bj (Wed, 04 Apr 2018 08:08:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qksai2cX7QwAsorTj) @magicianx25 You could check orderer logs to see what's wrong

magicianx25 (Wed, 04 Apr 2018 08:35:53 GMT):
I enabled them but didn't show anything

Ammu (Wed, 04 Apr 2018 08:36:20 GMT):
what is the use of cli?

magicianx25 (Wed, 04 Apr 2018 08:36:27 GMT):
Isn't ut ORDERER_GENERAL_LOGLEVEL=debug?

magicianx25 (Wed, 04 Apr 2018 08:36:30 GMT):
it*

avkrishnan (Wed, 04 Apr 2018 08:53:28 GMT):
Has joined the channel.

CorentinPacaud (Wed, 04 Apr 2018 09:11:21 GMT):
Hello, I am looking for a Tuto for two channels network. I can't find one. Thx

lclclc (Wed, 04 Apr 2018 11:03:02 GMT):
A quick question about chaincode, can chaincode work like a normal network client which establishes network connection? As I remember the answer is "no", because this can harm read-write-set semantics. But I can't find proof about it. Anyone knows if the answer is "no"? If my understanding is correct, how chaincode is forbidden from being a normal network client?

ga25waq (Wed, 04 Apr 2018 11:53:26 GMT):
Hi! Is there any existing work that tries to classify Hyperledger Fabric as a CP or a AP system in case of a network partition, according to the CAP theorem?

Leisuretime (Wed, 04 Apr 2018 12:01:59 GMT):
Has joined the channel.

Kimmelim (Wed, 04 Apr 2018 12:03:44 GMT):
Has joined the channel.

lclclc (Wed, 04 Apr 2018 12:07:54 GMT):
Not very sure, but its consensus and gossip algorithm, I guess it is a CP system.

lclclc (Wed, 04 Apr 2018 12:08:39 GMT):
Any inconsistency across member (organization) can halt the world state from move forward.

lclclc (Wed, 04 Apr 2018 12:08:39 GMT):
Any inconsistency across member (organization) can halt the world state from moving forward.

lclclc (Wed, 04 Apr 2018 12:08:46 GMT):
Correct me if I am wrong.

brondera (Wed, 04 Apr 2018 12:11:51 GMT):
Has joined the channel.

ga25waq (Wed, 04 Apr 2018 12:14:20 GMT):
But what if the network is partitioned in such a way that all the endorsing peers needed for the endorsement of a transaction and more than 2/3 of the orderer nodes (assuming that the prototypical BFT ordering service implementation is used) are available in the first partition, and some committing peers reside in the second partition? I would guess that the ledger state in the first partition moves forward, and the ledger state in the second partition does not, leading to inconsistency (which can be fixed by resynchronization once the partitioning ends).

vishaldumbre (Wed, 04 Apr 2018 12:45:47 GMT):
Hello, While calling main go code, I am getting following error.

vishaldumbre (Wed, 04 Apr 2018 12:45:48 GMT):
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: chaincode exists ccn)

lclclc (Wed, 04 Apr 2018 12:48:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gbgmtDsn2F2use42L) @ga25waq This is like split-brain. But(this is important), next block can not be created, because one partition's simulation context is not the latest world state, the simulation will fail, client SDK can not collect enough endorsement, so consistency can not move forward anymore.

lclclc (Wed, 04 Apr 2018 12:48:25 GMT):
That's my understanding.

Ammu (Wed, 04 Apr 2018 12:50:33 GMT):

peers.png

MonnyClara (Wed, 04 Apr 2018 12:53:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=83KcaNuFyieHsmpu5) @Ammu Hello, Just add the bin folder (with peer inside) to your PATH

MonnyClara (Wed, 04 Apr 2018 12:53:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=83KcaNuFyieHsmpu5) @Ammu Hello, As you kindly ask, just add the bin folder (with peer inside) to your PATH

ga25waq (Wed, 04 Apr 2018 12:55:26 GMT):
@lclclc Okay, so it of course depends on how the network is partitioned. Because in my example, only the committing peers (that do not endorse anything) reside in the second partition. I would guess that the world state can move forward in the first partition then.

lclclc (Wed, 04 Apr 2018 12:58:55 GMT):
per my understanding, if there is any local inconsistency accross the member, the world state will stop, no matter how network is partitioned.

lclclc (Wed, 04 Apr 2018 12:58:55 GMT):
per my understanding, if there is any local inconsistency accross members, the world state will stop, no matter how network is partitioned.

SashiKanth (Wed, 04 Apr 2018 13:19:33 GMT):
npm ERR! enoent ENOENT: no such file or directory, rename '/chaincode/output/node_modules/grpc/node_modules/getpass/node_modules/assert-plus' -> '/chaincode/output/node_modules/grpc/node_modules/getpass/node_modules/.assert-plus.DELETE' npm ERR! enoent This is related to npm not being able to find a file.

NerlaJean-Louis (Wed, 04 Apr 2018 13:20:29 GMT):
Has joined the channel.

Ammu (Wed, 04 Apr 2018 13:45:01 GMT):
i am just doing BYFN, Create & "Join Channel " up to this step i have done, so when i shut down my system, from staring i need to do?? following this link http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel

CorentinPacaud (Wed, 04 Apr 2018 14:05:56 GMT):
Always me, I still have this error when `composer network install ...` ``` Could not load any root certificate ```

CorentinPacaud (Wed, 04 Apr 2018 14:06:04 GMT):
Any idea ?

akula (Wed, 04 Apr 2018 14:08:37 GMT):
@CorentinPacaud at the moment of the card creation did you mention the .pem with `-c` option?

akula (Wed, 04 Apr 2018 14:09:16 GMT):
something like that: `composer card create -p connection.json -u PeerAdmin -c ./card/Admin@mainorg.synapsetec.com.br-cert.pem -k ./card/c48fc915e0a14d6c3d13ea7e36c88a5cf6e5f0397153f10217174b11a7dc8a69_sk -f ./dist/PeerAdmin@XXX-network.card -r PeerAdmin -r ChannelAdmin`

akula (Wed, 04 Apr 2018 14:09:41 GMT):
assuming you are using composer v0.19.0

CorentinPacaud (Wed, 04 Apr 2018 14:11:24 GMT):
Here is my full cmd : `composer network install -a bna/odm-network.bna -c admin@odm-poc-network`

CorentinPacaud (Wed, 04 Apr 2018 14:11:46 GMT):
Ah sry, I take a look

CorentinPacaud (Wed, 04 Apr 2018 14:12:21 GMT):
`composer card create -p tmp/connectionOrg2.json -u admin -c "${CERT}" -k "composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/${PRIVATE_KEY}" -r PeerAdmin -r ChannelAdmin --file tmp/admin@odm-poc-network.card `

CorentinPacaud (Wed, 04 Apr 2018 14:12:21 GMT):
`composer card create -p tmp/connectionOrg2.json -u admin -c "${CERT}" -k "composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/${PRIVATE_KEY}" -r PeerAdmin -r ChannelAdmin --file tmp/admin@odm-poc-network.card`

akula (Wed, 04 Apr 2018 14:15:27 GMT):
have you looked into the peer logs for some error messages?

CorentinPacaud (Wed, 04 Apr 2018 14:17:56 GMT):
nope, sry

CorentinPacaud (Wed, 04 Apr 2018 14:20:08 GMT):
What should I find in the logs ?

akula (Wed, 04 Apr 2018 14:24:22 GMT):
if you started the network with startFabric.sh several containers were started as well, so, you may type `docker logf -f [container name]`

akula (Wed, 04 Apr 2018 14:24:22 GMT):
if you started the network with startFabric.sh several containers were started as well, so, you may type `docker logs -f [container name]`

akula (Wed, 04 Apr 2018 14:24:36 GMT):
to get container name: `docker ps`

CorentinPacaud (Wed, 04 Apr 2018 14:24:51 GMT):
Yes, I do, but there seems to be nothing wrong in the logs

akula (Wed, 04 Apr 2018 14:25:34 GMT):
have you join the peer in the channel?

CorentinPacaud (Wed, 04 Apr 2018 14:26:29 GMT):
Yes `docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composer1channel -f /etc/hyperledger/configtx/composer-channel1.tx`

CorentinPacaud (Wed, 04 Apr 2018 14:26:39 GMT):
`docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b composer1channel.block`

akula (Wed, 04 Apr 2018 14:29:10 GMT):
this `${CERT}` are coming from `/Admin@org1.example.com/msp`?

CorentinPacaud (Wed, 04 Apr 2018 14:29:48 GMT):
`CERT="${DIR}"/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem`

akula (Wed, 04 Apr 2018 14:35:35 GMT):
everything look fine... if I were you I would turn the network off, clean up the composer cards e do all again

akula (Wed, 04 Apr 2018 14:35:35 GMT):
everything looks fine... if I were you I would turn the network off, clean up the composer cards e do all again

CorentinPacaud (Wed, 04 Apr 2018 14:36:36 GMT):
In fact, my script clean everything, and then, rebuild everythinh (BNA, network, card, etc)

CorentinPacaud (Wed, 04 Apr 2018 14:36:39 GMT):
:joy:

CorentinPacaud (Wed, 04 Apr 2018 14:37:22 GMT):
For info, I try to create a network with 1 org, 2 peers, 2 channels.

akula (Wed, 04 Apr 2018 14:38:56 GMT):
the connection.json file has a section for channels. Have you check that to see if the names are the same you created for the network?

CorentinPacaud (Wed, 04 Apr 2018 14:44:00 GMT):
Yes, they're the same, I think the error is more like a certificate pb or something like this

akula (Wed, 04 Apr 2018 14:51:26 GMT):
@CorentinPacaud I cannot reproduce the error here, if I figured it out I will let you know

CorentinPacaud (Wed, 04 Apr 2018 14:52:41 GMT):
ok

ga25waq (Wed, 04 Apr 2018 16:48:25 GMT):
@lclclc Do you have any sources for this? Referring to my example, are the peers in the first partition able to effectively detect that there is a network partition and stop to update the world state?

kgamal (Wed, 04 Apr 2018 20:32:07 GMT):
Hello I am trying to install Marble demo for Hyperledger thee is a discussion thread regarding Failed to install chaincode on local network - error "This identity is not an admin" Many users has the same error as well as me Can you please help ? also,I am urgently want to do this demo to my team here is thee any link to a VM image that contains the marble demo ? it will be easier that doing the full setup Thanks Failed to install chaincode on local network - error "This identity is not an admin

ChristophTurk (Wed, 04 Apr 2018 22:25:00 GMT):
Has joined the channel.

ChristophTurk (Wed, 04 Apr 2018 22:29:54 GMT):
Hey guys, I'm new to this IM so I'm not sure if my question belongs here, if not, I'm sorry and will raise that question somewhere else... I'm trying to start my business network (from the tutorial) and receive following error: "tarting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 8 RESOURCE_EXHAUSTED: received trailing metadata size exceeds limit" The only hint I got from good old Google was, that it's probably the gRPC message size. But I don't know where to change the preset.

aatkddny (Wed, 04 Apr 2018 23:08:09 GMT):
i have a question about the intention behind eventing. are you supposed to assume that the events can occur on multiple peers (and so be constrained to idempotent updates triggered from throwing an event in cc) or are you supposed to restrict it to one peer and risk missing some of the events if it becomes unavailable? i'm guessing the former, but figured there was no harm in seeing if anyone else had 2c to throw in here.

nimeshpr (Thu, 05 Apr 2018 00:01:07 GMT):
Has joined the channel.

pb (Thu, 05 Apr 2018 04:07:31 GMT):
Hi Can anyone tell me how to add multiple channel in fabric ?

thanhhaibka (Thu, 05 Apr 2018 04:40:19 GMT):
i face with this error: Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' Continue (y/n)? y proceeding ... which: no cryptogen in (/home/app/workspaces/Build-Multi-Host-Network-Hyperledger-master/../bin:/home/app/workspaces/Build-Multi-Host-Network-Hyperledger-master:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/app/.nvm/versions/v8.10.0/bin:/home/app/.local/bin:/home/app/bin) cryptogen tool not found. exiting

thanhhaibka (Thu, 05 Apr 2018 04:40:38 GMT):
can anyone help me

crissi (Thu, 05 Apr 2018 05:06:51 GMT):
Any explanation is available regarding the balancetransfer application?

sampath06 (Thu, 05 Apr 2018 05:07:35 GMT):
Does fabric have a concept of light client where you can participate in the blockchain without the complete blockchain copied over?

pankajcheema (Thu, 05 Apr 2018 05:15:21 GMT):
Hi experts

pankajcheema (Thu, 05 Apr 2018 05:15:36 GMT):
Anyone here used sdk for a business application?

pankajcheema (Thu, 05 Apr 2018 05:15:58 GMT):
Can anyone tell what is the main purpose of using sdk?

pankajcheema (Thu, 05 Apr 2018 05:17:27 GMT):
@jyellick

pankajcheema (Thu, 05 Apr 2018 05:17:39 GMT):
@pb

pankajcheema (Thu, 05 Apr 2018 05:17:47 GMT):
@sampath06

Unni_1994 (Thu, 05 Apr 2018 05:18:58 GMT):
@thanhhaibka specify the path correctly

Unni_1994 (Thu, 05 Apr 2018 05:19:56 GMT):
where cryptogen tool is existing

hrt031293 (Thu, 05 Apr 2018 06:38:07 GMT):
Hello everyone, I am going through the "build your first network" tutorial, in that, there is a section of "environment variables" of this link ```http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#environment-variables``` I want to ask that, I have to mention all these variables, in all the peers, of "docker-compose-base.yaml" file, for connecting all the peers in my channel?? Or Is there any other way of connecting the peers to my channel??

thanhhaibka (Thu, 05 Apr 2018 06:51:16 GMT):
@Unni_1994 sorry for my late. i don't know what it is and where it is? can u explain?

Unni_1994 (Thu, 05 Apr 2018 06:57:07 GMT):
@thanhhaibka You have the Platform-specific Binaries , the set the path using

Unni_1994 (Thu, 05 Apr 2018 06:57:11 GMT):
export FABRIC_CFG_PATH=$PWD

thanhhaibka (Thu, 05 Apr 2018 06:59:46 GMT):
@Unni_1994 Im in project folder and run cm "export FABRIC_CFG_PATH=$PWD" but nothing is changed, is there another way?

Unni_1994 (Thu, 05 Apr 2018 07:00:35 GMT):
http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries

Unni_1994 (Thu, 05 Apr 2018 07:01:32 GMT):
in this document they metioned how to set the path .

thanhhaibka (Thu, 05 Apr 2018 07:04:37 GMT):
@Unni_1994 so many thanks. I'll try this.

ravipatisivaramaprasad (Thu, 05 Apr 2018 07:06:17 GMT):
Has joined the channel.

ravipatisivaramaprasad (Thu, 05 Apr 2018 07:06:40 GMT):
Hi I have a general question. Hyperledger-Indy is for identity. Hyperledger-fabric has its own identity mechanism. But Can we integrate Hyperledger-indy with hyperledger fabric for identity purpose? If yes, in which case we can integrate it.

magicianx25 (Thu, 05 Apr 2018 07:29:08 GMT):
Hello,i just wanted to ask about the first tutorial in fabric samples. When we go through the tutorial do we provide the commands manually that ./byfn.sh -m up does? and if so where can i find the file byfn.sh so i can examine it?

RadW2020 (Thu, 05 Apr 2018 08:09:54 GMT):
Has joined the channel.

CorentinPacaud (Thu, 05 Apr 2018 08:22:58 GMT):
@magicianx25 the byfn.sh is in the project "first-network".

hrt031293 (Thu, 05 Apr 2018 08:26:04 GMT):
```manifest for hyperledger/fabric-orderer:latest not found``` anyone know about this error?

CorentinPacaud (Thu, 05 Apr 2018 08:34:37 GMT):
Hello, Can anyone help me with this ? https://stackoverflow.com/questions/49667690/ssl-transport-security-cc599-could-not-load-any-root-certificate

Unni_1994 (Thu, 05 Apr 2018 08:35:35 GMT):
@hrt031293 specify the version

crissi (Thu, 05 Apr 2018 08:40:10 GMT):
Can you please help me to setup an application similar to balancetransfer?

Unni_1994 (Thu, 05 Apr 2018 08:50:35 GMT):
@hrt031293 image: hyperledger/fabric-orderer:x86_64-1.0.0

magicianx25 (Thu, 05 Apr 2018 08:50:56 GMT):
@CorentinPacaud can i open it with visual studio and examine it?

DRSK (Thu, 05 Apr 2018 08:52:33 GMT):
Can anyone please help me to add a new user other than the initially registered admin and user in the fabric samples given?

CorentinPacaud (Thu, 05 Apr 2018 08:53:23 GMT):
@magicianx25 Yes you can, just clone the project wit git

CorentinPacaud (Thu, 05 Apr 2018 08:53:23 GMT):
@magicianx25 Yes you can, just clone the project with git

MonnyClara (Thu, 05 Apr 2018 08:54:16 GMT):
Hello, I'm strugling understanding the Dockerfile of Fabric peer (`fabric/images/peer/Dockerfile.in` on gihthub). I would like to now what is this folder this is copied into the docker image ? ``` FROM _BASE_NS_/fabric-baseos:_BASE_TAG_ ENV FABRIC_CFG_PATH /etc/hyperledger/fabric RUN mkdir -p /var/hyperledger/production $FABRIC_CFG_PATH *COPY payload/peer /usr/local/bin* ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH CMD ["peer","node","start"] ```

MonnyClara (Thu, 05 Apr 2018 08:54:16 GMT):
Hello, I'm strugling understanding the Dockerfile of Fabric peer (`fabric/images/peer/Dockerfile.in` on gihthub). I would like to now what is this folder this is copied into the docker image ? ``` FROM _BASE_NS_/fabric-baseos:_BASE_TAG_ ENV FABRIC_CFG_PATH /etc/hyperledger/fabric RUN mkdir -p /var/hyperledger/production $FABRIC_CFG_PATH COPY payload/peer /usr/local/bin <----------- this folder payload/peer ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH CMD ["peer","node","start"] ```

MonnyClara (Thu, 05 Apr 2018 08:54:16 GMT):
Hello, I'm strugling understanding the Dockerfile of Fabric peer (`fabric/images/peer/Dockerfile.in` on gihthub). I would like to now what is this folder this is copied into the docker image ? ```FROM _BASE_NS_/fabric-baseos:_BASE_TAG_ ENV FABRIC_CFG_PATH /etc/hyperledger/fabric RUN mkdir -p /var/hyperledger/production $FABRIC_CFG_PATH COPY payload/peer /usr/local/bin <----------- this folder payload/peer ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH CMD ["peer","node","start"] ```

magicianx25 (Thu, 05 Apr 2018 08:54:42 GMT):
@CorentinPacaud ok cheers

MisterJava (Thu, 05 Apr 2018 08:55:53 GMT):
Hey folks, I'm still confused regarding PBFT in fabric. On the website of IBM https://www.ibm.com/blockchain/de-de/hyperledger.html it is written that PBFT is used for consensus. However, in the documentation it is written the following: "We’ll learn more about the Hyperledger Fabric consensus mechanisms, which currently include SOLO, Kafka, and will soon extend to SBFT (Simplified Byzantine Fault Tolerance), in another document." What is now right?

Unni_1994 (Thu, 05 Apr 2018 08:59:58 GMT):
@DRSK you have to edit the crypto-config file, you can add orgnization and also you have to specify the count .,Then run the command cryptogen generate --config=./crypto-config.yaml once you created the config file, you have to create the gensis block,channel ,mspanchors, and also you have to edit the docker compose.yaml , with newly generated certificates

Unni_1994 (Thu, 05 Apr 2018 09:00:32 GMT):

output.txt

MonnyClara (Thu, 05 Apr 2018 09:02:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=srizsY7QEmw2KkXdW) @Unni_1994 You have to do it on each peer ?

DRSK (Thu, 05 Apr 2018 09:03:58 GMT):
@Unni_1994 Thanks a lot. But I am doubtful about how a second user ie user2 could be added once the fabric network is up and running?

kiattchaip (Thu, 05 Apr 2018 09:14:34 GMT):
@DRSK You can use the fabric-ca. http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#fabric-ca-client

shailaja.mahara (Thu, 05 Apr 2018 09:15:06 GMT):
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.rawcubeslandregistry.com:7051

shailaja.mahara (Thu, 05 Apr 2018 09:16:08 GMT):
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:7051 could anybody tell me what is the purpose of this line in the docker-compose-base.yaml file

shailaja.mahara (Thu, 05 Apr 2018 09:16:17 GMT):
the 2nd one

username343 (Thu, 05 Apr 2018 09:34:38 GMT):
how does the admin of a peer signing an endorsement work in hyperledger fabric?

attester (Thu, 05 Apr 2018 09:53:39 GMT):
Has joined the channel.

username343 (Thu, 05 Apr 2018 10:21:35 GMT):
Is it possible to invoke a chaincode installed on remote peer? I know that we can invoke a chaincode installed locally, from another chaincode, are there any plans to implement the feature which lets us invoke the chaincode installed on remote peers from a local chaincode?

thanhhaibka (Thu, 05 Apr 2018 10:22:23 GMT):
When i using sdk to getChannel, the error occur: 2018-04-05 10:09:04.594 UTC [cauthdsl] func2 -> ERRO b8b Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 0a074f7267314d535012dd052d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d49494238444343415a6567417749424167495555673533763846615172596c6877477055516151557758397a694977436759494b6f5a497a6a3045417749770a637a454c4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e680a62694247636d467559326c7a593238784754415842674e5642416f54454739795a7a45755a586868625842735a53356a623230784844416142674e5642414d540a45324e684c6d39795a7a45755a586868625842735a53356a623230774868634e4d5467774d7a49794d5449774f5441775768634e4d546b774d7a49794d5449770a4f544177576a41514d5134774441594456515144457756685a473170626a425a4d424d4742797147534d34394167454743437147534d343941774548413049410a424c324568333644675051697a46356d61454465363166325534574e445547596e634f304f717049646d7a57596c754b6f4344356f42366c614370503241716a0a5271784358635461377477456e506d487951564d4f6f656a624442714d41344741315564447745422f775145417749486744414d42674e5648524d42416638450a416a41414d42304741315564446751574242543155576d4d4b46576e774c36527868364f476e4137792f5752717a417242674e5648534d454a4441696743415a0a713257727577534166613053354d437071715a6b6e6e43476a6a71394168656a49746965522b476d726a414b42676771686b6a4f5051514441674e48414442450a41694257704d43664b6b4a2b7144712b7259685857525068477342327934315265447163527968354f69766963414967476130553146545264463247657177730a73634e3767735a6a79426f376761656a4f3363356f4b667275504d3d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2018-04-05 10:09:04.594 UTC [cauthdsl] func2 -> DEBU b8c 0xc4201220e8 principal evaluation fails 2018-04-05 10:09:04.594 UTC [cauthdsl] func1 -> DEBU b8d 0xc4201220e8 gate 1522922944594410929 evaluation fails 2018-04-05 10:09:04.594 UTC [orderer/common/deliver] Handle -> WARN b8e [channel: mychannel] Received unauthorized deliver request 2018-04-05 10:09:04.595 UTC [orderer/main] func1 -> DEBU b8f Closing Deliver stream 2018-04-05 10:09:04.950 UTC [grpc] Printf -> DEBU b90 transport: http2Server.HandleStreams failed to read frame: read tcp 172.19.0.4:7050->10.61.138.100:61340: read: connection reset by peer Can anyone help me?

thanhhaibka (Thu, 05 Apr 2018 10:23:15 GMT):
im following the example at https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

aalok05 (Thu, 05 Apr 2018 10:25:30 GMT):
Has joined the channel.

DRSK (Thu, 05 Apr 2018 10:52:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pWQ2kf4zfToNrRDy3) @kiattchaip Thank you.. Shall go through the document.

kai_den (Thu, 05 Apr 2018 11:42:03 GMT):
Has joined the channel.

kai_den (Thu, 05 Apr 2018 11:46:22 GMT):
Hi everyone! Please tell me how to deploy locally developed chaincode in the docker container. Version is v1.0

christian.blumer (Thu, 05 Apr 2018 11:48:12 GMT):
Has joined the channel.

CorentinPacaud (Thu, 05 Apr 2018 12:11:52 GMT):
Is there a sample code with multichannel network ? I can't any info on the Internet.

adeusuf (Thu, 05 Apr 2018 12:28:15 GMT):
Has joined the channel.

CorentinPacaud (Thu, 05 Apr 2018 12:42:54 GMT):
Nobody has done this ?

aatkddny (Thu, 05 Apr 2018 12:49:39 GMT):
take the sample for one channel. change the name. everywhere. run the steps to create a channel again, but with the new name.

CorentinPacaud (Thu, 05 Apr 2018 12:52:02 GMT):
hmm, I will try

kpkrish (Thu, 05 Apr 2018 12:57:53 GMT):
Has joined the channel.

sai_ganesh (Thu, 05 Apr 2018 13:06:51 GMT):
Hi all. I am learning about kafka based ordering service in fabric. Could you tell me what's the difference between an ordering service client and an ordering service node? What is the relationship between the ordering service client and the client SDK?

SashiKanth (Thu, 05 Apr 2018 13:50:16 GMT):
Does realese-1.1.0 work properly with chaincodes written in node ??

SashiKanth (Thu, 05 Apr 2018 14:06:52 GMT):
OR can i instantiate chainccodes written in nodejs along with starting a COUCHDB

SashiKanth (Thu, 05 Apr 2018 14:06:54 GMT):
??

lislunev (Thu, 05 Apr 2018 14:23:46 GMT):
Hello, if I want to use two channels in one network I can use one ordere peer or I must use two?

JhilamBera (Thu, 05 Apr 2018 14:31:36 GMT):
Has joined the channel.

JhilamBera (Thu, 05 Apr 2018 14:31:42 GMT):
Hi.. I am trying to set up "Build your First Network".. Whenever I am trying to up the network using ./byfn.sh -m up command, I am getting "ERROR !!! FAILED to execute End-2-End Scenario" error message. the error msg is: Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

JhilamBera (Thu, 05 Apr 2018 14:35:49 GMT):
Never mind. solved it

MonnyClara (Thu, 05 Apr 2018 14:36:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QvSCnjmW8bfmMMxfJ) @JhilamBera How ? :/

JhilamBera (Thu, 05 Apr 2018 14:36:55 GMT):
I forget to do ./byfn.sh -m down .. it was running from the last time

MonnyClara (Thu, 05 Apr 2018 14:37:25 GMT):
Thanks !

JhilamBera (Thu, 05 Apr 2018 14:38:09 GMT):
@MonnyClara welcome!

htyagi90 (Thu, 05 Apr 2018 14:48:56 GMT):
Has joined the channel.

cbishop (Thu, 05 Apr 2018 16:02:04 GMT):
Has joined the channel.

cbishop (Thu, 05 Apr 2018 16:02:36 GMT):
We are making some architectural choices for our app. Composer seems easier to use and implement than coding directly in Fabric chaincode. My question is, what do you give up? For which use cases would Composer impose limits that make it best to code directly in Go? A related question is, how exactly does Composer translate all it's elements to the Fabric runtime. Is this documented anywhere?

pankajcheema (Thu, 05 Apr 2018 16:29:12 GMT):
Hi All........

pankajcheema (Thu, 05 Apr 2018 16:29:59 GMT):
Anyone knows where does the enrollmentID and enrollmentSecret stores when we create our own network and use the sdk to specify both variables ```return fabric_ca_client.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' })```

pankajcheema (Thu, 05 Apr 2018 16:30:37 GMT):
If I use wrong `enrollmentID` and `enrollmentSecret` then ca rejects the request for enrollment

pankajcheema (Thu, 05 Apr 2018 16:31:09 GMT):
logs of CA ```ca.example.com | 2018/04/05 16:25:04 [DEBUG] Received request for /api/v1/enroll ca.example.com | 2018/04/05 16:25:04 [DEBUG] ca.Config: &{Version:1.1.0 Cfg:{Identities:{AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name:ca.example.com Keyfile:/etc/hyperledger/fabric-ca-server-config/2e2223dd901510904ca79e2b436ed98841644be19af8023caade89cb6447c6a0_sk Certfile:/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem Chainfile:/etc/hyperledger/fabric-ca-server/ca-chain.pem} Signing:0xc4202ebc90 CSR:{CN:ca.org1.example.com Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[e44204a437c3 localhost] KeyRequest: CA:0xc4202b6620 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.Revoker:1 hf.IntermediateCA:1 hf.GenCRL:1 hf.Registrar.Attributes:* hf.AffiliationMgr:1 hf.Registrar.Roles:peer,orderer,client,user hf.Registrar.DelegateRoles:peer,orderer,client,user] }]} Affiliations:map[org2:[department1] org1:[department1 department2]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:/etc/hyperledger/fabric-ca-server/fabric-ca-server.db TLS:{false [] { }} } CSP:0xc4202cb140 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** Profile: Label: CSR: CAName: AttrReqs:[] }} CRL:{Expiry:24h0m0s}} ca.example.com | 2018/04/05 16:25:04 [DEBUG] DB: Getting identity admin1 ca.example.com | 2018/04/05 16:25:04 [INFO] 172.18.0.1:48966 POST /api/v1/enroll 401 23 "Failed to get user: : scode: 404, code: 63, msg: Failed to get User: sql: no rows in result set"```

MegganDo (Thu, 05 Apr 2018 16:43:05 GMT):
Has joined the channel.

MegganDo (Thu, 05 Apr 2018 16:43:12 GMT):
docker

pankajcheema (Thu, 05 Apr 2018 17:56:23 GMT):
If I use any afflilation other than `org1.department` `CA` throws an error ``` ca.example.com | 2018/04/05 17:54:10 [DEBUG] Received request for /api/v1/register ca.example.com | 2018/04/05 17:54:10 [DEBUG] Checking for revocation/expiration of certificate owned by 'admin' ca.example.com | 2018/04/05 17:54:10 [DEBUG] DB: Get certificate by serial (4676355c4b2bc7c3194e0eaa76e654a7008b1f82) and aki (2e2223dd901510904ca79e2b436ed98841644be19af8023caade89cb6447c6a0) ca.example.com | 2018/04/05 17:54:10 [DEBUG] Successful token authentication of 'admin' ca.example.com | 2018/04/05 17:54:10 [DEBUG] Received registration request from admin: { Name:user4 Type:client Secret:**** MaxEnrollments:1 Affiliation:org1.custom Attributes:[] CAName: } ca.example.com | 2018/04/05 17:54:10 [DEBUG] DB: Getting identity admin ca.example.com | 2018/04/05 17:54:10 [DEBUG] canRegister - Check to see if user 'admin' can register ca.example.com | 2018/04/05 17:54:10 [DEBUG] Checking to see if caller 'admin' is a registrar ca.example.com | 2018/04/05 17:54:10 [DEBUG] Validate Affiliation ca.example.com | 2018/04/05 17:54:10 [DEBUG] Checking to see if affiliation 'org1.custom' contains caller's affiliation '' ca.example.com | 2018/04/05 17:54:10 [DEBUG] Caller has root affiliation ca.example.com | 2018/04/05 17:54:10 [DEBUG] Validate ID ca.example.com | 2018/04/05 17:54:10 [DEBUG] Validating affiliation: org1.custom ca.example.com | 2018/04/05 17:54:10 [DEBUG] DB: Get affiliation org1.custom ca.example.com | 2018/04/05 17:54:10 [DEBUG] Registration of 'user4' failed: Registration of 'user4' to validate: Failed getting affiliation 'org1.custom': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set ca.example.com | 2018/04/05 17:54:10 [INFO] 172.18.0.1:49518 POST /api/v1/register 404 63 "Failed to get Affiliation: sql: no rows in result set"

scmchan (Thu, 05 Apr 2018 20:05:31 GMT):
@sthavisomboon Yes, I figured it out. You have to mount /opt/couchdb/data for the couchdb container, /var/hyperledger for the orderer and /var/hyperledger/production for the peers. Do note, you can override the default data dirs for these containers in the initial configuration so it may differ in your case. This will allow you to persist the data for the ledger and state db. With regards to restoring the chaincode docker container, you actually don't have to make any special calls or anything. If you fire off a chaincode query, the peer will rebuild the corresponding chaincode container automatically.

MichalRybarczyk (Thu, 05 Apr 2018 21:24:36 GMT):
Has joined the channel.

sanity404 (Thu, 05 Apr 2018 21:26:20 GMT):
Has joined the channel.

varinder (Thu, 05 Apr 2018 22:34:49 GMT):
Has joined the channel.

akula (Thu, 05 Apr 2018 23:12:17 GMT):
@danastos :point_up: :point_up:

dainliff (Thu, 05 Apr 2018 23:21:58 GMT):
Hello, I was wondering whether Fabric will support chaincode calling chaincode installed on a different peer. E.g. chaincode on Peer A, calling chaincode on Peer B

yacovm (Thu, 05 Apr 2018 23:29:51 GMT):
not anytime soon @dainliff

yacovm (Thu, 05 Apr 2018 23:30:06 GMT):
why would you need such a thing?

yacovm (Thu, 05 Apr 2018 23:30:13 GMT):
you can just use the client to call to that remote peer

dainliff (Thu, 05 Apr 2018 23:38:05 GMT):
@yacovm We're looking into some partitioning work, and have similar data split across multiple channels across multiple peers. We now wish to have a mixed channel of sorts that pulls data from the other channels. The issue I can see with using the client is that there would be a lack of trust that the data is accurate

yacovm (Thu, 05 Apr 2018 23:39:08 GMT):
oh well you can have all the peers in a that channel

yacovm (Thu, 05 Apr 2018 23:39:14 GMT):
and do cross channel reads

yacovm (Thu, 05 Apr 2018 23:39:19 GMT):
and writes to the output channel

yacovm (Thu, 05 Apr 2018 23:39:32 GMT):
and just invoke those transactions on peers in the small channels

dainliff (Thu, 05 Apr 2018 23:58:59 GMT):
Yep that's definitely a solution. We are attempting to minimise the workload each peer has to handle though, so the validity of that solution would depend on how many transactions that mixed channel needs to handle

thanhhaibka (Fri, 06 Apr 2018 02:05:19 GMT):
How to config for blockchain-explorer to monitor fabric from docker run? Pls help me.

ravipatisivaramaprasad (Fri, 06 Apr 2018 05:08:33 GMT):
Hi all. Can Hyperledger fabric integrate with any other blockchain technologies?

ravipatisivaramaprasad (Fri, 06 Apr 2018 05:22:22 GMT):
And Is there any limit to how many channels that we can bring in fabric?

SashiKanth (Fri, 06 Apr 2018 05:28:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lhf6my7oga5LE5vjH) @yacovm

SashiKanth (Fri, 06 Apr 2018 05:29:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ps5vTfdCF7u8QvyTh) @yacovm

honeyjills (Fri, 06 Apr 2018 05:33:49 GMT):
Has joined the channel.

honeyjills (Fri, 06 Apr 2018 05:35:03 GMT):
Hi , i am trying to build my first network However , when i try this : ./byfn.sh -m up , Its showing error in End - to end testing . Any help?

username343 (Fri, 06 Apr 2018 06:01:09 GMT):
Hey @yacovm could you please tell me how does the admin of an organization sign the endorsement? Does the admin of the manually interact with the network and sign the transaction explicitly or is it done programmatically?

username343 (Fri, 06 Apr 2018 06:02:15 GMT):
When talking about member i.e. no admin users, are we saying that the endorsement is signed by the peer's certificate or by the non-admin users certificates?

username343 (Fri, 06 Apr 2018 07:40:36 GMT):
is the feature shim.GetPrivateData() and shim.PutPrivateData() available in hyperledger fabric v1.1?

username343 (Fri, 06 Apr 2018 07:40:36 GMT):
is the feature GetPrivateData() and PutPrivateData() available in hyperledger fabric v1.1?

username343 (Fri, 06 Apr 2018 07:42:19 GMT):
I can see these two functions in mockstub in documentation at https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#pkg-index but these functions are not listed under ChaincodeStub

yacovm (Fri, 06 Apr 2018 08:35:01 GMT):
the admin isn't supposed to sign endorsements

yacovm (Fri, 06 Apr 2018 08:35:04 GMT):
it signs config updates

AshishMishra 1 (Fri, 06 Apr 2018 10:07:05 GMT):
Guys, one my peer crashed, while I was doing a mild load test. 2018-04-06 09:45:37.662 UTC [deliveryClient] StopDeliverForChannel -> DEBU 1ea19 This peer will stop pass blocks from orderer service to other peers panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xaeb2db] `goroutine 121267 [running]: github.com/hyperledger/fabric/core/deliverservice.(*deliverServiceImpl).StartDeliverForChannel.func1(0xc4357724e0, 0xc4256a4ba0, 0x8, 0xc42434a3a0) /opt/gopath/src/github.com/hyperledger/fabric/core/deliverservice/deliveryclient.go:162 +0x5b created by github.com/hyperledger/fabric/core/deliverservice.(*deliverServiceImpl).StartDeliverForChannel /opt/gopath/src/github.com/hyperledger/fabric/core/deliverservice/deliveryclient.go:161 +0x672` Is this a memory leak issue?

nawaz_552 (Fri, 06 Apr 2018 10:24:37 GMT):
Has joined the channel.

nikhil7 (Fri, 06 Apr 2018 10:51:13 GMT):
Has joined the channel.

yacovm (Fri, 06 Apr 2018 10:57:28 GMT):
@AshishMishra 1 what version are you running?

shailaja.mahara (Fri, 06 Apr 2018 11:01:01 GMT):
can someone clarify if the cli container is running against the peer0Org1 in the readthedocs?

shailaja.mahara (Fri, 06 Apr 2018 11:01:25 GMT):
or every anchor peer that has joined the channel?

shailaja.mahara (Fri, 06 Apr 2018 11:01:59 GMT):
and if it against a specific peer, how can I change it to, say, peer0Org2?

shailaja.mahara (Fri, 06 Apr 2018 11:02:17 GMT):
Really hoping someone helps out here. Thanks in advance!

yacovm (Fri, 06 Apr 2018 11:11:44 GMT):
@AshishMishra\ 1

mig38m (Fri, 06 Apr 2018 11:36:29 GMT):
Has joined the channel.

yacovm (Fri, 06 Apr 2018 11:40:38 GMT):
@AshishMishra 1 - nice catch. It's not a memory leak but a rare bug... I uploaded a fix https://gerrit.hyperledger.org/r/#/c/20239/

akula (Fri, 06 Apr 2018 12:00:22 GMT):
@ravipatisivaramaprasad As we can rely on rest apis server generated from the blockchain, one is able to get integrated with any kind of service, including another blockchain. About channels, I think it has no limits

ravipatisivaramaprasad (Fri, 06 Apr 2018 12:32:31 GMT):
@akula Thank you.

CorentinPacaud (Fri, 06 Apr 2018 12:51:03 GMT):
Hello, When I do a composer install, I have this error `error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number`. Can I do something ?

Ed.Curran (Fri, 06 Apr 2018 13:33:03 GMT):
Does anyone know whats stops an endorser from stealing certificates and using them to impersonate users? As I understand it a user makes a transaction proposal which contains their certificate, the proposal is sent to endorsing peers who check the certificate is a valid identity / matches their membership policy. At this point the endorser could take the certificate. Normally certificates aren't useful to an attacker without the corresponding private key, however I can't see how hyperledger uses the private key to stop an attacker performing a simple identity impersonation using only a stolen certificate.

CorentinPacaud (Fri, 06 Apr 2018 13:45:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k57pNQn89M9MjwShm) It seems to be a grpc problem.

alexaguileravz93 (Fri, 06 Apr 2018 15:36:05 GMT):
Has joined the channel.

alexaguileravz93 (Fri, 06 Apr 2018 15:36:14 GMT):
Hi All, I have been having an issue on calling chaincode on one of my networks running on a cloud box from a java SDK on my local machine, the error seems to be a TLS connection issue. On my Java side the error I am seeing is:``` 04/06/18 10:25:02 L[E]C[org.hyperledger.fabric.sdk.Channel] Channel mychannel sendDeliver failed on orderer orderer1. Reason: UNAVAILABLE: Channel closed while performing protocol negotiation ``` on the orderer side i am seeing this:``` 2018-04-06 14:12:56.626 UTC [grpc] Printf -> DEBU b8d grpc: Server.Serve failed to complete security handshake from "148.132.123.187:60848": remote error: tls: internal error 2018-04-06 14:12:56.725 UTC [grpc] Printf -> DEBU b8e grpc: Server.Serve failed to complete security handshake from "148.132.123.187:60849": remote error: tls: internal error ``` hoping someone can help me get some insight into why this error is happening, I have tried using different certs from the server which are working on the server, but when connecting to my server from local they don't seem to work

Chandoo (Fri, 06 Apr 2018 15:46:10 GMT):
hi

Chandoo (Fri, 06 Apr 2018 15:47:03 GMT):
does the fabric has one couchdb or a seperate couchdb for each and every channel ledger?

MarvinBechtold (Fri, 06 Apr 2018 16:43:40 GMT):
Has joined the channel.

alexaguileravz93 (Fri, 06 Apr 2018 18:43:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E36PCPYbD8QGjTXWW) I posted more in depth on SO if that is a better place to discuss this: https://stackoverflow.com/questions/49698710/hyperledger-fabric-1-1-tls-grpc-issue

yacovm (Fri, 06 Apr 2018 19:40:44 GMT):
@alexaguileravz93 i commented on the SO issue

kkado (Sat, 07 Apr 2018 04:13:13 GMT):
Has joined the channel.

zhangqwesc (Sat, 07 Apr 2018 12:23:37 GMT):
Has joined the channel.

hmahidhara (Sat, 07 Apr 2018 15:36:03 GMT):
Has joined the channel.

hmahidhara (Sat, 07 Apr 2018 15:36:15 GMT):
I have a Java SDK based client for the Hyperledger fabric and am able to connect and send transaction proposal requests, create entries in the ledger and query the ledger. I am struggling with registering and listening to BLOCK and CHAINCODE events. I want to start a separate thread on the client that is dedicated to listening and processing these events. What I found so far: HFClient client = HFClient.createNewInstance(); Channel channel = client.newChannel("channel01"); EventHub eventHub = client.newEventHub("eh01", "grpc://abc.xyz.us:7053"); channel.addEventHub(eventHub); Beyond this I am lost. Can someone please post a sample of how to do this?

aatkddny (Sat, 07 Apr 2018 15:49:03 GMT):
you might want to post this onto the fabric-sdk-java channel

aatkddny (Sat, 07 Apr 2018 15:51:07 GMT):
there's an example in the End2End tests iirc. The basic idea is you implement ` ChaincodeEventListener ` in a class.

aatkddny (Sat, 07 Apr 2018 15:51:50 GMT):
Then register it with the channel - sorta like this: ``` Pattern id = Pattern.compile("^" + chaincode + ".*"); Pattern evt = Pattern.compile(Pattern.quote(event)); String handle = c.registerChaincodeEventListener(id, evt, listener); listener.setHandle(handle); listener.setChannel(c.getName()); ```

aatkddny (Sat, 07 Apr 2018 15:52:39 GMT):
chaincode is the chaincode name and event is the name of the event you want to trap.

aatkddny (Sat, 07 Apr 2018 15:53:13 GMT):
listener is your chaincodeeventlistener

hmahidhara (Sat, 07 Apr 2018 16:25:16 GMT):
Thanks for the pointers @aatkddny. Will post it in fabric-sdk-java channel. Can you post the link to End2End tests iirc example please?

aatkddny (Sat, 07 Apr 2018 16:51:11 GMT):
it's in the sdk. in the tests.

wjbraddick (Sat, 07 Apr 2018 17:49:16 GMT):
Has joined the channel.

OmarKayali (Sat, 07 Apr 2018 18:08:14 GMT):
Is it possible for a participant to update an asset registry entry if he doesn't have read access to it. He has only create, update, and delete permissions.

OmarKayali (Sat, 07 Apr 2018 18:08:16 GMT):
I was wondering because the composer is prompting the following error (knowing that 'Req1' exists): Error: Object with ID 'Req1' in collection with ID 'Asset:org.acme.sample.UsersValues' does not exist When I add read access everything works good.

akula (Sat, 07 Apr 2018 18:22:09 GMT):
@OmarKayali to update an asset, you must load it from the database firstly, so, you have to have read access.

OmarKayali (Sat, 07 Apr 2018 18:23:11 GMT):
@akula then it is meaningless to have update or delete access without read access?

akula (Sat, 07 Apr 2018 18:26:24 GMT):
consider that transaction: ` transaction BeginAssetTransfer { --> Asset rmAsset --> Participant newKeeper } ` the `rmAsset` are injected but only if read access is available

akula (Sat, 07 Apr 2018 18:26:24 GMT):
consider this transaction: ` transaction BeginAssetTransfer { --> Asset rmAsset --> Participant newKeeper } ` the `rmAsset` are injected but only if read access is available

SomnathMukherjee (Sat, 07 Apr 2018 18:27:22 GMT):
Has joined the channel.

SmartContract2018 (Sat, 07 Apr 2018 19:52:13 GMT):
Has joined the channel.

alanhamid (Sat, 07 Apr 2018 21:55:09 GMT):
Has joined the channel.

Achuth (Sat, 07 Apr 2018 21:56:06 GMT):
Has joined the channel.

Achuth (Sat, 07 Apr 2018 21:56:08 GMT):
I have 2 organization say org1 and org2. I would like to create a channel which gives full access to org1 and read only to org2. Can some one tell me on how.

alanhamid (Sat, 07 Apr 2018 21:56:57 GMT):
Anyone knows how to deploy a .bna file to IBM Blockchain Cloud Starter Plan.

alanhamid (Sat, 07 Apr 2018 21:58:29 GMT):
Any one else having issues with new version of Fabric: 1.1

cbf (Sun, 08 Apr 2018 01:02:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-documentation?msg=s2sBiEPGkd33b7KN5)

cbf (Sun, 08 Apr 2018 01:17:17 GMT):
@SmartContract2018 Fabric v0.6 had PBFT consensus. For v1.0, we re-architected our approach to consensus, and delivered a crash fault tolerant ordering service based on zookeeper and kafka. We plan on delivering a RAFT based ordering service leveraging etcd-RAFT followed by a SBFT ordering service, in the 1.3 or 1.4 timeframe https://jira.hyperledger.org/browse/FAB-33. There is a prototype implementation of the BFT-SMaRt ordering service developed by some reserchers at University of Lisboa https://github.com/jcs47/hyperledger-bftsmart

mengluo668 (Sun, 08 Apr 2018 02:38:27 GMT):
Has joined the channel.

XianLI (Sun, 08 Apr 2018 04:01:10 GMT):
Has joined the channel.

XianLI (Sun, 08 Apr 2018 04:02:36 GMT):
#fabric-questions Hi I meet a error when I want to run first-network,here are the error log https://stackoverflow.com/questions/49648529/hyperledger-fabric-simples-issue-run-byfn-sh-m-up-failed. Can anyone help me to fix it ? Thanks!

nivant9091 (Sun, 08 Apr 2018 06:19:04 GMT):
Has joined the channel.

wucy24 (Sun, 08 Apr 2018 06:51:47 GMT):
Has joined the channel.

lclclc (Sun, 08 Apr 2018 07:28:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gMyPdPvD8iAzZGfyC) @ga25waq They don't need to. The world state in delayed partition will prevent new transaction get endorsement.

Ed.Curran (Sun, 08 Apr 2018 13:18:35 GMT):
@ga25waq @XianLI I was curious so i started reading up on CAP theorem. Pretty sure a distributed ledger can never meet the consistency requirement as defined in the CAP theorem. A read can't be guaranteed to be the most recent unless you read from all ledgers simultaneously. As any single ledger can be behind by some arbitrary amount. This conistency requirement is pretty what important is that a write that's preceeded by a stake (not up-to-date read) will fail

Ed.Curran (Sun, 08 Apr 2018 13:21:16 GMT):
*this consistency requirement is pretty strong whats important is that a write that's proceeded by a stale (not up-to-date read) will fail. which is the case in hyperledger because of how the committing processes validates transactions before applying them.

Ed.Curran (Sun, 08 Apr 2018 13:36:53 GMT):
On an unrelated note, is it possible to create an endorsement policy for a chaincode that specifies some n number of peers of an org need to endorse the transaction? I can't see how this is possible when instantiating a chaincode from the cli but it may be possible by configuring the policy of the channel directly?

Achuth (Sun, 08 Apr 2018 14:55:14 GMT):
@cbf will you be able to direct me to right documentation, I was really confused with readset and writeset explanation in hyperledger fabric master doc. Issue is : I have 2 organization say org1 and org2. I would like to create a channel which gives full access to org1 and read only to org2. Can some one tell me on how.

elizabeths 2 (Sun, 08 Apr 2018 21:16:17 GMT):
Has joined the channel.

lclclc (Mon, 09 Apr 2018 03:53:06 GMT):
I am wondering if Fabric's endorsement-ordering-commitment is kind of 3PC.

TungLuu (Mon, 09 Apr 2018 03:56:07 GMT):
Has joined the channel.

TungLuu (Mon, 09 Apr 2018 04:03:23 GMT):
Hi everyone. I have a question is: How does client know which peers are endorser to send transaction proposal? Can anyone help me explain it? Thank you

honeyjills (Mon, 09 Apr 2018 04:14:15 GMT):
Hi Good Morning,

honeyjills (Mon, 09 Apr 2018 04:14:15 GMT):
Hi Good Morning, i am following this link to write my first application in fabric : https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html .. However i am getting stuck at "Installing the clients " that is when am trying *npm install* :

honeyjills (Mon, 09 Apr 2018 04:14:15 GMT):
Hi Good Morning, i am following this link to write my first application in fabric : https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html .. However i am getting stuck at "Installing the clients " that is when am trying *npm install* : Am getting the following error : > dtrace-provider@0.8.6 install /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/dtrace-provider > node-gyp rebuild || node suppress-error.js gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket. (_tls_wrap.js:1103:38) gyp ERR! stack at emitNone (events.js:106:13) gyp ERR! stack at TLSSocket.emit (events.js:208:7) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:637:8) gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) gyp ERR! System Linux 4.13.0-38-generic gyp ERR! command "/home/hduser/.nvm/versions/node/v8.9.4/bin/node" "/home/hduser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/dtrace-provider gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok > pkcs11js@1.0.15 install /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/pkcs11js > node-gyp rebuild gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket. (_tls_wrap.js:1103:38) gyp ERR! stack at emitNone (events.js:106:13) gyp ERR! stack at TLSSocket.emit (events.js:208:7) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:637:8) gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) gyp ERR! System Linux 4.13.0-38-generic gyp ERR! command "/home/hduser/.nvm/versions/node/v8.9.4/bin/node" "/home/hduser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/pkcs11js gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.15 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ╭─────────────────────────────────────╮ │ │ │ Update available 5.7.1 → 5.8.0 │ │ Run npm i -g npm to update │ │ │ ╰─────────────────────────────────────╯ npm ERR! A complete log of this run can be found in: npm ERR! /home/hduser/.npm/_logs/2018-04-09T04_15_02_026Z-debug.log

honeyjills (Mon, 09 Apr 2018 04:14:15 GMT):
Hi Good Morning, i am following this link to write my first application in fabric : https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html .. However i am getting stuck at "Installing the clients " that is when am trying *npm install* : Am getting the following error : > dtrace-provider@0.8.6 install /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/dtrace-provider > node-gyp rebuild || node suppress-error.js gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket. (_tls_wrap.js:1103:38) gyp ERR! stack at emitNone (events.js:106:13) gyp ERR! stack at TLSSocket.emit (events.js:208:7) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:637:8) gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) gyp ERR! System Linux 4.13.0-38-generic gyp ERR! command "/home/hduser/.nvm/versions/node/v8.9.4/bin/node" "/home/hduser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/dtrace-provider gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok > pkcs11js@1.0.15 install /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/pkcs11js > node-gyp rebuild gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket. (_tls_wrap.js:1103:38) gyp ERR! stack at emitNone (events.js:106:13) gyp ERR! stack at TLSSocket.emit (events.js:208:7) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:637:8) gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) gyp ERR! System Linux 4.13.0-38-generic gyp ERR! command "/home/hduser/.nvm/versions/node/v8.9.4/bin/node" "/home/hduser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hduser/FabProjects/fabric-samples/fabcar/node_modules/pkcs11js gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.15 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ╭─────────────────────────────────────╮ │ │ │ Update available 5.7.1 → 5.8.0 │ │ Run npm i -g npm to update │ │ │ ╰─────────────────────────────────────╯ npm ERR! A complete log of this run can be found in: npm ERR! /home/hduser/.npm/_logs/2018-04-09T04_15_02_026Z-debug.log Please help me in this. I am at this for days.

kingofsevens (Mon, 09 Apr 2018 04:54:02 GMT):
Has joined the channel.

terby (Mon, 09 Apr 2018 05:19:22 GMT):
Has joined the channel.

lclclc (Mon, 09 Apr 2018 05:37:44 GMT):
Where can I get all fabric images' dockerfile in the Fabric project?

lclclc (Mon, 09 Apr 2018 05:38:10 GMT):
Any help would be appreciated.

lclclc (Mon, 09 Apr 2018 05:56:51 GMT):
never mind, I found it in the images folder.

username343 (Mon, 09 Apr 2018 06:05:08 GMT):
Does anyone know how does a peer understand that another peer has joined a channel, so as to distribute the ledger data through gossip to another peer?

username343 (Mon, 09 Apr 2018 06:05:08 GMT):
Does anyone know how does a peer understand that another peer has joined a channel, so as to distribute the ledger data through gossip to that peer?

pavithrans (Mon, 09 Apr 2018 06:23:54 GMT):
how to create two channels at the same time using startFabric ?

tharzeez (Mon, 09 Apr 2018 07:00:46 GMT):
Has joined the channel.

SukanyaMahashabde (Mon, 09 Apr 2018 07:21:23 GMT):
Has joined the channel.

SukanyaMahashabde (Mon, 09 Apr 2018 07:21:53 GMT):
I am trying to bring up the network by './byfn.sh -m up' but getting this error 'Error endorsing query: rpc error: code = Unavailable desc = transport is closing - ' under 'Querying on peer1.org2 on channel 'mychannel'..' . So can I get some help here for hyperledger-fabric?

Taffies (Mon, 09 Apr 2018 07:28:05 GMT):
hi! i have a question about rich queries

Taffies (Mon, 09 Apr 2018 07:29:43 GMT):
i'm trying to query by multiple selectors and using multiple "$or" expressions.. but it seems like when i'm using multiple "$or"s it ignores all the other "$or" statements other than the very last one

Taffies (Mon, 09 Apr 2018 07:31:45 GMT):
for example, - getQueryResultForQueryString queryString: {"selector":{"docType":"details", "$or": [{"tradeid": "1"}, {"tradeid": "5"}, {"tradeid": "8"}], "timestamp": {"$and": [{"$gte":"20180301"},{"$lte":"20180305"}]}, "currencypair": "sgdidr", "companyid": "company a"}} gives me trades 1, 5, and 8, which is the correct results i'm looking for. - getQueryResultForQueryString queryString: {"selector":{"docType":"details", "$or": [{"tradeid": "1"}, {"tradeid": "4"}], "timestamp": {"$and": [{"$gte":"20180301"},{"$lte":"20180305"}]}, "currencypair": "sgdidr", "$or": [{"companyid": "company a"}, {"companyid": "company d"}]}} however gives me trades 1, 3, 4, 5, 6, 8, which are all the trades under company a and company d

Taffies (Mon, 09 Apr 2018 07:32:09 GMT):
am i doing it wrongly and is there a workaround to this? thank you so much!

Taffies (Mon, 09 Apr 2018 07:36:09 GMT):
also tried using the $in but somehow it does not work on the kubernetes set up at all even though it works when i tested it byfn!

mozkarakoc (Mon, 09 Apr 2018 07:49:45 GMT):
Has joined the channel.

wohla (Mon, 09 Apr 2018 07:55:28 GMT):
Has joined the channel.

lclclc (Mon, 09 Apr 2018 08:19:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G8bK3PnfsPD8B5rjM) @username343 I guess the anchor peer knows.

lclclc (Mon, 09 Apr 2018 08:19:46 GMT):
And this may relate to MSP configuration change, maybe this situation is broadcast to whole org.

Unni_1994 (Mon, 09 Apr 2018 08:38:28 GMT):
Hi ,When a peer tries to join in the existing channel , I got this error `Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" for chainID = testchainid failed because of validation of configuration block, because of Invalid configuration block, missing Application configuration group))`

Unni_1994 (Mon, 09 Apr 2018 08:41:38 GMT):
Hi ,I have an another query regarding the phantom read issue while using CouchDB as a state database. Did any one knows about this issue?

mozkarakoc (Mon, 09 Apr 2018 08:46:23 GMT):
Hi, I am a bit confused on how the registration/enrollement/authentication of end users. I have an API developed with fabric nodejs sdk. When a request post the /users endpoint, if the user is not enrolled, admin users register and enrolled the new user and creates user signingIdentity at /fabric-client-kv-org1 folder. API returns a access token to client. After the client received token, all subsequent communications take place with authorization token. Anyone with the token can send a request to the API? Does this solution cause man in the middle attacks? How the end user receives digital identity?

IanBradbury_Rex (Mon, 09 Apr 2018 10:58:30 GMT):
Has joined the channel.

rogeriofza (Mon, 09 Apr 2018 11:28:25 GMT):
Has joined the channel.

hussein.knight (Mon, 09 Apr 2018 11:46:54 GMT):
hello i need help plz, i am new i need to store student certificate on hyperledger blockchain, how can i start and from where composer or fabric

Poneey (Mon, 09 Apr 2018 12:09:33 GMT):
@hussein.knight i think that composer is more easy for beginners. You have to begin by prerequis with this tutorial for example : https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html

javascrack (Mon, 09 Apr 2018 12:19:15 GMT):
Has joined the channel.

CorentinPacaud (Mon, 09 Apr 2018 12:27:23 GMT):
Hello

CorentinPacaud (Mon, 09 Apr 2018 12:27:59 GMT):
When I try to install my network I stille have this error. Any idea ? ``` ⠹ Installing business network. This may take a minute...E0409 14:23:29.819271955 21629 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. ```

CorentinPacaud (Mon, 09 Apr 2018 13:25:18 GMT):
No idea ? Should I add en issue ?

CorentinPacaud (Mon, 09 Apr 2018 13:25:18 GMT):
No idea ? Should I add an issue ?

CorentinPacaud (Mon, 09 Apr 2018 13:46:12 GMT):
it seems that even with the ./startFabric.sh and ./createPeerAdmin.sh from the fabric-tools folder, it won't start

jwhelan (Mon, 09 Apr 2018 14:06:44 GMT):
I was told java support for Chaincode ended in 1.0. is that true. is Go preferred over Java?

faezeh993 (Mon, 09 Apr 2018 14:27:32 GMT):
Has joined the channel.

cbf (Mon, 09 Apr 2018 14:28:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pACvbuQW9Rvmth47i) @Achuth basically, you would manage this through access control for the chaincode - you could have 2 chaincodes, one that writes to ledger and one that reads and restrict access... I'm not sure whether we have any samples. Possibly @muralisr would know

govinda-attal (Mon, 09 Apr 2018 15:00:34 GMT):
Has joined the channel.

MonnyClara (Mon, 09 Apr 2018 15:02:57 GMT):
Hello, I've lauched an really instanced of Fabric with 1 `org`, 2 `peers`, 1 `CLI`. I connect to my `CLI`, join a channel, install et instantiate a chaincode. I know that by default the `CLI` interacts with `peer0`, so when I connect directly to `peer0` and do a `peer channel list`I get the expect output. Also I can query and interact with the chaincode. But when I connect to `peer1` and do a `peer channel list` I can't see my channel BUT I can interact with my chaincode. Can someone explain what I should understand from this ?

MonnyClara (Mon, 09 Apr 2018 15:02:57 GMT):
Hello, I've lauched an really instanced of Fabric with 1 `org`, 2 `peers`, 1 `CLI`. I connect to my `CLI`, join a channel, install et instantiate a chaincode. I know that by default the `CLI` interacts with `peer0`, so when I connect directly to `peer0` and do a `peer channel list`I get the expected output. Also I can query and interact with the chaincode. But when I connect to `peer1` and do a `peer channel list` I can't see my channel BUT I can interact with my chaincode. Can someone explain what I should understand from this ?

muralisr (Mon, 09 Apr 2018 15:07:53 GMT):
@Achuth @cbf you could absolutely do the above. The other way is to leverage the access control for the "application layer" (ie, chaincode / SDK layer) via the "cid" library that helps extract identities from the https://github.com/hyperledger/fabric/tree/release-1.1/core/chaincode/lib/cid

muralisr (Mon, 09 Apr 2018 15:07:53 GMT):
@Achuth @cbf you could absolutely do the above. The other way is to leverage the access control for the "application layer" (ie, chaincode / SDK layer) via the "cid" library that helps do acl https://github.com/hyperledger/fabric/tree/release-1.1/core/chaincode/lib/cid

sinbad_jia (Mon, 09 Apr 2018 16:27:14 GMT):
Has joined the channel.

SukanyaMahashabde (Mon, 09 Apr 2018 16:27:25 GMT):
Hello, I am trying to implement the fabcar example in hyperledger document but not getting how the chaincode of car is getting updated. And also when I am trying to see the height of blockchain, its giving 3 blocks. I guess the first is genesis block then what are the other 2 blocks for? So need your help to solve these queries.

sinbad_jia (Mon, 09 Apr 2018 16:30:52 GMT):
Hi guys, is there a sample for updating channel config like batch size for kafka based orderers?

sinbad_jia (Mon, 09 Apr 2018 16:42:31 GMT):
actually, I mean that how can I input multiple org admin signatures when i run "peer channel update" command?

vieiramanoel (Mon, 09 Apr 2018 17:05:11 GMT):
At 1.1-release I can see `enableOus` in `configtx.yaml` what does it mean? How should I generate orgs certs with fabric-ca in order to have this flag enabled if it's important

vieiramanoel (Mon, 09 Apr 2018 17:05:11 GMT):
At 1.1-release I can see `enableOus` in `crypto-config.yaml` what does it mean? How should I generate orgs certs with fabric-ca in order to be able to run configtxgen tool without breaking

vieiramanoel (Mon, 09 Apr 2018 17:05:11 GMT):
At 1.1-release I can see `EnableNodeOus` in `crypto-config.yaml` what does it mean? How should I generate orgs certs with fabric-ca in order to be able to run configtxgen tool without breaking

desmondanimus (Mon, 09 Apr 2018 19:55:05 GMT):
Has joined the channel.

desmondanimus (Mon, 09 Apr 2018 20:06:34 GMT):
Hey all. How does a newbie get started with hyperledger fabric? :) I hear it's written in Go so I was really excited to learn this :)

IvanV6 (Mon, 09 Apr 2018 21:19:20 GMT):
Has joined the channel.

IvanV6 (Mon, 09 Apr 2018 21:19:25 GMT):
I am developing a network using Hyperledger fabric. So, I create my network using this tutorial: Hyperledger developer tutorial. I have created my model.cto and my logic,deploy the rest API and the playground. Now I want to add another node to my network. I have this configuration: Node1: it is the node where i have develop my initial node using the tutorial Node2: a remote node that i want to connect to my network. Actually, I have exported the .bna file of the network, but i have two questions: How can i register another node to my fabric-ca? How can i assign a public IP address for node1 and node2 to allow the comunication between the two nodes? Thanks for you support.

Pattyrick (Mon, 09 Apr 2018 23:12:28 GMT):
Has joined the channel.

jwhelan (Tue, 10 Apr 2018 01:10:32 GMT):
jwhelan

ck01 (Tue, 10 Apr 2018 01:12:30 GMT):
Has joined the channel.

memphisw (Tue, 10 Apr 2018 03:31:35 GMT):
Has joined the channel.

memphisw (Tue, 10 Apr 2018 03:31:58 GMT):
Can I configurate Channel policy in configtx.yaml ? Is there any doc for this, I can't find any after search.

MonnyClara (Tue, 10 Apr 2018 07:18:01 GMT):
@desmondanimus Check out the tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

Mahesh-Raj (Tue, 10 Apr 2018 07:52:21 GMT):
Has joined the channel.

Mahesh-Raj (Tue, 10 Apr 2018 07:53:04 GMT):
Just wanted to check if there exists a guide to deploy HL-fabric on multiple hosts?

MonnyClara (Tue, 10 Apr 2018 08:05:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RnWtr4MuBmCPPGfCS) @Mahesh-Raj https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

Mahesh-Raj (Tue, 10 Apr 2018 08:11:04 GMT):
@MonnyClara know that link already, you are able to follow the steps without any error?

Bit 63 (Tue, 10 Apr 2018 08:11:24 GMT):
Has joined the channel.

MonnyClara (Tue, 10 Apr 2018 08:12:58 GMT):
@Mahesh-Raj I'm not working on it at the moment, but I know that some people succeded with this tuto What error do you got ?

IvanV6 (Tue, 10 Apr 2018 08:15:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EvqiWgyW34phMXdHQ) @MonnyClara I have tested this tutorial and i am able to deploy the network, after these steps, it is possible to execute a .bna file on the network? If yes, how can i do this?

Mahesh-Raj (Tue, 10 Apr 2018 08:20:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G38vP9wLAueMYbbzv) @MonnyClara I am getting this error- rpc error code undefined grpc: the connection is unavailable

lclclc (Tue, 10 Apr 2018 09:10:13 GMT):
What is the meaning of "instantiation policy" in the context of chaincode packaging? I don't see this flag in othersub command, and I don't understand what policy it specifies.

lclclc (Tue, 10 Apr 2018 09:10:57 GMT):
I have searched all document and don't see clear explaination about it. When should I customize a "instantiation policy"?

SaraEmily (Tue, 10 Apr 2018 09:15:12 GMT):
Has joined the channel.

zhenbing (Tue, 10 Apr 2018 09:28:09 GMT):
2018-04-10 16:58:39.029 CST [orderer/common/broadcast] Handle -> WARN 20e [channel: testchannel] Rejecting broadcast of config message from ipaddress:51618 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining 2018-04-10 16:58:39.029 CST [orderer/common/server] func1 -> DEBU 20f Closing Broadcast stream *When I want to create channel the orderer output the above error message. It's about firewall or Cert and other issue?*

uxelduxel (Tue, 10 Apr 2018 09:39:28 GMT):
Has joined the channel.

uxelduxel (Tue, 10 Apr 2018 09:40:40 GMT):
Hey i have got a general question, is it possible to determine which ogansiation created/initiated a transaction by default? Is there also a timestap aswell as a signature of said organisation present by default? Or will need to implement those mechanics in chaincode?

buzzword (Tue, 10 Apr 2018 10:00:30 GMT):
Has joined the channel.

suvpatil (Tue, 10 Apr 2018 10:08:28 GMT):
Hi Team, how can I change the name of peer? For that I change in crypto-config.yaml, in the "template" section with the specific hostname. But it gives only one peer in crypto config folder though I have given count as 2. e.g Template: Count: 2 Hostname: abc SANS: - "localhost" Users: Count: 1

titoe218 (Tue, 10 Apr 2018 10:14:47 GMT):
Has joined the channel.

username343 (Tue, 10 Apr 2018 10:18:08 GMT):
can we multiple administrators for a peer?

yacovm (Tue, 10 Apr 2018 10:18:40 GMT):
yes

mastersingh24 (Tue, 10 Apr 2018 10:19:47 GMT):
@username343 - yes .... you simply need to included multiple certificates (one for each administrator) in the admincerts folder of the MSP

username343 (Tue, 10 Apr 2018 10:20:06 GMT):
and create the channel artifacts after that?

mastersingh24 (Tue, 10 Apr 2018 10:21:33 GMT):
well do you want multiple admins for the peer or multiple admins for your organization? if only for the peer, then you need only update the local MSP directory for the peer. if for your organization, then you would add them to the MSP folder used in creating channel artifacts

vivek29081993 (Tue, 10 Apr 2018 10:22:35 GMT):
Has joined the channel.

username343 (Tue, 10 Apr 2018 10:25:03 GMT):
i tried adding the other certificate in the admincerts folder of the msp of the peer but then my chaincode installation command failed stating that this identity is not an admin identity

yacovm (Tue, 10 Apr 2018 10:25:49 GMT):
Something important about what @mastersingh24 said : The admins that the peer have in the local folder (i.e `sampleconfig/admins`) control administrative operations of the peer. However - the "channel" organization admins - don't control these administrative operations

yacovm (Tue, 10 Apr 2018 10:26:01 GMT):
meaning - if an admin is a channel admins and is not in that local folder

yacovm (Tue, 10 Apr 2018 10:26:04 GMT):
it can't install a chaincode

yacovm (Tue, 10 Apr 2018 10:26:07 GMT):
or join the peer to a channel

yacovm (Tue, 10 Apr 2018 10:26:28 GMT):
that admin can take part in channel updates

yacovm (Tue, 10 Apr 2018 10:26:40 GMT):
it can be - of course, the same admin in practice

yacovm (Tue, 10 Apr 2018 10:26:52 GMT):
but if you don't add the channel admin's cert to the `admin` folder of each peer

yacovm (Tue, 10 Apr 2018 10:27:01 GMT):
it can't do local administrative operations on the peer

username343 (Tue, 10 Apr 2018 10:28:52 GMT):
thanks for responding @mastersingh24 @yacovm , i don't understand what are you referring with "sampleconfig/admins"

yacovm (Tue, 10 Apr 2018 10:29:05 GMT):
there is a local folder in the peer local configuration

yacovm (Tue, 10 Apr 2018 10:29:17 GMT):
`sampleconfig/msp/admincerts`

yacovm (Tue, 10 Apr 2018 10:29:20 GMT):
that's what i mean

username343 (Tue, 10 Apr 2018 10:29:43 GMT):
oh, got it, thanks

kiattchaip (Tue, 10 Apr 2018 10:31:25 GMT):
Hi, can we assign role (member or admin) to a peer? In the endorsement policy, we can specify both msp and role of the peer needed to sign a transaction.

kiattchaip (Tue, 10 Apr 2018 10:33:02 GMT):
Now, I cannot find any way to assign admin role to a peer.

yacovm (Tue, 10 Apr 2018 10:33:38 GMT):
please do not assign admin roles to peers

yacovm (Tue, 10 Apr 2018 10:33:41 GMT):
it's a bad idea

kiattchaip (Tue, 10 Apr 2018 10:34:53 GMT):
Do you mean that the role in the endorsement policy should always be member?

username343 (Tue, 10 Apr 2018 10:35:11 GMT):
can you guys help me with the new side db feature for private data introduced in the fabric version 1.1

yacovm (Tue, 10 Apr 2018 10:35:28 GMT):
@kiattchaip yes

username343 (Tue, 10 Apr 2018 10:35:40 GMT):
I can't find any documentation on api for the private data feature

yacovm (Tue, 10 Apr 2018 10:36:06 GMT):
@kiattchaip well actually

yacovm (Tue, 10 Apr 2018 10:36:07 GMT):
it depends

yacovm (Tue, 10 Apr 2018 10:36:15 GMT):
you can have the EP to be a `Org.peer`

yacovm (Tue, 10 Apr 2018 10:36:18 GMT):
it's a new feature in v1.1

username343 (Tue, 10 Apr 2018 10:38:30 GMT):
@yacovm do you know about the changes made to the shim api for the side db for private data feature

yacovm (Tue, 10 Apr 2018 10:38:37 GMT):
yeah

yacovm (Tue, 10 Apr 2018 10:38:41 GMT):
hold on let me find something

username343 (Tue, 10 Apr 2018 10:38:45 GMT):
ok

yacovm (Tue, 10 Apr 2018 10:39:18 GMT):
it's all here https://jira.hyperledger.org/browse/FAB-6600

kiattchaip (Tue, 10 Apr 2018 10:40:42 GMT):
@yacovm I see. Thanks a lots. :slight_smile:

kiattchaip (Tue, 10 Apr 2018 10:40:42 GMT):
@yacovm I see. Thank a lots. :slight_smile:

yacovm (Tue, 10 Apr 2018 10:40:49 GMT):
maybe an official doc exists... i don't know, ask in #fabric-documentation or @dave.enyeart or @joe-alewine

username343 (Tue, 10 Apr 2018 10:45:27 GMT):
thanks @yacovm

SaraEmily (Tue, 10 Apr 2018 11:47:40 GMT):
Hi everyone! I'm new to Hyperledger and I'm doing the "Writing Your First Application"-tutorial fabcar. My problem is with "node enrollAdmin.js" which gives the error Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] The script creates the folder hfc-key-store at root and a file which look very much like a nice crypto key so something works. From some debugging I've learnt that it seems to be this call that causes the error: fabric_client.getUserContext('admin', true); Does anyone know what might cause this? Thanks! :)

attester (Tue, 10 Apr 2018 12:08:03 GMT):
Hi, what is the purpose of the `tlsCACerts` param in the `connectionProfile` of the JS SDK ? I don't understand the usage with the CA: ``` certificateAuthorities: ca.example.com: url: http://localhost:7054 httpOptions: verify: false tlsCACerts: path: ../basic-network/crypto-config/peerOrganizations/org1.example.com/ca/org1.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: ca.example.com ```

joe-alewine (Tue, 10 Apr 2018 12:44:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RnWtr4MuBmCPPGfCS) @Mahesh-Raj

joe-alewine (Tue, 10 Apr 2018 12:44:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RnWtr4MuBmCPPGfCS) @Mahesh-Raj Cello is the supported way to do this

ApoorvChandurkar (Tue, 10 Apr 2018 12:59:42 GMT):
Has joined the channel.

jaxdave (Tue, 10 Apr 2018 14:01:24 GMT):
Has joined the channel.

GregFriend (Tue, 10 Apr 2018 14:55:19 GMT):
Has joined the channel.

solmichaelk (Tue, 10 Apr 2018 15:25:33 GMT):
Has joined the channel.

solmichaelk (Tue, 10 Apr 2018 15:27:55 GMT):
Hi guys, I have a question about SDK, is there a way to use the sdk to automated the process of peer node creation? if yes, does anyone know where to find a tutorial about it?

XingqiangMao (Tue, 10 Apr 2018 15:36:14 GMT):
Hey guys Quick question. When we define ledger data structure. the structure of every transaction should be same right?

Mihai.A (Tue, 10 Apr 2018 15:42:34 GMT):
Hello. I have fabric-kafka container with docker id XXXXX on machine A(10.10.10.2) On a different machine (B:10.10.10.3) I have an orderer that connects to kafka Is fetching metadata " for [testchainind] from broker 10.10.10.2:9092" then registerBroker -> DEBU 09f client/brokers registered new broker #0 at XXXXX:9092 >> Then the orderer tries to lookup container XXXXX (via docker) Of course it fails, because it's on a different machine. Does anyone knows what configuration I missed? orderer configuration: - CONFIGTX_ORDERER_KAFKA_BROKERS=[10.10.10.2:9092] - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host - CONFIGTX_ORDERER_ORDERERTYPE=kafka configtx.yaml / Orderer / Kafka /Brokers: - 10.10.10.2:9092

joe-alewine (Tue, 10 Apr 2018 15:52:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z8CyFnQfSRgBhPGNA) @XingqiangMao At a channel level, I think that's right. But different channels can use different block heights, for example, or different batch sizes

XingqiangMao (Tue, 10 Apr 2018 15:55:51 GMT):
@joe-alewine Thank you for reply

nicovalencia (Tue, 10 Apr 2018 16:51:24 GMT):
Has joined the channel.

BertCatsburg (Tue, 10 Apr 2018 16:57:20 GMT):
Has joined the channel.

kkermanizadeh (Tue, 10 Apr 2018 17:21:47 GMT):
Has joined the channel.

jverhoelen (Tue, 10 Apr 2018 19:29:29 GMT):
Hey, a quick question about the node roles/architecture of Fabric. Given, we need a consortium network for some organisations, they got their peer nodes. But how is the orderer node managed? Is also each organisation getting one or is there gonna be one centralised order node?! Didn't find any good documentation on that.

jverhoelen (Tue, 10 Apr 2018 19:29:29 GMT):
Hey, a quick question about the node roles/architecture of Fabric. Given, we need a consortium network for some organisations, they got their peer nodes. But how is the orderer node managed? Is also each organisation getting one or is there gonna be one centralised order node?! Didn't find any good documentation on that. Can it be done that the ordering service is highly decentralised, too, as well as the peer nodes?

alexaguileravz93 (Tue, 10 Apr 2018 19:59:52 GMT):
Hey @yacovm I have made some progress on issue mentioned before, but im now getting a new error with my certificates, would you be able to help me out?

alexaguileravz93 (Tue, 10 Apr 2018 20:00:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EjrMd7dL98khdGNTr) Basically I am getting this error now, grpc: Server.Serve failed to complete security handshake from "148.132.34.163:55159": tls: failed to verify client's certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "rca-Peer1-admin")

akula (Tue, 10 Apr 2018 20:39:55 GMT):
@alexaguileravz93 I faced a similar error, maybe the same. The workaround I've found was to provide a custom fabric-ca-server-config.yaml to CA. I've basically created a new entry in CA volume section `./ca/:/etc/hyperledger/fabric-ca-server` The content of the file is the same you found when the container is up and running, but with the following modification: csr: cn: fabric-ca-server names: - C: BR ST: "Brasilia - DF" L: O: mainorg.synapsetec.com.br OU: Synapse hosts: - b9b1284da0b8 - localhost ca: expiry: 131400h pathlength: 1 So I'm able to change from example.com to my own. I don't know if that is the correct approach, but it works.

alexaguileravz93 (Tue, 10 Apr 2018 20:41:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=63WkiTZvytjgD3hEn) @akula oh ok, was this providing tls certificates from your client?

akula (Tue, 10 Apr 2018 20:44:54 GMT):
Not sure if I understand correct, but I've used the same certs generated by `cryptogen generate --config=./crypto-config.yaml`

akula (Tue, 10 Apr 2018 20:44:54 GMT):
Not sure if I understand correctly, but I've used the same certs generated by `cryptogen generate --config=./crypto-config.yaml`

alexaguileravz93 (Tue, 10 Apr 2018 20:47:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=88LSALRBirkpKHKh7) @akula oh ok, the network i am using is actually being modified from the fabric-ca example, seems like maybe we are using different methods generating certificates

joe-alewine (Tue, 10 Apr 2018 21:44:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ukWsEAHissuXaPBgW) @jverhoelen Sample Fabric networks (like BYFN) employ a "solo" ordering service (that is, only one orderer). But this is NOT meant to reflect a production ordering service, which will run multi-node ordering services on Kafka or Zookeeper clusters

joe-alewine (Tue, 10 Apr 2018 21:44:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ukWsEAHissuXaPBgW) @jverhoelen Sample Fabric networks (like BYFN) employ a "solo" ordering service (that is, only one orderer). But this is NOT meant to reflect a production ordering service, which will run multi-node ordering services on Kafka or Zookeeper clusters (at least, those are what's supported at present)

hyperbran (Tue, 10 Apr 2018 23:46:58 GMT):
Has joined the channel.

lfrankqy (Wed, 11 Apr 2018 00:28:32 GMT):
Has joined the channel.

hyperbran (Wed, 11 Apr 2018 00:31:32 GMT):
hi, is it possible to generate .cto file from PlantUML tool? I've read somewhere that on Mac it is integrated with Composer

hyperbran (Wed, 11 Apr 2018 01:15:45 GMT):
When I run the first-network, I can see paths like /opt/... but when I do ls -l /opt, there is nothing on that path. What is the purpose of these environment variables then? Querying chaincode on peer1.org2... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org2MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer1.org2.example.com:7051 ===================== Querying on peer1.org2 on channel 'mychannel'... ===================== Attempting to Query peer1.org2 ...3 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=0 + set +x 2018-04-11 01:11:51.342 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-04-11 01:11:51.342 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Query Result: 90 2018-04-11 01:12:19.583 UTC [main] main -> INFO 003 Exiting..... ===================== Query on peer1.org2 on channel 'mychannel' is successful ===================== ========= All GOOD, BYFN execution completed =========== _____ _ _ ____ | ____| | \ | | | _ \ | _| | \| | | | | | | |___ | |\ | | |_| | |_____| |_| \_| |____/

hyperbran (Wed, 11 Apr 2018 01:18:43 GMT):
What is the procedure to add the third organization to the first-network example? Which file should I edit? This should be simple, but I am not sure?!

blackgeneral (Wed, 11 Apr 2018 03:50:43 GMT):
Has joined the channel.

ck01 (Wed, 11 Apr 2018 03:58:47 GMT):
Hi everyone, I have a question

ck01 (Wed, 11 Apr 2018 04:00:20 GMT):
According to this topic https://stackoverflow.com/questions/43874435/is-it-possible-to-make-the-peer-join-the-channel-as-only-committer, a peer without chaincode is a committer peer. Then how come It update its ledger?

ck01 (Wed, 11 Apr 2018 04:00:20 GMT):
According to this topic https://stackoverflow.com/questions/43874435/is-it-possible-to-make-the-peer-join-the-channel-as-only-committer, a peer without chaincode is a committer peer. Then how come It updates its ledger?

Taffies (Wed, 11 Apr 2018 04:33:11 GMT):
hi! question. if i do a GetQueryResult, is there a way to retrieve only say, the last 5 results of the iterator?

kiattchaip (Wed, 11 Apr 2018 04:50:51 GMT):
@Taffies If you use CouchDB as the state DB, you can use `order, `limit` and `skip` commands.

kiattchaip (Wed, 11 Apr 2018 04:50:51 GMT):
@Taffies If you use CouchDB as the state DB, you can use `order, `limit` and `skip` commands.

kiattchaip (Wed, 11 Apr 2018 04:50:51 GMT):
@Taffies If you use CouchDB as the state DB, you can use `order`, `limit` and `skip` commands.

kiattchaip (Wed, 11 Apr 2018 04:50:51 GMT):
@Taffies If you use CouchDB as the state DB, you can use `order`, `sort` and `skip` commands.

kiattchaip (Wed, 11 Apr 2018 04:50:51 GMT):
@Taffies If you use CouchDB as the state DB, you can use `sort`, `limit` and `skip` commands.

Taffies (Wed, 11 Apr 2018 04:52:04 GMT):
hmmm can you elaborate?

Taffies (Wed, 11 Apr 2018 04:52:51 GMT):
i'm currently using couchdb but i'm quite foreign with it

kiattchaip (Wed, 11 Apr 2018 04:53:14 GMT):
http://docs.couchdb.org/en/2.0.0/api/database/find.html

dsl (Wed, 11 Apr 2018 04:57:27 GMT):
Has joined the channel.

Taffies (Wed, 11 Apr 2018 04:58:01 GMT):
let me test it out!thank you

bchincha (Wed, 11 Apr 2018 05:14:54 GMT):
Has joined the channel.

Taffies (Wed, 11 Apr 2018 05:30:12 GMT):
hmmm i'm getting this now - Reason:No index exists for this sort, try indexing by the sort fields.) would i need to include an index inside or some sort?

Taffies (Wed, 11 Apr 2018 05:30:17 GMT):
@kiattchaip

kiattchaip (Wed, 11 Apr 2018 05:41:52 GMT):
@Taffies Yes, the index must be created in order to use the `sort`. You may follow the steps in http://hyperledger-fabric.readthedocs.io/en/release-1.1/couchdb_as_state_database.html#using-couchdb-from-chaincode.

yetanotheruser23 (Wed, 11 Apr 2018 05:50:05 GMT):
Hi. I just inherited a Fabric project and I want to know what version of Fabric has been installed. Does anyone know how I can check?

Taffies (Wed, 11 Apr 2018 05:50:33 GMT):
@kiattchaip would i be required to upgrade my fabric images to 1.1.0? i'm currently working in 1.0.6

kiattchaip (Wed, 11 Apr 2018 05:57:27 GMT):
@Taffies From https://jira.hyperledger.org/browse/FAB-3067, I think you need to.

focaaby (Wed, 11 Apr 2018 06:05:05 GMT):
Has joined the channel.

mitrashan (Wed, 11 Apr 2018 06:10:54 GMT):
Has joined the channel.

gatakka (Wed, 11 Apr 2018 06:15:33 GMT):
Hello, I have a simple question, is the data of private collections stored in the chain, or this data is just in SideDB and when is destroyed no traces are left.

username343 (Wed, 11 Apr 2018 06:22:17 GMT):
is it possible to prove that a specific chaincode to chaincode call was made by one particular chaincode?

username343 (Wed, 11 Apr 2018 06:23:34 GMT):
For example if chaincode A makes a call to to chaincode B, is it possible to chaincode B to identify that this call is made by the chaincode B. And is it possible to identify the chaincode making the call to external service C. Can the external service C identify that the call is made by a chaincode, the chaincode A?

username343 (Wed, 11 Apr 2018 06:24:17 GMT):
@gatakka from my understanding the data is stored on the side chain as well as side db

gatakka (Wed, 11 Apr 2018 06:25:28 GMT):
@username343 So there is another parallel blockchain inside fabric for private data?

username343 (Wed, 11 Apr 2018 06:25:39 GMT):
yes

username343 (Wed, 11 Apr 2018 06:26:32 GMT):
@gatakka have a look at this https://jira.hyperledger.org/secure/attachment/12720/PrivacyEnabledLedger20171022.pptx

username343 (Wed, 11 Apr 2018 06:26:47 GMT):
https://jira.hyperledger.org/browse/FAB-1151

gatakka (Wed, 11 Apr 2018 06:30:29 GMT):
I red this document at least 20 times, and still cannot understand when private collection is deleted, by time or manualy is there any record for the values, hashes will be in the channel, but are the actual values gone, or there is a record somewhere

username343 (Wed, 11 Apr 2018 06:31:50 GMT):
I think they are talking about deleting them from the transient store

gatakka (Wed, 11 Apr 2018 06:35:50 GMT):
Ok, transient store is just a db with no immutable capabilities, but are there any other places, blocks, ledgers whatever where values are stored and can be audited. This is extremely important in context of GDPR

jverhoelen (Wed, 11 Apr 2018 06:51:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RtGTxmr9duTD7a4xC) @joe-alewine Thanks! Already red about that. But is there a piece of documentation on how to deploy a multi node ordering service on Kafka/Zookeeper while having the nodes distributed over multiple organisations? Does every org which is involved in ordering need a Kafka or Zookeeper cluster?

nebsterboy (Wed, 11 Apr 2018 06:54:03 GMT):
Has joined the channel.

ck01 (Wed, 11 Apr 2018 07:09:36 GMT):
Hi everyone, I have a question According to this topic https://stackoverflow.com/questions/43874435/is-it-possible-to-make-the-peer-join-the-channel-as-only-committer, a peer without chaincode is a committer peer. Then how come It updates its ledger?

Chandraamit (Wed, 11 Apr 2018 07:24:57 GMT):
Has joined the channel.

vishaldumbre (Wed, 11 Apr 2018 07:39:14 GMT):
Hi All, I am not able to create channel while setting Block chain network. Getting following error, error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n at ClientDuplexStream._emitStatusIfDone (/home/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:255:19)\n at ClientDuplexStream._readsDone (/home/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:221:8)\n at readCallback (/home/fabric-samples-1.1.0-preview/secu_test/node_modules/grpc/src/node/src/client.js:283:12)" [2018-04-06 19:58:29.945] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE

ssnnaruka (Wed, 11 Apr 2018 07:46:17 GMT):
Has joined the channel.

username343 (Wed, 11 Apr 2018 08:46:25 GMT):
@ck01 a committer peer is one where the peer is only committing updates to the ledger and the chaincode is not installed. Now for committing updates to the ledger it receives blocks from other peers using gossip, the new block is (sent by orderer to the leader peer / pulled by the leader peer ?) and then that block is distributed by the gossip protocol. Now the committer peer takes the transactions in blocks checks for mvcc and then appropriately updates the ledger and adds the block to the chain.

ck01 (Wed, 11 Apr 2018 08:48:25 GMT):
@username343 : but how can it update ledger without chaincode?

username343 (Wed, 11 Apr 2018 08:48:46 GMT):
why do you think it would require chaincode to update the ledger?

username343 (Wed, 11 Apr 2018 08:52:31 GMT):
@ck01 i think you might like this https://medium.com/kokster/hyperledger-fabric-endorsing-transactions-3c1b7251a709

ck01 (Wed, 11 Apr 2018 08:57:19 GMT):
@username343 : "Applications interact with the blockchain ledger through chaincode. As such we need to install the chaincode on every peer that will execute and endorse our transactions, and then instantiate the chaincode on the channel."

ck01 (Wed, 11 Apr 2018 08:57:26 GMT):
how about this statement?

username343 (Wed, 11 Apr 2018 09:07:39 GMT):
you don't need to make every peer an endorser for a chaincode. If there are three organizations in a network, and a deal is supposed to concern only two organizations than we can define an endorsement policy which requires endorsements from only those two organization, then we can say that even if the chaincode is not executed on the third organizations peer if we get endorsements from two required organizations by executing the chaincode on the peers of those two organizations, we are satisfying the endorsement policy without even bothering the third organizations' peers for executing the transactions. Now these transaction endorsement proposal and their responses are sent by the client back to the orderer which sends these back to the committer peers for committing to ledger. Now the committer peers don't need to run the chaincode again and see if whatever the read/write sets have been sent by the client are consistent with the current state, if on the endorsement proposal responses there are signatures of all the members as defined in the endorsement policy, we can say that the transaction was ran by appropriate number of peers and they've signed on the transaction proposal response data which means that the read/write sets can assumed to be correct according to the network policy, and thus the committer peer can commit those updates in the ledger.

username343 (Wed, 11 Apr 2018 09:07:39 GMT):
@ck01 you don't need to make every peer an endorser for a chaincode. If there are three organizations in a network, and a deal is supposed to concern only two organizations than we can define an endorsement policy which requires endorsements from only those two organization, then we can say that even if the chaincode is not executed on the third organizations peer if we get endorsements from two required organizations by executing the chaincode on the peers of those two organizations, we are satisfying the endorsement policy without even bothering the third organizations' peers for executing the transactions. Now these transaction endorsement proposal and their responses are sent by the client back to the orderer which sends these back to the committer peers for committing to ledger. Now the committer peers don't need to run the chaincode again and see if whatever the read/write sets have been sent by the client are consistent with the current state, if on the endorsement proposal responses there are signatures of all the members as defined in the endorsement policy, we can say that the transaction was ran by appropriate number of peers and they've signed on the transaction proposal response data which means that the read/write sets can assumed to be correct according to the network policy, and thus the committer peer can commit those updates in the ledger.

ck01 (Wed, 11 Apr 2018 09:10:56 GMT):
one more question

ck01 (Wed, 11 Apr 2018 09:11:37 GMT):
I watch some videos, it said that a block was created by orderer and sent to anchor peers

ck01 (Wed, 11 Apr 2018 09:12:20 GMT):
but you said that leader peer will receive block and broadcast to other peers

username343 (Wed, 11 Apr 2018 09:12:22 GMT):
yes the block is created by orderer

username343 (Wed, 11 Apr 2018 09:12:52 GMT):
anchor peers are for finding the peers of another organization

username343 (Wed, 11 Apr 2018 09:13:01 GMT):
leader peers receive the blocs from the orderer

username343 (Wed, 11 Apr 2018 09:13:57 GMT):
@ck01 take a look at this http://hyperledger-fabric.readthedocs.io/en/release-1.0/glossary.html

ck01 (Wed, 11 Apr 2018 09:18:32 GMT):
but in some samples only anchor peers were configured, no need leader peers. Also, if anchor peers can know any members of its channel then it can broadcast blocks to all channel too. Why need leader peers?

sihyeon (Wed, 11 Apr 2018 09:29:04 GMT):
Has joined the channel.

lclclc (Wed, 11 Apr 2018 09:29:18 GMT):
Does the peer/orderer executable binary share the same version number with Fabric itself?

NAWAZUDDIN552 (Wed, 11 Apr 2018 09:33:51 GMT):
I try to create my own network by using `build your first network tutorial` I created the network and its working fine. but when I want to enter into the cli container by using the command `docker exec -it cli bash` I got the error Error response from daemon: Container a757d579286a2ab5941173a3ec5f78c5f005b071be1582335d8885230ee31ade is not running. Any help always appreciate

ck01 (Wed, 11 Apr 2018 09:37:43 GMT):
@username343

username343 (Wed, 11 Apr 2018 09:39:18 GMT):
@lclclc am i right in saying that leader peers are elected dynamically by election?

MosesSamPaul (Wed, 11 Apr 2018 09:43:58 GMT):
Has joined the channel.

MonnyClara (Wed, 11 Apr 2018 09:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ex6xQMJopmTp2jdba) @NAWAZUDDIN552 When you do a `docker ps` can you see your CLI docker container And I think I remember you the byfn tutorial, you had to comment a configuration line to be able to create the CLI container

NAWAZUDDIN552 (Wed, 11 Apr 2018 09:58:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iKaXs4ND393xCE6mh) @MonnyClara yes, I see the docker container

NAWAZUDDIN552 (Wed, 11 Apr 2018 09:58:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iKaXs4ND393xCE6mh) @MonnyClara yes, I see the docker container In which file I want to comment

username343 (Wed, 11 Apr 2018 09:58:49 GMT):
hey @yacovm I've a question about the side db. Suppose if there are three organizations and single chaincode is deployed on all three organizations. If i submit a transaction on orgA modifying the private data of orgA and orgB, how is this transaction handled in side db? Is the private data of orgB given to orgA or is there something different taking care of scenario?

yacovm (Wed, 11 Apr 2018 09:59:49 GMT):
you mean A and B have a private collection that C is not part of ?

lclclc (Wed, 11 Apr 2018 10:01:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XfcNgwAc7664sMxwd) @username343 This is configurable

lclclc (Wed, 11 Apr 2018 10:02:13 GMT):
``` - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true ```

Juanan_Tejero (Wed, 11 Apr 2018 10:02:18 GMT):
Has joined the channel.

Juanan_Tejero (Wed, 11 Apr 2018 10:02:32 GMT):
Hi everyone. It is possible to use an external SQL engine for supporting federated queries (such as Presto) inside the chaincode?? Thanks.

lclclc (Wed, 11 Apr 2018 10:02:33 GMT):
any peer is affected by these 2 opposite env variable

username343 (Wed, 11 Apr 2018 10:03:43 GMT):
thanks for responding @yacovm , Every organization has it's own private collection, but in a transaction only two organizations (A and B) are involved, so if i submit a transaction to one of the organization only question that remains is how is the data in private collection of OrgB updated without it being shared with the orgA?

username343 (Wed, 11 Apr 2018 10:03:43 GMT):
thanks for responding @yacovm , Every organization has it's own private collection, but in a transaction only two organizations (A and B ) are involved, so if i submit a transaction to one of the organization only question that remains is how is the data in private collection of OrgB updated without it being shared with the orgA?

username343 (Wed, 11 Apr 2018 10:04:15 GMT):
thanks for responding @lclclc

yacovm (Wed, 11 Apr 2018 10:04:21 GMT):
the orgs that are not in the collection only see hashes of the data

yacovm (Wed, 11 Apr 2018 10:04:26 GMT):
they don't get the data itself

ck01 (Wed, 11 Apr 2018 10:04:27 GMT):
orderer will send blocks to anchor peers or leader peers?

yacovm (Wed, 11 Apr 2018 10:04:29 GMT):
just the hashes

yacovm (Wed, 11 Apr 2018 10:04:34 GMT):
@ck01 leader

ck01 (Wed, 11 Apr 2018 10:06:48 GMT):
then why first-network sample only configure anchor peers?

yacovm (Wed, 11 Apr 2018 10:07:56 GMT):
because the leader can be selected at runtime

yacovm (Wed, 11 Apr 2018 10:08:08 GMT):
the peers of the org decide among themselves

username343 (Wed, 11 Apr 2018 10:08:28 GMT):
what election algorithm do the peers use to decide the leader peer?

yacovm (Wed, 11 Apr 2018 10:08:45 GMT):
a bully algorithm

username343 (Wed, 11 Apr 2018 10:08:49 GMT):
thanks

yacovm (Wed, 11 Apr 2018 10:09:05 GMT):
the peer with the highest hash of identity usually wins

ck01 (Wed, 11 Apr 2018 10:09:44 GMT):
so anchor peers only in charge of keeping address of all peers in their channel?

yacovm (Wed, 11 Apr 2018 10:11:17 GMT):
they are just peers that you go to them to know about other orgs

yacovm (Wed, 11 Apr 2018 10:11:23 GMT):
after you know their addresses

yacovm (Wed, 11 Apr 2018 10:11:27 GMT):
you don't need them anymore

yacovm (Wed, 11 Apr 2018 10:11:32 GMT):
until you go offline and online again

ck01 (Wed, 11 Apr 2018 10:14:20 GMT):
thanks

username343 (Wed, 11 Apr 2018 10:17:47 GMT):
I'm trying to setup the side db demo but i'm getting the following error when trying to use the nework_setup.sh script in e2e_cli example

username343 (Wed, 11 Apr 2018 10:17:52 GMT):
[325d91db]Received ERROR. Payload: [[325d91db PUT_STATE ERROR]]No ledger context for %!s(MISSING). Sending %!s(MISSING)

ck01 (Wed, 11 Apr 2018 10:21:19 GMT):
if committer doesn't need chaincode to update its ledger it means that I can write a script to update ledger same as the way that committer peer do?

MilanB3 (Wed, 11 Apr 2018 10:52:19 GMT):
Has joined the channel.

manish27 (Wed, 11 Apr 2018 11:00:17 GMT):
Hello Everyone, I am new to hyperledger fabric. While creating and joining channel using command "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" I am getting below exception :- 2018-04-11 09:45:33.751 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-11 09:45:33.751 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-11 09:45:33.771 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 e ndpoint -v, --version Display current version of fabric peer server

manish27 (Wed, 11 Apr 2018 11:00:17 GMT):
Hello Everyone, I am new to hyperledger fabric. While creating and joining channel using command "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" I am getting below exception :- 2018-04-11 09:45:33.751 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-11 09:45:33.751 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-11 09:45:33.771 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 e ndpoint -v, --version Display current version of fabric peer server

manish27 (Wed, 11 Apr 2018 11:00:17 GMT):
Hello Everyone, I am new to hyperledger fabric. While creating and joining channel using command "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" I am getting below exception :- 2018-04-11 09:45:33.751 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-11 09:45:33.751 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-11 09:45:33.771 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 e ndpoint -v, --version Display current version of fabric peer Please help.

manish27 (Wed, 11 Apr 2018 11:00:17 GMT):
Hello Everyone, I am new to hyperledger fabric. While creating and joining channel using command "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" I am getting below exception :- 2018-04-11 09:45:33.751 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-11 09:45:33.751 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-11 09:45:33.771 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 e ndpoint -v, --version Display current version of fabric peer Please help.

MonnyClara (Wed, 11 Apr 2018 11:16:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EQ3jtqgtRwPr698sS) @NAWAZUDDIN552 https://stackoverflow.com/questions/43955722/cli-container-not-running-hyperledger-1-0-not-able-to-start-no-tls-network Check this ;)

Achuth (Wed, 11 Apr 2018 11:58:26 GMT):
I am getting error while instantiating a chaincode from behind a proxy. How to fix this issue: peer chaincode instantiate -o orderer.org1.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/org1.com/orderers/orderer.org1.com/msp/tlscacerts/tlsca.org1.com-cert.pem -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":[]}' -P "OR ('org1SP.peer','org2MSP.peer')" 2018-04-11 11:31:28.224 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-04-11 11:31:28.224 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/fabric-shim failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-04-11T11_31_30_613Z-debug.log "

Achuth (Wed, 11 Apr 2018 11:58:26 GMT):
I am getting error while instantiating a chaincode from behind a proxy. How to fix this issue: peer chaincode instantiate -o orderer.org1.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/org1.com/orderers/orderer.org1.com/msp/tlscacerts/tlsca.org1.com-cert.pem -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":[]}' -P "OR ('org1SP.peer','org2MSP.peer')" 2018-04-11 11:31:28.224 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-04-11 11:31:28.224 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/fabric-shim failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-04-11T11_31_30_613Z-debug.log "

Achuth (Wed, 11 Apr 2018 11:59:34 GMT):
already in my machine I have given right proxy, every thing is working except the instantiation part.

Achuth (Wed, 11 Apr 2018 12:00:14 GMT):
googling is giving me a lot of info on docker composer but nothing on ledger.

Achuth (Wed, 11 Apr 2018 12:02:32 GMT):
also strange thing is I am not seeing /root/.npm/_logs/2018-04-11T11_31_30_613Z-debug.log logs in my machine nor in cli docker container. So where exactly this log is kept ?

bairathirahul (Wed, 11 Apr 2018 12:06:48 GMT):
Has joined the channel.

bairathirahul (Wed, 11 Apr 2018 12:08:12 GMT):
I think the issue is with the proxy configuration inside docker's npm.

lathakreddy (Wed, 11 Apr 2018 12:12:08 GMT):
Has joined the channel.

lathakreddy (Wed, 11 Apr 2018 12:13:10 GMT):
Getting error while generating certificates

lathakreddy (Wed, 11 Apr 2018 12:13:17 GMT):

Clipboard - April 11, 2018 5:43 PM

lathakreddy (Wed, 11 Apr 2018 12:13:34 GMT):
on windows7 using docker tool box

lathakreddy (Wed, 11 Apr 2018 12:13:43 GMT):
Can any one help?

pavithrans (Wed, 11 Apr 2018 12:21:58 GMT):
I have two channels A and B in hyperledger fabric, which contains different data in it, right now i can able to get any single channel data but i need both channel data, how it is possible ? can anybody guide to do this ?

username343 (Wed, 11 Apr 2018 12:23:59 GMT):
@pavithrans if you need the data in chaincode you can use chaincode to chaincode call feature and get the data from other channel into current channel transaction

SaraEmily (Wed, 11 Apr 2018 12:37:45 GMT):
Hi! I have a problem with the "peer channel fetch config" command in the tutorial Adding an Org to a Channel, I only get: INFO 001 Endorser and orderer connections iniyalized INFO 002 Exiting... No block is fetched :( Any help is appreciated

SaraEmily (Wed, 11 Apr 2018 12:37:45 GMT):
Hi! I have a problem with the "peer channel fetch config" command in the tutorial Adding an Org to a Channel, I only get: INFO 001 Endorser and orderer connections initalized INFO 002 Exiting... No block is fetched :( Any help is appreciated

SaraEmily (Wed, 11 Apr 2018 12:37:45 GMT):
Hi! I have a problem with the "peer channel fetch config" command in the tutorial Adding an Org to a Channel, I only get: INFO 001 Endorser and orderer connections initalized INFO 002 Exiting... No block is fetched :( Any help is appreciated I'm in the cli container in docker on Windows 8

manish27 (Wed, 11 Apr 2018 12:39:48 GMT):
Hello Everyone, I am new to hyperledger fabric. While creating and joining channel using command "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" I am getting below exception :- 2018-04-11 09:45:33.751 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-11 09:45:33.751 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-11 09:45:33.771 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 e ndpoint -v, --version Display current version of fabric peer Please help.

Achuth (Wed, 11 Apr 2018 12:54:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JkhkX6XJKc4mB7GC7) Any help is much appreciated !!!

Rajalekshmy (Wed, 11 Apr 2018 12:55:25 GMT):
Has joined the channel.

Rajalekshmy (Wed, 11 Apr 2018 13:04:23 GMT):
Hi, I have set up the hyperledger fabric in local machine. The environment, peer nodes ... all are set and deployed marbles_chaincode.go. I am able to query run chain code query through git bash. I want to connect to this network through .net application. I do not know how to connect to this network and execute chain code methods through c#. Tried peer0.org1.example.com:7051 in IE browser but it is not working. Can anyone help me?

joe-alewine (Wed, 11 Apr 2018 13:10:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MDru4YyfeY2AMfEfS) @Taffies There's a whole tutorial for how to do that: http://hyperledger-fabric.readthedocs.io/en/latest/upgrade_to_one_point_one.html

jradix (Wed, 11 Apr 2018 13:15:15 GMT):
Has joined the channel.

vick (Wed, 11 Apr 2018 13:15:24 GMT):
Has joined the channel.

vick (Wed, 11 Apr 2018 13:15:46 GMT):
hi all, is there any guidance on how to setup fabric over multiple hosts?

jradix (Wed, 11 Apr 2018 13:16:42 GMT):
Hello. Is there a document explaining how to install Fabric without Docker ?

vick (Wed, 11 Apr 2018 13:17:09 GMT):
@jradix i would be interested in this also

joe-alewine (Wed, 11 Apr 2018 13:17:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x6r68Jb8t5Qwv8utR) @jverhoelen Checkout out Hyperledger Cello

markthedark (Wed, 11 Apr 2018 13:18:00 GMT):
if i modify the configtx.yaml file, orderer settings to be exact, do i need to update some certificates or anything? i can't seem to connect to the updated fabric instance after the modification

Achuth (Wed, 11 Apr 2018 13:35:48 GMT):
Has left the channel.

omarqr (Wed, 11 Apr 2018 13:36:01 GMT):
Has joined the channel.

omarqr (Wed, 11 Apr 2018 13:58:27 GMT):
Hello, I am trying to setup a Fabric environment to deploy a .bna built on composer. To do so I have followed this tutorial https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux. What it says is : 1) Generate certificates for peers and orderers using cryptogen 2) Generate a channel and the associated channel.tx, genesis block and anchor peers using configtxgen 3) Define the docker-compose-cli, docker-compose-base and peer-base files 4) Start the network using the command CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up -d 5) Make peers join the channel This instantiates X peers + Y orderers + 1 CLI containers. When I try to follow the official Composer tutorial about how to deploy the bna to a fabric network https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-single-org, when I get to the step 7 and try to install the bna with the command composer network install -c PeerAdmin@fabric-network -a tutorial-network@0.0.1.bna. I get the following error "Error: No valid responses from any peers.Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed" Any Idea where this comes from ? I am doing this installation on a single Ubuntu machine. I did not use the ./startFabric.sh script because I thought it was only a sort of minimal Fabric environment built only for Composer playground purpose

jradix (Wed, 11 Apr 2018 14:02:29 GMT):
it would have been nice to have a sequence diagram here : http://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html

vinayak03 (Wed, 11 Apr 2018 14:59:32 GMT):
Has joined the channel.

htyagi90 (Wed, 11 Apr 2018 15:09:05 GMT):
As off Fabric Version 1.1, you can issue a read query to an already instantiated chaincode (External chaincode), but not issue write query to a different chaincode. Can be install and instantiate a (external) chaincode from another external chaincode ?

SmartContract2018 (Wed, 11 Apr 2018 15:24:53 GMT):
where does the fabric store the ledger and CouchDB file (persistent storage) on peer node? I am looking for the physical location and would like to know how to control it

musemby (Wed, 11 Apr 2018 15:34:15 GMT):
Has joined the channel.

eramitg (Wed, 11 Apr 2018 15:40:33 GMT):
Hi Folks , I am an Phd Candidate in www.nitrr.ac.in my Linkedind Profile is https://www.linkedin.com/in/eramitg/ for sake of earning an Phd Degree i was proposed Blockchain Technology research work area to my guide so oom I request all of you gyus ,please guide me and assign me some research oriented task so that we mutullay benifited research related to Hyperledger Umbrella Project , All of you feel free to catch me on twitter or skype to https://twitter.com/eramitg1 or amitg.iitb skype id also in Zoom to in Zoom ID 3649222703 or whatsapp +917773011100 Regards

MisterJava (Wed, 11 Apr 2018 15:50:55 GMT):
Hey, one question: can there exist more than one ordering service per channel with different consensus alogirthm?

SmartContract2018 (Wed, 11 Apr 2018 15:52:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mPjoue7Gyvhhyn5Yp) @MisterJava Not as far as I am aware of.

MisterJava (Wed, 11 Apr 2018 15:53:48 GMT):
@SmartContract2018 okay, thank you!

pandrejko (Wed, 11 Apr 2018 16:02:59 GMT):
@jradix - Did you see the sequence diagram in section 2.4? http://hyperledger-fabric.readthedocs.io/en/latest/arch-deep-dive.html#the-ordering-service-delivers-a-transactions-to-the-peers Is that what you were looking for? Or something else?

chakra (Wed, 11 Apr 2018 16:55:27 GMT):
Hey I am developing a NodeJS clint

chakra (Wed, 11 Apr 2018 17:00:25 GMT):
Hey, I am developing a NodeJS client app. The fabric blockchain has TLS and TLS_Client enabled. I am able to enroll and register users. However, when I try to install the chain code on the peers, I get SSL Handshake error. I think the issue is with peer GRPCS connection and the associated tlsCACerts? Which tlsCACerts certificate am I supposed to send? Where do I get it? Please note that I am developing a NodeJS app and it is nor running on the peers. It remains outside the blockchain network and users can operate on the network using the app. Also, the request to install the chaincode is being send as a enrolled admn user

Ed.Curran (Wed, 11 Apr 2018 17:27:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R2gYZpiDoS2ZBS2qY) @chakra Yeah I've been struggling a bit to figure out exactly which cert is which. When you create your orderer and peers you can pass in a ConnectionOpts struct (https://fabric-sdk-node.github.io/global.html#ConnectionOpts__anchor, it's actually documented better here: https://github.com/hyperledger/fabric-sdk-node/blob/release-1.1/fabric-client/lib/Remote.js) It's in this stuct you set the tls certs and such. You need to set the 'pem' field and the 'ssl-target-name-override' at a minimum i believe and do this correctly when you create all your orderers and peers. If you used the cryptogen tool the cert matching the 'pem' field can be found in the tlscacert folder within the peer/orderers directory in crypto-config. I'm not actually 100% confident the pem field is for the tlscacert. I can't really figure out exactly what certs the fields in ConnectionOpts refer to. There is 'pem' (tlsca cert i think), 'clientKey' (?? pk found in keystore i guess?) and 'clientCert' (signedcert?). Then 'ssl-target-name-override' is just the address of the peer/orderer e.g peer0@org1.example.com or orderer.example.com

hyperbran (Wed, 11 Apr 2018 17:28:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qv7JMwQp446kzd7m9) @username343 are leader peers same as endorsing peers?

hyperbran (Wed, 11 Apr 2018 17:52:52 GMT):
hash algorithms have been broken by hackers e.g. SHA256. how then we can rely on immutability in hyperledger when these algorithms have been broken?

yacovm (Wed, 11 Apr 2018 17:59:29 GMT):
sha256 has been broken?

yacovm (Wed, 11 Apr 2018 17:59:29 GMT):
sha256 has been broken? :thinking_face:

mastersingh24 (Wed, 11 Apr 2018 18:03:06 GMT):
@hyperbran - 1) To date, I'm unaware of anyone actually compromising SHA256. Google showed that collision attacks on SHA-1 is possible though 2) In any case, even if someone was able to exploit SHA256, they would have to find all copies of the ledger (not just one) and replace their contents

hyperbran (Wed, 11 Apr 2018 18:15:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iRAQwtJf2yZ4AuojF) @mastersingh24 good point, thanks !

yacovm (Wed, 11 Apr 2018 18:25:51 GMT):
it also depends how "badly" the hash function is broken though

yacovm (Wed, 11 Apr 2018 18:26:16 GMT):
with what probability you can find a collision, and is the payload arbitrary, etc.

hyperbran (Wed, 11 Apr 2018 18:27:03 GMT):
Because enterprises are reluctant to put credentials onto clouds even when there is double hashing e.g. MD5 + SHA256, they would be even more reluctant to transact data that are only SHA256 protected e.g. health records. Now, my understanding is that the hash is applied in cumulative fashion on the blocks (I am not sure) i.e. sha256( sha256( sha256 ( sha256 ...)))... as the ledger grows more and more additional hashing occurs and that would make it very difficult to break. Is that correct?

yacovm (Wed, 11 Apr 2018 18:27:46 GMT):
if sha256 is broken then digital signatures are also broken

yacovm (Wed, 11 Apr 2018 18:27:50 GMT):
because you sign hashes

Ed.Curran (Wed, 11 Apr 2018 18:30:27 GMT):
yeah surely the whole identity system would be broken and being a permissioned blockchain hyperledger relies on knowing all members of the network .So if sha256 is broken it wouldn't end well.

hyperbran (Wed, 11 Apr 2018 18:35:17 GMT):
There is a company called Guardtime's that produced KSI blockchain. don't know much about it, but I think it built something on top of hyperledger. They deployed it in Estonia country wide healthcare system and in UAE

hyperbran (Wed, 11 Apr 2018 18:37:10 GMT):
""We should expect to see more intricate, complex and undetected data integrity attacks in the coming year, for two main reasons: financial gain and/or political manipulation. Data integrity attacks are the ultimate weaponisation of data," added Gault."

hyperbran (Wed, 11 Apr 2018 18:39:34 GMT):
"Johnson told IBTimes: "The Guardtime KSI blockchain is a bit different than say, the Bitcoin protocol, or the Ethereum protocol. Those blockchain providers have to address patient privacy issues because they literally put a copy of the transaction and the data itself in their blockchain. "Because they only thing that we are passing is a signature, patient privacy is assured and then the ability to actually extend a keyless signature to customers allows you to do real time tamper and manipulation detection. The rest of the industry hasn't caught up to develop a solution on how you do that with those other two protocols."

hyperbran (Wed, 11 Apr 2018 18:40:31 GMT):
Not sure whether the above applies to hyperledger as well

hyperbran (Wed, 11 Apr 2018 19:07:06 GMT):

this could be guardtime architecture

hyperbran (Wed, 11 Apr 2018 19:09:01 GMT):
Identity trust fabric is based on blockchain

hyperbran (Wed, 11 Apr 2018 19:19:01 GMT):
"The cost to hackers to attack and steal users' PII is more expensive because they require a distributed attack on many personal devices. In addition, the use of ITF enables communications between entities using zero-knowledge proofs. Zero-knowledge proofs are a family of cryptographic techniques that allow an entity to prove something to another entity without conveying any information other than the proof"

hyperbran (Wed, 11 Apr 2018 20:05:12 GMT):
"Guardtime provides solutions for general- and special-purpose decentralized identity use cases, with a primary focus on IoT and data security/integrity. These solutions are based on Guardtime's blockchain-enabled Keyless Signature Infrastructure (KSI) 12 technology and the Buldas, Laanoja and Truu (BLT) 13 authentication protocol. BLT provides nonrepudiation for KSI, which uses only hash functions and not cryptographic keys. KSI provides a new form of metadata that cryptographically links data to the properties of time, provenance, integrity and identity. A key use case is cross-domain credential management, where a decentralized identity architecture enables distributed systems, and facilities extend trust to each other for identity verification without predefined or explicit knowledge of entities. For example, a user who has access to the KSI can provide contextually based authorization via KSI signatures to a low-bandwidth wall sensor to make an access control decision. This token will include the signer, the time of signing and the integrity of data represented by that token with cryptographically linked evidence."

hyperbran (Wed, 11 Apr 2018 20:09:47 GMT):
It seems all of this is just to prevent rogue nodes joining the network. Everything still depends on how strong hash functions are

hyperbran (Wed, 11 Apr 2018 20:20:15 GMT):
This seems to be the correct explanation: "The cryptographic hash functions and data structure with hash pointers enable statistical immutability as the foundation of tamper-evident log services. A tamper-evident log provides a data structure that stores data. It also allows us to append data onto the end of the log. If an adversary modifies data anywhere in the blockchain, it will result in a hash pointer in the following block being incorrect. If we store the head of the list, then even if the adversary modifies all of the pointers to be consistent with the modified data, the head pointer will be incorrect, and we will detect the tampering."

hyperbran (Wed, 11 Apr 2018 20:33:03 GMT):

tamper-proof block chain

hyperbran (Wed, 11 Apr 2018 20:34:52 GMT):

Merkle tree

hyperbran (Wed, 11 Apr 2018 20:40:11 GMT):
If someone tampers with any data block at the bottom of the tree, that will cause the hash pointer at a higher level not to match. The tree structure simplifies the proof of membership and the proof of nonmembership and requires storing only the Merkle tree root in the block header.

scmchan (Wed, 11 Apr 2018 20:52:55 GMT):
is there a value in the genesis block configuration that limits the number of chaincode docker containers are allowed to be instantiated? I'm running into this strange issue where I am able to install chaincode on 3 peers of a particular org, but can only instantiate/build the docker container for the first 2

scmchan (Wed, 11 Apr 2018 20:52:55 GMT):
is there a value in the genesis block configuration that limits the number of chaincode docker containers are allowed to be instantiated? I'm running into this strange issue where I am able to install chaincode on 3 peers of a particular org, but can only instantiate cc containers for the first 2

scmchan (Wed, 11 Apr 2018 20:53:34 GMT):
the 3rd chaincode container never gets built. I checked the logs for the corresponding peer and get this:

scmchan (Wed, 11 Apr 2018 20:54:23 GMT):
`2018-04-11 20:45:40.504 UTC [chaincode] launchAndWaitForRegister -> DEBU 3b4 stopping due to error while launching Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b5 waiting for container(dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b6 got container (dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b7 Stop container dev-peer2.org1.dst.com-dst-chaincode-1.0(Container not running: dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b8 Kill container dev-peer2.org1.dst.com-dst-chaincode-1.0 (API error (409): {"message":"Cannot kill container: dev-peer2.org1.dst.com-dst-chaincode-1.0: Container db76ecde13d2aeb4af77652f191b414902fd1ec41760299054063ddcd7b0f4d8 is not running"} ) 2018-04-11 20:45:40.572 UTC [dockercontroller] stopInternal -> DEBU 3b9 Removed container dev-peer2.org1.dst.com-dst-chaincode-1.0 2018-04-11 20:45:40.572 UTC [container] unlockContainer -> DEBU 3ba container lock deleted(dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.572 UTC [chaincode] func1 -> DEBU 3bb chaincode dst-chaincode:1.0 launch seq completed 2018-04-11 20:45:40.572 UTC [chaincode] Launch -> ERRO 3bc launchAndWaitForRegister failed Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] callChaincode -> DEBU 3bd Exit 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> ERRO 3be failed to invoke chaincode name:"lscc" on transaction 58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77, error: Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> DEBU 3bf Exit 2018-04-11 20:45:40.572 UTC [lockbasedtxmgr] Done -> DEBU 3c0 Done with transaction simulation / query execution [281a72be-4cc6-42ad-926b-6bd9e31361fd] 2018-04-11 20:45:40.572 UTC [endorser] ProcessProposal -> DEBU 3c1 Exit `

scmchan (Wed, 11 Apr 2018 20:54:23 GMT):
`2018-04-11 20:45:40.504 UTC [chaincode] launchAndWaitForRegister -> DEBU 3b4 stopping due to error while launching Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b5 waiting for container(dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b6 got container (dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b7 Stop container dev-peer2.org1.dst.com-dst-chaincode-1.0(Container not running: dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b8 Kill container dev-peer2.org1.dst.com-dst-chaincode-1.0 (API error (409): {"message":"Cannot kill container: dev-peer2.org1.dst.com-dst-chaincode-1.0: Container db76ecde13d2aeb4af77652f191b414902fd1ec41760299054063ddcd7b0f4d8 is not running"} ) 2018-04-11 20:45:40.572 UTC [dockercontroller] stopInternal -> DEBU 3b9 Removed container dev-peer2.org1.dst.com-dst-chaincode-1.0 2018-04-11 20:45:40.572 UTC [container] unlockContainer -> DEBU 3ba container lock deleted(dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.572 UTC [chaincode] func1 -> DEBU 3bb chaincode dst-chaincode:1.0 launch seq completed 2018-04-11 20:45:40.572 UTC [chaincode] Launch -> ERRO 3bc launchAndWaitForRegister failed Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] callChaincode -> DEBU 3bd Exit 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> ERRO 3be failed to invoke chaincode name:"lscc" on transaction 58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77, error: Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> DEBU 3bf Exit 2018-04-11 20:45:40.572 UTC [lockbasedtxmgr] Done -> DEBU 3c0 Done with transaction simulation / query execution [281a72be-4cc6-42ad-926b-6bd9e31361fd] 2018-04-11 20:45:40.572 UTC [endorser] ProcessProposal -> DEBU 3c1 Exit`

scmchan (Wed, 11 Apr 2018 20:54:23 GMT):
` 2018-04-11 20:45:40.504 UTC [chaincode] launchAndWaitForRegister -> DEBU 3b4 stopping due to error while launching Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b5 waiting for container(dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b6 got container (dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b7 Stop container dev-peer2.org1.dst.com-dst-chaincode-1.0(Container not running: dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b8 Kill container dev-peer2.org1.dst.com-dst-chaincode-1.0 (API error (409): {"message":"Cannot kill container: dev-peer2.org1.dst.com-dst-chaincode-1.0: Container db76ecde13d2aeb4af77652f191b414902fd1ec41760299054063ddcd7b0f4d8 is not running"} ) 2018-04-11 20:45:40.572 UTC [dockercontroller] stopInternal -> DEBU 3b9 Removed container dev-peer2.org1.dst.com-dst-chaincode-1.0 2018-04-11 20:45:40.572 UTC [container] unlockContainer -> DEBU 3ba container lock deleted(dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.572 UTC [chaincode] func1 -> DEBU 3bb chaincode dst-chaincode:1.0 launch seq completed 2018-04-11 20:45:40.572 UTC [chaincode] Launch -> ERRO 3bc launchAndWaitForRegister failed Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] callChaincode -> DEBU 3bd Exit 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> ERRO 3be failed to invoke chaincode name:"lscc" on transaction 58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77, error: Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> DEBU 3bf Exit 2018-04-11 20:45:40.572 UTC [lockbasedtxmgr] Done -> DEBU 3c0 Done with transaction simulation / query execution [281a72be-4cc6-42ad-926b-6bd9e31361fd] 2018-04-11 20:45:40.572 UTC [endorser] ProcessProposal -> DEBU 3c1 Exit `

scmchan (Wed, 11 Apr 2018 20:54:23 GMT):
``` 2018-04-11 20:45:40.504 UTC [chaincode] launchAndWaitForRegister -> DEBU 3b4 stopping due to error while launching Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b5 waiting for container(dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [container] lockContainer -> DEBU 3b6 got container (dev-peer2.org1.dst.com-dst-chaincode-1.0) lock 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b7 Stop container dev-peer2.org1.dst.com-dst-chaincode-1.0(Container not running: dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.505 UTC [dockercontroller] stopInternal -> DEBU 3b8 Kill container dev-peer2.org1.dst.com-dst-chaincode-1.0 (API error (409): {"message":"Cannot kill container: dev-peer2.org1.dst.com-dst-chaincode-1.0: Container db76ecde13d2aeb4af77652f191b414902fd1ec41760299054063ddcd7b0f4d8 is not running"} ) 2018-04-11 20:45:40.572 UTC [dockercontroller] stopInternal -> DEBU 3b9 Removed container dev-peer2.org1.dst.com-dst-chaincode-1.0 2018-04-11 20:45:40.572 UTC [container] unlockContainer -> DEBU 3ba container lock deleted(dev-peer2.org1.dst.com-dst-chaincode-1.0) 2018-04-11 20:45:40.572 UTC [chaincode] func1 -> DEBU 3bb chaincode dst-chaincode:1.0 launch seq completed 2018-04-11 20:45:40.572 UTC [chaincode] Launch -> ERRO 3bc launchAndWaitForRegister failed Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] callChaincode -> DEBU 3bd Exit 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> ERRO 3be failed to invoke chaincode name:"lscc" on transaction 58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77, error: Timeout expired while starting chaincode dst-chaincode:1.0(networkid:dev,peerid:peer2.org1.dst.com,tx:58ca5db1ff9faaecce7a60ec56057a407c80d9bf7c2905458fbfa91705faca77) 2018-04-11 20:45:40.572 UTC [endorser] simulateProposal -> DEBU 3bf Exit 2018-04-11 20:45:40.572 UTC [lockbasedtxmgr] Done -> DEBU 3c0 Done with transaction simulation / query execution [281a72be-4cc6-42ad-926b-6bd9e31361fd] 2018-04-11 20:45:40.572 UTC [endorser] ProcessProposal -> DEBU 3c1 Exit ```

hyperbran (Thu, 12 Apr 2018 00:18:48 GMT):
I believe that Orderer do not see transactions, but just sorts them out. Only the peers that are transacting inside a channel can see particular transactions. Is that correct?

akula (Thu, 12 Apr 2018 01:23:35 GMT):
@hyperbran depends what "see" means to you. Orderer have full access to transaction, but its main task is to sort. Creation, endorsements, commits... all those stuffs are meant to peers to do

hyperbran (Thu, 12 Apr 2018 01:45:23 GMT):
For example, if the transaction is a measurement of the temperature inside a shipment e.g. 19 degrees Celsius, the Orderer will not see this number

tin.nguyen (Thu, 12 Apr 2018 03:19:45 GMT):
Has joined the channel.

lclclc (Thu, 12 Apr 2018 03:25:19 GMT):
A question about Fabric-CA. According to the normal flow I observe from examples, all clients communicating with peers must have a ECert, and that ECerts is usually got from CA server. Is it possible to use cryptogen to generate ECert?

akula (Thu, 12 Apr 2018 04:28:43 GMT):
@hyperbran the orderer may have access to that information, but its task is to sort, only. I don't know your real concern about it, but is important to keep in mind the roles of each player in the hyperledger architecture.

Unni_1994 (Thu, 12 Apr 2018 05:05:47 GMT):
Hi All, I have a doubt regarding the recovery of data from the couchdb, When all peers go down?

Unni_1994 (Thu, 12 Apr 2018 05:08:05 GMT):
Is there is any backup feature in couchdb

MosesSamPaul (Thu, 12 Apr 2018 05:48:18 GMT):
hey guys, I am just starting with Hyperledger and at chapter 8 of the edx course.

MosesSamPaul (Thu, 12 Apr 2018 05:48:27 GMT):
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/76a52d35a9f848d7a6313e7a45c4e1db/

MosesSamPaul (Thu, 12 Apr 2018 05:48:41 GMT):
when I try to run this command: $ node registerAdmin.js

MosesSamPaul (Thu, 12 Apr 2018 05:48:48 GMT):
I get this error

MosesSamPaul (Thu, 12 Apr 2018 05:48:49 GMT):
Mosess-MacBook-Pro:tuna-app Sam$ node registerAdmin.js Store path:/Users/Sam/.hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/Users/Sam/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:711:12) at ClientRequest.emit (events.js:127:13) at Socket.socketErrorListener (_http_client.js:394:9) at Socket.emit (events.js:127:13) at emitErrorNT (internal/streams/destroy.js:64:8) at process._tickCallback (internal/process/next_tick.js:114:19) Failed to enroll admin: Error: Failed to enroll admin

MosesSamPaul (Thu, 12 Apr 2018 05:48:58 GMT):
can someone help ?

MosesSamPaul (Thu, 12 Apr 2018 05:49:00 GMT):
please

username343 (Thu, 12 Apr 2018 05:49:28 GMT):
I'm trying to instantiate the marbles private chaincode using the experimental feature side db in fabric version 1.1 but when I run the instantiate command i get the following error -> "Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: invalid number of argument to lscc 7)" does anyone of you know what might be causing this?

username343 (Thu, 12 Apr 2018 05:49:43 GMT):
@MosesSamPaul is you fabric-ca container running?

MosesSamPaul (Thu, 12 Apr 2018 05:50:09 GMT):
Mosess-MacBook-Pro:tuna-app Sam$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

MosesSamPaul (Thu, 12 Apr 2018 05:50:21 GMT):
so I assume it's running eh?

username343 (Thu, 12 Apr 2018 05:50:37 GMT):
you don't have any entries for running containers

username343 (Thu, 12 Apr 2018 05:51:04 GMT):
so none of your containers are running, try to start the fabric network again, maybe you forgot?

MosesSamPaul (Thu, 12 Apr 2018 05:52:07 GMT):
by running this command right ? ./startFabric.sh

username343 (Thu, 12 Apr 2018 05:52:10 GMT):
yes

MosesSamPaul (Thu, 12 Apr 2018 05:52:44 GMT):
Mosess-MacBook-Pro:tuna-app Sam$ ./startFabric.sh # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down Removing network net_basic WARNING: Network net_basic not found. docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Pulling ca.example.com (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found

username343 (Thu, 12 Apr 2018 05:53:29 GMT):
ok, there might a be a folder named scripts, in your fabric-samples network or try to find the fabric-preloaded.sh file, and run it

MosesSamPaul (Thu, 12 Apr 2018 05:54:27 GMT):
ok let me try..BTW am completely new to this...and just started with the edx course..

username343 (Thu, 12 Apr 2018 05:54:33 GMT):
ok

MosesSamPaul (Thu, 12 Apr 2018 05:56:05 GMT):
is it because am inside the tuna_app folder and my fabric containers are in a different folder?

username343 (Thu, 12 Apr 2018 05:56:59 GMT):
you don't store the containers in the application folder, they are stored elsewhere managed by docker

username343 (Thu, 12 Apr 2018 05:57:16 GMT):
it's because you probably haven't downloaded the images for the required containers to be built

shailaja.mahara (Thu, 12 Apr 2018 06:01:12 GMT):
Could someone explain how to use multiple machines with multiple peers. How would you deploy the different components on the different machines?

username343 (Thu, 12 Apr 2018 06:03:09 GMT):
use docker swarm

shailaja.mahara (Thu, 12 Apr 2018 06:22:17 GMT):
thanks. that's a start

vinayak03 (Thu, 12 Apr 2018 06:28:11 GMT):
Hi I am trying to bring up the first network example with 1.1.0 version of fabric, I am getting below error after running bash byfn.sh up. OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed

vinayak03 (Thu, 12 Apr 2018 06:29:40 GMT):
Can someone help me out if I am missing anything. My environment is windows 10 with linux subsystem.

username343 (Thu, 12 Apr 2018 06:48:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JWJKwraWaa4WraTsd) @yacovm can you help me with this?

magicianx25 (Thu, 12 Apr 2018 07:20:16 GMT):
Hello, I am trying to do chaincode for developer tutorial but I don't know how to import the chaincode shim package and the peer protobuf package.

magicianx25 (Thu, 12 Apr 2018 07:20:52 GMT):
I try the command import "github.com/hyperledger/fabric/core/chaincode/shim" but doesn't work

magicianx25 (Thu, 12 Apr 2018 07:22:55 GMT):
nevermind found it

SukanyaMahashabde (Thu, 12 Apr 2018 07:35:47 GMT):
Hello, I just wanted to know that can a single peer run 2 different chaincode?

lclclc (Thu, 12 Apr 2018 07:54:54 GMT):
I believe it can

lclclc (Thu, 12 Apr 2018 07:55:21 GMT):
you can install and instantiate as many as you like chaincodes on a peer.

SaraEmily (Thu, 12 Apr 2018 07:58:09 GMT):
Hi! When you run "peer channel fetch config config_block.pb ...." where is the config_block acctually saved?? I can't find it but the ouput I can see that it has received a block

vinayak03 (Thu, 12 Apr 2018 08:01:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BoEbeQGeR5YJskoYj) Docker compose doesn't work on remote files so I have to run it from windows itself so that the files get copied and after that I was able to run the example.

Gh0stR0ck (Thu, 12 Apr 2018 09:23:08 GMT):
Has joined the channel.

Gh0stR0ck (Thu, 12 Apr 2018 09:23:12 GMT):
Hello guys, im pretty new to fabric. Im trying to get the first-network sample project working over multible devices. For the im trying to use docker swarm. I have a windows 7 devices. Using a virtuelbox with ubuntu xenial xerus on all devices and trying to create a swarming network. I can init a docker swarm with "docker swarm init" but if i use the docker swarm join command on another device (with same setup) i get the error "Error response from daemon: rpc error: code = 14 desc = grpc: the connection is unavailable". The firewall-cmd isnt installed on ubuntu. Could someone help me with this?

MonnyClara (Thu, 12 Apr 2018 09:25:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ofahwYK7jRCWovgEz) @Gh0stR0ck Can your docker communicate properly ?

Gh0stR0ck (Thu, 12 Apr 2018 09:27:13 GMT):
@MonnyClara i think that's the problem but i don't know why. They are connected tro a hotspot of a phone so that i dont have router issues. The virtualbox ubuntu can access the internet

MonnyClara (Thu, 12 Apr 2018 09:29:09 GMT):
@Gh0stR0ck As they are on different device, if the docker doesn't know how to resolve the other docker's IP. You can have issues with it, that's what I meant

Gh0stR0ck (Thu, 12 Apr 2018 09:30:16 GMT):
how can i be sure thats the problem?

MonnyClara (Thu, 12 Apr 2018 09:33:57 GMT):
@Gh0stR0ck I'm not sure about this ... If you do a `docker inspect `, you should be able to see the docker IP. Do this on docker situated on different device. Then, you can try to connect to the docker (`docker exec -it` ?) and ping the IP of the other docker. Am I clear ? :/

MonnyClara (Thu, 12 Apr 2018 09:33:57 GMT):
@Gh0stR0ck I'm not sure about this ... If you do a `docker inspect `, you should be able to see the docker IP. Do this on docker situated on different device. Then, you can try to connect to the docker ( `docker exec -it` ?) and ping the IP of the other docker. Am I clear ? :/

Gh0stR0ck (Thu, 12 Apr 2018 09:40:39 GMT):
Yes. I will try it now

Gh0stR0ck (Thu, 12 Apr 2018 09:45:07 GMT):
@MonnyClara im trying to get the docker id. But i see that with the "docker swarm init" that i dont have an active docker container

Gh0stR0ck (Thu, 12 Apr 2018 09:46:03 GMT):
@MonnyClara do i need a docker container before i can connect different machienes with docker swarm?

MonnyClara (Thu, 12 Apr 2018 09:59:07 GMT):
@Gh0stR0ck https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/ Doesn't look like

Gh0stR0ck (Thu, 12 Apr 2018 10:01:03 GMT):
@MonnyClara i will try it with a docker created. Thx

ahmadzafar (Thu, 12 Apr 2018 10:05:55 GMT):
Has joined the channel.

ahmadzafar (Thu, 12 Apr 2018 10:13:43 GMT):
How we can restore the state of database of a peer for a particular channel after crashing of peer?

haile 3 (Thu, 12 Apr 2018 10:48:36 GMT):
Has joined the channel.

ydennisy (Thu, 12 Apr 2018 11:04:50 GMT):
Has joined the channel.

ydennisy (Thu, 12 Apr 2018 11:05:43 GMT):
hello All! I have a few questions :)

ydennisy (Thu, 12 Apr 2018 11:06:37 GMT):
1. Everytime I add a new participant to my network, a transaction is created and a new block. Is this correct? If yes why is this the case? Anywhere I can read up to understand this.

ydennisy (Thu, 12 Apr 2018 11:07:36 GMT):
2. If I explore each block the hashes dont match as you would expect: 2. If I explore block by block the hashes do now match, as you would expect

ydennisy (Thu, 12 Apr 2018 11:07:36 GMT):
2. If I explore each block the hashes dont match as you would expect:

ydennisy (Thu, 12 Apr 2018 11:07:51 GMT):
``` "number": "2", "previous_hash": "ff9129b6e44bb51d0d58efba8c1df05d30691ba756a322ac9b7936a535f004c9", "data_hash": "d913e9b2494e1f3d31afbd48aae98c096c7f8330af72217619d9c68c4769804c", ```

ydennisy (Thu, 12 Apr 2018 11:08:15 GMT):
``` "number": "1", "previous_hash": "a4c330deecc3560ffd64019cc15c0c5fd52aba661cec5ee8ea6a95a82bb64b3d", "data_hash": "d810ee20b49cca907cc4786f3efd843544f260cb64cb00591322f178668bd1a5", ```

ydennisy (Thu, 12 Apr 2018 11:09:26 GMT):
i.e the `previous_hash` of 2 is not the `data_hash` of 1

ydennisy (Thu, 12 Apr 2018 11:10:52 GMT):
3. Final question ... Receiving data as the below format, when converting to a string I cannot get the actual data: ``` "transactions": [ { "signature": { "type": "Buffer", "data": [ 48, 68, 2, 32, 6, ```

ydennisy (Thu, 12 Apr 2018 11:14:22 GMT):
I have tried various methods `Buffer.from(txData).toString('utf8')`

ydennisy (Thu, 12 Apr 2018 11:15:54 GMT):
output : `"txData": "0D\u0002 \u0006\u0007ۺ�|r�~\nӠ���}-�\u001ba5z\u001c\u0002��\u001eg;�\u0002 _��⃸�5Ŗ�\"@)x��T�� s�h��6^��z",`

Archer1974 (Thu, 12 Apr 2018 11:48:49 GMT):
Has joined the channel.

anton.betsun (Thu, 12 Apr 2018 11:48:53 GMT):
Has joined the channel.

lclclc (Thu, 12 Apr 2018 12:55:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zi8CG4ppXb6kzBZQv) @ydennisy For your first question, if the participant you mentioned is organization, the answer is yes. The configuration is also encapsulated into a transaction and a block to distributed inside the network. You could get info about this from some chapter of configtxlator.

anton.betsun (Thu, 12 Apr 2018 13:12:32 GMT):
is there any company that already have a working fabric blockchain?

akula (Thu, 12 Apr 2018 13:14:02 GMT):
@anton.betsun yes, take a look: https://www.sdxcentral.com/articles/news/indian-lending-exchange-runs-hyperledger-fabric-production/2018/04/

ydennisy (Thu, 12 Apr 2018 13:19:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LBYiy4aKyZjnwjqPt) @lclclc thanks - but its not an org specifically just a participant I have modelled in my CTO files

anton.betsun (Thu, 12 Apr 2018 13:19:43 GMT):
thanks @akula! 🦈

Tony (Thu, 12 Apr 2018 13:25:00 GMT):
Has joined the channel.

Tony (Thu, 12 Apr 2018 13:28:45 GMT):
Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] when trying node enrollAdmin.js for fabcar example

SaraEmily (Thu, 12 Apr 2018 13:29:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BFRCMptEjwBGShzhG) @Tony Are you using docker in Windows? I had the same problem, one of the issue with Docker Toolbox or Docker for Windows is that you cannot use localhost / 127.0.0.1 as the address when trying to communicate from apps on the host (even in the QuickStart Terminal) to the endpoints of the Docker containers. When the QuickStart Terminal first launches Docker, you'll see that it will output the IP address of the endpoint you should use when communicating with exposed ports.

Tony (Thu, 12 Apr 2018 13:30:41 GMT):
@SaraEmily I am using mac

vick (Thu, 12 Apr 2018 13:30:57 GMT):
anyone have a guide on how to get hyperledger fabric running across multiple hosts?

vick (Thu, 12 Apr 2018 13:31:23 GMT):
i have been following the one on medium using swarm but i am using virtualbox machines so it's not really catered for that

SaraEmily (Thu, 12 Apr 2018 13:31:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TDEb5mn4BbBrPaiYj) @Tony Okay, still worth a try I would say :) (Change all occurrences from localhost to your Docker IP)

Tony (Thu, 12 Apr 2018 13:58:29 GMT):
Still not solved,

Tony (Thu, 12 Apr 2018 13:59:16 GMT):
Error is:: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] when trying node enrollAdmin.js for fabcar example

yancoupro (Thu, 12 Apr 2018 14:21:48 GMT):
Hi, I'm building a blockchain where multiple organizations are involved, each with a few peers. I do want to authentication to the webapp that makes calls to the blockchain. Any restrictions on using the blockchain to store webapp credentials ? I'm thinking of one channel per organization. Does it seem right to you ? Thanks in advance

akula (Thu, 12 Apr 2018 14:25:22 GMT):
@yancoupro I suggest you to take a look on Fabric-CA

akula (Thu, 12 Apr 2018 14:25:22 GMT):
@yancoupro I suggest you to take a look at Fabric-CA

akula (Thu, 12 Apr 2018 14:25:22 GMT):
@yancoupro I suggest you take a look at Fabric-CA

yancoupro (Thu, 12 Apr 2018 14:25:57 GMT):
I do already use Fabric-CA for blockchain accesses. but I want to add frontend web authentication to my application

akula (Thu, 12 Apr 2018 14:29:15 GMT):
@yancoupro I am on the same page you are. My approach was to build a DAPP in NodeJs by using composer Javascript API. That API let you access the identity registry and perform a login. Also, the `oauth2-server` is been used to issue JWT token

yancoupro (Thu, 12 Apr 2018 14:32:34 GMT):
Ok, I chose passportjs, but this is not at the same layer. I'm talking about storage. Where are your oauth2-server users stored ? could they be on the blockchain ?

yancoupro (Thu, 12 Apr 2018 14:33:25 GMT):
Since I have multiple peers per organisation, I will need some kind of database server just to store users. That's when I thought to reuse the blockchain

yancoupro (Thu, 12 Apr 2018 14:33:30 GMT):
.... ledger

Ed.Curran (Thu, 12 Apr 2018 14:35:55 GMT):
hey everyone, has anyone had success using the Client Identity Chaincode Library? (https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid). When installing my chaincode it fails as it can't find the library when it tries to import it. So it seems like the chaincode environment image doesn't include the library?

yxnl (Thu, 12 Apr 2018 15:03:33 GMT):
Has joined the channel.

epezhman (Thu, 12 Apr 2018 15:08:09 GMT):
Has joined the channel.

Ed.Curran (Thu, 12 Apr 2018 17:15:28 GMT):
Update: looks like its a known issure (https://jira.hyperledger.org/browse/FAB-9081?jql=text%20~%20%22github.com%2Fhyperledger%2Ffabric%2Fcore%2Fchaincode%2Flib%2Fcid%22)

Vrai1127 (Thu, 12 Apr 2018 17:48:40 GMT):
Hi, does anyone has template/framework estimating a typical Hyperledger Fabric project. If yes, it will be great if you could share

Rajen (Thu, 12 Apr 2018 21:27:50 GMT):
Has joined the channel.

zscole (Thu, 12 Apr 2018 21:48:47 GMT):
Has joined the channel.

chenjun-bj (Fri, 13 Apr 2018 02:14:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gbH38en5fWG6e5JYn) @ydennisy pervious_hash is hash of pervious block header, for signature data, you could try toString('hex')

easeev (Fri, 13 Apr 2018 03:15:56 GMT):
Has joined the channel.

rich (Fri, 13 Apr 2018 03:19:04 GMT):
Has joined the channel.

Whisker17 (Fri, 13 Apr 2018 04:11:20 GMT):
Has joined the channel.

YuHengbing (Fri, 13 Apr 2018 04:14:43 GMT):
Has joined the channel.

YuHengbing (Fri, 13 Apr 2018 04:17:27 GMT):
Hi,it almost takes 2.5 seconds when run Updating the Ledger in fabcar example. How to reduce the spent time, many thanks

ahmadzafar (Fri, 13 Apr 2018 04:58:21 GMT):
How we can backup transactions and statebase for all nodes peers and orderers? Suppose every nodes are crashed at the same time for some reasons or want to change configurations of nodes. Please guide me...

kavyamk (Fri, 13 Apr 2018 05:54:27 GMT):
Has joined the channel.

kavyamk (Fri, 13 Apr 2018 05:54:53 GMT):
how to setup a private hyper ledger fabric network with one organization and two peers

SukanyaMahashabde (Fri, 13 Apr 2018 07:20:10 GMT):
Hello, I am having two instances containing one org each(i.e. org1 on one instance and org2 on second instance). Both the org's have only one peer viz. peer0. I am basically trying to connect these two org's, so is their any documentation related to this or any way to accomplish this thing

SukanyaMahashabde (Fri, 13 Apr 2018 07:20:10 GMT):
Hello, I am having two instances containing one org each(i.e. org1 on one instance and org2 on second instance).Both the org's have only one peer viz. peer0. I am basically trying to connect these two org's, so is their any documentation related to this or any way to accomplish this thing

SukanyaMahashabde (Fri, 13 Apr 2018 07:20:10 GMT):
Hello, I am having two instances containing one org each(i.e. org1 on one instance and org2 on second instance). Both the org's have only one peer viz. peer0. I am basically trying to connect these two org's, so is their any documentation related to this or any way to accomplish this thing

SaraEmily (Fri, 13 Apr 2018 07:21:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PaDQcPycSGjbggc8M) @kavyamk Take a look at this tutorial, it might be a good start: http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

MonnyClara (Fri, 13 Apr 2018 07:22:12 GMT):
@SukanyaMahashabde You need to create Anchors : https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html#create-a-channel-configuration-transaction

SaraEmily (Fri, 13 Apr 2018 07:24:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fLio4eHmjNrPvqjMA) @Vrai1127 Hi, you can download a few sample from git, follow the instructions here: http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html

magicianx25 (Fri, 13 Apr 2018 07:45:34 GMT):
Hello, I am trying to compile my chaincode using Go language but I get an error

magicianx25 (Fri, 13 Apr 2018 07:45:43 GMT):

5.png

magicianx25 (Fri, 13 Apr 2018 07:45:48 GMT):
Anyone knows what this means?

NicolasGirardot (Fri, 13 Apr 2018 08:59:02 GMT):
Has joined the channel.

NicolasGirardot (Fri, 13 Apr 2018 09:02:33 GMT):
Hey guys I'm trying do get the last 10 blocks of my channel, for now I'm using the channelEventHub but I want that on connection of the event Hub it gets me the last 10 blocks, One of the problem is getting the current blockNumber to substract 10 to it and pass it as the startBlock option of channelEventHub constructor

NicolasGirardot (Fri, 13 Apr 2018 09:02:33 GMT):
Hey guys I'm trying do get the last 10 blocks of my channel, for now I'm using the channelEventHub but I want that on connection of the event Hub it gets me the last 10 blocks, One of the problem is getting the current blockNumber to substract 10 to it and pass it as the startBlock option of channelEventHub constructor

NicolasGirardot (Fri, 13 Apr 2018 09:02:33 GMT):
Hey guys I'm trying do get the last 10 blocks of my channel, for now I'm using the channelEventHub but I want that on connection of the event Hub it gets me the last 10 blocks, One of the problem is getting the current blockNumber to substract 10 to it and pass it as the startBlock option of channelEventHub constructor

NicolasGirardot (Fri, 13 Apr 2018 09:02:33 GMT):
Hey guys I'm trying do get the last 10 blocks of my channel, for now I'm using the channelEventHub but I want that on connection of the event Hub it gets me the last 10 blocks, One of the problem is getting the current blockNumber to substract 10 to it and pass it as the startBlock option of channelEventHub

Daiki0124 (Fri, 13 Apr 2018 09:24:03 GMT):
Has joined the channel.

Daiki0124 (Fri, 13 Apr 2018 09:24:25 GMT):
Hi! An errot occured when after running the command help me ・commmand curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' ・return {"success":true,"secret":"","message":"Jim enrolled Successfully","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjM2NDcwMzIsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Im9yZzEiLCJpYXQiOjE1MjM2MTEwMzJ9.u-P2M63I-jg-1ETLnfsFUbryFddiDA21IkWo2QwSwps"} ・log [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - End point : /users [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - User name : Jim [2018-04-13 18:17:12.111] [DEBUG] SampleWebApp - Org name : org1 [2018-04-13 18:17:12.112] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.113] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'Jim' } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'admin' } [2018-04-13 18:17:12.115] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start [2018-04-13 18:17:12.117] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular] [2018-04-13 18:17:12.118] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.119] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-pub' } [2018-04-13 18:17:12.120] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.120] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-priv' } [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.122] [INFO] Helper - Successfully loaded member from persistence [2018-04-13 18:17:12.130] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2018-04-13 18:17:12.132] [DEBUG] Helper - Jim failed to register [2018-04-13 18:17:12.132] [ERROR] Helper - Jim enrollment failed [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: 'admin' }

Daiki0124 (Fri, 13 Apr 2018 09:24:25 GMT):
Hi! An errot occured when after running the command help me ver1.0 ・command curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' ・return {"success":true,"secret":"","message":"Jim enrolled Successfully","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjM2NDcwMzIsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Im9yZzEiLCJpYXQiOjE1MjM2MTEwMzJ9.u-P2M63I-jg-1ETLnfsFUbryFddiDA21IkWo2QwSwps"} ・log [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - End point : /users [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - User name : Jim [2018-04-13 18:17:12.111] [DEBUG] SampleWebApp - Org name : org1 [2018-04-13 18:17:12.112] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.113] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'Jim' } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'admin' } [2018-04-13 18:17:12.115] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start [2018-04-13 18:17:12.117] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular] [2018-04-13 18:17:12.118] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.119] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-pub' } [2018-04-13 18:17:12.120] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.120] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-priv' } [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.122] [INFO] Helper - Successfully loaded member from persistence [2018-04-13 18:17:12.130] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2018-04-13 18:17:12.132] [DEBUG] Helper - Jim failed to register [2018-04-13 18:17:12.132] [ERROR] Helper - Jim enrollment failed [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: 'admin' }

zyzy5730 (Fri, 13 Apr 2018 09:29:40 GMT):
Has joined the channel.

zyzy5730 (Fri, 13 Apr 2018 09:29:54 GMT):
Hi! I went to an error when trying to `make configtxgen` the `hyperledger/fabric` source code on ubuntu Linux. ``` $ make configtxgen build/bin/configtxgen CGO_CFLAGS=" " GOBIN=/home/xxx/gits/fabric/build/bin go install -tags "experimental nopkcs11" -ldflags "-X github.com/hyperledger/fabric/common/tools/configtxgen/metadata.Version=1.1.1-snapshot-301c302" github.com/hyperledger/fabric/common/tools/configtxgen bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of: /home/xxx/go/src/github.com/hyperledger/fabric/vendor/plugin (vendor tree) /usr/lib/go-1.6/src/plugin (from $GOROOT) /home/xxx/go/src/plugin (from $GOPATH) Makefile:259: recipe for target 'build/bin/configtxgen' failed make: *** [build/bin/configtxgen] Error 1 ``` Some one can help? Thanks!

SaraEmily (Fri, 13 Apr 2018 09:37:58 GMT):
Hi! When running the tutorials for fabric, does anyone know where the Docker image is saved locally? :)

MonnyClara (Fri, 13 Apr 2018 09:47:05 GMT):
@SaraEmily I think it's in `/var/lib/docker/image/aufs`, not sure at all

SaraEmily (Fri, 13 Apr 2018 09:49:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hg3EZbnsizy7s2iAf) @MonnyClara Thanks, I'm running on Windows (should have mentioned it, sorry) so unfortunaly I don't have a path that looks like that :/

YuHengbing (Fri, 13 Apr 2018 09:49:41 GMT):
Hey guys, how much time will it spend when you update the Ledge by chaincode?

MonnyClara (Fri, 13 Apr 2018 09:51:39 GMT):
@SaraEmily What about this ? https://forums.docker.com/t/where-are-images-stored/9794

SaraEmily (Fri, 13 Apr 2018 09:55:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AL7EPX38Gyyi3pJZe) @MonnyClara Ah, great, thanks!

BhaveshPatadiya (Fri, 13 Apr 2018 10:22:09 GMT):
Has joined the channel.

BhaveshPatadiya (Fri, 13 Apr 2018 10:22:30 GMT):
Upgrading the network from 0.0.1 to 0.0.2 is not destroying the earlier container of 0.0.1. After upgrading I was in thought that existing 0.0.1 peer container would be replaced by the latest version container. Is there any reason for this? also is it the normal behaviour? If my application is having 20 version upgrade in a day, would that mean that I will have 20 containers running at the same time?

MisterJava (Fri, 13 Apr 2018 10:22:50 GMT):
Hi Folks, is it possible to change the consensus algorithm during the runtime or is it only possible to choose the desired algorithm at the Start?

HoneyShah (Fri, 13 Apr 2018 10:23:05 GMT):
Has joined the channel.

nebularnoise (Fri, 13 Apr 2018 12:08:08 GMT):
Has joined the channel.

SukanyaMahashabde (Fri, 13 Apr 2018 12:21:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6Y2Zw7tfkAGrcn2kh) @MonnyClara Thanks

omarqr (Fri, 13 Apr 2018 12:28:30 GMT):
I have started a fully functionnal Fabric network, deployed the business network archive, but I get this error when trying to start it using "composer network start --networkName hlfv1 --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card" `Starting business network hlfv1 at version 0.0.1 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Command failed` docker logs peer0.org1.example.com, gives me "[endorser] ProcessProposal -> ERRO 439 simulateProposal() resulted in chaincode response status 500 for txid: ..." Any idea why I am getting this error ?

nebularnoise (Fri, 13 Apr 2018 12:58:03 GMT):
Good afternoon ! I'm trying to connect to a fabric channel created by Composer, with the fabric-client Node.js SDK. I get the following error from all my peers when I try to channel.joinChannel ``` Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists) ``` Tutorials I could find are only about *creating* channels, not joining existing ones. Anyone has experience with conencting to existing fabric networks on existing channels ?

nebularnoise (Fri, 13 Apr 2018 12:58:03 GMT):
Good afternoon ! I'm trying to connect to a fabric channel created by Composer, with the fabric-client Node.js SDK. I get the following error from all my peers when I try to channel.joinChannel ``` Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists) ``` Tutorials I could find are only about *creating* channels, not joining existing ones. Anyone has experience with connecting to existing fabric networks on existing channels ?

fTrestour (Fri, 13 Apr 2018 12:59:56 GMT):
Has joined the channel.

mespgit (Fri, 13 Apr 2018 15:30:44 GMT):
Has joined the channel.

mespgit (Fri, 13 Apr 2018 15:30:55 GMT):
hi guys , i just started learning hyperledger fabric , i did all the setups mentioned in site .. but when started building my first network i got below error "Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050:"

huy.tranibm (Fri, 13 Apr 2018 16:12:53 GMT):
Hello guys, I have a peer's cert that has attribute hf.type=client, is this an error? should it be hf.type=peer instead? will this cause the peer endorsing the transaction to be invalid? Thank you

huy.tranibm (Fri, 13 Apr 2018 16:12:53 GMT):
Hello guys, I have a peer's cert that has attribute hf.type=client, is this an error? should it be hf.type=peer instead? will this cause the peer endorsing the transaction to be invalid? Thank you, this question is related to fabric 1.1, thank you

huy.tranibm (Fri, 13 Apr 2018 16:13:23 GMT):
```Owner: CN=peer0ec3, OU=client + OU=org1, O=Hyperledger, ST=North Carolina, C=US Issuer: CN=fabric-ca-server-org1CA, OU=Fabric, O=Hyperledger, ST=North Carolina, C=US Serial number: 2da60c8d52aecf0cbe1b89dfda05b15b2f4854b Valid from: Wed Apr 11 10:44:00 CDT 2018 until: Sun Mar 10 18:49:00 CDT 2019 Certificate fingerprints: MD5: D7:C3:FD:7C:76:73:09:A3:2F:7E:41:2E:2E:DB:DC:9E SHA1: 7C:F0:6B:26:B3:57:AA:1D:26:E3:C4:67:A4:20:AE:42:60:41:F6:70 SHA256: 16:57:3D:A8:B0:8D:C7:9E:7A:42:35:F2:4A:67:F8:9C:49:3B:A4:B6:72:0D:D9:58:37:F3:92:A3:CB:44:AE:41 Signature algorithm name: SHA256withECDSA Version: 3 Extensions: #1: ObjectId: 1.2.3.4.5.6.7.8.1 Criticality=false 0000: 7B 22 61 74 74 72 73 22 3A 7B 22 68 66 2E 41 66 ."attrs":."hf.Af 0010: 66 69 6C 69 61 74 69 6F 6E 22 3A 22 6F 72 67 31 filiation":"org1 0020: 22 2C 22 68 66 2E 45 6E 72 6F 6C 6C 6D 65 6E 74 ","hf.Enrollment 0030: 49 44 22 3A 22 70 65 65 72 30 65 63 33 22 2C 22 ID":"peer0ec3"," 0040: 68 66 2E 54 79 70 65 22 3A 22 63 6C 69 65 6E 74 hf.Type":"client 0050: 22 7D 7D ".. #2: ObjectId: 2.5.29.35 Criticality=false AuthorityKeyIdentifier [ KeyIdentifier [ 0000: FA 3C 17 92 B4 80 E9 39 A5 63 CE 07 00 4F 44 B1 .<.....9.c...OD. 0010: 60 5A 76 B0 `Zv. ] ] #3: ObjectId: 2.5.29.19 Criticality=true BasicConstraints:[ CA:false PathLen: undefined ] #4: ObjectId: 2.5.29.15 Criticality=true KeyUsage [ Key_CertSign ] #5: ObjectId: 2.5.29.17 Criticality=false SubjectAlternativeName [ DNSName: ] #6: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ 0000: F9 32 B2 81 E3 82 B5 48 52 4B 88 D8 BB F0 E6 12 .2.....HRK...... 0010: B0 B6 F1 DE .... ] ] ```

aviralwal (Fri, 13 Apr 2018 16:57:42 GMT):
Getting this error while running `composer network start` :- `failed to invoke chaincode name:"lscc" , error: transaction returned with failure: ReferenceError: require is not defined`. Can anyone help ?

aviralwal (Fri, 13 Apr 2018 16:57:42 GMT):
Getting this error while running `composer network start` :- `failed to invoke chaincode name:"lscc" , error: transaction returned with failure: ReferenceError: require is not defined` inside peer logs. Can anyone help ?

scally (Fri, 13 Apr 2018 17:01:57 GMT):
Has joined the channel.

scally (Fri, 13 Apr 2018 17:23:47 GMT):
Hi everyone, I have a question about channels. Let's say I have a network with 2 orgs, and 2 peers in each org. (peer0-1 in org1-2) Can I create a channel at the peer level across orgs? For example, could I create a channel that contains peer0.org1 and peer0.org2, that also does not contain peer1.org1 and peer1.org2?

hyperbran (Fri, 13 Apr 2018 17:31:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=unDzgpMg7n7CQAaqe) @scally I think yes

hyperbran (Fri, 13 Apr 2018 17:34:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W9ek3AcyxCkFHuh74) @akula I've read somewhere (forgot where) that Orderer is like a Postal Office sorting out envelopes. All they can see is envelope and cannot read letters inside those envelops (envelops an analogy with transactions)

hyperbran (Fri, 13 Apr 2018 17:34:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AcNEkZC4Tet7d2e4m) @scally https://developer.ibm.com/courses/all/blockchain-essentials/

rtroostibm (Fri, 13 Apr 2018 17:38:28 GMT):
Has joined the channel.

scally (Fri, 13 Apr 2018 17:46:23 GMT):
@hyperbran Do you know where I can find more info?

sklymenko (Fri, 13 Apr 2018 18:02:40 GMT):
Has joined the channel.

hyperbran (Fri, 13 Apr 2018 18:47:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AcNEkZC4Tet7d2e4m) @scally https://developer.ibm.com/courses/all/blockchain-essentials/

varinder (Fri, 13 Apr 2018 18:48:07 GMT):
If I am doing a transaction and don't want to store large amounts of data on to the ledger but only store the transaction crypto hash, what alternatives exist for where the file contents can be stored? I'd like to be in a scenario where the peers do not get bogged down with large amounts of data on transactions however still be able to verify the changes in the file. Is there tutorials or any resources that exist that talk about using some file storage etc? Really curious, thanks.

hyperbran (Fri, 13 Apr 2018 18:51:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dMD23dSAoKSGREuGx) @varinder gRPC protocol is very efficient full duplex binary protocol underlying all hyperledger communications

hyperbran (Fri, 13 Apr 2018 18:54:56 GMT):
Not quite sure, but I think I've read somewhere that the hyperledger supports throughput of 1000s of TPS, or even 10s of 1000s. This is 20 to 50 times the throughput that an average bank can achieve with current technologies

varinder (Fri, 13 Apr 2018 19:25:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=j4P82LNSQn2EqH6nc) @hyperbran thanks, I will look into it

varinder (Fri, 13 Apr 2018 19:26:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JTnE3pFFZxfRr5rBa) @hyperbran I am more interested in the ledger storage on peers, I understand the throughput is relatively quick

SmartContract2018 (Fri, 13 Apr 2018 19:29:37 GMT):
I am trying to deploy fabric nodes on multiple Ubuntu boxes. The fabric-samples work ok when I run it on the same box (using docker container). How do I configure an additional peer node on another box, to connect to the fabric network on my first box?

smontsaroff (Fri, 13 Apr 2018 22:28:45 GMT):
Has joined the channel.

smontsaroff (Sat, 14 Apr 2018 00:57:27 GMT):
I am trying to run the first-network demo (the Building Your First Network tutorial ) on Ubuntu 16.04.4 LTS, from https://github.com/hyperledger/fabric-samples.git. For space reasons, I don't want images locally, but I find that pulling hyperledger/fabric-orderer:latest fails unless I have the image locally. Is this a 'restriction' or a bug in the scripts?

Rakeshp 5 (Sat, 14 Apr 2018 02:01:18 GMT):
Has joined the channel.

akula (Sat, 14 Apr 2018 03:23:28 GMT):
@smontsaroff I've noticed that latest tag are not working for reasons unknown. Try to specify the image version you need

YuHengbing (Sat, 14 Apr 2018 08:27:30 GMT):
Hi guys, have you run the fabcar example? it almost takes 2.5 seconds when run Updating the Ledger in this example. How to reduce the spent time, many thanks

mauriziocarioli (Sat, 14 Apr 2018 14:45:36 GMT):
Has joined the channel.

mrkiouak (Sat, 14 Apr 2018 18:20:19 GMT):
cross posting from #fabric: I'm having trouble validating whether or not the peer event service port definition is still done separate from & in addition to the default peer port? (I ask with an eye on recent event hub overhaul) http://hyperledger-fabric.readthedocs.io/en/release-1.1/peer_event_services.html does not appear to provide details on the event service port specification there are a few extant mentions of 7053, https://github.com/STTOOA/hyperledger-fabric/search?p=1&q=7053&type=&utf8=✓ but its not clear whether or not these are up to date or remnants in tests from the previous versions, and so no longer needed

mrkiouak (Sat, 14 Apr 2018 18:32:35 GMT):
cross posting from #fabric: I'm having trouble validating whether or not the peer event service port definition is still done separate from & in addition to the default peer port? (I ask with an eye on recent event hub overhaul) http://hyperledger-fabric.readthedocs.io/en/release-1.1/peer_event_services.html does not appear to provide details on the event service port specification mrkiouak 2:32 PM there are a few extant mentions of 7053, https://github.com/hyperledger/fabric/search?p=2&q=7053&type=&utf8=✓ but its not clear whether or not these are up to date or remnants in tests from the previous versions, and so no longer nee

mrkiouak (Sat, 14 Apr 2018 18:32:35 GMT):
cross posting from #fabric: I'm having trouble validating whether or not the peer event service port definition is still done separate from & in addition to the default peer port? (I ask with an eye on recent event hub overhaul) http://hyperledger-fabric.readthedocs.io/en/release-1.1/peer_event_services.html does not appear to provide details on the event service port specification mrkiouak 2:32 PM there are a few extant mentions of 7053, https://github.com/hyperledger/fabric/search?p=2&q=7053&type=&utf8=✓ but its not clear whether or not these are up to date or remnants in tests from the previous versions, and so no longer needed

pankajcheema (Sun, 15 Apr 2018 08:39:18 GMT):
Hi Experts

pankajcheema (Sun, 15 Apr 2018 08:40:09 GMT):
I am getting this error while using `peer channel create` command on physical network ```Error:``` ```peer channel create -o hr.debut.com:7050 -c channel1 -f /Users/akshay/Blockchain/network/channel-artifacts/channel.tx --tls --cafile /Users/akshay/Blockchain/network/crypto-config/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem 2018-04-14 19:45:51.242 IST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-14 19:45:51.242 IST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-14 19:45:51.245 IST [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-04-14 19:45:51.246 IST [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2018-04-14 19:45:51.246 IST [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2018-04-14 19:45:51.246 IST [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2018-04-14 19:45:51.246 IST [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2018-04-14 19:45:51.246 IST [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AC6060A0744454641554C5412BA062D...53616D706C65436F6E736F727469756D 2018-04-14 19:45:51.246 IST [msp/identity] Sign -> DEBU 009 Sign: digest: 59439595A8A51B2A4DDC54D4C77540FCF5390D09A0A319D2058CEE331BFA5808 2018-04-14 19:45:51.247 IST [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2018-04-14 19:45:51.247 IST [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2018-04-14 19:45:51.247 IST [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2018-04-14 19:45:51.247 IST [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2018-04-14 19:45:51.247 IST [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AFC060A1408021A0608979AC8D60522...E1754BC760E5CB73BFAF4DD1B092FA2C 2018-04-14 19:45:51.247 IST [msp/identity] Sign -> DEBU 00f Sign: digest: C1EAC6FCD10E06BA82528C1345573E9E15DC0F93EF4D2C34E4FE3221FB07183E Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server```

pankajcheema (Sun, 15 Apr 2018 08:41:07 GMT):
The `orderer` on other machine shows the following logs: ```2018-04-14 19:45:51.256 IST [policies] Evaluate -> DEBU 164 == Evaluating *cauthdsl.policy Policy /Channel/Application/AxisBankPvtLtd/Admins == 2018-04-14 19:45:51.256 IST [cauthdsl] deduplicate -> ERRO 165 Principal deserialization failure (MSP DEFAULT is unknown) for identity 0a0744454641554c5412ba062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434e6a4343416432674177494241674952414d6e66392f646d563952764343567739705a5155665577436759494b6f5a497a6a304541774977675945780a437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d525977464159445651514845773154595734670a526e4a68626d4e7063324e764d526b77467759445651514b45784276636d63784c6d56345957317762475575593239744d517777436759445651514c45774e440a543141784844416142674e5642414d5445324e684c6d39795a7a45755a586868625842735a53356a623230774868634e4d5463784d5445794d544d304d5445780a5768634e4d6a63784d5445774d544d304d544578576a42704d517377435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a760a636d3570595445574d4251474131554542784d4e5532467549455a795957356a61584e6a627a454d4d416f474131554543784d44513039514d523877485159440a5651514445785a775a5756794d433576636d63784c6d56345957317762475575593239744d466b77457759484b6f5a497a6a3043415159494b6f5a497a6a30440a41516344516741455a3853345637314f424a70794d49565a64775964465841636b49747270765372436630485167343057573958536f4f4f4f3736492b556d660a456b6d546c494a5850372f4179525253525533386f493849767475344d364e4e4d45737744675944565230504151482f42415144416765414d417747413155640a457745422f7751434d4141774b7759445652306a42435177496f4167696e4f5249686e5045465a5568586d366557426b6d374b375a633852342f7a374c5734480a6f7373446c437377436759494b6f5a497a6a304541774944527741775241496756696b49555a7a6766754673474c5148574a55564a43553770446145546b617a0a507a46677343694c785541434943677a4a596c57376e765a7850376236746265753374386d72684d5851733935366d44342b426f4b754e490a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2018-04-14 19:45:51.256 IST [cauthdsl] func1 -> DEBU 166 0xc42012ea18 gate 1523715351256821000 evaluation starts 2018-04-14 19:45:51.256 IST [cauthdsl] func2 -> DEBU 167 0xc42012ea18 signed by 0 principal evaluation starts (used [false]) 2018-04-14 19:45:51.256 IST [cauthdsl] func2 -> DEBU 168 0xc42012ea18 principal evaluation fails 2018-04-14 19:45:51.256 IST [cauthdsl] func1 -> DEBU 169 0xc42012ea18 gate 1523715351256821000 evaluation fails 2018-04-14 19:45:51.256 IST [policies] Evaluate -> DEBU 16a Signature set did not satisfy policy /Channel/Application/AxisBankPvtLtd/Admins 2018-04-14 19:45:51.256 IST [policies] Evaluate -> DEBU 16b == Done Evaluating *cauthdsl.policy Policy /Channel/Application/AxisBankPvtLtd/Admins 2018-04-14 19:45:51.256 IST [policies] func1 -> DEBU 16c Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ AxisBankPvtLtd.Admins DebutInfotechPvtLtd.Admins ] 2018-04-14 19:45:51.256 IST [policies] Evaluate -> DEBU 16d Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy 2018-04-14 19:45:51.256 IST [policies] Evaluate -> DEBU 16e == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy 2018-04-14 19:45:51.257 IST [orderer/common/broadcast] Handle -> WARN 16f [channel: channel1] Rejecting broadcast of config message from 192.168.8.102:53556 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining 2018-04-14 19:45:51.257 IST [orderer/common/server] func1 -> DEBU 170 Closing Broadcast stream 2018-04-14 19:45:51.259 IST [common/deliver] Handle -> WARN 171 Error reading from 192.168.8.102:53555: rpc error: code = Canceled desc = context canceled 2018-04-14 19:45:51.259 IST [orderer/common/server] func1 -> DEBU 172 Closing Deliver stream```

pankajcheema (Sun, 15 Apr 2018 08:41:38 GMT):
It shows the error while executing the following command ```peer channel create -o hr.debut.com:7050 -c channel1 -f /Users/akshay/Blockchain/network/channel-artifacts/channel.tx --tls --cafile /Users/akshay/Blockchain/network/crypto-config/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem```

pankajcheema (Sun, 15 Apr 2018 08:42:17 GMT):
*NOTE* If I try this with `Docker` it works fine. But on physical network and machine it shows this error

pankajcheema (Sun, 15 Apr 2018 08:42:45 GMT):
If any expert have any suggestion please let me know

pankajcheema (Sun, 15 Apr 2018 08:42:56 GMT):
It would be really helpful for me

pankajcheema (Sun, 15 Apr 2018 08:42:57 GMT):
Thanks

pankajcheema (Sun, 15 Apr 2018 08:45:03 GMT):
@yacovm

yacovm (Sun, 15 Apr 2018 08:56:14 GMT):
oh you need to prefix the `peer channel create` command

yacovm (Sun, 15 Apr 2018 08:56:22 GMT):
with the environmet nvariables

yacovm (Sun, 15 Apr 2018 08:56:29 GMT):
see examples/e2e_cli

mozkarakoc (Sun, 15 Apr 2018 09:00:46 GMT):
hi, how can I define multiple msp's for org? It was documented at https://hyperledger-fabric.readthedocs.io/en/release-1.1/membership/membership.html but is there a tutorial with docker etc?

mozkarakoc (Sun, 15 Apr 2018 09:02:16 GMT):
@yacovm

yacovm (Sun, 15 Apr 2018 09:34:15 GMT):
multiple MSPs for org?

yacovm (Sun, 15 Apr 2018 09:34:18 GMT):
no, no document that i know of

yacovm (Sun, 15 Apr 2018 09:34:23 GMT):
you need to use OUs

yacovm (Sun, 15 Apr 2018 09:34:33 GMT):
or intermediate CAs

mozkarakoc (Sun, 15 Apr 2018 09:41:09 GMT):
@yacovm sorry, my mistake. let me change the question. Is there a tutorial with intermediate ca's that provide multiple configuration of msp's?

mozkarakoc (Sun, 15 Apr 2018 09:41:09 GMT):
@yacovm sorry, my mistake. let me change the question. Is there a tutorial with intermediate ca's that provide multiple configuration of msp?

marvint (Sun, 15 Apr 2018 09:41:25 GMT):
Has joined the channel.

yacovm (Sun, 15 Apr 2018 09:43:52 GMT):
not that i know of, but i might not know

yacovm (Sun, 15 Apr 2018 09:43:58 GMT):
ask in #fabric-documentation

mozkarakoc (Sun, 15 Apr 2018 09:46:49 GMT):
got it, thanks

chakra (Sun, 15 Apr 2018 10:48:42 GMT):
Somebody please help me with this. I have been struggeling for days. Alright, I have setup my project as described in fabric-sample/fabric-ca I am creaing an RestAPI application to perfrom operation on the network. 1. Enroll admin works 2. Register user works 3. I want to install a chain code. The order and peers are as follows in network-config.yaml orderers: orderer1-xxx1: url: grpcs://orderer1-xxx1:7050 # these are standard properties defined by the gRPC library # they will be passed in as-is to gRPC client constructor grpcOptions: ssl-target-name-override: orderer1-xxx1 grpc-max-send-message-length: 15 #tlsCACerts: #path: What the should be here or is it needed at all. Why is it needed. Note we are running it from different machine/docker and not from the orderer or peer. Tried with almost every file still doesnot work # # List of peers to send various requests to, including endorsement, query # and event listener registration. # peers: peer1-xxx1: # this URL is used to send endorsement and query requests url: grpc://peer1-xxx1:7051 # this URL is used to connect the EventHub and registering event listeners eventUrl: grpc://peer1-xxx1:7053 grpcOptions: ssl-target-name-override: peer1-xxx1 #tlsCACerts: #path: What the should be here or is it needed at all. Why is it needed. Note we are running it from different machine/docker and not from the orderer or peer. Tried with almost every file still doesnot work peer2-xxx1: url: grpc://peer2-xxx1:7056 eventUrl: grpc://peer2-xxx1:7058 grpcOptions: #tlsCACerts: #path: What the should be here or is it needed at all. Why is it needed. Note we are running it from different machine/docker and not from the orderer or peer. Tried with almost every file still doesnot work 4 Response as 2018-04-15 10:30:45.417] [DEBUG] SampleWebApp - chaincodeVersion : v0 [2018-04-15 10:30:45.417] [DEBUG] SampleWebApp - chaincodeType : node [2018-04-15 10:30:45.417] [DEBUG] install-chaincode - ============ Install chaincode on organizations ============ [2018-04-15 10:30:45.417] [INFO] install-chaincode - Calling peers in organization "xxx1" to join the channel ...... ....... 2018-04-15 10:30:45.607] [DEBUG] Helper - User user1 was found to be registered and enrolled [2018-04-15 10:30:45.607] [DEBUG] Helper - getClientForOrg - ****** END xxx1 user1 [2018-04-15 10:30:45.607] [DEBUG] install-chaincode - Successfully got the fabric client for the organization "xxx1" [2018-04-15 10:30:45.610] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1-xxx1 [2018-04-15 10:30:45.611] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer2-xxx1 info: [packager/Node.js]: packaging Node from ./artifacts/src/github.com/example_cc/node [2018-04-15 10:30:45.630] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/home/dev/xxx1DAPP/node_modules/grpc/src/client.js:64:15) at /home/dev/xxx1DAPP/node_modules/grpc/src/client.js:583:15 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/dev/xxx1DAPP/node_modules/grpc/src/client.js:64:15) at /home/dev/xxx1DAPP/node_modules/grpc/src/client.js:583:15 [2018-04-15 10:30:45.636] [ERROR] install-chaincode - xxxxxxxxx>>>>>Error: 14 UNAVAILABLE: EOF,Error: 14 UNAVAILABLE: Connect Failed [2018-04-15 10:30:45.636] [ERROR] install-chaincode - TypeError: proposalResponses.toJSON is not a function at Object.installChaincode (/home/dev/xxx1DAPP/app/install-chaincode.js:66:66) at [2018-04-15 10:30:45.636] [ERROR] install-chaincode - Failed to install due to:TypeError: proposalResponses.toJSON is not a function (node:171) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to install due to:TypeError: proposalResponses.toJSON is not a function (node:171) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Daiki0124 (Sun, 15 Apr 2018 15:20:39 GMT):
Hi! An errot occured when after running the command help me ver1.0 ・command curl -s -X POST http://localhost:4000/users -H "content-type: application/x-www-form-urlencoded" -d 'username=Jim&orgName=org1' ・return {"success":true,"secret":"","message":"Jim enrolled Successfully","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjM2NDcwMzIsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Im9yZzEiLCJpYXQiOjE1MjM2MTEwMzJ9.u-P2M63I-jg-1ETLnfsFUbryFddiDA21IkWo2QwSwps"} ・log [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - End point : /users [2018-04-13 18:17:12.110] [DEBUG] SampleWebApp - User name : Jim [2018-04-13 18:17:12.111] [DEBUG] SampleWebApp - Org name : org1 [2018-04-13 18:17:12.112] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.113] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'Jim' } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kvs_peerOrg1' } } [2018-04-13 18:17:12.114] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'admin' } [2018-04-13 18:17:12.115] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start [2018-04-13 18:17:12.117] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular] [2018-04-13 18:17:12.118] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.118] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.119] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-pub' } [2018-04-13 18:17:12.120] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore resolving store [2018-04-13 18:17:12.120] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: '74ac5ffd31ad29ed0de1f97501275adfd05b9c8db54d06f6e585a0d35097e549-priv' } [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.122] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.122] [INFO] Helper - Successfully loaded member from persistence [2018-04-13 18:17:12.130] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2018-04-13 18:17:12.132] [DEBUG] Helper - Jim failed to register [2018-04-13 18:17:12.132] [ERROR] Helper - Jim enrollment failed [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.132] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: aa373e539ff352df8edde8865a5b8d4e2e5bcb0b7f64380bba9dae805005515d [2018-04-13 18:17:12.133] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: de3f1291aeba3a0d7b59b92c2da77a5f24fc86f725cc59d8cd2a19d82edd279e [2018-04-13 18:17:12.133] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: 'admin' } zyzy5730 6:29 PM

waleed (Sun, 15 Apr 2018 16:12:39 GMT):

Clipboard - April 15, 2018 6:12 PM

CharlieSmith (Sun, 15 Apr 2018 16:21:28 GMT):
Has joined the channel.

mertcanyucel (Sun, 15 Apr 2018 18:51:02 GMT):
Has joined the channel.

sunnrunner (Sun, 15 Apr 2018 19:06:16 GMT):
Has joined the channel.

lclclc (Mon, 16 Apr 2018 02:08:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TtXg6MFx3ZwAEXEkP) @waleed Haven't met this before, but looks like you are using anchor tx to update the channel, maybe it it is related to incorrect tx file.

kavyamk (Mon, 16 Apr 2018 05:11:35 GMT):
when i try to instatiate chaincode with command: peer chaincode instantiate -C -n mycc -P "AND('Org1.member', 'Org2.member')" im getting error Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

kavyamk (Mon, 16 Apr 2018 05:11:43 GMT):
how to resolve it

Unni_1994 (Mon, 16 Apr 2018 05:43:05 GMT):
kafka

sudharsand (Mon, 16 Apr 2018 05:56:20 GMT):
Has joined the channel.

sudharsand (Mon, 16 Apr 2018 05:56:34 GMT):
Am new to hyperledger fabric, i followed hyperledger build first network page. But getting Error endorsing chaincode : rpc error : code = unknown desc

sudharsand (Mon, 16 Apr 2018 06:05:39 GMT):

byfn.png

shailaja.mahara (Mon, 16 Apr 2018 06:52:30 GMT):
hi everyone

shailaja.mahara (Mon, 16 Apr 2018 06:52:48 GMT):
could anyone tell me what is the use of having a cli container.

shailaja.mahara (Mon, 16 Apr 2018 06:53:02 GMT):
and can i run my network without it?

HariKrishnan_1408 (Mon, 16 Apr 2018 07:04:05 GMT):
Has joined the channel.

HariKrishnan_1408 (Mon, 16 Apr 2018 07:04:14 GMT):
HI. Am Hari

HariKrishnan_1408 (Mon, 16 Apr 2018 07:05:57 GMT):
When am running " ./byfn.sh -m up " Command. Am getting error " Unable to start the Network "!!!!

HariKrishnan_1408 (Mon, 16 Apr 2018 07:06:00 GMT):
$ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... 2018-04-16 06:51:58.096 UTC [main] main -> INFO 001 Exiting..... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.1.0 Pulling orderer.example.com (hyperledger/fabric-orderer:x86_64-1.0.3)... Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) ERROR !!!! Unable to start network

magicianx25 (Mon, 16 Apr 2018 07:16:05 GMT):
@HariKrishnan_1408 is your docker running?

abalandin (Mon, 16 Apr 2018 07:29:46 GMT):
Has joined the channel.

DerekC (Mon, 16 Apr 2018 08:48:15 GMT):
Has joined the channel.

zasamen (Mon, 16 Apr 2018 08:49:46 GMT):
Hi. i've got that error on `instantiating` chaincode. ```Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network _default not found"}``` It is because variable COMPOSE_PROJECT_NAME is not set. But when should i set it? Usually it depends on the directory name.

DerekC (Mon, 16 Apr 2018 08:52:59 GMT):
I got a problem when using GetHistoryForKey When the return payload size is large (around 400KB) It always return `[500] gRPC Transport Status Code: (14) Unavailable. Description: transport is closing`

DerekC (Mon, 16 Apr 2018 09:08:40 GMT):
Is there any limitation on the size of the payload?

pankajcheema (Mon, 16 Apr 2018 09:40:17 GMT):
Hi

pankajcheema (Mon, 16 Apr 2018 09:40:27 GMT):
Anyone knows this issue? ```pankaj@pankaj:~/fabric_material/physical_setup$ peer channel create -o hr.debut.com:7050 -c channel1 --tls --cafile /home/pankaj/fabric_material/physical_setup/crypto-config/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem 2018-04-16 15:09:57.481 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-04-16 15:09:57.485 IST [common/tools/configtxgen/localconfig] Load -> CRIT 002 Could not find profile: SampleSingleMSPChannel panic: Could not find profile: SampleSingleMSPChannel goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc42022a690, 0xc420103bc0, 0x2, 0x2) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xc7 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x137150b, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:248 +0x8fa github.com/hyperledger/fabric/peer/channel.createChannelFromDefaults(0xc42030f2c0, 0x0, 0x0, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:73 +0x54 github.com/hyperledger/fabric/peer/channel.sendCreateChainTransaction(0xc42030f2c0, 0x0, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:154 +0x20d github.com/hyperledger/fabric/peer/channel.executeCreate(0xc42030f2c0, 0xc42030f2c0, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:178 +0x2f github.com/hyperledger/fabric/peer/channel.create(0xc4202826c0, 0xc4202856c0, 0x0, 0x7, 0x0, 0x11db520, 0x1aa9400) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:213 +0x40 github.com/hyperledger/fabric/peer/channel.createCmd.func1(0xc4202826c0, 0xc4202856c0, 0x0, 0x7, 0x0, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:59 +0x52 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0xc4202826c0, 0xc420285500, 0x7, 0x7, 0xc4202826c0, 0xc420285500) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 +0x3e8 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1a88220, 0x11, 0xc4202b42d0, 0x5) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 +0x2fe github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1a88220, 0x75, 0xc4200160f5) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 +0x2b main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/peer/main.go:112 +0x5e1 ```

pankajcheema (Mon, 16 Apr 2018 09:40:43 GMT):
I was trying ```peer channel create -o hr.debut.com:7050 -c channel1 --tls --cafile /home/pankaj/fabric_material/physical_setup/crypto-config/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem ```

pankajcheema (Mon, 16 Apr 2018 09:41:14 GMT):
But it gave me an error ```2018-04-16 15:09:57.485 IST [common/tools/configtxgen/localconfig] Load -> CRIT 002 Could not find profile: SampleSingleMSPChannel panic: Could not find profile: SampleSingleMSPChannel```

pankajcheema (Mon, 16 Apr 2018 09:45:02 GMT):
@yacovm

yacovm (Mon, 16 Apr 2018 09:47:06 GMT):
why me?

yacovm (Mon, 16 Apr 2018 09:47:06 GMT):
why me? :rolling_eyes:

yacovm (Mon, 16 Apr 2018 09:48:06 GMT):
ask in #fabric-orderer

yacovm (Mon, 16 Apr 2018 09:48:10 GMT):
it is related to that

sihyeon (Mon, 16 Apr 2018 09:50:13 GMT):
in hyperledger-fabric, what is ID?

lclclc (Mon, 16 Apr 2018 10:16:14 GMT):
Is it possible to save the output of peer/orderer console in some data volume?

lclclc (Mon, 16 Apr 2018 10:16:40 GMT):
So that we can use ETL to analyze the nodes's health.

markthedark (Mon, 16 Apr 2018 10:17:51 GMT):
Hello, i'm trying to change the default configuration in configtx.yaml in basic-network sample used by the fabcar sample.. But i don't know what i have to update to make it work, i tried regenerating the crypto material, but when i start the fabcar sample i cannot run enrollAdmin.js, as the ca.example.com containter is not running. if i leave everything as it is, it's working normally.. So basically the question is, if i update the configuration, what else must i run before i start the fabric?

pankajcheema (Mon, 16 Apr 2018 10:42:01 GMT):
Hi All

pankajcheema (Mon, 16 Apr 2018 10:42:07 GMT):
Anyone knows this error ```akshay@akshay:~/fabric-material$ peer channel create -o hr.debut.com:7050 -c channel1 -f ./channel-artifacts/channel.tx --tls --cafile '/home/akshay/fabric-material/crypto-config/ordererOrganizations/debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem' 2018-04-16 16:08:27.627 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ```

Shra1511 (Mon, 16 Apr 2018 11:55:35 GMT):
Has joined the channel.

Shra1511 (Mon, 16 Apr 2018 11:58:11 GMT):
Hi,

Shra1511 (Mon, 16 Apr 2018 11:59:26 GMT):
While installing Install Samples, Binaries and Images in hyperledger...we are getting the below error CMakefile:279: recipe for target 'build/image/zookeeper/.dummy-x86_64-1.0.2' failed make: *** [build/image/zookeeper/.dummy-x86_64-1.0.2] Interrupt

Shra1511 (Mon, 16 Apr 2018 12:00:08 GMT):
Could anyone pls help us on this ?

kpkrish (Mon, 16 Apr 2018 12:00:53 GMT):
In hyperledger fabric can peers share the same world state database? or will every peer have its own world state database?

akula (Mon, 16 Apr 2018 12:20:26 GMT):
@kpkrish world state is one for the network

gatakka (Mon, 16 Apr 2018 12:20:42 GMT):
@kpkrish every peer keeps its own world state generated from the ledger. Peers are always synchronized, so the ledger is the same. It is possible some peer to be behind others, because of network delays and simmilar, but it will catch on as fast as possible.

kpkrish (Mon, 16 Apr 2018 12:21:13 GMT):
thank you

gatakka (Mon, 16 Apr 2018 12:21:48 GMT):
@akula this is wrong, world state is kept inside every peer.

kpkrish (Mon, 16 Apr 2018 12:23:32 GMT):
@akula if the network had 2 organization's 1 in USA & 1 in europe, then would both organizations not have separate world state databases?

kpkrish (Mon, 16 Apr 2018 12:24:44 GMT):
so in org1 say we had 2 peers, should both peers use the same world state or will each peer have to maintain their own WS database?

akula (Mon, 16 Apr 2018 12:26:06 GMT):
@gatakka are you sure? You send a proposal to every peer, followed by a read set, if they are the same the orderer will order and send to commit, the commit will update the world state and keep the ledger with only one information. That information are the same on every peer. That's why we can trust on the ledger. Something different will not solve the double spend problem for example

szlaci1983 (Mon, 16 Apr 2018 12:26:23 GMT):
hi guys, just a quick question: we would like to use Java or Node SDK for our project. The main part of the system is written in Java so the easiest solution would be to use the java sdk, however it seems it is not as developed a the Node one. What do you guys think?

kpkrish (Mon, 16 Apr 2018 12:27:11 GMT):
I understand that the block chain DB is 1 per peer per channel. So if 1 peer had 5 channels, there would be 5 block chain DB's. Is my understanding correct?

gatakka (Mon, 16 Apr 2018 12:29:24 GMT):
@akula you are wrong. SDK send transaction to peer, peer simulate transaction using its current WS, result is read/write set that is returned to SDK. SDK combine RW sets from couple of peers, enough to be complient by the policy, then this is packed as one and send to orderer, orderer collect couple of this and create a block and send the block to peers, peers will validate RW set in block and will compare it with there current WS data. If something is changed you got MVCC error and transaction is rejected.

gatakka (Mon, 16 Apr 2018 12:30:02 GMT):
So, what will happen if one peer is behind, first it will get different RW set, and SDK or orderer will notice that and will reject the transaction

gatakka (Mon, 16 Apr 2018 12:30:43 GMT):
If peer is behind, but is not part of the simulation/endorsement process and block is commited now this peer is behind, and gossip will give him the newest blocks

gatakka (Mon, 16 Apr 2018 12:31:00 GMT):
and when it recieve the newest block will regenerate the current state of WS

chessequality (Mon, 16 Apr 2018 12:33:49 GMT):
@gatakka But isn't it the fundamental concept of blockchain technology, that is, every node downloads it own blockchain database?

kpkrish (Mon, 16 Apr 2018 12:34:07 GMT):
So @gatakka, its 1 WS DB per peer and not 1 per network or 1 per channel correct?

akula (Mon, 16 Apr 2018 12:34:10 GMT):
@gatakka that is not the what he asked. You are saying that we can have more than one world state. The description you just give are correct when you got something wrong, but when you got a problem the world state are not updated and the transaction are keeped in database, but not in the ledger. Can you provide some documentation? I really want to confirm all this.

gatakka (Mon, 16 Apr 2018 12:34:18 GMT):
@chessequality exactly what this is what I am explaining here

chessequality (Mon, 16 Apr 2018 12:35:41 GMT):
@gatakka What is the difference between peer and channel?

gatakka (Mon, 16 Apr 2018 12:35:43 GMT):
@akula yes, rejected transactions are kept inside blockchain but do not update the ledger state. Question was that thre is one signe shared WS database. It is not, every peer recreate the WS from data in his own copy of blockchain/ledger

gatakka (Mon, 16 Apr 2018 12:36:11 GMT):
and this WS is insde the peer

akula (Mon, 16 Apr 2018 12:36:24 GMT):
so can we have many WS?

kpkrish (Mon, 16 Apr 2018 12:36:27 GMT):
@gatakka thanks.

JeroenDePrest (Mon, 16 Apr 2018 12:36:30 GMT):
Has joined the channel.

JeroenDePrest (Mon, 16 Apr 2018 12:37:05 GMT):
Is there a big difference in writing chaincode in node or golang? (performance wise, feature wise,...)

gatakka (Mon, 16 Apr 2018 12:37:18 GMT):
@chessequality Peer is the "service" that keep the blockchain, ledger, WS, doing simmulation/validation and many other things. Channels a way to isolate data. Every channel has its own blockchain, permitions, ledger, WS

gatakka (Mon, 16 Apr 2018 12:37:28 GMT):
one peer can manage multiple channels

gatakka (Mon, 16 Apr 2018 12:37:38 GMT):
and data never leeks the channel

chessequality (Mon, 16 Apr 2018 12:37:47 GMT):
@JeroenDePrest Go is always known to have a very small memory footprint

gatakka (Mon, 16 Apr 2018 12:38:14 GMT):
@Jeremy1127 Nodejs is slover an in high loads (more than 20 000 transactions per minute) starts to be litle unstable

Jeremy1127 (Mon, 16 Apr 2018 12:38:15 GMT):
Has joined the channel.

chessequality (Mon, 16 Apr 2018 12:39:14 GMT):
@JeroenDePrest, @gatakka is correct because Node has a single-threaded model

gatakka (Mon, 16 Apr 2018 12:40:05 GMT):
exactly, Go can use real parallelism, and can utilize the real physical CPU cores, Nodejs is just a big queue of operations

chessequality (Mon, 16 Apr 2018 12:40:35 GMT):
Vert.x is way much faster than Node but not so popular

chessequality (Mon, 16 Apr 2018 12:41:26 GMT):
https://vertx.io/

gatakka (Mon, 16 Apr 2018 12:41:29 GMT):
@chessequality Fabric allows adding any language as chaincode language, write it for Vert.X and commit it :)

chessequality (Mon, 16 Apr 2018 12:41:55 GMT):
@gatakka Thanks but going with Go

chessequality (Mon, 16 Apr 2018 12:41:55 GMT):
@gatakka Thanks but I'm going with Go

JeroenDePrest (Mon, 16 Apr 2018 12:42:32 GMT):
Is there a difference in features? (for the chaincode)

kpkrish (Mon, 16 Apr 2018 12:42:45 GMT):
@chessequality here is a link that explains channels http://hyperledger-fabric.readthedocs.io/en/master/channels.html

chessequality (Mon, 16 Apr 2018 12:42:58 GMT):
Go seems to be thee official

chessequality (Mon, 16 Apr 2018 12:43:13 GMT):
Thanks @kpkrish @gatakka

gatakka (Mon, 16 Apr 2018 12:43:14 GMT):
@JeroenDePrest no, all implementations (for now only Go and Nodejs) use same APIs with same behavior

gatakka (Mon, 16 Apr 2018 12:43:34 GMT):
soon java will be added and again, APIs will be the same

JeroenDePrest (Mon, 16 Apr 2018 12:45:10 GMT):
Thanks guys

kpkrish (Mon, 16 Apr 2018 12:45:39 GMT):
@gatakka My application has master or lookup data and transactions of course. Transactions will get saved to the ledger. Where should I save my lookup data?

gatakka (Mon, 16 Apr 2018 12:46:36 GMT):
@kpkrish I do not understand the question, what you mean by lookup data?

kpkrish (Mon, 16 Apr 2018 12:47:03 GMT):
lookup data example product master data & transaction will be like invoices.

aatkddny (Mon, 16 Apr 2018 12:47:16 GMT):
do you need the metadata inside the transactions or is it for validation prior to hitting the chaincode?

chessequality (Mon, 16 Apr 2018 12:47:28 GMT):
https://www.techempower.com/blog/2013/12/17/framework-benchmarks-round-8/

chessequality (Mon, 16 Apr 2018 12:47:38 GMT):
https://www.techempower.com/benchmarks/#section=data-r8&hw=i7&test=plaintext

kpkrish (Mon, 16 Apr 2018 12:48:28 GMT):
the invoice will contain products (eg book)so in the chain code I need to ensure that sufficient stock of the product is available.

aatkddny (Mon, 16 Apr 2018 12:49:35 GMT):
and are the products cross ledger?

kpkrish (Mon, 16 Apr 2018 12:50:10 GMT):
no the ledger will contain invoices so only 1 ledger

kpkrish (Mon, 16 Apr 2018 12:51:16 GMT):
invoices are generated when a product is sold

aatkddny (Mon, 16 Apr 2018 12:52:16 GMT):
you didn't really answer my question. do you have multiple channels each with their own products or do you have products that cross channels?

aatkddny (Mon, 16 Apr 2018 12:52:49 GMT):
in other words have you isolated your clients to their own channels or are they running inside a permissions ledger

aatkddny (Mon, 16 Apr 2018 12:52:49 GMT):
in other words have you isolated your clients to their own channels or are they running inside a permissioned ledger

kpkrish (Mon, 16 Apr 2018 12:53:10 GMT):
sorry no 1 channel for a sale so when a product is sold the transaction goes to the sales channel only.

aatkddny (Mon, 16 Apr 2018 12:54:39 GMT):
so you either need an oracle to pull from somewhere else in the cc or to have a copy of the product as an asset inside the channel or to validate externally and pass the data into the tx.

kpkrish (Mon, 16 Apr 2018 12:55:40 GMT):
yes I want to implement a permissioned ledger with fabric. no the isolation is not client level . the isolation is at transaction level meaning 1 channel for sell & another channel for buy.

kpkrish (Mon, 16 Apr 2018 12:56:20 GMT):
when i want to restock my inventory I'll buy from the whole saler & restock inventory.

kpkrish (Mon, 16 Apr 2018 12:57:23 GMT):
@aatkddny how do I implement oracles in fabric?

aatkddny (Mon, 16 Apr 2018 12:57:27 GMT):
so you need metadata on another channel and permission both to read or an external source. it sounds like you should consider throwing an event across the channels to do it automagically.

aatkddny (Mon, 16 Apr 2018 12:57:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DAPvogqEqe8GJPXNj)

aatkddny (Mon, 16 Apr 2018 12:57:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DAPvogqEqe8GJPXNj) No idea. I'd be looking at making a rest or db call from the javascript. but that's because my go is too basic and i don't want to start rtfm. we'd keep it in a channel that everyone attaches to and do cross chain reads.

kpkrish (Mon, 16 Apr 2018 12:58:42 GMT):
can u share a link that explains oracles in hyper ledger fabric.

kpkrish (Mon, 16 Apr 2018 13:02:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RnjijSsGikLqbTCFZ) @aatkddny I did not know that oracles were possible in fabric.

markthedark (Mon, 16 Apr 2018 13:14:08 GMT):
quick question i'm checking the orderer logs and looking at a line regarding txs txId=1aa8cf5bdd1cce906037dacfc97e0c1a4c167684deb094278c5239f3d4e1b4ce locPointer=offset=3433381, bytesLength=3691 does the last number mean that the size of the tx is indeed 3,6kB?

gatakka (Mon, 16 Apr 2018 13:16:13 GMT):
@markthedark yes, because in transaction are a lot of stuffs, like signitures

markthedark (Mon, 16 Apr 2018 13:16:26 GMT):
mhmm. that's a lot of overhead :(

gatakka (Mon, 16 Apr 2018 13:18:09 GMT):
@markthedark if you want data immutability, this is the cost. Most of the data is compressed and static, the world state will hold only the values, this is what is important. This transaction will be stored in hard drive, and will be accesses only when someone explicity wants to see the content of it

gatakka (Mon, 16 Apr 2018 13:18:09 GMT):
@markthedark if you wont data immutability, this is the cost. Most of the data is compressed and static, the world state will hold only the values, this is what is important. This transaction will be stored in hard drive, and will be accesses only when someone explicity wants to see the content of it

gatakka (Mon, 16 Apr 2018 13:18:51 GMT):
so just put bigger cheep hard drives and that is it :)

markthedark (Mon, 16 Apr 2018 13:19:10 GMT):
yeah, i know that much, but didn't know that the overhead is this much.. yeah, no other option i guess :)

markthedark (Mon, 16 Apr 2018 13:19:16 GMT):
thanx for the explanation.

vanitas92 (Mon, 16 Apr 2018 14:50:31 GMT):
Has joined the channel.

nikolas (Mon, 16 Apr 2018 14:51:04 GMT):
Has joined the channel.

nikolas (Mon, 16 Apr 2018 14:51:15 GMT):
Hi. When programmatically creating a proposal via the SDK (the very first step..), is the proposal sent from the SDK to the orderer and then to the nodes, or is the SDK directly speaking with one of the nodes which then propagates it in the network? I find this a bit fuzzy in the documentation...

jrosmith (Mon, 16 Apr 2018 14:57:53 GMT):
@nikolas the proposal first goes to the peers for endorsement. and endorsed transaction can be sent to any ordering node

jrosmith (Mon, 16 Apr 2018 14:58:15 GMT):
this part of the docs might help: https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html

nikolas (Mon, 16 Apr 2018 15:00:07 GMT):
@jrosmith thanks, i am going through the docs, but this was kind of blury to me. So the SDK has be configured to comminicate with a specific client, right?

vanitas92 (Mon, 16 Apr 2018 15:01:51 GMT):
Hi everyone. I would like to have two peers for each organization as a backup in case one peer failed and the second peer would take over and process all the transactions for the organizations. How should i configure the peers and/or the chaincode instantiation in order to accomplish that. I currently have two peers for each organisation and i install each one the same chaincode version but i only instantiate the chaincode in one peer. Should i also invoke the chaincode for the second peer? Is it something related to the endorser, comitter or consenter roles for the peers? Thank you guys, you rock!

nikolas (Mon, 16 Apr 2018 15:01:55 GMT):
i would expect that the orderer(s) play the middleman so that for example high availability is ensured (e.g. when the configured client is down)

MonnyClara (Mon, 16 Apr 2018 15:04:08 GMT):
@vanitas92 The instantiation is needed only once by channel. But you can invoke the chaincode on every peer (as long as the chaincode is installed)

jrosmith (Mon, 16 Apr 2018 15:04:47 GMT):
@nikolas depends on what you mean by client, the sdk needs to be configured to talk to specific peers (the peers whose signatures are required by the endorsement policy of the channel). when a client (meaning a registered fabric user) wants to submit a transaction, they first create and sign a transaction proposal. this proposal gets sent to the configured peers for endorsement, and respond with respective proposal responses. the application running the sdk then amalgamates these proposal responses and sends them to the orderer. if everything is valid the transaction gets ordered and the orderer broadcasts a message to all committing peers alerting them that there is a new block to be appended to the ledger

pankajcheema (Mon, 16 Apr 2018 15:09:59 GMT):
Hi Experts

pankajcheema (Mon, 16 Apr 2018 15:10:07 GMT):
I am trying to join a channel

pankajcheema (Mon, 16 Apr 2018 15:10:31 GMT):
using this command ```peer channel join -b channel1.block```

pankajcheema (Mon, 16 Apr 2018 15:10:51 GMT):
But it throws an error ```peer channel join -o hr.debut.com:7050 -b channel1.block --tls --cafile '/home/pankaj/fabric_material/physical_setup/crypto-config/ordererOrganizations/debut.com/orderers/hr.debut.com/msp/tlscacerts/tlsca.debut.com-cert.pem' 2018-04-16 20:33:46.837 IST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-16 20:33:46.838 IST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-16 20:33:46.838 IST [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-04-16 20:33:46.838 IST [grpc] Printf -> DEBU 004 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. 2018-04-16 20:33:46.838 IST [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA4070A5C08011A0C08D2F6D2D60510...E069891EEF641A080A000A000A000A00 2018-04-16 20:33:46.839 IST [msp/identity] Sign -> DEBU 006 Sign: digest: 8D7C1D56F7C0414FABBACA7C827A0B4596BD50B8ED993CB8DDA2E8D3FE0727B5 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 007 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43236->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 008 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43238->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 009 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43240->192.168.0.15:7051: read: connection reset by peer. Error: proposal failed (err: rpc error: code = Unavailable desc = transport: write tcp 192.168.0.15:43240->192.168.0.15:7051: write: broken pipe) 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 00a transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43242->192.168.0.15:7051: read: connection reset by peer. ```

pankajcheema (Mon, 16 Apr 2018 15:10:51 GMT):
But it throws an error ```peer channel join -b channel1.block' 2018-04-16 20:33:46.837 IST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-16 20:33:46.838 IST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-16 20:33:46.838 IST [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-04-16 20:33:46.838 IST [grpc] Printf -> DEBU 004 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. 2018-04-16 20:33:46.838 IST [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA4070A5C08011A0C08D2F6D2D60510...E069891EEF641A080A000A000A000A00 2018-04-16 20:33:46.839 IST [msp/identity] Sign -> DEBU 006 Sign: digest: 8D7C1D56F7C0414FABBACA7C827A0B4596BD50B8ED993CB8DDA2E8D3FE0727B5 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 007 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43236->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 008 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43238->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 009 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43240->192.168.0.15:7051: read: connection reset by peer. Error: proposal failed (err: rpc error: code = Unavailable desc = transport: write tcp 192.168.0.15:43240->192.168.0.15:7051: write: broken pipe) 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 00a transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43242->192.168.0.15:7051: read: connection reset by peer. ```

pankajcheema (Mon, 16 Apr 2018 15:10:51 GMT):
But it throws an error ```peer channel join -b channel1.block 2018-04-16 20:33:46.837 IST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-16 20:33:46.838 IST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-16 20:33:46.838 IST [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-04-16 20:33:46.838 IST [grpc] Printf -> DEBU 004 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. 2018-04-16 20:33:46.838 IST [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA4070A5C08011A0C08D2F6D2D60510...E069891EEF641A080A000A000A000A00 2018-04-16 20:33:46.839 IST [msp/identity] Sign -> DEBU 006 Sign: digest: 8D7C1D56F7C0414FABBACA7C827A0B4596BD50B8ED993CB8DDA2E8D3FE0727B5 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 007 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43236->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 008 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43238->192.168.0.15:7051: read: connection reset by peer. 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 009 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43240->192.168.0.15:7051: read: connection reset by peer. Error: proposal failed (err: rpc error: code = Unavailable desc = transport: write tcp 192.168.0.15:43240->192.168.0.15:7051: write: broken pipe) 2018-04-16 20:33:46.839 IST [grpc] Printf -> DEBU 00a transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.0.15:43242->192.168.0.15:7051: read: connection reset by peer. ```

pankajcheema (Mon, 16 Apr 2018 15:11:01 GMT):
Any help or suggestion would be appreciated

pankajcheema (Mon, 16 Apr 2018 15:11:03 GMT):
Thanks

cuevrob (Mon, 16 Apr 2018 15:25:27 GMT):
hello, is there any way I can store an image of a document in a transaction on hyperledger

jrosmith (Mon, 16 Apr 2018 15:45:08 GMT):
@cuevrob fabric isn't opinionated about what you store, if you want to store that information you can just put the bytes in the transaction

cuevrob (Mon, 16 Apr 2018 15:46:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gYMitzH3xLAY6S2Ap) @jrosmith thanks for the response man, can you help with just a quick idea on how to do that? I was thinking on encoding the image as base64 and put that in the transaction

jrosmith (Mon, 16 Apr 2018 15:48:13 GMT):
@cuevrob sure that would work fine. alternatively chuck the image in an S3 bucket and just store the reference to its location

cuevrob (Mon, 16 Apr 2018 15:51:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=86xTtYsympjWvcyCx) @jrosmith alright man perfect, yes I was thinking on doing that but I want to minimize the chances of the document being lost. Thanks for replying man

MikeFair (Mon, 16 Apr 2018 23:55:34 GMT):
Has joined the channel.

ck01 (Tue, 17 Apr 2018 01:47:53 GMT):
Hi everyone

ck01 (Tue, 17 Apr 2018 01:48:40 GMT):
is there anyway to increase tps for an already built HLF system?

mhell245 (Tue, 17 Apr 2018 02:10:50 GMT):
Has joined the channel.

mhell245 (Tue, 17 Apr 2018 02:11:06 GMT):
Is there is a chaincode api for the NodeSDK? If not, how do you integrate the go api with the nodesdk ?

labcoinpoc (Tue, 17 Apr 2018 02:14:12 GMT):
@mhell245 https://fabric-shim.github.io/ChaincodeStub.html here it is

mhell245 (Tue, 17 Apr 2018 03:52:14 GMT):
Hi all, after completing hours of google searches and looking at other git projects. There is an asymmetric amount of resources for the Go SDK, especially in regards to chaincode examples. Any NodeJS resources/examples in regards to adding new instances or existing instance (of an asset) would help ground my sense of confusion , thanks

mhell245 (Tue, 17 Apr 2018 03:52:22 GMT):
^for chain code

treesong (Tue, 17 Apr 2018 04:47:12 GMT):
Has joined the channel.

nitrek (Tue, 17 Apr 2018 06:03:06 GMT):
Has joined the channel.

nitrek (Tue, 17 Apr 2018 06:03:08 GMT):
Hi all how do i change the UI in this app https://github.com/olegabu/fabric-starter ? please help

ongar (Tue, 17 Apr 2018 06:16:34 GMT):
Hello all - Just wondering when is it required to use protobuf in an SDK project? I was looking at some Java SDK sample projects and I didn't come across any protobuf usage. Is protobuf an alternate mechanism to using String array in args?

VadimInshakov (Tue, 17 Apr 2018 06:18:10 GMT):
Has joined the channel.

VadimInshakov (Tue, 17 Apr 2018 06:18:21 GMT):
Hi, why I get error "Cannot run peer because error when setting up MSP from directory /etc/hyperledger/fabric/msp: Failed loading NodeOUs. OrdererOU must be different from nil" when starting ```docker-compose -f docker-compose-cli.yaml up```?

VadimInshakov (Tue, 17 Apr 2018 06:32:54 GMT):
https://gist.github.com/VadimInshakov/1a28f0d4f6f57474126414613557b0e3 https://gist.github.com/VadimInshakov/594bd9a5230f9f6ef1f762b79a55fd40 Please, help. I do not know how to fix this. What am I doing wrong?

vanitas92 (Tue, 17 Apr 2018 06:43:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sCGK7d7XF3cqXWgLZ) @MonnyClara ok so all i need is to invoke the chaincode to the second peer and it would be enough? You are right about the instantiation only needed once in channel.

JeroenDePrest (Tue, 17 Apr 2018 07:07:33 GMT):
Is there a way that I can double sign a transaction? e.g: A buyer and a seller agree on an price so they both need to sign it because then we can be sure they both agree on the price. Or do I just add two booleans and then they have to call a function to agree to it and set the booleans to true?

mespgit (Tue, 17 Apr 2018 07:10:17 GMT):
Hi Team ,

mespgit (Tue, 17 Apr 2018 07:11:09 GMT):
Hi Team , i'm trying to create my first hyberledger application but when i'm trying to create network getting "ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' Encountered errors while bringing up the project. " error . please help me what i'm missing here

Poneey (Tue, 17 Apr 2018 07:43:23 GMT):
Hello, how i can know wath version of fabric is excuting ?

nikolas (Tue, 17 Apr 2018 07:51:07 GMT):
Has left the channel.

JeroenDePrest (Tue, 17 Apr 2018 08:11:49 GMT):
@Poneey `docker images` the ones tagged with latest are the ones that are being used if I remember correctly

Poneey (Tue, 17 Apr 2018 08:13:18 GMT):
Yes thank

QwertyJack (Tue, 17 Apr 2018 08:14:33 GMT):
I found a strange bug, on fabric-samples/basic-network

QwertyJack (Tue, 17 Apr 2018 08:15:12 GMT):
java-sdk works pretty fine with the original crypto material.

QwertyJack (Tue, 17 Apr 2018 08:15:30 GMT):
But after `./generate.sh`, the world is broken.

Daiki0124 (Tue, 17 Apr 2018 08:38:40 GMT):

chaincode-docker-devmode.txt

Daiki0124 (Tue, 17 Apr 2018 08:38:57 GMT):
Hi! An errot occured when after running the command help me ubuntu@tk2-253-36215:~/fabric-samples/chaincode-docker-devmode$ docker-compose -f docker-compose-simple.yaml up orderer is up-to-date peer is up-to-date Creating cli Creating chaincode ERROR: for chaincode Cannot create container for service chaincode: Conflict. The container name "/chaincode" is already in use by container 82dfa53d56e052493c52f0880dcd8452258692a4296d0203753f576968798d05. You have to remove (or rename) that container to be able to reuse that name. ERROR: for cli Cannot create container for service cli: Conflict. The container name "/cli" is already in use by container 62b888c69709c3d113f5283166c921f13eef7f295c6c1e922d7057e8e4742f01. You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project. ubuntu@tk2-253-36215:~/fabric-samples/chaincode-docker-devmode$ sudo docker-compose -f docker-compose-simple.yaml up orderer is up-to-date peer is up-to-date Creating cli Creating chaincode ERROR: for chaincode Cannot create container for service chaincode: Conflict. The container name "/chaincode" is already in use by container 82dfa53d56e052493c52f0880dcd8452258692a4296d0203753f576968798d05. You have to remove (or rename) that container to be able to reuse that name. ERROR: for cli Cannot create container for service cli: Conflict. The container name "/cli" is already in use by container 62b888c69709c3d113f5283166c921f13eef7f295c6c1e922d7057e8e4742f01. You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project.

Daiki0124 (Tue, 17 Apr 2018 08:38:57 GMT):
Hi! An errot occured when after running the command help me ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker-compose -f docker-compose-simple.yaml up orderer is up-to-date peer is up-to-date Creating cli Creating chaincode ERROR: for chaincode Cannot create container for service chaincode: Conflict. The container name "/chaincode" is already in use by container 82dfa53d56e052493c52f0880dcd8452258692a4296d0203753f576968798d05. You have to remove (or rename) that container to be able to reuse that name. ERROR: for cli Cannot create container for service cli: Conflict. The container name "/cli" is already in use by container 62b888c69709c3d113f5283166c921f13eef7f295c6c1e922d7057e8e4742f01. You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project. ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ sudo docker-compose -f docker-compose-simple.yaml up orderer is up-to-date peer is up-to-date Creating cli Creating chaincode ERROR: for chaincode Cannot create container for service chaincode: Conflict. The container name "/chaincode" is already in use by container 82dfa53d56e052493c52f0880dcd8452258692a4296d0203753f576968798d05. You have to remove (or rename) that container to be able to reuse that name. ERROR: for cli Cannot create container for service cli: Conflict. The container name "/cli" is already in use by container 62b888c69709c3d113f5283166c921f13eef7f295c6c1e922d7057e8e4742f01. You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project.

Daiki0124 (Tue, 17 Apr 2018 08:38:57 GMT):
@MonnyClara @JeroenDePrest Thanks! I tried. An errot occured Is is ok in this case? ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker-compose -f docker-compose-simple.yaml up Creating orderer Creating peer Creating cli Creating chaincode Attaching to orderer, peer, chaincode, cli orderer | 2018-04-17 08:46:12.836 UTC [orderer/main] main -> INFO 001 Starting orderer: ----------------------------- abridgement ----------------------------- > stop: > cli | 2018-04-17 08:46:14.223 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AA3080A5B08011A0B08D6E8D6D60510...C4A16EF7EA981A080A000A000 A000A00 cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 963A19985DB0363F9CA9D13030A2A66C102E6B4ADD354720DEE71B185C06ACE D cli | 2018-04-17 08:46:14.258 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! cli | 2018-04-17 08:46:14.258 UTC [main] main -> INFO 007 Exiting..... ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). ubuntu@tk2-253-36215:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cc231819a8d5 hyperledger/fabric-ccenv "/bin/bash -c 'sle..." About a minute ago Up About a minute chaincode 6f36ccbd2f2e hyperledger/fabric-tools "/bin/bash -c ./sc..." About a minute ago Up About a minute cli 3b34328409f1 hyperledger/fabric-peer "peer node start -..." About a minute ago Up About a minute 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053- >7053/tcp peer 57f1fb7f725d hyperledger/fabric-orderer "orderer" About a minute ago Up About a minute 0.0.0.0:7050->7050/tcp

JeroenDePrest (Tue, 17 Apr 2018 08:42:34 GMT):
stop and remove your containers and then rerun it again

JeroenDePrest (Tue, 17 Apr 2018 08:42:34 GMT):
@Daiki0124 stop and remove your containers and then rerun it again

MonnyClara (Tue, 17 Apr 2018 08:43:06 GMT):
`docker rm $(docker ps -aq)`

olivia123 (Tue, 17 Apr 2018 08:52:10 GMT):
Has joined the channel.

olivia123 (Tue, 17 Apr 2018 08:52:24 GMT):
hello everyone anyone can help me i have a issue😬 i am installing the Hyperledger Fabric platform-specific binaries. curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 is it the right command above? i got nothing output from this command

olivia123 (Tue, 17 Apr 2018 08:52:58 GMT):
i got this command from http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries

MonnyClara (Tue, 17 Apr 2018 08:55:15 GMT):
@olivia123 And what if you do just the `curl -sSL https://goo.gl/6wtTN5` ?

MonnyClara (Tue, 17 Apr 2018 08:55:15 GMT):
@olivia123 And what if you do just the `curl -sSL https://goo.gl/6wtTN5` ? You should see a new file after running this command

Daiki0124 (Tue, 17 Apr 2018 08:55:21 GMT):
@JeroenDePrest @MonnyClara ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker-compose -f docker-compose-simple.yaml up Creating orderer Creating peer Creating cli Creating chaincode Attaching to orderer, peer, chaincode, cli orderer | 2018-04-17 08:46:12.836 UTC [orderer/main] main -> INFO 001 Starting orderer: ----------------------------- abridgement ----------------------------- > stop: > cli | 2018-04-17 08:46:14.223 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AA3080A5B08011A0B08D6E8D6D60510...C4A16EF7EA981A080A000A000 A000A00 cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 963A19985DB0363F9CA9D13030A2A66C102E6B4ADD354720DEE71B185C06ACE D cli | 2018-04-17 08:46:14.258 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! cli | 2018-04-17 08:46:14.258 UTC [main] main -> INFO 007 Exiting..... ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). ubuntu@tk2-253-36215:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cc231819a8d5 hyperledger/fabric-ccenv "/bin/bash -c 'sle..." About a minute ago Up About a minute chaincode 6f36ccbd2f2e hyperledger/fabric-tools "/bin/bash -c ./sc..." About a minute ago Up About a minute cli 3b34328409f1 hyperledger/fabric-peer "peer node start -..." About a minute ago Up About a minute 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053- >7053/tcp peer 57f1fb7f725d hyperledger/fabric-orderer "orderer" About a minute ago Up About a minute 0.0.0.0:7050->7050/tcp

Daiki0124 (Tue, 17 Apr 2018 08:55:21 GMT):
@JeroenDePrest @MonnyClara Thanks! I tried. An errot occured Is is ok in this case? ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ubuntu@tk2:~/fabric-samples/chaincode-docker-devmode$ docker-compose -f docker-compose-simple.yaml up Creating orderer Creating peer Creating cli Creating chaincode Attaching to orderer, peer, chaincode, cli orderer | 2018-04-17 08:46:12.836 UTC [orderer/main] main -> INFO 001 Starting orderer: ----------------------------- abridgement ----------------------------- > stop: > cli | 2018-04-17 08:46:14.223 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AA3080A5B08011A0B08D6E8D6D60510...C4A16EF7EA981A080A000A000 A000A00 cli | 2018-04-17 08:46:14.224 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 963A19985DB0363F9CA9D13030A2A66C102E6B4ADD354720DEE71B185C06ACE D cli | 2018-04-17 08:46:14.258 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! cli | 2018-04-17 08:46:14.258 UTC [main] main -> INFO 007 Exiting..... ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). ubuntu@tk2-253-36215:~/fabric-samples/chaincode-docker-devmode$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cc231819a8d5 hyperledger/fabric-ccenv "/bin/bash -c 'sle..." About a minute ago Up About a minute chaincode 6f36ccbd2f2e hyperledger/fabric-tools "/bin/bash -c ./sc..." About a minute ago Up About a minute cli 3b34328409f1 hyperledger/fabric-peer "peer node start -..." About a minute ago Up About a minute 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053- >7053/tcp peer 57f1fb7f725d hyperledger/fabric-orderer "orderer" About a minute ago Up About a minute 0.0.0.0:7050->7050/tcp

olivia123 (Tue, 17 Apr 2018 08:57:23 GMT):
recent:///c4c9e3625d453eed3205a1f55ad5b6e9

olivia123 (Tue, 17 Apr 2018 08:57:46 GMT):

Clipboard - April 17, 2018 4:57 PM

olivia123 (Tue, 17 Apr 2018 08:58:19 GMT):
is there anything wrong here? i got the latest curl, but why there is nothing ouput from this command

MonnyClara (Tue, 17 Apr 2018 09:01:09 GMT):
@olivia123 Yes, your curl command fails to dowload the script. What you can do is : 1. Go to this address : https://goo.gl/6wtTN5 2. Create a script folder `touch fabric.sh` 3. Copy-paste what you see in you web brower into the `fabric.sh` 4. Run the script `bash script.sh -s 1.1.0`

MonnyClara (Tue, 17 Apr 2018 09:01:09 GMT):
@olivia123 Yes, your curl command fails to dowload the script. What you can do is : 1. Go to this address : https://goo.gl/6wtTN5 2. Create a script folder `touch fabric.sh` 3. Copy-paste what you see in you web brower into the `fabric.sh` 4. Run the script `bash script.sh -s 1.1.0` This is basicly what the `curl .... | bash ...` line does

MonnyClara (Tue, 17 Apr 2018 09:02:22 GMT):
@Daiki0124 I don't know but the message says `Retry with --verbose to obtain debug information.`, you should try

olivia123 (Tue, 17 Apr 2018 09:02:45 GMT):
thank you Clara, it really helps. :)

acombeau (Tue, 17 Apr 2018 09:09:38 GMT):
Has joined the channel.

VadimInshakov (Tue, 17 Apr 2018 09:17:20 GMT):
Ok, now I deleted from configtx.yaml and now i have this error: ``` y -> INFO 018 Obtaining identity peer0.org1.innodata.ru | 2018-04-17 09:07:23.077 UTC [gossip/gossip] start -> INFO 019 Gossip instance peer0.org1.innodata.ru:7031 started peer0.org1.innodata.ru | 2018-04-17 09:07:23.080 UTC [cscc] Init -> INFO 01a Init CSCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.081 UTC [sccapi] deploySysCC -> INFO 01b system chaincode cscc/(github.com/hyperledger/fabric/core/scc/cscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.082 UTC [sccapi] deploySysCC -> INFO 01c system chaincode lscc/(github.com/hyperledger/fabric/core/scc/lscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.083 UTC [escc] Init -> INFO 01d Successfully initialized ESCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.083 UTC [sccapi] deploySysCC -> INFO 01e system chaincode escc/(github.com/hyperledger/fabric/core/scc/escc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.085 UTC [sccapi] deploySysCC -> INFO 01f system chaincode vscc/(github.com/hyperledger/fabric/core/scc/vscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.086 UTC [qscc] Init -> INFO 020 Init QSCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.086 UTC [sccapi] deploySysCC -> INFO 021 system chaincode qscc/(github.com/hyperledger/fabric/core/chaincode/qscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.087 UTC [sccapi] deploySysCC -> INFO 022 system chaincode (rscc,github.com/hyperledger/fabric/core/chaincode/rscc) disabled peer0.org1.innodata.ru | 2018-04-17 09:07:23.087 UTC [nodeCmd] initSysCCs -> INFO 023 Deployed system chaincodes peer0.org1.innodata.ru | 2018-04-17 09:07:23.088 UTC [nodeCmd] serve -> INFO 024 Starting peer with ID=[name:"peer0.org1.innodata.ru" ], network ID=[dev], address=[peer0.org1.innodata.ru:7031] peer0.org1.innodata.ru | 2018-04-17 09:07:23.088 UTC [nodeCmd] serve -> INFO 025 Started peer with ID=[name:"peer0.org1.innodata.ru" ], network ID=[dev], address=[peer0.org1.innodata.ru:7031] peer0.org1.innodata.ru | 2018-04-17 09:07:23.090 UTC [nodeCmd] func6 -> INFO 026 Starting profiling server with listenAddress = 0.0.0.0:6060 peer0.org1.innodata.ru | 2018-04-17 09:07:26.078 UTC [gossip/discovery] func1 -> WARN 027 Could not connect to {peer1.org1.innodata.ru:7198 [] [] peer1.org1.innodata.ru:7198 } : context deadline exceeded peer1.org2.innodata.ru | 2018-04-17 09:07:45.285 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer0.org2.innodata.ru:7052 [] [] peer0.org2.innodata.ru:7052 } : remote error: tls: bad certificate peer0.org2.innodata.ru | 2018-04-17 09:07:50.512 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer1.org2.innodata.ru:7199 [] [] peer1.org2.innodata.ru:7199 } : context deadline exceeded peer1.org1.innodata.ru | 2018-04-17 09:07:51.752 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer0.org1.innodata.ru:7031 [] [] peer0.org1.innodata.ru:7031 } : context deadline exceeded peer0.org1.innodata.ru | 2018-04-17 09:07:54.081 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer1.org1.innodata.ru:7198 [] [] peer1.org1.innodata.ru:7198 } : context deadline exceeded ```

VadimInshakov (Tue, 17 Apr 2018 09:17:20 GMT):
Ok, now I deleted EnableNodeOUs from configtx.yaml and now i have this error: ``` y -> INFO 018 Obtaining identity peer0.org1.innodata.ru | 2018-04-17 09:07:23.077 UTC [gossip/gossip] start -> INFO 019 Gossip instance peer0.org1.innodata.ru:7031 started peer0.org1.innodata.ru | 2018-04-17 09:07:23.080 UTC [cscc] Init -> INFO 01a Init CSCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.081 UTC [sccapi] deploySysCC -> INFO 01b system chaincode cscc/(github.com/hyperledger/fabric/core/scc/cscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.082 UTC [sccapi] deploySysCC -> INFO 01c system chaincode lscc/(github.com/hyperledger/fabric/core/scc/lscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.083 UTC [escc] Init -> INFO 01d Successfully initialized ESCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.083 UTC [sccapi] deploySysCC -> INFO 01e system chaincode escc/(github.com/hyperledger/fabric/core/scc/escc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.085 UTC [sccapi] deploySysCC -> INFO 01f system chaincode vscc/(github.com/hyperledger/fabric/core/scc/vscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.086 UTC [qscc] Init -> INFO 020 Init QSCC peer0.org1.innodata.ru | 2018-04-17 09:07:23.086 UTC [sccapi] deploySysCC -> INFO 021 system chaincode qscc/(github.com/hyperledger/fabric/core/chaincode/qscc) deployed peer0.org1.innodata.ru | 2018-04-17 09:07:23.087 UTC [sccapi] deploySysCC -> INFO 022 system chaincode (rscc,github.com/hyperledger/fabric/core/chaincode/rscc) disabled peer0.org1.innodata.ru | 2018-04-17 09:07:23.087 UTC [nodeCmd] initSysCCs -> INFO 023 Deployed system chaincodes peer0.org1.innodata.ru | 2018-04-17 09:07:23.088 UTC [nodeCmd] serve -> INFO 024 Starting peer with ID=[name:"peer0.org1.innodata.ru" ], network ID=[dev], address=[peer0.org1.innodata.ru:7031] peer0.org1.innodata.ru | 2018-04-17 09:07:23.088 UTC [nodeCmd] serve -> INFO 025 Started peer with ID=[name:"peer0.org1.innodata.ru" ], network ID=[dev], address=[peer0.org1.innodata.ru:7031] peer0.org1.innodata.ru | 2018-04-17 09:07:23.090 UTC [nodeCmd] func6 -> INFO 026 Starting profiling server with listenAddress = 0.0.0.0:6060 peer0.org1.innodata.ru | 2018-04-17 09:07:26.078 UTC [gossip/discovery] func1 -> WARN 027 Could not connect to {peer1.org1.innodata.ru:7198 [] [] peer1.org1.innodata.ru:7198 } : context deadline exceeded peer1.org2.innodata.ru | 2018-04-17 09:07:45.285 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer0.org2.innodata.ru:7052 [] [] peer0.org2.innodata.ru:7052 } : remote error: tls: bad certificate peer0.org2.innodata.ru | 2018-04-17 09:07:50.512 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer1.org2.innodata.ru:7199 [] [] peer1.org2.innodata.ru:7199 } : context deadline exceeded peer1.org1.innodata.ru | 2018-04-17 09:07:51.752 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer0.org1.innodata.ru:7031 [] [] peer0.org1.innodata.ru:7031 } : context deadline exceeded peer0.org1.innodata.ru | 2018-04-17 09:07:54.081 UTC [gossip/discovery] func1 -> WARN 028 Could not connect to {peer1.org1.innodata.ru:7198 [] [] peer1.org1.innodata.ru:7198 } : context deadline exceeded ```

mespgit (Tue, 17 Apr 2018 09:26:17 GMT):
Can someone help me with this error ?

mespgit (Tue, 17 Apr 2018 09:26:28 GMT):

Clipboard - April 17, 2018 2:56 PM

ShobhitSrivastava (Tue, 17 Apr 2018 09:28:45 GMT):
@mespgit can you paste the docker file, how have you done the mounting?

mespgit (Tue, 17 Apr 2018 09:29:42 GMT):
i did not do anything in docker file .. ./docker-compose.yml.. its same which i got in installation

kshitiz_leo (Tue, 17 Apr 2018 09:39:46 GMT):
Has joined the channel.

kshitiz_leo (Tue, 17 Apr 2018 09:40:33 GMT):
Hello everyone. I am trying to create a basic network. using build your first network. every artifact was generated. But when i run the command using `docker-compose -f docker-compose-cli.yaml up` it is showing this error.- _Tag latest not found in repository docker.io/hyperledger/fabric-peer_ Please someone help me with this urgently Hello everyone. I am trying to create a basic network. using build your first network. every artifact was generated. But when i run the command using `docker-compose -f docker-compose-cli.yaml up` it is showing this error.- _Tag latest not found in repository docker.io/hyperledger/fabric-peer_ Please someone help me with this urgently Hello everyone. I am trying to create a basic network. using build your first network. every artifact was generated. But when i run the command using `docker-compose -f docker-compose-cli.yaml up` it is showing this error.- _Tag latest not found in repository docker.io/hyperledger/fabric-peer_ Please someone help me with this urgently

ShobhitSrivastava (Tue, 17 Apr 2018 10:11:29 GMT):
@kshitiz_leo please run curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 before you run above command

ShobhitSrivastava (Tue, 17 Apr 2018 10:12:11 GMT):
it will download latest and tag them

acombeau (Tue, 17 Apr 2018 10:15:33 GMT):

Screen Shot 2018-04-17 at 11.14.55.png

acombeau (Tue, 17 Apr 2018 10:15:55 GMT):
Hi all, does someone know how to solve this issue ?

Taffies (Tue, 17 Apr 2018 10:16:45 GMT):
may i know what's the difference between MSP and CA? i read the docs but quite confused about the difference between the two..

acombeau (Tue, 17 Apr 2018 10:17:22 GMT):
I tried to generate my CA with and without TLS same issue

Ammu (Tue, 17 Apr 2018 10:25:50 GMT):
if hackers taking information illegally from bank(AXIS bank), if the project into fabrics. if the data is taken from 1 peer how the owner of the bank get notification that our bank information has been stolen? in blockchain/fabrics

blackgeneral (Tue, 17 Apr 2018 10:37:08 GMT):
Hi, I have some questions. what is role of anchor peer?

VadimInshakov (Tue, 17 Apr 2018 10:38:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g8yCT73AaDKjnhbAi) @blackgeneral just a peer linked with channel

blackgeneral (Tue, 17 Apr 2018 10:44:51 GMT):
@VadimInshakov then, is anchor peer and endorser are same?

VadimInshakov (Tue, 17 Apr 2018 10:45:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=apLDvkQwRjKw34dZg) @blackgeneral if you enable endorsing on that peer, of course

blackgeneral (Tue, 17 Apr 2018 10:51:03 GMT):
@VadimInshakov Is not it necessary endorser in hyperledger network?

VadimInshakov (Tue, 17 Apr 2018 10:52:42 GMT):
@blackgeneral I think, yes

VadimInshakov (Tue, 17 Apr 2018 10:53:41 GMT):
@blackgeneral I'm sorry, I meant NECESSARILY

blackgeneral (Tue, 17 Apr 2018 10:56:48 GMT):
@VadimInshakov Then, is that anchor peer is endorser?

VadimInshakov (Tue, 17 Apr 2018 10:58:40 GMT):
@blackgeneral can be an endorser

VadimInshakov (Tue, 17 Apr 2018 10:58:40 GMT):
@blackgeneral it can be an endorser

blackgeneral (Tue, 17 Apr 2018 11:01:38 GMT):
@VadimInshakov exactly, are anchor peer and endorser different?

vish 180 (Tue, 17 Apr 2018 11:01:42 GMT):
Hi, I am struck at the installation of Hyperledger 1.0

vish 180 (Tue, 17 Apr 2018 11:02:06 GMT):

hyperledger network.png

vish 180 (Tue, 17 Apr 2018 11:02:18 GMT):

stucknetwork.png

vish 180 (Tue, 17 Apr 2018 11:02:43 GMT):
does anyone have a solution for the above issue

acombeau (Tue, 17 Apr 2018 11:09:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mQYW6ssAsauAiADiG) @vish 180 try to remove your container and restart

acombeau (Tue, 17 Apr 2018 11:09:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mQYW6ssAsauAiADiG) @vish 180 try to remove your container and restart

vish 180 (Tue, 17 Apr 2018 11:18:51 GMT):
@acombeau : We restarted it but it is struck at the same point

acombeau (Tue, 17 Apr 2018 11:23:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KHhNNK3ha74KzYHuw) @vish 180 did you do : docker rm -f $(docker ps -aq) docker network prune

nukeu666 (Tue, 17 Apr 2018 11:44:06 GMT):
Has joined the channel.

Gh0stR0ck (Tue, 17 Apr 2018 11:48:02 GMT):
I have a question about getting a fabric app communicating over multible physical machines of windows 7. Do i need to create 2 vm's, have them install docker and then get them communicating with docker swarm? cause im not getting this working. Or should i get another OS?

shubham_aggarwal (Tue, 17 Apr 2018 12:01:06 GMT):
Has joined the channel.

olivia123 (Tue, 17 Apr 2018 12:03:34 GMT):
HI all, when i run ./byfn.sh -m up , it shows me error

Gh0stR0ck (Tue, 17 Apr 2018 12:04:17 GMT):
@olivia123 if you post an error, maybe i can help

olivia123 (Tue, 17 Apr 2018 12:04:22 GMT):

Clipboard - April 17, 2018 8:04 PM

olivia123 (Tue, 17 Apr 2018 12:05:04 GMT):
it ran successfully before, but the error happened after i ran docker rmi -f $(docker images -q)

Gh0stR0ck (Tue, 17 Apr 2018 12:05:27 GMT):
maybe there is some old data

Gh0stR0ck (Tue, 17 Apr 2018 12:05:36 GMT):
Always use ./byfn.sh -m down first to flush it

Gh0stR0ck (Tue, 17 Apr 2018 12:05:42 GMT):
"./byfn.sh -m down"

olivia123 (Tue, 17 Apr 2018 12:05:46 GMT):
ok, let me do it

SaraEmily (Tue, 17 Apr 2018 12:06:51 GMT):
@olivia123 I think you might have remove the docker image for the fabric-ca server with the "docker rmi"-commando. You'll need to fetch a new one (as you did before running the tutorial)

olivia123 (Tue, 17 Apr 2018 12:08:57 GMT):
which means i need to bash /bootstrap.sh again?

olivia123 (Tue, 17 Apr 2018 12:09:36 GMT):
but when i docker images after ./byfn.sh -m down, it shows me all the docker images

olivia123 (Tue, 17 Apr 2018 12:09:42 GMT):
i think they are still there

MrSuzi (Tue, 17 Apr 2018 12:10:18 GMT):
Has joined the channel.

MrSuzi (Tue, 17 Apr 2018 12:10:57 GMT):
@olivia123 I usually use ./byfn.sh -m down, ./byfn.sh -m generate and then ./byfn.sh -m up in that order

SaraEmily (Tue, 17 Apr 2018 12:14:24 GMT):
Here are the steps for installing binaries and docker images if that turns out to be the problem: http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries

Gh0stR0ck (Tue, 17 Apr 2018 12:22:42 GMT):
Can someone help me with getting fabric working with windows

SaraEmily (Tue, 17 Apr 2018 12:26:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s2oJJXyA5WPE4mLTQ) @Gh0stR0ck what is the problem and what windows are you on?

Gh0stR0ck (Tue, 17 Apr 2018 12:27:11 GMT):
Im on multiple windows 7 machines. Im trying to get a fabric network working on them to make a transaction between them

SaraEmily (Tue, 17 Apr 2018 12:27:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HY5ZJ6fgaCip92DD4) @Gh0stR0ck Ah, sorry but then I don't know enough to help you

Gh0stR0ck (Tue, 17 Apr 2018 12:28:00 GMT):
atm im using a vm with ubuntu vm's that have docker to connect the docker swarm. But i cannot get it working over phiysical machines. only on 1

Gh0stR0ck (Tue, 17 Apr 2018 12:28:55 GMT):
SaraEmely, you got it working on multiple machines on another os?

ohori (Tue, 17 Apr 2018 12:29:52 GMT):
hi guys... im trying to run the fabcar example..... enrollAdmin.. ok, registerUser.. ok,,, but!!!! node query.js return ERROR!!!!! [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP] ........blabla.... anyone know this error solution?????

ohori (Tue, 17 Apr 2018 12:29:52 GMT):
hi guys... im trying to run the fabcar example..... enrollAdmin.. ok, registerUser.. ok,,, but!!!! node query.js return ERROR!!!!! [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP] ........blabla.... anyone know this error solution?????

SaraEmily (Tue, 17 Apr 2018 12:31:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wGTMAcvmC2dv7ByiH) @Gh0stR0ck Nope, sorry, haven't tried

MonnyClara (Tue, 17 Apr 2018 12:32:36 GMT):
@Gh0stR0ck Do you have a functional running Swarm cluster ? Is the issue with Swarm or Fabric ?

tksavov (Tue, 17 Apr 2018 12:34:27 GMT):
Has joined the channel.

Gh0stR0ck (Tue, 17 Apr 2018 12:35:23 GMT):
I can create a swarm, but cannot connect to it from another machine

Gh0stR0ck (Tue, 17 Apr 2018 12:40:10 GMT):
So it's an issue with docker swarm

Arnaudov_St (Tue, 17 Apr 2018 12:42:51 GMT):
Has joined the channel.

vick (Tue, 17 Apr 2018 13:00:30 GMT):
hi, i have a docker image configured to start in my docker-compose yaml file but when i bring it up it does not appear in docker ps

vick (Tue, 17 Apr 2018 13:00:35 GMT):
anyone know how i can debug it?

JeroenDePrest (Tue, 17 Apr 2018 13:26:43 GMT):
Is there a way that I can double sign a transaction? e.g: A buyer and a seller agree on an price so they both need to sign it because then we can be sure they both agree on the price. Or do I just add two booleans and then they have to call a function to agree to it and set the booleans to true?

Enigmae22 (Tue, 17 Apr 2018 13:54:44 GMT):
Has joined the channel.

MortezaieMohsen (Tue, 17 Apr 2018 14:47:32 GMT):
Has joined the channel.

MortezaieMohsen (Tue, 17 Apr 2018 14:48:24 GMT):
Hi , how can i bootstraping a network with multiple channel MSP?

MortezaieMohsen (Tue, 17 Apr 2018 14:48:24 GMT):
Hi , how can i bootstraping a network with multiple channel MSP?

hyperbran (Tue, 17 Apr 2018 15:21:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XpMfrarYFwGsyjZHp) @kpkrish there is one DB (e.g. CouchDB) per Org. Committers inside an Org commit to this database. It is like MySQL, you only install one instance and share the database with clients on the site. Transactions are kept in the file and world state inside the database. Transactions refer to the world state. Shared ledger is comprised of the transactions (kept in the file) and world state (kept in the database). Shared ledger is synced across organizations using a powerful full duplex binary protocol gRPC so that each participating Org has up-to-date copy of the shared ledger.

Butzemann (Tue, 17 Apr 2018 15:36:48 GMT):
Has joined the channel.

kpkrish (Tue, 17 Apr 2018 15:37:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NGmw9FNu8E9idbXXe) @hyperbran Thank you for explaining it so clearly.

Butzemann (Tue, 17 Apr 2018 15:39:38 GMT):
@acombeau I had the same issue. I just unistalled the docker images and the fabric samples. Then reinstalled it and made sure, that the versions match. I probably had the samples at 1.0.6 and the binaries at 1.1 or something.

kpkrish (Tue, 17 Apr 2018 15:41:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h9gSjbuF5TtThMrrG) Can multiple channels on a peer share the same ledger?

Butzemann (Tue, 17 Apr 2018 15:50:29 GMT):
I get stuck on "Adding a new Organisation to a channel". The eyfn scripts runs fine, but I have trouble doing it manually. I have no problems before preparing the CLI environment. But when I want to fetch the config in a file, I can not find this file, furthermore i can not continious without it. This command should create a file (but doesn't). `peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA` i set the channelname and ordererCA properly before.

Butzemann (Tue, 17 Apr 2018 15:51:07 GMT):
May someone help me?

hyperbran (Tue, 17 Apr 2018 16:06:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5gzEfareELW2cxsyL) @kpkrish When you create a channel, you instantiate a new blockchain inside the existing inbfrastructure. A new ledger file will be created refering to the same world state database (but different tables, or same tables but different rows in those tables, depending how the database model is implemented). It is like class vs object. Object is instantiated from the class, but its member data are private

tksavov (Tue, 17 Apr 2018 16:07:56 GMT):
Hi everyone! I'm having a bit of weird issues with the BYFN tutorial. I have removed the -d flag on the docker-compose up, so I can see the output, and sometimes I see some warnings like: ``` [gossip/discovery] expireDeadMembers -> WARN 028 peer1.org2.example.com:7051, PKIid:[some integers] isn't responsive: rpc error: code = Canceled desc = context canceled [gossip/discovery] expireDeadMembers -> WARN 029 Closing connection to Endpoint: peer1.org2.example.com:7051, InternalEndpoint: peer1.org2.example.com:7051, PKI-ID: [some integers] [gossip/discovery] expireDeadMembers -> WARN 02a Exiting ``` However, as I said, this is only sometimes. Does anyone have any idea why this happens?

tksavov (Tue, 17 Apr 2018 16:07:56 GMT):
Hi everyone! I'm having a bit of weird issues with the BYFN tutorial. I have removed the -d flag on the docker-compose up, so I can see the output, and sometimes I see some warnings like: ```[gossip/discovery] expireDeadMembers -> WARN 028 peer1.org2.example.com:7051, PKIid:[some integers] isn't responsive: rpc error: code = Canceled desc = context canceled [gossip/discovery] expireDeadMembers -> WARN 029 Closing connection to Endpoint: peer1.org2.example.com:7051, InternalEndpoint: peer1.org2.example.com:7051, PKI-ID: [some integers] [gossip/discovery] expireDeadMembers -> WARN 02a Exiting ``` However, as I said, this is only sometimes. Does anyone have any idea why this happens?

tksavov (Tue, 17 Apr 2018 16:35:45 GMT):
Also, afterwards when I run the e2e tests (`scripts/script.sh`) I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out :) Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

tksavov (Tue, 17 Apr 2018 16:35:45 GMT):
Also, afterwards when I run the e2e tests (```scripts/script.sh```) I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out :) Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

tksavov (Tue, 17 Apr 2018 16:35:45 GMT):
Also, afterwards when I run the e2e (scripts/script.sh) I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out :) Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

tksavov (Tue, 17 Apr 2018 16:35:45 GMT):
Also, afterwards when I run the e2e `scripts/script.sh` I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out :) Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

tksavov (Tue, 17 Apr 2018 16:35:45 GMT):
Also, afterwards when I run the e2e tests in `scripts/script.sh` I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out :) Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

AnthonyLimo (Tue, 17 Apr 2018 16:51:00 GMT):
Hey guys! So I'm running some golang chaincode and I'm getting this error

AnthonyLimo (Tue, 17 Apr 2018 16:51:26 GMT):
func main() { err := shim.Start(new(DecodedChainCode)) if err != nil { fmt.Printf("Error starting Simple chaincode: %s", err) } }

AnthonyLimo (Tue, 17 Apr 2018 16:52:24 GMT):
It states that chaincode cannot run because DecodeChaincode cannot be used as a type with shim.Chaincode

AnthonyLimo (Tue, 17 Apr 2018 16:53:04 GMT):
Any help?

YuHengbing (Tue, 17 Apr 2018 16:58:20 GMT):
Hey guys! Have you run the fabcar example? It takes almost 2.5 seconds to Updating the Ledger. How to reduce the time?

MarinoSabijan (Tue, 17 Apr 2018 17:28:42 GMT):
Has joined the channel.

waleedsohail1 (Tue, 17 Apr 2018 17:49:44 GMT):
Has joined the channel.

waleedsohail1 (Tue, 17 Apr 2018 17:50:49 GMT):
Hey guys, Can I install docker and set it up on windows?

waleedsohail1 (Tue, 17 Apr 2018 17:51:10 GMT):
I did install docker, but was unable to install hyperledger.

waleedsohail1 (Tue, 17 Apr 2018 17:51:13 GMT):
Please help me?

naveenkonduru (Tue, 17 Apr 2018 17:51:39 GMT):
Has joined the channel.

naveenkonduru (Tue, 17 Apr 2018 17:52:04 GMT):
is there any example to run hyperledger on Marathon ?

NareshPai (Tue, 17 Apr 2018 17:54:13 GMT):
Has joined the channel.

egidiocs (Tue, 17 Apr 2018 17:54:25 GMT):
Has joined the channel.

NareshPai (Tue, 17 Apr 2018 17:54:38 GMT):
Hi All, when i run the command "composer-rest-server " and give the business network card name, i'm getting the following error. To restart the REST server using the same options, issue the following command: composer-rest-server -c admin@product-auction -n never -w true Discovering types from business network definition ... Connection fails: Error: No connection type provided, probably because the connection profile has no 'x-type' property defined. It will be retried for the next request. Exception: Error: No connection type provided, probably because the connection profile has no 'x-type' property defined. Error: No connection type provided, probably because the connection profile has no 'x-type' property defined. at ConnectionProfileManager.getConnectionManagerByType (/Users/nareshpai/.nvm/versions/node/v9.5.0/lib/node_modules/composer-rest-server/node_modules/composer-common/lib/connectionprofilemanager.js:76:23) at Promise.resolve.then (/Users/nareshpai/.nvm/versions/node/v9.5.0/lib/node_modules/composer-rest-server/node_modules/composer-common/lib/connectionprofilemanager.js:191:25) at Has anyone come across this ?

waleedsohail1 (Tue, 17 Apr 2018 18:00:33 GMT):
@NareshPai I need some help.

waleedsohail1 (Tue, 17 Apr 2018 18:00:33 GMT):
Actually I am unable to install hyperledger on windows.

NareshPai (Tue, 17 Apr 2018 18:01:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QfjvXifJArMGF6F5d) @waleedsohail1 Yes please. If i know i will definately let you know.

waleedsohail1 (Tue, 17 Apr 2018 18:02:45 GMT):
Actually I am unable to install hyperledger on windows.

NareshPai (Tue, 17 Apr 2018 18:05:53 GMT):
@waleedsohail1 IS there is specific issue you are facing?

NoorFairoza (Tue, 17 Apr 2018 18:06:19 GMT):
Has joined the channel.

NoorFairoza (Tue, 17 Apr 2018 18:06:33 GMT):
How to remove a peer from a channel?

NoorFairoza (Tue, 17 Apr 2018 18:06:33 GMT):
How to remove a peer from a channel? for joining we use peer channel join command. how to remove?

naveenkonduru (Tue, 17 Apr 2018 18:07:11 GMT):
how to get control over chaincode container ?

egidiocs (Tue, 17 Apr 2018 18:07:16 GMT):
[you have to install it on the Linux subsystem ](https://chat.hyperledger.org/channel/fabric-questions?msg=QfjvXifJArMGF6F5d) @waleedsohail1

MarinoSabijan (Tue, 17 Apr 2018 18:17:58 GMT):
is this the best project for electronic health records ?

neil.ohm (Tue, 17 Apr 2018 20:53:25 GMT):
Has joined the channel.

neil.ohm (Tue, 17 Apr 2018 20:54:22 GMT):
I have built a project based on the fabric-samples/fabric-ca example.

neil.ohm (Tue, 17 Apr 2018 20:57:42 GMT):
I have built a project based on the fabric-samples/fabric-ca example. I have a golang chaincode for which i have use govendor to vendorize. On instantiation of the chaincode, I get the following errors: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/hyperledger/fabric/trackeditemcc/vendor/github.com/docker/docker/pkg/archive chaincode/input/src/github.com/hyperledger/fabric/trackeditemcc/vendor/github.com/docker/docker/pkg/archive/archive.go:364:5: hdr.Format undefined (type *tar.Header has no field or method Format) chaincode/input/src/github.com/hyperledger/fabric/trackeditemcc/vendor/github.com/docker/docker/pkg/archive/archive.go:364:15: undefined: tar.FormatPAX chaincode/input/src/github.com/hyperledger/fabric/trackeditemcc/vendor/github.com/docker/docker/pkg/archive/archive.go:1166:7: hdr.Format undefined (type *tar.Header has no field or method Format) chaincode/input/src/github.com/hyperledger/fabric/trackeditemcc/vendor/github.com/docker/docker/pkg/archive/archive.go:1166:17: undefined: tar.FormatPAX Any suggestions on how to get past this?

kkermanizadeh (Tue, 17 Apr 2018 21:02:22 GMT):
#fabric

karimrg (Tue, 17 Apr 2018 21:26:00 GMT):
Has joined the channel.

pratikzambani (Tue, 17 Apr 2018 22:16:48 GMT):
Has joined the channel.

pratikzambani (Tue, 17 Apr 2018 22:17:11 GMT):
Hi, I am new to hyperledger... I have the system on my system and able to run fabcar sample application... I want to integrate my application with google drive to store and retrieve files.. and so I need to install go modules for that.. I see on fabcar application that a new docker container is created using newly created image(dev-peer0.org1.example.com-fabcar...) which runs the chaincode .. can anybody pls guide me how do I include new go modules in the image? Hi, I am new to hyperledger fabric... I have the setup on my system and able to run fabcar sample application... I want to integrate my application with google drive to store and retrieve files.. and so I need to install go modules for that.. I see on fabcar application that a new docker container is created using newly created image(dev-peer0.org1.example.com-fabcar...) which runs the chaincode .. can anybody pls guide me how do I include new go modules that my application can use?

leoaction (Tue, 17 Apr 2018 22:17:52 GMT):
Has joined the channel.

leoaction (Tue, 17 Apr 2018 22:18:02 GMT):
Hello everyone, I'm trying to build the sample fabcar application. At the end, the tutorial says "In a real world application the chaincode would likely have some access control logic. For example, only certain authorized users may create new cars, and only the car owner may transfer the car to somebody else." I know composer can probably do this. Is there any other way to do this?

blackgeneral (Wed, 18 Apr 2018 01:12:09 GMT):
Hi, I wonder difference of role anchor peer and endorser peer. What is difference?

phanipvarma (Wed, 18 Apr 2018 02:51:08 GMT):
Has joined the channel.

phanipvarma (Wed, 18 Apr 2018 02:51:50 GMT):
Hi, i am trying to install a new Fabric version 1.1.0, but while installing the orderer service, it is failing with "bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of: /opt/gopath/src/github.com/hyperledger/fabric/vendor/plugin (vendor tree) /root/go/src/plugin (from $GOROOT) /opt/gopath/src/plugin (from $GOPATH) make: *** [build/bin/orderer] Error 1" ``` Any help is appreciated... :) ```

phanipvarma (Wed, 18 Apr 2018 03:22:12 GMT):
I referred the solution @https://stackoverflow.com/questions/49822717/hyperledger-chaincode-lib-not-found .... but no luck as the version is already on v1.1.0

rajababu3 (Wed, 18 Apr 2018 03:43:33 GMT):
Has joined the channel.

rajababu3 (Wed, 18 Apr 2018 03:44:45 GMT):
Hello there, this command is giving syntax error ----- -bash: syntax error near unexpected token `'user1',true'

rajababu3 (Wed, 18 Apr 2018 03:47:13 GMT):
Got it corrected!

Taffies (Wed, 18 Apr 2018 05:03:24 GMT):
hi! is it possible to look directly at the state database instead of needing to query into the blockchain?

Taffies (Wed, 18 Apr 2018 05:03:34 GMT):
or is the only way to retrieve values through querying?

nukeu666 (Wed, 18 Apr 2018 05:51:32 GMT):
@blackgeneral i believe anchor peer is meant for discovery and communication, endorsing peer is to execute chaincode, you can find details here - http://hyperledger-fabric.readthedocs.io/en/release-1.1/glossary.html

nukeu666 (Wed, 18 Apr 2018 05:53:53 GMT):
@leoaction i believe you'll need to setup MSP to specify who has what permissions, I could be wrong

Daiki0124 (Wed, 18 Apr 2018 06:08:53 GMT):
What does chaincode container mean? Please tell me the difference between cli and chaincode.

lclclc (Wed, 18 Apr 2018 06:21:41 GMT):
Does the fabric support dynamically change the orderer configuration? like block size, Kafka fetching size? Can `peer channel update` change these on the fly?

nukeu666 (Wed, 18 Apr 2018 06:30:40 GMT):
@Daiki0124 cli is commandline commands, chaincode are the go programs used to interact with the ledger

blackgeneral (Wed, 18 Apr 2018 06:33:11 GMT):
@nukeu666 Then, if chaincode was install, is that node endorser peer?

nukeu666 (Wed, 18 Apr 2018 06:38:42 GMT):
@blackgeneral it could be query-only chaincode so it would not commit anything to ledger, don't think you can call it endorser peer then

blackgeneral (Wed, 18 Apr 2018 06:46:44 GMT):
@nukeu666 if that peer is possible INVOKE to ledger, it is endorser peer?

olivia123 (Wed, 18 Apr 2018 06:48:09 GMT):
Hello,i have a issue. after i run"$ docker rmi -f $(docker images -q)" and "./byfn.sh -m down", then back to bash bootstrap.sh again,i got error

olivia123 (Wed, 18 Apr 2018 06:49:01 GMT):

Clipboard - April 18, 2018 2:48 PM

olivia123 (Wed, 18 Apr 2018 06:49:14 GMT):
anyone could help me have a quick look

tksavov (Wed, 18 Apr 2018 06:51:14 GMT):
Hi everyone! I'm having a bit of weird issues with the BYFN tutorial. I have removed the -d flag on the docker-compose up, so I can see the output, and sometimes I see some warnings like: ```[gossip/discovery] expireDeadMembers -> WARN 028 peer1.org2.example.com:7051, PKIid:[some integers] isn't responsive: rpc error: code = Canceled desc = context canceled [gossip/discovery] expireDeadMembers -> WARN 029 Closing connection to Endpoint: peer1.org2.example.com:7051, InternalEndpoint: peer1.org2.example.com:7051, PKI-ID: [some integers] [gossip/discovery] expireDeadMembers -> WARN 02a Exiting ``` However, as I said, this is only sometimes. Does anyone have any idea why this happens?

tksavov (Wed, 18 Apr 2018 06:51:27 GMT):
Also, afterwards when I run the e2e tests in `scripts/script.sh` I get a lot of errors, even though the e2e tests pass successfully eventually. I have deleted old files with `byfn.sh down`and brought the network up using the suggested way. I can paste the exact WARN's I see if anyone is interested in helping out 🙂 Is such behavior normal i.e. errors occur but ultimately the network self-heals, or is there really something wrong?

pb (Wed, 18 Apr 2018 06:53:57 GMT):
Hi All I have tampered the ledger file blockfile_000000 in my peers container's /var/hyperledger/production/ledgersData/chains/chains/mychannel location .And when i made a second transaction, i expected a erroneous log but instead it gave me a successful transaction.So i checked the ledger file content again but surprisingly the new transaction wasnt committed on the ledger .Have anyone of you noticed this?Then i checked the peer log and found this panic error panic: Could not open current file for detecting last block in the file: bufio: negative count

pb (Wed, 18 Apr 2018 06:53:57 GMT):
Hi All I have tampered the ledger file blockfile_000000 in my peer container's /var/hyperledger/production/ledgersData/chains/chains/mychannel location .And when i made a second transaction, i expected a erroneous log but instead it gave me a successful transaction.So i checked the ledger file content again but surprisingly the new transaction wasnt committed on the ledger .Have anyone of you noticed this?Then i checked the peer log and found this panic error panic: Could not open current file for detecting last block in the file: bufio: negative count

madanuuk (Wed, 18 Apr 2018 07:10:42 GMT):
Has joined the channel.

lclclc (Wed, 18 Apr 2018 07:18:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7iG8mHNhGxohDynYr) @olivia123 Your problem is about TLS timeout. Connection between your host and image registry is unstable. Please try a faster mirror instead of official one.

MonnyClara (Wed, 18 Apr 2018 07:29:08 GMT):
@pb Hi ! And what happen when you do it to your orderer blockfile_000000 file ? It might crash the container

hussein.knight (Wed, 18 Apr 2018 08:17:53 GMT):
Hello all i need some help please, my project is to put students certificates on a private blockchain, first i want the student to have an access to the blockchain and only query his certificate, and the certificates have been uploaded to the blockchain by the employee, how can i do this scenario, helpp plz.

lclclc (Wed, 18 Apr 2018 08:35:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D5phKGpmEutSzPY7w) Anyone tried this? help will be appreciated.

gatakka (Wed, 18 Apr 2018 08:36:48 GMT):
@lclclc orderer block size is in channel config, so update of channel config will update the block size. About Kafka i have no information

Daiki0124 (Wed, 18 Apr 2018 08:37:59 GMT):
I can`t instantiate help me root@de06250390a2:/opt/gopath/src# peer chaincode instantiate -n mycc -v 0 -c '{"Args":["init","a","100","b","200"]}' -C mycc 2018-04-18 08:26:21.158 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-18 08:26:21.158 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-18 08:26:21.159 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0A89070A5B08011A0B08AD82DCD60510...6F6E666967426C6F636B0A046D796363 2018-04-18 08:26:21.159 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: FB822DA1CBCC4A5464517F08E27C783EDF943476461969F74EED986E90345095 Error: Error getting (mycc) orderer endpoint: Error endorsing GetConfigBlock: rpc error: code = Unknown desc = chainco

Daiki0124 (Wed, 18 Apr 2018 08:37:59 GMT):
I can`t instantiate help me root@aa:/opt/gopath/src# peer chaincode instantiate -n mycc -v 0 -c '{"Args":["init","a","100","b","200"]}' -C mycc 2018-04-18 08:26:21.158 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-18 08:26:21.158 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-18 08:26:21.159 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0A89070A5B08011A0B08AD82DCD60510...6F6E666967426C6F636B0A046D796363 2018-04-18 08:26:21.159 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: FB822DA1CBCC4A5464517F08E27C783EDF943476461969F74EED986E90345095 Error: Error getting (mycc) orderer endpoint: Error endorsing GetConfigBlock: rpc error: code = Unknown desc = chainco

lclclc (Wed, 18 Apr 2018 08:38:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wEv4YAxyh3Jfqaq6J) @gatakka Kafka is also part of orderer.yaml configuration, I am not sure if it is part of configuration block. If it is, it can be updated. Thanks for your replaying.

lclclc (Wed, 18 Apr 2018 08:40:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=56AsgZwDtt9GHoF9h) @Daiki0124 Looks like your orderer endpoint is missing from gRPC's point of view. Try to ping orderer address inside this container, or check if orderer container is alive.

lclclc (Wed, 18 Apr 2018 08:43:24 GMT):
And I have a extra question here, the default signing policy demands every organization in the channel to sign a CONFIG_UPDATE delta file to add new organization into channel, is it possible to only let the admin organization to sign the file? So I don't have to collect signature across whole channel.

lclclc (Wed, 18 Apr 2018 08:43:24 GMT):
And I have a extra question here, the default signing policy demands every organization in the channel to sign a CONFIG_UPDATE delta file to add new organization into channel, is it possible to only let the admin organization to sign the file? So I don't have to collect signature across whole channel. Do you know where I can find resources about it ? @gatakka

vish 180 (Wed, 18 Apr 2018 08:44:34 GMT):

GoBuild_issue.png

vish 180 (Wed, 18 Apr 2018 08:45:41 GMT):
Any help on the issue mentioned in the screenshot. Looked at Stack overflow for similar issues but could not get a credible solution

Daiki0124 (Wed, 18 Apr 2018 08:46:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r5kgzNka6L5QNoeBn) @lclclc sorry I can`t understand.Please more detail....

lclclc (Wed, 18 Apr 2018 08:47:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mZZT3rRCst4nT2DWT) @Daiki0124 `Error: Error getting (mycc) orderer endpoin` that indicate you should check orderer state.

pb (Wed, 18 Apr 2018 08:52:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DP2ePxZsJZQyfq7KH) @MonnyClara Yes.If this way i could tamper the block in any peer then how framework ensures immutablility??

Daiki0124 (Wed, 18 Apr 2018 08:54:14 GMT):
@lclclc I tried order container use peer command but , can`t use peer command How about check?

Daiki0124 (Wed, 18 Apr 2018 08:54:14 GMT):
@lclclc I tried order container use peer command but , can`t use peer command How about check order container ?

vanitas92 (Wed, 18 Apr 2018 08:55:31 GMT):
vanitas92

lclclc (Wed, 18 Apr 2018 08:55:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mmKSQaBrpzFxKxgLF) @Daiki0124 I am assuming you are inside the `cli` container running this code, you should try to ping orderer inside this container to check the connectivity.

Ammu (Wed, 18 Apr 2018 08:59:50 GMT):
token concept possible in fabrics?

MonnyClara (Wed, 18 Apr 2018 09:01:16 GMT):
@pb I just tried this with a 2org/1orderer blockchain - connect directy to the peer0-org1 container, erase the blockfile and query a chaincode => I get the good answer - then I invoke it and try to query the chaincode => I get the godd answer - connect to the orderer container and erase the blockfile - get back to the peer container and query the chaincode

MonnyClara (Wed, 18 Apr 2018 09:01:42 GMT):
My orderer container crashes and all the system is broken

MonnyClara (Wed, 18 Apr 2018 09:02:29 GMT):
I think the problem here is with the orderer SPoF, maybe this kind of problem can be resolved w/ kafka ... I haven't tried yet

Daiki0124 (Wed, 18 Apr 2018 09:13:32 GMT):
@lclclc Do u know use command? I can`t find it.

lclclc (Wed, 18 Apr 2018 09:19:02 GMT):
what command you want to use? peer binary? orderer binary? ping(this you need to install via apt-get)?

Daiki0124 (Wed, 18 Apr 2018 09:19:46 GMT):
ping

panguangming (Wed, 18 Apr 2018 09:20:54 GMT):
Has joined the channel.

lclclc (Wed, 18 Apr 2018 09:21:57 GMT):
you need to install via apt-get

lclclc (Wed, 18 Apr 2018 09:22:08 GMT):
have you ever used ping before?

panguangming (Wed, 18 Apr 2018 09:22:21 GMT):
Is there any document which explain show to configure 2 or more orderer nodes in Fabric application?

Daiki0124 (Wed, 18 Apr 2018 09:27:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RiJTgKYCzqMSWm5iN) @lclclc Yes, but nothing use container with each other

MonnyClara (Wed, 18 Apr 2018 09:27:16 GMT):
@pb Continuation of my prev message : https://chat.hyperledger.org/channel/fabric-questions?msg=H3bT9AfiFdCTjYXCr I tried to `tail -f block*` into the orderer container and identifie precisly the data added during and invokation. Then I delete this data inside the blockfile of the orderer container, to try to come back to the precedent state. Then when I try to query/invoke from peer container, the system brakes. Good point: if corrupted, the system doesnt allows you to keep going Bad point: it crashes Next step: definitly try it with kafka

pb (Wed, 18 Apr 2018 09:31:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H3bT9AfiFdCTjYXCr) @MonnyClara how many peers did you have for each organization??

MonnyClara (Wed, 18 Apr 2018 09:32:44 GMT):
@pb 2org - 2peers - 1 orderer It was just a network for this test. Do you think that the system would be more resilient with more peers ?

MonnyClara (Wed, 18 Apr 2018 09:32:44 GMT):
@pb 2org - 2peers each - 1 orderer It was just a network for this test. Do you think that the system would be more resilient with more peers ?

pb (Wed, 18 Apr 2018 09:42:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4KRFuH6fZAovHRFhs) @MonnyClara Ok. You got it right just because you had another peer also. I also got the same but after some time the other peer with corrupted ledger exited automatically and then the whole network broke down in case similar to what happened when orderer ledger was corrupted.

pb (Wed, 18 Apr 2018 09:42:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4KRFuH6fZAovHRFhs) @MonnyClara Ok. You got it right just because you had another peer also. I also got the same but after some time the other peer with corrupted ledger exited automatically and then the whole network broke down in case similar to what happened when orderer ledger was corrupted. Also I wasn't able to bring that peer up again and so seems the network is dead anyways.

Daiki0124 (Wed, 18 Apr 2018 09:42:55 GMT):
@lclclc The response is good root@:/opt/gopath/src/github.com/hyperledger/fabric/peer# ping orderer.example.com PING orderer.example.com (172.18.0.2) 56(84) bytes of data. 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=1 ttl=64 time=0.119 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=2 ttl=64 time=0.187 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=3 ttl=64 time=0.105 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=4 ttl=64 time=0.116 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=5 ttl=64 time=0.077 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=6 ttl=64 time=0.165 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=7 ttl=64 time=0.111 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=8 ttl=64 time=0.411 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=9 ttl=64 time=0.114 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=10 ttl=64 time=0.127 ms 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=11 ttl=64 time=0.119 ms

lclclc (Wed, 18 Apr 2018 09:45:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z9tH8JR8iBgfk7Bwh) @Daiki0124 Oh,you forgot to point to the orderers

lclclc (Wed, 18 Apr 2018 09:46:37 GMT):
no, let me check

lclclc (Wed, 18 Apr 2018 09:47:36 GMT):
peer chaincode instantiate -o orderer.ORDERER_DOMAIN:7050 -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" >&log.txt

lclclc (Wed, 18 Apr 2018 09:47:36 GMT):
`peer chaincode instantiate -o orderer.ORDERER_DOMAIN:7050 -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" >&log.txt `

lclclc (Wed, 18 Apr 2018 09:47:36 GMT):
`peer chaincode instantiate -o orderer.ORDERER_DOMAIN:7050 -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" >&log.txt`

lclclc (Wed, 18 Apr 2018 09:47:36 GMT):
```peer chaincode instantiate -o orderer.ORDERER_DOMAIN:7050 -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" >&log.txt```

lclclc (Wed, 18 Apr 2018 09:47:53 GMT):
yes, according to my record, you neet to point to the orderer explictly.

MonnyClara (Wed, 18 Apr 2018 09:49:18 GMT):
@pb I guess the peer exited when they tried to gossip and the corrupted peer exited. This afternoon I'll try to scale this a bit to 8-9 peers on each organisation on see if this kind of error is recoverable without using kafka

MonnyClara (Wed, 18 Apr 2018 09:49:18 GMT):
@pb I guess the peer exited when they tried to gossip and the corrupted peer exited. This afternoon I'll try to scale this a bit to 8-9 peers in each organisation on see if this kind of error is recoverable without using kafka

MonnyClara (Wed, 18 Apr 2018 09:49:18 GMT):
@pb I guess the peer exited when they tried to gossip and the corrupted peer exited. This afternoon I'll try to scale this a bit to 8-9 peers in each organisation to see if this kind of error is recoverable without using kafka

pb (Wed, 18 Apr 2018 09:51:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xTLGR4tr5E5yQoZ8H) @MonnyClara Yes exactly ,the corrupted peer exited.

panguangming (Wed, 18 Apr 2018 09:52:02 GMT):
@pb Is there any document which explain show to configure 2 or more orderer nodes in Fabric application? thanks

MonnyClara (Wed, 18 Apr 2018 09:52:57 GMT):
@panguangming Check this http://hyperledger-fabric.readthedocs.io/en/release-1.1/kafka.html

pb (Wed, 18 Apr 2018 09:53:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=izFg59makLg8WqpnA) Yes so how is this immutability implemented?If the corrupted peer exit then how do we know at some point later that someone tried to corrupted the ledger?

panguangming (Wed, 18 Apr 2018 09:54:16 GMT):
@pb thank you

pb (Wed, 18 Apr 2018 09:55:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=okZBtrG8yBEaisBtF) @panguangming Thank MonnyClara not me :)

Daiki0124 (Wed, 18 Apr 2018 09:56:26 GMT):
@lclclc Can`t :cry: root@:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.localhost:7050 -C mychannel -n mycc -v 1.0 -c '{"A rgs":["init","a","100","b","200"]}' -P "OR('Org1MSP.member','Org2MSP.member')" >&log.txt root@:/opt/gopath/src/github.com/hyperledger/fabric/peer# cat log.txt 2018-04-18 09:54:15.253 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-04-18 09:54:15.257 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-04-18 09:54:15.260 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::1]:7050: getsockopt: connection refused"; Reconnecting to {orderer.localhost:7050 } 2018-04-18 09:54:16.260 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::1]:7050: getsockopt: connection refused"; Reconnecting to {orderer.localhost:7050 } 2018-04-18 09:54:17.812 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::1]:7050: getsockopt: connection refused"; Reconnecting to {orderer.localhost:7050 } Error: Error getting broadcast client: Error connecting to orderer.localhost:7050 due to context deadline exceeded Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed (default "testchainid") -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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

lclclc (Wed, 18 Apr 2018 09:57:10 GMT):
` -o orderer.localhost:7050 ` this is wrong.

lclclc (Wed, 18 Apr 2018 09:57:32 GMT):
what you have pinged is ``` 64 bytes from orderer.example.com.net_byfn (172.18.0.2): icmp_seq=2 ttl=64 time=0.187 ms ```

lclclc (Wed, 18 Apr 2018 09:57:55 GMT):
See that difference in domain?

Kamal_Kishor_Mehra (Wed, 18 Apr 2018 09:58:18 GMT):
Has joined the channel.

Daiki0124 (Wed, 18 Apr 2018 10:04:43 GMT):
So, this command is correct? peer chaincode instantiate -o orderer.orderer.example.com:7050 -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR('Org1MSP.member','Org2MSP.member')" >&log.txt

Daiki0124 (Wed, 18 Apr 2018 10:06:19 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a2266fb1fdef hyperledger/fabric-tools "/bin/bash" About a minute ago Up About a minute cli.org1 3f74eefe0df7 hyperledger/fabric-tools "/bin/bash" About a minute ago Up About a minute cli.org2 5f5f5e25c2a7 hyperledger/fabric-peer:latest "peer node start" About a minute ago Up About a minute 0.0.0.0:10051->7051/tcp, 0.0.0.0:100->7053/tcp peer1.org2.example.com 509b635ec6af hyperledger/fabric-peer:latest "peer node start" About a minute ago Up About a minute 0.0.0.0:7051->7051/tcp, 0.0.0.0:70537053/tcp peer0.org1.example.com b46678a3d825 hyperledger/fabric-peer:latest "peer node start" About a minute ago Up About a minute 0.0.0.0:8051->7051/tcp, 0.0.0.0:80537053/tcp peer1.org1.example.com 6d2cc3eb145b hyperledger/fabric-peer:latest "peer node start" About a minute ago Up About a minute 0.0.0.0:9051->7051/tcp, 0.0.0.0:90537053/tcp peer0.org2.example.com f1d507b3d066 hyperledger/fabric-orderer:latest "orderer" About a minute ago Up About a minute 0.0.0.0:7050->7050/tcp

gopal_07 (Wed, 18 Apr 2018 10:15:59 GMT):
Has joined the channel.

gopal_07 (Wed, 18 Apr 2018 10:17:11 GMT):
What is the use of transaction-id in Invoke function? Can we get details of that transaction using transaction-id?

lclclc (Wed, 18 Apr 2018 10:19:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PzpjXCLmh4EDgcnab) @Daiki0124 No. orderer.orderer.example.com:7050 why you have double orderer here? you mistyped address twice.

pankajcheema (Wed, 18 Apr 2018 10:25:40 GMT):
Does a `peer channel join -b chhhanelname.block` creates a new block in the blockchain ?

ohori (Wed, 18 Apr 2018 10:27:24 GMT):
fabcar!!!! success!!! if you are struggling error message that access denied,, or mychannel doesnt exist... try startFabric.sh command line by line..

pankajcheema (Wed, 18 Apr 2018 10:27:33 GMT):
any clarification appreciated .

deepbatwayne (Wed, 18 Apr 2018 10:28:48 GMT):
Has joined the channel.

pratyushanaga (Wed, 18 Apr 2018 10:32:03 GMT):
ERRO 001 Fatal error when initializing core config : error when reading core config file: While parsing config: yaml: line 79: did not find expected key

pratyushanaga (Wed, 18 Apr 2018 10:32:11 GMT):
error while starting peer

MonnyClara (Wed, 18 Apr 2018 10:32:25 GMT):
@pankajcheema I really don't know, but you can try to `tail -f /var/hyperledger/production/ledgersData/chains/chains/newchannel/blockfile_000000` to check for the transaction happening inside the blokchain And then run a `peer channel join -b chhhanelname.block` from another peer

MonnyClara (Wed, 18 Apr 2018 10:32:25 GMT):
@pankajcheema I really don't know, but you can try to `tail -f /var/hyperledger/production/ledgersData/chains/chains/chhhanelname/blockfile_000000` to check for the transaction happening inside the blokchain And then run a `peer channel join -b chhhanelname.block` from another peer

pankajcheema (Wed, 18 Apr 2018 10:33:16 GMT):
ok let me check and thanks @MonnyClara

pankajcheema (Wed, 18 Apr 2018 10:33:53 GMT):
@pratyushanaga there is syntax error in yaml file

pankajcheema (Wed, 18 Apr 2018 10:37:00 GMT):
@MonnyClara its currently empty after `/var/hyperledger` i only perform 2 action till now `create a channel` and `join a single peer to this channel`

pankajcheema (Wed, 18 Apr 2018 10:38:31 GMT):
@MonnyClara when i run `peer channel fetch ` command it returns me 0 block

Daiki0124 (Wed, 18 Apr 2018 10:39:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vxSuWn5DxBqwZCMCe) @lclclc Please tell me your version!

Daiki0124 (Wed, 18 Apr 2018 10:39:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vxSuWn5DxBqwZCMCe) @lclclc Please tell me your version! ver 1.1?

pratyushanaga (Wed, 18 Apr 2018 10:40:00 GMT):
@pankajcheema is the error is at line 79?.if so then line 79 is commented from starting

pratyushanaga (Wed, 18 Apr 2018 10:40:14 GMT):
can u help me out in solving this

pankajcheema (Wed, 18 Apr 2018 10:41:31 GMT):
@pratyushanaga check here for validation of yaml http://www.yamllint.com/

DeepaMotwani (Wed, 18 Apr 2018 10:51:46 GMT):
Has joined the channel.

DeepaMotwani (Wed, 18 Apr 2018 10:52:46 GMT):
how can we listen to the events written in node sdk chaincode?

pankajcheema (Wed, 18 Apr 2018 11:00:53 GMT):
@MonnyClara not able to unserstand the content written in /var/hyperledger/production/ledgersData/chains/chains/chhhanelname/blockfile_000000

pankajcheema (Wed, 18 Apr 2018 11:01:08 GMT):
any idea how to understand this

lclclc (Wed, 18 Apr 2018 11:02:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jFCESx3urDMLyKxdq) @Daiki0124 yes

deepbatwayne (Wed, 18 Apr 2018 11:19:03 GMT):
any doc on setting up HL through the java SDK on IntelliJ?

MonnyClara (Wed, 18 Apr 2018 11:19:40 GMT):
@pankajcheema I think that you got the peer/orderer certificate between the `---BEGIN` and the `END---` And between the certificate, it may be the data from chaincode

pankajcheema (Wed, 18 Apr 2018 12:50:45 GMT):
One more issue when i up my network with couchdb then couchdb is not creating by default 3 databases that are _user,_replication and _global_changes

pankajcheema (Wed, 18 Apr 2018 12:51:41 GMT):
but when i try creating them using `curl -X PUT couchdb:5984/_user` gives illegal database error.Sometimes its worked

pankajcheema (Wed, 18 Apr 2018 12:51:41 GMT):
but when i try creating them using `curl -X PUT couchdb:5984/_user` gives `illegal database error`.Sometimes its worked

pankajcheema (Wed, 18 Apr 2018 12:52:23 GMT):
Please help me

pankajcheema (Wed, 18 Apr 2018 12:56:21 GMT):
Oh Sorry got the solution

pankajcheema (Wed, 18 Apr 2018 12:57:38 GMT):
we have to do `curl -X PUT couchdb:5984/_users` not `curl -X PUT couchdb:5984/_user` `s` is the culpreet .because couchdb allow only default databases to be created with first _

cuslenghi (Wed, 18 Apr 2018 13:07:16 GMT):
Has joined the channel.

MohammadObaid (Wed, 18 Apr 2018 13:07:26 GMT):
For a production environment how many nodes should we have for each organization?

vloup (Wed, 18 Apr 2018 13:23:08 GMT):
Has joined the channel.

tksavov (Wed, 18 Apr 2018 13:41:45 GMT):
Hi guys, when trying to instantiate some chaincode I get the following: `failed to invoke chaincode name:"lscc" , error: premature execution - chaincode (mycc:1.0) is being launched` Any ideas?

gatakka (Wed, 18 Apr 2018 13:47:34 GMT):
chaincode is already running

amber0x0 (Wed, 18 Apr 2018 14:30:56 GMT):
Has joined the channel.

amber0x0 (Wed, 18 Apr 2018 14:31:29 GMT):
✋ Hi everyone. I am trying to join the channel on one of the peer but receive the followin error: Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" for chainID = testchainid failed because of validation of configuration block, because of Invalid configuration block, missing Application configuration group)) I follow the documentation tutorial and have created channel-artifacts and crypto-config

MonnyClara (Wed, 18 Apr 2018 14:36:38 GMT):
@amber0x0 Which command did you run ?

amber0x0 (Wed, 18 Apr 2018 14:37:12 GMT):
peer channel join -b ./channel-artifacts/genesis.block

amber0x0 (Wed, 18 Apr 2018 14:38:37 GMT):
I am executing it inside the peer docker container. channel-artifacts was created locally on my computer and then mounted to the container

Rapture (Wed, 18 Apr 2018 15:21:29 GMT):
Hi Guys, I have a question about the Writing Your First Application tutorial

Rapture (Wed, 18 Apr 2018 15:21:50 GMT):
When I'm trying to install npm, it gives me some errors and subsequently if I try to use node enrolLAdmin.js it gives me the error that it cannot find fabric-client module

Rapture (Wed, 18 Apr 2018 15:21:59 GMT):
I tried it on multiple machines and I can't seem to figure it out

Rapture (Wed, 18 Apr 2018 15:22:14 GMT):
Has anyone experienced this? And maybe knows how to fixi t?

vick (Wed, 18 Apr 2018 16:14:10 GMT):
@Rapture what errors are you getting?

Rapture (Wed, 18 Apr 2018 16:14:38 GMT):
@vick for npm install?

vick (Wed, 18 Apr 2018 16:14:51 GMT):
@Rapture yes, please provide a bit more detail ...

vick (Wed, 18 Apr 2018 16:16:18 GMT):
Does anyone know what the steps are to deploy chaincode to multiple hosts?, i know how it's done with one host ... now if i want to invoke the chaincode on another host, do i have to deploy and instantiate it again? ... no right?

Rapture (Wed, 18 Apr 2018 16:19:15 GMT):
@vick ahh.. the issue was that I did not have G++ installed, I kept looking at the errors at the end of the log, but long ebfore that it says the command for G++ was not found

Rapture (Wed, 18 Apr 2018 16:19:32 GMT):
Thanks for making me look again, I was wondering why it workedo n the other machine

Rapture (Wed, 18 Apr 2018 16:20:09 GMT):
@vick I've heard people did it using Docker Swarm or Kubernetes, but I do not know any details, unfortunately

tiyyagurasatish (Wed, 18 Apr 2018 16:22:14 GMT):
Has joined the channel.

vick (Wed, 18 Apr 2018 16:28:32 GMT):
@Rapture cool, no problem

ThomasBereczky (Wed, 18 Apr 2018 17:11:29 GMT):
Has joined the channel.

phanipvarma (Wed, 18 Apr 2018 18:09:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3fqw7zYMeFKh9cpEm) Anyone has come across this issue ?

kkbankol (Wed, 18 Apr 2018 21:15:42 GMT):
Has joined the channel.

atakada (Wed, 18 Apr 2018 21:45:40 GMT):
Has joined the channel.

dibin (Thu, 19 Apr 2018 01:03:03 GMT):
Has joined the channel.

dibin (Thu, 19 Apr 2018 01:03:08 GMT):
I am a Fabric developer.I have a question,is there a plan for the transfer of zhipiao across the channels? zhipiao is an asset is defined by channelcode,it was created by A,transfer to B ,and then transter to C ,C and A channel, how do you get this asset?

ruffsl (Thu, 19 Apr 2018 01:10:57 GMT):
Has left the channel.

DeepaMotwani (Thu, 19 Apr 2018 03:48:12 GMT):
can anyone please help me out how can we listen to the events published?

lclclc (Thu, 19 Apr 2018 04:42:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rgsxKajGWcwRmL8gG) @DeepaMotwani You can use this https://fabric-sdk-node.github.io/tutorial-channel-events.html

Daiki0124 (Thu, 19 Apr 2018 05:05:32 GMT):
Hi! An errot occured when after running the command help me ver1.0 ubuntu@:~/fabric-samples/first-network$ sudo ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... cryptogen tool not found. exiting ubuntu@tk2-238-28766:~/fabric-samples/first-network$ ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x824731] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420116080, 0x34, 0x0, 0x0, 0xc420110001, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:179 +0x2d1 main.generatePeerOrg(0x925880, 0xd, 0xc420016a20, 0x4, 0xc420016a40, 0x10, 0x1, 0x92345c, 0x2, 0xc420110040, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:529 +0x915 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:387 +0x16d main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:221 +0x2a0 + res=2 + set +x Failed to generate certificates...

Daiki0124 (Thu, 19 Apr 2018 05:05:32 GMT):
Hi! An errot occured when after running the command help me ver1.1 ubuntu@:~/fabric-samples/first-network$ sudo ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... cryptogen tool not found. exiting ubuntu@tk2-238-28766:~/fabric-samples/first-network$ ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x824731] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420116080, 0x34, 0x0, 0x0, 0xc420110001, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:179 +0x2d1 main.generatePeerOrg(0x925880, 0xd, 0xc420016a20, 0x4, 0xc420016a40, 0x10, 0x1, 0x92345c, 0x2, 0xc420110040, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:529 +0x915 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:387 +0x16d main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:221 +0x2a0 + res=2 + set +x Failed to generate certificates...

DeepaMotwani (Thu, 19 Apr 2018 05:10:57 GMT):
@lclclc I want to listen to the event outside the blockchain from client application. How can I do it?

Daiki0124 (Thu, 19 Apr 2018 05:12:40 GMT):
Hi! An errot occured when after running the command help me ver1.1 ubuntu@:~/fabric-samples/first-network$ sudo ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... cryptogen tool not found. exiting ubuntu@tk2-238-28766:~/fabric-samples/first-network$ ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x824731] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420116080, 0x34, 0x0, 0x0, 0xc420110001, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:179 +0x2d1 main.generatePeerOrg(0x925880, 0xd, 0xc420016a20, 0x4, 0xc420016a40, 0x10, 0x1, 0x92345c, 0x2, 0xc420110040, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:529 +0x915 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:387 +0x16d main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:221 +0x2a0 + res=2 + set +x Failed to generate certificates...

Daiki0124 (Thu, 19 Apr 2018 05:12:40 GMT):
Hi! An errot occured when after running the command help me ver1.1 ubuntu@:~/fabric-samples/first-network$ ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x824731] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420116080, 0x34, 0x0, 0x0, 0xc420110001, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:179 +0x2d1 main.generatePeerOrg(0x925880, 0xd, 0xc420016a20, 0x4, 0xc420016a40, 0x10, 0x1, 0x92345c, 0x2, 0xc420110040, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:529 +0x915 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:387 +0x16d main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:221 +0x2a0 + res=2 + set +x Failed to generate certificates...

lclclc (Thu, 19 Apr 2018 05:13:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JiGABgoHPdFxqYnZi) @DeepaMotwani have you checked the link?

DeepaMotwani (Thu, 19 Apr 2018 05:16:40 GMT):
@lclclc yes I have gone through the link. I want to subscribe to the events from my spring boot application and send the notifications through my apis

akankshaB (Thu, 19 Apr 2018 05:45:06 GMT):
Has joined the channel.

lclclc (Thu, 19 Apr 2018 05:57:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zXophWvsKFWMA4e4k) @DeepaMotwani then you can try Java SDK

lclclc (Thu, 19 Apr 2018 05:57:43 GMT):
which is equal to this node example somehow.

DeepaMotwani (Thu, 19 Apr 2018 06:02:32 GMT):
@lclclc I am successfully getting the notification as per the link's instructions. But as per my requirement, can we subscribe to events outside the channel(other existing applications)?

lclclc (Thu, 19 Apr 2018 06:05:22 GMT):
Don't quite get your point.

DeepaMotwani (Thu, 19 Apr 2018 06:11:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=akmc3NWgG7HMMyEfW) @lclclc My requirement is to listen events published in node js client by other existing (non blockchain) applications.

DeepaMotwani (Thu, 19 Apr 2018 06:11:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=akmc3NWgG7HMMyEfW) @lclclc My requirement is to listen events published in node js client by other existing (non blockchain) applications.

deepbatwayne (Thu, 19 Apr 2018 06:16:15 GMT):
Has left the channel.

lclclc (Thu, 19 Apr 2018 06:16:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ztttc3HNnJfxvyuRu) @DeepaMotwani so you want to publish event by channel, then publish by nodejs, then subscribe by Spring boot application? You need a MQ.

DeepaMotwani (Thu, 19 Apr 2018 06:17:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iphFquXpvgdAYf4oC) @lclclc Yes this is what I want.

DevenderYadav (Thu, 19 Apr 2018 07:33:43 GMT):
Has joined the channel.

DevenderYadav (Thu, 19 Apr 2018 07:36:30 GMT):
Can I write chaincode in Java?

lclclc (Thu, 19 Apr 2018 07:42:02 GMT):
yes you can

Daiki0124 (Thu, 19 Apr 2018 07:43:07 GMT):
Hi! An errot occured when after running the command help me ver1.1 ubuntu@:~/fabric-samples/first-network$ ./byfn.sh generate -c mychannel Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /home/ubuntu/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x824731] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420116080, 0x34, 0x0, 0x0, 0xc420110001, 0x16, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:179 +0x2d1 main.generatePeerOrg(0x925880, 0xd, 0xc420016a20, 0x4, 0xc420016a40, 0x10, 0x1, 0x92345c, 0x2, 0xc420110040, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:529 +0x915 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:387 +0x16d main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:221 +0x2a0 + res=2 + set +x Failed to generate certificates...

umtyzc (Thu, 19 Apr 2018 08:07:03 GMT):
Has joined the channel.

ohori (Thu, 19 Apr 2018 08:21:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dnZf3AyZG43fjbas6) @Daiki0124 after the command... was it create folder ~/fabric/samples/first-network/crypto-config/peerOrganizations/org1.example.com... so, org1.example.com is ok? i want to know which is problem that both

ohori (Thu, 19 Apr 2018 08:24:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dnZf3AyZG43fjbas6) @Daiki0124 check your /first-network/crypto-config.yaml "EnableNodeOUs: true" in PeerOrgs section

maheshreddy (Thu, 19 Apr 2018 08:39:40 GMT):
Has joined the channel.

DevenderYadav (Thu, 19 Apr 2018 08:40:15 GMT):
Hi all

maheshreddy (Thu, 19 Apr 2018 08:41:00 GMT):
hi

DevenderYadav (Thu, 19 Apr 2018 08:41:29 GMT):
What should be the ideal batchsize and timeout for SBFT consensus?

DevenderYadav (Thu, 19 Apr 2018 08:41:29 GMT):
What should be the ideal batchsize and timeout for SBFT consensus in `fabric/consensus/pbft/config.yaml` ?

kiattchaip (Thu, 19 Apr 2018 08:41:53 GMT):
Hi, I have a question about the endorsement policy. If I need 1 signature from org1 and 1 signature from org2, the policy will be "AND('Org1.member', 'Org2.member')". However, my network has 1 org and the org has 3 peers. If I would like to write the policy that requires the signature from 2 peers, how can I do that?

kiattchaip (Thu, 19 Apr 2018 08:41:53 GMT):
Hi, I have a question about the endorsement policy. If I need 1 signature from org1 and 1 signature from org2, the policy will be `AND('Org1.member', 'Org2.member')`. However, my network has 1 org and the org has 3 peers. If I would like to write the policy that requires the signature from 2 peers, how can I do that?

DevenderYadav (Thu, 19 Apr 2018 08:45:01 GMT):
What is the rough estimates for size of the network? Nodes in order of 10s or 100s or 1000s?

DevenderYadav (Thu, 19 Apr 2018 08:45:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3LjLmjfA6syRpJr4u) @lclclc Thanks. Can you please point me to the documentation

lclclc (Thu, 19 Apr 2018 08:47:30 GMT):
https://github.com/hyperledger/fabric-sdk-java

DevenderYadav (Thu, 19 Apr 2018 08:49:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2knTRZe7osqYcAseK) @lclclc Damn I though writing chaincode in Java in work in progress. Thanks for the clarification

lclclc (Thu, 19 Apr 2018 08:49:23 GMT):
oh the chaincode is another thing

lclclc (Thu, 19 Apr 2018 08:49:45 GMT):
https://openblockchain.readthedocs.io/en/latest/Setup/JAVAChaincode/

lclclc (Thu, 19 Apr 2018 08:49:52 GMT):
that was for client sdk

lclclc (Thu, 19 Apr 2018 08:49:57 GMT):
.this is for chaincode

DevenderYadav (Thu, 19 Apr 2018 08:50:03 GMT):
ok cool

DevenderYadav (Thu, 19 Apr 2018 08:50:21 GMT):
:clap:

lclclc (Thu, 19 Apr 2018 08:52:13 GMT):
actually the java chaicode also has example under fabric offical repo

lclclc (Thu, 19 Apr 2018 08:52:35 GMT):
https://github.com/hyperledger/fabric/tree/release-1.1/examples/chaincode/java

DevenderYadav (Thu, 19 Apr 2018 08:57:18 GMT):
Will check it. Thanks @lclclc

IvanV6 (Thu, 19 Apr 2018 09:00:52 GMT):
Dear all, i have a simple question. There is a way to deploy the rest API of fabric using an IP address instead of localhost? Thanks

SruthiMannambeth (Thu, 19 Apr 2018 09:02:31 GMT):
Has joined the channel.

tksavov (Thu, 19 Apr 2018 09:20:15 GMT):
Hi all. How much time does instantiating the node.js chaincode in the BYFN tutorial usually take? I waited for >4 minutes and nothing happens, while the e2e tests pass in like 2-3 tops. Should I just wait more, or does the process hang? FWIW I don't see any logs in the cli container of the code being instantiated.

chrcharles (Thu, 19 Apr 2018 09:26:05 GMT):
Has joined the channel.

Norfolks (Thu, 19 Apr 2018 09:26:53 GMT):
Has joined the channel.

DevenderYadav (Thu, 19 Apr 2018 09:44:04 GMT):
What orderer service do you folks use in your projects?

DevenderYadav (Thu, 19 Apr 2018 10:15:27 GMT):
Is BFT based ordering service available?

DevenderYadav (Thu, 19 Apr 2018 10:15:50 GMT):
I checked - https://jira.hyperledger.org/browse/FAB-33 and it is Unresolved

RohitYadav2 (Thu, 19 Apr 2018 10:18:59 GMT):
Has joined the channel.

thegauravks (Thu, 19 Apr 2018 10:32:59 GMT):
Has joined the channel.

VadimInshakov (Thu, 19 Apr 2018 10:37:20 GMT):
Why I get "context deadline exceeded" error? https://stackoverflow.com/questions/49876193/hyperledger-fabric-context-deadline-exceeded

RohitYadav2 (Thu, 19 Apr 2018 10:44:35 GMT):
Hi Guys, I'm very new to HyperLedger Fabric, So I just installed Prerequisites on my Ubuntu 17.10, The setup is :- Node :- 8.11.1 npm :- 5.6.0 cUrl:- 7.55.1 Docker:- 18.03.0-ce, build 0520e24 Docker Compose:- 1.21.0, build 5920eb0 Go :- go1.10.1 linux/amd64 Python:- 2.7.14 and Downloaded Samples by cloning it using git Using "git clone -b master https://github.com/hyperledger/fabric-samples.git" But Now when I'm Executing :- "curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0" to install Download Platform-specific Binaries then I'm getting Permission Denied Errors, so I tried executing the same command using "Sudo" but not worked for me. So please let me know how to install these DPS.

Daiki0124 (Thu, 19 Apr 2018 10:46:29 GMT):
Hi Guys! Please tell me check that how to check install chaincode

Daiki0124 (Thu, 19 Apr 2018 10:46:29 GMT):
Hi Guys! Please tell me check that how to check installed chaincode

Daiki0124 (Thu, 19 Apr 2018 10:47:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=foDBbyFdHJ5TYPkJK) @ohori Thanks ! I will try!!!

MonnyClara (Thu, 19 Apr 2018 10:51:56 GMT):
@RohitYadav2 The Permission Denied Errors is from who ?

RohitYadav2 (Thu, 19 Apr 2018 10:57:56 GMT):
@MonnyClara, Mate When I'm Executing curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

RohitYadav2 (Thu, 19 Apr 2018 10:58:01 GMT):
this command

RohitYadav2 (Thu, 19 Apr 2018 10:58:20 GMT):
then after Downloading

RohitYadav2 (Thu, 19 Apr 2018 10:58:35 GMT):
Permission denied, Permission denied

RohitYadav2 (Thu, 19 Apr 2018 10:58:44 GMT):
errors are coming

MonnyClara (Thu, 19 Apr 2018 10:59:16 GMT):
@RohitYadav2 So that bash that throw this `Permission denied` Just run `curl -sSL https://goo.gl/6wtTN5 | sudo bash -s 1.1.0` This way, it should work better

RohitYadav2 (Thu, 19 Apr 2018 10:59:36 GMT):
okay let me try this

RohitYadav2 (Thu, 19 Apr 2018 10:59:59 GMT):
then I'll let you know :)

priyankagurnani (Thu, 19 Apr 2018 11:05:57 GMT):
Has joined the channel.

RohitYadav2 (Thu, 19 Apr 2018 11:24:16 GMT):
@MonnyClara This is the Error I'm Getting is :- Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/create?fromImage=hyperledger%2Ffabric-peer&tag=x86_64-1.1.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/hyperledger/fabric-peer:x86_64-1.1.0/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

MonnyClara (Thu, 19 Apr 2018 11:26:33 GMT):
@RohitYadav2 Either your not part of docker group, so you can't connect to the Docker daemon What you can try is to go root (`su` command) and re-run the `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0`

MonnyClara (Thu, 19 Apr 2018 11:26:33 GMT):
@RohitYadav2 Either your not part of docker group, so you can't connect to the Docker daemon. Or your docker isn't running properly. What you can try is to go root (`su` command) and re-run the `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0`

Esalari (Thu, 19 Apr 2018 11:31:51 GMT):
Has joined the channel.

RohitYadav2 (Thu, 19 Apr 2018 11:31:57 GMT):
let me check :)

heomappro (Thu, 19 Apr 2018 11:36:40 GMT):
Has joined the channel.

heomappro (Thu, 19 Apr 2018 11:37:59 GMT):
Hi Rohit. I would like to know more about ordering services. Is there a special organization that owns orderer nodes?

maheshreddy (Thu, 19 Apr 2018 11:39:16 GMT):
@RohitYadav2 make sure you have started docker

RohitYadav2 (Thu, 19 Apr 2018 11:40:32 GMT):
@heomappro I'm just getting started now so nothing set for organization and anything else

RohitYadav2 (Thu, 19 Apr 2018 11:41:02 GMT):
@maheshreddy, I haven't started the Docker

maheshreddy (Thu, 19 Apr 2018 11:41:26 GMT):
start the docker @RohitYadav2

RohitYadav2 (Thu, 19 Apr 2018 11:41:44 GMT):
So this is the point I may missed I'll try this

RohitYadav2 (Thu, 19 Apr 2018 11:41:49 GMT):
sure:)

RohitYadav2 (Thu, 19 Apr 2018 11:41:49 GMT):
sure :)

heomappro (Thu, 19 Apr 2018 11:42:50 GMT):
@RohitYadav2. thanks

heomappro (Thu, 19 Apr 2018 11:43:52 GMT):
I think who owns the orderers also owns the channel. Anyone can tell me if that is true?

pankajcheema (Thu, 19 Apr 2018 12:06:47 GMT):
Hi Experts getting error ```{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}``

pankajcheema (Thu, 19 Apr 2018 12:07:02 GMT):
When i up the network with couchdb

pankajcheema (Thu, 19 Apr 2018 12:07:43 GMT):
channel database is also not created in couchdb

pankajcheema (Thu, 19 Apr 2018 12:08:11 GMT):
As i Know coucdb creates 3 system database by default but htis is also not happening here

pankajcheema (Thu, 19 Apr 2018 12:08:11 GMT):
As i Know coucdb creates 3 system database by default but this is also not happening here .

Norfolks (Thu, 19 Apr 2018 12:08:40 GMT):
Hi, sorry for distributing I am trying to connect to channel that is running on devmode peer It uses Client initialized with some net profile(json file). It tried to create it on my own, but seems to be faild. Also, I created a question on stackoverflow: https://stackoverflow.com/questions/49902653/communicate-with-hyperledger-fabric-oredrer So, is there any pretty way to invoke channel chaincode with python or maybe something else?

pankajcheema (Thu, 19 Apr 2018 12:20:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5CAawcCSkHqv5kN8x) I think No.Can anyone else make it clear am not sure

pankajcheema (Thu, 19 Apr 2018 12:20:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5CAawcCSkHqv5kN8x) I think No . Can anyone else make it clear am not sure

pankajcheema (Thu, 19 Apr 2018 12:23:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bx67tQi6RApP7mrW9) asked question on stackoverflow also https://stackoverflow.com/questions/49920605/getting-error-running-couchdb-2-1-in-docker

RohitYadav2 (Thu, 19 Apr 2018 12:27:52 GMT):
@MonnyClara After Running *curl -sSL https://goo.gl/6wtTN5 | sudo bash -s 1.1.0* I'm Getting this x86_64-0.4.6: Pulling from hyperledger/fabric-zookeeper Digest: sha256:7fda667f6c39d6cb87125c132962fc3e434a8e6b2b16ee798d6fa94f970531a2 Status: Image is up to date for hyperledger/fabric-zookeeper:x86_64-0.4.6 ===> List out hyperledger docker images hyperledger/fabric-ca latest 72617b4fa9b4 4 weeks ago 299MB hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 4 weeks ago 299MB hyperledger/fabric-tools latest b7bfddf508bc 4 weeks ago 1.46GB hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 4 weeks ago 1.46GB hyperledger/fabric-orderer latest ce0c810df36a 4 weeks ago 180MB hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 4 weeks ago 180MB hyperledger/fabric-peer latest b023f9be0771 4 weeks ago 187MB hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 4 weeks ago 187MB hyperledger/fabric-javaenv latest 82098abb1a17 4 weeks ago 1.52GB hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 4 weeks ago 1.52GB hyperledger/fabric-ccenv latest c8b4909d8d46 4 weeks ago 1.39GB hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 4 weeks ago 1.39GB hyperledger/fabric-zookeeper latest 92cbb952b6f8 2 months ago 1.39GB hyperledger/fabric-zookeeper x86_64-0.4.6 92cbb952b6f8 2 months ago 1.39GB hyperledger/fabric-kafka latest 554c591b86a8 2 months ago 1.4GB hyperledger/fabric-kafka x86_64-0.4.6 554c591b86a8 2 months ago 1.4GB hyperledger/fabric-couchdb latest 7e73c828fc5b 2 months ago 1.56GB hyperledger/fabric-couchdb x86_64-0.4.6 7e73c828fc5b 2 months ago 1.56GB

RohitYadav2 (Thu, 19 Apr 2018 12:29:01 GMT):
So I thought that It's ready for next step so I've added *export PATH=/bin:$PATH* to my profile and Executed :-* ./byfn.sh -m generate* command

RohitYadav2 (Thu, 19 Apr 2018 12:29:01 GMT):
So I thought that It's ready for next step so I've added *export PATH=/bin:$PATH* to my profile and Executed :- * ./byfn.sh -m generate* command

RohitYadav2 (Thu, 19 Apr 2018 12:29:27 GMT):
but getting cryptogen tool not found. exiting

RohitYadav2 (Thu, 19 Apr 2018 12:29:45 GMT):
can you please guide me to resolve it :)

Daiki0124 (Thu, 19 Apr 2018 12:30:48 GMT):
Hi! An errot occured when after running the command help me ver1.0 ubuntu@:~/fabric-samples/first-network$ curl -s -X POST http://localhost:4000/channels -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjQxNzQzMTQsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Iam9yZzEiLCJpYXQiOjE1MjQxMzgzMTR9.lLupm9XzLAIjGNfwbLK0iYgbmopKE45Wu4aeSERGFWU" -H "content-type: application/json" -d '{"channelName":"mychannel111","channelConfigPath":"../channel-artifacts/channel.tx"}' ------------------ Omitted ------------------ [2018-04-19 20:02:00.431] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: 'peerorg1Admin' } [2018-04-19 20:02:00.432] [DEBUG] Create-Channel - Successfully acquired admin user for the organization "org1" [2018-04-19 20:02:00.460] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-04-19 20:02:00.475] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-04-19 20:02:00.498] [DEBUG] Create-Channel - response ::{"status":"BAD_REQUEST","info":""} [2018-04-19 20:02:00.498] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'mychannel33' !!!!!!!!! (node:16659) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to create the channel 'mychannel33'

Daiki0124 (Thu, 19 Apr 2018 12:30:48 GMT):
Hi! An errot occured when after running the command help me ver1.0 ubuntu@:~/fabric-samples/first-network$ curl -s -X POST http://localhost:4000/channels -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjQxNzQzMTQsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Iam9yZzEiLCJpYXQiOjE1MjQxMzgzMTR9.lLupm9XzLAIjGNfwbLK0iYgbmopKE45Wu4aeSERGFWU" -H "content-type: application/json" -d '{"channelName":"mychannel111","channelConfigPath":"../channel-artifacts/channel.tx"}' ------------------ Omitted ------------------ [2018-04-19 20:02:00.431] [DEBUG] Helper - [FileKeyValueStore.js]: setValue { key: 'peerorg1Admin' } [2018-04-19 20:02:00.432] [DEBUG] Create-Channel - Successfully acquired admin user for the organization "org1" [2018-04-19 20:02:00.460] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-04-19 20:02:00.475] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-04-19 20:02:00.498] [DEBUG] Create-Channel - response ::{"status":"BAD_REQUEST","info":""} [2018-04-19 20:02:00.498] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'mychannel33' !!!!!!!!! (node:16659) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to create the channel 'mychannel111'

nbosa (Thu, 19 Apr 2018 12:38:27 GMT):
Has joined the channel.

pankajcheema (Thu, 19 Apr 2018 13:23:04 GMT):
@RohitYadav2 you have to add the path where your cryptogen binary exist in your system

RohitYadav2 (Thu, 19 Apr 2018 13:24:31 GMT):
yep added :)

pankajcheema (Thu, 19 Apr 2018 13:27:21 GMT):
For better knowledge just remove -d from byfn.sh

pankajcheema (Thu, 19 Apr 2018 13:27:37 GMT):
@RohitYadav2

RohitYadav2 (Thu, 19 Apr 2018 13:29:26 GMT):
@pankajcheema, Mate I've made this step successfully :) The Reason was Due to some unexpected issue *"cryptogen"* was not downloading using cUrl

RohitYadav2 (Thu, 19 Apr 2018 13:29:43 GMT):
So I've downloaded it

CorentinPacaud (Thu, 19 Apr 2018 13:43:56 GMT):
HEllo, I try to build my own network. When I do a composer install.... I've got this error ```Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.``` I search on the internet and find this but it seems to be resolve. Any idea ? https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/32

VadimInshakov (Thu, 19 Apr 2018 13:45:47 GMT):
What is the rigth folder of MSP? I pointed the path in the docker-compose: *- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp* but I get the error: `Cannot run peer because cannot init crypto, missing /etc/hyperledger/crypto-config/peerOrganizations/org1.ex.com/users/Admin@ex.com/msp`

priyankagurnani (Thu, 19 Apr 2018 13:47:56 GMT):
Hello, I ran ./startFabric.sh node for fabcar samples for nodejs but after executing few commands , it stops and gives error

priyankagurnani (Thu, 19 Apr 2018 13:48:35 GMT):
2018-04-19 13:40:45.402 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: E9DA7A7A17D063F12C73F515CB377BE409DABBE877F8F373B76C9817EF51609A Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:aa59469cdd036d36f56395e3334aac7099ee8d7d7cc6e37fbb153e0976a8afcc) Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed --collections-config string The file containing the configuration for the chaincode's collection -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding

priyankagurnani (Thu, 19 Apr 2018 13:48:35 GMT):
2018-04-19 13:40:45.402 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: E9DA7A7A17D063F12C73F515CB377BE409DABBE877F8F373B76C9817EF51609A Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:aa59469cdd036d36f56395e3334aac7099ee8d7d7cc6e37fbb153e0976a8afcc) Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed --collections-config string The file containing the configuration for the chaincode's collection -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SJ5WPcvTBNzPLSqxe)

priyankagurnani (Thu, 19 Apr 2018 13:52:43 GMT):
"2018-04-19 13:40:45.402 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: E9DA7A7A17D063F12C73F515CB377BE409DABBE877F8F373B76C9817EF51609A Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:aa59469cdd036d36f56395e3334aac7099ee8d7d7cc6e37fbb153e0976a8afcc) Usage: peer chaincode instantiate [flags] Flags: -C, --channelID string The channel on which this command should be executed --collections-config string The file containing the configuration for the chaincode's collection -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -E, --escc string The name of the endorsement system chaincode to be used for this chaincode -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -P, --policy string The endorsement policy associated to this chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands -V, --vscc string The name of the verification system chaincode to be used for this chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding "

vick (Thu, 19 Apr 2018 13:55:44 GMT):
does know what's the recommended process for adding a new orderer to an existing network? is that a valid use case? do all the crypto artifacts need to be regenerated?

vick (Thu, 19 Apr 2018 13:56:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FDweyz6R867gKu5T8) you said after a few commands it starts giving you errors, after which kind of commands and how many times are you able to run them? are you running them on different hosts? what's your setup?

vick (Thu, 19 Apr 2018 13:58:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gAiT5fXuwgaNdtLZi) @VadimInshakov this depends on the definition you have inside the docker compose yaml file, carefully inspect the path by connecting to the peer via bash, you can do this with this command docker exec -it [peername] bash and see if you can cd to the directory that it is complaining about

vick (Thu, 19 Apr 2018 13:59:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gbKQYiXanQC7WGnRP) @CorentinPacaud are you trying to install hyperledger-composer?

CorentinPacaud (Thu, 19 Apr 2018 14:00:21 GMT):
@vick I try this command : `composer network install -a bna/dist/network.bna -c PeerAdmin@network`

vick (Thu, 19 Apr 2018 14:01:53 GMT):
@CorentinPacaud oh i am sorry i actually haven't used this tool before, i thought you were asking about something else

vick (Thu, 19 Apr 2018 14:02:39 GMT):
@CorentinPacaud do you need to specify a version number maybe? as part of the command? is there a version number on the network.bna file?

CorentinPacaud (Thu, 19 Apr 2018 14:03:38 GMT):
I donk think so, otherwise, the cmd itself sould tell me that a variable is missing

priyankagurnani (Thu, 19 Apr 2018 14:06:31 GMT):
@vick ./startFabric.sh has created channel and instantiated and had peer join to channel. Later when returning existing local MSP it gives error:

priyankagurnani (Thu, 19 Apr 2018 14:06:34 GMT):
Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:aa59469cdd036d36f56395e3334aac7099ee8d7d7cc6e37fbb153e0976a8afcc)

vick (Thu, 19 Apr 2018 14:07:37 GMT):
@priyankagurnani can you send me a screenshot of your startFabric.sh?

vick (Thu, 19 Apr 2018 14:08:04 GMT):
@priyankagurnani i think it's trying to deploy the chaincode and failing on that ...

vick (Thu, 19 Apr 2018 14:08:47 GMT):
@priyankagurnani can you try to run each command manually instead of using the script and see which command it's failing on

priyankagurnani (Thu, 19 Apr 2018 14:13:15 GMT):

Screenshot from 2018-04-19 19-41-47.png

priyankagurnani (Thu, 19 Apr 2018 14:15:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mT6RK4NbAmbrnHkgx) @vick ok I will try it manually

pankajcheema (Thu, 19 Apr 2018 14:17:19 GMT):
@vick have you setup physical network without docker ?

vick (Thu, 19 Apr 2018 14:17:49 GMT):
@pankajcheema no not without docker, still using docker and docker-compose but it's a physical network

pankajcheema (Thu, 19 Apr 2018 14:17:51 GMT):
Each peer and ordered on separate physical machine

pankajcheema (Thu, 19 Apr 2018 14:18:12 GMT):
Ok

vick (Thu, 19 Apr 2018 14:18:32 GMT):
i have Host 1, with CA, Orderer, Peer 0, Peer 1 and Host 2 with just Peer 2

pankajcheema (Thu, 19 Apr 2018 14:19:30 GMT):
@vick tls enables

pankajcheema (Thu, 19 Apr 2018 14:19:33 GMT):
?

vick (Thu, 19 Apr 2018 14:19:46 GMT):
how can i check that?

pankajcheema (Thu, 19 Apr 2018 14:20:14 GMT):
In your environment variable

pankajcheema (Thu, 19 Apr 2018 14:20:24 GMT):
For peer and orderer

vick (Thu, 19 Apr 2018 14:22:29 GMT):
what should i look for? @pankajcheema

pankajcheema (Thu, 19 Apr 2018 14:24:02 GMT):
Give me 2 min

VadimInshakov (Thu, 19 Apr 2018 14:24:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JmnH9Z9WGQoaKdabu) @vick but I can't start peer because of this error, so I can't enter to container. What can I do in this situation?

vick (Thu, 19 Apr 2018 14:28:08 GMT):
paste the command you are using to start the container

vick (Thu, 19 Apr 2018 14:28:53 GMT):
then paste the definition you have for the volume mappings for this container ... carefully check the mapped volumes against the volume you specify in the command @VadimInshakov

vick (Thu, 19 Apr 2018 14:29:16 GMT):
@pankajcheema message me directly when you're ready

pankajcheema (Thu, 19 Apr 2018 14:29:22 GMT):
@vick CORE_PEER_TLS_ENABLED=true

vick (Thu, 19 Apr 2018 14:29:35 GMT):
checking now ... @pankajcheema

VadimInshakov (Thu, 19 Apr 2018 14:47:44 GMT):
@vick seems to work. Thanks a lot! But now I get the error `couchdb0 | [os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang` But why? What it means? I described CouchDB containers like so: `couchdb0: container_name: couchdb0 image: hyperledger/fabric-couchdb:x86_64-1.0.2 dns_search: . environment: - CORE_LOGGING_PEER=debug - COUCHDB_USER=admin - COUCHDB_PASSWORD=password ports: - 5984:5984 networks: - inno`

VadimInshakov (Thu, 19 Apr 2018 14:47:44 GMT):
@vick seems to work. Thanks a lot! But now I get the error `couchdb0 | [os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang` But why? What it means? I described CouchDB containers like so: ` couchdb0: container_name: couchdb0 image: hyperledger/fabric-couchdb:x86_64-1.0.2 dns_search: . environment: - CORE_LOGGING_PEER=debug - COUCHDB_USER=admin - COUCHDB_PASSWORD=password ports: - 5984:5984 networks: - inno `

vick (Thu, 19 Apr 2018 14:48:25 GMT):
@VadimInshakov when do you get this error? what command are you running? is there more details around the error?

VadimInshakov (Thu, 19 Apr 2018 14:52:25 GMT):
I generated cryptomaterials with cryptogen and configtxgen, it's all ok. Then I start `docker-compose -f docker-compose-cli.yaml up` It command uses these files: https://gist.github.com/VadimInshakov/999ab271cbb88d98f794c6c4e7cd4e9b https://gist.github.com/VadimInshakov/b3054163cb7a102750df0f2695c07018 I will be grateful for the review

vick (Thu, 19 Apr 2018 14:55:54 GMT):
@VadimInshakov is there more in the error ... or it's just that one line? just want to see what's happening before and after the error

omarqr (Thu, 19 Apr 2018 14:56:46 GMT):
Hello I have a fully functionnal business Network deployed on a Fabric network, when i submit data through the composer rest server, and I view the peer container logs I get the following messages "[common/deliver] deliverBlocks -> WARN 056 [channel: composerchannel] Error sending to 172.18.0.1:51918: rpc error: code = Unknown desc = the stream has been done [kvledger] CommitWithPvtData -> INFO 052 Channel [composerchannel]: Committed block [6] with 1 transaction(s)". Anyone knows why I am getting the warning message ?

VadimInshakov (Thu, 19 Apr 2018 15:11:34 GMT):
@vick here is full log: https://imgur.com/a/MTMMa https://imgur.com/a/i7yB8IF https://imgur.com/a/ShXeskM https://imgur.com/a/RlvWKgV https://imgur.com/a/N2FQ25X https://imgur.com/a/WCLFpm3

vick (Thu, 19 Apr 2018 15:14:39 GMT):
@VadimInshakov https://github.com/IBM-Blockchain/ibm-container-service/issues/23 seen this? it's been reported in the past, what versions are you running?

jmason900 (Thu, 19 Apr 2018 15:15:10 GMT):
Has joined the channel.

VadimInshakov (Thu, 19 Apr 2018 15:17:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S5qWWnMNDLPXgD9ri) @vick hm... looks like a bug. What do you think? Really the same problem. I use v1.1

VadimInshakov (Thu, 19 Apr 2018 15:24:15 GMT):
@vick but I use local Fabric, not cloud service. I will wait your opinion.

vick (Thu, 19 Apr 2018 15:24:38 GMT):
@vl

vick (Thu, 19 Apr 2018 15:25:02 GMT):
@VadimInshakov sorry but i don't think i can help any further from here other than just googling for the resolution

vick (Thu, 19 Apr 2018 15:25:14 GMT):
i would advise checking all your version numbers against the recommendations

VadimInshakov (Thu, 19 Apr 2018 15:27:19 GMT):
@vick maybe, I use version 1.0 to avoid this error?

VadimInshakov (Thu, 19 Apr 2018 15:31:32 GMT):
@vick in any case, thank you. You helped me a lot!

vick (Thu, 19 Apr 2018 15:32:17 GMT):
good luck

ManikantaRaju (Thu, 19 Apr 2018 16:12:15 GMT):
Has joined the channel.

sampath06 (Thu, 19 Apr 2018 16:43:17 GMT):
I have setup fabric on multiple machines. The orderer and org1 peers are on one machine and org2 peers are on another machine. The org2 peers can fetch and join the channel that is created and chaincode is installed. But when I try to run a query on the org2 peers, it complains that it cannot find the chaincode. I tried instantiating again on these peers but it did not help? Any help with how to get the chaincode working on the remote peers

youngdahlm (Thu, 19 Apr 2018 18:34:45 GMT):
Hi everyone, I recently had a conversation where someone asked about setting up a smart contract to delete or make inaccessible items on the blockchain after a certain amount of time. Is this a use case that anyone has worked with before and are there any existing implementations?

kesavants (Thu, 19 Apr 2018 20:46:19 GMT):
Has joined the channel.

Daiki0124 (Fri, 20 Apr 2018 01:04:44 GMT):
Hi guys! I want to combine first-network's container with balance-transfer's container Can you tell me how this is done specifically?

luomin (Fri, 20 Apr 2018 01:55:30 GMT):
hi, is there a planning to multi-threading the REST-API in Fabric SDK?

dongsheng (Fri, 20 Apr 2018 02:04:47 GMT):
Has joined the channel.

simonyau (Fri, 20 Apr 2018 02:05:04 GMT):
Has joined the channel.

dongsheng (Fri, 20 Apr 2018 02:06:49 GMT):
大家好,我有一个问题关于fabric-sdk-java1.1版本 Hello, everyone, I have a question about fabric-sdk-java1.1 version. 大家好,我有一个问题关于fabric-sdk-java1.1版本 Hello, everyone, I have a question about fabric-sdk-java1.1 version.

simonyau (Fri, 20 Apr 2018 02:06:53 GMT):
hi all, i have just created the fabric network, successfully created the channel, install the chaincode in peer1, but when I instantiate the chaincode, i got below error, any hint? [chaincode] Launch -> ERRO 489 launchAndWaitForRegister failed: timeout expired while starting chaincode mycc:v0(networkid:dev,peerid:peer1.org1.intranet,tx:0b75cce283155837280f2d42c21b7bd9ae5e74d080ed9ebe502c6c87e8fe6fae)

dongsheng (Fri, 20 Apr 2018 02:07:37 GMT):
When two organizations join a channel, the second organization, addPeer, throws an exception, Channel CBCA has been initialized, because the 1.1 version will check whether the channel has been initialized, what should I do to let the check pass through Hello, can anyone help me? I'm using the fabric-sdk-java 1.1 version

ck01 (Fri, 20 Apr 2018 02:48:08 GMT):
How to scale up hyperledger fabric?

ck01 (Fri, 20 Apr 2018 03:26:24 GMT):
As far as I know: adding more peers just slows down the system

ck01 (Fri, 20 Apr 2018 03:27:18 GMT):
is there anyways to scale up Hyperledger Fabric system and increase TPS performance?

blackgeneral (Fri, 20 Apr 2018 03:52:12 GMT):
Hi, I have some questions about ordering service. when i use the kafka cluster, what is minimum numbers of kafka cluster and zookeeper?

lclclc (Fri, 20 Apr 2018 04:43:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WzKgrm9PE24NzSQ2s) @blackgeneral As far as I know, one, which does not provide fault tolerance.

Daiki0124 (Fri, 20 Apr 2018 05:07:10 GMT):
I have a question related to balance-transfer sample Where has been installed chaincode?

Daiki0124 (Fri, 20 Apr 2018 05:07:10 GMT):
I have a question related to balance-transfer sample Where has been installed chaincode? this one ↓ fabric-samples/balance-transfer/artifacts/src/github.com/example_cc

pankajcheema (Fri, 20 Apr 2018 05:15:34 GMT):
Hi getting error `Error response from daemon: No such image: hyperledger/fabric-kafka:x86_64-0.4.6` when puling binary from `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0` i mnyths before it was working fine

pankajcheema (Fri, 20 Apr 2018 05:15:34 GMT):
Hi getting error `Error response from daemon: No such image: hyperledger/fabric-kafka:x86_64-0.4.6` when puling binary from `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0` i month before it was working fine

pankajcheema (Fri, 20 Apr 2018 05:15:34 GMT):
Hi getting error `Error response from daemon: No such image: hyperledger/fabric-kafka:x86_64-0.4.6` when puling binary from `curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0` one month before it was working fine

pankajcheema (Fri, 20 Apr 2018 05:17:12 GMT):
Some others are also there like Kafka,Fabric-ca and javaenv

pankajcheema (Fri, 20 Apr 2018 05:17:31 GMT):
Rest getting downloded fine.

SukanyaMahashabde (Fri, 20 Apr 2018 05:52:05 GMT):
Hello, I am trying to connect two machines having two organizations (i.e. org1 in PC1 and org2 on PC2). So can it be done, And if possible then is their anything to refer to it?

kshitiz_leo (Fri, 20 Apr 2018 06:41:09 GMT):
Hello everyone.. I need an urgent help. I made the network and everything. But when i am trying to run `docker exec -it cli bash` it is showing this error _Error response from daemon: Container b673e2dacc1d410d774d5e3947fe8d5a40c5d770c2b01f16a1b3059b32453f66 is not running_. i dont know what is the problem

kshitiz_leo (Fri, 20 Apr 2018 06:41:15 GMT):
Please help

umtyzc (Fri, 20 Apr 2018 06:41:55 GMT):
Hi

umtyzc (Fri, 20 Apr 2018 06:42:34 GMT):
I am trying to use fabric-sample-with-kafka example but i have Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet

VadimInshakov (Fri, 20 Apr 2018 06:59:30 GMT):
Clarify please. Do I understand correctly that we are not writing anything directly into the state databases? If so, then writes the last state to the database and how often?

VadimInshakov (Fri, 20 Apr 2018 07:01:25 GMT):
And which consensus algorithm is used by default? BFT? Where can I find out how this algorithm works? How is it related to gossip protocol? Thanks.

umtyzc (Fri, 20 Apr 2018 07:06:15 GMT):
You can't use BFT based ordering service now(in the development phase), we will use crash fault tolerance(CFT) for prod projects, i think. You can track this process using this link : https://jira.hyperledger.org/browse/FAB-33

titoe218 (Fri, 20 Apr 2018 07:08:18 GMT):
Good afternoon everyone, could anyone know how to enable core.ledger.history.enableHistoryDatabase to true? I used Fabric Go SDK v1.1.0

priyankagurnani (Fri, 20 Apr 2018 07:09:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fPTyTrBpyRKYgPAf2) @kshitiz_leo Did you check your container exists with command "docker ps -a"

kshitiz_leo (Fri, 20 Apr 2018 07:09:34 GMT):
Yeah i checked.

kshitiz_leo (Fri, 20 Apr 2018 07:10:13 GMT):
But the container with exact id is not there. One cli container is there but its id is different

kshitiz_leo (Fri, 20 Apr 2018 07:10:25 GMT):
@priyankagurnani

VadimInshakov (Fri, 20 Apr 2018 07:14:01 GMT):
@umtyzc thank you

umtyzc (Fri, 20 Apr 2018 07:15:12 GMT):
@VadimInshakov This document is good starting point for understand BFT https://arxiv.org/abs/1709.06921

markthedark (Fri, 20 Apr 2018 07:15:30 GMT):
Hello, as far as i could research there is no method currently available to prune ledger data on the peer/orderer, to reduce the size of the blockchain data.. Is something like that planned in the future or is there some way to reduce the size?

VadimInshakov (Fri, 20 Apr 2018 07:16:49 GMT):
@umtyzc great!

priyankagurnani (Fri, 20 Apr 2018 07:17:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zkkh6udY56sKDDyET) @kshitiz_leo Old containers are removed? If not run docker rm -f $(docker ps -aq) and start your fresh network.

kshitiz_leo (Fri, 20 Apr 2018 07:18:27 GMT):
@priyankagurnani Yeah i tried that. Not working

MonnyClara (Fri, 20 Apr 2018 07:18:32 GMT):
@kshitiz_leo If you do a `docker ps` is the CLI docker up and running ? If not, you should refer to this https://stackoverflow.com/questions/43955722/cli-container-not-running-hyperledger-1-0-not-able-to-start-no-tls-network

kshitiz_leo (Fri, 20 Apr 2018 07:19:48 GMT):
@MonnyClara Yeah i checked that link. But there s no such command in docker-compose-cli.yaml

nitrek (Fri, 20 Apr 2018 07:20:19 GMT):
can i loop on a varible and update multiple key value in c chaincode functin?

priyankagurnani (Fri, 20 Apr 2018 07:24:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KLcrDu24ZrfAGadG5) @kshitiz_leo Can you show me what are your scripts and config files

RohitYadav2 (Fri, 20 Apr 2018 07:27:59 GMT):
After Running *./byfn.sh -m up* this command All Peers,Orderer Node are done Stage but I'm getting this error !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

umtyzc (Fri, 20 Apr 2018 07:29:38 GMT):
@RohitYadav2 Do you use kafka base service or solo?

RohitYadav2 (Fri, 20 Apr 2018 07:31:09 GMT):
mate, I'm Novice for fabric just following https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

RohitYadav2 (Fri, 20 Apr 2018 07:32:20 GMT):
So I don't know what based service it is

umtyzc (Fri, 20 Apr 2018 07:32:28 GMT):
@RohitYadav2 I am trying to use fabric-sample-with-kafka example but i have Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet

RohitYadav2 (Fri, 20 Apr 2018 07:32:28 GMT):
may be solo

umtyzc (Fri, 20 Apr 2018 07:32:42 GMT):
but i think u use solo service

simonyau (Fri, 20 Apr 2018 07:32:53 GMT):
Hi all, anyone did encounter this before? [ccprovider] NewCCContext -> DEBU 52c NewCCCC (chain=mychannel,chaincode=mycc,version=v0,txid=d4dbc3b654bef28023aa387eddac064a33ec6a1c646934796d1e977b7110aa38,syscc=false,proposal=0xc4203e46e0,canname=mycc:v0 2018-04-20 07:27:56.753 UTC [chaincode] sendReady -> DEBU 52d handler not found for chaincode mycc:v0

ibmamnt (Fri, 20 Apr 2018 07:36:44 GMT):
@simonyau I guess, the chaincode is not installed with name "mycc" and version "v0".

umtyzc (Fri, 20 Apr 2018 07:40:50 GMT):
@RohitYadav2 You can use this course for create fresh installation and create basic example, i think this is a good starting point and completely free. https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/course/

RohitYadav2 (Fri, 20 Apr 2018 07:41:27 GMT):
@umtyzc thanks let me check it out

umtyzc (Fri, 20 Apr 2018 07:42:30 GMT):
you can use only chapter 4 and chapter 7 for fabric.

RohitYadav2 (Fri, 20 Apr 2018 07:42:40 GMT):
okay

RohitYadav2 (Fri, 20 Apr 2018 07:42:44 GMT):
Thanks mate

umtyzc (Fri, 20 Apr 2018 07:43:37 GMT):
see you :thumbsup:

titoe218 (Fri, 20 Apr 2018 07:53:20 GMT):
Is there anyways to get all tracsactions of a key in state db?

pankajcheema (Fri, 20 Apr 2018 07:54:02 GMT):
How `Hyperledger-fabric` is secure when admin can directly change the current state in `couchdb` using `cURL` or `Fauxton` and it will not be recorded on ledger?

ibmamnt (Fri, 20 Apr 2018 07:58:58 GMT):
@pankajcheema The other peer will not notice the change, hence consensus will fail. For example, valid peers result and malicious peer (like this one) result will be different. Thus endorsement will fail. Or transactions will be done just using valid peers, then malicious peer's data will be replaced to valid data as far as I can tell.

pankajcheema (Fri, 20 Apr 2018 08:00:03 GMT):
Peer is not involve till now I am just changing the current state from couchdb admin panel . @ibmamnt

VadimInshakov (Fri, 20 Apr 2018 08:09:48 GMT):
where can I find couchdb logs in peer container?

ibmamnt (Fri, 20 Apr 2018 08:14:10 GMT):
@pankajcheema. Yes, you can directly change the contents of couchdb if you know the userid and password. Note this is not problem of Hyperledger Fabric. All admin guys can change anything. But Hyperledger will work in those situation, kick off the malicious peer.

javaguirre (Fri, 20 Apr 2018 08:41:45 GMT):
Has joined the channel.

umtyzc (Fri, 20 Apr 2018 09:28:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RQkGQZmyvJsTH6pWb) I tried 4 times and i ddint change anything. Still work. Error is gone.

umtyzc (Fri, 20 Apr 2018 09:29:37 GMT):
SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet error is bug. I think.

chakra (Fri, 20 Apr 2018 09:58:58 GMT):
Hi Everyone, is there something similar to isOwner (from etherium) in Fabric? I want to control the get access to certain functions. I know that there is stub.getCreator() that returns a ProposalCreator object with a "mspid" and "id_bytes" attribute that gives the unique ID of the Membership Service Provider instance that is associated to the identity's organization and is able to perform digital signing and signature verification. ALso there is stub.getSignedProposal() that returns a fully decoded object (SignedProposal) of the signed transaction proposal. It is said that the signature attribute of the returned object SignedProposal can be used to verify against the ProposalCreator returned by getCreator(). However, i am not able to figure out how? Please help! Regards

lislunev (Fri, 20 Apr 2018 10:27:21 GMT):
Hello, is there any way how to set up fabric witout docker?

Diptendu 1 (Fri, 20 Apr 2018 10:38:57 GMT):
Has joined the channel.

Diptendu 1 (Fri, 20 Apr 2018 10:41:08 GMT):
When running enrollAdmin.js I am unable to make connection to CA server in the fabcar example

Diptendu 1 (Fri, 20 Apr 2018 10:41:15 GMT):
node enrollAdmin.js Store path:C:\Users\Diptendu\hyperledger\fabric-samples\fabcar\hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 0.0.0.0:7054] at ClientRequest. (C:\Users\Diptendu\hyperledger\fabric-samples\fabcar\node_modules\fabric-ca-client\lib\FabricCAClientImpl.js:883:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin Diptendu@LAPTOP-8194374O MINGW64 ~/hyperledger/fabric-samples/fabcar ((v1.1.0)) $ ls enrollAdmin.js invoke.js package.json query.js startFabric.sh* hfc-key-store/ node_modules/ package-lock.json registerUser.js Diptendu@LAPTOP-8194374O MINGW64 ~/hyperledger/fabric-samples/fabcar ((v1.1.0)) $ ls hfc-key-store/ 51db1d0de321d65c9e5e74745bd93721982dfcb9e602fefbccd2e7a74c77568f-priv 9b021e90e99c10cd8ed4a4a988ec272d23347daa3796439c8ec2eeb477e6588d-priv

Diptendu 1 (Fri, 20 Apr 2018 10:41:51 GMT):
the CA node is running

Diptendu 1 (Fri, 20 Apr 2018 10:43:11 GMT):
on a separate shell 2018/04/20 10:12:36 [DEBUG] Checking and performing migration, if needed 2018/04/20 10:12:36 [DEBUG] Updating database level to &{Identity:1 Affiliation:1 Certificate:1} 2018/04/20 10:12:37 [INFO] Initialized sqlite3 database at /etc/hyperledger/fabric-ca-server/fabric-ca-server.db 2018/04/20 10:12:37 [DEBUG] Initializing enrollment signer 2018/04/20 10:12:37 [DEBUG] No key found in BCCSP keystore, attempting fallback 2018/04/20 10:12:37 [DEBUG] validating configuration 2018/04/20 10:12:37 [DEBUG] validate local profile 2018/04/20 10:12:37 [DEBUG] profile is valid 2018/04/20 10:12:37 [DEBUG] validate local profile 2018/04/20 10:12:37 [DEBUG] profile is valid 2018/04/20 10:12:37 [DEBUG] validate local profile 2018/04/20 10:12:37 [DEBUG] profile is valid 2018/04/20 10:12:37 [DEBUG] CA initialization successful 2018/04/20 10:12:37 [INFO] Home directory for default CA: /etc/hyperledger/fabric-ca-server 2018/04/20 10:12:37 [DEBUG] 1 CA instance(s) running on server 2018/04/20 10:12:37 [INFO] Listening on http://0.0.0.0:7054

umtyzc (Fri, 20 Apr 2018 11:03:18 GMT):
Do you use `docker rm -f $(docker ps -aq)` and `docker network prune` command ? @Diptendu 1

Diptendu 1 (Fri, 20 Apr 2018 11:05:02 GMT):
yes before running ./startFabric.sh

Diptendu 1 (Fri, 20 Apr 2018 11:06:08 GMT):
$ docker ps -aq Diptendu@LAPTOP-8194374O MINGW64 ~/hyperledger/fabric-samples/fabcar ((v1.1.0)) $ docker network prune WARNING! This will remove all networks not used by at least one container. Are you sure you want to continue? [y/N] y Diptendu@LAPTOP-8194374O MINGW64 ~/hyperledger/fabric-samples/fabcar ((v1.1.0)) $ npm install npm WARN fabcar@1.0.0 No repository field. up to date in 8.809s Diptendu@LAPTOP-8194374O MINGW64 ~/hyperledger/fabric-samples/fabcar ((v1.1.0)) $ ./startFabric.sh

umtyzc (Fri, 20 Apr 2018 11:07:19 GMT):
uninstall npm completely and reinstall

Diptendu 1 (Fri, 20 Apr 2018 11:07:35 GMT):
I also tried changing the IP address

Diptendu 1 (Fri, 20 Apr 2018 11:08:56 GMT):
fabric_ca_client = new Fabric_CA_Client('http://localhost:7054', tlsOptions , 'ca.example.com', crypto_suite); fabric_ca_client = new Fabric_CA_Client('http://0.0.0.0:7054', tlsOptions , 'ca.example.com', crypto_suite);

Diptendu 1 (Fri, 20 Apr 2018 11:10:05 GMT):
https://stackoverflow.com/questions/48416805/calling-enrollment-endpoint-failed-with-error-error-connect-econnrefused

Diptendu 1 (Fri, 20 Apr 2018 11:10:27 GMT):
This link suggests regenerating the keys

Diptendu 1 (Fri, 20 Apr 2018 11:11:06 GMT):
But where is the docker-compose.yml file for the fabcar example

Diptendu 1 (Fri, 20 Apr 2018 11:12:23 GMT):
I can see the docker-compose.yaml file in the balance-transfer application under the artifacts direcory

umtyzc (Fri, 20 Apr 2018 11:15:09 GMT):
Can you see hfc-key-store file in /fabric-samples/fabcar?

Diptendu 1 (Fri, 20 Apr 2018 11:30:17 GMT):
$ ls hfc-key-store/ 51db1d0de321d65c9e5e74745bd93721982dfcb9e602fefbccd2e7a74c77568f-priv 9b021e90e99c10cd8ed4a4a988ec272d23347daa3796439c8ec2eeb477e6588d-priv

markthedark (Fri, 20 Apr 2018 11:44:32 GMT):
Also are there any plans to introcude a 'light node' or light peer, which wouldn't download the whole chain, but just a part to get synced or something like that?

gatakka (Fri, 20 Apr 2018 12:50:52 GMT):
@markthedark can you give real use case for this?

markthedark (Fri, 20 Apr 2018 12:57:48 GMT):
Well, our problem is still with the large overhead of transactions in blocks as we're developing an audit application, which will be saving quite a lot of JSON data on the chain.. So each transaction is around 3,7kB.. The JSON itself is maybe 0,5kB in size.. Now i'm not really sure, if the rest is just the overhead or the representation of the JSON on the chain.. So the issue is that the peer and orderer container use up a lot of space as the chain grows..

gatakka (Fri, 20 Apr 2018 13:09:20 GMT):
lets do a simple calculation, Lets assume that the JSON is 1Kb on average, and you have around 3Kb overhead, so 4kb total for transaction. in 1TB you can store 250000000 transactions. This is one terabyte, in current context 1TB is nothing, especially for server storage. And you do not need to start with 1TB, yo can add storage later. But to your question, this feature will be added in some of the next versions, to create a snapshot in time and prune blockchain before the snapshot. Exact implementation my be different, but at some point it will happen. Meanwhile this problem can be fixed by adding a little bit of cheep storage. The storage is not necessary to be SSD or fast.

CorentinPacaud (Fri, 20 Apr 2018 13:10:41 GMT):
Hello, I try to build my own network. In my docker-compose.yaml file I have this : ``` ca.org1.example.com: image: hyperledger/fabric-ca:$ARCH-1.1.0``` But when I try to launch it, I have this : ```Creating network "composer_default" with the default driver Pulling couchdb (hyperledger/fabric-couchdb:x86_64-1.1.0)... ERROR: manifest for hyperledger/fabric-couchdb:x86_64-1.1.0 not found ```

CorentinPacaud (Fri, 20 Apr 2018 13:10:45 GMT):
Any idea ?

gatakka (Fri, 20 Apr 2018 13:14:19 GMT):
@CorentinPacaud this is incorrect name of the container

gatakka (Fri, 20 Apr 2018 13:14:19 GMT):
@CorentinPacaud this is incorrect name of the image

gatakka (Fri, 20 Apr 2018 13:14:46 GMT):
hyperledger/fabric-couchdb:x86_64-1.1.0 must be hyperledger/fabric-couchdb:x86_64-0.4.6

CorentinPacaud (Fri, 20 Apr 2018 13:16:23 GMT):
@gatakka , So why in the fabric-tools folder, the docker-compose.yaml file conains exactly this : `image: hyperledger/fabric-ca:$ARCH-1.1.0`

CorentinPacaud (Fri, 20 Apr 2018 13:16:25 GMT):
?

RB0071 (Fri, 20 Apr 2018 13:16:27 GMT):
Has joined the channel.

gatakka (Fri, 20 Apr 2018 13:16:43 GMT):
is not fabric-ca it is fabric-couchdb

gatakka (Fri, 20 Apr 2018 13:17:14 GMT):
look what you have for couchdb

CorentinPacaud (Fri, 20 Apr 2018 13:17:15 GMT):
Ah sry ^^

CorentinPacaud (Fri, 20 Apr 2018 13:18:16 GMT):
Ah, couchdb has not been updated to mode than 0.4.6 !!! I see. sry, didn't see that

CorentinPacaud (Fri, 20 Apr 2018 13:18:16 GMT):
Ah, couchdb has not been updated to more than 0.4.6 !!! I see. sry, didn't see that

NAWAZUDDIN552 (Fri, 20 Apr 2018 13:39:57 GMT):
Hey friends, I have a problem for joining the second organization into the channel `Error:proposal failed(err: rpc error:code=UNKNOWN, desc=chaincode error (status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists),)`

DenisDoronin (Fri, 20 Apr 2018 13:46:53 GMT):
Has joined the channel.

chakra (Fri, 20 Apr 2018 13:48:28 GMT):
chakra

DenisDoronin (Fri, 20 Apr 2018 13:50:52 GMT):
Hi guys, I've faced some question which I can not find inside documentation, so I hope You will help me with answers: 1. What exact algorithms are used in terms of security? Or where is located the info about cryptogen and other tools? 2. Where can I find any information about performance? especially about maximum value for transactions per second Thanks in advantage.

gatakka (Fri, 20 Apr 2018 13:52:50 GMT):
@DenisDoronin For cryptography is elliptic curve, you cannot use RSA. In different confis you can change curve values, but default values are OK. Official benchmark is 210 000 transactions per minute, but this depends on the chaincode, architecture and network.

gatakka (Fri, 20 Apr 2018 13:52:50 GMT):
@DenisDoronin For cryptography is elliptic curve, you cannot use RSA. In different configs you can change curve settings, but default values are OK. Official benchmark is 210 000 transactions per minute, but this depends on the chaincode, architecture and network.

DenisDoronin (Fri, 20 Apr 2018 13:54:27 GMT):
@gatakka thanks for quick response. is benchmarks result public? Could You please give me a link to investigate this? thanks.

gatakka (Fri, 20 Apr 2018 13:58:41 GMT):
https://arxiv.org/pdf/1801.10228v1.pdf

gatakka (Fri, 20 Apr 2018 13:58:48 GMT):
here is the paper

DenisDoronin (Fri, 20 Apr 2018 14:00:16 GMT):
thanks!

CorentinPacaud (Fri, 20 Apr 2018 14:07:29 GMT):
docker-compose -f "${DIR}"/composer/docker-compose.yml up -d

amber0x0 (Fri, 20 Apr 2018 14:17:30 GMT):
Dear all, could you please help me to define what causes the following error. I am trying to join the chanel

amber0x0 (Fri, 20 Apr 2018 14:17:32 GMT):
root@6f2995c09e2c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join -b ./channel-artifacts/genesis.block 2018-04-20 14:15:09.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" for chainID = testchainid failed because of validation of configuration block, because of Invalid configuration block, missing Application configuration group))

sampath06 (Fri, 20 Apr 2018 14:25:10 GMT):
When I bring down the network and bring it back up, I run into MSP issues ``` Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to deserialize creator identity, err MSP Org1MSP is unknown ``` and also ``` peer0.org1.example.com | 2018-04-20 14:23:49.259 UTC [gossip/comm] GossipStream -> ERRO 1dc Authentication failed: Peer Identity .... cannot be validated. No MSP found able to do that. ``` This problem goes away if I remove the containers and bring up the network up again using the same configuration. Any ideas?

nagaraja_sr (Fri, 20 Apr 2018 15:11:53 GMT):
Has joined the channel.

nagaraja_sr (Fri, 20 Apr 2018 15:13:37 GMT):
hi everyone. i need to create a blockchain network with 3 organizations A, B and C, with 2 channels X and Y. Channel X having organizations A and B, and Channel Y having organizations A and C. How do I specify this setup in configtx.yaml?

nagaraja_sr (Fri, 20 Apr 2018 15:14:42 GMT):
also i need to configure such that only Org A can create both channels

nagaraja_sr (Fri, 20 Apr 2018 15:15:02 GMT):
i could not find anywhere documentation how to specify ChannelCreationPolicy in the configtx.yaml

nagaraja_sr (Fri, 20 Apr 2018 15:16:50 GMT):
(as per my understanding, the default ImplicitMetaPolicy will allow org C to create channel X which i dont want)

nagaraja_sr (Fri, 20 Apr 2018 15:19:00 GMT):
i am using 1.1

GuillaumeCisco (Fri, 20 Apr 2018 16:00:24 GMT):
Has joined the channel.

GuillaumeCisco (Fri, 20 Apr 2018 16:03:38 GMT):
Hello there, I have trouble with the 1.1 version and ca enrollment. I use a fabric-ca-server config file and a fabric-client-config file. When I try to enroll the admin user from my ca server with `fabric-ca-client -d -u https://admin:adminpw@localhost:7084`, I get `Post https://localhost:7054/enroll: x509: certificate is valid for example.com, not localhost`. I think this question has been posted many times, and I know I fixed this issue 6 months ago with version 1.0.3 but I can't remember how. I think this is a simple misconfiguration but I'm lost on it for 2 days, can someone help me?

TsvetanG (Fri, 20 Apr 2018 16:05:51 GMT):
Has joined the channel.

GuillaumeCisco (Fri, 20 Apr 2018 16:14:47 GMT):
I used `openssl x509 -in ./data/orgs/owkin/ca-cert.pem -text -noout` to see what is in my ca-cert.pem file and it does not contain variable from configuration file. This is weir because I init my ca-server with `fabric-ca-server init -c /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml -b admin:adminpw` and it finds the correct configuration file in the log : `[INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml` i.e it does not create it. But the ca-cert.yaml file created does not reflect config file overriding... Does the `-c` command still work with the 1.1 version ?

GuillaumeCisco (Fri, 20 Apr 2018 16:31:22 GMT):
Ok something very very weird, I'd just go into the docker instance, removed the ca-cert.pem and ca-chain.pem file, reran `fabric-ca-server init -c /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml -b admin:adminpw` and outputed the ca-cert.pem file and it contained the right configuration. I don't undernstand why it does not work the first time.

GuillaumeCisco (Fri, 20 Apr 2018 16:39:45 GMT):
ok it does not look like a problem with the binaries or the config file, but with the docker image or the docker configuration... Will still investigate, I'm able to create the correct crt but not from a docker command that call an sh script, This is extremly weird... Thank you for your time.

GuillaumeCisco (Fri, 20 Apr 2018 16:59:14 GMT):
Ok just fixed the problem` the new 1.1 version of the docker image of fabric-ca-server (or maybe it was always like that) has a ca-cert.pem and a ca-chain.pem already generated with `example.com` config, I had to first delete these files, then `fabric-ca-server init -c `to get the correct cert file

cuslenghi (Fri, 20 Apr 2018 19:43:07 GMT):
Does someone set up in a production env for fabric without docker ?

giggle (Sat, 21 Apr 2018 01:50:38 GMT):
Has joined the channel.

friends110110 (Sat, 21 Apr 2018 05:05:06 GMT):
https://stackoverflow.com/questions/48458517/peer-visit-channel-must-reboot-to-success-when-use-configtxlator-join-channel

VadimInshakov (Sat, 21 Apr 2018 06:11:09 GMT):
why in all examples only one Anchor Peer from each organization is defined? like so: ```

VadimInshakov (Sat, 21 Apr 2018 06:11:09 GMT):
why in all examples only one Anchor Peer from each organization is defined? like so: ``` AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 ``` Anchor Peer is a peer that is used in gossip communication, do I understand correctly? If so, I want all peer to participate in gossip communication. So how can I define multiple Anchor Peers? This is correct? ``` AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 - Host: peer0.org1.example.com Port: 7198 ```

VadimInshakov (Sat, 21 Apr 2018 06:11:09 GMT):
why in all examples only one Anchor Peer from each organization is defined? like so: ``` AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 ``` Anchor Peer is a peers that is used in gossip communication, do I understand correctly? If so, I want all peer to participate in gossip communication. So how can I define multiple Anchor Peers? This is correct? ``` AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 - Host: peer0.org1.example.com Port: 7198 ```

imadsid (Sat, 21 Apr 2018 08:08:25 GMT):
Has joined the channel.

imadsid (Sat, 21 Apr 2018 08:09:40 GMT):
will this project hit the exchanges , is it tradable ? will it be in the future ?

esumit (Sat, 21 Apr 2018 08:19:17 GMT):
Has joined the channel.

esumit (Sat, 21 Apr 2018 08:23:16 GMT):
There are two officially released SDKs for Node.js and Java, I am more comfortable in Java language so I prefer to use Hyperledger Fabric Java SDK. Are you the one who used Hyperledger Fabric Java SDK ? As I see less documentation available for JAVA SDK compare to Node.js SDK ?

esumit (Sat, 21 Apr 2018 08:23:48 GMT):
(I am just a beginner on HyperLedger Fabric )

anishman (Sat, 21 Apr 2018 08:46:15 GMT):
Has joined the channel.

anishman (Sat, 21 Apr 2018 08:46:28 GMT):
hi everyone, was wondering if there's any list of standard list of status codes/errors related to hyperledger fabric, something akin to this: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

anishman (Sat, 21 Apr 2018 08:46:28 GMT):
hi everyone, was wondering if there's any list of standard list of status codes/errors related to hyperledger fabric, something akin to this: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes @yacovm

anishman (Sat, 21 Apr 2018 08:46:28 GMT):
hi everyone, was wondering if there's any list of standard list of status codes/errors related to hyperledger fabric, something akin to this list for HTTP: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes @yacovm

anishman (Sat, 21 Apr 2018 08:46:28 GMT):
hi everyone, was wondering if there's any list of standard list of status codes/errors related to hyperledger fabric, something akin to this list for HTTP: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

nagaraja_sr (Sat, 21 Apr 2018 11:41:50 GMT):
repost (+updates): hi everyone. i need to create a blockchain network with 3 organizations A, B and C, with 2 channels X and Y. Channel X having organizations A and B, and Channel Y having organizations A and C. How do I specify this setup in configtx.yaml, so that the configtxgen can create the correct channel configuration transaction ? also i need to configure such that only Org A can create both channels i could not find anywhere documentation how to specify ChannelCreationPolicy in the configtx.yaml (as per my understanding, the default ImplicitMetaPolicy will allow org C to create channel X which i dont want) i am using 1.1 do we need to generate the default channel configuration transaction and then later update the config with the updated policy? is it not possible to define the channel configuration as per our requirement ?

chrcharles (Sat, 21 Apr 2018 15:35:53 GMT):
Hello, I'm looking for information about benchmarking, performance and cost. Do you have some inputs (documentations, links, informations, vendors billings, etc.) about how its cost to use Fabric (with for example ten organisations, with a set of significance business transactions by day)? Thank by advance.

IceFox (Sat, 21 Apr 2018 15:55:01 GMT):
Has joined the channel.

priyankagurnani (Sat, 21 Apr 2018 17:14:05 GMT):
If we want to change the host and domain name when creating a network, will it give any errors?

priyankagurnani (Sat, 21 Apr 2018 17:14:33 GMT):
As by default it takes example.comm

priyankagurnani (Sat, 21 Apr 2018 17:14:33 GMT):
As by default it takes example.com

danimedigo (Sat, 21 Apr 2018 20:45:20 GMT):
Has joined the channel.

anishman (Sun, 22 Apr 2018 05:12:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QATpHPZbuwWrojeKs) @nagaraja_sr i've created a configtx.yaml for that. Please check the following link

anishman (Sun, 22 Apr 2018 05:12:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QATpHPZbuwWrojeKs) @nagaraja_sr i've created a configtx.yaml for that. Please check the following link configtx.yaml https://pastebin.com/y318N1Rr

anishman (Sun, 22 Apr 2018 05:12:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QATpHPZbuwWrojeKs) @nagaraja_sr i've created a configtx.yaml for that. Please check the following link configtx.yaml https://pastebin.com/y318N1Rr steps to create artifacts https://pastebin.com/uRrBTJnj

anishman (Sun, 22 Apr 2018 05:12:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QX3st9gpdPAPBDScD)

anishman (Sun, 22 Apr 2018 05:13:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QX3st9gpdPAPBDScD)

lclclc (Sun, 22 Apr 2018 08:13:27 GMT):
I noticed in a lot of context, fabric is related to pkcs11 tag, especially in compilation phase. I googled and found pkcs11 is a standard about crypto. Anyone knows about it please tell me what impact i will have in Fabric.

nagaraja_sr (Sun, 22 Apr 2018 11:09:00 GMT):
@anishman thank you for your help. it seems like it would get the job done. i will give it a try. thanks !

nagaraja_sr (Sun, 22 Apr 2018 11:24:57 GMT):
@anishman in https://pastebin.com/uRrBTJnj line #35 should ./path/to/dir/OrgBanchors.tx be changed to ./path/to/dir/OrgCanchors.tx ?

nagaraja_sr (Sun, 22 Apr 2018 11:39:18 GMT):
@anishman also line 32 will overwrite the OrgAanchors.tx created in line 16. i will give a different file name and try to proceed

nagaraja_sr (Sun, 22 Apr 2018 11:47:54 GMT):
@anishman also i believe we have to run a ```peer channel update``` transaction to update the channel configuration (please correct me if i am wrong)

lvndry (Sun, 22 Apr 2018 20:03:16 GMT):
Has joined the channel.

lvndry (Sun, 22 Apr 2018 20:04:05 GMT):
Hi everyone I'd like to know how to create my own tokens with Hyperledger Fabric. Didn't find any doc about it on the net

lushan6999 (Sun, 22 Apr 2018 21:30:27 GMT):
Has joined the channel.

lushan6999 (Sun, 22 Apr 2018 21:30:35 GMT):
Hey everyone, I'm following this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I run `./byfn.sh -m down`, is that means I will delete the containers that not even related to hyper ledger? Basically this command will delete all containers I have already.

Daiki0124 (Mon, 23 Apr 2018 03:52:09 GMT):
I want to return payable when I execute invoke command Do u know how? ver:1.0 project: fabric-samples/balance-transfer

Daiki0124 (Mon, 23 Apr 2018 03:52:09 GMT):
I want to return "payable" when I execute invoke command Do u know how? ver:1.0 project: fabric-samples/balance-transfer

nukeu666 (Mon, 23 Apr 2018 04:52:19 GMT):
@lushan6999 yes, it uses 'docker ps -aq' to list containers

lushan6999 (Mon, 23 Apr 2018 04:53:07 GMT):
@nukeu666 yes, i've made a pull request to change that with docker filters. Thanks!

Daiki0124 (Mon, 23 Apr 2018 05:36:57 GMT):
What is this param "args=%5B%22a%22%5D" ? curl -s -X GET \ "http://localhost:4000/channels/mychannel/chaincodes/mycc?peer=peer1&fcn=query&args=%5B%22a%22%5D" \ -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTQ4NjU1OTEsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Im9yZzEiLCJpYXQiOjE0OTQ4NjE5OTF9.yWaJhFDuTvMQRaZIqg20Is5t-JJ_1BP58yrNLOKxtNI" \ -H "content-type: application/json" ver:1.0 project: fabric-samples/balance-transfer

jojialex2 (Mon, 23 Apr 2018 05:38:19 GMT):
Hi All, Is there any way to know any key value has be changed and created new version by any transaction ?

jojialex2 (Mon, 23 Apr 2018 05:38:19 GMT):
Hi All, Is there any way to know any key value has be changed and created new version by any transaction proposal ?

friends110110 (Mon, 23 Apr 2018 06:27:18 GMT):
Hi,does configtxlator needs orderer sign the envelop ?

nukeu666 (Mon, 23 Apr 2018 06:32:16 GMT):
@VadimInshakov anchor peers can talk cross org but they automatically talk among their orgs, so only one peer needs to be table to talk cross-org

kai_den (Mon, 23 Apr 2018 06:45:17 GMT):
Hi, ALL!! I would like to obtain the processing result of the chaincode using the node's SDK. However, node - sdk returns only the transaction ID. shim.Success returns bytecode. Is there a way to get this bytecode? 【My Development environment】 hyperledger v1.0 node-sdk  https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer Sorry for bad english....

VadimInshakov (Mon, 23 Apr 2018 06:54:12 GMT):
@nukeu666 ok, thanks

prmdmshra (Mon, 23 Apr 2018 07:19:25 GMT):
Hi Team, Do we have any commands to get the Block number and Data in the Block to showcase running Blockchain system on which Business network(Created using Hyperledger Composer) is deployed. I need to demonstrate it to client

nukeu666 (Mon, 23 Apr 2018 07:24:06 GMT):
@prmdmshra look at blockchain explorer, its one of the hyperledger projects

papegaaij (Mon, 23 Apr 2018 07:27:47 GMT):
Has left the channel.

NIKITHANIMBALKAR (Mon, 23 Apr 2018 07:30:51 GMT):
Has joined the channel.

NIKITHANIMBALKAR (Mon, 23 Apr 2018 07:31:27 GMT):
Hii Everyone I am trying to connect my fabric network to the hyperledger explorer. How can i do it ? I want to see the contents of the blocks and the ledger copies at each peer in the network.Can i use any other platform for the same ??

prmdmshra (Mon, 23 Apr 2018 07:35:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bXxvPxTfAPfjDXTG3) @nukeu666 Thanks for the suggestion. I have run the Blockchain explorer project few months back. It gives me the Block number and Transactions. My client is specifically looking for the Block informations such as hash of Previous Blocks, Transactions in the Block etc. I will try to take the latest build and run on it.... Thanks again

titoe218 (Mon, 23 Apr 2018 07:49:03 GMT):
Hi everyone, I used Fabric Go SDK to Put or Get from State DB, does anyone know how to get details of a transaction from transaction id? P.s: I call PutState with my own key, not using stub.GetTxID

CorentinPacaud (Mon, 23 Apr 2018 08:03:31 GMT):
Hello, My docker peer has a problem, it seems that it can't communicate with the couchDB. ``` 2018-04-23 07:53:35.963 UTC [couchdb] handleRequest -> WARN 004 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb1:5984/: dial tcp 172.27.0.4:5984: getsockopt: connection refused ``` Any idea of what I should change ?

RohitYadav2 (Mon, 23 Apr 2018 08:04:47 GMT):
Guys M running Hyper Ledger Composer for installing hpyperledger fabric in my system but when I'm Running * ~/fabric-tools$ ./downloadFabric.sh Development only script for Hyperledger Fabric control Running 'downloadFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/x86_64-1.1.0: Get https://auth.docker.io/token?scope=repository%3Ahyperledger%2Ffabric-peer%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:56122->127.0.1.1:53: i/o timeout*

RohitYadav2 (Mon, 23 Apr 2018 08:04:47 GMT):
Guys M running Hyper Ledger Composer for installing hpyperledger fabric in my system but when I'm Running *~/fabric-tools$ ./downloadFabric.sh Development only script for Hyperledger Fabric control Running 'downloadFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/x86_64-1.1.0: Get https://auth.docker.io/token?scope=repository%3Ahyperledger%2Ffabric-peer%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:56122->127.0.1.1:53: i/o timeout*

RohitYadav2 (Mon, 23 Apr 2018 08:05:18 GMT):
Can you gyus please help me to solve this issue

RohitYadav2 (Mon, 23 Apr 2018 08:05:35 GMT):
even thought internet connectivity is working fine

pankajcheema (Mon, 23 Apr 2018 08:53:19 GMT):
Is there any way to query history? `stub.GetHistoryForKey()` fetches all the transaction history for a particular key. Is there any way to fetch history based on some query or condition?

username343 (Mon, 23 Apr 2018 08:55:03 GMT):
Is it possible for a application chaincode to determine which identity committed a transaction on a particular key?

Daiki0124 (Mon, 23 Apr 2018 09:00:41 GMT):
Do u know user JSON WEB TOKEN deadline settable location? ver:1.0 project: fabric-samples/balance-transfer

nherbaut (Mon, 23 Apr 2018 09:08:43 GMT):
Has joined the channel.

nherbaut (Mon, 23 Apr 2018 09:09:01 GMT):
hi, do you have any pointers to the documentation on how to use the Java SDK without CAs (using cryptogen-generated certs) ?

nherbaut (Mon, 23 Apr 2018 09:12:14 GMT):
there's an opened issue for that for the node sdk https://jira.hyperledger.org/browse/FAB-5397

sachinN (Mon, 23 Apr 2018 10:08:23 GMT):
Has joined the channel.

sachinN (Mon, 23 Apr 2018 10:10:09 GMT):
Hi, i am not able to register Example chaincode on network, getting UNIMPLEMENTED: unknown service protos.ChaincodeSupport. Is there any way to check if this service is really up or not?

lclclc (Mon, 23 Apr 2018 10:11:00 GMT):
Where can I download all the version of binary like cryptogen/configtxgen? I am working on Mac and no available architecture/platform to compile/build these binaries. Is there any place the Fabric team store the built binaries for different architectures?

tsnyder (Mon, 23 Apr 2018 10:54:16 GMT):
Question of stub.GetHistoryForKey() - does this call go against the ledger files or is it provided by the state db (couchdb)?

Colasg (Mon, 23 Apr 2018 12:22:16 GMT):
Has joined the channel.

JeroenDePrest (Mon, 23 Apr 2018 13:31:45 GMT):
Can you execute a chaincode function after a certain amount of time from within the chaincode?

anishman (Mon, 23 Apr 2018 13:44:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mEYLhs7dLn3J9Db8Z) @nagaraja_sr yes, you're right. that was a typo.

anishman (Mon, 23 Apr 2018 13:46:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tj7Ac7MXcDv7Ja9E2) @nagaraja_sr yup. one good convention of writing the names of anchor peer files would be channelname_orgname_anchors.tx , that way you can be assured that there won't be any overwriting of files.

pankajcheema (Mon, 23 Apr 2018 13:51:08 GMT):
Hi Expert if i have a key in the ledger and updated it many times .Then i can get the all history for the key from Chaincode but if i have to see a particular change then hoe can i get . @yacovm @jyellick .

pankajcheema (Mon, 23 Apr 2018 13:51:08 GMT):
Hi Expert if i have a key in the ledger and updated it many times .Then i can get the all history for the key from Chaincode but if i have to see a particular change then how can i get . @yacovm @jyellick .

jyellick (Mon, 23 Apr 2018 13:52:38 GMT):
@pankajcheema I don't understand, if it is a particular transaction, you may query by ID, I'm not sure how else you would categorize a 'particular change'

pankajcheema (Mon, 23 Apr 2018 13:55:35 GMT):
@jyellick can i inspect the file in /var/hyperledger/production/channelname/ledgerfile0000 and see the transaction . ?

Butzemann (Mon, 23 Apr 2018 14:00:08 GMT):
Hey guys, I need some help. How can I specify the destination of my chaincode when creating a new network? From what I saw, the only interface between the chaincode and the network is the install command.I put the chaincode in the gopath.../chaincode directory and did << peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/mychaincode >> . He did this perfectly and showed me all the .go files he used for the install. After installing this to all organisitions I tried the instatiation of the chaincode and realised, that eventhough I specifed mychaincode in the install command, he still uses some chaincode_example_02. However I could not find this name in any of the configuration files. Can someone help me?

jyellick (Mon, 23 Apr 2018 14:02:39 GMT):
@pankajcheema No, but you may call the QSCC chaincode's `GetTransactionByID` function

pankajcheema (Mon, 23 Apr 2018 14:04:02 GMT):
but how can i fetch all the transaction so that i can provide one of them as input to `GetTransactionByID`

pankajcheema (Mon, 23 Apr 2018 14:04:02 GMT):
but how can i fetch all the transaction so that i can provide one of them as input to `GetTransactionByID` @jyellick

bourbonkidQ (Mon, 23 Apr 2018 14:51:34 GMT):
Hello could you explain me what the flag ` --peer-defaultchain=false` is it used for ?

VadimInshakov (Mon, 23 Apr 2018 14:58:54 GMT):
Can anyone review my simple two-org Fabric network configs? https://github.com/VadimInshakov/testchain Somehow I can not start it: https://www.dropbox.com/sh/7oyhvr5xzbjy7ex/AAD9BW5gxTrChUkrQOgzN--Za?dl=0

adilj13 (Mon, 23 Apr 2018 15:08:37 GMT):
Has joined the channel.

NoorFairoza (Mon, 23 Apr 2018 15:14:44 GMT):
How to see a list of orgs/peers in your current blockchain network?

jeffgarratt (Mon, 23 Apr 2018 15:39:08 GMT):
@NoorFairoza you can see members in the latest config block of the channel.. At the moment peers are NOT discernible. Future service discovery will provide some peer based information.

jeffgarratt (Mon, 23 Apr 2018 15:39:46 GMT):
many members will NOT want other orgs to know what if any peers are connected to the channel.

NoorFairoza (Mon, 23 Apr 2018 15:49:05 GMT):
@jeffgarratt Thank you. Form the cli container I rant the following commands to get latest channel config block peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA.

NoorFairoza (Mon, 23 Apr 2018 15:49:31 GMT):
@jeffgarratt I get this error 2018-04-23 15:45:44.261 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN}

jeffgarratt (Mon, 23 Apr 2018 15:49:49 GMT):
Make sure you have READ permission to channel

jeffgarratt (Mon, 23 Apr 2018 15:51:06 GMT):
make sure to set the proper MSP config path setting

NoorFairoza (Mon, 23 Apr 2018 15:51:26 GMT):
@jeffgarratt Thank you very much jeff. How to check and add read permission? Sorry I am a newbie.

jeffgarratt (Mon, 23 Apr 2018 15:51:44 GMT):
Default READ is any member of one of the member orgs of the channel

jeffgarratt (Mon, 23 Apr 2018 15:53:16 GMT):
Generally you will need to set CORE_PEER_LOCALMSPID and CORE_PEER_MSPCONFIGPATH

NoorFairoza (Mon, 23 Apr 2018 15:53:22 GMT):
I ran Byfn up and eyfn up. I think msp is properly set already (as I did not change anything form the tutorial)

jeffgarratt (Mon, 23 Apr 2018 15:53:45 GMT):
I think all of the credentials (MSPs) are available in the CLI container

jeffgarratt (Mon, 23 Apr 2018 15:53:59 GMT):
choose one using the 2 ENV vars above

jeffgarratt (Mon, 23 Apr 2018 15:54:07 GMT):
make sure it is a member of one of the orgs in the channel

NoorFairoza (Mon, 23 Apr 2018 15:55:01 GMT):
ok. I will change the path and try fetch again. Thank you

NoorFairoza (Mon, 23 Apr 2018 15:58:35 GMT):
I changed cli to org2msp ``` export CORE_PEER_LOCALMSPID="Org2MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp export CORE_PEER_ADDRESS=peer0.org2.example.com:7051``` ``` ```

NoorFairoza (Mon, 23 Apr 2018 15:59:15 GMT):
I still get this error:``` 2018-04-23 15:57:43.089 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN} ```

NoorFairoza (Mon, 23 Apr 2018 15:59:15 GMT):
@jeffgarratt I still get this error:``` 2018-04-23 15:57:43.089 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN} ```

NoorFairoza (Mon, 23 Apr 2018 16:00:05 GMT):
Org2 is a member of the channel

NoorFairoza (Mon, 23 Apr 2018 16:03:43 GMT):
@jeffgarratt The issues is resolved. I was using sudo in front of peer channel fetch, i removed sudo and it seems to have worked, it did not give me any logs, but has created the channel config protobuf file (checked with ls) . Thanks for your help.

vick (Mon, 23 Apr 2018 16:39:22 GMT):
hi all,

vick (Mon, 23 Apr 2018 16:40:33 GMT):
so i have successfully managed to bring up a fabric network on different hosts, however now my concern is; how does one add a new peer in another organisation on a third machine to an existing network?, Do you have to bring the entire network down and regenerate all of the crypto artefacts? this doesn’t seem practical for real world application i would welcome any comments from anyone on this subject

vick (Mon, 23 Apr 2018 16:40:46 GMT):
very keen to explore this area and happy to help anyone struggling with something similar

vick (Mon, 23 Apr 2018 16:40:47 GMT):
thanks

pankajcheema (Mon, 23 Apr 2018 18:25:58 GMT):
@vick you deploy with tls enabled ?

bswens18 (Mon, 23 Apr 2018 19:42:30 GMT):
Has joined the channel.

youssefg (Mon, 23 Apr 2018 19:54:11 GMT):
Has joined the channel.

JackMalinowski (Mon, 23 Apr 2018 21:03:25 GMT):
Has joined the channel.

JackMalinowski (Mon, 23 Apr 2018 21:03:30 GMT):
Hi. What is the easiest way to deploy a HLF network to Azure?

Ryan2 (Mon, 23 Apr 2018 23:48:57 GMT):
I use fabric 1.0.2 for bootstrapping network, after that update to add new Org, then I add new peer (belong to new Org) but I used fabric 1.1.0 for the new peer. when new peer ( on the new Org ) start, I got error on the peer is `[gossip/comm] GossipStream -> ERRO 028 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 07 4f 72 672d 2.... 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.` and when the peer join the channel I got the error `[gossip/comm] authenticateRemotePeer -> ERRO 062 Failed verifying signature from 174.32.1.161:7051 : Failed to reach implicit threshold of 1 sub-policies, required 1 remaining [gossip/comm] Handshake -> WARN 063 Authentication failed: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining UTC [gossip/gossip] func1 -> WARN 064 Deep probe of peer0:7051 failed: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:249 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:152 runtime.goexit` But when using the same fabric 1.0.2 for new peer ( on the new Org), I don't got these error any more. I don't know whether these error causing by fabric 1.1.0 or not, please help me to clear

yacovm (Tue, 24 Apr 2018 00:03:53 GMT):
@Ryan2 the first error about the identity and `GossipStream` seems to me like a misconfiguration where some peers know about each other but they are not in the channel. A common example for that would be an anchor peer that hasn't joined the channel

yacovm (Tue, 24 Apr 2018 00:04:26 GMT):
oh, from the stack trace it looks like it is really an anchor peer :)

Ryan2 (Tue, 24 Apr 2018 00:07:01 GMT):
hi @yacovm , can you specify more regarding [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xuy7cm7hJwMoc9QS7)

Ryan2 (Tue, 24 Apr 2018 00:07:01 GMT):
hi @yacovm , can you specify more regarding `oh, from the stack trace it looks like it is really an anchor peer `

yacovm (Tue, 24 Apr 2018 00:10:29 GMT):
`github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1`

yacovm (Tue, 24 Apr 2018 00:11:01 GMT):
so, the peer received a channel config update

yacovm (Tue, 24 Apr 2018 00:11:05 GMT):
that contained an anchor peer

yacovm (Tue, 24 Apr 2018 00:11:16 GMT):
this triggered it to go and talk with that anchor peer

yacovm (Tue, 24 Apr 2018 00:11:42 GMT):
but the anchor peer might not be in the channel

Ryan2 (Tue, 24 Apr 2018 00:20:58 GMT):
oh, I see, actually I follow the guideline here add new Org `http://hyperledger-fabric-docs.readthedocs.io/en/latest/channel_update_tutorial.html` But in this guideline, when I did, it didnot involve in adding or update anchor peer for the new Org, therefore this might cause above issue, To update anchor peer for new Org , I did like generate the Org0MSPanchors.tx from CLI `configtxgen -profile OneOrgsChannel -outputAnchorPeersUpdate Org0MSPanchors.tx -channelID mychannel-asOrg Org1MSP` and update channel but Failed. then I tried manually add anchor session into config and update channel. *Can I ask for any standard way to update anchor peer for new Org*

Ryan2 (Tue, 24 Apr 2018 00:20:58 GMT):
oh, I see, actually I follow the guideline here add new Org `http://hyperledger-fabric-docs.readthedocs.io/en/latest/channel_update_tutorial.html` But in this guideline, when I did, it didnot involve in adding or update anchor peer for the new Org, therefore this might cause above issue, To update anchor peer for new Org , I did like generate the Org0MSPanchors.tx from CLI `configtxgen -profile OneOrgsChannel -outputAnchorPeersUpdate Org0MSPanchors.tx -channelID mychannel-asOrg Org1MSP` and update channel but Failed. then I tried manually add anchor session into config and update channel. `"AnchorPeers": { "mod_policy": "Admins", "value": { "anchor_peers": [ { "host": "peer0.org3.example.com", "port": 7051 } ] }, "version": "0" },` *Can I ask for any standard way to update anchor peer for new Org*

Ryan2 (Tue, 24 Apr 2018 00:20:58 GMT):
oh, I see, actually I follow the guideline here add new Org `http://hyperledger-fabric-docs.readthedocs.io/en/latest/channel_update_tutorial.html` But in this guideline, when I did, it didnot involve in adding or update anchor peer for the new Org, therefore this might cause above issue, To update anchor peer for new Org , I did like generate the Org0MSPanchors.tx from CLI `configtxgen -profile OneOrgsChannel -outputAnchorPeersUpdate Org0MSPanchors.tx -channelID mychannel-asOrg Org1MSP` and update channel but Failed. then I tried manually add anchor session into config for Org3 session and update channel. `"AnchorPeers": { "mod_policy": "Admins", "value": { "anchor_peers": [ { "host": "peer0.org3.example.com", "port": 7051 } ] }, "version": "0" },` *Can I ask for any standard way to update anchor peer for new Org*

yacovm (Tue, 24 Apr 2018 00:25:35 GMT):
did the anchor peer itself join the channel?

yacovm (Tue, 24 Apr 2018 00:25:39 GMT):
that's the issue

yacovm (Tue, 24 Apr 2018 00:25:45 GMT):
not the update via the configtxgen

yacovm (Tue, 24 Apr 2018 00:25:54 GMT):
you need to add the anchor peer itself to the channel

yacovm (Tue, 24 Apr 2018 00:26:00 GMT):
the anchor peer is a peer

yacovm (Tue, 24 Apr 2018 00:26:26 GMT):
it needs to be in the channel before you update the channel about his endpoint

Ryan2 (Tue, 24 Apr 2018 00:31:09 GMT):
`did the anchor peer itself join the channel?` --> yes, this is the configtx.yaml template for org3 which I added `https://github.com/alejandrolr/hyperledger-fabric-add-orgs/blob/master/org3-artifacts/configtx.yaml` This define peer0.org3.example.com as anchor peer, After successfully added org3, I joined the `peer0.org3.example.com` into channel `you need to add the anchor peer itself to the channel` --> I not clear how to do this

Ryan2 (Tue, 24 Apr 2018 00:31:09 GMT):
`did the anchor peer itself join the channel?` --> yes, this is the configtx.yaml template for org3 which I added `https://github.com/alejandrolr/hyperledger-fabric-add-orgs/blob/master/org3-artifacts/configtx.yaml` This define peer0.org3.example.com as anchor peer, After successfully added org3, I joined the `peer0.org3.example.com` into channel, after joinning this thrown above error `you need to add the anchor peer itself to the channel` --> I not clear how to do this

Nikolas 11 (Tue, 24 Apr 2018 01:28:38 GMT):
Has joined the channel.

aatkddny (Tue, 24 Apr 2018 01:33:30 GMT):
is there a jq example to add an anchor peer to a channel config anywhere? i want to pull it into the java-sdk and it's much easier if i know where exactly to poke it into the json.

Daiki0124 (Tue, 24 Apr 2018 03:18:28 GMT):
Do u know jwt_expiretime limit ?

Daiki0124 (Tue, 24 Apr 2018 03:18:40 GMT):
I want to use 1years

jhodges (Tue, 24 Apr 2018 03:24:40 GMT):
Has joined the channel.

YuHengbing (Tue, 24 Apr 2018 04:00:42 GMT):
@Daiki0124 You can modify it in config.json file.

Daiki0124 (Tue, 24 Apr 2018 04:05:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tic6MyL76oyt4hf3N) @YuHengbing limit is nothing ?

hosemose (Tue, 24 Apr 2018 04:57:38 GMT):
Has joined the channel.

kavyamk (Tue, 24 Apr 2018 06:00:05 GMT):
where is the certificate generated after enrolling a user used in blance transfer example

YuHengbing (Tue, 24 Apr 2018 07:11:45 GMT):
Hey guys, have you run the fabcar example? How much time will it spend when updating the Ledger?

nukeu666 (Tue, 24 Apr 2018 07:15:28 GMT):
not more than a minute

DuPeng (Tue, 24 Apr 2018 07:15:57 GMT):
Has joined the channel.

blackgeneral (Tue, 24 Apr 2018 07:21:49 GMT):
hi, i wonder about sample code 'fabric-ca'. I want to query or invoke at 'run' docker manually. but i can't this. how can i this?? is need more global variables?

rahulch (Tue, 24 Apr 2018 07:32:02 GMT):
Has joined the channel.

rahulch (Tue, 24 Apr 2018 07:32:24 GMT):
Do we have any channel where we can address issues related to the fabric-sdk-rest package?

nukeu666 (Tue, 24 Apr 2018 07:33:34 GMT):
@rahulch click on the globe above and filter for sdk

alpha 32 (Tue, 24 Apr 2018 07:33:34 GMT):
Has joined the channel.

alpha 32 (Tue, 24 Apr 2018 07:33:57 GMT):
how can I install cryptogen and all the prerequisites the link in the docs is down. https://hyperledger-fabric-docs.readthedocs.io/en/v1.0.0-beta/getting_started.html

rahulch (Tue, 24 Apr 2018 07:34:42 GMT):
@nukeu666 okay, thanks

IceFox (Tue, 24 Apr 2018 07:34:42 GMT):
Hi

rahulch (Tue, 24 Apr 2018 07:34:51 GMT):
@alpha 32 http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#download-platform-specific-binaries

alpha 32 (Tue, 24 Apr 2018 07:35:54 GMT):
got it! Thank yo

alpha 32 (Tue, 24 Apr 2018 07:38:10 GMT):
i was trying to follow the tutorial about setting up a network

focaaby (Tue, 24 Apr 2018 07:38:35 GMT):
hello, I have enrolled an admin in my hyperledger network, but I `channel.queryByChaincode` return ` Error: No identity has been assigned to this client` How can i assigned admin identity to my client

rahulch (Tue, 24 Apr 2018 07:40:46 GMT):
anyone around who has successfully installed this package - github.com/hyperledger/fabric-sdk-rest ?

JeffGutierrez (Tue, 24 Apr 2018 08:06:15 GMT):
Has joined the channel.

Chalex (Tue, 24 Apr 2018 08:13:23 GMT):
Could anyone tell me how to decode all the raw block data into human-readable format? I already tried that with `configtxlator` according to http://hyperledger-fabric.readthedocs.io/en/latest/commands/configtxlator.html. But it failed to fetch information in the `transaction` level. Any ideas on how to decode `block/transaction` with `golang`? Thank you.

geourjoa (Tue, 24 Apr 2018 08:22:50 GMT):
Has joined the channel.

dongsheng (Tue, 24 Apr 2018 08:24:36 GMT):
@ NAWAZUDDIN552

dongsheng (Tue, 24 Apr 2018 08:25:37 GMT):
@ NAWAZUDDIN552 Hello, is your problem solved?

geourjoa (Tue, 24 Apr 2018 08:26:54 GMT):
Hi ! I don't see the possibilities and the limits of the fabric channel. For example, if I have 3 org. Org1 and Org2 on a channel and Org2 and Org3 on other channel. An event or anything on Org2 can affect the two channel and add transaction on both channels ? Thanks for your help and sorry for my poor english, I'm not native.

MonnyClara (Tue, 24 Apr 2018 08:36:59 GMT):
@geourjoa Bonjour, yeah I do think so ! The Org2 will be able to interact with the 2 channels, but Org1 ang Org3 will not.

MonnyClara (Tue, 24 Apr 2018 08:38:43 GMT):
It mean that Org1 and Org3 will not be able to communicate directly but also that the information added on their respective channel will not be shared

geourjoa (Tue, 24 Apr 2018 08:40:08 GMT):
@MonnyClara Okay thanks, it's exactly what I need ! Do you know, where I can find documentation or samples on this feature ?

johanherman (Tue, 24 Apr 2018 08:40:53 GMT):
Has joined the channel.

halocatw (Tue, 24 Apr 2018 09:40:12 GMT):
Has joined the channel.

halocatw (Tue, 24 Apr 2018 09:40:57 GMT):
hello , is there anybody having this problem ?

halocatw (Tue, 24 Apr 2018 09:40:59 GMT):
https://stackoverflow.com/questions/46640618/hyperledger-fabric-identity-0-does-not-satisfy-principal-the-identity-is-a-me?rq=1

BhaskarRaju (Tue, 24 Apr 2018 10:50:11 GMT):
Has joined the channel.

vick (Tue, 24 Apr 2018 10:50:32 GMT):
@pankajcheema no, not with TLS

precociousmouse (Tue, 24 Apr 2018 10:52:40 GMT):
Has joined the channel.

BhaskarRaju (Tue, 24 Apr 2018 10:53:14 GMT):
can someone help me resolving "Error: channel create configuration tx file not found open C:/Program Files/Git/etc/hyperledger/configtx/composer-channel.tx: no such file or directory" error

umtyzc (Tue, 24 Apr 2018 10:58:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GaiBRYXXdDbShFh2L) @geourjoa http://hyperledger-fabric.readthedocs.io/en/release-1.1/peers/peers.html

umtyzc (Tue, 24 Apr 2018 11:00:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rjbnmyFiwnBPaxyfZ) This document is good starting point for understand (Peer-Organization, Peer-Orderers, Peer-Channels) relationships. :woo:

Gvedam (Tue, 24 Apr 2018 11:04:45 GMT):
Has joined the channel.

umtyzc (Tue, 24 Apr 2018 11:04:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tTFaqGad8gjP5m2B8) @BhaskarRaju Try this: https://github.com/hyperledger/composer/issues/3735

BhaskarRaju (Tue, 24 Apr 2018 11:08:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mb7PmQ99Rwmi9vcA9) @umtyzc Thank you very much, this fixed my issue :)

serkanerkan (Tue, 24 Apr 2018 11:19:08 GMT):
Has joined the channel.

Codegidi (Tue, 24 Apr 2018 11:42:45 GMT):
Has joined the channel.

bourbonkidQ (Tue, 24 Apr 2018 12:07:38 GMT):
Hello ! I have this error when I try start to start my peer (peer node start) `2018-04-24 09:22:25.400 UTC [couchdb] VerifyCouchConfig -> DEBU 025 Exiting VerifyCouchConfig() panic: Error in instantiating ledger provider: Unable to connect to CouchDB, check the hostname and port: Get http://127.0.0.1:5984/: dial tcp 127.0.0.1:5984: getsockopt: connection refused `

bourbonkidQ (Tue, 24 Apr 2018 12:07:38 GMT):
Hello ! I have this error when I try start to start my peer (peer node start) `2018-04-24 09:22:25.400 UTC [couchdb] VerifyCouchConfig -> DEBU 025 Exiting VerifyCouchConfig() panic: Error in instantiating ledger provider: Unable to connect to CouchDB, check the hostname and port: Get http://127.0.0.1:5984/: dial tcp 127.0.0.1:5984: getsockopt: connection refused`

bourbonkidQ (Tue, 24 Apr 2018 12:08:48 GMT):
Peer and couchdb are on the same VM and I use docker-compose

bourbonkidQ (Tue, 24 Apr 2018 12:08:48 GMT):
Peer and couchdb are on the same VM and I use docker-compose. Could someone help me ?

Der_Holzloeffel (Tue, 24 Apr 2018 12:49:38 GMT):
Has joined the channel.

asharora78 (Tue, 24 Apr 2018 13:00:11 GMT):
Has joined the channel.

asharora78 (Tue, 24 Apr 2018 13:00:28 GMT):
If in a multi org setup having one peer each in every org, one of the peer goes down then how can this peer re construct the entire ledger and join back the channel/network and start working normally as it was before going down?

lclclc (Tue, 24 Apr 2018 13:07:39 GMT):
To add a new organization into the channel needs majority signature of all existing organizations by default, is it possible to change this?

vick (Tue, 24 Apr 2018 13:48:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hNpRhnDrJPuYDxNti) @asharora78 the peer must join the channel again, when it joins, the orderer will send it the genesis block along with the history of transactions to bring it up to speed

vick (Tue, 24 Apr 2018 13:49:44 GMT):
can anyone with a bit more knowledge please reaffirm this ^, thank you

gravity (Tue, 24 Apr 2018 13:52:40 GMT):
Has joined the channel.

jeffgarratt (Tue, 24 Apr 2018 13:55:27 GMT):
@vick if by go down you mean the node will not be strarted with existing data, but rather a new node is created then this is correct. Otherwise if you simply restart the node, it will catch up.

CorentinPacaud (Tue, 24 Apr 2018 13:57:16 GMT):
Hi, I am always facing this problem : ```10528 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.```

umtyzc (Tue, 24 Apr 2018 13:57:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hNpRhnDrJPuYDxNti) @asharora78 Safety (consistency guarantees): As long as peers are connected for sufficiently long periods of time to the channel (they can disconnect or crash, but will restart and reconnect), they will see an identical series of delivered (seqno, prevhash, blob) messages. This means the outputs (deliver() events) occur in the same order on all peers and according to sequence number and carry identical content (blob and prevhash) for the same sequence number. Note this is only a logical order, and a deliver(seqno, prevhash, blob) on one peer is not required to occur in any real-time relation to deliver(seqno, prevhash, blob) that outputs the same message at another peer. Put differently, given a particular seqno, no two correct peers deliver different prevhash or blob values. Moreover, no value blob is delivered unless some consensus client (peer) actually called broadcast(blob) and, preferably, every broadcasted blob is only delivered once. Resource: http://hyperledger-fabric.readthedocs.io/en/release-1.1/arch-deep-dive.html

CorentinPacaud (Tue, 24 Apr 2018 13:57:27 GMT):
Any idea ?

umtyzc (Tue, 24 Apr 2018 14:05:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zBYuJCB6iM3gCnZ8q) @CorentinPacaud Did you try this solution? https://github.com/grpc/grpc/issues/9761

CorentinPacaud (Tue, 24 Apr 2018 14:06:55 GMT):
@umtyzc It's when I do a composer network install. I don't think this help :(

gravity (Tue, 24 Apr 2018 14:10:34 GMT):
Hi there Are there any best practices on how to run a network? For example, If I generate all the crypto materials (2 orgs and 3 peers inside each org), configure a genesis block and start a network - how these peers should be distributed over the network? should I run each peer on a separate machine? Any information will be helpful. Thanks in advance.

umtyzc (Tue, 24 Apr 2018 14:17:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f4RcteKRpaMfmLXKR) @gravity hi, this document is really helpful. http://hyperledger-fabric.readthedocs.io/en/release-1.1/peers/peers.html

umtyzc (Tue, 24 Apr 2018 14:19:24 GMT):
You can also look at this example: hyperledger fabric on multiple hosts https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

gravity (Tue, 24 Apr 2018 14:23:08 GMT):
@umtyzc thanks a lot! and one more question: are there any best practices on how to store all generated certificates (for peers, users, admins)? I remember that structure of `crypto-config` folder is important, but it look like not very secure to keep all certificates in one place.

vick (Tue, 24 Apr 2018 14:31:44 GMT):
@asharora78 read this link, it may be applicable to your question, especially the conclusion @jeffgarratt thanks https://medium.com/kokster/understanding-hyperledger-fabric-gossip-512a217d5d1e

vick (Tue, 24 Apr 2018 14:33:34 GMT):
@gravity i used this link to bring up a multi host fabric network, it uses hyperledger composer, whereas the previous link shared to you uses docker swarm https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

umtyzc (Tue, 24 Apr 2018 14:36:13 GMT):
http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html Maybe i didn't understand your question, Look at this http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-a-ca-certificate-chain-from-another-fabric-ca-server

umtyzc (Tue, 24 Apr 2018 14:36:13 GMT):
http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html Maybe i didn't understand your question, Look at this http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-a-ca-certificate-chain-from-another-fabric-ca-server @gravity

gravity (Tue, 24 Apr 2018 14:43:05 GMT):

Clipboard - April 24, 2018 5:42 PM

gravity (Tue, 24 Apr 2018 14:43:05 GMT):

Clipboard - April 24, 2018 5:42 PM

vick (Tue, 24 Apr 2018 14:45:29 GMT):
@gravity yes from my understanding they are physically stored on the same machine as the peer is running on ... but not sure if this can be adjusted to pick up from a cloud hosted location ... i.e. somewhere centralized

vick (Tue, 24 Apr 2018 14:46:07 GMT):
in the yaml config you can map volumes for each peer to pick up these files ... maybe when you are mapping those volumes can you specify some external location ... or a mapped network drive?

gravity (Tue, 24 Apr 2018 14:53:27 GMT):
@vick @umtyzc thanks a lot for your answers. will work with the information provided here

kkbankol (Tue, 24 Apr 2018 16:03:14 GMT):
Hi, I have a quick question regarding the fabric-shim sdk. I would like to use this package to query chaincode that I've deployed on a commercial service (IBM) It looks like I need to create a ChaincodeStub object to do so, but I'm not sure how to set the service endpoint, auth key/cert, etc. Has anyone encountered this issue yet? Here are the docs for the sdk I'm using https://fabric-shim.github.io/ChaincodeStub.html

CynthiaWood (Tue, 24 Apr 2018 17:40:12 GMT):
Has joined the channel.

huy.tranibm (Tue, 24 Apr 2018 18:25:46 GMT):
@gravity the cryptogen tool is only there to help local development and not made to be used when your peers are across different network. You need to use the fabric-ca-server to generate crypto materials instead.

esauop (Tue, 24 Apr 2018 18:30:42 GMT):
Has joined the channel.

anillewis (Tue, 24 Apr 2018 18:45:48 GMT):
Has joined the channel.

ThomasBereczky (Tue, 24 Apr 2018 19:41:19 GMT):
Hey Guys

ThomasBereczky (Tue, 24 Apr 2018 19:42:30 GMT):
I'd like to ask your help, I just deployed my first business network app and everything went alright, I can see the docker machine fired up, but I get this error msg --> thomas@thomas-virtual-machine:~/Desktop/Fabric/firstbna/dist$ composer network ping -c thomas@firstbna Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Enrollment failed with errors [[{"code":20,"message":"Authorization failure"}]] Command failed I have imported the generated card properly --> http://prntscr.com/j9msus

ThomasBereczky (Tue, 24 Apr 2018 19:43:32 GMT):
what am I doing wrong?

ThomasBereczky (Tue, 24 Apr 2018 19:43:46 GMT):
(Using Hyperledger Composer)

vick (Tue, 24 Apr 2018 20:17:12 GMT):
@ThomasBereczky try posting your question in the #composer chat room

ThomasBereczky (Tue, 24 Apr 2018 20:17:41 GMT):
oh okay thank you @vick, I have not seen that room before only general and fabric-questions

halocatw (Wed, 25 Apr 2018 02:28:32 GMT):
hello, is there anybody know how to sign the channel update config block with orderer ?

halocatw (Wed, 25 Apr 2018 02:29:48 GMT):
i always got signature issue while proceeding this tutorial , https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html

halocatw (Wed, 25 Apr 2018 02:30:38 GMT):
2018-04-25 02:24:50.137 UTC [cauthdsl] func2 -> DEBU a82 0xc4201ae970 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org2MSP) 2018-04-25 02:24:50.138 UTC [cauthdsl] func2 -> DEBU a83 0xc4201ae970 processing identity 1 with bytes of * 2018-04-25 02:24:50.138 UTC [cauthdsl] func2 -> DEBU a84 0xc4201ae970 identity 1 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-04-25 02:24:50.138 UTC [cauthdsl] func2 -> DEBU a85 0xc4201ae970 principal evaluation fails 2018-04-25 02:24:50.138 UTC [cauthdsl] func1 -> DEBU a86 0xc4201ae970 gate 1524623090137898334 evaluation fails 2018-04-25 02:24:50.138 UTC [policies] Evaluate -> DEBU a87 Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Admins 2018-04-25 02:24:50.138 UTC [policies] Evaluate -> DEBU a88 == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Admins 2018-04-25 02:24:50.138 UTC [policies] func1 -> DEBU a89 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Admins ] 2018-04-25 02:24:50.138 UTC [policies] Evaluate -> DEBU a8a Signature set did not satisfy policy /Channel/Orderer/Admins 2018-04-25 02:24:50.138 UTC [policies] Evaluate -> DEBU a8b == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Admins 2018-04-25 02:24:50.138 UTC [orderer/common/broadcast] Handle -> WARN a8c [channel: mychannel] Rejecting broadcast of config message from 172.18.0.7:49722 because of error: error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

halocatw (Wed, 25 Apr 2018 02:32:24 GMT):
i signed the channel update block using Org2MSP and launched the channel update command as the admin role of Org1

halocatw (Wed, 25 Apr 2018 02:33:07 GMT):
===

halocatw (Wed, 25 Apr 2018 02:33:23 GMT):
#as admin of org2 peer channel signconfigtx -f config_update_as_envelope.pb -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem #as admin of org1 peer channel update -f config_update_as_envelope.pb -o orderer.example.com:7050 -c mychannel --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

halocatw (Wed, 25 Apr 2018 02:34:49 GMT):
thanks

dongsheng (Wed, 25 Apr 2018 02:52:39 GMT):
Hello, excuse me, fabric-sdk-java, a channel, two organizations, each organization has a peer, channel how to initialize, the 1 version is no problem, I want to ask how the 1.1 version of the implementation?

halocatw (Wed, 25 Apr 2018 03:02:33 GMT):
almost the same process as i can see

dongsheng (Wed, 25 Apr 2018 03:08:38 GMT):
@halocatw thanks,Yes, but I have problems in the details, for example, Block parseFrom = getConfigBlock (getRandomPeer ()); here adds a random peer, so that when peer in the second organizations is added, the channel, MSP inconsistencies are initialized.

halocatw (Wed, 25 Apr 2018 03:10:20 GMT):
how about if the parseFrom is just waiting there to let the new add peer finish the ledger data sync.

dongsheng (Wed, 25 Apr 2018 03:11:39 GMT):
And channel.addPeer is added to the initialized check, which is not a problem when you add second organizations and then initialize the channel, which is not a problem in the 1 version.

halocatw (Wed, 25 Apr 2018 03:21:21 GMT):
didn't read this part codebase , getRandomPeer () will choose the new added peer even if the ledger sync is not finished?

dongsheng (Wed, 25 Apr 2018 03:37:50 GMT):
Thanks,for example, channel needs two initialization, and getRandomPeer () is probably the first peer to be added to the channel, not necessarily the second, and the second initialization of channel is the second addition of peer, which will be a problem.

dongsheng (Wed, 25 Apr 2018 04:29:00 GMT):
@halocatw Thank you very much, I've settled, 1.1.0-SNAPSHOT replace 1.1.0-alpha, the two versions of parseConfigBlock are different from peer. When the shapshot version gets the creation block, if the peer fails, it will try to use his peer, and the alpha version doesn't do this

yoshi (Wed, 25 Apr 2018 05:14:46 GMT):
Has joined the channel.

gravity (Wed, 25 Apr 2018 06:37:50 GMT):
@huy.tranibm thanks, I'll take a look

ondar07 (Wed, 25 Apr 2018 06:44:10 GMT):
Has joined the channel.

ondar07 (Wed, 25 Apr 2018 06:50:17 GMT):
Hi! How to get a list of transactions in blocks of chain? I think this link https://github.com/hyperledger-archives/fabric/issues/1697#issuecomment-238995427 should help me, but it is not valid now. Where can I find this?

michielmulders (Wed, 25 Apr 2018 08:49:58 GMT):
Has joined the channel.

asharora78 (Wed, 25 Apr 2018 09:28:08 GMT):
How do we provide failover support for a production ready network having multiple peers, ordering service and Fabric CA running as part of network?

qwikr (Wed, 25 Apr 2018 09:38:55 GMT):
Has joined the channel.

qwikr (Wed, 25 Apr 2018 09:39:26 GMT):
I was able to run my first network yesterday using the tutorial. However, today I ran the same query to start the network again and I am getting this error Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

qwikr (Wed, 25 Apr 2018 09:40:25 GMT):
tried everything but cannot get the network to be up and running. Any help ?

michielmulders (Wed, 25 Apr 2018 10:46:26 GMT):
Hi guys, I was wondering if something like this use case is possible: I have a network consisting of several independent companies. Sometimes, it happens the chaincode needs an update. We thought about creating a voting contract where all companies can vote if they want to implement (or not) the newly proposed chaincode (including the requested changes). If 2/3rd of the companies votes YES, we want to automatically upgrade the chaincode with the newer version. Is this feasible? Thanks a lot for your input.

vick (Wed, 25 Apr 2018 11:10:10 GMT):
does anyone know how to start the fabric-ca server natively?/

GokulReddy (Wed, 25 Apr 2018 11:51:39 GMT):
Has joined the channel.

vinayak 22 (Wed, 25 Apr 2018 11:52:21 GMT):
Has joined the channel.

GokulReddy (Wed, 25 Apr 2018 11:53:13 GMT):
Hi .. I am unable to deploy the sample-tutorial business network. I am getting the error. composer network install --card PeerAdmin@hlfv1 -a sample-business-network@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed

disruptex (Wed, 25 Apr 2018 12:00:17 GMT):
Has joined the channel.

michielmulders (Wed, 25 Apr 2018 12:04:06 GMT):
@GokulReddy can you check the logs of the peers (if they are connected properly and running)? docker logs -f (peer0.org....)

RahulSonanis (Wed, 25 Apr 2018 12:07:24 GMT):
Hi Guys I was reading the code of orderer and wanted to make some changes in the code of the orderer and then test it locally. I am able to reflect the changes made in the code and view in the docker image. Now I wanted to access the payload of the transaction received in the "Ordered" function of blockcutter in orderer and view the details of the message received such as "function called and it's arguments". How can I access this data from inside this "Ordered" function?

GokulReddy (Wed, 25 Apr 2018 12:09:08 GMT):
@michielmulders . docker logs are not generated for the command - composer network install.

GokulReddy (Wed, 25 Apr 2018 12:10:20 GMT):
@michielmulders I verified the connection profile file and network card file. Both files looks good but still it is not able to contact peers

ondar07 (Wed, 25 Apr 2018 12:36:34 GMT):
@vick https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#start-server-natively should help

vick (Wed, 25 Apr 2018 12:52:15 GMT):
@ondar07 thanks also i joined the #fabric-ca channel

mrkiouak (Wed, 25 Apr 2018 13:30:02 GMT):
Has left the channel.

bourbonkidQ (Wed, 25 Apr 2018 14:24:52 GMT):
How to define an intermediate CA in cryptogen (crypto-cinfig.yaml) ?

bourbonkidQ (Wed, 25 Apr 2018 14:24:52 GMT):
How to define an intermediate CA in cryptogen (crypto-config.yaml) ?

Colasg (Wed, 25 Apr 2018 14:29:31 GMT):
Hi, when I'm trying to start my client container I got an error inside the container saying "2018-04-25 14:15:53.761 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder", could anyone help me with that ?

GuillaumeCisco (Wed, 25 Apr 2018 15:32:31 GMT):
Hey ther, is it possible to find the Dockerfile for the `fabric-ca-tools` image ? Looks like the python sdk is not installed in it, I'd like to add it.

FahadAbbas (Wed, 25 Apr 2018 15:38:15 GMT):
Has joined the channel.

jrosmith (Wed, 25 Apr 2018 15:43:43 GMT):
@RahulSonanis #fabric-orderer is probably best suited to help you out

FahadAbbas (Wed, 25 Apr 2018 16:01:15 GMT):
Hi I am new to this community and trying to setup fabric on my machine. I am following http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries to install binaries as per this link curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 it should create a bin sub directory and place cryptogen,configtxgen,configtxlator,peer,orderer and fabric-ca-client into it. But when I run the curl command as said above I do not get the bin folder created. I do get the fabric-samples folder created. Could anyone help with this or share a better link to install fabric on my machine?

VladimirBorozna (Wed, 25 Apr 2018 16:12:35 GMT):
Has joined the channel.

VladimirBorozna (Wed, 25 Apr 2018 16:12:39 GMT):
Hi. Can somedody explain me what difference between https://openblockchain.readthedocs.io and https://hyperledger-fabric.readthedocs.io/ docs&

varinder (Wed, 25 Apr 2018 16:26:31 GMT):
^I have a similar question.. what is the updated documentation? There is two.... https://hyperledger-fabric.readthedocs.io/en/master/index.html *OR* http://hyperledger-fabric.readthedocs.io/en/release-1.1/

varinder (Wed, 25 Apr 2018 16:26:31 GMT):
^I have a similar question.. what is the updated documentation? There is two.... https://hyperledger-fabric.readthedocs.io/en/master/install.html *OR* http://hyperledger-fabric.readthedocs.io/en/release-1.1/

varinder (Wed, 25 Apr 2018 16:26:53 GMT):
and they both have slightly similar instructions

varinder (Wed, 25 Apr 2018 16:26:53 GMT):
and they both have slightly different instructions

Levilk (Wed, 25 Apr 2018 16:37:45 GMT):
Has joined the channel.

gioannou983 (Wed, 25 Apr 2018 16:45:51 GMT):
Has joined the channel.

Levilk (Wed, 25 Apr 2018 16:48:35 GMT):
hi folks! Can anyone tell me that Is there a way to integrate external identity services to fabric? Hi folks! Can anyone tell me that if there is a way to integrate external identity services to fabric?

Levilk (Wed, 25 Apr 2018 16:48:35 GMT):
hi folks! Can anyone tell me that Is there a way to integrate external identity services to fabric? Hi folks!

Levilk (Wed, 25 Apr 2018 16:48:35 GMT):
hi folks! Can anyone tell me that Is there a way to integrate external identity services to fabric?

jrosmith (Wed, 25 Apr 2018 17:09:45 GMT):
@VladimirBorozna @varinder http://hyperledger-fabric.readthedocs.io/en/release-1.1/ has the most recent release code. feel free to head over to #fabric-documentation for more questions or open a jira issue regarding the redundant doc sets

jrosmith (Wed, 25 Apr 2018 18:00:12 GMT):
@Levilk #fabric-ca would probably be the most help

rartin (Wed, 25 Apr 2018 18:26:30 GMT):
Has joined the channel.

Teja59 (Wed, 25 Apr 2018 18:26:51 GMT):
Has joined the channel.

ashishnpatel (Wed, 25 Apr 2018 18:26:57 GMT):
Has joined the channel.

ashishnpatel (Wed, 25 Apr 2018 18:27:44 GMT):

kubectl get svc

rartin (Wed, 25 Apr 2018 18:27:55 GMT):
I followed the latest https://hyperledger-fabric.readthedocs.io/en/latest/ documentation an bumped into a problem: https://stackoverflow.com/questions/50011778/hyperledger-cli-container-does-not-bind-volumes-with-host/50028365#50028365

rartin (Wed, 25 Apr 2018 18:27:55 GMT):
I followed the latest https://hyperledger-fabric.readthedocs.io/en/latest/ documentation to build the BYFN sample an bumped into a problem: Specifically this error message during network creation: OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed https://stackoverflow.com/questions/50011778/hyperledger-cli-container-does-not-bind-volumes-with-host/50028365#50028365

rartin (Wed, 25 Apr 2018 18:27:55 GMT):
I followed the latest https://hyperledger-fabric.readthedocs.io/en/latest/ documentation to build the BYFN sample an bumped into a problem: Specifically this error message during network creation: OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed https://stackoverflow.com/questions/50011778/hyperledger-cli-container-does-not-bind-volumes-with-host/50028365#50028365 It looks like the cli container does not see the scrips in the bound volumes.

Teja59 (Wed, 25 Apr 2018 18:27:56 GMT):
Hi All, I am trying to execute the samples. Specifically `first network` Peers are getting created by channel creating is getting failed with the error ```2018-04-25 18:26:18.717 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f8d96995259] runtime stack: runtime.throw(0xf11259, 0x2a) /opt/go/src/runtime/panic.go:605 +0x95 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:351 +0x2b8```

Teja59 (Wed, 25 Apr 2018 18:28:05 GMT):
Is there something I am missing?

Teja59 (Wed, 25 Apr 2018 18:28:10 GMT):
Please help to fix this issue

Teja59 (Wed, 25 Apr 2018 18:28:19 GMT):
Tried with 1.1.0 and 1.0.6 too

ParamBhavsar (Wed, 25 Apr 2018 18:34:55 GMT):
Has joined the channel.

rartin (Wed, 25 Apr 2018 18:39:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JG7LMMfrWfLggRNoc) @jrosmith Ther is alos the latest version: https://hyperledger-fabric.readthedocs.io/en/latest/

rartin (Wed, 25 Apr 2018 18:39:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JG7LMMfrWfLggRNoc) @jrosmith Ther is also the latest version: https://hyperledger-fabric.readthedocs.io/en/latest/

rartin (Wed, 25 Apr 2018 18:39:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JG7LMMfrWfLggRNoc) @jrosmith Ther is also the latest version: https://hyperledger-fabric.readthedocs.io/en/latest/ Is there a difference between the master and the latest?

rartin (Wed, 25 Apr 2018 18:39:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JG7LMMfrWfLggRNoc) @jrosmith There is also the latest version: https://hyperledger-fabric.readthedocs.io/en/latest/ Is there a difference between the master and the latest?

smontsaroff (Wed, 25 Apr 2018 19:19:49 GMT):
Hi -- Running on Ubuntu 16.04.4 LTS, I tried to run the Build Your First Network Sample, and got the error below Anyone else seen it? 2018-04-25 18:47:46.133 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-04-25 18:47:46.134 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing query: rpc error: code = Unavailable desc = transport is closing - Usage: peer chaincode query [flags] Flags: -C, --channelID string The channel on which this command should be executed -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -x, --hex If true, output the query value byte array in hexadecimal. Incompatible with --raw -n, --name string Name of the chaincode -r, --raw If true, output the query value as raw bytes, otherwise format as a printable string -t, --tid string Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ERROR !!!! Test failed ___________________

smontsaroff (Wed, 25 Apr 2018 19:19:49 GMT):
Hi -- Running on Ubuntu 16.04.4 LTS, using ./byfn.sh -m up -l nodeI tried to run the Build Your First Network Sample, and got the error below Anyone else seen it? 2018-04-25 18:47:46.133 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-04-25 18:47:46.134 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing query: rpc error: code = Unavailable desc = transport is closing - Usage: peer chaincode query [flags] Flags: -C, --channelID string The channel on which this command should be executed -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -x, --hex If true, output the query value byte array in hexadecimal. Incompatible with --raw -n, --name string Name of the chaincode -r, --raw If true, output the query value as raw bytes, otherwise format as a printable string -t, --tid string Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ERROR !!!! Test failed ___________________

jmason900 (Wed, 25 Apr 2018 19:43:19 GMT):
@smontsaroff Yes. A common error if the node applications or the node chaincode did not compile .. try running npm install in each of the example node chaincode directories and then rerun ... I believe the timeout error should be replaced with a better root cause error ( much like a server just returning a "500" error without providing root cause )

ashishnpatel (Wed, 25 Apr 2018 20:10:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fjBLGopHXjdckvBJ6) @smontsaroff you just have to run ./byfn.sh -m down first then run ./byfn.sh -m up command this works for me

SB85 (Wed, 25 Apr 2018 21:52:44 GMT):
If I modify chaincode, what are the changes need to be done in fabric network? Any changes in configuration transaction?

Chalex (Thu, 26 Apr 2018 02:22:23 GMT):
Could anyone tell me how to decode all the raw block data into human-readable format? I already tried that with `configtxlator` according to http://hyperledger-fabric.readthedocs.io/en/latest/commands/configtxlator.html. But it failed to fetch information in the `transaction` level. Any ideas on how to decode `block/transaction` with `golang`? Thank you.

zweifeng (Thu, 26 Apr 2018 03:40:35 GMT):
Has joined the channel.

Taffies (Thu, 26 Apr 2018 03:41:59 GMT):

Screen Shot 2018-04-26 at 10.43.48 AM.png

Taffies (Thu, 26 Apr 2018 03:44:22 GMT):
idk where they get the ip address from, but it should be pointing at peer0.org1 right? is there any way to override the ip address?

Atheist13 (Thu, 26 Apr 2018 05:09:24 GMT):
Has joined the channel.

Atheist13 (Thu, 26 Apr 2018 05:10:21 GMT):
Command used - node enrollAdmin.js Store path:/home/suryansh/fabric-samples/first-network/node/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/suryansh/fabric-samples/first-network/node/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:873:12) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at TLSSocket.socketErrorListener (_http_client.js:310:9) at emitOne (events.js:96:13) at TLSSocket.emit (events.js:188:7) at emitErrorNT (net.js:1296:8) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) Failed to enroll admin: Error: Failed to enroll admin

Atheist13 (Thu, 26 Apr 2018 05:13:27 GMT):
I get the above error when I try to enroll my admin. Please help. I was told that my CA containers are not up and I should use,

Atheist13 (Thu, 26 Apr 2018 05:13:29 GMT):
docker-compose -f docker-compose-e2e.yaml up -d ca0

Atheist13 (Thu, 26 Apr 2018 05:14:22 GMT):
from the first-network folder, which i did and got the error, ERROR: Named volume "orderer.example.com:/var/hyperledger/production/orderer:rw" is used in service "orderer.example.com" but no declaration was found in the volumes section.

Atheist13 (Thu, 26 Apr 2018 05:15:04 GMT):
I am a noobie, someone please help out!

anthonyk (Thu, 26 Apr 2018 05:55:47 GMT):
Has joined the channel.

umtyzc (Thu, 26 Apr 2018 05:56:39 GMT):
docker rm $(docker ps -a -q) @Atheist13 trt this command before run docker compose e2e.yaml up

Atheist13 (Thu, 26 Apr 2018 06:01:31 GMT):
Error response from daemon: You cannot remove a running container 3275e3f27b188e097ac862d5dbfcd3b5cc2f8770a28cd0496adae14e500ff851. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 22b078f15a6de9cbf8f91393fe93856ec942c95c809e0e35b5d9294709ee8894. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 032c2c97c2e90a50ba32f2a3873363d2fee932f6470ca69210f9c6636084de2e. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 05e8fa8d607cb31d56f1c1f145d74516ca942e304f78886eb17a2cecb1ceabc8. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 01c65e84ebef6037b2ac433d7ed00e4db147a43b536e1840711b340633aaf0d8. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container d9cf79e1d5c29312bb0a5c63b2597474935eafcb55be8fb29efc458196c87dc6. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 51bab1a408d44255b971e88d39082402ccfaa9c8d47b17a3bd650900099a249e. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 064a42fbf1090f8704ea6558acc42a2da16b6e63409a447818564fc090da1ff2. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container f0bf26495531a1879ca157e53ef31cf38fce293f57a9eb569bc64df4a1613704. Stop the container before attempting removal or force remove Error response from daemon: You cannot remove a running container 039bba17b8f394666d1775983b14526ae5fde15fc211b6b0b4a28f44946ff9e6. Stop the container before attempting removal or force remove

Atheist13 (Thu, 26 Apr 2018 06:02:13 GMT):
This is what i got when i ran the command you sent

Atheist13 (Thu, 26 Apr 2018 06:09:30 GMT):
@umtyzc any other suggestions?

StevenXu (Thu, 26 Apr 2018 06:09:33 GMT):
Has joined the channel.

umtyzc (Thu, 26 Apr 2018 06:09:44 GMT):
https://linuxconfig.org/how-to-remove-a-docker-container-on-linux Please look at this...

Atheist13 (Thu, 26 Apr 2018 06:12:08 GMT):
@umtyzc so which container should i remove using the commands on the website?

umtyzc (Thu, 26 Apr 2018 06:22:36 GMT):
use - - force after rm command to remove all container. docker rm —force $(docker ps -a-q)

umtyzc (Thu, 26 Apr 2018 06:28:07 GMT):
You can use completely free course to create example. Very useful . https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x

Atheist13 (Thu, 26 Apr 2018 06:28:20 GMT):
same error on running the docker-compose command

Atheist13 (Thu, 26 Apr 2018 06:32:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cxiTzybNZRF2hraZ) @umtyzc I have done this course and used the tuna app. I am trying to build an app of my own now

umtyzc (Thu, 26 Apr 2018 06:53:55 GMT):
Using ./xxxx instead of xxxx. ./orderer-example maybe solve your problem.

umtyzc (Thu, 26 Apr 2018 06:54:55 GMT):
https://github.com/ClusterHQ/dvol/issues/67 Resource.

DarshanBc (Thu, 26 Apr 2018 07:11:35 GMT):
when I give make docker I get this error ```debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: ```

srujana_k (Thu, 26 Apr 2018 07:33:08 GMT):
Has joined the channel.

srujana_k (Thu, 26 Apr 2018 07:41:50 GMT):
Hello Fabric Team, Recently I have seen a paper "Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains" (link : https://arxiv.org/pdf/1801.10228v1.pdf). In this paper they have mentioned about "peer transaction manager (PTM)", so 'is this entity implemented(or planning to implement) in fabric' or 'is this specific to the paper'? Please share some knowledge and information on PTM. Thanks! Srujana

serkanerkan (Thu, 26 Apr 2018 07:58:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7oRYncMRZAedtQMJD) @DarshanBc I think you must remove the docker first. ($ sudo apt-get remove docker docker-engine docker.io) You can make a fresh installation according to this document. I installed without any errors. Its very handy. https://docs.docker.com/install/linux/docker-ce/ubuntu/ I can share the commands for fresh installation about docker, docker-ce and docker compose. (Fabric prerequisites) My Installation notes for Ubuntu. Docker Installation 1- $ sudo apt-get update 2- $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 3- $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 4- $ sudo apt-key fingerprint 0EBFCD88 5- $ sudo add-apt-repository \ “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable” Docker-ce installation $ sudo apt-get install docker-ce $ sudo apt-get update $ apt-cache madison docker-ce $ sudo apt-get install docker-ce=18.03.0~ce-0~ubuntu you can check. It should return a hello world response. $ sudo docker run hello-world Docker-Compose Installation $ sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose $ sudo chmod +x /usr/local/bin/docker-compose You can check the version of docker-compose $ docker-compose -version Please try, I try to help out as soon as I can. :woo:

RQWang1995 (Thu, 26 Apr 2018 07:59:03 GMT):
Has joined the channel.

umtyzc (Thu, 26 Apr 2018 08:00:09 GMT):
@SB85 Edit the .go file containing your chaincode- Emit an install transaction which installs the chaincode on a peer.- You should emit an installation on every peer you wish the chaincode to run on.- -Emit one upgrade (not instantiate, instantiate is for starting new chaincode, upgrade is for updating an existing chaincode to a new version) transaction to the orderer which then starts the new chaincode container (its name will change to reflect the new version) All invocations to that chaincode will now be performed on the latest version

umtyzc (Thu, 26 Apr 2018 08:02:17 GMT):
Good Example Resource: https://github.com/IBM-Blockchain/marbles/issues/136

soladnet (Thu, 26 Apr 2018 08:24:08 GMT):
Has joined the channel.

petroccoC (Thu, 26 Apr 2018 08:37:09 GMT):
Has joined the channel.

AshokReddy (Thu, 26 Apr 2018 10:35:56 GMT):
Has joined the channel.

CarrereArnaud (Thu, 26 Apr 2018 10:46:46 GMT):
Has joined the channel.

GuillaumeCisco (Thu, 26 Apr 2018 10:56:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TLB2yZ8TfKPYkqRrr) for information, it can be found here : https://github.com/hyperledger/fabric/blob/release-1.1/images/tools/Dockerfile.in and https://github.com/hyperledger/fabric-ca/blob/release-1.1/images/fabric-ca-tools/Dockerfile.in

CorentinPacaud (Thu, 26 Apr 2018 12:51:30 GMT):
Hey,

CorentinPacaud (Thu, 26 Apr 2018 12:51:44 GMT):
Can anyone can help me with this error ?

CorentinPacaud (Thu, 26 Apr 2018 12:51:46 GMT):
https://stackoverflow.com/questions/50039054/handshake-failed-with-fatal-error-ssl-error-ssl-error1408f10bssl-routinesssl?noredirect=1#comment87095339_50039054

obenyaac (Thu, 26 Apr 2018 12:59:55 GMT):
Has joined the channel.

obenyaac (Thu, 26 Apr 2018 13:00:13 GMT):
Hello, I've been working on a Hyperledger-Fabric Insurance PoC. I've almost finished my work, but I still need documentation on the business advantages Fabric can bring to an insurance platform running on Hyperledger Fabric. Can you help me please? Thanks in advance Guys :D

shailaja.mahara (Thu, 26 Apr 2018 13:56:30 GMT):
can anyone tell me how the cli container can be shared among host machines on the same network?

MonnyClara (Thu, 26 Apr 2018 14:02:32 GMT):
@shailaja.mahara It depends how you manage your several machines

shailaja.mahara (Thu, 26 Apr 2018 14:02:50 GMT):
im using docker swarm

MrLoffciak (Thu, 26 Apr 2018 14:03:23 GMT):
Has joined the channel.

MrLoffciak (Thu, 26 Apr 2018 14:03:56 GMT):
Hi. I would like to ask about the connection between orderer binary and orderer.yaml. Can anyone help me?

MrLoffciak (Thu, 26 Apr 2018 14:05:32 GMT):
How is the file orderer.ymal parsed?

MrLoffciak (Thu, 26 Apr 2018 14:05:52 GMT):
What's it role? Any connection with configtx?

shailaja.mahara (Thu, 26 Apr 2018 14:10:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cDwTspuNqnYKtYxAS) @MonnyClara also, my machines are on the same lan.

MonnyClara (Thu, 26 Apr 2018 14:13:07 GMT):
@shailaja.mahara I don't know much about Swarm but I guess you can do something like `docker-machine ssh "docker exec -it cli bash"`

shailaja.mahara (Thu, 26 Apr 2018 14:16:40 GMT):
@MonnyClara thanku so much! one more question, what am i to replace with? cli container id? container name?

CorentinPacaud (Thu, 26 Apr 2018 14:17:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i44aSWHLWsppn9RSb) So, apparently, it is an error in the connectionProfile.json. because if I use the one in the fabric-tools, It works.

MonnyClara (Thu, 26 Apr 2018 14:19:41 GMT):
@shailaja.mahara You replace `` by the HOSTNAME of the machine that execute the CLI docker

shailaja.mahara (Thu, 26 Apr 2018 14:20:49 GMT):
@MonnyClara with the ip address?

gioannou983 (Thu, 26 Apr 2018 14:55:32 GMT):
Hello, has anybody managed to install Hyperledger fabric on Linux Mint 18.2?

SmartContract2018 (Thu, 26 Apr 2018 15:42:30 GMT):
I am working on a fabric based design that can potentially have 1000's of private transactions (as many chaincodes). From data privacy perspective, I am looking to have the optimum design. I can have individual channels for each private communication thus ensuring that only relevant transactions are stored physically on any node. However it means creating 1000s of individual channels. It creates operations/maintenance challenges and network stability. Any feedback would be appreciated.

Atheist13 (Thu, 26 Apr 2018 16:13:56 GMT):
COMMAND USED - node enrollAdmin.js ERROR - Store path:/home/suryansh/fabric-samples/first-network/node/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/suryansh/fabric-samples/first-network/node/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:873:12) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at TLSSocket.socketErrorListener (_http_client.js:310:9) at emitOne (events.js:96:13) at TLSSocket.emit (events.js:188:7) at emitErrorNT (net.js:1296:8) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) Failed to enroll admin: Error: Failed to enroll admin I get the above error when I try to enroll my admin. Please help. I was told that my CA containers are not up and from the first-network folder I should use, COMMAND - docker-compose -f docker-compose-e2e.yaml up -d ca0 ERROR: Named volume "orderer.example.com:/var/hyperledger/production/orderer:rw" is used in service "orderer.example.com" but no declaration was found in the volumes section.

Atheist13 (Thu, 26 Apr 2018 16:14:00 GMT):
I am a noobie, someone please help out!

voutasaurus (Thu, 26 Apr 2018 16:44:46 GMT):
Is there a reason that there is not a 1.1.0 version here? https://hub.docker.com/r/hyperledger/fabric-couchdb/tags/

silliman (Thu, 26 Apr 2018 16:58:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s2KhGZ3XxGLaFzExo) @voutasaurus CouchDB, and several others like zookeeper, kafka, baseimage, baseos are now tagged with numbers that don't match 1.1.0, e.g. for Fabric 1.1.0 you'll need fabric-couchdb:0.4.6, etc.

voutasaurus (Thu, 26 Apr 2018 16:59:03 GMT):
Okay is there a place that these mappings are listed?

voutasaurus (Thu, 26 Apr 2018 16:59:26 GMT):
because 0.4.6 isn't the latest version

silliman (Thu, 26 Apr 2018 16:59:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kf73CXmDHgtdZvXv4) @voutasaurus not sure where it may be formally documented and it may be more like x86_64-0.4.6 ... if you see a 0.4.7 out there i think that is for newer code, e.g. maybe the upcoming 1.2.0

voutasaurus (Thu, 26 Apr 2018 17:00:22 GMT):
I'm really confused as to why there is a 0.X version AND a 1.X version

voutasaurus (Thu, 26 Apr 2018 17:00:35 GMT):
That are both being actively updated

voutasaurus (Thu, 26 Apr 2018 17:01:57 GMT):

hyperledger_fabric-couchdb_-_Docker_Hub.png

silliman (Thu, 26 Apr 2018 17:02:22 GMT):
i think it is because these "3rd-party" things like couchdb and zookeeper and kafka may not track one-for-one to the fabric releases but are only updated as necessary.... you may get a better answer in #fabric or #fabric-ci

voutasaurus (Thu, 26 Apr 2018 17:03:06 GMT):
Thanks @silliman

voutasaurus (Thu, 26 Apr 2018 17:03:14 GMT):
I'll jump in fabric-ci

silliman (Thu, 26 Apr 2018 17:03:16 GMT):
@voutasaurus okay check under fabric-couchdb-x86_64

silliman (Thu, 26 Apr 2018 17:03:32 GMT):
(if you're on x86_64 that is of course)

silliman (Thu, 26 Apr 2018 17:07:32 GMT):
@voutasaurus if you have access to the source (either downloaded locally or via github or gerrit) and look in ..fabric/scripts/bootstrap.sh you will see an environment variable being set, THIRDPARTY_IMAGE_VERSION, that will tell you what tag you need for any particular version

voutasaurus (Thu, 26 Apr 2018 17:08:47 GMT):
https://github.com/hyperledger/fabric/blob/release-1.1/scripts/bootstrap.sh#L13

prov (Thu, 26 Apr 2018 17:12:39 GMT):
Has joined the channel.

sunnrunner (Thu, 26 Apr 2018 17:37:33 GMT):
is there a repo that has docker compose to setup instead of installing binaries and images from some script?

voutasaurus (Thu, 26 Apr 2018 19:53:26 GMT):
^ I would also like this

BabyCodet (Thu, 26 Apr 2018 21:14:26 GMT):
Has joined the channel.

Wesley2018 (Fri, 27 Apr 2018 00:41:28 GMT):
Has joined the channel.

Wesley2018 (Fri, 27 Apr 2018 00:48:27 GMT):
Hi all, can someone please help me with this: once the channel is created it returns channel.block, and the peers can join the channel by using this channel.block, so my question is where is this channel.block? I brought down the network and start it again, the channel already created and if I have new peers to join it says channel.block does not exist.

SB85 (Fri, 27 Apr 2018 01:03:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7crm9baTcbJzggxeR) @umtyzc :relaxed:

Wesley2018 (Fri, 27 Apr 2018 01:21:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a77YJi6j95qXeH3vd) I think I get the idea, I need to fetch the config from orderer service and correct me if I am wrong, use channel_config.block instead of channel.block? Thanks

IWAISH (Fri, 27 Apr 2018 03:26:02 GMT):
Has joined the channel.

IWAISH (Fri, 27 Apr 2018 03:31:43 GMT):
I’m trying to a tutorial of hyperledger fabric on Mac. (http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel) At ‘Create & Join Channel’ part, I have a question. Following the instruction, I typed `peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` , the following error occurred. What if I do, the problem will be resolved?(There seems to be no such directory, so do I have to create? ) >[main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder I think `../bin/cryptogen generate --config=./crypto-config.yaml` command makes files which is related to the problem. I typed this command, and it was the same as the tutorial says >org1.example.com > org2.example.com Thus, I don’t have any idea to resolve this problem. Please help me. I’d appreciate if you could answer these questions.

mgcox (Fri, 27 Apr 2018 04:27:58 GMT):
Has joined the channel.

mgcox (Fri, 27 Apr 2018 04:28:23 GMT):
i had that problem earlier today actually

mgcox (Fri, 27 Apr 2018 04:28:47 GMT):
It might be something with your docker

AshishMishra 1 (Fri, 27 Apr 2018 04:31:13 GMT):
Hi guys.. I 'm bit confused with one small problem and a 2nd opinion would be appreciated. say I 'm running an fabric network on AWS, since it was on single VPC, I used the private IPs only. Now A 2nd Org wants to connect to my n/w and he is having servers say hosted in his premises. He will need the public IPs of my peer and orderer. This doesn't work unless run my n/w using the public IPs. Can I somehow run fabric using my private IPs and allow users to connect using the public IPs? (Not interested in VPN and VPC peering stuff)

mgcox (Fri, 27 Apr 2018 04:33:04 GMT):
Either way, it seems like you're going to have a gateway of some sort

mgcox (Fri, 27 Apr 2018 04:36:46 GMT):
Can anyone explain how the model would be for a currency. I'm lost in the idea that the asset would be the currency if the asset could continue to get broken down into smaller increments (say partially sending to another participant). Would it make more sense to not have an asset and instead just assign a balance to a participant... that definitely doesnt sound right either.

mgcox (Fri, 27 Apr 2018 04:58:15 GMT):
Heaven forbid someone try to architect a simple currency on blockchain

RajuSomala (Fri, 27 Apr 2018 05:03:50 GMT):
Has joined the channel.

RajuSomala (Fri, 27 Apr 2018 05:05:11 GMT):
s it possible to update or alter smart contract (chaincode) deployed in hyperledger network s it possible to update or alter smart contract (chaincode) deployed in hyperledger network Is it possible to update or alter smart contract (chaincode) deployed in hyperledger network

RajuSomala (Fri, 27 Apr 2018 05:05:11 GMT):
s it possible to update or alter smart contract (chaincode) deployed in hyperledger network s it possible to update or alter smart contract (chaincode) deployed in hyperledger network Is it possible to update or alter smart contract (chaincode) deployed in hyperledger network

RajuSomala (Fri, 27 Apr 2018 05:05:54 GMT):
Is it possible to update or alter smart contract (chaincode) deployed in hyperledger network

mgcox (Fri, 27 Apr 2018 05:06:05 GMT):
ok?

Atheist13 (Fri, 27 Apr 2018 05:06:30 GMT):
Could anyone tell me what the below error is? I am very new to hyperledger and blockchain please help. COMMAND USED - node enrollAdmin.js ERROR - Store path:/home/suryansh/fabric-samples/first-network/node/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/suryansh/fabric-samples/first-network/node/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:873:12) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at TLSSocket.socketErrorListener (_http_client.js:310:9) at emitOne (events.js:96:13) at TLSSocket.emit (events.js:188:7) at emitErrorNT (net.js:1296:8) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) Failed to enroll admin: Error: Failed to enroll admin

umtyzc (Fri, 27 Apr 2018 05:19:50 GMT):
@IWAISH After install prerequisites, You must install Samples, Binaries and Docker Images completely. After install binaries you must see cryptogen, configtxgen, configtxlator, peer, orderer, and fabric-ca-client file in bin folder. If you cant see these files or missing file. You should reinstall images, binaries.

MeenakshiSingh (Fri, 27 Apr 2018 06:09:56 GMT):
Has joined the channel.

aviralwal (Fri, 27 Apr 2018 06:54:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=weFQtvcW8GECHEnce) @AshishMishra 1 Are you running dockerised peers or binaries? Surely anyone can connect to your service if your peers are inside the VPC which has access to the internet. Just point the external ip to the ports of the service running. For eg:- if you have a peer inside VPC which is running on port 7051, Just assign the external IP to the machine and point the request to the externalIP:7051, which will hit the peer. Just make sure what security groups you are following and security policies and modify the solution accordingly

IWAISH (Fri, 27 Apr 2018 06:58:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p5yaT8j5KephiPQPT) @umtyzc Thank you for your comment. I tried again the tutorial from the beginning, then the trouble has not occurred. Maybe I had skipped something when the command went wrong. Thank you for your kindness.

umtyzc (Fri, 27 Apr 2018 07:00:26 GMT):
@IWAISH :thumbsup:

umtyzc (Fri, 27 Apr 2018 07:11:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HxmnfseXeAyysckwd) @RajuSomala

umtyzc (Fri, 27 Apr 2018 07:11:56 GMT):
A chaincode may be upgraded any time by changing its version, which is part of the SignedCDS. Other parts, such as owners and instantiation policy are optional. However, the chaincode name must be the same; otherwise it would be considered as a totally different chaincode. Prior to upgrade, the new version of the chaincode must be installed on the required endorsers. Upgrade is a transaction similar to the instantiate transaction, which binds the new version of the chaincode to the channel. Other channels bound to the old version of the chaincode still run with the old version. In other words, the upgrade transaction only affects one channel at a time, the channel to which the transaction is submitted. Source: http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4noah.html

pengdai (Fri, 27 Apr 2018 07:27:30 GMT):
Has joined the channel.

geourjoa (Fri, 27 Apr 2018 07:28:35 GMT):
Hi everyone, it's possible to add a channel dynamicly in a fabric network ?

serkanerkan (Fri, 27 Apr 2018 07:48:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EN6w8uCshAAquEGcu) @geourjoa you can check this article.;) https://medium.com/kokster/understanding-hyperledger-fabric-channel-lifecycle-a546670646e3

geourjoa (Fri, 27 Apr 2018 07:50:24 GMT):
Thanks it's exactly what I'm looking for !

RajuSomala (Fri, 27 Apr 2018 08:20:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WoHTGDQHLHzFE4yu3) @umtyzc Thanks, Very helpful inormation

rolland (Fri, 27 Apr 2018 08:55:27 GMT):
What is the correct git commit level for the 1.1.0 release of Fabric ? The 'v1.1.0' tag is @ 523f644b909d5699fbd992a011e7ed6031e96a9a whereas the 'release-1.1' branch is @ c257bb31867b14029c3a6afe1db35b131757d2bf

lclclc (Fri, 27 Apr 2018 09:02:55 GMT):
Anyone knows what is the underlying reason for this error? ` Error endorsing query: rpc error: code = Unknown desc = access denied: channel `

lclclc (Fri, 27 Apr 2018 09:02:55 GMT):
Anyone knows what is the underlying reason for this error? ``` Error endorsing query: rpc error: code = Unknown desc = access denied: channel ```

lclclc (Fri, 27 Apr 2018 09:02:55 GMT):
Anyone knows what is the underlying reason for this error? ``` Error: Error endorsing query: rpc error: code = Unknown desc = access denied: channel [businesschannel] creator org [NewOrgMSP] - ```

hussein.knight (Fri, 27 Apr 2018 09:16:20 GMT):
Dear all, i need some help, my project is to put images on blockchain, first i run two peers on different machines with the balance transfer chaincode, i know that to put those images i need to encode those images to by base64 to put them in a string variable, but how can do this, other question i need to query the blockchain by a mobile application(every client have one), enter his user name and password and query his own image, any help?

MrLoffciak (Fri, 27 Apr 2018 10:08:19 GMT):
What is needed to proceed when trying to connect to Blockchain network from multiple hosts?

BhaskarRaju (Fri, 27 Apr 2018 10:13:25 GMT):
[common/tools/configtxgen/localconfig] Load -> CRIT 002 Error reading configuration: While parsing config: yaml: unknown anchor 'xxx' referenced - what could be the cause for this ?? can someone help me out :)

umtyzc (Fri, 27 Apr 2018 10:23:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HQSb96MstjPHbWAcn) @MrLoffciak Abdul’s example is very useful. https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

hussein.knight (Fri, 27 Apr 2018 11:08:42 GMT):
@umtyzc in abdul's example how to run another chaincode? i write my own one?

hussein.knight (Fri, 27 Apr 2018 11:09:01 GMT):
!*

VadimInshakov (Fri, 27 Apr 2018 11:15:56 GMT):
Hello I'm trying to add peers to channel by following the instructions from tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel But I can only add peer0 of organizations Org1 and Org2. When I trying to add peer1 of organizations Org1 and Org2 I get error: ``` 2018-04-26 20:17:05.204 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org1MSP]) ``` Why?

VadimInshakov (Fri, 27 Apr 2018 11:15:56 GMT):
Hello I'm trying to add peers to channel by following the instructions from tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel But I can only add peer0 of organizations Org1 and Org2. When I trying to add peer1 of organizations Org1 and Org2 I get error: ``` 2018-04-26 20:17:05.204 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org1MSP]) ``` Why?

mzakhia (Fri, 27 Apr 2018 11:37:10 GMT):
Has joined the channel.

derekm110 (Fri, 27 Apr 2018 13:49:32 GMT):
Has joined the channel.

Syders (Fri, 27 Apr 2018 13:55:57 GMT):
Has joined the channel.

jpdias92 (Fri, 27 Apr 2018 14:02:20 GMT):
Has joined the channel.

Syders (Fri, 27 Apr 2018 14:05:48 GMT):
Hi, everyone i'm new in hyperledger fabric and I search some examples to build simple blockchain network with fabric-ca

gnulin (Fri, 27 Apr 2018 14:09:58 GMT):
Has joined the channel.

timboblockchain (Fri, 27 Apr 2018 14:30:06 GMT):
Has joined the channel.

mgcox (Fri, 27 Apr 2018 15:14:23 GMT):
can anyone answer an architecture question on here? I hate to be just another person asking just another questions

sumit.contrib (Fri, 27 Apr 2018 15:33:05 GMT):
Has joined the channel.

mcoronadog (Fri, 27 Apr 2018 19:13:19 GMT):
Has joined the channel.

ruigonzalez_mosi (Fri, 27 Apr 2018 19:59:33 GMT):
Has joined the channel.

rchohan (Fri, 27 Apr 2018 21:16:41 GMT):
Has joined the channel.

ondar07 (Sat, 28 Apr 2018 06:39:43 GMT):
@Syders I am not an expert, but in my opinion this tutorial https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html is a starting point for fabric network understanding

hussein.knight (Sat, 28 Apr 2018 09:15:59 GMT):
how to install hyperledger explorer any article or any thing else

hussein.knight (Sat, 28 Apr 2018 09:16:16 GMT):
and connect iit to my fabric network

ribhuchawla (Sat, 28 Apr 2018 12:09:12 GMT):
Has joined the channel.

gwuhack (Sat, 28 Apr 2018 13:37:19 GMT):
Has joined the channel.

umtyzc (Sat, 28 Apr 2018 14:05:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qmhu4iZ8LeCQHmPXT) @hussein.knight Look at this... https://github.com/hyperledger/blockchain-explorer/blob/master/README.md

jmat201 (Sat, 28 Apr 2018 14:29:37 GMT):
Has joined the channel.

shahzaib86 (Sat, 28 Apr 2018 18:16:39 GMT):
Has joined the channel.

shahzaib86 (Sat, 28 Apr 2018 18:17:05 GMT):
Hi Everyone I started working on hyperledger fabric and stuck at enrolling admin can someone help me ? getting this error while enrolling admin Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

umtyzc (Sat, 28 Apr 2018 18:18:50 GMT):
Which example do you use?

shahzaib86 (Sat, 28 Apr 2018 18:19:22 GMT):
i used fabcar sample

shahzaib86 (Sat, 28 Apr 2018 18:20:45 GMT):
made my own network and enrolling admin using fabcar enrollAdmin.js after required modification

umtyzc (Sat, 28 Apr 2018 18:25:09 GMT):
Maybe missing docker container issue. Please reinstall docker images and git clone fabcar example

shahzaib86 (Sat, 28 Apr 2018 18:25:35 GMT):
ok

marcosmacedo (Sat, 28 Apr 2018 19:15:36 GMT):
Has joined the channel.

johnnuggie (Sat, 28 Apr 2018 22:07:26 GMT):
Has joined the channel.

jmedina (Sat, 28 Apr 2018 22:35:16 GMT):
Has joined the channel.

diestrin (Sun, 29 Apr 2018 01:12:46 GMT):
Has joined the channel.

EfratLevy (Sun, 29 Apr 2018 10:01:15 GMT):
Hi guys, how would you define the "majority attack" in case of private blockchain? and how is it defined in Fabric in particular?

yacovm (Sun, 29 Apr 2018 10:08:55 GMT):
There is no majority attack in private blockahins... because they use a classical consensus, thus - any malicious minority that is more than 33% is problematic.

yacovm (Sun, 29 Apr 2018 10:09:03 GMT):
so you don't need a majority

DmitryPugachev (Sun, 29 Apr 2018 12:37:50 GMT):
Has joined the channel.

DmitryPugachev (Sun, 29 Apr 2018 12:37:54 GMT):
Hi. I'm performing a load test for Fabric v1.1. Network was deployed using Cello: 4 ec2 instances of c5.9xlarge type, 3 peers with CouchDB, 4 orderers, 4 kafka, 4 zookeeper. I'm using official *fabcar* chaincode. The test was performed for queries to the blockchain state. At some point (~1000 rps) I'm starting receiving error messages from the network. Error log message from one of the peers: ``` error getting chaincode firstchaincode on channel: firstchannel([lscc] Invoke -\u003e ERRO 53fd6\u001b[0m error getting chaincode firstchaincode on channel: firstchannel(err:transaction not found Get http://couchdb-peer1st-main:5984/firstchannel_lscc/firstchaincode?attachments=true: dial tcp 172.16.28.6:5984: connect: cannot assign requested address ``` Also I see timeout errors like this: ``` UTC [chaincode] ExecuteChaincode -\u003e ERRO 5432f\u001b[0m timeout expired while executing transaction ``` Any ideas?

DmitryPugachev (Sun, 29 Apr 2018 12:37:54 GMT):
Hi. I'm performing a load test for Fabric v1.1. Network was deployed using Cello: 4 ec2 instances of c5.9xlarge type, 3 peers with CouchDB, 4 orderers, 4 kafka, 4 zookeeper. I'm using official *fabcar* chaincode. The test was performed for queries to the blockchain state. At some point (~1000 rps) I'm starting receiving error messages from the network. Error log message from one of the peers: ``` error getting chaincode firstchaincode on channel: firstchannel([lscc] Invoke -\u003e ERRO 53fd6\u001b[0m error getting chaincode firstchaincode on channel: firstchannel(err:transaction not found Get http://couchdb-peer1st-main:5984/firstchannel_lscc/firstchaincode?attachments=true: dial tcp 172.16.28.6:5984: connect: cannot assign requested address ``` Also I see timeout errors like this: ``` UTC [chaincode] ExecuteChaincode -\u003e ERRO 5432f\u001b[0m timeout expired while executing transaction and ``` [endorser] simulateProposal -\u003e ERRO 57c78\u001b[0m [firstchannel][94273933] failed to invoke chaincode name:\"firstchaincode\" , error: timeout expired while executing transaction\n ``` ``` Any ideas?

DmitryPugachev (Sun, 29 Apr 2018 12:37:54 GMT):
Hi. I'm performing a load test for Fabric v1.1. Network was deployed using Cello: 4 ec2 instances of c5.9xlarge type, 3 peers with CouchDB, 4 orderers, 4 kafka, 4 zookeeper. I'm using official *fabcar* chaincode. The test was performed for queries to the blockchain state. At some point (~1000 rps) I'm starting receiving error messages from the network. Error log message from one of the peers: ``` error getting chaincode firstchaincode on channel: firstchannel([lscc] Invoke -\u003e ERRO 53fd6\u001b[0m error getting chaincode firstchaincode on channel: firstchannel(err:transaction not found Get http://couchdb-peer1st-main:5984/firstchannel_lscc/firstchaincode?attachments=true: dial tcp 172.16.28.6:5984: connect: cannot assign requested address ``` Also I see timeout errors like this: ``` UTC [chaincode] ExecuteChaincode -\u003e ERRO 5432f\u001b[0m timeout expired while executing transaction and ``` [endorser] simulateProposal -\u003e ERRO 57c78\u001b[0m [firstchannel][94273933] failed to invoke chaincode name:\"firstchaincode\" , error: timeout expired while executing transaction\n ``` Any ideas?

DmitryPugachev (Sun, 29 Apr 2018 12:37:54 GMT):
Hi. I'm performing a load test for Fabric v1.1. Network was deployed using Cello: 4 ec2 instances of c5.9xlarge type, 3 peers with CouchDB, 4 orderers, 4 kafka, 4 zookeeper. I'm using official *fabcar* chaincode. The test was performed for queries to the blockchain state. At some point (~1000 rps) I'm starting receiving error messages from the network. Error log message from one of the peers: ``` error getting chaincode firstchaincode on channel: firstchannel([lscc] Invoke -\u003e ERRO 53fd6\u001b[0m error getting chaincode firstchaincode on channel: firstchannel(err:transaction not found Get http://couchdb-peer1st-main:5984/firstchannel_lscc/firstchaincode?attachments=true: dial tcp 172.16.28.6:5984: connect: cannot assign requested address ``` Also I see timeout errors like this: ``` UTC [chaincode] ExecuteChaincode -\u003e ERRO 5432f\u001b[0m timeout expired while executing transaction and ``` [endorser] simulateProposal -\u003e ERRO 57c78\u001b[0m [firstchannel][94273933] failed to invoke chaincode name:\"firstchaincode\" , error: timeout expired while executing transaction\n ``` Any ideas?

DmitryPugachev (Sun, 29 Apr 2018 12:37:54 GMT):
Hi. I'm performing a load test for Fabric v1.1. Network was deployed using Cello: 4 ec2 instances of c5.9xlarge type, 3 peers with CouchDB, 4 orderers, 4 kafka, 4 zookeeper. I'm using official *fabcar* chaincode. The test was performed for queries to the blockchain state. At some point (~1000 rps) I'm starting receiving error messages from the network. Error log message from one of the peers: ``` error getting chaincode firstchaincode on channel: firstchannel([lscc] Invoke -\u003e ERRO 53fd6\u001b[0m error getting chaincode firstchaincode on channel: firstchannel(err:transaction not found Get http://couchdb-peer1st-main:5984/firstchannel_lscc/firstchaincode?attachments=true: dial tcp 172.16.28.6:5984: connect: cannot assign requested address ``` Also I see timeout errors like this: ``` UTC [chaincode] ExecuteChaincode -\u003e ERRO 5432f\u001b[0m timeout expired while executing transaction ``` and ``` [endorser] simulateProposal -\u003e ERRO 57c78\u001b[0m [firstchannel][94273933] failed to invoke chaincode name:\"firstchaincode\" , error: timeout expired while executing transaction\n ``` Any ideas?

mailtoashishb (Sun, 29 Apr 2018 15:48:50 GMT):
Has joined the channel.

mailtoashishb (Sun, 29 Apr 2018 16:03:55 GMT):
@shahzaib86, @Atheist13 - A simple way to fix the [Error: connect ECONNREFUSED 127.0.0.1:7054] error on windows The reason is that this command requires connecting to the fabric certificate authority (fabric-ca) through port 7054 which is not open. This is the first port to forward. As explained in the first article, port forwarding can be set by going to the VirtualBox client and adding this setting to the VM. In the VirtualBox client, select the “default” VM, click “Settings”, “Network”, “Advanced”, and “Port Forwarding”. Create a new rule by clicking the “+” sign on the right and entering the following: Name -> “ca”, Host Port -> 7054, Guest Port -> 7054. Click “OK”, Click “OK” again. You can leave the Host IP and Guest IP unspecified.

mailtoashishb (Sun, 29 Apr 2018 16:03:55 GMT):
@shahzaib86, @Atheist13 - A simple way to fix the [Error: connect ECONNREFUSED 127.0.0.1:7054] error on windows The reason the port forwarding fails is that this command requires connecting to the fabric certificate authority (fabric-ca) through port 7054 which is not open. This is the first port to forward. Port forwarding can be set by going to the VirtualBox client and adding this setting to the VM. In the VirtualBox client, select the “default” VM, click “Settings”, “Network”, “Advanced”, and “Port Forwarding”. Create a new rule by clicking the “+” sign on the right and entering the following: Name -> “ca”, Host Port -> 7054, Guest Port -> 7054. Click “OK”, Click “OK” again. You can leave the Host IP and Guest IP unspecified.

MALKANI.KAMAL (Sun, 29 Apr 2018 17:17:00 GMT):
Has joined the channel.

waleed (Sun, 29 Apr 2018 20:40:19 GMT):
When I install a chaincode, I get a new container with a name like "dev-mcc-peer0". How can I change this name? or does this mean that the chaincode is running in development mode? if yes, how can I change it to be in production mode?

waleed (Sun, 29 Apr 2018 20:40:19 GMT):
When I install a chaincode, I get a new container with a name like "dev-mcc-peer0.example.com". How can I change this name? or does this mean that the chaincode is running in development mode? if yes, how can I change it to be in production mode?

AZWRKS (Sun, 29 Apr 2018 21:41:20 GMT):
Has joined the channel.

AZWRKS (Sun, 29 Apr 2018 21:42:26 GMT):
Can Fabric be used in an application where end users are not necessarily businesses (e.g. Decentralized ride share app)?

IsaacWong (Mon, 30 Apr 2018 00:07:24 GMT):
Has joined the channel.

ikinique (Mon, 30 Apr 2018 00:34:15 GMT):
Has joined the channel.

xonathan (Mon, 30 Apr 2018 03:57:33 GMT):
Has joined the channel.

nithindj192 (Mon, 30 Apr 2018 06:19:27 GMT):
Has joined the channel.

nithindj192 (Mon, 30 Apr 2018 06:19:31 GMT):
While adding a new organization to the hyper ledger fabric network, the peer logs shows the below error. [gossip/service] updateAnchors -> ERRO 327 Tried joining channel mychannel but our org( org4), isn't among the orgs of the channel: [org1 org2 org3] , aborting. And a warning like below. [gossip/gossip] Gossip -> WARN 3d9 Failed obtaining gossipChannel of [99 104 45 99 111 109 109 111 110] aborting.

nithindj192 (Mon, 30 Apr 2018 06:19:31 GMT):
While adding a new organization to the hyper ledger fabric network, the peer logs shows the below error. [gossip/service] updateAnchors -> ERRO 327 Tried joining channel mychannel but our org( org4), isn't among the orgs of the channel: [org1 org2 org3] , aborting. And a warning like below. [gossip/gossip] Gossip -> WARN 3d9 Failed obtaining gossipChannel of [99 104 45 99 111 109 109 111 110] aborting.

nithindj192 (Mon, 30 Apr 2018 06:19:31 GMT):
While adding a new organization to the hyper ledger fabric network, the peer logs shows the below error. [gossip/service] updateAnchors -> ERRO 327 Tried joining channel mychannel but our org( org4), isn't among the orgs of the channel: [org1 org2 org3] , aborting. And a warning like below. [gossip/gossip] Gossip -> WARN 3d9 Failed obtaining gossipChannel of [99 104 45 99 111 109 109 111 110] aborting. Hyper ledger Fabric version : v1.1.0 Dynamic leader election properties added into peer-base.

pawanjois (Mon, 30 Apr 2018 06:27:00 GMT):
Has joined the channel.

pawanjois (Mon, 30 Apr 2018 06:28:11 GMT):
can some one help me with the following issue : https://stackoverflow.com/questions/50063227/error-connecting-due-to-rpc-error-code-unavailable-desc-grpc-the-connectio

pawanjois (Mon, 30 Apr 2018 06:29:46 GMT):
I am able to run fabric-samples/test-network. But when I try to execute each commands manually. I am getting an error while creating a new channel.

pawanjois (Mon, 30 Apr 2018 06:30:24 GMT):
Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable

vish 180 (Mon, 30 Apr 2018 07:20:57 GMT):
hi, I am having following issue

vish 180 (Mon, 30 Apr 2018 07:21:45 GMT):

deployment_error.png

vish 180 (Mon, 30 Apr 2018 07:22:23 GMT):
Any solution?

gravity (Mon, 30 Apr 2018 07:41:11 GMT):
Hello Could someone help me how to setup a basic Fabric network which is connected to the Fabric CA for issuing and verifying crypto materials? Thanks in advance!

nithindj192 (Mon, 30 Apr 2018 07:56:34 GMT):
@vish 180 Try specifying the ordererCA path and check.

bchincha (Mon, 30 Apr 2018 08:47:48 GMT):
Do we need special considerations if ledger data is required to be in multiple languages eg English and Chinese?

haxhaagn15 (Mon, 30 Apr 2018 08:57:08 GMT):
hello :) can anyone recommend me a free tutorial except for the hyperledger fabric documentation? :) best wishes

adityajha (Mon, 30 Apr 2018 09:07:45 GMT):
Has joined the channel.

MonnyClara (Mon, 30 Apr 2018 09:07:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jqPqCcN3j8LLcSu9f) @haxhaagn15 Check on https://medium.com/

adityajha (Mon, 30 Apr 2018 09:08:36 GMT):
hi, I am facing trouble deploying nodejs chaincode to peer

adityajha (Mon, 30 Apr 2018 09:17:05 GMT):
Hi. I would really appreciate the help. I think I am missing something fundamental

umtyzc (Mon, 30 Apr 2018 09:19:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jqPqCcN3j8LLcSu9f) @haxhaagn15 https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x Chapter 5 and 7 . Completely free course, useful example(Tuna App).AND https://medium.freecodecamp.org/ultimate-end-to-end-tutorial-to-create-an-application-on-blockchain-using-hyperledger-3a83a80cbc71 Good and easy understanding example.

umtyzc (Mon, 30 Apr 2018 09:32:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Pwpe4SGbFbuj8Lmgu) @pawanjois docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) Try stop and delete containers and reinstall.

Ardzii (Mon, 30 Apr 2018 09:33:48 GMT):
Has joined the channel.

Ardzii (Mon, 30 Apr 2018 09:34:27 GMT):
Hey! Thanks @umtyzc for the medium tuto link! It looks like a complete and fenomenal tutorial right there for composer.

MrLoffciak (Mon, 30 Apr 2018 09:53:55 GMT):
exit

gravity (Mon, 30 Apr 2018 10:07:19 GMT):
Hi there can I run a hyperledger fabric network without creating crypto materials for peers and orderers using cryptogen and later create crypto materials for orderer and peers using fabric ca?

rah_acc (Mon, 30 Apr 2018 10:23:57 GMT):
Has joined the channel.

Shra1511 (Mon, 30 Apr 2018 10:34:27 GMT):
How to check which instance is running on Hyperledger ?

HareshPolar1 (Mon, 30 Apr 2018 11:44:16 GMT):
Has joined the channel.

simonghrt (Mon, 30 Apr 2018 12:03:44 GMT):
Has joined the channel.

lvndry (Mon, 30 Apr 2018 12:12:44 GMT):
Hello guys, I am working in a startup that wants that have ambitious projects for the future and we are looking for devs comfortable with Hyperledger (Composer + Fabric), javascript, nodejs environment and that can work remotly. If you want to know more send me a message here or on my LinkedIn: https://www.linkedin.com/in/landry-monga/

Syders (Mon, 30 Apr 2018 12:14:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C3ozkQxo5Z2nr2ZJQ) @ondar07 Thanks for your answer ! Yes I read and follow this example and I understood all the things but in this example use cryptogen to generate key for all orgs but nothing about fabric-ca. So i search some docs or example to explain integration of fabric-ca in a network :)

clydedacruz (Mon, 30 Apr 2018 12:21:11 GMT):
chaincode exits after the following error ```2018-04-30 12:15:59.841 UTC [shim] userChaincodeStreamGetter -> ERRO 001 context deadline exceeded error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150 main.main /chaincode/input/src/couch_agg_cc/mycc.go:130 runtime.main /opt/go/src/runtime/proc.go:195 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2337 Error starting Simple chaincode: error trying to connect to local peer: context deadline exceeded```

clydedacruz (Mon, 30 Apr 2018 12:21:28 GMT):
what could be the problem ?

priyankagurnani (Mon, 30 Apr 2018 12:28:55 GMT):
Anybody installed prerequisites and Fabric and worked on Docker toolbox for windows 7?

hussein.knight (Mon, 30 Apr 2018 12:31:01 GMT):
@priyankagurnani I advice u to work with linux for this project, make your laptop dualboot windows and linux and work.

priyankagurnani (Mon, 30 Apr 2018 12:32:25 GMT):
one is already done but to connect to two different host another laptop configuration will take another longer time

priyankagurnani (Mon, 30 Apr 2018 12:32:25 GMT):
one is already done but to connect to two different host another laptop configuration will take another longer time, so thought of Docker toolbox, if there is way to do that

hussein.knight (Mon, 30 Apr 2018 12:38:25 GMT):
I need help plz i am working with my project on the marbles chaincode but how to initialize this chaincode it gives me error with this command peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -v 1.0 -c '{"Args":["initMarble","marble1","blue","35","tom"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

priyankagurnani (Mon, 30 Apr 2018 12:39:23 GMT):
@hussein.knight what is the error?

hussein.knight (Mon, 30 Apr 2018 12:40:52 GMT):
Chaincode argument error: invalid character ',' after object key

hussein.knight (Mon, 30 Apr 2018 12:44:00 GMT):
Error: Error endorsing chaincode: rpc error: code = Unknown desc = transaction returned with failure: Expecting integer value for asset holding

hussein.knight (Mon, 30 Apr 2018 12:44:19 GMT):
new error

priyankagurnani (Mon, 30 Apr 2018 12:47:13 GMT):
peer chaincode list

priyankagurnani (Mon, 30 Apr 2018 12:47:24 GMT):
check via this

nithindj192 (Mon, 30 Apr 2018 12:48:05 GMT):
While adding a new organization to the hyper ledger fabric network, the peer logs shows the below error. [gossip/service] updateAnchors -> ERRO 327 Tried joining channel mychannel but our org( org4), isn't among the orgs of the channel: [org1 org2 org3] , aborting. And a warning like below. [gossip/gossip] Gossip -> WARN 3d9 Failed obtaining gossipChannel of [99 104 45 99 111 109 109 111 110] aborting. Hyper ledger Fabric version : v1.1.0 Dynamic leader election properties added into peer-base.

priyankagurnani (Mon, 30 Apr 2018 12:48:18 GMT):
Also did you set environment variables for Peers

priyankagurnani (Mon, 30 Apr 2018 12:48:18 GMT):
@hussein.knight Also did you set environment variables for Peers

hussein.knight (Mon, 30 Apr 2018 13:04:07 GMT):
yes i set them, first of all i use the chaincode_example02 chaincode and it works with me by:``` peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" ```

hussein.knight (Mon, 30 Apr 2018 13:04:55 GMT):
now with this chaincode peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -v 1.0 -c '{"Args":["initMarble","marble1","blue","35","tom"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

hussein.knight (Mon, 30 Apr 2018 13:04:55 GMT):
now with this chaincode ``` ```

hussein.knight (Mon, 30 Apr 2018 13:04:55 GMT):
now with this chaincode ``` peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -v 1.0 -c '{"Args":["initMarble","marble1","blue","35","tom"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" ```

hussein.knight (Mon, 30 Apr 2018 13:07:36 GMT):
@priyankagurnani no need to change the env. variables true? and no need to change any thing only to put the new go code in the directory and start thee network, but why this give me an error.

MisterJava (Mon, 30 Apr 2018 13:32:54 GMT):
Hey guys, a litte bit off-topic, but i am confused: Is there a difference between the term private blockchain and permissions blockchain? In almost all articles this terms are used interchangeable, but on some stack exchange posts it is differed between the terms.

marksta (Mon, 30 Apr 2018 14:27:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e272vNRfieKZBeKxk) @MisterJava According to my understanding, you can have e.g. a private blockchain e.g. an Ethereum network, where you manage which nodes have access to the network. However, other than that, there's little you can do to control access to the data itself. On the other hand with a permissioned blockchain such as Fabric you can control which participant in the network has access to which information.

Ed.Curran (Mon, 30 Apr 2018 14:54:30 GMT):
Anybody have a source that explains what happens when a peer validates an endorsement containing conflicting readset/writeset? As in transaction endorsed message 1 contains a writeset different to endorsed message 2 etc. I'm pretty sure I read somewhere that the first writeset in the endorsement is used and the conflict is essentially ignored but I can't remember where.

umtyzc (Mon, 30 Apr 2018 15:01:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gjE6pjbZ9xdbHdLeJ) @Ed.Curran http://hyperledger-fabric.readthedocs.io/en/release-1.1/peers/peers.html

learner11 (Mon, 30 Apr 2018 15:03:48 GMT):
Has joined the channel.

learner11 (Mon, 30 Apr 2018 15:06:52 GMT):
Hi, I'm trying to set up a small private blockchain for a non cryptocurrency related purpose. Is there a way to set constraints on transaction generation ?I would basically like to be able to stop automatic block generation

Ed.Curran (Mon, 30 Apr 2018 15:07:18 GMT):
" For every transaction, each peer will verify that the transaction has been endorsed by the required organizations according to the endorsement policy of the chaincode which generated the transaction. For example, some transactions may only need to be endorsed by a single organization, whereas others may require multiple endorsements before they are considered valid. _This process of validation verifies that all relevant organizations have generated the same outcome or result_." - Huh guess I was wrong, was this changed at some point? I mean it makes sense to do it this way I'm just not sure why I thought it didn't.

jeffgarratt (Mon, 30 Apr 2018 15:28:37 GMT):
@Ed.Curran this has always been the case since 1.X

joaofguerreiro (Mon, 30 Apr 2018 15:46:47 GMT):
hey everyone, when is fabric 1.2 coming out? any idea?

geekoftheweek (Mon, 30 Apr 2018 16:06:35 GMT):
Has joined the channel.

JackStrohm (Mon, 30 Apr 2018 16:17:01 GMT):
Has joined the channel.

KristjanGrm (Mon, 30 Apr 2018 17:08:53 GMT):
Has joined the channel.

RainerKan (Mon, 30 Apr 2018 17:42:04 GMT):
Has joined the channel.

P.Rao (Mon, 30 Apr 2018 18:41:08 GMT):
Has joined the channel.

mike157 (Mon, 30 Apr 2018 18:59:58 GMT):
Has joined the channel.

ishan.gulhane (Mon, 30 Apr 2018 20:05:45 GMT):
I am trying to update my blockchain network images from 1.0.6 to 1.1.0. The updates are working fine when I am using the default key-value store for the statestore. The peer containers and chaincode container is crashing when I am trying to use CouchDB as a statestore. Following is the error message from the peer node ``` panic: assignment to entry in nil map goroutine 427 [running]: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.createCouchdbDocJSON(0xc42195f410, 0x9, 0x0, 0x0, 0xc42195f41c, 0x4, 0x4, 0xc42195f890, 0xc42001e600, 0xc42001e670, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:984 +0x1d8 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).processUpdateBatch(0xc4217bb810, 0xc420197df0, 0xc4201c24c0, 0x1, 0x1, 0xc42195f41c, 0x4) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:669 +0x550 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates.func1(0xc42184ac50, 0xc42011e890, 0xc4217bb810, 0xc4218c3bc0, 0xc42195f405, 0x5) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:577 +0x8a5 created by github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:509 +0x11d```

ishan.gulhane (Mon, 30 Apr 2018 20:05:45 GMT):
Hi, I am trying to update my blockchain network images from 1.0.6 to 1.1.0. The updates are working fine when I am using the default key-value store for the statestore. The peer containers and chaincode container is crashing when I am trying to use CouchDB as a statestore. Following is the error message from the peer node ``` panic: assignment to entry in nil map goroutine 427 [running]: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.createCouchdbDocJSON(0xc42195f410, 0x9, 0x0, 0x0, 0xc42195f41c, 0x4, 0x4, 0xc42195f890, 0xc42001e600, 0xc42001e670, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:984 +0x1d8 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).processUpdateBatch(0xc4217bb810, 0xc420197df0, 0xc4201c24c0, 0x1, 0x1, 0xc42195f41c, 0x4) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:669 +0x550 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates.func1(0xc42184ac50, 0xc42011e890, 0xc4217bb810, 0xc4218c3bc0, 0xc42195f405, 0x5) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:577 +0x8a5 created by github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:509 +0x11d```

ishan.gulhane (Mon, 30 Apr 2018 20:05:45 GMT):
Hi, I am trying to update my blockchain network images from 1.0.6 to 1.1.0. The updates are working fine when I am using the default key-value store for the statestore. The peer containers and chaincode container are crashing when I am trying to use CouchDB as a statestore. Following is the error message from the peer node ``` panic: assignment to entry in nil map goroutine 427 [running]: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.createCouchdbDocJSON(0xc42195f410, 0x9, 0x0, 0x0, 0xc42195f41c, 0x4, 0x4, 0xc42195f890, 0xc42001e600, 0xc42001e670, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:984 +0x1d8 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).processUpdateBatch(0xc4217bb810, 0xc420197df0, 0xc4201c24c0, 0x1, 0x1, 0xc42195f41c, 0x4) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:669 +0x550 github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates.func1(0xc42184ac50, 0xc42011e890, 0xc4217bb810, 0xc4218c3bc0, 0xc42195f405, 0x5) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:577 +0x8a5 created by github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*VersionedDB).ApplyUpdates /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:509 +0x11d```

JeffreyDeason (Mon, 30 Apr 2018 20:13:25 GMT):
Has joined the channel.

JeffreyDeason (Mon, 30 Apr 2018 20:14:55 GMT):
Has anyone tried to use the AWS Blockchain templates to spin up a Fabric environment? They provide Cloudformation templates, but I can't get it to work (just opened a case with AWS...)

greg2git (Mon, 30 Apr 2018 22:09:51 GMT):
@JeffreyDeason they won't support it unless you buy the support from them, and the templates are not self-service at all

reggiefelias (Tue, 01 May 2018 00:00:26 GMT):
Has joined the channel.

reggiefelias (Tue, 01 May 2018 00:00:34 GMT):
Hi Good day! In one of our peer logs we encounter the following error. 0m error during Chat, stopping handler : rpc error: code = Canceled desc = contexed cancled

reggiefelias (Tue, 01 May 2018 00:01:19 GMT):
So far the application works as is but we are curios about the error. Especially if it is something to worry about

reggiefelias (Tue, 01 May 2018 00:01:41 GMT):
Is there any reference i can check? Thanks

careck (Tue, 01 May 2018 01:03:51 GMT):
Has joined the channel.

MALKANI.KAMAL (Tue, 01 May 2018 02:10:31 GMT):
I have set up the first network on my laptop. Can anyone tell how to connect to from other laptop as peer and perform the transaction. Is there anyway I can control few type of transaction for particular peer.

blackgeneral (Tue, 01 May 2018 02:52:08 GMT):
Hi, how can i start docker which was changed status 'exit(0)'

DmitryPugachev (Tue, 01 May 2018 07:57:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tYMfPxpJtCDMivxcd) Folks! This is not the right place for this type of questions?

DmitryPugachev (Tue, 01 May 2018 07:57:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tYMfPxpJtCDMivxcd) Folks! This is not the right place for this type of questions?

AparnaNairV (Tue, 01 May 2018 07:59:19 GMT):
Has joined the channel.

EricLiuIsHere (Tue, 01 May 2018 08:14:19 GMT):
Has joined the channel.

AparnaNairV (Tue, 01 May 2018 08:15:50 GMT):
Hello, I am new to Fabric. I am currently trying out the exact steps mentioned in the Build Your First Network Section. Peer channel creation failed giving error as "Attempted to include a member which is not in the consortium". I am using the latest version (v1.1.0). I noticed that there was a CR (FAB-4342) which fixed this bug. But though I am using a later version, I am still getting the same error. Your help will be a lot appreciated.

IceFox (Tue, 01 May 2018 10:20:05 GMT):
Hi, is it a must to use docker for deploying fabric network?

achyutasosale (Tue, 01 May 2018 10:20:29 GMT):
Has joined the channel.

DmitryPugachev (Tue, 01 May 2018 10:31:24 GMT):
@IceFox No, but I advise you not to create problems out of nothing. You will face a lot of difficulties anyway.

IceFox (Tue, 01 May 2018 10:32:18 GMT):
Got it, I'm just wondering how the images for each type of nodes are built

DmitryPugachev (Tue, 01 May 2018 10:37:28 GMT):
For example, https://github.com/hyperledger/fabric-ca/blob/release-1.1/images/fabric-ca/Dockerfile.in

papillon88 (Tue, 01 May 2018 10:39:04 GMT):
Has joined the channel.

MisterJava (Tue, 01 May 2018 10:46:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QZhfxee49nh2Ffv8h) @marksta Okay Thank you I Understand. That is, a public blockchain can also be permissioned i guess?

IceFox (Tue, 01 May 2018 11:12:49 GMT):
Hi, if I'm in a local network, how do I specify the domain for the orgs?

IceFox (Tue, 01 May 2018 11:14:01 GMT):
OrdererOrgs: # --------------------------------------------------------------------------- # Orderer # --------------------------------------------------------------------------- - Name: Orderer Domain: example.com

yshurik (Tue, 01 May 2018 12:20:38 GMT):
Has joined the channel.

yshurik (Tue, 01 May 2018 12:20:56 GMT):
Hi, I am just wondering about documentation. There are docs and good examples for the "fabric-samples", running some testnet, but is there some manual about making real net? like all routines how to make all these certs, msp, etc? Any hint how to start?

Matthieu.inBlocks (Tue, 01 May 2018 13:07:28 GMT):
Has left the channel.

Aswath8687 (Tue, 01 May 2018 13:48:39 GMT):
Has joined the channel.

manish-sethi (Tue, 01 May 2018 14:03:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=q4QDMetAR5Ze7QBzv) @ishan.gulhane Did you change the statedb from leveldb to couchdb in the existing network or you are saying the the upgrade simply does not work for you when both before and after upgrade the statedb was configured to be couchdb? If the former is true, I am afraid that this is not supported and tested well as yet. The main problem you may run into is that leveldb allows any random bytes for a key while the couchdb supports only valid utf-8 string as a key. Now, when you start the peer with couchdb as new configuration, it will try to build the state by replaying the write-sets in the existing blocks (which may have data that is incompatible with the couchdb. I suspect this situation because, the panic trace indicates that this line `https://github.com/hyperledger/fabric/blob/release-1.1/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go#L973` sets the map to nil - which is possible only if the `value` at line 971 is "null" However, if you mean the latter situation (upgrading from couchdb in 1.0.6 to couchdb in 1.1), please clarify.

hussein.knight (Tue, 01 May 2018 15:27:36 GMT):
i have this error``` Error: Error getting broadcast client: error connecting to orderer.example.com:7051 due to: context deadline exceeded ```

hussein.knight (Tue, 01 May 2018 15:27:56 GMT):
when i run my query any one know why?

yshurik (Tue, 01 May 2018 15:42:56 GMT):
Hi, I am following the tutorial (https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html), but I can not get the stage "composer network ping --card admin@tutorial-network", it always breaks as Error: Connection is not in the READY state

yshurik (Tue, 01 May 2018 15:43:06 GMT):
Any hint what can be missing?

chrcharles (Tue, 01 May 2018 16:12:38 GMT):
Hello, I have a json object with a empty value, like: { name: 'HOME', firstname: 'John', foo: '', age: 30 } When I want to do channel.sendTransactionProposal() I got a error "Calling chaincode Invoke() returned error response [undefined]. Sending ERROR message back to peer" It is possible to put/send a empty value? Thanks by advance :)

chrcharles (Tue, 01 May 2018 16:12:38 GMT):
Hello, I have a json object with a empty value, like: { name: 'HOME', firstname: 'John', foo: '', age: 30 } When I want to do channel.sendTransactionProposal() I got a error "Calling chaincode Invoke() returned error response [undefined]. Sending ERROR message back to peer" It is possible to put/send a empty value? Thanks by advance :)

umtyzc (Tue, 01 May 2018 17:21:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=q4QDMetAR5Ze7QBzv) @ishan.gulhane refer this http://hyperledger-fabric.readthedocs.io/en/release-1.1/upgrading_your_network_tutorial.html

VietsonNguyen (Tue, 01 May 2018 17:51:15 GMT):
Has joined the channel.

XingqiangMao (Tue, 01 May 2018 18:32:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fs2i4WRvhnZqxCktj) @joe-alewine Oh i see got it! Thank you!

XingqiangMao (Tue, 01 May 2018 18:33:31 GMT):
Hi guys qq. What's difference anchor peers and normal peer?

joe-alewine (Tue, 01 May 2018 18:39:53 GMT):
@XingqiangMao The only thing that's different about an anchor peer is that its address is listed in the bootstrap information of an organization (it's in the channel config, in other words). This allows peers from other organizations to communicate with a peer from the new org, and, through that peer, find out about other peers owned by that organization.

XingqiangMao (Tue, 01 May 2018 18:45:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yejQSJQLGn6N6vQTM) @joe-alewine I see .Thank you!. I am trying to understand the basic hyperledger first network sample.

XingqiangMao (Tue, 01 May 2018 18:46:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YvY8h9qrTcQHqdgpQ) I have one channel include 2 orgs each have 2 peer. When I do docker exec -it cli bash. I create channel and join the peers. Then install chaincode. When I invoke and query the chaincode. Do I point to one peer or it is random?

joe-alewine (Tue, 01 May 2018 18:48:43 GMT):
People get hung up on the concept of an anchor peer, but there's almost less there than meets the eye. It's not a different **type** of peer. It doesn't even know that it's the anchor peer. Its address just happens to be listed in the channel config

joe-alewine (Tue, 01 May 2018 18:56:27 GMT):
@XingqiangMao In our samples you're able to switch orgs and peers (the crypto is all mounted in one place, which permits this -- though obviously this isn't the way it would be in a production network). But by default I think you're in org1 in BYFN and when you query or invoke you'll do it as the admin of org1.peer1 (I could be wrong, though -- it depends on how you installed your chaincode. You should have had to install it on all the peers on a channel and then to have instatiated it on the channel, fulfilling the instantiation policy).

XingqiangMao (Tue, 01 May 2018 18:56:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CtSoDbpQERpv7vfRh) @joe-alewine Thank you for explanation.... Can i say anchors peer is the port peer to connect other org?

XingqiangMao (Tue, 01 May 2018 18:58:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bvprqXxMRow2ayLJ3) @joe-alewine Thank you for reply. When you say switch at same place. Is that means use this piece of code to switch current peer/org in the same container (cli)?.``` ``` setGlobals () { PEER=$1 ORG=$2 if [ $ORG -eq 1 ] ; then CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org1.example.com:7051 else CORE_PEER_ADDRESS=peer1.org1.example.com:7051 fi elif [ $ORG -eq 2 ] ; then CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org2.example.com:7051 else CORE_PEER_ADDRESS=peer1.org2.example.com:7051 fi elif [ $ORG -eq 3 ] ; then CORE_PEER_LOCALMSPID="Org3MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/users/Admin@org3.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org3.example.com:7051 else CORE_PEER_ADDRESS=peer1.org3.example.com:7051 fi else echo "================== ERROR !!! ORG Unknown ==================" fi env |grep CORE }

XingqiangMao (Tue, 01 May 2018 18:58:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bvprqXxMRow2ayLJ3) @joe-alewine Thank you for reply. When you say switch at same place. Is that means use this piece of code to switch current peer/org in the same container (cli)?.``` setGlobals () { PEER=$1 ORG=$2 if [ $ORG -eq 1 ] ; then CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org1.example.com:7051 else CORE_PEER_ADDRESS=peer1.org1.example.com:7051 fi elif [ $ORG -eq 2 ] ; then CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org2.example.com:7051 else CORE_PEER_ADDRESS=peer1.org2.example.com:7051 fi elif [ $ORG -eq 3 ] ; then CORE_PEER_LOCALMSPID="Org3MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/users/Admin@org3.example.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org3.example.com:7051 else CORE_PEER_ADDRESS=peer1.org3.example.com:7051 fi else echo "================== ERROR !!! ORG Unknown ==================" fi env |grep CORE } ```

joe-alewine (Tue, 01 May 2018 19:12:47 GMT):
It means that because of the way the crypto is mounted you can act as the admin of an org and also as the admin of a different org. It's like having multiple passports or something -- not real world, but useful for a sample/test environment. There are a bunch of examples of us doing this in the "Upgrade" doc: http://hyperledger-fabric.readthedocs.io/en/release-1.1/upgrading_your_network_tutorial.html#orderer-system-channel-capabilities

joe-alewine (Tue, 01 May 2018 19:15:13 GMT):
@XingqiangMao I wouldn't call it the "port peer".

joe-alewine (Tue, 01 May 2018 19:15:37 GMT):
I'd call it what it's called, because people get confused enough about it already :slight_smile:

joe-alewine (Tue, 01 May 2018 19:17:34 GMT):
What I would do though is not place too much emphasis on it. It's not unlike the "genesis block", which is just the first config block

joe-alewine (Tue, 01 May 2018 19:17:50 GMT):
Rather than some special magical block

XingqiangMao (Tue, 01 May 2018 19:17:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kt8uAXz4zqaJgtDjy) @joe-alewine Oh yes. Agree just trying to understand why we need the anchor peer

joe-alewine (Tue, 01 May 2018 19:19:24 GMT):
Peers don't talk to orgs other than its own org. How else would the peers from one org find out about the peers from another org unless the name of one peer from each org was listed in the channel config?

joe-alewine (Tue, 01 May 2018 19:19:43 GMT):
That's why we define an anchor peer -- it's the peer that the peers from another org can find

joe-alewine (Tue, 01 May 2018 19:20:00 GMT):
And then from the anchor peer, the peers from that other org can find all of the peers in that org

joe-alewine (Tue, 01 May 2018 19:20:00 GMT):
And then from the anchor peer, the peers from that other org can find all of the peers in anchor peer's org

XingqiangMao (Tue, 01 May 2018 19:24:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y4kXMESMEkDffrAHF) @joe-alewine I see. Anchor peer is the only peer we defined in the configtx.yaml for channel.tx

XingqiangMao (Tue, 01 May 2018 19:28:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SJQbi9qPZmQrBSojR) Thank you so much @joe-alewine! You saved me tons of time.....

XingqiangMao (Tue, 01 May 2018 19:31:19 GMT):
Last question @joe-alewine about the example.... When we are in the cli container for the first-network example. When we do the query and invoke on the chaincode. Do we know which peer and which org are we sending the request? Or Which peer's block chain are we getting?

joe-alewine (Tue, 01 May 2018 19:37:05 GMT):
What you're looking for are your environment variables at any particular time. I'm actually not 100% sure how to find out what they are, but if you backtrack the commands in your terminal you should be able to find them. Look for ``CORE_PEER_ADDRESS`` and ``CORE_PEER_LOCALMSPID``

joe-alewine (Tue, 01 May 2018 19:37:05 GMT):
What you're looking for are your environment variables at any particular time. I'm actually not 100% sure how to find out what they are, but if you backtrack the commands in your terminal you should be able to find them. Look for ```CORE_PEER_ADDRESS``` and ```CORE_PEER_LOCALMSPID```

joe-alewine (Tue, 01 May 2018 19:37:05 GMT):
What you're looking for are your environment variables at any particular time. I'm actually not 100% sure how to find out what they are, but if you backtrack the commands in your terminal you should be able to find them. Look for `CORE_PEER_ADDRESS` and `CORE_PEER_LOCALMSPID`

XingqiangMao (Tue, 01 May 2018 19:52:02 GMT):
Yes @joe-alewine we have ``` CORE_PEER_LOCALMSPID, CORE_PEER_TLS_ROOTCERT_FILE,CORE_PEER_MSPCONFIGPATH,CORE_PEER_ADDRESS ```

XingqiangMao (Tue, 01 May 2018 19:52:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hWNCbthfFMZwYbWgY) Got it thank you very much. Let me get more examples done. Maybe I will get deeper understand after that.

joe-alewine (Tue, 01 May 2018 19:52:53 GMT):
It should say `CORE_PEER_LOCALMSPID=`(something)

joe-alewine (Tue, 01 May 2018 19:53:16 GMT):
Likewise `CORE_PEER_ADDRESS=`(something)

joe-alewine (Tue, 01 May 2018 19:53:57 GMT):
Those are your current environment variables. If you want, you can set them. Look at the "Upgrade" doc link I gave you for an easy look at how (though you should pick a peer, rather than the orderer

joe-alewine (Tue, 01 May 2018 19:54:08 GMT):
And you're welcome :thumbsup:

XingqiangMao (Tue, 01 May 2018 19:54:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AMxzhe3MBXW7nPHRA) @joe-alewine Got it. Will save that. :nerd:

tallharish (Tue, 01 May 2018 20:22:19 GMT):
Has joined the channel.

joe-alewine (Tue, 01 May 2018 20:44:05 GMT):
Like I said -- this bears repeating -- you will not be able to switch identities like this in anything resembling a production environment. The orderer admin(s) will be different from the peer admins, which will be different from other peer admins. We do this in BYFN because it's useful as a development environment (for certain things) and because it's a sample that will help people learn. The underlying code still works the same (it's why you have to *switch* identities rather than simply having one identity that does everything), but the notion of switching to the peer admin to query or invoke is not a real world thing that will happen

joe-alewine (Tue, 01 May 2018 20:44:05 GMT):
@XingqiangMao Like I said -- this bears repeating -- you will not be able to switch identities like this in anything resembling a production environment. The orderer admin(s) will be different from the peer admins, which will be different from other peer admins. We do this in BYFN because it's useful as a development environment (for certain things) and because it's a sample that will help people learn. The underlying code still works the same (it's why you have to *switch* identities rather than simply having one identity that does everything), but the notion of switching to the peer admin to query or invoke is not a real world thing that will happen

acbellini (Tue, 01 May 2018 21:06:54 GMT):
Has joined the channel.

PirangPhan (Wed, 02 May 2018 02:27:35 GMT):
Has joined the channel.

mgcox (Wed, 02 May 2018 03:32:15 GMT):
Has anyone here played around with the new AWS Fabric template support? Just curious?

crigiotina (Wed, 02 May 2018 03:56:42 GMT):
Has joined the channel.

RajuSomala (Wed, 02 May 2018 05:14:42 GMT):
In ethereumn remix(http://remix.ethereum.org) deploy and test smart contract simple ways, Is there anything similar in hyperledger?

nithindj192 (Wed, 02 May 2018 05:15:52 GMT):
While adding a new organization to Fabric network, whether it will be added as admin ORG or member ORG? If added as a member, how to make it as Admin?

Daiki0124 (Wed, 02 May 2018 05:39:59 GMT):
Hi An error occurred in fablic-sample/balancetransfer execute testAPIs.sh after help me [2018-05-02 14:33:46.147] [INFO] Join-Channel - received member object for admin of the organization "org1": [2018-05-02 14:33:46.156] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2018-05-02 14:33:46.191] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-05-02 14:33:46.199] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2018-05-02 14:33:46.207] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-05-02 14:33:46.213] [ERROR] Join-Channel - TypeError: Cannot read property 'getConnectivityState' of undefined at EventHub._checkConnection (/home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:479:38) at EventHub.registerBlockEvent (/home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:658:8) at Promise (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:86:8) at eventhubs.forEach (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:84:20) at Array.forEach (native) at helper.getOrgAdmin.then.then (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:83:13) at process._tickCallback (internal/process/next_tick.js:109:7) [2018-05-02 14:33:46.214] [DEBUG] Join-Channel - !!!!!!!! ERROR: Join Channel FAILED !!!!!!!! [2018-05-02 14:33:46.214] [DEBUG] Join-Channel - (node:12319) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: TypeError: Cannot read property 'getConnectivityState' of undefined at EventHub._checkConnection (/home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:479:38) at EventHub.registerBlockEvent (/home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:658:8) at Promise (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:86:8) at eventhubs.forEach (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:84:20) at Array.forEach (native) at helper.getOrgAdmin.then.then (/home/ubuntu/fabric-samples/balance-transfer/app/join-channel.js:83:13) at process._tickCallback (internal/process/next_tick.js:109:7) /home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:308 if(self._stream) state = self._stream.call.channel_.getConnectivityState(); ^ TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream. (/home/ubuntu/fabric-samples/balance-transfer/node_modules/fabric-client/lib/EventHub.js:308:55) at emitOne (events.js:96:13) at ClientDuplexStream.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at ClientDuplexStream.Readable.push (_stream_readable.js:134:10) at Object.onReceiveMessage (/home/ubuntu/fabric-samples/balance-transfer/node_modules/grpc/src/client_interceptors.js:1302:19) at InterceptingListener.recvMessageWithContext (/home/ubuntu/fabric-samples/balance-transfer/node_modules/grpc/src/client_interceptors.js:629:19) at /home/ubuntu/fabric-samples/balance-transfer/node_modules/grpc/src/client_interceptors.js:728:14

IWAISH (Wed, 02 May 2018 05:49:44 GMT):
I have a question about “anchor peer”, what is the difference between anchor peer and not-anchor peer? Is there any things that anchor peer can do and not-anchor peer can’t do?

nithindj192 (Wed, 02 May 2018 05:55:08 GMT):
@IWAISH As per my knowledge, Anchor peer will be one responsible for gossiping in the channel. Non anchor peers will not be able to that with. Basically anchor peers of the all ORGs communicate with each other. Hope this helps.

nithindj192 (Wed, 02 May 2018 05:55:08 GMT):
@IWAISH As per my knowledge, Anchor peer will be one responsible for gossiping in the channel. Non anchor peers will not be able to that with. Basically anchor peers of the all ORGs communicate with each other. Hope this helps. http://hyperledger-fabric.readthedocs.io/en/release-1.1/glossary.html?highlight=Anchor%20peer for more reference.

IWAISH (Wed, 02 May 2018 06:20:33 GMT):
@nithindj192 Thank you for your quick response, and I have another question.Given that there are 2 channels(channel A,B) and 2 peers(peer0,1) within 1 org, does following situation happen? ・on channel A, anchor peer is peer0, and on channel B, anchor peer is peer1

nithindj192 (Wed, 02 May 2018 06:29:57 GMT):
@IWAISH I don't think it is possible.

nithindj192 (Wed, 02 May 2018 06:29:57 GMT):
@IWAISH I don't think that is possible.

IWAISH (Wed, 02 May 2018 06:32:06 GMT):
@nithindj192 OK, I got it. Thanks a lot!

chrcharles (Wed, 02 May 2018 06:54:51 GMT):
Hello, I have a json object with a empty value, like: { name: 'HOME', firstname: 'John', foo: '', age: 30 } When I want to do channel.sendTransactionProposal() I got a error "Calling chaincode Invoke() returned error response [undefined]. Sending ERROR message back to peer" It is possible to put/send a empty value? Thanks by advance :)

Sedmar (Wed, 02 May 2018 07:23:45 GMT):
Has joined the channel.

SaraEmily (Wed, 02 May 2018 07:58:04 GMT):
Hey everyone! I have a network which is basically BYFN which I have modified to have a variable number of peers and organisations and chaincode which is almost like Fabcar, e.g. json-objects are stored on the blockchain. When I test my code by modifying the same json-object two (or more) times in a row they seems to cancel out one another but if I have a short sleep (for example for 5 seconds) both of the modifications can be seen when I query the ledger. Is this expected blockchain behaviour or am I doing something wrong here? Please feel free to re-direct me to any helpful documentation or answer here if you can. Thanks!

MonnyClara (Wed, 02 May 2018 08:04:00 GMT):
@SaraEmily Do you mean that the system takes a short (5s) latency time to update the state of an object ? If yes, this is an expected behavior :)

JayJong (Wed, 02 May 2018 08:08:46 GMT):
from my understanding of the endorsement process in fabric, it checks 1. if txn is well-formed 2. not submitted before 3. valid sig by client 4. Ensures submitter satisfies the channel’s Writer’s policy But it doesnt check if the value inside the txn is legit or not, am i right? so if a hacker manages to access a client's com, a malicious txn can be invoked into the ledger, am i right in saying this? I was thinking maybe the endorsing peers will know the legit txns beforehand so they can endorse the txn, makes sense?

Yakechi (Wed, 02 May 2018 08:52:40 GMT):
Hi everyone,

Yakechi (Wed, 02 May 2018 08:52:46 GMT):
i was wondering if there is a maximum range size for the GetStateByRange request

Yakechi (Wed, 02 May 2018 08:52:54 GMT):
Thanks

ChanderGovindarajan (Wed, 02 May 2018 08:55:21 GMT):
Has joined the channel.

ChanderGovindarajan (Wed, 02 May 2018 09:12:27 GMT):
@JayJong Not exactly. The txn is basically a chaincode invoke, so some function identifier and arguments. The endorsers run the chaincode independently and come up with the actual writeset that will be finally used to update the ledger. Even here, according to the endorsement policy, multiple endorsers need to come up with the same writeset for the input.

SaraEmily (Wed, 02 May 2018 09:19:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7B2exExxfbLipuxj7) @MonnyClara Okay thanks, I guess this latency scales with the number of peers aswell?

MonnyClara (Wed, 02 May 2018 09:23:34 GMT):
@SaraEmily I never looked how this latency scales, but logicly it should You can check this : https://arxiv.org/pdf/1801.10228.pdf or https://www.hyperledger.org/blog/2018/03/19/measuring-blockchain-performance-with-hyperledger-caliper

SaraEmily (Wed, 02 May 2018 09:26:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a9gQbaTDrdehuRqbN) @MonnyClara Thank you so much for the links :D

VadimInshakov (Wed, 02 May 2018 10:14:32 GMT):
Please, help me figure it out. Why do I get this error when I start the network with the Kafka/zk? orderer log: https://imgur.com/a/5gelkYG peer log: https://imgur.com/a/Lv6Tmvu Command I used for starting network: ```docker-compose -f docker-compose-couch.yaml -f docker-compose-kafka.yaml up -d``` Sources: https://bitbucket.org/userVI/workchain/src/master/

VadimInshakov (Wed, 02 May 2018 10:14:32 GMT):
Please, help me figure it out. Why do I get this error when I start the network with the Kafka/zk? orderer log: https://imgur.com/a/5gelkYG peer log: https://imgur.com/a/Lv6Tmvu Command I used for starting network: ```docker-compose -f docker-compose-couch.yaml -f docker-compose-kafka.yaml up -d``` Sources: https://bitbucket.org/userVI/workchain/src/master/

sujithmarlabs (Wed, 02 May 2018 10:30:20 GMT):
Has joined the channel.

chaincoder55 (Wed, 02 May 2018 11:30:20 GMT):
Has joined the channel.

chaincoder55 (Wed, 02 May 2018 11:30:27 GMT):
hi I am using fabric 1.0.6 and using couchdb as state database, I wrote my chaincode and deployed it and everything is running fine, but when I tried to run Rich query I am unable to setup indexing and I am getting the following error Couch DB Error:no_usable_index, Status Code:400, Reason:There is no index available for this selector.

papegaaij (Wed, 02 May 2018 11:31:03 GMT):
Has joined the channel.

papegaaij (Wed, 02 May 2018 11:33:15 GMT):
hi, is it a bug that `peer chaincode package` packages all files in the package twice? ```tar tvf cc.tar -rw-r--r-- 500/500 11333843 1970-01-01 01:00 src/tmp/cc/build/chaincode.jar -rw-r--r-- 500/500 0 1970-01-01 01:00 src/tmp/cc/build/libs/keep -rw-r--r-- 500/500 385 1970-01-01 01:00 src/tmp/cc/pom.xml -rw-r--r-- 500/500 11333843 1970-01-01 01:00 src/build/chaincode.jar -rw-r--r-- 500/500 0 1970-01-01 01:00 src/build/libs/keep -rw-r--r-- 500/500 385 1970-01-01 01:00 src/pom.xml```

papegaaij (Wed, 02 May 2018 11:34:30 GMT):
cc.tar is extracted from the generated `SignedCDS`, which was generated with the following command: `peer chaincode package -n keyhub -p /tmp/cc -v 1.0 -l java -s -S -i "AND('instance.admin')" keyhubcc.out`

papegaaij (Wed, 02 May 2018 11:35:42 GMT):
in noticed because the generated `keyhubcc.out` was twice as big as the jar it contains

papegaaij (Wed, 02 May 2018 11:35:42 GMT):
i noticed because the generated `keyhubcc.out` was twice as big as the jar it contains

hussein.knight (Wed, 02 May 2018 12:11:36 GMT):
hello all plz need help, i am using marbles chaincode example, have 2 peers (1 org), 1st machine(ubuntu): peer0 ,orderer, ca-server,couchdb0 2nd machine(ubuntu)peer1,couchdb1,cli 1st question: i am using one org, how to set the endor policy in -P. 2nd question: why it give me this error when i instantiate the chaincode. ```peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n marbles -v 1.0 -c '{"Args":["init"]}' -P "OR ('Org0MSP.member','Org1MSP.member')" `````` ``` Error: Error endorsing chaincode: rpc error: code = Unknown desc = transaction returned with failure: Incorrect number of arguments. Expecting 4 ```

wenjian (Wed, 02 May 2018 12:43:28 GMT):
Has joined the channel.

geourjoa (Wed, 02 May 2018 12:47:59 GMT):
Hi everyone, is it possible to generate a REST API from a fabric network ?

MonnyClara (Wed, 02 May 2018 12:51:01 GMT):
@geourjoa You are maybe looking for https://hyperledger.github.io/composer/latest/integrating/getting-started-rest-api

geourjoa (Wed, 02 May 2018 12:55:55 GMT):
No, I want generate with a fabric network not with composer.

rshaw (Wed, 02 May 2018 13:17:49 GMT):
Has joined the channel.

RASHMI11 (Wed, 02 May 2018 13:54:41 GMT):
Has joined the channel.

jeffgarratt (Wed, 02 May 2018 14:19:47 GMT):
@hussein.knight you need to provide a few more args to your init call. See https://github.com/hyperledger/fabric/blob/master/examples/chaincode/go/marbles02/marbles_chaincode.go#L174-L181

hussein.knight (Wed, 02 May 2018 14:21:13 GMT):
@jeffgarratt thnx i solve the first problem but now another one when i query the chaincode give me this error``` cannot retrieve package for chaincode marbles/1.0, error open /var/hyperledger/production/chaincodes/marbles.1.0 ```

jeffgarratt (Wed, 02 May 2018 14:28:38 GMT):
@hussein.knight are you sure it is installed on the peer you are trying to query?

hussein.knight (Wed, 02 May 2018 14:44:58 GMT):
@jeffgarratt thnx man i rewrite every step and its work

annumberhocker (Wed, 02 May 2018 15:55:22 GMT):
Has joined the channel.

marksta (Wed, 02 May 2018 15:55:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eN3fr72wRygjYB5PX) @MisterJava There might be one, you could also set it up semi-private, e.g. everyone can read but only those with proper permissions can write.

sjanakir (Wed, 02 May 2018 15:56:52 GMT):
Has joined the channel.

XingqiangMao (Wed, 02 May 2018 15:59:02 GMT):
Hi Everyone, stupid question here. I use couchDB parameter to start first network. When I try to invoke the chaincode (chaincode_example02), it never goes in to the couchdb. The db never changed.

XingqiangMao (Wed, 02 May 2018 16:00:11 GMT):
Do missed anything in the chaincode? I think docker use docker-compose-couchdb.yaml to start the peers.

ceebo (Wed, 02 May 2018 16:44:59 GMT):
Hey is there a way to connect chrome nodejs debugger on instantiated chaincode?

jrosmith (Wed, 02 May 2018 17:03:43 GMT):
@ceebo which node version are you using?

jrosmith (Wed, 02 May 2018 17:04:08 GMT):
oh to instantiated chaincode...not sure, also not sure if that is something you'd want to do. try asking #fabric-chaincode-dev

ceebo (Wed, 02 May 2018 17:32:58 GMT):
@jrosmith Thanks for information. I wil stick to console.log for debugging.

nacord (Wed, 02 May 2018 20:04:33 GMT):
Has joined the channel.

nacord (Wed, 02 May 2018 20:04:44 GMT):
Any help with this error? Failed to invoke successfully :: TypeError: Cannot read property 'getConnectivityState' of undefined C:\Users\acalderon\fabric-samples\fabcar\node_modules\fabric-client\lib\EventHub.js:312 if(self._stream) state = self._stream.call.channel_.getConnectivityState();

mike157 (Wed, 02 May 2018 20:36:47 GMT):
Hi! I seem to get the following error when instantiating my chaincode: Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode test :1.0(networkid:dev,peerid:peer0.su.uni.com,tx:7f2dc57b029ebd5a729df93bc053f992b242a60ee0be1d04e0e699f0cae79673) I have read multiple threads online and most of them say you must make sure your volume mapping is correct or that you should raise your timeout. I currently have a timeout limit of 5 minutes. I cant see a chain code container getting created and the error in my peer logs is: launchAndWaitForRegister failed: timeout expired while starting chaincode test

mike157 (Wed, 02 May 2018 20:37:15 GMT):
None of the suggested solutions online seem to resolve my issue

carlcraig (Wed, 02 May 2018 20:44:11 GMT):
Has joined the channel.

ikinique (Wed, 02 May 2018 21:32:41 GMT):
Hi everyone 0 down vote favorite Have anyone tested the maximum connected peers that fabric can handle ? I am considering setting up fabric with 12 -15 organizations on a cloud environment

XingqiangMao (Wed, 02 May 2018 21:36:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B8M8LnQNytKk7fsrK) @joe-alewine Got it thx. Is there any production setup sample in the fabric-samples?

christian3042 (Wed, 02 May 2018 21:52:55 GMT):
Has joined the channel.

Tmeister (Thu, 03 May 2018 00:30:29 GMT):
Has joined the channel.

Sip 7 (Thu, 03 May 2018 00:31:01 GMT):
Has joined the channel.

forestjiang (Thu, 03 May 2018 01:36:33 GMT):
Has joined the channel.

forestjiang (Thu, 03 May 2018 01:38:18 GMT):
Hi ! When I deploy the vehicle-manufacture sample code to IBM blockchain, faced following issues TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream. (/home/pipeline/.nvm/versions/node/v8.11.1/lib/node_modules/composer-cli/node_modules/fabric-client/lib/EventHub.js:308:56) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) at Object.onReceiveMessage (/home/pipeline/.nvm/versions/node/v8.11.1/lib/node_modules/composer-cli/node_modules/grpc/src/client_interceptors.js:1302:19) at InterceptingListener.recvMessageWithContext (/home/pipeline/.nvm/versions/node/v8.11.1/lib/node_modules/composer-cli/node_modules/grpc/src/client_interceptors.js:629:19) at /home/pipeline/.nvm/versions/node/v8.11.1/lib/node_modules/composer-cli/node_modules/grpc/src/client_interceptors.js:728:14

forestjiang (Thu, 03 May 2018 01:38:29 GMT):
any help on this ?

kevin-s-wang (Thu, 03 May 2018 02:38:33 GMT):
Has joined the channel.

anjalinaik (Thu, 03 May 2018 04:44:50 GMT):
Has joined the channel.

anjalinaik (Thu, 03 May 2018 04:45:18 GMT):
@forestjiang I am facing the same issue.

anjalinaik (Thu, 03 May 2018 04:46:12 GMT):
Any help on this error is appreciated. https://stackoverflow.com/questions/50134379/error-invoking-chaincode-using-node-js-sdk-typeerror-cannot-read-property-get

hungpq14 (Thu, 03 May 2018 04:54:28 GMT):
Has joined the channel.

petko (Thu, 03 May 2018 06:19:45 GMT):
Has joined the channel.

JackStrohm (Thu, 03 May 2018 06:35:12 GMT):
Correct me if I'm wrong, but it seems when chain code executes on a peer, it executes one transaction after another, serially. Having more than a few cores available on a peer won't have any increase in performance. It also seems adding Peers will not increase performance either (most likely it will slow things down). If I want to increase performance of a Hyperledger Fabric deployment, are there best practices for scaling?

yulong12 (Thu, 03 May 2018 06:35:38 GMT):
Has joined the channel.

VadimInshakov (Thu, 03 May 2018 06:49:28 GMT):
Please, answer this question: https://stackoverflow.com/questions/50132899/hyperledger-fabric-with-kafka-failed-to-connect-to-broker-and-other-errors

booloose (Thu, 03 May 2018 07:08:13 GMT):
Has joined the channel.

yulong12 (Thu, 03 May 2018 07:21:41 GMT):
has who a problem like this: TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream. (/Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/Demo/public/node_modules/fabric-client/lib/EventHub.js:308:56) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) at Object.onReceiveMessage (/Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/Demo/public/node_modules/grpc/src/client_interceptors.js:1302:19) at InterceptingListener.recvMessageWithContext (/Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/Demo/public/node_modules/grpc/src/client_interceptors.js:629:19) at /Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/Demo/public/node_modules/grpc/src/client_interceptors.js:728:14

hussein.knight (Thu, 03 May 2018 07:36:45 GMT):
hello all need some help, i write my fabric newtork and install chaincode and i instantiate the chaincode(i use marble example but i will use later my own chaincode) so now i want to interact with the blockchain from the client(user) and query his information how can i do that? i want to write mobile app to do this but i need help to start.

memphisw (Thu, 03 May 2018 08:04:56 GMT):
- Does any one change the chaincode endorse policy of BYFN demo from "OR" to "AND" ? It failed. - Does any one omit updating chaincode endorse policy after reinstall it of BYFN demo? It failed too. from above it seems peers did't ask for endorsement from endorsor, they just endorse for themselves and commit it to orderer for entering the blockchain? It's so wired, and easy to reproduce. any one knows something about that ? please @ me

memphisw (Thu, 03 May 2018 08:08:21 GMT):
@hussein.knight you need a server to handle fabric, just let your mobile app contact with your server, and treat server as a proxy of your mobile app

memphisw (Thu, 03 May 2018 08:10:08 GMT):
unless you compile fabric for your device, and fabric are depending on docker for now though

hussein.knight (Thu, 03 May 2018 08:11:54 GMT):
do you mean RESTful API Server for Hyperledger Fabric With NodeJS SDK? if you have any example or website or anything to learn

psymatix (Thu, 03 May 2018 08:50:02 GMT):
Has joined the channel.

psymatix (Thu, 03 May 2018 08:51:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m662g3Ra8zvWrJhc6) @yulong12 Yes, this is due to a new version of grpc released 3 days ago (v1.11.0). The version is controlled by fabric-client and it takes the latest available. You need to delete the grpc module and reinstall it with `npm install grpc@1.9.1`. This will fix the issue. Going forward you may need to have grpc fixed at 1.9.1 in your package.json until Hyperledger resolve this issue.

bourbonkidQ (Thu, 03 May 2018 09:17:09 GMT):
Hi all, When you create the genesis block with configtxgen do we need public certificate and private key of members of the channel ? or just public certificate ?

memphisw (Thu, 03 May 2018 09:17:40 GMT):
@psymatix can you try that? just modify policy in ./fabric-samples/first-network/scripts/utils.sh from (-P "OR) to (-P "AND), the ./byfn up demo is failed.

memphisw (Thu, 03 May 2018 09:19:45 GMT):
It's the official demo. does it containing endorsement? of just fake it

papegaaij (Thu, 03 May 2018 09:30:02 GMT):
i'm trying to package my chaincode with a custom instantiation policy, but at instantation it fails with `Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: instantiation policy violation: signature set did not satisfy policy)`, how do i debug this?

memphisw (Thu, 03 May 2018 09:30:57 GMT):
https://jira.hyperledger.org/browse/FAB-4693 I found this issue similar to this situation, and it's been created years ago, and still Unresolved. Isn't it a Fatal Error of fabric?

kavyamk (Thu, 03 May 2018 09:34:43 GMT):
Hii all,

papegaaij (Thu, 03 May 2018 09:35:02 GMT):
it seems that the endorsement in the chaincode package is not used at all in validation of the instantiation policy

kavyamk (Thu, 03 May 2018 09:35:30 GMT):
Is there any password concept for registering and enrolling users to an organization?

papegaaij (Thu, 03 May 2018 09:35:44 GMT):
the instantiation itself is signed by the admin performing `peer chaincode instantiate`

memphisw (Thu, 03 May 2018 09:42:38 GMT):
@papegaaij yes it has a little use, it reject my invoke from org2 when endorse policy needs org1 and org2, coz we can't get endorse from org1. and this should be encapsulated by fabric and apparently it has not in BYFN demo.

papegaaij (Thu, 03 May 2018 09:43:42 GMT):
but what's the use of signing chaincode packages anyway? there seems to be no way of reading the signatures at all

memphisw (Thu, 03 May 2018 09:48:44 GMT):
I have no idea about that, still confused with the -P

memphisw (Thu, 03 May 2018 09:48:58 GMT):
option of peer chaincode instantiate

papegaaij (Thu, 03 May 2018 09:52:45 GMT):
i think the problem lies in the cli in your case

papegaaij (Thu, 03 May 2018 09:52:58 GMT):
i see no way to submit a transaction proposal to multiple peers

papegaaij (Thu, 03 May 2018 09:53:36 GMT):
that would make it impossible to satisfy a endorsement policy which requires more than 1 signature

papegaaij (Thu, 03 May 2018 09:54:15 GMT):
this is possible with the sdk though

memphisw (Thu, 03 May 2018 09:58:48 GMT):
node sdk does not encapsulate the endorsement collecting operation either, sdk invoke from org2 got rejected too due to missing of signature.

memphisw (Thu, 03 May 2018 10:00:34 GMT):
T^T I just want to know how to get endorsement from other orgs required by chaincode policy, isn't it running transparently to me? do i need to handle it myself?

memphisw (Thu, 03 May 2018 10:08:01 GMT):
https://stackoverflow.com/questions/46052136/how-to-change-endorsement-policies I got this answer make my question clear, but still can not get solution. maybe sdk can solve this problem any i'm not seeing it. I'll keep digging. @papegaaij Thanks man, any information please @ me

gut (Thu, 03 May 2018 10:22:21 GMT):
Hi! Maybe this is not a new question, sorry for that. Can someone tell me what is the current state for consensus? Is already released SBFT

gravity (Thu, 03 May 2018 10:27:43 GMT):
Hi there Could someone explain, how to run a basic network with fabric ca and no peers predefined? can I start a CA, then start a network without predefined peers, enroll users and add peers and orderers to a network?

gut (Thu, 03 May 2018 10:36:39 GMT):
Hi! Maybe this is not a new question, sorry for that. Can someone tell me what is the current state for consensus? Is already released any BFT system in v1.1 or are we still with a "conensus-less / just ordering service" system?

schtho (Thu, 03 May 2018 10:37:08 GMT):
Has joined the channel.

joaofguerreiro (Thu, 03 May 2018 11:09:26 GMT):
Hi is anyone getting this error when pinging a network card? ```/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/fabric-client/lib/ChannelEventHub.js:666 throw error; ^ Error: Connection is not in the READY state at ChannelEventHub._checkConnection (/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/fabric-client/lib/ChannelEventHub.js:664:17) at ChannelEventHub.registerChaincodeEvent (/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/fabric-client/lib/ChannelEventHub.js:825:8) at HLFConnection._registerForChaincodeEvents (/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:279:44) at HLFConnection._checkCCListener (/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:256:22) at Timeout.ccListenerHandle.setTimeout [as _onTimeout] (/home/ubuntu/.npm-global/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:381:35) at ontimeout (timers.js:482:11) at tryOnTimeout (timers.js:317:5) at Timer.listOnTimeout (timers.js:277:5)```

acbellini (Thu, 03 May 2018 11:22:10 GMT):
Has left the channel.

VadimInshakov (Thu, 03 May 2018 11:24:52 GMT):
Please, help me figure it out. Why do I get this error when I start the network with the Kafka/zk? orderer log: https://imgur.com/a/5gelkYG peer log: https://imgur.com/a/Lv6Tmvu Command I used for starting network: ```docker-compose -f docker-compose-couch.yaml -f docker-compose-kafka.yaml up -d``` Sources: https://bitbucket.org/userVI/workchain/src/master/

RohitYadav2 (Thu, 03 May 2018 12:16:30 GMT):
Guys can anyone Please help me to understand how Two peers at different location get connected in the network and For get connected what setup they need to do

RohitYadav2 (Thu, 03 May 2018 12:16:30 GMT):
Guys can anyone Please help me to understand how Two peers at different location get connected in the network and For get connected what setup they need to do Like A is in India B is in USA C in si Russia So What they need to do for form a network between each other in a hyperledger Fabric

acombeau (Thu, 03 May 2018 13:34:17 GMT):
Hi all,

acombeau (Thu, 03 May 2018 13:35:12 GMT):
I want to deal with the read/write access on a peer. Can on of you help me to find the config file I have to update?

acombeau (Thu, 03 May 2018 13:35:39 GMT):
I was reading all the page but I 'm sure I missed something

jrosmith (Thu, 03 May 2018 13:38:11 GMT):
@gut last i heard about pbft it was planned for 1.2, though that may have changed. check the proposed changes in https://wiki.hyperledger.org/

lifome (Thu, 03 May 2018 13:43:12 GMT):
Has joined the channel.

nacord (Thu, 03 May 2018 13:43:39 GMT):

package-lock grpc 1.9.1

nacord (Thu, 03 May 2018 13:43:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qoEzWkMx79Cxo5egg) @psymatix even after rolling back to 1.9.1 I still get an issue when running `invoke.js` during the writing your first application demo. This is my package-lock.json for fabric-client

nacord (Thu, 03 May 2018 13:45:29 GMT):
this is the result from docker toolbox ..

nacord (Thu, 03 May 2018 13:45:36 GMT):

invoke.js

nacord (Thu, 03 May 2018 13:53:08 GMT):
is there an associated jira item for this?

alejandrovelez7 (Thu, 03 May 2018 13:54:35 GMT):
Has joined the channel.

joe-alewine (Thu, 03 May 2018 13:58:00 GMT):
@XingqiangMao There's no production e2e sample in fabric-samples, no. Nor would I expect there to be one, since without the ability to control multiple peers, a single person wouldn't really be able to use such a network. You can use Hyperledger Cello to set up a production style network, however, using a cloud service.

alejandrovelez7 (Thu, 03 May 2018 14:08:39 GMT):

invoke js log

alejandrovelez7 (Thu, 03 May 2018 14:08:44 GMT):
to build on @nacord's issue here's the log for `invoke.js` with debug on ...

alejandrovelez7 (Thu, 03 May 2018 14:08:44 GMT):
to build on @nacord's issue here's the log for `invoke.js` with debug kind of on, I just replaced the debug statements with console logs haha let me know if there's a way to enable the logger

XingqiangMao (Thu, 03 May 2018 14:11:10 GMT):
@joe-alewine Got it. Thank you🙂

joe-alewine (Thu, 03 May 2018 14:28:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=VanutQACaimWbJfWj0) @XingqiangMao :thumbsup:

stermi (Thu, 03 May 2018 14:56:26 GMT):
Has joined the channel.

gravity (Thu, 03 May 2018 15:21:23 GMT):
are there any examples how to create a new org and channel via java sdk?

XingqiangMao (Thu, 03 May 2018 16:03:23 GMT):
There are some example in the sdk codebase test part.

XingqiangMao (Thu, 03 May 2018 16:14:40 GMT):
If I create a channel and joined peerA on the computer A. When I want to join peerB on computer B to the channel. Which address should I go to?

XingqiangMao (Thu, 03 May 2018 16:15:05 GMT):
Or should I physically give out the configtx?

migrenaa (Thu, 03 May 2018 16:28:23 GMT):
Has joined the channel.

ikinique (Thu, 03 May 2018 17:06:31 GMT):
One more time

ikinique (Thu, 03 May 2018 17:06:31 GMT):
One more time Hi Everyone I am considering setting up fabric with 12 -15 organizations on a cloud environment.....Has anyone tested the maximum connected peers that fabric can handle ?

jrosmith (Thu, 03 May 2018 17:44:49 GMT):
@ikinique to my knowledge fabric does not have a limit on connected peers, they all join the channel and gossip with each other

jrosmith (Thu, 03 May 2018 17:45:18 GMT):
@gravity try asking #fabric-sdk-java

mike157 (Thu, 03 May 2018 19:07:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zbdrSdb6MkgkmgoeX) for those that want to know. What seemed to be the issue of timeouts is that the chaincode container image was still active. I ran the following command docker images -q | xargs docker rmi -f which removes all container images. If you run you script now you should see it finish after about a minute. (node takes longer than Go)

Marc.K (Thu, 03 May 2018 20:28:16 GMT):
Has joined the channel.

Marc.K (Thu, 03 May 2018 20:32:47 GMT):
Hey Guys I'm fairly new to fabric with ~3 weeks of reading/setting up some examples to figure things out. Now I am wondering what the best practice for the following use case would be: I have Vendors and Purchasers where there can be placed orders between two parties. Now how do I implement information hiding, so only the two parties involved can read the data. Do I use separate channels (which would lead to a lot of channels) or do I use encryption (one encrypts his order with a public key of the other)? Or is there another concept I missed?

ikinique (Thu, 03 May 2018 20:47:06 GMT):
I have set up a 3 org fabric in dev mode on my own machine. Has anyone set up working fabric with more than 5 orgs, but with all nodes based in a cloud environment, like bluemix or AWS? Any advice before I do the same?

jrosmith (Thu, 03 May 2018 20:54:39 GMT):
@Marc.K 1.1 has the experimental side-db feature, which i believe will be released fully in 1.2. take a look at the JIRA here: https://jira.hyperledger.org/browse/FAB-1151

jrosmith (Thu, 03 May 2018 20:55:31 GMT):
the JIRA for the 1.2 release is here: https://jira.hyperledger.org/browse/FAB-8718

Marc.K (Thu, 03 May 2018 21:12:01 GMT):
@jrosmith thank you, that looks promising. So for 1.1, would the overhead of creating a channel for each pair of participants be too much and I would be better off by using encryption until 1.2?

Taffies (Fri, 04 May 2018 01:51:47 GMT):
hi! does rich query provide functionality for "limit" in v1.1.0? i'm trying to implement but looks like it has no effect

lclclc (Fri, 04 May 2018 03:42:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gG27f93MRXTZCf58y) @jrosmith I have noticed side-db feature when I read the news of 1.1 release, but I don't see details then (maybe I am careless then). Now I had searched for several times founding no clue about how it improve privacy. Could you point me some sources about how to use it?

atiffarrukh (Fri, 04 May 2018 04:31:09 GMT):
hi, after upgrading my chaincode by changing its version number, i am not able read the previous data entered by the precious version. Is there a way to solve this problem?

lclclc (Fri, 04 May 2018 05:01:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6cL7GQ8g6nFzsdjd3) @atiffarrukh The old solution I know is to set up persist chaincode and a business chaincode. If you only upgrade your business chaincode, you can always use persist chaincode to migrate/populate data that previous version chaincode use. I don't know if there is a better solution now.

akifbatur (Fri, 04 May 2018 08:17:26 GMT):
Has joined the channel.

dainliff (Fri, 04 May 2018 08:26:51 GMT):
Hello I was wondering whether it was possible to set the instantiation-policy of a chaincode when installing from the node sdk

nithindj192 (Fri, 04 May 2018 09:20:56 GMT):
Is there any way to add a new organization to fabric network using node sdk?

acombeau (Fri, 04 May 2018 10:03:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yGc5QeqCopmfZ5iLi) @nithindj192 Take a look in the balance transfers sample

acombeau (Fri, 04 May 2018 10:06:05 GMT):
Anyone now ow is it possible to modify the READ/WRITE access to a peer ? I saw that there are two possibility one on the Chaincode, the other one on the config file. can anyone help me to find the right file?

acombeau (Fri, 04 May 2018 10:06:22 GMT):
Is there a link with this ? :

acombeau (Fri, 04 May 2018 10:06:39 GMT):
`You can also see that the endorsement policy has been modified to -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')". `

nithindj192 (Fri, 04 May 2018 10:09:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sbLZwhi5sRRBo8hCj) @acombeau Thanks.

narasimhapoluparthi (Fri, 04 May 2018 10:47:20 GMT):
Has joined the channel.

narasimhapoluparthi (Fri, 04 May 2018 10:47:26 GMT):
Server running on port: 3000 Failed to configure event hubs. Error Cannot read property 'getConnectivityState' of undefined (node:22) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'getConnectivityState' of undefined /app/node_modules/fabric-client/lib/EventHub.js:308 if(self._stream) state = self._stream.call.channel_.getConnectivityState(); ^ TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream. (/app/node_modules/fabric-client/lib/EventHub.js:308:55) at emitOne (events.js:96:13) at ClientDuplexStream.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at ClientDuplexStream.Readable.push (_stream_readable.js:134:10) at Object.onReceiveMessage (/app/node_modules/grpc/src/client_interceptors.js:1302:19) at InterceptingListener.recvMessageWithContext (/app/node_modules/grpc/src/client_interceptors.js:629:19) at /app/node_modules/grpc/src/client_interceptors.js:728:14 npm info lifecycle blockchain-for-insurance@2.1.0~serve: Failed to exec serve script npm ERR! Linux 4.9.87-linuxkit-aufs npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! blockchain-for-insurance@2.1.0 serve: `cross-env NODE_ENV=production node ./bin/server` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the blockchain-for-insurance@2.1.0 serve script 'cross-env NODE_ENV=production node ./bin/server'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the blockchain-for-insurance package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=production node ./bin/server npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs blockchain-for-insurance npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls blockchain-for-insurance npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /app/npm-debug.log

chrim5 (Fri, 04 May 2018 11:21:38 GMT):
Has joined the channel.

Veda2Vratha (Fri, 04 May 2018 11:47:30 GMT):
Has joined the channel.

Veda2Vratha (Fri, 04 May 2018 11:48:16 GMT):
veda@Veda MINGW64 /D/Hyperledger/fabric-samples/fabcar ((v1.1.0)) $ npm install > dtrace-provider@0.8.6 install D:\Hyperledger\fabric-samples\fabcar\node_modules\dtrace-provider > node-gyp rebuild || node suppress-error.js D:\Hyperledger\fabric-samples\fabcar\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modules\npm-lifecycle\node-gyp- bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\veda.CAPTIVATESOFT.000\n ew_directory_name\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch . > pkcs11js@1.0.15 install D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js > node-gyp rebuild D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Us ers\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\.. \..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\veda.CAPTIVATESOFT.000\new_dire ctory_name\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch . CL : fatal error C1510: Cannot load language resource clui.dll. [D:\Hyperledger\fabric-samples\fabcar\node _modules\pkcs11js\build\pkcs11.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules \npm\node_modules\node-gyp\lib\build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\veda.CAPTIVATESOFT.000\\new_directory_n ame\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.15 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\veda.CAPTIVATESOFT.000\AppData\Roaming\npm-cache\_logs\2018-05-04T11_35_29_598Z-debu g.log veda@Veda MINGW64 /D/Hyperledger/fabric-samples/fabcar ((v1.1.0))

nithindj192 (Fri, 04 May 2018 11:54:17 GMT):
@Veda2Vratha If your using Windows machine, follow the windows extra steps at prerequisites here.http://hyperledger-fabric.readthedocs.io/en/release-1.1/prereqs.html#windows-extras. If already done so, try reinstalling.

nithindj192 (Fri, 04 May 2018 11:54:17 GMT):
@Veda2Vratha If your using Windows machine, follow the windows extra steps at prerequisites here.http://hyperledger-fabric.readthedocs.io/en/release-1.1/prereqs.html#windows-extras. If already done so, try reinstalling. Seems like issue with windows build tool.

Veda2Vratha (Fri, 04 May 2018 12:00:48 GMT):
Thanks for reply @nithindj192. yah done evrything, but same issue?

Veda2Vratha (Fri, 04 May 2018 12:03:01 GMT):
now got below issue

Veda2Vratha (Fri, 04 May 2018 12:03:03 GMT):
$ ./startFabric.sh # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down Stopping orderer.example.com ... done Stopping ca.example.com ... done Stopping couchdb ... done Removing orderer.example.com ... done Removing ca.example.com ... done Removing couchdb ... done Removing network net_basic docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Creating orderer.example.com ... done Creating couchdb ... done Creating ca.example.com ... done Creating peer0.org1.example.com ... error ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' Encountered errors while bringing up the project.

geourjoa (Fri, 04 May 2018 12:17:31 GMT):
Hi everyone. I'm looking the firstnetwork sample of fabric. I don't understand why the anchor are updated in the script.sh file. It's just to demonstrate a possibility or it's really necessary for the good working of fabric ?

ganeshraut (Fri, 04 May 2018 12:19:09 GMT):
any one have hyperledger fabric consensus algorithm

nithindj192 (Fri, 04 May 2018 12:37:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fDvX5FgkkZHzFkLb7) @Veda2Vratha Add a .env file where the script placed and add Add env variabel COMPOSE_CONVERT_WINDOWS_PATHS=1 in .env file. And then run again.

nithindj192 (Fri, 04 May 2018 12:37:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fDvX5FgkkZHzFkLb7) @Veda2Vratha Add a .env file where the script placed and add env variabel COMPOSE_CONVERT_WINDOWS_PATHS=1 in .env file. And then run again.

Sai0013 (Fri, 04 May 2018 13:35:39 GMT):
Has joined the channel.

ScottMoynes (Fri, 04 May 2018 14:19:48 GMT):
Has joined the channel.

ScottMoynes (Fri, 04 May 2018 14:22:40 GMT):
The HLF FAQ mentions: > Q. How do I ensure data privacy? > A. ... Second, within a channel you can restrict the input data to chaincode to the set of endorsers > only, by using visibility settings. The visibility setting will determine whether input and output > chaincode data is included in the submitted transaction, versus just output data. ... I haven't been able to find any other details about transaction visibility, ie. how to set the visibility to private. Can someone point me in the right direction? Or is that feature presently unsupported

ScottMoynes (Fri, 04 May 2018 14:22:40 GMT):
The HLF FAQ mentions: > Q. How do I ensure data privacy? > A. ... Second, within a channel you can restrict the input data to chaincode to the set of endorsers > only, by using visibility settings. The visibility setting will determine whether input and output > chaincode data is included in the submitted transaction, versus just output data. ... I haven't been able to find any other details about transaction visibility, ie. how to set the visibility to private. Can someone point me in the right direction? Or is that feature presently unsupported?

RohitYadav2 (Fri, 04 May 2018 14:49:29 GMT):
Its is Necessary to create a Channel in Hyper ledger Network ?

RohitYadav2 (Fri, 04 May 2018 14:51:05 GMT):
if not then how peers are going to connect to each other

simonmullaney (Fri, 04 May 2018 15:53:36 GMT):
Has joined the channel.

ScottMoynes (Fri, 04 May 2018 16:28:36 GMT):
@RohitYadav2 yes, that's right.

jrosmith (Fri, 04 May 2018 18:05:58 GMT):
@Marc.K creating a specific channel for every single permutation of party would be a bit tedious to set up initially, and definitely difficult to manage moving forward.

jrosmith (Fri, 04 May 2018 18:06:47 GMT):
@lclclc i don't know of any examples off of the top of my head, i imagine there will be examples when it becomes a part of the official release in 1.2. maybe someone in #fabric-ledger would have a better idea?

jrosmith (Fri, 04 May 2018 18:08:12 GMT):
@narasimhapoluparthi this comes from an update to the grpc library that breaks fabric-client. you'll have to manually downgrade fabric-client's dependency on grpc to 1.9.1

am (Fri, 04 May 2018 18:22:18 GMT):
Has joined the channel.

am (Fri, 04 May 2018 19:04:45 GMT):
do we know when release 1.2 officially comes out..

jrosmith (Fri, 04 May 2018 19:28:32 GMT):
@am release are done quarterly, with 1.2 slated for end of june 2018: https://wiki.hyperledger.org/projects/fabric/roadmap

elainejlai (Fri, 04 May 2018 19:29:43 GMT):
Has joined the channel.

am (Fri, 04 May 2018 19:37:37 GMT):
@jrosmith thanks

XingqiangMao (Fri, 04 May 2018 21:00:09 GMT):
Hi Every one. Have stuck on a couchdb save problem

XingqiangMao (Fri, 04 May 2018 21:00:19 GMT):
func (s *SmartContract) published(APIstub shim.ChaincodeStubInterface, args []string) sc.Response { if len(args) < 7 { return shim.Error("Incorrect number of arguments. Expecting 7") } fmt.Println(args[6]) amount, err := strconv.Atoi(args[6]) fmt.Println(err) var lead = LeadRecord{Lender: args[0], LenderId: args[1], FinmktId: args[2], Originator: args[3], OriginatorId: args[4], Action: args[5], Amount: amount} leadAsBytes, _ := json.Marshal(lead) APIstub.PutState("Lead"+args[0]+args[1], leadAsBytes) fmt.Println("Added", leadRecords[i]) return shim.Success(nil) }

XingqiangMao (Fri, 04 May 2018 21:01:01 GMT):
Here is my save chaincode. After I invoke that. Data is not saved into couchdb. Which I tried

XingqiangMao (Fri, 04 May 2018 21:01:01 GMT):
func (s *SmartContract) initLedger(APIstub shim.ChaincodeStubInterface) sc.Response { leadRecords := []LeadRecord{ LeadRecord{Lender: "LendingClub_PORTAL_US", LenderId: "LC_003", FinmktId: "FINMKT_010", Originator: "SpaDepot_ORIGINATOR_US", OriginatorId : "SpaDepot_010", Action:"PUBLISHED", Amount : 25000}, } i := 0 for i < len(leadRecords) { fmt.Println("i is ", i) leadAsBytes, _ := json.Marshal(leadRecords[i]) APIstub.PutState("Lead"+strconv.Itoa(i), leadAsBytes) fmt.Println("Added", leadRecords[i]) i = i + 1 } return shim.Success(nil) }

XingqiangMao (Fri, 04 May 2018 21:01:21 GMT):
This piece. data is saved into db. Wondering why ...Any idea?

TsvetanG (Fri, 04 May 2018 23:22:44 GMT):
Can someone confirm if there is limitation on the number of channels in Fabric ? Recently I read there is 255 limit? If that is true what is the reason behind it?

dannongruver (Sat, 05 May 2018 00:53:03 GMT):
Has joined the channel.

dannongruver (Sat, 05 May 2018 00:54:09 GMT):
Hello all. New to fabric & have questions after reading (http://hyperledger-fabric.readthedocs.io). Is this the channel to submit my newbie questions to?

dapper-hacker (Sat, 05 May 2018 02:41:14 GMT):
Has joined the channel.

KristjanGrm (Sat, 05 May 2018 09:16:25 GMT):
I'd like to build an application using blockchain for ensuring data integrirty... I'd like to create a system for managing documents. This would be a demo application so it wouldn't be used in real life just yet so I am looking for something that I can build fast. My system would have 2 million different accounts, each account would have documents "pinned" on them (just a hash of a document, the document itself is saved off chain) Each transaction should include some metadata so I can do some querying and analyze. If I could somehow incorporate roles based acces in this it would be even more awesome.

KristjanGrm (Sat, 05 May 2018 09:16:49 GMT):
is hyperledger fabric right solution for this, or should I look into something else?

aakzubaidi (Sat, 05 May 2018 14:14:31 GMT):
Has joined the channel.

aakzubaidi (Sat, 05 May 2018 14:15:00 GMT):
Hi, Just wondering where the consensus mechanism takes place after proposing an update to the ledger? if an authority is repressible for approving all changes, then how comes the hyperledge to be distributed and temper-proof ? I followed In the "Writing Your First Application Note" , and there seem to no sign of consensus there. Can anyone elaborate on this please ? Hi, Just wondering where the consensus mechanism takes place after proposing an update to the ledger? if an authority is repressible for approving all changes, then how comes the hyperledge to be distributed and temper-proof ? I followed In the "Writing Your First Application Note" , and there seem to no sign of consensus there. Can anyone elaborate on this please ? Hi, Just wondering where the consensus mechanism takes place after proposing an update to the ledger? if an authority is repressible for approving all changes, then how comes the hyperledge to be distributed and temper-proof ? I followed In the "Writing Your First Application Note" , and there seem to no sign of consensus there. Can anyone elaborate on this please ?

aakzubaidi (Sat, 05 May 2018 14:15:29 GMT):
Hi, Just wondering where the consensus mechanism takes place after proposing an update to the ledger? if an authority is repressible for approving all changes, then how comes the hyperledge to be distributed and temper-proof ? I followed In the "Writing Your First Application Note" , and there seem to no sign of consensus there. Can anyone elaborate on this please ?

TsvetanG (Sat, 05 May 2018 14:22:44 GMT):
The consensus is well described and documented here: http://hyperledger-fabric.readthedocs.io/en/release-1.1/fabric_model.html#consensus

aakzubaidi (Sat, 05 May 2018 14:23:25 GMT):
thank you, I going to have read on the link

TsvetanG (Sat, 05 May 2018 14:23:35 GMT):
Snippet: To conclude, consensus is not merely limited to the agreed upon order of a batch of transactions, but rather, it is an overarching characterization that is achieved as a byproduct of the ongoing verifications that take place during a transaction’s journey from proposal to commitment.

aakzubaidi (Sat, 05 May 2018 14:25:05 GMT):
alright. Basically, I have in mind an idea that different parties have to agree on something before committing to the ledger. Basically, they have to vote for it.

aakzubaidi (Sat, 05 May 2018 14:25:27 GMT):
does the Hyperledger and its consensus support this ?

TsvetanG (Sat, 05 May 2018 14:26:20 GMT):
in fabric you can control that through the endorsement policy of the chaincode

aakzubaidi (Sat, 05 May 2018 14:26:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SPfxwP79TFzqCuNiS) @TsvetanG lovely. Can you provide me with link on this

TsvetanG (Sat, 05 May 2018 14:27:28 GMT):
http://hyperledger-fabric.readthedocs.io/en/release-1.1/endorsement-policies.html?

aakzubaidi (Sat, 05 May 2018 14:30:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3gse9srrsBn4MrNsf) @TsvetanG Thanks a lot. So my understanding now is that, I do not need to play with the consensus. The endorsement is where I should look into

TsvetanG (Sat, 05 May 2018 14:31:58 GMT):
You can as well use chaincode to do further checks on the calling client if needed

aakzubaidi (Sat, 05 May 2018 14:33:41 GMT):
yes. good point. I like it. You made my life easier. Thanks dear

TsvetanG (Sat, 05 May 2018 14:38:26 GMT):
When a client invokes a chaincode, the client's identity is also passed and can be accessed and used to build logic inside the chaincode

TsvetanG (Sat, 05 May 2018 14:38:48 GMT):
see the getCreator method of the stub

TsvetanG (Sat, 05 May 2018 14:39:33 GMT):
if using node chaincode: https://fabric-shim.github.io/ChaincodeStub.html#getCreator__anchor

TsvetanG (Sat, 05 May 2018 14:39:39 GMT):
similar for Go chaincode

JeroenDePrest (Sat, 05 May 2018 17:05:41 GMT):
I am getting a "Maximum call stack size exceeded" in my nodejs chaincode. Any ideas as to why this would be happening?

JeroenDePrest (Sat, 05 May 2018 17:31:19 GMT):
nvm i fixed it

rselvakct (Sat, 05 May 2018 18:35:12 GMT):
Has joined the channel.

umtyzc (Sat, 05 May 2018 18:54:25 GMT):
This is grpc version issue, it think. use npm install grpc@1.9.1 command to install new version. @narasimhapoluparthi [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i36oA6HCozKqSrNEW)

Vrai1127 (Sat, 05 May 2018 21:10:27 GMT):
Hi, could someone clarify if fabric is UTXO or Account based model? Does having smart contracts (chaincode in case of fabric) makes it Account based ?

sarathkumar (Sun, 06 May 2018 03:36:58 GMT):
Hi, While I am building hyperledger fabric using `make dist-clean all` command, I am getting the below error. _*_spell checker passed DEP: Checking for dependency issues.. ./scripts/check_deps.sh: line 7: dep: command not found Makefile:211: recipe for target 'check-deps' failed make: *** [check-deps] Error 127 _*_

sarathkumar (Sun, 06 May 2018 03:37:30 GMT):
Can someone help me here. I have already installed `dep` and I can see it in my PATH.

sarathkumar (Sun, 06 May 2018 03:37:35 GMT):
Thanks in advance

lclclc (Sun, 06 May 2018 06:21:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SrkbYSRhRayAo3xa8) @jrosmith thanks to let me know this channel.

nagaraja_sr (Sun, 06 May 2018 07:14:25 GMT):
is it possible to pass custom environment variables to the chaincode (in golang) when it launches and then access those env vars from within the chaincode? usecase: chaincode offloads some of the transaction business logic to an external API which needs URL, credentials etc.

nagaraja_sr (Sun, 06 May 2018 07:17:51 GMT):
@Vrai1127 fabric supports both UTXO and account based model. from the docs: "https://hyperledger-fabric.readthedocs.io/en/release-1.1/Fabric-FAQ.html?highlight=utxo" There are two popular approaches to defining assets in most blockchain solutions: the stateless UTXO model, where account balances are encoded into past transaction records; and the account model, where account balances are kept in state storage space on the ledger. Each approach carries its own benefits and drawbacks. This blockchain technology does not advocate either one over the other. Instead, one of our first requirements was to ensure that both approaches can be easily implemented.

a9714052 (Sun, 06 May 2018 09:51:00 GMT):
Has joined the channel.

a9714052 (Sun, 06 May 2018 09:51:13 GMT):
Hello, when I run ./byfn.sh generate. I got panic: runtime error: invalid memory address or nil pointer dereference. Pls give me a hand.

Santosh369 (Sun, 06 May 2018 11:19:11 GMT):
Has joined the channel.

Santosh369 (Sun, 06 May 2018 11:25:15 GMT):
Hi, I am trying to use ABAC feature for my chaincode but it seems the library was not added to the fabric-ccenv image and when I try to install the chaincode on a peer I get this error "can't load package: package github.com/hyperledger/fabric/core/chaincode/lib/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid". Can you suggest any workaround that would let me use the ABAC feature?

muralisr (Sun, 06 May 2018 12:43:02 GMT):
@nagaraja_sr its not possible to pass custom env variables to chaincode

muralisr (Sun, 06 May 2018 12:43:02 GMT):
@nagaraja_sr its not possible to pass custom env variables to chaincode.

muralisr (Sun, 06 May 2018 12:43:58 GMT):
@Santosh369 you'd need to vendor cid as part of your chaincode using govendor

umtyzc (Sun, 06 May 2018 13:35:42 GMT):
Which example/platform do you use? @a9714052 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BjEjYeswv6zxeKHN6)

kabaka0 (Sun, 06 May 2018 14:45:24 GMT):
Has joined the channel.

a9714052 (Sun, 06 May 2018 15:15:48 GMT):
@umtyzc I am trying it with ubuntu 16.04, fabric 1.1.0

a9714052 (Sun, 06 May 2018 15:26:33 GMT):
@umtyzc I tried to reset everything and excute it with root. it works this time. Thanks.

umtyzc (Sun, 06 May 2018 15:26:59 GMT):
👍

Santosh369 (Sun, 06 May 2018 15:28:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Et4zMzpMXr2pofbGZ) @muralisr Thanks for your answer. I am new to golang, can you provide more detailed explanations please? Also does this vendoring step take place in the fabric-ccenv container or within my host? I started reading the govendor documentation but I am confused.

Waqas Burney (Sun, 06 May 2018 15:29:08 GMT):
Has joined the channel.

muralisr (Sun, 06 May 2018 16:09:57 GMT):
@Santosh369 doc on vendoring http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html?highlight=govendor#managing-external-dependencies-for-chaincode-written-in-go or https://github.com/hyperledger/fabric/tree/release-1.1/examples/chaincode/go/enccc_example should help (that example uses a different package but the principle is the same)

Santosh369 (Sun, 06 May 2018 16:23:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T2hCdQ8SJHybBEtWG) @muralisr Thank you for your help

chetan123 (Sun, 06 May 2018 17:38:45 GMT):
Has joined the channel.

saras 8 (Sun, 06 May 2018 17:47:01 GMT):
Has joined the channel.

saras 8 (Sun, 06 May 2018 17:47:10 GMT):
hi. I am trying to combine the BYFN sample with the fabcar to get a multi peer network. However my query.js fails with an error saying 'sendPeersProposal - Promise is rejected: Error: Endpoint read failed'. WHat am I missing ?

umtyzc (Sun, 06 May 2018 19:21:51 GMT):
How can you combine byfn and fabcar sample? @saras 8 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dPxqFMYm3aGoKh3cK)

saras 8 (Mon, 07 May 2018 00:23:02 GMT):
basically, I have moved the fabcar chaincode and installed it over the byfn nodes. Now I am trying to use the query.js over that code. I am able to run EnrollAdmin, EnrollUser.js successfully. I have added a ca_peerOrg1 to the BYFN network.

saras 8 (Mon, 07 May 2018 00:24:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RzGKI5QfnSaN0ru3MJ) @umtyzc BTW, do you know a good link for example to setup a nodejs application over a multi-org-multi-peer network? I am unable to figure out things like when to use the network config and how to use it.

sarathkumar (Mon, 07 May 2018 02:37:56 GMT):
Hi, While I am building hyperledger fabric using `make dist-clean all` command, I am getting the below error. _*_spell checker passed DEP: Checking for dependency issues.. ./scripts/check_deps.sh: line 7: dep: command not found Makefile:211: recipe for target 'check-deps' failed make: *** [check-deps] Error 127 _*_

sarathkumar (Mon, 07 May 2018 02:38:01 GMT):
Can someone help me here. I have already installed `dep` and I can see it in my PATH.

altairlee (Mon, 07 May 2018 02:44:05 GMT):
Has joined the channel.

Kalehdoo (Mon, 07 May 2018 03:19:30 GMT):
Has joined the channel.

Kalehdoo (Mon, 07 May 2018 03:21:17 GMT):
Hello, I was following the chaincode example here https://github.com/hyperledger/fabric-samples/blob/release-1.1/chaincode/fabcar/go/fabcar.go

Kalehdoo (Mon, 07 May 2018 03:21:17 GMT):
Hello, I was following the chaincode example here https://github.com/hyperledger/fabric-samples/blob/release-1.1/chaincode/fabcar/go/fabcar.go In this example there is only one structure Car. My question is that can I create multiple structures for example one block structure for Car, another for dealers and reference dealer's id in Car structure. This is like we do in database where primary key of one tables is referenced in other tables as foreign key. If that is not possible in fabric, then do I need to store everything in just one big block? Does anyone has a chaincode example that has more than one structures?

sarathkumar (Mon, 07 May 2018 03:42:45 GMT):
habib1967

sarathkumar (Mon, 07 May 2018 04:37:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8L9nbpyLTzW7oFEfR) I tried installing it as root and it worked. :)

PrafullTilwankar (Mon, 07 May 2018 04:59:44 GMT):
Has joined the channel.

PrafullTilwankar (Mon, 07 May 2018 05:00:52 GMT):
Hi All .. Is HFL compatible with other *nix operating systems like Red Hat Linux , CentOS ?

PrafullTilwankar (Mon, 07 May 2018 05:00:52 GMT):
Hi All .. Is HF compatible with other *nix operating systems like Red Hat Linux , CentOS ?

PalinaTolmach (Mon, 07 May 2018 05:35:09 GMT):
Has joined the channel.

umtyzc (Mon, 07 May 2018 07:22:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mADPWnwCoufKcPEtr) @Kalehdoo Maybe this document useful for you. You can use two different chaincode and install on same endorsing peer. After this, call one chaincode from another chaincode. https://github.com/asararatnakar/fabric_v1_Chaincode_instructions/blob/master/call-chaincode-to-chaincode-nondefault-chain.md

TripleZ (Mon, 07 May 2018 08:12:39 GMT):
Has joined the channel.

ShrutiSinha (Mon, 07 May 2018 08:26:47 GMT):
Has joined the channel.

geourjoa (Mon, 07 May 2018 09:41:54 GMT):
@PrafullTilwankar Yes I have installed on RH 7. I think you can install on any *nix if you can run docker on it.

geourjoa (Mon, 07 May 2018 09:46:51 GMT):
I have several questions in multi channel infrastructure. If a peer join several channel, should I install install several times the chaincode ? If no, I must write only one chaincode for all the channel of the peer ? I'm looking for any ressource on multichannel. Thanks in advance

jaswanth (Mon, 07 May 2018 10:12:50 GMT):
Hi all , I was trying to upload a image ( its a profile picture ) through transaction , when i try with 20kb file its uploading the picture , but with 100kb file it through error , What is the maximum size of the transacton ?

jaswanth (Mon, 07 May 2018 10:12:50 GMT):
Hi all , I was trying to upload a image ( its a profile picture ) through transaction , when i try with 20kb file its uploading the picture , but with 100kb file , i got error , What is the maximum size of the transacton ?

jaswanth (Mon, 07 May 2018 10:13:16 GMT):
and the block ?

hrt031293 (Mon, 07 May 2018 11:22:51 GMT):
Hello everyone, Did anyone present her, done the `Adding an Org to a Channel`??

SjirNijssen (Mon, 07 May 2018 12:26:49 GMT):
@Kalehdoo Excellent questions

sbaxter (Mon, 07 May 2018 12:55:10 GMT):
Has joined the channel.

Kalehdoo (Mon, 07 May 2018 12:55:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dHpdoRSvTPQdBLnPk) @umtyzc Thanks, This really helpful to know that we can have multiple chaincodes. Can I have more than 1 structure defined in one chaincode? In fabcar example, there is one structure for main asset which is Car. Can I have one more structure defined for cardealer where I store attributes related to the Car dealers?

vivanno (Mon, 07 May 2018 13:27:02 GMT):
Has joined the channel.

umtyzc (Mon, 07 May 2018 13:32:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A9MLfuCRcHfdtZmXj) @Kalehdoo Refer this example, https://github.com/IBM-Blockchain/marbles/blob/master/chaincode/src/marbles/marbles.go and look at this https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767

SjirNijssen (Mon, 07 May 2018 14:49:21 GMT):
@umtyzc Thanks for the useful references. I do not believe that two chaincodes do solve the problem that was recently presented in the hyperledger fabric list: Does this also apply to the case where T1a would be about the Invoice header and T1b and T1c are about the associated two Invoice lines? Hence two different docTypes and two different kinds of keys involved. Suggestions are very welcome.

zimabry (Mon, 07 May 2018 15:36:32 GMT):
Hi all, I keep getting these errors when I try to build my go code. I have downloaded govendor and ran the "govendor fetch github.com/hyperledger/fabric/vendor/plugin" /root/projects/src/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of: /root/projects/src/github.com/hyperledger/fabric/vendor/plugin (vendor tree) /apps/go/src/plugin (from $GOROOT) /root/projects/src/plugin (from $GOPATH)

BrianAhier (Mon, 07 May 2018 17:07:30 GMT):
Has joined the channel.

BrianAhier (Mon, 07 May 2018 17:08:16 GMT):
I am very interested in developing a healthcare use case using #fabric

lfrankqy (Mon, 07 May 2018 23:42:42 GMT):
Hello, I have question: if a business is going to use fabrics to trade products, the products are priced and paid using another crypto currency, how does the integration of the fabrics with the crypto currency blockchain network look like? Is there any existing cases that does this? One naive way is treating the crypto currency the same as real currency, does the transaction in two steps, 1st step is payment in another blockchain network, 2nd step to update the ownership of product in fabrics network. But doing this way missed some characteristics of transaction. Is there a better way of the implementation? Thanks

Kalehdoo (Tue, 08 May 2018 02:28:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vGiAsnABada7M5Lms) @umtyzc Thanks much. I think this is what I was looking for. Thanks @umtyzc

sbaxter (Tue, 08 May 2018 03:08:38 GMT):
I'm following the fabric-samples/first-network tutorial and I am running into the following error during the `peer channel join` step: ```2018-05-08 03:01:02.743 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no such host"; Reconnecting to {peer0.org1.example.com:7051 }``` full `./byfn.sh up` output: https://github.com/neuralux/hl-fabric-tutorials/blob/a736ef5f5a18739dbc21388e80428298c5061dc0/debug/error.txt host system information/diagnostics: https://github.com/neuralux/hl-fabric-tutorials/blob/a736ef5f5a18739dbc21388e80428298c5061dc0/debug/info.txt Has anyone run into this error before? How did you solve it?

am (Tue, 08 May 2018 03:33:58 GMT):
Hello, does anyone know in fabric, what happens when validation fails on a read/write state, are they stored somewhere(the failed transactions) or is a failure event raised.. can't find anything in the docs http://hyperledger-fabric.readthedocs.io/en/release-1.1/readwrite.html ...please let me know if there is such a thing..

jaswanth (Tue, 08 May 2018 04:20:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aPFi6Ttfej36XmSJC) can anyone ansawer this question , I am looking all the docs but got nothing

jaswanth (Tue, 08 May 2018 04:20:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aPFi6Ttfej36XmSJC) can anyone answer this question , I am looking all the docs but got nothing

Ammu (Tue, 08 May 2018 05:12:57 GMT):
According to my knowledge, With Fabric CA v1.0.x, you cannot modify attributes. With Fabric CA v1.1.x (which is currently in release candidate status) you can. I'm not sure I'm right or not, If you can help me to confirm this thing. It'll be great help for me!

umtyzc (Tue, 08 May 2018 05:31:08 GMT):
8940Pmkm*-

Subramanyam (Tue, 08 May 2018 06:02:33 GMT):
Has left the channel.

lclclc (Tue, 08 May 2018 06:34:15 GMT):
Anyone knows how exactly the *gossip* protocol works in detail? The doc only describes this protocol allows data dissemination across all peers in a channel, but no detail about how gossip is running. There are 2 kinds of special peers. One is anchor peer and another is leader peer. The anchor peer is described as a map service and leader peer is described as the only peer who connects to ordering service to fetch blocks then broadcast to other peers inside one organization. I am guessing the gossip protocol is also relying on the leader node according to the `CORE_PEER_GOSSIP_` environment variables. If I am correct, how the leader fetch latest world state? Is it fetching from ordering service, or other organizations leading peers?

Turikalen (Tue, 08 May 2018 06:46:33 GMT):
Has left the channel.

Daiki0124 (Tue, 08 May 2018 07:33:49 GMT):
Hi where is user token ininfomation storage space ? ca DB?

Daiki0124 (Tue, 08 May 2018 07:33:49 GMT):
Hi where is user token infomation storage space ? ca DB?

SjirNijssen (Tue, 08 May 2018 07:34:13 GMT):
@am When a committer comes to the conclusion that the read state associated with an endorsement read by the endorser is different from the read state the committer reads from his current world state, the committer marks the transaction as invalid in the block; the write set is NOT applied to the World State. Is this the answer you were looking for?

Dom.Deevey (Tue, 08 May 2018 07:42:11 GMT):
Has joined the channel.

Dom.Deevey (Tue, 08 May 2018 07:42:22 GMT):
Hi All, Are you able to create a digital currency which is pegged to the GBP on the Hyperledge Fabric? Thanks for your help.

VineetVyas (Tue, 08 May 2018 08:44:46 GMT):
Has joined the channel.

VineetVyas (Tue, 08 May 2018 08:46:36 GMT):
Hi Hyperledger team , One quick question in Fabric -1.0.6 release do we have "TCP keep-alive" setting configurable . It seems these values are harded coded and there is no mechanism to change this in fabric -1.0.6 .

Kenny 35 (Tue, 08 May 2018 09:22:12 GMT):
Has joined the channel.

acombeau (Tue, 08 May 2018 09:42:50 GMT):
Anyone now ow is it possible to modify the READ/WRITE access to a peer ? I saw that there are two possibility one on the Chaincode, the other one on the config file. can anyone help me to find the right file? Is there a link with this ? : `You can also see that the endorsement policy has been modified to -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')".

acombeau (Tue, 08 May 2018 09:42:50 GMT):
Anyone now ow is it possible to modify the READ/WRITE access to a peer ? I saw that there are two possibility one on the Chaincode, the other one on the config file. can anyone help me to find the right file? Is there a link with this ? : ``You can also see that the endorsement policy has been modified to -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')". `

acombeau (Tue, 08 May 2018 09:42:50 GMT):
Anyone now ow is it possible to modify the READ/WRITE access to a peer ? I saw that there are two possibility one on the Chaincode, the other one on the config file. can anyone help me to find the right file? Is there a link with this ? : `You can also see that the endorsement policy has been modified to -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')". `

acombeau (Tue, 08 May 2018 09:42:50 GMT):
Anyone know how is it possible to modify the READ/WRITE access to a peer ? I saw that there are two possibility one on the Chaincode, the other one on the config file. can anyone help me to find the right file? Is there a link with this ? : `You can also see that the endorsement policy has been modified to -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')". `

BhaskarRaju (Tue, 08 May 2018 09:45:50 GMT):
Can some one help me with this error "[orderer/common/server] initializeLocalMsp -> CRIT 007 Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory"

FaizulHassan (Tue, 08 May 2018 10:43:38 GMT):
Has joined the channel.

RohitYadav2 (Tue, 08 May 2018 11:04:46 GMT):
@RohitYadav2

RohitYadav2 (Tue, 08 May 2018 11:08:03 GMT):
How to know the GRPC Address of any Peer The Main issue is :- I've write a Chaincode in Node JS So I'm trying to run it by This Command *CORE_CHAINCODE_ID_NAME="mycc:v0" npm start -- --peer.address grpc://192.168.1.64:7052* So I'm getting *2018-05-08T10:59:17.514Z ERROR [lib/chaincode.js] uncaughtException: Cannot read property 'ns' of null * Can you please help me to how to find the address this address I found from a Video from Hpyerledger Youtube channel video

gravity (Tue, 08 May 2018 11:17:44 GMT):
Hello Is it possible to move a peer between organizations?

JeroenDePrest (Tue, 08 May 2018 11:27:48 GMT):
I have a pretty specific question. We are trying to encrypt our data on the chain code but we don’t want to lose our mango queries to query inside an object in CouchDB. Anyone have any ideas? We looked at encCC but here we then loose our mango queries so this is not really an option. Another option we thought about was that we could use Vault from HashiCorp to manage the encryption keys and then encrypt the values but not the keys and then also encrypt the query in the same way to still be able to do the mango queries. If anyone has a better idea feel free explain it.

umtyzc (Tue, 08 May 2018 11:43:00 GMT):
Why? @gravity [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aPkxt39KPXFnvHhp8)

Starseven (Tue, 08 May 2018 11:52:14 GMT):
Has joined the channel.

migrenaa (Tue, 08 May 2018 12:02:19 GMT):
Hi. I am following the Write Your First Application tutorial and I am getting this error: ubuntu@unicorn:~/fabric-samples/fabcar$ node enrollAdmin.js module.js:478 throw err; ^ Error: Cannot find module './api.js' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/ubuntu/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:19:11) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) Can someone help me?

vloup (Tue, 08 May 2018 12:06:22 GMT):
@migrenaa downgrade your node sdk to 1.1.0

migrenaa (Tue, 08 May 2018 12:15:49 GMT):
@vloup thanks a lot !!!

vloup (Tue, 08 May 2018 12:17:25 GMT):
did it work?

vloup (Tue, 08 May 2018 12:17:50 GMT):
I spent two hours this morning figuring that out btw ;-)

gravity (Tue, 08 May 2018 12:33:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zjje4R7uCsc3n6XnCZ) Just wondering if it's possible in case of wrong setup of initial network. for example, if I set up a network with single org and later decided to spread all peers of a network into a number of orgs/

jrosmith (Tue, 08 May 2018 12:52:25 GMT):
@lclclc #fabric-gossip will most likely have answers for you

lclclc (Tue, 08 May 2018 12:52:58 GMT):
thanks for pointing out that channel

jrosmith (Tue, 08 May 2018 12:53:03 GMT):
@jaswanth please use a service like hastebin.com to post your error logs so that someone will be able to help

jrosmith (Tue, 08 May 2018 12:53:54 GMT):
@Ammu you are correct, ABAC is a 1.1 capability

jrosmith (Tue, 08 May 2018 12:55:01 GMT):
@Dom.Deevey if you really wanted you could make a digital currency using fabric, but i'm not sure how you would go about pegging it to the specific value of an existing currency

zimabry (Tue, 08 May 2018 12:55:45 GMT):

Clipboard - May 8, 2018 8:55 AM

jrosmith (Tue, 08 May 2018 12:56:22 GMT):
@zimabry is this while trying to build locally or on a remote server?

zimabry (Tue, 08 May 2018 12:57:01 GMT):
@jrosmith remote server. I also installed govendor and installed everything with govendor fetch..

jrosmith (Tue, 08 May 2018 12:57:32 GMT):
@RohitYadav2 `Cannot read property 'ns' of null` is an error that is thrown by the grpc library when it cannot find a proto file. i'd double check your installation and make sure all the necessary protos are there

Dom.Deevey (Tue, 08 May 2018 12:58:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S6QFPaDmygBYTA78k) @jrosmith Thanks for your reply.

jrosmith (Tue, 08 May 2018 13:00:01 GMT):
@zimabry how are you going about installing the chaincode? are you bundling it up into a .tar file?

zimabry (Tue, 08 May 2018 13:01:00 GMT):
@jrosmith I am migrating my .go file to a specific path on the server and then running "go build" on the file

zimabry (Tue, 08 May 2018 13:01:32 GMT):
@jrosmith this is to compile it so then the .sh script can install and instantiate it

jrosmith (Tue, 08 May 2018 13:03:08 GMT):
@zimabry you're not using the peer install/instantiate or sdk install/instantiate commands?

gravity (Tue, 08 May 2018 13:03:28 GMT):
Hello getting an error when querying a chaincode (this is from the fabric-ca example) `Error: Error endorsing query: rpc error: code = Unknown desc = cannot retrieve package for chaincode mycc/1.0, error open /var/hyperledger/production/chaincodes/mycc.1.0: no such file or directory - ` Any suggestions?

gravity (Tue, 08 May 2018 13:03:54 GMT):
the query works fine on the second peer of this org

jrosmith (Tue, 08 May 2018 13:04:31 GMT):
@gravity are you sure it was installed on that peer? are there logs confirming the installation and is there a docker container running on that peer?

zimabry (Tue, 08 May 2018 13:04:52 GMT):
@jrosmith Yes I am but that is after I build the chaincode. I first have to build the chaincode with the "go build" command correct?

jrosmith (Tue, 08 May 2018 13:12:07 GMT):
@zimabry i never manually run `go build`, i bundle up my source file, vendor.yml, and vendor folder into a tar file and pass that to the install command in the node sdk

migrenaa (Tue, 08 May 2018 13:17:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmb623Cq2AYn2LE4N) @vloup yes it worked.. :)

gravity (Tue, 08 May 2018 13:29:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YgvzDCWR3rBXB9QYF) INFO 586 Channel [mychannel]: Chaincode [Name=mycc, Version=1.0, Hash=[]byte{0x2b, 0xbe, 0xb0, 0xb8, 0x96, 0xa7, 0x88, 0x55, 0xbf, 0xfd, 0xe2, 0xc3, 0x12, 0x1, 0xa5, 0xca, 0x89, 0x5d, 0x4d, 0xeb, 0x82, 0xe7, 0x2e, 0x4e, 0x22, 0xb5, 0x5b, 0x41, 0xa9, 0xb4, 0xa, 0x66}] is not installed hence no need to create chaincode artifacts for endorsement looks like it isn't

jiteshukani2006 (Tue, 08 May 2018 14:03:46 GMT):
Has joined the channel.

jiteshukani2006 (Tue, 08 May 2018 14:04:16 GMT):
I am trying to setup my first Hyperledger Fabric network on my Windows 10 Pro PC. I did follow below steps to create network. ./startFabric.sh - Success ./createPeerAdminCard.sh - Success composer archive create -t dir -n . - .bna file created successfully on project root folder composer network install --card PeerAdmin@hlfv1 --archiveFile sample-test-network@0.0.1.bna Now I got error in next step when executing below command for start network. composer network start --networkName diam-test-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file diam-testkAdmin.card It take sometime for execution and then it gave error mention below : **Processing these Network Admins: userName: admin × Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT Command failed** When I seen log using below command : peer0.org1.example.com . I attached log error in image file.Log Image File Can anyone suggestions me how I can proceed next step for start my first Hyper Fabric network.? Thanks in Advance.!

jiteshukani2006 (Tue, 08 May 2018 14:04:16 GMT):
I am trying to setup my first Hyperledger Fabric network on my Windows 10 Pro PC. I did follow below steps to create network. ./startFabric.sh - Success ./createPeerAdminCard.sh - Success composer archive create -t dir -n . - .bna file created successfully on project root folder composer network install --card PeerAdmin@hlfv1 --archiveFile sample-test-network@0.0.1.bna Now I got error in next step when executing below command for start network. composer network start --networkName diam-test-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file diam-testkAdmin.card It take sometime for execution and then it gave error mention below : **Processing these Network Admins: userName: admin × Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT Command failed** When I seen log using below command : peer0.org1.example.com . I attached log error in image file.Log Image File Can anyone suggestions me how I can proceed next step for start my first Hyper Fabric network.? Thanks in Advance.!

jiteshukani2006 (Tue, 08 May 2018 14:05:13 GMT):

errt.png

VadimOzarinskiy (Tue, 08 May 2018 15:12:23 GMT):
Has joined the channel.

gravity (Tue, 08 May 2018 15:17:19 GMT):
is it necessary to set up anchor peers if I want two orgs to collaborate on the same channel?

VadimOzarinskiy (Tue, 08 May 2018 15:18:07 GMT):
Hello to all, I'm now trying to up and run my custom example that base on byfn script and examples but with usage of SDK to communicate to network. Currently I have run network with 3 organization and Created all necessary crypto with 'cryptogen'. But now all tutorials for sdk's shows how to connect with generating and using fabric ca. Byfn dont starts fabric ca, so I can't find how to connect to network using already generated cryptofiles. I'm using Java SDK but will be appreciate for examples or resources for this information

VadimOzarinskiy (Tue, 08 May 2018 15:18:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=McXrWidzS7PtdGRiZ) As I know Yes

VadimOzarinskiy (Tue, 08 May 2018 15:19:38 GMT):
Organizations communicate with other Org's only via anchor peers. Without it they will see only their peers

gravity (Tue, 08 May 2018 15:27:59 GMT):
@VadimOzarinskiy thanks, will check this point

am (Tue, 08 May 2018 16:04:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZkJNSnuu8XEPz3GsP) @SjirNijssen yes, that is exactly what i was asking, does the chain emit an event for failed transaction event? thanks for your help

vivanno (Tue, 08 May 2018 16:06:54 GMT):
hello everybody, i'm trying to deploy hyperledger on docker swarm. I launch fabric with success, i launch createPeerAdmin.sh with success,

vivanno (Tue, 08 May 2018 16:22:46 GMT):
Hi Everybody, I'm trying to deploy hyperledger on docker swarm. - i use docker swarn and i create a network (overlay without encryption) - i launch my stack without error - i launch createPeerAdmin.sh without error - i installed my business network without error when i start my business network and i'm watching logs from peer0. I see that the dev-peer0-blabla-network-1.3.0 can not communicate correctly why peer0 and the install failed. My docker network is named as "hyp" and i reuse this name in docker-compose: CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyp Docker version: 18.03.1-ce, build 9ee9f40 An ideas ? Thank you, regards

vivanno (Tue, 08 May 2018 16:23:21 GMT):

logs

vivanno (Tue, 08 May 2018 16:29:22 GMT):

Capture d’écran 2018-05-08 à 18.28.51.png

ceebo (Tue, 08 May 2018 16:44:06 GMT):

cannot_read_property.png

ceebo (Tue, 08 May 2018 16:44:57 GMT):
Happens during instantiate. CC container crashes.

DeepanIgnaatious (Tue, 08 May 2018 17:19:00 GMT):
Has joined the channel.

zimabry (Tue, 08 May 2018 17:19:59 GMT):
@jrosmith we are not running that way. I first have to run the go build command to compile

dazohan (Tue, 08 May 2018 17:31:48 GMT):
Has joined the channel.

scally (Tue, 08 May 2018 17:47:38 GMT):

Screen Shot 2018-05-08 at 1.47.11 PM.png

Tommy109 (Tue, 08 May 2018 19:50:44 GMT):
Has joined the channel.

nahidalam (Tue, 08 May 2018 21:16:18 GMT):
Has joined the channel.

DennisM330 (Tue, 08 May 2018 21:17:05 GMT):
Trying to go thru the developing your first application hyperledger fabric tutorial. Getting an error running node enrollAdmin.js module.js:549 throw err; ^ Error: Cannot find module './api.js' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/home/blockchain/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:19:11) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)

DennisM330 (Tue, 08 May 2018 21:17:35 GMT):
python --version Python 2.7.12

DennisM330 (Tue, 08 May 2018 21:25:34 GMT):
Scanning Rocket I see the response to this issue as:@migrenaa downgrade your node sdk to 1.1.0 . Please clarify what you need to do here. Thanks

DennisM330 (Tue, 08 May 2018 21:47:02 GMT):
Clearly I can see the api.js is missing and not in the directory

DennisM330 (Tue, 08 May 2018 22:44:39 GMT):
Is this where I need top change it to 1.1 ? "main": "index.js", "name": "fabric-ca-client", "repository": { "type": "gerrit", "url": "http://gerrit.hyperledger.org/r/fabric-sdk-node" }, "types": "./types/index.d.ts", "version": "1.1.1",

DennisM330 (Tue, 08 May 2018 22:44:55 GMT):
If so, should I raise an issue in Github?

DennisM330 (Tue, 08 May 2018 22:58:49 GMT):
I see in Github [FAB-8920] Pin fabric-samples to node.js "~1.1.0" so not sure what my issue is since i have cloned that exact version

varinder (Tue, 08 May 2018 23:12:51 GMT):
in Hyperledger Fabric build your own application, if we want to try with our own set of model, assets and not the fabcar - what changes do we need to make? Is it a simple process or requires lot of config changes?

lbennett (Wed, 09 May 2018 03:12:17 GMT):
has anyone seen an issue where you brought up the network such as `docker-compose -p "fitcoin" -f "docker-compose.yaml" up -d` and then did a docker logs and saw an error such as `Error: cannot find module '.api.js'` ? This is run against an application that is using Hyperledger Fabric V1.1. I did an `npm install` with no success.

tramsyck (Wed, 09 May 2018 03:21:28 GMT):
Has joined the channel.

shailaja.mahara (Wed, 09 May 2018 04:21:50 GMT):
would anyone know what would be the reason for the following error while running the ./byfn.sh -m up command: Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

serkanerkan (Wed, 09 May 2018 05:36:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nFAWcvz6W9RLsiHvW) @shailaja.mahara please wipe everything. $ docker-compose -f docker-compose.yaml down --volumes $ docker rm $(docker ps -aq) $ docker volume purge $ rm genesis.block channel-artifacts/mych.tx And make a fresh start.

shailaja.mahara (Wed, 09 May 2018 05:38:29 GMT):
Thanks @serkanerkan. But do you know why this error might be occurring?

kshitiz_leo (Wed, 09 May 2018 06:01:18 GMT):
Hello everyone.. Can someone help me with the doubt _https://stackoverflow.com/questions/50246430/sharing-the-details-among-two-peers-belonging-to-two-different-organizations-in _ . That would be really helpful.

anjalinaik (Wed, 09 May 2018 07:23:02 GMT):
I am obtaining this error even though my chaincode was instantiated succesfully.make sure the chaincode fabcar has been successfully instantiated and try again:

anjalinaik (Wed, 09 May 2018 07:23:10 GMT):
my peer logs:

anjalinaik (Wed, 09 May 2018 07:24:35 GMT):
2018-05-09 07:23:21.969 UTC [couchdb] handleRequest -> DEBU 6d4 HTTP Request: GET /mychan_lscc/fabcar?attachments=true HTTP/1.1 | Host: net_peer0_couchdb:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-05-09 07:23:21.977 UTC [couchdb] handleRequest -> DEBU 6d5 Couch DB Error:not_found, Status Code:404, Reason:missing 2018-05-09 07:23:21.977 UTC [couchdb] ReadDoc -> DEBU 6d6 Document not found (404), returning nil value instead of 404 error 2018-05-09 07:23:21.977 UTC [chaincode] func1 -> DEBU 6d7 [5096755e]No state associated with key: fabcar. Sending RESPONSE with an empty payload

anjalinaik (Wed, 09 May 2018 07:24:44 GMT):
can anybody tell me what this means?

anjalinaik (Wed, 09 May 2018 07:25:04 GMT):
my couch db is running fine

anjalinaik (Wed, 09 May 2018 07:50:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AJZX5QFYXqSvjGwfn) The error was with configtx.yaml configuration with respect to docker.Resolved it

anjalinaik (Wed, 09 May 2018 07:50:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AJZX5QFYXqSvjGwfn) The error was with configtx.yaml configuration with respect to orderer.Resolved it

Daiki0124 (Wed, 09 May 2018 08:32:40 GMT):
Hi, everyone How to make "cluster of fabric-ca server" and "fabric-ca root server"?

RohitYadav2 (Wed, 09 May 2018 09:22:56 GMT):
@jrosmith, Mate can you please let me know how should I check these installation of GRPC for *Cannot read property 'ns' of null*

MrLoffciak (Wed, 09 May 2018 10:16:06 GMT):
I'm running BYFN example. How can I make a peer reject a transaction?

hrt031293 (Wed, 09 May 2018 11:57:50 GMT):
Hello everyone, I want to know that, if I want to create a project in fabric, then what should be the basic architecture? Thanks for the help

DennisM330 (Wed, 09 May 2018 11:58:31 GMT):
@lbennett I had a very similar error walking thru the hyperledger fabric developing your first application tutorial

rohitsahu21 (Wed, 09 May 2018 11:59:32 GMT):
Has joined the channel.

rohitsahu21 (Wed, 09 May 2018 11:59:45 GMT):
Create a simple voting application using hyper ledger fabric in python.

dannongruver (Wed, 09 May 2018 12:03:48 GMT):
[Begginer question] Is there a way to query the entire block chain to get the full transaction history?

rohitsahu21 (Wed, 09 May 2018 12:09:08 GMT):
only voting program create in python plzz i need that program

DennisM330 (Wed, 09 May 2018 12:20:19 GMT):
@lbennett I raised an issue in JIRA as I think our two problems are related to something not packaged correctly in the Node.js libraries but I cannot say for sure

rohitsahu21 (Wed, 09 May 2018 12:25:27 GMT):
how to download docker images in windows 10.

RohitYadav2 (Wed, 09 May 2018 12:36:11 GMT):
@DennisM330 @lbennett, I'm getting *module.js:549 throw err; ^ Error: Cannot find module './api.js' *

RohitYadav2 (Wed, 09 May 2018 12:36:11 GMT):
@DennisM330 @lbennett, I'm getting *module.js:549 throw err; ^ Error: Cannot find module './api.js' * This Error while going throw the hyperledger fabric developing your first application tutorial

RohitYadav2 (Wed, 09 May 2018 12:36:11 GMT):
@DennisM330 @lbennett, I'm getting *module.js:549 throw err; ^ Error: Cannot find module './api.js'* This Error while going throw the hyperledger fabric developing your first application tutorial

RohitYadav2 (Wed, 09 May 2018 12:36:11 GMT):
@DennisM330 @lbennett, I'm getting `module.js:549 throw err; ^ Error: Cannot find module './api.js'` This Error while going throw the hyperledger fabric developing your first application tutorial

RohitYadav2 (Wed, 09 May 2018 12:37:39 GMT):
have you guys got any solution for this

vloup (Wed, 09 May 2018 12:40:48 GMT):
downgrade to fabric-sdk-node 1.1.0

vloup (Wed, 09 May 2018 12:41:10 GMT):
they goofed with the 1.1.1 release

RohitYadav2 (Wed, 09 May 2018 12:43:26 GMT):
any specific steps to do so mate :)

RohitYadav2 (Wed, 09 May 2018 12:43:26 GMT):
@vloup any specific steps to do so mate :)

RohitYadav2 (Wed, 09 May 2018 12:44:04 GMT):
should I have to make changes in package.json file or somewhere else :)

vloup (Wed, 09 May 2018 12:46:10 GMT):
i have nearly no knowledge in npm/nodejs actually. But i think you can hardcode the dependency version in package.js

vloup (Wed, 09 May 2018 12:46:14 GMT):
json*

vloup (Wed, 09 May 2018 12:46:42 GMT):
or, if you are ruthless as me, just npm uninstall the 'new' version, and just get the older one with npm install package@version

vloup (Wed, 09 May 2018 12:47:26 GMT):
you're the 4th person to have this issue so far, according to this chat ;-)

RohitYadav2 (Wed, 09 May 2018 12:47:45 GMT):
yep :)

RohitYadav2 (Wed, 09 May 2018 12:48:29 GMT):
let me try to downgrade the version and lets see it works or not

vloup (Wed, 09 May 2018 12:49:26 GMT):
i deploy things with docker, that's why i prefer to execute shell command instead of diffing things

vloup (Wed, 09 May 2018 12:49:46 GMT):
way easier to deploy a custom express rest api in front of 10 fabric peer nodes ;-)

RohitYadav2 (Wed, 09 May 2018 12:52:04 GMT):
ohh I never ever tried to deploy things just using on my system, Just 15 days old buddy strugging to get things done :)

RohitYadav2 (Wed, 09 May 2018 12:52:04 GMT):
ohh I never ever tried to deploy things just using on my system, Just 15 days old buddy struggling to get things done :)

sbaxter (Wed, 09 May 2018 12:55:34 GMT):
Here's how I worked through issues with that tutorial: ```sed -i /opt/fabric/fabric-samples/fabcar/package.json \ -e 's/~//g' sed -i /opt/fabric/fabric-samples/fabcar/package.json \ -e 's/\^1.6.0/1.9.1/'```

RohitYadav2 (Wed, 09 May 2018 13:23:09 GMT):
@DennisM330 @lbennett Guys I've downgraded the version of the fabric-sdk-node to fabric-sdk-node 1.1.0 from the package.json file by the help of @vloup Thats what I did in the package.json file * "dependencies": { "fabric-ca-client": "1.1.0", "fabric-client": "1.1.0", "grpc": "^1.6.0" },*

vloup (Wed, 09 May 2018 13:23:49 GMT):
i was just too lazy to use sed here :P

RohitYadav2 (Wed, 09 May 2018 13:25:11 GMT):
then after that delete the* node_nodules* directory and rerun the* npm install* command

RohitYadav2 (Wed, 09 May 2018 13:25:11 GMT):
then after that delete the *node_nodules* directory and rerun the *npm install* command

RohitYadav2 (Wed, 09 May 2018 13:25:50 GMT):
this works for me may be work for you both guys :)

harmansohanpal (Wed, 09 May 2018 14:00:53 GMT):
Hello all, I am running an application with 4 peers using Couchdb as state database. I changed value of one of the table(for one peer) using Fauxton and getstate started giving me the updated value for that peer. Is there a way to get value from the ledger or tell that something is wrong? The gethistoryforkey api is returning the actual value but I dont think using gethistoryforkey everytime is a viable option. Any thoughts here?

harmansohanpal (Wed, 09 May 2018 14:01:11 GMT):
I want to check provenance of Hyperledger fabric

harmansohanpal (Wed, 09 May 2018 14:01:57 GMT):
I am trying to prove immutability for Hyperledger fabric.

yongkook (Wed, 09 May 2018 15:04:32 GMT):
Hello there! Has anyone had any issues after switching docker images from hyperledger->ibmblockchain and got following errors?

yongkook (Wed, 09 May 2018 15:04:56 GMT):
`error: [Hyperledger-Composer] :HLFConnectionManager :fabric-client() [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-basic-sample-network-0.2.4-20180426144018: dial unix /host/var/run/docker.sock: connect: permission denied`

yongkook (Wed, 09 May 2018 15:05:04 GMT):
I only changed image location for peer to : image: ibmblockchain/fabric-peer-$ARCH:1.1.0

yongkook (Wed, 09 May 2018 15:06:27 GMT):
just doing very basic basic-sample-network exercise with composer-playground....everything works fine with hyperledger/peer image, but once I change it to ibmblockchain image, it doesn't work and gives me the above error

yongkook (Wed, 09 May 2018 15:07:02 GMT):
` info: [Hyperledger-Composer] :HLFConnectionManager :fabric-client() [packager/Node.js]: packaging Node from /var/folders/ds/x8k7315x18q8k1z1_97qhzpc0000gn/T/businessnetwork11849-24727-31uofg.qgkge info: [Hyperledger-Composer] :ConnectionProfileManager :connect() Connecting using hlfv1 0= info: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Looking up a connection manager for type 0=hlfv1 error: [Hyperledger-Composer] :HLFConnectionManager :fabric-client() [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-basic-sample-network-0.2.4-20180426144018: dial unix /host/var/run/docker.sock: connect: permission denied at new createStatusError (/usr/local/lib/node_modules/composer-playground/node_modules/grpc/src/client.js:64:15) at /usr/local/lib/node_modules/composer-playground/node_modules/grpc/src/client.js:583:15 warn: [Hyperledger-Composer] :HLFConnection :_validatePeerResponses() Response from attempted peer comms was an error: Error: 2 UNKNOWN: error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-basic-sample-network-0.2.4-20180426144018: dial unix /host/var/run/docker.sock: connect: permission denied error: [Hyperledger-Composer] :HLFConnection :start() Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org1.example.com-basic-sample-network-0.2.4-20180426144018: dial unix /host/var/run/docker.sock: connect: permission denied at HLFConnection._validatePeerResponses (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:749:19) at HLFConnection._sendTransactionForProposal (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:673:37) at HLFConnection.start (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:651:24) at error: [Hyperledger-Composer] :ConnectorServer :Error: Error trying to st`

phgurgel (Wed, 09 May 2018 17:38:05 GMT):
Has joined the channel.

geekoftheweek (Wed, 09 May 2018 17:41:38 GMT):
Hey everyone... newbie here, getting discouraged. I'm trying to understand the steps to setting up a network, with a flexible number of organizations and peers, but there are so many layers of yaml and binaries and shell scripts calling shell scripts, that debugging error messages has been a huge pain in the butt whenever I try to wander even the slightest bit away from the first-network example on my own.

geekoftheweek (Wed, 09 May 2018 17:42:05 GMT):
Are there other learning resources that are more helpful than the official documentation, or is that the best out there?

umtyzc (Wed, 09 May 2018 18:10:15 GMT):
Hi, look at this https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x 👍 completely free course. @geekoftheweek [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WScWDHqzcdQQ2s4Ea)

geekoftheweek (Wed, 09 May 2018 18:14:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h5LsTegMCcxeRmG4nt) @umtyzc Thanks very much, this looks like it has more depth than IBM's Coursera course.

geekoftheweek (Wed, 09 May 2018 18:14:00 GMT):
@umtyzc Thanks very much, this looks like it has more depth than IBM's Coursera course.

geekoftheweek (Wed, 09 May 2018 18:21:35 GMT):
specifically, the error message I'm currently trying to work through is... Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org3MSP])

geekoftheweek (Wed, 09 May 2018 18:21:35 GMT):
in the short term, the error message I'm currently trying to work through is... Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org3MSP])

jsmithmap (Wed, 09 May 2018 18:59:51 GMT):
Has joined the channel.

gskerry (Wed, 09 May 2018 19:34:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MnMywff7CyikuXBAF) @RohitYadav2 Same here

gskerry (Wed, 09 May 2018 19:45:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mG8rejvHaAatC8M5X) @RohitYadav2 Same. Thanks!

rachit-khare (Wed, 09 May 2018 19:45:43 GMT):
Has joined the channel.

rachit-khare (Wed, 09 May 2018 20:07:29 GMT):
@gskerry I was having the same issue `Cannot find module ./api.js`. I'm trying to run `fabcar` within the Fabric Samples directory. I'm able to enrollAdmin, registerUser and query. But invoke fails

rachit-khare (Wed, 09 May 2018 20:07:29 GMT):
@gskerry I was having the same issue `Cannot find module ./api.js`. I'm trying to run `fabcar` within the Fabric Samples directory. With the fix of versioning within package.json I'm able to enrollAdmin, registerUser and query. But invoke fails

rachit-khare (Wed, 09 May 2018 20:08:45 GMT):
The stack trace is as follows: ``` TypeError: Cannot read property 'getConnectivityState' of undefined at ClientDuplexStream. (/Users/rachitkhare/web/sites/practice/blockchain/fabric-samples/fabcar/node_modules/fabric-client/lib/EventHub.js:308:56) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) at Object.onReceiveMessage (/Users/rachitkhare/web/sites/practice/blockchain/fabric-samples/fabcar/node_modules/grpc/src/client_interceptors.js:1302:19) at InterceptingListener.recvMessageWithContext (/Users/rachitkhare/web/sites/practice/blockchain/fabric-samples/fabcar/node_modules/grpc/src/client_interceptors.js:629:19) at /Users/rachitkhare/web/sites/practice/blockchain/fabric-samples/fabcar/node_modules/grpc/src/client_interceptors.js:728:14 ``` Anyone else having similar issues?

rachit-khare (Wed, 09 May 2018 20:18:49 GMT):
Rolled back grpc to 1.10.1 - that fixed it.

VadimInshakov (Wed, 09 May 2018 20:25:35 GMT):
I have been trying to start the network for the fourth week. I struggle with problems without the help of experienced people, but it's very hard and long. Please help me. https://stackoverflow.com/questions/50256241/hyperledger-composer-business-network-installation-error

SmartContract2018 (Wed, 09 May 2018 21:16:09 GMT):
I am planning to write a chaincode that provides a look-up service using its internal lookup table. I know there could be multiple way to achieve this functionality but I would like this question to stay focused on this design pattern. The question: - what is the size limitation on a chaincode as my lookup data can get very large?

SB85 (Wed, 09 May 2018 22:40:16 GMT):
sujajhdjashds

SB85 (Wed, 09 May 2018 22:40:35 GMT):
jfdshgjsdhfhgfd

SB85 (Wed, 09 May 2018 23:14:47 GMT):
abc

SB85 (Wed, 09 May 2018 23:16:49 GMT):
gfhdgjhdkjfhgk;df

gskerry (Wed, 09 May 2018 23:42:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pKdyM6kCf5YYKq4Bw) @rachit-khare I imagine that was the issue. I was using 1.9.1 and it seemed to work

DennisM330 (Wed, 09 May 2018 23:53:05 GMT):
RohitYadav2 That worked to get rid of the API error, I had ~1.1.0 which means approximately equal to that release which probably means it pulled in 1.1.1 instead of 1.1

DennisM330 (Wed, 09 May 2018 23:53:44 GMT):
@RohitYadav2 Nevertheless I opened an issue in JIRA as someone needs to fix this

DennisM330 (Thu, 10 May 2018 00:06:30 GMT):
For the FabCar example to work, you need the package. json to look like this in the dependencies section "dependencies": { "fabric-ca-client": "1.1.0", "fabric-client": "1.1.0", "grpc": "1.10.1"

DennisM330 (Thu, 10 May 2018 00:07:08 GMT):
Hopefully this will be fixed soon so you do not need to modify the package.json that comes down from Github

SubhraMazumdar (Thu, 10 May 2018 02:43:34 GMT):
Did anyone try integrating any new crypto package to Fabric environment ?

SubhraMazumdar (Thu, 10 May 2018 02:43:34 GMT):
Did anyone try integrating any new crypto package with Fabric environment ?

Daiki0124 (Thu, 10 May 2018 03:09:07 GMT):
Hi everyone! Where is roadmap?

Dom.Deevey (Thu, 10 May 2018 05:22:41 GMT):
Hi Everyone, Is it possible to link a timer/clock to the Hyperledge Fabric so you can see when people have logged in and out? Thanks for your help.

SudheerKaspa (Thu, 10 May 2018 06:52:06 GMT):
Hi I want to deploy network in fabric using node js chain-code.Can someone give links for tutorial of Node js Chain code deployment??

mdvenkatesh (Thu, 10 May 2018 07:23:01 GMT):
Has joined the channel.

mdvenkatesh (Thu, 10 May 2018 07:23:24 GMT):
Composer run time (0.19.4) is not compatible with client (0.19.2) trying to downgrade or upgrade i have uninstall/install the composer npm uninstall -g composer-cli npm install -g composer-cli and i have run teardownFabric.sh go the the following error .FileNotFoundError: [Errno 2] No such file or directory: '/cygdrive/c/Users/Hiii /workspace/HLF-Windows-Fabric-Tool/fabric-scripts/hlfv11/composer/docker-compose.yml *is there any simple way just ugrade or downgrade and make both in the same sync*

FlorentinoSainz (Thu, 10 May 2018 07:40:17 GMT):
Has joined the channel.

Marc.K (Thu, 10 May 2018 07:45:29 GMT):
Hey Guys How would an architecture look for the following example: I have one channel with a lot of participants. Now there should be transactions between two parties, so only those two need to endorse it. How would the endorsement policy look for such a case and where would the verification take place, that the involved two endorsed it?

Veda2Vratha (Thu, 10 May 2018 07:59:25 GMT):
Hello All, Any one Please help me to solve this issue

Veda2Vratha (Thu, 10 May 2018 07:59:26 GMT):
veda@Veda MINGW64 /D/Hyperledger/fabric-samples/fabcar ((v1.1.0)) $ npm install > dtrace-provider@0.8.6 install D:\Hyperledger\fabric-samples\fabcar\node_modules\dtrace-prov ider > node-gyp rebuild || node suppress-error.js D:\Hyperledger\fabric-samples\fabcar\node_modules\dtrace-provider>if not defined npm_config_n ode_gyp (node "C:\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modul es\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else ( node "C:\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modules\node-g yp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add th e "/m" switch. > pkcs11js@1.0.15 install D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js > node-gyp rebuild D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modules\npm- lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C :\Users\veda.CAPTIVATESOFT.000\new_directory_name\node_modules\npm\node_modules\node-gyp\bin\ node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add th e "/m" switch. CL : fatal error C1510: Cannot load language resource clui.dll. [D:\Hyperledger\fabric-sample s\fabcar\node_modules\pkcs11js\build\pkcs11.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\veda.CAPTIVATESOFT.000\new_directory_name \node_modules\npm\node_modules\node-gyp\lib\build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\veda.CAPTIVATESOFT.000\\ne w_directory_name\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd D:\Hyperledger\fabric-samples\fabcar\node_modules\pkcs11js gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.15 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output a bove. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\veda.CAPTIVATESOFT.000\AppData\Roaming\npm-cache\_logs\2018-05-10T07_40 _54_619Z-debug.log

SaraEmily (Thu, 10 May 2018 08:02:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ok7dF4gccKcLZGZNR) @Veda2Vratha Hi, maybe try the solutions presented here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/78a72624-b89e-4989-944d-6ce86916d2f1/fatal-error-c1510-cannot-load-language-resource-cluidll?forum=msbuild

Veda2Vratha (Thu, 10 May 2018 08:03:08 GMT):
Thanks i will check it once

Veda2Vratha (Thu, 10 May 2018 08:05:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ok7dF4gccKcLZGZNR) Still Same issue

tronglx (Thu, 10 May 2018 08:35:48 GMT):
Has joined the channel.

SaraEmily (Thu, 10 May 2018 08:47:39 GMT):
Hi, I'm running fabric in Docker on a Windows8 machine and when I have more then a few peers I always get a warning like: WARNING: Connection pool is full, discarding connection: docker-ip-address And my script fails because of the connection timeout. Does anyone know why or how to solve this problem? I've already disable gossip which helpt a little.

Veda2Vratha (Thu, 10 May 2018 09:36:45 GMT):
for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:

Veda2Vratha (Thu, 10 May 2018 09:36:45 GMT):
Any one help me on this error : for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:

MrLoffciak (Thu, 10 May 2018 09:41:08 GMT):
Hi everyone. How can I set a peer not to endorse a proposal? I'm looking at BYFN example.

umtyzc (Thu, 10 May 2018 09:55:41 GMT):
http://hyperledger-fabric.readthedocs.io/en/release-1.1/endorsement-policies.html look at this... @MrLoffciak [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YJKotihCsozirXEwy)

RohitYadav2 (Thu, 10 May 2018 10:02:44 GMT):
Hi guys can you please let me know how to register chaincode with a peer from the local environment Here is a brief scenario :- Let See I'm running a networking using basic-network from Hyperledger smaples in dev-mode and Now I want to write a chaincode in NodeJS and want to register with peer0.org1.example.com, So can you please let me know How should I register this with my Peer. This is what I'm running from from terminal from NodeJS Chaincode Development Directory :- *CORE_CHAINCODE_ID_NAME="mycc:v0" npm start -- --peer.address grpc://peer0.org1.example.com:7051* but I'm getting *ERROR [lib/chaincode.js] uncaughtException: Cannot read property 'ns' of null* So please help to get out of his error

MrLoffciak (Thu, 10 May 2018 10:26:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SZgqCRFpYfrQEgFTQC) @umtyzc Thanks. I've seen that before. Maybe I haven't asked clearly, but I was interested in the situation, in which is able to reject the proposal. How is it possible to achive?

MrLoffciak (Thu, 10 May 2018 10:26:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SZgqCRFpYfrQEgFTQC) @umtyzc Thanks. I've seen that before. Maybe I haven't asked clearly, but I was interested in the situation, in which peer is able to reject the proposal. How is it possible to achive?

rajeshp (Thu, 10 May 2018 10:56:28 GMT):
Has joined the channel.

andreamagagna (Thu, 10 May 2018 10:57:29 GMT):
Has joined the channel.

andreamagagna (Thu, 10 May 2018 10:57:51 GMT):
Hi everyone! Can anyone help me with this? https://stackoverflow.com/q/50269487/9591374

gravity (Thu, 10 May 2018 12:21:41 GMT):
Hi there is it possible to add a new Org to a network without shutting down a network?

MarceloAzevedo (Thu, 10 May 2018 12:25:40 GMT):
Has joined the channel.

prakhar 5 (Thu, 10 May 2018 12:26:10 GMT):
Has joined the channel.

MarceloAzevedo (Thu, 10 May 2018 12:35:43 GMT):
Hello guys! I'm new on Hyperledger Fabric technologies, so, I started by taking a look on this page http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html. I was going pretty well through the sessions until I reach this part http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html#create-join-channel My problem is: every command I sent to peer seems to be incorrect. At the very first one, I got: `Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium ` I started to look on Google to get an answer and I found a guy who had the same problem and in his case, the channel was already created. So, I ran the command `peer channel list` and here is the results: `2018-05-10 12:32:33.077 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel 2018-05-10 12:32:33.081 UTC [main] main -> INFO 002 Exiting..... ` So, I moved on to the next command to update anchor peers and I got the following error: `Error: Invalid channel create transaction : No configtx file name supplied ` Can anybody help me on this? I don't know what to do

MarceloAzevedo (Thu, 10 May 2018 12:35:43 GMT):
Hello guys! I'm new on Hyperledger Fabric technologies, so, I started by taking a look on this page http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html. I was going pretty well through the sessions until I reach this part http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html#create-join-channel My problem is: every command I sent to peer seems to be incorrect. At the very first one, I got: `Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium` I started to look on Google to get an answer and I found a guy who had the same problem and in his case, the channel was already created. So, I ran the command `peer channel list` and here is the results: `2018-05-10 12:32:33.077 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel 2018-05-10 12:32:33.081 UTC [main] main -> INFO 002 Exiting.....` So, I moved on to the next command to update anchor peers and I got the following error: `Error: Invalid channel create transaction : No configtx file name supplied` Can anybody help me on this? I don't know what to do

Sunshine-CFO (Thu, 10 May 2018 12:49:03 GMT):
Has joined the channel.

Sunshine-CFO (Thu, 10 May 2018 12:49:25 GMT):
Hi! I am interested in exploring/using quilt for a payment platform. Can you direct me to any platforms that are currently using quilt for this purpose, to better understand it's potential?

gravity (Thu, 10 May 2018 12:51:42 GMT):
@Sunshine-CFO try to ask in #quilt

gravity (Thu, 10 May 2018 13:04:12 GMT):
Hello Can someone help me to understand the difference between users(created via sdk) and peers? For example, there is an org0 with two peers (crypto materials are generated by fabric-ca). If I create a new user using sdk, should I run a new peer for this user? Or I missunderstood the difference between users and peers?

hrt031293 (Thu, 10 May 2018 13:15:17 GMT):

Screenshot from 2018-05-10 18-03-05.png

jrosmith (Thu, 10 May 2018 13:33:07 GMT):
@gravity and organization can have many users, and an org can also have many peers. the peer is just the state machine for the organization that processes transactions, but the users are the ones that generate them.

jrosmith (Thu, 10 May 2018 13:34:18 GMT):
@gravity this video covers adding new orgs to an existing network, though it was for 1.0 and not 1.1: https://www.youtube.com/watch?v=DKuGU5CYV_E&feature=youtu.be

gravity (Thu, 10 May 2018 13:35:29 GMT):
@jrosmith ok, got it. and there one more question: when I register new user, I have to enrol this user to receive certifacate and keys to be able to perform transactions, is it correct?

jrosmith (Thu, 10 May 2018 14:07:06 GMT):
@gravity yes, that is correct

gravity (Thu, 10 May 2018 14:07:29 GMT):
@jrosmith now it's clear, thanks

adave (Thu, 10 May 2018 16:41:04 GMT):
Has joined the channel.

ikinique (Thu, 10 May 2018 17:21:08 GMT):
Setup of sample 2 org network on single linux machine. How to configure CA and certificates to enable RESTAPI from a second machine to push data into the fabric? Any advice/tips?

ikinique (Thu, 10 May 2018 17:21:08 GMT):
I used byfn to setup of sample 2 org network on single linux machine. That works OK. But How to configure CA and certificates to enable RESTAPI from a second physical machine to push data into the fabric? Any advice/tips?

MarceloAzevedo (Thu, 10 May 2018 19:06:06 GMT):
hey @ikinique, did you setup these networks using the main documentation?

alejandrovelez7 (Thu, 10 May 2018 19:27:02 GMT):
is there a way to see the actual blocks generated from couch db?

hyperbran (Thu, 10 May 2018 20:14:34 GMT):
In a private HLF blockchain, I want to transfer some data between nodes that are only to be used during the login session. After the session is finished, e.g. I go for a lunch and the session expires, I would like all data that were exchanged during the session to be discarded. For example, 100s and 100s of users use their sessions to exchange data, and if these data are not discarded later on, they would grow out of proportion. So I would like all these session related data from the ledger. Is that technically possible in HLF?

theruss (Thu, 10 May 2018 20:15:43 GMT):
Has joined the channel.

theruss (Thu, 10 May 2018 20:17:12 GMT):
@alejandrovelez7 Do youy want to query a single peer's database, or the contents of the entire network? Technically speaking, shouldn't they all be the same? Reagrdless, I assume Fabric has a CLI command to do that?

alejandrovelez7 (Thu, 10 May 2018 20:23:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E6nkaewcx6L4YeQED) @theruss wanted to see if just the hashes were available for the entire network this is just during the writing your first application section of the fabric docs

alejandrovelez7 (Thu, 10 May 2018 20:23:44 GMT):
essentially I wanted to see the equivalent of `/var/hyperledger/production/orderer/chains/mychannel/blockfile_000000`

theruss (Thu, 10 May 2018 20:26:02 GMT):
Like I said above, there should be a CLI command for querying the DB itself, but a better idea is to get an idea of what the _entire_ network looks like. For that there should be an API endpoint that can be queried with e.g. curl or use Hyperledger Explorer.

alejandrovelez7 (Thu, 10 May 2018 20:29:06 GMT):
@theruss yeah that would be great, i'm looking for a way to simplify how many blocks are currently in the chain, run a createCar through the node sdk and then show the results but i'm struggling

alejandrovelez7 (Thu, 10 May 2018 20:30:09 GMT):
my couch db port is open so I can view it through fauxton at http://localhost:5984/_utils/ but there really isn't any reference there to the chain state which would make sense I guess

theruss (Thu, 10 May 2018 20:42:02 GMT):
@alejandrovelez7 Sorry, chap I can't help you any further than that. I've read a ton about these technologies, and only now am I getting a chance to go hands-on. I'll be back :-)

alejandrovelez7 (Thu, 10 May 2018 20:43:07 GMT):
@theruss no problem man appreciate the help! it's definitely not the easiest thing to learn would suggest to not use a windows computer though haha

theruss (Thu, 10 May 2018 20:43:32 GMT):
Ha! Not much chance of that. I work at a 100% OSS company!

nfrunza (Thu, 10 May 2018 22:09:44 GMT):
Has joined the channel.

nfrunza (Thu, 10 May 2018 22:14:03 GMT):
Hello everyone, was anyone able to create a channel using API and not cryptogen tool ? and which SDK ?

rohitsahu21 (Fri, 11 May 2018 00:29:38 GMT):
make command not work my ubuntu system

rohitsahu21 (Fri, 11 May 2018 00:29:55 GMT):
sudo apt-get build-dep program

rohitsahu21 (Fri, 11 May 2018 00:30:25 GMT):
make: *** No rule to make target 'install'. Stop.

rohitsahu21 (Fri, 11 May 2018 00:30:40 GMT):
what i do

Daiki0124 (Fri, 11 May 2018 01:51:47 GMT):
Where is block in peer ?

Daiki0124 (Fri, 11 May 2018 01:51:47 GMT):
Where is worldstate in peer ?

ikinique (Fri, 11 May 2018 02:06:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fwEhB5ukox9wAcxAT) @MarceloAzevedo Yes I did

tronglx (Fri, 11 May 2018 02:44:14 GMT):
Hi all, did anyone have seen this error: "Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.kaopiz.com,tx:4648a1e1643e8696e83b0088297966847cf631266b584df0cc853c53e8f47958)" when instantiate chaincode to the channel? There is docker logs info: 2018-05-11 02:25:30.472 UTC [deliveryClient] StartDeliverForChannel -> DEBU 3ec This peer will pass blocks from orderer service to other peers for channel mychannel 2018-05-11 02:25:30.480 UTC [deliveryClient] connect -> DEBU 3ed Connected to orderer.kaopiz.com:7050 2018-05-11 02:25:30.480 UTC [deliveryClient] connect -> DEBU 3ee Establishing gRPC stream with orderer.kaopiz.com:7050 ... 2018-05-11 02:25:30.480 UTC [deliveryClient] afterConnect -> DEBU 3ef Entering 2018-05-11 02:25:30.480 UTC [deliveryClient] RequestBlocks -> DEBU 3f0 Starting deliver with block [1] for channel mychannel 2018-05-11 02:25:30.482 UTC [deliveryClient] afterConnect -> DEBU 3f1 Exiting 2018-05-11 02:30:24.997 UTC [chaincode] launchAndWaitForRegister -> DEBU 3f2 stopping due to error while launching: timeout expired while starting chaincode

tronglx (Fri, 11 May 2018 02:45:03 GMT):
PLease help me, thanks!

bh4rtp (Fri, 11 May 2018 03:11:09 GMT):
@Daiki0124 do you mean fabric roadmap? please visit https://wiki.hyperledger.org/projects/fabric/roadmap

lclclc (Fri, 11 May 2018 03:45:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PfzxqfQLG4n5aYBmJ) @nfrunza Use this https://github.com/hyperledger/fabric-sdk-node you can create channel, but the crypto materials if you don't want cryptogen you need fabric-ca server creating them for you.

nfrunza (Fri, 11 May 2018 03:46:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yvqw6F7AvywGfYF32) @lclclc Thank you

venkat12 (Fri, 11 May 2018 04:47:09 GMT):
Has joined the channel.

venkat12 (Fri, 11 May 2018 04:47:17 GMT):
Hi Everyone, ive started exploring Hyperledger fabric 1.1 in Kafka. Can someone help me to understand what are the files i should mount in order to have persistent data

sgaddam (Fri, 11 May 2018 05:40:30 GMT):
Has joined the channel.

parthasen (Fri, 11 May 2018 05:42:54 GMT):
Has joined the channel.

Ammu (Fri, 11 May 2018 06:46:23 GMT):
fabric-ccenv what is the meaning of this

andreamagagna (Fri, 11 May 2018 07:29:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3Fp7tpx5L9cxqewm6) @ikinique Check this https://github.com/hyperledger/fabric-sdk-rest

kjs311 (Fri, 11 May 2018 08:07:44 GMT):
Has joined the channel.

kjs311 (Fri, 11 May 2018 08:07:50 GMT):
hi

kjs311 (Fri, 11 May 2018 08:08:15 GMT):
how to change postgresql to mariadb..

dantarakan (Fri, 11 May 2018 09:01:18 GMT):
Has joined the channel.

Alaa_Migdady (Fri, 11 May 2018 09:05:15 GMT):
Has joined the channel.

Alaa_Migdady (Fri, 11 May 2018 09:08:06 GMT):
hi all .. I am following "build your first network" tutorial ,, when trying to create a channel from docker cli ,, I have this error Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable this is the command I usedpeer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

SaraEmily (Fri, 11 May 2018 09:14:35 GMT):
WARNING: Connection pool is full, discarding connection: 192.168.99.100 (<- the IP address of my Docker)

SaraEmily (Fri, 11 May 2018 09:15:33 GMT):
Hi, I'm running fabric in Docker on a Windows8 machine and when I have more then a few peers I always get a warning like: WARNING: Connection pool is full, discarding connection: docker-ip-address And my script fails because of the connection timeout. Does anyone know why or how to solve this problem?

jsmithmap (Fri, 11 May 2018 09:34:05 GMT):
Hello Everyone. I am in the process of setting up a test network where I have a single peer running on a remote server. I think I have all of the basic requirements setup. Using "peer channel create" and "peer channel join" on the peer I have successfully created and joined a channel. I am using composer so next I created a connection from a remote composer-cli and successfully installed a .bna file with "composer network install". Finally I tried to start the network using "composer network start" from the remote composer-cli but it hangs and then times out with the error "Error: 2 UNKNOWN: error starting container: no such image". In the logs on the Peer I see "Attempting build with image hyperledger/fabric-ccenv:x86_64-1.1.0" but then it fails with "start-could not recreate container post recreate image: no such image". If I instead run "peer chaincode instantiate" on the peer to try to instantiate the installed chaincode I get the same result. Any advice?

yacovm (Fri, 11 May 2018 09:37:24 GMT):
@SaraEmily - can you do `netstat` and see what connections are open?

yacovm (Fri, 11 May 2018 09:40:38 GMT):
(as a side note... i'm recommend just using a linux VM , i.e with VirtualBox instead of running this thing on windows.)

jle-quel (Fri, 11 May 2018 09:42:19 GMT):
Has joined the channel.

jle-quel (Fri, 11 May 2018 09:42:27 GMT):
Hi, I'm following the `Write you app` tutorial with fabric, but I keep having this issue when `node enrollAdmin.js` -> `Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]` Did it happened to any of you ?

SaraEmily (Fri, 11 May 2018 09:48:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g22x8vZjYcT3pnAsN) @yacovm Hi, this is what netstat gives me: Active Connections Proto Local Address Foreign Address State TCP 10.253.197.125:49186 13.92.209.232:https ESTABLISHED TCP 10.253.197.125:49197 fra02-006:http ESTABLISHED TCP 10.253.197.125:49513 ec2-52-59-24-122:https ESTABLISHED TCP 10.253.197.125:49515 ec2-52-59-24-122:https ESTABLISHED TCP 10.253.197.125:49643 a104-76-56-75:https ESTABLISHED TCP 10.253.197.125:51592 r-252-41-234-77:https CLOSE_WAIT TCP 10.253.197.125:51857 edge-star-shv-01-arn2:https ESTABLISHED TCP 10.253.197.125:51882 ec2-35-161-32-245:https ESTABLISHED TCP 10.253.197.125:52267 ec2-35-161-32-245:https TIME_WAIT TCP 10.253.197.125:52338 192.0.73.2:https TIME_WAIT TCP 10.253.197.125:52363 199.96.57.6:http TIME_WAIT TCP 10.253.197.125:52364 s:https TIME_WAIT TCP 10.253.197.125:52375 ec2-35-160-58-123:https TIME_WAIT TCP 10.253.197.125:52376 ec2-35-160-58-123:https TIME_WAIT TCP 10.253.197.125:52377 my:https ESTABLISHED TCP 10.253.197.125:52380 wordpress:https TIME_WAIT TCP 10.253.197.125:52382 192.0.76.3:https TIME_WAIT TCP 10.253.197.125:52399 185.199.111.153:https ESTABLISHED TCP 10.253.197.125:52409 my:https ESTABLISHED TCP 127.0.0.1:6543 SarasDator:51443 ESTABLISHED TCP 127.0.0.1:49285 SarasDator:49286 ESTABLISHED TCP 127.0.0.1:49286 SarasDator:49285 ESTABLISHED TCP 127.0.0.1:49309 SarasDator:49310 ESTABLISHED TCP 127.0.0.1:49310 SarasDator:49309 ESTABLISHED TCP 127.0.0.1:49314 SarasDator:49315 ESTABLISHED TCP 127.0.0.1:49315 SarasDator:49314 ESTABLISHED TCP 127.0.0.1:49322 SarasDator:49323 ESTABLISHED TCP 127.0.0.1:49323 SarasDator:49322 ESTABLISHED TCP 127.0.0.1:50786 SarasDator:50787 ESTABLISHED TCP 127.0.0.1:50787 SarasDator:50786 ESTABLISHED TCP 127.0.0.1:51443 SarasDator:6543 ESTABLISHED TCP 127.0.0.1:51878 SarasDator:51879 ESTABLISHED TCP 127.0.0.1:51879 SarasDator:51878 ESTABLISHED TCP 192.168.99.1:52349 192.168.99.100:2376 TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:51885 [2603:1026:7:52::2]:https ESTABLISHED TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52134 arn09s11-in-x0e:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52136 arn11s03-in-x02:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52347 arn09s11-in-x02:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52378 g2a02-26f0-2400-0000-0000-0000-0210-9b2a:http TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52379 arn09s11-in-x0a:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52384 arn09s11-in-x0a:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52387 [2400:cb00:2048:1::6814:740b]:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52394 arn11s04-in-x16:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52395 arn09s11-in-x06:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52396 arn09s11-in-x03:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52397 [2400:cb00:2048:1::6814:740b]:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52400 arn09s10-in-x02:https TIME_WAIT This is after my script crashes but the containers are still up an runnit

SaraEmily (Fri, 11 May 2018 09:48:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g22x8vZjYcT3pnAsN) @yacovm Hi, this is what netstat gives me: Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:6543 SarasDator:51443 ESTABLISHED TCP 127.0.0.1:49285 SarasDator:49286 ESTABLISHED TCP 127.0.0.1:49286 SarasDator:49285 ESTABLISHED TCP 127.0.0.1:49309 SarasDator:49310 ESTABLISHED TCP 127.0.0.1:49310 SarasDator:49309 ESTABLISHED TCP 127.0.0.1:49314 SarasDator:49315 ESTABLISHED TCP 127.0.0.1:49315 SarasDator:49314 ESTABLISHED TCP 127.0.0.1:49322 SarasDator:49323 ESTABLISHED TCP 127.0.0.1:49323 SarasDator:49322 ESTABLISHED TCP 127.0.0.1:50786 SarasDator:50787 ESTABLISHED TCP 127.0.0.1:50787 SarasDator:50786 ESTABLISHED TCP 127.0.0.1:51443 SarasDator:6543 ESTABLISHED TCP 127.0.0.1:51878 SarasDator:51879 ESTABLISHED TCP 127.0.0.1:51879 SarasDator:51878 ESTABLISHED TCP 192.168.99.1:52349 192.168.99.100:2376 TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:51885 [2603:1026:7:52::2]:https ESTABLISHED TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52134 arn09s11-in-x0e:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52136 arn11s03-in-x02:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52347 arn09s11-in-x02:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52378 g2a02-26f0-2400-0000-0000-0000-0210-9b2a:http TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52379 arn09s11-in-x0a:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52384 arn09s11-in-x0a:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52387 [2400:cb00:2048:1::6814:740b]:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52394 arn11s04-in-x16:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52395 arn09s11-in-x06:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52396 arn09s11-in-x03:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52397 [2400:cb00:2048:1::6814:740b]:https TIME_WAIT TCP [2001:6b0:17:fc09:d8f6:a4f7:afae:f90d]:52400 arn09s10-in-x02:https TIME_WAIT This is after my script crashes but the containers are still up an runnit

SaraEmily (Fri, 11 May 2018 09:51:03 GMT):
And the ip-addresses of the containers are 172.18.0.X where X is in range 2-23

yacovm (Fri, 11 May 2018 10:00:53 GMT):
all these are your computer's. More fabric-related information can be useful... like what script are you running, what's the environment of the fabric running in docker, etc. etc.

SaraEmily (Fri, 11 May 2018 10:06:49 GMT):
I've made a modification to the byfn script, basically added a simple python-script which generates an arbitrary number of peers in the yaml-config files. The rest is the same as the byfn-script, using the same chaincode as well. I'm using Docker version 18.03.0-ce, build 0520e24302 on Windows 8. The script works just fine up to 17 peers but over that it crashes every single time. I'm increaded the CLI-timeout but it has not help. I've also disabled gossip which helpt a bit. The docker logs for all the peers look just fine but in the logs for the orderer I can see that i has trouble connecting to the clis ip adress: 2018-05-11 09:44:53.929 UTC [common/deliver] Handle -> WARN 07d Error reading from 172.18.0.23:41180: rpc error: code = Canceled desc = context canceled

yacovm (Fri, 11 May 2018 10:12:31 GMT):
oh... that makes sense.

yacovm (Fri, 11 May 2018 10:12:42 GMT):
see, 17 peers means (17 choose 2) connections.

yacovm (Fri, 11 May 2018 10:12:42 GMT):
see, 17 peers means (17 choose 2) ~ 136 connections.

yacovm (Fri, 11 May 2018 10:13:15 GMT):
maybe it's too much for docker-compose?

SaraEmily (Fri, 11 May 2018 10:13:38 GMT):
Yes I was thinking the same thing but have not been able to find any documentation at all

yacovm (Fri, 11 May 2018 10:13:45 GMT):
documentation for what?

SaraEmily (Fri, 11 May 2018 10:13:58 GMT):
for how many connection docker-compose can handle

yacovm (Fri, 11 May 2018 10:14:11 GMT):
So, from my experience when i tried to demo lots of gossip stuff on the same machine - at some point the peers had communication problems if they were too many of them

yacovm (Fri, 11 May 2018 10:14:41 GMT):
> 2018-05-11 09:44:53.929 UTC [common/deliver] Handle -> WARN 07d Error reading from 172.18.0.23:41180: rpc error: code = Canceled desc = context canceled that's not an error

yacovm (Fri, 11 May 2018 10:14:56 GMT):
that warning message is because the clients don't say goodbye in a nice way

yacovm (Fri, 11 May 2018 10:15:00 GMT):
and close the connection abruptly

SaraEmily (Fri, 11 May 2018 10:15:01 GMT):
Okay, so I need more machines and to use docker swarm if I want more peer?

SaraEmily (Fri, 11 May 2018 10:15:12 GMT):
aha, that interesting

yacovm (Fri, 11 May 2018 10:15:13 GMT):
what are you trying to do?

yacovm (Fri, 11 May 2018 10:15:22 GMT):
why are you running 17 peers, etc.

SaraEmily (Fri, 11 May 2018 10:15:36 GMT):
I want to do some scalability tests for a report in school

SaraEmily (Fri, 11 May 2018 10:16:08 GMT):
so I want up to a 100 peer preferably ;)

yacovm (Fri, 11 May 2018 10:16:51 GMT):
what kind of sadistic teacher gives his/her students to deploy large fabric networks for a report?

SaraEmily (Fri, 11 May 2018 10:17:07 GMT):
Sadly it was my own choice....

yacovm (Fri, 11 May 2018 10:17:19 GMT):
if you can have 5 VMs

yacovm (Fri, 11 May 2018 10:17:30 GMT):
maybe you can reach some decent amount

yacovm (Fri, 11 May 2018 10:17:38 GMT):
do you have to use gossip?

yacovm (Fri, 11 May 2018 10:17:42 GMT):
or can you disable it?

SaraEmily (Fri, 11 May 2018 10:17:52 GMT):
Yepp, I'll give that a try. No I don't need gossip

yacovm (Fri, 11 May 2018 10:18:03 GMT):
just to deploy and test? what is the report about?

SaraEmily (Fri, 11 May 2018 10:18:06 GMT):
disabling gossip got me from 8 peers to 17 peers

yacovm (Fri, 11 May 2018 10:18:14 GMT):
oh, well 17 peers is very low

SaraEmily (Fri, 11 May 2018 10:18:36 GMT):
It is a scalability comparision between Fabric and the distributed database Cassandra

yacovm (Fri, 11 May 2018 10:18:45 GMT):
how much memory do you have in your VM?

yacovm (Fri, 11 May 2018 10:18:45 GMT):
how much memory do you have in your computer?

SaraEmily (Fri, 11 May 2018 10:19:38 GMT):
448 GB in total but a lot less avaliable currently.

yacovm (Fri, 11 May 2018 10:19:59 GMT):
oh... you should then have no problems at all. I have a better idea for you

yacovm (Fri, 11 May 2018 10:20:02 GMT):
don't use docker at all

yacovm (Fri, 11 May 2018 10:20:08 GMT):
use plain processes

yacovm (Fri, 11 May 2018 10:20:20 GMT):
you just need different paths and different ports

yacovm (Fri, 11 May 2018 10:20:27 GMT):
and you can make it work, I think

yacovm (Fri, 11 May 2018 10:20:34 GMT):
but - 448GB and windows 8?

yacovm (Fri, 11 May 2018 10:20:37 GMT):
doesn't make any sense

SaraEmily (Fri, 11 May 2018 10:20:55 GMT):
Oh, I'll give that a go! haha why not?

yacovm (Fri, 11 May 2018 10:21:07 GMT):
because windows eats up your memory

yacovm (Fri, 11 May 2018 10:21:28 GMT):
and always uses swap, i think

SaraEmily (Fri, 11 May 2018 10:21:33 GMT):
Yes, that's why I don't have so much avaliable

yacovm (Fri, 11 May 2018 10:21:34 GMT):
linux - only uses swap if it needs

SaraEmily (Fri, 11 May 2018 10:21:53 GMT):
I can get my hands on a Linux if I need, that's not my main concern :)

yacovm (Fri, 11 May 2018 10:22:17 GMT):
so i suggest you try running with linux, and if docker gives you problems then just use processes

yacovm (Fri, 11 May 2018 10:22:37 GMT):
you just need to cleverly change the `core.yaml` config

yacovm (Fri, 11 May 2018 10:22:40 GMT):
on each peer

yacovm (Fri, 11 May 2018 10:22:46 GMT):
and the `orderer.yaml` on each orderer

yacovm (Fri, 11 May 2018 10:23:20 GMT):
do you have to use kafka orderer btw?

SaraEmily (Fri, 11 May 2018 10:23:27 GMT):
Sounds, good, thanks for your help!

SaraEmily (Fri, 11 May 2018 10:23:30 GMT):
no I don't

yacovm (Fri, 11 May 2018 10:23:37 GMT):
oh you can use solo orderer?

yacovm (Fri, 11 May 2018 10:23:41 GMT):
1 orderer and many peers?

SaraEmily (Fri, 11 May 2018 10:24:00 GMT):
Yes that was the initial plan, but I don't know how that'll scale

yacovm (Fri, 11 May 2018 10:24:25 GMT):
it should scale pretty good. also i have a script that deploys automatically a solo orderer and peers to VMs: https://github.com/yacovm/fabricDeployment

yacovm (Fri, 11 May 2018 10:24:32 GMT):
you just need to configure ssh keys

SaraEmily (Fri, 11 May 2018 10:24:43 GMT):
Ah thanks a lot!

yacovm (Fri, 11 May 2018 10:24:48 GMT):
and for that i have somewhere another script that configures automatically ssh keys if you need

yacovm (Fri, 11 May 2018 10:25:06 GMT):
so i think it can be done...

yacovm (Fri, 11 May 2018 10:25:47 GMT):
if you have 448GB of memory you maybe can have 100 VMs of 3GB memory each

yacovm (Fri, 11 May 2018 10:26:06 GMT):
and then each VM will have its own ip address... give it a shot perhaps and then use my script?

yacovm (Fri, 11 May 2018 10:26:23 GMT):
or - just switch to linux server with 448 memory and use docker-compose all over again

yacovm (Fri, 11 May 2018 10:26:31 GMT):
i think maybe the windows docker-compose doesn't work well

SaraEmily (Fri, 11 May 2018 10:27:08 GMT):
I will give it a try for sure! At least I know I should abadon the current path I'm on

krabradosty (Fri, 11 May 2018 10:27:27 GMT):
Hi. I almost achieved the performance reported in this [article](https://arxiv.org/abs/1801.10228). I use LevelDB as a state database. My question is what is the cause of latency degradation? It starts near the 3000 rps. Do you have plans how to solve it? BTW, it's impossible to achieve such performance with CouchDB as a state database, because of errors with a connection between peer and CouchDB. Does Fabric community know about this error? I can share my investigations.

krabradosty (Fri, 11 May 2018 10:27:27 GMT):
Hi. I almost achieved the performance reported in this [article](https://arxiv.org/abs/1801.10228). I use LevelDB as a state database and official Fabcar chaincode. My question is what is the cause of latency degradation? It starts near the 3000 rps. Do you have plans how to solve it? BTW, it's impossible to achieve such performance with CouchDB as a state database, because of errors with a connection between peer and CouchDB. Does Fabric community know about this error? I can share my investigations.

hrt031293 (Fri, 11 May 2018 10:39:21 GMT):
Does anyone know about "Delta"? I had read that term somewhere in the docs only, "to calculate delta", regarding to that I am asking. Thanks in advance

yacovm (Fri, 11 May 2018 10:45:13 GMT):
@krabradosty what version did you test on?

krabradosty (Fri, 11 May 2018 10:45:33 GMT):
@yacovm 1.1.0

yacovm (Fri, 11 May 2018 10:46:14 GMT):
try with `master`, it should be faster now, i hope

yacovm (Fri, 11 May 2018 10:46:23 GMT):
i mean - the levelDB one

lclclc (Fri, 11 May 2018 10:50:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EBsd66TN8NNvA4pDP) @hrt031293 Usually delta means the differernce between new value and old value. For example, new value is 5 and old value is 1, the delta is 4.

hrt031293 (Fri, 11 May 2018 10:50:39 GMT):
@lclclc Ok, Thanks

krabradosty (Fri, 11 May 2018 10:51:20 GMT):
@yacovm LevelDB is an embedded in the peer database. I didn't choose it's version. If I understand correctly.

lclclc (Fri, 11 May 2018 10:59:56 GMT):
I guess he means this

lclclc (Fri, 11 May 2018 11:00:00 GMT):

Clipboard - 2018年5月11日晚上6点59分

lclclc (Fri, 11 May 2018 11:00:12 GMT):
@krabradosty

krabradosty (Fri, 11 May 2018 11:04:35 GMT):
I use docker images. x86_64-1.1.0

lclclc (Fri, 11 May 2018 11:05:29 GMT):
actually you can build yourself your environment.

yacovm (Fri, 11 May 2018 11:09:21 GMT):
@krabradosty i asked the fabric version

krabradosty (Fri, 11 May 2018 11:13:49 GMT):
1.1.0

kshitiz_leo (Fri, 11 May 2018 11:42:37 GMT):
Hey guys. Can you help me with the issue? _https://stackoverflow.com/questions/50291575/how-to-call-a-chaincode-from-another-chaincode-deployed-on-two-different-organiz_ Thank you

lclclc (Fri, 11 May 2018 11:44:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gPm4kdoNFXLQP27Hy) @kshitiz_leo https://github.com/hyperledger/fabric/blob/release-1.1/examples/chaincode/go/chaincode_example04/chaincode_example04.go

MarceloAzevedo (Fri, 11 May 2018 12:33:00 GMT):
Guys, I have a ledger question: suppose a ledger is part of a channel. what happens if this ledger gets down? how does it affect our network?

ascatox (Fri, 11 May 2018 13:59:05 GMT):
Hi All!!! I'm interested to use a *load balancer* to manage the load on my peers!!! Someone can help me?

gravity (Fri, 11 May 2018 14:18:54 GMT):
Hi there What actually consortium means in terms of Hyperledger? Is it obligatory to setup a consortium?

jeremyphelps (Fri, 11 May 2018 14:33:00 GMT):
Has joined the channel.

Vya4eslav (Fri, 11 May 2018 14:50:38 GMT):
Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity when i try to start first-network from fabric-simples.... what is wrong?

vivanno (Fri, 11 May 2018 15:22:57 GMT):
hi everyone, how to do if the first is down ? i have 6 peers but if the fisrt is down, the trasactoins failed :(

vivanno (Fri, 11 May 2018 15:23:26 GMT):
an idea ? thanks for your help, regards

MarceloAzevedo (Fri, 11 May 2018 16:05:53 GMT):
Hello guys, I have a question: a channel on hyperledger is always open? or it only opens when a transaction is stablished?

AntonyKakoudakis (Fri, 11 May 2018 16:35:28 GMT):
Has joined the channel.

XingqiangMao (Fri, 11 May 2018 17:51:06 GMT):
Hi Guys question on the network name. In the docker-compose-cli.yaml. I setup network as byfn, but why in the log the network name is net_byfn.

XingqiangMao (Fri, 11 May 2018 17:51:26 GMT):
How to set the net(COMPOSE_PROJECT_NAME)

edwardsm26 (Fri, 11 May 2018 18:09:48 GMT):
Has joined the channel.

TsvetanG (Fri, 11 May 2018 21:06:54 GMT):
@MarceloAzevedo : As per my understanding the peers are continuously gossiping on every channel they are part of ... so the channel communication is always open .. a peer doesn't know when the client is sending a transaction to the ordering service so they must keep up to date all the time

TsvetanG (Fri, 11 May 2018 21:11:23 GMT):
@XingqiangMao : https://docs.docker.com/compose/networking/

TsvetanG (Fri, 11 May 2018 21:11:34 GMT):
Note: Your app’s network is given a name based on the “project name”, which is based on the name of the directory it lives in. You can override the project name with either the --project-name flag or the COMPOSE_PROJECT_NAME environment variable.

friends110110 (Sat, 12 May 2018 02:46:32 GMT):
Why tlsca is different in different Org using cryptogen ?

ck01 (Sat, 12 May 2018 03:07:04 GMT):
is Fabric SDK go official yet?

friends110110 (Sat, 12 May 2018 03:38:37 GMT):
Why tlsca is different in different Org using cryptogen ?

chrisdurr (Sat, 12 May 2018 04:57:41 GMT):
Has joined the channel.

S.Pal (Sat, 12 May 2018 05:22:15 GMT):
Has joined the channel.

S.Pal (Sat, 12 May 2018 05:23:24 GMT):
Do I need GO 1.9 for setting up HyperLedger Fabric v1.1 chain code dev environment or can I use GO 1.10 ?

varun-raj (Sat, 12 May 2018 05:35:13 GMT):
For those who are looking to setup a network with multiple channels or multiple chaincode here is my new article : https://www.skcript.com/svr/setting-hyperledger-fabric-network-multiple-chaincodes-channels/

hariomgoyal (Sat, 12 May 2018 05:46:25 GMT):
Has joined the channel.

rogermylife (Sat, 12 May 2018 06:10:38 GMT):
Has joined the channel.

rogermylife (Sat, 12 May 2018 06:13:05 GMT):
HI Is there a solution for Android phone connecting and interacting with fabric??

JasBraich (Sat, 12 May 2018 07:04:29 GMT):
Has joined the channel.

JasBraich (Sat, 12 May 2018 07:04:46 GMT):
wondering is someone can help me. I am beginner and trying to get fabric setup on my computer. I have installed Oralce VM and within it Ubuntu. when Ubunto loads up it first fires off a message: /home/user/.profile:line 28:path:/usr/local/go/bin: no such directory

JasBraich (Sat, 12 May 2018 07:05:26 GMT):
Then during installation of Fabric.. I am getting errors with permissions of Docker.

JasBraich (Sat, 12 May 2018 07:07:18 GMT):
I have run: sudo usermod -a -G docker $jsb but when i run anything with Docker.. I get this error "docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. "

JasBraich (Sat, 12 May 2018 07:07:43 GMT):
if someone can help me get past this point that would be great..

rjain0701 (Sat, 12 May 2018 08:47:47 GMT):
Has joined the channel.

rjain0701 (Sat, 12 May 2018 08:59:07 GMT):
Hi All, I am new to Hyperledger Fabric. I am able to start test fabric network. Just started playing with fabric-java-sdk and able to run Junit unit test cases. I was struggling with my below queries. My queries might be silly. Please bear with me. 1.When a peer will be added at runtime then how to create the docker container for that and bring it up.Do we need to update the docker-compose.yaml file and run it again? 2. Is there any way to generate channel tx file from java sdk or we can only create it via configtx tool? Thanks in advance

DTiapan (Sat, 12 May 2018 09:26:57 GMT):
Has joined the channel.

caveman7 (Sat, 12 May 2018 10:04:11 GMT):
Has joined the channel.

ShivajiBose (Sat, 12 May 2018 10:44:25 GMT):
Has joined the channel.

monarch 1 (Sat, 12 May 2018 10:49:22 GMT):
Has joined the channel.

sampath06 (Sat, 12 May 2018 11:20:28 GMT):
In a distributed setup I have first org peers and the orderer on one server and the second org's peers on another server. When I invoke transactions on the first org's peers, the transaction goes through. But, when I try and invoke it on the second org's peers, I get the following error on the orderer and the transaction fails ``` 2018-05-12 11:15:00.251 UTC [grpc] Printf -> DEBU dce transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 172.18.0.4:7050->52.187.125.219:33832: read: connection reset by peer ```

sampath06 (Sat, 12 May 2018 12:21:53 GMT):
From the node sdk, the proposal was sent successfully, but the transaction fails with a timeout ``` ^[[36m[2018-05-12 11:15:06.566] [DEBUG] invoke-chaincode - ^[[39mSuccessfully sent Proposal and received ProposalResponse: Status - 200, message - "OK", metadata - "", endorsement signature: 0E^B!^@� ^[[32m[2018-05-12 11:15:36.582] [INFO] invoke-chaincode - ^[[39mresponse = {"success":false,"error":"Failed to send transaction and get notifications within the timeout period."} ```

Gegham (Sat, 12 May 2018 14:47:34 GMT):
Has joined the channel.

Gegham (Sat, 12 May 2018 14:50:50 GMT):
Hi all! I'm new to Hyperledger Fabric, and now looking course https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/76a52d35a9f848d7a6313e7a45c4e1db/?child=last and trying to run tuna-app , but when I run ./startFabric.sh , I got the following error OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"peer\": executable file not found in $PATH": unknown How can I solve this? Thanks in advance

nfrunza (Sat, 12 May 2018 15:45:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=whCTe62AWHnYu2JxP) @lclclc Do you have or know of any samples creating crypto for the channel using fabric-ca-client and not CLI tools?

Alaa_Migdady (Sat, 12 May 2018 16:19:59 GMT):
hiii all ... I am having this error ERROR: manifest for hyperledger/fabric-peer:latest not found how can I fix it ?? any help please

sampath06 (Sat, 12 May 2018 17:15:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=irGQWZuAXnjGhpGcB) Was using the IP address of the orderer in the node sdk config files. Fixed this by changing the IP address to the orderer name and adding the ip address in /etc/hosts. Not sure what is the correct solution, though

serkanerkan (Sat, 12 May 2018 18:24:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jmP6iqKFDyG26o3sW) @Gegham hi, did you check your gopath? $ echo $GOPATH

serkanerkan (Sat, 12 May 2018 18:24:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jmP6iqKFDyG26o3sW) @Gegham hi, did you check your gopath? $ echo $GOPATH You can follow this article. Please wipe everything and make a fresh install. https://medium.com/@serkanerkan/hyperledger-fabric-kurulumu-ubuntu-16-04-lte-virtualbox-664625af6bfa

papillon88 (Sun, 13 May 2018 04:23:39 GMT):
Hi, I'm trying to execute this command `docker-compose -f docker-compose-cli.yaml up -d` mentioned here @ http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#createchanneltx. Getting the following error : ``` Attaching to orderer.example.com, peer0.org1.example.com, peer1.org2.example.com, peer0.org2.example.com, peer1.org1.example.com, cli orderer.example.com | 2018-05-13 03:59:31.331 UTC [orderer/common/server] initializeLocalMsp -> CRIT 001 Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory peer0.org1.example.com | 2018-05-13 03:59:31.401 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer1.org2.example.com | 2018-05-13 03:59:31.626 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer0.org2.example.com | 2018-05-13 03:59:31.868 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory peer1.org1.example.com | 2018-05-13 03:59:33.290 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory orderer.example.com exited with code 1 peer0.org1.example.com exited with code 1 peer1.org2.example.com exited with code 1 peer1.org1.example.com exited with code 1 peer0.org2.example.com exited with code 1 ``` I'm executing the command in windows 10 git bash env. Hope this is the right forum to ask this question. If not, please point me to the right forum. Any help is appreciated.

caveman7 (Sun, 13 May 2018 07:16:12 GMT):
hi all, simple question: 1) in fabric deployed with leveldb chosen as the world state, is the world state stored in the peer or in chaincode container? 2) is there a way to manually query the contents of the leveldb? in couchdb we can connect directly to the couchdb instance and view the contents

yacovm (Sun, 13 May 2018 07:18:04 GMT):
@caveman7 1) peer, of course 2) not that i know of. I don't think you can open an embedded database twice.

mostaafa (Sun, 13 May 2018 08:09:29 GMT):
Has joined the channel.

mostaafa (Sun, 13 May 2018 08:09:43 GMT):
How can I change the peer port from 70XX to any with out use docker ports, Is there any key setting to configure ports?

jsmithmap (Sun, 13 May 2018 09:51:18 GMT):
Hi Everyone! I was wondering what would happen if the Orderer in a network fails. Obviously transactions would stop processing while the Orderer was down, but would it be possible to rebuild this machine and re-join it to the network. I understand that the Orderer contains a copy of the ledger so if this machine needed to be rebuilt how would it get the latest copy of the ledger back? Could it be copied from one of the Peers?

tsnyder (Sun, 13 May 2018 10:17:09 GMT):
This is a https://hub.docker.com/u/ibmblockchain question, not sure where to ask. The 1.1.0 versions have recently been uploaded and tagged, except for the couchdb images. There is a 0.4.6 image which was uploaded approximately the same time which is smaller than the normal couchdb images. Is this the right image, and it is just mis-tagged?

Santosh369 (Sun, 13 May 2018 10:54:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WtARzd8uGE6HFv9fY) @tsnyder Yes I think this is the right one but it is mis-tagged, as well as for zookeeper and kafka images.

tsnyder (Sun, 13 May 2018 10:55:38 GMT):
@Santosh369 Thanks

VadimInshakov (Sun, 13 May 2018 11:48:23 GMT):
Please, help me anyone :) How to use fabric-ca instead of cryptogen? I'm trying to use fabric-ca running in docker container. I initialized server CA with tls, but what to do next?? How to generate cryptomaterials for each peer and orderer? I do not understand what the sequence of steps should be.

Santosh369 (Sun, 13 May 2018 13:45:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Cph9WCjBMkb47GtwK) @VadimInshakov I believe you don't want to use fabric-ca instead of cryptogen. Cryptogen generates the cryptomaterials for peers and orderers and fabric-ca provides with registration of identities that will interact with the ledger via the SDK and issuance of ECerts features. Both tutorials http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html and http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html should help you to understand the steps you need to follow.

hussein.knight (Sun, 13 May 2018 13:53:10 GMT):
Hello all, how can i interact(install,instantiate,query..)with hyperledger fabric blockchain from a php page? so for more details i have the admin use this page to query data from the blockchain?

VadimInshakov (Sun, 13 May 2018 16:40:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KK8sTtJyz4qW2eQyg) @Santosh369 thanks a lot!!! Now it became clear.

Alaa_Migdady (Sun, 13 May 2018 16:43:19 GMT):
hiiii all ... please answer me .. what is the reason to add more organizations to the blockchain??

greg2git (Sun, 13 May 2018 16:57:46 GMT):
@Alaa_Migdady to create a consortium

Alaa_Migdady (Sun, 13 May 2018 16:59:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bzDq48H2Pm7RBxidF) @greg2git what is better to have one or more than one organizations??

greg2git (Sun, 13 May 2018 17:02:48 GMT):
@Alaa_Migdady a consortium of one seems practically deficient, but theoretically and technically possible

vinodr 3 (Sun, 13 May 2018 19:12:55 GMT):
Has joined the channel.

vinodr 3 (Sun, 13 May 2018 19:13:07 GMT):
Hi All,

vinodr 3 (Sun, 13 May 2018 19:17:12 GMT):
I have just started playing with the Java chain code part .. installed the created my own network and run fabcar example and now looking to install java chain code setup. refering to documentation at https://openblockchain.readthedocs.io/en/latest/Setup/JAVAChaincode/ but for for java environment setup it refers to a link: https://github.com/hyperledger/fabric/blob/master/docs/Setup/Chaincode-setup.md If I hit it its 404 .. can somebody help me for steps to setup java chaincode development environment with proper link ? Also I hope its possible to do java chaincode development without vagrant ?? as the documentation uses vagrant?

dannongruver (Sun, 13 May 2018 23:29:10 GMT):
anyone had luck upgrading a node chaincode? I'm using the first-network example started in node language. The new version is successfully installed using CLI peer. When running the "peer chaincode upgrade..." it hangs on the debug step "...[msp/identity] Sign -> DEBU 081 Sign: digest: ...."

dannongruver (Sun, 13 May 2018 23:29:10 GMT):
anyone had luck upgrading a node chaincode? I'm using the first-network example started in node language. The new version is successfully installed using CLI peer. When running the "peer chaincode upgrade..." it hangs on the debug step "...[msp/identity] Sign -> DEBU 081 Sign: digest: ...."

dannongruver (Sun, 13 May 2018 23:36:38 GMT):
it's strange. After quitting the hanging upgrade after 5mins and retrying the upgrade again, gives the error "Error endorsing chaincode: rpt error: code= Unknown desc = premature execution - chaincode (mycc:v4) launched and waiting for registration"

dannongruver (Sun, 13 May 2018 23:39:50 GMT):
can anyone help on the question directly above?:point_up:

jelani504 (Sun, 13 May 2018 23:54:19 GMT):
Has joined the channel.

dannongruver (Mon, 14 May 2018 00:06:00 GMT):
The nodejs chaincode is copied from chaincode_example2. The only modification was to the Init() method. It no longer checks any arguments or performs putState()'s. It only returns shim.success()

dannongruver (Mon, 14 May 2018 00:17:34 GMT):
what exactly does "waiting for registration" mean for a node chaincode? how's that different than instantiation. cannot find in docs

lclclc (Mon, 14 May 2018 03:15:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wGTZxG49ND7Gb8gtn) @nfrunza https://github.com/hyperledger/fabric-samples/tree/release-1.1/fabric-ca

dodangquan (Mon, 14 May 2018 03:34:56 GMT):
Has joined the channel.

YiChengFAN (Mon, 14 May 2018 05:20:27 GMT):
Has joined the channel.

majety.1 (Mon, 14 May 2018 05:52:44 GMT):
Has joined the channel.

majety.1 (Mon, 14 May 2018 05:53:01 GMT):
hey, I'm new to hyperledger, i want to integrate an HTML page to The hyperledger network. how can I achieve this?

mdvenkatesh (Mon, 14 May 2018 06:08:45 GMT):
HI Guys i want to do a poc where any end user can interact with it and post the data into block chain network is it possible ? how to configure the business network card for end users

wtlife (Mon, 14 May 2018 06:10:51 GMT):
Has joined the channel.

wtlife (Mon, 14 May 2018 06:10:56 GMT):
Can i lanuch a orderer service solely?

umtyzc (Mon, 14 May 2018 06:36:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F4ppdLvdnmmwu4k8E) @majety.1 refer this example https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/76a52d35a9f848d7a6313e7a45c4e1db/2?activate_block_id=block-v1%3ALinuxFoundationX%2BLFS171x%2B3T2017%2Btype%40vertical%2Bblock%4080d78ffef26e4d61a82f4ae5ed2481b9

hrt031293 (Mon, 14 May 2018 06:41:22 GMT):
Hi everyone, Anyone please tell me, that is it necessary to convert the json files into protobuf (.pb) files, in the "Adding an Org to a Channel" tutorial??

hrt031293 (Mon, 14 May 2018 06:41:22 GMT):
Hi everyone, Anyone please tell me, that is it necessary to convert the json files into protobuf (.pb) files, in the "Adding an Org to a Channel" tutorial??

wtlife (Mon, 14 May 2018 07:12:08 GMT):
I lanuch a orderer service solely, and i didn't define the organization in the configtx.yaml. So can I add the org into orderer service dynamically?

majety.1 (Mon, 14 May 2018 07:17:24 GMT):
@umtyzc thanks for the help. are there any video tutorials available for the same ?

serkanerkan (Mon, 14 May 2018 07:41:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=biSccJYDNLoQTJxkd) @majety.1 in that course, you can find video tutorials.

RajuSomala (Mon, 14 May 2018 08:20:33 GMT):
Is it good idea to do http call in side chaincode, get result of chain code and do entry in ledger. Http call will do calculations

vinodr 3 (Mon, 14 May 2018 08:38:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x6T5JziuywBuL6E3e) Anyone can help, if you did java chain code setup successfully?

hussein.knight (Mon, 14 May 2018 08:49:59 GMT):
Hello all, how can i interact(install,instantiate,query..)with hyperledger fabric blockchain from a php page? so for more details i have the admin use this page to query data from the blockchain?

versus (Mon, 14 May 2018 09:07:28 GMT):
Has joined the channel.

MarceloAzevedo (Mon, 14 May 2018 10:50:57 GMT):
@TsvetanG thank you!

Mahesh-Raj (Mon, 14 May 2018 11:12:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=noDknpKzHRmBb82LE) @wtlife in a normal scenario you would always have one Org, otherwise there is no use of the network!

dannongruver (Mon, 14 May 2018 11:13:01 GMT):
hello all, has anyone upgraded a node chaincode successfully?

Mahesh-Raj (Mon, 14 May 2018 11:13:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K4Gsrw8HWnDpdeo2q) @hrt031293 Yes it is necessary

hrt031293 (Mon, 14 May 2018 11:14:31 GMT):
@Mahesh-Raj What's that use for?

hrt031293 (Mon, 14 May 2018 11:14:31 GMT):
@Mahesh-Raj What's the use for that?

Mahesh-Raj (Mon, 14 May 2018 11:15:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EqpdFWrPfZKuGbHR7) @hrt031293 in order to update the channel with new Org details, you need to create a enveloped protobuf which a channel can easily adopt to.

Mahesh-Raj (Mon, 14 May 2018 11:17:25 GMT):
*QUICK Help*!! Understanding the real use-case of Hyperledger! I was going through the basics of Hyperledger and came to know various jargons! - Assets, Participants, Transactions - Orderer, Organisations, Peers, Certificate Authority What really confuses me is how these are related to real world? Let's say take a simple supply chain process. - Manufacturer creates Carrot - Government approves the quality - Buyers purchases the approved carrots as per their needs - When Carrots are delivered, buyer pays to Manufacturer Where would you fit all the jargons mentioned above?

wtlife (Mon, 14 May 2018 11:17:35 GMT):
@Mahesh-Raj I mean how does the one orderer service multi channels of multi orgs , and i didn't define the org in configtx.yaml of orderer at the beginning.

Mahesh-Raj (Mon, 14 May 2018 11:18:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zZEMMCNZ7s3g2PKRG) @wtlife you will have to define at least one Org. so that others can join based on majorities approval.

hrt031293 (Mon, 14 May 2018 11:27:08 GMT):
@Mahesh-Raj Thanks

Mahesh-Raj (Mon, 14 May 2018 11:28:59 GMT):
*QUICK Help*!! Understanding the real use-case of Hyperledger! I was going through the basics of Hyperledger and came to know various jargons! - Assets, Participants, Transactions - Orderer, Organisations, Peers, Certificate Authority What really confuses me is how these are related to real world? Let's say take a simple supply chain process. - Manufacturer creates Carrot - Government approves the quality - Buyers purchases the approved carrots as per their needs - When Carrots are delivered, buyer pays to Manufacturer Where would you fit all the jargons mentioned above?

wtlife (Mon, 14 May 2018 11:48:29 GMT):
@Mahesh-Raj thank you! If it like this, I define the first org1 and first channel1(of org1) of orderer1. And i generate the org2, and create the channel2 of org2, How could I use the only one orderer to service the two channel, Do i have to define this at the beginning? I mean is there any methods to do this dynamically? Thank you very much!

nithindj192 (Mon, 14 May 2018 11:50:31 GMT):
Hi , I am getting an error while querying the chaincode after the adding new organization. Error: Error endorsing query: rpc error: code = Unknown desc = access denied

nithindj192 (Mon, 14 May 2018 11:50:31 GMT):
Hi , I am getting an error while querying the chaincode after the adding new organization. Error: Error endorsing query: rpc error: code = Unknown desc = access denied. Does anyone can help me understanding what might be happening?

Mahesh-Raj (Mon, 14 May 2018 11:53:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ChWqdwHS3dqfA5zZ4) @nithindj192 you have bootstrapped it properly, looks like a misconfiguration issue

Mahesh-Raj (Mon, 14 May 2018 11:54:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XZTp9vWvwQPy8ZdhW) @wtlife you need one channel for each Org? I am not sure why would you do that

nithindj192 (Mon, 14 May 2018 11:54:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tHGMf4kuRQhhpEaKC) @Mahesh-Raj Misconfiguration menaing, the certificates of the new organization are not proper?

wtlife (Mon, 14 May 2018 11:55:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tHGMf4kuRQhhpEaKC) @Mahesh-Raj Yes, is therer method to do that?

Mahesh-Raj (Mon, 14 May 2018 11:55:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZdAFRRzEtcvXPFSMP) @nithindj192 maybe, or maybe you are passing a different Org params.

bansalru (Mon, 14 May 2018 12:05:57 GMT):
Has joined the channel.

shailaja.mahara (Mon, 14 May 2018 12:19:06 GMT):
I'm looking to build a simple UI on my pre-existing fabric network, preferably using go-SDK. Could anyone have any references that could help me out with this task?

TanusreeChatterjee (Mon, 14 May 2018 12:19:47 GMT):
Hi I am trying to register my chaincode with the local blockchain network by using the command ./Example/bin/Example but got an error Hello world! starting [Ljava.lang.String;@3feba861 May 14, 2018 12:05:22 PM example.Example main INFO: starting May 14, 2018 12:05:23 PM io.grpc.internal.TransportSet$1 call INFO: Created transport io.grpc.netty.NettyClientTransport@6bae8117(/127.0.0.1:7051) for /127.0.0.1:7051 May 14, 2018 12:05:23 PM io.grpc.internal.TransportSet$TransportListener transportReady INFO: Transport io.grpc.netty.NettyClientTransport@6bae8117(/127.0.0.1:7051) for /127.0.0.1:7051 is ready May 14, 2018 12:05:23 PM org.hyperledger.java.shim.ChaincodeBase$1 onError SEVERE: Unable to connect to peer server: UNIMPLEMENTED: unknown service protos.ChaincodeSupport

Mahesh-Raj (Mon, 14 May 2018 12:20:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dWCadbbsXg8xmYjBb) @shailaja.mahara something like this `https://github.com/Altoros/fabric-rest`

TanusreeChatterjee (Mon, 14 May 2018 12:20:10 GMT):
Please help to slove the issue thanks in advance

Mahesh-Raj (Mon, 14 May 2018 12:22:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=skCze3GJA9fjZrzYm) @TanusreeChatterjee is the peer available locally?

Mahesh-Raj (Mon, 14 May 2018 12:22:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=skCze3GJA9fjZrzYm) @TanusreeChatterjee is the peer available locally? and running properly?

TanusreeChatterjee (Mon, 14 May 2018 12:23:45 GMT):
yes

TanusreeChatterjee (Mon, 14 May 2018 12:27:05 GMT):

Screenshot from 2018-05-14 17-56-31.png

TanusreeChatterjee (Mon, 14 May 2018 12:28:09 GMT):
After starting the network got this output

venkat12 (Mon, 14 May 2018 12:55:28 GMT):
Has anyone tried setting up hyperledger-fabric in Kafka? I'm facing the below issue when i try to run it. Can someone help me with this issue? failed: Orderer Server Status Code: (503) SERVICE_UNAVAILABLE. Description: will not enqueue,

venkat12 (Mon, 14 May 2018 12:55:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xrswk4BjvYhy6G2h4) @Mahesh-Raj Checked everything, Here's the orderer logs: [orderer/consensus/kafka/sarama] func1 -> DEBU 28e Connected to broker. Please share your inputs!!!

Mahesh-Raj (Mon, 14 May 2018 12:59:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8iqgRdmnR5WDLnMtP) @venkat12 things you need to check: - kafka brokers mentioned in configtx - kafka and zookeeper should be up and listening - kafka replication variable if more than 1 kafkas

Mahesh-Raj (Mon, 14 May 2018 12:59:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8iqgRdmnR5WDLnMtP) @venkat12 things you need to check: - kafka brokers mentioned in configtx - kafka and zookeeper should be up and listening - kafka replication variable if more than 1 kafkas - orderer logs

Mahesh-Raj (Mon, 14 May 2018 13:05:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GAwLdEpxj4as6EEXH) @tkuhrt some inputs on this?

phgurgel (Mon, 14 May 2018 13:11:49 GMT):
@Mahesh-Raj, please read the following: https://hyperledger-fabric.readthedocs.io/en/release-1.1/key_concepts.html

Mahesh-Raj (Mon, 14 May 2018 13:13:28 GMT):
@phgurgel already done with that, didn't answer my question

gut (Mon, 14 May 2018 13:20:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SCQkEco4iSJNNhuXJ) @Mahesh-Raj

gut (Mon, 14 May 2018 13:24:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SCQkEco4iSJNNhuXJ) @Mahesh-Raj - Manufacturer *is an Org and* creates *invoking the chaincode* Carrot *that is an asset* - Government *is another Org and* approves the quality *invoking the chaincode* - Buyers purchases the approved carrots as per their needs - When Carrots are delivered, buyer pays *invoking the chaincode* to Manufacturer

gut (Mon, 14 May 2018 13:27:43 GMT):
- Orderer is the node acting in the Ordering Service to verify the Transaction - Peer (usually referring to the anchor peer) is the Org endpoint you use to interact with Fabric from the outside - The CA is a trusted third party that controls the access issuing per org certificates

gut (Mon, 14 May 2018 13:28:34 GMT):
CA works as in any PKI system

Mahesh-Raj (Mon, 14 May 2018 13:29:08 GMT):
thanks a tonne @gut , the buyer won't be an Org? What if this buyer is not the end customer, but a distributor. It will be an Org then right?

Mahesh-Raj (Mon, 14 May 2018 13:29:08 GMT):
thanks a tonne @gut , the buyer won't be an Org? What if this buyer is not a the end customer, but a distributor. It will be an Org then right?

gut (Mon, 14 May 2018 13:30:18 GMT):
yes, In that case you usually introduce another Org, but it really depends on the use case. If you can consider the distributor to hold peers as an org, you should :)

Mahesh-Raj (Mon, 14 May 2018 13:33:18 GMT):
In a real world scenario, peers would be taken care by Orgs? even their deployment and initialisation? Or the network admin would setup the entire network on cloud with multiple hosts (if needed)?

Mahesh-Raj (Mon, 14 May 2018 13:33:18 GMT):
In a real world scenario, peers would be taken care by Orgs? even their deployment and initialisation? Or the network admin would setup the entire network on cloud with multiple hosts (if needed)? cc: @gut

vick (Mon, 14 May 2018 13:47:00 GMT):
must all peers belong to a channel in order to be considered as belonging to a network?

vick (Mon, 14 May 2018 13:47:18 GMT):
like can there be peers who aren't participants on any channel?

vick (Mon, 14 May 2018 13:47:35 GMT):
i guess my question is ... if a peer wants to participate on the network, does it have to belong to a channel?

Mahesh-Raj (Mon, 14 May 2018 13:47:59 GMT):
there can be, but they won't be of any use. So every peer has to connect to one or more channels

vick (Mon, 14 May 2018 13:49:04 GMT):
@Mahesh-Raj right so the process of adding a new peer to the network, consists of; - registering the peer with the CA - adding the peer to a channel - anything else?

Mahesh-Raj (Mon, 14 May 2018 13:49:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eub3fsLT9RuwEBCZZ) @vick nopes! you are done.

vick (Mon, 14 May 2018 13:50:31 GMT):
if this peer is sitting on a remote host, does it need to have access to the orderer? (i.e. does it need the orderers crypto artefacts) or does it just need the channel definition?

vick (Mon, 14 May 2018 13:50:52 GMT):
i think every channel must have an orderer right? which is responsible for ensuring transactions are committed to the blockchain

Mahesh-Raj (Mon, 14 May 2018 13:51:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Gmyo9d8EyoAab9XY6) @vick to fetch the channel, you will need orderer's ca.crt and once you have the block fetched, you can easily connect to that.

vick (Mon, 14 May 2018 13:52:29 GMT):
@Mahesh-Raj ok ... so to get the orderers ca crt, can i get that from the CA server? right

Mahesh-Raj (Mon, 14 May 2018 13:52:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jP3hHwR2WkWphwwMN) @vick ohh yes

venkat12 (Mon, 14 May 2018 13:53:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xrswk4BjvYhy6G2h4) @Mahesh-Raj Checled everything. Yet im getting the same error. Sharing orderer logs: client/metadata fetching metadata for all topics from broker kafka2:9092

MarceloAzevedo (Mon, 14 May 2018 13:53:30 GMT):
hello guys! I'm have some questions, can you please help me? I'm working with fabcar example but some of the things happening on the code is not clear to me: 1- When I add a new car on the list, the response show me that a TRANSACTION was made, but, a transaction between who? I know I'm a "user1", but, who is the other participant of this transaction? 2- how can i add more peers to this example and set up a conversation between them? I believe it's a very basic scenario that I want to mount here, but I'm a beggineer and I don't know exactly what I'm doing haha

Mahesh-Raj (Mon, 14 May 2018 13:53:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9NEjRqJPhbfHoEtZe) @gut let me know whenever you can

vick (Mon, 14 May 2018 13:55:14 GMT):
@MarceloAzevedo 1- The transaction happens on the channel between all the participants on that channel, as a user you interact with the chaincode, this interaction is the transaction and the reason for this is because it needs to be communicated to the other peers so that they can all update their local records with that transaction

vick (Mon, 14 May 2018 13:55:57 GMT):
@MarceloAzevedo 2- to add more peers you need to modify the config.yaml files, how many peers are you currently working with?, if you followed the examples you should already have a few peers setup in a couple organizations

MarceloAzevedo (Mon, 14 May 2018 13:59:53 GMT):
@vick Hello Vick, thanks for the fast reply! I believe I have 2 peers in each Org, right? Is there a way to see who is connected?

vick (Mon, 14 May 2018 14:00:22 GMT):
when you say 'connected' what do you mean?

Mahesh-Raj (Mon, 14 May 2018 14:01:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K6QpFskfrA33DYWbd) @MarceloAzevedo `docker exec` your peer container and do `peer channel list`

MarceloAzevedo (Mon, 14 May 2018 14:03:01 GMT):
@vick connected means that they are "online"... in other words.. they are available to perform a transaction

MarceloAzevedo (Mon, 14 May 2018 14:10:26 GMT):
@Mahesh-Raj is this correct? docker exec -it dev-peer0.org1.example.com-fabcar-1.0 bash

MarceloAzevedo (Mon, 14 May 2018 14:10:26 GMT):
@Mahesh-Raj is this correct? `docker exec -it dev-peer0.org1.example.com-fabcar-1.0 bash`

Mahesh-Raj (Mon, 14 May 2018 14:11:10 GMT):
better do this `docker exec peer0.org1.example.com peer channel list`

MarceloAzevedo (Mon, 14 May 2018 14:12:06 GMT):
good! thanks! I got the channel (mychannel) and how can I see the peers?

Mahesh-Raj (Mon, 14 May 2018 14:12:56 GMT):
you just saw it for `peer0` of `Org1`. Keep changing the name and run the command if you want to check for all

MarceloAzevedo (Mon, 14 May 2018 14:14:44 GMT):
oh, I got it! I believe the other peers was not setup then... Everyone else (peer1.org1, peer0.org2, etc) returns no such container

gut (Mon, 14 May 2018 14:15:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LMmafpjmMXfYDXCfk) @Mahesh-Raj Yes. In an ideal world, every Org would take care about their own peers (including chaincode deployment and installation). But the reality is that peer management is difficult for most organizations (at least for our current clients)

Mahesh-Raj (Mon, 14 May 2018 14:16:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9ZZsuGuDZdFn3kWsW) @gut exactly what I wanted to hear.

Mahesh-Raj (Mon, 14 May 2018 14:16:23 GMT):
thanks a lot @gut !

MarceloAzevedo (Mon, 14 May 2018 14:16:34 GMT):
thank you @mane

MarceloAzevedo (Mon, 14 May 2018 14:16:34 GMT):
thank you @Mahesh-Raj !

XingqiangMao (Mon, 14 May 2018 14:40:47 GMT):
Hi pals. QQ When setting up a cross network env. Do they need a same network name?

XingqiangMao (Mon, 14 May 2018 14:42:11 GMT):
When I say cross network env means some production setup..

Mahesh-Raj (Mon, 14 May 2018 14:43:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5pXXQfe2xcmkPuF8q) @XingqiangMao yes if it is same host

XingqiangMao (Mon, 14 May 2018 14:43:31 GMT):
But what if different host?

XingqiangMao (Mon, 14 May 2018 14:43:59 GMT):
When it work with different company. It can not in the same host right...

Mahesh-Raj (Mon, 14 May 2018 14:44:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TT9MqppctaMfHkBMu) @XingqiangMao

Mahesh-Raj (Mon, 14 May 2018 14:45:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TT9MqppctaMfHkBMu) @XingqiangMao in this case, you need to map the ports as well. So that they can be reached externally as well

XingqiangMao (Mon, 14 May 2018 14:47:01 GMT):
I see. If I use docker. I need to config the ip and port...

XingqiangMao (Mon, 14 May 2018 14:47:09 GMT):
in the docker config file.

XingqiangMao (Mon, 14 May 2018 14:47:42 GMT):
In this case the network (config field no need to be same...)

XingqiangMao (Mon, 14 May 2018 14:47:57 GMT):
Am I correct?

Mahesh-Raj (Mon, 14 May 2018 14:48:03 GMT):
yes, thats true

XingqiangMao (Mon, 14 May 2018 14:48:32 GMT):
Got it. Thank you @Mahesh-Raj

nagaraja_sr (Mon, 14 May 2018 15:07:58 GMT):
i would like to define a channel with 2 organizations, where only one of the organizations is permitted to submit invoke transactions (write to ledger) while the other organization may only query the ledger. how to specify this in the configtx.yaml ?

jelani504 (Mon, 14 May 2018 15:56:04 GMT):
hey, I'm new to hyperledger/fabric , I'm in a front end development bootcamp. I have to build a website for my final project. I'm thinking of using angular 2 and integrating hyperledger to build a retail shop. Is there an example of a hyperledger / fabric composer retail shop where the owner can add and remove items and then the members can only chose to buy or not?

jelani504 (Mon, 14 May 2018 15:56:43 GMT):
or would hyperledger/ fabric composer be used more for creating a platform to create stores?

jelani504 (Mon, 14 May 2018 15:57:37 GMT):
I could probably refactor the car auction example but i was just wondering if there was a specific retail shop example

KGiou (Mon, 14 May 2018 15:59:08 GMT):
Hi all, lets say that I have developed my chaincode using Golang and my website using Nodejs for the backend. How can I connect this two? Do I have to use NodejsSDK or can I use the GoSDK?Is there an other way and finally which is the best way to connect this two?My question is for production level. Thanks!

krabradosty (Mon, 14 May 2018 16:15:09 GMT):
Hi folks! Any help will be useful. https://stackoverflow.com/questions/50334489/performance-test-of-the-hyperledger-fabric Please share this question with Fabric developers that can help if you know them. Thanks.

MarceloAzevedo (Mon, 14 May 2018 16:33:48 GMT):
Hi guys! I have a new question: I want to perform a stress test on fabcar example, executing the createCar transaction by a hundred times. I tried to create a shell script to execute it 100 times, but it will create the whole thing (assign a channel to the client, etc) and not only the request itself. Any ideas about how to test it?

XingqiangMao (Mon, 14 May 2018 16:38:45 GMT):
Hi Pals, getting issue "failed to create deliver client: orderer client failed to connect to $IP:7050: failed to create new connection: x509: cannot validate certificate for $IP because it doesn't contain any IP SANs"

XingqiangMao (Mon, 14 May 2018 16:39:08 GMT):
I am trying to connect orderer from another ip address. It is in the local network.

XingqiangMao (Mon, 14 May 2018 16:39:17 GMT):
Any idea what should I do for the certs file

XingqiangMao (Mon, 14 May 2018 16:39:19 GMT):
?

vick (Mon, 14 May 2018 17:13:56 GMT):
has anyone been through the fabric-ca example?

vick (Mon, 14 May 2018 17:14:24 GMT):
i am going through all the scripts line by line and noticed that the fabric-ca start script enrols the orderer and peers

vick (Mon, 14 May 2018 17:14:45 GMT):
but when i try to execute the same command it says that the user does not exist ... so aren't we supposed to be registering it first

carlosEli (Mon, 14 May 2018 17:29:49 GMT):
Has joined the channel.

carlosEli (Mon, 14 May 2018 17:29:54 GMT):
Hello Guys!! I have probably a very stupid Quesition.. How can i clear all the tests made previously in my BC test.. when i Run "chaincode query nbbalbalabalablab" i get all the tests.. I want to clear all this to start now with the real tests.. thanks !!

jrosmith (Mon, 14 May 2018 17:34:51 GMT):
@KGiou it sounds like you want to connect your application server in node.js to a peer running a chaincode in go. you'll probably find it most useful to use the node_sdk and make requests against the peer from your application server.

jrosmith (Mon, 14 May 2018 17:35:53 GMT):
@jelani504 what is the deadline for your project? setting up a fabric back-end, application server, and final-project worthy front end is going to be an involved task

carlosEli (Mon, 14 May 2018 17:37:22 GMT):
no, ideed I already conect and i have all the history.. (all the tests) now i want to clear all to start the reall tests.. when i run the query.. peer chaincode query -C file -n code -c '{"Args":["queryAllFiles"] i get all the dummy info that i type..

jrosmith (Mon, 14 May 2018 17:37:49 GMT):
@carlosEli to clear all the information from the state database you'll either need to implement a function in the chaincode to clear data or tear down and rebuild the network. as a word of warning deleted items in couchdb are not completed purged, just marked as deleted. something to keep in mind at scale.

jrosmith (Mon, 14 May 2018 17:38:42 GMT):
@MarceloAzevedo can you post your shell script via hastebin.com?

carlosEli (Mon, 14 May 2018 17:39:39 GMT):
thanks jrosmith.. Do you know any template to clear data.. that i can use?

MarceloAzevedo (Mon, 14 May 2018 17:41:20 GMT):
@jrosmith https://hastebin.com/xutasavobe.vbs

jrosmith (Mon, 14 May 2018 17:43:19 GMT):
@MarceloAzevedo the script is just executing `invoke.js` one hundred times, and invoke.js goes through setup tasks: https://github.com/hyperledger/fabric-samples/blob/release-1.1/fabcar/invoke.js#L20

jrosmith (Mon, 14 May 2018 17:45:48 GMT):
@carlosEli no, you'll have to implement it yourself. depending on how many items you have in your statedb it may be enough to add a `clear` chaincode function and just iterate over all keys, calling `stub.DelState()` on them

jrosmith (Mon, 14 May 2018 17:46:23 GMT):
@vick #fabric-ca will probably do a better job of answering your questions

jrosmith (Mon, 14 May 2018 17:46:56 GMT):
@XingqiangMao #fabric-peer-endorser-committer might be able to offer a solution

XingqiangMao (Mon, 14 May 2018 17:47:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MNaQwxrdsNrDMkeSy) @jrosmith Thx. Let me try

MarceloAzevedo (Mon, 14 May 2018 17:49:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AePL4ES24zacDZ3pa) @jrosmith yes, I tried to implement a new version extracting a method and then put it inside a for loop, but it looks like something is not quite good, since the execution seems to be asynchronous. here is the hastebin: https://hastebin.com/ulecomosam.js the execution time is printed before the execution of the whole method ends

MarceloAzevedo (Mon, 14 May 2018 17:49:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AePL4ES24zacDZ3pa) @jrosmith yes, I tried to implement a new version extracting a method and then put it inside a for loop, but it looks like something is not quite good, since the execution seems to be asynchronous. here is the hastebin: https://hastebin.com/ulecomosam.js the "Execution Time" is printed before the execution of the whole method ends

jrosmith (Mon, 14 May 2018 17:50:41 GMT):
@MarceloAzevedo is that node script not working? can you post the error?

MarceloAzevedo (Mon, 14 May 2018 17:53:34 GMT):
it is working but I'll show how the output is been shown

MarceloAzevedo (Mon, 14 May 2018 17:54:49 GMT):

invoke.js

MarceloAzevedo (Mon, 14 May 2018 17:55:33 GMT):
@jrosmith as you can see, the Execution time is being logged before the whole method finishes

jrosmith (Mon, 14 May 2018 17:57:48 GMT):
@MarceloAzevedo that makes sense based on the forloop. what exactly are your trying to log, how long each request has taken?

MarceloAzevedo (Mon, 14 May 2018 17:58:18 GMT):
@jrosmith yes, how long each one has taken

jrosmith (Mon, 14 May 2018 18:02:10 GMT):
@MarceloAzevedo take a look here: https://hastebin.com/ehafafumoz.js same logic, except i've passed the iteration and start time into each call so the async function is responsible for reporting its own duration. see lines 9 and 127/129

jrosmith (Mon, 14 May 2018 18:02:10 GMT):
@MarceloAzevedo take a look here: https://hastebin.com/ehafafumoz.js same logic, except i've passed the iteration and start time into each call so the async function is responsible for reporting its own duration. see lines 9 and 127 - 129

MarceloAzevedo (Mon, 14 May 2018 18:03:58 GMT):
good! I'll try it here and come back with the results! thanks @jrosmith !

MarceloAzevedo (Mon, 14 May 2018 18:16:00 GMT):
@jrosmith still sending wrong times =/

MarceloAzevedo (Mon, 14 May 2018 18:16:06 GMT):

Clipboard - 14 de Maio de 2018 às 15:15

jrosmith (Mon, 14 May 2018 18:22:32 GMT):
@MarceloAzevedo not necessarily, each one individually took ~3 seconds but they were being processed in parallel. i'm not sure where the extra 700 ms of latency came from, potentially other tasks being run before or after your script?

MarceloAzevedo (Mon, 14 May 2018 18:29:54 GMT):
@jrosmith I believe the other attributes being set before the code reaches this part is the responsible for the latency... Do you know if there's a way to force it to be executed in series instead of parallel? I'm working on Ubuntu

jelani504 (Mon, 14 May 2018 18:34:56 GMT):
@jrosmith the deadline is july 21st, i have alot of time and i will have partners collaborating on the project. Any tips on where to find an example of a single store setup or do you think it would be best to just play with the auction example to understand how to set up the models and then refactor the models for a single store ecosystem?

jrosmith (Mon, 14 May 2018 18:38:47 GMT):
@MarceloAzevedo you could just have the main function return a promise and then use a promise library to execute them all synchronously. or write a recursive function that calls itself N amount of times after each one resolves.

jrosmith (Mon, 14 May 2018 18:40:03 GMT):
@jelani504 since the focus of the project will be on the front-end i'd say you're best off just getting one of the samples set up and spend your time understanding how to interacting with the data.

jrosmith (Mon, 14 May 2018 18:40:03 GMT):
@jelani504 since the focus of the project will be on the front-end i'd say you're best off just getting one of the samples set up and spend your time understanding how to interact with the data.

jelani504 (Mon, 14 May 2018 18:41:06 GMT):
@jrosmith i feel you, i guess i would be complicating things,... thank you!

tahaf10 (Mon, 14 May 2018 21:03:27 GMT):
Has joined the channel.

hnadim (Mon, 14 May 2018 22:14:00 GMT):
Has joined the channel.

jufengyao (Tue, 15 May 2018 01:59:17 GMT):
Has joined the channel.

jufengyao (Tue, 15 May 2018 02:00:41 GMT):
Hi, does any one understand the ownership of orderer? thanks very much

jufengyao (Tue, 15 May 2018 02:02:23 GMT):
I can't find any doc about this, and I thought that just like Peers, each organization can have its own orderer(s), just like Peers...

TianDeng (Tue, 15 May 2018 02:20:14 GMT):
Has joined the channel.

WilsonGao (Tue, 15 May 2018 05:38:06 GMT):
Has joined the channel.

WilsonGao (Tue, 15 May 2018 05:38:42 GMT):
hi,is there benchmark of Fabric 1.1?

WilsonGao (Tue, 15 May 2018 05:39:20 GMT):
I want to know the performance improvement of Fabric 1.1 compared to 1.0

Katiyman (Tue, 15 May 2018 05:59:07 GMT):
Hello All I am getting below error in my node js code from nodesdk like sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Error sending TRANSACTION: txid:bab3109e61820a8dcc260d08b3b416b9a3e1f7680aa718e05040a1c21c92cbae exists) I see similar issue at: https://jira.hyperledger.org/browse/FAB-1486

Katiyman (Tue, 15 May 2018 05:59:07 GMT):
Hello All I am getting below error in my node js code from nodesdk like sendPeersProposal - Promise is rejected: Error: Error executing chaincode: Failed to execute transaction (Error sending TRANSACTION: txid:bab3109e61820a8dcc260d08b3b416b9a3e1f7680aa718e05040a1c21c92cbae exists) I see similar issue at: https://jira.hyperledger.org/browse/FAB-1486 Any pointers for this will be very helpful. TIA

MrLoffciak (Tue, 15 May 2018 07:28:04 GMT):
Hi. I have a problem running couchDB. The log screen is spammed every 5 seconds by: [error] 2018-05-15T07:27:23.364667Z nonode@nohost emulator -------- Error in process <0.2412.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]} [notice] 2018-05-15T07:27:23.364713Z nonode@nohost <0.324.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)

gravity (Tue, 15 May 2018 07:29:03 GMT):
Hello Are there any good examples of how to handle a dynamic number of organizations? For example, I started a network with 2 orgs. Later, one new org is going to be added to a network. Thanks is advance.

Mahesh-Raj (Tue, 15 May 2018 07:37:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dNAhojHXF2qcsxibX) @gravity quite descriptive if you do it manually `http://hyperledger-fabric.readthedocs.io/en/release-1.1/channel_update_tutorial.html`

gravity (Tue, 15 May 2018 07:38:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z2oun3Bcm27jwFtLT) it is not my case. I need to add a new org to a network and create a new channel for this network. there is no need for this network to join existing channels

sanjeevjagadeesh (Tue, 15 May 2018 07:38:57 GMT):
Has joined the channel.

sanjeevjagadeesh (Tue, 15 May 2018 07:39:11 GMT):
Hi there, can you please suggest me, maximum how many nodes can connect to Hyperedger fabric network? Also what would be the supported transaction speed (Transaction per second)in hyperledger fabric network?

CorentinPacaud (Tue, 15 May 2018 07:48:13 GMT):
Hello, When we use a multi peers architecture, when we want to read data, can we read it from only one peer ? or the request is shared by orderer between all peers ?

srinivas640 (Tue, 15 May 2018 08:38:00 GMT):
Has joined the channel.

srinivas640 (Tue, 15 May 2018 08:44:52 GMT):
Hello Vagrant up is not starting hyperledger VM ?

mostaafa (Tue, 15 May 2018 08:53:13 GMT):
Hi anyone know how can we change the port of peers 7XXX not from docker ports but from peer configurations

geourjoa (Tue, 15 May 2018 09:38:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5pQ8AvaHGQmsuJni7) @WilsonGao You can look Hyperledger Caliper : https://github.com/hyperledger/caliper

gut (Tue, 15 May 2018 10:07:57 GMT):
@WilsonGao Is Caliper (still in incubation) already usable? Anyone has tried it with Fabric? Results/Impresions?

DevendraSingh (Tue, 15 May 2018 10:30:28 GMT):
Has joined the channel.

KGiou (Tue, 15 May 2018 11:01:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YWZBsPhmEgxReBJXj) @jrosmith yes that's exactly what i want to do. my problem is that i can't find the best way to connect from the application server via the sdk to an existing channel. all examples create the channel through the sdk.

LeeCherry (Tue, 15 May 2018 11:09:14 GMT):
Has joined the channel.

LeeCherry (Tue, 15 May 2018 11:10:48 GMT):
Hi Guys, just starting out with Blockchain and Hyperledger specifically. Following the tutorials here - http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html but having an issue building my first network. I am seeing this error

LeeCherry (Tue, 15 May 2018 11:10:59 GMT):

Clipboard - May 15, 2018 12:10 PM

LeeCherry (Tue, 15 May 2018 11:11:08 GMT):
Anyone epxerienced this before?

LeeCherry (Tue, 15 May 2018 11:23:54 GMT):
Solved it. I ran the following commands in this order: ./byfn.sh -m down sudo -H pip uninstall docker.py

LeeCherry (Tue, 15 May 2018 11:24:18 GMT):
*sudo -H pip uninstall docker-py

LeeCherry (Tue, 15 May 2018 11:24:29 GMT):
sudo -H pip uninstall docker

LeeCherry (Tue, 15 May 2018 11:24:51 GMT):
sudo -H pip install docker (was already installed, no changes were made)

LeeCherry (Tue, 15 May 2018 11:25:11 GMT):
Finally sudo ./byfn.sh -m up

LeeCherry (Tue, 15 May 2018 11:25:16 GMT):
Now all working.

jrosmith (Tue, 15 May 2018 12:39:59 GMT):
@KGiou if you embed the channel creation/joining logic into your application server it will attempt to create/join the channel on start up. if the channel already exists/you are already a member it will throw errors your way, but those can be handled. you'll just need to make sure you have the relevant keys for joining the channel, communicating with the peers/orderers, and signing transactions in the application server

gravity (Tue, 15 May 2018 13:07:32 GMT):
Hello How to add a new organization to a network without adding it to existing channels? It is a simple case: create new org, let existing orderer know about new org, create new channel and join peers from new org to this channel. Any suggestions?

MarceloAzevedo (Tue, 15 May 2018 13:11:44 GMT):
Hello guys! Can anyone guide me here? Starting from fabcar example, I want to: 1) Create a new peer; 2) Create a new channel and 3) join this new peer into this channel I tried in a lot of different ways but I never got this working :(

geourjoa (Tue, 15 May 2018 13:19:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NJrSqxGywkMwMHttD) @MarceloAzevedo Hi Marcelo, you can look the commands from the scripts 'script.sh' in fabric-sample/first-network sample. You can also look this page of documentation : http://hyperledger-fabric.readthedocs.io/en/latest/command_ref.html. If with this you can't go further, send me a MP.

MarceloAzevedo (Tue, 15 May 2018 13:24:10 GMT):
@geourjoa thanks! I'll try here and if I have problems I send you a PM

am (Tue, 15 May 2018 14:13:37 GMT):
hi, does anyone have an example of using postgres with fabric-ca(instead of using the default sqllite) using postgres our orderer refuses to startup

vick (Tue, 15 May 2018 14:36:29 GMT):
anyone know how i can check container health with docker?

vick (Tue, 15 May 2018 14:36:45 GMT):
using docker ps i can see the containers are running but how do i check they came up healthy?

vick (Tue, 15 May 2018 14:43:07 GMT):
nevermind, found it

vick (Tue, 15 May 2018 14:43:16 GMT):
so you basically do docker logs [container name]

vick (Tue, 15 May 2018 14:43:24 GMT):
and that prints out whats happening in the container

vick (Tue, 15 May 2018 14:43:30 GMT):
you get the container name from doing docker ps

vick (Tue, 15 May 2018 14:43:38 GMT):
right most column is the [container name]

MonnyClara (Tue, 15 May 2018 14:44:35 GMT):
@vick Not for later, if you want to check in real time your docker logs you can use `docker logs -f `

vick (Tue, 15 May 2018 14:46:21 GMT):
thanks @MonnyClara

DeepanIgnaatious (Tue, 15 May 2018 14:54:26 GMT):
I have a general question..as far as i understood Application can be developed using composer or native fabric..compose just sits on top on fabric to make things easy..But which approach is preferred way of building application

DeepanIgnaatious (Tue, 15 May 2018 14:54:26 GMT):
I have a general question..as far as i understood Application can be developed using composer or native fabric..composer just sits on top on fabric to make things easy..But which approach is preferred way of building application and is there any drawbacks

vick (Tue, 15 May 2018 14:56:28 GMT):
i am not sure what the preferred is exactly but i think it's very dependent on what you're trying to achieve, my assumption is that using composer abstracts away some of the complexities of setup. if you want more control over the process then i would avoid composer I am currently working with composer to try and setup fabric networks on multiple physical hosts

HandsomeRoger (Tue, 15 May 2018 15:04:24 GMT):
HI All: Excuse me. I have question about upgrade chaincode with nodejs sdk. Can these features really work with nodejs sdk? create-channel join-channel install-chaincode instantiate-chaincode upgrade-chaincode

jorgebonafe (Tue, 15 May 2018 15:07:58 GMT):
Has joined the channel.

jorgebonafe (Tue, 15 May 2018 15:08:05 GMT):
Hello. I'm having trouble with the byfn tutorial. I managed to do it without problems, and now I'm trying to change some things on the configuration files. I configured 6 orgs, and I'm trying to create a channel with two of them. When I get to the command to join a channel, I'm getting this error: Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Client1MSP]) Here are my configuration files: https://www.dropbox.com/s/tutc4pla6jlygej/my_network.zip?dl=1 The commands I'm running from start to finish are on COMMANDS.txt. I'm htting my head agains this for hours and I have no clue what I'm doing wrong... Any help is appreciated.

jorgebonafe (Tue, 15 May 2018 15:08:05 GMT):
Hello. I'm having trouble with the byfn tutorial. I managed to do it without problems, and now I'm trying to change some things on the configuration files. I configured 6 orgs, and I'm trying to create a channel with two of them. When I get to the command to join a channel, I'm getting this error: Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Client1MSP]) Here are my configuration files: https://www.dropbox.com/s/tutc4pla6jlygej/my_network.zip?dl=1 The commands I'm running from start to finish are on COMMANDS.txt. I'm hitting my head agains this for hours and I have no clue what I'm doing wrong... Any help is appreciated.

jorgebonafe (Tue, 15 May 2018 15:08:05 GMT):
Hello. I'm having trouble with the byfn tutorial. I managed to do it without problems, and now I'm trying to change some things on the configuration files. I configured 6 orgs, and I'm trying to create a channel with two of them. When I get to the command to join a channel, I'm getting this error: Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Client1MSP]) Here are my configuration files: https://www.dropbox.com/s/tutc4pla6jlygej/my_network.zip?dl=1 The commands I'm running from start to finish are on COMMANDS.txt. I'm hitting my head against this for hours and I have no clue what I'm doing wrong... Any help is appreciated.

smallant (Tue, 15 May 2018 15:56:57 GMT):
Hi, where can I find real data from benchmarks made on Fabric?

ajostrow (Tue, 15 May 2018 16:05:33 GMT):
Has joined the channel.

vick (Tue, 15 May 2018 16:12:10 GMT):
hi, i am getting this error when i try to join a peer to a channel, i create the channel from the same peer container

vick (Tue, 15 May 2018 16:12:17 GMT):
Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" request failed authorization check for channel [mychannel]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]))

vick (Tue, 15 May 2018 16:12:21 GMT):
anyone seen this before?

ajostrow (Tue, 15 May 2018 16:13:44 GMT):
Hi everyone! I read the FAQ and searched /public/ in messages, but I'm still a little confused: Is it possible to have a private write, public read blockchain with fabric? The use case is transparency. It would be great to allow read-only nodes for anyone interested to see smart contract logic and transaction history but restrict identity information and deploying smart contracts etc to trusted nodes. It sounds like transactions have to happen in channels, and channels are private to authorized parties, so I'm not sure. I hope it makes sense, thank you.

artur97 (Tue, 15 May 2018 16:24:38 GMT):
Has joined the channel.

XingqiangMao (Tue, 15 May 2018 16:39:33 GMT):
Hi Guys. question question.....+ peer channel fetch 0 mychannel.block -o orderer.example.com:7050 -c mychannel --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Fetching channel config block from orderer... + res=1 + set +x 2018-05-15 16:38:32.616 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN}

XingqiangMao (Tue, 15 May 2018 16:40:56 GMT):
This is what I am trying to join a new peer. It says can not read the block. Is the block reference to gensis.block? Do I need to copy the block from the peer I have?

vick (Tue, 15 May 2018 16:44:31 GMT):
@XingqiangMao no i think it should be the channel block, mychannel.block

XingqiangMao (Tue, 15 May 2018 16:47:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=roLeo6kCSbF3bCKs9) @vick Thank you for reply. How can I get the block use the tools configen?

vick (Tue, 15 May 2018 16:47:52 GMT):
i don't understand the question

vick (Tue, 15 May 2018 16:48:24 GMT):
i think your problem might be similar to mine, your not authorised to interact with the channel

XingqiangMao (Tue, 15 May 2018 16:49:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E6xyzDkcTtCbeZGcp) @vick + peer channel fetch 0 mychannel.block -o orderer.example.com:7050 -c mychannel --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Fetching channel config block from orderer... + res=1 + set +x 2018-05-15 16:38:32.616 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN}

XingqiangMao (Tue, 15 May 2018 16:49:30 GMT):
This is my error message

XingqiangMao (Tue, 15 May 2018 16:49:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bdukajT8XqsMS2BA7) Did you solve the problem?

vick (Tue, 15 May 2018 16:51:31 GMT):
no i am still stuck with it ...

XingqiangMao (Tue, 15 May 2018 16:53:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Xf7Na7zkhcZRy6zu) @vick Oh okk....Can you explain a bit more on the question please?

XingqiangMao (Tue, 15 May 2018 16:53:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Xf7Na7zkhcZRy6zu) @vick Oh okk....Can you explain a bit more on the question proble,?

vick (Tue, 15 May 2018 16:53:35 GMT):
so i am trying to join a channel from a peer but i get this error; Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" request failed authorization check for channel [mychannel]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]))

vick (Tue, 15 May 2018 16:54:07 GMT):
which suggests that i am not using the correct admin certs, but i checked my admincerts and the cert.pem matches the cert.pem of the organization admin what i generated

vick (Tue, 15 May 2018 16:54:25 GMT):
i think i am missing something but i am not sure what actually ...

XingqiangMao (Tue, 15 May 2018 16:56:27 GMT):
Oh okk... Have no idea on this...:thinking:

gut (Tue, 15 May 2018 17:58:33 GMT):
I've got a theoretical error. I tried at #fabric-gossip, but I had no clue. It's related to race conditions on endorsement. Let's say... If there are two endorsers belonging to different orgs that are acting over the same variable, that variable is modified over the same state. I think, one of them is going to have an error on commitment and the winner will successfully modify the variable state. But: 1. Which error is going to have the first client? 2. From who? 3. Is there any standardized mechanism to assure the order of commitment?

jrosmith (Tue, 15 May 2018 18:02:45 GMT):
@gut at commitment time one of the transactions will be marked as invalid since two transactions have the same readset but different writesets. the client that got the transaction to the orderer first receives a success response, the one that does not receives an MVCC_READ_CONFLICT error.

jrosmith (Tue, 15 May 2018 18:06:27 GMT):
@smallant https://arxiv.org/pdf/1801.10228.pdf

gut (Tue, 15 May 2018 18:19:38 GMT):
Thanks @jrosmith . So I suppose that there's no way to add weight to one commit and ensure the order of commitment...

jrosmith (Tue, 15 May 2018 18:20:44 GMT):
@gut i don't believe so, it comes down to which gets ordered first

gravity (Tue, 15 May 2018 18:28:06 GMT):
are there any valid use cases for a single org network?

gravity (Tue, 15 May 2018 18:28:06 GMT):
are there any valid use case for a single org network?

vsadriano (Tue, 15 May 2018 18:48:56 GMT):
Hi! What's the specific channel for NodeSDK questions? Thanks!

jrosmith (Tue, 15 May 2018 19:20:57 GMT):
@vsadriano #fabric-sdk-node

XingqiangMao (Tue, 15 May 2018 19:23:31 GMT):
Hi guys question. On the first network example.

XingqiangMao (Tue, 15 May 2018 19:24:35 GMT):
When do efyn.sh(org3) I saw createConfigTx actually is action on cli container (org1,org2 and orderer).

XingqiangMao (Tue, 15 May 2018 19:25:13 GMT):
Can't understand this. Every time adding a new peer. We need to go to orderer add peer locally?

vsadriano (Tue, 15 May 2018 20:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rXpA75Rqr8XDvff7b) @jrosmith Thanks!

gravity (Tue, 15 May 2018 20:25:00 GMT):
can someone share some thoughts of how basic application based on hyperledger fabric should look like? Who should host network containers? How many peers should be defined in an organization? I'm quite lost here

jrosmith (Tue, 15 May 2018 20:41:55 GMT):
@gravity it really depends on use case. its your choice as to who "owns" network containers, but in general i think it makes sense to separate instances based on org. org1 gets its own server with containers for org1 peers, orderer, ca, etc. org2 gets its own server with containers for org2 peers, orderer, ca, etc. orgN gets its own.... each org will need one peer at a minimum. how many you assign per org depends on your use case/availability/scale requirements. i think it was recommended that there is a dedicated organization just for ordering, since an endorsed transaction can technically be sent to any OSN.

gravity (Tue, 15 May 2018 20:49:57 GMT):
@jrosmith I agree that every org should run its own server with all containers. at least it will be very expensive for a single host to run servers for every org to run containers. and I have two additional questions: 1. is it reasonable to run a single org network? or will it be better to think about an ordinary database? 2. is it reasonable to run a network where only one org will be able to read/update ledger? I mean that there will be a channel with only one org which is eligible to read/update ledger.

jrosmith (Tue, 15 May 2018 20:55:02 GMT):
@gravity thats a good question, i'm not really sure. for that specific use case i'd ask the question of what value using a blockchain adds to your service. the whole point is distributed information so if theres really only one user then i'm not sure if its worth it

gravity (Tue, 15 May 2018 21:00:27 GMT):
@jrosmith I'll take it into consideration. and to clarify, as the best practice we should run a separate orderer for each org, shouldn't we?

gravity (Tue, 15 May 2018 21:43:28 GMT):
@jrosmith Also, I have a question about endorsement policy. Please, correct me if I go wrong. If we set up endorsement policy like AND(Org1MSP.peer, Org2MSP.peer), does it endorsed under the hood? or some user interaction is required (like confirmation via SDK or something like this)?

XingqiangMao (Tue, 15 May 2018 22:45:56 GMT):
Hi Guys. I am trying to join a new peer from same machine to the network. Keep getting 2018-05-15 22:36:32.084 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: can't read the block: &{FORBIDDEN} When I do peer channel fetch...

XingqiangMao (Tue, 15 May 2018 22:45:59 GMT):
Any idea?

nfrunza (Tue, 15 May 2018 22:57:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MpyAgfBXfG6PDesEX) @gravity @Mahesh-Raj Is there any API to avoid manual channel create, join peer?

burgerfreak (Wed, 16 May 2018 01:48:24 GMT):
Has joined the channel.

Daiki0124 (Wed, 16 May 2018 02:01:49 GMT):
Network MSP is Unimplemented ?

kaelvergara (Wed, 16 May 2018 02:34:45 GMT):
Has joined the channel.

nithindj192 (Wed, 16 May 2018 03:59:35 GMT):
Hi, If a peer is connected to two channels, it will have two ledgers/blockchains. My question is, Does the peer maintain two ledger states or it will maintain state of both ledgers in single couch?

kyuyeon (Wed, 16 May 2018 06:04:50 GMT):
Has joined the channel.

nitrek (Wed, 16 May 2018 06:18:46 GMT):
Hi all How to i delete a state created using composite key?

nitrek (Wed, 16 May 2018 06:19:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RXt3ECfohcW4d6etN) @nithindj192 I think it maintains 2 state

majety.1 (Wed, 16 May 2018 07:34:43 GMT):
hi all, I have an custom chaincode developed in my local directory and using byfn , how can I install it on the peer? Thanks in advance.

MonnyClara (Wed, 16 May 2018 07:56:51 GMT):
@majety.1 You either can mount the custom chaincode directory to your cli docker or copy you chaincode into an already mounted directory. Then you custom chaincode will be accessible into the docker. Then you can follow the same instructions as in the tutorial

kshitiz_leo (Wed, 16 May 2018 08:15:10 GMT):
@MonnyClara Can you please explain?

MonnyClara (Wed, 16 May 2018 08:16:08 GMT):
@kshitiz_leo Explain what ?

gravity (Wed, 16 May 2018 08:38:33 GMT):
hi how to set an endorsement policy where a particular peer can endorse a transaction? because in the documentation we have next setup OR(Org1MSP.peer, Org1MSP.admin). it means that any member of the Org1 with role peer can endorse a transaction. can we set a policy in this way OR(Org1MSP.peer0-org1, Org1MSP.peer1-org1)?

srinivas640 (Wed, 16 May 2018 08:50:52 GMT):
Hi I am getting error when executing "vagrant up" command - error: unable to create symlink internal/fs/testdata/symlinks/windows-file-symlink (Protocol error)

wlimtx (Wed, 16 May 2018 08:58:38 GMT):
Has joined the channel.

Tony (Wed, 16 May 2018 09:18:17 GMT):
Hi all, is it possible to hide the identity of sender and receiver from single channel network?

szdenny (Wed, 16 May 2018 09:40:34 GMT):
Has joined the channel.

hussein.knight (Wed, 16 May 2018 10:29:53 GMT):
please i need helpp, i want to interact with my blockchain from a local php page and init and invoke the chaincode from it, but how can i do that i need help plz, or if you have any other user interface to interact with the blockchain..

Alaa_Migdady (Wed, 16 May 2018 11:06:10 GMT):
hi all .. I am trying to make some modifications on fabcar sample ,, I changed a little on the chaincode ,, but whaen I am trying to query .. I have this error

Alaa_Migdady (Wed, 16 May 2018 11:06:10 GMT):
hi all .. I am trying to make some modifications on fabcar sample ,, I changed a little on the chain code ,, but when I am trying to query .. I have this error error: [Peer.js]: sendProposal - timed out after:45000 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT at Timeout._onTimeout (/Users/rbk26/Desktop/our/fabric-samples/fabcar/node_modules/fabric-client/lib/Peer.js:124:19)

anjalinaik (Wed, 16 May 2018 11:24:38 GMT):
Can anybody tell me what this message means?

anjalinaik (Wed, 16 May 2018 11:24:39 GMT):
2018-05-16 11:18:31.045 UTC [protoutils] ValidateProposalMessage -> WARN 996 channel [emchannel]: MSP error: the supplied identity is not valid: x509: certificate has expired or is not yet valid

Mahesh-Raj (Wed, 16 May 2018 11:26:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KKd4pj546sJ2fxLdZ) @anjalinaik generated the crypto multiple times and passing the old one

Tony (Wed, 16 May 2018 11:31:53 GMT):
Hi all, is it possible to hide the identity of sender and receiver from single channel network?

anjalinaik (Wed, 16 May 2018 11:32:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JuyKYknRRoRijLq5N) @Mahesh-Raj Okay. thank-you for your inputs.

Ammu (Wed, 16 May 2018 11:56:40 GMT):

sanp.png

Mahesh-Raj (Wed, 16 May 2018 12:02:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JkCe99Mrs459zQxPh) @Ammu `git stash` all local changes gone

CorentinPacaud (Wed, 16 May 2018 12:39:19 GMT):
Hello, anyone have any info with this error ? ``` docker exec peer1.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ```

CorentinPacaud (Wed, 16 May 2018 12:39:19 GMT):
Hello, anyone has any info with this error ? ``` docker exec peer1.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ```

Mahesh-Raj (Wed, 16 May 2018 12:42:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SsX29BPr5PahQjiuf) @CorentinPacaud it comes when the channel is already there.

CorentinPacaud (Wed, 16 May 2018 12:45:31 GMT):
Well, I do a `Fetch` , not a `create`

CorentinPacaud (Wed, 16 May 2018 12:45:36 GMT):
oh sry

CorentinPacaud (Wed, 16 May 2018 12:45:47 GMT):
Fu**

CorentinPacaud (Wed, 16 May 2018 12:45:51 GMT):
My bad

ajmeraharsh (Wed, 16 May 2018 12:52:58 GMT):
Has joined the channel.

MaximeAubanel (Wed, 16 May 2018 13:00:26 GMT):
Has joined the channel.

MaximeAubanel (Wed, 16 May 2018 13:00:29 GMT):
hello guys, is it possible to MockInvoke with a special identity ? For example someone with a particular affiliation ?

jrosmith (Wed, 16 May 2018 13:03:14 GMT):
@gravity i would double check whether or not there should be a separate OSN for each org in #fabric-orderer , i really think it depends on the use case. enforcement of the endorsement policy will occur when the signed proposal is sent for ordering regardless of user inspection of proposal results.

jrosmith (Wed, 16 May 2018 13:03:55 GMT):
for your last question try asking #fabric-peer-endorser-committer

CorentinPacaud (Wed, 16 May 2018 13:09:21 GMT):
Hello again : ``` docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b composerchannel_config.block Error: Error getting endorser client channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: context deadline exceeded ```

CorentinPacaud (Wed, 16 May 2018 13:09:26 GMT):
Any idea ?

ajmeraharsh (Wed, 16 May 2018 13:14:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h7aqmMtrctnisZ6ir) @CorentinPacaud are you passing the orderer ca.crt in env variable?

ajmeraharsh (Wed, 16 May 2018 13:14:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h7aqmMtrctnisZ6ir) @CorentinPacaud as you passing the orderer ca.crt in env variable?

CorentinPacaud (Wed, 16 May 2018 13:17:36 GMT):
@ajmeraharsh how ?

CorentinPacaud (Wed, 16 May 2018 13:18:15 GMT):
In docker-compose.yaml ?

ajmeraharsh (Wed, 16 May 2018 13:18:18 GMT):
@CorentinPacaud `--tls --cafile` can find more here `http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html`

CorentinPacaud (Wed, 16 May 2018 13:20:02 GMT):
this line ? `CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt`

CorentinPacaud (Wed, 16 May 2018 13:20:17 GMT):
in docker-compose ?

ajmeraharsh (Wed, 16 May 2018 13:22:59 GMT):
actually you just need to do that while fetching the block, not while joining.

CorentinPacaud (Wed, 16 May 2018 13:23:37 GMT):
Epic win !!!

vick (Wed, 16 May 2018 13:25:40 GMT):
@ajmeraharsh @CorentinPacaud do you need this tls and cafile when joining a channel?

vick (Wed, 16 May 2018 13:25:50 GMT):
what if i am NOT using TLS is it still necessary?

CorentinPacaud (Wed, 16 May 2018 13:26:28 GMT):
@vick It seems that it's needed now (with new update of composer/fabric) IMO

vick (Wed, 16 May 2018 13:27:07 GMT):
i am getting a different error not sure if you've come across it; `docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users" peer0.org1.example.com peer channel join -b /etc/hyperledger/configtx/mychannel.block 2018-05-16 13:26:33.500 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP 2018-05-16 13:26:33.500 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity 2018-05-16 13:26:33.502 UTC [channelCmd] InitCmdFactory -> INFO 004 Endorser and orderer connections initialized 2018-05-16 13:26:33.503 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AF9080A5C08011A0C0889E3F0D70510...DB6615E2EB3B1A080A000A000A000A00 2018-05-16 13:26:33.503 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: B3E50825C5056B3F6C27940730D3BD172F4DD4B1653524EC1BCA771FAD154566 Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" request failed authorization check for channel [mychannel]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]))`

vick (Wed, 16 May 2018 13:28:00 GMT):
i can't figure out why it's complaining about the identity not being an admin ... i don't know which identity it's complaining about

vick (Wed, 16 May 2018 13:28:12 GMT):
prior to this i created a channel with the same peer without any errors

vick (Wed, 16 May 2018 13:28:20 GMT):
now i am trying to join that channel it's throwing this error

ajmeraharsh (Wed, 16 May 2018 13:28:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tmzePgJ5cYCBYWLNr) @CorentinPacaud till HLF1.1, its not

CorentinPacaud (Wed, 16 May 2018 13:29:25 GMT):
@ajmeraharsh I have a new error, when installing network now : ``` composer network start -c PeerAdmin@hlfv1 -A admin -S adminpw --file ./admin.card -n odm-poc-network -V 0.0.81 Starting business network odm-poc-network at version 0.0.81 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Command failed ```

ajmeraharsh (Wed, 16 May 2018 13:30:16 GMT):
@vick notice the asterisk `docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users*Admin@org1.example.com/msp*" peer0.org1.example.com peer channel join -b /etc/hyperledger/configtx/mychannel.block`

ajmeraharsh (Wed, 16 May 2018 13:30:59 GMT):
@vick you are missing that part in your command

vick (Wed, 16 May 2018 13:31:04 GMT):
yeah, so i've changed my path actually so it's meant to be like that for me @ajmeraharsh

vick (Wed, 16 May 2018 13:31:11 GMT):
maybe i am missing something from that directory ...

vick (Wed, 16 May 2018 13:31:40 GMT):
i will inspect if my dir and the dir it should be has the same hierarchy and contents @ajmeraharsh

MaximeAubanel (Wed, 16 May 2018 13:38:17 GMT):
hello guys, is it possible to MockInvoke with a special identity ? For example someone with a particular affiliation ?

RahulSonanis (Wed, 16 May 2018 14:07:37 GMT):
Hi everyone, I am trying to benchmark different stages of transaction life-cycle in Hyperledger Fabric according to the paper : https://arxiv.org/abs/1801.10228 . If there is any code available related to the same please can anyone share the link?.

debesh (Wed, 16 May 2018 14:17:41 GMT):
Has joined the channel.

sarthak_sharma (Wed, 16 May 2018 14:32:48 GMT):
Has joined the channel.

sarthak_sharma (Wed, 16 May 2018 14:32:57 GMT):
Hi

sarthak_sharma (Wed, 16 May 2018 14:35:44 GMT):
I am using fabric Java SDK and I want to persist the user data with Enrollment object in Google Firestore DB.. Its working fine if I don't store Enrollment object.. The moment I store Enrollment object with user.. It doesn't let me store the object

vick (Wed, 16 May 2018 14:36:33 GMT):
@ajmeraharsh dude had a look, where do i get the tls artifacts from that are in this folder? i am using the fabric ca server and client, so not using cryptogen

sarthak_sharma (Wed, 16 May 2018 14:36:40 GMT):
The error is --- no-properties-to-serialize-found-on-class

vick (Wed, 16 May 2018 14:36:54 GMT):
@sarthak_sharma you need to make the class serializable?

sarthak_sharma (Wed, 16 May 2018 14:37:10 GMT):
I made it serialzable

vick (Wed, 16 May 2018 14:37:10 GMT):
or mark properties on the class that are serializable

sarthak_sharma (Wed, 16 May 2018 14:37:39 GMT):
Using some annotation?

sarthak_sharma (Wed, 16 May 2018 14:39:34 GMT):
@vick - There are around 10 properties.. It works fine for rest of them.. but not for Enrollment object.. I tried changing it to *org.hyperledger.fabric_ca.sdk.HFCAEnrollment* too

sarthak_sharma (Wed, 16 May 2018 14:39:45 GMT):
but no luck

vick (Wed, 16 May 2018 14:40:38 GMT):
@ajmeraharsh like the .crt files

vick (Wed, 16 May 2018 14:41:02 GMT):
@sarthak_sharma i am not sure, sorry, was just taking a guess

sarthak_sharma (Wed, 16 May 2018 14:41:35 GMT):
Is there is some best practice on how to create and store Enrollment object within *org.hyperledger.fabric.sdk.User* , which I am missing?

sarthak_sharma (Wed, 16 May 2018 14:41:42 GMT):
no worries @vick . THanks

gravity (Wed, 16 May 2018 14:56:34 GMT):
is every transaction (successful or not) stored on the blockchain? is it stored in an ordering service?

gravity (Wed, 16 May 2018 14:56:34 GMT):
is every transaction (successful or not) stored on the blockchain? is stored in ordering service?

gravity (Wed, 16 May 2018 14:56:53 GMT):
@jrosmith thanks, I'll ask

bourbonkidQ (Wed, 16 May 2018 15:04:10 GMT):
hello when I try to create the channel throw the nodeSDK I have this error on the orderer ``UTC [orderer/common/broadcast] Handle -> WARN 16c [channel: mychannel] Rejecting broadcast of config message from *:* because of error: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining `` Could you help me ?

bourbonkidQ (Wed, 16 May 2018 15:04:10 GMT):
hello when I try to create the channel throw the nodeSDK I have this error on the orderer `UTC [orderer/common/broadcast] Handle -> WARN 16c [channel: mychannel] Rejecting broadcast of config message from *:* because of error: Error authorizing update: Error validating DeltaSet: Policy for [Groups] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ` Could you help me ?

bourbonkidQ (Wed, 16 May 2018 15:04:56 GMT):
My certificate is generated by cryptogen

daisuke (Wed, 16 May 2018 15:39:33 GMT):
Has joined the channel.

daisuke (Wed, 16 May 2018 15:40:04 GMT):
Hi there, is it possible to open 2 channels amongst the same peers?

daisuke (Wed, 16 May 2018 15:40:04 GMT):
Hi there, is it possible to open 2 channels amongst the same peers? I can't really find this in the docs.

SebastianMartinez (Wed, 16 May 2018 15:42:01 GMT):
Has joined the channel.

janagar27 (Wed, 16 May 2018 15:49:36 GMT):
Has joined the channel.

janagar27 (Wed, 16 May 2018 15:49:40 GMT):
Hi

janagar27 (Wed, 16 May 2018 15:50:12 GMT):
is it possible to retrieve all the transactions posted against particular chain code

janagar27 (Wed, 16 May 2018 15:50:14 GMT):
?

janagar27 (Wed, 16 May 2018 15:50:45 GMT):
i need CURL statement for that

janagar27 (Wed, 16 May 2018 15:51:40 GMT):
i am using hyperledger fabric

gravity (Wed, 16 May 2018 15:53:09 GMT):
Hi all How to give an access to the channel (to read/update) for a particular user (registered and enrolled using fabric-ca) in Hyperledger?

KGiou (Wed, 16 May 2018 15:53:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=twkTGmK6YcfgovZFc) @jrosmith my use case is that I want to have a network up and running. After that I will create my application server. Can my application server join my *existing* channel *without* creating that channel from the node-sdk?

maoxine (Wed, 16 May 2018 16:56:15 GMT):
Has joined the channel.

jrosmith (Wed, 16 May 2018 16:56:49 GMT):
@KGiou so long as you have the genesis block for the channel and the requisite peer targets you can just join a previously created channel, you do not have to bundle the two steps together

maoxine (Wed, 16 May 2018 17:05:02 GMT):
Hi, I'm new to fabric and I was wondering whether it is possible to simulate network traffic between the different organisations (which I want to act as ASes) on a channel, as depending on the information added on the ledger the organisations (network operators) should accept or reject packets- is this at all possible...??

gravity (Wed, 16 May 2018 18:19:48 GMT):
Hi @jrosmith is it possible to restrict chaincode invocation for particular users? I mean, if there is an organization, with 4 peers, peer0 and peer1 are in channel A, peer2 and peer3 are in channel B. there are 4 users registered with fabric-ca. is it possible to allow user0 and user1 to have an access only to channel A, and user2 and user3 to have only an access to channel B? Thanks in advance

jrosmith (Wed, 16 May 2018 18:22:45 GMT):
@gravity sure. if user0 and user1 are a part of a separate organization you can restrict it based on their org. if all the users are members of the same organization and you still want this restriction you can use attribute based access control (abac) and restrict their permissions at the chaincode level.

alexaguileravz93 (Wed, 16 May 2018 18:57:14 GMT):
Hi, I am currently looking at setting up Fabric in a production environment, but because of corporate policies we aren't going to be able to make peers internet facing right now, but we wanted to explore possibilities of using VPN to allow for connections between peers from other organizations. Does anyone know if this approach would be viable? Are there any better options for communication between peers that aren't able to be public/internet facing?

ameyaraje (Wed, 16 May 2018 19:04:23 GMT):
Has joined the channel.

XingqiangMao (Wed, 16 May 2018 20:52:07 GMT):
Can we setup multiple orderer in different physical location for same channel?

jrosmith (Wed, 16 May 2018 20:54:19 GMT):
@XingqiangMao yes OSNs can have different physical locations

XingqiangMao (Wed, 16 May 2018 20:54:49 GMT):
But each request will only go to one orderer?

ChaoChow (Wed, 16 May 2018 21:24:03 GMT):
Has joined the channel.

ChaoChow (Wed, 16 May 2018 21:24:44 GMT):
Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the mycc chaincode

ChaoChow (Wed, 16 May 2018 21:24:53 GMT):
Hi All, I am working through the fabric first network example and am getting a npm self signed cert error when installing the node version of the chaincode

ChaoChow (Wed, 16 May 2018 21:25:32 GMT):
I have found this to be non deterministic with the instantiate chaincode command sometimes working and sometimes not

rofa (Thu, 17 May 2018 03:52:23 GMT):
Has joined the channel.

coveloper (Thu, 17 May 2018 04:13:16 GMT):
Has joined the channel.

coveloper (Thu, 17 May 2018 04:15:43 GMT):
Hi, new to Fabric. If i want to create a shared ledger between multiple companies, should each company be a "peer" of a single shared Org? Or should each company be an Org and connect (through an anchor)?

shwetacse5 (Thu, 17 May 2018 05:39:57 GMT):
Has joined the channel.

shwetacse5 (Thu, 17 May 2018 05:42:12 GMT):
Hi.. I am new to Fabric and i am running "Building Your First Network" but i am getting error when i try to create a channel through "peer create" .

shwetacse5 (Thu, 17 May 2018 05:42:26 GMT):
Error is "2018-05-17 10:51:02.839 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C30CEA1DEEEBF47BD5A8C85643D4C701FE192BB6870F3D5BD63D8B777A05D090 Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2018-05-17 10:51:02.839 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C30CEA1DEEEBF47BD5A8C85643D4C701FE192BB6870F3D5BD63D8B777A05D090 Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2018-05-17 10:51:02.839 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C30CEA1DEEEBF47BD5A8C85643D4C701FE192BB6870F3D5BD63D8B777A05D090 Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied "

shwetacse5 (Thu, 17 May 2018 05:42:57 GMT):
orderer.example.com | 2018-05-17 10:51:02.842 UTC [msp] DeserializeIdentity -> INFO 00f Obtaining identity orderer.example.com | 2018-05-17 10:51:02.842 UTC [cauthdsl] deduplicate -> ERRO 010 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 0a074f7267314d535012aa062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434b6a4343416447674177494241674952414a50697747694c30452f564456425a784f516

shwetacse5 (Thu, 17 May 2018 05:47:38 GMT):
Can anyone please help?

chongxinman (Thu, 17 May 2018 06:24:08 GMT):
Has joined the channel.

sinbad_jia (Thu, 17 May 2018 06:28:46 GMT):
hi guys, do we have a way to change the timezone of the chaincode container? thanks very much.

PallabPaul (Thu, 17 May 2018 07:07:47 GMT):
Has joined the channel.

PallabPaul (Thu, 17 May 2018 07:08:34 GMT):
Hi I am currently following this tutorial to download the prereqs: https://ibm-blockchain.github.io/develop/installing/installing-prereqs

PallabPaul (Thu, 17 May 2018 07:09:08 GMT):
After entering the command: ./prereqs-ubuntu.sh I am getting these errors: ./prereqs-ubuntu.sh: line 1: syntax error near unexpected token `newline' ./prereqs-ubuntu.sh: line 1: `' From my understanding, the file I am curling becomes an html and not an executable and I am wondering how to solve this problem. 2:52 AM I am installing on ubuntu 16.04

PallabPaul (Thu, 17 May 2018 07:09:30 GMT):
I was wondering how I can solve this problem

zshwei (Thu, 17 May 2018 07:22:54 GMT):
Has joined the channel.

zshwei (Thu, 17 May 2018 07:23:10 GMT):
Hi everyone.

zshwei (Thu, 17 May 2018 07:23:23 GMT):
I dumped the bytes of a common.Block to a file. Can I use the "configtxlator proto_decode --type=common.Block ..." tool to translate it to json format so that I can check the content? I tried but it always fail. Any suggestions?

zshwei (Thu, 17 May 2018 07:28:20 GMT):
the bytes are the results of protobuf serialized result.

ajmeraharsh (Thu, 17 May 2018 07:28:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=juRPDPhwxe8ZK8mvN) @PallabPaul all that is old documentation, here are new ones `http://hyperledger-fabric.readthedocs.io/en/release-1.1/prereqs.html`

ajmeraharsh (Thu, 17 May 2018 07:28:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=juRPDPhwxe8ZK8mvN) @PallabPaul all that is all documentation, here are new ones `http://hyperledger-fabric.readthedocs.io/en/release-1.1/prereqs.html`

ajmeraharsh (Thu, 17 May 2018 07:31:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nBWzLdC8KZKk4Wc4k) @zshwei do you have the exact command and error to be shown here?

shwetacse5 (Thu, 17 May 2018 07:32:06 GMT):
and i am running "Building Your First Network" but i am getting error when i try to create a channel through "peer create"

shwetacse5 (Thu, 17 May 2018 07:32:29 GMT):
Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2018-05-17 10:51:02.839 UTC [msp/identity] Sign -> DEBU 00f Sign: digest:

shwetacse5 (Thu, 17 May 2018 07:33:18 GMT):
Is byfn.sh create a network successfully? Or do we need to run steps manually ?

zshwei (Thu, 17 May 2018 07:35:03 GMT):
@ajmeraharsh Thanks in advance. The command is -

zshwei (Thu, 17 May 2018 07:35:05 GMT):
configtxlator proto_decode --type=common.Block --input=./weisblock1 --output=./weisblock1.json

zshwei (Thu, 17 May 2018 07:35:10 GMT):
and the output is -

zshwei (Thu, 17 May 2018 07:35:20 GMT):
configtxlator: error: Error decoding: error unmarshaling: proto: common.Block: illegal tag 0 (wire type 1)

ajmeraharsh (Thu, 17 May 2018 07:35:41 GMT):
try this @zshwei `configtxlator proto_decode --type common.Block --input ./weisblock1 --output ./weisblock1.json`

zshwei (Thu, 17 May 2018 07:35:43 GMT):
The same command worked on the genesis block though.

zshwei (Thu, 17 May 2018 07:36:25 GMT):
same result.

zshwei (Thu, 17 May 2018 07:37:41 GMT):
If I run the command on the genesis block (which is a file generated by cmd line tool I think), it does work.

ajmeraharsh (Thu, 17 May 2018 07:38:04 GMT):
this command isn't the right one though. This is to convert the json to a protobuf

zshwei (Thu, 17 May 2018 07:39:48 GMT):

Screen Shot 2018-05-17 at 3.39.19 PM.png

zshwei (Thu, 17 May 2018 07:40:57 GMT):
Is doc out of date? http://hyperledger-fabric.readthedocs.io/en/release-1.1/commands/configtxlator.html

gut (Thu, 17 May 2018 08:18:10 GMT):
Can someone tell documentation starting point to work using external CAs? Or is not possible to integrate with own organization worker certificates yet?

pdeep (Thu, 17 May 2018 09:29:56 GMT):
Has joined the channel.

pdeep (Thu, 17 May 2018 09:30:21 GMT):
How to verify consensus in hyperledger fabric?

silvercondor (Thu, 17 May 2018 10:06:44 GMT):
Has joined the channel.

silvercondor (Thu, 17 May 2018 10:07:42 GMT):
Has left the channel.

mall3i (Thu, 17 May 2018 11:00:13 GMT):
Has joined the channel.

vamshirapolu (Thu, 17 May 2018 11:08:45 GMT):
Has joined the channel.

sanma1993 (Thu, 17 May 2018 11:15:22 GMT):
Has joined the channel.

HarshithaC (Thu, 17 May 2018 11:56:41 GMT):
Has joined the channel.

bourbonkidQ (Thu, 17 May 2018 13:07:04 GMT):
Hello, when the nodeSDK try to instantiate the chaincode i have this following error on the peer `2018-05-17 12:49:05.271 UTC [deliveryClient] RequestBlocks -> DEBU 4b1 Starting deliver with block [1] for channel mychannel 2018-05-17 12:49:05.272 UTC [blocksProvider] DeliverBlocks -> WARN 4b2 [mychannel] Got error &{NOT_FOUND} ` to you have any idea ? I have already create the channel on the peer

yacovm (Thu, 17 May 2018 13:13:37 GMT):
looks like the channel doesn't exist in the orderer

jorgebonafe (Thu, 17 May 2018 13:28:37 GMT):
Hello. I'm having trouble with the byfn tutorial. I managed to do it without problems, and now I'm trying to change some things on the configuration files. I configured 6 orgs, and I'm trying to create a channel with two of them. When I get to the command to join a channel, I'm getting this error: Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Client1MSP]) Here are my configuration files: https://www.dropbox.com/s/tutc4pla6jlygej/my_network.zip?dl=1 The commands I'm running from start to finish are on COMMANDS.txt. I'm hitting my head against this for hours and I have no clue what I'm doing wrong... Any help is appreciated.

yacovm (Thu, 17 May 2018 13:29:57 GMT):
@jorgebonafe - seems like the certificate you're using to join the peers to the channel isn't an admin certificate. it should show up in the peer's log

jorgebonafe (Thu, 17 May 2018 13:30:49 GMT):
But this is the command I used: CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/provider1.provider1domain.com/users/Admin@provider1.provider1domain.com/msp CORE_PEER_ADDRESS=peer0.provider1.provider1domain.com:7051 CORE_PEER_LOCALMSPID="Provider1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/provider1.provider1domain.com/peers/peer0.provider1.provider1domain.com/tls/ca.crt peer channel join -b testchannel.block

jorgebonafe (Thu, 17 May 2018 13:31:11 GMT):
I specified the admin cert, and I checked, the file does exist

yacovm (Thu, 17 May 2018 13:31:26 GMT):
what shows up in the peer logs?

jorgebonafe (Thu, 17 May 2018 13:31:36 GMT):
One second...

jorgebonafe (Thu, 17 May 2018 13:31:42 GMT):
or two...

jorgebonafe (Thu, 17 May 2018 13:32:49 GMT):
Are these logs supposed to be in a file somewhere? Because I'm not seeing them... Or you mean the console output?

yacovm (Thu, 17 May 2018 13:33:12 GMT):
no...

yacovm (Thu, 17 May 2018 13:33:18 GMT):
the container of the peer

yacovm (Thu, 17 May 2018 13:33:24 GMT):
`docker ps`

yacovm (Thu, 17 May 2018 13:33:30 GMT):
then `docker logs

yacovm (Thu, 17 May 2018 13:33:30 GMT):
then `docker logs `

jorgebonafe (Thu, 17 May 2018 13:33:40 GMT):
ah, ok... lemme check

jorgebonafe (Thu, 17 May 2018 13:34:09 GMT):
it'll take me a while, I gotta run the whole thing again

yacovm (Thu, 17 May 2018 13:34:15 GMT):
why?

yacovm (Thu, 17 May 2018 13:34:22 GMT):
did you delete the network?

jorgebonafe (Thu, 17 May 2018 13:34:26 GMT):
yep

jorgebonafe (Thu, 17 May 2018 13:34:46 GMT):
many times :P

RomanaL 1 (Thu, 17 May 2018 13:42:15 GMT):
Has joined the channel.

jorgebonafe (Thu, 17 May 2018 13:42:26 GMT):
Oh

FelipeSantana (Thu, 17 May 2018 13:42:28 GMT):
Has joined the channel.

jorgebonafe (Thu, 17 May 2018 13:42:54 GMT):
There is an error... "expected MSP ID Org1MSP, received Client1MSP"

jorgebonafe (Thu, 17 May 2018 13:43:25 GMT):
But I thought I had replaced all of these names on every config file... I'm gonna take a second look

jorgebonafe (Thu, 17 May 2018 13:44:30 GMT):
Damn, I missed some... Ok, I think that's the problem.

jorgebonafe (Thu, 17 May 2018 13:52:26 GMT):
@yacovm Yes.. It worked. Thank you so much man :)

yacovm (Thu, 17 May 2018 13:52:50 GMT):
cool

ChaoChow (Thu, 17 May 2018 15:52:57 GMT):
Hi I am getting a npm self signed certificate issue when trying to instantiate chaincode on fabric

ChaoChow (Thu, 17 May 2018 15:53:11 GMT):
the error is specifically

ChaoChow (Thu, 17 May 2018 15:53:12 GMT):
npm ERR! request to https://registry.npmjs.org/fabric-shim failed, reason: self signed certificate in certificate chain

ChaoChow (Thu, 17 May 2018 15:53:35 GMT):
only on Node chaincode ofc

chart01 (Thu, 17 May 2018 17:14:27 GMT):
Has joined the channel.

chart01 (Thu, 17 May 2018 17:15:28 GMT):
A question on the Fabric vs Sawtooth use case. Is the 'killer app' for Sawtooth the scalability, where the 'killer app

chart01 (Thu, 17 May 2018 17:15:28 GMT):
A question on the Fabric vs Sawtooth use case. Is the 'killer app' for Sawtooth the scalability, where the 'killer app' for Fabric is the private ledgers?

chart01 (Thu, 17 May 2018 17:16:13 GMT):
Curious about the cases where one is better than the other

umtyzc (Thu, 17 May 2018 17:54:52 GMT):
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/course/ use this course. Look at Chapter 4. @PallabPaul [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=juRPDPhwxe8ZK8mvN)

umtyzc (Thu, 17 May 2018 18:03:06 GMT):
1-Transaction endorsement,2-Ordering, 3-Validation and commitment : Look at these documents. https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/5ebddaca983d4d6d952e83f95ea9e281/3?activate_block_id=block-v1%3ALinuxFoundationX%2BLFS171x%2B3T2017%2Btype%40vertical%2Bblock%40f9fdfa7d678d4f10b9b16cc9c76f38ad ——- http://hyperledger-fabric.readthedocs.io/en/release-1.1/txflow.html @pdeep [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6MQ9CFndYZbvq9zxJ)

sunayana (Thu, 17 May 2018 18:30:12 GMT):
Has joined the channel.

sunayana (Thu, 17 May 2018 18:31:39 GMT):
Hello i have a problem in channel creation in docker can u please help me out , i got blocked here.

sunayana (Thu, 17 May 2018 18:38:40 GMT):

Clipboard - May 17, 2018 11:38 AM

vinimartinson (Thu, 17 May 2018 18:46:57 GMT):
Has joined the channel.

ChaoChow (Thu, 17 May 2018 19:04:58 GMT):
@sunayana can you check to see if your docker containers for peer/orderer are running

patrickodhiambo (Fri, 18 May 2018 02:54:18 GMT):
Has joined the channel.

pankajcheema (Fri, 18 May 2018 04:48:10 GMT):
how to generate a unique key for shim.PutState("unique_key_here",value)

pankajcheema (Fri, 18 May 2018 04:48:11 GMT):
??

majety.1 (Fri, 18 May 2018 05:42:19 GMT):
$ node registerAdmin.js Store path:/Users/insurancenext/.hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/Users/insurancenext/Desktop/fabric-samples/tuna-app/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at Socket.socketErrorListener (_http_client.js:309:9) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at emitErrorNT (net.js:1277:8) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) Failed to enroll admin: Error: Failed to enroll admin

majety.1 (Fri, 18 May 2018 05:42:35 GMT):
Can someone help me with this error

majety.1 (Fri, 18 May 2018 05:42:51 GMT):
I am trying to register admin using sdk

geourjoa (Fri, 18 May 2018 08:06:08 GMT):
Hi everyone. In Fabric if I have two channels, it's possible for the chaincode of the channel 1 to interact with the chaincode of the channel 2 ? Thanks

Mahesh-Raj (Fri, 18 May 2018 08:22:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K2KyBEhQGR3XXZF8Y) @geourjoa not till Fabric1.1

Ismail-Boukili (Fri, 18 May 2018 08:51:15 GMT):
Has joined the channel.

gut (Fri, 18 May 2018 09:12:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K2KyBEhQGR3XXZF8Y) @geourjoa It seems like a privacy violation to me. "Although any one anchor peer can belong to multiple channels, and therefore maintain multiple ledgers, no ledger data can pass from one channel to another ... This isolation of peers and ledger data, by channel, allows network members that require private and confidential transactions to coexist" [Extracted from docs v1.1](http://hyperledger-fabric.readthedocs.io/en/release-1.1/channels.html)

umtyzc (Fri, 18 May 2018 09:16:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MYPDk5QPjHy7ojYcr) @majety.1 use rm -rf hfc-key-store command to delete hfc-key-store file and try again.

bourbonkidQ (Fri, 18 May 2018 09:44:38 GMT):
Hello, I need to add an orderer to my hyperledger network, If I understand, I need to modify the genesis block and add the new orderer ip into the genesis block. With the command configtxgen -inspectBlock I can see the configuration of the genesisblock but how Can I modify it ?

bourbonkidQ (Fri, 18 May 2018 09:44:38 GMT):
Hello, I would like to add an orderer to my hyperledger network, If I understand, I need to modify the genesis block and add the new orderer ip into the genesis block. With the command configtxgen -inspectBlock I can see the configuration of the genesisblock but how Can I modify it ?

TanusreeChatterjee (Fri, 18 May 2018 09:55:11 GMT):
Hello ,after registered the chaincode in aws local blockchain network I am unable to connect http://localhost:7050 remotely..

TanusreeChatterjee (Fri, 18 May 2018 09:56:21 GMT):
I am trying to connect it through the aws private ip but connection is refused to that ip

ajmeraharsh (Fri, 18 May 2018 10:13:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ttERDF4LNxcAATKDp) @bourbonkidQ not the genesis block, you need to update the channel

ajmeraharsh (Fri, 18 May 2018 10:14:20 GMT):
@bourbonkidQ just add the new orderer address to `OrdererAddresses.addresses` in channel config and you are done

bourbonkidQ (Fri, 18 May 2018 10:14:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wgbn3BMWxa9dfBxfM) @ajmeraharsh how can I do that ?

bourbonkidQ (Fri, 18 May 2018 10:16:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NQgBJjXZ8Gie6RFL6) @ajmeraharsh inside the configtx.yaml ? But after I need to re-generate the genesis block ?

ajmeraharsh (Fri, 18 May 2018 10:17:44 GMT):
@bourbonkidQ once the network is up, genesis block and configtx.yaml is of no use

ajmeraharsh (Fri, 18 May 2018 10:19:19 GMT):
@bourbonkidQ you need to fetch the `channel.config` make changes and update it again

Mahesh-Raj (Fri, 18 May 2018 10:20:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vv4w9sYuzNrxeEW9Z) @ajmeraharsh you sure? not even for adding a Peer?

ajmeraharsh (Fri, 18 May 2018 10:22:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yhCGc4W5mrdbKfXpk) @Mahesh-Raj what I meant by that is - any modification done to those files won't do much benefit. obviously you shouldn't delete them :)

ajmeraharsh (Fri, 18 May 2018 10:23:00 GMT):
@Mahesh-Raj for adding a Peer what you need is an extended version of configtx and not updating the existing one

Mahesh-Raj (Fri, 18 May 2018 10:23:43 GMT):
that makes sense

qwertabi (Fri, 18 May 2018 10:52:43 GMT):
Has joined the channel.

bourbonkidQ (Fri, 18 May 2018 11:37:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K7qJNn2BAwgi4iRvY) @ajmeraharsh I dont really understand what file i should modidy to add an orderer ... where are they localise ?

elicrisko (Fri, 18 May 2018 12:04:20 GMT):
Has joined the channel.

qwertabi (Fri, 18 May 2018 12:46:46 GMT):
Hey guys, i'm new to Hyperledger and want to know whether we can have the composer and fabric depolyed in different servers ? like having a composer in local for creating the business network and deploying onto an instance on cloud where i have my fabric

ajmeraharsh (Fri, 18 May 2018 13:11:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yAwK44uxDaNJNRjoj) @qwertabi you can easily export and import the `.bna` file to achieve this

RuiPanNewbie (Fri, 18 May 2018 13:14:33 GMT):
Has joined the channel.

migrenaa (Fri, 18 May 2018 13:27:22 GMT):
Hello guys, I have the following problem. I am working on a project that will have a Client App, where the users will be able to register and become users in the Hyperledger network. The users should be able to make transactions. The problem is that in order to communicate with the blockchain they need to have their certificates, so basically this means that we need to deliver the private key to the user via HTTPS which we don’t want to do for security reasons. We also don't want to store the private keys anywhere on our servers, so they need to remain on the client app. So, our idea is to generate the certificate from the client application and send only the public key via HTTPS and register it in the blockchain. I don’t see a way to implement this using Fabric CA. Could there be an easier solution than to implement our own Certificate Authority?

bourbonkidQ (Fri, 18 May 2018 13:48:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vv4w9sYuzNrxeEW9Z) @ajmeraharsh https://stackoverflow.com/questions/50153905/how-to-add-more-orderer-nodes-to-a-running-hyperledger-fabric-network He say that we need to generate new crypto materiel for the new orderer

ajmeraharsh (Fri, 18 May 2018 13:52:33 GMT):
@bourbonkidQ none of the entities in Hyperledger works without a crypto generated. My bad, I thought you know that already. that's a given. The real work happens after creating crypto.

gravity (Fri, 18 May 2018 14:34:04 GMT):
Hi all does anyone know why when a network is restarted, chaincode containers aren't up?

SubhashiniSundaresan (Fri, 18 May 2018 14:57:59 GMT):
Has joined the channel.

jrosmith (Fri, 18 May 2018 15:00:19 GMT):
@gravity is this a completely fresh restart?

jrosmith (Fri, 18 May 2018 15:01:04 GMT):
in general restarting peer will cause the chaincode containers to go down and they dont automatically restart when the peer comes up. a transaction has to be run against the peer for the container to come up.

khalpin (Fri, 18 May 2018 15:38:17 GMT):
Has joined the channel.

vick (Fri, 18 May 2018 17:05:31 GMT):
anyone know why i might be getting this when i do a peer channel create? `test`

vick (Fri, 18 May 2018 17:05:42 GMT):
`2018-05-18 17:04:25.206 UTC [cauthdsl] func2 -> ERRO 171 Principal deserialization failure (The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate`

vick (Fri, 18 May 2018 17:17:08 GMT):
i am trying to run everything without using docker

sasquatch85 (Fri, 18 May 2018 18:02:39 GMT):
Has joined the channel.

rogermylife (Fri, 18 May 2018 18:13:32 GMT):
``` Hi, I am beginner with hyperledger fabric. I used this tutorial "Building Your First Network" as my network. In "Install & Instantiate Chaincode" step, I want to get two endorsement from two peers from Org1 and Org2 respectively. Hence, I change the endorsement policy from -P "OR ('Org1MSP.peer','Org2MSP.peer')" to -P "AND ('Org1MSP.peer','Org2MSP.peer')". After the above modification, I ran the sample again and it showed that the query result after invocation was failed. In other word, the value of "a" is still 100. I am wondering how peers are checked. Does the policy "AND ('Org1MSP.peer','Org2MSP.peer')" requires ONLY one peer which belongs to Org1 and Org2? Or does it requires two peers which come from Org1 and Org2 respectively? ```

rogermylife (Fri, 18 May 2018 18:14:26 GMT):

query_before_invoke.png

rogermylife (Fri, 18 May 2018 18:14:42 GMT):

invoke.png

rogermylife (Fri, 18 May 2018 18:14:55 GMT):

query_after_invoke.png

yacovm (Fri, 18 May 2018 18:25:53 GMT):
2 peers, 1 from org1 and 1 from org2

rogermylife (Fri, 18 May 2018 18:32:37 GMT):
Thank you! But the query's result was wrong. I don't know why...............:sob:

gravity (Fri, 18 May 2018 18:49:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7hAFADDwJvovGKvKz) actually, I just stopped running container and then run them again using `docker-compose -f docker-compose.yml up`

PallabPaul (Sat, 19 May 2018 01:42:57 GMT):
@ajmeraharsh @umtyzc thank you both for the help!

Tom-Xu-CNXA (Sat, 19 May 2018 08:04:27 GMT):
Has joined the channel.

Tom-Xu-CNXA (Sat, 19 May 2018 08:08:26 GMT):
In the page http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html , section 'Manually generate the artifacts': ' configtxgen ... genesis.block ' gets failed, since a step is not mentioned here, 'function replacePrivateKey' in byfn.sh. You have manually run this function before 'configtxgen ... genesis.block'.

Tom-Xu-CNXA (Sat, 19 May 2018 08:08:26 GMT):
In the page http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html , section 'Manually generate the artifacts': ' configtxgen ... genesis.block ' gets failed, since a step is not mentioned here, 'function replacePrivateKey' in byfn.sh. You have to manually run this function before 'configtxgen ... genesis.block'.

TanusreeChatterjee (Sat, 19 May 2018 08:41:09 GMT):
Hi,hyperledger not access at localhost:7050/chain ..??? Whenever I typed curl -i GET http://localhost:7050/chain got an error curl: (6) Could not resolve host: GET curl: (52) Empty reply from server

phuongdv (Sat, 19 May 2018 11:32:53 GMT):
Has joined the channel.

phuongdv (Sat, 19 May 2018 11:33:01 GMT):
Hi all, I'm new developer just joined to Hyperledger I have a question about HL chaincode. Can we define a color coin in HL smartcontract like ETH SmartContract?

phuongdv (Sat, 19 May 2018 11:34:03 GMT):
The example from HL ( https://github.com/hyperledger/fabric-samples/tree/release-1.1/balance-transfer) showing that we write directly out variable to the HL state

phuongdv (Sat, 19 May 2018 11:35:47 GMT):
Is it possible to define 2 types of coin in my chain?. For example, one is USD, the other is VND in the same chain?

marksta (Sat, 19 May 2018 12:01:09 GMT):
To my understanding there is no "coin" in fabric. It's just a value (or a relation). So e.g. you may define an account model holing all the assets of a participant. In your case you could e.g. define two properties balanceUSD and balanceVND. But I'm also curious to see currency-based cases.

tonypius (Sat, 19 May 2018 12:25:00 GMT):
Has joined the channel.

reshmamohiyiddin (Sat, 19 May 2018 12:28:06 GMT):
Has joined the channel.

reshmamohiyiddin (Sat, 19 May 2018 12:28:11 GMT):
Hi All , I am trying to build a network , using http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html# . All the pre requisites are installed and when I run the command ./byfn.sh -m generate It successfully generates peers but when I run following command: ./byfn.sh -m up Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

tonypius (Sat, 19 May 2018 12:39:24 GMT):
Hi,

tonypius (Sat, 19 May 2018 12:40:29 GMT):
I'm new to fabric and was trying to run a fabric-sample called fabcar. When l run the ' node enrolladmin.js ' I keep exiting with this error Store path:/Users/tonyA/Desktop/git/hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 192.168.99.100:6054] at ClientRequest. (/Users/tonyA/Desktop/git/hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:896:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin

tonypius (Sat, 19 May 2018 12:40:29 GMT):
I'm new to fabric and was trying to run a fabric-sample called fabcar. When l run the ' node enrolladmin.js ' I keep exiting with this error Store path:/hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 192.168.99.100:6054] at ClientRequest. (/hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:896:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin

tonypius (Sat, 19 May 2018 12:40:58 GMT):
I've checked my docker configurations and node versions as well. Cannot find the issue here

tonypius (Sat, 19 May 2018 12:44:15 GMT):
Checking the logs of my docker container from Kitematic i founf ca.example container with this error : Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI

Santosh369 (Sat, 19 May 2018 16:57:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pRESXiCmdLXdeRpN8) @tonypius Did you use the existing crypto materialsor did you run the generate.sh script to generate new ones?

sarpinoshan (Sat, 19 May 2018 20:55:32 GMT):
Has joined the channel.

sarpinoshan (Sat, 19 May 2018 20:58:09 GMT):
I am new to Fabric: ./startFabric.sh node # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down Removing network net_basic docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Pulling ca.example.com (hyperledger/fabric-ca:)... ERROR: manifest for hyperledger/fabric-ca:latest not found I have been following this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html Can somebody please explain solution?

getglad (Sat, 19 May 2018 23:03:14 GMT):
Has joined the channel.

zack-w (Sat, 19 May 2018 23:37:44 GMT):
Has joined the channel.

ruairih (Sun, 20 May 2018 00:32:02 GMT):
Has joined the channel.

MenterQuick (Sun, 20 May 2018 06:17:06 GMT):
Has joined the channel.

ajmeraharsh (Sun, 20 May 2018 06:34:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=47YwugJ6D9Py9PAMd) @PallabPaul hope you could achieve what you were trying

aoddy (Sun, 20 May 2018 08:03:33 GMT):
Has joined the channel.

aoddy (Sun, 20 May 2018 08:06:58 GMT):
Hi all, I have use 'peer chaincode invoke' but I got 'Error: unknown flag: --peerAddresses'. But I use the command from tutorial 'http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html' . So, Which option I should replace with option 'peerAddresses'?

mastersingh24 (Sun, 20 May 2018 08:54:25 GMT):
@aoddy .... Are you using v1.1? If so, please refer to the 1.1 documentation - http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html (the ability to use the CLI to send endorsements to multiple peers is only on the master branch)

rogermylife (Sun, 20 May 2018 10:06:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=opXRG4rCYMd58WYaM) @mastersingh24 Hi! Are there binaries(like peer) and docker images for master branch ?

yacovm (Sun, 20 May 2018 10:40:25 GMT):
you can make then yourself... just git clone the master branch and run `make peer peer-docker`

aoddy (Sun, 20 May 2018 10:41:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=opXRG4rCYMd58WYaM) @mastersingh24 // Thank u so much ^_^ ..

haxhaagn15 (Sun, 20 May 2018 11:11:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FrDHrrRaYWWqDibqp) @umtyzc my answer is a bit late, but still: thank you

haxhaagn15 (Sun, 20 May 2018 11:12:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oNXmPDFurTv53naYi) @MonnyClara my answer is a bit late, but still: thank you

haxhaagn15 (Sun, 20 May 2018 11:27:53 GMT):
sorry for asking so many questions. but i have some trouble with a term in hyperledger. namely: endorsement. is this basically the same as consensus or am i wrong?

tonypius (Sun, 20 May 2018 11:49:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aR5cDuZeh35nuzpvC) @Santosh369 I did run the generate.sh file. Still no luck

umtyzc (Sun, 20 May 2018 12:13:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sDQFaR59jmJpCwxN2) @haxhaagn15 Please read this document. Your answer is here. http://hyperledger-fabric.readthedocs.io/en/release-1.1/txflow.html

haxhaagn15 (Sun, 20 May 2018 12:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mHBfd9Nmm59Mytv5v) @umtyzc thank you, you're awesome :9

umtyzc (Sun, 20 May 2018 12:18:24 GMT):
In addition, https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/5ebddaca983d4d6d952e83f95ea9e281/3?activate_block_id=block-v1%3ALinuxFoundationX%2BLFS171x%2B3T2017%2Btype%40vertical%2Bblock%40f9fdfa7d678d4f10b9b16cc9c76f38ad Chapter 7. Introduction to Hyperledger Fabric - Key Components and Transaction Flow - How to Reach Consensus section. :thumbsup:

umtyzc (Sun, 20 May 2018 12:18:24 GMT):
@haxhaagn15 In addition, https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/5ebddaca983d4d6d952e83f95ea9e281/3?activate_block_id=block-v1%3ALinuxFoundationX%2BLFS171x%2B3T2017%2Btype%40vertical%2Bblock%40f9fdfa7d678d4f10b9b16cc9c76f38ad Chapter 7. Introduction to Hyperledger Fabric - Key Components and Transaction Flow - How to Reach Consensus section. :thumbsup:

rogermylife (Sun, 20 May 2018 12:23:57 GMT):
@yacovm Thank you very much! I am making!

haxhaagn15 (Sun, 20 May 2018 12:27:32 GMT):
thanks @umtyzc :)

sarpinoshan (Sun, 20 May 2018 12:44:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PsyLDfJ7aD6EC7yAK) can somebody please tell why this is not working?

sarpinoshan (Sun, 20 May 2018 13:26:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mE37uaWx4txdjS9uT) rephrasing my question:

sarpinoshan (Sun, 20 May 2018 13:27:00 GMT):
I have been following this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html when I run this command ./startFabric.sh node the following error shows up: # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down Removing network net_basic docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Pulling ca.example.com (hyperledger/fabric-ca:)... ERROR: manifest for hyperledger/fabric-ca:latest not found Can somebody explain whats wrong. A similar problem reported here https://github.com/IBM-Blockchain-Archive/fabric-images/issues/35 but it also is not working -perhaps some updates are not syncing up.

umtyzc (Sun, 20 May 2018 13:33:13 GMT):
Missing container issue. reinstall docker images and binaries. @sarpinoshan [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ByWYfdxWu4jbJc8b9)

umtyzc (Sun, 20 May 2018 13:37:56 GMT):

Screen Shot 2018-05-20 at 16.35.48.png

umtyzc (Sun, 20 May 2018 13:37:56 GMT):

Screen Shot 2018-05-20 at 16.35.48.png

umtyzc (Sun, 20 May 2018 13:39:26 GMT):
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/courseware/f0db5224eb0e4bbb8cc1e93a6819012c/8899e0061e9f489e9915f9b5d3d6399f/2?activate_block_id=block-v1%3ALinuxFoundationX%2BLFS171x%2B3T2017%2Btype%40vertical%2Bblock%40a33b5144d30843f0a40bb36d71f069d8 @sarpinoshan

KotsAshish (Sun, 20 May 2018 16:03:33 GMT):
Has joined the channel.

KotsAshish (Sun, 20 May 2018 16:07:08 GMT):
Are there any tutorials for creating a production level Fabric environment (multiple peers, orderers, CA on multiple servers)? Are there any tutorials for interacting with Fabric network using a Client/Server application?

phulei (Sun, 20 May 2018 19:16:07 GMT):
Has joined the channel.

sarpinoshan (Sun, 20 May 2018 19:49:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yyv6KRhkP8Xgp8FLb) @umtyzc Thank you so so very much. few containers were missing - running the query downloaded and now it's working perfectly fine. :)

brockhager (Sun, 20 May 2018 19:54:28 GMT):
Has joined the channel.

brockhager (Sun, 20 May 2018 19:54:30 GMT):
Is it OK to start a #supply-chain channel for Fabric?

brockhager (Sun, 20 May 2018 19:55:25 GMT):
I work at a Trucking Company in Iowa, USA and we are starting up a project using Fabric

jeffgarratt (Sun, 20 May 2018 20:11:03 GMT):
@brockhager not sure about the answer, but welcome :)

phanikumar (Sun, 20 May 2018 20:11:19 GMT):
Has joined the channel.

brockhager (Sun, 20 May 2018 20:11:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AegyFP72DK452BJJg) @jeffgarratt Thanks! Happy to be here.

phanikumar (Sun, 20 May 2018 20:14:08 GMT):
I have setup fabric multi-org across 2 different VM's and I able to ping each other. But, when I am running `peer channel fetch` command, it is considering my IP address and invalidating the certificate causing TLS issue. Is there a way to resolve this issue. Thanks in advance

phanikumar (Sun, 20 May 2018 20:14:08 GMT):
I have setup fabric multi-org across 2 different VM's and I able to ping each other. But, when I am running `peer channel fetch` command, it is considering my IP address instead of hostname and invalidating the certificate causing TLS issue. Is there a way to resolve this issue. Thanks in advance

Santosh369 (Sun, 20 May 2018 21:40:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z6LsLwtdcFaRrBq9x) @tonypius Yes if you run generate.sh you also need to update the FABRIC_CA_SERVER_CA_KEYFILE environment variable in the definition of the CA service in your compose file. But as you said "still no luck" I guess that you had not run the script in the first place. Did you modify the docker-compose file ?

JulesMiller (Mon, 21 May 2018 01:40:35 GMT):
Has joined the channel.

aquabu (Mon, 21 May 2018 04:56:36 GMT):
Has joined the channel.

tonypius (Mon, 21 May 2018 05:21:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pH4RJL8Axx5N55zW5) @Santosh369 No, I'm following the tutorial for Writing your first application as it is.

kshitiz_leo (Mon, 21 May 2018 06:06:51 GMT):
I am getting the error while enrolling Admin to my app. Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] . i'm using the registerAdmin.js file, obtained from Edx course.

kshitiz_leo (Mon, 21 May 2018 06:07:06 GMT):
Please someone help me to get this rtesolved

kshitiz_leo (Mon, 21 May 2018 06:07:12 GMT):
*resolved

nitishbhardwaj19 (Mon, 21 May 2018 06:23:05 GMT):
Has joined the channel.

phanikumar (Mon, 21 May 2018 06:47:10 GMT):
Check whether any service is listening on port 7054

phanikumar (Mon, 21 May 2018 06:47:33 GMT):
run this command lsof -i:7054

vitiko (Mon, 21 May 2018 07:34:48 GMT):
Has joined the channel.

micftk (Mon, 21 May 2018 07:41:51 GMT):
Has joined the channel.

vick (Mon, 21 May 2018 08:57:02 GMT):
is there anywhere i can read more about how fabric generates a transaction hash for each transaction that it receives?

vick (Mon, 21 May 2018 08:57:09 GMT):
or is there even such a process

HemanthPrabhu (Mon, 21 May 2018 09:05:09 GMT):
Has joined the channel.

HemanthPrabhu (Mon, 21 May 2018 09:06:10 GMT):
Hey All, I have replicated tuna-app in my machine, Its working fine. I have modified existing chain code and start fabric.but chaincode changes are not reflected. but I can see my changes in docker container Can any one help me on this?

masayuki (Mon, 21 May 2018 09:08:35 GMT):
Has joined the channel.

phuongdv (Mon, 21 May 2018 09:40:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GetWR6foFzWMuuzny) @marksta Thanks you very much. I will see

npc0405 (Mon, 21 May 2018 10:29:27 GMT):
Has joined the channel.

npc0405 (Mon, 21 May 2018 10:29:52 GMT):
Hi I have been trying to get with fabric-sample in vagrant

npc0405 (Mon, 21 May 2018 10:30:21 GMT):
After registering and enrolling, I m trying to create channem

npc0405 (Mon, 21 May 2018 10:30:26 GMT):
channel*

npc0405 (Mon, 21 May 2018 10:30:47 GMT):
it throws [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE

npc0405 (Mon, 21 May 2018 10:31:02 GMT):
any idea.... any help would b greatly appreciated

shwetacse5 (Mon, 21 May 2018 10:58:03 GMT):
Hi.. Is there any documentation or tutorial to deploy fabric on multiple VMs or Host?

shwetacse5 (Mon, 21 May 2018 10:58:49 GMT):
I want to run fabric with multiple Vms

phanikumar (Mon, 21 May 2018 11:36:51 GMT):
@shwetacse5 I am looking for the same. If you get any source can you please help me

phanikumar (Mon, 21 May 2018 11:37:17 GMT):
If you want to run single organization I can help you

hyperlearner (Mon, 21 May 2018 12:24:21 GMT):
Has joined the channel.

hyperlearner (Mon, 21 May 2018 12:25:22 GMT):
I'm trying to change the endorsement policy.I can find the particular portion and what are the changes that I have to do ?

hyperlearner (Mon, 21 May 2018 12:25:22 GMT):
I'm trying to change the endorsement policy.What are the changes that I have to do ?

hyperlearner (Mon, 21 May 2018 12:25:22 GMT):
I'm trying to change the endorsement policy.What are the changes that I have to do ? #fabric-questions #fabric-ca #fabric-chaintool

KotsAshish (Mon, 21 May 2018 12:32:15 GMT):
@phanikumar @shwetacse5 Try to utilize the Hyperledger Cello for the same

lepar (Mon, 21 May 2018 13:16:37 GMT):
Has joined the channel.

lepar (Mon, 21 May 2018 13:20:21 GMT):
Hello, I have a question regarding channels. Since each channel has a different ledger, if a channel created between two peers and both of those peers end up being deleted, does that mean all the info on the channel is forever destroyed?

CarinaPetravicius (Mon, 21 May 2018 13:21:18 GMT):
Has joined the channel.

CarinaPetravicius (Mon, 21 May 2018 13:26:51 GMT):
Hi, I opened the CouchDB console in my local machine where I have my network started, and I can see the channels databases and all the datas without encryption, it is right? There are some configuration that I need to do to have the data saved encrypted in database?

gut (Mon, 21 May 2018 13:42:34 GMT):
@CarinaPetravicius If there's specific private data you want to store you could do it directly from chaincode. [EncCC sample](https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example) can be useful for you.

CarinaPetravicius (Mon, 21 May 2018 13:43:57 GMT):
Thank you :thumbsup:

nntoan (Mon, 21 May 2018 13:44:29 GMT):
Has joined the channel.

buridiaditya (Mon, 21 May 2018 14:04:20 GMT):
Has joined the channel.

Khush1209 (Mon, 21 May 2018 15:19:11 GMT):
Has joined the channel.

Khush1209 (Mon, 21 May 2018 15:21:51 GMT):
while building first network. During INVOKE function i am getting an error. "Error: unknown flag: --peeraddresses" . PeerAdresses Flag is unknown

SubhashiniSundaresan (Mon, 21 May 2018 16:00:50 GMT):
Hi,

SubhashiniSundaresan (Mon, 21 May 2018 16:01:01 GMT):
I have three participants

SubhashiniSundaresan (Mon, 21 May 2018 16:01:58 GMT):
Is there any example to issue Identity, generate card and connect the participant to network programatically through API?

SubhashiniSundaresan (Mon, 21 May 2018 16:02:12 GMT):
in hyperledger composer?

HemanthPrabhu (Mon, 21 May 2018 16:54:43 GMT):
@ajmeraharsh I have followed below steps 1.Set up hyperledger fabric 2.Get sample blockchain network from https://github.com/hyperledger/education.git 3.Run ./startFabric.sh ,run nodejs application 4.Application working fine. 5.Modified chaincode file in location /Users/hemanthk/Documents/hyperledger/education/LFS171x/fabric-material/chaincode 6.Again I ran ./startFabric.sh and nodejs 7.Chain code not reflected in application 8.Cross checked docker container of peer, chain modified was reflected. Not reflected in blockchain.Still old code is working. I dont know why its not working.Can you please help me on this.

jrosmith (Mon, 21 May 2018 16:57:30 GMT):
+

jrosmith (Mon, 21 May 2018 16:57:30 GMT):
@HemanthPrabhu did you install and instantiate the new chaincode or did you just make changes to the file?

HemanthPrabhu (Mon, 21 May 2018 17:21:23 GMT):
its existing project

HemanthPrabhu (Mon, 21 May 2018 17:22:14 GMT):
just modified existing chaincode @jrosmith

jrosmith (Mon, 21 May 2018 17:22:41 GMT):
@HemanthPrabhu you need to install and instantiate the new chaincode before it can be used by the network

HemanthPrabhu (Mon, 21 May 2018 17:25:16 GMT):
ya,but its not new

HemanthPrabhu (Mon, 21 May 2018 17:25:27 GMT):
just update few lines

HemanthPrabhu (Mon, 21 May 2018 17:30:04 GMT):
@jrosmith Can you help me

railtracer (Mon, 21 May 2018 17:37:38 GMT):
Has joined the channel.

railtracer (Mon, 21 May 2018 17:42:15 GMT):
Hi, in the docs it says that the state database(world state) is not required since it can always be rebuilt from the blockchain. I have few questions if somebody knows: Does the state database duplicate the last value of a key or it just has indices for accessing the blockchain? Is there a way to have some peers not create the state, i.e. to only maintain the chain of transactions? Thanks

jrosmith (Mon, 21 May 2018 18:15:12 GMT):
@HemanthPrabhu as far as the network is concerned it is new. chaincodes are meant to be deterministic, if random in place updates were allowed we'd potentially lose that. you must install the chaincode with changes on the peers and then upgrade the chaincode: http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html

jrosmith (Mon, 21 May 2018 20:01:06 GMT):
@railtracer #fabric-peer-endorser-committer will probably have answers for you

skibria (Mon, 21 May 2018 20:16:46 GMT):
Has joined the channel.

ShaunC (Mon, 21 May 2018 20:26:35 GMT):
Has joined the channel.

ShaunC (Mon, 21 May 2018 20:38:04 GMT):
hey guys, what framework do you recommend for a supply chain blockchain? Fabric or Sawtooth? Composer seems to simplify everything...

marcelpuentesrojas (Mon, 21 May 2018 20:40:41 GMT):
Has joined the channel.

JayPandya (Mon, 21 May 2018 22:04:50 GMT):
Has joined the channel.

JayPandya (Mon, 21 May 2018 22:05:20 GMT):
when I take a look at `configtx.yaml` i found this comment just below `Organizations` section and it says: ``` # SampleOrg defines an MSP using the sampleconfig. It should never be used # in production but may be used as a template for other definitions ``` what does that mean exactly?

rupa12 (Tue, 22 May 2018 01:37:11 GMT):
I am trying to use fabcar example... I have a previous set where I have a CA and generated all the certs using that. Now I want fabcar to use those same certificates. While trying to run the enrollAdmin.js file I am getting the following error and I couldn't find any solution from the internet : ``` Store path:/root/go/src/github.com/hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: write EPROTO 140218423383936:error:1411713E:SSL routines:ssl_check_srvr_ecc_cert_and_alg:ecc cert not for signing:../deps/openssl/openssl/ssl/ssl_lib.c:2520: 140218423383936:error:14082130:SSL routines:ssl3_check_cert_and_algorithm:bad ecc cert:../deps/openssl/openssl/ssl/s3_clnt.c:3550: ] at ClientRequest. (/root/go/src/github.com/hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at onwriteError (_stream_writable.js:418:12) at onwrite (_stream_writable.js:440:5) at _destroy (internal/streams/destroy.js:39:7) at TLSSocket.Socket._destroy (net.js:564:3) Failed to enroll admin: Error: Failed to enroll admin ``` Pleae help.

rupa12 (Tue, 22 May 2018 01:37:11 GMT):
I am trying to use fabcar example... I have a previous setup where I have a CA and generated all the certs using that. Now I want fabcar to use those same certificates. While trying to run the enrollAdmin.js file I am getting the following error and I couldn't find any solution from the internet : ``` Store path:/root/go/src/github.com/hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: write EPROTO 140218423383936:error:1411713E:SSL routines:ssl_check_srvr_ecc_cert_and_alg:ecc cert not for signing:../deps/openssl/openssl/ssl/ssl_lib.c:2520: 140218423383936:error:14082130:SSL routines:ssl3_check_cert_and_algorithm:bad ecc cert:../deps/openssl/openssl/ssl/s3_clnt.c:3550: ] at ClientRequest. (/root/go/src/github.com/hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at onwriteError (_stream_writable.js:418:12) at onwrite (_stream_writable.js:440:5) at _destroy (internal/streams/destroy.js:39:7) at TLSSocket.Socket._destroy (net.js:564:3) Failed to enroll admin: Error: Failed to enroll admin ``` Pleae help.

rupa12 (Tue, 22 May 2018 01:37:11 GMT):
I am trying to use fabcar example... I have a previous setup where I have a CA and generated all the certs using that. Now I want fabcar to use those same certificates. While trying to run the enrollAdmin.js file I am getting the following error and I couldn't find any solution from the internet : ``` Store path:/root/go/src/github.com/hyperledger/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: write EPROTO 140218423383936:error:1411713E:SSL routines:ssl_check_srvr_ecc_cert_and_alg:ecc cert not for signing:../deps/openssl/openssl/ssl/ssl_lib.c:2520: 140218423383936:error:14082130:SSL routines:ssl3_check_cert_and_algorithm:bad ecc cert:../deps/openssl/openssl/ssl/s3_clnt.c:3550: ] at ClientRequest. (/root/go/src/github.com/hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at onwriteError (_stream_writable.js:418:12) at onwrite (_stream_writable.js:440:5) at _destroy (internal/streams/destroy.js:39:7) at TLSSocket.Socket._destroy (net.js:564:3) Failed to enroll admin: Error: Failed to enroll admin ``` Please help.

rupa12 (Tue, 22 May 2018 01:40:39 GMT):
Also in the enrollAdmin.js I see: `fabric_ca_client = new Fabric_CA_Client('http://localhost:7054', tlsOptions , 'ca.example.com', crypto_suite);` Could someone specify what changes I need to make for it to communicate using tls? I have changes http to https and also changed 'ca.example.com' to match my fabric CA server name. How/what do I specify in 'tlsOptions' so that it communicates via tls?

JesonGodilo (Tue, 22 May 2018 02:48:35 GMT):
Has joined the channel.

resultspro (Tue, 22 May 2018 03:52:27 GMT):
Has joined the channel.

resultspro (Tue, 22 May 2018 03:57:22 GMT):
Hello, I'm trying to Install Samples, Binaries and Docker Images to access fabcar example. I installed all essential components for Window 10. I'm running this command in PoweShell: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 But I get the error:

resultspro (Tue, 22 May 2018 03:57:59 GMT):
``I'm getting the error : bash : The term 'bash' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:35 + curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 + ~~~~ + CategoryInfo : ObjectNotFound: (bash:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException How do I solve this? ```

zhaok12 (Tue, 22 May 2018 06:39:44 GMT):
Hi, I am trying to figure out the time consumption of each step in a Transaction Flow. Can I use the fabric-samples/first-network ? and how can I get the logs to analyze the time consumption? Thanks.

MonnyClara (Tue, 22 May 2018 06:42:04 GMT):
@zhaok12 I don't really know, but you may find your information with `docker logs `

MonnyClara (Tue, 22 May 2018 06:43:33 GMT):
@resultspro Bash is a unix command that's why your Windows host doesn't understand Try to use the Git Bash prompt or maybe gnuwin

mdvenkatesh (Tue, 22 May 2018 07:46:15 GMT):

npm errors.PNG

Rajalekshmy (Tue, 22 May 2018 07:51:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3seMvrnbNDMXevKau) @resultspro Hi...Make sure that you have set environment variables (PATH) for curl and openSSH. Try to execute the commands from git bash.

MonnyClara (Tue, 22 May 2018 07:51:57 GMT):
ls

Rajalekshmy (Tue, 22 May 2018 07:58:03 GMT):

Clipboard - May 22, 2018 1:27 PM

Rajalekshmy (Tue, 22 May 2018 07:58:03 GMT):

Clipboard - May 22, 2018 1:27 PM

Sreesha (Tue, 22 May 2018 09:03:59 GMT):
Has joined the channel.

Sreesha (Tue, 22 May 2018 09:04:13 GMT):
Is CA and MSP same?

Sreesha (Tue, 22 May 2018 09:19:15 GMT):
What is a server and client CA

djones2 (Tue, 22 May 2018 09:26:14 GMT):
Has joined the channel.

djones2 (Tue, 22 May 2018 09:27:49 GMT):
After reading the documentation (mostly), I'm unclear whether the set of endorsing peers can be altered after a channel is created. Is there a transaction that can be submitted to alter the set of endorsing peers?

ajmeraharsh (Tue, 22 May 2018 09:52:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jWCbDGhGpPC75BSv2) @HemanthPrabhu hope you get this through, let me know if otherwise

nitishbhardwaj19 (Tue, 22 May 2018 10:23:14 GMT):
Can Sidedb implementation in Fabric 1.2 would replace the need to have channels?

hussein.knight (Tue, 22 May 2018 10:28:03 GMT):
I need help how to query my blockchain from a user/client..need some help to start, i need to build mobile app and query the result..

MeghaGupta (Tue, 22 May 2018 10:36:53 GMT):
Has joined the channel.

phuongdv (Tue, 22 May 2018 10:56:39 GMT):
Hi guys. I got a troubles. about clientId in chaincode

phuongdv (Tue, 22 May 2018 10:57:29 GMT):
I used this code to identify identity of the client who created transaction proposal

phuongdv (Tue, 22 May 2018 10:57:29 GMT):
I used this code to identify identity of the client who created transaction proposal ( https://github.com/hyperledger/fabric/blob/master/core/chaincode/lib/cid/README.md)

phuongdv (Tue, 22 May 2018 10:57:42 GMT):
Here is the code

phuongdv (Tue, 22 May 2018 10:57:46 GMT):
``` identity of the client who created transaction proposal ```

phuongdv (Tue, 22 May 2018 10:57:46 GMT):
``` // GetID returns the ID associated with the invoking identity. This ID // is guaranteed to be unique within the MSP. func GetID(stub ChaincodeStubInterface) (string, error) ```

phuongdv (Tue, 22 May 2018 10:57:46 GMT):
``` // GetID returns the ID associated with the invoking identity. This ID // is guaranteed to be unique within the MSP. func GetID(stub ChaincodeStubInterface) (string, error) id, err := cid.GetID(stub) mspid, err := cid.GetMSPID(stub) fmt.Println("ClientId: %s", id) fmt.Println("MspId: %s", mspid) ```

phuongdv (Tue, 22 May 2018 10:57:46 GMT):
``` // GetID returns the ID associated with the invoking identity. This ID // is guaranteed to be unique within the MSP. func GetID(stub ChaincodeStubInterface) (string, error) ------- id, err := cid.GetID(stub) mspid, err := cid.GetMSPID(stub) fmt.Println("ClientId: %s", id) fmt.Println("MspId: %s", mspid) ```

phuongdv (Tue, 22 May 2018 10:59:25 GMT):
I got a response : ``` Client Id: %s eDUwOTo6Q049cGh1b25nZHYsT1U9Y2xpZW50K09VPW9yZzErT1U9ZGVwYXJ0bWVudDE6OkNOPWNhLm9yZzEuZXhhbXBsZS5jb20sTz1vcmcxLmV4YW1wbGUuY29tLEw9U2FuIEZyYW5jaXNjbyxTVD1DYWxpZm9ybmlhLEM9VVM= mspid Id: %s Org1MSP ```

phuongdv (Tue, 22 May 2018 10:59:47 GMT):
I don't know which clientId come from?

phuongdv (Tue, 22 May 2018 11:00:30 GMT):
I've check my CA sever and query the CA database ``` phuongdv|$2a$10$OVNMNJA5gl2DIVU65BJb7u8rTWHeUKkt0tG4dO7owRUjiNd/JRIna|client|org1.department1|[{"name":"hf.EnrollmentID","value":"phuongdv1","ecert":true},{"name":"hf.Type","value":"client","ecert":true},{"name":"hf.Affiliation","value":"org1.department1","ecert":true}]|1|1|1 ```

phuongdv (Tue, 22 May 2018 11:00:30 GMT):
I've check my CA sever and query the CA database ``` select * from user; >> phuongdv|$2a$10$OVNMNJA5gl2DIVU65BJb7u8rTWHeUKkt0tG4dO7owRUjiNd/JRIna|client|org1.department1|[{"name":"hf.EnrollmentID","value":"phuongdv1","ecert":true},{"name":"hf.Type","value":"client","ecert":true},{"name":"hf.Affiliation","value":"org1.department1","ecert":true}]|1|1|1 ```

phuongdv (Tue, 22 May 2018 11:00:30 GMT):
I've also taken a look my CA database and see where does ClientId come from? ``` select * from user; >> phuongdv|$2a$10$OVNMNJA5gl2DIVU65BJb7u8rTWHeUKkt0tG4dO7owRUjiNd/JRIna|client|org1.department1|[{"name":"hf.EnrollmentID","value":"phuongdv1","ecert":true},{"name":"hf.Type","value":"client","ecert":true},{"name":"hf.Affiliation","value":"org1.department1","ecert":true}]|1|1|1 ```

phuongdv (Tue, 22 May 2018 11:01:59 GMT):
So EnrollmentID is `phuongdv`, so HOW CAN I IDENTIFY THE INVOKER WHO QUERY THE CHAIN CODE?

phuongdv (Tue, 22 May 2018 11:01:59 GMT):
The is no clientId here? So EnrollmentID is `phuongdv`, so HOW CAN I IDENTIFY THE INVOKER WHO QUERY THE CHAIN CODE?

phuongdv (Tue, 22 May 2018 11:02:03 GMT):
please help?

qwertabi (Tue, 22 May 2018 11:54:55 GMT):
Hey Guys, How to establish a multi-peer architecture in fabric ? Can someone help me with the steps to do that ?

jeffgarratt (Tue, 22 May 2018 13:26:44 GMT):
@phuongdv try something like val, ok, err := cid.GetAttributeValue(stub, "attr1") if err != nil { // There was an error trying to retrieve the attribute }

jeffgarratt (Tue, 22 May 2018 13:26:44 GMT):
@phuongdv try something like \nval, ok, err := cid.GetAttributeValue(stub, "attr1") if err != nil { // There was an error trying to retrieve the attribute }

jeffgarratt (Tue, 22 May 2018 13:28:05 GMT):
@phuongdv Try something like... val, ok, err := cid.GetAttributeValue(stub, "hf.EnrollmentID") if err != nil { // There was an error trying to retrieve the attribute }

jeffgarratt (Tue, 22 May 2018 13:29:08 GMT):
you can dump the cert and see exactly how it is being stored, and then access accordingly

Sarah.Conway (Tue, 22 May 2018 13:44:02 GMT):
Has joined the channel.

HemanthPrabhu (Tue, 22 May 2018 13:45:24 GMT):
We are trying to create three Org Channel with each Org has one peer. The generate command works perfectly as it generates "genesis block" and "anchor peers". When we pass "up" command, channel gets generated, and adds the first org peer to the channel. When adding the second org peer, the following error shows up. 2018-05-22 11:57:23.255 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [NWestMSP]) Usage: peer channel join [flags] Please help/assist!

GajendraYadav (Tue, 22 May 2018 13:53:53 GMT):
Has joined the channel.

Alaa_Migdady (Tue, 22 May 2018 14:03:33 GMT):
hii all .. I am trying to run my first network sample an i am getting this error :thumbsup: OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "no such file or directory": unknown ERROR !!!! can anyone help me please?

MonnyClara (Tue, 22 May 2018 14:45:41 GMT):
@Alaa_Migdady Provide more info

MonnyClara (Tue, 22 May 2018 14:45:41 GMT):
@Alaa_Migdady Provide more infos :)

JayPandya (Tue, 22 May 2018 15:13:51 GMT):
I've added new Peer on different machine for my Fabric network and its running successfully though I've question that is it possible to perform write operation on newly added Peer? (after installing chaincode) its just that if my first machine is Down for some reason then my application should update data on Fabric network how we can achieve this?

lepar (Tue, 22 May 2018 15:28:06 GMT):
Hey guys, does anyone know of any companies that have fabric in production level development?

jrosmith (Tue, 22 May 2018 15:40:03 GMT):
@lepar https://www.hyperledger.org/resources/blockchain-showcase?profile=monetago

lepar (Tue, 22 May 2018 15:41:07 GMT):
Thanks! I saw another page with showcases but didn't give as much details as this one. Appreciate it.

jrosmith (Tue, 22 May 2018 15:41:33 GMT):
if you click out of the modal you can filter the showcase further

lepar (Tue, 22 May 2018 15:42:11 GMT):
Ohhh but it wasn't this page anyways, thank you

jrosmith (Tue, 22 May 2018 15:42:30 GMT):
np

Alaa_Migdady (Tue, 22 May 2018 15:52:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DgK9qDRgN234R3Dmv) @MonnyClara the problem happens when I am running ./byfn.sh up .. I am working on mac .. what more infos you need to know ??

JayPandya (Tue, 22 May 2018 15:52:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m3JT3xTobHeRbtMnE) Anyone?

lepar (Tue, 22 May 2018 16:04:42 GMT):
@JayPandya from what I know, it is possible because it's a peer, but it must be on the same organization otherwise you would need an anchor peer

lepar (Tue, 22 May 2018 16:05:30 GMT):
Any peer can write to the ledger of the channel it participates in

lepar (Tue, 22 May 2018 16:06:15 GMT):
However, if you only have one peer, then the transaction would need to come from itself because the other peer would be down and not able to send any transactions

Khush1209 (Tue, 22 May 2018 16:32:24 GMT):
Hello!! Can any one help me? I am getting error while creating first application. I was trying to run a command "node enrollAdmin.js". It is unable to find fabric-client.

lepar (Tue, 22 May 2018 16:33:57 GMT):
@Khush1209 Did you install fabric?

lepar (Tue, 22 May 2018 16:34:44 GMT):
Using this command: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

Khush1209 (Tue, 22 May 2018 16:34:58 GMT):
yes i installed it

lepar (Tue, 22 May 2018 16:35:54 GMT):
What were the steps you took to get to enrollAdmin.js?

Khush1209 (Tue, 22 May 2018 16:39:36 GMT):
I followed the steps mentioned in this link: https://hyperledger-fabric.readthedocs.io/en/release-1.1/write_first_app.html

lepar (Tue, 22 May 2018 16:41:24 GMT):
Run this command and lemme know what shows up docker images

Khush1209 (Tue, 22 May 2018 16:41:48 GMT):

Clipboard - May 22, 2018 10:11 PM

Khush1209 (Tue, 22 May 2018 16:42:36 GMT):

Clipboard - May 22, 2018 10:12 PM

lepar (Tue, 22 May 2018 16:43:38 GMT):
Doesn't seem like you started the network. Run ./startFabric.sh

Khush1209 (Tue, 22 May 2018 16:44:45 GMT):
after staring the network still i am getting the same error

lepar (Tue, 22 May 2018 16:48:06 GMT):
Go to the fabric-samples/first-network folder, then run ./byfn -m down. Then run "docker rm -f $(docker ps -aq)"

Khush1209 (Tue, 22 May 2018 17:02:21 GMT):
tried but it is not working

lepar (Tue, 22 May 2018 17:03:44 GMT):
Same error?

resultspro (Tue, 22 May 2018 17:07:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Jc7XDcf7BYDzEhDcN) @Rajalekshmy thanks that helped..

resultspro (Tue, 22 May 2018 17:08:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cLq63EHAWv4sFjPDM) @MonnyClara thanks so much. that solved the problem.

DivyaAgrawal (Tue, 22 May 2018 17:54:04 GMT):
Has joined the channel.

DivyaAgrawal (Tue, 22 May 2018 17:55:10 GMT):
Hi, I am new to the Hyperledger fabric . I am able to start the network and use the caliper. But i want to benchmark the individual component . Can anyone please guide me in this ? Thanks in Advance !

DivyaAgrawal (Tue, 22 May 2018 17:55:10 GMT):
Hi, Hi. I am new to the Hyperledger fabric . I am able to start the network and use the caliper. But i want to benchmark the individual component . Can anyone please guide me in this ? Thanks in Advance !

DivyaAgrawal (Tue, 22 May 2018 17:58:25 GMT):
Also, as given in the page , when i try to run the Ordered Binary . I get following error: [orderer/common/server] Main -> ERRO 001 failed to parse config: Error reading configuration: Unsupported Config Type "" i tried to follow the StackOverflow by setting FABRIC_CFG_PATH=$PWD. But this was of no help !

DivyaAgrawal (Tue, 22 May 2018 17:58:25 GMT):
Also, as given in the page (https://github.com/hyperledger/fabric/tree/release-1.1/orderer), Experimenting with the Orderer service section: when i try to run the Ordered Binary . I get following error: [orderer/common/server] Main -> ERRO 001 failed to parse config: Error reading configuration: Unsupported Config Type "" i tried to follow the StackOverflow by setting FABRIC_CFG_PATH=$PWD. But this was of no help !

mastersingh24 (Tue, 22 May 2018 19:25:59 GMT):
@DivyaAgrawal - you need to place `orderer.yaml` in the whatever you set as `FABRIC_CFG_PATH` (or just have it in the same directory as the binary)

dhrubesh (Tue, 22 May 2018 19:26:20 GMT):
Has joined the channel.

asp 25 (Tue, 22 May 2018 19:26:25 GMT):
Has joined the channel.

dhrubesh (Tue, 22 May 2018 19:26:44 GMT):
Hey everyone. I'm a Front end developer from India. I have been reading a lot about hyperledger recently. In terms of development I couldn't find any good tutorials. Can anyone redirect me to some learning resources for beginners? I wish to explore Hyperledger Fabric.

DivyaAgrawal (Tue, 22 May 2018 19:41:03 GMT):
@mastersingh24 Can you point me to a sample `orderer.yaml` file Also, do you have any idea about benchmarking individual components!

DivyaAgrawal (Tue, 22 May 2018 19:41:03 GMT):
@mastersingh24 Can you point me to a sample `orderer.yaml` file

mastersingh24 (Tue, 22 May 2018 20:28:47 GMT):
@DivyaAgrawal - did you download the fabric binaries?

mastersingh24 (Tue, 22 May 2018 20:28:47 GMT):
@DivyaAgrawal - did you download the fabric binaries? If so, there is a bin and a config folder ... you can find orderer.yaml in the config folder. If not, https://raw.githubusercontent.com/hyperledger/fabric/release-1.1/sampleconfig/orderer.yaml

DivyaAgrawal (Tue, 22 May 2018 20:30:41 GMT):
@mastersingh24 Thanks, have resolved this. Having some MSP initialization errors now.

amitbaid1234 (Tue, 22 May 2018 21:01:21 GMT):
Has joined the channel.

amitbaid1234 (Tue, 22 May 2018 21:02:02 GMT):
We are excited to announce that we have build a payment and credit network for business to business on Stellar and Hyperledger Blockchain. Our vision is to be in B2B space what Visa and MasterCard are for B2C payments and credit. We have developed a (PoC) for Business to Business Payments and Supply Chain Financing using stellar smart contracts. Our PoC currently integrates with SAP’s ERP Accounts Payables and we intend to extend it to a complete B2B Payments (with stable coin issuance via a Stellar anchor node) & financing network. Hyperledger Fabric will be used for sharing confidential information between the trading members. We are combining Hyperledger and Stellar. Our mission is to reduce the transaction and operational costs involved in the payments by 90% and provide low cost access to financing to small businesses. Please read the following medium article that summarizes what we are doing https://medium.com/@Tradefin/introducing-tradefin-decentralized-network-to-power-global-business-to-business-payments-and-33a2de2045eb We have been working on this for almost a year. You can find the whitepaper on our website – www.tradefin.com We are a team from Wharton and IIT and have worked at SAP, Fidelity, Deloitte and other companies Happy to show anyone the POC. Looking forward to your comments, suggestions, help, critique….

angeloatleadiq (Tue, 22 May 2018 23:12:38 GMT):
Has joined the channel.

angeloatleadiq (Tue, 22 May 2018 23:13:26 GMT):
Hi All, I have tested and understood how a hyperledger network works from this tutorial https://github.com/leadiq/heroes-service. Now I am starting thinking a production env. Which tool should I use to replace bin/cryptogen?

angeloatleadiq (Tue, 22 May 2018 23:13:26 GMT):
Hi All, I have tested and understood how a hyperledger network works from this tutorial https://github.com/chainHero/heroes-service. Now I am starting thinking a production env. Which tool should I use to replace bin/cryptogen?

rupa12 (Wed, 23 May 2018 00:17:45 GMT):
@lepar: I am following http://hyperledger-fabric.readthedocs.io/en/release-1.1/write_first_app.html and I have a CA server with which I enrolled/registered admin, all peers and the orderer. Now when I run the command `node enrollAdmin.js` I am getting the following error : ``` Error: Calling enrollment endpoint failed with error [Error: write EPROTO 140417411917696:error:1411713E:SSL routines:ssl_check_srvr_ecc_cert_and_alg:ecc cert not for signing:../deps/openssl/openssl/ssl/ssl_lib.c:2520: 140417411917696:error:14082130:SSL routines:ssl3_check_cert_and_algorithm:bad ecc cert:../deps/openssl/openssl/ssl/s3_clnt.c:3550: ] ``` Could you please help.

someharder (Wed, 23 May 2018 01:53:03 GMT):
Has joined the channel.

someharder (Wed, 23 May 2018 02:44:38 GMT):
hi,Did anyone had this issue?

someharder (Wed, 23 May 2018 02:44:45 GMT):
Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0. Status FAILURE, details: Sending proposal to peer0 failed because of: ALPN is not configured properly. See https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting for more information.

resultspro (Wed, 23 May 2018 04:29:01 GMT):

Clipboard - May 23, 2018 12:28 AM

resultspro (Wed, 23 May 2018 04:29:10 GMT):
re: fabcar example, I'm getting this error when I run the command *>node query.js* . I could not find any answers on google. Did any one face this issue? I even tried replacing "localhost" with my machine IP address from ipconfig. But no use..

resultspro (Wed, 23 May 2018 04:29:10 GMT):
re: fabcar example, I'm getting this error when I run the command *>node query.js* . I could not find any answers on google. Did any one face this issue? I even tried replacing "localhost" with my machine IP address from ipconfig. But no use..

resultspro (Wed, 23 May 2018 04:29:10 GMT):
re: fabcar example, I'm getting this error when I run the command *>node query.js* . I could not find any answers on google. Did any one face this issue? I even tried replacing "localhost" with my machine IP address from ipconfig. But no use.. `PS C:\Users\sagarl\HLFabric\fabric-samples\fabcar> node query.js Store path:C:\Users\sagarl\HLFabric\fabric-samples\fabcar\hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' }`

resultspro (Wed, 23 May 2018 04:35:26 GMT):
Test posting ``` ``` `Test posting`

resultspro (Wed, 23 May 2018 04:37:15 GMT):
re: fabcar example, I'm getting this error when I run the command `node query.js` I could not find any answers on google. Has anyone faced this issue? `PS C:\Users\sagarl\HLFabric\fabric-samples\fabcar> node query.js Store path:C:\Users\sagarl\HLFabric\fabric-samples\fabcar\hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' }`

resultspro (Wed, 23 May 2018 04:37:15 GMT):
re: fabcar example, I'm getting this error when I run the command `node query.js` I could not find any answers on google. Has anyone faced this issue? ``` `PS C:\Users\sagarl\HLFabric\fabric-samples\fabcar> node query.js Store path:C:\Users\sagarl\HLFabric\fabric-samples\fabcar\hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' }` ```

resultspro (Wed, 23 May 2018 04:37:15 GMT):
re: fabcar example, I'm getting this error when I run the command `node query.js` I could not find any answers on google. Has anyone faced this issue? ``` `PS C:\Users\sagarl\HLFabric\fabric-samples\fabcar> node query.js Store path:C:\Users\sagarl\HLFabric\fabric-samples\fabcar\hfc-key-store Successfully loaded user1 from persistence *error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15)* at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:64:15) at C:\Users\sagarl\HLFabric\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' }` ```

vpreddi (Wed, 23 May 2018 05:39:09 GMT):
Has joined the channel.

vpreddi (Wed, 23 May 2018 05:39:21 GMT):
hello , Is it possible to query ledger directly from java sdk application ? I am trying to do this , to get history of an asset which was deployed with composer. So , my question is , is it possible to qeury ledger directly from application using java fabric sdk ? can you point me to any online resources available for this? Thanks in advance.

kaisos (Wed, 23 May 2018 06:14:09 GMT):
Has joined the channel.

kaisos (Wed, 23 May 2018 06:19:37 GMT):
Hi to all, I am trying to build a network based on this example https://github.com/IBM/blockchain-application-using-fabric-java-sdk I have changed all the relevant files in order to create another organization (different name from example.com) but with the same topology. Although that the network starts, I am getting a warning during creation channel `2018-05-23 05:57:41.061 UTC [common/configtx] verifyDeltaSet -> DEBU 133 Processing change to key: [Value] /Channel/Application/Org1MSP/AnchorPeers 2018-05-23 05:57:41.061 UTC [orderer/common/broadcast] Handle -> WARN 134 [channel: mychannel] Rejecting broadcast of config message from 172.22.0.1:9471 because of error: error authorizing update: error validating DeltaSet: attempted to set key [Value] /Channel/Application/Org1MSP/AnchorPeers to version 1, but key does not exist`

Marc.K (Wed, 23 May 2018 06:20:58 GMT):
Good Morning Since information hiding is coming with v1.2, we are implementing it ourselves for now. Our goal is to have transactions that are only visible to two parties. This is our plan: We set the endorsement policy to 2 peers and encrypt the transaction. Only the two participating parties can decrypt and validate the transaction. All other peers fail the endorsement request. What do you think about this - did we miss something?

Sairohithyanamala (Wed, 23 May 2018 06:21:21 GMT):
Has joined the channel.

kaisos (Wed, 23 May 2018 06:37:48 GMT):
@Marc.K Where do you think that the error could be, during the network creation where the configtx is used to init the network? Or the client code that creates the channel? Is there a way to see the the configMap?

anjalinaik (Wed, 23 May 2018 07:16:18 GMT):
Can somebody help me understand what the below error is about?

anjalinaik (Wed, 23 May 2018 07:16:20 GMT):
Error from query = error executing chaincode: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/hyperledger/fabric/chaincode/fabcar /opt/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-187586318/000000.o: In function `pluginOpen': /tmp/workdir/go/src/plugin/plugin_dlopen.go:19: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /tmp/go-link-187586318/000001.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo': /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: final link failed: No space left on device collect2: error: ld returned 1 exit status "

blackgeneral (Wed, 23 May 2018 07:35:46 GMT):
hi, do you know how construct fabric network that consist of several physical server????

Bit 63 (Wed, 23 May 2018 07:37:22 GMT):
Has left the channel.

anjalinaik (Wed, 23 May 2018 07:37:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=teMqWn8TgWkYhqgJj) @resultspro This may occur if one of the Peer is down

vpreddi (Wed, 23 May 2018 07:40:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RjiT8SScQw5wK2MfG) hi , please any one advice me on this issue , its a main blocker

huangliping (Wed, 23 May 2018 07:45:33 GMT):
Has joined the channel.

huangliping (Wed, 23 May 2018 07:45:43 GMT):

Clipboard - May 23, 2018 3:45 PM

huangliping (Wed, 23 May 2018 07:46:10 GMT):
Hi there, is my understanding right for network, channels, orderer and other nodes, thanks

MonnyClara (Wed, 23 May 2018 07:54:14 GMT):
@huangliping For now that's right !

huangliping (Wed, 23 May 2018 07:54:54 GMT):
@MonnyClara Thanks for the reply

hrt031293 (Wed, 23 May 2018 08:47:19 GMT):

Screenshot from 2018-05-23 13-01-36.png

hrt031293 (Wed, 23 May 2018 08:47:41 GMT):
As I am trying to make chaincode with node.js

hrt031293 (Wed, 23 May 2018 08:47:41 GMT):
As I am trying to make chaincode with node.js, I am facing this issue

adokce (Wed, 23 May 2018 09:07:47 GMT):
Has joined the channel.

dhruvrana (Wed, 23 May 2018 09:17:35 GMT):
Has joined the channel.

dhruvrana (Wed, 23 May 2018 09:17:38 GMT):
can anyone help in python-SDK. I am trying to build a channel following this tutorial : https://github.com/hyperledger/fabric-sdk-py/blob/master/docs/tutorial.md. It says channel profile argument is missing.

akhilaggarwal (Wed, 23 May 2018 09:54:38 GMT):
Has joined the channel.

MonnyClara (Wed, 23 May 2018 10:00:33 GMT):
Hello, I'm running (trying) Fabric on Kubernetes with a Kafka ordering service. When I launch the the pods, the peer docker throw this error : ```2018-05-23 09:54:57.939 UTC [kvledger] NewProvider -> INFO 006 Initializing ledger provider 2018-05-23 09:54:57.939 UTC [kvledger.util] CreateDirIfMissing -> DEBU 007 CreateDirIfMissing [/var/hyperledger/production/ledgersData/ledgerProvider/] 2018-05-23 09:54:57.939 UTC [kvledger.util] logDirStatus -> DEBU 008 Before creating dir - [/var/hyperledger/production/ledgersData/ledgerProvider/] does not exist 2018-05-23 09:54:57.940 UTC [kvledger.util] CreateDirIfMissing -> DEBU 009 Error while creating dir [/var/hyperledger/production/ledgersData/ledgerProvider/] panic: Error while trying to create dir if missing: mkdir /var/hyperledger/production/ledgersData: permission denied ``` I guess that an error of directory creation inside the docker. But I'v never seen it ! Did someone faced this error ?

MonnyClara (Wed, 23 May 2018 10:00:33 GMT):
Hello, I'm running (trying) Fabric on Kubernetes with a Kafka ordering service. When I launch the the pods, the peer docker throw this error : ```2018-05-23 09:54:57.939 UTC [kvledger] NewProvider -> INFO 006 Initializing ledger provider 2018-05-23 09:54:57.939 UTC [kvledger.util] CreateDirIfMissing -> DEBU 007 CreateDirIfMissing [/var/hyperledger/production/ledgersData/ledgerProvider/] 2018-05-23 09:54:57.939 UTC [kvledger.util] logDirStatus -> DEBU 008 Before creating dir - [/var/hyperledger/production/ledgersData/ledgerProvider/] does not exist 2018-05-23 09:54:57.940 UTC [kvledger.util] CreateDirIfMissing -> DEBU 009 Error while creating dir [/var/hyperledger/production/ledgersData/ledgerProvider/] panic: Error while trying to create dir if missing: mkdir /var/hyperledger/production/ledgersData: permission denied ``` I guess that an error of directory creation inside the docker. But I'v never seen it ! Did someone faced this error ? Or is it a missing directory on my host machine ? (don't think so)

akhilaggarwal (Wed, 23 May 2018 11:22:48 GMT):
a quick question on hyperledger fabric. I have defined peers in my docker-compose.yml file. What does users indicate there? how is a user different from a peer in real application sense. I know that peer holds the ledger and user does not, but how can i conceptually understand difference between peer and user? and in composer app how do i make sure that a user invokes chaincode for his organisation only

lclclc (Wed, 23 May 2018 11:24:39 GMT):
what is the best practice to tune the performance of Kafka for orderering service? bind a configuration file inside the Kafka container?

lclclc (Wed, 23 May 2018 11:24:51 GMT):
Or use ENV?

ajmeraharsh (Wed, 23 May 2018 11:28:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ejBXnNn7tbFoPT2rS) @lclclc ENV is better if it is just few variables and you don't need much configurational changes.

lclclc (Wed, 23 May 2018 11:29:04 GMT):

Clipboard

lclclc (Wed, 23 May 2018 11:29:34 GMT):
Does anyone has a suggestion about best value for these keys?

lclclc (Wed, 23 May 2018 11:30:06 GMT):
I haven't tune this before and not sure about tuning principle.

lclclc (Wed, 23 May 2018 11:30:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8DubnFcQ8zzsxTJo4) @ajmeraharsh thanks for replying

lclclc (Wed, 23 May 2018 11:31:10 GMT):
I would also prefer env, but not sure if there is only 3-4 variable have to tune in my case.

lclclc (Wed, 23 May 2018 11:31:10 GMT):
I would also prefer env, but not sure if there are only 3-4 variables have to tune in my case.

ajmeraharsh (Wed, 23 May 2018 11:31:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sPFJWKsFrjBKY4iDc) @lclclc I am assuming you are using docker-compose for this. You can set these environment variables `- KAFKA_MESSAGE_MAX_BYTES=1048576` and `- KAFKA_DEFAULT_REPLICATION_FACTOR=1`

lclclc (Wed, 23 May 2018 11:33:51 GMT):
looks like a 10 mb message size and reducing the replica overhead to me. Could you please tell me how much performance improvement you got from this tuning?

lclclc (Wed, 23 May 2018 11:33:51 GMT):
looks like a 10 mb message size and reducing the replica overhead to me. Could you please tell me how much performance improvement you got from this tuning? @ajmeraharsh

lclclc (Wed, 23 May 2018 11:34:56 GMT):
Should I also tune these 2? `Orderer.AbsoluteMaxBytes ` ` replica.fetch.max.bytes`

ajmeraharsh (Wed, 23 May 2018 11:38:16 GMT):
value for ` replica.fetch.max.bytes` for me is same as `KAFKA_MESSAGE_MAX_BYTES` I have configured and tested 9 kafka and zookeepers changing `KAFKA_DEFAULT_REPLICATION_FACTOR` so it totally depends on your need

lclclc (Wed, 23 May 2018 11:40:45 GMT):
Your experience is inspiring to me. Thanks

satish67 (Wed, 23 May 2018 11:55:03 GMT):
Has joined the channel.

satish67 (Wed, 23 May 2018 11:55:58 GMT):
hi, can i set up hyperleger fabric on Debian instead of ubuntu. #fabric-questions #fabric

lclclc (Wed, 23 May 2018 12:00:38 GMT):
fabric's major part is running inside docker container. I believe you can set up fabric in any x

lclclc (Wed, 23 May 2018 12:00:38 GMT):
fabric's major part is running inside docker container. I believe you can set up fabric in any x86 os which support docker.

lclclc (Wed, 23 May 2018 12:00:46 GMT):
x86 os which support docker.

MarceloAzevedo (Wed, 23 May 2018 12:15:58 GMT):
Hello guys, I have a question about channels: Let's suppose that I have 50 peers on a network. Is it possible to create a channel between two of them dinamically? Something like: `if(!hasChannelBetweenTheseTwoPeers) { channel.create(peerA, peerB) }`

jrosmith (Wed, 23 May 2018 12:17:56 GMT):
@vpreddi #fabric-sdk-java will probably be the best source of information

Akshay1997 (Wed, 23 May 2018 12:31:44 GMT):
Has joined the channel.

Akshay1997 (Wed, 23 May 2018 12:32:05 GMT):
Hey how to use fabric for android apps ?

Akshay1997 (Wed, 23 May 2018 12:33:41 GMT):
as libraries are available in Java,python but I am not able to find how to use fabric for android

HemanthPrabhu (Wed, 23 May 2018 12:53:35 GMT):
When instantiate chaincode I am getting below errors Cmd: docker exec -e "CORE_PEER_LOCALMSPID=UcmcMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ucmc.ucmcpatientchain.com/users/Admin@ucmc.ucmcpatientchain.com/msp" cli peer chaincode instantiate -o orderer.ucmcpatientchain.com:7050 -C ucmcmembers -n mycc -v 2.0 -c '{"Args":[""]}' -P "OR ('UcmcMSP.member','UcmcMSP.member')" Error:Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network ucmcpatientchain_byfn not found"} Message

HemanthPrabhu (Wed, 23 May 2018 12:53:48 GMT):
@jrosmith

ajmeraharsh (Wed, 23 May 2018 12:58:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MEAcbbg54S6knSM4Q) @HemanthPrabhu looks like docker network misconfig

Khush1209 (Wed, 23 May 2018 13:02:14 GMT):
@lepar Thanks for the help. Actually i am runny from putty then there was an error related to access denied. Now it is working.

HemanthPrabhu (Wed, 23 May 2018 13:43:23 GMT):
@ajmeraharsh Can you please help us where is that?

Kyroy (Wed, 23 May 2018 13:49:23 GMT):
Has left the channel.

MrLoffciak (Wed, 23 May 2018 13:50:29 GMT):
Hi. I would like to ask about AND endorsement policy. Is it possible to make it working in CLI?

ajmeraharsh (Wed, 23 May 2018 13:55:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QMQyqoxECkWM6N9gf) @MrLoffciak we use CLI to install and instantiate chaincodes, so yes CLI is the place for endorsement policies. Or if you are using composer-playground, you need to provide a policy JSON

MrLoffciak (Wed, 23 May 2018 13:57:46 GMT):
@ajmeraharsh Thanks for fast response. I were trying to run a chaincode with AND(Org1.peer, Org2.peer) via CLI, but an error occurred with endorsing proposal.

ajmeraharsh (Wed, 23 May 2018 13:58:24 GMT):
and the error is .. ?

MrLoffciak (Wed, 23 May 2018 13:58:26 GMT):

Capture.PNG

MrLoffciak (Wed, 23 May 2018 13:59:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iMPyRHxRySiQm7t5c) @ajmeraharsh Sorry. Posted below

MrLoffciak (Wed, 23 May 2018 14:02:25 GMT):

Capture2.PNG

MrLoffciak (Wed, 23 May 2018 14:02:25 GMT):

Capture2.PNG

ajmeraharsh (Wed, 23 May 2018 14:07:19 GMT):
@MrLoffciak do you have your `crypto-config.yaml` handy with you?

MrLoffciak (Wed, 23 May 2018 14:10:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Gtj69pop7nDkGCtZX) @ajmeraharsh yes. It was used to generate the channel artifacts

ajmeraharsh (Wed, 23 May 2018 14:10:27 GMT):
i meant can you share that here?

MrLoffciak (Wed, 23 May 2018 14:13:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7ZXGkANPr8pghTQzN) @ajmeraharsh It was the one supplied with BYFN. https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/configtx.yaml

MrLoffciak (Wed, 23 May 2018 14:13:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7ZXGkANPr8pghTQzN) @ajmeraharsh It was the one supplied with BYFN. https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/configtx.yaml Everything worked until endorsement policy changed from OR to AND

ajmeraharsh (Wed, 23 May 2018 14:16:23 GMT):
first off, you are sharing `configtx`, I was looking for `crypto-config.yaml`

ajmeraharsh (Wed, 23 May 2018 14:17:18 GMT):
anyways, just check that `crypto-config.yaml` has `EnableNodeOUs` set as `true` for all Orgs

ajmeraharsh (Wed, 23 May 2018 14:18:14 GMT):
also to use `AND` for endorsing you need to the chaincode endorsed by both Orgs now

MrLoffciak (Wed, 23 May 2018 14:18:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kPYnWhaZcXu3jcxgr) @ajmeraharsh will check it. thanks a lot! :)

kbreite27 (Wed, 23 May 2018 14:37:02 GMT):
Has joined the channel.

benjsmi (Wed, 23 May 2018 15:10:59 GMT):
Has joined the channel.

ChaoChow (Wed, 23 May 2018 16:25:29 GMT):
I'm having some issues using the node sdk connecting to the first-network example

ChaoChow (Wed, 23 May 2018 16:25:45 GMT):
i am getting this error when trying to invoke chaincode through node sdk

ChaoChow (Wed, 23 May 2018 16:25:46 GMT):
Error: No identity has been assigned to this client

vick (Wed, 23 May 2018 16:30:30 GMT):
what algorithm is fabric using to generate transaction hash?

lepar (Wed, 23 May 2018 16:39:50 GMT):
@Khush1209 Great!

lepar (Wed, 23 May 2018 16:40:17 GMT):
@rupa12 What's the environment you're running on?

mastersingh24 (Wed, 23 May 2018 16:42:41 GMT):
In v1.0.x and v1.1.x the CLI can only be used to obtain a single endorsement. In the upcoming v1.2 release (end of June) we modified the CLI to support collecting multiple endorsements (https://chat.hyperledger.org/channel/fabric-questions?msg=vxpKkYKXoanhAcXuW) @MrLoffciak

ChaoChow (Wed, 23 May 2018 18:42:28 GMT):
If i am using the node SDK do i need to have a certificate authority for each organization in my blockchain? All the examples i see for using the node SDK involve a CA

ChaoChow (Wed, 23 May 2018 18:43:26 GMT):
Can i just use a user generated during the cryptogen operation instead?

lepar (Wed, 23 May 2018 21:03:42 GMT):
Does anyone know how to explain the asset management in Fabric? The UTXO stateless and account model with state storage space on the ledger. I don't quite understand the difference.

rupa12 (Wed, 23 May 2018 21:07:28 GMT):
@lepar: I am running fabric version 1.0.6 , linux 3.10.0-862.el7.x86_64

lepar (Wed, 23 May 2018 21:07:54 GMT):
What linux distro?

rupa12 (Wed, 23 May 2018 21:08:48 GMT):
RedHat

rupa12 (Wed, 23 May 2018 21:09:24 GMT):
RHEL 7.7

rupa12 (Wed, 23 May 2018 21:09:28 GMT):
*7.5

lepar (Wed, 23 May 2018 21:12:08 GMT):
I'm sorry but I'm unable to help you. I have little knowledge with linux environment and I'm been getting really good at Ubuntu by following the fabric tutorials. I recommend you follow the tutorial from here: https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/course/ using ubuntu version 16.04 (I tried on 18.04 and gave me a lot of errors)

lepar (Wed, 23 May 2018 21:13:43 GMT):
It may have something to do with different linux distros as they have different mechanisms, as I mentioned I had problems with 18.04 but with 16.04 it went smooth.

rupa12 (Wed, 23 May 2018 21:18:02 GMT):
O okay sure. No worries. Thank you

AlbertoCarmona (Thu, 24 May 2018 00:33:02 GMT):
Has joined the channel.

AlbertoCarmona (Thu, 24 May 2018 00:43:29 GMT):
Hello, can you please tell whether the data blockchain would be lost in case that the docker container is shut down. I mean I know i can do docker-compose stop and then start to bring it back to the same point but what if the host is shut down without using the docker-compose stop?

huxinxin (Thu, 24 May 2018 01:19:53 GMT):
Has joined the channel.

huxinxin (Thu, 24 May 2018 01:26:38 GMT):
Hi guys,

huxinxin (Thu, 24 May 2018 02:44:45 GMT):
I start my network with “byfn.sh -m up”,and try to the chain code mycc with fabric-sdk-go. But i have an issue with following errors: 2018/05/24 09:24:06 Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [peer0.org1.example.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [peer0.org1.example.com:7051] I tried to connect it with “telnet peer0.org1.example.com 7051” and it is ok. I tried to change "peer0.org1.example.com:7051" to "192.168.1.225:7051" and the Query function but still has the issue: 2018/05/24 10:18:57 Failed to invoke: CreateAndSendTransaction failed: SendTransaction failed: calling orderer 'orderer.example.com:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [orderer.example.com:7050] At this time, changing "orderer.example.com:7050'" to "192.168.1.225:7050" did not work.

habpygo (Thu, 24 May 2018 06:56:36 GMT):
Hi @huxinxin these types of warnings/error messages don’t tell you much. The only tip I have is that you have to tediously set up your configuration and look at the docker logs. Make sure that all docker containers are gone before you restart. If you’re on a mac use Kitematics, it will show you the docker containers running or stopped (the greyed out ones). You can remove them manually. Perhaps it’s a good idea to remove the docker images as well `docker rmi -f $(docker images -q)` after having cleaned out the containers. If you still have problems use Kitematics to look at the docker logs (click on the running container). If you still have problems, ask on the https://chat.hyperledger.org/channel/fabric-sdk-go channel.

sudeshkashyap (Thu, 24 May 2018 07:11:27 GMT):
Has joined the channel.

sudeshkashyap (Thu, 24 May 2018 07:11:53 GMT):
root@c8687a785483:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.sudesh.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/sudesh.com/orderers/orderer.sudesh.com/msp/tlscacerts/tlsca.sudesh.com-cert.pem 2018-05-24 07:06:53.520 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: Got unexpected status: BAD_REQUEST

sudeshkashyap (Thu, 24 May 2018 07:13:50 GMT):
i was trying to create one single-member blockchain and at the pint of channel creation am getting this issue

sudeshkashyap (Thu, 24 May 2018 07:14:19 GMT):
please guide what went wrong from my side

sudeshkashyap (Thu, 24 May 2018 07:18:00 GMT):
??

ajmeraharsh (Thu, 24 May 2018 07:22:35 GMT):
@sudeshkashyap Do check the existing channels with `docker logs peer channel list`. this error usually comes when the channel is already created

MonnyClara (Thu, 24 May 2018 07:23:23 GMT):
@AlbertoCarmona You may succeed to avoid the complete data loss mounting a volume :/

Marc.K (Thu, 24 May 2018 08:10:27 GMT):
Good Morning Since information hiding is coming with v1.2, we are implementing it ourselves for now. Our goal is to have transactions that are only visible to two parties. This is our plan: We set the endorsement policy to 2 peers and encrypt the transaction. Only the two participating parties can decrypt and validate the transaction. All other peers fail the endorsement request. What do you think about this - did we miss something?

yacovm (Thu, 24 May 2018 09:31:25 GMT):
@Marc.K but v1.2 is just around the corner

yacovm (Thu, 24 May 2018 09:31:56 GMT):
> What do you think about this - did we miss something? It's a very good way to get a blockchain fork

yacovm (Thu, 24 May 2018 09:31:56 GMT):
> Only the two participating parties can decrypt and validate the transaction. All other peers fail the endorsement request. > What do you think about this - did we miss something? It's a very good way to get a blockchain fork

WaedSaleh (Thu, 24 May 2018 10:38:38 GMT):
Has joined the channel.

WaedSaleh (Thu, 24 May 2018 10:38:49 GMT):
Hi all, I am looking to explore my fabric network and currently I am using hyperladger BC explore, but it does not display all the details for transaction, so, how I can modify the client application to be able to display payload of transaction.

Alaa_Migdady (Thu, 24 May 2018 10:43:24 GMT):
hiii .. I am a beginner and I am building an application using hyper ledger fabric .. I need two types of users >> one can read and write from/to the ledger .. and the other can only read .. HOW can I do this ?? thanks in advance

MarceloAzevedo (Thu, 24 May 2018 11:21:41 GMT):
Hello guys, I have a question about channels: Let's suppose that I have 50 peers on a network. Is it possible to create a channel between two of them dinamically? Something like: `if(!hasChannelBetweenTheseTwoPeers) { channel.create(peerA, peerB) }`

nissshh (Thu, 24 May 2018 11:42:07 GMT):
Has joined the channel.

NihadOgresevic (Thu, 24 May 2018 12:23:43 GMT):
Has joined the channel.

JackStrohm (Thu, 24 May 2018 13:45:34 GMT):
I'm having a problem attaching an event listener to event hub. I get "could not decode the PEM structure" from the peer when the event listener tries to register. The problem is described in more detail here: https://stackoverflow.com/questions/50502018/hyperledger-fabric-registertxevent-fails-with-could-not-decode-the-pem-structur

vanitas92 (Thu, 24 May 2018 13:51:06 GMT):
Hi guys do you know when would be available the instantiation of chaincodes fully integrated within kubernetes? I read that its planned to be available at 1.2?

MonnyClara (Thu, 24 May 2018 13:52:02 GMT):
@vanitas92 Where is your source ? That's pretty cool !!

vanitas92 (Thu, 24 May 2018 13:55:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=otNmJ273jPa7Z6WND) @MonnyClara I have followed this issue in jira: https://jira.hyperledger.org/browse/FAB-7406 but there has been no further comments about its status since february

Strauss (Thu, 24 May 2018 13:56:30 GMT):
Has joined the channel.

nabil941994 (Thu, 24 May 2018 14:30:55 GMT):
Has joined the channel.

jmason900 (Thu, 24 May 2018 14:31:06 GMT):
Hi @obenyaac . I've worked in insurance. Fabric can change, simplify the business processes in policies, claims, underwriting, contact management, document management. For claims estimates alone, you have the insurance provider, the policy holder, 1 or more body shops and a claims adjuster. All of those parties can see, share data as needed across organizations. In underwriting, risk assessment is done based on history. Across insurance companies it makes sense to share anonymous risk data to get more accurate risk ratings for underwriting. There are insurance consortiums now looking at doing that

nabil941994 (Thu, 24 May 2018 14:31:47 GMT):
Hey guys, i just started with hyperledger fabric, i was wondering regarding chaincode, is it on the peers local machines or is it deployed on the blockchain itself (like ethereum where smart contracts are deployed on the blockchain)

jrosmith (Thu, 24 May 2018 15:17:47 GMT):
@nabil941994 the chaincode runs in a docker container on a peer instance

acuestareig (Thu, 24 May 2018 15:21:31 GMT):
Has joined the channel.

gut (Thu, 24 May 2018 16:00:37 GMT):
@nabil941994 It must be installed on the filesystem of the peers, that are part of the blockchain. Then, you also have to instantiate it in order to be allowed by one channel. Finally you can invoke it, so endorsing peers on the channel can execute it. If you refer if the chaincode is in the ledger itself, no, it's not the same as Ethereum.

MarceloAzevedo (Thu, 24 May 2018 16:07:13 GMT):
hello guys, can someone help me? I have a channel configured and running with peers from org1. I want to add a peer from org2 but i don't know how to do this

MarceloAzevedo (Thu, 24 May 2018 16:07:13 GMT):
hello guys, can someone help me? I have a channel configured and running with peers from org1. I want to add a peer from org2 on this channel but i don't know how to do this

lepar (Thu, 24 May 2018 16:18:30 GMT):
@MarceloAzevedo you must add an anchor peer from another organization to the channel in order to communicate between organizations. By adding an anchor peer from org2, you're creating a channel of communication between org1 and org2

lepar (Thu, 24 May 2018 16:20:44 GMT):
hyperledger-fabric.readthedocs.io/en/release-1.1/channels.html

MarceloAzevedo (Thu, 24 May 2018 16:21:48 GMT):
got it @lepar ! thanks! but on this case, I need to bring down the network, right?

lepar (Thu, 24 May 2018 16:24:11 GMT):
Not necessarily, you can modify the configtx file as an update. The way it works is: The genesis.block contains the first channel configuration. as the network goes, you update that channel config with a new set of rules and policies on a block. Whenever a transaction occurs, instead of going back to the genesis.block config, it goes to the block with the new update channel rules.

lepar (Thu, 24 May 2018 16:25:39 GMT):
http://hyperledger-fabric.readthedocs.io/en/release-1.1/config_update.html Take a look here. It's how you update the channels configuration.

MarceloAzevedo (Thu, 24 May 2018 16:27:57 GMT):
wow, very nice! thanks again! I'll take a look at the links you sent me

lepar (Thu, 24 May 2018 16:28:40 GMT):
No prob

hamptonsmith (Thu, 24 May 2018 16:38:50 GMT):
How can a backup be accomplished in case an instance fails irretrievably? Is there a single specified (or even better: configurable) directory that can be copied verbatim and later dropped in to allow a new ledger peer to just pick up where an old one left off?

vini_heitor (Thu, 24 May 2018 16:43:31 GMT):
Has joined the channel.

khalpin (Thu, 24 May 2018 17:20:36 GMT):
does anyone have any idea why I things work fine when I have the endorsement policy set to orgNameMSP.member, but I cannot for the life of me get orgNameMSP.peer to endorse?

khalpin (Thu, 24 May 2018 17:21:14 GMT):
is there a way to determine if the MSP info contains 'peer' or 'member' or am I missing something entirely?

lepar (Thu, 24 May 2018 17:23:23 GMT):
@hamptonsmith Check out this jira https://jira.hyperledger.org/browse/FAB-3017

khalpin (Thu, 24 May 2018 17:28:34 GMT):
is the issue that I only have a single peerOrg right now?

lepar (Thu, 24 May 2018 17:29:32 GMT):
@khalpin What do you have running at the moment?

khalpin (Thu, 24 May 2018 17:30:04 GMT):
three nodes, with an orderer and a peer living on each one

khalpin (Thu, 24 May 2018 17:30:18 GMT):
one's acting as the ordererOrg

khalpin (Thu, 24 May 2018 17:30:23 GMT):
one's acting as the peerOrg

khalpin (Thu, 24 May 2018 17:31:50 GMT):
creating the channel works, joining it works, installing and instantiation works, then...invoke says it's fine, but the peer fails to endorse it

khalpin (Thu, 24 May 2018 17:32:15 GMT):
I'm submitting the invoke in the cli container

hamptonsmith (Thu, 24 May 2018 17:32:55 GMT):
Do I understand correctly that if I start a channel with the Kafka consensus type, Kafka's details can be fully reconfigured later? If I'm trying to bring up something "production-y" but I don't care too much about high availability for the moment, would it be sensible to bring up a silly Kafka cluster with only one node to get started quickly, then upgrade the Kafka cluster as my needs become more complex?

khalpin (Thu, 24 May 2018 17:33:11 GMT):
with policy "AND('MyCompanyDevPeerMSP.peer')", it fails, with "AND('MyCompanyDevPeerMSP.member')", it endorses

lepar (Thu, 24 May 2018 17:36:09 GMT):
@khalpin from what I understand, you need to add the .peer to the channel policies because if it's not endorsing, then the connection is being refused because it's missing the required certificates

lepar (Thu, 24 May 2018 17:37:08 GMT):
@hamptonsmith Yes, Kafka allows for network growth without having to rebuild the network.

muddasirshaikh (Thu, 24 May 2018 19:41:12 GMT):
Has joined the channel.

muddasirshaikh (Thu, 24 May 2018 19:42:16 GMT):
I have just started exploring fabric. In composer I see there is an web enviroment to create .bna file. is it also called chaincode??.. or chaincode is somthing different??. I am using hyperledger on IBM bluemix.. please help

AlbertoCarmona (Thu, 24 May 2018 22:01:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AMukwEN9QyidKXHya) @MonnyClara Thank you!

vick (Thu, 24 May 2018 22:21:06 GMT):
org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity

vick (Thu, 24 May 2018 22:21:13 GMT):
anyone know where this class is? ^

vick (Thu, 24 May 2018 22:21:24 GMT):
it's referenced inside the fabric-sdk-java

phanikumar (Thu, 24 May 2018 23:23:15 GMT):
I wonder if I can get some information around how solo consensus mechanism work

resultspro (Fri, 25 May 2018 05:31:15 GMT):
Hi, I'm running fabcar example on Win10 and struggling at this step ./startFabric.sh for many hours. Not able to create a peer. Can you please help me understand what is going wrong? ``` `docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Creating orderer.example.com ... done Creating couchdb ... done Creating ca.example.com ... done Creating peer0.org1.example.com ... error ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' Encountered errors while bringing up the project.` ```

pragadeeshdharsha (Fri, 25 May 2018 06:18:27 GMT):
Has joined the channel.

pragadeeshdharsha (Fri, 25 May 2018 06:18:50 GMT):
hey guys, I'm new here. I've installed golang and docker. I want to start with fabric SDK go. I am not sure whether the installation is made correct. How do I check that?

pragadeeshdharsha (Fri, 25 May 2018 06:23:24 GMT):
i'm using ubuntu 18.04

migrenaa (Fri, 25 May 2018 06:24:32 GMT):
@pragadeeshdharsha go version, docker -v. You will also need docker-compose.

pragadeeshdharsha (Fri, 25 May 2018 06:24:57 GMT):
ya, I've installed all

pragadeeshdharsha (Fri, 25 May 2018 06:25:17 GMT):
but I don't know where should i start after that.

pragadeeshdharsha (Fri, 25 May 2018 06:25:54 GMT):
I want to test a basic code. How do I do that?

migrenaa (Fri, 25 May 2018 06:26:34 GMT):
This is a good start https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html :)

pragadeeshdharsha (Fri, 25 May 2018 06:34:47 GMT):
:thumbsup:

rupadhyay (Fri, 25 May 2018 06:51:55 GMT):
Has joined the channel.

MihaiAA (Fri, 25 May 2018 06:52:55 GMT):
Has joined the channel.

neocameback (Fri, 25 May 2018 08:01:48 GMT):
Has joined the channel.

hanix (Fri, 25 May 2018 08:18:12 GMT):
Has joined the channel.

vick (Fri, 25 May 2018 08:19:28 GMT):
do docker start hello-world

vick (Fri, 25 May 2018 08:19:31 GMT):
or something like that

vick (Fri, 25 May 2018 08:19:55 GMT):
it should download an image and mount it to a container that simply prints hello world

vick (Fri, 25 May 2018 08:21:05 GMT):
@resultspro is it windows 10 home or professional? also where are you running that command? in the prompt?

vick (Fri, 25 May 2018 08:21:29 GMT):
@resultspro have you opened that startFabric.sh file to see where it's referencing that path?

hanix (Fri, 25 May 2018 08:22:31 GMT):
Hi folks, I want to ask a quick question. I know that when I create a channel in Fabric there will be a new and separate ledger for the channel. So we can hide the transactions from other channels/orgs/peers etc. My question: Is there a single world state (db) for all channels that are created or similar to ledger-per-channel situation is there a separate world state (db) for each channel?

Bang (Fri, 25 May 2018 08:50:50 GMT):
Has joined the channel.

Bang (Fri, 25 May 2018 08:51:33 GMT):
Hi,Guys . when I execute this commond , I miss the problem : Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: tls: first record does not look like a TLS handshake. How do I check that?

Bang (Fri, 25 May 2018 08:51:55 GMT):
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

SaulYin (Fri, 25 May 2018 09:42:15 GMT):
Has joined the channel.

SaulYin (Fri, 25 May 2018 09:42:31 GMT):
Hey guys, I was reading about the Security&Access control section of the Fabric-FAQ and I came across something called "visibility settings". Does anyone know how I can actually configure that "visibility settings"? Thanks

RTZ229 (Fri, 25 May 2018 10:21:51 GMT):
Has joined the channel.

ovallod (Fri, 25 May 2018 10:24:34 GMT):
Has joined the channel.

GoodSamaritan (Fri, 25 May 2018 10:27:31 GMT):
Has joined the channel.

shwetacse5 (Fri, 25 May 2018 10:30:03 GMT):
Hello All. Can anyone suggest any document link or steps to followed for creating Fabric network setup on two virtual machines running on same host? Any help will be appreciable.

Sairohithyanamala (Fri, 25 May 2018 10:54:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7KFgLZWaMpiJHPwPh) @shwetacse5 following

rogermylife (Fri, 25 May 2018 11:21:14 GMT):
Hi Is there a way to get chaincode current endorsement policy?

rogermylife (Fri, 25 May 2018 11:35:07 GMT):
The chaincode is instantiated.

nihontech.321 (Fri, 25 May 2018 11:52:35 GMT):
Has joined the channel.

nihontech.321 (Fri, 25 May 2018 11:57:49 GMT):
Hello All! Can someone help me with setting up the Hyperledger Fabric REST API SDK. It is up and running in the browser window but fails all the inbuilt test files given by the network. I also tried to run it against the fabcar network to test it manually but it is giving the same error as before. The errors are of two types: "returned non-zero exit status 7" & "connector.postChannelsChannelName(channelName, channelRequest, connector).then( ^ TypeError: Cannot read property 'postChannelsChannelName' of undefined at /home/nihon/fabric-sdk-rest/packages/fabric-rest/server/models/fabric-1-0.js:213:15". Looking forward for an answer!! Thanks

pathfinder2104 (Fri, 25 May 2018 12:33:34 GMT):
Has joined the channel.

pathfinder2104 (Fri, 25 May 2018 12:33:42 GMT):
Hi all

pathfinder2104 (Fri, 25 May 2018 12:34:22 GMT):
Which all languages are supported for writing chaincode for Hyperledger Fabric? I am aware of JavaScript (with Hyperledger - Composer) and aware of GoLang

pathfinder2104 (Fri, 25 May 2018 12:34:35 GMT):
are there any other languages supported ? i.e. Java ?

lepar (Fri, 25 May 2018 12:50:19 GMT):
@pathfinder2104 Not yet, although it is under development to be released in Java and Python

pathfinder2104 (Fri, 25 May 2018 12:50:44 GMT):
cool

pathfinder2104 (Fri, 25 May 2018 12:51:15 GMT):
can you please tell me the release plan for these two language support ?

yacovm (Fri, 25 May 2018 13:10:56 GMT):
@pathfinder2104 there is java chaincode... it is experimental

yacovm (Fri, 25 May 2018 13:11:07 GMT):
there will be full java chaincode support next version, i believe

pathfinder2104 (Fri, 25 May 2018 13:11:19 GMT):
you mean to say fabric 1.2 ?

yacovm (Fri, 25 May 2018 13:11:34 GMT):
https://github.com/hyperledger/fabric-chaincode-java

yacovm (Fri, 25 May 2018 13:11:40 GMT):
ah no... i mean to v1.3

yacovm (Fri, 25 May 2018 13:11:47 GMT):
i already moved to v1.2 mentally ;)

pathfinder2104 (Fri, 25 May 2018 13:12:03 GMT):
ok :)

pathfinder2104 (Fri, 25 May 2018 13:12:25 GMT):
where can I see the launch calendar ? I want to find the release date of 1.3.

pathfinder2104 (Fri, 25 May 2018 13:12:39 GMT):
one more question

pathfinder2104 (Fri, 25 May 2018 13:12:59 GMT):
is there a significant difference between writing chaincode in different languages ?

pathfinder2104 (Fri, 25 May 2018 13:13:14 GMT):
i.e GoLang vs JavaScript vs Java (possibly in future) :)

pathfinder2104 (Fri, 25 May 2018 13:13:14 GMT):
i.e GoLang vs JavaScript vs Java (possibly in future :) )

lepar (Fri, 25 May 2018 13:13:40 GMT):
V1.2 is set for June

pathfinder2104 (Fri, 25 May 2018 13:13:52 GMT):
ok :+1:

yacovm (Fri, 25 May 2018 13:13:54 GMT):
yes there is

yacovm (Fri, 25 May 2018 13:14:14 GMT):
in javascript from what i observed, it does `git npm install` at container building

yacovm (Fri, 25 May 2018 13:14:30 GMT):
in golang it just compiles

pathfinder2104 (Fri, 25 May 2018 13:14:36 GMT):
ok

yacovm (Fri, 25 May 2018 13:14:41 GMT):
in java i don't know...

pathfinder2104 (Fri, 25 May 2018 13:14:42 GMT):
so you mean to say it is slow ?

yacovm (Fri, 25 May 2018 13:14:48 GMT):
it is slow, and error prone

pathfinder2104 (Fri, 25 May 2018 13:14:52 GMT):
ohk

pathfinder2104 (Fri, 25 May 2018 13:14:59 GMT):
but then why they are supporting it ?

yacovm (Fri, 25 May 2018 13:15:04 GMT):
if you get a network disconnect when the container is building

yacovm (Fri, 25 May 2018 13:15:09 GMT):
then the instantiate fails

pathfinder2104 (Fri, 25 May 2018 13:15:10 GMT):
isn't then the only choice left is GoLang ?

buridiaditya (Fri, 25 May 2018 13:15:16 GMT):
hey when a client calls `peer join channel` for a remote peer to join a channel which function is called by the peer upon receiving the join proposal.

yacovm (Fri, 25 May 2018 13:15:26 GMT):
you can use the java chaincode now too... it should work

pathfinder2104 (Fri, 25 May 2018 13:15:34 GMT):
ok

yacovm (Fri, 25 May 2018 13:15:34 GMT):
it's just not officially released

pathfinder2104 (Fri, 25 May 2018 13:15:40 GMT):
I am basically a Java Developer

yacovm (Fri, 25 May 2018 13:15:50 GMT):
i was one too before

pathfinder2104 (Fri, 25 May 2018 13:16:13 GMT):
I saw some blog posts for fabric 0.6 which supported Java for chaincode but in the course on edx it says only GoLang is supported

yacovm (Fri, 25 May 2018 13:16:23 GMT):
at some point you get tired of typing long names and move to go

pathfinder2104 (Fri, 25 May 2018 13:16:30 GMT):
ok

pathfinder2104 (Fri, 25 May 2018 13:16:53 GMT):
so Go is more performance centric

pathfinder2104 (Fri, 25 May 2018 13:16:53 GMT):
so Go is more performance provider

pathfinder2104 (Fri, 25 May 2018 13:18:10 GMT):
thanks :+1:

buridiaditya (Fri, 25 May 2018 13:20:05 GMT):
hey when a client calls `peer join channel` for a remote peer to join a channel which function is called by the peer upon receiving the join proposal.

jsellinger (Fri, 25 May 2018 14:44:29 GMT):
Has joined the channel.

jsellinger (Fri, 25 May 2018 14:50:37 GMT):
hello all! i am new to trying to fabric and wanted to make sure i am on the right track. i ran both make dist-clean all and make unit-test and i am getting the same output (see image) and i wanted to know what i need to do to correct this error. any help is much appreciated!

jsellinger (Fri, 25 May 2018 14:50:52 GMT):

Screen Shot 2018-05-25 at 10.48.03 AM.png

vini_heitor (Fri, 25 May 2018 14:52:15 GMT):
Hello people. It might be a stupid question, but I'm getting into this blockchain thing. We are discussing the structure of our network and we do not know what the best approach is. We have a N to N relationship where sales companies can contact multiple service providers on an exclusive channel. We must consider that each participant would be represented by one Organization OR we would have one Org for service providers and another for sales, in which each participant would be one (or more) peer in their respective Org?

ajmeraharsh (Fri, 25 May 2018 14:56:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xaj3q4ydSdDKzDkGh) @vini_heitor *Peers* are nothing but nodes to a network, so technically they are not entities, they are resources for the network. *Organizations* would be legal entities within an network. When you see, certain participants within a network belongs to different legal obligations, you would need to create Orgs.

SaulYin (Fri, 25 May 2018 14:59:58 GMT):
Hey guys, I was reading about the Security&Access control section of the Fabric-FAQ and I came across something called "visibility settings". Does anyone know how I can actually configure that "visibility settings"? Thanks

hamptonsmith (Fri, 25 May 2018 18:11:52 GMT):
Starting an orderer against a kafka cluster, I see this in the debug output: 2018-05-25 18:08:29.732 UTC [orderer/consensus/kafka] try -> DEBU 0f5 [channel: global] Connecting to the Kafka cluster 2018-05-25 18:08:29.732 UTC [orderer/consensus/kafka/sarama] Validate -> DEBU 0f6 ClientID is the default of 'sarama', you should consider setting it to something application-specific. How can I configure the Kafka ClientID used by the orderer?

gepoemrun (Fri, 25 May 2018 18:14:23 GMT):
Has joined the channel.

gepoemrun (Fri, 25 May 2018 18:16:55 GMT):
Hi what is the right way to copy chaincode to the cloud instances? I'm testing my fabric network with the sample chaincode. After instantiated the chaincode, got "chaincode fingerprint misma tch data mismatch" while querying with "peer chaincode query -C common -n test -c '{"Args":["query","a"]}'" in another peer.

vchinoy (Fri, 25 May 2018 18:28:05 GMT):
Has joined the channel.

sukrit.handa@gmail.com (Fri, 25 May 2018 18:55:57 GMT):
Has joined the channel.

shaileshjgd (Fri, 25 May 2018 20:51:47 GMT):
Has joined the channel.

shaileshjgd (Fri, 25 May 2018 20:54:19 GMT):
aws

am (Fri, 25 May 2018 21:15:47 GMT):
Hi ..looks like side db is in 1.2 FAB-8718 Finalize Side DB - Private Data ..are there any pre release docker images available for 1.2.. also any documentation on seeting up/configuring side db??

dudleyf (Sat, 26 May 2018 00:03:06 GMT):
Has joined the channel.

dragosluca (Sat, 26 May 2018 11:40:18 GMT):
Has joined the channel.

dragosluca (Sat, 26 May 2018 11:41:11 GMT):
Hi all, Is there a minimum limit of number of peers for an organisation for hyperledger fabric ?

rogermylife (Sat, 26 May 2018 12:31:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wMBm4rn55uogk2hFa) @dragosluca I'm not sure but in my experiment, it can be set 1.

dragosluca (Sat, 26 May 2018 12:32:10 GMT):
hi @rogermylife

dragosluca (Sat, 26 May 2018 12:32:28 GMT):
i've try to set the number of peers to 1

dragosluca (Sat, 26 May 2018 12:32:49 GMT):
but then i was seeing errors related to the gossip channel connect

dragosluca (Sat, 26 May 2018 12:33:35 GMT):
in docker-compose-base the property CORE_PEER_GOSSIP_BOOTSTRAP

dragosluca (Sat, 26 May 2018 12:33:49 GMT):
refers to another peer then current

dragosluca (Sat, 26 May 2018 12:34:13 GMT):
example: peer0 -> peer1 and the other way around

dragosluca (Sat, 26 May 2018 12:34:43 GMT):
in my initial setup i've try to setup to itself peer0 -> peer0

dragosluca (Sat, 26 May 2018 12:34:55 GMT):
but then the gossip errors start to show

rogermylife (Sat, 26 May 2018 12:39:28 GMT):
When I set just 1 peer, I commented those two lines, CORE_PEER_GOSSIP_BOOTSTRAP and CORE_PEER_GOSSIP_EXTERNALENDPOINT. And then it can be run without errors.

rjain0701 (Sat, 26 May 2018 13:21:42 GMT):
I am getting below error while creating Orderer container. Someone please provide the pointer 2018-05-26 13:06:02.277 UTC [common/channelconfig] LogSanityChecks -> DEBU 098 As expected, current configuration has policy '/Channel/Orderer/BlockValidation' 2018-05-26 13:06:02.278 UTC [orderer/commmon/multichannel] checkResourcesOrPanic -> CRIT 099 [channel testchainid] config requires unsupported orderer capabilities: Orderer capability V1_1 is required but not supported: Orderer capability V1_1 is required but not supported panic: [channel testchainid] config requires unsupported orderer capabilities: Orderer capability V1_1 is required but not supported: Orderer capability V1_1 is required but not supported

dragosluca (Sat, 26 May 2018 13:30:45 GMT):
@rogermylife thank you. i will try it

dragosluca (Sat, 26 May 2018 13:31:27 GMT):
@rjain0701 do you have the latest docker images ?

rjain0701 (Sat, 26 May 2018 13:36:57 GMT):
@dragosluca yes below are the images I have hyperledger/fabric-orderer latest 2fccc91736df 6 months ago 159MB hyperledger/fabric-orderer x86_64-1.1.0-preview 2fccc91736df 6 months ago 159MB

dragosluca (Sat, 26 May 2018 13:38:10 GMT):
looks like your images are too old

dragosluca (Sat, 26 May 2018 13:38:30 GMT):
hyperledger/fabric-orderer latest ce0c810df36a 2 months ago 180MB

rjain0701 (Sat, 26 May 2018 13:41:00 GMT):
@dragosluca Thanks Dragosluca.... I am new to hyperledger fabric. should i try with latest images? but my question is like It should work with previous V1.1 version

rjain0701 (Sat, 26 May 2018 13:41:00 GMT):
@dragosluca Thanks Dragosluca.... I am new to hyperledger fabric. should i try with latest images? but my question is like It should work with previous V1.1 version images

dragosluca (Sat, 26 May 2018 13:44:16 GMT):
yes, you need to use the latest images which work with Fabric 1.1

rjain0701 (Sat, 26 May 2018 13:44:52 GMT):
Thanks @dragosluca ... I will try

WarisAnsari (Sat, 26 May 2018 14:55:41 GMT):
Has joined the channel.

rjain0701 (Sat, 26 May 2018 19:04:19 GMT):
Thanks @dragosluca... Worked for me

rjain0701 (Sat, 26 May 2018 19:23:28 GMT):
Created channel from java SDK Channel newChannel = hfclient. newChannel("foo", anOrderer, channelConfiguration, channelConfig); In the docker container log channel created successfully Questions: 1. How can I get created channel? 2. How can I check list of existing channels from docker container ?

naveedh27 (Sat, 26 May 2018 21:28:10 GMT):
Has joined the channel.

HuAnsir (Sun, 27 May 2018 03:45:07 GMT):
Has joined the channel.

Shubham-koli (Sun, 27 May 2018 05:21:41 GMT):
Has joined the channel.

Shubham-koli (Sun, 27 May 2018 05:22:04 GMT):
`composer network install --card PeerAdmin@hlfv1 --archiveFile imedicoz@0.0.1.bna × Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed `

Shubham-koli (Sun, 27 May 2018 05:23:31 GMT):
I am trying to Deploy the Business Network Archive file on the Fabric I ran this command but I am getting this error has anybody faced this issue before? composer network install --card PeerAdmin@hlfv1 --archiveFile imedicoz@0.0.1.bna × Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed

mostaafa (Sun, 27 May 2018 07:31:30 GMT):
pass network mode and extra hosts to docker chaincode container? When run peer chaincode instantiate command I got an errors: From chaincode container: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer0.org1.acme.com on 8.8.8.8:53: no such host"; Reconnecting to {peer0.org1.app1.com:7052 } Peer: launchAndWaitForRegister failed: timeout expired while starting chaincode So I think if I could add hosts and network to chaincode container the issue will fix.

gravity (Sun, 27 May 2018 11:24:27 GMT):
Hello Does anybody know how to query a list of organization admins?

hussein.knight (Sun, 27 May 2018 11:48:24 GMT):
any one know to develop a mobile app that query from the ledger.

gravity (Sun, 27 May 2018 11:52:13 GMT):
https://jira.hyperledger.org/browse/FAB-6975 this issue still appears. tried to create a new channel via sdk and received exctly the same error

gravity (Sun, 27 May 2018 11:52:13 GMT):
https://jira.hyperledger.org/browse/FAB-6975 this issue still appears. tried to create a new channel and received exctly the same error

gravity (Sun, 27 May 2018 11:52:20 GMT):
any suggestions?

lsheks (Sun, 27 May 2018 12:20:16 GMT):
Has joined the channel.

lsheks (Sun, 27 May 2018 13:52:28 GMT):
I am getting an error using hyperledger composer saying that there is an timeout when connecting to the ChannelEventHub (the folks at #composer told me it is a fabric issue. I think my problem is that I am not specifying the right IP addresses in the composer card because the example chaincode from fabric does work. I am using docker swarm to connect between different computers and thus am unclear on which IPs to put in the composer cards for the peer event hubs etc. Should I put the ip of the machine on which the docker containers are running, the IP of the docker containers themselves, or perhaps just the name of the container? I have tried all of the above but none have worked....

amolpednekar (Sun, 27 May 2018 14:47:15 GMT):
Can anyone tell me why the newer Kafka, Zookeeper and CouchDB images are tagged 0.4.x and not 1.1.x ? Has the versioning system changed?

TechShadow (Sun, 27 May 2018 16:20:05 GMT):
Can anyone solve me in installing binaries, sample and Docker image. As i tried to install them using this command:curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

TechShadow (Sun, 27 May 2018 16:20:30 GMT):
Can anyone solve me in installing binaries, sample and Docker image. As i tried to install them using this command: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

TechShadow (Sun, 27 May 2018 16:21:35 GMT):
Can anyone solve me in installing binaries, sample and Docker image. As i tried to install them using this command: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 But I get error : permission denied..

TechShadow (Sun, 27 May 2018 16:21:49 GMT):
Can anyone solve me in installing binaries, sample and Docker image. As i tried to install them using this command: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 But I get error : permission denied..

TechShadow (Sun, 27 May 2018 16:22:30 GMT):
Can anyone solve me in installing binaries, sample and Docker image. As i tried to install them using this command: curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 But I get error : permission denied.. "I am using zorin 12 core"

lepar (Sun, 27 May 2018 16:52:13 GMT):
@TechShadow try using Sudo

lepar (Sun, 27 May 2018 16:52:24 GMT):
sudo curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

lepar (Sun, 27 May 2018 16:54:21 GMT):
If that doesn't work, then you have to give root access to docker 1. sudo groupadd docker 2. sudo usermod -aG docker $USER Restart your computer then try to install again

intelligentblock (Sun, 27 May 2018 18:33:08 GMT):
Has joined the channel.

cbf (Sun, 27 May 2018 19:21:06 GMT):
I would caution against using sudo... I would, instead, look at where you are in your directory tree. I would suggest running from the base of the directory in which you create your other repositories for development and testing.

cbf (Sun, 27 May 2018 19:21:35 GMT):
e.g. on my machine, I place all my project repos under ~/dev... others use ~/workspace etc.

cbf (Sun, 27 May 2018 19:21:35 GMT):
e.g. on my machine, I place all my project repos under ~/devothers use ~/workspace etc.

cbf (Sun, 27 May 2018 19:21:35 GMT):
e.g. on my machine, I place all my project repos under ~/dev

cbf (Sun, 27 May 2018 19:22:16 GMT):
others use ~/workspace etc.

cbf (Sun, 27 May 2018 19:22:48 GMT):
you are getting permission errors because the directory from which you are running the curl command is not writable for your user account

lepar (Sun, 27 May 2018 21:31:27 GMT):
@cbf I was having the same problem as him in the beginning and I've noticed that if docker doesn't have root access directly, then the installation fails because when fabric installs the images, then it doesn't go through because of that

Sairohithyanamala (Mon, 28 May 2018 02:59:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7KFgLZWaMpiJHPwPh) @shwetacse5 Hi, did you find a method for creating Fabric network setup on two virtual machines

ajmeraharsh (Mon, 28 May 2018 03:27:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DrD5DtKm5rW6FkzBW) @TechShadow agree with @cbf , using `sudo` isn't the optimized way. that maybe a workaround, but you might get more errors in the future.

anjalinaik (Mon, 28 May 2018 05:50:28 GMT):
HiI keep getting this error on invoke/query : Error from query = access denied: channel [mychan] creator org [ess] I haven't manually revoked any user certificates. May i please know what maybe going wrong?

anjalinaik (Mon, 28 May 2018 05:50:28 GMT):
Hi I keep getting this error on invoke/query : Error from query = access denied: channel [mychan] creator org [ess] I haven't manually revoked any user certificates. May i please know what maybe going wrong?

kshitiz_leo (Mon, 28 May 2018 05:55:55 GMT):
hello, _node invoke.js Store path:/Users/insurancenext/.hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: 6dc3e85d2a3d32016d3c9e61a72a4934b3b8581ce69ba8bbe1e18927730e9f11 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/Users/insurancenext/Desktop/fabricTest/fabric-samples/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/insurancenext/Desktop/fabricTest/fabric-samples/app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting..._ i'm getting this error while running invoke.js which is available in fabcar. i edited the request part according to requirements.

kshitiz_leo (Mon, 28 May 2018 05:56:50 GMT):
_*`var request = { //targets: let default to the peer assigned to the client chaincodeId: 'mycc01', fcn: 'update', args: ['1686','Kshitiz','Sharma','95858585','20101997','kshiti@sharma'], chainId: 'mychannel', txId: tx_id };`*_

tomtau (Mon, 28 May 2018 06:09:05 GMT):
Has joined the channel.

nihontech.321 (Mon, 28 May 2018 07:10:08 GMT):
Do help here, I am trying to set up Fabric Rest API SDK. Follow question on Stack overflow : https://stackoverflow.com/questions/50528822/hyperledger-fabric-rest-api-sdk-tests-are-all-failing

Unni_1994 (Mon, 28 May 2018 07:37:21 GMT):
Hi All ,, I have a doubt about the number of users in the crypto-config.yaml

Unni_1994 (Mon, 28 May 2018 07:37:25 GMT):
- Name: Org2 Domain: org2.example.com CA: Hostname: ca # implicitly ca.org1.example.com Template: Count: 2 SANS: - "localhost" Users: Count: 1

zjqpower (Mon, 28 May 2018 07:58:31 GMT):
Has joined the channel.

ajmeraharsh (Mon, 28 May 2018 08:16:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3HtjMh8ACjrXm5PKF) @Unni_1994 and the doubt is?

gravity (Mon, 28 May 2018 08:36:51 GMT):
Hi there How to check if user is a organization admin?

Unni_1994 (Mon, 28 May 2018 08:53:43 GMT):
@ajmeraharsh What does this users count stands for?

scobold (Mon, 28 May 2018 08:54:24 GMT):
Has joined the channel.

Sreekanth1234 (Mon, 28 May 2018 09:07:32 GMT):
Has joined the channel.

Sreekanth1234 (Mon, 28 May 2018 09:14:48 GMT):
hi, i have posted one question on StackOverFlow ... The link is https://stackoverflow.com/q/50553771/9354652?sem=2

Sreekanth1234 (Mon, 28 May 2018 09:15:15 GMT):
Help me guys .. I got stuck here since 2 days

Sreekanth1234 (Mon, 28 May 2018 09:15:15 GMT):
Help me guys .. I got stuck here from last 2 days

rogermylife (Mon, 28 May 2018 09:19:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pPxomKKZnFJp53F68) @Unni_1994 2 peers and 1 for user, 1 for admin. If I understand correctly, I begin with fabric just one month.

Unni_1994 (Mon, 28 May 2018 09:29:51 GMT):
By default there is a user like Admin@org1.example.com is there, What is the purpose of adding an additional user, That concept I didn't understand

MonnyClara (Mon, 28 May 2018 09:32:11 GMT):
@Unni_1994 I'm not really sure, but it might be related with the user that are enrolled in the org CA. (and then usefull for the SDK logging). Right @ajmeraharsh ?

HemanthPrabhu (Mon, 28 May 2018 09:42:39 GMT):
I got below error when registering user into CA server Error: Calling enrollment endpoint failed with error [Error: Parse Error] at ClientRequest. (/Users/hemanthk/Documents/hyperledger/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:711:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketOnData (_http_client.js:445:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:607:20)

SaswatRay (Mon, 28 May 2018 10:11:18 GMT):
Has joined the channel.

SaswatRay (Mon, 28 May 2018 10:11:42 GMT):
I want to track the time between one chaincode operation and another chaincode operation.Just like time based smart contract in hyperledger fabric.Can i get some help ?

majety.1 (Mon, 28 May 2018 10:14:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9rxfFoQCxbiaeanWC) @HemanthPrabhu you might not have ca container in your yaml files. please check it

HemanthPrabhu (Mon, 28 May 2018 10:55:32 GMT):
I have that

HemanthPrabhu (Mon, 28 May 2018 10:55:47 GMT):
there is container for that

gravity (Mon, 28 May 2018 11:03:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=snG9N6dgPY7aKLAXa) @HemanthPrabhu check if port for that container is exposed to the host machine

ajmeraharsh (Mon, 28 May 2018 11:18:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sS3LPXKD9KaXruitD) @MonnyClara that User.Count inside each Org is for standard users apart from the the Admin

ajmeraharsh (Mon, 28 May 2018 11:18:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sS3LPXKD9KaXruitD) @MonnyClara that `Users.Count` inside each Org is for standard users apart from the type Admin user. cc @Unni_1994

ajmeraharsh (Mon, 28 May 2018 11:18:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sS3LPXKD9KaXruitD) @MonnyClara that User.Count inside each Org is for standard users apart from the the Admin. cc @Unni_1994

ajmeraharsh (Mon, 28 May 2018 11:18:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sS3LPXKD9KaXruitD) @MonnyClara that `Users.Count` inside each Org is for standard users apart from the the Admin. cc @Unni_1994

gravity (Mon, 28 May 2018 11:23:15 GMT):
@ajmeraharsh Hi could you help me please? I stuck with the identity issue for 2 days. I'm trying to create new channel, but receiving error `This identity is not an admin`. How can I create an identity with role `Role.Admin` ? Thanks in advance

ajmeraharsh (Mon, 28 May 2018 11:25:28 GMT):
@gravity Can we have the full command and error you are getting?

gravity (Mon, 28 May 2018 11:38:35 GMT):
@ajmeraharsh sure I tried to create a channel via java sdk and directly on peer. Command to create a channel on peer: As the first step, I enrolled an admin: `fabric-ca-client enroll -d -u http://admin-defaultOrg:admin-defaultOrgpw@ica-defaultOrg:7054` and run the command: `peer channel create -c newchannel -f /data/newchannel.tx -o orderer1-defaultOrderer:7050` and the peer logs: ``` 2018-05-28 11:32:39.398 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-05-28 11:32:39.398 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-05-28 11:32:39.399 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2018-05-28 11:32:39.400 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2018-05-28 11:32:39.400 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2018-05-28 11:32:39.400 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2018-05-28 11:32:39.400 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2018-05-28 11:32:39.400 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0ADD080A12757461766944656661756C...53616D706C65436F6E736F727469756D 2018-05-28 11:32:39.400 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 843DF0AC55334EEC6ACE72ACC7D40C25E7EE403A9A10485204B66F49FC71124E 2018-05-28 11:32:39.400 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2018-05-28 11:32:39.400 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2018-05-28 11:32:39.401 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2018-05-28 11:32:39.401 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2018-05-28 11:32:39.401 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0A99090A1A08021A0608D7D1AFD80522...FCBDF58E0BB25DC551D88C1D62AB3A63 2018-05-28 11:32:39.401 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 9EE265328FCE31FA7A496CF4612A427E0255D085781D71129E5760201BCD8DD0 Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

gravity (Mon, 28 May 2018 11:38:57 GMT):
orderer logs: ``` orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [msp] SatisfiesPrincipal -> DEBU 937 Checking if identity satisfies ADMIN role for defaultOrgMSP orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [cauthdsl] func2 -> DEBU 938 0xc42012a810 identity 0 does not satisfy principal: This identity is not an admin orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [cauthdsl] func2 -> DEBU 939 0xc42012a810 principal evaluation fails orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [cauthdsl] func1 -> DEBU 93a 0xc42012a810 gate 1527507159423075010 evaluation fails orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [policies] Evaluate -> DEBU 93b Signature set did not satisfy policy /Channel/Application/defaultOrg/Admins orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [policies] Evaluate -> DEBU 93c == Done Evaluating *cauthdsl.policy Policy /Channel/Application/defaultOrg/Admins orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [policies] func1 -> DEBU 93d Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ defaultOrg.Admins ] orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [policies] Evaluate -> DEBU 93e Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [policies] Evaluate -> DEBU 93f == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [orderer/common/broadcast] Handle -> WARN 940 [channel: newchannel] Rejecting broadcast of config message from 172.18.0.12:47152 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining orderer1-defaultOrderer | 2018-05-28 11:32:39.423 UTC [orderer/common/server] func1 -> DEBU 941 Closing Broadcast stream orderer1-defaultOrderer | 2018-05-28 11:32:39.426 UTC [common/deliver] Handle -> WARN 942 Error reading from 172.18.0.12:47150: rpc error: code = Canceled desc = context canceled orderer1-defaultOrderer | 2018-05-28 11:32:39.426 UTC [orderer/common/server] func1 -> DEBU 943 Closing Deliver stream ```

gravity (Mon, 28 May 2018 11:39:07 GMT):
`admin-defaultOrg` has the next params: ``` { Name:admin-defaultOrg, Type:client, Affiliation:org1, Max Enrollments:-1, Attributes:[ { Name: hf.Registrar.Attributes Value: * ECert:false } { Name: hf.GenCRL Value:true ECert:false } { Name: admin Value:true ECert:true } { Name: hf.EnrollmentID Value: admin-defaultOrg ECert:true } { Name: hf.Type Value: client ECert:true } { Name: hf.Affiliation Value: org1 ECert:true } { Name: hf.Registrar.Roles Value:client, user ECert:false } { Name: hf.Revoker Value:true ECert:false } { Name: abac.init Value:true ECert:true } ] } ```

gravity (Mon, 28 May 2018 11:41:54 GMT):
@ajmeraharsh Also, when I tried to create a channel via java sdk, I enrolled `admin-defaultOrg` using intermediate-ca-server and when I send a request, it generates the same message in orderer logs

NihadOgresevic (Mon, 28 May 2018 11:49:32 GMT):
Guys, what is considered to be rich query? How can I make clear separation in order to avoid CouchDB phantom read?

NihadOgresevic (Mon, 28 May 2018 11:49:32 GMT):
Guys, what is considered to be rich query in case of CouchDB phantom read?

ajmeraharsh (Mon, 28 May 2018 11:55:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kg7YfwKNSySru7WxA) @gravity Did you try passing the `pem` file for orderer with this command `peer channel create -c newchannel -f /data/newchannel.tx -o orderer1-defaultOrderer:7050` ??

ajmeraharsh (Mon, 28 May 2018 11:55:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kg7YfwKNSySru7WxA) @gravity Did you try passing the `pem` file for orderer with this command `peer channel create -c newchannel -f /data/newchannel.tx -o orderer1-defaultOrderer:7050`

gravity (Mon, 28 May 2018 11:58:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KGjYgTy4D3Ehxd7tp) @ajmeraharsh yep, I tried this: `peer channel create -c newchannel -f /data/newchannel.tx -o orderer1-defaultOrderer:7050 --cafile /data/orgs/defaultOrderer/msp/admincerts/cert.pem`

ajmeraharsh (Mon, 28 May 2018 12:07:03 GMT):
@gravity Did you generate the crypto material multiple times? try a clean environment; if not, have to check where it is stuck from the logs manually

gravity (Mon, 28 May 2018 12:09:27 GMT):
@ajmeraharsh I picked up `fabric-ca` from fabric-samples and run the network. all cryptomaterials were generated by fabric-ca-server and nothing were generated by `cryptogen` tool.

Sreekanth1234 (Mon, 28 May 2018 12:27:43 GMT):
I want check docker-composer version.... What is the command of that?

lepar (Mon, 28 May 2018 12:48:52 GMT):
docker-compose --version

GoodSamaritan (Mon, 28 May 2018 13:13:01 GMT):
User User_1 added by GoodSamaritan.

goelmayank (Mon, 28 May 2018 13:13:41 GMT):
Hi Folks, while following a turoial to deploy a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations) here: https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org ,I am stuck in step 11 while running: composer network install —card PeerAdmin@byfn-network-org1 —archiveFile trade-network.bna The error I am getting is: Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Any idea as to how to get around these?

goelmayank (Mon, 28 May 2018 13:13:51 GMT):
One of the possible reasons that I came across on stackoverflow is that no peer node is running on docker. docker ps gives empty output

LAlejandroNG (Mon, 28 May 2018 13:14:39 GMT):
Has joined the channel.

gravity (Mon, 28 May 2018 14:05:45 GMT):
@ajmeraharsh Also, I've disabled TLS for this sample. Can this have such consequences?

gravity (Mon, 28 May 2018 14:51:16 GMT):
@jrosmith Hi Is it possible to enroll Admin identity using fabric-ca? As far as I know, one Admin identity is generated when we use `cryptogen` tool to generate crypto materials. But how to generate an Admin (who can create channels) using fabric-ca?

guangyingyuan (Mon, 28 May 2018 15:03:05 GMT):
Has joined the channel.

StephaneP (Mon, 28 May 2018 15:58:36 GMT):
Has joined the channel.

TechShadow (Mon, 28 May 2018 19:26:51 GMT):
@lepar I tried your steps but I get error : ==> FABRIC IMAGE: orderer Error response from daemon: manifest for hyperledger/fabric-orderer:i686-1.1.0 not found Error response from daemon: no such id: hyperledger/fabric-orderer:i686-1.1.0

phgurgel (Mon, 28 May 2018 21:17:30 GMT):
Hello guys, I just posted a question on stackoverflow. https://stackoverflow.com/questions/50571981/how-to-keep-a-digital-asset-in-hyperledger-fabric could someone kindly clarify what I'm missing ? :)

lepar (Mon, 28 May 2018 23:50:11 GMT):
@phgurgel If I understand correctly, you can have your chaincode from org2 check your balance on ledger 12 before you send the 40 to the other channel 23. Since it is more than you have, the transaction will be denied.

Sreekanth1234 (Tue, 29 May 2018 04:47:50 GMT):
@lepar " docker-compose --version " ? .. I think docker-composer right not compose ?

Sreekanth1234 (Tue, 29 May 2018 05:29:38 GMT):
hi, i have posted one question on StackOverFlow ... The link is https://stackoverflow.com/q/50553771/9354652?sem=2 Help me guys .. I got stuck here from last 2 days

Sreekanth1234 (Tue, 29 May 2018 05:29:38 GMT):
hi, i have posted one question on StackOverFlow ... The link is https://stackoverflow.com/q/50553771/9354652?sem=2 Help me guys .. I got stuck here from last 4 days

kshitiz_leo (Tue, 29 May 2018 05:55:12 GMT):
Hello everyone.. I am trying to test my chaincode in docker-dev-mode

kshitiz_leo (Tue, 29 May 2018 05:55:33 GMT):
But I am getting this error while trying to update the error

kshitiz_leo (Tue, 29 May 2018 05:56:00 GMT):
_Error endorsing invoke: rpc error: code = Unknown desc = error executing chaincode: failed to init chaincode: handler not found for chaincode pcc:0 - _

kshitiz_leo (Tue, 29 May 2018 05:56:11 GMT):
Please Help me with this

AmitMittal (Tue, 29 May 2018 07:06:44 GMT):
Has joined the channel.

AmitMittal (Tue, 29 May 2018 07:07:02 GMT):
How to manage identity of user using rest api

suryasuresh06 (Tue, 29 May 2018 07:28:50 GMT):
Has joined the channel.

suryasuresh06 (Tue, 29 May 2018 07:31:59 GMT):
Hi everyone. I had a small doubt abt security in Hyperledger. So my understanding of Fabric is that - Each peer installs a local copy of Fabric, thus creating their own ledger and chaincode. But to update or query, they need to use the Fabric SDK's (API's). So is there any risk of someone in the Hyperledger organization getting access to the organisations's data through these SDK's. I want to know if it is theoretically possible.

suryasuresh06 (Tue, 29 May 2018 07:31:59 GMT):
Hi everyone. I had a small doubt abt security in Hyperledger. So my understanding of Fabric is that - Each peer installs a local copy of Fabric, thus creating their own ledger and chaincode. But to update or query, they need to use the Fabric SDK's (API's). So is there any risk of someone in the Hyperledger organization getting access to the organisations's data through these SDK's. I want to know if it is theoretically possible.

xuzhongxing (Tue, 29 May 2018 08:01:30 GMT):
Has joined the channel.

xuzhongxing (Tue, 29 May 2018 08:01:34 GMT):
hello. Where is the env variable CORE_PEER_ADDRESS used in the peer source code? I grep'ed the source tree but with no luck.

bestwzg (Tue, 29 May 2018 08:05:55 GMT):
Has joined the channel.

yacovm (Tue, 29 May 2018 08:06:53 GMT):
grep for `peer.address`, @xuzhongxing

yacovm (Tue, 29 May 2018 08:07:07 GMT):
it's used in too many places :(

bestwzg (Tue, 29 May 2018 08:07:26 GMT):
Hello,I got the folowing error when I run "make peer" . What's problem?

bestwzg (Tue, 29 May 2018 08:07:32 GMT):
# github.com/hyperledger/fabric/vendor/github.com/docker/docker/pkg/archive vendor/github.com/docker/docker/pkg/archive/archive.go:364:5: hdr.Format undefined (type *tar.Header has no field or method Format) vendor/github.com/docker/docker/pkg/archive/archive.go:364:15: undefined: tar.FormatPAX vendor/github.com/docker/docker/pkg/archive/archive.go:1166:7: hdr.Format undefined (type *tar.Header has no field or method Format)

yacovm (Tue, 29 May 2018 08:07:51 GMT):
@bestwzg - golang version should be 1.10

bestwzg (Tue, 29 May 2018 08:08:40 GMT):
OK, Thanks. But why the doc says that 1.6+ should be OK. :(

yacovm (Tue, 29 May 2018 08:08:48 GMT):
what?!?!

yacovm (Tue, 29 May 2018 08:08:51 GMT):
where?

xuzhongxing (Tue, 29 May 2018 08:10:25 GMT):
How is that env var converted to peer.address?

yacovm (Tue, 29 May 2018 08:11:14 GMT):
@xuzhongxing - the viper utility takes `CORE` and replaces it with an empty string. then, every word is `UPPERCASED`

yacovm (Tue, 29 May 2018 08:11:47 GMT):
read https://github.com/spf13/viper

xuzhongxing (Tue, 29 May 2018 08:12:05 GMT):
ah, viper processes the env vars

yacovm (Tue, 29 May 2018 08:12:22 GMT):
yes

xuzhongxing (Tue, 29 May 2018 08:12:28 GMT):
thanks

bestwzg (Tue, 29 May 2018 08:14:20 GMT):
@yacovm Thanks. It's my fault. I used an old version.

xuzhongxing (Tue, 29 May 2018 08:47:14 GMT):
In the byfn example, when installing the chaincode on the cli container, the chaincode is a single chaincode_example02.go file. It imports shim and other packages. Where is the shim package? I didn't find it on the cli node. Nor on the peer node.

AmitMittal (Tue, 29 May 2018 09:00:08 GMT):
hi , could any plz help . how to create identity using rest server

AmitMittal (Tue, 29 May 2018 09:00:08 GMT):
hi , could any one plz help . how to create identity using rest server

AmitMittal (Tue, 29 May 2018 09:00:08 GMT):
hi , could any one plz help me to let know how to create identity using rest server

xuzhongxing (Tue, 29 May 2018 09:35:27 GMT):
Is it built by docker on image fabric-ccenv?

Syders (Tue, 29 May 2018 09:41:04 GMT):
Hi everyone ! I have some problems to install my nodeJS chaincode. I have this stacktrace

Syders (Tue, 29 May 2018 09:41:09 GMT):

Clipboard - May 29, 2018 11:41 AM

Syders (Tue, 29 May 2018 09:41:31 GMT):
Have you some suggestions about this error ?

unhappydepig (Tue, 29 May 2018 09:43:19 GMT):
Has joined the channel.

jrosmith (Tue, 29 May 2018 10:01:35 GMT):
@gravity it sounds like it should be another role or attribute that the user has. if the bootstrapped admin enrolls that new admin it should theoretically be able to pass those permissions on. have you tried #fabric-ca ?

SaswatRay (Tue, 29 May 2018 10:03:01 GMT):
I want to track the time between one chaincode operation and another chaincode operation.Just like time based smart contract in hyperledger fabric.Can i get some help ?

gravity (Tue, 29 May 2018 10:20:03 GMT):
@jrosmith Yep, I've tried. Actually, admin user for an organization is a completely different entity in comparison to admin enrolled by fabric-ca. If I enroll an admin with an attribute (admin: true:ecert), this user cannot create a channel. But if I take a private key and a cert file from `/admin/msp/signcerts` and put it into enrollment object, everything is ok.

jrosmith (Tue, 29 May 2018 10:23:34 GMT):
@gravity does that solve your problem? i guess it makes sense, that user will then have the bootstrapped admin signing identity

jrosmith (Tue, 29 May 2018 10:23:54 GMT):
@Syders you were not able to communicate with the peer

gravity (Tue, 29 May 2018 10:25:12 GMT):
@jrosmith yep, it does. but there is one more question: can we bootstrap one more Admin identity to perform admin actions (create channels, install chaincodes etc.)?

jrosmith (Tue, 29 May 2018 10:28:42 GMT):
@gravity unfortunately i have no idea haha, the ca maintainers would definitely have the answers to that

SergioTorres (Tue, 29 May 2018 10:43:18 GMT):
anyone have problems when upgrade the version of chaincode with cli and keep going use node sdk???

SergioTorres (Tue, 29 May 2018 10:44:52 GMT):
the output says: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: cannot retrieve package for chaincode mychaincode/2.2, error open /var/hyperledger/production/chaincodes/mychaincode.2.2: no such file or directory

ravijaviya (Tue, 29 May 2018 10:52:09 GMT):
Has joined the channel.

gravity (Tue, 29 May 2018 11:17:12 GMT):
@jrosmith thanks :)

suryasuresh06 (Tue, 29 May 2018 11:25:03 GMT):
Hey can someone explain the difference between peers and organisations. Thanks

hyperlearner (Tue, 29 May 2018 11:40:25 GMT):
In HL fabric v1.0, how do I initially trigger an event in go chaincode and capture that in app.js ? #fabric-questions

lepar (Tue, 29 May 2018 11:49:34 GMT):
@Sreekanth1234 no, it's docker-compose

Syders (Tue, 29 May 2018 12:17:01 GMT):
@jrosmith thanks for your response but I don't understand why I can't communicate with that peer

Syders (Tue, 29 May 2018 12:17:26 GMT):
Is it a problem with network config ?

erhankeseli (Tue, 29 May 2018 12:20:26 GMT):
Has joined the channel.

erhankeseli (Tue, 29 May 2018 12:20:38 GMT):
Hello all! Is there a good and clean document to install fabric? I found lots of documents, web sites but they are not complete

AmitMittal (Tue, 29 May 2018 12:23:53 GMT):
Hi , could any 1 share how to create user identity using only rest server api

Sreekanth1234 (Tue, 29 May 2018 12:24:37 GMT):
@lepar ok dude

phgurgel (Tue, 29 May 2018 12:29:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hHYCZEC6nWKoT8z2d) @lepar hey lepar, thanks for the answer. But the chaincode as far as I understood, is deployed on channels. It's not on org2, but on c12 or c23. Is it possible for a chaincode to access data of ledgers in other channels?

phgurgel (Tue, 29 May 2018 12:29:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hHYCZEC6nWKoT8z2d) @lepar hey lepar, thanks for the answer. But the chaincode as far as I understood, is deployed on channels. It's not on org2, but on c12 or c23. Is it possible for a chaincode to access data of ledgers of other channels?

phgurgel (Tue, 29 May 2018 12:32:07 GMT):
this does not appears to be good if I'm thinking to have channels with a big number of connections

lepar (Tue, 29 May 2018 12:45:44 GMT):
@phgurgel Chaincode is only able to query data from other channels that was not instantiated in that channel. Chaincodes are installed on peers and instantiated on channels. They must be installed on all peers that will make part of that channel.

phgurgel (Tue, 29 May 2018 12:49:59 GMT):
Hmmm, thanks @lepar I will work over this and try to implement it :)

lepar (Tue, 29 May 2018 12:53:42 GMT):
Let me know if it works out

majety.1 (Tue, 29 May 2018 13:01:51 GMT):
hello, i have 2 chaincodes which needed to be installed on two peers of different organizations(peer0.ORG1 , peer0.ORG2) which are connected through a channel (mychannel). i installed on on ORG1 peer. and now, i want to install the other on ORG2's peer. how can I achieve that. Thanks in advance.

lepar (Tue, 29 May 2018 13:09:24 GMT):
@majety.1 You can install it with the following command: peer chaincode install .... Take a look at this http://hyperledger-fabric.readthedocs.io/en/release-1.1/commands/peerchaincode.html

adokce (Tue, 29 May 2018 13:15:09 GMT):
i have a little bit more general question: when considering building fabric-based dlt, is it possible to deliver full application using just Hyperledger Composer. Is the Composer meant only for quick PoC or full business solution. And is the javascript in Composer what is meant by node chaincode?

adokce (Tue, 29 May 2018 13:15:09 GMT):
i have a little bit more general question: when considering building fabric-based dlt, is it possible to deliver full application using just Hyperledger Composer. Is the Composer meant only for quick PoC or full business solution. And is the javascript in Composer node chaincode?

andyXJZ 1 (Tue, 29 May 2018 14:02:41 GMT):
Has joined the channel.

andyXJZ 1 (Tue, 29 May 2018 14:07:04 GMT):
Hallo, guys, We are struggling with the setup for our production environment. if there is a restart/restore mechanism with fabric across organizations in place yet?

andyXJZ 1 (Tue, 29 May 2018 14:07:48 GMT):
We have two organization (two peers for each org) and one orderer

ajmeraharsh (Tue, 29 May 2018 14:07:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7qks49zKLDDhmutp8) @andyXJZ 1 you will have to build one

andyXJZ 1 (Tue, 29 May 2018 14:08:23 GMT):
Hi, ThoughtChimp, thanks for your quick reply. so it is confusing

andyXJZ 1 (Tue, 29 May 2018 14:08:47 GMT):
does it mean we need to make ledger backup manually ?

ajmeraharsh (Tue, 29 May 2018 14:08:53 GMT):
@andyXJZ 1 are you using any custom script for creating the network? or hyperledger provided scripts?

andyXJZ 1 (Tue, 29 May 2018 14:09:28 GMT):
we have hacked the fabric-sample/balance-network for our setup

erhankeseli (Tue, 29 May 2018 14:10:31 GMT):
ok is there a good documentation for it? I want to install and run it. But without sample apps

andyXJZ 1 (Tue, 29 May 2018 14:11:34 GMT):
the endorsement policy is 'OR {Org1.peer, Org2.peer}, which means it works with one peer from any org

andyXJZ 1 (Tue, 29 May 2018 14:13:05 GMT):
While what happens if one server goes down

andyXJZ 1 (Tue, 29 May 2018 14:13:42 GMT):
everything will be automatically updated ?

ajmeraharsh (Tue, 29 May 2018 14:13:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X99G7akuGzZ3T88Wk) @adokce *IMO* Composer is more for PoC purpose and not production.

ajmeraharsh (Tue, 29 May 2018 14:14:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u6pexA2vtRcagt6Bu) @andyXJZ 1 you need to have alerts for that, docker containers should be set to `always run`.

andyXJZ 1 (Tue, 29 May 2018 14:15:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5FRKEHWXrMD3AwPBL) @erhankeseli there is a README there

ajmeraharsh (Tue, 29 May 2018 14:16:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=okSa5ov94m9PHKFm6) @andyXJZ 1 you can fetch the latest block from the channel and join a new peer/Org

erhankeseli (Tue, 29 May 2018 14:17:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7miyGLnPyHHvFgTdH) @andyXJZ 1 there?

andyXJZ 1 (Tue, 29 May 2018 14:20:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wd2cX79nxjBqfCePo) @ajmeraharsh so it means with a power-off or a robbery, we just copy the latest state from another server and join a new peer with what have been copied

andyXJZ 1 (Tue, 29 May 2018 14:22:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6XRMAhY8di3uxh2Rg) thanks :D

AlbertoCarmona (Tue, 29 May 2018 15:21:09 GMT):
Hello! Is there any tutorial to build a network in multiple hosts?

fabianpo (Tue, 29 May 2018 15:24:06 GMT):
Has joined the channel.

venedara (Tue, 29 May 2018 16:24:45 GMT):
Has joined the channel.

venedara (Tue, 29 May 2018 16:25:04 GMT):
Hi Want to know what is exact difference between Hyperledger Fabric and Hyper ledger composer, Can some one please provide some detailed explanation to avoid my confusions........ Thanks in Advance

venedara (Tue, 29 May 2018 16:25:45 GMT):
I know one is framework and other is module but want to know is their any inter connection between both

AmitMittal (Tue, 29 May 2018 16:41:02 GMT):
Hi , can any plz tell why while creating asset the api doest shown in composer-rest-server

umtyzc (Tue, 29 May 2018 17:19:55 GMT):
Hi, Look at this. https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/ @venedara [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6NCLqrvjSydEPdpSx)

umtyzc (Tue, 29 May 2018 17:24:12 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f @AlbertoCarmona [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wPmnhLcAKsBd9Pnps)

umtyzc (Tue, 29 May 2018 17:28:11 GMT):
https://medium.com/@serkanerkan/hyperledger-fabric-kurulumu-ubuntu-16-04-lte-virtualbox-664625af6bfa @erhankeseli [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5FRKEHWXrMD3AwPBL)

JohnnyMacdougall (Tue, 29 May 2018 17:40:02 GMT):
Has joined the channel.

JohnnyMacdougall (Tue, 29 May 2018 17:42:56 GMT):
@venedara with composer you build on top of a fabric network...so you create a model file, a transaction processing file that contains the logic, and you may have a query file with state queries...and also an acl access control file. then that installs as chaincode to fabric peer

JohnnyMacdougall (Tue, 29 May 2018 17:43:38 GMT):
its kind of like a framework for easily developing chain code, which includes a rest server, and a testing environment

JohnnyMacdougall (Tue, 29 May 2018 17:45:13 GMT):
imo its great for prototyping really quickly

JohnnyMacdougall (Tue, 29 May 2018 17:46:46 GMT):
however, the transactions file with all the logic supports javascript only...which means you cannot import libraries yet...so you may want to use fabric chaincode if you wish to use libraries, define your own registry structure, or layout

JohnnyMacdougall (Tue, 29 May 2018 17:47:02 GMT):
also post requests may not work yet from the transactions file

JohnnyMacdougall (Tue, 29 May 2018 17:47:57 GMT):
you get a bunch of tools for free with composer, but you are also limited by what composer supports vs running free with fabric chaincode directly

issac_koshy (Tue, 29 May 2018 18:11:20 GMT):
Has joined the channel.

siddareddy (Tue, 29 May 2018 18:42:51 GMT):
Has joined the channel.

hamptonsmith (Tue, 29 May 2018 20:03:02 GMT):
Is some quorum of orderers required to be available, or do the high-availability properties of Fabric inherit entirely from Kafka? Is one orderer and one endorser enough for a network to limp along regardless of how many orderers/endorsers there are "supposed to be"?

dragosluca (Tue, 29 May 2018 20:33:40 GMT):
Hi all, i have an unusual situation

dragosluca (Tue, 29 May 2018 20:34:14 GMT):
i am using a local docker setup based on byfn

dragosluca (Tue, 29 May 2018 20:34:31 GMT):
i have installed a nodejs chaincode

dragosluca (Tue, 29 May 2018 20:34:49 GMT):
and from 2 business methods it can find only one

dragosluca (Tue, 29 May 2018 20:35:11 GMT):
i've completely remove all the docker volumes

dragosluca (Tue, 29 May 2018 20:35:15 GMT):
and restarted everything

dragosluca (Tue, 29 May 2018 20:35:22 GMT):
i even renamed the not found method

dragosluca (Tue, 29 May 2018 20:35:54 GMT):
but still seems i can not find the method in the chaincode during invoke

dragosluca (Tue, 29 May 2018 20:37:11 GMT):
i've tried to clean up everything and to start from scratch but still i have the same issue

dragosluca (Tue, 29 May 2018 20:37:28 GMT):
the only thing which i didn't try is to rename the chaincode

dragosluca (Tue, 29 May 2018 20:37:47 GMT):
any ideas what is happening ?

rogerwilcos (Tue, 29 May 2018 21:32:55 GMT):
Has joined the channel.

karmicway (Tue, 29 May 2018 21:41:37 GMT):
Has joined the channel.

dragosluca (Tue, 29 May 2018 22:03:19 GMT):
for everybody who is reading the chat

dragosluca (Tue, 29 May 2018 22:03:27 GMT):
the issue was with docker persistence

dragosluca (Tue, 29 May 2018 22:03:30 GMT):
see http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#a-note-on-data-persistence

dragosluca (Tue, 29 May 2018 22:03:49 GMT):
the chaincode container needs to be removed

dragosluca (Tue, 29 May 2018 22:03:50 GMT):
:)

wkwkhautbois (Tue, 29 May 2018 22:39:30 GMT):
Has joined the channel.

jrosmith (Wed, 30 May 2018 03:17:50 GMT):
@Syders there is literally no way i can answer that question based on the context of your error, you're going to have to check all your network settings and certs yourself

jrosmith (Wed, 30 May 2018 03:18:51 GMT):
@erhankeseli the [1.1 release docs](http://hyperledger-fabric.readthedocs.io/en/release-1.1/getting_started.html) are pretty comprehensive

jrosmith (Wed, 30 May 2018 03:19:32 GMT):
@adokce #composer would have the best information for you

Prakriti_Tiwari (Wed, 30 May 2018 04:23:26 GMT):
Has joined the channel.

Prakriti_Tiwari (Wed, 30 May 2018 04:26:50 GMT):
How do i create the first block under participants through smart contracts?

majety.1 (Wed, 30 May 2018 04:51:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fAmYaYxhGxZzMdMn7) @lepar i'm in a bit of confusion right now, when i'm executing the peer install chaincode, which organizations peer am I using??

jrosmith (Wed, 30 May 2018 04:55:10 GMT):
@majety.1 each peer needs its own instance of the chaincode running, you must run the install command on each peer of each organization. since they are all members of the same channel you only need to instantiate the chaincode once. install is per peer, instantiate is per channel.

AmitMittal (Wed, 30 May 2018 05:07:01 GMT):
hi , can any one plz help me.. my assests doest show up in composer-rest-server api.. its working fine in playground

jrosmith (Wed, 30 May 2018 05:07:29 GMT):
@AmitMittal #composer would be best for help

AmitMittal (Wed, 30 May 2018 05:07:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5ffhSQnfoQvRWsFDN) @jrosmith thanks

hyperlearner (Wed, 30 May 2018 05:28:09 GMT):
How do I trigger an event from chaincode and capture it in API layer? I want only one peer to be registered to get these events.

midhun14 (Wed, 30 May 2018 05:55:57 GMT):
Has joined the channel.

midhun14 (Wed, 30 May 2018 05:58:47 GMT):
how to handle event raised using stub.SetEvent in an API

jrosmith (Wed, 30 May 2018 06:06:44 GMT):
@midhun14 something needs to be listening for that chaincode event. try asking in the sdk channel of whichever sdk you use

kshitiz_leo (Wed, 30 May 2018 06:06:45 GMT):
hello, i'm creating my own network using byfn example, and while creating an cli for second ORG, i have given some modifications in my yaml file as shown below. _`cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com #- peer1.org1.example.com - peer0.org2.example.com #- peer1.org2.example.com networks: - byfn cli1: container_name: cli1 image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org2.example.com:7051 - CORE_PEER_LOCALMSPID=Org2MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com #- peer1.org1.example.com - peer0.org2.example.com #- peer1.org2.example.com networks: - byfn `_ after executing the dockercompose yaml up followed by docker exec cli1 bash commands, i just typed `peer --help` , which resulted in this error given below Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp folder it would be a lot helpful if someone points me where i'm going wrong. thanks in advance

ahmadzafar (Wed, 30 May 2018 06:44:32 GMT):
To add a new peer in Hyperledger Fabric I am using following command peer = client.newPeer('grpcs://localhost:7051') getting following error PEM encoded certificate is required Please help!

pathfinder2104 (Wed, 30 May 2018 07:01:38 GMT):
Hi all

pathfinder2104 (Wed, 30 May 2018 07:01:54 GMT):
Can anyone tell in which language Fabric it self is written ?

MonnyClara (Wed, 30 May 2018 07:09:25 GMT):
@pathfinder2104 It's written in Golang. You just can go here and check by yourself https://github.com/hyperledger

pathfinder2104 (Wed, 30 May 2018 07:10:04 GMT):
Why did they choose GoLang?

pathfinder2104 (Wed, 30 May 2018 07:10:52 GMT):
Any particular reasons?

vudathasaiomkar (Wed, 30 May 2018 07:21:12 GMT):
Hi all , Does fabric supports runtime access control as that of permission.acl in composer

vudathasaiomkar (Wed, 30 May 2018 07:21:12 GMT):
Hi all , Does fabric (using Go lang ) supports runtime access control as that of permission.acl in composer

MonnyClara (Wed, 30 May 2018 07:24:06 GMT):
@pathfinder2104 Cross-plateform, speed, scalibility ... I

pathfinder2104 (Wed, 30 May 2018 07:24:34 GMT):
cool :+1:

pathfinder2104 (Wed, 30 May 2018 07:24:52 GMT):
but why not JavaScript then? As the composer is written in JavaScript

pathfinder2104 (Wed, 30 May 2018 07:25:46 GMT):
@MonnyClara is it possible that I develop my blockchain app without using composer but I can write my chaincode in JavaScript ?

Malay_Peaas (Wed, 30 May 2018 07:26:29 GMT):
Has joined the channel.

MonnyClara (Wed, 30 May 2018 07:28:29 GMT):
@pathfinder2104 Composer in based in Javascript, it uses Fabric. So the question can be asked the other way ;) Yeah sure it's possible

pathfinder2104 (Wed, 30 May 2018 07:32:29 GMT):
@MonnyClara :smiley: yes agree, but I see no concrete reasons for using go. Can you please explain more ?

jrosmith (Wed, 30 May 2018 07:36:45 GMT):
@pathfinder2104 go does a really good job with high concurrency (which comes into play when peers validate transactions), compiles to binary (easy to release peer/orderer/ca images), and plays very nicely with protobufs (explicitly defined message structures between services that are small and fast to encode/decode). not to mention go is a new and shiny language.

pathfinder2104 (Wed, 30 May 2018 07:38:07 GMT):
@jrosmith thanks

RealDeanZhao (Wed, 30 May 2018 07:41:33 GMT):
Has joined the channel.

Shubham-koli (Wed, 30 May 2018 08:05:38 GMT):
https://imgur.com/a/HmghgEv I want to store the result of our query in one of the assets that we generated called "patientInsurances", here our query executes succesfully but does not stores the result anywhere. So what is the technique to store the result of our query in an asset?

jrosmith (Wed, 30 May 2018 08:07:27 GMT):
@Shubham-koli #composer will be best for getting an answer

Shubham-koli (Wed, 30 May 2018 08:07:54 GMT):
Thank YOu

Unni_1994 (Wed, 30 May 2018 08:39:19 GMT):
Hi all , Is there is any document regarding setting up the Orderer,CA and peers in multiple vm

Unni_1994 (Wed, 30 May 2018 08:39:35 GMT):
mutiple vm

ashsek (Wed, 30 May 2018 08:41:20 GMT):
Has joined the channel.

RamuBalachandran (Wed, 30 May 2018 08:58:39 GMT):
Has joined the channel.

RamuBalachandran (Wed, 30 May 2018 08:58:50 GMT):
I am relatively new to HL fabric,I am trying to set up an HLF network in different VMs.Planning to start with setting up an ordering service using kafka and zookeeper clustor. Any reference documents for setting up HLF ntw in production environment ?

RamuBalachandran (Wed, 30 May 2018 08:58:50 GMT):
HI All,I am relatively new to HL fabric,I am trying to set up an HLF network in different VMs.Planning to start with setting up an ordering service using kafka and zookeeper clustor. Any reference documents for setting up HLF ntw in production environment ?

alejandrolr (Wed, 30 May 2018 09:37:40 GMT):
Has joined the channel.

Sairohithyanamala (Wed, 30 May 2018 09:50:01 GMT):
I want to build a network where a transaction is committed to the ledger on approval by a authorised personnel, is it possible in hyperledger fabric? Please help

Sairohithyanamala (Wed, 30 May 2018 09:53:24 GMT):
How to make a transaction between two parties be private between them and not visible in the entire Blockchain network

jrosmith (Wed, 30 May 2018 10:26:12 GMT):
@Sairohithyanamala yes, that can be done with fabric, either through an endorsement policy or an intermediate state and using permissions at the chaincode level. private transactions are slated for the 1.2 release.

suryasuresh06 (Wed, 30 May 2018 10:39:54 GMT):
Is the Certificate Authority server hosted locally on a node's device. Or is it a central server

VigneshkumarChinnachamy (Wed, 30 May 2018 10:49:42 GMT):
Has joined the channel.

VigneshkumarChinnachamy (Wed, 30 May 2018 10:50:01 GMT):
Hi, is there any tutorial for setting up fabric network with mutual tls?

AlexanderZhovnuvaty (Wed, 30 May 2018 11:38:06 GMT):
Has joined the channel.

szytko (Wed, 30 May 2018 11:49:33 GMT):
Has joined the channel.

akoenig (Wed, 30 May 2018 12:00:46 GMT):
Has joined the channel.

akoenig (Wed, 30 May 2018 12:06:19 GMT):
Hi, I have a method in the chaincode which should only be allowed to executed by one organization of the network. But the other organizations have to accept that the one organization has executed this method. What is the best pratices for this? Give the organisation as argument to the chaincode and check the name? Or this there a more generic way? Thanks in advance

buridiaditya (Wed, 30 May 2018 12:42:11 GMT):
How is the state request gossip i.e by calling `RequestBlocksInRange` different from the pull-based gossip which uses pull engine??

CorentinPacaud (Wed, 30 May 2018 12:45:30 GMT):
Hi, I have an architecture of 4 peers. When I log a user, only 1 peer reacts and the loggin succeed. Why does only 1 peer react ?

vick (Wed, 30 May 2018 13:10:20 GMT):
@akoenig as far as i know, this is the kind of rules you should be enforcing using the endorsement policy, so please ready up on that and see if it provides any clarity

vick (Wed, 30 May 2018 13:10:42 GMT):
@akoenig http://hyperledger-fabric.readthedocs.io/en/release-1.1/endorsement-policies.html

vick (Wed, 30 May 2018 13:11:52 GMT):
@suryasuresh06 the certificate authority is made up of two components, a client and a server, the server holds all the information for whom you are enrolling and registering with the CA and is responsible for issuing out the relevant certificates and keys

vick (Wed, 30 May 2018 13:12:30 GMT):
@suryasuresh06 the client communicates with the server you can have a ca running locally in a docker container but don't think this is advised way for production

vick (Wed, 30 May 2018 13:13:37 GMT):
@jrosmith @Sairohithyanamala i thought the way to achieve this was to create a channel only containing the participants who should know about the transaction, or have i misunderstood the question?

liushengxi13689209566 (Wed, 30 May 2018 13:13:47 GMT):
Has joined the channel.

liushengxi13689209566 (Wed, 30 May 2018 13:14:05 GMT):
Hello everyone !! I think the question that I would to ask may be very easy for you , but for me now, it is the most difficult to solve. I don't solve it many days !!! I hope you can be more inclusive . Question: The following problems are encountered in running first-Network: ----------------------------------------------------------------------------------------------------------- # root @ izwz92e8zcq06jaehrcthlz in /opt/gopath/src/github.com/hyperledger/fabric-samples/first-network on git:v1.0.0 o [21:05:53] $ ./byfn.sh generate Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /opt/gopath/src/github.com/hyperledger/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /opt/gopath/src/github.com/hyperledger/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2018-05-30 21:06:17.950 CST [common/configtx/tool] main -> INFO 001 Loading configuration 2018-05-30 21:06:18.044 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 4 error(s) decoding: * '' has invalid keys: capabilities * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities + res=1 + set +x Failed to generate orderer genesis block... ----------------------------------------------------------------------------------------------------------- I hope to get a reply. Thank you very much.

akoenig (Wed, 30 May 2018 13:15:17 GMT):
@vick i have read the documentation about the endorsment. But it is not clear, because i want that ALL organizations have to accept that the allowed organization execute this method. So if i only use the one organization in the endorsment the other organizations can't accept it, right?

akoenig (Wed, 30 May 2018 13:15:30 GMT):
so thats why i thought about to handle it IN the chaincode

vick (Wed, 30 May 2018 13:15:59 GMT):
@liushengxi13689209566 i think you are running different versions of the configtxgen tool against a different file. the section called 'capabilities' i think is only released recently. You can try to change your config file and remove this extra section or find the correct file corresponding to the version of the tool you are running

liushengxi13689209566 (Wed, 30 May 2018 13:24:51 GMT):
@vick You meanings the Binary files of the platform is different from the fabric's version ? so I should to chang them ?right?

vick (Wed, 30 May 2018 13:25:36 GMT):
@liushengxi13689209566 yes check the version of configtxgen and check what version is written in the top of your config file

apaparazzi0329 (Wed, 30 May 2018 14:03:56 GMT):
Has joined the channel.

cnusri (Wed, 30 May 2018 14:05:31 GMT):
Has joined the channel.

cnusri (Wed, 30 May 2018 14:27:43 GMT):
the latest build of FABRIC CA v 1.1 from git is resulting in 'panic: Version is not set for fabric-ca library'. I noticed there is an active issue in hyperledger community.. anyone managed to build CA recently

negupta (Wed, 30 May 2018 14:52:17 GMT):
Is there a way to checkpoint the ledger and transaction data in fabric and migrate it to a new chain? For instance you need migrate a channel to a new network?

vdelbar (Wed, 30 May 2018 15:34:30 GMT):
Has joined the channel.

MarceloAzevedo (Wed, 30 May 2018 16:32:46 GMT):
hello guys! From the documentation, I got the following part: At the genesis of the system, verification parameters of all the MSPs that appear in the network need to be specified, and included in the system channel’s genesis block. Let's suppose I need to bring up a new organization with its own peers and clients and with its MSP. Do I need to restart the whole network?

vick (Wed, 30 May 2018 17:08:42 GMT):
what ide is the community using for fabric source code?

rbole (Wed, 30 May 2018 17:25:27 GMT):
Hi, I would like to ask one question about the ledger and block verification. Is there a verification for the previous block hash implemented and if yes where can I find it in the source-code or documentation?

vick (Wed, 30 May 2018 17:47:13 GMT):
@rbole what do you mean by verification of the previous hash?

vick (Wed, 30 May 2018 17:48:01 GMT):
guys, this command to build fabric source code; `cd $GOPATH/src/github.com/hyperledger/fabric` `make dist-clean all` do you know if this includes debug symbols? it would appear that it doesn't

rbole (Wed, 30 May 2018 17:54:14 GMT):
@vick I try understand how fabric ensures the integrity of the blockchain to avoid manipulation!

vick (Wed, 30 May 2018 17:54:41 GMT):
ok ... so the hash of the previous block goes in to the next one @rbole

vick (Wed, 30 May 2018 17:54:50 GMT):
that's what i basically know at the moment ...

vick (Wed, 30 May 2018 17:55:04 GMT):
and when the hash for the new one is generated it includes the hash of the previous one

rbole (Wed, 30 May 2018 17:59:27 GMT):
and what happens if I change the hash later? @vick Is there routine to check this ?

vick (Wed, 30 May 2018 18:00:05 GMT):
checkout blockwriter.go in the fabric source code @rbole what are you presuming to change later? which hash? the block hash?

vick (Wed, 30 May 2018 18:01:33 GMT):
i don't know how that could be done ... you could manually go in to the file store and change it ... but i haven't been digging in that direction, please let me know what you find out, it will be useful for me

rbole (Wed, 30 May 2018 18:04:22 GMT):
ok thanks

zac (Wed, 30 May 2018 19:49:40 GMT):
Has joined the channel.

zac (Wed, 30 May 2018 19:50:29 GMT):
I wonder if anyone can point me to some good resources for some students I'm mentoring

afroebke (Wed, 30 May 2018 19:52:14 GMT):
Has joined the channel.

zac (Wed, 30 May 2018 19:52:58 GMT):
They are working on their final projects which are Fabric based apps, and they had a couple of general questions: 1. What is the recommended way to deploy an educational project. They want to be able to demo multiple nodes working. Is there a (free) service they can use, or a tutorial for using Docker to set up multiple nodes over a LAN?

zac (Wed, 30 May 2018 19:54:33 GMT):
2. They have some confusion about setting up permissions for participants. Every tutorial they have found focuses on using Composer, but they have built their app without Composer. Is there a good guide or other documentation out there for managing permissions without Composer?

yacovm (Wed, 30 May 2018 20:11:29 GMT):
permissions for what @zac ?

yacovm (Wed, 30 May 2018 20:12:32 GMT):
in general, permissions in fabric are set via channel config. Permissions that are set in the chaincode level are uselss.

yacovm (Wed, 30 May 2018 20:12:32 GMT):
in general, permissions for data reading in fabric are set via channel config. Permissions that are set in the chaincode level are uselss.

zac (Wed, 30 May 2018 20:14:47 GMT):
I am not super familiar with Fabric's various concepts, but I believe they are having trouble with admin/member permissions for accounts

zac (Wed, 30 May 2018 20:15:07 GMT):
Is there documentation for configuring this without using Composer?

phgurgel (Wed, 30 May 2018 20:15:10 GMT):
Hello guys... quick one: If I have a peer participating in a multi channel network / multiple ledgers. I want to query the "world state" of this peer. I will need to iterate between all the channels/ledgers? Scenario: I'm a manufacturer that sells random goods for different vendors, sometimes with different prices. I want to know the last week sales.

phgurgel (Wed, 30 May 2018 20:15:10 GMT):
Hello guys... quick one: If I have a peer participating in a multi channel network / multiple ledgers. I want to query the "world state" of this peer. I will need to iterate between all the channels/ledgers? (from application code) Scenario: I'm a manufacturer that sells random goods for different vendors, sometimes with different prices. I want to know the last week sales.

yacovm (Wed, 30 May 2018 20:17:14 GMT):
> I am not super familiar with Fabric's various concepts, but I believe they are having trouble with admin/member permissions for accounts so, whether you're an admin or a member - it's pretty simple. if you have a certificate signed by a CA in the channel - you're a member. if your certificate was given to the channel config to be an admin - you're an admin. @zac ^

zac (Wed, 30 May 2018 20:21:41 GMT):
Okay, seems fairly straightforward. I'll forward this info along, thanks.

zac (Wed, 30 May 2018 20:51:44 GMT):
Does anyone have a good deployment solution for someone to try out a simple multi-peer demo?

K.Amine (Wed, 30 May 2018 23:56:26 GMT):
Has joined the channel.

hero5512 (Thu, 31 May 2018 00:59:29 GMT):
Has joined the channel.

AamirSohail (Thu, 31 May 2018 01:24:17 GMT):
Has joined the channel.

AamirSohail (Thu, 31 May 2018 01:24:31 GMT):
Hi guys, I am doing a little study on real world use cases for HyperLedger (or Fabric framework specifically). Are you aware of any real world project which have used/using HyperLedger (Fabric)? Preferably a project on which I can get access to its whitepaper (to understand how they implemented it)

aaronchungibm (Thu, 31 May 2018 01:39:04 GMT):
Has joined the channel.

burgerfreak (Thu, 31 May 2018 02:32:19 GMT):

block.png

burgerfreak (Thu, 31 May 2018 02:32:59 GMT):
hi guys i have a question. we are running blockchain through 3 interactive terminals

burgerfreak (Thu, 31 May 2018 02:33:21 GMT):
if we close this, can we access again the previous instance of blockchain?

burgerfreak (Thu, 31 May 2018 02:33:37 GMT):
is it possible?

bayesian_thought (Thu, 31 May 2018 03:05:39 GMT):
Has joined the channel.

jrosmith (Thu, 31 May 2018 03:24:31 GMT):
@vick @Sairohithyanamala that is a valid solution but doesn't scale well number of participants

jrosmith (Thu, 31 May 2018 03:26:49 GMT):
@AamirSohail a showcase of hyperledger projects can be found [here](https://www.hyperledger.org/resources/blockchain-showcase), just filter for fabric and the project maturity you desire.

AamirSohail (Thu, 31 May 2018 04:19:26 GMT):
Thanks @jrosmith

AamirSohail (Thu, 31 May 2018 04:20:43 GMT):
Is there a way to access their whitepaper though?

jrosmith (Thu, 31 May 2018 04:25:25 GMT):
@AamirSohail i think you would have to get in touch with the companies and ask for details. i'm an engineer with monetago and can tell you that we do not offer specifics on how we have implemented our solution.

jrosmith (Thu, 31 May 2018 04:25:25 GMT):
@AamirSohail i think you would have to get in touch with the companies and ask for details. i'm an engineer with MonetaGo and can tell you that we do not offer specifics on how we have implemented our solution. don't know about the others.

AamirSohail (Thu, 31 May 2018 04:25:57 GMT):
Cool, thanks again @jrosmith

sarathkumar (Thu, 31 May 2018 04:57:59 GMT):
Hi, My name is Sarath. I am interested in contributing to Hyperledger fabric project. I have working understanding of Hyperledger Fabric project and I have experience in Java and minimal knowledge about Go programming language. Can someone please suggest a CR / Bug Fix to start with. Thanks in advance,.

midhun14 (Thu, 31 May 2018 05:24:41 GMT):
@sarathkumar Hi sarath,how can we handle chaincode events through an external API

jrosmith (Thu, 31 May 2018 06:50:51 GMT):
@sarathkumar you may want to check out #fabric-sdk-java

jrosmith (Thu, 31 May 2018 06:51:40 GMT):
the [hyperledger JIRA](https://jira.hyperledger.org/login.jsp) will also be a good source of inspiration for topics to work on.

sarathkumar (Thu, 31 May 2018 07:13:31 GMT):
@midhun14 Can you please elaborate on your query?

sarathkumar (Thu, 31 May 2018 07:16:08 GMT):
@jrosmith Hi Smith, I have already check Hyperledger JIRA & Java SDK but I thought it will be better to ask someone in the team so that they can assign work based on the priority and my knowledge level.

ChunTung (Thu, 31 May 2018 07:20:47 GMT):
Has joined the channel.

jrosmith (Thu, 31 May 2018 07:25:11 GMT):
@sarathkumar you might need to just comment on some items that look interesting in JIRA. i'm not a maintainer so i'm not sure how work assignment goes

sarathkumar (Thu, 31 May 2018 07:30:01 GMT):
Thanks @jrosmith . I will try to find some interesting CR and will comment on it.

Adhavpavan (Thu, 31 May 2018 07:31:15 GMT):
Has joined the channel.

krabradosty (Thu, 31 May 2018 07:39:22 GMT):
Hi! Is it a good practice to have one orderer service per channel?

jrosmith (Thu, 31 May 2018 08:13:55 GMT):
@krabradosty #fabric-orderer will be able to tell you best practices

Suriya17 (Thu, 31 May 2018 08:44:14 GMT):
Has joined the channel.

Suriya17 (Thu, 31 May 2018 08:44:25 GMT):
ipfs

Suriya17 (Thu, 31 May 2018 08:47:02 GMT):
What off-chain storages does fabric support?

d8bhatta (Thu, 31 May 2018 09:54:36 GMT):
Hello Everybody, I have cloned fabric chain code from https://github.com/hyperledger/fabric-chaincode-node and tried to run make docker-clean as it is stated in the page but it gives me error "make: *** No rule to make target `docker-clean'. Stop." I did : cd fabric-chaincode-node make docker-clean Error message:: make: *** No rule to make target `docker-clean'. Stop. Please suggest

yljgo (Thu, 31 May 2018 10:04:48 GMT):
Has joined the channel.

Alex0 (Thu, 31 May 2018 10:12:51 GMT):
Has joined the channel.

hrt031293 (Thu, 31 May 2018 10:20:03 GMT):

Screenshot from 2018-05-31 15-44-28.png

LAlejandroNG (Thu, 31 May 2018 10:25:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hQfm9uoqZFkcJc92X) @hrt031293 Are you using TLS?

hrt031293 (Thu, 31 May 2018 10:26:06 GMT):
yup

hrt031293 (Thu, 31 May 2018 10:26:06 GMT):
yes

LAlejandroNG (Thu, 31 May 2018 10:28:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=saZziGW3ibkF3JhAY) @hrt031293 could you check if orderer service is running?

nfrunza (Thu, 31 May 2018 10:41:24 GMT):
Hello fabric, can someone help me, samples from the HLF http://hyperledger-fabric.readthedocs.io/en/release-1.1/channel_update_tutorial.html# have an initial manual generation of the channel artifacts using the cryptogen, configtxgen tools, is there a way to avoid the manual artifacts channel generation? How is the the configuration passed among the channel administrators?

nfrunza (Thu, 31 May 2018 10:41:24 GMT):
Hello fabric, can someone help me, samples from the HLF http://hyperledger-fabric.readthedocs.io/en/release-1.1/channel_update_tutorial.html# have an initial manual generation of the channel artifacts using the cryptogen, configtxgen tools, is there a way to avoid the manual artifacts channel generation? is there an API to generate channel artifacts? How is the the configuration passed among the channel administrators?

nfrunza (Thu, 31 May 2018 10:41:24 GMT):
Hello fabric, can someone help me, samples from the HLF http://hyperledger-fabric.readthedocs.io/en/release-1.1/channel_update_tutorial.html# have an initial manual generation of the channel artifacts using the cryptogen, configtxgen tools, is there a way to avoid the manual artifacts channel generation? is there an API to generate channel artifacts? How is the the configuration passed among the channel administrators?

midhun14 (Thu, 31 May 2018 10:47:10 GMT):
how to return a response from an event listener back to chaincode?

midhun14 (Thu, 31 May 2018 10:47:10 GMT):
@sarathkumar how to return a response from an event listener back to chaincode?

midhun14 (Thu, 31 May 2018 10:47:57 GMT):
what is the return type of stub.SetEvent()

cnusri (Thu, 31 May 2018 10:49:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iBwXvg8RJFFSjJ8zd) @Suriya17 being an off-chian component it should be independent of chain; but the storage should offer the same characteristics as off chain such as distributed, durability and consistency. have known cases using IPFS as off-chain storage

Suriya17 (Thu, 31 May 2018 10:52:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ixA9jErmhbFfehPQd) @cnusri Thank you! That was helpful!!

kshitiz_leo (Thu, 31 May 2018 11:23:10 GMT):
hello, I am facing an problem while executing an chaincode in chaincode docker dev mode environment, i'm trying to update a particular field of the struct,( PolicyStatus), based on UNIX timestamp, where am I going wrong. `func (t *ChaincodeForPolicyCreation) querypol(stub shim.ChaincodeStubInterface, args []string) peer.Response { //var tx Policy if len(args) != 1 { return shim.Error("Incorrect number of arguments. Expecting 1") } polno := args[0] polasbytes, _ := stub.GetState(polno) pol := Policy{} err := json.Unmarshal(polasbytes, &pol) if err != nil { return shim.Error("Filed to get the policy ") } tm, _ := strconv.ParseInt(pol.PolExipry, 10, 64) fmt.Println(tm) fmt.Println(reflect.TypeOf(tm)) fmt.Println(time.Now().Unix()) if time.Now().Unix() > tm { pol.PolStatus = "Expired" fmt.Println("Done!") fmt.Println(pol.PolStatus) polrevised, _ := json.Marshal(pol) stub.PutState(polno, polrevised) fmt.Println("Done2") } polAsBytes, _ := stub.GetState(polno) return shim.Success(polAsBytes) } `

hyperlearner (Thu, 31 May 2018 11:29:09 GMT):
how do i import another chaincode in one ?

krabradosty (Thu, 31 May 2018 11:29:56 GMT):
Hi again. Suppose I want to have 3 organizations in the channel. I want that only the first organization can update channel configuration. And the signature of the first organization is all we need to update channel configuration. It's like only the first organization has the "proprietary rights". Is it possible? How can I achieve this? In the official example "Adding an Org to a Channel" we need a signature of all channel organizations to update channel.

GuillaumeCisco (Thu, 31 May 2018 11:59:20 GMT):
Hello there, I think that question has been already asked but I wonder how to execute a peer command from outside of the docker network. I'm testing the fabric-ca examples, and everything is fine when I make queries to the chaincode from a docker instance inside the docker network. But if I download the peer binary on my own machine and I test to query it, I get an error like: `2018-05-31 11:53:14.612 UTC [grpc] Printf -> DEBU 001 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer1-org1 on 127.0.0.53:53: server misbehaving"; Reconnecting to {peer1-org1:7051 }` Is it possible to make peer query from outside a docker network ? Thank you

MahmoudSamir101 (Thu, 31 May 2018 13:33:34 GMT):
Has joined the channel.

kshitiz_leo (Thu, 31 May 2018 13:51:18 GMT):
help please https://stackoverflow.com/questions/50625823/updating-the-of-state-of-an-variable-is-not-reflecting-upon-query-hypeledger. Thanks in advance

MahmoudSamir101 (Thu, 31 May 2018 13:54:33 GMT):
I face this error when I am trying to start the network according to the hyper ledger documentation :

ajmeraharsh (Thu, 31 May 2018 15:12:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B6rDQ5ZKFodBLL2ZB) @krabradosty you need to change the endorsement policy, by default it takes `majority of existing Orgs`. You can change it like here `http://hyperledger-fabric.readthedocs.io/en/release-1.1/endorsement-policies.html`

d8bhatta (Thu, 31 May 2018 15:22:19 GMT):
Hello Everybody, I have cloned fabric chain code from https://github.com/hyperledger/fabric-chaincode-node and tried to run make docker-clean as it is stated in the page but it gives me error "make: *** No rule to make target `docker-clean'. Stop." I did : cd fabric-chaincode-node make docker-clean Error message:: make: *** No rule to make target `docker-clean'. Stop. Please suggest

GuillaumeCisco (Thu, 31 May 2018 15:27:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s4kndbFdzSFdMhjqz) Ok I succeded by adding the port mapping in the docker-compose definition and modified my `/etc/hosts` file

neodiz (Thu, 31 May 2018 15:30:32 GMT):
Has joined the channel.

neodiz (Thu, 31 May 2018 15:41:39 GMT):
Hello. Need help. You need to limit the user. He could read only the headers block(The user needs to check that the previous data is not changed).Transactions and transaction contents are forbidden to read. I find policy to channel.Is the policy channel suitable? If not, how to solve the problem.

neodiz (Thu, 31 May 2018 15:41:39 GMT):
Hello. Need help. Need to limit the user. He could read only the headers block(The user needs to check that the previous data is not changed).Transactions and transaction contents are forbidden to read. I find policy to channel.Is the policy channel suitable? If not, how to solve the problem.

neodiz (Thu, 31 May 2018 15:41:39 GMT):
Hello. Need help. Need to limit the user. User could read only the headers block(The user needs to check that the previous data is not changed).Transactions and transaction contents are forbidden to read. I find policy to channel.Is the policy channel suitable? If not, how to solve the problem.

neodiz (Thu, 31 May 2018 15:41:39 GMT):
Hello Everybody. Need help. Need to limit the user. User could read only the headers block(The user needs to check that the previous data is not changed).Transactions and transaction contents are forbidden to read. I find policy to channel.Is the policy channel suitable? If not, how to solve the problem.

pankajcheema (Thu, 31 May 2018 15:58:31 GMT):
Hi experts

pankajcheema (Thu, 31 May 2018 15:58:49 GMT):
any one knows about error `EventHub has shutdown`

pankajcheema (Thu, 31 May 2018 15:58:52 GMT):
?

iamsg43 (Thu, 31 May 2018 16:16:49 GMT):
Has joined the channel.

iamsg43 (Thu, 31 May 2018 16:21:57 GMT):

pic

iamsg43 (Thu, 31 May 2018 16:22:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CBNW2KHauYrP9Sc3Y) hello Every one, I'm trying to install the hyper-ledger fabric but I could n't able to run the ./createpeerAdminCard.sh file, I have installed the composer-cli but still asking me to install the composer-cli

umtyzc (Thu, 31 May 2018 17:44:43 GMT):
Which os do you use? Macosx or Ubuntu. @iamsg43 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xi3YJpQjEawHhg89N)

hamptonsmith (Thu, 31 May 2018 19:12:37 GMT):
During instantiation of my chaincode "wagoncc", seeing a timeout of the "lscc" chaincode: [endorser] simulateProposal -> ERRO 932 [global][e8c3cb15] failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction A docker container for the chaincode in question seems to have been successfully created, but its logs are empty. This was the command I used to instantiate: $ peer chaincode instantiate -C global -n wagoncc -v "ghwc.dae6ea59f82662452ba5a79898f8b6c725f6f43b" -c '{"Args":[]}' -P "AND ('BandwagonClientMSP.member')" -o $ORDERER:7050 Full paste of endorser log: https://pastebin.com/UqTg2J7H

theinstantmae (Thu, 31 May 2018 19:18:42 GMT):
Has joined the channel.

iwolf81 (Thu, 31 May 2018 19:20:53 GMT):
Has joined the channel.

hamptonsmith (Thu, 31 May 2018 19:33:34 GMT):
Bumping CORE_CHAINCODE_EXECUTETIMEOUT to 300s makes it take longer to fail but does not resolve the issue.

vale (Thu, 31 May 2018 20:03:59 GMT):
Has joined the channel.

raheelz (Thu, 31 May 2018 20:14:32 GMT):
Running into this error when setting up:

raheelz (Thu, 31 May 2018 20:14:43 GMT):
`error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: API error (404): {"message":"network app_default not found"} at new createStatusError (/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 `

raheelz (Thu, 31 May 2018 20:14:43 GMT):
'error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: API error (404): {"message":"network app_default not found"} at new createStatusError (/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 '

raheelz (Thu, 31 May 2018 20:14:43 GMT):
``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: API error (404): {"message":"network app_default not found"} at new createStatusError (/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 ```

raheelz (Thu, 31 May 2018 20:14:43 GMT):
``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: API error (404): {"message":"network app_default not found"} at new createStatusError (/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 ```

raheelz (Thu, 31 May 2018 20:14:43 GMT):
``` Successfully installed chaincode on the default channel. error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error starting container: API error (404): {"message":"network app_default not found"} at new createStatusError (/app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 ```

zac (Thu, 31 May 2018 20:57:39 GMT):
Has left the channel.

webdaford (Thu, 31 May 2018 20:59:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PEcq2Ez4Ys6edLBa8) @Katiyman Did you get a response to your question?

bobbiejc (Thu, 31 May 2018 21:32:06 GMT):
Clarification @webdaford was following directions here: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html

bobbiejc (Thu, 31 May 2018 21:32:37 GMT):
but when he tried to build, he was getting unresolved reference to rocksdb, but as far as he could find, he couldn't find where in the cloned repo that was referenced..

bobbiejc (Thu, 31 May 2018 21:32:51 GMT):
so mystery as to why the make was failing because of rocksdb

soaresnatan (Thu, 31 May 2018 22:13:00 GMT):
Has joined the channel.

soaresnatan (Thu, 31 May 2018 22:17:07 GMT):
Hi, someone here? Iam noob in this new world of hyperlegder fabric and i rly need a little help with sdk rest server. :p

hamptonsmith (Fri, 01 Jun 2018 00:57:28 GMT):
Increasing ganularity of CORE_CHAINCODE_LOGGING_LEVEL and _INFO allowed me to get this log from the chaincode container: https://pastebin.com/9sQnJn3Z. That reads to me that Init() was successful and the failure must have occurred afterwards back in the peer container.

RealDeanZhao (Fri, 01 Jun 2018 01:57:16 GMT):
Hi all, is it possible for the end users to register with their own username password in the CA?

minuk (Fri, 01 Jun 2018 02:24:36 GMT):
Has joined the channel.

aaronchungibm (Fri, 01 Jun 2018 02:31:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HquAg8Z2XPzR59XJZ) @RealDeanZhao check register function @ https://fabric-sdk-node.github.io/FabricCAClient.html

aaronchungibm (Fri, 01 Jun 2018 02:31:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HquAg8Z2XPzR59XJZ) @RealDeanZhao check register function @ https://fabric-sdk-node.github.io/FabricCAClient.html you can pass you own secret as argument

RealDeanZhao (Fri, 01 Jun 2018 02:43:38 GMT):
@aaronchungibm thank you

RealDeanZhao (Fri, 01 Jun 2018 02:43:55 GMT):

Clipboard - June 1, 2018 10:43 AM

RealDeanZhao (Fri, 01 Jun 2018 02:44:07 GMT):
:thumbsup:

RealDeanZhao (Fri, 01 Jun 2018 02:45:46 GMT):
If i want to manage other user information like phone, address, male and age, I need to have another table associated with the enrollID?

jrosmith (Fri, 01 Jun 2018 04:28:40 GMT):
@kshitiz_leo please use a service like [hastebin](hastebin.com) to post code snippets. i'm not entirely sure what you're asking, are you getting a specific error or asking for a code review of your snippet?

jrosmith (Fri, 01 Jun 2018 04:34:43 GMT):
@hamptonsmith #fabric-peer-endorser-committer will probably have better information for you

jrosmith (Fri, 01 Jun 2018 04:36:45 GMT):
@hyperlearner i'm assuming you mean being able to access the methods of a separate chaincode on a given channel? if so you can [invoke](https://github.com/hyperledger/fabric/blob/release-1.1/core/chaincode/shim/interfaces_stable.go#L65) from chaincode to chaincode

minuk (Fri, 01 Jun 2018 04:38:38 GMT):
Hyperledger frameworks all have a modular architecture characteristic. So is it reasonable to consider the fabric as a special set of components of general Hyperledger framework? If I choose a fabric than others, then it means just a different starting point?

jrosmith (Fri, 01 Jun 2018 04:40:40 GMT):
@minuk hyperledger is an umbrella of many separate projects. fabric is just one blockchain implementation project that hyperledger maintains. see the [wiki](https://wiki.hyperledger.org/) for a list of projects and their differences

midhun14 (Fri, 01 Jun 2018 04:42:26 GMT):
@sarathkumar I am raising an event from chaincode and am able to listen it in a js file using registerChainCodeEvent but i want to send a response back to chaincode from the listener.How to do tha?

midhun14 (Fri, 01 Jun 2018 04:42:26 GMT):
@sarathkumar I am raising an event from chaincode and am able to listen it in a js file using registerChainCodeEvent but i want to send a response back to chaincode from the listener.How to do that?

minuk (Fri, 01 Jun 2018 04:43:14 GMT):
@jrosmith Thanks. then my assumption is right? just different starting point with different component set? because I guess they share hyperledger common framework.

jrosmith (Fri, 01 Jun 2018 04:48:53 GMT):
@minuk no, it is incorrect. hyperledger is not a framework. fabric is a framework. so is sawtooth. so is iroha. theyre all separate blockchain implementations. composer is a project built on top of fabric to help with the modeling and deployment of a network. the projects under hyperledger are fundamentally different from the one another. please read the wiki.

suryasuresh06 (Fri, 01 Jun 2018 05:12:24 GMT):
Hello all, I am facing a problem while trying the build your first network tutorial. When I try chain code invoke to move 10 from a to b, I get the following error. Error: unknown flag: --peerAddresses Usage: peer chaincode invoke [flags] Flags: -C, --channelID string The channel on which this command should be executed -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -n, --name string Name of the chaincode Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding -v, --version Display current version of fabric peer server

suryasuresh06 (Fri, 01 Jun 2018 05:12:36 GMT):
Could someone help me with this

AshishMishra 1 (Fri, 01 Jun 2018 05:24:38 GMT):
Hi team, is the prom or statsd metrics exported implemented? I did changes in the core.yam... but nothing seems to be exported.

GowriR (Fri, 01 Jun 2018 05:38:22 GMT):
Has joined the channel.

GowriR (Fri, 01 Jun 2018 05:38:46 GMT):
Hi all, I am using build your first network example

GowriR (Fri, 01 Jun 2018 05:38:46 GMT):
Hi all, I am using build your first network example. Failing at the step curl -sSL https://goo.gl/fMh2s3 | bash curl -sSL https://goo.gl/fMh2s3 | bash curl https://goo.gl/fMh2s3 does not work. It says it is for "extract all of the platformspecific binaries you will need to set up your network ". Is there an alternate way I can do it? Thanks

amitpadmani (Fri, 01 Jun 2018 06:08:30 GMT):
Has joined the channel.

anjalinaik (Fri, 01 Jun 2018 06:11:43 GMT):
Hi All, on performing channel update i am getting below error.Can anybody please tell me what is wrong .

anjalinaik (Fri, 01 Jun 2018 06:11:52 GMT):
Error: Invalid channel create transaction : mismatched channel ID ${2} != mychannel

ashishchainworks (Fri, 01 Jun 2018 06:11:59 GMT):
Has joined the channel.

ashishchainworks (Fri, 01 Jun 2018 06:12:12 GMT):
Hi, This is regarding signature of Orderer in block metadata. In case of multiple OSNs in a network, whose signature will be there in block. If it is of OSN cutting the block, will that not make blocks in network different (though only by signature). Pls help.

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally ready `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally reading `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally reading `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using. unless youre trying to use string interpolation in node, in which case it looks like maybe you used `"${2}"` instead of ``${2}``

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally reading `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using. unless youre trying to use string interpolation in node, in which case it looks like maybe you used `"${2}"` instead of ` `${2}` `

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally reading `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using. unless youre trying to use string interpolation in node, in which case it looks like maybe you used `"${2}"` instead of ```${2}```

jrosmith (Fri, 01 Jun 2018 06:36:07 GMT):
@anjalinaik it looks like it is literally reading `${2}` as the name of your channel and not the second argument passed to whatever cli tool youre using. unless youre trying to use string interpolation in node, in which case it looks like maybe you used `"${2}"` instead of backticks

jrosmith (Fri, 01 Jun 2018 06:36:33 GMT):
@ashishchainworks #fabric-orderer will have the best info for you

GowriR (Fri, 01 Jun 2018 06:44:57 GMT):
Hello, this link worked https://goo.gl/6wtTN5 | bash -s 1.1.0 but I face two problems 1. TLS handshake timeout (slow network?) 2. For the orderer, member-svc etc it says i need docker login and access is denied. I created a docker login for myself and logged in too. Still fails.

anjalinaik (Fri, 01 Jun 2018 06:51:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JcQSNC6nXxvFLQuXX) @jrosmith Hi.i am issuing this command. peer channel update -f org5_update_in_envelope.pb -c mychannel -o orderer0:7050. I dont get it why would it literally read ${2}.Can you please explain

jrosmith (Fri, 01 Jun 2018 06:53:10 GMT):
@anjalinaik the args look fine, so maybe it did read the channel name properly and you accidentally created a channel a channel with the name of `${2}`?

anjalinaik (Fri, 01 Jun 2018 06:55:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Doy5vFBvqdJChxzay) @jrosmith nope :( I have created only one channel named mychannel.Does channel update require TLSenabled? can it be done with TLS disabled.

jrosmith (Fri, 01 Jun 2018 06:57:03 GMT):
depends on your network settings. if you have tls enabled for everything else you will need it be enabled here too

anjalinaik (Fri, 01 Jun 2018 06:57:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YGXNBvv9zfZwbXgha) @jrosmith yes i was in the same assumption.since my whole network has TLS disabled. i have issued peer channel update command without TLS reference

xo-Lai (Fri, 01 Jun 2018 06:59:42 GMT):
Has joined the channel.

anjalinaik (Fri, 01 Jun 2018 07:07:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m8bsjTjMbGx2ZccBS) no string interpolation tried. Following "Add new organization to a channel" from readTheDocs.

gravity (Fri, 01 Jun 2018 08:01:42 GMT):
HI all how to restart chaincode containers correctly?

GuillaumeCisco (Fri, 01 Jun 2018 08:07:08 GMT):
Hi there, is this possible to pass the env variables `CORE_PEER_TLS_CLIENTCERT_FILE` and `CORE_PEER_TLS_CLIENTKEY_FILE` to the `peer channel join` command? I tried with `–keyfile` and `–certfile` as described here : https://hyperledger-fabric.readthedocs.io/en/release-1.1/enable_tls.html#configuring-tls-for-the-peer-cli But without success, looks like it is only available for `peer channel or peer chaincode `, why?

CorentinPacaud (Fri, 01 Jun 2018 08:58:47 GMT):
Any update for my problem ? https://stackoverflow.com/questions/50620642/error-trying-to-ping-error-2-unknown-could-not-find-chaincode-with-name-netw

niko.mejia (Fri, 01 Jun 2018 09:26:39 GMT):
Has joined the channel.

GuillaumeCisco (Fri, 01 Jun 2018 09:35:04 GMT):
Is this possible not to display `Query Result: ` when querying from a peer?

itsnavpreet (Fri, 01 Jun 2018 10:08:11 GMT):
Has joined the channel.

suvpatil (Fri, 01 Jun 2018 10:34:25 GMT):
Hello, I have clone the fabric repository from "https://github.com/hyperledger/fabric.git" and run the network up shell script but getting the error ""Rejecting deliver request because of consenter error"".

GowriR (Fri, 01 Jun 2018 10:40:07 GMT):
Hello, from where do I retrieve fabric platform specific libraries (cryptogen, configtxgen, configtxlator, peer, orderer, and fabric-ca-client) without using bootstrap.sh in the samples. Thanks

SriramaSharma (Fri, 01 Jun 2018 10:42:45 GMT):
@GowriR you could download it from nexus site - https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/

SriramaSharma (Fri, 01 Jun 2018 10:43:15 GMT):
Or copy it from the fabric-tools docker container `docker run -v $PWD/:/dir hyperledger/fabric-tools:1.1.0 cp /usr/local/bin/configtxgen /dir/`

hyperlearner (Fri, 01 Jun 2018 10:43:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M9A9B64CQJfBhC3xD) @jrosmith thanks for the response @jrosmith . But i'm getiing this errror ==> InvokeChaincode : undefined So far, I've instantiated the 2nd chaincode,imported the package that contains the 2nd chaincode to 1st

GuillaumeCisco (Fri, 01 Jun 2018 12:04:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kv9c2Wr6PQhZHwctz) @GowriR You can get them like that `curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.1.0/hyperledger-fabric-linux-amd64-1.1.0.tar.gz | tar xz`

PrajithSai (Fri, 01 Jun 2018 12:07:26 GMT):
Has joined the channel.

GowriR (Fri, 01 Jun 2018 12:15:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p7suhKwFiF7oJfxhQ) @SriramaSharma Hello, thanks for your reply. I want to understand the command better. I understand you are mapping volumes, copying and substituting something. But unable to make out the entire context.

GowriR (Fri, 01 Jun 2018 12:23:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JAhgd68v6cNTrk4NW) @GuillaumeCisco Thanks. The command you gave tries to pull the docker images by executing get-docker-images.sh. I already downloaded them one by one since bulk downloading was failing. Now I want to run the platform-specific binaries. [@Srirama Sharma's command did the work. I am trying to figure out what it meant. ](https://chat.hyperledger.org/channel/fabric-questions?msg=A6uprz67PRqnmkGMQ)

GuillaumeCisco (Fri, 01 Jun 2018 12:28:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M69euSP9Y7C93asX3) @GowriR It will create a bin folder with the binaries, check it out

ashishchainworks (Fri, 01 Jun 2018 12:46:43 GMT):
Thanks jrosmith

buridiaditya (Fri, 01 Jun 2018 13:03:34 GMT):
can anyone tell me which version of proto-gen-go is used to generate the *.pb.go files. I am not able to successfully generate the *.pb.go with the latest proto-gen-go

buridiaditya (Fri, 01 Jun 2018 13:03:34 GMT):
can anyone tell me which version of proto-gen-go is used to generate the "*.pb.go" files. I am not able to successfully generate the "*.pb.go" with the latest proto-gen-go

Logi (Fri, 01 Jun 2018 13:29:11 GMT):
Has joined the channel.

Logi (Fri, 01 Jun 2018 13:29:35 GMT):
Hi there - Could someone help on Angular App for Hyperledger.. I am all set and my angular application is running fine & connected with RST-API. But transaction user interface is blank Could some assist in workaround, I ensured that all packages are latest & i am running this in Latest Version V1.1(hyperledger)

ayang99 (Fri, 01 Jun 2018 13:36:16 GMT):
Has joined the channel.

ayang99 (Fri, 01 Jun 2018 13:36:23 GMT):
Hi All - a general question: when you develop on Ethereum, you are forced to store the barest minimum of data on the blockchain itself, the actual data gets stored off-chain somewhere like IPFS. This constraint is Ethereum-specific, but does that mean people are storing large payloads in Fabric blocks? Maybe not GB, but on the order of MB?

SriramaSharma (Fri, 01 Jun 2018 17:17:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zfj7TMfr5stukqJMW) @GowriR In the command, using "-v" option current working dir where you want to have the binaries downloaded is mapped to a mountpoint - say /dir on to the `hyperledger/fabric-tools:1.1.0` container. Then using 'cp' command to copy the binary from `/usr/local/bin` to `/dir`

SriramaSharma (Fri, 01 Jun 2018 17:17:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zfj7TMfr5stukqJMW) @GowriR In the command, using "-v" option current working dir on host, where you want to have the binaries downloaded is mapped to a mountpoint - say /dir on to the `hyperledger/fabric-tools:1.1.0` container. Then using 'cp' command to copy the binary from `/usr/local/bin` to `/dir`

jsellinger (Fri, 01 Jun 2018 17:27:46 GMT):
hi all i am running into an issue with the go sdk. when i run the make depend-install it says i am missing some dependencies. i went through and did a go get for all the dependencies listed but it still returns the same error. how should i proceed?

edwardsm26 (Fri, 01 Jun 2018 18:14:09 GMT):
Hello I am trying to use the node sdk to install a chaincode but i have been getting the bellow error error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [] creator org [Org1MSP] at new createStatusError (/home/maedwards/workspace/release-3.2/blockchain-explorer/node_modules/grpc/src/client.js:64:15) at /home/maedwards/workspace/release-3.2/blockchain-explorer/node_modules/grpc/src/client.js:583:15

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, can one can advise? 1. use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. fabric/sampleconfig/core.yaml, enable the following section ``` systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true ```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, can one can advise? 1. use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. fabric/sampleconfig/core.yaml, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, can one can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, can one can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, can anyone advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, anyone can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/myscc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, anyone can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/scc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, anyone can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/scc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, anyone can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/scc.so invokableExternal: true invokableCC2CC: true```

qizhang (Fri, 01 Jun 2018 18:35:55 GMT):
I used the following steps to make a system chaincode plugin, but got the message `transaction returned with failure: could not find chaincode with name 'myscc'`, anyone can advise? 1. Use 'go build -buildmode=plugin' to compile `fabirc/examples/plugins/scc/plugin.go` to `scc.so` 2. In `fabric/sampleconfig/core.yaml`, enable the following section ```system: cscc: enable lscc: enable escc: enable vscc: enable qscc: enable myscc: enable systemPlugins: # example configuration: - enabled: true name: myscc path: $FABRIC_HOME/examples/plugins/scc/scc.so invokableExternal: true invokableCC2CC: true```

titog (Fri, 01 Jun 2018 19:13:45 GMT):
Has joined the channel.

spranay (Fri, 01 Jun 2018 20:11:53 GMT):
Has joined the channel.

0xSEGFAULT (Sat, 02 Jun 2018 01:35:17 GMT):
Does anyone know of a way to pass in what .yaml file to use for `configtxgen`? It's very limiting in my opinion to have to always use configtx.yaml. I need to dynamically add organizations and channels to a network. Thanks!

0xSEGFAULT (Sat, 02 Jun 2018 01:35:58 GMT):
I would like to keep my previous configtx.yaml files and for now i have to rename them everytime I alter something and/or create new channels.

Senthil1 (Sat, 02 Jun 2018 02:19:25 GMT):
Has joined the channel.

nitinsh (Sat, 02 Jun 2018 02:49:35 GMT):
Has joined the channel.

vick (Sat, 02 Jun 2018 04:41:06 GMT):
@qizhang was there any command to install the chaincode? basically there is some process trying to interact with chaincode myscc, if it is not installed on the peer then you would get this error i think

vick (Sat, 02 Jun 2018 04:42:15 GMT):
@edwardsm26 are you using the organization's admin to perform the install operation? as far as i remember you need to be an admin of the peer that is trying to install the chaincode

vick (Sat, 02 Jun 2018 04:43:05 GMT):
@jsellinger please give some more information, which SDK? the java or node? or do you mean the fabric source code? where are you following instructions?

AshishMishra 1 (Sat, 02 Jun 2018 04:59:19 GMT):
Can anyone please confirm, thanks. [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ScvKZdeGHjnbpkzFE)

Ammu (Sat, 02 Jun 2018 07:18:57 GMT):
ccenv and zookeeper can u plz explain it?

GajendraYadav (Sat, 02 Jun 2018 10:42:21 GMT):
Can someone answer this. How permission blockchain is secure?, since in permission blockchain every participants are known to each other, it is easy to gain 51% node access and can modify the transaction

sriharipalivela (Sat, 02 Jun 2018 13:28:24 GMT):
Has joined the channel.

jsellinger (Sat, 02 Jun 2018 13:45:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BhavGYTmH6o4TEoGv) @vick thank you for responding! i cloned the go sdk from github and am running the make depend-install. here is a screenshot:

jsellinger (Sat, 02 Jun 2018 13:46:27 GMT):

Screen Shot 2018-06-02 at 9.45.25 AM.png

vanderheijden86 (Sat, 02 Jun 2018 14:28:49 GMT):
Has joined the channel.

SuyogShah (Sat, 02 Jun 2018 22:16:46 GMT):
Has joined the channel.

SuyogShah (Sat, 02 Jun 2018 22:17:35 GMT):
Hi Team , I am new Hyperledger fabric and exploring the same. I have experience in C# language. Can you please let me know if tere is any SDK for .NET

Aswath8687 (Sat, 02 Jun 2018 22:43:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PXbzbiNiHfQKLCory) @SuyogShah No it is not available

elforce001 (Sat, 02 Jun 2018 22:51:44 GMT):
Has joined the channel.

elforce001 (Sun, 03 Jun 2018 00:06:56 GMT):
golang

giniz (Sun, 03 Jun 2018 04:05:05 GMT):
Has joined the channel.

giniz (Sun, 03 Jun 2018 04:07:18 GMT):
hello, I got this error when creating channel from cli container ``` 2018-06-03T03:55:52.535027567Z 2018-06-03 03:55:52.534 UTC [cauthdsl] deduplicate -> ERRO 33d Principal deserialization failure (MSP OrdererMSP is unknown) for identity 0a0a4f7264657265724d53501286062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434454434341624f674177494241674952415059556132382b57656446514c5a734b617a787a777777436759494b6f5a497a6a304541774977597a454c0a4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e68626942470a636d467559326c7a593238784554415042674e5642416f544348526c63335175593239744d52517745675944565151444577746a595335305a584e304c6d4e760a62544165467730784f4441324d444d774d5451344d444261467730794f4441314d7a45774d5451344d4442614d463478437a414a42674e5642415954416c56540a4d524d77455159445651514945777044595778705a6d3979626d6c684d52597746415944565151484577315459573467526e4a68626d4e7063324e764d5349770a494159445651514444426c755a58523362334a724d563976636d526c636d56794c6e526c63335175593239744d466b77457759484b6f5a497a6a3043415159490a4b6f5a497a6a304441516344516741456c725a4e4d4d373763707a6b75676f6d4546336e4f387258646d7a333233646c346345554e565172746978516e5349370a5851744c4e792b4b2b4b574d304e43736f7a656e4969694c385073544c6c65506768615265714e4e4d45737744675944565230504151482f42415144416765410a4d41774741315564457745422f7751434d4141774b7759445652306a42435177496f4167566d4a665842727134374d67415053427778686b52384659484357780a317456756a672f6a595a51616e2b4977436759494b6f5a497a6a3045417749445341417752514968414d645858454b7847344a45615258356243626e6d7374460a5957436b375077436f5558302b687466456d776a4169422f396739584458746b5345694148734b78523179614f626f6b43647832355958487a64674e423247620a5a773d3d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a ```

giniz (Sun, 03 Jun 2018 04:07:18 GMT):
hello, I got this error when creating channel from cli container ``` 2018-06-03T04:15:13.679321858Z 2018-06-03 04:15:13.679 UTC [cauthdsl] deduplicate -> ERRO 156 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0a076f7267314d535012ba062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434e6a4343416432674177494241674952414d6e66392f646d563952764343567739705a5155665577436759494b6f5a497a6a304541774977675945780a437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d525977464159445651514845773154595734670a526e4a68626d4e7063324e764d526b77467759445651514b45784276636d63784c6d56345957317762475575593239744d517777436759445651514c45774e440a543141784844416142674e5642414d5445324e684c6d39795a7a45755a586868625842735a53356a623230774868634e4d5463784d5445794d544d304d5445780a5768634e4d6a63784d5445774d544d304d544578576a42704d517377435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a760a636d3570595445574d4251474131554542784d4e5532467549455a795957356a61584e6a627a454d4d416f474131554543784d44513039514d523877485159440a5651514445785a775a5756794d433576636d63784c6d56345957317762475575593239744d466b77457759484b6f5a497a6a3043415159494b6f5a497a6a30440a41516344516741455a3853345637314f424a70794d49565a64775964465841636b49747270765372436630485167343057573958536f4f4f4f3736492b556d660a456b6d546c494a5850372f4179525253525533386f493849767475344d364e4e4d45737744675944565230504151482f42415144416765414d417747413155640a457745422f7751434d4141774b7759445652306a42435177496f4167696e4f5249686e5045465a5568586d366557426b6d374b375a633852342f7a374c5734480a6f7373446c437377436759494b6f5a497a6a304541774944527741775241496756696b49555a7a6766754673474c5148574a55564a43553770446145546b617a0a507a46677343694c785541434943677a4a596c57376e765a7850376236746265753374386d72684d5851733935366d44342b426f4b754e490a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a ```

giniz (Sun, 03 Jun 2018 04:07:41 GMT):
have anyone seen and solved this yet?

minuk (Sun, 03 Jun 2018 04:26:49 GMT):
Let say I would like to count page views in a world state. if Fabric is limited to concurrent transactions because of MVCC with StateDB, how could Fabric overcome this? How Bitcoin/Ethereum overcome this? or this scenario doesn't fit to Blockchain?

RM207 (Sun, 03 Jun 2018 05:48:33 GMT):
Has joined the channel.

npc0405 (Sun, 03 Jun 2018 05:51:10 GMT):
Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy I have made changes in sample application according to requirement.... and now trying to create channel; But failing to do so.

npc0405 (Sun, 03 Jun 2018 05:51:17 GMT):
Orderer logs are as below

npc0405 (Sun, 03 Jun 2018 05:51:28 GMT):
2018-06-03 05:23:32.899 UTC [cauthdsl] func2 -> DEBU 122 0xc42000e350 signature for identity 0 is invalid: The signature is invalid 2018-06-03 05:23:32.900 UTC [cauthdsl] func2 -> DEBU 123 0xc42000e350 principal evaluation fails 2018-06-03 05:23:32.901 UTC [cauthdsl] func1 -> DEBU 124 0xc42000e350 gate 1528003412898797760 evaluation fails 2018-06-03 05:23:32.901 UTC [policies] Evaluate -> DEBU 125 Signature set did not satisfy policy /Channel/Application/Org1MSP/Admins 2018-06-03 05:23:32.901 UTC [policies] Evaluate -> DEBU 126 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/Org1MSP/Admins 2018-06-03 05:23:32.901 UTC [policies] func1 -> DEBU 127 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Org1MSP.Admins ] 2018-06-03 05:23:32.901 UTC [policies] Evaluate -> DEBU 128 Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy 2018-06-03 05:23:32.901 UTC [policies] Evaluate -> DEBU 129 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy 2018-06-03 05:23:32.901 UTC [orderer/common/broadcast] Handle -> WARN 12a [channel: providerdatachannel] Rejecting broadcast of config message from 172.18.0.1:50616 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining 2018-06-03 05:23:32.902 UTC [orderer/common/server] func1 -> DEBU 12b Closing Broadcast stream

npc0405 (Sun, 03 Jun 2018 05:52:16 GMT):
All respective changes have been done in docker-compose.yaml, network-config.yaml as wel

RohitYadav2 (Sun, 03 Jun 2018 10:03:27 GMT):
guys I need a quick help :-

RohitYadav2 (Sun, 03 Jun 2018 10:11:17 GMT):
guys need a quick help :- I want to query from the ledger using couch DB and the data in the DB is something like :- `{ "_id": "rohit", "_rev": "4-6c924cbb4e4981af3df667f11a9b0063", "docType": "user", "files": [ { "ipfs_hash": "QmdAEwdZRTwu1YrvjhF1ag34ZhpHqBYfcyM13es5RM5asd", "name": "sat.jpg", "uploaded_at": 1528010559383 }, { "ipfs_hash": "QmdAEwdZRTwu1YrvjhF1ag34ZhpHqBYfcyM13es5RM5asd", "name": "satfuck.jpg", "uploaded_at": 1528012775401 } ], "userName": "rohit", "~version": "5:0" }` So I can query `userName` and all other fields but I want to query `files` which is an array of objects IDK how to query this please help me to get it done The query I'm running is :- `"selector": { "docType":{"$eq":"user"}, "userName":{"$eq":"rohit"} }` that gives me all the records of `userName=rohit` but if I'm trying to query`files` then I don't what to put at `rohit` in this query

RohitYadav2 (Sun, 03 Jun 2018 10:11:17 GMT):
guys need a quick help :- I want to query from the ledger using couch DB and the data in the DB is something like :- `{ "_id": "rohit", "_rev": "4-6c924cbb4e4981af3df667f11a9b0063", "docType": "user", "files": [ { "ipfs_hash": "QmdAEwdZRTwu1YrvjhF1ag34ZhpHqBYfcyM13es5RM5asd", "name": "sat.jpg", "uploaded_at": 1528010559383 }, { "ipfs_hash": "QmdAEwdZRTwu1YrvjhF1ag34ZhpHqBYfcyM13es5RM5asd", "name": "satfuck.jpg", "uploaded_at": 1528012775401 } ], "userName": "rohit", "~version": "5:0" }` So I can query `userName` and all other fields but I want to query `files` which is an array of objects IDK how to query this please help me to get it done The query I'm running is :- ` "selector": { "docType":{"$eq":"user"}, "userName":{"$eq":"rohit"} } ` that gives me all the records of `userName=rohit` but if I'm trying to query`files` then I don't what to put at `rohit` in this query

RohitYadav2 (Sun, 03 Jun 2018 10:12:52 GMT):
or simply how to query that file data from couchDB

saras 8 (Sun, 03 Jun 2018 12:03:35 GMT):
Hi, IS there an example which demonstrates publishing of custom chaincode events and subscribing and handling them end-to-end?

liushengxi13689209566 (Sun, 03 Jun 2018 12:18:16 GMT):
If I want to create a 1.0.0 environment, does that mean that both fabric-samples and fabric have to use the corresponding 1.0.0 environment?

rameshjhajharia (Sun, 03 Jun 2018 17:27:09 GMT):
Has joined the channel.

thodge (Sun, 03 Jun 2018 18:57:20 GMT):
Has joined the channel.

siestacat (Mon, 04 Jun 2018 01:38:28 GMT):
Has joined the channel.

siestacat (Mon, 04 Jun 2018 01:38:43 GMT):
hey guys - having an issue with the byfn example

siestacat (Mon, 04 Jun 2018 01:39:01 GMT):
keep getting an OCI issue - can't execute scripts/script.sh no such file or directory eists

siestacat (Mon, 04 Jun 2018 01:39:15 GMT):
the fabric-samples folder is in my user folder, the docker $HOME path

siestacat (Mon, 04 Jun 2018 01:39:37 GMT):
i've tried launching it from powershell and the docker quickstart terminal too

siestacat (Mon, 04 Jun 2018 01:40:04 GMT):
read its a common issue but none of the fixes i tried worked

blckusr (Mon, 04 Jun 2018 01:47:16 GMT):
Has joined the channel.

blckusr (Mon, 04 Jun 2018 01:48:03 GMT):
Hi All!

blckusr (Mon, 04 Jun 2018 01:48:14 GMT):
Hi All!

blckusr (Mon, 04 Jun 2018 01:51:18 GMT):
Hi All! How can i solve "unknown flag: --peerAddresses" problem when invoke chaincode tutorial(building your firtst network).

jrosmith (Mon, 04 Jun 2018 03:34:43 GMT):
@minuk if you're dealing with rapidly changing data you could follow the [high throughput](https://github.com/hyperledger/fabric-samples/tree/release-1.1/high-throughput) example. though i'm not sure if recording page views requires a blockchain implementation

jrosmith (Mon, 04 Jun 2018 03:35:46 GMT):
@SuyogShah as of now there is no .NET sdk. there is #fabric-sdk-node #fabric-sdk-go #fabric-sdk-java #fabric-sdk-py and i believe a rest api sdk that does not have a rocket.chat channel

goelmayank (Mon, 04 Jun 2018 03:37:35 GMT):

peer1-org1.txt

goelmayank (Mon, 04 Jun 2018 03:37:35 GMT):

peer1-org2.txt

goelmayank (Mon, 04 Jun 2018 03:37:35 GMT):

peer0-org2.txt

goelmayank (Mon, 04 Jun 2018 03:37:42 GMT):

peer0-org1.txt

jrosmith (Mon, 04 Jun 2018 03:38:00 GMT):
@RohitYadav2 it sounds like you're trying to filter based on contents of an array. take a look at the [coucdb docs](http://docs.couchdb.org/en/2.1.1/api/database/find.html) for what they support. if that doesn't work you may need to rethink how you're storing your data

goelmayank (Mon, 04 Jun 2018 03:38:28 GMT):
Hey guys, facing an issue with composer network start.: `status: Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: chaincode exists trade-network)`Here are the log files:

goelmayank (Mon, 04 Jun 2018 03:38:28 GMT):
Hey Guys, I am facing an issue while starting the business network. I have run the command composer identity request with success but I am getting an error while running composer network start -c PeerAdmin@byfn-network-org1 -n trade-network -V 0.3.0 -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A alice -C alice/admin-pub.pem -A bob -C bob/admin-pub.pem. I cross checked that the version of the package.json of the bna file is same as the one mentioned here - 0.3.0.

goelmayank (Mon, 04 Jun 2018 03:38:28 GMT):
Hey Guys, I am facing an issue while starting the business network. I have run the command `composer identity request` with success but I am getting an error while running `composer network start -c PeerAdmin@byfn-network-org1 -n trade-network -V 0.3.0 -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A alice -C alice/admin-pub.pem -A bob -C bob/admin-pub.pem`. I cross checked that the version of the package.json of the bna file is same as the one mentioned here - 0.3.0.

goelmayank (Mon, 04 Jun 2018 03:38:35 GMT):

orderer.txt

jrosmith (Mon, 04 Jun 2018 03:39:09 GMT):
@goelmayank i'm not sure what youre uploading, but if those are error logs it may be more useful to post them to a service lie [hastebin](hastebin.com) so that members of this channel can easily parse what is going on.

jrosmith (Mon, 04 Jun 2018 03:39:54 GMT):
@liushengxi13689209566 it would be a good idea to ensure everything is the same major version

goelmayank (Mon, 04 Jun 2018 03:40:05 GMT):
stuck on step 17 of this tutorial while Step Seventeen: Starting the business network

goelmayank (Mon, 04 Jun 2018 03:40:05 GMT):
Here is the error that I am getting: `https://hastebin.com/howunevila` and the output of docker ps: `https://hastebin.com/ibabeqimeg

goelmayank (Mon, 04 Jun 2018 03:40:05 GMT):
Here is the error that I am getting: `https://hastebin.com/howunevila` and the output of docker ps: `https://hastebin.com/ibabeqimeg`

goelmayank (Mon, 04 Jun 2018 03:40:05 GMT):
Here is the error message: `https://hastebin.com/howunevila` and the output of docker ps: `https://hastebin.com/ibabeqimeg`

goelmayank (Mon, 04 Jun 2018 03:40:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6bnqo9Cd3sQRdjx83) @jrosmith yes i will do so

jrosmith (Mon, 04 Jun 2018 03:40:39 GMT):
@goelmayank also, #composer would probably have better information regarding your error

batch8 (Mon, 04 Jun 2018 04:43:23 GMT):
Has joined the channel.

GowriR (Mon, 04 Jun 2018 05:10:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=id8EWRcJvn7hJ5p62) @SriramaSharma Thanks so much. I get it. The https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh file needs to be modified. Does not work smoothly.

GowriR (Mon, 04 Jun 2018 05:12:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yNH5NtjMPSCcuTX3n) @GuillaumeCisco Thanks so much

GowriR (Mon, 04 Jun 2018 05:20:50 GMT):
I am following the link http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries and since the script fails with the downloads (probably due to a poor network), I am doing it manually. With some help from the group managed to do it. Now it says, "Look at the names for each image; these are the components that will ultimately comprise our Hyperledger Fabric network. You will also notice that you have two instances of the same image ID - one tagged as “x86_64-1.x.x” and one tagged as “latest”."

GowriR (Mon, 04 Jun 2018 05:20:50 GMT):
I am following the link http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries and since the script fails with the downloads (probably due to a poor network), I am doing it manually. With some help from the group managed to do it. Now it says, "Look at the names for each image; these are the components that will ultimately comprise our Hyperledger Fabric network. You will also notice that you have two instances of the same image ID - one tagged as “x86_64-1.x.x” and one tagged as “latest”." Do I need to have two sets of images? My "docker images" shows only 1 set. Thanks.

midhun14 (Mon, 04 Jun 2018 05:36:12 GMT):
how can i invoke a chaincode function from an event listener

JaeSong-Yoo (Mon, 04 Jun 2018 05:48:58 GMT):
Has joined the channel.

RohitYadav2 (Mon, 04 Jun 2018 06:38:53 GMT):
@jrosmith thanks mate I'll try to look

ajmeraharsh (Mon, 04 Jun 2018 06:39:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pyLEpHoAxpXHFks5G) @goelmayank Are you using any external `connection.json`? Do make sure the peers, ca and orderer are directing to `localhost`

goelmayank (Mon, 04 Jun 2018 06:46:23 GMT):
Yes, i just checked the byfn-network-org1.json files for org1 and org2. The peers, ca and orderer have all been directed to localhost ports.

goelmayank (Mon, 04 Jun 2018 06:48:11 GMT):
Here is the file: https://hastebin.com/ekugiworet

ajmeraharsh (Mon, 04 Jun 2018 06:51:43 GMT):
@goelmayank looks good, if you are still facing trouble, try adding all peers mapping to `127.0.0.1` in `/etc/hosts`. Thats just a workaround to check if peers are reachable

goelmayank (Mon, 04 Jun 2018 07:03:48 GMT):
Did you mean this: https://hastebin.com/pafimusipa

goelmayank (Mon, 04 Jun 2018 07:03:48 GMT):
Did you mean that I should replace localhost with 127.0.1: https://hastebin.com/pafimusipa

goelmayank (Mon, 04 Jun 2018 07:06:24 GMT):
not really sure how to change the peer addresses in /etc/hosts

jaswanth (Mon, 04 Jun 2018 07:13:11 GMT):
Can we add a new peer to the existing system ? if so can anyone points me to the docs ?

GuillaumeCisco (Mon, 04 Jun 2018 07:21:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nvsoCSQTKbsurJz6c) @GowriR It is absolutely normal, it's the way docker works. You do not have two different images and duplication, but two different tag for the same image. Don't worry about space limitation.

GowriR (Mon, 04 Jun 2018 07:22:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zovdQxi488NpWj8iv) @GuillaumeCisco Thanks. But I do not see 2. seil@beauty:~/hyledfabPoc/fabric-samples/first-network$ docker images REPOSITORY TAG IMAGE ID CREATE D SIZE hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 2 mont hs ago 299MB hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 2 mont hs ago 1.46GB hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 2 mont hs ago 180MB hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 2 mont hs ago 187MB hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 2 mont hs ago 1.52GB hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 2 mont hs ago 1.39GB hyperledger/fabric-couchdb x86_64-1.1.0-preview 5b8a15e6e972 7 mont hs ago 1.57GB hyperledger/fabric-kafka x86_64-1.1.0-preview cf09c5534ef9 7 mont hs ago 1.37GB hyperledger/fabric-zookeeper x86_64-1.1.0-preview ac127485fdc7 7 mont hs ago 1.37GB You have new mail in /var/mail/seil

GowriR (Mon, 04 Jun 2018 07:22:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zovdQxi488NpWj8iv) @GuillaumeCisco Thanks. But I do not see 2. seil@beauty:~/hyledfabPoc/fabric-samples/first-network$ docker images REPOSITORY TAG IMAGE ID CREATE D SIZE hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 2 mont hs ago 299MB hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 2 mont hs ago 1.46GB hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 2 mont hs ago 180MB hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 2 mont hs ago 187MB hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 2 mont hs ago 1.52GB hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 2 mont hs ago 1.39GB hyperledger/fabric-couchdb x86_64-1.1.0-preview 5b8a15e6e972 7 mont hs ago 1.57GB hyperledger/fabric-kafka x86_64-1.1.0-preview cf09c5534ef9 7 mont hs ago 1.37GB hyperledger/fabric-zookeeper x86_64-1.1.0-preview ac127485fdc7 7 mont hs ago 1.37GB You have new mail in /var/mail/seil Is the above ok?

ajmeraharsh (Mon, 04 Jun 2018 07:26:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AqvJuQAQX6cdkWbSw) @goelmayank simply nano `/etc/hosts` and add this line `127.0.0.1 peer0.org1.example.com peer1.org1.example.com peer0.org2.example.com peer1.org2.example.com`

GuillaumeCisco (Mon, 04 Jun 2018 07:28:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uWCidjHc88c4jNhZk) @GowriR It is not a problem. You can tag them yourself too in the future, if this is needed, but I don't think so. https://docs.docker.com/engine/reference/commandline/tag/

GowriR (Mon, 04 Jun 2018 07:28:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wH28hhTDeT5EbX7iC) @GuillaumeCisco That'a a relief. Thanks so much.

GuillaumeCisco (Mon, 04 Jun 2018 07:29:22 GMT):
@ajmeraharsh Do you know if this possible by setting a docker-compose configuration, ti make the `peer0.org1.example.com` reachable without modifying its `/etc/hosts`?

GuillaumeCisco (Mon, 04 Jun 2018 07:29:22 GMT):
@ajmeraharsh Do you know if this possible by setting a docker-compose configuration, to make the `peer0.org1.example.com` reachable without modifying its `/etc/hosts`?

GowriR (Mon, 04 Jun 2018 07:30:21 GMT):
I am building y first network by modifying crypto-config.yaml in the samples. I have two organisations the utility and the consumer organisations. The utility org has one peer (

GowriR (Mon, 04 Jun 2018 07:30:21 GMT):
I am building y first network by modifying crypto-config.yaml in the samples. I have two organisations the utility and the consumer organisations. The utility org has one peer (

GowriR (Mon, 04 Jun 2018 07:30:21 GMT):
I am building y first network by modifying crypto-config.yaml in the samples. I have two organisations the utility and the consumer organisations. The utility org has one peer (an endorsing peer) and 3 peers in the consumer organisation. 1. Is it ok to have just 1 peer in the utility organisation? 2. How many users should be there and templates? Pasting my modified crypto-config.yaml below. 3. What about the actual physical nodes where these peers would be? How should I specify that and do I need to bother about it? Thanks

GowriR (Mon, 04 Jun 2018 07:30:21 GMT):
I am building y first network by modifying crypto-config.yaml in the samples. I have two organisations the utility and the consumer organisations. The utility org has one peer (an endorsing peer) and 3 peers in the consumer organisation. 1. Is it ok to have just 1 peer in the utility organisation? 2. How many users should be there and templates? Pasting my modified crypto-config.yaml below. 3. What about the actual physical nodes where these peers would be? How should I specify that and do I need to bother about it? Thanks - Name: Orderer Domain: energybc.com - Hostname: orderer - Name: consumerorg Domain: consumerorg.energybc.com EnableNodeOUs: true Template: Count: 3 Users: Count: 3 - Name: utilityorg Domain: utilityorg.energybc.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1

GowriR (Mon, 04 Jun 2018 07:30:21 GMT):
I am building my first network by modifying crypto-config.yaml in the samples. I have two organisations the utility and the consumer organisations. The utility org has one peer (an endorsing peer) and 3 peers in the consumer organisation. 1. Is it ok to have just 1 peer in the utility organisation? 2. How many users should be there and templates? Pasting my modified crypto-config.yaml below. 3. What about the actual physical nodes where these peers would be? How should I specify that and do I need to bother about it? Thanks - Name: Orderer Domain: energybc.com - Hostname: orderer - Name: consumerorg Domain: consumerorg.energybc.com EnableNodeOUs: true Template: Count: 3 Users: Count: 3 - Name: utilityorg Domain: utilityorg.energybc.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1

ajmeraharsh (Mon, 04 Jun 2018 07:33:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ticS7zA8vZ6zHZhxY) @GuillaumeCisco yes putting it in `extra_hosts` but creation of network doesn't happen inside the docker. At least I don't do it that way

GuillaumeCisco (Mon, 04 Jun 2018 07:38:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d5FDSGkTMZWhKT3Ft) @ajmeraharsh I'm trying to modify the docker-compose.yaml file generated in this sample https://github.com/hyperledger/fabric-samples/tree/release-1.1/fabric-ca for reaching the peer from my own machine. The docker compose creates a private network. So putting `extra_hosts` should do the trick, you think?

ajmeraharsh (Mon, 04 Jun 2018 07:44:28 GMT):
@GuillaumeCisco No it won't. that's what I said

ajmeraharsh (Mon, 04 Jun 2018 07:45:22 GMT):
I am not sure what network topology you have configured, so not sure what you are building here

GuillaumeCisco (Mon, 04 Jun 2018 07:49:47 GMT):
Thank you for this piece of information @ajmeraharsh , the network created by this sample writes in the docker-compose file: ``` networks: fabric: ``` It then for each container description adds : ``` networks: - fabric ``` I'm not sure extra_hosts will work in this case

sandman4 (Mon, 04 Jun 2018 07:51:22 GMT):
Has joined the channel.

gut (Mon, 04 Jun 2018 08:42:49 GMT):
Hi. Endorsement question: How do you identify uniquely a new asset when different endorsers are involved in the endorsement policy? Since every endorser would generate a different UUID, the verification will see different writing sets...

yacovm (Mon, 04 Jun 2018 09:30:24 GMT):
@gut - the client can send a random string in the proposal

gut (Mon, 04 Jun 2018 09:35:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n6v3iwXhXsfuQWFWa) @yacovm That was my first idea, but letting the client such a decision seemed a bit ugly for me. But I think that's the lesser evil. Thanks.

yacovm (Mon, 04 Jun 2018 09:37:10 GMT):
it doesn't need to decide

yacovm (Mon, 04 Jun 2018 09:37:16 GMT):
it just needs to send a random seed

yacovm (Mon, 04 Jun 2018 09:37:40 GMT):
once you have the randomness, it is equivalent to set beforehand the seed to the RNG on the peers

yacovm (Mon, 04 Jun 2018 09:38:09 GMT):
they they can all run the same random generator based on the same "coin tossing experiment" outcome

yacovm (Mon, 04 Jun 2018 09:38:16 GMT):
and thus - reach the same ID

GowriR (Mon, 04 Jun 2018 10:56:22 GMT):
I modified the byfn sample to have my own network configuration (3 peers in org1 and 1 peer in org2 and peer0 in org2 connected to peer1 in org1 in one of the '.sh' files')

GowriR (Mon, 04 Jun 2018 10:56:22 GMT):
I modified the byfn sample to have my own network configuration (3 peers in org1 and 1 peer in org2 and peer0 in org2 connected to peer1 in org1 in one of the '.sh' files') I get the error on byfn.sh -m up -c energybcchannel ERROR: Named volume "peer0.utilityorg.energy.com:/var/hyperledger/production:rw" is used in service "peer0.utilityorg.energybc.com" but no declaration was found in the volumes section. ERROR !!!! Unable to start network

GowriR (Mon, 04 Jun 2018 10:56:22 GMT):
I modified the byfn sample to have my own network configuration (3 peers in org1 and 1 peer in org2 and peer0 in org2 connected to peer1 in org1 in one of the '.sh' files') I get the error on byfn.sh -m up -c energybcchannel ERROR: Named volume "peer0.utilityorg.energy.com:/var/hyperledger/production:rw" is used in service "peer0.utilityorg.energybc.com" but no declaration was found in the volumes section. ERROR !!!! Unable to start network Any idea what is it about? Thanks.

GowriR (Mon, 04 Jun 2018 11:54:24 GMT):
I get the following error: while trying to get the network up

GowriR (Mon, 04 Jun 2018 11:54:24 GMT):
I get the following error: while trying to get the network up CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/utilityorg.energybc.com/peers/peer0.utilityorg.energybc.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.energybc.com/tls/server.key CORE_PEER_LOCALMSPID=utilityorgMSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.energybc.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/utilityorg.energybc.com/users/Admin@utilityorg.energybc.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.utilityorg.energybc.com:7051 + peer channel join -b energybcchannel.block + res=1 + set +x 2018-06-04 11:50:31.891 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: Cannot create ledger from genesis block, due to LedgerID already exists)) Usage: peer channel join [flags]

GowriR (Mon, 04 Jun 2018 12:31:51 GMT):
Can a single peer in org2 exist? *I changed the ./scripts/utils.sh to elif [ $ORG -eq 2 ] ; then CORE_PEER_LOCALMSPID="consumerorgMSP" *CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.co$ CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/users/Admin@consum$ if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.utilityorg.energybc.com:7051 #else # CORE_PEER_ADDRESS=peer0.consumerorg.energybc.com:7051 fi because...docker-compose-cli.yaml has cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.consumerorg.energybc.com:7051 - CORE_PEER_LOCALMSPID=consumerorgMSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.en$ - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.ene$ - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumeror$ - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/users/Admin@consumerorg.en$ working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.energybc.com - peer0.consumerorg.energybc.com - peer1.consumerorg.energybc.com - peer2.consumerorg.energybc.com - *peer0.utilityorg.energybc.com* networks: - energybcnetwork When I *up the network using byfn.sh, peer0 in org2 can't join the channel.* Please help.

GowriR (Mon, 04 Jun 2018 12:31:51 GMT):
Can a single peer in org2 exist? *I changed the ./scripts/utils.sh to elif [ $ORG -eq 2 ] ; then CORE_PEER_LOCALMSPID="consumerorgMSP" *CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.co$ CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/users/Admin@consum$ if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.utilityorg.energybc.com:7051 #else # CORE_PEER_ADDRESS=peer0.consumerorg.energybc.com:7051 fi because...docker-compose-cli.yaml has cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.consumerorg.energybc.com:7051 - CORE_PEER_LOCALMSPID=consumerorgMSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.en$ - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumerorg.ene$ - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/peers/peer0.consumeror$ - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/consumerorg.energybc.com/users/Admin@consumerorg.en$ working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.energybc.com - peer0.consumerorg.energybc.com - peer1.consumerorg.energybc.com - peer2.consumerorg.energybc.com - *peer0.utilityorg.energybc.com* networks: - energybcnetwork When I *up the network using byfn.sh, peer0 in org2 can't join the channel.* Please help. The output is pasted below set +x Error: Error getting endorser client channel: endorser client failed to connect to peer0.utilityorg.energybc.com:7051: failed to create new connection: context deadline exceeded + peer channel join -b energybcchannel.block + res=1 *peer cant join the channel* Thanks

mastersingh24 (Mon, 04 Jun 2018 13:09:14 GMT):
@GowriR - what error are you getting?

AnthonyRoux (Mon, 04 Jun 2018 13:33:12 GMT):
Hi to all. The binairies of fabric-linux-amd64 1.1.0 that you can get following this link are unreachable R.C:504 gateway time-out. Any Idea why ?

AnthonyRoux (Mon, 04 Jun 2018 13:33:12 GMT):
Hi to all. The binairies of fabric-linux-amd64 1.1.0 that you can get following this link https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.1.0/ are unreachable R.C:504 gateway time-out. Any Idea why ?

vick (Mon, 04 Jun 2018 14:08:02 GMT):
anyone know how i can skip the unit tests when building the fabric go code?

vick (Mon, 04 Jun 2018 14:08:14 GMT):
and integration tests

vick (Mon, 04 Jun 2018 14:11:10 GMT):
@mastersingh24 @yacovm would you guys happen to know?

edwardsm26 (Mon, 04 Jun 2018 14:22:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wHZ89J4bkLGXNTvWv) @vick I believe I am already using this organization's admin based on this code ``` `admin = await client.createUser({ username: 'peer' + org + 'Admin', mspid: configuration.getMspID(org), cryptoContent: { privateKeyPEM: keyPEM, signedCertPEM: certPEM }, skipPersistence: false }); client.setAdminSigningIdentity(keyPEM, certPEM, configuration.getMspID(org));` ``` is this the correct way to set the admin for the org?

vick (Mon, 04 Jun 2018 14:24:14 GMT):
'peer' + org + 'Admin' @edwardsm26 is that user actually set at the admin in the CA?

edwardsm26 (Mon, 04 Jun 2018 14:39:37 GMT):
@vick I don't think I have set anything using CA.. so first that has to be registered/set as admin in CA and then I can use it to install chaincode on the client side?

vick (Mon, 04 Jun 2018 14:40:13 GMT):
yeah, inside the yaml file for the CA that's where the admins are defined i think

edwardsm26 (Mon, 04 Jun 2018 15:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XsWiWhwEZapudpEnF) @vick yea , my team currently was not using the CA so we have to include that. Thank you for your help.

zachmiller (Mon, 04 Jun 2018 15:53:13 GMT):
Has joined the channel.

anugu (Mon, 04 Jun 2018 18:20:27 GMT):
Has joined the channel.

rogeriob2br (Mon, 04 Jun 2018 20:08:27 GMT):
Has joined the channel.

SjirNijssen (Mon, 04 Jun 2018 20:09:23 GMT):
Fabric experts: The Hyperledger T & E WG approved today the following: "•Proposed transaction: Let us select the 15 most essential concepts (is not terms) in Fabric, Sawtooth, Burrow and Iroha, and describe clearly, using illustrating relevant examples, understandable to end users and management, how they relate, overlap and where they are different; look forward to endorsements." On behalf of the WG I submit to you the first two concepts descriptions: A blockchain is an append-only data structure; a blockchain (instance) consists at any moment in time of a number of blocks. A block contains a number of transactions. The contents of a block is encrypted and each block contains a hash of major parts. It contains also a copy of the hash of the previous block and this is the reason for the term chain. A transaction proposal is a proposal by a client application or administrator to the blockchain network community. The network community can decide to make the transaction proposal a valid transaction, or is classified as an invalid transaction. Please let us know which improvements you want to make to these two concept definitions. Thanks

yacovm (Mon, 04 Jun 2018 20:12:47 GMT):
> The contents of a block is encrypted Is not.

yacovm (Mon, 04 Jun 2018 20:13:37 GMT):
> each block contains a hash of major parts a hash of... what?

yacovm (Mon, 04 Jun 2018 20:13:44 GMT):
a block just contains transactions

yacovm (Mon, 04 Jun 2018 20:15:59 GMT):
> The network community can decide to make the transaction proposal a valid transaction, or is classified as an invalid transaction No, the so called "network community" decides whether the *transaction* is valid, not the proposal. You send the proposal to peers, to get the transaction simulated and also signed which is an attestation of correct execution.

Gaoqi (Mon, 04 Jun 2018 20:32:49 GMT):
Has joined the channel.

GowriR (Tue, 05 Jun 2018 04:06:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MBryHFxt65Q9DtbaQ) @mastersingh24 Sorry. Missed pasting the message + set +x Error: Error getting endorser client channel: endorser client failed to connect to peer0.utilityorg.energybc.com:7051: failed to create new connection: context deadline exceeded + peer channel join -b energybcchannel.block + res=1 *peer cant join the channel*

titoe218 (Tue, 05 Jun 2018 04:40:46 GMT):
By default, Hyperledger Fabric stored many certificates in transaction before they save to blockchain. Is there anyway or any ideas/techniques to reduce transaction size in blockchain? Any ideas really appriciated!

michielmulders (Tue, 05 Jun 2018 06:29:10 GMT):
Hi guys, I was wondering what would happen in this scenario: Setup: A private HLF network of 10 nodes, each country has 1 node.

michielmulders (Tue, 05 Jun 2018 06:29:36 GMT):
What if a country decides to upload a new version of the smart contract (all nodes have) which contains some beneficial code for the uploader.

michielmulders (Tue, 05 Jun 2018 06:31:03 GMT):
What will happen if this one node has a different smart contract than the others. Will the node be dropped out of the network or will the other nodes accept the new contract? On what does this depend? Can you answer this question as well in terms of network policies and how this affects it?

yacovm (Tue, 05 Jun 2018 06:38:17 GMT):
@michielmulders depends if the node is honest or not

michielmulders (Tue, 05 Jun 2018 07:06:52 GMT):
Not it is not honest?

akoenig (Tue, 05 Jun 2018 07:12:09 GMT):
@michielmulders good question. What I ask here is this point "Will the node be dropped out of the network or will the other nodes accept the new contract?" Will the other countries know that is there an other / new contract?

Ammu (Tue, 05 Jun 2018 07:13:37 GMT):
how to retrieve all data's from couch db?

michielmulders (Tue, 05 Jun 2018 07:30:23 GMT):
@akoenig no, the other countries won't know he has uploaded a new contract?

GowriR (Tue, 05 Jun 2018 09:14:29 GMT):
hello all, i have modified the byfn and set up the network with 3 peers in org 1 and 2 peers in org2. all are running on a server. how is this relate to physically - the server nodes? Should the 3 peers in org1 and 2 peers in org 2 ideally be on atleast 5 different server nodes? How do i do that?

GowriR (Tue, 05 Jun 2018 09:14:29 GMT):
hello all, i have modified the byfn and set up the network with 3 peers in org 1 and 2 peers in org2. all are running on a server. how is this relate to physically - the server nodes? Should the 3 peers in org1 and 2 peers in org 2 ideally be on atleast 5 different server nodes? How do i do that? Do i have to do the same process on 5 nodes and the clients? (I will have 5 clients too - one for each peer in the org?)

Marc.K (Tue, 05 Jun 2018 09:46:33 GMT):
Hey Guys, Is it possible to have a node (docker container) use multiple identities (certificates) without starting a node per identity or is this not intended?

risabhsharma71 (Tue, 05 Jun 2018 10:17:18 GMT):
how to create attribute based access control in fabric like there is same in composer..any example link would be very helpful

gravity (Tue, 05 Jun 2018 10:17:36 GMT):
Hello @jrosmith Could you please give me a clue, how to start chaincode containers after network restart? Thanks in advance

AshishMishra 1 (Tue, 05 Jun 2018 10:17:50 GMT):
Hi guys, I 'm trying to add an org to my n/w and getting some fingerprint errors. :rolling_eyes: peer_peer1.1.bkr5fyw9shzd@server2 | 2018-06-05 10:10:37.031 UTC [endorser] simulateProposal -> ERRO 2e29 [testchannel1][cbb64164] failed to invoke chaincode name:"mycc" , error: get ChaincodeDeploymentSpec for mycc/testchannel1 from LSCC error: chaincode fingerprint mismatch data mismatch Can someone help me understand the issue?

anjalinaik (Tue, 05 Jun 2018 11:44:18 GMT):
Hi All .Can somebody please explain what below error is about.*Error from query = access denied: channel [mychannel] creator org [org1]*. I have a vague idea that it is caused due to revoking of certificates, But Along the process of setting up the network i haven't manually revoked any certificates. May i please know why this error is occurring? and also the error is not consistent.

anjalinaik (Tue, 05 Jun 2018 11:44:18 GMT):
Hi All .Can somebody please explain what below error is about.*Error from query = access denied: channel [mychannel] creator org [org1]*. I have a vague idea that it is caused due to revoking of certificates, But Along the process of setting up the network i haven't manually revoked any certificates. May i please know why this error is occurring? and also the error is not consistent.

MarceloAzevedo (Tue, 05 Jun 2018 11:49:04 GMT):
hello @anjalinaik, can you please give some more details about what are u trying to do?

midhun14 (Tue, 05 Jun 2018 12:31:03 GMT):
How can I send a response from an event listener back to chaincode

pankajcheema (Tue, 05 Jun 2018 12:39:48 GMT):
Does hyperledger fabric support unique fields?

adityasingh177 (Tue, 05 Jun 2018 13:01:03 GMT):
Has joined the channel.

senthilkumarr (Tue, 05 Jun 2018 14:35:11 GMT):
Has joined the channel.

iamsg43 (Tue, 05 Jun 2018 15:28:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fn6qmhCIOvuBDnshmm) @umtyzc I Use Ubuntu OS

iamsg43 (Tue, 05 Jun 2018 15:28:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fn6qmhCIOvuBDnshmm) @umtyzc

Spar (Tue, 05 Jun 2018 15:55:28 GMT):
Has joined the channel.

vick (Tue, 05 Jun 2018 16:38:43 GMT):
I have a question about the internals of Fabric, in the class; blockwriter.go there's a function called 'CreateNextBlock'; `func (bw *BlockWriter) CreateNextBlock(messages []*cb.Envelope) *cb.Block` this function takes a collection of messages, however from the Fabric SDK i can see it is only sending one message. Where are these message collected before being pushed to this method? if i check for usages of this method they only occur in two places and both are unit tests, neither are passing a collection of messages

vick (Tue, 05 Jun 2018 16:59:44 GMT):
also does anyone know if there is a java equivalent of the proto.Marshal that is used in the go code?

berkayxx95 (Tue, 05 Jun 2018 18:23:34 GMT):
Has joined the channel.

berkayxx95 (Tue, 05 Jun 2018 18:23:52 GMT):
Hello, I am trying to run the first network on http://hyperledger-fabric.readthedocs.io/en/release-1.0/samples.html but I am constantly getting errors when I try to run it with ./byfn.sh -m generate #fabric-questions

berkayxx95 (Tue, 05 Jun 2018 18:24:10 GMT):

final.PNG

fgomezotero (Tue, 05 Jun 2018 18:37:48 GMT):
Has joined the channel.

amdraza (Tue, 05 Jun 2018 18:44:33 GMT):
Has joined the channel.

amdraza (Tue, 05 Jun 2018 18:44:43 GMT):
Hello everyone

amdraza (Tue, 05 Jun 2018 18:44:50 GMT):
I am new to Hyperledger community

amdraza (Tue, 05 Jun 2018 18:45:14 GMT):
I want to implement Hyperledger fabric for my existing product

amdraza (Tue, 05 Jun 2018 18:45:34 GMT):
can someone guide me that is it a good idea to use Hyperledger fabric for this?

MarceloAzevedo (Tue, 05 Jun 2018 19:06:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7WX3GyLBxPqvyqJzK) @berkayxx95 hello @berkayxx95, you can try the most updated tutorial since u are using 1.0 release instead of the 1.1: http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html

Spar (Tue, 05 Jun 2018 19:07:57 GMT):
My understanding is there would be a request to instantiate the new contract.

Spar (Tue, 05 Jun 2018 19:08:59 GMT):
@michielmulders

berkayxx95 (Tue, 05 Jun 2018 20:07:49 GMT):
@MarceloAzevedo Still the same. But, this time it generated the network, and I realized that the curl installed more docker images.

berkayxx95 (Tue, 05 Jun 2018 20:08:00 GMT):
When I ran the up command, it died

berkayxx95 (Tue, 05 Jun 2018 20:12:56 GMT):
I think the error is caused due to path. I'll attach the picture of the error. I tried the export command, but it says no such path. I use export PATH=/bin:$PATH

berkayxx95 (Tue, 05 Jun 2018 20:13:10 GMT):

4.PNG

berkayxx95 (Tue, 05 Jun 2018 20:15:20 GMT):
Actually I exported when I took <> out. But still I get the same error

voutasaurus (Tue, 05 Jun 2018 20:24:50 GMT):
Creating a wallet is taking more than a minute (timing out but later succeeding) and I'm trying to figure out if it's composer that is blocking or the fabric orderer or the peer. The orderer and the peer are set up on IBMs side but the setup is brand new so my guess is there's a misconfiguration. How can I find out what is going on?

voutasaurus (Tue, 05 Jun 2018 20:30:36 GMT):
Is there an easy way that I can bypass composer and send the request directly to fabric?

voutasaurus (Tue, 05 Jun 2018 20:33:48 GMT):
That would tell me whether it's the orderer/peer being slow or composer

voutasaurus (Tue, 05 Jun 2018 20:34:08 GMT):
Like maybe the cli can do something?

CollinSanborn (Wed, 06 Jun 2018 00:06:19 GMT):
Has joined the channel.

nfrunza (Wed, 06 Jun 2018 00:17:40 GMT):
Anyone wants to contribute to HL Explorer

bephrem (Wed, 06 Jun 2018 02:24:25 GMT):
Has joined the channel.

bephrem (Wed, 06 Jun 2018 02:24:44 GMT):
hello all

bephrem (Wed, 06 Jun 2018 02:24:54 GMT):
does anyone recognize this error ```Error response from daemon: Container e5a071483c5c4a001423373542c9de8f3e83ff8d6083de8c4fe10ee95a420705 is not running```

bephrem (Wed, 06 Jun 2018 02:25:37 GMT):
I get it running the `startFabric` Script

bephrem (Wed, 06 Jun 2018 02:26:02 GMT):
```version: '2' services: peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer:$ARCH-1.1.0 environment: - CORE_LOGGING_LEVEL=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_PEER_ADDRESS=peer1.org1.example.com:7051 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=composer_default - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/peer/msp - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start ports: - 7051:7051 - 7053:7053 volumes: - /var/run/:/host/var/run/ - ./:/etc/hyperledger/configtx - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/peer/msp - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users depends_on: - couchdb couchdb: container_name: couchdb image: hyperledger/fabric-couchdb:$ARCH-0.4.6 ports: - 5984:5984 environment: DB_URL: http://localhost:5984/member_db ```

bephrem (Wed, 06 Jun 2018 02:26:58 GMT):
Im configuring a 2nd VPS to follow this example: https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ except with a network that has 3 machines (a peer on each machine with the ca and orderer on the same machine as peer0)

bephrem (Wed, 06 Jun 2018 02:27:34 GMT):
but like I said the start script keeps crashing, here is the start script:

bephrem (Wed, 06 Jun 2018 02:28:48 GMT):
```#!/bin/bash # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Exit on first error, print all commands. set -e Usage() { echo "" echo "Usage: ./startFabric.sh [-d || --dev]" echo "" echo "Options:" echo -e "\t-d or --dev: (Optional) enable fabric development mode" echo "" echo "Example: ./startFabric.sh" echo "" exit 1 } Parse_Arguments() { while [ $# -gt 0 ]; do case $1 in --help) HELPINFO=true ;; --dev | -d) FABRIC_DEV_MODE=true ;; esac shift done } Parse_Arguments $@ if [ "${HELPINFO}" == "true" ]; then Usage fi #Detect architecture ARCH=`uname -m` # Set default sleep time on started FABRIC_START_TIMEOUT=15 # Grab the current directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ "${FABRIC_DEV_MODE}" == "true" ]; then DOCKER_FILE="${DIR}"/composer/docker-compose-dev.yml else DOCKER_FILE="${DIR}"/composer/docker-compose.yml fi ARCH=$ARCH docker-compose -f "${DOCKER_FILE}" down ARCH=$ARCH docker-compose -f "${DOCKER_FILE}" up -d # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= echo "sleeping for ${FABRIC_START_TIMEOUT} seconds to wait for fabric to complete start up" sleep ${FABRIC_START_TIMEOUT} # Fetch the channel block for 'composerchannel' docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel fetch config -o :7050 -c composerchannel # Join peer1 to the channel with the block file docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b composerchannel_config.block if [ "${FABRIC_DEV_MODE}" == "true" ]; then echo "Fabric Network started in chaincode development mode" fi ```

bephrem (Wed, 06 Jun 2018 02:28:48 GMT):
```#!/bin/bash # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Exit on first error, print all commands. set -e Usage() { echo "" echo "Usage: ./startFabric.sh [-d || --dev]" echo "" echo "Options:" echo -e "\t-d or --dev: (Optional) enable fabric development mode" echo "" echo "Example: ./startFabric.sh" echo "" exit 1 } Parse_Arguments() { while [ $# -gt 0 ]; do case $1 in --help) HELPINFO=true ;; --dev | -d) FABRIC_DEV_MODE=true ;; esac shift done } Parse_Arguments $@ if [ "${HELPINFO}" == "true" ]; then Usage fi #Detect architecture ARCH=`uname -m` # Set default sleep time on started FABRIC_START_TIMEOUT=15 # Grab the current directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ "${FABRIC_DEV_MODE}" == "true" ]; then DOCKER_FILE="${DIR}"/composer/docker-compose-dev.yml else DOCKER_FILE="${DIR}"/composer/docker-compose.yml fi ARCH=$ARCH docker-compose -f "${DOCKER_FILE}" down ARCH=$ARCH docker-compose -f "${DOCKER_FILE}" up -d # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= echo "sleeping for ${FABRIC_START_TIMEOUT} seconds to wait for fabric to complete start up" sleep ${FABRIC_START_TIMEOUT} # Fetch the channel block for 'composerchannel' docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel fetch config -o :7050 -c composerchannel # Join peer1 to the channel with the block file docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b composerchannel_config.block if [ "${FABRIC_DEV_MODE}" == "true" ]; then echo "Fabric Network started in chaincode development mode" fi ```

bephrem (Wed, 06 Jun 2018 02:30:09 GMT):
with `` just being the ip of the orderer which is a straight mapping to the internal container 7050:7050

bephrem (Wed, 06 Jun 2018 02:30:54 GMT):
I have no idea what to do at this point, I've followed all debugging leads

bephrem (Wed, 06 Jun 2018 02:32:30 GMT):
docker logs dont say much except that it crashes when a `docker exec` command is ran on a container that doesn't exist and on further debugging the container does not ever get made although the console says `done` in green

bephrem (Wed, 06 Jun 2018 02:32:35 GMT):
```- Logs begin at Tue 2018-06-05 11:27:43 EDT. -- Jun 05 22:19:28 vps188103 dockerd[21561]: time="2018-06-05T22:19:28-04:00" level=info msg="shim reaped" id=bac2c8985330fb522920063087c0aa175ea5178a9c264a87260ff765df4a5a55 module="containerd/tasks" Jun 05 22:19:28 vps188103 dockerd[21561]: time="2018-06-05T22:19:28.655552052-04:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" Jun 05 22:19:43 vps188103 dockerd[21561]: time="2018-06-05T22:19:43.725062319-04:00" level=error msg="Error setting up exec command in container peer1.org1.example.com: Container bac2c8985330fb522920063087c0aa175ea5178a9c264a87260ff765df4a5a55 is not running" Jun 05 22:20:44 vps188103 dockerd[21561]: time="2018-06-05T22:20:44-04:00" level=info msg="shim reaped" id=61afd4fb50bf7fe6dd79a03ac3d88edf24a09ac307b98332c2c9ec2c9684683d module="containerd/tasks" Jun 05 22:20:44 vps188103 dockerd[21561]: time="2018-06-05T22:20:44.067732164-04:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" Jun 05 22:20:45 vps188103 dockerd[21561]: time="2018-06-05T22:20:45-04:00" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/99bc235ce15ba872b7c913c42ef19cc484b58bd3a3b6e3cf5e62392e6c96a396/shim.sock" debug=false module="containerd/tasks" pid=6135 Jun 05 22:20:45 vps188103 dockerd[21561]: time="2018-06-05T22:20:45-04:00" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/e5a071483c5c4a001423373542c9de8f3e83ff8d6083de8c4fe10ee95a420705/shim.sock" debug=false module="containerd/tasks" pid=6282 Jun 05 22:20:46 vps188103 dockerd[21561]: time="2018-06-05T22:20:46-04:00" level=info msg="shim reaped" id=e5a071483c5c4a001423373542c9de8f3e83ff8d6083de8c4fe10ee95a420705 module="containerd/tasks" Jun 05 22:20:46 vps188103 dockerd[21561]: time="2018-06-05T22:20:46.117569872-04:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" Jun 05 22:21:01 vps188103 dockerd[21561]: time="2018-06-05T22:21:01.178229393-04:00" level=error msg="Error setting up exec command in container peer1.org1.example.com: Container e5a071483c5c4a001423373542c9de8f3e83ff8d6083de8c4fe10ee95a420705 is not running"```

bephrem (Wed, 06 Jun 2018 02:33:57 GMT):
and this is happening on the 2nd VPS on the network (to hold peer1 aka the 2nd peer), 1st VPS runs fine spawning the ca, orderer, and peer0

bephrem (Wed, 06 Jun 2018 02:34:31 GMT):
it'd be a miracle if we could solve this before launch so we could actually launch our network and have it integrate with legacy systems

jrosmith (Wed, 06 Jun 2018 04:24:17 GMT):
@gravity after youve restarted the network install/instantiate the chaincode again. instantiating the chaincode will bring up the cc container on the peer that you have executed instantiate against. for all other peers, a transaction will need to be run against it for the cc containers to come up.

wcordelo (Wed, 06 Jun 2018 04:29:21 GMT):
Has joined the channel.

James_Munson (Wed, 06 Jun 2018 04:46:08 GMT):
Has joined the channel.

anilkumar1998 (Wed, 06 Jun 2018 04:59:06 GMT):
Has joined the channel.

anilkumar1998 (Wed, 06 Jun 2018 04:59:23 GMT):
Hi! I am new to hyper ledger fabric.I have a doubt .Is it a piece of code that runs on endorsing peers machine when a transaction is submitted to block chain in hyper ledger fabric?

jrosmith (Wed, 06 Jun 2018 05:01:41 GMT):
@anilkumar1998 what you are referring to is called 'chaincode' in the fabric framework

anilkumar1998 (Wed, 06 Jun 2018 05:03:47 GMT):
So why would we require so many endorsing peers to validate the transaction as it a code to be executed and for the same input they will produce the same output?

chanhvq17 (Wed, 06 Jun 2018 05:04:05 GMT):
Has joined the channel.

jrosmith (Wed, 06 Jun 2018 05:07:15 GMT):
@anilkumar1998 you can set which peers are required to sign off on a transaction in the endorsement policy. yes, ideally the chaincode is deterministic and it will produce the same output, but what happens if there is an untrustworthy node that has made modifications to the way in which something is written to the ledger? the whole point of blockchain is for there to be network consensus. if a single entity is allowed to declare the world state is whatever they desire it to be, it ruins the whole point

jrosmith (Wed, 06 Jun 2018 05:07:34 GMT):
[these docs](http://hyperledger-fabric.readthedocs.io/en/release-1.1/key_concepts.html) will help you understand

anilkumar1998 (Wed, 06 Jun 2018 05:17:16 GMT):
@jrosmith Thankyou! I got some idea now.

midhun14 (Wed, 06 Jun 2018 05:35:46 GMT):
@jrosmith How to send a response from chaincode event listener back to chaincode? I tried using invokechaincode to call a particular function in chaincode,but its showing premature exection error

jrosmith (Wed, 06 Jun 2018 05:42:21 GMT):
@midhun14 thats not how event listeners work. they connect to a peer and then listen for events so they can respond appropriately within an application. its not an open bidirectional stream between an event listener and the chaincode.

jrosmith (Wed, 06 Jun 2018 05:42:21 GMT):
@midhun14 thats not how event listeners work. they connect to a peer and then listen for events so they can respond appropriately within an application. its not an open bidirectional stream between an event listener and the chaincode. 'premature execution' errors usually refer to a chaincode container not being launched yet.

GowriR (Wed, 06 Jun 2018 06:07:43 GMT):
hello all, from the error below - how do identify which image it is trying to pull? 2018-06-06 05:57:11.136 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 12AAB09DC3843B1450DCC0F798794AFA7C69B5219DBE200A48B77463A2235469 Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/db/dbe6787b57471127bc063dbd392459dcf234d9380c74f60b758bf2019a51afa1/data?verify=1528267893-IHlUfUfIkifNLCA5xrWD8p2zt1U%3D: net/http: TLS handshake timeout Usage: peer chaincode instantiate [flags]

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody help me understand what the below error is about. I am trying to create a channel.*Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining*

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody help me understand what the below error is about. I am trying to create a channel.Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody help me understand what the below error is about. I am trying to create a channel.Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody help me understand what the below error is about. I am trying to create a channel.Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody help me understand what the below error is about. I am trying to create a channel.Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

anjalinaik (Wed, 06 Jun 2018 07:10:39 GMT):
Hi All.. can anybody please help me understand what the below error is about. I am trying to create a channel.Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

gravity (Wed, 06 Jun 2018 07:25:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NesRb89v3FNizrZMt) @jrosmith thanks!

GowriR (Wed, 06 Jun 2018 07:44:50 GMT):
where is the fabcar chaincode on github? Thanks

anjalinaik (Wed, 06 Jun 2018 07:49:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gZhXfeSSgi2atYk4J) @GowriR https://github.com/hyperledger/fabric-samples/tree/release-1.1/fabcar

GowriR (Wed, 06 Jun 2018 07:51:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cL3wfnksG2uL5ZvBD) @anjalinaik Hi Anjali, docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n fabcar -v 1.1 -p github.com/fabcar -l "node" This command fails - 2018-06-06 07:41:06.865 UTC [grpc] Printf -> DEBU 001 grpc: addrConn.resetTransp ort failed to create client transport: connection error: desc = "transport: Erro r while dialing dial tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no suc h host"; Reconnecting to {peer0.org1.example.com:7051 }

GowriR (Wed, 06 Jun 2018 07:51:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cL3wfnksG2uL5ZvBD) @anjalinaik Hi Anjali, docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n fabcar -v 1.1 -p github.com/fabcar -l "node" This command fails - 2018-06-06 07:41:06.865 UTC [grpc] Printf -> DEBU 001 grpc: addrConn.resetTransp ort failed to create client transport: connection error: desc = "transport: Erro r while dialing dial tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no suc h host"; Reconnecting to {peer0.org1.example.com:7051 } I was wondering if the github.com/fabcar address is wrong

LuisCoelho (Wed, 06 Jun 2018 08:04:39 GMT):
Has joined the channel.

anjalinaik (Wed, 06 Jun 2018 08:35:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iRq9ywtWEBHYCARKq) @GowriR /opt/gopath/src/github.com/ this is your gopath. make sure you set your gopath correctly

LuisCoelho (Wed, 06 Jun 2018 09:02:10 GMT):
Hi everyone... I've been reading what people has been saying here.. but really seems everyone is very advanced. I read the docs, installed Ubuntu on a VirtualBox VM.. and created the first network following the ZeroToBlockchain video. What is your recommendation to start?

GowriR (Wed, 06 Jun 2018 09:12:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DjsKdY6ejwfQHNRR4) @LuisCoelho I started with the hyperledger fabric docs

GowriR (Wed, 06 Jun 2018 09:24:29 GMT):
hello all, I am getting an error while doing "peer chaincode instantiate" peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member')" 2018-06-06 09:13:48.674 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-06-06 09:13:48.674 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-06-06 09:13:48.674 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-06-06 09:13:48.674 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-06-06 09:13:48.674 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-06-06 09:13:48.675 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA7070A6708031A0C08CCCBDED80510...314D53500A04657363630A0476736363 2018-06-06 09:13:48.675 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: AF66E84EF71C45543F01BBE1C82CB438FAC399E650407A08BD84767A0F57AED1 Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/22/220e5cf3fb7f54b6d2081a9fe09d5c40f03796f7a49c8bf9360c8b859a711749/data?verify=1528279438-0YW1fsh4BYAFnSKcUP8sevs9dOw%3D: net/http: TLS handshake timeout

GowriR (Wed, 06 Jun 2018 09:24:29 GMT):
hello all, I am getting an error while doing "peer chaincode instantiate". Seems to be an endorsement error. Please help. peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member')" 2018-06-06 09:13:48.674 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-06-06 09:13:48.674 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-06-06 09:13:48.674 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-06-06 09:13:48.674 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-06-06 09:13:48.674 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-06-06 09:13:48.675 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA7070A6708031A0C08CCCBDED80510...314D53500A04657363630A0476736363 2018-06-06 09:13:48.675 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: AF66E84EF71C45543F01BBE1C82CB438FAC399E650407A08BD84767A0F57AED1 Error: *Error endorsing chaincode: rpc error: code* = Unknown desc = error starting container: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/22/220e5cf3fb7f54b6d2081a9fe09d5c40f03796f7a49c8bf9360c8b859a711749/data?verify=1528279438-0YW1fsh4BYAFnSKcUP8sevs9dOw%3D: net/http: TLS handshake timeout

GowriR (Wed, 06 Jun 2018 09:25:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uA4t2YR3LuQKSeXPL) @anjalinaik Thanks Anjali

anjalinaik (Wed, 06 Jun 2018 09:49:25 GMT):
Hi All. Can Somebody please help me with below error? `Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium

anjalinaik (Wed, 06 Jun 2018 09:49:25 GMT):
Hi All. Can Somebody please help me with below error? `Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium`

anilkumar1998 (Wed, 06 Jun 2018 10:02:20 GMT):
how to make a peer a endorsing peer and to make a peer committing peer? Is permissions.acl file in the composer called as chain code?

LuisCoelho (Wed, 06 Jun 2018 10:12:30 GMT):
@GowriR are you running blockchain on Windows? Ubuntu? It seems very hard go through all command line steps, then some fail... then all of a sudden I got the network created..

GowriR (Wed, 06 Jun 2018 10:14:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DjsKdY6ejwfQHNRR4) @LuisCoelho I am just starting like you as well. I did not want to use Bluemix since i did not want to get stuck with the "first free" and then "paid" option. Running it on a docker on ubuntu. Yes many fail.

LuisCoelho (Wed, 06 Jun 2018 10:15:10 GMT):
@GowriR I read the docs a couple of times.. I understand the concepts and all of that, but how to start actually writing code and testing things... submitting transactions.. querying the database... I can't figure out

LuisCoelho (Wed, 06 Jun 2018 10:16:05 GMT):
@GowriR that's fine... I am starting as well... it's my second week breaking stone. Being a .net developer this is a completely different paradigm

GowriR (Wed, 06 Jun 2018 10:16:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4rpDrz48e2W2DZdQm) @LuisCoelho go through the byfn and fabcar sample and change it according to your needs. submitting transactions and querying will be through chaincode (fabcar sample)

LuisCoelho (Wed, 06 Jun 2018 10:17:49 GMT):
@GowriR are you working on native ubuntu? or hosting a Ubuntu VM on WindowS?

GowriR (Wed, 06 Jun 2018 10:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uP43rPrpq4BkZeYwb) @LuisCoelho native ubuntu and using a docker environment

GowriR (Wed, 06 Jun 2018 10:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uP43rPrpq4BkZeYwb) @LuisCoelho native ubuntu and using a docker environment and connecting to the machine using putty on the commandline. It would be good to hear from others too as to what they are doing

LuisCoelho (Wed, 06 Jun 2018 10:21:32 GMT):
@GowriR Indeed, would be great to hear from others what they're doing. It's very easy to over-complicate

LuisCoelho (Wed, 06 Jun 2018 10:22:18 GMT):
@GowriR Do you mind if I ask what type of developer are you? Java? C++? C#? ...

GowriR (Wed, 06 Jun 2018 10:23:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3fb5Wvj8QP9qfXab) @LuisCoelho not an expert but understand bit all 3.

GowriR (Wed, 06 Jun 2018 10:23:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3fb5Wvj8QP9qfXab) @LuisCoelho this needs loads of linux shell scripting too

LuisCoelho (Wed, 06 Jun 2018 10:25:40 GMT):
@GowriR So I believe you are "fishing" as I am. I managed to create the network.. got the api endpoint and the network ip address... but now it's hard to know the next step

GowriR (Wed, 06 Jun 2018 10:27:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cCqtE3oPJZwFKpLJj) @LuisCoelho next would be to write a smart contract and transact. I am trying to run the fabcar example on the hyperleder official doc

LuisCoelho (Wed, 06 Jun 2018 10:29:36 GMT):
@GowriR are you using GoLang or NodeJs for smart contracts?

GowriR (Wed, 06 Jun 2018 10:30:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WRPn4gHt6qhQ76EFk) @LuisCoelho I have not reached there yet but plan to use nodejs.

GowriR (Wed, 06 Jun 2018 10:33:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WRPn4gHt6qhQ76EFk) @LuisCoelho and i feel it is better to go through hyperledger and not bluemix since the abstractions are removed and hence it will help us understand everything better, though the climb maybe different

GowriR (Wed, 06 Jun 2018 10:33:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WRPn4gHt6qhQ76EFk) @LuisCoelho and i feel it is better to go through hyperledger and not bluemix since the abstractions are removed and hence it will help us understand everything better, though the climb maybe difficult

username343 (Wed, 06 Jun 2018 10:43:06 GMT):
Hi guys

LuisCoelho (Wed, 06 Jun 2018 10:43:15 GMT):
@username343 Hi

username343 (Wed, 06 Jun 2018 10:43:44 GMT):
I'm aware of the hyperleder explorer. But is there any utility that loads the block data from hyperledger fabric to a sql/nosql database

username343 (Wed, 06 Jun 2018 10:44:10 GMT):
I think that was a stupid question

LuisCoelho (Wed, 06 Jun 2018 10:50:06 GMT):
@username343 Sorry , can't help much on that.

BhavyaC (Wed, 06 Jun 2018 11:15:30 GMT):
Has joined the channel.

BhavyaC (Wed, 06 Jun 2018 11:17:19 GMT):
Hey, need to setup a multi organisation

BhavyaC (Wed, 06 Jun 2018 11:17:35 GMT):
can i get some inputs on this

BhavyaC (Wed, 06 Jun 2018 11:23:47 GMT):
As of now I was able to create two org within same channel, however the data across is same for both orgs i.e, shared ledger. But I'm looking for dedicated ledger for each organisations, with a gateway between the ledgers ?

GowriR (Wed, 06 Jun 2018 11:39:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tQaKE3p5QerdpTjxE) I am still grappling with this error. Any help would be appreciated

GowriR (Wed, 06 Jun 2018 12:12:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CXHjBJwaBrKFX39yZ) This is while running the fabcar example

Colasg (Wed, 06 Jun 2018 12:18:23 GMT):
Hey, is it possible to add an object from one chaincode and query the same object from another chaincode ? with both peer on the same channel ?

LuisCoelho (Wed, 06 Jun 2018 12:19:11 GMT):
Any tips on why byfn bringing up the network fails creating the channel?

satish67 (Wed, 06 Jun 2018 12:25:06 GMT):
hello all, I am working on raspberry pi 3. i have installed all the software for hyperledger fabric. docker is running fine with the hello-world. but when i am trying to install fabric-samples binaries, it is showing that ----------gpi@raspberrypi:~/fabric-samples $ curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 Installing hyperledger/fabric-samples repo ===> Checking out v1.1.0 branch of hyperledger/fabric-samples HEAD is now at 1252c7a... [FAB-8920] Pin fabric-samples to node.js "~1.1.0" Installing Hyperledger Fabric binaries ===> Downloading version armv7l-1.1.0 platform specific fabric binaries ===> Downloading: https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-armv7l-1.1.0/hyperledger-fabric-linux-armv7l-1.1.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1121 0 1121 0 0 2016 0 --:--:-- --:--:-- --:--:-- 2016 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. Switching to incremental download. ==> Downloading file... ------> armv7l-1.1.0 platform specific fabric binary is not available to download <---- ===> Downloading version armv7l-1.1.0 platform specific fabric-ca-client binary ===> Downloading: https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/linux-armv7l-1.1.0/hyperledger-fabric-ca-linux-armv7l-1.1.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1148 0 1148 0 0 2414 0 --:--:-- --:--:-- --:--:-- 2416 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. Switching to incremental download. ==> Downloading file... any solution thanks

satish67 (Wed, 06 Jun 2018 12:25:07 GMT):
\

LuisCoelho (Wed, 06 Jun 2018 13:39:50 GMT):
Hi! Anyone succeeded with the Build Your First Network -> "Install & Instantiate Chaincode" ???

jadhavajay (Wed, 06 Jun 2018 13:44:18 GMT):
Hi Team, I am getting an error when I am trying to instantiate the chain-code. The error is: `[Peer.js]: sendProposal - timed out after:45000`

jadhavajay (Wed, 06 Jun 2018 13:44:48 GMT):
Is there a way to increase this timeout from 45 secs to something else? anyone knows where to make this change?

MarceloAzevedo (Wed, 06 Jun 2018 13:57:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6k5ejRgpfzWBprgHa) @LuisCoelho yes! what is your problem?

ouijdenDhm (Wed, 06 Jun 2018 14:04:39 GMT):
Has joined the channel.

berkayxx95 (Wed, 06 Jun 2018 14:06:58 GMT):
Hello, I am following the tutorial on http://hyperledger-fabric.readthedocs.io/en/release-1.1/tutorials.html and I was able to come to the step where I generated my first network with ./byfn.sh -m generate. However, when I use the up command, it says invalid path. Is there something wrong with my environment variables? I don't know the problem.

berkayxx95 (Wed, 06 Jun 2018 14:07:14 GMT):

images.PNG

berkayxx95 (Wed, 06 Jun 2018 14:07:35 GMT):

final.PNG

LuisCoelho (Wed, 06 Jun 2018 15:11:55 GMT):
@jadhavajay If you edit the file configtx.yaml, there you have a BatchTimeout setting that you can play with.

jadhavajay (Wed, 06 Jun 2018 15:12:21 GMT):
Thanks @LuisCoelho , I will check..

anilkumar1998 (Wed, 06 Jun 2018 16:41:52 GMT):
Hi, Is chain code a mutual consensus b/w all the nodes and will have the same copy?

iamsg43 (Wed, 06 Jun 2018 16:57:53 GMT):
can anyone help me with this, I'm using Ubuntu OS and trying to install the development environment for the composer and I got an error "syntax error: unexpected token function" also attaching the required image. please help me with this guys..!!

iamsg43 (Wed, 06 Jun 2018 16:58:51 GMT):
file:///C:/Users/alway/Desktop/composer-error.PNG

iamsg43 (Wed, 06 Jun 2018 16:59:26 GMT):

composer-error.PNG

iamsg43 (Wed, 06 Jun 2018 16:59:26 GMT):

composer-error.PNG

PoojaVarshneya (Wed, 06 Jun 2018 17:25:56 GMT):
Has joined the channel.

vish146 (Wed, 06 Jun 2018 18:10:58 GMT):
Has joined the channel.

berkayxx95 (Wed, 06 Jun 2018 18:25:45 GMT):
@iamsg43 I had the same error. I assume that is step 3 on the guide. I used the built-in Ubuntu app market to solve that. Worked fine for me

iamsg43 (Wed, 06 Jun 2018 18:26:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eqP7gvZBkuQptmc6R) @berkayxx95 can you explain it briefly, how to use the Ubuntu app market

berkayxx95 (Wed, 06 Jun 2018 18:27:09 GMT):
On the left side of your desktop, there should be a toolbar

berkayxx95 (Wed, 06 Jun 2018 18:27:25 GMT):
In the toolbar, you should see something similar to a shopping bag

berkayxx95 (Wed, 06 Jun 2018 18:27:42 GMT):
click on the icon, and search for "code visual"

berkayxx95 (Wed, 06 Jun 2018 18:29:02 GMT):

ubuntu1404.png

berkayxx95 (Wed, 06 Jun 2018 18:30:04 GMT):
@iamsg43

iamsg43 (Wed, 06 Jun 2018 18:34:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y4rc2BGg7yBfg4S4w) @berkayxx95 should I download the VSCode app..?? can you please help me further

berkayxx95 (Wed, 06 Jun 2018 18:52:03 GMT):
@iamsg43 I think so. I would wait for a confirmation from other people as well. I'm not sure. It only worked for me

berkayxx95 (Wed, 06 Jun 2018 18:52:27 GMT):
Also, the dev environment is optional. So I think you can skip that step

iamsg43 (Wed, 06 Jun 2018 18:54:45 GMT):

1.PNG

berkayxx95 (Wed, 06 Jun 2018 19:14:03 GMT):
@MarceloAzevedo Also, what should I do about my situation? Am I doing an obvious mistake?

MarceloAzevedo (Wed, 06 Jun 2018 19:59:19 GMT):
@berkayxx95 I don't have good experiences with Windows and Fabric.. I started with Windows but a lot of problems came up and then I moved to linux (I'm using ubuntu gnome btw), which seems to be the best solution. For @iamsg43 problem, sorry dude, I don't know how to work with composer...

MarceloAzevedo (Wed, 06 Jun 2018 20:01:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kAahPPyi4LyDFFm6W) @iamsg43 you can try to execute a composer-cli -v (or --version) to check if any version is installed, then try to install with `npm install composer-cli@0.19.8-20180606093059`

berkayxx95 (Wed, 06 Jun 2018 20:21:56 GMT):
@MarceloAzevedo Thanks. I'll use Linux now then

hamptonsmith (Wed, 06 Jun 2018 20:33:02 GMT):
Connecting a fresh endorser (with fresh CouchDB state database) and fresh orderer to an existing Kafka cluster, I see documents getting written through to the CouchDB database that sure look like ledger data from a previous iteration of the network. I was under the impression that Kafka was just providing consensus in the moment, but does the Kafka cluster store the complete ledger and repopulate the orderer when the orderer starts up?

hamptonsmith (Wed, 06 Jun 2018 20:34:09 GMT):
(There are no other preexisting endorsers/orderers sticking around, Kafka is the only thing that survives the network reboot, and endorsers/orderers aren't connected to any external storage so they really should be clean.)

sleepydev (Thu, 07 Jun 2018 00:10:04 GMT):
Has joined the channel.

titoe218 (Thu, 07 Jun 2018 02:28:17 GMT):
Hi everyone, I have question in https://stackoverflow.com/questions/50691730/hyperledger-fabric-minimize-transaction-size about minimize transaction size, any ideas?

RealDeanZhao (Thu, 07 Jun 2018 02:52:52 GMT):
``` Got error: lscc.getinstalledchaincodes failed: SendProposal failed: Transaction processing for endorser [peer1-xxxx:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out ```

RealDeanZhao (Thu, 07 Jun 2018 02:53:50 GMT):
Timeout issue when sending proposal to the endorsers. Requests between the mac host and local docker containers.

sidkasat (Thu, 07 Jun 2018 03:41:21 GMT):
Has joined the channel.

GowriR (Thu, 07 Jun 2018 04:46:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JiLdDrmBFyv9YbYZH) @berkayxx95 There is a syntax for mounting a volume on docker (docker run --help, check the -v option). The path there seems to be wrong. This help I got earlier on this chat - docker run -v $PWD/:/dir hyperledger/fabric-tools:1.1.0 cp /usr/local/bin/configtxgen /dir/ the mounted the volume and created a configtxgen dir in the current directory.

GowriR (Thu, 07 Jun 2018 04:49:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZvwLjY4QW5T5htLoS) @MarceloAzevedo Bom dia. is it wise to download the cli of composer or just working with hyperledger fabric would do?

GowriR (Thu, 07 Jun 2018 04:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uPbmdTkumdc3mD5ap) @MarceloAzevedo I have a problem at the same point. Error below. I tried running it from startFabric.sh from fabcar example and also separately on the cli root@08df39c48494:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-06-06 09:06:15.151 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-06-06 09:06:15.151 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-06-06 09:06:15.152 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-06-06 09:06:15.152 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-06-06 09:06:15.152 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-06-06 09:06:15.153 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AA6070A6608031A0B0887C8DED80510...324D53500A04657363630A0476736363 2018-06-06 09:06:15.153 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: A44BDD5C722947997E31CED833032DBA52F7484A70E79C2FBEF91019F6ECCB45 Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/22/220e5cf3fb7f54b6d2081a9fe09d5c40f03796f7a49c8bf9360c8b859a711749/data?verify=1528278985-1xW9X5z%2Bi8lnNuySBRdpeB3C3Js%3D: net/http: TLS handshake timeout Any help would be appreciated

GowriR (Thu, 07 Jun 2018 04:54:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6k5ejRgpfzWBprgHa) @LuisCoelho I have the same problem. Did you get it resolved?

GowriR (Thu, 07 Jun 2018 04:56:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RohHaYLrzTTjh9YJp) @satish67 I had issues with the downloading as well. Then I did individually, what the batch/shell script does and downloaded it separately and it worked. Later, skipped that part (commented it out in the script) and ran the rest using the script

kshitiz_leo (Thu, 07 Jun 2018 05:31:34 GMT):
how to access cli of an ORG2 peer0, do i need to change any configurations in docker-compose-cli.yaml file ?

BhavyaC (Thu, 07 Jun 2018 05:39:25 GMT):
@kshitiz_leo you can access using the below command docker exec -it cli bash

kshitiz_leo (Thu, 07 Jun 2018 05:40:18 GMT):
using that, i could possibly access only ORG1 peer 0 right

kshitiz_leo (Thu, 07 Jun 2018 05:40:19 GMT):
??

kshitiz_leo (Thu, 07 Jun 2018 05:40:23 GMT):
what about the other

BhavyaC (Thu, 07 Jun 2018 05:40:28 GMT):
yes,

BhavyaC (Thu, 07 Jun 2018 05:40:39 GMT):
you need to create another cli for org 2

GowriR (Thu, 07 Jun 2018 05:41:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PTXBMZHAq6Ye7RRwW) @BhavyaC How do i create a container for the fabcar chaincode. I dont see it in my docker container ps now

tfls08 (Thu, 07 Jun 2018 07:02:39 GMT):
Has joined the channel.

GowriR (Thu, 07 Jun 2018 07:34:36 GMT):
hello, i am getting an endorsing error and TLS handshake timeout error when I execute "peer chaincode instatiate" with the fabcar sample. And I notice that there is a container being created during execution and deleted when the execution fails. please find the error and container details below. Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/db/dbe6787b57471127bc063dbd392459dcf234d9380c74f60b758bf2019a51afa1/data?verify=1528358696-7rwBFaq2NJNapt%2FXiNsdOKIK7FU%3D: net/http: TLS handshake timeout and CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1bc465998edb hyperledger/fabric-ccenv:x86_64-1.1.0 "/bin/sh -c 'cp -R /…" About a minute ago Up About a minute adoring_austin CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES adb04cf30bef hyperledger/fabric-ccenv:x86_64-1.1.0 "/bin/sh -c 'cp -R /…" About a minute ago Up About a minute zen_jackson a911c38963be hyperledger/fabric-ccenv:x86_64-1.1.0 "/bin/sh -c 'cp -R /…" 6 seconds ago Up 5 seconds elastic_pasteur

PushpalathaHiremath (Thu, 07 Jun 2018 08:05:04 GMT):
HI All, Is fabric v1.1.0 and v1.1.0-rc1 are stable ? I recently moved to v1.1.0 and tried v1.1.0-rc1 as well. It works properly but when i restart my network, i see lot of in-consistancies. The create channe works, but join channel starts failing. No much clues also in the container logs.

tronglx (Thu, 07 Jun 2018 08:53:06 GMT):
Hi all, has anyone implemented a currency in fabric network? I need define a currency for transferring between organizations but I don't know which should be started from.

BhavyaC (Thu, 07 Jun 2018 08:53:59 GMT):
Hi all... can i make a gateway between the two channels ?

yulong12 (Thu, 07 Jun 2018 08:54:51 GMT):
Hi everyone,I want to use mysql in the chincode,so what can I do?I try some times,but always has error

yulong12 (Thu, 07 Jun 2018 08:55:29 GMT):
can someone help me?

AMIL_SAJEEV (Thu, 07 Jun 2018 10:08:09 GMT):
Has joined the channel.

rincyyohannan (Thu, 07 Jun 2018 10:12:49 GMT):
Has joined the channel.

BhavyaC (Thu, 07 Jun 2018 10:13:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HSnxNoiWHZ3aPuwD8) @GowriR can u see by using "docker ps -a "

BhavyaC (Thu, 07 Jun 2018 10:13:20 GMT):
it maight me in excited state

AMIL_SAJEEV (Thu, 07 Jun 2018 10:15:12 GMT):
Hi all........... when i trying to upgrade my chaincode get an error : Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: cannot get package for chaincode (mycc:2.0))........... How to solve that??

AMIL_SAJEEV (Thu, 07 Jun 2018 10:15:32 GMT):

Clipboard - June 7, 2018 3:45 PM

MihaiAA (Thu, 07 Jun 2018 10:21:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EvErjZi2wMPTvCCuC) @AMIL_SAJEEV does this help? https://jira.hyperledger.org/browse/FAB-8481

AMIL_SAJEEV (Thu, 07 Jun 2018 10:23:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QJoBqh9crPcyhds7S) @MihaiAA okey....i wil check & let u know........... thanks in advance:slight_smile:

MarceloAzevedo (Thu, 07 Jun 2018 11:01:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BumaQaESWfnY9w3Ec) @GowriR Hey! It depends. Composer make things easier to configure/deploy/etc but in my case, for example, it hid some useful information that I needed to use inside it's "black box". So, you need to understand what's your need to decide if you want to go with composer or without it. IMO raw things such as the fabric itself is better to control and manage than using another level between you and the system :) About your second question: did you stopped all containers before executed the script?

AMIL_SAJEEV (Thu, 07 Jun 2018 11:07:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5tp7qMbPcJRp3F2Ga) sorry @MihaiAA that doesn't help:slight_frown:

MarceloAzevedo (Thu, 07 Jun 2018 11:10:54 GMT):
@AMIL_SAJEEV seems like this version 2.0 is the problem... what steps you did to update the chaincode?

AMIL_SAJEEV (Thu, 07 Jun 2018 11:14:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xwMnnwhtH7R7Bu3M3) @MarceloAzevedo 1. updated my chaincode in github and pull that to my chaincode path .............. 2. Try to update using command 'peer chaincode upgrade -n mycc -v 2.0 -p github.com/hyperledger/fabric/examples/chaincode/go/poc -C mychannel -c '{"Args":["init"]}' '

MarceloAzevedo (Thu, 07 Jun 2018 11:19:39 GMT):
@AMIL_SAJEEV well, everything seems correct... the "v1.0" works well?

AMIL_SAJEEV (Thu, 07 Jun 2018 11:30:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Dxm26SWSQiXkNrB3Y) @MarceloAzevedo when i tried with v 1.0 then get an error showing...version already exist. Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: version already exists for chaincode with name 'mycc')

GowriR (Thu, 07 Jun 2018 12:37:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xLnLKysXNgAmsQ26s) @MarceloAzevedo Thanks. I had the same opinion.

GowriR (Thu, 07 Jun 2018 12:38:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=76wnYmjqm8ZpNaLLW) Regarding the second one - there is no chaincode container running and just before the "peer chaincode instantiate" gives an error some dummy container of hyperledger\fabric_ccenv are created and deleted, once it fails. i am clueless on how to make the chaincode instantiate work

GowriR (Thu, 07 Jun 2018 12:40:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xBvW6ZjZRLDTDEzZh) @BhavyaC What is excited state?

BhavyaC (Thu, 07 Jun 2018 12:43:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jKmaEw8cXZtADsfhd) @GowriR Exited State*.

BhavyaC (Thu, 07 Jun 2018 12:44:26 GMT):
when the container goes down with some error then the container goes into exited state

bestsun (Thu, 07 Jun 2018 13:00:14 GMT):
Has joined the channel.

bestsun (Thu, 07 Jun 2018 13:00:33 GMT):
For every peer in Fabric. where does its private key come from?

BhavyaC (Thu, 07 Jun 2018 13:23:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XmYNLwa8a4NpvfJD9) @bestsun configtxgen tool will generate the keys

GowriR (Thu, 07 Jun 2018 13:27:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ybMLvsiQmSsvJNKoE) @BhavyaC thanks

Avinash_Kancharla (Thu, 07 Jun 2018 13:35:01 GMT):
Has joined the channel.

ankursam (Thu, 07 Jun 2018 14:06:07 GMT):
Has joined the channel.

Adam_Hardie (Thu, 07 Jun 2018 14:29:03 GMT):
Has joined the channel.

Adam_Hardie (Thu, 07 Jun 2018 14:30:53 GMT):
hi! great to find the hyperledger community here. quick question, i am trying to get the e2e sample setup, but i keep getting Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded how can i ensure the ordering service is being started properly? i see in the logs Starting orderer.example.com ... Recreating peer0.org2.example.com ... done so i assume it is ok, but i cant see a docker process indicating it is running on a port. Comments welcome!

joeldudleyr3 (Thu, 07 Jun 2018 15:05:43 GMT):
Has joined the channel.

Adam_Hardie (Thu, 07 Jun 2018 15:20:00 GMT):
do i need to set up a channel manually before running network_setup.sh ?

khalpin (Thu, 07 Jun 2018 15:48:58 GMT):
having a little bit of trouble getting TLS enabled

khalpin (Thu, 07 Jun 2018 15:49:13 GMT):
on the orderer side, openssl seems to work fine

khalpin (Thu, 07 Jun 2018 15:50:01 GMT):
but the peer is throwing an error "Failed connecting to orderer1.orderer.company.com:7050 , error: x509: certificate signed by unknown authority"

khalpin (Thu, 07 Jun 2018 15:50:33 GMT):
so the peer clearly isn't trusting the issuing CA from the orderer org, but I'm not sure what environment variable needs to be set to allow the peer to trust the orderer

khalpin (Thu, 07 Jun 2018 15:51:15 GMT):
I've got the orderer's root ca at "/etc/hyperledger/tls/orderer/"

khalpin (Thu, 07 Jun 2018 15:51:30 GMT):
is there some other value i need pass to the peer so it trusts the orderer org's certs?

khalpin (Thu, 07 Jun 2018 15:52:03 GMT):
possibly related, my TLS certs do not have subject alternative names, would that throw the same error? seems unrelated

khalpin (Thu, 07 Jun 2018 15:52:11 GMT):
but any thoughts would be helpful

khalpin (Thu, 07 Jun 2018 15:53:38 GMT):
or is that configuration of trust in the channel or genesis block or something I'm totally missing?

andref 3 (Thu, 07 Jun 2018 16:24:41 GMT):
Has joined the channel.

mcoronadog (Thu, 07 Jun 2018 16:38:06 GMT):
Hello, everyone, I have installed Fabric 1.0 and Composer 0.16.4 in a linux server. I followed the steps exactly how they are in the Composer documentation for installing everything, so I guess my network has only one peer and one channel. This server is gonna be restarted so I need to backup the information from the ledger and later restore it when my server is running again. Anyone knows how to backup the ledger?

khalpin (Thu, 07 Jun 2018 17:15:12 GMT):
I'm a noob, but I've had luck mounting a volume in Docker like ```/var/peer/hyperledger:/var/hyperledger```

sarathkumar (Thu, 07 Jun 2018 17:21:48 GMT):
n

PawelD (Thu, 07 Jun 2018 19:30:54 GMT):
Has joined the channel.

Batatos (Thu, 07 Jun 2018 20:41:33 GMT):
Has joined the channel.

MuhammadSalah (Thu, 07 Jun 2018 21:02:35 GMT):
Greetings everyone, I am trying to deploy a composer development environment over Kubernetes, however I am facing a very weird error. That I would like to share. 2018-06-07 21:00:58.312 UTC [grpc] Printf -> DEBU 006 transport: http2Client.notifyError got notified that the client transport was broken EOF. Error: proposal failed (err: rpc error: code = Internal desc = transport is closing)

MuhammadSalah (Thu, 07 Jun 2018 21:02:57 GMT):
This error pops up attempting to join a channel.

AA2209 (Thu, 07 Jun 2018 22:04:23 GMT):
Has joined the channel.

rahalio (Thu, 07 Jun 2018 22:38:13 GMT):
Has joined the channel.

LichenShen (Fri, 08 Jun 2018 03:42:49 GMT):
Has joined the channel.

midhun14 (Fri, 08 Jun 2018 03:45:26 GMT):
Am trying to invoke a chaincode function from invoke-transaction.js in balance-transfer,but its showing premature execution error stat: chaincode already launched.Is there any way to invoke an already running chaincode again?

AvikHazra (Fri, 08 Jun 2018 04:56:34 GMT):
Has joined the channel.

wangrangli (Fri, 08 Jun 2018 05:26:45 GMT):
Has joined the channel.

abraham (Fri, 08 Jun 2018 05:36:58 GMT):
Has joined the channel.

sanjeet.kumar (Fri, 08 Jun 2018 06:24:17 GMT):
Has joined the channel.

aKesav (Fri, 08 Jun 2018 07:24:13 GMT):
Has joined the channel.

username343 (Fri, 08 Jun 2018 07:28:35 GMT):
@midhun14 can you post the complete error message?

SecMS (Fri, 08 Jun 2018 07:42:28 GMT):
Has joined the channel.

AshishMishra 1 (Fri, 08 Jun 2018 08:33:32 GMT):
Hi guys, I have a working setup with 10-12 channels and each has 2-3 chaincodes, however I 'm not able to create a new channel now and getting this error on orderer. *orderer_orderer0.1.mowbhjp3rrf9@server3 | 2018-06-08 08:30:20.384 UTC [orderer/common/broadcast] Handle -> WARN 771a3a6 [channel: testchannel3] Rejecting broadcast of message from 10.0.0.24:56760 with SERVICE_UNAVAILABLE: rejected by Consenter: will not enqueue, consenter for this channel hasn't started yet * can someone help me understand the issue?

MalgAmoe (Fri, 08 Jun 2018 09:04:29 GMT):
Has joined the channel.

MalgAmoe (Fri, 08 Jun 2018 09:04:55 GMT):
hi guys I am trying to follow the tutorial for creating my first network and if I try to have several orderers named orderer1 and orderer2, when starting the dockers it complains the peers can't connect to orderer.example.com, is there a need to have the first one called orderer?

LuisCoelho (Fri, 08 Jun 2018 09:06:48 GMT):
Hi! I am running ./createPeerAdminCard.sh and it says v0.19.8 is not supproted!! How can I fix this!?

HimaniMukne (Fri, 08 Jun 2018 09:24:46 GMT):
Has joined the channel.

HimaniMukne (Fri, 08 Jun 2018 09:30:14 GMT):
1 down vote favorite I have been roughly following http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot to create my first network. For simplicity, I had made a separate folder, mn inside first-network, and had started with only crypto-config.yaml, cryptogen, configtx.yaml, configtxgen, docker-compose-cli.yaml and base folder in mn folder, to observe what is created when, also to eliminate bin path confusion.

HimaniMukne (Fri, 08 Jun 2018 09:30:14 GMT):
down vote favorite I have been roughly following http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot to create my first network. For simplicity, I had made a separate folder, mn inside first-network, and had started with only crypto-config.yaml, cryptogen, configtx.yaml, configtxgen, docker-compose-cli.yaml and base folder in mn folder, to observe what is created when, also to eliminate bin path confusion.

HimaniMukne (Fri, 08 Jun 2018 09:30:14 GMT):
I have been roughly following http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot to create my first network. For simplicity, I had made a separate folder, mn inside first-network, and had started with only crypto-config.yaml, cryptogen, configtx.yaml, configtxgen, docker-compose-cli.yaml and base folder in mn folder, to observe what is created when, also to eliminate bin path confusion.

HimaniMukne (Fri, 08 Jun 2018 09:31:34 GMT):
`./cryptogen generate --config=./crypto-config.yaml ./configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block ./configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID testhimani ./configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID testhimani -asOrg Org1MSP ./configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID testhimani -asOrg Org2MSP docker exec -it cli bash `

HimaniMukne (Fri, 08 Jun 2018 09:31:51 GMT):
I have executed these commands in the same sequence

HimaniMukne (Fri, 08 Jun 2018 09:32:11 GMT):
I have been roughly following http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot to create my first network. For simplicity, I had made a separate folder, mn inside first-network, and had started with only crypto-config.yaml, cryptogen, configtx.yaml, configtxgen, docker-compose-cli.yaml and base folder in mn folder, to observe what is created when, also to eliminate bin path confusion. I have executed the following commands in the same sequence: ./cryptogen generate --config=./crypto-config.yaml ./configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block ./configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID testhimani ./configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID testhimani -asOrg Org1MSP ./configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID testhimani -asOrg Org2MSP docker exec -it cli bash After executing the last command, I had to open a new terminal window, as I couldn't get the command input "$". On the new terminal, on executing the channel creation and joining command, I received the error that "peer" command is not found.

HimaniMukne (Fri, 08 Jun 2018 09:32:39 GMT):
`himani@himani-HP-Notebook:~/fabric-samples/first-network/mn$ peer channel create -o orderer.example.com:7050 -c testhimani -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem No command 'peer' found, did you mean: Command 'pee' from package 'moreutils' (universe) Command 'pear' from package 'php-pear' (main) Command 'peet' from package 'pipexec' (universe) Command 'beer' from package 'gerstensaft' (universe) peer: command not found `

HimaniMukne (Fri, 08 Jun 2018 09:32:54 GMT):
what has gone wrong?

FaizulHassan (Fri, 08 Jun 2018 09:40:31 GMT):
Hi Guys, We are developing a blockchain application. Had came across Hyperledger Fabric a month ago. Managed to Create Channels , Add Peers , Make Anchor peers , Launch chain code by following the instructions of their sample projects from their official. So for we had done everything using CLI and it is perfect , managed to Invoke , Query and ready data from ledger. But We would like to read Ledger data and display it in any front-end application. Can somebody guide us a way to achieve this ? Thanks much in advance :)

FaizulHassan (Fri, 08 Jun 2018 09:40:31 GMT):
Hi Guys, We are developing a blockchain application. Had came across Hyperledger Fabric a month ago. Managed to Create Channels , Add Peers , Make Anchor peers , Launch chain code by following the instructions of their sample projects from their official. So for we had done everything using CLI and it is perfect , managed to Invoke , Query and ready data from ledger. But We would like to read Ledger data and display it in any front-end application. Can somebody guide us a way to achieve this ? Thank You ! Made use of Hyperledger Fabric alone & not Hyperledger Composer (Suggest us if Composer is required to make the work ease) And Go Lang SDK for Chaincode Thanks much in advance :)

HimaniMukne (Fri, 08 Jun 2018 09:41:25 GMT):
@FaizulHassan will you be able to address my issue? my question is right above yours

majety.1 (Fri, 08 Jun 2018 09:46:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QDP2ALjEQzMyBjo9K) @FaizulHassan if you are fine with node SDK,then you could use the Edx course by linux foundation: https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/course/ For go lang SDK, you can use https://chainhero.io/2018/03/tutorial-build-blockchain-app-2/

FaizulHassan (Fri, 08 Jun 2018 09:55:31 GMT):
@HimaniMukne , What you had done so for is all good.. But before joining a channel start CLI container first using the following command: "docker exec -it cli bash" What's the error that you have got while running the above command ?

HimaniMukne (Fri, 08 Jun 2018 09:57:00 GMT):
@FaizulHassan I executed this, himani@himani-HP-Notebook:~/fabric-samples/first-network/mn$ docker exec -it cli bash root@0404332355e0:/opt/gopath/src/github.com/hyperledger/fabric/peer#

HimaniMukne (Fri, 08 Jun 2018 09:57:00 GMT):
@FaizulHassan I executed this, `himani@himani-HP-Notebook:~/fabric-samples/first-network/mn$ docker exec -it cli bash root@0404332355e0:/opt/gopath/src/github.com/hyperledger/fabric/peer# `

HimaniMukne (Fri, 08 Jun 2018 09:58:06 GMT):
and i got no command input $ there, so i opened a new terminal window to execute the create channel step

FaizulHassan (Fri, 08 Jun 2018 09:58:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oLrYsvoKHAPxhkscL) @majety.1 , thank you Majety , yes had gone through that Chain hero blog. Skipped it because they had developed it using Ubuntu. I use windows machine :( will have a look on EXC Course for nodeJS as you had suggested , thanks :)

FaizulHassan (Fri, 08 Jun 2018 09:58:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oLrYsvoKHAPxhkscL) @majety.1 , thank you Majety , yes had gone through that Chain hero blog. Skipped it because they had developed it using Ubuntu. I use windows machine :( will have a look on EDX Course for nodeJS as you had suggested , thanks :)

majety.1 (Fri, 08 Jun 2018 10:00:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tp3PCgaZ2JxmoNk2P) @FaizulHassan even i don't use go SDK, a person in channel suggested me that link

bowenyang (Fri, 08 Jun 2018 10:02:35 GMT):
Has joined the channel.

bowenyang (Fri, 08 Jun 2018 10:06:06 GMT):
when i bring up the Network ,i see goroutine 24 [select]: net.cgoLookupIP(0x1667b40, 0xc420395920, 0x7ffc9806ea8f, 0x13, 0xc4201d5dc0, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/go/src/net/cgo_unix.go:214 +0x1b0 net.(*Resolver).lookupIP(0x169d370, 0x1667b40, 0xc420395920, 0x7ffc9806ea8f, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/go/src/net/lookup_unix.go:95 +0x12d net.(*Resolver).(net.lookupIP)-fm(0x1667b40, 0xc420395920, 0x7ffc9806ea8f, 0x13, 0x3, 0xc420254f00, 0xc420052080, 0x0, 0xc420020000) /opt/go/src/net/lookup.go:187 +0x56 net.glob..func10(0x1667b40, 0xc420395920, 0xc4203a8320, 0x7ffc9806ea8f, 0x13, 0x42ad09, 0xc400000008, 0xc420052080, 0x0, 0x8db329) /opt/go/src/net/hook.go:19 +0x52 net.(*Resolver).LookupIPAddr.func1(0x18, 0x0, 0x0, 0x1) /opt/go/src/net/lookup.go:193 +0x5c internal/singleflight.(*Group).doCall(0x169d360, 0xc420372d20, 0x7ffc9806ea8f, 0x13, 0xc420371500) /opt/go/src/internal/singleflight/singleflight.go:93 +0x2e created by internal/singleflight.(*Group).DoChan /opt/go/src/internal/singleflight/singleflight.go:86 +0x31f !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

FaizulHassan (Fri, 08 Jun 2018 10:09:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=novuBXeAMgi7vGnCm) @HimaniMukne I can't get you Himani, please proceed to join the channel once the CLI container gets started.

HimaniMukne (Fri, 08 Jun 2018 10:11:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E4un8g2X6YFH79E25) @FaizulHassan exactly that command is not working, everything else has been executed perfectly. this is the error. `himani@himani-HP-Notebook:~/fabric-samples/first-network/mn$ peer channel create -o orderer.example.com:7050 -c testhimani -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem No command 'peer' found, did you mean: Command 'pee' from package 'moreutils' (universe) Command 'pear' from package 'php-pear' (main) Command 'peet' from package 'pipexec' (universe) Command 'beer' from package 'gerstensaft' (universe) peer: command not found `

FaizulHassan (Fri, 08 Jun 2018 10:18:50 GMT):
@experts , Please guide @HimaniMukne..

FaizulHassan (Fri, 08 Jun 2018 10:18:50 GMT):
@experts , Please guide @HimaniMukne

LuisCoelho (Fri, 08 Jun 2018 10:28:13 GMT):
@experts please helpe me v0.19.8 is not supported for this level of fabric. Please use version 0.16

ascatox (Fri, 08 Jun 2018 10:37:44 GMT):
Hi All

ascatox (Fri, 08 Jun 2018 10:37:50 GMT):
I need some clarifications

ascatox (Fri, 08 Jun 2018 10:38:22 GMT):
I'm trying to store inside the ledger using a chaincode

ascatox (Fri, 08 Jun 2018 10:38:35 GMT):
1.5 kb of data

ascatox (Fri, 08 Jun 2018 10:38:43 GMT):
for transactions

ascatox (Fri, 08 Jun 2018 10:38:43 GMT):
for transaction

ascatox (Fri, 08 Jun 2018 10:38:54 GMT):
but inside the CouchDB Ledger

ascatox (Fri, 08 Jun 2018 10:39:26 GMT):
there's an incremental grow up of this data to 41 Kb

ascatox (Fri, 08 Jun 2018 10:39:34 GMT):
for transaction

ascatox (Fri, 08 Jun 2018 10:39:34 GMT):
for transaction!

ascatox (Fri, 08 Jun 2018 10:39:52 GMT):
Someone can help me to explain this

BhavyaC (Fri, 08 Jun 2018 10:46:48 GMT):
Hi All... !! how to keep the data unshared between the organisations in the same channel

BhavyaC (Fri, 08 Jun 2018 10:46:58 GMT):
can someone help me

LuisCoelho (Fri, 08 Jun 2018 10:53:45 GMT):
Anyone knows how to Hyperledger Fabric upgrade from 1.0 to 1.1???

LuisCoelho (Fri, 08 Jun 2018 11:25:09 GMT):
docker

vanitas92 (Fri, 08 Jun 2018 11:26:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XyFQq5ff327ee6oei) @LuisCoelho you should find an official tutorial here: http://hyperledger-fabric.readthedocs.io/en/release-1.1/upgrading_your_network_tutorial.html

LuisCoelho (Fri, 08 Jun 2018 11:28:12 GMT):
@vanitas92 Have you tried this tutorial? https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html

LuisCoelho (Fri, 08 Jun 2018 11:30:00 GMT):
@vanitas92 I can't get this to work... it seems that something is using fabric 1.0 instead of 1.1 and then commands to createPeerAdminCard fails because v0.19 is not supported

vanitas92 (Fri, 08 Jun 2018 11:30:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aDB7T6aKXGHPfeQnA) @LuisCoelho I have not used Hyperledger composer sorry

aatkddny (Fri, 08 Jun 2018 12:35:55 GMT):
Is there simple a way to change the frequency that the orderer cuts a new block?

aatkddny (Fri, 08 Jun 2018 12:35:55 GMT):
Is there simple a way to change the frequency that the orderer(s) cuts a new block? Kafka version in particular.

FabricLearner (Fri, 08 Jun 2018 13:16:15 GMT):
Has joined the channel.

FabricLearner (Fri, 08 Jun 2018 13:19:36 GMT):
Hi, i am trying to install fabric in multiple hosts by uing fabric-starter example. but when i try to create a common channel , i got the below error deduplicate -> ERRO 69a Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.a.example.com")) for identity is any one got into same issue ?

FabricLearner (Fri, 08 Jun 2018 13:20:01 GMT):
i am using this example : https://github.com/olegabu/fabric-starter

FabricLearner (Fri, 08 Jun 2018 13:20:43 GMT):
i am able install and instantiate the chaincode successfully by packing the chaincode.

krisava (Fri, 08 Jun 2018 13:30:09 GMT):
Hi. The latest byfn.sh, is not having the "-a - specify if you want to start Fabric CAs as well" option. Trying to check on how to get the Fabric CAs started. any help please?

migrenaa (Fri, 08 Jun 2018 13:58:00 GMT):
Hi. According to my understanding when a user is invoking a chaincode, the user has to sign the transaction with his certificates to authenticate himself. I was looking at sample code in fabcar tutorial in the hyperledger documentation, but I don't understand how exactly the request is signed. In the fabcar example the user is taken from the store but after that the user is never used. Can you please explain me how does it work?

PrashantKhatri21 (Fri, 08 Jun 2018 14:14:11 GMT):
Has joined the channel.

PrashantKhatri21 (Fri, 08 Jun 2018 14:18:28 GMT):
anybody guide How can I implement HSM ? A lot of user will be sign in and I need to secure their card ?

enjoythecode (Fri, 08 Jun 2018 14:34:57 GMT):
Has joined the channel.

ThomasBereczky (Fri, 08 Jun 2018 15:41:56 GMT):
Hey Guys

ThomasBereczky (Fri, 08 Jun 2018 15:42:01 GMT):
I got stuck a little bit

ThomasBereczky (Fri, 08 Jun 2018 15:42:12 GMT):
I am trying to deploy 3 orderer, 3 peers, 1 CA

ThomasBereczky (Fri, 08 Jun 2018 15:42:18 GMT):
and I would like to use Kafka

ThomasBereczky (Fri, 08 Jun 2018 15:42:28 GMT):
I am not sure if I can use domain there or only IP

ThomasBereczky (Fri, 08 Jun 2018 15:42:39 GMT):
also I am having difficulties generating the certificates

ThomasBereczky (Fri, 08 Jun 2018 15:42:42 GMT):
for the other peers

ThomasBereczky (Fri, 08 Jun 2018 15:43:02 GMT):
it creates for peer0, ca, orderer. but it does not create it for peer1, orderer2 etc...

ThomasBereczky (Fri, 08 Jun 2018 15:43:10 GMT):
this is my configtx.yaml https://pastebin.com/rJx4LnWm

diegoduncan21 (Fri, 08 Jun 2018 15:45:02 GMT):
@ThomasBereczky i think that anchorPeer is just one per organization. The quantity of peers per organization you must define in crypto-config.yaml

yacovm (Fri, 08 Jun 2018 15:45:34 GMT):
you can have multiple anchor peers

diegoduncan21 (Fri, 08 Jun 2018 15:45:44 GMT):
in section: ``` Template: Count: 2 ```

diegoduncan21 (Fri, 08 Jun 2018 15:45:44 GMT):
in this section: ``` Template: Count: 2 ```

ThomasBereczky (Fri, 08 Jun 2018 15:45:57 GMT):
awesome!

ThomasBereczky (Fri, 08 Jun 2018 15:46:05 GMT):
one sec

diegoduncan21 (Fri, 08 Jun 2018 15:46:07 GMT):
@yacovm Ok, thanks

ThomasBereczky (Fri, 08 Jun 2018 15:46:07 GMT):
let me check

ThomasBereczky (Fri, 08 Jun 2018 15:48:32 GMT):
woooow

ThomasBereczky (Fri, 08 Jun 2018 15:48:33 GMT):
thank you!

ThomasBereczky (Fri, 08 Jun 2018 15:48:37 GMT):
that was the trick

ThomasBereczky (Fri, 08 Jun 2018 15:48:49 GMT):
really neat

ThomasBereczky (Fri, 08 Jun 2018 15:48:59 GMT):
and guys do you know how can I join a peer into another one?

ThomasBereczky (Fri, 08 Jun 2018 15:49:08 GMT):
or what do I need to do to hook all of them together?

ThomasBereczky (Fri, 08 Jun 2018 15:49:37 GMT):
or the linking comes with the connection profile?

ThomasBereczky (Fri, 08 Jun 2018 15:51:55 GMT):
also does Kafka must be using an IP or can it use domains?

vick (Fri, 08 Jun 2018 16:45:44 GMT):
@ThomasBereczky you connect peers together using channels

ThomasBereczky (Fri, 08 Jun 2018 16:46:03 GMT):
Hey Vick

ThomasBereczky (Fri, 08 Jun 2018 16:46:27 GMT):
I see

SherifMuhammed (Fri, 08 Jun 2018 17:01:16 GMT):
Has joined the channel.

ThomasBereczky (Fri, 08 Jun 2018 18:23:51 GMT):
Can anyone send me an example on how to join a peer?

ThomasBereczky (Fri, 08 Jun 2018 18:24:06 GMT):
I have this now in my docker file

ThomasBereczky (Fri, 08 Jun 2018 18:24:07 GMT):
if [ $1 == "peer0" ]; then docker exec peer0.birmp.blockknowhow.com peer channel create -o orderer.blockknowhow.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@birmp.blockknowhow.com/msp" peer0.birmp.blockknowhow.com peer channel join -b composerchannel.block fi if [ $1 == "peer1" ]; then docker exec peer1.birmp.blockknowhow.com peer channel create -o orderer.blockknowhow.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@birmp.blockknowhow.com/msp" peer1.birmp.blockknowhow.com peer channel join -b composerchannel.block fi if [ $1 == "peer2" ]; then docker exec peer2.birmp.blockknowhow.com peer channel create -o orderer.blockknowhow.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@birmp.blockknowhow.com/msp" peer2.birmp.blockknowhow.com peer channel join -b composerchannel.block fi

ThomasBereczky (Fri, 08 Jun 2018 18:24:26 GMT):
this is not good

ThomasBereczky (Fri, 08 Jun 2018 18:24:33 GMT):
because all 3 tries to create a channel

ThomasBereczky (Fri, 08 Jun 2018 18:24:36 GMT):
then connect to it

ThomasBereczky (Fri, 08 Jun 2018 18:24:47 GMT):
and the channel already exists

iamsg43 (Fri, 08 Jun 2018 21:08:52 GMT):

fabric-error.PNG

iamsg43 (Fri, 08 Jun 2018 21:08:52 GMT):

fabric-error.PNG

MuhammadSalah (Fri, 08 Jun 2018 21:15:14 GMT):
@iamsg43 Do you want to clear the environment?

MuhammadSalah (Fri, 08 Jun 2018 21:17:20 GMT):
@ThomasBereczky You can fetch the newest block form a channel, it will be named as channelname_newest.block, and you join by the peer channel join -b path to the block. Please use this command. peer channel fetch newest -o ${ORDERER_URL} -c ${CHANNEL_NAME} peer channel join -b ${CHANNEL_NAME}_newest.block

iamsg43 (Fri, 08 Jun 2018 21:17:20 GMT):
I think I need to access to my compose file, how do i do that

MuhammadSalah (Fri, 08 Jun 2018 21:17:58 GMT):
@iamsg43 I don't understand what you need to do. But if you have no problem with tearing down the whole thing, and starting fresh, then it's easy.

ThomasBereczky (Fri, 08 Jun 2018 21:18:20 GMT):
thanks @MuhammadSalah

MuhammadSalah (Fri, 08 Jun 2018 21:18:52 GMT):
No problem, if you have tls, make sure you add --tls --cafile ${TLS_CAFILE_PATH}

MuhammadSalah (Sat, 09 Jun 2018 01:40:39 GMT):
Hello everyone, I have a question. On the current defacto setup on most tutorials to deploy HLF over Kubernetes, is to expose the docker socket, and mount it as a volume. However, the chaincode containers are applied as orphaned containers outside the control of kubernetes. Is there a way to get any access to them?

MuhammadSalah (Sat, 09 Jun 2018 01:41:00 GMT):
I would like to be able to at least them, clean them up from the system, etc.

ashsek (Sat, 09 Jun 2018 04:28:05 GMT):
In the first network (http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html) there are four peers. Can someone explain how can I query from different peers instead of the peer0.org1?

RupsinghMathwale (Sat, 09 Jun 2018 04:39:54 GMT):
Has joined the channel.

ajmeraharsh (Sat, 09 Jun 2018 06:43:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hfht3DGpSek96BowY) @ThomasBereczky hope you got this sorted! Let me know if otherwise.

angeloatleadiq (Sat, 09 Jun 2018 08:46:48 GMT):
When I tried ``` $ docker exec -it cli bash $ peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` I got this error: ``` 2018-06-09 08:46:44.333 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ```

goranovic (Sat, 09 Jun 2018 11:05:20 GMT):
Has joined the channel.

charlyjose (Sat, 09 Jun 2018 12:39:39 GMT):
Has joined the channel.

enjoythecode (Sat, 09 Jun 2018 13:56:42 GMT):
Hello everyone. I am trying to export the blockchain and share it for third-party verification without adding those third parties to the network. My Google, SO and documentation returned no results. Is it possible to export the blockchain data and simulate all the transactions to get a final (simulated) global state and then verify that state against specific constraints? Thanks.

martin.halford (Sat, 09 Jun 2018 15:10:47 GMT):
Has joined the channel.

JuanOrtellado (Sat, 09 Jun 2018 17:43:21 GMT):
Has joined the channel.

chilipepper (Sat, 09 Jun 2018 19:56:44 GMT):
Has joined the channel.

tqumhieh (Sun, 10 Jun 2018 01:04:39 GMT):
Has joined the channel.

bowenyang (Sun, 10 Jun 2018 04:12:37 GMT):
I'm using ubuntu,but when i use the ./byfn.sh up command,i got this error !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

csengor (Sun, 10 Jun 2018 09:20:03 GMT):
Has joined the channel.

csengor (Sun, 10 Jun 2018 09:25:19 GMT):
Hello, I am new to HL and exploring its possibilities. The tutorials seem to be focused on creating networks rather than configuring Hyperledger Fabric itself. Are fabric-dev-servers and fabric-samples fit for a production environment? Thank you

PawelD (Sun, 10 Jun 2018 16:31:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GsD5pFXs4y8s37Zz4) @csengor Probably not fit for production since they are running all on single machine, not a real network

MuhammadSalah (Sun, 10 Jun 2018 20:17:06 GMT):
@ashsek continue to the extend your first network scenario, you will find portions of code that switch to different peers belonging to different organizations, you simply have to change the environment variables of your CLI. and perform the same command of course.

jiriknesl (Mon, 11 Jun 2018 03:36:00 GMT):
Has joined the channel.

pb (Mon, 11 Jun 2018 04:40:39 GMT):
Hi, I have worked on different samples on fabric and have seen the concept of asset storage in BC using fabric. Now I'm trying to simulate something that a smart contract can perform by theory, as *Performing some operation upon a trigger, ie for example when the balance reaches a particular amount transfer the amount to another account and continue performing the same always*. Is this possible to workout in fabric? can anyone please help me out in performing this?

RakeshKumarzs (Mon, 11 Jun 2018 04:42:58 GMT):
Has joined the channel.

RakeshKumarzs (Mon, 11 Jun 2018 04:43:25 GMT):
We have installed the Hyperledger Fabric (HVM) from AWS marketplace . We have confirmed from the AWS team and the installation seems to be done correctly . Could you please help me in getting the developer window where I can code . I have doing coding on the Hyperledger developer window as attached. I was just curious shall I expect the same window as below from this software . It would be great if you please come on screen share and guide me further . It’s a POC for a company and needs to be done as soon as possible

RakeshKumarzs (Mon, 11 Jun 2018 05:44:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KthpkaPBCzpaDjgzW) ... anyupdate ???

PawelD (Mon, 11 Jun 2018 06:54:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k8c4N3eu2LGH4biv3) @RakeshKumarzs You mean you want the Composer Playground ? I don't think that comes with AWS image, you would need to install it yourself

titoe218 (Mon, 11 Jun 2018 07:05:24 GMT):
Hi, By default, Hyperledger Fabric stored many certificates in transaction before they save to blockchain. Is there anyway or any ideas/techniques to minimize transaction size in blockchain? Any ideas really appriciated! Best regards,

chanhvq17 (Mon, 11 Jun 2018 07:12:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MSdQnwsHh9R4shCkr) @titoe218 Certificates is stored in genesis block. It is not related to minimize transaction size. Transaction size depend on you business case, what you want to transfer through the network. You need to trade off with parameters: MaxMessageCount, AbsoluteMaxBytes, PreferredMaxBytes, BatchTimeout

chanhvq17 (Mon, 11 Jun 2018 07:12:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MSdQnwsHh9R4shCkr) @titoe218 Certificates store in genesis block. It is not related to minimize transaction size. Transaction size depend on you business case, what you want to transfer through the network. You need to trade off with parameters: MaxMessageCount, AbsoluteMaxBytes, PreferredMaxBytes, PreferredMaxBytes, BatchTimeout

chanhvq17 (Mon, 11 Jun 2018 07:12:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MSdQnwsHh9R4shCkr) @titoe218 Certificates is stored in genesis block. It is not related to minimize transaction size. Transaction size depend on you business case, what you want to transfer through the network. You need to trade off with parameters: MaxMessageCount, AbsoluteMaxBytes, PreferredMaxBytes, PreferredMaxBytes, BatchTimeout

titoe218 (Mon, 11 Jun 2018 07:24:22 GMT):
@chanhvq17 Hi, I used Hyperledger Explorer to view transaction details, it stored 2 certificates of user who create transaction and certificates of all endorsing peer which endorse the transaction :)

ashsek (Mon, 11 Jun 2018 07:27:19 GMT):
can someone tell is it possible to store a list of items or a dictionary in hyperledger? if yes how? How should I define my struct variable in golang

chanhvq17 (Mon, 11 Jun 2018 07:29:01 GMT):
@titoe218 yub, sure...need CA signature of transaction creator and endorsing peers. But I think we should tailoring the things we transfer rather than cut off CA & signature because we are using private block chain and need to know who is who...Ex: We don't need to put the whole of image binary files, we can just store the fingering of this file like hash string is ok, right ?

titoe218 (Mon, 11 Jun 2018 07:32:39 GMT):
@chanhvq17 Thanks so much. Really appriciated!

chanhvq17 (Mon, 11 Jun 2018 07:33:39 GMT):
@titoe218 Anyway, I know that you are VNese like me :). If you are in HCM city and like to discuss or have coffee time. Please connect with me :D

chanhvq17 (Mon, 11 Jun 2018 07:33:39 GMT):
@titoe218 Anyway, I know that you are VNese like me :). If you are in HCM city and like to discuss of coffee time. Please connect with me :D

pankajcheema (Mon, 11 Jun 2018 07:34:36 GMT):
Hi Expert,we are facing issue with slow response from peer for query result.We have a deep look on the logs and found that couchdb is taking 5 sec to handover query result to peer. Any idea what's happening logs on pastebin >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>https://pastebin.com/mWZuNbHM. Thanks in Advance . @jyellick @dimaxgl

dimaxgl (Mon, 11 Jun 2018 07:34:37 GMT):
Has joined the channel.

pankajcheema (Mon, 11 Jun 2018 07:34:50 GMT):
and now it is taking 45 seconds

pankajcheema (Mon, 11 Jun 2018 07:35:43 GMT):
@jyellick Please let me know if peer part is not stable

titoe218 (Mon, 11 Jun 2018 07:37:41 GMT):
@chanhvq17 =)) Thanks, but I'm in HN. See you next time, when have a chance :))

chanhvq17 (Mon, 11 Jun 2018 07:38:32 GMT):
@titoe218 HN ok, have a nice day

Chinmaya.mahuntc (Mon, 11 Jun 2018 08:59:02 GMT):
Has joined the channel.

Chinmaya.mahuntc (Mon, 11 Jun 2018 09:00:10 GMT):
Hello, can anyone help to develop chaincode in NodeJs?

ashsek (Mon, 11 Jun 2018 09:19:49 GMT):
can someone tell is it possible to store a list of items or a dictionary in hyperledger? if yes how? How should I define my struct variable in golang?

charitydao (Mon, 11 Jun 2018 09:23:14 GMT):
Has joined the channel.

charitydao (Mon, 11 Jun 2018 09:23:54 GMT):
Hi everyone, may be exist good example with sdk node?

HimaniMukne (Mon, 11 Jun 2018 09:28:43 GMT):
Hi. I am getting this error while running byfn.sh script " orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded"

RakeshKumarzs (Mon, 11 Jun 2018 09:51:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LG8AvevhoDvZJbpuL) @PawelD

RakeshKumarzs (Mon, 11 Jun 2018 09:52:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LG8AvevhoDvZJbpuL) @PawelD yes , could you please help me with any link that shows step by step method to achieve that ..

PawelD (Mon, 11 Jun 2018 09:53:08 GMT):
@RakeshKumarzs My setup is here, works on AWS: https://gist.github.com/PawelDefee/b4c904bce6d56e031de463566e319c98

RakeshKumarzs (Mon, 11 Jun 2018 09:54:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m8pf8cxXPSarDnNaA) @PawelD so i have to shave this shell script in home directory and trigger that ..please correct me if m wrong ..

RakeshKumarzs (Mon, 11 Jun 2018 09:54:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tdqToC7cKcbku6qJ5) ##save

RealDeanZhao (Mon, 11 Jun 2018 09:55:34 GMT):
Hi, can anyone help me with this issue? https://stackoverflow.com/questions/50792520/connection-timeout-when-installing-chaincode-using-fabric-sdk-go

sergiosanchezalvarez (Mon, 11 Jun 2018 09:56:16 GMT):
Has joined the channel.

PawelD (Mon, 11 Jun 2018 09:57:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tdqToC7cKcbku6qJ5) @RakeshKumarzs It does work if you otherwise configure AWS correctly

midhun14 (Mon, 11 Jun 2018 10:12:13 GMT):
How to invoke hyperledger APIs in app.js from another node js file?

PrashantKhatri21 (Mon, 11 Jun 2018 10:56:33 GMT):
Anybody here deployed on azure fabric server ? I am working on fabric 1.1.0 and Azure give setup on 1.0.0.

RakeshKumarzs (Mon, 11 Jun 2018 11:14:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SNSEqg4BqW4vtmBye) @PawelD i was installing that but at this step its taking too much time .. 30 minutes already lapsed ... is it normal .. npm WARN deprecated buildmail@4.0.1: This project is unmaintained loadDep:node-cache → reso ▀ ╢████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine composer-client@0.19.8: wanted: {"node":">=8","npm":">=5"} (current:extract:config → gunzTarP ▐ ╢██████████████████████████████████████░░░░░░░░░░░╟

pragadeeshdharsha (Mon, 11 Jun 2018 11:58:53 GMT):
I have created two orderers and two organization each with 2 peers. If i run the create channel command given in the "create your first network" I am unable to create a channel. I have changed to domain name according to my definition in all the required files, still i get this error:

pragadeeshdharsha (Mon, 11 Jun 2018 11:59:02 GMT):
Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet

pragadeeshdharsha (Mon, 11 Jun 2018 11:59:30 GMT):
the command i have used:

pragadeeshdharsha (Mon, 11 Jun 2018 11:59:30 GMT):
peer channel create -o orderer.pragadeesh.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/pragadeesh.com/orderers/orderer.pragadeesh.com/msp/tlscacerts/tlsca.pragadeesh.com-cert.pem

suryasuresh06 (Mon, 11 Jun 2018 12:10:29 GMT):
hi, I am new to fabric and have a small query regarding the development of chain code. how are if statements written in GO or nodejs. eg. If I have an asset parameter named country and I want the transfer of the asset to take place only if its from a particular country, how do I got about this.

PawelD (Mon, 11 Jun 2018 12:24:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TtgXtH6AQZiLAcPfE) @RakeshKumarzs What kind of instance do you use? I use 8-16 CPU instance, its a lot of software to install and compile

RakeshKumarzs (Mon, 11 Jun 2018 12:25:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5L4gjuiP5zsxyE9fw) @PawelD its Ubuntu .. 8 ..thanks .. i guess had some perrmissions issue .. trying to dig down .. will keep u posted

AnomalRoil (Mon, 11 Jun 2018 12:34:09 GMT):
Hello. I was wondering if anybody would have some public example of custom MSP? I've read the doc and it seems like the MSP is pluggable, but are there actual custom implementation of the MSP out there? Or is there a specific doc regarding the way one could implement its own custom MSP?

PawelD (Mon, 11 Jun 2018 12:49:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NYS55YmWrDnbtKspE) @AnomalRoil I only see this: https://jira.hyperledger.org/browse/FAB-9673 (feature request)

midhun14 (Mon, 11 Jun 2018 12:50:13 GMT):
Am getting this error: Promise is rejected: Error: 2 UNKNOWN: error executing chaincode: error chaincode is already launching: mycc:v0

midhun14 (Mon, 11 Jun 2018 12:50:13 GMT):
Am getting this error: Promise is rejected: Error: 2 UNKNOWN: error executing chaincode: error chaincode is already launching: mycc:v0 .What does it mean

nabil941994 (Mon, 11 Jun 2018 12:50:49 GMT):
Hi everyone, i am trying to add a second channel to my running network, containing one organization, one peer and one orderer. - Is it possible to create another channel? - if so, what are the steps to follow in order to create the channel? Thank you in advance

muna (Mon, 11 Jun 2018 12:50:59 GMT):
Has joined the channel.

muna (Mon, 11 Jun 2018 12:51:04 GMT):
What is the minimum requirements for production deployments of hyperledger composer/fabric ?

RakeshKumarzs (Mon, 11 Jun 2018 13:08:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C7DtR3dPS9yCZQKYi) hi .. iproblem is in installtion of Composer cli .. i am facing this issue .. could u please help me here ..

RakeshKumarzs (Mon, 11 Jun 2018 13:08:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h9XQqrbj8D7enfq7L) gyp verb get node dir no --target version specified, falling back to host node version: 4.2.6 gyp verb build dir attempting to create "build" dir: /root/.nvm/versions/node/v8.11.2/lib/node_modules/composer-cli/node_modules/node-report/build gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/.nvm/versions/node/v8.11.2/lib/node_modules/composer-cli/node_modules/node-report/build' gyp ERR! stack at Error (native) gyp ERR! System Linux 4.4.0-1057-aws

PawelD (Mon, 11 Jun 2018 13:09:30 GMT):
hmm

PawelD (Mon, 11 Jun 2018 13:09:45 GMT):
What do you mean by Ubuntu 8 ?

PawelD (Mon, 11 Jun 2018 13:09:54 GMT):
8 CPU ?

RakeshKumarzs (Mon, 11 Jun 2018 13:10:42 GMT):
yes .. thats currect ..

RakeshKumarzs (Mon, 11 Jun 2018 13:11:00 GMT):
#correct

RakeshKumarzs (Mon, 11 Jun 2018 13:11:46 GMT):
seems like some installation issue is there

PawelD (Mon, 11 Jun 2018 13:12:06 GMT):
I just ran this script myself and it works. I use standard spot instance c4.4xlarge and standard disk settings. Logged in as 'ubuntu' user and have all permissions

PawelD (Mon, 11 Jun 2018 13:12:17 GMT):
maybe you don't have sufficient permissions in your organisation :thinking_face:

RakeshKumarzs (Mon, 11 Jun 2018 13:12:37 GMT):
m executing every thing by sudo acces s

RakeshKumarzs (Mon, 11 Jun 2018 13:12:50 GMT):
i have fired this by root access..

PawelD (Mon, 11 Jun 2018 13:14:51 GMT):
you must not use sudo, it says so in documentation. Are you part of docker group as it says in the beginning of the script in the comments ?

PawelD (Mon, 11 Jun 2018 13:15:28 GMT):
NPM has problems when installed with sudo

RakeshKumarzs (Mon, 11 Jun 2018 13:15:40 GMT):
okay .. got it .. whats the alternative now ..

elicrisko (Mon, 11 Jun 2018 13:16:14 GMT):
I'm working in a quantitative comparison of Hyperledger Fabric, Quorum and Corda, and is desired cenaries with RAFT and BFT consensus, as I was studying the docs I've found ``` In the currently available releases, Fabric offers a CFT ordering service implemented with Kafka and Zookeeper. In subsequent releases, Fabric will deliver a Raft consensus ordering service implemented with etcd/Raft and a fully decentralized BFT ordering service. ```

AnomalRoil (Mon, 11 Jun 2018 13:16:16 GMT):
Okay, thanks @PawelD

elicrisko (Mon, 11 Jun 2018 13:17:40 GMT):
Is it correct to state that Raft consensus isn't yet implemented in the available releases? [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sr7Nq5LaCZufySJKB)

SaraEmily (Mon, 11 Jun 2018 13:17:59 GMT):
Hi everyone! Is there a good resource (or anyone here) that explans how to inforce endorsement policies when using Node.js SDK? Thanks!

PawelD (Mon, 11 Jun 2018 13:20:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GRQPkwidivvSnw5TY) @elicrisko Looking at the latest release 1.1 on GitHub, this would appear to be the case - Kafka and Solo orderers are implemented. Most tutorials are based on the simple centralized 'solo' configuration: https://github.com/hyperledger/fabric/tree/release-1.1/orderer/consensus

elicrisko (Mon, 11 Jun 2018 13:21:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CFuwfX8Q52RBTYAJm) @PawelD Thanks, @PawelD !!

PawelD (Mon, 11 Jun 2018 13:22:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vjngsmTuoLtC6GcuP) @elicrisko It also says here that PBFT implementation is Pending: https://github.com/hyperledger/fabric/tree/release-1.1/orderer

nabil941994 (Mon, 11 Jun 2018 13:48:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gQ39hANGausK2YwoJ) Please if you can answer :)

seetharamangr (Mon, 11 Jun 2018 13:58:44 GMT):
Has joined the channel.

seetharamangr (Mon, 11 Jun 2018 13:59:05 GMT):
While configuraing organiztion we are giving the users count, it generates certificates for the Users in artifacts. It is configured with MSPconfigPath of Cli containers itself? What is the need of this users. Also when I use a nodejs fabric-clicnt, fbric-ca-client, we are enrolling admin and users where the use keys are stored at .hfc-key-store, what is the need and different of this user certificats?

seetharamangr (Mon, 11 Jun 2018 13:59:39 GMT):
As per the user story https://jira.hyperledger.org/browse/FAB-6600 in Hyperledger, tried to setup and run the sample code and end-to-end scripts up and running. Steps followed for the same, 1. Started an ubuntu instance using vagrant. 2. Cloned the fabric project from the https://github.com/hyperledger/fabric 3. Then setup the go environments(GOPATH,GOROOT) 4. Installed the necessary software's 5. Using the make file in the project created the container using *make docker-clean docker* command 6. New fabric images are created and crypto libraries are added. 7. Followed the steps mentioned as https://jira.hyperledger.org/browse/FAB-6600 8. Once new fabric images created, started the bash script ./network_Setup.sh up mychannel at examples/e2_cli names 9. Started the organization, artifacts, crypto materials were generated. 10. In the end to end test script, Chaincode instantiation is failing(Which needs to be started as another separate container). 11. While running the sample chaincode for the marble example for the privacy inside channels, after adding all the configurations mentioned in https://jira.hyperledger.org/browse/FAB-6600, chaincode instantiation is failing. Note: • Docker Images were created from the latest repository code. • Using the Bootstrap.sh file, new fabric binaries were created and added the CFG_PATH. References Used: Code-Review: https://gerrit.hyperledger.org/r/#/c/14769/1 Related user stories: ---------- https://jira.hyperledger.org/browse/FAB-6338 https://jira.hyperledger.org/browse/FAB-6815 https://jira.hyperledger.org/browse/FAB-6600 https://jira.hyperledger.org/browse/FAB-6815 https://jira.hyperledger.org/browse/FAB-10132 https://jira.hyperledger.org/browse/FAB-6338 https://blockchain-fabric.blogspot.in/2018/05/data-privacy-within-channel-in.html https://jira.hyperledger.org/browse/FAB-1151 https://www.youtube.com/watch?v=qyjDi93URJE&feature=youtu.be Chaincode instantiation in new chaincode container is failing? Does anyone able to run the privacy inside the channels? Logs: Attached

seetharamangr (Mon, 11 Jun 2018 14:00:08 GMT):

Privacy in hyperledger channel- end to end test script failure logs.docx

Dheeraj 13 (Mon, 11 Jun 2018 14:13:07 GMT):
Has joined the channel.

Dheeraj 13 (Mon, 11 Jun 2018 14:13:27 GMT):
Hi , how can we connect IBM hyper Ledger fabric using java class can i get any example . consider there hyperledger is all ready install and running i need to get the data from hyperleger to java class. like a API.

Avinash_Kancharla (Mon, 11 Jun 2018 14:25:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HJ2euPg5KAgJ5YN32) @Dheeraj 13 I believe it can be achieved by using the connection.json generated by the network. Configure the endpoints from json in your client application i.e, orderer, peer, event URLs etc

Aravindr86 (Mon, 11 Jun 2018 14:28:41 GMT):
Has joined the channel.

kesavants (Mon, 11 Jun 2018 15:14:35 GMT):
In my local setup I have couchdb accesible over fauxton web interface. I notice that the world state db can be updated directly using the web interface without version change and after updating the values the transaction proposal go through fine is this expected

jrosmith (Mon, 11 Jun 2018 15:29:36 GMT):
@kesavants yes, in production you would not have project fauxton enabled and modifying the world state via couchdb directly is something you are responsible for locking down as a network admin. if multiple individual world states are modified, peers will not be able to come to consensus and transactions will be rejected

kesavants (Mon, 11 Jun 2018 15:34:43 GMT):
Thanks that makes sense but I have not seen transactions getting rejected when I changed data on multiple peers

jrosmith (Mon, 11 Jun 2018 15:55:18 GMT):
Does your endorsement policy require multiple peers to agree to world state? or does only one peer need to sign off?

kesavants (Mon, 11 Jun 2018 15:59:20 GMT):
2 peers but since the version on the document is not updated this leaves the world state having same version but different data what is the mechanism for fabric to detect this

BitGonzo (Mon, 11 Jun 2018 16:23:55 GMT):
Has joined the channel.

jrosmith (Mon, 11 Jun 2018 16:45:00 GMT):
right the version is the same but if you read that data for use in a transaction the read set and write set will disagree

g.venkat (Mon, 11 Jun 2018 17:36:07 GMT):
Has joined the channel.

jovan (Mon, 11 Jun 2018 21:30:22 GMT):
Has joined the channel.

inquiringtimes (Mon, 11 Jun 2018 23:10:25 GMT):
Has joined the channel.

inquiringtimes (Mon, 11 Jun 2018 23:10:32 GMT):
hello

inquiringtimes (Mon, 11 Jun 2018 23:10:47 GMT):
I have a question about the Certificate Authority

inquiringtimes (Mon, 11 Jun 2018 23:11:40 GMT):
When making a transaction proposal do send it through CA server or does CA come into play before proposal is even made? I guess endorsers must interact with the CA to verify credentials. I'm just trying to figure out at which stages in the transaction flow does CA get involved

inquiringtimes (Mon, 11 Jun 2018 23:17:49 GMT):
If I'm understanding everything correctly: Client creates transaction proposal through sdk (which deals with CA), OR client creates transaction proposal that goes through CA client to make signature before being sent to peer endorsers. Endorsers verify signature with CA, and use CA to sign also after running simulation, collecting state change, etc

MuhammadSalah (Mon, 11 Jun 2018 23:17:59 GMT):
@inquiringtimes endorsers already have a root Cert in the tutorials that they use to verify the signatures.

MuhammadSalah (Mon, 11 Jun 2018 23:18:11 GMT):
In the directory of the crypto-config

inquiringtimes (Mon, 11 Jun 2018 23:18:14 GMT):
ok

inquiringtimes (Mon, 11 Jun 2018 23:18:32 GMT):
so, endorser doesn't need to bother about CA, but what about transaction proposal?

MuhammadSalah (Mon, 11 Jun 2018 23:19:07 GMT):
If you have your private key with you, and public key, you are good to go.

MuhammadSalah (Mon, 11 Jun 2018 23:19:22 GMT):
You can submit a proposal that's signed by you as a user

inquiringtimes (Mon, 11 Jun 2018 23:19:30 GMT):
I'm trying to understand at what point in the process does the CA get involved

MuhammadSalah (Mon, 11 Jun 2018 23:19:35 GMT):
to all peers that satisfy endorsement policy

inquiringtimes (Mon, 11 Jun 2018 23:19:37 GMT):
before transaction altogether

inquiringtimes (Mon, 11 Jun 2018 23:19:37 GMT):
before transaction altogether?

MuhammadSalah (Mon, 11 Jun 2018 23:19:48 GMT):
Okay let me list

MuhammadSalah (Mon, 11 Jun 2018 23:19:58 GMT):
For a real life situation

MuhammadSalah (Mon, 11 Jun 2018 23:20:05 GMT):
you should go back to CA to verify

MuhammadSalah (Mon, 11 Jun 2018 23:20:15 GMT):
at least in my own humble opinion and to my understanding

MuhammadSalah (Mon, 11 Jun 2018 23:20:24 GMT):
But tutorials are only to explain the mechanism

MuhammadSalah (Mon, 11 Jun 2018 23:20:44 GMT):
So in common IT world.

inquiringtimes (Mon, 11 Jun 2018 23:20:46 GMT):
wait, but that doesn't tell me at what point in transaction flow CA gets involved, before, during, after?

MuhammadSalah (Mon, 11 Jun 2018 23:21:18 GMT):
If you don't have the root cert to verify signatures, at every step of verification you need to get back to CA

MuhammadSalah (Mon, 11 Jun 2018 23:21:36 GMT):
so that means in every step of the proposal signing / verification

inquiringtimes (Mon, 11 Jun 2018 23:21:39 GMT):
I appreciate you taking some time with me... I'm trying to write a detailed explanation of transaction flow

MuhammadSalah (Mon, 11 Jun 2018 23:21:49 GMT):
my pleasure.

MuhammadSalah (Mon, 11 Jun 2018 23:22:05 GMT):
I am not an expert, I am just speaking up my mind with you too.

MuhammadSalah (Mon, 11 Jun 2018 23:22:24 GMT):
So your question is very dependent on the set up

MuhammadSalah (Mon, 11 Jun 2018 23:22:30 GMT):
but for the common IT setup

MuhammadSalah (Mon, 11 Jun 2018 23:22:32 GMT):
you get back to CA

MuhammadSalah (Mon, 11 Jun 2018 23:22:36 GMT):
to verify a signature

inquiringtimes (Mon, 11 Jun 2018 23:23:08 GMT):
I'll probably be asking more people the same question... because the docs\whitepaper are not exactly clear to me on what point the CA gets involved

MuhammadSalah (Mon, 11 Jun 2018 23:23:23 GMT):
CA is a membership service provider

MuhammadSalah (Mon, 11 Jun 2018 23:23:37 GMT):
it gets involved for all the crypto material

MuhammadSalah (Mon, 11 Jun 2018 23:23:43 GMT):
theoriticaly speaking

MuhammadSalah (Mon, 11 Jun 2018 23:23:47 GMT):
if you want to have a central base

inquiringtimes (Mon, 11 Jun 2018 23:23:52 GMT):
CA is same thing as MSP?

MuhammadSalah (Mon, 11 Jun 2018 23:24:05 GMT):
Yes

MuhammadSalah (Mon, 11 Jun 2018 23:24:07 GMT):
it's a provider

MuhammadSalah (Mon, 11 Jun 2018 23:24:18 GMT):
it can be replaced with any other server I think

MuhammadSalah (Mon, 11 Jun 2018 23:24:20 GMT):
never did it

MuhammadSalah (Mon, 11 Jun 2018 23:24:21 GMT):
but yes

inquiringtimes (Mon, 11 Jun 2018 23:24:23 GMT):
that helps, because sometimes in the docs it says MSP and other times it says CA

MuhammadSalah (Mon, 11 Jun 2018 23:24:24 GMT):
it speaks http

inquiringtimes (Mon, 11 Jun 2018 23:24:29 GMT):
but I wasn't sure they are the same thing

MuhammadSalah (Mon, 11 Jun 2018 23:24:35 GMT):
they are

inquiringtimes (Mon, 11 Jun 2018 23:24:51 GMT):
ok, I gotta run, but I will be back, and THANK YOU

MuhammadSalah (Mon, 11 Jun 2018 23:24:56 GMT):
nps

inquiringtimes (Tue, 12 Jun 2018 00:07:04 GMT):
Ok, I'm back and have a new question :D

inquiringtimes (Tue, 12 Jun 2018 00:09:44 GMT):
nvm, I figured it out

inquiringtimes (Tue, 12 Jun 2018 00:09:45 GMT):
lol

alex4ip (Tue, 12 Jun 2018 00:35:04 GMT):
Has joined the channel.

Khairul_danial (Tue, 12 Jun 2018 03:07:26 GMT):
Has joined the channel.

bestsun (Tue, 12 Jun 2018 03:13:47 GMT):
hello everyone!I want to know how to see each block in Fabric??

bestsun (Tue, 12 Jun 2018 03:16:42 GMT):
Another question:Can Fabric achieve peer-to-peer communication without creating a channel, endorsing and ordering?_

PawelD (Tue, 12 Jun 2018 03:31:47 GMT):
I'd like to know the same as @bestsun . I have deployed the standard network in Composer Playground and would like to basically see a low-level dump of a Peer's blockchain.. what would be the best approach to this? The databases contain current state as far as I understand but I would like to see the blockchain

PawelD (Tue, 12 Jun 2018 03:31:47 GMT):
I'd like to know the same as @bestsun is asking. I have deployed the standard network in Composer Playground and would like to basically see a low-level dump of a Peer's blockchain.. what would be the best approach to this? The databases contain current state as far as I understand but I would like to see the blockchain

Khairul_danial (Tue, 12 Jun 2018 03:39:39 GMT):
hi guys may i ask , i am running through this problem since yesterday , it happens when i am trying to instantiate my chaincode DockerBuild -> DEBU 46c Attempting build with image hyperledger/fabric-ccenv:x86_64-1.1.0 peer0.primary.winapp.my | 2018-06-12 01:54:19.934 UTC [chaincode-platform] func1 -> ERRO 46d Failed to generate platform-specific docker build: Error returned from build: 2 "# winapp.my Anyone been facing this issue before?

Khairul_danial (Tue, 12 Jun 2018 03:39:39 GMT):
hi guys may i ask , i am running through this problem since yesterday , it happens when i am trying to instantiate my chaincode DockerBuild -> DEBU 46c Attempting build with image hyperledger/fabric-ccenv:x86_64-1.1.0 2018-06-12 01:54:19.934 UTC [chaincode-platform] func1 -> ERRO 46d Failed to generate platform-specific docker build: Error returned from build: 2 " Anyone been facing this issue before?

PawelD (Tue, 12 Jun 2018 03:43:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dN8AzSF9hBBLAttHw) @Khairul_danial Some conflicts with versions of your docker images probably

clydedacruz (Tue, 12 Jun 2018 03:54:53 GMT):
What are the steps used to correctly add attributes to an X509 certificate? It seems like a custom extension is added to the X509v3 extensions: section. But I can't figure out how to do this. Posted a question on SO https://stackoverflow.com/questions/50758644/how-are-additional-attributes-included-in-fabric-certificates-can-this-be-also

Khairul_danial (Tue, 12 Jun 2018 03:55:42 GMT):
i did clean up all my images as well as container before starting the docker-compose up - Next i enter the cli container , create channel and join channel for each peer - Next , install and instantiate chaincode (Here is where the error occurs)

Khairul_danial (Tue, 12 Jun 2018 03:55:48 GMT):
@PawelD

Khairul_danial (Tue, 12 Jun 2018 03:57:32 GMT):
Did i miss any step ?

PawelD (Tue, 12 Jun 2018 04:06:02 GMT):
Looks ok..

Khairul_danial (Tue, 12 Jun 2018 04:13:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dN8AzSF9hBBLAttHw) but due to this error , it couldnt detect my chaincode , im still wondering whats the root cause

kiattchaip (Tue, 12 Jun 2018 04:22:41 GMT):
@Khairul_danial List your docker images with `docker images` to check that you already have the fabric-ccenv images in your machine. If you don't have, use the `docker pull hyperledger/fabric-ccenv:x86_64-1.1.0` to download it.

Khairul_danial (Tue, 12 Jun 2018 04:29:49 GMT):
i have list my docker images before i docker compose it , and it seems that fabric-ccenv is actually in my local , still it couldnt build the image

kiattchaip (Tue, 12 Jun 2018 04:38:52 GMT):
How do you get the hyperledger images? The version of the images may be not consistent. I suggest you to remove them all and use the script in the https://hyperledger-fabric.readthedocs.io/en/latest/install.html to download again.

kiattchaip (Tue, 12 Jun 2018 04:38:52 GMT):
How do you get the hyperledger images? The version of the images may not be consistent. I suggest you to remove them all and use the script in the https://hyperledger-fabric.readthedocs.io/en/latest/install.html to download again.

sreeharsha_katta (Tue, 12 Jun 2018 04:40:15 GMT):
Has joined the channel.

Khairul_danial (Tue, 12 Jun 2018 04:41:09 GMT):
'''echo "===> Downloading platform binaries" curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz echo "===> Pulling fabric Images" dockerFabricPull ${FABRIC_TAG} echo "===> Pulling fabric ca Image" dockerCaPull ${CA_TAG} echo echo "===> List out hyperledger docker images" docker images | grep hyperledger*'''

Khairul_danial (Tue, 12 Jun 2018 04:41:09 GMT):
echo "===> Downloading platform binaries" curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz

Khairul_danial (Tue, 12 Jun 2018 04:41:25 GMT):
i believe i took the images from here

kiattchaip (Tue, 12 Jun 2018 04:43:57 GMT):
Ok, try to check your compose (.yaml) file that version of each container are correct.

kiattchaip (Tue, 12 Jun 2018 04:43:57 GMT):
Ok, check your compose (.yaml) file that version of each container are correct.

kiattchaip (Tue, 12 Jun 2018 04:43:57 GMT):
Ok, check your compose (.yaml) file that version of each container is correct.

Khairul_danial (Tue, 12 Jun 2018 04:48:27 GMT):
there is no config for ccenv

Khairul_danial (Tue, 12 Jun 2018 04:49:31 GMT):
technically, if I downloaded the correct version which is 1.0.4 and tag is as latest, still the same error happens

Khairul_danial (Tue, 12 Jun 2018 04:59:04 GMT):
``` ===> List out hyperledger docker images hyperledger/fabric-ca latest 72617b4fa9b4 2 months ago 299MB hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 2 months ago 299MB hyperledger/fabric-tools latest b7bfddf508bc 2 months ago 1.46GB hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 2 months ago 1.46GB hyperledger/fabric-orderer latest ce0c810df36a 2 months ago 180MB hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 2 months ago 180MB hyperledger/fabric-peer latest b023f9be0771 2 months ago 187MB hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 2 months ago 187MB hyperledger/fabric-javaenv latest 82098abb1a17 2 months ago 1.52GB hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 2 months ago 1.52GB hyperledger/fabric-ccenv latest c8b4909d8d46 2 months ago 1.39GB hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 2 months ago 1.39GB hyperledger/fabric-zookeeper latest 92cbb952b6f8 3 months ago 1.39GB hyperledger/fabric-zookeeper x86_64-0.4.6 92cbb952b6f8 3 months ago 1.39GB hyperledger/fabric-kafka latest 554c591b86a8 3 months ago 1.4GB hyperledger/fabric-kafka x86_64-0.4.6 554c591b86a8 3 months ago 1.4GB hyperledger/fabric-couchdb latest 7e73c828fc5b 3 months ago 1.56GB hyperledger/fabric-couchdb x86_64-0.4.6 7e73c828fc5b 3 months ago 1.56GB```

GowriR (Tue, 12 Jun 2018 05:12:35 GMT):
Hi, I am breaking the https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh script since the docker pull fails everytime. Hence instead of using the script, I am doing it manually. I seem to have done the rest but i cant find "fabri-ca-client" in the bin directory. Below is from the documentation The command above downloads and executes a bash script that will download and extract all of the platform-specific binaries you will need to set up your network and place them into the cloned repo you created above. It retrieves four platform-specific binaries: cryptogen, configtxgen, configtxlator, peer orderer and fabric-ca-client and places them in the bin sub-directory of the current working directory. I have only

GowriR (Tue, 12 Jun 2018 05:12:35 GMT):
Hi, I am breaking the https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh script since the docker pull fails everytime. Hence instead of using the script, I am doing it manually. I seem to have done the rest but i cant find "fabri-ca-client" in the bin directory. Below is from the documentation The command above downloads and executes a bash script that will download and extract all of the platform-specific binaries you will need to set up your network and place them into the cloned repo you created above. It retrieves four platform-specific binaries: cryptogen, configtxgen, configtxlator, peer orderer and fabric-ca-client and places them in the bin sub-directory of the current working directory. I have only seil@beauty:~/hyledfabPoc$ ls bin/ *configtxgen configtxlator cryptogen get-docker-images.sh orderer peer*

GowriR (Tue, 12 Jun 2018 05:12:35 GMT):
Hi, I am breaking the https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh script since the docker pull fails everytime. Hence instead of using the script, I am doing it manually. I seem to have done the rest but i cant find* "fabri-ca-client" in the bin directory.* Below is from the *documentation* The command above downloads and executes a bash script that will download and extract all of the platform-specific binaries you will need to set up your network and place them into the cloned repo you created above. It retrieves four platform-specific binaries: cryptogen, configtxgen, configtxlator, peer orderer and fabric-ca-client and places them in the bin sub-directory of the current working directory. I have only seil@beauty:~/hyledfabPoc$ ls bin/ *configtxgen configtxlator cryptogen get-docker-images.sh orderer peer*

RamuBalachandran (Tue, 12 Jun 2018 06:19:04 GMT):
Hi All, I tried manually setting up a HL network following build your first network tutorial, when i am trying to create a channel ,getting the following error any advice ? I am using solo

RamuBalachandran (Tue, 12 Jun 2018 06:19:04 GMT):
Hi All, I tried manually setting up a HL network following build your first network tutorial, when i am trying to create a channel ,getting the following error any advice ? I am using solo 2018-06-12 06:15:15.307 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet

RamuBalachandran (Tue, 12 Jun 2018 06:19:04 GMT):
Hi All, I tried manually setting up a HL network following build your first network tutorial, when i am trying to create a channel ,getting the following error any advice ? I am using solo 2018-06-12 06:15:15.307 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet peer channel create -o orderer.xxx.com:7050 -c XXXRootChannel -t 10 -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/xxx.com/orderers/orderer.xxx.com/msp/tlscacerts/tlsca.xx.com-cert.pem

Saachi (Tue, 12 Jun 2018 06:23:47 GMT):
Has joined the channel.

nabil941994 (Tue, 12 Jun 2018 06:24:53 GMT):
Hi everyone, i am trying to add a second channel to my running network, containing one organization, one peer and one orderer. - Is it possible to create another channel? - if so, what are the steps to follow in order to create the channel? Thank you in advance

ThangaMariappan (Tue, 12 Jun 2018 06:39:51 GMT):
Has joined the channel.

ThangaMariappan (Tue, 12 Jun 2018 06:40:43 GMT):
How to contribute or join as a tester in fabric?

GowriR (Tue, 12 Jun 2018 06:55:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eegDsGPbTRhiejBXq) @nabil941994 It is the same as creating one channel. The peers can be shared

GowriR (Tue, 12 Jun 2018 06:55:39 GMT):
Where can i find fabric.js the fabcar chaincode?

nabil941994 (Tue, 12 Jun 2018 06:56:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LLn9SEqDm549AoyZ4) @GowriR creating one channel requirest specific configuration via configtx.yaml

nabil941994 (Tue, 12 Jun 2018 06:56:51 GMT):
if i want to add another one, that means i need to update this file?

GowriR (Tue, 12 Jun 2018 06:57:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NuxmWTWfZNy6NNtAb) @nabil941994 yes

nabil941994 (Tue, 12 Jun 2018 06:57:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DxsShBjTMWX7JMjQZ) @GowriR okay thanks

RamuBalachandran (Tue, 12 Jun 2018 07:01:37 GMT):
Hi All, I tried manually setting up a HL network following build your first network tutorial, when i am trying to create a channel ,getting the following error any advice ? I am using solo 2018-06-12 06:15:15.307 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet peer channel create -o orderer.xxx.com:7050 -c XXXRootChannel -t 10 -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/xxx.com/orderers/orderer.xxx.com/msp/tlscacerts/tlsca.xx.com-cert.pem

Saachi (Tue, 12 Jun 2018 07:06:26 GMT):
Hi guys If in Hyperledger fabric-samples , I shut down my dockers and start them again (without removing my existing hfc-key-store content ) using startFabric.sh , I am able to query the ledger using the previous user1 but unable to register new users using registerUser.js It gives the following error : Failed to register: Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authorization failure"}]] Authorization failures may be caused by having admin credentials from a previous CA instance. pls help me solve this issue

GowriR (Tue, 12 Jun 2018 07:22:43 GMT):
hello all, i have org1 with 3 peers and org2 with 2 peers. Only the chaincode on org2 is the authority on certain issues. the chaincode in org2 should be a system chaincode or normal one? can i run a separate chaincode on the 3 peers in org1 and that will not run on org2?

GowriR (Tue, 12 Jun 2018 07:32:52 GMT):
and a chaincode run on all peers of a channel?

Tommy109 (Tue, 12 Jun 2018 08:10:55 GMT):
whats the default consensus algorithm for fabric?

nabil941994 (Tue, 12 Jun 2018 08:13:16 GMT):
Hello all, i am trying to deploy a custom chaincode, however i cannot figure out where to put it, and what path should i used with the command

Unni_1994 (Tue, 12 Jun 2018 09:04:30 GMT):
Hello , I am trying to setup the network on multiple machines, Is it possible do it throgh the node sdk (can we setup this using the API calls)?

PreetilathaRamalingam (Tue, 12 Jun 2018 09:06:31 GMT):
Has joined the channel.

nabil941994 (Tue, 12 Jun 2018 09:30:17 GMT):
hello, when i try to instantiate chaincode, i get the following error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network _basic not found"}. does anyone know where my problem is?

PreetilathaRamalingam (Tue, 12 Jun 2018 09:39:07 GMT):
Hi, I have implemented the Hyperledger fabric network with three peers in different virtual machines.The instantiation, invoke and querying the ledgers are working fine. But I have performed all these procedures under the Docker Container. Is it possible to run the Hyperledger fabric network without the use of docker container? Can three different peers run in three different Linux machines and perform ledger transactions within them without using Docker container? If yes please provide us with some reference links to proceed with it.

titoe (Tue, 12 Jun 2018 09:47:30 GMT):
Has joined the channel.

Ammu (Tue, 12 Jun 2018 10:02:02 GMT):
how to connect front end with backend in hyperledger fabric

Ammu (Tue, 12 Jun 2018 10:02:17 GMT):
how to connect front end with backend in hyperledger fabric

GowriR (Tue, 12 Jun 2018 10:10:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G5z3et4jr72Kadipn) @nabil941994 you have to have the basic_network in samples up and running before running your chain code

nabil941994 (Tue, 12 Jun 2018 10:12:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wgceD9eHR85P4QFRQ) @GowriR i'm building my custom network based on this tutorial https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux, and i am running it

MarcelvandeKerkhof (Tue, 12 Jun 2018 10:14:16 GMT):
Has joined the channel.

nabil941994 (Tue, 12 Jun 2018 10:16:54 GMT):
I found the problem, you need to set up the .env file in your directory containing "COMPOSE_PROJECT_NAME=net"

GowriR (Tue, 12 Jun 2018 10:22:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C3a4ZJj3ifQ4aF52L) @nabil941994 you are using the composer?

nabil941994 (Tue, 12 Jun 2018 10:24:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hj8ey6sGanr6NgXY7) @GowriR No manually

Vigneshavm (Tue, 12 Jun 2018 10:26:45 GMT):
Has joined the channel.

ZeyuSun (Tue, 12 Jun 2018 10:39:56 GMT):
Has joined the channel.

ZeyuSun (Tue, 12 Jun 2018 10:40:18 GMT):
Encountered 'Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: EventHub has been shutdown' while running 'node invoke.js' in 'Writing Your First Application' tutorial. Please Help!!!

rodders1991 (Tue, 12 Jun 2018 11:00:07 GMT):
Has joined the channel.

mall3i (Tue, 12 Jun 2018 11:11:10 GMT):
Heya, I have a few general questions. I've been reading a bit but I'm not sure I've grasped all the concepts fully yet. If I develop a business network in composer, I still deploy that against an instance of a fabric blockchain - correct?

mall3i (Tue, 12 Jun 2018 11:13:18 GMT):
In that case, do I deploy a network or do I write chaincode to the existing fabric network?

ndatebayo (Tue, 12 Jun 2018 11:35:45 GMT):
Has left the channel.

ashufalcon (Tue, 12 Jun 2018 11:37:41 GMT):
Has joined the channel.

rahul703 (Tue, 12 Jun 2018 11:38:51 GMT):
Has joined the channel.

GowriR (Tue, 12 Jun 2018 11:43:03 GMT):
Hi all, how does this compile the chaincode go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim? Where does it take the .go file from? I am following implementing the chaincode application

VictoriaW (Tue, 12 Jun 2018 11:55:54 GMT):
Has joined the channel.

ajmeraharsh (Tue, 12 Jun 2018 13:41:16 GMT):
Hey guys, We have created a small PoC based on Hyperledger Fabric for Supply Chain Management. You can check it right here http://avocado.thoughtchimps.com Do share your feedback.

PawelD (Tue, 12 Jun 2018 13:42:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xipPyHpWW7FoBRS9i) @ajmeraharsh Coll, thanks, will have a look. Are you here on this channel for feedback ?

ajmeraharsh (Tue, 12 Jun 2018 13:43:47 GMT):
@PawelD If you can share here or in private message. Anything would do

waleed (Tue, 12 Jun 2018 13:46:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xipPyHpWW7FoBRS9i) @ajmeraharsh Nice :) is it open source?

PawelD (Tue, 12 Jun 2018 13:48:49 GMT):
@ajmeraharsh Looks good, great to have the Explorer there too. But you could explain what the roles of the users actually are, I love avocados but am not familiar with the industry. As in, what does DIAN and ICA Authority do for example

PawelD (Tue, 12 Jun 2018 13:49:14 GMT):
Open sourcing that would of course be amazing, to complement the examples from IBM.

ajmeraharsh (Tue, 12 Jun 2018 13:49:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ffgt8h7wyKjNRNvGN) @PawelD you might need to read 'How it Works' section on the home page!

ajmeraharsh (Tue, 12 Jun 2018 13:50:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q3ijMwjmsHopjB7A6) @waleed do you have any ideas about it?

PawelD (Tue, 12 Jun 2018 13:50:27 GMT):
@ajmeraharsh Right, now it is clear, thanks :)

waleed (Tue, 12 Jun 2018 13:51:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pKhHvNLr3Tih7n7yD) @ajmeraharsh yes, I would like to take a look at the code.

waleed (Tue, 12 Jun 2018 13:53:12 GMT):
@ajmeraharsh I also created a Web Application (Production not PoC) based on fabric and composer.

gravity (Tue, 12 Jun 2018 13:53:15 GMT):
Hi all Getting this error when trying to instantiate a chaincode `Peer peer2-testOrg not set for channel testchannel` any suggestions? thanks in advance

waleed (Tue, 12 Jun 2018 13:54:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=doyQrx3e4u8BBJ9PN) @gravity I think u haven't added the peer to channel

waleed (Tue, 12 Jun 2018 13:54:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=doyQrx3e4u8BBJ9PN) @gravity I think u haven't add the peer to channel

ajmeraharsh (Tue, 12 Jun 2018 13:55:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bsSJbsK7eRxz9FXxb) @waleed do you mind sharing the live url where I can check?

waleed (Tue, 12 Jun 2018 13:56:13 GMT):
I would do this, but u will need a card from me to be authenticated

waleed (Tue, 12 Jun 2018 13:56:13 GMT):
@ajmeraharsh I would do this, but u will need a card from me to be authenticated

ajmeraharsh (Tue, 12 Jun 2018 13:57:24 GMT):
@waleed let me connect with you in PM them

gravity (Tue, 12 Jun 2018 13:58:31 GMT):
@waleed Do you know what is the difference between `channel.addPeer(...)` and `channel.joinPeer(...)`?

waleed (Tue, 12 Jun 2018 14:03:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=db7kMGZsPX75aPxox) @gravity I just know joinPeer

pankajcheema (Tue, 12 Jun 2018 14:06:32 GMT):
Anyone ones why each peer has its own couchdb instance in FIRSTNETWORK

pankajcheema (Tue, 12 Jun 2018 14:06:34 GMT):
?

pankajcheema (Tue, 12 Jun 2018 14:06:44 GMT):
What is the benefit of that?

jrosmith (Tue, 12 Jun 2018 14:10:41 GMT):
@pankajcheema the same reason each peer keeps its own copy o the ledger. the couchdb instance is just the current world state.

jrosmith (Tue, 12 Jun 2018 14:10:41 GMT):
@pankajcheema the same reason each peer keeps its own copy of the ledger. the couchdb instance is just the current world state.

pankajcheema (Tue, 12 Jun 2018 14:11:03 GMT):
Do they communicatw with each other?

pankajcheema (Tue, 12 Jun 2018 14:11:40 GMT):
For example. IF I write from 1st peer. Will that transaction reflect in 2nd peers couchdb

jrosmith (Tue, 12 Jun 2018 14:11:57 GMT):
yes, the peers communicate with each other through the gossip protocol

pankajcheema (Tue, 12 Jun 2018 14:12:13 GMT):
What If couchdb is in separate machine?

pankajcheema (Tue, 12 Jun 2018 14:12:21 GMT):
3 seperate machines for couchdb

jrosmith (Tue, 12 Jun 2018 14:12:40 GMT):
are you saying 3 different servers, each with their own respective instance of a peer/couchdb pairing?

pankajcheema (Tue, 12 Jun 2018 14:12:51 GMT):
Yes

jrosmith (Tue, 12 Jun 2018 14:13:39 GMT):
yes, an update to one peer is an update to all peers

pankajcheema (Tue, 12 Jun 2018 14:14:01 GMT):
What will. Happen for the following case

pankajcheema (Tue, 12 Jun 2018 14:14:07 GMT):
6 servers

pankajcheema (Tue, 12 Jun 2018 14:14:08 GMT):
3 peers

pankajcheema (Tue, 12 Jun 2018 14:14:11 GMT):
3 couchdb

pankajcheema (Tue, 12 Jun 2018 14:16:52 GMT):
??

pankajcheema (Tue, 12 Jun 2018 14:18:20 GMT):
What if 1st peer's couchdb is down and 1st peer have query request or write request

pankajcheema (Tue, 12 Jun 2018 14:18:30 GMT):
?

pankajcheema (Tue, 12 Jun 2018 14:24:34 GMT):
@jrosmith

zimabry (Tue, 12 Jun 2018 14:41:05 GMT):
@jrosmith I am having issues joining my peers to the orderer.. I have 4 separate servers(1 is orderer and 3 other peers). The three other peers have DNS created when they spin up.. BYFN script runs on the 3 peers, then a byfn runs on the orderer last.. The error I get on the orderer is: Error: Error getting endorser client channel: endorser client failed to connect to peer0.****.com:7051: failed to create new connection: context deadline exceeded

waleed (Tue, 12 Jun 2018 14:45:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ziWp9dNnSwfSZwxoD) @zimabry a peer would be joined to a channel not to an orderer

zimabry (Tue, 12 Jun 2018 14:50:11 GMT):
@waleed :) sry thats what I meant

Amiy (Tue, 12 Jun 2018 14:50:21 GMT):
Has joined the channel.

DanielMcSheehy (Tue, 12 Jun 2018 14:51:48 GMT):
Has joined the channel.

DanielMcSheehy (Tue, 12 Jun 2018 14:52:30 GMT):
Hello, is fabric-client supported for chrome extensions? Having errors using that npm module with webpack.

zimabry (Tue, 12 Jun 2018 14:52:43 GMT):
@waleed with the above error I showed we tried to ping one of the peers based on the DNS and the ping worked successfully but nothing comes up on the logs of the peers image..

waleed (Tue, 12 Jun 2018 14:53:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z6ERavrKmZdkN67Eh) @zimabry did u tried with localhost:7051 ?

zimabry (Tue, 12 Jun 2018 14:55:33 GMT):
@waleed yes that was tested successfully on local machines with same code

waleed (Tue, 12 Jun 2018 15:02:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EWgj2CYZ7DF2gxnLK) @zimabry I think the problem is, because u use separate servers and didn't configure docker correctly. u need to make sure that 2 docker containers connect with each other correctly

waleed (Tue, 12 Jun 2018 15:02:59 GMT):
@zimabry some docker networking is necessary in your case

zimabry (Tue, 12 Jun 2018 15:04:43 GMT):
@waleed is there documentation somewhere for these docker network settings? Also sometimes this code works with DNS but not everytime.. not sure if that means something to you for more information..

Ammu (Tue, 12 Jun 2018 15:06:20 GMT):
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 . In this command what is the meaning of -sSL?

mgurnani (Tue, 12 Jun 2018 15:30:50 GMT):
Has joined the channel.

LuisCoelho (Tue, 12 Jun 2018 15:31:41 GMT):
Can someone tell me how to write a query in Hyperledger Composer with parameters, so then when I run the api server I can enter the parameter values?

jrosmith (Tue, 12 Jun 2018 15:44:21 GMT):
@pankajcheema if a peer cannot communicate with the state database it will return an invalid proposal result

jrosmith (Tue, 12 Jun 2018 15:45:17 GMT):
@zimabry sorry man not an expert on the networking side... #fabric-peer-endorser-committer might be able to help though

Mahesh-Raj (Tue, 12 Jun 2018 16:06:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xipPyHpWW7FoBRS9i) @ajmeraharsh *Amazing* this is! What SDK you have used?

ajmeraharsh (Tue, 12 Jun 2018 16:15:29 GMT):
@Mahesh-Raj It's based on Composer-rest, do check the 'How it works' on login page

Mahesh-Raj (Tue, 12 Jun 2018 16:18:20 GMT):
@ajmeraharsh ok, I might have more questions about it. But it looks really neat. Are you guys open to collaborators on it? I would really like to check the code and contribute

LuisCoelho (Tue, 12 Jun 2018 16:18:42 GMT):
@ajmeraharsh pretty cool! Is this an open source project?

ajmeraharsh (Tue, 12 Jun 2018 16:20:26 GMT):
@LuisCoelho not yet, but it depends on the use case and requirements. Do you have any similar requirement?

ajmeraharsh (Tue, 12 Jun 2018 16:22:19 GMT):
@Mahesh-Raj Thanks a lot, we are open to collaborations but sharing the code is something we would only like to do once we are satisfied with its efficiency. Still waiting to hear feedback from some of the experts here.

waleed (Tue, 12 Jun 2018 16:44:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4qAyxXxi2TjsGQw9s) @zimabry maybe can this help: https://docs.docker.com/network/

zimabry (Tue, 12 Jun 2018 16:58:35 GMT):
@waleed Thank you

jadhavajay (Tue, 12 Jun 2018 17:03:15 GMT):
Hi Fabric Team, Can anyone please answer this question on stackoverflow about "Visibility Settings for Input Data on Chaincode" ? https://stackoverflow.com/questions/48781741/visibility-settings-for-input-data-on-chaincode

yashwanthmadaka24 (Tue, 12 Jun 2018 17:17:44 GMT):
Has joined the channel.

yashwanthmadaka24 (Tue, 12 Jun 2018 17:17:54 GMT):
Hi, I recently created a model in hyperledger composer and deployed it locally using composer rest server. I created an angular app using yo commands. Iam unable to view and create new assets and participants of the existing model, but there is no ui to invoke a transaction in the transactions panel. Can anyone please help

yashwanthmadaka24 (Tue, 12 Jun 2018 17:18:11 GMT):

issue.png

waleed (Tue, 12 Jun 2018 17:41:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bjwRnszyyu8kpSdH6) @yashwanthmadaka24 to excecute a transaction u need to implement the frontend for that in your app or use the playground

waleed (Tue, 12 Jun 2018 17:41:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bjwRnszyyu8kpSdH6) @yashwanthmadaka24 to excecute a transaction u need to implement the frontend for that in your app or use the playground. make sure that your app sends the requests to the right url of the rest server to get the assets and participants. u can check the request in browser network

MarceloAzevedo (Tue, 12 Jun 2018 17:48:17 GMT):
Hello guys, has anyone know how to do unit tests integrating your sdk with the network? for example, I want to send a mocked payload from a peerA through a channel and see if a peerB receives this payload on the other side. Is it possible?

tqumhieh (Tue, 12 Jun 2018 17:50:04 GMT):
How feasible it is to migrate/export ledger data from one deployment to another ?

broomweed (Tue, 12 Jun 2018 18:24:25 GMT):
Has joined the channel.

broomweed (Tue, 12 Jun 2018 18:27:20 GMT):
Hello there! I'm trying to run the basic Java chaincode example in development mode. I'm using Fabric 1.1 (compiled in experimental mode). But every time I try to run `peer chaincode instantiate` in dev mode, even for chaincode written in Golang, I get the error: `Error: Error endorsing chaincode: rpc error: code = Unknown desc = failed to init chaincode: handler not found for chaincode SimpleSample:0`. What does this mean/how can I deal with this?

mcoblenz (Tue, 12 Jun 2018 18:36:06 GMT):
Has joined the channel.

venedara (Tue, 12 Jun 2018 18:39:22 GMT):
Hello Could some one Please help to provide exact definition details for below createComposerProfile.sh createPeerAdminCard.sh - DevServer_connection.json downloadFabric.sh fabric-dev-servers.tar.gz fabric-scripts _loader.sh package.json startFabric.sh stopFabric.sh teardownAllDocker.sh teardownFabric.sh

pankajcheema (Tue, 12 Jun 2018 19:02:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ArJ2dLKDzDt4Er44D) @jrosmith then it is not useful to have 3 couchdb. Because in case of 1 couchdb if it is dead, peer wont provide response. Same happen with having multiple couchdbs

yashwanthmadaka24 (Tue, 12 Jun 2018 19:04:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Bvm9arEWuWoepe3C) @waleed Do you have any tutorial for how to implement the frontend so that i can initiate the transactions. How to send the requests to submit a transaction and also how can I view all the transactions?

yashwanthmadaka24 (Tue, 12 Jun 2018 19:09:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xLn8aZ9t2P6y4fsTn) @venedara You can refer the below links. Please read them and then you can understand all those

yashwanthmadaka24 (Tue, 12 Jun 2018 19:09:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xLn8aZ9t2P6y4fsTn) @venedara You can refer the below links. Please read them and then you can understand all those https://hyperledger.github.io/composer/v0.16/installing/development-tools.html, https://medium.freecodecamp.org/ultimate-end-to-end-tutorial-to-create-an-application-on-blockchain-using-hyperledger-3a83a80cbc71, https://github.com/IBM/Decentralized-Energy-Composer

yashwanthmadaka24 (Tue, 12 Jun 2018 19:09:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xLn8aZ9t2P6y4fsTn) @venedara You can refer the below links. https://hyperledger.github.io/composer/v0.16/installing/development-tools.html, https://medium.freecodecamp.org/ultimate-end-to-end-tutorial-to-create-an-application-on-blockchain-using-hyperledger-3a83a80cbc71, https://github.com/IBM/Decentralized-Energy-Composer

jrosmith (Tue, 12 Jun 2018 19:12:17 GMT):
@pankajcheema im not sure i understand what you're saying. are you saying it would be better to have a peer sync with multiple couchdbs?

rjsadaye (Tue, 12 Jun 2018 20:08:32 GMT):
Has joined the channel.

rjsadaye (Tue, 12 Jun 2018 20:09:14 GMT):
Is it possible to integrate data from a streaming app (maybe built in Kafka) into the fabric blockchain and measure its performance? I've been trying to find something related to this but there's no related stuff

frustrated-chain (Tue, 12 Jun 2018 20:58:43 GMT):
Has joined the channel.

PrafullTilwankar (Wed, 13 Jun 2018 02:03:59 GMT):
Hi All I am unable to create channel using configs mentioned in first network. I am getting below error. `2018-06-12 07:33:06.942 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining`

GowriR (Wed, 13 Jun 2018 03:16:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d4oJEpx3fKEhg7DaF) @Ammu secure shell

Hemanth96 (Wed, 13 Jun 2018 03:24:59 GMT):
Has joined the channel.

Hemanth96 (Wed, 13 Jun 2018 03:28:02 GMT):
Hi, If an org transacting in 2 or more channels, is there any way for org to see consolidated data? Instead of querying in multiple channels.

yyyfor (Wed, 13 Jun 2018 03:39:06 GMT):
Has joined the channel.

midhun14 (Wed, 13 Jun 2018 03:42:47 GMT):
@Ammu You can use typescript to connect to hyperledger fabric from from front-end(UI).

GowriR (Wed, 13 Jun 2018 04:31:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=STfN6znmbucBT6vFC) @Hemanth96 guess not.

GowriR (Wed, 13 Jun 2018 05:04:53 GMT):
i cant see my chain code in the image when i move to the chain code container using (docker exec -it chaincode bash). It only see the examples that are already there. How do I put my chain code in there?

GowriR (Wed, 13 Jun 2018 05:04:53 GMT):
i cant see my chain code in the image when i move to the chain code container using (docker exec -it chaincode bash). It only see the examples that are already there. How do I put my chain code in there? Figured out that it is the CORE_PEER_ID in docker-compose.yaml. How do I specify my own?

midhun14 (Wed, 13 Jun 2018 05:29:35 GMT):
Can we have only 1 organization with a single peer in a channel?

ajmeraharsh (Wed, 13 Jun 2018 05:51:14 GMT):
@midhun14 Yes for a testing purpose, that would make sense

d8bhatta (Wed, 13 Jun 2018 06:08:56 GMT):
Hello All I am trying https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material/tuna-app and run ./startFabric.sh I get following error: # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "@org1.example.com" target="_blank" rel="noopener noreferrer">CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx Error response from daemon: Container 1571c0197f52e95bb32f926403c672a71661fcffd44f00148229c6c04ea265e2 is not running

d8bhatta (Wed, 13 Jun 2018 06:09:37 GMT):
Please suggest

GowriR (Wed, 13 Jun 2018 06:25:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7zzCXYmssnav8JmKg) @d8bhatta orderer container needs to be running

venedara (Wed, 13 Jun 2018 06:53:02 GMT):
Hello venedara@venedara-VirtualBox:~/mynetwork01/tutorial-network$ composer archive create -t dir -n . Creating Business Network Archive Looking for package.json of Business Network Definition Input directory: /home/venedara/mynetwork01/tutorial-network TypeNotFoundException: Type SampleTransaction is not defined in namespace org.example.mynetwork Command failed venedara@venedara-VirtualBox:~/mynetwork01/tutorial-network$ composer archive create -t dir -n . Creating Business Network Archive Looking for package.json of Business Network Definition Input directory: /home/venedara/mynetwork01/tutorial-network TypeNotFoundException: Type SampleTransaction is not defined in namespace org.example.mynetwork Command failed Iam getting above error Could some one please help TypeNotFoundException: Type SampleTransaction is not defined in namespace org.example.mynetwork Command failed

GowriR (Wed, 13 Jun 2018 07:05:06 GMT):
Hi all, my machine got rebooted and post that the cli container (hyperledger/fabric-tools) exited with errocode 1. What might be the reason. It was running before the reboot

waleed (Wed, 13 Jun 2018 07:15:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k3xa9A8ioPczu27az) @yashwanthmadaka24 the generated App is an Angular app. it has frontend for creating, editing and removing an asset. u can check the code and do exactly the same for the participants and the transaction.

wonderfan (Wed, 13 Jun 2018 07:42:11 GMT):
Has joined the channel.

wonderfan (Wed, 13 Jun 2018 07:42:20 GMT):
transport: Error while dialing dial tcp: lookup orderer.example.com: no such host

GowriR (Wed, 13 Jun 2018 07:42:48 GMT):
ERROR: for orderer Cannot start service orderer: b'network 187fd80f68677043defa3e33c99de8c741a8641196843fb97f849dc5e2cc2dfa not found' Now i am getting this. any ideas?

GowriR (Wed, 13 Jun 2018 07:42:48 GMT):
ERROR: for orderer Cannot start service orderer: b'network 187fd80f68677043defa3e33c99de8c741a8641196843fb97f849dc5e2cc2dfa not found' Now i am getting this. any ideas? Creating orderer ... error ERROR: for orderer Cannot start service orderer: b'driver failed programming external connectivity on endpoint orderer (c2897c3f48d55901977a0fc2ec2d7d3c31f68f649fc29e07579e99c20385247a): Bind for 0.0.0.0:7050 failed: port is already allocated' ERROR: for orderer Cannot start service orderer: b'driver failed programming external connectivity on endpoint orderer (c2897c3f48d55901977a0fc2ec2d7d3c31f68f649fc29e07579e99c20385247a): Bind for 0.0.0.0:7050 failed: port is already allocated'

lilyluoBJ (Wed, 13 Jun 2018 08:04:32 GMT):
Has joined the channel.

tronglx (Wed, 13 Jun 2018 08:08:08 GMT):
Hi all, I want to implement a currency in hyperledger-fabric through chaincode api but having a problem: I can not take tag, set owner for coin. In other aspect, coin's implementation depend on chaincode interface. Have anyone has good idea? which package in hyperledger-fabric I can use to issue transaction? I don't want implement currency through chaincode interface. Please help me, experts.

tronglx (Wed, 13 Jun 2018 08:08:08 GMT):
Hi all, I'm implementing a currency in hyperledger-fabric through chaincode api but having a problem: I can not take tag, set owner for coin. In other aspect, coin's implementation depend on chaincode interface. Have anyone has good idea? which package in hyperledger-fabric I can use to issue transaction? I don't want implement currency through chaincode interface. Please help me, experts.

tronglx (Wed, 13 Jun 2018 08:08:08 GMT):
Hi all, I'm implementing a currency in hyperledger-fabric through chaincode api but having a problem: I cannot take tag, set owner for coin. In other aspect, coin's implementation depend on chaincode interface. Have anyone has good idea? which package in hyperledger-fabric I can use to issue transaction? I don't want implement currency through chaincode interface. Please help me, experts.

christian-dev (Wed, 13 Jun 2018 08:10:03 GMT):
Has joined the channel.

christian-dev (Wed, 13 Jun 2018 08:14:14 GMT):
Saw this demo on reddit.com/r/hyperledger about supply chain, It looks Promising but how do I know if Fabric is really being used behind the scene? https://bit.ly/2sRYBAQ Anyone?

christian-dev (Wed, 13 Jun 2018 08:14:14 GMT):
Saw this demo on reddit.com about supply chain, It looks Promising but how do I know if Fabric is really being used behind the scene? https://bit.ly/2sRYBAQ Anyone?

christian-dev (Wed, 13 Jun 2018 08:14:14 GMT):
Saw this demo on reddit about supply chain, It looks Promising but how do I know if Fabric is really being used behind the scene? https://bit.ly/2sRYBAQ Anyone?

christian-dev (Wed, 13 Jun 2018 08:27:51 GMT):
I have seen demos which don't really implement anything. they are just API based websites, I am wondering how can one check the authenticity here?

christian-dev (Wed, 13 Jun 2018 08:30:16 GMT):
are there any admins/moderators here? How this place runs?

noriaki.kishimoto (Wed, 13 Jun 2018 08:32:09 GMT):
Has joined the channel.

devendrarg (Wed, 13 Jun 2018 08:51:18 GMT):
Has joined the channel.

devendrarg (Wed, 13 Jun 2018 08:51:30 GMT):
How can I invoke chaincode using private key? Where I can find private key for user? #fabric-questions #fabric-sdk . In other words I don't want to connect using username("user1") as specified in fab car example. fabric_client.getUserContext('user1', true)

BabyCodet (Wed, 13 Jun 2018 08:52:02 GMT):
Hi everyone, we are searching team member(developer) to create new hyperledger fabric base on project.

BabyCodet (Wed, 13 Jun 2018 08:52:33 GMT):
If anyone intereted in it please contact with me.

devendrarg (Wed, 13 Jun 2018 08:54:23 GMT):
@BabyCodet I'm interested..Please tell more details

devendrarg (Wed, 13 Jun 2018 08:54:23 GMT):
@BabyCodet devendra4you@gmail.com

BabyCodet (Wed, 13 Jun 2018 08:55:44 GMT):
Okey, could you

BabyCodet (Wed, 13 Jun 2018 08:55:44 GMT):
Okey, could you give your e mail adres

Mahesh-Raj (Wed, 13 Jun 2018 09:00:38 GMT):
@BabyCodet mahesh.rajwansi@gmail.com

DrLana (Wed, 13 Jun 2018 09:20:59 GMT):
Has joined the channel.

DrLana (Wed, 13 Jun 2018 09:21:54 GMT):
Is it possible to delete channels from a private blockchain? if yes, how?

PawelD (Wed, 13 Jun 2018 09:23:16 GMT):
@BabyCodet what kind of project?

sudeshkashyap (Wed, 13 Jun 2018 09:37:38 GMT):
hi guyz!! can any one tell me how to do the chaincode packaging

sudeshkashyap (Wed, 13 Jun 2018 09:38:37 GMT):
and steps for installing that CDS and instantiate the chain code

sudeshkashyap (Wed, 13 Jun 2018 09:40:12 GMT):
when i am trying to instantiate my own chaincode the dev-peer container is created and exits the next second

sudeshkashyap (Wed, 13 Jun 2018 09:41:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DYLW9N5HxKJPBDuti) @BabyCodet i am interested!! ping me here somkash929@gmail.com

NikolaIsailovic (Wed, 13 Jun 2018 09:45:52 GMT):
Has joined the channel.

ArthurBartoli (Wed, 13 Jun 2018 10:23:02 GMT):
Has joined the channel.

ArthurBartoli (Wed, 13 Jun 2018 10:25:24 GMT):
Hi everyone ! :) I'm following the tutorial to create a network (https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial) but when entering this command "composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna", the terminal tells me that the card was not found and something something peer admin. I read that the peer admin credentials should have been created, so maybe an error ? I don't know what to do

HimaniMukne (Wed, 13 Jun 2018 10:29:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iSG2ZkNji5tS6pE9Q) @ArthurBartoli check if the card was installed

ArthurBartoli (Wed, 13 Jun 2018 10:30:27 GMT):
how do i do that ? i

ArthurBartoli (Wed, 13 Jun 2018 10:30:40 GMT):
it says in the tutorial this is done already, or i misunderstood smth

ArthurBartoli (Wed, 13 Jun 2018 10:30:45 GMT):
i'm pretty new to this

HimaniMukne (Wed, 13 Jun 2018 10:30:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=emeCsmATuBJ6J779A) @GowriR don't know, but try starting its docker `docker start cli` . should get `cli` in response

ArthurBartoli (Wed, 13 Jun 2018 10:31:22 GMT):
"no such container"

ArthurBartoli (Wed, 13 Jun 2018 10:31:34 GMT):
ah sorry i thought you were refering to me

HimaniMukne (Wed, 13 Jun 2018 10:34:40 GMT):

HELPING.png

HimaniMukne (Wed, 13 Jun 2018 10:34:59 GMT):
had you received this after setting up?

ArthurBartoli (Wed, 13 Jun 2018 10:35:21 GMT):
i don't remember, i did that yesterday

ArthurBartoli (Wed, 13 Jun 2018 10:35:47 GMT):
but no i don't remember seeing this

ArthurBartoli (Wed, 13 Jun 2018 10:36:01 GMT):
what would I have to do to create a card ?

HimaniMukne (Wed, 13 Jun 2018 10:36:44 GMT):
try executing `composer card list` in the development folder, it will give you a list of cards and which networks they are involved in. @ArthurBartoli

ArthurBartoli (Wed, 13 Jun 2018 10:37:02 GMT):
no business card available

HimaniMukne (Wed, 13 Jun 2018 10:37:18 GMT):
then peeradmin card is not installed

ArthurBartoli (Wed, 13 Jun 2018 10:37:19 GMT):
would type 'composer-playground' create that peer admin card ?

ArthurBartoli (Wed, 13 Jun 2018 10:37:56 GMT):
I saw it at the end of the set up but since I did it yesterday maybe it restarted

HimaniMukne (Wed, 13 Jun 2018 10:37:57 GMT):
peeradmin@hlfv1 is created during installation i suppose

HimaniMukne (Wed, 13 Jun 2018 10:38:12 GMT):
so my best presumption is, soemthing has gone wrong with the set up

ArthurBartoli (Wed, 13 Jun 2018 10:38:32 GMT):
cd ~/fabric-dev-servers ./startFabric.sh ./createPeerAdminCard.sh

ArthurBartoli (Wed, 13 Jun 2018 10:38:34 GMT):
maybe ?

HimaniMukne (Wed, 13 Jun 2018 10:38:58 GMT):
yes, always start fabric whenever you face such issues

ArthurBartoli (Wed, 13 Jun 2018 10:39:07 GMT):
AH

ArthurBartoli (Wed, 13 Jun 2018 10:39:14 GMT):
i just got what you send me on the terminal

HimaniMukne (Wed, 13 Jun 2018 10:40:12 GMT):
cd ~/fabric-dev-servers

HimaniMukne (Wed, 13 Jun 2018 10:40:23 GMT):
./startFabric.sh

HimaniMukne (Wed, 13 Jun 2018 10:40:25 GMT):
cd -

HimaniMukne (Wed, 13 Jun 2018 10:40:32 GMT):
go to your concerned directory

HimaniMukne (Wed, 13 Jun 2018 10:40:37 GMT):
execute that step

HimaniMukne (Wed, 13 Jun 2018 10:41:07 GMT):
also check in the concerned folder if .bna file was actually created.

ArthurBartoli (Wed, 13 Jun 2018 10:42:51 GMT):
worked !

ArthurBartoli (Wed, 13 Jun 2018 10:42:53 GMT):
thank you

HimaniMukne (Wed, 13 Jun 2018 10:43:05 GMT):
sure

GowriR (Wed, 13 Jun 2018 11:02:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3HwvagSLFB6zHk6kz) @HimaniMukne I am still stuck on a similar problem. on 127.0.0.11:53: no such host"; Reconnecting to {orderer:7050 } cli | 2018-06-13 09:17:43.402 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer on 127.0.0.11:53: no such host"; Reconnecting to {orderer:7050 } cli | Error: failed to create deliver client: orderer client failed to connect to orderer:7050: failed to create new connection: context deadline exceeded Could you please help on this? Now the orderer is down

HimaniMukne (Wed, 13 Jun 2018 11:07:28 GMT):
check docker container and images. there seems to be an issue with docker. check port 7050. is the docker running/listening? `docker ps -a`

HimaniMukne (Wed, 13 Jun 2018 11:07:34 GMT):
@GowriR

nissshh (Wed, 13 Jun 2018 11:10:39 GMT):
I am trying to setup hyperledger with 1 channel FOO and 3 orgs , where the 3 orgs peer are different machines. I am using docker swarm to bring 3 orgs peer machines in a netowrk , Node 1 running Orderer, Org 1 peer and Cli1 , Node 2 : Org2 peer and Cli2 and likewise . My Aim is to setup a channel and then add organizations on the runtime. So far I was able to create a channel foo via org 1 and then added org2 to it , but the moment I add org3 i get below error , when running command ```

nissshh (Wed, 13 Jun 2018 11:10:39 GMT):
I am trying to setup hyperledger with 1 channel FOO and 3 orgs , where the 3 orgs peer are different machines. I am using docker swarm to bring 3 orgs peer machines in a netowrk , Node 1 running Orderer, Org 1 peer and Cli1 , Node 2 : Org2 peer and Cli2 and likewise . My Aim is to setup a channel and then add organizations on the runtime. So far I was able to create a channel foo via org 1 and then added org2 to it , but the moment I add org3 i get below error , when running command ``` peer channel update -f org3_update_in_envelope.pb -c foo -o orderer.example.com:7050 --cafile $ORDERER_CA``` and error as below ```Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining ``` does anyone know an example or sampl e to establish the addition of organisation on runtime wher eorganization are above 2

sudeshkashyap (Wed, 13 Jun 2018 11:31:26 GMT):
does any one know where exactly the user defined chaincode package is saved?

GowriR (Wed, 13 Jun 2018 11:34:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y7vmQ6pz8wBrXakRE) @HimaniMukne the cli was in exited mode initially, now i have the orderer in exited mode. i am trying to up the docker-compose.yaml file in chaincode-dev example

GowriR (Wed, 13 Jun 2018 11:40:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=noyftWirkrBLJTR4G) Himani -- ea801d6d0dc256af59af88f14253577". You have to remove (or rename) that container to be able to reuse that name.' ERROR: for cli Cannot create container for service cli: b'Conflict. The container name "/cli" is already in use by container "7c79ebdaa073a97162dfc19fdf18f64ceea801d6d0dc256af59af88f14253577". You have to remove (or rename) that container to be able to reuse that name.' ERROR: Encountered errors while bringing up the project.

GowriR (Wed, 13 Jun 2018 11:46:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LkPck6t5rZGHMgerR) Solved it Himani. Thanks

GowriR (Wed, 13 Jun 2018 11:52:08 GMT):
What is the next step after running the chain code on a dev network? How do i use the functions in the chaincode?

GowriR (Wed, 13 Jun 2018 11:52:08 GMT):
What is the next step after running the chain code on a dev network? How do i use the functions in the chaincode? I want the endorsing peers to broadcast a transaction and the other peers to respond with another transaction

goelmayank (Wed, 13 Jun 2018 12:15:52 GMT):
Hi, I am stuck with this error: `Expected a resource or concept` in my createTrip function here: https://github.com/goelmayank/UrbanStack/blob/9eb7c1a82ec54810bc32d887d272da9da699aa87/urbanstack-network/lib/logic.js This is the model file: https://github.com/goelmayank/UrbanStack/blob/9eb7c1a82ec54810bc32d887d272da9da699aa87/urbanstack-network/models/org.urbanstack.cto Can someone please help?

goelmayank (Wed, 13 Jun 2018 12:15:52 GMT):
Hi, I am stuck with this error: `Expected a resource or concept` in my createTrip function here: https://github.com/goelmayank/UrbanStack/blob/master/urbanstack-network/lib/logic.js This is the model file: https://github.com/goelmayank/UrbanStack/blob/master/urbanstack-network/models/org.urbanstack.ctoCan someone please help?

ArthurBartoli (Wed, 13 Jun 2018 12:22:05 GMT):
Hey just so we're clear, hyperledger is free right ?

raymondfx (Wed, 13 Jun 2018 12:40:27 GMT):
Has joined the channel.

MonnyClara (Wed, 13 Jun 2018 13:04:57 GMT):
@ArthurBartoli Yep, it's an Open Source project

Pallavrj (Wed, 13 Jun 2018 13:23:06 GMT):
Has joined the channel.

JackStrohm (Wed, 13 Jun 2018 13:23:31 GMT):
I'm trying to build out a fault tolerant minimal production instance for a single org. It seems I need 4 Kafka nodes, 3 Zookeeper nodes, 2 orderers, 2 CAs, and 2 peers - That's 13 separate machines. Does that seem right? Am I missing anything? That seems like a LOT of machines for a minimal production install.

Adam_Hardie (Wed, 13 Jun 2018 13:50:15 GMT):
i only see chaincode func examples with String[] arg

Adam_Hardie (Wed, 13 Jun 2018 13:50:36 GMT):
is there a possibility to accept other types of argument, eg byte[], int, etc

Adam_Hardie (Wed, 13 Jun 2018 13:50:47 GMT):
something like func init_message(stub shim.ChaincodeStubInterface, id string, messageType int, timestamp int64, messageBytes []byte) (pb.Response) {

tballast (Wed, 13 Jun 2018 13:57:16 GMT):
Has joined the channel.

Adam_Hardie (Wed, 13 Jun 2018 14:14:57 GMT):
or does chaincode args *have* to be in a string[] key:value format? if so, is it not possible to serialize an object and pass as part of a transaction for example?

yacovm (Wed, 13 Jun 2018 14:26:45 GMT):
@Adam_Hardie you can just hex encode them

yacovm (Wed, 13 Jun 2018 14:26:50 GMT):
or base64 encode them

yacovm (Wed, 13 Jun 2018 14:27:17 GMT):
the protobuf is bytes

yacovm (Wed, 13 Jun 2018 14:27:27 GMT):
but if you use a commandline tool like a CLI

yacovm (Wed, 13 Jun 2018 14:27:31 GMT):
obviously you can't use bytes

yacovm (Wed, 13 Jun 2018 14:27:35 GMT):
but you can use bytes in an SDK

Adam_Hardie (Wed, 13 Jun 2018 14:30:45 GMT):
cool, thanks !

SaraEmily (Wed, 13 Jun 2018 14:34:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fELrtFEAeSW2HSAGZ) @JackStrohm Hi Jack, yes, I think you got it all and yes I agree, 13 machines is a lot, perhaps some can share machine? for example a peer and a zookeeper node? Depends on the level of fault-tolerance you'll need obv. If you're interested in fault-tolreance, this paper describes a BFT ordering service (only requires 3f+1 node, instead of 4+3 for kafka) https://arxiv.org/pdf/1709.06921.pdf, they have made the source code freely avaliable here: https://github.com/jcs47/hyperledger-bftsmart

JackStrohm (Wed, 13 Jun 2018 14:44:59 GMT):
@Adam_Hardie The shim.ChaincodeStubInterface provides GetFunctionAndParameters - which extracts a string function name and string args. But you can also call GetArgs which returns the args as binary.

JackStrohm (Wed, 13 Jun 2018 14:46:30 GMT):
@SaraEmily thank you. I'm finding the lack of documentation on getting Fabric production ready very troublesome. It's crazy to require 13 machines for fault tolerance.

SaraEmily (Wed, 13 Jun 2018 14:48:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YbccLhbqT5wm5DycX) @JackStrohm No problems :) Yes, I'm writing my master thesis now and I'm comparing permissioned blockchains and distributed databases and this is definitly a con for blockchains...

mondux (Wed, 13 Jun 2018 14:49:51 GMT):
Has joined the channel.

pd93 (Wed, 13 Jun 2018 14:59:24 GMT):
Regarding the following piece of documentation... ``` // If the key does not exist in the state database, (nil, nil) is returned. GetState(key string) ([]byte, error) ``` Why is this the case? I understand why it might be considered wrong to return an error here (although this could still be handled perfectly fine IMO), but why not return a third boolean variable? Or even include an extra shim function `CheckState(key string) (bool, error)` or similar? It feels incredibly wrong to check if a state exists by checking if the returned bytes == nil. Especially since this is a potentially valid state. I'd really appreciate some clarification around this design if anyone knows more about it.

pd93 (Wed, 13 Jun 2018 14:59:24 GMT):
Regarding the following piece of documentation... ```// If the key does not exist in the state database, (nil, nil) is returned. GetState(key string) ([]byte, error) ``` Why is this the case? I understand why it might be considered wrong to return an error here (although this could still be handled perfectly fine IMO), but why not return a third boolean variable? Or even include an extra shim function `CheckState(key string) (bool, error)` or similar? It feels incredibly wrong to check if a state exists by checking if the returned bytes == nil. Especially since this is a potentially valid state. I'd really appreciate some clarification around this design if anyone knows more about it.

pd93 (Wed, 13 Jun 2018 14:59:24 GMT):
Regarding the following piece of documentation... ```// If the key does not exist in the state database, (nil, nil) is returned. GetState(key string) ([]byte, error) ``` Why is this the case? I understand why it might be considered wrong to return an error here (although this could still be handled perfectly fine IMO), but why not return a third boolean variable? Or even include an extra shim function `CheckState(key string) (bool, error)` or similar? It feels incredibly wrong to test if a state exists by checking if the returned bytes == nil. Especially since this is a potentially valid state. I'd really appreciate some clarification around this design if anyone knows more about it.

Adam_Hardie (Wed, 13 Jun 2018 15:05:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMxEExgL8Tdcz2aXX) @JackStrohm thats great news So I could send my id, timestamp, type and serialized object as a list of byte[], and convert what i need in the chaincode to string,int,whatever when needed (eg to check uniqueness of Id)

JackStrohm (Wed, 13 Jun 2018 15:10:48 GMT):
@Adam_Hardie Theoretically, but I've never done it. All my data comes from a web front end and is in string format.

Adam_Hardie (Wed, 13 Jun 2018 15:11:42 GMT):
that is the same for most public examples I've seen. will let you know how it goes :)

JackStrohm (Wed, 13 Jun 2018 15:12:55 GMT):
Good luck!

nabilm (Wed, 13 Jun 2018 15:16:04 GMT):
Has joined the channel.

jzeni (Wed, 13 Jun 2018 15:20:47 GMT):
Has joined the channel.

jzeni (Wed, 13 Jun 2018 15:34:09 GMT):
Hi

jzeni (Wed, 13 Jun 2018 15:35:22 GMT):
does this error ring a bell for you? `export CORE_PEER_ADDRESS=orderer0:7050; peer channel create -o orderer0:7050 -c default -f /peers/channel.tx --cafile /peers/ordererOrganizations/orderer-org/tlsca/tlsca.orderer-org-cert.pem 2018-06-13 15:10:50.151 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: rpc error: code = Unavailable desc = transport is closing`

LuisCoelho (Wed, 13 Jun 2018 15:59:20 GMT):
Greetings everyone. Does anyone implemented any solution to send files on fabric? Upload and download files to ledger?

Aswath8687 (Wed, 13 Jun 2018 17:27:28 GMT):
Hi, Any fabric certification available/recommended by IBM/Linux team ?

Aswath8687 (Wed, 13 Jun 2018 17:27:28 GMT):
Hi, Any fabric certification available/recommended by IBM/Linux team at this point?

matheus_correia (Wed, 13 Jun 2018 17:53:09 GMT):
Has joined the channel.

corykacal (Wed, 13 Jun 2018 17:57:17 GMT):
Has joined the channel.

kungminlin (Wed, 13 Jun 2018 17:58:04 GMT):
Has joined the channel.

JackStrohm (Wed, 13 Jun 2018 17:59:35 GMT):
If all peers are terminated, can new peers be brought online with the correct state with just the orderer available?

yacovm (Wed, 13 Jun 2018 18:01:23 GMT):
yes JackSrtohm

corykacal (Wed, 13 Jun 2018 18:04:03 GMT):
Hello, I am trying to verify that a user is the owner of a particular address. I have a solution working for Ethereum but there are many resources and code examples available for that. Could anyone point me to a solution for a Hyperledger network?

yacovm (Wed, 13 Jun 2018 18:04:30 GMT):
what do you mean an address?

yacovm (Wed, 13 Jun 2018 18:04:39 GMT):
there are no addresses for users in fabric

JackStrohm (Wed, 13 Jun 2018 18:06:00 GMT):
@yacovm Does the orderer maintain the ledger as well as the peers?

yacovm (Wed, 13 Jun 2018 18:06:13 GMT):
the blocks

yacovm (Wed, 13 Jun 2018 18:06:15 GMT):
not the state

JackStrohm (Wed, 13 Jun 2018 18:07:24 GMT):
@yacovm and the peer replays the blocks to rebuild the state?

yacovm (Wed, 13 Jun 2018 18:07:31 GMT):
yep

JackStrohm (Wed, 13 Jun 2018 18:08:15 GMT):
@yacovm do you know if that is documented anywhere? I want to test the scenario and write a run-book entry for myself.

yacovm (Wed, 13 Jun 2018 18:09:02 GMT):
that's how the architecture is built though

yacovm (Wed, 13 Jun 2018 18:09:10 GMT):
since the orderer makes all blocks

yacovm (Wed, 13 Jun 2018 18:09:12 GMT):
and saves them

yacovm (Wed, 13 Jun 2018 18:09:23 GMT):
some peer is the first peer

yacovm (Wed, 13 Jun 2018 18:09:28 GMT):
so it can rebuild its state

yacovm (Wed, 13 Jun 2018 18:09:33 GMT):
thus, any peer can do that

yacovm (Wed, 13 Jun 2018 18:09:35 GMT):
QED

JackStrohm (Wed, 13 Jun 2018 18:09:59 GMT):
that's kinda what I had arrived at from the docs, but wasn't sure. I just need to actually run through a test of it. Thanks.

Aswath8687 (Wed, 13 Jun 2018 18:20:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DgmKc2e2Fc8rJzfY5) I got a reply in #general channel...

corykacal (Wed, 13 Jun 2018 18:21:25 GMT):
I have not gone through fabric documentation but I have been through all of composer. If there is no address then what is the identifier for a participant in a transaction? I would like to have Identifiers sign transactions to prove they are who they say they are like an Ethereum address would. Not sure where to start.

yacovm (Wed, 13 Jun 2018 18:24:09 GMT):
@corykacal - the person that creates a transaction has an identity...

yacovm (Wed, 13 Jun 2018 18:24:19 GMT):
you can obtain the identity in the chaincode if you want

yacovm (Wed, 13 Jun 2018 18:24:36 GMT):
in fabric v1.0 to v1.2 the identity is a simple x509 certificate

corykacal (Wed, 13 Jun 2018 18:28:25 GMT):
@yacovm Thank you. I will start with that

inquiringtimes (Wed, 13 Jun 2018 18:46:38 GMT):
Can someone here explain the relationship between CA and MSP?

inquiringtimes (Wed, 13 Jun 2018 18:49:22 GMT):
I have the impression that a CA is integrated with MSP somehow... whether it's fabric CA or third party, someone's issuing certificates, and then membership services provider manages and keeps track of them, yes?

inquiringtimes (Wed, 13 Jun 2018 18:49:54 GMT):
and maybe even issues certificate with help of CA?

jrosmith (Wed, 13 Jun 2018 18:54:35 GMT):
@inquiringtimes #fabric-ca will be able to best help you

inquiringtimes (Wed, 13 Jun 2018 18:56:33 GMT):
oh, hey, I didn't know that place existed :D

inquiringtimes (Wed, 13 Jun 2018 18:56:37 GMT):
thx @jrosmith

nosequeldeebee (Wed, 13 Jun 2018 19:31:27 GMT):
Has joined the channel.

nosequeldeebee (Wed, 13 Jun 2018 19:32:49 GMT):
hello, I'm going through the fabric tutorials and am in the Build your own network section. I'm trying to run this command: ``` peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 ``` but I'm getting the following error: ``` Error getting chaincode code chaincode: path to chaincode does not exist /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 ``` Could I get some help?

nosequeldeebee (Wed, 13 Jun 2018 19:59:15 GMT):
I figured it out. I had to manually navigate to the github repo, create all the directories above and `curl` the source code into the `chaincode_example02` folder

nacerix (Wed, 13 Jun 2018 20:51:23 GMT):
Has joined the channel.

krabradosty (Wed, 13 Jun 2018 21:41:37 GMT):
Hi. In Cello project I see flag `CORE_PEER_ENDORSER_ENABLED` in the peer docker-compose config. But there is no any information about this flag in the documentation. I don't even see it [here](https://github.com/hyperledger/fabric/blob/release-1.1/sampleconfig/core.yaml). Is this flag a legacy?

krabradosty (Wed, 13 Jun 2018 21:41:37 GMT):
Hi. In Cello project I see parameter `CORE_PEER_ENDORSER_ENABLED` in the peer docker-compose config. But there is no any information about this parameter in the documentation. I don't even see it [here](https://github.com/hyperledger/fabric/blob/release-1.1/sampleconfig/core.yaml). Is this parameter a legacy?

yacovm (Wed, 13 Jun 2018 21:43:56 GMT):
yes @krabradosty it doesn't do anything

yacovm (Wed, 13 Jun 2018 21:43:59 GMT):
get rid of it

krabradosty (Wed, 13 Jun 2018 21:46:44 GMT):
@yacovm How can I configure a peer not to be endorser?

yacovm (Wed, 13 Jun 2018 21:47:23 GMT):
don't install any chaincodes on it?

yacovm (Wed, 13 Jun 2018 21:47:29 GMT):
why would you want to do that though?

krabradosty (Wed, 13 Jun 2018 21:49:50 GMT):
Got your point. Thanks

inquiringtimes (Thu, 14 Jun 2018 00:14:32 GMT):
from the white-paper re: ordering service "The hash chain integrity property and the chaining of blocks exist only to make the integrity verification of the block sequence by the peers more efficient." can anyone explain to me what this sentence means?

pauljithink (Thu, 14 Jun 2018 01:37:47 GMT):
Has joined the channel.

inquiringtimes (Thu, 14 Jun 2018 01:50:46 GMT):
ok, more silly questions

inquiringtimes (Thu, 14 Jun 2018 01:51:08 GMT):
how does ordering service know when to broadcast a new block?

inquiringtimes (Thu, 14 Jun 2018 03:44:53 GMT):
ok, nevermind

inquiringtimes (Thu, 14 Jun 2018 03:45:17 GMT):
I found the answers to all of my questions... or most of them, I think

Yamil-Orozco (Thu, 14 Jun 2018 04:11:14 GMT):
Has joined the channel.

Yamil-Orozco (Thu, 14 Jun 2018 04:13:06 GMT):
where get the code of this brilliant demo? http://avocado.thoughtchimps.com could not find on github or bibucket

SumedhaBhatt (Thu, 14 Jun 2018 05:05:11 GMT):
Has joined the channel.

SumedhaBhatt (Thu, 14 Jun 2018 05:05:53 GMT):
'Cannot run peer because cannot init crypto, missing...' I am getting it while building the first network. I tried the solution I found online but they don't seem to solve the issue

Saachi (Thu, 14 Jun 2018 06:53:26 GMT):
Hello , I want to used abac in fabcar sample. I have imported the required library in the chaincode.But I am unable to GetAttributeValue or use any other API. It return with error "The client identity does not possess the attribute". I registered my user by : return fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1',role: 'client' ,attrs : [{name: 'canquery', value:'true:ecert'}]}, admin_user);

SumedhaBhatt (Thu, 14 Jun 2018 06:56:13 GMT):
Can someone help resolve 'Chaincode instantiation on peer0.org2 on channel failed!!!' The channel creation was working fine till yesterday, but now I am getting all these errors. Please help

Puneet7nov (Thu, 14 Jun 2018 07:19:41 GMT):
Has joined the channel.

Puneet7nov (Thu, 14 Jun 2018 07:22:12 GMT):
I am trying to execute the command "curl -ssl https://goo.gl/6wtTN5 | bash -s 1.1.0".... But keep getting the error bash: line 1: syntax error near unexpected token `newline' bash: line 1: `' ... I have downloaded curl version 7.60.0 and other prerequisites..

suryasuresh06 (Thu, 14 Jun 2018 07:53:33 GMT):
Hi, I was able to run the developing your first application tutorial by following the instructions. I wanted to know how do I run the commands on the terminal rather than changing the files every single time. Could someone guide me regarding this. Thanks

suryasuresh06 (Thu, 14 Jun 2018 07:53:33 GMT):
Hi, I was able to run the developing your first application tutorial by following the instructions. I wanted to know how do I run the commands on the terminal rather than changing the files every single time. Could someone guide me regarding this. Thanks. @mastersingh24 . could you help

ArthurBartoli (Thu, 14 Jun 2018 07:56:15 GMT):
Hey ! I'm trying to install dependencies for my apps to communicate with the ledger using ''npm install'' but it tells me I need a python version <3.0 and >2.5. Is that for real or is it an error ?

ArthurBartoli (Thu, 14 Jun 2018 07:56:24 GMT):
version < 3.0 * haha

LuisCoelho (Thu, 14 Jun 2018 08:40:06 GMT):
@Puneet7nov make sure is sSL instead of ssl

ArthurBartoli (Thu, 14 Jun 2018 08:41:57 GMT):
ok so for those searching, I didn't know but py [2.5;3.0[ is actually very popular and the answer is npm install --python=python2.7

HimaniMukne (Thu, 14 Jun 2018 09:00:41 GMT):
Where are all the transaction records maintained in fabric? how can i view those records?

mastersingh24 (Thu, 14 Jun 2018 09:20:28 GMT):
@HimaniMukne - not quite sure I understand the question, but each Fabric peer node maintains a file-based ledger of blocks (a block has one or more transactions) per channel. There are APIs for accessing blocks and you can then parse each block and extract the transactions. If you know the transaction id from when you submitted a transaction, there are also APIs to retrieve the contents of individual transactions. If you check out any of the SDKs, they provide these APIs

nabil941994 (Thu, 14 Jun 2018 09:29:26 GMT):
hello all, what is the difference between enrolling admin and user ( in the fabric sdk) and the already enrolled user and admin (from cryptogen)

nabil941994 (Thu, 14 Jun 2018 09:30:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BsMRmvWxrFNtNxEra) this is from the tuna-app tutorial, i was wondering what registerAdmin and registerUser are needed, they dont even use the stored certificates

LuisCoelho (Thu, 14 Jun 2018 09:31:14 GMT):
@mastersingh24 You seem well informed on hyperledger :) which I appreciate :) So I will ask you this: "How to transfer documents/files on hyperledger fabric?" Say peerA upload a pdf, and peerB need to approve it.

Chatchai (Thu, 14 Jun 2018 09:32:05 GMT):
Has joined the channel.

mastersingh24 (Thu, 14 Jun 2018 09:33:11 GMT):
Hi @LuisCoelho - could you expand a bit on your intended flow? Are you looking to build a document approval workflow?

LuisCoelho (Thu, 14 Jun 2018 09:40:20 GMT):
@mastersingh24 ultimately yes, but for now I really wanted to understand if are there mechanisms in hyperledger to do that... like storing blobs, etc....

LuisCoelho (Thu, 14 Jun 2018 09:42:00 GMT):
@mastersingh24 I am trying to go step by step... so, I manage to have a simple network with 2 peers and moving asset ownership between peers. I imagine that a pdf file can be an asset. so I wanted to have a pdf file moving around between peers

mastersingh24 (Thu, 14 Jun 2018 09:48:28 GMT):
There are no special mechanisms for storing blobs .... the state database simply stores key/value pairs with both keys and values being bytes. So there is no problem actually storing PDFs or any other type of blob. Of course you want to consider the size of the items you store as this can quickly increase the ledger size ;) The main trick is that chaincode functions except arrays of strings as parameters .... so if you want to pass binary content as a parameter you'll need to encode it (I'd recommend using a hex string but base64 will work as well). Then within your chaincode you can covert that back to bytes and store it.

nabil941994 (Thu, 14 Jun 2018 09:48:41 GMT):
Hello, is there any example regarding events (in chaincode and listening in the sdk)

Puneet7nov (Thu, 14 Jun 2018 09:53:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ouE9vf796TxNaYTss) @LuisCoelho Thanks, but that was not the issue. I got help. The short url was not pointing to the correct path. By clicking on the short url, I was directed to the updated github path (on browser). I used this new url in my command and it worked as charm.

LuisCoelho (Thu, 14 Jun 2018 09:53:49 GMT):
@mastersingh24 do you have any resources I can look into? Are there any special fabric commands or functions for that? I actually tried to convert to base64 passing the url for a txt document using javascript. What would be the function to store that 64base string in the ledger?

LuisCoelho (Thu, 14 Jun 2018 09:54:59 GMT):
@Puneet7nov Great you are sorted! I had a similar issue but the case sensitive sSL was actually making the difference for me.

HimaniMukne (Thu, 14 Jun 2018 10:00:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EesWHjdsCfdPSapra) @mastersingh24 `docker logs -f cli` , I meant checking logs with this step. where is this command executed? the same cli where chaincode is invoked and queried etc (where prompt ends with #. or a new one (which ends with $)

HimaniMukne (Thu, 14 Jun 2018 10:01:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DyptyFH7S7Fvkqbrs) @LuisCoelho an IPFS will convert docs to hash, which can be stored in the blockchain. I've heard it's more efficient than Base64 string, since data line to be sent is less

mastersingh24 (Thu, 14 Jun 2018 10:11:21 GMT):
@HimaniMukne - `docker logs -f cli` just needs to be run from any command prompt on the Docker host system. By default, Docker containers use a simple json-file logger and the `docker logs` command simply displays those logs.

HimaniMukne (Thu, 14 Jun 2018 10:12:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5rcfp4fqPfa8wuNE4) also i can see the logs of individual logs of docker containers, for example `docker logs dev-peer0.org1.example.com-mycc-1.0`, but with `docker logs -f cli`, the screen goes blank

HimaniMukne (Thu, 14 Jun 2018 10:12:40 GMT):
@mastersingh24

mastersingh24 (Thu, 14 Jun 2018 10:14:47 GMT):
Unless you execute a command script when you start the cli, you are not going to see any logs as there are no scripts or processes running and outputting to stdout/stderr

HimaniMukne (Thu, 14 Jun 2018 10:16:26 GMT):
I have 2 terminal windows open simultaneously, one through which i am invoking and querying chaincode, and one where im executing `docker logs -f cli`. is that what you mean?

Adam_Hardie (Thu, 14 Jun 2018 10:16:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dTuLmv5nszk7kKZn2) @JackStrohm // @yacovm in case you are wondering, i solved this by serialising my java object to Json before sending as a chaincode param. That means I can convert to structs in golang if needed, but mainly i can pass the object as a string to the chaincode.

HimaniMukne (Thu, 14 Jun 2018 10:17:30 GMT):
and `docker logs dev-peer0.org1.example.com-mycc-1.0` is working @mastersingh24 . am i missing something?

suryasuresh06 (Thu, 14 Jun 2018 10:17:40 GMT):
Hi, I was able to run the developing your first application tutorial by following the instructions. I wanted to know how do I run the commands on the terminal rather than changing the files every single time. @mastersingh24 could you help

suryasuresh06 (Thu, 14 Jun 2018 10:23:36 GMT):
is the only approach to this creating a separate function for calling the chaincodes

suryasuresh06 (Thu, 14 Jun 2018 10:24:11 GMT):
example : peer chaincode invoke -c .. Args etc

suryasuresh06 (Thu, 14 Jun 2018 10:24:29 GMT):
I want to run it like that

mastersingh24 (Thu, 14 Jun 2018 10:24:51 GMT):
@HimaniMukne - The cli container is not going to log anything when you execute commands

HimaniMukne (Thu, 14 Jun 2018 10:26:13 GMT):
but it should, if i have executed something 5 minutes back, right? when i execute that statement, it goes blank. without any command line prompt

HimaniMukne (Thu, 14 Jun 2018 10:27:12 GMT):
i do get a response when i do this `himani@himani-HP-Notebook:~/fabric-samples/first-network$ docker logs dev-peer0.org1.example.com-mycc-1.0 ex02 Init Aval = 100, Bval = 200 ex02 Invoke Query Response:{"Name":"a","Amount":"100"} ex02 Invoke Aval = 90, Bval = 210` ex02 Invoke Query Response:{"Name":"a","Amount":"90"}

HimaniMukne (Thu, 14 Jun 2018 10:27:31 GMT):
logs per docker container

HimaniMukne (Thu, 14 Jun 2018 10:27:43 GMT):
why am i not able to see all the container logs?

nabil941994 (Thu, 14 Jun 2018 10:27:57 GMT):
can someone provide an example on SetEvent in the chaincode and listen to the event in the nodeJS sdk?

mastersingh24 (Thu, 14 Jun 2018 10:28:57 GMT):
@suryasuresh06 - basically yes .... assuming you run through the tutorial first and then want to execute commands, one the network is up you can enter the cli container using `docker exec -it cli bash` - from there you can then execute individual commands .... you'll need to make sure that you set the proper environment variables for MSP, etc

mastersingh24 (Thu, 14 Jun 2018 10:30:16 GMT):
@HimaniMukne - you should see logs for the peer, orderer and chaincode containers (depending on what you log in chaincode). You won't see logs for the cli if you are simply executing commands

suryasuresh06 (Thu, 14 Jun 2018 10:30:59 GMT):
should I execute the create channel commands separately or is that inbuilt in the registerUser, enrollAdmin commands

HimaniMukne (Thu, 14 Jun 2018 10:31:32 GMT):
can i view the transaction id and time stamp? what is the command for that?

HimaniMukne (Thu, 14 Jun 2018 10:31:36 GMT):
@mastersingh24

nacerix (Thu, 14 Jun 2018 11:55:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AfwWj8wpjmjsjq6K2) @SumedhaBhatt sometimes due to docker issues

nacerix (Thu, 14 Jun 2018 11:56:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZX77TxTGYnAewyqnf) @Puneet7nov try wget instead if you still have that issue

SumedhaBhatt (Thu, 14 Jun 2018 12:03:43 GMT):
@nacerix How do I resolve it? I tried deleting all the images and containers but the error remains

SaraEmily (Thu, 14 Jun 2018 12:04:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9B6DbW5LaMEjkxm9R) @suryasuresh06 If you are talking about the fabcar example, the startFabric.sh calls the balance network example and in the start.sh file the channel is created (this can all be seen clearly by looking at the source code if you want to :) )

nacerix (Thu, 14 Jun 2018 12:07:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vbRPBRcdDvzm29ghM) @SumedhaBhatt can you share the specific error message you have?

GokhanCan (Thu, 14 Jun 2018 12:25:00 GMT):
Has joined the channel.

GokhanCan (Thu, 14 Jun 2018 12:27:20 GMT):
newthink

dklesev (Thu, 14 Jun 2018 13:06:44 GMT):
hi all, I get following warning in a fabric peer container: ``` 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 047 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 049 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 048 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done ``` tra

dklesev (Thu, 14 Jun 2018 13:06:44 GMT):
hi all, I get following warning in a fabric peer container: ``` 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 047 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 049 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done 2018-06-14 12:30:11.780 UTC [common/deliver] deliverBlocks -> WARN 048 [channel: composerchannel] Error sending to 10.0.2.228:48810: rpc error: code = Unknown desc = the stream has been done ``` any suggestions where to look?

nissshh (Thu, 14 Jun 2018 13:17:46 GMT):
Has anyone tried to install hyperleder on varions machines/nodes , using docker images, I am trying the same , but facing issues now and then . I was successfull in creating orderer,channel and org1 peer , also I was able to onboard Org2 Peer on teh channel but I am facig issue when I add Org3.

nissshh (Thu, 14 Jun 2018 13:18:50 GMT):
check https://github.com/nissshh/fabric to know more

Adam_Hardie (Thu, 14 Jun 2018 13:50:32 GMT):
hi, i am trying to install a chaincode to the fabcar project. my command is as follows: CC_SRC_PATH=github.com/fabcar/go docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n gmex-bus -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE" CC_SRC_PATH does not seem to work with any other path.. can anyone point me to the location the container is loading the fabcar chaincode? Is it the docker-compose.yml? (i am a beginner at using docker scripts as well)

Adam_Hardie (Thu, 14 Jun 2018 13:50:36 GMT):
thanks in advance!

ajmeraharsh (Thu, 14 Jun 2018 13:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6xQoyQzgbNmMwoMpt) @nissshh can you share what issue you are facing? maybe an error log?

SaraEmily (Thu, 14 Jun 2018 13:56:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5k5W2KT6GJKKJKP2n) @Adam_Hardie Hi! So the CC_SR_PATH should point out the path the your chaincode source, are you trying to write your own chaincode? In that case, just make sure the folder you point to has a chaincode-file in it. Or are you trying to locate the fabcar chaincode in order to modify it? In that case, try looking in fabric-samples/chaincode/fabcar/go in your file system

Adam_Hardie (Thu, 14 Jun 2018 13:57:33 GMT):
aha, i am indeed writing my own, and i may be missing the chaincode-file !

Adam_Hardie (Thu, 14 Jun 2018 13:58:12 GMT):
i have 3x .go files in the directory i am currently in

SaraEmily (Thu, 14 Jun 2018 13:59:04 GMT):
Okay,maybe start by putting the chaincode you wanna use in the same folder as fabcar is currently using to try and identify if your problem is the CC_SRC_PATH or the chaincode you wrote, good luck :)

Adam_Hardie (Thu, 14 Jun 2018 13:59:21 GMT):
thanks!

aztot (Thu, 14 Jun 2018 14:16:11 GMT):
Has joined the channel.

aztot (Thu, 14 Jun 2018 14:16:18 GMT):
0 down vote favorite I would like to deploy an Ethereum template (the one provided on aws website : https://docs.aws.amazon.com/blockchain-templates/latest/developerguide/blockchain-templates-ethereum.html) in a private network with 3 nodes and I would like to understand how to estimate the price. I tried using the AWS calculator but it's too complicated. I know that depends on multiple parameters , but I would like to have an average ... Thanks for the help !

aztot (Thu, 14 Jun 2018 14:17:08 GMT):
I would like to deploy a Hyperledger Fabric template on aws (the one provided on aws website : https://docs.aws.amazon.com/blockchain-templates/latest/developerguide/blockchain-templates-ethereum.html) in a private network with 3 nodes and I would like to understand how to estimate the price. I tried using the AWS calculator but it's too complicated. I know that depends on multiple parameters , but I would like to have an average ... Thanks for the help !

aztot (Thu, 14 Jun 2018 14:18:04 GMT):
Sorry I was talking about this one : https://docs.aws.amazon.com/blockchain-templates/latest/developerguide/blockchain-templates-hyperledger.html

SaraEmily (Thu, 14 Jun 2018 14:26:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yER7NWazgdjxdrA9D) @aztot AWS only support docker-local container platform => All your fabric container will run on the same instance/machine, is that what you want? Otherwise I would recommend Azure, they support up to 9 nodes on different machines and I think that their price estimater is easier to understand :)

aztot (Thu, 14 Jun 2018 14:33:46 GMT):
I would like to have a network of 3 nodes on 3 different continents (US, Europe and Asia)

aztot (Thu, 14 Jun 2018 14:34:23 GMT):
@SaraEmily I checked also Azure but could not find an easy way of getting an estimate of what it would ocst to run that during one month

SaraEmily (Thu, 14 Jun 2018 14:38:22 GMT):

Hyperledger Fabric Single Member Blockchain.pdf

SaraEmily (Thu, 14 Jun 2018 14:39:11 GMT):
@aztot Check out this file for more info on what you'll need on Azure, I don't think they support multiple regions yet though

SaraEmily (Thu, 14 Jun 2018 14:39:52 GMT):
If you want that, you'll need to deploy it yourself from scratch without templates

Adam_Hardie (Thu, 14 Jun 2018 14:51:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zs7S33ByMM3qcKNnw) @SaraEmily i moved my go files to that directory and it works fine :) thanks again

SaraEmily (Thu, 14 Jun 2018 14:54:48 GMT):
@Adam_Hardie Perfect, glad to hear it worked out!

nissshh (Thu, 14 Jun 2018 15:18:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LtYpp9CCLmTDY48LD) @ajmeraharsh Below is teh error I get when I add Org3 to the network on issueing the command ```peer channel update -f org3_update_in_envelope.pb -c foo -o orderer.example.com:7050 --cafile $ORDERER_CA ``` Error I get is ```Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining ```

LuisCoelho (Thu, 14 Jun 2018 15:47:01 GMT):
Did anyone have a smooth experience installing multi organization?

LuisCoelho (Thu, 14 Jun 2018 15:47:25 GMT):
what was the tutorial if so?

ajmeraharsh (Thu, 14 Jun 2018 15:54:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eEg6Q3wBSJMywMCtJ) @nissshh that comes when you are not using the right set of credentials, did you create crypto multiple times? That might be an issue.

ajmeraharsh (Thu, 14 Jun 2018 15:55:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CoJ6ytXatHozt4EJW) @LuisCoelho you mean adding an org? or just multi org?

LuisCoelho (Thu, 14 Jun 2018 15:56:57 GMT):
multi org

LuisCoelho (Thu, 14 Jun 2018 15:58:16 GMT):
@ajmeraharsh multi org. I am trying to get the multi org tutorial up and running. it fails on the certificates.. or maybe somewhere else, some step before...

LuisCoelho (Thu, 14 Jun 2018 15:58:52 GMT):
@ajmeraharsh the problem is when all previous steps and commands execute with success, and teh STEP ELEVEN fails!

ajmeraharsh (Thu, 14 Jun 2018 15:59:26 GMT):
which link you are following?

LuisCoelho (Thu, 14 Jun 2018 16:00:13 GMT):
@ajmeraharsh https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

LuisCoelho (Thu, 14 Jun 2018 16:03:11 GMT):
@ajmeraharsh I did the BYFN tutorial.. I played around with composer-playground locally. Was even able to make changes to chaincode and try things... but never at the first... something always fails. Commands that are deprecated... etc...

LuisCoelho (Thu, 14 Jun 2018 16:03:47 GMT):
@ajmeraharsh and now the multi-org tutorial just doesn't work. fails for me on step 11

ajmeraharsh (Thu, 14 Jun 2018 16:06:19 GMT):
Step 7 would have errors if your connection.json file isn't configured properly

LuisCoelho (Thu, 14 Jun 2018 16:07:47 GMT):
Step 7 passed with success

greg2git (Thu, 14 Jun 2018 16:09:36 GMT):
@LuisCoelho 'smooth' is not the right expectation, frustration is more like it

LuisCoelho (Thu, 14 Jun 2018 16:11:06 GMT):
@greg2git well, yes... I feel frustrated too.

greg2git (Thu, 14 Jun 2018 16:13:21 GMT):
sometimes it works and sometimes it doesn't for me, but not sure why, as i keep getting different errors at different stages of generating and upping the networks

ajmeraharsh (Thu, 14 Jun 2018 16:15:13 GMT):
@greg2git keep sharing them here, we have couple of experts here to help

ajmeraharsh (Thu, 14 Jun 2018 16:15:13 GMT):
@greg2git keep sharing the here, we have couple of experts here to help

alexisjanin (Thu, 14 Jun 2018 16:24:42 GMT):
Has joined the channel.

alexisjanin (Thu, 14 Jun 2018 16:36:27 GMT):
Hello everyone, I'm trying to figure out if the peers (endorsing or committing) need to directly communicates with each other? Or do they only communicate with clients and ordering service? Thx for your help

silliman (Thu, 14 Jun 2018 16:45:01 GMT):
@alexisjanin peers do not need to directly communicate with each other. However, if you have multiple peers in your organization and do not wish to have each peer connect directly to an ordering service, then those peers that are not connected directly to the ordering service would communicate with other peers via the gossip protocol in order to keep their ledger up to date.

alexisjanin (Thu, 14 Jun 2018 16:48:22 GMT):
Many thx @silliman , in my case I want the peers to communicate with an ordering service only so that's perfect

JonathanC (Thu, 14 Jun 2018 17:19:59 GMT):
Has joined the channel.

JeffreyDeason (Thu, 14 Jun 2018 18:15:19 GMT):
EC2

Puneet7nov (Thu, 14 Jun 2018 20:14:03 GMT):
I am trying setup my first network and executing "./byfn.sh -m up -l node". However, I get the error "OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed".... When I execute the "script.sh", I get the following error "+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx + res=127 + set +x ./scripts/script.sh: line 40: peer: command not found !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========="

Puneet7nov (Thu, 14 Jun 2018 20:14:03 GMT):
I am trying setup my first network and executing "./byfn.sh -m up -l node". However, I get the error "OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed".... When I execute the "script.sh", I get the following error "+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx + res=127 + set +x ./scripts/script.sh: line 40: peer: command not found !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========="

Puneet7nov (Thu, 14 Jun 2018 20:14:03 GMT):
I am trying setup my first network and executing "./byfn.sh -m up -l node". However, I get the error "OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed".... When I execute the "script.sh", I get the following error "+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx + res=127 + set +x ./scripts/script.sh: line 40: peer: command not found !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========" I have copied the fabric-sample folder under c:/users/<> and using the same login credentials.

Puneet7nov (Thu, 14 Jun 2018 20:20:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GSF4oqSop86BK98JL) solved by executing the same command from /c/users/<>/sample-fabric/

JeffreyDeason (Thu, 14 Jun 2018 20:53:13 GMT):
If using IBM Blockchain and I have an Ubuntu server running the composer rest server, how does the composer rest server interface with the IBM Blockchain?

tommy3531 (Thu, 14 Jun 2018 21:31:08 GMT):
Has joined the channel.

GhazanfarAli (Thu, 14 Jun 2018 21:40:43 GMT):
Has joined the channel.

GhazanfarAli (Thu, 14 Jun 2018 21:41:14 GMT):
Installing business network. This may take a minute... Error: Error trying to ping. Error: 2 UNKNOWN: make sure the chaincode hlfv1 has been successfully instantiated and try again: could not find chaincode with name 'hlfv1'``` ```

GhazanfarAli (Thu, 14 Jun 2018 21:41:14 GMT):
Installing business network. This may take a minute... Error: Error trying to ping. Error: 2 UNKNOWN: make sure the chaincode hlfv1 has been successfully instantiated and try again: could not find chaincode with name 'hlfv1'``` ``` had this error when I created business card through composer card create command ...hlfv1 is the network name I set b.t.w ...waiting for your reply

bcatudan (Thu, 14 Jun 2018 21:46:34 GMT):
Has joined the channel.

bcatudan (Thu, 14 Jun 2018 21:48:13 GMT):
Hi running the command: composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna and am getting the following error: Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed

bcatudan (Thu, 14 Jun 2018 21:49:32 GMT):
One thing to note is that I am also running this in virtualbox

DmitryK4 (Thu, 14 Jun 2018 23:48:13 GMT):
Has joined the channel.

DmitryK4 (Thu, 14 Jun 2018 23:49:36 GMT):
@bcatudan you need to make sure your fabric is running

greg2git (Fri, 15 Jun 2018 00:19:30 GMT):
Error: failed to create deliver client: rpc error: code = Unavailable desc = transport: write tcp 172.18.0.7:56552->172.18.0.4:7050: write: broken pipe

lepar (Fri, 15 Jun 2018 01:16:53 GMT):
@greg2git Try changing the port to 7052

mogamboizer (Fri, 15 Jun 2018 03:21:59 GMT):
How and where is symmetric and asymmetric encryption used in Fabric operations? Thank you.

HimaniMukne (Fri, 15 Jun 2018 05:19:54 GMT):
I am very new to blockchain. wanted to know how to use systems like IPFS for file transfer on Hyperledger Fabric. Can someone please help?

SumedhaBhatt (Fri, 15 Jun 2018 05:39:23 GMT):
!!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! 00:01:17.316 ========= ERROR !!! FAILED to execute End-2-End Scenario =========== I'm getting this error when trying to up the channel' I deleted all the docker images and installed them again Someone please help, I have been trying to resolve since yesterday

GowriR (Fri, 15 Jun 2018 05:50:57 GMT):

Clipboard - June 15, 2018 11:01 AM

GowriR (Fri, 15 Jun 2018 05:50:57 GMT):

Clipboard - June 15, 2018 11:01 AM

GowriR (Fri, 15 Jun 2018 05:50:57 GMT):

Clipboard - June 15, 2018 11:01 AM

GowriR (Fri, 15 Jun 2018 05:50:57 GMT):

Clipboard - June 15, 2018 11:01 AM

kundansingh 1 (Fri, 15 Jun 2018 06:28:02 GMT):
Has joined the channel.

kundansingh 1 (Fri, 15 Jun 2018 06:28:18 GMT):
hey guys for this i m using the reference from https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html#ubuntu . link while using command:- ./prereqs-ubuntu.sh i m getting :- Error: Ubuntu artful is not supported what should i do i m using ubntu 17.04 lts

SaraEmily (Fri, 15 Jun 2018 06:49:52 GMT):
Hi everyone! I'm using the node.js SDK and I would like to update the endorsement policy, does anyone have an example of the syntax for that? I've looked at this resource https://fabric-sdk-node.github.io/global.html#ChaincodeInstantiateUpgradeRequest But that only tells me how to write the actual policy, not how to assign it to the `ChaincodeInstantiateUpgradeRequest` Thanks!

sandman (Fri, 15 Jun 2018 06:54:34 GMT):
Has joined the channel.

sandman (Fri, 15 Jun 2018 06:55:42 GMT):
Hi, If anchor peer for an organization having single anchor peer goes down, then how will organization adapt to this disruption?

GowriR (Fri, 15 Jun 2018 07:13:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bzbTNNoCjdzAzARAo) @SaraEmily Hi Sara, as far as I know, the endorsing peers are mentioned while installing the chaincode (a call to InstallChaincode by the peer org's ADMIN's) and hence they are the endorsing peers.

GowriR (Fri, 15 Jun 2018 07:14:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CAHLeqWMiSsjgs5kv) @sandman Guess we need to have one more for higher availability

GowriR (Fri, 15 Jun 2018 07:18:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bzbTNNoCjdzAzARAo) @SaraEmily Quote from the fabric docs "Therefore, dynamic addition of endorsement policies is not allowed, but can be supported in future." Does this help?

SaraEmily (Fri, 15 Jun 2018 07:22:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2bfYWZZvbFjRp3PJ2) @GowriR Thank you for your reply but no, accrdoing to the node.js SDK documentation the `ChaincodeInstallRequest` object (used in the `installChaincode` call) does not contain the endorsment policy, however the `ChaincodeInstantiateUpgradeRequest` object (used in the `sendInstantiateProposal` call) does. So my problem is basically, how to I add the property `endorsement-policy` to my `ChaincodeInstantiateUpgradeRequest`? `request.endorsement-policy = *my policy*` gives me an error as does `endorsement-policy: *my policy*`

SaraEmily (Fri, 15 Jun 2018 07:22:47 GMT):
@GowriR Thank you for your reply but no, according to the node.js SDK documentation the `ChaincodeInstallRequest` object (used in the `installChaincode` call) does not contain the endorsment policy, however the `ChaincodeInstantiateUpgradeRequest` object (used in the `sendInstantiateProposal` call) does. So my problem is basically, how to I add the property `endorsement-policy` to my `ChaincodeInstantiateUpgradeRequest`? `request.endorsement-policy = *my policy*` gives me an error as does `endorsement-policy: *my policy*`

SaraEmily (Fri, 15 Jun 2018 07:23:25 GMT):
@GowriR Thank you for your reply but no, according to the node.js SDK documentation the `ChaincodeInstallRequest` object (used in the `installChaincode` call) does not contain the endorsment policy, however the `ChaincodeInstantiateUpgradeRequest` object (used in the `sendInstantiateProposal` call) does. So my problem is basically, how to I add the property `endorsement-policy` to my `ChaincodeInstantiateUpgradeRequest`? `request.endorsement-policy = *my policy*` gives me an error as does `endorsement-policy: *my policy*

SaraEmily (Fri, 15 Jun 2018 07:23:25 GMT):
@GowriR Thank you for your reply but no, according to the node.js SDK documentation the `ChaincodeInstallRequest` object (used in the `installChaincode` call) does not contain the endorsment policy, however the `ChaincodeInstantiateUpgradeRequest` object (used in the `sendInstantiateProposal` call) does. So my problem is basically, how to I add the property `endorsement-policy` to my `ChaincodeInstantiateUpgradeRequest`? `request.endorsement-policy = *my policy*` gives me an error as does `endorsement-policy: *my policy*`

GowriR (Fri, 15 Jun 2018 07:26:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oNx56mWoqdYwSyq5Z) @SaraEmily How does your endorsement policy look like? Could you paste it here?

SaraEmily (Fri, 15 Jun 2018 07:27:46 GMT):
@GowriR { identities: [ { role: { name: "member", mspId: "org1" }}, { role: { name: "member", mspId: "org2" }}, ], policy: { "1-of": [{ "signed-by": 0 }, { "signed-by": 1 }] } }

SaraEmily (Fri, 15 Jun 2018 07:31:07 GMT):
@GowriR { identities: [ { role: { name: "member", mspId: "org1" }}, { role: { name: "member", mspId: "org2" }}, { role: { name: "member", mspId: "org3" }}, { role: { name: "member", mspId: "org4" }} ], policy: { "3-of": [{ "signed-by": 0 }, { "signed-by": 1 },{ "signed-by": 2 }, { "signed-by": 3 }] } } And I have scaled this out up to 20 orgs, requirering a majority of all orgs to sign each transaction and my concern is that by measuring the time it takes to commit a transaction I can see that the time to do the commit of the transaction doesn't increase (which it should)

SaraEmily (Fri, 15 Jun 2018 07:31:30 GMT):
So I think my assingment to my request object is incorrect

GowriR (Fri, 15 Jun 2018 07:32:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oNx56mWoqdYwSyq5Z) @SaraEmily The policy basically says which member of the Org1 can endorse the chaincode. While installing the chaincode (the admin installs the chain code) on the peer - thus automatically mentioning the endorsement policy. Does this seem right?

SaraEmily (Fri, 15 Jun 2018 07:35:37 GMT):
@GowriR Well it's not during installation but during the instantation according to the docs here: https://fabric-sdk-node.github.io/Client.html#installChaincode__anchor and here: https://fabric-sdk-node.github.io/Channel.html#sendInstantiateProposal__anchor And my policy says that 3 of any member out of a total of 4 orgs can endorse but yes sure.

GowriR (Fri, 15 Jun 2018 07:38:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FshXDF3obgjdufBJ5) @SaraEmily ok. Will wait for others to respond then

yacovm (Fri, 15 Jun 2018 07:39:39 GMT):
@SaraEmily I never used node SDK before but I think your answer lies in these lines https://github.com/hyperledger/fabric-sdk-node/blob/10262a1a327bb2f14e13c5bc91560bc993bf1764/fabric-client/lib/Channel.js#L1337-L1414

yacovm (Fri, 15 Jun 2018 07:39:52 GMT):
`request['endorsement-policy']`

SaraEmily (Fri, 15 Jun 2018 07:40:45 GMT):
@yacovm Thanks a lot, I will try that :)

sandman (Fri, 15 Jun 2018 07:41:57 GMT):
@GowriR how about if i want to add anchor peer at a later stage

sandman (Fri, 15 Jun 2018 07:41:57 GMT):
@GowriR how about if i want to add anchor peer at a later stage?

yacovm (Fri, 15 Jun 2018 07:42:37 GMT):
you can always add anchor peers and remove them as you want

GowriR (Fri, 15 Jun 2018 07:43:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aiBmY3pqJtu5FWqqo) @SaraEmily So we have to end up upgrading the chaincode right to update the endorsement policy

SaraEmily (Fri, 15 Jun 2018 07:47:56 GMT):
@yacovm Yes but it feels kind of silly since both the `sendUpgradeProposal` and the `sendInstantiateProposal` uses the same request-type in there first parameter (`ChaincodeInstantiateUpgradeRequest`)... So I feel like it should be possible to do in the first instatiation of the chaincode, but I'm just using the wrong syntax or something

SaraEmily (Fri, 15 Jun 2018 07:47:56 GMT):
@yacovm Yes but it feels kind of silly since both the `sendUpgradeProposal` and the `sendInstantiateProposal` uses the same request-type in there first parameter (`ChaincodeInstantiateUpgradeRequest`)... So I feel like it should be possible to do in the first instatiation of the chaincode, but I'm just using the wrong syntax or something EDIT: Yes, both function uses the same underlying function (the one you linked) so I need to fix the syntax) Thanks for your help :)

yacovm (Fri, 15 Jun 2018 07:50:22 GMT):
wait i don't understand

yacovm (Fri, 15 Jun 2018 07:50:33 GMT):
you're claiming you can't pass an endorsement policy upon instantiate?

SaraEmily (Fri, 15 Jun 2018 07:52:00 GMT):
@yacovm No, sorry, I'm not being clear. Yes you can pass uopn instantiate but somehow I think I'm doing it wrong

GowriR (Fri, 15 Jun 2018 07:59:00 GMT):
@SaraEmily and @yacovm I have a clientA connected to endorsing peers and ClientB connected to normal peers. When the transaction started by ClientA is committed, I want to send an event or message to peers connected to ClientB. Should I be using "channelEventhub" for this or something else? Is this possible?

msacco22 (Fri, 15 Jun 2018 08:04:00 GMT):
Has joined the channel.

migrenaa (Fri, 15 Jun 2018 09:22:00 GMT):
Is there a way to customize Fabric CA server to store encrypted with password (symmetric algorithm) in the server ?

suryasuresh06 (Fri, 15 Jun 2018 09:23:00 GMT):
hi. I was looking at the fabcar example and got another trivial doubt. In the startFabric.sh file, there is a bunch of lines included below: CC_SRC_PATH=github.com/fabcar/go if [ "$LANGUAGE" = "node" -o "$LANGUAGE" = "NODE" ]; then CC_SRC_PATH=/opt/gopath/src/github.com/fabcar/node fi Do these lines refer to the location of the chain code. How can I modify this if my chain code is on my local computer. Or is this path referring to the downloaded folder on my local computer. Could someone help me with this. Thanks

yacovm (Fri, 15 Jun 2018 09:33:32 GMT):
@GowriR - in the chaincode you can do: `setEvent`

yacovm (Fri, 15 Jun 2018 09:33:51 GMT):
so you can perhaps write in the chaincode something like: `setEvent(clientB)`

yacovm (Fri, 15 Jun 2018 09:34:00 GMT):
and then when clientB is conneted to the event hub

yacovm (Fri, 15 Jun 2018 09:34:06 GMT):
it will see an event that is for him

yacovm (Fri, 15 Jun 2018 09:34:10 GMT):
something like that...

GowriR (Fri, 15 Jun 2018 09:35:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qzrkfq7rG2hWCqBZs) @yacovm Thanks. Will check if that works, post finishing the swim lane diagram

yacovm (Fri, 15 Jun 2018 09:36:12 GMT):
swim lane?

yacovm (Fri, 15 Jun 2018 09:36:22 GMT):
why do i smell chlorine suddenly? :O

GowriR (Fri, 15 Jun 2018 09:40:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=stdvrP3M94x4ujCSb) @yacovm lol this is ozonised

RakeshKumarzs (Fri, 15 Jun 2018 10:40:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m8pf8cxXPSarDnNaA) @PawelD could you please resend me the link .. this one is not working

szytko (Fri, 15 Jun 2018 10:44:15 GMT):
Hi there, together with our team we are having a discussion regarding the pros/cons of writing chaincode using NodeJS or Go lang, what is your thoughts/experiences about that?

szytko (Fri, 15 Jun 2018 10:44:15 GMT):
Hi there, together with our team we are having a discussion regarding the pros/cons of writing chaincode using NodeJS or Go lang, what are your thoughts/experiences about that?

RahulEth (Fri, 15 Jun 2018 11:03:15 GMT):
Has joined the channel.

RahulEth (Fri, 15 Jun 2018 11:07:07 GMT):

hyper1.png

RahulEth (Fri, 15 Jun 2018 11:09:05 GMT):
could someone suggest whats going wrong?

SumedhaBhatt (Fri, 15 Jun 2018 11:13:24 GMT):
@RahulEth Is your version of compose the latest one?

RahulEth (Fri, 15 Jun 2018 11:14:02 GMT):
1.5.2 build unknown

RahulEth (Fri, 15 Jun 2018 11:15:40 GMT):
@SumedhaBhatt Docker version 1.10.3, build 20f81dd

RahulEth (Fri, 15 Jun 2018 11:15:50 GMT):
should i need to update compose??

SumedhaBhatt (Fri, 15 Jun 2018 11:16:08 GMT):
no,version should be 1.9.0 or greater

SumedhaBhatt (Fri, 15 Jun 2018 11:16:28 GMT):
so that's not an issue

RahulEth (Fri, 15 Jun 2018 11:16:47 GMT):
and what should be the docker version??

SumedhaBhatt (Fri, 15 Jun 2018 11:18:29 GMT):
17.03.1-ce or greater

SumedhaBhatt (Fri, 15 Jun 2018 11:18:58 GMT):
@RahulEth Check to make sure that you have Docker version 17.03.1-ce or greater, and Docker Compose version 1.9.0 or greater

RahulEth (Fri, 15 Jun 2018 11:19:25 GMT):
@SumedhaBhatt will update my version

RahulEth (Fri, 15 Jun 2018 11:19:29 GMT):
thanks

SumedhaBhatt (Fri, 15 Jun 2018 11:19:38 GMT):
You're welcome!

paulananth (Fri, 15 Jun 2018 12:20:25 GMT):
Has joined the channel.

Akshay1997 (Fri, 15 Jun 2018 12:55:25 GMT):
Development only script for Hyperledger Fabric control Running 'createPeerAdminCard.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) No version of composer-cli has been detected, you need to install composer-cli at v0.19 or higher

Akshay1997 (Fri, 15 Jun 2018 12:55:52 GMT):
I am getting this error and I already installed composer-cli

Akshay1997 (Fri, 15 Jun 2018 12:56:38 GMT):
with npm install -g composer-cli

Adam_Hardie (Fri, 15 Jun 2018 12:59:55 GMT):
hi! I am trying to read Chaincode events in Java SDK .. I have set up a blocklistener and I am printing some details about that. How can i get the chaincode events i have attached to each transaction in the block? thanks

silliman (Fri, 15 Jun 2018 13:06:22 GMT):
@Akshay1997 what does `composer --version` return on your system

Akshay1997 (Fri, 15 Jun 2018 13:16:56 GMT):
@silliman it is returning as The program 'composer' is currently not installed. You can install it by typing: sudo apt install composer but I have followed steps from this link https://hyperledger.github.io/composer/latest/installing/development-tools.html

silliman (Fri, 15 Jun 2018 13:21:24 GMT):
@Akshay1997 what does `npm ls -g --depth=0` return

Akshay1997 (Fri, 15 Jun 2018 13:22:11 GMT):
@silliman /usr/lib `-- npm@5.6.0

silliman (Fri, 15 Jun 2018 13:24:18 GMT):
@Akshay1997 that's not good you should be seeing *composer-cli* listed among the output, like this... ``` bcuser@ubuntu16044:~$ npm ls -g --depth=0 /home/bcuser/lib +-- composer-cli@0.19.8 +-- composer-playground@0.19.8 +-- composer-rest-server@0.19.8 +-- generator-hyperledger-composer@0.19.8 +-- gulp@3.9.1 +-- istanbul@0.4.5 +-- npm@6.1.0 `-- yo@2.0.2 ```

Akshay1997 (Fri, 15 Jun 2018 13:25:12 GMT):
@silliman can you please suggest what should I do now ?

Akshay1997 (Fri, 15 Jun 2018 13:28:32 GMT):
@silliman /usr/bin/composer -> /usr/lib/node_modules/composer-cli/cli.js > dtrace-provider@0.8.7 install /usr/lib/node_modules/composer-cli/node_modules/dtrace-provider > node-gyp rebuild || node suppress-error.js gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/composer-cli/node_modules/dtrace-provider/build' gyp ERR! System Linux 4.13.0-36-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/composer-cli/node_modules/dtrace-provider gyp ERR! node -v v8.11.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok > node-report@2.2.1 install /usr/lib/node_modules/composer-cli/node_modules/node-report > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/composer-cli/node_modules/node-report/build' gyp ERR! System Linux 4.13.0-36-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/composer-cli/node_modules/node-report gyp ERR! node -v v8.11.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/composer-cli/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-report@2.2.1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-report@2.2.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/akshay/.npm/_logs/2018-06-15T13_11_03_471Z-debug.log

silliman (Fri, 15 Jun 2018 13:29:22 GMT):
@Akshay1997 you have a permissions problem... npm is trying to put stuff in a directory you do not have access to

Akshay1997 (Fri, 15 Jun 2018 13:29:31 GMT):
this are error during npm install -g composer-cli

Akshay1997 (Fri, 15 Jun 2018 13:29:59 GMT):
@silliman should I use sudo then ?

silliman (Fri, 15 Jun 2018 13:30:13 GMT):
@Akshay1997 no do not use sudo. i'm looking up a URL for you that will help

Akshay1997 (Fri, 15 Jun 2018 13:30:31 GMT):
@silliman Okay thanks

silliman (Fri, 15 Jun 2018 13:36:03 GMT):
@Akshay1997 okay, so, also, in the future, for Composer questions you are better off asking on the #composer channel. But this is what you need to do: https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#information_source--composer-installation-issues look for the _npm install errors_ entries in that table and choose option 1 or 2 which should resolve this problem.

Akshay1997 (Fri, 15 Jun 2018 13:36:45 GMT):
Okay Thank you so much @silliman :slight_smile:

silliman (Fri, 15 Jun 2018 13:37:21 GMT):
@Akshay1997 yw and bookmark that page it is a great source of knowledge for Composer

Akshay1997 (Fri, 15 Jun 2018 13:37:59 GMT):
@silliman Yup

matheus_correia (Fri, 15 Jun 2018 13:40:31 GMT):
Has left the channel.

PushpendraSingh (Fri, 15 Jun 2018 14:50:50 GMT):
Has joined the channel.

PushpendraSingh (Fri, 15 Jun 2018 14:51:04 GMT):
I am getting error while installing chain code

PushpendraSingh (Fri, 15 Jun 2018 14:51:14 GMT):
I am using Java DK

PushpendraSingh (Fri, 15 Jun 2018 14:51:18 GMT):
SDL*

PushpendraSingh (Fri, 15 Jun 2018 14:51:21 GMT):
SDK*

PushpendraSingh (Fri, 15 Jun 2018 14:51:23 GMT):
Sending proposal to peer0.org2.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=chaincode error (status: 500, message: archive/tar: invalid tar header), cause=null

PushpendraSingh (Fri, 15 Jun 2018 14:52:39 GMT):
I am trying perform all operation using java...including network operations

PushpendraSingh (Fri, 15 Jun 2018 14:52:51 GMT):
Any help will be appreciated..

PushpendraSingh (Fri, 15 Jun 2018 14:54:03 GMT):
The following you get on docker logs

PushpendraSingh (Fri, 15 Jun 2018 14:54:07 GMT):
2018-06-15 14:40:06.063 UTC [ccprovider] ExtractStatedbArtifactsFromCCPackage -> ERRO 044 Failure opening codepackage gzip stream: gzip: invalid header 2018-06-15 14:40:06.063 UTC [endorser] ProcessProposal -> ERRO 045 [][1cc7e775] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 1cc7e7755df588a3db8133b426dd0c2a9c1599218325845116033fa402667d36 2018-06-15 14:45:21.567 UTC [endorser] ProcessProposal -> ERRO 046 [][eb009b16] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: eb009b16d8ae98f97daa24b96a50c090e4b86e32b96bf29d99fccde65753b0e3 2018-06-15 14:46:06.286 UTC [endorser] ProcessProposal -> ERRO 047 [][7e4d3c7c] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 7e4d3c7c103c334dbf92dc90c58e45d2c9b6eba75296b14092473ca2a9e778d9

PushpendraSingh (Fri, 15 Jun 2018 14:54:53 GMT):
I am creating rest APIs for network operations in java

PushpendraSingh (Fri, 15 Jun 2018 14:55:08 GMT):
there I am sending chaincode as byte array

LuisCoelho (Fri, 15 Jun 2018 15:00:09 GMT):
To all gurus here... composer identity request -c PeerAdmin@byfn-network-org1 -u admin -s adminpw -d alice

LuisCoelho (Fri, 15 Jun 2018 15:00:20 GMT):
Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

LuisCoelho (Fri, 15 Jun 2018 15:00:31 GMT):
what's wrong there???

Akshay1997 (Fri, 15 Jun 2018 15:11:24 GMT):
@silliman Thanks your solution worked for me

tinytiny123 (Fri, 15 Jun 2018 15:15:16 GMT):
Has joined the channel.

tinytiny123 (Fri, 15 Jun 2018 15:21:44 GMT):
Hey we are having a problem with our Fabric network. After successfully installing the chaincode via the bash scripts we are trying to instantiate it using the Java SDK but keep getting the following error: instantiation policy violation: signature set did not satisfy policy The User requesting the instantiation is our CA-Admin, he should most definitely have permissions here. We even tried changing our instantiation policy to allow any member but to no avail. If you need more information pls feel free to check it out in our github repo: https://github.com/PSE-blockchain-evoting/voting-network

LuisCoelho (Fri, 15 Jun 2018 15:28:50 GMT):
Anyone can help me on the step fourteen from this tutorial? https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

LuisCoelho (Fri, 15 Jun 2018 15:29:33 GMT):
Basically step 15 and 16 are failing... I wonder if I need to do something on the Step 14...

tinytiny123 (Fri, 15 Jun 2018 15:31:19 GMT):
@LuisCoelho Maybe try it in #composer they might be able to help better

GKumar (Fri, 15 Jun 2018 16:07:26 GMT):
Has joined the channel.

GKumar (Fri, 15 Jun 2018 16:07:33 GMT):
How can i create an endorsement policy like "at least 10% of total users need to endorse and they should having age >40 "?

GKumar (Fri, 15 Jun 2018 16:07:33 GMT):
How can i create an endorsement policy like "at least 10% of total users need to endorse and they should having age >40 " but transaction could be triggered by anyone?

ashsek (Fri, 15 Jun 2018 16:50:18 GMT):
I am trying to run a python script using chaincode but I am getting the following error :` chaincode error (status: 500, message: exec: "python": executable file not found in $PATH:`. Any help?

bcatudan (Fri, 15 Jun 2018 18:30:46 GMT):
@DmitryK4 i have just been following the 6hr dev guide. What is the command to start one and also if that is required is there a reason its missing as a step in the guide or am I understanding this incorrectly

DmitryK4 (Fri, 15 Jun 2018 18:53:44 GMT):
@bcatudan can you pls post a link you've been following ?

bcatudan (Fri, 15 Jun 2018 18:58:19 GMT):
https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial Step 4 Command 1 for installing the business networking gave me the error I talked about previously

bcatudan (Fri, 15 Jun 2018 18:58:43 GMT):
thank you again for the replies @DmitryK4

DmitryK4 (Fri, 15 Jun 2018 19:00:22 GMT):
@bcatudan search for a file startFabric.sh and start it.See what happens

bcatudan (Fri, 15 Jun 2018 19:02:11 GMT):
oh wow that worked for me i was using the commands cd ~/fabric-dev-servers ./startFabric.sh ./createPeerAdminCard.sh from the intro tutorial i thought the fabric was started there but apparently not

bcatudan (Fri, 15 Jun 2018 19:02:48 GMT):
thank you again so much for your help! I'm excited to play and learn this stuff @DmitryK4

DmitryK4 (Fri, 15 Jun 2018 19:03:37 GMT):
@bcatudan you're welcome

greg2git (Fri, 15 Jun 2018 19:04:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tqj2xhfsT7MpK6Wrz) @lepar Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7052: failed to create new connection: context deadline exceeded

ankitsheth (Fri, 15 Jun 2018 19:48:48 GMT):
Has joined the channel.

ankitsheth (Fri, 15 Jun 2018 19:49:18 GMT):
hi first-network created and also byfn.sh works perfectly

ankitsheth (Fri, 15 Jun 2018 19:49:29 GMT):
but when try the blockchain explorer gives error: [Client.js]: Failed Installed Chaincodes Query. Error: Error: 14 UNAVAILABLE: EOF

ankitsheth (Fri, 15 Jun 2018 19:49:33 GMT):
this error

ankitsheth (Fri, 15 Jun 2018 19:49:41 GMT):
trying for last 5-6 hours, but no luck

ankitsheth (Fri, 15 Jun 2018 19:49:55 GMT):
request, if can anyone please help !!

ankitsheth (Fri, 15 Jun 2018 19:52:17 GMT):
i am following https://github.com/hyperledger/blockchain-explorer

ankitsheth (Fri, 15 Jun 2018 19:52:25 GMT):
and done changes in config.json also

ankitsheth (Fri, 15 Jun 2018 19:52:31 GMT):
also started the pgsql

ankitsheth (Fri, 15 Jun 2018 19:52:34 GMT):
psql

ankitsheth (Fri, 15 Jun 2018 19:53:00 GMT):
but get above error or r: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF

ankitsheth (Fri, 15 Jun 2018 19:53:13 GMT):
not able to understand what is going wrong ?

lepar (Fri, 15 Jun 2018 19:53:44 GMT):
@greg2git try 7051

ankitsheth (Fri, 15 Jun 2018 19:55:09 GMT):
have any one idea about this ?

ankitsheth (Fri, 15 Jun 2018 19:55:14 GMT):
kindly help me

bcatudan (Fri, 15 Jun 2018 20:01:22 GMT):
hey @DmitryK4 if you got a chance again...I was able to launch my angular app but whenever I interact with it i keep getting 504 gateway timeouts. The rest server in the terminal is spitting out "[HPM] Error occurred while trying to proxy request /api/Trade from localhost:4200 to https://localhost:3000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)"

0xSEGFAULT (Fri, 15 Jun 2018 22:14:23 GMT):
Hey guys, I'm following the tutorial on `configtxlator` and on the very last step I get this error. It's very cryptic and I don't know what it means. https://github.com/hyperledger/fabric/blob/master/examples/configtxupdate/README.md ``` root@2c4f3d18eecd:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel update -f config_update_as_envelope.pb -c testchannel -o orderer0.segfault.com:7050 --tls --cafile /etc/hyperledger/orderers/tlsca/tlsca.segfault.com-cert.pem --logging-level=DEBUG 2018-06-15 22:10:34.253 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proto: can't skip unknown wire type 6 for common.Envelope Usage: peer channel update [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server root@2c4f3d18eecd:/opt/gopath/src/github.com/hyperledger/fabric/peer# ``` Basically, it won't let me update the channel config after editing it. Thanks!

0xSEGFAULT (Fri, 15 Jun 2018 22:20:04 GMT):
Ok, I messed up the configuration which is why. I re-did the entire thing and now I'm getting this error on the last step. ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

0xSEGFAULT (Fri, 15 Jun 2018 22:34:54 GMT):
I'm trying to get the configtxlator to work and I got all the way down to the channel update but I keep getting this error. `2018-06-15 22:28:57.770 UTC [orderer/common/broadcast] Handle -> WARN c32 [channel: testchannel] Rejecting broadcast of config message from 172.18.0.17:57868 because of error: error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` Here's the command `peer channel update -f config_update_as_envelope.pb -c testchannel -o orderer0.segfault.com:7050 --tls --cafile /etc/hyperledger/orderers/tlsca/tlsca.segfault.com-cert.pem` How do I edit/fix the sub-policies

tallharish (Sat, 16 Jun 2018 00:58:16 GMT):
For a single channel for the same chaincode, can a Fabric peer endorse multiple transactions in parallel? I am reading code in `endorser.go` but I don't see any Mutex. But in the log files (INFO mode, with logs enabled for `simulateProposal` etc.), I usually see them getting processed serially. In some cases, I see many `simulateProposal Entry` messages consecutively, but they seem to be taking the usual amount of time (2ms or so) to execute. I am modeling the Fabric performance, so this is critical to understand. Thanks.

GKumar (Sat, 16 Jun 2018 01:41:16 GMT):
How can i create an endorsement policy like "at least 10% of total users need to endorse and they should having age >40 " but transaction could be triggered by anyone?

tallharish (Sat, 16 Jun 2018 01:45:17 GMT):
In my orderer docker instance, I am seeing this warning statement every 10 ms or so. I am using standard fabric docker containers (v1.1.0). How should I investigate this? ```[orderer/consensus/kafka] processRegular -> WARN 0d5 [channel: mychannel] This orderer is running in compatibility mode```

GKumar (Sat, 16 Jun 2018 01:57:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=J9TnKFcaRpzazmEz6)

Akshay1997 (Sat, 16 Jun 2018 07:15:37 GMT):
During building your first network ...during execution of command ./byfn.sh -m up I have error for channel creation failed

Akshay1997 (Sat, 16 Jun 2018 07:16:16 GMT):
akshay@akshay-VirtualBox:~/fabric-samples/first-network$ ./byfn.sh -m up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... 2018-06-16 07:12:38.489 UTC [main] main -> INFO 001 Exiting..... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.1.0 Starting peer1.org2.example.com ... done Starting peer0.org1.example.com ... done Starting orderer.example.com ... done Starting peer0.org2.example.com ... done Starting peer1.org1.example.com ... done Starting cli ... done ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-06-16 07:12:53.454 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

atonit (Sat, 16 Jun 2018 09:11:49 GMT):
Has joined the channel.

soryboums (Sat, 16 Jun 2018 10:07:31 GMT):
Has joined the channel.

puneet (Sat, 16 Jun 2018 10:26:40 GMT):
Has joined the channel.

HandsomeRoger (Sat, 16 Jun 2018 11:10:11 GMT):
I want to test fabric go sdk. I clone this repository, https://github.com/securekey/fabric-examples.git. I follow the steps. `$ make populate` `$ go run fabric-cli.go` `$ make example-network` Open another shell and go to the CLI directory `$ cd $GOPATH/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli` Then I want to Create channel 'mychannel' `$ go run fabric-cli.go channel create --cid mychannel --txfile ../../fabric-sdk-go/test/fixtures/fabric/v1.1/channel/mychannel.tx --config ../../test/fixtures/config/config_test_local.yaml` But I met the error: [fabriccli] 2018/06/16 08:00:29 UTC - channel.glob..func2 -> ERRO Error while running channelCreateAction: GetSigningIdentity returned error: user not found Can someone help? Thanks!

aviroops (Sat, 16 Jun 2018 11:49:52 GMT):
Has joined the channel.

chilipepper (Sat, 16 Jun 2018 12:38:28 GMT):
I was working on a bug in fabric-test. Now that I have commited and trying `git review` I get the error ```

chilipepper (Sat, 16 Jun 2018 12:38:30 GMT):
remote: Permission to hyperledger/fabric-test.git denied to leeloodub. fatal: unable to access 'https://github.com/hyperledger/fabric-test.git/': The requested URL returned error: 403

chilipepper (Sat, 16 Jun 2018 12:40:29 GMT):
I fixed a bug in fabric-test, committed locally and was trying to send for review. As I do `git review` I get the error message ``` remote: Permission to hyperledger/fabric-test.git denied to leeloodub. fatal: unable to access 'https://github.com/hyperledger/fabric-test.git/': The requested URL returned error: 403 ``` Does anyone know what this is? I have submitted before and all worked fine :( Tried changing ssh keys, no luck. Anyone had this issue before?

aviroops (Sat, 16 Jun 2018 12:44:32 GMT):
After reading considerable amount of articles and tutorials, I understand that most of the Hyperledger Fabric blockchain network is set-up through docker/docker images. I have been able to do the same in my machine. However, I have few question which needs some attention 1. I would like think of scaling up by having a minimum of 2 machines in my blockchain network. How do I acheive this? 2. If I have multiple machines (atleast 2) in the blockchain network, will all the machines run its own instance of the blockchain DB (Couch DB in our case)? 3. When I think of multiple machines participating with the blockchain network, does that mean all the machines are client e xcept one where I have the Docker image running?

vanitas92 (Sat, 16 Jun 2018 15:12:53 GMT):
Hi guys do tou know the meaning of this error and how can be solved? ``` Failed to query: TxFilter failed: Endorser Client Status Code: (3) ENDORSEMENT_MISMATCH. Description: ProposalResponsePayloads do not match```

joseam17 (Sat, 16 Jun 2018 17:40:44 GMT):
Has joined the channel.

joseam17 (Sat, 16 Jun 2018 17:41:21 GMT):
Hi! I'm interested in develop an app for healthcare using Hyperleadger Fabric

joseam17 (Sat, 16 Jun 2018 17:41:56 GMT):
Someone knows some project (which has the sourcecode) related with that?

joseam17 (Sat, 16 Jun 2018 17:42:05 GMT):
I don't know how to start

jdpond (Sat, 16 Jun 2018 19:05:34 GMT):
Has joined the channel.

SubhraMazumdar (Sun, 17 Jun 2018 05:53:07 GMT):
What is the standard transaction payload size for any application ? Is 4MB good enough ?

tesol2y090 (Sun, 17 Jun 2018 06:01:12 GMT):
Has joined the channel.

shikherwalia07 (Sun, 17 Jun 2018 06:07:05 GMT):
Hii guys anyone can help in this : Error getting endorser client chaincode: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: tls: first record does not look like a TLS handshake

ManikantaRaju (Sun, 17 Jun 2018 06:29:16 GMT):
i need help in hyperledger environment I am running hyperledger fabric network on GCP? The issue is that my instance gets flagged for mining and being shutdown everytime i run the network what cloud offering are you using or best suites?

RahulEth (Sun, 17 Jun 2018 06:59:56 GMT):
@rahulEth

DuncanMuhoro (Sun, 17 Jun 2018 11:02:06 GMT):
Has joined the channel.

yashagrawal3 (Sun, 17 Jun 2018 11:26:20 GMT):
Has joined the channel.

RahulEth (Sun, 17 Jun 2018 12:26:00 GMT):

hyper2.png

RahulEth (Sun, 17 Jun 2018 12:26:08 GMT):
could someone help me to short out it??

ashsek (Sun, 17 Jun 2018 12:58:38 GMT):
How can I join different peers from different VM's in hyperledger fabric in byfn example?

greg2git (Sun, 17 Jun 2018 22:11:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XFDuEQG9XvPxWRxiC) @lepar i wish it was that easy, is 7051 or 7052 the 'context'?

kshitiz_leo (Mon, 18 Jun 2018 06:01:12 GMT):
hi, i have the same error which was present at this link and I tried the solution suggested by the comments, then i'm getting the error given in the image below. Link of the question :https://lists.hyperledger.org/g/fabric/topic/22077874?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,22077874

kshitiz_leo (Mon, 18 Jun 2018 06:02:06 GMT):

Screen Shot 2018-06-18 at 11.31.33 AM.png

Avinash_Kancharla (Mon, 18 Jun 2018 06:40:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9r7oQd7jyayYxGiYc) @RahulEth It happens when the older containers are still in running state and you spinned a new version of containers. Try running docker-compose down command or manually bring your containers down, and retry it should work.

khusiarora (Mon, 18 Jun 2018 06:46:31 GMT):
Has joined the channel.

GowriR (Mon, 18 Jun 2018 07:06:31 GMT):
Hi all, how should i install grpc for node version 8.1.2

szytko (Mon, 18 Jun 2018 07:07:39 GMT):
@Avinash_Kancharla this error means that chaincode already exists, try to remove docker containers and volumes docker-compose down docker ps -a | grep Up | cut -d\ -f1 | xargs docker stop docker ps -a | grep Exited | cut -d\ -f1 | xargs docker rm docker volume prune -f and then start over again

szytko (Mon, 18 Jun 2018 07:07:39 GMT):
@RahulEth this error means that chaincode already exists, try to remove docker containers and volumes docker-compose down docker ps -a | grep Up | cut -d\ -f1 | xargs docker stop docker ps -a | grep Exited | cut -d\ -f1 | xargs docker rm docker volume prune -f and then start over again

GowriR (Mon, 18 Jun 2018 07:07:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KrNG2R8tPsNsrgcox) I am getting npm ERR! Failed at the grpc@1.0.0 install script.

thegauravks (Mon, 18 Jun 2018 07:09:01 GMT):
Hello all, I was wondering if there is a standard process for channel segregation. Or I should divide channels based on my ledger requirements. Whats the best approach ?

thegauravks (Mon, 18 Jun 2018 07:10:01 GMT):
@GowriR - Can you share your package.json file ?

GowriR (Mon, 18 Jun 2018 07:10:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YnXGEAqodk8J8GCgs) @thegauravks a lock file got created on it while intalling something.

kshitiz_leo (Mon, 18 Jun 2018 07:10:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s8da4ixt5Wp5Ad6jg) can anyone direct me how to solve it

rrsamal (Mon, 18 Jun 2018 07:10:51 GMT):
Has joined the channel.

rrsamal (Mon, 18 Jun 2018 07:11:25 GMT):
Hi , I am done with byfn in hyperledger fabric, how can i start the rest APIs

thegauravks (Mon, 18 Jun 2018 07:11:49 GMT):
@GowriR - Which application are you trying to run ?

rrsamal (Mon, 18 Jun 2018 07:12:05 GMT):
sample chaincode

rrsamal (Mon, 18 Jun 2018 07:12:30 GMT):
chaincode_example02

thegauravks (Mon, 18 Jun 2018 07:12:33 GMT):
@kshitiz_leo - Are you using grpcs or grpc ?

rrsamal (Mon, 18 Jun 2018 07:12:49 GMT):
i am able to call it from CLI for now

kshitiz_leo (Mon, 18 Jun 2018 07:12:49 GMT):
@thegauravks grpcs itslef

kshitiz_leo (Mon, 18 Jun 2018 07:13:15 GMT):
i'm using first network with TLS enabled

thegauravks (Mon, 18 Jun 2018 07:13:33 GMT):
@kshitiz_leo - Is this the Tuna application ?

GowriR (Mon, 18 Jun 2018 07:13:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rNjbh65XtLKcTY8HF) @thegauravks i am currently trying to install sudo npm install hfc and i got a could not run grpc1.0 something and hence went ahead and tried to install grpc

GowriR (Mon, 18 Jun 2018 07:14:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qFcbSnyKkgX9SY7Fv) and that is failing as well

kshitiz_leo (Mon, 18 Jun 2018 07:14:25 GMT):
@thegauravks used tuna's code and changed according to my need

thegauravks (Mon, 18 Jun 2018 07:20:33 GMT):
@kshitiz_leo - Tuna is using grpc. Any way, if you wish to use grpcs, you need both orderer certificates and peer certificate. In Javascript where you create a new orderer or peer, you have to supply these files, these are generated when you generate the crypto material. Also you will need a CA service running with TLS enabled.

khusiarora (Mon, 18 Jun 2018 07:20:51 GMT):
Came across this terrific demo built on Hyperledger Fabric http://avocado.thoughtchimps.com, although I am a bit confused why they have created only One Organisation, ideally they should be 4 or more. @experts please help.

thegauravks (Mon, 18 Jun 2018 07:20:54 GMT):
fabric_ca_client = new Fabric_CA_Client('https://localhost:7054', tlsOptions , 'ca.org1.example.com', crypto_suite);

thegauravks (Mon, 18 Jun 2018 07:21:46 GMT):
@kshitiz_leo - var peer = fabric_client.newPeer('grpcs://localhost:7051', { pem: readCryptoFile('peer1.pem'), 'ssl-target-name-override': 'peer0.org1.example.com' });

thegauravks (Mon, 18 Jun 2018 07:21:51 GMT):
Something like that

thegauravks (Mon, 18 Jun 2018 07:23:16 GMT):
@GowriR - In your package.json file, in list of dependency add grpc manually. And use grpc@1.9.1

GowriR (Mon, 18 Jun 2018 07:23:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=j64cagbqNXufDPZAc) @thegauravks is packeag-lock.json ok?

thegauravks (Mon, 18 Jun 2018 07:25:06 GMT):
No, the original file. package-lock is generated when you install. There must be a package.json file.

GowriR (Mon, 18 Jun 2018 07:25:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u2HCgSY6L8dfKAvww) @thegauravks where can i find it?

vineetmishra (Mon, 18 Jun 2018 07:33:47 GMT):
Has joined the channel.

vineetmishra (Mon, 18 Jun 2018 07:34:17 GMT):
Hi , I am trying to set up first network going through fabric docs and getting 2018-06-18 06:57:06.682 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining while doing "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" commond please help someone

AndyWo (Mon, 18 Jun 2018 07:36:46 GMT):
Has joined the channel.

kshitiz_leo (Mon, 18 Jun 2018 07:39:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zpzeBbb9GLQG837fs) @vineetmishra please try to run the channel artifacts newly again

vineetmishra (Mon, 18 Jun 2018 07:40:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a3qAiJLonB5oK5PNi) @kshitiz_leo Hi, I have already did it many times but no luck

AndyWo (Mon, 18 Jun 2018 07:41:43 GMT):
Hi There! I'm currently doing a preliminary feasibility study for a client that needs to have the ability to add new "assets" with new data types and structure? What's the proper approach for something like this? Creating a separate channel for each new asset type? There could be potentially hundreds of different assets.

vineetmishra (Mon, 18 Jun 2018 07:48:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=phWDT77S3mKYckTLv) it is also throwing error ::Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com"))

rrsamal (Mon, 18 Jun 2018 08:44:01 GMT):
@kshitiz_leo can you please guide me how to start the rest-server over hyperledger fabic 1.1

GowriR (Mon, 18 Jun 2018 08:55:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=phWDT77S3mKYckTLv) @vineetmishra I found package.json. I am still struggling for HFC installation. I presume i would need it for writing chaincode in nodejs

kshitiz_leo (Mon, 18 Jun 2018 08:57:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4GPK9i2SPSeea3Cjz) @rrsamal sorry, i don't have an idea

vineetmishra (Mon, 18 Jun 2018 09:13:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YrxFFm3aekbd4QQMd) @GowriR as of now i am tring to just starting the channel but facing this error

vineetmishra (Mon, 18 Jun 2018 09:25:33 GMT):

Clipboard - June 18, 2018 2:55 PM

vineetmishra (Mon, 18 Jun 2018 09:26:51 GMT):

Clipboard - June 18, 2018 2:56 PM

GowriR (Mon, 18 Jun 2018 09:31:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u2HCgSY6L8dfKAvww) @thegauravks I found package.json. I am still struggling for HFC installation. I presume i would need it for writing chaincode in nodejs

thegauravks (Mon, 18 Jun 2018 10:37:30 GMT):
@GowriR - can you share it with me ?

GowriR (Mon, 18 Jun 2018 10:38:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XW7Y6QrLvBNE4oswc) @thegauravks yes give me a minute

hariharan1993 (Mon, 18 Jun 2018 10:40:06 GMT):
Has joined the channel.

hariharan1993 (Mon, 18 Jun 2018 10:40:11 GMT):
hi

GowriR (Mon, 18 Jun 2018 10:41:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XW7Y6QrLvBNE4oswc) @thegauravks From the folder /usr/lib/node_modules/npm

hariharan1993 (Mon, 18 Jun 2018 10:41:52 GMT):
i have modified some data in fabcar.js file and i executed ./startFabric.sh node and node query but i could able to see the same old data can someone tell me why?

GowriR (Mon, 18 Jun 2018 10:44:17 GMT):

package.json.txt

GowriR (Mon, 18 Jun 2018 10:44:17 GMT):

package.json.txt

GowriR (Mon, 18 Jun 2018 10:44:17 GMT):

package.json.txt

Tommy109 (Mon, 18 Jun 2018 10:49:27 GMT):
hey all, whats the default consensus for fabric?

pankajcheema (Mon, 18 Jun 2018 10:51:11 GMT):
Hi Experts!!

pankajcheema (Mon, 18 Jun 2018 10:51:25 GMT):
Anyone here knows how do you upload files to Hyperledger Fabric?

KotsAshish (Mon, 18 Jun 2018 10:58:24 GMT):
What is the use of Certificates and private keys in Hyperledger Fabric? A transaction is signed by private keys than why we need certificates for users?

szytko (Mon, 18 Jun 2018 11:23:04 GMT):
@pankajcheema Hi, you mean you want to store files in the blockchain ?

devendrarg (Mon, 18 Jun 2018 11:29:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jqyT2KpqWqpszdRFS) @akula Do you have any exmple code snippet?

GowriR (Mon, 18 Jun 2018 11:42:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XW7Y6QrLvBNE4oswc) @thegauravks :/usr/lib/node_modules# sudo npm install -g hfc npm ERR! path /usr/lib/node_modules/.staging/hfc-f7e7fcbb/node_modules/aes-js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/hfc-f7e7fcbb/node_modules/aes-js' -> '/usr/lib/node_modules/.staging/aes-js-b7afc055' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-06-19T04_00_53_204Z-debug.log

pankajcheema (Mon, 18 Jun 2018 12:13:44 GMT):
yes @szytko

szytko (Mon, 18 Jun 2018 12:18:09 GMT):
@pankajcheema I'm not sure if storing files in the fabric is a good idea, but if you need to, try to convert your file content to base64, and then pass this value to chaincode

pankajcheema (Mon, 18 Jun 2018 12:18:53 GMT):
the string would be too big, it will also affect the performance

szytko (Mon, 18 Jun 2018 12:22:34 GMT):
yes exactly, check https://ipfs.io/

pankajcheema (Mon, 18 Jun 2018 12:23:06 GMT):
yesy I am trying it

pankajcheema (Mon, 18 Jun 2018 12:23:24 GMT):
@szytko Do you know about cello?

ajmeraharsh (Mon, 18 Jun 2018 12:23:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rzkGy93sXzqCbPmdg) @pankajcheema try IPFS instead

szytko (Mon, 18 Jun 2018 12:23:49 GMT):
@pankajcheema nope, never seen it

pankajcheema (Mon, 18 Jun 2018 12:23:53 GMT):
ok

pankajcheema (Mon, 18 Jun 2018 12:23:57 GMT):
thanks :)

pragadeeshdharsha (Mon, 18 Jun 2018 12:39:55 GMT):
can some one tell me how to create and use block listeners in golang?

pragadeeshdharsha (Mon, 18 Jun 2018 12:41:29 GMT):
@pankajcheema try to convert the file into a byte array and store it. I have not tried it but its just my idea.

Butzemann (Mon, 18 Jun 2018 12:43:30 GMT):
Hey folks, I was working with the chaincode in devmode for a while now. I loved, that I could just print things and they appeared in the terminal from where I started the network. When I switched to a real network, I could just get outputs with shim.success(...) in bytes, which do not even allow linebreakes. Is there a way to get some proper outputs or make the shim.success format a little more eye-candy?

AMIL_SAJEEV (Mon, 18 Jun 2018 12:45:54 GMT):
Hi all, when i made some changes to docker-compose-base.yaml and docker-compose-cli.yaml will cause ERROR: no such image: hyperledger/fabric-peer:: invalid reference format. how can i solve this?

Butzemann (Mon, 18 Jun 2018 12:47:56 GMT):
@AMIL_SAJEEV did it work before you made the changes?

AMIL_SAJEEV (Mon, 18 Jun 2018 12:48:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CciTd7Tfc8KkaCWFW) @Butzemann yes

pragadeeshdharsha (Mon, 18 Jun 2018 12:48:41 GMT):
@AMIL_SAJEEV you might have made some spelling mistakes in the yaml files you mentioned try checking them for errors like FirstLetter being capital for MSPIds

AMIL_SAJEEV (Mon, 18 Jun 2018 12:50:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kxZx7pgpo5PMagQaQ) @pragadeeshdharsha i didn't touch MSPId. i made changes only to domain name i mean replace 'example.com' with mine

vijay5378 (Mon, 18 Jun 2018 12:52:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iLbXLAPXzcndM2sbr) @szytko However IPFS doesn't have private network right?

Butzemann (Mon, 18 Jun 2018 12:53:49 GMT):
did you double check, if you replaced all appearences of example.com?

AMIL_SAJEEV (Mon, 18 Jun 2018 12:55:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3SWZjcX7yPLRWxmvp) @Butzemann ya.....replace all 'example.com' with mine

pragadeeshdharsha (Mon, 18 Jun 2018 12:55:38 GMT):
did you also make the changes in crypto-config yaml and configtx.yaml ?

Butzemann (Mon, 18 Jun 2018 12:55:43 GMT):
@AMIL_SAJEEV did you delete the folders before starting the network?

AMIL_SAJEEV (Mon, 18 Jun 2018 12:59:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QkRRbxkqztxoEAfF2) @pragadeeshdharsha yes..... made changes to these files first. then generate crypto-config folder accordingly

pragadeeshdharsha (Mon, 18 Jun 2018 13:00:30 GMT):
@AMIL_SAJEEV while executing which EXACT command did you encounter this error

AMIL_SAJEEV (Mon, 18 Jun 2018 13:02:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Zrbn6FBWTWckLYkA) @Butzemann no.... first i tried with./byfn.sh -m up. then all working perfectly. then down that network. create an another folder copy configtxgen, configtx.yaml cryptogen, cryptoconfig.yaml, base folder and docker-compose-cli.yaml and made changes.

AMIL_SAJEEV (Mon, 18 Jun 2018 13:02:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xTE5A4ki4NKyFK2QD) @pragadeeshdharsha docker-compose -f docker-compose-cli.yaml up

pragadeeshdharsha (Mon, 18 Jun 2018 13:04:00 GMT):
try doing thisIMAGE_TAG=$IMAGETAG docker-compose -f $COMPOSE_FILE up -d 2>&1

pragadeeshdharsha (Mon, 18 Jun 2018 13:04:39 GMT):
@AMIL_SAJEEV try doing this $ IMAGE_TAG=$IMAGETAG docker-compose -f $COMPOSE_FILE up -d

AMIL_SAJEEV (Mon, 18 Jun 2018 13:05:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uKmPJZkBtLjqjStLZ) @pragadeeshdharsha okey.... i wil try and let you know

pragadeeshdharsha (Mon, 18 Jun 2018 13:05:49 GMT):
COMPOSE_FILE=docker-compose-cli.yaml

pragadeeshdharsha (Mon, 18 Jun 2018 13:06:06 GMT):
IMAGETAG="latest"

AMIL_SAJEEV (Mon, 18 Jun 2018 13:14:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xWh9r8EJDzaMKaAYT) @pragadeeshdharsha it is working.........thank you very much:relaxed::slight_smile:

JeroenOnline (Mon, 18 Jun 2018 14:12:01 GMT):
Has joined the channel.

JeroenOnline (Mon, 18 Jun 2018 14:13:58 GMT):
Hi, i'm following the https://hyperledger.github.io/composer/latest/installing/development-tools.html but I get an error on the ./startFabric command.

JeroenOnline (Mon, 18 Jun 2018 14:14:14 GMT):
My daemons can't start because of an issue with the certifcates

JeroenOnline (Mon, 18 Jun 2018 14:14:16 GMT):
Failed to initialize local MSP: could not load a valid signer certificate from directory /etc/hyperledger/msp/orderer/msp/signcerts: stat /etc/hyperledger/msp/orderer/msp/signcerts: no such file or directory

JeroenOnline (Mon, 18 Jun 2018 14:14:25 GMT):
Anyone has a clue how to fix this?

szytko (Mon, 18 Jun 2018 14:16:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wPNoAoeoWdp2PkZwh) @vijay5378 Well it seems to be an experimental feature in IPFS, but I havent been using it so far: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#private-networks

rrsamal (Mon, 18 Jun 2018 14:25:38 GMT):
Hi All. Any help on setting up rest server with fabric 1.1, I setup Fabric byfn , and tested the chaincode from CLI, now how can i deploy the same as rest server like we have in Composer rest server

mfelix265 (Mon, 18 Jun 2018 14:57:07 GMT):
Has joined the channel.

SorianoTech (Mon, 18 Jun 2018 15:22:19 GMT):
Has joined the channel.

blockchainer (Mon, 18 Jun 2018 15:43:13 GMT):
Has joined the channel.

andre.racz (Mon, 18 Jun 2018 16:16:27 GMT):
Has joined the channel.

andre.racz (Mon, 18 Jun 2018 16:17:32 GMT):
Hello, I'm researching Fabric for a project. We would have a very large number of node

andre.racz (Mon, 18 Jun 2018 16:18:28 GMT):
Hello, I'm researching Fabric for a project. We would have a very large number of peers (over 20K peers). Is this large volume of peers supported? How many orderes would be required for this ammount of peers?

ajmeraharsh (Mon, 18 Jun 2018 16:34:46 GMT):
@andre.racz interesting, would you mind explaining the usage a bit?

andre.racz (Mon, 18 Jun 2018 16:49:30 GMT):
@ajmeraharsh we have several IOT devices (self service kiosks) that need to operate both in online and offline modes, the idea is to use fabric as the backend, and the users would post transactions to the blockchain. If offline, the transactions would be cached locally in the peer. The orderers could be centralized (in the cloud) or distributed among the devices.

gbolo (Mon, 18 Jun 2018 22:07:40 GMT):
What is the purpose of `testchainid`? is it some sort of hack for orderer bootstrapping (chicken and egg)?

shailaja.mahara (Tue, 19 Jun 2018 02:26:14 GMT):
orkafka

youhaixia (Tue, 19 Jun 2018 03:31:22 GMT):
Has joined the channel.

pankajcheema (Tue, 19 Jun 2018 04:30:25 GMT):
Thank you @pragadeeshdharsha for the suggestion. :)

shailaja.mahara (Tue, 19 Jun 2018 04:35:18 GMT):
kakfa

SumedhaBhatt (Tue, 19 Jun 2018 04:46:41 GMT):
fabric_client.getUserContext('user1', true); When I run the above command, I am getting this error: -bash: syntax error near unexpected token `user1,'

SumedhaBhatt (Tue, 19 Jun 2018 04:46:53 GMT):
can someone help with this

szytko (Tue, 19 Jun 2018 05:28:05 GMT):
@SumedhaBhatt where are you running this line code?

SumedhaBhatt (Tue, 19 Jun 2018 05:29:02 GMT):
inside fabcar directory

szytko (Tue, 19 Jun 2018 05:30:28 GMT):
@SumedhaBhatt but it's a Javascript code, you have to execute it within NodeJS

SumedhaBhatt (Tue, 19 Jun 2018 05:30:43 GMT):
Oh alright thanks!

SumedhaBhatt (Tue, 19 Jun 2018 05:31:27 GMT):
Also, I tried making changes to fabcar to suit my project, but I ended with when I tried to query it: Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: make sure the chaincode fabrep has been successfully instantiated and try again: could not find chaincode with name 'fabrep' at new createStatusError (/Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 2 UNKNOWN: make sure the chaincode fabrep has been successfully instantiated and try again: could not find chaincode with name 'fabrep' at new createStatusError (/Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 code: 2, metadata: Metadata { _internal_repr: {} }, details: 'make sure the chaincode fabrep has been successfully instantiated and try again: could not find chaincode with name \'fabrep\'' }

szytko (Tue, 19 Jun 2018 05:33:28 GMT):
looks like you are trying to invoke chaincode that doesn't exist. Check the name of chaincode that you are installing/instantiating and then invoking

SumedhaBhatt (Tue, 19 Jun 2018 05:33:47 GMT):
where can I check that?

szytko (Tue, 19 Jun 2018 05:37:06 GMT):
I assume you are using this https://github.com/hyperledger/fabric-samples/tree/release-1.1/fabcar https://github.com/hyperledger/fabric-samples/blob/release-1.1/fabcar/invoke.js#L63 there is the name of chaincode that is being invoked https://github.com/hyperledger/fabric-samples/blob/release-1.1/fabcar/startFabric.sh#L30 and there is the name of chaincode that is installed and in the next lines instantiated and invoked

szytko (Tue, 19 Jun 2018 05:37:25 GMT):
you have to rename all "fabcar" references to "fabrep"

SumedhaBhatt (Tue, 19 Jun 2018 05:37:57 GMT):
Oh alright, I'll try this

SumedhaBhatt (Tue, 19 Jun 2018 05:37:59 GMT):
thanks

SumedhaBhatt (Tue, 19 Jun 2018 05:48:21 GMT):
@szytko I'm working with golang not nodejs

szytko (Tue, 19 Jun 2018 05:48:50 GMT):
@SumedhaBhatt okay so you have to use fabric-sdk-go

szytko (Tue, 19 Jun 2018 05:49:27 GMT):
share your go code, so I can help you more

SumedhaBhatt (Tue, 19 Jun 2018 05:53:31 GMT):

fabcar-go.docx

szytko (Tue, 19 Jun 2018 05:55:31 GMT):
ok but this is a chaincode sourcecode, in which way you are installing chaincode?

szytko (Tue, 19 Jun 2018 05:56:25 GMT):
and how do you invoke chaincode

SumedhaBhatt (Tue, 19 Jun 2018 05:56:42 GMT):
I just opened cli bash and did peer chaincode install

SumedhaBhatt (Tue, 19 Jun 2018 05:57:00 GMT):
same for instantiation and invoke

szytko (Tue, 19 Jun 2018 05:57:38 GMT):
yeah, so you had to specify name of chaincode there right ?

szytko (Tue, 19 Jun 2018 05:57:46 GMT):
please show the cli command

SumedhaBhatt (Tue, 19 Jun 2018 05:59:26 GMT):

Screen Shot 2018-06-19 at 11.28.52 AM.png

szytko (Tue, 19 Jun 2018 06:01:17 GMT):
yes, so you have to specify name of the chaincode using -n parameter, check this https://github.com/hyperledger/fabric-samples/blob/release-1.1/fabcar/startFabric.sh#L30

SumedhaBhatt (Tue, 19 Jun 2018 06:12:25 GMT):
peer chaincode install -n fabrep -v 1.0.0 Error: Must supply value for chaincode name, path and version parameters.

szytko (Tue, 19 Jun 2018 06:19:38 GMT):
you need to provide path to chaincode (from $GOPATH) and parameter "-l golang"

SumedhaBhatt (Tue, 19 Jun 2018 06:20:26 GMT):
what should I put for path?

szytko (Tue, 19 Jun 2018 06:29:19 GMT):
what is the location of your chaincode that you attached earlier?

SumedhaBhatt (Tue, 19 Jun 2018 06:30:31 GMT):
fabric-samples/chaincode/fabcar/go

szytko (Tue, 19 Jun 2018 06:32:53 GMT):
according to https://github.com/hyperledger/fabric-samples/blob/release-1.1/fabcar/startFabric.sh#L14 the path is github.com/fabcar/go but as I said it must be relative path from $GOPATH, so first you have to do `export GOPATH=...`

SumedhaBhatt (Tue, 19 Jun 2018 06:35:56 GMT):
I tried that but go: GOPATH entry is relative; must be absolute path: "github.com/fabcar/go".

SumedhaBhatt (Tue, 19 Jun 2018 06:36:28 GMT):
Error: Error getting chaincode code chaincode: : failed with error: "exit status 2"

szytko (Tue, 19 Jun 2018 06:38:04 GMT):
`echo $GOPATH` whats the output of that in your terminal ?

SumedhaBhatt (Tue, 19 Jun 2018 06:41:27 GMT):
github.com/fabcar/go is the output

duongtx90 (Tue, 19 Jun 2018 06:49:38 GMT):
Has joined the channel.

szytko (Tue, 19 Jun 2018 06:51:54 GMT):
okay, so its incorrect, it must be absolute path in your system, eg `export GOPATH=~/fabric-samples/chaincode/fabcar/go`

SumedhaBhatt (Tue, 19 Jun 2018 06:59:01 GMT):
-p {path} Am I supposed to replace {path} with $GOPATH?

Poneey (Tue, 19 Jun 2018 07:29:02 GMT):
Hello ! For my project, i need to interrogate my network every week (for exemple), someone have an idea about how i can do this ? Or better, an example ? I thought to use crontab but i don't know how connect it to my blockchain and i don't know if it is the best way to do that

youhaixia (Tue, 19 Jun 2018 07:31:20 GMT):
Hi, if chaincode needs external data to determine following steps

szytko (Tue, 19 Jun 2018 07:32:36 GMT):
@SumedhaBhatt no no, first you have to `export GOPATH` correctly, and then use relative path from GOPATH in `-p {path}`

youhaixia (Tue, 19 Jun 2018 07:43:31 GMT):
Hi, if I need external data as input of chaincode to execute business logic. What should I do? Now the format of external data is csv file.

SumedhaBhatt (Tue, 19 Jun 2018 08:19:41 GMT):
When I try to instantiate my chaincode: root@93272a1da547:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -n fabrep -v 1.0.0 -C mychannel I'm getting the following error: 2018-06-19 07:51:52.831 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Get chain(mychannel) orderer endpoint: orderer.example.com:7050 Error: Error getting broadcast client: rpc error: code = Unavailable desc = transport: write tcp 172.19.0.7:39868->172.19.0.6:7050: write: broken pipe Anyone knows what this means?

kulldeepverma (Tue, 19 Jun 2018 08:49:53 GMT):
Has joined the channel.

SumedhaBhatt (Tue, 19 Jun 2018 09:15:12 GMT):
`root@93272a1da547:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabrep -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"` 2018-06-19 09:03:09.526 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-06-19 09:03:09.526 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: cannot get package for chaincode (fabrep:1.0)) What does this mean?

siddharth96 (Tue, 19 Jun 2018 09:39:18 GMT):
Has joined the channel.

apurva1996 (Tue, 19 Jun 2018 09:39:29 GMT):
Has joined the channel.

siddharth96 (Tue, 19 Jun 2018 09:41:59 GMT):

Error: unknown flag: --peerAddresses

siddharth96 (Tue, 19 Jun 2018 09:42:16 GMT):
Hello I have been working on the fabric tutorial to build your first network and have been stuck trying to Query for a very long time now. I am able to perform the first query to find the value of variable a but I am unable to perform the second query to shift 10 from a to b. I get the error, Error: unknown flag: --peerAddresses. I deleted my fabric-samples folder and started afresh and was able to go past this however I ran into another problem which made me restart and now I am stuck at this error again. I am not sure what exactly is causing this. I have attached an image that displays my terminal. I am working on a Macbook. #fabric-questions

NhatDuy (Tue, 19 Jun 2018 10:01:06 GMT):
Has joined the channel.

NhatDuy (Tue, 19 Jun 2018 10:03:53 GMT):
Hi everyone, please take a look my post "https://lists.hyperledger.org/g/fabric/message/3985"

punleu (Tue, 19 Jun 2018 10:08:50 GMT):
Has joined the channel.

ashsek (Tue, 19 Jun 2018 10:24:38 GMT):
how can I assign static ip address to docker containers in hyperledger?

SumedhaBhatt (Tue, 19 Jun 2018 10:25:36 GMT):
`root@93272a1da547:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n fabrep -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"` Error: Error getting broadcast client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /Users/sumedhabhatt/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts: no such file or directory

SumedhaBhatt (Tue, 19 Jun 2018 10:25:48 GMT):
Can someone help me out

JyotiKumari (Tue, 19 Jun 2018 10:34:08 GMT):
Has joined the channel.

JyotiKumari (Tue, 19 Jun 2018 10:34:45 GMT):
Can anyone share hyperledger fabric project example

JyotiKumari (Tue, 19 Jun 2018 10:35:07 GMT):
Learning purpose

JyotiKumari (Tue, 19 Jun 2018 10:44:00 GMT):
Link for source code please

goelmayank (Tue, 19 Jun 2018 11:34:36 GMT):
Hey, I have deployed the rest server here: http://13.126.30.199:3000/explorer/#!/ What is the end point of the rest api where I can send my request to? Also, I have planned to write firebase functions to access these api and develop my logic. Any suggestions for or against doing so?

ajmeraharsh (Tue, 19 Jun 2018 11:38:15 GMT):
@goelmayank here `http://13.126.30.199:3000/api/org.urbanstack.BusScan`

sgiessmann (Tue, 19 Jun 2018 12:15:43 GMT):
Has joined the channel.

JeroenOnline (Tue, 19 Jun 2018 12:23:55 GMT):
Hi! I'm trying to do a composer network start with the following command: `composer network start --networkName cgi-blockchain --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card` It then goes on to; `Starting business network definition. This may take a while...` But after a couple of minutes it says; `Error: Error trying install business network. Error: No valid response from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed`

JeroenOnline (Tue, 19 Jun 2018 12:24:06 GMT):
Anyone has a clue how to fix?

mdvenkatesh (Tue, 19 Jun 2018 12:29:10 GMT):
i have taken marbles examples i want to give a primary key as time stamp i don't which part of code to edit please help me

goelmayank (Tue, 19 Jun 2018 13:26:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L8zwb863Lyikg2NQG) @ajmeraharsh Also, how to set optional parameters in fabric rest api to false? I am sending the required parameters but it is returning statusCode:500

jsellinger (Tue, 19 Jun 2018 14:39:32 GMT):
hello all,

jsellinger (Tue, 19 Jun 2018 14:40:12 GMT):
I am trying to understand the limitations of the ledger. when writing a key value pair, is there a limit to the size of the value that can be written to the ledger?

jelani504 (Tue, 19 Jun 2018 16:01:29 GMT):
Is there a tutorial somewhere for integrating fiat / credit cards?

JonathanC (Tue, 19 Jun 2018 16:38:23 GMT):
Hello guys anyone can explain in a few word the differences between docker-compose-cli and docker-colpose-e2e please ?

Nghiadt (Tue, 19 Jun 2018 17:40:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMxEExgL8Tdcz2aXX) @JackStrohm Hi Jack. My cluster's just like yours. And i'm being in a trouble when trying create a channel via 2 those orderers. How did you deal with that? Thank you.

vijay5378 (Tue, 19 Jun 2018 18:16:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d6EGv7aKFi8FczPMy) @szytko what would be the best way if we need to reference documents in hyperledger? I thought the best way would be to store documents in some object store and keep the hash of the document in the chain. Any better ways to do it?

JeroenOnline (Tue, 19 Jun 2018 18:17:22 GMT):
HI! I'm having a question about the ./createPeerAdminCard.sh script this generates a card for the tutorial-network if I'm not mistaken.

JeroenOnline (Tue, 19 Jun 2018 18:17:43 GMT):
So if i want to use that command to generate it for my application 'cgi-blockchain' how would i do that?

allan.gulley (Tue, 19 Jun 2018 18:39:54 GMT):
Has joined the channel.

XingqiangMao (Tue, 19 Jun 2018 19:08:29 GMT):
Hi Guys. I was using cryptogen to generate ceritficate

XingqiangMao (Tue, 19 Jun 2018 19:08:42 GMT):
Keep getting

XingqiangMao (Tue, 19 Jun 2018 19:08:43 GMT):
Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc420228cc0, 0x1829565, 0x27, 0xc420307f30, 0x1, 0x1) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x134 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc42020a310, 0xc420190840, 0xc420190840) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:253 +0x391 github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0x1c5a4e0, 0xc4201682a0, 0xc420150cf0, 0x1c56ee0, 0x1cc44d8, 0xc4201666e8, 0x1, 0x1, 0x0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:144 +0x352 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc42029a780, 0x1c56ee0, 0x1cc44d8, 0xc4201666e8, 0x1, 0x1, 0xc4204000d0) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:262 +0x277 github.com/hyperledger/fabric/orderer/common/server.Start(0x180e972, 0x5, 0xc42029a780) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:103 +0x24c github.com/hyperledger/fabric/orderer/common/server.Main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:82 +0x20f main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

XingqiangMao (Tue, 19 Jun 2018 19:08:51 GMT):
When I try to start orderer

XingqiangMao (Tue, 19 Jun 2018 19:08:55 GMT):
Any idea?

nelaturuk (Tue, 19 Jun 2018 20:52:28 GMT):
Has joined the channel.

nelaturuk (Tue, 19 Jun 2018 20:55:11 GMT):
Hi, We have a ongoing project running on Fabric 1.0.1.. We are struck at an issue. Basically the environment we have is 3 orderers/kafkas/zookeerps - 2 on one server and 1 on another for all 3

nelaturuk (Tue, 19 Jun 2018 21:00:04 GMT):
We had a system upgrade and had to restart all of the dockers.

nelaturuk (Tue, 19 Jun 2018 21:00:23 GMT):
Now the orderer shows below warnings: 2018-06-19 20:56:23.992 UTC [orderer/common/deliver] Handle -> WARN 407 [channel: channel250a] Rejecting deliver request because of consenter error

nelaturuk (Tue, 19 Jun 2018 21:00:58 GMT):
whenever we post a transaction we get the error below

nelaturuk (Tue, 19 Jun 2018 21:00:59 GMT):
2018-06-19 20:43:15.522 UTC [orderer/kafka] Enqueue -> DEBU 376 [channel: channel250a] Enqueueing envelope... 2018-06-19 20:43:15.522 UTC [orderer/kafka] Enqueue -> WARN 377 [channel: channel250a] Will not enqueue, consenter for this channel hasn't started yet

nelaturuk (Tue, 19 Jun 2018 21:08:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wcB4uZYrZC4pzgtEr) @suvpatil Where you able to resolve this issue ?

nelaturuk (Tue, 19 Jun 2018 21:12:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ex5n2zw48uMEaz2oh) @srongzhe Where u able to resolve this error ?

kdnmih (Wed, 20 Jun 2018 00:25:53 GMT):
Has joined the channel.

minukk (Wed, 20 Jun 2018 02:30:01 GMT):
Has joined the channel.

SumedhaBhatt (Wed, 20 Jun 2018 03:47:26 GMT):
`Sumedhas-MacBook-Air:fabcar sumedhabhatt$ node query.js Store path:/Users/sumedhabhatt/fabric-samples/fabcar/hfc-key-store` Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: make sure the chaincode fabcar has been successfully instantiated and try again: could not find chaincode with name 'fabcar' at new createStatusError (/Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 2 UNKNOWN: make sure the chaincode fabcar has been successfully instantiated and try again: could not find chaincode with name 'fabcar' at new createStatusError (/Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/sumedhabhatt/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 code: 2, metadata: Metadata { _internal_repr: {} }, details: 'make sure the chaincode fabcar has been successfully instantiated and try again: could not find chaincode with name \'fabcar\'' } ` I edited the fabcar code to match my requirements, but I don't understand what this error is, I changed all the references of fabcar functions everywhere.

dqvn2002 (Wed, 20 Jun 2018 04:15:05 GMT):
Has joined the channel.

Avinash_Kancharla (Wed, 20 Jun 2018 04:20:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zqEYzT6MLxvBvaHXy) @SumedhaBhatt This happens when their is difference in chaincode ID used in node application (client) to the one defined in your start script where the chaincode is instantiated. Please check the chaincodeID is given as "fabcar" while instantiating your chaincode.

SumedhaBhatt (Wed, 20 Jun 2018 04:27:32 GMT):
Where can I check the chaincode ID?

mdvenkatesh (Wed, 20 Jun 2018 05:27:05 GMT):
Hi guys I want to write a Rest api to support composite search means we are having totally 13 fields and if the user types any field it should search from your coachdb database any suggestions how to do it any documention

midhun14 (Wed, 20 Jun 2018 05:29:07 GMT):
i moved from 1.0.0 to 1.1 hyperledger fabric.but am getting an error when trying to run first network

midhun14 (Wed, 20 Jun 2018 05:29:07 GMT):
i moved from 1.0.0 to 1.1 hyperledger fabric.but am getting an error when trying to run first network.

midhun14 (Wed, 20 Jun 2018 05:29:07 GMT):
i moved from 1.0.0 to 1.1 hyperledger fabric.but am getting an error when trying to run first network. ERROR! Fabric Docker image version of 1.0.0-rc1 does not match this newer version of BYFN and is unsupported

yulong12 (Wed, 20 Jun 2018 05:39:45 GMT):
Hi everyone,I use golang language to write a chaincode,now I want to use mysql in chaincode.so what can I do ?

szytko (Wed, 20 Jun 2018 05:55:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F2Hri455JtPWEmK46) @vijay5378 yes I think that\ seems to be a good solution

szytko (Wed, 20 Jun 2018 05:55:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F2Hri455JtPWEmK46) @vijay5378 yes I think that seems to be a good solution

yulong12 (Wed, 20 Jun 2018 06:03:29 GMT):
Hi everyone,I use golang language to write a chaincode,now I want to use mysql in chaincode.so what can I do ?

yulong12 (Wed, 20 Jun 2018 06:03:32 GMT):
Hi everyone,I use golang language to write a chaincode,now I want to use mysql in chaincode.so what can I do ?

minukk (Wed, 20 Jun 2018 06:30:41 GMT):
why fabric has not a timestamp info in the block, but in the transactions? is there an intention for this design?

apurva1996 (Wed, 20 Jun 2018 06:42:14 GMT):
Hello! I am trying out the building your first network example. I have created a network and joined a channel. A query for the value of A shows 100. I am able to invoke a transaction successfully however it is not reflected when i query for the value of A again. It still displays 100 instead of 90. What could be the issue here?

siddharth96 (Wed, 20 Jun 2018 06:54:26 GMT):
@apurva1996 Man I ran into the same problem! Would anyone have a solution?

szytko (Wed, 20 Jun 2018 06:59:27 GMT):
@apurva1996 what transaction are you invoking ? can you show ?

apurva1996 (Wed, 20 Jun 2018 07:03:07 GMT):

Clipboard - June 20, 2018 3:03 PM

szytko (Wed, 20 Jun 2018 07:03:54 GMT):
please paste whole command

apurva1996 (Wed, 20 Jun 2018 07:04:15 GMT):
@szytko peer chaincode invoke -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -c '{"Args":["invoke","a","b","10"]}'

apurva1996 (Wed, 20 Jun 2018 07:34:28 GMT):
@szytko This problem only occurs when I manually created and joined the channel and installed and instantiated the chaincode. When I automatically bring the network up using "./byfn.sh -m up" and then try to invoke, I do not face this problem.

peva.blanchard (Wed, 20 Jun 2018 08:15:52 GMT):
Has joined the channel.

peva.blanchard (Wed, 20 Jun 2018 08:21:48 GMT):
When you invoke using the command peer, the result given is the same as the query (the result is the one computed locally by the peer you are talking to). To be sure that your invoke was indeed committed to the blockchain (i.e. packaged in a block by the orderers, and broadcasted to and accepted by the peers), the "normal" way is to listen to events generated by the peer (see eventHub). Roughly, the peer generates an event each time a block is committed to the ledger. In your case, maybe you could look at the logs of the peer (docker logs the-peer).

SaraEmily (Wed, 20 Jun 2018 08:22:13 GMT):
Remember that it takes some time for the ledger to update (it needs to run through both the ordering phase and the validation phase), have you tried running the invoke again after waiting some time?

SaraEmily (Wed, 20 Jun 2018 08:22:13 GMT):
Remember that it takes some time for the ledger to update (Fabric needs to run through both the ordering phase and the validation phase), have you tried running the invoke again after waiting some time?

peva.blanchard (Wed, 20 Jun 2018 08:23:11 GMT):
Also note that a transaction in a committed block does not necessarily update the ledger: if the block contains another transaction with conflicting read/write sets, only one (I guess the first in the block) conflicting transaction is actually applied.

peva.blanchard (Wed, 20 Jun 2018 08:23:55 GMT):
I have a question: does Hyperledger fabric has already implemented a means to batch transactions ?

SaraEmily (Wed, 20 Jun 2018 08:25:08 GMT):
@peva.blanchard Yes, according to this paper https://dl.acm.org/citation.cfm?id=3190538

SaraEmily (Wed, 20 Jun 2018 08:25:30 GMT):
You can also see it in the logs, how many transactions per block

peva.blanchard (Wed, 20 Jun 2018 08:32:18 GMT):
Thank you Sara :) just my question was a bit sketchy. In more details. Say I have a chaincode operation spend(A,B,x) which transfers x $ from A to B. Is there a feature in HL fabric so that the two transactions [spend(A,B,10),spend(B,C,10)] are executed in this order, atomically ?

peva.blanchard (Wed, 20 Jun 2018 08:34:02 GMT):
These two transactions cannot lie in the same block, as there is a conflict of B. Using bare invocations, I would first need to invoke spend(A,B,10), then waits for the ledger to be updated, and then invoke spend(B,C,10). But this breaks atomicity.

SaraEmily (Wed, 20 Jun 2018 08:35:05 GMT):
Well that sounds like a job for the ordering service and the ordering service is pluggable :) But the ordering service always order the transactions and the peers all get the transactions in the same order, but I don't know what determines this order... Perhaps someone know how it works in SOLO or Kafka/Zookeeper?

peva.blanchard (Wed, 20 Jun 2018 08:35:53 GMT):
My idea was to write another chaincode operation, say, "batch", which takes as input a sequence of spend (including their args). Regarding HL, the batch operation looks like a single transaction.

peva.blanchard (Wed, 20 Jun 2018 08:36:33 GMT):
I was wondering if HL fabric provided such a feature (a friend of mine thinks he saw something like this in the doc, but I can't find it).

peva.blanchard (Wed, 20 Jun 2018 08:36:56 GMT):
Thank you ^^

minukk (Wed, 20 Jun 2018 09:12:50 GMT):
why fabric has no block timestamp?

infowolfe (Wed, 20 Jun 2018 09:26:19 GMT):
Has joined the channel.

Saachi (Wed, 20 Jun 2018 09:29:06 GMT):
How to delete a user from fabcar sample?

ashlinSajan (Wed, 20 Jun 2018 09:30:30 GMT):
Has joined the channel.

ashlinSajan (Wed, 20 Jun 2018 09:31:53 GMT):
Can any one tell me the command to find out the version of hyperledger fabric installed in a syatem?

ashlinSajan (Wed, 20 Jun 2018 09:31:53 GMT):
Could any one please tell me the command to find out the version of hyperledger fabric installed in a system?

waleed (Wed, 20 Jun 2018 09:33:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXfDfMpLuFo5aBLKF) @ashlinSajan if u use docker just run `docker images` and u can see the tag of the image

ashlinSajan (Wed, 20 Jun 2018 09:34:28 GMT):
Thank you so much @waleed

ashlinSajan (Wed, 20 Jun 2018 09:42:40 GMT):
Suppose we are installing chaincode only on some endorsing peers.Will all the peers be able to see the output of the chaincode?

waleed (Wed, 20 Jun 2018 09:43:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YxjfveY5iP4LWabB9) @ashlinSajan I didn't understand you question. Can u explain more?

ashlinSajan (Wed, 20 Jun 2018 09:46:22 GMT):
Instead of installing chaincode on all peers, if we install chaincode on only selected peers.Will all the peers be able to see the output of the chaincode?\

midhun14 (Wed, 20 Jun 2018 09:50:33 GMT):
Can we add multiple organizations to existing network using eyfn.sh in HL Fabric1.1

waleed (Wed, 20 Jun 2018 09:51:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6EmtjJ5BnDR6L8ZCs) @ashlinSajan I didn't try this. I think the other peers will not be able to see any thing although they are joined to the same channel. If u take a look at fabric-samples u see that the chaincode will be installed on every peer.

waleed (Wed, 20 Jun 2018 09:51:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6EmtjJ5BnDR6L8ZCs) @ashlinSajan I didn't try this. I think the other peers will not be able to see any thing although they are joined to the same channel. If u take a look at fabric-samples u see that the chaincode will be installed on every peer. try to do this in your network ;)

waleed (Wed, 20 Jun 2018 09:53:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WvCWagASMLucLZpRv) @midhun14 I didn't try to do this but this may help: https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html

ashlinSajan (Wed, 20 Jun 2018 09:56:31 GMT):
@waleed Okay I will just try and see :-)

Rachit_gaur (Wed, 20 Jun 2018 10:18:49 GMT):
Has joined the channel.

Rachit_gaur (Wed, 20 Jun 2018 10:18:54 GMT):
Hi i have setup my chaincode endorsement policy such that 2 organization have to sign it out of 3..How can i pass the signs so that transaction is approved

Rachit_gaur (Wed, 20 Jun 2018 10:18:54 GMT):
Hi i have setup my chaincode endorsement policy such that 2 organization have to sign it out of 3..How can i pass the signs so that transaction is approved. I am using Oracle Blockchain Beta..and calling my arguments through rest API's..Can i pass some parameters which enable signing or is there some other method?

csengor (Wed, 20 Jun 2018 10:25:24 GMT):
Hello, I have a question about channels. Assuming I am running a fabric network with 3 orgs and 1 orderer, each with their own physical machine (4 physical machines in total) and org1 and org2 are on MyAwesomeChannel. We know that org3 cannot access(/see?) the blocks in this channel, but is the channel stored on the peer node owned by org3? Or is it just stored on the peer nodes owned by org1 and org2?

ashlinSajan (Wed, 20 Jun 2018 10:40:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ze8jQ2wZcZwBYoEvm) @waleed I tried by doing the same but was not able to get.What you told was right

Rachit_gaur (Wed, 20 Jun 2018 11:15:57 GMT):
How to endorse the chaincode for signing before transactions? and what parameters will be passed to sign the chaincode?

waleed (Wed, 20 Jun 2018 11:28:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N2vE2q46Mj2njgufb) @csengor this is a very interesting question! I would know the answer. may can this help to understand: http://hyperledger-fabric.readthedocs.io/en/release-1.0/channels.html

Pallavrj (Wed, 20 Jun 2018 12:10:56 GMT):
fabric binaries

RomanFedonin (Wed, 20 Jun 2018 12:24:11 GMT):
Has joined the channel.

diyan.filipov (Wed, 20 Jun 2018 12:29:08 GMT):
Has joined the channel.

diyan.filipov (Wed, 20 Jun 2018 12:29:50 GMT):
Hi guys! I hope I will be able to find some answers here regarding mutual TLS between Fabric CA server and fabric Java SDK client app :)

diyan.filipov (Wed, 20 Jun 2018 12:35:13 GMT):
More precisely - I have a configured CA server with TLS enabled which I am able to reach via curl (providing the --key & --cert files configured in the ca-server config). But I saw that I am not able to configure and use a CA client from the Java SDK with client key and certificate, because the configuration section in `certificateAuthorities.caName.tlsCACerts.client` keyfile and certfile is not read at all from the NetworkConfig - `org.hyperledger.fabric.sdk.NetworkConfig#getTLSCerts`. So I guess mutual TLS from the SDK is not possible for now or there is some workaround you guys could point me to?

diyan.filipov (Wed, 20 Jun 2018 12:39:01 GMT):
Furthermore, if I don't use the `NetworkConfig` class to load my configs and use Properties to init the `HFCAClient`, again, it is not possible to pass the props needed for mutual TLS, because HFCAClient supports only `pemFile` and `allowAllHostNames` properties (check the `HFCAClient` constructor java docs)

roma2341 (Wed, 20 Jun 2018 12:48:31 GMT):
Has joined the channel.

roma2341 (Wed, 20 Jun 2018 12:54:22 GMT):
Hi guys, can you help me ? Please, describe me how to calculate disk space usage if we have 100k transactions per day and each transaction size is 100 kb. I need to calculate disk usage for 1 year. Will it consume 10 gb per day ?

roma2341 (Wed, 20 Jun 2018 12:54:22 GMT):
Hi guys, can you help me ? Please, explain to me how to calculate disk space usage if we have 100k transactions per day and each transaction size is 100 kb. I need to calculate disk usage for 1 year. Will it consume 10 gb per day ?

gennadyl (Wed, 20 Jun 2018 13:15:27 GMT):
Has joined the channel.

CarlosAvim (Wed, 20 Jun 2018 13:19:45 GMT):
Has joined the channel.

InStateTech (Wed, 20 Jun 2018 13:20:33 GMT):
Has joined the channel.

andre.racz (Wed, 20 Jun 2018 13:51:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vacFmCaj3PMpXtfMc) @roma2341 I'm not really experienced in fabric, but 100kb transaction seems realy exagerated

roma2341 (Wed, 20 Jun 2018 14:01:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6rceLsav6W7jdoWDL) @andre.racz I don't know what data will be stored in hlf, so 100 kb is example value to simplify calculations. But I'm afraid that such a size can be real, because the customers will probably want to save photos of goods

andre.racz (Wed, 20 Jun 2018 14:08:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S8Nk3hzj422MMnqka) @roma2341 Why don'nt you store the photos somewhere else (IPFS, S3, Azure Blob, for instance), and just a link in the Ledger. Storing photos in Hyperledger is highly ineffective.

roma2341 (Wed, 20 Jun 2018 14:24:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dG7qRkuuQaJqxo6ZD) @andre.racz Thanks for your helpful advice, now i don't panic about huge size of transactions. So, if each transaction will be 5 kb we will be consuming 500 Mb of disk space every day, right ? Or there are another parameters increasing/decreasing storage requirements ?

greg2git (Wed, 20 Jun 2018 15:33:36 GMT):
"Tried joining channel mychannel but our org( Org3MSP ), isn't among the orgs of the channel: [Org1MSP Org2MSP] , aborting." still getting this in 1.1

yacovm (Wed, 20 Jun 2018 16:07:08 GMT):
@greg2git - that happens when org3 isn't in the genesis block. If you added org3 at some point in the future then don't worry, ignore the warning

hamptonsmith (Wed, 20 Jun 2018 17:04:08 GMT):
Which channel is best for questions about the default MSP implementation? Specific question is whether or not "-cert.pem" is a required format for finding the correct certificate, or if perhaps the MSP directory is recursively walked and all certs/keys are read in regardless of filename.

nfrunza (Wed, 20 Jun 2018 18:15:20 GMT):
Hello fabric, can someone tell me how to ensure uniqueness of the channel, there could be cases where one or more networks may have same channel name

Puneet7nov (Wed, 20 Jun 2018 19:23:32 GMT):
Hi, I am getting the following error on executing "../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME"

Puneet7nov (Wed, 20 Jun 2018 19:23:32 GMT):
Hi, I am getting the following error on executing "../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME" .......2018-06-21 00:46:34.262 IST [common/tools/configtxgen] main -> CRIT 005 Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")"........I have referred but NO Luck "https://stackoverflow.com/questions/49356066/hyperledger-fabric-v1-1-0-byfn-tutorial-on-ubuntu-16-04"

Puneet7nov (Wed, 20 Jun 2018 19:32:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fWuqKePeNtikSWirJ) Figured this out.. when following the stackoverflow answer, after you shut down the network, do not bring it back up but simply execute the other commands

XingqiangMao (Wed, 20 Jun 2018 21:07:58 GMT):
018-06-20 17:02:32.090 EDT [orderer/commmon/multichannel] newLedgerResources -> CRIT 051 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") Keep block me when I bring up orderer in my local Folks, anyone can help me out?

XingqiangMao (Wed, 20 Jun 2018 22:04:25 GMT):
Never mind After re produce the orderer binary and re generate the keys. It works now.

Villarreal (Thu, 21 Jun 2018 01:50:04 GMT):
Has joined the channel.

Aswath8687 (Thu, 21 Jun 2018 02:08:14 GMT):
Hi, In fabric - I am running multi-org network (say 5 org, 2 peer each, 1 ordererer, 1 channel). Now while create network cards, is my understanding correct, Network admins - will have access to multiple channels, Channel admins - will have access to orderer and all peers running in the channel. PeerAdmin will have access only to the Peers of each organization, not even orderer he can access.

Aswath8687 (Thu, 21 Jun 2018 02:08:14 GMT):
Hi, In fabric - I am running multi-org network (say 5 org, 2 peer each, 1 ordererer, 1 channel). Now while create network cards, is my understanding correct, Network admins - will have access to multiple channels, Channel admins - will have access to orderer and all peers running in the channel. PeerAdmin will have access only to the Peers of each organization, not even orderer he can access. In prod world, there would be eventually multiple orderers, but this is just a PoC/MVP I am building

Aswath8687 (Thu, 21 Jun 2018 02:08:14 GMT):
Hi, In fabric - I am running multi-org network (say 5 org, 2 peer each, 1 ordererer, 1 channel). Now while create network cards, is my understanding correct, Network admins - will have access to multiple channels, Channel admins - will have access to orderer and all peers running in the channel. PeerAdmin will have access only to the Peers of each organization, not even orderer he can access. In prod world, there would be eventually multiple orderers, but this is just a PoC/MVP I am building.. TIA...

Aswath8687 (Thu, 21 Jun 2018 02:08:14 GMT):
Hi, In fabric - I am running multi-org network (say 5 org, 2 peer each, 1 ordererer, 1 channel). Now while creating network cards, is my understanding correct? a. Network admins - will have access to multiple channels, b. Channel admins - will have access to orderer and all peers running in the channel. c. PeerAdmin will have access only to the Peers of each organization, not even orderer he can access. In prod world, there would be eventually multiple orderers, but this is just a PoC/MVP I am building.. TIA...

yulong12 (Thu, 21 Jun 2018 02:52:53 GMT):
Hi everyone. I want to know chaincode.go how to call external api Does someone can help me?

Perebor (Thu, 21 Jun 2018 03:27:48 GMT):
Has joined the channel.

midhun14 (Thu, 21 Jun 2018 04:01:05 GMT):
@yulong12 External APIs in the sense you want to invoke some REST APIs from your application from chaincode?

rkrish82 (Thu, 21 Jun 2018 04:05:10 GMT):
Has joined the channel.

rkrish82 (Thu, 21 Jun 2018 04:05:46 GMT):
Hi All, I am getting error while starting orderer

rkrish82 (Thu, 21 Jun 2018 04:05:53 GMT):
[orderer/common/server] Main -> ERRO 001 failed to parse config: Error reading configuration: Unsupported Config Type ""

rkrish82 (Thu, 21 Jun 2018 04:06:37 GMT):
I have set FABRIC_CFG_PATH to proper directory

rkrish82 (Thu, 21 Jun 2018 04:06:52 GMT):
Even then i am getting this error

salmanbao (Thu, 21 Jun 2018 05:05:34 GMT):
Has joined the channel.

yulong12 (Thu, 21 Jun 2018 05:10:30 GMT):
@midhun14 yes,I want call external APIS in the chaincode

yulong12 (Thu, 21 Jun 2018 05:10:52 GMT):
``` func (sc *SimpleChaincode) getjson(stub shim.ChaincodeStubInterface) pb.Response { url := "http://9.115.193.6:8085" ret, err := http.Get(url) if err != nil { return shim.Error("http get url failed") } defer ret.Body.Close() body, err := ioutil.ReadAll(ret.Body) if err != nil { return shim.Error("ReadAll ret.Body failed") } var msg Message err = json.Unmarshal(body, &msg) if err != nil { return shim.Error("unmarshal failed") } strTime := time.Unix(msg.Time, 0).Format("2006-01-02 15:04:05") fmt.Println("Dept:", msg.Dept) fmt.Println("Subject:", msg.Subject) fmt.Println("Time:", strTime, "\n", msg.Detail) logger.Infof("========Dept:====%s===", msg.Dept) logger.Infof("========Subject:====%s===", msg.Subject) logger.Infof("========Time:====%s===", strTime) return shim.Success(getRetReason("getjson", "成功")) } ```

yulong12 (Thu, 21 Jun 2018 05:11:40 GMT):
but it appears``` node getjson.js Store path:/Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/dataAsset01/dataAsset/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: 84842351c1987594bff2042dc8d52865efc5d244adada81458c0f6446627a5bc error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction at new createStatusError (/Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/dataAsset01/dataAsset/node_modules/grpc/src/client.js:64:15) at /Users/zhangyulong/Documents/gopath/src/github.com/hyperledger/dataAsset01/dataAsset/node_modules/grpc/src/client.js:583:15 =====results======Error: 2 UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction Transaction proposal was bad ```

yulong12 (Thu, 21 Jun 2018 05:11:49 GMT):
@midhun14

AMIL_SAJEEV (Thu, 21 Jun 2018 06:37:26 GMT):
hi all, how can i configure Fabric CA server read from an LDAP server?

SumedhaBhatt (Thu, 21 Jun 2018 06:45:56 GMT):
I have been playing around with the hyperledger-fabric samples/fabcar example for a while and it was successful, I implemented my data and I was able to add and update the ledger. However, If I delete the containers and start the network again, the updated data isn' t available anymore. Can someone explain how to resolve this ?

devendrarg (Thu, 21 Jun 2018 06:46:28 GMT):
Fabric example balance transfer Balance transfer sample Chaincode instantiation problem - https://lists.hyperledger.org/g/fabric/message/3545. Can someone help me?

yulong12 (Thu, 21 Jun 2018 07:14:27 GMT):
Hi everyone. I want to know chaincode.go how to call external api Does someone can help me?

SaraEmily (Thu, 21 Jun 2018 07:37:12 GMT):
@SumedhaBhatt Hi! If you are using Docker then you are storing your data in the containers, e.g. if you delete the containers, you delete the data. You can read more in the Docker docs: https://docs.docker.com/storage/

serefacet (Thu, 21 Jun 2018 07:45:06 GMT):
Has joined the channel.

Nori (Thu, 21 Jun 2018 07:50:41 GMT):
Has joined the channel.

serefacet (Thu, 21 Jun 2018 07:53:14 GMT):
Hello, I just want to ensure that the options of CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE is `host`(default),`bridge`,`ipvlan`,`none`. However I see different values in lots of places such as https://github.com/hyperledger/fabric-sdk-rest/blob/master/tests/basic-network/docker-compose.yml. It is written as CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic

serefacet (Thu, 21 Jun 2018 07:53:14 GMT):
Hello, I just want to ensure that the options of CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE are `host`(default),`bridge`,`ipvlan`,`none`. However I see different values in lots of docker files such as https://github.com/hyperledger/fabric-sdk-rest/blob/master/tests/basic-network/docker-compose.yml. It is written as CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic

Nori (Thu, 21 Jun 2018 07:54:34 GMT):
Hello there, we are looking for the easiest way to transfer key-value data from chaincode v1.0 to chaincode v1.1. The key-value data will be initialized if we create new version of chaincode basically. chaincode is created by Go lang. How do you usually transfer the old data to new chaincode env ?

ashlinSajan (Thu, 21 Jun 2018 09:19:48 GMT):
@yulong12 you cannot run go file using node command.

yulong12 (Thu, 21 Jun 2018 09:20:57 GMT):
I cann't use node command to run go file

yulong12 (Thu, 21 Jun 2018 09:21:00 GMT):
@ashlinSajan

yulong12 (Thu, 21 Jun 2018 09:21:34 GMT):
getjson.js is node js

yulong12 (Thu, 21 Jun 2018 09:22:03 GMT):
while getjson is a function in chaincode

SaraEmily (Thu, 21 Jun 2018 09:37:52 GMT):
Hi everyone! So I've been measuring the time it takes to commit a transaction to the ledger and I've found that the first invoke to the ledger is a lot slower than the rest, like 20 times slower. I've tried waiting a good amout of time after installing and instantiating the chaincode, but it still happens. Does anyone know why?

ajmeraharsh (Thu, 21 Jun 2018 09:40:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6kRFYBxreNbQA4aiL) @SaraEmily interesting, is there a way I can get some logs on this?

SaraEmily (Thu, 21 Jun 2018 09:41:08 GMT):
@ajmeraharsh I guess you could replicate it as well :) But I'll send you some in a dm

Sreesha (Thu, 21 Jun 2018 09:41:17 GMT):
Iam tring to run ./build-images.sh this file is inside hyperledger/fabric-samples/fabric-ca But its showing error: FATAL: You must switch to the master branch in go/src/github.com/hyperledger/fabric-ca

ajmeraharsh (Thu, 21 Jun 2018 09:41:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kd8qwaxXnkNggJ9fN) @SaraEmily never encountered it, that's why I wanted to replicate the environment you are using

AMIL_SAJEEV (Thu, 21 Jun 2018 10:07:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fqhWbZwbPPRY4x3JQ) ??

uchihamalolan (Thu, 21 Jun 2018 10:21:45 GMT):
Has joined the channel.

uchihamalolan (Thu, 21 Jun 2018 10:22:41 GMT):
have read that in golang events are generated using SetEvent() function which returns a payload to the API But it says clients need to register for that event and listen to it how do I make client listen to the event ??? have read that in golang events are generated using SetEvent() function which returns a payload to the API But it says clients need to register for that event and listen to it how do I make client listen to the event ??? have read that in golang events are generated using SetEvent() function which returns a payload to the API But it says clients need to register for that event and listen to it how do I make client listen to the event ??? I have read that in golang events are generated using SetEvent() function which returns a payload to the API But it says clients need to register for that event and listen to it how do I make client listen to the event ???

uchihamalolan (Thu, 21 Jun 2018 10:22:59 GMT):
I have read that in golang events are generated using SetEvent() function which returns a payload to the API But it says clients need to register for that event and listen to it how do I make client listen to the event ???

Rajalekshmy (Thu, 21 Jun 2018 10:28:12 GMT):
Hi, How to get all transaction history against a chaincode in Hyperledger fabric?

rodrigo.klein (Thu, 21 Jun 2018 11:17:15 GMT):
Has joined the channel.

midhun14 (Thu, 21 Jun 2018 11:19:16 GMT):
@uchihamalolan in your node sdk you need to register a chaincode event to handle it.You can use registerChaincodeEvent() to handle the same

AMIL_SAJEEV (Thu, 21 Jun 2018 11:54:43 GMT):
hi all, can anyone give a solution for configure fabric ca server read from an LDAP server. i made changes to LDAP section in fabric-ca-server-config.yaml. i mean set ldap enabled : true and change the url portion like url: ldap://admin:adminpw@ then getting an error : Failed to initialize LDAP client; err=Invalid LDAP port (): strconv.Atoi: parsing "": invalid syntax How can i solve this??

GowriR (Thu, 21 Jun 2018 12:09:38 GMT):
need some help. Till install chain code i used the command line. I am trying to instantiate the chaincode using application code I got an error, saying i need to initialize the channel before instantiating the chaincode I am getting the error - Failed to instantiate successfully :: TypeError: Cannot read property '0' of undefined

GowriR (Thu, 21 Jun 2018 12:11:19 GMT):
yes - this piece of code channel.initialize().then(

sjchavda (Thu, 21 Jun 2018 14:12:42 GMT):
Has joined the channel.

SumedhaBhatt (Thu, 21 Jun 2018 16:45:13 GMT):
Failed to register: Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authorization failure"}]] Authorization failures may be caused by having admin credentials from a previous CA instance. How do I resolve this?

SumedhaBhatt (Thu, 21 Jun 2018 16:45:24 GMT):
This occurs when

SumedhaBhatt (Thu, 21 Jun 2018 16:45:41 GMT):
I try to registerUser. adminregister happened without any error

walmon (Thu, 21 Jun 2018 17:42:01 GMT):
Has joined the channel.

walmon (Thu, 21 Jun 2018 17:42:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=33hbEuTn7pg7eseex) @SumedhaBhatt It happens when you execute multiple times the start network script but don't cleaning the hfc folder

SumedhaBhatt (Thu, 21 Jun 2018 18:26:19 GMT):
Thankyou @walmon

coop4bama (Thu, 21 Jun 2018 19:59:55 GMT):
Has joined the channel.

coop4bama (Thu, 21 Jun 2018 20:00:00 GMT):
Is anyone aware of Hyperledger projects on the IBM iSeries?

ThomasBereczky (Thu, 21 Jun 2018 20:46:10 GMT):
Hey Guys

ThomasBereczky (Thu, 21 Jun 2018 20:46:11 GMT):
I was wondering is it possible to change a Orderer from being Solo to being Kafka later on? or does it have to be build originally to be kafka if there is a requirement to have more then one orderer?

ThomasBereczky (Thu, 21 Jun 2018 22:54:05 GMT):
Also I configured persistent storage in Docker then I teardown all my images and start it up, and it did not start up my BNA. How can I start that up?

kzhry (Fri, 22 Jun 2018 01:27:10 GMT):
Has joined the channel.

rofa (Fri, 22 Jun 2018 02:17:52 GMT):
A channel has already been created(name foo) ,then another org's peer want to join foo .

rofa (Fri, 22 Jun 2018 02:18:19 GMT):
A channel has already been created(name foo) ,then another org's peer want to join foo .

rofa (Fri, 22 Jun 2018 02:20:49 GMT):
A channel has already been created(name foo) ,then another org's peer want to join foo 。``` on node.js sdk i can use joinchannel() function ,but how can I done on javasdk ? thanks ``` ```

rofa (Fri, 22 Jun 2018 02:21:10 GMT):
A channel has already been created(name foo) ,then another org's peer want to join foo 。 on node.js sdk i can use joinchannel() function ,but how can I done on javasdk ? thanks

rofa (Fri, 22 Jun 2018 02:21:47 GMT):
A channel has already been created(name 'foo') ,then another org's peer want to join channel 'foo' 。 on node.js sdk i can use joinchannel() func ,but how can I done on javasdk ? thanks

rofa (Fri, 22 Jun 2018 02:22:44 GMT):
A channel has already been created(name 'foo') ,then another org's peer want to join channel 'foo' 。 on node.js sdk i can use joinchannel() func ,but what should i do on javasdk ? thanks

hoangntt (Fri, 22 Jun 2018 03:43:29 GMT):
Has joined the channel.

hoangntt (Fri, 22 Jun 2018 03:43:40 GMT):
Hi guys. I'm build a network with fabric hyperledger. I'm getting an error when I call invoke: [Error endorsing invoke: rpc error: code = Unknown desc = error executing chaincode: failed to execute transaction: timeout expired while executing transaction - ] I'm using chaincode with nodejs. Anyone can help?

hoangntt (Fri, 22 Jun 2018 03:43:40 GMT):
Hi guys. I'm building a network with fabric hyperledger. I'm getting an error when I call invoke: [Error endorsing invoke: rpc error: code = Unknown desc = error executing chaincode: failed to execute transaction: timeout expired while executing transaction - ] I'm using chaincode with nodejs. Anyone can help?

midhun14 (Fri, 22 Jun 2018 03:48:44 GMT):
What is a configuration block in Hyperldger Fabric?

hoangntt (Fri, 22 Jun 2018 03:50:44 GMT):
It's like the first network sample

hoangntt (Fri, 22 Jun 2018 03:51:46 GMT):
The instantiate is OK but invoke return timeout error. It's OK when I use chaincode in Golang

akoenig (Fri, 22 Jun 2018 06:02:06 GMT):
Hi, is there a way to query to blockchain directly and not the worldstate? For example I want to get all Transactions wich are sigend with the certifacte 0815.

poohitan (Fri, 22 Jun 2018 06:51:42 GMT):
Has joined the channel.

SumedhaBhatt (Fri, 22 Jun 2018 07:33:54 GMT):
Hi, I am trying to create a medical record system . How can I implement access in the project? Eg: The patient has permission access all records but the doctor can access only few records granted by the patient.

SumedhaBhatt (Fri, 22 Jun 2018 07:33:54 GMT):
Hi, I am trying to create a medical record system . How can I implement access in the project? Eg: The patient has permission to access all records but the doctor can access only the records granted to them by the patient.

chargome (Fri, 22 Jun 2018 08:01:14 GMT):
Has joined the channel.

dharuq (Fri, 22 Jun 2018 10:10:23 GMT):
Hello! Anyone knows how to use "github.com/hyperledger/fabric/core/chaincode/lib/cid"?

SumedhaBhatt (Fri, 22 Jun 2018 10:33:04 GMT):
``` [client-utils.js]: sendPeersProposal - Promise is rejected: Error: chaincode error (status: 500, message: Invalid Smart Contract function name.) at /Users/sumedhabhatt/fabric-samples/education/LFS171x/fabric-material/tuna-app/node_modules/grpc/src/node/src/client.js:554:15 Query has completed, checking results error from query = { Error: chaincode error (status: 500, message: Invalid Smart Contract function name.) at /Users/sumedhabhatt/fabric-samples/education/LFS171x/fabric-material/tuna-app/node_modules/grpc/src/node/src/client.js:554:15 code: 2, metadata: Metadata { _internal_repr: {} } } ```

SumedhaBhatt (Fri, 22 Jun 2018 10:33:17 GMT):
Can someone help me with what this means?

nvxtien (Fri, 22 Jun 2018 11:37:36 GMT):
Has joined the channel.

Sreesha (Fri, 22 Jun 2018 12:00:33 GMT):
Iam registering and enrolling peers and orderers by fabric ca server instead of using cryptogen. But when i tried to register a peer under org3 it threw an error as shown below: Error Code: 63 - Failed to get Affiliation: sql: no rows in result set

Sreesha (Fri, 22 Jun 2018 12:39:30 GMT):
After enrolling my peers and orderers through fabric ca server,how should i deploy my chaincode

Sreesha (Fri, 22 Jun 2018 12:40:08 GMT):
should i give commands like ./byfn.sh -m generate

Sreesha (Fri, 22 Jun 2018 12:40:25 GMT):
or directly can i up mu byfn

AMIL_SAJEEV (Fri, 22 Jun 2018 13:49:57 GMT):
hi all, How can i configure fabric-ca server to connect to mysql database?

ydmytriv (Fri, 22 Jun 2018 14:37:05 GMT):
Has joined the channel.

ydmytriv (Fri, 22 Jun 2018 14:37:37 GMT):
How everyone! Is it possible to add additional host to existing hyperledger fabric network?

ydmytriv (Fri, 22 Jun 2018 14:37:37 GMT):
Hi everyone! Is it possible to add additional host to existing hyperledger fabric network?

thePridge (Fri, 22 Jun 2018 16:21:31 GMT):
Has joined the channel.

MSKumar (Fri, 22 Jun 2018 16:41:49 GMT):
Has joined the channel.

krisava (Fri, 22 Jun 2018 16:54:28 GMT):
hi. I am getting the below error while starting the fabric. Any idea? grpc: addrConn.createTransport failed to connect to {peer0.crozier.irm.com:7051 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.18.0.16:7051: connect: connection refused". Reconnecting...

krisava (Fri, 22 Jun 2018 16:54:28 GMT):
hi. I am getting the below error while starting the fabric. Any idea? grpc: addrConn.createTransport failed to connect to {peer0.xxxx:7051 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.18.0.16:7051: connect: connection refused". Reconnecting...

thePridge (Fri, 22 Jun 2018 17:25:12 GMT):
Hi. Is there a FAQ or something? I would like to try out hyperledger and need to know if there are any cost implications for using it

krisava (Fri, 22 Jun 2018 19:11:55 GMT):
Hi. getting the below exact error on multiple attempts, and also on many vm's. any idea if there are any changes at the fabric docker? 2018-06-22 19:06:04.562 UTC [grpc] Printf -> DEBU 040 grpc: addrConn.createTransport failed to connect to {peer0.org1.example.com:7051 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.18.0.14:7051: connect: connection refused". Reconnecting...

RonaldBill (Sat, 23 Jun 2018 09:27:03 GMT):
Has joined the channel.

RonaldBill (Sat, 23 Jun 2018 09:34:16 GMT):
This Hyperledger Fabric implementation is something I haven't seen before anywhere http://bitly.com/2sRYBAQ Is this *open source*? I would like to build something on similar lines.

shahzaib86 (Sat, 23 Jun 2018 14:40:08 GMT):
Hi, i am getting this error when enrolling admin Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/shahzaib/first-network/client/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:909:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin

shahzaib86 (Sat, 23 Jun 2018 14:40:27 GMT):
can someone help me ?

wangjt (Sat, 23 Jun 2018 15:56:45 GMT):
Has joined the channel.

Mahesh1 2 (Sat, 23 Jun 2018 16:55:42 GMT):
Has joined the channel.

Smit95shah (Sat, 23 Jun 2018 18:24:07 GMT):
Has joined the channel.

Smit95shah (Sat, 23 Jun 2018 18:24:29 GMT):
Is there any place, where all the transactions logged? Is there any place, where all the transactions logged? How can I get log of transactions in a chaincode

Smit95shah (Sat, 23 Jun 2018 18:24:29 GMT):
Is there any place, where all the transactions logged?

ondar07 (Sat, 23 Jun 2018 21:22:47 GMT):
How to create a second channel with other chaincode on the same peers? For example, if i want to create another channel in fabcar sample? Should I create another genesis block for orderer? Could someone provide example?

SatyaNarayana76 (Sun, 24 Jun 2018 03:59:22 GMT):
Has joined the channel.

SatyaNarayana76 (Sun, 24 Jun 2018 04:00:25 GMT):
Why do you we need another consensus algorithm in hyperledger fabric blockchain when its orderer mechanism supports atomic broadcast of validated transaction blocks?

nitishbhardwaj19 (Sun, 24 Jun 2018 04:49:39 GMT):
Is shim-client-1.0.jar is uploaded to maven for writing chaincode in java? If so, what are the required configuration for it?

skazska (Sun, 24 Jun 2018 05:23:19 GMT):
Has joined the channel.

mengan (Sun, 24 Jun 2018 09:43:48 GMT):
Has joined the channel.

kaushalandpoudel (Sun, 24 Jun 2018 10:07:13 GMT):
Has joined the channel.

kaushalandpoudel (Sun, 24 Jun 2018 10:07:33 GMT):
Hello, I have been working on a project on Hyperledger Fabric application development which I have to submit to my college. I completed the development of application. So, now I need to present it as a fully functional real application. What I mean by that is, running the same application on two or more PC as organizations and participants, and showing the interaction. I am unable to find dependable solution on how to do so. Looking at my need, is starter plan the service that I need to take or is it not the exact service that will address my issue . If yes then how can I do so? What are the tools that the organizations and participants need to have? If no how can I achieve my goal with any other tool or method?

sine99 (Sun, 24 Jun 2018 11:47:24 GMT):
Has joined the channel.

sine99 (Sun, 24 Jun 2018 11:47:40 GMT):
Hii, how to create own Peer node. What I find is the peeradmin is provided with the dev installation.

fedez (Sun, 24 Jun 2018 18:50:29 GMT):
Has joined the channel.

mrdulin (Mon, 25 Jun 2018 02:45:02 GMT):
Has joined the channel.

mrdulin (Mon, 25 Jun 2018 02:45:11 GMT):
Hi guys. why github.com/hyperledger/fabric/core/chaincode/shim is 404

midhun14 (Mon, 25 Jun 2018 05:22:08 GMT):
How to setup multinode with HL Fabric

AMIL_SAJEEV (Mon, 25 Jun 2018 05:42:46 GMT):
Hi all, Any documentation on configuring MySQL against Fabric CA?

Khush1209 (Mon, 25 Jun 2018 05:50:07 GMT):
Hi guys..I am facing a problem while send 8 variables as argument in chaincode.

Khush1209 (Mon, 25 Jun 2018 05:51:53 GMT):
Hi guys.I am facing a problem while executing a peer command. I am trying to send 8 arguments in Init Function in chaincode.js

Khush1209 (Mon, 25 Jun 2018 05:53:20 GMT):
Hi guys.I am facing a problem while executing a peer command. I am trying to send 8 arguments in Init Function in chaincode.js. This is my command:- CORE_PEER_ADDRESS=peer0.org1.tech.com:7051 peer chaincode instantiate -o orderer.tech.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/tech.com/orderers/orderer.tech.com/msp/tlscacerts/tlsca.tech.com-cert.pem -C mychannel -n mychains -l node -v 1.0 -c '{"Args":["init","Ifsc", "SBIN0000059", "AccountHolder","Priyam","AccountNumber","10000009","Amount","45000"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"

Khush1209 (Mon, 25 Jun 2018 05:54:03 GMT):

Clipboard - June 25, 2018 11:23 AM

Khush1209 (Mon, 25 Jun 2018 05:55:29 GMT):

Clipboard - June 25, 2018 11:25 AM

Khush1209 (Mon, 25 Jun 2018 05:55:54 GMT):
can anyone help me with this error.

Khush1209 (Mon, 25 Jun 2018 05:57:35 GMT):
can anyone help me with this error? By observing the error it seems like this is hard coded. as i ahve not mentioned anywhere in chaincode.js to show error as "Incorrect number of arguments. Expecting 4"

Khush1209 (Mon, 25 Jun 2018 05:58:10 GMT):
can anyone help me with this error? By observing the error it seems like this is hard coded. as i have not mentioned anywhere in chaincode.js to show error as "Incorrect number of arguments. Expecting 4"

Khush1209 (Mon, 25 Jun 2018 06:00:48 GMT):
can anyone prefer me any documentation or link regarding sending and receiving data from chaincode.js to json file?

Sreesha (Mon, 25 Jun 2018 06:16:11 GMT):
I have generated certs for orderer peers using fabric-ca client.Can anyone help me on how to use these certs for creating byfn and deploy smart contracts

ahmadzafar (Mon, 25 Jun 2018 06:57:23 GMT):
i want to use stub.GetCreator function in node.js chaincode... I am using let address = await stub.GetCreator(); but it is giving me error. Unknown desc = transaction returned with failure: TypeError: stub.GetCreator is not a function. I am using it in Init function...

yulong12 (Mon, 25 Jun 2018 07:08:21 GMT):
Hi ,I have a question. During simulation of a transaction at an endorser, a read-write set is prepared for the transaction. The read set contains a list of unique keys and their committed versions that the transaction reads during simulation. The write set contains a list of unique keys (though there can be overlap with the keys present in the read set) and their new values that the transaction writes. so how can I get the read-write set? I want to get the read-write set.but I don't know how to do. who can help me?

Sreesha (Mon, 25 Jun 2018 07:08:51 GMT):
What is root and intermediate cas

sheetal-hlf (Mon, 25 Jun 2018 07:09:16 GMT):
Has joined the channel.

Sreesha (Mon, 25 Jun 2018 07:09:24 GMT):
are they part of fabric-ca-server or fabricca-client

sheetal-hlf (Mon, 25 Jun 2018 07:09:58 GMT):
Hello All, could anyone please let me know if Hyperledger fabric V0.5 images are still available for use?

sheetal-hlf (Mon, 25 Jun 2018 07:10:53 GMT):
HLF v0.5 images for peer, CA and orderer

pankajcheema (Mon, 25 Jun 2018 07:14:57 GMT):
Hi Fabric Experts

pankajcheema (Mon, 25 Jun 2018 07:15:02 GMT):
Hi have a question

pankajcheema (Mon, 25 Jun 2018 07:16:20 GMT):
What does this endorsement policy means `"OR ('Org1MSP.peer')"`. Does it means: If one a single peer or `ORG1MSP` endorse then it is good to go?

pankajcheema (Mon, 25 Jun 2018 07:17:19 GMT):
then `"OR ('Org1MSP.peer', 'ORG2MSP.peer')"`. Does it means: If one a single peer of `ORG1MSP` OR `ORG2MSP` endorse then it is good to go?

pankajcheema (Mon, 25 Jun 2018 07:17:33 GMT):
Can any expert explain the concept here?

pankajcheema (Mon, 25 Jun 2018 07:18:51 GMT):
Here it says ```-P "OR ('Org0MSP.peer','Org1MSP.peer')". This means that we need “endorsement” from a peer belonging to Org1 OR Org2 (i.e. only one endorsement). If we changed the syntax to AND then we would need two endorsements.```

pankajcheema (Mon, 25 Jun 2018 07:19:25 GMT):
Here Org1 can have multiple peers. So does all the peers of Org1 is required to endorse?

naveedh27 (Mon, 25 Jun 2018 08:03:43 GMT):
Is it possible to Join 2 assets in a query?

akoenig (Mon, 25 Jun 2018 08:07:34 GMT):
@naveedh27 what is your usecase? Hyperledger is noSQL

naveedh27 (Mon, 25 Jun 2018 08:11:23 GMT):
I have a vehicle Asset and respective Insurance asset. I need to get both details in one REST call. If there are N vehicles, I have to request (n+1) calls to get the details. How can I get all the details in one 1 Rest call?

naveedh27 (Mon, 25 Jun 2018 08:11:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oLe2ZZt7Ju89ZSu6F) @akoenig

FORFIRM (Mon, 25 Jun 2018 08:28:22 GMT):
Has joined the channel.

FORFIRM (Mon, 25 Jun 2018 08:29:21 GMT):
hi Guys what are the consensus algorithms used in fabric hyperledger and what are their characteristics. Is there a centralized consensum algorithm such that only one Peer can authorize writing to the ledger? Thank you

FORFIRM (Mon, 25 Jun 2018 08:29:21 GMT):
hi Guys what are the consensus algorithms used in fabric hyperledger and what are their characteristics. Is there a centralized consensum algorithm such that only one Peer can authorize writing to the ledger?

ddy110 (Mon, 25 Jun 2018 08:32:06 GMT):
Has joined the channel.

ddy110 (Mon, 25 Jun 2018 08:37:04 GMT):
Hi I have a question ``` I am installing Fabric Sample and binaries on Ubuntu by using`curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0-rc1 ```` but it returns `curl: (56) Recv failure: ```` Can anyone tell me how to do that? ``` ``` ```

RonaldBill (Mon, 25 Jun 2018 08:51:17 GMT):
Do we have the code available for this amazing Fabric implementation demo? http://bit.ly/2sRYBAQ I want to create something very similar, please help!

adopicogfi (Mon, 25 Jun 2018 09:23:32 GMT):
Has joined the channel.

Shubham-koli (Mon, 25 Jun 2018 09:55:27 GMT):
Hi everybody! I read that Fabric uses couchDB. is it possible to interact CouchDB directly? if yes then why? is it secure? data is stored in encrypted format or plain text?

GowriR (Mon, 25 Jun 2018 10:24:38 GMT):
root@seil-sandbox:/home/seil/hypledpoc/fabric-samples/balance-transfer# ./testAPIs.sh POST request Enroll on Org1 ... {"success":false,"message":"failed TypeError: hfc.loadFromConfig is not a function"}

GowriR (Mon, 25 Jun 2018 10:24:58 GMT):
I am getting this error on running the balance-transfer example

GowriR (Mon, 25 Jun 2018 10:24:58 GMT):
Hi all, I want to do the following using the fabric node sdk

FORFIRM (Mon, 25 Jun 2018 10:29:36 GMT):
I have a question regarding consensus. I read a lot about consensus in fabric but its a little bit confusing. 1. The default is Kafka I guess? 2. There are two others Solo and PBFT. 3. Others like BFT Smart, SBFT are being developed but not available yet. Is this right? 4. What are the differences between PBFT and SBFT 5. which means that SBFT will exploit RAFT? RAFT is a consensus engine or what exactly? Thanks

ahmadzafar (Mon, 25 Jun 2018 10:57:58 GMT):
Hi All, Have you any example of chaincode in which you use stub.GetCreator for node.js chaincode? If any one have, can you please share or explain it to me. I am unable to use return parameters of this GetCreator. I want to get CommonName or certificate of user. Thanks in advance..

SaraEmily (Mon, 25 Jun 2018 11:27:24 GMT):
@FORFIRM Hi! 1) No the default is SOLO but that is, as far as I understand, not intended for production but only for testing 2&3) I've not heard of any BFT that's official from Hyperledger, there are at least one paper that have implemented this on their own, here is one example: https://github.com/jcs47/hyperledger-bftsmart The progress of the Fabric BFT-based ordering service is tracked here: https://jira.hyperledger.org/browse/FAB-33 4) So they are both Byzantine fault tolerant algoritim, the S in SBFT stands for Simplified and the P in PBFT stands for practical, I think it's easier for you to dig down a bit more in each to understand the differences and compromises :) Unless someone else here has a really good explanation 5) RAFT is a consensus algorithm, read more here: https://www.usenix.org/conference/atc14/technical-sessions/presentation/ongaro

SaraEmily (Mon, 25 Jun 2018 11:27:24 GMT):
@FORFIRM Hi! 1) No the default is SOLO but that is, as far as I understand, not intended for production but only for testing 2&3) I've not heard of any BFT that's official from Hyperledger, there are at least one paper that have implemented this on their own, here is one example: https://github.com/jcs47/hyperledger-bftsmart The progress of the Fabric BFT-based ordering service is tracked here: https://jira.hyperledger.org/browse/FAB-33 4) So they are both Byzantine fault tolerant algoritim, the S in SBFT stands for Simplified and the P in PBFT stands for practical, I think it's easier for you to dig down a bit more in each to understand the differences and compromises :) Unless someone else here has a really good explanation 5) RAFT is a consensus algorithm, read more here: https://www.usenix.org/conference/atc14/technical-sessions/presentation/ongaro EDIT: Saw your question higher up and for a deeper understanding of Fabric and ordering I think this paper is a really good start: https://dl.acm.org/citation.cfm?id=3190538

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get..

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get.. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8)\n at readCallback (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12)" [2018-06-25 11:55:43.712] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/HLFabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:136:21) at ClientDuplexStream.emit (events.js:182:13) at ClientDuplexStream._emitStatusIfDone (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:271:12) at ClientDuplexStream._readsDone (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8) at readCallback (/home/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12) (node:4008) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/HLFabric/fabric-samples/balance-transfer/app/create-channel.js:65:9) at process._tickCallback (internal/process/next_tick.js:68:7) (node:4008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:4008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. E0625 11:55:44.705466082 4008 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. What is causing this error and how do i rectify it?I have already tried generating new certificates which didn't work. #fabric-chaincode-dev #general #fabric-questions

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get.. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8)\n at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12)" [2018-06-25 11:55:43.712] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:136:21) at ClientDuplexStream.emit (events.js:182:13) at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:271:12) at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8) at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12) (node:4008) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/375621/HLFabric/fabric-samples/balance-transfer/app/create-channel.js:65:9) at process._tickCallback (internal/process/next_tick.js:68:7) (node:4008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:4008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. E0625 11:55:44.705466082 4008 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. What is causing this error and how do i rectify it?I have already tried generating new certificates which didn't work.

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get.. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8)\n at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12)" [2018-06-25 11:55:43.712] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:136:21) at ClientDuplexStream.emit (events.js:182:13) at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:271:12) at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8) at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12) (node:4008) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/375621/HLFabric/fabric-samples/balance-transfer/app/create-channel.js:65:9) at process._tickCallback (internal/process/next_tick.js:68:7) (node:4008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:4008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. E0625 11:55:44.705466082 4008 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. What is causing this error and how do i rectify it?I have already tried generating new certificates which didn't work. #fabric-questions #fabric-chaincode-dev #general

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get.. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8)\n at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12)" [2018-06-25 11:55:43.712] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:136:21) at ClientDuplexStream.emit (events.js:182:13) at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:271:12) at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8) at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12) (node:4008) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/375621/HLFabric/fabric-samples/balance-transfer/app/create-channel.js:65:9) at process._tickCallback (internal/process/next_tick.js:68:7) (node:4008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:4008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. E0625 11:55:44.705466082 4008 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. What is causing this error and how do i rectify it?I have already tried generating new certificates which didn't work. #fabric-chaincode-dev #general

hyperlearner (Mon, 25 Jun 2018 11:57:39 GMT):
I'm trying to deploy HL fabric in aws server. when I run the testAPIs.sh,while creating a channel,this is the error I get.. error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8)\n at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12)" [2018-06-25 11:55:43.712] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:136:21) at ClientDuplexStream.emit (events.js:182:13) at ClientDuplexStream._emitStatusIfDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:271:12) at ClientDuplexStream._readsDone (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:236:8) at readCallback (/home/375621/HLFabric/fabric-samples/balance-transfer/node_modules/grpc/src/client.js:296:12) (node:4008) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: SERVICE_UNAVAILABLE at Object.createChannel (/home/375621/HLFabric/fabric-samples/balance-transfer/app/create-channel.js:65:9) at process._tickCallback (internal/process/next_tick.js:68:7) (node:4008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:4008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. E0625 11:55:44.705466082 4008 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. What is causing this error and how do i rectify it?I have already tried generating new certificates which didn't work. #fabric-chaincode-dev #general #fabric-questions

siddharth96 (Mon, 25 Jun 2018 12:45:11 GMT):
Hello I have been trying to set up a basic network for a client. Using the first-network structure, I am able to bring up the network. However, when I run a query command, Fabric throws the error

siddharth96 (Mon, 25 Jun 2018 12:45:13 GMT):
fabric-samples/first-network$ peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' 2018-06-25 12:28:23.401 UTC [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

siddharth96 (Mon, 25 Jun 2018 12:46:15 GMT):
Been setting us back for a while now! Would appreciate any help! Thanks!

d8bhatta (Mon, 25 Jun 2018 13:31:04 GMT):
Hello All, I have couple of questions about data we stored in fabric, its being said that we store data in fabric in key, value format. I can see there is delete feature in sample examples, how can we delete data from blockchain? I guess data is stored in stateDB like couchdb. now my question, how can we create transaction in fabric? Note: I have successfully ran sample examples like A=100, B=200, query, move... can somebody please help me to understand this, thank you

etrn (Mon, 25 Jun 2018 13:47:58 GMT):
Hey guys, I've made an app with HL Composer and now I've checked docker containers and there is no Endorsers. Could anyone explain me why there is no Endorsers or maybe it is inside the peer or how actually does it work?

etrn (Mon, 25 Jun 2018 13:51:08 GMT):
And does anyone added an external node to your network? I mean that I've started HL fabric and deployed to the Azure and now one of my colleagues wants to join my network, so how could he start and connect to my network for example from his AWS?

FORFIRM (Mon, 25 Jun 2018 15:33:32 GMT):
Is it true that the P/S-BFT are not yet implemented in fabric even is pluggable? Is it true that only SOLO and Kafka/ZK consensum algorithms, are natively supported in fabric?

MihirChauhan (Mon, 25 Jun 2018 15:56:31 GMT):
Has joined the channel.

MihirChauhan (Mon, 25 Jun 2018 15:59:06 GMT):
Hello! Need help.. Hyperledger Fabric multi-ledger support is great. But, has anyone come across how to remove one particular channel/ledger?

frustrated-chain (Mon, 25 Jun 2018 21:38:03 GMT):
rest api

Santosh369 (Mon, 25 Jun 2018 21:54:49 GMT):
Hi! I am currently trying to get information about the chain length, I am using the node SDK to query the qscc chaincode. The GetChainInfo function returns a Uint8Array, does anyone know how I can parse the data into a protobuf message inside my node js app or if I can modify the qscc chaincode such that it returns a human readable format?

yulong12 (Tue, 26 Jun 2018 01:53:35 GMT):
Hi everyone. From hyperledger fabric node sdk,how can I get read-write-set? from this websit, https://fabric-sdk-node.github.io/global.html#ProposalResponse__anchor it says "A protobuf message that gets returned by endorsing peers on proposal requests. The peer node runs the target chaincode, as designated by the proposal, and decides on whether to endorse the proposal or not, and sends back the endorsement result along with the read and write sets inside the proposal response message." but I output all the propoal message.it don't have read-write-set. so who can help me?

yulong12 (Tue, 26 Jun 2018 02:22:20 GMT):
When client submit a transaction to endorsing peers, they will return the endorsing result which contains the read-write set. I have learned how to invoke a transaction based on fabric node sdk. I also checked the fabric node sdk document in https://fabric-sdk-node.github.io/global.html#ProposalResponse__anchor I found that the endorsing result for a transaction contain the following content. ``` proposalResponses[0].response.status, proposalResponses[0].response.message, proposalResponses[0].response.payload, proposalResponses[0].endorsement.signature)); ``` read-write set structure is as following: `type TxReadWriteSet struct { NsRWs []*NsReadWriteSet } type NsReadWriteSet struct { NameSpace string Reads []*KVRead Writes []*KVWrite RangeQueriesInfo []*RangeQueryInfo } ` But how can I to get the read-write set from endorsing result?

kdnmih (Tue, 26 Jun 2018 02:54:55 GMT):
I am trying to follow the Hyperldeger Fabic Samples sections.

kdnmih (Tue, 26 Jun 2018 02:55:18 GMT):
``` curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 ``` keep download 1.2.0-rc1

kdnmih (Tue, 26 Jun 2018 02:55:18 GMT):
```curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0``` keep download 1.2.0-rc1

kdnmih (Tue, 26 Jun 2018 02:55:54 GMT):
Why it did not follow `-s 1.1.0`?

siddharth96 (Tue, 26 Jun 2018 03:01:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CSryL8TGuTRQWWAKt) Its all good we managed to resolve this by manually creating artefacts and setting the appropriate path for environment variables.

govinda-attal (Tue, 26 Jun 2018 04:32:24 GMT):
Hello All, Could you please help me find the right tag/version of the fabric-couchdb docker image that should be used along with Fabric 1.1

govinda-attal (Tue, 26 Jun 2018 04:32:25 GMT):
https://hub.docker.com/r/hyperledger/fabric-couchdb/tags/

govinda-attal (Tue, 26 Jun 2018 04:33:05 GMT):
There seems to be only 1.1.0-preview

govinda-attal (Tue, 26 Jun 2018 04:33:25 GMT):
Where as others typically had tags 1.1.0

midhun14 (Tue, 26 Jun 2018 04:34:44 GMT):
can we have multinode setup with HL Fabric?

sampath06 (Tue, 26 Jun 2018 05:33:22 GMT):
I am looking for some information on the consensus algorithms in fabric. Mainly for the design considerations for moving from pbft to kafka in 1.0

MihaiAA (Tue, 26 Jun 2018 05:35:33 GMT):
Hello. Instantiating a node chaincode(behind a proxy) gives the error below. Is there a way to configure npm inside the generated ccenv container? Or another solution to the problem? $>docker logs frosty_heisenberg npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-shim failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443

yulong12 (Tue, 26 Jun 2018 05:38:06 GMT):
hi everyone. I use `proposalResponse[0].response.payload` to get read-write set.but the output is``` j��{�lH[������+�>E��q�6S�,�� �� dataAsset1�� 0name~hashvalue~ownerfilenamehashvalueowner1m{"Name":"filename","HashValue":"hashvalue","Owner":"owner1","ModifyTime":"2018-06-26 05:37:14","Desc":"desc"} lscc dataAsset�~{"Name":"filename","HashValue":"hashvalue","Owner":"owner1","Modifytime":"2018-06-26 05:37:14","Desc":"desc","State":"SUCESS"}" dataAsset11.0 ``` so how can I get the correct results?

yulong12 (Tue, 26 Jun 2018 05:40:07 GMT):
this site said *https://lists.hyperledger.org/g/fabric/message/3435?p=,,,20,0,0,0::relevance,,posterid%3A951621,20,2,0,17714952 * the output should like ``` { "proposal_hash": "6389ebbccb6e5e6122013baca057aa297e61e32a57136bbc9f44a9854db1e972", "extension": { "results": { "data_model": 0, "ns_rwset": [ { "namespace": "end2endnodesdk", "rwset": { "reads": [ { "key": "a", "version": { "block_num": "2144", "tx_num": "0" } }, { "key": "b", "version": { "block_num": "2144", "tx_num": "0" } } ], "range_queries_info": [], "writes": [ { "key": "a", "is_delete": false, "value": "-214300" }, { "key": "b", "is_delete": false, "value": "214600" } ] } }, { "namespace": "lscc", "rwset": { "reads": [ { "key": "end2endnodesdk", "version": { "block_num": "1", "tx_num": "0" } } ], "range_queries_info": [], "writes": [] } } ] }, "events": { "chaincode_id": "", "tx_id": "", "event_name": "", "payload": { "type": "Buffer", "data": [] } }, "response": { "status": 200, "message": "", "payload": "move succeed" }, "chaincode_id": { "path": "", "name": "end2endnodesdk", "version": "v0" } } } ```

yulong12 (Tue, 26 Jun 2018 05:40:32 GMT):
so who can help me?

suryasuresh06 (Tue, 26 Jun 2018 05:52:06 GMT):
Hi, I had a small doubt abt the endorsement process. When hyper ledger speaks about endorsements by multiple peers, does it happen automatically. I ran a network on 2 computers but never encountered a step where I had to endorse a transaction. Could someone clear my doubt, though it seems trivial:sweat_smile:. Can u explain how endorsement works

SumedhaBhatt (Tue, 26 Jun 2018 06:16:09 GMT):
How can we provide access in hyperledger fabric? ex: If there is a medical record system and we want the patient to provide access for the report to doctor1 and not to doctor2.

Shubham-koli (Tue, 26 Jun 2018 06:34:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CXiQdfunXdr4gN3a7) @SumedhaBhatt You can write smart contracts which grant the access to a doctor of your choice. you need to put a flag in the patient's block and manage it as patient grants and revokes access

vashusha (Tue, 26 Jun 2018 06:38:58 GMT):
Has joined the channel.

vashusha (Tue, 26 Jun 2018 06:39:21 GMT):
Hello guys Nice to meet you all here We deployed fabric on docker container. We created network and added smart contract, but Smart contract is deleted once the server is restarted

vashusha (Tue, 26 Jun 2018 06:42:24 GMT):
Can someone tell me how this issue can be fixed?

vashusha (Tue, 26 Jun 2018 06:42:25 GMT):
Thanks

SumedhaBhatt (Tue, 26 Jun 2018 06:44:11 GMT):
@Shubham-koli thankyou!

vashusha (Tue, 26 Jun 2018 06:44:34 GMT):
@Shubham-koli

dannychen (Tue, 26 Jun 2018 06:55:47 GMT):
Has joined the channel.

dannychen (Tue, 26 Jun 2018 06:59:33 GMT):
can we start the business network manually? rather than using composer network start, cause there is **NPM ERR! code EAI AGAIN**

RakeshKumarzs (Tue, 26 Jun 2018 07:00:33 GMT):
Hi , I am facing this issue .. could you please help .. its urgent and needs to be resolved as soon as possible .. rk@ip-xxxxxxx:~/tutorial-network$ composer archive create -t dir -n . internal/modules/cjs/loader.js:596 throw err; ^ Error: Cannot find module './api' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15) at Function.Module._load (internal/modules/cjs/loader.js:520:25) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/usr/local/lib/node_modules/composer-cli/node_modules/node-report/index.js:3:13) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3)

chainFlux (Tue, 26 Jun 2018 07:35:04 GMT):
Has joined the channel.

chainFlux (Tue, 26 Jun 2018 07:36:21 GMT):
Hi i successfully run the hyperledger fabric tuna app and then i want the details how to create the wallet in hyperledger fabric if you have any ideas

anjalinaik (Tue, 26 Jun 2018 07:53:27 GMT):
hi All..can anyboy please help me understand below error? `Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet`

harshitraghav (Tue, 26 Jun 2018 07:57:34 GMT):
Has joined the channel.

harshitraghav (Tue, 26 Jun 2018 07:59:00 GMT):
Hi while registering chain code I'm having an error * ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 12 UNIMPLEMENTED: unknown service protos.ChaincodeSupport\n at createStatusError*

harshitraghav (Tue, 26 Jun 2018 07:59:00 GMT):
Hi while registering chain code I'm having an error * ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 12 UNIMPLEMENTED: unknown service protos.ChaincodeSupport\n at createStatusError*

Shubham-koli (Tue, 26 Jun 2018 08:10:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DoDBWEchp5JnyT7in) @anjalinaik can you post the list of your running docker images?(command - docker ps)

tsnyder (Tue, 26 Jun 2018 08:14:29 GMT):
I am reviewing the Private Data documents for the functionality arriving in V1.2. One thing I can not find is Private Data Collection changes as part of an Update Channel transaction. Can Update Channel transactions be used to generate Private Data collections on as as needed basis?

anjalinaik (Tue, 26 Jun 2018 08:48:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pH5TnzSimLScArCky) @Shubham-koli Hi thankyou for your reply. i am running orderers in kafka zookeeper ensemble and all my containers are up and running.

DivyaAgrawal (Tue, 26 Jun 2018 08:52:16 GMT):
Hi all On running make dist-clean all on release-1.1 I get following error Step 1/10 : FROM hyperledger/fabric-buildenv:x86_64-1.1.1-snapshot-c257bb3 pull access denied for hyperledger/fabric-buildenv, repository does not exist or may require 'docker login' Makefile:305: recipe for target 'build/image/testenv/.dummy-x86_64-1.1.1-snapshot-ff5e861' failed make: *** [build/image/testenv/.dummy-x86_64-1.1.1-snapshot-ff5e861] Error 1

DivyaAgrawal (Tue, 26 Jun 2018 08:52:32 GMT):
Can anyone please help with this . TIA

DivyaAgrawal (Tue, 26 Jun 2018 08:53:59 GMT):
I could find the following JIRA for this. But am not able to understand , how can I resolve this.

DivyaAgrawal (Tue, 26 Jun 2018 08:54:03 GMT):
https://jira.hyperledger.org/browse/FAB-8354

yulong12 (Tue, 26 Jun 2018 08:56:43 GMT):
hi I have a question ,how to decode proposalResponse[0].payload?

GowriR (Tue, 26 Jun 2018 09:10:02 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n fabcar -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE"

GowriR (Tue, 26 Jun 2018 09:10:15 GMT):
i want to do this with the node sdk

GowriR (Tue, 26 Jun 2018 09:10:50 GMT):
how do it provide the parameters using the SDK "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp"

GowriR (Tue, 26 Jun 2018 09:10:50 GMT):
how do it provide the parameters using the SDK "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" ?

GowriR (Tue, 26 Jun 2018 09:10:50 GMT):
how do it provide the parameters using the SDK "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" ?

GowriR (Tue, 26 Jun 2018 09:20:26 GMT):
i am currently getting the following error with the api

GowriR (Tue, 26 Jun 2018 09:20:27 GMT):
Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))

chainFlux (Tue, 26 Jun 2018 09:24:04 GMT):
hai guys how to create the wallet in fabric give the some idea to me

HoneyShah (Tue, 26 Jun 2018 09:24:34 GMT):
Hello, Can anyone help with multiple orderer(with kafka) setup please? How can I check that my all orderers are working?

ArthurBartoli (Tue, 26 Jun 2018 09:38:15 GMT):
Hey ! I was trying to deploy a business network in playground, all seemed fine and I had no error message.

ArthurBartoli (Tue, 26 Jun 2018 09:38:47 GMT):
But as soon as I deployed it displayed "syntax error: unexpected token", then kicked me out of the business network. I just can't access it now.

ArthurBartoli (Tue, 26 Jun 2018 09:38:52 GMT):
Anybody has a solution ?

ArthurBartoli (Tue, 26 Jun 2018 09:52:51 GMT):
Also if I try to delete it it's the same

prtk418 (Tue, 26 Jun 2018 10:08:21 GMT):
Has joined the channel.

hayato (Tue, 26 Jun 2018 10:09:37 GMT):
Hello, I have a minor fix proposal (https://jira.hyperledger.org/browse/FAB-10862) to fabric-samples/basic-network that applies to all releases. Should I create multiple JIRA issues or just link to a single one? (Thanks @rjones for your initial guidance).

rjones (Tue, 26 Jun 2018 10:09:38 GMT):
Has joined the channel.

Sevvandhi (Tue, 26 Jun 2018 10:14:11 GMT):
Has joined the channel.

dulev (Tue, 26 Jun 2018 10:49:44 GMT):
Has joined the channel.

dulev (Tue, 26 Jun 2018 10:50:00 GMT):
Hello, I am having a problem understanding how read/write sets work when calling chaincode from other chaincode. I have two chaincodes cc1 and cc2. Chaincode cc2 is instantiated with PutState("KEY1", "VALUE1"). When I invoke cc1 which calls cc2, I can get "VALUE1" using the success payload of cc2 but I can't get it directly using GetState("KEY1") from cc1. The documentation of the InvokeChaincode function states that "if the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction". What does it mean to "add the called read set and write set to the calling transaction"? Am I missing something? Could you please help? :)

dulev (Tue, 26 Jun 2018 10:50:00 GMT):
Hello, I am having a problem understanding how read/write sets work when calling chaincode from other chaincode. I have two chaincodes cc1 and cc2. Chaincode cc2 is instantiated with PutState("KEY1", "VALUE1"). When I invoke cc1 which calls cc2, I can get "VALUE1" using the success payload of cc2 but I can't get it directly using GetState("KEY1") from cc1. The documentation of the InvokeChaincode function states that "if the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction". What does it mean to "add the called read set and write set to the calling transaction"? Am I missing something? Could you please help? :)

dulev (Tue, 26 Jun 2018 10:50:00 GMT):
Hello, I am having a problem understanding how read/write sets work when calling chaincode from other chaincode. I have two chaincodes cc1 and cc2. Chaincode cc2 is instantiated with PutState("KEY1", "VALUE1"). When I invoke cc1 which calls cc2, I can get "VALUE1" using the success payload of cc2 but I can't get it directly using GetState("KEY1") from cc1. The documentation of the InvokeChaincode function states that "if the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction". [](https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStubInterface) What does it mean to "add the called read set and write set to the calling transaction"? Am I missing something? Could you please help? :)

dulev (Tue, 26 Jun 2018 10:50:00 GMT):
Hello, I am having a problem understanding how read/write sets work when calling chaincode from other chaincode. I have two chaincodes cc1 and cc2. Chaincode cc2 is instantiated with PutState("KEY1", "VALUE1"). When I invoke cc1 which calls cc2, I can get "VALUE1" using the success payload of cc2 but I can't get it directly using GetState("KEY1") from cc1. The documentation of the InvokeChaincode function states that "if the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction". https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStubInterface What does it mean to "add the called read set and write set to the calling transaction"? Am I missing something? Could you please help? :)

dulev (Tue, 26 Jun 2018 10:50:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Rwoi8YmHSogP6AwgQ)

Dark_Knight (Tue, 26 Jun 2018 11:21:29 GMT):
Has joined the channel.

Dark_Knight (Tue, 26 Jun 2018 11:21:39 GMT):
Hello Everyone, I was reading the documents for Hyperledger fabric to add a new organization and a peer to the network. I could not get the answer as which peer ledger from the same channel will be used for this new joining peer and where is it specified which ledger to use? Also, how to make sure that the batching process in Ordering service is deterministic? Any help will be greatly appreciated.

pd93 (Tue, 26 Jun 2018 11:55:50 GMT):
So after upgrading to Fabric v1.2.0-rc1, I'm getting the error `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` while creating my channel. I've read through this comments/answers on [this S/O post|https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric], but I still can't work out what config options I need to check? and why exactly my config worked on 1.1, but not 1.2

pd93 (Tue, 26 Jun 2018 11:55:50 GMT):
So after upgrading to Fabric v1.2.0-rc1, I'm getting the error `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` while creating my channel. I've read through this comments/answers on \href{https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric}{this S/O post}, but I still can't work out what config options I need to check? and why exactly my config worked on 1.1, but not 1.2

pd93 (Tue, 26 Jun 2018 11:55:50 GMT):
So after upgrading to Fabric v1.2.0-rc1, I'm getting the error `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` while creating my channel. I've read through this comments/answers on [this S/O post](https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric), but I still can't work out what config options I need to check? and why exactly my config worked on 1.1, but not 1.2

lislunev (Tue, 26 Jun 2018 12:10:08 GMT):
Hello everyone, I'm trying to start fabcar with nodejs chaincode, and every time I use startFabric.sh I see Error "Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 7f77823c6d7b9522530649f6ae5e58b1175bde95ca226f556aafd226b9eb8147: timeout expired while starting chaincode fabcar:1.0 for transaction 7f77823c6d7b9522530649f6ae5e58b1175bde95ca226f556aafd226b9eb8147". Does anyone know how to fix it?

Aniket-Engg (Tue, 26 Jun 2018 12:41:56 GMT):
Has joined the channel.

Aniket-Engg (Tue, 26 Jun 2018 12:42:20 GMT):
Hello, i am running `CORE_CHAINCODE_ID_NAME="mycc:v0" npm start -- --peer.address grpc://172.18.0.3:7051` to register a chaincode with peer, it throws error : `ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Connect Failed` Please suggest

Aniket-Engg (Tue, 26 Jun 2018 12:43:30 GMT):
my chaincode is in Node.js

SaraEmily (Tue, 26 Jun 2018 12:56:16 GMT):
@Dark_Knight Hi, what do you mean by peer ledger? There are one ledger per channel and each peer that are a member of that channel has a copy of the ledger, read more here: http://hyperledger-fabric.readthedocs.io/en/release-1.1/ledger.html

Bit 63 (Tue, 26 Jun 2018 13:03:21 GMT):
Has joined the channel.

Khush1209 (Tue, 26 Jun 2018 13:04:25 GMT):
Hi all. I am getting error while executing peer command for queryCar method, In fabcar.I am writing chaincode in node.Js . the command which i had written is : peer chaincode query -C mychannel -n mydemo14 -c '{"Args":["queryCar","CAR10"]}' . And while using getState function also i am getting error.

Khush1209 (Tue, 26 Jun 2018 13:05:21 GMT):

Clipboard - June 26, 2018 6:34 PM

Dark_Knight (Tue, 26 Jun 2018 13:06:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iAM3paxhNGYS5YzeF) @SaraEmily Hi Sara, Since every peer maintains a copy of the ledger and does the validation before appending the block to the ledger, I assume that every peer has its own copy of the ledger. So if a new peer is added in the channel, how do we say which ledger is the right one and which one has to be used?

Khush1209 (Tue, 26 Jun 2018 13:06:43 GMT):

Clipboard - June 26, 2018 6:36 PM

Dark_Knight (Tue, 26 Jun 2018 13:08:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TAtPeqsmEtE3eMrWY) Is there a concept of channel ledger?

Bit 63 (Tue, 26 Jun 2018 13:13:08 GMT):
Dear all, I've tried to find an aswer by searching within this chat... also in internet. Here I found two similar issues without any response. Tuna-app sample I do call "query-all-tuna" while calling it I'm getting: `error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/scalr/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/scalr/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/scalr/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/scalr/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' } `

mandeville135 (Tue, 26 Jun 2018 14:07:40 GMT):
Has joined the channel.

Mari499 (Tue, 26 Jun 2018 14:11:13 GMT):
Has joined the channel.

Mari499 (Tue, 26 Jun 2018 14:11:17 GMT):
Curious about what people think on Jimmy Sony's perspective of the Hyperledger ordering service being a single point of failure and making these centralized projects: http://unchainedpodcast.co/jimmy-song-on-why-bitcoin-will-be-the-winning-cryptocurrency-ep69

nfrunza (Tue, 26 Jun 2018 15:58:49 GMT):
release 1.2

nfrunza (Tue, 26 Jun 2018 15:59:19 GMT):
please ignore, i was searching the chat

nfrunza (Tue, 26 Jun 2018 16:11:14 GMT):
Hello, who knows the approximate date for the release 1.2 of fabric-client, -ca sdk for node ?

dwong (Tue, 26 Jun 2018 18:26:19 GMT):
Has joined the channel.

dwong (Tue, 26 Jun 2018 18:27:14 GMT):
Requested by Hyperledger-bot on #general to redirect my question here: Any information beside the general article below regarding the private transaction usage? https://www.ibm.com/developerworks/cloud/library/cl-blockchain-private-confidential-transactions-hyperledger-fabric-zero-knowledge-proof/index.html

Waqas Burney (Tue, 26 Jun 2018 19:06:37 GMT):
PutPrivateData

Miruthan (Tue, 26 Jun 2018 19:33:04 GMT):
Has joined the channel.

Miruthan (Tue, 26 Jun 2018 19:33:21 GMT):
How to create new channel between 5 organization in the network ?

DavidPark (Tue, 26 Jun 2018 23:00:48 GMT):
Has joined the channel.

davidhu (Wed, 27 Jun 2018 01:01:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tuAbcCWyxJTa5rxKj) @Miruthan you may take a look at this tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html

elvintzw (Wed, 27 Jun 2018 04:23:35 GMT):
Has joined the channel.

elvintzw (Wed, 27 Jun 2018 04:26:01 GMT):
Hello, is the fork jcs47/fabric being merged back to hyperledger/fabric? if not, will there be any intention for that?

MahimaManik (Wed, 27 Jun 2018 06:19:10 GMT):
Has joined the channel.

MKQaimari (Wed, 27 Jun 2018 06:24:24 GMT):
Has joined the channel.

MKQaimari (Wed, 27 Jun 2018 06:24:42 GMT):
nginx

MKQaimari (Wed, 27 Jun 2018 06:29:59 GMT):
https://jira.hyperledger.org/browse/FAB-10885

MKQaimari (Wed, 27 Jun 2018 06:37:47 GMT):
What would it take to upgrade go-grpc bundled with fabric-peer and fabric-orderer? We raised an issue today where almost 50% of grpc requests through an Nginx proxy are returning Bag Gateway 502 https://jira.hyperledger.org/browse/FAB-10885

prtk418 (Wed, 27 Jun 2018 07:16:14 GMT):
Hello guys , i am new to hyperledger, i need someone to help me with giving me some insights on the architecture for my project, it would be highly appreciated,

prtk418 (Wed, 27 Jun 2018 07:18:14 GMT):
what i am trying to build is, storing some sensitive data( customer's ) in ipfs, and then store the hash of the file with customer name, email in blockchain. the data must be accessed only by the organization for which i am working and banks ( the data is being shared from the customer to the bank via this org.).

ashufalcon (Wed, 27 Jun 2018 07:37:26 GMT):
i'm trying to install fabric framework on my mac $ npm install -g composer-cli For above command i'm getting following error :- npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /Users/ashu/.npm/_logs/2018-06-27T07_35_03_943Z-debug.log any suggestions ?

Bency (Wed, 27 Jun 2018 08:09:06 GMT):
Has joined the channel.

prtk418 (Wed, 27 Jun 2018 08:12:16 GMT):
Hello guys , i am new to hyperledger, i need someone to help me with giving me some insights on the architecture for my project, it would be highly appreciated, what i am trying to build is, storing some sensitive data( customer's ) in ipfs, and then store the hash of the file with customer name, email in blockchain. the data must be accessed only by the organization for which i am working and banks ( the data is being shared from the customer to the bank via this org.).

GowriR (Wed, 27 Jun 2018 08:20:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hxW9fuKK56giDW6ch) @chainFlux run the enrolladmin.js etc in fabcar example

Ryan2 (Wed, 27 Jun 2018 08:22:19 GMT):
Hi just of out curiosity, Does fabric plan to apply Asynchronous Practice Byzantine Fault Tolerance consensus (hashgraph consensus ) as a consensus?

sine99 (Wed, 27 Jun 2018 08:22:57 GMT):
Hi, While executing transaction function in playground, I get. *Reference Error: getFactory() is not recognised* .... how to do away with this error??

seanice (Wed, 27 Jun 2018 08:28:14 GMT):
Has joined the channel.

Shubham-koli (Wed, 27 Jun 2018 09:31:54 GMT):
suppose my network has more than one million blocks. how long will it take for it boot up? considering I am have 3 organizations.

pankajcheema (Wed, 27 Jun 2018 09:32:32 GMT):
Hi As you can see in logs https://pastebin.com/3xUiY2YH .We are getting multiple time `SERVICE UNAVAILABLE` but in last finally we are able to create channnel. ANy one knows this behaviour ?

prtk418 (Wed, 27 Jun 2018 09:39:31 GMT):
Hello guys , i am new to hyperledger, i need someone to help me with giving me some insights on the architecture for my project, it would be highly appreciated, what i am trying to build is, storing some sensitive data( customer's ) in ipfs, and then store the hash of the file with customer name, email in blockchain. the data must be accessed only by the organization for which i am working and banks ( the data is being shared from the customer to the bank via this org.).

suryasuresh06 (Wed, 27 Jun 2018 09:52:42 GMT):
I tried to extend the fabcar network to 2 peers running on the same system. I encountered some errors. Would be grateful if someone could help I made the following changes to the docker compose file. peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:7051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:7051 - 8053:7053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx depends_on: - orderer.example.com - couchdb1 networks: - basic couchdb1: container_name: couchdb1 image: hyperledger/fabric-couchdb # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ports: - 6984:5984 networks: - basic In the start.sh file, I added a line of code to join peer 1 to the channel. When i execute ./startFabric.sh node, I get the following error: Error response from daemon, container not running. Could someone help me with this. Thanks

rjones (Wed, 27 Jun 2018 09:55:36 GMT):
Has left the channel.

chainFlux (Wed, 27 Jun 2018 10:10:54 GMT):
@GowriR i run the enrolladmin.js file in fabcar folder i get this error Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

prtk418 (Wed, 27 Jun 2018 10:23:23 GMT):
Hello guys , i am new to hyperledger, i need someone to help me with giving me some insights on the architecture for my project, it would be highly appreciated, what i am trying to build is, storing some sensitive data( customer's ) in ipfs, and then store the hash of the file with customer name, email in blockchain. the data must be accessed only by the organization for which i am working and banks ( the data is being shared from the customer to the bank via this org.).

raghav67 (Wed, 27 Jun 2018 10:28:41 GMT):
Has joined the channel.

raghav67 (Wed, 27 Jun 2018 10:29:05 GMT):
Failed to get registered user: Jim with error: Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 0.0.0.0:7054]

raghav67 (Wed, 27 Jun 2018 10:29:05 GMT):
hi, iam getting error while registering new user in fabric_samples/balance_transfer . .. Failed to get registered user: Jim with error: Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 0.0.0.0:7054] .

thegauravks (Wed, 27 Jun 2018 10:56:02 GMT):
Hi, is it possible to use an empty array as parameter to GetStateByPartialCompositeKey ? i.e. create key like: CreateCompositeKey("data", []string{"a","b"}) and use GetStateByPartialCompositeKey("data", []string{})

thegauravks (Wed, 27 Jun 2018 10:57:10 GMT):
Its returning an empty iterator. What would be the right way to get all state data with "data" as prefix of its key ?

dannychen (Wed, 27 Jun 2018 11:50:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hjMgJN3ZzzETeTfJb) @suryasuresh06 can you please docker ps --all and share logs with us?

pankajcheema (Wed, 27 Jun 2018 12:03:33 GMT):
Hi Experts

pankajcheema (Wed, 27 Jun 2018 12:04:08 GMT):
Invoke command is taking too much time in my network

pankajcheema (Wed, 27 Jun 2018 12:04:20 GMT):
you can check the response time in the postman screenshot attached

pankajcheema (Wed, 27 Jun 2018 12:04:43 GMT):
As you can see the response time is over 7.5 seconds

pankajcheema (Wed, 27 Jun 2018 12:04:45 GMT):

login.png

pankajcheema (Wed, 27 Jun 2018 12:05:07 GMT):
Right now I can see from logs a process is taking around 7 seconds

pankajcheema (Wed, 27 Jun 2018 12:05:11 GMT):
please find the logs on https://pastebin.com/JxEh6pn1

pankajcheema (Wed, 27 Jun 2018 12:05:54 GMT):
and check line time difference between line 118 & 119

pankajcheema (Wed, 27 Jun 2018 12:06:03 GMT):
Can anyone help me sorting this out?

pankajcheema (Wed, 27 Jun 2018 12:06:18 GMT):
```2018-06-27 17:28:39.764 IST [endorser] ProcessProposal -> DEBU 3af6 Exit: request from%!(EXTRA string=192.168.0.9:56988) 2018-06-27 17:28:46.840 IST [blocksProvider] DeliverBlocks -> DEBU 3af7 [assetchain] Adding payload locally, buffer seqNum = [26], peers number [0]``` here is 118 & 119 line number logs

pankajcheema (Wed, 27 Jun 2018 12:07:26 GMT):
@jyellick

pankajcheema (Wed, 27 Jun 2018 12:07:34 GMT):
If it is a bug please let me know

pankajcheema (Wed, 27 Jun 2018 12:07:48 GMT):
I am wondering for a solution from 1 month

pankajcheema (Wed, 27 Jun 2018 12:07:52 GMT):
and found no help

pankajcheema (Wed, 27 Jun 2018 12:08:11 GMT):
@tkuhrt Admin please let me know about this. If it is a bug or not.

pankajcheema (Wed, 27 Jun 2018 12:08:11 GMT):
Thanks

midhun14 (Wed, 27 Jun 2018 12:39:56 GMT):
Can anyone help me in setting up multinode with HL Fabric

lipoplus (Wed, 27 Jun 2018 13:45:30 GMT):
Has joined the channel.

DaraPenhchet (Wed, 27 Jun 2018 14:00:35 GMT):
Successful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer0.org2.example.orgSuccessful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer1.org2.example.org2018-06-27 22:45:56.972 ERROR 17292 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid.] with root cause java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid. at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2335) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2299) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2285) ~[fabric-sdk-java-1.0.1.jar:na] Dear everyone could I ask you why when I submit the TransactionProposal to the Two Peers why it errors like this. Thanks in advanced!

DaraPenhchet (Wed, 27 Jun 2018 14:00:35 GMT):
Successful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer0.org2.example.orgSuccessful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer1.org2.example.org2018-06-27 22:45:56.972 ERROR 17292 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid.] with root cause java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid. at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2335) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2299) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2285) ~[fabric-sdk-java-1.0.1.jar:na] Dear everyone could I ask you why when I submit the TransactionProposal to the Two Peers why it errors like this. Thanks in advanced!

DaraPenhchet (Wed, 27 Jun 2018 14:00:35 GMT):
Successful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer0.org2.example.orgSuccessful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer1.org2.example.org2018-06-27 22:45:56.972 ERROR 17292 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid.] with root cause java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid. at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2335) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2299) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2285) ~[fabric-sdk-java-1.0.1.jar:na] Dear everyone could I ask you why when I submit the TransactionProposal to the Two Peers why it errors like this. Thanks in advanced!

DaraPenhchet (Wed, 27 Jun 2018 14:00:35 GMT):
Successful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer0.org2.example.orgSuccessful transaction proposal response Txid: 0f9d77dbee0829f1fff7f76cf22fafce7763ac7e935ac57003058eef169a2f5e from peer peer1.org2.example.org2018-06-27 22:45:56.972 ERROR 17292 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid.] with root cause java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid. at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2335) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2299) ~[fabric-sdk-java-1.0.1.jar:na] at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:2285) ~[fabric-sdk-java-1.0.1.jar:na] Dear everyone could I ask you why when I submit the TransactionProposal to the Two Peers why it errors like this. Thanks in advanced!

lipoplus (Wed, 27 Jun 2018 14:00:40 GMT):
I'am working with the peer binaries and gives this erro: Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" how can i solve this ?

DaraPenhchet (Wed, 27 Jun 2018 14:08:20 GMT):

Clipboard - June 27, 2018 11:08 PM

LuisCoelho (Wed, 27 Jun 2018 14:52:04 GMT):
Hello! Can anyone tell me if the script.js file is a smartcontract? script.js is javascript code... but then the documentation says the chain code is only written i GO or Node. What is then the script.js that we create in hyperledger-playground?

handaanmol (Wed, 27 Jun 2018 16:12:56 GMT):
Has joined the channel.

nelaturuk (Wed, 27 Jun 2018 16:17:39 GMT):
Hi I am struggling with an issue in our environment can any help. Here is the stackoverflow : https://stackoverflow.com/questions/50937031/rejecting-deliver-request-because-of-consenter-error

handaanmol (Wed, 27 Jun 2018 16:53:55 GMT):
Hello Everyone, I am looking for specific information in Private transactions and their execution? Could someone please help me with that?

mdimovich (Wed, 27 Jun 2018 18:07:46 GMT):
Has joined the channel.

GanapathyRajalingam (Wed, 27 Jun 2018 18:55:37 GMT):
Has joined the channel.

HonestDavid (Wed, 27 Jun 2018 23:21:26 GMT):
Has joined the channel.

HonestDavid (Wed, 27 Jun 2018 23:28:57 GMT):
I'm trying to setup the first network by following the tutorials, but getting the following message when it try to start the network.

HonestDavid (Wed, 27 Jun 2018 23:28:57 GMT):
I'm trying to setup the first network by following the tutorials, but getting the following message when it try to start the network.``` /c/blockchain/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/ge nesis.block -channelID mychannel 2018-06-26 15:29:20.919 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-06-26 15:29:20.931 PDT [common/tools/configtxgen/encoder] NewChannelGroup - > WARN 002 Default policy emission is deprecated, please include policy specific iations for the channel group in configtx.yaml 2018-06-26 15:29:20.932 PDT [common/tools/configtxgen/encoder] NewOrdererGroup - > WARN 003 Default policy emission is deprecated, please include policy specific iations for the orderer group in configtx.yaml 2018-06-26 15:29:20.935 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 004 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group OrdererOrg in configtx.yaml 2018-06-26 15:29:20.937 PDT [msp] getMspConfig -> INFO 005 Loading NodeOUs 2018-06-26 15:29:20.938 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 006 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group Org1MSP in configtx.yaml 2018-06-26 15:29:20.941 PDT [msp] getMspConfig -> INFO 007 Loading NodeOUs 2018-06-26 15:29:20.943 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 008 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group Org2MSP in configtx.yaml 2018-06-26 15:29:20.946 PDT [common/tools/configtxgen] doOutputBlock -> INFO 009 Generating genesis block 2018-06-26 15:29:20.952 PDT [common/tools/configtxgen] doOutputBlock -> INFO 00a Writing genesis block``` OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such fi le or directory": unknown ERROR !!!! Test failed ``` ```

HonestDavid (Wed, 27 Jun 2018 23:28:57 GMT):
I'm trying to setup the first network by following the tutorials, but getting the following message when it try to start the network.``` /c/blockchain/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/ge nesis.block -channelID mychannel 2018-06-26 15:29:20.919 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-06-26 15:29:20.931 PDT [common/tools/configtxgen/encoder] NewChannelGroup - > WARN 002 Default policy emission is deprecated, please include policy specific iations for the channel group in configtx.yaml 2018-06-26 15:29:20.932 PDT [common/tools/configtxgen/encoder] NewOrdererGroup - > WARN 003 Default policy emission is deprecated, please include policy specific iations for the orderer group in configtx.yaml 2018-06-26 15:29:20.935 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 004 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group OrdererOrg in configtx.yaml 2018-06-26 15:29:20.937 PDT [msp] getMspConfig -> INFO 005 Loading NodeOUs 2018-06-26 15:29:20.938 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 006 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group Org1MSP in configtx.yaml 2018-06-26 15:29:20.941 PDT [msp] getMspConfig -> INFO 007 Loading NodeOUs 2018-06-26 15:29:20.943 PDT [common/tools/configtxgen/encoder] NewOrdererOrgGrou p -> WARN 008 Default policy emission is deprecated, please include policy speci ficiations for the orderer org group Org2MSP in configtx.yaml 2018-06-26 15:29:20.946 PDT [common/tools/configtxgen] doOutputBlock -> INFO 009 Generating genesis block 2018-06-26 15:29:20.952 PDT [common/tools/configtxgen] doOutputBlock -> INFO 00a Writing genesis block``` OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such fi le or directory": unknown ERROR !!!! Test failed ``` ``` ``` I checked the peer container and it have empty folders for scripts and I guess it might related to the warning message when it try to generate the genesis block as it indicate "default policy emission is deprecated" and what kind of format of policy specifications need to set in the configtx.yaml file? ```

suryasuresh06 (Thu, 28 Jun 2018 03:04:53 GMT):

Screen Shot 2018-06-28 at 8.35.15 AM.png

suryasuresh06 (Thu, 28 Jun 2018 03:04:58 GMT):
@dannychen

suryasuresh06 (Thu, 28 Jun 2018 03:09:17 GMT):
@dannychen when I log the peer 1 container, I get this error : Cannot run peer because of error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer could not load a valid signer certificate from directory /etc/hyperledger/msp/peer/signcerts/ no such file or directory

pankajcheema (Thu, 28 Jun 2018 03:52:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fxnPwTYXAKCribDXF) Amazing!! No one has any answer.

pankajcheema (Thu, 28 Jun 2018 03:54:08 GMT):
Amazing!. No one has any anwser to this question. :expressionless: https://chat.hyperledger.org/channel/fabric-questions?msg=fxnPwTYXAKCribDXF

pankajcheema (Thu, 28 Jun 2018 03:54:30 GMT):
@jyellick @tkuhrt

pankajcheema (Thu, 28 Jun 2018 03:55:23 GMT):
I am looking for solution from last 1 month. @mastersingh24

thegauravks (Thu, 28 Jun 2018 05:39:43 GMT):
Please help: Hi, is it possible to use an empty array as parameter to GetStateByPartialCompositeKey ? i.e. create key like: CreateCompositeKey("data", []string{"a","b"}) and use GetStateByPartialCompositeKey("data", []string{}) Its returning an empty iterator. What would be the right way to get all state data with "data" as prefix of its key ?

anjalinaik (Thu, 28 Jun 2018 06:03:05 GMT):
Hi Can anyone please help me with this error : ` Unexpected topic-level metadata error: kafka server: Replication-factor is invalid.`

dannychen (Thu, 28 Jun 2018 06:28:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qZY6Hdmk5SRz4RYDY) @suryasuresh06 yes, please see you dokcer.composer.yaml file which sets your images environment. Here is my example

dannychen (Thu, 28 Jun 2018 06:28:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qZY6Hdmk5SRz4RYDY) @suryasuresh06 - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.idianyou.com/peers/peer1.org1.idianyou.com/tls/ca.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.idianyou.com/peers/peer1.org1.idianyou.com/tls/server.key - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.idianyou.com/peers/peer1.org1.idianyou.com/tls/server.crt

saeedi (Thu, 28 Jun 2018 06:49:21 GMT):
Has joined the channel.

saeedi (Thu, 28 Jun 2018 06:49:30 GMT):
Hi everyone, if i want to implement a solution based on Hyperledger Fabric, do i need to acquire some permission from IBM or some kind of license?

silencily (Thu, 28 Jun 2018 06:49:58 GMT):
Has joined the channel.

yacovm (Thu, 28 Jun 2018 06:50:27 GMT):
no, it is open source

yacovm (Thu, 28 Jun 2018 06:51:26 GMT):
apache 2 license

dannychen (Thu, 28 Jun 2018 07:04:03 GMT):
Hi everyone, I have a question on **CORE_PEER_GOSSIP_BOOTSTRAP**, should I set this available in those anchor peer node?

IgorSim (Thu, 28 Jun 2018 07:13:35 GMT):
@DaraPenhchet perhaps your chaincode its non-deterministic (for example if you get current time ) and the output of chaincode execution is different from two peers

suryasuresh06 (Thu, 28 Jun 2018 07:49:04 GMT):
@dannychen thanks for the reply. I checked the docker compose file but couldn't find any CORE_PEER_TLS statements. I am trying to extend the 'basic-network' model. Please find my docker compose file below. When I used only one peer, it worked fine. The problem has come when I extended to 2 peers.

suryasuresh06 (Thu, 28 Jun 2018 07:49:58 GMT):
peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer0.org1.example.com - CORE_LOGGING_PEER=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 7051:7051 - 7053:7053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx depends_on: - orderer.example.com - couchdb networks: - basic

suryasuresh06 (Thu, 28 Jun 2018 07:50:34 GMT):
below is for peer1 : peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:7051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:7051 - 8053:7053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx depends_on: - orderer.example.com - couchdb1 networks: - basic couchdb1: container_name: couchdb1 image: hyperledger/fabric-couchdb # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ports: - 6984:5984 networks: - basic

suryasuresh06 (Thu, 28 Jun 2018 07:50:41 GMT):
should I use different images?

suryasuresh06 (Thu, 28 Jun 2018 07:50:50 GMT):
@dannychen

rajanashutosh (Thu, 28 Jun 2018 07:56:05 GMT):
Has joined the channel.

rajanashutosh (Thu, 28 Jun 2018 07:56:28 GMT):
hi, I am having some issues while deploying composer application over fabric network. Getting error when using composer network install, Response from peers was an error. Error 14 unavailable EOF

SherifMuhammed (Thu, 28 Jun 2018 08:55:32 GMT):
Hi. Are you planning to support integration Indy with popular enterprise blockchains like Fabric and ethereum/quorum ?

waleed (Thu, 28 Jun 2018 08:57:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8SNjSmt9uW4aBHBbr) @SherifMuhammed you can use indy instead of CA on fabric network

waleed (Thu, 28 Jun 2018 08:57:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8SNjSmt9uW4aBHBbr) @SherifMuhammed you can use indy instead of fabric CA on fabric network

eidand (Thu, 28 Jun 2018 09:39:42 GMT):
Has joined the channel.

eidand (Thu, 28 Jun 2018 09:40:09 GMT):
hey guys, one question please, as an organisation, we're looking at providing some stability for out network and we are considering using multiple orderers. I haven't found any documentation for that. found some stuff related to a kafka cluster, but not much else. Is there anything maybe I've missed?

SherifMuhammed (Thu, 28 Jun 2018 09:53:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3FADjf7taeLNxgDj8) @waleed Thank You.

fedens (Thu, 28 Jun 2018 10:06:32 GMT):
Has joined the channel.

vsadriano (Thu, 28 Jun 2018 11:05:16 GMT):
Hi! How can I set TLS over proxy authentication? Is there any how?

midhun14 (Thu, 28 Jun 2018 11:11:42 GMT):
Does anyone has setup hyperledger fabric on multiple nodes?

aordeig (Thu, 28 Jun 2018 11:16:11 GMT):
Has joined the channel.

AmrSoliman (Thu, 28 Jun 2018 11:27:07 GMT):
Has joined the channel.

HoneyShah (Thu, 28 Jun 2018 11:50:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kZ7GmSL3rtWZNwnu2) @eidand You can refer to https://www.skcript.com/svr/kafka-in-hyperledger-fabric/ and official documentation http://hyperledger-fabric.readthedocs.io/en/release-1.1/kafka.html and also the sample files https://github.com/hyperledger/fabric-test/tree/master/feature/docker-compose , https://github.com/hyperledger/fabric-test/tree/master/feature/configs

eidand (Thu, 28 Jun 2018 11:51:06 GMT):
thank you

yacovm (Thu, 28 Jun 2018 12:29:54 GMT):
@vsadriano use nghttpx or envoy

aatkddny (Thu, 28 Jun 2018 12:53:38 GMT):
is there a channel for questions about the identity mixer in the msp? identity-wg doesn't appear to be particularly active and a cursory search didn't find an obvious candidate.

FlorentinoSainz (Thu, 28 Jun 2018 12:54:09 GMT):
I have a questioon regarding Side DB (private data), as far as I understood, we can create collections between different parties, but If i need to setup bi-lateral communications between two different peers (or all peers), I'll have to know all the possible communications prior to deploying chaincode and create a collection for each pair of peers?

yacovm (Thu, 28 Jun 2018 13:03:32 GMT):
@aatkddny #fabric-crypto

aatkddny (Thu, 28 Jun 2018 13:04:22 GMT):
thanks @yacovm

aatkddny (Thu, 28 Jun 2018 13:44:05 GMT):
peer eventing question. if you are trying to something with seekinfo to replay a set of blocks due to failure is the return order guaranteed to be sequenced in the order presented? consider orders and revisions that need to be applied in the sequence they were received and whether one needs to sort externally or can take as returned.

clouddead (Thu, 28 Jun 2018 14:58:51 GMT):
Has joined the channel.

mondraymond (Thu, 28 Jun 2018 16:40:01 GMT):
Has joined the channel.

vanitas92 (Thu, 28 Jun 2018 16:46:28 GMT):
Hi everyone. Can we store documents like pdf, excel in Hyperledger Fabric? By using couchdb as the ledger can we store them in the blockchain?

silliman (Thu, 28 Jun 2018 16:57:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g5LCZY38oMPTHn8zK) @vanitas92 yes you may if you wish and a common alternative is to store the documents off-chain and put a pointer to them on the chain and if you take this latter approach it is also a good practice to store a hash of the document on the chain to prove the document you ultimately retrieve off-chain is the one that was stored at the time of transaction commit. Also, you don't need couchdb to do this. You can do this with leveldb as the world state database. in fact couchdb doesn't really buy you anything for storing these types of values- either a pointer and hash or the document itself which you would usually store as a hex-encoded or base64-encoded string- as the rich query capability that couchdb provides isn't very useful for this.

mdimovich (Thu, 28 Jun 2018 17:36:56 GMT):
Hi everybody! I was hoping somebody could help me. I'm working on a summer project, starting with the IBM-Marble demo, and trying to implement new data types (other than Marbles) that use more variables than the Marble data structure. I also want to implement a request-response between 2 new data types, where one data type is created, and then somebody else can respond to the request with a different data type, like an exchange between two different types of data. To be quite frank, I'm clueless on how to go about doing this. I'm an undergraduate student, and don't have much experience with building full-stack applications. I've read through the Hyperledger documentation closely, and I've watched every video on the subject I can find, but I'm still coming up short. I've attempted to modify and upgrade the chaincode, but everything I do leads to an error. Does anybody have some advice that could point me in the right direction? How can I modify this Marble project to include new data types without causing a bunch of errors?

Antonio_M (Thu, 28 Jun 2018 17:44:03 GMT):
Has joined the channel.

Waqas Burney (Thu, 28 Jun 2018 19:02:01 GMT):
Does the current version of fabric-shim (node.js) support putPrivateData and getPrivateData? If not when is the latest version expected to release on npm?

vanitas92 (Thu, 28 Jun 2018 19:38:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xq4hkKq7K5zHnCJJn) @silliman Thanks for your response. We wish to continue to use couchdb as a separated docker container as we use a microservice architecture and for the rich query capabilities it offers. It is very interesting the approach you suggested about offchain documents with hash onchain but we would like to maintain the documents also onchain. Is it appropiate the use of couchdb for this?

silliman (Thu, 28 Jun 2018 19:43:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9uwug5p7b9fGgnXdu) @vanitas92 if you're tracking other things that can benefit from CouchDB then sure it won't hurt to use CouchDB for your documents as well, whether you store them on-chain or off-chain

Sisir.Chowdhury (Thu, 28 Jun 2018 20:54:56 GMT):
Has joined the channel.

Sisir.Chowdhury (Thu, 28 Jun 2018 20:55:01 GMT):
I am creating a 2 Organization fabric network with 2 Peers (Containers) - Do I need 2 separate SmartCode Containers (a.k.a Chaincode) ?

Sisir.Chowdhury (Thu, 28 Jun 2018 20:55:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WismzwSQnLzHnwTRT) @silliman thanks for the response.. I've couple of more questions.. Q1. I am setting up a topology like this (attached), is this a valid scenario ? Q2. Taking fabcar as an example - when APP-1 Creates a Car in Smart-Contract-1, how does the Consensus take place ?

sean (Thu, 28 Jun 2018 21:02:23 GMT):
Has joined the channel.

silliman (Thu, 28 Jun 2018 21:14:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=riAu4QuFpfr3gPoqK) @Sisir.Chowdhury except for what is known as chaincode development mode, for any peer from which you wish to invoke chaincode, you will "need" a chaincode container for that peer. But that chaincode container (and the image it is based on) will be built for you by the peer- at _instantiation_ time on the peer that is the target of your instantiation request, or the first time you invoke the chaincode at any of the other peers.

kesavants (Thu, 28 Jun 2018 21:22:54 GMT):
After a network is setup is there a command or way to export connection profile for an organization

waleed (Thu, 28 Jun 2018 21:25:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8pQdTx3PWfbio8JLe) @kesavants what do mean when u say connection profile? do u mean composer connection profile?

kesavants (Thu, 28 Jun 2018 21:32:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cuTyv2PHDDt2qtRdy) @waleed For SDK client applications to connect to a network they need a connection profile which is standardized as described in https://fabric-sdk-node.github.io/tutorial-network-config.html either as json or yaml. I checking if this profile can be generated use any fabric tools so that once a network is setup a tool can be run to generate this and can be given to client application

waleed (Thu, 28 Jun 2018 21:42:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oc25qqKN7unqdWdNN) @kesavants I am not actually sure if u can do this. What about u guys? any Ideas?

vagnerasilva (Thu, 28 Jun 2018 22:20:43 GMT):
Has joined the channel.

Sisir.Chowdhury (Thu, 28 Jun 2018 23:10:41 GMT):

Clipboard - June 28, 2018 4:10 PM

Sisir.Chowdhury (Fri, 29 Jun 2018 00:52:18 GMT):
@silliman ^^^

rajanashutosh (Fri, 29 Jun 2018 04:07:40 GMT):
hi all, once the fabric network has been created, from production stand point are der softwares which would help support person to maintain and monitor the networks ?

ditonditon (Fri, 29 Jun 2018 04:21:29 GMT):
Has joined the channel.

arunwij (Fri, 29 Jun 2018 05:54:33 GMT):
Has joined the channel.

willyko (Fri, 29 Jun 2018 06:08:31 GMT):
Has joined the channel.

goelmayank (Fri, 29 Jun 2018 07:10:34 GMT):
Hi, I need some help to set up the Morpheo project here: https://github.com/MorpheoOrg/morpheo-devenv .It is a platform that integrates AI with blockchain. You can check more abut here: https://morpheoorg.github.io/morpheo/ The problem is one of their repo is private. morpheo-fabric-bootstrap. The purpose of this repo, we identified was to install and instantiate the orchestrator chaincode here: https://github.com/MorpheoOrg/morpheo-orchestrator-chaincode. Can anyone suggest how to do it without the repo?

vladyslavmunin (Fri, 29 Jun 2018 07:17:57 GMT):
Has joined the channel.

vladyslavmunin (Fri, 29 Jun 2018 07:17:59 GMT):
Hi , are there any implementation of browser version of fabric sdk ? Found only this ticket https://jira.hyperledger.org/browse/FAB-8129 because it's not possible to use fabric node sdk on client side in web app

Khush1209 (Fri, 29 Jun 2018 07:37:48 GMT):
Hello Guys!! Can anyone tell me how to get block information after transactions?

KirillVostrecov (Fri, 29 Jun 2018 08:21:18 GMT):
Has joined the channel.

KirillVostrecov (Fri, 29 Jun 2018 08:26:34 GMT):
Hi! Can someone tell me about chaincode restrictions? For example can i use "net/http" from chaincode?

KirillVostrecov (Fri, 29 Jun 2018 08:41:54 GMT):
another question... can i mix fabric and indy?

KirillVostrecov (Fri, 29 Jun 2018 08:42:02 GMT):
is it possible?

SaraEmily (Fri, 29 Jun 2018 08:53:47 GMT):
Hi! I have a teoretical question: When mixing writing and reading from the system a read-operation sometimes takes A LOT of time. (like over 30 seconds instead of the usual ~100 ms) This seems to happen when an update of a value is commited to the ordering service and I try to read from one of the non-endorsing peers. Does anyone know why this happens? (It only happens sometimes, not always under these circumstances) Example: b=1 in the ledger I send transaction that b=2 to org1 and org2 and get confirmation that the transaction is successfully sent to the orderer I try to read b from org1, within 100ms it gives me 2 I try to read b from org3, it takes 30 seconds and then it gives me 2. (Using Node.js SDK, 20 peers (one per org), SOLO orderer)

suryasuresh06 (Fri, 29 Jun 2018 09:00:21 GMT):
Hi, I am trying to extend the basic-network to 2 peers and test it using the fabcar chain code. I regenerated the crypto material and was able to run ./startFabric.sh node. I am getting the below error in enrollAdmin. Could someone help me with this. (I have already changed the certificate path in docker-compose). Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 10.228.27.101:7054] at ClientRequest. (/Users/digital3/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:883:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin

suryasuresh06 (Fri, 29 Jun 2018 09:00:52 GMT):
@dannychen this is a continuation of the question I asked earlier. Would be great if you could help

RealDeanZhao (Fri, 29 Jun 2018 10:31:22 GMT):
Hi All, I am using the hyperledger/fabric-ca-peer:amd64-1.2.0-rc1 image to run the chaincode that will invoke the stub.GetPrivateData API.. But it always give me the error:``` error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 \"# themis.xyd.cn/themis/cc/order\nchaincode/input/src/themis.xyd.cn/themis/cc/order/order.go:117:30: stub.GetPrivateData undefined (type shim.ChaincodeStubInterface has no field or method GetPrivateData)\nchaincode/input/src/themis.xyd.cn/themis/cc/order/order.go:147:14: stub.PutPrivateData undefined (type shim.ChaincodeStubInterface has no field or method PutPrivateData)\n\"\nTransaction processing for endorser [localhost:7251]: Chaincode status Code: (500) UNKNOWN ```

RealDeanZhao (Fri, 29 Jun 2018 10:31:58 GMT):
How can I enable the new Private Data API?

d8bhatta (Fri, 29 Jun 2018 10:59:52 GMT):
Hello Guys

d8bhatta (Fri, 29 Jun 2018 11:00:36 GMT):
How can I log debug code in chaincode and debug it, please suggest

Nghiadt (Fri, 29 Jun 2018 11:30:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=96uXX5AQL3eotEG84) @nelaturuk I'm being stucked with this one.

Nghiadt (Fri, 29 Jun 2018 11:31:18 GMT):
Hoping someone can help

sine99 (Fri, 29 Jun 2018 11:33:15 GMT):
Hi, How do I revert a transaction while executing a transaction function in the playground. For eg: in ethereum we have transaction unsuccessful when we dont pay the required amount or gas fee from wallet. How can I do the same thing in the logic.js file ...writing condition which causes the transaction to be unsuccessful or show the error message thus stopping the transaction.

nemo 8 (Fri, 29 Jun 2018 11:47:12 GMT):
Has joined the channel.

nemo 8 (Fri, 29 Jun 2018 11:50:35 GMT):
orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded Anyone with experience of deploying Docker across multiple nodes able to lend a hand? ```2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILUREError: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded``` I get this running section 7 here https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

nemo 8 (Fri, 29 Jun 2018 11:50:35 GMT):
```orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE``` Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded Anyone with experience of deploying Docker across multiple nodes able to lend a hand? ```2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILUREError: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded``` I get this running section 7 here https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

nemo 8 (Fri, 29 Jun 2018 11:50:35 GMT):
```orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded 2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILURE``` Anyone with experience of deploying Docker across multiple nodes able to lend a hand? ```2018-06-29 11:38:12.156 UTC [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204084f0, TRANSIENT_FAILUREError: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded``` I get this running section 7 here https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

FORFIRM (Fri, 29 Jun 2018 13:22:42 GMT):
Hello guys, I'm trying to launch and create my first fabric network with Kafka consensum. Follow the link to the open discussion on stakover flow Thank you

FORFIRM (Fri, 29 Jun 2018 13:22:42 GMT):
Hello guys, I'm trying to launch and create my first fabric network with Kafka consensum. Follow the link to the open discussion on Stackoverflow https://stackoverflow.com/questions/51102730/kafka-fabric-first-network-problems I hope someone can help me Thank you

FORFIRM (Fri, 29 Jun 2018 13:22:42 GMT):
Kafka-Fabric-First-Network ERROR Hello guys, I'm trying to launch and create my first fabric network with Kafka consensum. Follow the link to the open discussion on Stackoverflow https://stackoverflow.com/questions/51102730/kafka-fabric-first-network-problems I hope someone can help me Thank you

AbidiBassem (Fri, 29 Jun 2018 16:59:12 GMT):
Has joined the channel.

PhillipPirrip (Fri, 29 Jun 2018 19:16:13 GMT):
Has joined the channel.

SwapneshNaik (Fri, 29 Jun 2018 20:00:01 GMT):
Has joined the channel.

handaanmol (Fri, 29 Jun 2018 22:02:48 GMT):
Is there any way to execute private Data functionality via Composer as of now?

RTZ229 (Sat, 30 Jun 2018 06:51:49 GMT):
Is there a way I can invoke a chaincode by making a connection request through websockets from esp8266 wifi module ? Also in which script of composer does REST API invokes any transaction inside fabric framework ?

sine99 (Sat, 30 Jun 2018 06:52:31 GMT):

Clipboard - June 30, 2018 12:22 PM

sine99 (Sat, 30 Jun 2018 06:52:31 GMT):

Clipboard - June 30, 2018 12:22 PM

sine99 (Sat, 30 Jun 2018 06:52:31 GMT):

Clipboard - June 30, 2018 12:22 PM

sine99 (Sat, 30 Jun 2018 06:52:38 GMT):
Hii , I am getting this error.... I dont understand why it shows timeout while starting a business network

Santosh369 (Sat, 30 Jun 2018 11:26:29 GMT):
Hi guys,

Santosh369 (Sat, 30 Jun 2018 11:59:08 GMT):
Hi guys, I am currently trying trying to repair couchdb instance after data alteration. For each document in the database the value of the *_id* field matches the id of the corresponding transaction in the blockchain. For this purpose I am listening for any changes operated within the state database and each modification triggers a script that will query the transaction and check that the document matches the write set of the transaction. If it doesn't (malicious data modification), an http request is sent to update the document with the original values. If no transaction id in the chain matches the id of the document (malicious data creation), an http request is sent to delete the document. Currently the second case works fine and there is no problem with it. Although the first case seems to work fine, an error is raised when the peer executes the chaincode to query the database after the document has been restored with its original values. Here are the logs produced by the peer before it crashes: *2018-06-30 11:12:35.969 UTC [chaincode] getQueryResponse -> ERRO 05a Failed to get query result from iterator panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xbad1c0] goroutine 3151 [running]: github.com/hyperledger/fabric/core/chaincode.(*Handler).handleGetQueryResult.func1.1(0xc4214b6400, 0xc4215deba0, 0xc42218fee8) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1004 +0x60 panic(0xdc3e40, 0x16420b0) /opt/go/src/runtime/panic.go:491 +0x283 github.com/hyperledger/fabric/core/chaincode.(*Handler).cleanupQueryContext(0xc4214b6400, 0xc421a34300, 0xc42274f9e0, 0x24) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:232 +0x99 github.com/hyperledger/fabric/core/chaincode.(*Handler).handleGetQueryResult.func1.2(0xc421a82db0, 0x28, 0x30, 0x165f300, 0xc42196a1a0, 0xf0bcd3, 0x26, 0xc421a1bdf0, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1013 +0x1bf github.com/hyperledger/fabric/core/chaincode.(*Handler).handleGetQueryResult.func1(0xc4214b6400, 0xc4215deba0) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1053 +0x7b2 created by github.com/hyperledger/fabric/core/chaincode.(*Handler).handleGetQueryResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:991 +0x49* I have been trying to understand the cause of the error and how to solve it. I hope someone can help me...

Santosh369 (Sat, 30 Jun 2018 12:03:44 GMT):

panic.png

maksimfedin (Sat, 30 Jun 2018 12:06:24 GMT):
Has joined the channel.

yacovm (Sat, 30 Jun 2018 13:35:50 GMT):
@dave.enyeart @manish-sethi ^

dave.enyeart (Sat, 30 Jun 2018 14:06:25 GMT):
@Santosh369 I probably don't have to tell you that external updates to state database are not supported... but what version are you on?

yacovm (Sat, 30 Jun 2018 14:08:37 GMT):
... I don't think we should get a NPE in any case @dave.enyeart

dave.enyeart (Sat, 30 Jun 2018 14:08:56 GMT):
agreed, that's why i'm asking about the version so that we can check

dave.enyeart (Sat, 30 Jun 2018 14:17:02 GMT):
@Santosh369 I have to step away from rocket chat... but please open a bug in Hyperledger Jira with details of the version and attach peer debug (CORE_LOGGING_LEVEL=DEBUG)

Santosh369 (Sat, 30 Jun 2018 14:20:30 GMT):
@dave.enyeart Thank you for your answer. I don't understand what you mean by " external updates to state database are not supported", I have always been able to create, update and delete documents directly using Fauxton or curl and I had not encountered any error after querying documents.

Santosh369 (Sat, 30 Jun 2018 14:21:14 GMT):
@dave.enyeart I am using fabric 1.1

SKRISHNA (Sat, 30 Jun 2018 18:37:52 GMT):
Has joined the channel.

SKRISHNA (Sat, 30 Jun 2018 18:38:05 GMT):
Hi, I have started the notwork using ./startFabric.sh inside /fabric-samples/fabcar/ but when i am trying to enrollAdmin.js its failing with below error. Failed to enroll admin :Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] Hi, I have started the notwork using ./startFabric.sh inside /fabric-samples/fabcar/ but when i am trying to enrollAdmin.js its failing with below error. Failed to enroll admin :Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

boatnoy (Sat, 30 Jun 2018 19:12:48 GMT):
Has joined the channel.

rjain0701 (Sat, 30 Jun 2018 19:14:29 GMT):
I was trying to generate certificate for new peer through Cryptogen extend command.

rjain0701 (Sat, 30 Jun 2018 19:14:29 GMT):
I was trying to generate certificate for new peer through Cryptogen extend command. Not sure why CA certificate and existing peer CA certificate are not matching. And when I tried to add new peer then CA certificate matches but docker container is not coming up. Getting below error: ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority

meiremax (Sat, 30 Jun 2018 20:39:15 GMT):
Has joined the channel.

mdimovich (Sun, 01 Jul 2018 00:25:33 GMT):
Hi everyone! I'm working on a project using the IBM-Marble Demo, and I'm attempting to add two new data types (Client and Vehicle) and I want to implement a way for a user to create one or the other. Right now, I'm trying to modify the existing Marble data type, just to figure out how everything is working. I thought I modified everything I was supposed to, but I'm getting a TypeError when trying to create a Marble.

mdimovich (Sun, 01 Jul 2018 00:25:33 GMT):
Hi everyone! I'm working on a project using the IBM-Marble Demo, and I'm attempting to add two new data types (Client and Vehicle) and I want to implement a way for a user to create one or the other. Right now, I'm trying to modify the existing Marble data type to add more variables, just to figure out how everything is working. I thought I modified everything I was supposed to, but I'm getting a TypeError when trying to create a Marble. t

mdimovich (Sun, 01 Jul 2018 00:26:21 GMT):

Marbles TypeError.png

sashico (Sun, 01 Jul 2018 01:21:33 GMT):
Hi, is fabric recommended for a currency? we're planning to create a fiat collateralized cryto like Tether, and Fabric is one the DLTs we're looking at

BrettR (Sun, 01 Jul 2018 11:29:01 GMT):
Has joined the channel.

BrijeshKumar (Sun, 01 Jul 2018 12:39:38 GMT):
Has joined the channel.

BrijeshKumar (Sun, 01 Jul 2018 12:39:50 GMT):
Hello, I am doing the Blockchain for Business: Introduction to Hyperledger Course. I was able to install and run the sample demo once. However, on the next run, repeatedly getting the following error: "2018-07-01 12:32:11.639 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== Request any feedbacks to resolve this.

Miruthan (Sun, 01 Jul 2018 12:52:00 GMT):
What is Anchor in Proposal message ?, why it should equal to readset ?

Miruthan (Sun, 01 Jul 2018 12:52:10 GMT):
Can you please guide me?

aparichit007 (Sun, 01 Jul 2018 17:06:29 GMT):
Has joined the channel.

ShashankMotepalli (Sun, 01 Jul 2018 17:50:20 GMT):
Has joined the channel.

ShashankMotepalli (Sun, 01 Jul 2018 17:50:52 GMT):
Hi, I have a query. Has anyone used Fabric Channel Event Listener?

nvxtien (Mon, 02 Jul 2018 00:08:18 GMT):
Hi guys,

nvxtien (Mon, 02 Jul 2018 00:08:46 GMT):
I am creating a fabric network using docker swarm.

nvxtien (Mon, 02 Jul 2018 00:09:29 GMT):
When I install chaincode, I get this error.

nvxtien (Mon, 02 Jul 2018 00:13:36 GMT):

error.txt

nvxtien (Mon, 02 Jul 2018 00:14:07 GMT):
Could you please guide me?

maksimfedin (Mon, 02 Jul 2018 01:42:43 GMT):
Hi everyone!

maksimfedin (Mon, 02 Jul 2018 01:44:19 GMT):
Hi everyone! Can you please helpe me with the use case of the fabric. Let’s say we have 10 people, and each one wants to have a secure private communication between each other inside of one company. 1) Do we need to make a peer for each of 10 people? 2) Each entity should be the user of one organization or it should be the 10 different organizations?

maksimfedin (Mon, 02 Jul 2018 01:47:12 GMT):
Hi everyone! Can you please help me with the use case of the hyperledger fabric. Let’s say we have 10 people, and each one wants to have a secure private communication between each other. 1) What will be the architecture in this case? Does each of 10 peoples should be the user of one organization or it should be the 10 different organizations? 2) Do we need to make a peer for each of 10 people?

huyng1147 (Mon, 02 Jul 2018 03:50:40 GMT):
Has joined the channel.

shambhavi (Mon, 02 Jul 2018 04:55:24 GMT):
Has joined the channel.

RomanSh (Mon, 02 Jul 2018 06:29:00 GMT):
Has joined the channel.

Legiit (Mon, 02 Jul 2018 07:14:20 GMT):
Has joined the channel.

Legiit (Mon, 02 Jul 2018 07:14:23 GMT):
Is there a possibility to track which data is queried in Fabric? (Log when `getState` is being called)

UTKARSHBIST (Mon, 02 Jul 2018 07:40:28 GMT):
Has joined the channel.

UTKARSHBIST (Mon, 02 Jul 2018 07:40:35 GMT):
How to construct hyperledger fabric architecture to read the real time data from sensors and securely store it on database, once all the endorsing peers has verified the blocks.

RealDeanZhao (Mon, 02 Jul 2018 08:36:06 GMT):
Hi All, is the blockfile_xxxxxx in the orderer node the same with the blockfile_xxxxxx in the peer node?

RealDeanZhao (Mon, 02 Jul 2018 08:37:30 GMT):
What will happen if I delete the blockfile_xxxxxx on the peer node or the orderer node?

HJP (Mon, 02 Jul 2018 08:43:40 GMT):
Has joined the channel.

HJP (Mon, 02 Jul 2018 08:45:53 GMT):
Hi, Can you please share the link to set up hL fabric dev env V1.1 on ubuntu.

HJP (Mon, 02 Jul 2018 08:45:53 GMT):
Hi, Can you please share the link to set up HL Fabric dev env V1.1 on ubuntu. Can refer to the same tutorial for dev env setup on LinuxZ machine?

HJP (Mon, 02 Jul 2018 08:45:53 GMT):
Hi, Can you please share the link to set up HL Fabric dev env V1.1 on ubuntu. Can refer to the same tutorial for dev env setup on ubuntu machine?

ashlinSajan (Mon, 02 Jul 2018 09:11:16 GMT):
Hi,is it possible to store a file in couchdb from hyperledger fabric?

julian (Mon, 02 Jul 2018 09:57:10 GMT):
Has joined the channel.

emiliastk (Mon, 02 Jul 2018 10:49:35 GMT):
Has joined the channel.

mastersingh24 (Mon, 02 Jul 2018 11:00:05 GMT):
@ashlinSajan - you can store binary data within CouchDB so you can simply store a file as raw bytes

druid985 (Mon, 02 Jul 2018 11:05:01 GMT):
Has joined the channel.

druid985 (Mon, 02 Jul 2018 11:05:46 GMT):
Hi, I am trying to byfn.sh up, but I got this error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: context deadline exceeded peer1.org1 failed to join the channel, Retry after 3 seconds What should I do to solve this problem? Very appreciate!

druid985 (Mon, 02 Jul 2018 11:13:13 GMT):

20180702191138.png

druid985 (Mon, 02 Jul 2018 11:14:02 GMT):

20180702191240.png

sonudoo (Mon, 02 Jul 2018 12:19:49 GMT):
Has joined the channel.

sonudoo (Mon, 02 Jul 2018 12:21:18 GMT):
Hello Hyperledger experts. I had a question regarding how Peers communicate with CAs? We don't specify the CA in docker compose so how does Peer know what is the URL of CA? Is it the chaincode in which it is specified?

sagi (Mon, 02 Jul 2018 13:28:09 GMT):
Has joined the channel.

yacovm (Mon, 02 Jul 2018 13:40:05 GMT):
peers don't communicate with CAs

LuigiRiva (Mon, 02 Jul 2018 14:05:53 GMT):
Has joined the channel.

Johnnyhoboy (Mon, 02 Jul 2018 14:17:02 GMT):
Has joined the channel.

TimRi91 (Mon, 02 Jul 2018 14:34:54 GMT):
Has joined the channel.

TimRi91 (Mon, 02 Jul 2018 14:34:59 GMT):
Hello everyone, i am a newbie in hyperledger fabric and i have the exact same problem when enroll an admin like this guy: https://jira.hyperledger.org/browse/FAB-8637

TimRi91 (Mon, 02 Jul 2018 14:35:12 GMT):
Can you guys help me with this one?

LuigiRiva (Mon, 02 Jul 2018 14:39:34 GMT):
Hello everyone, did anyone ever tried to connect indy with fabric? One way to do that i

jsellinger (Mon, 02 Jul 2018 14:54:00 GMT):

Screen Shot 2018-07-02 at 10.53.07 AM.png

jsellinger (Mon, 02 Jul 2018 14:54:21 GMT):
This is for the first network sample

Adam_Hardie (Mon, 02 Jul 2018 15:45:57 GMT):
hey all! back again, i was playing with tests and deleted my user's certificate. Is that it for that user (have to re enroll a new identity) or can I use the CA in a way to prove I am the owner of that certificate and regenerate that way

Adam_Hardie (Mon, 02 Jul 2018 15:53:05 GMT):
i understand it is a HL limitation to only allow one registration (security), but should admin be able to revoke / re enroll users if they delete their private key ?

vlz (Mon, 02 Jul 2018 16:00:12 GMT):
Has joined the channel.

AshishKaila (Mon, 02 Jul 2018 16:46:47 GMT):
Has joined the channel.

AshishKaila (Mon, 02 Jul 2018 16:47:20 GMT):
Hey guys, how does fabric peer resolves urls for chaincode? I have seen something like this: peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/

AshishKaila (Mon, 02 Jul 2018 16:47:37 GMT):
However that url is invalid, so how does it resolve to the right guthub url?

arunbacha (Mon, 02 Jul 2018 16:54:42 GMT):
Has joined the channel.

arunbacha (Mon, 02 Jul 2018 17:03:27 GMT):
Hey All, I am trying to set up the environment for Hyperledger Fabric, I was able to install Docker and Docker Compose, Go Programming Language and also node js. When I am trying to install the windows build tools(Visual Studio C++ Build Tools) with the command npm install --global windows-build-tools, I am running into an issue (ETIMEDOUT). I am running this command on a VM which is behind a corporate network. Any help would be greatly appreciated. Attaching the screen capture of the error.

asharora78 (Mon, 02 Jul 2018 17:55:27 GMT):
I have a Hyperledger Fabric network with multiple peers with corresponding StateDB (CouchDB) and I have given CORE_LEDGER_HISTORY_ENABLEHISTORYDATABASE=true in all peer configuration under docker compose file. The idea that I shall be able to retrieve the update history of a record basis the key. I am using GetHistoryForKey method of SHIM API ...but iterator is returning last revision not all records, can somebody help me?

Miruthan (Mon, 02 Jul 2018 18:10:37 GMT):
Hi experts, We have 3 organisation in the network,(Financial institution 1, Distributor, Supplier), Do I need to install Fabric in all organization ? not clear on production deployment? , Please guide me

benjamin.lawler (Mon, 02 Jul 2018 18:29:09 GMT):
Has joined the channel.

anilkumar1998 (Mon, 02 Jul 2018 18:35:34 GMT):
Hi experts, When a transaction proposal is sent to endorsing peer. As part of endorsing they would check the identity of source. To this they need to communicate with CA right? But if peers won't communicate with CA, how will endorsing peer check the identity? Will the chaincode executed by endorsing peer checks?

anilkumar1998 (Mon, 02 Jul 2018 18:35:34 GMT):
Hi experts, If a transaction proposal is sent to endorsing peer. As part of endorsing they would check the identity of source. To this they need to communicate with CA right? But if peers won't communicate with CA, how will endorsing peer check the identity? Will the chaincode executed by endorsing peer checks?

benjamin.lawler (Mon, 02 Jul 2018 18:35:52 GMT):
Hi Folks. I'm trying to run the fabric-samples but am having some issues. I have traced my problem down to the execution of the configtxgen called just after cryptogen in the 'generate.sh' script. When I run: configtxgen -profile OneOrgOrdererGenesis -outputBlock ./config/genesis.block --> leads to an error stating: 2018-07-02 11:30:05.824 MST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-07-02 11:30:05.825 MST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-07-02 11:30:05.832 MST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced 2018-07-02 11:30:05.832 MST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced

benjamin.lawler (Mon, 02 Jul 2018 18:38:00 GMT):
Hi Folks. I'm trying to run the fabric-samples but am having some issues. I have traced my problem down to the execution of the configtxgen called just after cryptogen in the 'generate.sh' script. When I run: configtxgen -profile OneOrgOrdererGenesis -outputBlock ./config/genesis.block --> leads to an error stating: 2018-07-02 11:30:05.824 MST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-07-02 11:30:05.825 MST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-07-02 11:30:05.832 MST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced 2018-07-02 11:30:05.832 MST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced

tallharish (Mon, 02 Jul 2018 18:43:55 GMT):
Hi Folks, I am wondering if a peer endorse transactions in parallel? or only one a time, serially. From the specs, code and given the fact that there's only one CC docker container, i thought the transactions are executed in series. But I see the following pattern that makes me think otherwise. ``` 2018-06-27 21:41:56.306572 [endorser] preProcess -> INFO 84c [mychannel][e4a67e2c] processing txid: e4a67e2c8fbeb58ec7ecc65f3531285eb0513a81037b89bd5b65aeed91c78c30 2018-06-27 21:41:56.307333 [endorser] preProcess -> INFO 84e [mychannel][7f225fc0] processing txid: 7f225fc0581a9400d6c9d78f77a4d1af8c5d48dd4366d074fff34deb7640f74b 2018-06-27 21:41:56.311226 [endorser] preProcess -> INFO 850 [mychannel][1d81eb0f] processing txid: 1d81eb0f11bb1dc787a88c5843fe20c8d6352a0fc45ac261202cd5b28672a771 2018-06-27 21:41:56.322929 [endorser] preProcess -> INFO 852 [mychannel][099af750] processing txid: 099af7504dc1fdc39f2abe44dadc360e8ebedbe7a8dbf215eb120d43dc03f8b 2018-06-27 21:41:56.325607 [endorser] preProcess -> INFO 854 [mychannel][c836d5d1] processing txid: c836d5d109e1b47dfd80da5e5c0dde28905185ce27234f2ec79b2f246ef7ac90 2018-06-27 21:41:56.326378 [endorser] preProcess -> INFO 856 [mychannel][bbabf54f] processing txid: bbabf54f3f31e771b90dbb4ef25764a949e9646f14b1a62df61180aaacbdd6aa 2018-06-27 21:41:56.33944 [endorser] simulateProposal -> INFO 857 [mychannel][1d81eb0f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.33945 [endorser] simulateProposal -> INFO 858 [mychannel][099af750] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339455 [endorser] simulateProposal -> INFO 859 [mychannel][e4a67e2c] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339492 [endorser] simulateProposal -> INFO 85a [mychannel][7f225fc0] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339528 [endorser] simulateProposal -> INFO 85b [mychannel][c836d5d1] Entry chaincode: name:"simple" 2018-06-27 21:41:56.341067 [endorser] simulateProposal -> INFO 85c [mychannel][bbabf54f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.344293 [endorser] simulateProposal -> INFO 85d [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344323 [endorser] simulateProposal -> INFO 85e [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.344842 [endorser] endorseProposal -> INFO 85f [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344948 [endorser] simulateProposal -> INFO 861 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345051 [endorser] simulateProposal -> INFO 862 [mychannel][099af750] Exit 2018-06-27 21:41:56.345122 [endorser] simulateProposal -> INFO 863 [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.345186 [endorser] endorseProposal -> INFO 864 [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.345533 [endorser] simulateProposal -> INFO 866 [mychannel][bbabf54f] Exit 2018-06-27 21:41:56.345675 [endorser] endorseProposal -> INFO 867 [mychannel][099af750] Exit 2018-06-27 21:41:56.345758 [endorser] endorseProposal -> INFO 869 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345996 [endorser] endorseProposal -> INFO 86b [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.346204 [endorser] endorseProposal -> INFO 86d [mychannel][bbabf54f] Exit ```

tallharish (Mon, 02 Jul 2018 18:43:55 GMT):
Hi Folks, I am wondering if a peer endorse transactions in parallel (for e.g., VSCC signature validation)? or only one a time, serially. From the specs, code and given the fact that there's only one CC docker container, i thought the transactions are executed in series. But I see the following pattern that makes me think otherwise. ``` 2018-06-27 21:41:56.306572 [endorser] preProcess -> INFO 84c [mychannel][e4a67e2c] processing txid: e4a67e2c8fbeb58ec7ecc65f3531285eb0513a81037b89bd5b65aeed91c78c30 2018-06-27 21:41:56.307333 [endorser] preProcess -> INFO 84e [mychannel][7f225fc0] processing txid: 7f225fc0581a9400d6c9d78f77a4d1af8c5d48dd4366d074fff34deb7640f74b 2018-06-27 21:41:56.311226 [endorser] preProcess -> INFO 850 [mychannel][1d81eb0f] processing txid: 1d81eb0f11bb1dc787a88c5843fe20c8d6352a0fc45ac261202cd5b28672a771 2018-06-27 21:41:56.322929 [endorser] preProcess -> INFO 852 [mychannel][099af750] processing txid: 099af7504dc1fdc39f2abe44dadc360e8ebedbe7a8dbf215eb120d43dc03f8b 2018-06-27 21:41:56.325607 [endorser] preProcess -> INFO 854 [mychannel][c836d5d1] processing txid: c836d5d109e1b47dfd80da5e5c0dde28905185ce27234f2ec79b2f246ef7ac90 2018-06-27 21:41:56.326378 [endorser] preProcess -> INFO 856 [mychannel][bbabf54f] processing txid: bbabf54f3f31e771b90dbb4ef25764a949e9646f14b1a62df61180aaacbdd6aa 2018-06-27 21:41:56.33944 [endorser] simulateProposal -> INFO 857 [mychannel][1d81eb0f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.33945 [endorser] simulateProposal -> INFO 858 [mychannel][099af750] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339455 [endorser] simulateProposal -> INFO 859 [mychannel][e4a67e2c] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339492 [endorser] simulateProposal -> INFO 85a [mychannel][7f225fc0] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339528 [endorser] simulateProposal -> INFO 85b [mychannel][c836d5d1] Entry chaincode: name:"simple" 2018-06-27 21:41:56.341067 [endorser] simulateProposal -> INFO 85c [mychannel][bbabf54f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.344293 [endorser] simulateProposal -> INFO 85d [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344323 [endorser] simulateProposal -> INFO 85e [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.344842 [endorser] endorseProposal -> INFO 85f [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344948 [endorser] simulateProposal -> INFO 861 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345051 [endorser] simulateProposal -> INFO 862 [mychannel][099af750] Exit 2018-06-27 21:41:56.345122 [endorser] simulateProposal -> INFO 863 [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.345186 [endorser] endorseProposal -> INFO 864 [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.345533 [endorser] simulateProposal -> INFO 866 [mychannel][bbabf54f] Exit 2018-06-27 21:41:56.345675 [endorser] endorseProposal -> INFO 867 [mychannel][099af750] Exit 2018-06-27 21:41:56.345758 [endorser] endorseProposal -> INFO 869 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345996 [endorser] endorseProposal -> INFO 86b [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.346204 [endorser] endorseProposal -> INFO 86d [mychannel][bbabf54f] Exit ```

tallharish (Mon, 02 Jul 2018 18:43:55 GMT):
Hi Folks, I am wondering if a peer endorse transactions in parallel (for e.g., VSCC signature validation)? or only one a time, serially. From the specs, code and given the fact that there's only one CC docker container, i thought the transactions are executed in series. But I see the following pattern that makes me think otherwise. ``` 2018-06-27 21:41:56.306572 [endorser] preProcess -> INFO 84c [mychannel][e4a67e2c] processing txid: e4a67e2c8fbeb58ec7ecc65f3531285eb0513a81037b89bd5b65aeed91c78c30 2018-06-27 21:41:56.307333 [endorser] preProcess -> INFO 84e [mychannel][7f225fc0] processing txid: 7f225fc0581a9400d6c9d78f77a4d1af8c5d48dd4366d074fff34deb7640f74b 2018-06-27 21:41:56.311226 [endorser] preProcess -> INFO 850 [mychannel][1d81eb0f] processing txid: 1d81eb0f11bb1dc787a88c5843fe20c8d6352a0fc45ac261202cd5b28672a771 2018-06-27 21:41:56.322929 [endorser] preProcess -> INFO 852 [mychannel][099af750] processing txid: 099af7504dc1fdc39f2abe44dadc360e8ebedbe7a8dbf215eb120d43dc03f8b 2018-06-27 21:41:56.325607 [endorser] preProcess -> INFO 854 [mychannel][c836d5d1] processing txid: c836d5d109e1b47dfd80da5e5c0dde28905185ce27234f2ec79b2f246ef7ac90 2018-06-27 21:41:56.326378 [endorser] preProcess -> INFO 856 [mychannel][bbabf54f] processing txid: bbabf54f3f31e771b90dbb4ef25764a949e9646f14b1a62df61180aaacbdd6aa 2018-06-27 21:41:56.33944 [endorser] simulateProposal -> INFO 857 [mychannel][1d81eb0f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.33945 [endorser] simulateProposal -> INFO 858 [mychannel][099af750] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339455 [endorser] simulateProposal -> INFO 859 [mychannel][e4a67e2c] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339492 [endorser] simulateProposal -> INFO 85a [mychannel][7f225fc0] Entry chaincode: name:"simple" 2018-06-27 21:41:56.339528 [endorser] simulateProposal -> INFO 85b [mychannel][c836d5d1] Entry chaincode: name:"simple" 2018-06-27 21:41:56.341067 [endorser] simulateProposal -> INFO 85c [mychannel][bbabf54f] Entry chaincode: name:"simple" 2018-06-27 21:41:56.344293 [endorser] simulateProposal -> INFO 85d [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344323 [endorser] simulateProposal -> INFO 85e [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.344842 [endorser] endorseProposal -> INFO 85f [mychannel][e4a67e2c] Exit 2018-06-27 21:41:56.344948 [endorser] simulateProposal -> INFO 861 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345051 [endorser] simulateProposal -> INFO 862 [mychannel][099af750] Exit 2018-06-27 21:41:56.345122 [endorser] simulateProposal -> INFO 863 [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.345186 [endorser] endorseProposal -> INFO 864 [mychannel][7f225fc0] Exit 2018-06-27 21:41:56.345533 [endorser] simulateProposal -> INFO 866 [mychannel][bbabf54f] Exit 2018-06-27 21:41:56.345675 [endorser] endorseProposal -> INFO 867 [mychannel][099af750] Exit 2018-06-27 21:41:56.345758 [endorser] endorseProposal -> INFO 869 [mychannel][1d81eb0f] Exit 2018-06-27 21:41:56.345996 [endorser] endorseProposal -> INFO 86b [mychannel][c836d5d1] Exit 2018-06-27 21:41:56.346204 [endorser] endorseProposal -> INFO 86d [mychannel][bbabf54f] Exit ``` If you see logs starting from `simulateProposal`, the first 5 tx enter the simulateProposal, and then start leaving in batches (at .344293 onwards). Each one is roughly taking the same time, around 4 to 5 ms. Note that this peer has 4 CPUs (1 socket, 4 cores), and had just finished processing a block, so the system should be idle otherwise. Also, I checked the client instance, and indeed these 4-5 transactions are sent with inter-arrival times of 2-3 ms each.

kesavants (Mon, 02 Jul 2018 21:05:35 GMT):
Can someone please point me to docs which list the purpose of each directory/folder structure and files created by cryptogen tool

PhilipNdiritu (Mon, 02 Jul 2018 22:46:12 GMT):
Has joined the channel.

PhilipNdiritu (Mon, 02 Jul 2018 22:48:44 GMT):
Hello guys. I keep running into this error "Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium" when I try creating a channel. Any insight into what I could do? My network consists of only one consortium containing one organisation (that has 3 peers) and a solo orderer

danny_lee (Mon, 02 Jul 2018 23:07:25 GMT):
Has joined the channel.

DinghaoLI 1 (Tue, 03 Jul 2018 03:02:34 GMT):
Has joined the channel.

AshishKaila (Tue, 03 Jul 2018 04:03:01 GMT):
Hey guys I am stuck on trying to install chaincode on basic network

AshishKaila (Tue, 03 Jul 2018 04:03:08 GMT):
None of the samples seem to work !

AshishKaila (Tue, 03 Jul 2018 04:03:20 GMT):
Does anyone have a good video tutorial please

miiiiiyoung (Tue, 03 Jul 2018 04:26:27 GMT):
Has joined the channel.

AshishKaila (Tue, 03 Jul 2018 04:33:07 GMT):
In my case I am running a basic network and am able to install a chaincode

AshishKaila (Tue, 03 Jul 2018 04:33:12 GMT):
However when I run: peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}'

AshishKaila (Tue, 03 Jul 2018 04:33:20 GMT):
I am getting Error: error getting broadcast client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

miiiiiyoung (Tue, 03 Jul 2018 04:35:00 GMT):
Hi, everyone. I have a question. In fabric-ca-client container, I execute that command to enroll admin user. ```fabric-ca-client enroll --caname $FABRIC_CA_CLIENT_CA_NAME --tls.certfiles $FABRIC_CA_CLIENT_TLS_CERTFILE --tls.client.certfile $FABRIC_CA_CLIENT_TLS_CERTFILE --tls.client.keyfile $FABRIC_CA_CLIENT_TLS_KEYFILE -u https://admin:adminpw@ca.org1.honeybee.com:7054``` And then, I can search `fabric-ca-client identity list`. Can i configure enrollment process in fabric-ca-client-config.yaml file, Instead of this command?

AshishKaila (Tue, 03 Jul 2018 04:56:25 GMT):
Seems like no one helps here ? :)

miiiiiyoung (Tue, 03 Jul 2018 04:57:31 GMT):
@AshishKaila What is the result of `docker container ls -a` command? And, did you configure orderer type to kafka?

AshishKaila (Tue, 03 Jul 2018 04:57:46 GMT):
Ok I got stuff to work. The samples have wrong command line

AshishKaila (Tue, 03 Jul 2018 04:58:44 GMT):
I am using basic network

AshishKaila (Tue, 03 Jul 2018 04:58:58 GMT):
The only mod I did was to start cli as part of startup

miiiiiyoung (Tue, 03 Jul 2018 05:01:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cLFP3ZKzS6Ci7ZpTA) @AshishKaila You just started basic network?

AshishKaila (Tue, 03 Jul 2018 05:03:05 GMT):
I wanted to start basic network and install/invoke chaincode_example02 node chaincode on top

AshishKaila (Tue, 03 Jul 2018 05:03:37 GMT):
I don;t know why they picked Go for this tbh....

miiiiiyoung (Tue, 03 Jul 2018 05:06:53 GMT):
@AshishKaila Where do you run `peer chaincode instantiate' command? In cli container?

AshishKaila (Tue, 03 Jul 2018 05:06:59 GMT):
yes

AshishKaila (Tue, 03 Jul 2018 05:07:20 GMT):
its easier to run CLI then to have crazy long CLI commands with all the env variables

miiiiiyoung (Tue, 03 Jul 2018 05:09:13 GMT):
basic-network sample have a cli container? I'm watching basic-network's docker-compose file, but i can't find cli container.

miiiiiyoung (Tue, 03 Jul 2018 05:10:07 GMT):
Oh, It has cli container, sorry.

miiiiiyoung (Tue, 03 Jul 2018 05:10:13 GMT):
I will try that command.

AshishKaila (Tue, 03 Jul 2018 05:10:20 GMT):
in start.sh

AshishKaila (Tue, 03 Jul 2018 05:10:29 GMT):
Replace: docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb with: docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb cli

miiiiiyoung (Tue, 03 Jul 2018 05:18:33 GMT):
I think, TLS certificate has a problem. Run that command except --tls and --cafile option, It works successfully. Try ```peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}'``` command.

AshishKaila (Tue, 03 Jul 2018 05:20:05 GMT):
I ran this: peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'

AshishKaila (Tue, 03 Jul 2018 05:20:47 GMT):
Saw it here: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

miiiiiyoung (Tue, 03 Jul 2018 05:22:32 GMT):
@AshishKaila Are you trying multi host test??

AshishKaila (Tue, 03 Jul 2018 05:23:47 GMT):
No not to start with no

miiiiiyoung (Tue, 03 Jul 2018 05:37:30 GMT):
In my basic-network, I can run `peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'` command with any errors.

Nestoteles (Tue, 03 Jul 2018 06:19:26 GMT):
Has joined the channel.

Nestoteles (Tue, 03 Jul 2018 06:21:45 GMT):
Hello, I have one question on the configuration of the kafka ordering service. What is the minimal value for batch timeout? Unfortunately I did not find any docs on this.

UTKARSHBIST (Tue, 03 Jul 2018 06:26:01 GMT):
How to construct hyperledger fabric architecture to read the real time data from sensors and securely store it on database, once all the endorsing peers has verified the blocks.

Taffies (Tue, 03 Jul 2018 07:58:31 GMT):
hi! anyone used SSL with kafka for fabric before?

yunukim (Tue, 03 Jul 2018 08:07:15 GMT):
Has joined the channel.

yulong12 (Tue, 03 Jul 2018 09:45:58 GMT):
Hi,everyone. I have a question. I base on this tutorials _https://github.com/hyperledger/fabric-sdk-go_ when I execute the command `make`, there appears problems ``` Running check_license.sh Examining last commit changes All files have SPDX-License-Identifier headers Populating vendor ... Running check_lint_tests.sh Examining last commit changes Test scripts, fixtures or metadata changed - running all tests Directories to lint: test/integration test/integration/e2e test/integration/e2e/configless test/integration/expiredorderer test/integration/expiredpeer test/integration/fab test/integration/msp test/integration/orgs test/integration/pkcs11 test/integration/revoked test/integration/sdk test/metadata Running metalinters... internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:237:3:warning: unused variable or constant NewAttribute not declared by package pkcs11 (varcheck) internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:236:3:warning: unused variable or constant NewAttribute not declared by package pkcs11 internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:354:38:warning: unused variable or constant Mechanism not declared by package pkcs11 (varcheck) make: *** [lint-integration-tests] Error 1 ```

yulong12 (Tue, 03 Jul 2018 09:46:10 GMT):
so who can help me>?

SP448762 (Tue, 03 Jul 2018 10:31:14 GMT):
Has joined the channel.

SP448762 (Tue, 03 Jul 2018 10:31:37 GMT):
Hi, I am receiving an error when I try to install a business network `Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error 2 UNKNOWN: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN ...` Does anyone know what the problem might be?

edevil (Tue, 03 Jul 2018 10:59:58 GMT):
Has joined the channel.

Tommy109 (Tue, 03 Jul 2018 11:15:12 GMT):
Hi all, im setting up the marbles demo from ibm in a local environment and I have got as far as instantiating the chaincode step but i need to generate the keys. How do I go about this? Do I use the sdk option since I am not doing it via ibm cloud?

Tommy109 (Tue, 03 Jul 2018 11:15:34 GMT):
I dont see how the keys are generated if not using the ibm platform

Miruthan (Tue, 03 Jul 2018 13:56:42 GMT):
Hi, Could someone please guide me to configure the endorsement policy, I have 10 organization and 10 endorsing peer, I need at least 7 endorsing peer to sign to validate the transaction?

midhun14 (Tue, 03 Jul 2018 13:59:57 GMT):
Am getting this error when I try to join a peer to a channel

midhun14 (Tue, 03 Jul 2018 13:59:57 GMT):
Am getting this error when I try to join a peer to a channel using peer channel join

midhun14 (Tue, 03 Jul 2018 14:00:24 GMT):
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "tlsca.org1.example.com"

kesavants (Tue, 03 Jul 2018 16:39:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m9RQLcceFWAK43YxS) Help please

SorianoTech (Tue, 03 Jul 2018 18:24:43 GMT):
hi all, any one could tell me how to stop and up again the dockers and have all the information of the participant saved?

yulong12 (Wed, 04 Jul 2018 01:24:52 GMT):
Hi,everyone. I have a question. I base on this tutorials _https://github.com/hyperledger/fabric-sdk-go_ when I execute the command `make`, there appears problems ``` Running check_license.sh Examining last commit changes All files have SPDX-License-Identifier headers Populating vendor ... Running check_lint_tests.sh Examining last commit changes Test scripts, fixtures or metadata changed - running all tests Directories to lint: test/integration test/integration/e2e test/integration/e2e/configless test/integration/expiredorderer test/integration/expiredpeer test/integration/fab test/integration/msp test/integration/orgs test/integration/pkcs11 test/integration/revoked test/integration/sdk test/metadata Running metalinters... internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:237:3:warning: unused variable or constant NewAttribute not declared by package pkcs11 (varcheck) internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:236:3:warning: unused variable or constant NewAttribute not declared by package pkcs11 internal/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:354:38:warning: unused variable or constant Mechanism not declared by package pkcs11 (varcheck) make: *** [lint-integration-tests] Error 1 ``` so who can help me>?

sejalsoftware (Wed, 04 Jul 2018 01:34:21 GMT):
Has joined the channel.

Johancbakker (Wed, 04 Jul 2018 01:38:34 GMT):
Has joined the channel.

mmick (Wed, 04 Jul 2018 05:52:15 GMT):
how long does it take to propose a transaction and then committing that transaction to the ledger?

mmick (Wed, 04 Jul 2018 05:52:15 GMT):
how long does it take to propose a transaction and then committing that transaction to the ledger? and then updating all the peer node ledgers with the updated information? (2 nodes in a 2 organization network ) total 4 nodes.

ajmeraharsh (Wed, 04 Jul 2018 06:22:21 GMT):
So now we have two *PoCs* open for public reference. Hyperledger *Fabric*: https://bit.ly/2sRYBAQ Hyperledger *Sawtooth*: https://bit.ly/2MJDIPU Do share your feedback

anjalinaik (Wed, 04 Jul 2018 06:40:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ENFde263Epainaie3) @ajmeraharsh Good work Hyperledger Fabric: https://bit.ly/2sRYBAQ :thumbsup:

suryasuresh06 (Wed, 04 Jul 2018 06:41:55 GMT):
Hi everyone. I have a small query. When I run the registerUser.js, I get an error that User registration failed. 'User identity already exists'. How do I solve this

suryasuresh06 (Wed, 04 Jul 2018 07:06:51 GMT):
this is the error code: Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'user3' failed: Identity 'user3' is already registered"}]]

anjalinaik (Wed, 04 Jul 2018 07:15:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=69eByMJvXZDXLQ9LP) @suryasuresh06 The user3 is already registered to CA server, that is why you are facing the error.Please provide a new username and register a new user if the user3 certificates are revoked.

devendrarg (Wed, 04 Jul 2018 07:15:44 GMT):
Hi everyone, I've TwoOrgChannel when trying to query chaincode by using Org2 user..getting following error "access denied: channel [mychannel] creator org [Org2]"

devendrarg (Wed, 04 Jul 2018 07:16:13 GMT):
Also check peer log of org2 it is saying..."channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority"

devendrarg (Wed, 04 Jul 2018 07:16:23 GMT):
Can someone please help?

mimijerson (Wed, 04 Jul 2018 07:26:00 GMT):
Has joined the channel.

devendrarg (Wed, 04 Jul 2018 07:31:25 GMT):
Note: my network is configured with single CA (org1)..Do we need have two different CAs for two different orgs?

Miruthan (Wed, 04 Jul 2018 07:58:50 GMT):
How to differentiate Organization user as Admin and Member ?

Miruthan (Wed, 04 Jul 2018 07:58:54 GMT):
Can you please guide me

AnthonyRoux (Wed, 04 Jul 2018 08:02:28 GMT):
Hi to all ! My peers and my chaincode containers crashed during the night and I don't know how to restart them. When I execute `peer node start` inside the first peer container I got `panic: Error while trying to open DB: resource temporarily unavailable `. it seems I can't start them with the CLI either. Any idea where I can find useful info concerning this usecase ? If you want more info on my config PM me

ajmeraharsh (Wed, 04 Jul 2018 08:05:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mGTbryW4FWFz2zsJi) @devendrarg In ideal case, yes!

suryasuresh06 (Wed, 04 Jul 2018 08:09:32 GMT):
@anjalinaik when I run the command fabric-ca-client identity list, I get the following : Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort

suryasuresh06 (Wed, 04 Jul 2018 08:10:23 GMT):
I am manually entering the registerUser.js file and changing the user everytime, from user 1 to user 2 and so on. Is there any way I can delete all the existing users. The revoke command isn't working for me. I get the same error as above

suryasuresh06 (Wed, 04 Jul 2018 08:11:27 GMT):
I didn't have this problem when I ran the fabcar network with 1 peer. Now I extended it to multiple peers and surprisingly, getting this issue

Rajalekshmy (Wed, 04 Jul 2018 08:50:50 GMT):
Hi, Anybody is using Azure hyperledger?

GowriR (Wed, 04 Jul 2018 08:58:09 GMT):
hi all, i ran the network i have configured using docker-compose up. All the containers i wanted got created but there are some messages in "red" should i bother too much about it?

GowriR (Wed, 04 Jul 2018 08:58:11 GMT):
peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] unmarshalJSON -> DEBU 002 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 003 Found real value for peer.BCCSP.Default setting to string SW peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 004 Found map[string]interface{} value for peer.BCCSP.SW peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Hash setting to string SHA2 peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: 256 peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.SW.Security setting to int 256 peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 00c Found map[string]interface{} value for peer.BCCSP.PKCS11 peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string: peer0.utilityorg.utility.com | 2018-07-05 00:41:19.466 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Security setting to peer0.utilityorg.utility.com | 2018-07-05 00:41:19.467 UTC [viperutil] getKeysRecursively -> DEBU 00f Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore peer0.utilityorg.utility.com | 2018-07-05 00:41:19.467 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value is not a string: peer0.utilityorg.utility.com | 2018-07-05 00:41:19.467 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to peer0.utilityorg.utility.com | 2018-07-05 00:41:19.467 UTC [viperutil] unmarshalJSON -> DEBU 012 Unmarshal JSON: value is not a string: peer0.utilityorg.utility.com | 2018-07-05 00:41:19.467 UTC [viperutil] getKeysRecursively -> DEBU 013 Found real value for peer.BCCSP.PKCS11.Library setting to

suryasuresh06 (Wed, 04 Jul 2018 11:34:51 GMT):
When I execute the registerUser.js command, where does the user get stored along with certificates. Where does the command fabric-ca-client identity list fetch all the user details from

devendrarg (Wed, 04 Jul 2018 11:50:10 GMT):
access denied: channel [mychannel] creator org [Org2MSP] ?

nabil941994 (Wed, 04 Jul 2018 11:55:20 GMT):
Hello guys, i am trying to connect two peers on different VMs via swarm and overlay, everything seems fine until i try connecting the second peer peer0 org1 peer0 org2 i am getting the following error: WARN 1ec Could not connect to {peer0.org1.example.com:7051 [] [] peer0.org1.example.com:7051 } : failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity cannot be validated. No MSP found able to do that.

DaraPenhchet (Wed, 04 Jul 2018 11:56:00 GMT):
Hello every, could I ask all of you how to get the payload in the by the TransactionId by using the Fabric Java SDK?

nabil941994 (Wed, 04 Jul 2018 11:56:30 GMT):
I am using the following commands to run peers : peer0 org1 docker run --rm -it --link orderer.example.com:orderer.example.com --network="my-net" --name peer0.org1.example.com -p 8051:7051 -p 8053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e CORE_LOGGING_LEVEL=DEBUG -e CORE_PEER_NETWORKID=peer0.org1.example.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.org1.example.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 -e CORE_PEER_TLS_ENABLED=false -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_LOCALMSPID=Org1MSP -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start peer0 org2 docker run --rm -it --network="my-net" --link orderer.example.com:orderer.example.com --link peer0.org1.example.com:peer0.org1.example.com --name peer0.org2.example.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e CORE_LOGGING_LEVEL=DEBUG -e CORE_PEER_NETWORKID=peer0.org2.example.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.org2.example.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=false -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=Org2MSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp2 -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start

devendrarg (Wed, 04 Jul 2018 12:51:53 GMT):
Can anyone plz answer https://stackoverflow.com/questions/50942940/access-denied-channel-mychannel-creator-org-org2msp ?

MonnyClara (Wed, 04 Jul 2018 14:38:36 GMT):
Hey guys, I'm trying to make the creation of `crypto-config.yaml` and `configtx.yaml` as automated as possible

MonnyClara (Wed, 04 Jul 2018 14:38:36 GMT):
Hey guys, I'm trying to make the creation of `crypto-config.yaml` and `configtx.yaml` as automated as possible. For `crypto-config.yaml` it was quite easy, but I struggle with `configtx.yaml` because of the yaml anchors ... Do someone know a good way to manipulate yaml and anchors ?

MonnyClara (Wed, 04 Jul 2018 14:38:36 GMT):
Hey guys, I'm trying to make the creation of `crypto-config.yaml` and `configtx.yaml` as automated as possible. For `crypto-config.yaml` it was quite easy, but I struggle with `configtx.yaml` because of the yaml anchors ... Do someone know a good way to manipulate yaml and anchors ? In case you want to take a look : https://github.com/migonidec/Fabric-config.git (that's just a draft, I'll take care of it later)

zainmustafa (Wed, 04 Jul 2018 14:42:02 GMT):
Has joined the channel.

anantwag19 (Wed, 04 Jul 2018 19:20:17 GMT):
Has joined the channel.

anantwag19 (Wed, 04 Jul 2018 19:20:58 GMT):
Hi iam new to the blockchain and hyperlydger i need some help : Testing a Chaincode Using a Mock Shim

anantwag19 (Wed, 04 Jul 2018 19:21:35 GMT):
any help i can get in this regrads , incase of any good document with screenshots or tutorial will be helpful

goelmayank (Thu, 05 Jul 2018 06:29:01 GMT):
Hi guys, Is there a way to migrate our hyperledger composer poject to hyperledger Fabric?

ajmeraharsh (Thu, 05 Jul 2018 06:50:56 GMT):
@goelmayank unfortunately, that way is called `manually`

goelmayank (Thu, 05 Jul 2018 07:00:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jZh83kfHaRkzZmEX9) @ajmeraharsh Hi , is there any way tutorial to go about doing it manually

goelmayank (Thu, 05 Jul 2018 07:00:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jZh83kfHaRkzZmEX9) @ajmeraharsh Hi @ajmeraharsh, is there any way tutorial to go about doing it manually

ajmeraharsh (Thu, 05 Jul 2018 07:03:29 GMT):
@goelmayank yes, understand the Fabric SDK and you would need to do all the math there, instead of composer.

ajmeraharsh (Thu, 05 Jul 2018 07:03:29 GMT):
@goelmayank yes, understand the Fabric SDK and you would need to do all the maths there, instead of composer.

OviiyaDominic (Thu, 05 Jul 2018 07:06:31 GMT):
Has joined the channel.

pankajcheema (Thu, 05 Jul 2018 07:12:14 GMT):
Anyone knows who is consentor in network?

goelmayank (Thu, 05 Jul 2018 07:25:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bkD3Rts4rpc22LXpk) @ajmeraharsh In case I plan to skip making a go chaincode, can I use the bna file to work with the fabric network.. I don't understand the peers and orderers with the composer code

seetharamangr (Thu, 05 Jul 2018 07:29:28 GMT):
I have tested the private data feature with a collection with predefined collection config. I have instantiated a chaincode in a channel with private data collection config, Is there any way to change the collection config after the chaincode is instantiated on the channel. Like Initial collection i have mentioned Org1 and Org2 in the collection policy, Later I want to add the Org3 to the same collection in the channel. Is this Doable, any reference will be helpful. Thanks

ajmeraharsh (Thu, 05 Jul 2018 07:34:11 GMT):
@goelmayank IMO nothing from composer playground can be used in Fabric. Composer is an abstraction layer on top of Fabric.

ajmeraharsh (Thu, 05 Jul 2018 07:34:11 GMT):
@goelmayank IMO nothing from composer can be used in Fabric. Composer is an abstraction layer on top of Fabric.

devendrarg (Thu, 05 Jul 2018 07:38:30 GMT):
Any example of two org hyperledger network in which both orgs can query chincode?

devendrarg (Thu, 05 Jul 2018 07:38:36 GMT):
Thanks in advance

devendrarg (Thu, 05 Jul 2018 07:44:38 GMT):
hyperledger fabric sample app which has this type of network setup

OviiyaDominic (Thu, 05 Jul 2018 08:41:13 GMT):
Hi, is there any way to get endorser's signing time for a valid transaction ?

yacovm (Thu, 05 Jul 2018 09:38:09 GMT):
@OviiyaDominic nope, there is a field for it but it was never populated

sstone1 (Thu, 05 Jul 2018 10:00:58 GMT):
@goelmayank a Composer BNA is just a Fabric chaincode, and a Composer BNA can be deployed to any Fabric network. Composer does not do anything in terms of setting up peers/orderers/CAs/channels for you - you still need to build the Fabric network yourself, and then you can deploy your Composer BNA to it.

Mahesh-Raj (Thu, 05 Jul 2018 10:04:44 GMT):
@sstone1 what if I don't need composer-playground. can I still install the BNA I exported from bluemix?

Mahesh-Raj (Thu, 05 Jul 2018 10:05:38 GMT):
As I have heard Composer Playground is not production ready yet! and it has performance issues as compared to sdk

sstone1 (Thu, 05 Jul 2018 10:06:05 GMT):
yeah, you don't need to use the playground at all. the playground is for learning. you should really be using a proper IDE (we like VS Code, but you can use any IDE you like) for development. if you export a BNA from playground you can deploy that to any fabric.

sstone1 (Thu, 05 Jul 2018 10:06:17 GMT):
composer playground is never going to be production ready, it's a playground ;-)

sstone1 (Thu, 05 Jul 2018 10:06:27 GMT):
but composer v0.19.x we think is ready for production

sstone1 (Thu, 05 Jul 2018 10:06:40 GMT):
and we've been putting a lot of performance improvements in recently

ajmeraharsh (Thu, 05 Jul 2018 10:11:09 GMT):
Adding to that @sstone1 Do you recommend reaching the Fabric network via Composer Rest-Server or Fabric SDK? I believe SDK would be a better choice.

sstone1 (Thu, 05 Jul 2018 10:12:00 GMT):
you can use the Composer REST server or the Composer Node.js SDK (composer-client), it depends on how you want to write your application

sstone1 (Thu, 05 Jul 2018 10:12:24 GMT):
you could use the Fabric Node.js SDK if you want, but you'll have to write a bunch more code and figure out what chaincode calls to make ;-)

sstone1 (Thu, 05 Jul 2018 10:13:30 GMT):
the Composer Node.js SDK is just a wrapper on top of the Fabric Node.js SDK btw

ajmeraharsh (Thu, 05 Jul 2018 10:13:31 GMT):
performance wise Composer SDK would be better than Rest Server right?

sstone1 (Thu, 05 Jul 2018 10:14:02 GMT):
probably, but if you're just going to wrap the Composer SDK in your own REST APIs, then i suspect it's not worth the hassle

ajmeraharsh (Thu, 05 Jul 2018 10:15:19 GMT):
I get that, makes sense

ajmeraharsh (Thu, 05 Jul 2018 10:16:47 GMT):
thanks a lot @sstone1 for the help

sstone1 (Thu, 05 Jul 2018 10:17:37 GMT):
np

seetharamangr (Thu, 05 Jul 2018 10:18:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7zRZRt5R7psx9Jew3) @sstone1 Could you please help me on this, Thanks in advance

TomlordSir (Thu, 05 Jul 2018 10:32:24 GMT):
Has joined the channel.

prtk418 (Thu, 05 Jul 2018 11:06:39 GMT):
Hello guys, since I am facing lots of trouble in implementing my app in generated angular, I am switching to PHP codeigniter for the UI, do you think I will face any kind of problem somewhere with doing it in php? I really need to know this, maybe if someone has done, please do reply

midhun14 (Thu, 05 Jul 2018 11:06:51 GMT):
Could someone plz help me in adding a new organization to existing network with multinode setup

prtk418 (Thu, 05 Jul 2018 11:07:06 GMT):
Is there a way to issue new identities using PHP webapp, I created UI for crud using PHP , and the rest server generated by composer, but now I am not able to find a way to issue new identities, plz help anyone

OviiyaDominic (Thu, 05 Jul 2018 12:47:02 GMT):
can ACL (Access over the assets and tranasctions - ACL in BNA) be achieved in fabric chaincode?

yacovm (Thu, 05 Jul 2018 12:48:03 GMT):
@OviiyaDominic what do you mean ACL be achieved in fabric chaincode? Do you mean - can a chaincode restrict access control to specific users?

yacovm (Thu, 05 Jul 2018 12:48:16 GMT):
(or organizations)

OviiyaDominic (Thu, 05 Jul 2018 12:49:01 GMT):
yes, acl which is specific to organizations

yacovm (Thu, 05 Jul 2018 12:49:17 GMT):
well there is no such thing in reality...

yacovm (Thu, 05 Jul 2018 12:49:27 GMT):
as long as the client has permission to pull blocks from the orderer

yacovm (Thu, 05 Jul 2018 12:49:39 GMT):
it can also read the stuff right?

yacovm (Thu, 05 Jul 2018 12:49:58 GMT):
so the only real way to do that - is just make all clients not be able to pull blocks from the orderers

yacovm (Thu, 05 Jul 2018 12:50:01 GMT):
which is possible....

yacovm (Thu, 05 Jul 2018 12:50:07 GMT):
but you need to make sure that's what you do

yacovm (Thu, 05 Jul 2018 12:50:38 GMT):
because without this - access control in the chaincode for data that is in the blocks themselves can be just bypassed by clients downloading all the blocks

OviiyaDominic (Thu, 05 Jul 2018 12:51:29 GMT):
actually where does these blocks get stored in our local system

yacovm (Thu, 05 Jul 2018 12:51:43 GMT):
under `/var/hyperledger/production/`

OviiyaDominic (Thu, 05 Jul 2018 12:52:58 GMT):
is tis the one - /var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000

Rachit_gaur (Thu, 05 Jul 2018 12:53:04 GMT):
I have been using hyperledger fabric to develop my chaincode and have successfully instantiated on a channel with multiple organizations. The endorsement policies have been set to be signed by all the organization using the consensus protocol, but I am not able to understand how would I accept the transaction when I call the invoke function Do I have to pass some parameters in the arguments for the same? Please help me understand how to enable signing in the case of all the organizations agreeing to the transaction

Ryan2 (Thu, 05 Jul 2018 12:53:45 GMT):
2018-07-05 12:51:54.278 UTC [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" I got this error when compile peer, this lead to cannot use peer CLI, how can avoid this error

Ryan2 (Thu, 05 Jul 2018 12:53:45 GMT):
2018-07-05 12:51:54.278 UTC [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" I got this error when compile peer, fabric v1.2.0, this lead to cannot use peer CLI, how can avoid this error

Ryan2 (Thu, 05 Jul 2018 12:53:45 GMT):
2018-07-05 12:51:54.278 UTC [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" I got this error when compile peer, fabric v1.2.0, this lead to cannot use peer CLI, how can avoid this error https://hastebin.com/izoquxaxog.rb

yacovm (Thu, 05 Jul 2018 12:58:21 GMT):
@OviiyaDominic yes

OviiyaDominic (Thu, 05 Jul 2018 12:59:47 GMT):
but the contents in the file is not hashed !

yacovm (Thu, 05 Jul 2018 13:00:00 GMT):
of course it's not hashed

yacovm (Thu, 05 Jul 2018 13:00:06 GMT):
it's the public block

Rachit_gaur (Thu, 05 Jul 2018 13:00:26 GMT):
can someone help me with the consensus protocol??

ongkhaiwei (Thu, 05 Jul 2018 13:48:42 GMT):
Has joined the channel.

kmohanar1 (Thu, 05 Jul 2018 14:48:25 GMT):
Has joined the channel.

kmohanar1 (Thu, 05 Jul 2018 14:48:42 GMT):
Hi All, I have query related to node sdk, I am trying to invoke my chaincode funtion from the restclitn/postman, i am getting the below error in the node server log [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: No Such FunctionInvoke) Can you please help on this to rectify this error.

anzalbeg (Thu, 05 Jul 2018 14:54:29 GMT):
Has joined the channel.

anzalbeg (Thu, 05 Jul 2018 14:54:40 GMT):
Hi All Just need one clarification on fabric-ca example in fabric-sample folder. I used fabric-ca example to create certificates via fabric Certificate Authority. After successfully running it, 1 orderer, 1 ca, 2 peers and 1 chaincode containers are started successfully. My Question is that Is it possible to deploy all this container services to kubernetes using *KOMPOSE *tool by converting the docker-compose.yaml file to kubernetes resources??

brelane (Thu, 05 Jul 2018 15:39:16 GMT):
Has joined the channel.

brelane (Thu, 05 Jul 2018 15:47:52 GMT):
can anyone help me out with this error

brelane (Thu, 05 Jul 2018 15:48:01 GMT):
unknown anchor 'ChannelCapabilities' referenced panic

brelane (Thu, 05 Jul 2018 15:48:43 GMT):
not sure what it is referring to. I am running Docker version 17.12.1-ce, build 7390fc6 on ubuntu LTS 18.04

brelane (Thu, 05 Jul 2018 15:49:23 GMT):
and I am just doing the "first-network" tutorial that is referenced in the documentation.

brelane (Thu, 05 Jul 2018 15:49:52 GMT):
full error:

brelane (Thu, 05 Jul 2018 15:49:57 GMT):
2018-07-05 10:23:06.107 CDT [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced

corykacal (Thu, 05 Jul 2018 15:59:46 GMT):
Does anyone know a command to find out the public key of the peer calling some chain code? Like the 'msg.sender' in solidity

brelane (Thu, 05 Jul 2018 16:50:27 GMT):
apparently my issue is something to do with docker-compose? anyone have any ideas about that

Saurabh1402 (Thu, 05 Jul 2018 17:43:59 GMT):
Has joined the channel.

Saurabh1402 (Thu, 05 Jul 2018 17:44:36 GMT):
which language is required to contribute to fabric

ThomasBereczky (Thu, 05 Jul 2018 17:54:34 GMT):
Hey Guys

ThomasBereczky (Thu, 05 Jul 2018 17:54:39 GMT):
I'm in a bit of a trouble

ThomasBereczky (Thu, 05 Jul 2018 17:54:50 GMT):
I am testing how to create multiorganizations on the chain

ThomasBereczky (Thu, 05 Jul 2018 17:56:00 GMT):
I got this error when I try to create a BNA --> 

ThomasBereczky (Thu, 05 Jul 2018 17:56:01 GMT):
Error: Network configuration is missing this client's organization and certificate authority

ThomasBereczky (Thu, 05 Jul 2018 17:56:13 GMT):
my PeerAdmin card looks like this

ThomasBereczky (Thu, 05 Jul 2018 17:58:26 GMT):
{ "name":"alaskaair", "x-type":"hlfv1", "x-commitTimeout":300, "version":"1.0.0", "client":{ "organization":"alaskaair", "connection":{ "timeout":{ "peer":{ "endorser":"300", "eventHub":"300", "eventReg":"300" }, "orderer":"300" } } }, "channels":{ "composerchannel":{ "orderers":[ "orderer0.blockknowhow.com", "orderer1.blockknowhow.com" ], "peers":{ "peer0.alaskaair.blockknowhow.com":{ }, "peer1.alaskaair.blockknowhow.com":{ } } } }, "organizations":{ "alaskaair":{ "mspid":"alaskaairMSP", "peers":[ "peer0.alaskaair.blockknowhow.com", "peer1.alaskaair.blockknowhow.com" ], "certificateAuthorities":[ "ca0.alaskaair.blockknowhow.com", "ca1.alaskaair.blockknowhow.com" ] } }, "orderers":{ "orderer0.blockknowhow.com":{ "url":"grpc://orderer0.blockknowhow.com:7050" }, "orderer1.blockknowhow.com":{ "url":"grpc://orderer1.blockknowhow.com:7050" } }, "peers":{ "peer0.blockknowhow.com":{ "url":"grpc://peer0.blockknowhow.com:50296", "eventUrl":"grpc://peer0.blockknowhow.com:50196" }, "peer1.blockknowhow.com":{ "url":"grpc://peer1.blockknowhow.com:50296", "eventUrl":"grpc://peer1.blockknowhow.com:50196" } }, "certificateAuthorities":{ "ca0.blockknowhow.com":{ "url":"http://ca0.blockknowhow.com:24098", "caName":"ca0.blockknowhow.com" }, "ca1.blockknowhow.com":{ "url":"http://ca1.blockknowhow.com:24098", "caName":"ca1.blockknowhow.com" } } }

ThomasBereczky (Thu, 05 Jul 2018 17:59:36 GMT):
(I already stopped the instance but the admin file looks like this)

elciusferreira (Thu, 05 Jul 2018 19:04:23 GMT):
Has joined the channel.

dv29 (Thu, 05 Jul 2018 23:17:58 GMT):
Has joined the channel.

bmjain (Thu, 05 Jul 2018 23:20:31 GMT):
Has joined the channel.

bmjain (Thu, 05 Jul 2018 23:20:43 GMT):
Hi All, I was wondering if we have any end to end sample application with chaincode written in Nodejs?

ArsTelep (Fri, 06 Jul 2018 00:09:46 GMT):
Has joined the channel.

pankajcheema (Fri, 06 Jul 2018 04:50:55 GMT):
Can anyone provide me a link to `channel collection` tutorial?

BabuPallam (Fri, 06 Jul 2018 05:30:50 GMT):
Has joined the channel.

BabuPallam (Fri, 06 Jul 2018 05:32:38 GMT):
I have got this error msg : node enrollAdmin.js Store path:/home/lavender/block/Hyperledger/fabric-samples/fabcar/hfc-key-store Error: Enrollment failed with errors [[{"code":19,"message":"CA 'ca.example.com' does not exist"}]] at IncomingMessage. (/home/lavender/block/Hyperledger/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:901:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin can anyone help me to figure out the exact problem?

bejoypg (Fri, 06 Jul 2018 05:57:07 GMT):
Has joined the channel.

bejoypg (Fri, 06 Jul 2018 06:00:52 GMT):
Hi All, am trying to add a new org into existing channel, while trying to get the block details using peer fetch encountering below error in orderer containers 2018-07-06 05:00:18.592 UTC [common/deliver] Handle -> WARN 01a Error reading from 172.18.0.3:34328: rpc error: code = Canceled desc = context canceled

Sreesha (Fri, 06 Jul 2018 06:35:13 GMT):
{"success":false,"message":"failed Error: Network configuration is missing this client's organization and certificate authority"} iam getting this error on testAPIs.sh,while "post request on enroll Org1" .Iam using the certs issued by fabric-ca instead of cryptogen tool

Sreesha (Fri, 06 Jul 2018 06:35:23 GMT):
Can anyone help?

pankajcheema (Fri, 06 Jul 2018 06:48:26 GMT):
Hi ,Please have look on my question >>>>>>>>>>>>>>>>>>>>>https://stackoverflow.com/questions/51204174/hyperledger-fabric-multiple-channel-but-same-sdk

rajanashutosh (Fri, 06 Jul 2018 08:04:50 GMT):
Hi, I am trying to install Chaincode into my docker container available, but while doing so i am getting error that packages shim and protos peer not available

rajanashutosh (Fri, 06 Jul 2018 08:05:55 GMT):
I found that we need to have hyperledger sdk installation to be performed as mentioned here https://github.com/IBM-Blockchain-Archive/learn-chaincode/blob/master/docs/setup.md and it would solve the problem.

rajanashutosh (Fri, 06 Jul 2018 08:06:46 GMT):
But my question is whether we need to do this stuff for each container and files to be moved to docker container and make an entry in docker-compose-cli.yaml for this stuff to be done ?

rajanashutosh (Fri, 06 Jul 2018 08:27:31 GMT):
I am sorry, have solved this issue my mistake

harpcio (Fri, 06 Jul 2018 09:00:49 GMT):
Has joined the channel.

harpcio (Fri, 06 Jul 2018 09:00:58 GMT):
Hi everybody!

harpcio (Fri, 06 Jul 2018 09:01:13 GMT):
I was working lastly on creating demo for client based on hyperledger fabric - and for development purpose I created the upgradeChaincode.sh based on fabric-samples/balance-transfer example. Maybe we can upgrade this demo with this script for others?

bjrnt (Fri, 06 Jul 2018 09:05:19 GMT):
Has joined the channel.

SjirNijssen (Fri, 06 Jul 2018 10:59:25 GMT):
Why does in the docs of version 1.2 Org3 have no anchor peer, in Operations Guides, section 5.2.2?

ashishchainworks (Fri, 06 Jul 2018 11:00:09 GMT):
Hi Everybody, I am trying to access ChaincodeInvocationSpec from Fabric Client (node sdk). Transaction.actions[0].payload.chaincode_proposal_payload is of type ChaincodeInvocationSpec. But I am getting this as Buffer. And buffer content is not as per ChaincodeInvocationSpec. Has any body tried accessing this field? -thks

FekriDarkaoui (Fri, 06 Jul 2018 11:26:14 GMT):
Has joined the channel.

FekriDarkaoui (Fri, 06 Jul 2018 11:26:19 GMT):
Hi everyone, I have a couple of questions concerning the working of Hyperledger Fabric. Let's suppose I have an entire network set up, with different organisations and peers. Can I add another new organization to a network that already exists? If this is the case, how is that done? How do we decide whether or not a certain organization can join? Let's suppose there are a couple of organisations that do business with each other on a private channel. After some time, one of the organizations stops doing business with the others, and should therefore not be allowed to see the information in the private channel anymore. Can this organization be removed from the channel? If so, how is that decision taken? If the organization is removed from the channel, can they still be part of the network, but just not of that specific channel? Now the other way around, can I add a completely new organization to a private channel with other organizations? How is that decided? I am looking to understand the general concepts, the abilities and limitations. So I am not really looking into the technical part. Thank you

Naseer03 (Fri, 06 Jul 2018 11:32:23 GMT):
Has joined the channel.

Naseer03 (Fri, 06 Jul 2018 11:33:20 GMT):
Hi Everyone.... GO is better or Node.JS is good for implementaion of Chaincode?

Naseer03 (Fri, 06 Jul 2018 11:33:20 GMT):
Hi Everyone.... GO or Node.JS which one is good for implementation of Chaincode

Naseer03 (Fri, 06 Jul 2018 11:33:20 GMT):
Hi Everyone.... GO or Node.JS which one is good for writing Chaincode

yacovm (Fri, 06 Jul 2018 11:48:34 GMT):
Go

FaizulHassan (Fri, 06 Jul 2018 12:05:06 GMT):
Hi people, Rather than writing all the Network configuration logic in a Shell Script , Will that be possible to achieve it using GoLang SDK ? Example , Creating a channel , making peers to join the channel , doing all the Certificate verification using SDKs ? Also can someone please demonstrate how could we make the chaincode interact with front-end. How could we make RestAPIs using Go SDK ? share us some sample program..

FaizulHassan (Fri, 06 Jul 2018 12:05:10 GMT):
thanks :)

yacovm (Fri, 06 Jul 2018 12:06:01 GMT):
@FaizulHassan ask in #fabric-sdk-go

FaizulHassan (Fri, 06 Jul 2018 12:07:12 GMT):
Sure will do :)

mdvenkatesh (Fri, 06 Jul 2018 12:10:32 GMT):
hi Guys I have deployed marbles project but I am confused where the authentication is taken for private key an d public key image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server ports: - "7054:7054" command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/peerOrg1-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/d8a5b3cac1b821f6e4b487ceaf1fd239cdcfc310894150908b90f05e9179556a_sk -b admin:adminpw' -d volumes: - ./channel/crypto-config/peerOrganizations/peerOrg1/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerOrg1 there is no /etc/hyperledger/fabric-ca-server-config/peerOrg1-cert.pem in your folder how my app is getting publickey and privatekey can anyone explain

kmohanar1 (Fri, 06 Jul 2018 12:59:01 GMT):
Hi, I am running customized(not much changes similar to fabcar only, instead of default values i am just using runtime values) fabric samples/fabcar application. while trying to invoke my chaincode function using postman/restclient facing the below mentioned error, error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Trying to connect an http1.x server at new createStatusError (/node_SDK/fabric-test/nodejs/node_modules/grpc/src/client.js:64:15) at /node_SDK/fabric-test/nodejs/node_modules/grpc/src/client.js:583:15 while debugging i can see, the error is the response of channel.sendTransactionProposal(request); in fabcar/invoke.js file. Can you please share is there any dependency with the grpc NPM package or is this related to GO. Can you please help on this Thanks in advance

Naseer03 (Fri, 06 Jul 2018 13:07:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XEK7e7e5Kp4jEDEkg) @yacovm Thanks much yacovm.

krisava (Fri, 06 Jul 2018 13:19:28 GMT):
Hi. I have couple of questions on private/side db in fabric 1.2. 1. Does "PutPrivateData" internally calls the "PutState" by adding the private data hash on to the chain? Or need to explicitly call the "PutState" to add the private data related hash to chain? 2. For "GetPrivateDataByRange" will the data come from side db or from the chain similar to "GetStateByRange"? 3. Will the "GetHistoryForKey" work with private data to get the complete history of an asset? 4. In the documentation example the asset is put through the collections itself, are there any other examples with part of the asset going through collections and part of it directly to the chain by calling "PutState"("GetState")? Can you please let me know? Thanks!

SjirNijssen (Fri, 06 Jul 2018 15:13:35 GMT):
Why does in the docs of version 1.2 (Operations Guide, section 5.2.2) Org 3 have no anchor peer?

corykacal (Fri, 06 Jul 2018 20:38:27 GMT):
I am using the chaincode-docker-devmode from fabric-samples. The chaincode creates the transaction payload so what signs the transaction before it get sends to peers for validation?

GmoneyCoder (Fri, 06 Jul 2018 21:59:44 GMT):
Has joined the channel.

yacovm (Fri, 06 Jul 2018 22:06:33 GMT):
@corykacal - the peer ;)

javi (Fri, 06 Jul 2018 23:07:27 GMT):
Has joined the channel.

rohanmajhi (Sat, 07 Jul 2018 01:49:34 GMT):
Has joined the channel.

rohanmajhi (Sat, 07 Jul 2018 01:49:40 GMT):
Hi

rohanmajhi (Sat, 07 Jul 2018 01:50:01 GMT):
I am getting error in byfn as below

rohanmajhi (Sat, 07 Jul 2018 01:50:01 GMT):
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org2MSP at version 0, but got version 1

rohanmajhi (Sat, 07 Jul 2018 01:51:10 GMT):
Can anybody help

rohanmajhi (Sat, 07 Jul 2018 02:39:25 GMT):
Actaully error is

rohanmajhi (Sat, 07 Jul 2018 02:39:25 GMT):
===================== Querying on peer0.org1 on channel 'mychannel'... ===================== Attempting to Query peer0.org1 ...3 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=0 + set +x 100 !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

bestsun (Sat, 07 Jul 2018 08:17:35 GMT):
How to make use of this programing in fabric/examples/plugin/scc/plugin.go

bestsun (Sat, 07 Jul 2018 08:17:58 GMT):
I find it is related to system chaincode

bestsun (Sat, 07 Jul 2018 08:18:32 GMT):
And what is its function?

yacovm (Sat, 07 Jul 2018 09:09:12 GMT):
please don't use it @bestsun

yacovm (Sat, 07 Jul 2018 09:09:29 GMT):
just use a regular chaincode

yacovm (Sat, 07 Jul 2018 09:10:02 GMT):
that thing is for a pluggable inter-process chaincode

yacovm (Sat, 07 Jul 2018 09:10:14 GMT):
IMO it's not worth the hassle and the issues you'll encounter

yacovm (Sat, 07 Jul 2018 09:10:21 GMT):
best use just a regular chaincode

mulderbm (Sat, 07 Jul 2018 11:40:45 GMT):
Has joined the channel.

santegoeds (Sat, 07 Jul 2018 18:50:35 GMT):
Has joined the channel.

MuhammadSalah (Sat, 07 Jul 2018 20:45:50 GMT):
@yacovm What is a pluggable inter-process chaincode?

yacovm (Sat, 07 Jul 2018 20:47:53 GMT):
trust me, you don't want to know...

MuhammadSalah (Sat, 07 Jul 2018 20:49:07 GMT):
Haha, I would like to.

MuhammadSalah (Sat, 07 Jul 2018 20:50:05 GMT):
Does this provide an ability to invoke more than once to commit something?

MuhammadSalah (Sat, 07 Jul 2018 20:50:44 GMT):
Because it seems it is some kind of a forking by the name.

yacovm (Sat, 07 Jul 2018 20:51:48 GMT):
let's just say - if you don't know what you're doing - modifying the peer can lead to a fork

yacovm (Sat, 07 Jul 2018 20:51:48 GMT):
let's just say - if you don't know what you're doing - modifying the peer code can lead to a fork

yacovm (Sat, 07 Jul 2018 20:52:21 GMT):
that's why i don't recommend to standard users to use anything else than the regular chaincode

MuhammadSalah (Sat, 07 Jul 2018 20:52:22 GMT):
Wait up, that's SCC?

yacovm (Sat, 07 Jul 2018 20:52:31 GMT):
yes

MuhammadSalah (Sat, 07 Jul 2018 20:52:37 GMT):
Is that the chaincode you run on top of peer?

MuhammadSalah (Sat, 07 Jul 2018 20:52:44 GMT):
instead of creating an isolated one?

yacovm (Sat, 07 Jul 2018 20:52:46 GMT):
inside... not on top

MuhammadSalah (Sat, 07 Jul 2018 20:52:49 GMT):
yea yea

MuhammadSalah (Sat, 07 Jul 2018 20:52:55 GMT):
OH I know it

MuhammadSalah (Sat, 07 Jul 2018 20:53:08 GMT):
Thanks for the reply

MuhammadSalah (Sat, 07 Jul 2018 20:53:09 GMT):
:D

MuhammadSalah (Sat, 07 Jul 2018 20:53:16 GMT):
I read it in the documentation

MuhammadSalah (Sat, 07 Jul 2018 20:54:04 GMT):
but a question arises, why would I want to do that?

MuhammadSalah (Sat, 07 Jul 2018 20:54:10 GMT):
I never figured that out.

yacovm (Sat, 07 Jul 2018 20:54:12 GMT):
there is a compile-time flag in fabric to make sure you can't deploy a SCC plugin- that is so users that don't know what they're doing - won't shoot themselves in the foot

yacovm (Sat, 07 Jul 2018 20:54:27 GMT):
if you remove the compile time flag - it's as if you remove the warranty ;)

MuhammadSalah (Sat, 07 Jul 2018 20:54:53 GMT):
that's in the make?

yacovm (Sat, 07 Jul 2018 20:54:54 GMT):
> but a question arises, why would I want to do that? you can modify Fabric from all kinds of reasons

yacovm (Sat, 07 Jul 2018 20:55:07 GMT):
it's an open source system...

MuhammadSalah (Sat, 07 Jul 2018 20:55:40 GMT):
Yea, well; my question was more what do I gain by doing that?

yacovm (Sat, 07 Jul 2018 20:56:22 GMT):
If for example you want to have access to the peer's operations from the chaincode itself

MuhammadSalah (Sat, 07 Jul 2018 20:57:57 GMT):
I see, although I can't think of a case where I would need that; that's why I get your point.

MuhammadSalah (Sat, 07 Jul 2018 20:58:12 GMT):
It's nice to have the option.

sudheesh001 (Sun, 08 Jul 2018 03:56:24 GMT):
Hey everyone, I had a quick question to which I haven't been able to find an answer, When the endorsers receive the transaction proposals, how do they check if the transaction has not been submitted in the past? Does the user have to explicitly specify a different nonce thereby creating a new hash? Is the security assumption that each random nonce is picked from a large enough range that the same nonce would never appear for the same user/proposer of the transaction?

sudheesh001 (Sun, 08 Jul 2018 04:07:33 GMT):
Also, the ordering service documentation says that the orderer(s) order the transactions per channel chronologically. If there are multiple orderers, would there not be instances where the ordering isn't agreed upon? Doesn't this also result in attacks because of their attribution to time. Lets say a transaction TX1 is sent to Orderer_1 and TX2 is sent to Orderer_2 over the same channel where TX1 needs to be executed first and then TX2 for correctness of the state. If TX2 reaches the 2nd orderer before the TX1 reaches the first, each one notes their own timestamp. For now, let us assume that the clocks of all these machines are synchronised, then the transactions execute in the wrong order right? How do the ordering nodes come to a consensus on the ordering in such a case? Please correct me if I am going wrong somewhere in my understanding? :-)

haguiarsalen (Sun, 08 Jul 2018 04:34:01 GMT):
Has joined the channel.

haguiarsalen (Sun, 08 Jul 2018 04:34:45 GMT):
Hello, I'm having this error, thanks for help, ``` Can not run peer because can not init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganisations/org1.examples.com/users/admin@org1.example.com/msp folder ```

sudheesh001 (Sun, 08 Jul 2018 04:35:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xNiXzxw9yb2TQiB3x) @haguiarsalen Are you using windows with MingGW/Git bash?

sudheesh001 (Sun, 08 Jul 2018 04:42:08 GMT):
If you are, you need to run `export MSYS_NO_PATHCONV=1` before running the command you are trying to run

mmick (Sun, 08 Jul 2018 09:13:55 GMT):
I am to develop a Healthcare system. To book appointments and offer online appointment meeting through video call! meanwhile store the appointment and data as EHR in hyperledger fabric. Functionality in node/mongo and

mmick (Sun, 08 Jul 2018 09:13:55 GMT):
I am to develop a Healthcare system. To book appointments and offer online appointment meeting through video call! meanwhile store the appointment and data as EHR in hyperledger fabric. Functionality in node/mongo : - Search for Doctors. - Make appointments. - Online meetings Functionality in Hyperledger fabric : - storing EHRs. - Patients giving access to Doctors to EHR. IS this model Right or need some changes? Thanks for your time.

haguiarsalen (Sun, 08 Jul 2018 11:36:43 GMT):
@sudheesh001 I'm using ubuntu 16.04 native

muralisr (Sun, 08 Jul 2018 11:57:58 GMT):
@mmick Some key questions such as the parties involved, what organization - hospitals, network providers - will be part of the network (ie, who;ll hav direct access to ledger), what the privacy / confidenitality requirements need to be met, etc need to be understood/specified first... also #healthcare-wg would be a good resource

mmick (Sun, 08 Jul 2018 12:52:26 GMT):
thanks @muralisr currently the parties are a hospital, Doctors and patients. Ledger will be maintained by the hospital. But there is confidentiality compromised as hospital has EHRs. What do you suggest. It's more of a proof of concept project for me.

greg2git (Sun, 08 Jul 2018 12:52:27 GMT):
@haguiarsalen and @sudheesh001 , i'm also on ubuntu, but i find their limitations on default root access quite annoying, esp since i'm a linux newbie and my blockchain would never be deployed in production.

raymondfx (Sun, 08 Jul 2018 14:08:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S2aeqohjX49WQFWSQ) @greg2git sudo su

greg2git (Sun, 08 Jul 2018 14:37:26 GMT):
@raymondfx thx, will try it next time i'm back on

vmag (Sun, 08 Jul 2018 17:09:33 GMT):
Has joined the channel.

simonyau (Mon, 09 Jul 2018 02:22:32 GMT):
Hi everyone,

simonyau (Mon, 09 Jul 2018 02:28:19 GMT):
Hi all, do anyone know there is some handy scripts for fabric operations (e.g. add/remove organizations, add/remove kafka, add/remove orderer, add/remove user). I found from the official document for updating the channel configuration for add an organization, seems it need quite many steps for adding an organization and it's not so "user friendly". Any other open source / commercial to offer this capability?

sudheesh001 (Mon, 09 Jul 2018 04:23:26 GMT):
The problem doesn't need to be solved with `sudo su`, you need to check the group permissions for the directory for your current user. If the directory is owned by `root` then you could change the ownership to yourself with `chown` and then you don't need to run the commands as super user

ahmadzafar (Mon, 09 Jul 2018 05:13:20 GMT):
Hi All, I want to return simple string like return "test" from chaincode. But in the application response is giving me some byte code or something else. How i get exact this string or any change in chaincode which give me this string as it. Chaincode code: async balances(stub, args, thisClass) { if (args.length != 1) { throw new Error('Incorrect number of arguments. Expecting 1 '); } return "test"; } Response is coming like this: Query has completed, checking results Response is �

waleed (Mon, 09 Jul 2018 07:21:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nhtiwm2yXKcZPRDzX) @simonyau https://github.com/Altoros/fabric-starter ->see README.md

lwrabbit (Mon, 09 Jul 2018 07:26:51 GMT):
Hi all,when I add org3 to an existed channel,I used configtxlator cmd to update the channel config successfully. but when I used the cmd "peer channel getinfo -c mychannel" reminding me Org3MSP is unknow. can anyone help?

waleed (Mon, 09 Jul 2018 07:30:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=44S3wtP52t7Cw8z3G) @lwrabbit which peer do you use? from the new org? maybe you need to restart your network or restart the peer

lwrabbit (Mon, 09 Jul 2018 07:31:18 GMT):
@waleed a peer from new org

waleed (Mon, 09 Jul 2018 07:32:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zXBaMqNYXRcXRNBGy) @lwrabbit did u have the right Org3MSP ? camel-case, etc..

lwrabbit (Mon, 09 Jul 2018 07:33:49 GMT):
@waleed yes, I can successfully execute "peer channel list" and recevied the right channel name

waleed (Mon, 09 Jul 2018 07:34:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iWGAmtXj9nPWGcZcn) @lwrabbit ignore the error and try to see if the new peer have the ledger data

lwrabbit (Mon, 09 Jul 2018 07:36:34 GMT):
@waleed the new peer is synchronizing the ledger.

waleed (Mon, 09 Jul 2018 07:37:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NNaiiqbyKNfwCnQro) @lwrabbit oke, cool. I think u can ignore the error ;)

lwrabbit (Mon, 09 Jul 2018 07:37:31 GMT):
the channel ledger now has a million of blocks

lwrabbit (Mon, 09 Jul 2018 07:38:50 GMT):
@waleed thanks, I hope so..

abityildiz (Mon, 09 Jul 2018 07:46:26 GMT):
Has joined the channel.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently. under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. ``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently```. under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. ``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently```. under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it. ``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently```. under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it. ``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently```. under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it.``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under `Dynamic Leader election` which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it.``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under Dynamic Leader election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it.``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under Dynamic Leader election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under `Dynamic Leader` election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under `Dynamic Leader` election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under `Dynamic Leader` election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that ```Phase 3 begins with the orderer distributing blocks to all peers connected to it.``` under the `Phase 3: Validation` .Please let me know if someone has clear idea.

pankajcheema (Mon, 09 Jul 2018 09:12:25 GMT):
Hi Expert ,I found a confusion in documentation Please correct , if am somewhere wrong at this location https://hyperledger-fabric.readthedocs.io/en/release-1.2/gossip.html This is written ```Dynamic leader election enables organization peers to elect one peer which will connect to the ordering service and pull out new blocks. Leader is elected for set of peers for each organization independently``` under `Dynamic Leader` election which means that org leaders pulls the new block from orderer but on the other side here https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html written that Phase 3 begins with the orderer distributing blocks to all peers connected to it. under the `Phase 3: Validation` .Please let me know if someone has clear idea.

yacovm (Mon, 09 Jul 2018 09:39:35 GMT):
@pankajcheema there is no contradiction

yacovm (Mon, 09 Jul 2018 09:39:50 GMT):
"all peers connected to it." can also mean that only leaders connect to it ;)

Adam_Hardie (Mon, 09 Jul 2018 10:00:15 GMT):
when i register a client event listener to my chaincode events, when i start the client i receive old events I have already processed. Is there a way to configure that or will clients always receive previous blocks on startup?

vkouk 1 (Mon, 09 Jul 2018 10:27:04 GMT):
Has joined the channel.

myassir (Mon, 09 Jul 2018 10:27:20 GMT):
Has joined the channel.

myassir (Mon, 09 Jul 2018 10:35:17 GMT):
Hello everyone, I have a question, If I want to implement a network where normal users exchange assets, does I should create a peer for every user, or like in the byfn tutorial where they create the entities a and b, can we consider those a and b as two users ? if yes how can we secure transactions betwwen them ?

myassir (Mon, 09 Jul 2018 10:35:43 GMT):
thank you

anantwag19 (Mon, 09 Jul 2018 10:39:41 GMT):
Hello , All i have an requirement for Example Based on the transaction created in the Lydger , The same Data can be pushed to ERP . How this can be achieved ?

EricYang (Mon, 09 Jul 2018 11:02:15 GMT):
Has joined the channel.

pankajcheema (Mon, 09 Jul 2018 11:13:14 GMT):
@yacovm my concern is that ,Does orderer distribute blocks automatically to org leaders or org leader pulls from orderer ?

yacovm (Mon, 09 Jul 2018 11:18:22 GMT):
pulls

pankajcheema (Mon, 09 Jul 2018 11:24:20 GMT):
@yacovm and this is the work of org leaders to distribute these blocks to other peers of org right ?

yacovm (Mon, 09 Jul 2018 11:24:48 GMT):
yes

lislunev (Mon, 09 Jul 2018 11:27:03 GMT):
Hello, does anyone use fabric in production? What tools do you use to c

lislunev (Mon, 09 Jul 2018 11:27:03 GMT):
Hello, does anyone use fabric in production? What tools do you use instead of docker?

pankajcheema (Mon, 09 Jul 2018 11:28:02 GMT):
yes

pankajcheema (Mon, 09 Jul 2018 11:28:29 GMT):
@lislunev you can either use docker swarms or just peer binaries

pankajcheema (Mon, 09 Jul 2018 11:28:29 GMT):
@lislunev you can either use docker swarms or just peer, orderer, ca-server binaries

lislunev (Mon, 09 Jul 2018 11:29:36 GMT):
Thank you

lislunev (Mon, 09 Jul 2018 11:29:53 GMT):
In prod, you use Kafks-orderer?

lislunev (Mon, 09 Jul 2018 11:29:53 GMT):
In prod, you use Kafka-orderer?

pankajcheema (Mon, 09 Jul 2018 11:32:53 GMT):
yes @lislunev

waleed (Mon, 09 Jul 2018 11:33:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gXBrwu3fx8cWPScyq) @lislunev and u need also kafka and kafka-zookeeper

gouthamkrishna31 (Mon, 09 Jul 2018 12:43:14 GMT):
Has joined the channel.

higunjan (Mon, 09 Jul 2018 12:57:26 GMT):
Has joined the channel.

higunjan (Mon, 09 Jul 2018 12:58:02 GMT):
When I tried to run `blockchain-explore` from `https://github.com/hyperledger/blockchain-explorer` I face following error ``` error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [] creator org [Org1MSP] ```

higunjan (Mon, 09 Jul 2018 12:58:20 GMT):
Please anyone suggest solution fir these ?

higunjan (Mon, 09 Jul 2018 12:58:20 GMT):
Please anyone suggest solution for these ?

josiebhai (Mon, 09 Jul 2018 13:01:57 GMT):
Has joined the channel.

Telijas (Mon, 09 Jul 2018 13:53:31 GMT):
Has joined the channel.

myassir (Mon, 09 Jul 2018 17:13:52 GMT):
what is the difference between peers and users ?

Hirodemon (Mon, 09 Jul 2018 17:41:40 GMT):
Has joined the channel.

Hirodemon (Mon, 09 Jul 2018 17:47:15 GMT):
Hello there, I hope somebody can answer myassir, because I am curious about that as well. Aside that, I have been trying to set up everything, after setting up my business network and Google+ OAuth and I have generated my Angular application.. but I just couldn't know how to make other external devices/clients to log in and see the details depending on their access rights. I didn't find the right guide that I should follow in order to make clients see the angular application on a Web Page without having composer installed, may somebody guide me?

corykacal (Mon, 09 Jul 2018 17:52:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yHJqaksKgxtNSX9kz) I am not expert but I believe that the peers are just nodes to execute instructions from users (client nodes) and to hold the ledger. Users (client nodes) are the ones that send transactions and invoke chaincode to modify the ledger. Please correct me if I am wrong. A follow question I would have is: if someone were to "own" or identify as a public key like how someone has a bitcoin address it would be a client public key right? as peers do not invoke transactions but just handle them.

daviorocha (Mon, 09 Jul 2018 19:03:30 GMT):
Has joined the channel.

alainN (Mon, 09 Jul 2018 21:11:49 GMT):
endorsement

ThomasBereczky (Mon, 09 Jul 2018 22:53:43 GMT):
Hey Guys

Roeyc (Mon, 09 Jul 2018 23:41:27 GMT):
Has joined the channel.

pankajcheema (Tue, 10 Jul 2018 05:46:44 GMT):
Hi All

pankajcheema (Tue, 10 Jul 2018 05:47:35 GMT):
Can anyone tell me why there are two --peerAddress in Fabric 1.2 documentation while using invoke command. What will be the behaviour of this command```peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'```

pankajcheema (Tue, 10 Jul 2018 05:47:35 GMT):
Can anyone tell me why there are two --peerAddress in Fabric 1.2 documentation while using invoke command. What will be the behaviour of this command```peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'``` You can find the invoke command in ```http://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html```

pankajcheema (Tue, 10 Jul 2018 05:47:35 GMT):
Can anyone tell me why there are two --peerAddress in Fabric 1.2 documentation while using invoke command. What will be the behaviour of this command```peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'``` You can find the invoke command in http://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html

pankajcheema (Tue, 10 Jul 2018 05:47:35 GMT):
Can anyone tell me why there are two --peerAddress in Fabric 1.2 documentation while using invoke command. What will be the behaviour of this command```peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'``` You can find the invoke command in http://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html https://stackoverflow.com/questions/51263479/peeraddresses-in-hyperledger-fabric-v1-2

huangliping (Tue, 10 Jul 2018 06:14:37 GMT):
Hi there, i have a question, in fabric, the block data will store in file store, or in couchdb?

esraghu (Tue, 10 Jul 2018 06:25:27 GMT):
Has joined the channel.

yacovm (Tue, 10 Jul 2018 06:47:24 GMT):
file

josiebhai (Tue, 10 Jul 2018 07:40:42 GMT):
Hi, I am amazed to see that the block file is in plain text. I was assuming it to be hashed. Im looking at the file in the location /var/hyperledger/production/ledgerData/chains/chains//blockfile_000000 . Is this the block chain ?

yacovm (Tue, 10 Jul 2018 07:41:15 GMT):
what do you mean hashed?

josiebhai (Tue, 10 Jul 2018 07:42:16 GMT):
@yacovm I meant the block will be hashed using previous block's hash and the chain will be continued using current block's hash

yacovm (Tue, 10 Jul 2018 07:42:40 GMT):
but what does this has to do with plaintext?

yacovm (Tue, 10 Jul 2018 07:42:52 GMT):
there is a hash of the block data in its header

yacovm (Tue, 10 Jul 2018 07:42:58 GMT):
but obviously the data itself is plaintext

yacovm (Tue, 10 Jul 2018 07:43:16 GMT):
meaning - no *encryption*

josiebhai (Tue, 10 Jul 2018 07:45:36 GMT):
okay thank you. just double confirming that what Im looking at is the *chain* ????

yacovm (Tue, 10 Jul 2018 07:45:45 GMT):
yes

Hirodemon (Tue, 10 Jul 2018 08:29:16 GMT):
hello

Hirodemon (Tue, 10 Jul 2018 08:34:32 GMT):
May I get some help? ^^

pankajcheema (Tue, 10 Jul 2018 08:54:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sqnGRDk4vHgvxXCjX) @yacovm do you know something about this?

yacovm (Tue, 10 Jul 2018 09:24:37 GMT):
yeah - it's to collect endorsements from 2 peers

pankajcheema (Tue, 10 Jul 2018 10:36:43 GMT):
@yacovm So it will happen with the previous endorsement policy specified while instantiating chaincode?

pankajcheema (Tue, 10 Jul 2018 10:36:43 GMT):
@yacovm So what will happen with the previous endorsement policy specified while instantiating chaincode?

yacovm (Tue, 10 Jul 2018 10:39:17 GMT):
.... the fabric samples

yacovm (Tue, 10 Jul 2018 10:39:24 GMT):
start from scratch :)

yacovm (Tue, 10 Jul 2018 10:39:30 GMT):
there is no previous ;)

pankajcheema (Tue, 10 Jul 2018 10:39:42 GMT):
I didn't find anything in the documentation

yacovm (Tue, 10 Jul 2018 10:39:48 GMT):
are you serious?

yacovm (Tue, 10 Jul 2018 10:39:55 GMT):
you create the same channel each time....

yacovm (Tue, 10 Jul 2018 10:40:01 GMT):
it's a sample

yacovm (Tue, 10 Jul 2018 10:40:17 GMT):
what documentation do you expect? it's a sample that creates the network...

pankajcheema (Tue, 10 Jul 2018 10:40:22 GMT):
```peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"```

pankajcheema (Tue, 10 Jul 2018 10:40:53 GMT):
Please check `Build your first network` Fabric 1.2

yacovm (Tue, 10 Jul 2018 10:41:02 GMT):
sorry I'm busy now...

pankajcheema (Tue, 10 Jul 2018 10:42:01 GMT):
@yacovm please let me know the answer when you are available.

pankajcheema (Tue, 10 Jul 2018 10:42:03 GMT):
Thanks

pankajcheema (Tue, 10 Jul 2018 10:45:28 GMT):
If anyone else has any idea about it please let me know.It would be really helpful for me to understand this new concept in Hyperledger Fabric v1.2

pankajcheema (Tue, 10 Jul 2018 10:45:28 GMT):
If anyone else has any idea about it please let me know. It would be really helpful for me to understand this new concept in Hyperledger Fabric v1.2

yacovm (Tue, 10 Jul 2018 10:46:58 GMT):
you can post to stackoverflow.com

pankajcheema (Tue, 10 Jul 2018 10:50:39 GMT):
Thanks for the suggetion @yacovm

jle-quel (Tue, 10 Jul 2018 12:25:17 GMT):
Hi guys, I can't find any explanation on what is the affiliation parameter on the "register" method of the class "fabric_ca_client". Does anyone of you know anything about it?

devendrarg (Tue, 10 Jul 2018 13:00:26 GMT):
Does chaincode belogns to specific org? so Org1 chaincode will be only accessible by Org1 peers?

AMIL_SAJEEV (Tue, 10 Jul 2018 13:07:31 GMT):
Hi all, I tired to install chain code in peers by using NodeSDK. when i tried to install chaincode get an error : TypeError: Path must be a string. Received undefined. How can i solve this??? js file attached here : https://jsfiddle.net/0dj3wcxt/

devendrarg (Tue, 10 Jul 2018 13:15:08 GMT):
@AMIL_SAJEEV Problem is at line var store_path = path.join(__dirname, 'hfc-key-store');

AMIL_SAJEEV (Tue, 10 Jul 2018 13:21:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WsEWpTSFuM7khoaua) @devendrarg but i didn't use that path in my request. i use an anothre path in my requst right?? any way i will remove that portion and try again.

AMIL_SAJEEV (Tue, 10 Jul 2018 13:21:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WsEWpTSFuM7khoaua) @devendrarg but i didn't use that path in my request. i use an another path in my requst right?? any way i will remove that portion and try again.

AMIL_SAJEEV (Tue, 10 Jul 2018 13:21:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WsEWpTSFuM7khoaua) @devendrarg but i didn't use that path in my request. i use an another path in my request right?? any way i will remove that portion and try again.

AMIL_SAJEEV (Tue, 10 Jul 2018 13:23:25 GMT):
@devendrarg when i run my file, get output like this :

AMIL_SAJEEV (Tue, 10 Jul 2018 13:23:32 GMT):

Clipboard - July 10, 2018 6:53 PM

AMIL_SAJEEV (Tue, 10 Jul 2018 13:23:33 GMT):

Clipboard - July 10, 2018 6:53 PM

AMIL_SAJEEV (Tue, 10 Jul 2018 13:24:38 GMT):
@devendrarg is that error coming from 'fabric_client.installChaincode(request)' portion, right??

thellimist (Tue, 10 Jul 2018 15:17:02 GMT):
Has joined the channel.

sasquatch85 (Tue, 10 Jul 2018 18:08:26 GMT):
Has left the channel.

vsadriano (Tue, 10 Jul 2018 18:37:04 GMT):
Hi! I'm trying to build a sample application with balance-transfer API node. I would like to know about where credentials are persisted after register process. Any idea?

corykacal (Tue, 10 Jul 2018 19:42:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xrKZtnWiPNbDp6i9W) @vsadriano The ledger is stored at /var/hyperledger/production/ledgerData. Is that what you mean? You want to know where the key and values are stored that you invoke?

corykacal (Tue, 10 Jul 2018 20:06:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oQ6sRqgQEH6bx6SSB) @devendrarg I am also wondering this. To build on this, is the chaincode installed into private channels visible to all or just those in the channel?

shinabh (Tue, 10 Jul 2018 20:17:28 GMT):
Has joined the channel.

shinabh (Tue, 10 Jul 2018 20:19:02 GMT):
Hi, in the documents it says abt Peers, Orderer and consensus. I saw few samples and also executed them on Composer. How do I corelate these terms-Peers,Orderer,Consensus with the sample. Who is playing what role in that? Can someone please explain

corykacal (Tue, 10 Jul 2018 20:26:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XaiFW6Wuz8ovzMjZR) @shinabh Hello. Which sample are you testing out exactly? Also, are you doing development in fabric or composer? Composer makes development a bit different and abstracts many things.

thellimist (Tue, 10 Jul 2018 22:13:39 GMT):
aIs it ipossible to run hyperledger fabric on mobile phones?

thellimist (Tue, 10 Jul 2018 22:13:39 GMT):
is it possible to run hyperledger fabric on mobile phones?

yacovm (Tue, 10 Jul 2018 22:24:04 GMT):
what, run a peer?

yacovm (Tue, 10 Jul 2018 22:24:06 GMT):
a client?

yacovm (Tue, 10 Jul 2018 22:24:14 GMT):
an orderer?

thellimist (Tue, 10 Jul 2018 23:33:09 GMT):
a client

asmin (Wed, 11 Jul 2018 00:48:51 GMT):
Has joined the channel.

asmin (Wed, 11 Jul 2018 00:49:55 GMT):
has someone a solution to this error

asmin (Wed, 11 Jul 2018 00:49:56 GMT):
node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-darwin-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.10.1 and node@10.4.1 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Pre-built binaries not installable for grpc@1.10.1 and node@10.4.1 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Hit error Connection closed while downloading tarball file

asmin (Wed, 11 Jul 2018 00:50:32 GMT):
cam when run npm install from this tutorial

asmin (Wed, 11 Jul 2018 00:50:33 GMT):
ttps://hyperledger-fabric.readthedocs.io/en/release-1.2/write_first_app.html

asmin (Wed, 11 Jul 2018 00:50:48 GMT):
encountered when run npm install from this tutorial

NoLimitHoldem (Wed, 11 Jul 2018 00:57:09 GMT):
Has joined the channel.

nvlasov (Wed, 11 Jul 2018 02:14:17 GMT):
rwset

Anatolii (Wed, 11 Jul 2018 02:22:44 GMT):
Has joined the channel.

Anatolii (Wed, 11 Jul 2018 02:22:50 GMT):
Good evening, folks! A business guy and a lawyer looking for a tech co-founder for a Toronto based startup. Preferably a coding polyglot with understanding of and experience in Hyperledger Fabric and Iroha. The project is related to communications & agreements. Drop me a personal message if you are up for some new interesting projects, we'll chat. Cheers!

nvlasov (Wed, 11 Jul 2018 02:56:19 GMT):
Hi guys. I was reading through the code of new validation logic in 1.2 ( core/handlers/validation/builtin/validation_logic.go ) and can't find code for read set validation any more. Is the read set still gets validated in 1.2? If yes, can someone point me to the source?

AMIL_SAJEEV (Wed, 11 Jul 2018 05:49:04 GMT):
HI all, When i tried to install chain code using NodeSdk getting an error : TypeError: Path must be a string. Received undefined I tried running the file : https://jsfiddle.net/0dj3wcxt/ can any one help me to solve this.?? I really blocked at this step :worried: :worried:

AMIL_SAJEEV (Wed, 11 Jul 2018 05:49:04 GMT):
HI all, When i tried to install chain code using NodeSdk getting an error : TypeError: Path must be a string. Received undefined I tried by running the file : https://jsfiddle.net/0dj3wcxt/ can any one help me to solve this.?? I really blocked at this step :worried: :worried:

zonkedhazmat (Wed, 11 Jul 2018 05:59:07 GMT):
Has joined the channel.

Asch (Wed, 11 Jul 2018 06:19:45 GMT):
Has joined the channel.

Asch (Wed, 11 Jul 2018 06:26:40 GMT):
Hey guys, I am new to hyperledger fabric and wanted to know something. Let's say our organization uses hyperledger fabric to develop an application that interacts with other organizations and transactions happen between them using our app. So, my question is, will other organizations dealing with our organization need to install hyperledger fabric on their own network, or will our organization will be making channels and deploying chaincodes on these channels and updating ledgers.

nabil941994 (Wed, 11 Jul 2018 06:44:32 GMT):
Hello all, i want to set one CA for multiple organizations how is that possible? any docker-compose.yaml file examples?

nabil941994 (Wed, 11 Jul 2018 06:44:51 GMT):
i am getting an error Error: 2 UNKNOWN: access denied: channel [mychannel2] creator org [Org2MSP]

devendrarg (Wed, 11 Jul 2018 06:45:39 GMT):
@nabil941994 Im also facing same problem..let me know if you find out solution

seetharamangr (Wed, 11 Jul 2018 06:48:22 GMT):
In fabric v1.2, running the chaincode instantiation in first network example, it fails

seetharamangr (Wed, 11 Jul 2018 06:48:25 GMT):
Any help?

josiebhai (Wed, 11 Jul 2018 07:06:19 GMT):
Hi Team, Is it possible to add custom data to the block(aka chain) ? If so where do I change it ?

zhasni (Wed, 11 Jul 2018 07:13:37 GMT):
Has joined the channel.

diwa2508 (Wed, 11 Jul 2018 07:16:25 GMT):
Has joined the channel.

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. !st I create a single org Channel with the org1 part of my existing Consortium. 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I have get this when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-)

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. !st I create a single org Channel with the org1 part of my existing Consortium. 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I have get this when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-)

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I have get this when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-)

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I have get this when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-)

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I get this error when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-)

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I get this error when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-) PS : I'm still using 1.1.0 version of HL

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I get this error when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :-) PS : I'm still using 1.1.0 version of HL

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I get this error when I try to update the channel : ```Failed to reach implicit threshold of 2 sub-policies, required 1 remaining``` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :slight_smile: PS : I'm still using 1.1.0 version of HL

zhasni (Wed, 11 Jul 2018 07:32:46 GMT):
Hi I'm trying to create a new channel with 3 orgs on an existing network. - 1st I create a single org Channel with the org1 part of my existing Consortium. - 2nd I add org2 with cli-org1 make the changes with jq and configtxlator sign it with org1 and update the channel successfully - 3rd I tried to add org2, same method I use cli-org1 fetch and modify the config block sign it with org1 export it to org2 to be signed but when everything is done I get this error when I try to update the channel : `Failed to reach implicit threshold of 2 sub-policies, required 1 remaining` I checked the orderers logs and find out which signature is missing (org2). but when I take a look at my *2xsigned_update_in_envelope.pb* with `configtxgen -inspectChannelCreateTx` I found org1MSP and org2MSP signatures ?! I'don't understand what I'm doing wrong... If anyone can help plz ping me ! thx :slight_smile: PS : I'm still using 1.1.0 version of HL

JayPandya (Wed, 11 Jul 2018 07:53:36 GMT):
Does anyone how we can avoid MVCC error? (not with re-trying)

VsevolodPelipas (Wed, 11 Jul 2018 08:42:18 GMT):
Has joined the channel.

souvik (Wed, 11 Jul 2018 09:16:35 GMT):
Has joined the channel.

nabil941994 (Wed, 11 Jul 2018 09:19:41 GMT):
General question, should i have a different certificate authority (Fabric CA) for each organization in my network?

waleed (Wed, 11 Jul 2018 09:31:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cMKzGjCRqa2QKPvuT) @nabil941994 this would make sense :)

devendrarg (Wed, 11 Jul 2018 10:03:00 GMT):
Can somebody please help me on https://stackoverflow.com/questions/51282620/error-2-unknown-access-denied-channel-contentbackchainchannel-creator-org ?

jle-quel (Wed, 11 Jul 2018 10:16:03 GMT):
Hi guys, Does this error, looks familiar to you? ``` Store path:/Users/jle-quel/Documents/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: ed53bf3ea62761cf68352ca7ffdf55d10212fdfb141ccf4ddc938174007f8113 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/Users/jle-quel/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /Users/jle-quel/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

oba2311 (Wed, 11 Jul 2018 12:31:23 GMT):
Has joined the channel.

Ratnakar_M (Wed, 11 Jul 2018 13:04:16 GMT):
Has joined the channel.

MeghaGupta (Wed, 11 Jul 2018 13:06:19 GMT):
Hi, please help me to find couch db or level DB property where or How I can change it to couchDb

MeghaGupta (Wed, 11 Jul 2018 13:06:57 GMT):
I came to know from doc that we need to update stateDatabase value

MeghaGupta (Wed, 11 Jul 2018 13:07:02 GMT):
but where ?

MeghaGupta (Wed, 11 Jul 2018 13:07:19 GMT):
Detail instruction will be very helpful

Jyotirmoy (Wed, 11 Jul 2018 13:26:14 GMT):
Has joined the channel.

Jyotirmoy (Wed, 11 Jul 2018 13:26:30 GMT):
Hi All I am trying to create a multi peer network below is the modification to createPeerAdminCard.sh is this correct. ``` { "name": "hlfv1", "x-type": "hlfv1", "x-commitTimeout": 300, "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } }, "channels": { "composerchannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": {}, "peer1.org1.example.com": {} } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com", "peer1.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpc://${HOST}:7050" } }, "peers": { "peer0.org1.example.com": { "url": "grpc://${HOST}:7051", "eventUrl": "grpc://${HOST}:7053" }, "peer1.org1.example.com": { "url": "grpc://${HOST}:8051", "eventUrl": "grpc://${HOST}:8053" } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "http://${HOST}:7054", "caName": "ca.org1.example.com" } } } ```

shinabh (Wed, 11 Jul 2018 14:08:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YYeodMgjwyGmrmcxn) @corykacal @corykacal - I tried "vehicle-lifecycle-network" and few other samples provided in the sample composer network. I could run it successfully but not able to understand the important roles of Orderer,peers etc.

corykacal (Wed, 11 Jul 2018 14:31:32 GMT):
@shinabh There are three main nodes: clients, peers, and orderers. The quick rundown is that clients (users) invoke transactions, the peers endorse it then send it back, the client then sends the endorsements to an orderer who orders all transactions and creates the block. Composer, as a framework, abstracts too much even in the documentation so look at fabric. Here's a good article https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html

corykacal (Wed, 11 Jul 2018 14:37:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qPWqCt4A39M32b7eA) @thellimist Possibly try the node.js client api

Krait82 (Wed, 11 Jul 2018 14:43:35 GMT):
Has joined the channel.

DanielMcSheehy (Wed, 11 Jul 2018 17:08:48 GMT):
Will `fabric-samples/basic-network` be updated to v1.2? Or is there a way to upgrade it manually? (`first-network` has been)

shinabh (Wed, 11 Jul 2018 19:15:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5GWgQiNNXk9GwHwxC) Thanks @corykacal . Is it possible fro me to set up the sample- "vehicle-lifecycle-network" in Fabric and see these roles in Action? Currently, I am doing it thru Composer and cannot understand the role of Orderer.

alokmatta (Wed, 11 Jul 2018 19:19:54 GMT):
Has joined the channel.

ThomasBereczky (Wed, 11 Jul 2018 19:20:02 GMT):
Hey Guys

ThomasBereczky (Wed, 11 Jul 2018 19:20:10 GMT):
I am having a bit of difficulty

ThomasBereczky (Wed, 11 Jul 2018 19:20:21 GMT):
when I deploy my BNA it does not have credentials inside

ThomasBereczky (Wed, 11 Jul 2018 19:20:26 GMT):
what could possibly be?

ThomasBereczky (Wed, 11 Jul 2018 19:20:31 GMT):
I checked the CA and it is working

fossbender (Wed, 11 Jul 2018 20:18:41 GMT):
Has joined the channel.

corykacal (Wed, 11 Jul 2018 20:42:04 GMT):
@shinabh I dont think deploying composer files is possible in fabric because composer is a framework over fabric but deploying composer through the terminal rather than the playground may give you a better idea. If it is possible someone please correct me. I recommend fabric documentation for learning how things work like orderers or general architecture. The 'key concepts' section has lots of information on orderers and peers

kisna (Thu, 12 Jul 2018 01:37:46 GMT):
Has joined the channel.

thellimist (Thu, 12 Jul 2018 01:44:18 GMT):
can someone provide me information, resources regarding hyperledger v1.3?

aanugu (Thu, 12 Jul 2018 01:46:59 GMT):
Has joined the channel.

smile4jc (Thu, 12 Jul 2018 02:30:21 GMT):
Has joined the channel.

smile4jc (Thu, 12 Jul 2018 02:36:54 GMT):
I had a question about the performance of hyperledger fabric, I was wondering if anyone has done a performance test and if so, what were the results?

smile4jc (Thu, 12 Jul 2018 02:38:55 GMT):
We were running some tests through caliper and there were many cases where many peers returned a 500 error response.

smile4jc (Thu, 12 Jul 2018 03:15:01 GMT):
tps

aatkddny (Thu, 12 Jul 2018 03:15:10 GMT):
Are there any best practice docs for oracles in fabric? I need to make some master data available to a number of peers. I was thinking a separate channel that the network owner provides access and an API to populate and then grant read access to the peers as required. I can namespace the master data to provide separation inside the channel, but if there's a better way to do it I'm all ears.

aatkddny (Thu, 12 Jul 2018 03:15:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aFBW9PnSYRneELNAj) Using which SDK?

aatkddny (Thu, 12 Jul 2018 03:23:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5qxkzGs4b4ms3tDym) serialize externally...

nvlasov (Thu, 12 Jul 2018 03:29:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=otzhdaaNYqikY7ivi) @Asch Hi @Asch . Ideally all organizations should own their node in the network, so that they will not have to trust your org to process all transactions. Also they will be able to choose to use their own app and interact with each other, even create their own channels and make transactions invisible to your org. You may design the system in the centralized way, so that that your org will control everything, but then it's better to replace Fabric with just CouchDB or some other centralized architecture.

nvlasov (Thu, 12 Jul 2018 03:32:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ijcykPNzk8M5zz3jJ) @smile4jc Hi @smile4jc . Here is a paper published recently on performance: https://arxiv.org/pdf/1805.11390

nvlasov (Thu, 12 Jul 2018 03:37:48 GMT):
Hi everyone. I was reading through the code of new validation logic in 1.2 ( core/handlers/validation/builtin/validation_logic.go ) and can't find code for read set validation any more. Is the read set still gets validated in 1.2? If yes, can someone point me to the source?

tatsu-sato (Thu, 12 Jul 2018 04:05:53 GMT):
Has joined the channel.

higunjan (Thu, 12 Jul 2018 04:46:55 GMT):
@waleed Do you have any idea about `error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]`

higunjan (Thu, 12 Jul 2018 04:47:20 GMT):
Any one else have an idea than please help me.

noif (Thu, 12 Jul 2018 05:56:37 GMT):
Has joined the channel.

Asch (Thu, 12 Jul 2018 06:08:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cxsDuHzh22XzqzkHY) @nvlasov thanks for clearing my doubt.

yacovm (Thu, 12 Jul 2018 06:18:55 GMT):
@nvlasov that is in https://github.com/hyperledger/fabric/blob/release-1.2/core/committer/txvalidator/vscc_validator.go#L111-L147

devendrarg (Thu, 12 Jul 2018 06:47:53 GMT):
@higunjan can you check docker log of org1msp peer?

waleed (Thu, 12 Jul 2018 07:12:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=StvHYd2nMiRujBbdw) @DanielMcSheehy U should update it manually

waleed (Thu, 12 Jul 2018 07:16:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nCPQN9r6vPcv2cXtg) @shinabh take a look here too understand the role of orderer and peers -> http://hyperledger-fabric.readthedocs.io/en/release-1.1/arch-deep-dive.html

waleed (Thu, 12 Jul 2018 07:21:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ToiE7zvmmryaBciNJ) @corykacal so basically u write your code and define your model, permissions, etc... using composer and then composer can export your code (business network definition) as a bna (the chaincode) file and dypoly it on fabric network.

waleed (Thu, 12 Jul 2018 07:21:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GAMoD6KkXjLHkuM5u) @thellimist what do u mean with hyperledger v1.3?

waleed (Thu, 12 Jul 2018 07:25:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w4gwAhcT2Pt4SS9jT) @higunjan can u give more infos? when does this happens. from what I see: your peer has no permissions to send proposals.

WadeLu (Thu, 12 Jul 2018 08:00:44 GMT):
Has joined the channel.

supay (Thu, 12 Jul 2018 08:01:11 GMT):
Has joined the channel.

supay (Thu, 12 Jul 2018 08:01:25 GMT):
hey, is it possible to dynamically create smart-contracts on hyperledger?

mdvenkatesh (Thu, 12 Jul 2018 08:14:50 GMT):
Hi Guys I am working on the marbles latest version updated in GitHub I am getting path error previously it worked fine but giving me some errors now help regarding this "path": "$HOME/marbles/fabric-samples/fabcar/hfc-key-store" } }, "channels": { "mychannel": { "orderers": [ "fabric-orderer" ], "peers": { "fabric-peer-org1": { "x-chaincode": {} } }, "chaincodes": [ "marbles:v4" ], "x-blockDelay": 10000 } }, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "peers": [ "fabric-peer-org1" ], "certificateAuthorities": [ "fabric-ca" ], "x-adminCert": { "path": "$HOME/marbles/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem" }, "x-adminKeyStore": { "path": "$HOME/marbles/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/" } I checked with that path

medhak19 (Thu, 12 Jul 2018 08:54:26 GMT):
Is it possible to register a user with attributes in fabric using node sdk (using fabric-ca-client package)? I never got it working. + All examples/articles of cid (client identity chaincode library) provide only 1 way to register user with attributes and that is using command: "fabric-ca-client". Reference: https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid/ Does that mean node SDK does not yet support this?

Alvin455024780 (Thu, 12 Jul 2018 08:55:41 GMT):
Has joined the channel.

devendrarg (Thu, 12 Jul 2018 08:55:43 GMT):
Can Orderer and Peer Org belongs to same Organization?

Alvin455024780 (Thu, 12 Jul 2018 08:56:55 GMT):
Dears, when use this command " ../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block " and output error : Can some one help ?2018-07-12 01:50:42.661 PDT [common/tools/configtxgen] main -> CRIT 005 Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

waleed (Thu, 12 Jul 2018 09:08:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zvTmgF98T5kBGw7Ye) @devendrarg A Peer must belong to an Organisation.

devendrarg (Thu, 12 Jul 2018 09:15:57 GMT):
Agree but can Orderer belongs to same org which peer belongs?

BhaskarNarayan (Thu, 12 Jul 2018 09:15:58 GMT):
Has joined the channel.

waleed (Thu, 12 Jul 2018 09:23:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KhciAKf9JiZmv7hhz) @devendrarg Order can not belong to an Organization. lets say that Order is seperate organization. if u take a look at https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml u see there is one order for 2 organization. because when u generate the cryptoconfig u will see that u have got to folders (orderer organisations & peersorganizations). so basically u can have more than one orderer but they will serve the whole network not only one organization.

waleed (Thu, 12 Jul 2018 09:23:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KhciAKf9JiZmv7hhz) @devendrarg Orderer can not belong to an Organization. lets say that Order is seperate organization. if u take a look at https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml u see there is one order for 2 organization. because when u generate the cryptoconfig u will see that u have got to folders (orderer organisations & peersorganizations). so basically u can have more than one orderer but they will serve the whole network not only one organization.

waleed (Thu, 12 Jul 2018 09:23:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KhciAKf9JiZmv7hhz) @devendrarg Orderer can not belong to an Organization of peers. lets say that Orderer is seperate organization. if u take a look at https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml u see there is one order for 2 organization. because when u generate the cryptoconfig u will see that u have got to folders (orderer organisations & peersorganizations). so basically u can have more than one orderer but they will serve the whole network not only one organization.

waleed (Thu, 12 Jul 2018 09:23:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KhciAKf9JiZmv7hhz) @devendrarg Orderer can not belong to an Organization of peers. lets say that Orderer is seperate organization. if u take a look at https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml u see there is one orderer for 2 organization. because when u generate the cryptoconfig u will see that u have got to folders (orderer organisations & peersorganizations). so basically u can have more than one orderer but they will serve the whole network not only one organization.

devendrarg (Thu, 12 Jul 2018 09:26:27 GMT):
@waleed Yeah...thanks for clarification.

higunjan (Thu, 12 Jul 2018 09:34:33 GMT):

Clipboard - July 12, 2018 3:04 PM

higunjan (Thu, 12 Jul 2018 09:34:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ax5qSw6M4hobHR26Y) @waleed After setup of `blockchain-explore` when I start using `node main.js` in root directory.

Tommy109 (Thu, 12 Jul 2018 10:16:50 GMT):
what are some of the typical issues encountered with 1.1

Tommy109 (Thu, 12 Jul 2018 10:17:01 GMT):
we plan to upgrade from 1.0 in the coming weeks

cccc (Thu, 12 Jul 2018 10:25:05 GMT):
Has joined the channel.

thellimist (Thu, 12 Jul 2018 10:36:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dYcrd48LSXdA5kkse) @waleed https://arxiv.org/pdf/1801.10228.pdf The newest version of hyperledger.

thellimist (Thu, 12 Jul 2018 10:36:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dYcrd48LSXdA5kkse) @waleed https://arxiv.org/pdf/1801.10228.pdf The newest version of hyperledger. Not sure if it's called v1.3 but at a few places I saw it being mentioned as v1.3

gravity (Thu, 12 Jul 2018 10:39:33 GMT):
Hi all is this feature still in progress? https://jira.hyperledger.org/browse/FAB-8779 because it's stated as a new feature in fabric 1.2, but status in jira in is unresolved. https://github.com/hyperledger/fabric/releases/tag/v1.2.0

marsianin88 (Thu, 12 Jul 2018 10:45:03 GMT):
Has joined the channel.

waleed (Thu, 12 Jul 2018 11:01:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FoSkvC47BihB7iZEt) @thellimist u mean hyperledger fabric not hyperledger.

waleed (Thu, 12 Jul 2018 11:01:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FoSkvC47BihB7iZEt) @thellimist u mean hyperledger fabric not hyperledger. this version is has not released yet

waleed (Thu, 12 Jul 2018 11:01:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FoSkvC47BihB7iZEt) @thellimist u mean hyperledger fabric not hyperledger. this version has not released yet

waleed (Thu, 12 Jul 2018 11:01:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FoSkvC47BihB7iZEt) @thellimist u mean hyperledger fabric not hyperledger. this version has not been released yet

waleed (Thu, 12 Jul 2018 11:02:19 GMT):
here more infos:

waleed (Thu, 12 Jul 2018 11:02:24 GMT):

Clipboard - July 12, 2018 1:02 PM

AbhiramHatolkar (Thu, 12 Jul 2018 11:02:30 GMT):
Has joined the channel.

AbhiramHatolkar (Thu, 12 Jul 2018 11:06:41 GMT):
I am using byfn (build your first network) . I started the network using "./byfn.sh up" but now I want to add a new channel in this network (let's say between org1 peer0 and org2 peer0. How do I do this without restarting the network?

kosullivan_sita (Thu, 12 Jul 2018 11:07:05 GMT):
Has joined the channel.

waleed (Thu, 12 Jul 2018 11:08:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EueyhBGAz7r6D5th6) @AbhiramHatolkar hope this helps :) http://fabrictestdocs.readthedocs.io/en/latest/asset_cli.html

thellimist (Thu, 12 Jul 2018 11:12:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WXWibaEAuoy3Crfjp) @waleed Ohh yes, since it's fabric questions I didn't feel the need to mention that. Sorry.

thellimist (Thu, 12 Jul 2018 11:12:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WXWibaEAuoy3Crfjp) @waleed Ohh yes, since the channel is fabric questions I didn't feel the need to mention that. Sorry.

waleed (Thu, 12 Jul 2018 11:17:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4kdkKRpnxrQfz3JG9) @thellimist oke :) the image above may give some infos ;)

StefanKosc (Thu, 12 Jul 2018 11:21:50 GMT):
Has joined the channel.

AbhiramHatolkar (Thu, 12 Jul 2018 11:23:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EKDMrBzEbk2rP8anJ) @waleed Thanks. I tried that but "CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 peer channel create -c myc2" gives me error "ordering service endpoint is not valid or missing". I checked my ordering service's port. It's 7050 as per the output of "docker ps" and my "configtx.yaml" & "docker-compose-base.yaml". I tried with "0.0.0.0:7050" and "orderer.example.com:7050" as well but got same error

waleed (Thu, 12 Jul 2018 12:03:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tnvgqYoYQ2qkYFDmT) @AbhiramHatolkar when does this happen? I mean u execute more than one command? on creation?

albert.serra (Thu, 12 Jul 2018 12:04:01 GMT):
Has joined the channel.

Puneet7nov (Thu, 12 Jul 2018 12:24:57 GMT):
Can someone please explain the significance and how to use IMAGE_TAG in docker-compose-cli.yaml?

Puneet7nov (Thu, 12 Jul 2018 12:24:57 GMT):
Can someone please explain the significance and how to use IMAGE_TAG in docker-compose-cli.yaml? I am actually error message whem I execute "docker-compose -f docker-compose-cli.yaml up -d"

waleed (Thu, 12 Jul 2018 12:27:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GtYKLkkZudSR4LpB5) @Puneet7nov what do u want to do with the IMAGE_TAG? u can use it in `docker-compose-cli.yaml` like this: `${IMAGE_TAG}`

Asch (Thu, 12 Jul 2018 12:27:53 GMT):
How can I make two systems on which hyperledger fabric is installed communicate with each other using local network. What are the files I need to do changes in and is there doc available for it.

Puneet7nov (Thu, 12 Jul 2018 12:28:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yn3jps3JWryRz3TjK) @waleed What is the significance? Why is it used?

waleed (Thu, 12 Jul 2018 12:29:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kNg2RbrRiEGHr8zSg) @Puneet7nov to pull a specific docker image of fabric from docker hub

Puneet7nov (Thu, 12 Jul 2018 12:32:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wEazQqW79jEQcmvjv) @waleed So when I make changes to all the yaml files and then try to execute "docker-compose -f docker-compose-cli.yaml up -d", do I need to provide this information? If, yes then where? Can you please point me to the yaml file, if that's where I need to provide this information?

Puneet7nov (Thu, 12 Jul 2018 12:35:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ByEHPJFqt8wwRYqiK) I currently have this in my docker-compose-cli.yml file "cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG"

waleed (Thu, 12 Jul 2018 12:35:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ByEHPJFqt8wwRYqiK) @Puneet7nov no u don't need to provide them because the variable is declared in .env file, which automatically recognized by docker

AbhiramHatolkar (Thu, 12 Jul 2018 12:35:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hNqbgn8Eig8m4qf3v) @waleed No. I only did "CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 peer channel create -c myc2". Anyway, I got https://qiita.com/shiki_tak/items/a28a4cefe4e1d93e997a and it worked. You might want to translate it to English first. Thanks for the help :)

MeghaGupta (Thu, 12 Jul 2018 12:36:54 GMT):
Do we have any other way then creating a plugin in go for plugging custom validation ?

Puneet7nov (Thu, 12 Jul 2018 12:37:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EbuvAKgBcuEeTZTYX) @waleed Ok thanks. let me then try to figure out what is causing the error then.

waleed (Thu, 12 Jul 2018 12:38:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JbXWroT6foNr7FsfH) @Puneet7nov oke, but u didn't post any errors!

waleed (Thu, 12 Jul 2018 12:38:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JbXWroT6foNr7FsfH) @Puneet7nov oke, but u didn't post any errors! or I didn't see any!

Puneet7nov (Thu, 12 Jul 2018 12:39:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v5LL7MWwbhwy6xsQG) @waleed Sorry, I did not post one. The error just says /hyperledger/fabric-orderer/ not found

Puneet7nov (Thu, 12 Jul 2018 12:40:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ibYTAqE5qKGFWc6ni) This was when, I tried starting up the network after changing the yaml files.

waleed (Thu, 12 Jul 2018 12:43:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YpkwbGw2H6gvgxWyA) @Puneet7nov how have u started the network and what have u changed in the yaml files'

Puneet7nov (Thu, 12 Jul 2018 12:46:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Sn4iLbBjdWBRKY3w) @waleed I am trying to start using "docker-compose -f docker-compose-cli.yaml up -d". I have changed the docker-compose-cli.yaml and the 2 Base yaml files. In those I provided the domain name, Organization names and accordingly changes the orderer, MSP, peer names

waleed (Thu, 12 Jul 2018 12:47:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2hjrJjHBi2NiXNRap) @Puneet7nov did u run `./byfn.sh -up`?

Puneet7nov (Thu, 12 Jul 2018 12:50:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EjsoPBx3hGCYRrfLR) @waleed No, cann't it be done by "CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up -d" ?

waleed (Thu, 12 Jul 2018 12:54:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RAxfybewRhotZDNht) @Puneet7nov if u want to do this u must run `./byfn.sh -generate` first an then make a change in yaml file (FABRIC_CA_SERVER_TLS_KEYFILE of ca i u use tls) then u can run `CHANNEL_NAME=$CHANNEL_NAME docker-compose -f docker-compose-cli.yaml up -d`

waleed (Thu, 12 Jul 2018 12:54:34 GMT):
@Puneet7nov but I recommend just to run `./byfn.sh -up`

Puneet7nov (Thu, 12 Jul 2018 12:58:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HbyZEa8B3JGwHyL7a) @waleed *-generate* creates -1) genesis block 2) starts a TXN Channel 3) Updates Anchor peer for each organization, right? I have done this all, before trying to restart the network.

Puneet7nov (Thu, 12 Jul 2018 12:59:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6zaq7BoXaiAuf6Wm4) What changes are required in file *FABRIC_CA_SERVER_TLS_KEYFILE*, I might be missing that.

waleed (Thu, 12 Jul 2018 13:00:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m6CyXfd3gcnsPPPFk) @Puneet7nov the path of FABRIC_CA_SERVER_TLS_KEYFILE

waleed (Thu, 12 Jul 2018 13:01:30 GMT):
@Puneet7nov why don't u just run `./byfn.sh -up` and it will work or get little bit deeper into the script to see what should be done after gnerating the configs?

waleed (Thu, 12 Jul 2018 13:01:30 GMT):
@Puneet7nov why don't u just run `./byfn.sh -up` and it will work or get little bit deeper into the script to see what should be done after generating the configs?

Puneet7nov (Thu, 12 Jul 2018 13:02:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fAhdDtP6qZphPJBbe) @waleed ok. I will try that.

leolustig (Thu, 12 Jul 2018 14:20:30 GMT):
Has joined the channel.

shyammishra (Thu, 12 Jul 2018 14:49:42 GMT):
Has joined the channel.

shyammishra (Thu, 12 Jul 2018 14:49:49 GMT):
Hi All, am new here and please forgive me if this is not the right place to ask. I am asking for the tuna-app which was taught to understand creating fabric application. My question is each peer (person) need to do all the process to install Fabric and then can access the app via web? I mean end users are not that techy then how come they can use it?

gsgx (Thu, 12 Jul 2018 15:01:12 GMT):
Has joined the channel.

myassir (Thu, 12 Jul 2018 15:20:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M8SDwCRgNMJDprQ3o) @shyammishra In fabric there is difference between peers and users, users request transactions while peers endorse it, so no end users won't have to do all that process,

myassir (Thu, 12 Jul 2018 15:21:04 GMT):
@shyammishra read about Fabrick SDK, I think it will help you to see the difference

myassir (Thu, 12 Jul 2018 15:21:04 GMT):
@shyammishra read about Fabric SDK, I think it will help you to see the difference

gravity (Thu, 12 Jul 2018 15:44:13 GMT):
Hello are there any alternatives to `configtxgen` in java sdk to create channel configuration?

gravity (Thu, 12 Jul 2018 15:44:13 GMT):
Hello are there any alternatices to `configtxgen` in java sdk to create channel configuration?

DanielMcSheehy (Thu, 12 Jul 2018 15:55:49 GMT):
@waleed If you dont mind me asking, how do I manually update `fabric-samples/basic-network` to v1.2

waleed (Thu, 12 Jul 2018 15:58:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=onq64XvrxEjGaEvo4) @DanielMcSheehy http://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_network_tutorial.html

jiribroulik (Thu, 12 Jul 2018 15:58:36 GMT):
Has joined the channel.

jiribroulik (Thu, 12 Jul 2018 16:00:02 GMT):
Hello guys, could you please answer me if I can connect channel to more orderers? Not kafka but I mean to multiple orderer organizations.

jiribroulik (Thu, 12 Jul 2018 16:03:08 GMT):
Also If I plan tens of channels and tens of organizations. Members varying in the channels. How would you design the Orderers? Create Kafka Orderer for each organization or orderers only for the organizations that will want to create new channels or? Share of experiences much appreciated

lislunev (Thu, 12 Jul 2018 16:08:07 GMT):
Hello, does any one use rich query, to get data from couch db?

titog (Thu, 12 Jul 2018 20:37:17 GMT):
is this "Manually create a channel" procedure still valid?

titog (Thu, 12 Jul 2018 20:37:19 GMT):
http://fabrictestdocs.readthedocs.io/en/latest/asset_cli.html

nvlasov (Fri, 13 Jul 2018 04:27:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wCeuMTegrYqN9ShBi) @yacovm Thanks for response! If I read that code correctly, it's checking whether the write set is within the correct namespace. Does it mean the versions of the key for read set is not validated any more in 1.2?

nvxtien (Fri, 13 Jul 2018 05:01:34 GMT):
Hi guys,

nvxtien (Fri, 13 Jul 2018 05:02:45 GMT):
Sometimes I get this error this error when submitting a transaction.

nvxtien (Fri, 13 Jul 2018 05:02:46 GMT):
[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: TCP Read failed at new createStatusError (/home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: TCP Read failed\n at createStatusError (/home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._receiveStatus (/home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:248:8)\n at /home/user/server/node_modules/fabric-client/node_modules/grpc/src/client.js:804:12".

nvxtien (Fri, 13 Jul 2018 05:03:08 GMT):
Could you please guide me on this issue?

pankajcheema (Fri, 13 Jul 2018 06:00:37 GMT):
@yacovm @jyellick am a bit confused on a point in 1.2 documentation please have a look https://stackoverflow.com/questions/51318446/hyeperledger-1-2-documentation

GowriR (Fri, 13 Jul 2018 06:42:47 GMT):
hello all, I am using the dev environment - with 1 peer, 1 orderer etc and checking my chaincode. The stub.PutState with a key passes and does not give an error. But the stub.GetState with the same key does not retrieve the state. Any idea why? I am perplexed and stuck on this for quite a while.

Sreesha (Fri, 13 Jul 2018 06:45:56 GMT):
In orderer/tls folder i have server.key and server.cert files only. But in cryptoconfig another file called ca.crt is also present and the same is used in network-config.yaml What is this ca.crt and how to generate it

GowriR (Fri, 13 Jul 2018 07:12:59 GMT):
I am working on the chaincode development environment having one peer and one orderer and a cli and 1 chaincode container. I wrote a chaincode to put a an integer and string in the ledger. stub.PutState (gave no errors and the test cases worked and peer chaincode invoke worked too) stub.GetState returns empty results with the same key. *The following is the out on the chaincode debug terminal* *2018-07-07 07:38:30.964 UTC [utility workflow] Info -> INFO 050 Put state over Utility peer | 2018-07-07 07:20:46.916 UTC [aclmgmt] CheckACL -> DEBU 6b5 acl policy not found in config for resource lscc/GetChaincodeData request recorded **2018-07-07 07:38:30.965 UTC [utility workflow] Info -> INFO 051 utilityagreement = [] 2018-07-07 07:38:30.965 UTC [utility workflow] Info -> INFO 052 Get state over *Utility workflow invoke *2018-07-07 07:40:11.449 UTC [utility workflow] Info -> INFO 05a Put state over Utility uwUtility2ks89m9 request recorded 2018-07-07 07:40:11.449 UTC [utility workflow] Info -> INFO 05b utilityagreement = [] 2018-07-07 07:40:11.449 UTC [utility workflow] Info -> INFO 05c Get state over * The following is the output (relevant pieces) from the BC terminal *peer | 2018-07-07 07:20:46.922 UTC [chaincode] HandleGetState -> DEBU 6ce [3543142c] getting state for chaincode uw, key uwUtility2ks89m9, channel utilitychannel peer | 2018-07-07 07:20:46.922 UTC [stateleveldb] GetState -> DEBU 6cf GetState(). ns=uw, key=uwUtility2ks89m9 peer | 2018-07-07 07:20:46.922 UTC [chaincode] HandleGetState -> DEBU 6d0 [3543142c] No state associated with key: peer | uwUtility2ks89m9. Sending RESPONSE with an empty payload* *peer | 2018-07-07 07:20:46.923 UTC [endorser] SimulateProposal -> DEBU 6d8 [utilitychannel][3543142c] Exit peer | 2018-07-07 07:20:46.923 UTC [endorser] ProcessProposal -> ERRO 6d9 [utilitychannel][3543142c] simulateProposal() resulted in chaincode name:"uw" response status 500 for txid: 3543142c5242f2f6cccf59d5d66085da57224f313da4da55445bdbefd07d7882 peer | 2018-07-07 07:20:46.923 UTC [lockbasedtxmgr] Done -> DEBU 6da Done with transaction simulation / query execution [3543142c5242f2f6cccf59d5d66085da57224f313da4da55445bdbefd07d7882] peer | 2018-07-07 07:20:46.923 UTC [endorser] ProcessProposal -> DEBU 6db Exit: request from 172.19.0.5:55422 peer | 2018-07-07 07:20:47.050 UTC [gossip/election] waitForInterrupt -> DEBU 6dc [224 188 216 51 186 178 44 133 102 54 18 35 220 135 96 92 229 184 117 133 230 202 7*

tatsu-sato (Fri, 13 Jul 2018 07:53:24 GMT):
Hi, I tried to execute `peer node status` in fabric v1.2.0 environment, but the following error occurs ``` 2018-07-13 05:06:03.978 UTC [nodeCmd] status -> INFO 040 Error trying to get status from local peer: rpc error: code = Unknown desc = access denied status:UNKNOWN Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied ``` Does anyone know this issue? (*) I used docker-compose files in `fabric-samples/balance-transfer`. (*) In v1.1.x, I was able to get `status:STARTED` results.

nabil941994 (Fri, 13 Jul 2018 08:23:48 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

amolpednekar (Fri, 13 Jul 2018 08:58:46 GMT):
Is there any oracle service for Fabric in the works? @yacovm

carlito (Fri, 13 Jul 2018 09:04:16 GMT):
Has joined the channel.

carlito (Fri, 13 Jul 2018 09:05:05 GMT):
Hi guys, is anyone can help me to solve a issue I have on setting up my sdk rest server ?

carlito (Fri, 13 Jul 2018 09:07:16 GMT):
I am trying to bind a network with the sdk rest api server and when I send a request from Loopback api explorer to get the list of channels which been created, I get this error on my server logs

carlito (Fri, 13 Jul 2018 09:08:30 GMT):

erreur_serveur_apirest.png

DinghaoLI 1 (Fri, 13 Jul 2018 09:23:20 GMT):
hey guys

DinghaoLI 1 (Fri, 13 Jul 2018 09:25:24 GMT):
According to the feature "Pluggable transaction endorsement and validation". It means that I can implement the UTXO in the endorsement/validation level?

ehsanhajian (Fri, 13 Jul 2018 09:28:18 GMT):
Has joined the channel.

Legiit (Fri, 13 Jul 2018 09:30:57 GMT):
Is it somewhere visible/queryable where and by whom a certain `getState(key)` has been issued? I am trrying to find a way to track who queried which data

yacovm (Fri, 13 Jul 2018 09:31:56 GMT):
@amolpednekar not that I know of... can you explain why would you want that in fabric?

DinghaoLI 1 (Fri, 13 Jul 2018 09:45:07 GMT):
Have anyone tried to implement UTXO in endorsement/validation level?

DinghaoLI 1 (Fri, 13 Jul 2018 09:45:13 GMT):
:grin:

yacovm (Fri, 13 Jul 2018 09:47:27 GMT):
it's on the roadmap @DinghaoLI 1

amolpednekar (Fri, 13 Jul 2018 09:48:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ekzFvbmXsHBpDotvC) @yacovm I want my smart contract to get data from some external service and make some decisions. This external data changes frequently enough so I dont want this data to be on-chain (for say, chaincode to chaincode calls)

geourjoa (Fri, 13 Jul 2018 09:49:04 GMT):
Hi, I have question about the gouvernance in FAbric. In a concrete network in production who manage the cli container ? There is only one cli per network ? And secondly, for example,I have a chaincode in v 1.0 on my channel. If a peer want to upgrade and if one other does not want to upgrade, what will be the result ? Thanks in advance and sorry my poor english.

yacovm (Fri, 13 Jul 2018 09:51:04 GMT):
@amolpednekar but can't you just re-query that external service?

nabil941994 (Fri, 13 Jul 2018 09:53:23 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

nabil941994 (Fri, 13 Jul 2018 09:53:24 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

DinghaoLI 1 (Fri, 13 Jul 2018 09:59:45 GMT):
Ok thanks @yacovm

nabil941994 (Fri, 13 Jul 2018 10:16:18 GMT):
Some help would be appreciated

OviiyaDominic (Fri, 13 Jul 2018 10:17:34 GMT):
hi, what is orderer system channel and application system channel ?

DinghaoLI 1 (Fri, 13 Jul 2018 10:35:58 GMT):

Clipboard - July 13, 2018 6:35 PM

DinghaoLI 1 (Fri, 13 Jul 2018 10:36:05 GMT):
You can see the docs @OviiyaDominic

Telijas (Fri, 13 Jul 2018 10:44:42 GMT):
Hey guys. Is there a way to debug the permissions.acl file or at least get a console output of some manual console.log() statements?

nabil941994 (Fri, 13 Jul 2018 11:49:15 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

rajivgandhi2010 (Fri, 13 Jul 2018 12:03:28 GMT):
Has joined the channel.

rajivgandhi2010 (Fri, 13 Jul 2018 12:03:40 GMT):
Hi am getting "Error response from daemon: No such image: hyperledger/fabric-peer:1.2.0" when i try to download latest fabric samples

nabil941994 (Fri, 13 Jul 2018 12:12:43 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

awjh (Fri, 13 Jul 2018 12:25:47 GMT):
Has joined the channel.

shyammishra (Fri, 13 Jul 2018 13:02:13 GMT):
Hi there, can anyone here help me out to understand how 2 end users will interact with any application (like Tuna app). They are end users so they do not have technical knowledge, so how they will setup node and work upon. Am bit confuse of how final application will be used by end user

AMIL_SAJEEV (Fri, 13 Jul 2018 13:12:08 GMT):
Hi all, when i tried to instantiate the chain code get an error : sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [carlanerootchannel] creator org [Org1MSP] how can i solve this??

titog (Fri, 13 Jul 2018 13:16:36 GMT):
Hi folks! Which directory for each container should we set as persistent on a production environment? Thanks!

nabil941994 (Fri, 13 Jul 2018 13:21:20 GMT):
Hello, i am trying to implement java sdk with Spring, however i am getting the following error : org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer , even tho the same implementation worked when i built a .jar file, and it is working using nodesdk, so nothing is wrong with the hyperledger network

aatkddny (Fri, 13 Jul 2018 13:57:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4bHey4PyWF2dzBuNb) @nabil941994 It's not deterministic. You will likely need to up the times in your config. ``` org.hyperledger.fabric.sdktest.GossipWaitTime = 50000 org.hyperledger.fabric.sdktest.ProposalWaitTime = 580000 org.hyperledger.fabric.sdktest.InvokeWaitTime = 580000 org.hyperledger.fabric.sdktest.DeployWaitTime = 700000 #peer properties grpc.NettyChannelBuilderOption.maxInboundMessageSize=9000000 grpc.NettyChannelBuilderOption.keepAliveTime=120 grpc.NettyChannelBuilderOption.keepAliveTimeout=60 ``` This is what I'm using locally after a number of iterations.

aatkddny (Fri, 13 Jul 2018 13:57:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4bHey4PyWF2dzBuNb) @nabil941994 It's not deterministic. You will likely need to up the times in your config. ``` org.hyperledger.fabric.sdktest.GossipWaitTime = 50000 org.hyperledger.fabric.sdktest.ProposalWaitTime = 580000 org.hyperledger.fabric.sdktest.InvokeWaitTime = 580000 org.hyperledger.fabric.sdktest.DeployWaitTime = 700000 #peer properties grpc.NettyChannelBuilderOption.maxInboundMessageSize=9000000 grpc.NettyChannelBuilderOption.keepAliveTime=120 grpc.NettyChannelBuilderOption.keepAliveTimeout=60 ``` This is what I'm using locally after a number of iterations. I'm not saying they are *ideal* - I'm saying they *work* on my Mac for my fabric.

aatkddny (Fri, 13 Jul 2018 13:59:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jXoahLnWPLH9wRfMn) Isn't he talking about an oracle?

aatkddny (Fri, 13 Jul 2018 13:59:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jXoahLnWPLH9wRfMn) Isn't he talking about an oracle? Which is something I keep wondering about - is that actually road mapped?

StefanKosc (Fri, 13 Jul 2018 15:04:53 GMT):
Hi, I have a question, let's suppose that there exists an organisation which is a participant in many channels, could there be a user from this organisation who can have different permissions (read or write) per channel?

qizhang (Fri, 13 Jul 2018 15:34:32 GMT):
Why do we have a different container to run the user chaincode, instead of running in in the peer container, just like the system chaincode?

aatkddny (Fri, 13 Jul 2018 15:57:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5HBBdABaKqFNQ2ECt) Well it might be an issue if you have 50 channels each with a couple of chaincodes instantiated...

qizhang (Fri, 13 Jul 2018 16:04:48 GMT):
@aatkddny I assume you are talking about the scalability, but why putting the system chaincode in the peer is not an issue in this case?

qizhang (Fri, 13 Jul 2018 16:04:48 GMT):
@aatkddny I assume you are talking about the scalability, but why putting the system chaincodes in the peer is not an issue in this case?

aatkddny (Fri, 13 Jul 2018 16:06:38 GMT):
there's only a couple of them so the amount of resources they use is constrained.

aatkddny (Fri, 13 Jul 2018 16:06:38 GMT):
there's only a couple of them so the amount of resources they use is constrained.

qizhang (Fri, 13 Jul 2018 16:09:34 GMT):
I think the amount of resources the system chaincodes use also depends on the rate of the transactions they are dealing with. Thus if you have 50 channels each with a couple of chaincodes instantiated, the same system chaincodes could consume more resources.

qizhang (Fri, 13 Jul 2018 16:09:34 GMT):
I think the amount of resources the system chaincodes use also depends on the rate of the transactions they are dealing with. Thus if you have 50 channels each with a couple of chaincodes instantiated, the same system chaincodes could also consume more resources.

aatkddny (Fri, 13 Jul 2018 16:13:03 GMT):
its not just the system chaincode you need to worry about. the channels also take up space in the peer. i suspect they didn't want to risk some crappy chaincode in a container taking down a peer. I can think of any number of other good reasons to separate concerns this way.

aatkddny (Fri, 13 Jul 2018 16:13:03 GMT):
its not just the system chaincode you need to worry about. the channels also take up space in the peer. i suspect they didn't want to risk some crappy chaincode in a container taking down a peer, but I can think of any number of other good reasons to separate concerns this way.

guilhermesimoes (Fri, 13 Jul 2018 16:21:19 GMT):
Has joined the channel.

guilhermesimoes (Fri, 13 Jul 2018 16:21:37 GMT):
Hi, I have a question. I created a PeerAdminCard and deployed a business network I created (similar to the Development Tuturial). My question is if I stop the Fabric, and start it again, do I have to reinstall my business network again?? shouldn't it be able to just make composer start...? Im getting an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode

yacovm (Fri, 13 Jul 2018 16:22:09 GMT):
There are too many reasons... Not only security like @aatkddny said but also you can't really properly un-install a system chaincode from a running peer

yacovm (Fri, 13 Jul 2018 16:22:52 GMT):
Also... At that time- golang plugins were not available so there was no obvious way to inject code in-process

qizhang (Fri, 13 Jul 2018 16:52:48 GMT):
Thanks guys. The reason I am asking is I think the performance could be better if the user chaincode is running in the peer, since then no grpc is required

qizhang (Fri, 13 Jul 2018 16:52:48 GMT):
Thanks guys. The reason I am asking is I think the performance could be better if the user chaincode is running in the peer, since in that case no grpc is required

yacovm (Fri, 13 Jul 2018 17:03:50 GMT):
That's obvious @qizhang :)

yacovm (Fri, 13 Jul 2018 17:04:59 GMT):
I think that if we optimize the chaincode we can achieve performance that's similar....

yacovm (Fri, 13 Jul 2018 17:05:18 GMT):
but sure - all these ping pongs between the shim and the peer don't do good

qizhang (Fri, 13 Jul 2018 18:05:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JZic7SAmFxQs8Rm8i) @yacovm Currently, does every single putState and getState in the chaincode require a grpc call?

qizhang (Fri, 13 Jul 2018 18:05:33 GMT):
@yacovm Currently, does every single putState and getState in the chaincode require a grpc call?

qizhang (Fri, 13 Jul 2018 18:05:33 GMT):
@yacovm Currently, does every single putState and getState in the chaincode require a grpc call?

yacovm (Fri, 13 Jul 2018 18:07:26 GMT):
yes

frustrated-chain (Fri, 13 Jul 2018 21:31:08 GMT):
People, how is it possible to get a block than contains some specific transaction?

waleed (Fri, 13 Jul 2018 21:40:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w8o89zZLbK5jy4hm6) @frustrated-chain https://github.com/hyperledger/blockchain-explorer

frustrated-chain (Fri, 13 Jul 2018 21:49:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YA7s6P8hxb2d8f3zZ) @waleed Thank you.

dannychen (Sat, 14 Jul 2018 07:23:07 GMT):
hi guys, do Fabric has cross chain feature?

pankajcheema (Sat, 14 Jul 2018 07:42:07 GMT):
What is the difference between `.peer`, `.member`, `.admin` in `Endorsement Policy`?

pankajcheema (Sat, 14 Jul 2018 07:42:07 GMT):
What is the difference between `.peer`, `.member`, `.admin` & `.client` in `Endorsement Policy`?

yacovm (Sat, 14 Jul 2018 08:41:07 GMT):
don't use admin and client

pankajcheema (Sat, 14 Jul 2018 08:44:28 GMT):
@yacovm what components will be used if I use `.member`?

pankajcheema (Sat, 14 Jul 2018 08:44:44 GMT):
or If I use `.client` & `.admin`

pankajcheema (Sat, 14 Jul 2018 08:44:51 GMT):
I am just looking for description

meiremax (Sat, 14 Jul 2018 15:27:45 GMT):
Hi Guys. I am trying and trying but i cannot get this to work. When i run my chaincode straight out of the CLI, it works. However when i use GRPC to connect to the peer. it times out. i tried using the docker host (grpc://peer0.org1.example.com:7051), localhost,127.0.0.1, the physical IP address of the server But nothing works.

meiremax (Sat, 14 Jul 2018 15:29:00 GMT):
it's probably something obvious i looked over

nico.ventrella (Sat, 14 Jul 2018 16:49:29 GMT):
Has joined the channel.

nico.ventrella (Sat, 14 Jul 2018 16:49:32 GMT):
Hi, I have created my business network and deployed on Fabric, all on a single vm that contain a simple network with one peer. Now I want to extend it on multiple hosts (2 vm with 2 peer of the same org, an orderer, a cli, a ca). Does anyone knows how it can be done?

meiremax (Sat, 14 Jul 2018 17:16:38 GMT):
ok nvm my question. it was because i tried to access it outside a docker container

meiremax (Sat, 14 Jul 2018 17:16:49 GMT):
@nico.ventrella yes one second

meiremax (Sat, 14 Jul 2018 17:16:58 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

meiremax (Sat, 14 Jul 2018 17:17:00 GMT):
here you go :)

Marc.K (Sat, 14 Jul 2018 21:31:18 GMT):
Hey Is there an "offical" image of the contents of a block for v1.1 or v1.2 similar to something like this: https://blockchain-fabric.blogspot.com/2017/04/hyperledger-fabric-v10-block-structure.html ?

Krishna2 1 (Sun, 15 Jul 2018 11:16:48 GMT):
Has joined the channel.

Krishna2 1 (Sun, 15 Jul 2018 11:17:08 GMT):
Hi folks - how to add "Subject alternate DNS names" in the crypto-config.yaml?

Krishna2 1 (Sun, 15 Jul 2018 11:17:46 GMT):
I'm getting the error while sending proposal to peer, in the firt-network sample

Krishna2 1 (Sun, 15 Jul 2018 11:17:46 GMT):
I'm getting the error while sending proposal to peer, in the first-network sample

Krishna2 1 (Sun, 15 Jul 2018 11:21:52 GMT):
verification of certificate failed. No Subject alternative DNS name matching xxx is found

yacovm (Sun, 15 Jul 2018 11:22:10 GMT):
look at the "Host" string

yacovm (Sun, 15 Jul 2018 11:22:12 GMT):
@Krishna2 1

Krishna2 1 (Sun, 15 Jul 2018 11:22:29 GMT):
I have added the host name in the Specs

Krishna2 1 (Sun, 15 Jul 2018 11:22:46 GMT):
still - it don't see it added to the generated cert

yacovm (Sun, 15 Jul 2018 11:27:20 GMT):
because it skips already existing

yacovm (Sun, 15 Jul 2018 11:27:26 GMT):
you need to delete the node folder

yacovm (Sun, 15 Jul 2018 11:27:33 GMT):
and run `cryptogen extend`

yacovm (Sun, 15 Jul 2018 11:27:38 GMT):
but before you delete anything - back up

yacovm (Sun, 15 Jul 2018 11:27:38 GMT):
but before you delete anything - back it up

Krishna2 1 (Sun, 15 Jul 2018 11:50:14 GMT):
Thanks @yacovm . But I didn't understand what is node folder. I do byfn.sh down which removes the crypto folder and recreates the crypto material

Krishna2 1 (Sun, 15 Jul 2018 11:50:21 GMT):
Isn't that enough?

yacovm (Sun, 15 Jul 2018 11:50:42 GMT):
yeah of course it is

Krishna2 1 (Sun, 15 Jul 2018 11:51:53 GMT):
should I pass any options to cryptogen in the byfn.sh?

yacovm (Sun, 15 Jul 2018 11:52:07 GMT):
no

Krishna2 1 (Sun, 15 Jul 2018 11:54:21 GMT):
currently it does Subject cryptogen generate --config=./crypto-config.yaml

Krishna2 1 (Sun, 15 Jul 2018 11:54:21 GMT):
currently it does cryptogen generate --config=./crypto-config.yaml

yacovm (Sun, 15 Jul 2018 12:06:50 GMT):
i know

cagdasozt (Sun, 15 Jul 2018 13:24:09 GMT):
Has joined the channel.

cagdasozt (Sun, 15 Jul 2018 13:24:14 GMT):
Hi everyone, I am newest of writing Blockchain code using with Composer and I am fallowing steps in instructions however when I try to deploy my test network using with "composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna" I am getting this error : Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed what should I do because in the instruction page it should be work because of the peer admin created as part of development environment installation.

khanhnnvn (Sun, 15 Jul 2018 14:54:01 GMT):
Has joined the channel.

khanhnnvn (Sun, 15 Jul 2018 14:54:52 GMT):
Hi all, i want to see code fabric how to create transactions, put to block, ...

PickettMS (Sun, 15 Jul 2018 15:04:04 GMT):
Has joined the channel.

PickettMS (Sun, 15 Jul 2018 15:29:25 GMT):
what channel would be the right channel to ask about currency transactions with fabric?

PickettMS (Sun, 15 Jul 2018 15:32:41 GMT):
im having trouble understanding how a someone who has a B2P platform accepts interactions with just fabric. do you use fabric/composer or do you need to use fabric with another financial layer for on-ramping?

meiremax (Sun, 15 Jul 2018 19:19:28 GMT):
Hi guys, when launching a v1.2.0 network and trying to creaate a channel. I get Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: invalid mod_policy for element [Policy] /Channel/Application/Admins: mod_policy not set

meiremax (Sun, 15 Jul 2018 19:19:34 GMT):
is there a fix for this?

meiremax (Sun, 15 Jul 2018 19:20:45 GMT):
(btw i do exactly the same commands that launch a V1.1.0 network without any problems)

BlockchainBusiness (Mon, 16 Jul 2018 01:15:25 GMT):
Has joined the channel.

simonyau (Mon, 16 Jul 2018 02:38:58 GMT):
what's the minimum number of Kafkas and Zookeepers if I want to have around 5 organizations, with each organization to have 5-6 peer nodes?

amolpednekar (Mon, 16 Jul 2018 03:59:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G5bQFnFowjbYf4LBr) @yacovm Sorry for the late response, but the problem with getting data from an external service is not necessarily re-querying, but guaranteeing that all endorsing peers get the same result when they query this external service and also provide some kind of attestation from the service about the data its sending

simonyau (Mon, 16 Jul 2018 04:37:24 GMT):
hey all, when i register the user using the fabric CA, there is a field "affiliation" to input, what's the impact for this affiliation, if it is a must to align in all organizations that participate in the channel?

ShubhamTatvamasi (Mon, 16 Jul 2018 05:19:09 GMT):
Has joined the channel.

venedara (Mon, 16 Jul 2018 05:55:56 GMT):
Hi + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-07-16 05:53:57.283 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

venedara (Mon, 16 Jul 2018 05:56:22 GMT):
While starting the fabric network iam getting below error could some one please help me to resolve this

Raghavendrar 2 (Mon, 16 Jul 2018 06:23:00 GMT):
Has joined the channel.

Raghavendrar 2 (Mon, 16 Jul 2018 06:23:44 GMT):
Hi everyone i'm looking for a scenario where there are 1organization, 2 peers, 1 channel.

simonyau (Mon, 16 Jul 2018 06:25:47 GMT):
Hi everyone, i am creating peer1/peer2/peer3, (anchor node is peer1), when i start the peer3, below error message, any idea? 2018-07-16 06:19:51.180 UTC [gossip/gossip] handleMessage -> WARN 1d0 Message GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 78 bytes, Signature: 70 bytes Secret payload: 24 bytes, Secret Signature: 71 bytes isn't valid

yacovm (Mon, 16 Jul 2018 06:28:05 GMT):
@simonyau - if it only doesn't appear all the time then it's ok

Raghavendrar 2 (Mon, 16 Jul 2018 06:29:03 GMT):
Hi everyone i'm looking for a scenario where there are 1 organiztion,2 peers,1 channel,in docker compose.yml file of basic network in fabric samples i added one more peer generated the certificates accordingly, during joining of 2nd peer to channel i'm getting error as follows:"Error: Error getting endorser client channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: context deadline exceeded"

simonyau (Mon, 16 Jul 2018 06:36:58 GMT):
@yacovm but the error still happen when i restart the peer node? does it mean that the TLS connection failed?

simonyau (Mon, 16 Jul 2018 06:38:16 GMT):
@yacovm the error keep coming 2018-07-16 06:36:08.884 UTC [gossip/comm] sendToEndpoint -> WARN 1d5 Failed obtaining connection for peer3.intranet.com:7251, PKIid:[74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100] reason: context deadline exceeded 2018-07-16 06:36:08.884 UTC [gossip/discovery] expireDeadMembers -> WARN 1d6 Entering [[74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100]] 2018-07-16 06:36:08.884 UTC [gossip/discovery] expireDeadMembers -> WARN 1d7 Closing connection to Endpoint: peer3.intranet.com:7251, InternalEndpoint: peer3.intranet.com:7251, PKI-ID: [74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100], Metadata: [] 2018-07-16 06:36:08.884 UTC [gossip/discovery] expireDeadMembers -> WARN 1d8 Exiting 2018-07-16 06:36:10.217 UTC [gossip/comm] sendToEndpoint -> WARN 1d9 Failed obtaining connection for peer3.intranet.com:7251, PKIid:[74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100] reason: context deadline exceeded 2018-07-16 06:36:11.886 UTC [gossip/comm] sendToEndpoint -> WARN 1da Failed obtaining connection for peer3.intranet.com:7251, PKIid:[74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100] reason: context deadline exceeded 2018-07-16 06:36:11.886 UTC [gossip/discovery] expireDeadMembers -> WARN 1db Entering [[74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100]] 2018-07-16 06:36:11.886 UTC [gossip/discovery] expireDeadMembers -> WARN 1dc Closing connection to Endpoint: peer3.intranet.com:7251, InternalEndpoint: peer3.intranet.com:7251, PKI-ID: [74 23 226 40 77 27 205 97 121 37 236 155 157 82 146 135 85 20 65 0 40 187 151 100 100 23 173 171 207 85 224 100], Metadata: [] 2018-07-16 06:36:11.886 UTC [gossip/discovery] expireDeadMembers -> WARN 1dd Exiting

yacovm (Mon, 16 Jul 2018 06:44:13 GMT):
if you restart the node, obviously nodes are going to complain

AlexSurya (Mon, 16 Jul 2018 06:46:49 GMT):
Has joined the channel.

AlexSurya (Mon, 16 Jul 2018 06:47:00 GMT):
hi

AlexSurya (Mon, 16 Jul 2018 06:48:21 GMT):
im beginner in hyperledger-fabric please anyone guide me

venedara (Mon, 16 Jul 2018 07:16:05 GMT):
Hi Sir

venedara (Mon, 16 Jul 2018 07:21:35 GMT):
can some one help me to resolve the below issue + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-07-16 05:53:57.283 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

stone-ch (Mon, 16 Jul 2018 08:39:12 GMT):
Has joined the channel.

venedara (Mon, 16 Jul 2018 10:09:14 GMT):
Hello Could some one help on above error

StefanKosc (Mon, 16 Jul 2018 10:12:23 GMT):
Hi, is it possible to limit access to hyperledger-explorer for some users?

venedara (Mon, 16 Jul 2018 10:16:17 GMT):
yes i think i have heard it is possible as permission-ed

venedara (Mon, 16 Jul 2018 10:16:28 GMT):
But iam not sure on how to work on it

StefanKosc (Mon, 16 Jul 2018 10:19:02 GMT):
@venedara thanks for response can you point me to some resource how it might be achieved?

cccc (Mon, 16 Jul 2018 10:28:26 GMT):
hi can some one help i follow the tutorials "chaincode for Developers"

cccc (Mon, 16 Jul 2018 10:28:26 GMT):
hi can some one help i follow the tutorials "chaincode for Developers" Terminal 1 - Start the network after i use the commond "docker-compose -f docker-compose-simple.yaml up" the error message [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp ipaddress:7050: getsockopt: connection refused"; Reconnecting to {orderer:7050 } cli | Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable cli | Usage: cli | peer channel create [flags] cli | cli | Flags: cli | -c, --channelID string In case of a newChain command, the channel ID to create. cli | -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer cli | -t, --timeout int Channel creation timeout (default 5) cli | cli | Global Flags: cli | --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint cli | --logging-level string Default logging level and overrides, see core.yaml for full syntax cli | -o, --orderer string Ordering service endpoint cli | --test.coverprofile string Done (default "coverage.cov") cli | --tls Use TLS when communicating with the orderer endpoint cli | -v, --version i try to search ,find less message about this . Any help is great

cccc (Mon, 16 Jul 2018 10:28:26 GMT):
hi can some one help i follow the tutorials "chaincode for Developers" Terminal 1 - Start the network after i use the commond "docker-compose -f docker-compose-simple.yaml up" the error message [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 222.85.64.189:7050: getsockopt: connection refused"; Reconnecting to {orderer:7050 } cli | Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable cli | Usage: cli | peer channel create [flags] cli | cli | Flags: cli | -c, --channelID string In case of a newChain command, the channel ID to create. cli | -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer cli | -t, --timeout int Channel creation timeout (default 5) cli | cli | Global Flags: cli | --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint cli | --logging-level string Default logging level and overrides, see core.yaml for full syntax cli | -o, --orderer string Ordering service endpoint cli | --test.coverprofile string Done (default "coverage.cov") cli | --tls Use TLS when communicating with the orderer endpoint cli | -v, --version i try to search ,find less message about this . Any help is great

murphd37 (Mon, 16 Jul 2018 11:52:34 GMT):
Has joined the channel.

AarshdeepJassal (Mon, 16 Jul 2018 12:41:57 GMT):
Has joined the channel.

StefanKosc (Mon, 16 Jul 2018 13:21:16 GMT):
Hi, is it possible to share private data in transactions between organisational units?

vagnerasilva (Mon, 16 Jul 2018 13:34:25 GMT):
Help please Personally how do I use nodejs skd to access the sample "first-network" like fabcar I get to use normal, but when I make the first network try I do not know the process. Someone has a tutorial and can help me with something.

corykacal (Mon, 16 Jul 2018 14:59:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=etSbDoS59jK58spoN) @StefanKosc In private channels the transactions will be private

gravity (Mon, 16 Jul 2018 15:07:15 GMT):
Hi all Why it's impossible to enroll an org admin (who can create channels and install chaincodes) via fabric-ca (using java sdk)? I'm getting the certificates, but when I try to an admin action, I'm getting the errror that `The identity is not an admin`.

huangliping (Tue, 17 Jul 2018 03:26:36 GMT):
Hi there, when I try to instantiate the chaincode, I always encountered the error like --- 2018-07-17 02:38:47.687 UTC [chaincode] Launch -> ERRO 02c start failed: API error (404): invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\"\n" how to solve this?

hariomgoyal (Tue, 17 Jul 2018 05:09:20 GMT):
check your configurations

hariomgoyal (Tue, 17 Jul 2018 05:09:30 GMT):
@huangliping

huangliping (Tue, 17 Jul 2018 05:42:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PWzCKbXhLmYAuLbA9) @hariomgoyal which configuration?

huangliping (Tue, 17 Jul 2018 05:43:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PWzCKbXhLmYAuLbA9) @hariomgoyal Can you give more detail, what configuration?

PickettMS (Tue, 17 Jul 2018 05:56:55 GMT):
im having trouble understanding how a someone who has a B2P platform accepts transactions with just fabric. do you use fabric/composer or do you need to use fabric with another financial layer for on-ramping?

MeghaGupta (Tue, 17 Jul 2018 06:29:26 GMT):
Hi please help me with error : Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")

MeghaGupta (Tue, 17 Jul 2018 06:29:40 GMT):
I was trying to create my first network

Akash-digiledge (Tue, 17 Jul 2018 06:52:29 GMT):
Has joined the channel.

dannychen (Tue, 17 Jul 2018 07:12:39 GMT):
@MeghaGupta Please attach your setting files.

dannychen (Tue, 17 Jul 2018 07:13:35 GMT):
Hi all, is there any chance for Fabric to make a cross chain Transaction?

pankajcheema (Tue, 17 Jul 2018 07:45:20 GMT):
@MeghaGupta There is issue with your certificates

pankajcheema (Tue, 17 Jul 2018 07:47:52 GMT):
Hi Expert am trying 1.2 Binaries and at the time of `configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block` and also at the time of `configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME` getting warning ```[common/tools/configtxgen/encoder] NewApplicationGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the application group in configtx.yaml``` . What does this mean ?

pankajcheema (Tue, 17 Jul 2018 07:51:10 GMT):
@yacovm

pankajcheema (Tue, 17 Jul 2018 07:51:18 GMT):
@DheerajSingh

DheerajSingh (Tue, 17 Jul 2018 07:51:18 GMT):
Has joined the channel.

pankajcheema (Tue, 17 Jul 2018 07:54:10 GMT):
@huangliping verify your GO environment variables LIKE GOPATH

pankajcheema (Tue, 17 Jul 2018 07:54:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hqzuq87gY9szr5pEE) @huangliping @huangliping verify your GO environment variables LIKE GOPATH

pankajcheema (Tue, 17 Jul 2018 07:56:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hqzuq87gY9szr5pEE) @huangliping @huangliping verify your GO environment variables LIKE GOPATH

pankajcheema (Tue, 17 Jul 2018 07:56:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hqzuq87gY9szr5pEE) @huangliping verify your GO environment variables LIKE GOPATH

caveman7 (Tue, 17 Jul 2018 08:00:20 GMT):
Hello am looking at the SideDB feature of v1.2 (https://hyperledger-fabric.readthedocs.io/en/release-1.2/private-data-arch.html). in the policy property (policy: Defines the organization peers allowed to persist the collection data expressed using the Signature policy syntax, with each member being included in an OR signature policy list.). what is the significance of OR? what happen if we use AND?

ThomasBereczky (Tue, 17 Jul 2018 08:10:13 GMT):
Hey Guys

ThomasBereczky (Tue, 17 Jul 2018 08:10:18 GMT):
Good Morning

ThomasBereczky (Tue, 17 Jul 2018 08:10:28 GMT):
I got stuck a little bit and I would need some advice

ThomasBereczky (Tue, 17 Jul 2018 08:10:42 GMT):
I got multiple machines and multiple organizations in my cluster

ThomasBereczky (Tue, 17 Jul 2018 08:11:46 GMT):
"Error: 2 UNKNOWN: access denied: channel [composerchannel] creator org [Org2MSP]"

ThomasBereczky (Tue, 17 Jul 2018 08:12:11 GMT):
at the moment I can see that the BNA gets deployed

ThomasBereczky (Tue, 17 Jul 2018 08:12:21 GMT):
but it does not seem to issue the certificate

ThomasBereczky (Tue, 17 Jul 2018 08:12:45 GMT):
when I open up the admin card it has the connection profile but no certs inside

ThomasBereczky (Tue, 17 Jul 2018 08:12:53 GMT):
I checked and I can access publicly the CA

ThomasBereczky (Tue, 17 Jul 2018 08:13:28 GMT):
any ideas?

ThomasBereczky (Tue, 17 Jul 2018 08:13:31 GMT):
(Hlfv11)

ThomasBereczky (Tue, 17 Jul 2018 08:14:08 GMT):
Is there anyone here with a good working example of using HLFv11 with multiple orgs?

lislunev (Tue, 17 Jul 2018 08:28:16 GMT):
Hi, how does any one debug chaincode?

pravn1729 (Tue, 17 Jul 2018 08:39:34 GMT):
Has joined the channel.

pankajcheema (Tue, 17 Jul 2018 09:21:43 GMT):
Hi Experts. Anyone knows this error/warning message: ```peer1.org1.example.com | 2018-07-17 09:20:02.606 UTC [gossip/gossip] handleMessage -> WARN 0c4 Failed validating identity message: Peer Identity [0a 07 4f 72 67 32 4d 53 50 12 a6 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4a 7a 43 43 41 63 36 67 41 77 49 42 41 67 49 51 42 54 33 67 37 6b 5a 61 50 54 49 6c 65 45 56 42 62 6a 73 52 30 54 41 4b 42 67 67 71 68 6b 6a 4f 50 51 51 44 41 6a 42 7a 4d 51 73 77 0a 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 55 32 46 75 49 45 5a 79 0a 59 57 35 6a 61 58 4e 6a 62 7a 45 5a 4d 42 63 47 41 31 55 45 43 68 4d 51 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 45 63 4d 42 6f 47 41 31 55 45 41 78 4d 54 59 32 45 75 0a 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 41 65 46 77 30 78 4f 44 41 33 4d 54 63 77 4f 44 51 35 4e 54 4e 61 46 77 30 79 4f 44 41 33 4d 54 51 77 4f 44 51 35 4e 54 4e 61 0a 4d 47 6f 78 43 7a 41 4a 42 67 4e 56 42 41 59 54 41 6c 56 54 4d 52 4d 77 45 51 59 44 56 51 51 49 45 77 70 44 59 57 78 70 5a 6d 39 79 62 6d 6c 68 4d 52 59 77 46 41 59 44 56 51 51 48 45 77 31 54 0a 59 57 34 67 52 6e 4a 68 62 6d 4e 70 63 32 4e 76 4d 51 30 77 43 77 59 44 56 51 51 4c 45 77 52 77 5a 57 56 79 4d 52 38 77 48 51 59 44 56 51 51 44 45 78 5a 77 5a 57 56 79 4d 43 35 76 63 6d 63 79 0a 4c 6d 56 34 59 57 31 77 62 47 55 75 59 32 39 74 4d 46 6b 77 45 77 59 48 4b 6f 5a 49 7a 6a 30 43 41 51 59 49 4b 6f 5a 49 7a 6a 30 44 41 51 63 44 51 67 41 45 4d 4d 56 6d 44 4a 2b 47 6c 69 33 33 0a 51 36 6f 6d 35 66 47 56 6f 63 54 36 50 58 2f 76 4e 79 44 37 52 74 31 31 4d 4a 41 44 37 65 69 47 43 63 71 73 44 6d 2f 49 75 37 77 32 39 49 6f 71 42 44 49 66 66 53 54 6f 76 51 76 6a 5a 38 39 69 0a 5a 69 31 7a 51 53 6b 4a 79 61 4e 4e 4d 45 73 77 44 67 59 44 56 52 30 50 41 51 48 2f 42 41 51 44 41 67 65 41 4d 41 77 47 41 31 55 64 45 77 45 42 2f 77 51 43 4d 41 41 77 4b 77 59 44 56 52 30 6a 0a 42 43 51 77 49 6f 41 67 36 6c 65 4f 61 6a 41 4c 31 6e 49 36 30 53 32 43 2b 67 41 39 78 78 2f 53 4d 36 4f 43 34 62 30 44 41 79 50 4f 4c 39 73 4c 4c 43 73 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 0a 41 77 49 44 52 77 41 77 52 41 49 67 53 49 6b 38 61 37 70 47 58 74 30 74 61 37 6f 63 48 6b 50 72 6f 36 31 71 42 73 42 4c 34 45 4a 53 32 4e 6c 30 62 61 48 6e 4e 49 41 43 49 45 48 33 74 4f 31 69 0a 79 62 56 4e 2b 73 4a 6d 6c 38 69 4b 4d 37 55 33 36 75 45 34 55 55 75 6a 7a 5a 6f 6e 2b 38 43 45 44 33 54 70 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that. peer1.org1.example.com | Failed verifying message peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*certStore).validateIdentityMsg peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/certstore.go:104 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*certStore).handleMessage peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/certstore.go:76 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).handleMessage peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:398 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).acceptMessages peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:325 peer1.org1.example.com | runtime.goexit peer1.org1.example.com | /opt/go/src/runtime/asm_amd64.s:2361 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*certStore).handleMessage peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/certstore.go:77 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).handleMessage peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:398 peer1.org1.example.com | github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).acceptMessages peer1.org1.example.com | /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:325 peer1.org1.example.com | runtime.goexit peer1.org1.example.com | /opt/go/src/runtime/asm_amd64.s:2361```

pankajcheema (Tue, 17 Jul 2018 09:22:09 GMT):
This error shows when I update the anchor peers in cli

pankajcheema (Tue, 17 Jul 2018 09:22:52 GMT):
using these commands ```peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` . AND ```CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem```

pankajcheema (Tue, 17 Jul 2018 09:22:52 GMT):
using these commands ```peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` AND ```CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem```

pankajcheema (Tue, 17 Jul 2018 09:22:52 GMT):
using these commands ```peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` AND ```CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem```

pankajcheema (Tue, 17 Jul 2018 09:22:52 GMT):
using these commands ```peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem AND CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem```

pankajcheema (Tue, 17 Jul 2018 09:23:03 GMT):
I am using byfn's network configuration

pankajcheema (Tue, 17 Jul 2018 09:23:19 GMT):
Can anyone suggest me what is wrong here?

pankajcheema (Tue, 17 Jul 2018 09:25:32 GMT):
More logs ```2018-07-17 09:24:50.466 UTC [gossip/comm] authenticateRemotePeer -> WARN 2d6 Identity store rejected 172.18.0.5:41036 : failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 07 4f 72 67 31 4d 53 50 12 aa 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4b 44 43 43 41 63 2b 67 41 77 49 42 41 67 49 52 41 4b 48 49 6c 77 44 66 67 72 47 30 66 71 34 5a 44 43 5a 5a 49 79 45 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 41 77 49 77 63 7a 45 4c 0a 4d 41 6b 47 41 31 55 45 42 68 4d 43 56 56 4d 78 45 7a 41 52 42 67 4e 56 42 41 67 54 43 6b 4e 68 62 47 6c 6d 62 33 4a 75 61 57 45 78 46 6a 41 55 42 67 4e 56 42 41 63 54 44 56 4e 68 62 69 42 47 0a 63 6d 46 75 59 32 6c 7a 59 32 38 78 47 54 41 58 42 67 4e 56 42 41 6f 54 45 47 39 79 5a 7a 45 75 5a 58 68 68 62 58 42 73 5a 53 35 6a 62 32 30 78 48 44 41 61 42 67 4e 56 42 41 4d 54 45 32 4e 68 0a 4c 6d 39 79 5a 7a 45 75 5a 58 68 68 62 58 42 73 5a 53 35 6a 62 32 30 77 48 68 63 4e 4d 54 67 77 4e 7a 45 33 4d 44 67 30 4f 54 55 7a 57 68 63 4e 4d 6a 67 77 4e 7a 45 30 4d 44 67 30 4f 54 55 7a 0a 57 6a 42 71 4d 51 73 77 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 0a 55 32 46 75 49 45 5a 79 59 57 35 6a 61 58 4e 6a 62 7a 45 4e 4d 41 73 47 41 31 55 45 43 78 4d 45 63 47 56 6c 63 6a 45 66 4d 42 30 47 41 31 55 45 41 78 4d 57 63 47 56 6c 63 6a 41 75 62 33 4a 6e 0a 4d 53 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 42 5a 4d 42 4d 47 42 79 71 47 53 4d 34 39 41 67 45 47 43 43 71 47 53 4d 34 39 41 77 45 48 41 30 49 41 42 44 63 7a 54 64 72 72 45 76 49 76 0a 38 4b 59 46 72 58 74 32 4c 52 45 75 68 56 6f 51 6f 34 32 6c 50 2b 42 43 6c 46 32 4f 4c 41 53 38 49 2f 73 78 70 6a 65 54 58 59 34 55 66 5a 33 30 35 2f 4d 6f 2b 39 77 6c 68 72 4b 38 41 54 61 39 0a 45 65 2b 33 52 4a 69 4a 77 75 36 6a 54 54 42 4c 4d 41 34 47 41 31 55 64 44 77 45 42 2f 77 51 45 41 77 49 48 67 44 41 4d 42 67 4e 56 48 52 4d 42 41 66 38 45 41 6a 41 41 4d 43 73 47 41 31 55 64 0a 49 77 51 6b 4d 43 4b 41 49 49 75 61 4c 38 49 58 6e 49 62 54 7a 43 34 61 6a 6e 46 6b 66 6e 44 2f 2b 72 72 43 51 76 42 57 58 70 33 70 76 72 36 76 71 55 4c 4d 4d 41 6f 47 43 43 71 47 53 4d 34 39 0a 42 41 4d 43 41 30 63 41 4d 45 51 43 49 45 2b 46 56 38 49 39 2f 76 4a 78 38 4b 6c 45 6b 36 66 59 77 48 4c 71 37 53 54 47 78 72 57 74 71 65 74 6d 56 56 44 30 69 47 56 4b 41 69 41 37 62 64 35 75 0a 56 59 38 78 2f 54 4a 64 7a 76 62 65 64 6a 46 36 54 4b 42 6a 62 77 30 72 4d 2b 67 70 75 38 69 54 6d 62 4a 38 7a 67 3d 3d 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.```

pankajcheema (Tue, 17 Jul 2018 09:25:39 GMT):
```peer1.org2.example.com | 2018-07-17 09:24:50.466 UTC [gossip/comm] GossipStream -> ERRO 2d7 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 07 4f 72 67 31 4d 53 50 12 aa 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4b 44 43 43 41 63 2b 67 41 77 49 42 41 67 49 52 41 4b 48 49 6c 77 44 66 67 72 47 30 66 71 34 5a 44 43 5a 5a 49 79 45 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 41 77 49 77 63 7a 45 4c 0a 4d 41 6b 47 41 31 55 45 42 68 4d 43 56 56 4d 78 45 7a 41 52 42 67 4e 56 42 41 67 54 43 6b 4e 68 62 47 6c 6d 62 33 4a 75 61 57 45 78 46 6a 41 55 42 67 4e 56 42 41 63 54 44 56 4e 68 62 69 42 47 0a 63 6d 46 75 59 32 6c 7a 59 32 38 78 47 54 41 58 42 67 4e 56 42 41 6f 54 45 47 39 79 5a 7a 45 75 5a 58 68 68 62 58 42 73 5a 53 35 6a 62 32 30 78 48 44 41 61 42 67 4e 56 42 41 4d 54 45 32 4e 68 0a 4c 6d 39 79 5a 7a 45 75 5a 58 68 68 62 58 42 73 5a 53 35 6a 62 32 30 77 48 68 63 4e 4d 54 67 77 4e 7a 45 33 4d 44 67 30 4f 54 55 7a 57 68 63 4e 4d 6a 67 77 4e 7a 45 30 4d 44 67 30 4f 54 55 7a 0a 57 6a 42 71 4d 51 73 77 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 0a 55 32 46 75 49 45 5a 79 59 57 35 6a 61 58 4e 6a 62 7a 45 4e 4d 41 73 47 41 31 55 45 43 78 4d 45 63 47 56 6c 63 6a 45 66 4d 42 30 47 41 31 55 45 41 78 4d 57 63 47 56 6c 63 6a 41 75 62 33 4a 6e 0a 4d 53 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 42 5a 4d 42 4d 47 42 79 71 47 53 4d 34 39 41 67 45 47 43 43 71 47 53 4d 34 39 41 77 45 48 41 30 49 41 42 44 63 7a 54 64 72 72 45 76 49 76 0a 38 4b 59 46 72 58 74 32 4c 52 45 75 68 56 6f 51 6f 34 32 6c 50 2b 42 43 6c 46 32 4f 4c 41 53 38 49 2f 73 78 70 6a 65 54 58 59 34 55 66 5a 33 30 35 2f 4d 6f 2b 39 77 6c 68 72 4b 38 41 54 61 39 0a 45 65 2b 33 52 4a 69 4a 77 75 36 6a 54 54 42 4c 4d 41 34 47 41 31 55 64 44 77 45 42 2f 77 51 45 41 77 49 48 67 44 41 4d 42 67 4e 56 48 52 4d 42 41 66 38 45 41 6a 41 41 4d 43 73 47 41 31 55 64 0a 49 77 51 6b 4d 43 4b 41 49 49 75 61 4c 38 49 58 6e 49 62 54 7a 43 34 61 6a 6e 46 6b 66 6e 44 2f 2b 72 72 43 51 76 42 57 58 70 33 70 76 72 36 76 71 55 4c 4d 4d 41 6f 47 43 43 71 47 53 4d 34 39 0a 42 41 4d 43 41 30 63 41 4d 45 51 43 49 45 2b 46 56 38 49 39 2f 76 4a 78 38 4b 6c 45 6b 36 66 59 77 48 4c 71 37 53 54 47 78 72 57 74 71 65 74 6d 56 56 44 30 69 47 56 4b 41 69 41 37 62 64 35 75 0a 56 59 38 78 2f 54 4a 64 7a 76 62 65 64 6a 46 36 54 4b 42 6a 62 77 30 72 4d 2b 67 70 75 38 69 54 6d 62 4a 38 7a 67 3d 3d 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.```

pankajcheema (Tue, 17 Jul 2018 09:25:46 GMT):
```peer1.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/comm] authenticateRemotePeer -> WARN 267 Identity store rejected 172.18.0.3:37074 : failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 07 4f 72 67 32 4d 53 50 12 a6 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4a 7a 43 43 41 63 36 67 41 77 49 42 41 67 49 51 42 54 33 67 37 6b 5a 61 50 54 49 6c 65 45 56 42 62 6a 73 52 30 54 41 4b 42 67 67 71 68 6b 6a 4f 50 51 51 44 41 6a 42 7a 4d 51 73 77 0a 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 55 32 46 75 49 45 5a 79 0a 59 57 35 6a 61 58 4e 6a 62 7a 45 5a 4d 42 63 47 41 31 55 45 43 68 4d 51 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 45 63 4d 42 6f 47 41 31 55 45 41 78 4d 54 59 32 45 75 0a 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 41 65 46 77 30 78 4f 44 41 33 4d 54 63 77 4f 44 51 35 4e 54 4e 61 46 77 30 79 4f 44 41 33 4d 54 51 77 4f 44 51 35 4e 54 4e 61 0a 4d 47 6f 78 43 7a 41 4a 42 67 4e 56 42 41 59 54 41 6c 56 54 4d 52 4d 77 45 51 59 44 56 51 51 49 45 77 70 44 59 57 78 70 5a 6d 39 79 62 6d 6c 68 4d 52 59 77 46 41 59 44 56 51 51 48 45 77 31 54 0a 59 57 34 67 52 6e 4a 68 62 6d 4e 70 63 32 4e 76 4d 51 30 77 43 77 59 44 56 51 51 4c 45 77 52 77 5a 57 56 79 4d 52 38 77 48 51 59 44 56 51 51 44 45 78 5a 77 5a 57 56 79 4d 43 35 76 63 6d 63 79 0a 4c 6d 56 34 59 57 31 77 62 47 55 75 59 32 39 74 4d 46 6b 77 45 77 59 48 4b 6f 5a 49 7a 6a 30 43 41 51 59 49 4b 6f 5a 49 7a 6a 30 44 41 51 63 44 51 67 41 45 4d 4d 56 6d 44 4a 2b 47 6c 69 33 33 0a 51 36 6f 6d 35 66 47 56 6f 63 54 36 50 58 2f 76 4e 79 44 37 52 74 31 31 4d 4a 41 44 37 65 69 47 43 63 71 73 44 6d 2f 49 75 37 77 32 39 49 6f 71 42 44 49 66 66 53 54 6f 76 51 76 6a 5a 38 39 69 0a 5a 69 31 7a 51 53 6b 4a 79 61 4e 4e 4d 45 73 77 44 67 59 44 56 52 30 50 41 51 48 2f 42 41 51 44 41 67 65 41 4d 41 77 47 41 31 55 64 45 77 45 42 2f 77 51 43 4d 41 41 77 4b 77 59 44 56 52 30 6a 0a 42 43 51 77 49 6f 41 67 36 6c 65 4f 61 6a 41 4c 31 6e 49 36 30 53 32 43 2b 67 41 39 78 78 2f 53 4d 36 4f 43 34 62 30 44 41 79 50 4f 4c 39 73 4c 4c 43 73 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 0a 41 77 49 44 52 77 41 77 52 41 49 67 53 49 6b 38 61 37 70 47 58 74 30 74 61 37 6f 63 48 6b 50 72 6f 36 31 71 42 73 42 4c 34 45 4a 53 32 4e 6c 30 62 61 48 6e 4e 49 41 43 49 45 48 33 74 4f 31 69 0a 79 62 56 4e 2b 73 4a 6d 6c 38 69 4b 4d 37 55 33 36 75 45 34 55 55 75 6a 7a 5a 6f 6e 2b 38 43 45 44 33 54 70 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.```

pankajcheema (Tue, 17 Jul 2018 09:25:56 GMT):
```peer1.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/comm] GossipStream -> ERRO 268 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [0a 07 4f 72 67 32 4d 53 50 12 a6 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4a 7a 43 43 41 63 36 67 41 77 49 42 41 67 49 51 42 54 33 67 37 6b 5a 61 50 54 49 6c 65 45 56 42 62 6a 73 52 30 54 41 4b 42 67 67 71 68 6b 6a 4f 50 51 51 44 41 6a 42 7a 4d 51 73 77 0a 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 55 32 46 75 49 45 5a 79 0a 59 57 35 6a 61 58 4e 6a 62 7a 45 5a 4d 42 63 47 41 31 55 45 43 68 4d 51 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 45 63 4d 42 6f 47 41 31 55 45 41 78 4d 54 59 32 45 75 0a 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 41 65 46 77 30 78 4f 44 41 33 4d 54 63 77 4f 44 51 35 4e 54 4e 61 46 77 30 79 4f 44 41 33 4d 54 51 77 4f 44 51 35 4e 54 4e 61 0a 4d 47 6f 78 43 7a 41 4a 42 67 4e 56 42 41 59 54 41 6c 56 54 4d 52 4d 77 45 51 59 44 56 51 51 49 45 77 70 44 59 57 78 70 5a 6d 39 79 62 6d 6c 68 4d 52 59 77 46 41 59 44 56 51 51 48 45 77 31 54 0a 59 57 34 67 52 6e 4a 68 62 6d 4e 70 63 32 4e 76 4d 51 30 77 43 77 59 44 56 51 51 4c 45 77 52 77 5a 57 56 79 4d 52 38 77 48 51 59 44 56 51 51 44 45 78 5a 77 5a 57 56 79 4d 43 35 76 63 6d 63 79 0a 4c 6d 56 34 59 57 31 77 62 47 55 75 59 32 39 74 4d 46 6b 77 45 77 59 48 4b 6f 5a 49 7a 6a 30 43 41 51 59 49 4b 6f 5a 49 7a 6a 30 44 41 51 63 44 51 67 41 45 4d 4d 56 6d 44 4a 2b 47 6c 69 33 33 0a 51 36 6f 6d 35 66 47 56 6f 63 54 36 50 58 2f 76 4e 79 44 37 52 74 31 31 4d 4a 41 44 37 65 69 47 43 63 71 73 44 6d 2f 49 75 37 77 32 39 49 6f 71 42 44 49 66 66 53 54 6f 76 51 76 6a 5a 38 39 69 0a 5a 69 31 7a 51 53 6b 4a 79 61 4e 4e 4d 45 73 77 44 67 59 44 56 52 30 50 41 51 48 2f 42 41 51 44 41 67 65 41 4d 41 77 47 41 31 55 64 45 77 45 42 2f 77 51 43 4d 41 41 77 4b 77 59 44 56 52 30 6a 0a 42 43 51 77 49 6f 41 67 36 6c 65 4f 61 6a 41 4c 31 6e 49 36 30 53 32 43 2b 67 41 39 78 78 2f 53 4d 36 4f 43 34 62 30 44 41 79 50 4f 4c 39 73 4c 4c 43 73 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 0a 41 77 49 44 52 77 41 77 52 41 49 67 53 49 6b 38 61 37 70 47 58 74 30 74 61 37 6f 63 48 6b 50 72 6f 36 31 71 42 73 42 4c 34 45 4a 53 32 4e 6c 30 62 61 48 6e 4e 49 41 43 49 45 48 33 74 4f 31 69 0a 79 62 56 4e 2b 73 4a 6d 6c 38 69 4b 4d 37 55 33 36 75 45 34 55 55 75 6a 7a 5a 6f 6e 2b 38 43 45 44 33 54 70 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.```

pankajcheema (Tue, 17 Jul 2018 09:26:09 GMT):
```peer0.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/comm] func1 -> WARN 40b peer1.org2.example.com:7051, PKIid:[240 68 140 239 29 96 240 249 154 166 128 61 176 175 243 75 203 214 154 153 33 251 62 113 249 146 207 170 6 234 142 110] isn't responsive: EOF peer0.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/discovery] expireDeadMembers -> WARN 40c Entering [[240 68 140 239 29 96 240 249 154 166 128 61 176 175 243 75 203 214 154 153 33 251 62 113 249 146 207 170 6 234 142 110]] peer0.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/discovery] expireDeadMembers -> WARN 40d Closing connection to Endpoint: peer1.org2.example.com:7051, InternalEndpoint: , PKI-ID: [240 68 140 239 29 96 240 249 154 166 128 61 176 175 243 75 203 214 154 153 33 251 62 113 249 146 207 170 6 234 142 110], Metadata: [] peer0.org1.example.com | 2018-07-17 09:24:50.468 UTC [gossip/discovery] expireDeadMembers -> WARN 40e Exiting peer0.org2.example.com | 2018-07-17 09:24:50.469 UTC [gossip/comm] func1 -> WARN 29c peer1.org1.example.com:7051, PKIid:[61 16 19 27 1 39 81 45 136 47 157 120 33 127 31 59 138 232 134 26 40 123 70 169 148 202 212 219 6 237 0 89] isn't responsive: EOF peer1.org1.example.com | 2018-07-17 09:24:50.521 UTC [gossip/gossip] handleMessage -> WARN 269 Message GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 84 bytes, Signature: 70 bytes isn't valid peer1.org1.example.com | 2018-07-17 09:24:50.675 UTC [peer/gossip/mcs] Verify -> ERRO 26a Failed getting validated identity from peer identity [Peer Identity [0a 07 4f 72 67 32 4d 53 50 12 a6 06 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 43 4a 7a 43 43 41 63 36 67 41 77 49 42 41 67 49 51 42 54 33 67 37 6b 5a 61 50 54 49 6c 65 45 56 42 62 6a 73 52 30 54 41 4b 42 67 67 71 68 6b 6a 4f 50 51 51 44 41 6a 42 7a 4d 51 73 77 0a 43 51 59 44 56 51 51 47 45 77 4a 56 55 7a 45 54 4d 42 45 47 41 31 55 45 43 42 4d 4b 51 32 46 73 61 57 5a 76 63 6d 35 70 59 54 45 57 4d 42 51 47 41 31 55 45 42 78 4d 4e 55 32 46 75 49 45 5a 79 0a 59 57 35 6a 61 58 4e 6a 62 7a 45 5a 4d 42 63 47 41 31 55 45 43 68 4d 51 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 45 63 4d 42 6f 47 41 31 55 45 41 78 4d 54 59 32 45 75 0a 62 33 4a 6e 4d 69 35 6c 65 47 46 74 63 47 78 6c 4c 6d 4e 76 62 54 41 65 46 77 30 78 4f 44 41 33 4d 54 63 77 4f 44 51 35 4e 54 4e 61 46 77 30 79 4f 44 41 33 4d 54 51 77 4f 44 51 35 4e 54 4e 61 0a 4d 47 6f 78 43 7a 41 4a 42 67 4e 56 42 41 59 54 41 6c 56 54 4d 52 4d 77 45 51 59 44 56 51 51 49 45 77 70 44 59 57 78 70 5a 6d 39 79 62 6d 6c 68 4d 52 59 77 46 41 59 44 56 51 51 48 45 77 31 54 0a 59 57 34 67 52 6e 4a 68 62 6d 4e 70 63 32 4e 76 4d 51 30 77 43 77 59 44 56 51 51 4c 45 77 52 77 5a 57 56 79 4d 52 38 77 48 51 59 44 56 51 51 44 45 78 5a 77 5a 57 56 79 4d 43 35 76 63 6d 63 79 0a 4c 6d 56 34 59 57 31 77 62 47 55 75 59 32 39 74 4d 46 6b 77 45 77 59 48 4b 6f 5a 49 7a 6a 30 43 41 51 59 49 4b 6f 5a 49 7a 6a 30 44 41 51 63 44 51 67 41 45 4d 4d 56 6d 44 4a 2b 47 6c 69 33 33 0a 51 36 6f 6d 35 66 47 56 6f 63 54 36 50 58 2f 76 4e 79 44 37 52 74 31 31 4d 4a 41 44 37 65 69 47 43 63 71 73 44 6d 2f 49 75 37 77 32 39 49 6f 71 42 44 49 66 66 53 54 6f 76 51 76 6a 5a 38 39 69 0a 5a 69 31 7a 51 53 6b 4a 79 61 4e 4e 4d 45 73 77 44 67 59 44 56 52 30 50 41 51 48 2f 42 41 51 44 41 67 65 41 4d 41 77 47 41 31 55 64 45 77 45 42 2f 77 51 43 4d 41 41 77 4b 77 59 44 56 52 30 6a 0a 42 43 51 77 49 6f 41 67 36 6c 65 4f 61 6a 41 4c 31 6e 49 36 30 53 32 43 2b 67 41 39 78 78 2f 53 4d 36 4f 43 34 62 30 44 41 79 50 4f 4c 39 73 4c 4c 43 73 77 43 67 59 49 4b 6f 5a 49 7a 6a 30 45 0a 41 77 49 44 52 77 41 77 52 41 49 67 53 49 6b 38 61 37 70 47 58 74 30 74 61 37 6f 63 48 6b 50 72 6f 36 31 71 42 73 42 4c 34 45 4a 53 32 4e 6c 30 62 61 48 6e 4e 49 41 43 49 45 48 33 74 4f 31 69 0a 79 62 56 4e 2b 73 4a 6d 6c 38 69 4b 4d 37 55 33 36 75 45 34 55 55 75 6a 7a 5a 6f 6e 2b 38 43 45 44 33 54 70 0a 2d 2d 2d 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a] cannot be validated. No MSP found able to do that.]```

pankajcheema (Tue, 17 Jul 2018 09:26:27 GMT):
Is there any other configuration that I need to do other than BYFN's network?

pankajcheema (Tue, 17 Jul 2018 09:26:49 GMT):
It shows ```No MSP found able to do that.``` at the end

huangliping (Tue, 17 Jul 2018 09:58:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TYCmN6S9f7sTkgfZE) @pankajcheema The go env should be OK, I compiled the fabric source code success in the same server.

srinivas640 (Tue, 17 Jul 2018 10:04:11 GMT):
Hi, when trying to create a new channel in fabric getting error " Error: channel create configuration tx file not found open "

FiratSertgoz (Tue, 17 Jul 2018 10:36:12 GMT):
Hey everybody, I'm trying to build my docker-network by using the fabric 1.1.0 images, however starting from this morning I am getting build errors when the npm packages are installing in fabric-ccenv-1.1.0. I feel like there are incompatibility issues. Anybody having the same issues?

MichalZalecki (Tue, 17 Jul 2018 11:02:29 GMT):
Has joined the channel.

MichalZalecki (Tue, 17 Jul 2018 11:07:48 GMT):
Hi! Use case: User of the system receives information form entity A. Users owns that info and wants to keep it private and share it with entity B. How this can be achieved? How to implement ownership and then allow user to prove the ownership of the given information? Channels are not a good option as there would be too many of them. Can I share private data across different peers? I can only come up with implementing this on the application-level of the chaincode but in such case I can do the same as well using traditional SQL database.

MichalZalecki (Tue, 17 Jul 2018 11:08:00 GMT):
What I am missing here? :D

MichalZalecki (Tue, 17 Jul 2018 11:08:00 GMT):
What am I missing here? :D

kmohanar1 (Tue, 17 Jul 2018 11:19:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mDidRroJbvi5weebH) @srinivas640 this is related to pointing your file's. whatever you are mentioning in the command needs to be pointed correctly. please check your .tx and all poninted correctly.

Asch (Tue, 17 Jul 2018 11:22:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fSHbh5bWRdB3Bdct4) @FiratSertgoz yeah I had this issue of npm having compatibility issued with node.I had to remove the npm and instead of installing the new npm I had kept the one that got installed with node.

adarshsaraf123 (Tue, 17 Jul 2018 11:44:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MyYE2PQeBEpun94dA) @MichalZalecki Private data among peers can definitely be maintained. This has been introduced in v1.2. Please look at the [documentation](https://hyperledger-fabric.readthedocs.io/en/release-1.2/private-data/private-data.html).

ninedraft (Tue, 17 Jul 2018 12:56:23 GMT):
Has joined the channel.

AmanMisra (Tue, 17 Jul 2018 13:18:57 GMT):
Has joined the channel.

MichalZalecki (Tue, 17 Jul 2018 13:25:35 GMT):
@adarshsaraf123 Thank you for the confirmation. I'll look into more closely!

ajmeraharsh (Tue, 17 Jul 2018 13:32:44 GMT):
Came up with a small idea about Hyperledger Fabric, you can check it right here http://bit.ly/2usZHUn And share your comments.

ajmeraharsh (Tue, 17 Jul 2018 13:32:44 GMT):
Came up with a *small idea about Hyperledger Fabric*, you can check it right here http://bit.ly/2usZHUn And share your comments.

tballast (Tue, 17 Jul 2018 13:50:28 GMT):
Hi there, I'm receiving the same error as @MeghaGupta . I'm sitting on the release-1.2 branch of fabric (though I saw the same problem on release-1.1). I followed the directions laid out here: https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst

tballast (Tue, 17 Jul 2018 13:50:52 GMT):
All of my settings files are the ones that exist within the repository.

tballast (Tue, 17 Jul 2018 13:51:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jpFjohyKWJ7xras7j) The error that I'l talking about

MeghaGupta (Tue, 17 Jul 2018 14:06:49 GMT):
@tballast this error I got it because my certificates were expired / wrong path

tballast (Tue, 17 Jul 2018 14:07:12 GMT):
Ahh ok, how did you go about remedying it?

MeghaGupta (Tue, 17 Jul 2018 14:07:44 GMT):
@tballast How u r running with ./byfn ? or docker composer ?

MeghaGupta (Tue, 17 Jul 2018 14:07:52 GMT):
by you own setting

MeghaGupta (Tue, 17 Jul 2018 14:08:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FepAdyx5NP9v3G549) @tballast I run again bin/cryptogen generate --config=./crypto-config.yaml to regenrate cert

tballast (Tue, 17 Jul 2018 14:09:14 GMT):
docker composer. It's not my own setting though. I have checked out the fabric repo and I'm running the e2e_cli example within it. (link here: https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst) I'm just following these directions and then it happened.

tballast (Tue, 17 Jul 2018 14:09:18 GMT):
I will try that though

Mahesh-Raj (Tue, 17 Jul 2018 14:10:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iNA6qCAH2v4Px7fvW) won't that be a counter to IBM Bluemix?

MarcoLudergnani (Tue, 17 Jul 2018 14:18:32 GMT):
Has joined the channel.

MarcoLudergnani (Tue, 17 Jul 2018 14:20:39 GMT):
Hi all, I'm new on Fabric. I would like to ask just one simple but fundamental question: while Ethereum is a public blockchain so you can deploy your Smart Contract on it and use them freely, can we do the same thing with Fabric? Let me explain: Ethereum has a running Blockchain on which we can work and access, but Fabric has not, right? Should I set up an entire new blockchain network before (setting up all the nodes, giving permissions etc.)?

aatkddny (Tue, 17 Jul 2018 14:24:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AmE62Mog7qt4q59gk) I'd be more along the lines of what's the key differentiator to these: https://aws.amazon.com/partners/blockchain/

tballast (Tue, 17 Jul 2018 14:30:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fDuGgyYyFQYY5i4GK) For what it's worth, I solved this issue by completely deleting the `crypto-config` folder and then re-running the command: `./generateArtifacts.sh mychannel `

jeffcoop9 (Tue, 17 Jul 2018 15:05:18 GMT):
Has joined the channel.

d8bhatta (Tue, 17 Jul 2018 15:47:30 GMT):
Hello All, I am trying to install farbric for the first time and have installed all pre-requisite, however I am getting weird error during installation..here it goes:

d8bhatta (Tue, 17 Jul 2018 15:47:32 GMT):
https://justpaste.it/5pcj5

d8bhatta (Tue, 17 Jul 2018 15:47:37 GMT):
Please suggest.

KhoeNguyen (Tue, 17 Jul 2018 16:02:12 GMT):
Has joined the channel.

adarshsaraf123 (Tue, 17 Jul 2018 16:15:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=croQkHu9KudxmfqR4) @d8bhatta Please do a `./byfn.sh -m down` and then see if it works. Looks like you might have started the fabric network earlier as well and forget to close it down.

d8bhatta (Tue, 17 Jul 2018 16:23:00 GMT):
@adarshsaraf123 Yes, it works man, thank you

nelaturuk (Tue, 17 Jul 2018 16:43:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EdJmTFTMcq2x3Z3KS) @Nghiadt Did u get any help wiht this ? its still not resolved for us

kristycarp (Tue, 17 Jul 2018 17:35:10 GMT):
Has joined the channel.

kristycarp (Tue, 17 Jul 2018 17:36:45 GMT):
Hi everyone! Apologies if this is the wrong place to ask this, but does anyone have experience with the fabric-starter app? (https://github.com/olegabu/fabric-starter) My company has been using it to demonstrate distributed ledger tech across VMs and we are having issues changing the consensus mechanism

titog (Tue, 17 Jul 2018 18:42:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iNA6qCAH2v4Px7fvW) @ajmeraharsh This is exactly what IBM Cloud does...

moficodes (Tue, 17 Jul 2018 19:10:15 GMT):
Has joined the channel.

Tolotos (Tue, 17 Jul 2018 19:13:45 GMT):
Has joined the channel.

EdyWijaya (Wed, 18 Jul 2018 02:54:11 GMT):
Has joined the channel.

EdyWijaya (Wed, 18 Jul 2018 02:54:34 GMT):
hi all, can someone help me? if i provide hyperledger blockchain, how can i get paid? there is no transaction fee right?

choco_coder (Wed, 18 Jul 2018 03:06:32 GMT):
Has joined the channel.

d8bhatta (Wed, 18 Jul 2018 04:29:56 GMT):
Hello

d8bhatta (Wed, 18 Jul 2018 04:31:07 GMT):
When I up the fabric using following command, I get this error: [31m2018-07-17 17:20:25.992 UTC [bccsp_sw] loadPrivateKey -> ERRO 001 [0m Failed loading private key [2d6e9e17a2dc320933222740bd5de2e3c4d9d6bb970837bd64aabe35f36e4bdb]: [open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/2d6e9e17a2dc320933222740bd5de2e3c4d9d6bb970837bd64aabe35f36e4bdb_sk: permission denied]. [31m2018-07-17 17:20:25.993 UTC [main] main -> ERRO 002 [0m Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: KeyMaterial not found in SigningIdentityInfo !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

d8bhatta (Wed, 18 Jul 2018 04:31:22 GMT):
please suggest

pankajcheema (Wed, 18 Jul 2018 04:40:10 GMT):
Hi Experts , Can anyone tell me at the time of configuration of ordere what does `ORDERER_GENERAL_TLS_ROOTCAS` this variable should contain ?

pankajcheema (Wed, 18 Jul 2018 04:40:10 GMT):
Hi Experts , Can anyone tell me at the time of configuration of ordere what does `ORDERER_GENERAL_TLS_ROOTCAS` this variable should contain ? I also put a question on stackoverflow https://stackoverflow.com/questions/51393748/hyperledger-fabric-orderer-variable-configuration

rajanashutosh (Wed, 18 Jul 2018 04:55:37 GMT):
Hi all, I would like to have a suggestion on whether for writing chaincode one should prefer Go or can we go with Java as well. In case if we go ahead with either of ones what would be advantages and disadvantages ?

rajanashutosh (Wed, 18 Jul 2018 05:30:15 GMT):
Also i would like to know what would be best approach to design a fabric network, if in case we are aiming millions of transactions on day to day basis. Still would you suggestion for docker based approach within a VM or each VM being turned to nodes ?

ajmeraharsh (Wed, 18 Jul 2018 05:47:00 GMT):
@Mahesh-Raj @aatkddny @titog The Oracles, AWSs, SAPs of the world are charging a lot for the limited flexibility they provide. That's where we are looking for an opportunity with a *SaaS* based product http://bit.ly/2usZHUn

NavpreetSingh (Wed, 18 Jul 2018 06:12:52 GMT):
Has joined the channel.

NavpreetSingh (Wed, 18 Jul 2018 06:13:11 GMT):
Hi experts,

NavpreetSingh (Wed, 18 Jul 2018 06:13:30 GMT):
I am getting request timeout error on creating a channel . Is there any option to set timeout parameter , when am sending request to createchannel.js file in fabric framework

nabheetmadan (Wed, 18 Jul 2018 06:30:26 GMT):
Has joined the channel.

Vigneshavm (Wed, 18 Jul 2018 07:09:22 GMT):
Hi,How can I test hyperledger fabric infrastructure installed properly or not

Legiit (Wed, 18 Jul 2018 07:37:02 GMT):
Are you able to pass any other types than an array to chaincode?

pankajcheema (Wed, 18 Jul 2018 08:23:59 GMT):
https://stackoverflow.com/questions/51377474/hyperledger-fabric-gossip-bootstrap-gossip-externalendpoints

pankajcheema (Wed, 18 Jul 2018 08:24:22 GMT):
@Legiit No this is not possible yet

gyuner.zeki (Wed, 18 Jul 2018 08:28:22 GMT):
Has joined the channel.

Legiit (Wed, 18 Jul 2018 08:35:23 GMT):
Ok thanks

ConstantineSavchenkov (Wed, 18 Jul 2018 08:42:08 GMT):
Has joined the channel.

riccardopersiani (Wed, 18 Jul 2018 08:44:41 GMT):
Has joined the channel.

riccardopersiani (Wed, 18 Jul 2018 08:48:15 GMT):
Hello, I have some problem the function `registerChaincodeEvent()`. After using SetEvent() in my chaincode, the event is not registered and the timeout runs out. Here is a link for more details on my problem: https://stackoverflow.com/questions/51363178/hyperledger-fabric-registerchaincodeevent-method-not-getting-the-event-from-ch. Thanks

riccardopersiani (Wed, 18 Jul 2018 08:48:15 GMT):
Hello, I have some problem with the function `registerChaincodeEvent()`. After using SetEvent() in my chaincode, the event is not registered and the timeout runs out. Here is a link for more details on my problem: https://stackoverflow.com/questions/51363178/hyperledger-fabric-registerchaincodeevent-method-not-getting-the-event-from-ch. Thanks

ConstantineSavchenkov (Wed, 18 Jul 2018 08:53:15 GMT):
Hi! I use custom attributes for setting user role (add custom attribute 'role' while registering user with fabric_ca_client.register(..,attr) and then read it on chain code from ClientIdentity). Does anyone know more appropriate way? I use nodejs SDK. Thanks

ConstantineSavchenkov (Wed, 18 Jul 2018 08:53:15 GMT):
Hi! I use custom attributes for setting user role (add custom attribute 'role' while registering user with fabric_ca_client.register(..,attr) and then read it on chaincode from ClientIdentity). Does anyone know more appropriate way? I use nodejs SDK. Thanks

Anshulmittal (Wed, 18 Jul 2018 09:09:06 GMT):
Has joined the channel.

adarshsaraf123 (Wed, 18 Jul 2018 09:13:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SgEk2wvfcGNoqniMv) @Vigneshavm you can try running the [byfn.sh](https://github.com/hyperledger/fabric-samples/tree/release-1.2/first-network).

Vigneshavm (Wed, 18 Jul 2018 09:19:25 GMT):
@adarshsaraf123 I run that.. I able to install properly .My doubt is how we can trobleshooting byfn installation

Khush1209 (Wed, 18 Jul 2018 09:29:14 GMT):
Hello guys!!

Khush1209 (Wed, 18 Jul 2018 09:30:12 GMT):
Can anyone tell me how to invoke chaincode from another chaincode in nodeJs.

Sreesha (Wed, 18 Jul 2018 09:48:11 GMT):
Hi everyone.Has anyone tried generating certificates using fabric-ca rather than cryptogen and using them to run balance-transfer For me the orderer is rejecting the channel creation request. Can anyone help ,me

yuriiuhlanov (Wed, 18 Jul 2018 09:51:31 GMT):
Has joined the channel.

pmcosta1 (Wed, 18 Jul 2018 09:54:22 GMT):
Has joined the channel.

pmcosta1 (Wed, 18 Jul 2018 09:54:30 GMT):
Hi! the tag "x86_64-1.1.0-preview" for fabric-couchdb was removed from docker hub. Is there a reason for this? (Will it be replaced with a "x86_64-1.1.0"?

tqumhieh (Wed, 18 Jul 2018 10:42:17 GMT):
i'm calling 'qscc/GetTransactionById' chaincode from another chaincode, i'm using nodejs chaincode shim, I just can't figure out what is the response payload format in order to parse it, any idea?

FlavioSS (Wed, 18 Jul 2018 10:50:38 GMT):
Has joined the channel.

Aejnor (Wed, 18 Jul 2018 10:53:32 GMT):
Has joined the channel.

mdvenkatesh (Wed, 18 Jul 2018 11:42:03 GMT):
i have created an block chain application but i am unable to see the ledger database i can see only world database in couchdb

mdvenkatesh (Wed, 18 Jul 2018 11:43:14 GMT):
how can i see the ledger database i tried hypledgerexplorer but i am getting some errors is there any alternate ways to see ledger database\

Unicow (Wed, 18 Jul 2018 11:51:26 GMT):
Has joined the channel.

kristycarp (Wed, 18 Jul 2018 11:55:14 GMT):
Hello! Quick question -- on a distributed setup, should I run "peer channel create" just on the orderer, or on every peer that needs to join the channel?

kristycarp (Wed, 18 Jul 2018 11:55:45 GMT):
My nodes have different IP addresses and it seems like "peer channel join" would not provide my non-ordering peers enough information to find the genesis block on another VM

rajanashutosh (Wed, 18 Jul 2018 11:58:24 GMT):
@Sreesha I have done using fabric-ca

cryoventures (Wed, 18 Jul 2018 11:59:43 GMT):
Has joined the channel.

aatkddny (Wed, 18 Jul 2018 12:15:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Rs2JrQcSp62yRSoLh) @ajmeraharsh AWS is like $399 a year plus instance costs. How are you planning to beat that price and make money?

StefanKosc (Wed, 18 Jul 2018 12:26:50 GMT):
Hi, is it possible to have only one organization in a channel?

aatkddny (Wed, 18 Jul 2018 12:29:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JbsXaZHxtomNdTBDF) @StefanKosc yes

StefanKosc (Wed, 18 Jul 2018 12:31:54 GMT):
@aatkddny ok, thanks, I tried to do it and while creating channel I got an error `FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

StefanKosc (Wed, 18 Jul 2018 12:32:17 GMT):
@aatkddny can you point me to some resources how to do it?

Unicow (Wed, 18 Jul 2018 12:32:40 GMT):
Hi, I was wondering, is it possible to add a new channel in a running network? If yes, is there a tutorial that demonstrates this?

yuriiuhlanov (Wed, 18 Jul 2018 12:38:41 GMT):
hi all! I wonder, what the difference between user registration and user enrollment is. Is there anywhere in docs a clear distinction pointed out?

aatkddny (Wed, 18 Jul 2018 12:52:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EAkmcyfYhmWvnjjbv) @StefanKosc I do it programmatically.

aatkddny (Wed, 18 Jul 2018 12:52:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EAkmcyfYhmWvnjjbv) @StefanKosc I do it programmatically. Same as I do for multi-org channels.

aatkddny (Wed, 18 Jul 2018 12:52:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EAkmcyfYhmWvnjjbv) @StefanKosc I do it programmatically. Same as I do for multi-org channels. Are you sure you are using a peer admin that's part of the channel to do so?

StefanKosc (Wed, 18 Jul 2018 12:57:04 GMT):
@aatkddny almost sure, let me check

StefanKosc (Wed, 18 Jul 2018 12:57:27 GMT):
@aatkddny are you doing it via shell script or sdk?

aatkddny (Wed, 18 Jul 2018 13:02:36 GMT):
sdk

Ishan (Wed, 18 Jul 2018 13:04:48 GMT):
Has joined the channel.

Ishan (Wed, 18 Jul 2018 13:05:02 GMT):
HI all

Ishan (Wed, 18 Jul 2018 13:05:26 GMT):
what is difference between composer and hyperledger fabric

Ishan (Wed, 18 Jul 2018 13:05:27 GMT):
?

StefanKosc (Wed, 18 Jul 2018 13:05:43 GMT):
@aatkddny ok, can you provide an example how to do it?

StefanKosc (Wed, 18 Jul 2018 13:06:30 GMT):
@Ishan composer is kind of wrapper of sdk

Ishan (Wed, 18 Jul 2018 13:09:03 GMT):
there are two different practicals available currently on hyperledger website....

Ishan (Wed, 18 Jul 2018 13:09:05 GMT):
1.Developer tutorial for creating a Hyperledger Composer solution

aatkddny (Wed, 18 Jul 2018 13:11:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CG2evw3Gqe7iCxaXa) @StefanKosc It's done exactly the same as for a multi org channel. If your profile is done like this: ``` YourSingleOrgChannel: Consortium: Some-Consortium Application: <<: *ApplicationDefaults Organizations: - *YourOrgHere Capabilities: <<: *ApplicationCapabilities ``` Then is should work. Just be sure you have the signature from the peer admin and you should be GTG.

aatkddny (Wed, 18 Jul 2018 13:11:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CG2evw3Gqe7iCxaXa) @StefanKosc It's done exactly the same as for a multi org channel. If your profile is done like this: ``` YourSingleOrgChannel: Consortium: Some-Consortium Application: <<: *ApplicationDefaults Organizations: - *YourOrgHere Capabilities: <<: *ApplicationCapabilities ``` Then is should work. Just be sure you have the signature from the peer admin for YourOrgHere and you should be GTG.

Ishan (Wed, 18 Jul 2018 13:11:45 GMT):
2. building your own network --https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html

Ishan (Wed, 18 Jul 2018 13:11:53 GMT):
whats the difference

Ishan (Wed, 18 Jul 2018 13:11:54 GMT):
?

aatkddny (Wed, 18 Jul 2018 13:12:15 GMT):
Composer interacts with the fabric to do useful things.

aatkddny (Wed, 18 Jul 2018 13:12:30 GMT):
Or less useful depending in who's coding it.

aatkddny (Wed, 18 Jul 2018 13:12:30 GMT):
Or less useful depending on who's coding it. :)

Ishan (Wed, 18 Jul 2018 13:12:54 GMT):
are learning both necessary to develop POC?

Ishan (Wed, 18 Jul 2018 13:13:01 GMT):
or just composer solution?

aatkddny (Wed, 18 Jul 2018 13:13:04 GMT):
Only if you want it to work.

Ishan (Wed, 18 Jul 2018 13:14:15 GMT):
yes

Ishan (Wed, 18 Jul 2018 13:14:29 GMT):
So my understanding is

Ishan (Wed, 18 Jul 2018 13:14:43 GMT):
to create business network we use composer

Ishan (Wed, 18 Jul 2018 13:15:31 GMT):
and to develop fabric infrastructure we need to learn hyperledger fabric in detail

jrosmith (Wed, 18 Jul 2018 13:20:09 GMT):
@Ishan composer is built on top of fabric. you can create general business logic but you are not in control of network settings or actual chaincode functionality. i believe composer plans to be able to support full production applications but in order to actually set up a network i would recommend learning the internals of fabric. #composer will have more info for you

Ishan (Wed, 18 Jul 2018 13:21:19 GMT):
ok thanx

pgarneau (Wed, 18 Jul 2018 13:32:27 GMT):
Has joined the channel.

pgarneau (Wed, 18 Jul 2018 13:34:10 GMT):
Hey guys. I'm having trouble with SDKs with my discovery service on fabric 1.2. Whenever the SDK tries to get the peers on my channel, the targeted peer only returns the 2 peers from its organization. Would it be a problem with my AnchorPeers? Discovery Service? Simple IP/port issue? Thanks

ajmeraharsh (Wed, 18 Jul 2018 13:41:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kf4SAiuS9TtFyJdkb) @aatkddny AWS's offering wrt Hyperledger is quite limited. `https://aws.amazon.com/marketplace/pp/B0797GK9YY` I couldn't see any customisations happening at all. How am I planning to make money? I am preparing a deck for that, with complete details, numbers and research.

yacovm (Wed, 18 Jul 2018 13:46:01 GMT):
@pgarneau anchor peers

rjones (Wed, 18 Jul 2018 13:46:02 GMT):
Has joined the channel.

pgarneau (Wed, 18 Jul 2018 13:50:10 GMT):
Is there any way to "test" that my anchor peers are working properly and can talk to each other while my network is up? Spent all day yesterday with the mods of the go fabric sdk and my peers seem to have a problem discovering the other peers on the channel. It's getting harder to "try" new solutions Tried using the discover CLI from 1.2 on my machine, but I could never get it to connect to my peers for some reason. Tutorial kinda makes it look like you run it on your machine and point it towards running containers, but I'm not sure either @yacovm

MeghaGupta (Wed, 18 Jul 2018 14:12:34 GMT):
Hi everyone, have one doubt normal block chain if we update our existing assets it will create new block how it happen in hyperledger? it will create new block or update in same or this is configure with chaincode ?

Unni_1994 (Wed, 18 Jul 2018 14:14:01 GMT):

error1.png

Unni_1994 (Wed, 18 Jul 2018 14:14:04 GMT):

error2.png

yacovm (Wed, 18 Jul 2018 14:16:15 GMT):
@pgarneau - did you try to run the discovery CLI from within a container?

yacovm (Wed, 18 Jul 2018 14:16:28 GMT):
within one of the containers

pgarneau (Wed, 18 Jul 2018 14:28:08 GMT):
I tried putting it in a volume, and it wouldn't let me execute the binary

yacovm (Wed, 18 Jul 2018 14:29:22 GMT):
just `docker cp` the binary ;)

pgarneau (Wed, 18 Jul 2018 14:29:41 GMT):
ill give it a try

aztot (Wed, 18 Jul 2018 14:49:16 GMT):
Hi, I would to build a fabric network with 3 nodes on baremetal to perform some benchmark tests, what would you advise me ?

cagdasozt (Wed, 18 Jul 2018 16:54:31 GMT):
hey all I have a small question what is asset ? should say it like a variable ? for example, we can define integer or string parameter in java can we say same thing for hyperledger composer ?

cagdasozt (Wed, 18 Jul 2018 16:55:07 GMT):
I am new in this area sorry for my stupid question

cagdasozt (Wed, 18 Jul 2018 16:57:09 GMT):
is there anybody there ?

pgarneau (Wed, 18 Jul 2018 17:11:35 GMT):
I think you're in the wrong channel @cagdasozt. There is a composer channel if I remember correctly where people could help you out

cagdasozt (Wed, 18 Jul 2018 17:12:41 GMT):
thank you @pgarneau

nelaturuk (Wed, 18 Jul 2018 18:11:41 GMT):
Hi I am trying to start up orderer with docker. The version i am trying to run is 1.0.6.2 docker run -it -d --name orderer1 \ --env ORDERER_GENERAL_LOGLEVEL=debug \ --env ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 \ --env ORDERER_GENERAL_GENESISMETHOD=file \ --env ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.block \ --env ORDERER_GENERAL_LOCALMSPID=OrdererMSP \ --env ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp \ --env CONFIGTX_ORDERER_ORDERERTYPE=kafka \ --env ORDERER_GENERAL_GENESISPROFILE=SampleInsecureKafka \ --env ORDERER_KAFKA_VERBOSE=true \ --env CONFIGTX_ORDERER_KAFKA_BROKERS=[$hostip:9092,$hostip:9093,$hostip:9094] \ --env ORDERER_GENERAL_BATCHTIMEOUT=1s \ --env ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10 \ --env ORDERER_GENERAL_MAXWINDOWSIZE=1000 \ --env ORDERER_RAMLEDGER_HISTORY_SIZE=100 \ --env ORDERER_GENERAL_TLS_ENABLED=true \ --env ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key \ --env ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt \ --env ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] \ --workdir /opt/gopath/src/github.com/hyperledger/fabric \ --volume ${channel_artifacts}:/var/hyperledger/orderer/orderer.block \ --volume ${msp_src}:/var/hyperledger/orderer/msp \ --volume ${tls_src}:/var/hyperledger/orderer/tls \ --volume $PERSISTANCE_ROOT_FOLDER/orderer1:/var/hyperledger/production/orderer \ --hostname orderer1 \ --add-host peer1:$hostip \ --add-host orderer1:$hostip \ --add-host kafka1:$hostip \ --add-host kafka2:$hostip \ --add-host kafka3:$hostip \ --add-host kafka4:$hostip \ --publish 7050:7050 \ ibmblockchain/fabric-orderer this is the command. i keep getting thie errro : [orderer/main] initializeSecureServerConfig -> CRIT 003 Failed to load ServerCertificate file '/var/hyperledger/orderer/tls/server.crt' (open /var/hyperledger/orderer/tls/server.crt: no such file or directory) anyone can help me with this. ? Same thing happens with peers as well

pgarneau (Wed, 18 Jul 2018 18:15:18 GMT):
Your ${tls_src}, is it being generated correctly?

pgarneau (Wed, 18 Jul 2018 18:15:34 GMT):
You mounting procedure is good, but doesn't look like what you're mounting contains what you need

nelaturuk (Wed, 18 Jul 2018 18:16:23 GMT):
if i use older version of image which 1.0.1. It seems to wokr fine.

nelaturuk (Wed, 18 Jul 2018 18:16:57 GMT):
The problems seems to be when i change the version to anything other than that. I am not good with dockers so. not sure if i am missing something.

nelaturuk (Wed, 18 Jul 2018 18:17:29 GMT):
I even tried 1.1.0, which gives error saying its not able find msp directory

KoushKilla (Wed, 18 Jul 2018 18:24:57 GMT):
Has joined the channel.

KoushKilla (Wed, 18 Jul 2018 18:25:23 GMT):
hey guys I am getting an error when I am trying to deploy my bna file to fabric.

KoushKilla (Wed, 18 Jul 2018 18:25:29 GMT):
https://stackoverflow.com/questions/51390670/bna-creation-in-fabric-error

kesavants (Wed, 18 Jul 2018 18:28:27 GMT):
Trying to change BatchSize of channel by sending channel config transaction getting error Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining. The transaction itself is signed by user enrolled for the org that has operator role for the channel

IgorSim (Wed, 18 Jul 2018 20:06:57 GMT):
@kesavants is there such thing like 'operator' role for the channel? I'm not sure but i think channel update tx must be signed by admins of MAJORITY of the organizations before update is sent (assuming that you use default policy)

accuarion (Wed, 18 Jul 2018 21:10:52 GMT):
Has joined the channel.

kesavants (Wed, 18 Jul 2018 21:25:00 GMT):
Yes the org identity that I am using is the only one having operator role for that channel

ng2dev (Wed, 18 Jul 2018 21:25:19 GMT):
Has joined the channel.

ng2dev (Wed, 18 Jul 2018 22:16:49 GMT):
Hello channel I would like to know when this https://jira.hyperledger.org/browse/FAB-106 feature is planned to be implemented. Thanks

ng2dev (Wed, 18 Jul 2018 22:16:49 GMT):
Hello channel I would like to know when this https://jira.hyperledger.org/browse/FAB-106 (https://jira.hyperledger.org/browse/FAB-106) feature is planned to be implemented. Thanks

ng2dev (Wed, 18 Jul 2018 22:16:49 GMT):
Hello channel I would like to know when this https://jira.hyperledger.org/browse/FAB-106 (ledger checkpoint and pruning/archiving) feature is planned to be implemented. Thanks

Hz (Thu, 19 Jul 2018 03:12:01 GMT):
Has joined the channel.

samir.tata (Thu, 19 Jul 2018 03:56:26 GMT):
Has joined the channel.

rajanashutosh (Thu, 19 Jul 2018 04:22:35 GMT):
@MeghaGupta https://hyperledger-fabric.readthedocs.io/en/release-1.2/whatis.html .. Hyperledger as well is immutable. Please refer the link

nao-someya (Thu, 19 Jul 2018 04:36:48 GMT):
Has joined the channel.

huangliping (Thu, 19 Jul 2018 05:39:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LwPJLxAdH6j8MHZvE) it's fixed, the problem is when build the chaincode, it failed, but fabric eat the exception and still generate the docker image, but when instantiate the chaincode, there is no chaincode executable file in the PATH, this is the cause.

praspadm (Thu, 19 Jul 2018 05:56:56 GMT):
Has joined the channel.

boonthept (Thu, 19 Jul 2018 05:59:05 GMT):
Has joined the channel.

boonthept (Thu, 19 Jul 2018 06:01:17 GMT):
hi guys, i am exploring the idmixer function in hlf 1.2. From reading thru the documentation, i understand that the feature will allow the hiding of identity behind a CA. in my implementation, each Company will have its own CA, which mean even with IDMixer, i can still see that the transaction is signed by which credential which tie back to which CA (Company in this case). If I want to totally hide the both the CA and credential. What will be the recommended method ?

SamatchaT (Thu, 19 Jul 2018 06:06:24 GMT):
Has joined the channel.

pankajcheema (Thu, 19 Jul 2018 06:14:09 GMT):
Hi Anyone have clear idea about the concept ? >>>>>>https://stackoverflow.com/questions/51336581/hyperledger-fabric-endrosement-policy

ashlinSajan (Thu, 19 Jul 2018 06:43:30 GMT):
Hi, Have you tried channel subsetting in Hyperledger version 1.2?

ashlinSajan (Thu, 19 Jul 2018 06:43:30 GMT):
Hi, Have anyone tried keeping certain data/transactions confidential among a subset of channel members in Hyperledger version 1.2?

muchiri (Thu, 19 Jul 2018 07:07:18 GMT):
Has joined the channel.

rushiraj111 (Thu, 19 Jul 2018 07:13:28 GMT):
Has joined the channel.

thPart (Thu, 19 Jul 2018 07:35:15 GMT):
Has joined the channel.

bkseo (Thu, 19 Jul 2018 08:04:33 GMT):
Has joined the channel.

shyammishra (Thu, 19 Jul 2018 08:07:26 GMT):
Hi, I am here http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html and trying "./startFabric.sh" command. I am getting this error Error response from daemon: Container 0e83a02c8e79903e19ca8ece675a1e8fe17858a01178bc12c0bd35e3e531aa62 is not running Please help me how to fix this

Ishan (Thu, 19 Jul 2018 08:15:45 GMT):
Hi

Ishan (Thu, 19 Jul 2018 08:16:04 GMT):
Im getting below error while running node invoke.js

suryasuresh06 (Thu, 19 Jul 2018 08:16:27 GMT):
Hi, I have posted a question on stack overflow, would be great if someone could help. https://stackoverflow.com/questions/51415333/setting-up-a-fabric-network-on-multiple-computers-unable-to-instantiate-chain-c

Ishan (Thu, 19 Jul 2018 08:17:02 GMT):
typeerror : Fabric_client.newEventhub is not a function

Ishan (Thu, 19 Jul 2018 08:17:05 GMT):
?

rajanashutosh (Thu, 19 Jul 2018 08:32:02 GMT):
Hi all, I have got a doubt with regards to chaincode, where exactly chaincode gets installed, is it the peer nodes or it would be within separate container for chaincode ?

pravn1729 (Thu, 19 Jul 2018 08:36:31 GMT):
Hi Everyone. For the usecase of a market place where users buy and sell stocks, which kind of nodejs architecture should be adopted for hyperledger fabric where users dont trust the system. I read many blogs where they said to maintain the cards of user in their local system. Could you please suggest how the design of application must be ?

ng2dev (Thu, 19 Jul 2018 08:42:32 GMT):
@rajanashutosh the chaincode gets installed on each peer privy to the channel communication between participating parties. Lets say you got channel between org1 and org2 then cc will be installed on peer.org1 and peer.org2

ng2dev (Thu, 19 Jul 2018 08:42:32 GMT):
@rajanashutosh the chaincode gets installed on each peer privy to the channel of participating parties. Lets say you got channel between org1 and org2 then cc will be installed on peer.org1 and peer.org2

ng2dev (Thu, 19 Jul 2018 08:42:32 GMT):
@rajanashutosh the chaincode gets installed on each peer participating in a channel. Lets say you got channel between org1 and org2 then cc will be installed on peer.org1 and peer.org2

ng2dev (Thu, 19 Jul 2018 08:48:09 GMT):
I found this to be quite useful - https://www.slideshare.net/ibmsverige/blockchain-explored (slide 5)

rajanashutosh (Thu, 19 Jul 2018 08:53:50 GMT):
@ng2dev Thanks. I got bit confused with one sample given. https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode4ade.html Here they mention about separate container for chaincode

RiehaB (Thu, 19 Jul 2018 09:09:35 GMT):
Has joined the channel.

Yuanye (Thu, 19 Jul 2018 09:19:47 GMT):
Has joined the channel.

lislunev (Thu, 19 Jul 2018 10:41:52 GMT):
Hello, I can't find any information. Fabric saves information about what peer started transaction?

vineetmishra (Thu, 19 Jul 2018 10:47:25 GMT):
Hi Guys I am trying to setup private data collection but at the time of chaincode instantiating getting error "Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg invalid number of arguments to lscc: 7

vineetmishra (Thu, 19 Jul 2018 10:47:33 GMT):
please someone help mw

vineetmishra (Thu, 19 Jul 2018 10:47:33 GMT):
please someone help me

vineetmishra (Thu, 19 Jul 2018 10:47:35 GMT):
me

vineetmishra (Thu, 19 Jul 2018 10:47:35 GMT):
i am using marvel example

ChanderGovindarajan (Thu, 19 Jul 2018 10:50:21 GMT):
@rajanashutosh, Chaincode is installed on peer. But, the way the peer installs the chaincode is by creating a new container. So, `install` in terms of the fabric peer command is run on the peer. Actual code `install` happens inside a custom docker image created by the peer and runs as a separate container.

mdvenkatesh (Thu, 19 Jul 2018 11:05:43 GMT):
i am following explore tutorial i am getting the following error .After deploying in console peError: Cannot read property 'currentChannel' of null at i (selectors.js:8) at s.t.a.Object.getBlockList (LandingPage.js:109) at s.computeStateProps (connect.js:146) at s.updateStatePropsIfNeeded (connect.js:204) at c (connect.js:64) at s.handleChange (connect.js:291) at l (createStore.js:172) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:41 _t @ react-dom.production.min.js:151 operations.js:44 TypeError: Cannot read property 'currentChannel' of null at i (selectors.js:8) at s.t.a.Object.getBlockList (LandingPage.js:109) at s.computeStateProps (connect.js:146) at s.updateStatePropsIfNeeded (connect.js:204) at c (connect.js:64) at s.handleChange (connect.js:291) at l (createStore.js:172) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:41 (anonymous) @ operations.js:44 2operations.js:54 TypeError: Cannot read property 'channels' of null at c (reducers.js:45) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:51 (anonymous) @ operations.js:54 operations.js:14 TypeError: Cannot read property 'rows' of null at i (reducers.js:14) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:12 (anonymous) @ operations.js:14 operations.js:14 TypeError: Cannot read property 'rows' of null at i (reducers.js:15) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:11 (anonymous) @ operations.js:14 operations.js:24 TypeError: Cannot read property 'rows' of null at s (reducers.js:30) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:21 (anonymous) @ operations.js:24 operations.js:39 TypeError: Cannot read property 'channels' of null at operations.js:31 (anonymous) @ operations.js:39 operations.js:72 TypeError: Cannot read property 'rows' of null at operations.js:64 (anonymous) @ operations.js:72 operations.js:99 TypeError: Cannot read property 'rows' of null at h (reducers.js:126) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:96 (anonymous) @ operations.js:99 operations.js:109 TypeError: Cannot read property 'rows' of null at b (reducers.js:141) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:106 (anonymous) @ operations.js:109 operations.js:23 TypeError: Cannot read property 'chaincode' of null at s (reducers.js:29) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:21 (anonymous) @ operations.js:23 operations.js:79 TypeError: Cannot read property 'peers' of null at p (reducers.js:96) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:76 (anonymous) @ operations.js:79 operations.js:48 TypeError: Cannot read property 'peers' of null at u (reducers.js:59) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:46 (anonymous) @ operations.js:48 operations.js:89 TypeError: Cannot read property 'rows' of null at d (reducers.js:111) at combineReducers.js:120 at combineReducers.js:120 at l (createStore.js:165) at index.js:14 at dispatch (applyMiddleware.js:35) at operations.js:86

rajanashutosh (Thu, 19 Jul 2018 11:15:26 GMT):
@ChanderGovindarajan Thanks

pankajcheema (Thu, 19 Jul 2018 11:21:36 GMT):
Hi Does anyone knows that why fabric is putting $$ in database created at the time of private data collection 1.2

rajasushanth (Thu, 19 Jul 2018 11:48:52 GMT):
Has joined the channel.

fabiomolinar (Thu, 19 Jul 2018 11:56:27 GMT):
Has joined the channel.

Rachit_gaur (Thu, 19 Jul 2018 12:04:12 GMT):
Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload:"\n X\242\350j\220\2708u\003Q\3710\032\276n_\3222\026\245\252m\301>\371]\337:\201\010A|\022Y\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022-\n\004mycc\022%\n\007\n\001a\022\002\010\003\n\007\n\001b\022\002\010\003\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\013\022\004mycc\032\0031.0" endorsement: Can someone help me resolve this error?

dave.enyeart (Thu, 19 Jul 2018 12:06:45 GMT):
@pankajcheema $$ is used to concatenate chaincode name and collection name so that there are no naming collisions. $ is one of the few characters that is supported on couchdb but not supported chaincode names. This is an internal db naming implementation detail, not exposed to end users

dave.enyeart (Thu, 19 Jul 2018 12:06:45 GMT):
@pankajcheema $$ is used to concatenate chaincode name and collection name so that there are no naming collisions. $ is one of the few characters that is supported on couchdb but not supported in chaincode names, so it will always work. This is an internal db naming implementation detail, not exposed to end users

Rachit_gaur (Thu, 19 Jul 2018 12:16:43 GMT):
@dave.enyeart Is there a way to set a number of transaction before a block is created?

Khush1209 (Thu, 19 Jul 2018 12:17:53 GMT):
Hi guys!! I am trying to access Chaincode of another peer in same channel. But i am getting error. Can anyone help me with this?

Khush1209 (Thu, 19 Jul 2018 12:18:52 GMT):

Screenshot (183).png

Khush1209 (Thu, 19 Jul 2018 12:19:19 GMT):

Screenshot (183).png

pgarneau (Thu, 19 Jul 2018 12:20:06 GMT):
Looks like it can't find your chaincode

Khush1209 (Thu, 19 Jul 2018 12:22:13 GMT):
by default it is taking different path /var/hyperledger/production/chaincode

Khush1209 (Thu, 19 Jul 2018 12:22:55 GMT):
but i set the path for chaincode as /opt/gopath/src/github.com/

pgarneau (Thu, 19 Jul 2018 12:23:16 GMT):
Look at your docker-compose files, see if you're setting the path wrong for that peer or something

Khush1209 (Thu, 19 Jul 2018 12:24:38 GMT):
i am able to access same peer ledger with multiple chaincode. But when i am trying to access another peer ledger chaincode. It is not working. I checked my docker compose file. sending the screenshots.

Khush1209 (Thu, 19 Jul 2018 12:25:44 GMT):

Screenshot (184).png

Khush1209 (Thu, 19 Jul 2018 12:28:47 GMT):
It is something related to /var/run envt. But i am not able to find why the code is searching for chaincode package at another place? In cli i set this /var/run:/host/var/run/

Khush1209 (Thu, 19 Jul 2018 12:29:20 GMT):

Screenshot (185).png

pgarneau (Thu, 19 Jul 2018 12:29:28 GMT):
Yeah I got the same setting, I looked through my configs and doesn't look like chaincode is mentioned

pgarneau (Thu, 19 Jul 2018 12:29:45 GMT):
Are you using a SDK to invoke your CC?

Khush1209 (Thu, 19 Jul 2018 12:29:48 GMT):
Yes

Khush1209 (Thu, 19 Jul 2018 12:30:07 GMT):
No

Khush1209 (Thu, 19 Jul 2018 12:30:19 GMT):
I am simply using cli

pgarneau (Thu, 19 Jul 2018 12:31:35 GMT):
So my cli volumes: ``` volumes: - /var/run/:/host/var/run/ - ../chaincode/go/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts ```

Khush1209 (Thu, 19 Jul 2018 12:32:57 GMT):
Yes. everything is set to path /opt/gopath

dave.enyeart (Thu, 19 Jul 2018 12:33:13 GMT):
@Rachit_gaur number of transactions per block is part of channel config, see https://github.com/hyperledger/fabric/blob/release-1.2/sampleconfig/configtx.yaml#L238-L240

Khush1209 (Thu, 19 Jul 2018 12:33:20 GMT):
but why /var/run is set to another path

pgarneau (Thu, 19 Jul 2018 12:33:41 GMT):
no clue, straight up copy pasted from the fabric branch 1.2 repo

Khush1209 (Thu, 19 Jul 2018 12:35:12 GMT):
and by default when i am trying to access another org1 peer chaincode1 from chaincode2 which is inside other org2 peer

pgarneau (Thu, 19 Jul 2018 12:35:23 GMT):
ohhh

pgarneau (Thu, 19 Jul 2018 12:35:39 GMT):
I've neever done chaincode to chaincode

pgarneau (Thu, 19 Jul 2018 12:35:46 GMT):
So I'm really not sure

Khush1209 (Thu, 19 Jul 2018 12:35:47 GMT):
It is searching the chaincode in /var/hyperledger/production/chaincode

Khush1209 (Thu, 19 Jul 2018 12:35:59 GMT):
okay

Khush1209 (Thu, 19 Jul 2018 12:36:02 GMT):
thanks!!

pgarneau (Thu, 19 Jul 2018 12:36:11 GMT):
sorry

Rachit_gaur (Thu, 19 Jul 2018 12:36:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Hr7fZMrT64KAY5xGH) @dave.enyeart The message count is the number of transactions?

dave.enyeart (Thu, 19 Jul 2018 12:36:56 GMT):
correct

Khush1209 (Thu, 19 Jul 2018 12:36:57 GMT):
It's okay!!

giuseppegalano (Thu, 19 Jul 2018 12:43:40 GMT):
Has joined the channel.

giuseppegalano (Thu, 19 Jul 2018 12:47:02 GMT):
Hi all, anyone successfully managed to follow this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/peer-chaincode-devmode.html I'm getting this error when trying to create the channel: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

giuseppegalano (Thu, 19 Jul 2018 12:50:15 GMT):
I'm using 1.2, default sampleconfig and lunching dev environment using fabric-samples/chaincode-docker-devmode/docker-compose-simple.yaml; I commented genesismethod=file and generisfile=orderer.block and added ORDERER_GENERAL_GENESISPROFILE=SampleDevModeSolo as required by the tutorial

iwinoto (Thu, 19 Jul 2018 12:56:33 GMT):
Has joined the channel.

giuseppegalano (Thu, 19 Jul 2018 12:56:56 GMT):
Error on the orderer is "Principal deserialization failure (MSP DEFAULT is unknown) for identity 0a0744454641554...."

fabiomolinar (Thu, 19 Jul 2018 13:01:31 GMT):
The docs (https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html) state that the orderers may order transactions not exactly in the same order as they arrive. But the documentation do not supply any explanation on the reasons behind that. Would anybody be able to clarify why would orderers use the order T1,T2,T4,T3 instead of T1,T2,T3,T4? Is there any reason behind this design feature?

firozmi (Thu, 19 Jul 2018 13:02:25 GMT):
Has joined the channel.

tballast (Thu, 19 Jul 2018 13:36:00 GMT):
Does anyone know what the current status on supporting Java as a chaincode language is? Or could point me in the direction of where I could find this?

ilamparithi10 (Thu, 19 Jul 2018 14:07:23 GMT):
Has joined the channel.

ilamparithi10 (Thu, 19 Jul 2018 14:08:57 GMT):
When the official fabric pyhton sdk is releasing?

tballast (Thu, 19 Jul 2018 14:17:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KE7cj7RMypPmdw48J) #fabric-java-chaincode will tell you, and https://jira.hyperledger.org/browse/FAB-9234 and https://jira.hyperledger.org/browse/FAB-8063 are the open tickets surrounding this. For anyone else wondering.

KushagraTiwary (Thu, 19 Jul 2018 14:41:06 GMT):
Has joined the channel.

gesaleh (Thu, 19 Jul 2018 14:41:50 GMT):
Has joined the channel.

smallant (Thu, 19 Jul 2018 15:03:38 GMT):
Hi guys, to run the new discovery command do I need to install something? I'm running docker containers with the 1.2 network

yacovm (Thu, 19 Jul 2018 15:04:00 GMT):
you need to have the `discover` binary, obviously

yacovm (Thu, 19 Jul 2018 15:04:06 GMT):
@smallant

smallant (Thu, 19 Jul 2018 15:04:15 GMT):
does it come with fabric?

yacovm (Thu, 19 Jul 2018 15:04:23 GMT):
it should

smallant (Thu, 19 Jul 2018 15:04:27 GMT):
In some docker iamge?

smallant (Thu, 19 Jul 2018 15:04:29 GMT):
image*

yacovm (Thu, 19 Jul 2018 15:04:40 GMT):
oh... i don't think it comes in a docker image.... it comes as a binary

yacovm (Thu, 19 Jul 2018 15:04:47 GMT):
you can just download it

smallant (Thu, 19 Jul 2018 15:04:57 GMT):
ok

smallant (Thu, 19 Jul 2018 15:05:00 GMT):
I'll check it

smallant (Thu, 19 Jul 2018 15:05:03 GMT):
thanks

yacovm (Thu, 19 Jul 2018 15:05:09 GMT):
https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/

yacovm (Thu, 19 Jul 2018 15:05:24 GMT):
but I recommend just to build from source ;)

yacovm (Thu, 19 Jul 2018 15:05:34 GMT):
clone https://github.com/hyperledger/fabric and run `make discover`

smallant (Thu, 19 Jul 2018 15:06:54 GMT):
tkx

scally (Thu, 19 Jul 2018 15:35:38 GMT):
Can anyone clarify how the pluggable endorsement feature in 1.2 can be used for anonymous transactions? Thank you

pankajcheema (Thu, 19 Jul 2018 15:57:41 GMT):
@dave.enyeart Thanks for your reply. I can see in couchdb there are two dbs for same same collection. first one starts with `$$h` and second one with `$$p` do you know the meaning of this?

AshishKaila (Thu, 19 Jul 2018 15:57:54 GMT):
Hey guys question regarding chaincode. I am testing node.js based chaincode in chaincode-docker-devmode and noticed I always have to keep the instance running myself in the CLI to test chaincode. How do I instruct HL to install and start the chaincode without me explicitly running it?

pankajcheema (Thu, 19 Jul 2018 15:57:56 GMT):
@yacovm

pankajcheema (Thu, 19 Jul 2018 15:58:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kdYqQ9dPvLEJCMKzo) Do you have any idea of this?

AshishKaila (Thu, 19 Jul 2018 15:58:18 GMT):
It seems lame that one has to run their chaincode explicitly after installation

yacovm (Thu, 19 Jul 2018 15:58:28 GMT):
no idea....

pankajcheema (Thu, 19 Jul 2018 15:59:04 GMT):
Ok

pankajcheema (Thu, 19 Jul 2018 15:59:05 GMT):
Thanks

pankajcheema (Thu, 19 Jul 2018 15:59:25 GMT):
Anyone knows what this parameter means in crypto-config.yaml `EnableNodeOUs: true`

pankajcheema (Thu, 19 Jul 2018 15:59:34 GMT):
@yacovm any idea about this param?

yacovm (Thu, 19 Jul 2018 16:00:06 GMT):
are you going to tag me in every question you ask ? :thinking_face:

pankajcheema (Thu, 19 Jul 2018 16:00:24 GMT):
You are expert

pankajcheema (Thu, 19 Jul 2018 16:00:26 GMT):
;)

pankajcheema (Thu, 19 Jul 2018 16:01:27 GMT):
I got the answer here https://stackoverflow.com/questions/49924937/meaning-of-enablenodeous-in-crypto-config-yaml

yacovm (Thu, 19 Jul 2018 16:01:57 GMT):
also look in https://hyperledger-fabric.readthedocs.io/en/latest/msp.html?highlight=EnableNodeOUs

yacovm (Thu, 19 Jul 2018 16:02:20 GMT):
give the person that answered the stackoverflow question some reputation

yacovm (Thu, 19 Jul 2018 16:02:28 GMT):
(sadly that's not me, this time.... )

pankajcheema (Thu, 19 Jul 2018 16:03:29 GMT):
ok

pankajcheema (Thu, 19 Jul 2018 16:05:02 GMT):
@yacovm I have a question for you.and I think you can answer that one. If you have some time, please have a look at https://stackoverflow.com/questions/51336581/hyperledger-fabric-endrosement-policy

pankajcheema (Thu, 19 Jul 2018 16:06:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vtTxPMhNMSMsKXYQd) already upvoted

yacovm (Thu, 19 Jul 2018 16:07:13 GMT):
don't ever use `.admin` or `.client` in endorsement policies

yacovm (Thu, 19 Jul 2018 16:07:44 GMT):
it makes no sense

pankajcheema (Thu, 19 Jul 2018 16:09:23 GMT):
Thats why I am looking for explanation Yacov

pankajcheema (Thu, 19 Jul 2018 16:09:31 GMT):
@yacovm

pankajcheema (Thu, 19 Jul 2018 16:10:09 GMT):
A detailed explanation. That what comes under each of them and how `.admin`, `.client` can provide endorsement

pankajcheema (Thu, 19 Jul 2018 16:10:12 GMT):
Thats confusing

yacovm (Thu, 19 Jul 2018 16:11:15 GMT):
they can't provide endorsements...

yacovm (Thu, 19 Jul 2018 16:11:21 GMT):
use only `member` and `peer`

pankajcheema (Thu, 19 Jul 2018 16:11:46 GMT):
`.admin`- contains only organization admins

pankajcheema (Thu, 19 Jul 2018 16:11:57 GMT):
`.client` - what comes under client ?

yacovm (Thu, 19 Jul 2018 16:12:04 GMT):
it's simple- endorsements are made by peers

yacovm (Thu, 19 Jul 2018 16:12:11 GMT):
so you should use principals that only peers can satisfy

pankajcheema (Thu, 19 Jul 2018 16:12:14 GMT):
`.member`- all peers, admins, clients?

yacovm (Thu, 19 Jul 2018 16:12:15 GMT):
which are `member` and `peer`

pankajcheema (Thu, 19 Jul 2018 16:12:23 GMT):
`.peer` - all peers?

pankajcheema (Thu, 19 Jul 2018 16:12:30 GMT):
Correct me if I am wrong here

yacovm (Thu, 19 Jul 2018 16:12:38 GMT):
yes, if you enabled nodeOUs and the channel supports that

yacovm (Thu, 19 Jul 2018 16:12:45 GMT):
also it's v1.1 and higher

yacovm (Thu, 19 Jul 2018 16:12:49 GMT):
not in v1.0

dave.enyeart (Thu, 19 Jul 2018 16:12:54 GMT):
@pankajcheema `$$h` database stores the public hash on all peers. `$$p` database stores the private data on peers that are authorized for the collection.

pankajcheema (Thu, 19 Jul 2018 16:13:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=reuiy85XKH9gsmyRG) Ok so endorsment policy will only work if I enable NodeOUs

pankajcheema (Thu, 19 Jul 2018 16:14:12 GMT):
@dave.enyeart Wow!! Thanks. Last question regarding this topic: `$$p`: I cant read the data inside this database. Is it encrypted ?

dave.enyeart (Thu, 19 Jul 2018 16:14:54 GMT):
no, you should be able to read it

pankajcheema (Thu, 19 Jul 2018 16:15:07 GMT):
Ok

pankajcheema (Thu, 19 Jul 2018 16:15:52 GMT):
I can see If I use marble private chaincode. It stores some encrypted type data in couchdb. When I write my own chaincode it shows the data. I dont know where I am wrong

pankajcheema (Thu, 19 Jul 2018 16:16:04 GMT):
Is there any particular flag that needs to be set for this?

dave.enyeart (Thu, 19 Jul 2018 16:16:21 GMT):
the marble chaincode stores it in cleartext as couchdb json

pankajcheema (Thu, 19 Jul 2018 16:16:37 GMT):
No there are structures in marbel chaincode

pankajcheema (Thu, 19 Jul 2018 16:18:00 GMT):
```type marble struct { ObjectType string `json:"docType"` //docType is used to distinguish the various types of objects in state database Name string `json:"name"` //the fieldtags are needed to keep case from bouncing around Color string `json:"color"` Size int `json:"size"` Owner string `json:"owner"` } type marblePrivateDetails struct { ObjectType string `json:"docType"` //docType is used to distinguish the various types of objects in state database Name string `json:"name"` //the fieldtags are needed to keep case from bouncing around Price int `json:"price"` }```

mwenyan (Thu, 19 Jul 2018 16:27:25 GMT):
Has joined the channel.

mwenyan (Thu, 19 Jul 2018 16:28:39 GMT):
``` ```

mwenyan (Thu, 19 Jul 2018 16:28:39 GMT):
a question on asset transfer with private data, when ownership changes, some private data will need to be transferred to the new owner, I can send these private data in a transient field to the new owner, the new owner will need to validate it against hash value stored in public ledger, what is the API to calculate hash and retrieve private data hash from ledger?

pankajcheema (Thu, 19 Jul 2018 17:16:15 GMT):
anyone knows about `AbsoluteMaxBytes: 99 MB` & `PreferredMaxBytes: 512 KB` in `configtx.yaml` in `Orderer`

MaryAnnKelly (Thu, 19 Jul 2018 17:18:18 GMT):
Has joined the channel.

mauriff (Thu, 19 Jul 2018 17:19:28 GMT):
Has joined the channel.

nelaturuk (Thu, 19 Jul 2018 17:28:57 GMT):
Hi, has anyone come across this error in peer nodes. 2018-07-18 20:16:32.131 UTC [chaincode] Launch -> ERRO 3d4 launchAndWaitForRegister failed: Post http://unix.sock/containers/create?name=dev-peer1.chaincode1-v1.0.2-b3: dial unix /host/var/run/docker.sock: connect: permission denied error starting container This is my docker start command for peer: docker run -itd --name peer1 \ --env CORE_PEER_ADDRESSAUTODETECT=false \ --env CORE_PEER_GOSSIP_SKIPHANDSHAKE=true \ --env CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock \ --env CORE_LOGGING_LEVEL=DEBUG \ --env CORE_PEER_TLS_ENABLED=true \ --env CORE_PEER_ENDORSER_ENABLED=true \ --env CORE_PEER_GOSSIP_ORGLEADER=true \ --env CORE_PEER_GOSSIP_USELEADERELECTION=false \ --env CORE_PEER_PROFILE_ENABLED=true \ --env CORE_PEER_ADDRESS=peer1:7051 \ --env CORE_PEER_CHAINCODEADDRESS=peer1:7051 \ --env CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 \ --env CORE_PEER_ID=peer1 \ --env CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp \ --env CORE_PEER_LOCALMSPID=PeerMSP \ --env CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host \ --env CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt \ --env CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key \ --env CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt \ --env CORE_PEER_GOSSIP_EXTERNALENDPOINT=$hostip:7051 \ --env CORE_LEDGER_STATE_STATEDATABASE=CouchDB \ --env CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=$hostip:5984 \ --hostname peer1 \ --add-host orderer1:$hostip \ --add-host peer1:$hostip \ --add-host peer2:$hostip \ --workdir /opt/gopath/src/github.com/hyperledger/fabric/peer \ --volume /var/run/:/host/var/run/ \ --volume $PERSISTANCE_ROOT_FOLDER/peer1:/var/hyperledger/production \ --volume ${msp_src}:/etc/hyperledger/fabric/msp \ --volume ${tls_src}:/etc/hyperledger/fabric/tls \ --publish 7051:7051 \ --publish 7053:7053 \ ibmblockchain/fabric-peer peer node start

dave.enyeart (Thu, 19 Jul 2018 17:41:03 GMT):
@pankajcheema read further in the chaincode... those marble objects get marshaled to JSON and then saved to state

dave.enyeart (Thu, 19 Jul 2018 17:41:32 GMT):
for orderer and channel config questions, best to ask in #fabric-orderer

dave.enyeart (Thu, 19 Jul 2018 17:44:45 GMT):
@mwenyan asset transfer scenarios for private data are not supported yet, work is in progress for that

dpolicastro (Thu, 19 Jul 2018 19:14:46 GMT):
Has joined the channel.

titog (Thu, 19 Jul 2018 19:38:43 GMT):
Hi Folks! What is the difference between hyperledger/fabric-orderer and hyperledger/fabric-ca-orderer images?

titog (Thu, 19 Jul 2018 19:39:21 GMT):
same for hyperledger/fabric-peer and hyperledger/fabric-ca-peer...

silliman (Thu, 19 Jul 2018 20:53:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fw7HxeQx9HdWPnfM7) @titog Hi Tito! My understanding is that the fabric-ca-[peer|orderer] images have the fabric-ca-client installed in them whereas the fabric-[peer|orderer] images do not.

titog (Thu, 19 Jul 2018 20:53:58 GMT):
Thank you @silliman !

coxw (Thu, 19 Jul 2018 21:12:34 GMT):
Has joined the channel.

mwenyan (Thu, 19 Jul 2018 21:32:07 GMT):
@dave.enyeart , what hash algorithm is used for private data? could you point me to the code? thanks

yacovm (Thu, 19 Jul 2018 21:37:15 GMT):
sha256

cuevrob (Thu, 19 Jul 2018 21:40:50 GMT):
azure

thellimist (Fri, 20 Jul 2018 00:48:35 GMT):
is Zero knowledge proofs implemented yet on fabric?

thellimist (Fri, 20 Jul 2018 00:49:30 GMT):
I couldn't see it in releases changelog

Hz (Fri, 20 Jul 2018 01:26:07 GMT):
Hi, is any way to let a new organization has its own new channel in an existed Fabric network? Plz, anyone can talk about this? Thank you

david8 (Fri, 20 Jul 2018 01:48:30 GMT):
Has joined the channel.

SteveKIM (Fri, 20 Jul 2018 01:58:15 GMT):
Has joined the channel.

SteveKIM (Fri, 20 Jul 2018 02:00:52 GMT):
hi

SteveKIM (Fri, 20 Jul 2018 02:02:54 GMT):
how access from java which use java sdk to hyper ledger fabric in docker . in my case usually access denied

dave.enyeart (Fri, 20 Jul 2018 02:05:06 GMT):
@mwenyan here's the entry point for the private data hashing: https://github.com/hyperledger/fabric/blob/release-1.2/core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go#L310-L318

thuxl07 (Fri, 20 Jul 2018 02:22:05 GMT):
Has joined the channel.

mwenyan (Fri, 20 Jul 2018 02:27:07 GMT):
@dave.enyeart thanks

seshanthS (Fri, 20 Jul 2018 02:29:35 GMT):
Has joined the channel.

pandagopal (Fri, 20 Jul 2018 05:05:47 GMT):
Has joined the channel.

pankajcheema (Fri, 20 Jul 2018 05:30:12 GMT):
Hi Experts anyone knows this https://stackoverflow.com/questions/51435618/hyperledger-fabric-private-data-collection

pankajcheema (Fri, 20 Jul 2018 05:51:47 GMT):
Got the issue.

pankajcheema (Fri, 20 Jul 2018 05:53:19 GMT):
But If i have to fetch both type of data(Simple Ledger & Private Data) in a single transaction than which approach i should follow. ?

pankajcheema (Fri, 20 Jul 2018 05:53:19 GMT):
But If i have to fetch both type of data(Simple Ledger & Private Data) in a single transaction then which approach i should follow. ?

RohitChourasiya (Fri, 20 Jul 2018 06:10:43 GMT):
Has joined the channel.

RohitChourasiya (Fri, 20 Jul 2018 06:11:36 GMT):
error getting endorser client for invoke: endorser client failed to connect to emorphis.admin.com:7051: failed to create new connection: context deadline exceeded error getting endorser client for invoke: endorser client failed to connect to emorphis.admin.com:7051: failed to create new connection: context deadline exceeded

GowriR (Fri, 20 Jul 2018 06:22:41 GMT):
I am getting a couple of problems getting to run the nodejs app. Things worked in the dev network with no CA containers running. My channel/Blockchain setup: 1. Now I have two CA's one for the Consumer and another for the Utility company. 2. Two Orgs and each having one peer 3. One Orderer I can see 5 docker containers running. Coming to my problem: 1. I set the org name in the config file for the nodejs app. Error: [2018-07-07 14:56:08.640] [DEBUG] UtilityApp - User name for login/registration : utiluser [2018-07-07 14:56:08.641] [DEBUG] UtilityApp - Org name : UtilityOrg (node:5492) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'UtilityOrg' of undefined 2. I try through the CLI next Error: hypledvm@hypledvm-VirtualBox:~/go/src/github.com/hyperledger/fabric-ca/docker/server/fabric-ca-server$ fabric-ca-server init -b admin:adminpw 2018/07/07 17:13:21 [INFO] Configuration file location: /home/hypledvm/go/src/github.com/hyperledger/fabric-ca/docker/server/fabric-ca-server/fabric-ca-server-config.yaml panic: Version is not set for fabric-ca library The version is set to: # Version of config file version: 1.1.1-snapshot-e656889 3. go --version tries to load the chaincode. I have not yet enrolled users and added peers to the channel. It is searching for the chaincode i set in the dev environment. 2018-07-07 18:02:33.860 IST [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2018-07-07 18:02:33.860 IST [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... Error starting chaincode error chaincode id not provided 4. Register or Enroll both give me the error (Both the CA dockers are running and I gave the CA certs generated from cryptogen before starting the docker containers) hypledvm@hypledvm-VirtualBox:~/.fabric-ca-client$ fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 --caname ca_peerUtilityOrg 2018/07/07 18:06:46 [INFO] generating key: &{A:ecdsa S:256} 2018/07/07 18:06:46 [INFO] encoded CSR Error: POST failure of request: POST http://localhost:7054/enroll {"hosts":["hypledvm-VirtualBox"],"certificate_request":"-----BEGIN CERTIFICATE REQUEST-----\nMIIBSDCB8AIBADBdMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xp\nbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMQ8wDQYDVQQLEwZGYWJyaWMxDjAMBgNV\nBAMTBWFkbWluMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE6WglOvHXdJHtQeXV\nDLYcism8uorVVJXTTbNqEe0QCmuQtdn3gmcGv2CujsehHKxUyVBHJP1+tEukmS3r\nZbXzRaAxMC8GCSqGSIb3DQEJDjEiMCAwHgYDVR0RBBcwFYITaHlwbGVkdm0tVmly\ndHVhbEJveDAKBggqhkjOPQQDAgNHADBEAiA76/Ul3LJC8YfrJynpfsK8qv+awhi/\nZvBj1Cg1UmaCsAIgTlKwwOEWEkcpK7eBmHySMsOl8XeUguWEn5HMAUeJmK4=\n-----END CERTIFICATE REQUEST-----\n","profile":"","crl_override":"","label":"","NotBefore":"0001-01-01T00:00:00Z","NotAfter":"0001-01-01T00:00:00Z","CAName":"ca_peerUtilityOrg"}: Post http://localhost:7054/enroll: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16" 5. I realised I do not have the COP service or the ConnectionProfile.yaml configured. 6. I am unable to find the the cet.pem and key.pem files and unable to find the .json file to follow the steps here - http://fabric-hlj.readthedocs.io/en/v1.0.0-preview/Setup/ca-setup.html I am not sure if all these are related or disparate. Goal is to run the fabric nodejs sample app successfully on my network. Any pointers would be very helpful.

hyper_learner_ak (Fri, 20 Jul 2018 06:36:33 GMT):
Has joined the channel.

hyper_learner_ak (Fri, 20 Jul 2018 06:40:09 GMT):
Hi there

hyper_learner_ak (Fri, 20 Jul 2018 06:40:18 GMT):
Can anyone help me with Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

hyper_learner_ak (Fri, 20 Jul 2018 06:40:53 GMT):
I am trying to start first-network from fabric-samples

AbhiramHatolkar (Fri, 20 Jul 2018 06:45:19 GMT):
Is balance-transfer project from fabric-samples broken? I took a fresh clone and ran runApp.sh in one terminal and testApi.sh in other and it's failing while instantiating chaincode with error (Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:13278) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode). My npm version is 5.6, node version is 8.11, docker images for orderer, peer, fabric-ca are pointing to 1.2.0, go is 1.10.2, linux- ubuntu 16.04

AbhiramHatolkar (Fri, 20 Jul 2018 06:45:19 GMT):
Hi guys, Is balance-transfer project from fabric-samples broken? I took a fresh clone and ran runApp.sh in one terminal and testApi.sh in other and it's failing while instantiating chaincode with error (Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:13278) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode). My npm version is 5.6, node version is 8.11, docker images for orderer, peer, fabric-ca are pointing to 1.2.0, go is 1.10.2, linux- ubuntu 16.04

AbhiramHatolkar (Fri, 20 Jul 2018 06:45:19 GMT):
Hi guys, is balance-transfer project from fabric-samples broken? I took a fresh clone and ran runApp.sh in one terminal and testApi.sh in other and it's failing while instantiating chaincode with error (Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:13278) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode). My npm version is 5.6, node version is 8.11, docker images for orderer, peer, fabric-ca are pointing to 1.2.0, go is 1.10.2, linux- ubuntu 16.04

nabil941994 (Fri, 20 Jul 2018 07:22:11 GMT):
Hello Guys, i am trying to query my blockchain using node SDK, i have almost 4000 records stored, so when i query i receive the following grpc error: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=RESOURCE_EXHAUSTED, description=gRPC message exceeds maximum size 4194304: 4779201, cause=null} Is there any workaround to increase the maximum size for grpc?

rbole (Fri, 20 Jul 2018 08:26:48 GMT):
Hi, I am looking for a tutorial to enable TLS, does anyone know one?

pankajcheema (Fri, 20 Jul 2018 09:10:22 GMT):
Hi Does anyone have clear idea what does this mean ```Further, if the transaction writes a value multiple times for a key, only the last written value is retained. Also, if a transaction reads a value for a key, the value in the committed state is returned even if the transaction has updated the value for the key before issuing the read.``` in Read-Write Set Semantics Document of fabric 1.2

pankajcheema (Fri, 20 Jul 2018 09:10:39 GMT):
http://hyperledger-fabric.readthedocs.io/en/release-1.0/readwrite.html here

pankajcheema (Fri, 20 Jul 2018 09:12:10 GMT):
As per my knowledge transaction does not change state before committing . Correct me if am wrong somewhere .

pankajcheema (Fri, 20 Jul 2018 09:14:17 GMT):
@yacovm

pankajcheema (Fri, 20 Jul 2018 09:15:03 GMT):
@dave.enyeart

nabil941994 (Fri, 20 Jul 2018 09:21:03 GMT):
Hello Guys, i am trying to query my blockchain using node SDK, i have almost 4000 records stored, so when i query i receive the following grpc error: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=RESOURCE_EXHAUSTED, description=gRPC message exceeds maximum size 4194304: 4779201, cause=null} Is there any workaround to increase the maximum size for grpc?

sathishNS (Fri, 20 Jul 2018 09:21:40 GMT):
Has joined the channel.

AbhiramHatolkar (Fri, 20 Jul 2018 09:23:16 GMT):
Does anyone know howto unit test chaincode written in nodejs?

clydedacruz (Fri, 20 Jul 2018 09:53:30 GMT):
Can the integrity of events consumed from a peer be verified by other parties in the channel ?

Cloudde (Fri, 20 Jul 2018 10:32:23 GMT):
Has joined the channel.

MichalZalecki (Fri, 20 Jul 2018 11:20:32 GMT):
Is there any way to translate blockToLive for the private collection to something that would better fit the business domain? Like, time?

dave.enyeart (Fri, 20 Jul 2018 11:28:11 GMT):
@MichalZalecki There is no concept of time on the chain, as the nodes are not running with a synchronized clock. Therefore blockToLive is the best that can be achieved.

riccardopersiani (Fri, 20 Jul 2018 11:47:06 GMT):
Hello, i was able to check a custom event using `registerChaincodeEvent()`, but the problem is that the event returned does not have a payload(undefined). Anyone know how to get it? In the official documentation is written the following: "to see the event payload, the channel_event_hub must be connected(true)", but actually my channel event hub is connected to true with the `eh.connect()` after the `event_monitor`.

pgarneau (Fri, 20 Jul 2018 12:11:32 GMT):
Are you waiting for the "payload" to be returned or are you verifying it right away? In the GoSDK, a "channel" is used (A mailbox) to receive the data later and I have a "Keep reading the mailbox till you find the value, but if it's been 20 seconds, throw error"

riccardopersiani (Fri, 20 Jul 2018 12:13:43 GMT):
There is no payload field inside the event, but the example of the official documentation use this code to access it: `let event_payload = event.payload.toString('utf8');` I am receiving the event with no payload inside `event: { chaincode_id: 'oraclize-test-integration', tx_id: '6dbd45ba789e89771f9f3470f5e43f56a4c6d4d4dcb10724068c96e962c9430b', event_name: 'evtsender' }`

riccardopersiani (Fri, 20 Jul 2018 12:13:43 GMT):
There is no payload field inside the event, but the example of the official documentation use this code to access it: `let event_payload = event.payload.toString('utf8');` I am receiving the event with no payload inside ``` event: { chaincode_id: 'oraclize-test-integration', tx_id: '6dbd45ba789e89771f9f3470f5e43f56a4c6d4d4dcb10724068c96e962c9430b', event_name: 'evtsender' } ```

pgarneau (Fri, 20 Jul 2018 12:14:22 GMT):
Is your chaincode triggering an event?

pgarneau (Fri, 20 Jul 2018 12:14:41 GMT):
cause normally the tx event is not generated by your chaincode

pgarneau (Fri, 20 Jul 2018 12:15:38 GMT):
``` err = stub.SetEvent("eventInvoke", []byte{}) if err != nil { return shim.Error(err.Error()) } ``` In an invoke method

riccardopersiani (Fri, 20 Jul 2018 12:19:24 GMT):
Of course, this is where I set the event: `APIstub.SetEvent("evtsender", []byte("testquery vent"))`

pgarneau (Fri, 20 Jul 2018 12:20:51 GMT):
Could doc possibly be out of date?

riccardopersiani (Fri, 20 Jul 2018 12:21:28 GMT):
I do not think so. https://fabric-sdk-node.github.io/tutorial-channel-events.html

pgarneau (Fri, 20 Jul 2018 12:21:35 GMT):
Im guessing you're using the node sdk, so I'm not really qualified to help you my dude. GL

riccardopersiani (Fri, 20 Jul 2018 12:22:21 GMT):
Do you know someone who I can write to?

pgarneau (Fri, 20 Jul 2018 12:23:02 GMT):
Sorry no :( Few people that have helped me are all on the go sdk

riccardopersiani (Fri, 20 Jul 2018 12:24:33 GMT):
Ahaha Ok. So do you know some ref for using the GOsdk for getting events?

pgarneau (Fri, 20 Jul 2018 12:26:04 GMT):
``` reg, notifier, err := bc.Event.RegisterChaincodeEvent(bc.Config.ChainCodeID, eventID) if err != nil { return "", err } defer bc.Event.Unregister(reg) ```

pgarneau (Fri, 20 Jul 2018 12:26:23 GMT):
before Invoke ^

pgarneau (Fri, 20 Jul 2018 12:26:31 GMT):
``` // Wait for the result of the submission select { case ccEvent := <-notifier: fmt.Printf("Received CC event: %v\n", ccEvent) case <-time.After(time.Second * 20): fmt.Println("event error") return "", fmt.Errorf("did NOT receive CC event for eventId(%s)", eventID) } ```

pgarneau (Fri, 20 Jul 2018 12:26:39 GMT):
After response came back form invoke ^

riccardopersiani (Fri, 20 Jul 2018 12:28:33 GMT):
ty very much

pgarneau (Fri, 20 Jul 2018 12:29:12 GMT):
np

nelaturuk (Fri, 20 Jul 2018 12:53:38 GMT):
Hi, has anyone come across this error in peer nodes. 2018-07-18 20:16:32.131 UTC [chaincode] Launch -> ERRO 3d4 launchAndWaitForRegister failed: Post http://unix.sock/containers/create?name=dev-peer1.chaincode1-v1.0.2-b3: dial unix /host/var/run/docker.sock: connect: permission denied error starting container This is my docker start command for peer: docker run -itd --name peer1 \ --env CORE_PEER_ADDRESSAUTODETECT=false \ --env CORE_PEER_GOSSIP_SKIPHANDSHAKE=true \ --env CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock \ --env CORE_LOGGING_LEVEL=DEBUG \ --env CORE_PEER_TLS_ENABLED=true \ --env CORE_PEER_ENDORSER_ENABLED=true \ --env CORE_PEER_GOSSIP_ORGLEADER=true \ --env CORE_PEER_GOSSIP_USELEADERELECTION=false \ --env CORE_PEER_PROFILE_ENABLED=true \ --env CORE_PEER_ADDRESS=peer1:7051 \ --env CORE_PEER_CHAINCODEADDRESS=peer1:7051 \ --env CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 \ --env CORE_PEER_ID=peer1 \ --env CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp \ --env CORE_PEER_LOCALMSPID=PeerMSP \ --env CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host \ --env CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt \ --env CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key \ --env CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt \ --env CORE_PEER_GOSSIP_EXTERNALENDPOINT=$hostip:7051 \ --env CORE_LEDGER_STATE_STATEDATABASE=CouchDB \ --env CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=$hostip:5984 \ --hostname peer1 \ --add-host orderer1:$hostip \ --add-host peer1:$hostip \ --add-host peer2:$hostip \ --workdir /opt/gopath/src/github.com/hyperledger/fabric/peer \ --volume /var/run/:/host/var/run/ \ --volume $PERSISTANCE_ROOT_FOLDER/peer1:/var/hyperledger/production \ --volume ${msp_src}:/etc/hyperledger/fabric/msp \ --volume ${tls_src}:/etc/hyperledger/fabric/tls \ --publish 7051:7051 \ --publish 7053:7053 \ ibmblockchain/fabric-peer peer node start

smallant (Fri, 20 Jul 2018 13:13:44 GMT):
Hi guys, I've been trying to run the discover for fabric but with no avail. I have fabric locally and running also in a docker container and in both environments I can't use the discover. Anyone passed through this?

mhomaid (Fri, 20 Jul 2018 13:42:22 GMT):
Has joined the channel.

nabil941994 (Fri, 20 Jul 2018 13:55:25 GMT):
Hello Guys, i am trying to query my blockchain using node SDK, i have almost 4000 records stored, so when i query i receive the following grpc error: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=RESOURCE_EXHAUSTED, description=gRPC message exceeds maximum size 4194304: 4779201, cause=null} Is there any workaround to increase the maximum size for grpc?

mrlee23 (Fri, 20 Jul 2018 14:46:55 GMT):
Has joined the channel.

eddie_austin (Fri, 20 Jul 2018 15:20:32 GMT):
Has joined the channel.

mrlee23 (Fri, 20 Jul 2018 15:24:15 GMT):
Hi, recently I noticed fabric doesn't support the BFT consensus. So I want to implement or use plugin. Is there any example of orderer plugin implemented BFT?

eddie_austin (Fri, 20 Jul 2018 15:45:50 GMT):
Hi, when attempting to utilizes the BYFN example, I am running into the below error when attempting to invoke a transfer from A to B. I'm using fabric 1.2.0 Invoke: ``` peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}' ``` Error: ``` Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload: ```

eddie_austin (Fri, 20 Jul 2018 15:46:41 GMT):
Is anyone else running into this same issue?

yacovm (Fri, 20 Jul 2018 15:47:11 GMT):
seems like the chaincode result wasn't deterministic

yacovm (Fri, 20 Jul 2018 15:47:25 GMT):
or the peer ledger were not identical

eddie_austin (Fri, 20 Jul 2018 15:54:44 GMT):
I'm just following the example and I've tried using both Node and Go for the chaincode. So not sure why this would happen. How do I go about checking if my peer ledgers are identical?

RonPiwetz (Fri, 20 Jul 2018 16:01:17 GMT):
Has joined the channel.

eddie_austin (Fri, 20 Jul 2018 17:44:47 GMT):
Installing Fabric 1.1.0, going through the BYFN tutorial, and then upgrading from 1.1.0 to 1.2.0 fixed my issue.

rjones (Fri, 20 Jul 2018 23:09:18 GMT):
Has left the channel.

junewalk2 (Sat, 21 Jul 2018 02:51:58 GMT):
Has joined the channel.

subbarayudu (Sat, 21 Jul 2018 05:37:06 GMT):
Has joined the channel.

ParkerA (Sat, 21 Jul 2018 05:38:02 GMT):
Has joined the channel.

ParkerA (Sat, 21 Jul 2018 05:38:40 GMT):
Hey is it possible and easy to develop a public blockchain with fabric?

ParkerA (Sat, 21 Jul 2018 05:39:11 GMT):
Because I see that sawtooth is more suited towards that, but it doesn't work with composer.

AshishKaila (Sat, 21 Jul 2018 06:14:54 GMT):
How can we check for admin role in chaincode invocation?

AshishKaila (Sat, 21 Jul 2018 06:15:58 GMT):
I see the fabcar example does not register an admin via fabric_ca_client.register call in enrollAdmin.js.. Is that by design?

Jyotirmoy (Sat, 21 Jul 2018 09:21:47 GMT):
I have creted a fabric hyperledger network over the aws using the yaml files given in the build you r first network tutorial of Hyperledger fabric and then installled composer rest server on top of it to create ledgers.. can this be used as is for production environment or something more needs to be done? I mean do i need something different for CA server or orderer or peer networks or can the default setup that comes from the hyperledger fabric be used directly.

1234 (Sat, 21 Jul 2018 13:11:25 GMT):
Has joined the channel.

1234 (Sat, 21 Jul 2018 13:17:03 GMT):
Hi team am Mathan working Poc in fabric ,could you plz help me I want more ACL format like cscc/GetBlock and Canonical Path like channel/Order/writer or channel/Reader

AshishKaila (Sat, 21 Jul 2018 18:35:19 GMT):
Is anyone able to answer my query? Is it possible to setup users for chaincode-docker-devmode and test our chaincode based off that?

PickettMS (Sat, 21 Jul 2018 22:46:55 GMT):
i have an idea for an enterprise blockchain using hyperledger, ive written a whitepaper already and want to release it, any ideas on how to get a few more eyes on it before i do so? or thoughts on that in general lol

ikoma-nis (Sun, 22 Jul 2018 09:46:45 GMT):
Has joined the channel.

ikoma-nis (Sun, 22 Jul 2018 09:51:31 GMT):
I don't want to use "PBFT" but "proof of work". Is it possible?? I'm sorry that my English is so bad.

yacovm (Sun, 22 Jul 2018 09:53:46 GMT):
why would you use proof of work? do you have free electricity?

yacovm (Sun, 22 Jul 2018 09:53:46 GMT):
why would you use proof of work? do you have not need to pay for electricity?

yacovm (Sun, 22 Jul 2018 09:54:18 GMT):
why would you use proof of work? do you have not need to pay for electricity?

yacovm (Sun, 22 Jul 2018 09:54:18 GMT):
why would you use proof of work? do you not need to pay for electricity?

ikoma-nis (Sun, 22 Jul 2018 10:00:22 GMT):
I'm a university student and study "51% Attack in proof of work". I think that I don't have to need to pay it.

yacovm (Sun, 22 Jul 2018 10:01:25 GMT):
I see. Well - but PoW is used for permissionless blockchains and fabric is a permissioned one.... are you sure you want to implement a PoW orderer?

ikoma-nis (Sun, 22 Jul 2018 10:21:19 GMT):
I want to implement it. Can I implement PoW in the consortium type? I have no problem the node is fixed.

yacovm (Sun, 22 Jul 2018 10:24:57 GMT):
I suggest you take a look at what resides in `orderer/consensus/kafka`

yacovm (Sun, 22 Jul 2018 10:25:13 GMT):
and based on it - implement your own PoW consensus

ikoma-nis (Sun, 22 Jul 2018 10:42:00 GMT):
./fabric-sampels/fabcar/node_modules/fabric-client/lib/protos/orderer??

ikoma-nis (Sun, 22 Jul 2018 10:43:04 GMT):
I am a beginner so I can not implement it, can I?

mastersingh24 (Sun, 22 Jul 2018 10:43:08 GMT):
@ikoma-nis - still not sure exactly what you want to do here? You want to build an orderer for Fabric which leverage PoW?

mastersingh24 (Sun, 22 Jul 2018 10:43:27 GMT):
The entire world is moving away from PoW

mastersingh24 (Sun, 22 Jul 2018 10:43:43 GMT):
Other than bitcoin where it is actually required

ikoma-nis (Sun, 22 Jul 2018 10:46:02 GMT):
I wanted to know if it was realistically possible to implement.

ikoma-nis (Sun, 22 Jul 2018 10:47:57 GMT):
I think so , I cover only bitcoin.

ikoma-nis (Sun, 22 Jul 2018 10:48:48 GMT):
Sorry for the poor English.

yacovm (Sun, 22 Jul 2018 10:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m5EQf8xXdRRo93wwW) In academic papers, @mastersingh24

mastersingh24 (Sun, 22 Jul 2018 11:03:08 GMT):
PoW? Most academic papers are moving to PoS not PoW

mastersingh24 (Sun, 22 Jul 2018 11:05:09 GMT):
It's unclear to me what the purpose here would be ... I'm just not sure that there's any value from an academic perspective to look at PoW within Fabric. In any case, @yacovm pointed you in the right direction

ikoma-nis (Sun, 22 Jul 2018 11:11:00 GMT):
I understand that PoS does not have the merit of being tampered with, but tampering itself can be done more easily than PoW.

ikoma-nis (Sun, 22 Jul 2018 11:12:26 GMT):
I think that malicious users do not necessarily consider only the merit.

d8bhatta (Sun, 22 Jul 2018 11:20:57 GMT):
Hello All

d8bhatta (Sun, 22 Jul 2018 11:22:16 GMT):
From this page https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html, when I run following command, peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem i get following error: Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded can somebody please suggest me what I am doing wrong

BrunoBanha (Sun, 22 Jul 2018 16:07:06 GMT):
Has joined the channel.

haejoongkim (Mon, 23 Jul 2018 00:21:38 GMT):
Has joined the channel.

haejoongkim (Mon, 23 Jul 2018 00:22:34 GMT):
ios

haejoongkim (Mon, 23 Jul 2018 00:29:44 GMT):
I am reviewing hyperledger fabric to build business model with it. I have a question that the way to develop iOS app with using Fabric client SDK. As I checked the Node.js SDK documents, it seems Fabric Client and Fabric CA Client classes are needed to be called. However, when I import those modules , it gives me an error even though other node.js modules are imported well. Can you give me an any idea for this situation? error messages are like this: ERROR in ./node_modules/grpc/node_modules/detect-libc/lib/detect-libc.js Module not found: Error: Can’t resolve ‘child_process’ in ‘/Users/wooyeop-nah/dev/ios/TXBLAP/Fabric/node_modules/grpc/node_modules/detect-libc/lib’ @ ./node_modules/grpc/node_modules/detect-libc/lib/detect-libc.js 4:16-40 @ ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js @ ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js @ ./node_modules/grpc/src/grpc_extension.js @ ./node_modules/grpc/index.js @ ./node_modules/fabric-client/lib/Client.js @ ./node_modules/fabric-client/index.js @ ./index.js ERROR in ./node_modules/os-locale/index.js Module not found: Error: Can’t resolve ‘child_process’ in ‘/Users/wooyeop-nah/dev/ios/TXBLAP/Fabric/node_modules/os-locale’ @ ./node_modules/os-locale/index.js 2:19-43 @ ./node_modules/yargs/index.js @ ./node_modules/nconf/lib/nconf/stores/argv.js @ ./node_modules/nconf/lib/nconf/stores sync ^\.\/.*$ @ ./node_modules/nconf/lib/nconf.js @ ./node_modules/fabric-ca-client/lib/Config.js @ ./node_modules/fabric-ca-client/lib/utils.js @ ./node_modules/fabric-ca-client/lib/FabricCAClientImpl.js @ ./node_modules/fabric-ca-client/index.js @ ./index.js

shw (Mon, 23 Jul 2018 02:23:49 GMT):
Has joined the channel.

jonlee300 (Mon, 23 Jul 2018 03:19:50 GMT):
Has joined the channel.

kirkwood (Mon, 23 Jul 2018 03:58:05 GMT):
Has joined the channel.

cutmeurahrudi (Mon, 23 Jul 2018 04:16:57 GMT):
Has joined the channel.

cutmeurahrudi (Mon, 23 Jul 2018 04:27:25 GMT):
Hi, I am follow tutorial on build your first network then I want to install a business network to it but I got this error 'Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed' anynone could help?

lotty02cho (Mon, 23 Jul 2018 05:00:05 GMT):
Has joined the channel.

lotty02cho (Mon, 23 Jul 2018 05:00:26 GMT):
Hi! I try to make chaincode using golang, and I have a question about struct variable. Let's say I want to make refresh cow management system. How do I add new categories in my fixed struct types? Let's say I made struct types like below. ``` type Cow struct { Id_no string `json:"Id_no"` Birth_date string `json:"Birth_date"` Sex string `json:"Sex"` Father_id string `json:"Father_id"` Mother_id string `json:"Mother_id"` Origin string `json:"Origin"` } ``` After cow moves to somewhere like slaughter, package center, they need to some their serial numbers or informations about where they stay. How can I add that kind of information in struct type?

lotty02cho (Mon, 23 Jul 2018 05:00:26 GMT):
Hi! I try to make chaincode using golang, and I have a question about struct variable. Let's say I want to make refresh cow management system. How do I add new categories in my fixed struct types? Let's say I made struct types like below. ``` type Cow struct { Id_no string `json:"Id_no"` Birth_date string `json:"Birth_date"` Sex string `json:"Sex"` Father_id string `json:"Father_id"` Mother_id string `json:"Mother_id"` Origin string `json:"Origin"` } ``` After cow moves to somewhere like slaughter, package center, they need to some their serial numbers or informations about where they stay. How can I add that kind of information in struct type? For example, I want to add data like ``` Id_no string `json:"Id_no"` Barcode_id string `json:"Barcode_id"` ``` but sometimes, they don't need to that kind of type because it only use wholesale part.

pankajcheema (Mon, 23 Jul 2018 07:21:07 GMT):
Hello Guys!!

pankajcheema (Mon, 23 Jul 2018 07:21:14 GMT):
I have a case

pankajcheema (Mon, 23 Jul 2018 07:21:32 GMT):
I am using two Org (Org1MSP && Org2MSP)

pankajcheema (Mon, 23 Jul 2018 07:22:13 GMT):
I am using Private Data

pankajcheema (Mon, 23 Jul 2018 07:22:31 GMT):
Previously Only Org1 was allowed to write/read private data

pankajcheema (Mon, 23 Jul 2018 07:23:27 GMT):
such that "policy": "OR('Org1MSP.peer')" but know after upgrading the chaincode, I have updated the `collection-config`

pankajcheema (Mon, 23 Jul 2018 07:23:27 GMT):
such that `"policy": "OR('Org1MSP.peer')"` but know after upgrading the chaincode, I have updated the `collection-config`

pankajcheema (Mon, 23 Jul 2018 07:23:27 GMT):
such that `"policy": "OR('Org1MSP.peer')"` but now after upgrading the chaincode, I have updated the `collection-config`

pankajcheema (Mon, 23 Jul 2018 07:24:01 GMT):
and now the policy says `"policy": "OR('Org1MSP.peer','Org2MSP.peer')"`

pankajcheema (Mon, 23 Jul 2018 07:24:37 GMT):
The issue is, the private data written by `Org1` does not appear on `statedb` of `Org2`

pankajcheema (Mon, 23 Jul 2018 07:24:37 GMT):
The issue is, the private data written by `Org1` does not appear on `statedb` of `Org2` `peers`

pankajcheema (Mon, 23 Jul 2018 07:25:04 GMT):
Is there any thing else we need to do to share the private data with other org? Is there anything I am missing?

pankajcheema (Mon, 23 Jul 2018 07:25:13 GMT):
Please let me know if anyone have any idea

yacovm (Mon, 23 Jul 2018 07:51:31 GMT):
@pankajcheema in v1.2 peers that weren't allowed for private data at a certain time, don't pull it from other peers once they join the collection

pankajcheema (Mon, 23 Jul 2018 07:52:09 GMT):
Ok So they will automatically take pull from other peers?

pankajcheema (Mon, 23 Jul 2018 07:52:11 GMT):
If queried?

yacovm (Mon, 23 Jul 2018 07:52:44 GMT):
I'm saying that they *DO NOT* do that - if they were not eligible for private data at that time

pankajcheema (Mon, 23 Jul 2018 07:54:51 GMT):
@yacovm if Org2 is now in collection-config. and chaincode is upgraded along with collection-config. Will peer of 2nd Ord (that was not a part of private data previously when the data was written) able to fetch that data?

pankajcheema (Mon, 23 Jul 2018 07:54:51 GMT):
@yacovm if Org2 is now in collection-config. and chaincode is upgraded along with collection-config. Will peer of 2nd Org((that was not a part of private data previously when the data was written) able to fetch that data?

yacovm (Mon, 23 Jul 2018 07:56:47 GMT):
It will not

yacovm (Mon, 23 Jul 2018 07:56:51 GMT):
at least not in v1.2

yacovm (Mon, 23 Jul 2018 07:57:06 GMT):
I'm not sure for v1.3... @dave.enyeart , @manish-sethi ?

pankajcheema (Mon, 23 Jul 2018 08:17:23 GMT):
Thanks @yacovm for such detailed explanation :)

pankajcheema (Mon, 23 Jul 2018 09:04:16 GMT):
@yacovm I am trying to reproduce this issue. If succeed, I will post it to JIRA with steps and logs

vineetmishra (Mon, 23 Jul 2018 10:18:51 GMT):
Hi Guys i am facing following error "Failed to join all peers to channel. cause:TypeError: client.getEventHubsForOrg is not a function" while running node sdk setup

vineetmishra (Mon, 23 Jul 2018 10:18:58 GMT):
any could help me

vineetmishra (Mon, 23 Jul 2018 10:20:02 GMT):
I am running Balance transfer example

vineetmishra (Mon, 23 Jul 2018 10:22:42 GMT):

Clipboard - July 23, 2018 3:52 PM

vineetmishra (Mon, 23 Jul 2018 10:22:42 GMT):

Clipboard - July 23, 2018 3:52 PM

lwrabbit (Mon, 23 Jul 2018 10:48:59 GMT):
hi Guys, i am facing following error"Error: Bad response: 500 - plugin with name escc could not be used: plugin with name escc wasn't found"while executing cmd "peer chaincode list --instantiated -C mychannel" with fabric1.2。help~

anzalbeg (Mon, 23 Jul 2018 10:50:40 GMT):
Hello everyone, Can anyone help? I am getting the issue "[[69b0d0ec PUT_STATE ERROR]]No ledger context for %!!(MISSING)s(MISSING). Sending %!!(MISSING)s(MISSING)" while instantiating the chaincode using cli container

anzalbeg (Mon, 23 Jul 2018 10:52:23 GMT):
Hello everyone, Can anyone help? I am getting the issue "[[69b0d0ec PUT_STATE ERROR]]No ledger context for %!!(MISSING)s(MISSING). Sending %!!(MISSING)s(MISSING)" while instantiating the chaincode using cli container

PrincyaEsther (Mon, 23 Jul 2018 11:16:04 GMT):
Has joined the channel.

PrincyaEsther (Mon, 23 Jul 2018 11:16:52 GMT):
I tried to create new chaincode in fabric using node js , (fabric-samples 1.1.0-preview and also tried with 1.2 version) after changing docker-compose.yml file I have written Init method in chaincode using fabric-shim. then I excecuted CORE_CHAINCODE_ID_NAME="index:v0" npm start -- --peer.address grpc://127.0.0.1:7052, I got folowing success message 2018-07-23T09:43:25.132Z INFO [lib/chaincode.js] Registering with peer grpc://127.0.0.1:7052 as chaincode "index:v0" 2018-07-23T09:43:25.146Z INFO [lib/handler.js] Successfully registered with peer node. State transferred to "established" 2018-07-23T09:43:25.147Z INFO [lib/handler.js] Successfully established communication with peer node. State transferred to "ready" After this i tried to list channel using CORE_PEER_LOCALMSPID=Org1MSP CORE_PEER_MSPCONFIGPATH=/home/user/Documents/projects/fabric-workout/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp peer channel list I am getting folowing error 2018-07-23 15:19:51.423 IST [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" Could anybody help me to fix this prolem

mi55er (Mon, 23 Jul 2018 11:28:56 GMT):
Has joined the channel.

pankajcheema (Mon, 23 Jul 2018 11:44:40 GMT):
Hi All

pankajcheema (Mon, 23 Jul 2018 11:45:01 GMT):
Does anyone knows where to use ```stub.setEvent()``` in chaincode?

pgarneau (Mon, 23 Jul 2018 11:59:29 GMT):
@pankajcheema After an invoke call has completed most of the time

pankajcheema (Mon, 23 Jul 2018 12:00:50 GMT):
@pgarneau Thanks for reply

smallant (Mon, 23 Jul 2018 12:05:57 GMT):
is everyone able to run the discover cmd?

pgarneau (Mon, 23 Jul 2018 12:06:27 GMT):
I never got it to connect to my peers... Maybe it needs to be run on a peer container

smallant (Mon, 23 Jul 2018 12:07:25 GMT):
i can't even run on my machine

smallant (Mon, 23 Jul 2018 12:07:38 GMT):
no cmd found type of error

smallant (Mon, 23 Jul 2018 12:08:01 GMT):
and the same on a peer

pgarneau (Mon, 23 Jul 2018 12:11:53 GMT):
well it's a binary file in the /bin directory for version 1.2 I think?

smallant (Mon, 23 Jul 2018 12:16:30 GMT):
i know, I have fabric 1.2 in my machine

smallant (Mon, 23 Jul 2018 12:24:13 GMT):
if I ran make all Unable to find image 'hyperledger/fabric-buildenv:amd64-1.2.1-snapshot-5a6e86267' locally docker: Error response from daemon: pull access denied for hyperledger/fabric-buildenv, repository does not exist or may require 'docker login'. I have the latest version from 1.2 and didn't change anything

rake66 (Mon, 23 Jul 2018 12:24:37 GMT):
Has joined the channel.

SineadKelly (Mon, 23 Jul 2018 12:33:55 GMT):
Has joined the channel.

aatkddny (Mon, 23 Jul 2018 12:51:46 GMT):
try increasing the timeouts.

manish-sethi (Mon, 23 Jul 2018 13:34:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3MGwJ93Yuza6PPhNp) @pankajcheema @pankajcheema, @yacovm - yes, the pulling of the private data for newly added peer is planned for 1.3

yacovm (Mon, 23 Jul 2018 13:35:31 GMT):
@manish-sethi just to be precise - I mean not for added peers but for peers that their organization was added - will they be eligible for the past data?

manish-sethi (Mon, 23 Jul 2018 13:36:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mPgtchrWSQXJEcfYF) @yacovm yes, off course... (Otherwise, it's not private data anymore :-)

manish-sethi (Mon, 23 Jul 2018 13:36:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mPgtchrWSQXJEcfYF) @yacovm yes, of course... (Otherwise, it's not private data anymore :-)

pankajcheema (Mon, 23 Jul 2018 13:40:49 GMT):
Thank you very much @manish-sethi @yacovm

PrincyaEsther (Mon, 23 Jul 2018 13:47:16 GMT):
I'm keep getting following error while installing or listing peer.

PrincyaEsther (Mon, 23 Jul 2018 13:47:18 GMT):
ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

pankajcheema (Mon, 23 Jul 2018 13:50:00 GMT):
Hi All

pankajcheema (Mon, 23 Jul 2018 13:50:33 GMT):
To use `Service Discovery` do we need to configure anything from our side? or is it automatically handled by v1.2 system?

dave.enyeart (Mon, 23 Jul 2018 14:42:35 GMT):
@PrincyaEsther see https://stackoverflow.com/questions/49341851/error-when-reading-core-config-file-unsupported-config-type

nelaturuk (Mon, 23 Jul 2018 15:42:03 GMT):
Hi, I am trying to upgrade all netwokr components to v1.1.0. Except for peers everything else works fine. I see this error on peer: panic: Error during state DB recovery:Last committed block=2, block requested=3 goroutine 1 [running]: github.com/hyperledger/fabric/core/ledger/kvledger.newKVLedger(0xc42121a680, 0xb, 0xc42118bbf0, 0x1b056c0, 0xc4211b3e80, 0x1aff580, 0xc4211bc400, 0xc420225860, 0x326c656e6e616863, 0x613035, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:67 +0x4da github.com/hyperledger/fabric/core/ledger/kvledger.(*Provider).openInternal(0xc4200902c0, 0xc42121a680, 0xb, 0xc42121e301, 0x0, 0x0, 0x1045415) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:152 +0x170 github.com/hyperledger/fabric/core/ledger/kvledger.(*Provider).Open(0xc4200902c0, 0xc42121a680, 0xb, 0xb, 0x1b563a0, 0x0, 0x1b34760) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:128 +0x130 github.com/hyperledger/fabric/core/ledger/ledgermgmt.OpenLedger(0xc42121a680, 0xb, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:110 +0x1d1 github.com/hyperledger/fabric/core/peer.Initialize(0x13f9ba0) /opt/gopath/src/github.com/hyperledger/fabric/core/peer/peer.go:213 +0x1e6 #!/bin/bash github.com/hyperledger/fabric/peer/node.serve(0x1b54e68, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:280 +0x1048 github.com/hyperledger/fabric/peer/node.glob..func1(0x1ae4860, 0x1b54e68, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:87 +0x3f github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x1ae4860, 0x1b54e68, 0x0, 0x0, 0x1ae4860, 0x1b54e68) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 +0x3e8 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1ae4ec0, 0x11, 0xc4202c6520, 0x5) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 +0x2fe github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1ae4ec0, 0x1b, 0xc420016075) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 +0x2b main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:112 +0x5e1 Can anyone please help me with this ?

Khush1209 (Mon, 23 Jul 2018 16:45:01 GMT):
Hello guys!! I am facing issue in mounting /var/hyperledger/production/chaincodes with local host path. Can anyone tell me how to do this? while packaging of chaincode i am getting an error. Attaching the screenshot also.

Khush1209 (Mon, 23 Jul 2018 16:45:41 GMT):

Screenshot (196).png

khalpin (Mon, 23 Jul 2018 18:55:53 GMT):
I'm trying to come up with a disaster recovery plan to recover the service from the loss of all machines in both ordering service and peer service

khalpin (Mon, 23 Jul 2018 18:56:03 GMT):
stopping the peer, and backing up the ledger doesn't appear to be sufficient

khalpin (Mon, 23 Jul 2018 18:56:59 GMT):
even if I recreate the kafka topics for the various channels, I'm unable to get the thing back up, does anyone know of some documentation or a how to that can get me through this scenario?

khalpin (Mon, 23 Jul 2018 18:58:14 GMT):
my peers just say 'Got error &{NOT_FOUND}', and so far nothing I've been able to do has convinced the orderer nodes to behave (at least, this is what I think the situation is)

Switch2Logic (Mon, 23 Jul 2018 20:08:10 GMT):
Has joined the channel.

Switch2Logic (Mon, 23 Jul 2018 20:10:04 GMT):
Hi Guys... Have any of you successfully spun up a Fabric network on a Docker Swarm using Docker Compose V3.*? Running the Command Docker stack deploy -c docker-compose.yaml mynet. I have manged to do deploy all the containers onto the nodes. I am not able to run gossip protocol between peers. I also cant create a channel. I have Docker Exec -it into containers and pinged to see if the network is up and I can ping all containers. I have an idea that the way I setup the Volumes in Docker-Compose.yaml v3.* file is in correct. Can anyone assist in the volume "mounting"?

khalpin (Mon, 23 Jul 2018 22:43:01 GMT):
so it appears that doing another peer channel create fixed whatever prevented the peers and orderers from seeing the channel

khalpin (Mon, 23 Jul 2018 22:43:45 GMT):
now to figure out why one of my three peers isn't able to see chaincode instantiated on the chain

burgerfreak (Mon, 23 Jul 2018 23:57:00 GMT):
SetEvent

AshishKaila (Tue, 24 Jul 2018 00:57:14 GMT):
My CA server keeps getting down for basic network with following logs: 2018/07/24 00:56:44 [INFO] Created default configuration file at /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2018/07/24 00:56:44 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server 2018/07/24 00:56:44 [INFO] Server Version: 1.2.0-stable 2018/07/24 00:56:44 [INFO] Server Levels: &{Identity:1 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[153 247 198 102 21 70 60 78 217 204 167 56 42 163 171 172 138 95 22 19 227 75 27 160 220 176 141 69 25 170 150 208]]: Key with SKI 99f7c66615463c4ed9cca7382aa3abac8a5f1613e34b1ba0dcb08d4519aa96d0 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

AshishKaila (Tue, 24 Jul 2018 00:57:23 GMT):
Anyone has any clue why this may be the case

AshishKaila (Tue, 24 Jul 2018 01:02:08 GMT):
Resetting the keys worked

AshishKaila (Tue, 24 Jul 2018 01:22:24 GMT):
I have been noticing that despite updating my chaincode and building it, it somehow does not update on the docker image when I reinstall. Any tips on clearing the network? I am running teardown scripts to get rid of all the peer and orderer images

AshishKaila (Tue, 24 Jul 2018 01:25:56 GMT):
Anyone here to help ??

khalpin (Tue, 24 Jul 2018 01:26:53 GMT):
make sure no local mounts are being left around

khalpin (Tue, 24 Jul 2018 01:28:07 GMT):
I mount things under /var/hyperledger, and killing everything and restarting does nothing of value if I don't nuke the /var/libs or /var/hyperledgers or current-directory var/ mounts where anything shows up

AshishKaila (Tue, 24 Jul 2018 01:28:23 GMT):
they are pointing to my physical HDD chaincode

AshishKaila (Tue, 24 Jul 2018 01:28:35 GMT):
so when I rebuild my chaincode, it does update the files in there

AshishKaila (Tue, 24 Jul 2018 01:28:54 GMT):
are you saying somehow container isnt aware of these changes between restarts?

AshishKaila (Tue, 24 Jul 2018 01:31:29 GMT):
if i go to cli bash and print the files in my chaincode the code is updated there

khalpin (Tue, 24 Jul 2018 01:31:30 GMT):
docker exec -it /bin/bash ....and see if you can openssl x509 -in

khalpin (Tue, 24 Jul 2018 01:31:58 GMT):
er, x509 -text -in

khalpin (Tue, 24 Jul 2018 01:32:01 GMT):
sorry

khalpin (Tue, 24 Jul 2018 01:32:32 GMT):
```: Failed to find private key for certificate i```

AshishKaila (Tue, 24 Jul 2018 01:32:45 GMT):
openssl? what for

khalpin (Tue, 24 Jul 2018 01:33:43 GMT):
it has been my go-to to work out what keys and parents and fingerprinting i can do to answer why my keys don't look right

AshishKaila (Tue, 24 Jul 2018 01:34:07 GMT):
no my keys are ok now

AshishKaila (Tue, 24 Jul 2018 01:34:19 GMT):
just that my chaincode code is not updating between container teardowns

AshishKaila (Tue, 24 Jul 2018 01:39:50 GMT):
Seems like my docker rmi had a wrong image name... Trying to see if this fixes the issue

AshishKaila (Tue, 24 Jul 2018 01:40:45 GMT):
that was it

AshishKaila (Tue, 24 Jul 2018 01:47:32 GMT):
Another question: How do you ensure that an operation is triggered by an admin in your chaincode?

AshishKaila (Tue, 24 Jul 2018 01:47:55 GMT):
When I run enrollAdmin.js and then invoke using admin, the attributes for client identity shows up as empty hash

iamksseo (Tue, 24 Jul 2018 01:56:20 GMT):
Has joined the channel.

karthiksiddulagari (Tue, 24 Jul 2018 03:11:03 GMT):
Has joined the channel.

RohitChourasiya (Tue, 24 Jul 2018 05:09:58 GMT):
Invoke execution on peer0.org1 peer0.org2 failed

RohitChourasiya (Tue, 24 Jul 2018 05:10:18 GMT):
please help me

pankajcheema (Tue, 24 Jul 2018 05:48:58 GMT):
Hi All

pankajcheema (Tue, 24 Jul 2018 05:49:10 GMT):
Anyone knows about this issue?

pankajcheema (Tue, 24 Jul 2018 05:49:12 GMT):
```2018-07-24 11:16:09.828 IST [protoutils] ValidateProposalMessage -> WARN 3be channel []: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority ```

pankajcheema (Tue, 24 Jul 2018 05:49:23 GMT):
This comes when installing chaincode on a peer

GowriR (Tue, 24 Jul 2018 06:30:47 GMT):
I am running the sample app and trying to join a channel using rest apis The following error happens at a place when channel.getgenesisblock(request) call is being made. I am kind of lost on how to approach the problem. I get the following error on the blockchain terminal: peer0.utilityorg.utility.com | 2018-07-24 22:48:45.194 UTC [gossip/discovery] periodicalSendAlive -> DEBU 242 Sleeping 5s orderer.utility.com | 2018-07-24 22:48:47.050 UTC [common/deliver] deliverBlocks -> WARN 011 [channel: utilitychannel] Client authorization revoked for deliver request from 172.18.0.1:56912: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied orderer.utility.com | 2018-07-24 22:48:47.080 UTC [common/deliver] deliverBlocks -> WARN 012 [channel: utilitychannel] Client authorization revoked for deliver request from 172.18.0.1:56916: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied And at the nodejs server terminal: error: [Orderer.js]: sendDeliver - rejecting - status:FORBIDDEN Error: Invalid results returned ::FORBIDDEN at ClientDuplexStream. (/home/node_modules/fabric-client/lib/Orderer.js:231:22) at emitOne (events.js:116:13) the curl command passes without any errors: hypledvm@hypledvm-VirtualBox:~/go/src/utilitypoc$ curl -s -X POST http://localhost:4000/channel/join -H "authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MzI0NzY2MDksInVzZXJuYW1lIjoiYWRtaW4iLCJvcmdOYW1lIjoidXRpbGl0eW9yZyIsImlhdCI6MTUzMjQ3MjQ2OX0.9Jo58NXkIbsQbJ7wtw4-WtctgUo8m0fPqmvn_WHLfPg" {"success":true,"message":"Channel joined"} Any pointers would be helpful

fabiomolinar (Tue, 24 Jul 2018 06:40:43 GMT):
While reading the docs it says that "Again, be cognizant of the fact that the Node.js images will be slower to compile". This slowdown is only to compile the chaincode, right? In other words, using Node.js isn't going to slow down the performance of my chain, will it?

fabiomolinar (Tue, 24 Jul 2018 06:40:43 GMT):
While reading the docs it says that "Again, be cognizant of the fact that the Node.js images will be slower to compile". This slowdown is only to compile the chaincode, right? In other words, using Node.js isn't going to slow down the performance of my chain, will it? Doc reference: https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html#install-instantiate-chaincode

adarshsaraf123 (Tue, 24 Jul 2018 06:44:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lx4kRn73fsKkEH7me) @GowriR What is the exact command that you use for the REST call that causes the errors?

lwrabbit (Tue, 24 Jul 2018 07:01:14 GMT):
help!i got an err "plugin with name escc wasn't found" when instantiate chaincode via cmd

jonlee300 (Tue, 24 Jul 2018 07:38:09 GMT):
https://github.com/hyperledger/composer/issues/4269

jonlee300 (Tue, 24 Jul 2018 07:38:29 GMT):
A new issue that hopefully someone can help out

pankajcheema (Tue, 24 Jul 2018 07:43:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=85cDr698zGCHLnMvC) I fixed it by specifying ```export CORE_PEER_MSPCONFIGPATH=/home/shivam/debut_network/crypto-config/peerOrganizations/org.com/users/Admin@org.com/msp/```

GowriR (Tue, 24 Jul 2018 07:55:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=apMwJCj23XwddKXiN) @adarshsaraf123 channel join fails. channel create works

Niklaskkkk (Tue, 24 Jul 2018 08:19:39 GMT):
Has joined the channel.

Niklaskkkk (Tue, 24 Jul 2018 08:19:56 GMT):

OCIruntime.PNG

Niklaskkkk (Tue, 24 Jul 2018 08:20:28 GMT):
Hi! I hope this is the right place to ask. Can anyone help me with this error message? I receive it when trying to launch first-network in Fabric. Thanks!

adarshsaraf123 (Tue, 24 Jul 2018 08:23:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jSEkG45YKn6T7ELbr) @GowriR I get that. But to debug the error we need to know the exact command that was run.

mahesh.bandkar (Tue, 24 Jul 2018 08:24:13 GMT):
Has joined the channel.

GowriR (Tue, 24 Jul 2018 08:31:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DCno4GFebHf8w8aKZ) @adarshsaraf123 hypledvm@hypledvm-VirtualBox:~/go/src/utilitypoc$ curl -s -X POST http://localhost:4000/channel/join -H "authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MzEwMTg5NzUsInVzZXJuYW1lIjoiYWRtaW4iLCJvcmdOYW1lIjoidXRpbGl0eW9yZyIsImlhdCI6MTUzMTAxNDgzNX0.2Gc3z0xnpZTa0GBCipQn4MOVQkndx2L6-rCd9YdER1c" {"success":true,"message":"Channel joined"}hypledvm@hypledvm-VirtualBox:~/go/src/utilitypoc$

BhavathiReddy (Tue, 24 Jul 2018 08:45:09 GMT):
Has joined the channel.

adarshsaraf123 (Tue, 24 Jul 2018 08:53:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NGtNx2fk9LHSoE9kB) @GowriR The error that you are referring to in the blockchain terminal is just a warning and can therefore be ignored. Not sure why an error is flagged with nodejs while the curl itself returns success. Can you check if the channel join was actually successful?

kosullivan_sita (Tue, 24 Jul 2018 08:56:20 GMT):
Hi - I am playing with the `fabric-samples/fabcar` node sample. When I change the chaincode & redeploy, I get a `timeout expired while starting chaincode` error when I try to *instantiate* the code (the install works fine). I'm pretty sure this is due to a syntax error in the javascript - where in the peer or cli logs can I find the details of this? Running `docker logs cli -f` doesn't output anything, and doing same with the fabric-peer image doesn't output anything useful.

GowriR (Tue, 24 Jul 2018 08:59:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kjjLL6Lpx8Q5XbwmR) @adarshsaraf123 Adarsh, I see that E2E_CONFIGTX_CHANNEL_NAME needs to be set, how do i pass it using the curl?

GowriR (Tue, 24 Jul 2018 08:59:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kjjLL6Lpx8Q5XbwmR) @adarshsaraf123 Adarsh, I see that E2E_CONFIGTX_CHANNEL_NAME needs to be set, how do i pass it using the curl command?

BhavathiReddy (Tue, 24 Jul 2018 10:30:25 GMT):
Is there any place I can find an implementation example of ACL policies used to provide peer level access control?

NicolasHaiduchok (Tue, 24 Jul 2018 10:35:59 GMT):
Has joined the channel.

NicolasHaiduchok (Tue, 24 Jul 2018 10:36:13 GMT):
Hi, guys I have error when run ./byfn.sh after update to 1.2: Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet And in my own project I have: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org2ExampleCom but was in the read set Does anyone know anything about it?

Anshulmittal (Tue, 24 Jul 2018 11:34:01 GMT):
Hi, I had a doubt regarding transaction in fabric if involves multiple operation to update the ledger. If a transaction tries to update two resources in state, if second resource updation fails, then that transaction will not be successful and ledger won't be update. Is my understanding correct on this? Thanks.

adarshsaraf123 (Tue, 24 Jul 2018 11:40:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rTqu8ZeGTpzLqxmGX) @Anshulmittal Yes your understanding is correct. To elaborate further, as far as fabric is concerned, there are no two resources in a transaction. Either a transaction succeeds or it fails. It could fail for whatever reason, like the failure of the second resource update but the resource per se is not visible to fabric. Fabric only sees state changes.

Anshulmittal (Tue, 24 Jul 2018 11:45:08 GMT):
thanks @adarshsaraf123

abityildiz (Tue, 24 Jul 2018 11:56:34 GMT):
hi all, my participant is BOUND PARTICIPANT NOT FOUND in the network.what shell i do now?

RohitChourasiya (Tue, 24 Jul 2018 11:59:01 GMT):
how to get old state of ledger when we start the network again .

pankajcheema (Tue, 24 Jul 2018 12:04:07 GMT):
Hi Experts does any one know how to customize default policies of hyperledger fabric in ACL

pankajcheema (Tue, 24 Jul 2018 12:04:07 GMT):
Hi Experts, does any one know how to customize default policies of hyperledger fabric in ACL

pankajcheema (Tue, 24 Jul 2018 12:04:28 GMT):
I look into the documentation

pankajcheema (Tue, 24 Jul 2018 12:04:41 GMT):
but i think its complicated to understand

pankajcheema (Tue, 24 Jul 2018 12:04:50 GMT):
any other sources for that

Unicow (Tue, 24 Jul 2018 12:51:39 GMT):
Hi everyone! I have a question regarding channels. Could you please explain to me who participates in a channel? Is it an organization (with all its peers) ? Is it a number of peers from an organization? Can it be both? For example, let's say I want to create a network with 4 organizations each one has 2 peers. Also, - Is it possible to create a channel between org1Peer0 <--> org2Peer0? - Is it possible to create a channel betweem org1Peer1 <--> org2Peer1? The question more or less is if in a channel all the peers from the orgs that participate in the channel should be in the channel.. Thank you!

fabiomolinar (Tue, 24 Jul 2018 13:35:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r7Tdyv9oYJLXGqFHd) @Unicow Take a look at this diagram @Unicow, it may help you understand it: https://hyperledger-fabric.readthedocs.io/en/release-1.2/_images/network.diagram.1_1.png Image from: https://hyperledger-fabric.readthedocs.io/en/release-1.2/network/network.html I am new to HLF, so I can't answer with 100% confidence, but I am quite sure Fabric is quite elastic when it comes to who can participate in a chain. That includes peers from many orgs as well as some peers from different orgs.

fabiomolinar (Tue, 24 Jul 2018 13:35:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r7Tdyv9oYJLXGqFHd) @Unicow Take a look at this diagram, it may help you understand it: https://hyperledger-fabric.readthedocs.io/en/release-1.2/_images/network.diagram.1_1.png Image from: https://hyperledger-fabric.readthedocs.io/en/release-1.2/network/network.html I am new to HLF, so I can't answer with 100% confidence, but I am quite sure Fabric is quite elastic when it comes to who can participate in a chain. That includes peers from many orgs as well as some peers from different orgs.

Niklaskkkk (Tue, 24 Jul 2018 13:48:07 GMT):

dockermissing.PNG

Niklaskkkk (Tue, 24 Jul 2018 13:48:57 GMT):
I get this message when I try to pull from: http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries

Niklaskkkk (Tue, 24 Jul 2018 13:49:05 GMT):
Anyone can help me understand this?

Niklaskkkk (Tue, 24 Jul 2018 13:49:24 GMT):
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

laurensdegilde (Tue, 24 Jul 2018 14:31:23 GMT):
Has joined the channel.

pragadeeshdharsha (Tue, 24 Jul 2018 14:31:55 GMT):
Does the peers in the organisation directly commit the data into the ledger if it is received from the orderer? Or does the peer recheck it with other peers that that message received from the orderer is same for all of them and then commit it to the ledger?

laurensdegilde (Tue, 24 Jul 2018 14:32:24 GMT):
Hi Guys, i am new to this chat so excuse me if my question is not well formulated. Is their a possibility to manuelly enable java chaincode when using hyperledger fabric images with version 1.2.0? If yes, is their some sort of documention to view the steps needed to be taken to enable java chaincode?

colassg (Tue, 24 Jul 2018 14:43:38 GMT):
Has joined the channel.

corykacal (Tue, 24 Jul 2018 15:06:25 GMT):
@laurensdegilde as of 1.2 only go and node.js are fully supported chaincode languages. https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode.html

edevil (Tue, 24 Jul 2018 15:41:27 GMT):
@corykacal Is there any advantage between those two?

Mchainofblock (Tue, 24 Jul 2018 15:54:28 GMT):
Has joined the channel.

Mchainofblock (Tue, 24 Jul 2018 15:56:36 GMT):
Hi! does anybody have an estimate about power consumption of Hyperledger Fabric? (Even if it is compared with bitcoin that would be fine) Thanks

Russ.corsha (Tue, 24 Jul 2018 16:44:47 GMT):
Has joined the channel.

Russ.corsha (Tue, 24 Jul 2018 16:45:07 GMT):
Anyone run into this? ```Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet\n```

Russ.corsha (Tue, 24 Jul 2018 16:45:07 GMT):
Anyone run into this on delploy? ```Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet\n```

Russ.corsha (Tue, 24 Jul 2018 17:23:43 GMT):
It seems @NicolasHaiduchok also ran into this problem. I am on Fabric 1.1 however

Russ.corsha (Tue, 24 Jul 2018 17:48:11 GMT):
although nothing changed, The error message changed. ``` Attaching to fabriccli\n\u001b[36mfabriccli |\u001b[0m Error: failed to create deliver client: orderer client failed to connect to orderer2nd-redacted:7150: failed to create new connection: context deadline exceeded ```

pgarneau (Tue, 24 Jul 2018 17:49:20 GMT):
if you docker ps, is your orderer running when this happens?

rmorbach (Tue, 24 Jul 2018 18:30:38 GMT):
Has joined the channel.

Russ.corsha (Tue, 24 Jul 2018 18:33:27 GMT):
@NicolasHaiduchok Fixed it, and its a rough one. Boto's newest release was breaking some of my aws connections. Pin boto to an older version and get back to work :sweat_smile:

rmorbach (Tue, 24 Jul 2018 18:43:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CcKbE9ZGPeMutYDoM) @Ishan The following code worked for me: `let event_hub = channel.newChannelEventHub('localhost:7051')` and, in line 129 or 130, change to `console.log('The transaction has been committed on peer ' + event_hub.getPeerAddr());`

vieiramanoel (Tue, 24 Jul 2018 19:06:08 GMT):
people, can you help me with adding a new org?

vieiramanoel (Tue, 24 Jul 2018 19:06:55 GMT):
when I try to add a new org, all the things goes well, but at the end there's this error in orderer's log

vieiramanoel (Tue, 24 Jul 2018 19:07:29 GMT):
```Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ org1.Writers org2.Writers ] ```

vieiramanoel (Tue, 24 Jul 2018 19:08:41 GMT):
the operations are done from a participant org cli

adarshsaraf123 (Tue, 24 Jul 2018 19:11:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bXCAX7x2qT7eXghBb) @pragadeeshdharsha The peers directly commit the data into the ledger. In fabric, the orderer is trusted by all the participants and is the "source of truth" for the network.

manish-sethi (Tue, 24 Jul 2018 19:22:39 GMT):
It seems that you dropped one db and not the other... for instance, you may have dropped the statedb but not the historydb before starting the peer. Can you drop both statedb and historydb and try again?

manish-sethi (Tue, 24 Jul 2018 19:23:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmNiWwSLsmatpr8BQ) @nelaturuk It seems that you dropped one db and not the other... for instance, you may have dropped the statedb but not the historydb before starting the peer. Can you drop both statedb and historydb and try again?

corykacal (Tue, 24 Jul 2018 19:59:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fDBZ9LSYNjaTELivh) @edevil Not sure. But go was first to be supported so maybe its faster for chaincode. I've seen @yacovm recommend go, so I would bet on that.

vieiramanoel (Tue, 24 Jul 2018 20:00:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NkJoh4AQ4WTP8ajLX) sometimes the error that I got is ```2018-07-24 19:59:25.312 UTC [policies] func1 -> DEBU 8a9 Evaluation Failed: Only 1 policies were satisfied, but needed 2 of [ org1.Admins org2.Admins ] ```

StefanRehm (Tue, 24 Jul 2018 20:41:39 GMT):
Has joined the channel.

Typhxd (Wed, 25 Jul 2018 03:49:54 GMT):
Has joined the channel.

Typhxd (Wed, 25 Jul 2018 03:50:17 GMT):
I am trying to follow the step of the v1.2.0 tutorial of build-your-first-network and when i execute

Typhxd (Wed, 25 Jul 2018 03:51:34 GMT):
I am trying to follow the step of the v1.2.0 tutorial of build-your-first-network and when i execute ``` `` ```

Typhxd (Wed, 25 Jul 2018 03:53:44 GMT):
I am trying to follow the step of the v1.2.0 tutorial of build-your-first-network and when i execute ``` peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'```,I get an error:`Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload: ...`,the orderer container print: ```Error reading from 172.18.0.7:36630: rpc error: code = Canceled desc = context cancele```

Typhxd (Wed, 25 Jul 2018 03:54:32 GMT):
Can anyone please help me with this ?

atomixxx (Wed, 25 Jul 2018 03:55:56 GMT):
Has joined the channel.

ZacharyTang (Wed, 25 Jul 2018 03:59:42 GMT):
Has joined the channel.

rajanashutosh (Wed, 25 Jul 2018 04:45:16 GMT):
Hi all, Is there any way of installing chaincode in all the peers belonging to the org in single shot or we need to manually enter and install in all.

rajanashutosh (Wed, 25 Jul 2018 04:48:59 GMT):
Architecture is docker swarm to create a multi VM environment, and nodes are deployed into different machines. Container names are no longer supported as i used docker stack deploy command

Aparajita (Wed, 25 Jul 2018 05:32:10 GMT):
Has joined the channel.

ManjulaSridhar (Wed, 25 Jul 2018 05:36:59 GMT):
Has joined the channel.

juhigupta (Wed, 25 Jul 2018 06:16:59 GMT):
Has joined the channel.

juhigupta (Wed, 25 Jul 2018 06:18:20 GMT):
hi, is there a reason to prefer olang over nodejs for chaincode implementation? i am more comfortable with Nodejs language, but my application has major performance requireemnts, would Nodejs be right choice for chaincode?

pankajcheema (Wed, 25 Jul 2018 06:32:03 GMT):
Hi Experts ,Anybody knows what this warning want to say in fabric 1.2 ```2018-07-25 12:00:29.655 IST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-07-25 12:00:29.655 IST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the orderer group in configtx.yaml 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 004 Default policy emission is deprecated, please include policy specificiations for the orderer org group OrdererOrg in configtx.yaml 2018-07-25 12:00:29.668 IST [msp] getMspConfig -> INFO 005 Loading NodeOUs 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 006 Default policy emission is deprecated, please include policy specificiations for the orderer org group Org1MSP in configtx.yaml 2018-07-25 12:00:29.668 IST [msp] getMspConfig -> INFO 007 Loading NodeOUs 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 008 Default policy emission is deprecated, please include policy specificiations for the orderer org group Org2MSP in configtx.yaml ```

pankajcheema (Wed, 25 Jul 2018 06:32:03 GMT):
Hi Experts , Anybody knows what this warning want to say in fabric 1.2 at the time of channel creation```2018-07-25 12:00:29.655 IST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-07-25 12:00:29.655 IST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the orderer group in configtx.yaml 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 004 Default policy emission is deprecated, please include policy specificiations for the orderer org group OrdererOrg in configtx.yaml 2018-07-25 12:00:29.668 IST [msp] getMspConfig -> INFO 005 Loading NodeOUs 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 006 Default policy emission is deprecated, please include policy specificiations for the orderer org group Org1MSP in configtx.yaml 2018-07-25 12:00:29.668 IST [msp] getMspConfig -> INFO 007 Loading NodeOUs 2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 008 Default policy emission is deprecated, please include policy specificiations for the orderer org group Org2MSP in configtx.yaml ```

pankajcheema (Wed, 25 Jul 2018 06:32:58 GMT):
`2018-07-25 12:00:29.668 IST [common/tools/configtxgen/encoder] NewOrdererGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the orderer group in configtx.yaml`

pankajcheema (Wed, 25 Jul 2018 06:33:27 GMT):
@yacovm @jyellick

pankajcheema (Wed, 25 Jul 2018 06:34:15 GMT):
Do we need to add policy manually in 1.2 for orderer ,Org,Application and channel

pankajcheema (Wed, 25 Jul 2018 06:34:35 GMT):
If am wrong,Please correct me

marksta (Wed, 25 Jul 2018 06:39:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x6izNZpTHfTFkh8uT) @rajanashutosh if you use the cli container, you can install/update the chaincode on all nodes at once. (imho)

rajanashutosh (Wed, 25 Jul 2018 07:02:08 GMT):
@marksta thanks, figured it out now. I was thinking like do we need to have seperate CLI for each but got the tutorial.

satyajitdeshmukh (Wed, 25 Jul 2018 07:32:42 GMT):
Has joined the channel.

satyajitdeshmukh (Wed, 25 Jul 2018 07:34:35 GMT):
how can i deploy my .bna file to local hyperledger fabric network..? i tried step 1: composer network install -a dist/airlinev8.bna -c PeerAdmin@hlfv1 step 2 : composer network start -A admin -S adminpw -c PeerAdmin@hlfv1 -f networkadmin.card -n airlinev8 -V 0.0.1 still it gives me this error: composer-rest-server -c PeerAdmin@hlfv1 -n always -w true Discovering types from business network definition ... Connection fails: Error: Error trying to ping. Error: No business network has been specified for this connection It will be retried for the next request. Exception: Error: Error trying to ping. Error: No business network has been specified for this connection Error: Error trying to ping. Error: No business network has been specified for this connection at _checkRuntimeVersions.then.catch (/usr/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:813:34) at Error: No business network has been specified for this connection

josiebhai (Wed, 25 Jul 2018 07:44:57 GMT):
Dear Experts, Im working on a Shipping & Logistics PoC in Hyperledger Fabric v1.2 and I'm using NodeJS for Chaincode and SDK part. I would like to understand the network / channel / Private Data Collection setup . Assume I have `5 Freight Forwarding Organizations` , `3 Liner Organizations` in a network. For any transaction, below organizations will be involved and they will change based on source and destinations of the goods shipped. 1. Freight Forwarder at Source 2. Liner at Source 3. Liner at Destination 4. Freight Forwarder at destination. All transactions should be confidential and should not be visible to other organizations (Even at the *Block level and Couch DB level*). How should I form the network / channel / Private Data Collection for this scenario. 

``` ``` Thanks in advance..

ArijitSen (Wed, 25 Jul 2018 08:14:42 GMT):
Has joined the channel.

sathishNS (Wed, 25 Jul 2018 08:16:52 GMT):
Hi when i downloaded the fabric sample using the below (curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0) i dont see createpeerAdminCard.sh and downloadFabric.sh files how to get those files?

ArijitSen (Wed, 25 Jul 2018 08:17:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jq8wtjyovddHXMTSA) @Niklaskkkk Those files belong to fabric dev server.

ArijitSen (Wed, 25 Jul 2018 08:17:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jq8wtjyovddHXMTSA) @sathishNS Those files belong to fabric dev server

ArijitSen (Wed, 25 Jul 2018 08:17:58 GMT):
@Niklaskkkk That sort of problem is mostly because you might be using proxy in ur system

AbhiramHatolkar (Wed, 25 Jul 2018 08:38:00 GMT):
Hi I would like to know how can I control who participates in my network. I was reading eyfn and node-sdk and I got to know that anyone can create certificates for an org using cryptogen tool and then add that org in our network. But how do I control this supposing that I am the one who should maintain this network.

sathishNS (Wed, 25 Jul 2018 08:41:26 GMT):
@ArijitSen do you have URL to get those files from fabric dev server

sathishNS (Wed, 25 Jul 2018 08:41:27 GMT):
?

sathishNS (Wed, 25 Jul 2018 08:41:33 GMT):
i dont see them in the install docs

pragadeeshdharsha (Wed, 25 Jul 2018 08:54:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vqHEuCmd9TAKo7srr) @adarshsaraf123 @adarshsaraf123 but Hyperledger facric uses PBFT consensus algorithm, so according to that, the peers has to communicate to other peers to find out the actual data right? What if the orderer is compromised?

pragadeeshdharsha (Wed, 25 Jul 2018 08:55:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RLZtf2b5i2mNqFeGq) @AbhiramHatolkar @AbhiramHatolkar check out fabcar example in the fabric-samples folder

adarshsaraf123 (Wed, 25 Jul 2018 08:57:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vDkwGyeKeosy94zXP) @pragadeeshdharsha Currently Fabric uses solo/kafka orderers. PBFT is not yet implemented.

pragadeeshdharsha (Wed, 25 Jul 2018 08:58:51 GMT):
@adarshsaraf123 ok. Can you suggest me any material to know more about solo/ kafka

AbhiramHatolkar (Wed, 25 Jul 2018 09:05:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cDmRJPSxbNjRfneW4) @pragadeeshdharsha I was wondering if it's possible to altogether restrict an organization from participating in the network. Like I want to decide if org3 should participate in the network or not

pragadeeshdharsha (Wed, 25 Jul 2018 09:11:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9AKk8qtjvFSyauEM2) @AbhiramHatolkar @AbhiramHatolkar then while creating the crypto files don't add the organisation

vncvishh (Wed, 25 Jul 2018 09:12:44 GMT):
Has joined the channel.

pankajcheema (Wed, 25 Jul 2018 09:19:24 GMT):
Hi Experts

pankajcheema (Wed, 25 Jul 2018 09:19:26 GMT):
https://stackoverflow.com/questions/51515097/hyperledger-fabric-performance-issue-with-couchdb

pankajcheema (Wed, 25 Jul 2018 09:19:35 GMT):
Please look into this issue if you have some spare time

ArijitSen (Wed, 25 Jul 2018 09:25:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mZJ4D6ckcr9b3RcvQ) @sathishNS git clone https://github.com/hyperledger/composer-tools.git

ArijitSen (Wed, 25 Jul 2018 09:26:10 GMT):
Download it it has fabric-dev-server in its packages directory.

ArijitSen (Wed, 25 Jul 2018 09:38:26 GMT):
Guys can anyone suggest some good blockchain based web applications tutorials based on Fabric and NodeJS only.

ArijitSen (Wed, 25 Jul 2018 09:39:04 GMT):
I am getting most of the web application based tutorials on composer only.

smallant (Wed, 25 Jul 2018 09:52:47 GMT):
docker: Error response from daemon: pull access denied for hyperledger/fabric-buildenv, repository does not exist or may require 'docker login'. is anyone else having problems when runnning the make on fabric?

PankajYadav (Wed, 25 Jul 2018 09:54:33 GMT):
Has joined the channel.

PankajYadav (Wed, 25 Jul 2018 09:54:36 GMT):
Hi, I've setup https://github.com/hyperledger/fabric and make peer. Now I need to start the peer. I run the command ./build/bin/peer node start --peer-chaincodedev. but it was fail to run. I get the error :: 2018-07-25 15:22:49.661 IST [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "

ArijitSen (Wed, 25 Jul 2018 09:56:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c6wLG5XzBXheQQ5kq) @smallant That is mostly caused due to post-installation steps of docker has been incorrect. Check this out: https://docs.docker.com/install/linux/linux-postinstall/

ArijitSen (Wed, 25 Jul 2018 09:58:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ghc2z3dNTMhW8SgvG) @PankajYadav Have you correctly created the crypto-config files ?

sathishNS (Wed, 25 Jul 2018 10:11:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZHeKgPFJRzsGNGu9X) @ArijitSen Thanks @ArijitSen

ArijitSen (Wed, 25 Jul 2018 10:12:54 GMT):
Happy to help @sathishNS

kulbirgr8 (Wed, 25 Jul 2018 10:30:08 GMT):
Has joined the channel.

sathishNS (Wed, 25 Jul 2018 10:47:27 GMT):
@ArijitSen i confused because i dont see this steps in the hyperledger docs and wondering :(

sathishNS (Wed, 25 Jul 2018 11:01:21 GMT):
@ArijitSen still getting confused here...

sathishNS (Wed, 25 Jul 2018 11:01:36 GMT):
in the docs mentioned to download platform specific binaries, use this curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0

sathishNS (Wed, 25 Jul 2018 11:02:10 GMT):
it will get me fabric images for ca, orderer etc....

sathishNS (Wed, 25 Jul 2018 11:02:34 GMT):
the ./downloadFabric.sh also gives me the same fabric images

sathishNS (Wed, 25 Jul 2018 11:02:58 GMT):
what is the difference here

sathishNS (Wed, 25 Jul 2018 11:02:58 GMT):
?

ajmeraharsh (Wed, 25 Jul 2018 11:04:28 GMT):
@sathishNS platform specific binaries means `fabric-ca` which is different from `docker images for ca, orderer` the command `curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0` is a combination of both

ajmeraharsh (Wed, 25 Jul 2018 11:04:28 GMT):
@sathishNS platform specific binaries means `fabric-ca` which is different from `docker images for peer, orderer` the command `curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0` is a combination of both

silliman (Wed, 25 Jul 2018 11:53:08 GMT):
Has left the channel.

goelmayank (Wed, 25 Jul 2018 12:12:25 GMT):
Hi, I followed this tutorial successfully to install two peers of the same organisation in different computers: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f Now, I want to expand it to have two organisations with two or peers on each on different computers. Any idea as to how to proceed

jle-quel (Wed, 25 Jul 2018 13:06:14 GMT):
Hi guys, does anyone of you has successfully query the chaincode with the sdk and tls enabled?

laurensdegilde (Wed, 25 Jul 2018 13:35:21 GMT):
Hi guys, I am currently breaking down how data is actually saved on the ledger. Chaincode has functions like getState and putState to modify key values in the world state DB. My question is, is their actually any data stored in a proposal transaction which is endorsed by the peer and send back to the client to be propegated to the peers for validation? With actuall data i mean: price of certain type of shoe etc? Just practical data related to the use case of the blockchain, or is this data only stored via key values in the world state data base and are the transactions only an historical ledger of when which key was updated?

laurensdegilde (Wed, 25 Jul 2018 13:35:54 GMT):
Send back to the orderer to be propegated to the peers for validation*?

StefanKosc (Wed, 25 Jul 2018 14:07:32 GMT):
Hi guys, I am investigating how identities work in fabric-ca sample and I have some doubts. in setup-fabric.sh function `registerPeerIdentities` in line 75 users are registered for all peer orgs and when switching to user identity using function `switchToUserIdentity` from env.sh line 263 I see `FABRIC_CA_CLIENT_HOME=/etc/hyperledger/fabric/orgs/$ORG/user`. My question is how user data got there? What distinguished them during registration from admin so they are exactly in that directory? Thanks in advance

riccardopersiani (Wed, 25 Jul 2018 14:20:59 GMT):
Hello, i have a very simple question. Is possible from a *Peer1* to invoke a function of a chaincode installed on a *Peer0*?

riccardopersiani (Wed, 25 Jul 2018 14:21:27 GMT):
Without having the same chaincode installed on the *Peer1*

laurensdegilde (Wed, 25 Jul 2018 14:21:38 GMT):
Yes if they are in the same channel

riccardopersiani (Wed, 25 Jul 2018 14:21:47 GMT):
Ok ty

riccardopersiani (Wed, 25 Jul 2018 14:22:02 GMT):
Does make sense

laurensdegilde (Wed, 25 Jul 2018 14:22:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ffpyufnshvKk8i8Yv) Actually, that is what came in my mind first say. Can some one verify this?

laurensdegilde (Wed, 25 Jul 2018 14:22:51 GMT):
Still learning learning learning hyperledger

shyammishra (Wed, 25 Jul 2018 14:42:31 GMT):
Hi All, still going through readthedoc and have a doubt while adding Org3 to a channel (http://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html) Here in manual process, it is written to have create a CLI environment and work over it. at a stage it generate config.json. But documentation says that this config.json file will be at "fabric-samples/first-network/" !!! HOW? as we are working into new container then why it will generate the configuration on main system?

jakereps (Wed, 25 Jul 2018 15:25:58 GMT):
Has joined the channel.

atomixxx (Wed, 25 Jul 2018 15:44:11 GMT):
Hi, What is the component name for user chaincode? For example cscc for config, lscc for lifecycle...

riccardopersiani (Wed, 25 Jul 2018 16:15:25 GMT):
Hello, does anyone knows if the chaincode name must be unique in a channel or in a network? What happens if I have more chaincode with the same name?

arjun-raghavan-00 (Wed, 25 Jul 2018 17:09:15 GMT):
Has joined the channel.

jvsclp (Wed, 25 Jul 2018 17:36:09 GMT):
Has joined the channel.

jvsclp (Wed, 25 Jul 2018 17:36:32 GMT):
fabric-ca-server

jvsclp (Wed, 25 Jul 2018 17:38:00 GMT):
whoops that was supposed to go in search

aatkddny (Wed, 25 Jul 2018 17:49:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rERAPx4uAsSAuMmCq) @riccardopersiani Chaincode and version needs to be unique in a channel afaik. Multiple copies of the same chaincode work in multiple channels.

kgeorgiou (Wed, 25 Jul 2018 18:44:33 GMT):
Has joined the channel.

h4b1 (Wed, 25 Jul 2018 19:42:03 GMT):
Has joined the channel.

h4b1 (Wed, 25 Jul 2018 19:43:10 GMT):
hello I have a question, I want to connect the hyperledger to an external IP, how do I do it?

cmarsh940 (Wed, 25 Jul 2018 19:51:40 GMT):
Has joined the channel.

PaulStuart (Wed, 25 Jul 2018 19:55:02 GMT):
Has joined the channel.

bourbonkidQ (Wed, 25 Jul 2018 20:14:00 GMT):
Hello , i would like to use the service discovery command line interface. I try with the container hyperledger/fabric-tools:1.2.0 but the command is not found ... In which container is this command available? Thnaks

bourbonkidQ (Wed, 25 Jul 2018 20:14:00 GMT):
Hello , i would like to use the service discovery command line interface. I try with the container hyperledger/fabric-tools:1.2.0 but the command is not found ... In which container is this command available? Thanks

yacovm (Wed, 25 Jul 2018 20:17:42 GMT):
@bourbonkidQ you need to download the binary

yacovm (Wed, 25 Jul 2018 20:17:44 GMT):
I think

yacovm (Wed, 25 Jul 2018 20:18:07 GMT):
https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/

yacovm (Wed, 25 Jul 2018 20:18:15 GMT):
what OS are you using?

bourbonkidQ (Wed, 25 Jul 2018 20:18:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7yRkLZrqGbPQhxafZ) @yacovm I can't do that, i can only use docker

pgarneau (Wed, 25 Jul 2018 20:18:46 GMT):
If you run `make release`, it should download all the binaries and be in there for versio . 1.2

pgarneau (Wed, 25 Jul 2018 20:18:46 GMT):
If you run `make release`, it should download all the binaries and be in there for version 1.2

yacovm (Wed, 25 Jul 2018 20:18:53 GMT):
you can just `docker cp` into the container then

bourbonkidQ (Wed, 25 Jul 2018 20:20:41 GMT):
But fabric-tools:1.2.0 does not offer the features of the 1.2.0 release? It's very surprising ...

yacovm (Wed, 25 Jul 2018 20:21:30 GMT):
@cbf ^

yacovm (Wed, 25 Jul 2018 20:21:39 GMT):
what is the right resolution?

bourbonkidQ (Wed, 25 Jul 2018 20:22:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vG5t9JRttXCpYHat7) @yacovm i can't download the binairies, proxy limit of my company

yacovm (Wed, 25 Jul 2018 20:22:35 GMT):
can you build it from source?

yacovm (Wed, 25 Jul 2018 20:22:55 GMT):
git clone the repo https://github.com/hyperledger/fabric and do `make discover`

bourbonkidQ (Wed, 25 Jul 2018 20:25:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tmPwBR8eCRzKeGpM6) @yacovm git and mirror of git are not allow, all hyperledger components must be included in containers. Are there any containers that offer this? (I'am thinking on ibmblockchain/ docker repo)

bourbonkidQ (Wed, 25 Jul 2018 20:27:58 GMT):
I know this is not very convenient :joy:

yacovm (Wed, 25 Jul 2018 20:29:52 GMT):
no... it's not in the tools container

bourbonkidQ (Wed, 25 Jul 2018 20:35:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Pcu8Yp4LNKmNq47jQ) @yacovm :sob: Did you know if it's can be proposed in the next release ? And how can I ask for that ?

the_andrewswu (Wed, 25 Jul 2018 20:41:24 GMT):
Has joined the channel.

the_andrewswu (Wed, 25 Jul 2018 20:41:49 GMT):
hey guys , does anyone know how to query the ledger with a transaction id, i mean i can only list or get by a defined key, and search by a range of it am i missing something?

yacovm (Wed, 25 Jul 2018 20:42:28 GMT):
I'll ask for you.... maybe we can do something about it

yacovm (Wed, 25 Jul 2018 20:42:28 GMT):
I'll ask for you.... maybe we can do something about it @bourbonkidQ

the_andrewswu (Wed, 25 Jul 2018 20:42:50 GMT):
oh nice thx

yacovm (Wed, 25 Jul 2018 20:42:58 GMT):
no i meant @bourbonkidQ

yacovm (Wed, 25 Jul 2018 20:45:16 GMT):
https://chat.hyperledger.org/channel/fabric-maintainers?msg=kcHfbBXLFvhNAPj7G

yacovm (Wed, 25 Jul 2018 20:49:40 GMT):
@bourbonkidQ https://jira.hyperledger.org/browse/FAB-11316

bourbonkidQ (Wed, 25 Jul 2018 20:52:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6xHQQy7FBR9kDZAZL) @yacovm thanks you

pragadeeshdharsha (Thu, 26 Jul 2018 02:08:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WCavBWXnmoWiLCmRh) @the_andrewswu @the_andrewswu if the transaction id is your key then you can directly use getstate(). If transactions id is a part of the value then use rich queries to pull out the required data

kesavants (Thu, 26 Jul 2018 02:19:07 GMT):
Any one knows how to decode the ouput generated by system chaincode getdepspec using this using peer chaincode query -C "" -n lscc -c '{"Args":["getdepspec", "",""]}'

krishnamvv (Thu, 26 Jul 2018 02:57:53 GMT):
Has joined the channel.

zhoutong.zht (Thu, 26 Jul 2018 03:22:36 GMT):
Has joined the channel.

shu22203 (Thu, 26 Jul 2018 05:35:55 GMT):
Has joined the channel.

shu22203 (Thu, 26 Jul 2018 05:51:45 GMT):
Hi! I tried to see world state values by using RocksDB CLI Tool. (https://github.com/facebook/rocksdb/wiki/Administration-and-Data-Access-Tool) I tried to read the `stateLeveldb` directory, but I got only channel name key as below. `historyLeveldb` and `chains/index` directory are also the same. ``` $ ./ldb --db=./stateLeveldb scan channel1 : channel1 : channel1 : channel1 : ``` How do I read the WS value?

StefanKosc (Thu, 26 Jul 2018 06:49:08 GMT):
Hi, why do I have to switch `FABRIC_CA_CLIENT_HOME` everytime before enrolling new identity?

1234 (Thu, 26 Jul 2018 07:24:47 GMT):
@smallant can you run this command sudo dockerd

GowriR (Thu, 26 Jul 2018 07:25:02 GMT):
Hi all, I am trying to run the nodejs sample app with a few changes in the network - i have 2 orgs instead of 4 (https://github.com/PacktPublishing/Handson-Blockchain-Development-with-Hyperledger). The *peer channel create *REST API works and passes successfully. The *peer channel join* with the same JWT token fails with the error *" | 2018-07-08 10:05:09.588 UTC [cauthdsl] func2 -> DEBU 152 0xc42000e140 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected UtilityOrdererMSP, got ConsumerOrgMSP)" *and *"WARN 178 [channel: utilitychannel] Client authorization revoked for deliver request from 172.18.0.1:37676: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied"*. Any pointer would be great

mostafa.elsayyad (Thu, 26 Jul 2018 07:49:43 GMT):
Has joined the channel.

mostafa.elsayyad (Thu, 26 Jul 2018 07:50:52 GMT):
Hello guys, If I update in chaincode which reflects in ledger .. does it erases all existing data like the composer does? thanks in advance

eidand (Thu, 26 Jul 2018 09:32:07 GMT):
i have an asset that I issued an update against so now on my ledger, when using composer playground, I can see the AddAsset and UpdateAsset transactions. Let's say my asset has the unique id of 111. Using the REST api generated by composer-rest-server, how do I get the list of all historian transactions of type UpdateAsset related to item 111?

eidand (Thu, 26 Jul 2018 09:32:07 GMT):
i have an asset that I issued an update against so now on my ledger, when using composer playground, I can see the AddAsset and UpdateAsset transactions. Let's say my asset has the unique id of 111. Using the REST api generated by composer-rest-server, how do I get the list of all historian transactions of type UpdateAsset related to item 111?

eidand (Thu, 26 Jul 2018 09:32:58 GMT):
I can see how to create queries and make them appear in my rest api, but not sure how to pass the id of the item I am interested in

eidand (Thu, 26 Jul 2018 09:36:15 GMT):
that would give me the audit trail for that particular asset, which is exactly what I need

eidand (Thu, 26 Jul 2018 09:37:04 GMT):
i need both the list of historian records, and also the content of the exchange so I can see exactly how my asset us changing with each transaction

eidand (Thu, 26 Jul 2018 09:37:04 GMT):
i need both the list of historian records, and also the complete content of each record so I can see exactly how my asset us changing with each transaction.

eidand (Thu, 26 Jul 2018 09:37:04 GMT):
i need both the list of historian records, and also the complete content of each record so I can see exactly how my asset is changing with each transaction.

sathishNS (Thu, 26 Jul 2018 09:51:39 GMT):
Hi``` i have enabled the authentication while generating the REST server in composer ```

sathishNS (Thu, 26 Jul 2018 09:51:51 GMT):
how to disable that option?

sathishNS (Thu, 26 Jul 2018 10:22:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x9ygvu3eESGBeCHJ2) i have restarted the REST server and changed the option to NO. Thanks

smallant (Thu, 26 Jul 2018 10:28:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cNMgGjzWCGHvytRRX) @1234 no

hbenbella (Thu, 26 Jul 2018 11:53:37 GMT):
Has joined the channel.

hbenbella (Thu, 26 Jul 2018 11:53:59 GMT):
Hi Guys, Hope everything is fine, do you have any recommendation on the sizing needed for containers running HLF nodes for DEV/TST workloads? Thank you!

1234 (Thu, 26 Jul 2018 12:01:50 GMT):
@smallant try this command sudo dockerd

smallant (Thu, 26 Jul 2018 12:04:12 GMT):
need to install it first

smallant (Thu, 26 Jul 2018 12:07:31 GMT):
i'm running my local docker in a mac

smallant (Thu, 26 Jul 2018 12:07:41 GMT):
i think it makes a difference for the dockerd

Unicow (Thu, 26 Jul 2018 12:44:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y5YA8e9nWkepKoH5a) @fabiomolinar Thank you, the diagram is not very detailed, at least the explanation. I would like sb to elaborate more on that if you know

eidand (Thu, 26 Jul 2018 12:58:37 GMT):
think of a channel as a private ledger between a number of organisations

eidand (Thu, 26 Jul 2018 12:59:41 GMT):
a channel is created between organisations, then each org decides how many peers they want to join on the channel, it could 1, 2 or anything else. However, since each peer has a cope of the same ledger, you could say that unless you have another reason, there is no point joining more than one peer

eidand (Thu, 26 Jul 2018 12:59:41 GMT):
a channel is created between organisations, then each org decides how many peers they want to join on the channel, it could be 1, 2 or anything else. However, since each peer has a copy of the same ledger, you could say that unless you have another reason, there is no point joining more than one peer, for any given org

eidand (Thu, 26 Jul 2018 13:00:33 GMT):
so, bottom line, a channel is not created between peers ... I hope that's clear

eidand (Thu, 26 Jul 2018 13:01:13 GMT):
peers join or leave a channel at will, as long as an org has joined a channel, they can do whatever they want with their peers

eidand (Thu, 26 Jul 2018 13:06:02 GMT):
one organisation can join multiple channels and have the same peers or different one, they could have a different peer for each separate channel. Imagine a world with 3 orgs . Org1, 2 and 3. There is a channel to which Org1 and 2 have joined. They can both have peers, build apis, etc, but Org 3 does not have access to that ledger. Org3 might be joined on another channel with Org2 to which Org1 has no access. It's a way of separating things quite nicely.

guilhermesimoes (Thu, 26 Jul 2018 13:35:52 GMT):
Hi everyone. Can anyone point me out to how to enable the network in is separate machines? Any tutorial that explains how to configure two organisations is separate computers?

vindng (Thu, 26 Jul 2018 13:48:31 GMT):
Has joined the channel.

vindng (Thu, 26 Jul 2018 13:50:42 GMT):
hello everyone! I am trying to create a Fabric network used by three organizations. The organizations docker machines start properly however the orderer machine does not start ... if I run the command docker-compose ps I see the following error orderer.efiles-network.com orderer Exit 2

vindng (Thu, 26 Jul 2018 13:51:00 GMT):
any help on how to solve this will be greatly appreciated!

vindng (Thu, 26 Jul 2018 13:51:02 GMT):
thanks in advance!

yoko (Thu, 26 Jul 2018 15:43:39 GMT):
hi when trying to start fabric i am getting the following error ``` ➜ fabric-dev-servers sh startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Creating network "composer_default" with the default driver Creating couchdb ... done Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up ... 2018-07-26 15:42:36.104 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-07-26 15:42:36.104 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-07-26 15:42:36.105 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } 2018-07-26 15:42:37.107 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } 2018-07-26 15:42:38.814 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded ```

yoko (Thu, 26 Jul 2018 15:43:39 GMT):
hi when trying to start fabric i am getting the following error. any help would be appreciated ``` ➜ fabric-dev-servers sh startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Creating network "composer_default" with the default driver Creating couchdb ... done Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up ... 2018-07-26 15:42:36.104 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-07-26 15:42:36.104 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-07-26 15:42:36.105 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } 2018-07-26 15:42:37.107 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } 2018-07-26 15:42:38.814 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.25.0.5:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 } Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded ```

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 -- peer log -- 2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050] --orderer log -- 2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 -- peer log -- 2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050] --orderer log -- `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 -- peer log -- 2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050] --orderer log -- `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 -- peer log -- 2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050] --orderer log -- ``2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate`` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- 2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050] --orderer log -- ``2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate`` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` --orderer log -- ``2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate`` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: ```` peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem ``` ` But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` --orderer log -- ``2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate`` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` --orderer log -- ``2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate`` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` -- peer log -- ``` `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` ``` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` ``` -- peer log -- ``` `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` ``` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` ``` -- peer log -- ``` `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` ``` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Should I use the "old" certificate or channel-artifacts ? But what I am suppose to do with ? Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperlink version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` ``` -- peer log -- ``` `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` ``` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Should I use the old certificate or old channel-artifacts ? But what I am suppose to do with ? Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

bourbonkidQ (Thu, 26 Jul 2018 15:49:22 GMT):
Hello everyone, I need help to test the complete renewal of the certificates (ie the peers, the orderer, the ca etc ...), in the case for example of an expiration of CA certificates. It is essential, also that I keep the data of the ledger. I'm using hyperledger version 1.2.0, all my components are launched from a docker-compose on a single machine. My current configuration is as follows: - 1 orderer (with kafka and zookeeper) - 1 peer - 1 couchdb - 1 CA - 1 cli (fabric-tools that interact with the blockchain) - 1 chaincode - 1 channel: mychannel - 1 organization That's what I tried: - Stop and delete containers: ca, couchdb, peer, orderer, cli - Move current certificates and channel-artifacts into a .old folder - Recreate new certificates with cryptogen - Recreate channel-artifacts (newgenesis.block and newchannel.tx) with configtxgen I then restart the containers that I stopped. So, the orderer reboots with newgenesis.block. Since the cli, I join the peer on mychannel. It works well. Since the cli, I do: `peer channel update -c mychannel -f newchannel.tx -o myorderer -tls true -cafile tlsca.prj.company.com-cert.pem` But I get the following errors --cli log-- ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` ``` -- peer log -- ``` `2018-07-26 15:36:39.483 UTC [ConnProducer] NewConnection -> ERRO 2b0 Failed connecting to orderer0.prj.company.com:7050 , error: context deadline exceeded 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> DEBU 2b1 Connected to 2018-07-26 15:36:39.483 UTC [deliveryClient] connect -> ERRO 2b2 Failed obtaining connection: Could not connect to any of the endpoints: [orderer0.prj.company.com:7050]` ``` --orderer log -- ``` `2018-07-26 15:35:59.651 UTC [orderer/common/broadcast] Handle -> WARN 4b8 [channel: mychannel] Rejecting broadcast of config message from 172.20.0.12:59718 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 2018-07-26 15:35:59.651 UTC [orderer/common/server] func1 -> DEBU 4b9 Closing Broadcast stream 2018-07-26 15:35:59.654 UTC [grpc] Printf -> DEBU 4ba transport: http2Server.HandleStreams failed to read frame: read tcp 172.20.0.7:7050->172.20.0.12:59718: read: connection reset by peer 2018-07-26 15:35:59.654 UTC [common/deliver] Handle -> WARN 4bb Error reading from 172.20.0.12:59716: rpc error: code = Canceled desc = context canceled 2018-07-26 15:35:59.654 UTC [orderer/common/server] func1 -> DEBU 4bc Closing Deliver stream 2018-07-26 15:36:00.481 UTC [grpc] Printf -> DEBU 4bd grpc: Server.Serve failed to complete security handshake from "172.20.0.13:60320": remote error: tls: bad certificate` ``` Should I use the old certificate or old channel-artifacts ? But what I am suppose to do with ? Has anyone ever encountered this problem? What did I forget to do? Thank you for your help

hardik047 (Thu, 26 Jul 2018 19:26:51 GMT):
Has joined the channel.

hardik047 (Thu, 26 Jul 2018 19:27:41 GMT):
I'm trying to connect an orderer on an intranet local network from a computer on the same network where a peer is running. I'm getting this error. Any idea anyone? `deliverBlocks -> WARN c45 [channel: composerchannel] Rejecting deliver request for 192.168.31.162:59504 because of consenter error 2018-07-26 19:16:48.628 UTC [common/deliver] Handle -> DEBU c46 Waiting for new SeekInfo from 192.168.31.162:59504 2018-07-26 19:16:48.628 UTC [common/deliver] Handle -> DEBU c47 Attempting to read seek info message from 192.168.31.162:59 504 2018-07-26 19:16:48.644 UTC [common/deliver] Handle -> WARN c48 Error reading from 192.168.31.162:59504: rpc error: code = Canceled desc = context canceled 2018-07-26 19:16:48.644 UTC [orderer/common/server] func1 -> DEBU c49 Closing Deliver stream`

Russ.corsha (Thu, 26 Jul 2018 21:31:19 GMT):
Hey Guys `timeout expired while executing transaction`` I keep running into timeouts when calling invoke from a client. Is there a simple config change i can do to increase my timeout window?

Russ.corsha (Thu, 26 Jul 2018 21:31:19 GMT):
Hey Guys i keep getting `timeout expired while executing transaction`` I keep running into timeouts when calling invoke from a client. Is there a simple config change i can do to increase my timeout window?

Russ.corsha (Thu, 26 Jul 2018 21:31:19 GMT):
Hey Guys i keep getting `timeout expired while executing transaction`` when calling invoke from a client. Is there a simple config change i can do to increase my timeout window?

AshishKaila (Fri, 27 Jul 2018 01:35:41 GMT):
What is the way to share data across chaincodes?

AshishKaila (Fri, 27 Jul 2018 01:35:59 GMT):
I want to create a chaincode that wants to get data from another chaincode... Possible?

KoushKilla (Fri, 27 Jul 2018 01:44:13 GMT):
u using composer

KoushKilla (Fri, 27 Jul 2018 01:44:18 GMT):
or just fabric?

KoushKilla (Fri, 27 Jul 2018 01:44:21 GMT):
@AshishKaila

AshishKaila (Fri, 27 Jul 2018 01:44:25 GMT):
Currently just using Fabric

AshishKaila (Fri, 27 Jul 2018 01:44:38 GMT):
However I am getting the feeling that using composer may be a better idea

AshishKaila (Fri, 27 Jul 2018 01:44:45 GMT):
Is it stable now or still in beta?

KoushKilla (Fri, 27 Jul 2018 01:45:10 GMT):
I would composer. I tried developing with fabric for a while and it not worth right now. Due to the fact even fabric does not even have that much features finalized

yanghuazai (Fri, 27 Jul 2018 01:45:14 GMT):
Has joined the channel.

KoushKilla (Fri, 27 Jul 2018 01:45:23 GMT):
There is no point in using Fabric.

KoushKilla (Fri, 27 Jul 2018 01:45:30 GMT):
Just Fabric*

AshishKaila (Fri, 27 Jul 2018 01:45:35 GMT):
Also user management is not there in fabric. e.g. if i want to assign roles and assert admin only operations

KoushKilla (Fri, 27 Jul 2018 01:45:43 GMT):
For an example take a look at the consensus algorthims

KoushKilla (Fri, 27 Jul 2018 01:46:00 GMT):
fabric supports single orderer and kafka

AshishKaila (Fri, 27 Jul 2018 01:46:05 GMT):
right

KoushKilla (Fri, 27 Jul 2018 01:46:05 GMT):
not even BFT

KoushKilla (Fri, 27 Jul 2018 01:46:28 GMT):
so why use just fabric, IBM doesnt even reccomend it. LOL and they built the dam thing

AshishKaila (Fri, 27 Jul 2018 01:46:45 GMT):
Didn't know that... I thought they are building new consensus algorithm over that

KoushKilla (Fri, 27 Jul 2018 01:46:46 GMT):
You doing an POC?

AshishKaila (Fri, 27 Jul 2018 01:46:55 GMT):
Yes for a crypto currency :)

KoushKilla (Fri, 27 Jul 2018 01:47:32 GMT):
The thing is composer uses Fabric Runtime. So composer is an tool for fabric, it makes it more developer friendly.

AshishKaila (Fri, 27 Jul 2018 01:48:04 GMT):
How easy was it to learn? I see the DSL is pretty easy... I think it also comes with a REST api

KoushKilla (Fri, 27 Jul 2018 01:48:08 GMT):
so if they built more consensus algrothims composer should be able to handle them

KoushKilla (Fri, 27 Jul 2018 01:48:16 GMT):
It tooks me like 3 weeks

KoushKilla (Fri, 27 Jul 2018 01:48:21 GMT):
the environment sucks duck

AshishKaila (Fri, 27 Jul 2018 01:48:21 GMT):
Dang :)

KoushKilla (Fri, 27 Jul 2018 01:48:30 GMT):
setting it up and shit

AshishKaila (Fri, 27 Jul 2018 01:48:36 GMT):
It took me a month to learn fabric

KoushKilla (Fri, 27 Jul 2018 01:48:44 GMT):
bruh I gave up on doing fabric

KoushKilla (Fri, 27 Jul 2018 01:48:57 GMT):
if u fabric u will have an deep understanding on compsoer

AshishKaila (Fri, 27 Jul 2018 01:49:01 GMT):
Are you able to debug code in composer? I had to do a lot of learning to do that in fabric

KoushKilla (Fri, 27 Jul 2018 01:49:04 GMT):
YES

KoushKilla (Fri, 27 Jul 2018 01:49:16 GMT):
COMPOSER is developer friendly as F

AshishKaila (Fri, 27 Jul 2018 01:49:21 GMT):
hehe cool

AshishKaila (Fri, 27 Jul 2018 01:49:25 GMT):
any links you can share?

AshishKaila (Fri, 27 Jul 2018 01:49:32 GMT):
or docs

KoushKilla (Fri, 27 Jul 2018 01:50:01 GMT):
Yeah. Best tutorial out there https://www.udemy.com/hyperledger/learn/v4/ Im most of ppl

KoushKilla (Fri, 27 Jul 2018 01:50:05 GMT):
here used this

AshishKaila (Fri, 27 Jul 2018 01:50:29 GMT):
Thanks :)

KoushKilla (Fri, 27 Jul 2018 01:50:35 GMT):
no problem bruh

KoushKilla (Fri, 27 Jul 2018 01:51:15 GMT):
GL.

KoushKilla (Fri, 27 Jul 2018 01:51:42 GMT):
take like 2 weeks doing the course and u will be fine. You can skip the fabric part if u already feel comfortable

AshishKaila (Fri, 27 Jul 2018 01:52:11 GMT):
Ya I know Fabric now

AshishKaila (Fri, 27 Jul 2018 01:52:14 GMT):
Did you pay for this thing

KoushKilla (Fri, 27 Jul 2018 01:53:02 GMT):
yeah

KoushKilla (Fri, 27 Jul 2018 01:53:08 GMT):
or you can watch

AshishKaila (Fri, 27 Jul 2018 01:53:17 GMT):
watching is free?

KoushKilla (Fri, 27 Jul 2018 01:54:36 GMT):
Hyperledger Composer Development Tutorial (1/5) - Setup (Mac OS X)

KoushKilla (Fri, 27 Jul 2018 01:54:42 GMT):
and no u need to pay

AshishKaila (Fri, 27 Jul 2018 01:55:08 GMT):
Found it on youtube :)

KoushKilla (Fri, 27 Jul 2018 01:55:11 GMT):
https://www.youtube.com/watch?v=nS_MRqAeEbQ

AshishKaila (Fri, 27 Jul 2018 01:55:11 GMT):
Thanks man

KoushKilla (Fri, 27 Jul 2018 01:55:22 GMT):
its outdated some parts be warned

KoushKilla (Fri, 27 Jul 2018 01:55:38 GMT):
kk ttyl

AshishKaila (Fri, 27 Jul 2018 01:56:08 GMT):
thanks :)

pragadeeshdharsha (Fri, 27 Jul 2018 02:48:54 GMT):
Can anyone explain me what consensus algorithm does Hyperledger fabric use?

smldragon (Fri, 27 Jul 2018 03:13:25 GMT):
Has joined the channel.

smldragon (Fri, 27 Jul 2018 03:14:35 GMT):
Sorry if it is wrong place to post help to run make for fabric project. I successfully clone fabric. In Cygwin64, I am trying to run make dist-clean all, but got following error message: Binary available as .build/bin/discover Building .build/docker/bin/peer can't load package: package github.com/hyperledger/fabric/peer: cannot find pack age "github.com/hyperledger/fabric/peer" in any of: /opt/go/src/github.com/hyperledger/fabric/peer (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/peer (from $GOPATH) make: *** [Makefile:231: .build/docker/bin/peer] Error 1 I am sure I set GOPATH and GOROOT correctly. Any ideas? ``` ```

BhavathiReddy (Fri, 27 Jul 2018 05:39:38 GMT):
Hi,

BhavathiReddy (Fri, 27 Jul 2018 05:42:57 GMT):
While working on PDC, I noticed that members any of the organisations with the Chaincode are able to PutPrivateData and the endorsement policy only works when querying GetPrivateData. Is this the general behaviour? If so, how do I restrict the PutPrivateData function to only a few organisations?

BhavathiReddy (Fri, 27 Jul 2018 05:53:45 GMT):
[ { "name": "userData", "policy": "OR('IDPMSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":0 }, { "name": "userPrivateData", "policy": "OR('CALMMSP.member','BEAMMSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":0 } ]

BhavathiReddy (Fri, 27 Jul 2018 05:54:13 GMT):
This is my collection_config file for the code

choco_coder (Fri, 27 Jul 2018 07:18:21 GMT):
Hi everyone, Can fabric implement financial transactions like Ethereum?

bourbonkidQ (Fri, 27 Jul 2018 08:08:56 GMT):
What is the correct way to update an channel ? Use configtxlator and after use peer channel update ? Or just peer channel update ?

keving (Fri, 27 Jul 2018 09:10:17 GMT):
Has joined the channel.

keving (Fri, 27 Jul 2018 09:11:18 GMT):
Is it possible to point Blockchain Explorer at the sample fabcar network? I'm currently new to the platform and trying to familiarize myself with it.

medhak19 (Fri, 27 Jul 2018 09:20:47 GMT):
Hello all, I have created the hyperledger fabric 1.0 node sdk library which is working perfectly fine with fabric 1.0 network. Recently I have setup a new fabric 1.1 network. The question is: will the old fabric 1.0 node sdk library work as it is with fabric 1.1 network ? Is fabric 1.1 network backward compatible with 1.0 node sdk library ? Thanks and Regards,

medhak19 (Fri, 27 Jul 2018 09:20:47 GMT):
Hello all, I have created the hyperledger fabric 1.0 node sdk library which is working perfectly fine with fabric 1.0 network. Recently I have setup a new fabric 1.1 network. The question is: will the old fabric 1.0 node sdk library work as it is with fabric 1.1 network ? Is fabric 1.1 network backward compatible with 1.0 node sdk library ? Thanks and Regards, Medha.

BhavathiReddy (Fri, 27 Jul 2018 09:30:31 GMT):
How do I define access control levels separately for different functions like Query (qscc), Validation (vscc) and Endorsement (escc). Do I have to put them in different Chaincode files?

bourbonkidQ (Fri, 27 Jul 2018 10:05:08 GMT):
On configtxlator 1.2.0 i have with following error `configtxlator: error: Error decoding: error unmarshaling: proto: bad wiretype for field common.Config.Sequence: got wiretype 2, want 0` when i do `configtxlator proto_decode --input $ORIGINAL_GENESIS_BLOCK --type common.Config`

meherchandan (Fri, 27 Jul 2018 10:16:41 GMT):
Has joined the channel.

meherchandan (Fri, 27 Jul 2018 10:17:43 GMT):
Hi Guys

meherchandan (Fri, 27 Jul 2018 10:18:09 GMT):
Hi Guys``` ```

meherchandan (Fri, 27 Jul 2018 10:19:17 GMT):
Hi Guys.. I am not able to understand the deployment flow for hyperledger fabric with multiple orgs and multiple channel. Can anyone suggest a good resource to learn

thiyagucse01 (Fri, 27 Jul 2018 10:27:26 GMT):
Has joined the channel.

thiyagucse01 (Fri, 27 Jul 2018 10:36:38 GMT):
@meherchandan here you will get clear understanding https://hyperledger-fabric.readthedocs.io/en/release-1.2/

lislunev (Fri, 27 Jul 2018 10:46:11 GMT):
Hello, does Fabric-CA support RSA at the time?

lislunev (Fri, 27 Jul 2018 10:46:30 GMT):
Can in generate RSA keys

lislunev (Fri, 27 Jul 2018 10:46:30 GMT):
Can in generate RSA keys?

SoorajS (Fri, 27 Jul 2018 11:25:19 GMT):
Has joined the channel.

SoorajS (Fri, 27 Jul 2018 11:28:16 GMT):
I am trying to implement a sample buisness network as mentioned in the tutorial(https://www.youtube.com/watch?v=u_FeV7uo90w). But while starting the fabric, i am facing the following error : ./startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing network composer_default Creating network "composer_default" with the default driver Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating couchdb ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f3159ad170dffda21c1024825cedc9a65f4c9a5750f90b23f2409620e4b5079f is not running Things i have done ------------------ * Removed all the docker containers and images. * Did a fresh install of npm and its hyperleger modules(https://hyperledger.github.io/composer/latest/installing/development-tools.html). * Installed the latest images using docker pull from hyperledger docker. Specs ------ composer version - 0.19.2 Hyperledger fabric version - 1.1``` ```

SoorajS (Fri, 27 Jul 2018 11:28:16 GMT):
I am trying to implement a sample business network as mentioned in the tutorial(https://www.youtube.com/watch?v=u_FeV7uo90w). But while starting the fabric, i am facing the following error : ./startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing network composer_default Creating network "composer_default" with the default driver Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating couchdb ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f3159ad170dffda21c1024825cedc9a65f4c9a5750f90b23f2409620e4b5079f is not running Things i have done -------------------------------- * Removed all the docker containers and images. * Did a fresh install of npm and its hyperleger modules(https://hyperledger.github.io/composer/latest/installing/development-tools.html). * Installed the latest images using docker pull from hyperledger docker. Specs -------------- composer version - 0.19.2 Hyperledger fabric version - 1.1``` ```

SoorajS (Fri, 27 Jul 2018 11:28:16 GMT):
I am trying to implement a sample business network as mentioned in the tutorial(https://www.youtube.com/watch?v=u_FeV7uo90w). But while starting the fabric, i am facing the following error : ./startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing network composer_default Creating network "composer_default" with the default driver Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating couchdb ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f3159ad170dffda21c1024825cedc9a65f4c9a5750f90b23f2409620e4b5079f is not running Things i have done -------------------------------- * Removed all the docker containers and images. * Did a fresh install of npm and its hyperleger modules(https://hyperledger.github.io/composer/latest/installing/development-tools.html). * Installed the latest images using docker pull from hyperledger docker. Specs -------------- composer version - 0.19.2 Hyperledger fabric version - 1.1``` ``` Any solution for this guys ???

SoorajS (Fri, 27 Jul 2018 11:28:16 GMT):
I am trying to implement a sample business network as mentioned in the tutorial(https://www.youtube.com/watch?v=u_FeV7uo90w). But while starting the fabric, i am facing the following error : ./startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv11 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing network composer_default Creating network "composer_default" with the default driver Creating orderer.example.com ... done Creating ca.org1.example.com ... done Creating couchdb ... done Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f3159ad170dffda21c1024825cedc9a65f4c9a5750f90b23f2409620e4b5079f is not running Things i have done -------------------------------- * Removed all the docker containers and images. * Did a fresh install of npm and its hyperleger modules(https://hyperledger.github.io/composer/latest/installing/development-tools.html). * Installed the latest images using docker pull from hyperledger docker. Specs -------------- composer version - 0.19.2 Hyperledger fabric version - 1.1``` Any solution for this guys ???

bourbonkidQ (Fri, 27 Jul 2018 11:30:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Sz3LLETJ9t2Dsy8K3) @lislunev only ecdsa

rmishragrep (Fri, 27 Jul 2018 11:34:21 GMT):
Has joined the channel.

ashlinSajan (Fri, 27 Jul 2018 11:42:02 GMT):
have anyone tested hyperledger fabric using jmeter?

rmishragrep (Fri, 27 Jul 2018 12:13:29 GMT):
Hello I have deploy hyper-ledger fabric node on two different AWS instance, how should i configure it so that they sync the data

rmishragrep (Fri, 27 Jul 2018 12:14:26 GMT):
It will be great if any one could share any links through which i do this Thanks!

riccardopersiani (Fri, 27 Jul 2018 12:38:11 GMT):
@aatkddny thank you for your reply.

lislunev (Fri, 27 Jul 2018 12:46:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xpCEa4ST3nvye2sea) @bourbonkidQ Thank you

riccardopersiani (Fri, 27 Jul 2018 13:11:18 GMT):
Is there any example I can find for adding a new peer to the fabcar example?

bourbonkidQ (Fri, 27 Jul 2018 13:19:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kggg3L3XMAspE3Ksx) @riccardopersiani You have to create new certificate for the peer (you case use cryptogen extend), start the peer with the new certificate, make the peer join the channel and install the chaincode

bourbonkidQ (Fri, 27 Jul 2018 13:19:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kggg3L3XMAspE3Ksx) @riccardopersiani You have to create new certificate for the peer (you can use cryptogen extend), start the peer with the new certificate, make the peer join the channel and install the chaincode

aatkddny (Fri, 27 Jul 2018 13:22:21 GMT):
anyone on here able to answer a question vis-a-vis the bmx bc rest api?

yacovm (Fri, 27 Jul 2018 14:00:23 GMT):
@ptippett maybe you can help @aatkddny ?

Anfimov (Fri, 27 Jul 2018 14:02:28 GMT):
Has joined the channel.

Anfimov (Fri, 27 Jul 2018 14:02:32 GMT):
Hello everyone! Can somebody explain how to use Caliper with Fabric and track performance on sample example like fabcar in the tutorial section "Build your first app"?

vagnerasilva (Fri, 27 Jul 2018 14:42:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SgK9epFatQRsiPGdS) @Anfimov Good question!!

vagnerasilva (Fri, 27 Jul 2018 14:42:16 GMT):
Its possible explorer too!

remintz (Fri, 27 Jul 2018 14:46:56 GMT):
Has joined the channel.

aatkddny (Fri, 27 Jul 2018 14:48:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QXxHXPpTckjvNMSvL) @yacovm Actually it's two questions. 1. Does the `/networks/{}/channels/{}/createChannel` api work across BMX enterprise accounts? If so how do I specify the constituent members? The `members` property isn't clear to me. 2. Does the `/networks/{}/chaincode/install` api install on all peers simultaneously? For additional points - I assume I need to run 2 for each account connected to my network before I do a /instantiate on one account. Or does it figure it all out for me?

aatkddny (Fri, 27 Jul 2018 14:48:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QXxHXPpTckjvNMSvL) @yacovm Actually it's two questions. 1. Does the `/networks/{}/channels/{}/createChannel` api work across BMX enterprise accounts? If so how do I specify the constituent members? The `members` property isn't clear to me. 2. Does the `/networks/{}/chaincode/install` api install on all peers simultaneously? For additional points - I assume I need to run the call in Q.2 for each account connected to my network before I do a /instantiate on one account. Or does it figure it all out for me?

hieunmce (Fri, 27 Jul 2018 17:04:36 GMT):
Has joined the channel.

aatkddny (Fri, 27 Jul 2018 17:41:40 GMT):
NM - figured out #1 - You need to use the generated MSPID as the key in the map of members. Since I only stood up a single peer for my test I'll have to wait to try #2.

handaanmol (Fri, 27 Jul 2018 18:16:31 GMT):
Currently to modify the organizations involved in a private transaction, we need to change the collection_config.json and redeploy the chaincode on all peers and instantiate it on the channel. Is there a way where we don't need to redeploy the chaincode on peers as the chaincode remains the same on peers even if policies in collections_config.json file are changed. Please let me know if anyone has any idea

handaanmol (Fri, 27 Jul 2018 18:16:31 GMT):
Currently to modify the organizations involved in a private transaction, we need to change the collection_config.json and redeploy the chaincode on all peers and instantiate it on the channel. Is there a way where we don't need to redeploy the chaincode on the peers as the chaincode remains the same on all the peers even if the policies in collections_config.json file are changed. Please let me know if anyone has any idea.

dave.enyeart (Fri, 27 Jul 2018 18:24:40 GMT):
@handaanmol not currently... there is work underway to improve the chaincode lifecycle such that this would be possible, and other work planned to allow client to determine who gets the private data without requiring these static definitions... hang in there!

MoonWang (Fri, 27 Jul 2018 19:35:43 GMT):
Has joined the channel.

Russ.corsha (Fri, 27 Jul 2018 20:50:15 GMT):
Is there a way in fabric to get peers to load chaincode on startup?

handaanmol (Fri, 27 Jul 2018 20:55:17 GMT):
@Russ.corsha - You can edit the .sh script you are using for the startup to replace the by default "mycc" chaincode with your chaincode.

handaanmol (Fri, 27 Jul 2018 20:55:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5FDghJ3y83x3QPvhw) @dave.enyeart Thanks a lot for the update. I will surely wait for it.

gezzergarcia (Fri, 27 Jul 2018 21:15:34 GMT):
Has joined the channel.

sean (Fri, 27 Jul 2018 21:19:31 GMT):
Has anyone else been getting this error when running `peer channel create`?: `ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""` I'm using configtxgen version 1.2.0, and below is by configtx file. This was working for me in a different example (I think the same version). I'm not sure what happened: ``` configtxgen -outputBlock /data/genesis.block -profile OrgOrdererGenesis \ -channelID dsolosystem configtxgen -outputCreateChannelTx /data/channel.tx -profile OrgChannel \ -channelID dsolo configtxgen -outputAnchorPeersUpdate /data/anchors.tx -profile OrgChannel \ -channelID dsolo -asOrg org1 ``` ``` --- Organizations: - &org1 Name: org1 ID: org1MSP MSPDir: /data/orgs/org1/msp Policies: &Org1Policies Readers: Type: Signature Rule: "OR('org1.peer')" Writers: Type: Signature Rule: "OR('org1.peer')" Admins: Type: Signature Rule: "OR('org1.admin')" AnchorPeers: - Host: 127.0.0.1 Port: 7051 Capabilities: Global: &ChannelCapabilities V1_1: true Orderer: &OrdererCapabilities V1_1: true Application: &ApplicationCapabilities V1_2: true Application: &ApplicationDefaults ACLs: &ACLsDefault lscc/ChaincodeExists: /Channel/Application/Readers lscc/GetDeploymentSpec: /Channel/Application/Readers lscc/GetChaincodeData: /Channel/Application/Readers lscc/GetInstantiatedChaincodes: /Channel/Application/Readers qscc/GetChainInfo: /Channel/Application/Readers qscc/GetBlockByNumber: /Channel/Application/Readers qscc/GetBlockByHash: /Channel/Application/Readers qscc/GetTransactionByID: /Channel/Application/Readers qscc/GetBlockByTxID: /Channel/Application/Readers cscc/GetConfigBlock: /Channel/Application/Readers cscc/GetConfigTree: /Channel/Application/Readers cscc/SimulateConfigTreeUpdate: /Channel/Application/Readers peer/Propose: /Channel/Application/Writers peer/ChaincodeToChaincode: /Channel/Application/Readers event/Block: /Channel/Application/Readers event/FilteredBlock: /Channel/Application/Readers Organizations: Policies: &ApplicationDefaultPolicies Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" Capabilities: <<: *ApplicationCapabilities Orderer: &OrdererDefaults OrdererType: solo Addresses: - 127.0.0.1:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 10 MB PreferredMaxBytes: 512 KB MaxChannels: 0 Kafka: Brokers: - 127.0.0.1:9092 Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" BlockValidation: Type: ImplicitMeta Rule: "ANY Writers" Capabilities: <<: *OrdererCapabilities Channel: &ChannelDefaults Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" Capabilities: <<: *ChannelCapabilities Profiles: OrgOrdererGenesis: <<: *ChannelDefaults Orderer: <<: *OrdererDefaults Organizations: - *org1 Consortiums: DSoloConsortium: Organizations: - *org1 OrgChannel: Consortium: DSoloConsortium Application: <<: *ApplicationDefaults Organizations: - *org1 ```

AshishKaila (Fri, 27 Jul 2018 22:07:13 GMT):
Anyone seeing sourcemap reference breaking composer playground while uploading the bna file?

AshishKaila (Fri, 27 Jul 2018 22:26:54 GMT):
I get an error Syntax error : when the code is generated in playground

AshishKaila (Fri, 27 Jul 2018 22:27:16 GMT):
However if I take out sourcemap comment from my .js file it works fine :(

xhw1 (Fri, 27 Jul 2018 23:35:52 GMT):
Has joined the channel.

rajanashutosh (Sat, 28 Jul 2018 04:42:26 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer:7050: failed to create new connection: context deadline exceeded Kindly please let me what is the root cause of this issue, is this firewall or port on server which stops docker containers to interact or certificate issue or anything else ?

rajanashutosh (Sat, 28 Jul 2018 05:18:27 GMT):
I missed to say its in multi host environment, I tried doing in single server code is working fine

rajanashutosh (Sat, 28 Jul 2018 05:18:46 GMT):
So certificate issue we can ignore i feel.

Alvin455024780 (Sat, 28 Jul 2018 15:37:33 GMT):
how to fix this : Error: Error getting endorser client chaincode: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

Bhound (Sat, 28 Jul 2018 17:22:33 GMT):
Has joined the channel.

Bhound (Sat, 28 Jul 2018 17:22:38 GMT):
Quick questuibs

Bhound (Sat, 28 Jul 2018 17:22:38 GMT):
Quick question

Bhound (Sat, 28 Jul 2018 17:22:55 GMT):
Can multiple organizations be on the same peer

Bhound (Sat, 28 Jul 2018 17:23:12 GMT):
Specifically can member security manage multiple organizations on the same peer

clydedacruz (Sat, 28 Jul 2018 18:29:16 GMT):
java sdk couchdb

clydedacruz (Sat, 28 Jul 2018 18:33:15 GMT):
Hi in the node-sdk The couchdb kay value store extends api.KeyValueStore. any such class in in the java sdk ? OR any guide tto having your own implementation of the client credential store ?

Alvin455024780 (Sun, 29 Jul 2018 02:41:27 GMT):
want some help : failed to create new connection: context deadline exceeded root@561e57073a89:/opt/gopath/src/github.com/hyperledger/fabric/peer# ls channel-artifacts crypto mychannel.block root@561e57073a89:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join -b mychannel.block 2018-07-29 02:25:42.969 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-07-29 02:25:42.969 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-07-29 02:25:43.976 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 192.168.84.151:7051: getsockopt: no route to host"; Reconnecting to {peer0.org1.example.com:7051 } 2018-07-29 02:25:44.977 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 192.168.84.151:7051: getsockopt: no route to host"; Reconnecting to {peer0.org1.example.com:7051 } Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

Alvin455024780 (Sun, 29 Jul 2018 02:42:10 GMT):
I use the solo to publis the peer

pankajcheema (Sun, 29 Jul 2018 08:20:50 GMT):
Does anyone know good tutorial for ACL implementation in fabric 1.2

pankajcheema (Sun, 29 Jul 2018 08:21:15 GMT):
officical documentation doesn't make things clear to me

pankajcheema (Sun, 29 Jul 2018 08:37:48 GMT):
https://stackoverflow.com/questions/51578617/acl-implementation-of-hyperledger-fabric-1-2

pankajcheema (Sun, 29 Jul 2018 08:38:00 GMT):
Here are more details

thomasNeumann (Sun, 29 Jul 2018 19:22:02 GMT):
Has joined the channel.

chenjun-bj (Mon, 30 Jul 2018 02:37:46 GMT):
Has left the channel.

PranavCamelotis (Mon, 30 Jul 2018 02:43:19 GMT):
Has joined the channel.

TrucNguyen (Mon, 30 Jul 2018 03:17:16 GMT):
Has joined the channel.

fabiomolinar (Mon, 30 Jul 2018 03:55:03 GMT):
Quick question, if I would like to see the code and scripts running on the Fabric's docker images, where could I find it?

GowriR (Mon, 30 Jul 2018 07:01:10 GMT):
Hi all, I ran the chaincode on the devmode and ran the test cases too. Now i want to put it on the actual network and want to invoke the chaincode using REST API's. It has a problem finding the chaincode (does it take the binary?). The separate chaincode container is not coming up due to no finding it in the location. Who puts it there and how? Hope I have been clear

GowriR (Mon, 30 Jul 2018 07:21:49 GMT):
Now i have an error deploying chaincode. It is unable to find it. How does the instantitate chaincode happen from the REST API? Should I build it and give the executable ? If so, how (i know the process in the dev mode, but not in the actual network - the chaincode docker container is automatically being create here and it is unable to)? eer0.utilityorg.demandresponse.com | 2018-07-28 07:45:16.803 UTC [chaincode-platform] func1 -> ERRO 99e Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/utilityWorkflow/accessControlUtils.go:23:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of: peer0.utilityorg.demandresponse.com | /opt/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) peer0.utilityorg.demandresponse.com | /chaincode/input/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH) peer0.utilityorg.demandresponse.com | /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/lib/cid peer0.utilityorg.demandresponse.com | chaincode/input/src/github.com/utilityWorkflow/accessControlUtils.go:22:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: And not sure where it is taking this from and trying to create it. U 994 start-could not find image (container id ), because of ...attempt to recreate image Thanks

bourbonkidQ (Mon, 30 Jul 2018 09:38:51 GMT):
peer channel fetch config not working on 1.2.0 if i do `peer channel fetch config /artifacts/channel-artifacts/config_block.pb -o $ORDERER -c $CHANNEL_ID --tls --cafile $ORDERER_TLC_CA_FILE` i got this error `Error: flag needs an argument: --cafile `

bourbonkidQ (Mon, 30 Jul 2018 09:56:28 GMT):
Hello, when i try to do a peer channel update i got this following error `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/OrdererOrg/MSP not satisfied: signature set did not satisfy policy ` I don't understand that because I use signconfigtx with the MSP of peer admin and orderer admin

bourbonkidQ (Mon, 30 Jul 2018 09:56:28 GMT):
Hello, when i try to do a peer channel update i got this following error ```` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/OrdererOrg/MSP not satisfied: signature set did not satisfy policy ``` ` I don't understand that because I use signconfigtx with the MSP of peer admin and orderer admin

bourbonkidQ (Mon, 30 Jul 2018 09:56:28 GMT):
Hello, when i try to do a peer channel update i got this following error ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/OrdererOrg/MSP not satisfied: signature set did not satisfy policy` ``` I don't understand that because I use signconfigtx with the MSP of peer admin and orderer admin

1234 (Mon, 30 Jul 2018 10:00:24 GMT):
@bourbonkidQ I think you didtnt give msp config path

1234 (Mon, 30 Jul 2018 10:03:55 GMT):
Can you plz add few line in your command CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/org1.example.com/users/Admin@org1.example.com/tls/ca.crt

1234 (Mon, 30 Jul 2018 10:08:19 GMT):
And one more thing if enabled tls in your compose file, add last three lines else don't add last three line's

knagware9 (Mon, 30 Jul 2018 11:35:57 GMT):
Hi , fabric 1.2 balance transfer example getting this error..please help https://pastebin.com/5c41rc8u error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadline [2018-07-30 15:21:55.939] [ERROR] Create-Channel - Error: Failed to connect before the deadline

knagware9 (Mon, 30 Jul 2018 11:36:11 GMT):
I think its related to https://jira.hyperledger.org/browse/FABJ-32 2018-07-30 09:52:02.670 UTC [grpc] Printf -> DEBU 0bd grpc: Server.Serve failed to complete security handshake from "172.20.0.1:37610": EOF

safvan.kothawala (Mon, 30 Jul 2018 11:44:26 GMT):
Has joined the channel.

bourbonkidQ (Mon, 30 Jul 2018 11:46:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=REgvuBEruniSxb3pD) @1234 This line are present 1) in my docker-compose file 2) on my script who call the request

bourbonkidQ (Mon, 30 Jul 2018 11:51:57 GMT):
And in the log i can see that it's the correct MSP who get load

bourbonkidQ (Mon, 30 Jul 2018 12:05:34 GMT):
my channel update is intended to renew the certificates completely. If I dot the signconfigtx with old admin certificate and new admin certificate I have an another error ``` `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: unexpected missing policy for item [Group] /Channel ` ```

lislunev (Mon, 30 Jul 2018 12:38:29 GMT):
Hello, I want to create fabric network with two channels can I use one orderer for this network?

bh4rtp (Mon, 30 Jul 2018 12:43:35 GMT):
hi, is there an example to demonstrate a fabric network with multiple channels?

thiyagucse01 (Mon, 30 Jul 2018 12:59:07 GMT):
Hi , after restart my laptop fabric peers are showing exited status, how do I make it restart , am using `docker run CONTAINER_ID`, `docker start CONTAINER_ID` but always shows exited status , anyone help me to solve the same

lislunev (Mon, 30 Jul 2018 13:55:34 GMT):
@bh4rtp I think, you can use this one https://www.skcript.com/svr/setting-hyperledger-fabric-network-multiple-chaincodes-channels/

laurensdegilde (Mon, 30 Jul 2018 14:55:17 GMT):
Hi All, stumbled upon a question i cant seem to find the answer to. In hyperlegder fabric and other blockchain platforms you can query system chaincode to get a specific transaction by its ID. But I cant seem to find any functionality, not specific to hyperledger fabric but also to other platforms like Ethereum, to query the blockchain and find a specific piece of DATA that is stored on it?

laurensdegilde (Mon, 30 Jul 2018 14:56:13 GMT):
Why hasn't some one implemented this and are there any reason for not doing so? I can imagine that their are a lot of use cases in which you want to query the blockchian looking to valide a piece of data that is stored on the blockchain.

laurensdegilde (Mon, 30 Jul 2018 14:56:58 GMT):
You have the world state ofcourse in hyperledger fabric but currently i am working on a use case that has no practicalle way of using the world state since the process is so complicated that a key-value store is not enough to keep track of the needed information.

laurensdegilde (Mon, 30 Jul 2018 14:57:09 GMT):
Hope someone is able to clarify this!

pgarneau (Mon, 30 Jul 2018 15:14:18 GMT):
``` peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' ``` This is in the Build Your First Network tutorial. You can definitely query your ledger on specific keys / indexes. With the addition of couchDB, you can do even more advance queries with various DB indexes

pgarneau (Mon, 30 Jul 2018 15:14:18 GMT):
``` peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' ``` This is in the Build Your First Network tutorial. You can definitely query your ledger on specific keys / indexes. With the addition of couchDB, you can do even more advance queries with various DB indexes

pgarneau (Mon, 30 Jul 2018 15:14:18 GMT):
@laurensdegilde ``` peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' ``` This is in the Build Your First Network tutorial. You can definitely query your ledger on specific keys / indexes. With the addition of couchDB, you can do even more advance queries with various DB indexes

laurensdegilde (Mon, 30 Jul 2018 15:16:18 GMT):
I get that, but this is querying the world state db, which is not the actuall ledger

laurensdegilde (Mon, 30 Jul 2018 15:16:45 GMT):
Since invoking chaincode also saves the arguments of the function in its payload

laurensdegilde (Mon, 30 Jul 2018 15:17:02 GMT):
And thus it is saved in the transaction on the ledger

laurensdegilde (Mon, 30 Jul 2018 15:17:13 GMT):
I am looking for a function to query the ledger

pgarneau (Mon, 30 Jul 2018 15:17:14 GMT):
So you're looking to query your ledger without going through the chaincode?

laurensdegilde (Mon, 30 Jul 2018 15:17:17 GMT):
Not the world state db

pgarneau (Mon, 30 Jul 2018 15:17:32 GMT):
I mean the ledger is that distributed DB

laurensdegilde (Mon, 30 Jul 2018 15:18:01 GMT):
Yes because the use case that I am working on has a very sophisticated business logic that storing data with key values and looking only at those key values is impossible

pgarneau (Mon, 30 Jul 2018 15:18:19 GMT):
Then go for couchDB

laurensdegilde (Mon, 30 Jul 2018 15:18:42 GMT):
CouchDB is still key value store

pgarneau (Mon, 30 Jul 2018 15:18:57 GMT):
It's a NoSQL DB

laurensdegilde (Mon, 30 Jul 2018 15:19:16 GMT):
And in addition, since it is a layer on top of the ledger, you lose the fact that it is impossible to immute

BhushanNewalkar (Mon, 30 Jul 2018 16:26:31 GMT):
Has joined the channel.

varnitgoyal (Mon, 30 Jul 2018 16:44:09 GMT):
Has joined the channel.

varnitgoyal (Mon, 30 Jul 2018 16:44:50 GMT):
hey this error is messing my head since 3 days error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadline (node:32321) UnhandledPromiseRejectionWarning: Error: Failed to connect before the deadline at checkState (/home/varnit/hyperledger-property-network/property-network/node_modules/grpc/src/client.js:838:16) (node:32321) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6) (node:32321)

varnitgoyal (Mon, 30 Jul 2018 16:45:29 GMT):
this has occurred in invoke.js in node js sdk

varnitgoyal (Mon, 30 Jul 2018 16:45:42 GMT):
please help me its so important

varnitgoyal (Mon, 30 Jul 2018 16:46:16 GMT):
i can post logs and code if you want

bourbonkidQ (Mon, 30 Jul 2018 17:16:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g5oiXoCcAeoe3ds77) @varnitgoyal Are you sure you're orderer is running correctly ? Check the log of the orderer

varnitgoyal (Mon, 30 Jul 2018 17:18:14 GMT):
yes my orderer is running without any issues

varnitgoyal (Mon, 30 Jul 2018 17:18:33 GMT):
i'm able to invoke transactions from cli container without any issue

varnitgoyal (Mon, 30 Jul 2018 17:18:50 GMT):
and i found nothing wrong in orderer logs

varnitgoyal (Mon, 30 Jul 2018 17:19:04 GMT):
thanks for quick response @bourbonkidQ

bourbonkidQ (Mon, 30 Jul 2018 17:21:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t72ir9kpgstdFpowc) @varnitgoyal soo on the network configuration file (config.json ?) of the sdk, the certificate and key are correct ?

Russ.corsha (Mon, 30 Jul 2018 17:21:14 GMT):
@laurensdegilde CouchDB is not a key value store, also check out composite keys. they add very interesting and powerful searching for the default key value store

varnitgoyal (Mon, 30 Jul 2018 17:21:44 GMT):
yes they are good

varnitgoyal (Mon, 30 Jul 2018 17:22:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hpHid8xEv28T9x7BG) @bourbonkidQ i can say that because if i change the certificate then it gives me error like ssl handshake fails which means the certificates are good

jrosmith (Mon, 30 Jul 2018 17:24:23 GMT):
@laurensdegilde there are protections in place against couchDB being manually changed. its just a representation of the current world state of the ledger. peer configuration supports access of full history of the ledger (like the life cycle of a transaction after it has been removed from the world state)

bourbonkidQ (Mon, 30 Jul 2018 17:25:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M6qdi7KrjDkvN3252) @varnitgoyal you're node sdk is running on a docker container ?

varnitgoyal (Mon, 30 Jul 2018 17:25:37 GMT):
no its not on docker container

varnitgoyal (Mon, 30 Jul 2018 17:26:58 GMT):

invoke.js.zip

bourbonkidQ (Mon, 30 Jul 2018 17:30:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vioNRHjoQ7cbmMqPd) @varnitgoyal can i see you're docker-compose ? specialy the peer

varnitgoyal (Mon, 30 Jul 2018 17:30:48 GMT):
sure

varnitgoyal (Mon, 30 Jul 2018 17:31:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6BaNd4Z5sRfKByYdN) @bourbonkidQ https://github.com/varnitgoyal95/hyperledger-property-network/tree/master/property-network

bourbonkidQ (Mon, 30 Jul 2018 17:36:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EpJcuGAxkNcpebjsW) @varnitgoyal could you test with : rename orderer.genesis.block on genesis.block

varnitgoyal (Mon, 30 Jul 2018 17:38:06 GMT):
wait

bourbonkidQ (Mon, 30 Jul 2018 17:38:15 GMT):
and add the peer tls/ca.crt on the ORDERER_GENERAL_TLS_ROOTCAS

varnitgoyal (Mon, 30 Jul 2018 17:54:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FJeQoHxcvbco4vLqp) @bourbonkidQ hey @bourbonkidQ one quick question in tlsca folder there is one pem file and one private key

varnitgoyal (Mon, 30 Jul 2018 17:54:31 GMT):
and for orderer we have .crt file

varnitgoyal (Mon, 30 Jul 2018 17:54:35 GMT):
which file to include

varnitgoyal (Mon, 30 Jul 2018 18:06:44 GMT):

orderer.logs.zip

varnitgoyal (Mon, 30 Jul 2018 18:07:15 GMT):
i did what you said but still the same results i have uploaded my order logs can you please inspect it and let me know

bourbonkidQ (Mon, 30 Jul 2018 18:07:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=stbXMY3KTMfSBF9Aq) @varnitgoyal Keep the /var/hyperledger/orderer/tls/ca.crt and just add the path to peerOrganizations/{org}.{domain}/peers/peer0.{org}.{domain}/tls/ca.crt

varnitgoyal (Mon, 30 Jul 2018 18:12:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DxoHgt5KNsSGQ25vS) @bourbonkidQ the logs i have uploaded is after adding ca crt for the organization i'm concerned with and with multiple attempts to invoke transactions using node js sdk

varnitgoyal (Mon, 30 Jul 2018 18:39:08 GMT):
anyone ?

bourbonkidQ (Mon, 30 Jul 2018 18:45:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dBGzEXmiFZ4y6vfiZ) @varnitgoyal :cold_sweat: sorry I don't understand why the orderer `DEBU 1ed 0xc4201401f8 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected advocate, got gda)` ... I look the configtx.yaml and gda looks like they can do invoke

bourbonkidQ (Mon, 30 Jul 2018 18:46:59 GMT):
Maybe try to do invoke with advocate admin msp on the sdk. I don't know else

varnitgoyal (Mon, 30 Jul 2018 18:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GKpGArG8KrHammQSR) @bourbonkidQ since now i inserted the ca certificate of all organizations in my docker compose file i think it tries to brute force every organization and finally settle to gda

varnitgoyal (Mon, 30 Jul 2018 18:51:54 GMT):
if you look at logs below it got 2018-07-30 18:20:21.647 UTC [msp] SatisfiesPrincipal -> DEBU 1ff Checking if identity satisfies MEMBER role for gda 2018-07-30 18:20:21.647 UTC [msp] Validate -> DEBU 200 MSP gda validating identity 2018-07-30 18:20:21.648 UTC [msp] getCertificationChain -> DEBU 201 MSP gda getting certification chain 2018-07-30 18:20:21.648 UTC [cauthdsl] func2 -> DEBU 202 0xc42018c260 principal matched by identity 0

mattkr (Mon, 30 Jul 2018 18:54:14 GMT):
Has joined the channel.

mattkr (Mon, 30 Jul 2018 18:54:21 GMT):
hello, I am a first time contributor. Any recommendations on a pending issue in #fabric for me to work on?

rajasushanth (Mon, 30 Jul 2018 19:22:10 GMT):
Hi guys, I need to add external go package in my chaincode.go, documentation has suggested to use 'govendor'. But should I install in CLI because I'm using it to install my chaincode which is giving me compilation error, also how to achieve it? A sample would help me a-lot. Thanks !

handaanmol (Mon, 30 Jul 2018 19:46:42 GMT):
I am running fabric 1.2 and upon running the chaincode invoke operations, it shows status 200 but when I run the query, the results are not modified. What can be the issue? My chain is up from 3 days and was working fine before the weekend.

djlazz3 (Mon, 30 Jul 2018 21:30:25 GMT):
Has joined the channel.

devcomb (Mon, 30 Jul 2018 22:43:37 GMT):
Has joined the channel.

devcomb (Mon, 30 Jul 2018 22:43:41 GMT):
Hello all. Working through the example right now https://github.com/hyperledger/fabric-samples/tree/master/fabcar . I wanted to check the logs of orderer when doing an invoke but don't see any update to the logs. I issue the command `docker logs -f orderer.example.com` . I can see changes with `docker logs -f ca.example.com` adding users per the documentation http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html .

devcomb (Mon, 30 Jul 2018 22:43:41 GMT):
Hello all. Working through the example right now https://github.com/hyperledger/fabric-samples/tree/master/fabcar . I wanted to check the logs of orderer when doing an `node invoke.js` but don't see any update to the logs. I issue the command `docker logs -f orderer.example.com` . I can see changes with `docker logs -f ca.example.com` adding users per the documentation http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html .

devcomb (Mon, 30 Jul 2018 22:44:52 GMT):
Do I have to make orderer more verbose?

Specia1 (Tue, 31 Jul 2018 02:19:22 GMT):
Has joined the channel.

kesavants (Tue, 31 Jul 2018 02:52:48 GMT):
lscc

knagware9 (Tue, 31 Jul 2018 05:12:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a7Yf25aGSncoTL67R) @varnitgoyal Hey Varnit ,,I am also getting same issue @bourbonkidQ ..I am also facing this issue since last 3 days

varnitgoyal (Tue, 31 Jul 2018 05:21:31 GMT):
Ya anyone please it's really important

varnitgoyal (Tue, 31 Jul 2018 05:21:57 GMT):
I have also tried downgrading fabric sdk version but same issue

1234 (Tue, 31 Jul 2018 05:39:00 GMT):
@bourbonkidQ kk done

nithindj192 (Tue, 31 Jul 2018 06:01:52 GMT):
Has anyone tried the adding a new organization through a node program??

vineetmishra (Tue, 31 Jul 2018 06:05:50 GMT):
Hi Guys , i have a quick question "if a add new org in running channel will it able to see history for chain code transactions because we reinstall chaincode with upgraded version.

varnitgoyal (Tue, 31 Jul 2018 06:47:09 GMT):
Hi guys please help

varnitgoyal (Tue, 31 Jul 2018 06:47:13 GMT):
Anyone

varnitgoyal (Tue, 31 Jul 2018 06:47:40 GMT):
@bourbonkidQ ?

varnitgoyal (Tue, 31 Jul 2018 06:47:44 GMT):
Any success

gatakka (Tue, 31 Jul 2018 06:54:46 GMT):
@varnitgoyal yes, if new ORG is added to a channel, it will get all blockchain blocks from other orgs, and will recreate same world state. This is the idea of the blockchain, all participants have same copy

gatakka (Tue, 31 Jul 2018 06:55:35 GMT):
if you want to "limit" the access to particular set of data, use private collections. With them, you can put policy who can have this information

VarunVerma (Tue, 31 Jul 2018 07:28:23 GMT):
Has joined the channel.

VarunVerma (Tue, 31 Jul 2018 07:29:22 GMT):
What is actual difference between user and peer ?

ns2808 (Tue, 31 Jul 2018 07:52:52 GMT):
Has joined the channel.

ns2808 (Tue, 31 Jul 2018 07:54:08 GMT):
Hi, I'm having an issue when running the Hyperledger Fabric byfn script (following the Building your First Network tutorial)

ns2808 (Tue, 31 Jul 2018 07:54:39 GMT):
When I enter this in the terminal: "./byfn.sh up"

ns2808 (Tue, 31 Jul 2018 07:55:12 GMT):
I get this type of messages: ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: b'Conflict. The container name "/peer0.org1.example.com" is already in use by container "2602610cf730b6c6339965feed2b5b8b3ce6dcc31b0164f2dd2c506b6be21946". You have to remove (or rename) that container to be able to reuse that name.'

ns2808 (Tue, 31 Jul 2018 07:56:18 GMT):
I can see that the network is trying to create peers twice for some reason. Can you please help?

pmuller (Tue, 31 Jul 2018 08:01:50 GMT):
Has joined the channel.

VarunVerma (Tue, 31 Jul 2018 08:02:50 GMT):
That' s because you have same peer created Use : docker rm -f $(docker ps -aq) This will kill your active container

VarunVerma (Tue, 31 Jul 2018 08:02:50 GMT):
That' s because you have same peer created Use : docker rm -f $(docker ps -aq) This will kill your active container @ns2808

ns2808 (Tue, 31 Jul 2018 08:05:01 GMT):
Thanks! Let me try

ns2808 (Tue, 31 Jul 2018 08:07:18 GMT):
It worked, thank you

pmuller (Tue, 31 Jul 2018 08:12:09 GMT):
Hi all, I'm having trouble connecting my fabric-ca container to my ldap (it is an openldap solution, running on a different container). I have configured my fabric-ca container to communicate with the LDAP. According to docker logs, the CA successfully initialized LDAP client and seems fine. When I execute " fabric-ca-client enroll -u http://LDAPADMIN:LDAPADMINPASSWD@localhost:7054 ", I get the error : Error: Response from server : Error Code : 20 - Authorization failure Can anyone help, or guide me to the correct ressources ? thanks !

pmuller (Tue, 31 Jul 2018 08:12:09 GMT):
Hi all, I'm having trouble connecting my fabric-ca container to my ldap (it is an openldap solution, running on a different container). I have configured my fabric-ca container to communicate with the LDAP. According to docker logs, the CA successfully initialized LDAP client and seems fine. The LDAP contains nothing but an dc=example and cn=admin,dc=example. When I execute " fabric-ca-client enroll -u http://LDAPADMIN:LDAPADMINPASSWD@localhost:7054 ", I get the error : Error: Response from server : Error Code : 20 - Authorization failure Can anyone help, or guide me to the correct ressources ? thanks !

oborovyk (Tue, 31 Jul 2018 08:24:07 GMT):
Has joined the channel.

varnitgoyal (Tue, 31 Jul 2018 08:43:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dzYaEf5oiRgbkbroX) @gatakka thanks for reply @gatakka so what is the solution

gatakka (Tue, 31 Jul 2018 08:52:47 GMT):
solution for what?

gatakka (Tue, 31 Jul 2018 08:54:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Cdd38jHu5Y368SHTK) @varnitgoyal Usae private collections if you want some of the data not to be visible for some ORGs

lieuzhenghong (Tue, 31 Jul 2018 08:55:29 GMT):
Has joined the channel.

varnitgoyal (Tue, 31 Jul 2018 08:57:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wyY9rxNAfCTY3taix) @gatakka the error of fabric sdk

caseylai (Tue, 31 Jul 2018 08:58:36 GMT):
Has joined the channel.

varnitgoyal (Tue, 31 Jul 2018 08:58:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kZWuNhBjFnvNBXhxW) hey this error is messing my head since 3 days error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadline (node:32321) UnhandledPromiseRejectionWarning: Error: Failed to connect before the deadline at checkState (/home/varnit/hyperledger-property-network/property-network/node_modules/grpc/src/client.js:838:16) (node:32321) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6) (node:32321)

varnitgoyal (Tue, 31 Jul 2018 08:59:08 GMT):
this is the error i'm talking about

caseylai (Tue, 31 Jul 2018 09:07:47 GMT):
Hi, guys. I'm testing the fabric network on multiple physical machines. But when I set the endorsement to "AND('Org1MSP.member', 'Org2MSP')", the chaincode transaction will fail for "VSCCValidateTx for transaction txId = 5c951558bc5c9512606efe6849c863409fff3e9f54d4931cf9ad8c5e22c0ce76 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy". I've been blocked by this for nearly 2 weeks. Tried to update fabric v1.1 to v1.2, but it doesn't work.

huangliping (Tue, 31 Jul 2018 09:16:12 GMT):
Hi there, in fabric configtx.yaml config file, there is a property BatchTimeout with default value 2s, the comment is "# Batch Timeout: The amount of time to wait before creating a batch." what's the exact mean of this property? waiting 2s then generate the block, or the original timeout meaning?

lieuzhenghong (Tue, 31 Jul 2018 09:22:02 GMT):
hi all --- just a quick and stupid question --- does anyone know where the blockchain is *actually* stored? is it a binary file or something?

caseylai (Tue, 31 Jul 2018 09:22:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jMpGWFWJFMF9cxxfd) @handaanmol @handaanmol We may have the same problem, have you solved it?

huangliping (Tue, 31 Jul 2018 09:23:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lbe9Ph5utbfJv6JPo) @lieu 3 the blockchain will packaged to the docker image, with the blockchain executable

lieuzhenghong (Tue, 31 Jul 2018 09:24:26 GMT):
@huangliping is there a way to pull out the DLT and inspect it instead of writing chaincode query?

lieuzhenghong (Tue, 31 Jul 2018 09:25:29 GMT):
if there is some sort of `blockchain.dlt` file i would like to open it and see what it is like inside

huangliping (Tue, 31 Jul 2018 09:26:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sbkdHAJz7WoKwZsG5) @lieu 3 I tried to inspect the docker image, but I can get nothing except the normal docker info, there is no useful fabric info in the inspect outputs

lieuzhenghong (Tue, 31 Jul 2018 09:28:24 GMT):
that's too bad. hope that someone else will be able to know a way to inspect the DLT. thanks @huangliping

huangliping (Tue, 31 Jul 2018 09:30:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vbsoTX8hCoQYnDHZE) @lieu 3 welcome, but in general, the blockchain executable file are built from golang sources,

lieuzhenghong (Tue, 31 Jul 2018 09:32:30 GMT):
@huangliping Hyperledger fabric documentation: ``` Physically, the blockchain is always implemented as a file, in contrast to the world state, which uses a database. This is a sensible design choice as the blockchain data structure is heavily biased towards a very small set of simple operations. Appending to the end of the blockchain is the primary operation, and query is currently a relatively infrequent operation. ```

akshay.lawange (Tue, 31 Jul 2018 09:32:59 GMT):
Hi, I have a quick question about network-config.yaml. Can we create one network-config.yaml for multiple channels? I tried creating one for two channels did not work out. Does anyone have idea?

lieuzhenghong (Tue, 31 Jul 2018 09:34:00 GMT):
if the blockchain is implemented as a file, then 估計 there should be a way to get this file...

huangliping (Tue, 31 Jul 2018 09:35:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LxLoaWy4rSWnHHmWv) @akshay.lawange do you mean crypto-config.yaml?

huangliping (Tue, 31 Jul 2018 09:36:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CKtmM2dAFdPBSbiQa) Can someone help me?

lieuzhenghong (Tue, 31 Jul 2018 09:38:03 GMT):
@huangliping should be the former, orderer waits 2s before packaging up everything into one block

GowriR (Tue, 31 Jul 2018 09:39:33 GMT):
Hi all, need some help - through the nodejs sdk sample program, I am trying to instantiate chaincode. While trying to build it, it tries to reach a cloudfare address and reports TLS handshake timeout. Pasting the error below. peer0.carrierorg.trade.com | 2018-07-28 11:12:33.170 UTC [chaincode] Launch -> ERRO 03d start failed: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/83/83b7b016c8e5810b27626f7ba7cc7d7abb7465a0567184fe06c117c4755e84b0/data?verify=1533032558-jgXhAFfo3ANwTAw%2FM0LChEMti5c%3D: net/http: TLS handshake timeout peer0.carrierorg.trade.com | error starting container peer0.carrierorg.trade.com | error starting container peer0.carrierorg.trade.com | 2018-07-28 11:12:33.170 UTC [endorser] SimulateProposal -> ERRO 03e [tradechannel][e26308f4] failed to invoke chaincode name:"lscc" , error: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/83/83b7b016c8e5810b27626f7ba7cc7d7abb7465a0567184fe06c117c4755e84b0/data?verify=1533032558-jgXhAFfo3ANwTAw%2FM0LChEMti5c%3D: net/http: TLS handshake timeout peer0.carrierorg.trade.com | error starting container

GowriR (Tue, 31 Jul 2018 09:39:38 GMT):
some more

GowriR (Tue, 31 Jul 2018 09:39:41 GMT):
eer0.carrierorg.trade.com | 2018-07-28 11:10:28.254 UTC [golang-platform] GenerateDockerBuild -> INFO 039 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"' peer0.carrierorg.trade.com | 2018-07-28 11:10:28.254 UTC [golang-platform] GenerateDockerBuild -> INFO 03a building chaincode with tags: peer0.importerorg.trade.com | 2018-07-28 11:12:33.119 UTC [dockercontroller] deployImage -> ERRO 042 Error building images: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/83/83b7b016c8e5810b27626f7ba7cc7d7abb7465a0567184fe06c117c4755e84b0/data?verify=1533032558-jgXhAFfo3ANwTAw%2FM0LChEMti5c%3D: net/http: TLS handshake timeout peer0.importerorg.trade.com | 2018-07-28 11:12:33.119 UTC [dockercontroller] deployImage -> ERRO 043 Image Output: peer0.importerorg.trade.com | ********************

pmuller (Tue, 31 Jul 2018 09:39:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aX5pFnHB38T2SWvur) up

huangliping (Tue, 31 Jul 2018 09:40:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DmccTnrpv58zBFBBr) @lieuzhenghong Thanks, we will have a try, but update this config really take more times

huangliping (Tue, 31 Jul 2018 09:40:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DmccTnrpv58zBFBBr) @lieuzhenghong Thanks, we will have a try, but update this config really take more time

GowriR (Tue, 31 Jul 2018 09:41:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qNgcJH64koxoDPWud) It is a sample app, and my network is working well too

huangliping (Tue, 31 Jul 2018 09:43:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WA5rGeXyumwsdA3ff) @GowriR seems the network connection problem, you can cleanup your local docker images and retry

1234 (Tue, 31 Jul 2018 09:46:12 GMT):
hi experts , I got error a fetch mychannel.block using peer bash Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

GowriR (Tue, 31 Jul 2018 09:47:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tZgMaBbHmRStD5Syj) @huangliping You mean download the docker images again? I am using the same that i downloaded ages back

akshay.lawange (Tue, 31 Jul 2018 09:58:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LvyTBxbNCwFCi9jyq) @huangliping @huangliping no, network-config.yaml. It is there in the balance transfer example. fabric-sample/balance-transfer/artifacts/network-config.yaml

akshay.lawange (Tue, 31 Jul 2018 10:00:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LvyTBxbNCwFCi9jyq) @huangliping it is used for defining network-config for an application.

PrashantKhatri21 (Tue, 31 Jul 2018 10:04:38 GMT):
Hi , I am getting below error

PrashantKhatri21 (Tue, 31 Jul 2018 10:04:43 GMT):
https://lh3.googleusercontent.com/-0NEyctFlxQQ/W2A0E7VajMI/AAAAAAAAA50/9_CAiO5Y5aky_AKQ4e_HcUONUQGLcMIxQCL0BGAYYCw/h850/8998937854481343504%253Faccount_id%253D7

PrashantKhatri21 (Tue, 31 Jul 2018 10:05:48 GMT):

8998937854481343504.jpg

PrashantKhatri21 (Tue, 31 Jul 2018 10:06:13 GMT):
Phantom_Read_Conflict

PrashantKhatri21 (Tue, 31 Jul 2018 10:10:40 GMT):
I am using hyperledger composer .

huangliping (Tue, 31 Jul 2018 10:58:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2xX9rqqzEmN65bwkj) yes, verified, just like your said, thanks.

KyNguyen (Tue, 31 Jul 2018 11:21:48 GMT):
Has joined the channel.

KyNguyen (Tue, 31 Jul 2018 11:22:11 GMT):
Hi guys, I'm new in Hyperledger chaincode to build application and I saw that there is two way to build application by coding manual in Go and some prefer SDK and another one is using Hyperledger-composer. Can anybody explain which is difference between them and which is the best choice to build Hyperledger application?

gatakka (Tue, 31 Jul 2018 11:29:50 GMT):
@KyNguyen Fabric is build with the intention to use SDK and build the chaincode using Go,Java or nodejs. This gives you the ability to use every feature of Fabric. Composer is a "framework" that "simplify" some of the complexity of fabric, but the price that you pay is not to have access to all the features (at this point in time). So, composer will help you to create a PoC very fast, but if you want to use something specific, you will not be able to (at this point in time)

knagware9 (Tue, 31 Jul 2018 12:47:43 GMT):
@varnitgoyal -- Below is coming due to node version (please use node 8.9.0) and use fabric-client/fabric-ca-client 1.2.0 version in package.json file ..error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadline (node:32321) UnhandledPromiseRejectionWarning: Error: Failed to connect before the deadline

knagware9 (Tue, 31 Jul 2018 12:47:58 GMT):
today able to run with fabric 1.2.0 :)

Igor-Ivaniuk (Tue, 31 Jul 2018 13:23:12 GMT):
Has joined the channel.

zobie (Tue, 31 Jul 2018 16:08:26 GMT):
Has joined the channel.

mcoblenz (Tue, 31 Jul 2018 16:10:05 GMT):
Any suggestions on how to debug this certificate error attempting to use the Java SDK: Error handling message: event message validation failed: [failed deserializing event creator: [the supplied identity is not valid: x509: certificate signed by unknown authority]]? I've already added ca-cert.pem to the list of trusted certificates on my system.

mcoblenz (Tue, 31 Jul 2018 16:10:20 GMT):
I wonder if it's possible that there's a second relevant certificate that I don't know about.

mcoblenz (Tue, 31 Jul 2018 16:14:27 GMT):
=> #fabric-sdk-java

varnitgoyal (Tue, 31 Jul 2018 16:36:00 GMT):
as suggested by @knagware9 i have changed the versions of node and fabric-sdk but its still not working its the same error

varnitgoyal (Tue, 31 Jul 2018 16:36:23 GMT):
i'm also uploading my client logs if you guys can figure that out

varnitgoyal (Tue, 31 Jul 2018 16:36:39 GMT):

peer-log.zip

varnitgoyal (Tue, 31 Jul 2018 16:37:01 GMT):
this is the logs for peers earlier i have uploader the logs of my orderer

knagware9 (Tue, 31 Jul 2018 16:41:47 GMT):
cxz2 345yu;'

varnitgoyal (Tue, 31 Jul 2018 16:49:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rQkxvHhKcjHTQh6Tn) @knagware9 ?

varnitgoyal (Tue, 31 Jul 2018 16:50:04 GMT):
Successfully received the transaction event error: [Remote.js]: Error: Failed to connect before the deadlineError: The async function encountered an error error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadlineError: The async function encountered an error (node:2246) UnhandledPromiseRejectionWarning: Error: Failed to connect before the deadlineError: The async function encountered an error at checkState (/home/varnit/hyperledger-property-network/property-network/node_modules/grpc/src/client.js:838:16) (node:2246) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6) (node:2246) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

lay-z (Tue, 31 Jul 2018 16:52:11 GMT):
Has joined the channel.

adamk1230 (Tue, 31 Jul 2018 16:52:11 GMT):
Has joined the channel.

lay-z (Tue, 31 Jul 2018 16:52:57 GMT):
Hello guys :) I was wondering if there was anyway to get Hyperledger fabric node logs on IBP bluemix into an external service provider?

lay-z (Tue, 31 Jul 2018 16:53:08 GMT):
or is this not the right place to be asking these questions?

adamk1230 (Tue, 31 Jul 2018 16:55:56 GMT):
What is the best way to switch versions of HLF? I currently am running 1.2, I thought i'd be able to do ./byfn -m down and then checkout release 1.1 and do a generate but that doesnt seem to work. Thoughts?

HemChe (Tue, 31 Jul 2018 17:06:41 GMT):
Has joined the channel.

varnitgoyal (Tue, 31 Jul 2018 18:38:06 GMT):
guys finally able to resolve the issue by setting the tls to false on both peers and orderer but still could not figure out why it was not working with tls enabled

varnitgoyal (Tue, 31 Jul 2018 18:38:21 GMT):
i have spent countless hours to resolve the issue

varnitgoyal (Tue, 31 Jul 2018 18:38:34 GMT):
it would be great if you can look into this issue

varnitgoyal (Tue, 31 Jul 2018 18:39:07 GMT):
thanks to everyone who is supporting this community

mogarg (Tue, 31 Jul 2018 20:40:37 GMT):
Has joined the channel.

mogarg (Tue, 31 Jul 2018 20:42:17 GMT):
Do we have a repository for chaincode samples?

jg507 (Tue, 31 Jul 2018 20:46:08 GMT):
Has joined the channel.

ChazSchmidt (Tue, 31 Jul 2018 21:17:58 GMT):
Has joined the channel.

ChazSchmidt (Tue, 31 Jul 2018 21:19:53 GMT):
Does anyone know where I could find examples of current enterprise-grade Hyperledger projects? My team is in the midst of launching our first network and are looking for an example of best practices including security parameters.

SreejithSoman (Wed, 01 Aug 2018 00:04:36 GMT):
Has joined the channel.

lieuzhenghong (Wed, 01 Aug 2018 01:16:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lbe9Ph5utbfJv6JPo) anyone know the answer to this question?

lieuzhenghong (Wed, 01 Aug 2018 01:16:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lbe9Ph5utbfJv6JPo) anyone know the answer to this question? how do I get this file?

lieuzhenghong (Wed, 01 Aug 2018 01:16:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lbe9Ph5utbfJv6JPo) anyone know the answer to this question? how do I get the distributed ledger file?

bh4rtp (Wed, 01 Aug 2018 01:52:32 GMT):
in the configtx.yaml file, how to configure CA if i have two ca in org1, i.e. ca0.org1.example.com and ca1.org1.example.com?

bh4rtp (Wed, 01 Aug 2018 01:52:32 GMT):
in the crypto-config.yaml file, how to configure CA if i have two ca in org1, i.e. ca0.org1.example.com and ca1.org1.example.com?

GowriR (Wed, 01 Aug 2018 04:44:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b8soxKH5625hge3Z4) @bh4rtp this sample has two ca's refer to it (https://github.com/PacktPublishing/Handson-Blockchain-Development-with-Hyperledger/blob/master/network/crypto-config.yaml) - do you mean docker-compose.yaml?

1234 (Wed, 01 Aug 2018 05:34:37 GMT):
hi experts what is difference between TLSCA and CA ,how its work TLSCA?

GowriR (Wed, 01 Aug 2018 05:39:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NkAtyCgEB8tP6KkrR) @1234 I have the same doubt - i need to run peer chaincode list --installed (and it is asking me to authenticate it first) for which i need to provide the --cafile and --certfile options. Which are these files?

GowriR (Wed, 01 Aug 2018 05:39:15 GMT):
I have the same doubt - i need to run peer chaincode list --installed (and it is asking me to authenticate it first) for which i need to provide the --cafile and --certfile options. Which are these files?

GowriR (Wed, 01 Aug 2018 05:47:36 GMT):
and i only have the peer docker now - not the CLI docker

GowriR (Wed, 01 Aug 2018 05:48:03 GMT):
i want to check if chaincode/install through nodejs sdk was successful on the command line

1234 (Wed, 01 Aug 2018 05:55:43 GMT):
--cafile use for trusted cert in orderer , this file certificate issuer tlsca

1234 (Wed, 01 Aug 2018 05:56:40 GMT):
where is config.yaml in fabric

GowriR (Wed, 01 Aug 2018 06:46:26 GMT):
Hello all, I am getting the following error in the sample app

GowriR (Wed, 01 Aug 2018 06:46:28 GMT):
[2018-07-28 18:57:37.906] [DEBUG] TradeApp - ------>>>>>> new request for /chaincode/getTradeStatus [2018-07-28 18:57:37.906] [DEBUG] TradeApp - Decoded from JWT token: username - admin, orgname - importerorg [2018-07-28 18:57:37.906] [DEBUG] TradeApp - ==================== INVOKE ON CHAINCODE ================== [2018-07-28 18:57:37.907] [DEBUG] TradeApp - username :admin [2018-07-28 18:57:37.907] [DEBUG] TradeApp - orgname:importerorg [2018-07-28 18:57:37.907] [DEBUG] TradeApp - args : 2ks89j9 Successfully loaded user admin from persistence Successfully enrolled user admin info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer0.importerorg.trade.com","grpc.default_authority":"peer0.importerorg.trade.com","grpc.http2.keepalive_time":15,"grpc.max_receive_message_length":-1,"grpc.max_send_message_length":-1} Received 4 responses for proposed transaction transaction proposal has response status of good from peer grpcs://localhost:7051 transaction proposal signature and endorser are valid from peer grpcs://localhost:7051 transaction proposal has response status of good from peer grpcs://localhost:8051 transaction proposal signature and endorser are valid from peer grpcs://localhost:8051 transaction proposal has response status of good from peer grpcs://localhost:9051 transaction proposal signature and endorser are valid from peer grpcs://localhost:9051 transaction proposal has response status of good from peer grpcs://localhost:10051 transaction proposal signature and endorser are valid from peer grpcs://localhost:10051 compareProposalResponseResults exection did not throw an error All proposals have matching read/writes sets Successfully sent Proposal and received ProposalResponse The transaction has been committed on peer localhost:8053 Failed to send transaction and get notifications within the timeout period. Error: Failed to send transaction and get notifications within the timeout period. at Promise.all.then.catch (/home/hypledvm/go/src/trade-finance-logistics/middleware/invoke-chaincode.js:228:11) at

GowriR (Wed, 01 Aug 2018 06:46:28 GMT):
[2018-07-28 18:57:37.906] [DEBUG] TradeApp - ------>>>>>> new request for /chaincode/getTradeStatus [2018-07-28 18:57:37.906] [DEBUG] TradeApp - Decoded from JWT token: username - admin, orgname - importerorg [2018-07-28 18:57:37.906] [DEBUG] TradeApp - ==================== INVOKE ON CHAINCODE ================== [2018-07-28 18:57:37.907] [DEBUG] TradeApp - username :admin [2018-07-28 18:57:37.907] [DEBUG] TradeApp - orgname:importerorg [2018-07-28 18:57:37.907] [DEBUG] TradeApp - args : 2ks89j9 Successfully loaded user admin from persistence Successfully enrolled user admin info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer0.importerorg.trade.com","grpc.default_authority":"peer0.importerorg.trade.com","grpc.http2.keepalive_time":15,"grpc.max_receive_message_length":-1,"grpc.max_send_message_length":-1} Received 4 responses for proposed transaction transaction proposal has response status of good from peer grpcs://localhost:7051 transaction proposal signature and endorser are valid from peer grpcs://localhost:7051 transaction proposal has response status of good from peer grpcs://localhost:8051 transaction proposal signature and endorser are valid from peer grpcs://localhost:8051 transaction proposal has response status of good from peer grpcs://localhost:9051 transaction proposal signature and endorser are valid from peer grpcs://localhost:9051 transaction proposal has response status of good from peer grpcs://localhost:10051 transaction proposal signature and endorser are valid from peer grpcs://localhost:10051 compareProposalResponseResults exection did not throw an error All proposals have matching read/writes sets Successfully sent Proposal and received ProposalResponse The transaction has been committed on peer localhost:8053 Failed to send transaction and get notifications within the timeout period. *Error: Failed to send transaction and get notifications within the timeout period. at Promise.all.then.catch (/home/hypledvm/go/src/trade-finance-logistics/middleware/invoke-chaincode.js:228:11) at *

GowriR (Wed, 01 Aug 2018 06:46:34 GMT):
any idea what it is due to?

GowriR (Wed, 01 Aug 2018 06:59:25 GMT):
How long does the nodejs response on commiting and querying take in the balance-transfer or any other sample app?

ascatox (Wed, 01 Aug 2018 08:58:41 GMT):
I'm getting this error ` UNKNOWN: access denied: channel [] creator org [Org1MSP]`, I'm trying to invoke the chaincode with a new identity

ascatox (Wed, 01 Aug 2018 08:58:55 GMT):
Someone has already solved it

ascatox (Wed, 01 Aug 2018 08:58:55 GMT):
Someone has already solved it.

1234 (Wed, 01 Aug 2018 09:12:24 GMT):
@ascatox i think gave wrong tls path

ascatox (Wed, 01 Aug 2018 09:15:22 GMT):
Can you give me some more help, thank you very much.

ascatox (Wed, 01 Aug 2018 09:33:42 GMT):
Someone can tell me, which is the default folder where peers retrieve the certificates to manage the identities.

issac.liu (Wed, 01 Aug 2018 09:36:28 GMT):
Has joined the channel.

iLico (Wed, 01 Aug 2018 10:10:03 GMT):
Has joined the channel.

sathishNS (Wed, 01 Aug 2018 10:11:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4eQRvqWH6G8qLhH8D) @ascatox try with sudo

GowriR (Wed, 01 Aug 2018 10:24:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=67gzFtPkpNGZvcXv6) @sathishNS the channel seems to be empty. Go to the peer docker and check peer channel list

GowriR (Wed, 01 Aug 2018 10:24:47 GMT):
These containers get created and get deleted soon after a713b70bddfb hyperledger/fabric-ccenv:latest "/bin/sh -c 'GOPATH=…" 53 seconds ago Up 51 seconds wonderful_brahmagupta 8aaada698835 hyperledger/fabric-ccenv:latest "/bin/sh -c 'GOPATH=…" 53 seconds ago Up 51 seconds romantic_poitras i dont get the chaincode containers - peer0.consumerorg.demandresponse.com | 2018-07-28 17:00:50.247 UTC [dockercontroller] Start -> DEBU 1664 Started container dev-peer0.consumerorg.demandresponse.com-utilitycc-v2 peer0.consumerorg.demandresponse.com | 2018-07-28 17:00:50.247 UTC [container] unlockContainer -> DEBU 1665 container lock deleted(utilitycc-v2) peer0.utilityorg.demandresponse.com | 2018-07-28 17:00:50.247 UTC [dockercontroller] Start -> DEBU 16b9 Started container dev-peer0.utilityorg.demandresponse.com-utilitycc-v2 peer0.utilityorg.demandresponse.com | 2018-07-28 17:00:50.247 UTC [container] unlockContainer -> DEBU 16ba container lock deleted(utilitycc-v2)

GowriR (Wed, 01 Aug 2018 10:25:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CRx554duTkRh4mHZ9) any pointers would be appreciated. thanks

PrincyaEsther (Wed, 01 Aug 2018 10:29:45 GMT):
Create new chaincode by using node: Hi All, I am trying to create new chaincode using node. If I excecute "CORE_PEER_LOCALMSPID=Org1MSP CORE_PEER_MSPCONFIGPATH=/projects/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp peer chaincode install -l node -n mycc -v v0 -p /chaincode/nodejs-cc/" line for chaincode installation, I am getting "unknownType = NODE". How to fix this problem?

AbhiramHatolkar (Wed, 01 Aug 2018 10:32:43 GMT):
Hi guys, I want to know if we can skip using fabric-ca in the system. If I generate all the certificates using cryptogen tool, can I skip using fabric-ca?

GowriR (Wed, 01 Aug 2018 10:35:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ijCfeKEAAtdx9cPtL) eer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [chaincode] Start -> DEBU 1b55 start container with env: peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_LEVEL=info peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_SHIM=warning peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_ID_NAME=utilitycc:v4 peer0.consumerorg.demandresponse.com | CORE_PEER_TLS_ENABLED=true peer0.consumerorg.demandresponse.com | CORE_TLS_CLIENT_KEY_PATH=/etc/hyperledger/fabric/client.key peer0.consumerorg.demandresponse.com | CORE_TLS_CLIENT_CERT_PATH=/etc/hyperledger/fabric/client.crt peer0.consumerorg.demandresponse.com | CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [container] lockContainer -> DEBU 1b56 waiting for container(utilitycc-v4) lock peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [container] lockContainer -> DEBU 1b57 got container (utilitycc-v4) lock peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [dockercontroller] Start -> DEBU 1b58 Cleanup container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b59 Stop container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4(No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4) peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b5a Kill container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 (No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4) peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b5b Remove container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 (No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4) peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20

GowriR (Wed, 01 Aug 2018 10:35:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ijCfeKEAAtdx9cPtL) eer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [chaincode] Start -> DEBU 1b55 start container with env: peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_LEVEL=info peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_SHIM=warning peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} peer0.consumerorg.demandresponse.com | CORE_CHAINCODE_ID_NAME=utilitycc:v4 peer0.consumerorg.demandresponse.com | CORE_PEER_TLS_ENABLED=true peer0.consumerorg.demandresponse.com | CORE_TLS_CLIENT_KEY_PATH=/etc/hyperledger/fabric/client.key peer0.consumerorg.demandresponse.com | CORE_TLS_CLIENT_CERT_PATH=/etc/hyperledger/fabric/client.crt peer0.consumerorg.demandresponse.com | CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [container] lockContainer -> DEBU 1b56 waiting for container(utilitycc-v4) lock peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [container] lockContainer -> DEBU 1b57 got container (utilitycc-v4) lock peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.894 UTC [dockercontroller] Start -> DEBU 1b58 Cleanup container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b59 Stop container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4(No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4) *peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b5a Kill container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 (No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4) peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20.904 UTC [dockercontroller] stopInternal -> DEBU 1b5b Remove container dev-peer0.consumerorg.demandresponse.com-utilitycc-v4 (No such container: dev-peer0.consumerorg.demandresponse.com-utilitycc-v4)* peer0.consumerorg.demandresponse.com | 2018-07-28 17:21:20

Jayshree_Devan (Wed, 01 Aug 2018 10:39:26 GMT):
Has joined the channel.

Jayshree_Devan (Wed, 01 Aug 2018 10:44:34 GMT):
Hello,while installing 1.2 version in hyperledger ,I am facing issue while joining the channel .The issue is "client.getEventHubsForOrg is not a function", the function is not defined in 'index.d.t

d8bhatta (Wed, 01 Aug 2018 11:18:11 GMT):
Hello Guys, I have a curiosity about creating nodes, when we create 100s of nodes/peers, it exists in currently installed blockchain (fabric), now I am curious how the nodes get distributed? If I have to add new user in system, I probably have to create new peer but it still remains in the system. How it gets distributed?

bh4rtp (Wed, 01 Aug 2018 11:54:40 GMT):
does org name have limit in length?

bh4rtp (Wed, 01 Aug 2018 11:55:09 GMT):
can i name an example organization as px1?

1234 (Wed, 01 Aug 2018 12:12:25 GMT):
Can you plz help me what is OU in msp

1234 (Wed, 01 Aug 2018 12:12:31 GMT):
??

1234 (Wed, 01 Aug 2018 12:13:02 GMT):
Anybody have documentation of OU in msp

1234 (Wed, 01 Aug 2018 12:13:10 GMT):
why need OU in msp

1234 (Wed, 01 Aug 2018 12:13:15 GMT):
??

gatakka (Wed, 01 Aug 2018 12:20:14 GMT):
OU is organization unit, it is part of the x.509 certificate standart

bh4rtp (Wed, 01 Aug 2018 12:31:11 GMT):
@gatakka need i prepare my own fabric-ca-server-config.yaml for ca to configure specified org?

gatakka (Wed, 01 Aug 2018 12:33:51 GMT):
yes, you must confugure fabric-ca-server-config. You can use ENV variables for most of the settings, so it may not be neccessary to update the file itself.

gatakka (Wed, 01 Aug 2018 12:34:13 GMT):
documntation is very good explaining what and where

bh4rtp (Wed, 01 Aug 2018 12:38:23 GMT):
ok. i don't use org1 and org2. thanks.

sathishNS (Wed, 01 Aug 2018 13:00:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u4riSfBpun66LxJDk) @gatakka @gatakka can you send me the documentation link ?

sathishNS (Wed, 01 Aug 2018 13:01:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mKTikFH7swupPm4en) @gatakka @gatakka can ou send me docuomentation link?

gatakka (Wed, 01 Aug 2018 13:05:20 GMT):
http://hyperledger-fabric-ca.readthedocs.io/en/latest/

xcui (Wed, 01 Aug 2018 14:16:15 GMT):
Has joined the channel.

xcui (Wed, 01 Aug 2018 14:16:55 GMT):
Hello everyone, I am trying to modify the endorser logic in fabric 1.2. How can I query ledger data, aka block data, within endorser.go? Thanks in advance!

riteshmistry (Wed, 01 Aug 2018 14:21:00 GMT):
Has joined the channel.

riteshmistry (Wed, 01 Aug 2018 14:21:41 GMT):
I am stuck at Step Six: Generating an application I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) audited 7044 packages in 13.927s found 14 vulnerabilities (9 low, 5 high) run `npm audit fix` to fix them, or `npm audit` for details Application generated Message appear when I run " yo hyperledger-composer:angular " command.

riteshmistry (Wed, 01 Aug 2018 14:22:34 GMT):
Can any one help me out, I am new in Hyperledger.

riteshmistry (Wed, 01 Aug 2018 14:24:13 GMT):
$ npm audit fix npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN tutorial-network@0.0.1 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) up to date in 11.236s fixed 0 of 153 vulnerabilities in 26994 scanned packages 153 vulnerabilities required manual review and could not be updated

xcui (Wed, 01 Aug 2018 14:26:55 GMT):
@riteshmistry I am not an expert in this, but I think you can ignore warning messages and the reports on vulnerabilities. The most important message is "Application generated" and it mean the execution of your command is successful

riteshmistry (Wed, 01 Aug 2018 14:28:05 GMT):
I just follow " https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html " and I am stuck at stage of 6

xcui (Wed, 01 Aug 2018 14:29:30 GMT):
Can you run "npm start"?

jvsclp (Wed, 01 Aug 2018 14:29:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vH3Ne8ZY2g3YnoNqd) @AbhiramHatolkar If you're talking about testing a network, yes, the cryptogen tool is sufficient. If you're talking about issuing certificates for production, then the cryptogen tool can be used, but will not allow your network to expand from one root certificate authority. This is because an organization should have complete control of its root certificate. However, I don't know your use case so cryptogen may be sufficient.

riteshmistry (Wed, 01 Aug 2018 14:29:43 GMT):
yes, but getting warning message

riteshmistry (Wed, 01 Aug 2018 14:30:11 GMT):
I also install dependency but then after also getting same error.

gulshy1202 (Wed, 01 Aug 2018 14:32:04 GMT):
Has joined the channel.

xcui (Wed, 01 Aug 2018 14:38:32 GMT):
Warning messages are not errors

xcui (Wed, 01 Aug 2018 14:38:48 GMT):
Warning messages do not prevent you from running your applications.

boonthept (Wed, 01 Aug 2018 14:46:03 GMT):
hi there, i cannt seem to find any tutorial specifically on idmixer. can someone help point me in the right direction. thanks.

seokju.hong (Wed, 01 Aug 2018 14:58:05 GMT):
Has joined the channel.

xcui (Wed, 01 Aug 2018 15:42:07 GMT):
Hey, are there any webpages or docs that can assist me to read and to understand the source code of Hyperledger Fabric? In particular, I am interested in learning the code inside the directory "fabric/core". Thanks.

riccardopersiani (Wed, 01 Aug 2018 15:59:41 GMT):
hi, how is possible to import a dependance from Github to the chaincode in Node? Should be done in the `package.json`?

pgarneau (Wed, 01 Aug 2018 17:08:29 GMT):
Is the use of relative paths required when using the `Cryptogen` binary? I can't seem to generate my cryptos and *.tx files outside of the file structure where my `configtx.yaml` and `crypto-config.yaml` are

theshane (Wed, 01 Aug 2018 21:05:46 GMT):
Has joined the channel.

theshane (Wed, 01 Aug 2018 21:06:00 GMT):
✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed what does this mean? THere is nothing in the docker logs on the peer It didn't event try to connect This is on a local mac Is there verbose output from the composer cli?

duongpv (Wed, 01 Aug 2018 23:13:36 GMT):
Has joined the channel.

BoBoGithub (Thu, 02 Aug 2018 02:31:24 GMT):
Has joined the channel.

prtk418 (Thu, 02 Aug 2018 04:12:28 GMT):
Hello guys, suppose I know the basics of fabric and composer , developed some small project also, now I want to be a contributor to the Hyperledger codebase,for that I want to understand the whole codebase and how it works, so for that which codebase should I choose to look at first fabric/composer and which module/package?

Avinash_Kancharla (Thu, 02 Aug 2018 05:24:15 GMT):
consensus

GowriR (Thu, 02 Aug 2018 05:52:45 GMT):
go version

antitoine (Thu, 02 Aug 2018 06:52:24 GMT):
Anyone can help me on this error ? `Orderer Server Status Code: (400) BAD_REQUEST. Description: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org1MSP but was in the read set` https://stackoverflow.com/questions/51590202/channel-creation-fails-in-hyperledger-fabric-v1-2

WouterVanHecke (Thu, 02 Aug 2018 07:16:57 GMT):
Has joined the channel.

bh4rtp (Thu, 02 Aug 2018 07:25:20 GMT):
anyone has succeeded in setup fabric network with your own organizations?

feeblefakie (Thu, 02 Aug 2018 07:43:45 GMT):
Has joined the channel.

GowriR (Thu, 02 Aug 2018 07:44:28 GMT):
you need to change 1. contfigtx.yaml 2.crypto-config.yaml 3. base/docker-compose.yaml 4. docker-compose-template.yaml 5. run the replaceprivatekeys function in the trade.sh or any shell file in the samples and it copies the keys generated by crypto-config.yaml in docker-compose.yaml thats it

GowriR (Thu, 02 Aug 2018 07:46:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3kupKHc6qhwCTDAF9) @antitoine Try creating the genesis.block and chaneel.tx with different channel names - i had a similar error a few days back

tranduykhanh (Thu, 02 Aug 2018 07:55:22 GMT):
Has joined the channel.

AnthonyRoux (Thu, 02 Aug 2018 09:43:14 GMT):
Hi to all ! I'm working on fabric version 1.1.0. I have issues with my ledger size (about 1.2 TB actually). I would like to know if there is a way to "archive" old blocks and keep working on the same ledger. thanks in advance

aztot (Thu, 02 Aug 2018 10:00:28 GMT):
Hi did anyone ever deployed the fabcar smart contracts on multiple nodes ? How ?

GowriR (Thu, 02 Aug 2018 10:07:45 GMT):
Hi All, my chaincode container gets deleted and the logs show this

GowriR (Thu, 02 Aug 2018 10:07:47 GMT):
ainer] lockContainer -> DEBU 2b5 waiting for container(utilitycc-v1) lock 2018-07-28 21:13:30.752 UTC [container] lockContainer -> DEBU 2b6 got container (utilitycc-v1) lock 2018-07-28 21:13:30.753 UTC [dockercontroller] Start -> DEBU 2b7 Cleanup container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 2018-07-28 21:13:30.753 UTC [dockercontroller] stopInternal -> DEBU 2b8 Stop container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1(No such container: dev-peer0.utilityorg.demandresponse.com-utilitycc-v1) 2018-07-28 21:13:30.753 UTC [dockercontroller] stopInternal -> DEBU 2b9 Kill container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 (No such container: dev-peer0.utilityorg.demandresponse.com-utilitycc-v1) 2018-07-28 21:13:30.754 UTC [dockercontroller] stopInternal -> DEBU 2ba Remove container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 (No such container: dev-peer0.utilityorg.demandresponse.com-utilitycc-v1) 2018-07-28 21:13:30.754 UTC [dockercontroller] Start -> DEBU 2bb Start container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 2018-07-28 21:13:30.754 UTC [dockercontroller] getDockerHostConfig -> DEBU 2bc docker container hostconfig NetworkMode: host 2018-07-28 21:13:30.754 UTC [dockercontroller] createContainer -> DEBU 2bd Create container: dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 2018-07-28 21:13:30.832 UTC [dockercontroller] createContainer -> DEBU 2be Created container: dev-peer0.utilityorg.demandresponse.com-utilitycc-v1-bb920bf6f54a68f474381718be934877379d2d12a28ce1eca5483ce4fb6a38c4 2018-07-28 21:13:31.016 UTC [gossip/discovery] periodicalReconnectToDead -> DEBU 2bf Sleeping 25s 2018-07-28 21:13:31.086 UTC [gossip/discovery] periodicalSendAlive -> DEBU 2c0 Sleeping 5s 2018-07-28 21:13:31.429 UTC [dockercontroller] Start -> DEBU 2c1 Started container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 2018-07-28 21:13:31.429 UTC [container] unlockContainer -> DEBU 2c2 container lock deleted(utilitycc-v1) 2018-07-28 21:13:34.607 UTC [dockercontroller] func2 -> INFO 2d6 Container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 has closed its IO channel Any idea from these messages?

GowriR (Thu, 02 Aug 2018 10:16:39 GMT):
sorry this is the right one

GowriR (Thu, 02 Aug 2018 10:16:40 GMT):
214 102 133 86 205 121 156] : Entering 2018-07-28 21:13:32.538 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2c8 2018-07-28 21:13:32.538 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer0.utilityorg.demandresponse.com on 127.0.1.1:53: no such host"; Reconnecting to {peer0.utilityorg.demandresponse.com:7052 } 2018-07-28 21:13:33.864 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2c9 2018-07-28 21:13:33.863 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer0.utilityorg.demandresponse.com on 127.0.1.1:53: no such host"; Reconnecting to {peer0.utilityorg.demandresponse.com:7052 } 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2ca 2018-07-28 21:13:34.536 UTC [shim] userChaincodeStreamGetter -> ERRO 005 context deadline exceeded 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2cb error trying to connect to local peer 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2cc github.com/utilityWorkflow/vendor/github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2cd /chaincode/input/src/github.com/utilityWorkflow/vendor/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2ce github.com/utilityWorkflow/vendor/github.com/hyperledger/fabric/core/chaincode/shim.Start 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2cf /chaincode/input/src/github.com/utilityWorkflow/vendor/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d0 main.main 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d1 /chaincode/input/src/github.com/utilityWorkflow/utility_workflow.go:378 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d2 runtime.main 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d3 /opt/go/src/runtime/proc.go:198 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d4 runtime.goexit 2018-07-28 21:13:34.545 UTC [dev-peer0.utilityorg.demandresponse.com-utilitycc-v1] func2 -> INFO 2d5 /opt/go/src/runtime/asm_amd64.s:2361 2018-07-28 21:13:34.607 UTC [dockercontroller] func2 -> INFO 2d6 Container dev-peer0.utilityorg.demandresponse.com-utilitycc-v1 has closed its IO channel

bh4rtp (Thu, 02 Aug 2018 10:28:46 GMT):
hi, does this matter when create crypto artifacts? if yes, i don't know how to give channel id because i have 5 channels: ```configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2018-08-02 18:25:48.401 CST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'.```

bh4rtp (Thu, 02 Aug 2018 10:28:46 GMT):
hi, does this matter when creating artifacts? if yes, i don't know how to give channel id because i have 5 channels: ```configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2018-08-02 18:25:48.401 CST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'.```

GowriR (Thu, 02 Aug 2018 10:32:42 GMT):
choose another channelID and give it. It worked for me. Not sure where it is used https://github.com/bft-smart/fabric-orderingservice/issues/8

bh4rtp (Thu, 02 Aug 2018 10:46:06 GMT):
@GowriR thanks for your reply. do you mean i just give any one of the 5 channels?

bh4rtp (Thu, 02 Aug 2018 10:46:06 GMT):
@GowriR thanks for your reply. do you mean i just need to give any one of the 5 channels?

GowriR (Thu, 02 Aug 2018 10:47:14 GMT):
no give a new name that is what i did

bh4rtp (Thu, 02 Aug 2018 11:05:27 GMT):
@GowriR i even succeed with `-channelID ch1 -channelID ch2 -channelID ch3 -channelID ch4 -channelID ch5`. i don't know whether it is correct, but configtxgen reports no error message.

theshane (Thu, 02 Aug 2018 12:26:53 GMT):
✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed what does this mean? THere is nothing in the docker logs on the peer It didn't event try to connect This is on a local mac Is there verbose output from the composer cli?

theshane (Thu, 02 Aug 2018 12:27:51 GMT):
If I could see what was trying to connect and where it was trying to connect (target ip, source process, env vars, network adapter), I could try to debug the network issue

antitoine (Thu, 02 Aug 2018 13:18:10 GMT):
@GowriR Thanks, changing the channel name fix the issue... very strange !

aatkddny (Thu, 02 Aug 2018 13:22:09 GMT):
Having a brain fart. Does a pure private data transaction need to still go to the orderer? Meaning is the fact that *something* happened still recorded.

AmitMittal (Thu, 02 Aug 2018 15:49:08 GMT):
hi can anyone help me with: how to create identity and card in hyperledger composer using api calls

anillewis (Thu, 02 Aug 2018 17:15:38 GMT):
Hi, we are on fabric 1.1 and to meet one of the requirements, we had to use math.Round() in the chaincode which was introduced in go 1.10. Now we updated the go version in the server to 1.10 and also within the cli, we can see go version is upgraded to 1.10 but after executing chaincode upgrade, we are seeing the below error "Failed to generate platform-specific docker build: Error returned from build: 2"# github.com/hyperledger/fabric/XX/chaincode/input/src/github.com/hyperledger/fabric/XX/YY.go:1521:25:undefined: math.Round... can someone please provide some guidance on how to fix this error?

jvsclp (Thu, 02 Aug 2018 17:47:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vwbw4Tey4otHYKRYP) @anillewis Just a shot in the dark based off the error message as I don't know specifically, but do you have the latest docker images for your build?

rajanashutosh (Thu, 02 Aug 2018 17:48:00 GMT):
How to configure Hyperledger explorer for fabric network.

rajanashutosh (Thu, 02 Aug 2018 17:49:00 GMT):
I have a multi-host environment, with 3 VMs

anillewis (Thu, 02 Aug 2018 17:53:34 GMT):
@jvsclp We are using fabric 1.1 and in the docs the go version is 1.9.X which we are aware....but is there no way we can upgrade the go version in the peer/chaincode container?

jvsclp (Thu, 02 Aug 2018 18:02:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tLKyiZ8FHcDwJHZCL) @rajanashutosh Have you asked in https://chat.hyperledger.org/channel/hyperledger-explorer? I think that channel may be better able to address your question

rajanashutosh (Thu, 02 Aug 2018 18:07:51 GMT):
@jvsclp Thanks

rajanashutosh (Thu, 02 Aug 2018 18:08:58 GMT):
@jvsclp, Is it suggestible to have multiple networks for each applications ?

rajanashutosh (Thu, 02 Aug 2018 18:09:20 GMT):
I meant hyperledger fabric network and is it possible to sync the data in both the networks ?

jvsclp (Thu, 02 Aug 2018 19:09:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=agGbKaFX7zHEoqdYi) @rajanashutosh I'd wonder what your use case for hyperledger fabric is. You can set up channels with differing combinations of organizations. I'd look at https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html to see if bringing an organization into another fabric network would meet your needs.

jvsclp (Thu, 02 Aug 2018 19:09:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=agGbKaFX7zHEoqdYi) @rajanashutosh I'd wonder what your use case for hyperledger fabric is. You can set up channels with differing combinations of organizations. I'd look at https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html to see if bringing an organization into another fabric network would meet your needs as the whole point of being on the same network channel is designed to sync data.

jvsclp (Thu, 02 Aug 2018 19:09:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=agGbKaFX7zHEoqdYi) @rajanashutosh I'd wonder what your use case for hyperledger fabric is. You can set up channels with differing combinations of organizations. I'd look at https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html to see if bringing an organization into another fabric network would meet your needs as the whole point of being on the same network channel is to sync data.

handaanmol (Thu, 02 Aug 2018 19:37:43 GMT):
I am trying to add a 4th organization on the channel as per the tutorials mentioned in - " https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html" using the manual setup way but couldn't achieve success since so many configurations need to be disturbed following it. Is there any documentation available on adding a new organization in a dynamically configurable way. Kindly help!

jvsclp (Thu, 02 Aug 2018 20:31:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HykwprLHkY3aXqt86) @handaanmol The whole point of the tutorial is for you to understand what is going on under the hood of eyfn.sh if the first-network example. If you read through the channel update tutorial and understand what's happening take the eyfn.sh and bend it to your needs. Otherwise, continue working the channel update tutorial and reviewing the eyfn.sh until you can make your own dynamic shell to add an organization. You'll get there!

jvsclp (Thu, 02 Aug 2018 20:31:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HykwprLHkY3aXqt86) @handaanmol The whole point of the tutorial is for you to understand what is going on under the hood of eyfn.sh of the first-network example. If you read through the channel update tutorial and understand what's happening take the eyfn.sh and bend it to your needs. Otherwise, continue working the channel update tutorial and reviewing the eyfn.sh until you can make your own dynamic shell to add an organization. You'll get there!

handaanmol (Thu, 02 Aug 2018 20:42:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BE8c7rqASfw7LWfkr) @jvsclp I totally understand your point and I cannot agree more. I have been working on it for a day and now I am getting this weird error when I am trying to authenticate Org4 from CLI of Org3. Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2 I have checked this JSON file and Application is version 1 everywhere, it is not 2 anywhere. If you have any idea on how to fix it. Please let me know. Thanks!

jvsclp (Thu, 02 Aug 2018 21:42:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=utWfXri9by5twDKZR) @handaanmol It sounds like you may have some remnants from the byfn.sh container messing with your channel. Restart the channel with run *./byfn.sh -m restart -c channelName* If that doesn't work take the whole network down with *./byfn.sh down* find the docker container with *docker container ls* if it's still running, kill it with *docker kill <>* and remove it with *docker rm <>*. You should be able to start fresh and can ensure there are no channel conflicts.

bh4rtp (Fri, 03 Aug 2018 01:47:45 GMT):
does anyone find it is strange that the generated channel tx file is sensitive to channel name?

bh4rtp (Fri, 03 Aug 2018 01:48:45 GMT):
if i choose another name, the content of tx file is much different except channel name.

issac.liu (Fri, 03 Aug 2018 03:01:13 GMT):
I am just a new guy trying to play with hyperledger fabric and I encountered some problems with it. With regards to 'Building your first network' tutorial, I am unable to create a new channel after running this command peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Error message returned was: ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "" What I have attempted according to the troubleshooting section export FABRIC_CFG_PATH=$PWD but it still doesn't work.

issac.liu (Fri, 03 Aug 2018 03:01:38 GMT):
any help will be much appreciated :D

rajanashutosh (Fri, 03 Aug 2018 03:16:24 GMT):
@jvsclp .. There would be some user fields which would frequently get updated and those details might not be valid to every other user in the organisation and to the concerned org alone.

mogarg (Fri, 03 Aug 2018 03:30:16 GMT):
is it possible to initiate chain code with some invariants? For instance, let's say I want to store a value v and while initializing the value I wish to specify a range of v. Is that possible within the contract itself? Or does it have to be handled at a higher level?

GowriR (Fri, 03 Aug 2018 04:17:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PyKfYQm8ySfXQguLH) @antitoine Welcome

adarshsaraf123 (Fri, 03 Aug 2018 05:32:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rmkm2sTAcPQweq6gt) @issac.liu Do you have a `core.yaml` in your `FABRIC_CFG_PATH`?

issac.liu (Fri, 03 Aug 2018 05:40:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MoSGYGk3v62bRJsYM) @adarshsaraf123 Nope! i don't have it.

tinywell (Fri, 03 Aug 2018 05:54:32 GMT):
Has joined the channel.

adarshsaraf123 (Fri, 03 Aug 2018 06:08:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C72P37gw9TpRqywTP) @issac.liu Then you have to point `FABRIC_CFG_PATH` to the directory that has the `core.yaml` file.

bh4rtp (Fri, 03 Aug 2018 07:03:19 GMT):
instantiate chaincode actually succeeded, but sdk client reports error: `Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse` 1.2.0 fabric is used.

GowriR (Fri, 03 Aug 2018 07:19:22 GMT):
Hi all, o idea Sara - now am trying to replicate the error on the dev environment with two peers. In this i have a confusion - in the docker-compose-template.yaml - how should I specify the chaincode container for 2 peers? Will 2 chaincode containers be created or one?

bh4rtp (Fri, 03 Aug 2018 07:30:39 GMT):
@GowriR chaincode container is dynamically created by `peer chaincode install & instantiate`

issac.liu (Fri, 03 Aug 2018 07:51:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gbS8S2Tbd2CPd9H3M) @adarshsaraf123 After i point it to the core.yaml file path, i encountered a new error stating that ERRO 001 Fatal error when initializing core config : FABRIC_CFG_PATH /d/TestFolder2/fabric-samples/config does not exist

GowriR (Fri, 03 Aug 2018 08:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dhZ53oKygdi9RZaWC) @bh4rtp but not in the dev mode - i am following the dev mode same app where we create our own

adarshsaraf123 (Fri, 03 Aug 2018 08:31:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C4A2aRcnTAWsYQCxA) @issac.liu Looks like you are making some mistake in the setting of FABRIC_CFG_PATH since it says that the directory does not exist.

bh4rtp (Fri, 03 Aug 2018 08:31:56 GMT):
@GowriR sorry, dev mode not used for a long time.

GowriR (Fri, 03 Aug 2018 08:34:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TAZFD7qZWa3k8NnGB) @bh4rtp no problem. I am using it to debug the deleting chain code containers. If any one has the solution to the issue please let me know

duongpv (Fri, 03 Aug 2018 08:41:19 GMT):
I have a question, but I'm not good at English :(

issac.liu (Fri, 03 Aug 2018 08:50:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=roaGnE96YcteDdxRg) @adarshsaraf123 Hi, sorry about the previous mistake. i found out that it is caused by after implementing this command. export MSYS_NO_PATHCONV=1 however without the above command, an error will surface stating the following ERRO 001 Cannot run peer because cannot init crypto, missing C:/Program Files/Git/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder Thank you so much for your patience.

Tony (Fri, 03 Aug 2018 11:10:54 GMT):
In hyperledger fabric 1.2 how can we get history for a key from a private collection?

dave.enyeart (Fri, 03 Aug 2018 11:14:31 GMT):
@Tony Private data history does not yet have an index to enable its query, that is an upcoming feature in https://jira.hyperledger.org/browse/FAB-5094

Tony (Fri, 03 Aug 2018 11:30:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4qGeqPjCysZrkWpzp) @dave.enyeart When 1.3 will be released?

dave.enyeart (Fri, 03 Aug 2018 11:31:19 GMT):
end of september

Tony (Fri, 03 Aug 2018 11:40:18 GMT):
Thanks a lot :D

Gaurav6794 (Fri, 03 Aug 2018 11:40:34 GMT):
Has joined the channel.

Gaurav6794 (Fri, 03 Aug 2018 11:40:54 GMT):
Hi all During Invoke while processing a proposal with endorser client in proto peer in node sdk with custom first network with tls enabled i am having this error error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/var/www/html/hyperledgerfabric_tsest_chaincode/first-network/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15). I have six peers, one orderer, solo, tls enabled network I followed https://fabric-sdk-node.github.io/tutorial-mutual-tls.html for node sdk

clydedacruz (Fri, 03 Aug 2018 11:57:06 GMT):
can the node sdk v1.2 be used with a fabric 1.1 network ? (i.e if im not using the new features added in the 1.2 network)? asked a question about it on SO https://stackoverflow.com/questions/51672046/can-fabric-node-sdk-1-2-be-used-with-a-fabric-1-1-network

StefanKosc (Fri, 03 Aug 2018 12:24:13 GMT):
Hi, does anyone know why tests for `balance-transfer` example are failing with ssl error when channel is created?

RohitChourasiya (Fri, 03 Aug 2018 13:23:56 GMT):
./bmhn.sh Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' Continue (y/n)? y proceeding ... /home/ubuntu/Build-Multi-Host-Network-Hyperledger/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## org1.example.com /home/ubuntu/Build-Multi-Host-Network-Hyperledger/../bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## 2018-08-03 18:47:54.029 IST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-08-03 18:47:54.030 IST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-08-03 18:47:54.030 IST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced 2018-08-03 18:47:54.030 IST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced [recovered] panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201ade30, 0xc42048de40, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc42048de30) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201adc80, 0xc4201a97e0, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7fff54aea080, 0x14, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7 Failed to generate orderer genesis block...

RohitChourasiya (Fri, 03 Aug 2018 13:24:03 GMT):
multihost network

jvsclp (Fri, 03 Aug 2018 14:19:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oqLegYGey69BGMgSD) @rajanashutosh A channel is a permissioned network for organizations to update a shared ledger. What'

jvsclp (Fri, 03 Aug 2018 14:19:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oqLegYGey69BGMgSD) @rajanashutosh A channel is a permissioned network for organizations to update a shared ledger. What's preventing setting up the channel with only the users and peers that need to share information?

gravity (Fri, 03 Aug 2018 14:24:15 GMT):
Hi all Is there any way to get a transaction list from orderer? to look when and which transaction proceed/failed etc.

LalitRajput (Fri, 03 Aug 2018 14:44:06 GMT):
Has joined the channel.

LalitRajput (Fri, 03 Aug 2018 14:44:11 GMT):
hello can we disable tls in multiorg fabric network ??

smeyers (Fri, 03 Aug 2018 15:01:54 GMT):
Has joined the channel.

zmaro (Fri, 03 Aug 2018 15:25:21 GMT):
Has joined the channel.

guilhermesimoes (Fri, 03 Aug 2018 15:29:46 GMT):
Hi all is there any fabric images for ARM devices? I'm currently trying to run fabric on a RPI3 and an Odroid but docker images for this architecture seem to not exist (at least on the docker repostiories) ty

jvsclp (Fri, 03 Aug 2018 15:41:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=euXL5teS4qMAubfiQ) @LalitRajput see https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

jvsclp (Fri, 03 Aug 2018 15:51:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hDHkrKzA3iXEwCLKa) @gravity How are you starting your orderer node? If it's run in a background docker container, find the container id with *docker ps*, then check the container log with *docker logs *. If not, set your CORE_LOGGING_LEVEL variable to DEBUG and give that a shot. Hope that helps.

joseam17 (Fri, 03 Aug 2018 16:21:53 GMT):
ca

nfrunza (Fri, 03 Aug 2018 16:27:35 GMT):
Hello fabric, can anyone provide the DDL for the fabric?

pankajcheema (Fri, 03 Aug 2018 16:30:50 GMT):
Anyone knows about ACL??

pankajcheema (Fri, 03 Aug 2018 16:30:51 GMT):
https://stackoverflow.com/questions/51670810/implementing-acl-in-hyperledger-fabric-v1-2

pankajcheema (Fri, 03 Aug 2018 16:31:04 GMT):
@kostas

kostas (Fri, 03 Aug 2018 16:31:04 GMT):
Has joined the channel.

kostas (Fri, 03 Aug 2018 16:33:23 GMT):
Has left the channel.

pankajcheema (Fri, 03 Aug 2018 16:57:36 GMT):
Anyone knows the expert of ACL in Fabric?

pankajcheema (Fri, 03 Aug 2018 16:57:39 GMT):
Please let me know

pankajcheema (Fri, 03 Aug 2018 16:57:52 GMT):
I am not getting any answer for ACL

pankajcheema (Fri, 03 Aug 2018 16:58:01 GMT):
seems like no one knows about ACL

pankajcheema (Fri, 03 Aug 2018 16:58:10 GMT):
or does not care about that

greg2git (Fri, 03 Aug 2018 17:11:55 GMT):
is there an easy way to inspect the payloads inside these block files? -rw-r--r-- 1 mychannel_0.block -rw-r--r-- 1 mychannel_1.block -rw-r--r-- 1 mychannel_2.block -rw-r--r-- 1 mychannel_3.block -rw-r--r-- 1 mychannel_newest.block

nfrunza (Fri, 03 Aug 2018 21:07:11 GMT):
Hello, does anyone know what the fabric DB model looks, any DDL, or mapping, i need to know defined data types for the models, like MSP's, channel, organizations, chaincodes etc

jvsclp (Fri, 03 Aug 2018 22:11:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dDK8gi2A3mNv8jGeF) @nfrunza That's quite the broad question, but this should get you started: https://hyperledger-fabric.readthedocs.io/en/release-1.2/key_concepts.html.

nfrunza (Fri, 03 Aug 2018 22:29:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tACkPGmrtnAByPM52) @jvsclp Thank you, you right about the question

ulysseses (Fri, 03 Aug 2018 22:41:32 GMT):
Has joined the channel.

bh4rtp (Sat, 04 Aug 2018 01:13:48 GMT):
hi, i am using `balance-transfer`, app/create_channel.js can support only one channel. how to code to support multiple channels?

bh4rtp (Sat, 04 Aug 2018 01:13:48 GMT):
hi, if i have configured two orgs, how many channels can i create?

dvliman (Sat, 04 Aug 2018 02:39:04 GMT):
Has joined the channel.

hardik047 (Sat, 04 Aug 2018 04:23:34 GMT):
To everyone, I get this error in orderer logs when I try starting the business network from any peers, local or remote. grpc: Server.Serve failed to complete security handshake from "167.99 .204.13:57452": EOF Enabled TLS. Any views?

Ammu (Sat, 04 Aug 2018 07:51:42 GMT):
if i am using node.js as my smart contract, then i need to go for composer?

pankajcheema (Sat, 04 Aug 2018 07:53:19 GMT):
How many genesis.block file will be created if we have 4 channels?

pankajcheema (Sat, 04 Aug 2018 07:55:16 GMT):
Fabric v1.2 says `2018-08-04 13:19:42.863 IST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'.` thie warning.

pankajcheema (Sat, 04 Aug 2018 07:55:34 GMT):
How to specify multiple channelID if you have more than 1 channels?

pankajcheema (Sat, 04 Aug 2018 08:01:53 GMT):
is this the same `channelID` that `configtxgen` is asking that we use to maintain the privacy ? like `mychannel` or different?

pankajcheema (Sat, 04 Aug 2018 08:03:06 GMT):
`configtxgen -profile SevenOrgsOrdererGenesis -channelID channelIDHere -outputBlock ./channel-artifacts/genesis.block`

pankajcheema (Sat, 04 Aug 2018 08:03:16 GMT):
why `-channelID` is being used here

pankajcheema (Sat, 04 Aug 2018 08:03:22 GMT):
what is the purpose of this?

pankajcheema (Sat, 04 Aug 2018 08:56:42 GMT):
@jyellick

pankajcheema (Sat, 04 Aug 2018 09:03:05 GMT):
@yacovm

sean (Sat, 04 Aug 2018 10:12:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LByJ58ftnuX3EuJwK) @caseylai Did you ever find an answer to this question? From what I understand, the command line interface does not offer an option for this, since you need (you as the Client) to get Proposal responses (endorsements) from each entity listed on the endorsement policy before submitting to the Orderer. This part of the docs [1] explains some of that, but it wasn't clear from the example docs / comments that was a CLI limitation. You'll probably need some type of SDK function to use "AND" rather than the default "OR". But let me know if you found an alternative option. btw, I experimented with the `--peerAddresses` option on the `peer chaincode invoke` command, but it doesn't change the functionality to provide multiple-peer endorsements in one request. [1] https://hyperledger-fabric.readthedocs.io/en/release-1.2/arch-deep-dive.html#the-client-creates-a-transaction-and-sends-it-to-endorsing-peers-of-its-choice

monarch 1 (Sat, 04 Aug 2018 13:20:51 GMT):
Hi All, I want understand how a single chaincode can work across multiple peers of different organizations? Detailed description of issue: https://stackoverflow.com/questions/51685968/can-2-peers-of-different-org-instantiate-same-chaincode-and-submit-transactions Can anyone help please?

pankajcheema (Sat, 04 Aug 2018 14:55:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jeoqkvyo74bDLAu7Z) @mastersingh24

MarcK 4 (Sat, 04 Aug 2018 17:45:01 GMT):
Has joined the channel.

MarcK 4 (Sat, 04 Aug 2018 17:45:46 GMT):
Hi guys, where can I find the current protocol specification? I am looking for the exact fields that are being used for blocks

Demontf (Sun, 05 Aug 2018 03:26:00 GMT):
Has joined the channel.

Demontf (Sun, 05 Aug 2018 03:26:39 GMT):

Clipboard - August 5, 2018 11:26 AM

Demontf (Sun, 05 Aug 2018 03:26:56 GMT):
hi guys~ Do you know how to solve this error

HuyNguyen 1 (Sun, 05 Aug 2018 03:35:58 GMT):
Has joined the channel.

pankajcheema (Sun, 05 Aug 2018 07:50:27 GMT):
Hi All

pankajcheema (Sun, 05 Aug 2018 07:50:55 GMT):
`Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'ClientAUClientINChannel' contains illegal characters ` Does anyone knows what are the valid/legal characters allowed in fabric for channel name?

pankajcheema (Sun, 05 Aug 2018 07:50:55 GMT):
`Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'ClientAUClientINChannel' contains illegal characters` Does anyone knows what are the valid/legal characters allowed in fabric for channel name?

pankajcheema (Sun, 05 Aug 2018 07:50:55 GMT):
`Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'ClientAUClientINChannel' contains illegal characters` Does anyone knows what are the valid/legal characters allowed in fabric for channel name?

pankajcheema (Sun, 05 Aug 2018 07:50:55 GMT):
`Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'ClientAUClientINChannel' contains illegal characters` Does anyone knows what are the valid/legal characters allowed in fabric for channel name?

MatanD (Sun, 05 Aug 2018 08:57:44 GMT):
Has joined the channel.

bh4rtp (Sun, 05 Aug 2018 10:33:18 GMT):
@Demontf check the pk file exist or not.

mastersingh24 (Sun, 05 Aug 2018 11:59:00 GMT):
@pankajcheema - channel names must be all lower case

greg2git (Sun, 05 Aug 2018 12:16:24 GMT):
what's the easiest way to inspect mychannel_0.block?

pankajcheema (Sun, 05 Aug 2018 12:23:24 GMT):
@mastersingh24 I got it. Thanks

pankajcheema (Sun, 05 Aug 2018 12:23:46 GMT):
lowercase, dot(.), and hyphen (-) are allowed only

Demontf (Sun, 05 Aug 2018 12:48:15 GMT):

Clipboard - August 5, 2018 8:48 PM

Demontf (Sun, 05 Aug 2018 12:48:56 GMT):
@bh4rtp this is the other error tip

nucarlos (Sun, 05 Aug 2018 15:37:49 GMT):
Has joined the channel.

nucarlos (Sun, 05 Aug 2018 15:37:57 GMT):
Hi, I am new with hyperledger, I create a tutorial network, now I want to upgrade it but it gives me the following error

nucarlos (Sun, 05 Aug 2018 15:39:00 GMT):
vagrant@vagrant:~/fabric-dev-servers/tufactoring-network$ composer network upgrade --networkName tufactoring-network --networkVersion 0.0.2 --card PeerAdmin@hlfv1 Upgrading business network tufactoring-network to version 0.0.2 ✖ Upgrading business network definition. This may take a minute... Error: Error trying to upgrade business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT Command failed

nucarlos (Sun, 05 Aug 2018 15:40:48 GMT):
You can help me to know the steps to update my tutorial network

VikramBelathur (Sun, 05 Aug 2018 17:39:37 GMT):
Has joined the channel.

rustemabd (Sun, 05 Aug 2018 21:07:51 GMT):
Has joined the channel.

davidhu (Mon, 06 Aug 2018 00:51:40 GMT):
@nucarlos i suggest you restart fabric, and install again

frank123456 (Mon, 06 Aug 2018 03:01:17 GMT):
Has joined the channel.

rajanashutosh (Mon, 06 Aug 2018 03:27:47 GMT):
@jvsclp , A simple use case say suppose you are going to monitor stock exchange related trade data which might get update in every seconds or suppose weather forecast information. They might have frequent updates so is it better to have all those information together in single network with different channels. Thinking on data flow which might happen heavily apart from public channels

Akash-digiledge (Mon, 06 Aug 2018 03:57:18 GMT):
how to add nested structure in chaincode

thakurnikk (Mon, 06 Aug 2018 05:09:20 GMT):
I am trying to implement ACL in first network but my channel is not being created. It results in ```Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied```, these are the DEBUG logs - https://hastebin.com/ulirifisij.rb , does anyone know what the issue is.

thakurnikk (Mon, 06 Aug 2018 05:09:20 GMT):
I am trying to implement ACL in first network but my channel is not being created. It results in ```Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied```, these are the DEBUG logs - https://hastebin.com/ulirifisij.rb , does anyone know what the issue is. @jyellick

ikoma-nis (Mon, 06 Aug 2018 06:01:45 GMT):
Hi, I create a tutorial network. Is it possible to convert PBFT to PoW?

bh4rtp (Mon, 06 Aug 2018 06:19:28 GMT):
i switch my fabric network from solo ordering to kafka taking fabric e2e as an example. when creating channel, the orderer reports an error: ```[orderer/common/broadcast] Handle -> WARN ac5 [channel: tradech] Rejecting broadcast of message from 172.26.0.1:47250 with SERVICE_UNAVAILABLE: rejected by Consenter: will not enqueue, consenter for this channel hasn't started yet``` has anyone faced this issue? and how to fix it?

SaraEmily (Mon, 06 Aug 2018 06:28:08 GMT):
@ikoma-nis Why would you want PoW in a permissioned blockchain?

ikoma-nis (Mon, 06 Aug 2018 06:31:06 GMT):
@SaraEmily I would like to research PoW. It would be desirable if there is a public blockchain framework.

SaraEmily (Mon, 06 Aug 2018 06:35:05 GMT):
Okay, but then Fabric is not the right framework since it is permissioned. I think you want a permissionless blockchain (not necessarily public), check out the other hyperledger projects https://www.hyperledger.org/

yacovm (Mon, 06 Aug 2018 07:28:32 GMT):
@ikoma-nis using PoW for a permissioned blockchain is like having a modern car but have horses pull it

thPart (Mon, 06 Aug 2018 07:52:56 GMT):
identit

Legiit (Mon, 06 Aug 2018 09:10:38 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

Legiit (Mon, 06 Aug 2018 09:10:48 GMT):
is this the correct resource to serve your HLF network over HTTPS?

bh4rtp (Mon, 06 Aug 2018 09:19:29 GMT):
@yacovm interesting, finally understood. you mean pull by horses instead of the existing engine. :grinning:

manoj485 (Mon, 06 Aug 2018 09:55:04 GMT):
Has joined the channel.

manoj485 (Mon, 06 Aug 2018 09:55:10 GMT):
Hi , I need to create publickey when user registered and need send it to user, then user needs create privatekey it is possible in hyperledger? if possible how?

midhun14 (Mon, 06 Aug 2018 10:01:20 GMT):
can someone plz help me in how to handle events in hl fabric?

bh4rtp (Mon, 06 Aug 2018 10:44:06 GMT):
i have 2 channels, andhow to define cross channel access policy?

bh4rtp (Mon, 06 Aug 2018 10:44:06 GMT):
i have 2 channels, how to define cross channel access policy?

YILMAZKORKMAZ (Mon, 06 Aug 2018 11:31:29 GMT):
Has joined the channel.

YILMAZKORKMAZ (Mon, 06 Aug 2018 11:31:52 GMT):
#couchDB

Ammu (Mon, 06 Aug 2018 11:32:28 GMT):

int.png

1234 (Mon, 06 Aug 2018 12:02:47 GMT):
@ammu Increase timeout in promise

Tony (Mon, 06 Aug 2018 12:12:58 GMT):
Hi all iam getting an error while using GetPrivateData 2018-08-06 12:04:02.804 UTC [shim] handleGetState -> ERRO 007 [d2376a0a] GetState received error ERROR

Tony (Mon, 06 Aug 2018 12:13:14 GMT):
This is the error:-2018-08-06 12:04:02.804 UTC [shim] handleGetState -> ERRO 007 [d2376a0a] GetState received error ERROR

Legiit (Mon, 06 Aug 2018 13:12:22 GMT):
have this error `unable to load orderer.tls.rootcert.file` witht his command: `docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx --tls` I added --cafile with a path to the `tlsca.example.com-cert.pem`, but It says the folder/file does not exists

lepar (Mon, 06 Aug 2018 13:58:06 GMT):
@Tony Send your docker log where the transaction was executed

lepar (Mon, 06 Aug 2018 14:00:31 GMT):
@Legiit double check the path and the env variables by typing "env" in the peer0.org1.example.com container

Puneet7nov (Mon, 06 Aug 2018 14:02:28 GMT):
Hi, can you guide me to the most updated tutorial that teaches about integrating IoT devices with Hyperledger blockchain. Something similar to the Tuna fish example used in the demo.

Legiit (Mon, 06 Aug 2018 14:09:09 GMT):
``` HOSTNAME=56425cb78a1a CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key HOME=/root CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 CORE_PEER_ID=peer0.org1.example.com CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_basic TERM=xterm FABRIC_CFG_PATH=/etc/hyperledger/fabric PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/ CORE_LEDGER_STATE_STATEDATABASE=CouchDB PWD=/opt/gopath/src/github.com/hyperledger/fabric CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_LOGGING_PEER=debug ``` I have no clue what all this is :joy: I am not a docker-guy

Legiit (Mon, 06 Aug 2018 14:09:09 GMT):
``` HOSTNAME=56425cb78a1a CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key HOME=/root CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 CORE_PEER_ID=peer0.org1.example.com CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_basic TERM=xterm FABRIC_CFG_PATH=/etc/hyperledger/fabric PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/ CORE_LEDGER_STATE_STATEDATABASE=CouchDB PWD=/opt/gopath/src/github.com/hyperledger/fabric CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_LOGGING_PEER=debug ``` I have no clue whether something is right or wrong :joy: I am not a docker-guy/networking @lepar

Legiit (Mon, 06 Aug 2018 14:09:09 GMT):
``` HOSTNAME=56425cb78a1a CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key HOME=/root CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 CORE_PEER_ID=peer0.org1.example.com CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_basic TERM=xterm FABRIC_CFG_PATH=/etc/hyperledger/fabric PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/ CORE_LEDGER_STATE_STATEDATABASE=CouchDB PWD=/opt/gopath/src/github.com/hyperledger/fabric CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_LOGGING_PEER=debug ``` I have no clue what all this is :joy: I am not a docker-guy @lepar

Legiit (Mon, 06 Aug 2018 14:09:09 GMT):
``` HOSTNAME=56425cb78a1a CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key HOME=/root CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 CORE_PEER_ID=peer0.org1.example.com CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_basic TERM=xterm FABRIC_CFG_PATH=/etc/hyperledger/fabric PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/ CORE_LEDGER_STATE_STATEDATABASE=CouchDB PWD=/opt/gopath/src/github.com/hyperledger/fabric CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_LOGGING_PEER=debug ``` I have no clue whether something is right or wrong :joy: I am not a docker-guy @lepar

chaz8080 (Mon, 06 Aug 2018 15:17:59 GMT):
Has joined the channel.

manuvarghese (Mon, 06 Aug 2018 17:28:34 GMT):
Has joined the channel.

mogarg (Mon, 06 Aug 2018 21:31:58 GMT):
fabric-client is not getting installed on mac ```> node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-darwin-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.10.1 and node@10.7.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Pre-built binaries not installable for grpc@1.10.1 and node@10.7.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Hit error Connection closed while downloading tarball file CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o rm: ./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw: No such file or directory make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Error 1 gyp CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/User/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown" gyp ERR! cwd /Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1) node-pre-gyp ERR! stack at ChildProcess. (/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Darwin 17.7.0 node-pre-gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc node-pre-gyp ERR! node -v v10.7.0 node-pre-gyp ERR! node-pre-gyp -v v0.7.0 node-pre-gyp ERR! not ok ```

mogarg (Mon, 06 Aug 2018 21:31:58 GMT):
fabric-client is not getting installed on mac ```> node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-darwin-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.10.1 and node@10.7.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Pre-built binaries not installable for grpc@1.10.1 and node@10.7.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Hit error Connection closed while downloading tarball file CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o rm: ./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw: No such file or directory make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Error 1 gyp CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/User/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown" gyp ERR! cwd /Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1) node-pre-gyp ERR! stack at ChildProcess. (/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Darwin 17.7.0 node-pre-gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc node-pre-gyp ERR! node -v v10.7.0 node-pre-gyp ERR! node-pre-gyp -v v0.7.0 node-pre-gyp ERR! not ok ```

mogarg (Mon, 06 Aug 2018 21:32:19 GMT):
\[``` Failed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1) make: *** No rule to make target `Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o', needed by `Release/libgrpc.a'. Stop. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown" gyp ERR! cwd /Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.10.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/something/.npm/_logs/2018-08-06T21_28_39_468Z-debug.log ```\]

mogarg (Mon, 06 Aug 2018 21:33:06 GMT):
```Failed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown' (1) make: *** No rule to make target `Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o', needed by `Release/libgrpc.a'. Stop. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/mohitgarg/Development/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown" gyp ERR! cwd /Users/something/something/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.10.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/something/.npm/_logs/2018-08-06T21_28_39_468Z-debug.log ```

mogarg (Mon, 06 Aug 2018 21:34:15 GMT):
Can someone please help.

bh4rtp (Tue, 07 Aug 2018 00:30:38 GMT):
@mogarg use other faster npm repository in your country.

GopalPanda (Tue, 07 Aug 2018 03:54:01 GMT):
How can i start "Fabric .Net SDK " Project in JIRA ?

GopalPanda (Tue, 07 Aug 2018 03:54:11 GMT):
Who can help me ?

Ammu (Tue, 07 Aug 2018 04:08:45 GMT):
@1234 what is promise here?

rajanashutosh (Tue, 07 Aug 2018 04:38:25 GMT):
hi all.. I wanted to understand one thing. Whenever I create a chaincode for a particular channel can see within couchdb docker container one db getting created with name like channel_chaincode name ? Is my understanding correct that for each channel chaincode combination we would have a database ?

ChunTung (Tue, 07 Aug 2018 04:39:39 GMT):
According to the HLF Kafka document, we should set the log.retention.ms = -1 and disable log.retention.bytes. From the above setting, the Kafka log will be keep growing. During our internal testing, the log size grow really big after a month. Is there anything we can do about it except getting huge harddisk for those log? Thanks.

ManuelRauber (Tue, 07 Aug 2018 04:44:28 GMT):
Has joined the channel.

1234 (Tue, 07 Aug 2018 04:53:49 GMT):
@Ammu send proposal for all peer using promise function in node SDK so increase promise timeout

pravn1729 (Tue, 07 Aug 2018 04:56:53 GMT):
Hi, i would like to know which kind of calls(synchronous or asynchronous) does the composer rest server to the hyperledger fabric network ? How to handle the network delayed responses ? How can we effectively use events ?

Ammu (Tue, 07 Aug 2018 04:57:13 GMT):
@1234 how to increase promise timeout in node SDK?

Ammu (Tue, 07 Aug 2018 05:01:54 GMT):
u mean in initiate.js ?

1234 (Tue, 07 Aug 2018 05:11:29 GMT):
yes

GowriR (Tue, 07 Aug 2018 06:11:22 GMT):
Hi all what are the steps to do go vendoring? Any docoumentation on that specific to fabric chaincodes? When i type go version on my VM I get hypledvm@hypledvm-VirtualBox:~/go/src/demandresponsepoc/chaincode/src/github.com/trade_workflow$ go version 2018-07-29 10:32:54.453 IST [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2018-07-29 10:32:54.454 IST [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ... Error starting chaincode error chaincode id not provided

ShobhitSrivastava (Tue, 07 Aug 2018 06:12:13 GMT):
Hi Everyone..Has any one implemented Service Discovery in Java Sdk? Is there modification required in fabric network due to it? Because I am getting exception on console: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNIMPLEMENTED: unknown service discovery.Discovery

Tony (Tue, 07 Aug 2018 06:22:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2BCHjjTQrGbFXTyrz) @lepar Error Unmarshalling: unexpected end of JSON input 2018-08-07 06:08:23.798 UTC [shim] handleGetState -> ERRO 01d [e53f68d0] GetState received error ERROR panic: runtime error: index out of range panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x8e55a6] goroutine 102 [running]: github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).triggerNextState(0xc42007ade0, 0x0, 0xc420084c60) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:35 +0x26 github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction.func1.1(0xc42007ade0, 0xc4200b5ec8, 0xc420084c60) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:247 +0x42 panic(0xa6e980, 0x10a6c90) /opt/go/src/runtime/panic.go:505 +0x229 main.(*SimpleChaincode).GET_HISTORY_PAN_197(0x1118058, 0xbb21a0, 0xc4200a41e0, 0xc42000c250, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, ...) /chaincode/input/src/chain197/example_cc.go:422 +0x49e main.(*SimpleChaincode).Invoke(0x1118058, 0xbb21a0, 0xc4200a41e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /chaincode/input/src/chain197/example_cc.go:90 +0x403 github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction.func1(0xc42007ade0, 0xc420084c60, 0xc42007b800) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:273 +0x4f9 created by github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:242 +0x53

yulong12 (Tue, 07 Aug 2018 06:56:20 GMT):
HI how can I set endorse policy that request all peers to signure?

Legiit (Tue, 07 Aug 2018 07:24:43 GMT):
`curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0` from byfn doesn't download a bin folder for me, where do I get it?

rajanashutosh (Tue, 07 Aug 2018 07:41:22 GMT):
Hi All, I am sporadically facing one issue. I have a up and running fabric network with single channel and multiple orgs available. I am able to instantiate and invoke methods properly. But sometimes when i install new chaincode, installation and instantiation process seems to be fine even invoke of chaincode happens with 200 OK along with payload. But while you try to retrieve the records it says record not found. When i login to couch db container and try to query the dbs available that db itself would not be available. Some times if i try to install multiple times it gets created. Please provide your suggestions why this is happening ?

d8bhatta (Tue, 07 Aug 2018 08:58:35 GMT):
when I run command (./eyfn.sh up) from this link (https://hyperledger-fabric.readthedocs.io/en/release-1.1/channel_update_tutorial.html), I am getting following error: 2018-08-07 06:34:15.956 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-08-07 06:34:15.958 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} !!!!!!!!!!!!!!! Fetching config block from orderer has Failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Unable to have Org3 peers join network

SoorajS (Tue, 07 Aug 2018 09:21:25 GMT):
I have followed the tutorial (https://www.youtube.com/watch?v=6e-f5206SE4&t=26s) and created a sample project just like mention in the tutorial. The things i have done : * Created the model cto files, logic files, permission files etc using the online hyperledger composer playground. * Exported the model and deployed the model in another machine running hyperledger fabric. * Was able to make the transaction using the composer rest api services. The transaction was then reflected in all transactions. My doubt is where are the smart contracts. I have heard that the smart contracts should be written in go or solidity. For the test version in the hyperledger composer what is understand while submitting the transaction , the logic.js file is being executed. Is this the smart contract ? So smart contract should be written in javascript? But go was advertised as fast and scalable language meaning it can handle multiple request with ease. So why go is not used or mentioned anywhere in the tutorials. I have seen other tutorials also they also so the same thing with the composer playground. The only time i can see the mentioning of the smart contracts being updated is when then "Deploy changes" has been clicked. I am not a core CS person so please excuse my mistakes if any.. Any help would be appreciated.

SoorajS (Tue, 07 Aug 2018 09:21:25 GMT):
I have followed the tutorial (https://www.youtube.com/watch?v=6e-f5206SE4&t=26s) and created a sample project just like mention in the tutorial. The things i have done : * Created the model cto files, logic files, permission files etc using the online hyperledger composer playground. * Exported the model and deployed the model in another machine running hyperledger fabric. * Was able to make the transaction using the composer rest api services. The transaction was then reflected in all transactions. My doubt is where are the smart contracts. I have heard that the smart contracts should be written in go or solidity. For the test version in the hyperledger composer what is understand while submitting the transaction , the logic.js file is being executed. Is this the smart contract ? So smart contract should be written in javascript? But go was advertised as fast and scalable language meaning it can handle multiple request with ease. So why go is not used or mentioned anywhere in the tutorials. I have seen other tutorials also they also so the same thing with the composer playground. The only time i can see the mentioning of the smart contracts being updated is when then "Deploy changes" has been clicked. I am not a core CS person so please excuse my mistakes if any.. Any help would be appreciated.

SoorajS (Tue, 07 Aug 2018 09:21:25 GMT):
I have followed the tutorial (https://www.youtube.com/watch?v=6e-f5206SE4&t=26s) and created a sample project just like mention in the tutorial. The things i have done : * Created the model cto files, logic files, permission files etc using the online hyperledger composer playground. * Exported the model and deployed the model in another machine running hyperledger fabric. * Was able to make the transaction using the composer rest api services. The transaction was then reflected in all transactions. My doubt is where are the smart contracts. I have heard that the smart contracts should be written in go or solidity. For the test version in the hyperledger composer what is understand while submitting the transaction , the logic.js file is being executed. Is this the smart contract ? So smart contract should be written in javascript? But go was advertised as fast and scalable language meaning it can handle multiple request with ease. So why go is not used or mentioned anywhere in the tutorials. I have seen other tutorials also they also so the same thing with the composer playground. The only time i can see the mentioning of the smart contracts being updated is when then "Deploy changes" has been clicked. I am not a core CS person so please excuse my mistakes if any.. Any help would be appreciated.

pravn1729 (Tue, 07 Aug 2018 10:16:06 GMT):
@SoorajS , Fabric Composer is a tool for creating applications in a very easy way. They have created a high level language instead of writing the native go language for fabric chaincode. They have also created API's for interacting with the fabric network in js. So, the logic.js, cto,acl's,qry files are collectively called as a Chaincode(SmartContract)

pravn1729 (Tue, 07 Aug 2018 10:18:35 GMT):
These are different chaincodes where it can be implemented with go language and even with js support of fabric https://github.com/hyperledger/fabric-samples/tree/release-1.2/chaincode . or you can even implement with high level language using Composer tools

SoorajS (Tue, 07 Aug 2018 10:34:06 GMT):
@pravn1729 : Thanks you so much for the reply. Now i got a general idea. So what about the performance in using javascript when compared to go. Suppose 1000 users login to the dapp at the same time and perform operations ? The link that you have mentioned i have checked it out. They have created a go version and javascript version. From the tutorials i understood javascript can be used with the hyperledger playground. But how to use go? can you give me some solid links which i can get clear understanding ?

pravn1729 (Tue, 07 Aug 2018 10:50:28 GMT):
@SoorajS , I think there will not be any change in the performance. you can follow byfn.sh script and follow the script.sh and utils.sh files from scripts folder where you can find deployment and invoking of chaincode which is written in go language. Search for CC_SRC_PATH in script.sh which is the go program location.

pravn1729 (Tue, 07 Aug 2018 10:50:28 GMT):
@SoorajS , I think there will not be any change in the performance. you can follow byfn.sh script in the below link and follow the script.sh and utils.sh files from scripts folder where you can find deployment and invoking of chaincode which is written in go language. Search for CC_SRC_PATH in script.sh which is the go program location.

pravn1729 (Tue, 07 Aug 2018 10:50:44 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.2/first-network

Tony (Tue, 07 Aug 2018 10:56:37 GMT):
Hi all iam getting an error while using GetPrivateData 2018-08-06 12:04:02.804 UTC [shim] handleGetState -> ERRO 007 [d2376a0a] GetState received error ERROR This is the error:-2018-08-06 12:04:02.804 UTC [shim] handleGetState -> ERRO 007 [d2376a0a] GetState received error ERROR

Tony (Tue, 07 Aug 2018 11:13:30 GMT):
More Description:-2018-08-07 11:12:49.403 UTC [shim] handleGetState -> ERRO 003 [372a8d55] GetState received error ERROR Owner: Admin@org4.example.comtimeUnix 2018 ENTERED PAN: BGCPM0352CQUERIED HASH: ENTERED HASH: 6909c02c5069f7006aa510f02825b721191e9c032fd43d6efabe14d4b627b30d595eeb4f94ef3481069fd433ad59101cf2acfb20ab2b0de79ea22f022c4c5312 Successfully stored hash 2018-08-07 11:12:49.405 UTC [shim] handlePutState -> ERRO 004 [372a8d55] Received ERROR. Payload: PUT_STATE failed: transaction ID: 372a8d55cb1616e28c7ca359b346c273d5fef073c9ebd9734c0ff248b4521190: collection config not define for namespace [o279] 2018-08-07 11:12:49.406 UTC [shim] handlePutState -> ERRO 005 [372a8d55] Received ERROR. Payload: PUT_STATE failed: transaction ID: 372a8d55cb1616e28c7ca359b346c273d5fef073c9ebd9734c0ff248b4521190: collection config not define for namespace [o279] 2018-08-07 11:12:52.385 UTC [example_cc0] Info -> INFO 006 ########### example_cc0 Invoke ########### 2018-08-07 11:12:52.388 UTC [shim] handleGetState -> ERRO 007 [ba8e08e5] GetState received error ERROR 2018-08-07 11:12:52.390 UTC [shim] handlePutState -> ERRO 008 [ba8e08e5] Received ERROR. Payload: PUT_STATE failed: transaction ID: ba8e08e53b5f80e6a4c5ec88a4e2822f6b97f3c4968759b668097b31ee074c69: collection config not define for namespace [o279] 2018-08-07 11:12:52.391 UTC [shim] handlePutState -> ERRO 009 [ba8e08e5] Received ERROR. Payload: PUT_STATE failed: transaction ID: ba8e08e53b5f80e6a4c5ec88a4e2822f6b97f3c4968759b668097b31ee074c69: collection config not define for namespace [o279]

dave.enyeart (Tue, 07 Aug 2018 11:18:06 GMT):
It says you are trying to use a collection in your chaincode which hasn't been defined during chaincode instantiation

Tony (Tue, 07 Aug 2018 11:22:35 GMT):
Does the collection name has any specific rules attached to it or can it be anything??

Tony (Tue, 07 Aug 2018 11:23:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5sePPxfBYKayjXq5T) @dave.enyeart Does the collection name has any specific rules attached to it or can it be anything??

Tony (Tue, 07 Aug 2018 11:26:11 GMT):
@dave.enyeart this is my buildchainodeproposal func => var request = { chaincodePath: chaincode_path, chaincodeId: chaincodeID, chaincodeVersion: version, fcn: '', args: [], txId: tx_id, // use this to demonstrate the following policy: // 'if signed by org1 admin, then that's the only signature required, // but if that signature is missing, then the policy can also be fulfilled // when members (non-admin) from both orgs signed' 'endorsement-policy': { identities: [ { role: { name: 'member', mspId: first_mspid } }, { role: { name: 'member', mspId: second_mspid } }, { role: { name: 'admin', mspId: first_mspid } }, { role: { name: 'admin', mspId: second_mspid } } ], policy: { '1-of': [ // { 'signed-by': 2 }, { '2-of': [{ 'signed-by': 0 }, { 'signed-by': 1 }] }, { '2-of': [{ 'signed-by': 2 }, { 'signed-by': 3 }] } ] } }, 'collections-config': collectionsConfigPath197 }; return request;

Tony (Tue, 07 Aug 2018 11:27:01 GMT):
@dave.enyeart install request=>var request = { targets: targets, chaincodePath: chaincodepath, chaincodeId: chaincodeid, chaincodeVersion: chaincodeversion, 'collections-config': collectionsConfigPath197 };

Legiit (Tue, 07 Aug 2018 11:29:14 GMT):
Hey guys - how to get the `CA1_PRIVATE_KEY```` 2018-08-07 11:25:37.612 UTC [lscc] executeInstall -> INFO 036 Installed Chaincode [MyChainCode] Version [1.0] to peer 2018-08-07 11:25:52.938 UTC [lscc] Invoke -> ERRO 037 error getting chaincode MyChainCode:1.0 on channel [mychannel]: could not find chaincode with name 'MyChainCode:1.0' ``` I get this error :sweat_smile: anyone a clue?

Legiit (Tue, 07 Aug 2018 11:29:14 GMT):
2018-08-07 11:25:37.612 UTC [lscc] executeInstall -> INFO 036 Installed Chaincode [MyChainCode] Version [1.0] to peer 2018-08-07 11:25:52.938 UTC [lscc] Invoke -> ERRO 037 error getting chaincode MyChainCode:1.0 on channel [mychannel]: could not find chaincode with name 'MyChainCode:1.0' ``` I get this error :sweat_smile: anyone a clue?

Legiit (Tue, 07 Aug 2018 11:29:14 GMT):
``` 2018-08-07 11:25:37.612 UTC [lscc] executeInstall -> INFO 036 Installed Chaincode [MyChainCode] Version [1.0] to peer 2018-08-07 11:25:52.938 UTC [lscc] Invoke -> ERRO 037 error getting chaincode MyChainCode:1.0 on channel [mychannel]: could not find chaincode with name 'MyChainCode:1.0' ``` I get this error :sweat_smile: anyone a clue?

Tony (Tue, 07 Aug 2018 11:31:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iGqmqksenKWTN39Av) @Legiit check your GOPATH once

Legiit (Tue, 07 Aug 2018 11:35:14 GMT):
I am using node for chaincode :P @Tony

Tony (Tue, 07 Aug 2018 12:01:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5sePPxfBYKayjXq5T) @dave.enyeart I think my sdk is unable to get the proper path.The path to the config file should be till the file or the directory

jrosmith (Tue, 07 Aug 2018 12:19:40 GMT):
@Legiit can we see the request you're passing up via an sdk? I think you need to reference your chaincode as just `MyChainCode`, not `MyChainCode:1.0`

Legiit (Tue, 07 Aug 2018 12:29:53 GMT):
I tried without the :1.0 :D Still didn't exist & I do it through CLI for now, just to test if it works, using this command ``` peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n MyChainCode --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt -c '{"function":"myfunc","Args":["myargs"]}' ``` @jrosmith

Legiit (Tue, 07 Aug 2018 12:30:55 GMT):
I use the BYFN.sh script and replaced `mycc` with my chaincode name and added my chaincode to the chaincode folder and modified the path accordingly

Legiit (Tue, 07 Aug 2018 12:31:07 GMT):
I'd assume that would work :P

Legiit (Tue, 07 Aug 2018 12:31:13 GMT):
It does not :D

migrenaa (Tue, 07 Aug 2018 12:31:16 GMT):
Hello, where are stored the certificates generated by FabricCA? Using the NodeJS SDK, I was specifying KeyValueStore a path in the file system and when a user is registered the certificates were stored there. But we need some centralized store because we will be using more than one application. How do you configure for example mysql to be the certificates store of the system?

jrosmith (Tue, 07 Aug 2018 12:33:49 GMT):
@Legiit i see a lot of `install` logs but don't see any `instantiation` logs

jrosmith (Tue, 07 Aug 2018 12:34:17 GMT):
@migrenaa #fabric-ca might have better answers for you

jrosmith (Tue, 07 Aug 2018 12:34:32 GMT):
oh nvm i see you posted there

migrenaa (Tue, 07 Aug 2018 12:34:47 GMT):
yep sorry my mistake. i first posted it here... :/

Legiit (Tue, 07 Aug 2018 12:45:31 GMT):
I've sent a screenshot @jrosmith

dave.enyeart (Tue, 07 Aug 2018 12:51:40 GMT):
@Tony Please post your node sdk questions to #fabric-sdk-node , the experts in that area hang out over there.

RealWizard (Tue, 07 Aug 2018 14:22:34 GMT):
Has joined the channel.

RealWizard (Tue, 07 Aug 2018 14:22:39 GMT):
Hi

RealWizard (Tue, 07 Aug 2018 14:22:54 GMT):
I have a question about Hyperledger Fabric

RealWizard (Tue, 07 Aug 2018 14:23:02 GMT):
What can I do using it?

RealWizard (Tue, 07 Aug 2018 14:23:16 GMT):
That is the list of use case of it

RealWizard (Tue, 07 Aug 2018 14:25:25 GMT):
anybody is here?

VictoriaW (Tue, 07 Aug 2018 14:33:12 GMT):
Hi ! Im getting this error, when try to generate a channel: `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` In the Logs of the orderer I have an error too: `deduplicate -> ERRO 16b Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")) for identity 0a......` this is the command I use to generate the channel: `peer channel create -o orderer.org1.example.com:7050 -c testchannel --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/org1.example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem -f ./channel-artifacts/channel.tx` Have anybody an idea?

VictoriaW (Tue, 07 Aug 2018 14:33:12 GMT):
Hi ! Im getting this error, when try to generate a channel: `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` In the Logs of the orderer I have an error too: `deduplicate -> ERRO 16b Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com")) for identity 0a......` this is the command I use to generate the channel: `peer channel create -o orderer.org1.example.com:7050 -c testchannel --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/org1.example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem -f ./channel-artifacts/channel.tx` Have anybody an idea? *SOLUTION:* Just cleanup the docker volumes, like it is mentioned here: https://stackoverflow.com/questions/49588007/error-when-creating-an-new-channel-bad-request-error-authorizing-update-err

jvsclp (Tue, 07 Aug 2018 14:35:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DpZ8xyQbg5ZNNrqMY) @yulong12 See https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html

jvsclp (Tue, 07 Aug 2018 14:38:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gJanPEzSrkSsrGoi6) @RealWizard Here you go: https://hyperledger-fabric.readthedocs.io/en/release-1.2/whatis.html

RealWizard (Tue, 07 Aug 2018 14:40:22 GMT):
@jvsclp Thx

rajanashutosh (Tue, 07 Aug 2018 14:50:19 GMT):
@jvsclp @dave.enyeart -- I am having a issue where we have installed and instantiated chaincode but when we invoke Save method it sets the data into World state i get a status as 200 Ok with payload. Logs are proper in chain-code container. But when i retrieve the contents it says not found. Also, within couchdb container db is not created within it.

rajanashutosh (Tue, 07 Aug 2018 14:52:03 GMT):
I checked the logs but couldn't find much details on it. And as per some stackoverflow comments it was mentioned peer is not able to orderer hence CLI doesnt knows whether transaction has been committed to ledger. And suggested orderer to be kept orderer:7050 but already same way i have configured

dave.enyeart (Tue, 07 Aug 2018 14:57:15 GMT):
CLI would return an error if it can't connect to orderer for transaction submission. Look at the peer debug and see if it is committing the block. Start peer with CORE_LOGGING_LEVEL=DEBUG

rajanashutosh (Tue, 07 Aug 2018 15:27:21 GMT):
@dave.enyeart, I have the debug logging enabled. So can it be cause of time out issue ? If this happens how can i identify in rest api ?

rajanashutosh (Tue, 07 Aug 2018 15:28:31 GMT):
I meant how can we identify whether the block has been committed to ledger ?

lay-z (Tue, 07 Aug 2018 15:37:05 GMT):
Is it possible to gain access to which organisation a chain-code execute transaction? To use it to stop certain organizations from having access to particular chain code methods. Fabric 1.1

lay-z (Tue, 07 Aug 2018 15:37:17 GMT):
hi everyone :wave_tone3:

hypere (Tue, 07 Aug 2018 15:40:43 GMT):
Has joined the channel.

alokmatta (Tue, 07 Aug 2018 15:41:06 GMT):
hi @lay-z would be good to see if the chaincode can access the tx endorer proposal or even the endorder peer

akshay.lawange (Tue, 07 Aug 2018 16:06:03 GMT):
Hi, Can anyone help with the following error? I got it while querying to Private data chaincodes. ``` error: [Remote.js]: Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline at checkState (C:\Users\user1\Desktop\1.2_UI\UI\node_modules\grpc\src\client.js:838:16) ``` All the peer names and urls and port numbers I checked everything is fine.

lay-z (Tue, 07 Aug 2018 16:20:05 GMT):
@alokmatta do you known if theres any doccumentation about what the chaincode can see on the shims?

lay-z (Tue, 07 Aug 2018 16:20:37 GMT):
@dave.enyeart hopefully you can point me in the right direction? :sweat_smile:

dave.enyeart (Tue, 07 Aug 2018 16:26:30 GMT):
@lay-z take a look at https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid

lay-z (Tue, 07 Aug 2018 16:34:46 GMT):
Awesome!! Thats exactly what i'm looking for. Thank you :kissing_heart:

am (Tue, 07 Aug 2018 17:09:03 GMT):
Hi..is there a way to make communication between one chain code container to another protected by TLS..let's say c1 calls c2 c --> c2 ..can that communication be protected by TLS?

jvsclp (Tue, 07 Aug 2018 17:22:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qefubEHNPHSQTM5LJ) @am When you are referring to a chain code container, you are referencing chaincode calling another instance of chaincode to run a routine?

am (Tue, 07 Aug 2018 17:39:49 GMT):
@jvsclp yes exactly that

jvsclp (Tue, 07 Aug 2018 18:12:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eWNhAfATqiR5X4wgs) @am Is the function or routine being called proprietary? Essentially, a black box where you submit an input from c1, call the second chaincode container, c2, to perform it's function (which you can't see), to get the output for the rest of your program?

kbreite27 (Tue, 07 Aug 2018 19:00:10 GMT):
Hi, general question here looking for advice as far as best practices for deploying a network in order to get high levels of performance and resiliency when setting up a first network....essentially is their guidance on how to set up the first network

jvsclp (Tue, 07 Aug 2018 19:01:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tAyZXdg2xGjTithNe) @kbreite27 This should help answer your question: https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html

kbreite27 (Tue, 07 Aug 2018 19:22:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WpRuWEGurqyjqxSv4) @jvsclp I am looking for more of an example of # of peers, orderers, network requirements, capacity etc....I know that is vague and will definitely vary depending on the network but thought to see if someone was putting something together

kbreite27 (Tue, 07 Aug 2018 19:22:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BdKkQGETtgszHfM7o) That is a good first step, Thank you!

janmpo (Tue, 07 Aug 2018 19:36:19 GMT):
Has joined the channel.

janmpo (Tue, 07 Aug 2018 19:36:59 GMT):
Dear all, I'm trying to understand the way fabric behaves when you have private channels.

janmpo (Tue, 07 Aug 2018 19:44:41 GMT):
Let us suppose the radish video example where one of the markets (organic market in California) has a special buy price. There are 2 options to achieve this: - 1) You have a fully duplicated channel with all the information where only radish prices are lower. - 2) Or you have a private channel only with the special prices, that relies on the public channel in order to avoid work duplication (imagine with hundreds of markets with special prices each one). Option 1) is clear to me, however I don't understand how to proceed to do step 2) in order to not duplicate everything, i.e. inventory, transport, etc. Can anyone of you give me a clue about how can we maintain one primary channel with all the data, and secondary channels for special prices only? Thanks!!!

janmpo (Tue, 07 Aug 2018 20:17:59 GMT):
What happens if there are multiple radish farmers and all of them want to setup special prices with different markets?

am (Tue, 07 Aug 2018 21:34:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HhxbA9RDmazBAXsRj) @jvsclp kindof a black box..essentially it is doing something common across all chaincodes.. but it may be exchanging sensitive data... my question was can this communication between the two chaincode containers be protected by TLS..

yacovm (Tue, 07 Aug 2018 22:06:49 GMT):
> Hi..is there a way to make communication between one chain code container to another protected by TLS..let's say c1 calls c2 c --> c2 ..can that communication be protected by TLS? yeah... it's protected via TLS, @am

yacovm (Tue, 07 Aug 2018 22:06:57 GMT):
cc1 sends via TLS to the peer

yacovm (Tue, 07 Aug 2018 22:07:06 GMT):
and then the peer sends to cc2 over TLS

yacovm (Tue, 07 Aug 2018 22:07:18 GMT):
there is no other way because the chaincodes are TLS clients, not servers

yacovm (Tue, 07 Aug 2018 22:07:22 GMT):
the only TLS server is the peer

jvsclp (Tue, 07 Aug 2018 22:16:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eowN8T8tvhJHrjZZX) @am No problem, I was just trying to figure out if there was a case to be made for having your application local rather than hosted elsewhere. @yacovm has explained it well and you can also see an explanation for how it works here: https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

yulong12 (Wed, 08 Aug 2018 01:59:38 GMT):
@jvsclp yes。 I have seen https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html, but I cann't find how can I set endorse policy that require all peers endorse

atcvince (Wed, 08 Aug 2018 02:47:10 GMT):
Has joined the channel.

yulong12 (Wed, 08 Aug 2018 05:23:59 GMT):
Who can help me with this question https://stackoverflow.com/questions/51739115/how-to-set-endorse-policy-in-fabric?

adarshsaraf123 (Wed, 08 Aug 2018 06:22:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2JkgpLESuA76ppfSm) @yulong12 Doesn't the `AND('Org1.member', 'Org2.member', 'Org3.member')`[link](https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html#endorsement-policy-syntax-in-the-cli) answer your question?

adarshsaraf123 (Wed, 08 Aug 2018 06:22:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2JkgpLESuA76ppfSm) @yulong12 Doesn't the `AND('Org1.member', 'Org2.member', 'Org3.member')`[(link)](https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html#endorsement-policy-syntax-in-the-cli) answer your question?

yulong12 (Wed, 08 Aug 2018 06:24:55 GMT):
@adarshsaraf123 it means :requests 1 signature from each of the three principals, but I requests all signature from each of the three principals

yulong12 (Wed, 08 Aug 2018 06:25:35 GMT):
"all" and "1" is different

adarshsaraf123 (Wed, 08 Aug 2018 06:28:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m9hexjcmQp5iAk6wR) @yulong12 So you want all the peers from within the organisation to endorse a transaction?

adarshsaraf123 (Wed, 08 Aug 2018 06:28:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XA9rwCqpxof3Rt4Tq) @yulong12 Can you please explain the use case? I am guessing that you are implying that you can't trust just one peer from an org. If that is the case then maybe you should consider treating these peers as multiple orgs. An Org defines a trust boundary, and if any of the peers within the org fall outside this trust boundary, they should likely be treated as a separate org.

adarshsaraf123 (Wed, 08 Aug 2018 06:28:41 GMT):
So you want all the peers from within an org to endorse the transaction?

yulong12 (Wed, 08 Aug 2018 06:29:11 GMT):
yes I want all the peers from within the organisation to endorse a transaction

adarshsaraf123 (Wed, 08 Aug 2018 06:32:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XA9rwCqpxof3Rt4Tq) @yulong12 Can you please explain the use case? I am guessing that you are implying that you can't trust just one peer from an org. If that is the case then maybe you should consider treating these peers as multiple orgs. An Org defines a trust boundary, and if any of the peers within the org fall outside this trust boundary, they should likely be treated as a separate org.

yulong12 (Wed, 08 Aug 2018 06:35:37 GMT):
What you meanings is that all peers from an org default trust each other?

yulong12 (Wed, 08 Aug 2018 06:35:46 GMT):
@adarshsaraf123

yulong12 (Wed, 08 Aug 2018 06:36:59 GMT):
Am I right? @adarshsaraf123

adarshsaraf123 (Wed, 08 Aug 2018 06:43:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i63YRWeQAWpETnjcY) @yulong12 Yes that would be the meaning of an org..

adarshsaraf123 (Wed, 08 Aug 2018 06:43:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i63YRWeQAWpETnjcY) @yulong12 Yes that would be the meaning of an org. To add further, think of an org as an entity in your network, and the peers of an org as the resources it is dedicating to the network.

Luxii (Wed, 08 Aug 2018 06:43:10 GMT):
I have this chaincode which on ` return shim.Error()` gives only ` bad proposal error` in application.

Luxii (Wed, 08 Aug 2018 06:43:43 GMT):
However, Im the same chaincode on different machine with fabric 1.1 images is running fine.

Luxii (Wed, 08 Aug 2018 06:43:43 GMT):
However, the same chaincode on different machine with fabric 1.1 images is running fine.

Luxii (Wed, 08 Aug 2018 06:44:17 GMT):
Has anyone encountered anything like this before or would know anything about this ?

Luxii (Wed, 08 Aug 2018 08:21:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QBdnWTqcTtNo86QD5) I was using images with `latest` tag when i got this error. After pulling back to fabric1.1 , Its running fine now

VictoriaW (Wed, 08 Aug 2018 08:22:28 GMT):
My peer cant connect to my other peer on different machine, however pinging and `telnet peer2 7051` is succesful. what could be the problem?

VictoriaW (Wed, 08 Aug 2018 08:22:28 GMT):
My peer cant connect to my other peer on different machine, however pinging and `telnet peer2 7051` is succesful. what could be the problem? *SOLUTION: * Get into your peer container (docker exec -it /bin/bash) and try to ping the other peer. (apt-get update , apt-get install iputils-ping, ping

) => not successful? add to your docker-compose-file in the peer-section `extra_hosts: - "
:"` Restart the container aaand it should work! :woo:

sakiv009 (Wed, 08 Aug 2018 08:31:32 GMT):
Has joined the channel.

swathiragha (Wed, 08 Aug 2018 08:57:42 GMT):
Has joined the channel.

edevil (Wed, 08 Aug 2018 09:33:34 GMT):
I am thinking of building a rest api for people to interact with my chaincode methods but have doubts regarding authentication. My chaincode verifies roles based on atttributes present in the user certificate. For this to work through my api users would have to contact fabric-cá first to obtain an enrollment and then pass this to my api and it would forward it in calls to fabric?

Unni_1994 (Wed, 08 Aug 2018 11:12:55 GMT):
Hi all, Maximum number of nodes that can be added to a network? Any limit?

Luxii (Wed, 08 Aug 2018 11:30:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ku3ggDodLcXgrWrYY) Does anyone know reason for this ?

am (Wed, 08 Aug 2018 16:07:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6BMAsZ9MWvWhXoBxa) @jvsclp @jvsclp @yacovm the document is great ..however in terms of TLS especially ..is a chaincode container spun up by a peer at runtime considered to be running with the same paradigms of a PEER..i.e coming to my original question what property if any makes communication between two CC containers protected by TLS? hope i make sense..

yacovm (Wed, 08 Aug 2018 16:08:54 GMT):
what do you mena "what property" ?

yacovm (Wed, 08 Aug 2018 16:08:54 GMT):
what do you mean "what property" ?

yacovm (Wed, 08 Aug 2018 16:09:14 GMT):
the peer and the chaincode communicate via TLS

yacovm (Wed, 08 Aug 2018 16:09:24 GMT):
so 2 chaincodes communicate via TLS through the peer indirectly

am (Wed, 08 Aug 2018 16:17:12 GMT):
@yacovm what i wanted to clarify was that if the property CORE_PEER_TLS_ENABLED was set to true Chaincode container 1 (cc1) calling Chaincode container 2 (cc2) directly ..will happen over TLS

yacovm (Wed, 08 Aug 2018 16:17:34 GMT):
yes

am (Wed, 08 Aug 2018 16:17:59 GMT):
@yacovm thanks for the clarification..

Samer 4 (Wed, 08 Aug 2018 16:27:27 GMT):
Has joined the channel.

Samer 4 (Wed, 08 Aug 2018 16:27:29 GMT):
Guys, i have the same question like this guy: https://lists.hyperledger.org/g/fabric/topic/22590345 - is there a "Hyperledger for Enterprise" package that include maintenance/support ; and is there a comprehensible cost information for implementation?

EvansChang (Wed, 08 Aug 2018 16:59:30 GMT):
Has joined the channel.

nrohith (Wed, 08 Aug 2018 17:21:43 GMT):
Has joined the channel.

jrosmith (Wed, 08 Aug 2018 17:51:33 GMT):
@Samer 4 i know different csp's have been coming out with offerings specific to fabric, bluemix and aws come to mind, but there is not a separate 'enterprise' version of fabric that is distributed by the hyperledger foundation.

bstolman (Wed, 08 Aug 2018 18:59:38 GMT):
Has joined the channel.

bstolman (Wed, 08 Aug 2018 19:01:24 GMT):
I was wondering if someone would be able to explain to me what the fix was for the issue linked attached. I'm still getting an error when I try to run the code. All the best! https://github.com/hyperledger/composer/issues/2973

jrosmith (Wed, 08 Aug 2018 19:08:56 GMT):
@bstolman try asking #composer

bstolman (Wed, 08 Aug 2018 19:17:29 GMT):
Thanks!

WouterVanHecke (Wed, 08 Aug 2018 20:09:38 GMT):
Heyy, I'm fairly new to Hyperledger. I've been trying to get a basic network running. I got to the point where I logged into a peer and now I want to create the channel. I need to give a path to the orderer PEM certificate. I know which file it is, but I don't really now where I'm positioned to start the path from. Can someone help me with this?

FaeLLe (Wed, 08 Aug 2018 20:16:24 GMT):
Has joined the channel.

FaeLLe (Wed, 08 Aug 2018 20:16:36 GMT):
is there any good tutorial people can point me towards

FaeLLe (Wed, 08 Aug 2018 20:17:17 GMT):
trying to find something that talks about how to configure things like peers , how to get identities set up on it etc

jvsclp (Wed, 08 Aug 2018 20:24:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bdTy2k5S8abicWJB5) @FaeLLe You might find this helpful for configuration: https://hyperledger-fabric.readthedocs.io/en/release-1.2/msp.html# If you want to do your own certificate issuance: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#

handaanmol (Wed, 08 Aug 2018 22:19:35 GMT):
Hey Everyone, I am running 6 organization, one channel network. When I am invoking the chaincode, it's not saving the values and is not sending any error as well. In the end only one of the attributes get saved in the collection, I have few empty attributes being passed into the collection inside the method defined in chaincode. What could be the possible reason for this? Thanks in advance.

topworld (Thu, 09 Aug 2018 01:29:56 GMT):
Has joined the channel.

xcui (Thu, 09 Aug 2018 01:30:16 GMT):
Hello everyone, I am playing with the endorser logic inside fabric/core/endorser/endorser.go. I want to read transaction data from existing blocks. That is, I want to read a block by a block number and then decode the raw block data into the json format. The end goal is to retrieve/decode the key/value pairs of all transactions within the retrieved block. I managed to add the following code inside endorser.go: ``` ``` ` block, err := e.s.get_block_by_number(chainID, 2) if err == nil { envelope, err := putils.GetEnvelopeFromBlock(block.GetData().Data[0]) _ = err payload, err := putils.GetPayload(envelope) _ = err tx, err := putils.GetTransaction(payload.Data) _ = err } ```` Now, I cannot figure how I can decode the transaction data from here. Any help is appreciated. Thanks! ```

lework (Thu, 09 Aug 2018 03:12:18 GMT):
Has joined the channel.

lework (Thu, 09 Aug 2018 03:12:42 GMT):
I met a error: Peer peer0.org1.example.com:7051 has rejected transaction '8ca0ae16afba7cdb4553bbd859d48ded0bd74e88733f435801949e5f3b085405' with code ENDORSEMENT_POLICY_FAILURE I met a error: Peer peer0.org1.example.com:7051 has rejected transaction '8ca0ae16afba7cdb4553bbd859d48ded0bd74e88733f435801949e5f3b085405' with code ENDORSEMENT_POLICY_FAILURE I met a error: Peer peer0.org1.example.com:7051 has rejected transaction '8ca0ae16afba7cdb4553bbd859d48ded0bd74e88733f435801949e5f3b085405' with code ENDORSEMENT_POLICY_FAILURE I met a error: Peer peer0.org1.example.com:7051 has rejected transaction '8ca0ae16afba7cdb4553bbd859d48ded0bd74e88733f435801949e5f3b085405' with code ENDORSEMENT_POLICY_FAILURE

lework (Thu, 09 Aug 2018 03:12:42 GMT):
I met a error: Peer peer0.org1.example.com:7051 has rejected transaction '8ca0ae16afba7cdb4553bbd859d48ded0bd74e88733f435801949e5f3b085405' with code ENDORSEMENT_POLICY_FAILURE

ragpach2 (Thu, 09 Aug 2018 05:46:36 GMT):
Has joined the channel.

nagaraja_sr (Thu, 09 Aug 2018 06:36:21 GMT):
when i run the service discovery cli tool i get a malformed endpoint (there is no : separating the host and port) is this a bug? ```discover peers --configFile discovery-config.yaml --server peer0.myorg.mydomain:7151 --channel channel1 [ { "MSPID": "myMSP", "LedgerHeight": 3, "Endpoint": "peer0.myorg.mydomain7051", "Identity": "-----BEGIN CERTIFICATE-----\nedited\n-----END CERTIFICATE-----\n", "Chaincodes": [ "mycc" ] }, { "MSPID": "myMSP", "LedgerHeight": 3, "Endpoint": "peer1.myorg.mydomain7051", "Identity": "-----BEGIN CERTIFICATE-----\nnedited\n-----END CERTIFICATE-----\n", "Chaincodes": [ "mycc" ] } ]```

manoj485 (Thu, 09 Aug 2018 06:45:27 GMT):
How to Block hash from ledger

toesterdahl (Thu, 09 Aug 2018 07:35:18 GMT):
Has joined the channel.

SaraEmily (Thu, 09 Aug 2018 08:06:33 GMT):
Hi everyone! When performing a query in chaincode, what happens "under the hood"? Is it simply a query to the world-state database of the peer on which the query was invoked? Or can anyone point me to a good resource for reading more? Thanks!

yacovm (Thu, 09 Aug 2018 08:08:47 GMT):
The chaincode shim container sends messages to the peer over a secure channel. The peer, queries the state database, wraps the results and puts them in a response which it sends back to the chaincode shim container.

yacovm (Thu, 09 Aug 2018 08:09:17 GMT):
The latter, continues to execute its code as the chaincode logic dictates

yacovm (Thu, 09 Aug 2018 08:09:21 GMT):
and returns to you the answer

yacovm (Thu, 09 Aug 2018 08:09:24 GMT):
via the peer

SaraEmily (Thu, 09 Aug 2018 08:09:35 GMT):
Okay, great, thanks!

chlsc (Thu, 09 Aug 2018 10:38:23 GMT):
Has joined the channel.

chlsc (Thu, 09 Aug 2018 10:41:56 GMT):
@yacovm I ran into an error message when I tested the service discovery from fabric java sdk. Hope you can take a look. By using the default endorsement file, everything works fine. However, if I changed it to be endorsed by two organizations, I got an error message when it executed the line foo.initialize(). The error message is as follows.

chlsc (Thu, 09 Aug 2018 10:42:11 GMT):
2018-08-08 09:37:55.359 UTC [discovery/endorsement] PeersForEndorsement -> WARN 36c5 Principal set computation failed: chaincode isn't installed on sufficient organizations required by the endorsement policy 2018-08-08 09:37:55.360 UTC [discovery] chaincodeQuery -> ERRO 36c6 Failed constructing descriptor for chaincode chaincodes: ,: chaincode isn't installed on sufficient organizations required by the endorsement policy

yacovm (Thu, 09 Aug 2018 11:07:59 GMT):
what is the endorsement policy?

1234 (Thu, 09 Aug 2018 11:42:28 GMT):
whom peer has validity transaction identites and signature

HellBoy_23 (Thu, 09 Aug 2018 12:32:42 GMT):
Has joined the channel.

jiq048 (Thu, 09 Aug 2018 15:52:14 GMT):
Has joined the channel.

jiq048 (Thu, 09 Aug 2018 16:13:41 GMT):
Hi everyone, I am reading the integration test of java SDK 1.2, End2endIT. I am confused with the difference between admin and peerOrgadmin. It seems admin is a user registered in the ca-client but has not generated the private-key and certificate, but peerOrgAdmin has these things whose certs are already signed by ca-server. Could anyone explain about why using the two 'admins'? the CA and MSP stuff are really hard to understand. Thanks!

WouterVanHecke (Thu, 09 Aug 2018 18:33:15 GMT):
Once you log in into a peer (docker container), is there a way to navigate through your files? see where you are / move to an other directory?

patent_person (Thu, 09 Aug 2018 19:02:59 GMT):
Has joined the channel.

patent_person (Thu, 09 Aug 2018 19:03:28 GMT):
cd

WouterVanHecke (Thu, 09 Aug 2018 19:04:35 GMT):
cd doesn't work with everything I try, is there a command like "ls" or "dir" ?

patent_person (Thu, 09 Aug 2018 19:11:22 GMT):
`docker exec -it peer.org1.example.com bash` brings me into the peer container and then I can use basic linux commands like cd and ls

patent_person (Thu, 09 Aug 2018 19:12:09 GMT):
Trouwens nederlands is misschien een optie :-)

WouterVanHecke (Thu, 09 Aug 2018 19:14:58 GMT):
pwd werkt wel, dan kom ik in de peer map, maar ls doet niets raar genoeg

WouterVanHecke (Thu, 09 Aug 2018 19:16:04 GMT):
ls -l geeft total 0, raar

patent_person (Thu, 09 Aug 2018 19:16:31 GMT):
alleen de peer met dit probleem of ook de andere conponenten ?

WouterVanHecke (Thu, 09 Aug 2018 19:17:16 GMT):
de andere ook

WouterVanHecke (Thu, 09 Aug 2018 19:18:54 GMT):
ik ben naar de root kunnen gaan met cd / daarna kon ik terug naar de map peer gaan, maar vanaf dan is die map leeg

patent_person (Thu, 09 Aug 2018 19:19:30 GMT):
kan je een ls in de / doen ?

WouterVanHecke (Thu, 09 Aug 2018 19:19:57 GMT):
bin dev home lib media opt root sbin sys usr boot etc host lib64 mnt proc run srv tmp var

patent_person (Thu, 09 Aug 2018 19:20:55 GMT):
path van de peer is /opt/gopath/src/github.com/hyperledger/fabric, kan je proberen

WouterVanHecke (Thu, 09 Aug 2018 19:21:59 GMT):
ja ik geraak aan de peer map, die bestaat, maar de map "peer" is leeg

WouterVanHecke (Thu, 09 Aug 2018 19:22:06 GMT):
ik ga morgen nog eens van scratch beginnen denk ik

patent_person (Thu, 09 Aug 2018 19:23:42 GMT):
misschien is een nieuwe download triggeren van de docker images ... moet bekennen dat ik ook nog in de fase van ontdekking zit.

patent_person (Thu, 09 Aug 2018 19:23:51 GMT):
good luck

sean (Thu, 09 Aug 2018 19:53:30 GMT):
If anyone is looking for an example of a network that doesn't need to reside on a single host (cryptogen limitations, etc) check out this tutorial. Always feel free to send me questions, suggestions, or any mistakes you spot: **MAIN PAGE**: https://github.com/TangoJ-Labs/fabric-production-tutorials **EXAMPLE w/ Solo Orderer**: https://github.com/TangoJ-Labs/fabric-production-tutorials/tree/master/orderer_solo **CRPYTO / MSP notes**: https://github.com/TangoJ-Labs/fabric-production-tutorials/blob/master/CRYPTO.md I hope to add these updates in the next few months: - SDK examples (golang) - Kafka (w/ Docker Swarm) network - configtx.yaml v1.2 (with Profile section, etc.) - NodeOU utilization for use of ".peer", ".client", etc. in endorsement policy

sean (Thu, 09 Aug 2018 19:53:30 GMT):
If anyone is looking for an example of a network that doesn't need to reside on a single host (cryptogen limitations, etc) check out this tutorial. Always feel free to send me questions, suggestions, or any mistakes you spot: **MAIN PAGE**: https://github.com/TangoJ-Labs/fabric-production-tutorials **EXAMPLE w/ Solo Orderer**: https://github.com/TangoJ-Labs/fabric-production-tutorials/tree/master/orderer_solo **CRYPTO / MSP notes**: https://github.com/TangoJ-Labs/fabric-production-tutorials/blob/master/CRYPTO.md I hope to add these updates in the next few months: - SDK examples (golang) - Kafka (w/ Docker Swarm) network - configtx.yaml v1.2 (with Profile section, etc.) - NodeOU utilization for use of ".peer", ".client", etc. in endorsement policy

plato (Thu, 09 Aug 2018 21:59:38 GMT):
Has joined the channel.

plato (Thu, 09 Aug 2018 22:01:04 GMT):
grpcs

plato (Thu, 09 Aug 2018 22:10:08 GMT):
hey Guys, I have stuck with an issue to query the a chaincode , I have install and instanitae MArble02_private on the first network and it works perfectly on the CLI but once I tried to use Node js SDK to query the same thing that I done in CLI it did not work. FYI, I have enable TLS on Ca and Peers so I have to query thru gRPCs instead of gRPC for that reason I have passed the correct tls for peers as well and the tls hand shake it seems it works perfectly BUT at the end I receiving this error which it mentioned ``` ``` Store path:/home/plato/fabric/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence error: [Remote.js]: Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline at checkState (/home/plato/fabric/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:838:16) Query has completed, checking results error from query = Error: Failed to connect before the deadline at checkState (/home/plato/fabric/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:838:16)``` this is the coe that I used for Grpcs setup``` ` // Add Tls var options = { tls_cert: { Peerpem: fs.readFileSync(path.join(__dirname, './tls') + '/tlsca.org1.example.com-c$ Ordererpem: fs.readFileSync(path.join(__dirname, './tls') + '/tlsca.example.com-cer$ } }; // var fabric_client = new Fabric_Client(); // setup the fabric network var channel = fabric_client.newChannel('mychannel'); var peer = fabric_client.newPeer('grpcs://localhost:7051',{pem: options.tls_cert.Peerpem}); channel.addPeer(peer);` ``` ```

plato (Thu, 09 Aug 2018 22:11:21 GMT):
if someone can help me should be great , just stuck in this :)

MuhammadMuhaimin (Thu, 09 Aug 2018 22:33:31 GMT):
Has joined the channel.

plato (Fri, 10 Aug 2018 01:23:23 GMT):
hey Guys, any help !

plato (Fri, 10 Aug 2018 01:23:25 GMT):
?

Ammu (Fri, 10 Aug 2018 05:44:06 GMT):
in balance transfer fabric sample which db they are using?

chlsc (Fri, 10 Aug 2018 05:51:28 GMT):
@yacovm I notice from the service discovery commitment log, it mentions "Have discover/gossip finding peer in same org". Does fabric java sdk 1.2 support service discovery of peers from all the organizations of a channel?

yacovm (Fri, 10 Aug 2018 07:26:50 GMT):
Yes @chlsc

yacovm (Fri, 10 Aug 2018 07:26:59 GMT):
Use the discovery cli

yacovm (Fri, 10 Aug 2018 07:27:09 GMT):
See if the peer knows the other peers

JonathanC (Fri, 10 Aug 2018 08:15:10 GMT):
Is

JonathanC (Fri, 10 Aug 2018 08:15:33 GMT):
Hello guys, is it possible to migrate composer smart contract to fabric ?

riccardopersiani (Fri, 10 Aug 2018 08:37:17 GMT):
Hello, when I perform the operation `APIstub.InvokeChaincode`such as `APIstub.InvokeChaincode("fabcar", chainCodeArgs, "mychannel")`; is there a possibility from the chaincode `fabcar`(the chaincode called) to get the *id* of the the caller chaincode? TY. `getCreator()`just return the caller organization, I want the chaincode id.

GuillaumeTong (Fri, 10 Aug 2018 08:38:22 GMT):
Has joined the channel.

Ammu (Fri, 10 Aug 2018 09:13:38 GMT):
check in orderer.yaml in containers /etc/hyperledeger/fabric/orderer.yaml how to check in the docker?

happythedog (Fri, 10 Aug 2018 09:14:55 GMT):
Has joined the channel.

riccardopersiani (Fri, 10 Aug 2018 09:19:20 GMT):
I want the chaincode to get the chaincodeId of the caller. How can you access that folder from the chaincode?

jaswanth (Fri, 10 Aug 2018 10:03:33 GMT):
@yacovm , can you please look into it ,i am running fabric in docker swarm mode , when i use peers without couchdb its working fine , but if i add couchdb then peers are not connecting to couchdb most of the times , sometimes the commands are executing but most of the times they are failing with below error ``` Error: Error getting endorser client chaincode: endorser client failed to connect to peer1.Patients.exapmle.com:7051: failed to create new connection: context deadline exceeded ```

jaswanth (Fri, 10 Aug 2018 10:03:33 GMT):
@yacovm @lepar got below error in peer ``` 2018-08-10 14:46:24.381 UTC [couchdb] handleRequest -> WARN 017 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: read udp 127.0.0.1:34849->127.0.0.11:53: i/o timeout 2018-08-10 14:46:24.506 UTC [couchdb] handleRequest -> DEBU 018 HTTP Request: GET / HTTP/1.1 | Host: couchdb0:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-10 14:46:44.510 UTC [couchdb] handleRequest -> WARN 019 Retrying couchdb request in 250ms. Attempt:2 Error:Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: read udp 127.0.0.1:55435->127.0.0.11:53: i/o timeout ```

yacovm (Fri, 10 Aug 2018 10:18:31 GMT):
check the peer logs as well

yacovm (Fri, 10 Aug 2018 10:18:37 GMT):
maybe the peer crashed?

lepar (Fri, 10 Aug 2018 11:08:23 GMT):
@jaswanth Generally occurs when your peer isn't running. But lie yacovm said, check the peer logs cus it might also be something else

Ammu (Fri, 10 Aug 2018 12:45:00 GMT):

permission.png

jaswanth (Fri, 10 Aug 2018 14:42:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8hzuLTnckG2JjWmHn) @Ammu my peer logs shows can i know what are you trying to do , btw add cd infront to get into the directry

jaswanth (Fri, 10 Aug 2018 14:42:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8hzuLTnckG2JjWmHn) @Ammu can i know what are you trying to do , btw add cd infront to get into the directry

jaswanth (Fri, 10 Aug 2018 14:51:46 GMT):
@yacovm @lepar got below errors in peer ``` 2018-08-10 14:46:24.381 UTC [couchdb] handleRequest -> WARN 017 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: read udp 127.0.0.1:34849->127.0.0.11:53: i/o timeout 2018-08-10 14:46:24.506 UTC [couchdb] handleRequest -> DEBU 018 HTTP Request: GET / HTTP/1.1 | Host: couchdb0:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-10 14:46:44.510 UTC [couchdb] handleRequest -> WARN 019 Retrying couchdb request in 250ms. Attempt:2 Error:Get http://couchdb0:5984/: dial tcp: lookup couchdb0 on 127.0.0.11:53: read udp 127.0.0.1:55435->127.0.0.11:53: i/o timeout ```

jaswanth (Fri, 10 Aug 2018 14:56:28 GMT):
and after some time it connected with couchdb , `2018-08-10 14:48:14.151 UTC [couchdb] VerifyCouchConfig -> DEBU 02a VerifyConnection() dbResponseJSON: {"couchdb":"Welcome","version":"2.1.1","vendor":{"name":"The Apache Software Foundation"}}` but when joining channel got ``` Error: Error getting endorser client channel: endorser client failed to connect to peer0.Patients.example.com:7051: failed to create new connection: context deadline exceeded ``` in couchdb i see `_global_changes and users ` as `This database failed to load.` any help

colleens (Fri, 10 Aug 2018 21:31:12 GMT):
Has joined the channel.

colleens (Fri, 10 Aug 2018 21:35:50 GMT):
Hi all - does anyone know of a super simple UI application I could use with my Fabric 1.2 chaincode? I'm not looking to use Composer, and it seems most tutorials out there for this question are with Composer. I've recently found fabric-boilerplate, but it might only support Fabric v 0.6. Any advice is welcome - thanks!

plato (Fri, 10 Aug 2018 22:19:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7Ztb367FNBKR6QSbX) @colleens there is a project called fabric-starter in my understanding it is a good one but is based V1 or 1.1 not sure

plato (Fri, 10 Aug 2018 22:20:27 GMT):
xaq

colleens (Fri, 10 Aug 2018 22:53:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P6LuCniQiWDcsED9J) @plato Thank you very much!

rsainath (Sat, 11 Aug 2018 08:46:57 GMT):
Has joined the channel.

jalmeida (Sat, 11 Aug 2018 14:17:30 GMT):
Has joined the channel.

jalmeida (Sat, 11 Aug 2018 14:36:09 GMT):
Hello, I'm trying to access my network which is running HLF 1.1 on a different machine on the same network. I'm using a Raspberry Pi. I set the IP of the machine. Fabric-ca is able to communicate and authenticate, but when trying to communicate with the Orderer I get: TransactionException: Channel mychannel, send transaction failed on orderer orderer.example.com. Reason: UNKNOWN Full-stack here: https://pastebin.com/g04avf2N Any clues what is wrong? Thanks!

gmb 2 (Sun, 12 Aug 2018 04:39:38 GMT):
Has joined the channel.

nhrishi (Sun, 12 Aug 2018 04:41:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h4vcXZSaE4nADSjoY) @parthask Hi @parthask I'm getting the same error. how did you manage to solve this.

HariPranav (Sun, 12 Aug 2018 10:10:20 GMT):
Has joined the channel.

HariPranav (Sun, 12 Aug 2018 10:10:22 GMT):
hey guys my name is Hari and i wanted to know how to store the data into the Ledger in Hyperledger and to retrieve the information stored . Please Help

nukulsharma (Sun, 12 Aug 2018 10:10:33 GMT):
Has joined the channel.

nukulsharma (Sun, 12 Aug 2018 10:10:54 GMT):
Hi , Facing an issue "[2018-08-12 15:01:53.778] [DEBUG] *Create-Channel - response ::{"status":"BAD_REQUEST","info":"config does not validly parse: cannot enable application capabilities without orderer support first"}* [2018-08-12 15:01:53.778] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'mychannel' !!!!!!!!! " *Background*: 1. Used balance transfer example 2. Added chaincode - marbles private data collections 3. Earlier faced an issue, during instantiating marbles private chaincode on balance transfer network, where it seem channel capabilities were not set to 1.2. 4. Added in channel tx file, application , channel and orderer capabilties, similar to first-network script. 5. re-generated mychannel.tx only ( not crypto materials) 6. Now, creation of channel itself is failing due to above error. Unable to find where should i enable ordered capabilities. Requesting here to pls assist, since i couldnt find anything on google or stackoverflow or other fabric forums ` nukulsharma$ docker run --rm hyperledger/fabric-tools:latest peer version | sed -ne 's/ Version: //p' | head -1 1.2.0`

rishabchopra8 (Sun, 12 Aug 2018 11:26:15 GMT):
Has joined the channel.

SiliconBerry (Sun, 12 Aug 2018 16:33:16 GMT):
Has joined the channel.

nukulsharma (Sun, 12 Aug 2018 18:03:55 GMT):
Update: Resolved it, it seem genesis block was not generated with new capabilities. Regeneration resolved it.

aroca (Sun, 12 Aug 2018 23:42:25 GMT):
Has joined the channel.

vagnerasilva (Mon, 13 Aug 2018 00:35:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=osxWo89jNhjNWKyS3) @nhrishi Pain atention in your version fabric-client , the latest have problems with eventhub ! i suggesting you use 1.2 version like this "dependencies": { "fabric-ca-client": "1.2.0", "fabric-client": "1.2.0", "grpc": "^1.6.0" },

chlsc (Mon, 13 Aug 2018 01:25:59 GMT):
@rickr Hi Rick. I ran into an issue of service discovery of fabric java sdk 1.2. Hope you can help.

chlsc (Mon, 13 Aug 2018 01:26:41 GMT):
From the End2EndIT, i changed the foo channel example to add peers from org2, and from the log, they do respond to the query. 2018-08-10 08:31:52,656 pool-5-thread-1 DEBUG Channel:3559 - Channel foo send proposal to peer peer1.org2.example.com at url grpcs://localhost:8056 2018-08-10 08:31:52,656 pool-5-thread-1 DEBUG Peer:217 - peer.sendProposalAsync name: peer1.org2.example.com, url: grpcs://localhost:8056 2018-08-10 08:31:52,663 pool-5-thread-1 DEBUG Channel:3592 - Channel foo got back from peer peer0.org1.example.com status: 200, message: 2018-08-10 08:31:52,668 pool-5-thread-1 DEBUG Channel:3592 - Channel foo got back from peer peer1.org1.example.com status: 200, message: 2018-08-10 08:31:52,672 pool-5-thread-1 DEBUG Channel:3592 - Channel foo got back from peer peer0.org2.example.com status: 200, message: 2018-08-10 08:31:52,677 pool-5-thread-1 DEBUG Channel:3592 - Channel foo got back from peer peer1.org2.example.com status: 200, message: Query payload of b from peer peer0.org1.example.com returned 300 Query payload of b from peer peer1.org1.example.com returned 300 Query payload of b from peer peer0.org2.example.com returned 300 Query payload of b from peer peer1.org2.example.com returned 300 However, if i execute the following line. ./bin/discover --configFile conf.yaml peers --channel foo --server peer0.org1.example.com:7051 i only get peers from org1

chlsc (Mon, 13 Aug 2018 01:27:01 GMT):

Clipboard - August 13, 2018 9:26 AM

chlsc (Mon, 13 Aug 2018 01:30:12 GMT):
the docker-compose file i am using is fabric-sdk-java/src/test/fixture/sdkintegration/docker-compose.yaml

midside254 (Mon, 13 Aug 2018 02:28:04 GMT):
Has joined the channel.

issac.liu (Mon, 13 Aug 2018 03:07:25 GMT):
Hi, I am fairly new to hyperledger and currently playing around with "Writing Your First Application" Tutorial and ran into this error, do anyone has any idea how to resolve it? Any help will be appreciated :D Command ran: "$ node query.js" Output Error: Store path:D:\TestFolder2\fabric-samples\fabcar\hfc-key-store Successfully loaded user1 from persistence error: [Remote.js]: Error: Failed to connect before the deadline Query has completed, checking results error from query = Error: Failed to connect before the deadline at checkState (D:\TestFolder2\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client.js:838:16)

nhrishi (Mon, 13 Aug 2018 03:59:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=etoAFAzdr4f3CLeRb) @vagnerasilva Thanks. Yes, we used the latest ChannelEventHub APIs and fabric-client v1.2 , I tried both newChannelEventHub and getChannelEventHubsForOrg APIs to connect and registerChaincodeEvent. one issue is - we're getting "ChannelEventHub has been shutdown" Error and second is- for registerChaincodeEvent, we only received chaincode_id, tx_id and event_name as part of ChaincodeEvent object and didnt receive actual payload from chaincode

Ammu (Mon, 13 Aug 2018 04:36:41 GMT):
what are the things need to do before starting our own project in hyperledger fabric? I just took sample project as balance transfer

d8bhatta (Mon, 13 Aug 2018 05:49:11 GMT):
Hello Guys Can we store document in blockchain as BLOB? if yes, will it affect the performance of the blockchain in long run? If its not good to save document in blockchain then what would be the alternative? Please suggest

GowriR (Mon, 13 Aug 2018 06:17:34 GMT):
Experts here - I am facing a problem. I have chaincode version 0 installed and instantiated perfectly. Now i want to make a few lines on change in the chaincode and test it again. Hence i install v1 and try to instantiate v1. This fails (Proposal fails through the fabric SDK). Once i remove/stop docker containers and the installed chaincodes from the peer it works (sometimes it does not and takes an old code). Then i install v0 again and start testing. Is there a better way to do it?

chapagain (Mon, 13 Aug 2018 06:25:00 GMT):
Has joined the channel.

chapagain (Mon, 13 Aug 2018 06:25:48 GMT):
Hello, - I tried to copy the `fabcar` fabric-sample code and rename it to my app name, let's say `myapp`. (path of myapp is `fabric-samples/myapp`) - Then, I renamed the nodejs chaincode of myapp from `fabcar.js` to `myapp.js`. (path of the chaincode file is `fabric-samples/chaincode/myapp/node/myapp.js`) - I have also updated `package.json` file (changing fabcar text to myapp) inside the chaincode folder. (path of the file is `fabric-samples/chaincode/node/package.json`) - Now, when I go to myapp folder and run the command `./startFabric.sh node`, I get the following error: ``` Error: error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode myapp:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:eb1ef3ab2c0e88f9ecf9eed4b437cb27551df203289d644faf7328c484cf855b) ``` Here's my `startFabric.sh` code: ``` #!/bin/bash # # Copyright IBM Corp All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # # Exit on first error set -e # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 starttime=$(date +%s) LANGUAGE=${1:-"golang"} CC_SRC_PATH=github.com/myapp/go if [ "$LANGUAGE" = "node" -o "$LANGUAGE" = "NODE" ]; then CC_SRC_PATH=/opt/gopath/src/github.com/myapp/node fi # clean the keystore rm -rf ./hfc-key-store # launch network; create channel and join peer to channel cd ../basic-network ./start.sh # Now launch the CLI container in order to install, instantiate chaincode # and prime the ledger with our 10 cars docker-compose -f ./docker-compose.yml up -d cli docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n myapp -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE" docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n myapp -l "$LANGUAGE" -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')" sleep 10 docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n myapp -c '{"function":"initLedger","Args":[""]}' printf "\nTotal setup execution time : $(($(date +%s) - starttime)) secs ...\n\n\n" printf "Start by installing required packages run 'npm install'\n" printf "Then run 'node enrollAdmin.js', then 'node registerUser'\n\n" printf "The 'node invoke.js' will fail until it has been updated with valid arguments\n" printf "The 'node query.js' may be run at anytime once the user has been registered\n\n" ```

jaswanth (Mon, 13 Aug 2018 06:31:02 GMT):
@yacovm here is my couchdb and peer in docker ``` couchdb0: image: hyperledger/fabric-couchdb:x86_64-0.4.6 deploy: replicas: 2 resources: limits: cpus: "0.1" restart_policy: condition: on-failure ports: - 5984:5984 hostname: couchdb0 networks: bghj: aliases: - couchdb0 peer0_Patients: hostname: peer0.Patients.example.com image: hyperledger/fabric-peer:x86_64-1.1.0 deploy: replicas: 1 resources: limits: cpus: "0.1" memory: 50M restart_policy: condition: on-failure environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=bghj #- CORE_LOGGING_LEVEL=INFO - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_ID=peer0.Patients.example.com - CORE_PEER_ADDRESS=peer0.Patients.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.Patients.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.Patients.example.com:7051 - CORE_PEER_LOCALMSPID=PatientsMSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/Patients.example.com/peers/peer0.Patients.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/peerOrganizations/Patients.example.com/peers/peer0.Patients.example.com/tls:/etc/hyperledger/fabric/tls - peer0.Patients.example.com:/var/hyperledger/production #- ./ledger/peer0.${Patients}.exapmle.com:/var/hyperledger/production ports: - "7051:7051" - "7053:7053" working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start depends_on: - couchdb0 networks: bghj: aliases: - peer0.Patients.example.com ``` Is anything wrong in it ? still its running fine without couchdb , but with couch only sometimes it works

jaswanth (Mon, 13 Aug 2018 06:31:02 GMT):
@yacovm here is my couchdb and peer in docker ``` couchdb0: image: hyperledger/fabric-couchdb:x86_64-0.4.6 deploy: replicas: 2 resources: limits: cpus: "0.1" restart_policy: condition: on-failure ports: - 5984:5984 hostname: couchdb0 networks: bghj: aliases: - couchdb0 peer0_Patients: hostname: peer0.Patients.example.com image: hyperledger/fabric-peer:x86_64-1.1.0 deploy: replicas: 1 resources: limits: cpus: "0.1" memory: 50M restart_policy: condition: on-failure environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=bghj #- CORE_LOGGING_LEVEL=INFO - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_ID=peer0.Patients.example.com - CORE_PEER_ADDRESS=peer0.Patients.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.Patients.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.Patients.example.com:7051 - CORE_PEER_LOCALMSPID=PatientsMSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/Patients.example.com/peers/peer0.Patients.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/peerOrganizations/Patients.example.com/peers/peer0.Patients.example.com/tls:/etc/hyperledger/fabric/tls - peer0.Patients.example.com:/var/hyperledger/production ports: - "7051:7051" - "7053:7053" working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start depends_on: - couchdb0 networks: bghj: aliases: - peer0.Patients.example.com ``` Is anything wrong in it ? still its running fine without couchdb , but with couch only sometimes it works

rajanashutosh (Mon, 13 Aug 2018 08:05:51 GMT):
Hello All, I have a query on what happens exactly when i bring down nodes on a particular VM. I have a docker swarm network which constitutes 3 VMs and total of 4 organisations on 2 VMs and orderer cli and explorer on one VM

rajanashutosh (Mon, 13 Aug 2018 08:06:20 GMT):
Say suppose VM1 contains my Org 1 and 2 and VM2 contains Org 3 and 4 respectively

rajanashutosh (Mon, 13 Aug 2018 08:06:50 GMT):
Chaincode has been installed properly and transactions initiated which has been placed and committed into the ledger

rajanashutosh (Mon, 13 Aug 2018 08:09:04 GMT):
Now if i do a docker stop on the containers in VM 1 which contains Org 1 and Org 2 and bring them back again after sometime and try to place a transactions (Query) I am getting below response *Error: error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] - proposal response: *

rajanashutosh (Mon, 13 Aug 2018 08:16:10 GMT):
CouchBase db and containers are re-created, so how can i gain access back to containers and data which is inserted ?

JeffGutierrez (Mon, 13 Aug 2018 08:39:55 GMT):
Hi Guys need some input, Creating a Cryptocurrency using Hyperledger Fabric and Hyperledger Composer, any idea's why its good and why its not? Thank you inadvance , cheers 🙂

VuiLenDi (Mon, 13 Aug 2018 08:50:07 GMT):
Has joined the channel.

TheSyntx (Mon, 13 Aug 2018 09:58:58 GMT):
Has joined the channel.

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command :`peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"` throws the Error: "Must supply value for chaincode name parameter."

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command :`peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"` throws the Error: "Must supply value for chaincode name parameter."

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command :`peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"```` ``` throws the Error: "Must supply value for chaincode name parameter."

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command : `peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"` throws the Error: "Must supply value for chaincode name parameter."

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command : `peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"` throws the Error: "*Must supply value for chaincode name parameter.*"

TheSyntx (Mon, 13 Aug 2018 10:04:34 GMT):
Hello Guys, maybe you could help me with my Issue, i am trying to instantiate my chaincode but after installation the instantiation command : `peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n dish -l node -v 1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"` throws the Error: *"Must supply value for chaincode name parameter."*

vijay5378 (Mon, 13 Aug 2018 10:11:44 GMT):
Hi folks. Would configtx.yaml of 1.2 work with 1.1? The reason I ask is because, I can define Policies for an application in 1.2 (As provided in the sample file). However, when I keep the policies and try to construct a channel in 1.1, I get an error -` * 'Application' has invalid keys: Policies * 'Profiles[devproject002Channel].Application' has invalid keys: Policies panic: Error unmarshaling config into struct: 2 error(s) decoding:`

FabricLearner (Mon, 13 Aug 2018 11:00:02 GMT):
Hi Guys, when i try to add a record to a private collection , i go this error Failed to get marble: GET_STATE failed: transaction ID: XXXXXXXXXXXXXXX: collection config not define for namespace [CHAINCODENAME]

FabricLearner (Mon, 13 Aug 2018 11:00:38 GMT):
am i doing any wrong , using nodesdk .

sommishra (Mon, 13 Aug 2018 11:01:20 GMT):
Has joined the channel.

sommishra (Mon, 13 Aug 2018 11:01:56 GMT):
Please help me with the path of the folder where I can get ledger/ blocks created in Hyperledger Fabric on Windows 10

shailaja.mahara (Mon, 13 Aug 2018 11:10:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WEPcxFSf2z4wkGmya) @TheSyntx You haven't passed the chaincode name. set it with "-n mycc"

SubhodI (Mon, 13 Aug 2018 11:14:53 GMT):
Has joined the channel.

dave.enyeart (Mon, 13 Aug 2018 11:28:14 GMT):
@FabricLearner It means the collection configuration was not passed during the chaincode instantiation, see https://fabric-sdk-node.github.io/tutorial-private-data.html

SubhodI (Mon, 13 Aug 2018 11:33:50 GMT):
Trying to solve following problem in Hyperledger fabric 1.2 with the help of Private tx support 1. There exists a private transaction sharing an asset between PartyA and PartyB 2. Now PartyB wants share this asset privately with PartyC With Single collection, i believe the second transaction will fail since PartyC is not present in collection policy. If PartyC is present in collection policy then the first private tx could be visible to PartyC With multiple Collection, We will end up in multiple copies of same asset in various private data sets. IF there are 'N' orgs then to achieve complete privacy there should be 'N Factorial' collections. Is it correct?

SubhodI (Mon, 13 Aug 2018 11:34:33 GMT):
Or Am i missing something?

dave.enyeart (Mon, 13 Aug 2018 11:37:14 GMT):
@SubhodI That's correct, the v1.2 private data collection support is just the first in a series of features... for your scenario there is a feature called 'local collections' being worked on, see the design attached to https://jira.hyperledger.org/browse/FAB-7593 and feel free to comment there.

Sreesha (Mon, 13 Aug 2018 12:12:58 GMT):
what will happen if two clients try to update the ledger simultaneously?

lepar (Mon, 13 Aug 2018 12:19:57 GMT):
@Sreesha the orderer manages that, the gossip protocol syncs them after both transactions are commited

Sreesha (Mon, 13 Aug 2018 12:22:04 GMT):
No for me iam getting MVCC read conflict

FabricLearner (Mon, 13 Aug 2018 12:30:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZALqWkAvpSofJDQTZ) @dave.enyeart thank you dave. while instantiating the chaincode i am doing the below . var request = { targets: peers, chaincodeId: chaincodeName, chaincodeType: chaincodeType, chaincodeVersion: chaincodeVersion, args: args, fcn:fcn, txId: tx_id, 'collections-config':collectionsConfigPath };

FabricLearner (Mon, 13 Aug 2018 12:30:28 GMT):
while instantiation i am not getting any error.

FabricLearner (Mon, 13 Aug 2018 12:31:07 GMT):
but while invoking / adding a record - i am getting the below error . Failed to get marble: GET_STATE failed: transaction ID: a9d8d6e457676f50888ddb7b1d1ec6cf8962c9f9a025d682dc178ab4f835f294: collection config not define for namespace [marblesp7]

FabricLearner (Mon, 13 Aug 2018 12:37:53 GMT):
collectionsConfigPath is like "/home/maheedhar/threeorgsample/app/chaincode/marbles02_private/collections_config.json"

FabricLearner (Mon, 13 Aug 2018 12:37:53 GMT):
collectionsConfigPath is like "/home/XXXXXX/threeorgsample/app/chaincode/marbles02_private/collections_config.json"

GowriR (Mon, 13 Aug 2018 13:19:15 GMT):
Hi all, I am trying to get the dev mode up with 2 peers such that consensus is achieved. I tried it in the net mode - but am having issues there. I am getting some errors in the .yaml files. Could experts here help me solve it?

GowriR (Mon, 13 Aug 2018 13:19:15 GMT):
hypledvm@hypledvm-VirtualBox:~/go/src/utilitypoc/network/devmode_multiplepeers$ docker-compose -f docker-compose-e2e.yaml up Creating network "devmodemultiplepeers_default" with the default driver Creating orderer ... Creating orderer ... done Creating peer0.utilityorg.demandresponse.com ... Creating peer0.consumerorg.demandresponse.com ... Creating peer0.utilityorg.demandresponse.com Creating peer0.consumerorg.demandresponse.com ... error ERROR: for peer0.consumerorg.demandresponse.com Cannot start service peer0.consumerorg.demandresponse.com: driver failed programming external connectivity on endpoint peer0.consumerorg.demandresponse.com (603b23738a418566075b204bbfdf3b64a629230c702e71b6c5185ea18114465a): Bind for 0.0.Creating peer0.utilityorg.demandresponse.com ... done Creating cli.utilityorg.demandresponse.com ... Creating chaincode.utilityorg.demandresponse.com ... Creating cli.utilityorg.demandresponse.com Creating chaincode.utilityorg.demandresponse.com ... done ERROR: for peer0.consumerorg.demandresponse.com Cannot start service peer0.consumerorg.demandresponse.com: driver failed programming external connectivity on endpoint peer0.consumerorg.demandresponse.com (603b23738a418566075b204bbfdf3b64a629230c702e71b6c5185ea18114465a): Bind for 0.0.0.0:7053 failed: port is already allocated ERROR: Encountered errors while bringing up the project.

GowriR (Mon, 13 Aug 2018 13:19:18 GMT):

configtx (copy).txt

GowriR (Mon, 13 Aug 2018 13:19:18 GMT):

docker-compose-e2e (copy).txt

GowriR (Mon, 13 Aug 2018 13:19:18 GMT):

crypto-config (copy).txt

GowriR (Mon, 13 Aug 2018 13:21:02 GMT):
Any idea what it is ? I am not sure how to add two orgs, with 2 chaincodes and 2 cli's

GowriR (Mon, 13 Aug 2018 13:21:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zP3zxTNf7nYYAbouj) any ideas on this too please?

lepar (Mon, 13 Aug 2018 13:22:40 GMT):
@Sreesha Read is different from writing, what's the conflict?

adarshsaraf123 (Mon, 13 Aug 2018 14:28:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5epBehme5vPw3Xt28) @Sreesha That's the expected behavior. You need to re-submit the failed transactions.

StefanKosc (Mon, 13 Aug 2018 14:32:20 GMT):
Hi, can chaincode query transactions from the ledger?

helpsolution (Mon, 13 Aug 2018 15:08:37 GMT):
Has joined the channel.

helpsolution (Mon, 13 Aug 2018 15:08:44 GMT):
Hello! I have problem with events. I am using go sdk and fabric 1.1 . When I execute "RegisterTxStatusEvent(txID)", I receive in logs: [fabsdk/fab] 2018/08/13 13:04:47 UTC - connection.(*EventHubConnection).Receive -> ERRO Received error from stream: [rpc error: code = Unimplemented desc = unknown service protos.EventClients]. Sending disconnected event. [fabsdk/fab] 2018/08/13 13:04:47 UTC - eventhubclient.(*Client).registerInterests -> ERRO unable to send register interests request: timeout waiting for register interests response [fabsdk/fab] 2018/08/13 14:58:40 UTC - eventhubclient.(*Client).registerInterests -> ERRO unable to send register interests request: connection terminated [fabsdk/fab] 2018/08/13 14:58:40 UTC - client.(*Client).t -> WARN Error invoking afterConnect handler: connection terminated. Disconnecting... [fabsdk/fab] 2018/08/13 14:58:40 UTC - client.(*Client).t -> WARN Received error from disconnect request: connection already closed I did not change configs. I can connect to eventUrlSubstitutionExp with telnet. Before current day all worked well. Can you help me? I not found solution in google.

sam1 (Mon, 13 Aug 2018 16:04:27 GMT):
Has joined the channel.

sam1 (Mon, 13 Aug 2018 16:06:31 GMT):
Hi, does anyone have any examples of a multi organisation setup that does not assume all the docker containers are running on the same server? Trying to simulate multi orgs in different networks (assuming network isnt an issue and they can communicate) - i.e. an extension of this: https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

fhmarino (Mon, 13 Aug 2018 18:22:22 GMT):
Has joined the channel.

nukulsharma (Mon, 13 Aug 2018 18:25:53 GMT):
Hi , Getting an issue whilst invoking a private data collections marbles on nodejs code taken from balance transfer app, `[2018-08-13 23:40:53.869] [INFO] invoke-chaincode - [ Error: Failed disseminating 2 out of 2 private RWSets` The other chaincodes, like marbles02 works fine, And private data collections chaincode successfully gets instantiated, however INVOKE is failing as shown above .. `############################################################# ## ORG 1 - Invoke private chaincode on mychannel ## TODO - INVOKE DID NOT WORK ############################################################# echo "POST invoke private chaincode on peers of Org1" echo TRX_ID=$(curl -s -X POST \ http://localhost:4000/channels/mychannel/chaincodes/marblespcc \ -H "authorization: Bearer $ORG1_TOKEN" \ -H "content-type: application/json" \ -d '{ "peers": ["peer0.org1.example.com"], "fcn":"initMarble", "args":["marble1","blue","35","tom","99"] }') echo "Transaction ID is $TRX_ID" echo` Anyone faced this issue ? i couldnt found on google/stackoverflow any reference to this...

nukulsharma (Mon, 13 Aug 2018 18:25:53 GMT):
Hi , Getting an issue whilst invoking a private data collections marbles on nodejs code taken from balance transfer app, `[2018-08-13 23:40:53.869] [INFO] invoke-chaincode - [ Error: Failed disseminating 2 out of 2 private RWSets` The other chaincodes, like marbles02 works fine, And private data collections chaincode successfully gets instantiated, however INVOKE is failing as shown above .. Below is testScript used to invoke an API.. `############################################################# ## ORG 1 - Invoke private chaincode on mychannel ## TODO - INVOKE DID NOT WORK ############################################################# echo "POST invoke private chaincode on peers of Org1" echo TRX_ID=$(curl -s -X POST \ http://localhost:4000/channels/mychannel/chaincodes/marblespcc \ -H "authorization: Bearer $ORG1_TOKEN" \ -H "content-type: application/json" \ -d '{ "peers": ["peer0.org1.example.com"], "fcn":"initMarble", "args":["marble1","blue","35","tom","99"] }') echo "Transaction ID is $TRX_ID" echo` Anyone faced this issue ? i couldnt found on google/stackoverflow any reference to this...

nukulsharma (Mon, 13 Aug 2018 18:25:53 GMT):
Hi , Getting an issue whilst invoking a private data collections marbles on nodejs code taken from balance transfer app, `2018-08-13 18:49:15.486 UTC [lockbasedtxmgr] Done -> DEBU 617 Done with transaction simulation / query execution [2b2b4c0fd23e519e2cb64c30cc17bd1911419112fb5d67787692af6b003c310d] 2018-08-13 18:49:15.487 UTC [gossip/privdata] func1 -> ERRO 618 Failed disseminating private RWSet for TxID 2b2b4c0fd23e519e2cb64c30cc17bd1911419112fb5d67787692af6b003c310d , namespace marblespcc collection collectionMarbles : Requested to send to at least 1 peers, but know only of 0 suitable peers 2018-08-13 18:49:15.487 UTC [gossip/privdata] func1 -> ERRO 619 Failed disseminating private RWSet for TxID 2b2b4c0fd23e519e2cb64c30cc17bd1911419112fb5d67787692af6b003c310d , namespace marblespcc collection collectionMarblePrivateDetails : Requested to send to at least 1 peers, but know only of 0 suitable peers 2018-08-13 18:49:15.487 UTC [gossip/service] DistributePrivateData -> ERRO 61a Failed to distributed private collection, txID 2b2b4c0fd23e519e2cb64c30cc17bd1911419112fb5d67787692af6b003c310d channel mychannel due to Failed disseminating 2 out of 2 private RWSets` The other chaincodes, like marbles02 works fine, And private data collections chaincode successfully gets instantiated, however INVOKE is failing as shown above .. Below is testScript used to invoke an API.. `############################################################# ## ORG 1 - Invoke private chaincode on mychannel ## TODO - INVOKE DID NOT WORK ############################################################# echo "POST invoke private chaincode on peers of Org1" echo TRX_ID=$(curl -s -X POST \ http://localhost:4000/channels/mychannel/chaincodes/marblespcc \ -H "authorization: Bearer $ORG1_TOKEN" \ -H "content-type: application/json" \ -d '{ "peers": ["peer0.org1.example.com"], "fcn":"initMarble", "args":["marble1","blue","35","tom","99"] }') echo "Transaction ID is $TRX_ID" echo` Anyone faced this issue ? i couldnt found on google/stackoverflow any reference to this...

nukulsharma (Mon, 13 Aug 2018 19:32:22 GMT):
Update: this is resolved, update the policy to allow 0, since i am using 1 peer per org

lepar (Mon, 13 Aug 2018 19:51:19 GMT):
@StefanKosc Yes, take a look at this https://fabric-sdk-node.github.io/tutorial-channel-events.html

lepar (Mon, 13 Aug 2018 19:52:33 GMT):
@nukulsharma great to know!

lepar (Mon, 13 Aug 2018 19:54:37 GMT):
@GowriR Take a look on the Upgrade section of this link https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode4noah.html

patent_person (Mon, 13 Aug 2018 20:01:28 GMT):
hi, I'm new on the setup and finally managed to get fabric-ca up and running, tools container up and running and created the genesisBlock and systemChannel.

patent_person (Mon, 13 Aug 2018 20:02:26 GMT):
Now that I start the orderer, I see that the block is picked up, but how to configure orderer to pick up the systemChannel data created (instead of using the default one)

l0ve2l3arn (Mon, 13 Aug 2018 20:42:42 GMT):
Has joined the channel.

rprasanakumar (Mon, 13 Aug 2018 22:58:05 GMT):
Has joined the channel.

rprasanakumar (Mon, 13 Aug 2018 22:58:12 GMT):
Hello, I'm creating a fabric network with 5 peers. 2 peers, CA and orderer running on machine 1, 1 peer and couch instance on machine 2, 1 peer and couch instance on machine 3, 1 peer and couch instance on machine 4. They all are on the same channel. I was able to install the .bna into the network. But when I tried starting the application using composer tool, using the below command "composer network start -c PeerAdmin@hlfv1 -n blockv6 -V 0.0.1 -A admin -S adminpw" I'm getting no valid response error ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid endorsement system chaincode) Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE) Command failed

rjones (Mon, 13 Aug 2018 23:24:18 GMT):
User User_1 added by rjones.

HandsomeRoger (Tue, 14 Aug 2018 01:31:34 GMT):
Hello everyone! Have someone ever used fabric-samples/balance-transfer. https://github.com/hyperledger/fabric-samples/tree/release-1.2/balance-transfer I have some problems with instantiate chaincode. error: [: [client-utils.js]: s]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: EOF at new createStatusError (/root/go/src/rc/github.com/supplychain/nodejs_version/fabric-version2/fabric-samples-release-1.1/balance-transfer/node_modules/grpc/src/client.js:64:15) at /root/go/src/rc/github.com/supplychain/nodejs_version/fabric-version2/fabric-samples-release-1.1/balance-transfer/node_modules/grpc/src/client.js:583:15

HandsomeRoger (Tue, 14 Aug 2018 01:31:44 GMT):
I follow the website https://github.com/hyperledger/hyperledger/issues/69 with my tls and gprc setting. But it still can't work. error: [Client.js]: Error: Calling enrollment endpoint failed with error [Error: write EPROTO 139797765113664:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827: [2018-08-14 08:15:05.760] [ERROR] Helper - Failed to get registered user: Barry with error: Error: Calling enrollment endpoint failed with error [Error: write EPROTO 139797765113664:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827: UnauthorizedError: jwt malformed at /root/go/src/github.com/supplychain/nodejs_version/fabric-version2/fabric-samples-release-1.1/balance-transfer/node_modules/express-jwt/lib/index.js:102:22

coderintherye (Tue, 14 Aug 2018 02:36:47 GMT):
Has joined the channel.

GowriR (Tue, 14 Aug 2018 04:06:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dZTqjfbhEnpLb4Gei) @lepar Thanks @lepar for the prompt response. I read it but am not entirely clear. Quote - "Note that since multiple versions of a chaincode may be active simultaneously, the upgrade process doesn’t automatically remove the old versions, so user must manage this for the time being". -----I had tried upgrade too with a different version. What does the removal process involve? Could you elaborate on that please ?( the docker containers or the chaincode binary within the peer or all?). Also,

GowriR (Tue, 14 Aug 2018 04:06:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s8gxCgZBFb2cxXqbn) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dZTqjfbhEnpLb4Gei) @lepar Thanks @lepar for the prompt response. I read it but am not entirely clear. Quote - "Note that since multiple versions of a chaincode may be active simultaneously, the upgrade process doesn’t automatically remove the old versions, so user must manage this for the time being". **-----I had tried upgrade too with a different version. What does the removal process involve? Could you elaborate on that please ?( the docker containers or the chaincode binary within the peer or all?). Also, I found a binary, being picked up (for which I had commented out the code a long while ago), how is it picking that chaincode binary? Is it in the image? Or am i missing some location?. Appreciate your timely help and expecting more clarification. Thanks

GowriR (Tue, 14 Aug 2018 04:18:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=32taFm7J7dJpxKxiy) Hello experts here - I am trying to modify the dev network with one more org and one more peer and hence one more MSP and an extra cli and an extra chaincode for the org added. The above files have some error. Please let me know, if am following the wrong approach in the .yaml files. Thanks

Sreesha (Tue, 14 Aug 2018 04:38:58 GMT):
@lepar Iam trying to invoke chaincode simultaneously through two different peers

Sreesha (Tue, 14 Aug 2018 04:40:14 GMT):
@adarshsaraf123 In that case does it mean that the users invoking simultaneously needs to manually invoke again and again upon failure?

VarunVerma (Tue, 14 Aug 2018 05:47:13 GMT):
do any body have any alternative tutorial from documentation ?

VarunVerma (Tue, 14 Aug 2018 05:47:13 GMT):
do any body have any alternative tutorial from fabric documentation ?

VarunVerma (Tue, 14 Aug 2018 05:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qwECGaTDWFbR4YC4B) @GowriR @GowriR That's a great idea!! and it would be great if you suggest the book name with author. Thankyou

VarunVerma (Tue, 14 Aug 2018 05:47:13 GMT):
@thiyagucse01 yaa please answer his que.... i have same que too

VarunVerma (Tue, 14 Aug 2018 05:47:13 GMT):
@thiyagucse01 yaa please answer his que.... i have same que too

GowriR (Tue, 14 Aug 2018 05:51:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NMWK9DPwzZLpg6HBX) @VarunVerma Buy a book. They are better than the documentation

shyammishra (Tue, 14 Aug 2018 06:10:17 GMT):
Hello, Can anyone tell me from where can I learn creating blockchain network using Hyperledger Fabric? Till now on every tutorial seems to instruct about creating CHAINCODE and frontend APPLICATION over pre-defined network (dev-environment using docker images) But I want to learn creating network using real servers. Please help! Thanks

Akash-digiledge (Tue, 14 Aug 2018 06:12:28 GMT):
Hello, Can any one tell me how to query the transactions with date?

1234 (Tue, 14 Aug 2018 07:00:44 GMT):
go to see docker-compose.yaml file in peer env variable (- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984) check couchdb address

adarshsaraf123 (Tue, 14 Aug 2018 07:05:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jDzNj6vce4eEJS2uh) @Sreesha Yes. If the transactions are anyways dependent on each other don't you think it makes sense that they be submitted one after the other?

smile4jc (Tue, 14 Aug 2018 07:22:53 GMT):
just a quick question, I was wondering what "Common/Helper Library for Fabric Client Wrangler" this was, especially the Client Wrangler part. If you have any insight to this, much would be appreciated.

yangxier (Tue, 14 Aug 2018 07:59:05 GMT):
Has joined the channel.

rajanashutosh (Tue, 14 Aug 2018 08:00:50 GMT):
@dave.enyeart Request your help on the below query what happens exactly when i bring down nodes on a particular VM. I have a docker swarm network which constitutes 3 VMs and total of 4 organisations on 2 VMs and orderer cli and explorer on one VM Say suppose VM1 contains my Org 1 and 2 and VM2 contains Org 3 and 4 respectively Chaincode has been installed properly and transactions initiated which has been placed and committed into the ledger Now if i do a docker stop on the containers in VM 1 which contains Org 1 and Org 2 and bring them back again after sometime and try to place a transactions (Query) I am getting below response *Error: error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] - proposal response: Is there a possible way for getting access to the state which we lost just now

TBigjohn (Tue, 14 Aug 2018 08:18:15 GMT):
Has joined the channel.

TBigjohn (Tue, 14 Aug 2018 08:20:43 GMT):
Hello, I am trying to ask one of my peers to join a previously created channel using the following command : "peer channel join -b channel1.block" but I get the following error : "Error: proposal failed (err: bad proposal response 500)"

TBigjohn (Tue, 14 Aug 2018 08:21:06 GMT):
Any idea for me please ?

TBigjohn (Tue, 14 Aug 2018 08:22:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmnZzHXnqJ9wXzEba) Error from the log :

TBigjohn (Tue, 14 Aug 2018 08:22:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmnZzHXnqJ9wXzEba) Error from the log : ERRO 01d [][44a3a3d1] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: .....

Anfimov (Tue, 14 Aug 2018 08:32:45 GMT):
Hello! Please help me, I have spent a lot of time to research on google but nothing found. How to get transaction size in Hyperledger Fabric?

TBigjohn (Tue, 14 Aug 2018 08:34:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DocmQKEJT6qeN2mTy) @shyammishra Can this link help you ? https://hackernoon.com/deploy-a-business-network-on-free-ibm-blockchain-starter-plan-93fafb3dd997

Anfimov (Tue, 14 Aug 2018 08:47:23 GMT):
When I do some transaction I want to calculate how much space on my computer it takes. How can I do this?

thiyagucse01 (Tue, 14 Aug 2018 09:10:09 GMT):
Hi , I started learning hyperledger-fabric for creating my own business application but, I still have a question In practice, there is only one machine with docker and whole bna, or every member must have his own docker with bna? If only one, then it turns out to be a centralized application. Am I right?

TBigjohn (Tue, 14 Aug 2018 09:19:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3nPYK4ZEZjkrDfBTB) @thiyagucse01 Hello, yes for me you are right. This is exactly what I want to avoid using different peers and channels.

thiyagucse01 (Tue, 14 Aug 2018 09:22:28 GMT):
@TBigjohn , Thanks for ur reply , then if using single peer , org and channel means this one is centralized right?

TBigjohn (Tue, 14 Aug 2018 09:27:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jgep2wGKpuR3sQrKj) @thiyagucse01 Sorry but I don't understand your question ... The infra I am currently trying to create includes, one orderer, two channels with 2 peers in each channel. For each channel I want to have the 2 participating peers on 2 different VMs. So when this infra will be ready for prod we will be able to have peers hosted by different companies. Does it answer your questions ?

shyammishra (Tue, 14 Aug 2018 10:24:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xs3LgvYPfHRYvFpKP) @TBigjohn @TBigjohn This again explain how to create application using composer. which is already given in composer tutorial. If somewhere I can know about creating the network without the docker then it will be much helpful

shyammishra (Tue, 14 Aug 2018 10:27:52 GMT):
Hello @thiyagucse01 I understand what you are asking. This is the same which I also thought that if everything happened in single server then it would not be decentralized! But they are using docker with different images, means different imaginary servers. This is why am also looking for a tutorial which help me creating network (not application) on 2 separate servers without using docker

dave.enyeart (Tue, 14 Aug 2018 10:28:15 GMT):
@rajanashutosh Sounds like you need to understand docker persistence... start here: https://www.computerweekly.com/feature/Docker-storage-how-to-get-persistent-storage-in-Docker

dave.enyeart (Tue, 14 Aug 2018 10:28:23 GMT):
and see this sample docker compose: https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/docker-compose-cli.yaml#L8-L13

thiyagucse01 (Tue, 14 Aug 2018 10:34:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MybMdefCoibxYNBZu) @shyammishra Can u share any of your refered link ? it might be helpful for me

furqanbaqai (Tue, 14 Aug 2018 10:39:13 GMT):
Has joined the channel.

shyammishra (Tue, 14 Aug 2018 10:41:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LR2tPdpPxFqJvPtTf) @thiyagucse01 You can go through this http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html They have mention to download the samples and docker images here http://hyperledger-fabric.readthedocs.io/en/latest/install.html

rajanashutosh (Tue, 14 Aug 2018 11:19:04 GMT):
@dave.enyeart , Thanks for your response ! i would go through this and come to you.

TBigjohn (Tue, 14 Aug 2018 11:24:58 GMT):
My question is also there https://stackoverflow.com/questions/51837690/err-bad-proposal-response-500-when-trying-to-join-channel Any ideas welcome .... Thanks

lennertr (Tue, 14 Aug 2018 11:26:40 GMT):
Has joined the channel.

lennertr (Tue, 14 Aug 2018 11:30:47 GMT):
Hey guys, I'm new to fabric and have a question concerning the transfer of assets through different channels. I read the answer to this question https://lists.hyperledger.org/g/fabric/message/3424 but it wasn't clear to me how secure the proposed solution is. If I need to delete the asset from channel A and create it again at channel B in order to transfer it how can other participants in channel B be sure that I deleted the asset in the other channel?

HellBoy_23 (Tue, 14 Aug 2018 11:32:04 GMT):
Hello guys i got an error saying Queries on pvt data is supported only in a read-only transaction.Can anyone throw some light on it?

riccardopersiani (Tue, 14 Aug 2018 11:53:16 GMT):
If several peers call the same function of a chaincode, is there a possibility that they will generate the same transaction ID?

SomMishra5 (Tue, 14 Aug 2018 12:19:46 GMT):
Has joined the channel.

SomMishra5 (Tue, 14 Aug 2018 12:28:06 GMT):
In Windows machine at which location path the Blocks or Ledger gets stored for Hyperledger Fabric?

nithindj192 (Tue, 14 Aug 2018 12:31:16 GMT):
Hello All, we are working on Hyperledger Fabric for few months now and we have put together our observations here - https://medium.com/tallyx/an-nfr-journey-with-hyperledger-fabric-e11104f2af25

Hana_Ch (Tue, 14 Aug 2018 12:35:16 GMT):
Has joined the channel.

Hana_Ch (Tue, 14 Aug 2018 12:35:30 GMT):
hey , i am trying to build a project having SDK 1.1 integrated and i am using hyperledger Fabric 1.2 in a ubuntu VM . Once the app started after the VM boot , I get errors stack in my java project and the peers status in the Explorer is always down ... any body have an idea about this problem ... the errors stack is as follow :

zhoutong.zht (Tue, 14 Aug 2018 12:43:21 GMT):
why does channel.Client.Execute() need at least 2 Seconds to return in fabric-sdk-go ? it's too slow, how to change the config to get faster?:joy:

lennertr (Tue, 14 Aug 2018 13:06:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AtaBkYEHdz49NoezG) and how does RBAC in fabric work? can I restrict a role from reading specific chaincode data or entries in the ledger?

abityildiz (Tue, 14 Aug 2018 13:16:32 GMT):
How do you call hyperLedger composer api ajax, http request etc.?example give me please

FabricLearner (Tue, 14 Aug 2018 13:27:08 GMT):
Hi All. i am using collections-config option while instantiating the chaincode. but i just came to know that , in the fabric-client nodemodules ChaincodeInstantiateUpgradeRequest function don't have collections-config option. can some one help how to update this fabric client i am using node sdk

Hana_Ch (Tue, 14 Aug 2018 14:01:32 GMT):
hi , does anybody have an idea about this error : ava.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 0 inconsistent groups with 2 that are invalid. Expected all to be consistent and none to be invalid.

Hana_Ch (Tue, 14 Aug 2018 14:01:32 GMT):
hi , does anybody have an idea about this error : ==> java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 0 inconsistent groups with 2 that are invalid. Expected all to be consistent and none to be invalid.

asamk (Tue, 14 Aug 2018 14:07:01 GMT):
Has joined the channel.

sshrestha (Tue, 14 Aug 2018 15:20:08 GMT):
Has joined the channel.

lepar (Tue, 14 Aug 2018 18:03:04 GMT):
@GowriR The chaincode is linked with an Image file. When you instantiate a chaincode on a peer, it creates an Image Chaincode. You can check them by using the command "docker images", notice there are some DEV images that are started containers with that image. When removing them, you have to remove that image by using "docker rmi 'image id' "

JaishankarGothandaraman (Tue, 14 Aug 2018 18:39:59 GMT):
Has joined the channel.

gepoemrun (Tue, 14 Aug 2018 21:12:14 GMT):
hi what may cause "Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [org1MSP.Readers org2MSP.Readers ]"

dwong (Tue, 14 Aug 2018 23:51:24 GMT):
Hi, I am testing my own chaincode for Fabric 1.2. When invoking one function, I get an error of "Transaction has already performed queries on pvt data. Writes are not allowed".

dwong (Wed, 15 Aug 2018 00:07:13 GMT):
Basically my function setSomething receives "something" and first calls GetPrivateData from a private collection say "A" to check if the same key exists. Then it calls GetPrivateDataByPartialCompositeKey to get couple other entries from an index (its value is the bytes of A's key). Based on those couple other rows with A's keys, the function calls GetPrivateData to retrieve their JSONs and update some fields on those JSONs. The next step is to call PutPrivateData to overwrite A's entries' values of those keys. Finally, it calls PutPrivateData to write "something" to A and calls PutPrivateDate 3 more times to put 3 different indices. That's all. Now invoking that function returns error of "Transaction has already performed queries on pvt data. Writes are not allowed". Any idea?

dave.enyeart (Wed, 15 Aug 2018 00:24:06 GMT):
queries within transactions need to be verified on all peers in the network. but the non-collection members do not have the private data to enable the validation query. therefore this scenario is not allowed, see the limitations section here:

dave.enyeart (Wed, 15 Aug 2018 00:24:08 GMT):
http://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html#considerations-when-using-private-data

dave.enyeart (Wed, 15 Aug 2018 00:25:16 GMT):
key-based queries work because the hash of the key can be validated, but hashes cannot be used for validation in more sophisticated queries

dwong (Wed, 15 Aug 2018 00:27:11 GMT):
I am only using Range Query though (supported by GetPrivateDataByPartialCompositeKey) - so not even Rich Query. Still not doable?

dave.enyeart (Wed, 15 Aug 2018 00:28:00 GMT):
not possible... a range query over key hashes will not return the same results as a range query over keys.

dave.enyeart (Wed, 15 Aug 2018 00:28:00 GMT):
not possible... a range query over key hashes will not return the same results as a range query over keys, therefore the validation cannot be accomplished

dwong (Wed, 15 Aug 2018 00:31:07 GMT):
Thanks Dave. Any suggestion on workaround or re-design of my private collection or logic?

dave.enyeart (Wed, 15 Aug 2018 00:31:44 GMT):
the limitation provides a workaround... split your transaction into two... first do a private data query, and then submit a transaction based on the results

dave.enyeart (Wed, 15 Aug 2018 00:31:44 GMT):
the limitation provides a workaround... split your transaction into two... first do a private data query, and then submit an update transaction based on the results

dave.enyeart (Wed, 15 Aug 2018 00:32:33 GMT):
this assumes the application can tolerate potential changes to the result set done by other in flight transactions

dwong (Wed, 15 Aug 2018 00:36:50 GMT):
Hmm... the split transaction approach is not ideal because that "single" operation will become non-atomic...

dwong (Wed, 15 Aug 2018 00:40:35 GMT):
And since GetPrivateData is OK to be made in the same transaction as PutPrivateData call, what if I replace that GetPrivateDataByPartialCompositeKey by a separate call of GetPrivateData to a separate collection "B" whose key is actually like the composite key I am originally using? I know it's ugly and also the GetPrivateData will only return 0-1 row instead of a collection result based on a composite key range query. But in my problem context, I am actually always assuming that original call to GetPrivateDataByPartialCompositeKey to return 0-1 row!

Tomatoooogerambo (Wed, 15 Aug 2018 02:01:00 GMT):
Has joined the channel.

Tomatoooogerambo (Wed, 15 Aug 2018 02:01:26 GMT):
Hi, I am interested in fabric and have learned it for a few weeks. As a fresh man, I have some question about it. I will appreciate it if you can answer the questions. Pre-Description: 1. I have started the byfn sample successfully. 2. I have used the fabric/examples/e2e_cli sample successfully. 3. In the sample of fabric/examples/e2e_cli I trid to use the kafka type with modifying the correspond yml file and run the test scripts and it worked well. 4. Recentlly I have been learning the sample --> fabric-samples/fabric-ca This sample is used ca server and solo type in Orderer. I started it and it worked successfully. 5. Now, I tried to modify the scripts to generate the yml file to zookeeper+kafka and the config file to make orderer use kafka type. Question: 1. Description: You know, the e2e_cli sample use the function checkOSNAvailability() before createChannel. So I want to imitate that to fetch the 0th block in the system channel 'testchainid' with the Orderer MSP to check the OSN is available. "peer channel fetch 0 0_block.pb -c "testchainid" -o orderer1-org0:7050 --tls --cafile /data/org0-ca-chain.pem" In fact I have tried to use other cafiles of orderer by annotating the rm command in start-orderer.sh. And promise that cafile can be used in the run containers. But I just can't fetch the 0th block.pb from 'testchainid'. Though I can't fecth that from the system channel, if I use 'sleep' command to wait for a while, the example channel "mychannel" could still be created and all the following stuff worked successfully till the end. Question in short: What is the important thing I have to notice? The environment variables or the ca file? What should I to learn more? 2. Description: In the sample of fabric-samples/fabric-ca, used the images like 'fabric-ca-peer' and 'fabric-caorderer'. Question in short: What's the difference between the images 'fabric-ca-peer' and 'fabric-peer'/ 'fabric-ca-orderer' and 'fabric-orderer' 3. Question in shrot: If use the CA in docker yml fime and start it, but still use the cryptogen tool to gennerate the material. Does that mean the CA never effect in the network actually? Than you and waiting for you answer!

archit90 (Wed, 15 Aug 2018 05:43:36 GMT):
Has joined the channel.

dave.enyeart (Wed, 15 Aug 2018 07:43:46 GMT):
@dwong Yes you can use GetPrivateData in the same transaction as an update. If you must do a range or composite or JSON query, you could do that in a prior transaction, get the result keys, and then for each of them in the real update transaction do a GetPrivateData, ensure it still meets your query criteria, and then update in the same transaction. The addition of the readset will ensure that those keys will not be updated by other transactions untils yours commits. The only thing missing is you may miss other keys that have been inserted or updated since the original query. That may be ok in your application, or you may want your application to check for those after the transaction.

dave.enyeart (Wed, 15 Aug 2018 07:44:00 GMT):
I don't see a need for a separate B collection to pull this off.

liuhaifeng (Wed, 15 Aug 2018 08:58:58 GMT):
Hi Does anyone know if there is wallet feature planned in Fabric?

RahulEth (Wed, 15 Aug 2018 09:28:36 GMT):
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 could someone help me to get out of this

archit90 (Wed, 15 Aug 2018 09:33:30 GMT):
Hi I am new to blockchain and DLT. To understand possible use cases of DLT, I was trying to draw parallel with VCS system like Git. We can conceptualize the incremental changes by having different transactions in ledger, and applications can make changes by invoking appropriate chaincode. Can we also have a concept of files (with incremental changes) for different Orgs. Also can Orgs restrict access to other Orgs for different files based on their privacy needs. Thanks

RahulEth (Wed, 15 Aug 2018 09:41:50 GMT):

Screenshot from 2018-08-15 15-09-37.png

chlsc (Wed, 15 Aug 2018 10:04:41 GMT):
@dave.enyeart Hi, Dave. I have one question. Hope you can help. Do you know in v1.2, does shim support history query for private channel data again a key?

BlockMcChainy (Wed, 15 Aug 2018 10:05:44 GMT):
When I instantiate chaincode for 5 organisations with 3 peers each, Hyperledger Fabric takes a very long time to create all images/containers. About 50% of the time my VM can't handle it and instantiation fails even with a longer timeout and more RAM. With 2 or 3 orgs I have no problem. Is it purely a hardware/specs problem? Or maybe a memory leak somewhere. My question is. How is it possible to instantiate an even larger number of chaincode containers at the same time. What if I want to have say up to 10 or even 100 maybe?

dave.enyeart (Wed, 15 Aug 2018 10:07:22 GMT):
@chlsc sorry no, the history support is not there yet... you can track its progress by looking at https://jira.hyperledger.org/browse/FAB-5094

dave.enyeart (Wed, 15 Aug 2018 10:09:00 GMT):
@BlockMcChainy in the real world, each organization's peers would be on separate machines.

crusadergo (Wed, 15 Aug 2018 10:17:37 GMT):
Has joined the channel.

archit90 (Wed, 15 Aug 2018 10:34:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iGC67y8nNvsT7Qfbh) can someone answer or let me know the right channel for it.

GowriR (Wed, 15 Aug 2018 11:00:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8wHvBJWurYFM7ayYR) @RahulEth When do you get this? I remember getting the same

GowriR (Wed, 15 Aug 2018 11:04:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4GbWuMySnyqhJeSh9) @lepar I need to delete it every time I create a different version of the chaincode- upgrade the chaincode?

satish67 (Wed, 15 Aug 2018 11:06:32 GMT):
Hi.. I am trying to implement fabric samples on different hosts.. I connected all the hosts through docker swarm, with an overlay network. when i am implement the stack command it opens too many conatiners in peers. while the manager/leader node is working fine,, Does anyone have any idea

satish67 (Wed, 15 Aug 2018 11:06:32 GMT):
Hi.. I am trying to implement fabric samples on different hosts.. I connected all the hosts through docker swarm, with an overlay network. when i am implement the stack command it opens too many conatiners in peers. while the manager/leader node is working fine,, Does anyone have any idea .. thanks in advance

ArqRI (Wed, 15 Aug 2018 12:48:13 GMT):
Has joined the channel.

lepar (Wed, 15 Aug 2018 12:58:26 GMT):
@RahulEth That's the problem with chaincode version

ArqRI (Wed, 15 Aug 2018 13:24:45 GMT):
Hello everyone! I need help to resolve: "error: [Remote.js]: Error: Failed to connect before the deadline". I'm traing to follow the "http://hyperledger-fabric.readthedocs.io/en/release-1.1/write_first_app.html" documentation but I verify everything and think is all ok. someone solved it? or could give me some advice.

Adam_Hardie (Wed, 15 Aug 2018 16:07:07 GMT):
good afternoon all, I have configured a network based upon the basic-network sample (1 orderer, 1 peer, ca in separate docker containers) all my containers are running, and I can install / instantiate a chaincode onto the peer resulting in a new container. however, when I connect using the Java SDK, I keep getting MSP Org1MSP is unknown I have ensured the peer container does have the MSP directory properly configured in volumes, and that it contains the required crypto elements once started My docker version is Docker version 18.06.0-ce, build 0ffa825

Adam_Hardie (Wed, 15 Aug 2018 16:07:07 GMT):
-- deleted -- had an incorrect channel name :)

Adam_Hardie (Wed, 15 Aug 2018 16:07:22 GMT):
MSP is also configured in configtx yaml file .. Name: Org1MSP

dwong (Wed, 15 Aug 2018 16:31:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg4LQm3FLJL9Jkrqz) @dave.enyeart Thanks Dave! I think it's an acceptable workaround. I will take this approach. Thanks again!!!

vishwak (Wed, 15 Aug 2018 17:36:13 GMT):
I am trying to find answers to a few questions. What is involved in "instantiating" a chaincode on a channel. How is this different from installing it on a Peer?

vishwak (Wed, 15 Aug 2018 17:36:31 GMT):
Could someone explain this to me?

lepar (Wed, 15 Aug 2018 17:53:16 GMT):
@vishwak Installing is like copying the file and telling the peer that it's there. Instantiating is telling the peer what it does, in other words, saying "Hey, you can call these functions"

vishwak (Wed, 15 Aug 2018 17:56:28 GMT):
Thanks, @lepar .

lepar (Wed, 15 Aug 2018 17:56:51 GMT):
Welcome

vishwak (Wed, 15 Aug 2018 18:00:59 GMT):
I have a question specifically from the documentation (https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html). It's from the 6th step in the transaction flow. "Each peer appends the block to the channel’s chain, and for each valid transaction the write sets are committed to current state database" 1) is the "current state database" the same as the private ledger? 2) is this anything more than a caching mechanism? 3) Under what circumstances would the current state database be used?

lepar (Wed, 15 Aug 2018 18:02:36 GMT):
1. The current state database is held within a couchdb or leveldb for faster querying but it's also on the private ledger 2. Idea is similar 3. Current state database is just the last state of a key-value pair

vishwak (Wed, 15 Aug 2018 18:05:02 GMT):
Thanks again!

lepar (Wed, 15 Aug 2018 18:05:19 GMT):
Np

RahulEth (Wed, 15 Aug 2018 19:05:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bFxHcddZx3R6mc4uF) @GowriR @GowriR i am trying to run 1sr fabric sample provided into the docs.

PatrickWoodhead (Wed, 15 Aug 2018 21:39:33 GMT):
Has joined the channel.

horeaporutiu (Thu, 16 Aug 2018 00:02:35 GMT):
Has joined the channel.

horeaporutiu (Thu, 16 Aug 2018 00:02:37 GMT):
So I'm struggling with the idea of how Hyperledger uses PKI and how that differs from Bitcoin. I understand that in Bitcoin, the network will first create a private key as a random number. Then that private key is then modified by using elliptic curve multiplication, whhich takes us to the public key. Then after the public key, we use a hashing function to arrive at our Bitcoin address. Which is how we send money around the network without knowing somebody else's private key. Is the same idea true for Hyperleger Fabric? First the CA will create certs and create private public key pairs, and then each participant signs their transaction with their private key to actually submit transactions and prove to the CA that they are who they say they are bc of their private key? So the idea is that we know who submitted each transaction, and then if someone is trying to tamper with some document on the blockchain that they do not have access to, the hash will come out wrong? Is anyone following me here?

horeaporutiu (Thu, 16 Aug 2018 00:05:44 GMT):
Confused on this part:

horeaporutiu (Thu, 16 Aug 2018 00:05:55 GMT):

Screen Shot 2018-08-15 at 5.05.25 PM.png

issac.liu (Thu, 16 Aug 2018 01:07:52 GMT):
Hi do anyone have a solution for this error? "error: [Remote.js]: Error: Failed to connect before the deadline" Command ran: "node query.js" From: Hyperledger Fabric Writing your first application tutorial Exact details can be found here: https://stackoverflow.com/questions/51588356/failed-to-connect-before-deadline

PatrikStas (Thu, 16 Aug 2018 04:36:54 GMT):
Has joined the channel.

underbell (Thu, 16 Aug 2018 05:01:08 GMT):
Has joined the channel.

Tomatoooogerambo (Thu, 16 Aug 2018 05:29:19 GMT):

Screenshot from 2018-08-16 13-32-14.png

Tomatoooogerambo (Thu, 16 Aug 2018 05:29:19 GMT):

Screenshot from 2018-08-16 13-32-14.png

rogersc19 (Thu, 16 Aug 2018 05:52:13 GMT):
Has joined the channel.

zjubfd (Thu, 16 Aug 2018 06:48:53 GMT):
Has joined the channel.

zjubfd (Thu, 16 Aug 2018 06:54:25 GMT):
I am reading the fabric source code. I am confused with the "epoch" field of "ChannelHeader".

zjubfd (Thu, 16 Aug 2018 06:55:39 GMT):
How does it avoid replay attack? I don't understand the souce code comments.

TBigjohn (Thu, 16 Aug 2018 07:21:26 GMT):
Hello, Just a quick reminder, if someone could help me on this : https://stackoverflow.com/questions/51837690/err-bad-proposal-response-500-when-trying-to-join-channel Thanks

rajanashutosh (Thu, 16 Aug 2018 07:35:43 GMT):
@dave.enyeart . Thanks for your help! I have implemented docker persistence and its working as told.

cartmango (Thu, 16 Aug 2018 07:40:52 GMT):
Has joined the channel.

HellBoy_23 (Thu, 16 Aug 2018 07:49:18 GMT):
Hi all, I am getting this error : Promise is rejected: Error: GET_STATE_BY_RANGE failed: transaction ID: ee097a157bb5db4b8551aaa071477c11053c5eb7c1b8631a07358f4ccb0cc0d2: Tx [ee097a157bb5db4b8551aaa071477c11053c5eb7c1b8631a07358f4ccb0cc0d2]: Queries on pvt data is supported only in a read-only transaction

Smit95shah (Thu, 16 Aug 2018 07:53:21 GMT):
Is it valid to say that admin from Org1 is able to sign the registration of user from Org2?

kazemisain (Thu, 16 Aug 2018 08:36:45 GMT):
Has joined the channel.

kazemisain (Thu, 16 Aug 2018 08:38:41 GMT):
Hi, I have a question about security in blockchain, fabric and bitcoin: Are Transaction amount visible for all members or not? I am sorry for my cool question. Thanks in advanced

moyating (Thu, 16 Aug 2018 09:01:27 GMT):
Has joined the channel.

TBigjohn (Thu, 16 Aug 2018 09:14:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=55fzNj5x22faS5sDa) @kazemisain There is no crypto currency in Hyperledger. Using hyperledger, all transaction are not always visible by everybody, for more info read the doc about Hyperledger channels.

Adam_Hardie (Thu, 16 Aug 2018 10:41:39 GMT):
hello - is there any support for Hyperledger Explorer here? https://github.com/hyperledger/blockchain-explorer it seems the npm install is failing on the current code. is there an e2e tutorial for setup that anyone knows works?

ankur_agrawal (Thu, 16 Aug 2018 11:01:26 GMT):
Has joined the channel.

ankur_agrawal (Thu, 16 Aug 2018 11:01:30 GMT):
hi

ankur_agrawal (Thu, 16 Aug 2018 11:01:51 GMT):
i want to connect composer bna file to Oracle Blochain

ankur_agrawal (Thu, 16 Aug 2018 11:02:07 GMT):
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed

tassio (Thu, 16 Aug 2018 11:18:41 GMT):
Has joined the channel.

shailaja.mahara (Thu, 16 Aug 2018 11:24:20 GMT):
Hey everyone! Can anyone here guide me with the challenges of establishing fabric on cloud? I also wanted to get an idea of pricing and upsides.

Javi (Thu, 16 Aug 2018 11:52:05 GMT):
Has joined the channel.

LazarLukic (Thu, 16 Aug 2018 14:07:57 GMT):
Has joined the channel.

LazarLukic (Thu, 16 Aug 2018 14:09:57 GMT):
Hey everyone! I have question. Here is the situaciton there are 2 channels, channel1 and channel2. On channel1 there are some chaincodes instantiated let say cc1 and cc2. And on channel2 cc3. And we have peer1.org1 that is joined on both channels, peer1.org2 is joined only on channel2. Here is the situation. Is it possible to invoke fcn on cc3 that makes crosschain call to cc1? I am getting flowing error: [Failed to get policy manager for channel ]

dkgopi (Thu, 16 Aug 2018 14:18:43 GMT):
Has joined the channel.

dkgopi (Thu, 16 Aug 2018 14:19:14 GMT):
Hello, I want to query my chaincode table and find record count, can Hyperledger explorer be used for this purpose?

dwong (Thu, 16 Aug 2018 20:09:43 GMT):
Hi everyone, I am conistently able to invoke a set function (GetPrivateData and then PutPrivateData) on my chaincode without any problem. But on another function that is just calling GetPrivateData, the invocation always throws an error of: "Error: could not assemble transaction: ProposalResponsePayloads do not match" Any idea?

RahulEth (Thu, 16 Aug 2018 20:16:34 GMT):
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 while doing .... peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME TIMEOUT=10000 -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

RahulEth (Thu, 16 Aug 2018 20:42:47 GMT):
peer channel join t 10000 -b mychannel.block ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7050: failed to create new connection: context deadline exceeded ```

yacovm (Thu, 16 Aug 2018 21:13:48 GMT):
@RahulEth use 7051, not 7050

microinclude (Thu, 16 Aug 2018 23:02:28 GMT):
Has joined the channel.

CodyCoe (Fri, 17 Aug 2018 02:13:13 GMT):
Has joined the channel.

CodyCoe (Fri, 17 Aug 2018 02:14:09 GMT):
hello, has anyone successfully tried deploying fabric to Heroku? I've deployed to AWS and Digital Ocean but was curious about Heroku, but I haven't seen much info on that anywhere

huangliping (Fri, 17 Aug 2018 04:04:28 GMT):
Hi there, did someone get the similar error: Sending proposal to peer0 failed because of: gRPC failure=Status{code=UNIMPLEMENTED, description=unknown service protos.Endorser, cause=null}

caveman7 (Fri, 17 Aug 2018 04:30:09 GMT):
Hi guys, i have a question regarding private data collection. i discovered that the client can invoke transactions to all peers (although only a subset of those peers' orgs belong to the private collection). does that means the other peers can see the private data during endorsement phase even if they do not belong to the private collection? the documentation in HF website is not particularly detailed enough. so for example there are 3 orgs in the network: org1, org2, org3. there is a private collection org1-org2-collection. The fabric-client can send invoke transactions to all 3 orgs. does this mean that org3 peer can see the private data during endorsement phase?

dave.enyeart (Fri, 17 Aug 2018 04:32:49 GMT):
if only org1 and org2 are in the collection, the client should not send endorsement with private data to org3. org1 and org2 will not share the data with org3, that's the whole point of collections. be sure to read all three doc topics:

dave.enyeart (Fri, 17 Aug 2018 04:33:06 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html

dave.enyeart (Fri, 17 Aug 2018 04:33:23 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html

dave.enyeart (Fri, 17 Aug 2018 04:33:35 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

dave.enyeart (Fri, 17 Aug 2018 04:36:02 GMT):
while technically a client could send an endorsement with private data to org3, org3 will not persist the data... and it makes no sense for a client to send private data to org3 that org3 shouldn't see.

caveman7 (Fri, 17 Aug 2018 04:37:29 GMT):
okay, but won't sending the data only to org1 and org2 will cause endorsement policy failure if the endorsement policy is AND(org1, org2, org3) peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n sidedb-chaincode -l "golang" -v v1.0 -c '{"Args":[""]}' -P "AND ('Org1MSP.member','Org2MSP.member', 'Org3MSP.member')" --collections-config /opt/gopath/src/github.com/sidedb-chaincode/collections_config.json where by collections_config.json is [{ "name": "org1-org2-collection", "policy": "OR('Org1MSP.member', 'Org2MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 }]

dave.enyeart (Fri, 17 Aug 2018 04:38:04 GMT):
right... so the endorsement policy needs to account for this... for example use an any-2 endorsement policy.

caveman7 (Fri, 17 Aug 2018 04:39:10 GMT):
so in the endorsement policy, we can't specify the exact org that should endorse, because this will interfere with the collection config?

caveman7 (Fri, 17 Aug 2018 04:39:10 GMT):
so in the endorsement policy, we can't specify the exact org that should endorse, because there is a potential conflict with the collection config?

dave.enyeart (Fri, 17 Aug 2018 04:40:12 GMT):
right. in the future there will likely be an option to configure an endorsement policy on the collection itself, that would override the chaincode's endorsement policy

caveman7 (Fri, 17 Aug 2018 04:41:24 GMT):
i see. thanks for the clarification :) i hope that the above information would be more explicitly stated in the documentation.

dave.enyeart (Fri, 17 Aug 2018 04:41:48 GMT):
thanks for the feedback, will make a note of it

physx (Fri, 17 Aug 2018 05:00:43 GMT):
Has joined the channel.

caveman7 (Fri, 17 Aug 2018 05:05:29 GMT):
just wondering how do I create any-2 (or any-n) endorsement policy using CLI syntax (https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html)? It only supports AND and OR. I understand that I can create any-2 using fabric-client like the following: `{ "identities": [ { "role": { "name": "member", "mspId": "Org1MSP" } }, { "role": { "name": "member", "mspId": "Org2MSP" } }, { "role": { "name": "member", "mspId": "Org3MSP" } } ], "policy": { "2-of": [ { "signed-by": 0 }, { "signed-by": 1 }, { "signed-by": 2 } ] }`

caveman7 (Fri, 17 Aug 2018 05:05:29 GMT):
just wondering how do I create any-2 (or any-n) endorsement policy using CLI syntax (https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html)? It only supports AND and OR. I understand that I can create any-2 using fabric-client like the following: ``` { "identities": [ { "role": { "name": "member", "mspId": "Org1MSP" } }, { "role": { "name": "member", "mspId": "Org2MSP" } }, { "role": { "name": "member", "mspId": "Org3MSP" } } ], "policy": { "2-of": [ { "signed-by": 0 }, { "signed-by": 1 }, { "signed-by": 2 } ] } ```

dave.enyeart (Fri, 17 Aug 2018 05:21:22 GMT):
no way to do it using CLI unfortunately... you need to use fabric-client.

dave.enyeart (Fri, 17 Aug 2018 05:21:22 GMT):
no way to do n-of policy using CLI (unless you want to spell out all the combinations using ANDs/ORs)... you need to use fabric-client.

bh4rtp (Fri, 17 Aug 2018 06:03:30 GMT):
@caveman7 -P "OR(AND('Org1MSP.member','Org2MSP.member'), AND ('Org2MSP.member','Org3MSP.member'), AND ('Org3MSP.member','Org1MSP.member'))". you can try this.

vijnalaw (Fri, 17 Aug 2018 06:23:56 GMT):
Has joined the channel.

prashantsingh (Fri, 17 Aug 2018 06:40:46 GMT):
Has joined the channel.

huangliping (Fri, 17 Aug 2018 06:43:26 GMT):
io.grpc.StatusRuntimeException: UNIMPLEMENTED: unknown service protos.Endorser, did someone encountered this error before?

FabricLearner (Fri, 17 Aug 2018 07:03:39 GMT):
Hi Guys, i am trying to add data to private collection . i am able to instantiate and invoke chaincode correctly but from the couch db i can see data displaying/added only on Org1 but not on Org2,Org3. i have used marbles pvt chaincode example.

TBigjohn (Fri, 17 Aug 2018 07:15:46 GMT):
Any idea about this error https://stackoverflow.com/questions/51837690/err-bad-proposal-response-500-when-trying-to-join-channel "Error: proposal failed (err: bad proposal response 500)"

prashantsingh (Fri, 17 Aug 2018 07:33:48 GMT):
Hi Guys, I wanted to understand the intented use-cases, privileges and management of roles in HLF. 1. What operations are intented to be executed by Admin role and what operations should be delegated to no role other than User? 2. What is the extent of functionalities intented of or assigned to an User? 3. What are some good practise to keep in the back of the mind so as to keep the functionality/responsibility boundary intact between Admin and User role? 4. How a transaction initiated by an User, say user1, is recognised to be performed by him, in case if it is all being recorded? Outside the scope of User-roles, I had few other questions like: 1. If, after the network has been established and few transaction few transactions have been committed, a peer joins an Org and then joins the channel, what happens ater this if the peer tries to query the ledger? 2. As Gari Singh, in one of the answer on StackOverFlow mentioned that instantiating the chaincode launches the chaincode container, but this chaincode container is going to be local situated w.r.t. to peer that has launched it, then how other peers on some other VMs going to interact with the chaincode? Do they communicate by connecting to this chaincode container or they spin up their own and sync the state?

prashantsingh (Fri, 17 Aug 2018 07:33:48 GMT):
Hi Guys, I wanted to understand the intented use-cases, privileges and management of roles in HLF. 1. What operations are intented to be executed by Admin role and what operations should be delegated to no role other than User? 2. What is the extent of functionalities intented of or assigned to an User? 3. What are some good practise to keep in the back of the mind so as to keep the functionality/responsibility boundary intact between Admin and User role? 4. How a transaction initiated by an User, say user1, is recognised to be performed by him, in case if it is all being recorded in the ledger? Outside the scope of User-roles, I had few other questions like: 1. If, after the network has been established and few transaction few transactions have been committed, a peer joins an Org and then joins the channel, what happens ater this if the peer tries to query the ledger? 2. As Gari Singh, in one of the answer on StackOverFlow mentioned that instantiating the chaincode launches the chaincode container, but this chaincode container is going to be local situated w.r.t. to peer that has launched it, then how other peers on some other VMs going to interact with the chaincode? Do they communicate by connecting to this chaincode container or they spin up their own and sync the state?

prashantsingh (Fri, 17 Aug 2018 07:33:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8iN2M5zQikfk5v5Xg) @dave.enyeart I wanted to understand the intented use-cases, privileges and management of roles in HLF. 1. What operations are intented to be executed by Admin role and what operations should be delegated to no role other than User? 2. What is the extent of functionalities intented of or assigned to an User? 3. What are some good practise to keep in the back of the mind so as to keep the functionality/responsibility boundary intact between Admin and User role? 4. How a transaction initiated by an User, say user1, is recognised to be performed by him, in case if it is all being recorded in the ledger? Outside the scope of User-roles, I had few other questions like: 1. If, after the network has been established and few transaction few transactions have been committed, a peer joins an Org and then joins the channel, what happens ater this if the peer tries to query the ledger? 2. As Gari Singh, in one of the answer on StackOverFlow mentioned that instantiating the chaincode launches the chaincode container, but this chaincode container is going to be local situated w.r.t. to peer that has launched it, then how other peers on some other VMs going to interact with the chaincode? Do they communicate by connecting to this chaincode container or they spin up their own and sync the state?

prashantsingh (Fri, 17 Aug 2018 07:33:48 GMT):
@dave.enyeart I wanted to understand the intented use-cases, privileges and management of roles in HLF. 1. What operations are intented to be executed by Admin role and what operations should be delegated to no role other than User? 2. What is the extent of functionalities intented of or assigned to an User? 3. What are some good practise to keep in the back of the mind so as to keep the functionality/responsibility boundary intact between Admin and User role? 4. How a transaction initiated by an User, say user1, is recognised to be performed by him, in case if it is all being recorded in the ledger? Outside the scope of User-roles, I had few other questions like: 1. If, after the network has been established and few transaction few transactions have been committed, a peer joins an Org and then joins the channel, what happens ater this if the peer tries to query the ledger? 2. As Gari Singh, in one of the answer on StackOverFlow mentioned that instantiating the chaincode launches the chaincode container, but this chaincode container is going to be local situated w.r.t. to peer that has launched it, then how other peers on some other VMs going to interact with the chaincode? Do they communicate by connecting to this chaincode container or they spin up their own and sync the state?

prashantsingh (Fri, 17 Aug 2018 07:35:26 GMT):
Please tag me for the answer to above questions. Thanks in advance.

d8bhatta (Fri, 17 Aug 2018 07:49:01 GMT):
Hello, We are exploring nodejs sdk, its found that user1 is enrolled and all of the transactions are done on behalf of the user. I am slighlty confused about the user we use in blockchain. lets say an organiazation have following department: 1. Finance 1.1. Joe, John, Erik (users) 2. IT 2.1 Dave, Patrik 3. Sales 3.1 Michael, Brook so on Now i have following questions, 1. Can we create a node for each department like Finance, IT..? 2. How many peers can be created in each node and on what basis? 3. Can we create Dave,patrik, Michael...as a blockchain user who have to enroll and register like user1 in nodejs sdk?

HellBoy_23 (Fri, 17 Aug 2018 09:21:02 GMT):
Hello,I think there is a bug while using GetPrivateDataByRange when the state is empty..Link is below

HellBoy_23 (Fri, 17 Aug 2018 09:21:03 GMT):
https://jira.hyperledger.org/browse/FAB-11631

Akash-digiledge (Fri, 17 Aug 2018 09:37:50 GMT):
hello, i have a date field in chaincode . so am storing date also.

Akash-digiledge (Fri, 17 Aug 2018 09:40:50 GMT):
Hello, am storing date along with data in my blockchain. so how can i query the data by using with date.(Before that date, after that date)..please help me....

prashantsingh (Fri, 17 Aug 2018 10:22:34 GMT):
@Akash-digiledge, In case of LevelDB, there is no way for you to perform some operation on one of the field you are storing in json-object, which is converted into byte and stored in the database. LevelDB is a simple key-value store, which only *stores the byte-data against a key-string*. So what specialisation or operations you intend to do has to done after you get the data out of the DB and converted back to whatever struct it was originally. You can look into CouchDB as the state database. It is also a key-value store but with the power of mangoose querying system *if you data(value agaunst the key) is stored is a json struct*, which means if you have a timestamp in the json struct you can perform iteration and selection based on that, or any other field for that matter. Little googling should give an idea of what and what-not is possible.

prashantsingh (Fri, 17 Aug 2018 10:22:34 GMT):
@Akash-digiledge, In case of LevelDB, there is no way for you to perform any operation on one of the field you are storing in json-object, which is converted into byte and stored in the database. LevelDB is a simple key-value store, which only *stores the byte-data against a key-string*. So what specialisation or operations you intend to do has to done after you get the data out of the DB and converted back to whatever struct it was originally. You can look into CouchDB as the state database. It is also a key-value store but with the power of mangoose querying system *if you data(value agaunst the key) is stored is a json struct*, which means if you have a timestamp in the json struct you can perform iteration and selection based on that, or any other field for that matter. Little googling should give an idea of what and what-not is possible.

prashantsingh (Fri, 17 Aug 2018 10:22:34 GMT):
Hey @dave.enyeart , I wanted to understand the intented use-cases, privileges and management of roles in HLF. 1. What operations are intented to be executed by Admin role and what operations should be delegated to no role other than User? 2. What is the extent of functionalities intented of or assigned to an User? 3. What are some good practise to keep in the back of the mind so as to keep the functionality/responsibility boundary intact between Admin and User role? 4. How a transaction initiated by an User, say user1, is recognised to be performed by him, in case if it is all being recorded in the ledger? Outside the scope of User-roles, I had few other questions like: 1. If, after the network has been established and few transaction few transactions have been committed, a peer joins an Org and then joins the channel, what happens ater this if the peer tries to query the ledger? 2. As Gari Singh, in one of the answer on StackOverFlow mentioned that instantiating the chaincode launches the chaincode container, but this chaincode container is going to be local situated w.r.t. to peer that has launched it, then how other peers on some other VMs going to interact with the chaincode? Do they communicate by connecting to this chaincode container or they spin up their own and sync the state?

thiyagucse01 (Fri, 17 Aug 2018 11:56:22 GMT):
Hi , How to upload and retrive .pdf,.txt,... and so on file to hyperleder fabric ?

Akash-digiledge (Fri, 17 Aug 2018 12:05:22 GMT):
Thanks @prashantsingh ....

rajanashutosh (Fri, 17 Aug 2018 12:30:31 GMT):
@dave.enyeart Is there a way to identify which all users have modified a transaction while taking up the history of transactions using GetHistoryForKey

dave.enyeart (Fri, 17 Aug 2018 12:35:57 GMT):
@rajanashutosh once you identity the txids by using GetHistoryForKey, you can then query for each individual transaction which will contain the identity of the submitter.

dave.enyeart (Fri, 17 Aug 2018 12:36:01 GMT):
See https://fabric-sdk-node.github.io/Channel.html#queryTransaction__anchor

dave.enyeart (Fri, 17 Aug 2018 12:36:25 GMT):
Parsing through the transaction is complicated... ask on #fabric-sdk-node if you need help.

TBigjohn (Fri, 17 Aug 2018 14:49:18 GMT):
ok I got the main Hyperledger Explorer screen on my browser, "accessing network", "loading blocks", but it never give ma values .... the file log.log does not exist ....

BikashPal (Fri, 17 Aug 2018 14:53:35 GMT):
Has joined the channel.

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is request initiating the transaction or query.I only got mspid and client id. but not able to get user role.

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is request initiating the transaction or query.I only got mspid and client id. but not able to get user role.

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is request initiating the transaction or query.I only got mspid and client id. but not able to get user role.

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is request initiating the transaction or query.I only got mspid and client id. but not able to get user role. @dave.enyeart @rajanashutosh

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is request initiating the transaction or query.I only got mspid and client id. but not able to get user role. @rajanashutosh @thiyagucse01

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is initiating the transaction or query.I only got mspid and client id. but not able to get user role. @rajanashutosh @thiyagucse01

BikashPal (Fri, 17 Aug 2018 14:53:41 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is initiating the transaction or query.I only got mspid and client id. but not able to get user role. @rajanashutosh @thiyagucse01 @dave.enyeart

BikashPal (Fri, 17 Aug 2018 15:08:24 GMT):
I have successfully deployed fabric hyper ledger network on aws and is working fine. Now what I want is user info who is initiating the transaction or query.I only got mspid and client id. but not able to get user role. @rajanashutosh @thiyagucse01 @

vieiramanoel (Fri, 17 Aug 2018 17:44:11 GMT):
Hey guys, I've got a question for you, if someone could answer I'd be thankful! - Is it possible to run chaincodes in different versions on same channel? Peers with different version of chaincode still can transact among them?

yacovm (Fri, 17 Aug 2018 21:11:30 GMT):
@vieiramanoel of course it's not possible

RahulEth (Fri, 17 Aug 2018 21:30:49 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7051: failed to create new connection: context deadline exceeded``` while running peer channel create -o orderer.example.com:7051 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ```

RahulEth (Fri, 17 Aug 2018 21:30:49 GMT):
@yacovm Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7051: failed to create new connection: context deadline exceeded``` while running peer channel create -o orderer.example.com:7051 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ```

RahulEth (Fri, 17 Aug 2018 21:36:35 GMT):
could you help me get out of this

yacovm (Fri, 17 Aug 2018 21:39:56 GMT):
yeah, change the port from 7051 to 7050

RahulEth (Sat, 18 Aug 2018 08:12:16 GMT):
@yacovm thanks for responding get same error if i chane to port 7050

AnisJaffer (Sat, 18 Aug 2018 13:38:28 GMT):
Has joined the channel.

Smit95shah (Sat, 18 Aug 2018 14:52:46 GMT):
Hi

Smit95shah (Sat, 18 Aug 2018 14:53:07 GMT):
can someone help me with this error

Smit95shah (Sat, 18 Aug 2018 14:53:08 GMT):
``` ```

Smit95shah (Sat, 18 Aug 2018 14:53:13 GMT):
``` 2018-08-18 14:51:18.443 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-08-18 14:51:18.443 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-08-18 14:51:18.447 UTC [grpc] Printf -> DEBU 003 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF. Error: Error getting broadcast client: rpc error: code = Unavailable desc = transport is closing ```

BlockchainBusiness (Sat, 18 Aug 2018 16:42:49 GMT):
Hi, I'm building a webportal purchasing system where I need to build up a some blockchain functionality, where the portal can be setup to retrieve data from other webshop/databases or the other way around - any ideas where to start? i can generate API's easily, but I would like resources/links to guide me...any help would be much appreciated

tylerwince (Sat, 18 Aug 2018 21:27:41 GMT):
Has joined the channel.

JackMalinowski (Sun, 19 Aug 2018 01:41:40 GMT):
How could I manually install composer in the Azure environment? I have used the "Hyperledger Fabric Consortium" template to set up the network. Unfortunately, this template doesn't include Composer out of the box.

ChanghongZou (Sun, 19 Aug 2018 03:18:46 GMT):
Has joined the channel.

ChanghongZou (Sun, 19 Aug 2018 03:22:34 GMT):
When I update the Update the anchor peers in BYFN Hyperledger fabric v1.0

ChanghongZou (Sun, 19 Aug 2018 03:25:58 GMT):
When I update the Update the anchor peers in BYFN Hyperledger fabric v1.0 When I update the Update the anchor peers in BYFN Hyperledger fabric v1.0 When I try the update the achor peer step in BYFN of Hyperledger tutorials. I meet a problem. `/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` Then I get this response ` UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1` How to deal with this problem?

larry618 (Sun, 19 Aug 2018 07:44:19 GMT):
Has joined the channel.

larry618 (Sun, 19 Aug 2018 07:59:00 GMT):
Hi there, I have a question is there any function to get the current ledger blocks height?

nukulsharma (Sun, 19 Aug 2018 08:38:44 GMT):
Hi All, Facing an issue, where invoking private data and then queying same data working fine on peer of Org 1. But data added by Org 1 peer, is not visible or persisted on Peer of Org 2 ( which is part of policy)

nukulsharma (Sun, 19 Aug 2018 08:38:44 GMT):
Hi All, Facing an issue, where invoking private data and then queying same data working fine on peer of Org 1. But data added by Org 1 peer, is not visible or persisted on Peer of Org 2 ( which is part of policy) Logs: `2018-08-19 08:12:55.752 UTC [couchdb] handleRequest -> DEBU f01 HTTP Request: GET /mychannel_clmcc_private$$pcollection$asset$private$details/1461?attachments=true HTTP/1.1 | Host: couchdb1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-19 08:12:55.755 UTC [couchdb] handleRequest -> DEBU f02 Couch DB Error:not_found, Status Code:404, Reason:missing 2018-08-19 08:12:55.755 UTC [couchdb] ReadDoc -> DEBU f03 Document not found (404), returning nil value instead of 404 error 2018-08-19 08:12:55.755 UTC [statecouchdb] GetCachedVersion -> DEBU f04 Retrieving cached version: TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw=~clmcc_private$$hcollectionAssetPrivateDetails 2018-08-19 08:12:55.756 UTC [statecouchdb] GetState -> DEBU f05 GetState(). ns=clmcc_private$$hcollectionAssetPrivateDetails, key=TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] ReadDoc -> DEBU f06 Entering ReadDoc() id=[TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw=] 2018-08-19 08:12:55.756 UTC [couchdb] encodePathElement -> DEBU f07 Entering encodePathElement() string=TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] encodePathElement -> DEBU f08 Exiting encodePathElement() encodedStr=TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] handleRequest -> DEBU f09 Entering handleRequest() method=GET url=http://couchdb1:5984/mychannel_clmcc_private$$hcollection$asset$private$details/TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw=?attachments=true 2018-08-19 08:12:55.757 UTC [couchdb] handleRequest -> DEBU f0a HTTP Request: GET /mychannel_clmcc_private$$hcollection$asset$private$details/TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw=?attachments=true HTTP/1.1 | Host: couchdb1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-19 08:12:55.761 UTC [couchdb] handleRequest -> DEBU f0b Exiting handleRequest() 2018-08-19 08:12:55.761 UTC [couchdb] ReadDoc -> DEBU f0c part header=map[Content-Type:[application/json]] 2018-08-19 08:12:55.761 UTC [couchdb] ReadDoc -> DEBU f0d part header=map[Content-Type:[application/octet-stream] Content-Length:[55] Content-Encoding:[gzip] Content-Disposition:[attachment; filename="valueBytes"]] 2018-08-19 08:12:55.763 UTC [couchdb] ReadDoc -> DEBU f0e Retrieved attachment data 2018-08-19 08:12:55.763 UTC [chaincode] HandleTransaction -> ERRO f0f [0f236c3f] Failed to handle GET_STATE. error: Private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x2, TxNum:0x0}, Private data version = (*version.Height)(nil) github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:545 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState-fm /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:197 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:242 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 GET_STATE failed: transaction ID: 0f236c3f63bad2157263745852088c95acd4c63238e2f159850f7301df1db407 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:246 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 ` Looking at CouchDB for Org 1 , it seems data is persisted. However, for Org 2 peer CouchDB is it not persisted. `{ "error": "not_found", "reason": "missing" }`

nukulsharma (Sun, 19 Aug 2018 08:38:44 GMT):
Hi All, Facing an issue, where invoking private data and then queying same data working fine on peer of Org 1. But data added by Org 1 peer, is not visible or persisted on Peer of Org 2 ( which is part of policy) Logs: `2018-08-19 08:12:55.752 UTC [couchdb] handleRequest -> DEBU f01 HTTP Request: GET /mychannel_clmcc_private$$pcollection$asset$private$details/1461?attachments=true HTTP/1.1 | Host: couchdb1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-19 08:12:55.755 UTC [couchdb] handleRequest -> DEBU f02 Couch DB Error:not_found, Status Code:404, Reason:missing 2018-08-19 08:12:55.755 UTC [couchdb] ReadDoc -> DEBU f03 Document not found (404), returning nil value instead of 404 error 2018-08-19 08:12:55.755 UTC [statecouchdb] GetCachedVersion -> DEBU f04 Retrieving cached version: TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw=~clmcc_private$$hcollectionAssetPrivateDetails 2018-08-19 08:12:55.756 UTC [statecouchdb] GetState -> DEBU f05 GetState(). ns=clmcc_private$$hcollectionAssetPrivateDetails, key=TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] ReadDoc -> DEBU f06 Entering ReadDoc() id=[TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw=] 2018-08-19 08:12:55.756 UTC [couchdb] encodePathElement -> DEBU f07 Entering encodePathElement() string=TNRoUB/BpVP0mnCYQkxR0u1/bVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] encodePathElement -> DEBU f08 Exiting encodePathElement() encodedStr=TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw= 2018-08-19 08:12:55.756 UTC [couchdb] handleRequest -> DEBU f09 Entering handleRequest() method=GET url=http://couchdb1:5984/mychannel_clmcc_private$$hcollection$asset$private$details/TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw=?attachments=true 2018-08-19 08:12:55.757 UTC [couchdb] handleRequest -> DEBU f0a HTTP Request: GET /mychannel_clmcc_private$$hcollection$asset$private$details/TNRoUB%2FBpVP0mnCYQkxR0u1%2FbVRiZq3cwW5QoAjuFIw=?attachments=true HTTP/1.1 | Host: couchdb1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | 2018-08-19 08:12:55.761 UTC [couchdb] handleRequest -> DEBU f0b Exiting handleRequest() 2018-08-19 08:12:55.761 UTC [couchdb] ReadDoc -> DEBU f0c part header=map[Content-Type:[application/json]] 2018-08-19 08:12:55.761 UTC [couchdb] ReadDoc -> DEBU f0d part header=map[Content-Type:[application/octet-stream] Content-Length:[55] Content-Encoding:[gzip] Content-Disposition:[attachment; filename="valueBytes"]] 2018-08-19 08:12:55.763 UTC [couchdb] ReadDoc -> DEBU f0e Retrieved attachment data 2018-08-19 08:12:55.763 UTC [chaincode] HandleTransaction -> ERRO f0f [0f236c3f] Failed to handle GET_STATE. error: Private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x2, TxNum:0x0}, Private data version = (*version.Height)(nil) github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:545 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState-fm /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:197 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:242 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 GET_STATE failed: transaction ID: 0f236c3f63bad2157263745852088c95acd4c63238e2f159850f7301df1db407 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:246 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 ` Looking at CouchDB for Org 1 , it seems data is persisted. However, for Org 2 peer CouchDB is it not persisted. Org 2 peer couchdb - `{ "error": "not_found", "reason": "missing" }`

RahulEth (Sun, 19 Aug 2018 10:05:33 GMT):

Screenshot from 2018-08-19 15-31-59.png

oooonduke (Sun, 19 Aug 2018 10:27:20 GMT):
Has joined the channel.

oooonduke (Sun, 19 Aug 2018 10:35:19 GMT):
Has left the channel.

dave.enyeart (Sun, 19 Aug 2018 12:05:26 GMT):
@nukulsharma Private data is shared via gossip, so it sounds like you have a gossip misconfiguration. Compare your network and settings against a known working configuration such as https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml and the anchor peers configs in https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/configtx.yaml .

dave.enyeart (Sun, 19 Aug 2018 12:05:26 GMT):
@nukulsharma Private data is shared via gossip, so it sounds like you have a gossip misconfiguration. Compare your network and settings against a known working configuration such as https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml and the anchor peers configs in https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/configtx.yaml .

dave.enyeart (Sun, 19 Aug 2018 12:05:26 GMT):
@nukulsharma Private data is shared via gossip, so it sounds like you have a gossip misconfiguration. Compare your network and settings against a known working configuration such as https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml and the anchor peers configs in https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/configtx.yaml .

dave.enyeart (Sun, 19 Aug 2018 12:05:26 GMT):
@nukulsharma Private data is shared via gossip, so it sounds like you have a gossip misconfiguration. Compare your network and settings against a known working configuration such as https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml and the anchor peers configs in https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/configtx.yaml .

dave.enyeart (Sun, 19 Aug 2018 12:05:26 GMT):
@nukulsharma Private data is shared via gossip, so it sounds like you have a gossip misconfiguration. Compare your network and settings against a known working configuration such as https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/base/docker-compose-base.yaml and the anchor peers configs in https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/configtx.yaml .

BlockchainBusiness (Sun, 19 Aug 2018 14:23:11 GMT):
@RahulEth ... I experienced a similar issue, I realised that it was a result of a previous HL network I had setup. I deleted EVERYTHING, removed all docker images, .composer folder, reinstalled and it worked...also try actually bringing the network down, then up again..

RahulEth (Sun, 19 Aug 2018 15:01:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dBvuB4E4vR6nkmJJu) @BlockchainBusiness i am using the old docker images will try again after removing all thanks a lot

BlockchainBusiness (Sun, 19 Aug 2018 15:09:53 GMT):
https://stackoverflow.com/questions/48151804/error-got-unexpected-status-forbidden-failed-to-reach-implicit-threshold-of?rq=1

BlockchainBusiness (Sun, 19 Aug 2018 15:10:06 GMT):
this article was very helpful for me

nukulsharma (Sun, 19 Aug 2018 16:09:20 GMT):
@dave.enyeart - thanks dave for responding to query/problem. I actually compared it, but i couldnt figure out any issue.

nukulsharma (Sun, 19 Aug 2018 16:09:20 GMT):
@dave.enyeart - thanks dave for responding to query/problem. I actually compared it, but i couldnt figure out any issue. I have 1 peer per organization: i have set both bootstramp and externalend point to same peer ( only 1 in org) . - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 I still see same issue.

nukulsharma (Sun, 19 Aug 2018 16:09:20 GMT):
@dave.enyeart - thanks dave for responding to query/problem. I actually compared it, but i couldnt figure out any issue. I have 1 peer per organization: i have set both bootstrap and external endpoint to same peer ( only 1 in org) . - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 I still see same issue.

nukulsharma (Sun, 19 Aug 2018 16:53:54 GMT):
UPDATE: It seems policy set was `"policy": { "1-of": [{ "signed-by": 0 }]` Changed it to... `"policy": { "1-of": [ { "signed-by": 0 }, { "signed-by": 1 } ] }` Though i couldnt find the documentation around this, to understand better ...the difference

nukulsharma (Sun, 19 Aug 2018 16:53:54 GMT):
UPDATE: It seems policy set was `"policy": { "1-of": [{ "signed-by": 0 }]` Changed it to... `"policy": { "1-of": [ { "signed-by": 0 }, { "signed-by": 1 } ] }` Though i couldn't find the documentation around this, to understand better ...the difference !! This fixed the issue.

rajasushanth (Sun, 19 Aug 2018 18:01:49 GMT):

ShawnCorliss (Sun, 19 Aug 2018 18:13:04 GMT):
Has joined the channel.

proloy03 (Sun, 19 Aug 2018 18:17:19 GMT):
Has joined the channel.

proloy03 (Sun, 19 Aug 2018 18:18:19 GMT):
Hi guys, can a contract in one channel communicate with the contract in another channel?

proloy03 (Sun, 19 Aug 2018 18:18:19 GMT):
Hi guys, can a chaincode in one channel communicate with the contract in another channel?

proloy03 (Sun, 19 Aug 2018 18:19:41 GMT):
That being said is it possible to share same asset in multiple channels? possibly this will not be possible, but still wanted a confirmation

proloy03 (Sun, 19 Aug 2018 18:19:41 GMT):
That being said is it possible to share same asset data (same key) in multiple channels (like using reference or something)? possibly this will not be possible, but still wanted a confirmation

avagarwal (Mon, 20 Aug 2018 01:15:11 GMT):
Has joined the channel.

avagarwal (Mon, 20 Aug 2018 01:19:51 GMT):
where can i find instructions to install fabric on a windows 10 machine

issac.liu (Mon, 20 Aug 2018 02:54:27 GMT):
@avagarwal https://www.youtube.com/watch?v=7BeJ6MSKH9k&t=351s

rajanashutosh (Mon, 20 Aug 2018 04:57:54 GMT):
@dave.enyeart Thanks for the direction. I would go through this and raise it in Node and Java sdk. Since we are using Java sdk to expose it to external. So if you have any suggestions on both sdks we would be glad to accept it

huangliping (Mon, 20 Aug 2018 05:34:04 GMT):
Hi there, when I try to query/invoke the chchaincode with transient map, how to convert the key for the DECKEY/ENCKEY?

huangliping (Mon, 20 Aug 2018 05:34:36 GMT):
ENCKEY=DECKEY=hJM2KYj33vBq/+3GGybwyFB3chOkNo4lv1swAEMxC3E=’

huangliping (Mon, 20 Aug 2018 05:35:21 GMT):
ENCKEY=DECKEY="hJM2KYj33vBq/+3GGybwyFB3chOkNo4lv1swAEMxC3E=", how to convert it to the byte[]? is there any method to do the conversion?

chapagain (Mon, 20 Aug 2018 06:52:59 GMT):
I am getting the following error while running the command `./byfn.sh up` ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ```

chapagain (Mon, 20 Aug 2018 06:52:59 GMT):
I am getting the following error while running the command `./byfn.sh up` inside **fabric-samples/first-network** ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ```

chapagain (Mon, 20 Aug 2018 06:52:59 GMT):
I am getting the following error while running the command `./byfn.sh up` inside **fabric-samples/first-network** ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ``` I have tried removing all the docker containers, images, and volumes. Any idea? @BlockchainBusiness @RahulEth

bensonkb (Mon, 20 Aug 2018 07:19:08 GMT):
Has joined the channel.

laurensdegilde (Mon, 20 Aug 2018 09:12:01 GMT):
Is their someone in this group that has experience with sending HTTP post calls to an REST Api from within Go chaincode? When I want to instantiated the chaincode it gives an request time out, my main guess and debug info points me to a time out in the client.do() request

laurensdegilde (Mon, 20 Aug 2018 09:12:22 GMT):
I can send pictures of my error messages and chaincode if someone needs them for debugging the problem.

laurensdegilde (Mon, 20 Aug 2018 09:12:40 GMT):
Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction fdd5b4624e612a1ec9b621f9d8c58b09ad7480853262a5f09140ecff853c580f: timeout expired while starting chaincode pmtcc:11.0 for transaction fdd5b4624e612a1ec9b621f9d8c58b09ad7480853262a5f09140ecff853c580f

ivatahov (Mon, 20 Aug 2018 09:15:01 GMT):
Has joined the channel.

Subhankar 3 (Mon, 20 Aug 2018 09:16:12 GMT):
Has joined the channel.

Subhankar 3 (Mon, 20 Aug 2018 09:16:27 GMT):
I want to contribute to Fabric's performance. Where can I get a proper documentation for Fabric's source code.

ivatahov (Mon, 20 Aug 2018 09:24:34 GMT):
Hi guys, I want to ask which approach is better - to have N different versions of a single key that points to a json file with size M or to have N different keys with values with size M / N? (CouchDB)

ajeetrock (Mon, 20 Aug 2018 09:55:48 GMT):
Has joined the channel.

chapagain (Mon, 20 Aug 2018 09:59:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tr4CCyHPh829v4ahf) Solved this issue by upgrading docker to the latest version.

memphisw (Mon, 20 Aug 2018 10:22:04 GMT):
Say if org_A was rejected by a channel owned by org_B(former joined), or even worse, B is offline. A's peers will still try to talk to B. therefore a bunch of logs keeps telling A that it is no longer able to connect to B. And it's quite annoying, since A is no longer in this

memphisw (Mon, 20 Aug 2018 10:22:04 GMT):
Say if org_A was rejected by a channel owned by org_B(former joined), or even worse, B is offline. A's peers will still try to talk to B. therefore a bunch of logs keeps telling A that it is no longer able to connect to B. And it's quite annoying, since A is no longer in this business, how can i remove channel in A's peers.

memphisw (Mon, 20 Aug 2018 10:22:04 GMT):
Say if org_A was rejected by a channel owned by org_B(former joined), or even worse, B is offline. A's peers will still try to talk to B. therefore a bunch of logs keeps telling A that it is no longer able to connect to B. And it's quite annoying, since A is no longer in this business, how can i remove channel in A's peers.

Alvin455024780 (Mon, 20 Aug 2018 11:11:50 GMT):
fabric-ca how to create Org

ng2dev (Mon, 20 Aug 2018 11:24:22 GMT):
I need to know if one creates an index in leveldb say prefix-id for composite key queries and additionally I would run a range query with start-id / end-id would the range query also include the empty prefix-id index keys?

iampo12 (Mon, 20 Aug 2018 11:24:46 GMT):
Has joined the channel.

ng2dev (Mon, 20 Aug 2018 11:27:27 GMT):
also puzzling I tried to create a couchdb based fabric network. chaincode deployed with meta-INF couchdb index json defined in ccpath. Chaincode instantiates fine get/put works as expected with the cc. If I try to trigger a rich query it just returns an empty array.

Gaspard (Mon, 20 Aug 2018 11:33:11 GMT):
Has joined the channel.

ng2dev (Mon, 20 Aug 2018 11:33:16 GMT):
this is the meta-inf index json content on ccpath {"index":{"fields":["owner"]},"ddoc":"indexOwnerDoc", "name":"indexOwner","type":"json"} this is the object stored in the statedb "1": {"owner": "jim"} this is my query against a version of the marbles cc queryMarbles function example "fcn":"query", "args":["{\"selector\":{\"owner\":\"jim\"}}"] but as mentioned the return is empty array even I just created the index and entry. Besides I assume my couch configuration is ok as get/put work fine. I followed everything in the documentation here `https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_as_state_database.html`

dave.enyeart (Mon, 20 Aug 2018 11:38:35 GMT):
@ng2dev First try the sample linked in https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_as_state_database.html ... it has a similar query that is known to work

dave.enyeart (Mon, 20 Aug 2018 11:39:02 GMT):
you can expose the couchdb port and then troubleshoot against couchdb apis directly

dave.enyeart (Mon, 20 Aug 2018 11:39:37 GMT):
On your first question, there is an existing requirement to provide a function to do range queries against composite keys: https://jira.hyperledger.org/browse/FAB-11281

ng2dev (Mon, 20 Aug 2018 11:40:04 GMT):
thank you sir will investigate

rajanashutosh (Mon, 20 Aug 2018 12:14:03 GMT):
@dave.enyeart - We are working on Passenger airplane and location tracking system. Our data model contains more than 50 + fields which would be getting saved during initial insert of the transaction. Later on we would be getting position updates (2 or 3 fields) in every 15 seconds. Data volume which we are expecting Normal case: 24 hrs journey 5760 updates Worst case: 72 hrs journey 17280 updates So we would like to understand following things: 1. How we should model this scenario, whether we should go with single datamodel which contains all the information getting updated each 15 seconds. 2. We can split up the frequently updated fields alone into seperate channel/chaincode combination to be identified with TxId from earlier transaction as a reference. (While we tried it seems like we cannot do a update directly into same channel which adds the whole document with new schema.) 3. Two chaincodes in single channel Parent chaincode -> --> Child1 chaincode --> Save static info --> Child2 Chaincode --> Save dynamic info 4. whether we should make calls from using SDK to interact with different chaincodes rather than directly using chaincode to chaincode interaction What would be your approach and best way to solve this problem?

rajanashutosh (Mon, 20 Aug 2018 12:14:26 GMT):
Please provide your suggestions on this

Hana_Ch (Mon, 20 Aug 2018 12:24:38 GMT):
Hi ,i am new with hyperledger and i have a problem with Hyperledger Explorer , it starts for one single time , then it stopped suddenly without reason and it refuses to restart until i restart the virtual machine in wich it is hosted ... does anyone have an idea about that problem and the reason for wich hyperledger Explorer presents a connexion refused error .. and thanks

dave.enyeart (Mon, 20 Aug 2018 12:33:50 GMT):
@rajanashutosh yes it does make sense to split out frequently updated fields into their own keys. Application consulting is a full time job, I couldn't do it justice here, but I'd be happy to connect you to one of the 'garages' that does application consulting, message me if you are interested.

Alvin455024780 (Mon, 20 Aug 2018 12:38:33 GMT):
have some one know how to use the fabric ca to create peerOrganizations ?

gdmuzzillo (Mon, 20 Aug 2018 13:02:47 GMT):
Has joined the channel.

gdmuzzillo (Mon, 20 Aug 2018 13:47:55 GMT):
Hi folks, quick question, do you know what will happen with the java shim? looks like it is not there in hyperledger-fabric 1.2

rajanashutosh (Mon, 20 Aug 2018 14:32:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EQF8AEaQ6t55Nsquu) @dave.enyeart sure Dave. Thanks.

jvsclp (Mon, 20 Aug 2018 14:43:20 GMT):
I am working at setting up a channel composed of one organization, but with several organizational units. So, Org1.divA, Org1.divB, etc. I don't want my Membership Service Provider to become unwieldy as I want each organizational unit to be able to manage their membership definitions. I'm not quite grasping how to set up the configtx.yaml to keep the organizational units under one organization, but define each organizational unit's MSP configuration seperately. Any help would be appreciated. `################################################################################ # # Section: Organizations # # - This section defines the different organizational identities which will # be referenced later in the configuration. # ################################################################################ Organizations: # SampleOrg defines an MSP using the sampleconfig. It should never be used # in production but may be used as a template for other definitions - &AcmeInc # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Acme # ID to load the MSP definition as ID: AcmeMSP # MSPDir is the filesystem path which contains the MSP configuration MSPDir: path/to/Acme/msp`

rajanashutosh (Mon, 20 Aug 2018 15:10:31 GMT):
@dave.enyeart For chaincode to chaincode invocation https://jira.hyperledger.org/browse/FAB-1788. I went through this Jira ticket. Is it possible to make two inserts into two different channels via two chaincodes ?

dave.enyeart (Mon, 20 Aug 2018 15:14:25 GMT):
A transaction cannot span channels

dave.enyeart (Mon, 20 Aug 2018 15:15:35 GMT):
You would need two transactions and have the client ensure that they both get committed

rajasushanth (Mon, 20 Aug 2018 18:27:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JrAmHR5giET6chnPi) @rajanashutosh @dave.enyeart how about invoking putstate of a chaincode from another chaincode both belonging to same channel?? Can a transaction span across chaincodes within same channel??

dave.enyeart (Mon, 20 Aug 2018 18:50:52 GMT):
Yes, see the description at https://github.com/hyperledger/fabric/blob/release-1.2/core/chaincode/shim/interfaces.go#L63-L77

rajasushanth (Mon, 20 Aug 2018 19:05:20 GMT):
Got it, thanks !!

dangnguy (Mon, 20 Aug 2018 20:04:28 GMT):
Has joined the channel.

nicoventrella (Mon, 20 Aug 2018 20:58:51 GMT):
Has joined the channel.

nicoventrella (Mon, 20 Aug 2018 20:59:24 GMT):
Hi, I have created my BND and now i want to install it on the fabric network (2 peers on a machine and 1 on another machine), but when I run I created my business network (BND) but when I try to install it: composer network install -c PeerAdmin@hlfv1 -a fabric-dev-servers@0.0.13.bna I receive the following error: ✖ Installing business network. This may take a minute… Error: PEM encoded certificate is required. Command failed Shouldn’t the certificate be in the card? Have anyone had the same issue?

JackMalinowski (Mon, 20 Aug 2018 23:25:16 GMT):
How to manually install Composer to an existing Hyperledger Fabric Blockchain network?

adamgering (Tue, 21 Aug 2018 00:37:11 GMT):
Has joined the channel.

vidyo (Tue, 21 Aug 2018 01:53:35 GMT):
Has joined the channel.

JamesShi (Tue, 21 Aug 2018 02:33:36 GMT):
Has joined the channel.

rajanashutosh (Tue, 21 Aug 2018 03:50:49 GMT):
@dave.enyeart Thanks for your response

ashlinSajan (Tue, 21 Aug 2018 05:19:07 GMT):

error.png

ashlinSajan (Tue, 21 Aug 2018 05:19:07 GMT):

error.png

SubhodI (Tue, 21 Aug 2018 08:02:00 GMT):
attachmentssubhod

eidand (Tue, 21 Aug 2018 08:20:08 GMT):
got a question about modelling the network, so bna kinda logic. let's say I have an asset and then I create a transaction which allows me to change a value. if i generate a rest api this provides me an endpoint to interact with my asset class and there is a PUT there which allows me to update my asset just like my transaction does. Both end up generating a transaction on the ledger. My question is what is the difference between these two ways of touching the asset and why should I prefer the transaction over the PUT against the asset?

vineetmishra (Tue, 21 Aug 2018 08:32:02 GMT):
hi all

vineetmishra (Tue, 21 Aug 2018 08:32:40 GMT):
i am facing following error " cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of" while installing abcd chanincode. Please help me someone

vineetmishra (Tue, 21 Aug 2018 08:33:08 GMT):
lib/cid packge are there in gopath

TBigjohn (Tue, 21 Aug 2018 09:38:40 GMT):
Hello, I have the following structure : one orderer, one ca and one peer. A channel1 is define and the peer has successfully joined this channel. A first chaincode has been successfully deployed on the peer. If now I want a second peer to join channel1, do I have to deploy the same chaincode before the join command ?

mastersingh24 (Tue, 21 Aug 2018 09:59:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fEEKv22XjGHoFsnTu) @vineetmishra Assuming you are getting this error when trying to instantiate chaincode, then you need to make sure that you actually vendor the `cid` package with your chaincode prior to installing. You can use something like `govendor` to accomplish this

AnthonyRoux (Tue, 21 Aug 2018 10:07:40 GMT):
@TBigjohn Hi ! It depends if the peer is an endorser, a commiter or a standard peer. If it is an endorser or a commiter you have no choice but to install (install, not instantiate) the chaincode. if not the choice is yours. However, you can also install the chaincode after the peer joined the channel.

TBigjohn (Tue, 21 Aug 2018 10:33:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4YpYKPZnHPt3jdetL) @AnthonyRoux Thanks for your reply. It's clear for me which one is an orderer because the image used to deploy is different but how can I see ( or define ) the role of a peer ? For the moment when I ask my new peer to join the channel I get the following error : "Error: proposal failed (err: bad proposal response 500)"

vineetmishra (Tue, 21 Aug 2018 10:45:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yiZ4bEDxf5aWQ6TZh) @mastersingh24 Yap , thanks, it's working now

TBigjohn (Tue, 21 Aug 2018 11:01:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4YpYKPZnHPt3jdetL) @AnthonyRoux So the peer which is already member of the channel is an endorser ( info from the connection profile ). My chaincode has been written and installed using composer. But I need to install my chaincode to the new peer before joining the channel my connection profile is not up to date ... and if I add information in the connection profile it's not reflecting the reality ... so .... How can I deal with this ????

AnthonyRoux (Tue, 21 Aug 2018 11:31:30 GMT):
@TBigjohn You can install the chaincode whenever you want. If you use the node-sdk you define the roles of the peer in the connection profile (same thing with the go-sdk). But as I said in my previous message endorsing peers need to have the chaincode installed. Also I'm not familiar with composer, so I may not be a great help. How do you plan to make the second peer join the channel (using CLI, scripts etc) ?

rajanashutosh (Tue, 21 Aug 2018 11:39:56 GMT):
Hi.. There is an issue whihc i am facing while working on with chaincode to chaincode invocation. util.ToChaincodeArgs() package "github.com/hyperledger/fabric/common/util"

rajanashutosh (Tue, 21 Aug 2018 11:40:30 GMT):
but when this chaincode is tried to install within CLI following error is notified

rajanashutosh (Tue, 21 Aug 2018 11:40:30 GMT):
error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/common/util: : failed with error: "exit status 1"

rajanashutosh (Tue, 21 Aug 2018 11:41:21 GMT):
Why is this package not available in the container. In the samples when i am checking it shows completely different path "github.com/hyperledger/fabric/core/util"

TBigjohn (Tue, 21 Aug 2018 11:42:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JCaqLTbzo7LPm3Nna) @AnthonyRoux When the second peer is installed and launched, I connect on it as root and launch the 2 following commands : channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050 peer channel join -b channel1.block

TBigjohn (Tue, 21 Aug 2018 11:42:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JCaqLTbzo7LPm3Nna) @AnthonyRoux When the second peer is installed and launched, I connect on it as root and launch the 2 following commands : channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050 peer channel join -b channel1.block

TBigjohn (Tue, 21 Aug 2018 11:42:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JCaqLTbzo7LPm3Nna) @AnthonyRoux When the second peer is installed and launched, I connect on it as root and launch the 2 following commands : channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050 peer channel join -b channel1.block The first command is successfull and the second one gives the error posted before. Thhose commands has been successfull to add the first peer.

VictorStroganov (Tue, 21 Aug 2018 11:44:39 GMT):
Has joined the channel.

VictorStroganov (Tue, 21 Aug 2018 11:48:32 GMT):
Hi everyone! I'm trying to use private collections and js chaincode. "Public" function of chaincode work well, but when dealing with private I get error: ERROR [lib/handler.js] [mainchannel-146f5b3c]Calling chaincode Invoke() returned error response [TypeError: stub.GetPrivateData is not a function]. Sending ERROR message back to peer

VictorStroganov (Tue, 21 Aug 2018 11:48:32 GMT):
Hi everyone! I'm trying to use private collections and js chaincode. "Public" function of chaincode work well, but when dealing with private I get error: ERROR [lib/handler.js] [mainchannel-146f5b3c]Calling chaincode Invoke() returned error response [TypeError: stub.GetPrivateData is not a function]. Sending ERROR message back to peer What am I doing wrong?

lepar (Tue, 21 Aug 2018 11:50:14 GMT):
@VictorStroganov You probably forgot to declare it in the Invoke method

AnthonyRoux (Tue, 21 Aug 2018 11:52:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kBJ3Mh3L4yDRfAnec) @TBigjohn I never use `channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050` to get info from the orderer. How your artefacts are generated ? Are the volumes path correct (It could be interesting to check if the second peer embed all the artefacts you need)

rajanashutosh (Tue, 21 Aug 2018 11:52:55 GMT):
@AnthonyRoux request you to please provide your views on the issue which i am facing

VictorStroganov (Tue, 21 Aug 2018 11:53:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KdHaGdtM6rhKMsTRW) @lepar I'v added debug message to my chaincode and I can see that function itself is called

lepar (Tue, 21 Aug 2018 11:56:06 GMT):
Send the docker logs from the peer to get more of an insight of what's happening

AnthonyRoux (Tue, 21 Aug 2018 11:56:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NAFW73CqZAHxScmZJ) @rajanashutosh Hi ! Sorry I can't help with chaincode packages as I don't them usually. I also don't really understand are you trying to do

VictorStroganov (Tue, 21 Aug 2018 11:59:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xZMCXQdsmXngm5dHf) @lepar { fcn: 'createPrivateAccount', params: [ 'a', '101' ] } ============= START : createPrivateAccount =========== TypeError: stub.GetPrivateData is not a function at createPrivateAccount (/usr/local/src/accounts.js:132:38) at Chaincode.Invoke (/usr/local/src/accounts.js:30:27) at handleMessage (/usr/local/src/node_modules/fabric-shim/lib/handler.js:574:35) at ChaincodeSupportClient.handleTransaction (/usr/local/src/node_modules/fabric-shim/lib/handler.js:359:3) at ClientDuplexStream. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:299:12) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) 2018-08-21T11:30:03.009Z ERROR [lib/handler.js] [mainchannel-146f5b3c]Calling chaincode Invoke() returned error response [TypeError: stub.GetPrivateData is not a function]. Sending ERROR message back to peer

rajanashutosh (Tue, 21 Aug 2018 12:00:12 GMT):
I am trying to invoke one chaincode from another chaincode since i am taking some inputs from response of another chaincode. While trying to make this call as per the samples https://github.com/hyperledger/fabric/blob/v0.6/examples/chaincode/go/chaincode_example04/chaincode_example04.go Method f := "invoke" invokeArgs := util.ToChaincodeArgs(f, "a", "b", "10") This is not available under the path which its expected. Discussion for same in JIRA is available under below link https://jira.hyperledger.org/browse/FAB-4883?focusedCommentId=28022&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-28022

TBigjohn (Tue, 21 Aug 2018 12:00:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X5CMwz6PaeBshCRdX) @AnthonyRoux By artefacts I assume you mean the content of the crypto-config folder, correct ? yes everything is on the container. But how do you do it if you don't use this command ?

Anfimov (Tue, 21 Aug 2018 12:04:00 GMT):
Hello! Can sb help with Hyperledger Fabric PTE tool for benchmarking? I'm not using CA service and use Zookeeper + Kafka instead. Can't find information about how to use Zookeeper instead of CA in configs. Did sb setting zoo in PTE? https://github.com/hyperledger/fabric-test/blob/master/tools/PTE/SCFiles/config-chan1-TLS.json

AnthonyRoux (Tue, 21 Aug 2018 12:05:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hop3ENd3DkiT6JocX) @TBigjohn I use a script that generate the artefacts (crypto-config folder, channel.tx, genesis.block and mspAnchors using cryptogen and configtxgen). Once my containers are up (using docker-compose or docker swarm) I launch a script from CLI (the CLI CORE_PEER_ADDRESS value must match the peer CORE_PEER_ADDRESS value you want to join the channel, install chaincode, etc).

AnthonyRoux (Tue, 21 Aug 2018 12:12:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N5jHstT87DkdeGxJY) However if you want to add a peer to an existing and up fabric, you need to modify crypto-config.yaml and use `cryptogen extend` to add the credentials (cert, key etc) of the new peer in your crypto-config folder and then you make the peer join the channel. There may be other ways but I don't know them.

TBigjohn (Tue, 21 Aug 2018 12:21:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Cegrnry9FSfFcG3RT) @AnthonyRoux My crypto-config contains already everything on all containers. My initial crypto-config has been created before including the orderer, 2 channels and 5 peers. Everything is working well as long we have all containers running on the same virtual machine. What I am working on at the moment is trying to deploy this, piece by piece, on a kind of "real" infra running peers on different virtual machines. I am not using docker swarm but Rancher to deploy docker containers. I map volumes to upload crypto-config within each containers and env_var for parameters like CORE_PEER_ADDRESS.

AnthonyRoux (Tue, 21 Aug 2018 12:38:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xvmacGH4haogHtY6u) @TBigjohn I have to admit I have 0 experience with Rancher. A few months ago I tried to deploy a Fabric on several machines without docker swarm or anything else and I also faced some issues concerning the channel. The problem came from the CORE_PEER_ADDRESS value. As the containers were on different machines and they weren't part of the same network (that's why I use swarm now and I suppose Rancher do the same), the peers and the orderers were not visible from each other. So I had to use the external IP address for the CORE_PEER_ADDRESS value of my peers. Can you confirm that every containers (or service) are visible from each other. Can you show me the result of `channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050` ?

TBigjohn (Tue, 21 Aug 2018 12:48:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pB4oBuBx4zwCRhMux) @AnthonyRoux Result : root@peer1:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050 2018-08-21 12:47:20.087 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-08-21 12:47:20.089 UTC [cli/common] readBlock -> INFO 002 Received block: 10

TBigjohn (Tue, 21 Aug 2018 12:48:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pB4oBuBx4zwCRhMux) @AnthonyRoux Result : root@peer1:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel fetch newest channel1.block -c channel1 -o orderer.example.com:7050 2018-08-21 12:47:20.087 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-08-21 12:47:20.089 UTC [cli/common] readBlock -> INFO 002 Received block: 10 and after that channel1.block is present.

TBigjohn (Tue, 21 Aug 2018 12:55:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pB4oBuBx4zwCRhMux) @AnthonyRoux I have also been trying docker swarm before with many issues. Using Rancher there is a possibility to have a manage network that fix most of the networking issues. But I am going to try to remove the new peer and to deploy it on the same machine as the first one to check if I am still facing network problem ( but normally not because regarding the log the ordere can be join so .... ) FYI my CORE_PEER_ADDRESS=peer1.orgb.example.com:7051. Thank you very much for your time on this issue !!

TBigjohn (Tue, 21 Aug 2018 12:55:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pB4oBuBx4zwCRhMux) @AnthonyRoux I have also been trying docker swarm before with many issues. Using Rancher there is a possibility to have a manage network that fix most of the networking issues. But I am going to try to remove the new peer and to deploy it on the same machine as the first one to check if I am still facing network problem ( but normally not because regarding the log the ordere can be join so .... ) FYI my CORE_PEER_ADDRESS=peer1.orgb.example.com:7051. Thank you very much for your time on this issue !!

TBigjohn (Tue, 21 Aug 2018 12:55:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pB4oBuBx4zwCRhMux) @AnthonyRoux I have also been trying docker swarm before with many issues. Using Rancher there is a possibility to have a manage network that fix most of the networking issues. But I am going to try to remove the new peer and to deploy it on the same machine as the first one to check if I am still facing network problem ( but normally not because regarding the log the ordere can be join so .... ) FYI my CORE_PEER_ADDRESS=peer1.orgb.example.com:7051. Thank you very much for your time on this issue !! This issue is also recorded here : https://stackoverflow.com/questions/51837690/err-bad-proposal-response-500-when-trying-to-join-channel

AnthonyRoux (Tue, 21 Aug 2018 13:01:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NrsgKrkKdKe5aWAsC) @TBigjohn Sorry to not be able to help you further. Concerning swarm if you want to keep using compose file you need to modify a few things but once you understand the process you can deploy your entire fabric to different machines in one time

gravity (Tue, 21 Aug 2018 13:26:32 GMT):
Hello Is it possible to get a list of channels that were created in the network, but haven't joined these channel yet?

Vignesh679 (Tue, 21 Aug 2018 13:34:26 GMT):
Has joined the channel.

Vignesh679 (Tue, 21 Aug 2018 13:36:05 GMT):
Hi, I am following this tutorial https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24ffor deploying fabric to multiple hosts

Vignesh679 (Tue, 21 Aug 2018 13:41:14 GMT):
Hi, I'm following this tuttorial for setting up fabric across multiple host. https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f This works perfectly fine. What happens is after a few hours, any modification to the fabic network doesnt go through. But i can still execute transaction on the network. Thank you for your help

TBigjohn (Tue, 21 Aug 2018 13:41:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qrKzAtzcZDr8NxEBG) @AnthonyRoux So if I try to deploy my new peer on the same virtual machine, it react the same BUT the error message is not exactly the same ( why ??), here I still error 500 but more details : 2018-08-21 13:38:30.435 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = chaincode error (status: 500, message: "JoinChain" for chainID = channel1 failed because of validation of configuration block, because of Bad configuration envelope: Not a tx of type [CONFIG]))

AnthonyRoux (Tue, 21 Aug 2018 13:50:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pT6THhEMSXHXpEDZE) @TBigjohn OK it is starting to be clearer. When you try to fetch the config block from the orderer can you execute this instead : `peer channel fetch config mychannel.block -c mychannel --orderer orderer.example.com:7050` ? It should return the latest configuration block

TBigjohn (Tue, 21 Aug 2018 13:52:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fDgTFYfmgkqun8zy4) @AnthonyRoux Yes and I think it does because if I launch an ls after the fetch command I can see the channel1.block has been created on my new peer.

AnthonyRoux (Tue, 21 Aug 2018 13:58:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YJnC9NkLdDQwaG963) @TBigjohn That's because you have to specify the output file name. So of course there is channel1.block after executing the command. But you don't know what is inside that block. this peer channel fetch command usage : `peer channel fetch [newest|oldest|config|(block number)] [] [flags]`. And this is the link of the peer channel commands : https://hyperledger-fabric.readthedocs.io/en/release-1.1/commands/peerchannel.html

TBigjohn (Tue, 21 Aug 2018 14:12:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qXn2ms2jhAHNR4JXC) @AnthonyRoux OK so let me come back to initial situation ( 2 different VMs ) and try again. I will let you know !

TBigjohn (Tue, 21 Aug 2018 14:28:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qXn2ms2jhAHNR4JXC) @AnthonyRoux OK it WORKS !!!!!!!!!!!!!!!!!!!!!!!!!! Thank You.

AnthonyRoux (Tue, 21 Aug 2018 14:32:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xbuh7ukT5ufxDFB3B) @TBigjohn You're welcome !

MuhammadSalah (Tue, 21 Aug 2018 18:00:40 GMT):
Greetings everyone, what is a good way of testing "Attribute Based Access Control" in our chaincode? I would be glad if there is a way to create on a fly certs, embed attrs into it. Submit a mocked request using the identity from the cert.

SKRISHNA (Tue, 21 Aug 2018 18:16:49 GMT):
HI team

SKRISHNA (Tue, 21 Aug 2018 18:22:09 GMT):
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.38/containers/create: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running. See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'. LOCAL_VERSION=1.2.0 DOCKER_IMAGE_VERSION= =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== Windows named pipe error: The system cannot find the file specified. (code: 2) ERROR !!!! Unable to start network

SKRISHNA (Tue, 21 Aug 2018 18:22:17 GMT):
how to resolve this issue

SKRISHNA (Tue, 21 Aug 2018 18:22:32 GMT):
can you please help on this issue

SKRISHNA (Tue, 21 Aug 2018 18:24:12 GMT):
Bring Up the Network to use this command ./byfn.sh up i am getting this error.

sureshtedla (Tue, 21 Aug 2018 18:52:19 GMT):
Has joined the channel.

sureshtedla (Tue, 21 Aug 2018 19:45:33 GMT):
can any one explain how to setup hyperledger fabric on different machines using docker swarm?

sureshtedla (Tue, 21 Aug 2018 19:45:33 GMT):
can any one explain how to setup hyperledger fabric on different machines using docker swarm? @TBigjohn

sureshtedla (Tue, 21 Aug 2018 19:45:33 GMT):
can any one explain how to setup hyperledger fabric on different machines using docker swarm? @TBigjohn @AnthonyRoux

nrohith (Tue, 21 Aug 2018 20:27:21 GMT):
Perhaps this might be useful for you: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f @sureshtedla

sureshtedla (Tue, 21 Aug 2018 20:34:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p7FPGRCnLxWLaQGcH) @nrohith Thanks bro

CarlosHuggins (Tue, 21 Aug 2018 23:01:56 GMT):
Has joined the channel.

CarlosHuggins (Tue, 21 Aug 2018 23:03:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FxykTRLkKFbmyZZEY) @sureshtedla Also there is other resource: https://blog.ideas2it.com/hyperledger-fabric-multiple-vm/ , I'm also working on it.... lets share info!!!

CarlosHuggins (Tue, 21 Aug 2018 23:03:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fQM9wyMmXDBFXtpNk) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FxykTRLkKFbmyZZEY) @sureshtedla Also here is other resource: https://blog.ideas2it.com/hyperledger-fabric-multiple-vm/ , I'm also working on it.... lets share info!!!

LinuxLearner1 (Wed, 22 Aug 2018 00:14:24 GMT):
Has joined the channel.

LinuxLearner1 (Wed, 22 Aug 2018 00:35:51 GMT):
Hi guys, Im a newbie learning Hyperledger. I was wondering are there any good tutorials or notes on how to deploy fabric to aws? Thanks guys!

GuillaumeTong (Wed, 22 Aug 2018 02:01:30 GMT):
Has left the channel.

memphisw (Wed, 22 Aug 2018 05:45:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BNM4JQavD6AFAvLGn) any idea about how to quitting a unwanted channel?

yulong12 (Wed, 22 Aug 2018 06:44:44 GMT):
Hi, I have the following structure : one orderer, one ca and one peer. A channel1 is define and the peer has successfully joined this channel. A first chaincode has been successfully deployed on the peer. I am trying to ask a second peer to join the previously created channel using the following command : "peer channel join -b channel1.block" but I get the following error : "peer1.org1.example.com | 2018-08-22 06:32:15.899 UTC [endorser] ProcessProposal -> ERRO 027 [][55535157] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: 55535157772c81ffec75ba5e291f80c70888f2e8fc449137f6dc704e1d28c224 " Complete error from peer's log : ERRO 01c [][997ac53c] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: 997ac***** So. who knows this "Err “bad proposal response 500” when trying to join channel" question?

AkshayBorade (Wed, 22 Aug 2018 06:51:25 GMT):
Has joined the channel.

ADPhx13 (Wed, 22 Aug 2018 06:54:21 GMT):
Has joined the channel.

karthikmohan91 (Wed, 22 Aug 2018 06:55:53 GMT):
Has joined the channel.

1234 (Wed, 22 Aug 2018 07:06:48 GMT):
Try this command CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer1.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt peer channel join -b channel1try .block

1234 (Wed, 22 Aug 2018 07:08:22 GMT):
try this command...... CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer1.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt peer channel join -b channel1.block

yulong12 (Wed, 22 Aug 2018 08:10:55 GMT):
yes I have try it @1234 but it appears the same error

RahulEth (Wed, 22 Aug 2018 08:57:04 GMT):

fabric2.png

sureshtedla (Wed, 22 Aug 2018 09:55:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fQM9wyMmXDBFXtpNk) @CarlosHuggins Yeah Sure

rajanashutosh (Wed, 22 Aug 2018 11:54:02 GMT):
@dave.enyeart , Is there a way to list number of organisations in a fabric network ? Same way how we are listing chaincodes n all ?

asamk (Wed, 22 Aug 2018 13:35:50 GMT):
tallyx

unlimited (Wed, 22 Aug 2018 15:30:35 GMT):
Has joined the channel.

unlimited (Wed, 22 Aug 2018 15:30:40 GMT):
hey everyone! i was wondering what's the difference in deploying a multi-org network vs a single-org network with different participants? for example, the IBM vehicle manufacturer network seems to use a single org with different participants

mastersingh24 (Wed, 22 Aug 2018 15:31:01 GMT):
@rajanashutosh - we don't have a utility function for that .. you'd basically have to get the config block for each channel and parse it ... unless you've added every org to a consortium in which case you can get the info from the system channel

mastersingh24 (Wed, 22 Aug 2018 15:31:14 GMT):
but you'll need to parse the config blocks yourself

Bhanu (Wed, 22 Aug 2018 20:52:17 GMT):
Has joined the channel.

Bhanu (Wed, 22 Aug 2018 20:52:57 GMT):
@unlimited am struggling to get answer to the same question and ended up here

jvsclp (Wed, 22 Aug 2018 20:54:56 GMT):
@unlimited @Bhanu I asked that question a few days ago and have only received crickets. I'm still trying to figure it out.

jvsclp (Wed, 22 Aug 2018 20:57:03 GMT):
Conceptually it should be possible, but when it comes time to set up the Membership Service Provider in the config.yaml I cannot wrap my head around how to set up an organization with multiple organizational units

jvsclp (Wed, 22 Aug 2018 20:57:03 GMT):
Conceptually it should be possible, but when it comes time to refer to the Membership Service Provider directory in the config.yaml I cannot wrap my head around how to set up an organization with multiple organizational units

jvsclp (Wed, 22 Aug 2018 20:57:03 GMT):
Conceptually it should be possible, but when it comes time to refer to the Membership Service Provider directory in the configtx.yaml I cannot wrap my head around how to set up an organization with multiple organizational units

jvsclp (Wed, 22 Aug 2018 20:58:42 GMT):
I could do it by making each organizational unit it's own organization, but it will not fit my use case as I want the divisions capable of gossiping with the parent organization

MuhammadSalah (Wed, 22 Aug 2018 21:03:54 GMT):
Hello, can someone point out to a good example of chaincode testing? I would like to be able to test chaincode with specifying the certs to be used; i.e the identity invoking the transaction; is it possible?

Bhanu (Wed, 22 Aug 2018 21:03:59 GMT):
@jvsclp need to have complete picture of your usecase to comment....question from @unlimited (and also mine) is - vehicleManufacturer sample has participants person,manufacturer and regulator - manufacturer and regulator are definitely different organizations, however this BNA works perfectly well in single organization set up, what is the incentive of creating multiorganization set up for this

Bhanu (Wed, 22 Aug 2018 21:03:59 GMT):
need to have complete picture of your usecase to comment....question from @unlimited (and also mine) is - vehicleManufacturer sample has participants person,manufacturer and regulator - manufacturer and regulator are definitely different organizations, however this BNA works perfectly well in single organization set up, what is the incentive of creating multiorganization set up for this

Bhanu (Wed, 22 Aug 2018 21:05:38 GMT):
@MuhammadSalah yo generator for hyperledger composer automatically creates test template to use

MuhammadSalah (Wed, 22 Aug 2018 21:10:15 GMT):
@Bhanu I can create tests for composer, I would like to do it using the shim MockStub

MuhammadSalah (Wed, 22 Aug 2018 21:10:43 GMT):
I would like to specify the creator cert, maybe transient arguments.

MuhammadSalah (Wed, 22 Aug 2018 21:10:59 GMT):
I would like to know if possible / supported.

jvsclp (Wed, 22 Aug 2018 21:12:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wwW2msgruJA3sNHwo) @Bhanu Hmm, maybe I misunderstood what @unlimited was asking in the first place. Essentially I am trying to set up an organization with different divisions. Using Fabric-ca I have the certificates built with a root certificate authority (parent org) and intermediate certificate authority (each division). When trying to set up the channel configuration in the configtx.yaml I have to specify the different organizations that will be part of the network, I only have one with multiple organizational units under the organization. However, when it comes to the Membership Service Provider (MSP) Directory reference I cannot figure out how to arrange the directory structure to account for a multi-divisional organization. Since the MSP dir

jvsclp (Wed, 22 Aug 2018 21:17:11 GMT):
@Bhanu Hmm, maybe I misunderstood what @unlimited was asking in the first place. Essentially I am trying to set up an organization with different divisions that can all gossip their status. Using Fabric-ca I have the certificates built with a root certificate authority (parent org) and intermediate certificate authority (each division). When trying to set up the channel configuration in the configtx.yaml I have to specify the different organizations that will be part of the network; I only have one - with multiple organizational units under the organization. However, when it comes to the Membership Service Provider (MSP) Directory reference, MSPDir, in configtx.yaml I cannot figure out how to arrange the directory structure to account for a multi-divisional organization as I want the divisions to manage their MSP, not the parent organization. Since the MSP directory is not laid out correctly I cannot create an appropriately configured genesis block.

jvsclp (Wed, 22 Aug 2018 21:28:02 GMT):
One solution I've pondered and may work is having a massive MSP directory with all the peers, admins, and users in respective folders with only the certificates and the config.yaml specifying the organizational units. The problem becomes managing the directory structure though as there's no clear namespace for each organizational unit.

jvsclp (Wed, 22 Aug 2018 21:30:30 GMT):
What I would like is to be able to specify each MSP directory for the organizational unit so: AcmeInc.DivA.MSP, AcmeInc.DivB.MSP, and so forth, similar to the MSP structure in the documentation. Though I cannot, for the life of me, figure out how to setup a valid configuration.

rajanashutosh (Thu, 23 Aug 2018 04:53:57 GMT):
@mastersingh24 - Thanks for the info.

rajanashutosh (Thu, 23 Aug 2018 04:57:04 GMT):
I am doing a chaincode to chaincode invocation in a single channel something like mentioned below. Chaincode1 method A calling chaincode2 method B, which in-turn calls chaincode A's method C to retrieve some information and update in its ledger. When this second invoke is performed I am getting following exception 2018-08-23 04:49:24.528 UTC [chaincode] HandleTransaction -> ERRO 27c7 [312b59cc] Failed to handle INVOKE_CHAINCODE. error: txid: 312b59cc26d462e33bf080bfb7e7be3e538d7ad94b109a57335f1e74a85413d1(ledgerchannel) exists github.com/hyperledger/fabric/core/chaincode.(*TransactionContexts).Create /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/transaction_contexts.go:58 github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:901 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:253 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleInvokeChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:882 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleInvokeChaincode-fm /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:194 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:242 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending execute failed github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleInvokeChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:884 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleInvokeChaincode-fm /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:194 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:242 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 INVOKE_CHAINCODE failed: transaction ID: 312b59cc26d462e33bf080bfb7e7be3e538d7ad94b109a57335f1e74a85413d1 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:246 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 2018-08-23 04:49:24.528 UTC [chaincode] HandleTransaction -> DEBU 27c8 [312b59cc] Completed INVOKE_CHAINCODE. Sending ERROR

rajanashutosh (Thu, 23 Aug 2018 04:59:38 GMT):
Within single channel two differents inserts prohibited via two different chaincodes ? I meant chaincode A inserts data into db ABC1 and inturn invokes chaincode B which after validation inserts some data into db ABC2

starptr (Thu, 23 Aug 2018 06:54:32 GMT):
Has joined the channel.

starptr (Thu, 23 Aug 2018 06:56:13 GMT):
Hey folks, I just created my own network. Now I want to know what should be the next step to start and instantiate a chaincode? I just want to change the ownership of an asset but I dont know how to setup everything. Any help would be appreciated.

Akash-digiledge (Thu, 23 Aug 2018 07:18:27 GMT):
Hi all, how can i query from couch db by using limit and skip...can any one explain me with one example

Alvin455024780 (Thu, 23 Aug 2018 07:24:00 GMT):

Clipboard - August 23, 2018 3:23 PM

Alvin455024780 (Thu, 23 Aug 2018 07:25:58 GMT):
want some help ,have stop in this question two day ,so Sad T_T

shailaja.mahara (Thu, 23 Aug 2018 09:23:58 GMT):
has anybody here faced upgrade issues with chaincode in golang?

shailaja.mahara (Thu, 23 Aug 2018 09:24:20 GMT):
or maybe knows how it works?

rajanashutosh (Thu, 23 Aug 2018 09:25:26 GMT):
@Alvin455024780 have you fetched genesis block and channels ?

rajanashutosh (Thu, 23 Aug 2018 09:26:46 GMT):
@shailaja.mahara, whenever an upgrade is done it replaces the old chaincode with new one still data being available. But before upgrading need to follow installation as usual.

Puneet7nov (Thu, 23 Aug 2018 09:46:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Aq4mSP9jwcxCTrwMr) @shailaja.mahara What issue you are facing? Have you seen the Upgrade section at https://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4noah.html There are few things that you need to keep in mind during upgrade.

Jay10 (Thu, 23 Aug 2018 09:50:35 GMT):
Has joined the channel.

Jay10 (Thu, 23 Aug 2018 09:50:43 GMT):
Hello I am getting error while doing node registerUser.js The error is as follows Store path:/root/marbles/fabric-samples/fabcar/hfc-key-store Successfully loaded admin from persistence Failed to register: Error: Calling register endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] Please help

Puneet7nov (Thu, 23 Aug 2018 09:51:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JyiSdLqx8izbQbEYR) You may also like to check a similar question https://stackoverflow.com/questions/51190436/how-to-upgrade-update-a-chaincode-after-modification/51246403#51246403

udokmeci (Thu, 23 Aug 2018 10:37:10 GMT):
Has joined the channel.

udokmeci (Thu, 23 Aug 2018 10:40:48 GMT):
Hi everyone. For last 2 weeks I could not manage to work fabric. I'm out of options. Can anyone please show me some direction? When I follow byfn tutorial the byfn.sh has some warn s `NewApplicationGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the application group in configtx.yaml` also when I start the network I got `2018-08-23 10:33:08.438 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== `

udokmeci (Thu, 23 Aug 2018 10:40:48 GMT):
Hi everyone. For last 2 weeks I could not manage to work fabric. I'm out of options. Can anyone please show me some direction? When I follow byfn tutorial the byfn.sh has some warn s `NewApplicationGroup -> WARN 003 Default policy emission is deprecated, please include policy specificiations for the application group in configtx.yaml` also when I start the network I got ```2018-08-23 10:33:08.438 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

mrjdomingus (Thu, 23 Aug 2018 11:00:08 GMT):
Has joined the channel.

Jay10 (Thu, 23 Aug 2018 12:21:53 GMT):
I have followed the process but node query.js generated following error Store path:/root/marbles/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Failed to query successfully :: Error: "targets" parameter not specified and no peers are set on this Channel instance or specfied for this channel in the network

BlockMcChainy (Thu, 23 Aug 2018 15:06:38 GMT):
I have a Hyperledger Fabric network running with Docker swarm. I want to test Fabric by taking some peers down and see if the network still functions. When the network is running I stop/start a peer container. Then I use the 'docker service update $peer-service --force' command to see if it goes back to being a service. Docker then makes a different new container and adds it to the service. The new container has not joined the channel and has no chaincode installed on it. The first container still exist but is not part of the swarm anymore. I think it will be very inconvenient to manually install everything on a peer when it goes down on an already running network with many chainscodes. Is there a way to join the old peer container back as the same service to the swarm?

abityildiz (Thu, 23 Aug 2018 15:11:42 GMT):

Clipboard - August 23, 2018 6:11 PM

sam1 (Thu, 23 Aug 2018 16:11:20 GMT):
hi guys, im getting this error when i try to run a multi org setup on different networks (it works fine on one network) - Error: error getting endorser client for channel: endorser client failed to connect to peer0.org2.example.com:7051: failed to create new connection: context deadline exceeded - any ideas what the issue is ?

AlanH 8 (Thu, 23 Aug 2018 17:55:55 GMT):
Has joined the channel.

xiven (Thu, 23 Aug 2018 20:45:29 GMT):
Has joined the channel.

maz_net_au (Fri, 24 Aug 2018 00:21:12 GMT):
Has joined the channel.

Alvin455024780 (Fri, 24 Aug 2018 01:22:28 GMT):
@rajanashutosh I have try,but is fail,juest like the img show.

rajanashutosh (Fri, 24 Aug 2018 06:08:12 GMT):
@BlockMcChainy, check for docker persistence it would help you

rajanashutosh (Fri, 24 Aug 2018 06:08:35 GMT):
@Alvin455024780 what exactly are you trying to please tell us whole picture

rajanashutosh (Fri, 24 Aug 2018 06:09:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ka5FwWBMmDhnt3ZiP) Hi All, Please let me know on this

VarunVerma (Fri, 24 Aug 2018 06:50:26 GMT):
Hello members, Please can anybody tell me what kind of development environment should be their to develop a Hyperledger fabric blockchain application. Thankyou

AkshayBorade (Fri, 24 Aug 2018 07:09:38 GMT):

20180820png1315×259 .png

nukulsharma (Fri, 24 Aug 2018 07:39:45 GMT):
Hi I have couple of queries - 1. Private Data collections - I could not find private data history , GetHistoryForKey - returns only public data Note: i am using public data as normal ledger , whilst only private data as Collections 2. Is there any way i can find say recent 10 blocks from ledger, i dont see any API for it. The one we have is getBlockByTxID , which become quite tedious , since first we need to invoke transaction history and then invoke for each one of them to get Block . Any simpler way to this ?

BlockMcChainy (Fri, 24 Aug 2018 08:21:18 GMT):
I have a Hyperledger Fabric network running with Docker swarm. I want to test Fabric by taking some peers down and see if the network still functions. I made use of volumes to give all peers access to data. Every peer has access to the genesis.block, channel.tx and mychannel.block in the peer/channel-artifacts folder. When I update my peer1.org1 service, the new container still has access to the same files but is not part of the channel and no chaincode is installed. When I use "peer channel join -b mychannel.block" the peer is newly joined to the channel and the same thing with installing chaincode. The new service does have a slightly different name. E.g. old hyperledger-peer1-rxq3qw4qw5xxru vs new hyperledger-peer0-swrq3wx6qw8g3u Also, with docker without swarm this problem does not happen, because when you take a peer down and up again, the exact same peer container (with everything installed) is used. With swarm mode it just makes a fresh copy of the previous container that has the same access to ledger data but nothing is installed.

Jay10 (Fri, 24 Aug 2018 08:34:47 GMT):
I have followed the process but node query.js generated following error Store path:/root/marbles/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Failed to query successfully :: Error: "targets" parameter not specified and no peers are set on this Channel instance or specfied for this channel in the network

nukulsharma (Fri, 24 Aug 2018 08:57:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h5MT9poJhGrYxNyBt) @VarunVerma Fabric documentation have most of the information as starter: After going through concepts, go through tutorials section: 1. https://hyperledger-fabric.readthedocs.io/en/release-1.2/write_first_app.html 2. https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html 3. https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode4ade.html

SunilHirole (Fri, 24 Aug 2018 09:34:15 GMT):
Has joined the channel.

Jay10 (Fri, 24 Aug 2018 09:44:59 GMT):
Please help me to resolve the following issue while executing node query.js

Jay10 (Fri, 24 Aug 2018 09:45:01 GMT):
Failed to query successfully :: Error: "targets" parameter not specified and no peers are set on this Channel instance or specfied for this channel in the network

dave.enyeart (Fri, 24 Aug 2018 10:06:40 GMT):
@nukulsharma The API for getting history of private data is not available yet... it will become available in an upcoming release, you can track it's progress here: https://jira.hyperledger.org/browse/FAB-5094.

dave.enyeart (Fri, 24 Aug 2018 10:06:42 GMT):
To get the last N blocks, you can use the event service, read about it here: https://fabric-sdk-node.github.io/tutorial-channel-events.html

Jaspervv (Fri, 24 Aug 2018 10:17:51 GMT):
Has joined the channel.

Jaspervv (Fri, 24 Aug 2018 10:18:01 GMT):
Does anyone know of projects that has implemented and used the Fabcoin mentioned in the Fabric paper? https://arxiv.org/pdf/1801.10228v1.pdf It's literally the only mention I can find of it. All searches only points to scammy ICOs

nukulsharma (Fri, 24 Aug 2018 10:24:29 GMT):
@dave.enyeart - thank you

clc217 (Fri, 24 Aug 2018 11:15:48 GMT):
Has joined the channel.

clc217 (Fri, 24 Aug 2018 11:16:39 GMT):
I pulled 1.2 and built but consistently getting error go install github.com/hyperledger/fabric/peer: open /opt/gopath/bin/peer: permission denied even with root

clc217 (Fri, 24 Aug 2018 11:17:07 GMT):
can anyone help?

clc217 (Fri, 24 Aug 2018 11:24:01 GMT):
make: *** [.build/docker/bin/peer] Error 1

DavorKljajic (Fri, 24 Aug 2018 11:32:56 GMT):
Has joined the channel.

DavorKljajic (Fri, 24 Aug 2018 11:32:59 GMT):
hello, I'm wondering if someone has worked custom implementation mps with idemix, and where i can find the setup, on official site is not clear to much.

rickr (Fri, 24 Aug 2018 11:46:40 GMT):
@Maria ^

Maria (Fri, 24 Aug 2018 11:46:41 GMT):
Has joined the channel.

GustavoFrederico (Fri, 24 Aug 2018 11:57:47 GMT):
Has joined the channel.

GustavoFrederico (Fri, 24 Aug 2018 11:57:54 GMT):
Greetings. I have a question about architecture and Hyperledger. Any feedback is welcome. Suppose that there is some Hyperledger blockchain running, with its nodes. Suppose that there are a few companies participating. Suppose that these companies use some software for their daily business - ERPs behind the firewall, custom software behind the firewall, cloud based software, etc. Assume that some of this software now wants to integrate with the blockchain. Is it common, or is it advantageous to conceive a broker piece that "translates" data flowing through a REST interface from these existing software to the blockchain? I would think so, but I would like to hear what people have been doing in projects.

kamal.h.mehta (Fri, 24 Aug 2018 12:41:31 GMT):
Has joined the channel.

kamal.h.mehta (Fri, 24 Aug 2018 12:44:39 GMT):
Greetings!! I am facing an issue in hyperledger build. the command fails in unit test.

kamal.h.mehta (Fri, 24 Aug 2018 12:44:40 GMT):
unit-tests_1 | FAIL github.com/hyperledger/fabric/gossip/gossip 1200.029s unit-tests_1 | ok github.com/hyperledger/fabric/gossip/gossip/algo 19.130s coverage: 97.0% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/gossip/channel 47.879s coverage: 90.7% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/gossip/msgstore 20.040s coverage: 100.0% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/gossip/pull 5.020s coverage: 91.8% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/identity 12.017s coverage: 100.0% of statements unit-tests_1 | ? github.com/hyperledger/fabric/gossip/mocks [no test files] unit-tests_1 | ok github.com/hyperledger/fabric/gossip/privdata 38.559s coverage: 85.8% of statements unit-tests_1 | ? github.com/hyperledger/fabric/gossip/privdata/mocks [no test files] unit-tests_1 | ok github.com/hyperledger/fabric/gossip/service 145.020s coverage: 81.4% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/state 111.345s coverage: 80.3% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/state/mocks 0.011s coverage: 58.8% of statements unit-tests_1 | ok github.com/hyperledger/fabric/gossip/util 4.049s coverage: 79.1% of statements unit-test_unit-tests_1 exited with code 1 Aborting on container exit... Stopping couchdb ... done make: *** [Makefile:191: unit-test] Error 1

kamal.h.mehta (Fri, 24 Aug 2018 12:44:52 GMT):
Can anyone please help me to resolve this?

kisna (Fri, 24 Aug 2018 15:55:47 GMT):
./byfn.sh up throws an error on test: certificate has expired or is not yet valid, who installs these and how do I clean up them again? 2018-08-23 18:33:40.586 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: CA Certificate is not valid, (SN: 119002415432865803559961066246293782645): could not obtain certification chain: the supplied identity is not valid: x509: certificate has expired or is not yet valid

kisna (Fri, 24 Aug 2018 15:57:39 GMT):
we were just following: https://hyperledger-fabric.readthedocs.io/en/latest/tutorials.html

kisna (Fri, 24 Aug 2018 16:30:09 GMT):
great, I don't even see the these folders created ~/.bashrc export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin echo $GOPATH /Users/blah/go echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/blah/go/bin

kisna (Fri, 24 Aug 2018 16:30:09 GMT):
great, I don't even see the these folder: /opt/gopath/src created ls -ltrh /opt/gopath/src ls: /opt/gopath/src: No such file or directory ~/.bashrc export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin echo $GOPATH /Users/blah/go echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/blah/go/bin

kisna (Fri, 24 Aug 2018 16:32:10 GMT):
when and where are the /opt/gopath/src folders created, my path looks fine?

mastersingh24 (Fri, 24 Aug 2018 17:49:48 GMT):
@kisna - what host operating system are you using? macOS and/or Windows?

mastersingh24 (Fri, 24 Aug 2018 17:50:32 GMT):
If so and assuming you are using Docker for Mac or Docker for Windows, you'll want to restart Docker and the try again

kisna (Fri, 24 Aug 2018 17:50:42 GMT):
macOS

kisna (Fri, 24 Aug 2018 17:51:09 GMT):
looks like the paths are for containers and not local path

mastersingh24 (Fri, 24 Aug 2018 17:51:21 GMT):
Try restarting Docker

kisna (Fri, 24 Aug 2018 17:51:21 GMT):
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

kisna (Fri, 24 Aug 2018 17:51:31 GMT):
the cafile are from containers right not local

kisna (Fri, 24 Aug 2018 17:51:40 GMT):
it worked after restarting container and new install

kisna (Fri, 24 Aug 2018 17:52:43 GMT):
Inside the docker-compose-cli.yaml, I see ... cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt

kisna (Fri, 24 Aug 2018 17:52:54 GMT):
is this environment for the container or from local?

kisna (Fri, 24 Aug 2018 17:53:03 GMT):
especially the /opt/gopath/ ...

kisna (Fri, 24 Aug 2018 17:53:22 GMT):
@mastersingh24

kisna (Fri, 24 Aug 2018 18:51:00 GMT):
root@82e9722a1b5b:/opt/gopath/src/github.com/hyperledger/fabric/peer# ls -ltrh /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admi n\@org1.example.com/msp/signcerts/Admin\@org1.example.com-cert.pem

kisna (Fri, 24 Aug 2018 18:51:08 GMT):
ok, I see them only in the peers using cli

kisna (Fri, 24 Aug 2018 19:04:12 GMT):
@mastersingh24 now I see other errors, other intermediate certs and configs missing in peer container

kisna (Fri, 24 Aug 2018 19:04:21 GMT):
2018-08-24 18:45:51.100 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts: *no such file or directory*]

kisna (Fri, 24 Aug 2018 19:05:26 GMT):
and some invoke calls are failing: 2018-08-24 18:45:51.179 UTC [msp/identity] Sign -> DEBU 058 Sign: digest: DA2CE93C70172D39600C36A62415BE781E0615921C9BD91A9FE309A5AE5A5189 *Error: could not assemble transaction: ProposalResponsePayloads do not match* - proposal response: version:1 response: payload:" *peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'*

kisna (Fri, 24 Aug 2018 19:05:26 GMT):
and some invoke calls are failing: 2018-08-24 18:45:51.179 UTC [msp/identity] Sign -> DEBU 058 Sign: digest: DA2CE93C70172D39600C36A62415BE781E0615921C9BD91A9FE309A5AE5A5189 *Error: could not assemble transaction: ProposalResponsePayloads do not match* - proposal response: version:1 response: payload:" peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'

kisna (Fri, 24 Aug 2018 19:07:36 GMT):
look like it is related to https://jira.hyperledger.org/browse/FAB-10578

kisna (Fri, 24 Aug 2018 19:21:29 GMT):
https://stackoverflow.com/questions/51490272/failed-to-invoke-in-fabric-v1-2-tutorialbuild-your-first-network resolved it for me, you need to install it on other peer on Org2 as well, the steps only mention Org1 CLI commands against peer0.org1.example.com

kisna (Fri, 24 Aug 2018 19:21:29 GMT):
https://stackoverflow.com/questions/51490272/failed-to-invoke-in-fabric-v1-2-tutorialbuild-your-first-network resolved it for me, you need to install it on other peer on Org2 as well, the steps only mention Org1 CLI commands against peer0.org1.example.com

NiK0 2 (Fri, 24 Aug 2018 20:12:15 GMT):
Has joined the channel.

NiK0 2 (Fri, 24 Aug 2018 20:12:37 GMT):
Hi team!, i dont know if is this the correct channel. How can I configure hyperledger so that certificates get them from fabric-ca-server?

Alvin455024780 (Sat, 25 Aug 2018 08:14:33 GMT):

Clipboard - August 25, 2018 4:14 PM

Alvin455024780 (Sat, 25 Aug 2018 08:14:34 GMT):
when “ peer chaincode instantiate -o orderer0.example.com:7050 --tls true --cafile $ORDERER_CA -C mychannel -n mychannel -c '{"Args":["init","A","10","B","10"]}' -P "OR('Org1MSP.member')" -v 1.0” get this error :open /etc/hyperledger/fabric/docker/tls.crt: no such file or directory

Alvin455024780 (Sat, 25 Aug 2018 08:17:06 GMT):
@mastersingh24 can I get some help ?

clc217 (Sat, 25 Aug 2018 09:15:45 GMT):

WX20180825-171523@2x.png

clc217 (Sat, 25 Aug 2018 09:16:41 GMT):
I added --privileged=true in docker run, but still persist . I am in OSX. can anyone meet the same problem?

mastersingh24 (Sat, 25 Aug 2018 10:27:36 GMT):
@clc217 - what are the permissions on your fabric directory? `ls -l $GOPATH/src/github.com/hyperledger` `ls -l $GOPATH/src/github.com/hyperledger/fabric`

mastersingh24 (Sat, 25 Aug 2018 10:30:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Si3ZQgJiwtALvHbs8) @Alvin455024780 Did you set `CORE_VM_DOCKER_TLS_ENABLED=true` ?

mastersingh24 (Sat, 25 Aug 2018 10:30:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Si3ZQgJiwtALvHbs8) @Alvin455024780 Did you set `CORE_VM_DOCKER_TLS_ENABLED=true` ? It should be set to `false` by default. The only reason to set to `true` is if you are using TLS with the Docker daemon

clc217 (Sat, 25 Aug 2018 10:50:01 GMT):
@mastersingh24

clc217 (Sat, 25 Aug 2018 10:50:37 GMT):

WX20180825-185018@2x.png

clc217 (Sat, 25 Aug 2018 10:51:19 GMT):
@mastersingh24 I build with root. the path is in container. I suspect it might be docker configuration issue...

RajkumarTiwari (Sat, 25 Aug 2018 11:08:23 GMT):
How can I add a common peer for multiple organisation in a hyperledger blockchain network?

SarahM (Sat, 25 Aug 2018 17:42:55 GMT):
Has joined the channel.

SarahM (Sat, 25 Aug 2018 17:43:05 GMT):
Hi, I'm looking for someone who has built a rights management platform using Hyperledger Fabric. I'm launching a media rights platform and would love to get some consultancy from someone who has deployed an IP / Rights platform successfully using Fabric. If you are based in London, even better, but happy to have a virtual chat too. Thanks!

Mahdsckilz (Sun, 26 Aug 2018 03:53:41 GMT):
Has joined the channel.

Anil-Co-Create-Labs (Sun, 26 Aug 2018 05:08:31 GMT):
Has joined the channel.

Anil-Co-Create-Labs (Sun, 26 Aug 2018 05:09:36 GMT):
@SarahM We are based out in Australia. Happy to help.

Alvin455024780 (Sun, 26 Aug 2018 06:34:37 GMT):
@mastersingh24 thank you。i chang the CORE_VM_DOCKER_TLS_ENABLED=false ,the problem is fix

Alvin455024780 (Sun, 26 Aug 2018 06:37:54 GMT):
@mastersingh24 ,I want to add Org3 in my net work ,and I have create the file org3_update_in_envelope.pb. when I use the command in peer0org1 :peer channel signconfigtx -f org3_update_in_envelope.pd it pass .but I run in the peer0org1:peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer0.example.com:7050 --tls --cafile $ORDERER_CA ,if fail: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining

Alvin455024780 (Sun, 26 Aug 2018 06:38:24 GMT):

Clipboard - August 26, 2018 2:38 PM

Alvin455024780 (Sun, 26 Aug 2018 06:38:58 GMT):

Clipboard - August 26, 2018 2:38 PM

Alvin455024780 (Sun, 26 Aug 2018 06:39:44 GMT):

Clipboard - August 26, 2018 2:39 PM

Alvin455024780 (Sun, 26 Aug 2018 06:41:23 GMT):
export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem && export CHANNEL_NAME=mychannel

Alvin455024780 (Sun, 26 Aug 2018 06:45:44 GMT):
@mastersingh24 I use in the network have 3 zookeeper,4 kafka ,3 orderer(orderer0,orderer1,orderer2),2 org(org1,org2) ,2 peer(peer0org1 ,peer0org2) .

Alvin455024780 (Sun, 26 Aug 2018 06:48:42 GMT):
@mastersingh24 add the new org3 file : org3-crypto.yaml Organizations: - &Org3 Name: Org3MSP ID: Org3MSP MSPDir: crypto-config/peerOrganizations/org3.example.com/msp AnchorPeers: - Host: peer0.org3.example.com Port: 7051

Alvin455024780 (Sun, 26 Aug 2018 06:53:33 GMT):

fabric_kafka_network.rar

Alvin455024780 (Sun, 26 Aug 2018 06:53:41 GMT):
@mastersingh24 this is my all config , hope you can help

Alvin455024780 (Sun, 26 Aug 2018 07:09:35 GMT):

configtx_crypto.rar

Alvin455024780 (Sun, 26 Aug 2018 07:47:49 GMT):
@mastersingh24 I use Fabric tag is 1.0

venedara (Sun, 26 Aug 2018 16:52:49 GMT):
Can some one please help me what is exactly or when exactly we will use Byzantine Fault Tolerance and Crash Fault Tolerance

Javi (Sun, 26 Aug 2018 18:31:14 GMT):
Hello group, have Fabric any flag to measure a different kind of metrics like ethereum geth (when using flag `--metrics`)? (transactions per second, memory, etc)

kheung (Mon, 27 Aug 2018 01:20:21 GMT):
Has joined the channel.

Rachit_gaur (Mon, 27 Aug 2018 05:33:07 GMT):
Can peers be thought of as different organizations in a same docker image? What will be the consequences of the same?

knagware9 (Mon, 27 Aug 2018 05:35:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YcXhQoLhv9QsetemK) @Javi We can use hyperledger caliper ,,its same project in hyperledger umbrella

d8bhatta (Mon, 27 Aug 2018 05:39:03 GMT):
Hello, Every time when I start network, my previously entered data get removed, so in future how can I resume my blockchain data even when my computer is restarted or my network gets restarted?

rajanashutosh (Mon, 27 Aug 2018 05:40:45 GMT):
@dave.enyeart -- I am trying to work on with indexing and found that indexes are not getting installed. Kindly request your suggestions on this. https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_as_state_database.html

knagware9 (Mon, 27 Aug 2018 05:41:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9PPQabWstSudPdQcZ) @d8bhatta You need to mounting ..search docker VM mounting

rajanashutosh (Mon, 27 Aug 2018 05:41:31 GMT):
I followed this doc and proceeded. On searching I found this JIRA https://jira.hyperledger.org/browse/FAB-10510 . So is der an existing issue with this ?

Rachit_gaur (Mon, 27 Aug 2018 05:55:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M6c9Jjgk7LpJXoGX6) @knagware9 @knagware9 Will mounting still save the data if you run byfn down command ? as it removes all the files and config as well

knagware9 (Mon, 27 Aug 2018 06:07:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fMCwqG5DpYR8zyMkY) @Rachit_gaur I think yes..

atiffarrukh (Mon, 27 Aug 2018 06:20:49 GMT):
Hi. when i try to invoke through Node js SDK, i am getting this error. "Message": "Failed to invoke chaincode. cause:Error: ChannelEventHub has been shutdown", But the data is actually saved in the chaincode, i confirmed it through logs and queering it. Any idea, what is the cause of this issue?

pankajcheema (Mon, 27 Aug 2018 06:22:13 GMT):
Hi All

pankajcheema (Mon, 27 Aug 2018 06:22:25 GMT):
Can I send multiple events from chaincode within same function?

Rachit_gaur (Mon, 27 Aug 2018 06:23:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RwdSKoBaeKPRahnRY) @knagware9 But won't that limit our vm to run only one docker image?

Rachit_gaur (Mon, 27 Aug 2018 06:23:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RwdSKoBaeKPRahnRY) @knagware9 But won't that(mounting) limit our vm to run only one docker image(make the image as default)?

atiffarrukh (Mon, 27 Aug 2018 06:27:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=No2uB6ER5pd4NMx8P) in the node js logs i can this also` REQUEST_TIMEOUT:localhost:7051`

Mahadream (Mon, 27 Aug 2018 06:27:39 GMT):
Has joined the channel.

Mahadream (Mon, 27 Aug 2018 06:27:54 GMT):
How to connect the multiple peer in hyperleder-fabric or composer

NagatoPeinI1 (Mon, 27 Aug 2018 07:13:52 GMT):
Has joined the channel.

NagatoPeinI1 (Mon, 27 Aug 2018 07:13:57 GMT):
I was trying to invoke one chaincode which is shown installed when i see docker logs of cli container but when i run command inside the peer container it will give this error root@c126dea43168:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode list -C globalchannel --instantiated 2018-08-27 06:47:17.756 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-08-27 06:47:17.756 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-08-27 06:47:17.757 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0AD2070A6B08031A0C08F5BC8EDC0510...0F0A0D676574636861696E636F646573 2018-08-27 06:47:17.757 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: A3D9B639893832279A0F5A0270E403349AB35E09A3B73BA50352C33654EAF112 Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Authorization for GETCHAINCODES on channel getchaincodes has been denied with error Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]) Usage: peer chaincode list [flags] both for: peer chaincode list -C globalchannel --installed, peer chaincode list -C globalchannel --instantiated and in UI end it will get this error: [2018-08-27T06:44:52.496] [DEBUG] Helper - [DiscoveryEndorsementHandler]: endorse - start [2018-08-27T06:44:52.496] [DEBUG] Helper - [DiscoveryEndorsementHandler]: endorse - no discovery results [object Object] [2018-08-27T06:44:52.497] [DEBUG] Helper - [DiscoveryEndorsementHandler]: endorse - not using discovery error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: make sure the chaincode AabcdCC has been successfully instantiated and try again: could not find chaincode with name 'AbcdCC'

knagware9 (Mon, 27 Aug 2018 07:27:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bf6myBgMWspHkDSXE) @Rachit_gaur No ,we can run muliple image ..we need to mention mounting details in docker-compose file

Javi (Mon, 27 Aug 2018 07:41:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EosKbzk5FS8rkzvoe) @knagware9 ok, but I was searching for a more integrated service, and not install another one. I need to measure the performance in real time, it is possible with caliper??

Javi (Mon, 27 Aug 2018 07:41:49 GMT):
If not, maybe it's a good feature request... ;-)

atiffarrukh (Mon, 27 Aug 2018 08:27:30 GMT):
hello, i have created volumes for my peers and orderers. But the problem is volume size is increasing infinitely. There are around 127 blockfile_xxxxx each file size is approx 64MB, any idea on how to manage disk size?

knagware9 (Mon, 27 Aug 2018 08:49:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xPLLAzeQTDpmD4ABH) @Javi yeah ..In caliper we can but its separate hyperledger project,,we need to integrate with our fabric network

gut (Mon, 27 Aug 2018 08:51:30 GMT):
@knagware9 @Javi Related to your question. Has anyone calculated the average size overhead of a block? I mean the block and transaction data that is not related to chaincode payload

gut (Mon, 27 Aug 2018 08:53:51 GMT):
We're realizing that the docker container is growing (rapidly) in a (more or less) constant speed of 2Mb per block, independently from the data is entered to the ledger. Is it accurate?

Javi (Mon, 27 Aug 2018 09:01:37 GMT):
@knagware9 ok thanks, I will try to integrate Caliper into my existing fabric infraestructure

Javi (Mon, 27 Aug 2018 09:01:59 GMT):
@gut related to what question?

dharuq (Mon, 27 Aug 2018 09:06:24 GMT):
Hello! Anyone knows how to use more than one orderer in caliper to test fabric?

FaizulHassan (Mon, 27 Aug 2018 09:06:39 GMT):
is there a support for MongoDB as a state database in fabric network ?

FaizulHassan (Mon, 27 Aug 2018 09:06:39 GMT):
Is there a support for MongoDB as a state database in fabric network ?

Alvin455024780 (Mon, 27 Aug 2018 09:29:14 GMT):
I want to add Org3 in my net work and I have create the file org3_update_in_envelope.pb. when I use the command in peer0org1 :peer channel signconfigtx -f org3_update_in_envelope.pd it pass . but I run in the peer0org1:peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer0.example.com:7050 --tls --cafile $ORDERER_CA ,if fail: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining

smallant (Mon, 27 Aug 2018 09:56:28 GMT):
Hi to all, Currently i have and application using java sdk on a network with 3 different organisations (each with their own peers, ca and orderer). Should the sdk, in the configs, map and connect to all parts of the network or only to one organisation?

HellBoy_23 (Mon, 27 Aug 2018 10:00:53 GMT):
Hi how do i store a pdf file in hyperledger fabric?

HellBoy_23 (Mon, 27 Aug 2018 10:01:13 GMT):
without conversion to base 64?

gut (Mon, 27 Aug 2018 10:01:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mbPza238Ne9P94kHt) @Javi Well, actually more your discussion than your question :sweat_smile:

smallant (Mon, 27 Aug 2018 10:03:18 GMT):
@HellBoy_23 storing files in the chain is not a good approach. You should store it's hash then compare it with a file you want to check

HellBoy_23 (Mon, 27 Aug 2018 10:04:01 GMT):
@smallant actually i want to send the files to parties

HellBoy_23 (Mon, 27 Aug 2018 10:04:08 GMT):
broadcast

gut (Mon, 27 Aug 2018 10:04:47 GMT):
I was wondering whether to post it here or at #caliper. Because I got the feeling that there's much overhead at blocks, and the VM is becoming full rapidly. Maybe is an error on my installation, or it is a normal thing at Fabric

yacovm (Mon, 27 Aug 2018 10:05:51 GMT):
@gut - each fabric transaction is at least 3KB of space

yacovm (Mon, 27 Aug 2018 10:05:55 GMT):
because it's full of PEMs

smallant (Mon, 27 Aug 2018 10:09:01 GMT):
@HellBoy_23 i would suggest create a shared db where you store the files and in the blockchain store the hash (then you can compare them)

atiffarrukh (Mon, 27 Aug 2018 10:13:53 GMT):

blocks.png

atiffarrukh (Mon, 27 Aug 2018 10:15:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yPjckErS3m95Jaro4) Sorry, i didnt know it will upload the file without allowing me to write message. My question is when is a blockfile created? I mean whats the criteria? you can see in the picture that each file is around 64MB and created at around same time.

gut (Mon, 27 Aug 2018 10:16:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c2niu6enBp6XNQJW2) @yacovm An the block too. But I'm viewing the ledger DB growing constantly at 2MB rate, no matter if I submit 1 transaction, and time triggers the block creation or if I top the transaction limit.

gut (Mon, 27 Aug 2018 10:18:49 GMT):
For instance, 17246 transactions take 9Gb, and one day later we have 34948 transactions taking 11GB. And the payload JSON is not 1MB of info that should take that growing speed

gut (Mon, 27 Aug 2018 10:18:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rsdQSXvDDm2ybafYP) @Javi 9Gb is the docker size. Actually, ledgersData (through du -h) mean 1.8GB of them for 132k blocks. That's 13kb per block, and that makes sense. My fault.

dsl (Mon, 27 Aug 2018 10:25:06 GMT):
Hi all, I have been trying to run fabcar sample of fabric 1.2 and ended up with the following error on running invoke.js. Store path:/home/dsl/Block_Chain/HyperLedgerFabric/v1.2/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: fa859c8dc2ba2604063b21a819a4a6fe5f93aa422e371419e4c899150043cd6b Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Failed to invoke successfully :: TypeError: fabric_client.newEventHub is not a function

dsl (Mon, 27 Aug 2018 10:25:06 GMT):
Hi all, I have been trying to run fabcar sample of fabric 1.2 and ended up with the following error on running invoke.js. Store path:/home/dsl/Block_Chain/HyperLedgerFabric/v1.2/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: fa859c8dc2ba2604063b21a819a4a6fe5f93aa422e371419e4c899150043cd6b Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Failed to invoke successfully :: TypeError: fabric_client.newEventHub is not a function

dsl (Mon, 27 Aug 2018 10:25:06 GMT):
Hi all, I have been trying to run fabcar sample of fabric 1.2 and ended up with the following error on running invoke.js. Store path:/home/dsl/Block_Chain/HyperLedgerFabric/v1.2/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: fa859c8dc2ba2604063b21a819a4a6fe5f93aa422e371419e4c899150043cd6b Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Failed to invoke successfully :: TypeError: fabric_client.newEventHub is not a function Can anyone please help me to figure out the issue?

Javi (Mon, 27 Aug 2018 10:27:49 GMT):
@gut how are you measuring these stats?? 9GB seems too much...

BlockMcChainy (Mon, 27 Aug 2018 10:30:28 GMT):
It seems no one on the internet can give me a straight answer about his problem. I thought maybe you have a suggestion. When I use 'docker service update' on a peer container in my docker swarm, the peer get's replaced by a new one. Basically: 'docker service update' replaces the old peer with a replica, which has lost installed chaincode and has not joined the channel. I can however join the channel again and install the same chaincode, but instantiation is not possible anymore after the first time. And when I try the invoke method, no new chaincode container is made. The peer has access to all files like channel.tx, genesis.block and mychannel.block. in the peer/channel-artifacts map. I suppose I can just remove the peer, add a new one update/upgrade everything, but that seems like a very excessive fix just for a peer to go down. This problem does not happen with 'regular' docker because it just uses the same peer if it goes from stop/start. So my question is, How can a peer service in docker swarm still be part of the stack/swarm after an service update without it being a completely new peer container?

gut (Mon, 27 Aug 2018 12:19:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rsdQSXvDDm2ybafYP) @Javi 9Gb is the docker size. Actually, ledgersData (through du -h) mean 1.8GB of them for 132k blocks. That's 13kb per block, and that makes sense. My fault.

gut (Mon, 27 Aug 2018 12:19:26 GMT):
I've found that what's making bigger and bigger my system is docker diff

jiq048 (Mon, 27 Aug 2018 14:02:03 GMT):
Hi, I am playing with the end2end integration test for java sdk. I want to know how to join peers from other organizations. I tried to add peers and eventhubs under valid client user context of other orgs just like the original code adds the peers of org1 before channel.initialze but the initialize will fail. Did I misunderstand anything? Plus, how do you guys learn java sdk for I did not find any official docs like node sdk? THX sooo much for help if any!

hackartist (Mon, 27 Aug 2018 14:41:36 GMT):
Has joined the channel.

hackartist (Mon, 27 Aug 2018 14:44:17 GMT):
I am trying to create front web application with fabric-sdk-node. For that, I used @angular/cli with fabric-client@1.1.2 and fabric-ca-client@1.1.2. And then I compiled the web-app with `ng build`. And it shows up `cannot find name "Buffer" and "ByteBuffer"`

hackartist (Mon, 27 Aug 2018 14:45:21 GMT):
In my `tsconfigjson`, I added `"target": "es6"` and `"types":["node"]`

MRM (Mon, 27 Aug 2018 18:52:19 GMT):
Has joined the channel.

nicolas.alfonso (Mon, 27 Aug 2018 22:47:02 GMT):
Has joined the channel.

nicolas.alfonso (Mon, 27 Aug 2018 22:47:46 GMT):
Hello everyone, I need help. I try to configure the block browser on another server. I do not know how to get the pair's tls. Does anyone know how I can do?

maz_net_au (Tue, 28 Aug 2018 00:49:36 GMT):
Does anyone know what actually starts the chaincode docker container? Atteming to use @ManuelRauber 's .Net shim and we've added it to the couch.yaml config to get it to load. I suspect that we should have configured the container elsewhere as it seems to be missing some of its environment variables for certs. If anyone can point me in the direction of what originally loaded the default chaincode container, we can investigate further ourselves.

qiangjiyi (Tue, 28 Aug 2018 02:12:02 GMT):
Has joined the channel.

maz_net_au (Tue, 28 Aug 2018 04:25:35 GMT):
update: it wasn't connecting to the correct network.

maz_net_au (Tue, 28 Aug 2018 04:25:35 GMT):
update: it wasn't added to the correct network.

ManuelRauber (Tue, 28 Aug 2018 04:31:37 GMT):
Yes, the docker is highly experimental. :-)

maz_net_au (Tue, 28 Aug 2018 04:35:43 GMT):
I'm happy to experiment and see if we can get it working. I saw a FAB Jira task to create a full .net API so once I've got in touch with the appropriate people, I'll try and focus my effort / dev time on that.

ManuelRauber (Tue, 28 Aug 2018 04:39:26 GMT):
Sounds good. I'll still be interested in creating the SDK as well, having people to collaborate would it make easier/faster to convert :)

maz_net_au (Tue, 28 Aug 2018 04:41:53 GMT):
I'm happy to help and contribute. There is a Jira board for it but it's marked as "private"

ManuelRauber (Tue, 28 Aug 2018 04:43:13 GMT):
No clue. I just watch the two issues. One created by me and the other one created by GopalPanda

yulong12 (Tue, 28 Aug 2018 05:47:38 GMT):
Hi everyone

yulong12 (Tue, 28 Aug 2018 05:47:41 GMT):
I know that the configtxlator can update a configuration of a channel. This can be used for adding new organizations. and I also know In order to add new peers to an existing organization you need to generate new certificates for your peers and sign them using the key of the root CA certs f the existing organizations - Configtxlator won't help you in this aspect. so I want to know what's the steps in the second method.

yulong12 (Tue, 28 Aug 2018 05:48:09 GMT):
who can help me in https://stackoverflow.com/questions/52050927/adding-a-peer-which-the-fabric-network-have-been-launched

maz_net_au (Tue, 28 Aug 2018 05:55:21 GMT):
@yulong12 : you use `cryptogen` which is given the template `crypto-config.yaml` as part of the byfn script. You should be able to modify this template to achieve what you need

maz_net_au (Tue, 28 Aug 2018 05:55:21 GMT):
@yulong12 : you use the `cryptogen` tool which is given the template `crypto-config.yaml` as part of the byfn script. You should be able to modify this template to achieve what you need

yulong12 (Tue, 28 Aug 2018 05:58:53 GMT):
Hi I have generateted the ca certs and key but I don't know how to use

maz_net_au (Tue, 28 Aug 2018 06:00:45 GMT):
as far as I know, you use cryptogen to create new peer certificates from your ca cert https://hyperledger-fabric.readthedocs.io/en/release-1.1/commands/cryptogen-commands.html

BhaskarMondal (Tue, 28 Aug 2018 06:01:08 GMT):
Has joined the channel.

BhaskarMondal (Tue, 28 Aug 2018 06:01:30 GMT):
Would like to know step by step process on how hyperledger is installed in distributed machines with multiple orderer multiple peer exists.

maz_net_au (Tue, 28 Aug 2018 06:02:46 GMT):
@yulong12 define a template that uses an explicit CA cert to generate new peer certs. if you look at `crypto-config.yaml` it has a lot of information in the comments

yulong12 (Tue, 28 Aug 2018 06:08:54 GMT):
I mean that how can I add the peer in the launched fabric network. I have generated the certs. @maz_net_au

maz_net_au (Tue, 28 Aug 2018 06:15:39 GMT):
Oh ok. I don't know. I'm just learning as well

Rachit_gaur (Tue, 28 Aug 2018 06:23:57 GMT):
I want to save my key values dynamically from my JSON response , Is there a way to do so?

manishatGit (Tue, 28 Aug 2018 06:37:43 GMT):
Has joined the channel.

flyerwing (Tue, 28 Aug 2018 07:02:14 GMT):
Has joined the channel.

MohammedR (Tue, 28 Aug 2018 07:13:32 GMT):
Has joined the channel.

MohammedR (Tue, 28 Aug 2018 07:14:39 GMT):
i am using hyperledger fabric with leveldb option,where is leveldb stored and how can i view it..

ghoshpushpendu (Tue, 28 Aug 2018 07:38:39 GMT):
Has joined the channel.

ghoshpushpendu (Tue, 28 Aug 2018 07:38:42 GMT):
I have aapi backend built on express js and mongo db . Can I use the same code with hyperledger fabric ?

JaeyeonKim (Tue, 28 Aug 2018 08:27:40 GMT):
Has joined the channel.

JackMalinowski (Tue, 28 Aug 2018 09:32:04 GMT):
Hi, I have up and running Hyperledger Fabric 1.2 network from the tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.2/write_first_app.html How could I connect Composer and composer-playground v0.20 to the network?

hackartist (Tue, 28 Aug 2018 09:42:36 GMT):
@ManuelRauber could tou send me a JIRA link for the SDK issues?

Mahadream (Tue, 28 Aug 2018 09:57:21 GMT):
Hi all, Error: No such container: cli docker exec -it cli bash - while i run this commands got this error , how to resolve this one - Error: No such container: cli

Mahadream (Tue, 28 Aug 2018 09:57:31 GMT):
How to list the client container

Mahadream (Tue, 28 Aug 2018 09:57:32 GMT):
?

hackartist (Tue, 28 Aug 2018 09:59:15 GMT):
`docker ps` will shows up running containers

hackartist (Tue, 28 Aug 2018 09:59:15 GMT):
@Mahadream `docker ps` will shows up running containers

hackartist (Tue, 28 Aug 2018 09:59:45 GMT):
To resolve the issue, you should run `cli` docker.

Mahadream (Tue, 28 Aug 2018 10:01:04 GMT):
Ok

Mahadream (Tue, 28 Aug 2018 10:02:19 GMT):
@hackartist - Thanks for ur reply , need to run this file in first network - docker-compose-cli.yaml , is it correct

GuillaumeCisco (Tue, 28 Aug 2018 10:03:30 GMT):
Hey there, is there a documentation about channel events for shell commands? I only see the node.js sdk for it here: https://fabric-sdk-node.github.io/tutorial-channel-events.html

hackartist (Tue, 28 Aug 2018 10:03:57 GMT):
@Mahadream did you mean example first network? or do you have your own docker-compose-cli.yaml?

hackartist (Tue, 28 Aug 2018 10:06:14 GMT):
@GuillaumeCisco do you hope to observe all of invoking transactions in a channel?

Mahadream (Tue, 28 Aug 2018 10:06:46 GMT):
@hackartist - first network only

hackartist (Tue, 28 Aug 2018 10:07:57 GMT):
@Mahadream could you upload the compose-cli.yaml of send me a link for the first net?

GuillaumeCisco (Tue, 28 Aug 2018 10:07:58 GMT):
@hackartist I don't know yet. I'm sure I want to observe one transaction when I create an certain object.

GuillaumeCisco (Tue, 28 Aug 2018 10:07:58 GMT):
@hackartist I don't know yet. I'm sure I want to observe one transaction when I create a certain object.

Mahadream (Tue, 28 Aug 2018 10:08:45 GMT):
@hackartist -

Mahadream (Tue, 28 Aug 2018 10:08:45 GMT):
@hackartist - # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' volumes: orderer.example.com: peer0.org1.example.com: peer1.org1.example.com: peer0.org2.example.com: peer1.org2.example.com: networks: byfn: services: orderer.example.com: extends: file: base/docker-compose-base.yaml service: orderer.example.com container_name: orderer.example.com networks: - byfn peer0.org1.example.com: container_name: peer0.org1.example.com extends: file: base/docker-compose-base.yaml service: peer0.org1.example.com networks: - byfn peer1.org1.example.com: container_name: peer1.org1.example.com extends: file: base/docker-compose-base.yaml service: peer1.org1.example.com networks: - byfn peer0.org2.example.com: container_name: peer0.org2.example.com extends: file: base/docker-compose-base.yaml service: peer0.org2.example.com networks: - byfn peer1.org2.example.com: container_name: peer1.org2.example.com extends: file: base/docker-compose-base.yaml service: peer1.org2.example.com networks: - byfn cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- CORE_LOGGING_LEVEL=DEBUG - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com - peer1.org1.example.com - peer0.org2.example.com - peer1.org2.example.com networks: - byfn

hackartist (Tue, 28 Aug 2018 10:09:05 GMT):
@GuillaumeCisco `peer chaincode invoke` will invoke a transaction and get the result of acceptance status with event hub.

GuillaumeCisco (Tue, 28 Aug 2018 10:09:17 GMT):
@hackartist I do not use the node sdk, go sdk or python sdk. I do everything from binary command

GuillaumeCisco (Tue, 28 Aug 2018 10:09:43 GMT):
oh very interesting @hackartist

hackartist (Tue, 28 Aug 2018 10:10:37 GMT):
@Mahadream What error message you see where you execute `docker-compose -f docker-compose-cli.yaml up -d`

GuillaumeCisco (Tue, 28 Aug 2018 10:11:28 GMT):
@hackartist but can I subscribe to these events from `peer` command? If I have two peers. I invoke from the first one, I get the result. How the second one will know the transaction has been created and get the result of it?

hackartist (Tue, 28 Aug 2018 10:12:13 GMT):
@GuillaumeCisco `peer` command is provided with `fabric`. Therefore, it is binary command from `github.com/hyperledger/fabric/peer`

GuillaumeCisco (Tue, 28 Aug 2018 10:12:26 GMT):
yes

GuillaumeCisco (Tue, 28 Aug 2018 10:13:29 GMT):
So do we need to use something else than the peer binary for subscribing to events?

hackartist (Tue, 28 Aug 2018 10:13:30 GMT):
@GuillaumeCisco You can confirm the changed state in the other peer through `statedb`

hackartist (Tue, 28 Aug 2018 10:14:26 GMT):
No, you just use `peer` for subscribing the result of invoked tx.

hackartist (Tue, 28 Aug 2018 10:15:19 GMT):
Generally, `peer` will invoke transaction with endosers configured with deploying chaincode

GuillaumeCisco (Tue, 28 Aug 2018 10:18:30 GMT):
I do not really understand, when I invoke, I get something like: ``` 2018-08-27 15:29:44.117 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-08-27 15:29:44.117 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-08-27 15:29:44.119 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-08-27 15:29:44.120 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-08-27 15:29:44.120 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2018-08-27 15:29:44.120 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A9F090A6608031A0B08E8B190DC0510...697074696F6E2E6D640A000A03616C6C 2018-08-27 15:29:44.120 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: E4807889A3AC6EBC337D4DF97A2DD28542B07EF233754B48536FDB99B91E7632 2018-08-27 15:29:44.124 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A9F090A6608031A0B08E8B190DC0510...9F9241F58EDDE280F41188BD2B87C738 2018-08-27 15:29:44.124 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 9D61D15B774AB54F74CF2EF56715B89D98FA99273A84F530E626E746922AA814 2018-08-27 15:29:44.125 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 00a ESCC invoke result: version:1 response: payload:"\n \264\034\221C'\340Datj\227\346{\3374l]\306-\205\315+e\364\020]X\251\340>\337\202\022\244\007\n\315\006\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022\264\006\n\004mycc\022\253\006\032\243\001\n\235\001\000dataset~owner~key\000dataset\0007ca86e3c547102d63e808267b563ad09b789765edf878949926e7f0ec595fd07\0002b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc\000\032\001\000\032\202\005\n@2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc\032\275\004{\"\"permissions\":\"all\"}\032E\010\310\001\032@2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc\"\013\022\004mycc\032\0031.0" endorsement: 2018-08-27 15:29:44.125 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 00b Chaincode invoke successful. result: status:200 payload:"2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc" 2018-08-27 15:29:44.126 UTC [main] main -> INFO 00c Exiting..... ``` What is the event hub? Do I manually have to check the changed state in the other peer through statedb? So no events?

gen_el (Tue, 28 Aug 2018 10:18:43 GMT):
Is commercial technical support for Hyperledger fabric available/offered?

hackartist (Tue, 28 Aug 2018 10:35:10 GMT):
let me know your invoke command

hackartist (Tue, 28 Aug 2018 10:36:25 GMT):
`2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc` may be the result of your chaincode

deenario (Tue, 28 Aug 2018 10:58:45 GMT):
Has joined the channel.

deenario (Tue, 28 Aug 2018 10:58:51 GMT):
Hey guys. I want to ask that is there any kind of concept for Indexing in hyperledger. For quick searching lets suppose among 10 Million transactions submitted lets. How does hyperledger handles this amount of Search ?

ManuelRauber (Tue, 28 Aug 2018 11:02:11 GMT):
@hackartist https://jira.hyperledger.org/browse/FAB-11460 (.NET Shim), https://jira.hyperledger.org/browse/FAB-11510 (SDK)

hackartist (Tue, 28 Aug 2018 11:04:57 GMT):
@ManuelRauber Thank you~

deenario (Tue, 28 Aug 2018 11:14:46 GMT):
@ManuelRauber Hey can you check my question ?

deenario (Tue, 28 Aug 2018 11:15:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n8wQ8cjS8FEtpCE29) I want to ask that is there any kind of concept for Indexing in hyperledger. For quick searching lets suppose among 10 Million transactions submitted lets. How does hyperledger handles this amount of Search ?

deenario (Tue, 28 Aug 2018 11:15:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n8wQ8cjS8FEtpCE29) this -->

ManuelRauber (Tue, 28 Aug 2018 11:16:29 GMT):
Sorry, I'm not able to answer this, you may need to wait for someone who has more insights about this :)

deenario (Tue, 28 Aug 2018 11:18:45 GMT):
Okay thank you

gen_el (Tue, 28 Aug 2018 11:26:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nic6zPXWWgJ7aCnHq) Does anyone known if linux foundation offers this?

gen_el (Tue, 28 Aug 2018 11:26:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nic6zPXWWgJ7aCnHq) Does anyone know if linux foundation offers this?

GuillaumeCisco (Tue, 28 Aug 2018 12:03:11 GMT):
@hackartist I invoke like `peer chaincode invoke -C channel_name -n chaincode_name -c '{"Args":["mycommand", "arg1"]}' -o orderer_url -tls --clientauth --cafile orderer_tls_certfile --keyfile peer_client.key --certfile peer_client.crt` `2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc` is the result yes

GuillaumeCisco (Tue, 28 Aug 2018 12:03:11 GMT):
@hackartist I invoke like `peer chaincode invoke -C channel_name -n chaincode_name -c '{"Args":["mycommand", "arg1"]}' -o orderer_url --tls --clientauth --cafile orderer_tls_certfile --keyfile peer_client.key --certfile peer_client.crt` `2b400bd655abd051384a5d8d2139bc1b2d3a8112c4550347d34f6ebaf95edadc` is the result yes

hackartist (Tue, 28 Aug 2018 12:23:47 GMT):
@GuillaumeCisco could you examine your chaincode invoked?

GuillaumeCisco (Tue, 28 Aug 2018 12:37:28 GMT):
@hackartist I don't understand, what do you want me to examine? My chaincode works, I want to return this value.

GuillaumeCisco (Tue, 28 Aug 2018 12:48:58 GMT):
@hackartist should I add `stub.setEvent('name', 'payload')` in my chaincode function? This is a command line from hyperledger 1.0, does it work with hyperledger 1.1 (current for me). How do I subscribe to this event if I do not use any SDK?

olumide (Tue, 28 Aug 2018 13:55:39 GMT):
Has joined the channel.

jvsclp (Tue, 28 Aug 2018 14:13:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n8wQ8cjS8FEtpCE29) @deenario This lays out what you're looking for: https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_as_state_database.html. It compares both leveldb and couchdb and how indexing works for each.

DiegoLeal (Tue, 28 Aug 2018 14:14:42 GMT):
Has joined the channel.

rajanashutosh (Tue, 28 Aug 2018 15:01:48 GMT):
@dave.enyeart @mastersingh24 2018-08-28 14:57:55.117 UTC [endorser] callChaincode -> DEBU ad2c [freightchannel][2b2fd2f91260cc25dbb0beb8de57e41bb4bfb5ae4d99399ab9ad3887c8136e65] Exit 2018-08-28 14:57:55.117 UTC [endorser] SimulateProposal -> ERRO ad2d [mychannel][2b2fd2f9] failed to invoke chaincode name:"qscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:919 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:253 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:179 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:141 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:136 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:287 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:501 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:31 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:112 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:923 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1148 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:637 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending

rajanashutosh (Tue, 28 Aug 2018 15:01:48 GMT):
@dave.enyeart @mastersingh24 2018-08-28 14:57:55.117 UTC [endorser] callChaincode -> DEBU ad2c [mychannel][2b2fd2f91260cc25dbb0beb8de57e41bb4bfb5ae4d99399ab9ad3887c8136e65] Exit 2018-08-28 14:57:55.117 UTC [endorser] SimulateProposal -> ERRO ad2d [mychannel][2b2fd2f9] failed to invoke chaincode name:"qscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:919 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:253 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:179 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:141 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:136 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:287 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:501 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:31 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:112 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:923 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1148 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:637 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending

rajanashutosh (Tue, 28 Aug 2018 15:04:16 GMT):
most of times when we are hitting via rest APIs developed backed by Java SDK we get some issues.

rajanashutosh (Tue, 28 Aug 2018 15:04:57 GMT):
But if restart the fabric network all the contents which were inserted gets committed after the network restart

rajanashutosh (Tue, 28 Aug 2018 15:05:40 GMT):
We are using Solo orderer for this POC and not Kafka, is der something which relates to orderer.

Shaun.Lynch (Tue, 28 Aug 2018 15:37:30 GMT):
Has joined the channel.

Shaun.Lynch (Tue, 28 Aug 2018 15:40:36 GMT):
Hey all, I'm conducting some research into Hyperledger Fabric to better understand the developer experience. The data will be used to understand what kind of developers use Hyperledger Fabric aswell as what learning methods and tooling are generally used. Any further questions about the survey I'm happy to answer 😁 Hey all I'm conducting some research into who develops with Hyperledger Fabric and what it's like to learn in order to improve the developer experience. If you're a developer and have a spare few minutes please consider filling out my survey, any questions please feel free to ask :grin: Hey all, I'm conducting some research into Hyperledger Fabric to better understand the developer experience. The data will be used to understand what kind of developers use Hyperledger Fabric aswell as what learning methods and tooling are generally used. Any further questions about the survey I'm happy to answer 😁 https://www.surveygizmo.com/s3/4499667/Blockchain-Developer-Community-Survey

Shaun.Lynch (Tue, 28 Aug 2018 15:41:10 GMT):
Hey all, I'm conducting some research into Hyperledger Fabric to better understand the developer experience. The data will be used to understand what kind of developers use Hyperledger Fabric aswell as what learning methods and tooling are generally used. Any further questions about the survey I'm happy to answer 😁 https://www.surveygizmo.com/s3/4499667/Blockchain-Developer-Community-Survey

lepar (Tue, 28 Aug 2018 16:08:41 GMT):
Has anyone experimented with multi signatures? When instantiating chaincode, I put 'AND (Org1.member, Org2.member)' meaning I need both signatures but how do I do that exactly? When I invoke chaincode, I get ENDORSEMENT_POLICY_FAILURE obviously because not both are not signing. Isn't the signature done automatically?

lepar (Tue, 28 Aug 2018 16:15:26 GMT):
Answered

lepar (Tue, 28 Aug 2018 16:15:30 GMT):
@Shaun.Lynch

akshaymittal143 (Wed, 29 Aug 2018 00:18:35 GMT):
Has joined the channel.

huangliping (Wed, 29 Aug 2018 01:59:35 GMT):
"Received invalid transaction event. Transaction ID 4001f36ee248c965f4d90395efccc58b4b7c6df4629e29d853b5b9e7b57ae92c status 10", what the exact message for status 10?

huangliping (Wed, 29 Aug 2018 02:01:47 GMT):
ENDORSEMENT_POLICY_FAILURE

AshishKaila (Wed, 29 Aug 2018 02:46:17 GMT):
Hey guys, I am trying to run byfn example that ships with v1.2. After successfully running and brining down the network, I get errors when I try to get it up again: Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

AshishKaila (Wed, 29 Aug 2018 02:46:33 GMT):
any clues? I am clearing out all the running containers

AshishKaila (Wed, 29 Aug 2018 02:47:39 GMT):
Here is the log from orderer: 2018-08-29 02:47:00.435 UTC [orderer/common/server] Start -> INFO 007 Beginning to serve requests 2018-08-29 02:47:01.815 UTC [msp] DeserializeIdentity -> INFO 008 Obtaining identity 2018-08-29 02:47:01.816 UTC [cauthdsl] deduplicate -> ERRO 009 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity

AshishKaila (Wed, 29 Aug 2018 02:48:02 GMT):
I have also tried regenerating the crypto materials and channel config but it does not fix it

AshishKaila (Wed, 29 Aug 2018 03:00:45 GMT):
The sample in the fabric-samples always works but when I copy it to a different folder it fails. I commented out installing chaincode part

AshishKaila (Wed, 29 Aug 2018 03:07:13 GMT):
Funny doing docker volume prune fixed it

rajanashutosh (Wed, 29 Aug 2018 03:45:27 GMT):
@dave.enyeart @mastersingh24 -- Detailed information on the above query have added in stackoverflow along with logs https://stackoverflow.com/questions/52069132/hyperledger-fabric-v1-2-failed-to-invoke-chaincode-nameqscc-error-timeou

dave.enyeart (Wed, 29 Aug 2018 04:04:43 GMT):
@rajanashutosh Please open a Jira issue and attach complete peer debug log: https://jira.hyperledger.org/secure/Dashboard.jspa?selectPageId=10104

rajanashutosh (Wed, 29 Aug 2018 04:05:14 GMT):
@dave.enyeart sure will do that

pankajcheema (Wed, 29 Aug 2018 04:59:43 GMT):
https://stackoverflow.com/questions/52059775/hyperledger-fabric-with-kubernetes-not-able-to-instantiate-chaincode

Rachit_gaur (Wed, 29 Aug 2018 05:07:35 GMT):
Hi guys, Is there some parameter to change just the display name of the organizations org1 and org2 instead of changing every occurrence of them? Regards

AbhinayB (Wed, 29 Aug 2018 05:19:06 GMT):
Has joined the channel.

AbhinayB (Wed, 29 Aug 2018 05:21:53 GMT):
Hello,

AbhinayB (Wed, 29 Aug 2018 05:23:26 GMT):
Hello, Is there a way to restrict the access of a user in an organization to only one channel when the organization has joined many channels? https://stackoverflow.com/questions/52056834/restrict-user-access-to-only-some-channels-in-hyperledger-fabric

knagware9 (Wed, 29 Aug 2018 05:39:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=awz7GEFHWXy9hYZfF) @deenario Yes ,we can do indexing when we use couch db as state db ,,,

Rachit_gaur (Wed, 29 Aug 2018 05:48:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JRHTDZHfqRhnxqMoe) @lepar Yes Endorsements are supposed to happen automatically but only when you have set up the network correctly Install the chaincode on all req peers , join them to channel and update

guill 63 (Wed, 29 Aug 2018 06:13:35 GMT):
Has joined the channel.

deenario (Wed, 29 Aug 2018 06:14:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YJMKgc7wQtJA5EySo) @knagware9 How ? can you give me any source to check this out from ?

deenario (Wed, 29 Aug 2018 06:14:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YJMKgc7wQtJA5EySo) @knagware9 Can i use it in composer as well ?

guill 63 (Wed, 29 Aug 2018 06:15:48 GMT):
hi. is there anyone knows 'system chain'? which links at https://hyperledger-fabric.readthedocs.io/en/release-1.2/glossary.html?highlight=configuration%20block#system-chain does it mean that the system chain is stored on ordering node?

alpha 32 (Wed, 29 Aug 2018 07:05:08 GMT):
where's the hyperledger composer lastest docs?

alpha 32 (Wed, 29 Aug 2018 07:05:55 GMT):
"composer runtime" command doesnt exist in lastest version so I cannot deploy my network

Maryam1011 (Wed, 29 Aug 2018 07:11:43 GMT):
Has joined the channel.

knagware9 (Wed, 29 Aug 2018 09:20:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AeowjLHd7cMSwSQWu) @deenario yes..https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_as_state_database.html

sheetal-hlf (Wed, 29 Aug 2018 09:25:08 GMT):
Hi All, I am trying out the private data feature in v1.2 using node sdk. My network contains 2-Orgs, 2 peers per org, 1 solo orderer, 2-CA nodes. Endorsement policy is default and the collection policy as stated in https://fabric-sdk-node.github.io/tutorial-private-data.html Connection profile contains flag "discover: false". I get following error while invoking chaincode Error: Failed disseminating 2 out of 2 private RWSets Could anyone please guide me?

flyerwing (Wed, 29 Aug 2018 09:42:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WLDM7d2MxvSK24JmC) @AbhinayB this feature is supported in frabic V1.2, which support the private data be protected within the channel, that can not be shared by the peer in muti-channel.

AbhinayB (Wed, 29 Aug 2018 09:49:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z5PwyBF9bnGkQqnqs) @flyerwing I have read the documentation on private data collection made available at https://hyperledger-fabric.readthedocs.io/en/release-1.2/private-data/private-data.html However, it says that the private data collection can be used to restrict some of the organizations that share the same channel from accessing another organization's data. It seems to provide restriction at an organization level and not at a user level within an organization. I need to restrict a user within an organization to a single channel while the other users in the same organization can access all the channels in which the organization has joined.

hyperlearner (Wed, 29 Aug 2018 09:53:27 GMT):
How to I upgrade chaincode without data-loss ? #fabric-chaincode-dev #fabric-questions #general

hyperlearner (Wed, 29 Aug 2018 09:53:27 GMT):
How do I upgrade chaincode without data-loss ? #fabric-chaincode-dev #fabric-questions #general

JackMalinowski (Wed, 29 Aug 2018 09:57:48 GMT):
How could I upgrade an HLF network to v1.2? I can lose ledger data if needed. My current version of peers: ``` peer: Version: 1.0.1 Go version: go1.7.5 OS/Arch: linux/amd64 Chaincode: Base Image Version: 0.3.1 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger ```

sheetal-hlf (Wed, 29 Aug 2018 10:01:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gsWBBgc6NEmBXTnsS) @hyperlearner sendUpgradeProposal is available in node sdk (https://fabric-sdk-node.github.io/Channel.html#sendUpgradeProposal__anchor) to upgrade chaincode; there is no data loss

deenario (Wed, 29 Aug 2018 10:05:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2YqAQBAsBzScPgCa8) @knagware9 Thanks alot. U r a life saver

cgftang (Wed, 29 Aug 2018 10:11:50 GMT):
Has joined the channel.

ManuelRauber (Wed, 29 Aug 2018 10:27:13 GMT):
Howdy, I just updated the .NET Core Chaincode Shim to include the upcoming Contracts-Based API. If you want to try it out, you can :) - GitHub: https://github.com/thinktecture/fabric-chaincode-netcore/tree/develop - NuGet: https://www.nuget.org/packages/Thinktecture.HyperledgerFabric.Chaincode

lucky114407 (Wed, 29 Aug 2018 10:42:11 GMT):
Has joined the channel.

deveshdhole (Wed, 29 Aug 2018 11:07:45 GMT):
Has joined the channel.

lepar (Wed, 29 Aug 2018 12:39:38 GMT):
@Rachit_gaur the network is correct, installed and instantiated chaincode, joined peers, etc... I also wouldn't want it to be automatically, is there to send an event to the peer that needs to sign it and do it manually?

abityildiz (Wed, 29 Aug 2018 12:57:25 GMT):

Clipboard - August 29, 2018 3:56 PM

nfrunza (Wed, 29 Aug 2018 14:20:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GC2JPhNjRRPs2pRKz) @abityildiz you can post in hyperledger-explorer channel, you didn't run the DB setup

JuanSuero (Wed, 29 Aug 2018 14:24:36 GMT):
Has joined the channel.

JuanSuero (Wed, 29 Aug 2018 14:29:55 GMT):
hello, im using hyperledger I accidentally deleted all containers and data EXCEPT couchdb and my Composer Cards. So i freshly installed a new setup from scratch, turned off the couchdb and swapped in my couchdb data directory and turn the containers back on.

JuanSuero (Wed, 29 Aug 2018 14:29:55 GMT):
hello, im using hyperledger I accidentally deleted all containers and data EXCEPT couchdb and my Composer Cards. So i freshly installed a new setup from scratch, turned off the couchdb and swapped in my couchdb data directory and turn the containers back on. I then was able to see my data by doing a composer network list --card admin@tutorial-network

JuanSuero (Wed, 29 Aug 2018 14:29:55 GMT):
hello, im using hyperledger I accidentally deleted all containers and data EXCEPT couchdb and my Composer Cards. So i freshly installed a new setup from scratch, turned off the couchdb and swapped in my couchdb data directory and turn the containers back on. I then was able to see my data by doing a composer network list --card admin@tutorial-network .... but my block count is down from 600 to 2 . My question is. Do I have a full blockchain back and recovered now? Are all my transactions condensed down to the 2 blocks? How do i diagnose this, what are some tools to poke around and see that i have a fully operational blockchain again?

npc0405 (Wed, 29 Aug 2018 14:38:54 GMT):
Can we use combination of 3 keys in composite keys?

npc0405 (Wed, 29 Aug 2018 14:39:05 GMT):
to query data

rickr (Wed, 29 Aug 2018 14:45:59 GMT):
Link to today's recorded scrum call ?

rickr (Wed, 29 Aug 2018 14:45:59 GMT):
Link to today's recorded scrum call ? @dave.enyeart

dave.enyeart (Wed, 29 Aug 2018 14:49:18 GMT):
I'll post the link to fabric-maintainers once linux foundation makes it available

dave.enyeart (Wed, 29 Aug 2018 14:50:01 GMT):
@npc0405 Yes you can use any number of keys in the composite key, and query on a subset of them

npc0405 (Wed, 29 Aug 2018 14:56:50 GMT):
empid~deptid~orgid~state~id If above is composite key then can I search based on any one of attribute?

DattaPatil (Wed, 29 Aug 2018 18:40:22 GMT):
Has joined the channel.

DattaPatil (Wed, 29 Aug 2018 18:40:29 GMT):
HI All, I have a question- I am working on of the poc for which i doing the configuration and all. i have three peers running on in the network under one channel. from the UI perspective or SDK perspective. which IP address should we provide to user? so that they can hit the request and it can arrive to our pull that in our channel where our peers can pick that up

lepar (Wed, 29 Aug 2018 18:47:12 GMT):
@DattaPatil you have to create a node server and use your computer local ip

lepar (Wed, 29 Aug 2018 19:22:06 GMT):
d1k6f7ki4

nrohith (Wed, 29 Aug 2018 20:01:50 GMT):
Hi, what code loads the core.yaml file when executing a peer command such as `peer node start` ? Only the commands `peer chaincode` and `peer channel` call common.InitCmd(), which loads core.yaml through viper.ReadInConfig. I can't find where the config file is initialized in viper before getting the values with viper.Get() in peer/node/start.go

DattaPatil (Thu, 30 Aug 2018 02:20:16 GMT):
@lepar Can you please elaborate more on this? please how we can do that etc etc..any example would make lot more sense.

vineetmishra (Thu, 30 Aug 2018 04:27:38 GMT):
Hi guys

vineetmishra (Thu, 30 Aug 2018 04:28:35 GMT):
can someone tell me , how many transaction a block can have,or there is fix no of transaction in each block

vineetmishra (Thu, 30 Aug 2018 04:28:44 GMT):
?

flyerwing (Thu, 30 Aug 2018 05:29:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3GDapoPJjpYKg3gfs) @vineetmishra it seems the block size can be configured, we have ever used the 98MB block size on frabic1.0.

sheetal-hlf (Thu, 30 Aug 2018 05:39:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9SBNw83zAM3seY2Rg) I changed the requiredPeerCount parameter from 1 to 0 in collection-config; now I am able to invoke CC, could anyone suggest if this is the correct way?

Subhankar 3 (Thu, 30 Aug 2018 06:47:12 GMT):
which path in fabric-couchdb should be persisted like its '/var/hyperledger/production' for fabric-peer

rupa12 (Thu, 30 Aug 2018 06:48:56 GMT):
I have this weird problem, not sure if anyone ran into it... I am behind a company firewall and running hyperledger fabric. The FW rules ( dmz zone) just allows port 7050 and 7051 , with this setup the communication doesn't seem to go through but if the FW rules are open to accept all ports ( trusted zone) and IPs it works fine. I have been playing around with the FW rules past few days to find out the reason why the communication doesn't seem to go through when the specific ports are allowed ( 7050 and 7051) but no luck yet. Could you suggest what I could be missing?

jooskim1 (Thu, 30 Aug 2018 06:52:06 GMT):
Has joined the channel.

jooskim1 (Thu, 30 Aug 2018 07:06:03 GMT):
Hi all, fabric-ca-client, as an one of hyperledger fabric binaries, seems cannot apply --csr.cn option when registering or enrolling identities

anchit (Thu, 30 Aug 2018 07:06:15 GMT):
Has joined the channel.

anchit (Thu, 30 Aug 2018 07:09:35 GMT):
Hi All Can anyone guide me about the transaction size which gets generated? (I am assuming that fabric adds some default params to a transaction like headers, hash, signatures etc)

anchit (Thu, 30 Aug 2018 07:09:35 GMT):
Hi All Can anyone guide me about the transaction size which gets generated? (I am assuming that fabric adds some default params to a transaction like headers, hash, signatures etc) If my data size is ~5KB, then what will be the approximate data it will occupy on the ledger? (Couch DB)

huangliping (Thu, 30 Aug 2018 07:43:25 GMT):
hi there, if we using symmetric encryption in fabric, this will lose the full text search capicaty from couchdb, is there any other good solution that we can have both these features?

lennertr (Thu, 30 Aug 2018 07:58:16 GMT):
Good Morning! I have a important question regarding the data privacy aspect of HLF. When no separated channels are used and rules are specified through the access control list, who is able to read the ledger data? Every node owner? Is the data on the ledger encrypted?

Rachit_gaur (Thu, 30 Aug 2018 08:48:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9SBNw83zAM3seY2Rg) @sheetal-hlf which peer are you using to invoke? Check if you get the same when you use the anchor peer you added to channel (peer0 generally)

yoheiueda (Thu, 30 Aug 2018 08:49:52 GMT):
Has joined the channel.

Rachit_gaur (Thu, 30 Aug 2018 08:52:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=exyF52WHECqgtStmy) @lennertr Every node that is joined on the channel has permissions to view the ledger data, You can either use private db concept for data privacy or maybe encrypt the data before saving it

Rachit_gaur (Thu, 30 Aug 2018 08:56:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g9My2gcxgfEG6v9un) @sheetal-hlf requiredPeerCount refers to the num of peers endorsers spread the data to maintain data redundancy , When requiredPeerCount is 0, it means that no distribution is required from the endorsers to the other peers, it may lead to loss of private data later on

Rachit_gaur (Thu, 30 Aug 2018 08:57:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PZtM5QDRFfNrg4KA5) @vineetmishra Change to orderer settings to change the way blocks are being cut, you can change the num of transaction or the size of block for this

Rachit_gaur (Thu, 30 Aug 2018 08:58:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uw24nfy7a2zafR4JG) @DattaPatil provide the local ip of your machine on which you will run the node server

Rachit_gaur (Thu, 30 Aug 2018 08:59:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gsWBBgc6NEmBXTnsS) @hyperlearner just install the chaincode with same name and increased version and update the anchor peers

Rachit_gaur (Thu, 30 Aug 2018 09:00:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gsWBBgc6NEmBXTnsS) @hyperlearner refer to this guide https://hyperledger-fabric.readthedocs.io/en/release-1.1/upgrading_your_network_tutorial.html

Rachit_gaur (Thu, 30 Aug 2018 09:02:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2XCaTvnL5hxiKhcHF) @lepar You can either manage this via front end of your app or via node sdk

sheetal-hlf (Thu, 30 Aug 2018 09:08:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v33CjFDnsWYGMcdNM) @Rachit_gaur invoking chaincode using peer0.org1; the peer logs show following error namespace marblesp1 collection collectionMarbles : Requested to send to at least 1 peers, but know only of 0 suitable peers

yoheiueda (Thu, 30 Aug 2018 09:19:50 GMT):
Hi!. I have a question about Gerrit Web UI. I'd like to mention someone in comments like @user in GitHub. How can I do that?

GuillaumeCisco (Thu, 30 Aug 2018 09:40:23 GMT):
Hey there, is there a way to recompute the `stub.GetCreator()` function with cert data? I'd like to recompute it in python for owner checks in my app. I have access to .pem and cert/key files of my user, but I do not know how to translate it in python. Can someone point me in the right direction, thanks :)

sheetal-hlf (Thu, 30 Aug 2018 09:44:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v33CjFDnsWYGMcdNM) @Rachit_gaur I get the same error when anchor peers are used to invoke the chaincode; how is the suitable peers info passed/available to gossip for propagating private data?

mharris (Thu, 30 Aug 2018 09:44:54 GMT):
Has joined the channel.

gut (Thu, 30 Aug 2018 09:57:57 GMT):
Which is the way (where can I start searching) to have a ARM client calling Fabric? I feel like I'm going to experience problems with SDK calls to GRPC

WouterVanHecke (Thu, 30 Aug 2018 10:01:48 GMT):
If I save a key-value pair in couchdb, is there a way to see with user is the creator of that object?

dave.enyeart (Thu, 30 Aug 2018 10:52:15 GMT):
@WouterVanHecke In your chaincode you can indeed get the creator identity and attributes, see: https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid

dave.enyeart (Thu, 30 Aug 2018 10:52:18 GMT):
And then you would put those into the JSON that is saved in state database.

rajanashutosh (Thu, 30 Aug 2018 10:57:30 GMT):
@dave.enyeart Is it best practice or suggestible to invoke QSCC chaincode in order to retrieve block information from another chaincode or its meant only to be invoked by SDKs We are facing weird issue where if in case we try to retrieve information from API using Java sdk to interact with qscc directly we are getting Qscc chaincode exit timed-out.

dave.enyeart (Thu, 30 Aug 2018 11:00:47 GMT):
you shouldn't need another chaincode to invoke QSCC, you should be able to invoke directly from SDK

rajanashutosh (Thu, 30 Aug 2018 11:14:06 GMT):
@dave.enyeart thanks for the response! But when we are retrieving the information we are making additional calculation to calculate the current block hash as per the Util methods available in all SDK. But before connecting to peer for invoking we get a channel shutdown request and Qscc gets timed out

dave.enyeart (Thu, 30 Aug 2018 11:14:52 GMT):
channel shutdown request on client sdk side?

rajanashutosh (Thu, 30 Aug 2018 11:22:43 GMT):
In container logs i am getting it and in client side as well.

rajanashutosh (Thu, 30 Aug 2018 11:23:40 GMT):
but it happens only in the call of qscc chaincode whereas other chaincodes are working properly.

dave.enyeart (Thu, 30 Aug 2018 11:55:18 GMT):
@rajanashutosh remind me, is there a jira open? what release are you on?

rajanashutosh (Thu, 30 Aug 2018 12:10:32 GMT):
@dave.enyeart No, I haven't opened a ticket, now going to do it. We are working on with fabric 1.2

dave.enyeart (Thu, 30 Aug 2018 12:12:22 GMT):
@rajanashutosh this is probably the same issue as https://jira.hyperledger.org/browse/FAB-11720 , why don't you start by adding a comment there with your details

rajanashutosh (Thu, 30 Aug 2018 12:13:35 GMT):
@dave.enyeart yes its similiar to ours. We would add logs to the comment and provide you with details

dave.enyeart (Thu, 30 Aug 2018 12:14:30 GMT):
thanks, additionally if you can catch the peer in this state, `kill -SIGABRT` will generate a stack trace that will help us

npc0405 (Thu, 30 Aug 2018 12:16:34 GMT):
How to add private data collection file through api of instantiate chaincode

dave.enyeart (Thu, 30 Aug 2018 12:16:55 GMT):
are you using CLI or an SDK?

npc0405 (Thu, 30 Aug 2018 12:17:27 GMT):
I tried with CLI it works

npc0405 (Thu, 30 Aug 2018 12:17:34 GMT):
I need it through SDK

dave.enyeart (Thu, 30 Aug 2018 12:17:40 GMT):
which SDK?

npc0405 (Thu, 30 Aug 2018 12:17:44 GMT):
nodeSDK

dave.enyeart (Thu, 30 Aug 2018 12:18:11 GMT):
have you read: https://fabric-sdk-node.github.io/tutorial-private-data.html

npc0405 (Thu, 30 Aug 2018 12:19:48 GMT):
Ok let me check

rajanashutosh (Thu, 30 Aug 2018 12:20:35 GMT):
@dave.enyeart Added comment https://jira.hyperledger.org/browse/FAB-11720?focusedCommentId=49608&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-49608

rajanashutosh (Thu, 30 Aug 2018 12:40:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LH3WQWZzteEa9ZxaA) @dave.enyeart @dave.enyeart, where exactly i need to execute this command for which process? we tried it within peer and chaincode container but there is no go pid is available.

dave.enyeart (Thu, 30 Aug 2018 12:46:40 GMT):
for the peer process itself

dave.enyeart (Thu, 30 Aug 2018 12:46:49 GMT):
not the chaincode container

npc0405 (Thu, 30 Aug 2018 13:07:19 GMT):
@dave.enyeart I could able to provide the file; but instantiation fails, with no proper info about failure Any idea about this? [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-08-30 13:04:51.886] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-08-30 13:04:51.887] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-08-30 13:04:51.887] [DEBUG] instantiate-chaincode - Failed to send Proposal and receive all good ProposalResponse [2018-08-30 13:04:51.887] [ERROR] instantiate-chaincode - Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:16595) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse

npc0405 (Thu, 30 Aug 2018 13:08:22 GMT):
Shall I increase the wait time?

DayalMukati (Thu, 30 Aug 2018 13:08:48 GMT):
Has joined the channel.

dave.enyeart (Thu, 30 Aug 2018 13:10:41 GMT):
@npc0405 check peer log to see if an error is reported on peer side

dave.enyeart (Thu, 30 Aug 2018 13:11:56 GMT):
@bretharrison does node sdk not log the underlying error that comes back from an instantiate failure?

dave.enyeart (Thu, 30 Aug 2018 13:11:56 GMT):
@bretharrison does node sdk not log the underlying error that comes back from an instantiate failure? Or do you suspect something else going on here?

bretharrison (Thu, 30 Aug 2018 13:11:59 GMT):
Has joined the channel.

rajanashutosh (Thu, 30 Aug 2018 13:18:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cqffcWwBGydsb3wZs) @dave.enyeart Thanks Dave. Once retrieved i shall update in my comments in the Jira ticket.

dave.enyeart (Thu, 30 Aug 2018 13:18:49 GMT):
yes, let's keep all communication and artifacts in the jira ticket so that it is well tracked

alpha 32 (Thu, 30 Aug 2018 13:30:57 GMT):
Can anyone help me?Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: access denied: channel [] creator org [Org1MSP] Command failed

alpha 32 (Thu, 30 Aug 2018 13:31:26 GMT):
is it a problem with the connection.json?

lepar (Thu, 30 Aug 2018 13:50:36 GMT):
@alpha 32 You're using the wrong MSP for the transaction. Maybe pointing to the wrong Port?

alpha 32 (Thu, 30 Aug 2018 13:51:25 GMT):
maybe D:

alpha 32 (Thu, 30 Aug 2018 14:00:00 GMT):
no, checked that

alpha 32 (Thu, 30 Aug 2018 14:00:15 GMT):
im trying to deploy the example network in the documentation

lepar (Thu, 30 Aug 2018 14:02:43 GMT):
What's the link? There's a lot of examples there

lepar (Thu, 30 Aug 2018 14:03:10 GMT):
Which example?

alpha 32 (Thu, 30 Aug 2018 14:04:30 GMT):
https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-single-org

alpha 32 (Thu, 30 Aug 2018 14:04:37 GMT):
the single organization deployment

alpha 32 (Thu, 30 Aug 2018 14:05:35 GMT):
i would thank a lot if anyone can check if it works.

alpha 32 (Thu, 30 Aug 2018 14:06:23 GMT):
The ports are correctly listening:

alpha 32 (Thu, 30 Aug 2018 14:06:24 GMT):
tcp6 0 0 :::7050 :::* LISTEN 22650/docker-proxy tcp6 0 0 :::7051 :::* LISTEN 22894/docker-proxy tcp6 0 0 :::7053 :::* LISTEN 22875/docker-proxy tcp6 0 0 :::7054 :::* LISTEN 22495/docker-proxy

alpha 32 (Thu, 30 Aug 2018 14:06:47 GMT):
i shouldn't be getting errors, its very straight forward to follow the tutorial

lepar (Thu, 30 Aug 2018 14:19:19 GMT):
You're using composer?

alpha 32 (Thu, 30 Aug 2018 14:23:13 GMT):
yes

alpha 32 (Thu, 30 Aug 2018 14:23:46 GMT):
i followed the tutorial inside a virtual machine

alpha 32 (Thu, 30 Aug 2018 14:24:09 GMT):
i didnt recreate the certs

alpha 32 (Thu, 30 Aug 2018 14:24:19 GMT):
just used the ones given in the repo as an example

lepar (Thu, 30 Aug 2018 14:24:21 GMT):
Oh, I don't know composer, it hides too much information. I've been working with docker images

lepar (Thu, 30 Aug 2018 14:24:46 GMT):
But from my experience that's MSP error, I've had it before

alpha 32 (Thu, 30 Aug 2018 14:24:47 GMT):
but composer is just about the chaincode definition

alpha 32 (Thu, 30 Aug 2018 14:25:06 GMT):
im in the part of deploying the fabric network

lepar (Thu, 30 Aug 2018 14:25:37 GMT):
What step is it?

alpha 32 (Thu, 30 Aug 2018 14:30:03 GMT):
the installation of the network

alpha 32 (Thu, 30 Aug 2018 14:30:08 GMT):
composer network install

alpha 32 (Thu, 30 Aug 2018 14:30:18 GMT):
after the creation of the admin card

bretharrison (Thu, 30 Aug 2018 14:32:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qtfvEZfjJZQRzAPMx) @dave.enyeart The response from the peer will contain why the proposal was bad also looking at the peer logs may help

dave.enyeart (Thu, 30 Aug 2018 15:14:22 GMT):
@bretharrison ok, so response from peer will contain underlying peer error message, will node sdk automatically log this, or does client application have to pull that out and inspect it themselves?

dave.enyeart (Thu, 30 Aug 2018 15:15:23 GMT):
excuse my ignorance of node sdk error logging in general...

bretharrison (Thu, 30 Aug 2018 15:53:40 GMT):
The application will need to look at the peer's response message, which will be an `Error` object if there is an issue rather than an endorsement.

DattaPatil (Thu, 30 Aug 2018 16:54:46 GMT):
HI All,

DattaPatil (Thu, 30 Aug 2018 16:55:17 GMT):
Does Ubuntu 18.04 supports for Hyperledger Fabric and Composer?

jvsclp (Thu, 30 Aug 2018 17:30:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rZZFhqNAJQKbdXQD4) @DattaPatil Yes

qizhang (Thu, 30 Aug 2018 18:52:10 GMT):
I tried to replace peer in Fabric v1.2 network with a newly built peer from Fabric v1.1, an error `incompatible Application capability V1_2 is required but not supported` occurred when the peer joins the channel. Anyone thought? Thanks!

qizhang (Thu, 30 Aug 2018 18:52:10 GMT):
I tried to replace a peer in Fabric v1.2 network with a newly built peer from Fabric v1.1, an error `incompatible Application capability V1_2 is required but not supported` occurred when the peer joins the channel. Anyone thought? Thanks!

qizhang (Thu, 30 Aug 2018 18:52:10 GMT):
I tried to replace a peer in Fabric v1.2 network with a newly built peer from Fabric v1.1, but an error `incompatible Application capability V1_2 is required but not supported` occurred when the peer joins the channel. Anyone thought? Thanks!

gregmarlin (Thu, 30 Aug 2018 20:08:24 GMT):
Has joined the channel.

DK (Thu, 30 Aug 2018 22:54:48 GMT):
Has joined the channel.

LinuxLearner1 (Fri, 31 Aug 2018 00:54:44 GMT):
Hi guys, burning question. Is there any benefit to using Go for programming in Hyperledger instead of Hyperledger Composer?

flyerwing (Fri, 31 Aug 2018 03:15:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fKwQNPL764uATpJbA) @LinuxLearner1 Fabric is developed through golang. so if you want do some kernel development, you must use golfing. But, you can choose fabric sdk to use golang or java to compose your application.

yoheiueda (Fri, 31 Aug 2018 04:08:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ofBvSiZE765L9SQDX) @qizhang @qizhang please check whether V1_2 is defined under Capabilities in your configtx.yaml. If so, change it to V1_1, and regenerate your genesis block and channel tx files.

Rachit_gaur (Fri, 31 Aug 2018 06:52:58 GMT):
I

Rachit_gaur (Fri, 31 Aug 2018 06:54:04 GMT):
I'd like to backtrace from my latest transaction such that i can get all the status of previous transaction, How can i do this?

vineetmishra (Fri, 31 Aug 2018 07:10:48 GMT):
Hi guys, i am having issue while setup ldap with fabric ca

vineetmishra (Fri, 31 Aug 2018 07:11:16 GMT):
while hitting at "docker exec 0c69db8d1484 fabric-ca-client enroll –u https://cn=admin,dc=example:admin@localhost:7054"

vineetmishra (Fri, 31 Aug 2018 07:11:41 GMT):

Clipboard - August 31, 2018 12:41 PM

vineetmishra (Fri, 31 Aug 2018 07:12:01 GMT):
someone could help me

Akash-digiledge (Fri, 31 Aug 2018 07:13:57 GMT):
hi am using fabric version 1.1. For getting events am using channel-eventhub. by using registerChaincodeEvent am getting the eventname and txnId but not getting the payload. can any one help me to find out the problem?

npc0405 (Fri, 31 Aug 2018 07:37:11 GMT):
Any idea? where chaincode is kept after chaincode is installed to take it further while instantiate. I am trying to upload collection-config file in request while instantiate. and its throwing error while doing so. I checked peer log and it gives error somewhere.. "simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: fbb3bfd451a2f59ddca7a141a8ad30efe3a49ce6628125d6005f9289b46908bf"

yoheiueda (Fri, 31 Aug 2018 08:02:29 GMT):
Hi. I have a question about leader election mechanism of peer. Is there any way to determine which peer is the current org leader? Does service discovery provide such information?

yacovm (Fri, 31 Aug 2018 08:15:01 GMT):
no, it does not @yoheiueda

yoheiueda (Fri, 31 Aug 2018 08:15:35 GMT):
I see. Thank you!

Unni_1994 (Fri, 31 Aug 2018 08:57:38 GMT):
Can somebody explain required peer count field in private data collection definition?

dave.enyeart (Fri, 31 Aug 2018 09:12:12 GMT):
@Unni_1994 It is the number of other peers that an endorser peer must disseminate private data to, it is explained fairly well in these docs:

dave.enyeart (Fri, 31 Aug 2018 09:12:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

sheetal-hlf (Fri, 31 Aug 2018 09:18:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KQzASZAHcazgGt3oJ) @Akash-digiledge did you try setting full-block to true while connecting to event hub eventHub.connect(true)?

alpha 32 (Fri, 31 Aug 2018 09:47:33 GMT):
Got a ssl error when doing "composer network install"

alpha 32 (Fri, 31 Aug 2018 09:47:35 GMT):
⠙ Installing business network. This may take a minute...E0831 11:46:12.070255588 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0831 11:46:12.072661361 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0831 11:46:12.072832671 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0831 11:46:12.072999936 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠹ Installing business network. This may take a minute...E0831 11:46:12.187478208 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0831 11:46:12.192208561 19048 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed

alpha 32 (Fri, 31 Aug 2018 09:47:49 GMT):
does anyone know what should i check?

alpha 32 (Fri, 31 Aug 2018 09:48:01 GMT):
is it the connection.json that is wrong?

Rachit_gaur (Fri, 31 Aug 2018 09:52:50 GMT):
i am not able to cut blocks with more than 1 transaction even with updated orderer settings..Can someone help?

Mahadream (Fri, 31 Aug 2018 10:20:49 GMT):
Hi guys , any open source available for chat room application in hyperledger

Rachit_gaur (Fri, 31 Aug 2018 10:42:33 GMT):
block is created after every transaction even when the orderer settings are modified to support more size and timeouts Can someone help me with this?

Sahith (Fri, 31 Aug 2018 11:45:44 GMT):
Has joined the channel.

gravity (Fri, 31 Aug 2018 12:29:03 GMT):
Hi all If I use orderer1 to create channel1, can I add orderer2 to channel1 during channel initialization?

Javi (Fri, 31 Aug 2018 12:52:09 GMT):
what version of docker is recommended to install fabric?

jvsclp (Fri, 31 Aug 2018 14:18:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PNsMjLyiexYLzPAJP) @Javi The information you are looking for is here: https://hyperledger-fabric.readthedocs.io/en/release-1.2/prereqs.html

bandreghetti (Fri, 31 Aug 2018 14:28:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Yur2d6vBAPg5H6pKA) @Rachit_gaur can you show us your `config.tx` file?

PradeepC (Fri, 31 Aug 2018 14:42:01 GMT):
Has joined the channel.

nfrunza (Fri, 31 Aug 2018 16:24:20 GMT):
Has left the channel.

Mari499 (Fri, 31 Aug 2018 16:31:57 GMT):
Hi All, I'm assuming this is the best place to ask - does anyone know of any agriculture/food supply chain use cases being worked on? Please point me in another direction if that is best. Thanks!

Javi (Fri, 31 Aug 2018 17:51:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pPfaKzSuCodo8vJBF) @jvsclp thanks!

mhamzawey (Fri, 31 Aug 2018 21:31:42 GMT):
Has joined the channel.

mhamzawey (Fri, 31 Aug 2018 21:32:21 GMT):
Hello guys, I was wondering how to get started with Fabric to contribute to the code-base? can anyone help me here to get started?

parsiya (Sat, 01 Sep 2018 00:33:42 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/CONTRIBUTING.html

flyerwing (Sat, 01 Sep 2018 03:19:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LGKeSPuRCFudTyuCG) @Mari499 cfc.taiyiyun.com

Ryan2 (Sat, 01 Sep 2018 03:53:49 GMT):
Hi, I faced the issue as when I start binary orderer by cmd `/opt/gopath/src/github.com/hyperledger/fabric/build/bin/orderer start` the Orderer was started normally. But when I set that command into crontab, orderer could not be started, with the error `[31m2018-09-01 03:47:01.235 UTC [orderer/common/server] Main -> ERRO 001ESC[0m failed to parse config: Error reading configuration: Unsupported Config Type ""` Same issue for starting peer in crontab Can someone help me.

Ryan2 (Sat, 01 Sep 2018 03:53:49 GMT):
Hi, I faced the issue as when I start binary orderer by cmd `/opt/gopath/src/github.com/hyperledger/fabric/build/bin/orderer start` the Orderer was started normally. But when I set that command into `crontab`, `orderer could not be started`, with the error `[31m2018-09-01 03:47:01.235 UTC [orderer/common/server] Main -> ERRO 001ESC[0m failed to parse config: Error reading configuration: Unsupported Config Type ""` Same issue for starting peer in crontab Can someone help me.

Smit95shah (Sat, 01 Sep 2018 08:06:58 GMT):
May I know, what exactly is this key `FABRIC_CA_SERVER_CA_KEYFILE` in `docker-compose.yaml` file

knagware9 (Sat, 01 Sep 2018 09:14:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZdEsDDbuBaoqp9dxu) @Smit95shah its private key of CA for particular org

MohammedR (Sat, 01 Sep 2018 11:12:52 GMT):
Hii, i just install fabric with kafka, i am able to install chaincode on peer but while instantiation i'm getting following error, Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 9f41cf3f74cef1375a405bdbbb92a1f656916f815b6adb49023db1e17dddfe7d: timeout expired while starting chaincode test1:1.0 for transaction 9f41cf3f74cef1375a405bdbbb92a1f656916f815b6adb49023db1e17dddfe7d

MohammedR (Sat, 01 Sep 2018 11:13:08 GMT):
can someone help me

shakti.pallai (Sat, 01 Sep 2018 11:13:51 GMT):
Has joined the channel.

MohammedR (Sat, 01 Sep 2018 11:16:52 GMT):

docker-compose.txt

MohammedR (Sat, 01 Sep 2018 11:16:53 GMT):

kafka-base.txt

Smit95shah (Sat, 01 Sep 2018 13:08:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4CJe9exkXszqiiyT8) @knagware9 Thanks for the response.

Smit95shah (Sat, 01 Sep 2018 13:08:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4CJe9exkXszqiiyT8) @knagware9 Thanks for the response. Is there a way to create dynamically or how is it created?

Smit95shah (Sat, 01 Sep 2018 13:09:26 GMT):
May I know, how does the directory thing works? i.e wht is everthing inside github.com directory and chaincode?

sureshtedla (Sat, 01 Sep 2018 13:39:22 GMT):
Can any one explain how to setup fabric on diferent computers and how they are interact with each other @jeevas

jeevas (Sat, 01 Sep 2018 13:39:22 GMT):
Has joined the channel.

Mari499 (Sat, 01 Sep 2018 14:30:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sbL2dK3jdsiGaWtYg) @flyerwing Thank you! Do you work on this project? Since I cannot read the website it would be great to connect with someone in English to discuss the work

Seachlainn (Sun, 02 Sep 2018 11:19:40 GMT):
Has joined the channel.

Jgnuid (Sun, 02 Sep 2018 13:57:02 GMT):
Has joined the channel.

GiovanniNapoli (Sun, 02 Sep 2018 14:15:43 GMT):
Has joined the channel.

GiovanniNapoli (Sun, 02 Sep 2018 14:17:41 GMT):
Hi all, i'm really new with HF and the following may be a very dumb question but...What if I want to change the Hash Function scheme used by default by HF? For instance, if the scheme is SHA256, how can i change it to SHA512?

knagware9 (Sun, 02 Sep 2018 15:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eud3q3nF8sA46B5D3) @Smit95shah its created using cryptogen tool,,we can create dynamically using fabric-ca

aatkddny (Sun, 02 Sep 2018 15:36:44 GMT):
So if I restart a kafka cluster which was configured with non persistent storage and then restart the orderer with persistent storage it starts throwing these ``` 2018-09-02 15:33:59.201 UTC [orderer/consensus/kafka] try -> DEBU 26e [channel: genesischannel] Connecting to the Kafka cluster 2018-09-02 15:33:59.203 UTC [orderer/consensus/kafka] try -> DEBU 26f [channel: genesischannel] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. ``` Is there a way to fix this that doesn't involve wiping my ledger?

aatkddny (Sun, 02 Sep 2018 15:36:44 GMT):
So if I restart a kafka cluster which was configured with non persistent storage and then restart the orderer it starts throwing these ``` 2018-09-02 15:33:59.201 UTC [orderer/consensus/kafka] try -> DEBU 26e [channel: genesischannel] Connecting to the Kafka cluster 2018-09-02 15:33:59.203 UTC [orderer/consensus/kafka] try -> DEBU 26f [channel: genesischannel] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. ``` Is there a way to fix this that doesn't involve wiping my ledger?

yacovm (Sun, 02 Sep 2018 15:57:50 GMT):
@aatkddny ask in #fabric-orderer

yacovm (Sun, 02 Sep 2018 15:57:54 GMT):
in case you haven't...

aatkddny (Sun, 02 Sep 2018 16:00:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZaKjbdshmzRhiGPMB) @yacovm I didn't even look in the directory to see if fabric-orderer existed... I'll copy it there. Thx.

yacovm (Sun, 02 Sep 2018 16:07:00 GMT):
No worries!

aatkddny (Sun, 02 Sep 2018 16:31:10 GMT):
And here's another gem I just found. I'm wondering if there's a fix for this one or if I just did something wrong. Can anyone comment if they ran across this before? If you create a channel and then have to reconstitute all your peers you can't do anything. You can't reinstall chaincode on the peers because they give you a channel does not exist message. ``` 2018-09-02 16:21:27.031 UTC [protoutils] ValidateProposalMessage -> WARN 2bb channel [zzz-yyy-channel]: MSP error: channel doesn't exist 2018-09-02 16:21:27.031 UTC [endorser] ProcessProposal -> DEBU 2bc Exit: request from 192.168.65.3:36954 2018-09-02 16:21:27.369 UTC [common/deliverevents] Deliver -> DEBU 2bd Starting new Deliver handler 2018-09-02 16:21:27.369 UTC [common/deliver] Handle -> DEBU 2be Starting new deliver loop for 192.168.65.3:36994 2018-09-02 16:21:27.369 UTC [common/deliver] Handle -> DEBU 2bf Attempting to read seek info message from 192.168.65.3:36994 2018-09-02 16:21:27.369 UTC [common/deliver] deliverBlocks -> DEBU 2c0 Rejecting deliver for 192.168.65.3:36994 because channel zzz-yyy-channel not found ``` One can't recreate the channel (because the orderers think it's there). So the whole thing is stuck in this strange limbo. Delete and start over is sort of ok for test, but I'm not sure it'll go over so well if this happens live. Is there a clever fix, or did I just mess something up?

yacovm (Sun, 02 Sep 2018 16:33:12 GMT):
I don't see what's the problem @aatkddny ... if you wipe out your peers but still have the orderer, just join them to the channel

cloudgate313 (Sun, 02 Sep 2018 17:00:26 GMT):
Has joined the channel.

Miruthan (Sun, 02 Sep 2018 17:19:24 GMT):
How to open see worldstate in Couch DB?

Miruthan (Sun, 02 Sep 2018 17:19:55 GMT):
How to connect CouchDB and view the transaction ?

dave.enyeart (Sun, 02 Sep 2018 17:40:24 GMT):
If you are using a CouchDB docker container, you can expose the port to the host like as shown here:

dave.enyeart (Sun, 02 Sep 2018 17:40:26 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/docker-compose-couch.yaml#L23

dave.enyeart (Sun, 02 Sep 2018 17:40:44 GMT):
and then bring up the Fauxton couchdb UI at http://localhost:5984/_utils/#

Miruthan (Sun, 02 Sep 2018 17:45:30 GMT):
I deployed in IBP. I am not able find details.

hypere (Sun, 02 Sep 2018 21:17:32 GMT):
how can i improve my TPS rate or maintain my tps with a growing network? does adding more endorser at each org help?

yacovm (Sun, 02 Sep 2018 21:25:11 GMT):
your TPS is as large as your bottleneck... so if your bottleneck is the endorsement then yes.

zshwei (Mon, 03 Sep 2018 02:10:45 GMT):
with the cryptogen tool I can generate materials to boots up a network. What does the admincers in a User folder administrates? For instance, crypto-config/peerOrganizations/org2.umarkcloud.com/users/User11@org2.umarkcloud.com/msp/admincerts

hypere (Mon, 03 Sep 2018 02:56:03 GMT):
is there a guide on how to design a multi-channel network? I know that a poorly designed multi channel network has the potential the complicate things so I am just wondering if there anything that i can reference

VenkataY (Mon, 03 Sep 2018 03:31:23 GMT):
Has joined the channel.

VenkataY (Mon, 03 Sep 2018 03:33:12 GMT):
Hi Experts, Pls let me know if any example or material on private data collection in hyperledger fabric.

AlfredChen (Mon, 03 Sep 2018 03:33:47 GMT):
Has joined the channel.

AlfredChen (Mon, 03 Sep 2018 03:33:50 GMT):
Hello everyone, I would like to ask about the development of an application with Hyperledger Fabric, then what is the architecture of this application compared to the traditional Internet?

flyerwing (Mon, 03 Sep 2018 03:38:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=j8zRGCePxcq4yEuT7) @AlfredChen A application communicate with the chain code , and chain code will access the fabric network.

AlfredChen (Mon, 03 Sep 2018 03:39:57 GMT):
How should the data be maintained? Where is the data placed?

atiffarrukh (Mon, 03 Sep 2018 04:34:59 GMT):
hello everyone, is it possible to retain/query data after upgrading my chaincode, using NodeJS SDK?

Rachit_gaur (Mon, 03 Sep 2018 05:10:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2pASrGbaaKM9tewJ3) @bandreghetti These are my orderer settings..Yet only one transaction is making a block BatchTimeout: 50s BatchSize: MaxMessageCount: 200 AbsoluteMaxBytes: 120 PreferredMaxBytes: 40 MB

midhun14 (Mon, 03 Sep 2018 06:17:51 GMT):
Does anyone know where the service discovery process is being executed?

BhavathiReddy (Mon, 03 Sep 2018 06:40:36 GMT):
I need to create persistent volumes for chain codes and peers such that even if the containers are stopped the ledger data persists. The volumes created originally get deleted when you do "byfn.sh down". I tried commenting out the "--volume" from "docker-compose -f $COMPOSE_FILE down --volumes". But the volume (as well as container image) created for chaincode has a randomly assigned name every time (e.g.: volume->d374fb6be0b15f2eeb820fe1b15599943198983755e423659ce1f9f39f510825 and image ->dev-peer0.org1.example.com-idp8-1.0-0a00cb0e7a230bbc7fd65c97905c6a192d5f8572a0d29f573ea0756bb77f974c. So every time I start the network again it ends up creating a new volume instead of loading from the preexisting one. How do I fix this?

BhavathiReddy (Mon, 03 Sep 2018 06:40:36 GMT):
I need to create persistent volumes for chain codes and peers such that even if the containers are stopped the ledger data persists. The volumes created originally get deleted when you do "byfn.sh down". I tried commenting out the "--volume" from "docker-compose -f $COMPOSE_FILE down --volumes". But the volume (as well as container image) created for chaincode has a randomly assigned name every time (e.g.: volume->d374fb6be0b15f2eeb820fe1b15599943198983755e423659ce1f9f39f510825 and image ->dev-peer0.org1.example.com-idp8-1.0-0a00cb0e7a230bbc7fd65c97905c6a192d5f8572a0d29f573ea0756bb77f974c. So every time I start the network again it ends up creating a new volume instead of loading from the preexisting one. How do I fix this?

BhavathiReddy (Mon, 03 Sep 2018 06:40:36 GMT):
I need to create persistent volumes for chain codes and peers such that even if the containers are stopped the ledger data persists. The volumes created originally get deleted when you do "byfn.sh down". I tried commenting out the "--volume" from "docker-compose -f $COMPOSE_FILE down --volumes". But the volume (as well as container image) created for chaincode has a randomly assigned name every time (e.g.: volume->d374fb6be0b15f2eeb820fe1b15599943198983755e423659ce1f9f39f510825 and image ->dev-peer0.org1.example.com-idp8-1.0-0a00cb0e7a230bbc7fd65c97905c6a192d5f8572a0d29f573ea0756bb77f974c. So every time I start the network again it ends up creating a new volume instead of loading from the preexisting one. Also it ends up giving error "readset expected key [Group] /Channel/Application at version 0, but got version 1". How do I fix this?

BhavathiReddy (Mon, 03 Sep 2018 06:40:36 GMT):
Hi everyone, I need a little help with the fabric code. I need to create persistent volumes for chain codes and peers such that even if the containers are stopped the ledger data persists. The volumes created originally get deleted when you do "byfn.sh down". I tried commenting out the "--volume" from "docker-compose -f $COMPOSE_FILE down --volumes". But the volume (as well as container image) created for chaincode has a randomly assigned name every time (e.g.: volume->d374fb6be0b15f2eeb820fe1b15599943198983755e423659ce1f9f39f510825 and image ->dev-peer0.org1.example.com-idp8-1.0-0a00cb0e7a230bbc7fd65c97905c6a192d5f8572a0d29f573ea0756bb77f974c. So every time I start the network again it ends up creating a new volume instead of loading from the preexisting one. Also it ends up giving error "readset expected key [Group] /Channel/Application at version 0, but got version 1". How do I fix this?

BhavathiReddy (Mon, 03 Sep 2018 06:40:36 GMT):
Hi everyone, I need a little help with the fabric code. I need to create persistent volumes for chain codes and peers such that even if the containers are stopped the ledger data persists. The volumes created originally get deleted when you do "byfn.sh down". I tried commenting out the "--volume" from "docker-compose -f $COMPOSE_FILE down --volumes". But the volume (as well as container image) created for chaincode has a randomly assigned name every time (e.g.: volume->d374fb6be0b15f2eeb820fe1b15599943198983755e423659ce1f9f39f510825 and image ->dev-peer0.org1.example.com-idp8-1.0-0a00cb0e7a230bbc7fd65c97905c6a192d5f8572a0d29f573ea0756bb77f974c. So every time I start the network again it ends up creating a new volume instead of loading from the preexisting one. Also it ends up giving error "readset expected key [Group] /Channel/Application at version 0, but got version 1". Also unlike the peers, orderers and ca, the configuration for the chaincode seems to be hidden off somewhere. I couldn't find it in any of the docker-compose files. And since it's originally created by a peer, I'm assuming it's hidden away in some executable? I'm not sure though. Any leads here? Thanks in advance!

zshwei (Mon, 03 Sep 2018 06:58:44 GMT):
@atiffarrukh By "data" I assumed you are talking about the Key/Value pairs in the ledger, if it is true, then the answer is yes. Chaincode is just an interface to read/write/delete those key/value pairs. If you fix an issue, add functions or any other logic changes in the chaincode etc, all data in the ledger are retained and of course available for query.

Subhankar 3 (Mon, 03 Sep 2018 07:10:41 GMT):
@BhavathiReddy for persistence you need to map the host volume with the docker. Following volumes should be maped for each zk: volumes: /var/hyperledger/zk{number}/data:/data /var/hyperledger/zk{number}/datalog:/datalog for each kafka: volumes: /var/hyperledger/kafka{number}:/tmp/kafka-logs for each peer: volumes: /var/hyperledger/peer{number}/org{number}:/var/hyperledger/production i ues the couchdb to store the data,so i map the data to the host also volumes: /var/hyperledger/couchdb{number}:/opt/couchdb/data

Subhankar 3 (Mon, 03 Sep 2018 07:10:41 GMT):
@BhavathiReddy for persistence you need to map the host volume with the docker. Following volumes should be maped for each zk: volumes: /var/hyperledger/zk{number}/data:/data /var/hyperledger/zk{number}/datalog:/datalog for each kafka: volumes: /var/hyperledger/kafka{number}:/tmp/kafka-logs for each peer: volumes: /var/hyperledger/peer{number}/org{number}:/var/hyperledger/production i ues the couchdb to store the data,so i map the data to the host also volumes: /var/hyperledger/couchdb{number}:/opt/couchdb/data

Subhankar 3 (Mon, 03 Sep 2018 07:10:41 GMT):
@BhavathiReddy for persistence you need to map the host volume with the docker. Following volumes should be maped for each zk: volumes: /var/hyperledger/zk{number}/data:/data /var/hyperledger/zk{number}/datalog:/datalog for each kafka: volumes: /var/hyperledger/kafka{number}:/tmp/kafka-logs for each peer: volumes: /var/hyperledger/peer{number}/org{number}:/var/hyperledger/production i use the couchdb to store the data,so i map the data to the host also volumes: /var/hyperledger/couchdb{number}:/opt/couchdb/data

Subhankar 3 (Mon, 03 Sep 2018 07:10:41 GMT):
@BhavathiReddy for persistence we need to map the host volume with the docker. Following volumes should be maped for each zk: volumes: /var/hyperledger/zk{number}/data:/data /var/hyperledger/zk{number}/datalog:/datalog for each kafka: volumes: /var/hyperledger/kafka{number}:/tmp/kafka-logs for each peer: volumes: /var/hyperledger/peer{number}/org{number}:/var/hyperledger/production i use the couchdb to store the data,so i map the data to the host also volumes: /var/hyperledger/couchdb{number}:/opt/couchdb/data

bhemeswararaoankireddy (Mon, 03 Sep 2018 07:19:36 GMT):
Has joined the channel.

bhemeswararaoankireddy (Mon, 03 Sep 2018 07:23:36 GMT):
composer network start --networkName student-business- network.bna --networkVersion 0.0.2-deploy.4 --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpworkName student-businStarting business network student-business-network.bna at version 0.0.2-deploy.4 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: invalid chaincode name 'student-business-network.bna'. Names can only consist of alphanumerics, '_', and '-' Command failed

bhemeswararaoankireddy (Mon, 03 Sep 2018 07:24:01 GMT):
how to resolve it

ManriqueGarcia (Mon, 03 Sep 2018 07:29:50 GMT):
Has joined the channel.

BhavathiReddy (Mon, 03 Sep 2018 07:47:53 GMT):
@Subhankar 3 I have mapped the peers. I don't have any Kafka orderers. What is a zk? Also don't I have to map the chaincode process to its volume?

BhavathiReddy (Mon, 03 Sep 2018 07:48:37 GMT):
@Subhankar 3 I'm getting this error despite all mappings: "readset expected key [Group] /Channel/Application at version 0, but got version 1"

BhavathiReddy (Mon, 03 Sep 2018 07:48:37 GMT):
@Subhankar 3 I'm getting this error despite all mappings: "readset expected key [Group] /Channel/Application at version 0, but got version 1"

BhavathiReddy (Mon, 03 Sep 2018 07:48:37 GMT):
@Subhankar 3 I'm getting this error despite all mappings: "readset expected key [Group] /Channel/Application at version 0, but got version 1" I think it means when I try to start the chaincode, it's looking for the ledger at state zero, but the restarted peers have ledgers at state 1.

atiffarrukh (Mon, 03 Sep 2018 07:50:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iX3aAeMoGvZKYtW7F) @zshwei your assumption is correct, but the problem is when i install and upgrade chaincode and then query the data that I inserted in the previous version, i get an empty response payload.

nalinikatiyar (Mon, 03 Sep 2018 08:09:01 GMT):
Has joined the channel.

nalinikatiyar (Mon, 03 Sep 2018 08:11:18 GMT):
#fabric-questions error while running the script ./byfn up``` ```

nalinikatiyar (Mon, 03 Sep 2018 08:12:31 GMT):
#fabric-questions error while running ./byfn up command``` /bin/bash: scripts/script.sh: Permission denied ERROR !!!! Test failed```

atiffarrukh (Mon, 03 Sep 2018 08:34:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3PjPmc4rkLGmhjjSn) @nalinikatiyar log in as root or make sure your scripts have the permission so that it can execute

bhemeswararaoankireddy (Mon, 03 Sep 2018 08:55:13 GMT):
✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: cannot get package for chaincode (student-network:0.0.2) Command failed

bhemeswararaoankireddy (Mon, 03 Sep 2018 08:55:30 GMT):
any one help me

nalinikatiyar (Mon, 03 Sep 2018 09:04:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7wWhPakHM3jz3FEnp) @atiffarrukh @atiffarrukh i was the super user and the script file had all the permissions ....... do we need to set any docker path to access the script.sh file

Akash-digiledge (Mon, 03 Sep 2018 09:10:33 GMT):
Can any one tell me how to invoke the system chaincode? please explain me with one example...any reply will be appreciated..

StefanKosc (Mon, 03 Sep 2018 09:16:19 GMT):
Hi, is there a way to query parameters which were used with chaincodes' functions calls? Perfect result would be to receive a list of transactions with parameters of functions that caused changes

atiffarrukh (Mon, 03 Sep 2018 09:16:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pWBKCktxj47eZwYy2) @nalinikatiyar no, we dont need to set any path for script.sh. can you run the script directly?

atiffarrukh (Mon, 03 Sep 2018 09:17:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d3SFqwd7pPX5PxX8Q) Fixed it, my issue was while upgrading the chaincode I wasn't providing any "fcn" so it would by default call "Init" function, initiating the whole ledger.

nalinikatiyar (Mon, 03 Sep 2018 09:18:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SQtoLKGGG8i3ovteh) @atiffarrukh yes

nalinikatiyar (Mon, 03 Sep 2018 09:34:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kn2LTSiwAzRPp89KD) if i copy the fabric-samples file to bin and then run the command ./byfn up it is running fwith the error ```Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

Sreesha (Mon, 03 Sep 2018 09:35:11 GMT):
On peer instantiate command iam getting new chaincode docker up But while checking the instantiated chaincodes in mychannel it is showing none at peer the following log is shown: 2018-09-03 09:04:20.405 UTC [chaincode] Execute -> DEBU 1b6c Exit 2018-09-03 09:04:20.405 UTC [endorser] callChaincode -> DEBU 1b6d [mychannelnew][04c4f8e6] Exit 2018-09-03 09:04:20.405 UTC [endorser] endorseProposal -> DEBU 1b6e [mychannelnew][04c4f8e6] Exit 2018-09-03 09:04:20.405 UTC [lockbasedtxmgr] Done -> DEBU 1b6f Done with transaction simulation / query execution [04c4f8e604bd10791c816338386e0c8e52196e0a89c56a11a201db840770485b] 2018-09-03 09:04:20.405 UTC [endorser] ProcessProposal -> DEBU 1b70 Exit: request from%!(EXTRA string=10.53.17.70:34546) and on invoke chaincode the following error is thrown: Error: error endorsing invoke: rpc error: code = Unknown desc = make sure the chaincode mycc2 has been successfully instantiated and try again: could not find chaincode with name 'mycc2' - proposal response:

mevir (Mon, 03 Sep 2018 10:07:02 GMT):
Has joined the channel.

Sreesha (Mon, 03 Sep 2018 10:11:36 GMT):
This is the orderer logs

Sreesha (Mon, 03 Sep 2018 10:11:41 GMT):
018-09-03 10:05:39.108 UTC [orderer/common/broadcast] Handle -> WARN 3c65 Error reading from 172.18.0.3:41546: rpc error: code = Canceled desc = context canceled

nalinikatiyar (Mon, 03 Sep 2018 10:13:04 GMT):
do we need to have hyperleadger composer installed for hyperleadger fabric

bh4rtp (Mon, 03 Sep 2018 10:15:42 GMT):
hi, i have trouble in chaincode instantiate timeout when running `balance-transfer` example. about 4 minutes client will tell timeout but server is ok and keeps the instantiate procedure running. i think my timeout setting is big enough: 1) `CORE_CHAINCODE_STARTUPTIMEOUT=1200s` 2) ```"request-timeout" : 90000``` in fabric-client/config/default.json 3) `channel.sendInstantiateProposal(request, 600000)` when instantatiate chaincode i have no idea where 4 minutes client timeout is set.

AbhinayB (Mon, 03 Sep 2018 11:25:31 GMT):
Hi everyone! Is it possible to communicate between Hyperledger Fabric and Hyperledger Indy? Can I read the data from Fabric and store it in Indy?

AbhinayB (Mon, 03 Sep 2018 11:25:31 GMT):
Hi everyone! Is it possible to have a cross-ledger identity management between hyperledger fabric and indy? Is it possible to communicate between Hyperledger Fabric and Hyperledger Indy? Can I read the data from Fabric and store it in Indy?

knagware9 (Mon, 03 Sep 2018 11:46:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5YamRSrLJruMvPaQ5) @nalinikatiyar NO,,,but using hyperledger composer ,we need to setup fabric network

gravity (Mon, 03 Sep 2018 11:49:49 GMT):
hi all I'm trying to use `dep` as a dependency manager for chaincode libs, but getting this error: `vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go:111:28: undefined: proto.InternalMessageInfo FAIL utavi-chaincode/common/go [build failed] ` fabric v1.2.0 any suggestions?

gravity (Mon, 03 Sep 2018 11:49:49 GMT):
hi all I'm trying to use `dep` as a dependency manager for chaincode libs, but getting this error: ``` vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go:111:28: undefined: proto.InternalMessageInfo FAIL utavi-chaincode/common/go [build failed] ``` fabric v1.2.0 any suggestions?

dave.enyeart (Mon, 03 Sep 2018 11:53:12 GMT):
@VenkataY Private data docs including tutorial/sample:

dave.enyeart (Mon, 03 Sep 2018 11:53:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

AviFatal (Mon, 03 Sep 2018 13:19:11 GMT):
Has joined the channel.

AviFatal (Mon, 03 Sep 2018 13:20:48 GMT):
Hi. Im trying to restart the hyperledger under ubuntu vbox and I get the following error: Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running ```avi@ubuntu:~/work/projects/fabric-composer-poc/ouna$ composer-tools/packages/fabric-dev-servers/startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv12 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing peer0.org1.example.com ... done Removing ca.org1.example.com ... done Removing orderer.example.com ... done Removing couchdb ... done Removing network composer_default Creating network "composer_default" with the default driver Creating ca.org1.example.com ... Creating couchdb ... Creating orderer.example.com ... Creating ca.org1.example.com Creating couchdb Creating couchdb ... done Creating peer0.org1.example.com ... Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running ```

AviFatal (Mon, 03 Sep 2018 13:20:48 GMT):
Hi. Im trying to restart the hyperledger under ubuntu vbox and I get the following error: `Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running` ```avi@ubuntu:~/work/projects/fabric-composer-poc/ouna$ composer-tools/packages/fabric-dev-servers/startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv12 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing peer0.org1.example.com ... done Removing ca.org1.example.com ... done Removing orderer.example.com ... done Removing couchdb ... done Removing network composer_default Creating network "composer_default" with the default driver Creating ca.org1.example.com ... Creating couchdb ... Creating orderer.example.com ... Creating ca.org1.example.com Creating couchdb Creating couchdb ... done Creating peer0.org1.example.com ... Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running ```

AviFatal (Mon, 03 Sep 2018 13:20:48 GMT):
Hi. Im trying to restart the hyperledger under ubuntu vbox and I get the following error: `Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running` ```avi@ubuntu:~/work/projects/fabric-composer-poc/network$ composer-tools/packages/fabric-dev-servers/startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv12 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing peer0.org1.example.com ... done Removing ca.org1.example.com ... done Removing orderer.example.com ... done Removing couchdb ... done Removing network composer_default Creating network "composer_default" with the default driver Creating ca.org1.example.com ... Creating couchdb ... Creating orderer.example.com ... Creating ca.org1.example.com Creating couchdb Creating couchdb ... done Creating peer0.org1.example.com ... Creating peer0.org1.example.com ... done sleeping for 15 seconds to wait for fabric to complete start up Error response from daemon: Container f779b74c21fe7834cb5e61bf303e1154f34436699ba20964f8e7c4f5ef87aa3d is not running ```

RichardFriend (Mon, 03 Sep 2018 14:10:59 GMT):
Has joined the channel.

RichardFriend (Mon, 03 Sep 2018 14:11:23 GMT):
Hi, might be a simple question but i cannot find the answer.

RichardFriend (Mon, 03 Sep 2018 14:11:46 GMT):
Is it possible to use composer network ping against a network not created using composer?

RichardFriend (Mon, 03 Sep 2018 14:12:07 GMT):
ie : is ping a composer specific thing or a fabric thing ?

RichardFriend (Mon, 03 Sep 2018 14:13:42 GMT):
Ive created a network using scripts in a CI/CD pipeline and when i ping it it doesnt find chaincode named after the network (i don't name it this were as a bna does) - if i nmae my chaincode after the network - i get Exception: Error: Error trying to ping. Error: 2 UNKNOWN: chaincode error (status: 500, message: Received unknown invoke function name - 'ping')

jandayanan (Mon, 03 Sep 2018 15:15:19 GMT):
Has joined the channel.

StefanKosc (Mon, 03 Sep 2018 15:35:38 GMT):
Hello, I tried to call a function from another chaincode and a peer returned an error `ERRO 036 VSCC error: ValidateLSCCInvocation failed, err LSCC invocation is attempting to write to namespace`. Any idea what is going on?

SamuelLobato (Mon, 03 Sep 2018 16:10:27 GMT):
Has joined the channel.

Smit95shah (Mon, 03 Sep 2018 17:30:37 GMT):
Is it necessary to specify `FABRIC_CA_SERVER_CA_KEYFILE` in the docker file? Becuase I would like to create a new KEYFILE and use it everytime.

Smit95shah (Mon, 03 Sep 2018 17:30:37 GMT):
Is it necessary to specify `FABRIC_CA_SERVER_CA_KEYFILE` in the docker file? Becuase I would like to create a new KEYFILE everytime I run it.

Smit95shah (Mon, 03 Sep 2018 17:42:48 GMT):
Because in the fabcar example, it is already there. I believe, we should be able to dynamically create and assoicate it with the CA.

Smit95shah (Mon, 03 Sep 2018 17:42:55 GMT):
`- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk`

Smit95shah (Mon, 03 Sep 2018 17:42:55 GMT):
`FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk`

Miruthan (Mon, 03 Sep 2018 20:37:14 GMT):
How toretrieve data from Blockchian network ?

Miruthan (Mon, 03 Sep 2018 20:38:22 GMT):
Hi, How to retrieve data from Blockchain network ? , I need to check the complteness of transaction.

yulong12 (Tue, 04 Sep 2018 02:00:51 GMT):
Hi everyone,Every organization has its own root CA certificate, but why can the orderer trust blocks generated by two different organizations?

yj511608130 (Tue, 04 Sep 2018 02:23:35 GMT):
Has joined the channel.

AshishKaila (Tue, 04 Sep 2018 03:09:04 GMT):
Does anyone have experience launching composer and fabric on multi host environment in production? I would love to have some tips on how to do that and changes required in docker compose to achieve the same.

flyerwing (Tue, 04 Sep 2018 03:57:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SHqTaQk9ZAuqM9qG9) @Miruthan you may need to consult the chain code apis that the fabric provided.

flyerwing (Tue, 04 Sep 2018 05:00:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kzhyNarxtksqBZkz4) also, you could take a look at the frabric/chaincode/samples/.... to study some sample chaincode to know the query method.

flyerwing (Tue, 04 Sep 2018 06:33:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sn5dMxHziDd5umb7L) I‘d like give you a example to query the chain ledger:

flyerwing (Tue, 04 Sep 2018 06:35:14 GMT):
I can give you an example to show how to query the chain ledger in the chiancode:`func (s *SmartContract) queryAllCars(APIstub shim.ChaincodeStubInterface) sc.Response { startKey := "CAR0" endKey := "CAR999" resultsIterator, err := APIstub.GetStateByRange(startKey, endKey)

flyerwing (Tue, 04 Sep 2018 06:39:11 GMT):
this shows that if you want query the key range from "CAR0 to CAR 999", you should call the APIstub(stub provide the sufficient APIs to the chaincode to access the ledger) GetStateByRange().

tnr@womeninlinux.com (Tue, 04 Sep 2018 06:41:04 GMT):
Has joined the channel.

rhansharief (Tue, 04 Sep 2018 06:56:15 GMT):
good day! Did anyone of you here tried deleting data from couchdb? What happened to me is i created a transaction via cli through the chaincode then I deleted the transaction in couchdb of peer0. After that, when I query all transactions via cli and via sdk, the transaction has been deleted (i'm assuming in all peers).. but I can still see my transaction in coucbdb of peer1.. Can someone explain to me what happened?

shrimanwar92 (Tue, 04 Sep 2018 07:15:30 GMT):
Has joined the channel.

StefanKosc (Tue, 04 Sep 2018 07:16:18 GMT):
hey, can one chaincode install and instantiate the other one?

AamirSohail (Tue, 04 Sep 2018 07:46:12 GMT):
Hi, Few questions re Fabric 1. I understand Fabric can connect to external client applications via API's. What type of API's does Fabric support? REST-API, Mule-Soft? 2. The copy of ledger that each peer is keeping, what does it look like? Format of file etc? 3. In case of multi-channel hierarchy, if one peer is part of more than 1 channel (let's say 2 channels), there can be 2 different chaincodes on each channel and hence 2 different ledgers that this peer will be keeping. Is this understanding correct?

Mahadream (Tue, 04 Sep 2018 08:14:32 GMT):
Hi all , peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem - when i run this commands i got this error - No command 'peer' found, did you mean: Command 'pear' from package 'php-pear' (main) Command 'pee' from package 'moreutils' (universe) Command 'peet' from package 'pipexec' (universe) Command 'beer' from package 'gerstensaft' (universe) peer: command not found

Mahadream (Tue, 04 Sep 2018 08:14:51 GMT):
How to resolve this problem ?

TobiasN (Tue, 04 Sep 2018 08:47:59 GMT):
@AamirSohail 1. there are SDK's for node.js, java and go-lang. you will use them to communicate with the peer, orderer and certificate server. peer and orderer use GRPC, and the CA uses HTTP. 2. the ledger is a key value store. that map string to string. what the implementation behind the key-value store is can be configured, there is currently levelDB and couchDB as opensource implementations. if you use couchdb and your chaincode is writing JSON into the value string, then the data is as normal documents in couchdb. (that can even get indexed and queried). 3. yes

TobiasN (Tue, 04 Sep 2018 08:50:11 GMT):
I do not believe there are true production setups that are more than POC, but I think most of them have configured the peers to use couchDB.

TobiasN (Tue, 04 Sep 2018 08:50:54 GMT):
@StefanKosc NO

TobiasN (Tue, 04 Sep 2018 08:55:55 GMT):
@rhansharief Yes, that is a point where you should be absolutely strict. You should not edit the data direct in couchdb. the peers only execute the transactions. that might say create Asset_5. when you delete that in the couchdb of peer0, the delete operation has not happen on the couchdb of peer1. you should implement a method in your chaincode that uses: DelState(key string). to delete assets.

TobiasN (Tue, 04 Sep 2018 08:57:21 GMT):
@Mahadream you should install the binaries as described here: https://hyperledger-fabric.readthedocs.io/en/release-1.2/install.html

QwertyJack (Tue, 04 Sep 2018 09:00:40 GMT):
Any plans about sdk mobile devices ?

npc0405 (Tue, 04 Sep 2018 09:00:59 GMT):

Clipboard - September 4, 2018 2:30 PM

midhun14 (Tue, 04 Sep 2018 09:01:22 GMT):
Anyone knows how service discovery is implemented in hyperledger fabric 1.2

StefanKosc (Tue, 04 Sep 2018 09:02:12 GMT):
Hey @TobiasN, thanks for answer, maybe you know why it is not possible?

npc0405 (Tue, 04 Sep 2018 09:02:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D4TSiLxnYqGQCMgbM) simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: d15c5ba7b9755d5ebb741a2ded21021547bb224db6995f9d6ed5d3799812e9fc Above error is thrown in peer log

QwertyJack (Tue, 04 Sep 2018 09:05:10 GMT):
@TobiasN Is there any plans about sdk for mobile devices such as android and ios ? Thanks in advance.

TobiasN (Tue, 04 Sep 2018 09:18:07 GMT):
@StefanKosc because, it could not be guaranteed, that the installation process succeed on all peers. peers of different organizations might be operated in different ways, (one use docker, an other direct native on linux,...) When the installation process cannot be guaranteed, it would make the blockchain very unstable, so that peers can not validate/endorse future transactions., so, I guess, technically you could code something together, but that will not be easy with the todays SDK's. I would recommend to do the installation and instantiation outside the chaincode. there you can make sure the installations on all peers before instantiation. #personalOpinion

TobiasN (Tue, 04 Sep 2018 09:26:48 GMT):
@QwertyJack Hi, I am not a contributor to hyperledger fabric, I just use it to develop some POC for different clients. I also already had the question, that I want to have the client, (web, electron(windows/mac/linux), or mobileApp) create the private keys on their devices and sign the identity by using the CA-server. I only use the nodeJS SDK. I analysed it and it would require a certain rewrite to support such use cases. As I was reading the code of the SDK, I found it is only using libraries, that could also potentially run in the browser. so it would require to split the "enroll" method into two API's for generating public-privateKey and next to send it to some server to have that signed by the Fabric-CA-Server and return the Certificate back to the client (optionally storing in the server). Such an implementation could work on all platforms, (if you are fine to run some JS in your Android/IOS app)

StefanKosc (Tue, 04 Sep 2018 09:36:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rZkkr3sHPxgmtHyyb) @TobiasN ok, thanks

QwertyJack (Tue, 04 Sep 2018 09:36:52 GMT):
@TobiasN Thank you very much. JS is OK but a I would prefer a native app. For android I found that someone already adapted java sdk non offically; for iOS still none.

ShobhitSrivastava (Tue, 04 Sep 2018 09:45:30 GMT):
Hi All, I was working om 1.1 version and it was fine. Today i upgraded my network to 1.2 but since then I am able to start my orederer. In look the starting logs of exited orderer container I received this error ```Error creating channelconfig bundle: cannot enable channel capabilities without orderer support first``` . Any one has any idea on this?

ShobhitSrivastava (Tue, 04 Sep 2018 09:46:28 GMT):
Adding @dave.enyeart

rhansharief (Tue, 04 Sep 2018 09:51:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tNS5kFXeJKcfNtezn) @TobiasN @TobiasN but did the delete transaction updated the ledgers in all peers? because it looks like all the ledgers are updated. just the couchdb of other peers are not updated

rhansharief (Tue, 04 Sep 2018 09:51:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tNS5kFXeJKcfNtezn) @TobiasN @TobiasN but did the delete transaction updated the ledgers in all peers? because it looks like all the ledgers are updated. just the couchdb of other peers are not updated. from what i know the couchdb should just be a representation of the world state/current state of the ledgers. so i don't think updating couchdb should update all the ledgers. that's why it's confusing why it looks like all ledgers are updated but the couchdbs are not updated.

rajesh.paranjpe (Tue, 04 Sep 2018 10:10:18 GMT):
Has joined the channel.

Rachit_gaur (Tue, 04 Sep 2018 10:26:10 GMT):
I have a scenario where i am calling stub GetHistoryForKey from another chaincode using stub.InvokeChaincode() but it returns value only when on same channel else empty response is returned without error..can someone help??

thiyagucse01 (Tue, 04 Sep 2018 10:46:00 GMT):
Hi I am followed "https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html" this link to create fabric network but if I run ./byfn.sh up means it shows the below error, Can anyone help me to rectify this error Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-09-04 10:42:37.801 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

rhansharief (Tue, 04 Sep 2018 11:06:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6oSP6ZozbAnKmqg23) @thiyagucse01 are you sure you have no running fabric? you can check by executing docker ps.. if fabric is already running, do ./byfn.sh -m down first

thiyagucse01 (Tue, 04 Sep 2018 11:24:13 GMT):
@rhansharief Thanks , Its working and one more doubt is there any shell command exist for list available channels and their artifacts ?

Subhankar 3 (Tue, 04 Sep 2018 11:29:57 GMT):
While extending a the network, bynf uses a common cli where certificates of all the organisations are present. For extending the network, the peer fetched the config block by using orderer's certificate. But in a production environment, the peer cli may not have the certificates of orderer. So how can we add a new Organisation to the consortium in production environment

MatthiasPichler (Tue, 04 Sep 2018 11:44:26 GMT):
Has joined the channel.

Mahadream (Tue, 04 Sep 2018 12:00:35 GMT):
Hi all While i following the https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org this steps I got this issue , cant able to deloy the business card Installing business network. This may take a minute...E0904 15:32:50.824046217 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0904 15:32:50.824559477 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0904 15:32:50.824917549 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0904 15:32:50.829533462 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠸ Installing business network. This may take a minute...E0904 15:32:51.033591511 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0904 15:32:51.033953460 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠴ Installing business network. This may take a minute...E0904 15:32:52.033938016 8900 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0904 15:32:52.034457383 8900 Can i get some ideas to resolve this problem?

ShobhitSrivastava (Tue, 04 Sep 2018 12:36:06 GMT):
@Mahadream ..looks like it is related to composer

ShobhitSrivastava (Tue, 04 Sep 2018 12:36:14 GMT):
please post it there also

AbhinayB (Tue, 04 Sep 2018 12:36:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tgf7KMmGvXrnyHg3S) @flyerwing Does the GetStateByRange() require a couchdb instance? In other words , is the query considered as a complex query that can't be carried out using leveldb?

dave.enyeart (Tue, 04 Sep 2018 12:43:27 GMT):
No, leveldb and couchdb both support key range queries. You only need couchdb if you want to query within the JSON content of the value.

misaelssantos (Tue, 04 Sep 2018 12:46:34 GMT):
Has joined the channel.

misaelssantos (Tue, 04 Sep 2018 12:53:56 GMT):
After restarting of my containers (orderer e peers with mapped volumes) I'm getting this error when a peer try to delivery the same block indefinitely. ``` Error reading from channel, cause was: NOT_FOUND ``` Some idea of how to solve without regenerating the entire network?

misaelssantos (Tue, 04 Sep 2018 12:53:56 GMT):
After restarting of my containers (orderer e peers with mapped volumes) I'm getting this error when a peer try to delivery the same block indefinitely. ``` Error reading from channel, cause was: NOT_FOUND ``` Some idea of how to solve without regenerating the entire network? Fabric 1.1

vieiramanoel (Tue, 04 Sep 2018 12:58:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SzWh3aa7mEne2bicW) @Mahadream Hi, Mahadream! Are you using fabric-ca?

vieiramanoel (Tue, 04 Sep 2018 13:09:06 GMT):
any of you guys are used to write unitttest for chaincodes in go? I can't test errors on GetState using MockStub

GiovanniNapoli (Tue, 04 Sep 2018 13:32:32 GMT):
Hi all, i'm very new with HF and I'll study this platform for my Master's thesis. I don't know if this is the right channel, sorry if not. My goal is, for now, to understand which are the source file related to the process of updating the ledger un order to understand the point in which hash operations are done. Can anybody help me? Sorry if the question may appear very general but, as i said, i'm very new with the arugment.

Tommy109 (Tue, 04 Sep 2018 13:55:48 GMT):
currently using hyperledger fabric on IBM cloud. Anyone know how I can go about monitoring this and configuring alerts? I am already using prometheus and grafana so would ideally be done using that

DennisM330 (Tue, 04 Sep 2018 14:30:43 GMT):
How does Fabric ensure transactions are committed in the order received? Is there a scenario where transaction A takes awhile for the 3 phases of consensus to complete while transaction B comes in a second or two later and can commit earlier than transaction A. However, the asset being updated needs to have transaction A update the state before transaction B.

vieiramanoel (Tue, 04 Sep 2018 14:41:39 GMT):
@DennisM330 I believe that people in #fabric-orderer could answer you better

gititGoro (Tue, 04 Sep 2018 15:14:43 GMT):
Has joined the channel.

gititGoro (Tue, 04 Sep 2018 15:16:15 GMT):
What is the best practice for implementing a "schema upgrade"? Suppose the needs of the organization change and we need to change the chaincodes. Are chaincodes associated with particular blocknumbers so that we can traverse old version of the ledger seamlessly or do we need to keep track of which chaincodes were relevant at which point in time? Thank you

VenkataY (Tue, 04 Sep 2018 15:17:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jjsnu3vGG26c4FPGo) @dave.enyeart @dave.enyeart Thanks for the info, Able to run the given sample in single host. Is there any sample for multihost environment?

AlfredChen (Tue, 04 Sep 2018 15:21:45 GMT):
How to use Java to integrate a fabric to implement a blockchain application? Is there any other solution to implement a blockchain application?

vieiramanoel (Tue, 04 Sep 2018 15:33:11 GMT):
@AlfredChen you can use java-sdk https://github.com/hyperledger/fabric-sdk-java

vieiramanoel (Tue, 04 Sep 2018 15:33:32 GMT):
but your chaincode must be written in go, node or composer

Raycoms (Tue, 04 Sep 2018 16:59:20 GMT):
Has joined the channel.

Raycoms (Tue, 04 Sep 2018 17:00:02 GMT):
Hi, I am interested in creating an adaptation of the PBFT algorithm as consensus module for fabric, I was wondering where I can find documentation on that

jrosmith (Tue, 04 Sep 2018 17:18:40 GMT):
@Raycoms try #fabric-orderer , i think thats where discussions about pluggable consensus take place

Raycoms (Tue, 04 Sep 2018 17:19:25 GMT):
Ty

ClementeSerrano (Tue, 04 Sep 2018 17:46:52 GMT):
Has joined the channel.

fksaito (Tue, 04 Sep 2018 19:30:44 GMT):
Has joined the channel.

princejha (Tue, 04 Sep 2018 19:40:09 GMT):
Has joined the channel.

princejha (Tue, 04 Sep 2018 19:40:47 GMT):
Hi, I am new to this project. I have studied the docs for hyperledger-fabric. Could you please guide on how to proceed further so that i could have a better understanding of this product ?

jvsclp (Tue, 04 Sep 2018 21:01:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=69GdueprW4T5uympG) @princejha https://hyperledger-fabric.readthedocs.io/en/release-1.2/tutorials.html

MegganDo (Tue, 04 Sep 2018 21:27:32 GMT):
Hi Guys, i'm looking into trying to build a fabric application without composer. Do you know any good tutorials I could look at to get started?

rodolfoleal (Tue, 04 Sep 2018 21:32:45 GMT):
Has joined the channel.

juan.gzz.salz (Tue, 04 Sep 2018 22:08:06 GMT):
Has joined the channel.

juan.gzz.salz (Tue, 04 Sep 2018 22:09:09 GMT):
Hi, I managed to create mychannel.block file, but when i try to join this channel using peer channel join -b mychannel.block

juan.gzz.salz (Tue, 04 Sep 2018 22:09:14 GMT):
this error prompts Error: Error getting endorser client channel: PER:404 - Error trying to connect to local peer

juan.gzz.salz (Tue, 04 Sep 2018 22:25:00 GMT):
found the problem, it was due to CORE_PEER_ADMIN not being set properly

juan.gzz.salz (Tue, 04 Sep 2018 22:25:00 GMT):
found the problem, it was due to CORE_PEER_ADDRESS not being set properly

AamirSohail (Wed, 05 Sep 2018 00:36:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rPiD8YXr63jGmSD6W) @TobiasN Thanks alot for your response.

flyerwing (Wed, 05 Sep 2018 02:11:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XHkwvR3Qt5AyEHPeb) @Rachit_gaur would you please post the code here, I suppose that invokeChaincode() does not assign the right channel id.

flyerwing (Wed, 05 Sep 2018 02:19:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fk5qzFuLnCupPCmng) @AlfredChen I suggest you to have a look at github.com/hyperledger/fabric/ examples/chaincode/java, under this directory, contains chaincode written in java.

zhangguiping (Wed, 05 Sep 2018 02:51:00 GMT):
Dear experts, I have one issue here in our production environment. Our system environment is Hyperledger Fabric 1.1.0.

zhangguiping (Wed, 05 Sep 2018 02:51:17 GMT):
Can not capture the peer channel-based event in some block structure. There is one random problem that is the SDK can not listen the peer channel-based event in our product environment. After one month investigation, we found this issue happen in one specific block structure. If one block have 2 transactions, the first one is register the channel-based event, the second one has not event registration, we can not listen the event of first transaction in the SDK. So far, we did not found the transactions more than 2 for this issue, but we think it should be same if the block have more transaction. If the transaction registered event is not first one, the event is OK. If the two transaction have the events, they are OK also. We check the event registration log in the peer, the event is registered successfully. Because the whole process is async, so we can not monitor what happen before listener of SDK.

AamirSohail (Wed, 05 Sep 2018 03:16:14 GMT):
Hi, I am working with someone who are keen to explore the option to implement Fabric in their business ecosystem in a multi phase approach, starting from a POC. The concern is the bullpark figures in terms of costs. I understand its an extremely vague query but can someone share an estimated cost for a POC project, which, e.g. had X number of nodes in the system etc. Because the tech itself is so new and there are a lot of uncertainty around it, not knowing the bull park figure for costs also acts as a deterrent for enterprises. Thanks

AamirSohail (Wed, 05 Sep 2018 03:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CBn6gcJb23SaSrT87) If it helps, the client is in Supply Chain industry.

sheetal-hlf (Wed, 05 Sep 2018 04:52:52 GMT):
Hi All, I am trying the private data feature in v1.2 using node sdk. My network contains 2-Orgs, 2 peers per org, 1 solo orderer, 2-CA nodes(sample network from balance-transfer in fabric-samples). Endorsement policy is default and the collection policy as stated in https://fabric-sdk-node.github.io/tutorial-private-data.html Connection profile contains flag "discover: false". I get following error while invoking chaincode Error: Failed disseminating 2 out of 2 private RWSets Could anyone please guide me?

manpreetkaur_92 (Wed, 05 Sep 2018 05:59:19 GMT):
Has joined the channel.

FaizulHassan (Wed, 05 Sep 2018 06:32:34 GMT):
Hello guys , I needs some clarity in Hyperledger Transaction Flow: Kindly advice whether my assumption is right. Flow: - Client application sends transaction proposal to "Endorsing Peers" - "Endorsing Peers" validates participants by checking - whether their Certificates are valid - whether they are authorized to perform operation - the Endorsement policies, signs the transation and sends response to client application Question: What will be the Response from Endorsing Peers to client application contains ? What are read/write sets ? Also please brief about the transaction flow.. Thanks much in advance :)

midhun14 (Wed, 05 Sep 2018 06:58:11 GMT):
Anyone knows how to implement service discovery with hyperledger fabric 1.2

yacovm (Wed, 05 Sep 2018 07:19:59 GMT):
it's implemented

manpreetkaur_92 (Wed, 05 Sep 2018 07:30:37 GMT):
We are trying to implement end to end encryption in Hyperledger Fabric. We explored the BCCSP plugin given by the hyperledger, We used the simple encyption and decryption function to store and get data into and from couch db state. I would like to understand what is the pupose of sign/verify functions in BCCSP, where to use it how to use it.

manpreetkaur_92 (Wed, 05 Sep 2018 07:30:54 GMT):
Is it in chaincode level or is it in Fabric-client level?

manpreetkaur_92 (Wed, 05 Sep 2018 07:30:59 GMT):
Please let us know.

nalinikatiyar (Wed, 05 Sep 2018 07:31:26 GMT):
https://stackoverflow.com/questions/51136319/channel-creation-failed i am facing the same issue please help

gut (Wed, 05 Sep 2018 07:43:53 GMT):
A recent commit in AMCL has broken the integrity of Fabric because the idemix function arguments have changed. We've submitted a JIRA issue at [FAB-11856](https://jira.hyperledger.org/browse/FAB-11856)

gut (Wed, 05 Sep 2018 07:45:56 GMT):
Two approaches can be taken, but I think a maintainer or an administrator might decide what to do, or assign the issue to the appropriate developer.

gut (Wed, 05 Sep 2018 07:56:31 GMT):
@mastersingh24 maybe related to [FAB-8488](https://jira.hyperledger.org/browse/FAB-8488)?

GiovanniNapoli (Wed, 05 Sep 2018 07:59:42 GMT):
Hi all, can anyone tell where i can find, in the source code of HF, the process of updating the ledger with the calculation of the current block hash? Thank you It should be relative to the Orderer, isn't it?

ZaheerUdDeen (Wed, 05 Sep 2018 08:01:21 GMT):
Has joined the channel.

ZaheerUdDeen (Wed, 05 Sep 2018 08:01:25 GMT):
https://github.com/hyperledger/fabric-sdk-java where I can find the documentaton for this java skd ?

GiovanniNapoli (Wed, 05 Sep 2018 08:07:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uCzP8sXq6F6fxZrNG) Or is https://godoc.org/github.com/hyperledger/fabric/common/ledger/blockledger the section that i'm talking about? Because my trivial purpose is to change the hash function used for blocks

AdityaV (Wed, 05 Sep 2018 08:12:14 GMT):
Has joined the channel.

AdityaV (Wed, 05 Sep 2018 08:30:22 GMT):
Hi all, I'm trying to learn through balance-transfer app https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer I'm a litle confussed between the usage of certificates placed in channel artifacts `~/balance-transfer/artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com` and certificate placed inside the `enrollment.identity.certificate` in file `/home/rails/work/hyperledger/fabric-samples/balance-transfer/fabric-client-kv-org1/admin` I wonder both are different. can anyone explain me useage or purpose of the two different admin certificates. Here's my little understanding about the same - The certificates inside the channel artifacts are to perform actions like - join-channel request - validate peer's authenticity ... While certificates inside `fabric-client-kv-org1` holds all the users that can access any peer in the Org1 and admin is one of them. can someone please explain more on the same, like: - what are the possible operations both admins can do? - is there's something that peer's admin do on behalf of org's admin? hope my question is clear enough ;))

nalinikatiyar (Wed, 05 Sep 2018 08:47:01 GMT):
Hi I am followed "https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html" this link to create fabric network but if I run ./byfn.sh up means it shows the below error, Can anyone help me to rectify this error + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded Usage: peer channel create [flags] Flags: -c, --channelID string In case of a newChain command, the channel ID to create. -f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer -t, --timeout int Channel creation timeout (default 5) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint -v, --version Display current version of fabric peer server !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

ZaheerUdDeen (Wed, 05 Sep 2018 09:01:29 GMT):
@tahaf10 https://github.com/hyperledger/fabric-sdk-java where I can find the documentation for this java skd ?

Rachit_gaur (Wed, 05 Sep 2018 09:07:13 GMT):
Getting the following error when i use InvokeChaincode() function inside a chaincode to call another chaincode function which uses getHistoryForKey() built in function,Can someone explain the issue? [ERROR]20180905 08:47:56,521 org.hyperledger.fabric.sdk.Channel.sendQueryProposalToPeers(Channel.java:2913) Sending proposal to buyer12peer1 failed because of: gRPC failure=Status{code=UNKNOWN, description=error executing chaincode: transaction returned with failure: Failed to get policy manager for channel [main], cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: error executing chaincode: transaction returned with failure: Failed to get policy manager for channel [main] at org.hyperledger.fabric.sdk.Channel.sendQueryProposalToPeers(Channel.java:2913) ... 25 more [ERROR]20180905 08:47:56,523 com.oracle.bcs.gateway.Gateway.query(Gateway.java:1213) Failed query proposal from peer buyer12peer1 status: FAILURE. Messages: Sending proposal to buyer12peer1 failed because of: gRPC failure=Status{code=UNKNOWN, description=error executing chaincode: transaction returned with failure: Failed to get policy manager for channel [main], cause=null}. Was verified : false. [INFO ]20180905 08:47:56,553 com.oracle.bcs.gateway.Gateway.query(Gateway.java:1221) Success query proposal from peer buyer11peer1. [INFO ]20180905 08:47:56,554 com.oracle.bcs.gateway.BcsClientRestAPI.query(BcsClientRestAPI.java:79) /v1/transaction/query from abhishek.dabas@sofbang.com:REQ: sellers/chaincode/v1/invokecc/[chaincode, main, getHistory, 1]/transientMap:null/ :REP:Success/com.oracle.bcs.gateway.ResultInfo@159e771d/null.

ThangDC (Wed, 05 Sep 2018 09:17:51 GMT):
@ZaheerUdDeen you should go to #fabric-sdk-java to get your answer

HamzaYasin (Wed, 05 Sep 2018 09:49:08 GMT):
Has joined the channel.

HamzaYasin (Wed, 05 Sep 2018 09:49:27 GMT):
I want to know that how much transactions can be take place in one second over hyperledger fabric with Kafka protocol. I'm actually creating a network, as such project size is not as much big but if my product will do millions of transactions per second around the globe and want to log those transactions over hyperledger fabric so could it be possible that fabric can manage them all? If yes than how many nodes should i need to setup first and what should be the server specs to deploy the network. And if this is not the good idea of using fabric than kindly let me know which blockchain should i use to log the immutable and consortium ledger.

gut (Wed, 05 Sep 2018 09:53:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5mxxmrXRB5izsK2Rt) Has anyone experience implementing a client in an ARM architecture? (Like RPi)

ShobhitSrivastava (Wed, 05 Sep 2018 09:57:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WCx9btGryojWXSzqm) Hi @dave.enyeart ..is this question relevant to this channel? Or should i post it to different one

ShobhitSrivastava (Wed, 05 Sep 2018 10:00:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uweESCJ9r6eK8mCRK) @HamzaYasin HI There. I implemented this with 4 kafka and 3 zookeeper. The tps was around 270. Implemented in local server which are not very high end. I guess it can reach upto 3000. But i did not achieve it

HamzaYasin (Wed, 05 Sep 2018 10:17:26 GMT):
@ShobhitSrivastava Is there any other blockchain on which i can do record keeping with this high speed?

Adam_Hardie (Wed, 05 Sep 2018 10:20:04 GMT):
hello! we have just deployed our hyperledger setup onto an integration server, (the same setup is working fine on two different dev servers) when I attempt to commit a transaction via chaincode, i get WARNING: Received error on peer eventing service on channel messagebus, peer peer0.XXX, url grpc://XXXX.0000, attempts 1. UNAVAILABLE: Channel shutdownNow invoked

Adam_Hardie (Wed, 05 Sep 2018 10:20:23 GMT):
the IP and peer are the correct values. I have made sure we use the latest docker images etc

Adam_Hardie (Wed, 05 Sep 2018 10:22:04 GMT):
any ideas why this would happen? I cant see any obvious error in any docker container logs. In fact everything has been enrolled, endorsed, perfectly

rajasushanth (Wed, 05 Sep 2018 10:24:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Dg6mtAxkZyj5MM8xA) @ShobhitSrivastava If I'm not wrong, this should be due to the crypto-config.yaml file, version 1.2 requires certain changes to be made in it

ShobhitSrivastava (Wed, 05 Sep 2018 10:26:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zpw9HsMuN4fLCPyMA) @HamzaYasin Depends on your use case. You can either check Corda but that is not a true DLT. You can see bigchainDB. Though I have not implemented bigchainDB

Adam_Hardie (Wed, 05 Sep 2018 10:28:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BqzuodkbEjHN2bKWi) fyi - we dont call shutdownNow anywhere in code..

ShobhitSrivastava (Wed, 05 Sep 2018 10:29:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m6agyCjgtrpJPGmfe) @rajasushanth crypto-config or configtx.yaml. I have made changes in configtx. Dont think crypto-config.yaml require any changes for 1.2

rajasushanth (Wed, 05 Sep 2018 10:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GEBvhNoDReKMDf2De) @ShobhitSrivastava Sorry my bad, it should be configtx.yaml

ShobhitSrivastava (Wed, 05 Sep 2018 10:31:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hLPydcqyd2rB5KcHW) @rajasushanth yeah no issue. I made changes to it. But still getting issue.

rajasushanth (Wed, 05 Sep 2018 10:36:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8jngnETrm9jj7ubGB) @ShobhitSrivastava Could you move your profiles section at the end and try ??

Rachit_gaur (Wed, 05 Sep 2018 11:00:19 GMT):
getHistoryForKey() function when called from InvokeChaincode() works fine if both chaincodes are on same channel but returns empty result iterator if chaincode is on different channels .Can someone help? Also not the issue of cross channel calling as query function works fine in all scenarios

ShobhitSrivastava (Wed, 05 Sep 2018 11:09:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gTRXGkdYRkQYznnZ3) @rajasushanth okay. Is it the case? I did not try that. Will check thanks

bourbonkidQ (Wed, 05 Sep 2018 12:02:50 GMT):
Hello, I'm trying to upgrade a chaincode, but I have a problem, when the sdk node does a query or an invoke it still uses the old version of the chaincode. When I check my peers, I notice that the new version of chaincode is running well and i have stop and remove the old version. On node SDK i have this following error E``` `rror: 2 UNKNOWN: cannot retrieve package for chaincode mycc/v0, error open /var/hyperledger/production/chaincodes/mycc.v0: no such file or directory ` ```

bourbonkidQ (Wed, 05 Sep 2018 12:02:50 GMT):
Hello, I'm trying to upgrade a chaincode, but I have a problem, when the sdk node does a query or an invoke it still uses the old version of the chaincode. When I check my peers, I notice that the new version of chaincode is running well and i have stop and remove the old version. On node SDK i have this following error ``` Error: 2 UNKNOWN: cannot retrieve package for chaincode mycc/v0, error open /var/hyperledger/production/chaincodes/mycc.v0: no such file or directory ```

bourbonkidQ (Wed, 05 Sep 2018 12:03:27 GMT):
Shoud I mention the chaincode version on the node sdk side ?

vinayjangir (Wed, 05 Sep 2018 12:59:13 GMT):
Has joined the channel.

vinayjangir (Wed, 05 Sep 2018 12:59:29 GMT):
Hello All,

vinayjangir (Wed, 05 Sep 2018 13:03:13 GMT):
I am trying to add a new organization to balance-transfer example but when i am trying to enroll a user in newly created network with new organization. I am getting below error - "failed Error: fabric-ca request register failed with errors [[{\"code\":20,\"message\":\"Authorization failure\"}]]" I have added affiliation for this new organization under ca docker containers's /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml file. Please help me resolve this issue.

seetharamangr (Wed, 05 Sep 2018 13:20:56 GMT):

error.PNG

PradeepC (Wed, 05 Sep 2018 13:30:28 GMT):
hello group. can some help me in what all are needed if i have set up only a peer node. ``` i am going to have production system. and i want to have a peer node on a system. so what all needs to be there installed for that. ``` ``` ```

reinhard.freiler (Wed, 05 Sep 2018 13:59:20 GMT):
Has joined the channel.

reinhard.freiler (Wed, 05 Sep 2018 13:59:26 GMT):
hi

reinhard.freiler (Wed, 05 Sep 2018 14:01:08 GMT):
did anyone try to provide a new custom validation handler? i added following env keys to my peer container: CORE_PEER_HANDLERS_VALIDATORS_STATEBASED_NAME and CORE_PEER_HANDLERS_VALIDATORS_STATEBASED_LIBRARY. but it doesn't seem to work

reinhard.freiler (Wed, 05 Sep 2018 14:01:19 GMT):
any ideas?

yacovm (Wed, 05 Sep 2018 14:01:42 GMT):
oh wow @reinhard.freiler why did you do that?

reinhard.freiler (Wed, 05 Sep 2018 14:03:22 GMT):
it's a new feature in HLF 1.2 https://hyperledger-fabric.readthedocs.io/en/release-1.2/pluggable_endorsement_and_validation.html

reinhard.freiler (Wed, 05 Sep 2018 14:03:29 GMT):
I wanted to test that

RayMetz100 (Wed, 05 Sep 2018 16:50:00 GMT):
Has joined the channel.

RayMetz100 (Wed, 05 Sep 2018 16:50:12 GMT):
Does hyperledger.org have a link to use cases? I'm looking for a short list of production hyperledger fabric implementations. Architecture and integration slides with diagrams showing multiple participants would be ideal, but I'll take anything. I'm looking for production cases where using a traditional database would be sub-optimal compared to hyperledger.

MohammedR (Wed, 05 Sep 2018 16:56:52 GMT):
Hii, can anyone tell me how to use --connectionProfile option in peer chaincode install.

KarandeepSingh (Wed, 05 Sep 2018 18:04:00 GMT):
Has joined the channel.

jvsclp (Wed, 05 Sep 2018 20:12:14 GMT):
I am running into an issue in the process to install and instantiate chaincode on a peer node with fabric v1.2.0. When I am attempting to stand up the node I receive an error: `ERRO 035 Cannot run peer because error when setting up MSP of type bccsp from directory path/to/directory/msp: The supplied identity is not valid: x509: certificate signed by unknown authority` I generated the certificates using fabric-ca server and client. The certificate chain runs from a self-signed root certificate authority to an intermediate-ca to the peer identity certificate. The membership service provider structure is set up in accordance with how to set up a local MSP for a peer node and I verified the certificate chain with openssl. Any help would be greatly appreciated.

GiovanniNapoli (Wed, 05 Sep 2018 21:04:52 GMT):
Hi all, how can i change the hash function used for the blocks of the ledger? What source files are related to block creation/hashing? Thanks

AamirSohail (Wed, 05 Sep 2018 23:35:36 GMT):
Do we have anyone here with non-tech background? More like managerial or commercials?

issac.liu (Thu, 06 Sep 2018 02:40:22 GMT):
Hi all, I would like to check if it is advisable to have a large amount of channels in the hyperledger network around 10,000 to say.

Raghavendrar 2 (Thu, 06 Sep 2018 04:29:04 GMT):
Hi all, I'm trying to create the channel dynamically using node sdk, I'm trying to extract the JSON object of the channel.tx file by sending it to the configtxlator.

Raghavendrar 2 (Thu, 06 Sep 2018 04:30:02 GMT):
Hi all, I'm trying to create the channel dynamically using node sdk, I'm trying to extract the JSON object of the channel.tx file by sending it to the configtxlator. I have written the following request var response = agent.post('http://0.0.0.0:7059/protolator/decode/common.Config', envelope) .buffer() .end((err, res) => { if (err) { logger.error(err); return; } let config_proto = res.body; });

Raghavendrar 2 (Thu, 06 Sep 2018 04:30:26 GMT):
I'm getting error as a bad request please advice

medhak19 (Thu, 06 Sep 2018 05:37:54 GMT):
If the implementation of a specific business workflow using hyperledger fabric involves uploading pdfs or other documents like invoices, POs etc…. what is the best way to implement it? One of the possible approaches could be to upload the documents to IPFS through app layer and store IPFS hash in state db. Is there any other/better way of implementing this? Is hyperledger fabric team coming up with out-of-the box solution for this in upcoming releases?

flyerwing (Thu, 06 Sep 2018 05:39:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6HnEKjwcgrsufvHvj) @bourbonkidQ would you please detail the steps you upgrade the chaincode?

Subhankar 3 (Thu, 06 Sep 2018 06:23:37 GMT):
sabhinayb

VarunVerma (Thu, 06 Sep 2018 06:57:25 GMT):
In our dummy composer network we have 5 participants which work as a different independent organization. SO my question is if we want to deploy it on fabric what all thing i need to do with fabric and consider for composer.

VarunVerma (Thu, 06 Sep 2018 06:57:25 GMT):
Hi all,In our dummy composer network we have 5 participants which work as a different independent organization. SO my question is if we want to deploy it on fabric what all thing i need to do with fabric and consider for composer.

VarunVerma (Thu, 06 Sep 2018 06:58:27 GMT):
It would be if i can help ASAP! Required

NoLimitHoldem (Thu, 06 Sep 2018 07:05:53 GMT):
Anyone knows what exactly "State-based ownership" and "Composer function integration" mean in roadmap of Hyperledger Fabric v1.3?

NoLimitHoldem (Thu, 06 Sep 2018 07:05:53 GMT):
Anyone knows what exactly is "State-based ownership" and "Composer function integration" mean in roadmap of Hyperledger Fabric v1.3?

flyerwing (Thu, 06 Sep 2018 08:29:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RFZopraYqbjoRMp9E) @VarunVerma It seems that you should create the channels and join the 5 orgs to the channels and then consider to install the chain code to the peers subjected to the orgs.

VarunVerma (Thu, 06 Sep 2018 08:31:32 GMT):
@flyerwing ok thanks

suryasuresh06 (Thu, 06 Sep 2018 08:42:33 GMT):
Can someone tell me how to display the blockchain ledger in the front-end?. Is there any API that i can. I am currently following the balance-transfer code in the fabric-samples. So i want to know if one of the API's in that codebase can be used

flyerwing (Thu, 06 Sep 2018 08:49:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g75qwpkqbZkEsMHxP) @suryasuresh06 At the chaincode level, you can use some stub class method like GetState(), GetStateByRange() to get the ledger key value.

suryasuresh06 (Thu, 06 Sep 2018 08:50:54 GMT):
@flyerwing thanks for the reply. How do i display it to the end user on the app

flyerwing (Thu, 06 Sep 2018 09:00:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rocbAYGySHNXPFCzN) @suryasuresh06 you should compose the application and call the chain code and communicate with the chain code interfaces in the application.

Rachit_gaur (Thu, 06 Sep 2018 09:46:21 GMT):
is there a function in the go chaincode to query block by number?

Baker 10 (Thu, 06 Sep 2018 10:07:52 GMT):
Has joined the channel.

Baker 10 (Thu, 06 Sep 2018 10:09:31 GMT):
I use Mango Query Server to query data, for example :{"selector":{"number":10},"limit":3,"skip":2},but the parameter: 'limit' and 'skip' not work.The result of the query count is not 3. I want to implementation paging action.

Baker 10 (Thu, 06 Sep 2018 10:09:39 GMT):
var queryString = `{"selector":{"number":10},"limit":3,"skip":2}` resultsIterator, err := stub.GetQueryResult(queryString) if err != nil{ log.Error(model.ERRNMCC0006) return nil, err, model.ERRNMCC0006 } defer resultsIterator.Close() var resArr []string for resultsIterator.HasNext() { queryResponse, err := resultsIterator.Next() if err != nil{ log.Error(model.ERRNMCC0007) return nil, err, model.ERRNMCC0007 } var buffer bytes.Buffer buffer.WriteString(string(queryResponse.Value)) resArr = append(resArr, buffer.String()) }

Baker 10 (Thu, 06 Sep 2018 10:10:02 GMT):
Pls help me.

hooj0 (Thu, 06 Sep 2018 10:40:06 GMT):
Has joined the channel.

karthikraja (Thu, 06 Sep 2018 10:49:20 GMT):
Has joined the channel.

karthikraja (Thu, 06 Sep 2018 10:53:14 GMT):
Hi any one having POC on Multiple system peer connectivity, I tried it your docker swarm but i facing trouble. Thanks in advance

Subhankar 3 (Thu, 06 Sep 2018 10:56:10 GMT):
@karthikraja Fabric works very well on multiple system on docker swarm. What are the troubles that you are facing

Smit95shah (Thu, 06 Sep 2018 10:57:25 GMT):
How can I apply for the certification of hyperledger fabric? https://www.hyperledger.org/resources/training/hyperledger-fabric-certification

midhun14 (Thu, 06 Sep 2018 11:02:44 GMT):
Will the service discovery work for querying the chaincode? Now its working only for initialize and invoke

karthikraja (Thu, 06 Sep 2018 11:04:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3G9PKEsxkFjH8H8Tf) @Subhankar 3 What version you tested, I testing it in 1.2.0 version, Then main issue is i could not able to connect swarm,

karthikraja (Thu, 06 Sep 2018 11:04:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3G9PKEsxkFjH8H8Tf) @Subhankar 3 What version you tested, I testing it in 1.2.0 version, Then main issue is i could not able to connect swarm, I hosted my main swarm in windows and tried toping it on another system. Its failed

karthikraja (Thu, 06 Sep 2018 11:04:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3G9PKEsxkFjH8H8Tf) @Subhankar 3 What version you tested, I testing it in 1.2.0 version, Then main issue is i could not able to connect swarm, I hosted my main swarm in windows and tried to opening it on another system. Its failed

yacovm (Thu, 06 Sep 2018 11:05:47 GMT):
@midhun14 you don't need....

Subhankar 3 (Thu, 06 Sep 2018 11:10:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N6QRGMAMArudkq95k) @karthikraja I tested with 1.2 version on ubuntu

karthikraja (Thu, 06 Sep 2018 11:23:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XEHFacfWGNEku7f5Z) @Subhankar 3 Ok, I am testing it in windows, Please if you have any sample code to connect peers in different host(PC), Kindly share with me. Thank you @Subhankar 3

gravity (Thu, 06 Sep 2018 11:44:58 GMT):
Hi all I'm trying to perform to `PutState` in a single call: ``` func ccFunc() { putState_1() putState_2() } func putState_1() { ... stub.PutState(key, value) } func putState_2() { ... stub.PutState(key, value) } ``` in this case, putState_1 will not change the ledger state (assume all endorsements and validations are fine) Is there anything I should take into account? Because such a behavior look weird

hyperlearner (Thu, 06 Sep 2018 11:58:45 GMT):
I wanted to use the dev mode for debugging.The steps are given in the following link. https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html Where should I give the commands ? I tried it in the orderer container bash that showed the following error .. [orderer/common/server] initializeGrpcServer -> CRIT 003 Failed to listen: listen tcp 0.0.0.0:7050: bind: address already in use Can i do it inside balance transfer ?

hyperlearner (Thu, 06 Sep 2018 11:58:45 GMT):
I wanted to use the dev mode for debugging.The steps are given in the following link. https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html Where should I give the commands ? I tried it in the orderer container bash that showed the following error .. [orderer/common/server] initializeGrpcServer -> CRIT 003 Failed to listen: listen tcp 0.0.0.0:7050: bind: address already in use Can i do it inside balance transfer ? #general #fabric-ca

hyperlearner (Thu, 06 Sep 2018 11:58:45 GMT):
I wanted to use the dev mode for debugging.The steps are given in the following link. https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html Where should I give the commands ? I tried it in the orderer container bash that showed the following error .. [orderer/common/server] initializeGrpcServer -> CRIT 003 Failed to listen: listen tcp 0.0.0.0:7050: bind: address already in use Can i do it inside balance transfer ? #fabric-questions #general #fabric-ca

hyperlearner (Thu, 06 Sep 2018 11:58:45 GMT):
I wanted to use the dev mode for debugging.The steps are given in the following link. https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html Where should I give the commands ? I tried it in the orderer container bash that showed the following error .. [orderer/common/server] initializeGrpcServer -> CRIT 003 Failed to listen: listen tcp 0.0.0.0:7050: bind: address already in use Can i do it inside balance transfer ? #fabric-questions #general #fabric-ca

laurensdegilde (Thu, 06 Sep 2018 12:17:55 GMT):
I have a chaincode instantiated which has an endorsement policy with AND('Org1MSP.member', 'Org2MSP.member'). I send transaction proposal request from a fabric java sdk application but i cant seem to get the configuration right. If you implement a channelclient it is using a hfcaclient which in turn is bound to an CA of 1 specific organisation. How do you implement a multi org endorsement channel clien?

laurensdegilde (Thu, 06 Sep 2018 12:18:38 GMT):
Such that you can add 2 user contexts to a hfcclient which both are from different organisations

GiovanniNapoli (Thu, 06 Sep 2018 12:52:19 GMT):
Hi, is SHA256 the only valid hash algorithm provided by HF for block hashing? There will be, in future updates, the possibility to configure even this parameter? Thank you

jrosmith (Thu, 06 Sep 2018 13:15:19 GMT):
@gravity it depends on the keys and values. if putState_1 and putState_2 have the same key but put respective values of val1 and val2, the end result with be key => value2. if putState_1 and putState_2 are putting key1 => val1 and key2 => val2 then the end result will have both keys and vals put into the world state.

ShobhitSrivastava (Thu, 06 Sep 2018 13:21:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qJim88nqLEY3qcj5K) hey @rajasushanth ..i copied the profile at the end. In java sdk I am getting below error while instantiating chaincode``` /���<9��QӰƠ�?|��_���� ���=�}�5+�&invalid number of arguments to lscc: 7"lscc invalid number of arguments to lscc: 7 ChaincodeID(lscc::) ```

gravity (Thu, 06 Sep 2018 13:30:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X8F9GPFYusnQKiu7Y) @jrosmith now it makes sense, thanks

gravity (Thu, 06 Sep 2018 13:32:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X8F9GPFYusnQKiu7Y) @jrosmith where can I read about such a behavior and rules how `PutState` works? Is there any documentation for this?

jrosmith (Thu, 06 Sep 2018 13:46:18 GMT):
@gravity [PutState](https://github.com/hyperledger/fabric/blob/release-1.1/core/chaincode/shim/interfaces_stable.go#L8) "docs" are in the code itself, but I think [Read-Write Semantics](https://hyperledger-fabric.readthedocs.io/en/release-1.1/readwrite.html) will answer most of your questions

nirav.parmar (Thu, 06 Sep 2018 13:58:16 GMT):
Has joined the channel.

MarioSchlipf (Thu, 06 Sep 2018 13:58:56 GMT):
Has joined the channel.

MarioSchlipf (Thu, 06 Sep 2018 14:00:56 GMT):
Following up on @Smit95shah question.. is there a way to enroll to the hyperledger fabric certification? What kind of course is that exactly? Online of physical?

Bartb0 (Thu, 06 Sep 2018 14:34:57 GMT):
Has joined the channel.

JonathanTan (Thu, 06 Sep 2018 15:21:02 GMT):
Does anyone know the difference and when to use member, admin , client and peer for the endorsement policies? I have posted my question here : https://stackoverflow.com/questions/52207260/how-do-the-different-msp-roles-member-admin-peer-client-affect-hyperledger

SergioRuiz (Thu, 06 Sep 2018 15:31:56 GMT):
Has joined the channel.

SergioRuiz (Thu, 06 Sep 2018 15:33:10 GMT):
Hello guys. Could someone point me to the right resource on how to add a custom CA instead of the default CA that comes with fabric to a channel?

jvsclp (Thu, 06 Sep 2018 16:25:03 GMT):
I am running into an issue in the process to install and instantiate chaincode on a peer node with fabric v1.2.0. When I am attempt to stand up the node I receive an error: `ERRO 035 Cannot run peer because error when setting up MSP of type bccsp from directory path/to/directory/msp: The supplied identity is not valid: x509: certificate signed by unknown authority` I generated the certificates using fabric-ca server and client. The certificate chain runs from a self-signed root certificate authority (CA) to an intermediate-CA to the peer identity certificate and I verified it in openssl using: `openssl verify -CAfile certauthority-chain.pem peer-cert.pem` which returns OK. The membership service provider structure is set up in accordance with how to set up a local MSP for a peer node with the root CA in the cacerts folder, the intermediate CA in the intermediatecerts folder, and the peer certificate in the signcerts folder. I'm stumped why I am receiving this error and any help would be greatly appreciated.

jvsclp (Thu, 06 Sep 2018 16:25:03 GMT):
I am running into an issue in the process to install and instantiate chaincode on a peer node with fabric v1.2.0. When I attempt to stand up the node I receive an error: `ERRO 035 Cannot run peer because error when setting up MSP of type bccsp from directory path/to/directory/msp: The supplied identity is not valid: x509: certificate signed by unknown authority` I generated the certificates using fabric-ca server and client. The certificate chain runs from a self-signed root certificate authority (CA) to an intermediate-CA to the peer identity certificate and I verified it in openssl using: `openssl verify -CAfile certauthority-chain.pem peer-cert.pem` which returns OK. The membership service provider structure is set up in accordance with how to set up a local MSP for a peer node with the root CA in the cacerts folder, the intermediate CA in the intermediatecerts folder, and the peer certificate in the signcerts folder. I'm stumped why I am receiving this error and any help would be greatly appreciated.

akshay.sood (Thu, 06 Sep 2018 16:45:55 GMT):
How many peer organizations can be there in hylerledger fabric? In short what is the limit of peer org and orderer org in fabric?

jrosmith (Thu, 06 Sep 2018 16:49:48 GMT):
@jvsclp @JonathanTan @SergioRuiz you'll probably find answers in #fabric-ca

akshay.sood (Thu, 06 Sep 2018 16:50:12 GMT):
@jrosmith do you have any idea

jrosmith (Thu, 06 Sep 2018 16:50:54 GMT):
@akshay.sood i remember seeing a conversation about it previously but no i do not have the answer. try #fabric-peer-endorser-committer

jvsclp (Thu, 06 Sep 2018 16:51:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cgENAf95apSqFmjt2) @jrosmith I'll give it a shot

SergioRuiz (Thu, 06 Sep 2018 17:26:46 GMT):
thanks @jrosmith

genesisblock (Thu, 06 Sep 2018 22:36:37 GMT):
Has joined the channel.

genesisblock (Thu, 06 Sep 2018 22:36:41 GMT):
Hi!

genesisblock (Thu, 06 Sep 2018 22:36:47 GMT):
I'm looking for some help in getting started with HyperLedger. I've gone through the tutorials but I still have some basic questions that Google hasn't answered for me. I'm hoping the folks here can help. 1. In the documentation, it says that the Node and Java SDKs are ready, and Go, Python etc will come out later. In other places it says Node and Go SDKs are ready, and Java, Python will come out later. Which is accurate? 2. Does the python SDK have equivalency with Node and Go at the moment? 3. If I want to set up a fabric network from scratch, and not use the docker containers, is there a tutorial I could follow? Thank you!

underbell (Fri, 07 Sep 2018 01:06:46 GMT):
1. fabric client sdk is node and java available, chaincode is go and node available.

gakumura (Fri, 07 Sep 2018 03:01:05 GMT):
Has joined the channel.

midhun14 (Fri, 07 Sep 2018 03:48:55 GMT):
Anyone knows where service discovery API is defined inside fabric samples?

Zoultrex (Fri, 07 Sep 2018 04:16:03 GMT):
Has joined the channel.

flyerwing (Fri, 07 Sep 2018 04:23:51 GMT):
https://github.com/hyperledger/fabric/core/chaincode/shim: shim contain the middle ware that the chaincode communicate with ledger. the chaincode operate the ledger through the methods from shim.ChaincodeStub.

flyerwing (Fri, 07 Sep 2018 04:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vQvRFiEowtt623csH) @midhun14 https://github.com/hyperledger/fabric/core/chaincode/shim: shim contain the middle ware that the chaincode communicate with ledger. the chaincode operate the ledger through the APIs defined in shim.ChaincodeStub

akshay.sood (Fri, 07 Sep 2018 04:28:45 GMT):
Hi All

akshay.sood (Fri, 07 Sep 2018 04:28:47 GMT):
I am having difficulty understanding this ``` "rule": { "n_out_of": { "n": 1, "rules": [ { "signed_by": 0 } ] } } ```

flyerwing (Fri, 07 Sep 2018 04:49:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vQvRFiEowtt623csH) @midhun14 So correct the link I post , please find the shim defined APIs at :https://github.com/hyperledger/fabric/tree/release-1.0/core/chaincode/shim

Luxii (Fri, 07 Sep 2018 05:24:09 GMT):
What is the default checkpoint validity policy in fabric ?

ShobhitSrivastava (Fri, 07 Sep 2018 05:47:19 GMT):
Hi Everyone. Has any tried with Private Chaincode?. I am getting an error ``` ��1.�'�E'�r���m��T��V�&l�0��}5+�&invalid number of arguments to lscc: 7"lscc ``` in java sdk. I have changed the channel capabilities from 1.1 to 1.2

ShobhitSrivastava (Fri, 07 Sep 2018 05:47:19 GMT):
Hi Everyone. Has any tried with Private Chaincode?. I am getting an error ``` ��1.�'�E'�r���m��T��V�&l�0��}5+�&invalid number of arguments to lscc: 7"lscc ``` in java sdk. I have changed the channel capabilities from 1.1 to 1.2``` Adding @dave.enyeart, can you please check this? ```

TobiasN (Fri, 07 Sep 2018 05:54:14 GMT):
@Luxii after ordering before in each peer, each peer will verify hashes, signatures, read-write-sets, endorsement-policy, even the execution again is still part of the validation. before the writeset get applied to the peers ledger.

Raghavendrar 2 (Fri, 07 Sep 2018 06:04:49 GMT):
Hi all, can any one tell me how to convert the proposal response from the peer which is in buffer into readable format

GowriR (Fri, 07 Sep 2018 06:13:07 GMT):
Hi call the command "peer channel join -b demandresponsechannel.block" on the CLI container , gives the error - Error: Error getting endorser client channel: endorser client failed to connect to peer0.consumerorg.demandresponse.com:7051: failed to create new connection: x509: certificate is valid for orderer.demandresponse.com, orderer, not peer0.consumerorg.demandresponse.com

GowriR (Fri, 07 Sep 2018 06:13:17 GMT):
can anyone help me on this please?

VenkataY (Fri, 07 Sep 2018 07:06:12 GMT):
Hi, in connectionprofile.json default values for "x-type": "hlfv1", "version": "1.0.0" as i am using fabric 1.2 i think i need to change it to "x-type": "hlfv12", "version": "1.2.0" is it right assumption.

Sahith (Fri, 07 Sep 2018 07:41:39 GMT):
I am getting unit tests failed for release1.2 version

Sahith (Fri, 07 Sep 2018 07:41:56 GMT):
I'm in release1.2 branch

Sahith (Fri, 07 Sep 2018 07:50:33 GMT):
Which branch should I use for installing working version of fabric

Sreesha (Fri, 07 Sep 2018 09:12:08 GMT):
If org1 peers are down,can a user of org2 query org1 peers?

Immanuel-john (Fri, 07 Sep 2018 10:21:13 GMT):
Has joined the channel.

Immanuel-john (Fri, 07 Sep 2018 10:21:15 GMT):
Hi HLF developers ! Have doubt. Kindly help. I've created a network in IBM cloud bluemix which has 2 orgs and one peers in each orgs. And I created a channel connecting those two peers. I've also installed chaincode in both the peers and instantiated chaincode in org2 peer. So, now when I try to connect to that network from a fabric client(nodejs sdk) it's working fine. When I try to create a transaction it is working fine and a block is added in the network. But when I try to query the transaction from the network(CouchDB) the response is empty. What might be the problem? Anyone can help?

mastersingh24 (Fri, 07 Sep 2018 10:35:24 GMT):
@Immanuel-john - was the transaction actually valid? Blocks can still be added to the network but if the transactions within the block actually fail validation the state will not be updated

Immanuel-john (Fri, 07 Sep 2018 10:39:05 GMT):
how can we check transaction is valid or not

Immanuel-john (Fri, 07 Sep 2018 10:39:07 GMT):
?

dave.enyeart (Fri, 07 Sep 2018 10:39:57 GMT):
Check the peer log at the block commit time. There will be a warning if there are invalid transactions.

Immanuel-john (Fri, 07 Sep 2018 10:41:35 GMT):
transaction is valid

dave.enyeart (Fri, 07 Sep 2018 10:42:03 GMT):
ok, try to create another key, this time with debug on when you start the peer (`CORE_LOGGING_LEVEL=DEBUG`), and you should be able to see CouchDB save upon commit, and see the couchdb query upon get

mastersingh24 (Fri, 07 Sep 2018 10:42:08 GMT):
What do you mean by "query"?

Immanuel-john (Fri, 07 Sep 2018 10:43:00 GMT):
is there any interface kinda thing for seeing the couch db?

Immanuel-john (Fri, 07 Sep 2018 10:43:12 GMT):
in blockchain?

dave.enyeart (Fri, 07 Sep 2018 10:44:00 GMT):
not in blockchain, but if you are in your own dev environment you can map the couchdb port to host port and then access the couchdb UI at http://localhost:5984/_utils/#

dave.enyeart (Fri, 07 Sep 2018 10:44:50 GMT):
here's how to expose the couchdb port:

dave.enyeart (Fri, 07 Sep 2018 10:44:54 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/docker-compose-couch.yaml#L20-L23

Immanuel-john (Fri, 07 Sep 2018 10:44:54 GMT):
i'm using bluemix

dave.enyeart (Fri, 07 Sep 2018 10:45:23 GMT):
does bluemix allow debug log collection?

mastersingh24 (Fri, 07 Sep 2018 10:45:26 GMT):
`But when I try to query the transaction from the network(CouchDB) the response is empty. What might be the problem? ` - so what exactly are you doing?

lislunev (Fri, 07 Sep 2018 10:53:16 GMT):
Hello, can I config MSP in the way, that to one of chaincodes in the network only admin and other chaincode have access, and no one of other users have access to this chaincode?

Immanuel-john (Fri, 07 Sep 2018 10:54:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eixgsxJFNqHmt9Nbn) @dave.enyeart i dont know. I'm a newbie here

dave.enyeart (Fri, 07 Sep 2018 10:59:09 GMT):
@lislunev In your chaincode you can access the client identity and make access control decisions in your chaincode based on it. But it will not distinguish between direct client access and access via chaincode-to-chaincode, as in both cases the end client identity will be provided. see apis here:

dave.enyeart (Fri, 07 Sep 2018 10:59:13 GMT):
https://github.com/hyperledger/fabric/tree/master/core/chaincode/lib/cid

lislunev (Fri, 07 Sep 2018 13:45:46 GMT):
thanks a lot, I'll try

asmitashah (Fri, 07 Sep 2018 15:04:05 GMT):
Has joined the channel.

nfrunza (Fri, 07 Sep 2018 16:33:18 GMT):
Has joined the channel.

DattaPatil (Fri, 07 Sep 2018 18:11:26 GMT):
@Rachit_gaur Can you please help/suggest me how to create node server.? so that i can provide that IP to SDK(front end UI) server so that user can hit the requests and it can then come to my peers(3)

nfrunza (Fri, 07 Sep 2018 20:30:30 GMT):
Hello, contributors are welcomed for HLExplorer , one of the skills required: nodejs, reactjs, docker

aatkddny (Sat, 08 Sep 2018 00:37:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eixgsxJFNqHmt9Nbn) Doesn't it point you at the K part of an ELK instance? Although it wasn't - shall we say - the most reliable thing when I tried it in the sandbox version. Also I forget what level they logged at.

aatkddny (Sat, 08 Sep 2018 00:37:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eixgsxJFNqHmt9Nbn) Doesn't it point you at the K part of an ELK setup? Although it wasn't - shall we say - the most reliable thing when I tried it in the sandbox version. Also I forget what level they logged at.

nithindj192 (Sat, 08 Sep 2018 03:28:52 GMT):
Here is an attempt to provide the complete instructions to adapt Caliper to existing Fabric network - https://medium.com/tallyx/adapting-hyperledger-caliper-to-custom-hyperledger-fabric-networks-3ffa650215a0

akshay.sood (Sat, 08 Sep 2018 12:25:18 GMT):
Hello Fabric Experts

akshay.sood (Sat, 08 Sep 2018 12:25:21 GMT):
Is there anyway to add a new channel to existing network?

xiaohu871 (Sat, 08 Sep 2018 12:42:50 GMT):
Has joined the channel.

yousaf (Sat, 08 Sep 2018 14:36:37 GMT):
Has joined the channel.

yousaf (Sat, 08 Sep 2018 14:37:05 GMT):
Hi everyone. i have checked that fabric allows installation and instantiation of multiple chaincodes on the same channel. What's the logic of allowing this? I mean why the multiple chaincodes need to be instantiated on the same channel ?

Pardha (Sat, 08 Sep 2018 16:14:05 GMT):
Has joined the channel.

saif_lesnar (Sat, 08 Sep 2018 18:15:57 GMT):
Has joined the channel.

saif_lesnar (Sat, 08 Sep 2018 18:16:18 GMT):
How to solve the problem of eventhub shutdown

auua (Sat, 08 Sep 2018 19:13:57 GMT):
Has joined the channel.

sharif2008 (Sat, 08 Sep 2018 19:30:22 GMT):
Has joined the channel.

sharif2008 (Sat, 08 Sep 2018 19:38:22 GMT):
how can I set up first network of hyperledger fabric from the scratch without using any docker/docker images? any suggestions will be helpful.

pasimoes (Sat, 08 Sep 2018 19:58:54 GMT):
@yousaf AFAIK the channel is the “relationship” between parties and you may have more then one “business” btw them. So, each chaincode is a different “business” . @yousaf [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mirxr2fiSB2yh6Srw)

yousaf (Sat, 08 Sep 2018 20:01:43 GMT):
@pasimoes I agreed sir. That a party can have different business logics for different parties. But what's the use of having multiple business logics on the same channel. Because on a channel, there must be only one logic specific to participating parties in the channel.

raviyelleni (Sun, 09 Sep 2018 03:02:08 GMT):
Has joined the channel.

raviyelleni (Sun, 09 Sep 2018 03:12:22 GMT):
Hi, Can anyone provide a good tutorial for core fabric development using node.js from scratch excluding fabric documentation?

GauravSalunke (Sun, 09 Sep 2018 06:41:14 GMT):
Has joined the channel.

princejha (Sun, 09 Sep 2018 12:55:13 GMT):
I have a couple of questions in adding org to a channel :While configuring a peer to be an organisation leader in static mode, why it is required that the configuration should be same for all newly added peers ?

princejha (Sun, 09 Sep 2018 12:57:11 GMT):
I have a couple of questions in adding org to a channel : 1.) While configuring a peer to be an organisation leader in static mode, why it is required that the configuration should be same for all newly added peers ? 2.) Why it is required to set a leader in a org when we already have admin ?

yousaf (Sun, 09 Sep 2018 16:11:10 GMT):
Hi...Is it possible to add new consortium in the existing genesis block of BYFN if our network is already working and have already another existing consortium and channel?

Alvin455024780 (Mon, 10 Sep 2018 02:05:53 GMT):

20180910100530.png

Alvin455024780 (Mon, 10 Sep 2018 02:06:19 GMT):
orderer node fail,have some one can help me?

Alvin455024780 (Mon, 10 Sep 2018 02:24:31 GMT):
panic: [channel: testchainid] Cannot post CONNECT message = circuit breaker is open

mathmass (Mon, 10 Sep 2018 03:12:34 GMT):
Has joined the channel.

mathmass (Mon, 10 Sep 2018 03:18:43 GMT):
I am trying to start a simple simple fabic network that holds assets like cars. Also I want to build a simple dapp to access it. I already successful did the example stuff that comes with it. How do I actually take the network it live and make my dapp live and see it working in action?

Hariprasauth (Mon, 10 Sep 2018 05:40:55 GMT):
Has joined the channel.

Hariprasauth (Mon, 10 Sep 2018 05:41:20 GMT):
Hi, Please could you direct me to the IPFS integration with fabric?

mathmass (Mon, 10 Sep 2018 06:00:11 GMT):
Is any one getting answers here?

yacovm (Mon, 10 Sep 2018 07:06:29 GMT):
Many are

yacovm (Mon, 10 Sep 2018 07:07:30 GMT):
@Alvin455024780 post your problem to #fabric-orderer

Alvin455024780 (Mon, 10 Sep 2018 07:21:22 GMT):
@yacovm thank

Levilk (Mon, 10 Sep 2018 07:26:40 GMT):
Hello! What are the configuration files in fabric which are accessible and should be used/customized by a developer/network operator? Are there any tools to generate and modify these files? Thanks for the answers!

flyerwing (Mon, 10 Sep 2018 07:43:48 GMT):
there should be many yaml files under each module playing the configuration role. e.g https://github.com/hyperledger/fabric/blob/release-1.0/core/chaincode/chaincodetest.yaml

flyerwing (Mon, 10 Sep 2018 07:47:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mqqj2YrsYvaKtEjLs) @mathmass I suggest you to use baas services provide by IBM, MS etc, and deploy your chaincode to the baas and then use the http or gRPC interface to drive your application to communicate with the chaincode.

Tommy109 (Mon, 10 Sep 2018 08:34:23 GMT):
I'm using hyperledger fabric on ibm cloud. How can I monitor it? IBM monitoring offering doesn't cover fabric

narendranathreddy (Mon, 10 Sep 2018 08:38:35 GMT):
Has joined the channel.

narendranathreddy (Mon, 10 Sep 2018 08:39:12 GMT):
hello team iam getting ssl error while creating channel

narendranathreddy (Mon, 10 Sep 2018 08:39:25 GMT):
Note: certificates created by using fabric-ca

narendranathreddy (Mon, 10 Sep 2018 08:39:41 GMT):
nodejs error: E0910 12:38:03.897900434 16923 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate.

narendranathreddy (Mon, 10 Sep 2018 08:40:26 GMT):
orderer log: 2018-09-10 06:35:53.856 UTC [grpc] Printf -> DEBU 0ab grpc: Server.Serve failed to complete security handshake from "10.255.0.2:59106": tls: client didn't provide a certificate

narendranathreddy (Mon, 10 Sep 2018 08:41:07 GMT):
i double checked all certificates are correct

narendranathreddy (Mon, 10 Sep 2018 08:41:26 GMT):
till now i have been using cryptogen tool for certificates generation

narendranathreddy (Mon, 10 Sep 2018 08:42:10 GMT):
for the first time i used fabric-ca cor register and enroll certs

narendranathreddy (Mon, 10 Sep 2018 08:42:16 GMT):
for*

Rachit_gaur (Mon, 10 Sep 2018 09:23:28 GMT):

Clipboard - September 10, 2018 2:53 PM

Rachit_gaur (Mon, 10 Sep 2018 09:23:32 GMT):
Can someone explain why do i get this error message even after downloaded the util package?

Rachit_gaur (Mon, 10 Sep 2018 09:23:32 GMT):
Can someone explain why do i get this error message even after i downloaded the util package?

nithindj192 (Mon, 10 Sep 2018 10:38:06 GMT):
Here is an attempt to provide the instructions for adapting caliper to existing Fabric network - https://medium.com/tallyx/adapting-hyperledger-caliper-to-custom-hyperledger-fabric-networks-3ffa650215a0

vineetmishra (Mon, 10 Sep 2018 11:53:01 GMT):
Hi Guys, a quick question , i want to store user's private key at azure key vault , is it possible for hyperledger fabric

vineetmishra (Mon, 10 Sep 2018 11:53:10 GMT):
please someone respond

vineetmishra (Mon, 10 Sep 2018 11:53:10 GMT):
please help someone

Javi (Mon, 10 Sep 2018 11:56:56 GMT):
I want to add new peer nodes to my organization without losing functionality, how I can achieve this?

vtech (Mon, 10 Sep 2018 12:02:09 GMT):
Has joined the channel.

MuhammedHafil (Mon, 10 Sep 2018 12:12:45 GMT):
Has joined the channel.

MuhammedHafil (Mon, 10 Sep 2018 12:12:49 GMT):
https://stackoverflow.com/questions/52257443/hyperledger-fabric-deploy-new-chaincode

MuhammedHafil (Mon, 10 Sep 2018 12:14:49 GMT):
Can anybody help me with this?

shyammishra (Mon, 10 Sep 2018 13:00:33 GMT):
Hello Experts, can anyone help me or provide a link on how to configure fabric network depending upon my use-case like having 3 Orgs and having 2 peer node each

JuanSuero (Mon, 10 Sep 2018 13:12:44 GMT):
How do i run mulitple hyperledger fabric/composer installations side by side on the same VM?

JuanSuero (Mon, 10 Sep 2018 13:12:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xfv2ukvU7Av3CGalRv) @pasimoes How do i run mulitple hyperledger fabric/composer installations side by side on the same VM? i know about changing ports but is there a comprehensive list of knobs to flip so i can have multiple solutions on the same machine?

JuanSuero (Mon, 10 Sep 2018 13:12:44 GMT):
oops wrong thread

riyasoni42 (Mon, 10 Sep 2018 13:13:20 GMT):
Has joined the channel.

riyasoni42 (Mon, 10 Sep 2018 13:13:44 GMT):
Hello I am refering below link for installing specific binaries and chain code on windows, but it is not working :mountain_bicyclist_tone3: https://hyperledger-fabric.readthedocs.io/en/latest/install.html

JuanSuero (Mon, 10 Sep 2018 13:33:36 GMT):
How do i run mulitple hyperledger fabric/composer installations side by side on the same VM? i know about changing ports but is there a comprehensive list of knobs to flip so i can have multiple solutions on the same machine?

lanhray (Mon, 10 Sep 2018 13:53:59 GMT):
Has joined the channel.

lanhray (Mon, 10 Sep 2018 13:55:47 GMT):
Does anyone knows how to install on hyperledger fabric on multiple hosts and make them communicate with each other.

Javi (Mon, 10 Sep 2018 13:57:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hjvEeQs8v6sth4nHs) @lanhray https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

karthikmohan91 (Mon, 10 Sep 2018 13:59:55 GMT):
@riyasoni42 please provide more details

seedle12 (Mon, 10 Sep 2018 14:59:31 GMT):
Has joined the channel.

MubasharIqbal (Mon, 10 Sep 2018 15:12:05 GMT):
Has joined the channel.

MubasharIqbal (Mon, 10 Sep 2018 15:12:16 GMT):
Hello, I am trying to install hyperledger fabric on virtual machine using vagrant trusty ubuntu 16.04. But i am getting an issue on ./byfn.sh up

MubasharIqbal (Mon, 10 Sep 2018 15:14:47 GMT):
error: Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction bfbb643ff122e7280689987ea037835036a9410a8db88b54ed290bfb55a43086: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "/opt/go/pkg/tool/linux_amd64/link: signal: killed " !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

Larisaa (Mon, 10 Sep 2018 15:16:36 GMT):
Has joined the channel.

jvsclp (Mon, 10 Sep 2018 16:03:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GAktMrwhQoMf85RGK) @narendranathreddy From the error is looks like your orderer node is configured to request a TLS client certificate. Whatever you're using to stand up your node (I'm assuming a peer) to connect with the orderer either doesn't have a TLS certificate or it's pointing to the wrong location. You may get more help in the #fabric-ca channel. I hope this helps

jvsclp (Mon, 10 Sep 2018 16:03:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GAktMrwhQoMf85RGK) @narendranathreddy From the error it looks like your orderer node is configured to request a TLS client certificate. Whatever you're using to stand up your node (I'm assuming a peer) to connect with the orderer either doesn't have a TLS certificate or it's pointing to the wrong location. You may get more help in the #fabric-ca channel. I hope this helps

genesisblock (Mon, 10 Sep 2018 16:38:55 GMT):
Hi All, If I want to set up a fabric network from scratch, and not use docker containers, is there a tutorial that I can start with? There are a lot of moving parts here and I'm trying to understand how everything works. I've gone through the tutorials in the docs but they don't have what I'm looking for. Thanks!

MuhammadSalah (Mon, 10 Sep 2018 19:40:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B4fm4fMfZArYnTWAv) @dave.enyeart I am also facing the same issue, and I would like to know what possible implementations to authenticate chaincode-to-chaincode invocations? Any recommendations?

kisna (Tue, 11 Sep 2018 02:53:32 GMT):
Hello, we are trying to track/audit events per product, ~10 per second upto a max of 1000 per sec across 1000's of products in Hyperledger: Each product changes are tracked with specific retailer (< 100), us (central authority) and an auditor We can create a channel per product per retailer as it is the lowest level of abstraction. Q1) Any benchmarks on latency and throughput (TPS) in Hyperledger? Q2) Any limitations on number of channels as it is a single partition topic. Can you have 1000+ topics on Kafka cluster? Is there a convention of channel, topic, DB names underneath? Q3) If you scale to multiple orderers, does it mean adding more orderers mean adding more Kafka instances in the cluster? How do avoid SPOF by adding more clusters of orderers? Do all orderers get all data then or some orderers (Kafka) become masters for specific topics like Kafka cluster works? Q4) How do we scale clients connected to a single peer (SPOF) to post transactions if ordering is not that important? Is it possible to say, no endorsement necessary to speed up posting transactions? Q5) Few central authority peers (all peers get all data) can partitipate in all retailer 1000+ channels (not one) for scalability? Q6) Data is separated per channel on peers and orderers, does couch/level DB has a limitation on number of channels, data size per channel for world state and SPOF? Where is the transaction log data stored on disk and what are its size limits? Q7) How can peers get notified as data changes before writing to valid ledger instead of crawling the block and keeping track of where they are in ledger transaction log? Q8) How do we clean up, archive old channels/topics/peers etc.,?

kisna (Tue, 11 Sep 2018 02:57:16 GMT):
Q9) why should world state, couch/level DB be maintained by all peers and orderers? If a world state for a key has changed since proposal was accepted and sent to orderer and back to peer, isn't this a limit on how fast you can process transactions in Hyperledger, i.e., you have to wait for your transaction to be added to valid ledger on all participating peers and world state, before posting another transaction on same key?

vineetmishra (Tue, 11 Sep 2018 04:12:20 GMT):
Someone please suggest , can we put user's private key azure valut

vineetmishra (Tue, 11 Sep 2018 04:12:20 GMT):
Someone please suggest , can we put user's private key in azure valut

vineetmishra (Tue, 11 Sep 2018 04:12:20 GMT):
Someone please suggest , can we put fabric user's private key in azure vault

narendranathreddy (Tue, 11 Sep 2018 04:57:43 GMT):
Hello @jvsclp thank you very much for your response i have 2 years development experiencing in hyperledger i cross checked many times tls certificates are clean perfect, the only thing is iam using rca and ica

narendranathreddy (Tue, 11 Sep 2018 04:58:32 GMT):
so i will be having two certificates this is not a problem, orderer is rejecting genuine tls cert

riyasoni42 (Tue, 11 Sep 2018 05:20:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mrbHTv4QkD2JxTz7X) I am doing set up all the things on Windows for building first network. I had completed prerequisites. But when I trying to follow all CURL commands from below link :mountain_bicyclist_tone3: https://hyperledger-fabric.readthedocs.io/en/latest/install.html Then no output is coming, instead I am getting timeout errors

karthikmohan91 (Tue, 11 Sep 2018 05:31:11 GMT):
@riyasoni42 https://medium.com/coinmonks/hyperledger-fabric-1-1-0-on-windows-fd142651a904 try from the start ,and post the error message or screen if you get any.

Luxii (Tue, 11 Sep 2018 05:35:53 GMT):
Ive got some questions with crypto-material of any org -

ahmadzafar (Tue, 11 Sep 2018 06:09:27 GMT):
Hi All, I have two questions. 1. Can we get the chaincode name (at the time of instantiate) in chaincode function through shim interface? 2. Can we get all chaincode name running on that channel in chaincode function through shim interface?

flyerwing (Tue, 11 Sep 2018 06:30:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iBjQrZDcbqgwEkWeW) @kisna I'm very concern your questions and the answers, look forward someone give us a reply.

kisna (Tue, 11 Sep 2018 06:30:59 GMT):
Found two articles: https://blockchain-fabric.blogspot.com/2018/05/hyperledger-fabric-performance.html https://blockchain-fabric.blogspot.com/2018/05/failure-and-recovery-of-statedb-in.html Need more answers @flyerwing

kisna (Tue, 11 Sep 2018 06:35:18 GMT):
its showing ~100 TPS and less than 20 channels, so not sure if it is scalable

TobiasN (Tue, 11 Sep 2018 06:35:44 GMT):
@ahmadzafar to your first: yes you can, for that you should write a function,. In your chaincode you should import "github.com/hyperledger/fabric/protos/utils" then you can use *APIstub.GetSignedProposal()* to get a signed proposal then you can use *utils.GetProposal(signetProposal.ProposalBytes)* to get a proposal then you can use utils.GetChaincodeInvocationSpec(prop) to get input parameter these input parameter have at "input.ChaincodeSpec.ChaincodeId.Name" the name of the chaincode

TobiasN (Tue, 11 Sep 2018 06:35:44 GMT):
@ahmadzafar to your first: yes you can, for that you should write a function,. In your chaincode you should import "github.com/hyperledger/fabric/protos/utils" then you can use *APIstub.GetSignedProposal()* to get a signed proposal then you can use *utils.GetProposal(signetProposal.ProposalBytes)* to get a proposal then you can use *utils.GetChaincodeInvocationSpec(prop)* to get input parameter these input parameter have at *input.ChaincodeSpec.ChaincodeId.Name* the name of the chaincode

Logi (Tue, 11 Sep 2018 06:37:28 GMT):
Hello Team, I have few q... Is it possible to have multiple channels with single org..whats the benchmark for single org network

TobiasN (Tue, 11 Sep 2018 06:40:46 GMT):
@ahmadzafar to the second: I think it could be possible to get a list of chaincode that is instantiated, but *not* what is installed on the peer.

flyerwing (Tue, 11 Sep 2018 06:41:36 GMT):
I have heard that the ~1000tps performance, the tps rely on the number of peers, the block size , period of time to cut the block and, the number of order etc.

MubasharIqbal (Tue, 11 Sep 2018 08:19:35 GMT):
any idea about this issue? Error returned from build: 1 \"npm WARN deprecated @types/winston@2.4.4

MubasharIqbal (Tue, 11 Sep 2018 08:19:35 GMT):
any idea about this issue? Error returned from build: 1 \"npm WARN deprecated @types/winston@2.4.4 Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 9504d922be100e550b2d99d3ccc92cf98ddc16a0c121c7ef23d784f5caa77ba5: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 \"npm WARN deprecated @types/winston@2.4.4: This is a stub types definition. winston provides its own type definitions, so you do not need this installed.\n\n> x509@0.3.3 install /chaincode/output/node_modules/x509\n> node-gyp rebuild\n\n\n\""

halilkalkan (Tue, 11 Sep 2018 08:22:22 GMT):
Has joined the channel.

halilkalkan (Tue, 11 Sep 2018 08:24:15 GMT):
Hello team, I have a simple question, I've been searching for more than one hour but couldn't find an answer. In the endorsement phase, how can I define 2-out-of-N policy, when I look for documentation only AND, OR options are available. I could

halilkalkan (Tue, 11 Sep 2018 08:24:15 GMT):
Hello team, I have a simple question, I've been searching for more than one hour but couldn't find an answer. In the endorsement phase, how can I define 2-out-of-N policy, when I look for documentation only AND, OR options are available. I couldn't understand how I should implement.

halilkalkan (Tue, 11 Sep 2018 08:24:15 GMT):
Hello team, I have a simple question, I've been searching for more than one hour but couldn't find an answer. In the endorsement phase, how can I define 2-out-of-N policy, when I look for documentation only AND, OR options are available. I couldn't understand how I should implement. Tag: endorsement-policy, endorsement policy

vc_dataiq (Tue, 11 Sep 2018 08:39:18 GMT):
Has joined the channel.

yoheiueda (Tue, 11 Sep 2018 08:40:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LhYoNAD5CBRvjFvzr) @halilkalkan As far as I know, we can't specify N-out-of-M policies with the peer command. We can do it with Node.js SDK.

yoheiueda (Tue, 11 Sep 2018 08:41:34 GMT):
Hi. I have a question about base images. The base image for s390x use Debian, and the base images for the other architectures use Ubuntu. I think Ubuntu officially supports s390x. Why doesn't the s390x image use Ubuntu? The s390x base image is changed form this commit: https://github.com/hyperledger/fabric-baseimage/commit/11f3b94b1a869bbdf8b94b178fe20e17df48f39d

yacovm (Tue, 11 Sep 2018 09:07:01 GMT):
You can.... @halilkalkan

yacovm (Tue, 11 Sep 2018 09:07:06 GMT):
there is an NoutOf syntax

yacovm (Tue, 11 Sep 2018 09:07:53 GMT):
`OutOf(1, 'A.member', 'B.member')`

absaruddin (Tue, 11 Sep 2018 09:14:53 GMT):
Has joined the channel.

shu22203 (Tue, 11 Sep 2018 09:17:46 GMT):
Hi! I have an question. Can I set multi-sig constraint on each chaincode? For example, chaincode1 can be executed 1 of m, and chaincode2 n of m.

shu22203 (Tue, 11 Sep 2018 09:17:46 GMT):
Hi! I have a question. Can I set multi-sig constraint on each chaincode? For example, chaincode1 can be executed 1 of m, and chaincode2 n of m.

Yerriswamy (Tue, 11 Sep 2018 09:24:32 GMT):
Has joined the channel.

Yerriswamy (Tue, 11 Sep 2018 09:25:46 GMT):
hi! i am new to the hyperleger, i have installed composer in my ubuntu 18.04. Do i need to install fabric also?

Yerriswamy (Tue, 11 Sep 2018 09:40:41 GMT):
hello

sheetal-hlf (Tue, 11 Sep 2018 10:16:05 GMT):
Hello All, is it a good practice to initialize variables in Init function of smart contract as it is called only during instantiating or upgrading? We faced a scenario where the smart contract containers were stopped; after invoking a function from smart contract the container was up however this resulted in non-initialized global variables leaving a few transactions non-functional. Any comments are appreciated.

sheetal-hlf (Tue, 11 Sep 2018 10:16:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=taA4is55d8zNAYv3Y) The smart contract was written in Golang

halilkalkan (Tue, 11 Sep 2018 10:35:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GKNQi37NhLYpzMoWq) @yoheiueda @yoheiueda Yacovm suggested a syntax but I cannot find it in official documents, can you reference it @yacovm?

halilkalkan (Tue, 11 Sep 2018 10:35:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GKNQi37NhLYpzMoWq) @yoheiueda Yacovm suggested a syntax but I cannot find it in official documents, can you reference it @yacovm?

yacovm (Tue, 11 Sep 2018 10:49:36 GMT):
no

yacovm (Tue, 11 Sep 2018 10:49:42 GMT):
but you should just trust what i say

Akash-digiledge (Tue, 11 Sep 2018 11:10:40 GMT):
i compiled the fabric source code and also run the peer and ordrer and created the channel. chaincode installation also i did. but while running instantiate chaincode am getting this error. please check it. "root@hanuman:~/go/src/github.com/hyperledger/fabric# .build/bin/peer chaincode instantiate -o 127.0.0.1:7050 -C myc -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}'2018-09-10 18:08:39.222 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-09-10 18:08:39.222 IST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown " what will be the problem please help me to find the issue...

yoheiueda (Tue, 11 Sep 2018 11:25:19 GMT):
Hi. I have a question about base images. The base image for s390x use Debian, and the base images for the other architectures use Ubuntu. I think Ubuntu officially supports s390x. Why doesn't the s390x image use Ubuntu? The s390x base image is changed form this commit: https://github.com/hyperledger/fabric-baseimage/commit/11f3b94b1a869bbdf8b94b178fe20e17df48f39d

BlackMesa (Tue, 11 Sep 2018 11:25:33 GMT):
Has joined the channel.

mastersingh24 (Tue, 11 Sep 2018 12:15:08 GMT):
@yoheiueda - Ubuntu on s390x is not free

mastersingh24 (Tue, 11 Sep 2018 12:15:35 GMT):
So we can't ship ready to run open source for s390x using Ubuntu

yoheiueda (Tue, 11 Sep 2018 12:15:57 GMT):
I see. thank you!

mastersingh24 (Tue, 11 Sep 2018 12:16:05 GMT):
Sure thing

mastersingh24 (Tue, 11 Sep 2018 12:16:24 GMT):
I'm planning to move everything to Alpine in the future

yoheiueda (Tue, 11 Sep 2018 12:17:14 GMT):
that sound great. I didn't know that Alpine supports s390x, too.

mastersingh24 (Tue, 11 Sep 2018 12:17:24 GMT):
it does!

mastersingh24 (Tue, 11 Sep 2018 12:18:25 GMT):
We've already been testing internally at IBM and we moved the IBM Fabric 1.2 images to Alpine. We'll likely switch in open source for the 1.4 release!

yoheiueda (Tue, 11 Sep 2018 12:19:15 GMT):
That's great! thank you

keyman169 (Tue, 11 Sep 2018 12:28:51 GMT):
Has joined the channel.

alexisjanin (Tue, 11 Sep 2018 12:54:06 GMT):
Hello everyone !

alexisjanin (Tue, 11 Sep 2018 12:55:06 GMT):
I'm trying to establish a list of certificates needed by Hyperledger Fabric

alexisjanin (Tue, 11 Sep 2018 12:56:20 GMT):
My understanding is that I need an intermediate CA for TLS certificates (for secure communication between orderer and peers?) and an intermediate CA for transactions signature certificates

alexisjanin (Tue, 11 Sep 2018 12:56:24 GMT):
Am I right?

vikas.kundz (Tue, 11 Sep 2018 13:01:16 GMT):
Has joined the channel.

yacovm (Tue, 11 Sep 2018 13:20:29 GMT):
you can just use a root CA without an intermediate CA

alexisjanin (Tue, 11 Sep 2018 13:21:41 GMT):
Thank @yacovm for you answer, yes for sure but then what kind of certificates do I need?

seshanthS (Tue, 11 Sep 2018 13:22:13 GMT):
hey, How to specify the roles while enrolling an indentity. In endorsing policy we use org1msp.member,org1msp.admin like that. How to specify the role in fabric ca. Thanks.

yacovm (Tue, 11 Sep 2018 13:22:14 GMT):
x509?

alexisjanin (Tue, 11 Sep 2018 13:23:02 GMT):
I mean SSL Server? SSL client? Signature?

yacovm (Tue, 11 Sep 2018 13:26:18 GMT):
no. just x509

yacovm (Tue, 11 Sep 2018 13:26:33 GMT):
a CA certificate is an x509 certificate with `isCA` but turned on

alexisjanin (Tue, 11 Sep 2018 13:29:16 GMT):
Do you mean that Hyperledger Fabric doesn't care about KeyUsage or ExtendedKeyUsage field of the x509v3 standard?

richardfelkl (Tue, 11 Sep 2018 13:47:12 GMT):
Has joined the channel.

richardfelkl (Tue, 11 Sep 2018 14:17:41 GMT):
Hey Guys, is there a way to remove/unjoin peer from specific channel?

osmola (Tue, 11 Sep 2018 14:17:49 GMT):
Has joined the channel.

jiribroulik (Tue, 11 Sep 2018 14:18:56 GMT):
@richardfelkl I would also like to know answer to that question

osmola (Tue, 11 Sep 2018 14:19:25 GMT):
Me too

ColeBoudreau (Tue, 11 Sep 2018 14:24:53 GMT):
Has joined the channel.

ColeBoudreau (Tue, 11 Sep 2018 14:26:37 GMT):
Fabric/docker question. Even though it somewhat defeats the purpose of decentralization, is it possible for peers running in a docker swarm to share their ledger/chaincode db to reduce memory consumption?

pjediny (Tue, 11 Sep 2018 14:28:22 GMT):
Has joined the channel.

lepar (Tue, 11 Sep 2018 14:29:38 GMT):
@richardfelkl Yes, by updating the channel with the necessary configuration to remove the peer

jiribroulik (Tue, 11 Sep 2018 14:34:31 GMT):
@lepar where is the peer in the config?

jiribroulik (Tue, 11 Sep 2018 14:37:33 GMT):

config.txt

lepar (Tue, 11 Sep 2018 16:24:10 GMT):
@jiribroulik I read your question wrong. You can't remove the peer yet but you can revoke the certificate of that peer so he can no longer access it

mublan (Tue, 11 Sep 2018 16:45:54 GMT):
Has joined the channel.

mublan (Tue, 11 Sep 2018 16:45:57 GMT):
If I want to develop a business app, which is better, Ethereum Smart contracts or Hyperledger Fabric? I understand Hyperledger is free and cost nothing to make a transaction, on the other side, Eth uses GAS to make transactions and for that i need money, a im right?

lepar (Tue, 11 Sep 2018 16:57:59 GMT):
@mublan Fabric no doubt

jiribroulik (Tue, 11 Sep 2018 17:15:37 GMT):
@lepar good point. Thank you :)

lepar (Tue, 11 Sep 2018 17:16:58 GMT):
@jiribroulik it makes sense because if he was once part of the channel, then he would need to still have the ledger up to a certain point

jiribroulik (Tue, 11 Sep 2018 17:19:39 GMT):
@lepar that makes sense :)

jiribroulik (Tue, 11 Sep 2018 17:19:39 GMT):
@lepar that makes sence :)

ahmadzafar (Tue, 11 Sep 2018 17:24:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q8QZjTHCwSvvHjayh) @TobiasN Okay fine. But how we can get list of chaincode that is instantiated? Any API ?

JuanSuero (Tue, 11 Sep 2018 17:29:01 GMT):
how would i run multiple peers against a remote shared couchdb cluster? without playing around with the port. i want the same port and DNS but different database for every peer.

JuanSuero (Tue, 11 Sep 2018 17:29:01 GMT):
how would i run multiple peers against a remote shared couchdb cluster? without playing around with the port. i want the same port and DNS but different database for every peer. for example if the company im implementing blockchain solution for has existing couchdb cluster and i just need a database for each peer from that cluster.

kisna (Tue, 11 Sep 2018 17:39:43 GMT):
Any limitations on number of channels as it is a single partition topic. Can you have 1000+ topics on Kafka cluster? Is there a convention of channel, topic, DB names underneath?

yacovm (Tue, 11 Sep 2018 17:39:46 GMT):
@JuanSuero don't do that.... we currently don't support TLS between the couchDB DB and the peer

ESand (Tue, 11 Sep 2018 17:44:19 GMT):
Has joined the channel.

ESand (Tue, 11 Sep 2018 17:45:14 GMT):
Does an application with a _single_ organization need anchor peers? This is my case and I'm getting an error upon attempting to add peers/orderer to a channel

Raycoms (Tue, 11 Sep 2018 18:30:37 GMT):
Hi, I am reading the description of hyperledger fabric in greater detail at the moment but I am a bit confused when it comes to executing certain transactions only on a consensus of nodes

Raycoms (Tue, 11 Sep 2018 18:30:58 GMT):
Don't the other nodes need to know at least the result of this? (In terms of to avoid double spending in the future, etc) ?

Raycoms (Tue, 11 Sep 2018 18:32:52 GMT):
Or does it mean that once I establish such a sub-set consensus, the data we touch with this, will never reach the otherS?

Raycoms (Tue, 11 Sep 2018 18:33:01 GMT):
As in, it will never concern them

ColeBoudreau (Tue, 11 Sep 2018 18:35:07 GMT):
@Raycoms all nodes (within a channel) will receive/execute all transactions in a block from the orderer during the execute phase, but during the validate phase when endorsement happens, only a subset of nodes need to execute the transactions. Once this subset executes them they produce a read/write set and compare this set with the results of the other endorsing nodes. Provided they match it is then that they are sent on to the orderer and finally the rest of the channels nodes.

Raycoms (Tue, 11 Sep 2018 18:36:26 GMT):
Ah okay, so everyone will receive the results of the transaction and persistent them but not everyone has to participate in the validation phase. That makes sense. But if they receive the results, won't they be able to "trace how much someone paid for their carrots" as well?

ColeBoudreau (Tue, 11 Sep 2018 18:38:14 GMT):
By 'trace how much...' do you mean that members of a channel will be able to see other members transactions (including the details of those transactions)?

Raycoms (Tue, 11 Sep 2018 18:42:23 GMT):
At least the results of the transactions they will have to see, no?

Raycoms (Tue, 11 Sep 2018 18:42:34 GMT):
As in : 100$ for member A and 100 carrots less for member B

kid101 (Tue, 11 Sep 2018 18:44:44 GMT):
Has joined the channel.

ColeBoudreau (Tue, 11 Sep 2018 18:45:32 GMT):
Yes, by default all members of a channel can see all contents of the ledger (who did what / what they did). Keep in mind this is channel specific, meaning _only_ members of a channel can see that channel's contents, i.e. the data is private from outside the channel. Optionally, you can add encryption to encrypt data within the channel and obscure its contents, however this adds an extra level of complexity since you have to now manage different encryption keys for different members of the channel

Raycoms (Tue, 11 Sep 2018 18:47:30 GMT):
Ahh okay, now I got it, thanks

ColeBoudreau (Tue, 11 Sep 2018 18:47:40 GMT):
No problem!

kid101 (Tue, 11 Sep 2018 18:48:36 GMT):
I'm new in here. can someone tell me which SDK to use for hyperledger? Node or JAVA? which one is better pros/cons? I can start with either..

parsiya (Tue, 11 Sep 2018 18:55:10 GMT):
Obviously Go, but I am biased.

kid101 (Tue, 11 Sep 2018 18:57:25 GMT):
There is a GO sdk as well? I can only find Node and Java SDK on https://hyperledger-fabric.readthedocs.io/en/release-1.2/getting_started.html

kid101 (Tue, 11 Sep 2018 18:58:16 GMT):
that's not in the official list yet

kid101 (Tue, 11 Sep 2018 18:58:16 GMT):
I mean GO is not in the official list yet

jrosmith (Tue, 11 Sep 2018 19:01:30 GMT):
@kid101 fabric itself is written in go. you also may want to check out sdk channels: #fabric-sdk #fabric-sdk-go #fabric-sdk-node #fabric-sdk-java #fabric-sdk-py

kid101 (Tue, 11 Sep 2018 19:03:26 GMT):
@jrosmith thanks. usually what's the SDK you see people following most? probably I'll jump on the same boat hoping better community support at the end of the day in case my boat starts to sink

kid101 (Tue, 11 Sep 2018 19:03:31 GMT):
:)

jrosmith (Tue, 11 Sep 2018 19:05:01 GMT):
@kid101 i use node at work but have also poked around in go. both are good sdks with active communities. i havent used or interacted with the java/python communities so i cant comment

ESand (Tue, 11 Sep 2018 20:24:40 GMT):
Does an application with a _single_ organization need anchor peers?

ESand (Tue, 11 Sep 2018 20:25:28 GMT):
Like will everything work okay in my single organization application if I simply comment out the lines about Anchor peers in the configtx file?

yacovm (Tue, 11 Sep 2018 20:26:22 GMT):
no, it doesn't

yacovm (Tue, 11 Sep 2018 20:26:58 GMT):
but why are you using a blockchain if you only need 1 organization?

yacovm (Tue, 11 Sep 2018 20:27:02 GMT):
use a database

yacovm (Tue, 11 Sep 2018 20:27:45 GMT):
@kid101 yes there is a go SDK, it's probably the most advanced feature-wise than the rest.

yacovm (Tue, 11 Sep 2018 20:28:16 GMT):
also the developers of it are pretty active and help out in the #fabric-sdk-go channel

ESand (Tue, 11 Sep 2018 20:43:49 GMT):
@yacovm The goal wouldn't be to have multiple companies agreeing upon the state of an asset, it would be to have multiple computers within a single company to agree upon the state of an asset

ESand (Tue, 11 Sep 2018 21:23:55 GMT):
as in i would need a bunch of peers from just the single organization. Is that a sensible use case for blockchain?

Raycoms (Wed, 12 Sep 2018 00:29:51 GMT):
About the execute-order protocol of fabric, so the write set is created, sent back to the client and then sent to the ordering protocol, what happens if meanwhile the state changes, would that lead to an abort of the writeset?

Raycoms (Wed, 12 Sep 2018 00:31:14 GMT):
As in, would fabric check the readset and abort if it finds conflicts

mahbub227 (Wed, 12 Sep 2018 02:12:22 GMT):
Has joined the channel.

mahbub227 (Wed, 12 Sep 2018 02:17:44 GMT):
how do i know how many peers and users do i need for an organization? can anyone explain me with example? tia

yulong12 (Wed, 12 Sep 2018 03:12:48 GMT):
Hi everyone ,when I add an org to a fabric which has been launched base this tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html#bring-org3-into-the-channel-with-the-script,I happen a problem. when I execute this command peer `channel join -b mychannel.block` the logs is ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7051: failed to create new connection: context deadline exceeded ```

yulong12 (Wed, 12 Sep 2018 03:13:20 GMT):
So who can help me?

TobiasN (Wed, 12 Sep 2018 05:24:49 GMT):
@ahmadzafar i don't know, I mean, I think it is currently not available with the chaincode-API, but I think you could maintain such a list with a separate chaincode.

yacovm (Wed, 12 Sep 2018 05:44:23 GMT):
@Raycoms yep if there is a dependency conflict

Jayshree_Devan (Wed, 12 Sep 2018 06:26:59 GMT):
Hi all, if there are two organizations ....and org1 peers are down ...can we invoke the data

Rachit_gaur (Wed, 12 Sep 2018 06:33:40 GMT):
How to manage the access of peers, like which peer can query and which can invoke a transaction?

parsiya (Wed, 12 Sep 2018 06:38:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pdAB7kFsFn4wywBc9) @Rachit_gaur https://godoc.org/github.com/hyperledger/fabric/core/chaincode/lib/cid If a peer is on the channel, you can do authorization checks inside chaincode with cid.

parsiya (Wed, 12 Sep 2018 06:38:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pdAB7kFsFn4wywBc9) @Rachit_gaur https://godoc.org/github.com/hyperledger/fabric/core/chaincode/lib/cid You can do authorization checks inside chaincode with cid.

sheetal-hlf (Wed, 12 Sep 2018 06:59:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pdAB7kFsFn4wywBc9) @Rachit_gaur connection-profile gives the ability with endorsingPeer and chaincodeQuery flags

sheetal-hlf (Wed, 12 Sep 2018 07:00:11 GMT):
https://fabric-sdk-node.github.io/tutorial-network-config.html

sheetal-hlf (Wed, 12 Sep 2018 07:01:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=34paBBdgwq5bMyoko) @Jayshree_Devan I think if the endorsement policy is OR then it should be possible

Luxii (Wed, 12 Sep 2018 07:07:36 GMT):
What crypto-material does a client need to send Install or Instantiate request to peer?

Rachit_gaur (Wed, 12 Sep 2018 07:27:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PZyLSEwnYdnbMxCJX) @parsiya But how would i check for a peer id?

Rachit_gaur (Wed, 12 Sep 2018 07:29:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9k2syofevB2vCGZqc) @sheetal-hlf Yes but i need to achieve this data hiding via chaincode itself..is there a way to do so?

Rachit_gaur (Wed, 12 Sep 2018 07:30:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cAjjmLuqFQmco3TLX) @Luxii ca file and tls root cert files

Luxii (Wed, 12 Sep 2018 07:40:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PKcxgKTQtBBWuBK2q) @Rachit_gaur Dont we need that peer's tls cert ?

Rachit_gaur (Wed, 12 Sep 2018 07:41:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fTCbwSaDR8GNgEBWd) @Luxii as i said we need ca file and tls root cert files(files meaning the certs of all endorsers)

Rachit_gaur (Wed, 12 Sep 2018 07:45:08 GMT):
Can i use the Access Control Lists feature to manage what the peers see? and how to achieve partial data hiding using same such that a few elements are hidden from querying for other members

jonlee300 (Wed, 12 Sep 2018 07:46:19 GMT):
https://github.com/hyperledger/composer/issues/4376

jonlee300 (Wed, 12 Sep 2018 07:47:10 GMT):
"Command succeeded" in CLI but actually not updated the blockchain

jonlee300 (Wed, 12 Sep 2018 07:47:20 GMT):
Have anyone encountered this problem?

jonlee300 (Wed, 12 Sep 2018 07:47:33 GMT):
Thanks in advance.

Luxii (Wed, 12 Sep 2018 07:47:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jShBAHpTqgw2krtwE) @Rachit_gaur What ca file do we need and why do we need that ?

Rachit_gaur (Wed, 12 Sep 2018 07:48:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sz9n2LJGQhSpZA7Fq) @Luxii refer to https://hyperledger-fabric.readthedocs.io

Luxii (Wed, 12 Sep 2018 07:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6NWK7RbHvPLHXjJCL) @Rachit_gaur Is there any particular section in docs for this ?

VarunVerma (Wed, 12 Sep 2018 08:06:47 GMT):
I am trying to create channel, but it is giving error : ``` 2018-09-11 13:57:37.378 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` While printing Orderer logs , It is giving this error: ``` 2018-09-11 15:18:39.291 UTC [cauthdsl] deduplicate -> ERRO 027 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.indirasoft.com")) for identity 0a074f7267314d535012a2062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943496a434341636d674177494241674952414c4c53597278764b4f753075616c6b557a61457a315177436759494b6f5a497a6a3045417749776554454c0a4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e68626942470a636d467559326c7a593238784844416142674e5642416f54453239795a7a45756157356b61584a686332396d6443356a62323078487a416442674e5642414d540a466d4e684c6d39795a7a45756157356b61584a686332396d6443356a623230774868634e4d5467774f5445784d544d304f5449785768634e4d6a67774f5441340a4d544d304f544978576a42654d517377435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251470a4131554542784d4e5532467549455a795957356a61584e6a627a45694d434147413155454177775a515752746157354162334a6e4d533570626d5270636d467a0a62325a304c6d4e766254425a4d424d4742797147534d34394167454743437147534d34394177454841304941424f7244714b35334e30643272563945345641430a32595345477043324d533467306d5556694b47576961704d48624c6a7979492b53386b424476476547554d4e446f66383650736a75735a7864554435556a54350a4957576a5454424c4d41344741315564447745422f775145417749486744414d42674e5648524d4241663845416a41414d437347413155644977516b4d434b410a494d673871332b326f2f4d67327445635842734436577076324a3059367338304c6c6c41372f4d64353079534d416f4743437147534d343942414d43413063410a4d455143494437363374376d656f67424e6843767862394f79347732744e5a4b4d416c4651714f5557627836362f324e416942796c38657877786561335861360a2b6242316131624f47416c58746f4933486a76765943457a364c43624c773d3d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2018-09-11 15:18:39.291 UTC [msp] DeserializeIdentity -> INFO 028 Obtaining identity 2018-09-11 15:18:39.292 UTC [cauthdsl] deduplicate -> ERRO 029 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.indirasoft.com")) for identity 0a074f7267314d535012a2062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943496a434341636d674177494241674952414c4c53597278764b4f753075616c6b557a61457a315177436759494b6f5a497a6a3045417749776554454c0a4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e68626942470a636d467559326c7a593238784844416142674e5642416f54453239795a7a45756157356b61584a686332396d6443356a62323078487a416442674e5642414d540a466d4e684c6d39795a7a45756157356b61584a686332396d6443356a623230774868634e4d5467774f5445784d544d304f5449785768634e4d6a67774f5441340a4d544d304f544978576a42654d517377435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251470a4131554542784d4e5532467549455a795957356a61584e6a627a45694d434147413155454177775a515752746157354162334a6e4d533570626d5270636d467a0a62325a304c6d4e766254425a4d424d4742797147534d34394167454743437147534d34394177454841304941424f7244714b35334e30643272563945345641430a32595345477043324d533467306d5556694b47576961704d48624c6a7979492b53386b424476476547554d4e446f66383650736a75735a7864554435556a54350a4957576a5454424c4d41344741315564447745422f775145417749486744414d42674e5648524d4241663845416a41414d437347413155644977516b4d434b410a494d673871332b326f2f4d67327445635842734436577076324a3059367338304c6c6c41372f4d64353079534d416f4743437147534d343942414d43413063410a4d455143494437363374376d656f67424e6843767862394f79347732744e5a4b4d416c4651714f5557627836362f324e416942796c38657877786561335861360a2b6242316131624f47416c58746f4933486a76765943457a364c43624c773d3d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2018-09-11 15:18:39.292 UTC [orderer/common/broadcast] Handle -> WARN 02a [channel: indirasoft-channel] Rejecting broadcast of config message from 172.19.0.13:51492 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining 2018-09-11 15:18:39.293 UTC [common/deliver] Handle -> WARN 02b Error reading from 172.19.0.13:51490: rpc error: code = Canceled desc = context canceled ```

halilkalkan (Wed, 12 Sep 2018 08:12:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b7Anu73oy5KoYfnXF) @jonlee300 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GKNQi37NhLYpzMoWq) @yoheiueda Yacovm suggested a syntax but I cannot find it in official documents, can you reference it @yacovm? Most probably the invoke command doesn't meet endorsement policy, can you check log files for you peer, docker logs -f $yourpeername

halilkalkan (Wed, 12 Sep 2018 08:12:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b7Anu73oy5KoYfnXF) @jonlee300 Most probably the invoke command doesn't meet endorsement policy, can you check log files for you peer, docker logs -f $yourpeername

jonlee300 (Wed, 12 Sep 2018 08:18:47 GMT):
@halilkalkan Noun does not match ... do you think it is an issue? `2018-09-12T02:52:19.334Z [a2fbd509] DEBUG :AccessController :matchRule() > Resource {id=org.hyperledger.composer.system.TransactionRegistry#org.hyperledger.composer.system.AddParticipant}, READ, {"$class":"org.hyperledger.composer.system.NetworkAdmin","participantId":"admin"}, {"$class":"org.hyperledger.composer.system.AddParticipant","resources":[{"$class":"tech.threehundredcubits.eBL.Shipper","entityId":"Esprit","entityName":"Esprit","email":"o@hingjlee.net","address":{"$class":"tech.threehundredcubits.eBL.Address","country":"UK"}}],"targetRegistry":"resource:org.hyperledger.composer.system.ParticipantRegistry#tech.threehundredcubits.eBL.Shipper","transactionId":"a2fbd509e36b4a68658c411f8e0504088cb4db2e6e18ae1db70827f5c3e3e07f","timestamp":"2018-09-12T02:52:19.249Z"}, [object Object] 2018-09-12T02:52:19.334Z [a2fbd509] DEBUG :AccessController :matchVerb() > READ, [object Object] 2018-09-12T02:52:19.334Z [a2fbd509] DEBUG :AccessController :matchVerb() < true 2018-09-12T02:52:19.334Z [a2fbd509] DEBUG :AccessController :matchNoun() > org.hyperledger.composer.system.TransactionRegistry#org.hyperledger.composer.system.AddParticipant, [object Object] 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :matchNoun() < false 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :matchRule() Noun does not match 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :matchRule() < false 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :Processing rule SystemACL undefined 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :Processing rule NetworkAd undefined 2018-09-12T02:52:19.335Z [a2fbd509] DEBUG :AccessController :check() `

yj511608130 (Wed, 12 Sep 2018 08:59:11 GMT):
hellow everybody , i want to know what is system channel.

yj511608130 (Wed, 12 Sep 2018 09:00:11 GMT):
i have read this :The ordering service is bootstrapped with a genesis block on the system channel. This block carries a configuration transaction that defines the ordering service poroperties. The current production implementation consists of ordering-ser- vice nodes (OSNs) that implement the operations described here and communicate through the system channel.

yj511608130 (Wed, 12 Sep 2018 09:02:40 GMT):
does one orderer communicate what another orderer through system channel ,just like peer communicates with each other through standard channel with gossip?

yj511608130 (Wed, 12 Sep 2018 09:03:35 GMT):
sorry , "what " -> "with ", in the last line

yj511608130 (Wed, 12 Sep 2018 09:04:22 GMT):
i am confused

Jayshree_Devan (Wed, 12 Sep 2018 09:15:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PYxi7cXNhXRTDJc53) @sheetal-hlf thank you it worked

ahmadzafar (Wed, 12 Sep 2018 09:58:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uasfzJX8HrEEK8RuS) @TobiasN What is github.com/hyperledger/fabric/protos/utils equivalence in node.js ?

sheetal-hlf (Wed, 12 Sep 2018 10:14:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qt3Sx2YLmZuHLHZJw) @Rachit_gaur would private data help here?

MuhammedHafil (Wed, 12 Sep 2018 10:54:16 GMT):
composer-reset-server existing with Error: invalid status code: 19409 , any idea?

Logi (Wed, 12 Sep 2018 12:02:49 GMT):
Team - I am in process of setting up hyperledger network, but need some assistance. It is for "One Org" but multiple channels. Basically for one company with set of departments who should interact in defined channel. let's say , HR Dept, Finance Dept, & so on.. So respective channels shoudl be created, so that department can interact & invoke the right chaincode to write / read

yoheiueda (Wed, 12 Sep 2018 13:33:56 GMT):
Hi. I am running Fabric 1.2.0 with CouchDB. Our chaincode works fine when the load is low, but I got the following error when I increased the number of query requests per second. I only tested queries, and there was no commit during measurement.

yoheiueda (Wed, 12 Sep 2018 13:34:01 GMT):
>>> 2018-09-12 12:55:25.690 UTC [shim] handleGetState -> ERRO 1a71 [03af9737] GetState received error ERROR 2018-09-12 12:55:25.690 UTC [****] Warningf -> WARN 1a73 dispatch failed: GET_STATE failed: transaction ID: 03af973780348e1924b4d46271af9ea831b40f1b0d9bfce1605b3b7c39579723: Get http: //couchdb01:5984/mychannel_mycc/*******-fabric-v1__Config?attachments=true: dial tcp 192.168.160.6:5984: connect: cannot assign requested address 2018-09-12 12:55:26.476 UTC [shim] handleQueryStateClose -> ERRO 1a74 [ab5881d3] Received ERROR 2018-09-12 12:55:26.477 UTC [shim] handleGetState -> ERRO 1a75 [ab5881d3] GetState received error ERROR 2018-09-12 12:55:26.477 UTC [****] Errorf -> ERRO 1a76 failed to get Config from datastore: GET_STATE failed: transaction ID: ab5881d30fb5759e39ead7eba4e5a8e88aa9f3f9c093a8b5186ad1538dddb852: no ledger context

yoheiueda (Wed, 12 Sep 2018 13:34:34 GMT):
2018-09-12 12:55:25.690 UTC [shim] handleGetState -> ERRO 1a71 [03af9737] GetState received error ERROR 2018-09-12 12:55:25.690 UTC [****] Warningf -> WARN 1a73 dispatch failed: GET_STATE failed: transaction ID: 03af973780348e1924b4d46271af9ea831b40f1b0d9bfce1605b3b7c39579723: Get http: //couchdb01:5984/mychannel_mycc/*******-fabric-v1__Config?attachments=true: dial tcp 192.168.160.6:5984: connect: cannot assign requested address 2018-09-12 12:55:26.476 UTC [shim] handleQueryStateClose -> ERRO 1a74 [ab5881d3] Received ERROR 2018-09-12 12:55:26.477 UTC [shim] handleGetState -> ERRO 1a75 [ab5881d3] GetState received error ERROR 2018-09-12 12:55:26.477 UTC [****] Errorf -> ERRO 1a76 failed to get Config from datastore: GET_STATE failed: transaction ID: ab5881d30fb5759e39ead7eba4e5a8e88aa9f3f9c093a8b5186ad1538dddb852: no ledger context

yoheiueda (Wed, 12 Sep 2018 13:36:12 GMT):
Looks like peer cannot connect to CoucbDB. Are these error known issues when load is high? Do I need to tune some parameters of CouchDB?

MuhammadSalah (Wed, 12 Sep 2018 14:11:12 GMT):
Is there an ability to add transient parameters in a chaincode to chaincode invocation?

alpha 32 (Wed, 12 Sep 2018 15:06:16 GMT):
I got this error when installing a network:

alpha 32 (Wed, 12 Sep 2018 15:06:18 GMT):
⠹ Installing business network. This may take a minute...E0910 11:19:38.863677264 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0910 11:19:38.863881786 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0910 11:19:38.864050422 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0910 11:19:38.864206188 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠦ Installing business network. This may take a minute...E0910 11:19:42.220173488 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0910 11:19:42.220375183 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠇ Installing business network. This may take a minute...E0910 11:19:43.220467225 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0910 11:19:43.220994002 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠧ Installing business network. This may take a minute...E0910 11:19:44.757696697 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠙ Installing business network. This may take a minute...E0910 11:19:45.060644317 5532 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

alpha 32 (Wed, 12 Sep 2018 15:06:25 GMT):
DOES anyone know the reason?

jrosmith (Wed, 12 Sep 2018 15:16:22 GMT):
@alpha 32 your ssl certs to communicate with the peer are bad

alpha 32 (Wed, 12 Sep 2018 15:18:02 GMT):
what does bad mean?

alpha 32 (Wed, 12 Sep 2018 15:18:21 GMT):
i copied the cert in the connection.json

alpha 32 (Wed, 12 Sep 2018 15:18:31 GMT):
as said in the tutorial

jrosmith (Wed, 12 Sep 2018 15:27:27 GMT):
the server can't verify the cert. so you are most likely using the wrong cert

shield 2 (Wed, 12 Sep 2018 16:02:17 GMT):
Has joined the channel.

shield 2 (Wed, 12 Sep 2018 16:02:58 GMT):
i got an error command: peer channel join -b xxx but got Error: proposal failed (err: rpc error: code = Unknown desc = error executing chaincode: a syscc should be running (it cannot be launched) cscc:1.1.1)

shield 2 (Wed, 12 Sep 2018 16:03:17 GMT):
what can i do

DennisM330 (Wed, 12 Sep 2018 19:22:36 GMT):
Anyone got an example of using attribute based access control in hyperledger fabric?

yousaf (Wed, 12 Sep 2018 19:26:52 GMT):
yousaf@ubuntu:~/go/src/github.com/hyperledger/fabric-ca$ make fabric-ca-serverBuilding fabric-ca-server in bin directory ... # github.com/hyperledger/fabric-ca/lib lib/server.go:710:23: cert.Issuer.String undefined (type pkix.Name has no field or method String) lib/server.go:711:24: cert.Subject.String undefined (type pkix.Name has no field or method String) Makefile:111: recipe for target 'bin/fabric-ca-server' failed make: *** [bin/fabric-ca-server] Error 2 Sir any solution related to this? I am using "make fabric-ca-server" and it is giving me the error given above.

yousaf (Wed, 12 Sep 2018 19:26:52 GMT):
yousaf@ubuntu:~/go/src/github.com/hyperledger/fabric-ca$ make fabric-ca-server Building fabric-ca-server in bin directory ... # github.com/hyperledger/fabric-ca/lib lib/server.go:710:23: cert.Issuer.String undefined (type pkix.Name has no field or method String) lib/server.go:711:24: cert.Subject.String undefined (type pkix.Name has no field or method String) Makefile:111: recipe for target 'bin/fabric-ca-server' failed make: *** [bin/fabric-ca-server] Error 2 Sir any solution related to this? I am using "make fabric-ca-server" and it is giving me the error given above.

KEVINTYUS (Thu, 13 Sep 2018 00:52:20 GMT):
Has joined the channel.

KEVINTYUS (Thu, 13 Sep 2018 00:53:20 GMT):
i am trying to build a blockchain using the tutorial guide. but when i try to copy & paste as instructed, i get an error about json. please advise. i dont have coding experience.

TobiasN (Thu, 13 Sep 2018 00:56:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KB8LiZs9kDxmm4R3n) @ahmadzafar I can be wrong, but I think, it does not exist jet officially. I guess you should find the *.proto* files in the main repository and to parse all the binary data.

Subhankar 3 (Thu, 13 Sep 2018 02:58:04 GMT):
how to get back a peer in shrink if it goes down or its data gets corrupted.

yoheiueda (Thu, 13 Sep 2018 03:25:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iMAX28XGufStNuhLg) I found that running out of ephemeral ports in peer container causes these errors.

yoheiueda (Thu, 13 Sep 2018 03:27:32 GMT):
When CouchDB can't handle all of requests coming from a peer, then number of ports with the SYN_SENT state increases, and eventually ephemeral ports become running out. Then the peer can't create no more connections.

yoheiueda (Thu, 13 Sep 2018 03:28:08 GMT):
```03:14:21 FIN_WAIT2=1 LISTEN=4 TIME_WAIT=2 ESTABLISHED=2 LAST_ACK=1 03:14:22 FIN_WAIT2=1 LISTEN=4 TIME_WAIT=2 ESTABLISHED=2 LAST_ACK=1 03:14:23 FIN_WAIT2=1 LISTEN=4 TIME_WAIT=147 ESTABLISHED=328 LAST_ACK=1 03:14:24 FIN_WAIT2=1 LISTEN=4 TIME_WAIT=778 ESTABLISHED=798 LAST_ACK=1 03:14:25 FIN_WAIT2=1 LISTEN=4 TIME_WAIT=1354 ESTABLISHED=1118 LAST_ACK=1 03:14:26 FIN_WAIT2=2 LISTEN=4 TIME_WAIT=1902 ESTABLISHED=1497 LAST_ACK=1 FIN_WAIT1=1 03:14:27 LISTEN=4 TIME_WAIT=2388 ESTABLISHED=1873 LAST_ACK=1 03:14:28 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2989 ESTABLISHED=2305 LAST_ACK=1 SYN_SENT=316 03:14:29 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=3087 ESTABLISHED=2476 LAST_ACK=1 SYN_SENT=2909 03:14:31 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2927 ESTABLISHED=2301 LAST_ACK=1 SYN_SENT=5767 03:14:32 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2946 ESTABLISHED=2320 LAST_ACK=1 SYN_SENT=8368 03:14:33 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2923 ESTABLISHED=2330 LAST_ACK=1 SYN_SENT=11265 03:14:35 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2912 ESTABLISHED=2259 LAST_ACK=1 SYN_SENT=14038 03:14:36 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2982 ESTABLISHED=2435 LAST_ACK=1 SYN_SENT=17864 03:14:39 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2963 ESTABLISHED=2386 LAST_ACK=1 SYN_SENT=21931 03:14:41 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2862 ESTABLISHED=2209 LAST_ACK=1 SYN_SENT=23162 03:14:42 FIN_WAIT2=8 LISTEN=4 TIME_WAIT=2862 ESTABLISHED=2212 LAST_ACK=1 SYN_SENT=23159```

yoheiueda (Thu, 13 Sep 2018 03:28:59 GMT):
This statistics shows how the number of connections of each state increased

yoheiueda (Thu, 13 Sep 2018 03:28:59 GMT):
This statistics shows how the number of connections of each state increased in the peer container

yoheiueda (Thu, 13 Sep 2018 03:29:42 GMT):
I also found that even if the load is moderate, I encountered running out of ephemeral ports due to TIME_WAIT ports.

yoheiueda (Thu, 13 Sep 2018 03:30:53 GMT):
```03:20:53 LISTEN=4 TIME_WAIT=2 ESTABLISHED=4 03:20:54 LISTEN=4 TIME_WAIT=2 ESTABLISHED=4 03:20:55 LISTEN=4 TIME_WAIT=676 ESTABLISHED=131 03:20:56 LISTEN=4 TIME_WAIT=1631 ESTABLISHED=66 03:20:57 LISTEN=4 TIME_WAIT=2524 ESTABLISHED=17 SYN_SENT=1 (snip) 03:22:27 LISTEN=4 TIME_WAIT=26957 ESTABLISHED=24 03:22:28 LISTEN=4 TIME_WAIT=27966 ESTABLISHED=29 03:22:30 LISTEN=4 TIME_WAIT=28226 ESTABLISHED=15 03:22:31 LISTEN=4 TIME_WAIT=28226 ESTABLISHED=15```

yoheiueda (Thu, 13 Sep 2018 03:31:27 GMT):
Does anyone have ideas how to handle this TIME_WAIT ports in the peer container with CouchDB?

yoheiueda (Thu, 13 Sep 2018 03:31:27 GMT):
I confirmed that `sudo sysctl net.ipv4.tcp_tw_reuse=1` alleviated this TIME_WAIT. `sudo sysctl net.ipv4.tcp_tw_recycle=1` was more effective, but this option is deprecated in the latest Linux kernel. Anyway, these are workarounds, and did not fix the root cause.

yoheiueda (Thu, 13 Sep 2018 03:31:27 GMT):
I confirmed that `sudo sysctl net.ipv4.tcp_tw_reuse=1` alleviates this TIME_WAIT. `sudo sysctl net.ipv4.tcp_tw_recycle=1` was more effective, but this option is deprecated in the latest Linux kernel. Anyway, these are workarounds, and did not fix the root cause.

yoheiueda (Thu, 13 Sep 2018 03:31:27 GMT):
I confirmed that `sudo sysctl net.ipv4.tcp_tw_reuse=1` alleviates this TIME_WAIT issue. `sudo sysctl net.ipv4.tcp_tw_recycle=1` was more effective, but this option is deprecated in the latest Linux kernel. Anyway, these are workarounds, and did not fix the root cause.

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR, the connections to CoucbDB can be reused, but the above result possibly shows that the reuse mechanism does not work sufficiently for some reason. https://gerrit.hyperledger.org/r/c/8317/

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, the connections to CoucbDB should be reused, but the above result possibly shows that the reuse mechanism does not work sufficiently for some reason.

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, the connections to CoucbDB should be reused, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason.

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, peer tries to reuses the connections to CoucbDB, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason.

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, peer tries to reuse the connections to CoucbDB, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason.

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to incrase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, peer tries to reuse the connections to CoucbDB, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason. Does anyone have any ideas how to diagnose this connection reuse issue?

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to increase max connetion from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, peer tries to reuse the connections to CoucbDB, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason. Does anyone have any ideas how to diagnose this connection reuse issue?

yoheiueda (Thu, 13 Sep 2018 03:32:30 GMT):
I tried to increase max connection from 2048 to 4096, but it did not help. https://jira.hyperledger.org/browse/FAB-2724 According to this CR https://gerrit.hyperledger.org/r/c/8317/, peer tries to reuse the connections to CoucbDB, but the above result possibly indicates that the reuse mechanism does not work sufficiently for some reason. Does anyone have any ideas how to diagnose this connection reuse issue?

jam.lam (Thu, 13 Sep 2018 04:28:52 GMT):
Has joined the channel.

jam.lam (Thu, 13 Sep 2018 04:28:57 GMT):
hi guys i have question about fabric-kafka integration Since we use concensus mode via Kafka, and 1 channel are mapped to 1 topics in kafka with single partition. How to handle hard disk extend in kafka side? In my understanding, kafka handle extend storage via multi-parittion if my fabric channel data hit a peak that kafka single-partition topics doesn't have enough space to store data, how to handle this case?

TobiasN (Thu, 13 Sep 2018 05:19:58 GMT):
@jam.lam Yes, you will hit a limit of transactions in a single channel. The single Kafka partition should not be the bottleneck. But you can make more channels, split transactions on them to many channels and from time to time share a hash or something to allow validation.

yoheiueda (Thu, 13 Sep 2018 05:32:45 GMT):
@TobiasN Do you know wether the planned Raft consensus mode will resolve the limitation of the single Kafka partition?

TobiasN (Thu, 13 Sep 2018 05:47:13 GMT):
@yoheiueda no

yoheiueda (Thu, 13 Sep 2018 05:48:38 GMT):
I see. Thank you! Probably, we need to use LVM and resizefs when we need more filesystem space for orderer.

riyasoni42 (Thu, 13 Sep 2018 05:53:47 GMT):
Hello When I am running ./byfn.sh -m up command after installing all the prerequisites and platform specific binaries, I am getting below errors :mountain_bicyclist_tone3: Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed I am working on Window

riyasoni42 (Thu, 13 Sep 2018 05:53:47 GMT):
Hello When I am running ./byfn.sh -m up command after installing all the prerequisites and platform specific binaries, I am getting below errors :mountain_bicyclist_tone3: Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed I am working on Windows

Rachit_gaur (Thu, 13 Sep 2018 06:33:08 GMT):
i want to encrypt specific keys of my json..what package should i use to encrypt ? is there an example for same?

Rachit_gaur (Thu, 13 Sep 2018 06:34:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3gmGJ2hBuJpvNCdS) @riyasoni42 try clearing the existing network config...use the command ./byfn.sh down and make sure the crypto-config folder is deleted also channel-artifacts folder is empty

Rachit_gaur (Thu, 13 Sep 2018 06:34:20 GMT):
i want to encrypt specific keys of my json..what package should i use to encrypt ? is there an example for same?

RN2so (Thu, 13 Sep 2018 06:40:14 GMT):
Has joined the channel.

ahmadzafar (Thu, 13 Sep 2018 07:14:59 GMT):
How we can get chaincode name from stub.getSignedProposal(); in node.js chaincode ?

jam.lam (Thu, 13 Sep 2018 07:42:26 GMT):
@TobiasN I see. Thanks a lot!

Luxii (Thu, 13 Sep 2018 08:40:42 GMT):
How do you add new peer to an org - 1. with its crypto-material already generated ? 2. without its crypto-material already generated ?

vineetmishra (Thu, 13 Sep 2018 08:52:34 GMT):
i am writing unit testing for chaincode, but it showing error regarding package i followed this reference https://www.ibm.com/developerworks/cloud/library/cl-ibm-blockchain-chaincode-testing-using-golang/index.html

vineetmishra (Thu, 13 Sep 2018 08:52:44 GMT):
any one has any idea

vineetmishra (Thu, 13 Sep 2018 08:52:53 GMT):
or someone done it before

endera (Thu, 13 Sep 2018 09:53:31 GMT):
Has joined the channel.

vartika.visnoi (Thu, 13 Sep 2018 10:06:43 GMT):
Has joined the channel.

vartika.visnoi (Thu, 13 Sep 2018 10:23:35 GMT):

Clipboard - September 13, 2018 3:53 PM

vartika.visnoi (Thu, 13 Sep 2018 10:24:24 GMT):
i am getting the above error while running query.js for fabcar app from fabric -samples

vartika.visnoi (Thu, 13 Sep 2018 10:24:45 GMT):
how to resolve this

jinyu18 (Thu, 13 Sep 2018 10:28:17 GMT):
Has joined the channel.

dave.enyeart (Thu, 13 Sep 2018 11:45:24 GMT):
@yoheiueda please open a jira bug for couchdb availability under high load, and make it clear which optimizations you recommend, and what questions still remain. really appreciate your help troubleshooting this one.

yoheiueda (Thu, 13 Sep 2018 11:46:55 GMT):
OK. I will open an JIRA issue for the CouchDB problem.

dave.enyeart (Thu, 13 Sep 2018 11:50:29 GMT):
@yoheiueda actually i recommend open it as a story like 'Improve couchdb availability under high load' and then have a child subtask for each different aspect so that we can track each

yoheiueda (Thu, 13 Sep 2018 11:51:09 GMT):
I see. I'll do so in a few days.

dave.enyeart (Thu, 13 Sep 2018 11:51:52 GMT):
mention me or ping me when they are ready

yoheiueda (Thu, 13 Sep 2018 11:54:13 GMT):
sure

Switch2Logic (Thu, 13 Sep 2018 12:41:45 GMT):
Hey guys. is there a difference between Fabric-CA and Fabric-membersrvc?

halilkalkan (Thu, 13 Sep 2018 12:56:55 GMT):
Hi team, what is the corresponding role for Hyperledger Composer participants in Hyperledger Fabric? I couldn't figure out. We can easily create acl files for participants in Composer but I cannot find a way to do the same thing on Hyperledger Fabric environment.

waleed (Thu, 13 Sep 2018 12:58:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DXwRJ7Dspq64A3djH) @halilkalkan this may help :) https://hyperledger-fabric.readthedocs.io/en/release-1.2/access_control.html

waleed (Thu, 13 Sep 2018 12:59:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LvLbpEaovzBDMKjWE) and this -> https://openblockchain.readthedocs.io/en/latest/tech/application-ACL/

waleed (Thu, 13 Sep 2018 12:59:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LvLbpEaovzBDMKjWE) and this -> @halilkalkan https://openblockchain.readthedocs.io/en/latest/tech/application-ACL/

waleed (Thu, 13 Sep 2018 12:59:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LvLbpEaovzBDMKjWE) @halilkalkan and this -> https://openblockchain.readthedocs.io/en/latest/tech/application-ACL/

JaydipMakadia (Thu, 13 Sep 2018 13:12:55 GMT):
Has joined the channel.

colincmcc (Thu, 13 Sep 2018 15:14:01 GMT):
Has joined the channel.

jucah (Thu, 13 Sep 2018 17:00:45 GMT):
Has joined the channel.

npc0405 (Thu, 13 Sep 2018 17:40:59 GMT):
After renaming/adding the orgs in network config; How can I do changes related to affiliations after renaming orgs it still shows org1 and org2 inside ca container fabric-ca-server-config.yaml any idea?

jvsclp (Thu, 13 Sep 2018 18:03:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2DuugpKL4tsB7Swqr) @npc0405 How are you setting up the affiliations section of your fabric-ca-server-config.yaml? The #fabric-ca channel will be able to provide more help.

plato (Thu, 13 Sep 2018 19:06:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2DuugpKL4tsB7Swqr) @npc0405 if you want to have one Ca for both Orgs then go inside the Ca docker and change the affiliation inside fabric-ca-server-config.yaml and save it then restart the docker so you can send those affiliation as department by sdk to register your users

gen_el (Thu, 13 Sep 2018 19:18:37 GMT):
How do i update a consortium org member list?

npc0405 (Fri, 14 Sep 2018 01:28:37 GMT):
Thanks @jvsclp and @plato @jvsclp I will check on that channel. @plato This is one way to do.. However whenever I restart the entire network... fabric-ca-server-config.yaml gets reset and I will have to do it manually again. Is there a way to add it permanently, with the help of command or nodeSDK (for adding orgs on fly).

npc0405 (Fri, 14 Sep 2018 01:30:21 GMT):
https://stackoverflow.com/questions/48836728/unable-to-enroll-user-in-new-org-added-to-balance-transfer-sample?rq=1 Above link gives some insight... tried but running into another issue as below. Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort

vdods (Fri, 14 Sep 2018 03:50:43 GMT):
Hi all, is there a "mock" implementation of the Endorser GRPC service that actually provides a full mock stub? My goal is to test my app backend and chaincode without needing to stand up a full Fabric network. I see mockEndorserClient, which one would expect to do what I'm describing, but it only carries a pre-defined ProposalResponse.

mrudav.shukla (Fri, 14 Sep 2018 04:03:28 GMT):
Has joined the channel.

atirekg (Fri, 14 Sep 2018 06:12:25 GMT):
Has joined the channel.

atirekg (Fri, 14 Sep 2018 06:13:24 GMT):
Hi All, I am new to Fabric and started through the guide and installed Docker, Docker-Compose, Go, Nodejs

atirekg (Fri, 14 Sep 2018 06:13:55 GMT):
is there any guide how can I start working on Fabric and write the code

anjalinaik (Fri, 14 Sep 2018 07:27:46 GMT):
Hi..can anybody please help me resolve this error from peer logs ``` 2018-09-14 07:21:10.222 UTC [ConnProducer] NewConnection -> ERRO 95f Failed connecting to testf_orderer0:7050 , error: context deadline exceeded 2018-09-14 07:21:10.226 UTC [deliveryClient] connect -> DEBU 960 Connected to 2018-09-14 07:21:10.226 UTC [deliveryClient] connect -> ERRO 961 Failed obtaining connection: Could not connect to any of the endpoints: [testf_orderer0:7050] ```

WouterVanHecke (Fri, 14 Sep 2018 07:47:48 GMT):
I'm trying to create a network with 2 organisations. But when I try to install the chaincode on the second organisation. It says it doesn't have access to the channel, even though I added the peers to the channel. Can someone help me with this? Error: Error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [] creator org [Org2MSP]

VenkataY (Fri, 14 Sep 2018 08:25:23 GMT):
Hi All, did any one tried peer chaincode invoke -C mychannel -n marblesp -c '{"Args":["transferMarble","marble2","jerry"]}'in marbles02_private chaincode sample? when i tried, i am getting following error? Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response:

eidand (Fri, 14 Sep 2018 08:54:10 GMT):
I have a scenario where my assets should not be created directly. They are created via a transaction where a set of rules are checked and if everything checks out ok only then the asset is created. composer-rest-server and playground both allow the creation of assets directly, without having to invoke the transaction. Is it possible to do some sort of setup, maybe some ACL rules which prevent assets being created unless that's done via a specific transaction? I have tried setting a DENY rule on the asset CREATE method and ALLOW on the transaction, but then the transaction does not manage to create anything.

npc0405 (Fri, 14 Sep 2018 08:58:57 GMT):
@WouterVanHecke Try to recreate user, join channel and install chaincode from another org

npc0405 (Fri, 14 Sep 2018 08:59:22 GMT):
also try invoking chaincode from within docker container

eidand (Fri, 14 Sep 2018 09:04:32 GMT):
another issue I am looking up. I have a network composed of a main org let's call it Org1 and a number of other Orgs. The data that goes on the ledger is data related to transactions between Org1 and each of the other orgs. I have one main ledger where all the data gets, all transactions between Org1 and all the other Orgs are there. That main ledger is only joined by a peer belonging to Org1. I then have a number of other ledgers each ledger between Org1 and one of the orgs, so one ledger per pair. Let's say that one of the sub;edgers is joined by Org1 and Org2 and this time a subset of the data is on that ;edger, only the transactions between Org1 and Org2 are there and so on and so forth. The data gets updated, Org1 can update the main Ledger in which case I need the same data on the secondary ledgers to update accordingly. The other orgs can also update the data on the secondary ledgers, in which case I need the data on the main ledger to be updated as well. In this scenario, what would be the best way to keep data updated on all channels?

simonmullaney (Fri, 14 Sep 2018 10:27:38 GMT):
Has anyone any resources for off chain storage options for Hyperledger Fabric?

krabradosty (Fri, 14 Sep 2018 11:37:44 GMT):
Hi! I'm playing with fabcar example from fabric-sample (v1.2.0). I have two problems: 1. I run Fabric by `./startFabric node`. After it successfully completed, I can execute enrollAdmin.js, registerUser.js, query.js. But invoke.js finish with timeout error (Transaction proposal was bad) 2. If I want to start Fabric with chaincode written in Go, I execute `./startFabric` and get error during installing chaincode: ``` # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2018-09-14 10:34:59.723 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-09-14 10:34:59.758 UTC [cli/common] readBlock -> INFO 002 Received block: 0 # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2018-09-14 10:35:00.031 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-09-14 10:35:00.131 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Creating cli ... Creating cli ... done 2018-09-14 10:35:01.817 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-09-14 10:35:01.817 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-09-14 10:35:02.754 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: 2018-09-14 10:35:02.999 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-09-14 10:35:02.999 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 3a39658e44f3e624c2794a73ebff7b250e813059f589f5221001d9907eb643de: error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown ``` Any ideas?

MuhammedHafil (Fri, 14 Sep 2018 11:57:32 GMT):
what is the post data which i should pass to Earnpoints transaction for described here https://github.com/IBM/customer-loyalty-program/blob/master/lib/logic.js https://github.com/IBM/customer-loyalty-program/blob/master/models/org.clp.biznet.cto In https://github.com/IBM/customer-loyalty-program/blob/master/web-app/public/scripts/member.js they are senting ` var inputData = '{' + '"accountnumber" : "' + formAccountNum + '", ' + '"cardid" : "' + formCardId + '"}'; ` which does not make any sense to me, also in composer api explorer i'am not able to make successful transaction after sending data in any format `{ "$class" : "org.lpm.biznet.EarnPoints", "member" : {"$class": "org.lpm.biznet.Member","accountNumber": "1", "firstName": "1", "lastName": "test", "phoneNumber": "1", "email": "1@test.com", "points": 0, "status": "active"}, "partner" : { "$class": "org.lpm.biznet.Partner", "id": "1", "name": "Kula", "totalPointsSupply": 100000 }, "points" : 10 }` I tried this load anybody? iam getting this error "message": "Invalid JSON data. Found a value that is not a string: [object Object] for relationship RelationshipDeclaration {name=partner, type=org.lpm.biznet.Partner, array=false, optional=false}",

sgaddam (Fri, 14 Sep 2018 12:23:11 GMT):
Getting the below error while setting up CA and Peer using the command "peer node start" Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

sgaddam (Fri, 14 Sep 2018 12:23:58 GMT):
When i was trying with latest fabric version 1.2 i am getting the above error

AndreiLovin (Fri, 14 Sep 2018 13:05:17 GMT):
Has joined the channel.

AndreiLovin (Fri, 14 Sep 2018 13:10:01 GMT):
Hello! I don't know if this is the right place to ask a question about a multi-host deployment issue I've been having... I'm trying to deploy a fabric network using docker swarm on 3 virtual machines. I have created the swarm and connected all 3 hosts; started the containers on all 3 host. My question is: I'm able to inspect the overlay network and see all 3 hosts, but from the containers perspective ... I'm seeing only the containers that were created in that host. Should I be able to see all the containers inside the network, the total of all the hosts?

yigitpolat (Fri, 14 Sep 2018 13:48:38 GMT):
Has joined the channel.

lanhray (Fri, 14 Sep 2018 15:33:01 GMT):
I'm trying to install hyperledger on multiple host and make them communicate but i couldn't find anything online about installing hyperledger on multiple host. Does anyone have a solution to that, please kindly share

krabradosty (Fri, 14 Sep 2018 16:14:16 GMT):
@lanhray see Hyperledger Cello project. You can use Ansible for multi-host deployment

NicolasHuray (Fri, 14 Sep 2018 16:21:30 GMT):
Has joined the channel.

NicolasHuray (Fri, 14 Sep 2018 16:22:21 GMT):
Hi everyone, I'm trying to install Fabric on Kubernetes using an Helm Chart. Right now I'm just trying to install it in local with Minikube but it seems already quite complex.

NicolasHuray (Fri, 14 Sep 2018 16:25:03 GMT):
So I'm wondering if the Fabric team already tried to deploy Fabric on Kubernetes before on a multi-host environment and if there's something planned to create an Helm package (or Operator) in the future

qizhang (Fri, 14 Sep 2018 17:13:30 GMT):
I assume the following code does the transaction simulation, but why the read lock is acquired at the end, not the beginning, of this function? ```func (txmgr *LockBasedTxMgr) NewTxSimulator(txid string) (ledger.TxSimulator, error) { logger.Debugf("constructing new tx simulator") s, err := newLockBasedTxSimulator(txmgr, txid) if err != nil { return nil, err } txmgr.commitRWLock.RLock() return s, nil }```

mrudav.shukla (Fri, 14 Sep 2018 18:35:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x8aqnymtHq3nMesCA) @lanhray You can start with this one: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f.

mrudav.shukla (Fri, 14 Sep 2018 18:37:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DGkeGj8kNWdHpwGPR) @AndreiLovin I've a similar architecture deployed. And I do not see the containers of all the hosts. We can just see the containers of that particular host over there. However, we can see the peers connected to that overlay network.

mrudav.shukla (Fri, 14 Sep 2018 18:41:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q7A6Q4mKohkKaXfqC) @MuhammedHafil This question pertains to Hyperledger Composer. So let's ask this one in #composer channel.

mrudav.shukla (Fri, 14 Sep 2018 18:45:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P3DoSq5bn242x7Mwv) @WouterVanHecke These kind of errors usually comes up due to errors in docker composer files. In my case I faced this error when I supplied incorrect value for "CORE_PEER_LOCALMSPID" in peer's configuration file.

mrudav.shukla (Fri, 14 Sep 2018 18:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H4a4Fs9bXfg7vhqiC) @atirekg The official fabric docs will serve as a great starting point. Read https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html.

mrudav.shukla (Fri, 14 Sep 2018 18:55:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EoSgnJtvgzbXZXS2t) @gen_el So by update if you mean adding an org to the existing consortium, this might help: https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html

singh 31 (Fri, 14 Sep 2018 18:55:45 GMT):
Has joined the channel.

qizhang (Fri, 14 Sep 2018 19:38:44 GMT):
Could anyone explain what this function is doing, thx? https://github.com/hyperledger/fabric/blob/release-1.2/core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_txmgr.go#L131

qizhang (Fri, 14 Sep 2018 19:38:44 GMT):
Could anyone explain what this function does, thx? https://github.com/hyperledger/fabric/blob/release-1.2/core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_txmgr.go#L131

pensu (Sat, 15 Sep 2018 06:05:19 GMT):
Has joined the channel.

pensu (Sat, 15 Sep 2018 06:05:27 GMT):
Hi guys, I am trying to install composer-cli on my mac, the install goes successful, but somehow I can't find the command: Peeyushs-MacBook-Pro:fabric-dev-servers peeyush$ npm install -g composer-cli@0.20 --python=python2.7 /usr/local/bin/composer -> /usr/local/lib/node_modules/composer-cli/cli.js /usr/local/lib └── composer-cli@0.20.0 Peeyushs-MacBook-Pro:fabric-dev-servers peeyush$ composer-cli -bash: composer-cli: command not found Can anyone please help me figure out what am I missing here?

arindammondal91 (Sat, 15 Sep 2018 09:11:19 GMT):
Has joined the channel.

kulbirgr8 (Sat, 15 Sep 2018 10:48:14 GMT):
i am working on hyperledger fabric, i developed my own smart contract its working fine , did query invoke and added many more functions to it . Now what i want is to integrate it with an android app so that user can directly invoke or query data in hyperledger fabric from the android app. So what will be the best solution for this?

bestsun (Sat, 15 Sep 2018 12:04:43 GMT):
I saw some people applied threshold signature or multi-signature to Hyperledger Fabric, who can provide the related code?

mrudav.shukla (Sat, 15 Sep 2018 14:51:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oZBjvBM7Ckeh8hpvn) @kulbirgr8 To interact with the fabric network, you either have to start with SDK. You can refer to SDK documentation here: https://hyperledger-fabric.readthedocs.io/en/release-1.2/getting_started.html#hyperledger-fabric-sdks. These SDKs provides functions to interact with the fabric network. Alternatively, you can also use Hyperledger Composer. However, when you use composer, you'll have to create a business network archive file and deploy that on the Fabric network. Next, you use either composer SDK or REST server to interact with the network. References: https://hyperledger.github.io/composer/v0.19/introduction/introduction.html

lakshmankashyap (Sat, 15 Sep 2018 18:18:34 GMT):
Has joined the channel.

lakshmankashyap (Sat, 15 Sep 2018 18:19:20 GMT):
i am phase this ``` ``` Error: No such image: dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba fabric-samples/fabcar$ node query.js Store path:/home/lakshman/Documents/.trashTemp/fabric-samples/fabcar/hfc-key-store (node:13036) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead Successfully loaded user1 from persistence ``` ```

Jgnuid (Sat, 15 Sep 2018 19:36:50 GMT):
Hi

Jgnuid (Sat, 15 Sep 2018 19:37:26 GMT):
This is the right channel about a conceptual question about the blockchain structure in hyperledger?

yousaf (Sat, 15 Sep 2018 21:47:33 GMT):
I am adding a new consortium to create new channel in my existing network (in configtx.yaml file). But getting error of "unknown consortium name" while issuing command peer channel create. Any solution?

waxer (Sun, 16 Sep 2018 00:53:31 GMT):
Has joined the channel.

waxer (Sun, 16 Sep 2018 00:58:19 GMT):
@yousaf , I'm not an expert. You don't need to create an Orderer Genesis Block update for that?

SaadAnwar (Sun, 16 Sep 2018 07:33:57 GMT):
Has joined the channel.

SaadAnwar (Sun, 16 Sep 2018 07:34:25 GMT):
Hi anyone know how to create blockchain framework i mean alternate of hyperledger fabric

yousaf (Sun, 16 Sep 2018 12:59:45 GMT):
@waxer Thanks sir. Fixed :)

yousaf (Sun, 16 Sep 2018 13:00:00 GMT):
HI.....I am trying to add a new organization to the existing channel with having only one peer joined it. ...I am using this command..........peer channel update -f org4_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA.......................and i am getting this error.;-..................Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining Any solution??

Sharuru (Sun, 16 Sep 2018 14:02:33 GMT):
Has joined the channel.

Sharuru (Sun, 16 Sep 2018 14:04:40 GMT):
Hi I am using fabric behind the proxy, the node language version's chaincode can't be instantiated due to no internet access, it there any workarounds? Thank you.

Jgnuid (Sun, 16 Sep 2018 15:54:02 GMT):
@SaadAnwar , you could create a blockchain framework with Fabric. Not sure what is your definition of 'framework'.

VirendraSolanke (Sun, 16 Sep 2018 18:09:27 GMT):
Has joined the channel.

VirendraSolanke (Sun, 16 Sep 2018 18:10:08 GMT):
hi... i am looking to build a network with fabric framework

VirendraSolanke (Sun, 16 Sep 2018 18:10:20 GMT):
can i use docker composer for this?

VirendraSolanke (Sun, 16 Sep 2018 18:12:44 GMT):
I am trying to build a network with one orderer two channel and 4 peers ....please suggest if this can be done using hyperledger composer?

SaadAnwar (Sun, 16 Sep 2018 21:14:46 GMT):
@Jgnuid, I want to build blockchain framework that enables you to build decentralized, secure and reliable blockchain applications. It is designed to allow people, companies, and governments to design custom private or permission blockchains that benefit from the unmatched security of public blockchains, so can you guide which steps I must cover and can hyperledger help me to create blockchain framework.

bdjidi (Sun, 16 Sep 2018 21:29:21 GMT):
Has left the channel.

Jgnuid (Mon, 17 Sep 2018 00:03:18 GMT):
@SaadAnwar , sound like Fabric would solve most of your design requisites. You may also find greate value in looking Hyperledger Composer first too... it has a nice online playground. Then I would consider reading more about Fabric in the docs... how it works and doing some tutorials.

PeterX (Mon, 17 Sep 2018 00:59:50 GMT):
Has joined the channel.

PeterX (Mon, 17 Sep 2018 01:02:57 GMT):
Hi, all, My name is peter, very pleasure to join. From the document: https://hyperledger-fabric.readthedocs.io/en/release-1.2/Fabric-FAQ.html, I found in the question "How do I create a business contract?", Is anyone know how to " use chaincode to create decentralized applications that manage the life cycle of one or multiple types of business contracts, and let end users instantiate instances of contracts within these applications."? Or Is there any examples can show this?

PeterX (Mon, 17 Sep 2018 01:09:18 GMT):
@guoger , Can you help me?

bairathirahul (Mon, 17 Sep 2018 02:10:24 GMT):
@PeterX Can you elaborate with an example?

githubcpc (Mon, 17 Sep 2018 02:25:41 GMT):
Has joined the channel.

githubcpc (Mon, 17 Sep 2018 02:25:45 GMT):
Hi, I had build fabric 1.1 environment and I used fabric-java-sdk to connect.Now I plan to monitor my peer states,but I hava no idea to do.Thanks for any advice.

PeterX (Mon, 17 Sep 2018 03:27:06 GMT):
@bairathirahul , many thanks for your response. Actually I'm investigating how can the chaincode used as some real world contract, that contains some complex conditions, the contract have a life cycle, and how can we keep the status of the contract in chaincode, as I have read the fabric-samples in github, but it's too simple, do you know is there any examples that may help this case? For example: There is a smart contract for second hand car trade, the buyer does not match one condition, like not enough down payment, but his father has enough money, so the smart contract may be stopped and wait for buyer's father payment, then go on the smart contract. So is there a good practice for keep the status of smart contract? Just like a session.

PeterX (Mon, 17 Sep 2018 03:27:18 GMT):
Or smart contract context

flyerwing (Mon, 17 Sep 2018 03:59:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=adAkZYRKRvxKpqGfJ) @PeterX The smart contract should only operate the ledger, and not deal with the complex business operation, which should be operated within the application end(like the APP). E.g, you do a old car transaction, you could define the car estate inside the ledger, like the property of the car, the owner of the car etc, all the things you think should be record inside the ledger. If you want to trade the car between two buyers, you could operate this deal at the application side and the application coordinate with the smart contract, which will operate the ledger and change the status of ledger from one owner to another.

VenkataY (Mon, 17 Sep 2018 04:01:00 GMT):
Hi All, I am exploring private data collection using fabric 1.2, when i tried to do update transaction getting below error. error 2018-09-16 16:15:53.260 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response: payload: . Please help me

RaghavaSimhan (Mon, 17 Sep 2018 04:43:16 GMT):
Has joined the channel.

RaghavaSimhan (Mon, 17 Sep 2018 04:43:38 GMT):
Hi All, i am trying to deploy the bna file into the network in local

RaghavaSimhan (Mon, 17 Sep 2018 04:43:40 GMT):
✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

RaghavaSimhan (Mon, 17 Sep 2018 04:43:48 GMT):
i see the above error

Subhankar 3 (Mon, 17 Sep 2018 04:57:53 GMT):
Can chaincode be set to invoke automatically in some time interval?

flyerwing (Mon, 17 Sep 2018 05:24:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KYAM7FMrye2P5xNTP) @Subhankar 3 I guess it surly be ok. You can set a timer at your application main() process and timely invoke the chaincode.

PeterX (Mon, 17 Sep 2018 05:24:25 GMT):
@flyerwing ,got it, many thanks for your response

smile4jc (Mon, 17 Sep 2018 05:31:23 GMT):
Hi, https://www.youtube.com/watch?v=Rr1Qi-n8vag

smile4jc (Mon, 17 Sep 2018 05:31:53 GMT):
I attended a ibm develop day conference in seoul and they said that the EVM will be supported in hyperledger fabric 1.3

smile4jc (Mon, 17 Sep 2018 05:32:39 GMT):
just wondering if anyone knows if we can from the native fabric go chaincode call an EVM chaincode and vice versa?

yulong12 (Mon, 17 Sep 2018 05:52:32 GMT):
Hi everyone . I want to ask a question.in the ca directory What is the format of this private key?

yulong12 (Mon, 17 Sep 2018 05:53:15 GMT):
for example ``` /first-network/crypto-config/peerOrganizations/org1.example.com/ca/ce8265a21ffbffc8476caa1a5617bffbeba2835ae601486e8ebdb4045d00cb93_sk ```

yulong12 (Mon, 17 Sep 2018 05:53:30 GMT):
What is the format of this private key?

anaswar (Mon, 17 Sep 2018 05:57:50 GMT):
Has joined the channel.

anaswar (Mon, 17 Sep 2018 05:58:03 GMT):
Hi, I am looking to generate REST API for a chaincode I installed on the IBM Blockchain Starter Plan. The chaincode was written in golang. I did not use composer bna file. Thank you!

anaswar (Mon, 17 Sep 2018 05:58:03 GMT):
Hi, I am looking to generate REST API for a chaincode I installed on the IBM Blockchain Starter Plan. The chaincode was written in golang. I did not use composer bna file. Can you please provide me the steps to generate the APIs? Thank you!

NishadTat (Mon, 17 Sep 2018 06:32:03 GMT):
Has joined the channel.

NishadTat (Mon, 17 Sep 2018 06:32:32 GMT):
How to add a new peer in an existing hyperledger fabric version 1.2??? Is it possible to create expected number of peers and organizations by doing changes in BYFN and related files??? Please guide....

liuyuanting1209 (Mon, 17 Sep 2018 06:47:57 GMT):
Has joined the channel.

liuyuanting1209 (Mon, 17 Sep 2018 06:48:05 GMT):
PutState then GetState, how to make sure get the value is the one I put?

flyerwing (Mon, 17 Sep 2018 06:48:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HsK6QifkKjfw9X7dR) @liuyuanting1209 You should assign the KEY value when you put and get.

liuyuanting1209 (Mon, 17 Sep 2018 06:51:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c73mpywuW7B43EjL8) @flyerwing I mean, once I PutState, maybe the value is not stored in block. so when I getstate, I may get the value before I changed

yulong12 (Mon, 17 Sep 2018 07:14:25 GMT):
Hi everyone . I want to ask a question.in the ca directory What is the format of this private key? for example ``` /first-network/crypto-config/peerOrganizations/org1.example.com/ca/ce8265a21ffbffc8476caa1a5617bffbeba2835ae601486e8ebdb4045d00cb93_sk ``` What is the format of this private key?

yulong12 (Mon, 17 Sep 2018 07:14:46 GMT):
the pem?

UnaiUrk (Mon, 17 Sep 2018 07:26:57 GMT):
Has joined the channel.

UnaiUrk (Mon, 17 Sep 2018 07:27:32 GMT):
Hi, can I decrypt CouchDB _rev and digest values? For example:

UnaiUrk (Mon, 17 Sep 2018 07:27:32 GMT):
Hi, can I decrypt CouchDB _rev and digest values? For example: "_rev": "6-54a577029811b5517ef37842ca1d5162", "digest": "md5-O3hq5vYAgokGGXwHsUMjBQ==",

Hariprasauth (Mon, 17 Sep 2018 07:41:37 GMT):
Hi, Everytime< i create a participant, if there a way to issue identity to the participants through the REST composer?

waleed (Mon, 17 Sep 2018 07:43:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6ymoMgrnJyFE59iNX) @Hariprasauth yes. take a look here: https://medium.com/@CazChurchUk/developing-multi-user-application-using-the-hyperledger-composer-rest-server-b3b88e857ccc

Hariprasauth (Mon, 17 Sep 2018 07:50:46 GMT):
@waleed - Thanks a lot for the information.. Is tehre a way to find out the ca and orderer details while creating business network using composer?

Hariprasauth (Mon, 17 Sep 2018 07:52:17 GMT):
I was looking at the sample code: https://github.com/IBM/customer-loyalty-program/blob/master/web-app/network/local_connection.json

waleed (Mon, 17 Sep 2018 07:52:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2wEqpRHAcEbAq8XxN) @Hariprasauth u can take a look at the logs of ca and orderer containers during the creation of the business network

Hariprasauth (Mon, 17 Sep 2018 07:52:32 GMT):
and here, the config contains details of the org and orderer

Hariprasauth (Mon, 17 Sep 2018 07:52:59 GMT):
Cool.. I missed that part! :-) The network was created long back

waleed (Mon, 17 Sep 2018 07:53:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tjS5G6AbWxMwtMGCw) @Hariprasauth this is the connection profile

Hariprasauth (Mon, 17 Sep 2018 07:56:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m48aQQCM47wYjm7mr) @waleed Thank you once again. This is the profile, I would use to connect an external nodejs application to my business network within fabric, am I right?

waleed (Mon, 17 Sep 2018 07:58:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5oR935bKHSHfpqq8D) @Hariprasauth yes :)

liuyuanting1209 (Mon, 17 Sep 2018 08:00:52 GMT):
“The query is re-executed during validation phase to ensure result set has not changed since transaction endorsement (phantom reads detected).” This is the comments of GetStateByRange(). Does this means GetStateByRange() can make sure the value I get is not changed? If yes, what will happen if the value is changed ?

liuyuanting1209 (Mon, 17 Sep 2018 08:02:42 GMT):
putstate and then getstate, I want to make sure the value is the one I just put. Return the right one or return error. Is GetStateByRange() realize that?

RaghavaSimhan (Mon, 17 Sep 2018 08:31:55 GMT):
Hi i am facing the below issue Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Unable to initalize channel. Attempted to contact 1 Peers. Last error was Error: Error: 2 UNKNOWN: access denied: channel [composerchannel] creator org [Org1MSP] Command failed

RaghavaSimhan (Mon, 17 Sep 2018 08:32:19 GMT):
the install works fine but trying to start it fails

RaghavaSimhan (Mon, 17 Sep 2018 08:32:55 GMT):
is this related to docker as i run docker through kitematic

RaghavaSimhan (Mon, 17 Sep 2018 08:32:58 GMT):
?

waleed (Mon, 17 Sep 2018 08:33:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bu2vMgngSQPMaJFjz) @RaghavaSimhan how does your connection profile look like?

RaghavaSimhan (Mon, 17 Sep 2018 08:35:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YLSaj89amoST2SvFX) @waleed can you tell me which file you are talking about?. i am fairly new here sp

waleed (Mon, 17 Sep 2018 14:52:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=euWaAwjpKbeQ3xCYW) @RaghavaSimhan something like this: https://hyperledger.github.io/composer/latest/reference/connectionprofile

Jgnuid (Mon, 17 Sep 2018 14:56:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tqyJ9HSQKc62v24qh) @liuyuanting1209 GetState will always read the current value of the key, even if in the line before you updated the value with PutKey.

Jgnuid (Mon, 17 Sep 2018 14:58:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vnnCPWpkW5pRYwmy6) @liuyuanting1209 Every value of a key you sometime read is always validated again before commit. When doing range key queries, there's a possibility that between the proposal evaluation and the validation phase, a new key would have been commited within that range. In that case, theres the chance that in the commit instant you will update the ledger considering that that key didn't exist (because it didn't when the proposal was evaluated).

Jgnuid (Mon, 17 Sep 2018 14:58:59 GMT):
TLDR, GetStateByRange will evaluate again in the commit phase to avoid this problem.

Jgnuid (Mon, 17 Sep 2018 15:00:37 GMT):
Be careful that other operations in the shim interface don't handle this problem.

vdods (Mon, 17 Sep 2018 16:27:15 GMT):
Hi all, is there any way to return a "private" payload from a transaction? This would be analogous to the "transient" data in a transaction. An example use case would be where a client issues a transaction that involves private data and the transaction should 1) return some of this private data back to the client (call this the private portion of the payload), and 2) not record that private portion of the payload in the blockchain, but 3) record the transaction in the blockchain. I know that query is capable of #1 (where one just doesn't send the query transaction to the orderer), but without having a separate private portion of the payload, it's not capable of #2 or #3

vdods (Mon, 17 Sep 2018 16:27:15 GMT):
My usecase is making certain query transactions record the query itself (i.e. the query transaction would show up in the blockchain, but obviously without private data)

GNAC (Mon, 17 Sep 2018 16:33:08 GMT):
Has joined the channel.

jyang6 (Mon, 17 Sep 2018 18:05:01 GMT):
Has joined the channel.

waxer (Mon, 17 Sep 2018 18:43:43 GMT):
Question: the command 'peer chaincode install', gets the chaincode from the host and send it to the peer?, or the -p flag referes to the path of the chaincode in the peer node?

lepar (Mon, 17 Sep 2018 18:54:51 GMT):
@waxer It's the path of the chaincode within the peer node that was copied in the docker-compose.yaml

waxer (Mon, 17 Sep 2018 18:59:15 GMT):
@lepar , I'm seeing the .yaml and it seems to be a path in the CLI container. Not the peer container.

waxer (Mon, 17 Sep 2018 19:00:33 GMT):
So I guess the chaincode code is in the CLI, from where I run the chaincode install command. And this sends the code (CDS) to the peer. Is this correct?

lepar (Mon, 17 Sep 2018 19:03:18 GMT):
The CLI container is just a "gateway" but it acts on the peers' container.

lepar (Mon, 17 Sep 2018 19:04:15 GMT):
In ur case it was copied to the CLI container but in a real world scenario, you would copy it to the peer container and instantiate it from the path within

Jgnuid (Mon, 17 Sep 2018 19:08:21 GMT):
@lepar , are you saying that in 'production', the comand 'peer chaincode install' is run in the peer host?

waxer (Mon, 17 Sep 2018 19:16:32 GMT):
uhmm i think i got the idea

lepar (Mon, 17 Sep 2018 19:20:32 GMT):
Think of the CLI container as a standalone computer. For example, if you wanted to instantiate the chaincode directly from your computer by setting the environment variables such as, PEER_ADDRESS, PEER_MSCONFIG, etc.. you could use "docker exec peer1 peer chaincode install..." directly from your terminal.

waxer (Mon, 17 Sep 2018 19:29:12 GMT):
@lepar , oh, ok. So if I'm standing on the CLI host (say is separeted from the peer host): Setting those environment variables is like acting on behalf of the peer in the network?

waxer (Mon, 17 Sep 2018 19:29:28 GMT):
(while using the 'peer' command tool)

lepar (Mon, 17 Sep 2018 19:29:54 GMT):
Exactly

lepar (Mon, 17 Sep 2018 19:30:19 GMT):
The CLI would connect to the peer container and execute the commands in it

waxer (Mon, 17 Sep 2018 19:34:06 GMT):
@lepar , ok but I'm then confused with the following yaml from the tutorial: https://github.com/hyperledger/fabric-samples/blob/release-1.2/chaincode-docker-devmode/docker-compose-simple.yaml

waxer (Mon, 17 Sep 2018 19:35:01 GMT):
In the CLI, it does: peer chaincode install -p chaincodedev/chaincode/sacc -n mycc -v 0

waxer (Mon, 17 Sep 2018 19:35:27 GMT):
But as I see in the yaml, it doesn't seem that the 'chaincodedev/chaincode' path is mapped in the peer container.

waxer (Mon, 17 Sep 2018 19:36:56 GMT):
If the CLI executes that command inside the Peer container, that path doesn't exits.

waxer (Mon, 17 Sep 2018 19:36:56 GMT):
If the CLI executes that command inside the Peer container, that path doesn't exists

waxer (Mon, 17 Sep 2018 19:37:12 GMT):
But I'm sure it exists in the CLI container... because I'm seeing it

lepar (Mon, 17 Sep 2018 20:02:25 GMT):
Yup, it exists in the CLI. It's using the CLI container for the path

Jgnuid (Mon, 17 Sep 2018 20:03:41 GMT):
@lepar , but the 'peer chaincode install' isn't running in the peer container?

Jgnuid (Mon, 17 Sep 2018 20:04:16 GMT):
(sorry joining the converstion, but im interested :))

waxer (Mon, 17 Sep 2018 20:05:53 GMT):
We are in the same boat then... I have the same question. Im not sure if the 'dev-mode' matters here too.

SaadAnwar (Mon, 17 Sep 2018 21:29:02 GMT):
@Jgnuid thanks brother

montana (Mon, 17 Sep 2018 22:21:01 GMT):
Has joined the channel.

montana (Mon, 17 Sep 2018 22:21:34 GMT):
Documentation says that RSA keys are not supported for identity certs. But is it supported for TLS?

montana (Mon, 17 Sep 2018 22:21:38 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/msp.html#msp-setup-on-the-peer-orderer-side

RaghavaSimhan (Mon, 17 Sep 2018 23:12:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WhZ8AS3JGLQC4Srqb) @waleed { "name": "hlfv1", "x-type": "hlfv1", "x-commitTimeout": 300, "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } }, "channels": { "composerchannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "ledgerQuery": true, "eventSource": true } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpc://192.168.99.100:7050" } }, "peers": { "peer0.org1.example.com": { "url": "grpc://192.168.99.100:7051" } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "http://192.168.99.100:7054", "caName": "ca.org1.example.com" } } }

waxer (Mon, 17 Sep 2018 23:56:11 GMT):
Does chaincode instantiation get registered on the Ledger?

issac.liu (Tue, 18 Sep 2018 03:30:27 GMT):
Hi,

TobiasN (Tue, 18 Sep 2018 04:12:54 GMT):
@waxer yes

rajanashutosh (Tue, 18 Sep 2018 04:52:17 GMT):
@dave.enyeart Hi Dave, have implemented 1.2.1 and tested it. QSCC issue seems to be rectified. Thanks for help !!

VaibhavChotaliya (Tue, 18 Sep 2018 05:21:07 GMT):
Hi, according to https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org, When I am trying to run "composer identity reequest" command, It's throwing me an error like Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:1111] Can any one help me to figure it out?

sh777 (Tue, 18 Sep 2018 05:41:14 GMT):
Has joined the channel.

halilkalkan (Tue, 18 Sep 2018 06:09:16 GMT):
Hello guys, can we create an endorsement policy for particular peers? For instance, Org1.peer1 should endorse to submit transaction. Thank you,

UnaiUrk (Tue, 18 Sep 2018 06:26:48 GMT):
hi guys, Im following the Building Your First Network tutorial. When I make transactions in the chaincode, I cant see those transactions in the couchDB user interface. Where are the transactions?

anaswar (Tue, 18 Sep 2018 06:38:53 GMT):
IBM Blockchain Starter plan - how can I generate APIs for my chaincode so that other web/android UI applications can access it?

RajuSomala (Tue, 18 Sep 2018 06:48:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q8Ayfx2gf5QXFXcmX) @UnaiUrk CouchDB Interface display latest state of the object , The transactions will go inside the block. i.e ledger . If you setup hyperledger explorer you can see the transactions

UnaiUrk (Tue, 18 Sep 2018 06:50:56 GMT):
Thanks @RajuSomala !!

anjalinaik (Tue, 18 Sep 2018 06:58:06 GMT):
can anybody please guide me to solve below error: ``` 2018-09-18 06:47:45.925 UTC [bccsp_sw] loadPrivateKey -> DEBU 01a Loading private key [82ba5aa08aa11c3186f1d8c019b05bb594d78099b89582cc95820776a74da8ab] at [/opt/hyperledger/fabric/msp/crypto-config/ordererOrganizations/test.com/orderers/orderer0/msp/keystore/82ba5aa08aa11c3186f1d8c019b05bb594d78099b89582cc95820776a74da8ab_sk]... 2018-09-18 06:47:45.925 UTC [bccsp_sw] loadPrivateKey -> ERRO 01b Failed loading private key [82ba5aa08aa11c3186f1d8c019b05bb594d78099b89582cc95820776a74da8ab]: [open /opt/hyperledger/fabric/msp/crypto-config/ordererOrganizations/test.com/orderers/orderer0/msp/keystore/82ba5aa08aa11c3186f1d8c019b05bb594d78099b89582cc95820776a74da8ab_sk: permission denied]. ```

VenkataY (Tue, 18 Sep 2018 07:01:48 GMT):
Hi All, I am trying to update private variable as an authorized organization, getting an error like. Error: endorsement failure during invoke. chaincode result: status:500 message:"Received unknown function invocation"

VenkataY (Tue, 18 Sep 2018 07:02:12 GMT):
Can we edit private variables in fabric 1.2?

Immanuel-john (Tue, 18 Sep 2018 07:23:04 GMT):
Hi ! can I get the number of organisations that we setup in bluemix for a particular channel?

issac.liu (Tue, 18 Sep 2018 09:40:35 GMT):
Hi! Did anyone tried using Microsoft Azure Hyperledger blockchain consortium to run their HLF network? If you have tried and succeeded in creating a channel between 2 peers please guide me because I couldn't find the channel.tx file inside the peer VM docker container.

Arnavprasad (Tue, 18 Sep 2018 10:21:16 GMT):
Has joined the channel.

Arnavprasad (Tue, 18 Sep 2018 10:27:38 GMT):
Hello. I've recently begun Blockchain development. I have a doubt regarding the Fabcar chaincode (https://github.com/hyperledger/fabric-samples/tree/release-1.2/chaincode/fabcar/go)... When I try to install and instantiate the chaincode using the cli container, I am facing unmarshalling errors during the instantiation. It is highly likely that I am not passing the arguments in the command line correctly. How do I modify the line "peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc" to get my Fabcar chaincode to work? Thanks.

liuyuanting1209 (Tue, 18 Sep 2018 11:10:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5p3T8vNYgkkXoLfMm) @Jgnuid Thanks very much for your answers. My issue is that: (1) call the chaincode and set a = 3; (2) call chaincode again and set a = a + 2; for step (2), I want step(1) is commited, if not commit, return an error. And the two steps may call different peer or even different order. Is there a way?

Hariprasauth (Tue, 18 Sep 2018 11:20:26 GMT):
Hi, I have two doubts: 1) Every time I restart the fabric, the assets/entries in the registry are not getting shown in the composer 2) On every restart, the admin identity that I use in my code gets authorization error and I have to delete the card and do everything from the first.. Any solution on this, please?

as7 (Tue, 18 Sep 2018 11:29:30 GMT):
Has joined the channel.

as7 (Tue, 18 Sep 2018 11:29:33 GMT):
How to use hyperledger fabric on Azure Cloud? I tried to google but couldn't find enough resources.

rajanashutosh (Tue, 18 Sep 2018 11:51:21 GMT):
@dave.enyeart -- Issue we have faced again with QSCC and JIra ticket we have reopeneed

Jgnuid (Tue, 18 Sep 2018 12:07:58 GMT):
@liuyuanting1209 , you should think in everything that needs to be transactional as the same transaction proposal.

lepar (Tue, 18 Sep 2018 12:11:15 GMT):
@Jgnuid the command is executed from the CLI but run inside the peer container

waxer (Tue, 18 Sep 2018 12:13:22 GMT):
@lepar , but the CLI does that in a gRPC API Call, or does it through docker exec?

lepar (Tue, 18 Sep 2018 12:24:49 GMT):
I'm not completely sure but I would guess a gRPC

DmitriPlakhov (Tue, 18 Sep 2018 12:43:12 GMT):
Has joined the channel.

DmitriPlakhov (Tue, 18 Sep 2018 12:44:06 GMT):
hello!

DmitriPlakhov (Tue, 18 Sep 2018 12:45:27 GMT):
where can I find dockerfile to compile fabric please

GuillaumeCisco (Tue, 18 Sep 2018 12:46:32 GMT):
Hello there, just cloned a fresh new fabric-ca and run the unit-tests, it failed. Is this normal? `master` and `release-1.2` both failed. Can we know if the tests should run successfully? ``` Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

GuillaumeCisco (Tue, 18 Sep 2018 12:57:06 GMT):
@DmitriPlakhov https://github.com/hyperledger/fabric/tree/release-1.2/images look at the Makefile for more informations about tags

simcan (Tue, 18 Sep 2018 13:26:25 GMT):
Hi, Is there any one that has followed the Hyperledger Fabric Fundamentals (LFD271) course ( https://training.linuxfoundation.org/training/hyperledger-fabric-fundamentals-lfd271/#prerequisites ) ? Is it a beginner or advanced course ? Any details about the content of the chapters? Thanks :)

DmitriPlakhov (Tue, 18 Sep 2018 13:52:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e7g9DkXqk6oTNN8bE) @GuillaumeCisco Thank you!

tballast (Tue, 18 Sep 2018 14:30:32 GMT):
Looking to see if someone can point me to some documentation or clarify something when it comes to clients: What exactly is the role of a _user_ ? I know this probably seems like a stupid question - sorry about that - but I'm wondering because when read through the End2EndIT example (in the Jave SDK) it iterates through all organizations and enrolls an admin user as well as a regular user, but I'm not sure why this needs to be done for every single organization, or why you must have an admin and a regular user.

UnaiUrk (Tue, 18 Sep 2018 14:45:53 GMT):
Hi, does Hyperledger Fabric Support Integration with IPFS ?

UnaiUrk (Tue, 18 Sep 2018 14:47:43 GMT):
is there a way to use Hyperledger fabric and IPFS both togheter?

UnaiUrk (Tue, 18 Sep 2018 14:47:43 GMT):
is there a way to use Hyperledger fabric and IPFS both together?

gravity (Tue, 18 Sep 2018 14:53:31 GMT):
Hello after upgrade to fabric v1.2.0, some of peers getting stuck during transaction commit. for example, if a channel has 3 peers, one out of three is stuckduring transaction. no errors in logs on peer or orderer. if I restart a container for this peer, a transaction that stuck previously will proceed, but other peers tell this message in logs: ``` peer1-default-org | Failed obtaining connection for peer8-default-org:7051, PKIid:[13 148 83 230 154 35 173 0 16 141 110 78 210 23 72 254 254 177 143 36 136 23 72 84 31 6 16 18 221 34 107 223] reason: Authentication failure peer1-default-org | 2018-09-18 14:48:02.284 UTC [gossip/comm] createConnection -> WARN 0b0 Remote endpoint claims to be a different peer, expected [13 148 83 230 154 35 173 0 16 141 110 78 210 23 72 254 254 177 143 36 136 23 72 84 31 6 16 18 221 34 107 223] but got [150 240 229 156 3 99 225 102 191 218 203 23 157 199 128 193 234 5 145 223 71 70 226 49 39 199 119 61 33 207 214 55] ``` and logs on peer that was restarted: ``` peer8-default-org | 2018-09-18 14:48:02.480 UTC [gossip/comm] authenticateRemotePeer -> WARN 081 Failed reading messge from 172.21.0.14:36126, reason: Timed out waiting for connection message from 172.21.0.14:36126 peer8-default-org | 2018-09-18 14:48:02.480 UTC [gossip/comm] GossipStream -> ERRO 082 Authentication failed: Timed out waiting for connection message from 172.21.0.14:36126 ```

waleed (Tue, 18 Sep 2018 15:03:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zS7nbb8RH7qP7iWx6) @RaghavaSimhan This is my connection profile. I think you didn't provide the required certificates ``` { "name": "fabric-network", "x-type": "hlfv1", "x-commitTimeout": 300, "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } }, "channels": { "${CHANNEL_NAME}": { "orderers": [ "orderer.${DOMAIN}" ], "peers": { "peer0.org1.${DOMAIN}": { "endorsingPeer": true, "chaincodeQuery": true, "ledgerQuery": true, "eventSource": true }, "peer1.org1.${DOMAIN}": { "endorsingPeer": true, "chaincodeQuery": true, "ledgerQuery": true, "eventSource": true } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.${DOMAIN}", "peer1.org1.${DOMAIN}" ], "certificateAuthorities": [ "ca.org1.${DOMAIN}" ] } }, "orderers": { "orderer.${DOMAIN}": { "url": "grpcs://orderer.${DOMAIN}:7050", "grpcOptions": { "ssl-target-name-override": "orderer.${DOMAIN}", "grpc.keepalive_time_ms": 600000, "grpc.max_send_message_length": 15728640, "grpc.max_receive_message_length": 15728640 }, "tlsCACerts": { "pem": "${ORDERER_CERT}" } } }, "peers": { "peer0.org1.${DOMAIN}": { "url": "grpcs://peer0.org1.${DOMAIN}:7051", "eventUrl": "grpcs://peer0.org1.${DOMAIN}:7053", "grpcOptions": { "ssl-target-name-override": "peer0.org1.${DOMAIN}" }, "tlsCACerts": { "pem": "${PEER0_CERT}" } }, "peer1.org1.${DOMAIN}": { "url": "grpcs://peer1.org1.${DOMAIN}:7051", "eventUrl": "grpcs://peer1.org1.${DOMAIN}:7053", "grpcOptions": { "ssl-target-name-override": "peer1.org1.${DOMAIN}" }, "tlsCACerts": { "pem": "${PEER1_CERT}" } } }, "certificateAuthorities": { "ca.org1.${DOMAIN}": { "url": "https://ca.org1.${DOMAIN}:7054", "caName": "ca.org1.${DOMAIN}", "tlsCACerts": { "pem": "${CA_CERT}" } } } } ```

UnaiUrk (Tue, 18 Sep 2018 15:07:41 GMT):
Hi, does Hyperledger Fabric Support Integration with IPFS ? is there a way to use Hyperledger fabric and IPFS both together? +

jvsclp (Tue, 18 Sep 2018 15:54:14 GMT):
After a few days of trying to get some help in the #fabric-ca channel I'm opening this question up to a broader audience.

jvsclp (Tue, 18 Sep 2018 15:54:20 GMT):
I'm still stuck trying to stand up my orderer node using fabric and fabric-ca v1.2. I can get two peer nodes to stand up with my generated cryptographic material, but when it comes to getting the orderer node stood up I receive this message: `OrdererContainer | 2018-09-17 21:57:51.395 UTC [orderer/commmon/multichannel] newLedgerResources -> CRIT 065 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority` This seems to be occurring in the admins folder of the orderer's membership service provider structure. I've regenerated all the crypto material a second time in an attempt to get rid of the signed by unknown authority error. I've generated a new genesis block and channel transactions. I've pruned all the docker volumes after trying to stand up the nodes to make sure I'm working with the freshest volumes and there are no artifacts colliding with the containers I'm trying to stand up. I've moved certificates in and out of the folder to try and eliminate which one is the issue. I cannot figure out why I am continually receiving this error. Any idea of what I can check to continue working through this error?

jvsclp (Tue, 18 Sep 2018 15:54:44 GMT):
I could be completely off about the admins certificates though.

Arnavprasad (Tue, 18 Sep 2018 16:55:57 GMT):
I have a doubt regarding the Fabcar chaincode (https://github.com/hyperledger/fabric-samples/tree/release-1.2/chaincode/fabcar/go)... When I try to install and instantiate the chaincode using the cli container, I am facing unmarshalling errors during the instantiation. It is highly likely that I am not passing the arguments in the command line correctly. How do I modify the line "peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc" to get my Fabcar chaincode to work? Thanks.

sharif2008 (Tue, 18 Sep 2018 17:43:24 GMT):
Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 4ef839b034dc53afcfa27cd30d13b02aa59c29044c7e095591565055fc58f1ad: error starting container: error starting container: API error (404): network first_network_byfn not found

sharif2008 (Tue, 18 Sep 2018 17:43:24 GMT):
Creating network "firstnetwork_byfn" with the default driver . . . Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 4ef839b034dc53afcfa27cd30d13b02aa59c29044c7e095591565055fc58f1ad: error starting container: error starting container: API error (404): network first_network_byfn not found What could be the reason?

liuyuanting1209 (Wed, 19 Sep 2018 01:43:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vscorpw4i6YZ7Pubv) @Jgnuid Do you mean I should let step1 and step2 in the same trasaction? if yes, then I run into a big problem, because my app needs that. If not, could you pelase explain in detail?

liuyuanting1209 (Wed, 19 Sep 2018 01:46:10 GMT):
I need to set a new state according to the key's original state. So I have to make sure the putstate is commited or not.

Jgnuid (Wed, 19 Sep 2018 01:47:21 GMT):
@liuyuanting1209 , say you make a query to get the value of key KEY1. Then, after you get the result you trigger an invoke to update KEY1.

Jgnuid (Wed, 19 Sep 2018 01:48:01 GMT):
My first question is: How are you sure that when the invoke gets processed, KEY1 has still the same value as when you did the query?

liuyuanting1209 (Wed, 19 Sep 2018 01:50:03 GMT):
For the first quetion, you are right, I am not sure

Jgnuid (Wed, 19 Sep 2018 01:50:23 GMT):
Yes, you can't be sure.

liuyuanting1209 (Wed, 19 Sep 2018 01:50:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RHQvbrbye8pviLKYn) @Jgnuid For the first quetion, you are right, I am not sure

Jgnuid (Wed, 19 Sep 2018 01:50:57 GMT):
So, now that we know you can't be sure, my next question is: Is this a problem in your case?

Jgnuid (Wed, 19 Sep 2018 01:51:21 GMT):
Or you may accept the consecuences of that case?

liuyuanting1209 (Wed, 19 Sep 2018 01:53:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ejxKPwkumYxFnbEuX) @Jgnuid For now, it is a big problem. My app needs that function

liuyuanting1209 (Wed, 19 Sep 2018 01:56:40 GMT):
so I cannot update the state according to original state. the only way is to calculate out fabric?

Jgnuid (Wed, 19 Sep 2018 01:59:00 GMT):
You can, but you should do it in the same chaincode code.

liuyuanting1209 (Wed, 19 Sep 2018 02:00:23 GMT):
what do you mean the same chaincode code? I call the same chaincode, but call may times.

Jgnuid (Wed, 19 Sep 2018 02:01:28 GMT):
I mean, you should do the GetState and PutState in the same invoke.

liuyuanting1209 (Wed, 19 Sep 2018 02:02:42 GMT):
Got it, thanks very very much

Jgnuid (Wed, 19 Sep 2018 02:04:03 GMT):
You're welcome. Just one more thing, you be aware that this could fail too... but this is not an error, its a posibility by design. When the transaction is validated before commit, it could be set as invalid by the peers because the read set is out of sync.

Jgnuid (Wed, 19 Sep 2018 02:04:24 GMT):
In that case you should retry.

liuyuanting1209 (Wed, 19 Sep 2018 02:06:59 GMT):
I will pay attation to it:grinning:. thanks again.

riyasoni42 (Wed, 19 Sep 2018 05:48:09 GMT):
Hello Does anyone know the difference between chaincode written in Go and Java ? Or having any reference link then please share with me. Thanks

liyupi (Wed, 19 Sep 2018 05:51:58 GMT):
Has joined the channel.

liyupi (Wed, 19 Sep 2018 05:53:12 GMT):
Could anyone save me? When I ran command " composer-rest-server .. " , I got a bus error (core dump)

caveman7 (Wed, 19 Sep 2018 06:06:27 GMT):
hi guys, how do I enroll a new user with admin privileges (able to install and instantiate chaincode)

caveman7 (Wed, 19 Sep 2018 06:06:27 GMT):
hi guys, how do I enroll a new user with admin privileges (able to install and instantiate chaincode)?

caveman7 (Wed, 19 Sep 2018 06:06:27 GMT):
hi guys, how do I register and enroll a new user with org MSP privileges (able to install and instantiate chaincode)?

akshay.sood (Wed, 19 Sep 2018 06:10:45 GMT):
Hi All!! I am trying to instantiate chaincode written in `node`. The issue is it takes around 4-5 minutes to instantiate. While same chaincode written in `GoLang` takes only 10-15 seconds. Does anyone have faced this?

eenagy (Wed, 19 Sep 2018 06:11:08 GMT):
Has joined the channel.

yacovm (Wed, 19 Sep 2018 06:56:37 GMT):
that's because `node` chaincode does `npm install` when it starts...

yacovm (Wed, 19 Sep 2018 06:56:37 GMT):
that's because `node` chaincode does `npm install` when it instantiates

akshay.sood (Wed, 19 Sep 2018 06:58:46 GMT):
@yacovm so it will take 4-5 minutes everytime it will instantiate or upgrade?

akshay.sood (Wed, 19 Sep 2018 06:59:01 GMT):
even when being upgrade?

yacovm (Wed, 19 Sep 2018 07:02:33 GMT):
hey, it's your choice to use node chaincode

akshay.sood (Wed, 19 Sep 2018 07:02:47 GMT):
Thank you very much @yacovm

issac.liu (Wed, 19 Sep 2018 07:08:08 GMT):
Hi, would it be possible to create channels without using cli?

yacovm (Wed, 19 Sep 2018 07:10:15 GMT):
you can using SDK

issac.liu (Wed, 19 Sep 2018 07:13:26 GMT):
is there any other ways other than sdk? thank you!

issac.liu (Wed, 19 Sep 2018 07:14:01 GMT):
thanks!

caveman7 (Wed, 19 Sep 2018 08:25:10 GMT):
hi guys i'm trying to specify the instantiation policy in the chaincode, following the instructions in: https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode4noah.html basically i've set up the fabric environment and i exec into cli container: i made sure i'm the msp admin `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp` i want to configure so that all members (including all user registered/enrolled to CA) can instantiate the chaincode `peer chaincode package -n chaincode1 -p "github.com/chaincode1" -v v1.0 -i -s "AND('Org1MSP.member')" ccpack.out` and install the chaincode: `peer chaincode install ccpack.out` to simulate instantiating using a non-admin, i switched to User1 (generated by cryptogen): `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp` then i instantiate: `peer chaincode instantiate -o orderer.example.com:7050 -C public-channel -n chaincode1 -l "golang" -v v1.0 -c '{"Args":["init", "a", "10", "b", "10"]}' -P "OR('Org1MSP.member')"` but it is still showing `instantiation policy violation: signature set did not satisfy policy` error. what am i doing wrong?

caveman7 (Wed, 19 Sep 2018 08:25:10 GMT):
hi guys i'm trying to specify the instantiation policy in the chaincode, following the instructions in: https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode4noah.html basically i've set up the fabric environment and i exec into cli container: i made sure i'm the msp admin `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp` i want to configure so that all members (including all user registered/enrolled to CA) can instantiate the chaincode `peer chaincode package -n chaincode1 -p "github.com/chaincode1" -v v1.0 -i "AND('Org1MSP.member')" ccpack.out` and install the chaincode: `peer chaincode install ccpack.out` to simulate instantiating using a non-admin, i switched to User1 (generated by cryptogen): `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp` then i instantiate: `peer chaincode instantiate -o orderer.example.com:7050 -C public-channel -n chaincode1 -l "golang" -v v1.0 -c '{"Args":["init", "a", "10", "b", "10"]}' -P "OR('Org1MSP.member')"` but it is still showing `instantiation policy violation: signature set did not satisfy policy` error. what am i doing wrong?

rajanashutosh (Wed, 19 Sep 2018 08:38:21 GMT):
hi All, I executed near about thousand of transactions (write simultaneously) it was noticed that Statedb (couch) replication takes time in the actually db with which our API is linked whereas replication in other db it happens near to realtime.

rajanashutosh (Wed, 19 Sep 2018 08:39:01 GMT):
It would have been great if someone could tell what is the mechanism for replication of data once committed to ledger and what would be starting point ?

yulong12 (Wed, 19 Sep 2018 08:40:38 GMT):
How can I replace the first-network/crypto-config/peerOrganizations/org1.example.com/ca with the certificate and key which are generated by openssl?

yulong12 (Wed, 19 Sep 2018 08:40:45 GMT):
How can I replace the first-network/crypto-config/peerOrganizations/org1.example.com/ca with the certificate and key which are generated by openssl?

jensmueller (Wed, 19 Sep 2018 08:47:18 GMT):
Has joined the channel.

akshay.sood (Wed, 19 Sep 2018 09:47:41 GMT):
Hi

akshay.sood (Wed, 19 Sep 2018 09:47:59 GMT):
What is the benefit of using `Using dev mode` when you still have to install & instantiate the chaincode

akshay.sood (Wed, 19 Sep 2018 09:48:03 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html

akshay.sood (Wed, 19 Sep 2018 09:53:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yaF4dJTpdBqfoLryX) try to instantiate chaincode by setting admin cert in `CORE_PEER_MSPCONFIGPATH`

caveman7 (Wed, 19 Sep 2018 11:25:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PT6pk5xJZvuXmhuDd) @akshay.sood the whole point is not to use the admin cert :). i want to instantiate using non-admin

izumix (Wed, 19 Sep 2018 11:33:47 GMT):
Has joined the channel.

lepar (Wed, 19 Sep 2018 12:43:44 GMT):
@akshay.sood Dev mode allows for faster building of the Go chaincode and you have to install and instantiate to make sure it's working. The advantage is it's faster when resetting the network and you don't need all the features of a fully functional network to test the functions

ColeBoudreau (Wed, 19 Sep 2018 13:53:56 GMT):
Is it possible to set up a 'main

ping42 (Wed, 19 Sep 2018 14:05:07 GMT):
Has joined the channel.

liuyuanting1209 (Wed, 19 Sep 2018 14:07:27 GMT):
I want to learn fabric-sdk-java, are there some materials? what is the different between fabric and fabric_ca under -- fabric-sdk-java\src\test\java\org\hyperledger\

aatkddny (Wed, 19 Sep 2018 14:46:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TXSZn7ewT7avY9mKF) one is for fabric. the other is for the ca.

krabradosty (Wed, 19 Sep 2018 15:12:59 GMT):
Hi! Why do my chaincodes names have prefix `dev-`? What does it mean? I don't use "peer dev mode"

krabradosty (Wed, 19 Sep 2018 15:12:59 GMT):
Hi! Why do my chaincodes names (container name and image name) have prefix `dev-`? What does it mean? I don't use "peer dev mode"

pprice (Wed, 19 Sep 2018 15:26:16 GMT):
Has joined the channel.

dipankar1biswas (Wed, 19 Sep 2018 15:26:19 GMT):
Has joined the channel.

dipankar1biswas (Wed, 19 Sep 2018 15:26:32 GMT):
We need to renew the CA certificate for Node SDK. Found one API, named CertificateAuthority.reenroll(). Where found reference "FabricCAServices#reenroll", but this does not exists on the web. Could you please share some example to use this "reenroll()".

yousaf (Wed, 19 Sep 2018 16:49:51 GMT):
Hi. What are the benefits of using fabric-ca in hyperledger fabric ??

BrettR (Wed, 19 Sep 2018 17:06:58 GMT):
Hey all. Can any point me to anything related t the Accord Project? Thank you.

lepar (Wed, 19 Sep 2018 17:49:57 GMT):
@yousaf It's already integrated. You could use another one but you'd have more work pointing to directories

yousaf (Wed, 19 Sep 2018 18:00:56 GMT):
@lepar Built in certificates authorities are provided automatically when we run BYFN. Then what is the need of using separate fabric-ca ?

lepar (Wed, 19 Sep 2018 18:01:39 GMT):
For certificate handling

yousaf (Wed, 19 Sep 2018 18:04:18 GMT):
Can you tell me all the benefits of this fabric-ca OR any resource which can tell me the exact benefits?

ColeBoudreau (Wed, 19 Sep 2018 18:14:20 GMT):
@yousaf I believe a fabric-ca is what is started by the byfn script. As @lepar said, Fabric-CA is simply a production ready certificate authority which HL already supplies. There isn't any particular advantages other than that you don't have to implement / supply your own certificate authority. However you are certainly welcome to.

ColeBoudreau (Wed, 19 Sep 2018 18:14:20 GMT):
@yousaf I believe a fabric-ca is what is started by the byfn.sh script. As @lepar said, Fabric-CA is simple a production ready certificate authority which HL already supplies. There isn't any particular 'advantages

ColeBoudreau (Wed, 19 Sep 2018 18:14:20 GMT):
@yousaf I believe a fabric-ca is what is started by the byfn.sh script. As @lepar said, Fabric-CA is simple a production ready certificate authority which HL already supplies. There isn't any particular advantages other than that you don't have to implement / supply your own certificate authority. However you are certainly welcome to.

ColeBoudreau (Wed, 19 Sep 2018 18:14:20 GMT):
@yousaf I believe a fabric-ca is what is started by the byfn script. As @lepar said, Fabric-CA is simple a production ready certificate authority which HL already supplies. There isn't any particular advantages other than that you don't have to implement / supply your own certificate authority. However you are certainly welcome to.

yousaf (Wed, 19 Sep 2018 18:42:05 GMT):
@ColeBoudreau That means its benefit is almost nothing except the provision of certificates to entities?

ColeBoudreau (Wed, 19 Sep 2018 18:43:09 GMT):
@yousaf If you're not using a fabric-ca, then whichever ca you are using will still have to provision certificates to entities.

yousaf (Wed, 19 Sep 2018 18:45:03 GMT):
@ColeBoudreau Okay sir. Thanks :)

yousaf (Wed, 19 Sep 2018 18:46:19 GMT):
When i try to update the configtx.yaml file to add new channel in profile section and when i execute the peer channel create command then m getting the error "Unknown consortium name: my_consoritum_name" ...........Any solution?

hypere (Wed, 19 Sep 2018 18:47:23 GMT):
Is there a tut on building a customized fabric network? Not the tutorial that runs he BYFN script

yousaf (Wed, 19 Sep 2018 18:48:31 GMT):
@hypere I tried my best to find it but couldn't. That's why m trying customization and facing a lot of issues.

hypere (Wed, 19 Sep 2018 18:49:44 GMT):
@yousaf same here haha the best i can find right now is this one https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux but I am having a lot of problem with it

yousaf (Wed, 19 Sep 2018 18:53:50 GMT):
@hypere all of this is already available on official documentation. So we have only way to follow that for the time. Because the same thing is explained there well, comparatively.

greg2git (Wed, 19 Sep 2018 19:08:31 GMT):
hello there, i'm noticing a "strange" behaviour with my state database CouchDB. my chaincode is instantiated and invoking returns http 200 and a new block does get created, but for some reason nothing gets written to CouchDB database, has anyone experienced this before?

dave.enyeart (Wed, 19 Sep 2018 19:12:41 GMT):
maybe your transactions are getting invalidated, check the peer logs

dave.enyeart (Wed, 19 Sep 2018 19:13:01 GMT):
plus, any couchdb errors would get written there as well

halilkalkan (Wed, 19 Sep 2018 19:13:50 GMT):
Hello guys, I'm trying to create a network with 3 organizations and I have created configtx.yaml and crypto-config.yaml, I could run docker successfully but when i want to create a channel I'm getting an error: Attempted to include a member which is not in the consortium. I have defined each organization under consortium in confixtx.yaml. If it would help, i can share the files with you. Have a nice day ! :)

dave.enyeart (Wed, 19 Sep 2018 19:14:40 GMT):
I suggest post to #fabric-orderer , the channel config/creation gurus hang out over there

halilkalkan (Wed, 19 Sep 2018 19:29:15 GMT):
Okey, I have posted there also.

aatkddny (Wed, 19 Sep 2018 19:29:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yuzjvkn8kpimMpni5) Do you have them in both `Organizations:` and the `Consortiums:` / `Organizations:` in the genesis profile and the channel profile? I missed editing both once and saw something similar.

halilkalkan (Wed, 19 Sep 2018 19:46:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EjXyEECws7ZZTorj8) @aatkddny Hi, I've uploaded my configtx.yaml, https://paste.ofcode.org/ETB37tMRmnf2FCgWRUDBYN Am I missing sth? :(

hypere (Wed, 19 Sep 2018 21:10:21 GMT):
i am trying to create a channel using this command: ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer0:7050 -c mychannel -f crypto/orderer/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig/cacerts/ordererOrg0.pem ``` and this is my version I am not sure how I am wrong ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/users/Admin@voting.org/msp ORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.voting.org:7050 -c VotingChannel -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/orderers/orderer.voting.org/msp/cacerts/ca.voting.org-cert.pem Error: failed to create deliver client: orderer client failed to connect to orderer.voting.org:7050: failed to create new connection: context deadline exceeded ```

hypere (Wed, 19 Sep 2018 21:10:21 GMT):
i am trying to create a channel using this command: ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer0:7050 -c mychannel -f crypto/orderer/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig/cacerts/ordererOrg0.pem ``` and this is my version I am not sure how I am wrong ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/users/Admin@voting.org/msp ORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.voting.org:7050 -c VotingChannel -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/orderers/orderer.voting.org/msp/cacerts/ca.voting.org-cert.pem Error: failed to create deliver client: orderer client failed to connect to orderer.voting.org:7050: failed to create new connection: context deadline exceeded ```

hypere (Wed, 19 Sep 2018 21:10:21 GMT):
i am trying to create a channel using this command: ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer0:7050 -c mychannel -f crypto/orderer/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/orderer/localMspConfig/cacerts/ordererOrg0.pem ``` and this is my version I am not sure how I am wrong ``` CORE_PEER_MSPCONFIGPATH=$GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/users/Admin@voting.org/msp CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer.voting.org:7050 -c VotingChannel -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $GOPATH/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/voting.org/orderers/orderer.voting.org/msp/cacerts/ca.voting.org-cert.pem Error: failed to create deliver client: orderer client failed to connect to orderer.voting.org:7050: failed to create new connection: context deadline exceeded ```

aatkddny (Wed, 19 Sep 2018 23:48:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JXDtaHAbcEaYD8Bn5) Well I wouldn'

aatkddny (Wed, 19 Sep 2018 23:48:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JXDtaHAbcEaYD8Bn5) Well I wouldn't claim to be an expert on configtx, but yours looks a lot like mine. All my stuff is coming from templates so I generate a crypto-config for each org. I'm assuming you have crypto for everything? What's your genesis block look like - is everything in there?

aatkddny (Wed, 19 Sep 2018 23:48:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JXDtaHAbcEaYD8Bn5) Well I wouldn't claim to be an expert on configtx, but yours looks a lot like mine. All my stuff is coming from templates so I generate a crypto-config for each org. I'm assuming you have crypto for everything? What's your channel genesis block look like - is everything in there?

sjeetSingh (Thu, 20 Sep 2018 00:33:50 GMT):
Has joined the channel.

rgunn (Thu, 20 Sep 2018 03:57:40 GMT):
Has joined the channel.

miont (Thu, 20 Sep 2018 07:02:23 GMT):
Has joined the channel.

me_abhijeet (Thu, 20 Sep 2018 07:50:08 GMT):
Has joined the channel.

me_abhijeet (Thu, 20 Sep 2018 07:50:19 GMT):
hey! I want to use Hyperledger Fabric on Multiple Hosts . Any one can help???? #hyperledger-explorer #hyperledger-bot

reggiefelias (Thu, 20 Sep 2018 08:01:22 GMT):
Hi All, good day! I'm having an error on my fabric SDK "Getting block time exceeded 5 seconds for channel"

reggiefelias (Thu, 20 Sep 2018 08:04:41 GMT):
When I check the order logs below is what i find WARN 12ea [channel:] Rejecting deliver request because of consenter error When I check the peer logs below WARN 11ff [] Got error &{SERVICE_UNAVAILABLE}

jonlee300 (Thu, 20 Sep 2018 08:41:11 GMT):
as directed from composer channels, i encountered completed metldown of the whole Fabric. how to reproduce: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html https://hyperledger.github.io/composer/latest/installing/development-tools install v0.20.0 instead

me_abhijeet (Thu, 20 Sep 2018 08:49:41 GMT):
I am seeing while trying to start couch db- -- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403)

dave.enyeart (Thu, 20 Sep 2018 09:08:38 GMT):
that's ok if it happens the first time you start couchdb... peer will create the databases it needs automatically as soon as it connects to couchdb

PiyushChittara (Thu, 20 Sep 2018 09:32:11 GMT):
Has joined the channel.

PiyushChittara (Thu, 20 Sep 2018 09:32:25 GMT):
is it possible to define specific chaincode access to admin and normal users for an organization peers? any documentation would be helpful... thanks 😃

Rachit_gaur (Thu, 20 Sep 2018 09:32:58 GMT):
How to use the setevent function? I have used setevent() function to set an event but how to handle the requests? where will my event hub be managed?

reggiefelias (Thu, 20 Sep 2018 10:57:29 GMT):
Hi All my order is showing, rejecting deliver request because of consenter error. It previously works but after server reboot. It stop working

reggiefelias (Thu, 20 Sep 2018 10:57:46 GMT):
Any reference would help

UpendraMishra (Thu, 20 Sep 2018 11:24:25 GMT):
Has joined the channel.

Raghavendrar 2 (Thu, 20 Sep 2018 11:27:58 GMT):

Error

Subhankar 3 (Thu, 20 Sep 2018 11:29:27 GMT):
what is relation between MaxMessageCount, AbsoluteMaxBytes and PreferredMaxBytes . And what should be the value of these to get maximum throughput.

yousaf (Thu, 20 Sep 2018 11:41:55 GMT):
I am using this command peer channel upgrade and getting this error.......Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg cannot get package for chaincode (mycc:2.0)....any solution?

halilkalkan (Thu, 20 Sep 2018 12:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g58Pd9t6382kBqauN) @aatkddny I could solve the issue partly, I have started my network from byfn.sh script, then join organization3 to channel. This way it worked but I cannot run the network directly with the command docker-compose -f docker-compose-cli.yaml up. I dont understand why :(

aatkddny (Thu, 20 Sep 2018 12:30:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ahe57vPHtGSgPqMT9) @halilkalkan sounds like you don't have the channel create block correct. If you look at it does it show the three orgs in the consortium? there's a lot of non-printable in there but you should see something that looks like this ```Consortium† ı Application ``` followed by the three MSPs

aatkddny (Thu, 20 Sep 2018 12:30:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ahe57vPHtGSgPqMT9) @halilkalkan sounds like you don't have the channel create block correct. If you look at it does it show the three orgs in the consortium? there's a lot of non-printable in there but you should see something that looks like this ```Consortium† ı Application ``` followed by the three MSPs Or in other words did you rerun configtxgen to create the correct `-outputCreateChannelTx` block?

halilkalkan (Thu, 20 Sep 2018 13:01:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EnwxwYkmrXCnEptB3) @aatkddny Those are true also... Now it gives a different error, BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining :D I want to be able to run this network with 3 orgs to try private data :(

siddhantwade (Thu, 20 Sep 2018 13:44:45 GMT):
Has joined the channel.

Hariprasauth (Thu, 20 Sep 2018 13:54:48 GMT):
Hi, while modelling the cto file - Is it a good approach to set the foreign relationship by referencing a model or would it be just enough to provide the identifier id? Example: in asset, the participantId need to be represented as resource or just the participantsId?

Hariprasauth (Thu, 20 Sep 2018 13:56:33 GMT):
Example: for an asset: --> Participants owner optional or o String ownerId

akshay.sood (Thu, 20 Sep 2018 14:11:11 GMT):
Hi All

akshay.sood (Thu, 20 Sep 2018 14:11:28 GMT):
I am trying to use `dev-mode` with nodejs chaincode

akshay.sood (Thu, 20 Sep 2018 14:11:33 GMT):
I am trying to execute `CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=localhost:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node chaincode/new/new.js`

akshay.sood (Thu, 20 Sep 2018 14:11:48 GMT):
but I am getting this error ```2018-09-20T14:09:37.532Z ERROR [lib/handler.js] uncaughtException: The "peer.address" program argument must be set to a legitimate value of : {"date":"Thu Sep 20 2018 19:39:37 GMT+0530 (IST)","process":{"pid":4549,"uid":501,"gid":20,"cwd":"/Users/akshaysood/Blockchain/IS","execPath":"/Users/akshaysood/.nvm/versions/node/v9.0.0/bin/node","version":"v9.0.0","argv":["/Users/akshaysood/.nvm/versions/node/v9.0.0/bin/node","/Users/akshaysood/Blockchain/IS/chaincode/new/new.js"],"memoryUsage":{"rss":46792704,"heapTotal":22970368,"heapUsed":16499656,"external":107831}},"os":{"loadavg":[1.716796875,1.73193359375,1.7177734375],"uptime":34650},"trace":[{"column":9,"file":"/Users/akshaysood/Blockchain/IS/chaincode/new/node_modules/fabric-shim/lib/chaincode.js","function":"parsePeerUrl","line":352,"method":null,"native":false},{"column":13,"file":"/Users/akshaysood/Blockchain/IS/chaincode/new/node_modules/fabric-shim/lib/chaincode.js","function":"Function.start","line":106,"method":"start","native":false},{"column":6,"file":"/Users/akshaysood/Blockchain/IS/chaincode/new/new.js","function":null,"line":93,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":641,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":652,"method":".js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":560,"method":"load","native":false},{"column":12,"file":"module.js","function":"tryModuleLoad","line":503,"method":null,"native":false},{"column":3,"file":"module.js","function":"Module._load","line":495,"method":"_load","native":false},{"column":10,"file":"module.js","function":"Module.runMain","line":682,"method":"runMain","native":false},{"column":16,"file":"bootstrap_node.js","function":"startup","line":191,"method":null,"native":false}],"stack":["Error: The \"peer.address\" program argument must be set to a legitimate value of :"," at parsePeerUrl (/Users/akshaysood/Blockchain/IS/chaincode/new/node_modules/fabric-shim/lib/chaincode.js:352:9)"," at Function.start (/Users/akshaysood/Blockchain/IS/chaincode/new/node_modules/fabric-shim/lib/chaincode.js:106:13)"," at Object. (/Users/akshaysood/Blockchain/IS/chaincode/new/new.js:93:6)"," at Module._compile (module.js:641:30)"," at Object.Module._extensions..js (module.js:652:10)"," at Module.load (module.js:560:32)"," at tryModuleLoad (module.js:503:12)"," at Function.Module._load (module.js:495:3)"," at Function.Module.runMain (module.js:682:10)"," at startup (bootstrap_node.js:191:16)"]}```

akshay.sood (Thu, 20 Sep 2018 14:11:59 GMT):
Does anyone know about it?

lepar (Thu, 20 Sep 2018 14:23:16 GMT):
@akshay.sood did you do NPM install?

akshay.sood (Thu, 20 Sep 2018 14:23:23 GMT):
yes

akshay.sood (Thu, 20 Sep 2018 14:23:29 GMT):
already did

akshay.sood (Thu, 20 Sep 2018 14:23:56 GMT):
```Akshays-MacBook-Pro:new akshaysood$ npm install npm WARN new@1.0.0 No repository field. up to date in 0.789s```

lepar (Thu, 20 Sep 2018 14:24:02 GMT):
Could be a version problem then. I've had that before. What version is in you package.json file?

akshay.sood (Thu, 20 Sep 2018 14:24:18 GMT):
```{ "name": "new", "version": "1.0.0", "description": "new chaincode implemented in node.js", "engines": { "node": ">=8.4.0", "npm": ">=5.3.0" }, "scripts": { "start": "node new.js" }, "engine-strict": true, "license": "Apache-2.0", "dependencies": { "fabric-shim": "unstable" } }```

lepar (Thu, 20 Sep 2018 14:24:47 GMT):
On fabric-shim, try putting in version 1.2.1

akshay.sood (Thu, 20 Sep 2018 14:24:50 GMT):
ok

lepar (Thu, 20 Sep 2018 14:24:53 GMT):
Replace with unstable

akshay.sood (Thu, 20 Sep 2018 14:25:27 GMT):
ok

akshay.sood (Thu, 20 Sep 2018 14:25:30 GMT):
let me try that

akshay.sood (Thu, 20 Sep 2018 14:25:52 GMT):
```notarget No matching version found for fabric-shim@1.2.1```

akshay.sood (Thu, 20 Sep 2018 14:25:56 GMT):
@lepar

lepar (Thu, 20 Sep 2018 14:26:05 GMT):
Go back to unstable.

lepar (Thu, 20 Sep 2018 14:26:31 GMT):
Check CORE_PEER_ADDRESS and make sure it's the right port and try substituting localhost to 172.0.0.1

akshay.sood (Thu, 20 Sep 2018 14:26:35 GMT):
1.2 is getting installed

lepar (Thu, 20 Sep 2018 14:26:48 GMT):
Great

akshay.sood (Thu, 20 Sep 2018 14:26:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vHtLsuMpWefTXzJwp) did you mean 127.0.0.1

akshay.sood (Thu, 20 Sep 2018 14:26:55 GMT):
?

lepar (Thu, 20 Sep 2018 14:27:10 GMT):
Yeah, my bad lol

akshay.sood (Thu, 20 Sep 2018 14:27:13 GMT):
ok

akshay.sood (Thu, 20 Sep 2018 14:27:16 GMT):
without port?

lepar (Thu, 20 Sep 2018 14:27:42 GMT):
With port. But make sure it's the right one running. Use "docker ps" to list the containers and see if it's the right poret

akshay.sood (Thu, 20 Sep 2018 14:27:59 GMT):
I am running peer on dev mode

akshay.sood (Thu, 20 Sep 2018 14:28:07 GMT):
so single peer with sampleconfig

akshay.sood (Thu, 20 Sep 2018 14:28:11 GMT):
and single orderer

akshay.sood (Thu, 20 Sep 2018 14:28:16 GMT):
I am not using docker

lepar (Thu, 20 Sep 2018 14:28:20 GMT):
Ohh right

lepar (Thu, 20 Sep 2018 14:28:36 GMT):
If you didn't change the port, then that should be the right now

lepar (Thu, 20 Sep 2018 14:28:38 GMT):
right one*

akshay.sood (Thu, 20 Sep 2018 14:29:30 GMT):
not working

lepar (Thu, 20 Sep 2018 14:29:41 GMT):
SAme error?

akshay.sood (Thu, 20 Sep 2018 14:29:46 GMT):
yes

akshay.sood (Thu, 20 Sep 2018 14:29:57 GMT):
I tried the ip shown in peer log ```2018-09-20 19:58:44.467 IST [nodeCmd] serve -> INFO 02e Starting peer with ID=[name:"jdoe" ], network ID=[dev], address=[192.168.8.102:7051] 2018-09-20 19:58:44.468 IST [nodeCmd] serve -> INFO 02f Started peer with ID=[name:"jdoe" ], network ID=[dev], address=[192.168.8.102:7051]```

akshay.sood (Thu, 20 Sep 2018 14:30:00 GMT):
but failed again

akshay.sood (Thu, 20 Sep 2018 14:30:18 GMT):
```CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=192.168.8.102:7051 CORE_CHAINCODE_ID_NAME=mycc:0 node new.js ```

akshay.sood (Thu, 20 Sep 2018 14:30:32 GMT):
do you know why it is getting failed

akshay.sood (Thu, 20 Sep 2018 14:30:33 GMT):
?

lepar (Thu, 20 Sep 2018 14:31:16 GMT):
""Error: The \"peer.address\" program argument must be set to a legitimate value of :

lepar (Thu, 20 Sep 2018 14:32:31 GMT):
What's the complete command you're using?

akshay.sood (Thu, 20 Sep 2018 14:33:05 GMT):
```CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=192.168.8.102:7052 CORE_CHAINCODE_ID_NAME=mycc:0 npm start ```

akshay.sood (Thu, 20 Sep 2018 14:33:20 GMT):
I tried ```CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=192.168.8.102:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node new.js ```

akshay.sood (Thu, 20 Sep 2018 14:33:20 GMT):
```CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=192.168.8.102:7051 CORE_CHAINCODE_ID_NAME=mycc:0 node new.js ```

akshay.sood (Thu, 20 Sep 2018 14:33:21 GMT):
also

lepar (Thu, 20 Sep 2018 14:35:35 GMT):
Are u following any documentation? I can't seem to find it right now

akshay.sood (Thu, 20 Sep 2018 14:35:44 GMT):
this one

akshay.sood (Thu, 20 Sep 2018 14:35:44 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html

lepar (Thu, 20 Sep 2018 14:35:55 GMT):
Thanks

lepar (Thu, 20 Sep 2018 14:39:11 GMT):
Do the ENV command and see if the environment variables are being set

akshay.sood (Thu, 20 Sep 2018 14:40:34 GMT):
yes

akshay.sood (Thu, 20 Sep 2018 14:40:38 GMT):
they are already in ENV

lepar (Thu, 20 Sep 2018 14:41:52 GMT):
Ah shit. Idk what to tell u. That's all I can think of right now

akshay.sood (Thu, 20 Sep 2018 14:42:16 GMT):
no problem

akshay.sood (Thu, 20 Sep 2018 14:42:22 GMT):
Thanks brother :)

lepar (Thu, 20 Sep 2018 14:47:00 GMT):
If u figure it out, pm me cus I'm documenting errors

akshay.sood (Thu, 20 Sep 2018 14:48:22 GMT):
sure

princejha (Thu, 20 Sep 2018 15:01:40 GMT):
Hi I am getting this error when i am installing chaincode

princejha (Thu, 20 Sep 2018 15:02:04 GMT):
2018-09-20 20:27:48.311 IST [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type ""

princejha (Thu, 20 Sep 2018 15:03:23 GMT):
Where I have done wrong ?

akshay.sood (Thu, 20 Sep 2018 15:51:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n6NHMLxaqswMgSRXz) Anyone know this error?

gen_el (Thu, 20 Sep 2018 16:19:36 GMT):
So my chaincode's docker container exited because of an uncatch error. It refused to start and attach no matter what i tried. Is there absolutely no way to start an exited chaincode docker container?

akshay.sood (Thu, 20 Sep 2018 16:27:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ExbHMA7zKko2Dnn5c) anyone?

akshay.sood (Thu, 20 Sep 2018 16:28:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d5neTpBs2QetBcQHb) error

rmorbach (Thu, 20 Sep 2018 16:30:18 GMT):
While running private data tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.2/private_data_tutorial.html, I noticed the private data `initMarble marble1 blue 35 tom 99` is being written on the ledger (`/var/hyperledger/production/ledgersData/chains/chains/mychannel`) of all peers, and not its hash data as stated in the tutorial. Is this the correct behaviour?

rmorbach (Thu, 20 Sep 2018 16:30:18 GMT):
While running private data tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.2/private_data_tutorial.html, I noticed the private data `initMarble marble1 blue 35 tom 99` is being written on the ledger (`/var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000`) of all peers, and not its hash data as stated in the tutorial. Is this the correct behaviour?

rmorbach (Thu, 20 Sep 2018 16:30:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R5e3gY3F35JpdWCe8) @akshay.sood Try this `CORE_CHAINCODE_LOGLEVEL=debug --peer.address=localhost:7052 CORE_CHAINCODE_ID_NAME=mycc:0 node chaincode/new/new.js`

akshay.sood (Thu, 20 Sep 2018 16:31:28 GMT):
@rmorbach

akshay.sood (Thu, 20 Sep 2018 16:31:32 GMT):
it shows --peer.address=localhost:7052: command not found

akshay.sood (Thu, 20 Sep 2018 16:31:32 GMT):
it shows `--peer.address=localhost:7052: command not found`

rmorbach (Thu, 20 Sep 2018 16:32:57 GMT):
@akshay.sood are you trying to inspect the chaincode?

akshay.sood (Thu, 20 Sep 2018 16:33:11 GMT):
nops

akshay.sood (Thu, 20 Sep 2018 16:33:28 GMT):
I am following this tutorial https://hyperledger-fabric.readthedocs.io/en/v1.0.6/peer-chaincode-devmode.html

akshay.sood (Thu, 20 Sep 2018 16:36:39 GMT):
https://stackoverflow.com/questions/52429568/hyperledger-fabric-devmode

rmorbach (Thu, 20 Sep 2018 16:49:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fn5frRMrFaxz46gWX) @akshay.sood Any particular reason for not using release 1.2.0? https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-chaincode-devmode.html

dave.enyeart (Thu, 20 Sep 2018 16:55:53 GMT):
@rmorbach In the real world you would pass private data to chaincode in the proposal transient field, so that it does not appear in the public block at all. the sample will get updated to demonstrate this, see https://jira.hyperledger.org/browse/FAB-12056

akshay.sood (Thu, 20 Sep 2018 17:06:42 GMT):
@rmorbach I fixed that issue by ```node chaincode/new/new.js --peer.address 192.168.8.107:7052```

JuanSuero (Thu, 20 Sep 2018 17:10:12 GMT):
Im getting a failed to invoke chaincode name:"lscc" , error: handler not found for chaincode mynetwork:0.0.1 failed to init chaincode in the docker logs.... not sure what to do. the only difference i have is that i use FQDN for everything and im sharing, /etc/hyperledger/peer/msp, /etc/hyperledger/msp/users and /etc/hyperledger/configtx out from NFS and they have user Nobody/Nogroup instead of user 1000/1000 when i EXEC into the container.. any ideas?

JuanSuero (Thu, 20 Sep 2018 17:10:12 GMT):
Im getting a failed to invoke chaincode name:"lscc" , error: handler not found for chaincode mynetwork:0.0.1 failed to init chaincode in the docker logs.... not sure what to do. the only difference i have is that i use FQDN for everything and im sharing, /etc/hyperledger/peer/msp, /etc/hyperledger/msp/users and /etc/hyperledger/configtx out from NFS and they have user Nobody/Nogroup instead of user 1000/1000 when i EXEC into the container.. any ideas? also i just tested without nfs on same server ( still using FQDN everywhere ) ( i set my /etc/hosts to resolve all to the same machine 192.168.122.80 ) still getting this error

JuanSuero (Thu, 20 Sep 2018 17:10:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iFT7spYQkGQyLZ6Dm) also i just tested without nfs on same server ( still using FQDN everywhere ) ( i set my /etc/hosts to resolve all to the same machine 192.168.122.80 ) still getting this error

rmorbach (Thu, 20 Sep 2018 17:13:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WyMsQjEymT5eJCo9N) @dave.enyeart Thanks Dave, good to know.

arindammondal91 (Thu, 20 Sep 2018 17:15:37 GMT):
Hello guys, what is the best place to learn writing chaincode in node.js. I have gone through the basic architecture of Hyperledger fabric and got an idea how to setup the network. But now I want to write some chaincode and deploy to blockchain network.

rmorbach (Thu, 20 Sep 2018 17:22:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BXE6ot5ao7bjis82d) @akshay.sood Nice. If this is the same machine, `localhost:7052` should work fine as well.

akshay.sood (Thu, 20 Sep 2018 17:28:59 GMT):
@rmorbach actually core peer address in `core.yaml` is set to 0.0.0.0

akshay.sood (Thu, 20 Sep 2018 17:29:00 GMT):
so it is auto resolving its address to machine ip

akshay.sood (Thu, 20 Sep 2018 17:29:11 GMT):
thats why I had to use machine ip

JuanSuero (Thu, 20 Sep 2018 17:49:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iFT7spYQkGQyLZ6Dm) solved: i was running the peer with --peer-chaincodedev=true

yousaf (Thu, 20 Sep 2018 18:31:28 GMT):
jq -s '.[0] * {"channel_group":{"groups":{"Application":{"groups": {"Org3MSP":.[1]}}}}}' config.json ./channel-artifacts/org3.json > modified_config.json Can anyone tell me the similar command to add a new consortium for configuration update ??

mcreimer (Thu, 20 Sep 2018 19:02:50 GMT):
Has joined the channel.

liuyuanting1209 (Fri, 21 Sep 2018 00:55:59 GMT):
Hi, I want to write a token chaincode, is there an example? what needs to pay attention to?

GuillaumeTong (Fri, 21 Sep 2018 01:08:04 GMT):
Has joined the channel.

GuillaumeTong (Fri, 21 Sep 2018 01:11:45 GMT):
Hello, I would like to ask if there is currently any tools I can use to consult the contents of the blocks

GuillaumeTong (Fri, 21 Sep 2018 01:12:48 GMT):
Similarly, I am also wondering about how I should view the content of levelDB.

GuillaumeTong (Fri, 21 Sep 2018 01:15:25 GMT):
The reason I want to do both of those things is because I am testing out the private data collections and the docs mention I can verify if the hash of my private data is present in the chain to prove its legitimacy

reggiefelias (Fri, 21 Sep 2018 01:17:29 GMT):
Hi all good day. I have a web app that uses fabric sdk. When i try to initialize the channel. Error is thrown getting block time exceed 5 seconds for channel

reggiefelias (Fri, 21 Sep 2018 01:17:57 GMT):
It seems it doesn't reach the orderer

reggiefelias (Fri, 21 Sep 2018 02:00:18 GMT):
When i check the order logs it is showing rejecting deliver request because of consenter error

Quiark (Fri, 21 Sep 2018 02:02:07 GMT):
Has joined the channel.

Quiark (Fri, 21 Sep 2018 02:06:04 GMT):
are there any guidelines, recommendations and best practices on creating endorsement policies?

Quiark (Fri, 21 Sep 2018 02:06:20 GMT):
let's say I come from Ethereum background, I would imagine every single party runs the chaincode

seshanthS (Fri, 21 Sep 2018 03:38:54 GMT):
Hie., i use docker-compose method. I managed to bring the network up,but i cant create channel....see the error msg...

seshanthS (Fri, 21 Sep 2018 03:39:19 GMT):

err.png

seshanthS (Fri, 21 Sep 2018 03:39:56 GMT):

err1.png

seshanthS (Fri, 21 Sep 2018 03:41:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LXif6b2DPyCbyRSTJ) @reggiefelias check the port number....and is the network up?

reggiefelias (Fri, 21 Sep 2018 03:50:41 GMT):
@seshanthS thanks for the suggestion. Let me check

jonlee300 (Fri, 21 Sep 2018 04:08:29 GMT):
as directed from composer channels, i encountered completed metldown of the whole Fabric. how to reproduce: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html https://hyperledger.github.io/composer/latest/installing/development-tools install v0.20.0 instead (as composer channel has confirmed that the issue is likely from Fabric, no matter v0.19.x or v0.20 shall produce the same outcome. # export FABRIC_VERSION=hlfv12 # ./startFabric.sh # ./createPeerAdminCard.sh using either yo to create the sample network or use below *** CTO namespace bank participant SampleParticipant identified by participantId { o String participantId o String firstName o String lastName } asset SampleAsset identified by assetId { o String assetId --> SampleParticipant owner o String value } transaction SampleTransaction { --> SampleAsset asset o String newValue } event SampleEvent { --> SampleAsset asset o String oldValue o String newValue } logic.js *** 'use strict'; /** * Write your transction processor functions here */ /** * Sample transaction * @param {bank.SampleTransaction} sampleTransaction * @transaction */ async function sampleTransaction(tx) { // Save the old value of the asset. const oldValue = tx.asset.value; // Update the asset with the new value. tx.asset.value = tx.newValue; // Get the asset registry for the asset. const assetRegistry = await getAssetRegistry('bank.SampleAsset'); // Update the asset in the asset registry. await assetRegistry.update(tx.asset); // Emit an event for the modified asset. let event = getFactory().newEvent('bank', 'SampleEvent'); event.asset = tx.asset; event.oldValue = oldValue; event.newValue = tx.newValue; emit(event); } permission.acl rule EverybodyCanReadEverything { description: "Allow all participants read access to all resources" participant: "bank.SampleParticipant" operation: READ resource: "bank.*" action: ALLOW } rule EverybodyCanSubmitTransactions { description: "Allow all participants to submit transactions" participant: "bank.SampleParticipant" operation: CREATE resource: "bank.SampleTransaction" action: ALLOW } rule OwnerHasFullAccessToTheirAssets { description: "Allow all participants full access to their assets" participant(p): "bank.SampleParticipant" operation: ALL resource(r): "bank.SampleAsset" condition: (r.owner.getIdentifier() === p.getIdentifier()) action: ALLOW } rule SystemACL { description: "System ACL to permit all access" participant: "org.hyperledger.composer.system.Participant" operation: ALL resource: "org.hyperledger.composer.system.**" action: ALLOW } rule NetworkAdminUser { description: "Grant business network administrators full access to user resources" participant: "org.hyperledger.composer.system.NetworkAdmin" operation: ALL resource: "**" action: ALLOW } rule NetworkAdminSystem { description: "Grant business network administrators full access to system resources" participant: "org.hyperledger.composer.system.NetworkAdmin" operation: ALL resource: "org.hyperledger.composer.system.**" action: ALLOW } **** Do some transactions. The network will breakdown. (ranging from less than 50 to up to 2000). I hereby attached the logs.

jonlee300 (Fri, 21 Sep 2018 04:10:13 GMT):

ca-couchdb-log.txt

jonlee300 (Fri, 21 Sep 2018 04:10:26 GMT):

composer-network-log.zip

jonlee300 (Fri, 21 Sep 2018 04:24:15 GMT):

orderer-log.zip

jonlee300 (Fri, 21 Sep 2018 04:26:05 GMT):
https://300cubits.tech/pdf/peer-log.zip

atirekg (Fri, 21 Sep 2018 05:12:51 GMT):
Hi

atirekg (Fri, 21 Sep 2018 05:13:12 GMT):
Since when I have started on the hyperledger fabric I am asking a question to myself and search for it as well but not getting the answer, When Create docker container for HF development environment it uses org1[dot]example[dot]com in many area, example[dot]com is a domain which we use to give examples in our documents so should be change it when we are setting up our environment or it should be kept as it is. What is the purpose of this and what does it represent. What is the purpose of using example[dot]com, and if we need to change it then how can we replace it and setup new domain, say my domain is ati[dot]com there should all I replace it.

atirekg (Fri, 21 Sep 2018 05:14:01 GMT):
can anyone please clear my doubt

kennethpham (Fri, 21 Sep 2018 05:42:52 GMT):
Has joined the channel.

amitkumar991 (Fri, 21 Sep 2018 06:02:57 GMT):
Has joined the channel.

amitkumar991 (Fri, 21 Sep 2018 06:03:39 GMT):
#fabric-ca

rajanashutosh (Fri, 21 Sep 2018 06:18:23 GMT):
hello all, would like to know what would be best ways to check performance of fabric network

reggiefelias (Fri, 21 Sep 2018 06:39:01 GMT):
Hi all, im having connection refused error in my zookeeper. I checked the network is already up and the port is already open.

ManishKhobragade (Fri, 21 Sep 2018 06:47:45 GMT):
Has joined the channel.

ManishKhobragade (Fri, 21 Sep 2018 06:47:48 GMT):
Hi Can anyone help me debug with this error: ERROR :Resolver :resolveRelationship() Failed to resolve relationship {"stack":["{Error}[e10b9eac]No ledger context for GetState. Sending ERROR Error: [e10b9eac]No ledger context for GetState. Sending ERROR"," I have got this error from the peer logs of the Blockchain Network deployed on IBM cloud. This error is generated when I am trying to change the value of a property inside asset. In my asset there are number of relationships and apparently the above error does not pinpoint to which of this it is not able to resolve. Can anyone help here from where I can get more details in this error.

Luxii (Fri, 21 Sep 2018 07:25:08 GMT):

Clipboard - September 21, 2018 12:54 PM

Luxii (Fri, 21 Sep 2018 07:25:11 GMT):
Hello, Im getting following error after invoking a transaction

Luxii (Fri, 21 Sep 2018 07:26:20 GMT):
Does anyone know how to fix *PHANTOM_READ_CONFLICTS*

npc0405 (Fri, 21 Sep 2018 08:01:24 GMT):
Shall we use Vault, If I need to take application to production. ?

npc0405 (Fri, 21 Sep 2018 08:04:36 GMT):
I am trying to test private data created between org1 and org2. Scenario 1: When I invoke org3 peer in same channel, its not able to see the private data (between org1 n org2) Scenario 2: When I invoke org1 or org2 peer with org3 user, it gives me result of private data. Ideally scenario 2 should fail. Please let me know further elaboration on this.

halilkalkan (Fri, 21 Sep 2018 08:13:47 GMT):
Guys, what happens when there are 3 different collections for different organizations instance A-B, B-C, A-C and the endorsement policy is set to AND(A,B,C). Is this scenario can work with private data? If it doesnt work, is there any further implementations about this case?

Jyotirmoy (Fri, 21 Sep 2018 08:58:41 GMT):
How to deploy Hyperledger fabric in production environment any links for that

kegan (Fri, 21 Sep 2018 08:58:52 GMT):
Has joined the channel.

rkarthik28787 (Fri, 21 Sep 2018 09:50:17 GMT):
Has joined the channel.

rkarthik28787 (Fri, 21 Sep 2018 09:52:58 GMT):
Hi Guys, I'm new to blockchain and Hyperledger Fabric. I'm trying out the Build Your First Network Tutorial, and I'm stuck at the very first step of generating certificates and the genesis block! I'm getting the below error:

rkarthik28787 (Fri, 21 Sep 2018 09:53:26 GMT):
########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com 2018-09-21 15:02:15.797 IST [bccsp_sw] storePrivateKey -> ERRO 001 Failed storing private key [2440e365360fe77fa1fa0011ede9fac0cecae663dc953f44c1aee0a77ec6df15]: [open crypto-config\peerOrganizations\org1.example.com\peers\peer0.org1.example.com\msp\keystore\2440e365360fe77fa1fa0011ede9fac0cecae663dc953f44c1aee0a77ec6df15_sk: The system cannot find the path specified.] Error generating local MSP for {peer0 peer0.org1.example.com [peer0.org1.example.com peer0]}: Failed storing key [ECDSAP256]: Failed storing ECDSA private key [open crypto-config\peerOrganizations\org1.example.com\peers\peer0.org1.example.com\msp\keystore\2440e365360fe77fa1fa0011ede9fac0cecae663dc953f44c1aee0a77ec6df15_sk: The system cannot find the path specified.] + res=1 + set +x Failed to generate certificates...

rkarthik28787 (Fri, 21 Sep 2018 09:53:49 GMT):
I'm running this on a Windows 10 machine. Any help would be appreciated.

midhun14 (Fri, 21 Sep 2018 10:01:13 GMT):
Can we install chaincode with some name other than mycc? I am getting an error when using some other name

dave.enyeart (Fri, 21 Sep 2018 10:05:49 GMT):
@npc0405 you need to add access control to the chaincode itself. See the 3rd bullet in this doc topic:

dave.enyeart (Fri, 21 Sep 2018 10:05:53 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html#querying-private-data

dave.enyeart (Fri, 21 Sep 2018 10:07:09 GMT):
This will be addressed in an upcoming release, to automatically perform the access control check or have an API to give the chaincode author the option

yousaf (Fri, 21 Sep 2018 10:08:37 GMT):
I am trying to update the policy and in the BYFN, i initialized endorsement policy to OR('Org1MSP.admin' , 'Org2MSP.admin' ) but when i send the endorsed transaction to orderer by using peer channel update command then i am getting this error. Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Policy] /Channel/Admins not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining..................Any solution?

dave.enyeart (Fri, 21 Sep 2018 10:08:46 GMT):
@halilkalkan it doesn't make sense to require all 3 orgs to endorse the transaction, if only two of them can see the private data during endorsement phase. You would need to use a 2 out of 3 endorsement policy. Note that in a future release endorsement policy may also get added at collection level, to override chaincode level endorsement policy.

npc0405 (Fri, 21 Sep 2018 10:18:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WqodWFgy9acLpsXdG) @dave.enyeart Thanks @dave.enyeart

MuhammedHafil (Fri, 21 Sep 2018 10:41:33 GMT):
Hi, i want to add a participant and use the newly added participant's identifier to be used later in transaction, how will i achieve that . my models looks like this

halilkalkan (Fri, 21 Sep 2018 11:11:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JJ7TLDsbkZv2vuaaW) @dave.enyeart I have tried your suggestion but OutOf notation doesnt work, however OR notation works for this case. OutOf notation gives me endorsement error. I'm currently running marble private chaincode, and it cannot create a marble. My network contains 3 different organizations. I have set my endorsement policy as OutOf(2, Org1, Org2, Org3) and my 3 organizations has public data, 2 organizations have private data.

halilkalkan (Fri, 21 Sep 2018 11:11:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JJ7TLDsbkZv2vuaaW) @dave.enyeart I have tried your suggestion but OutOf notation doesnt work, however OR notation works for this case. OutOf notation gives me endorsement error. I'm currently running marble private chaincode, and it cannot create a marble. My network contains 3 different organizations. I have set my endorsement policy as OutOf(2, Org1, Org2, Org3) and my 3 organizations have public data, 2 organizations have private data.

dave.enyeart (Fri, 21 Sep 2018 11:18:30 GMT):
OutOf notation would need to be configured in the endorsement policy, not the collection policy

dave.enyeart (Fri, 21 Sep 2018 11:18:30 GMT):
OutOf notation would need to be configured in the chaincode-level endorsement policy, not the collection policy

MatrixXXL (Fri, 21 Sep 2018 11:29:50 GMT):
Has joined the channel.

halilkalkan (Fri, 21 Sep 2018 11:31:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=56TkvpsfHTjzTNSdT) @dave.enyeart Yep, I didn't use outof notation in collection file as you mentioned. I'm trying different configurations to figure out why endorsement fails when I set my chaincode level endorsement as OutOf notation. I'm gonna inform here if I find anything.

dave.enyeart (Fri, 21 Sep 2018 11:32:06 GMT):
ok, using private data should have no impact on OutOf endorsement policy... try without private data and see if you get the same problem

yousaf (Fri, 21 Sep 2018 11:38:36 GMT):
How to set environment variables to use orderer peer, just like we use orgs peers.?

rajanashutosh (Fri, 21 Sep 2018 11:58:07 GMT):
@dave.enyeart I tried out with performance testing on fabric network with 3 VMs 4 orgs dedicated CA along with Kafka and ZooKeeper. But as in whole throughput which I am able to obtain is 40 transactions per second.

rajanashutosh (Fri, 21 Sep 2018 11:58:39 GMT):
Single channel single chaincode and for write operation alone.

rajanashutosh (Fri, 21 Sep 2018 11:59:10 GMT):
Block size set is 30 transactions, timeout 1s preferred size 512kb

rajanashutosh (Fri, 21 Sep 2018 11:59:47 GMT):
Server configs: 4 core processor with 20+ gigs of Ram

rajanashutosh (Fri, 21 Sep 2018 12:00:13 GMT):
any inputs or ur suggestions in improving the performance would be helpful

dave.enyeart (Fri, 21 Sep 2018 12:02:23 GMT):
i haven't done performance test or analysis myself, but i know others have seen an order of magnitude better performance. my only suggestion would be to set block size higher and then look at debug logs to see where time is being spent

rajanashutosh (Fri, 21 Sep 2018 12:03:51 GMT):
I am using Java sdk to communicate with fabric network and chaincodes so that also adds up. For now we are using Jmeter and locust. Definitely will check up your suggestions.

rajanashutosh (Fri, 21 Sep 2018 12:04:28 GMT):
Next approach which we are thinking off is to execute commands via CLI using python scripts and check for throughput.

rmorbach (Fri, 21 Sep 2018 12:22:27 GMT):
Does anyone know if blockchain-explorer 0.3.6 only works with TLS enable?

rmorbach (Fri, 21 Sep 2018 12:22:27 GMT):
Does anyone know if blockchain-explorer 0.3.6 only works with TLS enabled?

halilkalkan (Fri, 21 Sep 2018 12:45:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GcjdpDD8BqBGunCRN) @dave.enyeart I cannot understand but outof notation doesnt work with private data. I don't know why. I have been trying different combinations, OR works but when I change to OutOf(2,'Org1.member','Org2.member','Org3.member') doesn't work.. :(

dave.enyeart (Fri, 21 Sep 2018 12:48:37 GMT):
@halilkalkan ok, please open a Bug at https://jira.hyperledger.org/projects/FAB/issues/FAB-11720?filter=allopenissues with full details of what you are seeing, so that we can look deeper

halilkalkan (Fri, 21 Sep 2018 12:52:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MfRJA3eS64rACCs7d) @dave.enyeart Okey, im gonna investigate further and if i cannot find a solution Im gonna open a bug report. Thank you for your support !! :)

mauriff (Fri, 21 Sep 2018 14:05:13 GMT):
Hi everybodoy, I'm working in an architecture design for a customer, and they are evaluating HL Fabric to build a Hybrid platform. There is another blockchain (Gochain) that they are evaluating and they come back with some concerns about Fabric #1 : how to allow new participants and customers join to the HL Fabric Blockchain they are concerned how to add new nodes when the blockchain is up & running #2 How to integrate HL Fabric with Ethereum network, in order to separate the token and the transactions in the permissioned network # 3: They says that HL Fabric is not BFT (Byzantine Fault Tolerant). I think that here it depends on the Consensus algorithm that the blockchain implements.

mauriff (Fri, 21 Sep 2018 14:05:50 GMT):
Any help, will be very appreciate

ColeBoudreau (Fri, 21 Sep 2018 14:13:57 GMT):
@mauriff 1) adding new nodes / organizations is certainly do-able and a standard procedure in HL fabric. Its of course a bit technical, but can / is expected to be done in most networks regularly.

ColeBoudreau (Fri, 21 Sep 2018 14:13:57 GMT):
@mauriff 1) adding new nodes / organizations is certainly do-able and a standard procedure in HL fabric. Its of course a bit technical, but can / is expected to be done in most networks regularly. 2) Don't know enough about integration with Ethereum, hopefully someone else can help there.

ColeBoudreau (Fri, 21 Sep 2018 14:13:57 GMT):
@mauriff 1) adding new nodes / organizations is certainly do-able and a standard procedure in HL fabric. Its of course a bit technical, but can / is expected to be done in most networks regularly. 2) Don't know enough about integration with Ethereum, hopefully someone else can help there. 3) HL Fabric is not _malicious_ fault tolerant (specifically Kafka ordering), but Kafka is BFT in the sense of lost nodes / unresponsive nodes. There are some fully BFT consensus methods out there (practical BFT, BFT-SMaRT) but they are still in the process of being integrated officially with HL Fabric. Hopefully they will be down the road / soon.

mauriff (Fri, 21 Sep 2018 14:21:48 GMT):
Hi @ColeBoudreau, thanks !

mauriff (Fri, 21 Sep 2018 14:21:49 GMT):
I know that HL fabric supports several consensus mechanism. if you have to plug one mechanism today. what do you think is the best option for today?

ColeBoudreau (Fri, 21 Sep 2018 14:27:04 GMT):
@mauriff Right now (afaik) only Solo and Kafka are officially supported. Solo is ONLY for dev, and is not safe for most production environments. Kafka is better, but as said is not malicious BFT. So Kafka is of course the best option among the official consensus methods, however if malicious bft is required, then you may need to do some extra work to implement / use a third party consensus method. It really depends on your application needs.

Quiark (Fri, 21 Sep 2018 14:29:49 GMT):
hi, what are the recommendations or best practices for picking endorsement policy? Let's say I come from Ethereum background, I would imagine every node to be running the chaincode....

mcreimer (Fri, 21 Sep 2018 14:35:51 GMT):

Clipboard - 21 de Setembro de 2018 11:34

mcreimer (Fri, 21 Sep 2018 14:36:08 GMT):
Hi there! I noticed something that seems to be an error in a Fabric e-mail content. When I created a channel, I received an e-mail asking for my approval. However, when the cannel was indeed created I received an e-mail with "Channel Created" as the title, but the e-mail body was identical to the first one (the one asking for approval). This is a tricky situation, as the user can try to approve a channel already created. I´m sending you above a picture of both e-mails for your better understanding. In case you agree this is an error, how should I proceed to open a bug ticket? ``` ```

kulkarnikk (Fri, 21 Sep 2018 19:20:31 GMT):
Has joined the channel.

kulkarnikk (Fri, 21 Sep 2018 19:20:37 GMT):
Hello All, I am willing to setup a Fabric Network v1.0 with Orderer on one host while peer organisations on different physical machines. I need to have such setup for project requirement. However, I am getting error when I try to start orderer service with any IP instead of 0.0.0.0. Moreover, my peer org cannot reach this orderer. I tried to google and found that this can be achieved with multiple VMs but using Swarm. I want to avoid using Swarm. Do we have any documentation that provides detailed approach on achieving this? Your urgent reply will really help me.

ColeBoudreau (Fri, 21 Sep 2018 20:06:59 GMT):
Can someone explain to me the concepts of 'chains' in Cello, and how it relates to channels/ledgers/peers in Fabric? Also in the cello admin dashboard you can create users with a 'Balance' field, but what if you have no concept of a balance in your network?

yousaf (Sat, 22 Sep 2018 08:11:42 GMT):
I am using this command to set the mod_policy.... jq -s '.[0] * {"channel_group":{"groups":{"Consortiums":{"groups":{"mod_policy":"Admins"}}}}}' config.json > modified_config.json....................to set the mod policy in config.json file. But getting this error............. Error decoding: error decoding input: *common.Config: error in PopulateFrom for field channel_group for message *common.Config: *common.DynamicChannelGroup: error in PopulateFrom for map field groups with key Consortiums for message *common.DynamicChannelGroup: *common.DynamicConsortiumsGroup: expected map field groups value for mod_policy for message *common.DynamicConsortiumsGroup to be assignable from map[string]interface {} but was not. Is string....................Any solution?

MattAd (Sat, 22 Sep 2018 21:03:15 GMT):
Has joined the channel.

MattAd (Sat, 22 Sep 2018 21:03:20 GMT):
Any chance someone could please explain the purpose of async/await in Fabric's context? Struggling to grasp its use and why it is necessary

Mari499 (Sun, 23 Sep 2018 00:23:27 GMT):
The Healthcare Working Group Patient Subgroup is building a POC and we're looking for someone who would be interesting in collaborating on the DAPP build as well as someone who understands how permissions and authentication on the network works in Fabric. Let me know if you're interested: https://lists.hyperledger.org/g/healthcare-wg/message/597 https://github.com/hyperledger-labs/milk-donor

Jgnuid (Sun, 23 Sep 2018 00:24:27 GMT):
@MattAd , are you talking about Javascript?

noorulameen (Sun, 23 Sep 2018 04:27:21 GMT):
Has joined the channel.

noorulameen (Sun, 23 Sep 2018 04:27:29 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

noorulameen (Sun, 23 Sep 2018 04:33:06 GMT):
Any suggestion to fix above error?

zhongli (Sun, 23 Sep 2018 04:42:11 GMT):
Has joined the channel.

zhongli (Sun, 23 Sep 2018 07:25:04 GMT):
looks like some network issues, or the orderer container failed to start

mahima (Sun, 23 Sep 2018 08:35:29 GMT):
Has joined the channel.

mahima (Sun, 23 Sep 2018 08:36:13 GMT):
Hi, Is there any official documentation/guide on setting up Hyperledger Fabric in multi-virtual machine environment?

Senapi (Sun, 23 Sep 2018 08:41:23 GMT):
Has joined the channel.

Senapi (Sun, 23 Sep 2018 08:42:44 GMT):
Hi all, I have a question regarding hyperledger-fabric. The emitted event due to a transaction how can I handle it (subscribe to it), is it the only way through REST APIs from node.js client mode? Can't I handle it from the same logic.js file from another transaction?

Senapi (Sun, 23 Sep 2018 08:45:44 GMT):
and can you please send me a good tutorial about channels in hyperledger-fabric, thanks in adcance

Senapi (Sun, 23 Sep 2018 08:45:44 GMT):
and can you please send me a good tutorial about channels in hyperledger-composer, thanks in adcance

Senapi (Sun, 23 Sep 2018 08:45:48 GMT):
advance*

batch8 (Sun, 23 Sep 2018 12:47:21 GMT):
Hello All, Blockchain is often referred to as system without specific administrator. Are there specific administrator in Fabric? What is it if there are in Fabric?

Senapi (Sun, 23 Sep 2018 13:16:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a2ysDZBWB5kXXTbvh) @batch8 I think you mean the peeradmin ?

batch8 (Sun, 23 Sep 2018 13:21:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5CsL6YDNqH7BZFB3d) @Senapi Maybe so.... Do specific organization have authority in Fabric?

Senapi (Sun, 23 Sep 2018 14:08:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y4Y7tJvdtqPdoHc2B) @batch8 yeah, you can provide access list for each organization and you can set what transaction for each organization can execute using channels

batch8 (Sun, 23 Sep 2018 15:38:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3GYoGLpDkzLKDcp34) @Senapi I understood it. Is Fabric referred to as system without specific administrator?

MuhammadSalah (Sun, 23 Sep 2018 16:30:30 GMT):
Hello everyone, I have tried to re-run this example on IBM Cloud Container Service, and I have got a weird experience for using composer; you can't deploy a business network due to an EAI_AGAIN error from npm while the runtime of the chaincode is being built. Link to the example: https://ibm-blockchain.github.io/setup/ Can someone point out how to mitigate this problem on kubernetes? Notice: I have tried the v 1.1 fabric with v 0.19.5 composer I have tried the v 1.2 fabric with v 0.20.1 composer Same error, so I think this is due to some upgrade to IBM Cloud.

Senapi (Sun, 23 Sep 2018 20:44:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qKdaLkp2wZG2PuZqc) @batch8 as far as my understanding, the answer is no, there should be an administrator

Senapi (Sun, 23 Sep 2018 20:44:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qKdaLkp2wZG2PuZqc) @batch8 as far as I understand, the answer is no, there should be an administrator

batch8 (Mon, 24 Sep 2018 00:07:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WuhAoxxfW9JnP2ye8) @Senapi What is it?

Ilya_Eremenko (Mon, 24 Sep 2018 02:23:16 GMT):
Has joined the channel.

reggiefelias (Mon, 24 Sep 2018 06:30:04 GMT):
Hi All, good day. I'm having below error when I try to upgrade chaincode. 2018-09-24 06:25:46.256 UTC [chaincodeCmd] chaincodeUpgrade -> DEBU 00c Send signed envelope to orderer Error: Got unexpected status: SERVICE_UNAVAILABLE

reggiefelias (Mon, 24 Sep 2018 06:31:22 GMT):
Then on my orderer i have the following multiple entries.

reggiefelias (Mon, 24 Sep 2018 06:31:26 GMT):
2018-09-24 06:29:50.135 UTC [orderer/main] func1 -> DEBU 2a37 Closing Deliver stream 2018-09-24 06:30:03.656 UTC [orderer/main] Deliver -> DEBU 2a38 Starting new Deliver handler 2018-09-24 06:30:03.656 UTC [orderer/common/deliver] Handle -> DEBU 2a39 Starting new deliver loop 2018-09-24 06:30:03.656 UTC [orderer/common/deliver] Handle -> DEBU 2a3a Attempting to read seek info message 2018-09-24 06:30:03.656 UTC [orderer/common/deliver] Handle -> WARN 2a3b [channel: some channel] Rejecting deliver request because of consenter error 2018-09-24 06:30:03.656 UTC [orderer/main] func1 -> DEBU 2a3c Closing Deliver stream

reggiefelias (Mon, 24 Sep 2018 06:32:07 GMT):
The network is up, hostname can be resolved and port is open

reggiefelias (Mon, 24 Sep 2018 06:32:19 GMT):
is there any other area i need to check? Thanks

reggiefelias (Mon, 24 Sep 2018 07:08:57 GMT):
and when I execute the following docker exec cli peer channel fetch newest -o orderer1.some.name.com:7050

reggiefelias (Mon, 24 Sep 2018 07:09:25 GMT):
I'm having below error 2018-09-24 07:06:05.048 UTC [channelCmd] getNewestBlock -> ERRO 00b Received error: rpc error: code = Internal desc = transport is closing Error: rpc error: code = Internal desc = transport is closing

SudeepS 2 (Mon, 24 Sep 2018 07:29:43 GMT):
Has joined the channel.

SudeepS 2 (Mon, 24 Sep 2018 07:30:10 GMT):
Hello Everyone... Please help me out on following query

SudeepS 2 (Mon, 24 Sep 2018 07:30:31 GMT):
I have setup a fabric network with more than one orderer and analyzing few scenarios on how it is working. Have two questions. 1. One of the advantages of multi orderer network is to avoid a single point of failure. So if one orderer fails it has to automatically take another orderer into the picture and continue the work. But in the actual scenario for peer chaincode invoke through cli we pass arguments of orderer and cafile of orderer to make a transaction. Here we are passing the orderer info so if the orderer we choose is down the transaction will not be done. My question is - this is not the objective of multi orderer network so why we need to pass the orderer related arguments?

atirekg (Mon, 24 Sep 2018 07:54:25 GMT):
Hello Guys, I am new to hyperledger fabric, I have read many tutorials and able to successfully setup demo example and learned about the GO, python and node, but I am confused about the setup and and how to code in GO language, I want to build a Application which can be accessed by multiple participants (Buyers, Sellers, Mediators) ... Please guide me how to manage permission and how can enable the logins for these users.... I need some guide to start

Jayshree_Devan (Mon, 24 Sep 2018 10:27:51 GMT):
is there any api for enrolling the peers through ca?

osmola (Mon, 24 Sep 2018 14:28:32 GMT):
Hi, is it possible to use prometheus exporter on peers for metrics? I see metrics section in configuration but dont have luck with getting it to work

tennenjl (Mon, 24 Sep 2018 16:45:20 GMT):
Hi Team, Is there a way to start working with the 1.3 HLF images via the curl command that is documented at https://hyperledger-fabric.readthedocs.io/en/release-1.2/install.html , or are there directions anywhere for working with 1.3 for anyone that wants to start working with it early? Thanks!

Hariprasauth (Mon, 24 Sep 2018 16:52:12 GMT):
Hi Team..

Hariprasauth (Mon, 24 Sep 2018 16:52:37 GMT):
I am trying to create assets through the composer API.. However, everytime I do a getFactory, it returns null

Hariprasauth (Mon, 24 Sep 2018 16:52:51 GMT):
Also, most of the times, the asset is not getting updated.. any hints?

Hariprasauth (Mon, 24 Sep 2018 16:53:25 GMT):
businessNetworkConnection = new BusinessNetworkConnection(); await useIdentity(id); console.log("Got this flow from a CA for claim : " + id); factory = await businessNetworkConnection.getBusinessNetwork().getFactory();

Hariprasauth (Mon, 24 Sep 2018 16:53:36 GMT):
get, the getBusinessNetwork is always null

anant706 (Mon, 24 Sep 2018 17:53:35 GMT):
Has joined the channel.

sjeetSingh (Mon, 24 Sep 2018 19:05:54 GMT):
any awesome blockchain tech podcasts?

atirekg (Tue, 25 Sep 2018 05:39:03 GMT):
hello guys

atirekg (Tue, 25 Sep 2018 05:39:06 GMT):
annyone online

atirekg (Tue, 25 Sep 2018 05:39:25 GMT):
need to find answers to some basic question

atirekg (Tue, 25 Sep 2018 05:39:52 GMT):
anyone who has developed any fabric app using GO and Nodejs can help me

huangliping (Tue, 25 Sep 2018 05:51:42 GMT):
hi there, https://stackoverflow.com/questions/52045794/get-block-info-using-hyperledger-fabric-java-sdk did anyone get the answer for this question? how to iterate the blockchain info using fabric java sdk?

JayJong (Tue, 25 Sep 2018 06:39:26 GMT):
Hi does anyone knows what are the reasons for this eventhub error `Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error : ChannelEventHub has been shutdown`?

as7 (Tue, 25 Sep 2018 06:47:02 GMT):
Hi I am facing this issue from a couple of days ..

as7 (Tue, 25 Sep 2018 06:47:21 GMT):
Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.

Taffies (Tue, 25 Sep 2018 07:00:29 GMT):
Hi, does anyone know the cases whereby the eventhub will shut down when I try to invoke a transaction? In my case in particular, this error happens occasionally, and when I try to invoke again, the error goes away and the invoke is successful. Would like to minimise the chances of this happening

zwartesokken (Tue, 25 Sep 2018 08:19:10 GMT):
Has joined the channel.

rezmuh (Tue, 25 Sep 2018 09:23:16 GMT):
Has joined the channel.

VitalikOstapenko (Tue, 25 Sep 2018 09:49:15 GMT):
Has joined the channel.

richardfelkl (Tue, 25 Sep 2018 10:45:26 GMT):
Hi everyone, I'm interested in Prometheus metrics provider for Fabric, is it available for 1.2 or I have to wait for 1.3?

petans24 (Tue, 25 Sep 2018 10:46:58 GMT):
Has joined the channel.

RachelleJanssen (Tue, 25 Sep 2018 11:12:52 GMT):
Has joined the channel.

RachelleJanssen (Tue, 25 Sep 2018 11:17:23 GMT):
Hi all, one of my colleagues took fabcar and turned it into a reusable wrapper library to simply some steps. I only tried some fabric-examples and expanded on those so I'm by no means an expert. However, it's quite slow and I found that creating a new channel instance is one of the tasks that takes quite long. I was thinking about using the "getChannel", but that only works from memory. I also tried storing the channel to a json file, but that won't work because it needs to be an instance (and thus doesn't work anymore when you load it). Anyone any suggestions to speed up the interaction with fabric?

RachelleJanssen (Tue, 25 Sep 2018 11:17:23 GMT):
Hi all, one of my colleagues took fabcar and turned it into a reusable wrapper library to simply some steps. I only tried some fabric-examples and expanded on those so I'm by no means an expert. However, the wrapper is quite slow (and noticed it's mostly based on fabcar actually). I found that creating a new channel instance at each invoke/query is one of the tasks that takes quite long. I was thinking about using the "getChannel", but that only works from memory. I also tried storing the channel to a json file, but that won't work because it needs to be an instance (and thus doesn't work anymore when you load it). Anyone any suggestions to speed up the interaction with fabric?

knagware9 (Tue, 25 Sep 2018 11:48:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mgQhbgi7zGWz3yhRx) @atirekg Yes ,,tell us what help you need

knagware9 (Tue, 25 Sep 2018 11:49:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cG6qpHzxkfBdyXpb5) @JayJong Please specify the fabric-client module to 1.2 instead of unstable in package.josn file

atirekg (Tue, 25 Sep 2018 12:04:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QeHkPf64QhtPeDcbQ) @knagware9 Hi I am starting on Fabric with but not able to get from where I start, I have read documents on EDX and did some other research on GO, nodejs, docker and HF

atirekg (Tue, 25 Sep 2018 12:04:27 GMT):
right now I am using https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material/tuna-app as an example

atirekg (Tue, 25 Sep 2018 12:04:51 GMT):
and trying to modify it to get History of a Tuna

atirekg (Tue, 25 Sep 2018 12:04:59 GMT):
but not getting any success

atirekg (Tue, 25 Sep 2018 12:05:06 GMT):
and not getting help as well

atirekg (Tue, 25 Sep 2018 12:06:26 GMT):

tuna-chaincode.txt

atirekg (Tue, 25 Sep 2018 12:06:41 GMT):
I have added queryTunaHistory function in this file

atirekg (Tue, 25 Sep 2018 12:07:07 GMT):
but getting these errors

atirekg (Tue, 25 Sep 2018 12:07:07 GMT):
../chaincode/tuna-app/tuna-chaincode.go:135:35: cannot use queryResponse.Timestamp (type *timestamp.Timestamp) as type string in argument to buffer.WriteString ../chaincode/tuna-app/tuna-chaincode.go:140:35: queryResponse.Holder undefined (type *queryresult.KeyModification has no field or method Holder) ../chaincode/tuna-app/tuna-chaincode.go:145:35: queryResponse.Location undefined (type *queryresult.KeyModification has no field or method Location) ../chaincode/tuna-app/tuna-chaincode.go:150:35: queryResponse.Vessel undefined (type *queryresult.KeyModification has no field or method Vessel)

knagware9 (Tue, 25 Sep 2018 12:07:26 GMT):
@atirekg try with fabric-samples/balance-transfer..its the perfect example of node.js sdk + Go chaincode

atirekg (Tue, 25 Sep 2018 12:08:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jy4MrdpZk4s7vm6y6) @knagware9 ok I am starting on this

atirekg (Tue, 25 Sep 2018 12:08:49 GMT):
but could you please check the function I have written if I have made any mistake

knagware9 (Tue, 25 Sep 2018 12:08:55 GMT):
ok

atirekg (Tue, 25 Sep 2018 12:09:16 GMT):
Thanks :)

MikeyGarcia (Tue, 25 Sep 2018 13:03:55 GMT):
Has joined the channel.

garaujo (Tue, 25 Sep 2018 13:07:44 GMT):
Has joined the channel.

atirekg (Tue, 25 Sep 2018 13:57:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HQiwNqtocosk4Z47m) @knagware9 Hi I got my mistake and it is working now

atirekg (Tue, 25 Sep 2018 14:13:28 GMT):
hello guys I want to know how can I deploy m modifications in chaincode to network without destroying the current docker name of my docker is dev-peer0.org1.example.com-tuna-app-1.0

ESand (Tue, 25 Sep 2018 17:12:51 GMT):
I'm trying to set up two peers on separate Windows PCs. I'm getting a warning when joining the second peer (peer1) to the docker swarm network: [gossip/discovery] func1 -> WARN 1a0 Could not connect to {peer0.org1.example.com:7051 [] [] peer0.org1.example.com:7051 } : context deadline exceeded And when I try to create a channel I'm getting errors: which I think must be related to this warning. Any thoughts?

ESand (Tue, 25 Sep 2018 17:13:16 GMT):
oops, meant to get this in the above post -- Error when creating the channel: Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

jvsclp (Tue, 25 Sep 2018 19:20:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GfboQcQjdYgnjgkSi) @ESand I'd recommend setting `CORE_LOGGING_LEVEL=DEBUG` in your `docker-compose-cli.yaml` There can be a variety of errors associated with this ranging from your network being misconfigured to identity certificates being misconfigured. The debug level will give a better report of what's missing and should look something like this: `2018-09-25 16:45:44.183 UTC [grpc] Printf -> DEBU 045 grpc: addrConn.createTransport failed to connect to {Orderer:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...`

jvsclp (Tue, 25 Sep 2018 19:20:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GfboQcQjdYgnjgkSi) @ESand I'd recommend setting `CORE_LOGGING_LEVEL=DEBUG` in your `docker-compose-cli.yaml` There can be a variety of errors associated with this ranging from your network being misconfigured to identity certificates being misconfigured. The debug level will give a better report of what's missing and should look something like this: `2018-09-25 16:45:44.183 UTC [grpc] Printf -> DEBU 045 grpc: addrConn.createTransport failed to connect to {Orderer:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...`

ESand (Tue, 25 Sep 2018 19:47:01 GMT):
Hi @jvsclp, thanks for replying. With the DEBUG logging level I still don't see anything that really stands out. For your reference I'm trying to follow this guide: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f with some tweaks to make it work for windows (e.g. using docker-machine to bring up the docker swarm). My command when I'm bringing up the second peer which is giving me errors is this (not using the docker-compose-cli.yaml file): docker run --rm -it --network="byfn" --link orderer.example.com:orderer.example.com --link peer0.org1.example.com:peer0.org1.example.com --name peer1.org1.example.com -p 8051:7051 -p 8053:7053 -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e CORE_LOGGING_LEVEL=DEBUG -e CORE_PEER_NETWORKID=peer1.org1.example.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer1.org1.example.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=byfn -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v //var/run/://host/var/run/ -v //C/Users/myusername/fabric-samples/my-test-network/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp://etc/hyperledger/fabric/msp -w //opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start If you see anything that stands out please let me know :)

VineetBC (Tue, 25 Sep 2018 20:34:58 GMT):
Has joined the channel.

VineetBC (Tue, 25 Sep 2018 20:37:01 GMT):
I am very new to linux and hyperledger. Did not understand these at tutorial. If needed, clone the hyperledger/fabric-samples repository Checkout the appropriate version tag Install the Hyperledger Fabric platform-specific binaries and config files for the version specified into the root of the fabric-samples repository Download the Hyperledger Fabric docker images for the version specified

VineetBC (Tue, 25 Sep 2018 20:37:20 GMT):
Can someone help me as how to setup

VineetBC (Tue, 25 Sep 2018 20:37:39 GMT):
I downloaded the Curl Docker docker composer.

VineetBC (Tue, 25 Sep 2018 20:38:03 GMT):
And even the sample images using the command specified

VineetBC (Tue, 25 Sep 2018 20:38:12 GMT):
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0

VineetBC (Tue, 25 Sep 2018 20:38:25 GMT):
Now where to find? the folders?

ColeBoudreau (Tue, 25 Sep 2018 20:45:14 GMT):
@VineetBC If you've already downloaded and installed the fabric-samples (as well as any prerequisites: https://hyperledger-fabric.readthedocs.io/en/release-1.2/prereqs.html) then you can follow this tutorial here: https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html. However the tutorial is simply running the scripts and walking through a high level of what theyre doing. After running ./byfn.sh generate and ./byfn.sh up you should now have your first running network.

ColeBoudreau (Tue, 25 Sep 2018 20:48:30 GMT):
The location of the scripts are in fabric-samples/first-network/byfn.sh

VineetBC (Tue, 25 Sep 2018 21:10:01 GMT):
@ColeBoudreau Thanks a lot. As i said I am new to linux and Hyperledger. But I have placed Bin (which has Configtxgen cryptogen..)and downloaded the samples from github and placed in the same folder

VineetBC (Tue, 25 Sep 2018 21:12:45 GMT):
@ColeBoudreau can you tell me how to execute this command at tutorial "cd fabric-samples/first-network" if my folder path is /home/abzy/fabric-samples-release-1.2

supay (Tue, 25 Sep 2018 21:15:16 GMT):
Hi, I've edited the marbles node chaincode to create a custom smart contract where i accept one argument, temperature - https://paste.ee/p/JDki3 I've deployed it to IBM blockchain platform using their dashboard interface How do I invoke the contract on some transaction? I'm confused

supay (Tue, 25 Sep 2018 21:18:46 GMT):
What I want to be able to do is to log some temperature to the blockchain and then be able to query the values

supay (Tue, 25 Sep 2018 21:18:46 GMT):
What I want to be able to do is to log multiple temperatures to the blockchain (as separate transactions) and then be able to query the values

jvsclp (Tue, 25 Sep 2018 21:32:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=py32jM9rJpyFNTZc3) @ESand I'm also running on Windows, but without information from your debug logs I'm only be guessing as to the cause. You probably have more experience than me :grinning: You can put your debug log on hastebin.com and provide the link for others to parse and get a better answer. My question about the logs, what are you seeing for connection attempts on the swarm manager? If you are not getting any failed connection attempts as the swarm manager, then it's a network configuration issue. The one item I see that caused me an issue working on Windows could be your `CORE_VM_ENDPOINT` I had to change mine to `CORE_VM_ENDPOINT=npipe://///./pipe/docker_engine` to run as Windows does not recognize the bind mount of `unix:///host/var/run/docker.sock` I could be absolutely wrong though and someone with more experience than me could point you down the right path.

aakzubaidi (Wed, 26 Sep 2018 00:05:16 GMT):
Hi. I am carious to know if there is an official implementation for the PBFT-based ordering service?

aakzubaidi (Wed, 26 Sep 2018 00:05:50 GMT):
Does Kafka support PBFT mechanism?

JayJong (Wed, 26 Sep 2018 04:50:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cKBr3yFiTjDauuCeW) @knagware9 Thx for the reply, i was using "fabric-client": "^1.0.2", so does changing it to 1.2.2 means that there wouldnt be an eventhub issue anymore?

knagware9 (Wed, 26 Sep 2018 05:12:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rL67nsFGdiYnh2cEJ) @JayJong Yes...

davidhu (Wed, 26 Sep 2018 06:40:44 GMT):
~~hello, i'm trying to setup a muti-host env, but when i start peer1, i got this message, and i checked my yaml, paths are correct, anyone has met this msg before?

davidhu (Wed, 26 Sep 2018 06:40:48 GMT):
[gossip/discovery] handleAliveMessage -> ERRO 4c7 Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg: timestamp:

ZL.HYPERLEDGER (Wed, 26 Sep 2018 06:48:21 GMT):
Has joined the channel.

ZL.HYPERLEDGER (Wed, 26 Sep 2018 06:48:29 GMT):
I have created a Hyperledger Fabric using Hyperledger compose. Then i can want to create a client based on the Android smartphone to connect the Fabric server. I have no idea about it, who would like to give me some advices?

Kelvin_Moutet (Wed, 26 Sep 2018 07:19:44 GMT):
Has joined the channel.

IlhamQasse (Wed, 26 Sep 2018 09:24:08 GMT):
Hello Everyone

IlhamQasse (Wed, 26 Sep 2018 09:24:48 GMT):
Hello Everyone! Is it possible to have one client or peer to be part of two different hyperledger fabric networks (where each network has it own orderer, Fabric CA, etc.)? The reason I'm asking is I want to make two different hyperledger fabric network to be able to communicate and execute chaincodes from one network to another (cross-communication).

liuyuanting1209 (Wed, 26 Sep 2018 09:58:42 GMT):
Hi, when client putstate, how client know if this invoke is success or failure? I mean how client konw this invoke finally works

mastersingh24 (Wed, 26 Sep 2018 10:40:13 GMT):
@liuyuanting1209 - assuming that the chaincode execution is successful (which means you get back successful endorsements), you will not truly know of the data is committed until after the transaction is submitted to the ordering service. See https://hyperledger-fabric.readthedocs.io/en/release-1.2/txflow.html for more details on the overall transaction flow

VictorStroganov (Wed, 26 Sep 2018 11:35:06 GMT):
Hi! I'm using private collections and I can set org-level access policy. Is it possible to make private collections accessible by a subset of peers from one Org?

yacovm (Wed, 26 Sep 2018 11:37:06 GMT):
it's possible but very tricky - you need to use OUs

VictorStroganov (Wed, 26 Sep 2018 11:38:15 GMT):
What is OUs?

yacovm (Wed, 26 Sep 2018 11:38:56 GMT):
organizational units....

reda.benkirane (Wed, 26 Sep 2018 11:40:11 GMT):
Has joined the channel.

reda.benkirane (Wed, 26 Sep 2018 11:40:49 GMT):
Hello!

VictorStroganov (Wed, 26 Sep 2018 11:41:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CSx6oHyxwqeZMGX3t) @yacovm Thank you!

reda.benkirane (Wed, 26 Sep 2018 11:44:25 GMT):
I have a question regarding Private Data Collections as well. Is there a library in the node module "fabric-client" to instantiate a chaincode with the --collections-config option ?

reda.benkirane (Wed, 26 Sep 2018 11:55:36 GMT):
There's an object defined in Channel.js called "ChaincodeInstantiateUpgradeRequest" but it doesn't contain a collections config attribute (There's chaincodeType, chaincodeId, chaincodeVersion, etc.). Thank you !

aakzubaidi (Wed, 26 Sep 2018 12:44:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6ZovGyKwLvkiHpYHM) @IlhamQasse how about you Consider channels ?

fmjbs (Wed, 26 Sep 2018 12:51:44 GMT):
Has joined the channel.

reda.benkirane (Wed, 26 Sep 2018 13:34:06 GMT):
Well, I figured out that I didn't have the last version (1.2.2) of the fabric-client and fabric-ca-client node modules. They include the private data features. :)

reda.benkirane (Wed, 26 Sep 2018 13:34:51 GMT):
Here's a tutorial if it can help someone else https://fabric-sdk-node.github.io/tutorial-private-data.html

sureshtedla (Wed, 26 Sep 2018 13:52:22 GMT):
How to setup fabric on different physical machines using docker swarm can any one explain?

sureshtedla (Wed, 26 Sep 2018 13:52:22 GMT):
How to setup fabric on different physical machines using docker swarm can any one explain? @mastersingh24

rajanashutosh (Wed, 26 Sep 2018 14:00:50 GMT):
Hi All, We are receiving following error when hit simultaneously with 3000 threads for 4 minutes

rajanashutosh (Wed, 26 Sep 2018 14:00:53 GMT):
status returned failure code 503 (SERVICE_UNAVAILABLE) during orderer next at org.hyperledger.fabric.sdk.OrdererClient.sendTransaction

rajanashutosh (Wed, 26 Sep 2018 14:01:20 GMT):
@dave.enyeart @mastersingh24 , request your inputs

jvsclp (Wed, 26 Sep 2018 14:09:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D38PTEbnsdHortAZW) @sureshtedla See here: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

udaybs (Wed, 26 Sep 2018 14:32:35 GMT):
Has joined the channel.

udaybs (Wed, 26 Sep 2018 14:59:53 GMT):
Hi All, when I am trying to run "sudo bash generateALL.sh" to generate artifacts its giving following errror generateALL.sh: line 15: /Users/xx/Documents/kubernetes-build/bin/../bin/cryptogen: cannot execute binary file generateALL.sh: line 27: /Users/xx/Documents/kubernetes-build/bin/../bin/configtxgen: cannot execute binary file chmod: ./crypto-config: No such file or directory cp: ./channel-artifacts/genesis.block: No such file or directory cp: ./crypto-config: No such file or directory generateALL.sh: line 42: python3.5: command not found .

udaybs (Wed, 26 Sep 2018 15:00:34 GMT):
All directory structure and permissions in place

yoheiueda (Wed, 26 Sep 2018 15:06:32 GMT):
Hi. I have a question about CoucbDB performance tuning. I confirmed that the "no matching index found " warning message was already gone after I created indexes. Is there any other good practice for better CouchDB performance? Can the Fabric performance be improved by tuning CouchDB parameters such as this one http://docs.couchdb.org/en/stable/config/cluster.html#cluster/q ?

Kelvin_Moutet (Wed, 26 Sep 2018 15:09:29 GMT):
Has left the channel.

udaybs (Wed, 26 Sep 2018 15:11:52 GMT):
composer-rest-server is not creating PUT or DELETE requests for any custom Transactions functions from logic.js (chaincode), it only creates GET and POST, Is there any solution for the same

caveman7 (Wed, 26 Sep 2018 15:26:07 GMT):
hello guys, how do i register/enroll MSP Admin (without using cryptogen)?

zconger (Wed, 26 Sep 2018 16:46:26 GMT):
Has joined the channel.

zconger (Wed, 26 Sep 2018 16:46:48 GMT):
apt

twoneks (Wed, 26 Sep 2018 17:09:29 GMT):
Has joined the channel.

twoneks (Wed, 26 Sep 2018 17:18:46 GMT):
Hi everybody. I'm starting with fabric and I choose to implement my application with the GO SDK. I'm having some difficulties.. I can't find a starting point despite the github repo in which I'm pretty sure the examples refer to a different versions... I'm digging in to the sdk code and I'm right now facing my first issue trying to create a channel. It seems the error came from the grpc library during the execution of the ```go func (c *atomicBroadcastClient) Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error) { stream, err := grpc.NewClientStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[0], c.cc, "/orderer.AtomicBroadcast/Broadcast", opts...) if err != nil { return nil, err } x := &atomicBroadcastBroadcastClient{stream} return x, nil } ``` function. Did anybody face this problem before?? All the suggestions over a good resource to start practicing with this sdk from are more than welcome!

twoneks (Wed, 26 Sep 2018 17:18:46 GMT):
Hi everybody. I'm starting with fabric and I choose to implement my application with the GO SDK. I'm having some difficulties.. I can't find a starting point despite the github repo in which I'm pretty sure the examples refer to a different versions... I'm digging in to the sdk code and I'm right now facing my first issue trying to create a channel. It seems the error came from the grpc library during the execution of the ```go func (c *atomicBroadcastClient) Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error) { stream, err := grpc.NewClientStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[0], c.cc, "/orderer.AtomicBroadcast/Broadcast", opts...) if err != nil { return nil, err } x := &atomicBroadcastBroadcastClient{stream} return x, nil } ``` function. I got this error: `Code 4 context deadline exceeded` Did anybody face this problem before?? All the suggestions over a good resource to start practicing with this sdk from are more than welcome!

abhishekbalam (Wed, 26 Sep 2018 17:58:23 GMT):
Has joined the channel.

jvsclp (Wed, 26 Sep 2018 19:17:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ocRWiQFDi3nxtwiLJ) @caveman7 You would use the fabric-ca tool. The documents can be found here: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html# More help can also be found in the #fabric-ca channel

raidinesh80 (Wed, 26 Sep 2018 19:56:08 GMT):
Do we have Idemix available with Nodejs SDK for fabric-ca-client? any example for its use is really appreciated.I can see from doc that it is only supported for java SDK.

yacovm (Wed, 26 Sep 2018 20:33:51 GMT):
@raidinesh80 i think it's only useable in java sdk...

raidinesh80 (Wed, 26 Sep 2018 21:20:53 GMT):
@yacovm Thanks for Info .any ETA for Fabric Nodejs SDK client ?

yacovm (Wed, 26 Sep 2018 21:32:27 GMT):
no idea

bandreghetti (Wed, 26 Sep 2018 22:52:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NAEdNj5qiAQrhRfgH) @twoneks I think the Go SDK deserves a better documentation too, especially for beginners. One thing that helped me a lot when I was starting was this tutorial: https://chainhero.io/2017/07/tutorial-build-blockchain-app/ If possible, try to give us more details about your code and what you're trying to do. Being more specific helps everyone to understand your problem and try to help. Also, try the #fabric-sdk-go channel for Go SDK-related questions!

liuyuanting1209 (Thu, 27 Sep 2018 01:30:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tRgRnoGLvysJYAZnr) @mastersingh24 thanks very much. So the only way to know if the transaction is wroks or not is to listen the event. This is really unconvenient

zhangtailin (Thu, 27 Sep 2018 02:36:31 GMT):
Has joined the channel.

huangliping (Thu, 27 Sep 2018 03:46:48 GMT):
Hi there, anyone know how to get the current block hash from BlockInfo? currently what I see is only the data hash and the previous hash in block

chandrakanthMamillapalli (Thu, 27 Sep 2018 04:44:46 GMT):
Has joined the channel.

chandrakanthMamillapalli (Thu, 27 Sep 2018 04:44:52 GMT):
I have a concern using couchdb, as it exposes all the data collection to everyone who can access the end point to couchdb

AamirSohail (Thu, 27 Sep 2018 05:00:58 GMT):
Hi, can anyone tell me the new block creation frequency for Fabric.

yoheiueda (Thu, 27 Sep 2018 07:25:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PvpQZcbNZas8jz5Sv) FYI: Use of $in, $or, $regex, etc leads to full scan: https://github.com/apache/couchdb/issues/1566

yoheiueda (Thu, 27 Sep 2018 07:39:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mqZSThjpMvsHrvnSE) @AamirSohail I think parameters in configtx.yaml control block creation frequency https://github.com/hyperledger/fabric/blob/cae2ad4456914adffcb07b1ca873e9624ce8f8b3/sampleconfig/configtx.yaml#L232-L252

atirekg (Thu, 27 Sep 2018 07:40:08 GMT):
hello guys I am getting this error while Invoking the chaincode 2018-09-27 07:36:35.183 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 04c ESCC invoke result: response: Error: endorsement failure during invoke. chaincode result: I have checked the docker cli and my chain-code exists there Any idea what should I do or how can I debug it

atirekg (Thu, 27 Sep 2018 07:40:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zhYQDuiERSTg8TMe3) @MuhammedHafil hello guys I am getting this error while Invoking the chaincode 2018-09-27 07:36:35.183 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 04c ESCC invoke result: response: Error: endorsement failure during invoke. chaincode result: I have checked the docker cli and my chain-code exists there Any idea what should I do or how can I debug it

twoneks (Thu, 27 Sep 2018 07:40:35 GMT):
@bandreghetti I took a look at that tutorial but I think the sdk version used is not the last release. Thanks I will give it another shot.

kpratihast (Thu, 27 Sep 2018 07:45:26 GMT):
Has joined the channel.

MuhammedHafil (Thu, 27 Sep 2018 07:47:09 GMT):
chaincode is not dependent of hyperledger network architecture, right? i mean in future can i remove a part of application to a new peer application

MuhammedHafil (Thu, 27 Sep 2018 07:49:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=scHKH7WHGznhhuWqp) @atirekg share your chaincode install and instanitate commands

atirekg (Thu, 27 Sep 2018 07:51:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TFRniZMx73nxhWGF9) @MuhammedHafil I am not getting your point

atirekg (Thu, 27 Sep 2018 07:51:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TFRniZMx73nxhWGF9) @MuhammedHafil I am not getting your point, not able to understand what you exactly want to say

halilkalkan (Thu, 27 Sep 2018 08:23:46 GMT):
Hi guys, I want to try how identity mixer works but I couldn't file any tutorial to implement it. The documentation is so high level and I couldn't imagine how I can transform that information to coding. Thank you,

cedbossneo (Thu, 27 Sep 2018 08:58:05 GMT):
Has joined the channel.

cedbossneo (Thu, 27 Sep 2018 08:58:11 GMT):
Hello !

cedbossneo (Thu, 27 Sep 2018 08:58:18 GMT):
Quick question, Hello ! I don't know if it's the good channel but i have a question We are using HLF in multiple microservices and we configure it dynamically (without a config file), it works great in nodejs but i cannot find a way to do this in go, any idea ?

cedbossneo (Thu, 27 Sep 2018 08:58:18 GMT):
Quick question, We are using HLF in multiple microservices and we configure it dynamically (without a config file), it works great in nodejs but i cannot find a way to do this in go, any idea ?

ShefaliMittal (Thu, 27 Sep 2018 09:02:53 GMT):
Hi, Is there any way to get the user who is executing chaincode. I read about CID and implemented the getID() method but that does not return the user name. Its some kind of identity. I want to specifically get the user name who has submitted the transaction.

cedbossneo (Thu, 27 Sep 2018 09:04:44 GMT):
@ShefaliMittal Yes look at the certificate used to sign the chaincode

ShefaliMittal (Thu, 27 Sep 2018 09:06:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vGbzcrtbypJkC6T7h) @cedbossneo does the certificate contains username attribute or I would need to add it specificay

cedbossneo (Thu, 27 Sep 2018 09:06:29 GMT):
You also have the getCreator function in ChaincodeStubInterface

cedbossneo (Thu, 27 Sep 2018 09:08:02 GMT):
https://stackoverflow.com/questions/43614130/does-hyperledger-fabric-provide-a-way-to-find-out-who-msg-sender-in-ethereum-c

cedbossneo (Thu, 27 Sep 2018 09:09:07 GMT):
@ShefaliMittal It contains the commonname with is the username, it also contains organisation

ShefaliMittal (Thu, 27 Sep 2018 09:11:45 GMT):
Thank you. Will try it.

anamikasingh (Thu, 27 Sep 2018 09:47:02 GMT):
Has joined the channel.

anamikasingh (Thu, 27 Sep 2018 09:47:16 GMT):
Hi, I am a student working on setting up hyperledger fabric on windows. And went through lot of documentation. But I am not really sure how to setup the basic testbed. Can someone help me with this?

flyerwing (Thu, 27 Sep 2018 09:59:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jPmJtXBcAjbM3tMGK) @anamikasingh I give you point that you should download and install the fabric sdk for windows, which you can compose the test code and operate the fabric network. For how to setup the fabric network, I suggest you to use BAAS service like IBM bluemix etc free service.

anamikasingh (Thu, 27 Sep 2018 10:14:26 GMT):
and for ubuntu?? @flyerwing

phunguyen19 (Thu, 27 Sep 2018 10:44:14 GMT):
Has joined the channel.

ArpitKhurana (Thu, 27 Sep 2018 11:31:55 GMT):
Has joined the channel.

AamirSohail (Thu, 27 Sep 2018 11:33:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=idaexMJF3ojR2aycS) @yoheiueda Thanks for the response @yoheiueda. I don't understand coding much but what I got is that it is a configurable thing. Is there a system limitation / minimum or maximum limit for BatchTimeout attribute? Like a block HAS to be created every X seconds, or need to wait Y seconds before a new block can be created? Thanks again.

ArpitKhurana (Thu, 27 Sep 2018 11:37:05 GMT):
Hi I am very new to this and i am trying to make a client using golang. My earlier client in node.js used certificates for peers as well as keys for user to call a grpc function. I am not able to find any example doing similar thing. I tried to understand some go sdk integration tests to make yaml file for my channel but it returns nil while making a client.

ArpitKhurana (Thu, 27 Sep 2018 11:37:05 GMT):
Hi I am very new to this and i am trying to make a client using golang. My earlier client in node.js used certificates for peers as well as keys for user to call a grpc function. I am not able to find any example doing similar thing. I tried to understand some go sdk integration tests to make yaml file for my channel but it returns nil while making a client. In the node.js client

venkat12 (Thu, 27 Sep 2018 11:37:30 GMT):
Description: error received from Discovery Server: failed constructing descriptor for chaincodes: can anyone help me with this error

yacovm (Thu, 27 Sep 2018 11:50:32 GMT):
you probably need anchor peers...

venkat12 (Thu, 27 Sep 2018 12:06:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LzmcmydveFNCKCHSQ) @yacovm I have it in config file, still im facing the issue

yacovm (Thu, 27 Sep 2018 12:07:29 GMT):
do your peers have external endpoints ?

atirekg (Thu, 27 Sep 2018 12:11:01 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.applesupply.dbwsweb.com/users/Admin@org1.applesupply.dbwsweb.com/msp" cli peer chaincode install -n apple-app -v 1.0 -p github.com/apple-app printf "\n chaincode install done....\n\n" docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.applesupply.dbwsweb.com/users/Admin@org1.applesupply.dbwsweb.com/msp" cli peer chaincode instantiate -o orderer.applesupply.dbwsweb.com:7050 -C mychannel -n apple-app -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')" printf "\n chaincode instantiate done....\n\n" sleep 10 docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.applesupply.dbwsweb.com/users/Admin@org1.applesupply.dbwsweb.com/msp" cli peer chaincode invoke -o orderer.applesupply.dbwsweb.com:7050 -C mychannel -n apple-app -c '{"function":"initLedger","Args":[""]}' printf "\n chaincode invoke done....\n\n"

atirekg (Thu, 27 Sep 2018 12:11:11 GMT):
these are my commands

venkat12 (Thu, 27 Sep 2018 12:13:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5SS3zFRk7CJv4tKcX) @yacovm Meaning? TLS certificates

yacovm (Thu, 27 Sep 2018 12:13:50 GMT):
no `CORE_PEER_GOSSIP_ENDPOINT`

yacovm (Thu, 27 Sep 2018 12:13:50 GMT):
no `CORE_PEER_GOSSIP_EXTERNALENDPOINT`

venkat12 (Thu, 27 Sep 2018 12:20:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kytgZA6pkSQkXdZDG) @yacovm Yes, I have configured

yacovm (Thu, 27 Sep 2018 12:22:22 GMT):
then there are not enough peers to satisfy the endorsement policies, or that the other peers don't see each other

sgaddam (Thu, 27 Sep 2018 12:22:32 GMT):
Hi, I am able to install, instantiate, invoke and query the chaincode from the Org1Peer successfully, but from Org2Peer when i am trying to query the chaincode i am gettin the below error. The Network is setup on HLFv1.2. Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 484850cc4bda49765001dbdc675d0c5d4fab58b5fe629b842bd16a51829d877e: failed to get deployment spec for myexcc04:1.0: getdepspec mychannel/myexcc04 responded with error: chaincode fingerprint mismatch: data mismatch" Both the peers are in the same channel. Your help will be greatly appreciated.

yacovm (Thu, 27 Sep 2018 12:22:36 GMT):
grab https://hyperledger-fabric.readthedocs.io/en/latest/discovery-cli.html and play with it @venkat12

dave.enyeart (Thu, 27 Sep 2018 12:25:30 GMT):
@chandrakanthMamillapalli data is secured in couchdb in two ways 1) it is recommended to have peer and couchdb on same host and not expose the couchdb port on host, so that nothing beyond peer can connect. 2) set username/password in couchdb and peer config, this will also engage database level security such that no other user can read/write the data https://github.com/hyperledger/fabric-samples/blob/master/first-network/docker-compose-couch.yaml#L15-L35 Peer does not support CouchDB Views. For aggregate data, the recommended pattern is to use event deliver service and have a block listener that can write to a data store most aligned with the aggregate query requirements, for example many people will do analytics on the aggregate data coming from block transactions

Haseeb4470 (Thu, 27 Sep 2018 12:38:15 GMT):
Has joined the channel.

Haseeb4470 (Thu, 27 Sep 2018 12:38:51 GMT):
Hi Guys, I have a small questions. ... Using Kafka, if someone is subscribed to a partition then wouldnt that violate data confidentiality ? Is data encrypted by OSN, ifso, whatif that OSN crashes ? Hi Guys, I have a small questions. ... Using Kafka, if someone is subscribed to a partition then wouldnt that violate data confidentiality ? Is data encrypted by OSN, ifso, whatif that OSN crashes ? Using Kafka, if someone is subscribed to a partition then wouldnt that violate data confidentiality ? Is data encrypted by OSN, ifso, whatif that OSN crashes ? QQ: Using Kafka, if someone is subscribed to a partition then wouldnt that violate data confidentiality ? Is data encrypted by OSN, ifso, whatif that OSN crashes ?

Haseeb4470 (Thu, 27 Sep 2018 12:39:01 GMT):
Using Kafka, if someone is subscribed to a partition then wouldnt that violate data confidentiality ? Is data encrypted by OSN, ifso, whatif that OSN crashes ?

yoheiueda (Thu, 27 Sep 2018 13:16:13 GMT):
@AamirSohail I found a similar question here: https://lists.hyperledger.org/g/fabric/topic/23003265 If MaxMessageCount is set to 10 and BatchTimeout is set to 2s, orderer waits until it receives 10 transactions, and then creates a new block with the 10 transactions. If orderer does not receives 10 transactions within 2 seconds, orderer creates a new block with less than 10 transactions. So when transaction throughput is high, the interval of new block creation is less than 2 seconds.

halilkalkan (Thu, 27 Sep 2018 13:51:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NMrqfHRrkeJ3AcKmW) Up :)

nrohith (Thu, 27 Sep 2018 14:43:23 GMT):
What could be the problem if the discovery-cli only discovers the peer it queries? I have set up a network similar to the BYFN tutorial with an orderer organization and three peer organizations, each of which has two peers joined to the channel. The channel is also updated with an anchor peer transaction for each organization. I am querying the peer using the administrator certs of its organization. No chaincodes are installed.

akshay.sood (Thu, 27 Sep 2018 15:04:57 GMT):
Hi all

akshay.sood (Thu, 27 Sep 2018 15:05:05 GMT):
anyone faced this error? ```"Error: 14 UNAVAILABLE: TCP Write failed```

akshay.sood (Thu, 27 Sep 2018 15:05:37 GMT):
This error occurs when I try to invoke chaincode function using Nodejs SDK

akshay.sood (Thu, 27 Sep 2018 15:06:40 GMT):
this error is returned from eventhub

nrohith (Thu, 27 Sep 2018 15:21:18 GMT):
I had misspelled the host names for the anchor peers in configtx.yaml so the peers weren't able to discover each other.

nrohith (Thu, 27 Sep 2018 15:25:26 GMT):
Now however, there are gossip/discovery warnings about expiring dead members and errors about receiving alive messages from a peer with the same pki-id as itself. The peer discovery with the discovery-cli discovers peers from other organizations, but has inconsistent results in subsequent runs - some peers are discovered in one execution but not in the other.

yacovm (Thu, 27 Sep 2018 16:49:47 GMT):
@nrohith "now however" - I assume you made some changes?

yacovm (Thu, 27 Sep 2018 16:50:45 GMT):
and what is the error about receiving an alive message with a peer with same pki-id as yourself? That probably means you have a peer with the same certificate as your own peer

ESand (Thu, 27 Sep 2018 17:30:19 GMT):
I'm using Docker for Windows on Windows 10 and trying to set up a multi-host network using 2 computers. I've learned that I need to use docker-machine to create a machine to host a docker swarm, then join the docker swarm as a _manager_ from the second PC. I can only join as a manager from a docker-machine I create on the second PC rather than just from the command line. *The issue*: "Docker for Windows does not support mounts for nodes you created with docker-machine." (https://docs.docker.com/docker-for-windows/faqs/#can-i-share-local-drives-and-filesystem-with-my-docker-machine-vms ) so I can't mount files I need like certificates etc. for hyperledger fabric. *Question*: Is it possible to join the docker swarm without using docker-machine? Then I would be able to mount my files as necessary.

hypere (Thu, 27 Sep 2018 18:24:47 GMT):
```bash 7 18:11:36.348 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-09-27 18:11:36.826 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel ``` Does this mean that a peer has successfully joined the channel? If not how do I approve that proposal

nrohith (Thu, 27 Sep 2018 18:28:09 GMT):
@yacovm I corrected the misspelling of anchor peer hostnames in configtx.yaml. I get this error when joining two peers in the same organization to the same channel and performing an anchor peer update: ``` [gossip/discovery] handleAliveMessage -> ERRO 31b Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg: timestamp: > ```

nrohith (Thu, 27 Sep 2018 18:28:48 GMT):
This error is detected in ```peer1.bar1.foo.com```

nrohith (Thu, 27 Sep 2018 18:28:48 GMT):
This error is detected in `peer1.bar1.foo.com`

MohammadObaid (Thu, 27 Sep 2018 18:53:18 GMT):
How peer image is created in hyperledger fabric ? Can I get sourcecode of `Dockerfile` from which peer image is created ?

MohammadObaid (Thu, 27 Sep 2018 18:56:57 GMT):
Is this the repo https://github.com/hyperledger/fabric-baseimage ?

yacovm (Thu, 27 Sep 2018 19:01:33 GMT):
@nrohith you have re-used a peer certificate... don't do that

JuanSuero (Thu, 27 Sep 2018 19:26:28 GMT):
i need to change the logging driver for the docker containers to go to syslog ( so that i can grab them in splunk ) i can do that for everything in the docker-compose.yml by editing the /etc/docker/daemon.json file and restarting docker ( and npm restarting the containers ) but the chaincode containers still stay as default. ive even tried to upgrade the chaincode

hypere (Thu, 27 Sep 2018 20:47:55 GMT):
is there a benefit for adding all of the peers to a channel to enable cross org communication? Or is adding only the anchor peers to the channel a more efficient way

Afe95 (Thu, 27 Sep 2018 21:04:43 GMT):
Has joined the channel.

Afe95 (Thu, 27 Sep 2018 21:06:19 GMT):
I am executing the fabcar tutorial, but when I type ./startFabric.sh node I get the following error

Afe95 (Thu, 27 Sep 2018 21:06:19 GMT):
I am executing the fabcar tutorial, but when I type `./startFabric.sh node` I get the following error

Afe95 (Thu, 27 Sep 2018 21:06:41 GMT):
`# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2018-09-27 21:00:25.776 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-09-27 21:00:25.825 UTC [cli/common] readBlock -> INFO 002 Received block: 0 # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded `

Afe95 (Thu, 27 Sep 2018 21:07:01 GMT):
``` # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2018-09-27 21:00:25.776 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-09-27 21:00:25.825 UTC [cli/common] readBlock -> INFO 002 Received block: 0 # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded ```

Afe95 (Thu, 27 Sep 2018 21:08:14 GMT):
I managed to execute correctly the byfn tutorial so I don't think I have an installation problem. Who can help me?

nrohith (Thu, 27 Sep 2018 21:34:18 GMT):
Thanks @yacovm. It turns out I was setting the CORE_PEER_MSPCONFIGPATH to the org's Admin msp instead of the msp for each individual peer.

nrohith (Thu, 27 Sep 2018 21:34:18 GMT):
Thanks @yacovm . It turns out I was setting the CORE_PEER_MSPCONFIGPATH to the org's Admin msp instead of the msp for each individual peer.

nrohith (Thu, 27 Sep 2018 21:34:18 GMT):
Thanks @yacovm . It turns out I was setting the `CORE_PEER_MSPCONFIGPATH` to the org's Admin msp instead of the msp for each individual peer.

MrJesien (Thu, 27 Sep 2018 21:56:38 GMT):
Has joined the channel.

MrJesien (Thu, 27 Sep 2018 22:00:19 GMT):
Hello, I'm building my own network but I faced a problem. When I try to create a channel using CLI I get such error: 2018-09-27 02:50:23.483 UTC [common/tools/configtxgen/localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: SampleConsortium I wonder why configtx.yaml is used basically knowing that a channel.tx is supplied. Could you help me?

tarun.sharma (Thu, 27 Sep 2018 23:18:59 GMT):
Has joined the channel.

tarun.sharma (Thu, 27 Sep 2018 23:22:25 GMT):
You should install the chaincode on all peers but instantiate/update it on only one peer

tarun.sharma (Thu, 27 Sep 2018 23:23:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GND9NtaAJjD6ekzag) @sgaddam @sgaddam You should install the chaincode on all peers but instantiate/update it on only one peer

AamirSohail (Fri, 28 Sep 2018 00:22:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8SMRsaFXasd8bEWNC) @yoheiueda Awesome, thanks mate

n-horiguchi (Fri, 28 Sep 2018 01:25:58 GMT):
Has joined the channel.

LucasChenZQ (Fri, 28 Sep 2018 04:21:15 GMT):
Has joined the channel.

LucasChenZQ (Fri, 28 Sep 2018 04:24:15 GMT):
Hi, I encountered an error when test the fabric sample "first-network", the Error is `FAILED to execute End-2-End Scenario`. I've put up a question on StackOverFlow here https://stackoverflow.com/questions/52548185/how-to-fix-failed-to-execute-end-2-end-scenario-in-hyperledger-fabric. I didn't find any similar errors on Google and StackOverFlow. Does anyone know how this problem is caused and how to solve it?

bairathirahul (Fri, 28 Sep 2018 04:34:36 GMT):
@LucasChenZQ I had this problem as well while demonstrating the first-network today. The reason is that Orderer node terminates after some time. I will look into the logs tomorrow to see the issue and will let you know.

bairathirahul (Fri, 28 Sep 2018 04:40:36 GMT):
@MrJesien You must verify the consortium name that is specified in the configtx file. The purpose of configtx file is to generate some initial blocks that will be added to the ledger. You must have seen it generating genesis.block and channel.tx. So basically when the nodes are launched they have nothing in their ledger. However, if these nodes must communicate with each other then they must have details of each other (hostname, certificates, peers, etc.). That's why you would have to generate you genesis.block before starting your network.

AJ501 (Fri, 28 Sep 2018 05:59:02 GMT):
Has joined the channel.

AJ501 (Fri, 28 Sep 2018 06:08:06 GMT):
I am working on a project in which one buyer and seller deals then they come and register their details on portal, after that manually verification will be done. If all details are correct then that block will be add in blockchain otherwise discarded.....So, my question is that which hyperledger framework will be good for this project..

akshay.sood (Fri, 28 Sep 2018 06:20:33 GMT):
Hi guys

akshay.sood (Fri, 28 Sep 2018 06:20:33 GMT):
Hi guys

akshay.sood (Fri, 28 Sep 2018 06:21:20 GMT):
I was going through the documentation of ‘idemixgen’ but could not understand its usage

akshay.sood (Fri, 28 Sep 2018 06:22:02 GMT):
Does anyone know anything about idemixgen? Like use case or just example?

akshay.sood (Fri, 28 Sep 2018 06:23:32 GMT):
Why we need identity mixer? Where it can be used

phy51c514w5 (Fri, 28 Sep 2018 06:50:22 GMT):
Has joined the channel.

MuhammedHafil (Fri, 28 Sep 2018 07:21:07 GMT):
Can anybody help me to install chaincode from a folder, i mean not inside fabric-samples/chaicode/myChaincode, Iam able to install chaincode if it is inside a folder in fabric-samples/chaincode folder, but can't if it is inside fabric-samples/my-network/chaincode

NoLimitHoldem (Fri, 28 Sep 2018 09:40:10 GMT):
Is there a max storage limit of Hyperledger Fabric? Such as, in the case of 6xTB or some other numbers... If so, in case that number is reached, what should we do?

NoLimitHoldem (Fri, 28 Sep 2018 09:40:13 GMT):
Also, I found that when the ledger size for 1 channel grows, the TPS is getting worse. In my 600 users simulation case, the rough correlation of TPS and # of transactions (each is roughly 2.8x-3.x KB, the transaction just does a simple PutState) is -0.6. Anyone try more about that?

NoLimitHoldem (Fri, 28 Sep 2018 09:40:13 GMT):
Also, I found that when the ledger size for 1 channel grows, the TPS is getting worse. In my 600 users simulation case, the rough correlation of TPS and # of transactions made (each is roughly 2.8x-3.x KB, the transaction just does a simple PutState) is -0.6. Anyone try more about that?

karthikraja (Fri, 28 Sep 2018 09:51:56 GMT):
Hi All, Kindly help me to resolve this.. asset Order identified by orderId { o String orderId o String buySell --> Security security o Integer quantity o Integer tradedQty o Integer pendingQty o Double price o OrderStatus orderStatus o String rejectedReason optional o DateTime orderTime optional // need to sort } This is my current query: query selectSecurityMatchingRecord { description: "Select all security matching information" statement: SELECT org.sys.stl.clr.Order WHERE( security == _$securityId AND buySell ==_$buySell AND (orderStatus =='OPEN' OR orderStatus == 'PARTIAL_COMPLETE') AND price == _$price) } i tried using order by [orderTime ASC] I got "Error: Cannot sort on field(s) "\$class,\$registryType,\$registryId,orderTime" when using the default index" Thanks in advance

MrJesien (Fri, 28 Sep 2018 10:24:37 GMT):
@bairathirahul Thank you for your message. I did all of things that you mentioned. I have generated all things and with changed (my own) Consortium name. Problem is when I try to create a channel its creating a new channel.tx based on some defaoult configtx.yaml which is located in peer. I don't know why. I'm basically following the byfn tutorial changed to my needs

UnaiUrk (Fri, 28 Sep 2018 10:40:55 GMT):
hi, Im trying to make an app with Fabric Node SDK. First of all, I want to create a channel. I was following this tutorial, but I think is not complete. There are some errors in the code. https://fabric-sdk-node.github.io/tutorial-channel-create.html

UnaiUrk (Fri, 28 Sep 2018 10:41:32 GMT):
For example, config_json is not declared nowhere

UnaiUrk (Fri, 28 Sep 2018 10:42:06 GMT):
can someone bring me an example?

UnaiUrk (Fri, 28 Sep 2018 10:59:26 GMT):
node sdk

gravity (Fri, 28 Sep 2018 11:08:55 GMT):
Hello Is it actually a good practice to write your own `MockStub` for chaincode tests?

parsa (Fri, 28 Sep 2018 11:26:56 GMT):
Has joined the channel.

parsa (Fri, 28 Sep 2018 11:27:01 GMT):
i'm face this error while trying to start my network Error: 2 UNKNOWN: error starting container: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:x86_64-1.1.0 i have tried many ways on many business networks, but none has worked yet

forrunner (Fri, 28 Sep 2018 11:39:32 GMT):
Has joined the channel.

forrunner (Fri, 28 Sep 2018 11:40:20 GMT):
Hi, any pointer for accessing the documentation

hayorov (Fri, 28 Sep 2018 12:29:26 GMT):
Has joined the channel.

hayorov (Fri, 28 Sep 2018 12:31:25 GMT):
Hi there, i'm fighting with issue on simple scenario joining a peer to the channel , issue https://stackoverflow.com/questions/52554910/unable-to-join-channel-simulateproposal-resulted-in-chaincode-namecscc-res chould you help or redirect?

hayorov (Fri, 28 Sep 2018 12:32:11 GMT):
got `Error: proposal failed (err: bad proposal response 500)`

hayorov (Fri, 28 Sep 2018 12:32:41 GMT):
`2018-09-28 11:36:59.342 UTC [endorser] ProcessProposal -> ERRO 44d [][0df54e45] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: 0df54e4509c883ee67d7fd76cf79f1fdff487bff3811f1c5bde5cb2bf40842f6`

hayorov (Fri, 28 Sep 2018 12:33:19 GMT):
no idea how to find verbose logs about 500 on chainstack side :(

ZC_Cuebiq (Fri, 28 Sep 2018 12:35:29 GMT):
Has joined the channel.

SecMS (Fri, 28 Sep 2018 12:53:33 GMT):
Hi there, I'm looking for some good and clear description/documentation of the Kafka based consensus algorithm. I know this paper here: https://docs.google.com/document/d/19JihmW-8blTzN99lAubOfseLUZqdrB6sBR0HsRgCAnY/edit but it does not explain the details I'm looking for. Do you know whether there is more documentation available how the kafka cluster and the OSNs are working together?

MohammadObaid (Fri, 28 Sep 2018 12:53:40 GMT):
@hayorov what does logs of endorsing org says ?

hayorov (Fri, 28 Sep 2018 12:55:38 GMT):
its the same node, simple network 1 peer and 1 orderer and creating channel for this node

MohammadObaid (Fri, 28 Sep 2018 13:01:36 GMT):
You are using block0 right for joining channel ? not latest block

hayorov (Fri, 28 Sep 2018 13:02:18 GMT):
@MohammadObaid yes, i use next command to obtain the block `peer channel fetch 0 ch0.block -c ch0 --orderer 35.204.122.102:7050 `

MohammadObaid (Fri, 28 Sep 2018 13:03:11 GMT):
Have you tried joining with latest block ?

ColeBoudreau (Fri, 28 Sep 2018 13:03:21 GMT):
When running my network I did several chaincode installs, but now it seems to have created a container for each new deploy of code. I.e. I have 6 containers for deploy 0 - 5, but really I was hoping each new deploy would replace the previous container. is this normal?

MohammadObaid (Fri, 28 Sep 2018 13:05:58 GMT):
@ColeBoudreau If you are not upgrading chaincode then I think it is right to have seperate chaincode container for each smartcontract because each smart contract maintains its own ledger and need separate environment to execute logic

ColeBoudreau (Fri, 28 Sep 2018 13:06:32 GMT):
Gotcha okay, cool

hayorov (Fri, 28 Sep 2018 13:08:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XGEaQKa3HBeR6NYxL) it's the same issue, yes :(

hayorov (Fri, 28 Sep 2018 13:09:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FqFSBT3qC9P7EB8Rf) do you know how where a can find more logs on this strange 500 error , i tired run DEBUG and dev mode

MohammadObaid (Fri, 28 Sep 2018 13:23:43 GMT):
What's your chaincode container logs says ? To me it seems like endorser is rejecting proposal based on your peer logs .

MohammadObaid (Fri, 28 Sep 2018 13:23:53 GMT):
Are you providing correct msp's path ?

hayorov (Fri, 28 Sep 2018 13:28:06 GMT):
@MohammadObaid im not familiar with rhe chaincode container, is it a docker container on the same docker host? i'm trying to use kubernetes to run my fabric network, do i need to browser the same docker node and find new docker container with chaincode?

hayorov (Fri, 28 Sep 2018 13:33:33 GMT):
@MohammadObaid Are you providing correct msp's path ? U mean on peer side during executing the command join?

twoneks (Fri, 28 Sep 2018 13:36:40 GMT):
Hi. If someone know how the event handling works please take a look at this https://chat.hyperledger.org/channel/fabric-sdk-go?msg=G58nrBz8i7uQcaGCb thanks!

MohammadObaid (Fri, 28 Sep 2018 14:18:00 GMT):
Yes @hayorov there should be docker container for chaincode where your smart contract runs . If you are running system locally then see there will be one chaincode container which utilizes ccenv image . You can find all running containers via `docker ps`

reda.benkirane (Fri, 28 Sep 2018 14:55:01 GMT):
Hello there. Is there an equivalent to shim's GetHistoryForKey ( https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetHistoryForKey ) for Private Data Collections ? Thank you for the support !

dave.enyeart (Fri, 28 Sep 2018 15:34:57 GMT):
@reda.benkirane it's not there yet, but planned for a future release

reda.benkirane (Fri, 28 Sep 2018 15:53:39 GMT):
@dave.enyeart Thank you. Is there a workaround ? If I define a key X that is stored only in one PDC, I could maybe get the history with GetHistoryForKey(X) ?

vitorduarte (Fri, 28 Sep 2018 16:48:33 GMT):
Hi there, I'm working with a chaincode that uses an external lib (github.com/google/uuid). How I instantiate using Fabric SDK? Using the fabric-cli everything goes well, I just created a dockerfile and run `go get github.com/google/uuid`. When I tried it using fabric sdk the instantiating transaction give this error: ``` Instantiating chaincode on "mainchannel" error instantiating chaincode: sending deploy transaction proposal failed: Transaction processing for endorser [peer0.org1.example.com:7051]: Chaincode status Code: (500) UNKNOWN.Description: failed to execute transaction a9f25c8456e8f0787a567341ded81c7707d834bd21de2535e58f5f08c118615a: error starting container: error starting container: Failed to generateplatform-specific docker build: Error returned from build: 1 "cannot find package "github.com/google/uuid" in any of: /opt/go/src/github.com/google/uuid (from $GOROOT) /chaincode/input/src/github.com/google/uuid (from $GOPATH) /opt/gopath/src/github.com/google/uuid " ```

vitorduarte (Fri, 28 Sep 2018 16:48:45 GMT):
I tried to map the external lib inside of peer containers and didn't work too

VirendraSolanke (Fri, 28 Sep 2018 18:05:56 GMT):
hi ! I am trying to run fabcar sample . but when i execute npm install it gives error that "pm WARN fabcar@1.0.0 No repository field."

VirendraSolanke (Fri, 28 Sep 2018 18:05:56 GMT):
hi ! I am trying to run fabcar sample . but when i execute npm install it gives error that "npm WARN fabcar@1.0.0 No repository field."

VirendraSolanke (Fri, 28 Sep 2018 18:05:56 GMT):
hi ! I am trying to run fabcar sample . but when i execute npm install it gives error that "npm WARN fabcar@1.0.0 No repository field." i searched a lot for it but did'nt work any solutions

jrosmith (Fri, 28 Sep 2018 20:24:35 GMT):
@VirendraSolanke thats not an error, its a warning that the package.json doesn't specify a remote repository. it has no affect on the fabcar samples ability to run. if it really bothers you add a key of "repository" to the package.json with a string value of whatever you want

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ```peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ```peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ``` peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ``` peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ``` peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ` peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml `peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: `2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```bash peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: `2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```bash peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```bash 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```bash peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```bash 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```yaml peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```bash 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to *basic-network*. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```yaml peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```bash 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to *basic-network*. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```yaml peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```yaml 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Any ideas?

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to *basic-network*. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```yaml peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```yaml 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` I am adding the second peer to basic-network. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer ```cryptogen extend --config=./crypto-config.yaml``` I added the new peer config to docker-compose.yml ```peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric # command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net``` But when I start a container for the new peer ```docker-compose -f docker-compose.yml up -d peer1.org1.example.com``` I get this ERROR: ```2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority``` *Any ideas?*

JackMalinowski (Fri, 28 Sep 2018 22:55:15 GMT):
I am adding the second peer to *basic-network*. I increased Count of peers in crypto-config.yaml I generated the configuration for the new peer `cryptogen extend --config=./crypto-config.yaml` I added the new peer config to docker-compose.yml ```yaml peer1.org1.example.com: container_name: peer1.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer1.org1.example.com - CORE_LOGGING_PEER=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer1.org1.example.com:8051 # # the following setting starts chaincode containers on the same # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=uber-net - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 8051:8051 - 8053:8053 volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx networks: - uber-net ``` But when I start a container for the new peer `docker-compose -f docker-compose.yml up -d peer1.org1.example.com` I get this ERROR: ```yaml 2018-09-28 22:47:11.141 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: the supplied identity is not valid: x509: certificate signed by unknown authority ``` *Any ideas?*

greg2git (Sat, 29 Sep 2018 02:21:40 GMT):
my cli container keeps failing with this message: "cli | Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1" and my yaml is as follows: cli: container_name: cli image: hyperledger/fabric-tools # tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer:7051 - CORE_PEER_LOCALMSPID=DEFAULT - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp working_dir: /opt/gopath/src/chaincodedev command: /bin/bash -c './script.sh' volumes: - /var/run/:/host/var/run/ - ./msp:/etc/hyperledger/msp - ./../chaincode:/opt/gopath/src/chaincodedev/chaincode - ./:/opt/gopath/src/chaincodedev/ depends_on: - orderer - peer

vishal21pandita (Sat, 29 Sep 2018 07:05:59 GMT):
Has joined the channel.

Luxii (Sat, 29 Sep 2018 07:28:47 GMT):
Hi , Im getting following logs while instantiating chaincode

Luxii (Sat, 29 Sep 2018 07:28:47 GMT):
Hi , Im getting following logs while instantiating chaincode . The instantiate fails cause the containers does'nt start.

Luxii (Sat, 29 Sep 2018 07:28:53 GMT):

Clipboard - September 29, 2018 12:58 PM

GKumar (Sat, 29 Sep 2018 08:20:56 GMT):
I am trying to add a new endorsement chain code in my peer0.org1.example.com node provided with first-network sample. Whenever i start the ./bynf.sh up, The peer comes with original core.yaml without new addition of endorsement. How to fix this. name: DefaultEndorsement library: name: CustomEndorsement library: /etc/hyperledger/fabric/plugin/myecc/gk.so

guhy1011 (Sat, 29 Sep 2018 08:33:52 GMT):
Has joined the channel.

yacovm (Sat, 29 Sep 2018 09:34:03 GMT):
it's not a chaincode anymore

GKumar (Sat, 29 Sep 2018 10:10:34 GMT):
then how do we add the new plugin

GKumar (Sat, 29 Sep 2018 10:10:34 GMT):
then how do we add the new ESCC plugin, whenever peer or "bynf up " peer core.xml get reset

MrJesien (Sat, 29 Sep 2018 22:13:49 GMT):
Hello, does anybody have a bit deeper knowledge and understanding of internal mechanisms of "peer channel create"?

ZacharyLaney (Sat, 29 Sep 2018 23:12:13 GMT):
Has joined the channel.

ZacharyLaney (Sat, 29 Sep 2018 23:21:50 GMT):
Hi there, I'm having an issue setting up my HyperLedger-Fabric test network. Here is my error:

ZacharyLaney (Sat, 29 Sep 2018 23:22:03 GMT):

HyperLedger_Problem1.jpg

ZacharyLaney (Sat, 29 Sep 2018 23:22:27 GMT):
I'm not sure how to proceed on resolving this issue. Would anyone mind assisting me? Thanks!

MrJesien (Sat, 29 Sep 2018 23:46:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4LyhwcFPABrcprd2M) @ZacharyLaney It seems that certs that you generated are expired, just generate them again.

ZacharyLaney (Sat, 29 Sep 2018 23:50:32 GMT):
MrJesien, thanks so much for your response. Would you mind explaining how I can generate them again?

MrJesien (Sat, 29 Sep 2018 23:52:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3vohh296q7WEw4276) @ZacharyLaney Are you following byfn tutorial?

MrJesien (Sat, 29 Sep 2018 23:52:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E5BXxTWnWqkNyNBCu) @ZacharyLaney Here are listed official prerequisites for having fun with Hyperledger Fabric https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

MrJesien (Sat, 29 Sep 2018 23:52:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tiK86xLCeK5TRDmaC) @ZacharyLaney Here are listed official prerequisites for having fun with Hyperledger Fabric https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

ZacharyLaney (Sat, 29 Sep 2018 23:54:14 GMT):
I was following a separate tutorial on how to install pre-requisites for Ubuntu

ZacharyLaney (Sat, 29 Sep 2018 23:54:23 GMT):
I'm looking at bfyn tutorial right now to see if it answers my question.

ZacharyLaney (Sat, 29 Sep 2018 23:57:47 GMT):
Unfortunately, it didn't answer my question. I don't have fabric examples installed. Could you direct me to an updated tutorial that explains how to install hyperledger fabric on Ubuntu?

MrJesien (Sun, 30 Sep 2018 00:04:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tiK86xLCeK5TRDmaC) @ZacharyLaney Here are listed official prerequisites for having fun with Hyperledger Fabric https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

MrJesien (Sun, 30 Sep 2018 00:04:52 GMT):
I'm sorry or double reply.

MrJesien (Sun, 30 Sep 2018 00:04:52 GMT):
I'm sorry for double reply.

Hariprasauth (Sun, 30 Sep 2018 02:16:17 GMT):
i, has anyone tried to check for dates in the permissions.acl

Hariprasauth (Sun, 30 Sep 2018 02:16:52 GMT):
Example: condition: ( r.some(function (r){ //How to check for dates here? If the r.date <= currentDate? return true; }) )

Hariprasauth (Sun, 30 Sep 2018 02:17:09 GMT):
This is on composer

akshay.sood (Sun, 30 Sep 2018 04:42:08 GMT):
Hi Guys

akshay.sood (Sun, 30 Sep 2018 04:42:19 GMT):
Need expert reviews on this https://stackoverflow.com/questions/52574694/user-registration-login-in-hyperledger-fabric

Andres3741 (Sun, 30 Sep 2018 05:52:00 GMT):
Has joined the channel.

Andres3741 (Sun, 30 Sep 2018 05:52:14 GMT):
Hi, hope y'all having a f amazing day, Im newbie in this, and I have a simply one question but I can't found some answers in sOverflow, So: How can I instantiate a chain code in all the peers on an ORG at same time, also, how can I instantiate chain code automatically in a new peer? thank you very much

lapple (Sun, 30 Sep 2018 06:36:58 GMT):
Has joined the channel.

bairathirahul (Sun, 30 Sep 2018 17:32:08 GMT):
@Andres3741 the instantiation is done at the channel level. You just have to install it on every peer and instantiate only once from any peer.

bairathirahul (Sun, 30 Sep 2018 17:40:45 GMT):
@akshay.sood I can think of two approaches like you mentioned in your post. 1. Have a separate layer of authentication in front which corresponds to a role in your Fabric network. For each role you will have an identity certificate generated by the Fabric-CA 2. Second is to generate identity certificates for each user. Well, this is the approach used in every other Blockchain framework. If you are concerned about the certificates being hacked from the folder, then you must also be concerned about your entire application and database being hacked. That's where your system's security come into picture. Also regarding the recovery, there is no way you can. People have lost their Bitcoins due to the same reason. If you want to do something at the application level, then you can generate a new certificate for the users and perform the assets' ownership transfer in your chaincode. If you like my answer, then you can share it on Stackoverflow. For some reason, I am not allowed to post answers. Need to generate more reputation there.

bairathirahul (Sun, 30 Sep 2018 17:50:39 GMT):
@LucasChenZQ Fabric samples are updated to version 1.3. But I suppose you still have v1.2 of Fabric images. You must update the images to get version 1.3-rc1. Then you will be able to run the samples.

ZacharyLaney (Sun, 30 Sep 2018 18:22:28 GMT):

HyperLedger_Problem1.jpg

ZacharyLaney (Sun, 30 Sep 2018 18:22:51 GMT):
Would someone mind assisting me with an error I'm receiving? "Cannot run peer because cannot init crypto, missing [filepath]" For some reason, I cannot get the docker to locate the correct file path. Thanks for assistance. Sorry for double post.

bairathirahul (Sun, 30 Sep 2018 19:22:19 GMT):
@ZacharyLaney Seems like you have messed up with your certificate paths. First of all, your crypto-config folder is named as only crypto, while during export you are mentioning crypto-config. Let me try to tell you the purpose of various locations where you have specify MSP path. Maybe this way you will be able to fix your issue. CORE_PEER_MSPCONFIGPATH - it is the path to the MSP folder of your peer administrator. So it will be peerOrganizations//users/msp CORE_PEER_TLS_ROOTCERT_FILE - it is the path to the TLS CA certificate of your peer. So it will be peerOrganizations//peers//tls/ca.crt There is another location in the command (--cafile flag) where you have to specify the TLS CA certificate of your orderer, because you must establish a secure connection with your orderer. This flag must point to ordererOrganizations//msp/tlscacerts/tlsca.example.com-cert.pem Hope you will able to fix the paths according to that.

bairathirahul (Sun, 30 Sep 2018 19:22:19 GMT):
@ZacharyLaney Seems like you have messed up with your certificate paths. First of all, your crypto-config folder is named as only crypto, while during export you are mentioning crypto-config. Let me try to tell you the purpose of various locations where you have specify MSP / certificate paths. Maybe this way you will be able to fix your issue. CORE_PEER_MSPCONFIGPATH - it is the path to the MSP folder of your peer administrator. So it will be peerOrganizations//users//msp CORE_PEER_TLS_ROOTCERT_FILE - it is the path to the TLS CA certificate of your peer. So it will be peerOrganizations//peers//tls/ca.crt There is another location in the command (--cafile flag) where you have to specify the TLS CA certificate of your orderer, because you must establish a secure connection with your orderer. This flag must point to ordererOrganizations//msp/tlscacerts/tlsca.example.com-cert.pem Hope you will able to fix the paths according to that.

ZacharyLaney (Sun, 30 Sep 2018 20:24:12 GMT):
I've attempted your solution and I was unable to fix my issue. I don't understand why the docker's root folder isn't where my fabric-samples is located. Could you elaborate a bit more on how I might resolve this? Thanks.

ZacharyLaney (Sun, 30 Sep 2018 20:24:12 GMT):
I've fixed the filepath errors after troubleshooting. But now I've run into a new error: "Failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded"

ZacharyLaney (Sun, 30 Sep 2018 20:24:12 GMT):
I've fixed the filepath errors after troubleshooting. But now I've run into a new error: "Failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded". I've attempted changing my configtx.yaml to "localhost:7050" instead of "orderer.example.com:7050" but the error persists.

ZacharyLaney (Sun, 30 Sep 2018 20:24:24 GMT):

Problem3.jpg

ZacharyLaney (Sun, 30 Sep 2018 20:49:09 GMT):
One additional question: Why is the "crypto" folder empty in the console but the files are located in "crypto-config"? Should I rename the folder?

kago (Sun, 30 Sep 2018 21:01:27 GMT):
Has joined the channel.

ZacharyLaney (Sun, 30 Sep 2018 22:56:51 GMT):

Problem4.jpg

ZacharyLaney (Sun, 30 Sep 2018 22:58:10 GMT):

Problem4.jpg

MrJesien (Sun, 30 Sep 2018 23:07:00 GMT):
Hello, when I try to create a channel using CLI I receive error: "Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied" I googled it already and unfirtunatelly "./byfn down" does not work,

MrJesien (Sun, 30 Sep 2018 23:07:00 GMT):
Hello, when I try to create a channel using CLI I receive error: "Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied" I googled it already and unfortunately "./byfn down" does not work,

Hariprasauth (Mon, 01 Oct 2018 03:01:51 GMT):
Hi, PLease can someone help in writing functions in the permission.acl file as condition? Need to perform some complex items

Hariprasauth (Mon, 01 Oct 2018 03:21:47 GMT):
condition: (new Date() > r.validTo)

Hariprasauth (Mon, 01 Oct 2018 03:21:55 GMT):
The above statement doesnt work

SudeepS 2 (Mon, 01 Oct 2018 05:46:25 GMT):
Hi.. I have setup balance-transfer project with kafka as ordering service and two orderer nodes. But while I make a transaction, I want to load balance orderers such that if one orderer goes down, requests should automatically go to other orderer. I tried searching Node SDK implementation of that in internet but I didn't get anything. Could anyone help me on how it is implemented ? Thanks...

Amudha (Mon, 01 Oct 2018 06:11:25 GMT):
Has joined the channel.

Amudha (Mon, 01 Oct 2018 06:11:40 GMT):
Hi, I need help in getting the list of resources available in hyperledger fabric for implementing ACL on them ex: user chaincode, system chaincode etc.

Mindey (Mon, 01 Oct 2018 06:54:53 GMT):
Has joined the channel.

atirekg (Mon, 01 Oct 2018 09:07:29 GMT):
Hi, Is it good to use Golang to write chaincode/

atirekg (Mon, 01 Oct 2018 09:07:29 GMT):
Hi, Is it good to use Golang to write chaincode?

migrenaa (Mon, 01 Oct 2018 09:11:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KwYxypBsaXpEq99tw) @atirekg Yes, it is better than JS.

jouzads (Mon, 01 Oct 2018 11:11:30 GMT):
Has joined the channel.

jouzads (Mon, 01 Oct 2018 11:15:33 GMT):
Hello everyone, I have an issue that made me cry since one week, when I start my network I have this error : Error:Get http://couch.peer1.org2.example.com:5984/: dial tcp 172.19.0.2:5984: connect: connection refused I really don't know what am I supposed to do, I already tried to reinstall fabric, my docker images and containers, if someone have an idea, don't hesitate !

JP (Mon, 01 Oct 2018 11:45:16 GMT):
Has joined the channel.

tahaf10 (Mon, 01 Oct 2018 11:48:15 GMT):
What are the disadvantages of using couchDB as stateDB in your fabric implementation?

me_abhijeet (Mon, 01 Oct 2018 11:48:40 GMT):
I am seeing this *_yaml.parser.ParserError: expected '', but found '' in "./docker-compose.yml", line 4, column 1_* while executing commond "*docker-compose up*"

me_abhijeet (Mon, 01 Oct 2018 11:48:56 GMT):
this is my yaml file:

me_abhijeet (Mon, 01 Oct 2018 11:49:09 GMT):
version '3.0' # specify docker compose version # Define the sevice container to be run services: angular: meansrack_angular_1 #name of the first service build: angular-app #specify the directory to docker-file ports: - "4200:4200" #port mapping express: meansrack_express_1 #name of the second service build: express-server #specify the directory to docker-file ports: - "3000:3000" #port mapping links: - database # link this service to database service database: meansrack_database_1 #name of the third service image: mongo #specify the image of build container ports: - "27017:27017" #port mapping

dave.enyeart (Mon, 01 Oct 2018 11:57:41 GMT):
@jouzads peer1.org2 is associated with couchdb2 container. So looks at the couchdb2 logs to see if it came up: `docker logs couchdb2`

dave.enyeart (Mon, 01 Oct 2018 11:57:41 GMT):
@jouzads peer1.org2 is associated with couchdb2 container. So look at the couchdb2 logs to see if it came up: `docker logs couchdb2`

dave.enyeart (Mon, 01 Oct 2018 11:57:41 GMT):
@jouzads I'll point you to the sample config that is known to work: https://github.com/hyperledger/fabric-samples/blob/release-1.2/first-network/docker-compose-couch.yaml#L93-L118

dave.enyeart (Mon, 01 Oct 2018 11:59:43 GMT):
peer1.org2 is associated with couchdb2 container. So look at the couchdb2 logs to see if it came up: `docker logs couchdb2`

dave.enyeart (Mon, 01 Oct 2018 11:59:43 GMT):
peer1.org2 is associated with couchdb3 container. So look at the couchdb3 logs to see if it came up: `docker logs couchdb2`

dave.enyeart (Mon, 01 Oct 2018 12:01:06 GMT):
@tahaf10 main disadvantage of couchdb is that being an external database, it will not perform as well as the embedded leveldb would

tahaf10 (Mon, 01 Oct 2018 12:43:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AST4Eskp3ScyNvxit) @dave.enyeart @dave.enyeart what about issues of phantom read/write? Are those likely to occur? Or has that been sorted out in hlfv12?

jouzads (Mon, 01 Oct 2018 12:53:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2HTX8nWyvp7DfKycL) @dave.enyeart @dave.enyeart Thank you for your answer, the problem is that I have the error on every peers of orgs

krabradosty (Mon, 01 Oct 2018 13:16:03 GMT):
Hello! When I changed the endorsement policy of my chaincode from `-P "OR ('Org1MSP.member','Org2MSP.member')"` to `-P "OR ('Org1MSP.peer','Org2MSP.peer')"`, I got an error from peer during block committing: ENDORSEMENT_POLICY_FAILURE. I've set EnableNodeOUs to true in crypto-config.yaml, peer certificate contains `Subject: C=US, ST=California, L=San Francisco, OU=peer, CN=peer0.org1.example.com`. What is the problem?

knagware9 (Mon, 01 Oct 2018 13:16:35 GMT):
Hi ,,I am getting error while connecting to peer bcoz my peer is not able to connect couch db ..I have tried i possible solution

knagware9 (Mon, 01 Oct 2018 13:16:38 GMT):
Retrying couchdb request in 1m4s. Attempt:10 Error:Get http://couchdb3:5984/: dial tcp 172.18.0.9:5984: connect: connection refused

bairathirahul (Mon, 01 Oct 2018 13:16:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D7yNPfQFNuJ6uLJpn) @ZacharyLaney So this is the problem that most of us must be facing. The fabric-samples are updated as per version 1.3. However your docker images may still be v1.2. Make sure you have v1.3-rc1. Or better clean-up and re-download them.

bairathirahul (Mon, 01 Oct 2018 13:19:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BaoATsfBwA8eyd6qb) @jouzads It's clear, either your peer is not running or it's not reachable. Run docker ps -a to see if the peer is running. If it's exited, then open "docker logs -t " to see why peer is exited. Otherwise in your docker-compose.yaml see if you have the network specified for this peer same as other containers.

bairathirahul (Mon, 01 Oct 2018 13:21:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vgm6yE8D58bTjYrFp) @tahaf10 It's the performance. LevelDB is a light-weight and embedded NoSQL database. So while using LevelDB you are gaining performance at the cost of several functionalities.

knagware9 (Mon, 01 Oct 2018 13:22:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yJE2JmdczuYbXSome) couch db giving error [info] 2018-10-01T13:19:03.560671Z nonode@nohost <0.47.0> -------- alarm_handler: {clear,system_memory_high_watermark} [notice] 2018-10-01T13:19:04.758590Z nonode@nohost <0.320.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:403) <= mem3_shards:load_shards_from_disk/1(line:378) <= mem3_shards:load_shards_from_disk/2(line:407) <= mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) [error] 2018-10-01T13:19:04.758684Z nonode@nohost emulator -------- Error in process <0.2327.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}

knagware9 (Mon, 01 Oct 2018 13:24:52 GMT):
Its similar to this JIra https://jira.hyperledger.org/browse/FAB-8722?attachmentViewMode=list

knagware9 (Mon, 01 Oct 2018 13:25:03 GMT):
I am testing 1.3 relaese

bairathirahul (Mon, 01 Oct 2018 13:25:15 GMT):
@knagware9 run docker ps -a

bairathirahul (Mon, 01 Oct 2018 13:25:20 GMT):
see if the container is there and is running

tahaf10 (Mon, 01 Oct 2018 13:29:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZKQkSymm9mLuXQDex) @bairathirahul I get that. But my concern is to avoid the double spend problem, and I have read on a couple of places now that this problem can occur while using couchDB as the stateDB. Can you please shed some light on that? @bairathirahul

bairathirahul (Mon, 01 Oct 2018 13:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZyctKWYeiPgemPEc) @tahaf10 Well actually I think it cannot. If there are too many transactions happening simultaneously on the same asset then you may come across a situation when multiple transactions for a particular have been submitted at a time. In this case only one will be committed and others will get failed. Consider step 5 of the transaction process (https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html). The read set is validated again, hence ledger won't commit the transactions if their current state of an asset does not match the read set. Even the fabric-samples have an example addressing this aspect and suggesting an architecture for these situations https://github.com/hyperledger/fabric-samples/tree/release-1.2/high-throughput

bairathirahul (Mon, 01 Oct 2018 13:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZyctKWYeiPgemPEc) @tahaf10 Well actually I think it cannot. If there are too many transactions happening simultaneously on the same asset then you may come across a situation when multiple transactions for a particular asset have been submitted at a time. In this case only one will be committed and others will get failed. Consider step 5 of the transaction process (https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html). The read set is validated again, hence ledger won't commit the transactions if their current state of an asset does not match the read set. Even the fabric-samples have an example addressing this aspect and suggesting an architecture for these situations https://github.com/hyperledger/fabric-samples/tree/release-1.2/high-throughput

bairathirahul (Mon, 01 Oct 2018 13:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZyctKWYeiPgemPEc) @tahaf10 Well actually I think it cannot. If there are too many transactions happening simultaneously on the same asset then you may come across a situation when multiple transactions for a particular asset have been submitted at a time. In this case only one will be committed and others will get failed. Consider step 5 of the transaction process (https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html). The read set is validated again, hence ledger won't commit the transactions if their current state of an asset does not match the read set. Even the fabric-samples have an example addressing this aspect and suggesting an architecture for these situations https://github.com/hyperledger/fabric-samples/tree/release-1.2/high-throughput In sum, it won't depend on CouchDB, but on the overall processing performance and your architecture.

bairathirahul (Mon, 01 Oct 2018 13:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZyctKWYeiPgemPEc) @tahaf10 Well actually I think it cannot. If there are too many transactions happening simultaneously on the same asset then you may come across a situation when multiple transactions for a particular asset have been submitted at a time. In this case only one will be committed and others will get failed. Consider step 5 of the transaction process (https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html). The read set is validated again, hence peers won't commit the transaction if their current state of an asset does not match the read set. Even the fabric-samples have an example addressing this aspect and suggesting an architecture for these situations https://github.com/hyperledger/fabric-samples/tree/release-1.2/high-throughput In sum, it won't depend on CouchDB, but on the overall processing performance and your architecture.

vitorduarte (Mon, 01 Oct 2018 13:45:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FNkrD5wTynDyNctKt) someone?

bairathirahul (Mon, 01 Oct 2018 13:58:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YqprJZKnhudv3XAWm) @vitorduarte Use govendor https://github.com/kardianos/govendor

jouzads (Mon, 01 Oct 2018 14:08:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yJE2JmdczuYbXSome) @knagware9 have the same problem bro

ZacharyLaney (Mon, 01 Oct 2018 14:21:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5hbxxtFy72yKdxuzd) @bairathirahul Would you mind pointing me towards a resource where I might be able to update my Docker Images to version 1.3? The link on the website only provides a Curl link to 1.2.

ZacharyLaney (Mon, 01 Oct 2018 14:21:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5hbxxtFy72yKdxuzd) @bairathirahul Is this resource the one I need to download? https://github.com/hyperledger/fabric-samples/tree/release-1.3

ZacharyLaney (Mon, 01 Oct 2018 14:21:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5hbxxtFy72yKdxuzd) @bairathirahul Is this resource the one I need to download? https://github.com/hyperledger/fabric/blob/release-1.3/scripts/bootstrap.sh

bairathirahul (Mon, 01 Oct 2018 14:29:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qtfBcjtWQ9Sxt47oP) @ZacharyLaney Yes

ZacharyLaney (Mon, 01 Oct 2018 14:35:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zj54mghrp5Teoa9eQ) @bairathirahul I tried to download the resource but it didn't update any of my images. Am I using the correct console command? 1. curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0

bairathirahul (Mon, 01 Oct 2018 14:37:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BPcDwnMzSoCrpYkzr) @ZacharyLaney curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0-rc1

ZacharyLaney (Mon, 01 Oct 2018 14:46:34 GMT):

Problem5.jpg

bairathirahul (Mon, 01 Oct 2018 14:52:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AJyjMceWidWzyJ6sn) @ZacharyLaney Yes try cleaning it up.

ZacharyLaney (Mon, 01 Oct 2018 15:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PzK7aXGY5Rxdp5DWT) @bairathirahul Last question before I completely delete everything and start over from scratch. Does this command clean it out so I might redownload?: docker system prune -a --volumes I have done this and it still doesn't work. I will start the project completely over and try again.

bairathirahul (Mon, 01 Oct 2018 15:07:27 GMT):
@ZacharyLaney yes it will

khalpin (Mon, 01 Oct 2018 15:39:24 GMT):
is there any support or advice on how to handle the infinite growth of the ledger data on both the orderers, as well as the peers?

khalpin (Mon, 01 Oct 2018 15:40:57 GMT):
kafka's log data is growing, /var/hyperledger/orderer/production/orderer/chains/ is up to around 24G with about 3.75 million documents in couchdb (10 tx/block)

erickheredia (Mon, 01 Oct 2018 15:41:36 GMT):
Has joined the channel.

khalpin (Mon, 01 Oct 2018 15:42:00 GMT):
looking at the blockfile directly just shows certs over and over and over, I'm guessing the answer is 'anticipate infinite growth'?

erickheredia (Mon, 01 Oct 2018 15:47:42 GMT):
Hi all. I'm trying to wrap my head around which programming language to use. My team and me are trying to define what would be the fastest way for us to get up and running.\ What do you guys think about using Node.js to create a blockchain network?

VirendraSolanke (Mon, 01 Oct 2018 15:55:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2DydgThW9Yvyowpiz) @jrosmith @jrosmith . attaching screenshot please review this which is still occuring

VirendraSolanke (Mon, 01 Oct 2018 15:56:05 GMT):

Screenshot from 2018-10-01 10-36-29.png

jrosmith (Mon, 01 Oct 2018 15:57:01 GMT):
@VirendraSolanke again this isn't and error. the vulnerabilities is new from NPM, it scans your dependencies for security vulnerabilities

jrosmith (Mon, 01 Oct 2018 15:57:01 GMT):
@VirendraSolanke again this isn't an error. the vulnerabilities is new from NPM, it scans your dependencies for security vulnerabilities

VirendraSolanke (Mon, 01 Oct 2018 15:58:00 GMT):
nut i am not able to run startfabric.sh

VirendraSolanke (Mon, 01 Oct 2018 15:58:00 GMT):
but i am not able to run startfabric.sh

jrosmith (Mon, 01 Oct 2018 15:58:17 GMT):
then you'll need to post the error output of that, not npm install.

VirendraSolanke (Mon, 01 Oct 2018 15:58:42 GMT):
ok

bairathirahul (Mon, 01 Oct 2018 16:03:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TyCvuMCQn4Y3dnbvn) @khalpin You can simply clean out the logs. That won't affect your network. Orderer doesn't store any data. Everything is stored in CouchDB, and that's what you have to worry about. I suppose Clustering the DB will help in this situation. But there is nothing officially mentioned. Let's see what others suggest.

khalpin (Mon, 01 Oct 2018 16:16:51 GMT):
okay, so it is safe to nuke old blockfile_ out of the orderers? that's easy enough, not sure what to do about kafka's logs

knagware9 (Mon, 01 Oct 2018 16:54:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=99oReCDcNGfFsCeBi) @bairathirahul couch db container are there but my peer container not able to connect

knagware9 (Mon, 01 Oct 2018 16:55:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v95r8bLhTNs963RPo) @jouzads Ok,,I think its depend on the docker configuration bcoz same setup working fine on another machine same ubuntu..

knagware9 (Mon, 01 Oct 2018 17:57:40 GMT):
peer not able to connect with couch db in fabric 1.3 ,,please check

knagware9 (Mon, 01 Oct 2018 17:58:17 GMT):

couchdb error.png

Soriano_LI (Mon, 01 Oct 2018 18:21:02 GMT):
Has joined the channel.

bairathirahul (Mon, 01 Oct 2018 18:25:05 GMT):
@knagware9 could you check the full log. CouchDB takes time to initialize. Probably after some time the peer was able to connect.

jyang6 (Mon, 01 Oct 2018 19:02:47 GMT):
Any one can explain why for basic-network docker-composer.yaml, the fields of depends_on is commented out?

jyang6 (Mon, 01 Oct 2018 19:03:27 GMT):
Does this mean cli only connect to peer0.org1.example.com and does not depend on any other containers?

LegoEngineering (Mon, 01 Oct 2018 19:55:31 GMT):
Has joined the channel.

LegoEngineering (Mon, 01 Oct 2018 19:58:49 GMT):
Hey helpful people! Can I, as network administrator, define a network-wide MSP such that Organizations cannot deploy any type of chaincode, only invoke it?

Abhishek_Jagwani (Mon, 01 Oct 2018 20:57:43 GMT):
Has joined the channel.

Abhishek_Jagwani (Mon, 01 Oct 2018 20:57:46 GMT):
Hi, are there any useful resources which shows implementation of blockchain where orderer, endorser, anchor and peer comes into picture all together?

jouzads (Mon, 01 Oct 2018 21:10:49 GMT):

capt1.png

cbf (Mon, 01 Oct 2018 21:31:46 GMT):
@Abhishek_Jagwani tl;dr: yes... basically, assign a single administrator

Abhishek_Jagwani (Mon, 01 Oct 2018 21:33:02 GMT):
@cbf Can you explain little bit more in detail

bairathirahul (Mon, 01 Oct 2018 22:22:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iTF9YqoYWp6x4e6fL) @jyang6 depends_on does not related to network connectivity. It defines the orders in which container will be created. Even there too, docker-compose will not wait for the previous container to fully initialize.

bairathirahul (Mon, 01 Oct 2018 22:22:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iTF9YqoYWp6x4e6fL) @jyang6 depends_on is not related to network connectivity. It defines the orders in which container will be created. Even there too, docker-compose will not wait for the previous container to fully initialize.

bairathirahul (Mon, 01 Oct 2018 22:24:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZuRoLbHWWmc2DFXaY) @jouzads CouchDB takes time to initialize. But once initialized, peers will be able to connect. So trying performing the peer operations. I suppose you will be able to do them.

bairathirahul (Mon, 01 Oct 2018 22:24:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wd5DsZFZDdeGafDqg) @Abhishek_Jagwani Do the first network.

bairathirahul (Mon, 01 Oct 2018 22:36:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wmdF5dXi2WXkXyPLQ) @LegoEngineering You cannot define a network-wide MSP. But you can achieve the desired functionality by specifying policy for the Application section in configtx.yaml. That section corresponds to the channel. There you can set Admin policy to only one Organization's MSP.

ZacharyLaney (Mon, 01 Oct 2018 22:45:16 GMT):

Problem5.jpg

ZacharyLaney (Mon, 01 Oct 2018 22:45:16 GMT):

Problem5.jpg

ZacharyLaney (Mon, 01 Oct 2018 22:45:16 GMT):

Problem5.jpg

ZacharyLaney (Mon, 01 Oct 2018 22:45:16 GMT):

Problem5.jpg

uherr89 (Mon, 01 Oct 2018 22:56:18 GMT):
Has joined the channel.

jeaye (Mon, 01 Oct 2018 23:16:59 GMT):
Has joined the channel.

jeaye (Mon, 01 Oct 2018 23:21:20 GMT):
I'm looking to build an app using a blockchain to store transactions. The majority of my code is off-chain, in a centralized services, so I'm not looking at Ethereum. I'd like users to participate as nodes, but I don't want them to be able to see everything, so permissions would be good. I'd prefer not to fork an existing blockchain and run my whole network, since operational costs and maintaining 50% of the network are a concern. I'm also interested in creating a coin for this platform and getting it listed on an exchange (probably by dishing out a wad of $$). Currently, I'm torn between NEM and Hyperledger Fabric for this, but I don't quite know enough about either to see clear wins. Naturally, I've been talking to NEM folks about it, but I'd also like to hear from you folks to see what you recommend.

jeaye (Mon, 01 Oct 2018 23:21:20 GMT):
I'm looking to build an app using a blockchain to store transactions. The majority of my code is off-chain, in a centralized service, so I'm not looking at Ethereum. I'd like users to participate as nodes, but I don't want them to be able to see everything, so permissions would be good. I'd prefer not to fork an existing blockchain and run my whole network, since operational costs and maintaining 50% of the network are a concern. I'm also interested in creating a coin for this platform and getting it listed on an exchange (probably by dishing out a wad of $$). Currently, I'm torn between NEM and Hyperledger Fabric for this, but I don't quite know enough about either to see clear wins. Naturally, I've been talking to NEM folks about it, but I'd also like to hear from you folks to see what you recommend.

bairathirahul (Mon, 01 Oct 2018 23:31:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=79uLMWHL8oz4qMp9P) @ZacharyLaney You will have to update your fabric images to 1.3-rc1

greg2git (Tue, 02 Oct 2018 00:07:00 GMT):
peer | 2018-10-02 00:00:39.781 UTC [endorser] ProcessProposal -> ERRO 02c [][dabbec25] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: dabbe...

GKumar (Tue, 02 Oct 2018 03:33:34 GMT):

GkEndorsement.zip

GKumar (Tue, 02 Oct 2018 03:33:34 GMT):

GkEndorsement.zip

GKumar (Tue, 02 Oct 2018 03:33:34 GMT):

GkEndorsement.zip

GKumar (Tue, 02 Oct 2018 03:33:34 GMT):

GkEndorsement.zip

GKumar (Tue, 02 Oct 2018 03:35:01 GMT):
Need urgent help: I have created a custom escc plugin as attached, done below configuration in core.yaml, now peer is not coming up. Please help me to find issues. Generated .so file using go plugin endorsers: escc: name: DefaultEndorsement library: name: GkEndorsement library: /etc/hyperledger/fabric_cst/mychain/gk.so

eenagy (Tue, 02 Oct 2018 03:38:25 GMT):
Hello! I'm wondering about fabric-tools docker image. Can someone explain what it is? I can't find anything in the documentation about it.

mehadisagor (Tue, 02 Oct 2018 07:53:58 GMT):
Has joined the channel.

mehadisagor (Tue, 02 Oct 2018 07:55:03 GMT):
while up the first network using couchdb, got the following Error:- Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

Shamann (Tue, 02 Oct 2018 08:18:51 GMT):
Has joined the channel.

Gerhardvd (Tue, 02 Oct 2018 08:20:59 GMT):
Has joined the channel.

Gerhardvd (Tue, 02 Oct 2018 08:24:39 GMT):
Hi, I've got kind of a noob question but I'm still at the diagram phase of setting up Hyperledger. Say I want to make a hyperledger blockchain for it's data immutability and interopability but I want to make the distribution of digital identities and their reading/writing rights centralised. Is it possible to just keep one CA/MSP where my company is the sole operator of the network that takes care of the nodes/peers, CA/MSP and the chaincode? Like a manager of the ecosystem?

Gerhardvd (Tue, 02 Oct 2018 08:25:18 GMT):
Obviously there are more organisations involved but they're the actual users..

wdmason (Tue, 02 Oct 2018 08:29:10 GMT):
Has joined the channel.

Shamann (Tue, 02 Oct 2018 08:29:46 GMT):
Hello friends! I have a problem when i try to use `channel.queryByChaincode(request)`. I have right response from chaincode through `docker exec cli peer chaincode query -C $CHANNEL_NAME -n $CHAINCODE_ID -c '{"Args":["queryCert", "106031518817741086409676087134683930225"]}'`, but i can't request it from JS. Responce message: ``` Successfully loaded user1 from persistence Query has completed, checking results error from query = { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ```

Shamann (Tue, 02 Oct 2018 08:29:46 GMT):
Hello friends! I have a problem when i try to use `channel.queryByChaincode(request)`. I have right response from chaincode through `docker exec cli peer chaincode query -C $CHANNEL_NAME -n $CHAINCODE_ID -c '{"Args":["queryCert", "106031518817741086409676087134683930225"]}'`, but i can't request it from JS. Response message: ``` Successfully loaded user1 from persistence Query has completed, checking results error from query = { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/shamann/work/fabric-samples/fourth-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ```

jacky281 (Tue, 02 Oct 2018 09:02:21 GMT):
Has joined the channel.

VarunMathur (Tue, 02 Oct 2018 13:05:47 GMT):
Has joined the channel.

cbf (Tue, 02 Oct 2018 13:22:34 GMT):
@Abhishek_Jagwani as someone said, look at first-network sample. Single administrator for all orgs

micklynch (Tue, 02 Oct 2018 13:49:34 GMT):
Has joined the channel.

micklynch (Tue, 02 Oct 2018 13:52:41 GMT):
question regarding hyperledger fabric transactions in JS. Say, I have an abstract asset called HotBeverage: `abstract asset HotBeverage identified by assetId { o String assetId o Double price }` And from that abstract class, I create two more assets: `asset HotTea extends HotBeverage { o String teaType }` and `asset HotCoffee extends HotBeverage { o String coffeeType }` OK, fairly straight forward so far. Now say I want to create a transaction that adds 0.50 to the price of all HotBeverages. Transactions currently cannot accept abstract assets, so it means I need to create two separate transactions :'( `transaction changeTeaPrice { --> HotTea Tea o Double newPrice }` And `transaction changeCoffeePrice { --> HotCoffee coffee o Double newPrice } ` I really want to create just one transaction that would work on all HotBeverages instead of implementing them individually. Can this be done?

micklynch (Tue, 02 Oct 2018 13:52:41 GMT):
question regarding hyperledger fabric transactions in JS. Say, I have an abstract asset called HotBeverage: `abstract asset HotBeverage identified by assetId { o String assetId o Double price }` And from that abstract class, I create two more assets: `asset HotTea extends HotBeverage { o String teaType }` and `asset HotCoffee extends HotBeverage { o String coffeeType }` OK, fairly straight forward so far. Now say I want to create a transaction that adds 0.50 to the price of all HotBeverages. Transactions currently cannot accept abstract assets, so it means I need to create two separate transactions :'( `transaction changeTeaPrice { --> HotTea Tea o Double newPrice }` And `transaction changeCoffeePrice { --> HotCoffee coffee o Double newPrice } ` I really want to create just one transaction that would work on all HotBeverages instead of implementing them individually. Can this be done?

micklynch (Tue, 02 Oct 2018 13:53:42 GMT):
Sorry about my formatting!

nrohith (Tue, 02 Oct 2018 13:55:50 GMT):
Where can I find the Dockerfiles for the fabric-(zookeeper,kafka,couchdb) images?

dave.enyeart (Tue, 02 Oct 2018 14:00:13 GMT):
@nrohith https://github.com/hyperledger/fabric-baseimage/tree/master/images

micklynch (Tue, 02 Oct 2018 14:15:05 GMT):
is there a better channel for me to direct my question above?

jouzads (Tue, 02 Oct 2018 14:19:50 GMT):
@dave.enyeart I dont have anything other than this in logs of couch containers : **************************************************** WARNING: CouchDB is running in Admin Party mode. This will allow anyone with access to the CouchDB port to access your database. In Docker's default configuration, this is effectively any other container on the same system. Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password" to set it in "docker run". ****************************************************

Abhishek_Jagwani (Tue, 02 Oct 2018 14:27:14 GMT):
@cbf Thank you. I will look into it

reda.benkirane (Tue, 02 Oct 2018 14:48:58 GMT):
I'm using Fabric Node.js SDK (https://fabric-sdk-node.github.io) and I'm getting the same error : error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed disseminating 1 out of 1 private RWSets at Object.callback (/home/ubuntu/workspace/transport-chain/transport-chain-001/node_modules/fabric-client/lib/Peer.js:114:16) Does anyone know if it's possible to update the channel with Node SDK, and how ? I can see here https://fabric-sdk-node.github.io/Channel.html that there are createChannel() and joinChannel() functions but I don't see any updateChannel(). Thank you

reda.benkirane (Tue, 02 Oct 2018 14:50:46 GMT):
The purpose is to update the channel to include the anchor peers defined in configtx.yaml, so gossip dissemination can work.

krabradosty (Tue, 02 Oct 2018 15:03:47 GMT):
Hello! Where can I ask a question related to configtxgen tool? If it's a right place: it is not clear for me how I should set up a rule in configtx.yaml that only one organization is responsible for channel configuration updates and administration

krabradosty (Tue, 02 Oct 2018 15:03:47 GMT):
Hello! Where can I ask a question related to configtxgen tool? If it's a right place: it is not clear for me how I should set up a rule in configtx.yaml that only one organization of Consortium is responsible for channel configuration updates and administration

krabradosty (Tue, 02 Oct 2018 15:03:47 GMT):
Hello! Where can I ask a question related to configtxgen tool? If it's a right place: it is not clear for me how I should set up a rule in configtx.yaml that only one organization of Consortium is responsible for channel configuration and administration (perform updates)

krabradosty (Tue, 02 Oct 2018 15:03:47 GMT):
Hello! Where can I ask a question related to configtxgen tool? If it's a right place: it is not clear for me how I should set up a rule in configtx.yaml that only one organization of Consortium is responsible for channel configuration and administration (perform updates like adding new organization or updating block size)

nrohith (Tue, 02 Oct 2018 15:06:37 GMT):
@dave.enyeart thanks.

knagware9 (Tue, 02 Oct 2018 17:19:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XidnWkRR47oyemepc) @bairathirahul Yes,,I checked ,,problem is that same setup working on one machine and not on another machine

GKumar (Tue, 02 Oct 2018 17:40:28 GMT):
2018-10-02 17:39:45.717 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

GKumar (Tue, 02 Oct 2018 17:40:28 GMT):
2018-10-02 17:39:45.717 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

GKumar (Tue, 02 Oct 2018 17:40:28 GMT):
2018-10-02 17:39:45.717 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== *``` This is happening with latest bynf.sh . First ran with go then restarted with java options*

ZacharyLaney (Tue, 02 Oct 2018 20:08:18 GMT):

Problem.jpg

ZacharyLaney (Tue, 02 Oct 2018 20:08:18 GMT):

Problem.jpg

LevinLMKwong (Wed, 03 Oct 2018 00:47:42 GMT):
Has joined the channel.

eenagy (Wed, 03 Oct 2018 02:46:53 GMT):
Why doesn't the docker images contain any description about the images itself? I find it really confusing that they contain empty readme on dockerhub.

LevinLMKwong (Wed, 03 Oct 2018 04:58:06 GMT):
Is there any guide to set up MSP WITHOUT using cryptogen tool?

JP (Wed, 03 Oct 2018 05:01:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7RGMxptwMJzP9BpR) @LevinLMKwong Without cryptogen tool ? then you try only sample fabric code.

LevinLMKwong (Wed, 03 Oct 2018 05:04:24 GMT):
What does `try only sample fabric code` mean? In my understanding, correct me if I am wrong, the network will runs correctly with proper MSP (proper cert under correct folders) and cryptogen is one of the easiest way to set up the MSP. But I don't know how to setup MSP without it, given that I have my own CA cert.

LevinLMKwong (Wed, 03 Oct 2018 05:04:24 GMT):
@JP What does `try only sample fabric code` mean? In my understanding, correct me if I am wrong, the network will runs correctly with proper MSP (proper cert under correct folders) and cryptogen is one of the easiest way to set up the MSP. But I don't know how to setup MSP without it, given that I have my own CA cert.

LevinLMKwong (Wed, 03 Oct 2018 05:09:52 GMT):
As from the documentation, I can use Openssl, Cryptogen and Fabric-CA to setup MSP. Maybe I should try Fabric-CA?

knagware9 (Wed, 03 Oct 2018 05:11:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FKn349pG55ZayZMCm) actually after some time peer container exited because of not able to connect couch dB

knagware9 (Wed, 03 Oct 2018 05:13:06 GMT):

Screenshot from 2018-10-03 10-42-13.png

ahmadzafar (Wed, 03 Oct 2018 06:23:09 GMT):
can we change the other chaincode state values from other chaincode through invokechaincode function if both are on same channel?

SergioBra (Wed, 03 Oct 2018 06:41:28 GMT):
Has joined the channel.

MaddaliPadmaja (Wed, 03 Oct 2018 07:15:38 GMT):
Has joined the channel.

rajanashutosh (Wed, 03 Oct 2018 07:37:51 GMT):
2018-10-03 07:30:00.191 UTC [orderer/common/server] func1 -> DEBU 76cd Closing Broadcast stream 2018-10-03 07:30:00.214 UTC [orderer/common/server] Broadcast -> DEBU 76ce Starting new Broadcast handler 2018-10-03 07:30:00.214 UTC [orderer/common/broadcast] Handle -> DEBU 76cf Starting new broadcast loop for X.X.X.X:47750 2018-10-03 07:30:00.214 UTC [orderer/common/broadcast] Handle -> WARN 76d0 [channel: engagebidchannel] Rejecting broadcast of message from X.X.X.X:47750 with SERVICE_UNAVAILABLE: rejected by Consenter: will not enqueue, consenter for this channel hasn't started ye

rajanashutosh (Wed, 03 Oct 2018 07:38:32 GMT):
this happens if we run continuously with 2000 users for a span of 3 or 4 minutes and API starts to timeout.

rajanashutosh (Wed, 03 Oct 2018 07:39:30 GMT):
I am working with Fabric Version 1.3 and my network architecture being 3 Zookeeper 4 Kafka broker 3 Orderers on same VM 4 Orgs

rajanashutosh (Wed, 03 Oct 2018 07:41:27 GMT):
2018-10-03 07:40:01.454 UTC [common/deliver] deliverBlocks -> WARN 26182 [channel: mychannel] Rejecting deliver request for x.x.x.x:45304 because of consenter error 2018-10-03 07:40:01.454 UTC [common/deliver] Handle -> DEBU 26183 Waiting for new SeekInfo from x.x.x.x:45304 2018-10-03 07:40:01.454 UTC [common/deliver] Handle -> DEBU 26184 Attempting to read seek info message from x.x.x.x:45304 2018-10-03 07:40:02.533 UTC [grpc] infof -> DEBU 26185 transport: loopyWriter.run returning. connection error: desc = "transport is closing" 2018-10-03 07:40:02.533 UTC [common/deliver] Handle -> WARN 26186 Error reading from x.x.x.x:38838: rpc error: code = Canceled desc = context canceled 2018-10-03 07:40:02.533 UTC [orderer/common/server] func1 -> DEBU 26187 Closing Deliver stream 2018-10-03 07:40:04.895 UTC [grpc] infof -> DEBU 26188 transport: loopyWriter.run returning. connection error: desc = "transport is closing" 2018-10-03 07:40:04.895 UTC [common/deliver] Handle -> WARN 26189 Error reading from

rajanashutosh (Wed, 03 Oct 2018 07:41:35 GMT):
Request your suggestions on this ..

udaybs (Wed, 03 Oct 2018 08:16:32 GMT):
Is PBFT supported in Fabric 1.2, if not when this will be released? Any inputs on roadmap will be helpful.

udaybs (Wed, 03 Oct 2018 08:18:06 GMT):
I am trying to implement Hyplerledger fabric on Kubernetes. My Peers and Orderer is always going into crash off state. kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE docker compose-7447646cf5-p2kcl 1/1 Running 2 13d docker compose-api-6fbc44c575-ltvb7 1/1 Running 4 13d kube-system etcd-docker-for-desktop 1/1 Running 5 13d kube-system kube-apiserver-docker-for-desktop 1/1 Running 4 13d kube-system kube-controller-manager-docker-for-desktop 1/1 Running 7 13d kube-system kube-dns-86f4d74b45-pbvcz 3/3 Running 3 13d kube-system kube-flannel-ds-krcbx 0/1 CrashLoopBackOff 198 17h kube-system kube-proxy-w2xcl 1/1 Running 2 13d kube-system kube-scheduler-docker-for-desktop 1/1 Running 5 13d kube-system kubernetes-dashboard-7b9c7bc8c9-6zknq 1/1 Running 1 21h org1 ca-68697c8c87-n9xkl 1/1 Running 0 21h org1 cli-cfd885d87-c28pw 1/1 Running 0 21h org1 peer0-org1-6f7878689b-qq22d 1/2 CrashLoopBackOff 199 21h org1 peer1-org1-786f678589-9pljr 1/2 CrashLoopBackOff 199 21h org2 ca-5b7697c55c-hh4wl 1/1 Running 0 21h org2 cli-bd7cb9b46-jnm9b 1/1 Running 0 21h org2 peer0-org2-5c46f68b55-c8p2w 1/2 CrashLoopBackOff 199 21h org2 peer1-org2-f8d5b7686-wm62d 1/2 CrashLoopBackOff 199 21h orgorderer1 orderer0-orgorderer1-764dc94595-qrffp 0/1 CrashLoopBackOff 199 21h

udaybs (Wed, 03 Oct 2018 08:18:47 GMT):
I am following this solution for implementing on kubernetes - http://www.think-foundry.com/deploy-hyperledger-fabric-on-kubernetes-part-2/

mastersingh24 (Wed, 03 Oct 2018 08:20:03 GMT):
@udaybs - the ordering service in 1.2 and 1.3 is still Kafka-based. Work is underway on a Raft implementation as well. But remember that consensus in Fabric is comprised of both ordering and validation. Validation leverages endorsement policies and you can set a very strong policy (e.g. require at least two thirds of the orgs in a channel)

udaybs (Wed, 03 Oct 2018 08:29:33 GMT):
@mastersingh24 thanks for coming back. any link / issue ID open for raft release that I could follow

ahmadzafar (Wed, 03 Oct 2018 09:05:35 GMT):
I have successfully instantiated two chaincodes on same channel but when i get through peer chaincode list --instantiated it gives me only one and i am unable to query the other chaincode.. Any help? I am using fabric version 1.1.

jouzads (Wed, 03 Oct 2018 09:13:54 GMT):
do someone can share tutorials for building blockchains (from scratch?) with fabric & nodejs please ?

waleed (Wed, 03 Oct 2018 09:15:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wiTndDeWJ7DPT6E6Z) @jouzads here are 2 blogs from me, which can help you: https://blog.4eyes.ch/

jouzads (Wed, 03 Oct 2018 09:24:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yHEBDzREAbwJYFmpY) @waleed Thank you I will look now, and if someone has others, do not hesitate to send!

SudeepS 2 (Wed, 03 Oct 2018 10:34:37 GMT):
I am using balance-transfer project, changed ordering service to kafka with two orderers. Now if I make transactions, which orderer will process the transaction ? and If one of the orderer goes down, transactions will be handled by other orderer ? Please help me out in my queries..

jouzads (Wed, 03 Oct 2018 10:45:07 GMT):
@waleed I made your tutorial and all works well, it is very well explained and simple to understand, I love it, do you know other tutorials ?

knagware9 (Wed, 03 Oct 2018 10:48:08 GMT):
Anybody also facing issue to connect peer with couch db? Guys , this is unstable ,,works on some machine and some not...I know issue is peet not able to connect couch db after some retry but how its work on some machines

knagware9 (Wed, 03 Oct 2018 10:48:54 GMT):
018-10-03 10:43:56.948 UTC [couchdb] handleRequest -> WARN 00d Retrying couchdb request in 1m4s. Attempt:10 Error:Get http://couchdb2:5984/: dial tcp 172.19.0.3:5984: connect: connection refused 2018-10-03 10:45:00.949 UTC [couchdb] handleRequest -> WARN 00e Retrying couchdb request in 2m8s. Attempt:11 Error:Get http://couchdb2:5984/: dial tcp 172.19.0.3:5984: connect: connection refused panic: Error in instantiating ledger provider: unable to connect to CouchDB, check the hostname and port: Get http://couchdb2:5984/: dial tcp 172.19.0.3:5984: connect: connection refused goroutine 1 [running]: github.com/hyperledger/fabric/core/ledger/ledgermgmt.initialize(0xc420484c90) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:63 +0x5dc github.com/hyperledger/fabric/core/ledger/ledgermgmt.Initialize.func1() /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:48 +0x2a sync.(*Once).Do(0x1ab3370, 0xc4205f95f0) /opt/go/src/sync/once.go:44 +0xbe github.com/hyperledger/fabric/core/ledger/ledgermgmt.Initialize(0xc420484c90) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:47 +0x4d github.com/hyperledger/fabric/peer/node.serve(0x1ab32a8, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:161 +0x499 github.com/hyperledger/fabric/peer/node.glob..func1(0x19a2c20, 0x1ab32a8, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:112 +0x9c github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x19a2c20, 0x1ab32a8, 0x0, 0x0, 0x19a2c20, 0x1ab32a8) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:698 +0x46d github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x19a3280, 0x0, 0x19a25c0, 0x19a33c0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:783 +0x2e4 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x19a3280, 0xc4205f9f30, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:736 +0x2b main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:52 +0x2e5

jouzads (Wed, 03 Oct 2018 10:49:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5DifYFaGkCmqhqXzp) @knagware9 have the same issue... and haven't solved it after one week, don't know how to do

knagware9 (Wed, 03 Oct 2018 10:50:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BooGqewpfz2YedAn6) @jouzads Yes ,,I seen your comment ,,,I also dont know what to do

dave.enyeart (Wed, 03 Oct 2018 11:09:00 GMT):
@jouzads @knagware9 Does it consistently fail on certain machines? Or random?

dave.enyeart (Wed, 03 Oct 2018 11:09:44 GMT):
Latest couchdb image may have an issue, can you try a prior image and report results?

dave.enyeart (Wed, 03 Oct 2018 11:09:53 GMT):
Get a prior image like this:

dave.enyeart (Wed, 03 Oct 2018 11:09:58 GMT):
```docker pull hyperledger/fabric-couchdb:amd64-0.4.10```

dave.enyeart (Wed, 03 Oct 2018 11:10:10 GMT):
```docker tag hyperledger/fabric-couchdb:amd64-0.4.10 hyperledger/fabric-couchdb:latest```

dave.enyeart (Wed, 03 Oct 2018 11:10:55 GMT):
A jira issue was opened to look into this... please post any findings there: https://jira.hyperledger.org/browse/FAB-12023

tahaf10 (Wed, 03 Oct 2018 11:26:48 GMT):
I'm using byfn to deploy my chaincode. Do i have to install chaincode only once or do I have to separately install it on all peers?

dave.enyeart (Wed, 03 Oct 2018 11:34:57 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#installing-chaincode

dave.enyeart (Wed, 03 Oct 2018 11:35:06 GMT):
"You must install the chaincode on each endorsing peer node of a channel that will run your chaincode."

mobie (Wed, 03 Oct 2018 11:47:54 GMT):
Has joined the channel.

knagware9 (Wed, 03 Oct 2018 11:49:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4PX57iNkexsMkFLBJ) @dave.enyeart I tried on 4 ubuntu machines ,it was successful only in one machine and failing on other three machines...trying with old couch db images..Lets see..thanks

knagware9 (Wed, 03 Oct 2018 11:56:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4PX57iNkexsMkFLBJ) @dave.enyeart Tested with prior couch db images and its working perfectly

krabradosty (Wed, 03 Oct 2018 11:56:56 GMT):
Hello. What is the purpose of the Application section in the configuration? How is it related to Orderer and Channel section? I'm confused with a statement from the documentation - "It is recommended never to define an Application section inside of the ordering system channel genesis configuration, but may be done for testing."

tahaf10 (Wed, 03 Oct 2018 12:11:16 GMT):
Are anchor peers and endorsing peers the same thing?

krabradosty (Wed, 03 Oct 2018 12:16:11 GMT):
@tahaf10 No, anchor peers are responsible for cross-organization gossip communication

tahaf10 (Wed, 03 Oct 2018 12:18:51 GMT):
@krabradosty I'm using the byfn network with 2orgs with 2 peers each to install my chaincode. But i can't get it up and running.

tahaf10 (Wed, 03 Oct 2018 12:19:12 GMT):
Once the network goes up I do``` docker exec cli peer chaincode install -n adverce -l golang -p github.com/chaincode/adverce_chaincode -v 1.0 ```

tahaf10 (Wed, 03 Oct 2018 12:19:32 GMT):
this works fine

tahaf10 (Wed, 03 Oct 2018 12:20:02 GMT):
then I use this to install on all other peers ``` docker exec -e "CORE_PEER_LOCALMSPID=Org2MSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp" -e "CORE_PEER_ADDRESS=peer0.org2.example.com:7051" cli peer chaincode install -n adverce -p github.com/chaincode/adverce_chaincode -v 1.0 ```

tahaf10 (Wed, 03 Oct 2018 12:20:50 GMT):
to instantiate I use ``` docker exec cli peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -c '{"Args":[]}' -n adverce -v 1.0 -P "OR('Org1MSP.member', 'Org2MSP.member')" ```

tahaf10 (Wed, 03 Oct 2018 12:21:35 GMT):
This works fine, but when I try to instantiate on all other peers by using ``` docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" -e "CORE_PEER_ADDRESS=peer1.org1.example.com:7051" cli peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -c '{"Args":[]}' -n adverce -v 1.0 -P "OR('Org1MSP.member', 'Org2MSP.member')" ```

tahaf10 (Wed, 03 Oct 2018 12:22:11 GMT):
it says ``` Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg chaincode with name 'adverce' already exists ```

tahaf10 (Wed, 03 Oct 2018 12:23:15 GMT):
When I try to invoke a transaction like this``` docker exec cli peer chaincode invoke -C mychannel -n adverce -c '{"Args":["addClick","9","1","1","1","1","NEW"]}' ```

tahaf10 (Wed, 03 Oct 2018 12:23:39 GMT):
I get ``` 2018-10-03 12:22:55.597 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response: payload:"\n \004\353\331\333\\7\360\221\001\037\345\256\374\206\326m=\252\370\027Zt\327\027\031\255yM\214n3\245\022\322\001\n\272\001\022\236\001\n\007adverce\022\222\001\n\003\n\0019\032\212\001\n\0019\032\204\001{\"docType\":\"click\",\"clicksID\":\"9\",\"websiteID\":\"1\",\"campaignID\":\"1\",\"advertiserID\":\"1\",\"transactionID\":\"1\",\"transactionStatus\":\"NEW\"}\022\027\n\004lscc\022\017\n\r\n\007adverce\022\002\010\005\032\003\010\310\001\"\016\022\007adverce\032\0031.0" endorsement:\347\230z\027\006\242\256\277\313\002\034\337\364\013O\205\204]\002 k\343\244+\375\024U#\241b_\023^\370\241W\374\003\322\r\332\363\255X\241 p\002\335\\\243>" > ```

tahaf10 (Wed, 03 Oct 2018 12:24:32 GMT):
I'm really confused on how to get this working

dave.enyeart (Wed, 03 Oct 2018 12:29:09 GMT):
you must install on all peers, but only instantiate once per channel since it is a block transaction that gets distributed to all peers. please try the tutorial first to exercise all the steps correctly: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

tahaf10 (Wed, 03 Oct 2018 12:31:32 GMT):
@dave.enyeart thanks for the link. Can you tell me if instantiate is required only once, then why is chaincode invoke failing with the above error?

jouzads (Wed, 03 Oct 2018 12:33:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uLWgtLp65BE8pkaZv) @knagware9 heyy, you tried with which couch db image please ?

dave.enyeart (Wed, 03 Oct 2018 12:35:55 GMT):
@knagware9 good to hear prior couchdb image 0.4.10 works perfectly for you. we will have to revert some changes before we release 1.3 then. @chris.elder @harsha @cbf take note, we'll work this under https://jira.hyperledger.org/browse/FAB-12023

harsha (Wed, 03 Oct 2018 12:35:55 GMT):
Has joined the channel.

dave.enyeart (Wed, 03 Oct 2018 12:37:08 GMT):
@tahaf10 I don't know the root cause of your failure, but I expect that error is not related to chaincode lifecycle. I suggest look at the orderer and peer logs to see if there are any errors, and follow the tutorial I pointed you to, to see if there are differences

dave.enyeart (Wed, 03 Oct 2018 12:37:08 GMT):
@tahaf10 I don't know the root cause of your failure, but I expect that error is not related to chaincode lifecycle. It seems to be a problem sending the completed transaction to orderer, not with chaincode invoke itself. Can you confirm orderer availability at the endpoint you provided, and follow the tutorial I pointed you to, to see if there are differences

jouzads (Wed, 03 Oct 2018 12:45:39 GMT):
@dave.enyeart could you help me, have the same problem : [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couch.peer0.org2.example.com:5984/: dial tcp 192.168.112.4:5984: connect: connection refused

jouzads (Wed, 03 Oct 2018 12:47:10 GMT):
and I tried do the changes you mentionned to @knagware9 but nothing change for me :/

SergioBra (Wed, 03 Oct 2018 12:51:40 GMT):
Hi everyone, we're trying to set up a network with the following features: - 3 peers - 3 orgs - 4 kafkas

knagware9 (Wed, 03 Oct 2018 13:01:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C6AhJjD4RZZ4HkqfC) @jouzads I just did this

knagware9 (Wed, 03 Oct 2018 13:01:48 GMT):
docker pull hyperledger/fabric-couchdb:amd64-0.4.10 ``` ``` docker tag hyperledger/fabric-couchdb:amd64-0.4.10 hyperledger/fabric-couchdb:latest

SergioBra (Wed, 03 Oct 2018 13:06:29 GMT):

config_files.zip

SergioBra (Wed, 03 Oct 2018 13:06:29 GMT):

config_files.zip

harsha (Wed, 03 Oct 2018 13:08:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G9LtazZhi7exK8jYF) @dave.enyeart @knagware9 can you kindly run CouchDB specific BYFN test as well please ?

jouzads (Wed, 03 Oct 2018 13:09:36 GMT):
@knagware9 @dave.enyeart for me, even with the fabric-couchdb:amd64-0.4.10 , the issue stay

knagware9 (Wed, 03 Oct 2018 13:09:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SjN53wooxYYgus4KM) @harsha Yes..I ran too BYFN couch db too

knagware9 (Wed, 03 Oct 2018 13:12:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nqXZxsAXr7FBw6ucu) ./byfn.sh up -c mychannel -s couchdb ,,I ran this script

ahmadzafar (Wed, 03 Oct 2018 13:24:37 GMT):
Can we call other chaincode function at the time of instantiate of the chaincode (with in the Init function)? I am getting this error [vscc] Validate -> ERRO 03f VSCC error: ValidateLSCCInvocation failed, err LSCC invocation is attempting to write to namespace balance (balance chaincode is invoking through new chaincode) [committer/txvalidator] validateTx -> ERRO 040 VSCCValidateTx for transaction txId ='..'

dave.enyeart (Wed, 03 Oct 2018 13:25:51 GMT):
@jouzads have you run plain as described here? byfn https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

dave.enyeart (Wed, 03 Oct 2018 13:25:51 GMT):
@jouzads have you run plain byfn as described here? https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

harsha (Wed, 03 Oct 2018 13:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dJG9XXBuicsCnXK4Q) @knagware9 Cool, kindly update in JIRA item, along with evidences like `docker images` and BYFN O/P etc.

jouzads (Wed, 03 Oct 2018 13:31:35 GMT):
@dave.enyeart yes but actually i rm all images and I will do byfn again

jouzads (Wed, 03 Oct 2018 13:31:53 GMT):
and after will tell you if works or nah

jouzads (Wed, 03 Oct 2018 13:32:23 GMT):
@dave.enyeart got this error : 2018-10-03 13:31:56.846 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

jouzads (Wed, 03 Oct 2018 13:34:49 GMT):
said nothing, it's ok

jouzads (Wed, 03 Oct 2018 13:43:49 GMT):
@dave.enyeart my couchdb image is : x86_64-0.4.5, got always this error : [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couch.peer0.org2.example.com:5984/: dial tcp 172.23.0.5:5984: connect: connection refused

dave.enyeart (Wed, 03 Oct 2018 13:50:03 GMT):
ok, please test couchdb image 0.4.10, this is latest image confirmed to be good

dave.enyeart (Wed, 03 Oct 2018 13:50:25 GMT):
`docker pull hyperledger/fabric-couchdb:amd64-0.4.10`

dave.enyeart (Wed, 03 Oct 2018 13:50:39 GMT):
`docker tag hyperledger/fabric-couchdb:amd64-0.4.10 hyperledger/fabric-couchdb:latest`

ColeBoudreau (Wed, 03 Oct 2018 13:57:39 GMT):
I'm trying to get fabric up on a ec2 instance. I have downloaded fabric and all prereqs. I would like to mess around with cryptogen, but running `sudo make cryptogen` in `fabric/` gets me the error: "make: *** No rule to make target 'cryptogen'. Stop."

ColeBoudreau (Wed, 03 Oct 2018 13:57:39 GMT):
I'm trying to get fabric up on a ec2 instance. I have downloaded fabric and all prereqs. I would like to mess around with cryptogen, but running `sudo make cryptogen` in `fabric/` gets me the error: "make: *** No rule to make target 'cryptogen'. Stop." go version: go version go1.10 linux/amd64 whereis go: go: /usr/local/lib/go /usr/local/go /usr/local/go/bin/go In ~/.bashrc: export GOPATH=/usr/local/lib/go export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin

knagware9 (Wed, 03 Oct 2018 13:58:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MZtxKFzpZ3WGazPnp) @harsha Yes ,,updating it

jouzads (Wed, 03 Oct 2018 13:59:43 GMT):
@dave.enyeart same problem : peer0.org1.example.com | 2018-10-03 13:59:20.338 UTC [couchdb] handleRequest -> WARN 007 Retrying couchdb request in 500ms. Attempt:3 Error:Get http://couch.peer0.org1.example.com:5984/: dial tcp 172.23.0.2:5984: connect: connection refused peer1.org1.example.com | 2018-10-03 13:59:20.418 UTC [couchdb] handleRequest -> WARN 007 Retrying couchdb request in 500ms. Attempt:3 Error:Get http://couch.peer1.or

jouzads (Wed, 03 Oct 2018 14:00:11 GMT):
with the 0.4.10 and with the tag ofc

dave.enyeart (Wed, 03 Oct 2018 14:00:37 GMT):
using the plain first-network sample?

dave.enyeart (Wed, 03 Oct 2018 14:00:53 GMT):
everybody else has confirmed success using 0.4.10 with first-network sample

jouzads (Wed, 03 Oct 2018 14:05:42 GMT):
yes

akshay.sood (Wed, 03 Oct 2018 14:18:24 GMT):
Hi Everyone

akshay.sood (Wed, 03 Oct 2018 14:18:25 GMT):
Greetings

akshay.sood (Wed, 03 Oct 2018 14:20:55 GMT):
Anyone know if it is possible to set/access couchdb map-reduce using chaincode?

dave.enyeart (Wed, 03 Oct 2018 14:22:50 GMT):
Peer chaincode does not support CouchDB Views. For aggregate data, the recommended pattern is to use event deliver service and have a block listener that can write to a data store most aligned with the aggregate query requirements, for example many people will do analytics on the aggregate data coming from block transactions.

dave.enyeart (Wed, 03 Oct 2018 14:22:50 GMT):
Peer chaincode does not support CouchDB map/reduce Views. For aggregate data, the recommended pattern is to use event deliver service and have a block listener that can write to a data store most aligned with the aggregate query requirements, for example many people will do analytics on the aggregate data coming from block transactions.

jouzads (Wed, 03 Oct 2018 14:57:57 GMT):
@dave.enyeart so I really don't know where's my problem..

huikang (Wed, 03 Oct 2018 15:06:20 GMT):
Has joined the channel.

huikang (Wed, 03 Oct 2018 15:06:45 GMT):
Hi, I have a question about this channel configuration sample (https://github.com/hyperledger/fabric-samples/blob/33d333fd46f8a68cf78557582f474f9e7004029b/first-network/configtx.yaml#L314-L319). In this example, why there are both Consortium and Organizations. Are they duplicate or having different meaning? Thanks.

dthom (Wed, 03 Oct 2018 15:10:17 GMT):
Has joined the channel.

knagware9 (Wed, 03 Oct 2018 15:10:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NqntPwsk96YMPHvQ3) @jouzads I tried on my second ubuntu machine and its working perfectly with prior couch images @harsha have updated JIRA

akshay.sood (Wed, 03 Oct 2018 16:13:09 GMT):
@dave.enyeart how can I achieve this

akshay.sood (Wed, 03 Oct 2018 16:13:27 GMT):
Like select count from table where doc_type=user

akshay.sood (Wed, 03 Oct 2018 16:13:45 GMT):
I want to get total count of documents

dave.enyeart (Wed, 03 Oct 2018 16:20:02 GMT):
you would use a block listener as described in this tutorial https://fabric-sdk-node.github.io/tutorial-channel-events.html to build out a data store to support aggregate and analytic queries. ping me directly if you are interested in application consulting services...

starkriedesel (Wed, 03 Oct 2018 17:28:51 GMT):
Has joined the channel.

akshay.sood (Wed, 03 Oct 2018 17:31:05 GMT):
@dave.enyeart please check pm

Tony (Wed, 03 Oct 2018 19:25:00 GMT):

IMG_20181003_195650.jpg

Tony (Wed, 03 Oct 2018 19:25:13 GMT):

IMG_20181003_195539.jpg

Tony (Wed, 03 Oct 2018 19:26:04 GMT):
Gossip protocol for multiple node in different vm is not working, I am using docker swarm, peer 0 and peer 1 is different vm, goosip bootstrap for perr0 is defined peer1 target port id and vice versa, but error is handshake failed as peer0 not able to find peer 1

jvsclp (Wed, 03 Oct 2018 19:28:14 GMT):
@Tony Are you running windows 7 or later?

yacovm (Wed, 03 Oct 2018 19:29:26 GMT):
@Tony consider using the external endpoint for inter-VM communication and peer.gossip.endpoint for intra-VM communication

Tony (Wed, 03 Oct 2018 19:31:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=omx4wN2eDXcyJK8eb) @jvsclp Ubuntu

Tony (Wed, 03 Oct 2018 19:46:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=45MrwgJvzdAgJBLkj) @yacovm So for perr0 external endpoint would be peer1 target port id?

yacovm (Wed, 03 Oct 2018 19:49:24 GMT):
no.... it would be peer0.VM0

Tony (Wed, 03 Oct 2018 19:57:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NhqtMgdoQcRsyJmes) @yacovm For intra? Peer1.VM1

Tony (Wed, 03 Oct 2018 19:57:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NhqtMgdoQcRsyJmes) @yacovm For intra? Peer1.VM1?

yacovm (Wed, 03 Oct 2018 20:01:37 GMT):
no, for inter

yacovm (Wed, 03 Oct 2018 20:01:54 GMT):
if you are in the same VM you need to be in the same organization

yacovm (Wed, 03 Oct 2018 20:02:10 GMT):
and you publish to other VMs which are other organizations, your external address

LevinLMKwong (Thu, 04 Oct 2018 05:03:14 GMT):
``` ```

LevinLMKwong (Thu, 04 Oct 2018 05:04:05 GMT):
``` 2018-10-04 04:54:57.375 UTC [endorser] SimulateProposal -> DEBU 492 [][de163636] Entry chaincode: name:"cscc" 2018-10-04 04:54:57.375 UTC [endorser] callChaincode -> DEBU 493 [][de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583] Entry chaincode: name:"cscc" version: 1.2.0 2018-10-04 04:54:57.375 UTC [ccprovider] NewCCContext -> DEBU 494 NewCCCC(chain=,chaincode=cscc,version=1.2.0,txid=de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583,syscc=true,proposal=0xc4208f63c0,canname=cscc:1.2.0) 2018-10-04 04:54:57.375 UTC [chaincode] execute -> DEBU 495 canonical name: cscc:1.2.0 2018-10-04 04:54:57.375 UTC [chaincode] Execute -> DEBU 496 Entry 2018-10-04 04:54:57.375 UTC [shim] func1 -> DEBU 497 [de163636]Received message TRANSACTION from peer 2018-10-04 04:54:57.375 UTC [shim] handleMessage -> DEBU 498 [de163636] Handling ChaincodeMessage of type: TRANSACTION(state:ready) 2018-10-04 04:54:57.375 UTC [shim] handleReady -> DEBU 499 [de163636] Received TRANSACTION, invoking transaction on chaincode(state:ready) 2018-10-04 04:54:57.375 UTC [cscc] Invoke -> DEBU 49a Invoke function: JoinChain 2018-10-04 04:54:57.375 UTC [ledgermgmt] CreateLedger -> INFO 49b Creating ledger [tmchannel] with genesis block 2018-10-04 04:54:57.375 UTC [shim] func1 -> DEBU 49c [de163636] Transaction completed. Sending COMPLETED 2018-10-04 04:54:57.375 UTC [shim] triggerNextState -> DEBU 49d [de163636] send state message COMPLETED 2018-10-04 04:54:57.375 UTC [chaincode] handleMessage -> DEBU 49e [de163636] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready 2018-10-04 04:54:57.376 UTC [chaincode] Notify -> DEBU 49f [de163636] notifying Txid:de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583, channelID: 2018-10-04 04:54:57.376 UTC [chaincode] Execute -> DEBU 4a0 Exit 2018-10-04 04:54:57.376 UTC [endorser] callChaincode -> DEBU 4a1 [][de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583] Exit 2018-10-04 04:54:57.376 UTC [endorser] SimulateProposal -> DEBU 4a2 [][de163636] Exit 2018-10-04 04:54:57.376 UTC [endorser] ProcessProposal -> ERRO 4a3 [][de163636] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583 Fail to join channel ... ```

LevinLMKwong (Thu, 04 Oct 2018 05:04:05 GMT):
``` 2018-10-04 04:54:57.375 UTC [endorser] SimulateProposal -> DEBU 492 [][de163636] Entry chaincode: name:"cscc" 2018-10-04 04:54:57.375 UTC [endorser] callChaincode -> DEBU 493 [][de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583] Entry chaincode: name:"cscc" version: 1.2.0 2018-10-04 04:54:57.375 UTC [ccprovider] NewCCContext -> DEBU 494 NewCCCC(chain=,chaincode=cscc,version=1.2.0,txid=de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583,syscc=true,proposal=0xc4208f63c0,canname=cscc:1.2.0) 2018-10-04 04:54:57.375 UTC [chaincode] execute -> DEBU 495 canonical name: cscc:1.2.0 2018-10-04 04:54:57.375 UTC [chaincode] Execute -> DEBU 496 Entry 2018-10-04 04:54:57.375 UTC [shim] func1 -> DEBU 497 [de163636]Received message TRANSACTION from peer 2018-10-04 04:54:57.375 UTC [shim] handleMessage -> DEBU 498 [de163636] Handling ChaincodeMessage of type: TRANSACTION(state:ready) 2018-10-04 04:54:57.375 UTC [shim] handleReady -> DEBU 499 [de163636] Received TRANSACTION, invoking transaction on chaincode(state:ready) 2018-10-04 04:54:57.375 UTC [cscc] Invoke -> DEBU 49a Invoke function: JoinChain 2018-10-04 04:54:57.375 UTC [ledgermgmt] CreateLedger -> INFO 49b Creating ledger [tmchannel] with genesis block 2018-10-04 04:54:57.375 UTC [shim] func1 -> DEBU 49c [de163636] Transaction completed. Sending COMPLETED 2018-10-04 04:54:57.375 UTC [shim] triggerNextState -> DEBU 49d [de163636] send state message COMPLETED 2018-10-04 04:54:57.375 UTC [chaincode] handleMessage -> DEBU 49e [de163636] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready 2018-10-04 04:54:57.376 UTC [chaincode] Notify -> DEBU 49f [de163636] notifying Txid:de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583, channelID: 2018-10-04 04:54:57.376 UTC [chaincode] Execute -> DEBU 4a0 Exit 2018-10-04 04:54:57.376 UTC [endorser] callChaincode -> DEBU 4a1 [][de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583] Exit 2018-10-04 04:54:57.376 UTC [endorser] SimulateProposal -> DEBU 4a2 [][de163636] Exit 2018-10-04 04:54:57.376 UTC [endorser] ProcessProposal -> ERRO 4a3 [][de163636] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: de163636a77e7d0b7030f8dc45c6f5a4b3ba0fa40577f0394493ea4d6bfb8583 ``` Fail to join channel ...

LevinLMKwong (Thu, 04 Oct 2018 05:04:05 GMT):
Hi guys, I failed to join channel using the channel.block but succeed after I run `peer channel fetch 0 ... ` (from a stackoverflow answer). Can anyone explain a bit the reason? I would like to understand more

BlockchainCoE (Thu, 04 Oct 2018 05:11:21 GMT):
Has joined the channel.

SudeepS 2 (Thu, 04 Oct 2018 05:19:46 GMT):
While creating channel how to select some or all orderers to be available for that channel.

muramount (Thu, 04 Oct 2018 05:50:03 GMT):
Has joined the channel.

manoj485 (Thu, 04 Oct 2018 06:40:11 GMT):
Hi All can anyone tell me the design steps for developing new consensus algorithm or what are changes to be done , what is the effect on the fabric

VanC 7 (Thu, 04 Oct 2018 06:54:44 GMT):
Has left the channel.

Amudha (Thu, 04 Oct 2018 07:34:02 GMT):
Hello Everyone, I am trying to implement a ACL on my ChainCode (user chaincode) Below is the configuration I have done in the configtx.yaml of the network i.e I have defined the signature policies under Org2 and added the ACL policy for invoking a chaincode called CreateContract under ACL default(samplecc/CreateContract - chaincodename/function) The ACL policy for samplecc/CreateContract specifies that any member of Org2 alone will be able to invoke the chaincode where in any member of Org1 is also able to invoke it. Anyone please help me rectify this. Organizations: # SampleOrg defines an MSP using the sampleconfig. It should never be used # in production but may be used as a template for other definitions - &OrdererOrg # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: OrdererMSP # ID to load the MSP definition as ID: OrdererMSP # MSPDir is the filesystem path which contains the MSP configuration MSPDir: crypto-config/ordererOrganizations/sample.com/msp - &Org1 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org1MSP # ID to load the MSP definition as ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.sample.com/msp AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.sample.com Port: 7051 - &Org2 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org2MSP # ID to load the MSP definition as ID: Org2MSP MSPDir: crypto-config/peerOrganizations/org2.sample.com/msp AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org2.sample.com Port: 7051 # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// *Policies: &Org2Policies Readers: Type: Signature Rule: “OR('Org2.member')” # If your MSP is configured with the new NodeOUs, you might # want to use a more specific rule like the following: # Rule: "OR('SampleOrg.admin', 'SampleOrg.peer', 'SampleOrg.client')" Writers: Type: Signature Rule: “OR('Org2.member')” # If your MSP is configured with the new NodeOUs, you might # want to use a more specific rule like the following: # Rule: "OR('SampleOrg.admin', 'SampleOrg.client')" * ################################################################################ # # SECTION: Application # # - This section defines the values to encode into a config transaction or # genesis block for application related parameters # ################################################################################ *Application: &ApplicationDefaults ACLs: &ACLsDefault # This section provides defaults for policies for various resources # in the system. These "resources" could be functions on system chaincodes # (e.g., "GetBlockByNumber" on the "qscc" system chaincode) or other resources # (e.g.,who can receive Block events). This section does NOT specify the resource's # definition or API, but just the ACL policy for it. # # User's can override these defaults with their own policy mapping by defining the # mapping under ACLs in their channel definition # ACL policy for invoking createContract samplecc/CreateContract: /Channel/Application/Org2/Writers *

Amudha (Thu, 04 Oct 2018 07:34:02 GMT):
Hello Everyone, I am trying to implement a ACL on my ChainCode (user chaincode) Below is the configuration I have done in the configtx.yaml of the network i.e I have defined the signature policies under Org2 and added the ACL policy for invoking a chaincode called CreateContract under ACL default(samplecc/CreateContract - chaincodename/function) The ACL policy for samplecc/CreateContract specifies that any member of Org2 alone will be able to invoke the chaincode where in any member of Org1 is also able to invoke it. Anyone please help me rectify this. Organizations: # SampleOrg defines an MSP using the sampleconfig. It should never be used # in production but may be used as a template for other definitions - &OrdererOrg # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: OrdererMSP # ID to load the MSP definition as ID: OrdererMSP # MSPDir is the filesystem path which contains the MSP configuration MSPDir: crypto-config/ordererOrganizations/sample.com/msp - &Org1 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org1MSP # ID to load the MSP definition as ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.sample.com/msp AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.sample.com Port: 7051 - &Org2 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org2MSP # ID to load the MSP definition as ID: Org2MSP MSPDir: crypto-config/peerOrganizations/org2.sample.com/msp AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org2.sample.com Port: 7051 # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: &Org2Policies Readers: Type: Signature Rule: “OR('Org2.member')” # If your MSP is configured with the new NodeOUs, you might # want to use a more specific rule like the following: # Rule: "OR('SampleOrg.admin', 'SampleOrg.peer', 'SampleOrg.client')" Writers: Type: Signature Rule: “OR('Org2.member')” # If your MSP is configured with the new NodeOUs, you might # want to use a more specific rule like the following: # Rule: "OR('SampleOrg.admin', 'SampleOrg.client')" ################################################################################ # # SECTION: Application # # - This section defines the values to encode into a config transaction or # genesis block for application related parameters # ################################################################################ Application: &ApplicationDefaults ACLs: &ACLsDefault # This section provides defaults for policies for various resources # in the system. These "resources" could be functions on system chaincodes # (e.g., "GetBlockByNumber" on the "qscc" system chaincode) or other resources # (e.g.,who can receive Block events). This section does NOT specify the resource's # definition or API, but just the ACL policy for it. # # User's can override these defaults with their own policy mapping by defining the # mapping under ACLs in their channel definition # ACL policy for invoking createContract samplecc/CreateContract: /Channel/Application/Org2/Writers

jouzads (Thu, 04 Oct 2018 08:21:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fMyakzfJaXKGA5D7z) @knagware9 to use prior images you just do : docker pull hyperledger/fabric-couchdb:amd64-0.4.10 docker tag hyperledger/fabric-couchdb:amd64-0.4.10 hyperledger/fabric-couchdb:latest ?

knagware9 (Thu, 04 Oct 2018 08:27:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QoL4NBy7sfL7uoguF) @jouzads yes,,,

khetesh (Thu, 04 Oct 2018 10:00:28 GMT):
Has joined the channel.

khetesh (Thu, 04 Oct 2018 10:01:59 GMT):
Hello guys..... I am running my first network in my local machine . So i am facing error while bringing up ./byfn up Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

khetesh (Thu, 04 Oct 2018 10:02:09 GMT):
please help me out for thi9s

khetesh (Thu, 04 Oct 2018 10:02:09 GMT):
please help me out for this

SachinKalamkar (Thu, 04 Oct 2018 10:03:55 GMT):
Has joined the channel.

SachinKalamkar (Thu, 04 Oct 2018 10:05:22 GMT):
In the fabric-sample folder i am trying to run following command curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.1 I am not getting any error but it is not downloading any binaries Please help me to solve this

tahaf10 (Thu, 04 Oct 2018 10:16:53 GMT):
I have developed and implemented chaincode for my logic on Fabric. Any tips on how to expose this logic now in the form of APis?

anand.balagopalan (Thu, 04 Oct 2018 10:32:41 GMT):
Has joined the channel.

anand.balagopalan (Thu, 04 Oct 2018 10:33:08 GMT):
I have a Multichannel network...How can i see multiple channels in fabric explorer?

venkat12 (Thu, 04 Oct 2018 10:47:58 GMT):
I have installed and instantiated chaincode. while doing so, i can see my ledger in this path docker_data/peer/production/chaincodes/ledg.v1 -- can anyone confirm that whether this is my source file and is it readable?

venkat12 (Thu, 04 Oct 2018 10:47:58 GMT):
I have installed and instantiated chaincode. while doing so, i can see my ledger in this path var/hyperledger/production/chaincodes/ledg.v1 -- can anyone confirm that whether this is my source file and is it readable?

Nihcep (Thu, 04 Oct 2018 10:49:10 GMT):
Has joined the channel.

manoj485 (Thu, 04 Oct 2018 11:14:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HBCXDs5cXFpm6P6Hv) @tahaf10 use nodejs (nodejs -> invokejs-> chaincode)

npc0405 (Thu, 04 Oct 2018 11:43:30 GMT):
Suppose private collection contains 3 orgs and which can see private data and while invoke if I mention only org1 peer then org2 and org3 should also be able to view that data right? But I am not able to see...it it throws permission error

npc0405 (Thu, 04 Oct 2018 11:44:08 GMT):
I m hitting invoke thru node api

dave.enyeart (Thu, 04 Oct 2018 11:48:27 GMT):
what error do you see, in which component?

khetesh (Thu, 04 Oct 2018 12:09:27 GMT):
hey @dave.enyeart pls ans my concern

khetesh (Thu, 04 Oct 2018 12:10:12 GMT):
.. I am running my first network in my local machine . So i am facing error while bringing up ./byfn up Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== please help me out for this

anand.balagopalan (Thu, 04 Oct 2018 12:12:23 GMT):
try running ./byfn down

anand.balagopalan (Thu, 04 Oct 2018 12:12:33 GMT):
then try ./byfn up again

anand.balagopalan (Thu, 04 Oct 2018 12:12:39 GMT):
it should work

khetesh (Thu, 04 Oct 2018 12:15:29 GMT):
tried

khetesh (Thu, 04 Oct 2018 12:15:40 GMT):
still its showing same thing

khetesh (Thu, 04 Oct 2018 12:17:50 GMT):
now its throwing Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

anand.balagopalan (Thu, 04 Oct 2018 12:21:24 GMT):
are u running your custom configuration or running fabric-sample?

khetesh (Thu, 04 Oct 2018 12:23:18 GMT):
fabric-sample only

bairathirahul (Thu, 04 Oct 2018 12:39:32 GMT):
@khetesh see if the orderer container is terminated. If it is then check the orderer container logs for the reason of termination.

khetesh (Thu, 04 Oct 2018 12:41:35 GMT):
how to check logs

khetesh (Thu, 04 Oct 2018 12:41:37 GMT):
?

bairathirahul (Thu, 04 Oct 2018 12:43:08 GMT):
docker logs -t container_name

anand.balagopalan (Thu, 04 Oct 2018 12:44:00 GMT):
any of u guys using hyperledger explorer?

bairathirahul (Thu, 04 Oct 2018 12:44:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HBCXDs5cXFpm6P6Hv) @tahaf10 Look for the Hyperledger Fabric SDK

khetesh (Thu, 04 Oct 2018 12:50:05 GMT):

This is the error logs

khetesh (Thu, 04 Oct 2018 12:50:25 GMT):
i am not understanding this logs

khetesh (Thu, 04 Oct 2018 12:50:51 GMT):
please help me to catch the error

bairathirahul (Thu, 04 Oct 2018 12:51:02 GMT):
You need to look at the tail. Termination reason is at the end.

khetesh (Thu, 04 Oct 2018 12:51:40 GMT):
2018-10-04T12:47:07.891054863Z /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

khetesh (Thu, 04 Oct 2018 12:51:47 GMT):
this is the last log

bairathirahul (Thu, 04 Oct 2018 12:53:31 GMT):
Thats a part of the error trace. I mean check last lets say 25 lines

khetesh (Thu, 04 Oct 2018 12:53:49 GMT):
i have to have some configuration in gopath?

khetesh (Thu, 04 Oct 2018 12:53:49 GMT):
i have to have any configuration in gopath?

bairathirahul (Thu, 04 Oct 2018 12:55:19 GMT):
Okay try upgrading your fabric images to v1.3-rc1

khetesh (Thu, 04 Oct 2018 12:55:22 GMT):
bro there is nothing like line number

khetesh (Thu, 04 Oct 2018 12:55:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=azzfSZFLZw3qWT52g) @bairathirahul how to upgrade

ColeBoudreau (Thu, 04 Oct 2018 12:56:59 GMT):
Where are the transaction logs actually stored? Are they in a container? Or just mapped to a volume somewhere on the device?

khetesh (Thu, 04 Oct 2018 12:57:42 GMT):
i am very new to hyperledger @bairathirahul please guide me little bit to resolve this issue

bairathirahul (Thu, 04 Oct 2018 12:59:54 GMT):
@khetesh share a screenshot of the end of the logs

bairathirahul (Thu, 04 Oct 2018 13:02:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=upDbcRuALHzFc5yat) @khetesh Look at this page https://hyperledger-fabric.readthedocs.io/en/latest/install.html

khetesh (Thu, 04 Oct 2018 13:13:49 GMT):
Now it says bad request Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

khetesh (Thu, 04 Oct 2018 13:17:47 GMT):

this is error last line error logds of fabric image 1.2.1

khetesh (Thu, 04 Oct 2018 13:17:47 GMT):

this is error last line error logds of fabric image 1.2.1

khetesh (Thu, 04 Oct 2018 13:17:47 GMT):

this is error last line error logds of fabric image 1.2.1

bairathirahul (Thu, 04 Oct 2018 14:33:06 GMT):
@khetesh So you can see the error is "Channel capability V1_3 is required but not supported". You just have to update your fabric images.

bairathirahul (Thu, 04 Oct 2018 14:56:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xB6WrvpcvmkWQGzvv) @ColeBoudreau Do you mean container logs or the transactions? Container logs are stored in your host system. Transactions are stored in underlying DB (LevelDB or CouchDB)

ColeBoudreau (Thu, 04 Oct 2018 14:59:33 GMT):
@bairathirahul No not the world state database, but the actual transaction logs. Like the physical chain of hashed blocks?

khetesh (Thu, 04 Oct 2018 15:03:26 GMT):
After upgrading fabcar images it throws below error Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

npc0405 (Thu, 04 Oct 2018 15:06:29 GMT):
@dave.enyeart It gives error when org is not allowed to see private data

npc0405 (Thu, 04 Oct 2018 15:08:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rMzJ5nchQvL7gsKfy) @dave.enyeart It doesnt allow to see private data.. It throws error when org is not allowed to see private data

atirekg (Thu, 04 Oct 2018 16:00:28 GMT):
Hello guys, I have a question in PutState we need to give `key`, is there anyway I can create valid key dynamically It is confusing to ask for key every-time everywhere

npc0405 (Thu, 04 Oct 2018 16:17:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aPkjStcStp5x3NEhF) now has Error: GET_STATE failed: transaction ID: b5fea9f71295bf5af48d351cf482c6258dd4e565c1643bb101b1b31f943ea077: Private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0xa, TxNum:0x0}, Private data version = (*version.Height)(nil) after the move

dave.enyeart (Thu, 04 Oct 2018 18:12:36 GMT):
that usually indicates either gossip is not configured correctly, or collection configuration is not correct. follow the tutorial which demonstrates both of these aspects: https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

nsabharwal (Thu, 04 Oct 2018 20:53:52 GMT):
Has joined the channel.

angelsuarez (Thu, 04 Oct 2018 21:06:36 GMT):
Has joined the channel.

vdods (Thu, 04 Oct 2018 22:51:21 GMT):
Hi all, I've started encountering an error today in a chaincode transaction which is leaving me without much to go on. There was no apparent cause, and I've tried restarting my peer, deleting the corresponding cc docker container, and installing/instantiating a fresh version of the chaincode. The error is ``` error was: : [simple-c] channel exists /chaincode/input/src/github.com/LedgerDomain/docuseal-chaincode/pkg/cctk/table.go:108 github.com/LedgerDomain/docuseal-chaincode/pkg/cctk.GetTableRows.func1 in call to state_query_iterator.Next() ``` and the Fabric code that's producing it is in core/chaincode/shim/handler.go ``` func (handler *Handler) createChannel(channelID, txid string) (chan pb.ChaincodeMessage, error) { handler.Lock() defer handler.Unlock() if handler.responseChannel == nil { return nil, errors.Errorf("[%s] cannot create response channel", shorttxid(txid)) } txCtxID := handler.getTxCtxId(channelID, txid) if handler.responseChannel[txCtxID] != nil { return nil, errors.Errorf("[%s] channel exists", shorttxid(txCtxID)) } c := make(chan pb.ChaincodeMessage) handler.responseChannel[txCtxID] = c return c, nil } ```

vdods (Thu, 04 Oct 2018 22:52:37 GMT):
The only thing I can think of that could have catalyzed this is my attempt to instantiate the chaincode with an additional private collection (1 more private collection than the first chaincode instantiation, in which there was only a single private collection)

vdods (Thu, 04 Oct 2018 22:53:12 GMT):
In the attempt where I tried instantiating chaincode with specifying the additional private collection, the new private collection did not appear (which is another problem I'm trying to solve)

vdods (Thu, 04 Oct 2018 22:53:12 GMT):
In the attempt where I tried instantiating chaincode with specifying the additional private collection, the new private collection did not appear (which is another problem I'm rather stuck on)

vdods (Thu, 04 Oct 2018 22:54:10 GMT):
i'm just running against a test blockchain right now, so i may nuke it and start over, just to see if that works around the problem

bairathirahul (Fri, 05 Oct 2018 01:39:21 GMT):
Is there any way to copy private data from one collection to another? For e.g. consider a case when you have private data and you are selling it to someone, so it goes into their collection.

bairathirahul (Fri, 05 Oct 2018 01:43:37 GMT):
The documentation says: "Collection members may decide to share the private data with other parties if they get into a dispute or if they want to transfer the asset to a third party. The third party can then compute the hash of the private data and see if it matches the state on the channel ledger, proving that the state existed between the collection members at a certain point in time." However, I can't seem to find an API to do it.

vc_dataiq (Fri, 05 Oct 2018 03:14:45 GMT):
Hello all, my name is Vishesh and I am a software engineer at LeadIQ. We are using hyperledger fabric to solve one of our problems but are running into a runtime error when we try to bulk insert. #### Context: Each transaction inserts 1000 records using `PutState` in a loop for all those records (blind insert, nothing in the readset). We have also increased BatchTimeout to 3s and MaxMessageCount to 100, so that we get larger blocks (we see 4 transactions per block so 4000 records being inserted into ledger with every block). The runtime error log that we get (after 2-4 million or so records have been inserted) is as below: ``` October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc4222db8c0, 0xc451e4f470, 0xc4312ddd40, 0xdf8475800) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc4220c5a00) October 5th 2018, 04:36:38.646 goroutine 283 [running]: October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:105 +0x6b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:236 +0xc3b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771 +0x6c October 5th 2018, 04:36:38.646 October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc421fb1860, 0xc451e4f470, 0x0, 0x0) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc422286e60, 0xc42462cd80, 0x0, 0x0, 0x0, 0xc4312dde78, 0x7329db) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc4220c5a00, 0xc42462cd80, 0x0, 0x0, 0x0, 0x0, 0x0) October 5th 2018, 04:36:38.646 panic: Error during commit to txmgr:net/http: request canceled (Client.Timeout exceeded while reading body) October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:273 +0x870 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558 +0x3c5 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x681 October 5th 2018, 04:36:38.646 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider October 5th 2018, 04:36:03.645 2018-10-04 20:36:00.783 UTC [kvledger] CommitWithPvtData -> INFO 466e Channel [mychannel]: Committed block [1719] with 4 transaction(s) October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.807 UTC [statecouchdb] commitUpdates -> WARN 465c CouchDB batch document update encountered an problem. Retrying update for document ID:32216027-da66-4ecd-91a1-a37bdf47f07d October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.866 UTC [statecouchdb] commitUpdates -> WARN 4663 CouchDB batch document update encountered an problem. Retrying update for document ID:6eaed2ae-e5c4-48b1-b063-20eb3009969b October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.870 UTC [statecouchdb] commitUpdates -> WARN 4664 CouchDB batch document update encountered an problem. Retrying update for document ID:2ca2fbcc-e78f-4ed0-be70-2c4d7ecbee69 October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.904 UTC [statecouchdb] commitUpdates -> WARN 4667 CouchDB batch document update encountered an problem. ... and so on ``` #### What we've tried/found In response to `net/http: request canceled (Client.Timeout exceeded while reading body)` from the logs above: We have already tried setting the following environment variable in the peer container: `CORE_CHAINCODE_EXECUTETIMEOUT=120s` And also `req.setProposalWaitTime(120 * 1000)` when using the java sdk. But then, we just get the error at a later point. Also found this : https://jira.hyperledger.org/browse/FAB-10558 , but it says it was already fixed in v1.2.0, which is the version we are using. Can anyone help with what we might be doing wrong?

vc_dataiq (Fri, 05 Oct 2018 03:14:45 GMT):
Hello all, my name is Vishesh and I am a software engineer at LeadIQ. We are using hyperledger fabric to solve one of our problems but are running into a runtime error when we try to bulk insert. #### Context: Each transaction inserts 1000 records using `PutState` in a loop for all those records (blind insert, nothing in the readset). We have also increased BatchTimeout to 3s and MaxMessageCount to 100, so that we get larger blocks (we see 4 transactions per block so 4000 records being inserted into ledger with every block). The runtime error log that we get (after 2-4 million or so records have been inserted) is as below: ``` October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc4222db8c0, 0xc451e4f470, 0xc4312ddd40, 0xdf8475800) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc4220c5a00) October 5th 2018, 04:36:38.646 goroutine 283 [running]: October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:105 +0x6b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:236 +0xc3b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771 +0x6c October 5th 2018, 04:36:38.646 October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc421fb1860, 0xc451e4f470, 0x0, 0x0) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc422286e60, 0xc42462cd80, 0x0, 0x0, 0x0, 0xc4312dde78, 0x7329db) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc4220c5a00, 0xc42462cd80, 0x0, 0x0, 0x0, 0x0, 0x0) October 5th 2018, 04:36:38.646 panic: Error during commit to txmgr:net/http: request canceled (Client.Timeout exceeded while reading body) October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:273 +0x870 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558 +0x3c5 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x681 October 5th 2018, 04:36:38.646 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider October 5th 2018, 04:36:03.645 2018-10-04 20:36:00.783 UTC [kvledger] CommitWithPvtData -> INFO 466e Channel [mychannel]: Committed block [1719] with 4 transaction(s) October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.807 UTC [statecouchdb] commitUpdates -> WARN 465c CouchDB batch document update encountered an problem. Retrying update for document ID:32216027-da66-4ecd-91a1-a37bdf47f07d October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.866 UTC [statecouchdb] commitUpdates -> WARN 4663 CouchDB batch document update encountered an problem. Retrying update for document ID:6eaed2ae-e5c4-48b1-b063-20eb3009969b October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.870 UTC [statecouchdb] commitUpdates -> WARN 4664 CouchDB batch document update encountered an problem. Retrying update for document ID:2ca2fbcc-e78f-4ed0-be70-2c4d7ecbee69 October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.904 UTC [statecouchdb] commitUpdates -> WARN 4667 CouchDB batch document update encountered an problem. ... and so on ``` #### What we've tried/found In response to `net/http: request canceled (Client.Timeout exceeded while reading body)` from the logs above: We have already tried setting the following environment variable in the peer container: `CORE_CHAINCODE_EXECUTETIMEOUT=120s` And also `req.setProposalWaitTime(120 * 1000)` when using the java sdk. But then, we just get the error at a later point. Also found this : https://jira.hyperledger.org/browse/FAB-10558 , but it says it was already fixed in v1.2.0, which is the version we are using. Can anyone help with what we might be doing wrong?

vc_dataiq (Fri, 05 Oct 2018 03:14:45 GMT):
Hello all, my name is Vishesh and I am a software engineer at LeadIQ. We are using hyperledger fabric to solve one of our problems but are running into a runtime error when we try to bulk insert. #### Context: Each transaction inserts 1000 records using `PutState` in a loop for all those records (blind insert, nothing in the readset). We have also increased BatchTimeout to 3s and MaxMessageCount to 100, so that we get larger blocks (we see 4 transactions per block so 4000 records being inserted into ledger with every block). The runtime error log that we get (after 2-4 million or so records have been inserted) is as below: ``` October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc4222db8c0, 0xc451e4f470, 0xc4312ddd40, 0xdf8475800) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc4220c5a00) October 5th 2018, 04:36:38.646 goroutine 283 [running]: October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:105 +0x6b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:236 +0xc3b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771 +0x6c October 5th 2018, 04:36:38.646 October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc421fb1860, 0xc451e4f470, 0x0, 0x0) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc422286e60, 0xc42462cd80, 0x0, 0x0, 0x0, 0xc4312dde78, 0x7329db) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc4220c5a00, 0xc42462cd80, 0x0, 0x0, 0x0, 0x0, 0x0) October 5th 2018, 04:36:38.646 panic: Error during commit to txmgr:net/http: request canceled (Client.Timeout exceeded while reading body) October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:273 +0x870 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558 +0x3c5 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x681 October 5th 2018, 04:36:38.646 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider October 5th 2018, 04:36:03.645 2018-10-04 20:36:00.783 UTC [kvledger] CommitWithPvtData -> INFO 466e Channel [mychannel]: Committed block [1719] with 4 transaction(s) October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.807 UTC [statecouchdb] commitUpdates -> WARN 465c CouchDB batch document update encountered an problem. Retrying update for document ID:32216027-da66-4ecd-91a1-a37bdf47f07d October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.866 UTC [statecouchdb] commitUpdates -> WARN 4663 CouchDB batch document update encountered an problem. Retrying update for document ID:6eaed2ae-e5c4-48b1-b063-20eb3009969b October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.870 UTC [statecouchdb] commitUpdates -> WARN 4664 CouchDB batch document update encountered an problem. Retrying update for document ID:2ca2fbcc-e78f-4ed0-be70-2c4d7ecbee69 October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.904 UTC [statecouchdb] commitUpdates -> WARN 4667 CouchDB batch document update encountered an problem. ... and so on ``` #### What we've tried/found In response to `net/http: request canceled (Client.Timeout exceeded while reading body)` from the logs above: We have already tried setting the following environment variable in the peer container: `CORE_CHAINCODE_EXECUTETIMEOUT=120s` And also `req.setProposalWaitTime(120 * 1000)` when using the java sdk. But then, we just get the error at a later point. Also found this : https://jira.hyperledger.org/browse/FAB-10558 , but it says it was already fixed in v1.2.0, which is the version we are using. Can anyone help with what we might be doing wrong?

vc_dataiq (Fri, 05 Oct 2018 03:14:45 GMT):
Hello all, my name is Vishesh and I am a software engineer at LeadIQ. We are using hyperledger fabric to solve one of our problems but are running into a runtime error when we try to bulk insert. #### Context: Each transaction inserts 1000 records using `PutState` in a loop for all those records (blind insert, nothing in the readset). We have also increased BatchTimeout to 3s and MaxMessageCount to 100, so that we get larger blocks (we see an average of 4 transactions per block which means 4000 records being inserted into ledger with every block). The runtime error log that we get (after 2-4 million or so records have been inserted) is as below: ``` October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc4222db8c0, 0xc451e4f470, 0xc4312ddd40, 0xdf8475800) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc4220c5a00) October 5th 2018, 04:36:38.646 goroutine 283 [running]: October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:105 +0x6b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:236 +0xc3b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771 +0x6c October 5th 2018, 04:36:38.646 October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc421fb1860, 0xc451e4f470, 0x0, 0x0) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc422286e60, 0xc42462cd80, 0x0, 0x0, 0x0, 0xc4312dde78, 0x7329db) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc4220c5a00, 0xc42462cd80, 0x0, 0x0, 0x0, 0x0, 0x0) October 5th 2018, 04:36:38.646 panic: Error during commit to txmgr:net/http: request canceled (Client.Timeout exceeded while reading body) October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:273 +0x870 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558 +0x3c5 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x681 October 5th 2018, 04:36:38.646 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider October 5th 2018, 04:36:03.645 2018-10-04 20:36:00.783 UTC [kvledger] CommitWithPvtData -> INFO 466e Channel [mychannel]: Committed block [1719] with 4 transaction(s) October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.807 UTC [statecouchdb] commitUpdates -> WARN 465c CouchDB batch document update encountered an problem. Retrying update for document ID:32216027-da66-4ecd-91a1-a37bdf47f07d October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.866 UTC [statecouchdb] commitUpdates -> WARN 4663 CouchDB batch document update encountered an problem. Retrying update for document ID:6eaed2ae-e5c4-48b1-b063-20eb3009969b October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.870 UTC [statecouchdb] commitUpdates -> WARN 4664 CouchDB batch document update encountered an problem. Retrying update for document ID:2ca2fbcc-e78f-4ed0-be70-2c4d7ecbee69 October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.904 UTC [statecouchdb] commitUpdates -> WARN 4667 CouchDB batch document update encountered an problem. ... and so on ``` #### What we've tried/found In response to `net/http: request canceled (Client.Timeout exceeded while reading body)` from the logs above: We have already tried setting the following environment variable in the peer container: `CORE_CHAINCODE_EXECUTETIMEOUT=120s` And also `req.setProposalWaitTime(120 * 1000)` when using the java sdk. But then, we just get the error at a later point. Also found this : https://jira.hyperledger.org/browse/FAB-10558 , but it says it was already fixed in v1.2.0, which is the version we are using. Can anyone help with what we might be doing wrong?

vc_dataiq (Fri, 05 Oct 2018 03:14:45 GMT):
Hello all, my name is Vishesh and I am a software engineer at LeadIQ. We are using hyperledger fabric to solve one of our problems but are running into a runtime error when we try to bulk insert. #### Context: Each transaction inserts 1000 records using `PutState` in a loop for all those records (blind insert, nothing in the readset). We have also increased BatchTimeout to 3s and MaxMessageCount to 100, so that we get larger blocks (we see an average of 4 transactions per block which means 4000 records being inserted into ledger with every block). The runtime error log that we get (after 2-4 million or so records have been inserted) is as below: ``` October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc4222db8c0, 0xc451e4f470, 0xc4312ddd40, 0xdf8475800) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc4220c5a00) October 5th 2018, 04:36:38.646 goroutine 283 [running]: October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:105 +0x6b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:236 +0xc3b October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:771 +0x6c October 5th 2018, 04:36:38.646 October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc421fb1860, 0xc451e4f470, 0x0, 0x0) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc422286e60, 0xc42462cd80, 0x0, 0x0, 0x0, 0xc4312dde78, 0x7329db) October 5th 2018, 04:36:38.646 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc4220c5a00, 0xc42462cd80, 0x0, 0x0, 0x0, 0x0, 0x0) October 5th 2018, 04:36:38.646 panic: Error during commit to txmgr:net/http: request canceled (Client.Timeout exceeded while reading body) October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:273 +0x870 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:558 +0x3c5 October 5th 2018, 04:36:38.646 /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:239 +0x681 October 5th 2018, 04:36:38.646 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider October 5th 2018, 04:36:03.645 2018-10-04 20:36:00.783 UTC [kvledger] CommitWithPvtData -> INFO 466e Channel [mychannel]: Committed block [1719] with 4 transaction(s) October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.807 UTC [statecouchdb] commitUpdates -> WARN 465c CouchDB batch document update encountered an problem. Retrying update for document ID:32216027-da66-4ecd-91a1-a37bdf47f07d October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.866 UTC [statecouchdb] commitUpdates -> WARN 4663 CouchDB batch document update encountered an problem. Retrying update for document ID:6eaed2ae-e5c4-48b1-b063-20eb3009969b October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.870 UTC [statecouchdb] commitUpdates -> WARN 4664 CouchDB batch document update encountered an problem. Retrying update for document ID:2ca2fbcc-e78f-4ed0-be70-2c4d7ecbee69 October 5th 2018, 04:35:56.644 2018-10-04 20:35:55.904 UTC [statecouchdb] commitUpdates -> WARN 4667 CouchDB batch document update encountered an problem. ... and so on ``` Before this huge list of couch db retrying log, there is: ``` [couchdb] handleRequest -> WARN 1e8c Retrying couchdb request in 125ms. Attempt:1 Error:Post http://couchdb0:5984/mychannel_dataiqcc/_bulk_docs: net/http: request canceled (Client.Timeout exceeded while awaiting headers) ``` #### What we've tried/found In response to `net/http: request canceled (Client.Timeout exceeded while reading body)` from the logs above: We have already tried setting the following environment variable in the peer container: `CORE_CHAINCODE_EXECUTETIMEOUT=120s` And also `req.setProposalWaitTime(120 * 1000)` when using the java sdk. But then, we just get the error at a later point. Also found this : https://jira.hyperledger.org/browse/FAB-10558 , but it says it was already fixed in v1.2.0, which is the version we are using. Can anyone help with what we might be doing wrong?

vc_dataiq (Fri, 05 Oct 2018 03:37:01 GMT):
Another question that I have is can we and should we configure `warmIndexesAfterNBlocks: 1` to a much greater value for the initial insert ? (assuming that improves the import time) In our usecause we need to do a huge import initially (need to start with 100M records) and then there shouldn't be such big imports. So if this property can we updated after peer and couchdb have been started (change back to 1 so searches are fast), will that work?

cinnnn (Fri, 05 Oct 2018 03:54:51 GMT):
Has joined the channel.

Tony (Fri, 05 Oct 2018 05:23:05 GMT):
Hi,

Tony (Fri, 05 Oct 2018 05:23:05 GMT):
Hi, we are getting access denied issue while instantiating the chaincode on the peers of organisations who are part of common channel, we are doing this using node sdk in multiple vm using docker swarm.

Tony (Fri, 05 Oct 2018 05:23:05 GMT):
Hi, we are getting access denied issue while instantiating the chaincode on the peers of organisations who are part of common channel, we are doing this using node sdk in multiple vm using docker swarm.

Tony (Fri, 05 Oct 2018 05:23:05 GMT):
Hi, we are getting access denied issue while instantiating the chaincode on the peers of organisations who are part of common channel, we are doing this using node sdk in multiple vm using docker swarm. Attached screenshot of the error

Tony (Fri, 05 Oct 2018 05:34:43 GMT):

IMG_20181004_210117.jpg

khetesh (Fri, 05 Oct 2018 05:35:18 GMT):
After upgrading fabcar images for running first network it throws below error Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

knagware9 (Fri, 05 Oct 2018 05:47:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QoL4NBy7sfL7uoguF) @jouzads @dave.enyeart Update on FAB-12023: I tried to setup using couch db 0.4.12 images on ubuntu 18.04 LTS and not getting any issue .Tried BYFN end to end test too...seems issue with only Ubuntu 16.04 @harsha @jouzads

Quiark (Fri, 05 Oct 2018 06:03:02 GMT):
hi, could you point me to an example of doing a coin / asset on Fabric? What would be the best practices?

anand.balagopalan (Fri, 05 Oct 2018 06:32:58 GMT):
im planning to use hyperledger composer on a multi channel network. If each channel is independent, is it possible to use composer by deffining different connection profiles?

NishadTat (Fri, 05 Oct 2018 07:15:21 GMT):
How to create hyperledger fabric single organization without using composer???

anand.balagopalan (Fri, 05 Oct 2018 07:29:01 GMT):
Check fabric samples/basic-network

khetesh (Fri, 05 Oct 2018 08:34:15 GMT):
What is chaincode container in Hyperledger Fabric?

nicezic (Fri, 05 Oct 2018 08:58:02 GMT):
Has joined the channel.

Nihcep (Fri, 05 Oct 2018 09:05:36 GMT):
@khetesh What do you mean by "chaincode container" ?

vc_dataiq (Fri, 05 Oct 2018 09:34:52 GMT):
> Before this huge list of couch db retrying log, there is: >[couchdb] handleRequest -> WARN 1e8c Retrying couchdb request in 125ms. Attempt:1 Error:Post http://couchdb0:5984/mychannel_dataiqcc/_bulk_docs: net/http: request canceled >(Client.Timeout exceeded while awaiting headers) So, now trying with `CORE_LEDGER_STATE_COUCHDBCONFIG_REQUESTTIMEOUT=120s`

khetesh (Fri, 05 Oct 2018 11:56:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ydr6b3NQTpZ9Auejs) @Nihcep actually i was reading read the docs in which they have metioned that. smart contracts are hosted in the network and identified by name and version. For example, our chaincode container is titled - dev-peer0.org1.example.com-fabcar-1.0 - where the name is fabcar, the version is 1.0, and the peer it is running against is dev-peer0.org1.example.com. So why different container for these chaincode why not inside peer0 container?

Nihcep (Fri, 05 Oct 2018 12:03:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gHjaLz8YFfcEQZbwp) @khetesh @khetesh The container ensure isolation of the smart contract's execution from the peer itself, so that a chaincode cannot crash or even access the peer because of an error or malicious code

khetesh (Fri, 05 Oct 2018 12:05:01 GMT):
and one mode thing why docker image cannot communicate with each other does any body have any idea?

khetesh (Fri, 05 Oct 2018 12:06:22 GMT):
without docker swarm

Nihcep (Fri, 05 Oct 2018 12:07:57 GMT):
Docker swarm is useful for multi-host configuration

Nihcep (Fri, 05 Oct 2018 12:08:19 GMT):
For a single host installation, you use docker compose

Nihcep (Fri, 05 Oct 2018 12:09:08 GMT):
And container communicate with each other

khetesh (Fri, 05 Oct 2018 12:23:45 GMT):
yes so i am using docker swarm but when i try to create ca server by running this command below: docker run --rm -it --network="my-net" --name ca.example.com -p 7054:7054 -e FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server -e FABRIC_CA_SERVER_CA_NAME=ca.example.com -e FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem -e FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/{put the name of secret key} -v $(pwd)/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyp-net hyperledger/fabric-ca sh -c 'fabric-ca-server start -b admin:adminpw -d'

khetesh (Fri, 05 Oct 2018 12:23:59 GMT):

Screenshot from 2018-10-05 17-51-37.png

khetesh (Fri, 05 Oct 2018 12:24:16 GMT):
please help me if anybody aware of it

khetesh (Fri, 05 Oct 2018 12:24:29 GMT):
much needed help

Nihcep (Fri, 05 Oct 2018 12:28:22 GMT):
It is a problem from docker

Nihcep (Fri, 05 Oct 2018 12:28:33 GMT):
Can you please paste the result of "pwd" command ?

khetesh (Fri, 05 Oct 2018 12:30:14 GMT):
from where where will i get this pwd result

khetesh (Fri, 05 Oct 2018 12:30:16 GMT):
?

Nihcep (Fri, 05 Oct 2018 12:30:50 GMT):
Just type pwd on your terminal

khetesh (Fri, 05 Oct 2018 12:35:24 GMT):

Screenshot from 2018-10-05 18-05-09.png

khetesh (Fri, 05 Oct 2018 12:36:52 GMT):
but my error is docker: invalid reference format: repository name must be lowercase.

khetesh (Fri, 05 Oct 2018 12:37:02 GMT):
@Nihcep

Nihcep (Fri, 05 Oct 2018 12:39:47 GMT):
Can you copy paste exactly the command you typed ?

khetesh (Fri, 05 Oct 2018 12:46:43 GMT):
docker run --rm -it --network="my-net" --name ca.example.com -p 7054:7054 -e FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server -e FABRIC_CA_SERVER_CA_NAME=ca.example.com -e FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem -e FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/{put the name of secret key} -v $(pwd)/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyp-net hyperledger/fabric-ca sh -c 'fabric-ca-server start -b admin:adminpw -d'

khetesh (Fri, 05 Oct 2018 12:47:01 GMT):
this is the exact command i am running this @Nihcep

khetesh (Fri, 05 Oct 2018 12:49:57 GMT):

Screenshot from 2018-10-05 18-19-38.png

khetesh (Fri, 05 Oct 2018 12:50:11 GMT):
now its saying that invalid certifiacte

khetesh (Fri, 05 Oct 2018 12:52:30 GMT):

Screenshot from 2018-10-05 18-21-55.png

khetesh (Fri, 05 Oct 2018 12:53:35 GMT):
?

Nihcep (Fri, 05 Oct 2018 12:53:39 GMT):
Secret key name is the one ending by _sk

khetesh (Fri, 05 Oct 2018 12:56:00 GMT):
thanks @Nihcep

khetesh (Fri, 05 Oct 2018 12:56:07 GMT):
now its running fine

Nihcep (Fri, 05 Oct 2018 12:58:09 GMT):
:wink:

Hana_Ch (Fri, 05 Oct 2018 13:20:23 GMT):
Hello , i am trying to post an entity using hyperledger fabric 1.2 and SDK 1.2 and grpc 1.10.0 .... while invoking my rest API i get this error , { "type": "http://www.jhipster.tech/problem/problem-with-message", "title": "Internal Server Error", "status": 500, "detail": "Request has been already submitted and can not be reused.", "path": "/api/documents", "message": "error.http.500" }

Hana_Ch (Fri, 05 Oct 2018 13:20:23 GMT):
Hello , i am trying to post an entity using hyperledger fabric 1.2 and SDK 1.2 and grpc 1.10.0 .... while invoking my rest API i get this error , { "type": "http://www.jhipster.tech/problem/problem-with-message", "title": "Internal Server Error", "status": 500, "detail": "Request has been already submitted and can not be reused.", "path": "/api/documents", "message": "error.http.500" }

Hana_Ch (Fri, 05 Oct 2018 13:20:23 GMT):
Hello , i am trying to post an entity using hyperledger fabric 1.2 and SDK 1.2 and grpc 1.10.0 .... while invoking my rest API i get this error , { "type": "http://www.jhipster.tech/problem/problem-with-message", "title": "Internal Server Error", "status": 500, "detail": "Request has been already submitted and can not be reused.", "path": "/api/documents", "message": "error.http.500" } Please does any body have an idea how to solve it .. and Thanks :) :)

Hana_Ch (Fri, 05 Oct 2018 13:25:21 GMT):
Hello , i am trying to post an entity using hyperledger fabric 1.2 and SDK 1.2 and grpc 1.10.0 .... while invoking my rest API i get this error , { "type": "http://www.jhipster.tech/problem/problem-with-message", "title": "Internal Server Error", "status": 500, "detail": "Request has been already submitted and can not be reused.", "path": "/api/documents", "message": "error.http.500" } Please does any body have an idea how to solve it .. and Thanks 🙂 🙂

Barry_CPF (Fri, 05 Oct 2018 13:56:59 GMT):
Has joined the channel.

nsabharwal (Fri, 05 Oct 2018 14:28:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qjozoAJJfM5KefKNv) @Hana_Ch Please see this https://github.com/hyperledger/fabric-sdk-java/blob/master/src/main/java/org/hyperledger/fabric/sdk/TransactionRequest.java Can you check the status or whats running? The link can give some idea on the code that being called

Hana_Ch (Fri, 05 Oct 2018 14:50:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jjsFGLgSnwrR9BbbR) @nsabharwal i have already saw that link you posted , and i know what code has been invoked while my poste request ... the problem is i am making a new post everytime .. so we can't get that error of an already submitted Request , there is no reason to invoke that error code i thing :) :)

rishikanth.s (Fri, 05 Oct 2018 16:55:26 GMT):
Has joined the channel.

rishikanth.s (Fri, 05 Oct 2018 16:55:34 GMT):
Hi Team. I have created a logger using this https://hyperledger-fabric.readthedocs.io/en/release-1.2/logging-control.html tutorial. But I cannot see my logger messges in the docker logs. I am looking at the right place or I need to look somewhere else.

HowellPan (Fri, 05 Oct 2018 17:03:25 GMT):
Has joined the channel.

HowellPan (Fri, 05 Oct 2018 17:10:15 GMT):
Hi, during hy channel.sendTransactionPropposal call, the proposal was endorsed but i always get a failed to receive block event within time period error, but nothing bad really happens, the tx is commited. I wonder what could happen there? the code looks like this...

HowellPan (Fri, 05 Oct 2018 17:10:22 GMT):
channel.sendTransactionProposal(request).then(function (results) { //logger.info("sendTransactionProposal") var request = common.check_proposal_res(results, options.endorsed_hook);//proposal was endorsed return channel.sendTransaction(request); }).then(function (response) { if (response.status === 'SUCCESS') { //tx was ordered //logger.debug('[fcw] Successfully ordered endorsement transaction.'); //TODO: do we really need below code? // Call optional order hook //if (options.ordered_hook) options.ordered_hook(null, request.txId.toString()); // ------- [A] Use Event for Tx Confirmation ------- // option A if (options.target_event_url) { // Watchdog for no block event watchdog = setTimeout(() => { logger.error('[fcw] Failed to receive block event within the timeout period'); eventHub.disconnect(); if (cb && !cbCalled) { cbCalled = true; return cb(null); //timeout pass it back } else return; }, g_options.block_delay + 5000); // ------- [B] Wait xxxx ms for Block ------- // option B } else { setTimeout(function () { //logger.info("setTimeout function called") if (cb) return cb(null); else return; }, g_options.block_delay + 1); } } // ordering failed, No good else { if (options.ordered_hook) options.ordered_hook('failed'); logger.error('[fcw] Failed to order the transaction. Error code: ', response); throw response; } }).catch(function (err) { logger.error('[fcw] Error in invoke catch block', typeof err, err); if (options.target_event_url) { //if using eventHub, disconnect eventHub.disconnect(); } var formatted = common.format_error_msg(err); if (options.ordered_hook) options.ordered_hook('failed', formatted); if (cb) return cb(formatted, null); else return; });

HowellPan (Fri, 05 Oct 2018 17:11:08 GMT):
It failed at watchdog = setTimeout part

VirendraSolanke (Fri, 05 Oct 2018 19:30:39 GMT):
Error: Error getting endorser client channel:endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

montana (Fri, 05 Oct 2018 20:15:36 GMT):
Does anyone know whether or not the system channel can be configured so that another Org (Org1) can update the MSP for another Org (Org2) within the system channel? Simple case, Org1 wants to add new Admincerts to Org2's MSP within the system channel.

khetesh (Sat, 06 Oct 2018 05:44:45 GMT):
hello guys , i am creating multihost hyperledger fabric network locally using docker swarm but at last when i run docker CLI which will run script file and generate channel that will connect all peer on that channel . Running this command for CLI container up: docker run --rm -it --network="my-net" --name cli --link orderer.example.com:orderer.example.com --link peer0.org1.example.com:peer0.org1.example.com --link peer1.org1.example.com:peer1.org1.example.com -p 12051:7051 -p 12053:7053 -e GOPATH=/opt/gopath -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_TLS_ENABLED=false -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e CORE_LOGGING_LEVEL=DEBUG -e CORE_PEER_ID=cli -e CORE_PEER_ADDRESS=peer0.org1.example.com:7051 -e CORE_PEER_NETWORKID=cli -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -v /var/run/:/host/var/run/ -v $(pwd)/chaincode/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go -v $(pwd)/crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ -v $(pwd)/scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ -v $(pwd)/channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-tools /bin/bash -c './scripts/script.sh' Its throwing me error sying that: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: invalid mod_policy for element [Policy] /Channel/Application/Writers: mod_policy not set

qiangqinqq (Sat, 06 Oct 2018 07:37:27 GMT):
Has joined the channel.

lanhray (Sat, 06 Oct 2018 21:41:10 GMT):
Hello Guys, I'm trying to install Hyperleder fabric on my local machine using the building your first network but i got this error:

lanhray (Sat, 06 Oct 2018 21:41:13 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

lanhray (Sat, 06 Oct 2018 21:41:54 GMT):
It seems the docker container was created for the orderer

lanhray (Sat, 06 Oct 2018 23:52:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JHp5rmKwuRM7B6sNn) @khetesh Hello @khetesh where you able to solve this issue?

bh4rtp (Sun, 07 Oct 2018 08:12:04 GMT):
hi, is there any tips to update fabric network from release-1.2 to release-1.3?

khetesh (Sun, 07 Oct 2018 10:14:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uuJyC3amMz9d2LpYr) @lanhray Yes but , I don't why it's saying that failed to connect with ordered. example. com:7050..... Linux foundation has already host this peers on cloud right?

khetesh (Sun, 07 Oct 2018 10:14:28 GMT):
@lanhray Yes but , I don't know why it's saying that failed to connect with ordered. example. com:7050..... Linux foundation has already host this peers on cloud right?

greg2git (Sun, 07 Oct 2018 14:09:22 GMT):
getting initializeGrpcServer -> CRIT 01e Failed to listen: listen tcp: lookup orderer on 127.0.0.11:53: no such host for this yaml config: services: myorderer: container_name: myorderer image: hyperledger/fabric-orderer environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=orderer - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=orderer.block - ORDERER_GENERAL_LOCALMSPID=DEFAULT - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp - GRPC_TRACE=all=true, - GRPC_VERBOSITY=info working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./msp:/etc/hyperledger/msp - ./orderer.block:/etc/hyperledger/fabric/orderer.block ports: - 7050:7050 - 7051:7051

akula (Sun, 07 Oct 2018 16:24:52 GMT):
@greg2git try to change this env this way: ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 You should provide a diferent IP for production

akula (Sun, 07 Oct 2018 16:27:08 GMT):
and make sure your ORDERER_GENERAL_LOCALMSPID really called DEFAULT

greg2git (Sun, 07 Oct 2018 19:33:32 GMT):
i think it does and orderer is launching up fine but i'm still getting this error for the client: orderer | 2018-10-07 19:24:30.403 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 123 Checking if identity satisfies ADMIN role for DEFAULT cli exited with code 1

nicezic (Mon, 08 Oct 2018 02:33:10 GMT):
in BYFN, I would like to create multi channel. createChannel() { setGlobals 0 1 if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then set -x peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx >&log.txt res=$? set +x else set -x peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA >&log.txt res=$? set +x fi cat log.txt verifyResult $res "Channel creation failed" echo "===================== Channel '$CHANNEL_NAME' created ===================== " echo } In this result, the file( ./channel-artifacts/channel.tx ) will be created. Then, I should do this function again( ex: mychannel2 as a ch-name. ). Will the result file whether over-write or append about my second channel?

vdods (Mon, 08 Oct 2018 04:52:17 GMT):
Hi all, I'm having a very strange issue with attempting to instantiate a chaincode with 2 private collections, call them A and B. What happens is that only B appears after the instantiation, even though the GRPC call contains both. The really odd part is that if I instantiate-upgrade with A and B switched in the request (so that A would have been the one to appear), I expect to at least see A and B both created, but I actually see only A -- it appears that B was destroyed somehow (which AFAIK should not be possible)

lanhray (Mon, 08 Oct 2018 05:11:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8b7833ad-bcc1-4629-b159-3581e06f6f8a) @khetesh I was able to fix it. I had to reinstall hyperldeger fabric but i make sure i remove the former docker container and docker images before reinstalling.

Nareshtej (Mon, 08 Oct 2018 05:22:41 GMT):
Has joined the channel.

SudeepS 2 (Mon, 08 Oct 2018 06:08:23 GMT):
Which is best to deploy fabric in production ? Docker swarm or kubernetes ?

SudeepS 2 (Mon, 08 Oct 2018 06:08:23 GMT):
Hi All ! Which is best to deploy fabric in production ? Docker swarm or kubernetes ?

SudeepS 2 (Mon, 08 Oct 2018 06:08:23 GMT):
Hi All ! Which is the best way to deploy fabric in production ? Docker swarm or kubernetes ?

vdods (Mon, 08 Oct 2018 07:08:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mM9LxXzqecHaeR983) Ok, I think I know the problem -- querying instantiated chaincodes is probably not meant to list the private collections associated with that chaincode. There is a bug in `core/scc/lscc/lscc.go` where an iterator is used to list all key-value pairs in the LSCC key/value store (probably assuming that all the entries are chaincodes, and that their values are proto.Marshal'ed `ccprovider.ChaincodeData`). However, the `putChaincodeCollectionData` writes a proto.Marshal'ed `common.CollectionConfigPackage` to that key/value store under the key `key := privdata.BuildCollectionKVSKey(cd.Name)`. Then when the chaincodes are queried, that entry pops up as a string that's mostly garbage, but does have one of the private collection names in it. It just happens to not completely fail while trying to proto.Unmarshal the wrong type (proto.Unmarshal'ing `ccprovider.ChaincodeData` on the key/value entry whose value is actually a proto.Marshal'ed `common.CollectionConfigPackage`).

vdods (Mon, 08 Oct 2018 07:22:49 GMT):
Oh.. apparently this was known, and fixed in 1.3, but not in 1.2. https://github.com/hyperledger/fabric/commit/8f0ca0d96c1af6a85c45f52465c73bde2cc8ef5f

Nihcep (Mon, 08 Oct 2018 07:53:02 GMT):
@SudeepS 2 You can use both, swarm is a good solution

Nihcep (Mon, 08 Oct 2018 07:53:02 GMT):
@SudeepS 2 You can use both, swarm is a good solution

Nihcep (Mon, 08 Oct 2018 07:53:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cDkMFXKkCmPeQddDH) @SudeepS 2 You can use both, swarm is a good solution.

khetesh (Mon, 08 Oct 2018 09:09:43 GMT):
how chain code getting deployed in first network?

khetesh (Mon, 08 Oct 2018 09:10:39 GMT):
because i have created first network and its up and running but i did not understand how it got deployed in network and it has been installed in every peer

Nihcep (Mon, 08 Oct 2018 09:12:56 GMT):
@khetesh https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html#install-instantiate-chaincode explain it

khetesh (Mon, 08 Oct 2018 09:23:08 GMT):
can we make chennels to communicate with each other?

khetesh (Mon, 08 Oct 2018 09:24:08 GMT):
like for making communication between org1 and org2 so we have to make channel between Anchor peer right?

ShefaliMittal (Mon, 08 Oct 2018 12:11:27 GMT):
Hi, Can anyone please tell me how do I paas an array of strings with other parameters via node sdk while calling chaincode and also retrieve that array in go chaincode.

GuillaumeCisco (Mon, 08 Oct 2018 12:12:15 GMT):
Hello there. From version 1.2, the peer binary works correctly with the `-r` and `-h` options (raw bytes and hexadecimal). I'd like to know how to interpret the results from a `peer query -r` raw bytes back to a json object (using python code if possible)

GuillaumeCisco (Mon, 08 Oct 2018 12:12:15 GMT):
Hello there. From version 1.2, the peer binary works correctly with the `-r` and `-x` options (raw bytes and hexadecimal). I'd like to know how to interpret the results from a `peer query -r` raw bytes back to a json object (using python code if possible)

GuillaumeCisco (Mon, 08 Oct 2018 12:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T7akgZJwLARGBDqeu) ok just found: ```python json.loads(bytes.fromhex(hex_value_from_query).decode('utf-8')) ```

GuillaumeCisco (Mon, 08 Oct 2018 12:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T7akgZJwLARGBDqeu) ok just found: ```python # from hex json.loads(bytes.fromhex(hex_value_from_query).decode('utf-8')) ``` or

GuillaumeCisco (Mon, 08 Oct 2018 12:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T7akgZJwLARGBDqeu) ok just found: ```python # from hex json.loads(bytes.fromhex(hex_value_from_query).decode('utf-8')) # from raw bytes bytes([int(x) for x in raw_value_value_from_query.replace('[', '').replace(']\n', '').split(' ')]) ```

GuillaumeCisco (Mon, 08 Oct 2018 12:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T7akgZJwLARGBDqeu) ok just found: ```python # from hex json.loads(bytes.fromhex(hex_value_from_query.replace('\n', '')).decode('utf-8')) # from raw bytes bytes([int(x) for x in raw_value_value_from_query.replace('[', '').replace(']\n', '').split(' ')]) ```

GuillaumeCisco (Mon, 08 Oct 2018 12:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T7akgZJwLARGBDqeu) ok just found: ```python # from hex json.loads(bytes.fromhex(hex_value_from_query.rstrip()).decode('utf-8')) # from raw bytes bytes([int(x) for x in raw_value_value_from_query.replace('[', '').replace(']\n', '').split(' ')]) ```

Nareshtej (Mon, 08 Oct 2018 12:29:16 GMT):
Please help me to solve this error when i am entering following command ./startFabric.sh Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

khetesh (Mon, 08 Oct 2018 12:34:07 GMT):
can any body give any reference or view for understanding non-determinstic chaincode?

atirekg (Mon, 08 Oct 2018 12:51:58 GMT):
hello guys, I want to check the application I am writing is tamper proof, any idea how can I do this?

VictorStroganov (Mon, 08 Oct 2018 13:12:07 GMT):
Hi all! Can enybody help me: in Euthereum we have method to recover public key from signature: https://github.com/ethereum/go-ethereum/blob/master/crypto/secp256k1/secp256.go#L93 Is it possible to get something like this in HLF chaincode?

emiliastk (Mon, 08 Oct 2018 13:24:56 GMT):
Hi! I was testing some peer commands in my setup v1.1. The command 'peer channel join' have gave me false positives (looks like success from command but errors in orderer logs I believe). This has happened a few times, for example when I call from the peer container (not tools) with incorrect certificates = success. I error later on 'peer chaincode query' or 'peer channel fetch' instead. I am therefore wondering exactly what the 'join' command does? Also what are the thoughts behind that I get different error messages with invalid signingcert for 'peer channel fetch' depending on if the channel exists or not (refused vs channel not found)? I skipped tls certs in test setup. Any of these details changed in 1.2 or 1.3? Thanks!

yacovm (Mon, 08 Oct 2018 13:27:53 GMT):
@emiliastk please open a JIRA

yacovm (Mon, 08 Oct 2018 13:28:01 GMT):
with reproduction guidelines

Dima (Mon, 08 Oct 2018 13:38:40 GMT):
Has joined the channel.

adamhardie (Mon, 08 Oct 2018 14:30:54 GMT):
Has joined the channel.

adamhardie (Mon, 08 Oct 2018 14:31:19 GMT):
we have randomly started getting this error in our hyperledger sdk when trying to commit a message unknown service protos.Deliver

adamhardie (Mon, 08 Oct 2018 14:31:54 GMT):
i saw on GitHub that this is discussed, but the eventual fix was to ensure latest docker image and dependancy (to 1.1.0)

adamhardie (Mon, 08 Oct 2018 14:32:28 GMT):
we have been using these versions, but after we tearDown and redeploy Hyperledger we are seeing this logged

adamhardie (Mon, 08 Oct 2018 14:41:07 GMT):
please ignore, after updating all images we are running as normal

gravity (Mon, 08 Oct 2018 15:14:06 GMT):
Hi all Who knows what this message means? `tmp-orderer-1 | 2018-10-08 15:08:42.386 UTC [orderer/consensus/kafka] processRegular -> WARN 23a3 [channel: testchannel] This orderer is running in compatibility mode` what is a compatibility mode for orderer?

khetesh (Mon, 08 Oct 2018 15:51:32 GMT):
Please give me difference between deterministic chaincode and non deterministic chaincode in hyperledger fabric?

vdods (Mon, 08 Oct 2018 17:15:54 GMT):
@khetesh A chaincode that uses the peer's local time will be nondeterministic, because it's not guaranteed to be the same for all peers or even for executing twice on the same peer.

vdods (Mon, 08 Oct 2018 17:18:23 GMT):
@khetesh A more subtle and realistic answer is traversing a golang map, as their key/value pairs are stored in non-deterministic order ( https://nathanleclaire.com/blog/2014/04/27/a-surprising-feature-of-golang-that-colored-me-impressed/ ) -- non-deterministic beyond that of the non-orderedness of hash tables, but rather the same hash table operations run in a second execution of the program will generally be different.

bairathirahul (Mon, 08 Oct 2018 17:32:05 GMT):
@khetesh Chaincode is a program that runs inside a docker container. During endorsement, it is is executed separately by every endorsing peer. Therefore, every peer maintains its own state of the chaincode. In this situation, it is imperative that you write your methods in a way such that for each peer their execution gives same results. As at the end of the day we must keep the ledger synchronized. Here are some things you must avoid to make your chaincode deterministic. It's not an exhaustive list. I am sure there are more aspects associated with this issue. -> avoid global variables for state maintenance -> avoid the use of timestamp as different peers might execute chaincode at different timestamp -> avoid using map for the situations where order of elements are important -> avoid using random generators -> avoid multi-threaded programming

bairathirahul (Mon, 08 Oct 2018 17:35:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eqvyNt8HuDkHxpJQd) @ShefaliMittal Stringify your array in Node and Unmarshal in Go chaincode.

montana (Mon, 08 Oct 2018 18:23:33 GMT):
Does anyone know whether or not the system channel can be configured so that another Org (Org1) can update the MSP for another Org (Org2) within the system channel? Simple case, Org1 wants to add new Admincerts to Org2's MSP within the system channel.

ep-danj (Tue, 09 Oct 2018 00:40:06 GMT):
Has joined the channel.

bairathirahul (Tue, 09 Oct 2018 01:47:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PhtarjMfjsBcwLEGc) @montana I suppose it's not possible. You are trying to modify MSP of another organization whose systems will be in another premise. This would be a big security concern.

rajanashutosh (Tue, 09 Oct 2018 04:25:29 GMT):
Hi all, which project should i look forward for, if in case need to integrate payment gateways with fabric i.e payment using cryptocurrency as well

schinni (Tue, 09 Oct 2018 04:26:13 GMT):
Has joined the channel.

schinni (Tue, 09 Oct 2018 04:27:53 GMT):
What are the alternative for developing hyperledger fabric based apps without composer tools What are the alternative for developing hyperledger fabric based apps without composer tools What are the alternative for developing hyperledger fabric based apps without composer tools What are the alternative for developing hyperledger fabric based apps without composer tools What are the alternative ways to develop hyperledger Fabric based solution without using composer tools

schinni (Tue, 09 Oct 2018 04:27:53 GMT):
What are the alternative for developing hyperledger fabric based apps without composer tools

PushpendraSingh (Tue, 09 Oct 2018 04:39:19 GMT):
I struggling to setup multi PC Fabric network.... All works good with containers in single docker network in same PC. I moved orderer to another machine and now anchor peer is not able to connect to orderer... though i could use CA Tool to connect to orderer from another machine to create channel , join channel and update channel operations.

PushpendraSingh (Tue, 09 Oct 2018 04:39:37 GMT):
orderer shows following error

PushpendraSingh (Tue, 09 Oct 2018 04:39:56 GMT):
2018-10-09 04:22:39.347 UTC [grpc] Println -> DEBU 8bd grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: \"\\x16\\x03\\x01\\x00\\x96\\x01\\x00\\x00\\x92\\x03\\x035X\\xf6\\x98\\xa5g\\x96\\xc7G\\x1du\\xad_\"" 2018-10-09 04:22:40.350 UTC [grpc] Println -> DEBU 8be grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: \"\\x16\\x03\\x01\\x00\\x96\\x01\\x00\\x00\\x92\\x03\\x03\\xcfX\\xfcq\\xfcj\\x17ܻ\\xfc\\xf7v\\xdc\"" 2018-10-09 04:22:42.237 UTC [grpc] Println -> DEBU 8bf grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: \"\\x16\\x03\\x01\\x00\\x96\\x01\\x00\\x00\\x92\\x03\\x03\\xb4X%\\xe6\\xfcD\\x90\\xffM\\xbd樦\""

PushpendraSingh (Tue, 09 Oct 2018 04:40:34 GMT):
anchor peer gives following error

PushpendraSingh (Tue, 09 Oct 2018 04:40:38 GMT):
2018-10-09 04:32:55.203 UTC [deliveryClient] connect -> ERRO 076 Failed obtaining connection: Could not connect to any of the endpoints:

khetesh (Tue, 09 Oct 2018 04:44:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FRAam8NJJcGmP9NHN) @bairathirahul Thanks @bairathirahul

khetesh (Tue, 09 Oct 2018 04:44:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8NvXGtkgHmryqZLE9) @vdods Thanks @vbods

khetesh (Tue, 09 Oct 2018 04:50:11 GMT):
hey @bairathirahul , i just have some confusion in endorsing peer who endorse the transaction: Lets say peer A,B,C,D,E in the same network and connected withsame channel called as mychannel . When peer A send transaction proposal in network then this transaction broadcasted to every peers that is B C D E and then they will simulate the transaction why does it requires it in terms of currency transfer or asset transfer?

khetesh (Tue, 09 Oct 2018 04:50:55 GMT):
can you share something which will relate real time example on endorsing peer?

khetesh (Tue, 09 Oct 2018 04:51:10 GMT):
or can you ans me something for this

anand.balagopalan (Tue, 09 Oct 2018 06:02:59 GMT):
Im following this tutorial:--> https://www.skcript.com/svr/setting-hyperledger-fabric-network-multiple-chaincodes-channels/ if i want to include CA containers, what should i change in the docker compose file? Im using fabricsample/firstnetwork as a reference template

kpratihast (Tue, 09 Oct 2018 06:25:30 GMT):
How do I sort on a time-stamped field while using couchdb ?

kpratihast (Tue, 09 Oct 2018 06:25:30 GMT):
How do I sort on a time-stamped field while using couchdb in a get method of chaincode ?

anand.balagopalan (Tue, 09 Oct 2018 06:26:46 GMT):
i get the eeror when trying to create a channel --> Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

ShefaliMittal (Tue, 09 Oct 2018 06:41:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wLEANZvkFqHwnKPWQ) @bairathirahul thank you

akoenig (Tue, 09 Oct 2018 07:24:54 GMT):
Hi, is here anyone who has experience with deploying a HLF-Network with openshift? We have found some material on the internet but we don't want to change the the priviliges and so on

Hana_Ch (Tue, 09 Oct 2018 08:06:42 GMT):
Hi .. does any one have an idea how to use the hyperledger Rest API in a java project .. i want to use the post chaincode endpoint in my java project .. and thanks :) :)

waleed (Tue, 09 Oct 2018 08:12:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nnKf263Yj2NtPZ4EE) @Hana_Ch not sure if I understood your question, but this may help: https://www.ibm.com/support/knowledgecenter/en/SSPLFC_7.3.0/com.ibm.taddm.doc_7.3/SDKDevGuide/t_cmdbsdk_restapi_java.html

Hana_Ch (Tue, 09 Oct 2018 08:37:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DZ8KxH4GHy4WrPggw) @waleed I am talking about core API of hyperledger fabric ... specified in this link .. i want to use them in a java project ... https://openblockchain.readthedocs.io/en/latest/API/CoreAPI/#rest-api

waleed (Tue, 09 Oct 2018 08:41:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5bfmwErSYKwxhhDug) @Hana_Ch yes, the link I provided show you how to interact with any rest api using java

Hana_Ch (Tue, 09 Oct 2018 09:10:41 GMT):
Thank you Waleed

atirekg (Tue, 09 Oct 2018 10:25:32 GMT):
Hello guys

atirekg (Tue, 09 Oct 2018 10:25:32 GMT):
Hello guys, anyone knows anything about the below one

atirekg (Tue, 09 Oct 2018 10:25:44 GMT):
# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2018-10-09 10:20:07.951 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1

kolayuk (Tue, 09 Oct 2018 10:54:09 GMT):
Has joined the channel.

kolayuk (Tue, 09 Oct 2018 11:00:13 GMT):
Hello! We're staring using Private Data first time, and we got a problem: we're using block listeners to sync data to external database (postgres), it works fine with usual data. But when we have a write to private data, block event (RWset, KvRwset.KVRWSet java object) does not contain even keys of write (we had an idea to get keys from block event and then fetch data quering chaincode). So what's best to idea to sync pvate data to external DB? Chaincode events with write keys? Someething else?

dave.enyeart (Tue, 09 Oct 2018 11:53:16 GMT):
@kolayuk There are plans to add private data to block events for the peers that have access to the private data, see https://jira.hyperledger.org/browse/FAB-12043. In the meantime, the only workaround is to have a client query for the private data, for example by using GetPrivateDataByRange() API.

dave.enyeart (Tue, 09 Oct 2018 11:56:40 GMT):
@atirekg It usually means the channel is already create, for example from a prior trial

dave.enyeart (Tue, 09 Oct 2018 11:56:40 GMT):
@atirekg It usually means the channel is already created, for example from a prior trial

railtracer (Tue, 09 Oct 2018 12:26:56 GMT):
Hello! when trying to run the first network (./byfn.sh up) i get the error : "ERROR !!! FAILED to execute End-2-End Scenario". It gives a warning that local fabric binaries and docker images are out of sync. LOCAL_VERSION=1.3.0 DOCKER_IMAGE_VERSION=1.3.0-rc1. Does anyone know how to get them in sync ?

atirekg (Tue, 09 Oct 2018 12:29:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=srZjcPqgLjcLNYApR) @dave.enyeart The channel was created for the peer0.org1 and Joined successfully, now I was trying to create the channel on peer1.org1 but it wasen't created

atirekg (Tue, 09 Oct 2018 12:29:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=srZjcPqgLjcLNYApR) @dave.enyeart The channel was created for the peer0.org1 and Joined successfully, now I was trying to create the channel on peer1.org1 but it wasn't created

atirekg (Tue, 09 Oct 2018 12:29:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=srZjcPqgLjcLNYApR) @dave.enyeart The channel was created for the peer0.org1 and Joined successfully, now I was trying to create the channel on peer1.org1 but it wasn't created. Any suggestion

atirekg (Tue, 09 Oct 2018 12:29:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=srZjcPqgLjcLNYApR) @dave.enyeart The channel was created for the peer0.org1 and Joined successfully, now I was trying to create the channel on peer1.org1 but it wasn't created. Any suggestion?

bairathirahul (Tue, 09 Oct 2018 13:25:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wFsZM7kdkrC7ZBHGy) @khetesh First of all, it's not the peer that sends the transaction proposal, but the client. Peers are only responsible for endorsing and committing the transaction. Client can be anything, either fabric-cli container or an application that you have developed using any of the Fabric SDK. Here, the client is responsible for sending the transaction proposals to all of the endorsing peers, then collect the endorsement and send them to the orderer. See the "Invoke" section in the first-network example (https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html#invoke). In the peer invoke command, you have to explicitly specify the endorsing peers and orderers. Regarding broadcasting, transactions is broadcasted by the Orderer, once they are collected in a block. I hope you will be able to understand the flow with this description. Hope this

bairathirahul (Tue, 09 Oct 2018 13:28:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sMGghEWpYs9c3QuFD) @kpratihast Use the GetQueryResult method. In this you can specify CouchDB queries as JSON formatted string.

bairathirahul (Tue, 09 Oct 2018 13:31:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cW2koWwFesT8vjvaN) @atirekg This error occurs because the channel you are trying to create already exists

uherr89 (Tue, 09 Oct 2018 13:32:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8au6aSmRqdtGQ3kJW) @schinni https://worldsibu.io/convector-smart-contract-systems/ Convector is a good option!

atirekg (Tue, 09 Oct 2018 13:32:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nYgPN8KG6aQobLYuh) @bairathirahul The channel was created for the peer0.org1 and Joined successfully, now I was trying to create the channel on peer1.org1 but it wasn't created. Any suggestion?

bairathirahul (Tue, 09 Oct 2018 13:34:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bpC5D9rzSCv8b33Re) @atirekg Channel should be created only once. Other peers only join the channel. Use "peer channel join" command.

atirekg (Tue, 09 Oct 2018 13:40:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DLi4fELbrTJZYBXd3) @bairathirahul tried to join the channel but it was not success as well, I might be doing something wrong when creating the new peer, Any idea how should be create new peer

bairathirahul (Tue, 09 Oct 2018 13:41:15 GMT):
@atirekg What's the error?

atirekg (Tue, 09 Oct 2018 13:42:14 GMT):
wait let me redeploy the application

kwang (Tue, 09 Oct 2018 13:42:47 GMT):
Has joined the channel.

kwang (Tue, 09 Oct 2018 13:50:25 GMT):
Hello. I'm looking for ledger archving and pruning fucntion. Does anyone know?

atirekg (Tue, 09 Oct 2018 13:54:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8PfR9uTcy4ycL8oxe) @bairathirahul # Join peer1.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" -e "peer0.org1.example.com:7051" peer1.org1.example.com peer channel join -b mychannel.block 2018-10-09 13:53:46.753 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: genesis block file not found open mychannel.block: no such file or directory

bairathirahul (Tue, 09 Oct 2018 14:23:21 GMT):
@atirekg Create mychannel.block with configtx and make sure it's available in the container.

khetesh (Tue, 09 Oct 2018 14:46:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uGo4iRf8MG6BxZ5om) @bairathirahul thanks @bairathirahul .... I just wanted to confirm that because i thought in first network whenever we enroll Admin in first network that admin will be assigned to org1.peer0.example.com and user register inside it they will also register i thought they will also assigned to org1.peer1.example.com

lanhray (Tue, 09 Oct 2018 15:08:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WfFH8WkbtGMcWvN7w) @railtracer You should clear your docker container and images and reinstall the fabric again. It works for me tho

RayMetz100 (Tue, 09 Oct 2018 15:12:54 GMT):
Did Fabric development move off Github or stop in the last few months? https://github.com/hyperledger/fabric/graphs/commit-activity

greg2git (Tue, 09 Oct 2018 15:14:28 GMT):
@RayMetz100 my understanding is that github is only for mirroring of jira and that has happened quite some time ago, maybe a year ago or so

RayMetz100 (Tue, 09 Oct 2018 15:19:51 GMT):
Thanks. Does JIRA have open source code? I found https://jira.hyperledger.org/projects/FAB I thought JIRA was an issue+feature tracking database, not for code. I will look and see if I can find any code at JIRA.

railtracer (Tue, 09 Oct 2018 15:34:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RpaQbdE3FmxRAt2FG) @lanhray I tried deleting everything and still the problem persists

lay-z (Tue, 09 Oct 2018 16:23:22 GMT):
Hey guys, I've got a question Zero-Knowledge Asset Transfer (ZKAT). Is this in fabric 1.2?

lay-z (Tue, 09 Oct 2018 16:27:26 GMT):
Or is it a IBM specific feature?

bairathirahul (Tue, 09 Oct 2018 16:30:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wi2W48pLGgquWQPn8) @lay-z In my opinion, it is a concept, which in the Hyperledger Fabric, is exemplified by the Private Data feature (available since v1.3) and the Idemix (available since v1.3).

bairathirahul (Tue, 09 Oct 2018 16:30:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wi2W48pLGgquWQPn8) @lay-z In my opinion, it is a concept, which in the Hyperledger Fabric, is exemplified by the Private Data feature (available since v1.2) and the Idemix (available since v1.3).

bairathirahul (Tue, 09 Oct 2018 16:36:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2ka7hToZ2uMuyKyff) @railtracer Do "docker system prune -a". Beware! it will cleanup the entire docker. So all of your images, containers, volumes, etc. will be gone

lay-z (Tue, 09 Oct 2018 16:39:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dCrSonuzxqCsxRnd7) @bairathirahul Ahhhh, okay cool. https://www.ibm.com/developerworks/cloud/library/cl-blockchain-private-confidential-transactions-hyperledger-fabric-zero-knowledge-proof/index.html I read this here, but I think what you are saying makes ense

lay-z (Tue, 09 Oct 2018 16:39:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dCrSonuzxqCsxRnd7) @bairathirahul Ahhhh, okay cool. https://www.ibm.com/developerworks/cloud/library/cl-blockchain-private-confidential-transactions-hyperledger-fabric-zero-knowledge-proof/index.html I read this here, but I think what you are saying makes sense

khetesh (Tue, 09 Oct 2018 16:41:15 GMT):
In fabric network client who is proposing transaction . Does client has any seprate wallet where all the transaction gets log ?

bairathirahul (Tue, 09 Oct 2018 16:44:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=34J8ZZES4dR3GXgTp) @lay-z Yeah I see it now. There is more coming to the Hyperledger Fabric in this domain. I am excited for these upcoming features.

bairathirahul (Tue, 09 Oct 2018 16:45:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wSomu795YCTXkYrQs) @khetesh Transactions are stored in the ledger only. However, you can copy the transaction from ledger to your client's database.

GiovanniNapoli (Tue, 09 Oct 2018 16:54:15 GMT):
Hi all, is there a detailed doc for HLF sources?

khetesh (Tue, 09 Oct 2018 16:59:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iF4yFqnaaqiwSqWHY) @bairathirahul Thanks bro

lay-z (Tue, 09 Oct 2018 17:16:09 GMT):
Another question. Is it possible for a peer to belong to MSP: A. And then have channels on it that belong (respectively, only to) MSP: A.A, A.B, A.C. And then have clients make endorsement and requests to that peer?

montana (Tue, 09 Oct 2018 17:16:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w58Zut4b4KpqENaY6) @bairathirahul I would assume that fabric policies would be flexible enough to allow this. Imagine a fictional scenario if we had a dictatorship consortium setup where one organization controls the MSP definitions for everyone in the consortium.

khetesh (Tue, 09 Oct 2018 17:36:02 GMT):
hello @bairathirahul , after creating first network when we do node enrollAdmin.js then it enroll admin user and assign msp certificate for that Admin user So my question is that Admin is peer in organization or that is also client ?

khetesh (Tue, 09 Oct 2018 17:36:02 GMT):
hello @bairathirahul , after creating first network when we do node enrollAdmin.js then it enroll admin user and assign msp certificate for that Admin user So my question is that Admin is peer in organization or that is also client for hyperledger network ?

khetesh (Tue, 09 Oct 2018 17:38:02 GMT):
what is that enrollAdmin Does in permissioned network please give me some clarification on that.......

atirekg (Tue, 09 Oct 2018 17:51:52 GMT):
hello guys getting this error Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: 14 UNAVAILABLE: TCP Write failed

himi64 (Tue, 09 Oct 2018 19:25:41 GMT):
Has joined the channel.

himi64 (Tue, 09 Oct 2018 19:33:01 GMT):
Hello, I am new to fabric and had a question about using couchdb as the state db for my network. Does the transaction data in couchdb only have an md5 hash of the data? I see the following in attachments: "digest": "md5-GzIv88Kam8pL6Kot1AGxNQ==" Is it possible to have the actual data that I submitted in that transaction?

yacovm (Tue, 09 Oct 2018 20:02:27 GMT):
the data is in the block....

yacovm (Tue, 09 Oct 2018 20:02:44 GMT):
you can retrieve it via a QSCC chaincode query

hypere (Tue, 09 Oct 2018 20:04:56 GMT):
```bash Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [xxx] creator org [xxxMSP] ``` I received the following error when trying to instantiate the channel. I have made sure to set CORE_PEER_MSPCONFIGPATH,CORE_PEER_ADDRESS,CORE_PEER_LOCALMSPID,CORE_PEER_TLS_ROOTCERT_FILE to the correct org and to generate the crypto before i run anything. what could be the possible reason for this?

greg2git (Tue, 09 Oct 2018 20:59:45 GMT):
i'm trying to build a simplest network possible consisting of 1 of each: orderer, peer, devchaincode, couchdb, and cli(ent). i would also like to use the standard configuration yaml files, but change the container and services names to orderer1, peer1, etc. i'm also using docker kill to shutdown the running containers before each change and have been able to keep them all running. however, i keep getting this error for the peer: "orderer client failed to connect to orderer:7050: failed to create new connection: context deadline exceeded" and my couchdb is not showing any databases. is there one yaml config setting that would allow this dev network to be self contained and resilient and able to accept any new chaincode?

himi64 (Tue, 09 Oct 2018 21:13:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JE2RDh2N4SG5EhpEo) @yacovm @yacovm so does that mean the data from a given transaction is never stored in couchdb, and that all the data resides within the state of the latest block only?

yacovm (Tue, 09 Oct 2018 21:15:06 GMT):
why do you need the data to be stored in couchDB?

yacovm (Tue, 09 Oct 2018 21:15:19 GMT):
you have a pointer to the data in couchDB

yacovm (Tue, 09 Oct 2018 21:15:30 GMT):
and you can locate the data from the file system

himi64 (Tue, 09 Oct 2018 21:16:06 GMT):
My use case involves appending JSON strings, and if they keep getting appended to the state only, it won't be scaleable

dave.enyeart (Tue, 09 Oct 2018 21:36:35 GMT):
@himi64 If you PutState() a JSON document in chaincode it will be saved to couchdb as JSON and is queryable. if your PutState() is not valid JSON it will be saved in CouchDB as an 'attachment' and is not queryable.

gluonicdragon (Tue, 09 Oct 2018 21:39:12 GMT):
Has joined the channel.

dave.enyeart (Tue, 09 Oct 2018 21:40:16 GMT):
@atirekg channel gets created once, then each peer joins the channel. To see this described step by step, read this tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

Ibrahim.abada (Tue, 09 Oct 2018 21:44:54 GMT):
Has joined the channel.

khetesh (Wed, 10 Oct 2018 04:21:25 GMT):
Hello guys , in fabcar network when we run enrollAdmin. js does that mean we are assigning admin in org1 and that will act as admin peer

khetesh (Wed, 10 Oct 2018 04:21:35 GMT):
?

LevinLMKwong (Wed, 10 Oct 2018 04:58:20 GMT):
Hi all, when I tried to create a channel, it reports ``` 2018-10-10 04:17:03.932 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 1e8 Checking if identity satisfies ADMIN role for MyOrgPeerMSP 2018-10-10 04:17:03.932 UTC [cauthdsl] func2 -> DEBU 1e9 0xc4200b2be8 identity 0 does not satisfy principal: This identity is not an admin 2018-10-10 04:17:03.932 UTC [cauthdsl] func2 -> DEBU 1ea 0xc4200b2be8 principal evaluation fails 2018-10-10 04:17:03.932 UTC [cauthdsl] func1 -> DEBU 1eb 0xc4200b2be8 gate 1539145023931858797 evaluation fails 2018-10-10 04:17:03.932 UTC [policies] Evaluate -> DEBU 1ec Signature set did not satisfy policy /Channel/Application/MyOrgPeer/Admins 2018-10-10 04:17:03.932 UTC [policies] Evaluate -> DEBU 1ed == Done Evaluating *cauthdsl.policy Policy /Channel/Application/MyOrgPeer/Admins 2018-10-10 04:17:03.932 UTC [policies] func1 -> DEBU 1ee Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ MyOrgPeer.Admins ] 2018-10-10 04:17:03.932 UTC [policies] Evaluate -> DEBU 1ef Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy 2018-10-10 04:17:03.932 UTC [policies] Evaluate -> DEBU 1f0 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy 2018-10-10 04:17:03.932 UTC [orderer/common/broadcast] Handle -> WARN 1f1 [channel: tmchannel] Rejecting broadcast of config message from 10.0.1.83:50250 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` What does `This identity is not an admin` mean with respect to MSP? Does it mean the cert under signcert folder of my peer (localMSP) cannot verified by the cert under admincert folder of the channel (channelMSP)?

LevinLMKwong (Wed, 10 Oct 2018 05:03:01 GMT):
@yacovm Would you mind to help when you are available

yacovm (Wed, 10 Oct 2018 05:33:01 GMT):
no... it's with repsect to the channel MSP

yacovm (Wed, 10 Oct 2018 05:33:12 GMT):
in the channel's msp directory there is a folder named admin

yacovm (Wed, 10 Oct 2018 05:33:19 GMT):
or "admincerts"

yacovm (Wed, 10 Oct 2018 05:33:24 GMT):
@LevinLMKwong

yacovm (Wed, 10 Oct 2018 05:33:39 GMT):
all updates of channel config need to be signed by admins only

LevinLMKwong (Wed, 10 Oct 2018 05:37:52 GMT):
@yacovm Got it, but as I know I can enroll admin many times using fabric-ca (juts provide the admin:adminpw) and each time receiving a different certs. And yet I do not need to update my channel MSP, why's that?

yacovm (Wed, 10 Oct 2018 05:39:06 GMT):
that's the problem....

NishadTat (Wed, 10 Oct 2018 05:39:06 GMT):
Error response from daemon: manifest for hyperledger/fabric-zookeeper:x86_64-0.4.12 not found Error response from daemon: No such image: hyperledger/fabric-zookeeper:x86_64-0.4.12 while executing curl command -s 1.1.0-alpha ...

knagware9 (Wed, 10 Oct 2018 05:39:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aBPjeAzfAYG5Nvd6X) @himi64 @yacovm in my setup I can see transaction data in couch db ,,is that wrong?

yacovm (Wed, 10 Oct 2018 05:39:24 GMT):
you *DO NEED* to update your channel MSP

yacovm (Wed, 10 Oct 2018 05:39:31 GMT):
the fabric-CA isn't magically updating the channel

LevinLMKwong (Wed, 10 Oct 2018 05:40:24 GMT):
@yacovm Thanks so much! It clears my misunderstanding.

NishadTat (Wed, 10 Oct 2018 05:49:04 GMT):
How to modify fabric-samples/basic-network in case of adding new organization to the existing basic network single organization???

LevinLMKwong (Wed, 10 Oct 2018 05:56:16 GMT):
@yacovm What's the meaning of admincert folder (and the cert in it) for local MSP? Since admin identity is checked against channel MSP

venkat0427 (Wed, 10 Oct 2018 06:16:31 GMT):
Has joined the channel.

yacovm (Wed, 10 Oct 2018 06:27:10 GMT):
there is also a local MSP admins

yacovm (Wed, 10 Oct 2018 06:27:15 GMT):
for example when you join a peer to a channel

yacovm (Wed, 10 Oct 2018 06:27:18 GMT):
or install a chaincode

yacovm (Wed, 10 Oct 2018 06:27:28 GMT):
the local MSP checks that the command was signed by an admin

yacovm (Wed, 10 Oct 2018 06:27:31 GMT):
@LevinLMKwong

LevinLMKwong (Wed, 10 Oct 2018 06:28:52 GMT):
Um.... does that admin necessarily same as the one in channel msp?

yacovm (Wed, 10 Oct 2018 06:30:38 GMT):
no

LevinLMKwong (Wed, 10 Oct 2018 06:36:21 GMT):
cli log: ``` 2018-10-10 06:30:17.145 UTC [bccsp_sw] loadPrivateKey -> DEBU 033 Loading private key [4659295262ecd075c8537b21f1a9a040be49fc285a55ff77297df74c05b5cc50] at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/MyOrg.com/users/Admin@MyOrg.com/msp/keystore/4659295262ecd075c8537b21f1a9a040be49fc285a55ff77297df74c05b5cc50_sk]... 2018-10-10 06:30:17.146 UTC [msp/identity] newIdentity -> DEBU 034 Creating identity instance for cert -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- 2018-10-10 06:30:17.146 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2019-10-10 06:22:00 +0000 UTC 2018-10-10 06:30:17.146 UTC [msp] Validate -> DEBU 036 MSP MyOrgPeerMSP validating identity 2018-10-10 06:30:17.147 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2018-10-10 06:30:17.147 UTC [grpc] Printf -> DEBU 038 parsed scheme: "" 2018-10-10 06:30:17.147 UTC [grpc] Printf -> DEBU 039 scheme "" not registered, fallback to default scheme 2018-10-10 06:30:17.147 UTC [grpc] Printf -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer0.MyOrg.com:7050 0 }] 2018-10-10 06:30:17.147 UTC [grpc] Printf -> DEBU 03b ClientConn switching balancer to "pick_first" 2018-10-10 06:30:17.147 UTC [grpc] Printf -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc42038cae0, CONNECTING 2018-10-10 06:30:17.151 UTC [grpc] Printf -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc42038cae0, READY 2018-10-10 06:30:17.151 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2018-10-10 06:30:17.151 UTC [msp] GetDefaultSigningIdentity -> DEBU 03f Obtaining default signing identity 2018-10-10 06:30:17.151 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2018-10-10 06:30:17.151 UTC [msp/identity] Sign -> DEBU 041 Sign: plaintext: 0AB5060A0E54727573744D6550656572...727573744D65436F6E736F727469756D 2018-10-10 06:30:17.151 UTC [msp/identity] Sign -> DEBU 042 Sign: digest: E598F363500E1770D75193DB5C2B5D28D499361D906324BA64BE31D659B6F20B 2018-10-10 06:30:17.151 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2018-10-10 06:30:17.152 UTC [msp] GetDefaultSigningIdentity -> DEBU 044 Obtaining default signing identity 2018-10-10 06:30:17.152 UTC [msp/identity] Sign -> DEBU 045 Sign: plaintext: 0AEC060A1508021A0608F9B8F6DD0522...B7C8242F13E44A0831B38A420B671014 2018-10-10 06:30:17.152 UTC [msp/identity] Sign -> DEBU 046 Sign: digest: 917647AAFADE178A2BE48C9E67EA6CC7828958081D3DAB876BB904F7FF3676AF 2018-10-10 06:30:17.152 UTC [grpc] Printf -> DEBU 047 parsed scheme: "" 2018-10-10 06:30:17.152 UTC [grpc] Printf -> DEBU 048 scheme "" not registered, fallback to default scheme 2018-10-10 06:30:17.152 UTC [grpc] Printf -> DEBU 049 ccResolverWrapper: sending new addresses to cc: [{orderer0.MyOrg.com:7050 0 }] 2018-10-10 06:30:17.152 UTC [grpc] Printf -> DEBU 04a ClientConn switching balancer to "pick_first" 2018-10-10 06:30:17.152 UTC [grpc] Printf -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc4203cf2c0, CONNECTING 2018-10-10 06:30:17.157 UTC [grpc] Printf -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc4203cf2c0, READY Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

LevinLMKwong (Wed, 10 Oct 2018 06:36:30 GMT):
Orderer log: ``` 2018-10-10 06:30:17.166 UTC [policies] Manager -> DEBU 156 Manager Channel/Application has managers MyOrgPeer 2018-10-10 06:30:17.166 UTC [policies] Evaluate -> DEBU 157 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy == 2018-10-10 06:30:17.166 UTC [policies] Evaluate -> DEBU 158 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2018-10-10 06:30:17.166 UTC [policies] Evaluate -> DEBU 159 == Evaluating *cauthdsl.policy Policy /Channel/Application/MyOrgPeer/Admins == 2018-10-10 06:30:17.166 UTC [msp] DeserializeIdentity -> INFO 15a Obtaining identity 2018-10-10 06:30:17.167 UTC [msp/identity] newIdentity -> DEBU 15b Creating identity instance for cert -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- 2018-10-10 06:30:17.167 UTC [cauthdsl] func1 -> DEBU 15c 0xc4200b2b70 gate 1539153017167446666 evaluation starts 2018-10-10 06:30:17.167 UTC [cauthdsl] func2 -> DEBU 15d 0xc4200b2b70 signed by 0 principal evaluation starts (used [false]) 2018-10-10 06:30:17.167 UTC [cauthdsl] func2 -> DEBU 15e 0xc4200b2b70 processing identity 0 with bytes of 0a0e54727573744d65506565724d535012a2062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434a44434341637167417749424167495557342f6b52554a346e4450317a527558476d5450453841416e774977436759494b6f5a497a6a3045417749770a5444454c4d416b474131554542684d4353457378456a415142674e564241674d43556876626d6367533239755a7a45514d413447413155454367774864484a310a633352745a5445584d425547413155454177774f5932457564484a31633352745a53356a623230774868634e4d5467784d4445774d4459784e7a41775768634e0a4d546b784d4445774d4459794d6a4177576a42644d517377435159445651514745774a56557a45584d4255474131554543424d4f546d397964476767513246790a62327870626d45784644415342674e5642416f5443306835634756796247566b5a3256794d513877445159445651514c45775a6a62476c6c626e5178446a414d0a42674e5642414d544257466b62576c754d466b77457759484b6f5a497a6a3043415159494b6f5a497a6a30444151634451674145434e4a755436584e655a50410a6d48767850355750657969335a435a31575149764e5066486c453951704d3161695734423554574e43556438647758734d3663753933514c424f4134565a4b790a575743694f334b4d72614e354d48637744675944565230504151482f42415144416765414d41774741315564457745422f7751434d414177485159445652304f0a42425945464a6674546d48767438385567494149584b2f4564426f3854504a2f4d42384741315564497751594d426141464e397067306f655478564c7276494a0a6857427a476c56365555436a4d42634741315564455151514d41364344444535596a646b5a5755345a5749314d44414b42676771686b6a4f5051514441674e490a41444246416945416d747754485063676b30464937635575526e574953434a677955554c476f6861647a484775307741663451434943476967373354346445720a584f4b426a30383153695661414247376a6a5a4b6c6537306e58495141562b4e0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2018-10-10 06:30:17.167 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 15f Checking if identity satisfies ADMIN role for MyOrgPeerMSP 2018-10-10 06:30:17.167 UTC [cauthdsl] func2 -> DEBU 160 0xc4200b2b70 identity 0 does not satisfy principal: This identity is not an admin 2018-10-10 06:30:17.167 UTC [cauthdsl] func2 -> DEBU 161 0xc4200b2b70 principal evaluation fails 2018-10-10 06:30:17.167 UTC [cauthdsl] func1 -> DEBU 162 0xc4200b2b70 gate 1539153017167446666 evaluation fails 2018-10-10 06:30:17.167 UTC [policies] Evaluate -> DEBU 163 Signature set did not satisfy policy /Channel/Application/MyOrgPeer/Admins 2018-10-10 06:30:17.167 UTC [policies] Evaluate -> DEBU 164 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/MyOrgPeer/Admins 2018-10-10 06:30:17.167 UTC [policies] func1 -> DEBU 165 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ MyOrgPeer.Admins ] 2018-10-10 06:30:17.167 UTC [policies] Evaluate -> DEBU 166 Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy 2018-10-10 06:30:17.167 UTC [policies] Evaluate -> DEBU 167 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy 2018-10-10 06:30:17.167 UTC [orderer/common/broadcast] Handle -> WARN 168 [channel: tmchannel] Rejecting broadcast of config message from 10.0.1.91:43298 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` Still failed.... As you can see from the first log, I am already using Admin `MyOrg.com/users/Admin@MyOrg.com/msp` ...

LevinLMKwong (Wed, 10 Oct 2018 06:37:52 GMT):
@yacovm Where should I look at to debug ... I would like to know the proper flow to debug these cases instead of asking you guys every time ... I already check the signcert is exactly the same as the admincert in channel msp

laurensdegilde (Wed, 10 Oct 2018 06:55:49 GMT):
Hi all got a question regarding the world state database and the read-write set build during endorsement transaction cycle. When the putState method is called, is there any operation happening on the world state database? Or is Hyperledger solely building and appending the read-write set? For the getState it is ofcourse doing a read operation on LevelDB because otherwise it could not return a value to the chaincode, but for a putState operation?

nicezic (Wed, 10 Oct 2018 07:23:14 GMT):
If a Peer in an Org want to join two different channel, Should I create another peer for an Org?

nicezic (Wed, 10 Oct 2018 07:25:23 GMT):
If a Peer in an Org want to join two different channel, Should I create another peer for The Org? Or Is it possible for one peer to be able to anchor for two different Channels?

DeepakMP (Wed, 10 Oct 2018 07:32:16 GMT):
Has joined the channel.

DeepakMP (Wed, 10 Oct 2018 07:32:21 GMT):
Hi, I'm trying to create a Private collection in my byfn directory (using the doc section 4.5). However, running into the following error when installing chaincode on the channel after installing the chaincode on the peers.

DeepakMP (Wed, 10 Oct 2018 07:32:25 GMT):
Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org2MSP]

DeepakMP (Wed, 10 Oct 2018 07:35:56 GMT):
my guess is that, I'm currently inside a cli container: root@d77a990e500c:/opt/gopath/src/github.com/hyperledger/fabric/peer# . If this means I'm inside a particular organisation or a peer, then I'll need to exit that organisation or peer. If the container is a channel or a network, then perhaps something else is wrong.

DeepakMP (Wed, 10 Oct 2018 07:36:18 GMT):
What do I need to do here? I need to instantiate the chaincode on my channel.

DeepakMP (Wed, 10 Oct 2018 07:39:14 GMT):
I'm trying to run the peer chaincode instantiate command:

DeepakMP (Wed, 10 Oct 2018 07:39:19 GMT):
export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n marblesp -v 1.0 -c '{"Args":["init"]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config $GOPATH/src/github.com/chaincode/marbles02_private/collections_config.json

DeepakMP (Wed, 10 Oct 2018 07:39:43 GMT):
currently running from cli container: root@d77a990e500c:/opt/gopath/src/github.com/hyperledger/fabric/peer#

amichel (Wed, 10 Oct 2018 07:58:00 GMT):
Has joined the channel.

amichel (Wed, 10 Oct 2018 07:58:04 GMT):
Hi,

amichel (Wed, 10 Oct 2018 07:58:35 GMT):
running sudo ./byfn.sh up for the first time. It fails to run orderer container in both go and node

amichel (Wed, 10 Oct 2018 07:59:21 GMT):
Here is output from docker log: 2018-10-10 07:38:45.275 UTC [orderer/common/server] initializeServerConfig -> INFO 003 Starting orderer with TLS enabled 2018-10-10 07:38:45.314 UTC [fsblkstorage] newBlockfileMgr -> INFO 004 Getting block information from block storage 2018-10-10 07:38:45.345 UTC [orderer/commmon/multichannel] checkResourcesOrPanic -> CRIT 005 [channel byfn-sys-channel] config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported panic: [channel byfn-sys-channel] config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc420296de0, 0xd72db2, 0xf, 0xc420509a40, 0x2, 0x2) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x126 github.com/hyperledger/fabric/orderer/common/multichannel.checkResourcesOrPanic(0xe19860, 0xc42007ef80) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:62 +0x15f github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc42028d0a0, 0xc42016e780, 0xc42016e780) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:258 +0x3a3 github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0xe11600, 0xc420486060, 0xc420177f50, 0xe09100, 0x14a3c98, 0xc42017a980, 0x1, 0x1, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:144 +0x327 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc420288280, 0xe09100, 0x14a3c98, 0xc42017a980, 0x1, 0x1, 0xc420505ed0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:260 +0x250 github.com/hyperledger/fabric/orderer/common/server.Start(0xd6bbdd, 0x5, 0xc420288280) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:101 +0x1d3 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:80 +0x204 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

railtracer (Wed, 10 Oct 2018 08:42:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n9tz8zov8wAaNP2Ma) @bairathirahul After this It still gives me the warning that the versions are out of sync but the example works. Thanks

khetesh (Wed, 10 Oct 2018 08:46:10 GMT):

Screenshot from 2018-10-09 09-52-14 - 1.png

khetesh (Wed, 10 Oct 2018 08:46:22 GMT):
please help me to get it run

LevinLMKwong (Wed, 10 Oct 2018 08:55:50 GMT):
@yacovm I have the following findings, would you help to see if you have any idea? - The orderer log shows WRONG cert during creating Channel MSP `Creating BCCSP-based MSP instance` - But I double check the followings, all are using the CORRECT cert 1) The MSP folder pointed to when I use configtxgen to generate genesis block 2) I use the configtxgen -inspectBlock to get the readable genesis block and used base64 decode the admin cert, it is the correct one !!! Point 2) is killing me! I am currently looking into the code that orderer starts up run and see if I can find the problem.

LevinLMKwong (Wed, 10 Oct 2018 08:55:50 GMT):
@yacovm I have the following findings, would you help to see if you have any idea? - The orderer log shows WRONG cert during creating Channel MSP `Creating BCCSP-based MSP instance` - But I double check the followings, all are using the CORRECT cert 1) The MSP folder pointed to when I use configtxgen to generate genesis block 2) I use the configtxgen -inspectBlock to get the readable genesis block and used base64 decode the admin cert, it is the correct one !!! Point 2) is killing me! 3) I bring up a completely new VM to using same set of certs and everything works fine now ... Is there any caching mechanism that may cause this??

LevinLMKwong (Wed, 10 Oct 2018 08:55:50 GMT):
@yacovm Found out that it is cached in the chain, thanks for your help and sorry that I keep bothering you!

DeepakMP (Wed, 10 Oct 2018 08:56:51 GMT):
Hi guys, another question, I'm unable to install the docker images on my ubuntu vm on google_cloud. I installed fabric fully on my local mac, but its not pull the images on cloud. Not sure why. I checked docker and docker-compose, both installed and did sudo service docker restart as well before running. This is the error message: Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fva r%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledg er%2Ffabric-peer&tag=1.3.0-rc1: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-peer:1. 3.0-rc1/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied ==> FABRIC IMAGE: orderer

DeepakMP (Wed, 10 Oct 2018 09:05:34 GMT):
Nevermind this question, it was a permission issue, got it solved by using | sudo bash -s

lay-z (Wed, 10 Oct 2018 09:05:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H2XWY3TC66E24gWu4) @DeepakMP I think it might have something to do with permissions, you need to make sure that the user you are running docker with is part of the 'docker' group

amichel (Wed, 10 Oct 2018 09:05:37 GMT):
@DeepakMP I had the same problem. It looks for docker endpoint at unix socket, while by default it uses fd:// protocol

lay-z (Wed, 10 Oct 2018 09:05:40 GMT):
-> https://docs.docker.com/install/linux/linux-postinstall/

lay-z (Wed, 10 Oct 2018 09:06:19 GMT):
haha, or yes you can run it as root

amichel (Wed, 10 Oct 2018 09:06:21 GMT):
I fixed it by adding -H unix:///

DeepakMP (Wed, 10 Oct 2018 09:06:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pityRt4vYfYSm2iLy) Ok, Can you help me with this?

lay-z (Wed, 10 Oct 2018 09:11:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pFkzH9srs5b3fZDNn) @DeepakMP That chaincode instantiation error i've come across before. Were you able to instantiate chaincode previously?

lay-z (Wed, 10 Oct 2018 09:11:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pFkzH9srs5b3fZDNn) @DeepakMP That chaincode instantiation error i've come across before, but i always forget what fixed it :sweat_smile:. I think its to do with permissions. Were you able to instantiate chaincode previously?

lay-z (Wed, 10 Oct 2018 09:12:07 GMT):
Although if you are using the CLI container, then that should be admin

lay-z (Wed, 10 Oct 2018 09:12:16 GMT):
:thinking:

lay-z (Wed, 10 Oct 2018 09:12:44 GMT):
Maybe something to do with the fast that using private collections? some configuration not correct?

DeepakMP (Wed, 10 Oct 2018 09:13:10 GMT):
I haven't tried before.. just genesis, brought the network, up and down.. did some sample querying. all that in the first couple sections of Section 4.

DeepakMP (Wed, 10 Oct 2018 09:13:46 GMT):
Yeah thats what I'm guessing, but I'm not sure where to start or how to proceed.

DeepakMP (Wed, 10 Oct 2018 09:24:37 GMT):
Meaning, I've just created channels, and connected peers to it. Haven't yet instantiated chain codes to channels.

DeepakMP (Wed, 10 Oct 2018 09:25:41 GMT):
Would be of immense help if anyone could help me do it!!!

angelsuarez (Wed, 10 Oct 2018 09:52:20 GMT):
hello everyone, how does fabric solves the problem of moving assets between different ledgers? I am more or less new to fabric and I would like to know more about it. Thanks

satyajitdeshmukh (Wed, 10 Oct 2018 10:02:28 GMT):
hello all

satyajitdeshmukh (Wed, 10 Oct 2018 10:02:54 GMT):
i got error while setting hyperledger environment

satyajitdeshmukh (Wed, 10 Oct 2018 10:03:00 GMT):
please guide

satyajitdeshmukh (Wed, 10 Oct 2018 10:04:38 GMT):

Screenshot from 2018-10-10 15-32-11.png

satyajitdeshmukh (Wed, 10 Oct 2018 10:05:23 GMT):
For Command : *./byfn.sh -m up*

satyajitdeshmukh (Wed, 10 Oct 2018 10:05:34 GMT):
Which command i miss..?

satyajitdeshmukh (Wed, 10 Oct 2018 10:06:00 GMT):
which permission i missed ..?

lay-z (Wed, 10 Oct 2018 10:16:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S7mGDwRd7sCLvczkA) @DeepakMP Sample queries would've involved having chaincode installed from before hand. I guess you would've ended up doing that during the sections at some point?

MuhammedHafil (Wed, 10 Oct 2018 11:15:45 GMT):
Can anybody provide fabric client enroll admin and user code for BYFN network? Thanks

khetesh (Wed, 10 Oct 2018 11:21:04 GMT):
i am confused aboutwhat will happen when we do enrollAdmin in byfn network so admin user is being enrolled with CA server and Admin user will be assigned to cs-certs but i dont know whether he has all the permission to add new peer or not ?

gravity (Wed, 10 Oct 2018 11:29:27 GMT):
hi all is there any relevant configuration for orderer with kafka?

gatakka (Wed, 10 Oct 2018 11:34:20 GMT):
@gravity https://github.com/hyperledger/fabric-test/blob/master/feature-upgrade/dc-orderer-kafka.yml

gatakka (Wed, 10 Oct 2018 11:34:28 GMT):
this is docker-config file for Kafka

MuhammedHafil (Wed, 10 Oct 2018 11:35:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C6RmgN2o3NduFFdgp) anybody>

gatakka (Wed, 10 Oct 2018 11:35:47 GMT):
@gravity here is another one, starting order is VERY important. https://github.com/hyperledger/fabric-test/blob/master/feature/docker-compose/docker-compose-kafka.yml

gravity (Wed, 10 Oct 2018 11:37:17 GMT):
@gatakka thanks does this configuration utilize kafka v1.0?

gatakka (Wed, 10 Oct 2018 11:40:08 GMT):
@gravity this is compose file to run Kafka, if images are for kafka1 and genesis block is generated for kafka1 then yes

gravity (Wed, 10 Oct 2018 11:42:48 GMT):
@gatakka To setup a genesis block to use kafka 1, should I use this env variable `ORDERER_KAFKA_VERSION=1.0.0` ?

gatakka (Wed, 10 Oct 2018 11:45:25 GMT):
for orderer yes

satyajitdeshmukh (Wed, 10 Oct 2018 12:04:54 GMT):

Screenshot from 2018-10-10 15-32-11.png

MuhammedHafil (Wed, 10 Oct 2018 12:11:17 GMT):
down the network

MuhammedHafil (Wed, 10 Oct 2018 12:11:17 GMT):
down the network first and run again

gravity (Wed, 10 Oct 2018 13:00:45 GMT):
@gatakka I've set up an orderer to use kafka according to the configuration provided but I'm getting these messages in logs: ``` 2018-10-10 12:45:04.319 UTC [orderer/consensus/kafka/sarama] func1 -> DEBU 58b client/metadata fetching metadata for all topics from broker kafka3:9092 2018-10-10 12:45:04.323 UTC [orderer/consensus/kafka/sarama] withRecover -> DEBU 58c Failed to connect to broker kafka3:9092: dial tcp: lookup kafka3 on 127.0.0.11:53: server misbehaving 2018-10-10 12:45:04.323 UTC [orderer/consensus/kafka/sarama] func1 -> DEBU 58d client/metadata got error from broker while fetching metadata: dial tcp: lookup kafka3 on 127.0.0.11:53: server misbehaving ```

satyajitdeshmukh (Wed, 10 Oct 2018 13:09:29 GMT):
@MuhammedHafil thanks brother.. it works for me... just one more question can i use this settings with composer playground..?

Zarkdion (Wed, 10 Oct 2018 13:16:15 GMT):
Has joined the channel.

Zarkdion (Wed, 10 Oct 2018 13:18:57 GMT):
Small question concerning private data: Suppose I am providing a Hyperledger blockchain to other organizations to facilitate transactions between them. I have an owner account, everyone else has a user account. I want to create a system in which user accounts could perform those transactions without others noticing. But here's the caveat: At any time, I want the owner account to be able to access all the transactions, regardless of privacy. Can hyperledger facilitate this scenario?

himi64 (Wed, 10 Oct 2018 13:39:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u9dSzas9WztfkkveY) @dave.enyeart This was my issue. The value for PutState that I used was a list of JSONs. Thank you so much!

Zarkdion (Wed, 10 Oct 2018 13:39:51 GMT):
These transactions, btw, would be done through smart contracts that I, as owner, create.

MuhammedHafil (Wed, 10 Oct 2018 14:26:11 GMT):
Is there any tutorial for connecting first network (://hyperledger-fabric.readthedocs.io/en/latest/build_network.html) to a node client app with client sdk?

DeepakMP (Wed, 10 Oct 2018 14:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zLnfHxjKLxR8Pc584) @lay-z Yup I'd have. But its highly tedious for me to look into how each command runs at lowest levels. I was hoping to figure out what the error is pointing to. I cant be the only one facing the issue right? And to be honest I dont even know why chaincodes need to be instantiated seperately in each peer/org and channels. Concurrency and duplicity should be built in and commands need to incorporate that everywhere, else the design and mindset of the developer will start entertaining other ideas/philosophies and also increases chances of errors.Thought discussions aside, recommend ways to solve the matter? For context, I was trying to get a working demo of Private data collections. Even so, instantiating chaincodes on channels should be standard.

khetesh (Wed, 10 Oct 2018 14:49:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ekM6yTL9ea8mAeSs5) Can any body give some clarification on this

lay-z (Wed, 10 Oct 2018 14:59:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wDBgXQ9ghhXLPwFpN) @DeepakMP Fair enough. Ok so I looked into my scripts that setup and install some basic chaincode. this is the command that its using -> docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n ${CHAINCODE_NAME} -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

lay-z (Wed, 10 Oct 2018 15:01:28 GMT):
perhaps try remove the pointer to the -ca_orderer certificate that you seem to have in your file?

atirekg (Wed, 10 Oct 2018 16:10:18 GMT):
any idea how to install chaincode on multiple peers?

Daka (Wed, 10 Oct 2018 16:17:21 GMT):
Has joined the channel.

Daka (Wed, 10 Oct 2018 16:21:10 GMT):
Hello, so I am trying to create a new network, reusing the given code from BYFN. I am trying to set 4 organizations with 3 peers each Taking cryptogen and crypto-config. Creating all 4 organizations by the given model, everything works fine. However when I get the configtxgen and try to change configtx.yaml, it gives me an error : [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: line 228: found character that cannot start any token This is when I add in profiles in SampleConsoritium: Organizations : -*Org1 -*Org2 -*Org 3 Adding Org3 is giving me an error However under Organizations I was successfully able to add Org 3 and 4

akshay.sood (Wed, 10 Oct 2018 17:10:05 GMT):
Hi Experts Does `key-level endorsement policies` overrides the endorsement policies that was set during `instantiate` or `upgrading chaincode`?

yacovm (Wed, 10 Oct 2018 18:48:19 GMT):
yes

ColeBoudreau (Wed, 10 Oct 2018 19:06:32 GMT):
When you do a chaincode upgrade, is there an option to actually replace the old version, as in remove its old instantiated container and replace it? I understand that if other channels rely on the old version of the chaincode it could no longer be instantiated with the old version, but forgetting that, the only option is to manually stop and remove the active container. Are stop chaincode commands going to be a 1.4 release?

Ultraledger (Wed, 10 Oct 2018 19:44:41 GMT):
Has joined the channel.

Ultraledger (Wed, 10 Oct 2018 19:49:17 GMT):
Hi, If we create a business network of participant nodes (A,B,C), can we have a channel to only allow A and B to share data. In that case what will C see ? (encrypted transaction or nothing). Then if we include C later, will C be able to access historical data exchanged previously by A and B or only new transactions/data ?

ColeBoudreau (Wed, 10 Oct 2018 21:30:25 GMT):
@Ultraledger If only A and B are in the channel, C will not be able to see any of that data exchanged in the channel between A and B. Later, if C joins, he will immediately get a copy of the channel ledger up to that point, and be able to see all historical data exchanged between A and B. It is possible to create private data within a channel, and if the original data between A and B was made private, and C joined later, he would not have access to said data, since it is private.

ColeBoudreau (Wed, 10 Oct 2018 21:30:25 GMT):
@Ultraledger If only A and B are in the channel, C will not be able to see any of that data exchanged in the channel between A and B. Later, if C joins, he will immediately get a copy of the channel ledger up to that point, and be able to see all historical data exchanged between A and B. It is possible to create private data within a channel, and if the original data between A and B was made private, and C joined later, he would not have access to said data, since it is private. To see more on private data: https://hyperledger-fabric.readthedocs.io/en/release-1.2/private-data/private-data.html

sandeepsethia62 (Thu, 11 Oct 2018 01:46:47 GMT):
Has joined the channel.

vdods (Thu, 11 Oct 2018 02:58:59 GMT):
I'm running a development Fabric network on my local machine -- it has 2 orgs, each org has 1 peer, both running the same version of the chaincode obviously. As far as I can tell, both peers are trying to use the same docker container for chaincode (because they happen to have the same config values in core.yaml for peer.id and peer.network), but clearly the org that made the container works, and the one that didn't doesn't work. While I can see an obvious workaround for this (changing the peer.id and/or peer.network to be distinct), it seems like maybe there should be more that goes into deciding the chaincode docker container name in order to avoid collisions like this

vdods (Thu, 11 Oct 2018 03:00:58 GMT):
In core.yaml, the comment for peer.id says `# The Peer id is used for identifying this Peer instance.` -- what scope does this identification actually apply to.. within the org, the consortium, network, the universe, etc?

LevinLMKwong (Thu, 11 Oct 2018 03:34:51 GMT):
I have a chaincode with endorsement policy `-P "AND ('PeerMSP.peer')"` But when I call invoke `peer chaincode invoke`, it fails, and the log shows: ``` signature_header:"\n\265\006\n\016PeerMSP\022\242\006-----BEGIN CERTIFICATE- ... ... validateEndorserTransaction -> DEBU d7a validateEndorserTransaction info: signature header is valid ... 2018-10-11 02:53:13.860 UTC [committer/txvalidator] VSCCValidateTx -> DEBU d91 VSCCValidateTx completes env bytes 0xc4220da000 2018-10-11 02:53:13.860 UTC [committer/txvalidator] validateTx -> ERRO d92 VSCCValidateTx for transaction txId = 38bcb60b758fb69132d94d34c8a8f23922124e16af5cb1666e2b4bded188f1d4 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy ```

LevinLMKwong (Thu, 11 Oct 2018 03:34:51 GMT):
I have a chaincode with endorsement policy `-P "AND ('PeerMSP.peer')"` But when I call invoke `peer chaincode invoke`, it fails, and the log shows: ``` signature_header:"\n\265\006\n\016PeerMSP\022\242\006-----BEGIN CERTIFICATE- ... ... validateEndorserTransaction -> DEBU d7a validateEndorserTransaction info: signature header is valid ... 2018-10-11 02:53:13.860 UTC [committer/txvalidator] VSCCValidateTx -> DEBU d91 VSCCValidateTx completes env bytes 0xc4220da000 2018-10-11 02:53:13.860 UTC [committer/txvalidator] validateTx -> ERRO d92 VSCCValidateTx for transaction txId = 38bcb60b758fb69132d94d34c8a8f23922124e16af5cb1666e2b4bded188f1d4 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy ``` So the signature is correct and it is the same MSP with my endorsement policy but still not satisfy policy???

LevinLMKwong (Thu, 11 Oct 2018 03:34:51 GMT):
I have a chaincode with endorsement policy `-P "AND ('PeerMSP.peer')"` But when I call invoke `peer chaincode invoke`, it fails, and the log shows: ``` signature_header:"\n\265\006\n\016PeerMSP\022\242\006-----BEGIN CERTIFICATE- ... ... validateEndorserTransaction -> DEBU d7a validateEndorserTransaction info: signature header is valid ... 2018-10-11 02:53:13.860 UTC [committer/txvalidator] VSCCValidateTx -> DEBU d91 VSCCValidateTx completes env bytes 0xc4220da000 2018-10-11 02:53:13.860 UTC [committer/txvalidator] validateTx -> ERRO d92 VSCCValidateTx for transaction txId = 38bcb60b758fb69132d94d34c8a8f23922124e16af5cb1666e2b4bded188f1d4 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy ``` So the signature is correct and it is the same MSP with my endorsement policy but still not satisfy policy??? Seems like it is because I did not enable OU, I update the endorsement policy to `.member` then succeed.

khetesh (Thu, 11 Oct 2018 05:45:34 GMT):
Hello guys , As per my understanding Admin in hyperledger fabric fabcar network is an only user(client) so this admin user has all the priviledge to issue certificates for other register user and to add/remove peers .... does it make sense to have admin which is not peer in network?

khetesh (Thu, 11 Oct 2018 05:45:34 GMT):
Hello guys , As per my understanding Admin in hyperledger fabric fabcar network is an only user(client) so this admin user has all the priviledge to issue certificates for other register user and to add/remove peers .... does it make sense to have admin which is not peer in network?

khetesh (Thu, 11 Oct 2018 05:45:34 GMT):
Hello guys , As per my understanding Admin in hyperledger fabric fabcar network is an only user(client), so this admin user has all the priviledge to issue certificates for other register user and to add/remove peers .... does it make sense to have admin which is not peer in network?

khetesh (Thu, 11 Oct 2018 05:46:10 GMT):
I appreciate any help, Thanks in advance

MuhammedHafil (Thu, 11 Oct 2018 06:02:15 GMT):
anyone connected byfn network with fabric client ?please share code if

hackartist (Thu, 11 Oct 2018 06:51:50 GMT):
how to use node.js sdk

MuhammedHafil (Thu, 11 Oct 2018 07:05:11 GMT):
I'm getting throw new Error('PEM encoded certificate is required.'); when adding newOrderer in fabric client

akoenig (Thu, 11 Oct 2018 07:08:10 GMT):
Hi is here anyone who has knowledge about to start HLF-Fabric with openshift / kubernetis?

MuhammedHafil (Thu, 11 Oct 2018 07:52:51 GMT):
what is the pem key to pass to fabricclient.newOrderer in byfn network? this one , crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem?

MuhammedHafil (Thu, 11 Oct 2018 07:52:51 GMT):
what is the pem key to pass to fabricclient.newOrderer in byfn network? this one , crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem?

MuhammedHafil (Thu, 11 Oct 2018 07:52:51 GMT):
what is the pem key to pass to fabricclient.newOrderer in byfn network? this one , crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem?

akshay.sood (Thu, 11 Oct 2018 07:59:17 GMT):
Hi Experts

akshay.sood (Thu, 11 Oct 2018 07:59:44 GMT):
Anyone have any idea how I can use `bigchaindb` with Hyperledger fabric?

Anu 226 (Thu, 11 Oct 2018 09:50:01 GMT):
Has joined the channel.

PrashantS (Thu, 11 Oct 2018 10:17:50 GMT):
HI, I'm running HLF v1.2 on Ubuntu 16.0.4, single org, single channel, while trying to start the network, I get the following error "FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied". From Orderer logs, I see the following messages "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-11 10:04:55.437 UTC [cauthdsl] func2 -> DEBU 0be 0xc42000e290 principal evaluation fails "

PrashantS (Thu, 11 Oct 2018 10:17:50 GMT):
HI, I'm running HLF v1.2 on Ubuntu 16.0.4, single org, single channel, while trying to start the network, I get the following error "FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied". From Orderer logs, I see the following messages "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-11 10:04:55.437 UTC [cauthdsl] func2 -> DEBU 0be 0xc42000e290 principal evaluation fails "

PrashantS (Thu, 11 Oct 2018 10:17:50 GMT):
HI, I'm running HLF v1.2 on Ubuntu 16.0.4, single org, single channel, while trying to start the network, I get the following error "FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied". From Orderer logs, I see the following messages "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-11 10:04:55.437 UTC [cauthdsl] func2 -> DEBU 0be 0xc42000e290 principal evaluation fails " Your inputs are highly appreciated... Thanks

PrashantS (Thu, 11 Oct 2018 10:17:50 GMT):
HI, I'm running HLF v1.2 on Ubuntu 16.0.4, single org, single channel, while trying to start the network, I get the following error "FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied". From Orderer logs, I see the following messages "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-11 10:04:55.437 UTC [cauthdsl] func2 -> DEBU 0be 0xc42000e290 principal evaluation fails https://lists.hyperledger.org/g/fabric/topic/hlf_1_2_single_org_orderer/27154861?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,27154861 " Your inputs are highly appreciated... Thanks

PrashantS (Thu, 11 Oct 2018 10:17:50 GMT):
HI, I'm running HLF v1.2 on Ubuntu 16.0.4, single org, single channel, while trying to start the network, I get the following error "FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied". From Orderer logs, I see the following messages "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-11 10:04:55.437 UTC [cauthdsl] func2 -> DEBU 0be 0xc42000e290 principal evaluation fails https://lists.hyperledger.org/g/fabric/topic/hlf_1_2_single_org_orderer/27154861?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,27154861 " Your inputs are highly appreciated... Thanks!

JoelB 5 (Thu, 11 Oct 2018 10:18:23 GMT):
Has joined the channel.

JoelB 5 (Thu, 11 Oct 2018 10:18:54 GMT):
Hello, got a bit of an issue installing Samples, Binaries and Docker Images from this url: https://hyperledger-fabric.readthedocs.io/en/release-1.3/install.html Once I run the command `curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0`, I receive the following error messages from my command line: Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/create?fromImage=hyperledger%2Ffabric-peer&tag=1.3.0: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/hyperledger/fabric-peer:1.3.0/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

JoelB 5 (Thu, 11 Oct 2018 10:22:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mhv3qi29iyCuDg8K8) I'm on Ubuntu 18.04.1, curl v.7.58.0 and docker v.18.06.1-ce

SrinathVangala (Thu, 11 Oct 2018 10:23:08 GMT):
Has joined the channel.

shailaja.mahara (Thu, 11 Oct 2018 10:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zudWEKLZMCXq2yoG8) @JoelB 5 does your user have docker privileges?

shailaja.mahara (Thu, 11 Oct 2018 10:32:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QGfyoEojRMmAQS6Bo) @PrashantS your orderer certificates are matching with what your application is expecting. check the certificates again, along with their path. It would also help if you check the cli container paths.

shailaja.mahara (Thu, 11 Oct 2018 10:32:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QGfyoEojRMmAQS6Bo) @PrashantS your orderer certificates do not match with what your application is expecting. check the certificates again, along with their path. It would also help if you check the cli container paths.

shailaja.mahara (Thu, 11 Oct 2018 10:34:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kG298zPYQEXLaZe4a) @akshay.sood I'm curious why you want to use bigchaindb

JoelB 5 (Thu, 11 Oct 2018 10:36:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=68jqubhrYXPmb7vZm) @shailaja.mahara @shailaja.mahara I'm using sudo, that should work no?

LabibFarag (Thu, 11 Oct 2018 11:16:03 GMT):
Integration

Daka (Thu, 11 Oct 2018 11:29:02 GMT):
Hello I am using the byfn example and I am trying to add 2 more organizations with 3 peers in each organization (total of 12 peers). However once I try to change the configtx file, I have problem with the profiles. Do you know where the problem might be ?

SaraInadam (Thu, 11 Oct 2018 11:33:35 GMT):
Has joined the channel.

MuhammedHafil (Thu, 11 Oct 2018 11:34:54 GMT):
can anybody provide example to connecting fabric client to a tls enabled network?Thanks

PrashantS (Thu, 11 Oct 2018 11:42:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vjorFpMzmbW2Mcazq) @shailaja.mahara @shailaja.mahara I made use of the configtx.yaml from the samples directory with the exception of changing the channel name, so I'm not sure why the error persists

PrashantS (Thu, 11 Oct 2018 11:42:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pEqgHkY823fcRJ44D) @JoelB 5 you should add your current user to docker group and avoid using sudo

knagware9 (Thu, 11 Oct 2018 11:43:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pEqgHkY823fcRJ44D) @JoelB 5 docker deamon is not running ,first restart docker daemon service

JoelB 5 (Thu, 11 Oct 2018 12:00:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Sm3JDprF8kbkGYAY4) @knagware9 @knagware9 I used `service docker restart` but same result

akshay.sood (Thu, 11 Oct 2018 12:31:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=37xuuynj3q7DoLqrp) One of my friend was asking about it.

JP (Thu, 11 Oct 2018 12:42:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RY9SuktH3arp4RLKq) For what by using Hyperledger composer or simple fabric-client?

PrashantS (Thu, 11 Oct 2018 12:44:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QEzMi558CFMrXbTgg) @shailaja.mahara would it possible for you to help me in identifying the issue?

JP (Thu, 11 Oct 2018 12:49:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mhv3qi29iyCuDg8K8) @JoelB 5 Yes i too had the same issue when i started, u need the sudo access for the docker account. just run this command sudo usermod -a -G docker $USER and then restart your system and try it again, it will work fine.

MuhammedHafil (Thu, 11 Oct 2018 12:54:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Rx5iuqck6Mh5ftkH3) @JP fabric client for BYFN network without composer

MuhammedHafil (Thu, 11 Oct 2018 12:56:15 GMT):
Currently iam using this code to sent a transaction (https://pastebin.com/GJPxnB7v) but getting below error

MuhammedHafil (Thu, 11 Oct 2018 12:56:51 GMT):
`=!=nwZ6KtWEp8KgEQ5t8=!= `

MuhammedHafil (Thu, 11 Oct 2018 12:56:51 GMT):
```` Successfully loaded user2 from persistence Assigning transaction_id: aa21f3df60f360204b87c2f91f06044bbb3a72b0c4ad4d2b843e91b3dea6b80c E1011 18:23:06.243432937 16357 ssl_transport_security.cc:626] Could not load any root certificate. E1011 18:23:06.243621910 16357 ssl_transport_security.cc:1689] Cannot load server root certificates. E1011 18:23:06.243679579 16357 security_connector.cc:1087] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1011 18:23:06.243705163 16357 secure_channel_create.cc:121] Failed to create secure subchannel for secure name 'localhost:7051' E1011 18:23:06.243733194 16357 secure_channel_create.cc:154] Failed to create subchannel arguments during subchannel creation. error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ``` `

JoelB 5 (Thu, 11 Oct 2018 12:59:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZfB9Hn6doAJaoHQnt) @JP working great, thanks a lot JP

saif_32 (Thu, 11 Oct 2018 13:19:10 GMT):
Has joined the channel.

edoardo_bdf (Thu, 11 Oct 2018 13:22:52 GMT):
Has joined the channel.

edoardo_bdf (Thu, 11 Oct 2018 13:23:29 GMT):
When modifying docker-compose-base.yaml for my project I get an invalid reference format error from docker on the image specification line. What's the cause of this? Thanks!

JP (Thu, 11 Oct 2018 13:25:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NXMtHGd5hroFe2CX7) @JoelB 5 Welcome :)

saif_32 (Thu, 11 Oct 2018 13:27:25 GMT):
hello

Daka (Thu, 11 Oct 2018 13:27:26 GMT):
@edoardo_bdf try again without using "TAB" for indentation, only space

saif_32 (Thu, 11 Oct 2018 13:27:58 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

saif_32 (Thu, 11 Oct 2018 13:28:12 GMT):
I am getting this error

saif_32 (Thu, 11 Oct 2018 13:28:30 GMT):
./byfn.sh up

saif_32 (Thu, 11 Oct 2018 13:28:35 GMT):
after this script

MuhammedHafil (Thu, 11 Oct 2018 13:28:52 GMT):
run ./byfn.sh down

Daka (Thu, 11 Oct 2018 13:28:54 GMT):
can you go /byfn.sh down

saif_32 (Thu, 11 Oct 2018 13:29:17 GMT):
okay let me try

saif_32 (Thu, 11 Oct 2018 13:30:30 GMT):
Stopping cli ... done Stopping peer0.org1.example.com ... done Stopping peer0.org2.example.com ... done Stopping peer1.org1.example.com ... done Stopping peer1.org2.example.com ... done Removing cli ... done Removing peer0.org1.example.com ... done Removing peer0.org2.example.com ... done Removing peer1.org1.example.com ... done Removing peer1.org2.example.com ... done Removing orderer.example.com ... done Removing network net_byfn Removing volume net_peer0.org3.example.com WARNING: Volume net_peer0.org3.example.com not found. Removing volume net_peer1.org3.example.com WARNING: Volume net_peer1.org3.example.com not found. Removing volume net_orderer.example.com Removing volume net_peer0.org2.example.com Removing volume net_peer0.org1.example.com Removing volume net_peer1.org1.example.com Removing volume net_peer1.org2.example.com ---- No containers available for deletion ---- ---- No images available for deletion ----

Daka (Thu, 11 Oct 2018 13:30:31 GMT):
anybody knows how can I manually add anchor peer0.org3 (exceeding the example) without using the eybf file

Daka (Thu, 11 Oct 2018 13:30:50 GMT):
now try ./byfn up again

Daka (Thu, 11 Oct 2018 13:30:50 GMT):
now try ./byfn.sh up again

saif_32 (Thu, 11 Oct 2018 13:31:29 GMT):
yes, I tried ./byfn.sh up but got the same error message

saif_32 (Thu, 11 Oct 2018 13:32:45 GMT):
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Channel name : mychannel Creating channel... + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

edoardo_bdf (Thu, 11 Oct 2018 13:33:19 GMT):
@Daka Still same problem

nrohith (Thu, 11 Oct 2018 13:34:08 GMT):
Any resources/documentation on the anatomy of a block in Fabric?

MuhammedHafil (Thu, 11 Oct 2018 13:36:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qbSu8oFZw2BAryqEv) @saif_32 change timeout and delay ./byfn.sh -t 90 -d 5 , this worked for me

Daka (Thu, 11 Oct 2018 13:36:59 GMT):
@edoardo_bdf I don't have better ideas for the moment , sorry ;/

saif_32 (Thu, 11 Oct 2018 13:38:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kPmeAAvTcAGtKrbST) @MuhammedHafil how change that ?

saif_32 (Thu, 11 Oct 2018 13:38:30 GMT):
how to* change that ?

MuhammedHafil (Thu, 11 Oct 2018 13:39:43 GMT):
./byfn.sh up -t 90 -d 5

AndreiLovin (Thu, 11 Oct 2018 13:41:20 GMT):
Hello, I've been trying to integrate a NodeJS application to my Fabric network. I'm using the following sample https://github.com/olegabu/fabric-starter-rest. The problem is that I'm receiving the following errors while I'm trying to register a user: JWT=`(curl -d '{"username":"user1","password":"pass"}' --header "Content-Type: application/json" http://localhost:3000/users | tr -d '"')` echo $JWT fabric-ca request register failed with errors [[{\code\:0,\message\:\Registration of 'user1' failed in affiliation validation: Failed getting affiliation 'manager': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set\}]] The CA Logs are: ca.Config: &{Version:1.3.0-rc1 Cfg:{Identities:{AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name:ca-manager Keyfile:/etc/hyperledger/fabric-ca-server-config/d7eb2855ec763f3f07071111797926920c1900c42b00f564a5aa27e6fbfd2a79_sk Certfile:/etc/hyperledger/fabric-ca-server-config/ca.manager.test.com-cert.pem Chainfile:/etc/hyperledger/fabric-ca-server/ca-chain.pem} Signing:0xc4205411f0 CSR:{CN:ca.manager.test.com Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[ae9e461c2d7f localhost] KeyRequest:0xc42054e260 CA:0xc420519fe0 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.Registrar.Roles:* hf.Registrar.DelegateRoles:* hf.Revoker:1 hf.IntermediateCA:1 hf.GenCRL:1 hf.Registrar.Attributes:* hf.AffiliationMgr:1] }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:/etc/hyperledger/fabric-ca-server/fabric-ca-server.db TLS:{false [] { }} } CSP:0xc4205184a0 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile:/etc/hyperledger/fabric-ca-server/IssuerPublicKey IssuerSecretKeyfile:/etc/hyperledger/fabric-ca-server/msp/keystore/IssuerSecretKey RevocationPublicKeyfile:/etc/hyperledger/fabric-ca-server/IssuerRevocationPublicKey RevocationPrivateKeyfile:/etc/hyperledger/fabric-ca-server/msp/keystore/IssuerRevocationPrivateKey RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2018/10/10 14:08:34 [DEBUG] DB: Getting identity user1 2018/10/10 14:08:34 [INFO] 172.21.0.1:59522 POST /api/v1/enroll 401 23 "Failed to get user: : scode: 404, code: 63, msg: Failed to get User: sql: no rows in result set" 2018/10/10 14:08:34 [DEBUG] Received request for /api/v1/register 2018/10/10 14:08:34 [DEBUG] Caller is using a x509 certificate 2018/10/10 14:08:34 [INFO] 172.21.0.1:59524 POST /api/v1/register 401 26 "Untrusted certificate: Failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.manager.test.com")"

saif_32 (Thu, 11 Oct 2018 13:41:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MuhmmeQikKCt3mfPJ) @MuhammedHafil It did not work :(

MuhammedHafil (Thu, 11 Oct 2018 13:44:31 GMT):
did you first run ./byfn.sh down ?

saif_32 (Thu, 11 Oct 2018 13:50:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2EHpjBZRmwNBgReHT) @MuhammedHafil yes

PrashantS (Thu, 11 Oct 2018 13:57:25 GMT):
Appreciate your help with this issue - https://lists.hyperledger.org/g/fabric/topic/hlf_1_2_single_org_orderer/27154861?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,27154861

MuhammedHafil (Thu, 11 Oct 2018 14:19:34 GMT):
almost 2 days. no help on connecting a tls enabled network (eg:byfn) with fabric client node sdk :pensive:

ColeBoudreau (Thu, 11 Oct 2018 14:23:36 GMT):
Where are endorsement policies physically stored?

Purbaja (Thu, 11 Oct 2018 14:26:33 GMT):
Has joined the channel.

Purbaja (Thu, 11 Oct 2018 14:26:37 GMT):
Hi All, In fabric 1.2, while i am making two parallel calls in a private collection, sometimes I am getting response and sometime the response is coming blank. Have anyone faced such issue? please suggest.

Daka (Thu, 11 Oct 2018 14:56:26 GMT):
from here https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html I would suggest that the policy is part of the chaincode/SDK

Daka (Thu, 11 Oct 2018 14:56:26 GMT):
@ColeBoudreau from here https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html I would suggest that the policy is part of the chaincode/SDK

dave.enyeart (Thu, 11 Oct 2018 18:50:01 GMT):
@laurensdegilde for PutState() there is no interaction with state database. The writes just get saved to the transaction proposal response 'write set' and will later be applied to state database if the transaction is validated.

yulong12 (Fri, 12 Oct 2018 02:24:58 GMT):
Hi.everyone. when I add an org to an launched fabric-network based https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html. when I execute the ``` peer channel join -b mychannel.block ```

yulong12 (Fri, 12 Oct 2018 02:25:21 GMT):
it appoears ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7051: failed to create new connection: context deadline exceeded ```

yulong12 (Fri, 12 Oct 2018 02:25:47 GMT):
so who can help me what is this problem?

CodyCoe (Fri, 12 Oct 2018 02:30:30 GMT):
node-red

yulong12 (Fri, 12 Oct 2018 02:31:08 GMT):
Hi.everyone. when I add an org to an launched fabric-network based https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html. when I execute the ``` peer channel join -b mychannel.block ``` it appoears ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7051: failed to create new connection: context deadline exceeded ``` so who can help me what is this problem?

yulong12 (Fri, 12 Oct 2018 03:00:55 GMT):
who can help me in this question https://stackoverflow.com/questions/52771585/endorser-client-failed-to-connect-to-peer0-org3-example-com7051

PrashantS (Fri, 12 Oct 2018 03:12:26 GMT):
Could anyone help me with this question - https://stackoverflow.com/questions/52733774/hlf-1-2-single-org-orderer-logs-the-identity-is-a-member-of-a-different-msp

JP (Fri, 12 Oct 2018 04:52:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r2T7ZAKzggTn9sauo) Could you show the log for docker logs -f peer0.org3.example.com Because u shared log for only peer0.org1.example.com.

JP (Fri, 12 Oct 2018 04:53:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6QgjHKG6yEvFSNHsY) Then only i can figure out the issue

bongaquino (Fri, 12 Oct 2018 04:59:56 GMT):
Has joined the channel.

bongaquino (Fri, 12 Oct 2018 05:00:03 GMT):
recipe for target 'unit-test' failed make: *** [unit-test] Error 1

bongaquino (Fri, 12 Oct 2018 05:00:25 GMT):
I cannot escape this part - I need help.

bongaquino (Fri, 12 Oct 2018 05:00:34 GMT):
source is from https://gerrit.hyperledger.org/r/fabric

PrashantS (Fri, 12 Oct 2018 05:31:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iMprSg2LMrczEWL7X) Appreciate your help with this!

MuhammedHafil (Fri, 12 Oct 2018 06:14:09 GMT):
`=!=exP57h8XdQQSt2Lhr=!= `

MuhammedHafil (Fri, 12 Oct 2018 06:14:09 GMT):
```` Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" The transaction was invalid, code = ENDORSEMENT_POLICY_FAILURE Send transaction promise and event listener promise have completed Successfully sent transaction to the orderer. Transaction failed to be committed to the ledger due to ::ENDORSEMENT_POLICY_FAILURE ``` `

MuhammedHafil (Fri, 12 Oct 2018 06:14:50 GMT):
getting this error while conneting to first network with fabric client , code - https://pastebin.com/SFEVXXvM

tahaf10 (Fri, 12 Oct 2018 06:41:57 GMT):
Can someone help me with this please https://stackoverflow.com/questions/52773529/hyperledger-fabric-nodejs-sdk-eventhub-has-been-shutdown

kolayuk (Fri, 12 Oct 2018 06:57:25 GMT):
Hello! Does Fabic support concurrent reads (and it is interesting about writes to different keys) from ledger (CouchDB) at chaincode? I am using goroutines for concurrent reads and if first read (stub.GetState) is ok, the other ones are failed with error [5db62098] error sending GET_STATE: [channel-name] channel exists. There is also error in logs: Another state request pending for this Txid. Cannot process which refers to https://github.com/hyperledger/fabric/blob/c45fde94b72a0f2fad7db37dff54d08ed4b280a8/core/chaincode/shim/handler.go#L507 It seems it cannot get a channel to communicate between cc-container and peer-container

kolayuk (Fri, 12 Oct 2018 06:58:43 GMT):
So, is any workaround to get concurrent to work? Sequental processing is very slow on big batches of data (10-50k)

alakshendr (Fri, 12 Oct 2018 08:24:22 GMT):
Has joined the channel.

laurensdegilde (Fri, 12 Oct 2018 08:29:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eG8oJ5PJLPnvpHyzb) @dave.enyeart What if the key is already known in the state database? How is this handled?

sandeepsethia62 (Fri, 12 Oct 2018 08:30:57 GMT):
Has left the channel.

NoLimitHoldem (Fri, 12 Oct 2018 08:32:48 GMT):
Hello everyone, I would like to ask, when building a production network with Kafka, is there any backup and recovery recommendation steps/docs for Kafka? Or just backing up Kafka (probably also for zookeeper) is enough? (let's say I don't back up Orderer and Peer data, as I know, Peer can be recovered from Orderer, and Orderer can be recovered from Kafka) Or any other backup strategies?

NoLimitHoldem (Fri, 12 Oct 2018 08:32:48 GMT):
Hello everyone, I would like to ask, when building a production network with Kafka, is there any backup and recovery recommendation steps/docs for Kafka? Or just backing up Kafka (probably also for zookeeper) is enough? (let's say I don't back up Orderer and Peer data, as I know, Peer can be recovered from Orderer, and Orderer can be recovered from Kafka)

NoLimitHoldem (Fri, 12 Oct 2018 08:35:11 GMT):
Another question is, are multiple "Orderer orgs" possible?

PrashantS (Fri, 12 Oct 2018 09:29:13 GMT):
Wondering why this comes up with newly deployed chaincode "2018-10-12 09:28:25.610 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 04d ESCC invoke result: response: Error: endorsement failure during invoke. chaincode result: "

khetesh (Fri, 12 Oct 2018 09:52:18 GMT):
Hello guys , Is it possible to make rest api in nodejs by using we can add more peer in hyperledger fabcar or first network? Please suggest something ..... I am eagerly waiting for all your response

lay-z (Fri, 12 Oct 2018 10:06:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZfYt4mSpxFh7CCMZF) @tahaf10 Just responded. We had so many similar issues to what you had as well. Please read and let me know what works for you

khetesh (Fri, 12 Oct 2018 10:35:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vRdPQH2pcWi6PCGxo) Guys please let me know if somebody has already achieved it?

gravity (Fri, 12 Oct 2018 11:18:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8PL5wE44uQwQJ5HRZ) @khetesh Actually, you can register new peer identities using some rest api that you can implement. but a peer requires a docker container to run in. if you have dedicated hardware resources, you can register a peer identity on CA, create a container for that peer and run it, peek container location and use it in your application

khetesh (Fri, 12 Oct 2018 11:48:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YhRAsAvWSEudKmcET) @gravity 1)Do you have some link where this thing has been already achieved? yes i have sufficient hardware resources.... 2)can i do this thing in such a way that , like i will pass only name of peer name("peer1","peer2") to rest api e.g (http://localhost:3000/addPeer) without any proper identity of peer then and then it would create random peer and add it to existing network like fabcar or first network?

khetesh (Fri, 12 Oct 2018 11:52:54 GMT):
or else can i build such rest api by using that i can build yaml file for generating new peer and add that peer to same netwok?

khetesh (Fri, 12 Oct 2018 11:53:50 GMT):
hope you understood @gravity

atirekg (Fri, 12 Oct 2018 12:01:46 GMT):
Guys, anyone have knowledge how to use this API https://fabric-sdk-node.github.io/AffiliationService.html

khetesh (Fri, 12 Oct 2018 12:11:51 GMT):
@gravity if you have some idea to do this please share ........

khetesh (Fri, 12 Oct 2018 12:12:16 GMT):
because i am struggling to do this

waxer (Fri, 12 Oct 2018 12:29:09 GMT):
@nrohith , https://hyperledger-fabric.readthedocs.io/en/release-1.3/ledger/ledger.html

MuhammedHafil (Fri, 12 Oct 2018 12:38:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vRdPQH2pcWi6PCGxo) @khetesh refer fabric-samples/balance-transfer/

khetesh (Fri, 12 Oct 2018 12:39:46 GMT):
can you send some link

khetesh (Fri, 12 Oct 2018 12:39:54 GMT):
@MuhammedHafil

MuhammedHafil (Fri, 12 Oct 2018 12:40:38 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer

MuhammedHafil (Fri, 12 Oct 2018 12:41:54 GMT):
iam not sure it is what you are looking for. but check it

khetesh (Fri, 12 Oct 2018 12:43:21 GMT):
ok sure i will check it

khetesh (Fri, 12 Oct 2018 12:44:45 GMT):
Actually i am looking to build a tool or small poc where user can create fabcar network and and can add multiple peer in that

khetesh (Fri, 12 Oct 2018 12:45:27 GMT):
So for that i wanted to make rest api for user to interact with network and add new peer

khetesh (Fri, 12 Oct 2018 12:46:32 GMT):
I have seen in crypto-config.yaml file if we change the attribute of that file like count then it will create that nummber of peer for us

khetesh (Fri, 12 Oct 2018 12:46:32 GMT):
I have seen in crypto-config.yaml file if we change the attribute of that file like count then it will create that nummber of peer for us

khetesh (Fri, 12 Oct 2018 12:46:54 GMT):
@MuhammedHafil

khetesh (Fri, 12 Oct 2018 12:49:37 GMT):
do we make any api which will change configuration of crypto-config yaml file attribute and then , Again will make one more api to run our ./startFabric.sh

khetesh (Fri, 12 Oct 2018 12:49:54 GMT):
iknow its something kind of stupid question

khetesh (Fri, 12 Oct 2018 12:49:54 GMT):
i know its something kind of stupid question

dave.enyeart (Fri, 12 Oct 2018 13:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JpwMva2Lh4tWeW7yZ) @laurensdegilde Upon commit any key that was PutState() will overwrite the prior key value, if it already existed. If you need to distinguish between Creates and Updates, then in your chaincode logic you need to first GetState() and handle accordingly. Doing the GetState() will also ensure that the key value doesn't change between chaincode execution and commit time, as the readset versions are verified as part of the validation/commit. So most chaincodes should GetState() first, unless your application uses unique keys for each tran, or if you explicitly want 'blind writes' over any existing data (fairly rare requirement).

laurensdegilde (Fri, 12 Oct 2018 13:31:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RrMGFWNyf4fBmSzH9) @dave.enyeart Best answer I could hope for, thank you very much.

nrohith (Fri, 12 Oct 2018 13:41:32 GMT):
@waxer Thanks.

Baha-sk (Fri, 12 Oct 2018 16:41:21 GMT):
Has joined the channel.

Baha-sk (Fri, 12 Oct 2018 16:43:48 GMT):
quick question: do peers restart CC containers while the peer is running? and how can we ensure the cc containers are not rebuilt/restarted ?

Baha-sk (Fri, 12 Oct 2018 16:43:48 GMT):
quick question: do peers restart CC containers while the peer is running? and how can we ensure the cc containers are not rebuilt/restarted once initialized and launched?

cbf (Fri, 12 Oct 2018 18:06:51 GMT):
yes, they will restart they are only built/initialized once the peer ensures that

Baha-sk (Fri, 12 Oct 2018 18:52:59 GMT):
but only once, right? are there any circumstances where the peer has to stop/unregister a container and start again?

Baha-sk (Fri, 12 Oct 2018 18:52:59 GMT):
but only once, right? are there any circumstances where the peer has to stop/unregister a container and start it again?

Baha-sk (Fri, 12 Oct 2018 18:52:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7zjbGjNPBdbNM8vbX) but only once, right? are there any circumstances where the peer has to stop/unregister a container and start it again? (other than through lscc's install/upgrade invocations)

Baha-sk (Fri, 12 Oct 2018 18:52:59 GMT):
but only once, right? are there any circumstances where the peer has to stop/unregister a container and start it again? (other than through lscc's install/upgrade invocations)

yousaf (Fri, 12 Oct 2018 19:59:58 GMT):
Hi everyone. Is there any limit for a single ordering service node to bear the maximum specified number of channels and maximum number of organizations within each channel?

waxer (Fri, 12 Oct 2018 20:42:40 GMT):
When does the peer decides to stop the container?

yousaf (Fri, 12 Oct 2018 21:13:19 GMT):
@waxer I may be wrong but as much as i can guess is that behind the scenes, container is the one which is running the peer. So the when we stop the specific container using docker command then our peer is also stopped for that specified container or when we stop the network.

billchen (Fri, 12 Oct 2018 21:26:34 GMT):
Has joined the channel.

billchen (Fri, 12 Oct 2018 21:30:17 GMT):
Hello, I'm having some issues with a CC container not being able to connect to my local peer (https://stackoverflow.com/questions/52787074/cant-connect-error-trying-to-connect-to-local-peer-context-deadline-exceeded). Could somebody help me with this?

plato (Fri, 12 Oct 2018 22:05:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=td4MEb36Nm2kseChy) @laurensdegilde @dave.enyeart once overwrite the prior key value , what gonna happen for old key-value, I mean does the system keep the tracking and versioning of that one ? in case to get history of that key ,

Jgnuid (Fri, 12 Oct 2018 23:40:46 GMT):
@plato , the old-key value would stop being present in the 'current state of the world', thus it wouln't exist in LevelDB or CouchDB (afaik). The old value is kept in the ledger, which contains all the transactions that happened in time. I guess that the shim interface GetHistoryForKey() gets those values from the ledger... I think the ledger should be configured appropiatelly (not sure about if is set as default), and you should be careful since GetHistoryForKey is not revaluated at commit time thus you have risk of having phantoms.

dave.enyeart (Sat, 13 Oct 2018 03:16:56 GMT):
@Jgnuid your answer is 100% correct

Msaleh97 (Sat, 13 Oct 2018 03:18:29 GMT):
Has joined the channel.

Msaleh97 (Sat, 13 Oct 2018 03:18:48 GMT):
Hi, I'm currently learning Hyperledger fabric and have my own project running with a classmate of mine. I've been experiencing a lot of issues on my mac while it has been working flawlessly for him is that something normal?

Msaleh97 (Sat, 13 Oct 2018 03:18:48 GMT):
Hi, I'm currently learning Hyperledger fabric and have my own project running with a classmate of mine. I've been experiencing a lot of issues on my mac while it has been working flawlessly for him is that something normal? He is using windows by the way.

richiehubbard (Sat, 13 Oct 2018 03:22:48 GMT):
Has joined the channel.

Msaleh97 (Sat, 13 Oct 2018 03:23:35 GMT):
I am trying delete a composite key within the database using the "APIstub.DelState(queryBytes.Key)" function. This was working up until today when it randomly stopped working and I'm getting this error: " Error: Error endorsing invoke: rpc error: code = Unknown desc = error executing chaincode: failed to execute transaction: timeout expired while executing transaction - "

akshay.sood (Sat, 13 Oct 2018 07:41:06 GMT):
Hi Experts

akshay.sood (Sat, 13 Oct 2018 07:41:24 GMT):
Is there any good tutorial for implementing ACL using MSP??

mrudav.shukla (Sat, 13 Oct 2018 07:49:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K77xoWRn5jsLkmivx) @billchen Which version of fabric are you using?

vaibnak7 (Sat, 13 Oct 2018 08:55:45 GMT):
Has joined the channel.

vaibnak7 (Sat, 13 Oct 2018 08:55:59 GMT):
I am following _writing your first application_ tutorial in the hyperledger fabric docs, there i followed the steps mentioned 1) doing npm install 2) doing ./startFabric.sh 3) node enrollAdmin.js But using node enrollAdmin.js shows me the error fabric client not installed, i looked for the solution , which said to check the python version to 2.7 instead of the default 3.x , but i was already having python 2.7. Another solution said to do npm upgrade , but it is again giving an error by the name "gyp warn EACCESS : user root does not have permission to acces dev dir ", please guide me on how to proceed

vaibnak7 (Sat, 13 Oct 2018 08:55:59 GMT):
I am following _writing your first application_ tutorial in the hyperledger fabric docs, there i followed the steps mentioned 1) doing npm install 2) doing ./startFabric.sh 3) node enrollAdmin.js But using node enrollAdmin.js shows me the error fabric client not installed, i looked for the solution , which said to check the python version to 2.7 instead of the default 3.x , but i was already having python 2.7. Another solution said to do npm upgrade , but it is again giving an error by the name "gyp warn EACCESS : user root does not have permission to acces dev dir ", please guide me on how to proceed

vaibnak7 (Sat, 13 Oct 2018 08:55:59 GMT):
Hello everyone, I am following _writing your first application_ tutorial in the hyperledger fabric docs, there i followed the steps mentioned 1) doing npm install 2) doing ./startFabric.sh 3) node enrollAdmin.js But using node enrollAdmin.js shows me the error fabric client not installed, i looked for the solution , which said to check the python version to 2.7 instead of the default 3.x , but i was already having python 2.7. Another solution said to do npm upgrade , but it is again giving an error by the name "gyp warn EACCESS : user root does not have permission to acces dev dir ", please guide me on how to proceed

vaibnak7 (Sat, 13 Oct 2018 08:56:24 GMT):
Hello everyone

vaibnak7 (Sat, 13 Oct 2018 08:59:17 GMT):
My node version is 8.12, npm version is 6.4.1, OS is ubuntu bionic beaver

DeepakMP (Sat, 13 Oct 2018 09:48:31 GMT):
Hi all,

DeepakMP (Sat, 13 Oct 2018 09:48:37 GMT):
Error: error getting broadcast client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

DeepakMP (Sat, 13 Oct 2018 09:49:08 GMT):
I'm getting this error when trying to start a private collection in Fabric.

DeepakMP (Sat, 13 Oct 2018 09:51:34 GMT):
Following the docs properly and everything at the basic level seems to work (creating first app, creating first network, and extending first network - have not tried upgrading network parts yet). But as I create the private collections feature, it stops precisely at this step.

DeepakMP (Sat, 13 Oct 2018 09:53:24 GMT):
This happens when I start the network, go into the peer container using 'docker exec -it cli bash' and instantiate the chaincode on the peer (peer chaincode install -n marblesp -v 1.0 -p github.com/chaincode/marbles02_private/go/) which works.

DeepakMP (Sat, 13 Oct 2018 09:56:03 GMT):
But when I instantiate it on the channel (peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n marblesp -v 1.0 -c '{"Args":["init"]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config $GOPATH/src/github.com/chaincode/marbles02_private/collections_config.json --connTimeout 30s) it produces this error and I dont know how proceed further. Can someone help me understand what's wrong here or how to get my chaincode instantiated on my channel because I have to get the private collections to work?

NishadTat (Sat, 13 Oct 2018 09:57:00 GMT):
Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.....

NishadTat (Sat, 13 Oct 2018 09:57:00 GMT):
Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.....

PrashantS (Sat, 13 Oct 2018 09:57:45 GMT):
LS, While trying to run the following command "peer chaincode list --instantiated -C mychannel", it apparently does not list the chaincode which was instantiated .... I have run the following command on the cli container to instantiate the chaincode "peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n tuna-app -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')"". Apparently, there is no error ... appreciate your time and help

DeepakMP (Sat, 13 Oct 2018 09:59:00 GMT):
@PrashantS I think you might be 1 step ahead of me. Would appreciate your help or insight into the error I'm getting it.

DeepakMP (Sat, 13 Oct 2018 09:59:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m7bEZd9XRZDPPB2Rk) This is the error I'm needing to fix!

NishadTat (Sat, 13 Oct 2018 09:59:38 GMT):
While running fabric-samples/balance transfer, [ERROR] Create-Channel - Error: Failed to connect before the deadline URL:grpcs://localhost:7050....

PrashantS (Sat, 13 Oct 2018 10:08:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zMFZao8kBtC3tZBTt) @DeepakMP @DeepakMP, I got this error too, issue is with the crypto material that ./generate.sh generates. Make sure yo update the ./generate.sh file for any changes you have made in configtx.yaml. For example, I changed the channel name, added an additional org, and set it up as an Anchor peer ...

DeepakMP (Sat, 13 Oct 2018 10:17:37 GMT):
@PrashantS I didn't change either of those! For context, I'm running this in the fabcar directory and following the 4.1 Writing your first Application sequence not the 4.2 Building your first sequence tutorial. But I remember when I did 4.2 and then tried private collections thereafter, I generated the same error as well.

DeepakMP (Sat, 13 Oct 2018 10:17:46 GMT):
Could this be a docker related error?

DeepakMP (Sat, 13 Oct 2018 10:19:16 GMT):
Could this be related to some communication between different docker images as my orderer and peer are in different containers. My commands run in the peer container (using docker exec -it cli bash) (at least thats what I think) and its unable to talk to orderer container.

DeepakMP (Sat, 13 Oct 2018 10:20:16 GMT):

Screen Shot 2018-10-13 at 3.38.34 PM.png

DeepakMP (Sat, 13 Oct 2018 10:20:42 GMT):

Screen Shot 2018-10-13 at 3.38.35 PM.png

PrashantS (Sat, 13 Oct 2018 10:30:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aeYn69u3Jwpt65KGi) @DeepakMP I presume there are orphan volumes/images lingering. Under 4.1, the doc talks about purging/pruning the network in case you started the containers earlier with ./byfn.sh ... I was working with fabcar/balance transfer apps on 1.2 and I had noticed that lingering containers created an issue.

DeepakMP (Sat, 13 Oct 2018 10:34:09 GMT):
let me try again. But I doubt its going to help, as today I took down existing networks using #cd /fabcar #cd ../first-network #./byfn.sh down #docker network prune #cd ../fabcar #...rest of steps for 4.1...

akshay.sood (Sat, 13 Oct 2018 11:37:48 GMT):
@DeepakMP Your cli is not able to connect to your orderer

akshay.sood (Sat, 13 Oct 2018 11:37:56 GMT):
there is something wrong with your orderer

akshay.sood (Sat, 13 Oct 2018 11:39:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u2wzL7wFQFDgSDcFB) Anyone have good tutorial for ACL ?

ruien (Sat, 13 Oct 2018 12:33:26 GMT):
Has joined the channel.

ruien (Sat, 13 Oct 2018 12:43:08 GMT):
Hi all. Quick question (I hope): Setting up a network under fabric 1.3, suppose I have three organizations Org{1..3} which run their own root CA and have one peer each. Each org will run an Orderer under Kafka; in this situation, is it customary to place all three orderers under a separate OrdererOrg (as is in the case in the e2e_cli/configtx.yaml example) or is it equally valid for each to be a member of each org's own MSP and have no OrdererOrg at all? Most likely I just need to understand configtxgen/permissions better but documentation on the "orderer side" and "application side" of the network seems lacking, and I don't understand why this delineation is necessary.

DeepakMP (Sat, 13 Oct 2018 13:20:03 GMT):
@akshay.sood ideas debugging this?

DeepakMP (Sat, 13 Oct 2018 13:32:20 GMT):
This is my command: (peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n marblesp -v 1.0 -c '{"Args":["init"]}' -P "OR('Org1MSP.member')" --collections-config $GOPATH/src/github.com/marbles02_private/collections_config.json --connTimeout 30s). I get this without sudo: Error: error getting broadcast client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

DeepakMP (Sat, 13 Oct 2018 13:32:53 GMT):
and with sudo I get Error: error getting endorser client for instantiate: endorser client failed to connect to 0.0.0.0:7051: failed to create new connection: context deadline exceeded

DeepakMP (Sat, 13 Oct 2018 13:33:32 GMT):
and in sudo case, it doesn't even wait 30s, it shows error within ~2 seconds

ruien (Sat, 13 Oct 2018 13:57:39 GMT):
@DeepakMP I can't think of any reason to run `peer` with sudo. Can you telnet to orderer.example.com:7050?

PrashantS (Sat, 13 Oct 2018 14:14:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cvLT3rRrKS2Sg5EGw) @DeepakMP Are you making use of different VM's or are they all running on the same box?

DeepakMP (Sat, 13 Oct 2018 14:20:19 GMT):
The ./startFabric.sh file in /fabcar directory seems to install and instantiate chaincode on peer and channel, so I thought I could piggyback on that instantiation to get my instantiation (although for private collection) done. I added this command right in the startFabric.sh script right after it instantiates the fabcar chaincode:

DeepakMP (Sat, 13 Oct 2018 14:20:20 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n marble02 -l "$LANGUAGE" -v 1.0 -c '{"Args":[""]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config /opt/gopath/src/github.com/marbles02_private/collections_config.json

DeepakMP (Sat, 13 Oct 2018 14:20:58 GMT):
I get the following error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg as V1_2 or later capability is not enabled, private channel collections and data are not available

ruien (Sat, 13 Oct 2018 14:24:36 GMT):
was `V1_2: true` set in configtx.yaml for channel and application capabilities?

ruien (Sat, 13 Oct 2018 14:24:36 GMT):
was `V1_2: true` set in configtx.yaml for `ChannelCapabilities` and `ApplicationCapabilities` capabilities?

DeepakMP (Sat, 13 Oct 2018 14:25:16 GMT):
fabcar directory doesn't have configtx.yaml

DeepakMP (Sat, 13 Oct 2018 14:25:24 GMT):
or any yaml for that matter

ruien (Sat, 13 Oct 2018 14:26:03 GMT):
well one way or another you had to generate the genesis block and channel configuration transaction -- so that's what I'm referring to: however you created those.

ruien (Sat, 13 Oct 2018 14:26:28 GMT):
it could be as simple as you didn't enable those capabilities when you generated them

ruien (Sat, 13 Oct 2018 14:27:32 GMT):
consider the sample config here: https://github.com/hyperledger/fabric/blob/release-1.3/sampleconfig/configtx.yaml

ruien (Sat, 13 Oct 2018 14:27:32 GMT):
consider the `Capabilities` section of the sample config here: https://github.com/hyperledger/fabric/blob/release-1.3/sampleconfig/configtx.yaml

DeepakMP (Sat, 13 Oct 2018 14:30:43 GMT):
ok so my ./startFabric.sh changes directory and opens ./../basic-network/start.sh where apparently creation of first block is happening via these two lines (because thereafter it talks about creating and joining peer to channel):

DeepakMP (Sat, 13 Oct 2018 14:30:44 GMT):
docker-compose -f docker-compose.yml down docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb

DeepakMP (Sat, 13 Oct 2018 14:31:25 GMT):
there is a configtx.yaml in the basic-network directory, but I dont know if/where its being referred

ruien (Sat, 13 Oct 2018 14:31:47 GMT):
I'd recommend not using any of the examples

ruien (Sat, 13 Oct 2018 14:32:18 GMT):
Just deploy the whole network one command at a time. It will take awhile but then you'll understand when and where everything is happening.

DeepakMP (Sat, 13 Oct 2018 14:32:30 GMT):
yes, if at all its being referred, I see only 1_1 being set as true, no mention of 1_2 or 1_3

ruien (Sat, 13 Oct 2018 14:33:35 GMT):
It's a shot in the dark, but you could try replacing `V1_1: true` with `V1_3: true` everywhere, destroying all your containers and trying again (ensuring that you're on 1.3 images).

DeepakMP (Sat, 13 Oct 2018 14:33:40 GMT):
ok, how so? you mean I work from first-network directory and follow section 4.2 ?

DeepakMP (Sat, 13 Oct 2018 14:34:26 GMT):
your reference doc enables all three, if I create 1_3, assuming 1_2 capabilities are built in.

DeepakMP (Sat, 13 Oct 2018 14:34:46 GMT):
(but let me try that- trying now)

ruien (Sat, 13 Oct 2018 14:35:04 GMT):
I did it by throwing away cryptogen, deploying fabric-ca, generating the certs for admins, orderers, and peers, then deploying zookeeper, kafka, orderers, and peers each in a docker container. You can compile the source with `make native` and `make docker` instead of relying on any upstream prebuilt images

ruien (Sat, 13 Oct 2018 14:35:18 GMT):
Took about 3-4 days

DeepakMP (Sat, 13 Oct 2018 14:35:20 GMT):
(still not sure where the .yaml reference is happening but let me try it)

DeepakMP (Sat, 13 Oct 2018 14:38:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7iGuaEBkreXTe47a5) @ruien ok, is there a reference or something I can follow for this? I'm not as well versed with Docker to handle this totally myself

ruien (Sat, 13 Oct 2018 14:38:29 GMT):
To answer your question, I also assume that 1_3 includes previous capabilities but probably not strictly so; for instance, if there's a peer that's still on 1.1, then there could be a cap it tries to use but has been superseded by something else. In both your case and mine, everything is on the same version, so it's presumably a non-issue.

ruien (Sat, 13 Oct 2018 14:38:44 GMT):
No, I had to figure everything out myself.

DeepakMP (Sat, 13 Oct 2018 14:39:21 GMT):
I'd set everything to true: 1_2 and 1_3. I think its working because the error is different now:

DeepakMP (Sat, 13 Oct 2018 14:39:23 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown

ruien (Sat, 13 Oct 2018 14:40:09 GMT):
Actually, I'll take that back. I'm also fluent in Chinese and found this guy's guides to be helpful: https://www.cnblogs.com/llongst/p/9348963.html

ruien (Sat, 13 Oct 2018 14:40:15 GMT):
However, he's still way off in some places.

DeepakMP (Sat, 13 Oct 2018 14:41:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2EovEBKCsgaCSi96K) @ruien ok. I mean, tactical things you could figure out from docs and searches but logical steps/connects I wouldn't be sure of. Dont have much development experience.

ruien (Sat, 13 Oct 2018 14:43:06 GMT):
The new error just seems to say the `chaincode` program isn't on your PATH.. Presumably an easy fix: enter your container and find it.

ruien (Sat, 13 Oct 2018 14:44:55 GMT):
Anyway, I'm here because I'm stuck trying to figure out if it's possible (and not ill-informed) to deploy a kafka orderer cluster without a separate OrdererOrg, but rather with each orderer owned by one of the separate organizations. This is fairly practical since every company we work with is going to want to sign their own certs, so it seems it should be possible, but I'm running into a lot of issues. Any ideas there by chance?

DeepakMP (Sat, 13 Oct 2018 14:45:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZGjXRuufRPfKJDuqB) @ruien woah, lol. Great. It seems to be be about generating root & intermediate ca's. - https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Fwww.cnblogs.com%2Fllongst%2Fp%2F9348963.html

ruien (Sat, 13 Oct 2018 14:46:31 GMT):
yeah this one guide is about setting up fabric-ca. As I said, that's where I started with my deploy after eliminating cryptogen. He has several guides, some covering what you're doing now: https://www.cnblogs.com/llongst

DeepakMP (Sat, 13 Oct 2018 14:49:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LZRooxrrFZpuA4qat) @ruien Try to create new channels and install a new orderer for each? I'm assuming each company would want to sign their own certs but also they would also like to transact with other companies/peers on the network. So wouldn't it make sense to have orderer type defined by nature of transaction, because orderer's job is to simply package and ship- so different functions different ordering.

ruien (Sat, 13 Oct 2018 14:52:10 GMT):
Right, pretty much. I haven't been able to get the "create channel" to succeed, because the admin isn't satisfying the principal for the orderer when I put ownership of the orderer under all three orgs in configtxgen

ruien (Sat, 13 Oct 2018 14:53:13 GMT):
I'm **sure** this is just me not understanding how channel permissions work, the specifics of `testchainid`, and such. But there's no documentation on this: all the docs say is "go look at the configtx.yaml example, and all of the necessary options are in there". No high-level theory explanation anywhere.

ruien (Sat, 13 Oct 2018 14:54:30 GMT):
It *feels* like the orderer *has* to be under its own org, but I feel like that can't be right...

greg2git (Sat, 13 Oct 2018 14:56:42 GMT):
i find config yaml explanations lacking in detail and still haven't found a yaml that would have all nodes working but with minimum entries needed

DeepakMP (Sat, 13 Oct 2018 14:57:34 GMT):
my current configtx.yaml shows blank under Organisations for the Orderer. Cant you leave no ownership?

DeepakMP (Sat, 13 Oct 2018 14:58:38 GMT):
That ways, its owned by the network and not any specific organisation. Which makes more sense

DeepakMP (Sat, 13 Oct 2018 14:59:04 GMT):
(at the outset atleast)

PrashantS (Sat, 13 Oct 2018 14:59:05 GMT):
I'm following the one listed here - https://github.com/hyperledger/fabric-samples/blob/release-1.3/first-network/configtx.yaml

ruien (Sat, 13 Oct 2018 15:00:04 GMT):
Yeah, I'm not totally clear on that, but my best guess (and it is only a guess) is that this is defined by the `Orderer: Organizations:` set in the profile used to generate the genesis block (that is, the profile used when you say `./configtxgen -profile MyGenesisBlockProfile`)

ruien (Sat, 13 Oct 2018 15:00:04 GMT):
Yeah, I'm not totally clear on that, but my best guess (and it is only a guess) is that this is defined by the `Orderer: Organizations:` set in the profile used to generate the genesis block (that is, the profile used when you say `./configtxgen -profile MyGenesisBlockProfile -outputBlock ./genesis.block -channelID testchainid`)

PrashantS (Sat, 13 Oct 2018 15:01:29 GMT):
are you seeing something like this in the orderer logs "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2018-10-13 13:18:40.698 UTC [cauthdsl] func2 -> DEBU 527c 0xc42000e4a0 principal evaluation fails "??

ruien (Sat, 13 Oct 2018 15:04:30 GMT):
No, if I were, then I could usually look up at the previous lines in the log and figure out which rule it failed to satisfy. Instead the error I'm getting is that it cannot verify the issuer for the admin certificate sent when I run the `peer channel create` command from the peer CLI. I didn't do something dumb like use the wrong CA-Cert; rather, it doesn't know which to use and I see elements in the logs like `GetPolicy -> DEBU 1e0 Returning dummy reject all policy because Admins could not be found in Channel/Application/Admins`

ruien (Sat, 13 Oct 2018 15:05:17 GMT):
Again, this is 100% PEBKAC, and will probably be glaringly obvious once I wrap my brain around configtx.yaml

PrashantS (Sat, 13 Oct 2018 15:08:03 GMT):
I'm assuming you are using the latest release v1.3?

DeepakMP (Sat, 13 Oct 2018 15:08:26 GMT):
So, I quickly glanced at the doc again. It says peers join/create channels "on the orderer", possibly implying that orderers are meant to be shared in a network across channels. I'd figure out if this is wrong because if it's not, then the only way to create multiple orderers would be to have multiple networks.. and perhaps work out some communication between them.

DeepakMP (Sat, 13 Oct 2018 15:09:03 GMT):
My two cents on it.

PrashantS (Sat, 13 Oct 2018 15:09:04 GMT):
yeah, configtx.yaml is tricky, I haven't been able to wrap my head around it yet .... Do have a look at this repo - https://github.com/yeasy/docker-compose-files/tree/master/hyperledger_fabric, he is a colleague of mine

DeepakMP (Sat, 13 Oct 2018 15:10:00 GMT):
I wonder if sharing peers across networks might be a feature at some point. Or perhaps orderer can become a channel level plug & play.

PrashantS (Sat, 13 Oct 2018 15:10:14 GMT):
Here, we use the phrase 100% IBM error ... instead of PEBKAC :)

ruien (Sat, 13 Oct 2018 15:10:50 GMT):
Awesome, I appreciate that. I'm going to keep looking around and banging my head on the keyboard for at least a couple more days before asking more questions.

ruien (Sat, 13 Oct 2018 15:11:53 GMT):
I'm confused. Wouldn't "100% IBM error" suggest a bug in fabric while PEBKAC means a problem with me?

PrashantS (Sat, 13 Oct 2018 15:12:55 GMT):
by IBM error, I meant (Idiot behind machine error) and not the company ... we normally use that in office a lot ...

DeepakMP (Sat, 13 Oct 2018 15:13:19 GMT):
Lol! Best of luck!

ruien (Sat, 13 Oct 2018 15:13:42 GMT):
Ah, haha :)

DeepakMP (Sat, 13 Oct 2018 15:14:10 GMT):
Lol.

ruien (Sat, 13 Oct 2018 15:15:10 GMT):
The killer feature I'm waiting on is a PBFT ordering service... No one likes the idea of some other company cheating with their orderer.

PrashantS (Sat, 13 Oct 2018 15:17:02 GMT):
I believe James Yellick (IBM) had posted something recently ... not sure

DeepakMP (Sat, 13 Oct 2018 15:17:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z4sRi2fEvH8mDMCt7) @ruien fyi, I'm still new to this, only a week old. Add a SO (& GH) question with more details and perhaps share the link here, we could try and create a dedicated channel for advanced or sticky queries that haven't been answered yet. Your could inaugurate it for all of us. :) Perhaps some more experienced people can help with it.

DeepakMP (Sat, 13 Oct 2018 15:18:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rGx53EauaoqWq9PDC) @PrashantS Bro, any help with creating private collections? I'm stuck with the following error:

DeepakMP (Sat, 13 Oct 2018 15:18:43 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown

DeepakMP (Sat, 13 Oct 2018 15:19:04 GMT):
It seems to be a path issue on the cli but my cli path is so:

DeepakMP (Sat, 13 Oct 2018 15:19:13 GMT):
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/go/bin:/opt/gopath/bin: No such file or directory

DeepakMP (Sat, 13 Oct 2018 15:19:25 GMT):
And there's no executable on my command:

DeepakMP (Sat, 13 Oct 2018 15:19:41 GMT):
Not sure what its referring to:

DeepakMP (Sat, 13 Oct 2018 15:19:41 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n marble02 -l "$LANGUAGE" -v 1.0 -c '{"Args":[""]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config /opt/gopath/src/github.com/marbles02_private/collections_config.json

PrashantS (Sat, 13 Oct 2018 15:21:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CnJH5sekQQMJQedXC) @DeepakMP I'm yet to reach that stage mate, I'm stuck with the dreaded "principal evaluation fails. evaluation failed". error in Orderer logs. I'm trying to prototype a 2 Org 2 Peer prototype ...

ruien (Sat, 13 Oct 2018 15:22:48 GMT):
if you go into the container (`docker exec -it cli bash` while it's running) and do `which peer`, it's there?

ruien (Sat, 13 Oct 2018 15:22:48 GMT):
if you go into the container ( `docker exec -it cli bash` while it's running ) and do `which peer`, it's there?

PrashantS (Sat, 13 Oct 2018 15:23:49 GMT):
I see that error for *cauthdsl.policy /Channel/Orderer/OrdererOrg/Readers

DeepakMP (Sat, 13 Oct 2018 15:24:33 GMT):
container returns: /usr/local/bin/peer

PrashantS (Sat, 13 Oct 2018 15:24:35 GMT):
which peer returns /usr/local/bin/peer

ruien (Sat, 13 Oct 2018 15:25:13 GMT):
@PrashantS I was stuck with that for a full 12-hour day until I figured out it was caused by the fact that I placed `msp/config.yaml` into both the orderer and peers' MSP directory when it must ONLY go into the peers. I removed it, recreated the genesis block, and it was solved.

ruien (Sat, 13 Oct 2018 15:25:13 GMT):
I could have sworn that configtxgen creates the config.yaml files, but maybe it doesn't. I am not entirely sure because I am using fabric-ca (and transitioning from configtxgen to fabric-ca was not trivial)

DeepakMP (Sat, 13 Oct 2018 15:25:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QnxSruAo2NZHPndpY) @PrashantS I'm trying a 1 org 1 peer sample :)

PrashantS (Sat, 13 Oct 2018 15:26:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WWRQNN44Y2gEWiCEJ) @ruien wow, perseverance paid off mate .... thanks for the inputs, let me try changing that

PrashantS (Sat, 13 Oct 2018 15:26:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i8wkzkPo3XaY9zE5t) @DeepakMP will soon be there mate ... we are all in the same boat ...

DeepakMP (Sat, 13 Oct 2018 15:27:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dDq3PfjTjksiupS68) @PrashantS ofcourse! look forward to catching up! :)

PrashantS (Sat, 13 Oct 2018 15:31:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JciL982t4pJbXAysw) mate, not sure I quite follow you, I do not see a config.yaml ... pardon my naivety

PrashantS (Sat, 13 Oct 2018 15:33:21 GMT):
I basically downloaded v1.3 fabric samples, purged the basic-network directory of config/crypto-config folders, deleted the docker-compose and configtx.yaml files. deployed my own configtx.yaml and docker-compose.yml, hit ./generate

ruien (Sat, 13 Oct 2018 15:35:30 GMT):
Hmm

ruien (Sat, 13 Oct 2018 15:36:17 GMT):
Try creating them. Something like this:` CACERT=$(basename $(readlink -e "${CA_ORG_ADMIN_MSPDIR}/msp/cacerts"/*)) cat << EOF > fabric-ca-files/${DOMAIN}/msp/config.yaml NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: peer EOF`

ruien (Sat, 13 Oct 2018 15:36:17 GMT):
Try creating them. Something like this: ` CACERT=$(basename $(readlink -e "${CA_ORG_ADMIN_MSPDIR}/msp/cacerts"/*)) cat << EOF > fabric-ca-files/${DOMAIN}/msp/config.yaml NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: peer EOF `

ruien (Sat, 13 Oct 2018 15:36:17 GMT):
Try creating them. Something like this: ``` CACERT=$(basename $(readlink -e "${CA_ORG_ADMIN_MSPDIR}/msp/cacerts"/*)) cat << EOF > fabric-ca-files/${DOMAIN}/msp/config.yaml NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/${CACERT} OrganizationalUnitIdentifier: peer EOF ```

ruien (Sat, 13 Oct 2018 15:36:17 GMT):
Try creating them. Something like this: ``` NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/name-of-CA-cert-1234.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/name-of-CA-cert-1234.pem OrganizationalUnitIdentifier: peer EOF ```

ruien (Sat, 13 Oct 2018 15:40:05 GMT):
Sadly, there are a lot of different things that can cause a "principle evaluation fails" error. Just trying to share what worked for me.

PrashantS (Sat, 13 Oct 2018 15:40:47 GMT):
thanks mate, noted, will try this and see ... .

PrashantS (Sat, 13 Oct 2018 15:43:51 GMT):
just wondering, if this principal evaluation error is also responsible for a blank output when I execute "peer chaincode list --instantiated -C ppchannel"?

ruien (Sat, 13 Oct 2018 15:45:26 GMT):
not necessarily. Are you running with TLS? I had an issue like that when the communication wasn't even getting through the TLS layer, solved by exporting `ORDERER_CA` env var before running the `peer` command.

ruien (Sat, 13 Oct 2018 15:46:08 GMT):
But if it's not a TLS error, then I can only think to dig through the orderer logs. Peer isn't saying anything because it's not receiving anything, I guess.

PrashantS (Sat, 13 Oct 2018 15:48:10 GMT):
no on TLS ... however, the log does say "MSP Configuration file not found at /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizatioinis/org1.example.com/users/Admin@org1.example.com/msp/config.yaml"

PrashantS (Sat, 13 Oct 2018 15:48:17 GMT):
but only as a Debug message

ruien (Sat, 13 Oct 2018 15:48:39 GMT):
Ah, right. You need that config.yaml in the admins and peers, but not orderers.

ruien (Sat, 13 Oct 2018 15:49:01 GMT):
so it's looking for it, but not finding it, so the orderer cannot validate the OUs for your Identity and therefore can't determine its Role

ruien (Sat, 13 Oct 2018 15:49:31 GMT):
But I thought in that case you'd see an error in the Orderer like "couldn't validate OUs for identity", so maybe that's not it.

PrashantS (Sat, 13 Oct 2018 15:49:58 GMT):
I don't see that message of Could not validate OUs for identity ....

PrashantS (Sat, 13 Oct 2018 15:50:18 GMT):
whats the best way if someone has to share an attachment on this chat?

PrashantS (Sat, 13 Oct 2018 15:50:37 GMT):
wondering if time permits, maybe I could share my configtx.yaml file ...

ruien (Sat, 13 Oct 2018 15:53:24 GMT):
Sure, just dump it on dpaste.com

PrashantS (Sat, 13 Oct 2018 15:54:43 GMT):
Thanks mate - http://dpaste.com/0STZQAB

PrashantS (Sat, 13 Oct 2018 15:55:34 GMT):
This is the single Org one .. btw

ruien (Sat, 13 Oct 2018 15:55:57 GMT):
This looks almost identical to the current network config I have up and running, except I have kafka with three orderers instead of solo

ruien (Sat, 13 Oct 2018 15:56:07 GMT):
let me compare them to see if anything obvious sticks out

PrashantS (Sat, 13 Oct 2018 15:56:07 GMT):
I have the two org one on another VM on office machine .. I'm actually building this off an EC2 instance in AWS

PrashantS (Sat, 13 Oct 2018 15:56:23 GMT):
sure thing, appreciate your time and help mate

ruien (Sat, 13 Oct 2018 16:00:11 GMT):
Okay, one obvious thing that's different is you have `ApplicationCapabilities` with `V1_1: true` and `V1_2: false`, but I have (only) `V1_2: true`. The NodeOUs stuff is a v1.2 thing, and that seems to be what you're error message is referring to, so I really think you might need to enable all the 1.2 features

ruien (Sat, 13 Oct 2018 16:00:11 GMT):
Okay, one obvious thing that's different is you have `ApplicationCapabilities` with `V1_1: true` and `V1_2: false`, but I have (only) `V1_2: true`. The NodeOUs stuff is a v1.2 thing, and that seems to be what your error message is referring to, so I really think you might need to enable all the 1.2 features

PrashantS (Sat, 13 Oct 2018 16:01:59 GMT):
I see, let me toggle that and try

PrashantS (Sat, 13 Oct 2018 16:03:04 GMT):
this would be for Channel and Orderer?

ruien (Sat, 13 Oct 2018 16:03:22 GMT):
Yeah, I have `V1_2: true` for all of them

PrashantS (Sat, 13 Oct 2018 16:03:49 GMT):
ok, got that, will change and regenerate

ruien (Sat, 13 Oct 2018 16:04:01 GMT):
It's actually midnight and I am in charge of leading the message at church tomorrow, so I really have to go. Here's a dpaste of my current config (1.2, with the OrdererOrg) that I *know* works: http://dpaste.com/1NAPE2H

ruien (Sat, 13 Oct 2018 16:04:40 GMT):
That uses Kafka, so it's not entirely the same as yours, but it might be helpful nonetheless

PrashantS (Sat, 13 Oct 2018 16:05:07 GMT):
really appreciate you taking time out mate ... thanks a lot ...

PrashantS (Sat, 13 Oct 2018 16:05:13 GMT):
have a nice one!

ruien (Sat, 13 Oct 2018 16:05:16 GMT):
Sure thing. Best of luck!

PrashantS (Sat, 13 Oct 2018 16:05:50 GMT):
cheer mate

yousaf (Sat, 13 Oct 2018 22:34:00 GMT):
My all docker containers of peers and orderer are exiting except the cli container when i run docker-compose command to up my network. What could be the reason? Any info related to this?

yacovm (Sat, 13 Oct 2018 22:38:22 GMT):
run `docker ps -a` @yousaf and then do `docker logs`

yousaf (Sat, 13 Oct 2018 23:31:50 GMT):
@yacovm Orderer container is not being bootstraped and exiting. I have checked the orderer logs and have found this error. Can you explain it better? or solution? "Error creating channelconfig bundle: cannot enable channel capabilities without orderer support first"

akshay.sood (Sun, 14 Oct 2018 09:01:26 GMT):
Hi Experts

akshay.sood (Sun, 14 Oct 2018 09:01:43 GMT):
Is there any tutorial for implementing encryption functionality in chaincode?

yacovm (Sun, 14 Oct 2018 09:27:05 GMT):
there is the encryption shim library

yacovm (Sun, 14 Oct 2018 09:27:17 GMT):
https://github.com/hyperledger/fabric/tree/release-1.3/examples/chaincode/go/enccc_example

yacovm (Sun, 14 Oct 2018 09:27:19 GMT):
@akshay.sood

akshay.sood (Sun, 14 Oct 2018 09:44:45 GMT):
Thanks @yacovm

akshay.sood (Sun, 14 Oct 2018 09:46:47 GMT):
@yacovm do you know any good tutorial for implementing ACL?

yacovm (Sun, 14 Oct 2018 09:46:56 GMT):
no

yacovm (Sun, 14 Oct 2018 09:47:12 GMT):
ask in the mailing list

akshay.sood (Sun, 14 Oct 2018 09:48:42 GMT):
Anyone knows good tutorial for implementing `ACL in Hyperledger Fabric`?

tanmoytkd (Sun, 14 Oct 2018 10:46:38 GMT):
Has joined the channel.

tanmoytkd (Sun, 14 Oct 2018 10:49:05 GMT):
Total noob here... Anyone know how to get started with the fabric framework? I started reading the docs last week but found it quite complex to learn from there as a beginner in blockchain technology. I have moderate knowledge about the bitcoin technology. But I have no experience with the fabric.

yacovm (Sun, 14 Oct 2018 10:50:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html

tanmoytkd (Sun, 14 Oct 2018 10:55:11 GMT):
I have already read the getting started section days ago. But I don't know where to go next. I have been reading the tutorials section for almost a week now. But couldn't figure out how to go further and develop my own application

tanmoytkd (Sun, 14 Oct 2018 10:55:11 GMT):
I have already read the getting started section days ago. But I don't know where to go next. I have been reading the tutorials section for almost a week now and got stuck in it. But couldn't figure out how to go further and develop my own application

tanmoytkd (Sun, 14 Oct 2018 10:55:11 GMT):
I have already read the getting started section days ago. But I don't know where to go next. I have been reading the tutorials section for almost a week now and got stuck in it. I couldn't figure out how to go further and develop my own application

ruien (Sun, 14 Oct 2018 11:04:18 GMT):
As a general rule, we can't really give advice unless you help us help you. Are you stuck on a specific error message that you need help interpreting?

tanmoytkd (Sun, 14 Oct 2018 11:10:02 GMT):
Well, let me explain. I read the getting started and key concepts section and downloaded and set up binaries and samples of fabric to my workstation. I was trying out the second tutorial. I followed the instruction and got the same output as they did. The same happened in most other tutorials in the doc. But what I didn't understand is how I am supposed to modify the code and commands and use fabric in my own use cases.

tanmoytkd (Sun, 14 Oct 2018 11:11:59 GMT):
Often many tools are used and many arguments are given. configuration files like crypto-config.yaml, configtx.yaml are used. But I don't know how to modify them according to my own needs. What if I want to do something different?

tanmoytkd (Sun, 14 Oct 2018 11:12:41 GMT):
What if I want my peers to be on separate computers and talk to each other over the network instead of testing it all on the same machine?

tanmoytkd (Sun, 14 Oct 2018 11:13:03 GMT):
The learning curve seems too steep :(

ruien (Sun, 14 Oct 2018 11:26:05 GMT):
Basically, yeah. I proceeded by putting everything together from scratch afterward, deploying a network manually under kafka piece by piece. Hard to say if there's a more efficient way to learn than to just dissect the examples and re-do it.

calsonpeng (Sun, 14 Oct 2018 15:00:58 GMT):
Has joined the channel.

PrashantS (Sun, 14 Oct 2018 15:23:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FwZ78c4fJnT7qpp9t) @ruien mate, the issue turned out to be the statement "EnableNodeOUs: true" in the crypto-config.yaml file ...

PrashantS (Sun, 14 Oct 2018 15:24:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FwZ78c4fJnT7qpp9t) @ruien really appreciate your time and help, my network is now up, pretty simple, its borrowed from the HLF course on EDX, education.git ....

ruien (Sun, 14 Oct 2018 15:26:21 GMT):
Hey there Prashant

ruien (Sun, 14 Oct 2018 15:26:40 GMT):
Do you mean that you needed to add the `EnableNodeOUs: true`, or do you mean that you had to remove it?

PrashantS (Sun, 14 Oct 2018 15:27:04 GMT):
I had to add it ....

PrashantS (Sun, 14 Oct 2018 15:27:21 GMT):
I don't have a clue of why that worked, lol

PrashantS (Sun, 14 Oct 2018 15:27:46 GMT):
still reading about that

ruien (Sun, 14 Oct 2018 15:27:46 GMT):
Ah, well now in retrospect I can tell you why it worked

PrashantS (Sun, 14 Oct 2018 15:27:59 GMT):
great, I'm all ears

ruien (Sun, 14 Oct 2018 15:29:56 GMT):
Basically, the reason is because I told you to add the `NodeOUs: Enable: true` in `msp/config.yaml`. There's a good reason for that: `fabric-ca` -- which is *not* cryptogen -- operates based upon having multiple OU (Organizational Units) set in the certificates, each designating part of the Association (com.example.org1) as well as its Type (such as "client" or "orderer" or "peer")

ruien (Sun, 14 Oct 2018 15:30:57 GMT):
Cryptogen wasn't generating compatible certificates. But it's good to get into the habit of enabling OUs because I banged my head against the computer for too many hours trying to figure out why fabric-ca didn't work.

ruien (Sun, 14 Oct 2018 15:31:34 GMT):
To confirm that, you could investigate the certificates generated by cryptogen using `openssl x509 -in ./path/to/cert.pem -text -noout`

PrashantS (Sun, 14 Oct 2018 15:31:36 GMT):
Oh I see, this is interesting, now its much clearer and makes sense ...

PrashantS (Sun, 14 Oct 2018 15:32:02 GMT):
ok, noted, will check those certificate s....

PrashantS (Sun, 14 Oct 2018 15:32:29 GMT):
12 hours well spent, you saved a lot of people time on chat here, kudos mate

ruien (Sun, 14 Oct 2018 15:32:35 GMT):
In fact, you should do that now using the certs that are OU-compatible, and you'll see the multiple OUs in the Subject line like I'm saying. Enabling the OUs in cryptogen means "generate certificates with these OUs", and enabling them in config.yaml means "read them". Either one being wrong causes incomprehensible problems.

PrashantS (Sun, 14 Oct 2018 15:32:58 GMT):
oh I see ok, I'm on it now

ruien (Sun, 14 Oct 2018 15:33:04 GMT):
Time is valuable. Might as well we help each other out.

PrashantS (Sun, 14 Oct 2018 15:33:12 GMT):
absolutely ...

PrashantS (Sun, 14 Oct 2018 15:33:44 GMT):
when you say config.yaml, you mean crypto-config.yaml, right?

ruien (Sun, 14 Oct 2018 15:33:56 GMT):
no, I mean `msp/config.yaml`

PrashantS (Sun, 14 Oct 2018 15:34:22 GMT):
oh, i added that OU line in crypto-config.yaml ....

ruien (Sun, 14 Oct 2018 15:34:44 GMT):
Right, in order for `cryptogen` to add OU info into the certs it generates

PrashantS (Sun, 14 Oct 2018 15:35:08 GMT):
This is the one - https://github.com/hyperledger/fabric-samples/blob/release-1.3/first-network/crypto-config.yaml

PrashantS (Sun, 14 Oct 2018 15:35:17 GMT):
oh I see, got it now ....

ruien (Sun, 14 Oct 2018 15:35:26 GMT):
When you eventually use fabric-ca instead of cryptogen, you won't use a `crypto-config.yaml` at all, and it will generate certificates with OUs by default. You can't really use `cryptogen` in production; you need something that can produce certificates in a live environment.

PrashantS (Sun, 14 Oct 2018 15:35:57 GMT):
correct, true .. cryptogen is just for the community

ruien (Sun, 14 Oct 2018 15:37:11 GMT):
Yeah, there are more adventures waiting for you when you discover that fabric-ca generates its certificate/MSP directories in a different structure than cryptogen does. It doesn't separate "orderer orgs" and "peer orgs". But actually fabric-ca's way of doing it is right.

ruien (Sun, 14 Oct 2018 15:37:37 GMT):
... and the same is true for OUs -- fabric-ca is doing it right. So the sooner you can get cryptogen working more like fabric-ca, the fewer headaches you'll have later on.

PrashantS (Sun, 14 Oct 2018 15:38:08 GMT):
The orgunitidentifier is peer and client

PrashantS (Sun, 14 Oct 2018 15:38:56 GMT):
noted, thanks for the heads-up, if its explained this way, then its way easier than reading the cryptic (for me) documentation

ruien (Sun, 14 Oct 2018 15:39:31 GMT):
correct. There's also "orderer". Admins are `client`s with an `admin` role. Specifically: `"hf.Type":"client","role":"admin"`

PrashantS (Sun, 14 Oct 2018 15:39:58 GMT):
yes, orderer too ...

PrashantS (Sun, 14 Oct 2018 15:40:23 GMT):
this is interesting ...

PrashantS (Sun, 14 Oct 2018 15:40:51 GMT):
makes so much sense now ... wasn't able to able to grasp yesterday

ruien (Sun, 14 Oct 2018 15:41:30 GMT):
Fabric is actually pretty well-designed. Every time I finally understand something, I understand that the design makes sense.

ruien (Sun, 14 Oct 2018 15:41:47 GMT):
... but the documentation doesn't really make getting there easy

PrashantS (Sun, 14 Oct 2018 15:42:15 GMT):
it sure is nice, perhaps the documentation could be made less cryptic

waxer (Sun, 14 Oct 2018 15:52:45 GMT):
I'm doinf the same as @ruien said to really learning. Have my multi node fabric from scratch. Now building a kafka cluster to make another with multiple orderers using it...

waxer (Sun, 14 Oct 2018 15:54:01 GMT):
Then maybe again but with swarm.. would make some things easier, but knowing what is going on under the hood.

MohammadObaid (Sun, 14 Oct 2018 17:25:19 GMT):
Is it necessary to define this organization section (All organizations and msp dir path) https://github.com/hyperledger/fabric-samples/blob/release-1.2/balance-transfer/artifacts/channel/configtx.yaml#L15-L64 when generating genesis block ? I am asking this question from production environment perspective . I am using fabric-ca to generate crypto materials and using multi orderers . I do assume that in production environment all crypto material will not be in same root directory so how we will fill that organization part ?

ak97m (Sun, 14 Oct 2018 17:34:35 GMT):
Has joined the channel.

ak97m (Sun, 14 Oct 2018 17:49:15 GMT):
Hey, are there any Oracles developed for Fabric? Like in ethereum, there are services which connect to external services and provide input to the smart contracts..

yacovm (Sun, 14 Oct 2018 18:27:52 GMT):
@ak97m why does fabric need oracles? it has a general language chaincode

MohammadObaid (Sun, 14 Oct 2018 19:36:00 GMT):
@ak97m you can call api's using standard golang procedures but that's not preferable as someone in #fabric-chaincode-dev pointed out that it will not necessarily produce deterministic result and will have to take special care to provide availability of external api's to all endorsing peers at the time of execution .

hotbydefault (Mon, 15 Oct 2018 04:30:01 GMT):
Has joined the channel.

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. ```peer channel join``` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors ```transport: authentication handshake failed: x509: certificate signed by unknown authority```. however ```peer channel create``` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. `peer channel join` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors `transport: authentication handshake failed: x509: certificate signed by unknown authority`. however `peer channel create` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. `peer channel join` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors and in the peer logs`grpc: addrConn.createTransport failed to connect to {orderer0-orderer-org:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting... `. however `peer channel create` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. `peer channel join` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors and in the peer logs`grpc: addrConn.createTransport failed to connect to {orderer0-orderer-org:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...`. however `peer channel create` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. `peer channel join` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors and in the peer logs`grpc:addrConn.createTransport failed to connect to {orderer0-orderer-org:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...`. however `peer channel create` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html . wondering i'm missing anything

caveman7 (Mon, 15 Oct 2018 05:42:38 GMT):
hi guys, i'm banging my head here. `peer channel join` does not work after i activated TLS (mutual tls is not enabled). i don't use cryptogen, instead i use fabric-ca to generate the tls certs. in the orderer logs i can see "bad tls certificate" errors and in the peer logs `grpc:addrConn.createTransport failed to connect to {orderer0-orderer-org:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...`. however `peer channel create` works just fine. i've followed instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.2/enable_tls.html . wondering i'm missing anything

MuhammedHafil (Mon, 15 Oct 2018 06:03:16 GMT):
what is the argument key required for this method `GetHistoryForKey(key)` ?

abityildiz (Mon, 15 Oct 2018 06:18:07 GMT):
hi,how can i storage files likes this pdf,doc,x-ray,mp3,image etc. in the fabric ?Is this possible?what is recommended for this?

MuhammedHafil (Mon, 15 Oct 2018 06:21:26 GMT):
what is the argument key required for this method `GetHistoryForKey(key)` ?

deepanshu.bhatia (Mon, 15 Oct 2018 07:12:22 GMT):
Has joined the channel.

deepanshu.bhatia (Mon, 15 Oct 2018 07:12:33 GMT):
Hi All, Using Fabric 1.1, I am setting up fabric network on multi host environment on four AWS EC2 instances with four organisations having one peer each. But I am facing chaincode instantiation issue, as docker container are not able to communicate over multiple hosts. After investigation, I came to know that there is an issue with some kind of overlay network and have to do some addtional work in docker-compose.yaml. I have added "extra_hosts" property in docker-compose.yaml file but still can't fix this issue.

halilkalkan (Mon, 15 Oct 2018 07:33:35 GMT):
Hi guys, I'm trying to implement idemix feature and I want to see differences between x509 certificate and idemix. However the documentation is too narrow and I need hands on experience to understand how it works. I want to know how much information peers get when we use regular x509 certificate? Hope I could explain my concern.

gatakka (Mon, 15 Oct 2018 07:44:20 GMT):
@halilkalkan With x509 certificate peer(and every one else) can determine the organization, the issuer and the entity, also peer can have access to all attributes in the certificate. x509 is designed to show who is the owner of the certificate. There is no hidden information there.

gatakka (Mon, 15 Oct 2018 07:45:14 GMT):
Take the pem certificate file and put it in some pem decoder (there are many online) and see what is inside. This info is available to everyone that can read the certificate

yousaf (Mon, 15 Oct 2018 08:19:17 GMT):
Orderer container is not being bootstraped and exiting. I have checked the orderer logs and have found this error. Can someone explain it better? "Error creating channelconfig bundle: cannot enable channel capabilities without orderer support first"

dev1644 (Mon, 15 Oct 2018 08:27:54 GMT):
Has joined the channel.

dev1644 (Mon, 15 Oct 2018 08:28:02 GMT):
Hi ,Can anyome refer me to some chaincodes that are written in NodeJs? I am new to chaincode development so I want to see some chaincodes and read about different functionalities implemented into them.

halilkalkan (Mon, 15 Oct 2018 10:35:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PL63QTuLetjLNJGj3) @gatakka gatakka thank you so much, now it's more clear I was able to view some certificate information from a decoder. I will try to explore identity mixer certificate and compare it with the regular one. :)

MohammadObaid (Mon, 15 Oct 2018 13:09:45 GMT):
Role of committing peer is only to validate endorsement policy and nothing more than that right ?

ruien (Mon, 15 Oct 2018 13:23:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AgAtozrycbbzNvucu) @caveman7 Have you exported `ORDERER_CA=/path/to/orderer's/tls/ca.cert` ?

ruien (Mon, 15 Oct 2018 13:23:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AgAtozrycbbzNvucu) @caveman7 Have you exported `ORDERER_CA=/path/to/orderer's/tls/ca.cert` ? I also am using fabric-ca and have this working. One thing you can do is try grabbing the certificate with `openssl s_client -connect orderer0-orderer-org:7050

laurensdegilde (Mon, 15 Oct 2018 13:34:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cRuXn9LjhZdM4hce5) @plato My guess on this: Since every read and write operation is encapsulated in the transactions read write set. The histoy of a key can always be found when traversing over the transctions read-write sets. I am not sure if this is exactly what is happening but that is my guess on it.

laurensdegilde (Mon, 15 Oct 2018 13:36:35 GMT):
I am currently doing a master thesis on Hyperledger Fabric and improving the read-write operations on the world state database by utilizing the Patricia Trie data strucutre(also used by Ethereum). It has some promising results on improvement of read-write operations and overall transaction processing time.

laurensdegilde (Mon, 15 Oct 2018 13:37:02 GMT):
Is there a platform were such researches can be published for further analysis?

Jgnuid (Mon, 15 Oct 2018 14:04:47 GMT):
@MuhammedHafil , the ledger is a key-value store. The `GetHistoryForKey(k)` is a method which recieves a parameter k, where k is a key of the key-value store.

Jgnuid (Mon, 15 Oct 2018 14:04:47 GMT):
@MuhammedHafil , the ledger ''is'' a key-value store. The `GetHistoryForKey(k)` is a method which recieves a parameter k, where k is a key of the key-value store.

Jgnuid (Mon, 15 Oct 2018 14:08:28 GMT):
@abityildiz , `PutState` recieves a byte array as a value, so I guess saving the byte array would be reasonable. IDK if there's some practical limits of the value sizes. Another option is to save it as a json value and encode it with base64, but you would increase the output size 30% aprox.

Jgnuid (Mon, 15 Oct 2018 14:10:36 GMT):
@deepanshu.bhatia , you could create an overlay network. But I can avoid that too. You should publish the necessary ports in the host machine. To bind port X in the host, to port Y in the container. Also, you should check that the AWS hosts are in the same network and firewall rules are configured appropriately.

Jgnuid (Mon, 15 Oct 2018 14:12:29 GMT):
@dev1644 , https://github.com/hyperledger/fabric-samples/tree/release-1.3/chaincode/chaincode_example02/node

Jgnuid (Mon, 15 Oct 2018 14:15:33 GMT):
@MohammadObaid , that's a part of its job, yes. Also it checks that the block is correctly signed by the orderer, the block is well-formed, check that the new tx-ids are not repeated in the ledger, check the read-set to mark the transactions invalid or not, change its current state of the world accordingly, and maybe some more things I'm missing from the top of my head.

ruien (Mon, 15 Oct 2018 14:22:24 GMT):
Hey all. I've put about 48 hours into this, but no solution yet. Solo orderer [Org1MSP], single admin [Org2MSP], latest commit on *release-1.3* branch. I'm getting this error in the orderer when trying to create a channel from the Org2 Admin: `identity 0 does not satisfy principal: could not validate identity's OUs: the identity must be a client, a peer or an orderer identity to be valid, not a combination of them. OUs: [[0xc42f2f3530 0xc42f2f3560 0xc42f2f3590 0xc42f2f35c0 0xc42f2f35f0]], MSP: [Org1MSP]` The Org2 Admin's certificate does match and I see `Signature set satisfies policy /Channel/Application/ChannelCreationPolicy`, but after that (I guess when evaluating an ImplicitMeta), it examines the orderer's own signcert and then fails on this error. The Orderer is part of Org1MSP, and has OU=orderer, but OU validation isn't implemented for Role "orderer" in fabric yet. Is it correct that a Policy should ever fail on validating OUs for an orderer signcert?

ruien (Mon, 15 Oct 2018 14:22:24 GMT):
Hey all. I've put about 48 hours into this, but no solution yet. Solo orderer [Org1MSP], single admin [Org2MSP], latest commit on *release-1.3* branch. I'm getting this error in the orderer when trying to create a channel from the Org2 Admin: `identity 0 does not satisfy principal: could not validate identity's OUs: the identity must be a client, a peer or an orderer identity to be valid, not a combination of them. OUs: [[0xc42f2f3530 0xc42f2f3560 0xc42f2f3590 0xc42f2f35c0 0xc42f2f35f0]], MSP: [Org1MSP]` The Org2 Admin's certificate does match and I see `Signature set satisfies policy /Channel/Application/ChannelCreationPolicy`, but after that (I guess when evaluating an ImplicitMeta), it examines the orderer's own signcert and then fails on this error. The Orderer is part of Org1MSP, and has `OU=orderer`, but OU validation isn't implemented for Role "orderer" in fabric yet. Is it correct that a Policy should ever fail on validating OUs for an orderer signcert?

rajanashutosh (Mon, 15 Oct 2018 14:40:54 GMT):
Hi all.. It would have been great if someone could give me leads on how we can build blockchain as a service using fabric network.

rajanashutosh (Mon, 15 Oct 2018 14:43:38 GMT):
What should be the approach if I want to deploy multiple applications together on the fly in single network might be each app like an MSP and peers as participants or as seperate channels ? Would like to have ur insight on this

dave.enyeart (Mon, 15 Oct 2018 14:56:16 GMT):
@laurensdegilde I'd recommend post your findings to fabric mailing list (hyperledger-fabric@lists.hyperledger.org) in order to collaborate with others. If you have very specific changes that you are recommending, then you can also open a jira requirement at https://jira.hyperledger.org

waxer (Mon, 15 Oct 2018 15:34:13 GMT):
In a production environment, should I generate the orderers crypto material from a Hyperledger CA or it's ok to use the ones generated by cryptogen?. Generally, are MSP generated by cryptogen wrong, incomplete or insecure in some way to use in production?

MohammadObaid (Mon, 15 Oct 2018 16:43:52 GMT):
Hey @waxer cryptogen are only for development environment . Generally you provide cryptogen a file and it will generate certificates of all organization in one place including private keys of all organization. In production environment you dont want to do that as peers will be running in different locations and you dont want peers to have private keys of other peers or organization . This is where we use fabric-ca so that peer can query certificate authority(CA server) for certificates and that server returns relevant cryptomaterial for that organization only.

MohammadObaid (Mon, 15 Oct 2018 16:44:44 GMT):
Hey @Jgnuid right but comitter cant validate write set as it would require them to execute chaincode !

siva.a (Mon, 15 Oct 2018 17:37:58 GMT):
Has joined the channel.

akshay.sood (Mon, 15 Oct 2018 19:44:42 GMT):
Hi Experts! Anyone knows the best kafka version compatible with Hyperledger Fabric?

garri1105 (Mon, 15 Oct 2018 20:08:04 GMT):
Has joined the channel.

garri1105 (Mon, 15 Oct 2018 20:11:07 GMT):
Hello! I've been trying to use the fabric-sdk-rest paired with the fabric-samples network and I've been unsuccessful in all my attempts. When I start the fabric-rest-server and I go to the Loopback interface, everytime I try to perform any operation, the response is always 401 Unauthorized. How can I gain access to the network through the REST API?

garri1105 (Mon, 15 Oct 2018 20:11:40 GMT):
`Unhandled error for request GET /api/fabric/1_0/channels: Error: Authorization Required `

garri1105 (Mon, 15 Oct 2018 20:11:58 GMT):
`Unhandled error for request GET /api/fabric/1_0/channels: Error: Authorization Required `

garri1105 (Mon, 15 Oct 2018 20:12:27 GMT):
`Unhandled error for request GET /api/fabric/1_0/channels: Error: Authorization Required`

caveman7 (Mon, 15 Oct 2018 22:59:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Aqh4ku4KYxEo76hqG) @ruien thanks i did all that. apparently my mistake is that i didn't create msp/tlscacerts folder and insert the certs there. the TLS certs are not present in the channel block, hence the errors.

bh4rtp (Tue, 16 Oct 2018 02:28:45 GMT):
hi, i am using fabric release-1.3, and faced this issue when doing `make docker`: ```2018/10/16 10:16:31 readSym out of sync Makefile:238: recipe for target '.build/docker/bin/peer' failed``` how to fix it?

JayJong (Tue, 16 Oct 2018 03:34:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eugkcAun55eeRoSeP) Hi, does anyone have an answer for this? im interested to know this part too

Sasadara (Tue, 16 Oct 2018 04:02:02 GMT):
Has joined the channel.

Sasadara (Tue, 16 Oct 2018 04:02:07 GMT):
Can any one explain the different between participants (Composer) and peers (Fabric node I guess)??

khetesh (Tue, 16 Oct 2018 06:31:27 GMT):
Hello guys i have hosted 2 peer in different machine and i have connected both peer in same network by creating network called "my-net" using docker swarm........ Document which i have reffered to do this thing , in that document they have provided one additional CLI container to interact with network and installing , instantiating chaincode but i want to have my own chaincode to be installed on both peer and interact my application with that .... So would it be possible??? Refered link: https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

khetesh (Tue, 16 Oct 2018 06:32:52 GMT):

Multihost.png

khetesh (Tue, 16 Oct 2018 06:33:36 GMT):
changed the script file https://gist.github.com/kheteshR/49d8c9b234435f30bc3e7c9bf0eaab6c

leodewu (Tue, 16 Oct 2018 06:50:30 GMT):
Has joined the channel.

leodewu (Tue, 16 Oct 2018 06:50:32 GMT):
why does secure connection between peer and chaincode use self-signed TLS certificate ?

khetesh (Tue, 16 Oct 2018 06:55:53 GMT):
are you answering me? @leodewu

leodewu (Tue, 16 Oct 2018 06:57:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PKRSCbeo99hfcBiM5) @khetesh @khetesh nope,

ajay560 (Tue, 16 Oct 2018 07:57:46 GMT):
Has joined the channel.

Yatces (Tue, 16 Oct 2018 08:09:32 GMT):
Has joined the channel.

Yatces (Tue, 16 Oct 2018 08:14:07 GMT):
composer network ping -c alice@trade-network Error: Error trying invoke business network. Error: Peer localhost:8051 has rejected transaction '965559e77f248046a05473a1c08a5161fc9b96c0f7a60267dc3215cc5ab2514c' with code ENDORSEMENT_POLICY_FAILURE Command failed composer network ping -c alice@trade-network Error: Error trying invoke business network. Error: Peer localhost:8051 has rejected transaction '965559e77f248046a05473a1c08a5161fc9b96c0f7a60267dc3215cc5ab2514c' with code ENDORSEMENT_POLICY_FAILURE Command failed when I execute this :composer network ping -c alice@trade-network,Error: Error trying invoke business network. Error: Peer localhost:8051 has rejected transaction '965559e77f248046a05473a1c08a5161fc9b96c0f7a60267dc3215cc5ab2514c' with code ENDORSEMENT_POLICY_FAILURE,Command failed.

Yatces (Tue, 16 Oct 2018 08:15:34 GMT):
When i execute this: composer network ping -c alice@trade-network. Error: Error trying invoke business network. Error: Peer localhost:8051 has rejected transaction '965559e77f248046a05473a1c08a5161fc9b96c0f7a60267dc3215cc5ab2514c' with code ENDORSEMENT_POLICY_FAILURE, Command failed.

Yatces (Tue, 16 Oct 2018 08:17:32 GMT):
When I execute this: composer network ping -c alice@trade-network. Error: Error trying invoke business network. Error: Peer localhost:8051 has rejected transaction '965559e77f248046a05473a1c08a5161fc9b96c0f7a60267dc3215cc5ab2514c' with code ENDORSEMENT_POLICY_FAILURE, Command failed. How to solve this problem?

khetesh (Tue, 16 Oct 2018 08:55:23 GMT):
may i know how can i install my chaincode in peer 1 and peer 2

khetesh (Tue, 16 Oct 2018 08:55:24 GMT):
?

NoLimitHoldem (Tue, 16 Oct 2018 09:01:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rSc8mqdXmWXrjpo9P) @Sasadara Participant in Composer is just a data stored in the Blockchain (in higher level, an object, e.g. Shop, User, you can define what you like). But Peer is a Fabric network node, that acts as transaction endorser or committer (could be both). So basically they are totally different (no "participant in Composer" is a "Peer", and no "Peer" is a "participant in Composer").

NoLimitHoldem (Tue, 16 Oct 2018 09:01:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rSc8mqdXmWXrjpo9P) @Sasadara Participants in Composer is just a data stored in the Blockchain (in higher level, an object, e.g. Shop, User, you can define any participant you like). But Peers are Fabric network nodes, that act as transaction endorsers or committers (could be both). So basically they are totally different (no "participant in Composer" is a "Peer", and no "Peer" is a "participant in Composer").

NoLimitHoldem (Tue, 16 Oct 2018 09:01:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rSc8mqdXmWXrjpo9P) @Sasadara Participants in Composer is just a data stored in the Blockchain (in higher level, an object, e.g. Shop, User, you can define what you like). But Peers are Fabric network nodes, that act as transaction endorsers or committers (could be both). So basically they are totally different (no "participant in Composer" is a "Peer", and no "Peer" is a "participant in Composer").

Yatces (Tue, 16 Oct 2018 09:11:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wFaSAEoC6yjCgLxhv) @khetesh I installed it based on https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org,and execute this commond:composer network ping -c alice@trade-network... Can you give me some advice?

gnulin (Tue, 16 Oct 2018 09:13:23 GMT):
Hello guys, please someone share an insight on IBM food trust, Especially the kind of infrastructure they use? I just one information that it's using Hyperledger Fabric. Please share if there are any useful links to get some more insight on the technology/infrastructure aspects..

mastersingh24 (Tue, 16 Oct 2018 09:53:48 GMT):
@gnulin - exactly what type of information are you looking for? In general, questions here should be limited purely to the open source project not commercial uses. Public info about IFT can be found here: https://www.ibm.com/blockchain/solutions/food-trust

Sasadara (Tue, 16 Oct 2018 10:17:23 GMT):
@NoLimitHoldem Thank you for the answer. Ya now I get it. Wondering if one peer has been broken/down or not responding, does this chain will work with rest of the peers or is it essential to have all the peers up and running?

gnulin (Tue, 16 Oct 2018 10:23:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L2ThfYc9f7imAS5KH) @mastersingh24 Thanks @mastersingh24 I understand. I was just curious to get some info of their infrastructure. But most of the docs tells about their business aspects and how to be a member of network.

gnulin (Tue, 16 Oct 2018 10:23:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L2ThfYc9f7imAS5KH) @mastersingh24 Thanks I understand. I was just curious to get some info of their infrastructure. But most of the docs tells about their business aspects and how to be a member of network.

NoLimitHoldem (Tue, 16 Oct 2018 11:01:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DPk3QJnvKe2dYzqRT) @Sasadara Depends. I would prefer more "Yes" (given that you consider HA in Blockchain...). Yes: e.g., if you have 2 Peers and 1 Org, then that remaining Peer should be able to work, normally speaking No: e.g., if you have 2 Peers and 2 Orgs. Also, 1 Peer per Org and your transaction endorsement policy is set to "both orgs need to endorse an transaction". Then, if 1 Peer in any Org dies, no transaction could be successfully made. But query should work for that remaining Peer It really depends how your network is set up or organize, there are many possibilities of "if one peer has been broken/down or not responding, does this chain will work with rest of the peers".

Sasadara (Tue, 16 Oct 2018 11:20:18 GMT):
@NoLimitHoldem I see.. thanks for the explanation. Currently I have 4 peers 2 org system. I saw that sometime transactions getting failed. However if I tried again (Just after first try) then it is working. Don't know the exact reason. But error is something like no peer responding.

rajanashutosh (Tue, 16 Oct 2018 11:26:09 GMT):
Hi all.. It would have been great if someone could give me leads on how we can build blockchain as a service using fabric network. What should be the approach if I want to deploy multiple applications together on the fly in single network might be each app like an MSP and peers as participants or as seperate channels ? Would like to have ur insight on this

khetesh (Tue, 16 Oct 2018 11:27:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gDqakAjt5nEmH53re) @Yatces thanks for you reply dude..... But i am using hyperledger fabric

jonlee300 (Tue, 16 Oct 2018 11:57:06 GMT):
Hi, I encountered below error when trying to create channel `docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx` `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

jonlee300 (Tue, 16 Oct 2018 11:57:06 GMT):
Hi, I encountered below error when trying to create channel `docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composer-channel.tx` `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` I've checked both genesis block and composer-channel.tx properly generated and volume properly mapped to that file. In configtx.yaml, I set only one Organization.

ruien (Tue, 16 Oct 2018 12:19:37 GMT):
There should be more details in the Orderer log if you have DEBUG loglevel set -- can you share more info from there?

sheetal-hlf (Tue, 16 Oct 2018 12:19:57 GMT):
Couple of questions on Private Data 1. Does requiredPeerCount attribute in Private Data depend on the endorsement policy of chaincode? for e.g. if endorsement policy is -P "AND('Org1MSP.member','Org2MSP.member')" then requiredPeerCount=2 if endorsement policy is -P "OR('Org1MSP.member','Org2MSP.member')" then requiredPeerCount=1 2. Also if I want multiple orgs to endorse the transaction then they must have access to Private Data if endorsement policy is -P "AND('Org1MSP.member','Org2MSP.member')" then policy for private data must be "OR('Org1MSP.member', 'Org2MSP.member')" Any comments are appreciated.

jonlee300 (Tue, 16 Oct 2018 12:43:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ma53JeygGMeqYMnL2) @ruien 2018-10-16 12:41:23.427 UTC [fsblkstorage] newBlockfileMgr -> INFO 003 Getting block information from block storage 2018-10-16 12:41:23.439 UTC [orderer/commmon/multichannel] NewRegistrar -> INFO 004 Starting system channel 'composerchannel' with genesis block hash 93b6086421f4beb9c59809ed33f1265694ed5c35e84dcc601b2054004fa1aca6 and orderer type solo 2018-10-16 12:41:23.439 UTC [orderer/common/server] Start -> INFO 005 Starting orderer: Version: 1.2.1 Commit SHA: 5017e4d Go version: go1.10 OS/Arch: linux/amd64 Experimental features: false 2018-10-16 12:41:23.439 UTC [orderer/common/server] Start -> INFO 006 Beginning to serve requests 2018-10-16 12:42:02.990 UTC [msp] DeserializeIdentity -> INFO 007 Obtaining identity 2018-10-16 12:42:02.991 UTC [orderer/common/broadcast] Handle -> WARN 008 [channel: composerchannel] Rejecting broadcast of config message from 172.26.0.6:59944 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2018-10-16 12:42:02.995 UTC [common/deliver] Handle -> WARN 009 Error reading from 172.26.0.6:59942: rpc error: code = Canceled desc = context canceled

ruien (Tue, 16 Oct 2018 12:45:19 GMT):
@jonlee300 There's no information there - you'll need to enable `ORDERER_GENERAL_LOGLEVEL=DEBUG`

jonlee300 (Tue, 16 Oct 2018 12:45:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ma53JeygGMeqYMnL2) @ruien info when executing the command: 2018-10-16 12:42:02.983 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2028-10-12 18:43:44 +0000 UTC 2018-10-16 12:42:02.983 UTC [msp] Validate -> DEBU 036 MSP EtisalatMSP validating identity 2018-10-16 12:42:02.984 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2018-10-16 12:42:02.984 UTC [grpc] Printf -> DEBU 038 parsed scheme: "" 2018-10-16 12:42:02.984 UTC [grpc] Printf -> DEBU 039 scheme "" not registered, fallback to default scheme 2018-10-16 12:42:02.984 UTC [grpc] Printf -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2018-10-16 12:42:02.984 UTC [grpc] Printf -> DEBU 03b ClientConn switching balancer to "pick_first" 2018-10-16 12:42:02.984 UTC [grpc] Printf -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc4203944e0, CONNECTING 2018-10-16 12:42:02.985 UTC [grpc] Printf -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc4203944e0, READY 2018-10-16 12:42:02.986 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2018-10-16 12:42:02.986 UTC [msp] GetDefaultSigningIdentity -> DEBU 03f Obtaining default signing identity 2018-10-16 12:42:02.987 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2018-10-16 12:42:02.987 UTC [msp/identity] Sign -> DEBU 041 Sign: plaintext: 0AC2060A0B45746973616C61744D5350...6D706F736572436F6E736F727469756D 2018-10-16 12:42:02.987 UTC [msp/identity] Sign -> DEBU 042 Sign: digest: 2DB804CCFCEBCB7F7D99138AC5608BD1B99BF9E43276BC62DD55022BCDFDE947 2018-10-16 12:42:02.987 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2018-10-16 12:42:02.987 UTC [msp] GetDefaultSigningIdentity -> DEBU 044 Obtaining default signing identity 2018-10-16 12:42:02.988 UTC [msp/identity] Sign -> DEBU 045 Sign: plaintext: 0AFF060A1B08021A06089AB997DE0522...5ACC341172D71166184EFE2C12A7A18F 2018-10-16 12:42:02.988 UTC [msp/identity] Sign -> DEBU 046 Sign: digest: BA78772B7518BA01451F5FB8FF3C99DD5A0529984C002A63DE0AC9066A4DF7B9 2018-10-16 12:42:02.988 UTC [grpc] Printf -> DEBU 047 parsed scheme: "" 2018-10-16 12:42:02.988 UTC [grpc] Printf -> DEBU 048 scheme "" not registered, fallback to default scheme 2018-10-16 12:42:02.988 UTC [grpc] Printf -> DEBU 049 ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2018-10-16 12:42:02.988 UTC [grpc] Printf -> DEBU 04a ClientConn switching balancer to "pick_first" 2018-10-16 12:42:02.988 UTC [grpc] Printf -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc4203d07b0, CONNECTING 2018-10-16 12:42:02.989 UTC [grpc] Printf -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc4203d07b0, READY Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

jonlee300 (Tue, 16 Oct 2018 12:46:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xxmZu5BAendAQLeTG) @ruien OK, will rerun again with "DEBUG" on

ruien (Tue, 16 Oct 2018 12:47:12 GMT):
It seems like it's still chopping off some important data. There's typically pages of output - maybe make a paste at http://dpaste.com/

dave.enyeart (Tue, 16 Oct 2018 12:48:38 GMT):
@sheetal-hlf I've recently submitted a doc improvement to help answer your exact question about endorsement policy with private data: https://gerrit.hyperledger.org/r/#/c/26992/2/docs/source/private-data-arch.rst

dave.enyeart (Tue, 16 Oct 2018 12:50:01 GMT):
requiredPeerCount is not dependent on endorsement policy... you must send proposal to the number of peers as defined by endorsement policy regardless. requiredPeerCount defines how many others peers the private data is pushed to at endorsement time.

dave.enyeart (Tue, 16 Oct 2018 12:50:42 GMT):
if you have other confusions with that topic, go ahead and mention it in https://gerrit.hyperledger.org/r/#/c/26992/2/docs/source/private-data-arch.rst so that it can be clarified there.

jonlee300 (Tue, 16 Oct 2018 12:52:11 GMT):
2018-10-16 12:48:43.173 UTC [orderer/common/server] Start -> INFO 0b7 Beginning to serve requests 2018-10-16 12:48:56.590 UTC [orderer/common/server] Deliver -> DEBU 0b8 Starting new Deliver handler 2018-10-16 12:48:56.590 UTC [common/deliver] Handle -> DEBU 0b9 Starting new deliver loop for 172.26.0.6:46430 2018-10-16 12:48:56.590 UTC [common/deliver] Handle -> DEBU 0ba Attempting to read seek info message from 172.26.0.6:46430 2018-10-16 12:48:56.593 UTC [orderer/common/server] Broadcast -> DEBU 0bb Starting new Broadcast handler 2018-10-16 12:48:56.593 UTC [orderer/common/broadcast] Handle -> DEBU 0bc Starting new broadcast loop for 172.26.0.6:46432 2018-10-16 12:48:56.593 UTC [orderer/common/broadcast] Handle -> DEBU 0bd [channel: composerchannel] Broadcast is processing config update message from 172.26.0.6:46432 2018-10-16 12:48:56.593 UTC [orderer/common/msgprocessor] ProcessConfigUpdateMsg -> DEBU 0be Processing config update tx with system channel message processor for channel ID composerchannel 2018-10-16 12:48:56.594 UTC [orderer/common/msgprocessor] ProcessConfigUpdateMsg -> DEBU 0bf Processing config update message for channel composerchannel 2018-10-16 12:48:56.594 UTC [policies] Evaluate -> DEBU 0c0 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers == 2018-10-16 12:48:56.594 UTC [policies] Evaluate -> DEBU 0c1 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2018-10-16 12:48:56.594 UTC [policies] Evaluate -> DEBU 0c2 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers == 2018-10-16 12:48:56.594 UTC [policies] Evaluate -> DEBU 0c3 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2018-10-16 12:48:56.594 UTC [policies] Evaluate -> DEBU 0c4 == Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers == 2018-10-16 12:48:56.594 UTC [msp] DeserializeIdentity -> INFO 0c5 Obtaining identity 2018-10-16 12:48:56.594 UTC [msp/identity] newIdentity -> DEBU 0c6 Creating identity instance for cert -----BEGIN CERTIFICATE----- ....

jonlee300 (Tue, 16 Oct 2018 12:52:32 GMT):
-----END CERTIFICATE----- 2018-10-16 12:48:56.595 UTC [cauthdsl] func1 -> DEBU 0c7 0xc4200b20d8 gate 1539694136595072062 evaluation starts 2018-10-16 12:48:56.595 UTC [cauthdsl] func2 -> DEBU 0c8 0xc4200b20d8 signed by 0 principal evaluation starts (used [false]) 2018-10-16 12:48:56.595 UTC [cauthdsl] func2 -> DEBU 0c9 0xc4200b20d8 processing identity 0 with bytes of 0a0b45746973616c61744d535012b2062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949434c7a4343416461674177494241674952414f734232545a577851792b7a374c564563616a4b526377436759494b6f5a497a6a304541774977675945780a437a414a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d525977464159445651514845773154595734670a526e4a68626d4e7063324e764d534177486759445651514b4578646c64476c7a595778686443347a4d44426a64574a7064484d756447566a6144456a4d4345470a4131554541784d61593245755a58527063324673595851754d7a4177593356696158527a4c6e526c593267774868634e4d5467784d4445314d5467304d7a51300a5768634e4d6a67784d4445794d5467304d7a5130576a42694d517377435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a760a636d3570595445574d4251474131554542784d4e5532467549455a795957356a61584e6a627a456d4d4351474131554541784d646347566c636a41755a5852700a63324673595851754d7a4177593356696158527a4c6e526c593267775754415442676371686b6a4f5051494242676771686b6a4f50514d4242774e43414154340a496b7a3631546e725532433061462f32632b3539536454644f324262616d366a4c4f44676a5346755752342b4261316a3636517673306f4e4d2b5862624873640a6e4543456a6d414b716d415954727473764a4e396f303077537a414f42674e56485138424166384542414d434234417744415944565230544151482f424149770a4144417242674e5648534d454a444169674343786b69494d526b7956354b4a757a524c4a59454f61627437746a334e646b447370655a6354556d6d446544414b0a42676771686b6a4f5051514441674e484144424541694263554f38666a356434436d7139796d55496475484e7655743655437651334e7a472f77694f55586d450a45414967562f655973787632524a754c692f486a79427857387433702b665870623641646254774258756a665251453d0a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a `2018-10-16 12:48:56.595 UTC [cauthdsl] func2 -> DEBU 0ca 0xc4200b20d8 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) `2018-10-16 12:48:56.595 UTC [cauthdsl] func2 -> DEBU 0cb 0xc4200b20d8 principal evaluation fails 2018-10-16 12:48:56.595 UTC [cauthdsl] func1 -> DEBU 0cc 0xc4200b20d8 gate 1539694136595072062 evaluation fails 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0cd Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Writers 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0ce == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers 2018-10-16 12:48:56.595 UTC [policies] func1 -> DEBU 0cf Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers ] 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0d0 Signature set did not satisfy policy /Channel/Orderer/Writers 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0d1 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2018-10-16 12:48:56.595 UTC [policies] func1 -> DEBU 0d2 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers ] 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0d3 Signature set did not satisfy policy /Channel/Writers 2018-10-16 12:48:56.595 UTC [policies] Evaluate -> DEBU 0d4 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2018-10-16 12:48:56.595 UTC [orderer/common/broadcast] Handle -> WARN 0d5 [channel: composerchannel] Rejecting broadcast of config message from 172.26.0.6:46432 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2018-10-16 12:48:56.595 UTC [orderer/common/server] func1 -> DEBU 0d6 Closing Broadcast stream 2018-10-16 12:48:56.597 UTC [grpc] Printf -> DEBU 0d7 transport: http2Server.HandleStreams failed to read frame: read tcp 172.26.0.3:7050->172.26.0.6:46432: read: connection reset by peer 2018-10-16 12:48:56.597 UTC [common/deliver] Handle -> WARN 0d8 Error reading from 172.26.0.6:46430: rpc error: code = Canceled desc = context canceled 2018-10-16 12:48:56.597 UTC [orderer/common/server] func1 -> DEBU 0d9 Closing Deliver stream

jonlee300 (Tue, 16 Oct 2018 12:53:26 GMT):
`2018-10-16 12:48:56.595 UTC [cauthdsl] func2 -> DEBU 0ca 0xc4200b20d8 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP)` It is likely this error, wrong MSP referred to ..

ruien (Tue, 16 Oct 2018 12:59:33 GMT):
Hmm, it's hard to say because I'm used to using NodeOUs to identify the cert but yours seems like it wasn't generated with them. The "expected X, got Y" message is not always the problem, especially if this is just part of an ImplicitMeta evaluation. Also, this certificate is for a peer, not your org admin.

ruien (Tue, 16 Oct 2018 13:00:51 GMT):
have you tried using the Org1 admin's MSP instead? Also, did you specify in configtx.yaml that Org1MSP [members/admins/etc] should be able to create channels or just the OrdererMSP? Done.

ruien (Tue, 16 Oct 2018 13:01:32 GMT):
Oh, and, finally: it's really appreciated if you use a pastebin instead of flooding the channel.

tassio (Tue, 16 Oct 2018 13:02:25 GMT):
Hello everyone! Have any of you recently had problems with the deployment of Hyperledger Explorer 0.3.7?

jonlee300 (Tue, 16 Oct 2018 13:03:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g3fM6EzyLvhHPPDSW) @ruien sorry. will do.

jonlee300 (Tue, 16 Oct 2018 13:05:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hzGk9Dk9zPscDPuu6) @ruien what is the NodeOUs flag used for? I found the error as I misplaced the flag EnableNodeOUs=true under Orderer section instead of Peer section

jonlee300 (Tue, 16 Oct 2018 13:07:51 GMT):
will modify it and see if it works.

ruien (Tue, 16 Oct 2018 13:07:54 GMT):
Yeah, NodeOUs don't work with Orderers, just peers, but when I was digging through the Fabric source looking into it, it seems as if it might be supported someday

ruien (Tue, 16 Oct 2018 13:08:37 GMT):
I doubt that's the issue here, though. It seems more like you might be setting `CORE_PEER_MSPCONFIGPATH` to the wrong msp directory

jonlee300 (Tue, 16 Oct 2018 13:14:00 GMT):
in docker_composer.yml peer: - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/peer/msp orderer: - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp

ruien (Tue, 16 Oct 2018 13:15:13 GMT):
Yeah that's correct, but you aren't creating the channel from the peer's container (which runs `peer node`). It would be from something where you're running the `peer channel` command. You'd use a different MSP for the CLI usually.

ruien (Tue, 16 Oct 2018 13:15:43 GMT):
what's the `CORE_PEER_MSPCONFIGPATH` for the container running the `fabric-tools` image?

jonlee300 (Tue, 16 Oct 2018 13:17:55 GMT):
I used Composer dev-server as a template and there is no container of `fabric-tools`

ruien (Tue, 16 Oct 2018 13:20:13 GMT):
ah, that might be exactly the problem, then. Did you start the peer container, then do something like `docker exec -it peer bash` and try to run the `peer channel` command from within it? If so, you're authenticating using the `peer0`'s identity instead of the Org1MSP admin

ruien (Tue, 16 Oct 2018 13:20:49 GMT):
(... because you're inheriting that environment from the docker-compose)

ruien (Tue, 16 Oct 2018 13:20:49 GMT):
(... because you're inheriting that environment from the docker-compose specification)

jonlee300 (Tue, 16 Oct 2018 13:24:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bx77MB9AGfXKkSqE8) @ruien as you suspected, changing NodeOUs did not resolve the issue.

jonlee300 (Tue, 16 Oct 2018 13:24:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rcdvykD2fTMxFFojh) @ruien will try this later. thanks.

lislunev (Tue, 16 Oct 2018 13:25:54 GMT):
Hello, If I Invoke second chaincode from the first chaincode. Does the cert which I use to invoke first chainde is used to second chaincide invoke?

jonlee300 (Tue, 16 Oct 2018 13:33:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ETCQYiEL5vxrD9i5h) the result is the same.

ruien (Tue, 16 Oct 2018 13:43:09 GMT):
@jonlee300 In that case I'm not so sure. Maybe your ChannelCreationPolicy requires OrdererMSP. I'd take a look if you want to paste your configtx.yaml and all of the debug output (since the problem is not always the last comparison). Done.

jonlee300 (Tue, 16 Oct 2018 13:45:43 GMT):
will organize and post later. thanks.

ruien (Tue, 16 Oct 2018 14:03:44 GMT):
Question: My logs are filled with errors like `[discovery] chaincode isn't installed on sufficient organizations required by the endorsement policy`. It's installed on plenty of orgs, and I can manually invoke with `peer --peerAddresses` without problems. This makes me suspect that either (A) Anchors are set and correct in the genesis block, but there are issues with the gossip communication between the peers, or (B) I have to tell endorsers to broadcast their endorsing status; that is, the chaincode wasn't installed purely for query purposes. First, is there a way to check the gossip health and topology visible from a specific peer? Second, is it true that simply installing chaincode on a peer is enough for it to be considered an endorser by other peers/orgs on its channel?

tassio (Tue, 16 Oct 2018 14:07:03 GMT):
Hi everyone, I am having the problems listed exactly in the following Troubleshooting section: https://github.com/hyperledger/blockchain-explorer/blob/master/TROUBLESHOOT.md#problem-description--explorer-fails-to-start-fabric-12

tassio (Tue, 16 Oct 2018 14:07:29 GMT):
But I cannot get past it =( Trying to run Hyperledger Fabric v1.2 + Hyperledger Explorer v0.3.7 + Fabcar Network

ChhaviArora (Tue, 16 Oct 2018 14:17:34 GMT):
Has joined the channel.

jyellick (Tue, 16 Oct 2018 14:45:44 GMT):
https://chat.hyperledger.org/channel/fabric-orderer?msg=DtpToWK7cSWeGaoFA

jyellick (Tue, 16 Oct 2018 14:47:54 GMT):
@yousaf Docker compose made a breaking change between versions which changes the way networks are named. Depending on the version of docker compose and the version of fabric-samples, you may see a mismatch. I'd recommend upgrading all of your components to the most recent version, then, if you still have problems, we can investigate further.

Javi (Tue, 16 Oct 2018 14:56:56 GMT):
hi, exists currently any alternative to hyperledger composer?

Javi (Tue, 16 Oct 2018 14:57:15 GMT):
to connect an interact with fabric

Javi (Tue, 16 Oct 2018 14:57:15 GMT):
to connect and interact with fabric

Nihcep (Tue, 16 Oct 2018 14:59:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PGb35ugimBSbfw76S) @Javi Yes, you can use chaincode https://hyperledger-fabric.readthedocs.io/en/release-1.2/chaincode.html (Composer is just an easy to use interface for create chaincode) or SDK https://hyperledger-fabric.readthedocs.io/en/release-1.3/fabric-sdks.html

yousaf (Tue, 16 Oct 2018 15:29:59 GMT):
@jyellick How to upgrade all my network components?

gravity (Tue, 16 Oct 2018 15:31:15 GMT):
is it possible to enable TLS in a network that is already configured and running?

yousaf (Tue, 16 Oct 2018 15:52:08 GMT):
@jyellick and is there any alternative way to escape from this error?

MohammadObaid (Tue, 16 Oct 2018 16:06:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PGb35ugimBSbfw76S) @Javi you can use node sdk or java sdk

jyellick (Tue, 16 Oct 2018 17:47:36 GMT):
@yousaf With respect to upgrading all of your components, I cannot give exact instructions, but whatever your operating system, you should be able to update docker-compose to the most recent supported version. For the samples and fabric, you should be able to follow the instructions in https://hyperledger-fabric.readthedocs.io/en/release-1.3/install.html

yousaf (Tue, 16 Oct 2018 17:50:20 GMT):
@jyellick agreed sir. But i didn't change version of any component of my network so why there is going to be the need of upgrade? I mean how this change occured which caused this error?

yousaf (Tue, 16 Oct 2018 17:57:03 GMT):
@jyellick I am using v1.2 of fabric-samples for a long time and i didn't change the version of any component neither i download any new samples. So is there possibility of some different issue?

jyellick (Tue, 16 Oct 2018 17:58:47 GMT):
Are you certain an OS update did not change your version of docker-compose? Is there a `.env` file in the first-network directory? It should be there and override the compose network name

yousaf (Tue, 16 Oct 2018 18:01:26 GMT):
@jyellick Yes, I didn't update the OS and there is .env file in first-network directory in which COMPOSE_PROJECT_NAME is set to net

dshuffma (Tue, 16 Oct 2018 18:18:25 GMT):
could someone explain the importance and difference of `escc` and `vscc`. other than what they stand for, i'm not sure what they do or when they come into play.

montana (Tue, 16 Oct 2018 18:21:48 GMT):
What's the purpose of anchor peers in the System channel?

yacovm (Tue, 16 Oct 2018 18:24:18 GMT):
there isn't any....

yacovm (Tue, 16 Oct 2018 18:24:25 GMT):
the system channel doesn't need them

yacovm (Tue, 16 Oct 2018 18:24:29 GMT):
only application channels

Daka (Tue, 16 Oct 2018 18:38:22 GMT):
isn't the anchor peer the one to make a connection through channel with peers from external organizations ?

Daka (Tue, 16 Oct 2018 18:38:22 GMT):
isn't the anchor peer the one to make a connection through channel with peers from external organizations ? @yacovm , @montana

jyellick (Tue, 16 Oct 2018 18:48:14 GMT):
@dshuffma ESCC is what creates the endorsement (signature) when chaincode runs, VSCC is what checks the endorsement when the transaction is about to commit

dshuffma (Tue, 16 Oct 2018 18:52:59 GMT):
@jyellick thanks, that helps. is ESCC/VSCC a category of chaincode or is it referring to a specific chaincode? ie does this sentences make sense: The ESCC for my marbles chaincode is `escc`?

dshuffma (Tue, 16 Oct 2018 18:52:59 GMT):
@jyellick thanks, that helps. is ESCC/VSCC a category of chaincode or is it referring to a specific chaincode or both? ie does this sentences make sense: The ESCC for my marbles chaincode is `escc`?

MohammadObaid (Tue, 16 Oct 2018 18:54:50 GMT):
@dshuffma This might help https://blockchain-fabric.blogspot.com/2018/03/system-chaincodes-in-hyperledger-fabric.html

MohammadObaid (Tue, 16 Oct 2018 18:56:42 GMT):
Hey @jyellick what roles does system channel exactly perform created by orderer ? All ledger and transactions are done through via application channels so where does system channel play its part ?

yacovm (Tue, 16 Oct 2018 19:02:00 GMT):
@Daka but the system channel is only used for orderers

jyellick (Tue, 16 Oct 2018 19:05:30 GMT):
Yes, the orderers use it internally particularly to coordinate channel creation.

montana (Tue, 16 Oct 2018 19:10:24 GMT):
@yacovm @jyellick I just tried, and its technically possible to create a system channel configuration without specifying anchor peers but I get an error when I try to create an application channel with one of the other org's admins. Can you elaborate on the details of "orderers use it internally particularly to coordinate channel creation?"

yacovm (Tue, 16 Oct 2018 19:11:35 GMT):
yes. if you have more than 1 orderer node then if you create a channel in one of them, you want the other to be aware of that

montana (Tue, 16 Oct 2018 19:14:16 GMT):
Just to be clear I'm not talking about Orderer Addresses specified in the genesis block/system channel configuration, I'm referring to anchor peers for orgs specified in system channel

yacovm (Tue, 16 Oct 2018 19:19:52 GMT):
i know

yousaf (Tue, 16 Oct 2018 19:23:28 GMT):
@jyellick That issue related to chaincode instantiation has been fixed. Issue was COMPOSE_PROJECT_NAME was getting null in peer-base file and i hard coded this variable to my network name and it worked fine then.

montana (Tue, 16 Oct 2018 22:17:44 GMT):
I find it strange that an organization cannot create an application channel unless it has anchor peer(s) specified in the system channel. Even if you put a fake anchor peer, it works.

waxer (Wed, 17 Oct 2018 00:24:57 GMT):
@montana arent anchor peers optional?

montana (Wed, 17 Oct 2018 01:11:37 GMT):
@waxer Yeah it wasn't clear how to make them optional. You have to leave blank values in the configtx.yaml. You cannot leave out the section entirely

ManjeetThadani (Wed, 17 Oct 2018 06:06:05 GMT):
Has joined the channel.

ManjeetThadani (Wed, 17 Oct 2018 06:06:18 GMT):
How can we create organizations in swatooth just as we can do in Fabric?

vineetmishra (Wed, 17 Oct 2018 06:34:11 GMT):
Hi Guys ,i N

vineetmishra (Wed, 17 Oct 2018 06:35:47 GMT):
Hi guys, i need little help. I am trying to add organication unit in a organication and but i start network i got error " Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc420418960]] are in MSP Org1MSP orderer.example.com | panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc420418960]] are in MSP Org1MSP"

vineetmishra (Wed, 17 Oct 2018 06:35:47 GMT):
Hi guys, i need little help. I am trying to add an organisation unit in an organisation and but when I start network i got error " Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc420418960]] are in MSP Org1MSP orderer.example.com | panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc420418960]] are in MSP Org1MSP"

sheetal-hlf (Wed, 17 Oct 2018 06:46:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S34BHhoqBmzcFf8ur) @dave.enyeart Thank you for the change request link; I have added a few more questions there

GyoonKi (Wed, 17 Oct 2018 07:13:49 GMT):
Has joined the channel.

GyoonKi (Wed, 17 Oct 2018 07:13:55 GMT):
hi , if i want to employ this tutorial (https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org) but on different (separate machines) what changes should i do it achieve this ?

jonlee300 (Wed, 17 Oct 2018 07:48:46 GMT):

New folder.zip

jonlee300 (Wed, 17 Oct 2018 08:11:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tovYAAZJDRnMvS8pP) @ruien pls find the log above

nothingcool (Wed, 17 Oct 2018 08:42:35 GMT):
Has joined the channel.

nothingcool (Wed, 17 Oct 2018 08:42:44 GMT):
Dear All, I m new to hyperledger fabric. Wanted to setup individual host but i can't find the fabric-ca-server binary. Any pointer where i could get this code and compile?

MohammadObaid (Wed, 17 Oct 2018 08:56:22 GMT):
@nothingcool This may help you https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#getting-started

mastersingh24 (Wed, 17 Oct 2018 09:50:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nRW9HNw4WPvg8JeQK) @nothingcool If you are just getting started, why not use https://hub.docker.com/r/hyperledger/fabric-ca/?

sheetal-hlf (Wed, 17 Oct 2018 11:16:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qEdxYrESKixp7hNSX) @dave.enyeart Hi, I saw the video tutorial on Private Data where things are explained very well; could we have note about the transient store and that private data transactions are not sent to ordering service in the documentation page as well? that will explain the motive of having "requiredPeerCount" and "maxPeerCount" attributes in the collection policy

dave.enyeart (Wed, 17 Oct 2018 11:22:20 GMT):
@sheetal-hlf Thanks for the comments here and in gerrit... I'll make those updates to the private data doc

MuhammedHafil (Wed, 17 Oct 2018 11:48:10 GMT):
this balance transfer network from fabric samples is based on the configuration of first network, right? https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer

MuhammedHafil (Wed, 17 Oct 2018 11:48:10 GMT):
this balance transfer network from fabric samples is based on the configuration of first network, right?I mean the crypto materials and genesis blocks are generated using config files of first network or not? https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer

MuhammedHafil (Wed, 17 Oct 2018 11:48:10 GMT):
The balance transfer network from fabric samples is based on the configuration of first network, right?I mean the crypto materials and genesis blocks are generated using config files of first network or not? https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer

sheetal-hlf (Wed, 17 Oct 2018 12:09:23 GMT):
@dave.enyeart In my application using fabric-node-sdk, I tried to invoke transaction having private data using a org.member who does not have access to private data. I expected an error however the transaction was success. It added private data to the org's peers who have access to private data and only hash was added to other peers. Could you please comment on this?

dave.enyeart (Wed, 17 Oct 2018 12:16:15 GMT):
@sheetal-hlf collection policy defines which org peers are allowed to persist private and receive private data from other peers. But if your client passes the peer the private data, and the transaction is write-only, the peer will gladly endorse the proposal and pass the private data to the other authorized peers, but will not persist the private data. That's why in the doc we distinguish "To support *read/write* transactions...peers must have the private data in order to endorse proposed transactions."

sheetal-hlf (Wed, 17 Oct 2018 12:25:04 GMT):
also the endorsement policy was default (OR); so the transaction must have been endorsed by authorised peer; who persisted the data as well

sheetal-hlf (Wed, 17 Oct 2018 12:25:32 GMT):
in which docker container would I be able to see this flow?

khetesh (Wed, 17 Oct 2018 12:49:42 GMT):
Hello guys i have my two peer running on digital ocean server and now i want to connect my client application with this two peer so can any body tell me how to achieve this thing

khetesh (Wed, 17 Oct 2018 12:49:44 GMT):
?

MuhammedHafil (Wed, 17 Oct 2018 12:50:46 GMT):
refer fabric samples/fabcar or balance transfer

khetesh (Wed, 17 Oct 2018 12:50:50 GMT):
Like... var options = { wallet_path: path.join(__dirname, './creds'), user_id: 'PeerAdmin', channel_id: 'mychannel', chaincode_id: 'supplyv11', peer_url: 'grpc://peer0.org1.example.com:7051', event_url: 'grpc://localhost:7053', orderer_url: 'grpc://orderer.example.com:7050' }; this is the configuration in option object i have set in my local machin

khetesh (Wed, 17 Oct 2018 12:51:36 GMT):
please guide me how can i connect my local client app with fabric network which is running on digital ocean

ruien (Wed, 17 Oct 2018 14:05:18 GMT):
@jonlee300 make your genesis block with `-channelID testchainid` instead of `-channelID composerchannel` (but keep `composerchannel` for the channel creation transaction), and then try again using the Org1 `admin` cert (not `peer0` cert). If it still doesn't work, send the new logs and I'll take another look.

jonlee300 (Wed, 17 Oct 2018 14:06:36 GMT):
will try

MuhammadSalah (Wed, 17 Oct 2018 14:08:31 GMT):
Hello everyone, I have observed a very weird phenomenon; as we are building a small proof of concept that involved multiple organizations on a channel. The peers locked up with MVCC error, and we noticed many event hub timeouts. Could the delays be because of the docker or the machine? What are the possible reasons for such errors? I will be glad if any one gave me a clue. Thank you.

ruien (Wed, 17 Oct 2018 14:09:14 GMT):
@MuhammadSalah I've seen this too, but don't know the cause :-/

ruien (Wed, 17 Oct 2018 14:09:49 GMT):
Can you share any logs?

MuhammadSalah (Wed, 17 Oct 2018 14:10:12 GMT):
@ruien we have tried many different things, made sure of no concurrency, but the network just dies after 2 or 3 hours. It works just fine. I am afraid I can't share the logs as per the client; I was assisting on a project.

ruien (Wed, 17 Oct 2018 14:10:30 GMT):
right, I'm in a similar situation

MuhammadSalah (Wed, 17 Oct 2018 14:11:07 GMT):
However, we tried all the following: 1- Run kafka, solo. 2- Create a strict endorsement policy involves all peers. 3- Increase the time outs. 4- Fiddle with the batch timeout of the orderer.

MuhammadSalah (Wed, 17 Oct 2018 14:11:22 GMT):
All possible combinations of these, issue keeps happening randomly.

MuhammadSalah (Wed, 17 Oct 2018 14:11:37 GMT):
So we traced further, and our assumption is kind of naive but let me share.

ruien (Wed, 17 Oct 2018 14:11:42 GMT):
have you tried reducing the Policy to allow only one endorsement signature (as a test)?

MuhammadSalah (Wed, 17 Oct 2018 14:11:55 GMT):
we tried 1-of

ruien (Wed, 17 Oct 2018 14:11:59 GMT):
yeah, that

MuhammadSalah (Wed, 17 Oct 2018 14:12:00 GMT):
2-of

MuhammadSalah (Wed, 17 Oct 2018 14:12:04 GMT):
3-of

MuhammadSalah (Wed, 17 Oct 2018 14:12:11 GMT):
all combinations.

MuhammadSalah (Wed, 17 Oct 2018 14:12:16 GMT):
irrelevant.

MuhammadSalah (Wed, 17 Oct 2018 14:12:35 GMT):
we came to such a very interesting article too

MuhammadSalah (Wed, 17 Oct 2018 14:12:38 GMT):
let me share here with you

ruien (Wed, 17 Oct 2018 14:12:42 GMT):
sure

MuhammadSalah (Wed, 17 Oct 2018 14:12:54 GMT):
https://getpocket.com/a/read/2085410092

MuhammadSalah (Wed, 17 Oct 2018 14:13:09 GMT):
So we think that maybe the network goes idle for a while

MuhammadSalah (Wed, 17 Oct 2018 14:13:13 GMT):
some peers don't catch up.

MuhammadSalah (Wed, 17 Oct 2018 14:13:19 GMT):
So they lock..

MuhammadSalah (Wed, 17 Oct 2018 14:13:52 GMT):
that's because we use the bridged docker network interface.

MuhammadSalah (Wed, 17 Oct 2018 14:14:01 GMT):
We have over 30 containers communicating.

MuhammadSalah (Wed, 17 Oct 2018 14:14:07 GMT):
So delay can be issue.

MuhammadSalah (Wed, 17 Oct 2018 14:14:23 GMT):
we upped the hardware, nothing resolved as well.

MuhammadSalah (Wed, 17 Oct 2018 14:14:39 GMT):
So we suspect that maybe what is in this article applies, and causes a problem.

MuhammadSalah (Wed, 17 Oct 2018 14:14:51 GMT):
But we are totally kind of unaware of the problem.

MuhammadSalah (Wed, 17 Oct 2018 14:16:01 GMT):
Once the whole network, and our application services run everything is fine, until network is left idle.

MuhammadSalah (Wed, 17 Oct 2018 14:16:19 GMT):
this is the observation we have.

ruien (Wed, 17 Oct 2018 14:18:56 GMT):
I think you shared a private link - it's not accessible even when I am logged in.

MuhammadSalah (Wed, 17 Oct 2018 14:19:11 GMT):
my bad yes it's from my pocket yes sorry.

MuhammadSalah (Wed, 17 Oct 2018 14:19:14 GMT):
let me fetch the link

ruien (Wed, 17 Oct 2018 14:20:38 GMT):
Do you start seeing a delay in the blocks coming from the orderer(/kafka) before it happens?

dave.enyeart (Wed, 17 Oct 2018 14:23:32 GMT):
What release are you guys on?

ruien (Wed, 17 Oct 2018 14:23:36 GMT):
Also, to confirm: your 30 containers are on different machines, right? You're not just seeing this when you're running a bunch of containers on a single host.

ruien (Wed, 17 Oct 2018 14:27:19 GMT):
@dave.enyeart We are on 1.3.1-ce1bd72, but only recently (in the last few days) upgraded from 1.2.1-3cd00d1

ruien (Wed, 17 Oct 2018 14:27:19 GMT):
@dave.enyeart We are on 1.3.1-ce1bd72, but only recently (in the last few days) upgraded from 1.2.1-3cd00d1. Possibly related: docker 17.12.0-ce

MuhammadSalah (Wed, 17 Oct 2018 14:28:34 GMT):
1.2 @dave.enyeart

MuhammadSalah (Wed, 17 Oct 2018 14:33:22 GMT):
Single host.

MuhammadSalah (Wed, 17 Oct 2018 14:33:32 GMT):
@ruien I confirm this over a single dev machine.

ruien (Wed, 17 Oct 2018 14:38:59 GMT):
uhh, hate to say this, but we saw frequent network deaths with docker until splitting up everything onto different machines. Docker kind of has issues.

MuhammadSalah (Wed, 17 Oct 2018 14:39:19 GMT):
should we split them to separate physical machines?

MuhammadSalah (Wed, 17 Oct 2018 14:40:29 GMT):
We could try that, but I thought one machine should have less trouble.

MuhammadSalah (Wed, 17 Oct 2018 14:40:41 GMT):
minimize error, and issues?

dave.enyeart (Wed, 17 Oct 2018 14:41:26 GMT):
@MuhammadSalah There is a known deadlock in fabric v1.2.0. Fixed in v1.2.1.

MuhammadSalah (Wed, 17 Oct 2018 14:42:10 GMT):
@dave.enyeart thank you.

jonlee300 (Wed, 17 Oct 2018 16:49:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=728g789Ygy9k7rsvB) @ruien the err has gone. thanks a lot.

ataul443 (Wed, 17 Oct 2018 18:22:58 GMT):
Has joined the channel.

bh4rtp (Thu, 18 Oct 2018 02:16:14 GMT):
anyone faced this error when run `balance-transfer`: ```./runApp.sh: line 66: 28288 Bus error (core dumped) PORT=4000 node app``` i cleaned npm cache and reinstall modules, but the issue was not solved.

bh4rtp (Thu, 18 Oct 2018 02:16:14 GMT):
anyone faced this error when run `balance-transfer`? ```./runApp.sh: line 66: 28288 Bus error (core dumped) PORT=4000 node app``` i cleaned npm cache and reinstall modules, but the issue was not solved.

DeepakMP (Thu, 18 Oct 2018 05:06:54 GMT):
I'm building an app with Fabric..and looking to have different login users access different functionality (ex: chaincodes).

DeepakMP (Thu, 18 Oct 2018 05:06:58 GMT):
1. Is there a way to add permissions to logged in users based on say account type or some other settings- hard coded is fine?

DeepakMP (Thu, 18 Oct 2018 05:07:02 GMT):
2. Can anyone show me an example of a chain code that detects 'active' user and displays the name of the active user?

DeepakMP (Thu, 18 Oct 2018 05:07:04 GMT):
3. I'm planning to add password authentication to my application for logging in. Is this possible with Fabric or are we better off creating an application level logic for this (ps- I dont fully understand the application logic level either, but am wondering which is a simpler way to go)?

jonlee300 (Thu, 18 Oct 2018 05:22:06 GMT):
Hi, is there any official documentation about building up the network in multiple host (servers with different ip) as in real world 2 organisation won't place their services in same machine. And it also defeats the purpose of DISTRIBUTED ledger. If the machine goes down, all immutable ledger will just go away. I searched 2 articles relative popular but I prefer having an official way to build up as it will involve future upgrading of components etc. https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

jonlee300 (Thu, 18 Oct 2018 05:22:06 GMT):
Hi, is there any official documentation about building up the network in multiple host (servers with different ip) as in real world 2 organisation won't place their services in same machine? And it also defeats the purpose of DISTRIBUTED ledger. If the machine goes down, all immutable ledger will just go away. I searched 2 articles relative popular but I prefer having an official way to build up as it will involve future upgrading of components etc. https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

jonlee300 (Thu, 18 Oct 2018 05:22:06 GMT):
Hi, is there any official documentation about building up the network in multiple host (servers with different ip) as in real world 2 organisations won't place their services in same machine? And it also defeats the purpose of DISTRIBUTED ledger. If the machine goes down, all immutable ledger will just go away. I searched 2 articles relative popular but I prefer having an official way to build up as it will involve future upgrading of components etc. https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/ https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

ruien (Thu, 18 Oct 2018 05:38:54 GMT):
@DeepakMP For (1), we are implementing this type of functionality by checking the user's certificate returning an error (such as "sorry, unauthorized") if the user doesn't have the required permissions. For (2) I'm not sure what you mean by "active" here. The users' Org's CA can revoke a user certificate if they become inactive, such as you canceling their account. (3) It seems it would be simpler to use application logic that invokes chaincode, but this depends on your level of centralization.

ruien (Thu, 18 Oct 2018 05:38:54 GMT):
@DeepakMP For (1), we are implementing this type of functionality by checking the user's certificate returning an error (such as "sorry, unauthorized") if the user doesn't have the required permissions. For (2) I'm not sure what you mean by "active" here. The users' Org's CA can revoke a user certificate if they become inactive, such as you canceling their account. (3) It seems it would be simpler to use application logic that invokes chaincode (to mark a user as logged in or logged out), but this depends on your level of centralization.

ruien (Thu, 18 Oct 2018 05:38:54 GMT):
@DeepakMP For (1), we are implementing this type of functionality by checking the user's certificate returning an error (such as "sorry, unauthorized") if the user doesn't have the required permissions. For (2) I'm not sure what you mean by "active" here. The users' Org's CA can revoke a user certificate if they become inactive, such as you canceling their account. (3) It seems it would be simpler to use application logic that invokes chaincode (to mark a user as logged in or logged out), but this depends on your level of centralization as well as how many cruft transactions you can tolerate.

ruien (Thu, 18 Oct 2018 05:45:40 GMT):
@jonlee300 My understanding is that this is accomplished via a single docker container on each host, and I've upgraded our network a couple of times without issues. The best write-up I've seen is this one: https://www.cnblogs.com/llongst/p/9608886.html

jonlee300 (Thu, 18 Oct 2018 05:47:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h8cYxmuCfeaCofADu) @ruien thanks cool. thanks.

jonlee300 (Thu, 18 Oct 2018 05:59:50 GMT):
Is this the way to map host to ip? I can simply change 192.168.235.3 .. .10 to respective ips that my VM is located? extra_hosts: - "orderer0.example.com:192.168.235.3" - "orderer1.example.com:192.168.235.4" - "orderer2.example.com:192.168.235.5" - "peer0.org1.example.com:192.168.235.7" - "peer1.org1.example.com:192.168.235.8" - "peer0.org2.example.com:192.168.235.9" - "peer1.org2.example.com:192.168.235.10"

ruien (Thu, 18 Oct 2018 06:02:00 GMT):
`extra_hosts` appends those entries to `/etc/hosts` in the container. I'd very much suggest to just set up DNS for each machine and ignore `extra_hosts` completely. Not only does that make your configuration that much simpler, but it also makes it easier to interface with from the outside from machines without having to set /etc/hosts everywhere else.

ruien (Thu, 18 Oct 2018 06:02:16 GMT):
So, to answer your question: yes, but I don't recommend it. Done.

pyraman (Thu, 18 Oct 2018 08:09:44 GMT):
Has joined the channel.

pyraman (Thu, 18 Oct 2018 08:10:21 GMT):
I'm facing this error (from node sdk). https://stackoverflow.com/questions/52554910/unable-to-join-channel-simulateproposal-resulted-in-chaincode-namecscc-res

satyajitdeshmukh (Thu, 18 Oct 2018 08:43:51 GMT):
can anyone help me to resolve this issue for fabcar demo example Failed to invoke successfully :: TypeError: fabric_client.newEventHub is not a function

satyajitdeshmukh (Thu, 18 Oct 2018 08:44:25 GMT):
for command node invoke.js

dulev (Thu, 18 Oct 2018 08:48:45 GMT):
Hello, I have a fabric network setup that works through a docker overlay network. When I execute `docker network inspect fab_overlay_net` the chaincode containers are there along with the peer and orderer containers. My question is whether the chaincode containers should be isolated from the rest of the containers in another network and if so, how can I do that (the chaincode containers are created from the peer container)?

dulev (Thu, 18 Oct 2018 08:48:45 GMT):
Hello, I have a fabric network setup that works through a docker overlay network. When I execute `docker network inspect fab_overlay_net` the chaincode containers are there along with the peer and orderer containers. My question is whether the chaincode containers should be isolated from the rest of the containers in another network and if so, how can I do that (the chaincode containers are created from the peer container)?

IceFox (Thu, 18 Oct 2018 08:58:49 GMT):
Hi, When I restart my kafka services, I faced the issue of 'Rejecting deliver request for 10.1.0.29:47452 because of consenter error'

IceFox (Thu, 18 Oct 2018 08:59:52 GMT):
Has anyone else faced the same issue?

pyraman (Thu, 18 Oct 2018 09:52:02 GMT):
@satyajitdeshmukh I've faced that issue too. change line: "fabric-client": "^1.0.0" -> "fabric-client": "~1.0.0" (in package.json)

satyajitdeshmukh (Thu, 18 Oct 2018 10:51:22 GMT):
@pyraman ok.. i will try that also... i got one more solution from https://stackoverflow.com/questions/51436123/unable-to-find-neweventhub-function

sayyamahmed (Thu, 18 Oct 2018 11:03:36 GMT):
Has joined the channel.

sayyamahmed (Thu, 18 Oct 2018 11:04:05 GMT):
i am new in hyper ledger i have an issue that how an organization connect with my block chain from different place mean i am here in pakistan and an other organization uk then how we connect to each other..like in ethereum we just need to sync the block chain and thats it we have all data..i know that hyperledger is permissioned blockchain but how same ledger is stored in an orginazation in uk as my ledger in pakistan

sayyamahmed (Thu, 18 Oct 2018 11:04:05 GMT):
then where is channelstored

sayyamahmed (Thu, 18 Oct 2018 11:05:34 GMT):
where is my chaincode stored..like ethereum smart contract store on ethereum main net

HasnatAhmed (Thu, 18 Oct 2018 11:18:07 GMT):
Has joined the channel.

lay-z (Thu, 18 Oct 2018 11:21:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=syE4RFzGcG7NsF6MC) @sayyamahmed I believe the chaincode is stored on the channel, as part of the block, if i'm not mistaken

sayyamahmed (Thu, 18 Oct 2018 11:29:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mhcqppa4KLLoFrd35) @lay-z then where is channelstored

lay-z (Thu, 18 Oct 2018 11:31:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7E6zawCfon9HNDyfH) @sayyamahmed Channels are pretty much their own blockchains. They have their own genesis block (or channel.tx)

lay-z (Thu, 18 Oct 2018 11:31:50 GMT):
So those are stored on the peers

lay-z (Thu, 18 Oct 2018 11:32:31 GMT):
https://vitalflux.com/hyperledger-fabric-channels-private-blockchain-deep-dive/ its a bit old but I think concept is still the same

sayyamahmed (Thu, 18 Oct 2018 11:39:36 GMT):
ok thanks but i have

sayyamahmed (Thu, 18 Oct 2018 11:42:18 GMT):
sorry @lay-z but i am new in hyper ledger i have an issue that how an organization connect with my block chain from different place mean i am here in pakistan and an other organization in uk then how we connect to each other..like in ethereum we just need to sync the block chain and thats it we have all data..i know that hyperledger is permissioned blockchain but how same ledger is stored in an orginazation in uk as my ledger in pakistan

lay-z (Thu, 18 Oct 2018 11:45:16 GMT):
:thinking: this is a good question

lay-z (Thu, 18 Oct 2018 11:45:32 GMT):
I would asumme that peers somehow have information about the orderer, like they will know the address of the orderer somehow

lay-z (Thu, 18 Oct 2018 11:45:42 GMT):
and then they request to the orderer to please give me update of blocks

lay-z (Thu, 18 Oct 2018 11:45:56 GMT):
BUT, i don't actually know how this happens.

lay-z (Thu, 18 Oct 2018 11:46:50 GMT):
maybe someone else here knows?

sayyamahmed (Thu, 18 Oct 2018 11:48:12 GMT):
in documentation there is nothing about live..i mean i developed and deploy my network locally but where i should deployed my network so any other organization who have permission can access my block chain

lay-z (Thu, 18 Oct 2018 12:16:38 GMT):
Okay, all information about peers and orderers and their connections are all available as part of the genesis block. and this, along with peers and orderers public keys are placed into the blockchain (this is how other peers can connect to the orderer). When any new orgs join, they need to request to update this information. So first they will need to request access to the channel that is done in the form of a transaction. If this transaction is allwed by the members on the current channel, then the orderer will accept transactions from this peer and the peer will also be able to gain access to the blockchain

lay-z (Thu, 18 Oct 2018 12:17:49 GMT):
So to answer your question @sayyamahmed you can deploy it whereever you like, you just need to make sure that the orderer and peer urls are known before hand and it starts the whole network off

GiovanniNapoli (Thu, 18 Oct 2018 12:18:11 GMT):
Hi guys does anybody know where to find in sources how a peer updates its local copy of the ledger? Thx

AndreiLovin (Thu, 18 Oct 2018 13:28:26 GMT):
Hello, how do I find what users have been enrolled onto my fabric network?

ruien (Thu, 18 Oct 2018 13:36:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N5pWyR4PZKhyeoEWx) @AndreiLovin `sqlite3 fabric-ca-server.db` and `select * from users;`

ruien (Thu, 18 Oct 2018 13:46:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3MSfdowEKogpJTwnK) @GiovanniNapoli I am by no means an expert, but I believe this process is called "*committing*" and is done in *CommitWithPvtData* in `core/ledger/kvledger/kv_ledger.go` around line 271. Note that `BlockPvtData` may be nil as seen in `assert.NoError(t, ledger.CommitWithPvtData(&lgr.BlockAndPvtData{Block: block1}))`.

ruien (Thu, 18 Oct 2018 13:46:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3MSfdowEKogpJTwnK) @GiovanniNapoli I am by no means an expert, but I believe this process is called *committing* and is done in *CommitWithPvtData* in `core/ledger/kvledger/kv_ledger.go` around line 271. Note that `BlockPvtData` may be nil as seen in `assert.NoError(t, ledger.CommitWithPvtData(&lgr.BlockAndPvtData{Block: block1}))` in kv_ledger_test.go.

ruien (Thu, 18 Oct 2018 13:55:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vPxKj2Sce5srWGgPA) @IceFox I haven't seen this issue before, but according to https://hyperledger-fabric.readthedocs.io/en/release-1.1/ordering-service-faq.html it can be related to the Kafka cluster not being able to talk to each other. Have you confirmed that you're able to connect to the kafka brokers on port 9092 through the domain specified under `Kafka: Brokers:` in configtx.yaml and the foreground console output on all of the kafka instances shows a connected status? Also, I'd check zookeeper and ensure that one of the nodes is a leader and that they're all reachable on 2181/2888/3888

AndreiLovin (Thu, 18 Oct 2018 14:00:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r5QDn4XNXk5ms6v5v) @ruien I was thinking something closer to a Node SDK endpoint...

garri1105 (Thu, 18 Oct 2018 14:00:42 GMT):
Hello! I've been trying to use the fabric-sdk-rest paired with the fabric-samples network and I've been unsuccessful in all my attempts. When I start the fabric-rest-server and I go to the Loopback interface, everytime I try to perform any operation, the response is always 401 Unauthorized. How can I gain access to the network through the REST API? `Unhandled error for request GET /api/fabric/1_0/channels: Error: Authorization Required

garri1105 (Thu, 18 Oct 2018 14:00:42 GMT):
Hello! I've been trying to use the fabric-sdk-rest paired with the fabric-samples network and I've been unsuccessful in all my attempts. When I start the fabric-rest-server and I go to the Loopback interface, everytime I try to perform any operation, the response is always 401 Unauthorized. How can I gain access to the network through the REST API? `Unhandled error for request GET /api/fabric/1_0/channels: Error: Authorization Required`

ruien (Thu, 18 Oct 2018 14:03:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gMRbHc9KnBYWnzqQe) @AndreiLovin Oh, right. I'm not sure if there's any SDK implementation for this, but can you just use the CA API procedure `ReadUserSet`?

AndreiLovin (Thu, 18 Oct 2018 14:05:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FPsSwTLCPfFLymsua) @ruien I'm fairly new to Hyperledger and I'll have to research this, thank's for the idea.

GiovanniNapoli (Thu, 18 Oct 2018 14:16:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tLSbp4NYkBgzQ56pL) @ruien Thank you! I'll give it a check. And what about receiving messages from the Orderer? Any idea?

ruien (Thu, 18 Oct 2018 14:18:56 GMT):
No, I don't know anything about that. Also it probably depends on whether it's an anchor peer or not.

GiovanniNapoli (Thu, 18 Oct 2018 14:20:24 GMT):
Ok got it, thank you :)

AndreiLovin (Thu, 18 Oct 2018 14:24:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5jjybHXed6YrAFp8z) To quote the documentation: "The ReadUserSet function allows only auditors to retrieve the list of users registered with the blockchain." I don't think this will accomplish what I'm trying to achieve... I'm going to ask maybe a far general question: In production, what would the best platform be for user management? I'm having the Fabric network, a NodeJS app, and a client Angular application. I think I will need an extra layer to manage users, with permission, roles, etc.

AndreiLovin (Thu, 18 Oct 2018 14:24:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r5QDn4XNXk5ms6v5v) @ruien To quote the documentation: "The ReadUserSet function allows only auditors to retrieve the list of users registered with the blockchain." I don't think this will accomplish what I'm trying to achieve... I'm going to ask maybe a far general question: In production, what would the best platform be for user management? I'm having the Fabric network, a NodeJS app, and a client Angular application. I think I will need an extra layer to manage users, with permission, roles, etc.

GiovanniNapoli (Thu, 18 Oct 2018 14:51:57 GMT):
Another question. Reconstructing the `CONFIG_UPDATE` operation inside the sources, when the Orderer manages the `ConfigMsg` it calls the `WriteBlock` function, which puts the block in the channel Blocks. Well, after this operation, how peers are notified of the new configuration is active? I mean, how do they receive this information from the Orderer? Reference to lines: - line 169 `fabric/orderer/consensus/solo/consensus.go`

GiovanniNapoli (Thu, 18 Oct 2018 14:51:57 GMT):
Another question. Reconstructing the `CONFIG_UPDATE` operation inside the sources, when the Orderer manages the `ConfigMsg` it calls the `WriteBlock` function, which puts the block in the channel Blocks. Well, after this operation, how peers are notified of the new configuration is active? I mean, how do they receive this information from the Orderer? Reference to lines: - line 169 of `orderer/consensus/solo/consensus.go` - line 93 of `forderer/mocks/common/multichannel/multichannel.go`

GiovanniNapoli (Thu, 18 Oct 2018 14:51:57 GMT):
Another question. Reconstructing the `CONFIG_UPDATE` operation inside the sources, when the Orderer manages the `ConfigMsg` it calls the `WriteBlock` function, which puts the block in the channel Blocks. Well, after this operation, how peers are notified of the new configuration is active? I mean, how do they receive this information from the Orderer? Reference to lines: - line 169 of `orderer/consensus/solo/consensus.go` - line 93 of `orderer/mocks/common/multichannel/multichannel.go`

gravity (Thu, 18 Oct 2018 15:15:29 GMT):
Hi all I'm trying to upgrade a chaincode after joining a new org to a channel, but getting this error: ``` root@b88c1a11958a:/opt/gopath/src/github.com/hyperledger/fabric/peer# CORE_PEER_MSPCONFIGPATH=/data/orgs/partners-org/admin/msp peer chaincode upgrade -o partners-orderer-1:7050 -C tmpchannel -n common -v 2.0 -P "OR ('main-orgMSP.member','partners-orgMSP.member')" -c '{"Args":["init", ""]}'2018-10-18 15:00:13.799 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-10-18 15:00:13.799 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: got unexpected status: NOT_FOUND -- channel does not exist ``` but the peer is a member of this channel Does anyone know how to fix it?

GiovanniNapoli (Thu, 18 Oct 2018 15:18:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2kCrMgtc3jPaJMW5p) @gravity Try with `-c` instead of `-C`. Does it give you the same error?

gravity (Thu, 18 Oct 2018 15:19:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9J63XH4xqJJnxNr8n) @GiovanniNapoli lower case `-c` is in use for constructor arguments in here

maroodb (Thu, 18 Oct 2018 15:37:30 GMT):
Has joined the channel.

maroodb (Thu, 18 Oct 2018 15:38:11 GMT):
Hello World! I want to enroll a peer using the fabric_ca_client (nodjes) , but I just found how to enroll user

maroodb (Thu, 18 Oct 2018 15:46:02 GMT):
fabric

gravity (Thu, 18 Oct 2018 16:06:34 GMT):
Given the situation: I've a single org network. Later, I've added one more and joined peer1 from that org to a channel named tmpchannel. Next, I can enroll as a user1 on ica server related to org1 and call a chaincode and everything is ok. Next, I login to peer1 in org2, enrolled user1 using ica server related to org1 and attempting to call a chaincode, but getting the error: ``` 2018-10-18 16:00:30.997 UTC [protoutils] ValidateProposalMessage -> WARN 04d channel [tmpchannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority ``` Is it a correct behavior?

DeepakMP (Thu, 18 Oct 2018 16:10:52 GMT):
Hi quick doubt!

DeepakMP (Thu, 18 Oct 2018 16:11:02 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4ade.html

DeepakMP (Thu, 18 Oct 2018 16:11:39 GMT):
After writing custom chaincode, we have to compile the chaincode:

DeepakMP (Thu, 18 Oct 2018 16:11:40 GMT):
go get -u github.com/hyperledger/fabric/core/chaincode/shim go build

DeepakMP (Thu, 18 Oct 2018 16:12:04 GMT):
However the first step takes ample time!

DeepakMP (Thu, 18 Oct 2018 16:12:26 GMT):
Especially since I have to resort to git clone --depth 1 and git fetch unshallow.

DeepakMP (Thu, 18 Oct 2018 16:13:00 GMT):
I'm wondering if this is required to be done each time you write a (new) chaincode?

DeepakMP (Thu, 18 Oct 2018 16:13:35 GMT):
for reference: Last time I compiled I was here: /Users/deepak/go/src/sacc/

DeepakMP (Thu, 18 Oct 2018 16:14:00 GMT):
ie., /Users/deepak/go/src/sacc/sacc.go

DeepakMP (Thu, 18 Oct 2018 16:14:22 GMT):
Now I'm at /Users/deepak/go/src/test/tccc.go

DeepakMP (Thu, 18 Oct 2018 16:17:59 GMT):
Also, I'm unclear on where my collections.json is supposed to be placed for a custom (private) collection? I followed the steps for the tutorial and it worked, but I'm not sure if the code worked from fabric-samples directory or somewhere else.

DeepakMP (Thu, 18 Oct 2018 16:18:31 GMT):
*about the collections-definition.json document*

DeepakMP (Thu, 18 Oct 2018 16:35:27 GMT):
also when I built in that directory and I go into cli from fabric-samples/chaincode-docker-devmode, the cli doesn't list my latest directory or the go program contained in it. How does the directory structure etc work for fabric, where does it pick chaincode from generally and how are files (globally) supposed to be organised? - the documentation does not throw light on this.

ColeBoudreau (Thu, 18 Oct 2018 16:58:49 GMT):
I'm having an issue where a function is supposed to add a new participant to the registry, but it doesn't. The transaction seems to complete successfully, but the registry isn't updated. PM me and I can post code

waxer (Thu, 18 Oct 2018 20:24:18 GMT):
I'm trying to understand what is really 'dev mode' on the peer. As far as I understood, the chaincode code is running in the CLI. I guess the PEER_ADDRESS env tells the chaincode to use the peer API to access LevelDB/ledger (i.e, in the PutState, GetState, etc). Is this correct?, saying it differently: The code is running in the CLI, but the apis of the shim interface that need state go to the peer that is in another machine.

DeepakMP (Fri, 19 Oct 2018 05:51:09 GMT):
Hi, anyone can shed light on: Error: endorsement failure during query. response: status:500?

DeepakMP (Fri, 19 Oct 2018 05:51:54 GMT):
I'm doing pretty much a replica of marbles collections chaincode.

DeepakMP (Fri, 19 Oct 2018 05:52:48 GMT):
I'm able to save data using invoke (atleast it says chaincode invoke successful).

DeepakMP (Fri, 19 Oct 2018 05:54:04 GMT):
But query isn't able fetch the saved data.

DeepakMP (Fri, 19 Oct 2018 05:54:13 GMT):
Anyone understands what this means?

khetesh (Fri, 19 Oct 2018 05:55:25 GMT):
Hello everyone i am having problem with getting user credential **

khetesh (Fri, 19 Oct 2018 05:55:36 GMT):
error: [Client.js]: Failed to load user "admin" from local key value store. Error: TypeError: Cannot read property 'curve' ofundefined at Object.KEYUTIL.getKey (/home/kheteshr/Desktop/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Desktop/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at error: [Client.js]: Failed to load an instance of requested user "admin" from the state store on this Client instance. Error:TypeError: Cannot read property 'curve' of undefined at Object.KEYUTIL.getKey (/home/kheteshr/Desktop/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Desktop/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at

DeepakMP (Fri, 19 Oct 2018 06:14:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q6KGjnquHBpXSePC2) For reference: The code I'm using is here: https://codeshare.io/5Xr8V8

moficodes (Fri, 19 Oct 2018 06:26:08 GMT):
Hey All, I am not sure if this is the right place to ask this question. But I tried to build hyperledger in my local machine following this url https://hyperledger-fabric.readthedocs.io/en/release-1.2/dev-setup/build.html and it failed with the following code. ``` ... ... unit-tests_1 | ? github.com/hyperledger/fabric/protos/peer [no test files] unit-tests_1 | ? github.com/hyperledger/fabric/protos/testutils [no test files] unit-tests_1 | ? github.com/hyperledger/fabric/protos/transientstore [no test files] unit-tests_1 | ok github.com/hyperledger/fabric/protos/utils 0.878s coverage: 85.4% of statements unit-test_unit-tests_1 exited with code 1 Aborting on container exit... Stopping couchdb ... done make: *** [unit-test] Error 1 ``` This is my env OS - macos 10.14 go - 1.10.4 docker - 18.06 docker-compose - 1.22.0 Python - 2.7 pip - 18.0 Any insight on this? or maybe the right place for this question. I will retry this in my ubuntu machine.

DeepakMP (Fri, 19 Oct 2018 07:03:52 GMT):
How do we use GetPrivateData to get all values in a particular collection?

DeepakMP (Fri, 19 Oct 2018 07:06:13 GMT):
This is what I read in Interfaces.go:

DeepakMP (Fri, 19 Oct 2018 07:06:13 GMT):
// PutPrivateData puts the specified `key` and `value` into the transaction's // private writeset. Note that only hash of the private writeset goes into the // transaction proposal response (which is sent to the client who issued the // transaction) and the actual private writeset gets temporarily stored in a // transient store. PutPrivateData doesn't effect the `collection` until the // transaction is validated and successfully committed. Simple keys must not be // an empty string and must not start with null character (0x00), in order to // avoid range query collisions with composite keys, which internally get // prefixed with 0x00 as composite key namespace.

DeepakMP (Fri, 19 Oct 2018 07:07:03 GMT):
Is there a way to verify my invoke/PutPrivateData calls are actually committing to collections?

likebike (Fri, 19 Oct 2018 07:28:54 GMT):
Has joined the channel.

likebike (Fri, 19 Oct 2018 07:29:26 GMT):
Hi everyone. I'm learning Fabric. Finally found this place. :)

likebike (Fri, 19 Oct 2018 07:33:58 GMT):
At this point in my learning, it really seems like Fabric is an interesting tool which unfortunately is buried in many many layers of needless complexity. Seems like this whole thing could be done so much simpler. Maybe i'll change my view as I learn more...

DeepakMP (Fri, 19 Oct 2018 08:03:47 GMT):
Hi, I'm trying to build a REST API to call my private collections queries (invoke, query, etc).

DeepakMP (Fri, 19 Oct 2018 08:04:23 GMT):
I've never built a REST API before, much less one in Fabric.

DeepakMP (Fri, 19 Oct 2018 08:04:53 GMT):
Any guidance or guides will help me a lot!

khetesh (Fri, 19 Oct 2018 08:07:02 GMT):
any body faced this problem while invoking transaction error: [Client.js]: Failed to load user "admin" from local key value store. Error: TypeError: Cannot read property 'curve' ofundefined at Object.KEYUTIL.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at error: [Client.js]: Failed to load an instance of requested user "admin" from the state store on this Client instance. Error:TypeError: Cannot read property 'curve' of undefined

halilkalkan (Fri, 19 Oct 2018 08:24:11 GMT):
Hi, I want to learn which information we can hide with identity mixer currently? Because it seems from documentation there are lots of limitations and I want to compare regular certificate and identity mixer hands on.

halilkalkan (Fri, 19 Oct 2018 08:24:11 GMT):
Hi, I want to learn which information can we hide with identity mixer currently? Because it seems from documentation there are lots of limitations and I want to compare regular certificate and identity mixer hands on.

vdods (Fri, 19 Oct 2018 08:27:53 GMT):
Hi all, how does one disable the "Queries on pvt data is supported only in a read-only transaction" check for private collections? I understand why a draconian default would be used to guarantee that private data has zero chance of making it onto the public ledger, but that's a very special subcase. I would like to satisfy that contract myself without this unnecessary rule, as some of my mutation transactions on private data require -- suprise, suprise -- reading that private data in order to decide what to do.

vdods (Fri, 19 Oct 2018 08:28:04 GMT):
I realize that it's possible to break up the single transaction that I want to write into several transactions to satisfy the strict privacy constraint, but that would really complicates things

Sanjay_Nishank (Fri, 19 Oct 2018 08:40:00 GMT):
Has joined the channel.

maroodb (Fri, 19 Oct 2018 08:48:14 GMT):
hello world, who has a good tutorial for fabric CA, the documentation is complicated

satyajitdeshmukh (Fri, 19 Oct 2018 09:22:48 GMT):
Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced [recovered] panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced

gravity (Fri, 19 Oct 2018 09:42:14 GMT):
Hello is there any recommendations on how many peers should be serving a channel for a better throughput?

edoardo_bdf (Fri, 19 Oct 2018 10:46:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mvRvRAua3CJYpXNbF) @satyajitdeshmukh @satyajitdeshmukh You probably got the indentation wrong for the channelcapabilities

satyajitdeshmukh (Fri, 19 Oct 2018 11:13:13 GMT):
is ther any command to list anchor peers,channels , users etc. ?

satyajitdeshmukh (Fri, 19 Oct 2018 11:13:43 GMT):
@edoardo_bdf i am following this link https://www.skcript.com/svr/setting-hyperledger-fabric-network-multiple-chaincodes-channels/

satyajitdeshmukh (Fri, 19 Oct 2018 11:13:49 GMT):
please guide

Legiit (Fri, 19 Oct 2018 11:15:44 GMT):
I don't really understand the difference between the KeyValueStore versus the CryptoSuite/Wallet and the KeyStore Which is used for what

ClaudioBenvenuti (Fri, 19 Oct 2018 11:34:54 GMT):
Has joined the channel.

dave.enyeart (Fri, 19 Oct 2018 12:03:28 GMT):
@vdods I've answered your duplicate question in #fabric-chaincode-dev

dave.enyeart (Fri, 19 Oct 2018 12:05:38 GMT):
@DeepakMP To get all private data in a collection, do a range query with empty start and end value: https://github.com/hyperledger/fabric/blob/release-1.3/core/chaincode/shim/interfaces.go#L274-L283

ShefaliMittal (Fri, 19 Oct 2018 12:22:17 GMT):
Hello, Can any one please tell me how do I external package to my chaincode. I read about go vendor but unable to get the proper understanding about it. Also if possible please provide some set of commands that I could execute to include the required package.

VikasJakhar (Fri, 19 Oct 2018 13:11:51 GMT):
hi

VikasJakhar (Fri, 19 Oct 2018 13:12:54 GMT):
I tried installing the fabric 1.2 ( fabric-samples). When I run the first-network I get the following error for "byfn.sh up"

VikasJakhar (Fri, 19 Oct 2018 13:12:54 GMT):
I tried installing the fabric 1.2 ( fabric-samples). When I run the first-network I get the following error for "byfn.sh up"

VikasJakhar (Fri, 19 Oct 2018 13:14:25 GMT):
Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========

VikasJakhar (Fri, 19 Oct 2018 13:15:08 GMT):
@dave.enyeart can u help ?

LazarLukic (Fri, 19 Oct 2018 13:16:59 GMT):
Hey everyone, whats the release date for fabric-ca-peer 1.3 image? Thanks

khetesh (Fri, 19 Oct 2018 13:24:01 GMT):
I am facing this problem while sending transaction proposal to network TypeError: Cannot read property 'curve' of undefined

khetesh (Fri, 19 Oct 2018 13:24:07 GMT):
using node sdk

DeepakMP (Fri, 19 Oct 2018 15:02:19 GMT):
cannot use resAsbytes (type shim.StateQueryIteratorInterface) as type []byte in argument to shim.Success

wuqilv (Fri, 19 Oct 2018 16:40:02 GMT):
Has joined the channel.

wuqilv (Fri, 19 Oct 2018 16:43:27 GMT):
Hello every one !:relaxed: fabric v1.3.0 + fabric-sdk-py, it is OK? Which version of the fabric and SDK recommended?

jonlee300 (Fri, 19 Oct 2018 18:45:28 GMT):
Hi, I deployed using basic-network sample 2 peers in VM1 and 1 peer in VM2. Using extra_hosts: - "orderer.example.com:IP.ADDRESS" it then entered into cli install chaincode then run query with following error peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' Error: endorsement failure during query. response: status:500 message:"failed to execute transaction e4c33fdc74f6b32944f1547f5b920c53d052f5633bbc5e55d93d0c8fb5ff20b1: failed to get deployment spec for mycc:1.0: getdepspec mychannel/mycc responded with error: chaincode fingerprint mismatch: data mismatch" Could somebody advise what went wrong please?

WouterVanHecke (Fri, 19 Oct 2018 18:46:46 GMT):
Got some problems creating my proposal and singing my offline transaction. I'm saving the PEM strings of a newly registered user in a seperate mongoDB, when I want to invoke a function, I'm getting the pem string of that specific user. I'm creating an unsigned proposal to send to the peer, with this proposel, I have to send my certificate. I'm getting the next error, and yes, I'm sure I registered the user. ``` 2018-10-19 18:33:54.485 UTC [protoutils] ValidateProposalMessage -> WARN 046 channel [mychannel]: creator's signature over the proposal is not valid: could not determine the validity of the signature: Failed verifing with opts []: Invalid S. Must be smaller than half the order [84298445310729447882992216053185201901884850364806608846154393282849943336833][57896044605178124381348723474703786764998477612067880171211129530534256022184]. ``` I'm using version 1.3 for the offline transaction signing, but I'm not sure what I have to do with the cryptoStore and so on and how I get this working. Thanks!

ethode (Sat, 20 Oct 2018 01:50:12 GMT):
Has joined the channel.

leura (Sat, 20 Oct 2018 04:29:29 GMT):
Has joined the channel.

leura (Sat, 20 Oct 2018 04:33:16 GMT):
what exactly are the read-write sets? how are they generated by endorsers? where do i learn low level details of these things?

jonlee300 (Sat, 20 Oct 2018 09:49:47 GMT):
Hi, when i tried to build a 1 org to 2 orgs network. I regenerated the genesis block for 2 orgs and reconfig the configtx.yaml. I got below err when creating the channel `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` Thanks in advance for helping out.

shiftby (Sat, 20 Oct 2018 10:45:47 GMT):
Has joined the channel.

Ammar8573 (Sat, 20 Oct 2018 17:52:13 GMT):
Has joined the channel.

Ammar8573 (Sat, 20 Oct 2018 17:52:22 GMT):
i created the fabric network with using composer cli tools and rest server api to connect to that network with my webapp i want to access that network without using rest server

Ammar8573 (Sat, 20 Oct 2018 17:52:22 GMT):
i created the fabric network by using composer cli tools and rest server api to connect to that network with my webapp i want to access that network without using rest server

yousaf (Sat, 20 Oct 2018 20:42:51 GMT):
Hi everyone...I have 2 questions. 1) If a peer has installed multiple same named multiple chaincodes for multiple channels(which the peer have joined.) then is it necessary that their versions should be different? 2) Are the anchor peers specified for an organization, per channel separately? Or they are fixed while developing the network, independent of the channel?

ivohuisjes (Sun, 21 Oct 2018 09:44:15 GMT):
Has joined the channel.

ivohuisjes (Sun, 21 Oct 2018 10:16:36 GMT):
This a shot in the dark: I have spent the last day trying to fix a problem that is 100% identical to https://stackoverflow.com/questions/52766492/hyperledger-fabric-on-aws-ecs-not-instantiate-chaincode. My gues is that the peers don't have the role of ENDORSE, but I can not find ANY documentation how to configure a peer as an endorsing node, during channel creation. Can someone help?

ivohuisjes (Sun, 21 Oct 2018 10:19:24 GMT):
@yousef for both questions I think chaincode and anchor peer transactions are channel-specific, so duplicate names and version should be allowed

yousaf (Sun, 21 Oct 2018 11:04:08 GMT):
@ivohuisjes Then how the peer is going to differentiate between the same named chaincodes implemented with same logic for different channels?

ivohuisjes (Sun, 21 Oct 2018 11:13:02 GMT):
@yousaf I think it is diffentiating by the unique Id, but I am not sure

ivohuisjes (Sun, 21 Oct 2018 11:13:41 GMT):
peer chaincode list --installed Get installed chaincodes on peer: Name: mycc, Version: 1.0, Path: github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02, Id: 8cc2730fdafd0b28ef734eac12b29df5fc98ad98bdb1b7e0ef96265c3d893d61

yousaf (Sun, 21 Oct 2018 11:15:19 GMT):
@ivohuisjes Thankyou very much man. Got it :)

yousaf (Sun, 21 Oct 2018 11:20:50 GMT):
@ivohuisjes As much as can guess is that peer instantantiate chaincode command is used to make a peer act as an endorsing one. This step comes after the channel has been created and peer of the channel member org is ready to be instantiated on the channel.

ivohuisjes (Sun, 21 Oct 2018 11:25:37 GMT):
thanks for your answer. the question is then: since you only instantiate chaincode from 1 of the 2 joined orgs, how does the other peer (from the other org) know to act as an endorsing peer?

yousaf (Sun, 21 Oct 2018 15:57:41 GMT):
@ivohuisjes When you instantiate your chaincode from one peer then dusring this step, you specify the endorsement policy that which peers of which organization is going to act as an endorsing one. If you are following the official doc of fabric then its by default peer instantiation command, include endorsement policy for peers from both orgs to act as endorsing ones.

ivohuisjes (Sun, 21 Oct 2018 16:28:05 GMT):
Indeed. I specified the endorsment policy when instantiating the chaincode from a peer from Org1. Does this mean: just by setting the policy to -P "OR ('Org1MSP.member', 'Org3MSP.member')" does this mean Org3 will automatically choose a peer and give it a role of ENDORSE? There is no documentation how this process works.

ivohuisjes (Sun, 21 Oct 2018 16:28:39 GMT):
Perhaps there is something different going on

yousaf (Sun, 21 Oct 2018 16:37:12 GMT):
@ivohuisjes Yes. It means that anchor peer of Org3 is going to act as endorsing one from Org3.

ivohuisjes (Sun, 21 Oct 2018 16:46:42 GMT):
@yousaf thanks

S.pradeepkumar (Sun, 21 Oct 2018 18:10:45 GMT):
Has joined the channel.

S.pradeepkumar (Sun, 21 Oct 2018 18:13:10 GMT):
Hi every one, I am new to hyperledger fabric, while request create-channel in rest-api it gives the error: no identity has been assigned to this client.then.then.then.newdefaultkeystorevalue..what does it means??..if anyone know how to solve this..plz let me know ..Thanks in advance

ShashankMotepalli (Sun, 21 Oct 2018 19:10:32 GMT):
Hi, I have been following First-network in fabric samples tutorial, if I have to access the network with a Node SDK, what changes I need to make?

ShashankMotepalli (Sun, 21 Oct 2018 19:11:29 GMT):
I have followed writing first application tutorial too, but I see First-network sample doesnot have CA, so what steps would change?

ShashankMotepalli (Sun, 21 Oct 2018 19:15:47 GMT):
Or it would help if someone can share a network with 2/more orgs and accessed with NODE sdk, for reference? Thanks in advance!

JohnSnow (Sun, 21 Oct 2018 22:40:29 GMT):
Has joined the channel.

aarshleadiq (Mon, 22 Oct 2018 03:00:20 GMT):
Has joined the channel.

aarshleadiq (Mon, 22 Oct 2018 03:01:14 GMT):
Hi Guys. My name is Aarsh. 2 down vote favorite 1 We use Hyperledger fabric backed by CouchDB to store records with a lot of text. We want to build a solution that allows free text search on these records using Elastic Search. The problem then is getting the fabric/CouchDB data into elastic search in real time. What's the best way to do it ?

aarshleadiq (Mon, 22 Oct 2018 03:02:40 GMT):
Hi guys, my name is Aarsh. We use Hyperledger fabric backed by CouchDB to store records with a lot of text. We want to build a solution that allows free text search on these records using Elastic Search. The problem then is getting the fabric/CouchDB data & updates into elastic search in real time. What's the best way to do it ?

aarshleadiq (Mon, 22 Oct 2018 03:02:57 GMT):
I believe hyperlerdger fabric peers provide something called 'event services' which publish events every time it writes to the ledger. However, the docs for this one aren't great and I can't find any examples. Could you elaborate on this if you have experience with it ?

aarshleadiq (Mon, 22 Oct 2018 03:02:57 GMT):
I believe hyperlerdger fabric peers provide something called 'event services' which publish events every time it writes to the ledger. However, I can't find any examples. Could you elaborate on this if you have experience with it ?

aarshleadiq (Mon, 22 Oct 2018 03:02:57 GMT):
I believe hyperlerdger fabric peers provide something called 'event services' which publish events every time it writes to the ledger. However, I can't find any examples for this. Could you elaborate on this if you have experience with it ?

aarshleadiq (Mon, 22 Oct 2018 03:04:29 GMT):
What happens if my consumer is down when the peer publishes an event ? Can I start again from where I left off before the consumer crashed ?

dave.enyeart (Mon, 22 Oct 2018 03:31:46 GMT):
@aarshleadiq see the event tutorial in node.js sdk doc, it discusses building a data store from events and yes you can resume event consumption where you left off: https://fabric-sdk-node.github.io/tutorial-channel-events.html

aarshleadiq (Mon, 22 Oct 2018 03:34:48 GMT):
@dave.enyeart Does the Java/Golang SDK support this feature ? Or is it only the Nodejs sdk for now ?

dave.enyeart (Mon, 22 Oct 2018 03:35:33 GMT):
java and go sdk support it, i just know the node sdk doc tutorial is decent

aarshleadiq (Mon, 22 Oct 2018 03:37:06 GMT):
Sounds good. I'll have a look at the docs. Thank you !

aarshleadiq (Mon, 22 Oct 2018 03:41:42 GMT):
@dave.enyeart Apologies. One last question. I believe CouchDB too comes equipped with a 'changes feed' API that allows you to subscribe to changes happening in the CouchDB state. What would you say is the advantage of using the peer events instead of CouchDB changes feed ?

dave.enyeart (Mon, 22 Oct 2018 03:43:25 GMT):
1) many people like to lock down couchdb access to peer only, so you may not want to expose the couchdb changes feed 2) the events have all the transaction metadata, whereas couchdb would only have the key/values writes

aarshleadiq (Mon, 22 Oct 2018 03:47:23 GMT):
I see. Given the rise of stream processing & event sourcing, are there any plans of building a Kafka connector for fabric so it's easy to get all fabric data into Kafka ?

dave.enyeart (Mon, 22 Oct 2018 03:49:30 GMT):
no plans from the core fabric team, but that would be a welcome contribution

aarshleadiq (Mon, 22 Oct 2018 03:50:31 GMT):
Would you be okay if we contribute that in Scala or is Golang a must ? :)

dave.enyeart (Mon, 22 Oct 2018 03:51:47 GMT):
since it would be a client, any language would be acceptable

patrick4321 (Mon, 22 Oct 2018 04:46:01 GMT):
Has joined the channel.

patrick4321 (Mon, 22 Oct 2018 04:47:02 GMT):
Hi guys newbie question but what is the difference between a leader peer and an orderer

jonlee300 (Mon, 22 Oct 2018 05:14:19 GMT):
Hi, when i tried to build a 1 org to 2 orgs network. I regenerated the genesis block for 2 orgs and reconfig the configtx.yaml. I got below err when creating the channel `Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` Thanks in advance for helping out.

khetesh (Mon, 22 Oct 2018 05:59:38 GMT):
Hello guys please help me with this i am facing this issue TypeError: Cannot read property 'curve' of undefined at Object.KEYUTIL.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at Failed to order the transaction. Error code: undefined POST /newRequest 200 562.640 ms - 42 requestsnull (node:16469) UnhandledPromiseRejectionWarning: Error: Can't set headers after they are sent. at validateHeader (_http_outgoing.js:491:11) at ServerResponse.setHeader (_http_outgoing.js:498:3) at ServerResponse.header (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/express/lib/response.js:767:10) at ServerResponse.send (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/express/lib/response.js:170:12) at ServerResponse.json (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/express/lib/response.js:267:15) at saverequest.saveRequestId.then.catch.err (/home/kheteshr/Downloads/smob-node/supplychain_BK/routes.js:211:54) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:16469) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) entering into readIndex function.....! { user: 'khetesh1', index: 'index' } 'data in params for query method' Create a client and set the wallet location Set wallet path, and associate user admin with application error: [Client.js]: Failed to load user "admin" from local key value store. Error: TypeError: Cannot read property 'curve' ofundefined at Object.KEYUTIL.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at error: [Client.js]: Failed to load an instance of requested user "admin" from the state store on this Client instance. Error:TypeError: Cannot read property 'curve' of undefined at Object.KEYUTIL.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at Caught Error TypeError: Cannot read property 'curve' of undefined at Object.KEYUTIL.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/node_modules/jsrsasign/lib/jsrsasign.js:247:10379) at CryptoSuite_ECDSA_AES.getKey (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:204:27) at data in IndexArray undefined (node:16469) UnhandledPromiseRejectionWarning: RangeError: Invalid status code: undefined at ServerResponse.writeHead (_http_server.js:194:11) at ServerResponse.writeHead (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/on-headers/index.js:55:19) at ServerResponse._implicitHeader (_http_server.js:185:8) at write_ (_http_outgoing.js:632:9) at ServerResponse.end (_http_outgoing.js:751:5) at ServerResponse.send (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/express/lib/response.js:221:10) at ServerResponse.json (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/express/lib/response.js:267:15) at readIndex.readIndex.then.catch.err (/home/kheteshr/Downloads/smob-node/supplychain_BK/routes.js:400:54) at (node:16469) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)

khetesh (Mon, 22 Oct 2018 06:00:03 GMT):
I have posted this issue every where still did not get any solution on this

khetesh (Mon, 22 Oct 2018 06:09:06 GMT):
Am not able to load admin user credential in project

aarshleadiq (Mon, 22 Oct 2018 06:37:05 GMT):
With regards to the channel events, I am following this docmentation : https://fabric-sdk-node.github.io/tutorial-channel-events.html

aarshleadiq (Mon, 22 Oct 2018 06:37:48 GMT):
But I am using the Java SDK v.1.2 and do not see similar class or functions in the Java SDK.

aarshleadiq (Mon, 22 Oct 2018 06:37:56 GMT):
I only see the old 'EventHub' classes.

aarshleadiq (Mon, 22 Oct 2018 06:38:30 GMT):
Not the new channel based events API.

aarshleadiq (Mon, 22 Oct 2018 06:39:33 GMT):
Does the Java SDK support the same events model as the NodeJS one ?

khetesh (Mon, 22 Oct 2018 06:45:57 GMT):
Does any body know what is this error TypeError: Cannot read property 'curve' of undefined

khetesh (Mon, 22 Oct 2018 06:53:03 GMT):
trying to solve this error but not able to find any solution

VarunVerma (Mon, 22 Oct 2018 07:05:55 GMT):
Hi, While writing chaincode for my Business logic in go language I'm getting following errors: 1. cannot use util.CreateUtcTimestamp() (type *"github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp) as type *"fabric-release-1.2/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp in argument to stub.setTxTimestamp 2. cannot use util.CreateUtcTimestamp() (type *"github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp) as type *"fabric-release-1.2/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp in argument to stub.setTxTimestamp # fabric-release-1.2/core/chaincode/shim C:\Go\src\fabric-release-1.2\core\chaincode\shim\chaincode.go:118:56: cannot use clientConn (type *"fabric-release-1.2/vendor/google.golang.org/grpc".ClientConn) as type *"github.com/hyperledger/fabric/vendor/google.golang.org/grpc".ClientConn in argument to "github.com/hyperledger/fabric/protos/peer".NewChaincodeSupportClient C:\Go\src\fabric-release-1.2\core\chaincode\shim\chaincode.go:258:3: cannot use *"github.com/hyperledger/fabric/vendor/google.golang.org/grpc".ClientConn as type *"fabric-release-1.2/vendor/google.golang.org/grpc".ClientConn in return argument C:\Go\src\fabric-release-1.2\core\chaincode\shim\chaincode.go:261:2: cannot use *"github.com/hyperledger/fabric/vendor/google.golang.org/grpc".ClientConn as type *"fabric-release-1.2/vendor/google.golang.org/grpc".ClientConn in return argument C:\Go\src\fabric-release-1.2\core\chaincode\shim\chaincode.go:810:26: cannot use chdr.GetTimestamp() (type *"github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp) as type *"fabric-release-1.2/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp in return argument C:\Go\src\fabric-release-1.2\core\chaincode\shim\mockstub.go:105:45: cannot use util.CreateUtcTimestamp() (type *"github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp) as type *"fabric-release-1.2/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp in argument to stub.setTxTimestamp Looking for some help! Thanks

Ammu (Mon, 22 Oct 2018 07:08:56 GMT):
why decentralization? in blockchain all advantages in centralized itself we are getting right?

GiovanniNapoli (Mon, 22 Oct 2018 07:11:35 GMT):
Hi all, can anybody tell me how a peer updates its local copy of the ledger? I'm interested to look at this operation in source file and I can't find it

MohitYadav2317 (Mon, 22 Oct 2018 07:50:06 GMT):
we have two assets order and package and order contains reference to packages, so while retrieving history of particular order, how i can resolve the reference, what should be the ideal approach for resolving and retrieving order history along with package data at that particular time in history

PrashantS (Mon, 22 Oct 2018 08:40:34 GMT):
LS, reference is made to Couchdb installation - https://hyperledger-fabric.readthedocs.io/en/release-1.3/couchdb_as_state_database.html, following the examples, I have 2 Org multi peer setup. This is the URL to log into Couchdb - http://localhost:5984/_utils/#/database/ppchannel_demo-app/_all_docs. Situation - As an admin, I'm able to log into the DB and view/edit/delete documents, essentially changing the world state. Question - If I can change the world state for a Peer like this, then I'm sure the network can be compromised. How does this work in Production or is this true for Production grade HLF deployments as well. Thank You!

FlorentinoSainz (Mon, 22 Oct 2018 09:14:59 GMT):
Hello, Is there a way to see/control which offsets are being asked on kafka? (I mean, inside the orderer docker or something like that)

FlorentinoSainz (Mon, 22 Oct 2018 09:15:31 GMT):
we are getting the offset out of range error on testchannelid (which we don't care about, but it takes down our orderer), we already disabled cleanup of topics

FlorentinoSainz (Mon, 22 Oct 2018 09:16:08 GMT):
(a way to reset that offset should also work fine)

narendranathreddy (Mon, 22 Oct 2018 10:25:08 GMT):
Guys from which version i can add new organisation to existing channel using nodejs API instead of cli, As of now iam able to do through cli and few scripts ?

narendranathreddy (Mon, 22 Oct 2018 10:25:08 GMT):
Guys from which version i can add new organisation to existing channel using nodejs API instead of cli ?, As of now iam able to do through cli and few scripts

dave.enyeart (Mon, 22 Oct 2018 10:33:09 GMT):
@PrashantS The endorsement policy protects against tampering with state database. Peers from different orgs as specified in the endorsement policy must return the same chaincode execution results for transactions to be validated. If ledger state data had been altered or corrupted (in CouchDB or LevelDB file system) on a peer, then the chaincode execution results would be inconsistent across endorsing peers, the 'bad’ peer/org will be found out, and the application client can throw out the results from the bad peer/org before submitting the transaction for ordering/commit. If client application tries to submit a transaction with inconsistent endorsement regardless, this will be detected on all the peers at validation time and the transaction will be invalidated.

dave.enyeart (Mon, 22 Oct 2018 10:33:27 GMT):
But still, it is recommended to secure CouchDB: 1) have peer and couchdb on same host and do not expose the couchdb port beyond their local docker network 2) set username/password in couchdb and peer config, this will also engage database level security such that no other user can read/write the data.

narendranathreddy (Mon, 22 Oct 2018 10:47:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ssww3XF4qJsR24Tui) @narayanprusty yes you can

narendranathreddy (Mon, 22 Oct 2018 10:47:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ssww3XF4qJsR24Tui) @narayanprusty yes you can by using NOde SDK / scripts

narendranathreddy (Mon, 22 Oct 2018 10:47:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ssww3XF4qJsR24Tui) @narayanprusty yes you can by using Node SDK / scripts

MuhammedHafil (Mon, 22 Oct 2018 12:10:14 GMT):
is it ok to serve peers of one org to serve different uses? i mean peer1.org1.example.com will have entriely different applications that of peer2.org1.example.com ?

MuhammedHafil (Mon, 22 Oct 2018 12:10:14 GMT):
is it ok to serve peers of one org to serve different uses? i mean peer1.org1.example.com will have entriely different application that of peer2.org1.example.com ?

khetesh (Mon, 22 Oct 2018 12:58:11 GMT):
hello guys i am proposing transaction in network but it throwing me Error: PEM encoded certificate is required. at new Endpoint (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/Remote.js:223:11) at new Remote (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/Remote.js:106:20) at new Peer (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/Peer.js:44:3) at Client.newPeer (/home/kheteshr/Downloads/smob-node/supplychain_BK/node_modules/fabric-client/lib/Client.js:308:10) at Promise.resolve.then.then (/home/kheteshr/Downloads/smob-node/supplychain_BK/invoke.js:61:30) at

MohammadObaid (Mon, 22 Oct 2018 12:58:51 GMT):
I am trying to manually create fabric network on multihost but when I try to create channel with this command `peer channel create -c obaid -o 10.0.0.136:7050 -f channel.tx` I am getting this error `Error: error unmarshaling Envelope: proto: can't skip unknown wire type 6` . On orderer logs I am getting this

MohammadObaid (Mon, 22 Oct 2018 12:59:12 GMT):

fabriclogs.png

MohammadObaid (Mon, 22 Oct 2018 13:00:12 GMT):
Can anyone explain what that error means ? When I remove `f ` parameter then I get `Attempted to include a member which is not in the consortium`

MohammadObaid (Mon, 22 Oct 2018 13:02:53 GMT):
I generated channel.tx file using cryptogen

rmaurer (Mon, 22 Oct 2018 13:13:39 GMT):
Has joined the channel.

yousaf (Mon, 22 Oct 2018 13:35:09 GMT):
Hi everyone. Which is the best way to make fabric network deployable on multiple machines?

jonlee300 (Mon, 22 Oct 2018 15:11:39 GMT):
Hi there, I deployed a network in 2 machines. machine 1: orderrer, 2 peers of org1 docker_compose_base.yaml: peer0.org1: ports: - 7051:7051 peer1.org1: ports: - 8051:7051 machine 2: 2 peers of org2 docker_compose_base.yaml: peer0.org2: ports: - 9051:7051 extra_host: - orderer.example.com:10.148.0.7 peer1.org2: ports: - 10051:7051 extra_host: - orderer.example.com:10.148.0.7 The network runs properly with every transactions gone through and block populates with all the nodes. However, I get this warning message from all 4 peers. `2018-10-22 11:53:41.891 UTC [gossip/discovery] func1 -> WARN 132 Could not connect to {peer0.org2.example.com:7051 [] [] peer0.org2.example.com:7051 } : context deadline exceeded 2018-10-22 11:54:09.893 UTC [gossip/gossip] func1 -> WARN 133 Deep probe of peer0.org2.example.com:7051 failed: context deadline exceeded github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:247 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:159` Effectively, the message warns that all peers cannot connect to others using gossip protocol. I wonder why blocks can go through but they cannot identify one another in the gossip protocol. Is there any way that I can fix this please? Thank you in advance, experts.

jonlee300 (Mon, 22 Oct 2018 15:11:39 GMT):
Hi there, I deployed a network in 2 machines. machine 1: orderrer, 2 peers of org1 docker_compose_base.yaml: peer0.org1: ports: - 7051:7051 peer1.org1: ports: - 8051:7051 machine 2: 2 peers of org2 docker_compose_base.yaml: peer0.org2: ports: - 9051:7051 extra_host: - orderer.example.com:10.148.0.7 peer1.org2: ports: - 10051:7051 extra_host: - orderer.example.com:10.148.0.7 The network runs properly with every transactions gone through and block populates with all the nodes. However, I get this warning message from all 4 peers. *2018-10-22 11:53:41.891 UTC [gossip/discovery] func1 -> WARN 132 Could not connect to {peer0.org2.example.com:7051 [] [] peer0.org2.example.com:7051 } : context deadline exceeded 2018-10-22 11:54:09.893 UTC [gossip/gossip] func1 -> WARN 133 Deep probe of peer0.org2.example.com:7051 failed: context deadline exceeded *github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:247 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:159 Effectively, the message warns that all peers cannot connect to others using gossip protocol. I wonder why blocks can go through but they cannot identify one another in the gossip protocol. Is there any way that I can fix this please? Thank you in advance, experts.

DeepakMP (Mon, 22 Oct 2018 16:03:50 GMT):
Hi I'm trying to call my chaincodes from an external applications. I'm having trouble getting started? Can anyone point me to a simple api server example? I'm not finding anything in the standard samples and generally searches aren't being very helpful either. I just need a 'hello-world', I'll expand on that next. A tutorial would also be fine.

jonlee300 (Mon, 22 Oct 2018 16:53:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p2SaDaHLCACfg8zpn) @yousaf https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6 https://discourse.skcript.com/t/setting-up-a-multi-node-hyperledger-fabric-network-with-docker-swarm-skcript/1402

rmaurer (Mon, 22 Oct 2018 16:55:03 GMT):
@DeepakMP You would basically need to use the Fabric SDK in your API in your language of choice. It will communicate with Fabric over gRPC. https://fabric-sdk-node.github.io/ https://godoc.org/github.com/hyperledger/fabric-sdk-go

rmaurer (Mon, 22 Oct 2018 16:58:31 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.3/fabcar actually uses the `Node.js` SDK.

rmaurer (Mon, 22 Oct 2018 16:58:31 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.2/fabcar actually uses the `Node.js` SDK.

PrashantS (Mon, 22 Oct 2018 17:08:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AdQCgnTzNbinW3APA) @dave.enyeart Thank you @dave.enyeart this is helpful, I have made a note of the recommendations

kesavants (Mon, 22 Oct 2018 17:22:47 GMT):
Is peer eventing service designed to deliver blocks periodically to the connected listener? We have java service layer having a chaincode and channel event block listener. It seems the blocks are redelivered periodically event though the service layer has consumed those events?

DeepakMP (Mon, 22 Oct 2018 19:12:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AkMQRMzK4qpPv4iEw) @rmaurer I've gone through it, but didn't realize which section I need to work on. Can you mark out which sections or chapter of the documentation I should use? I'm trying to build a rest api to invoke chaincode and query chaincode (read write to couchdb).

rmaurer (Mon, 22 Oct 2018 19:15:40 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.3/fabcar/invoke.js#L71 https://github.com/hyperledger/fabric-samples/blob/release-1.3/fabcar/query.js#L62

rmaurer (Mon, 22 Oct 2018 19:16:28 GMT):
That's the actual invocation of rpc. The rest of the code is essentially loading keys, creating transaction proposals and parsing the results.

rmaurer (Mon, 22 Oct 2018 19:19:02 GMT):
`fabcar` uses the `basic-network` sample as a base so take a thorough look at those two.

rmaurer (Mon, 22 Oct 2018 19:19:57 GMT):
It's a stripped down 1 org, 1 peer network.

jonlee300 (Mon, 22 Oct 2018 21:02:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GStPPCjdPNn3rqc3Z) Additional context, I tried many different ways to nail down the issue but still no go. What I can identified is that when I deployed everything in one yaml file in one machine, gossip protocol works with occasionally dead members but no "context deadline exceeded". Even I deployed 2 org in 2 different docker yaml file, the 2 orgs still cannot communicate. Is there any thing that I can set in config to resolve? Or is there any way to disable the gossip protocol? I look forward to your expert advice. Thanks.

jonlee300 (Mon, 22 Oct 2018 21:02:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GStPPCjdPNn3rqc3Z) Additional context, I tried many different ways to nail down the issue but still no go. What I can identify is that when I deployed everything in one yaml file in one machine, gossip protocol works with occasionally dead members but no "context deadline exceeded". Even I deployed 2 orgs by 2 different docker yaml file, the 2 orgs still cannot communicate. Is there any thing that I can set in config to resolve? Or is there any way to disable the gossip protocol? I look forward to your expert advice. Thanks.

DeepakMP (Tue, 23 Oct 2018 00:01:45 GMT):
anyone got this error when running into the fabric samples balance transfer sample app?

DeepakMP (Tue, 23 Oct 2018 00:01:46 GMT):
Deepaks-MacBook-Air:balance-transfer deepak$ PORT=4000 node app [2018-10-23 05:26:17.057] [INFO] SampleWebApp - ****************** SERVER STARTED ************************ [2018-10-23 05:26:17.062] [INFO] SampleWebApp - *************** http://localhost:4000 ****************** (node:84103) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead UnauthorizedError: No authorization token was found at middleware (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express-jwt/lib/index.js:76:21) at /Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express-unless/index.js:47:5 at Layer.handle [as handle_request] (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/index.js:317:13) at /Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/index.js:335:12) at next (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/index.js:275:10) at urlencodedParser (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/body-parser/lib/types/urlencoded.js:91:7) at Layer.handle [as handle_request] (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/express/lib/router/index.js:317:13)

DeepakMP (Tue, 23 Oct 2018 00:24:47 GMT):
Ok, that was a token issue, solved via lower part of the github readme page (although still not sure how the gui or web app maybe resolved- need to modify i guess), nevertheless, I'm unable to invoke transactions.

DeepakMP (Tue, 23 Oct 2018 00:25:14 GMT):
curl -s -X POST \ http://localhost:4000/channels/mychannel/chaincodes/mycc \ -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDAyODkxMjEsInVzZXJuYW1lIjoiSmltIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE1NDAyNTMxMjF9.8Cads3uNrAWoA8nx5ZpbwJ401AaJD1EL0Yx5dQvRWmk" \ -H "content-type: application/json" \ -d '{ "peers": ["peer0.org1.example.com","peer1.org1.example.com"], "fcn":"move", "args":["a","b","10"] }'

DeepakMP (Tue, 23 Oct 2018 00:28:07 GMT):
After the error if I do the query anyway, it shows the value is 100 after the move. Same after executing the same after args:["a","b","20"]. So I guess the invoke didn't go through.

DeepakMP (Tue, 23 Oct 2018 00:28:43 GMT):
THis is the error:

DeepakMP (Tue, 23 Oct 2018 00:28:44 GMT):
[2018-10-23 05:55:54.395] [DEBUG] invoke-chaincode - invokeEventPromise - setting up event [2018-10-23 05:55:54.410] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-10-23 05:55:54.421] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2018-10-23 05:55:56.609] [INFO] invoke-chaincode - The chaincode invoke chaincode transaction has been committed on peer localhost:7051 [2018-10-23 05:55:56.609] [INFO] invoke-chaincode - Transaction b3b0586d13b0991531f661f28e3f879d768f3971f07045f35480742e0554c5f4 has status of ENDORSEMENT_POLICY_FAILURE in blocl 6 [2018-10-23 05:55:56.609] [ERROR] invoke-chaincode - The invoke chaincode transaction was invalid, code:ENDORSEMENT_POLICY_FAILURE [2018-10-23 05:55:56.612] [ERROR] invoke-chaincode - Error: The invoke chaincode transaction was invalid, code:ENDORSEMENT_POLICY_FAILURE at EventRegistration.eh.registerTxEvent [as onEvent] (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/app/invoke-transaction.js:99:15) at ChannelEventHub._callTransactionListener (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/fabric-client/lib/ChannelEventHub.js:1297:13) at ChannelEventHub._checkTransactionId (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/fabric-client/lib/ChannelEventHub.js:1282:9) at ChannelEventHub._processTxEvents (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/fabric-client/lib/ChannelEventHub.js:1261:11) at ClientDuplexStream._stream.on (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/node_modules/fabric-client/lib/ChannelEventHub.js:405:11) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) [2018-10-23 05:55:56.612] [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Error: The invoke chaincode transaction was invalid, code:ENDORSEMENT_POLICY_FAILURE (node:84641) UnhandledPromiseRejectionWarning: Error: Failed to invoke chaincode. cause:Error: The invoke chaincode transaction was invalid, code:ENDORSEMENT_POLICY_FAILURE at Object.invokeChaincode (/Users/deepak/Desktop/Project/blockchain/attempt5/fabric-samples/balance-transfer/app/invoke-transaction.js:171:9) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:84641) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:84641) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

aarshleadiq (Tue, 23 Oct 2018 03:21:14 GMT):
When I parse an incoming block event as UTF string, I get some weird characters :family_mwgg: -----END CERTIFICATE----- kC��I`����DD(_5��9��SBI�

aarshleadiq (Tue, 23 Oct 2018 03:21:14 GMT):
When I parse an incoming block event as UTF string, I get some weird characters ``` -----END CERTIFICATE----- kC��I`����DD(_5��9��SBI�```

aarshleadiq (Tue, 23 Oct 2018 03:21:14 GMT):
When I parse an incoming block event as UTF-8 string, I get some weird characters ``` -----END CERTIFICATE----- kC��I`����DD(_5��9��SBI�```

aarshleadiq (Tue, 23 Oct 2018 03:22:12 GMT):
Looks like the incoming proto is not a valid UTF-8. What's the recommended way to parse a Block event into a UTF-8 String ?

aarshleadiq (Tue, 23 Oct 2018 03:22:12 GMT):
Looks like the incoming proto is not a valid UTF-8. What's the recommended way to parse a Block event into a String ?

yousaf (Tue, 23 Oct 2018 03:35:08 GMT):
@jonlee300 Thanks man. But the link which you have referred me is making the use of both composer and fabric. But i just wanna work with fabric for deployment on multiple physical machines.

jonlee300 (Tue, 23 Oct 2018 05:30:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cG92MJjCMPn5mezw) @yousaf just ignore the rest of the sessions related to connection.json. it builds the fabric underneath. composer is just a connection to fabric.

jonlee300 (Tue, 23 Oct 2018 05:30:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cG92MJjCMPn5mezw) @yousaf just ignore the rest of the sessions related to connection.json. it builds the fabric underneath. composer is just a connection to fabric. Ignore "PEER ADMIN CARD CREATION" section. ./teardownFabric.sh && ./startFabric.sh ./startFabric-Peer2.sh but you have either edit /etc/host to map the orderer.example.com or using real domain and edit DNS or add extra_host: - orderer.example.com:[machine 1 ip] in docker file in machine 2

jonlee300 (Tue, 23 Oct 2018 05:30:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cG92MJjCMPn5mezw) @yousaf just ignore the rest of the sessions related to connection.json. it builds the fabric underneath. composer is just a connection to fabric. Ignore "PEER ADMIN CARD CREATION" section. ./teardownFabric.sh && ./startFabric.sh ./startFabric-Peer2.sh but you have either edit /etc/host to map the orderer.example.com or using real domain and edit DNS or add extra_host: - orderer.example.com:[machine 1 ip] in docker file in machine 2 I still face the difficulty of having communications using gossip protocol as I am asking the group for expert advice.

riyasoni42 (Tue, 23 Oct 2018 06:23:15 GMT):
Hello I am new to fabric, I need to write my own chaincode , so what is the steps for that ?

aarshleadiq (Tue, 23 Oct 2018 07:18:25 GMT):
Hi riya, please refer to https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode.html

aarshleadiq (Tue, 23 Oct 2018 07:18:25 GMT):
@riyasoni42 please refer to https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode.html

aarshleadiq (Tue, 23 Oct 2018 07:18:47 GMT):
The fabric documentation is pretty good and detailed. You should find everything you want there.

MohammadObaid (Tue, 23 Oct 2018 08:03:49 GMT):
Hey @mastersingh24 and others I am trying to setup multihost network for which I created orderer container and one peer container and both are connected over swarm network . I created genesis block using configtxgen tool but now when I run `peer channel create -c obaid -o xx.x.x.x:7050` I get an error `Unknown consortium SampleConsortium` . Can anyone explain me what causes this error as I dont have any `SampleConsortium` in my configtx.yaml file

MohammadObaid (Tue, 23 Oct 2018 08:04:51 GMT):
My configtx.yaml file looks liks this https://pastebin.com/0kCNRsU8

riyasoni42 (Tue, 23 Oct 2018 08:08:33 GMT):
@aarshleadiq Actually I have tried out fabcar example and query from the chaincode, that stuff I got properly. But now if I want create my own chaincode in the same fabcar project in which network configurations are already done. So how to do it ?

riyasoni42 (Tue, 23 Oct 2018 08:08:33 GMT):
@aarshleadiq Actually I have tried out fabcar example and query from the chaincode, that stuff I got properly. But now if I want to create my own chaincode in the same fabcar project in which network configurations are already done. So how to do it ?

moriohara (Tue, 23 Oct 2018 09:04:13 GMT):
Has joined the channel.

mhs22 (Tue, 23 Oct 2018 09:36:33 GMT):
Has joined the channel.

mhs22 (Tue, 23 Oct 2018 09:36:43 GMT):
Hello everyone. I want to know what is writer, reader and admin is. There is no clear explanation in the document.

akshay.sood (Tue, 23 Oct 2018 09:39:27 GMT):
Hi Experts

akshay.sood (Tue, 23 Oct 2018 09:39:44 GMT):
May I know how `MAJORITY Admins` works in ```Admins: Type: ImplicitMeta Rule: "MAJORITY Admins"```

akshay.sood (Tue, 23 Oct 2018 09:39:44 GMT):
Anyone knows how `MAJORITY Admins` works in ```Admins: Type: ImplicitMeta Rule: "MAJORITY Admins"```

mhs22 (Tue, 23 Oct 2018 09:41:01 GMT):
@akshay.sood Same curiosity

akshay.sood (Tue, 23 Oct 2018 09:41:12 GMT):
@mhs22 sorry?

mhs22 (Tue, 23 Oct 2018 09:41:58 GMT):
I mean There is no clear description about Acl stuff in the documentation

akshay.sood (Tue, 23 Oct 2018 09:42:03 GMT):
As per my understanding by ``` Writers: Type: ImplicitMeta Rule: "ANY Writers"``` It will satisfy if any of writers signature is matched (even if it is one signature)

akshay.sood (Tue, 23 Oct 2018 09:42:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8yf7PbziZ486svSRj) Correct. Documentation is not good for ACL

mhs22 (Tue, 23 Oct 2018 09:42:39 GMT):
I don't understand what is writer and what is reader

mhs22 (Tue, 23 Oct 2018 09:43:08 GMT):
@akshay.sood If you know, please explain it to me

akshay.sood (Tue, 23 Oct 2018 09:43:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RZySkmekiESvPdQBD) As per my understanding, reader is who can query chaincode, blocks and writer is who can perform write operations into the blockchain *(Anyone here please correct me if I am wrong)*

mhs22 (Tue, 23 Oct 2018 09:44:46 GMT):
and As far as know if you put 'majority admins' then, more than half of organization' admin must sign

mhs22 (Tue, 23 Oct 2018 09:45:14 GMT):
if there are 3orgs in the network

mhs22 (Tue, 23 Oct 2018 09:45:40 GMT):
if you want to update channel configuration, at least 2 org admin have to sign

akshay.sood (Tue, 23 Oct 2018 09:45:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A8MLjRYXK3b9eqeGt) How they multiple admins can sign? I am confused here.

akshay.sood (Tue, 23 Oct 2018 09:45:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A8MLjRYXK3b9eqeGt) How multiple admins can sign? I am confused here.

akshay.sood (Tue, 23 Oct 2018 09:47:28 GMT):
I mean when admin performs a transaction, the certificate is involved of that admin. How certificates of multiple admins can be involved here

mhs22 (Tue, 23 Oct 2018 09:49:10 GMT):
I think it is not about transaction

mhs22 (Tue, 23 Oct 2018 09:49:14 GMT):

Clipboard - October 23, 2018 6:49 PM

akshay.sood (Tue, 23 Oct 2018 09:51:49 GMT):
can you provide the link to this document here?

mhs22 (Tue, 23 Oct 2018 09:52:07 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html

akshay.sood (Tue, 23 Oct 2018 09:52:35 GMT):
Thanks

DeepakMP (Tue, 23 Oct 2018 10:55:07 GMT):
Hi what are the different data types we can declare to store in our database? couchdb for private data?

ShashankMotepalli (Tue, 23 Oct 2018 10:58:39 GMT):
Just a quick doubt, I am following FabCar tutorial for Node integration. I have invoked transaction via command line but I dont have a CA. How do I go about NodeJS ?

ShashankMotepalli (Tue, 23 Oct 2018 11:01:47 GMT):
is CA for org a compulsion for interaction with Nodejs

ShashankMotepalli (Tue, 23 Oct 2018 11:02:25 GMT):
If not, can someone help me out?

dave.enyeart (Tue, 23 Oct 2018 11:04:09 GMT):
@DeepakMP If your key's value is JSON it will be parsed by CouchDB and will be queryable. Otherwise it will be stored as a blob attachment in CouchDB.

dave.enyeart (Tue, 23 Oct 2018 11:05:05 GMT):
If you need more details of specific JSON support you will need to look at CouchDB doc and it's _find query API

MohammadObaid (Tue, 23 Oct 2018 11:06:48 GMT):
Hey @dave.enyeart can you assist me with my problem https://stackoverflow.com/questions/52946225/errors-in-hyperledger-fabric-multihost-setup ? Thanks

anjalinaik (Tue, 23 Oct 2018 11:42:25 GMT):
Hello experts, can you please help me resolve below error: `Error: failed to create deliver client: orderer client failed to connect to test_orderer0:7050: failed to create new connection: context deadline exceeded`

GiovanniNapoli (Tue, 23 Oct 2018 11:52:05 GMT):
Hello, i have a question about updating the config of a channel. In the doc, there's the concept of `ConfigUpdateEnvelope` which has a set of `ConfigSignature` o who approves the update. I guess, than, that a set of endorsing peer must approve this transaction to the client who make the proposal. Am I right? If so, where this kind of policy is defined and how can i change it? If it doesn't work like so, how this signatures are provided to the `ConfigUpdateEnvelope` ? Thx

GiovanniNapoli (Tue, 23 Oct 2018 11:52:05 GMT):
Hello, i have a question about updating the config of a channel. In the doc, there's the concept of `ConfigUpdateEnvelope` which has a set of `ConfigSignature` of who approves the update. I guess, than, that a set of endorsing peer must approve this transaction to the client who makes the proposal. Am I right? If so, where this kind of policy is defined and how can i change it? If it doesn't work like so, how this signatures are provided to the `ConfigUpdateEnvelope` ? Thx

GiovanniNapoli (Tue, 23 Oct 2018 11:52:05 GMT):
Hello, i have a question about updating the config of a channel. In the doc, there's the concept of `ConfigUpdateEnvelope` which has a set of `ConfigSignature` of who approves the update. I guess, than, that a set of endorsing peer must approve this transaction to the client who makes the proposal. Am I right? If so, where this kind of policy is defined and how can i change it? If it doesn't work like that, how this signatures are provided to the `ConfigUpdateEnvelope` ? Thx

mastersingh24 (Tue, 23 Oct 2018 11:59:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6TCemKyGBpnWCHCcu) @MohammadObaid I answered your question ... basically you need to use `configtxgen` with your `configtx.yaml` to create the channel transaction and then use the `-f` flag with `peer channel create` to pass the generated create channel file in

AndreiLovin (Tue, 23 Oct 2018 12:01:35 GMT):
Here's an interesting situation... I've deployed a Fabric network over two machines and I'm able to query and invoke transaction through cli. I'm also using a NodeJS app with which I can query the network but can't invoke. This error appears whenever I invoke from the NodeJS app: "Failed to connect before the deadline". The logs from the node app: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://orderer.beluga.com:7050 has an error Error: Failed to connect before the deadline Any ideea what's wrong?

AndreiLovin (Tue, 23 Oct 2018 12:01:35 GMT):
Here's an interesting situation... I've deployed a Fabric network over two machines and I'm able to query and invoke transaction through cli. I'm also using a NodeJS app with which I can query the network but can't invoke. This error appears whenever I invoke from the NodeJS app: "Failed to connect before the deadline". The logs from the node app: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://orderer.test.com:7050 has an error Error: Failed to connect before the deadline Any ideea what's wrong?

AndreiLovin (Tue, 23 Oct 2018 12:01:35 GMT):
Here's an interesting situation... I've deployed a Fabric network over two machines and I'm able to query and invoke transaction through cli. I'm also using a NodeJS app with which I can query the network but can't invoke. This error appears whenever I invoke from the NodeJS app: "Failed to connect before the deadline". The logs from the node app: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://orderer.test.com:7050 has an error Error: Failed to connect before the deadline Any ideea what's wrong? PS the containers are all running

tassio (Tue, 23 Oct 2018 12:07:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3AkBMXc4HhfDtETJp) @AndreiLovin Hey @AndreiLovin , have you already made sure that your client-application has valid credentials to connect to the peers targeted by your invoke?

AndreiLovin (Tue, 23 Oct 2018 12:08:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MSiSTHmEkuXrWTKQu) @tassio I'm enrolling a new user with the admin. And with that new user I'm able to query but not invoke. This is what I'm using: https://github.com/olegabu/fabric-starter-rest

tassio (Tue, 23 Oct 2018 12:08:46 GMT):
I have already had this error before. Was either something related to credentials (the ones retrieved similarly by the execution of those registerUser/enrollAdmin scripts)

tassio (Tue, 23 Oct 2018 12:08:46 GMT):
I have already had this error before. Was either something related to credentials (the ones retrieved similarly by the execution of those registerUser/enrollAdmin scripts) or something related to TLS...

soaresjoao (Tue, 23 Oct 2018 12:09:01 GMT):
Has joined the channel.

tassio (Tue, 23 Oct 2018 12:10:37 GMT):
By the way guys... I also have a problem: I am having some trouble to run a node-based chaincode instantiation behind a corporate proxy... I found this StackOverflow thread, which is quite similar to my current doubt: https://stackoverflow.com/questions/52354240/node-chaincode-instantiate-behind-proxy But for some reason it's not being so simple for me to understand what should I really do to get past it...

MohammadObaid (Tue, 23 Oct 2018 12:14:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kEjbqdA6Yhtev4JsC) @mastersingh24 @mastersingh24 I tried that but then I get an error `Error: error unmarshaling Envelope: proto: can't skip unknown wire type 6` and on orderer logs I get `2018-10-23 08:49:43.314 UTC [grpc] Printf -> DEBU 105 transport: http2Server.HandleStreams failed to read frame: read tcp 10.0.0.10:7050->10.0.0.8:48566: read: connection reset by peer`

mastersingh24 (Tue, 23 Oct 2018 12:17:35 GMT):
Are you sure you are properly creating the channel transaction using `configtxgen`? There should be no difference running on multiple machine versus running on a single machine. What command are you using to generate the create channel tx?

MohammadObaid (Tue, 23 Oct 2018 12:18:17 GMT):
Here is configtxgen command which I run `./configtxgen -outputCreateChannelTx channel.tx -profile FourOrgsChannel -channelID obaid -configPath `

MohammadObaid (Tue, 23 Oct 2018 12:18:17 GMT):
@mastersingh24 Here is configtxgen command which I run `./configtxgen -outputCreateChannelTx channel.tx -profile FourOrgsChannel -channelID obaid -configPath `

MuhammedHafil (Tue, 23 Oct 2018 12:45:30 GMT):
how can i set endorsement policy while instantiating with fabric node sdk?

tassio (Tue, 23 Oct 2018 12:53:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=trM3hvMKcvHdaBuAz) @MuhammedHafil https://fabric-sdk-node.github.io/Channel.html#sendInstantiateProposal check the https://fabric-sdk-node.github.io/global.html#ChaincodeInstantiateUpgradeRequest object and it's endorsement policy property

OmarShekriladze (Tue, 23 Oct 2018 13:08:28 GMT):
Has joined the channel.

OmarShekriladze (Tue, 23 Oct 2018 13:08:31 GMT):
Hello I have simple question about certificates. How certificates are used in Hyperledger Fabric network? I have certificates in hfc_key_store, fabric_ca_server also saves certificates. so how they are used, I am interested in flow. I mean I sign transaction and send, so why I need certificate under hfc_key_store?

feitnomore (Tue, 23 Oct 2018 13:15:12 GMT):
Has joined the channel.

feitnomore (Tue, 23 Oct 2018 13:15:58 GMT):
When I use an endorsement policy in my chaincode instantiate, like "AND('Org1.peer', 'Org2.peer', 'Org3.peer', 'Org4.peer')", I've get error on the peers logs

feitnomore (Tue, 23 Oct 2018 13:16:22 GMT):
``` 2018-10-23 12:19:54.365 UTC [vscc] Validate -> WARN f95 Endorsement policy failure for transaction txid=a259f68bee69423a8252ca09e11b797003fa95dc6425e680f884d7ac597a6265, err: signature set did not satisfy policy 2018-10-23 12:19:54.366 UTC [vscc] Validate -> DEBU f96 block 3, namespace: cc, tx 0 validation results is: VSCC error: endorsement policy failure, err: signature set did not satisfy policy 2018-10-23 12:19:54.366 UTC [committer/txvalidator] ValidateWithPlugin -> DEBU f97 Transaction a259f68bee69423a8252ca09e11b797003fa95dc6425e680f884d7ac597a6265 appears to be invalid: VSCC error: endorsement policy failure, err: signature set did not satisfy policy 2018-10-23 12:19:54.366 UTC [committer/txvalidator] validateTx -> ERRO f98 VSCCValidateTx for transaction txId = a259f68bee69423a8252ca09e11b797003fa95dc6425e680f884d7ac597a6265 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy ```

feitnomore (Tue, 23 Oct 2018 13:16:46 GMT):
any tips on how to troubleshoot it?

feitnomore (Tue, 23 Oct 2018 13:23:30 GMT):
looks like the only peer that doesn't get the error, is the peer that issued the invoke

MohammadObaid (Tue, 23 Oct 2018 15:15:21 GMT):
@feitnomore are you using fabric cli?

MohammadObaid (Tue, 23 Oct 2018 15:21:42 GMT):
I ran into same issue with fabric cli when working with fabric v1.0 . At that time someone told me that fabric cli or peer containers dont have an ability to collect endorsement from multiple peers/organization and submit it to ordering service . For that you need to use client like node sdk or something which can collect endorsement from multiple peers within short time and forward it. All those conditions where only one endorsement requires should work via cli

akshay.sood (Tue, 23 Oct 2018 15:22:58 GMT):
Hi Experts

akshay.sood (Tue, 23 Oct 2018 15:23:20 GMT):
Anyone knows the roles of ```Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers"``` involved in ACL?

akshay.sood (Tue, 23 Oct 2018 15:23:20 GMT):
Anyone knows the roles of ```Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers"``` involved in Channel ACL?

akshay.sood (Tue, 23 Oct 2018 15:24:38 GMT):
I mean what reader does and writer does in case of Channel

akshay.sood (Tue, 23 Oct 2018 15:24:38 GMT):
I mean what reader does and writer does in case of `Channel`

akshay.sood (Tue, 23 Oct 2018 15:24:38 GMT):
I mean what `reader` does and `writer` does in case of `Channel`. For example: for `admin`, it is specified in comment ``` # By default, who may modify elements at this config level (as per my understanding, if we want to update channel config, we need majority of admin to sign that config)```

akshay.sood (Tue, 23 Oct 2018 15:24:38 GMT):
I mean what `reader` does and `writer` does in case of `Channel`. For example: for `admin`, it is specified in comment ``` # By default, who may modify elements at this config level ``` (as per my understanding, if we want to update channel config, we need majority of admin to sign that config)

aalcantara (Tue, 23 Oct 2018 15:33:30 GMT):
Has joined the channel.

aalcantara (Tue, 23 Oct 2018 15:33:35 GMT):
Hi all, im trying to deploy a smart contract in the user-dashboard of hyperledger cello but i have the following error in the logs: cello-user-dashboard | error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/5bcf32f00c1b010046f9d090: cannot find package "github.com/5bcf32f00c1b010046f9d090" in any of: cello-user-dashboard | /opt/go/src/github.com/5bcf32f00c1b010046f9d090 (from $GOROOT) cello-user-dashboard | /chaincode/input/src/github.com/5bcf32f00c1b010046f9d090 (from $GOPATH) cello-user-dashboard | /opt/gopath/src/github.com/5bcf32f00c1b010046f9d090 cello-user-dashboard | " cello-user-dashboard | at new createStatusError (/packages/fabric-1.0/node_modules/grpc/src/client.js:64:15) cello-user-dashboard | at /packages/fabric-1.0/node_modules/grpc/src/client.js:583:15 Anyone can help me?

yousaf (Tue, 23 Oct 2018 15:42:16 GMT):
@jonlee300 Thanks boss :)

dlarukov (Tue, 23 Oct 2018 16:02:52 GMT):
Has joined the channel.

dlarukov (Tue, 23 Oct 2018 16:03:05 GMT):
Greetings everyone. I am setting up multi-node Hyperledger Fabrics with Hyperledger. I've already set up Hyperledger Cello and added to the network 2 hosts but I can't connect one host to another so that they will be able to synchronize they Chaincodes (same on 2 hosts). How can I do this?

Raycoms (Tue, 23 Oct 2018 17:03:42 GMT):
Can I create encrypted data with fabric chaincode? In terms of, the chaincode gets initialized with a private/public key pair and it received data encrypted with its public key so it can read and store it?

jrosmith (Tue, 23 Oct 2018 17:07:49 GMT):
@Raycoms all of the peer nodes running that instance of the chaincode will need to have a copy of the private key in order to properly parse the data. not a very scalable/secure solution. if one peer is compromised the whole network is

akshay.sood (Tue, 23 Oct 2018 17:15:03 GMT):
Hi Guys, I am trying to run https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html#crypto-generator [BYFN with manual steps following this tutorial with Hyperledger fabric 1.3]

akshay.sood (Tue, 23 Oct 2018 17:15:15 GMT):
when I try this command ```peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' ```

akshay.sood (Tue, 23 Oct 2018 17:15:29 GMT):
I get ```Error: endorsement failure during query. response: status:500 message:"Invalid Smart Contract function name."```

akshay.sood (Tue, 23 Oct 2018 17:15:50 GMT):
I didn't modified anything yet and running stock/default files

santosh7418 (Tue, 23 Oct 2018 17:15:51 GMT):
Has joined the channel.

akshay.sood (Tue, 23 Oct 2018 17:17:11 GMT):
The function is there in chaincode

akshay.sood (Tue, 23 Oct 2018 17:17:19 GMT):
very strange issue in Hyperledger Fabric v1.2

akshay.sood (Tue, 23 Oct 2018 17:17:19 GMT):
very strange issue in Hyperledger Fabric v1.3

akshay.sood (Tue, 23 Oct 2018 17:19:08 GMT):
command ```peer chaincode list -C mychannel --instantiated``` shows the following output ```Get instantiated chaincodes on channel mychannel: Name: mycc, Version: 1.0, Path: github.com/chaincode/chaincode_example02/go/, Escc: escc, Vscc: vscc```

akshay.sood (Tue, 23 Oct 2018 17:19:08 GMT):
command `peer chaincode list -C mychannel --instantiated` shows the following output ```Get instantiated chaincodes on channel mychannel: Name: mycc, Version: 1.0, Path: github.com/chaincode/chaincode_example02/go/, Escc: escc, Vscc: vscc```

Raycoms (Tue, 23 Oct 2018 17:21:27 GMT):
@jrosmith thanks, but how can a client then send "sensible" data to a smart contract?

Raycoms (Tue, 23 Oct 2018 17:22:30 GMT):
Ah, nvm, he invokes it on the server which has a private/public key

akshay.sood (Tue, 23 Oct 2018 17:49:48 GMT):
Anyone?

akshay.sood (Tue, 23 Oct 2018 17:57:46 GMT):
If anyone know, can answer on https://stackoverflow.com/questions/52955129/running-byfn-build-your-first-network-in-hyperledger-fabric-v1-3-smart-contrac

jrosmith (Tue, 23 Oct 2018 18:14:22 GMT):
@akshay.sood what do the peer logs say? the error of `Invalid Smart Contract function name` is not returned an error returned by your chaincode. If it was it would be `"Invalid invoke function name. Expecting \"invoke\" \"delete\" \"query\""`, as per the example chaincode

akshay.sood (Tue, 23 Oct 2018 18:14:39 GMT):
Nops

akshay.sood (Tue, 23 Oct 2018 18:14:49 GMT):
```2018-10-23 17:59:22.361 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 0ca ESCC invoke result: response: payload:"\n \301 \342\2574\037a\025\"\020\307=\256\033\310\030\312\2411\2104\250\241\276\313v\277\236\017\232Ln\022L\n\026\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\032*\010\364\003\022%Invalid Smart Contract function name.\"\006\022\004mycc" Error: endorsement failure during invoke. response: status:500 message:"Invalid Smart Contract function name." ```

akshay.sood (Tue, 23 Oct 2018 18:15:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EpF4XBJEexFS6Q7Mi) I agree with you. This error is not returned by chaincode

jrosmith (Tue, 23 Oct 2018 18:16:50 GMT):
it seems to be complaining about the name of mycc

jrosmith (Tue, 23 Oct 2018 18:17:11 GMT):
the example chaincode has the following: ``` //WARNING - this chaincode's ID is hard-coded in chaincode_example04 to illustrate one way of //calling chaincode from a chaincode. If this example is modified, chaincode_example04.go has //to be modified as well with the new ID of chaincode_example02. //chaincode_example05 show's how chaincode ID can be passed in as a parameter instead of //hard-coding. ``` maybe try a different name than mycc?

jrosmith (Tue, 23 Oct 2018 18:17:46 GMT):
maybe ex02?

akshay.sood (Tue, 23 Oct 2018 18:17:49 GMT):
yes

akshay.sood (Tue, 23 Oct 2018 18:17:55 GMT):
I am going to try it

akshay.sood (Tue, 23 Oct 2018 18:17:59 GMT):
please give me 2 mins

akshay.sood (Tue, 23 Oct 2018 18:18:14 GMT):
BTW I copied each and every command from https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html

jrosmith (Tue, 23 Oct 2018 18:19:14 GMT):
its possible the chaincode name was changed by the docs were not properly updated

jrosmith (Tue, 23 Oct 2018 18:19:14 GMT):
its possible the chaincode name was changed but the docs were not properly updated

akshay.sood (Tue, 23 Oct 2018 18:19:45 GMT):
ok

akshay.sood (Tue, 23 Oct 2018 18:19:48 GMT):
let me give it a try

akshay.sood (Tue, 23 Oct 2018 18:21:46 GMT):
yes

akshay.sood (Tue, 23 Oct 2018 18:21:55 GMT):
mycc does not work :o

akshay.sood (Tue, 23 Oct 2018 18:22:01 GMT):
mychaincode does

akshay.sood (Tue, 23 Oct 2018 18:22:26 GMT):
@jrosmith can you exmplain what just happend?

jrosmith (Tue, 23 Oct 2018 18:23:26 GMT):
it was probably installed with the namespace of `mychaincode` instead of `mycc`, so when you tried to invoke/query you were telling the peer to look for a chaincode by name of `mycc` which it didnt have, but it did have `mychaincode`

jrosmith (Tue, 23 Oct 2018 18:23:48 GMT):
does the install command reference `mycc` or `mychaincode`?

jrosmith (Tue, 23 Oct 2018 18:23:53 GMT):
in the guide that is

akshay.sood (Tue, 23 Oct 2018 18:25:10 GMT):
it refer to `mycc`

akshay.sood (Tue, 23 Oct 2018 18:25:34 GMT):
but when I tried to check chaincode list by using `peer chaincode list -C mychannel --instantiated`

akshay.sood (Tue, 23 Oct 2018 18:25:41 GMT):
it gave me result of `mycc`

akshay.sood (Tue, 23 Oct 2018 18:26:14 GMT):
but it should accept `mycc`

jrosmith (Tue, 23 Oct 2018 18:26:41 GMT):
interesting, i don't actually know. maybe the maintainers in #fabric-peer-endorser-committer or even #fabric-documentation will be able to figure out whats going on. it definitely appears to be a bug in the example

jrosmith (Tue, 23 Oct 2018 18:27:24 GMT):
it may make sense to open up a [JIRA](https://jira.hyperledger.org/secure/Dashboard.jspa) issue addressing this as well

akshay.sood (Tue, 23 Oct 2018 18:28:07 GMT):
I am surprised why anyone else didn't talked about this

DeepakMP (Tue, 23 Oct 2018 18:44:36 GMT):
Hi guys!

DeepakMP (Tue, 23 Oct 2018 18:44:51 GMT):
I'm trying to run my balance transfer network from fabric-samples.

DeepakMP (Tue, 23 Oct 2018 18:45:12 GMT):
Its worked partially, and I am hoping someone here can help me understand what or why?

jrosmith (Tue, 23 Oct 2018 18:47:23 GMT):
@DeepakMP please let us know which version of fabric you're using and how far you were able to get in the example before hitting an error. also please post a hastebin.com link to your error log

DeepakMP (Tue, 23 Oct 2018 18:47:34 GMT):
When I initially tried it on my local- it didn't invoke the chaincode, although it was able to install, instantiate and query it.

DeepakMP (Tue, 23 Oct 2018 18:47:35 GMT):
[2018-10-23 18:41:15.729] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'mychannel' !!!!!!!!! [2018-10-23 18:41:15.729] [ERROR] Create-Channel - Error: Failed to create the channel 'mychannel' at Object.createChannel (/home/engineering/work/fabric-samples/balance-transfer/app/create-channel.js:60:10) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:14060) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: Failed to create the channel 'mychannel' at Object.createChannel (/home/engineering/work/fabric-samples/balance-transfer/app/create-channel.js:64:9) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:14060) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by thro wing inside of an async function without a catch block, or by rejecting a promise which was not handled with .ca tch(). (rejection id: 3)

DeepakMP (Tue, 23 Oct 2018 18:48:20 GMT):
This is the error I get now, when I host the network on my cloud virtual machine and call the apis from my local using the vm's public ip.

DeepakMP (Tue, 23 Oct 2018 18:49:15 GMT):
Its able to enroll on Org1 and Org2, but this error halts it at create channel.

DeepakMP (Tue, 23 Oct 2018 18:50:03 GMT):
However, all apis run properly when called from within the same vm where the network is hosted.

akshay.sood (Tue, 23 Oct 2018 19:08:41 GMT):
@jrosmith are you there?

akshay.sood (Tue, 23 Oct 2018 19:08:55 GMT):
I am trying to run `fabcar` chaincode using `first-network`

akshay.sood (Tue, 23 Oct 2018 19:09:13 GMT):
it shows endorsement failure

akshay.sood (Tue, 23 Oct 2018 19:09:16 GMT):
```peer1.org1.example.com | 2018-10-23 19:08:01.040 UTC [vscc] Validate -> ERRO 048 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy peer1.org1.example.com | 2018-10-23 19:08:01.040 UTC [committer/txvalidator] validateTx -> ERRO 049 VSCCValidateTx for transaction txId = 119d7dd2cfe93fdde05bfa51ae534745b95dcb8f6851d7b00302552dbd87b90a returned error: validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy peer1.org1.example.com | 2018-10-23 19:08:01.041 UTC [committer/txvalidator] Validate -> INFO 04a [mychannel] Validated block [3] in 8ms peer1.org1.example.com | 2018-10-23 19:08:01.042 UTC [valimpl] preprocessProtoBlock -> WARN 04b Channel [mychannel]: Block [3] Transaction index [0] TxId [119d7dd2cfe93fdde05bfa51ae534745b95dcb8f6851d7b00302552dbd87b90a] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] peer1.org2.example.com | 2018-10-23 19:08:01.045 UTC [vscc] Validate -> ERRO 04d VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy couchdb | [notice] 2018-10-23T19:08:01.045086Z nonode@nohost <0.2751.0> f713cfed23 couchdb:5984 192.168.144.6 undefined GET /mychannel_lscc/mychaincode?attachments=true 200 ok 2 peer1.org2.example.com | 2018-10-23 19:08:01.045 UTC [committer/txvalidator] validateTx -> ERRO 04e VSCCValidateTx for transaction txId = 119d7dd2cfe93fdde05bfa51ae534745b95dcb8f6851d7b00302552dbd87b90a returned error: validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy peer1.org2.example.com | 2018-10-23 19:08:01.046 UTC [committer/txvalidator] Validate -> INFO 04f [mychannel] Validated block [3] in 6ms peer1.org2.example.com | 2018-10-23 19:08:01.047 UTC [valimpl] preprocessProtoBlock -> WARN 050 Channel [mychannel]: Block [3] Transaction index [0] TxId [119d7dd2cfe93fdde05bfa51ae534745b95dcb8f6851d7b00302552dbd87b90a] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] peer0.org2.example.com | 2018-10-23 19:08:01.052 UTC [vscc] Validate -> ERRO 049 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy peer0.org2.example.com | 2018-10-23 19:08:01.053 UTC [committer/txvalidator] validateTx -> ERRO 04a VSCCValidateTx for transaction txId = 119d7dd2cfe93fdde05bfa51ae534745b95dcb8f6851d7b00302552dbd87b90a returned error: validation of endorsement policy for chaincode mychaincode in tx 3:0 failed: signature set did not satisfy policy```

akshay.sood (Tue, 23 Oct 2018 19:10:00 GMT):
but the default chaincode `chaincode_example02 ` works perfectly fine

akshay.sood (Tue, 23 Oct 2018 19:11:52 GMT):
If anyone have any suggestion or idea please let me know

akshay.sood (Tue, 23 Oct 2018 19:12:06 GMT):
I am getting very strange issues in Hyperledger Fabric v1.3

akshay.sood (Tue, 23 Oct 2018 19:12:06 GMT):
I am facing very strange issues in Hyperledger Fabric v1.3

akshay.sood (Tue, 23 Oct 2018 19:14:38 GMT):
@mastersingh24

akshay.sood (Tue, 23 Oct 2018 19:15:06 GMT):
Please help

akshay.sood (Tue, 23 Oct 2018 19:16:13 GMT):
Everything works fine in v1.2

akshay.sood (Tue, 23 Oct 2018 19:16:17 GMT):
but not in v1.3

akshay.sood (Tue, 23 Oct 2018 19:59:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6EtdM7TZoaBLcXw9C) This error comes when endorsement policy is ```-P "AND ('Org1MSP.peer','Org2MSP.peer')"```

akshay.sood (Tue, 23 Oct 2018 20:00:01 GMT):
it works fine with both ``` -P "AND ('Org1MSP.peer')"``` and ``` -P "AND ('Org2MSP.peer')"```

akshay.sood (Tue, 23 Oct 2018 20:00:01 GMT):
it works fine with both ` -P "AND ('Org1MSP.peer')"` and ` -P "AND ('Org2MSP.peer')"`

akshay.sood (Tue, 23 Oct 2018 20:00:26 GMT):
if they are used separately

akshay.sood (Tue, 23 Oct 2018 20:01:03 GMT):
works fine for `````` -P "OR ('Org1MSP.peer','Org2MSP.peer')"``` also ```

akshay.sood (Tue, 23 Oct 2018 20:01:03 GMT):
works fine for ``` -P "OR ('Org1MSP.peer','Org2MSP.peer')"``` also

akshay.sood (Tue, 23 Oct 2018 20:24:30 GMT):
Hi Guys

akshay.sood (Tue, 23 Oct 2018 20:25:58 GMT):
I am running my chaincode on `Fabric v1.2` but while `instantiating the chaincode` it is pulling `ccenv:latest` instead of `ccenv:1.2.0`. Does anyone have any idea about it?

jonlee300 (Wed, 24 Oct 2018 04:31:21 GMT):
Hi there, I deployed a network in 2 machines. machine 1: orderrer, 2 peers of org1 docker_compose_base.yaml: peer0.org1: ports: - 7051:7051 peer1.org1: ports: - 8051:7051 machine 2: 2 peers of org2 docker_compose_base.yaml: peer0.org2: ports: - 9051:7051 extra_host: - orderer.example.com:10.148.0.7 peer1.org2: ports: - 10051:7051 extra_host: - orderer.example.com:10.148.0.7 The network runs properly with every transactions gone through and block populates with all the nodes. However, I get this warning message from all 4 peers. *2018-10-22 11:53:41.891 UTC [gossip/discovery] func1 -> WARN 132 Could not connect to {peer0.org2.example.com:7051 [] [] peer0.org2.example.com:7051 } : context deadline exceeded 2018-10-22 11:54:09.893 UTC [gossip/gossip] func1 -> WARN 133 Deep probe of peer0.org2.example.com:7051 failed: context deadline exceeded *github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:247 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:159 Effectively, the message warns that all peers cannot connect to others using gossip protocol. I wonder why blocks can go through but they cannot identify one another in the gossip protocol. Is there any way that I can fix this please? What I can identify is that when I deployed everything in one yaml file in one machine, gossip protocol works with occasionally dead members but no "context deadline exceeded". Even I deployed 2 orgs by 2 different docker yaml file, the 2 orgs still cannot communicate. Is there any thing that I can set in config to resolve? Or is there any way to disable the gossip protocol? Thank you in advance, experts.

DeepakMP (Wed, 24 Oct 2018 04:40:41 GMT):
I have my /fabric-samples/balance-transfer app running on a google cloud instance. All the calls in ./testAPIs.sh go through when run in the same system or machine. But when called from external systems- for example, my machine- the channel creation doesn't work.

npc0405 (Wed, 24 Oct 2018 05:50:14 GMT):
can we do load balancing for orderers when using kafka in place?

npc0405 (Wed, 24 Oct 2018 05:53:36 GMT):
If so then do we have any article / way present to do that

IgarashiTakashi (Wed, 24 Oct 2018 06:07:32 GMT):
Has joined the channel.

zaidmunir (Wed, 24 Oct 2018 06:36:48 GMT):
Has joined the channel.

zaidmunir (Wed, 24 Oct 2018 06:39:20 GMT):
I have downloaded all the docker-images for fabric 1.3.0 using the get-docker-images.sh in the bin folder

zaidmunir (Wed, 24 Oct 2018 06:39:49 GMT):
now when i give the byfn.sh up command it starts downloading the containers again

zaidmunir (Wed, 24 Oct 2018 06:39:51 GMT):
why???

zaidmunir (Wed, 24 Oct 2018 06:40:11 GMT):
I am trying to tun the first-network sample

karthikmohan91 (Wed, 24 Oct 2018 06:47:17 GMT):
@zaidmunir load the images you have, then run the network

ShobhitSrivastava (Wed, 24 Oct 2018 07:00:38 GMT):
Hi All```I have one ques in hyperledger fabric. I am using Couch DB as state DB and using two peers in channel. However I am able to delete the keys and update value in Json. How is this replicated? If I am able to change value in Json key and value. ```

twoneks (Wed, 24 Oct 2018 08:18:02 GMT):
Hi I'm building my first app with fabric so sorry if the question appears silly... in a production environment with a kafka cluster and 3 orderer, have block been written even if no transaction is requested. I'm asking because I would like to use the number of block as a clock since I guess calling Time.now() during the execution of a smart contract produce a different result on every peer. I hope this is clear enough. Thanks cheers

zaidmunir (Wed, 24 Oct 2018 08:46:17 GMT):
I have a scenario where a particular user needs to sign a transaction for it to be valid. But as i understand the endorsement policy works only on "principles {member,admin, client,peer }". I need fine grained control over the endorsement policy. How is this achievable???

iamsteveng (Wed, 24 Oct 2018 09:00:39 GMT):
Has joined the channel.

nnikka (Wed, 24 Oct 2018 09:00:52 GMT):
Has joined the channel.

nnikka (Wed, 24 Oct 2018 09:00:55 GMT):
when network is running and there is only 2 peer and 1 orderer, what should I do if I want to add third peer in my network

nnikka (Wed, 24 Oct 2018 09:01:05 GMT):
?

iamsteveng (Wed, 24 Oct 2018 09:02:08 GMT):
Is there any ways I can reach out a Hyperledger Fabric contributor / experienced developer in Hong Kong?

Mr.Reddington (Wed, 24 Oct 2018 09:17:59 GMT):
Has joined the channel.

Mr.Reddington (Wed, 24 Oct 2018 09:18:12 GMT):
Hi there everyone, I'm new in the community and I just started with Hyperledger Fabric Go SDK. Could anyone please recommend me a good tutorial for setting up hyperledger fabric with a Go REST API?

twoneks (Wed, 24 Oct 2018 09:44:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Me6jowpTRXQvHgWRg) @Mr.Reddington https://chainhero.io/2018/06/tutorial-build-blockchain-app-v1-1-0/ This is pretty good and it works

tahaf10 (Wed, 24 Oct 2018 09:46:44 GMT):
I have defined a struct in my chaincode which has a field createdAt of type time.Time I'm confused on how to A)- Enter the time as time.now() can't be used in chaincode and if I pass from front end then its in JSON format how do I convert it into a golang time object, and B)- How do I implement a query in my chaincode so that I can get a list of objects which were created between a range ( a start date and an end date)

tahaf10 (Wed, 24 Oct 2018 09:46:51 GMT):
Can someone help out with this?

Mr.Reddington (Wed, 24 Oct 2018 09:47:07 GMT):
@twoneks Thank you very much, I will try to follow it and give it a try.

Mr.Reddington (Wed, 24 Oct 2018 09:52:40 GMT):
@twoneks I see that this example is using Hyperledger Fabric version 1.1.0 and I'm using Hyperledger Fabric version 1.3.0. You can run a project build in Hyperledger Fabric version 1.1.0 in a Hyperledger Fabric version 1.3.0 environment?

akshay.sood (Wed, 24 Oct 2018 10:02:32 GMT):
Hi Experts I am trying to implement `Organisation Units` I modified the `config.yaml` under msp directory and the content now is: ```NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: peer OrganizationalUnitIdentifiers: - Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: commercial - Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: administrators ```

akshay.sood (Wed, 24 Oct 2018 10:02:55 GMT):
But if I fetch configuration block of channel and convert it to json format

akshay.sood (Wed, 24 Oct 2018 10:03:23 GMT):
It shows the organization units empty

akshay.sood (Wed, 24 Oct 2018 10:03:25 GMT):
```"name":"Org1MSP", "organizational_unit_identifiers":[ ]```

akshay.sood (Wed, 24 Oct 2018 10:06:02 GMT):
Full config json can be found here https://hastebin.com/isoteqiwiv.json

AnujaSony (Wed, 24 Oct 2018 10:14:35 GMT):
Has joined the channel.

twoneks (Wed, 24 Oct 2018 10:15:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RHBRoNs7Su49kQpFa) @Mr.Reddington I didnt' try

GuillaumeTong (Wed, 24 Oct 2018 10:24:32 GMT):
Hello everyone, I am trying to setup security systems for the kafka and zookeeper components of the network. More specifically right now I am trying to setup SASL Authentication where zookeeper authenticates kafka nodes. However, when I think I have set up authentication requirements, I cannot notice any errors/warnings in the fabric system, or any anomalies in the logs of both kafka and zookeeper. Does anyone know a test case which will allow me to know if kafka is failing or successful during authentication with zookeeper? Alternately: is there any tutorial for setting up zookeeper-kafka SASK, preferably in the context of using it with Fabric?

GuillaumeTong (Wed, 24 Oct 2018 10:24:32 GMT):
Hello everyone, I am trying to setup security systems for the kafka and zookeeper components of the network. More specifically right now I am trying to setup SASL Authentication where zookeeper authenticates kafka nodes. However, when I think I have set up authentication requirements, I cannot notice any errors/warnings in the fabric system, or any anomalies in the logs of both kafka and zookeeper. Does anyone know a test case which will allow me to know if kafka is failing or successful during authentication with zookeeper? Alternately: is there any tutorial for setting up zookeeper-kafka SASL, preferably in the context of using it with Fabric?

twoneks (Wed, 24 Oct 2018 10:52:42 GMT):
Hi I'm building my first app with fabric so sorry if the question appears silly... in a production environment with a kafka cluster and 3 orderer, have block been written even if no transaction is requested. I'm asking because I would like to use the number of block as a clock since I guess calling Time.now() during the execution of a smart contract produce a different result on every peer. I hope this is clear enough. Thanks cheers

sheetal-hlf (Wed, 24 Oct 2018 10:59:07 GMT):
Hi in private data, what is expected if the endorsing peer is not able to disseminate data to maxPeerCount while the requiredPeerCount is zero ? - is this case of missing private data?

halilkalkan (Wed, 24 Oct 2018 11:00:33 GMT):
Hi, I have a question about identity mixer usage, as far as i know, client restrictions should be done via attribute based access control. For instance, a user should only query its own assets etc. However, with the identity mixer how it can be possible to build a ABAC mechanism?

sheetal-hlf (Wed, 24 Oct 2018 11:02:35 GMT):
Also if the requiredPeerCount =0 and maxPeerCount>0 does the endorsing peer distribute data to all the peers mentioned by maxPeerCount?

dave.enyeart (Wed, 24 Oct 2018 11:06:55 GMT):
@sheetal-hlf I believe the doc describes this fairly well:

dave.enyeart (Wed, 24 Oct 2018 11:06:59 GMT):
```maxPeerCount: For data redundancy purposes, the maximum number of other peers (across authorized organizations) that each endorsing peer will attempt to distribute the private data to. If an endorsing peer becomes unavailable between endorsement time and commit time, other peers that are collection members but who did not yet receive the private data at endorsement time, will be able to pull the private data from peers the private data was disseminated to. If this value is set to 0, the private data is not disseminated at endorsement time, forcing private data pulls against endorsing peers on all authorized peers at commit time.```

dave.enyeart (Wed, 24 Oct 2018 11:10:05 GMT):
So if endorsing peer is only able to successfully disseminate private data to half of the maxPeerCount, that's fine, the peers that didn't get the private data at endorsement time will attempt to pull the private data at commit time. If they still can't find it, they will commit the tran with missing private data. In an upcoming release there will be a reconciliation feature where peers can attempt to resolve the missing private data later.

dlarukov (Wed, 24 Oct 2018 11:20:33 GMT):
Hello everyone. Can I add organization peers on remote host with only Cello? Or I need swarm and/or k8s?

sheetal-hlf (Wed, 24 Oct 2018 11:21:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G7q6MiEHE2s7GKpcj) @dave.enyeart successfully disseminate private data to half of the maxPeerCount, that's fine - how is this decided by a timeout or by a number?

tahaf10 (Wed, 24 Oct 2018 11:41:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5kqPb8mRrDTRBQgKY) Can someone help with this?

osmola (Wed, 24 Oct 2018 11:51:25 GMT):
Hi Guys, any chance that somebody knows if peers can emit prometheus metrics? I am trying to enable it in config but nothing is listening on provided port

dave.enyeart (Wed, 24 Oct 2018 11:53:50 GMT):
@osmola that's in plan for v1.4

dave.enyeart (Wed, 24 Oct 2018 12:02:39 GMT):
@tahaf10 You can use GetTxTimestamp() to get the timestamp passed from client. That's the best you can do, since there is no common definition of current time across peers.

dave.enyeart (Wed, 24 Oct 2018 12:02:44 GMT):
https://github.com/hyperledger/fabric/blob/release-1.3/core/chaincode/shim/interfaces.go#L338-L341

osmola (Wed, 24 Oct 2018 12:03:05 GMT):
@dave.enyeart Cool, thanks

dave.enyeart (Wed, 24 Oct 2018 12:03:14 GMT):
For an example of converting timestamp see https://github.com/hyperledger/fabric-samples/blob/release-1.3/chaincode/marbles02/go/marbles_chaincode.go#L739

dave.enyeart (Wed, 24 Oct 2018 12:04:11 GMT):
if you want to query for it, you will have to encode it as an integer and then use a couchdb json query, or encode that integer as a key to be used for key range queries

dave.enyeart (Wed, 24 Oct 2018 12:05:16 GMT):
@sheetal-hlf private data push timeout is based on pushAckTimeout:

dave.enyeart (Wed, 24 Oct 2018 12:05:19 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L187-L189

dave.enyeart (Wed, 24 Oct 2018 12:05:56 GMT):
I'm not sure if there are retries and a total timeout, separate from the per-peer timeout, will need @C0rWin or @yacovm to clarify that (and it should get added to documentation)

sheetal-hlf (Wed, 24 Oct 2018 12:12:14 GMT):
@dave.enyeart thank you

sheetal-hlf (Wed, 24 Oct 2018 12:13:04 GMT):
I am trying to send data using transient option however I am not able to fetch it in the smart contract using GetTransient()

sheetal-hlf (Wed, 24 Oct 2018 12:13:06 GMT):
peer chaincode invoke -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n $CC_NAME --peerAddresses $PEER.example.com:7051 $TLSINFO -c '{"Args":["createItem","mobile","smartphone","electronic","dollars","150","250","Org1-Jim9","20-10-2018 09:00:00","21-10-2018 00:00:00"]}' --transient '{"reservePrice":"250"}'

sheetal-hlf (Wed, 24 Oct 2018 12:13:37 GMT):
could any one please confirm if the cmd is correct?

dave.enyeart (Wed, 24 Oct 2018 12:13:55 GMT):
i know @chris.elder is working on a transient sample that would help... chris?

CorentinPacaud (Wed, 24 Oct 2018 12:14:24 GMT):
Hi, how can we secure the cards in hyperledger fabric ? I mean, for now, in my company, we just save it in the server, but it isn't really secure right ?

tahaf10 (Wed, 24 Oct 2018 12:48:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3znqFoJsJnJZtgNKo) @dave.enyeart Thank you for the response. Can you give some example of this ? I'm having some trouble figuring this out

AndreiLovin (Wed, 24 Oct 2018 13:06:04 GMT):
Here's an interesting situation... I've deployed a Fabric network over two machines and I'm able to query and invoke transaction through cli. I'm also using a NodeJS app with which I can query the network but can't invoke. This error appears whenever I invoke from the NodeJS app: "Failed to connect before the deadline". The logs from the node app: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpcs://orderer.test.com:7050 has an error Error: Failed to connect before the deadline Any ideea what's wrong?

C0rWin (Wed, 24 Oct 2018 13:30:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cDTRyJCkRZhiLoueM) @dave.enyeart There are no retries. Set of peers to push data is computed based on collection policies and distributed to those peers. Next acknowledgements are collected and if total number of ack is less than defined threshold the error is returned stating we failed disseminate to required minimum of peers hence failing the endorsement.

C0rWin (Wed, 24 Oct 2018 13:30:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cDTRyJCkRZhiLoueM) @dave.enyeart There are no retries. Set of peers to push data is computed based on collection policies and distributed to those peers. Next acknowledgements are collected and if total number of ack is less than defined threshold the error is returned stating we failed disseminate to required minimum of peers hence failing the endorsement. cc @sheetal-hlf @yacovm

chris.elder (Wed, 24 Oct 2018 13:41:10 GMT):
@sheetal-hlf, @dave.enyeart The transient data needs to be base64 encoded and sent as a JSON. This is an interpretation of the invoke you posted: reservePrice=$(echo -n 250 | base64) peer chaincode invoke -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n $CC_NAME --peerAddresses $PEER.example.com:7051 $TLSINFO -c '{"Args":["createItem","mobile","smartphone","electronic","dollars","150","250","Org1-Jim9","20-10-2018 09:00:00","21-10-2018 00:00:00"]}' --transient {\"reservePrice\":\"$reservePrice\"}

dave.enyeart (Wed, 24 Oct 2018 14:18:05 GMT):
@C0rWin I understand the handling for `requiredPeerCount`. What I still don't understand is the handling for `maxPeerCount`. Let's say `maxPeerCount` is 10. Does endorsing peer attempt to disseminate private data to any 10 peers? What if only 8 sends are successful after 3s (`pushAckTimeout`). Will endorsing peer attempt to send to two others? Or just settle for 8 of 10 and respond back to client after 3s?

wangdong (Wed, 24 Oct 2018 14:23:55 GMT):
Has joined the channel.

wangdong (Wed, 24 Oct 2018 14:24:36 GMT):
At first the event hub is deployed. Then it is removed for some issue. Then sdk got blocks sent from peer. Below is the log from peer and orderer. Hope somebody can Share some clue on this. Peer logs: [common/deliver] deliverBlocks -> WARN 0fd [channel: mychannel] Error sending to client-sdk-host.com.: rpc error: code = Unavailable desc = transport: write tcp 172.18.0.159:20397->client-sdk-host.com: write: connection reset by peer Orderer logs: [common/deliver] deliverBlocks -> WARN 1bb [channel: mychannel] Error sending to 10.18.2.123:43343: rpc error: code = Canceled desc = context canceled

wangdong (Wed, 24 Oct 2018 14:25:10 GMT):
what I can not understand is why peer sends blocks to sdk.

wangdong (Wed, 24 Oct 2018 14:25:46 GMT):
I replace host of sdk with client-sdk-host.com

gravity (Wed, 24 Oct 2018 14:56:34 GMT):
hi all

C0rWin (Wed, 24 Oct 2018 14:58:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DNLgcPmvfADfqXtKk) @dave.enyeart It will try to disseminate to at most `maxPeerCount` while for success requires at least `requiredPeerCount`. So if you have 8 peers and `maxPeerCount=8` while `requiredPeerCount=3` it will attempt to distribute/push to 8 while consider endorsement as successful if it will have at least 3 acks out of 8.

C0rWin (Wed, 24 Oct 2018 14:58:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DNLgcPmvfADfqXtKk) @dave.enyeart It will try to disseminate to at most `maxPeerCount` while for success requires at least `requiredPeerCount`. So if you have 8 peers and `maxPeerCount=10` while `requiredPeerCount=3` it will attempt to distribute/push to 8 while consider endorsement as successful if it will have at least 3 acks out of 8.

gravity (Wed, 24 Oct 2018 14:58:48 GMT):
hi all. does anyone use enterprise plan for fabric on ibm bluemix? is it good enough? because I can see that they allow to create 6 peers at max for an organization. any comments would be really helpful. thanks

Raycoms (Wed, 24 Oct 2018 15:50:59 GMT):
Which linux versions are encouraged to use when setting up a hyperledger cluster?

greg2git (Wed, 24 Oct 2018 15:54:11 GMT):
@raycoms my ubuntu 16.04 worked fine until i have upgraded it to 18.04 and now even downloading binaries is a lot slower, security seems to have changed as well at the operating system/cloud level...i'm on AWS

Raycoms (Wed, 24 Oct 2018 16:24:27 GMT):
I got my own servers here in the laboratory

akshay.sood (Wed, 24 Oct 2018 19:53:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zEaAiMGZpYgJ36dNc) @dave.enyeart @jyellick @yacovm Anyone knows whats happeing?

akshay.sood (Wed, 24 Oct 2018 19:53:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zEaAiMGZpYgJ36dNc) @dave.enyeart @jyellick @yacovm Anyone knows whats happening?

akshay.sood (Wed, 24 Oct 2018 19:55:22 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=zEaAiMGZpYgJ36dNc

astanwar99 (Wed, 24 Oct 2018 19:56:57 GMT):
Has joined the channel.

akshay.sood (Wed, 24 Oct 2018 21:11:48 GMT):
Hi all I am facing this error during network bootstrap: ```orderer.example.com | 2018-10-24 20:44:37.841 UTC [orderer/commmon/multichannel] newLedgerResources -> PANI 050 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc42015c1e0]] are in MSP Org1MSP orderer.example.com | panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc42015c1e0]] are in MSP Org1MSP orderer.example.com | orderer.example.com | goroutine 1 [running]: orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc42025a000, 0x0, 0x0, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x4f4 orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc4201661e0, 0x4, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1, 0x0, 0x0, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc4201661e0, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 orderer.example.com | github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc4201661e8, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 orderer.example.com | github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc4202a21b0, 0xc4204c0e60, 0xc4204c0e60) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:256 +0x2ea orderer.example.com | github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0xea36a0, 0xc42025c280, 0xc4204af5c0, 0xe9b060, 0x15a78b0, 0xc420166130, 0x1, 0x1, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:142 +0x312 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc4200e8580, 0xe9b060, 0x15a78b0, 0xc420166130, 0x1, 0x1, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:258 +0x250 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.Start(0xdf7a5a, 0x5, 0xc4200e8580) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:96 +0x226 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.Main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:75 +0x1d6 orderer.example.com | main.main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 orderer.example.com exited with code 2```

akshay.sood (Wed, 24 Oct 2018 21:11:48 GMT):
Hi all I am facing this error during network bootstrap: ```orderer.example.com | 2018-10-24 20:44:37.841 UTC [orderer/commmon/multichannel] newLedgerResources -> PANI 050 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc42015c1e0]] are in MSP Org1MSP orderer.example.com | panic: Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: admin 0 is invalid: The identity is not valid under this MSP [Org1MSP]: could not validate identity's OUs: none of the identity's organizational units [[0xc42015c1e0]] are in MSP Org1MSP orderer.example.com | orderer.example.com | goroutine 1 [running]: orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc42025a000, 0x0, 0x0, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x4f4 orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc4201661e0, 0x4, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1, 0x0, 0x0, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 orderer.example.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc4201661e0, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 orderer.example.com | github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc4201661e8, 0xe14c6d, 0x27, 0xc420351958, 0x1, 0x1) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 orderer.example.com | github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc4202a21b0, 0xc4204c0e60, 0xc4204c0e60) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:256 +0x2ea orderer.example.com | github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0xea36a0, 0xc42025c280, 0xc4204af5c0, 0xe9b060, 0x15a78b0, 0xc420166130, 0x1, 0x1, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:142 +0x312 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc4200e8580, 0xe9b060, 0x15a78b0, 0xc420166130, 0x1, 0x1, 0x0) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:258 +0x250 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.Start(0xdf7a5a, 0x5, 0xc4200e8580) orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:96 +0x226 orderer.example.com | github.com/hyperledger/fabric/orderer/common/server.Main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:75 +0x1d6 orderer.example.com | main.main() orderer.example.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 orderer.example.com exited with code 2``` I have modified the msp of peer org `Org1` and added a new Organization Unit Identifier and the content of config.yaml is: ```NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: peer OrganizationalUnitIdentifiers: - Certificate: cacerts/ca.org1.example.com-cert.pem OrganizationalUnitIdentifier: TEST ```

akshay.sood (Wed, 24 Oct 2018 21:13:08 GMT):
Does anyone know whats wrong here?

MegganDo (Wed, 24 Oct 2018 21:19:17 GMT):
mumsp

wangdong (Wed, 24 Oct 2018 23:16:21 GMT):
@dave.enyeart could you please help my question?

dave.enyeart (Wed, 24 Oct 2018 23:26:51 GMT):
@wangdong not my focus area... but i can point you to the node sdk event doc: https://fabric-sdk-node.github.io/tutorial-channel-events.html

wangdong (Wed, 24 Oct 2018 23:31:12 GMT):
thanks. do you know some one can help on this area?

wangdong (Wed, 24 Oct 2018 23:32:07 GMT):
I may missed something. I will read this first.

wangdong (Wed, 24 Oct 2018 23:36:35 GMT):
Well, even if it is related to events after the event hub has been removed from client side. I don't think [common/deliver] api should be called. If it is a event, api evnet_producer should be called instead.

wangdong (Wed, 24 Oct 2018 23:36:57 GMT):
I am not sure if I misunderstand some.

caveman7 (Thu, 25 Oct 2018 00:41:59 GMT):
hi all, a question about basic working of Fabric: if a new peer joins the channel, how does it retrieve the blocks? does it retrieve it from the orderer (by connecting to the orderer's address listed in the config block) or from other peers through gossip?

caveman7 (Thu, 25 Oct 2018 00:41:59 GMT):
hi all, a question about basic working of Fabric: if a new peer joins the channel, how does it retrieve the blocks? does it retrieve it from the orderer (by connecting to the orderer's address listed in the config block) or from other peers through gossip?

GuillaumeTong (Thu, 25 Oct 2018 01:12:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gYqAJfY4ntw2fejyx) Can someone help me with this, or suggest a more specific chat to post my question?

GuillaumeTong (Thu, 25 Oct 2018 01:12:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gYqAJfY4ntw2fejyx) Just in case anyone sees this, I have figured out the problem: I hadn't yet migrated the previous data to have a secure acl using zookeeper-security-migration.sh

greg2git (Thu, 25 Oct 2018 01:16:42 GMT):
if my couchdb containers are up and running as is the rest of the network, why can't i bring up :5984/_utils in fabric 1.3? it works fine in 1.2

aarshleadiq (Thu, 25 Oct 2018 02:49:26 GMT):
@greg2git Have you expose the 5984 in your docker compose file ?

aarshleadiq (Thu, 25 Oct 2018 02:49:26 GMT):
@greg2git Have you exposed the 5984 port in your docker compose file ?

aarshleadiq (Thu, 25 Oct 2018 02:50:32 GMT):
services: couchdb0: ports: - 5984:5984

dave.enyeart (Thu, 25 Oct 2018 03:13:45 GMT):
@wangdong I see your confusion now... same deliver service interface is implemented by both orderer and peer, to support two different use cases 1) leader peer asks orderer to 'deliver' a stream of ordered blocks from some block number onwards, for the purpose of consuming blocks for commit 2) sdk asks peer to 'deliver' a stream of committed blocks from some block number onwards, for the purpose of consuming blocks for event processing

shw8927 (Thu, 25 Oct 2018 03:27:16 GMT):
Has joined the channel.

PanosChtz (Thu, 25 Oct 2018 03:41:00 GMT):
Has joined the channel.

PanosChtz (Thu, 25 Oct 2018 03:43:37 GMT):
I read the Hyperledger Fabric paper and documentation. I could not find any concrete information or evaluation on the scalability of HLF. I understand that the number of orderers are dependent on the consensus used (if a BFT-consensus, that means only about 20 max). But what about the clients and peers? Can their number scale into e.g. thousands?

sheetal-hlf (Thu, 25 Oct 2018 03:51:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bdj8oijL6edqXv66H) @chris.elder thanks Chris... command documentation does not mention about base64 encoding; could be the reason for failure while sending transient data from Node SDK as well?

tahaf10 (Thu, 25 Oct 2018 05:19:56 GMT):
Can someone tell me how to query for date range in Fabric when date is defined in struct as time.Time?

tahaf10 (Thu, 25 Oct 2018 05:19:56 GMT):
Can someone tell me how to query for date range in Fabric golang chaincode when date is defined in struct as time.Time?

Jayakrishna.V (Thu, 25 Oct 2018 05:26:24 GMT):
Has joined the channel.

Jayakrishna.V (Thu, 25 Oct 2018 05:26:41 GMT):
HI I am trying to visualize the hardware requirements for setting up a Blockchain network. In the sample applications/tutorials, all the Peers, CA, Ordering Node will be available on the same development machine. How is it going to be in production environment. Do we need a separate server for each peer, CA and Ordering Node?

ShefaliMittal (Thu, 25 Oct 2018 05:51:30 GMT):
Hello, Can any one please tell me how do I external package to my chaincode. I read about go vendor but unable to get the proper understanding about it. Also if possible please provide some set of commands that I could execute to include the required package.

moficodes (Thu, 25 Oct 2018 05:58:01 GMT):
Has anyone recently ran the fabric-samle balance-transfer? I am trying to run it and getting some errors. https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer specifically at trying to join channel ``` [2018-10-25 01:30:06.641] [ERROR] Join-Channel - TypeError: client.getEventHubsForOrg is not a function at Object.joinChannel (/Users/mofizur.rahman@ibm.com/Documents/blockchain/dev/fabric-samples/balance-transfer/app/join-channel.js:55:27) at at process._tickCallback (internal/process/next_tick.js:188:7) [2018-10-25 01:30:06.641] [ERROR] Join-Channel - Failed to join all peers to channel. cause:TypeError: client.getEventHubsForOrg is not a function (node:11167) UnhandledPromiseRejectionWarning: Error: Failed to join all peers to channel. cause:TypeError: client.getEventHubsForOrg is not a function at Object.joinChannel (/Users/mofizur.rahman@ibm.com/Documents/blockchain/dev/fabric-samples/balance-transfer/app/join-channel.js:158:9) at at process._tickCallback (internal/process/next_tick.js:188:7) (node:11167) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) ``` So in line 54 of the `app/join-channel.js` there is a call to getEventHubsForOrg` which is not a method (maybe it got deprecated). I am hoping for someone to give me some insight to what the replacement for this method is or what is the way i can use the node sdk to join a peer to a channel given the `channelname, peers, username and org_name` Much Thanks

PrashantS (Thu, 25 Oct 2018 06:19:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8hkJM2t5LmTtTEdXs) @moficodes @moficodes the line in question in app/join-channel.js `let event_hubs = client.getEventHubsForOrg(org_name);` is valid for Branch 1.1, and not for 1.3

pankajcheema (Thu, 25 Oct 2018 06:36:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CYqRcwwweqfMahtFo) @dave.enyeart could you please look into this? I faced a similar issue today

akshay.sood (Thu, 25 Oct 2018 06:45:17 GMT):
If anyone willing to answer on SO please follow this url: https://stackoverflow.com/questions/52982952/implementation-of-organization-unit-identifier-in-peer-organisation-causes-order

cagdast (Thu, 25 Oct 2018 07:31:07 GMT):
Has joined the channel.

CorentinPacaud (Thu, 25 Oct 2018 07:42:17 GMT):
Hi everyone. I have two question : 1) when a transaction is wubmitted, can we see the data in the logs of a peer ? 2) Is it possible to decode the couchDB without a card ? This is for security/confidentiality reason.

CorentinPacaud (Thu, 25 Oct 2018 07:52:53 GMT):
For now, when I do a docker logs -f , I can see every transaction and all the data not crypted.

CorentinPacaud (Thu, 25 Oct 2018 07:54:09 GMT):
Is there a production log for Hyperledger fabric ?

edoardo_bdf (Thu, 25 Oct 2018 08:05:49 GMT):
Hey chat, some tips on how to run a multi host network? Is swarm the only way?

zaidmunir (Thu, 25 Oct 2018 08:49:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qSkZD8YBxMmRhxJ6k) @karthikmohan91 Thank you. It worked i had to run docker rmi command

zaidmunir (Thu, 25 Oct 2018 08:50:18 GMT):
and then load the images manually

GiovanniNapoli (Thu, 25 Oct 2018 09:03:26 GMT):
Hello everyone, does anybody have interesting material on how to develop and test System Chaincodes? Some example, tutorial...

GiovanniNapoli (Thu, 25 Oct 2018 09:03:29 GMT):
Thanks

DeepakMP (Thu, 25 Oct 2018 09:06:38 GMT):
I'm trying to create or load a marbles private collection example using or that uses the node sdk. I'm not finding any good repositories or examples. The fabric-sdk-node.github.io is not as helpful as fabric documentation. ANyone can help me find a working demo (i need api access thus node sdk and I need private collections working, thus marbles)- anything else similar would also help.

karthikmohan91 (Thu, 25 Oct 2018 09:34:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FNeKebBeNLi3rhduw) @GiovanniNapoli In Hyperledger docs you can find good brief about System chaincodes LSCC VSCC etc

Subhankar 3 (Thu, 25 Oct 2018 10:27:41 GMT):
HOW TO ENABLE PRIVATE DATA IN FABRIC v1.3.0 While executing docker exec cli.Org1 bash -c "peer chaincode instantiate -C org12 -n tranargy -v 1.0 -c '{\"Args\":[]}' -P \"OR('Org1MSP.member','Org2MSP.member')\" --collections-config /opt/gopath/src/tranargy/collections/collections_config.json" Getting following error: Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg as V1_2 or later capability is not enabled, private channel collections and data are not available

GiovanniNapoli (Thu, 25 Oct 2018 10:33:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qGgent8g3ubyA9J6z) @karthikmohan91 Thanks. In the doc there is no significant tutorial on how to develop a SysCC. I would like also to know if SysCC invoke requests work like any other CC request. I mean, if i make a request on a specific SysCC, to be approved the transaction follow the canonical flow scheme described in the doc?

GiovanniNapoli (Thu, 25 Oct 2018 10:33:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qGgent8g3ubyA9J6z) @karthikmohan91 Thanks. In the doc there is no significant tutorial on how to develop a SysCC. I would like also to know if SysCC invoke requests work like any other CC request. I mean, if i make a request on a specific SysCC, to be approved the transaction follows the canonical flow scheme described in the doc?

sheetal-hlf (Thu, 25 Oct 2018 11:24:39 GMT):
@dave.enyeart While experimenting with private-data feature, I kept following config values requiredPeerCount=0, maxPeerCount=0, policy: OR('Org1MSP.member') Endorsement policy - OR(Org2MSP.member) still the private data was saved with org1.peer; coz endorsing peer passes the data to authorized peer within the pushAckTimeout; also I tried this on local VM However should these non-recommended values of requiredPeerCount and maxPeerCount be allowed? Would it make sense to default those values to 1 or probably send out error while instantiating/upgrading the chaincode?

dave.enyeart (Thu, 25 Oct 2018 11:35:43 GMT):
@sheetal-hlf if you set the 'push' config values to 0, then that will force org1 to 'pull' the private data at commit time.

dave.enyeart (Thu, 25 Oct 2018 11:37:06 GMT):
it is a valid config

dave.enyeart (Thu, 25 Oct 2018 11:37:14 GMT):
but not one that i would recommend

dave.enyeart (Thu, 25 Oct 2018 11:37:42 GMT):
it is however helpful for testing pull

sheetal-hlf (Thu, 25 Oct 2018 11:39:14 GMT):
would it always reach the authorized peer's transient store?

dave.enyeart (Thu, 25 Oct 2018 11:39:41 GMT):
no, it never would

dave.enyeart (Thu, 25 Oct 2018 11:39:45 GMT):
in your scenario

sheetal-hlf (Thu, 25 Oct 2018 11:39:55 GMT):
if it does not then it would not be available at commit time, correct?

dave.enyeart (Thu, 25 Oct 2018 11:40:13 GMT):
committing peer can pull it from an endorsing peer's transient store

MohammadObaid (Thu, 25 Oct 2018 11:40:32 GMT):
@dave.enyeart what does this error mean `Error: failed to create deliver client: orderer client failed to connect to node_orderer1st:7050: failed to create new connection: context deadline exceeded` . I have create swarm network between multiple nodes . All my peers successfully join channel except this one where I am receiving above error

sheetal-hlf (Thu, 25 Oct 2018 11:42:21 GMT):
ohk, so irrespective of whether the endorsing peer is authorized or not it will store it in transient store

dave.enyeart (Thu, 25 Oct 2018 11:42:38 GMT):
yes

dave.enyeart (Thu, 25 Oct 2018 11:44:16 GMT):
if the client sends the private data to endorsing peer, the endorsing peer already has seen the private data, that cannot be 'undone'. the new option we discussed in jira would control whether the peer should proceed with the endorsement or not though

dave.enyeart (Thu, 25 Oct 2018 11:44:16 GMT):
if the client sends the private data to endorsing peer, the endorsing peer already has seen the private data, that cannot be 'undone'. the new option we discussed in jira would control whether the peer should proceed with the endorsement or not though (and also whether the private data results would be held in local transient store)

sheetal-hlf (Thu, 25 Oct 2018 11:45:16 GMT):
correct :)

DeepakMP (Thu, 25 Oct 2018 11:45:26 GMT):
```` ```

DeepakMP (Thu, 25 Oct 2018 11:45:31 GMT):
``[2018-10-25 17:14:25.175] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-10-25 17:14:25.175] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-10-25 17:14:25.175] [DEBUG] instantiate-chaincode - Failed to send Proposal and receive all good ProposalResponse [2018-10-25 17:14:25.175] [ERROR] instantiate-chaincode - Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:98965) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode (/Users/deepak/Desktop/Project/blockchain/attempt6/fabric-samples/balance-transfer/app/instantiate-chaincode.js:200:9)``

DeepakMP (Thu, 25 Oct 2018 11:45:36 GMT):
``

DeepakMP (Thu, 25 Oct 2018 11:45:41 GMT):
```` ```

DeepakMP (Thu, 25 Oct 2018 11:45:47 GMT):
anybody understands this?

DeepakMP (Thu, 25 Oct 2018 11:46:12 GMT):
I'm sending marbles chaincode to be instantiated, but I'm not able to.

Jayakrishna.V (Thu, 25 Oct 2018 11:46:31 GMT):
Hi All, I am trying to visualize the hardware requirements for setting up a Blockchain network with Fabric. In the sample applications/tutorials, all the Peers, CA, Ordering Node will be available on the same development machine. How is it going to be in production environment. Do we need a separate server for each peer, CA and Ordering Node?

DeepakMP (Thu, 25 Oct 2018 11:47:23 GMT):
I've replaced the chaincode in balance-transfer example with that of marbles from first-network. Haven't changed anything else, including the name of the chaincode file- it remains as example_cc.go.

DeepakMP (Thu, 25 Oct 2018 11:47:31 GMT):
Why am I not able to instantiate?

DeepakMP (Thu, 25 Oct 2018 11:47:43 GMT):
Can anyone help me?

dave.enyeart (Thu, 25 Oct 2018 11:48:46 GMT):
i suggest post sdk specific questions to #fabric-sdk-node where those experts hang out

Jayakrishna.V (Thu, 25 Oct 2018 11:50:03 GMT):
Hi @dave.enyeart what kind of questions can we ask here?

dave.enyeart (Thu, 25 Oct 2018 11:51:03 GMT):
anything, but if it is a sdk specific question you'll have better luck in a sdk channel

dave.enyeart (Thu, 25 Oct 2018 11:51:03 GMT):
anything, but if it is a sdk specific question like DeepakMP's you'll have better luck in a sdk channel

dave.enyeart (Thu, 25 Oct 2018 11:51:03 GMT):
anything, but if it is a sdk specific question like DeepakMP's you'll have better luck in the corresponding sdk channel

Ammu (Thu, 25 Oct 2018 11:51:20 GMT):
docker -version bash: /usr/bin/docker: No such file or directory how to resolve this issue?

avagarwal (Thu, 25 Oct 2018 11:51:44 GMT):
In my chaincode api the event hub registerTxEvent is throwing the following error - ::Error: TCP Write failed. What does this indicate?

MohammadObaid (Thu, 25 Oct 2018 11:52:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xe7vSmww7SvJxRD3S) Can anyone help me with this issue ? I am able to ping orderer container with ip address and service name but getting this error in peer join command

dave.enyeart (Thu, 25 Oct 2018 11:55:36 GMT):
It means peer can't connect to orderer. If you have basic connectivity, potentially it is due to TLS

Jayakrishna.V (Thu, 25 Oct 2018 11:57:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BwxWFoijqxPR4stes) @avagarwal You need to install docker. Please follow the instructions available on Hyperledger Fabric documentation

Jayakrishna.V (Thu, 25 Oct 2018 11:58:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WQ9AuDgcYLfHack7B) @Ammu You need to install docker. Please follow the instructions available on Hyperledger Fabric documentation

MohammadObaid (Thu, 25 Oct 2018 11:59:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=efeKtjaQPty2BzbZA) @dave.enyeart I am not using tls. IS there any other way I can debug this ?

MohammadObaid (Thu, 25 Oct 2018 11:59:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=efeKtjaQPty2BzbZA) @dave.enyeart IS there any other way I can debug this ?

avagarwal (Thu, 25 Oct 2018 11:59:16 GMT):
@Jayakrishna.V I have installed docker, and can query data. When I submit a transaction, this message is displayed - though the transaction is recorded!

karthikmohan91 (Thu, 25 Oct 2018 12:03:06 GMT):
@GiovanniNapoli Theoretically transaction flow should follow the scheme mentioned in the docs . You can check with the guys at continous integration channel

karthikmohan91 (Thu, 25 Oct 2018 12:04:31 GMT):
@GiovanniNapoli They may have some answers fabric ci channel .. check with them and let me know if you got anything useful.

ShashankMotepalli (Thu, 25 Oct 2018 12:12:20 GMT):
On successful proposal, I got : Error: 8 RESOURCE_EXHAUSTED: Sent message larger than max (4148 vs. 15)

ShashankMotepalli (Thu, 25 Oct 2018 12:12:34 GMT):
I am using Node SDK

Ammu (Thu, 25 Oct 2018 12:23:27 GMT):
@Jayakrishna.V thanks

ShashankMotepalli (Thu, 25 Oct 2018 12:26:27 GMT):
Solved it, I had to define in networkConfig.yaml file: grpcOptions: grpc-max-send-message-length: -1

tanmoytkd (Thu, 25 Oct 2018 12:30:35 GMT):
As the orderers create the blocks, can they see all the transactions? even if they are not part of the consortium?

jonlee300 (Thu, 25 Oct 2018 12:36:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nuapf6wpRNZrnQEZ8) I still failed to connect 4 peers between 2 machine. When I added extra_hosts in the docker-composer file, interestingly that they return error of TLS handshake failed between anchor peers peer0. Peer1 as usual, cannot find one another. 2018-10-25 12:31:21.295 UTC [core/comm] ServerHandshake -> ERRO 093 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.7:53524"} 2018-10-25 12:35:33.672 UTC [core/comm] ServerHandshake -> ERRO 231 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.4:56222"}

jonlee300 (Thu, 25 Oct 2018 12:36:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nuapf6wpRNZrnQEZ8) I still failed to connect 4 peers between 2 machine. When I added extra_hosts in the docker-composer file, interestingly that they return error of TLS handshake failed between anchor peers peer0. Peer1 as usual, cannot find one another. machine1, peer0: 2018-10-25 12:31:21.295 UTC [core/comm] ServerHandshake -> ERRO 093 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.7:53524"} machine 2, peer0: 2018-10-25 12:35:33.672 UTC [core/comm] ServerHandshake -> ERRO 231 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.4:56222"}

jonlee300 (Thu, 25 Oct 2018 12:36:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nuapf6wpRNZrnQEZ8) I still failed to connect 4 peers between 2 machines. When I added extra_hosts in the docker-composer file, interestingly that they return error of TLS handshake failed between anchor peers peer0. Peer1 as usual, cannot find one another. machine1, peer0: 2018-10-25 12:31:21.295 UTC [core/comm] ServerHandshake -> ERRO 093 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.7:53524"} machine 2, peer0: 2018-10-25 12:35:33.672 UTC [core/comm] ServerHandshake -> ERRO 231 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.148.0.4:56222"}

avagarwal (Thu, 25 Oct 2018 12:36:59 GMT):
Any help with "In my chaincode api the event hub registerTxEvent is throwing the following error - ::Error: TCP Write failed. What does this indicate?" using node sdk

moficodes (Thu, 25 Oct 2018 12:47:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JMFZWebPEuyx88Cpk) @PrashantS @PrashantS Thanks for the reply. So to be able to run it can i change the package.json to use a different fabric client?

MuhammedHafil (Thu, 25 Oct 2018 13:07:58 GMT):
what is the reason behind this error ``` Error: failed to create deliver client: orderer client failed to connect to orderer0.example.com:7050: failed to create new connection: context deadline exceeded ```

MuhammedHafil (Thu, 25 Oct 2018 13:07:58 GMT):
what is the reason behind this error ``` Error: failed to create deliver client: orderer client failed to connect to orderer0.example.com:7050: failed to create new connection: context deadline exceeded ```

akshay.sood (Thu, 25 Oct 2018 13:08:50 GMT):
see the logs of orderer

akshay.sood (Thu, 25 Oct 2018 13:08:50 GMT):
Can you paste the logs of orderer?

akshay.sood (Thu, 25 Oct 2018 13:08:50 GMT):
@MuhammedHafil Can you paste the logs of orderer?

MuhammedHafil (Thu, 25 Oct 2018 13:46:17 GMT):
``` 2018-10-25 13:02:39.040 UTC [localconfig] completeInitialization -> INFO 001 Kafka.Version unset, settingto 0.10.2.0 2018-10-25 13:02:39.330 UTC [orderer/common/server] prettyPrintStruct -> INFO 002 Orderer config values: General.LedgerType = "file" General.ListenAddress = "0.0.0.0" General.ListenPort = 7050 General.TLS.Enabled = true General.TLS.PrivateKey = "/var/hyperledger/orderer/tls/server.key" General.TLS.Certificate = "/var/hyperledger/orderer/tls/server.crt" General.TLS.RootCAs = [/var/hyperledger/orderer/tls/ca.crt] General.TLS.ClientAuthRequired = false General.TLS.ClientRootCAs = [] General.Keepalive.ServerMinInterval = 1m0s General.Keepalive.ServerInterval = 2h0m0s General.Keepalive.ServerTimeout = 20s General.GenesisMethod = "file" General.GenesisProfile = "SampleInsecureSolo" General.SystemChannel = "test-system-channel-name" General.GenesisFile = "/var/hyperledger/orderer/orderer.genesis.block" General.Profile.Enabled = false General.Profile.Address = "0.0.0.0:6060" General.LogLevel = "INFO" General.LogFormat = "%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}" General.LocalMSPDir = "/var/hyperledger/orderer/msp" General.LocalMSPID = "OrdererMSP" General.BCCSP.ProviderName = "SW" General.BCCSP.SwOpts.SecLevel = 256 General.BCCSP.SwOpts.HashFamily = "SHA2" General.BCCSP.SwOpts.Ephemeral = false General.BCCSP.SwOpts.FileKeystore.KeyStorePath = "/var/hyperledger/orderer/msp/keystore" General.BCCSP.SwOpts.DummyKeystore = General.BCCSP.PluginOpts = General.Authentication.TimeWindow = 15m0s FileLedger.Location = "/var/hyperledger/production/orderer" FileLedger.Prefix = "hyperledger-fabric-ordererledger" RAMLedger.HistorySize = 1000 Kafka.Retry.ShortInterval = 5s Kafka.Retry.ShortTotal = 10m0s Kafka.Retry.LongInterval = 5m0s Kafka.Retry.LongTotal = 12h0m0s Kafka.Retry.NetworkTimeouts.DialTimeout = 10s Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s Kafka.Retry.NetworkTimeouts.WriteTimeout = 10s Kafka.Retry.Metadata.RetryMax = 3 Kafka.Retry.Metadata.RetryBackoff = 250ms Kafka.Retry.Producer.RetryMax = 3 Kafka.Retry.Producer.RetryBackoff = 100ms Kafka.Retry.Consumer.RetryBackoff = 2s Kafka.Verbose = false Kafka.Version = 0.10.2.0 Kafka.TLS.Enabled = false Kafka.TLS.PrivateKey = "" Kafka.TLS.Certificate = "" Kafka.TLS.RootCAs = [] Kafka.TLS.ClientAuthRequired = false Kafka.TLS.ClientRootCAs = [] Debug.BroadcastTraceDir = "" Debug.DeliverTraceDir = "" 2018-10-25 13:02:39.330 UTC [orderer/common/server] initializeServerConfig -> INFO 003 Starting orderer with TLS enabled 2018-10-25 13:02:40.110 UTC [orderer/common/server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains 2018-10-25 13:02:40.484 UTC [orderer/commmon/multichannel] NewRegistrar -> INFO 005 Starting system channel 'testchainid' with genesis block hash ed1a94565aa5d7935ab40969cd27c543673afc4d25cc6e7129668aaa7a0208f6 and orderer type solo 2018-10-25 13:02:40.484 UTC [orderer/common/server] Start -> INFO 006 Starting orderer: Version: 1.2.0 Commit SHA: cae2ad4 Go version: go1.10 OS/Arch: linux/amd64 Experimental features: false 2018-10-25 13:02:40.484 UTC [orderer/common/server] Start -> INFO 007 Beginning to serve requests ```

MuhammedHafil (Thu, 25 Oct 2018 13:48:26 GMT):
@akshay.sood : could not find anything on it

akshay.sood (Thu, 25 Oct 2018 13:50:43 GMT):
@MuhammedHafil Is your orderer running?

akshay.sood (Thu, 25 Oct 2018 13:50:53 GMT):
Please exec `docker ps -a`

akshay.sood (Thu, 25 Oct 2018 13:51:06 GMT):
and see there if your orderer is running or not

MuhammedHafil (Thu, 25 Oct 2018 13:51:30 GMT):
its up

akshay.sood (Thu, 25 Oct 2018 13:53:39 GMT):
what command are you trying to execute?

MuhammedHafil (Thu, 25 Oct 2018 13:53:53 GMT):
create channel

akshay.sood (Thu, 25 Oct 2018 13:54:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Hd4ECNfZ94866QHd) The message says your node is not able to communicate with your orderer

akshay.sood (Thu, 25 Oct 2018 13:54:25 GMT):
It is not able to establish a connection with orderer

dave.enyeart (Thu, 25 Oct 2018 13:55:20 GMT):
@Subhankar 3 you need to recreate your channel with this config set: https://github.com/hyperledger/fabric-samples/blob/release-1.3/first-network/configtx.yaml#L153-L160

AndreiLovin (Thu, 25 Oct 2018 14:31:02 GMT):
Hello, is there any good nodejs rest library that I could install over my multi-host fabric network. I've been through all the available samples you can find online but they aren't really made to be expandable. The best thing I could find is this https://github.com/olegabu/fabric-starter-rest. But even with that solution I hit a brick wall where no one in the community can help... (My network work great I just need a good starting point for the NodeJS app)

gentios (Thu, 25 Oct 2018 14:49:54 GMT):
In the fabric-samples in balance-transfer example there is a *Org1.yaml *and *Org2.yaml * file specifying the *credentialStore* and *cryptoStore*. My question is how to know for which Identity which keys (priv, public) belongs to ?

dlarukov (Thu, 25 Oct 2018 14:57:53 GMT):
Hello everyone. I have joined to channel with output: "executeJoin -> INFO 006 Successfully submitted proposal to join channel". But I can't figure out is I joined or not. How can I check this? When I am calling "peer channel list" - output is “mychannel”

ZOHAIBSohail (Thu, 25 Oct 2018 14:59:49 GMT):
Has joined the channel.

ZOHAIBSohail (Thu, 25 Oct 2018 15:00:05 GMT):
Best way to start writing your first hyper-ledger app from scratch? with customize endorsing policy?

ZOHAIBSohail (Thu, 25 Oct 2018 15:00:19 GMT):
how can msp issue certificates to a remote user? Like, a remote user is accessing our hyper-ledger app from web interface, how the system is going to recognize it as a certified user or not?

GiovanniNapoli (Thu, 25 Oct 2018 15:05:16 GMT):
Hi, i have a question on system chaincodes behaviours. Is a system chaincode output endorsed like any other classic chaincode?

GiovanniNapoli (Thu, 25 Oct 2018 15:05:16 GMT):
Hi, i have a question on system chaincodes behaviour. Is a system chaincode output endorsed like any other classic chaincode?

akshay.sood (Thu, 25 Oct 2018 16:17:30 GMT):
Hi Experts

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Hi Experts! Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key `CORE_PEER_TLS_CERT_FILE` is tls certificate for that server Please correct if I am wrong

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Hi Experts! Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key `CORE_PEER_TLS_CERT_FILE` is tls certificate for that server Please correct if I am wrong

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Hi Experts! Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. For example: As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key `CORE_PEER_TLS_CERT_FILE` is tls certificate for that server Please correct if I am wrong

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Hi Experts! Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. For example: If we want to install chaincode on a different peer and peer of different org, we need to change these variables to their respectively identities ```export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt``` As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key `CORE_PEER_TLS_CERT_FILE` is tls certificate for that server Please correct if I am wrong

akshay.sood (Thu, 25 Oct 2018 16:20:27 GMT):
Hi Experts! Why don't we override `CORE_PEER_TLS_CERT_FILE` and `CORE_PEER_TLS_KEY_FILE` when we want to join channel, install chaincode or update channel config for different peer but we override `CORE_PEER_TLS_ROOTCERT_FILE` parameter. For example: If we want to install chaincode on a different peer and peer of different org, we need to change these variables to their respectively identities ```export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt``` As per my understanding, `CORE_PEER_TLS_ROOTCERT_FILE` is root ca certificate `CORE_PEER_TLS_KEY_FILE` is private key of that server for example peer0 `CORE_PEER_TLS_CERT_FILE` is tls certificate for that server Please correct if I am wrong

krisava (Thu, 25 Oct 2018 16:22:39 GMT):
Hi, Have a question Example: If there is a transaction that the response was generated based on non-deterministic code, the client would receive different responses from the endorsing peers, assuming they all are valid transactions. 1. As these are valid transactions, the client sends to the orderer to process 2. and then orderer broadcast to the committing peers, 3. and in this stage the committing peers validates rw-set, doesn't match and it will be flagged as invalid transactions. My question here is, in order to take full advantage of HLF's "Endorse-Order-Validate" as opposed to other blockchain's "Order-Execute", the client needs to explicitly validate the transaction responses that came from endorsing peers, whether they are all same and then send to orderer? If not stop after the endorse step?

dave.enyeart (Thu, 25 Oct 2018 16:26:50 GMT):
a well behaved client should check that responses match before submitting to orderer. but if client doesn't do this step, peers will catch it and invalidate the transaction. of course, it is better to catch earlier on client side to avoid the unnecessary work and noise of submitted but invalidated transactions

krisava (Thu, 25 Oct 2018 16:27:56 GMT):
@dave.enyeart Thanks!

jonlee300 (Thu, 25 Oct 2018 16:50:01 GMT):
May I know where can I find all the definitions of YAML environment variable? like "CORE_PEER_COMMITTER_LEDGER_ORDERER" or "CORE_PEER_PROFILE_ENABLED" or other variable not used in first-network please?

MuhammedHafil (Thu, 25 Oct 2018 17:27:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Hd4ECNfZ94866QHd) is it due to timeout? i have tried with adding `-t 90s` also, still same result

akshay.sood (Thu, 25 Oct 2018 17:28:53 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=87QLHzLnenCNubgLJ

mastersingh24 (Thu, 25 Oct 2018 17:34:07 GMT):
I assume you meant "why do we override" ... The peer CLI needs to know it's identity for signing transactions (MSP info) and also needs to know which TLS certificates it can trust. Normally you would not use the same CLI to configure peers and orderers for multiple organizations (and in that case you would could just statically set them in core.yaml); in this case, you are trying to act like a admin/member of multiple organizations so you need to have the proper settings for each org when you run the commands

MuhammedHafil (Thu, 25 Oct 2018 18:35:46 GMT):
what is this error? ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

greg2git (Thu, 25 Oct 2018 20:51:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bh9xn2afC8b37QfXQ) @aarshleadiq duh, thx for the reminder :thumbsup:

akshay.sood (Thu, 25 Oct 2018 20:53:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7TSMnyFtMuq3FAKhg) @mastersingh24 I am not asking why do we override. I am asking when we switch the peer in cli (assume I need to install chaincode on every peer of my organisation and for that I need to switch peer by overriding the variables. We override variables according to documentation i.e CORE_PEER_ADDRESS, CORE_PEER_TLS_ROOTCERT_FILE,CORE_PEER_LOCALMSPID,CORE_PEER_MSPCONFIGPATH) why` CORE_PEER_TLS_CERT_FILE` & `CORE_PEER_TLS_KEY_FILE` of any peer works for every peer? As per documentation on URL: https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html `If you do not want to run the CLI commands against the default peer peer0.org1.example.com, replace the values of peer0 or org1 in the four environment variables and run the commands:` ```# Environment variables for PEER0 export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt```

akshay.sood (Thu, 25 Oct 2018 20:53:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7TSMnyFtMuq3FAKhg) @mastersingh24 I am not asking why do we override. I am asking when we switch the peer in cli (assume I need to install chaincode on every peer of my organisation and for that I need to switch peer by overriding the variables. We override variables according to documentation i.e CORE_PEER_ADDRESS, CORE_PEER_TLS_ROOTCERT_FILE,CORE_PEER_LOCALMSPID,CORE_PEER_MSPCONFIGPATH) why` CORE_PEER_TLS_CERT_FILE` & `CORE_PEER_TLS_KEY_FILE` of any peer works for every peer? As per documentation on URL: https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html `If you do not want to run the CLI commands against the default peer peer0.org1.example.com, replace the values of peer0 or org1 in the four environment variables and run the commands:` ```# Environment variables for PEER0 export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt``` but why not override `CORE_PEER_TLS_CERT_FILE` & `CORE_PEER_TLS_KEY_FILE`

mastersingh24 (Thu, 25 Oct 2018 21:13:08 GMT):
Because this is a client .... those are use when the peer runs as the actual peer not as CLI

mastersingh24 (Thu, 25 Oct 2018 21:13:08 GMT):
Because this is a client .... those are used when the peer runs as the actual peer not as CLI

akshay.sood (Thu, 25 Oct 2018 21:18:53 GMT):
oh

akshay.sood (Thu, 25 Oct 2018 21:18:56 GMT):
Got it

akshay.sood (Thu, 25 Oct 2018 21:18:59 GMT):
Thanks :)

billchen (Thu, 25 Oct 2018 21:25:03 GMT):
Hey everyone, quick question on chaincode verification. Suppose I have network where all peers run a specific copy of chaincode and a channel is created between a subset of these peers. What is stopping the peers on this channel from instantiating and running chaincode that is not what the rest of the network runs?

billchen (Thu, 25 Oct 2018 21:27:04 GMT):
Although the blocks on this chain will not be added to the system channel, will these peers still be able to communicate within their own channel and use an alternate copy of the chaincode?

yacovm (Thu, 25 Oct 2018 21:28:24 GMT):
@billchen nothing prevents a malicious peer to do whatever it wants

yacovm (Thu, 25 Oct 2018 21:28:37 GMT):
if you worry from malicious peers you need to have a strong endorsement policy

yacovm (Thu, 25 Oct 2018 21:29:16 GMT):
now, if the peer is honest - it will look at the hash of the chaincode in the ledger and compare it to the hash of the chaincode installed on it

yacovm (Thu, 25 Oct 2018 21:29:27 GMT):
if the hashes differ - the peer understand his chaincode is not the one that the channel has

yacovm (Thu, 25 Oct 2018 21:29:30 GMT):
and will refuse to endorse

PrashantS (Fri, 26 Oct 2018 03:10:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Df9ruqAxmDN8oMNcB) @moficodes I made use of the 1.3 branch and it works for me

sheetal-hlf (Fri, 26 Oct 2018 03:35:05 GMT):
@dave.enyeart could you please confirm - With the use of service discovery, the transaction involving private data would always end up at a authorised peers

dave.enyeart (Fri, 26 Oct 2018 03:41:30 GMT):
yes, when you pass collection name to service discovery it will return only peers authorized for that collection

sheetal-hlf (Fri, 26 Oct 2018 03:44:14 GMT):
great, this would solve the problem of client sending request to non-authorized peers

sheetal-hlf (Fri, 26 Oct 2018 03:44:25 GMT):
the connection profile has information about all the peers, CA, orderers in the network. With use of service discovery, does the information in connection profile reduce? In yesterday's playback session I understood that the peer information can be reduced to single peer and the service discovery will take care of finding other peers in the channel; does that hold true for CAs and orderers as well?

dave.enyeart (Fri, 26 Oct 2018 03:48:13 GMT):
I believe that holds true for peer and orderer, but not CA... let's double check with the experts @yacovm @bretharrison

sheetal-hlf (Fri, 26 Oct 2018 04:15:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zPzQ5dLdRRyJKa82D) Also, this change would be in only "channels" section of connection profile or even in the other sections - organizations, peers, certificateAuthorities?

moficodes (Fri, 26 Oct 2018 04:22:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TD6Brdck8Q3mXRArx) @PrashantS I think I was using the master branch. Let me try it out. Thanks dude.

yacovm (Fri, 26 Oct 2018 05:07:54 GMT):
There is no information for CAs... Only for orderers @sheetal-hlf

sheetal-hlf (Fri, 26 Oct 2018 05:40:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a38c8179-c0f0-4a75-a313-5ea97a94e0cc) @yacovm Do you mean the service discovery handles information for peers and orderers?

yacovm (Fri, 26 Oct 2018 05:47:47 GMT):
yes @sheetal-hlf

yacovm (Fri, 26 Oct 2018 05:47:54 GMT):
it doesn't know about the endpoints of CAs

yacovm (Fri, 26 Oct 2018 05:48:13 GMT):
only orderers

sheetal-hlf (Fri, 26 Oct 2018 06:05:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ARbqWer2dLEhGSWgW) @yacovm could you please also reply to this?

yacovm (Fri, 26 Oct 2018 07:17:35 GMT):
I don't know node SDK @sheetal-hlf

ThangaMariappan (Fri, 26 Oct 2018 07:45:02 GMT):
what is the meaning and technical example of Write Ahead Logging(WAL)?Can anyone explain?

sheetal-hlf (Fri, 26 Oct 2018 10:47:28 GMT):
for private data in v1.2, I tried adding new org to collection-policy to existing channel having private data. The peers from new org did not receive the old data. Would this work on v1.3?

halilkalkan (Fri, 26 Oct 2018 10:47:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F3bBtppLS7kfzJuZ5) Hi, anyone has any information about this kind of case? :)

dave.enyeart (Fri, 26 Oct 2018 10:56:35 GMT):
@sheetal-hlf that is a feature we call 'reconciliation' of private data, it is being delivered in v1.4

dave.enyeart (Fri, 26 Oct 2018 10:58:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A9XquTJaMGWg4sMyL) @halilkalkan @adc what are your thoughts?

sheetal-hlf (Fri, 26 Oct 2018 11:06:35 GMT):
thank you dave, you have been very helpful..

purushothamkdr453 (Fri, 26 Oct 2018 12:08:49 GMT):
Has joined the channel.

purushothamkdr453 (Fri, 26 Oct 2018 12:08:56 GMT):
Hi I am getting this error - The required parameter 'channelID' is empty. Rerun the command with while running the command peer chaincode upgrade -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -v 2.0 -c '{"Args":["init","a","90","b","210"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')" Please help me here

BikashPal (Fri, 26 Oct 2018 12:12:21 GMT):
queryMarblesWithPagination function strange pagination result

BikashPal (Fri, 26 Oct 2018 12:12:21 GMT):
queryMarblesWithPagination function strange pagination result. When start key is 1 and end key is 2.It includes all result with 1 like 11,112,12 etc

dave.enyeart (Fri, 26 Oct 2018 12:13:32 GMT):
that's lexicographical order, i.e. strings

BikashPal (Fri, 26 Oct 2018 12:14:08 GMT):
Then how we should do pagination

dave.enyeart (Fri, 26 Oct 2018 12:14:43 GMT):
keys are strings, not integers

BikashPal (Fri, 26 Oct 2018 12:15:06 GMT):
Yes. I understand your concern. Is there a way to paginate then

dave.enyeart (Fri, 26 Oct 2018 12:15:17 GMT):
you can zero pad if you want numeric order

BikashPal (Fri, 26 Oct 2018 12:16:09 GMT):
How we can achieve that. Please help

dave.enyeart (Fri, 26 Oct 2018 12:16:18 GMT):
or move to couchdb and use json queries on an integer field

dave.enyeart (Fri, 26 Oct 2018 12:16:18 GMT):
or move to couchdb and use json queries sorted on an integer field

BikashPal (Fri, 26 Oct 2018 12:16:43 GMT):
Yes it is already on couchdb

BikashPal (Fri, 26 Oct 2018 12:16:55 GMT):
my keys are marble1, marble2 etc

dave.enyeart (Fri, 26 Oct 2018 12:17:42 GMT):
you can zero pad as marble000000001, marble000000002, etc if you want numeric sorting of keys

BikashPal (Fri, 26 Oct 2018 12:22:11 GMT):
Yes understood

bretharrison (Fri, 26 Oct 2018 12:29:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zPzQ5dLdRRyJKa82D) @sheetal-hlf When using NodeSDK with fabric discovery service the CA's will need to be defined. The discovery query results do not include information about CA's. The orderers will not have to be defined and only one peer, preferably a peer in one's own organization, will need to be defined and assigned to a channel.

purushothamkdr453 (Fri, 26 Oct 2018 12:45:50 GMT):
Hi

purushothamkdr453 (Fri, 26 Oct 2018 12:45:58 GMT):
Can any one help me on the below issue

purushothamkdr453 (Fri, 26 Oct 2018 12:45:59 GMT):
I am getting this error - The required parameter 'channelID' is empty. Rerun the command with while running the command peer chaincode upgrade -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -v 2.0 -c '{"Args":["init","a","90","b","210"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')" Please help me here

edoardo_bdf (Fri, 26 Oct 2018 12:59:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nkYSJ5ptGs7TCm5zB) @purushothamkdr453 is $CHANNEL_NAME defined?

purushothamkdr453 (Fri, 26 Oct 2018 13:09:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eehpCrc7S3AmEdePp) @edoardo_bdf Yes $CHANNEL_NAME is defined

MuhammedHafil (Fri, 26 Oct 2018 13:09:33 GMT):
In Build your first network tutorial the the steps after instantiating chaincode is not mandatory for network setup right? I means,The steps query and invoke are needed to done during network deployment? It can be done later when ever we want, right?

MuhammedHafil (Fri, 26 Oct 2018 13:09:33 GMT):
In Build your first network tutorial the the steps after instantiating chaincode is not mandatory for bringing up a network right? I means,The steps query and invoke are needed to done during network deployment? It can be done later when ever we want, right?

purushothamkdr453 (Fri, 26 Oct 2018 13:13:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XyvZiwxb65xYfJe6d) It worked now, not sure about the cause, I have exited the cli container, reset the env variables, re ran the command it worked Thanks

tanmoytkd (Fri, 26 Oct 2018 13:16:30 GMT):
Can a consortium have more than one channel and vice versa

tanmoytkd (Fri, 26 Oct 2018 13:16:30 GMT):
Can a consortium have more than one channel and vice versa?

edoardo_bdf (Fri, 26 Oct 2018 13:17:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ignFqjXQfBAP3pWwb) @purushothamkdr453 It's always some kind of env var shanenigan

purushothamkdr453 (Fri, 26 Oct 2018 13:27:48 GMT):
I am novice to hyperledger fabric, can any one explain me the difference betweek orderer genesis block and the channel block?

dlarukov (Fri, 26 Oct 2018 13:55:23 GMT):
`Hello!` Does anyone have automatized script for adding new organizations?

Nihcep (Fri, 26 Oct 2018 14:23:31 GMT):
Hi everyone, I just develop a python script in order to automate network creation, have a look here : https://medium.com/@pechin.leo/hyperledger-fabric-automatic-deployement-770f0c785031 or directly on github : https://github.com/Nihcep/Hyperledger-Fabric-Automate-Installer (Readme in progress)

Nihcep (Fri, 26 Oct 2018 14:23:49 GMT):
Let me know your feels/issues

Nihcep (Fri, 26 Oct 2018 14:29:27 GMT):
@dlarukov It is funny you ask for that ! I'm putting mine online ~next week

Jay10 (Fri, 26 Oct 2018 14:41:32 GMT):
How can we increase the length of color attribute length? I am getting error Argument 1 must be <= 32 characters

lightcap (Fri, 26 Oct 2018 18:05:41 GMT):
Has joined the channel.

jeka_gompa (Fri, 26 Oct 2018 23:07:50 GMT):
Has joined the channel.

rnau (Sat, 27 Oct 2018 09:23:14 GMT):
Has joined the channel.

jonlee300 (Sat, 27 Oct 2018 17:22:19 GMT):
Hi there, I deployed a network in 2 machines. machine 1: orderrer, 2 peers of org1 docker_compose_base.yaml: peer0.org1: ports: - 7051:7051 peer1.org1: ports: - 8051:7051 machine 2: 2 peers of org2 docker_compose_base.yaml: peer0.org2: ports: - 9051:7051 extra_host: - orderer.example.com:10.148.0.7 peer1.org2: ports: - 10051:7051 extra_host: - orderer.example.com:10.148.0.7 The network runs properly with every transactions gone through and block populates with all the nodes. However, I get this warning message from all 4 peers. *2018-10-22 11:53:41.891 UTC [gossip/discovery] func1 -> WARN 132 Could not connect to {peer0.org2.example.com:7051 [] [] peer0.org2.example.com:7051 } : context deadline exceeded 2018-10-22 11:54:09.893 UTC [gossip/gossip] func1 -> WARN 133 Deep probe of peer0.org2.example.com:7051 failed: context deadline exceeded *github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:247 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:159 Effectively, the message warns that all peers cannot connect to others using gossip protocol. I wonder why blocks can go through but they cannot identify one another in the gossip protocol. Is there any way that I can fix this please? What I can identify is that when I deployed everything in one yaml file in one machine, gossip protocol works with occasionally dead members but no "context deadline exceeded". Even I deployed 2 orgs by 2 different docker yaml file, the 2 orgs still cannot communicate. Is there any thing that I can set in config to resolve? Or is there any way to disable the gossip protocol? Thank you in advance, experts.

abhishekbalam (Sun, 28 Oct 2018 06:16:38 GMT):
Hello friends, I had a doubt abt fabric . Can you search through the ledger, including inside chaincode? Also, is it a bad idea to do that?

abhishekbalam (Sun, 28 Oct 2018 06:17:21 GMT):
I plan to search for chaincodes from a specific peer for example.

GiovanniNapoli (Sun, 28 Oct 2018 08:37:34 GMT):
Hello everyone, i'm trying to implement a simple SysCC. When i call the related command from the cli i get this message: `Error: bad proposal response 500: failed to execute transaction eac62e1cf300646b37dcb11e1714f61c266b17c210b98032e17caac13996bfe1: [channel ] failed to get chaincode container info for rscc:1.3.1: could not retrieve QueryExecutor for channel : Could not retrieve ledger for channel` Any suggestion? Thx

GiovanniNapoli (Sun, 28 Oct 2018 09:27:30 GMT):
I solved it. I forgot to enable the SysCC in `core.yaml` file

PCP 1 (Sun, 28 Oct 2018 10:38:59 GMT):
Has joined the channel.

hypere (Sun, 28 Oct 2018 18:38:09 GMT):
I am currently building a fabric project within the fabric-samples folder. When i try to enroll a user, it only seems to work when affiliation is set to 'org1.department1'. Does this mean that I need to create a CA myself and is there a tut for it? i have no idea where to start or to put the new config file

ArpitKhurana1 (Mon, 29 Oct 2018 04:49:31 GMT):
Has joined the channel.

Sreesha (Mon, 29 Oct 2018 06:00:58 GMT):
Hello everyone.Can anyone help me in understanding the concept of packaging a chaincode.When i did the packaging, iam getting a .out file in non-readable format.So, does this mean that the chaincode is encrypted or something?

DeepakMP (Mon, 29 Oct 2018 06:58:25 GMT):
I needed a set of API based interactions to interact with private collections in my Fabric app. I couldn't get my sdk to work to take advantage of their inbuilt apis, so I simply built my desired config fabric network with private collection, and built a simple express.js server that takes api calls and calls docker exec shell commands to interact with underlying fabric and couchdb. What are your thoughts on this approach? Is this stable, reliable, and scalable- if so till what level? Second, any examples of a better approach?

IngoRammer (Mon, 29 Oct 2018 07:48:32 GMT):
Has joined the channel.

purandam (Mon, 29 Oct 2018 10:40:58 GMT):
Is there any possibility to instantiate the chain code without internet?

coderx (Mon, 29 Oct 2018 10:43:16 GMT):
Has joined the channel.

mko (Mon, 29 Oct 2018 11:22:07 GMT):
Has joined the channel.

prashantsingh (Mon, 29 Oct 2018 12:16:43 GMT):
I get that peer can take two different types of role: endorser or committer, where as an endorser the peer endorses a transaction by simulating it (first step of the transaction proposal) and other mandatory things happens to validate the transaction and ultimately the block of transaction is transmitted which gets added to the ledger of each peer. But, in this process, where does the committing peer comes into picture and what responsibility does it have in the transaction? Because, from the doc what I could infer is that peers are responsible for and supposed to update their own local ledgers.. It would be really helpful if someone can clarify this for me or provide information/insight I'm missing here. Thanks!

purushothamkdr453 (Mon, 29 Oct 2018 12:54:51 GMT):
Hi All, I am novice to hyperledger, Can any one tell me where does the chaincode gets stored in the peer, I can see in the location /var/hyperledger/production/chaincode however I can only see the chaincode name here not the code(program written in nodejs or java)?

MuhammedHafil (Mon, 29 Oct 2018 13:35:29 GMT):
How can we assign auto increment id while writing data in fabric? using go and couchdb

dave.enyeart (Mon, 29 Oct 2018 13:46:14 GMT):
@MuhammedHafil you'll need to use a uuid or logical key... incremented ids don't work effectively in distributed systems

dave.enyeart (Mon, 29 Oct 2018 13:46:14 GMT):
@MuhammedHafil you'll need to use a uuid or logical key... incremented ids don't work effectively in distributed or decentralized systems

dave.enyeart (Mon, 29 Oct 2018 13:46:39 GMT):
@purushothamkdr453 the chaincode code is indeed there... it is zipped and packaged up within the chaincode file

dave.enyeart (Mon, 29 Oct 2018 13:50:21 GMT):
@prashantsingh I think these two docs clearly describe that peers validate/commit block transactions to their local ledger:

dave.enyeart (Mon, 29 Oct 2018 13:50:24 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html

dave.enyeart (Mon, 29 Oct 2018 13:50:37 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/peers/peers.html

DeepakMP (Mon, 29 Oct 2018 14:57:58 GMT):
Is it a problem if the chain code is written in golang but the invoke and query is being called through node apis?

purushothamkdr453 (Mon, 29 Oct 2018 16:56:52 GMT):
Can anyone tell difference between endorsing peers and Committing peers?

DeepakMP (Mon, 29 Oct 2018 18:33:29 GMT):
what are the different data types that are possible to create on couch db through chaincodes (at the top when we declare struct)?

Xooa (Mon, 29 Oct 2018 20:04:36 GMT):
Has joined the channel.

DeepakMP (Mon, 29 Oct 2018 23:15:08 GMT):
How do we initialize varchar, date, time, timestamp in go chaincode model struct?

lightcap (Mon, 29 Oct 2018 23:58:22 GMT):
After much digging I finally found that I couldn't use `.peer` (as in `OR ('Org1.peer', 'Org2.peer')`) in an endorsement policy unless identity classification was being used and that solved the first major headache I've been fighting for a couple days. And, now that I've changed `peer` to `member` (since I don't use identity classification) I can actually invoke chaincode and it'll validate, endorse and commit to a block. But, only when I use `OR` in my policy. The minute I change to `AND` I'm back to `VSCC error: endorsement policy failure, err: signature set did not satisfy policy`. For reference I've been using basic-network from fabric-samples and building on it to try to get a better idea of how this all works together. Config files for reference: https://gist.github.com/lightcap/63ca9a0431c0c2b721e2765b87e0c0d0

lightcap (Tue, 30 Oct 2018 00:02:09 GMT):
Oh, I suppose I should actually ask the question after that background in case it's not obvious: Why is the invoke failing when I use `AND` in my policy?

leonli0811 (Tue, 30 Oct 2018 04:15:24 GMT):
Has joined the channel.

leonli0811 (Tue, 30 Oct 2018 04:15:28 GMT):
Hey everyone, has anyone run hyperledger explorer with fabric 1.3 release?

mrudav.shukla (Tue, 30 Oct 2018 04:19:38 GMT):
Any article on how hyperledger-fabric handles 51% attack?

PrashantS (Tue, 30 Oct 2018 06:01:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M9MQBydfT9h2yuKLj) @leonli0811 I have it installed but noticed that it doesn't show any data. Even the APIs cannot fetch the channel/peers. Tweaking config to see what works

PhilipAndrew (Tue, 30 Oct 2018 06:04:37 GMT):
Has joined the channel.

PhilipAndrew (Tue, 30 Oct 2018 06:04:50 GMT):
Hello! Does anyone know how to add Hyperledger Explorer to an existing Docker compose ? For example, this one https://github.com/hyperledger/fabric-samples/blob/master/basic-network/docker-compose.yml

PhilipAndrew (Tue, 30 Oct 2018 06:05:20 GMT):
I wish to use hyperledger explorer web gui to explore the network I created

RahulEth (Tue, 30 Oct 2018 06:12:53 GMT):
hi everyone i am going through the chaincode for developer in HFv1.2.0 and looking for nodejs support for writing chaincode?

halilkalkan (Tue, 30 Oct 2018 06:41:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T3f5q9ezahFGmvqNn) up :thumbsup_tone4:

AbhinayB (Tue, 30 Oct 2018 07:06:43 GMT):
Hi! I've seen that there 4 types of identities that can be enrolled into a blockchain: peer, orderer, user, app. I understand tha the peer and orderer identities are nodes of a blockchain while user corresponds to an end user who wishes to avail the blockchain services. What does the app identity correspond to?

AbhinayB (Tue, 30 Oct 2018 07:06:43 GMT):
Hi! A basic query about blockchain terminology: I've seen that there 4 types of identities that can be enrolled into a blockchain: peer, orderer, user, app. I understand that the peer and orderer identities are nodes of a blockchain while user corresponds to an end user who wishes to avail the blockchain services. What does the app identity correspond to?

AbhinayB (Tue, 30 Oct 2018 07:06:43 GMT):
Hi! A basic query about blockchain terminology: I've seen that there are 4 types of identities that can be enrolled into a blockchain: peer, orderer, user, app. I understand that the peer and orderer identities are nodes of a blockchain while user corresponds to an end user who wishes to avail the blockchain services. What does the app identity correspond to?

LevinLMKwong (Tue, 30 Oct 2018 07:53:39 GMT):
Hi experts, Can I assume the environment variable name to control the logging level is `CORE_LOGGING_`+the name in caps in the logging session of core.yaml? ``` peer: warning node: warning network: warning version: warning protoutils: warning error: warning msp: warning gossip: warning grpc: warning ledger: warning policies: warning cauthdsl: warning ```

LevinLMKwong (Tue, 30 Oct 2018 07:54:02 GMT):
I have difficulty to trace down the source code reading the environment variable ....

RahulEth (Tue, 30 Oct 2018 08:29:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9d2FmnfCfyXT6oRwT) do someone know about it?

fanliyan (Tue, 30 Oct 2018 08:51:38 GMT):
Has joined the channel.

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com package github.com/maxbrunsfeld/counterfeiter: exit status 128 gotools.mk:53: recipe for target 'gotool.counterfeiter' failed make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric' make[1]: *** [gotool.counterfeiter] Error 1 gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed make: *** [/opt/gotools/bin/counterfeiter] Error 2 Makefile:249: recipe for target '.build/docker/gotools' failed make: *** [.build/docker/gotools] Error 2`

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com package github.com/maxbrunsfeld/counterfeiter: exit status 128 gotools.mk:53: recipe for target 'gotool.counterfeiter' failed make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric' make[1]: *** [gotool.counterfeiter] Error 1 gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed make: *** [/opt/gotools/bin/counterfeiter] Error 2 Makefile:249: recipe for target '.build/docker/gotools' failed make: *** [.build/docker/gotools] Error 2`

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com package github.com/maxbrunsfeld/counterfeiter: exit status 128 gotools.mk:53: recipe for target 'gotool.counterfeiter' failed make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric' make[1]: *** [gotool.counterfeiter] Error 1 gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed make: *** [/opt/gotools/bin/counterfeiter] Error 2 Makefile:249: recipe for target '.build/docker/gotools' failed make: *** [.build/docker/gotools] Error 2`

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access` 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com package github.com/maxbrunsfeld/counterfeiter: exit status 128 gotools.mk:53: recipe for target 'gotool.counterfeiter' failed make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric' make[1]: *** [gotool.counterfeiter] Error 1 gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed make: *** [/opt/gotools/bin/counterfeiter] Error 2 Makefile:249: recipe for target '.build/docker/gotools' failed make: *** [.build/docker/gotools] Error 2`

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com` package github.com/maxbrunsfeld/counterfeiter: exit status 128 gotools.mk:53: recipe for target 'gotool.counterfeiter' failed make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric' make[1]: *** [gotool.counterfeiter] Error 1 gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed make: *** [/opt/gotools/bin/counterfeiter] Error 2 Makefile:249: recipe for target '.build/docker/gotools' failed make: *** [.build/docker/gotools] Error 2`

GiovanniNapoli (Tue, 30 Oct 2018 08:53:46 GMT):
Hi i need a quick help, cant run command `make docker`, it gives me the error `fatal: unable to access 'https://github.com/maxbrunsfeld/counterfeiter/': Could not resolve host: github.com` `package github.com/maxbrunsfeld/counterfeiter: exit status 128` `gotools.mk:53: recipe for target 'gotool.counterfeiter' failed` `make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabric'` `make[1]: *** [gotool.counterfeiter] Error 1` `gotools.mk:58: recipe for target '/opt/gotools/bin/counterfeiter' failed` `make: *** [/opt/gotools/bin/counterfeiter] Error 2` `Makefile:249: recipe for target '.build/docker/gotools' failed` `make: *** [.build/docker/gotools] Error 2`

AndresMartinezMelgar.itcl (Tue, 30 Oct 2018 09:12:20 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Tue, 30 Oct 2018 09:12:41 GMT):
hi everyone! Who knows a good java tutorial to beginners? I need help to understand chaincode and ledger. Thank

AndresMartinezMelgar.itcl (Tue, 30 Oct 2018 09:12:41 GMT):
hi everyone! Who knows a good java tutorial(hyperledger fabric) to beginners? I need help to understand chaincode and ledger. Thank

VinodValsan (Tue, 30 Oct 2018 09:45:54 GMT):
Has joined the channel.

VinodValsan (Tue, 30 Oct 2018 09:47:34 GMT):
hi I am using kafka based ordering service but I am getting the following error on channel install in cli : *" will not enqueue, consenter for this channel hasn't started yet " .can anyone please give me asolution for this

mastersingh24 (Tue, 30 Oct 2018 10:04:31 GMT):
@VinodValsan - you'll need to check your orderer logs; likely there is some issue in the communication between your ordering node(s) and the Kafka broker(s)

Subhankar 3 (Tue, 30 Oct 2018 10:16:04 GMT):
Hi everyone, Is there a way to persist private data for a specific amount of time instead of blocks?

alek (Tue, 30 Oct 2018 10:19:28 GMT):
Has joined the channel.

dave.enyeart (Tue, 30 Oct 2018 10:43:34 GMT):
@Subhankar 3 No, there is no concept of a common time in the decentralized network, that's why time passage can only be modeled as a number of blocks.

sheetal-hlf (Tue, 30 Oct 2018 10:47:52 GMT):
Hi Dave, in v1.2 can a new org added to collection policy make use of hash of private data to fetch original data?

dave.enyeart (Tue, 30 Oct 2018 10:50:39 GMT):
No, the newly added org will only receive the old private data if it is sent again in a later transaction

dave.enyeart (Tue, 30 Oct 2018 10:51:28 GMT):
The reconciliation feature targeted for v1.4 will allow peers added later to retrieve prior committed private data

sheetal-hlf (Tue, 30 Oct 2018 10:53:33 GMT):
how do we make use of hash which is available with all peers?

dave.enyeart (Tue, 30 Oct 2018 10:57:56 GMT):
The hash is used as proof of the private data. It ensures that collection members can't pass incorrect private data to other collection members, as the collection members verify the private data against the hash when they receive it.

dave.enyeart (Tue, 30 Oct 2018 10:59:51 GMT):
It can also be used if there is some dispute... for example a collection member provides the tx id, you can look up the tx by id and inspect the public write set that contains the hash

dave.enyeart (Tue, 30 Oct 2018 11:00:55 GMT):
Let's say a dispute goes to court - the private data can be proved by matching against the hash

sheetal-hlf (Tue, 30 Oct 2018 11:03:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=55tYsZhiG6JDTzhbp) @dave.enyeart does the collection member verify the hash from orderer before committing the private data to side DB?

dave.enyeart (Tue, 30 Oct 2018 11:04:44 GMT):
yes, upon commit collection members check the private data received by gossip against the hash in the block received from orderer

dave.enyeart (Tue, 30 Oct 2018 11:05:32 GMT):
in this way, private data cannot be faked

sheetal-hlf (Tue, 30 Oct 2018 11:08:42 GMT):
what data is considered while creating the hash? only private data or the submitter identity and something more?

dave.enyeart (Tue, 30 Oct 2018 11:10:53 GMT):
the key is hashed, and the value is hashed. applications can add other pieces of data to the key or value as desired, for example to be used as 'salt' to prevent a dictionary attack.

sheetal-hlf (Tue, 30 Oct 2018 11:20:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6eyx6edhJgauHLzm4) @dave.enyeart it may not be possible to send the data again in later transaction e.g. transfer of ownership;

sheetal-hlf (Tue, 30 Oct 2018 11:21:09 GMT):
if the client queries the new org then would that result in error or would the peer fetch data from other authorised peers?

humbleprogammer (Tue, 30 Oct 2018 11:26:20 GMT):
Has joined the channel.

sheetal-hlf (Tue, 30 Oct 2018 11:27:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=orZv5cTCRNBcDg4uu) @dave.enyeart how do we achieve this?

Elulup (Tue, 30 Oct 2018 11:28:29 GMT):
Hi there, I have some questions about Fabric network architecture. Is it possible to be an Organization (with distinct identity, crypto aspects and certificates) without having a peer ? Like use any other org's peer to interact with the fabric network ? Also I read there https://hyperledger-fabric.readthedocs.io/en/release-1.2/peers/peers.html#peers-and-organizations : "P3 could be hosted in Org1’s data center, but as long as the digital certificate associated with it is issued by CA2, then it’s owned by Org2.". How is this reliable ? Org1 has access to all crypto material concerning Org2 nop ? Thanks

dave.enyeart (Tue, 30 Oct 2018 11:31:33 GMT):
@sheetal-hlf clients will get an error if they query for private data on a peer that doesn't have it. agreed that this reconciliation feature is critical, that's why it is a top priority

dave.enyeart (Tue, 30 Oct 2018 11:31:33 GMT):
@sheetal-hlf clients will get an error if they query for private data on a peer that doesn't have it. agreed that this reconciliation feature for orgs that are added later to collection conifguration is critical, that's why it is a top priority

dave.enyeart (Tue, 30 Oct 2018 11:32:42 GMT):
@sheetal-hlf to prove private data against a hash, you would write a small utility that uses the same hash algorithm as fabric

sheetal-hlf (Tue, 30 Oct 2018 11:39:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NtbPpnbqF9L74nYTA) @dave.enyeart agreed; I was looking for an API which gives out the information on hash algorithm or which calculates the hash for given the input values

maxuto (Tue, 30 Oct 2018 11:56:46 GMT):
Has joined the channel.

dallavecchia (Tue, 30 Oct 2018 12:52:11 GMT):
Has joined the channel.

adamhardie (Tue, 30 Oct 2018 14:18:10 GMT):
Good afternoon I have a chaincodeEventListener java SDK implementation. I notice that when I start the application, I receive the most recent block (sometimes quite old). However, this block has already been received during the previous run. Does the orderer not know whether a certain user has already received the block? How can I prevent duplicate processing using the orderer / SDK? Thanks

GiovanniNapoli (Tue, 30 Oct 2018 14:24:53 GMT):
I'm writing a system chaincode...When i receive the endorsements and send the Envelope message with `BroadcastClient.Send(envelope)` i got this error: `Error: could not send: EOF`...somebody can help me?

ClementeSerrano (Tue, 30 Oct 2018 14:52:11 GMT):
Hi guys!

ClementeSerrano (Tue, 30 Oct 2018 15:01:29 GMT):
I am currently working on a web application that uses Fabric in the backend and ReactJS in the frontend. Based on that, I have a question: Do I have to develop a separate server for the application? I'm developing a web application that query and updates Fabric's ledger. Currently I only have the client side of the application (in ReactJS) but I do not know if the application needs its own server or Fabric can function as such Any suggestion?

Nihcep (Tue, 30 Oct 2018 15:03:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FuHosK7qahemaXyFz) @ClementeSerrano You can use one of available SDK for communicate with your Hyperledger instance. Developing a REST API that use Hyperledger Fabric SDK may be a good idea

ClementeSerrano (Tue, 30 Oct 2018 15:05:02 GMT):
Perfect. So, that API should be in a separate backend from Hyperledger?

ClementeSerrano (Tue, 30 Oct 2018 15:09:24 GMT):
For example, I am planning to develop a GraphQL API, which implies having a data base and .js scripts to give the backend logic to that API. Do I have to develop an aditional backend to serve that API? Another question: That database should be additional to that of HyperLedger (CoachDB or LevelDB). I plan to have the credentials of the users in that database

ClementeSerrano (Tue, 30 Oct 2018 15:09:24 GMT):
For example, I am planning to develop a GraphQL API, which implies having a data base and .js scripts to give the backend logic to that API. Do I have to develop an aditional backend to serve that API? Another question: That database should be additional to that of HyperLedger (CoachDB or LevelDB)? I plan to have the credentials of the users in that database

ClementeSerrano (Tue, 30 Oct 2018 15:09:24 GMT):
For example, I am planning to develop a GraphQL API, which implies having a data base and .js scripts to give the API logic. Do I have to develop an aditional backend to serve that API? Another question: That database should be additional to that of HyperLedger (CoachDB or LevelDB)? I plan to have the credentials of the users in that database

ClementeSerrano (Tue, 30 Oct 2018 15:09:24 GMT):
For example, I am planning to develop a GraphQL API, which implies having a data base and .js scripts to give the API logic. Do I have to develop an aditional backend to serve that API? Another question: That database should be additional to HyperLedger World State (CoachDB or LevelDB)? I plan to have the credentials of the users in that database

humbleprogammer (Tue, 30 Oct 2018 16:04:54 GMT):
Is Ubuntu 16.04 LTS a mandatory pre-requisite. Has anyone succesfully installed on Ubuntu 18 LTS (bionic)

greg2git (Tue, 30 Oct 2018 16:07:29 GMT):
@humbleprogammer been on bionic for the last two weeks and it's been fine so far

humbleprogammer (Tue, 30 Oct 2018 16:12:44 GMT):
@greg2git I am on Ubuntu 18.04 LTS Bionic node v8.12.0 npm 5.6.0 curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh threw the error that bionic is not supported I edited the file and added 'bionic' to bypass Then tried to do npm install -g composer-cli Errored out at node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-linux-x64-glibc.tar.gz What am I doing wrong...

humbleprogammer (Tue, 30 Oct 2018 16:12:44 GMT):
@greg2git I am on Ubuntu 18.04 LTS Bionic node v8.12.0 npm 5.6.0 curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh threw the error that bionic is not supported I edited the file and added 'bionic' to bypass Then tried to do npm install -g composer-cli Errored out at node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-linux-x64-glibc.tar.gz what am i doing wrong...

greg2git (Tue, 30 Oct 2018 16:17:25 GMT):
curl -O https://hyperledger.github.io/composer/latest/pr ereqs-ubuntu.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4151 100 4151 0 0 70355 0 --:--:-- --:--:-- --:--:-- 70355

greg2git (Tue, 30 Oct 2018 16:17:29 GMT):
curl 7.58.0

humbleprogammer (Tue, 30 Oct 2018 16:20:55 GMT):
with this .. bionic is not supported :(

greg2git (Tue, 30 Oct 2018 16:22:37 GMT):
yeah, just noticed no npm in that instance, but i gave up on composer soon after they discontinued their new development

dcasado (Tue, 30 Oct 2018 16:30:08 GMT):
Has joined the channel.

montana (Tue, 30 Oct 2018 17:04:28 GMT):
Anyone know how to configure a network so that org members (not just admins) can join peers to channels + instantiate chaincode? I've tried setting policies during genesis block creation like: `Type: Signature Rule: "OR('Org1MSP.member')"` But am still having issues

cygnusbandit (Tue, 30 Oct 2018 17:18:06 GMT):
Has joined the channel.

cygnusbandit (Tue, 30 Oct 2018 17:18:37 GMT):
Hi everyone

cygnusbandit (Tue, 30 Oct 2018 17:19:03 GMT):
Does anyone knows if there is a guide to installing in production?

cygnusbandit (Tue, 30 Oct 2018 17:19:11 GMT):
all the guides I see are for test networks

ClementeSerrano (Tue, 30 Oct 2018 17:41:28 GMT):
I also have that question!!!

DeepakMP (Tue, 30 Oct 2018 17:48:55 GMT):
Which documentation is better? Node or Java?

anant706 (Tue, 30 Oct 2018 17:50:02 GMT):
anylink or idea, how 2 Peer nodes in a single ORG works on single channel? what is there roles and how data consistency is maintained over 2 nodes?

DeepakMP (Tue, 30 Oct 2018 17:58:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tjTWBhr5T9fWBJ9h7) And which has better support?

humbleprogammer (Tue, 30 Oct 2018 18:51:25 GMT):
@greg2git . i was able to resolve the issue by changing to ubuntu 16.04 LTS & downgrading node to v6.x

greg2git (Tue, 30 Oct 2018 18:54:30 GMT):
@humbleprogammer thx for confirming that 16 is working for what you wanted to accomplish and 18 is not.

billchen (Wed, 31 Oct 2018 00:17:17 GMT):
Hey all, when a new channel is created between various organizations, how do the individual organizations get notified that it should join the newly created channel?

lightcap (Wed, 31 Oct 2018 02:24:29 GMT):
If I change the network configs from the tutorials from `Org1`, `Org2` and `Org3` (in the balance-transfer sample network) to `MyOrg1` and so on, can I still use the same CA docker image? Or do I have to build a docker image from ca-hyperledger-fabric to update the affiliation section of the CA configs? I noticed an `org1` and `org2` section in the `fabric-ca-server-config` on the CA container and it's got me thinking that it's related to my inability to authenticate a user in the renamed orgs.

lightcap (Wed, 31 Oct 2018 02:25:03 GMT):
There's pretty scant documentation that I can find around diverging from the samples. Maybe I'm missing something?

PhilipAndrew (Wed, 31 Oct 2018 04:08:38 GMT):
How to add hyperledger explorer to basic network in https://github.com/hyperledger/fabric-samples/tree/release-1.3/basic-network ?

DattaPatil (Wed, 31 Oct 2018 04:18:39 GMT):
Hi Team, When i use Chaincode-docker-devmode which database it using? and which configuration it usage, how many peers and order it usage? Can someone please help over this, Thank you!

MuhammedHafil (Wed, 31 Oct 2018 06:19:22 GMT):
Do i need to run install and upgrade commands in all peers when updating a chaincode?

MuhammedHafil (Wed, 31 Oct 2018 06:19:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8wEJMzMPjZhKxMA6c) ??

MuhammedHafil (Wed, 31 Oct 2018 06:32:53 GMT):
when we are using couchdb as state database we can access the fauxton web ui of corresponding peers and change document values inside it. How can we guarantee immutability in this case?

MuhammedHafil (Wed, 31 Oct 2018 06:37:56 GMT):

config .txt

MuhammedHafil (Wed, 31 Oct 2018 06:37:56 GMT):

config .txt

MuhammedHafil (Wed, 31 Oct 2018 06:38:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sskELq3yHm6EXL5wQ) @PhilipAndrew Change fabric path

MuhammedHafil (Wed, 31 Oct 2018 06:38:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sskELq3yHm6EXL5wQ) @PhilipAndrew Change fabric path in the above file

MuhammedHafil (Wed, 31 Oct 2018 06:38:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sskELq3yHm6EXL5wQ) @PhilipAndrew Change fabric path in the above file only difference is `"tlsEnable": false,`

MuhammedHafil (Wed, 31 Oct 2018 06:38:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sskELq3yHm6EXL5wQ) @PhilipAndrew Change fabric path in the above file only difference is `"tlsEnable": false`

dcasado (Wed, 31 Oct 2018 07:16:15 GMT):
Hello, i'm trying to setup a network with TLS in Kafka but the orderer always shows the same error: panic: Unable to decode public/private key pair:tls: failed to find any PEM data in certificate input If I set ORDERER_KAFKA_TLS_ENABLED to false all works as expected. This is my docker-compose for the orderer: ``` services: orderer0.example.com: image: hyperledger/fabric-orderer:amd64-1.2.0 container_name: orderer0.example.com environment: - ORDERER_GENERAL_LOGLEVEL=DEBUG - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] # kafka - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFKA_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true # Enabled kafka client TLS - ORDERER_KAFKA_SERVER=kafkaserver - ORDERER_KAFKA_TLS_ENABLED=true - ORDERER_KAFKA_TLS_PRIVATEKEY=/var/private/tls/client.key - ORDERER_KAFKA_TLS_CERTIFICATE=/var/private/tls/client.pem - ORDERER_KAFKA_TLS_ROOTCAS=[/var/private/tls/ca.pem] working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../orderer0/msp:/var/hyperledger/orderer/msp - ../orderer0/tls/:/var/hyperledger/orderer/tls - orderer0.example.com:/var/hyperledger/production/orderer - ./kafkaTLSclient/client.key:/var/private/tls/client.key - ./kafkaTLSclient/client.crt:/var/private/tls/client.pem - ./kafkaTLSclient/ca.crt:/var/private/tls/ca.pem ports: - 7050:7050 networks: - byfn ```

PhilipAndrew (Wed, 31 Oct 2018 07:30:58 GMT):
lots of questions here and not many answers

MuhammedHafil (Wed, 31 Oct 2018 07:33:35 GMT):
@PhilipAndrew : i have answered to your query, Please check

dcasado (Wed, 31 Oct 2018 07:44:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nz5qEtS8F93uEovyy) I traced it down to this line https://github.com/hyperledger/fabric/blob/release-1.2/orderer/consensus/kafka/config.go#L38 and I think it isn't reading cert files and just trying to extract certificate from the path

MuhammedHafil (Wed, 31 Oct 2018 08:04:26 GMT):
Do i need to run install and upgrade commands in all peers when updating a chaincode?

GiovanniNapoli (Wed, 31 Oct 2018 08:22:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgyZQMggeWFYS9KQQ) Does anybody know anything about that?

Subhankar 3 (Wed, 31 Oct 2018 08:53:19 GMT):
Hi, Can we perform complex query on PrivateDB?

GeorgeDevise (Wed, 31 Oct 2018 09:28:23 GMT):
Has joined the channel.

GeorgeDevise (Wed, 31 Oct 2018 09:28:38 GMT):
No bank guarantee to confirm. how know the other party have money.who can tell me? Only virtual Money can replace real money ? I just newbie hope you can answer.thanks

MuhammedHafil (Wed, 31 Oct 2018 09:32:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NnzwFrDfGpL9JvD7X) anyone??

DattaPatil (Wed, 31 Oct 2018 09:38:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jB9Z4EWnX3Tb85HwN) Can anyone answer over this please?

sanket1211 (Wed, 31 Oct 2018 09:50:30 GMT):
Has joined the channel.

sanket1211 (Wed, 31 Oct 2018 09:52:18 GMT):
[ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse (node:12714) UnhandledPromiseRejectionWarning: Error: Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse (node:12714) UnhandledPromiseRejectionWarning: Error: Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse (node:12714) UnhandledPromiseRejectionWarning: Error: Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse (node:12714) UnhandledPromiseRejectionWarning: Error: Failed to invoke chaincode. cause:Failed to send Proposal and receive all good ProposalResponse i cannot invoke transaction when i call it from ui(angular)...the error says proposal was bad......plz reply ASAP...thank you

prashantsingh (Wed, 31 Oct 2018 10:26:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qyWKeiTZLoFmfweyv) Thanks @dave.enyeart

DattaPatil (Wed, 31 Oct 2018 10:45:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4p4EiyBBo5rke98je) @sanket1211 even i also facing same issue, without any modification in balance transfer

fcabo (Wed, 31 Oct 2018 10:49:12 GMT):
Has joined the channel.

sanket1211 (Wed, 31 Oct 2018 10:58:05 GMT):
we have changed the chaincode....architecture is same.

Heena078 (Wed, 31 Oct 2018 10:58:31 GMT):
Has joined the channel.

smallant (Wed, 31 Oct 2018 11:05:47 GMT):
Hi to all,

smallant (Wed, 31 Oct 2018 11:10:00 GMT):
HI to all, I'm trying to join a new org a an already running network, but I'm using the fabric-ca client to generate the users and certificates. I've got to the point where I can sign from org3 cli container, the last .pb file, using Org1 certs. When i'm going to update the channel, using Org2, I receive an error. On the orderer of Org2, I see the following: ``` 2018-10-31 08:54:43.615 UTC [msp] SatisfiesPrincipal -> DEBU ad9 Checking if identity satisfies ADMIN role for org2MSP 2018-10-31 08:54:43.615 UTC [cauthdsl] func2 -> DEBU ada 0xc420ca0e50 identity 1 does not satisfy principal: This identity is not an admin 2018-10-31 08:54:43.615 UTC [cauthdsl] func2 -> DEBU adb 0xc420ca0e50 principal evaluation fails ``` The users and certificates are correct and I'm sending the admin data. What Am I missing?

Nihcep (Wed, 31 Oct 2018 11:30:24 GMT):
@smallant Can you please show the command you'r using for update the channel ?

Nihcep (Wed, 31 Oct 2018 11:31:02 GMT):
You may use Admin identity (found on /crypto-config/peerOrganization/YourOrg/users/Admin@yourOrg

dave.enyeart (Wed, 31 Oct 2018 11:46:11 GMT):
@MuhammedHafil See an explanation at https://lists.hyperledger.org/g/fabric/message/4896

MuhammedHafil (Wed, 31 Oct 2018 11:46:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NnzwFrDfGpL9JvD7X) anyone ?

dave.enyeart (Wed, 31 Oct 2018 11:47:52 GMT):
@Subhankar 3 See https://github.com/hyperledger/fabric/blob/release-1.3/core/chaincode/shim/interfaces.go#L297-L308

MuhammedHafil (Wed, 31 Oct 2018 11:48:04 GMT):
@dave.enyeart Thanks, Great thread

MuhammedHafil (Wed, 31 Oct 2018 12:09:48 GMT):
I'm installing chaincode to 5 peers and all command gives successful output as below. but it creates only 2 docker containers. I'm running it inside a shell script. is it related to the time delay between those install commands? ``` 2018-10-31 12:02:54.458 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-10-31 12:02:54.458 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-10-31 12:02:54.886 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ```

MuhammedHafil (Wed, 31 Oct 2018 12:09:48 GMT):
I'm installing chaincode to 5 peers and all command gives successful output as below. but it creates chaincode docker containers for only 2 peers. I'm running it inside a shell script. is it related to the time delay between those install commands? ``` 2018-10-31 12:02:54.458 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-10-31 12:02:54.458 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-10-31 12:02:54.886 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ```

waxer (Wed, 31 Oct 2018 12:11:49 GMT):
Question: In a production env, does it make sense to have a CA server for the Orderers org?. Or just use the cryptogen since registering new orderers or enrolling them is very rare? Am I missing something else maybe?

smallant (Wed, 31 Oct 2018 12:12:58 GMT):
@Nihcep peer channel update -f /data/org3_update_in_envelope.pb -c mycc -o orderer1-org2:7050 --tls --cafile /certificates/org2-ca-cert.pem --clientauth --keyfile /certificates/tls/peer1-org2-cli-client.key --certfile /certificates/tls/peer1-org2-cli-client.crt

Nihcep (Wed, 31 Oct 2018 12:30:39 GMT):
@smallant Do you set the right env varible ? '`export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp `)

Nihcep (Wed, 31 Oct 2018 12:30:39 GMT):
@smallant Do you set the right env varible ? `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp `

Nihcep (Wed, 31 Oct 2018 12:30:39 GMT):
@smallant Do you set the right env varible ? `export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp`

smallant (Wed, 31 Oct 2018 12:39:25 GMT):
uhmmm i dont think I have exported that one

smallant (Wed, 31 Oct 2018 12:39:31 GMT):
I'll check taht

smallant (Wed, 31 Oct 2018 12:39:31 GMT):
I'll check that

Nihcep (Wed, 31 Oct 2018 12:40:28 GMT):
@smallant Ok, it mean that you use the Admin identity, required for update a channel config

smallant (Wed, 31 Oct 2018 12:40:51 GMT):
oh actually I do

smallant (Wed, 31 Oct 2018 12:40:53 GMT):
CORE_PEER_MSPCONFIGPATH=/certificates/orgs/org2/admin/msp

smallant (Wed, 31 Oct 2018 12:43:09 GMT):
(oh and this folder has the admin cert folder and certificate)

smallant (Wed, 31 Oct 2018 12:45:04 GMT):
I did one test, that was switching between orgs that signed and updated, and it gives the same error, but for org1 instead of org2

VarunVerma (Wed, 31 Oct 2018 12:50:46 GMT):
How can i pass 2-d slice as input in chaincode when i call invoke function. eg: for now when we invoke function following is the base syantax: peer chaincode invoke -n mycc -c '{"Args":["set", "a", "20"]}' -C myc but what if i want to pass 2d args i.e. peer chaincode invoke -n mycc -c '{"Args":["set",[ ["a"], ["20","10","5"]]]}' -C myc Thanks

MuhammedHafil (Wed, 31 Oct 2018 12:50:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8vetNhtmwaFRCmqtS) script i have used https://pastebin.com/bRG2jXtW

MuhammedHafil (Wed, 31 Oct 2018 13:28:44 GMT):
Also, When should i instantiate chaincode? After installing to all peers or anytime after installing on 1 peer?

nrathnakara (Wed, 31 Oct 2018 13:55:31 GMT):
Has joined the channel.

nrathnakara (Wed, 31 Oct 2018 13:55:40 GMT):
Hello Guys, I am getting this error while executing following command docker exec cli.Registry bash -c 'peer chaincode install -p mrtgexchg -n xyz -v 0.1 ' Error: Path to chaincode does not exist : mrtgexchg

akshay.sood (Wed, 31 Oct 2018 13:57:50 GMT):
Hi guys Is it possible to remove peer from org?

MuhammedHafil (Wed, 31 Oct 2018 14:00:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fmzYcnf2JRkDEiyus) @nrathnakara your chaincode path is wrong. Please check volume added to cli container . must be something like /opt/gopath/src/github.com/chaincode/yourchaincodefolder

nrathnakara (Wed, 31 Oct 2018 14:26:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=thfDcteb28J2vP7MW) @MuhammedHafil This is the cli container volume: volumes: - ./chaincode:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go/mrtgexchg

nrathnakara (Wed, 31 Oct 2018 14:27:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2q27YL2wGQAovx9a5) What will be my command now? I am new to this

Ashish_ydv (Wed, 31 Oct 2018 15:05:53 GMT):
Has joined the channel.

Ashish_ydv (Wed, 31 Oct 2018 15:06:26 GMT):
Hi Everyone, when i try to instantiate Chaincode giving error trying to connect to local peer. Please Check this link for all logs and problem . https://stackoverflow.com/questions/53052243/why-chaincode-instantiate-giving-error-trying-to-connect-to-local-peer

Nihcep (Wed, 31 Oct 2018 15:46:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MmmenF28AuRtkKL6A) @Ashish_ydv What is your Fabric version and what is your Composer version ?

Ashish_ydv (Wed, 31 Oct 2018 15:58:10 GMT):
@Nihcep Fabric Version is 1.3 and Composer version in 0.20 . ``` Amits-MacBook-Pro:artifacts Ashish$ docker run --rm hyperledger/fabric-peer:latest peer version peer: Version: 1.3.0 Commit SHA: ab0a67a Go version: go1.10.4 OS/Arch: linux/amd64 Experimental features: false Chaincode: Base Image Version: 0.4.13 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger Amits-MacBook-Pro:artifacts Ashish$ composer --version v0.20.0 ```

Ashish_ydv (Wed, 31 Oct 2018 16:00:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cBjGd66FZB92kyDYD) @Nihcep What may be the issue ? Above you can see version.

Nihcep (Wed, 31 Oct 2018 16:01:59 GMT):
@Ashish_ydv Fabric 1.3 do not support any composer version yet, use 12.2 for 0.20, 1.1 for older

Nihcep (Wed, 31 Oct 2018 16:02:09 GMT):
1.2 not 12.2 *

Ashish_ydv (Wed, 31 Oct 2018 16:03:29 GMT):
I am doing all things on fabric. So i am in confusion does it require composer? and when i use to run sample projects it use to run perfectly.

Ashish_ydv (Wed, 31 Oct 2018 16:03:29 GMT):
I am doing all things on fabric. So i am in confusion does it require composer? and when i use to run sample projects it use to run perfectly. @Nihcep

nrathnakara (Wed, 31 Oct 2018 16:13:07 GMT):
Guys anything for my question

caicai (Wed, 31 Oct 2018 16:47:54 GMT):
Has joined the channel.

lightcap (Wed, 31 Oct 2018 17:19:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G2RmPeXbXSkuq96MJ) @PhilipAndrew Yeah, finding that in general around Hyperledger. Hazards of early adoption I suppose.

ThomasBereczky (Wed, 31 Oct 2018 19:42:42 GMT):
Hey Guys

ThomasBereczky (Wed, 31 Oct 2018 19:42:53 GMT):
does anyone having issues pulling the docker image for fabric-tools?

ThomasBereczky (Wed, 31 Oct 2018 19:43:01 GMT):
It's been 1,5 day

ThomasBereczky (Wed, 31 Oct 2018 19:43:06 GMT):
and I just can't pull it

ThomasBereczky (Wed, 31 Oct 2018 19:43:19 GMT):
tried it from AWS, DigitalOcean everywhere

ThomasBereczky (Wed, 31 Oct 2018 19:49:28 GMT):
https://cdn.discordapp.com/attachments/489223764475772948/507279916148981811/unknown.png

ThomasBereczky (Wed, 31 Oct 2018 19:49:37 GMT):
its doing this since yesterday

ThomasBereczky (Wed, 31 Oct 2018 19:50:10 GMT):
it just dies at one point

ThomasBereczky (Wed, 31 Oct 2018 19:53:17 GMT):
this is the hash for the shard we cannot pull --> 4f3dcdea854d

ThomasBereczky (Wed, 31 Oct 2018 19:53:42 GMT):
and we tried it from several datacenters, same result

EtherEth (Wed, 31 Oct 2018 20:16:07 GMT):
Has joined the channel.

EtherEth (Wed, 31 Oct 2018 20:16:10 GMT):
Hey Everyone. Where can I learn more about the pluggable consensus mechanisms in Hyperledger Fabric. In particular for endorsement, ordering and validation?

DeepakMP (Wed, 31 Oct 2018 21:42:01 GMT):
Is it possible to start cli and ca containers in the byfn network?

ThomasBereczky (Wed, 31 Oct 2018 22:06:10 GMT):
nevermind my last question -- it was the instance size t2.micro...

DeepakMP (Wed, 31 Oct 2018 23:46:49 GMT):
Error while querying with sdk: `Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/deepak/fabric-samples/first-network/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/deepak/fabric-samples/first-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/deepak/fabric-samples/first-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/deepak/fabric-samples/first-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/deepak/fabric-samples/first-network/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' }`

DeepakMP (Thu, 01 Nov 2018 00:44:11 GMT):
Hi which pem file does fabric need for node sdk to connect to fabric.newPeer? Its asking for a pem file when I try to connect to newPeer for querying chaincode.

DeepakMP (Thu, 01 Nov 2018 00:44:15 GMT):
`var peer = fabric_client.newPeer('grpcs://localhost:7051',{pem: '/home/deepak/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem'});`

DeepakMP (Thu, 01 Nov 2018 00:44:31 GMT):
What is the correct second argument here?

bh4rtp (Thu, 01 Nov 2018 00:45:15 GMT):
hi, what is the relation between OrgMSP.peer, client, admin and member?

ClementeSerrano (Thu, 01 Nov 2018 02:34:00 GMT):
Hi guys! I'm trying to set up and run my own fabric config based on the /first-network example. I have built my own startup, run and stop script (.sh) based on the byfn.sh script from the example. I need to know if the file docker-compose-e2e.yaml is necessary if I'm planning to use Node.js SDK

sheetal-hlf (Thu, 01 Nov 2018 04:07:50 GMT):
a very basic question - in the endorsement policy we generally write Org1MSP.member; which states that any member from Org1 can endorse the transaction; however we send the transaction to peers and the transaction is endorsed by peer. Where does the dynamically registered member come into picture apart from initiating the transaction?

sheetal-hlf (Thu, 01 Nov 2018 04:51:47 GMT):
For chaincode-level endorsement, all endorsing peers execute the same transaction and the generated RWsets must match. Likewise what is process for key-level endorsement?

MuhammedHafil (Thu, 01 Nov 2018 05:14:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2q27YL2wGQAovx9a5) @nrathnakara `-p /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go/mrtgexchg`

me_abhijeet (Thu, 01 Nov 2018 05:37:35 GMT):
Hey! There i am trying to create the network using: https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org?fbclid=IwAR1QESv2BA5KUnoYN0NJmdI47xnRd7skqgkHDSJ5O3pNAT2yrCiaGQ64SPY I am having some doubts and issue that need to be discussed . Is there anyone can help me

MuhammedHafil (Thu, 01 Nov 2018 06:05:38 GMT):
is it possible to set endorsement policy as sign from 2 peers of a organisation? I have a single organisation network. How do i set that?

menganisanjay (Thu, 01 Nov 2018 07:05:01 GMT):
Has joined the channel.

menganisanjay (Thu, 01 Nov 2018 07:06:31 GMT):
Hi All, I'm new to Fabric and trying to learn. Could anyone help me in writing some sample application. I'm done with the setup and Java is my preferable platform

krishnkant (Thu, 01 Nov 2018 09:01:09 GMT):
Has joined the channel.

krishnkant (Thu, 01 Nov 2018 09:02:04 GMT):
hello everyone I am new here.can anyone guide me how i start development of hyperledger fabric chaincodes or dapps.

AnkitDroidGit (Thu, 01 Nov 2018 09:07:20 GMT):
Has joined the channel.

bh4rtp (Thu, 01 Nov 2018 09:59:26 GMT):
i update from release--1.2 to release-1.3, and everything is ok except intantiate chaincode. is there any change with chaincode instantiation?

sanket1211 (Thu, 01 Nov 2018 10:21:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Hi7kaHvqLFnsA9gju) @bh4rtp wat is ur internet speed?

tahaf10 (Thu, 01 Nov 2018 11:33:52 GMT):
I have defined 2 structs in my chaincode. When I insert an object of first struct with ID 1 it gets inserted, but when I insert another object of type 2nd struct with ID 1 it says ID already exists. Using couchdb for statedb. Shouldn't these 2 be 2 different tables?

dave.enyeart (Thu, 01 Nov 2018 11:38:42 GMT):
@tahaf10 they are both going into the same channel/chaincode namespace. you must make a composite key with the object type and key in order to have separate namespaces for different object types. you can do that yourself, or use the utility function CreateCompositeKey() , see https://github.com/hyperledger/fabric/blob/release-1.3/core/chaincode/shim/interfaces.go#L179-L184

MuhammedHafil (Thu, 01 Nov 2018 11:42:23 GMT):
When mentioning endorsement policy should i give Organisation name or ID?

MuhammedHafil (Thu, 01 Nov 2018 11:49:09 GMT):
How to define endorsement policies for a network with single peer organisation?

MuhammedHafil (Thu, 01 Nov 2018 11:52:09 GMT):
The basic network example(single peer org) given shows an endorsement policy like this ``` -P "OR ('Org1MSP.member','Org2MSP.member')" ``` The basic network don't even have 2 organisations :thinking:

MuhammedHafil (Thu, 01 Nov 2018 11:52:09 GMT):
The basic network (single peer org) give an endorsement policy like this ``` -P "OR ('Org1MSP.member','Org2MSP.member')" ``` The basic network don't even have 2 organisations :thinking:

MuhammedHafil (Thu, 01 Nov 2018 11:52:09 GMT):
The fabcar example with the basic network (single peer org) give an endorsement policy like this ``` -P "OR ('Org1MSP.member','Org2MSP.member')" ``` The basic network don't even have 2 organisations :thinking:

MuhammedHafil (Thu, 01 Nov 2018 11:52:09 GMT):
The fabcar example with the basic network (single peer org) give an endorsement policy like this ``` -P "OR ('Org1MSP.member','Org2MSP.member')" ``` The basic network don't have org2 :thinking:

MuhammedHafil (Thu, 01 Nov 2018 12:09:10 GMT):
Can anybody tell what those policies means? ``` -P "OR ('Org1MSP.peer')" ``` ``` -P "AND ('Org1MSP.peer')" ```

MuhammedHafil (Thu, 01 Nov 2018 12:09:10 GMT):
Can anybody tell what those policies means? ``` -P "OR ('Org1MSP.peer')" ``` ``` -P "AND ('Org1MSP.peer')" ```

coolsvap (Thu, 01 Nov 2018 12:20:15 GMT):
Has joined the channel.

andrewhw (Thu, 01 Nov 2018 13:52:24 GMT):
Has joined the channel.

aspring (Thu, 01 Nov 2018 14:04:25 GMT):
Has joined the channel.

kesavants (Thu, 01 Nov 2018 14:53:07 GMT):
Does fabric 1.2 support adding permission to new org dynamically to private data collection based on state transition without requiring to do a chaincode installation and instantiation. For e.g I have trade submitted by party A against Party B in initial state of Alleged can be seen only by partyA and partyB. Now partyB accepts this trade the state becomes confirmed at this point this record should be visible to PartyC as well (regulator)

billchen (Thu, 01 Nov 2018 16:49:57 GMT):
Hello, suppose I create a new channel with various organizations, how do these organizations know that a channel has been created for them and that they are required to join?

kavuri (Thu, 01 Nov 2018 17:11:41 GMT):
Has joined the channel.

jeffgarratt (Thu, 01 Nov 2018 20:57:15 GMT):
@billchen ChannelCreationPolicy defaults to require [ALL] I believe, which means the admin(s) in the MSP for all members of the consortium must sign the channel creation config update, which means "required to join" is not right way to reason, but rather "required to sign to create". Thus all members will know of its creation.

billchen (Thu, 01 Nov 2018 21:24:19 GMT):
@jeffgarratt thanks for the answer. What I'm not understanding is how these organizations share the new channel's channel.tx file (that they are supposed to sign before sending it to the orderer). Would they all have to independently create it? or is there something built in that broadcasts this to the relevant parties?

caveman7 (Thu, 01 Nov 2018 22:54:57 GMT):
seems to me that if we re-enroll peer identity and restart the peer (so that it loads the new certs), we need to rejoin the peer to the channels that it is a member of before the re-enrollment. is this normal behaviour?

RichsJesonZhang (Fri, 02 Nov 2018 03:01:53 GMT):
Has joined the channel.

MuhammedHafil (Fri, 02 Nov 2018 05:12:34 GMT):
is it mandatory install chaincode in all peers?

DeepakMP (Fri, 02 Nov 2018 06:38:36 GMT):
Hi, I'm getting this error for an indexed chaincode query:

DeepakMP (Fri, 02 Nov 2018 06:38:49 GMT):
`Error: endorsement failure during query. response: status:500 message:"Received unknown function invocation" `

DeepakMP (Fri, 02 Nov 2018 06:39:06 GMT):
In the same network, marbles indexed queries are working.

DeepakMP (Fri, 02 Nov 2018 06:39:32 GMT):
my chaincode that's otherwise working fails for indexed queries.

DeepakMP (Fri, 02 Nov 2018 06:39:37 GMT):
What could be wrong?

DeepakMP (Fri, 02 Nov 2018 06:40:08 GMT):
My query command: `peer chaincode query -C mychannel -n tccc -c '{"Args":["Databynotdeleted","{\"selector\":{\"docType\":\"MemberInfo\",\"isdeleted\":\"20\"}, \"use_index\":[\"_design/indexMemberNotdeletedDoc\",\"indexMemberNotdeleted\"]}"]}'`

DeepakMP (Fri, 02 Nov 2018 06:40:35 GMT):
My function switcher: ` case "Databynotdeleted", "Databylocation", "Databycreationdate", "Databyrequestingmemberid", "Databyreceivingmemberid", "Databycontactmemberid": //passes rich query with use_index to richqueryhandler return t.richqueryhandler(stub, args)`

DeepakMP (Fri, 02 Nov 2018 06:41:37 GMT):
As you can see, Databynotdeleted is the function I'm handling. Yet it says function unknown. What could be wrong here?

DeepakMP (Fri, 02 Nov 2018 06:43:44 GMT):
`2018-11-02 06:15:26.315 UTC [couchdb] CreateIndex -> INFO 06a Created CouchDB index [indexMemberNotdeleted] in state database [mychannel_tccc] using design document [_design/indexMemberNotdeletedDoc]`

DeepakMP (Fri, 02 Nov 2018 06:44:47 GMT):
`deepak@ypotest8:~/fabric-samples/first-network$ cat ../chaincode/tccc/META-INF/statedb/couchdb/indexes/indexMemberNotdeleted.json {"index":{"fields":["docType","IsDeleted"]},"ddoc":"indexMemberNotdeletedDoc", "name":"indexMemberNotdeleted","type":"json"}`

sayyamahmed (Fri, 02 Nov 2018 07:13:58 GMT):
how i can deploy multiple organization on multiple machine like org-1 on pc -1 and org-2 on pc ..already deployed two organization on same machine but dont know how to deployed different organization from different machine

sayyamahmed (Fri, 02 Nov 2018 07:15:20 GMT):
in real world org1 might be in different machine and org2 on different machine so how can we do that

MohammadObaid (Fri, 02 Nov 2018 07:16:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LkSmWQK2FTjKtsNxB) @sayyamahmed You can use docker swarm or kubernetes . #cello provide various deployment options .

sayyamahmed (Fri, 02 Nov 2018 07:17:52 GMT):
have you any resources please share because i cant get anything from internet while searching from days

sayyamahmed (Fri, 02 Nov 2018 07:17:52 GMT):
@MohammadObaid have you any resources please share because i cant get anything from internet while searching from days

MohammadObaid (Fri, 02 Nov 2018 07:19:17 GMT):
@sayyamahmed have you read cello documentation? https://hyperledger-cello.readthedocs.io/en/latest/

MohammadObaid (Fri, 02 Nov 2018 07:19:48 GMT):
This is another good tutorial https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

SudeepS 2 (Fri, 02 Nov 2018 07:20:05 GMT):
Hi, I am using couch db in my first-network based application. I am using private collections to store the data. I have created indexes for private collections as well. When I am trying to query, I am getting empty array.. (followed marbles example).

SudeepS 2 (Fri, 02 Nov 2018 07:20:05 GMT):
Hi, I am using couch db in my first-network based application. I am using private collections to store the data. I have created indexes for private collections as well. When I am trying to do rich query, I am getting empty array.. (followed marbles example).

sayyamahmed (Fri, 02 Nov 2018 07:22:47 GMT):
@MohammadObaid i already follwed this tutorial developer in this teach about 2 different peer on different machihne but have single organization

MohammadObaid (Fri, 02 Nov 2018 07:26:46 GMT):
So where you stuck at ? If you are able to use 2 different peer on different machines then what error you are getting in deploying multiple organizations . I am intending to write an article on deploying multiple organizations on multiple servers using swarm but it will take next week . You can try cello especially ansible script

sayyamahmed (Fri, 02 Nov 2018 07:29:25 GMT):
many thanks in advance for that tutorial..

sayyamahmed (Fri, 02 Nov 2018 07:31:48 GMT):
@MohammadObaid actually i dont know how to start same thing for multiple organization using docker sawarm

MohammadObaid (Fri, 02 Nov 2018 07:46:17 GMT):
I will cover that up in that article . Meanwhile you can ping me up if you have specific queries

sayyamahmed (Fri, 02 Nov 2018 07:48:24 GMT):
ok

wlimtx (Fri, 02 Nov 2018 08:31:34 GMT):
fabric-ca-server idemix enroll, use fabric-java-sdk : `IdemixEnrollment idemixEnrollment = (IdemixEnrollment) hfcaClient.idemixEnroll(enrollment, "Org1MSP");` ``` get error: `Exception in thread "main" org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Failed to get Idemix credential at org.hyperledger.fabric_ca.sdk.HFCAClient.idemixEnroll(HFCAClient.java:1185)` ```

wlimtx (Fri, 02 Nov 2018 08:31:47 GMT):
and `Caused by: org.hyperledger.fabric_ca.sdk.exception.InvalidArgumentException: fabric-ca-server did not return a 'ou' attribute in the response from /api/v1/idemix/credential at org.hyperledger.fabric_ca.sdk.HFCAClient.idemixEnroll(HFCAClient.java:1174) ... 1 more`

wlimtx (Fri, 02 Nov 2018 08:35:48 GMT):
help me

sheetal-hlf (Fri, 02 Nov 2018 08:52:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3LTCeBnPDrDvDZp8G) any comments?

sheetal-hlf (Fri, 02 Nov 2018 08:53:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xTkaAPB29NXh7Siqv) here as well..

sheetal-hlf (Fri, 02 Nov 2018 08:55:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c4NMjRoSTfsAQTsDT) @kesavants AFAIK, this is not possible without chaincode upgrade

wlimtx (Fri, 02 Nov 2018 09:15:08 GMT):
I have solved my problem by add 'ou' attribute to user in db of fabric ca server

MuhammedHafil (Fri, 02 Nov 2018 09:39:27 GMT):
when upgrading chaincode do we need to query or invoke on all peers like in deploying, or installing on all peers and upgrade on any one peer is enough??

SudeepS 2 (Fri, 02 Nov 2018 09:40:15 GMT):
Hi, Can we use pagination queries in fabric V1.3 with private collections

wlimtx (Fri, 02 Nov 2018 09:58:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wuc3sr66x5KiQ2bfb) @MuhammedHafil yes, upgrading on only one peer, but you still installing the latest chaincode on all peer

Paradox-AT (Fri, 02 Nov 2018 10:29:39 GMT):
Has joined the channel.

Paradox-AT (Fri, 02 Nov 2018 10:30:32 GMT):
Hello guys, Can a user use multiple peers to send the transactions?

MuhammedHafil (Fri, 02 Nov 2018 10:35:50 GMT):
Anyone figured any conflicts with chaincode after upgrading ? like getting old results? Is it ok remove old chaincodes and its images while upgrading?

MuhammedHafil (Fri, 02 Nov 2018 10:35:50 GMT):
Anyone figured any conflicts with chaincode after upgrading ? like getting old results? Is it ok to remove old chaincodes and its images while upgrading?

MuhammedHafil (Fri, 02 Nov 2018 10:35:50 GMT):
Anyone having conflicts with chaincode after upgrading ? like getting old results? Is it ok to remove old chaincodes and its images while upgrading?

denis3007 (Fri, 02 Nov 2018 10:40:11 GMT):
Has joined the channel.

GiovanniNapoli (Fri, 02 Nov 2018 11:55:56 GMT):
Hi all, is there a way to get transactions IDs without using SDKs? I'm wryting a system chaincode and i need this functionality

GiovanniNapoli (Fri, 02 Nov 2018 12:25:30 GMT):
Is there also a way to marshal block Data [][]byte (ordered transactions) into JSON?

GiovanniNapoli (Fri, 02 Nov 2018 12:29:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZzMZkSFwHzoMnmDms) If not, what's the fastest way to get transactions ID inside a block?

GiovanniNapoli (Fri, 02 Nov 2018 12:29:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZzMZkSFwHzoMnmDms) If not, what's the fastest way to get transactions ID inside a block?

purushothamkdr453 (Fri, 02 Nov 2018 12:46:57 GMT):
Hi All

purushothamkdr453 (Fri, 02 Nov 2018 12:47:07 GMT):
I am referring to this URL

purushothamkdr453 (Fri, 02 Nov 2018 12:47:53 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/network/network.html

purushothamkdr453 (Fri, 02 Nov 2018 12:47:55 GMT):
can any one tell me which file contains the network configuration?

nemo 8 (Fri, 02 Nov 2018 12:48:01 GMT):
Hey any devs around? Going production with a fabric network and wanted to ask if they have any back-up solution, or just general recommendations

jrosmith (Fri, 02 Nov 2018 12:50:28 GMT):
@purushothamkdr453 are you asking for a link to an example network configuration? otherwise try working through the [build your first network example](https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html)

jrosmith (Fri, 02 Nov 2018 12:50:41 GMT):
@nemo 8 can you specify what you mean by back up solution to a production fabric network?

jrosmith (Fri, 02 Nov 2018 12:51:34 GMT):
@MuhammedHafil if you upgrade "mycc v1.0" to "mycc v2.0", it is still an iteration of "mycc." version 2.0 will still have access to transaction made in version 1.0

jrosmith (Fri, 02 Nov 2018 12:51:48 GMT):
@GiovanniNapoli try #fabric-chaincode-dev

GiovanniNapoli (Fri, 02 Nov 2018 12:52:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y8b22XLhfH5bjP7LX) @jrosmith Ok, thanks

jrosmith (Fri, 02 Nov 2018 12:53:03 GMT):
@Paradox-AT depending on endorsement policy a user can/will/should use multiple peers for endorsement of transaction proposals. when it comes to actually sending that transaction a user can send it to any ordering service node.

chuda (Fri, 02 Nov 2018 13:08:59 GMT):
Has joined the channel.

chuda (Fri, 02 Nov 2018 13:11:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kdkMsoJJYh8bBtToM) @nemo 8 @nemo in fabric we cann back up data mean ledger data from peer its possible for admin to take back up and also u can assure to customers that we can have the backup data from one of peers if any peer crashed ...any one correct it if not please>>>>

PhilipAndrew (Fri, 02 Nov 2018 13:16:17 GMT):
I dont understand the sync part in https://github.com/hyperledger/blockchain-explorer

PhilipAndrew (Fri, 02 Nov 2018 13:16:24 GMT):
Is syncstart.sh required to start?

PhilipAndrew (Fri, 02 Nov 2018 13:16:34 GMT):
I see no data in my hyperledger explorer

Krenari (Fri, 02 Nov 2018 13:46:33 GMT):
Has joined the channel.

chuda (Fri, 02 Nov 2018 13:50:33 GMT):
is any one add one more peer for fabcar network??? may i get guidance wat changes to make

Krenari (Fri, 02 Nov 2018 13:53:24 GMT):
2018-11-02 13:29:26.025 UTC [nodeCmd] status -> INFO 040 Error trying to get status from local peer: rpc error: code = Unknown desc = access denied status:UNKNOWN Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied

Krenari (Fri, 02 Nov 2018 13:53:42 GMT):
Can anyone give me some clue?

Joe-mcgee (Fri, 02 Nov 2018 15:29:57 GMT):
Has joined the channel.

GiovanniNapoli (Fri, 02 Nov 2018 16:02:55 GMT):
Where is phisically the ledger? I mean the path where the blockledger saves files

GiovanniNapoli (Fri, 02 Nov 2018 16:06:31 GMT):
Never mind, just found it

billchen (Fri, 02 Nov 2018 19:00:55 GMT):
Is there any way to verify (through a console) that a certificate has been signed by the fabric-ca?

migbot (Fri, 02 Nov 2018 19:20:59 GMT):
Has joined the channel.

migbot (Fri, 02 Nov 2018 19:22:58 GMT):
Hello. I'm wondering if there is some tool that takes files `configtx.yaml`, `crypto-config.yaml`, and `docker-compose.yaml` and generates a connection profile configuration to use with fabric-client?

billchen (Fri, 02 Nov 2018 21:28:01 GMT):
@migbot i don't believe so. I suggest asking in #fabric-sdk-node to verify

migbot (Fri, 02 Nov 2018 21:42:41 GMT):
@billchen Thanks and will do.

DeepakMP (Fri, 02 Nov 2018 23:34:43 GMT):
it says "Received unknown function invocation" inspite of me adding function name to error statement in chaincode it doesn't display received function name.

DeepakMP (Fri, 02 Nov 2018 23:35:36 GMT):
Where can I see logs of this chaincode calls and execution.

DeepakMP (Fri, 02 Nov 2018 23:35:40 GMT):
?

DeepakMP (Fri, 02 Nov 2018 23:39:33 GMT):
i.e., I cant see any of my fmt.Println statements- peer logs and in cli.

DeepakMP (Fri, 02 Nov 2018 23:39:39 GMT):
Where does it show?

DeepakMP (Fri, 02 Nov 2018 23:54:24 GMT):
Hi, my chaincode logs show:

DeepakMP (Fri, 02 Nov 2018 23:54:26 GMT):
`invoke is running databynotdeleted invoke did not find func: databynotdeleted`

DeepakMP (Fri, 02 Nov 2018 23:56:45 GMT):
my go build exits without errors and I've routed my databynotdeleted function just like every other function in my chaincode.go's switch case. It is a queryString handler and calls the querybyquerystring function. Why is it not detecting my function? or is it likely theres some thing else wrong?

DeepakMP (Sat, 03 Nov 2018 00:00:08 GMT):
` case "databynotdeleted": //passes rich query with use_index to richqueryhandler return t.databynotdeleted(stub, args) `

DeepakMP (Sat, 03 Nov 2018 00:00:31 GMT):
`invoke is running databynotdeleted invoke did not find func: databynotdeleted`

DeepakMP (Sat, 03 Nov 2018 00:01:33 GMT):
Why is this not matching? 'databynotdeleted' is captured in my switch/atleast it should be...

bh4rtp (Sat, 03 Nov 2018 00:14:19 GMT):
hi all, can i turn off gossip debug logging and keep other module, such as endorsor, chaincode, debug on?

bh4rtp (Sat, 03 Nov 2018 00:14:59 GMT):
there are so many gossip debug logs.

DeepakMP (Sat, 03 Nov 2018 02:08:09 GMT):
Whats teh difference between indexes defined in initMarble such as "color~name" and the ones in meta-inf dir "indexOwner".

DeepakMP (Sat, 03 Nov 2018 02:08:13 GMT):
?

DeepakMP (Sat, 03 Nov 2018 03:59:27 GMT):
https://stackoverflow.com/questions/53127253/my-hyperledger-fabric-fails-to-detect-function-despite-being-defined-in-chaincod

PhilipAndrew (Sat, 03 Nov 2018 06:34:27 GMT):
Hello, I am trying to get hyperledger explorer to work with docker-compose, but it does not connect, can anyone help me? https://github.com/contractpendev/hyperledger-basic-network

PhilipAndrew (Sat, 03 Nov 2018 06:35:10 GMT):
It says Failed to connect client peer, please check the configuration and peer status

PhilipAndrew (Sat, 03 Nov 2018 06:35:15 GMT):
Anyone can help me please?

PhilipAndrew (Sat, 03 Nov 2018 06:35:44 GMT):
The goal of this project is to have a simple Hyperledger network working via docker based upon the basic network from Basic Network AND with the Hyperledger Exploer added to the docker-compose.yml.

PhilipAndrew (Sat, 03 Nov 2018 10:20:36 GMT):
I posted a job for this if anyone wants to solve my problem for me, you can earn a small amount https://www.upwork.com/jobs/~01b70c3b48f4f87e78

Paradox-AT (Sat, 03 Nov 2018 12:30:07 GMT):
@jrosmith So that means that the user can purpose the transaction from any node, the nodes are not registered at the peer level am I right?

dave.enyeart (Sat, 03 Nov 2018 12:46:46 GMT):
@bh4rtp You can disable gossip debug with `peer logging setlevel gossip ERROR`

dave.enyeart (Sat, 03 Nov 2018 12:47:06 GMT):
@DeepakMP I added a suggestion to SO

dave.enyeart (Sat, 03 Nov 2018 12:51:45 GMT):
In marbles02 sample indexOwner is a CouchDB index on JSON content. The color~name index is simply another key added to the channel/chaincode namespace for the purpose of doing efficient key range queries, in this case it allows you to quickly find any marble of a certain color. It's a technique to manually create an index-like data structure on any key/value database and works on both leveldb and couchdb. The marbles02 code comments explain it more fully.

DeepakMP (Sat, 03 Nov 2018 13:59:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5n6j8x9dyt66hqXBr) @dave.enyeart Appreciate a lot. I've added a response.

DeepakMP (Sat, 03 Nov 2018 14:01:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4p7SKnF9fhtDz43xh) @dave.enyeart I'm currently referring to marbles02_private rather than marbles02 because I am using private collections in my system too. I need instructions to get my index working. I dont care about composite keys at the moment. Weird thing is the function switcher is failing- which is what is highly perplexing.

DeepakMP (Sat, 03 Nov 2018 14:02:46 GMT):
I could understand if the index or the query function failed but function name not matching is rather a horrible error to get.

dave.enyeart (Sat, 03 Nov 2018 14:04:46 GMT):
something is not as you expect... add log statements to your chaincode to troubleshoot

sundarsuman1994 (Sat, 03 Nov 2018 14:56:35 GMT):
Has joined the channel.

DeepakMP (Sat, 03 Nov 2018 15:26:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i8n6ihoAaYwzCCqoA) @dave.enyeart @dave.enyeart Can you suggest what else I can do? My Println() and Error suggests that my query isn't even entering the function from the function switcher. I first thought they might be entering the functions and then leaving due to an error or bad handling but a Println that I added as the very first line of the function doesn't execute, indicating the function isn't even getting called. I mean, my function name in query is: "databynotdeleted" and in my function switcher it is "databynotdeleted", and these two aren't matching. What are my options here? `case "databynotdeleted": //passes rich query with use_index to richqueryhandler return t.databynotdeleted(stub, args)` and `invoke is running databynotdeleted invoke did not find func: databynotdeleted`

DeepakMP (Sat, 03 Nov 2018 15:26:38 GMT):
query: `peer chaincode query -C mychannel -n tcchc -c '{"Args":["databynotdeleted", "{\"selector\":{\"docType\":\"MemberInfo\",\"isdeleted\":\"20\"}, \"use_index\":[\"_design/indexMemberNotdeletedDoc\", \"indexMemberNotdeleted\"]}"]}'`

dave.enyeart (Sat, 03 Nov 2018 16:06:52 GMT):
@DeepakMP print your function and arguments at the beginning of Invoke.

zhuhwen (Sun, 04 Nov 2018 03:03:18 GMT):
Has joined the channel.

zhuhwen (Sun, 04 Nov 2018 03:03:30 GMT):
hello, when I startFabric.sh,one WARNING occurred. I want to know how to solve it.And the warning’s reason. Could you help me? MrGreeddeMacBook-Pro:~ mr.greed$ ~/fabric-dev-servers/startFabric.sh Development only script for Hyperledger Fabric control Running 'startFabric.sh' FABRIC_VERSION is unset, assuming hlfv12 FABRIC_START_TIMEOUT is unset, assuming 15 (seconds) Removing network composer_default WARNING: Network composer_default not found. Creating network "composer_default" with the default driver Creating ca.org1.example.com ... done Creating orderer.example.com ... done Creating couchdb ... done Creating peer0.org1.example.com ... done

mayank-sahai (Sun, 04 Nov 2018 05:13:28 GMT):
Has joined the channel.

mayank-sahai (Sun, 04 Nov 2018 05:13:43 GMT):
what does fabric_ca_client.register() return

anil1890 (Sun, 04 Nov 2018 14:33:22 GMT):
Has joined the channel.

anil1890 (Sun, 04 Nov 2018 14:33:42 GMT):
hi guys

anil1890 (Sun, 04 Nov 2018 14:33:54 GMT):
need help to solve this error

anil1890 (Sun, 04 Nov 2018 14:34:05 GMT):
while i am starting ./startFabric.sh

anil1890 (Sun, 04 Nov 2018 14:35:24 GMT):

Clipboard - November 4, 2018 6_26 AM.png

Daka (Sun, 04 Nov 2018 18:15:49 GMT):
Hi, is there any a bit more expanded Fabric tutorial, where I can play with different types of DBs and certificates ?

Daka (Sun, 04 Nov 2018 19:42:31 GMT):
Hi, I need a bit of an explanation this is a note from the official documentations on Chaincode: Chaincode should only be installed on endorsing peer nodes of the owning members of the chaincode to protect the confidentiality of the chaincode logic from other members on the network. Those members without the chaincode, can’t be the endorsers of the chaincode’s transactions; that is, they can’t execute the chaincode. However, they can still validate and commit the transactions to the ledger. so the question is, which are those peers that can still validate and commit transactions to the ledger, that are not endorsers

yacovm (Sun, 04 Nov 2018 19:59:59 GMT):
@Daka it's simple... you have a peers. every peer is a "Committing peer"

yacovm (Sun, 04 Nov 2018 20:00:06 GMT):
because it commits blocks to its ledger

yacovm (Sun, 04 Nov 2018 20:00:12 GMT):
if you install a chaincode `foo` on a peer

yacovm (Sun, 04 Nov 2018 20:00:18 GMT):
it is an endorser for `foo`

yacovm (Sun, 04 Nov 2018 20:00:24 GMT):
nothing more to it....

Daka (Sun, 04 Nov 2018 20:03:47 GMT):
@yacovm but is a non-endorser peer for foo, can still validate it ?

Daka (Sun, 04 Nov 2018 20:06:03 GMT):
lemme re-phrase this broken sentence can a peer, that does not have the chaincode installed, still validate a transaction ?

Javi (Sun, 04 Nov 2018 20:07:35 GMT):
Hi all! I think I found a bug in the `byfn.sh` file. When the script executes the orderer genesis block it didn't use the `channelID` flag, and by default, it creates one channel with the id `testchainid`. This behaviour would be correct if in the next steps we didn't indicate a `-chanelID`. What do you think??

Daka (Sun, 04 Nov 2018 20:07:41 GMT):
@yacovm Thank you

Daka (Sun, 04 Nov 2018 20:08:34 GMT):
@yacovm which is the non-endorser peer that can validate transactions ?

Daka (Sun, 04 Nov 2018 20:09:53 GMT):
or is it restricted to only marking that a transaction is not valid, due to transaction not being able to be put for validation ?

yacovm (Sun, 04 Nov 2018 20:13:49 GMT):
they all validate them....

yacovm (Sun, 04 Nov 2018 20:13:58 GMT):
they validate signatures and MVCC

Daka (Sun, 04 Nov 2018 20:15:33 GMT):
so endorsers are only there to simulate what will happen to the network (correct or incorrect things) if the transaction is added to the blockchain ?

yacovm (Sun, 04 Nov 2018 20:15:56 GMT):
yeah

Daka (Sun, 04 Nov 2018 20:16:14 GMT):
Thank you very much ^_^

ClementeSerrano (Sun, 04 Nov 2018 21:02:38 GMT):
Hi guys. I have been weeks trying to deploy locally my own Fabric network, but I can't. I don't want to use "Org1", "Org2", "mychannel" and all names from "example.com" of the first-network tutorial (https://github.com/hyperledger/fabric-samples/tree/release-1.3/first-network). I have changed all .sh and .yaml files to my custom organizations, orderers and peers. I'm able to generate certificates and generate channel artifacts, but I cannot start running the network end to end

ClementeSerrano (Sun, 04 Nov 2018 21:04:51 GMT):
There are two scripts inside a folder named "scripts" (script.sh and utils.sh) that throw me errors:

ClementeSerrano (Sun, 04 Nov 2018 21:05:35 GMT):

Screenshot 2018-11-04 at 18.04.23.png

ClementeSerrano (Sun, 04 Nov 2018 21:06:02 GMT):
Please see my code at https://github.com/ClementeSerrano/evolve/tree/master/network

ClementeSerrano (Sun, 04 Nov 2018 21:10:06 GMT):
I do not know how to create my own network. All the tutorials are based on "Org1", "Org2" and all of "example.com". The tutorial that most resembles a personalized network is the "balance-transfer" (https://github.com/hyperledger/fabric-samples/tree/release-1.3/balance-transfer), which also throws errors to the time to test the API (step of "Instantiate chaincode") Please help!!!

Daka (Sun, 04 Nov 2018 22:24:12 GMT):
@ClementeSerrano have you tried to run the network with the manual steps (not the script)?

ClementeSerrano (Sun, 04 Nov 2018 22:57:35 GMT):
Yes, no results

ClementeSerrano (Sun, 04 Nov 2018 22:58:11 GMT):
Are you developing your own network or following the examples?

Daka (Sun, 04 Nov 2018 23:24:14 GMT):
I am trying to create my own network

Daka (Sun, 04 Nov 2018 23:24:37 GMT):
based on the manuals, I was able to create several more peers

Daka (Sun, 04 Nov 2018 23:25:28 GMT):
and I think I was able to have different organizations, however since the container tools, should be changed with proper certificates and database, i didn't get far

Daka (Sun, 04 Nov 2018 23:25:50 GMT):
and i am still learning the flow of the network

ClementeSerrano (Mon, 05 Nov 2018 00:01:26 GMT):
I've been studing a lot Hyperledger processes (all the background behind), it's my bachelor's degree thesis. I have developed good documentation about all the blockchain flow processes of Hyperledger, I can share it to you if you want

ClementeSerrano (Mon, 05 Nov 2018 00:29:27 GMT):

My error

ClementeSerrano (Mon, 05 Nov 2018 00:30:35 GMT):
This is my problem: the script.sh file doesn't recognize the folder of Docker, so I cannot create a channel

ClementeSerrano (Mon, 05 Nov 2018 00:31:04 GMT):
script.sh located in https://github.com/hyperledger/fabric-samples/blob/release-1.3/first-network/scripts/script.sh

ClementeSerrano (Mon, 05 Nov 2018 02:20:41 GMT):

Error: orderer client failed to connect to orderer

ClementeSerrano (Mon, 05 Nov 2018 02:22:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H7z4fPGcYy5FWotxf) This is my main error: while trying to connect to orderer, connetion fails due to timeout. I'm running byfn.sh addapted to my organizations and peers. Any idea?

Sasadara (Mon, 05 Nov 2018 04:25:02 GMT):
Hi, How to scale up a blockchain network by adding more peers which created using docker-swarm while running? (Example - Helping endorsing or helping to solve a transaction, like mining in ethereum)

rangeshsripathi (Mon, 05 Nov 2018 07:30:58 GMT):
Has joined the channel.

rangeshsripathi (Mon, 05 Nov 2018 07:31:59 GMT):
Hi,

rangeshsripathi (Mon, 05 Nov 2018 07:32:36 GMT):
I am unable to submit endorsed transaction to order via Node SDK ..

rangeshsripathi (Mon, 05 Nov 2018 07:32:36 GMT):
I am unable to submit endorsed transaction to orderer via Node SDK ..

rangeshsripathi (Mon, 05 Nov 2018 07:32:58 GMT):
https://stackoverflow.com/questions/53149967/hyperledger-fabric-unable-to-sendtransaction-to-orderer-using-node-sdk

rangeshsripathi (Mon, 05 Nov 2018 07:33:26 GMT):
Any clue where I am going wrong ?

rangeshsripathi (Mon, 05 Nov 2018 07:33:43 GMT):

Clipboard - November 5, 2018 1:03 PM

rangeshsripathi (Mon, 05 Nov 2018 07:36:55 GMT):
It's TLS Enabled , I have provided the certificates in 'pem' for both orderer and peer, while the peer is able to connect via grpcs , orderer fails to connect :/

rangeshsripathi (Mon, 05 Nov 2018 07:38:28 GMT):
@ClementeSerrano : Is your orderer service running ? can you check the status with docker ps -a command ?

coderx (Mon, 05 Nov 2018 07:52:27 GMT):
Can anyone help me with a query? I am not able short query data ` query SelectProperyHistory { description: "Select owners update" statement: SELECT org.zeehaus.PropertyOwnersUpdate WHERE (property_details.propertyId == _$propertyId) ORDER BY [timestamp ASC] }`

coderx (Mon, 05 Nov 2018 07:52:27 GMT):
Can anyone help me with a query? I am not able short query data ``` query SelectProperyHistory { description: "Select owners update" statement: SELECT org.google.PropertyOwnersUpdate WHERE (property_details.propertyId == _$propertyId) ORDER BY [timestamp ASC] } ```

coderx (Mon, 05 Nov 2018 07:52:27 GMT):
Can anyone help me with a query? I am not able short query data `query SelectProperyHistory { description: "Select owners update" statement: SELECT org.zeehaus.PropertyOwnersUpdate WHERE (property_details.propertyId == _$propertyId) ORDER BY [timestamp ASC] }`

coderx (Mon, 05 Nov 2018 07:52:27 GMT):
Can anyone help me with a query? I am not able short query data ``` query SelectProperyHistory { description: "Select owners update" statement: SELECT org.zeehaus.PropertyOwnersUpdate WHERE (property_details.propertyId == _$propertyId) ORDER BY [timestamp ASC] } ```

coderx (Mon, 05 Nov 2018 07:52:41 GMT):
ORDER BY not working

coderx (Mon, 05 Nov 2018 07:53:06 GMT):
I have a nested field which i was not able to apply with order by

coderx (Mon, 05 Nov 2018 08:04:24 GMT):
*No one is helpful here* :sweat:

ruien (Mon, 05 Nov 2018 08:17:29 GMT):
Hello everyone. All of my orgs have AnchorPeers configured in `configtx.yaml`, but they're not present when I inspect the genesis block created by `configtxgen`, and they're not in the channel creation tx either. As a result, peers joining the channel say something like: `[gossip/gossip] learnAnchorPeers -> INFO 027 No configured anchor peers of Org1MSP for channel mychannel to learn about`. I would expect the Anchor Peers to be included in the channel creation tx, and also subsequent channel update transactions when adding future orgs. Any ideas?

dcasado (Mon, 05 Nov 2018 08:27:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMKgE65EwdxgDuxsy) @ruien Have you executed the update to the channel with the anchors? https://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html#update-the-anchor-peers

ruien (Mon, 05 Nov 2018 08:32:02 GMT):
@dcasado Indeed, I think this is the problem. I didn't realize i was a separate operation. Thanks!

ruien (Mon, 05 Nov 2018 08:32:02 GMT):
@dcasado Indeed, I think this is the problem. I didn't realize i was a separate operation (I expected the "update anchor peers" would only be used to change them later). Thanks!

purushothamkdr453 (Mon, 05 Nov 2018 09:05:26 GMT):
Hey I am referring to this article https://www.skcript.com/svr/setting-hyperledger-fabric-network-multiple-chaincodes-channels/, it is about setting up multiple chaincodes and channels

purushothamkdr453 (Mon, 05 Nov 2018 09:06:17 GMT):
chaincode src path is - github.com/chaincode/one

purushothamkdr453 (Mon, 05 Nov 2018 09:06:47 GMT):
does it mean that we download the chaincode from github, i dont find any repo as such?

purushothamkdr453 (Mon, 05 Nov 2018 09:08:54 GMT):
and also what is significance of GOPATH, I have installed GO, so when I download the github.com/chaincode/one repo, does it get downloaded to GOPATH?

Mr.Reddington (Mon, 05 Nov 2018 10:12:28 GMT):
Hi experts, I have built a simple rest API in Go using “github.com/gorilla/mux” with a simple POST and GET method. I build my chain code with a simple structure and It works. The chaincode has two methods, one that puts new elements to the chaincode and get elements from the chaincode. I’m connecting to the peer (“docker exec -it cli bash”) and calling the invoke method from the same terminal that I installed the chaincode, and it works. I’m checking the Couch Db and the records gets updated. The invoke method looks like this: peer chaincode invoke -o orderer.example.com:7050 --tells --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n marbles01 -c '{"Args":["CreateWareHousesFromFile","mr1","BCN","35","Tom", "Alex"]}' Know I’m traing to make the same Invoke call from my Go REST API and I’m stack, any wane knows how to make this call from the Go REST API?

Mr.Reddington (Mon, 05 Nov 2018 10:12:28 GMT):
Hi Experts Anyone could suggest me good tutorial or documentation link of the #fabric-sdk-go ? I’m trying to learn how an own REST API build in go could interact with the peer using #fabric-ds-go.

Mounikak (Mon, 05 Nov 2018 10:20:23 GMT):
Has joined the channel.

Mounikak (Mon, 05 Nov 2018 10:20:56 GMT):
Can anyone please suggest how to add organisation to a new channel

Mounikak (Mon, 05 Nov 2018 10:22:27 GMT):
how do we add new channel dynamically to fabric network?

dcasado (Mon, 05 Nov 2018 10:46:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fsjaLJsE4sJSXNjW9) @Mounikak Take a look at this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html

twoneks (Mon, 05 Nov 2018 11:23:13 GMT):
Hi I'm having trouble to instanciate my cc to the blockchain service This is my erorr ``` The chaincode installed successfully, but instantiation failed because of this error: Instantiate failed on because of this error: 2 UNKNOWN: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# npl.v0/chaincode/vendor/golang.org/x/crypto/sha3 /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/crypto/sha3/keccakf_amd64.go:13: missing function body for "keccakF1600" # npl.v0/chaincode/vendor/go.uber.org/zap /chaincode/input/src/npl.v0/chaincode/vendor/go.uber.org/zap/field.go:33: syntax error: unexpected = in type declaration # npl.v0/chaincode/vendor/golang.org/x/sys/unix /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go:13: missing function body for "gettimeofday" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:10: missing function body for "SyscallNoError" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:14: missing function body for "RawSyscallNoError" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12: missing function body for "Syscall" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13: missing function body for "Syscall6" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14: missing function body for "RawSyscall" /chaincode/input/src/npl.v0/chaincode/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15: missing function body for "RawSyscall6" " ``` the only similar issue I found is this https://lists.hyperledger.org/g/fabric/topic/17549226 I'm very very stuck since 2 days. Please if someone could help it will be super appreciated

Nihcep (Mon, 05 Nov 2018 11:37:02 GMT):
Hi all, I'm trying to create a new channel with an org not declared on the consortium so I'm facing the issue : `Attempted to include a member which is not in the consortium`. My question is, how to add an Organisation to an existing consortium in order to allow it to create a new channel ?

Nihcep (Mon, 05 Nov 2018 11:37:06 GMT):
Thank you

anjalinaik (Mon, 05 Nov 2018 12:39:24 GMT):
Hi Experts``` Can you please help me with below error `2018-11-05 12:36:53.450 UTC [shim] userChaincodeStreamGetter -> ERRO 001 context deadline exceeded error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150 main.main /chaincode/input/src/github.com/fabcar/fabcar.go:200 runtime.main /opt/go/src/runtime/proc.go:198 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 Error creating new Smart Contract: error trying to connect to local peer: context deadline exceeded` ```

Raycoms (Mon, 05 Nov 2018 13:32:40 GMT):
This link from the tutorial is not working anymore: https://github.com/hyperledger/fabric/blob/master/docs/Setup/Chaincode-setup.md

Raycoms (Mon, 05 Nov 2018 13:32:50 GMT):
https://openblockchain.readthedocs.io/en/latest/Setup/JAVAChaincode/

Raycoms (Mon, 05 Nov 2018 13:33:41 GMT):
Actually, almost none of the internal links I'm trying to use are working

TimoGlastra (Mon, 05 Nov 2018 14:14:31 GMT):
Has joined the channel.

Raycoms (Mon, 05 Nov 2018 14:44:09 GMT):
Are there any restrictions on chaincode in terms of complexity can I have something like university { areas: [ ] }

Raycoms (Mon, 05 Nov 2018 14:44:09 GMT):
Are there any restrictions on chaincode in terms of complexity can I have something like university { areas: [ {}, {},{} ] }

ClementeSerrano (Mon, 05 Nov 2018 14:58:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=77ksFKxrQwEhdqaui) @rangeshsripathi Ok, I'll check it

vanitas92 (Mon, 05 Nov 2018 15:24:10 GMT):
Hello everyone. I would like to monitor my Hyperledger Fabric network using another tool such as Prometheus or Telegraf apart from Hyperledger Explorer. I cannot find any documentation about monitoring the network. Does somebody been able to accomplish it? Thank you very much!

vanitas92 (Mon, 05 Nov 2018 15:24:10 GMT):
Hello everyone. I would like to monitor my Hyperledger Fabric network using another tool such as Prometheus or Telegraf apart from Hyperledger Explorer. I cannot find any documentation about monitoring the network. Has somebody been able to accomplish it? Thank you very much!

Mr.Reddington (Mon, 05 Nov 2018 15:37:02 GMT):
Hi Experts I have built a simple rest API in Go using “github.com/gorilla/mux” with a simple POST and GET method. I build my chain code with a simple structure and It works. The chaincode has two methods, one that puts new elements to the chaincode and get elements from the chaincode.

Mr.Reddington (Mon, 05 Nov 2018 15:37:02 GMT):
Hi Experts Anyone could suggest me good tutorial or documentation link of the #fabric-sdk-go ? I’m trying to learn how an own REST API build in go could interact with the peer using #fabric-ds-go.

Hari.Jella (Mon, 05 Nov 2018 15:51:10 GMT):
Has joined the channel.

jrosmith (Mon, 05 Nov 2018 16:30:03 GMT):
@Mr.Reddington you can just plug the github project into [godoc](https://godoc.org/github.com/hyperledger/fabric-sdk-go)

Mr.Reddington (Mon, 05 Nov 2018 16:45:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cupT5rYM4rsMppQAP) @jrosmith Hi there @jrosmith thank you very much for your answer. I’m checking the documentation and I hope reading the doc will solve problem if not I will reach back to the community with doubts.

Mr.Reddington (Mon, 05 Nov 2018 16:45:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cupT5rYM4rsMppQAP) @jrosmith Hi there @jrosmith thank you very much for your answer. I’m checking the documentation and I hope reading the doc will solve the problem if not I will reach back to the community with doubts.

ThucVi (Mon, 05 Nov 2018 16:53:48 GMT):
Has joined the channel.

ThucVi (Mon, 05 Nov 2018 16:54:31 GMT):
[how can i resolve this problem] I clone project fabric-sdk-java but error when import project to eclipse ide... this problem is Description Resource Path Location Type The method getEnvelope() from the type EnvelopeDeserializer refers to the missing type Envelope EndorserTransactionEnvDeserializer.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk line 31 Java Problem Description Resource Path Location Type The method getPayload() from the type PayloadDeserializer refers to the missing type Payload TransactionPayloadDeserializer.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk line 42 Java Problem Description Resource Path Location Type The return types are incompatible for the inherited methods Identity.createSerializedIdentity(), X509Identity.createSerializedIdentity() X509SigningIdentity.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk/identity line 7 Java Problem Description Resource Path Location Type The return types are incompatible for the inherited methods Identity.createSerializedIdentity(), X509Identity.createSerializedIdentity() X509SigningIdentity.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk/identity line 7 Java Problem Description Resource Path Location Type Type mismatch: cannot convert from HashSet to Set ServiceDiscovery.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk line 645 Java Problem Description Resource Path Location Type Type mismatch: cannot convert from HashSet to Set ServiceDiscovery.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk line 703 Java Problem Description Resource Path Location Type Type mismatch: cannot convert from LinkedList to List Channel.java /fabric-sdk-java/src/main/java/org/hyperledger/fabric/sdk line 5418 Java Problem

fhmarino (Mon, 05 Nov 2018 18:20:36 GMT):
Hi there! I must deserialize organization identity, I'm using the "github.com/hyperledger/fabric/protos/msp" to achieve it, but, when I tries install my chaincode (write in Go), i've got the error: can't load package: package github.com/hyperledger/fabric/protos/msp: cannot find package "github.com/hyperledger/fabric/protos/msp" in any of: /opt/go/src/github.com/hyperledger/fabric/protos/msp (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/protos/msp (from $GOPATH) I've try use go get and govendor to install this dependency, but it's failed... Actually I note that git repository (github.com/hyperledger/fabric/protos/msp) does not exists anymore... Could anyone suggest me a solution?

dougsland (Mon, 05 Nov 2018 20:05:22 GMT):
Has joined the channel.

Abhishek_Jagwani (Mon, 05 Nov 2018 20:35:40 GMT):
changing batch timeout in configtx.yaml file doesn't build up the network using "./byfn.sh up" command but throws an error : "Failed to execute end to end scenario"."make sure the chaincode mycc has been successfully instantiated and try again: chaincode mycc not found". How can i resolve the issue?

lightcap (Tue, 06 Nov 2018 00:34:33 GMT):
I seem to be able to change the Common Name for a CA without a problem using the `cryptogen` tool. I can validate it with `openssl x509`. But, I can't find *any place* to do the same for the TLS cert. It always uses `tlsca` as the hostname in the CN. Does anyone know to change either the CN for the TLS cert -or- the FQDN so it matches the default CN?

HanaLejmi (Tue, 06 Nov 2018 00:42:18 GMT):
Has joined the channel.

HanaLejmi (Tue, 06 Nov 2018 00:42:36 GMT):
Hello,, has anyone encountered this error?

HanaLejmi (Tue, 06 Nov 2018 00:42:38 GMT):
Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload:"\n \300O\274\007\244\256\031J\224\202\202\2508b\r\025\335\222\346\246\317np\035\034\324j\373\206\353\373\343\022Y\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022-\n\004mycc\022%\n\007\n\001a\022\002\010\003\n\007\n\001b\022\002\010\003\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\013\022\004mycc\032\0031.0" endorsement:

HanaLejmi (Tue, 06 Nov 2018 00:43:29 GMT):
it was produced while trying to invoke a transaction

coveloper (Tue, 06 Nov 2018 02:04:56 GMT):
Does creating a channel between two Business Networks mean I can selectively share *any* data between those two Business Network Peers? And more importantly, NOT share certain data? Once a channel is established, do both Networks have a copy of ALL of the data, but visibility is controlled by Chaincode layer only?

coveloper (Tue, 06 Nov 2018 02:08:40 GMT):
I want to be able to selectively share *some* shared data between business networks, but not all

awes0menessInc (Tue, 06 Nov 2018 03:39:45 GMT):
Has joined the channel.

ChebuRakshu (Tue, 06 Nov 2018 06:24:04 GMT):
Has joined the channel.

ruien (Tue, 06 Nov 2018 06:52:04 GMT):
@HanaLejmi This happens when your two peers have out-of-sync ledgers (check the terminal output and make sure that they've both committed up to to the latest block). It can also happen if they have out-of-sync chaincode.

ruien (Tue, 06 Nov 2018 06:54:32 GMT):
@coveloper my understanding is that any data on the ledger in the world state is visible to the peers on the channel unless you've encrypted it, and chaincode doesn't really control visibility at all. However, you can share specific data between peers with private collections between authorized peers on a channel.

ruien (Tue, 06 Nov 2018 06:55:29 GMT):
@lightcap I don't know much about cryptogen, but this can be done with fabric-ca.

ruien (Tue, 06 Nov 2018 06:57:05 GMT):
@Abhishek_Jagwani It sounds like your chaincode isn't on the GOPATH -- check the path in your `peer chaincode install`, specifically the go import path specified by `-p`

coveloper (Tue, 06 Nov 2018 06:57:11 GMT):
@ruien thanks, reading about Private data collections now. I guess chaincode could control visibility in a way if queries controlled what data was returned, but not exactly what I was hoping for

bh4rtp (Tue, 06 Nov 2018 06:57:44 GMT):
hi, why `typescript` was added to `fabric-samples`?

ruien (Tue, 06 Nov 2018 06:58:50 GMT):
@Mr.Reddington I found the source code the `fabric-cli` tool from https://github.com/securekey/fabric-examples to be a good SDK reference.

ruien (Tue, 06 Nov 2018 06:58:50 GMT):
@Mr.Reddington I found the source code of the `fabric-cli` tool from https://github.com/securekey/fabric-examples to be a good SDK reference.

ruien (Tue, 06 Nov 2018 07:01:29 GMT):
@Raycoms Presuming that you use go chaincode, you can basically use any json representation that unmarshals to a Go struct.

ruien (Tue, 06 Nov 2018 07:03:58 GMT):
@Nihcep the members of the consortium are specified in configtx.yaml in `Profiles -> (channel profile) -> Application -> Organizations`, given that `Profiles -> (channel profile) -> Consortium` is correct

ruien (Tue, 06 Nov 2018 07:10:32 GMT):
Hello Everyone -- I'm having trouble adding the Anchor Peers for an organization which I've added to a channel later. I also haven't been able to find any documentation on this -- the "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1?

AndresMartinezMelgar.itcl (Tue, 06 Nov 2018 07:34:46 GMT):
hi everyone. Do you have a sequence or class diagram that describes the base skeleton of hyperledger fabric. It help me a lot of as a new user.

AndresMartinezMelgar.itcl (Tue, 06 Nov 2018 07:34:49 GMT):
Thx

jfkidear (Tue, 06 Nov 2018 07:42:47 GMT):
Has joined the channel.

jfkidear (Tue, 06 Nov 2018 07:43:12 GMT):
jfk@ubuntu:~/fabric-samples/first-network$ sudo ./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.3.0 DOCKER_IMAGE_VERSION=1.3.0 /home/jfk/fabric-samples/first-network/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /home/jfk/fabric-samples/first-network/../bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2018-11-05 23:40:25.975 PST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-11-05 23:40:25.976 PST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-11-05 23:40:26.058 PST [common/tools/configtxgen] doOutputBlock -> INFO 003 Generating genesis block 2018-11-05 23:40:26.060 PST [common/tools/configtxgen] doOutputBlock -> INFO 004 Writing genesis block + res=0 + set +x ################################################################# ### Generating channel configuration transaction 'channel.tx' ### ################################################################# + configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel 2018-11-05 23:40:26.276 PST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-11-05 23:40:26.331 PST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx 2018-11-05 23:40:26.339 PST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 003 Writing new channel tx + res=0 + set +x ################################################################# ####### Generating anchor peer update for Org1MSP ########## ################################################################# + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP 2018-11-05 23:40:26.474 PST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-11-05 23:40:26.530 PST [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update 2018-11-05 23:40:26.530 PST [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update + res=0 + set +x ################################################################# ####### Generating anchor peer update for Org2MSP ########## ################################################################# + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP 2018-11-05 23:40:26.612 PST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-11-05 23:40:26.671 PST [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update 2018-11-05 23:40:26.671 PST [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update + res=0 + set +x Creating network "net_byfn" with the default driver Creating volume "net_peer0.org2.example.com" with default driver Creating volume "net_peer1.org2.example.com" with default driver Creating volume "net_peer1.org1.example.com" with default driver Creating volume "net_peer0.org1.example.com" with default driver Creating volume "net_orderer.example.com" with default driver Creating peer0.org2.example.com Creating peer1.org2.example.com Creating orderer.example.com Creating peer0.org1.example.com Creating peer1.org1.example.com Creating cli ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

jfkidear (Tue, 06 Nov 2018 07:44:35 GMT):
How to solve the problem?

AndresMartinezMelgar.itcl (Tue, 06 Nov 2018 07:54:19 GMT):
@jfkidear i just have same problem. I solve it using ./byfn down and regenerate again. If it dont work try stoping all docker images

jfkidear (Tue, 06 Nov 2018 08:19:53 GMT):
@AndresMartinezMelgar.itcl After run ./byfn.sh -m down and ./byfn.sh -m generate I just run ./byfn.sh up when I got the same problem

jfkidear (Tue, 06 Nov 2018 08:20:19 GMT):
jfk@ubuntu:~/fabric-samples/first-network$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

jfkidear (Tue, 06 Nov 2018 08:20:45 GMT):
jfk@ubuntu:~/fabric-samples/first-network$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES jfk@ubuntu:~/fabric-samples/first-network$ sudo ./byfn.sh up

jfkidear (Tue, 06 Nov 2018 08:27:56 GMT):
jfk@ubuntu:~/fabric-samples/first-network$ sudo docker exec -it cli bash root@33a0cd11ed52:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

caveman7 (Tue, 06 Nov 2018 08:44:08 GMT):
In the ApplicationDefaultPolicies in configtx.yaml (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L194) there is a rule called ANY Readers, ANY Writers and MAJORITY Admins. where can we find the definition of Readers, Writers and Admins?

caveman7 (Tue, 06 Nov 2018 08:44:08 GMT):
In the ApplicationDefaultPolicies in configtx.yaml (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L194) there is a rule called ANY Readers, ANY Writers and MAJORITY Admins. where can we find the definition of Readers, Writers and Admins? does it refer to the SampleOrgPolicies (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L35)?

ruien (Tue, 06 Nov 2018 08:48:34 GMT):
@caveman7 My understanding is that this is just the policies for each org in the consortium, so for instance https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L35

ruien (Tue, 06 Nov 2018 08:48:34 GMT):
@caveman7 My understanding is that this is just the policies for each org in the consortium, so for instance https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L35 --- so, for SampleOrg, a Reader is any member (but you could say, for instance, `'SampleOrg.peer'` to restrict that)

ruien (Tue, 06 Nov 2018 08:48:34 GMT):
Yeah, exactly

caveman7 (Tue, 06 Nov 2018 08:50:34 GMT):
so for example, there can be instances whereby in Org1, the Reader is Org1MSP.member and in Org2, the Reader is Org2MSP.admin? in that case for this ACL policy: ```cscc/GetConfigBlock: /Channel/Application/Readers``` , Org1 member can get the config block but for Org2, it has to be the Org Admin?

ruien (Tue, 06 Nov 2018 08:51:25 GMT):
Yes, exactly (as far as I understnd)

caveman7 (Tue, 06 Nov 2018 08:53:57 GMT):
do you know the difference between Application section (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L118) and Channel section (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L304)?

caveman7 (Tue, 06 Nov 2018 08:53:57 GMT):
do you know the difference between Application section (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L118) and Channel section (https://github.com/hyperledger/fabric/blob/c613a45198a5447a475b3baf6d8e754bd6043011/sampleconfig/configtx.yaml#L304)? the description is a bit abstract to me

Nihcep (Tue, 06 Nov 2018 08:55:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YKQioxP6MKJwzxDtD) @ruien Yeah I know it, but is there a way to join a Consortium on an existing network ? (with a genesis block already generated)

ruien (Tue, 06 Nov 2018 09:06:47 GMT):
@Nihcep Do you mean adding an Org to the existing Consortium?

ruien (Tue, 06 Nov 2018 09:06:47 GMT):
@Nihcep Do you mean adding an Org to the existing Consortium? If so, the answer is "I think so, but I have not gotten it to work". This is the same problem I am dealing with now. Adding the org works fine ( documentation is at https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html ), but every Org really needs to set the Anchor Peers, and I haven't been able to successfully send the `AnchorPeersUpdate` transaction after they join the channel -- this means the other peers on the channel don't learn about them.

inzamam (Tue, 06 Nov 2018 09:13:31 GMT):
hi, i dont think the current sample project in guthub has the smart contracts mentioned in this documentation https://hyperledger-fabric.readthedocs.io/en/latest/developapps/smartcontract.html sample project : https://github.com/hyperledger/fabric-samples

caveman7 (Tue, 06 Nov 2018 09:32:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D3XjyioeGohQ9ZRhc) @ruien yep tried this and it's correct. it will refer the Policies in Org section

Nihcep (Tue, 06 Nov 2018 09:46:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e5aXX6vjzgSN6hGkL) @ruien If I understand right, the anchor peer is defined on your updated configtx.yaml and exported when you make `export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json` isn't it ? You mean that your new created peer don't comunicate with other ?

Nihcep (Tue, 06 Nov 2018 09:47:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e5aXX6vjzgSN6hGkL) @ruien About my problem, I try to create a new channel (create, not join) with an Org not defined in the initial Consortium (the one used for create the genesis block).

ruien (Tue, 06 Nov 2018 09:50:19 GMT):
@Nihcep no, `configtxgen -printOrg` won't include any information about anchor peers, and the anchor peer's address won't be in `org3.json`. This is what `configtxgen -outputAnchorPeersUpdate` is for.

ruien (Tue, 06 Nov 2018 09:50:19 GMT):
@Nihcep no, `configtxgen -printOrg` won't include any information about anchor peers, and the anchor peer's address won't be in `org3.json`. This is what `configtxgen -outputAnchorPeersUpdate` is for. Example: https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html#create-a-channel-configuration-transaction

ruien (Tue, 06 Nov 2018 09:54:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9LcJYPxvQGPRrg3et) @Nihcep My understanding is that this doesn't work and should not work. After all, the genesis block is defining who can create channels -- it's the ChannelCreationPolicy for the Consortium. Maybe you have to have the new Org join the Consortium on `testchainid` first?

ruien (Tue, 06 Nov 2018 09:54:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9LcJYPxvQGPRrg3et) @Nihcep My understanding is that this doesn't work and should not work. After all, the genesis block is defining who can create channels -- it's the ChannelCreationPolicy for the Consortium. Maybe you have to have the new Org join the Consortium on `testchainid` first? -- I haven't tried this yet, but I will need to within the next week, once I figure out the AnchorPeers issue.

gravity (Tue, 06 Nov 2018 10:34:14 GMT):
hi all. how do you store enrollment credentials (enrollmentId, enrollmentSecret) for network identities (users) in a safe way? I mean, a scret must be stored safely, because we need it as a plain text to enroll a user on a CA server. the case is, we cannot take a password from the web application and use it for the identity on CA, can we? thanks in advance

gravity (Tue, 06 Nov 2018 10:34:14 GMT):
hi all. how do you store enrollment credentials (enrollmentId, enrollmentSecret) for network identities (users) in a safe way? I mean, a secret must be stored safely, because we need it as a plain text to enroll a user on a CA server. the case is, we cannot take a password from the web application and use it for the identity on CA, can we? thanks in advance

MayankM 3 (Tue, 06 Nov 2018 11:40:12 GMT):
Has joined the channel.

MayankM 3 (Tue, 06 Nov 2018 11:41:55 GMT):
Guys, quick question, is it possible to use a cryptocurrency (or any stable coin) within Hyperledger? If yes, how can it be done?

MayankM 3 (Tue, 06 Nov 2018 11:42:34 GMT):
Considering it's not built within hyperledger chain code

Raycoms (Tue, 06 Nov 2018 11:49:38 GMT):
As far as I read there is no native currency and no support for a native currency within hyperledger, you could simulate one using chaincode though

GiovanniNapoli (Tue, 06 Nov 2018 12:06:26 GMT):
Are metadata of a block used during block chaining?

Daka (Tue, 06 Nov 2018 13:42:56 GMT):
@MayankM 3 You can build a cryptocurrency, however it is not advisable within HL Fabric, I think Sawtooth was better for such task

Tommy109 (Tue, 06 Nov 2018 14:06:41 GMT):
can anyone help me figure out what might be the cause of this error:

Tommy109 (Tue, 06 Nov 2018 14:06:52 GMT):
'2018-11-05 17:07:42,200 ERROR [proxy-voting-service-as-400-REGISTERED-ShareHolder-vote-log-task-executor-1] As400VoteLogServiceImpl: AS400: exception while update vote at as400 . c-As400VoteLogServiceImpl, m-startProcess java.sql.SQLException: javax.resource.ResourceException: IJ000460: Error checking for a transaction Caused by: javax.resource.ResourceException: IJ000460: Error checking for a transaction'

kolayuk (Tue, 06 Nov 2018 14:39:11 GMT):
Hi! As I know, there is a limitaition for private data, I cannot write data and query them (GetPrivateDataByPartialCompositeKey for example) in one transaction. Any chance if this limitation will be fixed in future (v.1.4, 1.5)? Or there is no work planned for this issue?

Rochendiil (Tue, 06 Nov 2018 14:41:21 GMT):
Has joined the channel.

jrosmith (Tue, 06 Nov 2018 14:41:49 GMT):
@Tommy109 is this from the java sdk or the java chaincode

Tommy109 (Tue, 06 Nov 2018 14:43:34 GMT):
@jrosmith chaincode

jrosmith (Tue, 06 Nov 2018 14:52:58 GMT):
@Tommy109 java chaincode experts hang out in #fabric-chaincode-dev . please use hastebin.com to post a more complete error log there

Tommy109 (Tue, 06 Nov 2018 14:53:33 GMT):
thanks @jrosmith

Abhishek_Jagwani (Tue, 06 Nov 2018 15:14:05 GMT):
@ruien It is working perfectly fine when I use the default configurations (batch timeout = 2s ). As soon as I change it, the network doesn't build up.

ruien (Tue, 06 Nov 2018 15:17:36 GMT):
Hmm, you mean that this issue is reproducible regardless of whether you increase or decrease the timeout, as long as it's != 2s? Are you fully clearing the ledger, (and zookeeper/kafka data and/or containers if applicable)?

Abhishek_Jagwani (Tue, 06 Nov 2018 16:18:18 GMT):
@ruien Yes it is reproducible. I am pulling the network down. which removes all the peers, orderer, couchDB and docker containers. Why zookeeper/kafka images should be removed?

ruien (Tue, 06 Nov 2018 16:51:48 GMT):
Asking because I've seen similar issues before when the chaincode built into a docker image of the same version isn't rebuilt on an endorser since it sees the original exists, and clearing everything fixed it. I also saw something similar when I completely cleared the ledger but didn't realize I needed to clear kafka too. Just some ideas that might help, but if you're clearing everything then maybe not.

Abhishek_Jagwani (Tue, 06 Nov 2018 16:58:20 GMT):
Yeah i'm clearing it. But still the issue remains the same

dave.enyeart (Tue, 06 Nov 2018 16:59:09 GMT):
@kolayuk What you are asking for is simply not possible. For queries on public channel data, at validation time each peer validates that the query results from simulation time are still valid in latest state and then applies the updates. With private data, not all peers in the channel have the private data, and therefore all the peers can’t consistently validate the query results are still valid (you can’t query on data you don’t have!). Therefore non-key queries and writes are disallowed in the same transaction - chaincode execution will return an error. Your application can however do it in two steps. It can first call a chaincode to query private data, and then call a chaincode function that does key based gets and updates based on the private keys in the result set from step1 (key based gets on private data can be validated even by peers that don’t have the private data, as the read set validation is done on the public hash of the key rather than on the private key itself). If you use this approach, the application must tolerate ‘phantoms’, that is, changes in query result set between query time and commit time. Alternatively you can make at least the keys public and do range queries on the public keys and writes to private keys, in a single read/write transaction.

Naveed3 (Tue, 06 Nov 2018 17:09:59 GMT):
Has joined the channel.

Naveed3 (Tue, 06 Nov 2018 17:10:07 GMT):
Hello, I am new with BlockChain and I have a question..if we want to add more user in hyperledger fabric then how we connect in network??we want add new peer for every user if not please briefly describe?

edoardo_bdf (Tue, 06 Nov 2018 17:24:23 GMT):
When I try to create my channel i get "Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied" in the output of the peer, and in the logs of the orderer i notice this "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected org0ordererMSP, got org0MSP)"

edoardo_bdf (Tue, 06 Nov 2018 17:24:40 GMT):
how do I solve this issue? Do they all have to be part of the same msp?

ruien (Tue, 06 Nov 2018 17:31:24 GMT):
@Naveed3 You can have one peer for each user if you really want to, but normally you would have many users sharing a pool of peers in your organization, and those peers interact with the peers and orderers in the fabric network. Can you elaborate a bit more on why you want to add a new peer for every user? I'm struggling to see the use case for this, but it probably exists.

lightcap (Tue, 06 Nov 2018 17:33:26 GMT):
@ruien any chance you could expand on "can be done with fabric-ca"? I'm running a fabric-ca server. But it's built out by one of the fabric-samples.

ruien (Tue, 06 Nov 2018 17:34:26 GMT):
@edoardo_bdf Normally you'd create the channel from the org0 admin (where org0 is a peer org), but the orderer organizations are separate (at least until we have a BFT ordering service). So maybe you used the wrong admin's MSP, or it could be that you are deploying orderers and peers all within the same org? If you can expand on your network topology and maybe pastebin your error log, the problem will be clearer

ruien (Tue, 06 Nov 2018 17:37:27 GMT):
@lightcap Sure, I'd be happy to, but I've never looked at the sample -- i just deployed it from source without docker. TLS certificates can be the same or different CA than your main fabric certificates, which means if you want this separate then you'd just run a separate fabric-ca process listening, for instance, on a different interface or port. There's really nothing fundamentally different *at all* between the certs themselves, so I'm having difficulty understanding your question.

ruien (Tue, 06 Nov 2018 17:37:27 GMT):
@lightcap Sure, I'd be happy to, but I've never looked at the sample -- i just deployed it from source without docker. TLS certificates can be the same or different CA than your main fabric certificates, which means if you want this separate then you'd just run a separate fabric-ca process listening, for instance, on a different interface or port. There's really nothing fundamentally different *at all* between the certs themselves, so I'm having difficulty understanding your question. Basically, I am able to set the CN in fabric-ca-server-config.yaml, regenerate the ca certs, and use them for fabric and/or TLS.

lightcap (Tue, 06 Nov 2018 17:44:52 GMT):
@ruien thanks. Yeah the question is more about how the `cryptogen` tool works I guess. It takes care of generating all the crypto material from a config file. But that config file seems to have problems with generating a TLS cert (it creates two separate certs, one for the CA and one for TLS).

lightcap (Tue, 06 Nov 2018 17:45:22 GMT):
I probably just ought to build the fabric-ca server from scratch and give up on `cryptogen`

lightcap (Tue, 06 Nov 2018 17:46:06 GMT):
Honestly every sample seems to do things a bit differently, although they all use the same org names.

lightcap (Tue, 06 Nov 2018 17:46:28 GMT):
I'm just trying to adapt the samples to our org structure.

ruien (Tue, 06 Nov 2018 17:46:51 GMT):
I don't use cryptogen since I need a client-server system to produce certs for mobile sdk clients on demand rather than generating them ahead of time. However, what cryptogen is doing- in princple- is right. There's not a big difference between what's happening other than the directory structure -- but fabric-ca's structure is more sane, and I like it better.

lightcap (Tue, 06 Nov 2018 17:47:15 GMT):
ok, that makes sense

lightcap (Tue, 06 Nov 2018 17:47:28 GMT):
we'll need on-demand cert generation as well.

ruien (Tue, 06 Nov 2018 17:48:25 GMT):
To begin with, you could just avoid generating TLS certificates entirely. Copy (or symlink) the user's msp/signcert to their tls/tls.cert, their msp/private key to tls/tls.key, and their msp/ca-cert to tls/tlsca.cert

lightcap (Tue, 06 Nov 2018 17:48:55 GMT):
Yeah, that's similar to what the samples do.

lightcap (Tue, 06 Nov 2018 17:49:06 GMT):
only they use the CA cert for both TLS and CA.

lightcap (Tue, 06 Nov 2018 17:51:48 GMT):
@ruien the whole problem with the TLS certs generated by `cryptogen` in the samples is that the CN doesn't match the FQDN. And I can't find how to change either of those things (to move away from the standard Org1/Org2 naming conventions). Just in case you hear about this issue again :-)

ruien (Tue, 06 Nov 2018 17:54:09 GMT):
Ah, I see what you mean now. /shrug I guess

ruien (Tue, 06 Nov 2018 17:54:20 GMT):
It's 2 AM, so I should sleep. Best of luck!

suenchunhui (Wed, 07 Nov 2018 02:54:40 GMT):
Has joined the channel.

ydcandrew (Wed, 07 Nov 2018 03:57:19 GMT):
Has joined the channel.

ruien (Wed, 07 Nov 2018 04:16:26 GMT):
Hello Everyone -- I'm still dealing with an issue, digging through Fabric source to try to figure it out, but nothing yet. I am unable to add Anchor Peers for an organization which I've added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1?

ruien (Wed, 07 Nov 2018 04:16:26 GMT):
Hello Everyone -- I'm still dealing with an issue, digging through Fabric source to try to figure it out, but nothing yet. I am unable to add Anchor Peers for an organization which I've added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1? I'm on commit `306640d3` (from `release-1.3`)

ruien (Wed, 07 Nov 2018 04:23:03 GMT):
One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-channelID` seems to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

ruien (Wed, 07 Nov 2018 04:23:03 GMT):
One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-profile` and `-channelID` both seem to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

esumit (Wed, 07 Nov 2018 04:48:50 GMT):
What this means --peer-chaincodedev=true , if we start a peer in dev mode or we start a peer not in dev mode, how that flags make a difference ?

esumit (Wed, 07 Nov 2018 04:54:50 GMT):
Chaincodes are started and maintained by peer. But in dev mode, chaincode is built and started by the user.

ruien (Wed, 07 Nov 2018 05:01:07 GMT):
It takes time to build the docker image and redeploy/upgrade the chaincode using an instantiation and then update transactions. This is appropriate for a production environment to keep everyone on the network in-sync and on the same chaincode version, but it makes the development cycle way too slow for serious chaincode dev. By using chaincodedev (see `chaincode-docker-devmode` in fabric-samples) you can easily edit your chaincode source, then Ctrl-C and recompile your chaincode in one window, and re-run your query in another.

esumit (Wed, 07 Nov 2018 05:05:44 GMT):
Thanks @ruien i will look into it

npc0405 (Wed, 07 Nov 2018 05:37:52 GMT):
start failed: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package /github.com/example_cc/go: import "/github.com/example_cc/go": cannot import absolute path trying to instantiate chaincode getting above error any idea?

brianpesy (Wed, 07 Nov 2018 05:47:16 GMT):
Has joined the channel.

brianpesy (Wed, 07 Nov 2018 05:49:39 GMT):
Hi! I'm very new to Hyperledger. I was wondering if it is possible to create several blockchains (a person will have their own blockchain so there will always be new ones if more people register) and inside would only be the transaction between the institution and a certain record in that institution. Instead of querying data directly from the blockchain, it will return an .xml file for example

ruien (Wed, 07 Nov 2018 05:49:40 GMT):
@npc0405 can you pastebin the commands you're running and your chaincode source? It sounds like you're either importing a nonexistent package in the go code or else specifying a nonexistent package in your `-p` path.

ruien (Wed, 07 Nov 2018 05:50:50 GMT):
@brianpesy yes, that's possible. It just means you'd have several channels, and each channel would have as members the institution and the specific user.

brianpesy (Wed, 07 Nov 2018 05:52:21 GMT):
Can this be done on Composer? To clarify, in my scenario, one channel would have the institution and the another will have all the users? The idea is that users can access their information regardless of the institution they go to

ruien (Wed, 07 Nov 2018 05:55:11 GMT):
I don't know anything about composer, sorry. I have never looked at it.

brianpesy (Wed, 07 Nov 2018 05:55:38 GMT):
Not a problem. Thank you very much! :) Is there a composer channel here?

ruien (Wed, 07 Nov 2018 05:56:50 GMT):
I guess #composer

brianpesy (Wed, 07 Nov 2018 05:57:17 GMT):
Wonderful! Thank you very much

brianpesy (Wed, 07 Nov 2018 06:02:27 GMT):
Also, I just need a clarification on the what differs orderers and peers. I've gone through the documentation, but I'm afraid I don't get it all too well

ruien (Wed, 07 Nov 2018 06:11:37 GMT):
Orderers and Peers are entirely different. There's not really any such thing as "an orderer", but rather there is a singular "ordering service" which implements the consensus protocol. That ordering service is only interested in packaging transactions into blocks and sending them to anchor peers. Peers, on the other hand, hold the ledger and world state (leveldb/couchdb). They run chaincode and sign transaction proposals, and they validate and commit the blocks to their ledger when they receive those blocks from the ordering service.

brianpesy (Wed, 07 Nov 2018 06:31:04 GMT):
I'm taking a guess that if I want my institutions and people to be independent, I will have to create a channel for every single stakeholder then?

npc0405 (Wed, 07 Nov 2018 06:35:34 GMT):
@ruien https://hastebin.com/uzuqusorop.cs Above is chaincode I m trying to instantiate through node SDK

npc0405 (Wed, 07 Nov 2018 06:36:30 GMT):
https://hastebin.com/qakefuxifi.json

npc0405 (Wed, 07 Nov 2018 06:36:44 GMT):
instantiate chaincode body from POSTMAN

ruien (Wed, 07 Nov 2018 06:36:45 GMT):
@brianpesy If you went them on completely different ledgers/blockchains then yes, but why not a single blockchain where each piece of data is encrypted using multiparty computation so that only the institution and that one specific individual can read it? Take a look at `openssl smime`

npc0405 (Wed, 07 Nov 2018 06:39:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6sXhCdmjk3zMW3dqd) https://hastebin.com/isesavidoh.json This is install chaincode body request

ruien (Wed, 07 Nov 2018 06:41:14 GMT):
What is the `peer chaincode instantiate` command you're running?

ruien (Wed, 07 Nov 2018 06:41:31 GMT):
and where does this chaincode live?

npc0405 (Wed, 07 Nov 2018 06:42:02 GMT):
its not through CLI but through node sdk http.post requests

ruien (Wed, 07 Nov 2018 06:42:33 GMT):
Right, you interact with the chaincode (invoke / query) over HTTP, but you don't instantiate it that way, do you?

npc0405 (Wed, 07 Nov 2018 06:42:49 GMT):
yes

npc0405 (Wed, 07 Nov 2018 06:43:06 GMT):
instantiate thru postman only http.post call

npc0405 (Wed, 07 Nov 2018 06:43:30 GMT):
http://localhost:4000/channels/mychannel/chaincodes

ruien (Wed, 07 Nov 2018 06:43:32 GMT):
hmm. Does this same issue happen if you instantiate via the command line instead? My guess is that the problem is here.

npc0405 (Wed, 07 Nov 2018 06:43:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gECZ8Swm7y5Mr4ByA) @ruien no, It works

ruien (Wed, 07 Nov 2018 06:44:39 GMT):
Okay, you're venturing into space I am not familiar with, so I probably can't help. I haven't tried to instantiate via the SDK, and I also don't care about node SDK, only go

npc0405 (Wed, 07 Nov 2018 06:45:01 GMT):
:)

npc0405 (Wed, 07 Nov 2018 06:45:36 GMT):
Is it related to setting up GOPATH in environment?

npc0405 (Wed, 07 Nov 2018 06:45:58 GMT):
its specifically in AWS machine

npc0405 (Wed, 07 Nov 2018 06:46:14 GMT):
If I try locally then it works fine

ruien (Wed, 07 Nov 2018 06:46:22 GMT):
From the error it feels like it's passing an incorrect go import path

npc0405 (Wed, 07 Nov 2018 06:46:45 GMT):
same setup work locally

npc0405 (Wed, 07 Nov 2018 06:46:51 GMT):
but not in AWS

ruien (Wed, 07 Nov 2018 06:47:49 GMT):
I've got meetings for the rest of the day -- talk to you guys later.

npc0405 (Wed, 07 Nov 2018 06:48:03 GMT):
Thanks for your time @ruien

brianpesy (Wed, 07 Nov 2018 06:48:54 GMT):
Thank you very much for your help @ruien ! I'll definitely look into that

gioannou983 (Wed, 07 Nov 2018 10:00:27 GMT):
Hey, I am going through the instructions for creating a multi-org setup, instructions are here: https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org. There is one step (Step 11) where you have to generate a business network template (bna file). So the instructions tell you to create one from the online Composer playground, simply by changing the version number from the editor.

gioannou983 (Wed, 07 Nov 2018 10:01:08 GMT):
The problem is, it won't allow me to change the version number and deploy the network. Instead, there is a red circle next to the version number and the Deploy changes button is disabled.

AndresMartinezMelgar.itcl (Wed, 07 Nov 2018 10:10:20 GMT):
Hi, i have a question. If i do a transaction in a specific channel(this transaction is private), then i change other channel... Is ledger reload with mundial state? or I have a new empty ledger? I dont know if i explain :sweat_smile:

Daka (Wed, 07 Nov 2018 11:15:21 GMT):
@AndresMartinezMelgar.itcl you have a ledger for every channel, so if you change to another channel, you will have the history (if the channel is public) and you will know all the participants of the new channel. So if the channel is new and public - empty ledger, no one has done any transactions. If the channel you switch to is private, then, as far as I've read, you will not have the previous transactions of the channel - empty peer ledger.

AndresMartinezMelgar.itcl (Wed, 07 Nov 2018 11:22:30 GMT):
@Daka Ok, thanks! I understand it. But if you join to a private channel,I imagine you are still using the ledger of the rest of the users( the ledger of this channel)? even if you can not see the previous entries, right?

Daka (Wed, 07 Nov 2018 11:28:09 GMT):
@AndresMartinezMelgar.itcl after you join the new private channel, you get information for all the participants and you "start" your ledger history from that point.

AndresMartinezMelgar.itcl (Wed, 07 Nov 2018 11:29:24 GMT):
ok! thanks again

Daka (Wed, 07 Nov 2018 11:29:56 GMT):
no worries

GiovanniNapoli (Wed, 07 Nov 2018 12:01:07 GMT):
Is there a way to output block content in a formetted and readable way?

GiovanniNapoli (Wed, 07 Nov 2018 12:01:07 GMT):
Is there a way to output block content in a formettad and readable way?

GiovanniNapoli (Wed, 07 Nov 2018 12:01:07 GMT):
Is there a way to output block content in a formatted and readable way?

enriquebusti (Wed, 07 Nov 2018 12:01:53 GMT):
Has joined the channel.

ruien (Wed, 07 Nov 2018 12:30:19 GMT):
@GiovanniNapoli `configtxgen -inspectBlock`

GiovanniNapoli (Wed, 07 Nov 2018 12:34:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AepK8htguz7dTfDtJ) @ruien Thanks...Another thing, i just edited `transaction.proto` file and did `make protos` command but transaction.pb.go is not changed, why?

GiovanniNapoli (Wed, 07 Nov 2018 12:34:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AepK8htguz7dTfDtJ) @ruien Thanks...Another thing, i just edited `transaction.proto` file and did `make protos` command but `transaction.pb.go` is not changed, why?

GiovanniNapoli (Wed, 07 Nov 2018 12:37:26 GMT):
Just launched it another time, now seems to be changed

edoardo_bdf (Wed, 07 Nov 2018 13:41:51 GMT):
Hi, what does mspConfigPath default to? Does it default to something?

edoardo_bdf (Wed, 07 Nov 2018 13:41:57 GMT):
in the peer

eliseba (Wed, 07 Nov 2018 14:35:05 GMT):
Has joined the channel.

evkuzin (Wed, 07 Nov 2018 14:46:09 GMT):
Has joined the channel.

evkuzin (Wed, 07 Nov 2018 14:53:49 GMT):
Hello! We are try to create project based on fabric. And I didn't understand one thing. In our project in theory organizations will be external. I mean they all can be locate anywhere from network point of view. And in this case I cant understand how to connect this organizations with out fabric installation. What you can recommend? As I understand all peer build full mesh with Gossip protocol. So if I right, we should tell external org if they want connect to out network they should use external IP routed in internet for their ledgers. Or may be they can connect to our overlay network?

lepar (Wed, 07 Nov 2018 15:35:29 GMT):
Has anyone been able to use java SDK using certificates?

ArpitKhurana1 (Wed, 07 Nov 2018 15:53:28 GMT):
Hey guys, i have some questions based on a situation , lets say that in my channel, there are 3-4 peers with a lot of data(history) . Now if i want to add another peer to increase availability , it will fetch everything from some other peer in the channel. Isn't this a bad practice? What if there is terabytes of data to be synced ? And can I use a copy of storage of already available peers to be used in the newly added peer,this way i can save those transfer of blocks

edoardo_bdf (Wed, 07 Nov 2018 16:10:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TciX9uqkXQocsaiKt) @ArpitKhurana1 You can but it kinda defeats the purpose of a blockchain at some level doesn't it?

ArpitKhurana1 (Wed, 07 Nov 2018 16:13:28 GMT):
Well I want dynamic scaling as load increases ( on kubernetes) , if load is increasing i would not want peers to participate in data replication rather than entertaining the external requests

ArpitKhurana1 (Wed, 07 Nov 2018 16:14:20 GMT):
I agree with your point though

edoardo_bdf (Wed, 07 Nov 2018 16:14:41 GMT):
You could have a backup of the data of some peer and use it just as bootstrap for new peers, but only for that

edoardo_bdf (Wed, 07 Nov 2018 16:15:14 GMT):
You could maybe schedule it weekly

edoardo_bdf (Wed, 07 Nov 2018 16:15:28 GMT):
or monthly depending on the channel throughput

ArpitKhurana1 (Wed, 07 Nov 2018 16:16:00 GMT):
Yeah thats what my point was, Should i just backup that production folder

ArpitKhurana1 (Wed, 07 Nov 2018 16:16:08 GMT):
?

ArpitKhurana1 (Wed, 07 Nov 2018 16:16:14 GMT):
or couch db also

edoardo_bdf (Wed, 07 Nov 2018 16:16:40 GMT):
It should work, you just have to copy the backup on a local peer folder and bind it to the correct docker volume

ArpitKhurana1 (Wed, 07 Nov 2018 16:17:38 GMT):
OK will try , i just was not sure about , where the channel configuration is stored, it should not be backed up i guess

ArpitKhurana1 (Wed, 07 Nov 2018 16:22:30 GMT):
Btw I have another architectural based question, lets say i have a cluster(kubernetes) with some peers in it, now I make another cluster and add some peers there too(for same organisation) . Now i want all of them to be in a single channel. For gossip protocol to work, do i need to expose all of the peers to public ips

edoardo_bdf (Wed, 07 Nov 2018 16:22:49 GMT):
Just the anchor i think

ArpitKhurana1 (Wed, 07 Nov 2018 16:23:06 GMT):
but that would create a bottleneck

edoardo_bdf (Wed, 07 Nov 2018 16:23:15 GMT):
You could expose a number of peers

edoardo_bdf (Wed, 07 Nov 2018 16:23:39 GMT):
maybe create a category of "exposed peers" if you don't want to connect everything

ArpitKhurana1 (Wed, 07 Nov 2018 16:24:59 GMT):
So fabric will automatically understand, which peers are reachable and gossip accordingly?

edoardo_bdf (Wed, 07 Nov 2018 16:25:52 GMT):
I think so, I've not experimented with partially connected orgs

ArpitKhurana1 (Wed, 07 Nov 2018 16:27:57 GMT):
And if peers are being added by the cli ( in one of the clusters) ,What is being actually sent to all the peers in channel configuration , fqdn as well as ip?

ruien (Wed, 07 Nov 2018 16:30:03 GMT):
@ArpitKhurana1 I'm a bit confused by your question. You're adding a new peer, so it's a new machine. You could get the data over the network interface (probably an internal network) via fabric, or you could get it over the network interface via something like rsync, but I don't see the difference here. How are you getting the data to the new peer if not over the network?

ruien (Wed, 07 Nov 2018 16:31:38 GMT):
(Typically in this situation the peer would sync over an internal network, which doesn't negatively impact your service on the external interface)

ArpitKhurana1 (Wed, 07 Nov 2018 16:32:29 GMT):
but that will make the peers and orderer busy right

ArpitKhurana1 (Wed, 07 Nov 2018 16:33:57 GMT):
a periodic backup loaded into a disc should be better than syncing everything at runtime

ArpitKhurana1 (Wed, 07 Nov 2018 16:34:42 GMT):
if there are millions of blocks to be synced , is network transfer really the best option?

ArpitKhurana1 (Wed, 07 Nov 2018 16:35:40 GMT):
a backup can atleast save some overhead

ruien (Wed, 07 Nov 2018 16:35:51 GMT):
no, you'd probably rsync to a cold server and back to the new peers in parallel over the internal network, and bring them up after that rsync is finished

ruien (Wed, 07 Nov 2018 16:36:31 GMT):
i haven't tested that, but i'll need to soon

ArpitKhurana1 (Wed, 07 Nov 2018 16:37:35 GMT):
okay

ArpitKhurana1 (Wed, 07 Nov 2018 16:38:02 GMT):
i was thinking of having some disk copy mechanism before turning up a node, i will try that too

ArpitKhurana1 (Wed, 07 Nov 2018 16:39:42 GMT):
Your idea is good though , a backup peer can be kept for just this purpose which is not entertaining user requests

edoardo_bdf (Wed, 07 Nov 2018 17:36:42 GMT):
Kinda of a dumb question, I'm getting "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected ordererMSP, got org0MSP)" when trying to create a channel with the cli, I have no idea what I'm getting wrong, I've never had this error

feitnomore (Wed, 07 Nov 2018 18:32:08 GMT):
if I'm using a policy -P "AND('Org1.member','Org2.member','Org3.member')", is there anything special I should consider on my NodeJS application in order to get the endorsement correctly working? I'm having trouble with this...

enyalete (Wed, 07 Nov 2018 19:58:47 GMT):
Has joined the channel.

enyalete (Wed, 07 Nov 2018 20:01:29 GMT):
Hello. I'm trying to register a user to the sample fabric network using the online tutorial but I'm getting fabric-client module not found. I've removed and reinstalled nodejs and npm without success. Any pointers would be greatly appreciated. I'm new to fabric. Thanks

jrosmith (Wed, 07 Nov 2018 20:04:31 GMT):
@enyalete please post a hastebin.com link with error logs to #fabric-sdk-node

PGNJ22 (Wed, 07 Nov 2018 20:48:29 GMT):
Has joined the channel.

PGNJ22 (Wed, 07 Nov 2018 20:48:37 GMT):
Hi, I have a query about the state DB? If it is corrupted or there is a hardware failure, how long does it take to rebuild this DB?

lsg1213 (Thu, 08 Nov 2018 01:49:31 GMT):
Has joined the channel.

lsg1213 (Thu, 08 Nov 2018 01:49:38 GMT):
hello I used ./byfn.sh up command then ./byfn.sh: line 161: docker-compose: command not found ERROR !!!! Unable to start network how can i do? ubuntu 16.04

YanLIU0822 (Thu, 08 Nov 2018 04:49:13 GMT):
Has joined the channel.

YanLIU0822 (Thu, 08 Nov 2018 04:49:33 GMT):
hey i am stuck in npm install terraform -g i use the command sudo npm install terraform -g ~/hyperledger/fabric/fabric-1.1-kafka-multi-orderer/terraform$ sudo npm install terraform -g npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated classifier@0.1.0: Package no longer supported. Contact support@npmjs.com for more info. > node-sass@4.9.3 install /usr/local/lib/node_modules/terraform/node_modules/node-sass > node scripts/install.js Unable to save binary /usr/local/lib/node_modules/terraform/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/terraform/node_modules/node-sass/vendor' at Object.fs.mkdirSync (fs.js:885:18) at sync (/usr/local/lib/node_modules/terraform/node_modules/mkdirp/index.js:71:13) at Function.sync (/usr/local/lib/node_modules/terraform/node_modules/mkdirp/index.js:77:24) at checkAndDownloadBinary (/usr/local/lib/node_modules/terraform/node_modules/node-sass/scripts/install.js:114:11) at Object. (/usr/local/lib/node_modules/terraform/node_modules/node-sass/scripts/install.js:157:1) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/usr/local/lib/node_modules/terraform/node_modules/node-sass/vendor' } > node-sass@4.9.3 postinstall /usr/local/lib/node_modules/terraform/node_modules/node-sass > node scripts/build.js Building: /usr/bin/node /usr/local/lib/node_modules/terraform/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/usr/local/lib/node_modules/terraform/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using node-gyp@3.8.0 gyp info using node@8.10.0 | linux | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` succeeded python2 /usr/bin/python2 gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.15 gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j gyp verb get node dir no --target version specified, falling back to host node version: 8.10.0 gyp verb command install [ '8.10.0' ] gyp verb install input version string "8.10.0" gyp verb install installing version: 8.10.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 8.10.0 gyp verb build dir attempting to create "build" dir: /usr/local/lib/node_modules/terraform/node_modules/node-sass/build gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/terraform/node_modules/node-sass/build' gyp ERR! System Linux 4.15.0-36-generic gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/terraform/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /usr/local/lib/node_modules/terraform/node_modules/node-sass gyp ERR! node -v v8.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.9.3 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.9.3 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: please someone could help me out you will be appreciated. Many thanks

rashansamith88 (Thu, 08 Nov 2018 04:52:20 GMT):
Has joined the channel.

karthikmohan91 (Thu, 08 Nov 2018 04:54:41 GMT):
Try without sudo

mallikarjunasai995 (Thu, 08 Nov 2018 05:40:18 GMT):
Has joined the channel.

rashansamith88 (Thu, 08 Nov 2018 05:42:50 GMT):
Hello everyone I am trying to install hyperledger composer on ubuntu 18.04. i have already install prereqs and development environment .but when i am trying execute ./createPeerAdminCard.sh file i found bellow error "No version of composer-cli has been detected, you need to install composer-cli at v0.20 or higher " i have already install comoser-cli 0.20.4 anyone can help me to resolve this error

anjalinaik (Thu, 08 Nov 2018 05:52:36 GMT):
Hello experts, can anybody please guide me for the below error``` `error trying to connect to local peer github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111 github.com/hyperledger/fabric/core/chaincode/shim.Start /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150 main.main /chaincode/input/src/github.com/fabcar/fabcar.go:200 runtime.main /opt/go/src/runtime/proc.go:198 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 Error creating new Smart Contract: error trying to connect to local peer: context deadline exceeded` ```

YanLIU0822 (Thu, 08 Nov 2018 06:23:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=88pv3cBC4uPmbADS7) @karthikmohan91 if i try without sudo the i also will get without permission. I guess there is nothing to do with sudo

ruien (Thu, 08 Nov 2018 06:54:40 GMT):
Hello Everyone -- I'm still dealing with an issue in which I am unable to add Anchor Peers for an organization which was added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1? I'm on commit `306640d3` (from `release-1.3`) One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-profile` and `-channelID` both seem to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

MuthuT (Thu, 08 Nov 2018 06:57:18 GMT):
Has joined the channel.

gauravnaithani (Thu, 08 Nov 2018 07:18:30 GMT):
Has joined the channel.

gauravnaithani (Thu, 08 Nov 2018 07:19:03 GMT):
Would like to understand possible reason for below error. I have installed Hyperledger fabric on my Windows 10 laptop using Virtual Box (Ubuntu vagrant image). Installation is completed successfully and when I run Peer Node Status it gives "Access Denied" error. I am stuck at this step since yesterday, request you to have a look and suggest solution. Would like to understand possible reason for below error. I have installed Hyperledger fabric on my Windows 10 laptop using Virtual Box (Ubuntu vagrant image). Installation is completed successfully and when I run Peer Node Status it gives "Access Denied" error. I am stuck at this step since yesterday, request you to have a look and suggest solution.

gauravnaithani (Thu, 08 Nov 2018 07:19:03 GMT):
Would like to understand possible reason for below error. I have installed Hyperledger fabric on my Windows 10 laptop using Virtual Box (Ubuntu vagrant image). Installation is completed successfully and when I run Peer Node Status it gives "Access Denied" error. I am stuck at this step since yesterday, request you to have a look and suggest solution. Would like to understand possible reason for below error. I have installed Hyperledger fabric on my Windows 10 laptop using Virtual Box (Ubuntu vagrant image). Installation is completed successfully and when I run Peer Node Status it gives "Access Denied" error. I am stuck at this step since yesterday, request you to have a look and suggest solution.

gauravnaithani (Thu, 08 Nov 2018 07:19:52 GMT):

Clipboard - November 8, 2018 12:49 PM

gauravnaithani (Thu, 08 Nov 2018 07:19:53 GMT):
Would like to understand possible reason for below error. I have installed Hyperledger fabric on my Windows 10 laptop using Virtual Box (Ubuntu vagrant image). Installation is completed successfully and when I run Peer Node Status it gives "Access Denied" error. I am stuck at this step since yesterday, request you to have a look and suggest solution.

GiovanniNapoli (Thu, 08 Nov 2018 10:21:36 GMT):
What should i do to set up `BYFN` example to save peer ledger blocks in JSON? I saw that for orderer there is `ORDERER_GENERAL_LEDGERTYPE` variable, but for peers?

Vestfold (Thu, 08 Nov 2018 11:00:00 GMT):
Has joined the channel.

Vestfold (Thu, 08 Nov 2018 11:02:09 GMT):
Hello everyone ! Could you help with this WARN in the log :

Vestfold (Thu, 08 Nov 2018 11:02:18 GMT):

Clipboard - November 8, 2018 12:02 PM

Vestfold (Thu, 08 Nov 2018 11:02:40 GMT):
I can't find what's missing...

adamhardie (Thu, 08 Nov 2018 11:31:08 GMT):
hello all, can someone guide me on how to acheive this : https://jira.hyperledger.org/browse/FAB-9081?jql=text ~ "github.com/hyperledger/fabric/core/chaincode/lib/cid" i'd like to use the cid library in my chaincode but i am not sure how to mount the go lib should i bring down my peer container, install, and then bring the container back up? what if the peer is peer0? it may prevent some clients calling chaincode for a while during the upgrade?

YanLIU0822 (Thu, 08 Nov 2018 11:38:41 GMT):
hey someone can help me out I have no idea where should i locate the errors ~/hyperledger/fabric/sole-single-demo$ sudo ./bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID mychannel -outputBlock ./channel-artifacts/genesis.block 2018-11-08 19:31:46.206 CST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-11-08 19:31:46.207 CST [common/tools/configtxgen/localconfig] Load -> CRIT 002 Error reading configuration: While parsing config: yaml: line 240: did not find expected key 2018-11-08 19:31:46.207 CST [common/tools/configtxgen] func1 -> CRIT 003 Error reading configuration: While parsing config: yaml: line 240: did not find expected key panic: Error reading configuration: While parsing config: yaml: line 240: did not find expected key [recovered] panic: Error reading configuration: While parsing config: yaml: line 240: did not find expected key goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7e30, 0xc4203e8d60, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc4203e8d50) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7c80, 0xc420494f00, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffdca0437cb, 0x15, 0x0, 0x0, 0x0, 0xc420462280) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7

feitnomore (Thu, 08 Nov 2018 11:42:40 GMT):
if I'm using a policy -P "AND('Org1.member','Org2.member','Org3.member')", is there anything special I should consider on my NodeJS application in order to get the endorsement correctly working? I'm having trouble with this...

Jelle.Diet (Thu, 08 Nov 2018 11:47:10 GMT):
Has joined the channel.

rodolfoleal (Thu, 08 Nov 2018 12:31:32 GMT):
Im also having endorsement problems, there is a way to verify from a peer/cli the endorsement policy of a chain code?

rodolfoleal (Thu, 08 Nov 2018 12:38:38 GMT):
my error is that one: returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy

ruien (Thu, 08 Nov 2018 12:54:59 GMT):
@rodolfoleal it sounds like you're not collecting enough endorsements from peers before submitting the tx to the orderer, but i haven't used (nor have any plan to use) the node sdk, so I'm not sure how to fix that. If you've tested with `peer` using multiple endorsers and it works, then maybe model the go sdk code in securekey/fabric-examples/fabric-cli to collect multiple endorsements.

lcj (Thu, 08 Nov 2018 13:27:37 GMT):
Has joined the channel.

YanLIU0822 (Thu, 08 Nov 2018 13:38:38 GMT):
hey in the docker it says the error as follows root@b01b6926f30c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c mychannel -t 50s -f ./channel-artifacts/channel.tx --tls --cafile $ORDERER_CA Error: invalid argument "50s" for t: strconv.ParseInt: parsing "50s": invalid syntax can someone help me out thxs

YanLIU0822 (Thu, 08 Nov 2018 13:38:38 GMT):
hey in the docker it says the error as follows root@b01b6926f30c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c mychannel -t 50 -f ./channel-artifacts/channel.tx --tls --cafile $ORDERER_CA Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable can someone help me out thxs

ovallod (Thu, 08 Nov 2018 14:08:44 GMT):
How does Fabric detect that a ledger has been tampered? If, on one peer, there was a block which was spoiled, is there a fabric process that parses the blockchain regularly and detect this inconsistency?

ovallod (Thu, 08 Nov 2018 14:08:44 GMT):
How does Fabric detect that a ledger has been tampered? If, on one peer, there was a block which was spoiled, is there a fabric process that parses the blockchain regularly and detect this inconsistency?

ruien (Thu, 08 Nov 2018 14:27:06 GMT):
Hello Everyone -- I'm still dealing with an issue (_day 3_ now) in which I am unable to add Anchor Peers for an organization which was added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1? I'm on commit `306640d3` (from `release-1.3`) One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-profile` and `-channelID` both seem to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

ruien (Thu, 08 Nov 2018 14:27:06 GMT):
Hello Everyone -- I'm still dealing with an issue _(day 3 now)_ in which I am unable to add Anchor Peers for an organization which was added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1? I'm on commit `306640d3` (from `release-1.3`) One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-profile` and `-channelID` both seem to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

khetesh (Thu, 08 Nov 2018 14:51:50 GMT):
Which transaction model hyperledger fabric follows?

khetesh (Thu, 08 Nov 2018 14:52:30 GMT):
Like bitcoin follows UTXO for validation of transactions...

PGNJ22 (Thu, 08 Nov 2018 15:46:49 GMT):
Does anyone know how long it would it take to rebuild the state DB?

Abhishek_Jagwani (Thu, 08 Nov 2018 15:55:34 GMT):
Currently the transaction happens from A to B for a single asset value. Is it possible to assign multiple assets to A and B and while performing the transaction, we can transfer multiple values in the same time? I tried to perform the same thing by changing the chaincode and utils.sh file but after transaction, A and B shows the values of cumulative transaction on the single asset instead of multiple fields

austin (Thu, 08 Nov 2018 18:59:07 GMT):
Has joined the channel.

Tarun (Thu, 08 Nov 2018 19:03:45 GMT):
Has joined the channel.

Tarun (Thu, 08 Nov 2018 19:04:15 GMT):
Hello I am using Hyperledger Fabric version 1.2 and using Java SDK to connect to ledger But i got stuck while query or invoking chaincodes i have enrolled user and while quering the chaincode it gives me this exception org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=INTERNAL, description=http2 exception, cause=io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 1503010002 at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85) at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.verifyFirstFrameIsSettings(Http2ConnectionHandler.java:350) at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:251) at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) } Please help me resolve this error I got stuck

KrishnaRavuri (Thu, 08 Nov 2018 21:05:34 GMT):
Has joined the channel.

KrishnaRavuri (Thu, 08 Nov 2018 21:08:16 GMT):
Hi, Can somebody suggest me a good reference on installing Hyperledger fabric in Kubernetes/Docker?

greg2git (Thu, 08 Nov 2018 21:24:14 GMT):
fabric 'runs on docker', are you looking to create your own the fabric docker images?

KrishnaRavuri (Thu, 08 Nov 2018 21:33:12 GMT):
I basically want to run a sample application in fabric, thats it. I am using mac though. Any reference really appreciated.

greg2git (Thu, 08 Nov 2018 21:51:11 GMT):
did you try to follow this: https://hyperledger-fabric.readthedocs.io/en/latest/install.html ? i'm running it on ubuntu AWS, but someone must have tested it on MacOS already

ttarey (Fri, 09 Nov 2018 02:54:21 GMT):
Has joined the channel.

fanliyan (Fri, 09 Nov 2018 07:17:44 GMT):

20181109151445.png

edoardo_bdf (Fri, 09 Nov 2018 08:18:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HbxptCvWja2FMaagE) @fanliyan I'm getting the same error

fanliyan (Fri, 09 Nov 2018 08:26:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eLGJrADnbKXXnXNBP) @edoardo_bdf Is there any solution?

edoardo_bdf (Fri, 09 Nov 2018 08:26:52 GMT):
I've been hitting my head on it for 3 days but I haven't managed anything

edoardo_bdf (Fri, 09 Nov 2018 08:27:05 GMT):
have you looked at the peer log?

edoardo_bdf (Fri, 09 Nov 2018 08:27:09 GMT):
could you post that?

fanliyan (Fri, 09 Nov 2018 08:29:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HrgF7yQci9bDnZ5LA) @edoardo_bdf My peer node is not wrong.

edoardo_bdf (Fri, 09 Nov 2018 08:30:48 GMT):
it doesn't give any warning or error?

fanliyan (Fri, 09 Nov 2018 08:32:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oyp4EXTsHPvRTkRFa) @edoardo_bdf Yes, peer nodes are normal, no warnings and errors.

adamhardie (Fri, 09 Nov 2018 10:10:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8QmotoNtQY2dj3ZpR) quite hard to find answers ?

adamhardie (Fri, 09 Nov 2018 10:10:55 GMT):
all i want to do is find the name of the calling participant of my chaincode - is there an easier way

Vasanth (Fri, 09 Nov 2018 10:25:06 GMT):
Has joined the channel.

Vasanth (Fri, 09 Nov 2018 10:25:22 GMT):
how can i start fabric with node js??

Vasanth (Fri, 09 Nov 2018 10:26:32 GMT):
can any one share some good start/sample can be deployed to production?

feitnomore (Fri, 09 Nov 2018 12:56:04 GMT):
Hello, I've created a Hyperledger Fabric Network over Kubernetes with 4 Orgs, 1 Peer each, + 1 orderer, and I'm trying to use a policy -P "AND('Org1.member','Org2.member','Org3.member','Org4.member')" but I'm not having success. People told me I would not be able to fire a transaction from command line for a policy like that because I need to collect endorsement from every organization, so I've tried with Node SDK, but it is still not working. Any help would be much appreciated. I have all the config files and log files available if needed.

Vestfold (Fri, 09 Nov 2018 13:44:23 GMT):
Hello everyone ! I have 2 org in different VM with 2 peers each, on peers 1 of the two orgs I installed the same chaincode : mycc Should the instanciation start a docker container on each peers host?

GiovanniNapoli (Fri, 09 Nov 2018 14:36:58 GMT):
Hello guys, the doc says that ``` Block Metadata This section contains the time when the block was written, as well as the certificate, public key and signature of the block writer. Subsequently, the block committer also adds a valid/invalid indicator for every transaction, though this information is not included in the hash, as that is created when the block is created. ```

GiovanniNapoli (Fri, 09 Nov 2018 14:36:58 GMT):
Hello guys, the doc says that ``` Block Metadata This section contains the time when the block was written, as well as the certificate, public key and signature of the block writer. Subsequently, the block committer also adds a valid/invalid indicator for every transaction, though this information is not included in the hash, as that is created when the block is created. ``` Where this kind of operation is done in source code? I can't find it

nfrunza (Fri, 09 Nov 2018 15:45:45 GMT):
Dear community we need contributors for HL Explorer, we are very limited in resource

GiovanniNapoli (Fri, 09 Nov 2018 16:01:46 GMT):
Is there a way to get Tx Validaiton code via command/APIs?

Afe95 (Sat, 10 Nov 2018 14:40:46 GMT):
I am trying to deploy my network with some changes from byfn architecture. cryptogen and configtxgen create the transactions and cryptomaterials correctly. When I start all the containers, the orderer throws the following error

Afe95 (Sat, 10 Nov 2018 14:42:41 GMT):
``` orderer.supply-chain.com | 2018-11-10 14:06:26.015 UTC [orderer/commmon/multichannel] checkResourcesOrPanic -> PANI 005 [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_3 is required but not supported: Orderer capability V1_3 is required but not supported orderer.supply-chain.com | panic: [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_3 is required but not supported: Orderer capability V1_3 is required but not supported orderer.supply-chain.com | orderer.supply-chain.com | goroutine 1 [running]: orderer.supply-chain.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc4200f1a20, 0x0, 0x0, 0x0) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x4f4 orderer.supply-chain.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc4200ba2a0, 0x4, 0xdfecd3, 0xf, 0xc420369888, 0x2, 0x2, 0x0, 0x0, 0x0) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 orderer.supply-chain.com | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc4200ba2a0, 0xdfecd3, 0xf, 0xc420369888, 0x2, 0x2) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 orderer.supply-chain.com | github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc4200ba2a8, 0xdfecd3, 0xf, 0xc420369888, 0x2, 0x2) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/multichannel.checkResourcesOrPanic(0xeabe80, 0xc4202e5880) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:58 +0x14d orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc4204d0120, 0xc4204cefa0, 0xc4204cefa0) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:259 +0x304 orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0xea36a0, 0xc42035c1e0, 0xc420314f90, 0xe9b060, 0x15a78b0, 0xc4200ba1f0, 0x1, 0x1, 0x0) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:142 +0x312 orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc420100580, 0xe9b060, 0x15a78b0, 0xc4200ba1f0, 0x1, 0x1, 0x0) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:258 +0x250 orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/server.Start(0xdf7a5a, 0x5, 0xc420100580) orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:96 +0x226 orderer.supply-chain.com | github.com/hyperledger/fabric/orderer/common/server.Main() orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:75 +0x1d6 orderer.supply-chain.com | main.main() orderer.supply-chain.com | /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 orderer.supply-chain.com exited with code 2 ```

Afe95 (Sat, 10 Nov 2018 14:43:17 GMT):
The strange thing is that it says [channel byfn-sys-channel], but my setup channel is called sys-channel

Afe95 (Sat, 10 Nov 2018 14:43:32 GMT):
``` $FABRIC_BIN/cryptogen generate --config=$FABRIC_CFG_PATH/crypto-config.yaml --output=$FABRIC_CFG_PATH/crypto-config $FABRIC_BIN/configtxgen -profile BlockchainGenesis -channelID sys-channel -outputBlock $FABRIC_CFG_PATH/channel-artifacts/genesis.block ```

Afe95 (Sat, 10 Nov 2018 14:44:18 GMT):
and I am using fabric v1.3 and I can run the byfn tutorial with no errors so I assume fabric has been installed correctly

archit90 (Sat, 10 Nov 2018 17:00:03 GMT):
How can we access `goleveldb`. Is it in `peer` docker image ? Can we directly access it for debugging purposes?

sivo4kin (Sun, 11 Nov 2018 05:59:43 GMT):
Has joined the channel.

parthask (Sun, 11 Nov 2018 15:37:04 GMT):

Image 11-11-18 at 10.35 AM.jpg

parthask (Sun, 11 Nov 2018 15:37:34 GMT):
what credentials and where do I enter the credentials?

parthask (Sun, 11 Nov 2018 15:37:48 GMT):
Thanks much, in advance

Raycoms (Sun, 11 Nov 2018 20:50:55 GMT):
Can I invoke hyperledger chain-code on time constraints?

Raycoms (Sun, 11 Nov 2018 20:51:05 GMT):
Something like "Execute this chain code in 10h"

yacovm (Sun, 11 Nov 2018 22:05:55 GMT):
@Raycoms no :)

Raycoms (Sun, 11 Nov 2018 22:31:08 GMT):
@yacovm thanks, but do blocks have time info, so I can let a user invoke a chaincode only after 10h passed?

yacovm (Sun, 11 Nov 2018 22:36:31 GMT):
no, they do not.

Raycoms (Sun, 11 Nov 2018 22:42:52 GMT):
@yacovm is there any notion of time I can access within a chaincode? Some UTC system time, or whatever?

yacovm (Sun, 11 Nov 2018 22:49:30 GMT):
I think the SDK puts a timestamp in the transaction

yacovm (Sun, 11 Nov 2018 22:49:40 GMT):
you can perhaps take the median of the transactions in a block

yacovm (Sun, 11 Nov 2018 22:49:43 GMT):
@Raycoms

Raycoms (Sun, 11 Nov 2018 22:50:22 GMT):
Is it possible for a client to add an invalid timestamp to a block (too old) would the transaction be accepted from the endorsers?

Raycoms (Sun, 11 Nov 2018 22:52:02 GMT):
And Thanks for the answers already

yacovm (Sun, 11 Nov 2018 22:52:20 GMT):
yeah the endorsers don't check that timestamp :)

yacovm (Sun, 11 Nov 2018 22:52:28 GMT):
neither the orderers

yacovm (Sun, 11 Nov 2018 22:52:45 GMT):
it is not used for security or anything

yacovm (Sun, 11 Nov 2018 22:52:51 GMT):
it's just for auditing

Raycoms (Sun, 11 Nov 2018 22:53:11 GMT):
That's a pain. I want to develop a chaincode which releases an asset only after a specific time passed

yacovm (Sun, 11 Nov 2018 22:53:40 GMT):
why not just encode this logic in the chaincode?

yacovm (Sun, 11 Nov 2018 22:53:50 GMT):
have the chaincode record the asset creation

yacovm (Sun, 11 Nov 2018 22:54:06 GMT):
and then have the chaincode check whether enough time has passed

Raycoms (Sun, 11 Nov 2018 22:54:24 GMT):
that's exactly what I wanted to do

Raycoms (Sun, 11 Nov 2018 22:54:24 GMT):
=D

Raycoms (Sun, 11 Nov 2018 22:54:40 GMT):
But how can I do that if I don't have a notion of time within the chaincode?

yacovm (Sun, 11 Nov 2018 22:54:58 GMT):
you do.... you can use `time.Now()`

Raycoms (Sun, 11 Nov 2018 22:55:07 GMT):
Ahh okay

yacovm (Sun, 11 Nov 2018 22:55:12 GMT):
or in java - `System.currentTimeInMillis()` or something

Raycoms (Sun, 11 Nov 2018 22:55:36 GMT):
That will suffice =)

Raycoms (Sun, 11 Nov 2018 22:55:48 GMT):
Thanks

yacovm (Sun, 11 Nov 2018 22:55:51 GMT):
but you need to keep in mind

yacovm (Sun, 11 Nov 2018 22:56:03 GMT):
that if you use an endorsement policy of several peers... the time will mismatch

yacovm (Sun, 11 Nov 2018 22:56:11 GMT):
so you need to divide the time by hours or something

yacovm (Sun, 11 Nov 2018 22:56:23 GMT):
i.e - get the number of hours passed since 1/1/1970

yacovm (Sun, 11 Nov 2018 22:56:27 GMT):
and not the seconds, etc.

Raycoms (Sun, 11 Nov 2018 22:58:08 GMT):
yeah, I only need to know if it's "time since >= 1h"

Raycoms (Sun, 11 Nov 2018 22:58:18 GMT):
so I don't need things too exact

Raycoms (Mon, 12 Nov 2018 01:19:58 GMT):
Also, is there anything I could use as a base for a random seed to make a deterministic random calc? (Same random variable on all servers)

azur3s0ng (Mon, 12 Nov 2018 02:35:54 GMT):
Hi all, would that be possible to call GetState() first and then PutState() for the same key within the same invoke function??

azur3s0ng (Mon, 12 Nov 2018 02:35:57 GMT):
Thanks!

dannythebestguy (Mon, 12 Nov 2018 02:48:44 GMT):
Has joined the channel.

dannythebestguy (Mon, 12 Nov 2018 02:49:24 GMT):
Where do I get the Papernet example shown in the Hyperledger tutorial https://hyperledger-fabric.readthedocs.io/en/latest/developapps/scenario.html

azur3s0ng (Mon, 12 Nov 2018 03:17:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JrqKojhZ5c4iWQMTb) Basically, if I would like to update a state, what is the best way to do so? Thanks a lot!

tsnyder (Mon, 12 Nov 2018 03:35:52 GMT):
Questions on Fabric CA - I recall some discussions pre 1.0 where intermediary certs could be used for channel user authorizations and any user cert created from them would be authorized for the channel per the authorizations associated with the intermediary cert. Is this the case? If so, does this extend to any Roles and Attributes associated with the intermediary cert, or constrain certs generated from the intermediary cert?

tsnyder (Mon, 12 Nov 2018 05:54:58 GMT):
@azur3s0ng - Yes first getting and then putting is not only allowed but best practice as the get sets the key into the read state.

MuhammedHafil (Mon, 12 Nov 2018 07:04:34 GMT):
Can anybody tell me how to fix this error with fabric ca and node sdk? ``` Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'user2' failed in affiliation validation: Failed getting affiliation 'myorgmsp.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]] ```

azur3s0ng (Mon, 12 Nov 2018 07:53:12 GMT):
@tsnyder Thanks for your reply. I was able to get around it.

azur3s0ng (Mon, 12 Nov 2018 07:57:53 GMT):
@tsnyder Here is my solution. In the Invoke() function, instead of calling the abc() function that contains GetState() and PutState() sequentially, I defined a new function xyz() which will first read the pb.Response from GetState() related function and then extract the parameters out to pass it to PutState() related function. The basic idea is to let the transaction committed one by one to avoid race condition.

ascatox (Mon, 12 Nov 2018 08:00:30 GMT):
Hi All! Is it possible to reinstall in Fabric the same chaincode version after stopping https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4noah.html#stop-and-start

ascatox (Mon, 12 Nov 2018 08:00:30 GMT):
Hi All! Is it possible *to reinstall in Fabric the same chaincode version* after stopping https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4noah.html#stop-and-start

azur3s0ng (Mon, 12 Nov 2018 08:01:57 GMT):
@tsnyder The problem was I wrapped GetState() and PutState() into same function for a single peer response.

MuhammedHafil (Mon, 12 Nov 2018 08:08:36 GMT):
I'm getting `failed TypeError: Cannot read property 'curve' of undefined` when calling `let adminUserObj = await client.setUserContext({username: admins[0].username, password: admins[0].secret})`

ascatox (Mon, 12 Nov 2018 08:14:30 GMT):
Another question How do I stop/start a Hyperledger Fabric Network properly?

Msaleh97 (Mon, 12 Nov 2018 08:24:48 GMT):
Hi I'm using hyperledger fabric and I'm doing unit testing for my blockchain application. I wrote my application using golang and after doing some research I quickly realized that the mock engine doesn't support both getHistoryForKey and GetQueryResult. How do I go about creating tests for these two functions? I'm aiming for 98% code coverage and I'm currently stuck on 70% because of this. Any help would be appreciated. Thank you.

Msaleh97 (Mon, 12 Nov 2018 08:26:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y5W4bBJuhzRxKoztb) @ascatox You don't have to reinstall the chaincode if you stop the containers: an error will be thrown if you do so but you will still be able to use that same version you had. If you are removing the containers then yeah you can reinstall the same version.

ascatox (Mon, 12 Nov 2018 08:51:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ka8gk2dT68siFPRQd) @Msaleh97 if i remove the container with this procedure https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4noah.html#stop-and-start when I try to *instantiate the chaincode with the old version *always I get the *Already exists Error*

ascatox (Mon, 12 Nov 2018 08:51:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ka8gk2dT68siFPRQd) @Msaleh97 if i remove the container with this procedure https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4noah.html#stop-and-start when I try to *instantiate the chaincode with the old version *always I get the *Already exists Error* . I'm missing something?

AlexanderZhovnuvaty (Mon, 12 Nov 2018 11:06:15 GMT):
Has left the channel.

phamdat721101 (Mon, 12 Nov 2018 12:53:16 GMT):
Has joined the channel.

phamdat721101 (Mon, 12 Nov 2018 12:53:50 GMT):
Hi all, Is there anyone know the ways hyperledger fabric solve double-spending problem?

Raycoms (Mon, 12 Nov 2018 14:03:16 GMT):
If one chaincode invokes another chaincode, is there a transaction id as well?

trevoro1 (Mon, 12 Nov 2018 14:21:02 GMT):
Has joined the channel.

trevoro1 (Mon, 12 Nov 2018 14:21:07 GMT):
hi

trevoro1 (Mon, 12 Nov 2018 14:21:19 GMT):
I am new to Fabric

mdaguete (Mon, 12 Nov 2018 15:18:32 GMT):
Has joined the channel.

blockchain.abaco (Mon, 12 Nov 2018 16:00:59 GMT):
Has joined the channel.

blockchain.abaco (Mon, 12 Nov 2018 16:05:13 GMT):
Hi, everybody! I'm a beginner in blockchain and Hyperledger. Can i create a multi machine network with only 1 Org?

alexisjanin (Mon, 12 Nov 2018 17:18:47 GMT):
Hello @blockchain.abaco, yes it is possible but you will need to adapt a bit the byfn.sh script to your needs

sreeteja06 (Mon, 12 Nov 2018 17:21:38 GMT):
Has joined the channel.

blockchain.abaco (Mon, 12 Nov 2018 17:25:02 GMT):
How shoud i define my network architecture (orgs, peers, single/multi machine, solo/kafka ordered) for a system with the following requiremtents: - 1 single ledger

feitnomore (Mon, 12 Nov 2018 17:35:04 GMT):
I'm trying to use a Policy with -P "AND('Org1.Member','Org2.Member','Org3.Member')" and this is not working... I'm getting lots of: ``` 2018-10-29 16:17:30.884 UTC [cauthdsl] func2 -> DEBU c37 0xc42000e028 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) ```

feitnomore (Mon, 12 Nov 2018 17:35:04 GMT):
I'm trying to use a Policy with -P "AND('Org1.Member','Org2.Member','Org3.Member')" and this is not working... I'm getting lots of: ``` 2018-10-29 16:17:30.884 UTC [cauthdsl] func2 -> DEBU c37 0xc42000e028 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) ```

MuhammedHafil (Mon, 12 Nov 2018 17:48:16 GMT):
@feitnomore : Can you post complete command?

feitnomore (Mon, 12 Nov 2018 17:49:16 GMT):
@MuhammedHafil I'm using NodeSDK to submit the transaction to my network... I have complete code and logs, if that helps

blockchain.abaco (Mon, 12 Nov 2018 17:59:18 GMT):
Makes sense create a network where only one node submit transactions and the others nodes are just used for consensus mechanism?

m_hari (Mon, 12 Nov 2018 18:23:40 GMT):
Has joined the channel.

m_hari (Mon, 12 Nov 2018 18:25:24 GMT):
just out of curiosity, the default settings that come with downloading the hyperledger fabric just has one peer and one orderer correct? Is there still an endorsement/consensus policy in play with the default settings? where is that defined?

m_hari (Mon, 12 Nov 2018 18:27:15 GMT):
ah configtx.yaml

m_hari (Mon, 12 Nov 2018 18:27:22 GMT):
so i guess it defaults to SOLO

m_hari (Mon, 12 Nov 2018 18:27:44 GMT):
but does that means the orderer doesn't get used at all?

m_hari (Mon, 12 Nov 2018 18:29:20 GMT):
oh, i guess it still does, interesting

mike157 (Mon, 12 Nov 2018 18:52:28 GMT):
Are you able to display/download a users public key for external verification? I can get the public key of a user using the SigningIdentity

azur3s0ng (Mon, 12 Nov 2018 19:47:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AKXzRr2ESF6ZkC6tX) @m_hari There is no consensus for solo ordering, that's only for dev and testing.

azur3s0ng (Mon, 12 Nov 2018 19:47:43 GMT):
@m_hari for a better robustness in production environment, you'll need kafka ordering, which is crash fault tolerance based.

rodolfoleal (Mon, 12 Nov 2018 19:47:44 GMT):
Hi guys, Anyone here had already used peer chaincode package command in order to distribute chain code to the peers?

rodolfoleal (Mon, 12 Nov 2018 19:49:25 GMT):
I create here, but the file has only 30kb for a node js chaincode. This file contains the source code ?

azur3s0ng (Mon, 12 Nov 2018 19:49:32 GMT):
I started using Fabric when 1.0.5, and there was no PBFT based consensus implemented yet (it's been proposed a long time ago). I am not sure when we will be able to see it.

kisna (Mon, 12 Nov 2018 20:43:13 GMT):
won't we with Linux Foundation ID have access to JIRA? This ticket is blocking fabric-sdk-java usage with java chaincode due to a bug https://jira.hyperledger.org/browse/FAB-12674?workflowName=FAB%3A+Story+Workflow&stepId=2

mkhraisha (Mon, 12 Nov 2018 20:51:18 GMT):
Has joined the channel.

Raycoms (Mon, 12 Nov 2018 21:04:36 GMT):
Okay two chaincode questions: 1) Can I make an endorsement policy like: get a different result of 5 endorsers and merge the read/write sets?

yacovm (Mon, 12 Nov 2018 21:05:00 GMT):
no

mkhraisha (Mon, 12 Nov 2018 21:26:13 GMT):
What is hte easiest way to debug an invoke?

mkhraisha (Mon, 12 Nov 2018 21:26:13 GMT):
What is the easiest way to debug an invoke transaction?

Raycoms (Mon, 12 Nov 2018 22:18:04 GMT):
@yacovm is there a way to do a deterministic random calc on every endorser? In Ethereum I could just calculate some block specs and some transaction id specs together to create a random seed which is the same on each endorser. But, since fabric is execute-order I don't have this information yet. Is there anything I can rely on in this case?

Raycoms (Mon, 12 Nov 2018 22:19:09 GMT):
Also, if one chaincode invokes another chaincode, does this create a transaction with endorsers or does this enter the transaction of the client which invoked the first?

yacovm (Mon, 12 Nov 2018 22:20:09 GMT):
yeah

yacovm (Mon, 12 Nov 2018 22:20:18 GMT):
you can just add the random bits from the client

Raycoms (Mon, 12 Nov 2018 22:21:32 GMT):
Can the client influence them?

Raycoms (Mon, 12 Nov 2018 22:22:11 GMT):
And can the client find them out?

yacovm (Mon, 12 Nov 2018 22:39:41 GMT):
I am saying the client *has* to pick the random bits

yacovm (Mon, 12 Nov 2018 22:39:45 GMT):
@Raycoms

Raycoms (Mon, 12 Nov 2018 22:47:10 GMT):
@yav

Raycoms (Mon, 12 Nov 2018 22:47:46 GMT):
@yacovm but the the client can influence the random draw with his random bits

Raycoms (Mon, 12 Nov 2018 22:48:33 GMT):
I want him to pick a random "asset" without him being able to influence what he gets or without him knowing beforehand what he gets

yacovm (Mon, 12 Nov 2018 22:48:36 GMT):
that's the whole point....

yacovm (Mon, 12 Nov 2018 22:48:43 GMT):
I am saying the client needs to *pick* these bits

yacovm (Mon, 12 Nov 2018 22:48:45 GMT):
every one of them

yacovm (Mon, 12 Nov 2018 22:49:10 GMT):
are you saying you want the endorsers to pick the random bits on their own?

Raycoms (Mon, 12 Nov 2018 22:50:26 GMT):
I have this situation: I have 4 exam topics, and I have 4 clients, each client has to get 1 random exam topic. So this means, they should not be able to know how to be able to get one specific topic and also they should not be able to calculate a day before what the topic is going to be.

Raycoms (Mon, 12 Nov 2018 22:50:41 GMT):
I can't trust the clients

yacovm (Mon, 12 Nov 2018 22:50:43 GMT):
oh

Raycoms (Mon, 12 Nov 2018 22:51:04 GMT):
and I can't trust all endorsers enough to store one single key in the smart contract on initiate which will be the random seed

yacovm (Mon, 12 Nov 2018 22:51:22 GMT):
i can tell you an idea

Raycoms (Mon, 12 Nov 2018 22:51:31 GMT):
hit me

yacovm (Mon, 12 Nov 2018 22:51:37 GMT):
let's say you have 3 endorsers

yacovm (Mon, 12 Nov 2018 22:51:39 GMT):
for simplicity

yacovm (Mon, 12 Nov 2018 22:51:44 GMT):
one from each organization

yacovm (Mon, 12 Nov 2018 22:51:46 GMT):
A, B, C ok?

Raycoms (Mon, 12 Nov 2018 22:51:49 GMT):
ok

yacovm (Mon, 12 Nov 2018 22:52:12 GMT):
endorser in A picks a random string, and puts the hash of the string on the blockchain as a transaction

yacovm (Mon, 12 Nov 2018 22:52:17 GMT):
same thing for endorser from B and C

yacovm (Mon, 12 Nov 2018 22:52:25 GMT):
once the endorser from C puts the hash of its string

yacovm (Mon, 12 Nov 2018 22:52:32 GMT):
endorser A then reveals the hash preimage

yacovm (Mon, 12 Nov 2018 22:52:37 GMT):
same thing for B and C

yacovm (Mon, 12 Nov 2018 22:52:48 GMT):
it's basically a "trivial" commitment

yacovm (Mon, 12 Nov 2018 22:52:52 GMT):
so, in the end

yacovm (Mon, 12 Nov 2018 22:52:59 GMT):
you take the strings, and XOR them

yacovm (Mon, 12 Nov 2018 22:53:09 GMT):
the output is a string that is randomly distributed

yacovm (Mon, 12 Nov 2018 22:53:18 GMT):
and every endorser contributed to the randomness

yacovm (Mon, 12 Nov 2018 22:53:32 GMT):
and no endorser could know how to pick cleverly its randomness

yacovm (Mon, 12 Nov 2018 22:53:40 GMT):
unless it knows to reverse a hash function

yacovm (Mon, 12 Nov 2018 22:54:42 GMT):
now for storing the hash pre-image you can use a collection of only a single organizaiton

yacovm (Mon, 12 Nov 2018 22:54:45 GMT):
like - 3 collections

yacovm (Mon, 12 Nov 2018 22:54:49 GMT):
Col-A, Col-B, Col-C

yacovm (Mon, 12 Nov 2018 22:54:57 GMT):
each node would write into the collection

yacovm (Mon, 12 Nov 2018 22:55:06 GMT):
to remember its hash

yacovm (Mon, 12 Nov 2018 22:55:06 GMT):
to remember its hash pre-image

yacovm (Mon, 12 Nov 2018 22:55:11 GMT):
between the transactions

yacovm (Mon, 12 Nov 2018 22:55:51 GMT):
at the end of the whole process, every endorser can verify that the hash pre-image from every other endorser is really the correct one

Raycoms (Mon, 12 Nov 2018 22:56:58 GMT):
Hmm, but how would that work on client trigger? I thought the responds from the invocation of the smart contract have to be equal?

yacovm (Mon, 12 Nov 2018 22:57:15 GMT):
you only do a single endorserment each time

yacovm (Mon, 12 Nov 2018 22:57:21 GMT):
no multiple endorsements

yacovm (Mon, 12 Nov 2018 22:57:41 GMT):
but at the end you can have all endorsers just read the results from the ledger

Raycoms (Mon, 12 Nov 2018 22:57:54 GMT):
So the client has to invoke three equal transactions on the same contract on 3 different endoresers

yacovm (Mon, 12 Nov 2018 22:58:00 GMT):
yeah

yacovm (Mon, 12 Nov 2018 22:58:03 GMT):
and then at the end

yacovm (Mon, 12 Nov 2018 22:58:14 GMT):
but not 3

yacovm (Mon, 12 Nov 2018 22:58:15 GMT):
6

yacovm (Mon, 12 Nov 2018 22:58:19 GMT):
3 for putting the values

yacovm (Mon, 12 Nov 2018 22:58:22 GMT):
3 for revealing them

yacovm (Mon, 12 Nov 2018 22:58:32 GMT):
and one last to XOR them all

yacovm (Mon, 12 Nov 2018 22:58:40 GMT):
(the revealed parts)

yacovm (Mon, 12 Nov 2018 22:59:15 GMT):
now, once I implement https://jira.hyperledger.org/browse/FAB-11980 there will be another (cool) way to do this

Raycoms (Mon, 12 Nov 2018 23:00:41 GMT):
Can a chaincode create a transaction?

Raycoms (Mon, 12 Nov 2018 23:00:44 GMT):
or only modify state?

Raycoms (Mon, 12 Nov 2018 23:01:18 GMT):
And, that sounds like a nice feature

Raycoms (Mon, 12 Nov 2018 23:10:14 GMT):
having the client send 7 transactions wouldn't be the best usability, fortunately, I could say it would hide behind the application

Raycoms (Mon, 12 Nov 2018 23:10:15 GMT):
still

yacovm (Mon, 12 Nov 2018 23:12:47 GMT):
> Can a chaincode create a transaction? no > having the client send 7 transactions wouldn't be the best usability, and your use case with picking exams isn't really something you need a blockchain for.

Raycoms (Mon, 12 Nov 2018 23:30:33 GMT):
Unless I can't trust the organization

HylaJaponica (Tue, 13 Nov 2018 00:25:59 GMT):
Has joined the channel.

parthask (Tue, 13 Nov 2018 00:53:33 GMT):
Could somebody please help me with this error? Docker is running in the background. But I get this when I run downloadFabric.sh "Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-peer/manifests/1.2.1: unauthorized: incorrect username or password"

parthask (Tue, 13 Nov 2018 00:54:41 GMT):
I'd highly appreciate any pointers in this regard, since I can't find anything online

esumit (Tue, 13 Nov 2018 01:54:12 GMT):
@parthask Juts saying trivial stuff like try to do via sudo ./downloadFabric.sh, and you have docker installed

esumit (Tue, 13 Nov 2018 01:54:12 GMT):
@parthask Juts saying trivial stuff like try to do via sudo ./downloadFabric.sh,

esumit (Tue, 13 Nov 2018 01:54:12 GMT):
.

esumit (Tue, 13 Nov 2018 01:58:19 GMT):
@parthask May be have a look on this stuff : https://medium.com/@blacksourcez/fix-docker-error-unauthorized-incorrect-username-or-password-in-docker-f80c45951b6b

luke.gold (Tue, 13 Nov 2018 03:10:25 GMT):
Has joined the channel.

sheetal-hlf (Tue, 13 Nov 2018 04:02:09 GMT):
@mbwhite as per the playback wiki there is a session for "Contract & Transaction Metadata" on 14th Nov'18. Could you please share the meeting details?

mbwhite (Tue, 13 Nov 2018 04:02:09 GMT):
Has joined the channel.

PhilipAndrew (Tue, 13 Nov 2018 04:15:46 GMT):
Hello, I have basic network running, how can I then login to it with composer-cli ? https://github.com/hyperledger/fabric-samples/tree/master/basic-network

ruien (Tue, 13 Nov 2018 04:40:23 GMT):
Hello Everyone -- I'm still dealing with an issue _(~1 week now)_ in which I am unable to add Anchor Peers for an organization which was added to a channel at a later time. The "adding org to channel" guide (https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html) doesn't say anything about adding anchor peers for Org3, and `updateAnchorPeers` isn't called anywhere in the `step*org3.sh` scripts in `fabric-samples/first-network/scripts`. I have no problem generating the anchor peers update transaction for the new org with `configtxgen -outputAnchorPeersUpdate`, but submitting it results in `error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 2`. AnchorPeersUpdate transactions don't build off of a `configtxlator compute_update` but instead come directly from the updated configtx.yaml, so why would it be expecting version 1? I'm on commit `306640d3` (from `release-1.3`) One thing that seems very suspicious is this comment in `configtxgen --help` regarding `outputAnchorPeersUpdate`: `Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)`. First, I'm not sure why it says "works only with the default channel creation", because passing `-profile` and `-channelID` both seem to work as expected. This is the first update for the new org (apart from the `peer channel update` that actually added the new organization to the consortium), but maybe that's not good enough for the "only for the first update" restriction?

ruien (Tue, 13 Nov 2018 04:56:51 GMT):
By the way: to reproduce this, just run BYFN and EYFN, then try adding the Org3 anchor pees. Same error.

DattaPatil (Tue, 13 Nov 2018 06:22:01 GMT):
Hello Everyone, We would like to move from Composer to Fabric. Meaning to say our project is already running over Hyperledger Composer but now we are in process to move over fabric. In that case how the data back up can been done? would the already processed data get lost when migrate from composer to fabric?

trevoro1 (Tue, 13 Nov 2018 10:02:15 GMT):
what is the best way to get training for fabric? I am seeking more hands on skills.

Afe95 (Tue, 13 Nov 2018 10:12:12 GMT):
@trevoro1 I feel the official documentation is still the best place to look at as I haven't found many resource online

Afe95 (Tue, 13 Nov 2018 10:14:24 GMT):
I am trying to deploy my network with some changes from byfn architecture. cryptogen and configtxgen create the transactions and cryptomaterials correctly. When I start all the containers, the orderer throws the following error ``` orderer.supply-chain.com | 2018-11-10 14:06:26.015 UTC [orderer/commmon/multichannel] checkResourcesOrPanic -> PANI 005 [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_3 is required but not supported: Orderer capability V1_3 is required but not supported orderer.supply-chain.com | panic: [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_3 is required but not supported: Orderer capability V1_3 is required but not supported orderer.supply-chain.com exited with code 2 ``` The strange thing is that it says [channel byfn-sys-channel], but my setup channel is called sys-channel ``` $FABRIC_BIN/cryptogen generate --config=$FABRIC_CFG_PATH/crypto-config.yaml --output=$FABRIC_CFG_PATH/crypto-config $FABRIC_BIN/configtxgen -profile BlockchainGenesis -channelID sys-channel -outputBlock $FABRIC_CFG_PATH/channel-artifacts/genesis.block ``` and I am using fabric v1.3 and I can run the byfn tutorial with no errors so I assume fabric has been installed correctly. Where can the error be?

trevoro1 (Tue, 13 Nov 2018 10:18:16 GMT):
what confused me is how composer relates to fabric. I understood composer to be a sort of IDE but it seems to actually run hyperledger.

mallikarjunasai995 (Tue, 13 Nov 2018 10:37:58 GMT):
Hi guys i want to build this below mentioned app in windows

mallikarjunasai995 (Tue, 13 Nov 2018 10:37:59 GMT):
https://github.com/IBM/build-blockchain-insurance-app

mallikarjunasai995 (Tue, 13 Nov 2018 10:38:26 GMT):
but in the github the information to build this app is showing only for ubuntu and mac

mallikarjunasai995 (Tue, 13 Nov 2018 10:38:37 GMT):
can any one please guide me how to do that in windows

halilkalkan (Tue, 13 Nov 2018 10:39:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PhPcNSorihcnh7jko) Hi Philip, you can join to cli with the command "docker exec -it cli bash". You can try.

ruien (Tue, 13 Nov 2018 10:57:50 GMT):
@Afe95 maybe your capabilities are set incorrectly in configtx.yaml -- I use this: ``` Capabilities: Channel: &ChannelCapabilities V1_3: true Orderer: &OrdererCapabilities V1_1: true Application: &ApplicationCapabilities V1_3: true V1_2: false V1_1: false ```

trevoro1 (Tue, 13 Nov 2018 11:10:09 GMT):
is the application the same as the client?

ruien (Tue, 13 Nov 2018 11:21:19 GMT):
I'm not sure how to interpret that question, because I've never heard of a "client" capability group

MahimaManik (Tue, 13 Nov 2018 11:40:01 GMT):
Hi, I am running orderer and peer on two different VMs. I was able to execute create channel, fetch channel config and join channel from the peer successfully. Next, I want to run chaincode on it located in fabric/examples/chaincode/go/example02 in fabric 1.2. I was successfully able to install chaincode with following command `CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode install -n example02 -p github.com/hyperledger/fabric/examples/chaincode/go/example02 -v v0` It shows the following log: `2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-11-13 11:13:34.336 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response:` When I try to instantiate chaincode, I get the following error: `CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode instantiate -o 192.168.1.5:7050 -C mychannel -n example02 -v v0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 81b57fb4635092074d3585cec328e4c54f8f1d45028664795a56cfbc7f5a4c80: error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown`

MahimaManik (Tue, 13 Nov 2018 11:40:01 GMT):
Hi, I am running orderer and peer on two different VMs. I was able to execute create channel, fetch channel config and join channel from the peer successfully. Next, I want to run chaincode on it located in fabric/examples/chaincode/go/example02 in fabric 1.2. I was successfully able to install chaincode with following command `CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode install -n example02 -p github.com/hyperledger/fabric/examples/chaincode/go/example02 -v v0` It shows the following log: `2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-11-13 11:13:34.336 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response:` When I try to instantiate chaincode, I get the following error: ```CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode instantiate -o 192.168.1.5:7050 -C mychannel -n example02 -v v0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 81b57fb4635092074d3585cec328e4c54f8f1d45028664795a56cfbc7f5a4c80: error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown```

MahimaManik (Tue, 13 Nov 2018 11:40:01 GMT):
Hi, I am running orderer and peer on two different VMs. I was able to execute create channel, fetch channel config and join channel from the peer successfully. Next, I want to run chaincode on it located in fabric/examples/chaincode/go/example02 in fabric 1.2. I was successfully able to install chaincode with following command ```CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode install -n example02 -p github.com/hyperledger/fabric/examples/chaincode/go/example02 -v v0``` It shows the following log: ```2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-11-13 11:13:34.336 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response:``` When I try to instantiate chaincode, I get the following error: ```root@fa36d48915d7:/opt/gopath/src/github.com/hyperledger/fabric# CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode instantiate -o 192.168.1.5:7050 -C mychannel -n example02 -v v0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 81b57fb4635092074d3585cec328e4c54f8f1d45028664795a56cfbc7f5a4c80: error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown```

MahimaManik (Tue, 13 Nov 2018 11:40:01 GMT):
Hi, I am running orderer and peer on two different VMs. I was able to execute create channel, fetch channel config and join channel from the peer successfully. Next, I want to run chaincode on it located in fabric/examples/chaincode/go/example02 in fabric 1.2. I was successfully able to install chaincode with following command `CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode install -n example02 -p github.com/hyperledger/fabric/examples/chaincode/go/example02 -v v0` It shows the following log: ```2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:13:34.112 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-11-13 11:13:34.336 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response:``` When I try to instantiate chaincode, I get the following error: ```root@fa36d48915d7:/opt/gopath/src/github.com/hyperledger/fabric# CORE_PEER_ADDRESS=peer0.org1.example.com:7051 peer chaincode instantiate -o 192.168.1.5:7050 -C mychannel -n example02 -v v0 -c '{"Args":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-11-13 11:21:46.383 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 81b57fb4635092074d3585cec328e4c54f8f1d45028664795a56cfbc7f5a4c80: error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown```

MahimaManik (Tue, 13 Nov 2018 11:41:27 GMT):
192.168.1.5 is the IP address of orderer. Can anybody please tell what I am doing wrong here?

feitnomore (Tue, 13 Nov 2018 11:59:52 GMT):
I'm trying to use a Policy with -P "AND('Org1.Member','Org2.Member','Org3.Member')" and this is not working... I'm getting lots of: ``` 2018-10-29 16:17:30.884 UTC [cauthdsl] func2 -> DEBU c37 0xc42000e028 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) ```

Afe95 (Tue, 13 Nov 2018 12:07:06 GMT):
@ruien These are the capabilities I am using ``` Capabilities: Channel: &ChannelCapabilities V1_3: true Orderer: &OrdererCapabilities V1_1: true Application: &ApplicationCapabilities V1_3: true V1_2: false V1_1: false ```

Ramrockez143 (Tue, 13 Nov 2018 12:14:42 GMT):
Has joined the channel.

Ramrockez143 (Tue, 13 Nov 2018 12:15:04 GMT):
how to integrate jenkins with hypeledger

adityachap (Tue, 13 Nov 2018 12:27:37 GMT):
Has joined the channel.

adityachap (Tue, 13 Nov 2018 12:27:42 GMT):
I have a question related to securing kafka topic on hyperledger fabric my question is as follows 1. I have a hyperledger network with 1 orderer and kafka cluster set up 2. My orderer is subscribed to the kafka topic and gets the blocks from kafka 3. Now what if any other node (external node) which is not the part of hyperledger network subscribes to kakfa abd fetches data 4. How can we secure kafka topics to be limited to hyperledger orderer service nodes and ensure that kafka only connects to OSN and not any external nodes

GiovanniNapoli (Tue, 13 Nov 2018 12:37:31 GMT):
Hi all, is there a way to get Tx Validation Code through cli? I mean, in a readable way

omarqr (Tue, 13 Nov 2018 14:24:09 GMT):
Hello, anyone knows which version of Composer I should run on Fabric v1.3 ?

Damn (Tue, 13 Nov 2018 19:16:03 GMT):
Has joined the channel.

Damn (Tue, 13 Nov 2018 19:16:18 GMT):
Hi everyone, I'm currently working on a school project, in witch we have to implement a blockchain to send basic data between users, this blockchain would be private, so completely used by one company. But I can't seem to find if hyperledger fabric would be adapted to this use case, specifically if it would be useful to have a hyperledger blockchain if the nodes are only controlled by one organisation. Would there be any reason in this case to use blockchain over traditional centralized server configuration. And If yes how many nodes are necessary ?

mastersingh24 (Tue, 13 Nov 2018 21:47:28 GMT):
@Damn - Personally, I don't really see the need to use blockchain within a single organization UNLESS you are dealing with multiple departments, groups, divisions, etc .... but even then a centralized system is the way to go.

yacovm (Tue, 13 Nov 2018 22:07:14 GMT):
@Damn what a cool nickname

ethode (Wed, 14 Nov 2018 00:37:45 GMT):
Hey gang, I had a question in regards to fabric hostnames and domains. For testing purposes, do the domains and {hostname}.{domain} require resolution in order for the network to operate?

LevinLMKwong (Wed, 14 Nov 2018 03:04:00 GMT):
Does the chaincode struct have to be an empty struct??? https://stackoverflow.com/questions/53132110/hyperledger-fabric-chaincode-struct

ShefaliMittal (Wed, 14 Nov 2018 04:49:15 GMT):
Hi, I am using mysql with fabric ca. It works fine when I start the network first time. But when I restart the network and tries to register same user again, It shows user already registered with fabric CA. I understand that somewhere mysql data is not clearing out. But not sure how to do that. Can anyone please help me with that.

ruien (Wed, 14 Nov 2018 05:15:57 GMT):
@ethode Yes, fabric often uses domains and they need to resolve to an IP -- an example would be the addresses of the orderers visible in the genesis block. The peer will see those addresses and try to connect to them (same for anchor peers). It's often the case during testing that you might be resolving those domains in `/etc/hosts` at first, but they do need to resolve.

ruien (Wed, 14 Nov 2018 05:20:29 GMT):
@Afe95 I'm really not sure what to suggest - what you've shown so far looks right, specifically creating the genesis block with `sys-channel`. Is `byfn-sys-channel` your orgs channel created with `outputCreateChannelTx`? It's hard to see what exactly you've changed since the default byfn network -- maybe you can provide a full diff?

adityachap (Wed, 14 Nov 2018 05:21:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ew2EQR5zW5gG9Q7Qq) @ShefaliMittal The issue is when you register or enroll a user the keystore generated for that user is created locally , now if you restart the client /sdk container it will be wiped off and when you restart and try it will fail with the same username you will have to use another user so try persisting the keystore

ruien (Wed, 14 Nov 2018 05:29:07 GMT):
@MahimaManik This feels like some sort of bug, since I've done almost exactly that without any problems. Maybe try with fabric 1.3 and confirm the error still exists? It feels like maybe an issue with the ccenv image - maybe start a container on it and make sure that all of the tools are working? These are just the best things I can think of trying next..

luke.gold (Wed, 14 Nov 2018 05:32:46 GMT):
I'm trying to use the cmd "docker-compose -f docker-compose-peer0org1.yaml up -d" . There is a wrong like below : ``2018-11-14 03:37:21.459 UTC [kvledger.util] CreateDirIfMissing -> DEBU 02b CreateDirIfMissing [/var/hyperledger/production/ledgersData/historyLeveldb/] 2018-11-14 03:37:21.459 UTC [kvledger.util] logDirStatus -> DEBU 02c Before creating dir - [/var/hyperledger/production/ledgersData/historyLeveldb/] does not exist 2018-11-14 03:37:21.460 UTC [kvledger.util] logDirStatus -> DEBU 02d After creating dir - [/var/hyperledger/production/ledgersData/historyLeveldb/] exists 2018-11-14 03:37:21.476 UTC [kvledger] NewProvider -> INFO 02e ledger provider Initialized 2018-11-14 03:37:21.476 UTC [kvledger] recoverUnderConstructionLedger -> DEBU 02f Recovering under construction ledger 2018-11-14 03:37:21.476 UTC [kvledger] recoverUnderConstructionLedger -> DEBU 030 No under construction ledger found. Quitting recovery 2018-11-14 03:37:21.476 UTC [ledgermgmt] initialize -> INFO 031 ledger mgmt initialized 2018-11-14 03:37:21.478 UTC [nodeCmd] serve -> INFO 032 Starting peer with TLS enabled 2018-11-14 03:37:21.481 UTC [eventhub_producer] AddEventType -> DEBU 033 Registering BLOCK 2018-11-14 03:37:21.481 UTC [eventhub_producer] AddEventType -> DEBU 034 Registering CHAINCODE 2018-11-14 03:37:21.481 UTC [eventhub_producer] AddEventType -> DEBU 035 Registering REJECTION 2018-11-14 03:37:21.481 UTC [eventhub_producer] AddEventType -> DEBU 036 Registering REGISTER panic: listen tcp 47.104.234.220:7052: bind: cannot assign requested address goroutine 1 [running]: panic(0xcc54c0, 0xc4201259f0) /opt/go/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/peer/node.createChaincodeServer(0x1401280, 0xc4200d2a80, 0xc420187fb0, 0xc, 0xf1, 0x2f1, 0xc4202eaec0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:294 +0x185 github.com/hyperledger/fabric/peer/node.serve(0x143e6a8, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:136 +0x340 github.com/hyperledger/fabric/peer/node.glob..func1(0x13e5260, 0x143e6a8, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:75 +0x3f github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x13e5260, 0x143e6a8, 0x0, 0x0, 0x13e5260, 0x143e6a8) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 +0x234 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x13e58c0, 0xf, 0xc420010075, 0x7) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 +0x367 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x13e58c0, 0x1b, 0xc420010075) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 +0x2b main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:118 +0x54e fabric@peer0:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli$ `

ruien (Wed, 14 Nov 2018 05:33:31 GMT):
@Damn it wouldn't be very useful for a single organization, but it would be a good educational exercise to set up nonetheless. You wouldn't have to do much to "adapt" fabric for this usecase, since it's already capable of this in its current form. You'd probably have a Solo orderer and maybe just one or two peers. All of the clients would use a chaincode to submit a message to be recorded on the blockchain, and the client applications read the new blocks to display the messages.

deenario (Wed, 14 Nov 2018 05:34:34 GMT):
Hello guys i need a little help . I have two struct in my chaincode. Student and Teacher. The student table has Student ID and Teacher table has TeacherID. Now upon insertion i am checking if the studentID 1 already exsists or not. What i am doing for it is this. StudentAsBytes, err := stub.GetState(studentID) if err != nil { return shim.Error("Student Failed with Error: " + err.Error()) } else if ConversionAsBytes != nil { return shim.Error("The Inserted Student ID already Exists: " + StudentID) } The Problem is even. There is no data in the student struct but the teacher table has ID 1. So it will give me this error for the student Table that ID 1 already exsists. How can i make it check ID one only in the same struct i am sending data to.

ruien (Wed, 14 Nov 2018 05:35:51 GMT):
@luke.gold please use a paste tool like http://dpaste.com/ to paste long output instead of flooding the channel. The error is `bind: cannot assign requested address`, what is `ORDERER_GENERAL_LISTENADDRESS` set to and what addresses/interfaces are available in your container?

ruien (Wed, 14 Nov 2018 05:35:51 GMT):
@luke.gold please use a paste tool like http://dpaste.com/ to paste long output instead of flooding the channel. The error is `bind: cannot assign requested address`, what is `CORE_PEER_CHAINCODELISTENADDRESS` set to and what addresses/interfaces are available in your container?

ruien (Wed, 14 Nov 2018 05:35:51 GMT):
@luke.gold please use a paste tool like http://dpaste.com/ to paste long output instead of flooding the channel. The error is `bind: cannot assign requested address`, what are `CORE_PEER_ADDRESS` and `CORE_PEER_CHAINCODELISTENADDRESS` set to and what addresses/interfaces are available in your container?

ruien (Wed, 14 Nov 2018 05:38:24 GMT):
@deenario The world state doesn't have the concept of different structures; rather, think of it as key-value pairs. If you set the value for key=1, then that key's value is set. You could prefix instead by the type, using keys like `student_1234` and `teacher_1234`

ruien (Wed, 14 Nov 2018 05:38:24 GMT):
@deenario The world state doesn't have the concept of different structures; rather, think of it as key-value pairs. If you set the value for key=1, then that key's value is set. You could prefix instead by the type, using keys like `student_1234` and `teacher_1234`. Also, if you need high concurrency and/or want to link arrays with a name, take a look at the `CreateCompositeKey`, `SplitCompositeKey`, and `GetStateByPartialCompositeKey` stub method.

ruien (Wed, 14 Nov 2018 05:38:24 GMT):
@deenario The world state doesn't have the concept of different structures; rather, think of it as key-value pairs. If you set the value for key=1, then that key's value is set. You could prefix instead by the type, using keys like `student_1234` and `teacher_1234`. Also, if you need high concurrency and/or want to link arrays with a name, take a look at the `CreateCompositeKey`, `SplitCompositeKey`, and `GetStateByPartialCompositeKey` stub methods.

luke.gold (Wed, 14 Nov 2018 05:41:48 GMT):
@ruien It's set `- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0` in base/docker-compose-base.yaml

ruien (Wed, 14 Nov 2018 05:42:38 GMT):
@luke.gold yeah, my apologies - that was a dumb question on my part since I now see you were starting the peer, not the orderer. I just updated my answer above with more sane variable names

ruien (Wed, 14 Nov 2018 05:43:15 GMT):
My guess is that your orderer starts fine specifically because it's binding to 0.0.0.0, whereas the peer isn't binding to that address

ruien (Wed, 14 Nov 2018 05:43:15 GMT):
My guess is that your orderer starts fine specifically because it's binding to 0.0.0.0, whereas the peer is trying to bind to an address/interface not available inside the container

deenario (Wed, 14 Nov 2018 05:45:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2TfaGZyn9cSXNM8mS) @ruien Which one is a better approach. Should i go with Prefix as that seems easier right now to me. But will that effect the overall querying or will it be the same if i use the compositeKey ?

ruien (Wed, 14 Nov 2018 05:48:41 GMT):
@deenario `GetStateByPartialCompositeKey` returns an iterator which allows you to loop through all of the elements. It can be faster and more convenient if you ever need to operate on values when you don't know the key directly (and must iterate over them to check).

luke.gold (Wed, 14 Nov 2018 05:50:32 GMT):
@ruien I search this problem on website, some title said the reason was "Port redirecting binding to IPv6 but not IPv4 interfaces". Is it right?

ruien (Wed, 14 Nov 2018 05:50:51 GMT):
I'd wager not

githubcpc (Wed, 14 Nov 2018 06:01:22 GMT):
I follow the demo from https://hyperledger-fabric.readthedocs.io/en/release-1.2/channel_update_tutorial.html but I get "Error: received bad response, status 500" when I execute the "peer channel join -b mychannel.block" .Before this ,everything execute successfully.

githubcpc (Wed, 14 Nov 2018 06:02:00 GMT):
My orderer logs show that, 2018-11-14 02:23:13.043 UTC [orderer/consensus/kafka/sarama] RefreshMetadata -> DEBU 693 client/metadata fetching metadata for all topics from broker kafka2.example.com:9092 2018-11-14 02:24:16.866 UTC [grpc] Printf -> DEBU 694 grpc: Server.Serve failed to complete security handshake from "192.168.21.146:46804": remote error: tls: bad certificate

githubcpc (Wed, 14 Nov 2018 06:02:57 GMT):
So I don't know how to solve this error ,"tls: bad certificate".

githubcpc (Wed, 14 Nov 2018 06:03:20 GMT):
However, I don't know how to solve this error ,"tls: bad certificate".

deenario (Wed, 14 Nov 2018 06:03:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XsetEzJNdHY5jcCRm) Let me explain a scenario. let suppose my table has 1 million records now and i want to search a specific student. So now if i search a student with ID student_123. Which method would be faster for the retrieval of this record. If i have to loop through the elements of getstatepartialcompositekey. Doesn't that makes it the same ?

deenario (Wed, 14 Nov 2018 06:04:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NQtAKR5AsDkLvzQMA) @ruien Is it okay to use the prefix method for the industrial implementation of the blockchain ?

ruien (Wed, 14 Nov 2018 06:08:30 GMT):
@deenario It doesn't make sense, no -- if you know the student's ID, then you just look up that key: either `key := "student_1234"` or `key := stub.CreateCompositeKey("student", "1234")` -- they'll both be fast. The first might be *slightly* faster.

ruien (Wed, 14 Nov 2018 06:08:30 GMT):
@deenario It doesn't make sense, no -- if you know the student's ID, then you just look up that key: either `key := "student_1234"` or `key := stub.CreateCompositeKey("student", "1234")` -- they'll both be fast. The first might be *slightly* faster. (Note: these are not equivalent! The composite key has null separators)

ruien (Wed, 14 Nov 2018 06:09:39 GMT):
What I am saying is simply that if you have an operation where you *do* need to loop through all the records, then `GetStateByPartialCompositeKey` makes sense.

MahimaManik (Wed, 14 Nov 2018 06:10:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hC4LJsDSkCiWetBdp) @ruien Thanks for the reply. Please share if you know any good resource to follow through the steps for Fabric's multi VM setup

ruien (Wed, 14 Nov 2018 06:11:38 GMT):
@MahimaManik I used https://www.cnblogs.com/llongst/ , but note that it's in Chinese.

ShefaliMittal (Wed, 14 Nov 2018 06:19:32 GMT):
I want to implement login functionality in my frontend application. How can I achieve it with fabric ca.

ruien (Wed, 14 Nov 2018 06:25:19 GMT):
@ShefaliMittal Typically the client application would run `fabric-ca-client` to generate the private key, CSR, and get the certificate. There is a way to do the steps manually using openssl if you need the client to generate a CSR and give it to you, and then you return a certificate to him. One way or another, though, the client needs to be able to generate a private key himself.

ShefaliMittal (Wed, 14 Nov 2018 06:28:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xzgsEEw6wgZbYeq5z) @ruien I am using node sdk, and I am using fabric-ca-client to generate the certificate. But my problem is after generating certificates, those reside on client server. Now how do my application determine if the request is coming from authenticated source

MuhammedHafil (Wed, 14 Nov 2018 07:17:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mnfQe6XPvCns9SrXw) @ShefaliMittal refer to balance transfer example on fabric samples repo. The example shows authorisation with jwt

MuhammedHafil (Wed, 14 Nov 2018 07:18:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B6h58YfXKvBx2DL3T) @MahimaManik https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

rashansamith88 (Wed, 14 Nov 2018 07:42:37 GMT):
how to restart fabric network again

ruien (Wed, 14 Nov 2018 08:34:07 GMT):
@ShefaliMittal The client server will use the certificate as its signcert when interacting with your fabric network, and the certificate's issuer (the fabric CA) guarantees that it's an authenticated source. Of course, this assumes the client's private key hasn't been compromised, but that goes without saying.

ruien (Wed, 14 Nov 2018 08:34:07 GMT):
@ShefaliMittal The client server will use the certificate as its signcert when interacting with your fabric network, and the certificate's issuer (the fabric CA) guarantees that it's an authenticated source. Of course, this assumes the client's private key hasn't been compromised, but that goes without saying. The chaincode can see the creator (see `GetCreator()` in https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStubInterface)

boonthept (Wed, 14 Nov 2018 09:14:23 GMT):
้hi there, i have a question regarding id mixer. from how i read the document, the idmixer let you hide the identity of the transaction invoker, though it didn't hide the organization in which the identity belong to. is that the correct understanding?

Phil-D (Wed, 14 Nov 2018 09:36:20 GMT):
Has joined the channel.

Phil-D (Wed, 14 Nov 2018 09:37:28 GMT):
Is it possible to perform queries on the composer playground? or do i need to run my own server for queries to be possible? Thanks

AndresMartinezMelgar.itcl (Wed, 14 Nov 2018 10:07:03 GMT):
One question, when you download the docker with the hyperledger fabric repository, there is one that is called fabric-ca. On the other hand there is a hyperledger / fabric-ca repository on github. My question is: is it the same? I am following the guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html

DimitarA (Wed, 14 Nov 2018 10:12:29 GMT):
Has joined the channel.

DimitarA (Wed, 14 Nov 2018 10:13:54 GMT):
Hello, i am curious if it is possible to apply data mining/machine learning algorithms in the chain code ? Is it possible to put it inside or you have to push and retrieve data to external service ? Thank you

RobertD 14 (Wed, 14 Nov 2018 10:57:29 GMT):
Has joined the channel.

RobertD 14 (Wed, 14 Nov 2018 10:57:32 GMT):
Does anyone know if Fabric still chokes to death for more than 16 nodes in the same channel as some articles may suggest?

john-philipp (Wed, 14 Nov 2018 11:31:00 GMT):
Has joined the channel.

hyperlearner (Wed, 14 Nov 2018 11:45:37 GMT):
Hi, We happened to upgrade the chaincode. After upgradation,the existing private data added through the previous version of chaincode is inaccessible. However I am able to access the newer data that is being added after the upgradation. Has anyone faced such issues ?

mallikarjunasai995 (Wed, 14 Nov 2018 11:46:54 GMT):
Creating peer ... error ERROR: for peer Cannot create container for service peer: b'Mount denied:\nThesource path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path' ERROR: for peer Cannot create container for service peer: b'Mount denied:\nThesource path "\\\\var\\\\run:/host/var/run/"\nis not a valid Windows path'

mallikarjunasai995 (Wed, 14 Nov 2018 11:47:04 GMT):
can any help me to get this resolved

mallikarjunasai995 (Wed, 14 Nov 2018 11:47:28 GMT):
i have already checked the stackoverflow and github resolutions unfortunately didnt work for me

mallikarjunasai995 (Wed, 14 Nov 2018 11:47:37 GMT):
i have already set windows path for this

MuhammedHafil (Wed, 14 Nov 2018 12:05:04 GMT):
is it possible to search for data between dates in fabric?

MuhammedHafil (Wed, 14 Nov 2018 12:10:16 GMT):
I mean, I have a date field saved with different data , Is there any way to find data between a from and to date for the date field

MuhammedHafil (Wed, 14 Nov 2018 12:10:16 GMT):
I mean, I have a date field saved with states , Is there any way to find states between a from and to date based on the date field

MuhammedHafil (Wed, 14 Nov 2018 12:58:47 GMT):
any idea other than getting key of first state data with from date and key of last state data with to date , Then doing GetStateByRange?

MuhammedHafil (Wed, 14 Nov 2018 12:58:47 GMT):
any idea other than getting key of first state data key with from date and key of last state data with to date , Then doing GetStateByRange?

NavjotSingh1 (Wed, 14 Nov 2018 13:44:26 GMT):
Has joined the channel.

satyajitdeshmukh (Wed, 14 Nov 2018 14:35:08 GMT):
wherei can see the block list created in fabric

satyajitdeshmukh (Wed, 14 Nov 2018 14:35:08 GMT):
where i can see the block list created in fabric ?

d8bhatta (Wed, 14 Nov 2018 15:27:01 GMT):
Hello

d8bhatta (Wed, 14 Nov 2018 15:27:40 GMT):
are points written in this article about choosing fabric or sawtooth, valid?

d8bhatta (Wed, 14 Nov 2018 15:27:43 GMT):
https://discourse.skcript.com/t/when-to-use-hyperledger-fabric-when-to-use-hyperledger-sawtooth/1487?u=varun

anthonycohen (Wed, 14 Nov 2018 15:36:40 GMT):
Has joined the channel.

anthonycohen (Wed, 14 Nov 2018 15:36:51 GMT):
Hello, When I execute "startFabric.sh" I have this error : ``` Error response from daemon: Container f57b4389c962b32a2fc00e1fcc22a9dd99f085430aa24d02b3e346c3d06f812b is not running ``` I use hlfv11 fabric version

dave.enyeart (Wed, 14 Nov 2018 15:53:22 GMT):
@boonthept your question is addressed in this part of the doc: https://hyperledger-fabric.readthedocs.io/en/latest/idemix.html#topology-information

dave.enyeart (Wed, 14 Nov 2018 15:53:22 GMT):
@boonthept your question about identity mixer is addressed in this part of the doc: https://hyperledger-fabric.readthedocs.io/en/latest/idemix.html#topology-information

KubaW (Wed, 14 Nov 2018 15:56:58 GMT):
Has joined the channel.

KubaW (Wed, 14 Nov 2018 16:00:26 GMT):
Hello, I'm looking for a way to connect to my local business network with loopback rest server. I've generated Loopback from Yeoman generator and added my card. However I cannot see models from my network in REST api. Is there any way to autodiscover these models in Loopback app? Or should I create these models from scratch in this new app? I cannot find proper tutorial on Loopback with Hyperledger.

dave.enyeart (Wed, 14 Nov 2018 16:12:18 GMT):
@MuhammedHafil encode the dates as sortable strings using for example iso-8601 format: http://apiux.com/2013/03/20/5-laws-api-dates-and-times/. If using leveldb make the date a key and query using GetStateByRange. If using couchdb you can put the string in your JSON and query on the JSON string using GetQueryResult

MuhammedHafil (Wed, 14 Nov 2018 16:28:12 GMT):
@dave.enyeart : I'm using couchdb, Can you give a small code sample? Thanks

jrosmith (Wed, 14 Nov 2018 16:40:18 GMT):
@MuhammedHafil if you're using couchdb why dont you just store the epoch time and then do a rich query on that timestamp field?

avokadokurdu (Wed, 14 Nov 2018 16:52:28 GMT):
Has joined the channel.

avokadokurdu (Wed, 14 Nov 2018 16:59:19 GMT):
Hi, I'm trying to manually create an additional channel by following https://fabrictestdocs.readthedocs.io/en/latest/asset_cli.html this article (Before that, I set up a byfn network by simply using byfn script without changing any configuration setting). Whenever I run this command "CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 peer channel create -c myc2" , I get an error which says "Error: ordering service endpoint is not valid or missing". Do you have any idea why it is happening? (fabric v1.3)

dave.enyeart (Wed, 14 Nov 2018 17:57:18 GMT):
@MuhammedHafil @jrosmith yeah either approach... iso-8601 string if you want the timestamp sortable and human readable, otherwise an integer with the epoch time. code snippets are readily available on the web for every language... this is not a fabric or couchdb specific thing...

githubcpc (Thu, 15 Nov 2018 02:07:10 GMT):

TIM图片20181115100621.png

githubcpc (Thu, 15 Nov 2018 02:08:01 GMT):
When I add an new peer to my HLF v1.2.The new peer could not connect to the orderer.

githubcpc (Thu, 15 Nov 2018 02:14:03 GMT):
It seems like the new peer use ca instead of MSP. My docker-compose-peer.yaml is

githubcpc (Thu, 15 Nov 2018 02:14:20 GMT):

peer.png

githubcpc (Thu, 15 Nov 2018 02:22:59 GMT):
But I don't know how to solve this. Any help is appreciated.

MahimaManik (Thu, 15 Nov 2018 04:53:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iTTtdczzi6RTKM3Hj) @MuhammedHafil I was looking if we can separate peer0 and orderer from VM1

DattaPatil (Thu, 15 Nov 2018 05:01:02 GMT):
Hello All, Can someone help me with Kafka implementation how it can be done an all, please? in example would help a lot to understand it.

MuhammedHafil (Thu, 15 Nov 2018 05:27:26 GMT):
@DattaPatil https://github.com/skcript/Kafka-Fabric-Network/

MuhammedHafil (Thu, 15 Nov 2018 05:27:26 GMT):
@DattaPatil https://github.com/skcript/Kafka-Fabric-Network/ https://github.com/hyperledger/fabric-test/blob/master/feature/docker-compose/docker-compose-kafka.yml

DattaPatil (Thu, 15 Nov 2018 05:54:44 GMT):
@MuhammedHafil Thanks a lot.

ArpitKhurana1 (Thu, 15 Nov 2018 09:09:10 GMT):
Hey guys , is there any walkthrough for, how to add a new consortium

dpey (Thu, 15 Nov 2018 09:31:56 GMT):
Has joined the channel.

dpey (Thu, 15 Nov 2018 09:32:34 GMT):
Hello Who could tell me if we can send transaction (at the ledger level) anonymously using MSP? Or is that in a higher level (chaincode contract) that this thing happens?

dpey (Thu, 15 Nov 2018 09:32:34 GMT):
Hello Who could tell me if we can send transaction (at the ledger level) anonymously using MSP? Or is that in a higher level (chaincode contract) that this proof of being part of a group happens?

saumilsdk (Thu, 15 Nov 2018 11:09:07 GMT):
Has joined the channel.

saumilsdk (Thu, 15 Nov 2018 11:09:14 GMT):
hello team

saumilsdk (Thu, 15 Nov 2018 11:09:35 GMT):
i have a question on a use-case where i need to know if blockchain or hyperledger based solution is good approach

saumilsdk (Thu, 15 Nov 2018 11:10:05 GMT):
i work on automobile domain and would like to make use of this technology

saumilsdk (Thu, 15 Nov 2018 11:12:16 GMT):
Use case: We manufacture devices which gets fitted inside the cars. Using that device, i can manage my car remotely. Now I want to open my owned car doors remotely using mobile app.

saumilsdk (Thu, 15 Nov 2018 11:12:31 GMT):
in this use case, is hyperledger good solution here?

luke.gold (Thu, 15 Nov 2018 11:20:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8LZRPYLeMRk7QZhnu) @ruien Thanks for you help. That problem is solved by modified "- CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.example.com:7052"-->"- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052" in "~/go/src/github.com/hyperledger/fabric/examples/e2e_cli/base/docker-compose-base.yaml".

saumilsdk (Thu, 15 Nov 2018 11:43:16 GMT):
Anything anyone?

manoj485 (Thu, 15 Nov 2018 13:56:23 GMT):
Hi Team,

manoj485 (Thu, 15 Nov 2018 13:56:28 GMT):
2018-11-15 13:27:55.197 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 027 Exit with ccEndpoint: peer0.org1.example.com:7052 2018-11-15 13:27:55.197 UTC [nodeCmd] createChaincodeServer -> WARN 028 peer.chaincodeListenAddress is not set, using peer0.org1.example.com:7052

manoj485 (Thu, 15 Nov 2018 13:57:39 GMT):
as i am using firstnetwork to deploy my chaincode but unable do it ,can any one help regarding this error

hudson (Thu, 15 Nov 2018 14:06:54 GMT):
Has joined the channel.

krabradosty (Thu, 15 Nov 2018 14:20:24 GMT):
Hello! What is the meaning of consortium? I'm confused because we can add a new organization to the channel without updating the consortium.

RobertD 14 (Thu, 15 Nov 2018 14:38:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ckwag7iktdFx3ehmo) @d8bhatta Probably it is truth. I even read that it chokes with networks larger than 16 nodes.

akshay.sood (Thu, 15 Nov 2018 16:20:37 GMT):
Hi All

akshay.sood (Thu, 15 Nov 2018 16:20:51 GMT):
Anyone knows what `cauthdsl` means in ```2018-11-15 16:19:14.090 UTC [cauthdsl] func2 -> DEBU 47f 0xc4201600d0 principal evaluation succeeds for identity 0 ``` logs

akshay.sood (Thu, 15 Nov 2018 16:23:10 GMT):
and what does `kvledger` stands for in ```2018-11-15 16:22:31.047 UTC [kvledger] CommitWithPvtData ```

akshay.sood (Thu, 15 Nov 2018 17:58:11 GMT):
Hi guys, Please look into this issue if anyone knows the solution to add a new peer into an existing organization https://stackoverflow.com/questions/53325360/adding-new-peer-in-existing-organization-in-hyperledger-fabric-v1-3-causing-new

kesavants (Thu, 15 Nov 2018 20:56:53 GMT):
suggestion for https://github.com/hyperledger/fabric-sdk-java/blob/release-1.2/docs/EclipseSetup.md in step 5 says remove comments I think putting the copyright after should make this problem go away making the doc valid xml

Afe95 (Thu, 15 Nov 2018 22:33:17 GMT):
@ruien the strange thing is that I haven't written "byfn-sys-channel" anywhere: I did find in the whole folder. This is how I set up the blockchain: ``` export FABRIC_BIN=$HOME/fabric-samples/bin/ export FABRIC_CFG_PATH=$HOME/revolution-radio/setup export CHANNEL_NAME=supply-chain-channel export IMAGE_TAG=latest export COMPOSE_PROJECT_NAME=net $FABRIC_BIN/cryptogen generate --config=$FABRIC_CFG_PATH/crypto-config.yaml --output=$FABRIC_CFG_PATH/crypto-config $FABRIC_BIN/configtxgen -profile BlockchainGenesis -channelID sys-channel -outputBlock $FABRIC_CFG_PATH/channel-artifacts/genesis.block $FABRIC_BIN/configtxgen -profile ChannelSetup -channelID $CHANNEL_NAME -outputCreateChannelTx $FABRIC_CFG_PATH/channel-artifacts/channel.tx $FABRIC_BIN/configtxgen -profile ChannelSetup -channelID $CHANNEL_NAME -outputAnchorPeersUpdate $FABRIC_CFG_PATH/channel-artifacts/AirbusMSPanchors.tx -asOrg AbMSP $FABRIC_BIN/configtxgen -profile ChannelSetup -channelID $CHANNEL_NAME -outputAnchorPeersUpdate $FABRIC_CFG_PATH/channel-artifacts/SupplierAMSPanchors.tx -asOrg SupplierAMSP $FABRIC_BIN/configtxgen -profile ChannelSetup -channelID $CHANNEL_NAME -outputAnchorPeersUpdate $FABRIC_CFG_PATH/channel-artifacts/SupplierBMSPanchors.tx -asOrg SupplierBMSP ``` Is there anything wrong?

HoneyShah (Fri, 16 Nov 2018 08:20:06 GMT):
Hello, When chaincode container remains idle for some time then it stops with error: ``` ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: EOF\n at createStatusError (/usr/local/src/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:248:8)\n at /usr/local/src/node_modules/grpc/src/client.js:804:12" ``` And when the first request comes after idle time it gives an error of ``` Error: 14 UNAVAILABLE: TCP Write failed ``` And after that all works fine. How can I solve for the first request? Please help

Unni_1994 (Fri, 16 Nov 2018 08:36:57 GMT):
Hi , how can we pass the transient field (private data) by using node.js fabric sdk . I have tried but unable to retrieve transientMap on chaincode during Invocation

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:17:55 GMT):

Clipboard - November 16, 2018 1:17 PM

halilkalkan (Fri, 16 Nov 2018 10:26:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t7qTbtCFBY2kPYocJ) Oh i found another example, I'm gonna try the solution.

ArpitKhurana1 (Fri, 16 Nov 2018 11:06:03 GMT):
Hi, is there any way to get the current org or msp in chaincode , so that organisation level validation can be applied

luke.gold (Fri, 16 Nov 2018 11:13:43 GMT):
hi

luke.gold (Fri, 16 Nov 2018 11:44:18 GMT):
Hi, there is a strange thing when I run docker-compose:``` `# Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' services: peer-base: image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ * - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default* #- CORE_LOGGING_LEVEL=ERROR - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start volumes: - /etc/hosts:/etc/hosts` ``` the environment variable `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default`, but when i execute command below:``` `fabric@orderer:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli$ docker-compose -f docker-compose-orderer.yaml up -d Creating network "*e2ecli_default*" with the default driver Creating orderer.example.com` ``` The network node name is 'e2ecli_default', not is 'e2e_cli_default' which be setted. The wrong network node will cause a problem when chaincode instantiates. ``` ```Please help ``` ```

dave.enyeart (Fri, 16 Nov 2018 11:56:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y8v6vBWJ4mw3L5W7q) @Unni_1994 I answered your duplicate question in #fabric-chaincode-dev

dave.enyeart (Fri, 16 Nov 2018 11:57:30 GMT):
@ArpitKhurana1 what do you mean by org level validation?

ArpitKhurana1 (Fri, 16 Nov 2018 12:02:52 GMT):
Lets say i have a channel having 2 orgs

ArpitKhurana1 (Fri, 16 Nov 2018 12:03:27 GMT):
I installed a chaincode in peers of both of them, but org1 may not accept some transaction which org2 think is right

ArpitKhurana1 (Fri, 16 Nov 2018 12:03:58 GMT):
So i want to only endorse a transaction if both organisations have their conditions satisfied

dave.enyeart (Fri, 16 Nov 2018 12:15:05 GMT):
In your chaincode you can check a state before moving on with the transaction. For example require org1 to set some approval criteria in a prior chaincode call.

ArpitKhurana1 (Fri, 16 Nov 2018 12:15:40 GMT):
Can you show an example

ArpitKhurana1 (Fri, 16 Nov 2018 12:16:07 GMT):
I havent seen any way to actually get msp or org id

luke.gold (Fri, 16 Nov 2018 12:20:24 GMT):
Hi, there is a strange thing when I run docker-compose:`# Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' services: peer-base: image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ * - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default* #- CORE_LOGGING_LEVEL=ERROR - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start volumes: - /etc/hosts:/etc/hosts```` the environment variable `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default`, but when i execute command below:`fabric@orderer:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli$ docker-compose -f docker-compose-orderer.yaml up -d Creating network "*e2ecli_default*" with the default driver Creating orderer.example.com` The network node name is 'e2ecli_default', not is 'e2e_cli_default' which be setted. The wrong network node will cause a problem when chaincode instantiates. ``` Please help ``` ```

ArpitKhurana1 (Fri, 16 Nov 2018 12:21:37 GMT):
@dave.enyeart can you explain , setting approval critera "prior" to chaincode call

LalithSesham (Fri, 16 Nov 2018 12:22:59 GMT):
Has joined the channel.

luke.gold (Fri, 16 Nov 2018 12:26:24 GMT):
Hi, there is a strange thing when I run docker-compose: ``` `# Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' services: peer-base: image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ * - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default* #- CORE_LOGGING_LEVEL=ERROR - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start volumes: - /etc/hosts:/etc/hosts` ``` the environment variable `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default`, but when i execute command below: ``` `fabric@orderer:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli$ docker-compose -f docker-compose-orderer.yaml up -d Creating network "*e2ecli_default*" with the default driver Creating orderer.example.com` ``` The network node name is 'e2ecli_default', not is 'e2e_cli_default' which be setted. The wrong network node will cause a problem when chaincode instantiates. Please help

dave.enyeart (Fri, 16 Nov 2018 12:32:11 GMT):
@ArpitKhurana1 Let's say you want org1 approval before transfer asset1 to org1. The chaincode can check for the existence of a key like org1~asset1~approved. This would require org1 to set this key in a prior chaincode call. You can ensure it was org1 making this call by using CID https://github.com/hyperledger/fabric/tree/master/core/chaincode/shim/ext/cid to get the submitters org when setting this special key.

ArpitKhurana1 (Fri, 16 Nov 2018 12:35:23 GMT):
So this will require two different transactions right, Then what is the point having endorsement policies( apart from ensuring ledger consistency)

dave.enyeart (Fri, 16 Nov 2018 12:35:44 GMT):
endorsement policy is all about ledger correctness, not about approvals

dave.enyeart (Fri, 16 Nov 2018 12:35:54 GMT):
approvals have to be coded into chaincode logic

ArpitKhurana1 (Fri, 16 Nov 2018 12:36:02 GMT):
ok got it thanks

ArpitKhurana1 (Fri, 16 Nov 2018 12:36:46 GMT):
In future , can't this be a feature?

ArpitKhurana1 (Fri, 16 Nov 2018 12:37:09 GMT):
I felt that organisation level approval is a necessary thing

ArpitKhurana1 (Fri, 16 Nov 2018 12:38:22 GMT):
This could have been done easily , if organisation name was accessible inside chaincode\

dave.enyeart (Fri, 16 Nov 2018 12:38:56 GMT):
you can use state-based endorsement feature in v1.3 to ensure that a particular org is the endorser

dave.enyeart (Fri, 16 Nov 2018 12:39:06 GMT):
but again, that will check ledger correctness rather than approval

kevinkbc (Fri, 16 Nov 2018 12:40:15 GMT):
Has joined the channel.

kevinkbc (Fri, 16 Nov 2018 12:40:46 GMT):
Hi, do we have any news about the SBFT for Hyperledger Fabric? On the linux foundation course on edx, they say it is expected for this time of the year...

dave.enyeart (Fri, 16 Nov 2018 12:43:42 GMT):
@kevinkbc RAFT support is currently being completed. once that is done SBFT will be worked.

ArpitKhurana1 (Fri, 16 Nov 2018 12:45:56 GMT):
@dave.enyeart Another way can be querieng for some kind of signature from both organisations (which will do validation) and then sending them to final transaction function, where they can be verified

kevinkbc (Fri, 16 Nov 2018 12:46:29 GMT):
thanks @dave.enyeart

akshay.sood (Fri, 16 Nov 2018 14:10:56 GMT):
@dave.enyeart I saw your ans on SO https://stackoverflow.com/questions/53325360/adding-new-peer-in-existing-organization-in-hyperledger-fabric-v1-3-causing-new Do I need to update the channel configuration for adding a new peer in an existing org?

neha.sharma (Fri, 16 Nov 2018 14:30:56 GMT):
Has joined the channel.

dave.enyeart (Fri, 16 Nov 2018 14:38:22 GMT):
@akshay.sood did you read the tutorial? I think it makes it very clear that a channel config update is required.

dave.enyeart (Fri, 16 Nov 2018 14:38:22 GMT):
@akshay.sood ah, for new peer in existing org, you do not need a channel config update

dave.enyeart (Fri, 16 Nov 2018 14:38:22 GMT):
@akshay.sood ah, for new peer in existing org, you do not need a channel config update, i read the question incorrectly.

akshay.sood (Fri, 16 Nov 2018 14:49:32 GMT):
Yes, thats what I was looking

akshay.sood (Fri, 16 Nov 2018 14:49:49 GMT):
It would be really helpful if you look into that issue

Nihcep (Fri, 16 Nov 2018 15:14:01 GMT):
I'm using fabric 1.0.2 (and i'm forced to use this version), someone know witch composer version have I to use ? Thank you

akshay.sood (Fri, 16 Nov 2018 15:21:56 GMT):
@dave.enyeart could you update your answer on stack overflow

avokadokurdu (Fri, 16 Nov 2018 17:58:26 GMT):
Hello, when I use private data collections, how can I query the hash of the private data from the channel's ledger?

dave.enyeart (Fri, 16 Nov 2018 18:05:17 GMT):
There is no chaincode API for that in current releases, although it is planned. In current release you would have to know the transaction id and query transaction by transaction id. The hash can be found in the transaction's writeset.

dave.enyeart (Fri, 16 Nov 2018 18:05:17 GMT):
@avokadokurdu There is no chaincode API for that in current releases, although it is planned. In current release you would have to know the transaction id and query transaction by transaction id. The hash can be found in the transaction's writeset.

avokadokurdu (Fri, 16 Nov 2018 18:11:28 GMT):
@dave.enyeart thanks!

hppranaav02 (Fri, 16 Nov 2018 18:26:09 GMT):
Has joined the channel.

hppranaav02 (Fri, 16 Nov 2018 18:26:24 GMT):
Hi i'm getting the following error

hppranaav02 (Fri, 16 Nov 2018 18:26:27 GMT):
Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

hppranaav02 (Fri, 16 Nov 2018 18:27:49 GMT):
The container for the fabric-ca is being exited as soon as it is created

billchen (Fri, 16 Nov 2018 18:44:37 GMT):
@luke.gold does your project happen to reside in a folder named `e2ecli`? From my understanding, docker-compose will assign a network based off of the folder that the docker-compose.yaml file is in if the name is not specified in the file. Generally, the `CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE` environment variable is set to correspond with the created network. If you insist on using `e2e_cli_default` as the network name, consider adding the appropriate configurations in your docker-compose.yaml file.

billchen (Fri, 16 Nov 2018 18:52:07 GMT):
@Nihcep you should be using version 2. In version 3, you would have to use links instead of the names of the containers for inter-container communication

wuebker (Fri, 16 Nov 2018 19:06:07 GMT):
Has joined the channel.

wuebker (Fri, 16 Nov 2018 19:06:39 GMT):
Hello, are there any tutorials or documentation for setting up a fabric network on multiple hosts?

avokadokurdu (Fri, 16 Nov 2018 23:12:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8Cu3SYtQ447JdqP4A) @wuebker hi, I can send my tutorial to you if you want

BellaAdams (Sat, 17 Nov 2018 00:46:15 GMT):
Has joined the channel.

luke.gold (Sat, 17 Nov 2018 02:32:45 GMT):
@billchen My project happened to reside in the folder named `e2e_cli` . And when I first fall across this problem, I find the `CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE` environment variable is set different with the folder name. So I modify the docker-compose-orderer.yaml file, to set `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default` . But, when I execute `docker-compose -f docker-compose-orderer.yaml up -d`, the first output is `Creating network e2ecli_default with the default driver`... The environment variable doesn't take effect.

akshay.sood (Sat, 17 Nov 2018 04:11:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yB4NBAzQqWPKp2369) @dave.enyeart I am still waiting for your response

akshay.sood (Sat, 17 Nov 2018 04:13:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgkgDPn2sayNR3YY4) @dave.enyeart

akshay.sood (Sat, 17 Nov 2018 04:23:09 GMT):
Can someone look into this? https://jira.hyperledger.org/browse/FAB-12906

SonamBharti (Sat, 17 Nov 2018 04:39:56 GMT):
Has joined the channel.

SonamBharti (Sat, 17 Nov 2018 04:40:33 GMT):
$ composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile test-bank@0.0.1.bna --file networkadmin.card.......................I am not able to run this command...even though I have successfully created card and I can see my card list

SonamBharti (Sat, 17 Nov 2018 05:16:32 GMT):
I have posted my question at several platforms but not getting any relevant answer...I have to make an application in hyperledger which has now become very much difficult for me..because I am not getting any help from anywhere.

ArwaKanani (Sat, 17 Nov 2018 09:17:33 GMT):
Has joined the channel.

ArwaKanani (Sat, 17 Nov 2018 09:19:43 GMT):
@SonamBharti , this command not worked for me also , but i ran npm install -g composer-playground , then composer-playground to deploy your .bna file manually .

ajay560 (Sat, 17 Nov 2018 10:08:51 GMT):
I have two VM configured with Hyperledger Fabric. I want to create a network ( org 1 on VM 1 and org 2 on VM 2). Is it mandatory to have same versions of all softwares (fabric, composer, node, npm) ?

ajay560 (Sat, 17 Nov 2018 10:09:58 GMT):
on both VMs ?

MuhammedHafil (Sat, 17 Nov 2018 12:08:55 GMT):
@SonamBharti Share your error, also try to post in #composer oser channel for composer related quries

MuhammedHafil (Sat, 17 Nov 2018 12:08:55 GMT):
@SonamBharti Share your error, try to post in #composer oser channel for composer related quries

luke.gold (Sun, 18 Nov 2018 02:42:59 GMT):
@billchen That error was solved last night. I modify the folder name from `e2e_cli` to `e2ecli` , and modify the environment variable `CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE` back to `e2ecli_default`. Last, I redo all.

Ruben-Joseph-Halder (Sun, 18 Nov 2018 14:35:06 GMT):
Has joined the channel.

Ruben-Joseph-Halder (Sun, 18 Nov 2018 14:37:19 GMT):

Clipboard - November 18, 2018 10:36 PM

Ruben-Joseph-Halder (Sun, 18 Nov 2018 14:38:05 GMT):

Clipboard - November 18, 2018 10:37 PM

Ruben-Joseph-Halder (Sun, 18 Nov 2018 14:38:20 GMT):
it's my first time to build the fabric Network, and I do not know what's wrong with this step. Thanks to all of u who can help me. Thanks a lot. (fail to create channel)

feitnomore (Sun, 18 Nov 2018 15:26:36 GMT):
is it possible to have 1 couchdb per org, or do I need to have 1 couchdb for each peer?

feitnomore (Sun, 18 Nov 2018 17:20:11 GMT):
think I've found the answer :-)

ghoshpushpendu (Mon, 19 Nov 2018 05:10:30 GMT):
After network upgrade and network start data is getting lost . How can i solve this ?

brianpesy (Mon, 19 Nov 2018 05:47:37 GMT):
Hi! I was wondering if it was possible to use ipfs and fabric? I have to retreive a few files. On my blockchain, I have a hash and my goal is to return the files that the hash pertains to

periodic (Mon, 19 Nov 2018 11:07:58 GMT):
Has joined the channel.

MuhammedHafil (Mon, 19 Nov 2018 11:44:08 GMT):
How to get number of results (sql equivalent of count(*)) in fabric with couchdb?

MuhammedHafil (Mon, 19 Nov 2018 11:45:40 GMT):
using `GetQueryResultWithPagination`

MuhammedHafil (Mon, 19 Nov 2018 11:45:40 GMT):
using `GetQueryResultWithPagination` to fetch

MuhammedHafil (Mon, 19 Nov 2018 11:49:46 GMT):
`QueryResponseMetadata.FetchedRecordsCount` Only gives the `pageSize` we passed to it

MuhammedHafil (Mon, 19 Nov 2018 11:49:46 GMT):
`QueryResponseMetadata.FetchedRecordsCount` Only gives the `pageSize` we passed to `GetQueryResultWithPagination``

michawensveen (Mon, 19 Nov 2018 12:30:31 GMT):
Has joined the channel.

MuhammedHafil (Mon, 19 Nov 2018 12:53:09 GMT):
Also. Is it possible to make relation between documents in couchdb?

mallikarjun9 (Mon, 19 Nov 2018 12:54:35 GMT):
Has joined the channel.

dave.enyeart (Mon, 19 Nov 2018 12:58:07 GMT):
There is no aggregate query support in Fabric. For aggregate reporting the recommendation is to either 1) Setup CouchDB replication to a downstream database (could be CouchDB or any other database) or 2) Use the event service to create a reporting database

dave.enyeart (Mon, 19 Nov 2018 12:58:07 GMT):
There is no aggregate query support in Fabric. For aggregate reporting the recommendation is to either 1) Setup CouchDB replication to a downstream database (could be CouchDB or any other database) or 2) Use the event service to create a reporting database. You can put foreign keys into CouchDB documents, but you cannot join in queries. You can effectively do the same thing with multiple queries though. E.g. find a foreign key in one document and then query another document using it.

dave.enyeart (Mon, 19 Nov 2018 12:58:07 GMT):
There is no aggregate query support in Fabric. For aggregate reporting the recommendation is to either 1) Setup CouchDB change log replication to a downstream database (could be CouchDB or any other database) or 2) Use the event service to create a reporting database. You can put foreign keys into CouchDB documents, but you cannot join in queries. You can effectively do the same thing with multiple queries though. E.g. find a foreign key in one document and then query another document using it.

ArpitKhurana1 (Mon, 19 Nov 2018 12:58:45 GMT):
Hey guys I have a question , why kafka and zookeeper images source code is available in release 1.0 but not after that

ArpitKhurana1 (Mon, 19 Nov 2018 12:59:30 GMT):
For me ,building from 1.0 , breaks kafka, while it works if i used prebuilt dockerhub images

dave.enyeart (Mon, 19 Nov 2018 13:02:16 GMT):
The third party images moved to fabric-baseimage repository after v1.0.

ArpitKhurana1 (Mon, 19 Nov 2018 13:02:25 GMT):
okay

nadineouro (Mon, 19 Nov 2018 13:50:09 GMT):
I'm trying to invoke a chaincode from another to get some data that will be needed to do a specific function. When I do the invokeChaincode, I have ".protos.Response" as response and I don't know why. My query function looks like this: async queryFrigs(stub, args) { let first = "FRIG1"; let last = "FRIG999"; let it = await stub.getStateByRange(first, last); let results = []; while(true) { let res = await it.next(); if(res.value && res.value.value.toString()) { let jsonRes = {}; console.log (res.value.value.toString('utf8')); jsonRes.Key = res.value.key; try { jsonRes.Record = JSON.parse(res.value.value.toString('utf8')); } catch(err) { console.log(err); jsonRes.Record = res.value.value.toString('utf8'); } results.push(jsonRes); } if(res.done) { console.log('End of data'); await it.close(); return Buffer.from(JSON.stringify(results)); } } } And my chaincode, where I'm trying to call this query, looks like this (just to test, without your real function): async sale(stub, args) { let frigs = await stub.invokeChaincode('frigCC', ['queryFrigs'], 'canal-frig'); console.log('frigs.toString() >>>' + frigs.toString()); // prints .prontos.response console.log('JSON.stringify(frigs) >>>' + JSON.stringify(frigs)); // prints {"status": 200, "message": "", "payload": {"buffer": {"type": "Buffer", "data": [... buffer result correspondent to the data. ..]}, "offset": 11, "markedOffset": - 1, "limit": 689, "littleEndian": true, "noAssert": false}} } I would like to receive the data in its original format, without the conversion to buffer. Can anyone help me? What I'm doing wrong?

jrosmith (Mon, 19 Nov 2018 14:20:54 GMT):
@nadineouro #fabric-chaincode-dev woudl be a better place for your question. also, please use hastebin.com to post large code snippets

ruien (Mon, 19 Nov 2018 14:24:25 GMT):
@Ruben-Joseph-Halder Your command looks fine, so it might be a lower-level problem. Are you able to telnet to `orderer.example.com:7050`? Is there any error log on the orderer, or does the request never arrive and there's no reaction at all? You might try running both with DEBUG loglevel and paste (hastebin) detailed output for review

ruien (Mon, 19 Nov 2018 14:26:12 GMT):
@ajay560 I've only tried this with the same fabric versions for all peers in the network (we do simultaneous upgrades). That said, presumably you have some leeway for patch-level changes and external things like node and npm

ruien (Mon, 19 Nov 2018 14:31:38 GMT):
@brianpesy We're going to be doing something like this, but haven't really gotten there yet so I don't have a lot to say. From my understanding it works, but this isn't really related to Fabric. I don't _think_ there's an internal ipfs tool you can use through gossip or anything like that (please correct me if I'm wrong), so we're just going to use something like https://github.com/ipfs/go-ipfs or some other ipfs implementation. Obviously, all of the normal caveats about determinism and such apply here.

ruien (Mon, 19 Nov 2018 14:42:10 GMT):
@hppranaav02 I'm not sure how you're configuring fabric-ca, but it sounds like you might need to start with `fabric-ca-server init` and inspect/fix the config, delete the cert files, and then `fabric-ca-server start` after (as opposed to just running `fabric-ca-server start` initially)

ruien (Mon, 19 Nov 2018 14:49:17 GMT):
@Afe95 I was away sick for a few days. Your blockchain setup looks correct to me -- did you ever figure this out, or are you still stuck on the byfn-sys-channel issue?

ruien (Mon, 19 Nov 2018 14:49:17 GMT):
@Afe95 I was away sick for a few days. Your blockchain setup looks correct to me -- did you ever figure this out, or are you still stuck on the byfn-sys-channel issue? It's obviously perplexing how it could appear if `grep -ri byfn-sys-channel .` doesn't show anything. Maybe you need to grep from / inside the containers if you're using docker, too?

ruien (Mon, 19 Nov 2018 14:49:17 GMT):
@Afe95 I was away sick for a few days. Your blockchain setup looks correct to me -- did you ever figure this out, or are you still stuck on the byfn-sys-channel issue? It's obviously perplexing how it could appear if `grep -ri byfn-sys-channel .` doesn't turn up anything. Maybe you need to grep from `/` inside the containers if you're using docker, too?

ruien (Mon, 19 Nov 2018 15:00:25 GMT):
@krabradosty If you pull down the config block and configtxlate it to json, it looks like the consortium is specified for mod_policy. By inspecting the config delta, we can see that adding an organization consists of adding it to `Application.groups`. So the question should not be why we don't add the organization to the consortium but rather how exactly `Consortium.value.name` is used. I haven't found anything that depends on it.

wuebker (Mon, 19 Nov 2018 18:09:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FymHQFGshF8jmc8wS) @avokadokurdu @avokadokurdu yes I would love to take a look at tit

wuebker (Mon, 19 Nov 2018 18:09:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FymHQFGshF8jmc8wS) @avokadokurdu @avokadokurdu yes I would love to take a look at it

UmutCanGulmez (Mon, 19 Nov 2018 20:54:18 GMT):
Has joined the channel.

UmutCanGulmez (Mon, 19 Nov 2018 20:57:28 GMT):
Hi i am very new to this environment and i am trying to build my own network and run a chaincode on this network , but i got error when i tried to create channel. What could be the problem ? i searched the stackover flow but i couldnt find the answer . Thanks in advance

UmutCanGulmez (Mon, 19 Nov 2018 20:57:37 GMT):

Clipboard - November 19, 2018 11:57 PM

miguelmota (Mon, 19 Nov 2018 21:50:32 GMT):
Has joined the channel.

miguelmota (Mon, 19 Nov 2018 21:50:46 GMT):
hello, beginner question; can a node in hyperledger determine how difficult a transaction will be to compute? for example, determine if there's in an infinite loop in the chaincode

feitnomore (Mon, 19 Nov 2018 21:57:54 GMT):
seems like my service discover is not working fine... according to an application its only being able to find 1 peer + the orderer... Is there any environment variable I should check? (I'm guessing something related to GOSSIP)

yacovm (Mon, 19 Nov 2018 22:02:52 GMT):
@feitnomore yeah you are right

yacovm (Mon, 19 Nov 2018 22:04:05 GMT):
https://drive.google.com/file/d/19A9-iNe48MB4IZPCt0ygSY9FcOVubyZO/view go to time 20:50

yacovm (Mon, 19 Nov 2018 22:04:16 GMT):
and look at the common errors and pitfalls slide

feitnomore (Mon, 19 Nov 2018 22:17:12 GMT):
mine works, but the discovery is not returning everything... only 1 peer...

feitnomore (Mon, 19 Nov 2018 22:17:25 GMT):
not sure what it can be...

yacovm (Mon, 19 Nov 2018 22:21:27 GMT):
you probably just need anchor peers, @feitnomore

wuebker (Mon, 19 Nov 2018 22:29:51 GMT):
Does anyone know why the byfn tutorial never uses the PeerAdminCard?

billchen (Mon, 19 Nov 2018 22:34:34 GMT):
@wuebker PeerAdminCard is a component in Hyperledger Composer, and BYFN is native Hyperledger Fabric

wuebker (Mon, 19 Nov 2018 22:48:21 GMT):
@billchen thanks. So peer admin cards are never really needed?

billchen (Mon, 19 Nov 2018 23:28:40 GMT):
@wuebker That is correct. Personally I would recommend getting familiar with native Hyperledger Fabric as opposed to using Composer if you're planning to develop production level networks since Composer networks lack some key Fabric features.

wuebker (Tue, 20 Nov 2018 00:06:05 GMT):
@billchen Ok thanks. I also noticed that when you start fabric from ./startFabric.sh it creates a "ca.org1.example.com" container, but the byfn does not have the seperate CA container. Is there a CA in the byfn somewhere?

wuebker (Tue, 20 Nov 2018 00:16:29 GMT):
@billchen to give you some context, I'm trying to deploy the first org on one machine and the second on another host machine, so I was thinking the peerAdminCard could relate them with the IP addresses in the connection.json file, but with no peerAdminCard I'm trying to figure out how to link them

billchen (Tue, 20 Nov 2018 00:29:33 GMT):
@wuebker `byfn.sh` doesn't run a CA since it relies on the `cryptogen` binary to generate certs and keys (which is a tool used in development purposes only). If you want to run a multi node setup on two different machines, you will have to do this through docker swarm (see https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f), by joining one machine's network from another machine. Without a CA, your best bet would be to copy the content from the `crypto-config` file generated to the other machine, and then manually spawn fabric containers to join the network. Unfortunately, I am unaware of any examples of multi-host networks that you could refer to.

billchen (Tue, 20 Nov 2018 00:29:33 GMT):
@wuebker `byfn.sh` doesn't run a CA since it relies on the `cryptogen` binary to generate certs and keys (which is a tool used in development purposes only). If you want to run a multi node setup on two different machines, you will have to do this through docker swarm (see https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f), by joining one machine's network from another machine. Without a CA, your best bet would be to copy the content from the `crypto-config` file generated to the other machine, and then manually spawn fabric containers to join the network. Unfortunately, I am unaware of any examples, or good tutorials of multi-host networks that you could refer to.

billchen (Tue, 20 Nov 2018 00:29:33 GMT):
@wuebker `byfn.sh` doesn't run a CA since it relies on the `cryptogen` binary to generate certs and keys (which is a tool used in development purposes only). If you want to run a multi node setup on two different machines, you will have to do this through docker swarm (see https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f), by joining one machine's network from another machine. Without a CA, your best bet would be to copy the content from the `crypto-config` file generated to the other machine, and then manually spawn fabric containers to join the network. Unfortunately, I am unaware of any examples or good tutorials of multi-host networks that you could refer to.

huxiangdong (Tue, 20 Nov 2018 00:35:09 GMT):
Has joined the channel.

bongaquino (Tue, 20 Nov 2018 02:42:41 GMT):
Can anyone provide the update procedure for the hyperledger explorer in git?

ruien (Tue, 20 Nov 2018 04:49:38 GMT):
@miguelmota No, it's impossible -- this is the Halting Problem (https://en.wikipedia.org/wiki/Halting_problem). The best you can do (as far as I am aware) is to terminate execution after a predetermined timeout if it runs for too long.

varuntejay (Tue, 20 Nov 2018 06:40:50 GMT):
Has joined the channel.

varuntejay (Tue, 20 Nov 2018 06:45:49 GMT):
Hi, Error says missing cert file, possible reasons are 1. Missing mapping to proper volumes in docker-compose-cli.yaml file 2. Not creating the certificate s with your new network configuration.

vijayraghunathan (Tue, 20 Nov 2018 06:56:42 GMT):
Has joined the channel.

ovallod (Tue, 20 Nov 2018 09:21:41 GMT):
How does Fabric detect that a ledger has been tampered? If, on one peer, there was a block which was spoiled, is there a fabric process that parses the blockchain regularly and detect this inconsistency?

sanket1211 (Tue, 20 Nov 2018 11:42:20 GMT):
has anyone worked on multi host the fabric network?

MuhammedHafil (Tue, 20 Nov 2018 12:21:28 GMT):
@ovallod : https://lists.hyperledger.org/g/fabric/message/4896

FLASHJr (Tue, 20 Nov 2018 13:20:47 GMT):
Has joined the channel.

FLASHJr (Tue, 20 Nov 2018 13:24:06 GMT):
Hi, I want to make changes in fabcar chaincode and deploy the same, so how should I do it.. I have aleady made the changes in chincode/fabcar/node/fabcar.js file but I dont know how to deploy it

jrosmith (Tue, 20 Nov 2018 14:18:09 GMT):
@FLASHJr you can either reset your network (making sure to clear any cached chaincode images) and redeploy fresh, or you can upgrade the existing chaincode to a new version that has your changes. are you using an sdk to install/instantiate/upgrade chaincode?

wuebker (Tue, 20 Nov 2018 15:11:08 GMT):
Thanks @billchen. One last question for now: If cryptogen is for development what do practitioners use in production for certs and keys?

billchen (Tue, 20 Nov 2018 16:05:24 GMT):
@wuebker the standard practice is to have a trusted party host a `fabric-ca-server` (https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#fabric-ca-server), and have joining parties get signed certs through `fabric-ca-client`. The `fabric-samples/fabric-ca` does a good job at explaining things

sgingter (Tue, 20 Nov 2018 16:20:28 GMT):
Has joined the channel.

sgingter (Tue, 20 Nov 2018 16:22:30 GMT):
Hello. I want to take some first steps with fabric, but I am unable of installing it. I traced the issue down to the `bootstrap.sh` script misbehaving. What I could do is downloading the script manually, adopt it to behave correctly and then execute it, but before I go that route I want to make sure I don

sgingter (Tue, 20 Nov 2018 16:22:37 GMT):
't miss a point

sgingter (Tue, 20 Nov 2018 16:24:08 GMT):
So, first of all I am on Windows 10. The script expects `uname` to return `mingw64_nt` which will be replaced with `windows` to generate the url to download the binaries from. However, my `uname` returns `MSYS_NT-10.0`.

sgingter (Tue, 20 Nov 2018 16:25:25 GMT):
so, consequently, it wants to download the binaries from `https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/msys_nt-10.0-amd64-1.3.0/hyperledger-fabric-msys_nt-10.0-amd64-1.3.0.tar.gz ` where they obviously don't exist. Is that a known issue (if yes, where would I have to search for that), and are there known workarounds except downloading and changing the script to match my uname return value?

sgingter (Tue, 20 Nov 2018 16:25:25 GMT):
so, consequently, it wants to download the binaries from `https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/msys_nt-10.0-amd64-1.3.0/hyperledger-fabric-msys_nt-10.0-amd64-1.3.0.tar.gz` where they obviously don't exist. Is that a known issue (if yes, where would I have to search for that), and are there known workarounds except downloading and changing the script to match my uname return value?

jje (Tue, 20 Nov 2018 16:25:51 GMT):
Has joined the channel.

jje (Tue, 20 Nov 2018 16:28:26 GMT):
``` I have set up a Fabric Go SDK on a Raspberry Pi to talk to a remote fabric instance. I can query the ledger, but if I try to write transactions to the ledger (channel.Execute), a runtime error occurs. Most likely it is an issue with the 32 bit arm operating system, and atomic.addUint64() panics if the pointer to its argument is not 64byte aligned. Here is the error message: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x11e08] goroutine 58 [running]: sync/atomic.loadUint64(0x11cea6c4, 0x11dc0848, 0x37545c) /home/pi/.gvm/gos/go1.10.3/src/sync/atomic/64bit_arm.go:10 +0x3c github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher.(*Dispatcher).updateLastBlockNum(0x11cea680, 0x173, 0x0, 0x11dc0830, 0x1) /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher/dispatcher.go:157 +0x28 github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher.(*Dispatcher).HandleFilteredBlock(0x11cea680, 0x11eca300, 0x11c9f6b0, 0x10) /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher/dispatcher.go:451 +0xb8 github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient/dispatcher.(*Dispatcher).handleEvent(0x1202dc38, 0x5645a0, 0x1202fab0) /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient/dispatcher/dispatcher.go:83 +0x1e8 github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient/dispatcher.(*Dispatcher).(github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient/dispatcher.handleEvent)-fm(0x5645a0, 0x1202fab0) /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/deliverclient/dispatcher/dispatcher.go:114 +0x2c github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher.(*Dispatcher).Start.func1(0x11cea680) /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher/dispatcher.go:137 +0x26c created by github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher.(*Dispatcher).Start /home/pi/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fab/events/service/dispatcher/dispatcher.go:121 +0xbc Is there any fix to this issue? ```

sgingter (Tue, 20 Nov 2018 16:29:02 GMT):
perhaps a bit more info. I have the latest version of Git for windows installed (2.19.1), and I followed the documentation with all prerequisites for win 10

jrosmith (Tue, 20 Nov 2018 16:35:35 GMT):
@jje hate to redirect you again but #fabric-sdk-go will be the best resource for you

jje (Tue, 20 Nov 2018 16:41:58 GMT):
@jrosmith OK, didn't know that this channel exists ;-) will do

AvinashVazratkar (Tue, 20 Nov 2018 17:18:03 GMT):
Has joined the channel.

AvinashVazratkar (Tue, 20 Nov 2018 17:18:59 GMT):
What is ideal machine configuration for hyperledger fabric? (like RAM, storage, processor)

nilesh.2003 (Wed, 21 Nov 2018 02:29:07 GMT):
Has joined the channel.

nilesh.2003 (Wed, 21 Nov 2018 02:29:12 GMT):
Hi Team, we started the orderer using kafka but getting following error in log file 31m2018-11-21 02:13:04.477 UTC [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 55c^[[0m [channel: orderer-system-channel] Error during consumption: kafka: error while consuming orderer-system-channel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 kafka version kafka_2.12-2.0.1

ruien (Wed, 21 Nov 2018 02:36:49 GMT):
@nilesh.2003 I think I got an error similar to that in the past when I cleared out the fabric ledger data but didn't clear out the kafka data before restarting everything (it's necessary to clear out both).

nilesh.2003 (Wed, 21 Nov 2018 02:46:09 GMT):
@ruien - are you referring to system channel for Fabric and I am not sure about what kafka data needs to be cleared , could you please elaborate. Thank You

ruien (Wed, 21 Nov 2018 02:49:42 GMT):
I'm not really sure how to elaborate. When I clear out the ledger after some test, I clear out the whole ledger for all channels and also all of the kafka data. I haven't looked into exactly which pieces (if any) can be retained.

ruien (Wed, 21 Nov 2018 02:49:42 GMT):
I'm not really sure how to elaborate. When I clear out the ledger after some test, I clear out the whole ledger for all channels and also all of the kafka data. I haven't looked into exactly which pieces (if any) can be retained. All I am suggesting is to try clearing out both the ledger and kafka data if you're currently only clearing out the ledger but keeping kafka running during redeploy.

ruien (Wed, 21 Nov 2018 02:55:34 GMT):
@AvinashVazratkar This might not be much of a data point, but for us three peers with 8GB RAM, 100GB SSD, and 4x 3GHz CPU have had no trouble handling 100TPS of some basic chaincode with custom (somewhat expensive) VSCC. Load has remained about ~1.5 or less the whole time.

nilesh.2003 (Wed, 21 Nov 2018 02:55:51 GMT):
thanks @ruien ,

funkol2007 (Wed, 21 Nov 2018 03:15:58 GMT):
Has joined the channel.

funkol2007 (Wed, 21 Nov 2018 03:16:12 GMT):
Hello, I want to deploy a network with multi machines and use kafka model. What should I motify the config file fabric.json? I can not find the kafka configuration items.

nilesh.2003 (Wed, 21 Nov 2018 03:17:46 GMT):
@ruien - even after clearing the fabric and kafka data we are getting the same error , can we ignore that error and move for peer setup

nilesh.2003 (Wed, 21 Nov 2018 03:30:25 GMT):
while creating channel on peer node we are getting followign error

nilesh.2003 (Wed, 21 Nov 2018 03:30:26 GMT):
v

nilesh.2003 (Wed, 21 Nov 2018 03:30:29 GMT):
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

ruien (Wed, 21 Nov 2018 03:30:32 GMT):
@nilesh.2003 I'm not sure that it's safe to proceed. I just grepped my kafka logs for any CRC errors and none show up on any of my kafka servers. so I'm not sure what to suggest.

nilesh.2003 (Wed, 21 Nov 2018 03:31:38 GMT):
@ruien - what version of Kafka are you using ?

ruien (Wed, 21 Nov 2018 03:31:42 GMT):
1.0.0

nilesh.2003 (Wed, 21 Nov 2018 03:32:04 GMT):
i didnt find the binary for 1.0.0, are you running it in Docker ?

ruien (Wed, 21 Nov 2018 03:32:37 GMT):
For Zookeeper and Kafka, I'm using docker, and for orderers and peers I'm not.

tomli1981 (Wed, 21 Nov 2018 03:32:38 GMT):
Has joined the channel.

nilesh.2003 (Wed, 21 Nov 2018 03:32:56 GMT):
got you

nilesh.2003 (Wed, 21 Nov 2018 03:32:58 GMT):
thanks

ruien (Wed, 21 Nov 2018 03:33:04 GMT):
However, i'm not sure what you mean by "didn't find the binary for 1.0.0". I've deployed kafka without docker and it's easy to do - just compile it.

nilesh.2003 (Wed, 21 Nov 2018 03:33:55 GMT):
when i extracted the source code for 1.0.0 its asking to build using gradlew and scala

nilesh.2003 (Wed, 21 Nov 2018 03:34:15 GMT):
and installing scala and gradle didnt went well in my case

ruien (Wed, 21 Nov 2018 03:37:11 GMT):
Maybe I'm missing something but i thought you start kafka with `kafka-server-start.sh`, which calls `kafka-run-class.sh`, which runs kafka via `java`.

ruien (Wed, 21 Nov 2018 03:39:22 GMT):
In general: always start with a working configuration, and then make incremental changes. So, start with a working docker kafka and get the network running, then swap out individual pieces, testing each change so you know what broke when something inevitably breaks

marryton007 (Wed, 21 Nov 2018 03:41:20 GMT):
Has left the channel.

nilesh.2003 (Wed, 21 Nov 2018 03:43:10 GMT):
@ruien - did you see this error before Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

ruien (Wed, 21 Nov 2018 03:45:31 GMT):
Yeah, but to debug it you really need to inspect orderer logs and understand your policy. It's a permissions error.

ruien (Wed, 21 Nov 2018 03:46:18 GMT):
Usually it's fairly simple to solve. For instance, it can be caused by using the wrong MSPID when you submit the transaction.

nilesh.2003 (Wed, 21 Nov 2018 04:21:44 GMT):
@ruien - I am able to resolve the CRC by moving over to Kafka 1.0.0

nilesh.2003 (Wed, 21 Nov 2018 04:22:51 GMT):
regarding the second issue for peers , I am seeing following in orderer log

nilesh.2003 (Wed, 21 Nov 2018 04:22:54 GMT):
2018-11-21 04:18:58.205 UTC [cauthdsl] func2 -> DEBU 1d8 0xc42000eb58 identity 0 does not satisfy principal: This identity is not an admin 2018-11-21 04:18:58.205 UTC [cauthdsl] func2 -> DEBU 1d9 0xc42000eb58 principal evaluation fails 2018-11-21 04:18:58.205 UTC [cauthdsl] func1 -> DEBU 1da 0xc42000eb58 gate 1542773938205245535 evaluation fails 2018-11-21 04:18:58.205 UTC [policies] Evaluate -> DEBU 1db Signature set did not satisfy policy /Channel/Application/am/Admins 2018-11-21 04:18:58.205 UTC [policies] Evaluate -> DEBU 1dc == Done Evaluating *cauthdsl.policy Policy /Channel/Application/am/Admins 2018-11-21 04:18:58.205 UTC [policies] func1 -> DEBU 1dd Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ rc.Admins am.Admins ] 2018-11-21 04:18:58.205 UTC [policies] Evaluate -> DEBU 1de Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy

dave.enyeart (Wed, 21 Nov 2018 04:42:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RQNmzBpKdZWyTfEzt) @ovallod See https://lists.hyperledger.org/g/fabric/message/4896

ygnr (Wed, 21 Nov 2018 05:09:51 GMT):
I understand that endorsement policies need to be given at the time of chain code deployment. So it means that the same peers in endorsement policy need to sign for all the transactions under that chain code. Can we check for endorsement/signatures at the chaincode function level? In other words can we check endorsements/signatures at transaction level something like ethereum? So that endorsements can be dynamic based on function in chaincode.

saumilsdk (Wed, 21 Nov 2018 05:36:26 GMT):
Is there any template to deploy hyperledger fabric on aws cloud?

saumilsdk (Wed, 21 Nov 2018 05:54:24 GMT):
can hyperledger run on embedded board having 256MB ram and 1GHz CPU?

AvinashVazratkar (Wed, 21 Nov 2018 05:56:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2JT7TSGetjx3FR5HS) @ruien Thanks @ruien

Jayakrishna.V (Wed, 21 Nov 2018 06:29:19 GMT):
Hi all, in the PaperNet sample application, there is an Angular application that interacts with the Fabric network. In general this angular application can be used by multiple users. I understand that using ACL, we can restrict access to specific transactions/assets to specific participants defined on the network. But how can we restrict access to specific transactions/assets on the network to specific users of the Angular application? Are the angular application users and participants defined on network the same?

Jayakrishna.V (Wed, 21 Nov 2018 06:29:19 GMT):
Hi all, in the vehicle-manufacture sample application, there is an Angular application that interacts with the Fabric network. In general this angular application can be used by multiple users. I understand that using ACL, we can restrict access to specific transactions/assets to specific participants defined on the network. But how can we restrict access to specific transactions/assets on the network to specific users of the Angular application? Are the angular application users and participants defined on network the same?

Rajatsharma (Wed, 21 Nov 2018 06:33:18 GMT):
Has joined the channel.

Rajatsharma (Wed, 21 Nov 2018 06:41:28 GMT):
Hello, I'm trying to run the sample System Chaincode following the steps on https://hyperledger-fabric.readthedocs.io/en/release-1.3/systemchaincode.html - I've used the example chaincode (https://github.com/hyperledger/fabric/tree/release-1.3/examples/plugins/scc). I copied this to the peer after building it on Go. and made the necassary changes at /etc/hyperledger/fabric/core.yaml. But there are no logs or no response when I restart the peer. Can anyone please help me eith the process.

angg8648 (Wed, 21 Nov 2018 10:13:51 GMT):
Has joined the channel.

chill37 (Wed, 21 Nov 2018 10:29:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RExaqvZaP2ek2AQ3e) @sanket1211 this helped me, although there are other ways. https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

Rajatsharma (Wed, 21 Nov 2018 10:37:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jNPB7zd5QEGGstaRp) yes

Rajatsharma (Wed, 21 Nov 2018 10:37:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jNPB7zd5QEGGstaRp) @chill37 yes

FLASHJr (Wed, 21 Nov 2018 11:14:05 GMT):
I'm trying to run Fabcar example and getting following error... ```Successfully loaded user1 from persistence Assigning transaction_id: 7e6d962997c013631ab200d18abc8cf6c82e40db01461f4fd18dc1ac04dd2a7f Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

FLASHJr (Wed, 21 Nov 2018 11:14:05 GMT):
I'm trying to run Fabcar example and getting following error... ```Successfully loaded user1 from persistence Assigning transaction_id: 7e6d962997c013631ab200d18abc8cf6c82e40db01461f4fd18dc1ac04dd2a7f Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

FLASHJr (Wed, 21 Nov 2018 11:14:05 GMT):
I'm trying to run Fabcar example and getting following error... ```Successfully loaded user1 from persistence Assigning transaction_id: 7e6d962997c013631ab200d18abc8cf6c82e40db01461f4fd18dc1ac04dd2a7f Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ``` How to resolve this error

AndresMartinezMelgar.itcl (Wed, 21 Nov 2018 11:44:19 GMT):
hi everyone, i have some issues to create .yaml files(configuration files), i don't know what put exactly in there. Anyone knows a tutorial I am looking for in official web but i don´t find nothing that help me The files that breack my head are: docker-compose.yaml, configtx.yaml, crypto-config.yaml. Help me please!

AndresMartinezMelgar.itcl (Wed, 21 Nov 2018 11:44:19 GMT):
hi everyone, i have some issues to create .yaml files(configuration files), i don't know what i have to put exactly in there. Anyone knows a tutorial I am looking for in official web but i don´t find nothing that help me The files that breack my head are: docker-compose.yaml, configtx.yaml, crypto-config.yaml. Help me please!

AndresMartinezMelgar.itcl (Wed, 21 Nov 2018 11:44:19 GMT):
hi everyone, i have some issues to create .yaml files(configuration files), i don't know what i have to put exactly in there. Anyone knows a tutorial? I am looking for in official web but i don´t find nothing that help me The files that breack my head are: docker-compose.yaml, configtx.yaml, crypto-config.yaml. Help me please!

AndresMartinezMelgar.itcl (Wed, 21 Nov 2018 11:44:19 GMT):
hi everyone, i have some issues to create .yaml files(configuration files), i don't know what i have to put exactly in there. Anyone knows a tutorial? I am looking for in official web but i don´t find nothing that help me The files that breack my head are: docker-compose.yaml, configtx.yaml, crypto-config.yaml. Help me please!

NicolasMerle (Wed, 21 Nov 2018 12:12:01 GMT):
Has joined the channel.

NicolasMerle (Wed, 21 Nov 2018 12:12:09 GMT):
Hello everyone, has anyone in the community been able to test the number of possible transactions per second in a distributed environment with Hyperleger Fabric? with and without consensus?

ruien (Wed, 21 Nov 2018 13:47:46 GMT):
@ygnr You cannot check endorsements at the chaincode level -- that is, at the *endorser* level when the chaincode transaction is simulated. However, there is a system chaincode for exactly this -- VSCC -- and you can make a VSCC to set rules about the endorser rules. It can also be function-specific, since you can see both the endorsements and the function called (as well as its arguments, if you care). We've already done this, so I can confirm that it works well.

ruien (Wed, 21 Nov 2018 14:15:03 GMT):
@NicolasMerle I'm not sure what you mean by "a distributed environment without consensus". Under kafka our system has hit about two hundred TPS without much trouble, but any bottlenecks are clearly related to network bandwidth and chaincode execution time, not limitations of fabric itself. The fabcoin implementation described in the whitepaper was reported to get about 3kTPS. Since fabcoin needed additional VSCC and because the concurrency model allows for horizontal scaling, the upper limit is definitely higher. You might also get 5 TPS if your implementation is bad (i.e. MVCC) or your chaincode takes ages to run.

jeffdstephens (Wed, 21 Nov 2018 14:19:29 GMT):
Has joined the channel.

NicolasMerle (Wed, 21 Nov 2018 14:21:09 GMT):
@ruien Thank you to you I expressed myself badly on the consensus part, thank you for your quick answer, it is about the figures I had in mind and in relation to our different tests.

ruien (Wed, 21 Nov 2018 14:21:13 GMT):
@AndresMartinezMelgar.itcl I'd suggest starting by learning docker -- that will fully explain docker-compose.yaml (which isn't related to Fabric, per se). crypto-config.yaml is mostly self-explanatory; it's just generating certs and keys, the purpose of which will be evident as you learn fabric itself. configtx.yaml is considerably more difficult and poorly-documented - I've found one way to figure it out is both to read the fabric source code and also to decode the resulting genesis blocks to json and inspect how various changes to configtx.yaml affects this.

ruien (Wed, 21 Nov 2018 14:25:34 GMT):
@FLASHJr It sounds like something might be going wrong in your chaincode itself, but you can't debug it from the client-side error message you provided. Instead, turn on debug logging and inspect the endorser logs when you submit the transaction. Also confirm that queries are working and that this only happens during invokes; if that's the case, add some debug output to the chaincode and trace execution.

ruien (Wed, 21 Nov 2018 14:27:31 GMT):
@Rajatsharma That example you linked to is a no-op; are you sure it's not active? Try logging to a file from both methods to see how far it's getting.

ruien (Wed, 21 Nov 2018 14:30:20 GMT):
@Jayakrishna.V From your description it would seem you could just check GetCreator() inside the chaincode and return an error if the invoker isn't qualified. You could also implement this as VSCC to discard transactions that try to write to invalid keys. ACLs are useful if there's a particular _class_ of user (rather than _specific_ users) for which you're trying to specify permissions, and in that case setting some ACLs is easier. But for the most part there's nothing in ACLs you couldn't do manually if you really wanted to.

ruien (Wed, 21 Nov 2018 14:35:17 GMT):
@saumilsdk I have to assume by "run hyperledger" you mean that you're running a peer -- Right now my peers are using about 750MB of RAM each (no docker), but they're a active endorsers. Depending on your chaincode query and dataset size you might be able to get away with it.

ruien (Wed, 21 Nov 2018 14:35:17 GMT):
@saumilsdk I have to assume by "run hyperledger" you mean that you're running a peer -- Right now my peers are using about 750MB of RAM each (no docker), but they're active endorsers. Depending on your chaincode query and dataset size you might be able to get away with it.

a.ochs (Wed, 21 Nov 2018 14:49:15 GMT):
Is there a way to start the REST-API from the Fabric without using composer-rest-server? I run the fabric on an IBM Z (s390x), and Composer is only available for Intel. The doc say, there should be a file /opt/gopath/src/github.com/hyperledger/fabric/core/rest/rest_api.json - but there is not even the folder "rest". Also, the doc says in the core.yaml should be the REST Interface Port 5000 - but in this file there is no rest information at all. Version 1.1

ruien (Wed, 21 Nov 2018 14:56:12 GMT):
@a.ochs which REST api are you planning to use? I'm not aware of any official one.

dave.enyeart (Wed, 21 Nov 2018 14:59:54 GMT):
Fabric does not have a REST API, just a gRPC API

a.ochs (Wed, 21 Nov 2018 15:26:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=shWmiZLi6KkzTyyjf) @ruien I "only" want to make an Website, which gets and sends the data from and to the fabric. With the Composer-Rest-Server this was really simple. @dave.enyeart is there a documentation of the gRPC API?

dave.enyeart (Wed, 21 Nov 2018 15:34:27 GMT):
gRPC APIs are surfaced in fabric source /protos directory, but it is admittedly difficult to figure out and not user documented as the expectation is to use convenience functions in the SDKs to interact with Fabric. If you haven't looked at SDKs, start with https://hyperledger-fabric.readthedocs.io/en/release-1.3/write_first_app.html

greivinlopez (Wed, 21 Nov 2018 16:06:13 GMT):
Has joined the channel.

Rajatsharma (Wed, 21 Nov 2018 17:12:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pHxP37KcLPYTTxDuh) @ruien Yes I had logged out simple messages. "INIT","INVOKE" but couldn't find them in the logs of the Peer container.

kevinkbc (Wed, 21 Nov 2018 19:22:56 GMT):
where can I get help for the fabcar sample?

billchen (Wed, 21 Nov 2018 22:32:03 GMT):
Does anyone know of

billchen (Wed, 21 Nov 2018 22:32:03 GMT):
Does anyone know of any benchmarks with a high number of channels (thousands, tens of thousands...) ?

yacovm (Wed, 21 Nov 2018 22:32:45 GMT):
don't do it

yacovm (Wed, 21 Nov 2018 22:33:17 GMT):
at least not with the same nodes

billchen (Wed, 21 Nov 2018 22:33:48 GMT):
at what point does this become an issue?

billchen (Wed, 21 Nov 2018 22:34:11 GMT):
I read a paper where up to 32 channels were used, and it seemed alright,

billchen (Wed, 21 Nov 2018 22:34:21 GMT):
But nothing more than that

yacovm (Wed, 21 Nov 2018 22:35:27 GMT):
every channel comes with its own cache for stuff

yacovm (Wed, 21 Nov 2018 22:35:38 GMT):
there are caches for blocks, caches for certificates, etc.

yacovm (Wed, 21 Nov 2018 22:35:47 GMT):
so... having too much channels is a problem

yacovm (Wed, 21 Nov 2018 22:35:58 GMT):
you'll run out of memory

billchen (Wed, 21 Nov 2018 22:38:20 GMT):
some of the really interesting industry fabric applications require this kind of a scalability. Do you know if high channel support it's on the Fabric roadmap for future releases?

yacovm (Wed, 21 Nov 2018 22:41:33 GMT):
how much are we talking about?

billchen (Wed, 21 Nov 2018 22:42:36 GMT):
Around 10,000 according to this article: https://cointelegraph.com/news/swifts-blockchain-pilot-for-bank-to-bank-transfers-went-extremely-well

yacovm (Wed, 21 Nov 2018 22:43:21 GMT):
if you tune the configuration of the peer you... might get away with it somehow

yacovm (Wed, 21 Nov 2018 22:43:58 GMT):
but a peer that participates in 10,000 channels, and each channel, say - has a block cache of 1MB, means a block cache of 10GB

yacovm (Wed, 21 Nov 2018 22:43:58 GMT):
but a peer that participates in 10,000 channels, and each channel, say - has a block cache of 1MB, means a block in-memory cache of 10GB

yacovm (Wed, 21 Nov 2018 22:44:16 GMT):
so you just need to add more peers

yacovm (Wed, 21 Nov 2018 22:44:25 GMT):
and not have a single poor peer in all 10,000 channels

billchen (Wed, 21 Nov 2018 22:46:51 GMT):
Ahh I see, so you're saying that having thousands of channels would be fine as long as a single peer isn't involved in all of them

billchen (Wed, 21 Nov 2018 22:46:56 GMT):
thanks! @yacovm

ttarey (Thu, 22 Nov 2018 02:26:50 GMT):
Can I set a max transaction size for a network?

AndresMartinezMelgar.itcl (Thu, 22 Nov 2018 07:06:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Cyh5MTW7yeAxnp7Sa) @ruien My main problem is not to understand the files, they are more or less easy to read. My problem is that I do not know what to put exactly inside them: which variables are obligatory, which are not, which make those variables (that last I can not find it anywhere) ... I do not know if they are specific to docker (then I would have to look in their documentation) or they are hyperledger fabric. Anyway, thank you for answering.

AndresMartinezMelgar.itcl (Thu, 22 Nov 2018 07:11:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=57xv4Mpn8RDx4J9zo) @billchen I think what our partner suggests is that you have balanced the number of channels and peers. It does not make much sense to have a channel for each peer, it is better to have in each channel a few peers that can interact with each other directly.

FLASHJr (Thu, 22 Nov 2018 07:20:13 GMT):
Hi, I'm new to Hyperledger Fabric, and I want to start a network with two Org in same channel, each having one peer and want to deploy my own chaincode written in node, so how do I do that manually ? can anyone help me with this? Step by step process will help a lot... Till now I have tried to run Fabcar example.

khetesh (Thu, 22 Nov 2018 07:40:15 GMT):
https://www.eventbrite.com/e/free-webinar-on-understanding-hyperledger-fabric-tickets-52930284907

ovallod (Thu, 22 Nov 2018 08:57:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L49s8PDAZPHPxKHwE) @MuhammedHafil @MuhammedHafil Thanks a lot for this clarification.

TimOBrien (Thu, 22 Nov 2018 09:01:15 GMT):
Has joined the channel.

TimOBrien (Thu, 22 Nov 2018 09:02:40 GMT):
Hi, I need to generate a random number to be used in each peer node. Any suggestions on how to accomplish this?

MuhammedHafil (Thu, 22 Nov 2018 09:07:12 GMT):
@FLASHJr : https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html You only need to remove 1 peer from this example

FLASHJr (Thu, 22 Nov 2018 09:56:28 GMT):
@MuhammedHafil Thanks.. I'll try this .

Gaurang (Thu, 22 Nov 2018 10:35:57 GMT):
Has joined the channel.

Gaurang (Thu, 22 Nov 2018 10:42:58 GMT):
Hi All, I am working on delpoying a Hyperledger Fabric network on aws using cello ansible. Currently we are deploying the system on low configuration but in near future we might need to move to high configuration. In this case, how to migrate the data. Can hyperledger fabric project be migrated to a new deploy environment without data loss? For example, from the old deployment on aws site A to the new deployment in aws site B, assuming the os and other required software is the same in two cloud service providers. Is there any advise? Thanks in advance!

ShefaliMittal (Thu, 22 Nov 2018 11:47:19 GMT):
Hi, I have recently upgraded to fabric 1.3 version but while running getsatebyrange queries I am getting this error in node sdk - getstatebyrange failed - version not found

bd (Thu, 22 Nov 2018 12:27:16 GMT):
Has joined the channel.

ShefaliMittal (Thu, 22 Nov 2018 12:55:20 GMT):
error while invoking chaincode is - Error: endorsement failure during invoke. response: status:500 message:"GET_STATE_BY_RANGE failed: transaction ID: 33bbe785870bf3ee6ca6e97fce28a76f5bed421550d23456ccb5ba595a68455b: version field ~version was not found"

berendeanicolae (Thu, 22 Nov 2018 13:23:45 GMT):
Has joined the channel.

Ammu (Thu, 22 Nov 2018 13:28:33 GMT):
node registerUser.js Store path:/home/ubuntu/.hfc-key-store Successfully loaded admin from persistence Failed to register: Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authentication failure"}]]

kwakwa (Thu, 22 Nov 2018 14:07:31 GMT):
Has joined the channel.

kwakwa (Thu, 22 Nov 2018 14:07:43 GMT):
Hello, could someone help me out with an issue ? I've installed Fabric-CA using the user's guide with the "go get -u github.com/hyperledger/fabric-ca/cmd/...", I've also setup the GOPATH to "C:/Users/User/go", this has installed everything under go/src (there's no bin file). When using docker now, I can run fabric-ca-client commands but any fabric-ca-server command returns "fabric-ca-server: command not found", I can start server via Docker but not nativel... I've looked online on stackoverflow, among others to no avail... has this happened to anyone ? Anyone has any suggestions I could try ? I'm using version 1.3.0. Thank you so much for your patience!

nurulmac11 (Thu, 22 Nov 2018 15:09:29 GMT):
Has joined the channel.

MuhammedHafil (Thu, 22 Nov 2018 16:32:59 GMT):
@Ammu : delete fc-key-store folder and run again. This probably due to old keys, i guess

MuhammedHafil (Thu, 22 Nov 2018 16:32:59 GMT):
@Ammu : delete hfc-key-store folder and run again. This probably due to old keys, i guess

bd (Thu, 22 Nov 2018 16:34:17 GMT):
Has left the channel.

hypere (Thu, 22 Nov 2018 19:41:03 GMT):
Hey guys after i execute the stub.PutState command I tried to read the data by calling stub.GetState, but it seems that its constantly returning an empty response with no error. Does anyone know how to resolve this issue?

ehuarotop (Thu, 22 Nov 2018 22:04:43 GMT):
Has joined the channel.

KonstantinBushko (Fri, 23 Nov 2018 00:11:04 GMT):
Has joined the channel.

waxer (Fri, 23 Nov 2018 01:23:27 GMT):
Question: what may be useful appliactions of a single organization fabric network?

Ammu (Fri, 23 Nov 2018 05:49:31 GMT):
@MuhammedHafil thanks your answer helped me. where the data's will be stored?

FLASHJr (Fri, 23 Nov 2018 06:13:10 GMT):
I'm running the Fabcar example, and I have made some changes in the chaincode written in Node, so how to redeploy this changes without starting the network from scratch.

MuhammedHafil (Fri, 23 Nov 2018 07:09:10 GMT):
@FLASHJr : https://pastebin.com/eRAJFUnS

MuhammedHafil (Fri, 23 Nov 2018 07:09:10 GMT):
@FLASHJr : https://pastebin.com/eRAJFUnS Change the VERSION variable every time you upgrade or you can alternately make version a second variable and pass to that bash

MuhammedHafil (Fri, 23 Nov 2018 07:15:10 GMT):
Updated the paste, run it as `./script.sh node 1.01 `

JayJong (Fri, 23 Nov 2018 07:26:23 GMT):
hi guys, anyone know how to check if a peer is free, as in its not processing a txn?

DattaPatil (Fri, 23 Nov 2018 07:29:04 GMT):
HI Everyone, Can someone please clarify my doubts. I have taken the reference of Balance-transfer application and build my application accordingly. i have replaced my chaincode which is written in golang. Then i modified the ./runApp.sh and ./testPIs.sh file according to my requirment. Everything works fine, i see the expected output. NOW, my question is which api call should i give to frontend guy so that he will call it. I mean i what i supposed to give him so that he would be able to call my blockchain. is it going to be from ./testAPIs.sh file for app.js file. can someone please help with same balance trasfer example would make lot more sense.

knagware9 (Fri, 23 Nov 2018 08:26:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tPqjbdDPwZS96afQp) @DattaPatil yes..APIs from ./testAPIs.sh files

oborovyk (Fri, 23 Nov 2018 09:34:43 GMT):
Hi all, I'm looking into transient feature and have some questions: Does it work in scope of private data collections only? How does endorsement work with such transient arguments?

FLASHJr (Fri, 23 Nov 2018 09:41:20 GMT):
@MuhammedHafil : I want to build a POC on Hyperledger Fabric, so should I go ahead with Fabric or Composer.? What will be better to use.

HoneyShah (Fri, 23 Nov 2018 11:01:23 GMT):
Hello, can anyone help me with this please? https://stackoverflow.com/questions/53445400/hyperledger-fabric-error-14-unavailable-tcp-write-failed

HaydenG (Fri, 23 Nov 2018 11:08:14 GMT):
Has joined the channel.

DeepakMule (Fri, 23 Nov 2018 12:00:46 GMT):
Hi, Can it be possible to add new Orderer to existing network? example in my network only one orderer is present.

DeepakMule (Fri, 23 Nov 2018 12:00:46 GMT):
Hi, Can it be possible to add new Orderer to existing network? example in my network only one orderer is present. Similar to addition of new ORG or new Peer to network

MuhammedHafil (Fri, 23 Nov 2018 12:42:32 GMT):
yes i guess,. you can use `cryptogen extend` command after modification in config.yaml instead of generate command. you also need to write docker compose file for the new orderer.

MuhammedHafil (Fri, 23 Nov 2018 12:45:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qzc2cHgb7oyyye6SY) @FLASHJr I'm not sure about it. developing with composer is faster

krabradosty (Fri, 23 Nov 2018 15:35:31 GMT):
Hello. I want to set `/Channel/Application/Admins` policy to be "any admin of organization 1" instead of "MAJORITY Admins". I'm doing this by changing appropriate value to `OR('Org1MSP.admin')` in the configtx.yaml and generating a new channel configuration block. But to my surprise, this config leads to a bug: signature of the admin of any organization is enough to change application level channel config. I'm testing it by adding/deleting an organization to the channel. Am I doing something wrong? I've already reported this bug in the Fabric mail subscription but got no response.

dave.enyeart (Fri, 23 Nov 2018 16:13:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=99EX2LMx9euduTBCS) @oborovyk transient can be used with public or private data. it allows you to pass arguments to chaincode execution, without those arguments showing up in the proposal response, and therefore will not be included in the submitted transaction or block. So it is for privacy of inputs, often used for private data, but can also be used to drive normal chaincode logic. The client would have to pass the same transient data to each of the endorsing peers, otherwise the chaincode execution results may be different, which would lead to an invalid transaction.

AbhinayB (Fri, 23 Nov 2018 16:31:31 GMT):
I have a basic question. Since hyperledger fabric is for distributed domain, if we have 2 peers in different domains protected by firewalls, how do they communicate bypassing these firewalls? How do they communicate if there IP addresses are not public?

sam1 (Fri, 23 Nov 2018 16:53:31 GMT):
hi guys any idea what this error refers to: Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing ?

sam1 (Fri, 23 Nov 2018 16:53:51 GMT):
happens when i try to instantiate chaincode

JulianDuru (Fri, 23 Nov 2018 19:36:23 GMT):
Has joined the channel.

AnoGuy (Sat, 24 Nov 2018 07:01:26 GMT):
Has joined the channel.

MuhammedHafil (Sat, 24 Nov 2018 08:28:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3uQ6CiiRthhmDWuSQ) @Ammu what data?

Ammu (Sat, 24 Nov 2018 10:02:42 GMT):
db

Ammu (Sat, 24 Nov 2018 10:02:51 GMT):
@MuhammedHafil

cdacpenguin (Sun, 25 Nov 2018 04:03:05 GMT):
Has joined the channel.

ajbill (Sun, 25 Nov 2018 13:30:33 GMT):
Has joined the channel.

ajbill (Sun, 25 Nov 2018 13:33:44 GMT):
Hello, i have built my first network and trying to connect it to composer to try developing a simple application with the rest api. Struggling a bit to figure out how to do this and connect composer to my own channel. Could someone possibly point me in the right direction please?

bh4rtp (Sun, 25 Nov 2018 13:54:45 GMT):
hi, does anyone enable pkcs11 using node sdk?

phamdat721101 (Sun, 25 Nov 2018 14:06:02 GMT):
Hi, Is there anyone know how does hyperledger fabric reach consensus?

yousaf (Sun, 25 Nov 2018 17:29:12 GMT):
Hi everyone. I am getting this error......Any solution for this> Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[120 123 167 36 68 53 51 38 189 253 244 99 233 230 175 254 150 238 97 201 172 53 134 39 5 238 62 240 195 33 28 116]]: Key with SKI 787ba72444353326bdfdf463e9e6affe96ee61c9ac35862705ee3ef0c3211c74 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

UmutCanGulmez (Sun, 25 Nov 2018 17:36:49 GMT):

Clipboard - November 25, 2018 8:36 PM

UmutCanGulmez (Sun, 25 Nov 2018 17:36:50 GMT):
Hi , I am trying to run my own network but after i do "docker-compose -f docker-compose-cli.yaml up -d" i get some errors in the orderer logs . Do you know what is the reason of this error, i am looking this error for several hours and couldnt find anything that solves this problem

longnv1a (Mon, 26 Nov 2018 04:17:32 GMT):
Has joined the channel.

Lolololo (Mon, 26 Nov 2018 06:48:42 GMT):
Has joined the channel.

abityildiz (Mon, 26 Nov 2018 06:55:56 GMT):

Clipboard - November 26, 2018 9:55 AM

HasnatAhmed (Mon, 26 Nov 2018 07:20:26 GMT):
Hello sir, We are facing issues to deploy our network on multiple machines. We want to deploy our network on local machines and wants the communications between different peers and organizations. So it is possible to use SOLO for communications. If yes then how. and If no then why? We want to make small networks on 2 to 3 machines and then wants to combine all the small networks to build a giant network. how this will be possible. Looking for help.

AndresMartinezMelgar.itcl (Mon, 26 Nov 2018 07:35:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9LKk38bxSuiNetRCw) @HasnatAhmed maybe this tutorial can help you https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

ShefaliMittal (Mon, 26 Nov 2018 07:42:13 GMT):
Hi All, Anyone got any idea around indexes with couchdb. I am able to create index by referring to this URL- https://hyperledger-fabric.readthedocs.io/en/release-1.2/couchdb_tutorial.html#cdb-create-index But after creating index getStateByRange query is not working - It says Error: GET_STATE_BY_RANGE failed: transaction ID: 1514f7e48055fd83a96a8878bee31e8106693e97147e793d32f20e346a9458c2: version field ~version was not found Please help.

HasnatAhmed (Mon, 26 Nov 2018 08:07:24 GMT):
Hello sir, We are facing issues to deploy our network on multiple machines. We want to deploy our network on local machines and wants the communications between different peers and organizations. So it is possible to use SOLO for communications. If yes then how. and If no then why? We want to make small networks on 2 to 3 machines and then wants to combine all the small networks to build a giant network. how this will be possible. Looking for help.

HasnatAhmed (Mon, 26 Nov 2018 08:08:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4n3ejDfBHxAESyhuS) @AndresMartinezMelgar.itcl I want to add new organization in my existing network. How it is possible

HasnatAhmed (Mon, 26 Nov 2018 08:10:44 GMT):
Hello sir, We are facing issues to deploy our network on multiple machines. We want to deploy our network on local machines and wants the communications between different peers and organizations. So it is possible to use SOLO for communications. If yes then how. and If no then why? We want to make small networks on 2 to 3 machines and then wants to combine all the small networks to build a giant network. how this will be possible. Looking for help.

NursultanMakhanov (Mon, 26 Nov 2018 09:40:30 GMT):
Has joined the channel.

NursultanMakhanov (Mon, 26 Nov 2018 09:40:38 GMT):
Hello all, I'm facing a challenge of understanding real world involvement of Hyperledger Fabric into existing systems. I know that Hyperledger Composer is a good tool to present a demo, but how about the future? What should I use in order to make projects without using Composer (not demo, real enterprise project)?

MuhammedHafil (Mon, 26 Nov 2018 11:45:09 GMT):
How should we save data in fabric (Couchdb)? With embedding or relations ?

dave.enyeart (Mon, 26 Nov 2018 12:13:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=95yNrPyCbtiTnQA4d) @ShefaliMittal I answered in #fabric-chaincode-dev . You don't have to copy/paste question to multiple channels... I look for the couchdb questions across channels.

GaneshdeepDumbare (Mon, 26 Nov 2018 13:51:59 GMT):
Has joined the channel.

GaneshdeepDumbare (Mon, 26 Nov 2018 13:52:14 GMT):
Can someone please tell me the advantages of using Fabric over Quorum?

S.pradeepkumar (Mon, 26 Nov 2018 14:17:49 GMT):
Failed to get submitter user1 TypeError: Channel options must be an object with string keys and integer or string values while invoking chaincode in hyperledger fabric if anybody facing this type of issues

Rajatsharma (Mon, 26 Nov 2018 14:52:07 GMT):
Is there any way I can spawn a docker container of my own and make that a part of fabric network. If i'm the network admin.

lwan2000 (Mon, 26 Nov 2018 16:59:05 GMT):
Has joined the channel.

migrenaa (Mon, 26 Nov 2018 17:17:01 GMT):
Hello guys. I am trying to implement service discovery for my nodejs client therefore I am trying to understand how it works. My network has a single organizations. I imagine that the discovery server should look for all the peers which are members of the same organization as the bootstrap one, and after that it should start looking for anchor peers. Currently with the setup of my network the discovery server returns only one peer - the bootstrap one. This is why I think over how the server works. If it is looking for anchor peers only I would have to implement updating the channel configurations in order to add all peers that are joining the channel to the anchor peers. Can you help me to understand how it works and what might be my problem?

twoneks (Mon, 26 Nov 2018 17:18:16 GMT):
Hi All I'm getting this error ``` Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application but was in the read set ``` Even after lot of effort I can't understand how and which possibilities stands behind the configtx.yaml Does someone have a good resource for understand this??

shaa4aa (Mon, 26 Nov 2018 19:53:47 GMT):
Has joined the channel.

shaa4aa (Mon, 26 Nov 2018 20:08:53 GMT):
hello all , I'm new to heperledger and i want to use it with IoT which framework better ?

PCP 1 (Mon, 26 Nov 2018 21:55:05 GMT):
Hello everyone. We use 2 peers with a CouchDB in Fabric 0.6. Peer 0's CouchDB database has 7 less transactions than peer 1's CouchDB database. Is this normal behavior? Shouldn't they be synchronized entirely? The peers went down occasionally and then they were brought back up, but having more or less transactions on each peer seems somewhat odd. Please let me know, thank you!

yacovm (Mon, 26 Nov 2018 22:40:42 GMT):
Fabric 0.6?

ooharawork (Tue, 27 Nov 2018 02:59:05 GMT):
Has joined the channel.

ooharawork (Tue, 27 Nov 2018 03:07:17 GMT):
Hello folks, has anyone tried to use `peer chaincode package/signpackage` feature? I've got confused when I could install and instantiated a package that lacks a signature. Full question: https://stackoverflow.com/questions/53425198

leon.one (Tue, 27 Nov 2018 05:26:03 GMT):
Has joined the channel.

SudeepS 2 (Tue, 27 Nov 2018 05:50:56 GMT):
Hi.. What's the ideal way of storing files on ledger.. ?

sherryxiao1988 (Tue, 27 Nov 2018 06:54:19 GMT):
Has joined the channel.

AvinashVazratkar (Tue, 27 Nov 2018 07:26:06 GMT):
Hello folks, I have created a private network of 2 nodes on 2 different physical machines. On one machine, docker container of orderer, peer, ca and couchDB are running and on another machine docker container of peer and couchDB are running. I have deployed chaincode (FABCAR) on first machine and created new car using chaincode function. Is it possible to access /fetch/query data from second machine?

migrenaa (Tue, 27 Nov 2018 09:17:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4TtzekkNZ896dkR5L) @SudeepS 2 You can consider using IPFS and storing only hashes in the ledger.. I think as a stack IPFS and Fabric makes a lot of sense..

AndresMartinezMelgar.itcl (Tue, 27 Nov 2018 09:42:14 GMT):
in folder "fabcar" .proto files , among others, are defined . I suppose that i dont must edit them right? Are similar like system files?

sundarsuman1994 (Tue, 27 Nov 2018 10:12:59 GMT):
Hi All, Are there any best practices around identity management in Hyperledger Fabric? More specifically, how to manage private keys for the users?

ascatox (Tue, 27 Nov 2018 10:20:10 GMT):
Hi All! I've a big problem *instantiating NodeJs Chaincodes*, my blockchain servers are behind a corporate proxy, when I instantiate a Go Chaincode, everything works fine but for the Node ones instead I always encounter a npm error `2018-11-27 10:11:05.504 UTC [msp/identity] Sign -> DEBU 0a8 Sign: digest: 541E64B3742A65B98B6BFE91C885E13925C2842ACF6EB5504A9E7C9FB8A8B108 Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED`

ascatox (Tue, 27 Nov 2018 10:20:10 GMT):
Hi All! I've a big problem *instantiating NodeJs Chaincodes*, my blockchain servers are behind a corporate proxy, when I instantiate a Go Chaincode, everything works fine but for the Node ones instead I always encounter a npm error `2018-11-27 10:11:05.504 UTC [msp/identity] Sign -> DEBU 0a8 Sign: digest: 541E64B3742A65B98B6BFE91C885E13925C2842ACF6EB5504A9E7C9FB8A8B108 Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED`

ascatox (Tue, 27 Nov 2018 10:20:10 GMT):
Hi All! I've a big problem *instantiating NodeJs Chaincodes*, my blockchain servers are behind a corporate proxy, when I instantiate a Go Chaincode, everything works fine but for the Node ones instead I always encounter a npm error : `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED`

ascatox (Tue, 27 Nov 2018 10:21:13 GMT):
Has someone a solution? Thanks for the help!

hypersuresh1975 (Tue, 27 Nov 2018 10:45:14 GMT):
Has joined the channel.

hypersuresh1975 (Tue, 27 Nov 2018 10:47:48 GMT):
Hi, Will the images of CouchDB, Zookeeper and Kafka will get installed in the Dev environment while installation of fabric 1.3.1 as I couldn't see those images after the installation using the command "make docker" from the "fabric" folder

krabradosty (Tue, 27 Nov 2018 11:14:38 GMT):
Hello. How does Fabric network distinguish peers from clients? Can a client start up a peer node?

bd (Tue, 27 Nov 2018 11:54:52 GMT):
Has joined the channel.

DattaPatil (Tue, 27 Nov 2018 12:18:03 GMT):
Hello Team, i have deleted the artifact/channel/crypto-config folder from *balance-transfer* how to regenerate the certificate again. can someone please suggest on this. i basically wants to add new peers to the Org1

FLASHJr (Tue, 27 Nov 2018 12:18:29 GMT):
How to apply role based access control in fabric? eg: If I want a specific user to restrict calling some chaincode function, how could I achieve this in fabric (without using composer)

bd (Tue, 27 Nov 2018 12:33:04 GMT):
Has left the channel.

AndresMartinezMelgar.itcl (Tue, 27 Nov 2018 12:33:36 GMT):
if i have two chain codes in one peer, how can i choose with what of these i make transaction? peer chaincode invoke

AndresMartinezMelgar.itcl (Tue, 27 Nov 2018 12:33:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kvrHMqNC3TRm4RxKL) if i have two chain codes in one peer, how can i choose with what of these i make transaction? peer chaincode invoke Which one does it take by default? the first one installed?

dave.enyeart (Tue, 27 Nov 2018 12:34:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BoifrTqFRvrmCcuix) @AvinashVazratkar Yes, that's the whole point of blockchain. The ledger is replicated on each peer. To see this in action, please read the starter tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html

AndresMartinezMelgar.itcl (Tue, 27 Nov 2018 12:35:15 GMT):
if i have two chain codes in one peer, how can i choose with what of these i make transaction? peer chaincode invoke Which one does it take by default? the first one installed?

dave.enyeart (Tue, 27 Nov 2018 12:38:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ic6WrCTWQwEMGHq8G) @hypersuresh1975 The third party images are in fabric-baseimage repository rather than fabric repository. You'll need to `make docker` in fabric-baseimage.

FLASHJr (Tue, 27 Nov 2018 12:40:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P6Y6kBXf8oFxzmbED) @dave.enyeart @dave.enyeart do we have to install chaincode on the on machine 2's peer to fetch the record? or can we do it without installing the chaincode?

dave.enyeart (Tue, 27 Nov 2018 12:45:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mShHBq9rMbuXJCLmE) @FLASHJr Please read the tutorial, the answer is clearly there and shows that you must install the chaincode in order to invoke and chaincode.

dave.enyeart (Tue, 27 Nov 2018 12:45:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mShHBq9rMbuXJCLmE) @FLASHJr Please read the tutorial, the answer is clearly there and shows that you must install the chaincode in order to invoke and query chaincode.

dave.enyeart (Tue, 27 Nov 2018 12:50:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2uiLQhmZqKzASkvNh) @krabradosty To distinguish clients and peer identities read https://hyperledger-fabric.readthedocs.io/en/release-1.3/msp.html#identity-classification. Then see https://hyperledger-fabric.readthedocs.io/en/release-1.3/endorsement-policies.html#setting-chaincode-level-endorsement-policies to show how to distinguish them in policies. No, a client cannot start a peer.

dave.enyeart (Tue, 27 Nov 2018 12:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2Bm7WjLmf89h5QnGk) @FLASHJr Within each chaincode function you can get submitter identity information and apply whatever access control you like, see https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4ade.html#chaincode-api

dave.enyeart (Tue, 27 Nov 2018 12:55:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PLRLzk4bxAEJojAn5) @AndresMartinezMelgar.itcl Only one version of the chaincode is ever instantiated on a channel at a time. The one and only instantiated version of the chaincode will always be the version that is invoked. You must install the matching version to the peer where you are invoking.

dave.enyeart (Tue, 27 Nov 2018 12:55:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PLRLzk4bxAEJojAn5) @AndresMartinezMelgar.itcl Only one version of the chaincode is ever instantiated on a channel at a time. The one and only instantiated version of the chaincode will always be the version that is invoked. You must install the matching version to the peer where you are invoking. When you invoke chaincode, you must pass the name but not the version.

sherryxiao1988 (Tue, 27 Nov 2018 13:14:27 GMT):
Hi team, could someone points me to some enterprise projects that uses Fabric? preferable with code open sourced~ I want to learn more about the usage of fabric in practice :) thanks in advance!

sherryxiao1988 (Tue, 27 Nov 2018 13:37:14 GMT):
all what i can find is sample projects lol

greivinlopez (Tue, 27 Nov 2018 13:46:39 GMT):
Hi @sherryxiao1988 there are two reason why is difficult for you to find the results you want: 1. Hyperledger Fabric and Hyperledger in general is still very new (~1 year production ready) and 2. As this is intended for enterprise usage it makes it more difficult to find open sourced projects. Somehow number 2 is a reflect of number 1, a company will not open source something that is not mature enough.

jrosmith (Tue, 27 Nov 2018 13:51:14 GMT):
@sherryxiao1988~~ theres actually a number of production projects listed on hyperledger's [blockchain showcase](https://www.hyperledger.org/resources/blockchain-showcase). @greivinlopez is correct though, this is all new tech so i do not believe any of these projects have open sourced their code

Mehak (Tue, 27 Nov 2018 14:01:10 GMT):
Has joined the channel.

Mehak (Tue, 27 Nov 2018 14:01:36 GMT):
can anyone guide me as I'm getting error while installing .bna file in Hyperledger Fabric multipeer setup Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline

sherryxiao1988 (Tue, 27 Nov 2018 14:07:14 GMT):
@greivinlopez @jrosmith thanks a lot :)

maxrobot (Tue, 27 Nov 2018 16:45:15 GMT):
Has joined the channel.

maxrobot (Tue, 27 Nov 2018 16:45:18 GMT):
Hi I am a little confused that the fabric-samples branch for version 1.3.0 does not have the commercial-paper directory whilst the read the docs for version 1.3.0 have this as a tutorial

maxrobot (Tue, 27 Nov 2018 16:45:40 GMT):
what is the best place to go to actually understand how to set up fabric and my own chaincode

maxrobot (Tue, 27 Nov 2018 16:45:48 GMT):
the tutorials are nebulous at best...

maxrobot (Tue, 27 Nov 2018 16:48:15 GMT):
tutorial

maxrobot (Tue, 27 Nov 2018 17:14:30 GMT):
guide

vanitas92 (Tue, 27 Nov 2018 17:54:06 GMT):
Hello guys! I have a question regarding a couchdb instances needed for production scenario. We currently have 2 peer x organization but only one instance of couchdb acting as ledger x organization. Both peers connect to the same couchdb instance. Is this approach correct or each peer should have its own couchdb instance? Thank you guys!

jrosmith (Tue, 27 Nov 2018 18:01:00 GMT):
@vanitas92 each peer should have its own couchdb instance

ank13 (Tue, 27 Nov 2018 18:04:10 GMT):
Has joined the channel.

ank13 (Tue, 27 Nov 2018 18:05:13 GMT):
Hey, I am getting error for deploying fist netowrk using default bynf.sh `panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4deb2a] goroutine 1 [running]: panic(0x6b8d00, 0xc4200140a0) /opt/go/go1.7.5.linux.amd64/src/runtime/panic.go:500 +0x1a1 github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc420013300, 0x34, 0x0, 0x0, 0xc420017ba0, 0x16) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/msp/generator.go:168 +0x20a main.generatePeerOrg(0x7042a0, 0xd, 0xc420015580, 0x4, 0xc4200155b0, 0x10, 0x7019fb, 0x2, 0xc420017b40, 0x13, ...) /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:405 +0x5f2 main.generate() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:263 +0x1ce main.main() /w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/cryptogen/main.go:212 +0x262 + res=2 + set +x Failed to generate certificates...`

ank13 (Tue, 27 Nov 2018 18:14:17 GMT):
I am using all the default settings. May I know why this error is occurring?

apexone (Tue, 27 Nov 2018 18:52:11 GMT):
Has joined the channel.

apexone (Tue, 27 Nov 2018 18:52:27 GMT):
can anyone help me with the install command for the hyperledger samples: curl -sSL url_removed | bash -s 1.3.0 It does not work on mac

greivinlopez (Tue, 27 Nov 2018 19:01:01 GMT):
@apexone what problem are you getting?

apexone (Tue, 27 Nov 2018 19:01:41 GMT):
@greivinlopez ERROR: Unexpected argument: -- Usage: bash [OPTION]... [version [ca_version [thirdparty_version]]]

apexone (Tue, 27 Nov 2018 19:01:41 GMT):
@greivinlopez ERROR: Unexpected argument: -- Usage: bash [OPTION]... [version [ca_version [thirdparty_version]]]

apexone (Tue, 27 Nov 2018 19:46:43 GMT):
ERROR: Unexpected argument: -- Usage: bash [OPTION]... [version [ca_version [thirdparty_version]]] OPTIONS: -h|--help Print this message -d Bypass docker image download -s Bypass fabric-samples repo clone -b Bypass download of platform-specific binaries EXAMPLES: To download docker images for version 1.3.0 ==> /usr/local/Cellar/bash/4.4.23/bin/bash -sb 1.3.0

dave.enyeart (Tue, 27 Nov 2018 22:08:27 GMT):
@cbf @tijohnson Is this bootstrap.sh issue related to the recent merge? https://gerrit.hyperledger.org/r/#/c/27032/

tijohnson (Tue, 27 Nov 2018 22:08:27 GMT):
Has joined the channel.

dave.enyeart (Tue, 27 Nov 2018 22:09:18 GMT):
I'm seeing the same issue from my mac since the merge

tijohnson (Tue, 27 Nov 2018 22:42:05 GMT):
I sure hope not

tijohnson (Tue, 27 Nov 2018 22:44:55 GMT):
that 'bootstrap.sh' link is not working for me..... chances are pretty good I could fix it pretty quickly if I knew what was happening

tijohnson (Tue, 27 Nov 2018 22:44:55 GMT):
@dave.enyeart that 'bootstrap.sh' link is not working for me..... chances are pretty good I could fix it pretty quickly if I knew what was happening

dave.enyeart (Wed, 28 Nov 2018 03:38:07 GMT):
@tijohnson I opened a `highest` Jira bug with more details: https://jira.hyperledger.org/browse/FAB-13009

DattaPatil (Wed, 28 Nov 2018 05:15:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AbiWRQPJud2rAEk2q) ?? Can someone help over this please?

saumilsdk (Wed, 28 Nov 2018 05:30:56 GMT):
running ./byfn.sh up -l node fails

saumilsdk (Wed, 28 Nov 2018 05:31:03 GMT):
but with golan it works fine

saumilsdk (Wed, 28 Nov 2018 05:31:05 GMT):
any idea?

saumilsdk (Wed, 28 Nov 2018 05:31:27 GMT):
this command fails

saumilsdk (Wed, 28 Nov 2018 05:31:28 GMT):
peer chaincode instantiate -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n mycc -l node -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'')'

freemason (Wed, 28 Nov 2018 05:43:38 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Wed, 28 Nov 2018 07:45:44 GMT):
When I create a new channel, and I want to join ORG1 with him. which peer of Org1 should I use to anchor? Normally i use peer0.org1 but i dont know if its indiferent.

AndresMartinezMelgar.itcl (Wed, 28 Nov 2018 07:54:37 GMT):
how can i leave a channel? i dont find this command

BhaskarMondal (Wed, 28 Nov 2018 08:08:11 GMT):
how to deploy fabric as a multi org multi node multi peer multi orderer multi machine way and which could support auto scaling?

BernardDK (Wed, 28 Nov 2018 08:36:19 GMT):
Has joined the channel.

halilkalkan (Wed, 28 Nov 2018 08:38:52 GMT):
Hi everyone, Hyperledger Composer has a feature called historian which shows transaction history. Is there any features in Fabric to view transaction history or do we need to create another asset as historian and save this data? Ps: I know gethistoryforkey function but I'm using private data, afaik gethistoryforkey doesn't support private data.

iridescent995 (Wed, 28 Nov 2018 09:24:51 GMT):
Has joined the channel.

iridescent995 (Wed, 28 Nov 2018 09:28:39 GMT):
Hello everyone, Is there a way to install java chaincode directly as a jar in hyperledger fabric v1.3 without exposing the source code?

KartikChauhan (Wed, 28 Nov 2018 09:43:56 GMT):
Has joined the channel.

KartikChauhan (Wed, 28 Nov 2018 09:44:05 GMT):
Does a transaction rolls back automatically if any error occurs during chaincode invokation?

CorentinPacaud (Wed, 28 Nov 2018 09:44:48 GMT):
Hi everyone. I am migrating from Fabric/Composer to Fabric only. Is there anything similar to permissions.acl ?

CorentinPacaud (Wed, 28 Nov 2018 09:45:03 GMT):
or do I need to code it in the chaincode ?

haggis (Wed, 28 Nov 2018 10:04:52 GMT):
Has joined the channel.

dave.enyeart (Wed, 28 Nov 2018 10:57:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QQJWLTBGc3k3Y847v) @halilkalkan GetHistoryForKey for private data is planned for a future release. In the interim you could add some minimal information to a public key in the same transaction for historical tracking. That could either be a logical key, or if the key itself is sensitive, you could take a hash of the logical key and save that as a public key. Then use GetHistoryForKey on the public key to find the transactions of the private data.

dave.enyeart (Wed, 28 Nov 2018 11:00:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TpBMychomSWk5cjdk) @KartikChauhan Please read documentation such as transaction flow https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html and key concepts https://hyperledger-fabric.readthedocs.io/en/latest/key_concepts.html. You'll see that chaincode execution is only the first step... you'll need chaincode execution on multiple peers to be successful before you can submit it for ordering and commit.

longnv1a (Wed, 28 Nov 2018 11:17:41 GMT):
does anyone know how to sync up the couchdb. I just deleted db from one peer incidentally :(

dave.enyeart (Wed, 28 Nov 2018 11:19:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a4h5K3gbnegcXA8Mx) @longnv1a If you restart peer, it will detect if couchdb databases are missing or behind, and will automatically re-create them or catch them up

longnv1a (Wed, 28 Nov 2018 11:21:27 GMT):
I already restart the peer, but it still not working

PRIMOALBERI (Wed, 28 Nov 2018 11:30:20 GMT):
Has joined the channel.

PRIMOALBERI (Wed, 28 Nov 2018 11:37:28 GMT):
Hi guys, I'm new to Hyperledger Fabric. I've read the doc carefully and tried either building network and write network tutorials. Both use prewrited files provided in fabric-samples but what if i want to create my own network with custom namespace/number of peer/ organisations etc? Should I modify the existing configuration file? I am a little bit confused sorry, thank you.

AndresMartinezMelgar.itcl (Wed, 28 Nov 2018 11:41:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xNXhezrP8FvDWNaRS) @PRIMOALBERI i have same question. I am trying to edit configuration files to create mi own network, still unsuccessful what I have achieved is to increase a bit the network that is created from byfn.sh, no more ):

Jayakrishna.V (Wed, 28 Nov 2018 11:58:32 GMT):
Hi All,

Jayakrishna.V (Wed, 28 Nov 2018 11:58:32 GMT):
Hi All, I am looking for the source that explains the process of subscribing to events generated by Peers after committing the transactions to Ledger and handling those events. Can anyone suggest me a best sample available on the internet.

Jayakrishna.V (Wed, 28 Nov 2018 11:58:32 GMT):
Hi All, I am looking for the source that explains the process of subscribing to events generated by Peers after committing the transactions to Ledger and handling those events. Can anyone suggest me a best sample available on the internet.

Jayakrishna.V (Wed, 28 Nov 2018 11:58:32 GMT):
Hi All, I am looking for the source that explains the process of subscribing to events generated by Peers after committing the transactions to Ledger and handling those events. Can anyone suggest me a best sample available on the internet. @dave.enyeart @ruien

Jayakrishna.V (Wed, 28 Nov 2018 11:58:32 GMT):
Hi All, I am looking for the source code that explains the process of subscribing to events generated by Peers after committing the transactions to Ledger and handling those events. Can anyone suggest me a best sample available on the internet. @dave.enyeart @ruien

HubertYoung (Wed, 28 Nov 2018 12:14:13 GMT):
Has joined the channel.

KartikChauhan (Wed, 28 Nov 2018 12:38:03 GMT):
How can we know the total entries made in the stateLevelDB?

KartikChauhan (Wed, 28 Nov 2018 12:42:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=maQanPK6uoHLkMJ36) @dave.enyeart I meant while putting something in the stateDB. Let's say I've to make 4 entries and for some unknown reason 3rd & 4th entries couldn't be added. Now all the entries are being made inside a loop. I wanted to know what will happen to the first 2 entries? Will they go into the DB or not?

dave.enyeart (Wed, 28 Nov 2018 12:55:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7HE8EfJjELdq8dwFi) @Jayakrishna.V For event tutorial see https://fabric-sdk-node.github.io/release-1.3/tutorial-channel-events.html. You can post on #fabric-sdk-node and ask them for the best sample.

dave.enyeart (Wed, 28 Nov 2018 12:56:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MLdtFEYn2EFkpu3ct) @KartikChauhan Peer validation/commit will ensure that valid transactions are committed to state database while committing the block. If it can't commit to state database for whatever reason the peer will panic, as Fabric will not tolerate inconsistent state.

dave.enyeart (Wed, 28 Nov 2018 12:56:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MLdtFEYn2EFkpu3ct) @KartikChauhan Peer validation/commit will ensure that valid transactions are committed to state database while committing the block. If it can't commit to state database for whatever reason the peer will panic, as Fabric will not tolerate inconsistent state. If you are ever in doubt about state database content, you always have the option to drop state database, the next peer restart will automatically rebuild it and ensure it is in sync with blockchain.

Jayakrishna.V (Wed, 28 Nov 2018 12:56:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oxTpbMjBJ39d6ZyHu) @dave.enyeart Thanks Dave

halilkalkan (Wed, 28 Nov 2018 13:25:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uyjQYsyT6ayiTHYkp) Thanks Dave for your answer. I'm trying to create a history asset and put different collections but I couldn't find how CouchDB query works against collections? When I check from Fauxton UI I can perform a query but from chaincode it returns null. I couldnt understand how should it work without giving collection name?

Mehak (Wed, 28 Nov 2018 13:29:52 GMT):
can anyone guide how can we build fabric network on multiple physical machines? and how can I access the fabric blockchain from different physical machine as I've configure two organisations and 1 orderer on single machine?

DattaPatil (Wed, 28 Nov 2018 13:31:00 GMT):
Hi All, Anybody has any idea about below error. i added the peers to balance-transfer network, and ran the ./runApp.sh(which ran fine) but when i run ./testAPIs.sh i get these error. I have generated the certificates as well for added peers. {success":false,"message":"failed Error: ENOENT: no such file or directory, open '/home/djadhav/Desktop/Blockchain/ncb-2.0-app/artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8_sk

DattaPatil (Wed, 28 Nov 2018 13:31:00 GMT):
Hi All, Anybody has any idea about below error. i added the peers to balance-transfer network, and ran the ./runApp.sh(which ran fine) but when i run ./testAPIs.sh i get these error. I have generated the certificates as well for added peers. {success":false,"message":"failed Error: ENOENT: no such file or directory, open '/home/hostname/Desktop/Blockchain/bal-2.0-app/artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8_sk

PRIMOALBERI (Wed, 28 Nov 2018 13:33:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yAkEMgtx55qWkopdE) @Mehak This tutorial could be helpful https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

dave.enyeart (Wed, 28 Nov 2018 13:37:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xZua2dFuvQuxbXg9L) @halilkalkan GetPrivateDataQueryResult https://github.com/hyperledger/fabric/blob/release-1.3/core/chaincode/shim/interfaces.go#L308 will direct the JSON query to the collection-scoped database within CouchDB

halilkalkan (Wed, 28 Nov 2018 13:41:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qw33KArjYEecZc239) @dave.enyeart Oh thank you, I didnt see that point. Thanks :)

halilkalkan (Wed, 28 Nov 2018 13:41:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qw33KArjYEecZc239) @dave.enyeart Oh thank you, I didnt see that point. Thanks :) Edit: It works. :thumbsup_tone4:

halilkalkan (Wed, 28 Nov 2018 13:41:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qw33KArjYEecZc239) @dave.enyeart Oh thank you, I didnt see that point. Thanks :) Edit: It works like a charm. :thumbsup_tone4:

doniv (Wed, 28 Nov 2018 15:40:46 GMT):
Has joined the channel.

doniv (Wed, 28 Nov 2018 15:40:54 GMT):
Hi guys, the page https://openblockchain.readthedocs.io/en/latest/FAQ/usage_FAQ/?fbclid=IwAR3JSj0GI8DE10sRzw8GGbBgLLn33ca9fASaVkJTYPana9laQtnhpBLfwCE says "The current performance goal for the fabric is to achieve 100,000 transactions per second in a standard production environment of about 15 validating nodes running in close proximity". Could someone clarify please that standard production environment means? Or give a link to tests for version 1.3.

FLASHJr (Wed, 28 Nov 2018 16:30:39 GMT):
does anyone have the example/code which shows how to achieve *Identity management in fabric*? (like *.acl* in composer)

fabricturbo2 (Wed, 28 Nov 2018 16:39:18 GMT):
Has joined the channel.

fabricturbo2 (Wed, 28 Nov 2018 16:40:13 GMT):
Hi I have a question regarding the tutorial documentation. This page says there is a "commerical-paper" sample project somewhere: https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html#prerequisites

fabricturbo2 (Wed, 28 Nov 2018 16:40:28 GMT):
However, the repo itself doesn't contain the listed subfolder: https://github.com/hyperledger/fabric-samples

tijohnson (Wed, 28 Nov 2018 16:55:23 GMT):
@dave.enyeart Please take a look at my fix FAB-13009 : https://gerrit.hyperledger.org/r/#/c/27782/

greivinlopez (Wed, 28 Nov 2018 17:02:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ojPew4kZwDitHLXiH) This is the fix to your issue @apexone

kwakwa (Wed, 28 Nov 2018 17:22:45 GMT):
Hello, I've been trying to complete the "Using Private Data in Fabric" tutorial and I've been having an error I can't seem to solve... after running "./byfn.sh down" to clear everything, when running "./byfn.sh up -c mychannel -s couchdb" where the code runs "peer channel join -b mychannel.block" I always get the following error and program eventually stops... "Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded". I'm using docker-compose "version 1.20.1, build 5d8c71b2" and docker "version 1.20.1, build 5d8c71b2. I've checked Stackoverflow among some other websites and I've tried a few "fixes" like "docker volume prune" but nothing seems to work... Has this happened to anyone else recently ? I keep trying different things but I can't seem to solve it no matter what...

tijohnson (Wed, 28 Nov 2018 18:06:33 GMT):
@dave.enyeart Thanks for you patience on this getopt/getopts 'adventure'.

Mehak (Wed, 28 Nov 2018 19:28:44 GMT):
I just up a HLF node with 2 org 4 peers 1 orderer 2 CAs now how can I access this HLF node and blockchain to make transactions from outside of domain. please help me to understand; I’m new to HLF

Mehak (Wed, 28 Nov 2018 19:29:29 GMT):
I mean how can my client node send data to HLF network.

feitnomore (Wed, 28 Nov 2018 21:02:01 GMT):
Hello, I've created a little guide on my adventures with Fabric and Kubernetes. If anyone is interested: https://github.com/feitnomore/hyperledger-fabric-kubernetes

coveloper (Wed, 28 Nov 2018 21:27:56 GMT):
https://techcrunch.com/2018/11/28/aws-launches-a-managed-blockchain-service/

coveloper (Wed, 28 Nov 2018 21:28:21 GMT):
(supports Fabric!)

Acepls (Wed, 28 Nov 2018 22:23:33 GMT):
Has joined the channel.

Acepls (Wed, 28 Nov 2018 22:24:19 GMT):
Hey everyone! I have a question for a project in the designing stages. How many chains can I run on a Hyperledger Fabric node? Also, what would be the cheapest way to host a node on the cloud? Thanks a lot!

theezenaku (Wed, 28 Nov 2018 22:47:19 GMT):
Has joined the channel.

theezenaku (Wed, 28 Nov 2018 22:57:52 GMT):
This will probably end up being the cheapest way to host a node. https://techcrunch.com/2018/11/28/aws-launches-a-managed-blockchain-service/

theezenaku (Wed, 28 Nov 2018 22:58:33 GMT):
I haven't been able to find any resources of how production grade projects are doing user management. Does anyone have any suggestions?

greivinlopez (Wed, 28 Nov 2018 23:10:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Doe2iguWC8tYyZZu7) @theezenaku Product documentation online says: "Additionally, Managed Blockchain secures your network’s certificates with AWS Key Management Service (KMS), eliminating the need for you to set up your own secure key storage.", as it is in a preview state I can't really tell you how registration of actual HLF users from each organization will work, take a look at the online documentation here: https://docs.aws.amazon.com/managed-blockchain/latest/managementguide/what-is-managed-blockchain.html

theezenaku (Wed, 28 Nov 2018 23:11:16 GMT):
Thank you!

nRyDevOps (Wed, 28 Nov 2018 23:45:22 GMT):
Has joined the channel.

haggis (Thu, 29 Nov 2018 06:46:14 GMT):
@theezenaku @greivinlopez do you know whether it will be possible to join non-aws fabric networks with a managed aws node? I can't imagine that...

FLASHJr (Thu, 29 Nov 2018 06:51:24 GMT):
generate

FLASHJr (Thu, 29 Nov 2018 06:54:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AbiWRQPJud2rAEk2q) @DattaPatil I think you can generate crypto-config using this command `cryptogen generate --config=./crypto-config.yaml`

Msaleh97 (Thu, 29 Nov 2018 08:01:32 GMT):
Hi, I know that both the GetHistoryForKey and getQueryResult functions aren't supported by mockstub for unit testing. Do you guys have any recommendations on how I can get around it? I'm trying to hit 90% code coverage and those two functions are stopping from reaching my goal.

AndresMartinezMelgar.itcl (Thu, 29 Nov 2018 08:19:05 GMT):
what is the function of the docker container cli from tutorial byf.sh?

AndresMartinezMelgar.itcl (Thu, 29 Nov 2018 08:34:23 GMT):
in the tutorial byfn.sh (2 orgs). When a transaction is performed (peer chaincode invoke), the parameters --peerAddresses and --tlsRootCertFiles are passed twice. In the turorial eyfn.sh (3 orgs) those parameters are passed three times. My question is: if there are 10 organizations in a channel, when I make a transaction, will I have to pass 10 times those parameters? Would this serve to send the result of the transaction to all ledgers of the different organizations? Or I'm wrong

haggis (Thu, 29 Nov 2018 08:56:43 GMT):
@AndresMartinezMelgar.itcl it depends on the endorsement policy of your chaincode. If it required signatures from each organization, then yes.

haggis (Thu, 29 Nov 2018 08:59:09 GMT):
To your 2nd question: no, this is not a replacement for the distribution of your tx. The distribution will be done by the Orderer (which creates the blocks including transactions). The Leader Peer of an organization will receive this block and then further distribute to the other peers within its own organization

AndresMartinezMelgar.itcl (Thu, 29 Nov 2018 09:03:23 GMT):
ok, thanks

d8bhatta (Thu, 29 Nov 2018 10:10:47 GMT):
Hello Guys

d8bhatta (Thu, 29 Nov 2018 10:11:09 GMT):
I am trying multi-host blockchain using https://medium.com/@nhatduy2211/hi-abdul-wahab-thanks-for-your-tutorial-ed28a0638806

d8bhatta (Thu, 29 Nov 2018 10:11:35 GMT):
but when I run following command, I get error:

d8bhatta (Thu, 29 Nov 2018 10:11:36 GMT):
docker run --rm -it --network="my-net" --name orderer.example.com -p 7050:7050 -e ORDERER_GENERAL_LOGLEVEL=debug -e ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 -e ORDERER_GENERAL_LISTENPORT=7050 -e ORDERER_GENERAL_GENESISMETHOD=file -e ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block -e ORDERER_GENERAL_LOCALMSPID=OrdererMSP -e ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp -e ORDERER_GENERAL_TLS_ENABLED=false -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -v $(pwd)/channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block -v $(pwd)/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp -w /opt/gopath/src/github.com/hyperledger/fabric hyperledger/fabric-orderer orderer

d8bhatta (Thu, 29 Nov 2018 10:11:39 GMT):
Error:

d8bhatta (Thu, 29 Nov 2018 10:12:05 GMT):
Reading directory /var/hyperledger/orderer/msp/signcerts 2018-11-29 10:13:09.924 UTC [orderer/common/server] initializeLocalMsp -> FATA 008 Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory

d8bhatta (Thu, 29 Nov 2018 10:13:00 GMT):
where should I go to correct the file path?

ArpitKhurana1 (Thu, 29 Nov 2018 10:13:18 GMT):
Is there any way to add a new consortium in a running cluster?

d8bhatta (Thu, 29 Nov 2018 10:14:06 GMT):

Screen Shot 2018-11-29 at 3.58.27 PM.png

d8bhatta (Thu, 29 Nov 2018 10:14:16 GMT):
This is how my docker instances look like

d8bhatta (Thu, 29 Nov 2018 10:14:52 GMT):
I have drilled down to container : docker exec -t -i f7972cc443af /bin/bash

d8bhatta (Thu, 29 Nov 2018 10:15:01 GMT):
but /var/hyperledger folder is empty h ere

d8bhatta (Thu, 29 Nov 2018 10:15:20 GMT):
that means there is no folders like orderer/msp/signcerts inside hyperledger folder.

d8bhatta (Thu, 29 Nov 2018 10:15:37 GMT):
How can I correct this?

d8bhatta (Thu, 29 Nov 2018 10:15:40 GMT):
Creating manually?

d8bhatta (Thu, 29 Nov 2018 10:15:40 GMT):
Create manually?

maxrobot (Thu, 29 Nov 2018 10:32:28 GMT):
I am struggling to understand what the block format is in hyperledger. When I query the peer as in `peer channel fetch newest` I am returned a block `mychannel_newest.block`. If I look inside this block I don't really see where tx's are or how I could understand this block in any significant way... the documentation is pretty light on the actual block structure could somebody shed more light on this?

KartikChauhan (Thu, 29 Nov 2018 11:17:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hTPD3PRGFmd2TjpMf) @maxrobot You can run `configtxgen -inspectBlock mychannel_newest.block` to view the content of this file

KartikChauhan (Thu, 29 Nov 2018 11:17:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hTPD3PRGFmd2TjpMf) @maxrobot You can run `configtxgen -inspectBlock mychannel_newest.block` to view the content of this file. For more info you can refer these links https://hyperledger-fabric.readthedocs.io/en/release-1.0/configtxgen.html#reviewing-a-configuration https://blockchain-fabric.blogspot.com/2018/03/hyperledger-fabric-content-of-block-in.html

KartikChauhan (Thu, 29 Nov 2018 11:17:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hTPD3PRGFmd2TjpMf) @maxrobot You can run `configtxgen -inspectBlock mychannel_newest.block` to view the content of this file. For more info you can refer to these links https://hyperledger-fabric.readthedocs.io/en/release-1.0/configtxgen.html#reviewing-a-configuration https://blockchain-fabric.blogspot.com/2018/03/hyperledger-fabric-content-of-block-in.html

KartikChauhan (Thu, 29 Nov 2018 11:22:12 GMT):
Getting error `Error: endorsement failure during invoke. response: status:500 message:"failed to execute transaction error sending: timeout expired while executing transaction`. How can I increase the default timout perios of a transaction?

KartikChauhan (Thu, 29 Nov 2018 11:22:57 GMT):
Getting error `Error: endorsement failure during invoke. response: status:500 message:"failed to execute transaction error sending: timeout expired while executing transaction`. How can I increase the default timout perios of a transaction?

maxrobot (Thu, 29 Nov 2018 11:23:04 GMT):
Ok thanks Kartik :)

gravity (Thu, 29 Nov 2018 11:35:43 GMT):
Hi all I'm trying to store private data during initialization of a chaincode (`Init` function), but I'm getting an error: ``` Failed to handle PUT_STATE. error: collection config not defined for chaincode [common], pass the collection configuration upon chaincode definition/instantiation ``` Does that mean that it is not allowed to put private data in `Init` function?

ajay560 (Thu, 29 Nov 2018 13:04:30 GMT):
I have question related to Channels and Orgs How should I setup Channels and Orgs in Hyperledger Fabric? Description was long, so I asked it on stack Overflow. https://stackoverflow.com/questions/53539603/how-should-i-setup-channels-and-orgs-in-hyperledger-fabric Can somebody help me with this.?

ajay560 (Thu, 29 Nov 2018 13:04:30 GMT):
I have question related to Channels and Orgs How should I setup Channels and Orgs in Hyperledger Fabric? Description was long, so I asked it on stack Overflow. https://stackoverflow.com/questions/53539603/how-should-i-setup-channels-and-orgs-in-hyperledger-fabric Can somebody help me with this.? Edit: You can answer it on stackOverflow also.

dave.enyeart (Thu, 29 Nov 2018 13:05:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y2AF88j49sMaAjRzX) @gravity That's correct. I've added a Jira issue to make this more clear in the message and in the docs: https://jira.hyperledger.org/browse/FAB-13050

gravity (Thu, 29 Nov 2018 13:16:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fbBcrAaEbqLZcNnfA) @dave.enyeart got it, thanks

ArpitKhurana1 (Thu, 29 Nov 2018 13:28:40 GMT):
@dave.enyeart What is the function gencsr doing in fabric ca client, I want to send a public certificate to CA to get it signed. Is it possible?

dave.enyeart (Thu, 29 Nov 2018 13:43:39 GMT):
@ArpitKhurana1 Can you post in #fabric-ca where the CA experts hang out? Thanks!

ArpitKhurana1 (Thu, 29 Nov 2018 13:48:18 GMT):
ok

zorrothefox (Thu, 29 Nov 2018 15:37:16 GMT):
Has joined the channel.

Rajatsharma (Thu, 29 Nov 2018 15:43:11 GMT):
can anyone help me out, I'm getting this error Error: rpc error: code = Unavailable desc = transport is closing while creating a channel

kwakwa (Thu, 29 Nov 2018 16:10:46 GMT):
is there a reason why I can't use the "{" symbol inside the cli ??

mkhraisha (Thu, 29 Nov 2018 17:31:13 GMT):
If every peer has access to the world state and the world state updates on each transaction, cant the peer see what is happening in other channels?

mkhraisha (Thu, 29 Nov 2018 17:31:13 GMT):
If every peer has access to the world state and the world state updates on each transaction, cant the peer see what is happening in other channels by querying the DB that hosts the World State for assets in other channels? or even inspect transactions that are occuring on other channels?

nRyDevOps (Thu, 29 Nov 2018 21:18:26 GMT):
I have a question related to how Fabric handles private data. I am currently going through the tutorial for private data here: https://hyperledger-fabric.readthedocs.io/en/release-1.3/private_data_tutorial.html but I am wondering what Fabric uses for encrypting and securing the private data. Does it use some form of broadcast encryption to keep certain data private from specific members on the network?

yacovm (Thu, 29 Nov 2018 21:42:50 GMT):
no, it doesn't encrypt, @nRyDevOps

yacovm (Thu, 29 Nov 2018 21:43:01 GMT):
at least, it doesn't encrypt the data at rest

yacovm (Thu, 29 Nov 2018 21:43:05 GMT):
only at transit

yacovm (Thu, 29 Nov 2018 21:43:43 GMT):
when the private data is sent, it is encrypted with TLS 1.2 (ECDHE, AES GCM), and the peers that are sent the data, are authenticated via signatures and policies

nRyDevOps (Thu, 29 Nov 2018 21:44:15 GMT):
@yacovm what I mean is does it use some form of the concept of Broadcast Encryption? Meaning, it only encrypts the actually data one time but then encrypts the key multiple times for various end users who should have access to the data.

yacovm (Thu, 29 Nov 2018 21:45:21 GMT):
no.... it hides the keys/values via hashes

yacovm (Thu, 29 Nov 2018 21:45:38 GMT):
the whole point of private data secrecy, is to hide the data in the public block by hashing it

nRyDevOps (Thu, 29 Nov 2018 21:47:16 GMT):
surely the actual data is not stored in the blockchain.

nRyDevOps (Thu, 29 Nov 2018 21:47:24 GMT):
that would be horribly inefficient.

nRyDevOps (Thu, 29 Nov 2018 21:47:46 GMT):
I think that it must only store the cryptographic hashes in the blockchain, or hyperledger in this case.

nRyDevOps (Thu, 29 Nov 2018 21:48:30 GMT):
I have searched the internet far and wide and have not found a single project that actually stores data into the blockchain and every article I have read on the subject clearly states that would be a really bad idea.

nRyDevOps (Thu, 29 Nov 2018 21:49:00 GMT):
@yacovm "the whole point of private data secrecy, is to hide the data in the public block by hashing it" This cannot be correct.

yacovm (Thu, 29 Nov 2018 21:52:57 GMT):
> @yacovm "the whole point of private data secrecy, is to hide the data in the public block by hashing it" This cannot be correct. why?

nRyDevOps (Thu, 29 Nov 2018 21:56:51 GMT):
because you said that the actual data is hidden inside the block and that simply would never work

nRyDevOps (Thu, 29 Nov 2018 21:56:52 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/private-data/private-data.html

yacovm (Thu, 29 Nov 2018 21:56:58 GMT):
lol....

yacovm (Thu, 29 Nov 2018 21:57:05 GMT):
I didn't mean the data is hidden in the block

yacovm (Thu, 29 Nov 2018 21:57:09 GMT):
it is a metaphor

nRyDevOps (Thu, 29 Nov 2018 21:57:23 GMT):
okay well that is what you said, so I got confused.

yacovm (Thu, 29 Nov 2018 21:57:26 GMT):
I am saying, the data is "hidden" behind a hash

nRyDevOps (Thu, 29 Nov 2018 21:57:35 GMT):
I understand that the hash is stored in the block

yacovm (Thu, 29 Nov 2018 21:57:39 GMT):
as a metaphor that means - the hash is used, to hide the data so it cannot be revealed

nRyDevOps (Thu, 29 Nov 2018 21:57:58 GMT):
the hash references that data but the data is only shared with authorized members

nRyDevOps (Thu, 29 Nov 2018 21:58:49 GMT):
My question is more related to how the data is secured?

nRyDevOps (Thu, 29 Nov 2018 21:58:59 GMT):
is the DB encrypted?

nRyDevOps (Thu, 29 Nov 2018 21:59:15 GMT):
and what exactly is the delivery mechanism?

yacovm (Thu, 29 Nov 2018 21:59:18 GMT):
the DB is not encrypted

yacovm (Thu, 29 Nov 2018 21:59:25 GMT):
the delivery mechanism is just sending over the network

nRyDevOps (Thu, 29 Nov 2018 22:00:03 GMT):
okay then if it is using standard network protocols then couldn't that be hacked and the data intercepted during transit?

yacovm (Thu, 29 Nov 2018 22:00:48 GMT):
oh yeah, if your DB is hacked everything is stolen. But, Fabric is a software that implements a distributed ledger. It doesn't do your system administration for you. It secures itself only, not the system it sits on....

nRyDevOps (Thu, 29 Nov 2018 22:01:33 GMT):
I understand that, but I was more wondering how it is secured during transit...during the time it is encrypted?

yacovm (Thu, 29 Nov 2018 22:01:52 GMT):
TLS

yacovm (Thu, 29 Nov 2018 22:02:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sSdwStqwcakZGj938) ^

nRyDevOps (Thu, 29 Nov 2018 22:02:09 GMT):
Okay, so what if a bug for TLS comes about?

yacovm (Thu, 29 Nov 2018 22:03:31 GMT):
A bug is possible, however if that makes you feel any better - Fabric only uses the "most secure" encryption/key exchange algorithms, and it does a full handshake each time (no session keys, etc.) and so far I don't think a vulnerability has been found for the full TLS handshake

yacovm (Thu, 29 Nov 2018 22:03:43 GMT):
of course, if there is a bug in the code.... then you're in trouble

nRyDevOps (Thu, 29 Nov 2018 22:03:46 GMT):
What makes Hyperledger more secure than current solutions? Just saying "because it uses blockchain" is not enough of an explanation.

yacovm (Thu, 29 Nov 2018 22:03:54 GMT):
but I don't understand the question, there can be bugs everywhere

yacovm (Thu, 29 Nov 2018 22:04:10 GMT):
I didn't say "because it uses blockchain" did I ? :)

nRyDevOps (Thu, 29 Nov 2018 22:04:47 GMT):
no but that is what everyone assumes with the whole blockchain craze

nRyDevOps (Thu, 29 Nov 2018 22:05:05 GMT):
BFT and 1/3 network security is not enough

yacovm (Thu, 29 Nov 2018 22:05:21 GMT):
it's just a model....

yacovm (Thu, 29 Nov 2018 22:05:30 GMT):
if the model doesn't fit your use case, pick another model :)

yacovm (Thu, 29 Nov 2018 22:06:06 GMT):
I don't understand where you're going with your arguments

nRyDevOps (Thu, 29 Nov 2018 22:06:13 GMT):
have you seen HashGraph?

nRyDevOps (Thu, 29 Nov 2018 22:06:14 GMT):
https://medium.com/coinmonks/is-blockchain-alternative-hashgraph-really-a-game-changer-a-beginners-guide-a1bdadf959de

yacovm (Thu, 29 Nov 2018 22:06:17 GMT):
yeah

nRyDevOps (Thu, 29 Nov 2018 22:06:59 GMT):
I guess my point is that HashGraph uses asynchronous Byzantine Fault Tolerance.

nRyDevOps (Thu, 29 Nov 2018 22:07:15 GMT):
How does Hyperledger handle the concern that BFT by itself is not enough?

yacovm (Thu, 29 Nov 2018 22:09:19 GMT):
but.... it also has the 1/3 problem thing

nRyDevOps (Thu, 29 Nov 2018 22:10:38 GMT):
I am just trying to wrap my head about it...I listened to a podcast with the founder of HashGraph recently and found this interesting.

nRyDevOps (Thu, 29 Nov 2018 22:10:44 GMT):
from the above medium post:

nRyDevOps (Thu, 29 Nov 2018 22:10:47 GMT):
BFT can be either asynchronous byzantine (aBFT) or partially asynchronous byzantine. Both are mathematically guaranteed, with the difference being the level of assumptions you’re making about your environment. aBFT [as in hashgraph] would assume evil actors exist in the community because they do. However, if you’re making faulty assumptions like there are no botnets in the world, it would be partially Asynchronous BFT — because botnets do exist in the real world. If you start a math proof by assuming there are no botnets in the world, then I’m not really sure what your proof means because you’re living in a fantasy world. Byzantine fault tolerant (BFT) is the conclusion. Asynchronous vs. partially asynchronous byzantine fault tolerant (aBFT) are the assumptions at the beginning. Unlike the other systems, hashgraph is proven to be fully asynchronous byzantine. This means it makes no assumptions about how fast messages are passed over the internet, making it resilient against DDoS attacks, botnets, and firewalls. Hashgraph is mathematically guaranteed to reach consensus and be secure as long as less than one-third of participants are malicious (which is something that must always be assumed for DLT).

yacovm (Thu, 29 Nov 2018 22:11:09 GMT):
you should find a peer reviewed academic paper about hash graph

nRyDevOps (Thu, 29 Nov 2018 22:11:19 GMT):
so I guess that all other systems make assumptions where aBFT does not.

nRyDevOps (Thu, 29 Nov 2018 22:11:28 GMT):
that is a good idea

yacovm (Thu, 29 Nov 2018 22:11:28 GMT):
listening to podcasts has bias in it, from obvious reasons

yacovm (Thu, 29 Nov 2018 22:11:41 GMT):
there is Honey Badger BFT

nRyDevOps (Thu, 29 Nov 2018 22:12:09 GMT):
yes, but how does HyperLedger address aBFT vs. non asynchronous BFT?

nRyDevOps (Thu, 29 Nov 2018 22:12:24 GMT):
how does it handle botnets and stuff like that?

yacovm (Thu, 29 Nov 2018 22:12:26 GMT):
https://eprint.iacr.org/2016/199.pdf

yacovm (Thu, 29 Nov 2018 22:13:11 GMT):
if botnets is a concern to you then you are using Fabric wrong, I'm sorry to say that

yacovm (Thu, 29 Nov 2018 22:13:31 GMT):
you need to protect your system with conventional firewalls, etc.

nRyDevOps (Thu, 29 Nov 2018 22:13:57 GMT):
Interesting since Dr. Leemon claimed that HashGraph is the only fully asynchronous BFT ledger system that exists right now.

nRyDevOps (Thu, 29 Nov 2018 22:14:26 GMT):
I am not saying botnets are a concern to me, but timing is.

yacovm (Thu, 29 Nov 2018 22:15:34 GMT):
you can read the paper and decide for yourself

nRyDevOps (Thu, 29 Nov 2018 22:17:16 GMT):
is it possible with hyperledger to have completely separate networks that are NEVER connected to one another; yet to share data between them at random times?

nRyDevOps (Thu, 29 Nov 2018 22:18:39 GMT):
in this theoretical scenario I am trying to solve, the networks would be completely in silo from one another and they will never connect...not even to share data. The data is transferred using more of an FTP dump type method.

waxer (Fri, 30 Nov 2018 00:28:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cSLCesu8zZtdpXyyH) @nRyDevOps Make a third actor connect to both and do it?

waxer (Fri, 30 Nov 2018 00:28:40 GMT):
I'm not even sure why you did that question btw.

ShobhitSrivastava (Fri, 30 Nov 2018 05:10:22 GMT):
hi Everyone ``` I am facing issue from few days in getting images of hyperledger fabric 1.3, has anyone faced it too? ``` *error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/1d/1d3266e01e642210566110ca1fe5317b2e802a9f0349cecd8f13ff60eb863e86/data?verify=1543496987-F7xImgyE4OdUlpgfnh87JSBGZz4=: dial tcp: lookup production.cloudflare.docker.com: no such host

ShobhitSrivastava (Fri, 30 Nov 2018 05:10:22 GMT):
hi Everyone ``` I am facing issue from few days in getting images of hyperledger fabric 1.3, has anyone faced it too? ``` *error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/1d/1d3266e01e642210566110ca1fe5317b2e802a9f0349cecd8f13ff60eb863e86/data?verify=1543496987-F7xImgyE4OdUlpgfnh87JSBGZz4=: dial tcp: lookup production.cloudflare.docker.com: no such host

ShobhitSrivastava (Fri, 30 Nov 2018 05:11:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aFYJK896tbTnj2oFg) Adding @yacovm . Please check this

NursultanMakhanov (Fri, 30 Nov 2018 08:26:51 GMT):
Hello all, I cloned github folder of fabric-sample and could not find "commercial paper" folder, is it ok to not find it there?

Msaleh97 (Fri, 30 Nov 2018 08:39:20 GMT):
Hi, I know that both the GetHistoryForKey and getQueryResult functions aren't supported by mockstub for unit testing. Do you guys have any recommendations on how I can get around it? I'm trying to hit 90% code coverage and those two functions are stopping from reaching my goal.

maxrobot (Fri, 30 Nov 2018 08:44:21 GMT):
Hi I am wondering how I can take a block e.g. `peer channel fetch newest` and verify that somebody valid created this block using the certificate authorities?

maxrobot (Fri, 30 Nov 2018 08:44:43 GMT):
Additionally does hyperledger use base64 encoding?

StefanKosc (Fri, 30 Nov 2018 08:57:29 GMT):
Hi, I have a general question about network design. Let's assume that I have one channel with two organisations in it. Is it possible that each of organisations hosts its own orderer?

maxrobot (Fri, 30 Nov 2018 09:01:19 GMT):
I believe so - https://hyperledger-fabric.readthedocs.io/en/release-1.3/network/network.html#creating-the-network here it seems to imply that for the simple example network they have assigned one orderer but as the network grows more could be added.

me_abhijeet (Fri, 30 Nov 2018 09:06:34 GMT):
I am seeing this while i am trying to up the network in byfn:

me_abhijeet (Fri, 30 Nov 2018 09:06:34 GMT):
I am seeing this while i am trying to up the network in byfn: Error: error getting chaincode code mycc: path to chaincode does not exist: /opt/gopath/src/github.com/chaincode/chaincode_example02/go !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

maxrobot (Fri, 30 Nov 2018 09:07:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g3svvaJL8399wbAKQ) @me_abhijeet can you supply the commands you entered? Was this for the build you first network example?

me_abhijeet (Fri, 30 Nov 2018 09:09:39 GMT):
yes i used: "./byfn.sh up" it was working fine previously but now i am seeing this

me_abhijeet (Fri, 30 Nov 2018 09:11:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nsnurJfrvGWezb3wN) @maxrobot Is the code actually does not exists on github or there is some issue with go

maxrobot (Fri, 30 Nov 2018 09:11:15 GMT):
If you have previously done this the I suggest you first remove the network `./byfn.sh down`

maxrobot (Fri, 30 Nov 2018 09:11:44 GMT):
no I do not think this is a problem with github the script is doing a load of magic that abstracts those things

me_abhijeet (Fri, 30 Nov 2018 09:12:14 GMT):
i removed network and containers but still same issue

maxrobot (Fri, 30 Nov 2018 09:13:01 GMT):
also try to remove all the docker craps i.e.: `docker stop $(docker ps -a -q)` `docker rm $(docker ps -a -q)` `docker network prune`

me_abhijeet (Fri, 30 Nov 2018 09:15:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YdA9QFGeuTcNjZzKk) @maxrobot still same issue

me_abhijeet (Fri, 30 Nov 2018 09:16:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YdA9QFGeuTcNjZzKk) @maxrobot but now the error is not same 2018-11-30 09:14:20.159 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

prince.sinha (Fri, 30 Nov 2018 09:29:56 GMT):
Has joined the channel.

StefanKosc (Fri, 30 Nov 2018 09:47:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RmAb57fXpr9HGwfnL) @maxrobot thanks for response, do you know where I can find more information?

Rajatsharma (Fri, 30 Nov 2018 09:52:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pi52TtJnDotr7H2oW) @me_abhijeet try docker volume prune too

me_abhijeet (Fri, 30 Nov 2018 09:54:01 GMT):
yup... i did that too, i think the issue is with the chain-code file

Rajatsharma (Fri, 30 Nov 2018 09:55:07 GMT):
And try one more thing in the docker-compose change the CORE_PEER_MSPCONFIGPATH to Admin and mount that directory too and try again

Rajatsharma (Fri, 30 Nov 2018 09:55:30 GMT):
These are the things that worked for me

hrajput1994 (Fri, 30 Nov 2018 09:57:44 GMT):
Has joined the channel.

hrajput1994 (Fri, 30 Nov 2018 09:58:03 GMT):
how can i deploy my own chain code to fabcar demo ?

me_abhijeet (Fri, 30 Nov 2018 10:00:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uzvbi8TgEbtoMg34K) @Rajatsharma thanks for your response actually the was with the permissions in chain-code

Rajatsharma (Fri, 30 Nov 2018 10:02:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sB23tv28TbDMLhnYr) @me_abhijeet No problems mate.

me_abhijeet (Fri, 30 Nov 2018 10:04:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kai6yJ59FSmrJWyoc) @Rajatsharma are you worked with multi-host system for multiple organization

me_abhijeet (Fri, 30 Nov 2018 10:04:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kai6yJ59FSmrJWyoc) @Rajatsharma have you worked with multi-host system for multiple organization

Rajatsharma (Fri, 30 Nov 2018 10:05:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PFHccj8gANxQ55Dn4) @me_abhijeet Yes

sheetal-hlf (Fri, 30 Nov 2018 10:06:50 GMT):
Hi, how to retrieve existing state-based EP for a given key using KeyEndorsementPolicy interface?

Vikaskr08 (Fri, 30 Nov 2018 10:07:34 GMT):
Has joined the channel.

Vikaskr08 (Fri, 30 Nov 2018 10:09:07 GMT):
I am deploying for fabric on kubernetes , postgres is created but its not getting connected

sheetal-hlf (Fri, 30 Nov 2018 10:10:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=we4xE8u2AYFsu4Tes) its GetStateValidationParameter from shim; I was looking at wrong place

taran-a (Fri, 30 Nov 2018 10:11:17 GMT):
Has joined the channel.

Vikaskr08 (Fri, 30 Nov 2018 10:11:26 GMT):
I am following hithhicks tutorials

me_abhijeet (Fri, 30 Nov 2018 10:12:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TndLD4MwubzuvPBs2) @Vikaskr08 can you give me the link

Vikaskr08 (Fri, 30 Nov 2018 10:13:35 GMT):
https://www.youtube.com/watch?v=hZtCIFUxgFc

Vikaskr08 (Fri, 30 Nov 2018 10:13:47 GMT):
@me_abhijeet https://www.youtube.com/watch?v=hZtCIFUxgFc

Vikaskr08 (Fri, 30 Nov 2018 10:16:42 GMT):
Someone please share latest guide throught the process of deployment of HLF on kubernetes clustures

me_abhijeet (Fri, 30 Nov 2018 10:17:06 GMT):
have you tried docker swarm?

me_abhijeet (Fri, 30 Nov 2018 10:17:47 GMT):
i think it will be easy to go with docker swarm

Vikaskr08 (Fri, 30 Nov 2018 10:18:10 GMT):
no i have kubernetes up and running postgresql also is created its just that i am not getting connected to

me_abhijeet (Fri, 30 Nov 2018 10:19:11 GMT):
i am working with docker swarm and think now it will be wrong choice to go with kubernetes for me

Vikaskr08 (Fri, 30 Nov 2018 10:20:15 GMT):
@me_abhijeet Mate please share resources whivh you recommend on latest deployment details .

me_abhijeet (Fri, 30 Nov 2018 10:20:42 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

me_abhijeet (Fri, 30 Nov 2018 10:20:51 GMT):
you can check it

Vikaskr08 (Fri, 30 Nov 2018 10:22:56 GMT):
thanks mate

DattaPatil (Fri, 30 Nov 2018 10:38:47 GMT):
Hi All, Does anyone have any idea about this. error recoveryParam: 1 } error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7050 error: [Orderer.js]: Orderer grpcs://localhost:7050 has an error Error: Failed to connect before the deadline URL:grpcs://localhost:7050 [2018-11-30 16:04:34.342] [ERROR] Create-Channel - Error: Failed to connect before the deadline URL:grpcs://localhost:7050 at checkState (/home/djadhav/Desktop/new-balance-transfer/ncb-2.0-app/node_modules/grpc/src/client.js:720:16) (node:28847) UnhandledPromiseRejectionWarning: Error: Failed to initialize the channel: Error: Failed to connect before the deadline URL:grpcs://localhost:7050 at Object.createChannel (/home/Mydeskto/Desktop/new-balance-transfer/balance-2.0-app/app/create-channel.js:64:9) at at process._tickCallback (internal/process/next_tick.js:189:7) (node:28847) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:28847) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

DattaPatil (Fri, 30 Nov 2018 10:40:16 GMT):
Here i have added the multiple peers(5 peers) in balance-transfer example but its failing while creating the channel

maxrobot (Fri, 30 Nov 2018 10:40:18 GMT):
does anybody know how to recover the signers certificate from the signature of a block or transaction?

KartikChauhan (Fri, 30 Nov 2018 11:11:56 GMT):
How can I get the transaction id of the recently created transaction?

KartikChauhan (Fri, 30 Nov 2018 11:14:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QQJWLTBGc3k3Y847v) @halilkalkan Could you tell more about this feature or share any links which I can go through to get more info? Another question How can we see transaction and block history using cli tools?

halilkalkan (Fri, 30 Nov 2018 11:17:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qpm8hJeeNJJRSkaft) @KartikChauhan Sure, I was mentioning this feature but currently I don't use composer due to lack of features https://hyperledger.github.io/composer/latest/reference/historian.html

FLASHJr (Fri, 30 Nov 2018 11:48:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rx2RYkH8BjW6qBrug) ?? @HasnatAhmed

FLASHJr (Fri, 30 Nov 2018 11:49:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rx2RYkH8BjW6qBrug) Anybody? Please help.. @HasnatAhmed

futrax (Fri, 30 Nov 2018 12:24:45 GMT):
Has joined the channel.

strogen (Fri, 30 Nov 2018 13:00:58 GMT):
Has joined the channel.

strogen (Fri, 30 Nov 2018 13:09:22 GMT):
Hi All, can you help me to understand. In my chaincode 'cc1' i have some method 'get'. When i try to call this from fabric client, i receive result (for example "8756fe648806bb1e5dd4c7ce7cc68e641e8d4e67". But when i call this from another chaincode 'cc1' in same channel (is name 'mainchannel') i receive something like �*"8756fe648806bb1e5dd4c7ce7cc68e641e8d4e67""@f65b9c6ae3b0a3be274ece3d4cda035996b5e34245f97818e22e41407ff584e7:mainchannel

KartikChauhan (Fri, 30 Nov 2018 13:11:46 GMT):
Can anyone tell how many transactions does a block stores? What's the maximum limit and where do we specify the configuration for it?

strogen (Fri, 30 Nov 2018 13:18:54 GMT):
https://github.com/hyperledger/fabric-test/blob/master/tools/NL/configtx.yaml-in

strogen (Fri, 30 Nov 2018 13:18:59 GMT):
line 92

strogen (Fri, 30 Nov 2018 13:18:59 GMT):
line 89

strogen (Fri, 30 Nov 2018 13:22:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E8kNXd64D6agcyiXB) @KartikChauhan https://github.com/hyperledger/fabric-test/blob/master/tools/NL/configtx.yaml-in line 89

prakash04 (Fri, 30 Nov 2018 13:41:55 GMT):
Has joined the channel.

adamhardie (Fri, 30 Nov 2018 13:52:59 GMT):
hello, is there a tutorial available to help me switch an existing HLF network from a solo orderer to a kafka cluster please?

KvdB (Fri, 30 Nov 2018 14:42:07 GMT):
Has joined the channel.

cbf (Fri, 30 Nov 2018 14:42:49 GMT):
no, we haven't one like that

cbf (Fri, 30 Nov 2018 14:43:14 GMT):
really you're talking about a new ordering service for a new set of channels though

cbf (Fri, 30 Nov 2018 14:43:33 GMT):
eg just stand up the kafka orderer and start new channels on that

KvdB (Fri, 30 Nov 2018 14:43:49 GMT):
Hi, currently doing a project for educational purposes where I want to use Fabric for. However, the installation I followed from the EDX course isn't working. Keep getting the error "Cannot connect to the Docker daemon" after running ./downloadFabric.sh

cbf (Fri, 30 Nov 2018 14:44:04 GMT):
you can reuse the peers you had etc, but you'll need to create all new channels

adamhardie (Fri, 30 Nov 2018 14:45:22 GMT):
that makes sense!

adamhardie (Fri, 30 Nov 2018 14:45:24 GMT):
thanks

adamhardie (Fri, 30 Nov 2018 15:16:25 GMT):
will i have problems if the genesis block is set to solo orderer here ?

mkhraisha (Fri, 30 Nov 2018 15:56:15 GMT):
If every peer has access to the world state and the world state updates on each transaction, cant the peer see what is happening in other channels by querying the DB that hosts the World State for assets in other channels? or even inspect transactions that are occuring on other channels?

nRyDevOps (Fri, 30 Nov 2018 16:18:15 GMT):
hello, I am going through the Private Data tutorial located here: https://hyperledger-fabric.readthedocs.io/en/release-1.3/private_data_tutorial.html

nRyDevOps (Fri, 30 Nov 2018 16:18:53 GMT):
for some reason when I try to run: cd fabric-samples/first-network ./byfn.sh down and then: ./byfn.sh up -c mychannel -s couchdb

nRyDevOps (Fri, 30 Nov 2018 16:19:23 GMT):
I am getting an error: Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-11-30 15:58:07.276 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

nRyDevOps (Fri, 30 Nov 2018 16:19:47 GMT):
I do have docker containers running but wondering if I should continue with this error or try to fix it.

nRyDevOps (Fri, 30 Nov 2018 16:22:15 GMT):
When I do try to continue with the steps in the tutorial docs I get: docker exec -it cli bash root@ed34fa50b84e:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n marblesp -v 1.0 -p github.com/chaincode/marbles02_private/go/ 2018-11-30 16:21:46.917 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist

YanLIU0822 (Fri, 30 Nov 2018 16:43:40 GMT):
hey can someone help me out of this issue configtxgen -profile OrgsOrdererGenesis -outputBlock ./channel-artifacts/orderer.genesis.block 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-01 00:41:50.549 CST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context panic: Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context [recovered] panic: Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7e30, 0xc42042c500, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc42042c4f0) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7c80, 0xc42048aae0, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffeb85ec15c, 0x12, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7

YanLIU0822 (Fri, 30 Nov 2018 16:43:40 GMT):
hey can someone help me out of this issue configtxgen -profile OrgsOrdererGenesis -outputBlock ./channel-artifacts/orderer.genesis.block 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-01 00:41:50.549 CST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context 2018-12-01 00:41:50.549 CST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context panic: Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context [recovered] panic: Error reading configuration: While parsing config: yaml: line 5: mapping values are not allowed in this context goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7e30, 0xc42042c500, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc42042c4f0) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c7c80, 0xc42048aae0, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffeb85ec15c, 0x12, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7 Organizations: // orderer节点配置信息 - &OrdererOrg // orderer节点名称 Name: OrdererOrg // orderer节点编号 ID: OrdererMSP // msp文件夹路径 MSPDir: crypto-config/ordererOrganization/sdfarm.com/msp // orderer节点中包含的组织 - &sd_org1 Name: SdOrg1MSP ID: SdOrg1MSP MSPDir: crypto-config/peerOrganization/org1.sdfarm.com/msp AnchorPeers: - Host: peer0.org1.sdfarm.com Port: 7051 - &sd_org2 Name: SdOrg2MSP ID: SdOrg2MSP MSPDir: crypto-config/peerOrganization/org2.sdfarm.com/msp AnchorPeers: - Host: peer0.org2.sdfarm.com Port: 7051 - &sd_org3 Name: SdOrg3MSP ID: SdOrg3MSP MSPDir: crypto-config/peerOrganization/org3.sdfarm.com/msp AnchorPeers: - Host: peer0.org3.sdfarm.com Port: 7051 - &sd_org4 Name: SdOrg4MSP ID: SdOrg4MSP MSPDir: crypto-config/peerOrganization/org4.sdfarm.com/msp AnchorPeers: - Host: peer0.org4.sdfarm.com Port: 7051 - &sd_org5 Name: SdOrg5MSP ID: SdOrg5MSP MSPDir: crypto-config/peerOrganization/org5.sdfarm.com/msp AnchorPeers: - Host: peer0.org5.sdfarm.com Port: 7051 - &sd_org6 Name: SdOrg6MSP ID: SdOrg6MSP MSPDir: crypto-config/peerOrganization/org6.sdfarm.com/msp AnchorPeers: - Host: peer0.org6.sdfarm.com Port: 7051 Orderer: &OrdererDefaults // orderer节点共识算法 OrdererType: solo // orderer节点监听地址 Addresses: - orderer.sdfarm.com:7050 BatchTimeout: 2s // 距离上次区块等待的时间 BatchSize: MaxMessageCount: 100 // 批处理的最大消息数量 AbsoluteMaxBytes: 32MB // 区块大小的上限 PreferredMaxBytes: 512KB Organizations: Applications: &ApplicationDefaults Organizations: Profiles: // 组织定义表示符 OrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg // 定义系统中包含的组织 Consortiums: SampleConsortium: Organizations: - *sd_org1 - *sd_org2 - *sd_org3 - *sd_org4 - *sd_org5 - *sd_org6 // 通道定义标识符 OrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *sd_org1 - *sd_org2 - *sd_org3 - *sd_org4 - *sd_org5 - *sd_org6

nRyDevOps (Fri, 30 Nov 2018 20:24:47 GMT):
What would you say is a good EC2 instances size to start out with for running this environment?

nRyDevOps (Fri, 30 Nov 2018 20:24:57 GMT):
https://github.com/feitnomore/hyperledger-fabric-kubernetes

nRyDevOps (Fri, 30 Nov 2018 20:25:24 GMT):
I want to play around with it in an EC2 VPC with multiple instances and wondering what sort of resources I will need.

nRyDevOps (Fri, 30 Nov 2018 20:27:02 GMT):
Also, can I swap out CouchDB for something like Postgres etc?

nRyDevOps (Fri, 30 Nov 2018 20:27:27 GMT):
I have a requirement to use specific DB's such as Postgres and SQL based DB's.

yacovm (Fri, 30 Nov 2018 21:32:56 GMT):
> Also, can I swap out CouchDB for something like Postgres etc? not officially... there was work that someone did to connect fabric to postgres but I don't know how much production ready it is.

nRyDevOps (Fri, 30 Nov 2018 21:46:24 GMT):
@yacovm so right now is the only way to use Hyperledger to use it with CouchDB?

yacovm (Fri, 30 Nov 2018 21:57:46 GMT):
or golevelDB

nRyDevOps (Fri, 30 Nov 2018 21:59:34 GMT):
okay thanks for confirming

rsoeldner (Fri, 30 Nov 2018 22:10:01 GMT):
Has joined the channel.

nRyDevOps (Fri, 30 Nov 2018 22:39:10 GMT):
Can Hyperledger Fabric support MongoDB instead of CouchDB/LevelDB? ;-)

nRyDevOps (Fri, 30 Nov 2018 22:41:59 GMT):
or Cassandra?

nRyDevOps (Fri, 30 Nov 2018 22:46:13 GMT):
also is it possible to implement support for HBase, Cassandra, or Mongo with Node. I am not able to use Go as part of a customer requirement so I have to use either Node or Java. It appears that there is a Mongo effort but via Go: https://jira.hyperledger.org/browse/FAB-6263

YanLIU0822 (Sat, 01 Dec 2018 02:22:18 GMT):
hey someone can help me out configtxgen -profile OrgsOrdererGenesis -outputBlock ./channel-artifacts/orderer.genesis.block 2018-12-01 10:18:30.182 CST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-12-01 10:18:30.182 CST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-01 10:18:30.186 CST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: applications 2018-12-01 10:18:30.186 CST [common/tools/configtxgen] func1 -> CRIT 004 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: applications panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: applications [recovered] panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: applications goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c5e00, 0xc4204f1200, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc4204f11f0) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201c5c50, 0xc4204f2840, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffff619715c, 0x12, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:284 +0x607 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7 the configtx.yaml attached as follows

YanLIU0822 (Sat, 01 Dec 2018 02:22:24 GMT):
# 初始区块的配置信息 Organizations: # orderer节点配置信息 - &OrdererOrg # orderer节点名称 Name: OrdererOrg # orderer节点编号 ID: OrdererMSP # msp文件夹路径 MSPDir: crypto-config/ordererOrganization/sdfarm.com/msp # orderer节点中包含的组织 - &sd_org1 Name: SdOrg1MSP ID: SdOrg1MSP MSPDir: crypto-config/peerOrganization/org1.sdfarm.com/msp AnchorPeers: - Host: peer0.org1.sdfarm.com Port: 7051 - &sd_org2 Name: SdOrg2MSP ID: SdOrg2MSP MSPDir: crypto-config/peerOrganization/org2.sdfarm.com/msp AnchorPeers: - Host: peer0.org2.sdfarm.com Port: 7051 - &sd_org3 Name: SdOrg3MSP ID: SdOrg3MSP MSPDir: crypto-config/peerOrganization/org3.sdfarm.com/msp AnchorPeers: - Host: peer0.org3.sdfarm.com Port: 7051 - &sd_org4 Name: SdOrg4MSP ID: SdOrg4MSP MSPDir: crypto-config/peerOrganization/org4.sdfarm.com/msp AnchorPeers: - Host: peer0.org4.sdfarm.com Port: 7051 - &sd_org5 Name: SdOrg5MSP ID: SdOrg5MSP MSPDir: crypto-config/peerOrganization/org5.sdfarm.com/msp AnchorPeers: - Host: peer0.org5.sdfarm.com Port: 7051 - &sd_org6 Name: SdOrg6MSP ID: SdOrg6MSP MSPDir: crypto-config/peerOrganization/org6.sdfarm.com/msp AnchorPeers: - Host: peer0.org6.sdfarm.com Port: 7051 Orderer: &OrdererDefaults # orderer节点共识算法 OrdererType: solo # orderer节点监听地址 Addresses: - orderer.sdfarm.com:7050 BatchTimeout: 2s # 距离上次区块等待的时间 BatchSize: MaxMessageCount: 100 # 批处理的最大消息数量 AbsoluteMaxBytes: 32MB # 区块大小的上限 PreferredMaxBytes: 512KB Kafka: Brokers: - 127.0.0.1:9092 Organizations: Application: &ApplicationDefaults Organizations: Profiles: # 组织定义表示符 OrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg # 定义系统中包含的组织 Consortiums: SampleConsortium: Organizations: - *sd_org1 - *sd_org2 - *sd_org3 - *sd_org4 - *sd_org5 - *sd_org6 # 通道定义标识符 OrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *sd_org1 - *sd_org2 - *sd_org3 - *sd_org4 - *sd_org5 - *sd_org6

rsoeldner (Sat, 01 Dec 2018 04:51:21 GMT):
Good afternoon, first time composer user.Is it possible to receive a list of all participants / identities (public key) ? I want to encrypt a tx with this key.

MurugesanRathinam (Sat, 01 Dec 2018 08:32:57 GMT):
Has joined the channel.

MurugesanRathinam (Sat, 01 Dec 2018 08:33:05 GMT):
Hi all

MurugesanRathinam (Sat, 01 Dec 2018 08:33:40 GMT):
Good afternoon

MurugesanRathinam (Sat, 01 Dec 2018 08:34:31 GMT):
In fabric how chain-code versioning working internally?

tuckerg (Sat, 01 Dec 2018 13:41:23 GMT):
Has joined the channel.

ArpitKhurana1 (Sat, 01 Dec 2018 14:13:36 GMT):
Hi all, I have a question, does the orderer saves ledger of all the channels? ( or what things the orderer store.) My question is related to endorsements verified by the orderer. Lets say two transactions came from same world state on same data. How does the orderer verify the consistency and reject the later one, does it have a copy of ledger, or does it asks the peers. In this article(https://hyperledger-fabric.readthedocs.io/en/release-1.3/readwrite.html) I suppose, the committer is the orderer,

NursultanMakhanov (Sat, 01 Dec 2018 15:57:24 GMT):
Guys, where is the "commercial paper" tutorial? I cloned the github repo and couldn't find it.

ArpitKhurana1 (Sun, 02 Dec 2018 08:46:03 GMT):
In the guide https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html There is no step to set the anchor peer,

ArpitKhurana1 (Sun, 02 Dec 2018 08:46:15 GMT):
THe command configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json does not generate anchor peer configuration

ArpitKhurana1 (Sun, 02 Dec 2018 08:46:21 GMT):
Am I missing something?

sine99 (Sun, 02 Dec 2018 12:33:01 GMT):
I am new to this technology. I want to know how are invalid transactions removed ?

nikusha (Sun, 02 Dec 2018 12:50:20 GMT):
Has joined the channel.

nikusha (Sun, 02 Dec 2018 12:50:47 GMT):
the thing is I have fabric-ca admin (bootstraped) user. then I use this admin to create channel. It worked like a charm. but when I want to join the channel, this admin doesn't work anymore. WHy did it let me to create channel with fabric-ca admin and not let me to join the channel with this admin?

nikusha (Sun, 02 Dec 2018 12:51:02 GMT):
from node sdk

mastersingh24 (Sun, 02 Dec 2018 12:57:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gndH6Pw6v6T4pr9Zp) @sine99 They are not removed ... invalid transactions will still be stored on the ledger but their associated state changes will not be processed. All blocks contain annotated metadata which marks invalid transactions

mastersingh24 (Sun, 02 Dec 2018 12:59:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rnGgBTnBaZtsm49H7) @nikusha Join channel is an administrative operation on the peer ... the public certificate of any admin must be in the "admincerts" folder of the peer's local MSP

nikusha (Sun, 02 Dec 2018 13:07:16 GMT):
@mastersingh24 thanks for answer. So when I am using cryptogen tool to generate crypto materials for network, it will automatically creates Admin user for organization, and puts it's public certificate to peer

nikusha (Sun, 02 Dec 2018 13:17:02 GMT):
@mastersingh24 thanks for answer. So when I am using cryptogen tool to generate crypto materials for network, it will automatically creates Admin user for organization, and puts it's public certificate in peers msp/admincers forlder. So when i need to join channel from sdk, and if i use this admin i will successfully join to channel, but what should I do if I don't want to use cryptogen's admin, and I want to use for example, organization's boostraped admin. Should i go and copy this admin's cert in peer's msp/admincerts forlder? or is there any other way ?

mastersingh24 (Sun, 02 Dec 2018 13:42:10 GMT):
Correct ... you need to copy it into the peer's msp/admincerts folder

dave.enyeart (Sun, 02 Dec 2018 13:43:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8LJZTdXRPTg3wPgXH) @ArpitKhurana1 Agreed, the tutorial should include anchor peer setup for Org3... I've created a Jira, feel free to continue the discussion in there: Adding an Org to a Channel tutorial should include Org3 anchor peer

dave.enyeart (Sun, 02 Dec 2018 13:43:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8LJZTdXRPTg3wPgXH) @ArpitKhurana1 Agreed, the tutorial should include anchor peer setup for Org3... I've created a Jira, feel free to continue the discussion in there: https://jira.hyperledger.org/browse/FAB-13096

dave.enyeart (Sun, 02 Dec 2018 13:45:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XcjdquvRHubupG78t) @NursultanMakhanov Commercial paper sample is in master of fabric-samples: https://github.com/hyperledger/fabric-samples/tree/master/commercial-paper and tutorial doc is at https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

dave.enyeart (Sun, 02 Dec 2018 13:48:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hkmybon2pv24Hek3Z) @ArpitKhurana1 Orderer does save the blockchain (but not state database). However orderer does not perform these validations. Validations are performed by the peers who validate/commit the blocks they receive from orderer. See the docs on transaction flow doc https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html and for more details https://hyperledger-fabric.readthedocs.io/en/latest/peers/peers.html#phase-2-packaging

dave.enyeart (Sun, 02 Dec 2018 13:48:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hkmybon2pv24Hek3Z) @ArpitKhurana1 Orderer does save the blockchain (but not state database). However orderer does not perform these validations. Validations are performed by the peers who validate/commit the blocks they receive from orderer. See the transaction flow doc https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html and for more details https://hyperledger-fabric.readthedocs.io/en/latest/peers/peers.html#phase-2-packaging

nikusha (Sun, 02 Dec 2018 14:04:43 GMT):
@mastersingh24 Does user needs different privileges to create channel or to join channel from sdk. For example, what kind of user can create channel and can't join channel? In my example, when I enroll organization-ca bootstraped user from sdk

cppchedy (Sun, 02 Dec 2018 14:07:47 GMT):
Has joined the channel.

nikusha (Sun, 02 Dec 2018 14:09:16 GMT):
@mastersingh24 Does user needs different privileges to create channel or to join channel from sdk. For example, what kind of user can create channel and can't join channel?

nikusha (Sun, 02 Dec 2018 14:11:45 GMT):
Do user needs different privileges to create channel or to join channel ? for example in which case user can make create channel request from sdk, but can't make join request ?

nikusha (Sun, 02 Dec 2018 14:11:45 GMT):
Do user needs different privileges to create channel or to join channel ? for example in which case user can make create channel request from sdk, but can't make join channel request ?

ArpitKhurana1 (Sun, 02 Dec 2018 14:20:38 GMT):
Thanks for the answers @dave.enyeart . I have more questions related to second question . 1. Does orderer maintain common ledger for all channels, or separate.

ArpitKhurana1 (Sun, 02 Dec 2018 14:21:01 GMT):
2. How will this setup behave in case of multiple orderers

sourav (Sun, 02 Dec 2018 14:21:06 GMT):
Has joined the channel.

ArpitKhurana1 (Sun, 02 Dec 2018 14:21:33 GMT):
3. Can orderer see the information inside those blocks?

ArpitKhurana1 (Sun, 02 Dec 2018 14:24:10 GMT):
4. What makes organisations trust the orderer organisation with their data

ArpitKhurana1 (Sun, 02 Dec 2018 14:26:08 GMT):
5. In case new peers comes up which cannot gossip, it goes to orderer for the ledger blocks, if i am not wrong, How will it get only the validated blocks from orderer

dave.enyeart (Sun, 02 Dec 2018 14:27:51 GMT):
1 and 2. Each orderer maintains a blockchain ledger for the channels that it is responsible for. 3. Orderer does not look at the content of the transactions, but the content does pass through orderer. If you want to completely hide the content, use the private data feature where the keys/values are sent peer-to-peer and only a hash of the data goes in the blocks and through orderer: https://hyperledger-fabric.readthedocs.io/en/release-1.3/private-data/private-data.html 4. Ordering nodes are often from trusted organizations. If you want untrusted organizations to host ordering nodes, then use the private data feature. 5. Again, orderer does not perform validation. Each peer that receives blocks from orderer does their own (deterministic) validation of the blocks. Please, read the Key Concepts documents before asking more questions :) https://hyperledger-fabric.readthedocs.io/en/release-1.3/key_concepts.html

dave.enyeart (Sun, 02 Dec 2018 14:27:51 GMT):
1 and 2. Each orderer maintains a separate blockchain ledger for each of the channels that it is responsible for. 3. Orderer does not look at the content of the transactions, but the content does pass through orderer. If you want to completely hide the content, use the private data feature where the keys/values are sent peer-to-peer and only a hash of the data goes in the blocks and through orderer: https://hyperledger-fabric.readthedocs.io/en/release-1.3/private-data/private-data.html 4. Ordering nodes are often from trusted organizations. If you want untrusted organizations to host ordering nodes, then use the private data feature. 5. Again, orderer does not perform validation. Each peer that receives blocks from orderer does their own (deterministic) validation of the blocks. Please, read the Key Concepts documents before asking more questions :) https://hyperledger-fabric.readthedocs.io/en/release-1.3/key_concepts.html

ArpitKhurana1 (Sun, 02 Dec 2018 14:29:49 GMT):
Thanks @dave.enyeart

ArpitKhurana1 (Sun, 02 Dec 2018 14:43:46 GMT):
Okay I agree many questions looked obvious after the moment i asked them :), but i am still not satisfied with the second question, In a multi orderer node configuration, If i create a channel using one orderer node. Is the information shared to other orderers also

ArpitKhurana1 (Sun, 02 Dec 2018 14:49:27 GMT):
I am pretty sure that this is not present in the key concepts or operation guides

dave.enyeart (Sun, 02 Dec 2018 14:57:07 GMT):
@ArpitKhurana1 Yes orderers work together to maintain the channel, and you only need to create it once. I think you are right, the doc may not directly discuss this. I believe a dedicated orderer key concept is being created. Could I ask you to post to #fabric-orderer about how the channel management across ordering nodes works exactly, and whether there is existing doc for this. Some answers are here: https://hyperledger-fabric.readthedocs.io/en/latest/configtx.html#orderer-system-channel-configuration but I don't think everything you are looking for is there.

ArpitKhurana1 (Sun, 02 Dec 2018 14:59:26 GMT):
Yeah okay

NursultanMakhanov (Sun, 02 Dec 2018 15:58:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jJEdkRd8SnHTxCgLP) @dave.enyeart thank you for help

stewartf (Sun, 02 Dec 2018 16:38:49 GMT):
Has joined the channel.

sine99 (Sun, 02 Dec 2018 17:02:35 GMT):
can somebody explain when transactions are sent from peer nodes to orderer nodes, how are these transactions arranged into a block and all orderer nodes come to a consensus to select a common block. How does atomic broaadcast play a role here ?... Thank you

mastersingh24 (Sun, 02 Dec 2018 18:41:08 GMT):
@sine99 - have you read through https://hyperledger-fabric.readthedocs.io/en/release-1.3/txflow.html ?

sine99 (Mon, 03 Dec 2018 01:30:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dF3kCqD6RuFvWc4dy) @mastersingh24 Thanks

sine99 (Mon, 03 Dec 2018 01:31:54 GMT):

Clipboard - December 3, 2018 7:01 AM

sine99 (Mon, 03 Dec 2018 01:31:54 GMT):

Clipboard - December 3, 2018 7:01 AM

sine99 (Mon, 03 Dec 2018 01:31:54 GMT):

Clipboard - December 3, 2018 7:01 AM

sine99 (Mon, 03 Dec 2018 01:32:00 GMT):
I am getting this error while trying to install fabric images. Not able to sort out even after searching on google

wangdong (Mon, 03 Dec 2018 02:39:11 GMT):
I have a question when reading the lifecyle code.

wangdong (Mon, 03 Dec 2018 02:39:16 GMT):
```// HandleChaincodeInstall will apply any statedb artifacts (e.g. couchdb indexes) to // any channel's statedb where the chaincode is already instantiated // Note - this step is done prior to PutChaincodeToLocalStorage() since this step is idempotent and harmless until endorsements start, // that is, if there are errors deploying the indexes the chaincode install can safely be re-attempted later. err = cceventmgmt.GetMgr().HandleChaincodeInstall(chaincodeDefinition, statedbArtifactsTar)```

wangdong (Mon, 03 Dec 2018 02:39:16 GMT):
```// HandleChaincodeInstall will apply any statedb artifacts (e.g. couchdb indexes) to // any channel's statedb where the chaincode is already instantiated // Note - this step is done prior to PutChaincodeToLocalStorage() since this step is idempotent and harmless until endorsements start, // that is, if there are errors deploying the indexes the chaincode install can safely be re-attempted later. ```

wangdong (Mon, 03 Dec 2018 02:41:32 GMT):
Above is the comment

wangdong (Mon, 03 Dec 2018 02:41:39 GMT):
and the code is ``` err = cceventmgmt.GetMgr().HandleChaincodeInstall(chaincodeDefinition, statedbArtifactsTar)```

wangdong (Mon, 03 Dec 2018 02:43:28 GMT):
this is from lscc install part. What really confuses me is this part ```HandleChaincodeInstall will apply any statedb artifacts (e.g. couchdb indexes) to // any channel's statedb where the chaincode is already instantiated```

wangdong (Mon, 03 Dec 2018 02:43:28 GMT):
this is from lscc install part. What really confuses me is this part ```HandleChaincodeInstall will apply any statedb artifacts (e.g. couchdb indexes) to any channel's statedb where the chaincode is already instantiated```

wangdong (Mon, 03 Dec 2018 02:45:38 GMT):
If this chain code is being installed, why the ```chaincode is already instantiated```? Did I miss something?

wangdong (Mon, 03 Dec 2018 02:47:09 GMT):
If the chaincode is not installed, how can be deployed one can be got?

wangdong (Mon, 03 Dec 2018 02:47:09 GMT):
If the chaincode is not installed, how can deployed one be got?

dave.enyeart (Mon, 03 Dec 2018 02:51:53 GMT):
@wangdong I suggest to read the first network tutorial https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html. You'll see that some peers may install the chaincode after it is instantiated on the channel. Only when both conditions are met on a given peer, will the couchdb indexes be created.

wangdong (Mon, 03 Dec 2018 02:53:16 GMT):
Thanks Dave, I will read it firstly. @dave.enyeart

yulong12 (Mon, 03 Dec 2018 03:00:38 GMT):
Hi everyone. I have a question.what is the difference among app,user,orderer,peer when I use fabric-ca-client register comand and use the id.type attribute?

Ashish_ydv (Mon, 03 Dec 2018 05:46:03 GMT):
Is there any way to get all users list who got registered and enrolled using node sdk?

MuhammedHafil (Mon, 03 Dec 2018 06:34:41 GMT):
is it possible to add custom data while enrolling user with CA and access it chaincode?

MuhammedHafil (Mon, 03 Dec 2018 06:35:34 GMT):
is only `enrollmentID` and `affiliation` are allowed?

MuhammedHafil (Mon, 03 Dec 2018 06:35:34 GMT):
is only `username` and `password` are allowed?

YanLIU0822 (Mon, 03 Dec 2018 07:08:21 GMT):
hey can someone help me out firstly the orderer and peer started without errors and then I test the peer0.org1.sdfarm.com:7050. it successes --- peer0.org1.sdfarm.com:7050 ping statistics --- 20 packets transmitted, 20 received, 0% packet loss, time 19446ms but I got failed when I try to generate the channel block -----END CERTIFICATE----- 2018-12-03 14:28:31.968 CST [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2028-11-30 02:40:05 +0000 UTC 2018-12-03 14:28:31.968 CST [msp] Validate -> DEBU 036 MSP SdOrg1MSP validating identity 2018-12-03 14:28:31.968 CST [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2018-12-03 14:28:31.968 CST [grpc] Printf -> DEBU 038 parsed scheme: "" 2018-12-03 14:28:31.968 CST [grpc] Printf -> DEBU 039 scheme "" not registered, fallback to default scheme 2018-12-03 14:28:31.968 CST [grpc] Printf -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.sdfarm.com:7050 0 }] 2018-12-03 14:28:31.968 CST [grpc] Printf -> DEBU 03b ClientConn switching balancer to "pick_first" 2018-12-03 14:28:31.968 CST [grpc] Printf -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, CONNECTING 2018-12-03 14:28:31.969 CST [grpc] Printf -> DEBU 03d grpc: addrConn.createTransport failed to connect to {orderer.sdfarm.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.26.0.1:7050: connect: connection refused". Reconnecting... 2018-12-03 14:28:31.969 CST [grpc] Printf -> DEBU 03e pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, TRANSIENT_FAILURE 2018-12-03 14:28:32.969 CST [grpc] Printf -> DEBU 03f pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, CONNECTING 2018-12-03 14:28:32.969 CST [grpc] Printf -> DEBU 040 grpc: addrConn.createTransport failed to connect to {orderer.sdfarm.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.26.0.1:7050: connect: connection refused". Reconnecting... 2018-12-03 14:28:32.969 CST [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, TRANSIENT_FAILURE 2018-12-03 14:28:34.637 CST [grpc] Printf -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, CONNECTING 2018-12-03 14:28:34.638 CST [grpc] Printf -> DEBU 043 grpc: addrConn.createTransport failed to connect to {orderer.sdfarm.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.26.0.1:7050: connect: connection refused". Reconnecting... 2018-12-03 14:28:34.638 CST [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc420505440, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.sdfarm.com:7050: failed to create new connection: context deadline exceeded

ShefaliMittal (Mon, 03 Dec 2018 07:41:19 GMT):
how do I heck if a user with same email exists with fabric ca

MuhammedHafil (Mon, 03 Dec 2018 07:50:32 GMT):
@ShefaliMittal How did you added email attribute to a user?used email id at the place of username?

ShefaliMittal (Mon, 03 Dec 2018 08:21:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eJBowTESxMnPRhLTE) @MuhammedHafil I think we can add custom attributes while registering a new user

sine99 (Mon, 03 Dec 2018 08:34:16 GMT):

Clipboard - December 3, 2018 2:04 PM

sine99 (Mon, 03 Dec 2018 08:34:18 GMT):
duplicate - Can somebody explain how to solve this error? I am a newbie facing lots of issues.

ArpitKhurana1 (Mon, 03 Dec 2018 08:36:48 GMT):
@sine99 Make sure that docker runs without sudo permissions

sine99 (Mon, 03 Dec 2018 08:37:47 GMT):
how to do that ???

ArpitKhurana1 (Mon, 03 Dec 2018 08:38:10 GMT):
@ShefaliMittal There is a method to "getidentity " of user , that should work

sine99 (Mon, 03 Dec 2018 08:38:21 GMT):
it is showing permissions denied when not using sudo

ArpitKhurana1 (Mon, 03 Dec 2018 08:38:40 GMT):
@sine99 add your user to docker group and logout and login again

ArpitKhurana1 (Mon, 03 Dec 2018 08:38:49 GMT):
or just google search

AndresMartinezMelgar.itcl (Mon, 03 Dec 2018 09:07:02 GMT):
to have a good docker structure, would it be nice to have a cli container for each organization? Or would it be better to have a cli that covers several organizations? I think the first option would be better, but I'm not sure

DattaPatil (Mon, 03 Dec 2018 09:46:22 GMT):
if i use CouchDB as a data base then i does docker-CLI container needs to be used? is it mandatory to define in docker yaml files?

mastersingh24 (Mon, 03 Dec 2018 10:55:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wXFhWAY3oyRjWCkeA) @AndresMartinezMelgar.itcl In a real environment, a single entity would not actually be running the peers or CAs for multiple organizations. The sample networks are really designed as sandbox environments so that you can simulate a real multi-party network. So to answer your question, in the real world each organization which be using their own CLI, app, etc

mastersingh24 (Mon, 03 Dec 2018 10:55:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yMNTimKRvXQh4S85b) @DattaPatil Not sure I see the relationship between the CLI and CouchDB?

mallikarjunasai995 (Mon, 03 Dec 2018 11:04:09 GMT):
C:\Users\md00506630\Desktop\fabcar\fabcar-network>node invokeNetwork.js Successfully loaded user1 from persistence Assigning transaction_id: 9ed9336ad9fdc6483ac263b1e8b70abc1eb76c93d51c1ebf3d3da5a586fd5ec2 Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Getting event hub Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: EventHub has been shutdown anyone has worked on the same to resolve the error

mallikarjunasai995 (Mon, 03 Dec 2018 11:04:09 GMT):
C:\Users\mvcvbcvbcvb\Desktop\fabcar\fabcar-network>node invokeNetwork.js Successfully loaded user1 from persistence Assigning transaction_id: 9ed9336ad9fdc6483ac263b1e8b70abc1eb76c93d51c1ebf3d3da5a586fd5ec2 Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Getting event hub Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: EventHub has been shutdown anyone has worked on the same to resolve the error

mallikarjunasai995 (Mon, 03 Dec 2018 11:12:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GBP7CN3yubTbxKFPK) thanks i managed to solve this error

mallikarjunasai995 (Mon, 03 Dec 2018 11:13:18 GMT):
though i solved the above error through this below sentence i was not able to uunderstand what does resolution acutally saying Because the chaincode runs in a separate chaincode docker container, it can take some time to start this container on first use. If you get a timeout or a “premature execution” error, just try running the command again. what does this sentence mean can any one share me the summary of article or give me brief explain about blockchain containers

mastersingh24 (Mon, 03 Dec 2018 11:25:39 GMT):
@mallikarjunasai995 - Fabric deploys and runs chaincode in Docker containers. When you instantiate chaincode, the peer which endorses the transaction will actually build and deploy the container to make sure it is valid / works and then will stop the container. But other peers in the channel which have the chaincode installed will only build and deploy the chaincode container the first time someone tries to invoke it. The build/deploy/start process can take some time. And the peer(s) which initially endorsed the instantiate transaction will still need to start the container (again) but this should be faster

mastersingh24 (Mon, 03 Dec 2018 11:25:39 GMT):
@mallikarjunasai995 - Fabric deploys and runs chaincode in Docker containers. When you instantiate chaincode, the peer which endorses the transaction will actually build the Docker image image and then create and start the container to make sure it is valid / works and then will stop the container. But other peers in the channel which have the chaincode installed will only build and deploy the chaincode container the first time someone tries to invoke it. The build/deploy/start process can take some time. And the peer(s) which initially endorsed the instantiate transaction will still need to start the container (again) but this should be faster

mallikarjunasai995 (Mon, 03 Dec 2018 11:34:43 GMT):
okay thank you very much @mastersingh24

mallikarjunasai995 (Mon, 03 Dec 2018 11:37:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GjGJo2KmuWu7nJ9P9) @mastersingh24 your first sentence and second sentence somewhat makes similar meaning to me like build and deploy... sorry i could not able to understand can you explain it better

mallikarjunasai995 (Mon, 03 Dec 2018 11:37:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GjGJo2KmuWu7nJ9P9) @mastersingh24 your first sentence and second sentence somewhat makes similar meaning to me like build and deploy... sorry i could not able to understand can you explain it in more layman terms

MuhammedHafil (Mon, 03 Dec 2018 11:39:16 GMT):
Can anybody tell why users are not enrolled in this example ?https://github.com/hyperledger/fabric-samples/tree/master/balance-transfer ? only registered? refer `app/helper.j

maxrobot (Mon, 03 Dec 2018 11:42:51 GMT):
Hi who knows exactly WHAT is signed during endorsement?

maxrobot (Mon, 03 Dec 2018 11:42:59 GMT):
is it the transaction hash?

mastersingh24 (Mon, 03 Dec 2018 11:51:20 GMT):
@mallikarjunasai995 - To start/luanch/run chaincode, a peer must: 1) Build the Docker image for the chaincode 2) Create a Docker container from the image 3) Start the container

KartikChauhan (Mon, 03 Dec 2018 11:51:59 GMT):
I found these lines in configtx.yaml of basic-network. What does batch and message mean here? Do they mean block and transaction? # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 99 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 512 KB

sine99 (Mon, 03 Dec 2018 11:53:22 GMT):
what is the purpose of *hyperledger/fabric-javaenv * docker image?

KartikChauhan (Mon, 03 Dec 2018 11:55:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PHdDvhKZm8wYr37gH) @sine99 It provides a simplified javaenv for running Java chaincode.

mallikarjunasai995 (Mon, 03 Dec 2018 11:56:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8TfQqgAdEMwxpxd5o) @mastersingh24 Thanks :)

sine99 (Mon, 03 Dec 2018 12:01:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JgwvfDDjhDCg6GaJ8) @KartikChauhan We can write smart contracts in nodejs too. Do we have similar image for nodejs ?

mastersingh24 (Mon, 03 Dec 2018 12:30:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vPnb5LRm6bikSEAYL) @sine99 Currently, Node CC uses fabric-baseimage as it's runtime

sine99 (Mon, 03 Dec 2018 12:41:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cpFTp6LDq7dZTvAfj) @mastersingh24 Thanks

maxrobot (Mon, 03 Dec 2018 13:24:22 GMT):
Hi could somebody tell me what endorsers have signed exactly when endorsing a transaction?

maxrobot (Mon, 03 Dec 2018 13:25:17 GMT):
my understanding is that it is the _transaction payload_ however I can't find what this actually means in terms of actual data i.e. bytes

maxrobot (Mon, 03 Dec 2018 13:25:48 GMT):
The reason I would like to know/do this is to recover the certificate from the signature to verify the signer...

YanLIU0822 (Mon, 03 Dec 2018 13:26:05 GMT):
hey can someone help me out peer node start 2018-12-03 19:53:50.879 CST [nodeCmd] createChaincodeServer -> ERRO 00f Error creating GRPC server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host 2018-12-03 19:53:50.879 CST [nodeCmd] serve -> CRIT 010 Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host

YanLIU0822 (Mon, 03 Dec 2018 13:26:05 GMT):
hey can someone help me out peer node start 2018-12-03 19:53:50.879 CST [nodeCmd] createChaincodeServer -> ERRO 00f Error creating GRPC server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host 2018-12-03 19:53:50.879 CST [nodeCmd] serve -> CRIT 010 Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host

YanLIU0822 (Mon, 03 Dec 2018 13:26:11 GMT):
hey can someone help me out peer node start 2018-12-03 19:53:50.879 CST [nodeCmd] createChaincodeServer -> ERRO 00f Error creating GRPC server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host 2018-12-03 19:53:50.879 CST [nodeCmd] serve -> CRIT 010 Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host

YanLIU0822 (Mon, 03 Dec 2018 13:26:47 GMT):
hey can someone help me out peer node start 2018-12-03 19:53:50.879 CST [nodeCmd] createChaincodeServer -> ERRO 00f Error creating GRPC server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host 2018-12-03 19:53:50.879 CST [nodeCmd] serve -> CRIT 010 Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host

wangdong (Mon, 03 Dec 2018 14:08:29 GMT):
@dave.enyeart Hi Dave, I read through that document. I could not find any example that chaincode installation advances the initialization. Could you please tell what kind of peers will need as what you said, instantiation followed by installation.

mallikarjunasai995 (Mon, 03 Dec 2018 14:25:01 GMT):
if we install the chaincode on 1 org peer in a 2 organizations peers, then wat about the rest of the peer codition ? does smart contract also applies for the second peer ?

mallikarjunasai995 (Mon, 03 Dec 2018 14:25:58 GMT):
consider fabcar example i have installed chaincode on only 1 peer of 1 organziation in multiorganizations (2 peers) then wat about the second peer is it going to be a part of the channel

dave.enyeart (Mon, 03 Dec 2018 15:11:43 GMT):
@wangdong @mallikarjunasai995 Peers can commit blocks on the channel without having chaincode installed. They won’t be able to execute chaincode or endorse, but they can still validate/commit the transactions. If you want a peer to later start executing chaincode, then you can install the chaincode on the peer at a later time. Here are the snippets from the tutorial that explain this:

dave.enyeart (Mon, 03 Dec 2018 15:11:55 GMT):
```Applications interact with the blockchain ledger through chaincode. As such we need to install the chaincode on every peer that will execute and endorse our transactions, and then instantiate the chaincode on the channel. First, install the sample Go, Node.js or Java chaincode onto one of the four peer nodes. These commands place the specified source code flavor onto our peer’s filesystem. A chaincode - chaincode_example02 - is installed on peer0.org1.example.com and peer0.org2.example.com The chaincode is then “instantiated” on peer0.org2.example.com. An invoke is sent to peer0.org1.example.com to move “10” from “a” to “b” The chaincode is then installed on peer1.org2.example.com A query is sent to peer1.org2.example.com for the value of “a”. This starts a third chaincode container by the name of dev-peer1.org2.example.com-mycc-1.0. A value of 90 is returned, correctly reflecting the previous transaction during which the value for key “a” was modified by 10. Chaincode MUST be installed on a peer in order for it to successfully perform read/write operations against the ledger. Furthermore, a chaincode container is not started for a peer until an init or traditional transaction - read/write - is performed against that chaincode (e.g. query for the value of “a”). The transaction causes the container to start. Also, all peers in a channel maintain an exact copy of the ledger which comprises the blockchain to store the immutable, sequenced record in blocks, as well as a state database to maintain a snapshot of the current state. This includes those peers that do not have chaincode installed on them (like peer1.org1.example.com in the above example) . Finally, the chaincode is accessible after it is installed (like peer1.org2.example.com in the above example) because it has already been instantiated.```

mallikarjunasai995 (Mon, 03 Dec 2018 15:24:36 GMT):
thanks dave........ one specific doubt suppose if there is flight delay app constructed by blockchain what it does is if the flight gets delayed customer will get payed considerable amout now there are two peers 1.customer 2.flight company now where we will write the smartcode to execute a payment and on what peers we have to install the chaincode

mallikarjunasai995 (Mon, 03 Dec 2018 15:24:46 GMT):
@dave.enyeart can you please help me on the above query

jrosmith (Mon, 03 Dec 2018 15:24:54 GMT):
@maxrobot [transaction proposals](https://github.com/hyperledger/fabric/blob/release-1.3/protos/peer/proposal.proto) are signed by endorsing peers

nRyDevOps (Mon, 03 Dec 2018 15:26:17 GMT):
Do Hyperledger Fabric "networks" need to be in continuous sync with other networks? What I am wondering if it is possible to use something like a "sneaker net" sort of data transfer as long as the network clocks are in sync. For example if you have X number of networks and they NEVER physically connect to one another. The data needs to periodically sync with one another, but it could only happen via CD or FTP. Could this work with Hyperledger Fabric or not?

nRyDevOps (Mon, 03 Dec 2018 15:28:55 GMT):
Also, I asked this question on Friday but it looks like there was a lot of activity in this chat and the question never got answered. Can MongoDB be used in place of CouchDB without using Go somehow?

YanLIU0822 (Mon, 03 Dec 2018 15:32:49 GMT):
hey can someone help me out peer node start 2018-12-03 19:53:50.879 CST [nodeCmd] createChaincodeServer -> ERRO 00f Error creating GRPC server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host 2018-12-03 19:53:50.879 CST [nodeCmd] serve -> CRIT 010 Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host panic: Failed to create chaincode server: listen tcp: lookup peer0.org1.sdfarm.com on 127.0.0.53:53: no such host

nRyDevOps (Mon, 03 Dec 2018 15:34:20 GMT):
I see on this page of the Docs: https://hyperledger-fabric.readthedocs.io/en/release-1.3/gossip.html that it says networks out of sync will eventually be synced up; so I am hoping this can work in my scenario of the disconnected networks periodically syncing using a sort of "sneaker net" method. Ie. CD or FTP etc... CAN SOMEONE PLEASE CONFIRM THIS?

nRyDevOps (Mon, 03 Dec 2018 15:35:20 GMT):
IS THERE HYPERLEDGER FABRIC FULL STAFF WORKING ON THIS PROJECT MONITORING THIS CHANNEL? I have noticed a lot of questions going unanswered. Is there another resources for asking questions such as a forum?

yacovm (Mon, 03 Dec 2018 15:35:59 GMT):
I personally answered a few of your questions

yacovm (Mon, 03 Dec 2018 15:36:06 GMT):
no need to write in caps.

yacovm (Mon, 03 Dec 2018 15:36:58 GMT):
and i don't know what "sneaker net" means

nRyDevOps (Mon, 03 Dec 2018 15:38:34 GMT):
@yacovm thanks...are you part the full time Hyperledger team?

nRyDevOps (Mon, 03 Dec 2018 15:38:53 GMT):
https://en.wikipedia.org/wiki/Sneakernet

yacovm (Mon, 03 Dec 2018 15:39:24 GMT):
I work on Fabric if that's what you mean

nRyDevOps (Mon, 03 Dec 2018 15:40:48 GMT):
Sorry, I am just trying to understand what sort of enterprise support is available for Fabric. If it is just community based, or if there is dedicated staff working on full time support on this channel?

yacovm (Mon, 03 Dec 2018 15:41:28 GMT):
@dave.enyeart

yacovm (Mon, 03 Dec 2018 15:41:45 GMT):
that'll be a question for you.... I'm back to finishing v1.4 stuff ;)

nRyDevOps (Mon, 03 Dec 2018 15:42:31 GMT):
@yacovm regarding the sneakernet question or support?

yacovm (Mon, 03 Dec 2018 15:42:43 GMT):
about the support

yacovm (Mon, 03 Dec 2018 15:42:56 GMT):
the sneaker-net - I still don't understand what you precisely mean

yacovm (Mon, 03 Dec 2018 15:43:10 GMT):
please ask concrete not generic questions

nRyDevOps (Mon, 03 Dec 2018 15:44:07 GMT):
Which part do you not understand?

nRyDevOps (Mon, 03 Dec 2018 15:44:57 GMT):
The networks will never be physically connected via LAN/WAN...can they still sync using Fabric via a disconnected file transfer method such as CD/DVD's or FTP?

yacovm (Mon, 03 Dec 2018 15:45:07 GMT):
how is a sneaker net creation related to a part of the software stack?

nRyDevOps (Mon, 03 Dec 2018 15:45:18 GMT):
this is a very common scenario in the computing world.

yacovm (Mon, 03 Dec 2018 15:46:01 GMT):
so no, you can't sync up a peer from a CDROM, DVD, USB stick, or a pigeon

nRyDevOps (Mon, 03 Dec 2018 15:46:04 GMT):
It is related to the gossip data dissemination protocol, and if it can function properly with out of sync, disconnected networks, or channels.

yacovm (Mon, 03 Dec 2018 15:46:14 GMT):
to sync a peer you need either another peer or an orderer node

nRyDevOps (Mon, 03 Dec 2018 15:46:49 GMT):
so does that mean that the peers need to be directly connected in order to sync?

yacovm (Mon, 03 Dec 2018 15:47:10 GMT):
either the orderer or another peer

nRyDevOps (Mon, 03 Dec 2018 15:49:10 GMT):
hmmm, so how would an entity such as a bank use Fabric?

nRyDevOps (Mon, 03 Dec 2018 15:49:31 GMT):
let's say the bank has mainframes in various locations that are not connected to the outside world.

nRyDevOps (Mon, 03 Dec 2018 15:49:45 GMT):
This is a very common scenario in the banking industry for security reasons.

nRyDevOps (Mon, 03 Dec 2018 15:49:56 GMT):
would they not be able to use Hyperledger?

nRyDevOps (Mon, 03 Dec 2018 15:50:28 GMT):
I thought that if the network clocks were in sync that with BFT that it could be possible.

yacovm (Mon, 03 Dec 2018 15:50:39 GMT):
BFT doesn't rely on network clocks

nRyDevOps (Mon, 03 Dec 2018 15:51:15 GMT):
Ah right, so how would it determine the order of the transactions then?

yacovm (Mon, 03 Dec 2018 15:51:31 GMT):
the order is not important.... the consistency is important

nRyDevOps (Mon, 03 Dec 2018 15:51:33 GMT):
or does that only apply to a fully asynchronous BFT?

yacovm (Mon, 03 Dec 2018 15:51:38 GMT):
as long as it's the same, it's OK

yacovm (Mon, 03 Dec 2018 15:51:57 GMT):
anyway I have to step out

nRyDevOps (Mon, 03 Dec 2018 15:52:15 GMT):
I heard something about fairness or the order that the transactions are accepted into the ledger.

nRyDevOps (Mon, 03 Dec 2018 15:53:01 GMT):
okay, I guess I will just need to test this on a few disconnected networks and see if I can get them to sync via a pigeon message passing scenario.

dave.enyeart (Mon, 03 Dec 2018 16:31:24 GMT):
@nRyDevOps Rocket.chat support is comprised of community volunteers. If you are looking for some more dedicated support, there are multiple vendors that offer paid support. Note that you will typically have better luck in one of the scoped channels where the experts/developers in each of the areas often hang out. For example I've answered your MongoDB question in #fabric-ledger .

nRyDevOps (Mon, 03 Dec 2018 18:36:09 GMT):
@yacovm is there an updated Fabric deployment script based on your project: https://github.com/yacovm/fabricDeployment ?

nRyDevOps (Mon, 03 Dec 2018 18:36:43 GMT):
I would like to play around two servers on two different networks that are connected via SSH, to help me better understand Fabric and how it communicates.

nRyDevOps (Mon, 03 Dec 2018 18:37:00 GMT):
Is this still a good resource to use, or should I use something else?

nRyDevOps (Mon, 03 Dec 2018 18:37:09 GMT):
I have gone through the official docs already

yacovm (Mon, 03 Dec 2018 18:38:17 GMT):
@nRyDevOps I doubt it'll work for you on the latest release

yacovm (Mon, 03 Dec 2018 18:38:31 GMT):
but you can give it a try

nRyDevOps (Mon, 03 Dec 2018 18:40:42 GMT):
oh okay, do you mean the latest release of Fabric?

yacovm (Mon, 03 Dec 2018 18:40:46 GMT):
yes

nRyDevOps (Mon, 03 Dec 2018 18:40:50 GMT):
gotcha

nRyDevOps (Mon, 03 Dec 2018 18:41:15 GMT):
what would be the best way for me to go about setting up the same environment with the latest Fabric?

yacovm (Mon, 03 Dec 2018 18:41:16 GMT):
though I might update it

yacovm (Mon, 03 Dec 2018 18:41:21 GMT):
after we release raft orderer

nRyDevOps (Mon, 03 Dec 2018 18:41:21 GMT):
;-)

yacovm (Mon, 03 Dec 2018 18:41:37 GMT):
oh you can try it... it might work in v1.1 or v1.2

nRyDevOps (Mon, 03 Dec 2018 18:42:00 GMT):
okay I will give it a try

nRyDevOps (Mon, 03 Dec 2018 18:42:13 GMT):
do you think it will work with CentOS or should I try Ubuntu instead?

yacovm (Mon, 03 Dec 2018 18:42:19 GMT):
change `https://github.com/yacovm/fabricDeployment/blob/master/install.sh#L29` to point to v1.1 and see if it works

yacovm (Mon, 03 Dec 2018 18:42:25 GMT):
it won't work with centos

yacovm (Mon, 03 Dec 2018 18:42:33 GMT):
you have apt-get but centos is yum

nRyDevOps (Mon, 03 Dec 2018 18:42:38 GMT):
right

nRyDevOps (Mon, 03 Dec 2018 18:42:42 GMT):
okay I will give it a try

nRyDevOps (Mon, 03 Dec 2018 18:42:46 GMT):
thanks! ;-)

nRyDevOps (Mon, 03 Dec 2018 18:43:05 GMT):
I greatly appreciate all the help!!

OmarShekriladze (Mon, 03 Dec 2018 19:34:15 GMT):
I have one simple question and I will be very grateful if someone could help me. So when I run fabric-ca server, what sh -c 'fabric-ca-server init -b admin:adminpw' does is that it creates self signed certificate, and this will be root certificate for fabric-ca, under this certificate admin:adminpw user will be creted. so here is my question: why the hell I need ca-cert.pem and ca-key.pem files inside etc/hyperledger/fabric-ca-server folder? when do I use it?

mastersingh24 (Mon, 03 Dec 2018 19:36:59 GMT):
@OmarShekriladze - not quite sure what you are asking? Sometimes you might want to actually specify the root cert pair the CA uses rather than auto-creating them on startup

OmarShekriladze (Mon, 03 Dec 2018 19:39:19 GMT):
so what I am asking is why auto-create them if I have root cert pair

OmarShekriladze (Mon, 03 Dec 2018 19:48:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wRnGogrMHapzy3Ztm) https://stackoverflow.com/questions/53600412/why-does-fabric-ca-start-as-self-signed-certificate?fbclid=IwAR14lGUUi_XR8GZB9Qwwx1Hh4aEh0sUvP1VK12ZCOU3Z6OATXxK9gXFnV-c here is the question I need answer on

nRyDevOps (Mon, 03 Dec 2018 21:54:04 GMT):
good resource for Fabric: https://github.com/wearetheledger/awesome-hyperledger-fabric

wangdong (Tue, 04 Dec 2018 02:57:02 GMT):
@dave.enyeart thanks.

hyper_learner_ak (Tue, 04 Dec 2018 03:44:33 GMT):
I am running byfn example from fabric samples v1.3 and I see there is no container generated for ca.peerOrg1 services from docker-compose-e2e.yaml This is contrasting to version 1.2 where in it was generated. If this is not generated how would I be able to enroll admin

ShefaliMittal (Tue, 04 Dec 2018 06:57:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ge8QjdXmhihGsuodR) @ArpitKhurana1 there is a function - getID() which returns value like - eDUwOTo6Q049dXNlcjEsT1U9Y2xpZW50K09VPW9yZzErT1U9ZGVwYXJ0bWVudDE6OkNOPWNhLm9yZzEuZXhhbXBsZS5jb20sTz1vcmcxLmV4YW1wbGUuY29tLEw9U2FuIEZyYW5jaXNjbyxTVD1DYWxpZm9ybmlhLEM9VVM= how do I get exact enrollment ID

ruien (Tue, 04 Dec 2018 06:59:54 GMT):
@ShefaliMittal `GetCreator()` returns the creator's certificate - maybe that's what you're looking for?

ruien (Tue, 04 Dec 2018 07:08:14 GMT):
@OmarShekriladze The CA's certificate is the root certificate. You don't really *need it*, _per se_, but you need to be able to give it to anyone who asks for it (in order to authenticate the issuer for certs that you've issued), so it's always kept here. This is the cert which you (as the CA) would provide in response to a `fabric-ca-client getcacert` request from a client. The private key is necessary so that you can sign a CSR and generate a certificate -- without it, you'd be a pretty ineffective CA since you wouldn't be able to issue certificates.

ruien (Tue, 04 Dec 2018 07:11:13 GMT):
@YanLIU0822 You *shouldn't* be able to connect to peer0.org1.sdfarm.com:7050 (the peer's port is 7051). You'd need to telnet to orderer.sdfarm.com on that port, not peer0.org1.sdfarm.com .

ArpitKhurana1 (Tue, 04 Dec 2018 07:12:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PqGdt7BufF4Bx3ffy) @ShefaliMittal @ShefaliMittal If you are using some kind of sdk , then its accessible , in go sdk you can easily get details of user, i havent tried cli

ArpitKhurana1 (Tue, 04 Dec 2018 07:12:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PqGdt7BufF4Bx3ffy) @ShefaliMittal If you are using some kind of sdk , then its accessible , in go sdk you can easily get details of user, i havent tried cli

ruien (Tue, 04 Dec 2018 07:13:15 GMT):
@ShefaliMittal the simplest way to check if a user exists is just to `sqlite3` the database and query from the `users` table. (see `select * from sqlite_master;` for a table list)

Heena078 (Tue, 04 Dec 2018 07:16:51 GMT):
I am trying to add new organization in balance transfer sample and i need to generate CA for that so can anyone know ?

AndresMartinezMelgar.itcl (Tue, 04 Dec 2018 07:17:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=94JYmLaqxhb4YjQdv) @Heena078 Do you read this tutorial? https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html

YanLIU0822 (Tue, 04 Dec 2018 07:18:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dizwSc8QMjM4aXcpN) @ruien thanks for you kind reply This is my hosts 127.0.0.1 localhost 127.0.1.1 liuyan-HP 172.21.102.115 orderer.sdfarm.com:7050 172.21.102.115 peer0.org1.sdfarm.com:7051 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters so what do you mean ?

ruien (Tue, 04 Dec 2018 07:20:57 GMT):
@maxrobot The endorsement has a few things inside, and the signer's certificate is among them. The easiest way to proceed with what you're talking about is to try a custom VSCC -- when you're called, you'll receive a block (protobuf) that you can decode and unwrap, and pull out the payload endorsements, and each endorsement will have an X.509 cert which you can read using the golang stdlib. Aside from the endorsement signatures, you can also see the "delta set" to be applied to the ledger. Of course, these should all match for each endorser (something the default VSCC will check), so I call the default one first before adding my own logic to the end.

ruien (Tue, 04 Dec 2018 07:21:53 GMT):
@YanLIU0822 it makes no sense to put a port number into /etc/hosts . I meant to try `telnet orderer.sdfarm.com 7050` and ensure you're talking to the orderer.

YanLIU0822 (Tue, 04 Dec 2018 07:26:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fw4topEm87bmiteKp) @ruien but if i dont put port after the domain I also cannot ping with orderer.sdfarm.com:7050 it will show the error that it cannot connect with orderer.sdfarm.com:7050\

ruien (Tue, 04 Dec 2018 07:28:04 GMT):
I'm very sure that it's wrong to put the port number into /etc/hosts . If you're unable to connect, adding the port there isn't going to solve the issue.

YanLIU0822 (Tue, 04 Dec 2018 07:39:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EqmdkLzp2tTLouj74) @ruien ok thanks I try it again hopefully it works

YanLIU0822 (Tue, 04 Dec 2018 07:41:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EqmdkLzp2tTLouj74) @ruien do you get any ideas to get deeper on fabric. I am newer. occasionally, i got errors but it is hard for me to solve the problems

PhilipAndrew (Tue, 04 Dec 2018 08:24:10 GMT):
hello

PhilipAndrew (Tue, 04 Dec 2018 08:28:45 GMT):
i feel lonely when no-one answers

This-UsernameIsTaken (Tue, 04 Dec 2018 09:20:10 GMT):
Has joined the channel.

This-UsernameIsTaken (Tue, 04 Dec 2018 09:20:17 GMT):
Hello, Is Hyperledger Fabric 1.1.X compatible with Hyperledger Explorer?

This-UsernameIsTaken (Tue, 04 Dec 2018 09:20:17 GMT):
Hello, Is Hyperledger Fabric 1.3.X compatible with Hyperledger Explorer?

This-UsernameIsTaken (Tue, 04 Dec 2018 09:21:09 GMT):
1.3.X *

rootDistress (Tue, 04 Dec 2018 09:24:02 GMT):
Has joined the channel.

Cliff.Huang (Tue, 04 Dec 2018 09:34:01 GMT):
Has joined the channel.

maxrobot (Tue, 04 Dec 2018 09:34:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gnnqsoS2P8WE8TrrC) @ruien ok thank you very much for your response! I am actually extremely interested in pulling blocks from my channel and then verifying they belong to the known set of orderers off-chain

maxrobot (Tue, 04 Dec 2018 09:34:29 GMT):
could you point me to where I can learn more about the block structure?

sureshtedla (Tue, 04 Dec 2018 09:45:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QtZmRsYPgNdPYfaaP) @This-UsernameIsTaken Yes It supports

This-UsernameIsTaken (Tue, 04 Dec 2018 09:52:51 GMT):
Thank you :)

mallikarjunasai995 (Tue, 04 Dec 2018 10:09:35 GMT):
"x-fabricVersion": "v1.2.1" what does x represents am using hyperledger fabric cloud

VasiliyPudgev (Tue, 04 Dec 2018 10:43:14 GMT):
Has joined the channel.

ShefaliMittal (Tue, 04 Dec 2018 10:52:45 GMT):
Is there any way to set some timers in hyperledger fabric.. Ex- I execute a transaction now. I want to execute another transaction 5 hours after my recent trasaction

VasiliyPudgev (Tue, 04 Dec 2018 11:11:37 GMT):
hi! my chaincode, don't put in couchdb when i try to instantiate it, i have very small log from db and chaincode peer container. [chaincode] notifyRegistry -> ERRO e971 failed to start name:"fabcar" - this error from chaincode peer container, what can i do to fix it?

VasiliyPudgev (Tue, 04 Dec 2018 11:13:38 GMT):
and i have no errors from peer when execute chaincode installation

VasiliyPudgev (Tue, 04 Dec 2018 11:17:45 GMT):
When I run the cheyncode instance, then I see the log: initBCCSP -> DEBU 001 Initialize BCCSP [SW], but nothing happens after that, and not a single line falls into the database chaincode_lscc, can anyone help me?

VasiliyPudgev (Tue, 04 Dec 2018 11:20:29 GMT):
I use the swarm, overlay network and docker stack to distribute services on different hosts. Peer with chaincode in stack is not included.

AndresMartinezMelgar.itcl (Tue, 04 Dec 2018 11:29:14 GMT):
when I generate the crypto-config folder it contains a sub folder (peerOrganization). within this are, among others, users and administrators. My question is this, the certificates that they contain when they should be used? I have not seen any tutorial that use them. I do not understand what they are used for

AndresMartinezMelgar.itcl (Tue, 04 Dec 2018 11:29:14 GMT):
when I generate the crypto-config folder it contains a sub folder (peerOrganization). within this are, among others, users and administrators. My question is this, the certificates that they contain when they should be used? I have not seen any tutorial that use them. I do not understand what they are used for how can i registrate some users or admins and then join them to a channel?

maneeshmadhusudhan (Tue, 04 Dec 2018 12:03:49 GMT):
Has joined the channel.

mallikarjunasai995 (Tue, 04 Dec 2018 12:07:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QLqWiNXnyoSvscfBP) @AndresMartinezMelgar.itcl please go through fabcar sample example provided by Ibm then you will get to know what is the use of admin and certificates ......

kariyappals (Tue, 04 Dec 2018 14:21:20 GMT):
Has joined the channel.

kariyappals (Tue, 04 Dec 2018 14:21:25 GMT):
Is it possible to upgrade the network from solo orderer to kafka orderer without loosing the ledger?

mallikarjunasai995 (Tue, 04 Dec 2018 14:45:53 GMT):
In the fabcar example, To whom the car belongs to and who is initializing the ledger precisely which peer? Suppose there are two peers I want one one peer to setup the some rules or treaty then the second peer has to initialize the data , but while initializing it has to check and satisfy the treaty or rules created by another peer …. Where should I write this thing? hey hai if you can give me some idea for the above mentioned one if would be great

adamhardie (Tue, 04 Dec 2018 15:26:21 GMT):
in this wiki page : https://hyperledger-fabric.readthedocs.io/en/release-1.3/kafka.html there are configs specified that i cannot find in kafka properties in the latest binary release (2.11) the config i am looking for is default.replication.factor

adamhardie (Tue, 04 Dec 2018 15:26:28 GMT):
can someone point me in the direction of this config please

abityildiz (Tue, 04 Dec 2018 16:34:16 GMT):

Clipboard - December 4, 2018 7:34 PM

ambersz (Tue, 04 Dec 2018 21:50:32 GMT):
Has joined the channel.

arjitkhullar (Wed, 05 Dec 2018 00:04:14 GMT):
Has joined the channel.

Pradeep_Pentakota (Wed, 05 Dec 2018 01:41:50 GMT):
Has joined the channel.

Pradeep_Pentakota (Wed, 05 Dec 2018 01:44:54 GMT):
Hello Has anyone tried to create multi peer, multi org and single channel network setup? I’m trying to create 5 Organisations each having two peers and for now single channel, facing few issues related to policy and connections. I’m trying to achieve it by using first network example and using the same files. Error 1: Error: Error getting endorser client chaincode: endorser client failed to connect to peer0.org5.example.com:7051: failed to create new connection: context deadline exceeded Error 2: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application/Org1MSP not satisfied: signature set did not satisfy policy Error 3: ERROR: Named volume “peer1.org3.example.com:/var/hyperledger/production:rw” is used in service “peer1.org4.example.com” but no declaration was found in the volumes section.

PhilipAndrew (Wed, 05 Dec 2018 01:53:09 GMT):
After I installed a BNA file, how can I call its REST endpoints?

Pradeep_Pentakota (Wed, 05 Dec 2018 02:00:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mxmmTWu9bY8Fawun9) @gioannou983 HI @gioannou983 : Thank you for the https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org. This link is for creating only 2 Org's. Do you have any documentation on how to do it for multi org(more than 2)?

PhilipAndrew (Wed, 05 Dec 2018 02:04:19 GMT):
I worked out it doesn't have REST endpoints by default

PhilipAndrew (Wed, 05 Dec 2018 02:04:26 GMT):
let me try to use nodejs api

whoneedi (Wed, 05 Dec 2018 02:46:20 GMT):
Has joined the channel.

whoneedi (Wed, 05 Dec 2018 02:46:25 GMT):
FAB-12088 - Java chaincode support on s390 architecture Java chaincode support is not yet available on s390 architecture. Supporting or not supporting?

whoneedi (Wed, 05 Dec 2018 02:53:29 GMT):
@maxrobot @ruien

arjitkhullar (Wed, 05 Dec 2018 03:02:57 GMT):
Hi everyone, is it possible to interact with a chaincode using go-ethereum/ethclient

whoneedi (Wed, 05 Dec 2018 03:34:41 GMT):
hello

whoneedi (Wed, 05 Dec 2018 03:35:29 GMT):
FAB-12088 - Java chaincode support on s390 architecture Java chaincode support is not yet available on s390 architecture. What's the meaning of this?

ruien (Wed, 05 Dec 2018 04:05:24 GMT):
@maxrobot I just read the protos ( https://github.com/hyperledger/fabric/tree/release-1.3/protos ); in particular, the comments in peer/proposal.proto are useful.

anjalinaik (Wed, 05 Dec 2018 04:43:56 GMT):
Hi Experts,can anyone please guide me on, how do I need to modify the transaction proposal request in fabric-java-SDK so that it gets signed by both Org1 and Org2.[AND Endorsment policy]

mreddychitti (Wed, 05 Dec 2018 05:23:25 GMT):
Hello, Is there way to migrate fabric network that is already using leveldb as state database, to Couch DB ??.

vishrutJha (Wed, 05 Dec 2018 06:11:20 GMT):
Has joined the channel.

vishrutJha (Wed, 05 Dec 2018 06:12:15 GMT):
Hello All, Is there any support for wallets within hyperledger-explorer? The aim is to scope a user's view of blockchain explorer based on their ACL rules on the network. (amalgamation between hyperledger composer and hyperledger explorer)

manisha11 (Wed, 05 Dec 2018 06:25:28 GMT):
Has joined the channel.

VarunVerma (Wed, 05 Dec 2018 06:41:20 GMT):
type marble struct { Name string `json:"name"` Color string `json:"color"` Size int `json:"size"` Owner string `json:"owner"` } type marbleStore struct { ObjectType string `json:"docType"` Storename string `json:"storename"` Ownername string `json:"ownername"` Owner owner `json:"owner"` Employees int `json:"employees"` Marbles []marble `json:"marbles"` } Can any one please help me with this? If i want to Query storename on basis of Color so what should be my query and indexing.

dave.enyeart (Wed, 05 Dec 2018 06:45:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xCJXSQLfBEMJ89C9g) @whoneedi It means java chaincode is not yet supported on s390 (mainframe). it is being worked on currently. for any follow-up questions please post to #fabric-java-chaincode

alfa (Wed, 05 Dec 2018 06:48:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i6bBgptQCWu4PXSJ7) @VarunVerma store state with key marble.colour~marbleStore.storename, null value.

dave.enyeart (Wed, 05 Dec 2018 06:51:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5p677eLe8QB2snTo4) @mreddychitti You can stop peer, delete the leveldb state database in /var/hyperledger/production/ledgersData/stateLeveldb, configure peer for couchdb, restart peer. the state database will automatically get rebuilt in couchdb upon peer startup. however you will need to test this first with your data... as couchdb supports a subset of valid keys compared to leveldb, for example couchdb keys must be UTF-8 and must not start with underscore.

VasiliyPudgev (Wed, 05 Dec 2018 06:55:58 GMT):
Hello. When I try to set the chaincode on peer, it is not recorded in the channel_lscc database, returning an error: bc475fc0a8 couchdb0: 5984 10.0.0.2 undefined GET / channelone_lscc / fabcar? Attachments = true 404 ok 14 - this is what I see through the portainer After that, nothing happens, but the answer to the peer is 200. I use swarm. Can anybody tell me why PutState doesn't work?

VasiliyPudgev (Wed, 05 Dec 2018 07:00:57 GMT):
Any other document or database missing in CouchDB is recorded after error 404 using Put, when 404 is returned, followed by a line where Put is used for this missing document or base.

VasiliyPudgev (Wed, 05 Dec 2018 07:02:00 GMT):
And I can not find in the logs any additional errors that would allow me to solve the problem. I really need help :)

dave.enyeart (Wed, 05 Dec 2018 07:02:06 GMT):
you'll need to look at peer log when you do the chaincode instantiate transaction to see if there are any errors or transaction invalidations

dave.enyeart (Wed, 05 Dec 2018 07:03:06 GMT):
look whether the peers get and commit a block upon chaincode instantiation

VasiliyPudgev (Wed, 05 Dec 2018 07:04:05 GMT):
Ok, I'll try now, thanks

ArpitKhurana1 (Wed, 05 Dec 2018 07:15:37 GMT):
HI, i am getting the following error in orderer, when i made my own org

ArpitKhurana1 (Wed, 05 Dec 2018 07:15:42 GMT):
```2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 069 Proposed new policy Admins for Channel/Orderer 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06a Proposed new policy Readers for Channel/Orderer 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06b Proposed new policy Writers for Channel/Orderer 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06c Proposed new policy BlockValidation for Channel/Orderer 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06d Proposed new policy Writers for Channel/Consortiums/SampleConsortium/lpMSP 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06e Proposed new policy Admins for Channel/Consortiums/SampleConsortium/lpMSP 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 06f Proposed new policy Readers for Channel/Consortiums/SampleConsortium/lpMSP 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 070 Proposed new policy Admins for Channel/Consortiums 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 071 Proposed new policy Admins for Channel 2018-12-05 06:55:44.255 UTC [policies] GetPolicy -> DEBU 072 Returning dummy reject all policy because Readers could not be found in Channel/Consortiums/Readers 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 073 Proposed new policy Readers for Channel 2018-12-05 06:55:44.255 UTC [policies] GetPolicy -> DEBU 074 Returning dummy reject all policy because Writers could not be found in Channel/Consortiums/Writers 2018-12-05 06:55:44.255 UTC [policies] NewManagerImpl -> DEBU 075 Proposed new policy Writers for Channel 2018-12-05 06:55:44.256 UTC [common/configtx] addToMap -> DEBU 076 Adding to config map: [Group] /Channel 2018-12-05 06:55:44.256 UTC [common/configtx] addToMap -> DEBU 077 Adding to config map: [Group] /Channel/Orderer 2018-12-05 06:55:44.256 UTC [common/configtx] addToMap -> DEBU 078 Adding to config map: [Group] /Channel/Orderer/OrdererOrg ```

ArpitKhurana1 (Wed, 05 Dec 2018 07:17:57 GMT):
I think its probably because , its not able to find msp files in /etc/hyperledger/msp/peerOrg1/ . I dont what should this path be, i have tried peerLp, peerlp, lpMSP instead of peerOrg1 . Nothing works

ArpitKhurana1 (Wed, 05 Dec 2018 07:19:20 GMT):
Here org is lp and mspid is lpMSP

VasiliyPudgev (Wed, 05 Dec 2018 07:31:07 GMT):
Orderer recorded without errors block after instantiate chaincode, container with chaincode, works correctly without errors. But the record did not appear in the couchdb. In the logs of the database only a record that my chaincode was not found.

VasiliyPudgev (Wed, 05 Dec 2018 08:17:01 GMT):
In the peer logs I found the line: [lscc] putChaincodeCollectionData -> DEBU 290 No collection configuration specified How to fix this?

UnaiUrki (Wed, 05 Dec 2018 08:18:51 GMT):
Has joined the channel.

UnaiUrki (Wed, 05 Dec 2018 08:19:38 GMT):
Hi, how can I define initial multi-org configuration policy? Where is the info about that?

lepar (Wed, 05 Dec 2018 09:37:42 GMT):
@VasiliyPudgev Did you create a config file that you instantiate with the chaincode?

lepar (Wed, 05 Dec 2018 09:38:02 GMT):
@UnaiUrki Configtx file

UnaiUrki (Wed, 05 Dec 2018 09:56:08 GMT):
@lepar what config file are you talking about?

UnaiUrki (Wed, 05 Dec 2018 09:56:08 GMT):
@lepar whats config file are you talking about?

lepar (Wed, 05 Dec 2018 09:57:54 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/private_data_tutorial.html collections_config.json

UnaiUrki (Wed, 05 Dec 2018 10:04:55 GMT):
but that file is for Private Data collections, isnt it? I think that the initial multi-org configuration policy is talking about that https://hyperledger-fabric.readthedocs.io/en/release-1.3/policies.html#policy-defaults but Im not sure.

VasiliyPudgev (Wed, 05 Dec 2018 11:22:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EizfJ4mtmyh6mihSy) @lepar @UnaiUrki Did not quite understand ... What is the configuration file?

VasiliyPudgev (Wed, 05 Dec 2018 11:22:23 GMT):
sorry, not for you

UnaiUrki (Wed, 05 Dec 2018 11:23:19 GMT):
ok, dont worry

VasiliyPudgev (Wed, 05 Dec 2018 11:23:20 GMT):
@lepar config file from private_data_tutorial?

VasiliyPudgev (Wed, 05 Dec 2018 11:26:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EizfJ4mtmyh6mihSy) @lepar I am using version 1.1

AndresMartinezMelgar.itcl (Wed, 05 Dec 2018 11:29:54 GMT):
From the peer command, is there any way to see all the blocks in the chain? I can only see the last one with the command "peer channel getinfo -c mychannel -or orderer.example.com:7050"

VarunVerma (Wed, 05 Dec 2018 11:30:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wfb7rQHiGYne5pGXG) @alfa @alfa can you please elaborate it like how composite key will look and it json struct defination

VasiliyPudgev (Wed, 05 Dec 2018 11:47:07 GMT):
In general, an index in couchdb is not created...

haggis (Wed, 05 Dec 2018 11:52:45 GMT):
Hi guys. Given you have the marbles sample and a client does not only want to read the marble, but also wants to receive information about the transaction, which created it originally. How would you accomplish this? In Solidity I'd just let Web3 filter for a given event for a given marble name. Then I'd receive information about the tx which emitted the event automatically. How does this work in Fabric?

haggis (Wed, 05 Dec 2018 12:10:53 GMT):
Answer: getHistoryForKey()

pujabhattad (Wed, 05 Dec 2018 12:20:35 GMT):
Has joined the channel.

pujabhattad (Wed, 05 Dec 2018 12:21:04 GMT):
While specifying endorsement policy, MSPID.Member/MSPID.Admin , how peer decides to endorse the transaction as Member or Admin? Can there be a case where a peer ( Peer0 part of Org1) is not an admin, but endorsement policy requires it (Org1.Admin). Is there any good example demonstrating negative scenario for endorsement policies

haggis (Wed, 05 Dec 2018 12:23:18 GMT):
@pujabhattad this only depends on WHO SIGNED THE TRANSACTION. Also peers don't have roles. It's the clients which are signing transactions who have roles.

haggis (Wed, 05 Dec 2018 12:24:18 GMT):
Client = User; Peer = Node

lepar (Wed, 05 Dec 2018 12:35:19 GMT):
@VasiliyPudgev not supported in v 1.1

lepar (Wed, 05 Dec 2018 12:35:56 GMT):
@UnaiUrki, sorry, link wasn't for u hahah but the policies are in the configtx file

VasiliyPudgev (Wed, 05 Dec 2018 12:57:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WvhKkwHT49WQksQzn) @lepar That is, I need to upgrade to version 1.3 in order for the chaincode information to be written to couchdb? And write a configuration file for chaincode?

dave.enyeart (Wed, 05 Dec 2018 13:04:39 GMT):
@VarunVerma For an example of creating a composite key for the purpose of query see

dave.enyeart (Wed, 05 Dec 2018 13:04:45 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.3/chaincode/marbles02/go/marbles_chaincode.go#L217-L230

dave.enyeart (Wed, 05 Dec 2018 13:05:01 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.3/chaincode/marbles02/go/marbles_chaincode.go#L436-L494

dave.enyeart (Wed, 05 Dec 2018 13:05:34 GMT):
Or see CouchDB docs for JSON query examples

lepar (Wed, 05 Dec 2018 13:06:37 GMT):
@VasiliyPudgev Couchdb is used for last state only, meaning it will only write the lasat state of the asset, not the history.

lepar (Wed, 05 Dec 2018 13:06:49 GMT):
If it's not writing the last state then it's being setup wrong

muthu31 (Wed, 05 Dec 2018 13:23:08 GMT):
Has joined the channel.

muthu31 (Wed, 05 Dec 2018 13:23:41 GMT):
Hi, I am facing issue to enroll admin in Fabric. I am getting same issue like this link https://jira.hyperledger.org/browse/FAB-8637 Failed to enroll admin :Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

muthu31 (Wed, 05 Dec 2018 13:24:12 GMT):
Anyone kindly help me to fix this issue

AndreiLovin (Wed, 05 Dec 2018 13:29:45 GMT):
Hello, I'm trying to integrate a NodeJS server over my fully functional multi-host fabric network. The only issue I have is that I can't invoke using the REST calls. I'm getting the following error: asyncMiddleware Error: Failed to connect before the deadline URL:grpcs://orderer.test.com:7050 at checkState (/home/pc-01/fabric-samples/project/fabric-starter-rest/node_modules/grpc/src/client.js:720:16) This is the NodeJS server I'm using: https://github.com/olegabu/fabric-starter-rest

VasiliyPudgev (Wed, 05 Dec 2018 13:33:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SxJjvfZfwXhinJM7Q) @lepar The fact is that when I try to perform the function chaincode, the peer tries to find it in couchdb, but does not find it, please tell me how to overcome this situation? : D

lepar (Wed, 05 Dec 2018 13:57:19 GMT):
Trace the logs and see how you're writing to the blockchain

lepar (Wed, 05 Dec 2018 13:57:35 GMT):
It's supposed to be writing to the ledger and couch

dave.enyeart (Wed, 05 Dec 2018 14:06:56 GMT):
@VasiliyPudgev Go through the marbles02 couchdb tutorial so that you fully understand a working scenario first: https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html

VasiliyPudgev (Wed, 05 Dec 2018 14:24:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SKmXdiAgqyTq2Xj5y) @dave.enyeart Thanks

ruairih (Wed, 05 Dec 2018 14:49:41 GMT):
quick question. So if you have two orgs with a peer each on the channel, the endorcement policy is that both peers need to sign a transaction. So if you upgrade the chaincode on one node, but not the other - should transactions fail until the other node is upgraded? Because it cannot simulate the transaction? Or should it just fail for new logic in the upgraded network which isnt present on the nonupgraded peer?

VasiliyPudgev (Wed, 05 Dec 2018 14:53:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SKmXdiAgqyTq2Xj5y) @dave.enyeart Can't I use the -c flag to build a json file?

vnea (Wed, 05 Dec 2018 14:59:27 GMT):
Has joined the channel.

vnea (Wed, 05 Dec 2018 14:59:33 GMT):
Hello

vnea (Wed, 05 Dec 2018 14:59:56 GMT):
I have question about the Docker image hyperledger/fabric-tools

vnea (Wed, 05 Dec 2018 15:02:21 GMT):
In the project *fabric-samples/basicnetwork*, if I look at the *docker-compose.yml* file, a service *cli* is declared with the Docker image *hyperledger/fabric-tools*, see : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/docker-compose.yml#L101 But what is the purpose of this service ? Is it mandatory to have it ?

advancer46 (Wed, 05 Dec 2018 15:13:56 GMT):
Has joined the channel.

ruien (Wed, 05 Dec 2018 15:42:55 GMT):
@vnea It's not mandatory. It's just a container with an admin identity set up in the environment and appropriate binaries on the path, so that you can conveniently execute peer commands and administer the network.

ruien (Wed, 05 Dec 2018 15:45:46 GMT):
@ruairih Neither of these should happen initially, because installing the new version of the chaincode on a peer just makes that new version available there. There's no concept of "upgrading the chaincode on one peer only", because `peer chaincode upgrade` (like `peer chaincode instantiate`) is a channel-wide operation. If you *do* that upgrade, and a peer doesn't have that version available, then transactions will fail because they can't satisfy the endorsement policy. A peer won't run an old version just because it doesn't have the new version.

Shirikatsu (Wed, 05 Dec 2018 15:46:15 GMT):
Has joined the channel.

vnea (Wed, 05 Dec 2018 15:50:12 GMT):
@ruien Ok thank you but the *peer* command is normally executed from a *peer* service (=Docker image *hyperledger/fabric-peer*), am I right ?

vnea (Wed, 05 Dec 2018 15:50:47 GMT):
And why in this example the cli has the chaincode ? https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/docker-compose.yml#L118

ruien (Wed, 05 Dec 2018 15:53:24 GMT):
This isn't true -- at least, I don't usually run the `peer` command from a peer. I usually run it from a client machine. It has the chaincode because you'd be issuing the chaincode installation commands from that client. All of the administration tasks, like creating and joining a channel, setting anchor peers, installing, instantiating, invoking, and querying chaincode are all done from a client. It doesn't have to be (and usually isn't, but can be) an actual peer machine (or, equivalently in your case, container).

ruien (Wed, 05 Dec 2018 15:54:28 GMT):
Think of the peer as a server which runs `peer node start`, and the cli as a client running the peer commands, communicating with that server over the network.

ruien (Wed, 05 Dec 2018 15:54:28 GMT):
Think of the peer as a server which runs `peer node start`, and the cli as a client running the peer commands, communicating with that server (and also the orderers) over the network.

ruien (Wed, 05 Dec 2018 15:54:28 GMT):
Think of the peer as a server which runs `peer node start`, and the cli as a client running the peer commands, communicating with that server (and also with the ordering service) over the network.

vnea (Wed, 05 Dec 2018 16:00:39 GMT):
I see. I'm a bit confused by the example. If you look at the *docker-compose.yml* : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/docker-compose.yml#L50 , a *peer container* is declared. And then after starting containers, a channel is created and the peer join the channel : - create channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L24 - join channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L26 And if you check closely to the *docker exec* command, the command command is run on the peer container : *docker exec -e ... peer0.org1.example.com*

vnea (Wed, 05 Dec 2018 16:00:39 GMT):
I see. I'm a bit confused by the example. If you look at the *docker-compose.yml* : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/docker-compose.yml#L50 , a *peer container (peer0.org1.example.com) is declared. And then after starting containers, a channel is created and the peer join the channel : - create channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L24 - join channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L26 And if you check closely to the *docker exec* command, the command command is run on the peer container : *docker exec -e ... peer0.org1.example.com*

vnea (Wed, 05 Dec 2018 16:00:39 GMT):
I see. I'm a bit confused by the example. If you look at the *docker-compose.yml* : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/docker-compose.yml#L50 , a *peer container* (peer0.org1.example.com) is declared. And then after starting containers, a channel is created and the peer join the channel : - create channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L24 - join channel : https://github.com/hyperledger/fabric-samples/blob/53ae43530468426e23e5638fce157ec42dbeaa80/basic-network/start.sh#L26 And if you check closely to the *docker exec* command, the command command is run on the peer container : *docker exec -e ... peer0.org1.example.com*

ruien (Wed, 05 Dec 2018 16:03:17 GMT):
I can't argue with that -- you're right, and I'm not sure why it was decided to do those commands in that container. You certainly can, but I would usually do this from the client remotely. It doesn't really matter where you're doing anything from; all that does matter is that you're using the right identities.

vnea (Wed, 05 Dec 2018 16:06:51 GMT):
Ok I see, thank you very much :)

ruairih (Wed, 05 Dec 2018 16:24:20 GMT):
@ruien yes, thanks, that is what I thought, however I managed to upgrade the chaincode with it only installed on one peer, which is strange

ruairih (Wed, 05 Dec 2018 16:24:22 GMT):
{ "identities": [ { "role": { "name": "member", "mspId": "Org1MSP" } }, { "role": { "name": "member", "mspId": "Org2MSP" } } ], "policy": { "2-of": [ { "signed-by": 0 }, { "signed-by": 1 } ] } }

vnea (Wed, 05 Dec 2018 16:29:07 GMT):
I have one more question : I have an Orderer Service O1, two organizations R1 and R2. Now I want to create a channel between R1 and R2 with the command *peer channel create -o orderer...*. But who should create the channel ?

vnea (Wed, 05 Dec 2018 16:31:31 GMT):
Logically it is R1 or R2, is it right ?

nflaig (Wed, 05 Dec 2018 16:34:23 GMT):
Has joined the channel.

nflaig (Wed, 05 Dec 2018 16:39:59 GMT):
Hey guys, I want to do the "Commercial paper tutorial" but in the `fabric-samples` repository there is no `commercial-paper` directory which is needed for the tutorial. Since this tutorial seems to be outdated which one is recommended to get an overview of hyperledger fabric and writing chaincode?

deelthor (Wed, 05 Dec 2018 16:58:26 GMT):
Has joined the channel.

ruien (Wed, 05 Dec 2018 17:00:14 GMT):
@vnea Yes, R1 or R2 would create the channel, and the other would subsequently join it.

ruien (Wed, 05 Dec 2018 17:02:01 GMT):
@ruairih I think you are supposed to be able to upgrade it even if it's only installed on one peer. Whether or not transactions that rely on that chaincode will be able to satisfy the endorsement policy is a separate matter.

ruien (Wed, 05 Dec 2018 17:02:01 GMT):
@ruairih I think you are supposed to be able to upgrade it even if it's only installed on one peer. Whether or not transactions that rely on that chaincode will be able to satisfy the endorsement policy after the upgrade is a separate matter.

deelthor (Wed, 05 Dec 2018 17:06:26 GMT):
Hey guys! I am a bit lost. We have a fabric network with 2 peers and 2 couch dbs. At some point it seems, that nothing is written to the ledger anymore. The peers seem to work and are also endorsing new transactions. Only after a restart of the peers I can see that the data is written to the Ledger. Does this sound familiar to anyone? Any help would be greatly appreciated.

ruairih (Wed, 05 Dec 2018 17:07:15 GMT):
ok, thanks, that seems to be what I am seeing, will test if the transaction fail or not @ruien

ruien (Wed, 05 Dec 2018 17:09:44 GMT):
@deelthor does your chaincode (in particular VSCC) ever throw a `validation.ExecutionFailureError`? This can cause peers to stop processing until being restarted.

deelthor (Wed, 05 Dec 2018 17:11:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bsvCPXyciDgBCvCEp) @ruien I will have a look at the logs. (btw we used Hyperledger Composer to writhe the chaincode).

ruien (Wed, 05 Dec 2018 17:13:24 GMT):
It's just a thought. I don't know anything about composer.

deelthor (Wed, 05 Dec 2018 17:14:02 GMT):
So this would cause the peer to stop writing to the CouchDB but it will still endorse and simulate transactions?

ruien (Wed, 05 Dec 2018 17:16:08 GMT):
I can't remember entirely, but I *thought* it would cause the peer to stop simulating and endorsing transactions. But, it's the only thing related to "peer stops working" that I can recall.

vnea (Wed, 05 Dec 2018 17:21:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qKPdnkvEYxLGEj4dG) @ruien Okay thank you. And if I want too define who is allowed to join the channel, is it in the *configtx.yaml* file like this : Profiles: OrdererGenesisWith2Orgs: <<: *ChannelDefaults Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Capabilities: <<: *OrdererCapabilities Consortiums: SampleConsortium: Organizations: - *Org1 - *Org2 ChannelWith2Orgs: <------- HERE ? Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 Capabilities: <<: *ApplicationCapabilities

deelthor (Wed, 05 Dec 2018 17:21:04 GMT):
Thanks a lot. But I guess we ware experiencing it the other way around. Simulation and endorsement still works. But I wont see the transaction results.

Rajatsharma (Wed, 05 Dec 2018 20:36:05 GMT):
I was trying to make GRPC request to another docker container from a self-made System Chaincode but I'm receiving this error: ``` panic: /debug/requests is already registered. You may have two independent copies of golang.org/x/net/trace in your binary, trying to maintain separate state. This may involve a vendored copy of golang.org/x/net/trace. goroutine 1 [running]: golang.org/x/net/trace.init.0() /opt/gopath/src/golang.org/x/net/trace/trace.go:117 +0x151 plugin.open(0xc4204ae0a0, 0xe, 0xc4200da0d0, 0x0, 0x0) /opt/go/src/plugin/plugin_dlopen.go:113 +0xb21 plugin.Open(0xc4204ae0a0, 0x11, 0x166b2e0, 0xc4200da0d0, 0x0) /opt/go/src/plugin/plugin.go:32 +0x35 github.com/hyperledger/fabric/core/scc.loadPlugin(0xc4204ae0a0, 0x11, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/core/scc/loadsysccs.go:70 +0x175 github.com/hyperledger/fabric/core/scc.loadSysCCsWithConfig(0xc42031e170, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/core/scc/loadsysccs.go:51 +0x123 github.com/hyperledger/fabric/core/scc.loadSysCCs.func1() /opt/gopath/src/github.com/hyperledger/fabric/core/scc/loadsysccs.go:44 +0x97 sync.(*Once).Do(0x1f0d100, 0x15c8418) /opt/go/src/sync/once.go:44 +0xbe github.com/hyperledger/fabric/core/scc.loadSysCCs(0xc42030c370, 0x0, 0xc420053c00, 0x14aef40) /opt/gopath/src/github.com/hyperledger/fabric/core/scc/loadsysccs.go:38 +0x39 github.com/hyperledger/fabric/core/scc.CreatePluginSysCCs(0xc42030c370, 0xc4201990a0, 0x166ae60, 0xc42030c370) /opt/gopath/src/github.com/hyperledger/fabric/core/scc/register_pluginsenabled.go:15 +0x40 github.com/hyperledger/fabric/peer/node.registerChaincodeSupport(0xc4201b2150, 0xc420287520, 0x1b, 0x1661b20, 0xc4200f20d0, 0xc4204c0f90, 0x164fda0, 0xc42039b9c0, 0xc42024ea00, 0xc4204bbd50, ...) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:593 +0x752 github.com/hyperledger/fabric/peer/node.startChaincodeServer(0xc420036102, 0x16, 0x164fda0, 0xc42039b9c0, 0xc42024ea00, 0xc4204bbd40, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:628 +0x34b github.com/hyperledger/fabric/peer/node.serve(0x1f0d028, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:230 +0x9f0 github.com/hyperledger/fabric/peer/node.glob..func1(0x1e04c40, 0x1f0d028, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:112 +0x9c github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x1e04c40, 0x1f0d028, 0x0, 0x0, 0x1e04c40, 0x1f0d028) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:698 +0x46d github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1e052a0, 0x0, 0x1e045e0, 0x1e053e0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:783 +0x2e4 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1e052a0, 0xc4203c5f30, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:736 +0x2b main.main() /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:52 +0x2e5 ``` Could you help me out with this?

Rajatsharma (Wed, 05 Dec 2018 20:36:23 GMT):
This is my System chaincode: ``` package main import ( "github.com/hyperledger/fabric/core/chaincode/shim" "context" "fmt" "log" "database/databasepb" "google.golang.org/grpc" pb "github.com/hyperledger/fabric/protos/peer" ) // New returns an implementation of the chaincode interface func New() shim.Chaincode { return &scc{} } type scc struct{} // Init implements the chaincode shim interface func (s *scc) Init(stub shim.ChaincodeStubInterface) pb.Response { fmt.Println("Hello I'm a client") return shim.Success(nil) } // Invoke implements the chaincode shim interface func (s *scc) Invoke(stub shim.ChaincodeStubInterface) pb.Response { fmt.Println("Hello I'm a client") cc, err := grpc.Dial("localhost:50051", grpc.WithInsecure()) if err != nil { log.Fatalf("could not connect: %v", err) } defer cc.Close() c := databasepb.NewDatabaseServiceClient(cc) // fmt.Printf("Created client: %f", c) //doUnary(c) fmt.Println("Starting to do a Unary RPC...") req := &databasepb.DatabaseRequest{ Database: &databasepb.Database{ Name: "Rajat", token: "qde@!5806825275", }, } res, err := c.Database(context.Background(), req) if err != nil { log.Fatalf("error while calling RPC: %v", err) log.Printf("Response from RPC: %v", res.Result) return shim.Success(nil) } func main() {} ```

Pguard (Wed, 05 Dec 2018 21:25:00 GMT):
Has joined the channel.

Pguard (Wed, 05 Dec 2018 21:26:29 GMT):
pguardado82@gmail.com 4:06 PM (19 minutes ago) to jignesh In Build your first network, is there a way to pass a string when initiating the genesis block? For example a string of DNA, I’d like to first see how I can have the ledger hold characters and then load 3G of data (Complete human genome) to the ledger.

Pguard (Wed, 05 Dec 2018 21:29:00 GMT):
Is this possible?

peters (Wed, 05 Dec 2018 22:25:00 GMT):
Has joined the channel.

TeeJay (Thu, 06 Dec 2018 00:21:13 GMT):
Has joined the channel.

TeeJay (Thu, 06 Dec 2018 00:22:41 GMT):
Question for a school project I need to revieuw the Hyper ledger/ Hyper Ledger Fabric code on security aspects, Where can I get this code?

TeeJay (Thu, 06 Dec 2018 00:23:23 GMT):
And is the full code even accessible for us or is it partially private

dave.enyeart (Thu, 06 Dec 2018 02:28:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GTR5TRGaYryAuuMRc) @nflaig fabcar is the best tutorial/sample to start with in the released v1.3: https://hyperledger-fabric.readthedocs.io/en/release-1.3/write_first_app.html https://github.com/hyperledger/fabric-samples/tree/release-1.3/fabcar. commercial-paper is a more comprehensive tutorial/sample in master for the upcoming v1.4 release: https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html https://github.com/hyperledger/fabric-samples/tree/master/commercial-paper

VarunVerma (Thu, 06 Dec 2018 05:05:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MQnAwoHcg7hMWSxCv) @dave.enyeart thanks

sayyamahmed (Thu, 06 Dec 2018 05:40:12 GMT):
helloe everyone i just try to run balance transfer tutorial from fabric sample but i cant instantiate chaincode why???/ error shows bat proposal

sayyamahmed (Thu, 06 Dec 2018 05:40:12 GMT):
hellow everyone i just try to run balance transfer tutorial from fabric sample but i cant instantiate chaincode why???/ error shows bad proposal

sayyamahmed (Thu, 06 Dec 2018 05:40:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kjrdZ576QrqYywNWu) @knagware9 all container already up

ravilf (Thu, 06 Dec 2018 05:41:11 GMT):
Has joined the channel.

knagware9 (Thu, 06 Dec 2018 05:44:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SRNigW6d69QYuB6CB) @sayyamahmed share full error

mallikarjunasai995 (Thu, 06 Dec 2018 05:47:28 GMT):
where are assets stored in blockchain network ? is it only transaction data that is storing if so then wat about assets

ravilf (Thu, 06 Dec 2018 05:48:42 GMT):
can someone please help me understand how I can start contributing to the projects? TIA

sayyamahmed (Thu, 06 Dec 2018 05:50:18 GMT):

Clipboard - December 5, 2018 9:50 PM

sayyamahmed (Thu, 06 Dec 2018 05:51:07 GMT):

Clipboard - December 5, 2018 9:50 PM

sayyamahmed (Thu, 06 Dec 2018 05:51:07 GMT):

Clipboard - December 5, 2018 9:50 PM

sayyamahmed (Thu, 06 Dec 2018 05:51:07 GMT):

Clipboard - December 5, 2018 9:50 PM

sayyamahmed (Thu, 06 Dec 2018 05:51:22 GMT):

Clipboard - December 5, 2018 9:51 PM

sayyamahmed (Thu, 06 Dec 2018 05:53:18 GMT):

Clipboard - December 5, 2018 9:53 PM

knagware9 (Thu, 06 Dec 2018 05:57:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iX63p4pqgquf79975) @sayyamahmed First can you check all your conatiner is up ,orderer is running and second increase the timeout parameter in instantiate.js file and try again

MuhammedHafil (Thu, 06 Dec 2018 06:01:41 GMT):
what is the best way to make Authentication to Fabric? Currently, I'm maintaining a traditional database So, When a User wants to register I save login credentials along with MSP Org to a database and register the user to Fabric CA When a user authenticated successfully with username and password it will return the user's CA enrollment ID and MSP then I will make a token with JWT for further communications. (Like in balance transfer example) Is there any better way?

MuhammedHafil (Thu, 06 Dec 2018 06:01:51 GMT):
Currently, in balance transfer example, User Keys are stored in directories, is it safe?

sheetal-hlf (Thu, 06 Dec 2018 06:25:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fEJyJhJfXmaKEcuT9) @MuhammedHafil user keys can be stored on couchdb as well

sheetal-hlf (Thu, 06 Dec 2018 06:26:06 GMT):
dont confuse it with the stateDB

sheetal-hlf (Thu, 06 Dec 2018 06:26:06 GMT):
dont confuse it with the stateDB; I did use following functions from Client to change the default place to store private key newCryptoSuite() setCryptoSuite() setStateStore()

vishrutJha (Thu, 06 Dec 2018 06:26:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iNPKZWxH2dKLrbhYZ) This question has been answered in #hyperledger-explorer - closing

mreddychitti (Thu, 06 Dec 2018 06:53:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MopT4c8h87g63yzaY) @dave.enyeart Thanks For the response, will try this..

AndreiLovin (Thu, 06 Dec 2018 08:06:57 GMT):
Hello, I'm trying to integrate a NodeJS server over my fully functional multi-host fabric network. The only issue I have is that I can't invoke using the REST calls. I'm getting the following error: asyncMiddleware Error: Failed to connect before the deadline URL:grpcs://orderer.test.com:7050 at checkState (/home/pc-01/fabric-samples/project/fabric-starter-rest/node_modules/grpc/src/client.js:720:16) This is the NodeJS server I'm using: https://github.com/olegabu/fabric-starter-rest

MuhammedHafil (Thu, 06 Dec 2018 09:22:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vxs84DDCacKLXizPR) @sheetal-hlf Thanks, Can you share any code if you have?

romanychda (Thu, 06 Dec 2018 09:27:29 GMT):
Has joined the channel.

halilkalkan (Thu, 06 Dec 2018 10:02:25 GMT):
Hello guys, do you know how to implement key-level endorsement policy. I couldn't find any samples using SetPrivateDataValidationParameter(collection, key string, ep []byte) function. I asked on #fabric-chaincode-dev but couldnt get answer yet.

toanhd (Thu, 06 Dec 2018 10:40:45 GMT):
Has joined the channel.

toanhd (Thu, 06 Dec 2018 10:41:30 GMT):
Hi everyone, plz someone let me know what this error occur `Error: error validating peer connection parameters: number of peer addresses (1) does not match the number of TLS root cert files (2)`

yacovm (Thu, 06 Dec 2018 10:51:53 GMT):
you passed several TLS CAs

yacovm (Thu, 06 Dec 2018 10:51:57 GMT):
but you need to pass only 1

yacovm (Thu, 06 Dec 2018 10:52:02 GMT):
since you have a single peer address

yacovm (Thu, 06 Dec 2018 10:52:03 GMT):
@toanhd

toanhd (Thu, 06 Dec 2018 10:55:20 GMT):
how can i check that

toanhd (Thu, 06 Dec 2018 10:55:20 GMT):
thanks u verymuch, how can i check that

toanhd (Thu, 06 Dec 2018 10:55:40 GMT):
@yacovm

jkosecki (Thu, 06 Dec 2018 11:15:04 GMT):
Has joined the channel.

yacovm (Thu, 06 Dec 2018 11:16:40 GMT):
show me your commandline

jkosecki (Thu, 06 Dec 2018 11:32:06 GMT):
Hi, I have a single orderer-peer with one organization and channel running in Kubernetes. When I delete a peer pod and let it restart my app using JavaSDK is not able to reconnect to the peer anymore. One of the errors that I saw in the console was `2018-11-22 19:02:48.158 UTC [orderer/common/broadcast] Handle -> WARN 9a0 [channel: channel] Rejecting broadcast of config message from IP:PORT because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1`

jkosecki (Thu, 06 Dec 2018 11:32:32 GMT):
I'm trying to reproduce it locally using docker-compose but I didn't manage to get exactly the same error

jkosecki (Thu, 06 Dec 2018 11:34:22 GMT):
My `docker-compose up` spins up one orderer and one peer and then my spring-boot app installs chaincode on startup - I can see a new chaincode container with `docker ps`

jkosecki (Thu, 06 Dec 2018 11:35:08 GMT):
Then I've simply stopped and removed peer and chaincode container and started a new peer with `docker-compose up peer`

jkosecki (Thu, 06 Dec 2018 11:36:31 GMT):
In this case the error is different ``` peer | 2018-12-06 11:10:44.853 UTC [protoutils] ValidateProposalMessage -> WARN 037 channel [audit]: MSP error: channel doesn't exist peer | 2018-12-06 11:10:47.524 UTC [common/deliver] Handle -> WARN 038 Error reading from 172.18.0.1:49218: rpc error: code = Canceled desc = context canceled ``` but my peer is not working correctly

jkosecki (Thu, 06 Dec 2018 11:38:14 GMT):
And that's what my spring-boot app logs: ``` 2018-12-06 11:10:44.832 DEBUG [audit-service,1d1432a5097431e3,1d1432a5097431e3,false] 7351 --- [ elastic-3] org.hyperledger.fabric.sdk.Channel : Channel channel send proposal to peer peer at url grpc://localhost:7051 2018-12-06 11:10:44.832 DEBUG [audit-service,1d1432a5097431e3,1d1432a5097431e3,false] 7351 --- [ elastic-3] org.hyperledger.fabric.sdk.Peer : peer.sendProposalAsync name: peer, url: grpc://localhost:7051 2018-12-06 11:10:44.862 ERROR [audit-service,1d1432a5097431e3,1d1432a5097431e3,false] 7351 --- [ elastic-3] org.hyperledger.fabric.sdk.Channel : Sending proposal to peer failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [channel] creator org [Org1MSP], cause=null} ```

jkosecki (Thu, 06 Dec 2018 11:39:11 GMT):
I've been battling with this issue for some days already. I'd be very grateful for any help

FaizulHassan (Thu, 06 Dec 2018 11:55:36 GMT):
Commercial Paper sample seems missing in Hyperledger git.. May I get the url for commercial paper sample ?

knagware9 (Thu, 06 Dec 2018 12:15:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=guA8eQ4MxaSTzwkxk) @halilkalkan Check this https://gerrit.hyperledger.org/r/#/c/26232/

knagware9 (Thu, 06 Dec 2018 12:16:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5Mi2AmjkMXh5b6m8S) @FaizulHassan https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

knagware9 (Thu, 06 Dec 2018 12:17:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9SfF6ZtpXq5N5ogrS) @jkosecki I think you need to clean network first and then restart the network ..this error we get when channel already exist..run first byfm.sh down and then up the network again

jkosecki (Thu, 06 Dec 2018 12:21:42 GMT):
@knagware9 But how can I avoid it in production? I've realized that we have an issue like that when I've started working on turning out solo fabric system into a cluster with two orderers and three peers to provide resilience. Then I've started testing the behaviour of the cluster and destroying orderers and peers

jkosecki (Thu, 06 Dec 2018 12:22:23 GMT):
And I'm pretty sure that's exactly a problem I was getting then as well. But I can't just clean and restart network when one of the peers dies in production

krabradosty (Thu, 06 Dec 2018 12:23:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AmvKQysbzzwX3KvQv) Moderators, could you give any comments, please? Is it a bug or my misunderstanding of how do Policies work?

knagware9 (Thu, 06 Dec 2018 12:24:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qo7NJYXL2vMQq4Bxd) @jkosecki okay ..not sure

YanLIU0822 (Thu, 06 Dec 2018 12:28:48 GMT):
orderer and peer start successfully but creating channel fails this is the content of hsots file 127.0.0.1 localhost 127.0.1.1 liuyan-HP 172.21.102.115 orderer.example.com 172.21.102.115 peer0.org1.example.com 172.21.102.115 peer1.org1.example.com 172.21.102.115 peer0.org2.example.com 172.21.102.115 peer1.org2.example.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters the errors are following grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE 2018-12-06 20:18:19.942 CST [grpc] Printf -> DEBU 03f pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, CONNECTING 2018-12-06 20:18:19.943 CST [grpc] Printf -> DEBU 040 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... 2018-12-06 20:18:19.943 CST [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE 2018-12-06 20:18:21.610 CST [grpc] Printf -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, CONNECTING 2018-12-06 20:18:21.610 CST [grpc] Printf -> DEBU 043 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... 2018-12-06 20:18:21.611 CST [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

FaizulHassan (Thu, 06 Dec 2018 12:46:06 GMT):

Clipboard - December 6, 2018 6:15 PM

FaizulHassan (Thu, 06 Dec 2018 12:46:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oBeECtRfJTJf6GwDN) @knagware9 thank you @knagware9 :) But may I get the git repo of the same ?

FaizulHassan (Thu, 06 Dec 2018 12:47:59 GMT):

Clipboard - December 6, 2018 6:17 PM

FaizulHassan (Thu, 06 Dec 2018 12:47:59 GMT):

Clipboard - December 6, 2018 6:17 PM

YanLIU0822 (Thu, 06 Dec 2018 12:59:10 GMT):
orderer and peer start successfully but creating channel fails this is the content of hsots file 127.0.0.1 localhost 127.0.1.1 liuyan-HP 172.21.102.115 orderer.example.com 172.21.102.115 peer0.org1.example.com 172.21.102.115 peer1.org1.example.com 172.21.102.115 peer0.org2.example.com 172.21.102.115 peer1.org2.example.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters the errors are following grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE 2018-12-06 20:18:19.942 CST [grpc] Printf -> DEBU 03f pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, CONNECTING 2018-12-06 20:18:19.943 CST [grpc] Printf -> DEBU 040 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... 2018-12-06 20:18:19.943 CST [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE 2018-12-06 20:18:21.610 CST [grpc] Printf -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, CONNECTING 2018-12-06 20:18:21.610 CST [grpc] Printf -> DEBU 043 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 172.21.102.115:7050: connect: connection refused". Reconnecting... 2018-12-06 20:18:21.611 CST [grpc] Printf -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc4204eb870, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

nikusha (Thu, 06 Dec 2018 13:10:29 GMT):
Profiles: TwoOrgGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: InsuranceConsortium: Organizations: - *ShopOrg - *InsuOrg TwoOrgChannel: Consortium: InsuranceConsortium Application: <<: *ApplicationDefaults Organizations:

mallikarjunasai995 (Thu, 06 Dec 2018 13:49:04 GMT):
does peers perform the signing transaction or users in that peers will do that ?

Shirikatsu (Thu, 06 Dec 2018 14:13:42 GMT):
Hi all, I'm new to Hyperledger and I have a stupid question: What exactly is an MSP, how is it stored? Is it a file? How are channel and network MSPs stored? Why is it described as an abstract interface when it's always referenced to use the Certificate Authority architecture whilst also suggesting that MSPs can be designed to handle identities arbitrarily depending on implementation?

Shirikatsu (Thu, 06 Dec 2018 14:13:42 GMT):
Hi all, I'm new to Hyperledger and I have a stupid question: What exactly is an MSP, how is it stored? Is it a file? How are channel and network MSPs stored? Why is it described as an abstract interface when it's always referenced to use the Certificate Authority architecture whilst also suggesting that MSPs can be designed to handle identities arbitrarily depending on implementation? Where are endorsement policies stored?

Shirikatsu (Thu, 06 Dec 2018 14:13:42 GMT):
Hi all, I'm new to Hyperledger and I have a few stupid(?) questions: What exactly is an MSP, how is it stored? Is it a file? How are channel and network MSPs stored? Why is it described as an abstract interface when it's always referenced to use the Certificate Authority architecture whilst also suggesting that MSPs can be designed to handle identities arbitrarily depending on implementation? Where are endorsement policies stored?

yacovm (Thu, 06 Dec 2018 14:15:51 GMT):
did you read https://hyperledger-fabric.readthedocs.io/en/release-1.2/membership/membership.html ?

Shirikatsu (Thu, 06 Dec 2018 14:16:03 GMT):
@yacovm Yes I did :)

Shirikatsu (Thu, 06 Dec 2018 14:16:10 GMT):
Well I read 1.3

mallikarjunasai995 (Thu, 06 Dec 2018 14:16:22 GMT):
does peers perform the signing transaction or users in that peers will do that ?

yacovm (Thu, 06 Dec 2018 14:17:02 GMT):
so, there are 2 types of MSPs.... a local MSP and a channel MSP

yacovm (Thu, 06 Dec 2018 14:17:17 GMT):
a local MSP is used to verify non-channel context requests

yacovm (Thu, 06 Dec 2018 14:17:38 GMT):
channel MSPs are used to verify channel contexted stuff like requests, transactions, etc.

yacovm (Thu, 06 Dec 2018 14:17:57 GMT):
the local MSP also contains a signing identity that enables the peer to sign requests

yacovm (Thu, 06 Dec 2018 14:18:20 GMT):
the local MSP, is assembled from the files under `msp` folder.

yacovm (Thu, 06 Dec 2018 14:18:23 GMT):
look in `sampleconfig/msp`

yacovm (Thu, 06 Dec 2018 14:18:36 GMT):
and the channel MSPs are assembled from the latest config block in each channel

yacovm (Thu, 06 Dec 2018 14:19:02 GMT):
so, when a peer receives a config update via a config block - it reaches to that channel, and re-creates all instances of the MSPs

yacovm (Thu, 06 Dec 2018 14:19:05 GMT):
for that channel

Shirikatsu (Thu, 06 Dec 2018 14:19:41 GMT):
@yacovm Thanks for the run down! I have a few questions

Shirikatsu (Thu, 06 Dec 2018 14:21:48 GMT):
In my mind it seemed intuitive how an MSP functioned locally (permission which identities can do what at the peer which meant it was all contextual around the specific peer) but I'm not sure how that looks for a channel MSP (and wasn't there a network MSP also?). Maybe I just need to take a look at the sample config MSPs, do you have a link? Thanks again :)

yacovm (Thu, 06 Dec 2018 14:22:07 GMT):
there is no such thing as network MSP...

yacovm (Thu, 06 Dec 2018 14:22:29 GMT):
regarding sampleconfig: https://github.com/hyperledger/fabric/tree/release-1.3/sampleconfig/msp

Shirikatsu (Thu, 06 Dec 2018 14:22:36 GMT):
apparently there is https://hyperledger-fabric.readthedocs.io/en/release-1.2/membership/membership.html#msp-levels

yacovm (Thu, 06 Dec 2018 14:23:43 GMT):
well implementation wise there isn't

yacovm (Thu, 06 Dec 2018 14:24:35 GMT):
I guess maybe network MSP refers to the orderer's system channel MSP

yacovm (Thu, 06 Dec 2018 14:24:39 GMT):
but that's an MSP of a system channel

yacovm (Thu, 06 Dec 2018 14:25:01 GMT):
so, peer MSP and orderer MSPs from that document are just local MSPs

yacovm (Thu, 06 Dec 2018 14:25:09 GMT):
and channel MSP and network MSP are the same MSP

Shirikatsu (Thu, 06 Dec 2018 14:30:38 GMT):
Right, I think that makes more sense now :) So the sample config you linked is used to 'assemble' a local MSP, what would a network/channel MSP look like? It's just a bit confusing because intuitively it's clear that local MSPs define admins, users, or other identities and their permissions at the peer but how and what does a channel MSP look like or do? A better worded question would be: For a given peer, it will have a local MSP and a local copy of the channel MSP, what information does it hold that pertains relevancy to the peer and how does it store it? Sorry if the question doesn't make sense, it's all just a bit confusing

yacovm (Thu, 06 Dec 2018 14:31:27 GMT):
it looks just like the https://github.com/hyperledger/fabric/tree/release-1.3/sampleconfig/msp without the `signcerts` and the `keystore`

yacovm (Thu, 06 Dec 2018 14:31:41 GMT):
since it's used only for verifying

Shirikatsu (Thu, 06 Dec 2018 14:32:36 GMT):
So would it define who the orderers are on a channel for example?

yacovm (Thu, 06 Dec 2018 14:37:42 GMT):
yeah sort of

yacovm (Thu, 06 Dec 2018 14:37:52 GMT):
every channel MSP is mapped to an MSP ID

yacovm (Thu, 06 Dec 2018 14:37:58 GMT):
which is like the organization ID

mallikarjunasai995 (Thu, 06 Dec 2018 14:53:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W79PZDQoy5WcovykF) @yacovm An administrator B connects to the peer with an identity issued by RCA1 and stored in their local MSP. When B tries to install a smart contract on the peer, the peer checks its local MSP, ORG1-MSP, to verify that the identity of B is indeed a member of ORG1. A successful verification will allow the install command to complete successfully. Subsequently, B wishes to instantiate the smart contract on the channel. Because this is a channel operation, all organizations on the channel must agree to it. Therefore, the peer must check the MSPs of the channel before it can successfully commit this command. (Other things must happen too, but concentrate on the above for now.) Local MSPs are only defined on the file system of the node or user to which they apply. Therefore, physically and logically there is only one local MSP per node or user. However, as channel MSPs are available to all nodes in the channel, they are logically defined once in the channel configuration. However, a channel MSP is also instantiated on the file system of every node in the channel and kept synchronized via consensus. So while there is a copy of each channel MSP on the local file system of every node, logically a channel MSP resides on and is maintained by the channel or the network.

mallikarjunasai995 (Thu, 06 Dec 2018 14:54:07 GMT):
like this , if so id didn't get the second paragraph where we got the channel MSP's in the first place

nflaig (Thu, 06 Dec 2018 14:56:16 GMT):
@FaizulHassan switch the branch to master there you can find the `commercial-paper` folder

nikusha (Thu, 06 Dec 2018 15:05:45 GMT):
how to write policy for consortium in configtx.yaml ?

nikusha (Thu, 06 Dec 2018 15:06:02 GMT):
can someone provide little example ?

lijiachuan (Thu, 06 Dec 2018 15:27:14 GMT):
Has joined the channel.

lijiachuan (Thu, 06 Dec 2018 15:35:29 GMT):
Hi Team, I would like to get some best practices or rules about how should we use chaincode, I am not sure whether Chaincode should only be used to interact with ledger(storing and retrieving) or it is also fine to use chaincode to interact with off-ledger services. We have one planned process like this: one new created data needs to be encrypted and then pushed to an AWS S3 bucket, then we need to generate a hash of this encrypted data and store the hash to the ledger. So whether we can make the whole process in one chaincode, or some operations such as encrypt data and send to AWS S3 bucket is conducted in SDK and only doing the hashing and storing to ledger in chain code. Any suggestions? Thanks

yacovm (Thu, 06 Dec 2018 15:36:07 GMT):
you can interact with off-ledger services too

lijiachuan (Thu, 06 Dec 2018 15:37:01 GMT):
so that is not one bad practice for using chain code, right?

yacovm (Thu, 06 Dec 2018 15:37:41 GMT):
I'm not sure about the process

yacovm (Thu, 06 Dec 2018 15:37:57 GMT):
you're storing hash of encrypted data.... and what do you do with it?

yacovm (Thu, 06 Dec 2018 15:38:19 GMT):
I would store at least also hash of plaintext to ensure integrity

yacovm (Thu, 06 Dec 2018 15:38:31 GMT):
what if the encrypted data, can be decrypted into 2 different plaintexts?

yacovm (Thu, 06 Dec 2018 15:38:42 GMT):
I don't know how it is encrypted

lijiachuan (Thu, 06 Dec 2018 15:38:46 GMT):
when this encrypted data needs to be shared with some others in the channel, this hash can be used to verify whether that is the same version as generated

jkosecki (Thu, 06 Dec 2018 16:04:34 GMT):
Is adding a chaincode to peer using JavaSDK a good way or is it better to install and instantiate a chaincode using `peer chaincode` command?

SimonLV (Thu, 06 Dec 2018 16:14:10 GMT):
Has joined the channel.

SimonLV (Thu, 06 Dec 2018 16:16:43 GMT):
Hi, I'm a begineer and I'm trying to install fabric. I think I have all prerequis things installed, my docker version client/server is 18.09.0 but when I'm trying to launch it I got this error message : client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version Anyone know how to help me ?

ehuarotop (Thu, 06 Dec 2018 16:28:48 GMT):
Hi, someone here can help me with a little problem I have on Hyperledger explorer installation?

jrosmith (Thu, 06 Dec 2018 16:29:26 GMT):
@ehuarotop #hyperledger-explorer will be the best resource for you

ehuarotop (Thu, 06 Dec 2018 16:30:19 GMT):
@jrosmith thanks man. I'll move my problems to this channel :)

nikusha (Thu, 06 Dec 2018 17:42:24 GMT):
Can someone help me to write ChannelCreationPolicy in configtx.yaml, I have error: has invalid keys: ChannelCreationPolicy, I think I am writing this key at wrong place Profiles: TwoOrgGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: InsuranceConsortium: Organizations: - *ShopOrg - *InsuOrg ChannelCreationPolicy: Admins: Type: Signature Rule: "OR('InsuOrgMSP.admin)"

jkosecki (Thu, 06 Dec 2018 17:49:25 GMT):
Where can I find `core.yaml` for fabric 1.2.0?

jkosecki (Thu, 06 Dec 2018 17:49:25 GMT):
Where can I find sample `core.yaml` for fabric 1.2.0?

halilkalkan (Thu, 06 Dec 2018 17:53:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qDnt3rK2XZwY3mqxn) @knagware9 thank you so much :)

avokadokurdu (Thu, 06 Dec 2018 17:54:32 GMT):
Hi, I have a quick question. What is the default size for the genesis block? And also, if we consider the content of a genesis block, what components should it include?

toanhd (Fri, 07 Dec 2018 00:53:32 GMT):
@yacom

toanhd (Fri, 07 Dec 2018 00:53:32 GMT):
this is my cmd screen, problem happen when invoke chaincode

toanhd (Fri, 07 Dec 2018 01:24:55 GMT):

Clipboard - December 7, 2018 8:24 AM

toanhd (Fri, 07 Dec 2018 01:45:48 GMT):
oh i solve this problem

toanhd (Fri, 07 Dec 2018 01:46:01 GMT):
thank u verymuch @yacovm

mallikarjunasai995 (Fri, 07 Dec 2018 03:52:57 GMT):
what is the difference between ABAC(attribute based access control) and typical ACL (ACCESS CONTROL ) in fabric?

chandrika (Fri, 07 Dec 2018 04:29:54 GMT):
Has joined the channel.

chandrika (Fri, 07 Dec 2018 04:30:00 GMT):
Hi Experts,

chandrika (Fri, 07 Dec 2018 04:30:01 GMT):
Can you please help me with fabric-secure-chaincode ? I am facing some error while making peer service up using the command - create_peer.sh I am using the link - https://github.com/hyperledger-labs/fabric-secure-chaincode Thanks, Chandrika

pujabhattad (Fri, 07 Dec 2018 05:41:18 GMT):
In Fabric Sample, Balance Transfer, We register user using node sdk and then we create channel, join, install,instantiate,invoke chaincode using the same user's token. How Every user has all these accesses? Is Every user by default admin? How can we prevent this?

doyajii1 (Fri, 07 Dec 2018 05:46:52 GMT):
Has joined the channel.

doyajii1 (Fri, 07 Dec 2018 05:47:10 GMT):
Hello, I just heard there's rumor going around about hyperledger fabric v2.0 is that a rumor or do anyone know about it?

doyajii1 (Fri, 07 Dec 2018 05:47:10 GMT):
Hello, I just heard there's rumor going around about hyperledger fabric v2.0. Is that a rumor or do anyone know about it?

mallikarjunasai995 (Fri, 07 Dec 2018 05:57:30 GMT):
what is the difference between registering an user and enrolling an user?

doyajii1 (Fri, 07 Dec 2018 06:08:01 GMT):
i look up too and it seems register is just putting id/pw to CA and enrolling gives you certificates

doyajii1 (Fri, 07 Dec 2018 06:08:01 GMT):
i looked up on google and it seems register is just putting id/pw to CA and enrolling gives you certificates

muthu31 (Fri, 07 Dec 2018 06:41:08 GMT):

Clipboard - December 7, 2018 12:09 PM

muthu31 (Fri, 07 Dec 2018 06:41:08 GMT):

Clipboard - December 7, 2018 12:09 PM

ajaya-man (Fri, 07 Dec 2018 06:59:01 GMT):
Has joined the channel.

lay-z (Fri, 07 Dec 2018 07:00:36 GMT):
hey guys, do we have a channel for the node sdk and go sdk?

lay-z (Fri, 07 Dec 2018 07:00:43 GMT):
for connecting to fabric?

titoe218 (Fri, 07 Dec 2018 08:24:53 GMT):
hi everyone, my peer run on fabric-peer:latest and I got this error, anyone know how to fix it? I search some info in google, does fabric 1.3 not support event connect (port 7053) and chaincode connect (port 7052)? :( ``` 2018-12-07 08:16:19.487 UTC [endorser] ProcessProposal -> ERRO 36a [my-channel][c43d1210] simulateProposal() resulted in chaincode name:"my-chaincode" response status 500 for txid: c43d1210a4b68e3cae7ecf53f43547fd3ab0b9f79f45d4a67f5b0d6c93ff4e41 2018-12-07 08:18:17.723 UTC [endorser] callChaincode -> INFO 3ac [my-channel][b80dba0e] Entry chaincode: name:"my-chaincode" 2018-12-07 08:18:17.724 UTC [endorser] callChaincode -> INFO 3ad [my-channel][b80dba0e] Exit chaincode: name:"my-chaincode" (1ms) ```

pujabhattad (Fri, 07 Dec 2018 08:26:59 GMT):
fabric-ca-client register --id.name User1 --id.secret pwd1 --id.type user, how can we give role to User1 in this command?

jastisriradheshyam (Fri, 07 Dec 2018 09:16:30 GMT):
how can we change identity password in ca using node sdk

mallikarjunasai995 (Fri, 07 Dec 2018 10:09:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KNHuHZntMXmsSXaDL) @jastisriradheshyam while registering an user itself we will give id and password attributes may be you have to get back to the registering user ca client and then you have to do changes i think ......

mallikarjunasai995 (Fri, 07 Dec 2018 10:10:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L2DkrXPMgZwBgF2WP) @pujabhattad through attributes may be

mallikarjunasai995 (Fri, 07 Dec 2018 10:10:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pM9P6H99u7xXLK2JR) @doyajii1 thanks

mallikarjunasai995 (Fri, 07 Dec 2018 10:11:46 GMT):
where are we creating an asset and at what time it is persisting into the ledger

mallikarjunasai995 (Fri, 07 Dec 2018 10:11:47 GMT):
?

CorentinPacaud (Fri, 07 Dec 2018 11:03:24 GMT):
Hi all, I have a strange issue. I tried to deploy the fabcar example in NODE. but the `startFabric.sh node`cmd is stunk at this : ```# Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2018-12-07 10:59:21.127 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-12-07 10:59:21.254 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Creating cli ... done 2018-12-07 10:59:22.431 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-07 10:59:22.431 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-07 10:59:22.454 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: 2018-12-07 10:59:22.706 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-07 10:59:22.706 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc ```

CorentinPacaud (Fri, 07 Dec 2018 11:03:34 GMT):
Any idea ? It never end

CorentinPacaud (Fri, 07 Dec 2018 11:03:34 GMT):
Any idea ? It never ends

sayyamahmed (Fri, 07 Dec 2018 11:22:24 GMT):
hellow everyone can some tell me about how we can define roles in fabric

sayyamahmed (Fri, 07 Dec 2018 11:25:32 GMT):
if we cant define roles then what is the purpose of multiple pears in one one organization

dev.apprentice123 (Fri, 07 Dec 2018 11:27:15 GMT):
Has joined the channel.

YanLIU0822 (Fri, 07 Dec 2018 12:10:17 GMT):
hey how to set CORE_PEER_GOSSIP_BOOTSTRAP for odd peers for instance two orgs - Org1 Org2 Org1 has two peers Org2 has three peers how to set? can someone help me out Thanks

toanhd (Fri, 07 Dec 2018 12:17:51 GMT):
i think number of peers was defined in configtx.yaml file

YanLIU0822 (Fri, 07 Dec 2018 12:27:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jgjxuCZMHP4zW3bmd) @toanhd I knew but how config the list of peers (3 peers or more) for CORE_PEER_GOSSIP_BOOTSTRAP

toanhd (Fri, 07 Dec 2018 12:40:37 GMT):
just specify for every peers you want

dev.apprentice123 (Fri, 07 Dec 2018 13:00:46 GMT):
Hello all, I have a problem with verification of X.509 certificate. I am using fabric-sdk-java release 1.2. I added TLS connection and generated certs for orderer, peer and tls certs and enabled TLS by setting env variables in docker-compose file. The logs show that TLS connection is established (`HANDSHAKEN: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384`). The problem is when I query blockchain I get the following exception: ``` [2018-12-03 12:41:51,641] [qtp888611662-21] [ERROR][org.hyperledger.fabric.sdk.ProposalResponse:] verify: Cannot retrieve peer identity from ProposalResponse. Error is: X.509 not found org.hyperledger.fabric.sdk.exception.CryptoException: X.509 not found at org.hyperledger.fabric.sdk.security.CryptoPrimitives.getX509Certificate(CryptoPrimitives.java:245) at org.hyperledger.fabric.sdk.security.CryptoPrimitives.verify(CryptoPrimitives.java:319) at org.hyperledger.fabric.sdk.ProposalResponse.verify(ProposalResponse.java:133) at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:3630) at org.hyperledger.fabric.sdk.Channel.sendProposal(Channel.java:3515) at org.hyperledger.fabric.sdk.Channel.sendTransactionProposal(Channel.java:3101) at com.chainfire.firestore.fabric.Fabric.sendTransaction(Fabric.java:152) at com.chainfire.firestore.resources.Resource.addAsset(Resource.java:296) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) ``` Have any of you guys encountered this exception before? How can I make ProporsalResponse to retreive peer identity? What step could I be missing? I am not sure what steps should be taken to get pass the `verify` method. Just to mention chaincode is instantiated properly as it runs its Init function, but I cannot do any queries on it because of failed verify step. Thank you in advance for help.

dev.apprentice123 (Fri, 07 Dec 2018 13:04:36 GMT):
Hello all, I have a problem with verification of X.509 certificate. I am using fabric-sdk-java release 1.2. I added TLS connection and generated certs for orderer, peer and tls certs and enabled TLS by setting env variables in docker-compose file. The logs show that TLS connection is established (`HANDSHAKEN: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384`). The problem is when I query blockchain I get the following exception: ``` [2018-12-03 12:41:51,641] [qtp888611662-21] [ERROR][org.hyperledger.fabric.sdk.ProposalResponse:] verify: Cannot retrieve peer identity from ProposalResponse. Error is: X.509 not found org.hyperledger.fabric.sdk.exception.CryptoException: X.509 not found at org.hyperledger.fabric.sdk.security.CryptoPrimitives.getX509Certificate(CryptoPrimitives.java:245) at org.hyperledger.fabric.sdk.security.CryptoPrimitives.verify(CryptoPrimitives.java:319) at org.hyperledger.fabric.sdk.ProposalResponse.verify(ProposalResponse.java:133) at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:3630) at org.hyperledger.fabric.sdk.Channel.sendProposal(Channel.java:3515) at org.hyperledger.fabric.sdk.Channel.sendTransactionProposal(Channel.java:3101) at com.example.mychain.fabric.Fabric.sendTransaction(Fabric.java:152) at com.example.mychain.resources.Resource.addAsset(Resource.java:296) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) ``` Have any of you guys encountered this exception before? How can I make ProporsalResponse to retreive peer identity? What step could I be missing? I am not sure what steps should be taken to get pass the `verify` method. Just to mention chaincode is instantiated properly as it runs its Init function, but I cannot do any queries on it because of failed verify step. Thank you in advance for help.

dev.apprentice123 (Fri, 07 Dec 2018 13:07:22 GMT):
Hello all, I have a problem with verification of X.509 certificate. I am using fabric-sdk-java release 1.2. I added TLS connection and generated certs for orderer, peer and tls certs and enabled TLS by setting env variables in docker-compose file. The logs show that TLS connection is established (`HANDSHAKEN: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384`). The problem is when I query blockchain I get the following exception: ``` [2018-12-03 12:41:51,641] [qtp888888888-22] [ERROR][org.hyperledger.fabric.sdk.ProposalResponse:] verify: Cannot retrieve peer identity from ProposalResponse. Error is: X.509 not found org.hyperledger.fabric.sdk.exception.CryptoException: X.509 not found at org.hyperledger.fabric.sdk.security.CryptoPrimitives.getX509Certificate(CryptoPrimitives.java:245) at org.hyperledger.fabric.sdk.security.CryptoPrimitives.verify(CryptoPrimitives.java:319) at org.hyperledger.fabric.sdk.ProposalResponse.verify(ProposalResponse.java:133) at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:3630) at org.hyperledger.fabric.sdk.Channel.sendProposal(Channel.java:3515) at org.hyperledger.fabric.sdk.Channel.sendTransactionProposal(Channel.java:3101) at com.example.mychain.fabric.Fabric.sendTransaction(Fabric.java:152) at com.example.mychain.resources.Resource.addAsset(Resource.java:296) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) ``` Have any of you guys encountered this exception before? How can I make ProporsalResponse to retreive peer identity? What step could I be missing? I am not sure what steps should be taken to get pass the `verify` method. Just to mention chaincode is instantiated properly as it runs its Init function, but I cannot do any queries on it because of failed verify step. Thank you in advance for help.

lepar (Fri, 07 Dec 2018 13:21:12 GMT):
@dev.apprentice123 I've had that, still haven't solved it so I went back to Go and Node

lepar (Fri, 07 Dec 2018 13:21:42 GMT):
The invoke method seems to work but I then I get that error when querying

CorentinPacaud (Fri, 07 Dec 2018 13:24:45 GMT):
Hi all, I have a strange issue. I tried to deploy the fabcar example in NODE. but the `startFabric.sh node`cmd is stunk at this : ```# Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2018-12-07 10:59:21.127 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-12-07 10:59:21.254 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Creating cli ... done 2018-12-07 10:59:22.431 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-07 10:59:22.431 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-07 10:59:22.454 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: 2018-12-07 10:59:22.706 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-07 10:59:22.706 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc ``` Any idea ? *$

YanLIU0822 (Fri, 07 Dec 2018 13:28:34 GMT):
Could not connect to {peer1.org1.example.com:7051 [] [] peer1.org1.example.com:7051 }

dev.apprentice123 (Fri, 07 Dec 2018 13:31:54 GMT):
@lepar Thanks for feedback. You had this after enabling TLS? Was everything fine before enabling it? I have been fighting with this issue for some time with no effect and want to find out more about it.

CorentinPacaud (Fri, 07 Dec 2018 13:41:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pD9NRAyckohTvBkDq) At the end, I have this : ```Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode fabcar:1.0 for transaction ```

zhaochy (Fri, 07 Dec 2018 13:41:57 GMT):
Has joined the channel.

jrosmith (Fri, 07 Dec 2018 13:51:27 GMT):
@lay-z #fabric-sdk-go and #fabric-sdk-node

CorentinPacaud (Fri, 07 Dec 2018 14:04:55 GMT):
Anyone has successfully launch fabcar in node ?

lepar (Fri, 07 Dec 2018 15:02:21 GMT):
@dev.apprentice123 I don't remember whether TLS was enabled

lepar (Fri, 07 Dec 2018 15:02:59 GMT):
@CorentinPacaud Send chaincode container logs

CorentinPacaud (Fri, 07 Dec 2018 15:08:05 GMT):
@lepar the docker log of peer0 ?

lepar (Fri, 07 Dec 2018 15:08:29 GMT):
Yes

CorentinPacaud (Fri, 07 Dec 2018 15:09:02 GMT):
here it is : ``` 2018-12-07 14:08:32.870 UTC [orderer/common/server] Start -> INFO 006 Beginning to serve requests 2018-12-07 14:08:43.629 UTC [fsblkstorage] newBlockfileMgr -> INFO 007 Getting block information from block storage 2018-12-07 14:08:43.646 UTC [orderer/commmon/multichannel] newChain -> INFO 008 Created and starting new chain mychannel 2018-12-07 14:08:43.671 UTC [common/deliver] Handle -> WARN 009 Error reading from 172.19.0.5:47014: rpc error: code = Canceled desc = context canceled 2018-12-07 14:13:45.561 UTC [orderer/common/broadcast] Handle -> WARN 00a Error reading from 172.19.0.6:47538: rpc error: code = Canceled desc = context canceled ```

lepar (Fri, 07 Dec 2018 15:09:11 GMT):
And the docker log of the chaincode image. Do a "docker images" and notice if there is a "dev-xxx" image

CorentinPacaud (Fri, 07 Dec 2018 15:09:43 GMT):
``` dev-peer0.org1.example.com-bcm-1.0-f9cb9157a66591d39c7a08318e5904222b54ae995ab7f3e9f0f03593cda40433 latest 8d51cff50311 3 days ago 139MB dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba latest 1634862a2cb0 3 days ago 139MB dev-peer0.org1.example.com-bcm-1.0-df3509972f4e4261b8ce8cf4fbb48bf941b1deec0ccd9f9f70ead6499053ef7f latest 50ec13c2893f 3 days ago 139MB hyperledger/fabric-javaenv 1.3.0 2476cefaf833 8 weeks ago 1.7GB hyperledger/fabric-javaenv latest 2476cefaf833 8 weeks ago 1.7GB hyperledger/fabric-ca 1.3.0 5c6b20ba944f 8 weeks ago 244MB hyperledger/fabric-ca latest 5c6b20ba944f 8 weeks ago 244MB hyperledger/fabric-tools 1.3.0 c056cd9890e7 8 weeks ago 1.5GB hyperledger/fabric-tools latest c056cd9890e7 8 weeks ago 1.5GB hyperledger/fabric-ccenv 1.3.0 953124d80237 8 weeks ago 1.38GB hyperledger/fabric-ccenv latest 953124d80237 8 weeks ago 1.38GB hyperledger/fabric-orderer 1.3.0 f430f581b46b 8 weeks ago 145MB hyperledger/fabric-orderer latest f430f581b46b 8 weeks ago 145MB hyperledger/fabric-peer 1.3.0 f3ea63abddaa 8 weeks ago 151MB hyperledger/fabric-peer latest f3ea63abddaa 8 weeks ago 151MB hyperledger/fabric-zookeeper 0.4.13 e62e0af39193 8 weeks ago 1.39GB hyperledger/fabric-zookeeper latest e62e0af39193 8 weeks ago 1.39GB hyperledger/fabric-kafka 0.4.13 4121ea662c47 8 weeks ago 1.4GB hyperledger/fabric-kafka latest 4121ea662c47 8 weeks ago 1.4GB hyperledger/fabric-couchdb 0.4.13 1d3266e01e64 8 weeks ago 1.45GB hyperledger/fabric-couchdb latest 1d3266e01e64 8 weeks ago 1.45GB hyperledger/fabric-baseos amd64-0.4.13 f0fe49196c40 8 weeks ago 124MB ```

lepar (Fri, 07 Dec 2018 15:10:18 GMT):
Clear out those 3 images using "docker rmi dev-xxx" and restart the network

CorentinPacaud (Fri, 07 Dec 2018 15:10:30 GMT):
ok I try

lepar (Fri, 07 Dec 2018 15:10:55 GMT):
Then do a "docker stop $(docker ps -aq)" and "docker rm $(docker ps -aq)" and start the network

CorentinPacaud (Fri, 07 Dec 2018 15:11:36 GMT):
``` Error response from daemon: conflict: unable to delete 8d51cff50311 (must be forced) - image is being used by stopped container f3b7a70ada9f ```

lepar (Fri, 07 Dec 2018 15:12:19 GMT):
Do this first - do a "docker stop $(docker ps -aq)" and "docker rm $(docker ps -aq)" and start the network

CorentinPacaud (Fri, 07 Dec 2018 15:14:43 GMT):
Same issue, stuck at ```2018-12-07 15:14:06.760 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc```

CorentinPacaud (Fri, 07 Dec 2018 15:15:00 GMT):
I did this first : "docker stop $(docker ps -aq)" and "docker rm $(docker ps -aq)"

CorentinPacaud (Fri, 07 Dec 2018 15:15:57 GMT):
thing to know after "docker stop $(docker ps -aq)" and "docker rm $(docker ps -aq)", when I do a "docker images" I still have those "dev-XXX", is it normal ?

CorentinPacaud (Fri, 07 Dec 2018 15:22:28 GMT):
Oh ! I did the docker rmi.... then docker stop $(....) and it seems to work

lepar (Fri, 07 Dec 2018 15:30:59 GMT):
Yeah after you stop and remove the containers the images continue, you have to do rmi for them

Roberthood (Fri, 07 Dec 2018 17:00:32 GMT):
Has joined the channel.

kodonnel (Fri, 07 Dec 2018 17:34:13 GMT):
Has joined the channel.

wuebker (Fri, 07 Dec 2018 19:17:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oR5n897Kk7AmuQvKj) @billchen Thanks for your help!

abityildiz (Fri, 07 Dec 2018 19:18:12 GMT):

Clipboard - December 7, 2018 10:17 PM

nileshparwan (Fri, 07 Dec 2018 19:51:55 GMT):
Has joined the channel.

nileshparwan (Fri, 07 Dec 2018 19:57:09 GMT):

Hi everyone,

nileshparwan (Fri, 07 Dec 2018 19:57:09 GMT):

Hi everyone,

nileshparwan (Fri, 07 Dec 2018 20:03:03 GMT):

Clipboard - December 8, 2018 12:03 AM

mastersingh24 (Fri, 07 Dec 2018 21:26:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KF8LbFfJcjZ4SFjEA) @nileshparwan Can you try running `CORE_LOGGING_GRPC=debug peer channel create ...` ?

ron (Fri, 07 Dec 2018 21:37:41 GMT):
Has joined the channel.

mikd (Fri, 07 Dec 2018 21:45:53 GMT):
Has joined the channel.

rsoeldner (Sat, 08 Dec 2018 06:36:19 GMT):
Hi, when running fabric for multi-user app, authentication for a user must be done separately against a normal db. Ldap support is just for identities - but not how to authenticate them. Did I understand this correct ?

rsoeldner (Sat, 08 Dec 2018 06:36:19 GMT):
@mastersingh24 thank you

toanhd (Sat, 08 Dec 2018 07:16:44 GMT):
hi guyz

toanhd (Sat, 08 Dec 2018 07:16:55 GMT):
i have a very common question

toanhd (Sat, 08 Dec 2018 07:17:02 GMT):
what consensus algorithm does fabric use?

mallikarjunasai995 (Sat, 08 Dec 2018 11:05:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nsC3YNHCCvjQYjMhj) @toanhd it depends, becuase consensus in fabric is pluggable .. for example most of the poc are using solo ordering consensus algorithm , kafka , pbft(not much idea whether it is implemented yet or not

mastersingh24 (Sat, 08 Dec 2018 11:11:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ku5ryAvkeAiYhz2fZ) @rsoeldner Any client which directly calls the Fabric APIs to submit transactions must sign transactions with their enrollment crypto material (either standard private key/X509 or IdentityMixer credentials). Fabric CA can be used to issue the credentials and Fabric CA does support using LDAP to authenticate / authorize users prior to issuing the cryptographic credentials. If you choose to only issue the crypto credentials to your application, then it's up to your app to determine how it auth/atz multiple users

YanLIU0822 (Sat, 08 Dec 2018 12:13:17 GMT):
grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup peer2.customer.supplychain.com on 127.0.0.11:53: no such host"; Reconnecting to {peer2.customer.supplychain.com:7051 } Error: Error getting endorser client channel: PER:404 - Error trying to connect to local peer

YanLIU0822 (Sat, 08 Dec 2018 12:40:09 GMT):
x509: certificate is valid for peer0.warehouse.supplychain.com, peer0, not peer2.customer.supplychain.com

YanLIU0822 (Sat, 08 Dec 2018 12:47:06 GMT):
Error: Error getting endorser client channel

YanLIU0822 (Sat, 08 Dec 2018 12:50:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pp9oziqpsGj7y9GF2) docker rm -f $(docker ps -aq) && docker rmi -f $(docker images | grep dev | awk '{print $3}') && docker volume prune

YanLIU0822 (Sat, 08 Dec 2018 12:52:31 GMT):
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0

JulienTocci (Sat, 08 Dec 2018 13:22:42 GMT):
Has joined the channel.

vineetmishra (Sat, 08 Dec 2018 14:50:22 GMT):
Hi guys, one quick question , do i need to specify all orderer while intantiating chaincode in kafka-zookeeper network with multiple orderer

vineetmishra (Sat, 08 Dec 2018 14:53:00 GMT):
or just one

mallikarjunasai995 (Sat, 08 Dec 2018 16:15:31 GMT):
hi while running "make cryptogen configtxgen " command in ubutu am getting below error ...... Need your help Team :relaxed: can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/mallikarjuna/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) find: ‘/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory .build/bin/configtxgen CGO_CFLAGS=" " GOBIN=/home/mallikarjuna/fabric/.build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/configtxgen/metadata.CommitSHA=abe9d79" github.com/hyperledger/fabric/common/tools/configtxgen can't load package: package github.com/hyperledger/fabric/common/tools/configtxgen: cannot find package "github.com/hyperledger/fabric/common/tools/configtxgen" in any of: /usr/local/go/src/github.com/hyperledger/fabric/common/tools/configtxgen (from $GOROOT) /home/mallikarjuna/go/src/github.com/hyperledger/fabric/common/tools/configtxgen (from $GOPATH) Makefile:258: recipe for target '.build/bin/configtxgen' failed make: *** [.build/bin/configtxgen] Error 1

DattaPatil (Sat, 08 Dec 2018 16:21:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sXMTKkTqZn27RFvMK) @mallikarjunasai995 @mallikarjunasai995 clone the the fabric custom libraries and put it in directory where go path is taking reference go. in your case it looks like it should be inside of /home/mallikarjuna/go/src/ github.com

sbtmentor (Sun, 09 Dec 2018 04:10:05 GMT):
Has joined the channel.

MajorityAttack (Sun, 09 Dec 2018 05:01:52 GMT):
Has joined the channel.

adrianlee (Sun, 09 Dec 2018 07:32:53 GMT):
Has joined the channel.

adrianlee (Sun, 09 Dec 2018 07:32:55 GMT):
hey guys

adrianlee (Sun, 09 Dec 2018 07:33:00 GMT):
i have a question

adrianlee (Sun, 09 Dec 2018 07:33:26 GMT):
am having an issue with this query. I am trying to do a datequery where date >=dateFrom and date <= dateTo

adrianlee (Sun, 09 Dec 2018 07:33:45 GMT):
so this is my query

adrianlee (Sun, 09 Dec 2018 07:34:14 GMT):
func (t *Chaincode) queryTicket(stub shim.ChaincodeStubInterface, args []string) pb.Response { var err error if len(args) != 2 { return shim.Error("Incorrect number of arguments. Expecting 2") } dateFrom := args[0] dateTo := args[1] queryString := "{\"selector\":{\"docType\":\"" + PREFIX_STicket + "\", \"betDate\":{\"$lte\":" + dateTo + "},\"betDate\":{\"$gte\":" + dateFrom + "}}}" queryResults, err := getQueryResultForQueryString(stub, queryString) if err != nil { return shim.Error(err.Error()) } return shim.Success(queryResults) }

adrianlee (Sun, 09 Dec 2018 07:34:36 GMT):
but the issue is that the date range is returning back all date ranges sometimes

adrianlee (Sun, 09 Dec 2018 07:35:01 GMT):
so for example:

adrianlee (Sun, 09 Dec 2018 07:35:10 GMT):
1544054400000 (date from) / 1544227200000 (date to)

adrianlee (Sun, 09 Dec 2018 07:35:28 GMT):
sometimes records returned would be < than 1544054400000

adrianlee (Sun, 09 Dec 2018 07:35:37 GMT):
anybody can help on this?

mallikarjunasai995 (Sun, 09 Dec 2018 09:38:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cmXB3ojm6viBFfcsE) @DattaPatil /go/src/hyperledger/fabric$ make docker can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/mallikarjuna/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) find: ‘/home/mallikarjuna/go/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory

mallikarjunasai995 (Sun, 09 Dec 2018 09:39:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SbAFYY4RKmtt5R6ai) after keeping the file in go also getting the same error

mallikarjunasai995 (Sun, 09 Dec 2018 10:12:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SbAFYY4RKmtt5R6ai) sorry able to resolve the error using stackoverflow question

DJ_HC (Sun, 09 Dec 2018 14:56:21 GMT):
Has joined the channel.

zimabry (Sun, 09 Dec 2018 22:53:26 GMT):
I am getting constant error in my peer logs that channel is not known. Transactions are going through fine and network came up with no errors. Also my other peers do not show this error in the logs

BlankShrimp (Mon, 10 Dec 2018 07:04:06 GMT):
Has joined the channel.

shkakkad (Mon, 10 Dec 2018 08:33:56 GMT):

EOF error.png

shkakkad (Mon, 10 Dec 2018 08:34:57 GMT):
Hello, facing same problem after increase local disk space of VM from 20GB to 50GB. This EOF error is happening only for two docker images of size 280Mb and 125Mb , being pulled from fabric-ccenv:1.2.1. Please help

fanliyan (Mon, 10 Dec 2018 09:08:43 GMT):
How to Back up and Restore Hyperledger Fabric Data?

MajorityAttack (Mon, 10 Dec 2018 09:25:25 GMT):
hi all , what is difference between fabric and fabric-question channel ? when I have a issue , which channel should take?

bharatSuthar (Mon, 10 Dec 2018 10:00:23 GMT):
Has joined the channel.

bharatSuthar (Mon, 10 Dec 2018 10:00:26 GMT):
hii guys, I m new to hyperledger and was trying to follow tutorial and create my new network sample --> https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html#troubleshoot in this turorail when i try to bring the network up by "./byfn.sh up -l node" i get this error log --> https://pastebin.com/eX5rNwWt , cannot find a fix. please help

DayalMukati (Mon, 10 Dec 2018 11:09:26 GMT):
Hi BharatSuthar, Try to run commands 1. docker ps -aq 2. docker stop $(docker ps -aq) 3. docker rm $(docker ps -aq) Then run ./byfn, hope this will work

Paradox-AT (Mon, 10 Dec 2018 11:34:08 GMT):
Hey guys, The private data collection will store the data in private database on the peer will be shared across all the users?

dave.enyeart (Mon, 10 Dec 2018 11:35:54 GMT):
private data access is based on the org. the peer will receive all private data it is entitled to. more granular access control can be added in chaincode logic if you need to go down to the user level within the org.

dave.enyeart (Mon, 10 Dec 2018 11:35:54 GMT):
private data access is based on the org. the org's peer will receive all private data it is entitled to. more granular access control can be added in chaincode logic if you need to go down to the user level within the org.

me_abhijeet (Mon, 10 Dec 2018 11:36:17 GMT):
I am working on Multihost hyper ledger project and the Network Topology is: 1- 2 Orgs (Org1,Org2) 2- 2 CA(ca.org1 on PC1,ca.org2 on PC2) 3- 2 peer(p1org1,p0org1) on PC1 4- 2 peer (p1org2,p0org20 on PC2 5 - 1 orderer on PC1 and 1 cli on PC2 the network with working fine with Marbles chain code given in the first network but: Issue 1: when I'm checking the CouchDB of peer0 of ORG1 and peer0 of Org2 they both have the copy of data but in peer1 of both orgs there is no data regarding marbles. Issue 2: is it compulsory to create CA on both Machine? Issue 3: When I'm trying to make peer0.org2.example.com join the channel then I am seeing this: Error: error getting endorser client for the channel: endorser client failed to connect to peer0.org2.example.com:7051

Paradox-AT (Mon, 10 Dec 2018 11:37:18 GMT):
@dave.enyeart collections has a 1-1 relationship rt?

abityildiz (Mon, 10 Dec 2018 11:38:07 GMT):

Clipboard - December 10, 2018 2:37 PM

dave.enyeart (Mon, 10 Dec 2018 11:38:26 GMT):
@Paradox-AT collections have a 1:N relationship to orgs. Please read the full set of docs around this:

dave.enyeart (Mon, 10 Dec 2018 11:38:43 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

me_abhijeet (Mon, 10 Dec 2018 11:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TWq6SurzGXtKg5bTt) issue with channel

Paradox-AT (Mon, 10 Dec 2018 11:41:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4qWSHi7MLBhgdM832) Ooh, sorry my bad. I was wondering that since the data is not on the blockchain but in the peer can it be tampered by another user and also is there any way to sync the data?

Aniket.1 (Mon, 10 Dec 2018 11:44:15 GMT):
Has joined the channel.

dave.enyeart (Mon, 10 Dec 2018 11:44:21 GMT):
tamper resistance works the same way for public and private data... based on endorsement policy requirements across the network participants, read this post to understand further: https://lists.hyperledger.org/g/fabric/message/4896

Aniket.1 (Mon, 10 Dec 2018 11:44:30 GMT):
Hi All, I am getting this error while running `./startFabric.sh node` for fabcar tutorial

Aniket.1 (Mon, 10 Dec 2018 11:44:41 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode fabcar:1.0 for transaction

Aniket.1 (Mon, 10 Dec 2018 11:44:41 GMT):
`Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode fabcar:1.0 for transaction`

Paradox-AT (Mon, 10 Dec 2018 11:44:44 GMT):
thanks @dave.enyeart will look into it

Aniket.1 (Mon, 10 Dec 2018 11:45:18 GMT):
any clues?

Aniket.1 (Mon, 10 Dec 2018 11:45:32 GMT):
I didn't get any solution for this

Aniket.1 (Mon, 10 Dec 2018 11:46:59 GMT):
with `go`, same chaincode works file

Aniket.1 (Mon, 10 Dec 2018 11:46:59 GMT):
with `go`, same chaincode works fine

Aniket.1 (Mon, 10 Dec 2018 11:48:09 GMT):
I am using fabric 1.3

bharatSuthar (Mon, 10 Dec 2018 11:50:07 GMT):
@DayalMukati nop sir didn't work .

bharatSuthar (Mon, 10 Dec 2018 11:50:15 GMT):
still the same error .

bharatSuthar (Mon, 10 Dec 2018 11:50:15 GMT):
now i got this ->Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm WARN deprecated @types/winston@2.4.4: This is a stub types definition. winston provides its own type definitions, so you do not need this installed. npm ERR! code EINTEGRITY npm ERR! sha512-xmhA11h2XhqpSVzDAmoQAYdNQ+swILXpKOiRpAEQ2kX55ioxVADc6v7SkS4zQBxm4klhQHgGqpGKvoL6LGx4VQ== integrity checksum failed when using sha512: wanted sha512-xmhA11h2XhqpSVzDAmoQAYdNQ+swILXpKOiRpAEQ2kX55ioxVADc6v7SkS4zQBxm4klhQHgGqpGKvoL6LGx4VQ== but got sha512-Y/U0YuF3XVImADZyIG1IBqyAdVcR4YsFcCW34EeHUlPqDSn6TTh4XHefmTrwmIFnAh0EAkvKr0+45Gppei75OQ==. (12679933 bytes) npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-12-10T12_03_39_535Z-debug.log " !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

abityildiz (Mon, 10 Dec 2018 11:57:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xtB8hzrN2MASgn3dh) @me_abhijeet what i shall i do ?

me_abhijeet (Mon, 10 Dec 2018 12:02:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3fxKcbmzJvvSfRYqM) mention the topology and steps you performed then i may help

me_abhijeet (Mon, 10 Dec 2018 12:04:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N3JzvWcjvsPgztuSS) @Aniket.1 Check if all the containers are running properly

abityildiz (Mon, 10 Dec 2018 12:09:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oe9NKrRuQM7CRASdj) @me_abhijeet i have installed to kafka orderer.2 org,2 orderer,4 peers.i am setup on the composer.when i restart the container,i get the this error.

Aniket.1 (Mon, 10 Dec 2018 12:15:22 GMT):
fabric-tools, fabric-peer, fabric-ca, fabric-orderer, fabric-couchdb these are the total docker container running @me_abhijeet

Aniket.1 (Mon, 10 Dec 2018 12:16:17 GMT):
@me_abhijeet go chaincode is running file, problem is with the nodejs one

Aniket.1 (Mon, 10 Dec 2018 12:16:17 GMT):
@me_abhijeet go chaincode is running fine, problem is with the nodejs one

me_abhijeet (Mon, 10 Dec 2018 12:29:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JNpSjooD49MdCDFn9) @abityildiz When a node is in drain state, it is expected behavior that you should not be able to allocate swarm mode resources such as multi-host overlay network IP addresses to the node.However, swarm mode does not currently provide a messaging mechanism between the swarm leader where IP address management occurs back to the worker node that requested the IP address. So docker run fails with context deadline exceeded. Internal engineering issue escalation/292 has been opened to provide a better error message in a future release of the Docker daemon.

me_abhijeet (Mon, 10 Dec 2018 12:29:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JNpSjooD49MdCDFn9) @abityildiz When a node is in drain state, it is expected behavior that you should not be able to allocate swarm mode resources such as multi-host overlay network IP addresses to the node.However, swarm mode does not currently provide a messaging mechanism between the swarm leader where IP address management occurs back to the worker node that requested the IP address. So docker run fails with context deadline exceeded. Internal engineering issue escalation/292 has been opened to provide a better error message in a future release of the Docker daemon. https://success.docker.com/article/context-deadline-exceeded-error-observed-while-starting-container-on-drained-node

mhs22 (Mon, 10 Dec 2018 12:47:49 GMT):
Hey guys I've run some test about dynamic leader election, but it seems multiple peers are becoming a leader. Every peer log shows "isLeader = return true"

mhs22 (Mon, 10 Dec 2018 12:48:10 GMT):
please give me an advice

mhs22 (Mon, 10 Dec 2018 12:49:27 GMT):
2018-12-10 12:44:56.207 UTC [gossip/election] IsLeader -> DEBU 637 [4 226 153 117 244 114 215 132 97 248 146 85 206 30 189 143 194 189 38 11 167 70 16 215 91 100 193 68 29 206 141 250] : Returning true

Aniket.1 (Mon, 10 Dec 2018 12:49:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZCAqZwrFmdgdDX3c) any suggestions @me_abhijeet

alexanderhawl (Mon, 10 Dec 2018 12:49:55 GMT):
Has joined the channel.

me_abhijeet (Mon, 10 Dec 2018 13:08:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JyBaRsYPy6HBbLx23) @Aniket.1 if your networking in working fine with go then i have no idea what's wrong with nodejs

abityildiz (Mon, 10 Dec 2018 13:31:01 GMT):

Clipboard - December 10, 2018 4:30 PM

secmask (Mon, 10 Dec 2018 13:33:15 GMT):
Has joined the channel.

alexanderhawl (Mon, 10 Dec 2018 13:57:20 GMT):
i guess the endorsement policy caused your problem

lepar (Mon, 10 Dec 2018 14:25:29 GMT):
Has anyone been able to instantiate two chaincodes on the same channel?

mkhraisha (Mon, 10 Dec 2018 15:15:48 GMT):
Are there any licensing costs to running Hyperledger fabric in enterprise?

mkhraisha (Mon, 10 Dec 2018 15:17:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RvcY3jBaqYqBSxJwt) @lepar yes, you can do that as long as they are not the same name

lepar (Mon, 10 Dec 2018 15:20:44 GMT):
@mkhraisha nope, it's completely open source and free

lepar (Mon, 10 Dec 2018 15:21:46 GMT):
I haven't been able to make two chaincodes work. They instantiate but whenever I try to call CC2 methods, I get an error with invalid names. BUT when I call CC2's NAME and a method from CC1, it works. So weird and doesn't make sense

lepar (Mon, 10 Dec 2018 15:22:25 GMT):
I've already cleared dockers, images, etc..

maxrobot (Mon, 10 Dec 2018 16:02:19 GMT):
Has anyone seen the error `"success":false,"message":"failed TypeError: Cannot read property 'curve' of undefined"}`

yacovm (Mon, 10 Dec 2018 16:02:44 GMT):
seems to me like it is thrown from an ECDSA signing/verification

yacovm (Mon, 10 Dec 2018 16:03:11 GMT):
how did you reproduce this, @maxrobot ?

maxrobot (Mon, 10 Dec 2018 16:04:13 GMT):
I followed the `balance-transfer` instructions exactly

maxrobot (Mon, 10 Dec 2018 16:04:21 GMT):
https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer

maxrobot (Mon, 10 Dec 2018 16:04:25 GMT):
see above :)

maxrobot (Mon, 10 Dec 2018 16:51:25 GMT):
@yacovm did I upset you on the other thread? I am sorry if I did I hadn't seen your answer :D

yacovm (Mon, 10 Dec 2018 16:52:19 GMT):
no....

yacovm (Mon, 10 Dec 2018 16:52:33 GMT):
i also do other stuff than monitor rocket chat all day, so i didn't see the message

yacovm (Mon, 10 Dec 2018 16:53:06 GMT):
I can't help you with this unfortunately, if you think there is a bug in the balance transfer sample then please open a JIRA

yacovm (Mon, 10 Dec 2018 16:53:15 GMT):
with exact steps of how to reproduce the error

maxrobot (Mon, 10 Dec 2018 16:54:30 GMT):
ok much appreciated!

YanLIU0822 (Mon, 10 Dec 2018 17:17:03 GMT):
error starting container: error starting container: API error (404): network _basic not found what's wrong here?

lepar (Mon, 10 Dec 2018 17:55:56 GMT):
@YanLIU0822 Check the network declaration in the docker compose file.

lepar (Mon, 10 Dec 2018 17:56:03 GMT):
At the top

tejokumart (Tue, 11 Dec 2018 00:48:09 GMT):
Has joined the channel.

mhs22 (Tue, 11 Dec 2018 02:49:51 GMT):
hey guys, what

mhs22 (Tue, 11 Dec 2018 02:50:07 GMT):
what is the difference between fabric-ca-* images and fabric-*?

mhs22 (Tue, 11 Dec 2018 02:50:18 GMT):
for example, fabric-ca-orderer and fabric-orderer

mhs22 (Tue, 11 Dec 2018 02:50:24 GMT):
fabric-peer and fabric-ca-peer

thegauravks (Tue, 11 Dec 2018 03:41:00 GMT):
Hi, i have a question regarding the api.CryptoSuite. The encryption does not work, says not yet implemented. Any idea when it will be implemented ?

subashwsrishti (Tue, 11 Dec 2018 04:14:46 GMT):
Has joined the channel.

subashwsrishti (Tue, 11 Dec 2018 04:14:53 GMT):
New to hyperledger fabric sdk. Want to know if I can use golang 1.11 for hyperledger fabric sdk in go?

me_abhijeet (Tue, 11 Dec 2018 04:41:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RvcY3jBaqYqBSxJwt) @lepar yes, i did

me_abhijeet (Tue, 11 Dec 2018 04:43:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zQxsngctA4wKDGcBT) @YanLIU0822 your networking is not running. type " docker network ls " in terminal to insure

me_abhijeet (Tue, 11 Dec 2018 04:44:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XZhFgw8d6T8ZuTtmW) @thegauravks yeah.. can you provide me more details

FaizulHassan (Tue, 11 Dec 2018 05:47:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2djWrXs8MaXs4DkHr) @nflaig thanks @nflaig :)

Aniket.1 (Tue, 11 Dec 2018 05:48:01 GMT):
Has anyone encountered with this error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode fabcar:1.0 for transaction

Aniket.1 (Tue, 11 Dec 2018 05:48:01 GMT):
Has anyone encountered with this error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode fabcar:1.0 for transaction`

Lolololo (Tue, 11 Dec 2018 06:00:49 GMT):
Hello,everyone. How can add a new peer which is same org on the network to exist network?

YanLIU0822 (Tue, 11 Dec 2018 06:05:20 GMT):
what's wrong here? ESCC invoke result: response: payload:"\n <\331\316r\327U\257\025w\345z\222\227t\344\203\025%\201\344/\303\224\037\017\245\351b\217\001v\202\022H\n\024\022\022\n\004lscc\022\n\n\010\n\002sc\022\002\010\001\032*\010\364\003\022%Invalid Smart Contract function name.\"\004\022\002sc" 2018-12-11 06:02:57.124 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> WARN 113 Endorsement failure during invoke. chaincode result: status:500 message:"Invalid Smart Contract function name." 2018-12-11 06:02:57.124 UTC [main] main -> INFO 114 Exiting.....

YanLIU0822 (Tue, 11 Dec 2018 06:06:12 GMT):
I installed and instantiated the chaincode and I also restart my PC shut up the docker and reinstall the binary files

sayyamahmed (Tue, 11 Dec 2018 06:09:55 GMT):
hellow everyone in fabric we have an organization that have member role what does it mean

Aniket.1 (Tue, 11 Dec 2018 06:12:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WbY7pR6DwDgDRhaFr) Got it worked.

thegauravks (Tue, 11 Dec 2018 06:37:47 GMT):
@me_abhijeet Hey Abhijeet. The Fabric Node SDK has a CryptoSuite api. This lets you generate key pairs and use those for encryption and signing. I'll attach the link here. When i try to implement it, it throws an exception that its not implemented yet. https://fabric-sdk-node.github.io/release-1.3/module-api.CryptoSuite.html

ArpitKhurana1 (Tue, 11 Dec 2018 06:41:55 GMT):
Hi, has anyone faced an issue with environment vars in cli? something setting localmsp id and msp config path has no effect. Other times it works

ArpitKhurana1 (Tue, 11 Dec 2018 06:41:55 GMT):
Hi, has anyone faced an issue with environment vars in cli? sometimes setting localmsp id and msp config path has no effect. Other times it works

ArpitKhurana1 (Tue, 11 Dec 2018 06:41:55 GMT):
Hi, has anyone faced an issue with environment vars in cli? sometimes setting localmsp id and msp config path has no effect. Other times it works . I cannot afford to change yaml files accordingly, I wanted it dynamic

me_abhijeet (Tue, 11 Dec 2018 06:42:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aL9rsKo3m5F6KFcfp) @thegauravks i don't deal with frontend

YanLIU0822 (Tue, 11 Dec 2018 07:07:28 GMT):
Error: Error getting chaincode code chaincode: path to chaincode does not exist: /opt/gopath/src/github.com/supplychain/collection Usage: peer chaincode install [flags] Flags: -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -p, --path string Path to chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --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 root@c3fc720fa862:/opt/gopath/src/github.com/hyperledger/fabric/peer# ^C root@c3fc720fa862:/opt/gopath/src/github.com/hyperledger/fabric/peer# cd /opt/gopath/src/github.com/supplychain/collection root@c3fc720fa862:/opt/gopath/src/github.com/supplychain/collection# ls collection.go root@c3fc720fa862:/opt/gopath/src/github.com/supplychain/collection#

YanLIU0822 (Tue, 11 Dec 2018 07:07:48 GMT):
the path exists why it says it doesnt exist

me_abhijeet (Tue, 11 Dec 2018 07:37:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GY3pi9yuWRgQSEy7T) @YanLIU0822 show me the cmd you are executing??

HylaJaponica (Tue, 11 Dec 2018 07:49:10 GMT):
Hello, everyone. Do you have phantom leads in Hyperledger fabric?

YanLIU0822 (Tue, 11 Dec 2018 08:36:17 GMT):
HEY ESCC invoke result: response: payload:"\n p.\313\357\306\177\271B\221\2504\377\373e\257/\345\377\031E\007\344\326\257\027\027\333kj\0315A\022H\n\024\022\022\n\004lscc\022\n\n\010\n\002sc\022\002\010\001\032*\010\364\003\022%Invalid Smart Contract function name.\"\004\022\002sc" 2018-12-11 08:28:53.385 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> WARN 008 Endorsement failure during invoke. chaincode result: status:500 message:"Invalid Smart Contract function name." 2018-12-11 08:28:53.385 UTC [main] main -> INFO 009 Exiting.....

DattaPatil (Tue, 11 Dec 2018 08:57:02 GMT):
Hello All, I am using balance transfer example. modifying it and trying to use kafka ordering service. but while creating the channel i am getting below error [2018-12-11 14:05:57.935] [ERROR] Join-Channel - Error: "orderer" request parameter is missing and there are no orderers defined on this channel in the network configuration at Client.getTargetOrderer (/home/djadhav/Desktop/Blockchain/ncb-2.0-app_old/node_modules/fabric-client/lib/Client.js:1668:12) at Channel.getGenesisBlock (/home/djadhav/Desktop/Blockchain/ncb-2.0-app_old/node_modules/fabric-client/lib/Channel.js:1041:39) at Object.joinChannel (/home/djadhav/Desktop/Blockchain/ncb-2.0-app_old/app/join-channel.js:46:37) at [2018-12-11 14:05:57.935] [ERROR] Join-Channel - Failed to join all peers to channel. cause:Error: "orderer" request parameter is missing and there are no orderers defined on this channel in the network configuration (node:27436) UnhandledPromiseRejectionWarning: Error: Failed to join all peers to channel. cause:Error: "orderer" request parameter is missing and there are no orderers defined on this channel in the network configuration what changes i have to make in sdk scripts. create-channel.js and all can someone please suggest

jsmithmap (Tue, 11 Dec 2018 09:13:15 GMT):
Hi Everyone, I am seeing the following messages in the logs on all of my peers every few seconds: 2018-12-11 09:09:15.973 UTC [gossip/election] IsLeader -> DEBU 581 [105 127 221 114 52 91 135 160 36 126 165 175 110 91 47 66 22 207 221 223 31 10 12 157 127 99 72 128 230 228 130 254] : Returning true 2018-12-11 09:09:15.974 UTC [gossip/election] waitForInterrupt -> DEBU 582 [105 127 221 114 52 91 135 160 36 126 165 175 110 91 47 66 22 207 221 223 31 10 12 157 127 99 72 128 230 228 130 254] : Entering 2018-12-11 09:09:19.785 UTC [gossip/discovery] periodicalSendAlive -> DEBU 583 Sleeping 5s 2018-12-11 09:09:20.974 UTC [gossip/election] waitForInterrupt -> DEBU 584 [105 127 221 114 52 91 135 1 I am using dynamic leader election and I just wanted to make sure this is normal and that a leader has actually been elected. Is there any way to tell which peer is currently the leader peer when using dynamic leader election? Thanks!

Sarath_Kumar (Tue, 11 Dec 2018 09:20:14 GMT):
Has joined the channel.

me_abhijeet (Tue, 11 Dec 2018 09:25:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8rRdPPAcbHXsSE37K) @jsmithmap I am not sure but this might help you -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 -e CORE_PEER_TLS_ENABLED=true -e CORE_PEER_GOSSIP_USELEADERELECTION=true -e CORE_PEER_GOSSIP_ORGLEADER=false -e CORE_PEER_LOCALMSPID=Org1MSP

Sarath_Kumar (Tue, 11 Dec 2018 09:27:54 GMT):
Hello Everyone, I am following this link https://dev.to/damcosset/your-first-hyperledger-fabric-network-2n67 to create a new hyperledger fabric network and all the containers are created and running. now i want to create an admin card using the created network?

jsmithmap (Tue, 11 Dec 2018 09:31:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tp5ttnqD88TSvn4cE) @me_abhijeet Thanks @me_abhijeet So based on this log output does it appear that leader selection isn't happening for me? My network is functional and I can submit transactions. I was just unsure if it was normal to consistently see these messages every few seconds on every peer.

jsmithmap (Tue, 11 Dec 2018 09:31:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tp5ttnqD88TSvn4cE) @me_abhijeet Thanks! So based on this log output does it appear that leader selection isn't happening for me? My network is functional and I can submit transactions. I was just unsure if it was normal to consistently see these messages every few seconds on every peer.

jsmithmap (Tue, 11 Dec 2018 09:31:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tp5ttnqD88TSvn4cE) @me_abhijeet Thanks! So based on this log output does it appear that leader selection isn't happening for me? My network is functional and I can submit transactions. I was just unsure if it was normal to consistently see these messages every few seconds on every peer.

jsmithmap (Tue, 11 Dec 2018 09:31:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tp5ttnqD88TSvn4cE) @me_abhijeet Thanks! So based on this log output does it appear that leader selection isn't happening for me? My network is functional and I can submit transactions. I was just unsure if it was normal to consistently see these messages every few seconds on every peer. This might just be the normal gossip protocol logging but I wasn't sure.

me_abhijeet (Tue, 11 Dec 2018 09:33:04 GMT):
I can't say

jsmithmap (Tue, 11 Dec 2018 09:39:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Abxrh5tQfTfyfS98d) @me_abhijeet Thanks for your reply anyway! I'll try playing with some of those environment variables and see if I still see the same.

jsmithmap (Tue, 11 Dec 2018 09:39:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Abxrh5tQfTfyfS98d) @me_abhijeet Thanks for your reply anyway! I'll try playing with some of those environment variables and see if I still see the same. If anyone else knows how to determine which peer is the leader when using dynamic leader election I would greatly appreciate your input. Thanks!

FLASHJr (Tue, 11 Dec 2018 09:42:58 GMT):
How to create/setup our own network with two or more org each having multiple peers in it, and deploy the chaincode on each peer of org in Hyperledger Fabric? 1. how to setup it on the same machine(all Org on the same machine) 2. on a different machine (each org on a separate machine)

ArpitKhurana1 (Tue, 11 Dec 2018 09:43:07 GMT):
Is there any framework by hyperledger for monitoring purpose, i am deploying on kubernetes

me_abhijeet (Tue, 11 Dec 2018 09:50:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QwB4BaEZFQJbn88mv) @FLASHJr in case of same machine use docker and create a bridge networks and bind all the containers to the networks and in case on diff machine create an overlay using docker swarm and then bind all the container to the overlay

FLASHJr (Tue, 11 Dec 2018 09:57:26 GMT):
@me_abhijeet please an you give steps to do the same..

FLASHJr (Tue, 11 Dec 2018 09:59:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JjhaxYPxLTSpFBwnR) @me_abhijeet can you please give me the steps to do the same.. ?

jsmithmap (Tue, 11 Dec 2018 10:01:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hsDjJwCsvTnFuQT6S) @ArpitKhurana1 I haven't used it myself, but you might want to try to look at Prometheus (https://docs.docker.com/config/thirdparty/prometheus/). Any tool that can monitor state of containers should be able to achieve basic monitoring requirements.

thegauravks (Tue, 11 Dec 2018 10:29:33 GMT):
@me_abhijeet Thanks for your response anyway.

jsmithmap (Tue, 11 Dec 2018 11:17:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KbaTZSs9TSuefiCTo) It looks liek in the core.yaml config file for peers there is a "metrics" section where you can enable a metrics server and there is a config property for prometheus http server listen address. So looks like others are using Prometheus

jsmithmap (Tue, 11 Dec 2018 11:17:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KbaTZSs9TSuefiCTo) It looks like in the core.yaml config file for peers there is a "metrics" section where you can enable a metrics server and there is a config property for prometheus http server listen address. So looks like others are using Prometheus

zwartesokken (Tue, 11 Dec 2018 11:52:22 GMT):
Does anyone know if there is any documentation on how JavaScript chaincode is being installed. Is it doing `npm install` or `npm install --production`

MuhammedHafil (Tue, 11 Dec 2018 11:59:43 GMT):
is there anyone who made successful communications with fabric ca server REST API?

anjalinaik (Tue, 11 Dec 2018 12:06:14 GMT):
how can tamper-proof property of hyperledger fabric be demonstrated? Suppose i go and modify the values in couchdb of one node [the node is compromised] , how can we show that the blockchain is tamper-proof? Or is there any other tamper scenrio which i can visibly test?

UnaiUrki (Tue, 11 Dec 2018 12:20:52 GMT):
hi! How can I configure Hyperldger Fabric containers?

lepar (Tue, 11 Dec 2018 12:21:28 GMT):
@UnaiUrki docker-compose.yml file

UnaiUrki (Tue, 11 Dec 2018 12:24:02 GMT):
@lepar thanks!

lepar (Tue, 11 Dec 2018 12:24:10 GMT):
Welcome

FLASHJr (Tue, 11 Dec 2018 12:25:59 GMT):
``` 2018-12-11 12:18:31.963 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` I'm getting following error wile starting the first -network manually while creating the channe ``` peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ```

FLASHJr (Tue, 11 Dec 2018 12:25:59 GMT):
``` 2018-12-11 12:18:31.963 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` I'm getting above error wile starting the first -network manually while creating the channe ``` peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ```

FLASHJr (Tue, 11 Dec 2018 12:25:59 GMT):
``` 2018-12-11 12:18:31.963 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` I'm getting above error wile starting the first -network manually while creating the channe ``` peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` I'm following the steps from official document 'Building your first network'.. what is the reason behind this? Please help

lepar (Tue, 11 Dec 2018 12:28:48 GMT):
@FLASHJr check environment variables. What are the steps you're taking and the code you're executing?

FLASHJr (Tue, 11 Dec 2018 12:29:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KJKkwGJhSRYjZhe5v) @lepar I'm following this document `https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html`

FLASHJr (Tue, 11 Dec 2018 12:30:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8ekh4rkDHjPDdJM2T) I'm doing it manually

lepar (Tue, 11 Dec 2018 12:31:01 GMT):
What step are you in?

AndresMartinezMelgar.itcl (Tue, 11 Dec 2018 12:31:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8ekh4rkDHjPDdJM2T) @FLASHJr Are you running the byfn.sh? or are you doing it step by step? if it is the second, have you declared the name of the channel?

FLASHJr (Tue, 11 Dec 2018 12:32:01 GMT):
Create & Join Channel : ``` peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ```

lepar (Tue, 11 Dec 2018 12:32:50 GMT):
Did you set the environment variables inside the peer?

lepar (Tue, 11 Dec 2018 12:33:01 GMT):
export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt

FLASHJr (Tue, 11 Dec 2018 12:33:17 GMT):
nope

FLASHJr (Tue, 11 Dec 2018 12:33:20 GMT):
let me try

FLASHJr (Tue, 11 Dec 2018 12:37:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2TDQF7A4TfbCBiGeo) @lepar @lepar yes.. still it is giving the error as ``` 2018-12-11 12:36:22.328 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ```

lepar (Tue, 11 Dec 2018 12:38:53 GMT):
Do a "docker logs peer0.org1.example.com"

UnaiUrki (Tue, 11 Dec 2018 12:43:50 GMT):
hi @lepar , how can define initial multi-org configuration policy?

UnaiUrki (Tue, 11 Dec 2018 12:43:50 GMT):
hi @lepar , how can define initial multi-org configuration policty?

lepar (Tue, 11 Dec 2018 12:46:19 GMT):
configtx file

UnaiUrki (Tue, 11 Dec 2018 12:46:27 GMT):
thanks

lepar (Tue, 11 Dec 2018 12:46:41 GMT):
Welcome

FLASHJr (Tue, 11 Dec 2018 12:48:41 GMT):

Error.png

alexanderhawl (Tue, 11 Dec 2018 12:51:13 GMT):
cannot see clearly

lepar (Tue, 11 Dec 2018 12:51:38 GMT):
@FLASHJr did you run ./byfn before starting it manually?

Sarath_Kumar (Tue, 11 Dec 2018 12:56:29 GMT):
Hi All, Can I have the steps to add a new peer to the network that resides on a separate machine. I am unable to find this info on Hyperledger Fabric documentation page. @me_abhijeet @jrosmith @dave.enyeart @ruien

lepar (Tue, 11 Dec 2018 12:58:39 GMT):
@Sarath_Kumar https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4

Sarath_Kumar (Tue, 11 Dec 2018 13:02:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e8Hwc6aTTXLSwqz2G) @lepar I will check, Thank you @lepar .

lepar (Tue, 11 Dec 2018 13:02:43 GMT):
Welcome

dave.enyeart (Tue, 11 Dec 2018 13:13:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=thx3jMKyyYS25rH5B) @anjalinaik Please see this post to understand it: https://lists.hyperledger.org/g/fabric/message/4896

FLASHJr (Tue, 11 Dec 2018 13:15:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tmrf8qunBvRuqhCQb) @lepar no

lepar (Tue, 11 Dec 2018 13:24:44 GMT):
Delete the crypto-config folder and generate the artifacts again, seems there is a problem with the certificates

anjalinaik (Tue, 11 Dec 2018 13:32:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EjLe74RzFiePrTniY) @dave.enyeart Hi Thankyou for your reply. So does this mean, an or policy endorsement for a 2 .org network (1 peer each)has no way of showing tamper-proof ability

FLASHJr (Tue, 11 Dec 2018 13:43:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RcyA6npLBT3tZT5vA) @lepar do I need to run the ./byfn.sh before doing it manually? and why?

lepar (Tue, 11 Dec 2018 14:09:45 GMT):
No, you shouldn't.

FLASHJr (Tue, 11 Dec 2018 14:17:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SXhXfd8wvM5qHmBHm) @lepar Now it is giving me same error while running `./byfn.sh up ` ``` Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2018-12-11 14:15:06.371 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ```

lepar (Tue, 11 Dec 2018 14:38:29 GMT):
Delete the entire samples folder and clone it again

alexanderhawl (Tue, 11 Dec 2018 14:55:17 GMT):
i suggest you can run ./byfn.sh -m down, then try to run ./byfn.sh again

alexanderhawl (Tue, 11 Dec 2018 14:56:22 GMT):
but first in the first-network subsequent directory

MsXYZ94 (Tue, 11 Dec 2018 16:21:15 GMT):
Has joined the channel.

MsXYZ94 (Tue, 11 Dec 2018 16:24:57 GMT):
Hi, I've a hard time trying to connect my web app to Hyperledger environment! What I want exactly is to set an authentication mechanism to my Restful server... Any suggestions or helpful tutorial ?

mallikarjunasai995 (Tue, 11 Dec 2018 17:51:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=86uemmLCYm36NsZkr) @MsXYZ94 Actually am reading Handos-on block chain with hyperledger - building an decetralized app .... this book is available in online for free and also the github link for the example program that was discussed in the group from chaincode to userinterface ( web app to hyperledger ) https://github.com/HyperledgerHandsOn/trade-finance-logistics/tree/master it may be helpful for you :relaxed:

FLASHJr (Tue, 11 Dec 2018 18:50:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e3xmNK3kuhXxB3Ev6) @lepar after deleting the fabric-sample and taking the fresh clone I followed the same steps and now getting different error ``` Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded ```

lepar (Tue, 11 Dec 2018 18:51:07 GMT):
Run "docker ps -a" and see if any containers says "Exited"

FLASHJr (Tue, 11 Dec 2018 18:52:36 GMT):
only orderer node is saying

lepar (Tue, 11 Dec 2018 18:52:48 GMT):
Run a docker log on it

FLASHJr (Tue, 11 Dec 2018 18:54:09 GMT):
2018-12-11 18:44:59.884 UTC [orderer/common/server] initializeServerConfig -> INFO 003 Starting orderer with TLS enabled 2018-12-11 18:44:59.905 UTC [fsblkstorage] newBlockfileMgr -> INFO 004 Getting block information from block storage 2018-12-11 18:44:59.925 UTC [orderer/commmon/multichannel] checkResourcesOrPanic -> CRIT 005 [channel testchainid] config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported panic: [channel testchainid] config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panicf(0xc42014b0b0, 0xd7129a, 0xf, 0xc4204f62e0, 0x2, 0x2) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:194 +0x126 github.com/hyperledger/fabric/orderer/common/multichannel.checkResourcesOrPanic(0xe17d20, 0xc42007f880) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:62 +0x15f github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc4201f90a0, 0xc4201a9f50, 0xc4201a9f50) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:258 +0x3a3 github.com/hyperledger/fabric/orderer/common/multichannel.NewRegistrar(0xe0fb60, 0xc4201541c0, 0xc4201a9b90, 0xe07660, 0x14a0c78, 0xc420156980, 0x1, 0x1, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:144 +0x327 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc4203a2780, 0xe07660, 0x14a0c78, 0xc420156980, 0x1, 0x1, 0xc420417ed0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:260 +0x250 github.com/hyperledger/fabric/orderer/common/server.Start(0xd6a0d7, 0x5, 0xc4203a2780) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:101 +0x1d3 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:80 +0x204 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

lepar (Tue, 11 Dec 2018 19:35:43 GMT):
You gotta add "Channel Capability V1_3: True" to the configtx file

ron (Tue, 11 Dec 2018 20:29:18 GMT):
Anyone with idea how to tackle "Private key missing from key store. Can not establish the signing identity for user" error?

ehuarotop (Wed, 12 Dec 2018 00:14:29 GMT):
Hi guys, I've managed to implement

ehuarotop (Wed, 12 Dec 2018 00:14:50 GMT):
hyperledger in two different physical host

ehuarotop (Wed, 12 Dec 2018 00:15:01 GMT):
but I can see some warning

ehuarotop (Wed, 12 Dec 2018 00:15:05 GMT):
warnings*

ehuarotop (Wed, 12 Dec 2018 00:15:33 GMT):
for example: 2018-12-11 21:15:53.042 UTC [gossip/gossip] NewGossipService -> WARN 018 External endpoint is empty, peer will not be accessible outside of its organization

ehuarotop (Wed, 12 Dec 2018 00:16:00 GMT):
Can anyone please give some reference or background about this warning?

ehuarotop (Wed, 12 Dec 2018 00:16:35 GMT):
I suppose that it has to be with the fact that I can't synchronize my blockchain network with hyperledger explorer from a third machine

ehuarotop (Wed, 12 Dec 2018 00:17:08 GMT):
If I installed hyperledger explorer on a machine who belongs to the network, it works like a charm

whoneedi (Wed, 12 Dec 2018 01:29:17 GMT):
Hi guys, Can I develop java chain code in development mode? What should I do?

Ryan2 (Wed, 12 Dec 2018 02:33:21 GMT):
`commercial_paper` is not on the https://github.com/hyperledger/fabric-samples yet, `` `https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html` fabric-sample v1.4.0 is not release yet?

Ryan2 (Wed, 12 Dec 2018 02:33:21 GMT):
`commercial_paper` is not on the https://github.com/hyperledger/fabric-samples yet `https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html` fabric-sample v1.4.0 is not release yet?

me_abhijeet (Wed, 12 Dec 2018 04:58:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ahb5jaF894bKfSWBx) @FLASHJr Capabilities: # Channel capabilities apply to both the orderers and the peers and must be # supported by both. # Set the value of the capability to true to require it. Channel: &ChannelCapabilities # V1.3 for Channel is a catchall flag for behavior which has been # determined to be desired for all orderers and peers running at the v1.3.x # level, but which would be incompatible with orderers and peers from # prior releases. # Prior to enabling V1.3 channel capabilities, ensure that all # orderers and peers on a channel are at v1.3.0 or later. V1_3: true # Orderer capabilities apply only to the orderers, and may be safely # used with prior release peers. # Set the value of the capability to true to require it. Orderer: &OrdererCapabilities # V1.1 for Orderer is a catchall flag for behavior which has been # determined to be desired for all orderers running at the v1.1.x # level, but which would be incompatible with orderers from prior releases. # Prior to enabling V1.1 orderer capabilities, ensure that all # orderers on a channel are at v1.1.0 or later. V1_1: true # Application capabilities apply only to the peer network, and may be safely # used with prior release orderers. # Set the value of the capability to true to require it. Application: &ApplicationCapabilities # V1.3 for Application enables the new non-backwards compatible # features and fixes of fabric v1.3. V1_3: true # V1.2 for Application enables the new non-backwards compatible # features and fixes of fabric v1.2 (note, this need not be set if # later version capabilities are set) V1_2: false # V1.1 for Application enables the new non-backwards compatible # features and fixes of fabric v1.1 (note, this need not be set if # later version capabilities are set). V1_1: false

Lolololo (Wed, 12 Dec 2018 05:25:35 GMT):
Hi, everyone. I have a question. What's fabic e2e. Is it a fabric network system which have two or more computers?

halilkalkan (Wed, 12 Dec 2018 05:49:51 GMT):
Hi guys, should peers accessible to every organization or only by owned organization? However, sending a transaction requires sign from endorser peers in that case how should we secure our peers? My main concern is I don't want to allow another organization to run a function from my peer via SDKs or CLI.

Ammu (Wed, 12 Dec 2018 07:05:48 GMT):
# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com where i can find this path?

abityildiz (Wed, 12 Dec 2018 07:08:46 GMT):

Clipboard - December 12, 2018 10:08 AM

FLASHJr (Wed, 12 Dec 2018 07:14:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9E3WEZpFLAmT7RRSw) @Ammu get the cli access to peero.org1.example.com and then you can access this path

MsXYZ94 (Wed, 12 Dec 2018 08:00:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t2GivQNmDRRfefA3F) @mallikarjunasai995 thank you for sharing

GuillaumeTong (Wed, 12 Dec 2018 08:24:13 GMT):
Hi all, I see that one of the new features with 1.4.0 is the operations services. How can I access that service? I am currently trying out a command like this: `$ curl http://127.0.0.1:9443/logspec` But I only get this reply: `curl: (52) Empty reply from server`

anjalinaik (Wed, 12 Dec 2018 08:39:46 GMT):
If there is an AND endorsment policy for a 2 org[2 peer/org] , and if one of the peer couchdb is compromised, will the blockchain allow any further transactions?

GuillaumeTong (Wed, 12 Dec 2018 08:42:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jEpPq542QbLxnqDg3) Also, I noticed there is a peer logging command in the peer cli. Does this use the /logspec REST API?

CorentinPacaud (Wed, 12 Dec 2018 09:41:03 GMT):
Hello, With fabric (nodejs). I made some queryString ( `await stub.getQueryResult(queryString);` ) but, is it possible to do "order by" ?

FLASHJr (Wed, 12 Dec 2018 09:44:02 GMT):
I'm trying Fabcar ex. and I want to write a function in fabcar chaincode using node which will take userName as input parameter and will return the car details owned by that user... so can anyone help me with this?

CorentinPacaud (Wed, 12 Dec 2018 09:48:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=deYdKjX7qLJjsdDHy) @FLASHJr Look at the Marbles example, there is a `await stub.getQueryResult(queryString);` example.

CorentinPacaud (Wed, 12 Dec 2018 09:49:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oqDYFRJYvsxWWguQr) ` async queryMarblesByOwner(stub, args, thisClass) {` line 200 of marbles_chaincode.js

CorentinPacaud (Wed, 12 Dec 2018 09:49:36 GMT):
line 300 sry

FlorianStoica (Wed, 12 Dec 2018 10:14:26 GMT):
Has joined the channel.

FLASHJr (Wed, 12 Dec 2018 10:37:39 GMT):
thanks...I'll try this

FLASHJr (Wed, 12 Dec 2018 10:39:10 GMT):
but is there any document available to write complex queries in node for chaincode?

CorentinPacaud (Wed, 12 Dec 2018 10:42:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zPSg9uaXKjZ9iPrdS) @FLASHJr https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767

FLASHJr (Wed, 12 Dec 2018 11:13:35 GMT):
thanks

ashufalcon (Wed, 12 Dec 2018 11:17:36 GMT):
hey all i'm facing some issue while writing configtxgen.yaml file. Profiles: TwoOrgOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: SampleConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *BusinessPartner1 - *BusinessPartner2 Organizations: - &Smartforce Name: smartforce ID: SmartforceMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/ordererOrganizations/smartforce.io/msp - &BusinessPartner1 Name: BusinessPartner1 ID: FalconMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/msp - &BusinessPartner2 Name: BusinessPartner2 ID: FrostMSP MSPDir: /home/frost/iq-smartforce/crypto-config/peerOrganizations/frost.io/msp Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.smartforce.io:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Organizations: Application: &ApplicationDefaults Organizations:

ashufalcon (Wed, 12 Dec 2018 11:17:36 GMT):
hey all i'm facing some issue while writing configtxgen.yaml file. Profiles: TwoOrgOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: SampleConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *BusinessPartner1 - *BusinessPartner2 Organizations: - &Smartforce Name: smartforce ID: SmartforceMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/ordererOrganizations/smartforce.io/msp - &BusinessPartner1 Name: BusinessPartner1 ID: FalconMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/msp - &BusinessPartner2 Name: BusinessPartner2 ID: FrostMSP MSPDir: /home/frost/iq-smartforce/crypto-config/peerOrganizations/frost.io/msp Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.smartforce.io:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Organizations: Application: &ApplicationDefaults Organizations:

ashufalcon (Wed, 12 Dec 2018 11:18:05 GMT):
2018-12-12 16:47:54.809 IST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-12-12 16:47:54.809 IST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-12 16:47:54.809 IST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced 2018-12-12 16:47:54.809 IST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced [recovered] panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201ade30, 0xc4203b5d10, 0x1, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd main.main.func1() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae panic(0xc6ea00, 0xc4203b5d00) /opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229 github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc4201adc80, 0xc4201a57c0, 0x2, 0x2) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffeb9051294, 0x15, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469 main.main() /w/workspace/fabric-nightly-release-job-release-1.2-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7

ashufalcon (Wed, 12 Dec 2018 11:18:35 GMT):
Please help me understanding the above error.

lepar (Wed, 12 Dec 2018 11:18:51 GMT):
"unknown anchor 'OrdererDefaults' referenced"

lepar (Wed, 12 Dec 2018 11:19:23 GMT):
&OrdererDefaults = reference to OrdererDefaults, which you didn't declare anywhere else

lepar (Wed, 12 Dec 2018 11:19:47 GMT):
Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.techx.com:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Kafka: Brokers: - 127.0.0.1:9092 Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" # BlockValidation specifies what signatures must be included in the block # from the orderer for the peer to validate it. BlockValidation: Type: ImplicitMeta Rule: "ANY Writers"

lepar (Wed, 12 Dec 2018 11:19:47 GMT):
Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.example.com:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" # BlockValidation specifies what signatures must be included in the block # from the orderer for the peer to validate it. BlockValidation: Type: ImplicitMeta Rule: "ANY Writers"

lepar (Wed, 12 Dec 2018 11:19:47 GMT):
Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.example.com:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Kafka: Brokers: - 127.0.0.1:9092 Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" # BlockValidation specifies what signatures must be included in the block # from the orderer for the peer to validate it. BlockValidation: Type: ImplicitMeta Rule: "ANY Writers"

lepar (Wed, 12 Dec 2018 11:19:50 GMT):
Add that

ashufalcon (Wed, 12 Dec 2018 11:20:17 GMT):
thanks @lepar

ashufalcon (Wed, 12 Dec 2018 11:21:42 GMT):
As if now i'm using SOLO orderer.. so it's ok not to add Kafka details ?

lepar (Wed, 12 Dec 2018 11:22:33 GMT):
Not sure but it's blank so there is no kafka details

lepar (Wed, 12 Dec 2018 11:23:09 GMT):
Profiles: OrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Also you gotta have profiles to run configtx

lepar (Wed, 12 Dec 2018 11:23:50 GMT):
Yeah just deleted the kafka brokers

sanjayMeFy (Wed, 12 Dec 2018 11:24:33 GMT):
Has joined the channel.

ashufalcon (Wed, 12 Dec 2018 11:25:06 GMT):
got it. cheers mate:thumbsup:

FLASHJr (Wed, 12 Dec 2018 11:36:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SXXbWnmXhAKh3FhLF) @me_abhijeet yes. above code is present in configtx.yaml file..I have not changed anything in any file..I'm using First Network example as it is.. but I just want to start the network manually instead of running ./byfn.sh.. I'm still getting ``` 2018-12-12 11:27:18.018 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` error while creating the channel

FLASHJr (Wed, 12 Dec 2018 11:36:33 GMT):
@lepar [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SXXbWnmXhAKh3FhLF) @me_abhijeet yes. above code is present in configtx.yaml file..I have not changed anything in any file..I'm using First Network example as it is.. but I just want to start the network manually instead of running ./byfn.sh.. I'm still getting ``` 2018-12-12 11:27:18.018 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` error while creating the channel

ashufalcon (Wed, 12 Dec 2018 13:10:02 GMT):
@lepar sry but i'm still facing the same issue.

ashufalcon (Wed, 12 Dec 2018 13:10:02 GMT):
Profiles: TwoOrgOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: SampleConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *BusinessPartner1 - *BusinessPartner2 Organizations: - &Smartforce Name: smartforce ID: SmartforceMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/ordererOrganizations/smartforce.io/msp - &BusinessPartner1 Name: BusinessPartner1 ID: FalconMSP MSPDir: /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/msp - &BusinessPartner2 Name: BusinessPartner2 ID: FrostMSP MSPDir: /home/frost/iq-smartforce/crypto-config/peerOrganizations/frost.io/msp Orderer: &OrdererDefaults OrdererType: solo Addresses: - orderer.smartforce.io:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" BlockValidation: Type: ImplicitMeta Rule: "ANY Writers" Application: &ApplicationDefaults Organizations:

lepar (Wed, 12 Dec 2018 13:29:22 GMT):
Try comparing it to the fabric-samples

chandrika (Wed, 12 Dec 2018 13:41:57 GMT):
hi @nfrunza ..

chandrika (Wed, 12 Dec 2018 13:41:59 GMT):
@nfrunza .. I am stuck with hyperledger node layer.. My hyperledger network is up and running with all my chaincodes installed and instantiated in 3 different VMs. I am using Fabric 1.2

chandrika (Wed, 12 Dec 2018 13:42:16 GMT):
But facing issue while my nodejs layer is trying to connect with hyperledger network Dec 12 13:40:30 ip-172-31-102-5 node[5311]: [2018-12-12 13:40:30.006] [INFO] Helper - Successfully loaded member from persistence Dec 12 13:40:30 ip-172-31-102-5 node[5311]: [2018-12-12 13:40:30.011] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { Dec 12 13:40:30 ip-172-31-102-5 node[5311]: r: , Dec 12 13:40:30 ip-172-31-102-5 node[5311]: s: , Dec 12 13:40:30 ip-172-31-102-5 node[5311]: recoveryParam: 1 } Dec 12 13:40:30 ip-172-31-102-5 node[5311]: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: access denied: channel [<>] creato r org [peer1MSP] Dec 12 13:40:30 ip-172-31-102-5 node[5311]: at new createStatusError (/opt/nodeapps/hyperledger-node-layer/node_modules/grpc/src/client.js:64:15) Dec 12 13:40:30 ip-172-31-102-5 node[5311]: at /opt/nodeapps/hyperledger-node-layer/node_modules/grpc/src/client.js:583:15 Dec 12 13:40:30 ip-172-31-102-5 node[5311]: [2018-12-12 13:40:30.012] [INFO] Query - Query Response Error: 2 UNKNOWN: access denied: channel [<>] creator org [peer1 MSP]

chandrika (Wed, 12 Dec 2018 13:42:26 GMT):
Can you please suggest!?

chandrika (Wed, 12 Dec 2018 13:42:29 GMT):
Thanks, Chandrika

william123 (Wed, 12 Dec 2018 15:13:43 GMT):
Are there any requirements for contributing to the Fabric Samples? So, if I had an idea and coded it out, are there limitations or requirements for pushing the code to the repo?

nRyDevOps (Wed, 12 Dec 2018 15:42:17 GMT):
Hello, can someone please direct me to the repo for the 1.4 version of fabric-samples?

nRyDevOps (Wed, 12 Dec 2018 15:46:25 GMT):
There does not seem to be a 1.4 fabric-samples: https://github.com/hyperledger/fabric-samples

nRyDevOps (Wed, 12 Dec 2018 16:45:47 GMT):
I keep getting the following error:

nRyDevOps (Wed, 12 Dec 2018 16:45:49 GMT):
Digest: sha256:638a53bba0582adf71c08ba3658b5d05d79f49c44f38344cca7ede10dbab3290 Status: Downloaded newer image for hyperledger/fabric-tools:amd64-1.3.0 LOCAL_VERSION= DOCKER_IMAGE_VERSION=1.3.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== cryptogen tool not found. exiting

nRyDevOps (Wed, 12 Dec 2018 16:46:29 GMT):
can someone please help? I think it is related to the 1.4 upgrade as I followed the same steps last week for BYFN and it worked fine locally.

yacovm (Wed, 12 Dec 2018 16:48:24 GMT):
@nRyDevOps just add the `.build/bin/` from the fabric repo

yacovm (Wed, 12 Dec 2018 16:48:25 GMT):
to your path

nRyDevOps (Wed, 12 Dec 2018 18:20:52 GMT):
@yacovm where is the .build located?

nRyDevOps (Wed, 12 Dec 2018 18:21:06 GMT):
I do not see any .build directory or folder located here: https://github.com/hyperledger/fabric

yacovm (Wed, 12 Dec 2018 18:21:22 GMT):
it is created when you do `make cryptogen`

yacovm (Wed, 12 Dec 2018 18:21:28 GMT):
or `make` any other binary

nRyDevOps (Wed, 12 Dec 2018 18:26:45 GMT):
ah okay so is it this command from the fabric docs? export PATH=/bin:$PATH

nRyDevOps (Wed, 12 Dec 2018 18:26:45 GMT):
@yacovm ah okay so is it this command from the fabric docs? export PATH=/bin:$PATH

yacovm (Wed, 12 Dec 2018 18:27:13 GMT):
no, it is a command from my mind, to help you

nRyDevOps (Wed, 12 Dec 2018 18:27:20 GMT):
hha

yacovm (Wed, 12 Dec 2018 18:27:21 GMT):
there might be a better way

yacovm (Wed, 12 Dec 2018 18:27:30 GMT):
that is also documented

nRyDevOps (Wed, 12 Dec 2018 18:28:16 GMT):
should .build/bin/ be in the home directory of the fabric repo?

yacovm (Wed, 12 Dec 2018 18:28:29 GMT):
if you clone the fabric repo to the GOPATH

nRyDevOps (Wed, 12 Dec 2018 18:28:33 GMT):
I mean root directory of the fabric repo

yacovm (Wed, 12 Dec 2018 18:28:33 GMT):
then it should appear there

nRyDevOps (Wed, 12 Dec 2018 18:29:00 GMT):
ok

nRyDevOps (Wed, 12 Dec 2018 18:41:34 GMT):
I set the path but I am still getting:

nRyDevOps (Wed, 12 Dec 2018 18:41:36 GMT):
nrydevops @ nrydevops ~/dev/Blockchain/fabric-samples/first-network ((v1.3.0)) └─ $ ▶ ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... cryptogen tool not found. exiting nrydevops @ nrydevops ~/dev/Blockchain/fabric-samples/first-network ((v1.3.0)) └─ $ ▶

nRyDevOps (Wed, 12 Dec 2018 18:43:18 GMT):
Do I need to somehow build cryptogen first?

yacovm (Wed, 12 Dec 2018 18:44:23 GMT):
yeah of course, you need to build it

yacovm (Wed, 12 Dec 2018 18:44:27 GMT):
via `make cryptogen`

nRyDevOps (Wed, 12 Dec 2018 18:44:50 GMT):
which directory do I build it from

nRyDevOps (Wed, 12 Dec 2018 18:44:53 GMT):
?

nRyDevOps (Wed, 12 Dec 2018 18:45:03 GMT):
nrydevops @ nrydevops ~/dev/Blockchain/fabric-samples/first-network ((v1.3.0)) └─ $ ▶ make cryptogen make: *** No rule to make target 'cryptogen'. Stop. nrydevops @ nrydevops ~/dev/Blockchain/fabric-samples/first-network ((v1.3.0)) └─ $ ▶

yacovm (Wed, 12 Dec 2018 18:49:26 GMT):
no....

nRyDevOps (Wed, 12 Dec 2018 18:49:33 GMT):
here https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html it says to run it from fabric-samples/first-network as you can see that I did, but it says there is no rule to make target cryptogen

yacovm (Wed, 12 Dec 2018 18:49:36 GMT):
clone it from the fabric repo! https://github.com/hyperledger/fabric

yacovm (Wed, 12 Dec 2018 18:49:36 GMT):
clone the fabric repo! https://github.com/hyperledger/fabric

yacovm (Wed, 12 Dec 2018 18:50:21 GMT):
and do the make inside

nRyDevOps (Wed, 12 Dec 2018 18:51:11 GMT):
hmmm okay...

nRyDevOps (Wed, 12 Dec 2018 18:51:28 GMT):
I tried that and I get this result:

nRyDevOps (Wed, 12 Dec 2018 18:51:29 GMT):
nrydevops @ nrydevops ~/dev/Blockchain/fabric (release-1.4) └─ $ ▶ make cryptogen can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/lib/go-1.10/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) find: ‘/home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory .build/bin/cryptogen CGO_CFLAGS=" " GOBIN=/home/nrydevops/dev/Blockchain/fabric/.build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/cryptogen/metadata.CommitSHA=e485f77ec" github.com/hyperledger/fabric/common/tools/cryptogen can't load package: package github.com/hyperledger/fabric/common/tools/cryptogen: cannot find package "github.com/hyperledger/fabric/common/tools/cryptogen" in any of: /usr/lib/go-1.10/src/github.com/hyperledger/fabric/common/tools/cryptogen (from $GOROOT) /home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/common/tools/cryptogen (from $GOPATH) Makefile:252: recipe for target '.build/bin/cryptogen' failed make: *** [.build/bin/cryptogen] Error 1 nrydevops @ nrydevops ~/dev/Blockchain/fabric (release-1.4) └─ $ ▶

yacovm (Wed, 12 Dec 2018 18:52:05 GMT):
you didn't clone it to the GOPATH

yacovm (Wed, 12 Dec 2018 18:52:30 GMT):
you need to clone the fabric repo to your GOPATH/src/github.com/hyperledger/

nRyDevOps (Wed, 12 Dec 2018 18:52:47 GMT):
I thought I set my GOPATH to be ~/dev/Blockchain/fabric

yacovm (Wed, 12 Dec 2018 18:53:00 GMT):
no....

nRyDevOps (Wed, 12 Dec 2018 18:53:18 GMT):
ah okay sort of like how the www/html folder works for apache?

yacovm (Wed, 12 Dec 2018 18:53:40 GMT):
i don't remember how that works, too long ago

nRyDevOps (Wed, 12 Dec 2018 18:53:44 GMT):
will setting it as a symlink work?

yacovm (Wed, 12 Dec 2018 18:54:08 GMT):
so is your GOPATH `~/dev/Blockchain/fabric` ?

nRyDevOps (Wed, 12 Dec 2018 18:54:38 GMT):
sorry I am new to GO and trying to learn

yacovm (Wed, 12 Dec 2018 18:54:43 GMT):
`mkdir -p $GOPATH/src/github.com/hyperledger/`

yacovm (Wed, 12 Dec 2018 18:54:52 GMT):
then cd to that directory and `git clone` the fabric repo

yacovm (Wed, 12 Dec 2018 18:54:58 GMT):
> sorry I am new to GO and trying to learn np

nRyDevOps (Wed, 12 Dec 2018 19:47:46 GMT):
I must still have something wrong or missing something

nRyDevOps (Wed, 12 Dec 2018 19:48:30 GMT):
when I go back to fabric-samples/first-network and run ./byfn.sh generate I am getting: Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... cryptogen tool not found. exiting

nRyDevOps (Wed, 12 Dec 2018 19:53:14 GMT):
I am just trying to bring up the 1.3v network so that I can then upgrade it to 1.4v just as the docs instruct but I am not sure why this is so difficult now. I got it all working fine last week.

nRyDevOps (Wed, 12 Dec 2018 20:05:23 GMT):
at the end of my .bashrc file I put: export GOBIN="$HOME/dev/Blockchain/src/github.com/hyperledger/fabric/.build/bin" export GOPATH="$HOME/dev/Blockchain/src" export GOROOT="/usr/bin" I'm not sure if I did something wrong there.

nRyDevOps (Wed, 12 Dec 2018 20:11:21 GMT):
here is some more info about my environment setup: nrydevops @ nrydevops ~/dev/Blockchain/src (master) └─ $ ▶ go env GOARCH="amd64" GOBIN="/home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/.build/bin" GOCACHE="/home/nrydevops/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/nrydevops/dev/Blockchain/src" GORACE="" GOROOT="/usr/bin" GOTMPDIR="" GOTOOLDIR="/usr/bin/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build198405018=/tmp/go-build -gno-record-gcc-switches"

nRyDevOps (Wed, 12 Dec 2018 20:24:00 GMT):
anyone home? ;-)

nRyDevOps (Wed, 12 Dec 2018 21:31:57 GMT):
I updated my Golang environment to the following:

nRyDevOps (Wed, 12 Dec 2018 21:31:58 GMT):
go env GOARCH="amd64" GOBIN="/home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/.build/bin" GOCACHE="/home/nrydevops/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build077628336=/tmp/go-build -gno-record-gcc-switches"

nRyDevOps (Wed, 12 Dec 2018 21:32:21 GMT):
nrydevops @ nrydevops ~/dev/Blockchain/fabric-samples/first-network ((v1.3.0)) └─ $ ▶ ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /home/nrydevops/dev/Blockchain/src/github.com/hyperledger/fabric/.build/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x configtxgen tool not found. exiting

nRyDevOps (Wed, 12 Dec 2018 21:33:09 GMT):
when I run ./byfn.sh generate no it seems to be generating the certs, but I am not sure if the configtxgen tool not found should be of concern or not.

nRyDevOps (Wed, 12 Dec 2018 21:33:09 GMT):
when I run ./byfn.sh generate now it seems to be generating the certs, but I am not sure if the configtxgen tool not found should be of concern or not.

nRyDevOps (Wed, 12 Dec 2018 21:42:56 GMT):
I am running into a new issue with trying to deploy the BYFN (Channel creation failed !!!!!!!!!!!!!!!) message

nRyDevOps (Wed, 12 Dec 2018 21:43:03 GMT):
here is my console output:

nRyDevOps (Wed, 12 Dec 2018 21:43:03 GMT):
https://pastebin.com/Xndhj1QZ

nRyDevOps (Wed, 12 Dec 2018 21:43:22 GMT):
any help is very much appreciated

greivinlopez (Wed, 12 Dec 2018 22:00:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kQLCwaxCEW6CNwDPA) @nRyDevOps If the configtxgen binary is not in the system PATH then the script will not be able to found it

nRyDevOps (Wed, 12 Dec 2018 22:04:30 GMT):
@greivinlopez how do I add the PATH?

nRyDevOps (Wed, 12 Dec 2018 22:10:55 GMT):
line 121 of the byfn.sh script reads: LOCAL_VERSION=$(configtxlator version | sed -ne 's/ Version: //p')

nRyDevOps (Wed, 12 Dec 2018 22:11:08 GMT):
should I add this to my env variables?

greivinlopez (Wed, 12 Dec 2018 22:12:00 GMT):
No, it seems your problem is much more basic that something like that

greivinlopez (Wed, 12 Dec 2018 22:13:22 GMT):
You need to start at the beginning I guess with the prereqs, try starting from here on a clean environment: https://hyperledger-fabric.readthedocs.io/en/release-1.3/prereqs.html

nRyDevOps (Wed, 12 Dec 2018 22:13:22 GMT):
oh

nRyDevOps (Wed, 12 Dec 2018 22:13:44 GMT):
okay, I will try that...thanks!

greivinlopez (Wed, 12 Dec 2018 22:13:53 GMT):
You're welcome

dave.enyeart (Thu, 13 Dec 2018 05:14:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fLQjWmsAEdXnZfnib) @william123 The intent is keep a limited set of samples for the purpose of educating people about core Fabric features. If your sample demonstrates a unique feature of Fabric that is not covered well in other samples, the submission will be considered by the maintainers.

KamalGupta123 (Thu, 13 Dec 2018 06:41:52 GMT):
Has joined the channel.

KamalGupta123 (Thu, 13 Dec 2018 06:42:04 GMT):
Hi, I have setup Hyperledger Fabric verison 1.3 on Kubernetes. I have deployed my BNA and chaincode container has been associated with the peer pod as well, but when I am trying to make any transaction using it then it keeps showing below ERROR in response: {"message":"500 - {\"error\":{\"statusCode\":500,\"name\":\"Error\",\"message\":\"Error trying invoke business network with transaction id 93e497dc39976da206723b9f82e9ea3e2ff1d7d269e4ba299290ff8573d170a3. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \",\"stack\":\"Error: Error trying invoke business network with transaction id 93e497dc39976da206723b9f82e9ea3e2ff1d7d269e4ba299290ff8573d170a3. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \\n at HLFConnection.invokeChainCode (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:1094:30)\\n at \\n at process._tickCallback (internal/process/next_tick.js:189:7)\"}}","code":500} I can see below ERROR in the orderer logs as well: 2018-12-13 06:39:44.726 UTC [grpc] newHTTP2Transport -> DEBU 210459 grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF" This error is coming continuously, can any one please help me whats wrong with this. Please HELP..thanks

Rajatsharma (Thu, 13 Dec 2018 07:52:28 GMT):
for hosting fabric on multiple hosts what should we prefer docker swarm or Kubernetes ?

UnaiUrki (Thu, 13 Dec 2018 08:32:05 GMT):
Hi, where is the documentation about "Query and analyse peer logs" ??

aleksandar.nasuovski (Thu, 13 Dec 2018 09:43:00 GMT):
Has joined the channel.

abityildiz (Thu, 13 Dec 2018 10:37:45 GMT):

Clipboard - December 13, 2018 1:35 PM

yacovm (Thu, 13 Dec 2018 11:01:28 GMT):
do `docker logs `

deenario (Thu, 13 Dec 2018 11:23:24 GMT):
I initiated my chaincode on the basic network in fabric samples.

deenario (Thu, 13 Dec 2018 11:23:24 GMT):
I initiated my chaincode on the basic network in fabric samples and connected a nodeJS application with it that is used to invoke the chaincode for post and get Calls. What i want to ask that if for some reason my network crashes and fabric is down. How do i get it back up without losing any data .

abityildiz (Thu, 13 Dec 2018 11:25:40 GMT):

Clipboard - December 13, 2018 2:25 PM

FLASHJr (Thu, 13 Dec 2018 12:46:48 GMT):
I have deployed TunaNetwork on local Fabric using Composer, could someone please tell me how to query Tx data from command line. I'm NOT looking for the rest API's provided by composer

lepar (Thu, 13 Dec 2018 12:50:57 GMT):
Ask on the composer channel

lepar (Thu, 13 Dec 2018 12:51:15 GMT):
Will probably get a faster answer there

adamhardie (Thu, 13 Dec 2018 13:07:55 GMT):
hi all, i have recently deployed a TLS enabled network on Kafka. i am having issues creating a channel, altho i am following the docs and examples the error i consistently get is '''Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open : no such file or directory''' which appears to me as though i am not passing in the TLS certs properly, however my command looks as so: docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@company/msp" peer0.company peer channel create -o orderer0.company:7050 -c messagebus -f /etc/hyperledger/configtx/channel.tx --tls --certfile crypto-config/ordererOrganizations/company/orderers/orderer0.company/msp/tlscacerts/tlsca.company-cert.pem

adamhardie (Thu, 13 Dec 2018 13:08:01 GMT):
am i doing something incorrect here? thanks

Vasanth (Thu, 13 Dec 2018 13:09:38 GMT):
i got following error while invoking chaincode from node sdk

Vasanth (Thu, 13 Dec 2018 13:09:40 GMT):
2018-12-13 12:44:35.738 UTC [protoutils] ValidateProposalMessage -> WARN 044 channel [ekyctrnchannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 2018-12-13 12:44:35.738 UTC [comm.grpc.server] 1 -> INFO 045 unary call completed {"grpc.start_time": "2018-12-13T12:44:35.737Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.23.0.1:52950", "error": "access denied: channel [ekyctrnchannel] creator org [fioneMSP]", "grpc.code": "Unknown", "grpc.call_duration": "1.1229ms"}

Vasanth (Thu, 13 Dec 2018 13:09:46 GMT):
any idea?

Vasanth (Thu, 13 Dec 2018 13:10:46 GMT):
i can able to install , instantiate chain codes throgh same sdk

alexanderhawl (Thu, 13 Dec 2018 13:11:31 GMT):
in the fabric , how can i see the number of orderers?

S.pradeepkumar (Thu, 13 Dec 2018 13:44:16 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=CentralBankMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/oneglobal.bank.cb/users/Admin@oneglobal.bank.cb/msp" cli peer chaincode invoke -o orderer.oneglobal.mobi:7050 -C mychannel -n fabcar -c '{"function":"AddMessage","Args":["6","All","gdrtfhgyvk","08-12-2018","Finance Fraud","","centralbank"]}' this works fine..whenever i tried to cal my RestApis it wont work

S.pradeepkumar (Thu, 13 Dec 2018 13:45:13 GMT):
I am facing this issue in FabricSDKNode for calling rest-api's my data is not stored in couchdb.& data is stored in couchdb only when I connect cli container and run invoke cmd..I have no idea...i dont recieve any issue return by couchdb

dave.enyeart (Thu, 13 Dec 2018 13:48:32 GMT):
check your peer logs to see if the invoke is showing up, and if it ultimately leads to a block creation with a valided transaction

S.pradeepkumar (Thu, 13 Dec 2018 13:55:57 GMT):
i didn't get any valid transaction from peer1 log @dave.enyeart

dave.enyeart (Thu, 13 Dec 2018 13:57:29 GMT):
then the app likely has not gotten a good endorsement and submitted to ordering

S.pradeepkumar (Thu, 13 Dec 2018 14:02:53 GMT):
post data is not stored in couchdb whenever i call restApi hyperledger-fabric nodeSDk

vikpande (Thu, 13 Dec 2018 14:04:48 GMT):
Has joined the channel.

S.pradeepkumar (Thu, 13 Dec 2018 14:06:18 GMT):
plz send me the couchdb.config file

mallikarjunasai995 (Thu, 13 Dec 2018 14:10:23 GMT):
am not able to inspect the genesis block getting the below error any help would be appreciated :relaxed: 2018-12-13 19:21:36.338 IST [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-13 19:21:36.347 IST [common/tools/configtxgen] doInspectBlock -> INFO 003 Inspecting block 2018-12-13 19:21:36.347 IST [common/tools/configtxgen] main -> CRIT 004 Error on inspectBlock: Could not read block genesis_block.pb

S.pradeepkumar (Thu, 13 Dec 2018 14:12:53 GMT):
cmd for inspecting block

mallikarjunasai995 (Thu, 13 Dec 2018 14:14:30 GMT):
configtxgen -inspectBlock genesis_block.pb used the mentioned command

mallikarjunasai995 (Thu, 13 Dec 2018 14:14:52 GMT):
sorry guys got it

adamhardie (Thu, 13 Dec 2018 14:43:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jJxSf8SFwR5XiE7ut) any idea on this ?

adamhardie (Thu, 13 Dec 2018 14:44:02 GMT):
or the first place i should look? orderer/peer/kafka logs all show starting sucessfully

varubasi77 (Thu, 13 Dec 2018 14:45:26 GMT):
Has joined the channel.

lepar (Thu, 13 Dec 2018 14:46:00 GMT):
Seems the directory where the config for the ordererclient isn't found

adamhardie (Thu, 13 Dec 2018 14:47:02 GMT):
hmm

lepar (Thu, 13 Dec 2018 14:47:20 GMT):
"orderer.tls.rootcert" check where your certificates are being placed for you orderer in the docker-compose-yml

adamhardie (Thu, 13 Dec 2018 14:49:00 GMT):
aha i think i may have found it

lepar (Thu, 13 Dec 2018 14:49:07 GMT):
It's prob here "--tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem"

lepar (Thu, 13 Dec 2018 14:49:14 GMT):
Check the path

adamhardie (Thu, 13 Dec 2018 14:49:31 GMT):
ohh its that param?

lepar (Thu, 13 Dec 2018 14:49:36 GMT):
Most likely yes

adamhardie (Thu, 13 Dec 2018 14:49:53 GMT):
that path is defintiely correct, and i tried with full sys path too

adamhardie (Thu, 13 Dec 2018 14:49:56 GMT):
from root

lepar (Thu, 13 Dec 2018 14:49:58 GMT):
It's prob not the same with the one you set in the docker-compose

adamhardie (Thu, 13 Dec 2018 14:50:05 GMT):
gotcha

adamhardie (Thu, 13 Dec 2018 14:50:08 GMT):
ok thanks a lot

lepar (Thu, 13 Dec 2018 14:50:18 GMT):
Welcome, get back to me if you figure it out please

UnaiUrki (Thu, 13 Dec 2018 15:43:30 GMT):
hi @lepar , where can I found info about: Query and analyse peer logs Query and analyse CA logs Query and analyse Orderer logs Query and analyse chaincode logs

lepar (Thu, 13 Dec 2018 15:58:48 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

lepar (Thu, 13 Dec 2018 15:59:06 GMT):
For logs, all you gotta do is run "docker logs 'container name' "

lepar (Thu, 13 Dec 2018 15:59:24 GMT):
For example: the logs for the orderer: docker logs orderer

UnaiUrki (Thu, 13 Dec 2018 16:22:18 GMT):
and how I query a log?

UnaiUrki (Thu, 13 Dec 2018 16:22:46 GMT):
and where I can found the error analyses?

lepar (Thu, 13 Dec 2018 16:55:56 GMT):
What do you mean "query a log"?

lepar (Thu, 13 Dec 2018 16:56:08 GMT):
You mean what each error means?

mattmaru (Thu, 13 Dec 2018 17:02:54 GMT):
Has joined the channel.

mattmaru (Thu, 13 Dec 2018 17:03:35 GMT):
Is there someone can help me to search a guide or tutorial to build a blockchain network using fabric sdk go?

mattmaru (Thu, 13 Dec 2018 17:04:44 GMT):
I've watched on internet and the only guide-tutorial i found is deprecated

lepar (Thu, 13 Dec 2018 17:06:22 GMT):
@mattmaru https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

mattmaru (Thu, 13 Dec 2018 17:07:48 GMT):
@lepar thansk but i just seen that..

lepar (Thu, 13 Dec 2018 17:07:59 GMT):
It's a tutorial, can't be more clear than it

greivinlopez (Thu, 13 Dec 2018 17:08:38 GMT):
@lepar actually it can way to more clear. That's why you see so many basic questions on this chat

lepar (Thu, 13 Dec 2018 17:09:15 GMT):
Yeha I guess

greivinlopez (Thu, 13 Dec 2018 17:09:18 GMT):
@mattmaru try joining the #fabric-sdk-go channel

mattmaru (Thu, 13 Dec 2018 17:09:43 GMT):
@greivinlopez @lepar thanks to all

mattmaru (Thu, 13 Dec 2018 17:11:10 GMT):
I'm a beginner in this world of blockchain and isn't all clear for me

lepar (Thu, 13 Dec 2018 17:11:49 GMT):
Follow the tutorial and any doubts just ask us here. I know there's a bunch of new terms

ehuarotop (Thu, 13 Dec 2018 17:27:20 GMT):
Hi guys, I have a question

ehuarotop (Thu, 13 Dec 2018 17:27:47 GMT):
I'm editing an .yaml file on my own

ehuarotop (Thu, 13 Dec 2018 17:28:04 GMT):
I want to create a network with 4 org

ehuarotop (Thu, 13 Dec 2018 17:28:10 GMT):
and two peers by org

ehuarotop (Thu, 13 Dec 2018 17:28:25 GMT):
with a ca

ehuarotop (Thu, 13 Dec 2018 17:28:40 GMT):
and an orderer ..

ehuarotop (Thu, 13 Dec 2018 17:28:44 GMT):
in general..

ehuarotop (Thu, 13 Dec 2018 17:28:56 GMT):
Looking for examples, I have seen that

ehuarotop (Thu, 13 Dec 2018 17:29:20 GMT):
different examples use diferent version

ehuarotop (Thu, 13 Dec 2018 17:29:22 GMT):
version: '2'

ehuarotop (Thu, 13 Dec 2018 17:29:25 GMT):
version: '3.4'

ehuarotop (Thu, 13 Dec 2018 17:29:36 GMT):
what is this version referring to?

lepar (Thu, 13 Dec 2018 17:36:45 GMT):
@ehuarotop It's the version docker will use to read the file

lepar (Thu, 13 Dec 2018 17:37:11 GMT):
Take a look https://docs.docker.com/compose/compose-file/compose-versioning/

AYUSHIAGARWAL (Thu, 13 Dec 2018 17:42:36 GMT):
Has joined the channel.

AYUSHIAGARWAL (Thu, 13 Dec 2018 18:02:43 GMT):
I have kafka as orderer. There are 4 kafka brokers and 3 zookeepers. The above command was running with "solo" as ordering service but when I modified the orderer as kafka, it produced the above error. how to fix this? (Note : Kafka cluster + ZK is running)

AYUSHIAGARWAL (Thu, 13 Dec 2018 18:02:58 GMT):
Here are the error logs https://gist.github.com/ayushiagg/166bc8e6c2d32eef8b407ebf5c9c2c6e

MuhammedHafil (Thu, 13 Dec 2018 18:05:22 GMT):
Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] ``` Getting this error with fabric-client when my web app running in docker, but it works fine if not in docker What should be the endpoint when calling from inside a docker container? ```

MuhammedHafil (Thu, 13 Dec 2018 18:05:22 GMT):
``` Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] ``` Getting this error with fabric-client when my web app running in docker, but it works fine if not in docker What should be the endpoint when calling from inside a docker container?

nRyDevOps (Thu, 13 Dec 2018 21:50:00 GMT):
is there any tutorial resource fro building a Fabric environment on AWS from scratch?

nRyDevOps (Thu, 13 Dec 2018 21:50:43 GMT):
I just tried to launch Hyperledger on AWS using their cloud formation template and it shows that it is dated from April 2018

greivinlopez (Thu, 13 Dec 2018 21:52:41 GMT):
@nRyDevOps I recommend you this tutorial: https://www.udemy.com/tutorial-hyperledger-setup/ it is the best I saw out there. The process is totally manual (not orchestrated) and does not use docker containers.

greivinlopez (Thu, 13 Dec 2018 21:54:07 GMT):
@nRyDevOps Amazon also presented Managed Blockchain service last week I think, that will probably be a better option for multi host networks on AWS but is still in preview mode

nRyDevOps (Thu, 13 Dec 2018 21:56:17 GMT):
yes but I want to build it myself so I can better understand how the components work

greivinlopez (Thu, 13 Dec 2018 21:56:50 GMT):
All right then the tutorial from Udemy is the best fit for what you want

nRyDevOps (Thu, 13 Dec 2018 21:59:30 GMT):
@greivinlopez if I go through that Udemy tutorial and understand the basic concepts, would that be a good direction for me to figure out how to build a multi node network of Fabric on AWS?

nRyDevOps (Thu, 13 Dec 2018 21:59:43 GMT):
I am very familiar with AWS but not with Fabric yet.

greivinlopez (Thu, 13 Dec 2018 22:01:50 GMT):
I think is a good tutorial but if you think you need more experience with Fabric then try out the marbles example or follow the online documentation and try to understand as much as you can about it, probably you will learn more that way, and when you feel ready go with the Udemy course

nRyDevOps (Thu, 13 Dec 2018 22:04:28 GMT):
okay thanks

AmanAgrawal (Fri, 14 Dec 2018 05:04:51 GMT):
Has joined the channel.

PrashantS (Fri, 14 Dec 2018 05:54:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7vgL7rLj8tfvaeYj3) @nRyDevOps I have an AMI which has v1.3 installed and a sample app which is borrowed from Tuna App. Let me know

anushaath (Fri, 14 Dec 2018 05:58:53 GMT):
Has joined the channel.

anjalinaik (Fri, 14 Dec 2018 06:04:14 GMT):
Hi everyone.. i want to reset my network, so i deleted all the volumes,images created by chaincode container, crypto-config files ,pruned the network. Still my new network throws MSP not found error for the previous configuration. May i please know what am i missing here?

anjalinaik (Fri, 14 Dec 2018 06:04:14 GMT):
Hi everyone.. i want to reset my network, so i deleted all the volumes,images created by chaincode container, crypto-config files ,pruned the network. Still my new network throws MSP not found error for the previous configuration. May i please know what am i missing here?``` 2018-12-14 06:17:53.722 UTC [cauthdsl] deduplicate -> ERRO 54a Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.org1.com")) ``` my new network doesn't even define org1

SamsadSajid (Fri, 14 Dec 2018 06:26:50 GMT):
Has joined the channel.

secmask (Fri, 14 Dec 2018 08:25:22 GMT):
I think you must refer some old resource / config some where

secmask (Fri, 14 Dec 2018 08:25:37 GMT):
@anjalinaik you should check all configuration again

marksta (Fri, 14 Dec 2018 08:56:14 GMT):
Has left the channel.

prasanths96 (Fri, 14 Dec 2018 08:59:57 GMT):
Has joined the channel.

mallikarjunasai995 (Fri, 14 Dec 2018 09:09:40 GMT):
:~/go/src/trade-finance-logistics$ docker exec -it chaincode bash Error: No such container: chaincode

mallikarjunasai995 (Fri, 14 Dec 2018 09:09:58 GMT):
how should i resolve this error

Sarath_Kumar (Fri, 14 Dec 2018 09:22:11 GMT):
Hi everyone , what is the use of cli in docker-compose.yaml file.

Sarath_Kumar (Fri, 14 Dec 2018 09:22:11 GMT):
Hi everyone , what is the use of cli and volumes in docker-compose.yaml file.

ingo_so (Fri, 14 Dec 2018 09:31:26 GMT):
Has joined the channel.

adamhardie (Fri, 14 Dec 2018 09:40:36 GMT):
hey @lepar , i found that my General.TLS.RootCAs property was set incorrectly, but unfortauntely it hasnt resolved the issue

adamhardie (Fri, 14 Dec 2018 09:40:52 GMT):
where do i set this property? orderer.tls.rootcert.file

adamhardie (Fri, 14 Dec 2018 09:41:08 GMT):
i cant find the property within any example docker Enviornment setup

secmask (Fri, 14 Dec 2018 09:41:08 GMT):
> Error: No such container: chaincode did you see `chaincode` container with `docker ps -a` ?

Rantwijk (Fri, 14 Dec 2018 09:48:31 GMT):
Has joined the channel.

FLASHJr (Fri, 14 Dec 2018 09:49:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YbMTrZb5JiZkRCmRH) @Sarath_Kumar In the volume section specify the location on the docker container, where all the crypto material will get saved

FLASHJr (Fri, 14 Dec 2018 09:50:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wKXJT4rzQm2ibEpTf) cli gives you the cli access of the specified container

secmask (Fri, 14 Dec 2018 09:56:12 GMT):
I see it's a bit confuse to use `peer chaincode query|invoke ..` command

secmask (Fri, 14 Dec 2018 09:56:40 GMT):
say I need to know which action was called,

secmask (Fri, 14 Dec 2018 09:57:33 GMT):
for "peer chaincode query", seem it always is `query` for value `fn` return from `fn, args := stub.GetFunctionAndParameters()`

secmask (Fri, 14 Dec 2018 09:58:09 GMT):
it does not work same way for `invoke` action

secmask (Fri, 14 Dec 2018 09:58:16 GMT):
could you confirm?

Sarath_Kumar (Fri, 14 Dec 2018 10:03:01 GMT):
thanks @FLASHJr . I am trying to build a network consists of 2 nodes in 2 different machines. 1. I have a doubt that i should allocate volumes for all 2 nodes in first machine or not. 2. cli will depends on all two nodes and how to acheive it.

Sarath_Kumar (Fri, 14 Dec 2018 10:03:01 GMT):
thanks @FLASHJr . I am trying to build a network consists of 2 nodes in 2 different machines. 1. I have a doubt that i should allocate volumes for all 2 nodes in first machine or not. 2. cli will depends on all two nodes and how to acheive it.

Sarath_Kumar (Fri, 14 Dec 2018 10:03:01 GMT):
thanks @FLASHJr . I am trying to build a network consists of 2 nodes in 2 different machines. 1. I have a doubt that i should allocate volumes for all 2 nodes in first machine or not. 2. cli will depends on all two nodes and how to acheive it. 3. Specifying volumes are mandatory or not.(in examples they are not using the volumes).

Elulup (Fri, 14 Dec 2018 10:33:44 GMT):
Hi, is it possible and if yes, how is it possible to manage writing permission at invoke level (don't know if I'm clear, but say my chaincode has several functions, I want to give some users the right to invoke some functions and not the others). Is there any ACL or thing like this ?

mallikarjunasai995 (Fri, 14 Dec 2018 11:04:57 GMT):
can anyone help me to share the links of reinsurance blokchain white papers ?

lepar (Fri, 14 Dec 2018 11:05:29 GMT):
@adamhardie Where was it set incorrectly, in the --tls parameter?

adamhardie (Fri, 14 Dec 2018 11:06:11 GMT):
in my orderer container logs- i saw the log of the properties like General.TLS.ClientRootCAs = []

adamhardie (Fri, 14 Dec 2018 11:06:21 GMT):
it was an incorrect name in the compose

adamhardie (Fri, 14 Dec 2018 11:06:34 GMT):
this is now set, but still the issue persists

FLASHJr (Fri, 14 Dec 2018 11:06:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ivpSkpA9a7cZjRzDx) @Sarath_Kumar I'm also trying the same😀 I'm new to Hyperledger but as per my understanding till now, 1.Volume section are needed to copy the generated crypto material from your local machine to the docker container : so its like a key value that maps your current path to the docker container path 2. I think cli is not mandatory, we can commicate to the peers using SDK 3. I think volumes are mandatory

adamhardie (Fri, 14 Dec 2018 11:07:00 GMT):
just wondering what exact property would resolve to _orderer.tls.rootcert.file_

adamhardie (Fri, 14 Dec 2018 11:07:25 GMT):
as it seems to be an empty path in the log unable to load orderer.tls.rootcert.file: open :

Tommy109 (Fri, 14 Dec 2018 11:16:40 GMT):
Hi all, anyone here looking for work? dm me if so

lepar (Fri, 14 Dec 2018 11:18:22 GMT):
@adamhardie Somewhere the property isn't being set or the path

amitr (Fri, 14 Dec 2018 11:59:34 GMT):
Has joined the channel.

PaPaJon (Fri, 14 Dec 2018 12:08:11 GMT):
Has joined the channel.

PaPaJon (Fri, 14 Dec 2018 12:09:25 GMT):
hi, what can cause these errors on order? (fabric 1.4)

PaPaJon (Fri, 14 Dec 2018 12:09:38 GMT):
[orderer.common.broadcast] Handle -> WARN 67d8 Error sending to 10.2.11.77:58028: rpc error: code = Internal desc = transport: transport: the stream is done or WriteHeader was already called

PaPaJon (Fri, 14 Dec 2018 12:09:49 GMT):
[orderer.common.broadcast] Handle -> WARN 686b Error reading from 172.18.0.5:49802: rpc error: code = Canceled desc = context canceled

Sarath_Kumar (Fri, 14 Dec 2018 12:10:10 GMT):

Capture_Block_new.png

Sarath_Kumar (Fri, 14 Dec 2018 12:10:10 GMT):

Capture_Block_new.png

amitr (Fri, 14 Dec 2018 12:10:23 GMT):
I have a use case to store private data using Private Data Collection, need some direction on the same and gossip protocol. If any one has implemented

amitr (Fri, 14 Dec 2018 12:18:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Di26fd3wE7TQ7ToeB) @Sarath_Kumar Green one is required, red not required. I don't use

Sarath_Kumar (Fri, 14 Dec 2018 12:22:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gMaaE89MGodaFp2k3) @amitr thanks @amitr. have you know what it is for(red)?

amitr (Fri, 14 Dec 2018 12:35:44 GMT):
@Sarath_Kumar check this: https://docs.docker.com/compose/compose-file/#volume-configuration-reference

Sarath_Kumar (Fri, 14 Dec 2018 12:44:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cGjxBAGvGuqM6qoJp) @amitr thanks @amitr

MignonGakuba (Fri, 14 Dec 2018 12:51:53 GMT):
Has joined the channel.

MignonGakuba (Fri, 14 Dec 2018 12:52:19 GMT):
Is it possible to make a connection with Hypledger fabric and IPFS

MignonGakuba (Fri, 14 Dec 2018 12:54:03 GMT):
I am searching if its possible to send a data from Hyperledger fabric to IPFS

SergioShevchenko (Fri, 14 Dec 2018 12:58:01 GMT):
Has joined the channel.

MignonGakuba (Fri, 14 Dec 2018 12:58:30 GMT):
Hello

MignonGakuba (Fri, 14 Dec 2018 13:01:42 GMT):
Hello everyone ... I am searching if its possible to send a data from Hyperledger fabric to IPFS network .Is it possible to make a connection with IPFS network\

dave.enyeart (Fri, 14 Dec 2018 13:02:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hAdNw4bQTptfwd55z) @amitr I suggest read these docs first, if questions remain ask specific questions rather than general questions:

dave.enyeart (Fri, 14 Dec 2018 13:02:38 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

MignonGakuba (Fri, 14 Dec 2018 13:04:05 GMT):
Hello Hello everyone ... I am searching if its possible to send a data from Hyperledger fabric to IPFS network .Is it possible to make a connection with IPFS network. or Are there plans to integrate hyperledger fabric with IPF

dave.enyeart (Fri, 14 Dec 2018 13:08:54 GMT):
@MignonGakuba see https://lists.hyperledger.org/g/fabric/message/2553

mattmaru (Fri, 14 Dec 2018 13:09:53 GMT):
Hi guys. How can i reload configurations of my network after poweroff my machine? I get this error : Error: Failed to connect before the deadline URL:grpc://localhost:7051

KenoZakesy (Fri, 14 Dec 2018 13:25:46 GMT):
Has joined the channel.

KenoZakesy (Fri, 14 Dec 2018 13:28:34 GMT):
Hello, I'm a software engineering student. My question is: Is it in any way possible to send a file (doesn't matter what kind) from a smart contract (with the .go filetype) to an IPFS storage? I don't need to know how. I just want to know if it is currenlty posssible. If not thanks anyway.

dave.enyeart (Fri, 14 Dec 2018 13:56:50 GMT):
@KenoZakesy the typical design pattern is to have a client application store a file to ipfs or elsewhere, and then the client application invokes the smart contract (chaincode) to store a hash or url on the blockchain

dave.enyeart (Fri, 14 Dec 2018 13:56:50 GMT):
@KenoZakesy the typical design pattern is to have a client application store a file to ipfs or elsewhere, and then the client application invokes the smart contract (chaincode) to store a hash or url on the blockchain as proof of the file

amitr (Fri, 14 Dec 2018 14:06:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ez2LWM56Lb99fMF24) @dave.enyeart @dave.enyeart Thx

mattmaru (Fri, 14 Dec 2018 14:43:47 GMT):
help me please, do you know about this error?! https://jira.hyperledger.org/browse/FAB-12264

mattmaru (Fri, 14 Dec 2018 14:44:27 GMT):
i've put in ~/.bashrc the variables

mallikarjunasai995 (Fri, 14 Dec 2018 15:31:30 GMT):
one who has to set the terms and conditions and another one has to submit an asset satisfying these terms and conditions how can i do it hyperledger fabric for the above mentioned one?

SanjayJain (Fri, 14 Dec 2018 16:47:12 GMT):
Has joined the channel.

lepar (Fri, 14 Dec 2018 17:52:17 GMT):
@mattmaru that's been solved.

LowellDuke (Fri, 14 Dec 2018 20:42:00 GMT):
Has joined the channel.

mkhraisha (Fri, 14 Dec 2018 20:46:25 GMT):
When i try to connect to a fabric i get the error Hostname/IP doesn't match certificate's altnames: "$IPNAMEHERE is not in the cert's list:" and i cants eem to figure it out, i tried changing the name of the ca on init like so fabric-ca-init -b BOOTSTRAP USERPASS --csr.cn IPNAME and yet that error persists. is there a way to add a hostname/IP to the certificate?

Muzo (Fri, 14 Dec 2018 22:49:16 GMT):
Has joined the channel.

DtmCarlson (Sat, 15 Dec 2018 01:02:08 GMT):
Has joined the channel.

Sarath_Kumar (Sat, 15 Dec 2018 07:18:22 GMT):
Hi everyone, I am facing an issue, when a peer is started it exits automatically. How to fix this. i have already tried to start the container by using "*docker container start containerID*" with and without root access.

DirkKrueger (Sat, 15 Dec 2018 09:09:37 GMT):
Has joined the channel.

KamalGupta123 (Sat, 15 Dec 2018 09:38:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9QtpteNCN5wJhDPE2) @Rajatsharma Hey, I have setup hyperdeger fabric on kubernetes. Everything works fine, but after sometime automatically the calls that run on blockchain starts failing with the following ERROR: {"message":"500 - {\"error\":{\"statusCode\":500,\"name\":\"Error\",\"message\":\"Error trying invoke business network with transaction id 8c4170a20a022fcd02d8c399856ff79523c38aba2a7391bc7d235776aec4e02d. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \",\"stack\":\"Error: Error trying invoke business network with transaction id 8c4170a20a022fcd02d8c399856ff79523c38aba2a7391bc7d235776aec4e02d. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \\n at HLFConnection.invokeChainCode (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:1094:30)\\n at \\n at process._tickCallback (internal/process/next_tick.js:189:7)\"}}","code":500} Can anyone pls help me why this happening?

KamalGupta123 (Sat, 15 Dec 2018 09:39:16 GMT):
Hey, I have setup hyperdeger fabric on kubernetes. Everything works fine, but after sometime automatically the calls that run on blockchain starts failing with the following ERROR: {"message":"500 - {\"error\":{\"statusCode\":500,\"name\":\"Error\",\"message\":\"Error trying invoke business network with transaction id 8c4170a20a022fcd02d8c399856ff79523c38aba2a7391bc7d235776aec4e02d. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \",\"stack\":\"Error: Error trying invoke business network with transaction id 8c4170a20a022fcd02d8c399856ff79523c38aba2a7391bc7d235776aec4e02d. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \\n at HLFConnection.invokeChainCode (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:1094:30)\\n at \\n at process._tickCallback (internal/process/next_tick.js:189:7)\"}}","code":500} Can anyone pls help me why this happening?

KamalGupta123 (Sat, 15 Dec 2018 09:41:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uzEFNk7yHT9jdZj6C) @Sarath_Kumar Hey, I think you should check the logs of peer for finding out the reason why it is getting restarted. You can not start the exited container, but you can apply RESTART ALWAYS policy on the peer container, this will restart the peer container automatically when it gets exited

pgopi92 (Sat, 15 Dec 2018 10:41:44 GMT):
Has joined the channel.

pgopi92 (Sat, 15 Dec 2018 10:47:01 GMT):
Hi, could anybody please help me with the document or pdf on installation of Hyperledger fabric in Linux redhat 7.5 (Maipo)

chuda (Sat, 15 Dec 2018 11:10:16 GMT):
hi all , any one looked in to this document for function.......queryresultbyrangewith pagination

ShelleyZhang (Sat, 15 Dec 2018 11:58:18 GMT):
Has joined the channel.

ShelleyZhang (Sat, 15 Dec 2018 12:01:30 GMT):
hi guys,is there any document about rpc broadcast pots?i need to add them into firewalld

yacovm (Sat, 15 Dec 2018 12:02:59 GMT):
what's rpc broadcast pots?

ShelleyZhang (Sat, 15 Dec 2018 12:05:28 GMT):
invoke chaincode ,orderer will broadcast transaction ,use some ports like 43251

yacovm (Sat, 15 Dec 2018 12:06:05 GMT):
ah ports

yacovm (Sat, 15 Dec 2018 12:06:08 GMT):
so, it's configurable

yacovm (Sat, 15 Dec 2018 12:06:28 GMT):
usually - orderers use 7050, and peers use 7051 for client facing requests

yacovm (Sat, 15 Dec 2018 12:06:45 GMT):
but peers also use 7052 for the communication to their chaincode containers

yacovm (Sat, 15 Dec 2018 12:06:51 GMT):
but it's all configurable

ShelleyZhang (Sat, 15 Dec 2018 12:07:42 GMT):
not them,i alredy export them in docker-compose file

ShelleyZhang (Sat, 15 Dec 2018 12:25:24 GMT):
when i invoke chaincode.i got "invike successful,status 200,payload unsupported operation"

ShelleyZhang (Sat, 15 Dec 2018 12:25:24 GMT):

IMG_20181215_202107.jpg

ShelleyZhang (Sat, 15 Dec 2018 12:29:47 GMT):
some ideas?

ShelleyZhang (Sat, 15 Dec 2018 12:36:53 GMT):
hello?

lepar (Sat, 15 Dec 2018 13:10:28 GMT):
How are you sending the payload?

MuhammedHafil (Sat, 15 Dec 2018 13:37:14 GMT):
can anybody tell me what is the reason behind this error? `Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]`

gade (Sat, 15 Dec 2018 13:44:18 GMT):
Has joined the channel.

dave.enyeart (Sat, 15 Dec 2018 16:52:37 GMT):
It means either the channel doesn't exist (perhaps the peer has not joined it) or your client (from Org1) doesn't have write permission on the channel

ArpitKhurana1 (Sat, 15 Dec 2018 17:59:08 GMT):
Is there any documentation about how chaincode to chaincode invocation works. Like who's identity is used client or peer, and how peer figures out the location of other chaincode ( service discovery I guess)

vdods (Sat, 15 Dec 2018 23:13:07 GMT):
Hi all, I want to know exactly what data is stored with a transaction on a Fabric blockchain -- in particular, if the transactor's cert is stored with the rest of the transaction. I'm looking around the proto files, and I see one called Transaction, but I'm pretty sure that's only used for the Peer's GRPC service definition.

shaa4aa (Sun, 16 Dec 2018 10:54:12 GMT):
hey all , can i use hyperledger fabric to create smart home app ? and is it secure enough !!

lepar (Sun, 16 Dec 2018 12:33:19 GMT):
Yes and secure is relative to your environment and needs

nsanje (Sun, 16 Dec 2018 13:36:27 GMT):
Has joined the channel.

chrim5 (Sun, 16 Dec 2018 13:45:24 GMT):
@vdods Check out https://link.medium.com/2NuQb92ZGS. This may help

dave.enyeart (Sun, 16 Dec 2018 14:21:40 GMT):
@vdods @chrim5 That article is largely a copy/paste of Fabric ledger official documentation. To answer your specific question I'd suggest look at these resource that include block transactions converted to JSON... you'll see a signature and certificate in each transaction for the transactor, and for each peer endorser: https://github.com/cendhu/fetch-block/tree/master/sample_block_json

BlankShrimp (Sun, 16 Dec 2018 15:02:01 GMT):
Hello all! I met this error and really need some help!``` ```

BlankShrimp (Sun, 16 Dec 2018 15:02:01 GMT):
Hello all! I was trying to build a sawtooth server with intel SGX. However, I met this error and really need some help!```Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 133, in main_wrapper main() File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 125, in main do_enclave(args) File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 57, in do_enclave data_dir=config.get_data_dir()) as poet_enclave_module: File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__ self._poet_enclave_module.initialize(config_dir, data_dir) File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 534, in initialize update_sig_rl() File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 464, in update_sig_rl sig_rl = _ias.get_signature_revocation_lists(_epid_group) File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists result = requests.get(url, cert=self._cert, timeout=self._timeout) File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get return request('get', url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send raise SSLError(e, request=request) requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2846) ```

BlankShrimp (Sun, 16 Dec 2018 15:02:01 GMT):
Hello all! I was trying to build a sawtooth server with intel SGX. However, I met this error and really need some help!```Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 133, in main_wrapper main() File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 125, in main do_enclave(args) File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 57, in do_enclave data_dir=config.get_data_dir()) as poet_enclave_module: File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__ self._poet_enclave_module.initialize(config_dir, data_dir) File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 534, in initialize update_sig_rl() File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 464, in update_sig_rl sig_rl = _ias.get_signature_revocation_lists(_epid_group) File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists result = requests.get(url, cert=self._cert, timeout=self._timeout) File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get return request('get', url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send raise SSLError(e, request=request) requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2846) ```I really don't know how to fix it. It seems that it's the error of SSL connection, but I have no clue.

vdods (Sun, 16 Dec 2018 20:41:48 GMT):
@chrim5 @dave.enyeart Thanks for the links

vdods (Sun, 16 Dec 2018 20:43:12 GMT):
@dave.enyeart Those JSON transactions are useful, though it's not clear necessarily which service/user's cert is in tx_action_signature_header -- I see that it's Hyperledger Fabric COP, and I recall that COP is a deprecated term for one of the Fabric services, but I forget which.. probably the orderer?

dave.enyeart (Sun, 16 Dec 2018 20:43:57 GMT):
cop was an old name for fabric-ca. it simply means the certs were issued by fabric-ca

dave.enyeart (Sun, 16 Dec 2018 20:44:27 GMT):
it would be the endorsing peer's signature/cert

vdods (Sun, 16 Dec 2018 20:54:36 GMT):
the only cert i'm seeing in JSON-represented blocks 1 and 6 is "Hyperledger Fabric" "COP"

vdods (Sun, 16 Dec 2018 20:57:07 GMT):
i guess i should try to run this tool on my own blocks and see what i get

vdods (Sun, 16 Dec 2018 21:00:06 GMT):
@dave.enyeart perhaps you can easily answer my eventual question -- i'm currently doing a software privacy policy oriented survey to quantify exactly what personal data is stored and where, and if it's deletable or not. If a transacting user's cert contains any personal data and it is stored in the blockchain with the transaction, then i have a problem, and have to use IdeMix or some other mechanism.

dave.enyeart (Sun, 16 Dec 2018 21:01:18 GMT):
you'll have to issue the certs with less information, or use Idemix

vdods (Sun, 16 Dec 2018 21:01:51 GMT):
ok -- so i take it the transactor's cert is stored in the block with the transaction? thank you :)

dave.enyeart (Sun, 16 Dec 2018 21:01:58 GMT):
yes

ShelleyZhang (Sun, 16 Dec 2018 22:43:14 GMT):

fabric-cli.txt

ShelleyZhang (Sun, 16 Dec 2018 22:44:16 GMT):

orderer.txt

ShelleyZhang (Sun, 16 Dec 2018 22:47:35 GMT):
anybody know the reason invoke success,payload unsupported?

KiloBravo (Mon, 17 Dec 2018 02:30:41 GMT):
Has joined the channel.

KiloBravo (Mon, 17 Dec 2018 03:41:25 GMT):
I am looking for instructions to create a new PeerAdmin Card. [i.e modify the existing BYFN install].

stevensun (Mon, 17 Dec 2018 04:08:57 GMT):
Has joined the channel.

JayJong (Mon, 17 Dec 2018 06:56:45 GMT):
Hi guys, if i download my fabric binaries to be v1.3, does it mean that i can only use fabric-client node sdk v1.3 and not other versions?

AVetter (Mon, 17 Dec 2018 07:52:45 GMT):
Has joined the channel.

MuhammedHafil (Mon, 17 Dec 2018 08:30:07 GMT):
is there any way to get all attributes of a user with cid library?

KamalGupta123 (Mon, 17 Dec 2018 09:08:26 GMT):
Hi All, I have deployed Fabric on kubernetes... the setup consists of 2 peers running on different kubernetes nodes and 1 orderer. Everything works fine and I am able to make transactions with blockchain too. But when I checks the logs of orderer then it keeps logging some ERROR message continuously. The ERROR message is: "newHTTP2Transport -> DEBU 316266 grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF"" Can anyone please help me with this??

KvdB (Mon, 17 Dec 2018 09:26:03 GMT):
Hi, I'm trying to run the balance-transfer demo but get the following error after running runApp.sh and testAPIs.sh "No authorization token was found". How do I fix this?

wuqilv (Mon, 17 Dec 2018 09:42:27 GMT):
#cello

KvdB (Mon, 17 Dec 2018 10:03:36 GMT):
#cello?

Tommy109 (Mon, 17 Dec 2018 10:18:29 GMT):
Anyone with fabric experience looking for work, send me a dm. Thanks

ng2dev (Mon, 17 Dec 2018 10:20:13 GMT):
Hello, which version of fabric is currently deployed with the ibm blockchain as a service on bluemix?? is it 1.3 or 1.4 already?

nikospaz (Mon, 17 Dec 2018 10:26:21 GMT):
Has joined the channel.

nikospaz (Mon, 17 Dec 2018 10:26:44 GMT):
Hello everyone!! I want to make a Supply Chain Traceability Application for peaches. We have farmers who have peaches and they write when they put fertiliser and such things. When they gather them, they bring them to something like a warehouse for peaches. There the peaches are chosen depending the weight and are packed. The packages are taken by a logistics company and brought to retailers. From the retailers the buyer can scan the number of the package and trace from which farmer are the peaches and when they where fertilised, when hey were transferred etc. Can you give me please an example how this can be done? Farmers, warehouse retail and customer will be my participants? The peaches and the farm in which they are grown will be the assets? how will I show with farm belongs to which farmer and from which farm is each peach? I will also have an angular app as a frontend. Thanks in advance for the answers!

Tommy109 (Mon, 17 Dec 2018 10:49:06 GMT):
@nikospaz have you compared both fabric and sawtooth to see which is most suitable for supply chain?

AVetter (Mon, 17 Dec 2018 10:59:49 GMT):
@Tommy109 do you have a suggestion which one is more suitable for supply chain traceability?

lepar (Mon, 17 Dec 2018 11:00:18 GMT):
For supply chain, sawtooth is more recommended and transparent

Tommy109 (Mon, 17 Dec 2018 11:00:44 GMT):
I would agree with @kcinholas. seems sawtooth is more geared towards supply chain

Tommy109 (Mon, 17 Dec 2018 11:01:13 GMT):
are there any examples of this though in production env?

lepar (Mon, 17 Dec 2018 11:02:16 GMT):
Fabric is more directed for internal company use when some info could be valuable to store in an immutable database like employee salary, history, etc..

AVetter (Mon, 17 Dec 2018 11:02:17 GMT):
@lepar but regarding data privacy there are only the private data objects from the HL labs? So that companies share the data only with specific participants

ng2dev (Mon, 17 Dec 2018 11:03:46 GMT):
https://viant.io/ can also try ethereum based supply chain solution

lepar (Mon, 17 Dec 2018 11:03:59 GMT):
@AVetter yeah, sawtooth has some privacy features. It would be more complicated to implement HL Fabric and require more operational steps to include participants, share that data throughout all the necessary ledger channels, etc..

lepar (Mon, 17 Dec 2018 11:05:21 GMT):
Haven't heard of Viant yet. Seems interesting

ng2dev (Mon, 17 Dec 2018 11:05:22 GMT):
@lepar it is what it is unfortunately - I agree the configuration / operation of fabric is a daunting endeavor

AVetter (Mon, 17 Dec 2018 11:05:32 GMT):
ok, the problem with HL composer is for me at the moment, that node operators have access to to database and therefore to all data (ACL will not prevent this)

lepar (Mon, 17 Dec 2018 11:07:06 GMT):
I don't like composer, masks too much operational information. I've been working with fabric for 8 months and it's pretty complicated but def worth the time getting to know how all the components work together

ng2dev (Mon, 17 Dec 2018 11:08:07 GMT):
@AVetter use sidedbs - the state will only exist on the peer and wont show in the logs other than the peer

AVetter (Mon, 17 Dec 2018 11:10:04 GMT):
This is the decision i have to make. HL Fabric with sideDBs or completely switching to sawtooth and using Private Data Objects

AndresMartinezMelgar.itcl (Mon, 17 Dec 2018 11:15:03 GMT):
Since the ledger is a database (levelDB or couchDB), do you have any way of looking at its contents? I mean to see the content of the final state of each variable.

erikteaminova (Mon, 17 Dec 2018 11:28:45 GMT):
Has joined the channel.

lepar (Mon, 17 Dec 2018 11:32:22 GMT):
@AVetter Sawtooth is my recommendation.

KvdB (Mon, 17 Dec 2018 11:45:55 GMT):
guys for an assignment I need to build an app in which I can store hashes of uploaded files in a blockchain environment, what is a good starting point?

ashufalcon (Mon, 17 Dec 2018 11:53:42 GMT):
CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.falcon.io:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051

ashufalcon (Mon, 17 Dec 2018 11:55:16 GMT):
please explain these line plz :) CORE_PEER_GOSSIP_EXTERNALENDPOINT= - CORE_PEER_GOSSIP_BOOTSTRAP= if i have 1 org with 3 peer ( without Anchor peer ) what should written in above two sections

yacovm (Mon, 17 Dec 2018 11:55:58 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/gossip.html

yacovm (Mon, 17 Dec 2018 11:56:02 GMT):
@ashufalcon ^

AVetter (Mon, 17 Dec 2018 12:13:55 GMT):
@lepar thank you, do you have a recommendation regarding data privacy and sawtooth? (PDO, encryption, ..)

lepar (Mon, 17 Dec 2018 12:15:40 GMT):
Sawtooth provides the best tools for that, I recommend sha-256 for encryption but depends on your needs, not really sure what they are

guaguawa.github.io (Mon, 17 Dec 2018 12:19:54 GMT):
Has joined the channel.

AVetter (Mon, 17 Dec 2018 12:22:09 GMT):
Have to look into sawtooth more then. Basically node operators should not be able to see the data, only specific organisations should have access to it.

lepar (Mon, 17 Dec 2018 12:24:10 GMT):
That's possible

souravbadami (Mon, 17 Dec 2018 12:27:00 GMT):
Has joined the channel.

Sarath_Kumar (Mon, 17 Dec 2018 12:28:21 GMT):
Hi everyone, Using hyperledger composer a new business network is created and similarly rest server and angular applications are created. if i have changed anything in the model file and created bna file, rest and angular application. the changes are not reflecting in both rest and angular app.

KvdB (Mon, 17 Dec 2018 12:37:57 GMT):
I think you have to restart the docker images

Sarath_Kumar (Mon, 17 Dec 2018 12:47:04 GMT):
Hi @KvdB I have restarted the docker containers using docker restart $(docker ps). But no luck. Is it the right way or how to acheive this?

UnaiUrki (Mon, 17 Dec 2018 12:48:43 GMT):
Where is the info about that part of the hyperledger fabric certification, Define network config options (block creation options, etc) ?

vikpande (Mon, 17 Dec 2018 13:05:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s2ubTPpCXzrCHG2vS) @Sarath_Kumar @Sarath_Kumar , Hope your angular app communicates with the right back-end api ( pls verify the path & port number you have in your angular app). also can u pls share the error message you are getting. then its easy to verify and assist.

Sarath_Kumar (Mon, 17 Dec 2018 13:09:24 GMT):
Hi @vikpande I have removed one asset's property in the model file and the property is still available in the rest and angular app. I have generated bna,rest and angular after the changes

aleksandar.nasuovski (Mon, 17 Dec 2018 13:11:45 GMT):
Greetings, On CouchDB ver. 0.4.13, 0.4.14 there is a issue with mounting volume permission on data folder. Problem was visible on VM Ubuntu 16.04. Anybody noticed?

KvdB (Mon, 17 Dec 2018 13:16:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s2ubTPpCXzrCHG2vS) @Sarath_Kumar You might need to remove the containers and build them again using the .sh script

dave.enyeart (Mon, 17 Dec 2018 13:21:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Nf93dhbSyJccgCQiP) @aleksandar.nasuovski Could you open a Jira issue with full details? And/or direct message with @chris.elder to get to the bottom of it.

aleksandar.nasuovski (Mon, 17 Dec 2018 13:22:15 GMT):
ok

vikpande (Mon, 17 Dec 2018 13:27:12 GMT):
@Sarath_Kumar , my last bet - try to regenerate the business network archive and deploy again, test if it works fine with the new bna. good luck !

Sarath_Kumar (Mon, 17 Dec 2018 13:32:47 GMT):
thanks @vikpande

vikpande (Mon, 17 Dec 2018 13:34:18 GMT):
Happy to help!. pls report if it worked fine. Cheers !

VictorStroganov (Mon, 17 Dec 2018 13:35:34 GMT):
Hi! Tell me please how to set peer role (endorsingPeer etc) during network setup?

vikpande (Mon, 17 Dec 2018 13:47:04 GMT):
@VictorStroganov , pls chk this link- https://hyperledger.github.io/composer/v0.19/reference/connectionprofile. quite . along process it is to set up, run and test, i want to give you a heads up in advance

KvdB (Mon, 17 Dec 2018 14:23:03 GMT):
guys for an assignment I need to build an app in which I can store hashes of uploaded files in a blockchain environment, what is a good starting point?

VictorStroganov (Mon, 17 Dec 2018 14:50:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YW68uEPabD8jSYHyG) @vikpande Thank you, but I meant something else. Maybe there are .yaml params like CORE_PEER_...

adamhardie (Mon, 17 Dec 2018 15:30:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y89oz8DGGwXx5xHvn) i have tried everything - need to know what exact property it is that is missing if possible.. is it one of these ? (to set orderer.tls.rootcert.file) - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt

adamhardie (Mon, 17 Dec 2018 15:38:44 GMT):
as i have tried all 3 of these directories (and their mount locations on host) for the tls cert in the parameters to create channel

mattmaru (Mon, 17 Dec 2018 16:22:19 GMT):

Istantanea_2018-12-17_17-21-48.png

mattmaru (Mon, 17 Dec 2018 16:22:37 GMT):
Hi guys. I've a little problem with "Adding ORG3 to channel" tutorial. When I run ./byfn up -c testchannel , i get this error

mattmaru (Mon, 17 Dec 2018 16:23:13 GMT):
Can you solve my problem? Please I don't know how to go again

greivinlopez (Mon, 17 Dec 2018 16:24:30 GMT):
@mattmaru it seems you are using testchannel as the channel name but there are still references to mychannel on the code you are running

mattmaru (Mon, 17 Dec 2018 16:25:15 GMT):
how can i do ?!

mattmaru (Mon, 17 Dec 2018 16:25:55 GMT):
if i make ./byfn up -c mychannel i get another error : Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org2MSP at version 0, but got version 1 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

greivinlopez (Mon, 17 Dec 2018 16:26:55 GMT):
Probably you have a dirty environment, you must remove all running docker instances

mattmaru (Mon, 17 Dec 2018 16:28:47 GMT):
But I need to delete all instances? If i do that I will lose the channel right? The scope of this tutorial is adding an org to an existing channel ...

mattmaru (Mon, 17 Dec 2018 16:32:03 GMT):
Am I doing something wrong in the reasoning?

greivinlopez (Mon, 17 Dec 2018 16:35:55 GMT):
There is a difference in adding a new organization from scratch on a network by updating the configuration files and adding a new organization to an already existing and running network if what you want to do is the second then why are you running ./byfn up again?

mattmaru (Mon, 17 Dec 2018 16:36:38 GMT):
because tutorial tell me this..

greivinlopez (Mon, 17 Dec 2018 16:37:06 GMT):
Perhaps the tutorial assume you are starting from scratch?

greivinlopez (Mon, 17 Dec 2018 16:37:19 GMT):
I'm not familiar with the tutorial you are running

mattmaru (Mon, 17 Dec 2018 16:37:34 GMT):
mm no scratch is not mentioned

mattmaru (Mon, 17 Dec 2018 16:39:15 GMT):
I think I solve the problem

mattmaru (Mon, 17 Dec 2018 16:39:21 GMT):
thanks the same

vikpande (Mon, 17 Dec 2018 16:59:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9qFNB3w4NxyzqGSGy) @VictorStroganov Yes @VictorStroganov , you have to declare that also in your configtx.yaml file . see if this scnapshot of yaml file from my app helps you reach your destination :-) .

vikpande (Mon, 17 Dec 2018 17:00:10 GMT):

endorser_orderer_yaml.png

deepaks (Mon, 17 Dec 2018 18:16:50 GMT):
Has joined the channel.

KvdB (Mon, 17 Dec 2018 18:28:20 GMT):
Does anyone know of an Hyperledger example in which I can upload files which get hashed and added to the blockchain?

KvdB (Mon, 17 Dec 2018 18:28:47 GMT):
I'm trying to implement this in the tuna-network example myself, but can't seem to change the chaincode

deepaks (Mon, 17 Dec 2018 19:06:01 GMT):
Hello everyone I am currently using Hyperldegerfabric v1.2 and fabric-client sdk and fabric client ca-client sdk of version 1.2. So I'm using sdk to install and instantiate code using api or curl request. But sometimes whem I send wrong chaincode the channel event hub shuts down. And after that even if I send the correct chaincode the peer does not respond and eventually the timeout happens. Error stack is "Failed to send instantiate due to error: Error: ChannelEventHub has been shutdown\n at ChannelEventHub.disconnect error: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT So what should I do if channel event hub shuts down?

jrosmith (Mon, 17 Dec 2018 19:49:29 GMT):
@KvdB your use case is possible but i don't know of any working examples of it out in the wild. please post the issues youre having with modifying/upgrading the chaincode in #fabric-chaincode-dev

jrosmith (Mon, 17 Dec 2018 19:50:36 GMT):
@deepaks are you using fabric example code to try to interact with the chaincode? there's nothing stopping you from writing your own ChannelEventHub retry logic

ruairih (Mon, 17 Dec 2018 22:08:28 GMT):
how can you restore a channel from a crashed orderer? I have a channel with a peer and orderer locally and a second org with a remote peer. Locally everything crashed, now when I bring the channel back up it can no longer connect to the second orgs peer

ruairih (Mon, 17 Dec 2018 22:13:18 GMT):
fetching the ledger requires the orderer to exist, so I presume once the orderer crashes then the channel must be recreated and the second org rejoined to the new channel?

smeyers (Mon, 17 Dec 2018 22:16:12 GMT):
I believe you can backup the orderer by making a backup of `var/hypereledger/production` on the orderer

smeyers (Mon, 17 Dec 2018 22:16:12 GMT):
I believe you can backup the orderer by making a backup of `var/hyperledger/production` on the orderer

smeyers (Mon, 17 Dec 2018 22:16:54 GMT):
Then, when you restart the orderer backup, migrate the backup into the orderer before you start

smeyers (Mon, 17 Dec 2018 22:16:54 GMT):
Then, when you restart the orderer, migrate the backup into the orderer before you start

ruairih (Mon, 17 Dec 2018 22:27:54 GMT):
i see, thanks

smeyers (Mon, 17 Dec 2018 22:30:06 GMT):
of course, let me know if you have any other questions!

adityanalgework (Tue, 18 Dec 2018 00:15:44 GMT):
Has joined the channel.

ron (Tue, 18 Dec 2018 00:56:33 GMT):
Hi everyone, have you faced this error: "TypeError: Cannot read property 'curve' of undefined"

vikpande (Tue, 18 Dec 2018 01:13:10 GMT):
@ron. Know this error from my experience. It's due to invalid certificate. Try to test the certificate validity details using any online ssl decoder tool.

ron (Tue, 18 Dec 2018 01:19:22 GMT):
Thanks @vikpande on it now

NickXie (Tue, 18 Dec 2018 01:22:17 GMT):
Has joined the channel.

NickXie (Tue, 18 Dec 2018 01:23:45 GMT):
Hi all - what is the default timeout for orderer to deliver a block to leader peer?

yousaf (Tue, 18 Dec 2018 02:22:19 GMT):
Hi everyone. I have a question that If we have deployed a hyperledger fabric network on multiple nodes then how it is going to be connected to the front end and used by some application?

deepaks (Tue, 18 Dec 2018 02:31:29 GMT):
@jrosmith yes I am using fabric samples code logic , but the point is it is working for sdk 1.3 but not for 1.2

deepaks (Tue, 18 Dec 2018 02:36:26 GMT):
@jrosmith if I send the wrong chaincode in fabric v1.3 the channel event hub never shuts down but in the casse of 1.2 it shuts down so why it is appening

deepaks (Tue, 18 Dec 2018 02:36:26 GMT):
@jrosmith if I send the wrong chaincode in fabric v1.3 the channel event hub never shuts down but in the casse of 1.2 it shuts down so why it is happening

deepaks (Tue, 18 Dec 2018 02:38:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ni6Fn6t5RpNbJdqXZ) @jrosmith yes I am using fabric samples code logic , but the point is it is working for sdk 1.3 but not for 1.2 and if I send the wrong chaincode in fabric v1.3 the channel event hub never shuts down but in the casse of 1.2 it shuts down so why it is happening

deepaks (Tue, 18 Dec 2018 02:38:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ni6Fn6t5RpNbJdqXZ) @jrosmith @jrosmith ron yes I am using fabric samples code logic , but the point is it is working for sdk 1.3 but not for 1.2 and if I send the wrong chaincode in fabric v1.3 the channel event hub never shuts down but in the casse of 1.2 it shuts down so why it is happening

deepaks (Tue, 18 Dec 2018 02:59:35 GMT):
Hello everyone Can anyone suggest why this error is coming when I am instantiating golang chaincode Error returned from build: 1 \"can't load package: cannot use path@version syntax in GOPATH mode

VikasPanwar (Tue, 18 Dec 2018 04:43:35 GMT):
Has joined the channel.

rohitshukla11 (Tue, 18 Dec 2018 04:47:52 GMT):
Has joined the channel.

abityildiz (Tue, 18 Dec 2018 06:32:18 GMT):
hi all, I have a 4-step project. i have created 1 organization for each step. I have created 1 orderer for each organization. I have created 2 peers for each organization. 4 kafka and 3 zookeper. so,my network topology like this, 4 Org,4 Orderer,2 Peers,4 CA,4 kafka,3 zookeper.

abityildiz (Tue, 18 Dec 2018 06:32:46 GMT):
what about you think my topology,is it correct or not?

bhemeswararaoankireddy (Tue, 18 Dec 2018 06:52:55 GMT):
hello every one i have one error please give the solution

bhemeswararaoankireddy (Tue, 18 Dec 2018 06:53:35 GMT):
~/product-network$ composer network start --networkName product-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card Starting business network product-network at version 0.0.1 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event Command failed

FLASHJr (Tue, 18 Dec 2018 06:54:48 GMT):
@lepar @me_abhijeet I'm creating a BYFN network manually with this script ``` #/bin/bash docker kill $(docker ps -aq) docker rm -f $(docker ps -aq) echo "##########################################################" echo "##### Generate certificates using cryptogen tool #########" echo "##########################################################" if [ -d "crypto-config" ]; then rm -Rf crypto-config fi ./../bin/cryptogen generate --config=./crypto-config.yaml export FABRIC_CFG_PATH=$PWD echo "##########################################################" echo "######### Generating Orderer Genesis block ##############" echo "##########################################################" if [ -d "channel-artifacts" ]; then rm -Rf channel-artifacts/* else mkdir -p channel-artifacts fi ./../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block echo echo "#################################################################" echo "### Generating channel configuration transaction 'channel.tx' ###" echo "#################################################################" ./../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel echo echo "#################################################################" echo "####### Generating anchor peer update for Org1MSP ##########" echo "#################################################################" ./../bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP echo echo "#################################################################" echo "####### Generating anchor peer update for Org2MSP ##########" echo "#################################################################" ./../bin/configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP echo "starting the network....." docker-compose -f docker-compose-cli.yaml -f docker-compose-couch.yaml up -d export FABRIC_START_TIMEOUT=10 sleep ${FABRIC_START_TIMEOUT} #creating channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` It is working fine. but while creating the channel it is giving the error as ```2018-12-18 06:40:28.014 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist``` But if I do it manually by using the cli i.e `docker exec -it cli bash` and execute the `peer channel create -o orderer.example.com:7050 -c mychannel -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` It is working file. so what is the problem in my script?

sanket1211 (Tue, 18 Dec 2018 07:09:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6zKkm2yRgBZ3WQmSR) @AYUSHIAGARWAL byfn is not compatible with kafka.

ashufalcon (Tue, 18 Dec 2018 07:34:41 GMT):
peer0.falcon.io: container_name: peer0.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer0.falcon.io - CORE_PEER_ADDRESS=peer0.falcon.io:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.falcon.io:7051 - CORE_PEER_LOCALMSPID=FalconMSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer0.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer0.falcon.io/tls:/etc/hyperledger/fabric/tls - peer0.falcon.io:/var/hyperledger/production ports: - 7051:7051 - 7053:7053 peer1.falcon.io: container_name: peer1.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer1.falcon.io - CORE_PEER_ADDRESS=peer1.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.falcon.io:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer1.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer1.falcon.io/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production ports: - 8051:7051 - 8053:7053 peer2.falcon.io: container_name: peer2.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer2.falcon.io - CORE_PEER_ADDRESS=peer2.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT= #### - CORE_PEER_GOSSIP_BOOTSTRAP= ### - CORE_PEER_LOCALMSPID=Org1MSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer2.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer2.falcon.io/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production ports: - 8052:7054 - 8054:7057

ashufalcon (Tue, 18 Dec 2018 07:37:14 GMT):
i have 2 organisation with 3 peer each. please help to specify bootstrap and endpoint section in peer2 peer0.falcon.io: container_name: peer0.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer0.falcon.io - CORE_PEER_ADDRESS=peer0.falcon.io:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.falcon.io:7051 - CORE_PEER_LOCALMSPID=FalconMSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer0.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer0.falcon.io/tls:/etc/hyperledger/fabric/tls - peer0.falcon.io:/var/hyperledger/production ports: - 7051:7051 - 7053:7053 peer1.falcon.io: container_name: peer1.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer1.falcon.io - CORE_PEER_ADDRESS=peer1.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.falcon.io:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer1.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer1.falcon.io/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production ports: - 8051:7051 - 8053:7053 peer2.falcon.io: container_name: peer2.falcon.io extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer2.falcon.io - CORE_PEER_ADDRESS=peer2.falcon.io:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT= #### - CORE_PEER_GOSSIP_BOOTSTRAP= ### - CORE_PEER_LOCALMSPID=Org1MSP volumes: - /var/run/:/host/var/run/ - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer2.falcon.io/msp:/etc/hyperledger/fabric/msp - /home/falcon/iq-smartforce/crypto-config/peerOrganizations/falcon.io/peers/peer2.falcon.io/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production ports: - 8052:7054 - 8054:7057

ashufalcon (Tue, 18 Dec 2018 07:38:43 GMT):
i tried by looking sampal file but as sampal file only includes 2 peer so i could not able to write for 3rd peer

bhemeswararaoankireddy (Tue, 18 Dec 2018 07:42:23 GMT):
hello every one i have one error please give the solution ~/product-network$ composer network start --networkName product-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card Starting business network product-network at version 0.0.1 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event Command failed

JayJong (Tue, 18 Dec 2018 08:04:40 GMT):
Hi, does anyone know if i have to create a jira account to raise an issue on jira.hyperledger.org

vikpande (Tue, 18 Dec 2018 08:18:29 GMT):
Yes @JayJong

JayJong (Tue, 18 Dec 2018 08:46:44 GMT):
@vikpande thanks for the reply but actually u can just log in using this account(hyperledger id which you use to login to rocket chat)

rahul703 (Tue, 18 Dec 2018 08:54:02 GMT):
Hello , I am trying to run balance-transfer from fabric samples(https://github.com/hyperledger/fabric-samples). But I get an issue in "POST instantiate chaincode on Org1" i.e. chaincode instatiation. Although the chaincode is installed successfully on orgs. What am I missing. ?? Any help would be appreciated

jaguarg (Tue, 18 Dec 2018 08:55:59 GMT):
Hello I am looking for some materials around HLF security model. We are no longer using composer and we need to better understand how we can achieve ACLs for transactions and data with "plain" fabric. Any documentation ?

NickXie (Tue, 18 Dec 2018 08:59:16 GMT):
Hi team, is there a way to dynamically update peer the new environment variable values, without stop/start the peer.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:00:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=otSJ45ebhyKYzKbnA) @NickXie Sure, using "export" in cmd. For example, to change to org1 and peer0 export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer0.org1.example.com:7051

NickXie (Tue, 18 Dec 2018 09:02:02 GMT):
Thanks for your reply @AndresMartinezMelgar.itcl , after setting new values to the environment variables, how can I notify the peer to use the new values, with restarting it.

NickXie (Tue, 18 Dec 2018 09:04:29 GMT):
For example, after I "export GRPC_GO_LOG_SEVERITY_LEVEL=error" and started the peer, I want to "export GRPC_GO_LOG_SEVERITY_LEVEL=info" and let the peer to use "info" as logging level.

NickXie (Tue, 18 Dec 2018 09:05:02 GMT):
Is there a command to notify peer to re-read the env variable instead of re-starting the peer? Thanks.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:05:24 GMT):
mmm you dont need restarting it. I asume you have a CLi that it has org1 credentials with all of their peers. So you enter in that docker and you change environment variables.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:06:43 GMT):
export to peer0.org1 do what you want export to peer1.org1

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:06:43 GMT):
export to peer0.org1 do what you want export to peer1.org1 do what you want

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:07:33 GMT):
all steps in the same cmd sesion window

NickXie (Tue, 18 Dec 2018 09:07:52 GMT):
I see. With the command you provided, I can operate different peers in one CLI container.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:08:58 GMT):
yes, you onli need: CORE_PEER_LOCALMSPID CORE_PEER_TLS_ROOTCERT_FILE CORE_PEER_MSPCONFIGPATH CORE_PEER_ADDRESS

NickXie (Tue, 18 Dec 2018 09:10:57 GMT):
I just didn't find a way to modify an environment variable in a peer container and ask the peer to re-read them. I doubt if there's a way to dynamically flush environment variable changes to a running peer instance.

NickXie (Tue, 18 Dec 2018 09:11:42 GMT):
Thank you @AndresMartinezMelgar.itcl. You solution is a good way to switch among multiple peers in a CLI container.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:12:08 GMT):

example.PNG

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:12:08 GMT):

example.PNG

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:12:08 GMT):

example.PNG

NickXie (Tue, 18 Dec 2018 09:14:48 GMT):
Thank you for the sample. We need only one CLI container to operate multiple peers.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 09:15:52 GMT):
Yes, always you configure it correctly. Look byfn example. It use a cli to "admin" org1 and org2

FLASHJr (Tue, 18 Dec 2018 09:28:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G9dr5WuJraRx9g9ga) @AndresMartinezMelgar.itcl do you have any idea about this error?

NeelKantht (Tue, 18 Dec 2018 09:36:21 GMT):
Has joined the channel.

UnaiUrki (Tue, 18 Dec 2018 09:38:50 GMT):
Hi, Im studying for Certified Hyperledger Fabric Administrator, but I cant search specific info about Diagnostics and Troubleshooting. can you help me?

NickXie (Tue, 18 Dec 2018 09:43:22 GMT):
Wow, we have this certification, cool!

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 10:17:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BosY763ysX44jHaZR) @FLASHJr i dont test, but i think you forgot put name of docker docker exec cli -e.....

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 10:17:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BosY763ysX44jHaZR) @FLASHJr i dont test it, but i think you forgot put name of docker docker exec cli -e.....

blockchain.abaco (Tue, 18 Dec 2018 10:35:08 GMT):
Hi, i have a a question for my thesis project for the Master of Computer Engineering. In blockchain concept there are several nodes that share a ledger, in which each node participates in the network (inserting data in the ledger and validating this data). Does it make sense that only 1 node enter data and the other nodes just serve the consensus mechanism? If this makes no sense, what are the alternatives?

lepar (Tue, 18 Dec 2018 11:00:17 GMT):
@blockchain.abaco Are you trying to say that the other nodes cannot enter data?

Sarath_Kumar (Tue, 18 Dec 2018 11:01:33 GMT):
Hi everyone, I have created a network with orderer and peers. similarly i have created a bna file. How to install bna in the created network and how to create a PeerAdminCard which is used to install the bna?

blockchain.abaco (Tue, 18 Dec 2018 11:08:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K3sG42nmBgRhdu5YG) @lepar Yes, i am! The others nodes just serves the consensus mechanism

lepar (Tue, 18 Dec 2018 11:11:59 GMT):
In what scenario would that be applicable?

UnaiUrki (Tue, 18 Dec 2018 11:16:55 GMT):
Hi @Sarath_Kumar , you are talking about composer, right? you have #composer channel for that

blockchain.abaco (Tue, 18 Dec 2018 12:13:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RKbsGPNy9CQnnwabi) @lepar I am developing a thesis project in business environment. The company wants to create a blockchain system to store important data from multiple customers. The company has a node, and every customer has its node. But the data must be entered only by the company, and customers will only serve the consensus mechanism and to keep the ledger data

lepar (Tue, 18 Dec 2018 12:14:34 GMT):
Yeah that's possible. Hyperledger fabric does that

blockchain.abaco (Tue, 18 Dec 2018 12:15:43 GMT):
by defining permissions?

lepar (Tue, 18 Dec 2018 12:16:23 GMT):
Permissions on chaincode and channels

blockchain.abaco (Tue, 18 Dec 2018 12:18:43 GMT):
how channels can be used to make this possible? One channel for the nodes that enter data and another channel for the other nodes that just serves the consensus mechanism?

lepar (Tue, 18 Dec 2018 12:20:22 GMT):
A channel is a ledger between X number of participants

mastersingh24 (Tue, 18 Dec 2018 12:20:38 GMT):
@blockchain.abaco - Who is allowed to see/access which data?

lepar (Tue, 18 Dec 2018 12:21:05 GMT):
You can deploy two chaincodes - one with permission that only one participant can write to the ledger and another where the others can only read.

mastersingh24 (Tue, 18 Dec 2018 12:21:12 GMT):
e.g. can customer A see customer B's data?

mastersingh24 (Tue, 18 Dec 2018 12:22:52 GMT):
or is the data private between Company / Customer A and Company / Customer B ? and if you are really only replicating data pair-wise like this, you really do not need a blockchain

blockchain.abaco (Tue, 18 Dec 2018 12:24:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WncmRPpjtN7Bpob8X) @lepar That's my idea

blockchain.abaco (Tue, 18 Dec 2018 12:26:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RdAKoSC8HmfJSdNH5) @mastersingh24 still doesn't know that, i need to talk with the company first, but the initial idea is to create a network for each customer

cppchedy (Tue, 18 Dec 2018 12:27:53 GMT):
@blockchain.abaco how do you plan to scale this?

cppchedy (Tue, 18 Dec 2018 12:27:53 GMT):
@blockchain.abaco how do you plan to scale it?

blockchain.abaco (Tue, 18 Dec 2018 12:33:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9guPinJuXym94vWJj) @cppchedy we will create a small network for each customer, the net work will have 3-4 nodes, 1 for our company, 1 for the client, and the others 1 or 2 for others companies that will help us to maintain the network. So when we have a new client, we just create a new network, or just delete the network when a client its no longer our client

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 12:35:19 GMT):
I think there are better technologies than blockchain for that project. At least in the way you define it.

blockchain.abaco (Tue, 18 Dec 2018 12:36:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jjPXYiFd9pBy8eMMH) @AndresMartinezMelgar.itcl can you tell me what those alternatives are?

guaguawa.github.io (Tue, 18 Dec 2018 12:40:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o8tNTHJMKJChrABPZ) @blockchain.abaco https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html you can read this chapter.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 12:41:21 GMT):
Right now I do not know, I would have to study the scope of the project well. But as you said, if you want to create a channel for each user (that is, a ledger for each user) you are removing the base to the blockchain technology: that is distributed. That's what I think, I'm not an expert.

AndresMartinezMelgar.itcl (Tue, 18 Dec 2018 12:42:15 GMT):
Hyperledger fabric provides private channels, so you do not have to create 1 channel for each user

blockchain.abaco (Tue, 18 Dec 2018 12:44:45 GMT):
i still doesn't know if i will use hyperledger or other technology, but i will read that link

guaguawa.github.io (Tue, 18 Dec 2018 12:52:39 GMT):
I think you should think twice before you use hyperledger-fabric. First, you should read the introduction about hyperledger, you can study what problems it can solve. Second you must know your scenarios what you want to implement. After you do this, I think you will know how to do and what to do.

blockchain.abaco (Tue, 18 Dec 2018 13:01:55 GMT):
I have read a lot of information about hyperledger, but it is very complex and because of that I do not know if I really need this level of complexity and modularity or if it is enough to use other technologies like BigchainDB

guaguawa.github.io (Tue, 18 Dec 2018 13:13:05 GMT):
I don't know the details about what you want, so I can't give a good suggestion.

guaguawa.github.io (Tue, 18 Dec 2018 13:13:49 GMT):
You should read more docs about hyperledger

blockchain.abaco (Tue, 18 Dec 2018 13:17:29 GMT):
i will do that, thank you!

vikpande (Tue, 18 Dec 2018 13:24:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3gcxkqMYbud3f3XYk) @JayJong :thumbsup:

deepaks (Tue, 18 Dec 2018 13:31:28 GMT):
Hello everyone Can anyone suggest why this error is coming when I am instantiating golang chaincode Error returned from build: 1 \"can't load package: cannot use path@version syntax in GOPATH mode

cppchedy (Tue, 18 Dec 2018 13:45:35 GMT):
@blockchain.abaco I tested bigchaindb and I didn't get a good experience, it's still in early stage dev

cppchedy (Tue, 18 Dec 2018 13:45:53 GMT):
the consensus layer is added from v2.0

cppchedy (Tue, 18 Dec 2018 13:46:28 GMT):
I found problem with the js driver that they are providing

cppchedy (Tue, 18 Dec 2018 13:46:55 GMT):
another option is collections inside the same channels

blockchain.abaco (Tue, 18 Dec 2018 14:00:04 GMT):
@cppchedy thank you for your opinion, i will try both and decide later

jrosmith (Tue, 18 Dec 2018 14:07:10 GMT):
@deepaks good question. #fabric-sdk-node will be the best place to get an answer

deepaks (Tue, 18 Dec 2018 14:37:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qH2WNZAdMew9LSAtx) @jrosmith Okay thanks.

akshay.lawange (Tue, 18 Dec 2018 15:09:42 GMT):
Hi, I am using Chaincode events and trying to get data from chaincode on application server. I am able to recieve event with transaction_id etc. but not getting the data which i am sending from chaincode. Can someone help with this?

akshay.lawange (Tue, 18 Dec 2018 15:29:04 GMT):
Hi, I am using Chaincode events and trying to get data from chaincode on application server. I am able to recieve event with transaction_id etc. but not getting the data which i am sending from chaincode. Can someone help with this? This is the part of nodejs script where i am receiving event - ``` let event_hubs = channel.getChannelEventHubsForOrg(); event_hubs.forEach((eh) => { let invokeEventPromise = new Promise((resolve, reject) => { let payloadData = eh.registerChaincodeEvent(ChaincodeID, "sampleEvent", (payload) => { console.log("OpenDealSettlement: " + payload); console.log("OpenDealSettlement: Stringified Output" + JSON.stringify(payload)); }, (err) => { console.log("sampleEvent ERROR : " + err); }); eh.connect(Boolean(false)); }); }); ``` And this is chaincode event which sends data - ``` err = stub.SetEvent("sampleEvent", []byte(dataString)) if err != nil { fmt.Println("SetEvent Error", err) } ```

adamhardie (Tue, 18 Dec 2018 16:27:14 GMT):
hi all , having been stumped on my cli issue, i have downloaded new images, reconfigured crypto-config, ensure TLS is right

adamhardie (Tue, 18 Dec 2018 16:27:24 GMT):
but when i try to use my cli contanier i get Error: error getting endorser client for channel: endorser client failed to connect to peer0.gmex-group:7051: failed to create new connection: context deadline exceeded

adamhardie (Tue, 18 Dec 2018 16:27:24 GMT):
but when i try to use my cli contanier i get Error: error getting endorser client for channel: endorser client failed to connect to peer0.company:7051: failed to create new connection: context deadline exceeded

adamhardie (Tue, 18 Dec 2018 16:27:58 GMT):
what does this mean please? is cli unable to connect due to bad TLS ? quite hard to debug!

ron (Tue, 18 Dec 2018 16:30:23 GMT):
Another day another interesting error. anyone had "instantiate proposal was bad'

ron (Tue, 18 Dec 2018 16:30:48 GMT):
[ERROR] instantiate-chaincode - Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse

deepaks (Tue, 18 Dec 2018 18:35:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EDGe4qYTorzrydK79) @ron generally this error occurs when their is some error in the chaincode itself

ron (Tue, 18 Dec 2018 18:49:56 GMT):
yup, that's what I noticed and debugging atm

ron (Tue, 18 Dec 2018 18:50:01 GMT):
thanks

ron (Tue, 18 Dec 2018 19:02:38 GMT):
Something useful in this case for others if they stumble here is reviewing the docker logs for that peer on which it was deployed `docker logs -f peer0.org1.example.com`

ron (Tue, 18 Dec 2018 19:02:38 GMT):
Something useful in this case for others if they stumble here is reviewing the docker logs for that peer on which it was deployed: `docker logs -f peer0.org1.example.com`

jrosmith (Tue, 18 Dec 2018 20:41:25 GMT):
@adamhardie [context deadline exceed](https://golang.org/pkg/context/#WithDeadline) is an error coming from golang. something is timing out. can you post a hastebin.com snippet of the peer logs?

jrosmith (Tue, 18 Dec 2018 20:42:44 GMT):
@ron looks like youre using fabric-sample code from a node-sdk. try adding log statements with the specific messages enclosed in the proposal responses to get a better idea of which proposal is failing and why

prakash04 (Tue, 18 Dec 2018 21:32:13 GMT):
How to setup Rest API for hyperledger network using Node JS SDK to connect to external dAPP ?

smartheye (Wed, 19 Dec 2018 02:51:22 GMT):
Has joined the channel.

NickXie (Wed, 19 Dec 2018 03:10:30 GMT):
Hi, we are deploying fabric peer using docker. We would like the ledger persistent even if container is cleared. We would like to mount volume so that the actual ledger and level DB files are stored in host instead of container. Can you help let me know the directory for ledger and level db files. Thank you.

JP (Wed, 19 Dec 2018 04:17:43 GMT):
Hi, I had a erro while adding new organisation in existing fabric network.. 2018-12-19 03:26:28.362 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-12-19 03:26:28.364 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN}

JP (Wed, 19 Dec 2018 04:17:43 GMT):
Hi, I had a error while adding new organisation in existing fabric network.. 2018-12-19 03:26:28.362 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-12-19 03:26:28.364 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN}

Sarath_Kumar (Wed, 19 Dec 2018 07:26:24 GMT):
Hi everyone, Is there any documentation available to configure ports in hyperledger fabric network.

FLASHJr (Wed, 19 Dec 2018 07:33:23 GMT):
I'm trying to deploy fabcar chaincode on BYFN network.. and I'm getting this error while invoking the chaincode ``` Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload:* ```

HylaJaponica (Wed, 19 Dec 2018 07:50:43 GMT):
Hello, everyone. Does anyone have used hyperledger fabric with Oracle's BaaS?

UnaiUrki (Wed, 19 Dec 2018 07:53:12 GMT):
@Ryo 25 :point_up:

ashufalcon (Wed, 19 Dec 2018 09:07:48 GMT):
PeerOrgs: - Name: company1 Domain: whatever.com #EnableNodeOUs: true Specs: - Hostname: devpeer CommonName: devpeer Users: Count: 2 can anyone tell me use of Common name in Specs tag, as per comments in sampal crypto-config file the common name is optional

ashufalcon (Wed, 19 Dec 2018 09:07:48 GMT):
PeerOrgs: - Name: company1 Domain: whatever.com #EnableNodeOUs: true Specs: - Hostname: devpeer CommonName: devpeer Users: Count: 2 can anyone tell me use of Common name in Specs tag, as per comments in sampal crypto-config file the common name is optional. i which case the commonName tag will be used. thanks in advance :)

ashufalcon (Wed, 19 Dec 2018 09:07:48 GMT):
PeerOrgs: - Name: company1 Domain: whatever.com EnableNodeOUs: true Specs: - Hostname: devpeer CommonName: devpeer Users: Count: 2 can anyone tell me use of Common name in Specs tag, as per comments in sampal crypto-config file the common name is optional. i which case the commonName tag will be used. thanks in advance :)

Sarath_Kumar (Wed, 19 Dec 2018 09:14:51 GMT):
Hi All, How to create a PeerAdminCard for the network? I am modifying the createPeerAdminCard.sh available in the dev server into my network. when creating peerAdminCard the below mentioned error is generated. *v0.20.4 is not supported for this level of fabric. Please use version 0.16* How to fix this?

Sarath_Kumar (Wed, 19 Dec 2018 09:14:51 GMT):
Hi All, How to create a PeerAdminCard for the network? I am modifying the createPeerAdminCard.sh available in the fabric dev server into my network. when creating peerAdminCard the below mentioned error is generated. *v0.20.4 is not supported for this level of fabric. Please use version 0.16* How to fix this?

NeelKantht (Wed, 19 Dec 2018 09:37:54 GMT):
how to get connection profile for hyperledger fabric network running locally ?

jlcs (Wed, 19 Dec 2018 09:55:40 GMT):
Has joined the channel.

adamhardie (Wed, 19 Dec 2018 09:57:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2uz9ueSSdLMSsabLL) @jrosmith here : https://pastebin.com/L2zf50QS

jlcs (Wed, 19 Dec 2018 10:01:39 GMT):
Where could I find the default policies of configtx, and how do they apply in the network administration? The first part would help me to write the configtx.yaml file, and the second part to understand how to write custom policies, like that only the administrators in one organization can update the MSP CAs public certificates of another organization. Thank you.

jlcs (Wed, 19 Dec 2018 10:29:47 GMT):
I don't mind it being the source code of fabric, if it is the code that sets the defaults or checks these policies for specific actions.

javapriyan (Wed, 19 Dec 2018 11:32:08 GMT):
Has joined the channel.

javapriyan (Wed, 19 Dec 2018 11:33:53 GMT):
I have a peculiar issue, I have a custom network running based on first network with two org each has two peers and an orderer node. For any chaincode the PutState is not reflecting at all. I tried with all the example chaincodes

javapriyan (Wed, 19 Dec 2018 11:34:39 GMT):
Anyone have faced this issue ever before? Sys/Env config: ubuntu 18.04 go 1.10 chaincode in golang

javapriyan (Wed, 19 Dec 2018 11:34:45 GMT):
fabric version 1.3

KamalGupta123 (Wed, 19 Dec 2018 12:12:24 GMT):
Hi, I have deployed fabric on Kubernetes. When the kubernetes nodes goes down and come back then I am not able to perform POST operation on blockchain network. It keeps showing the below error: {"message":"500 - {\"error\":{\"statusCode\":500,\"name\":\"Error\",\"message\":\"Error trying invoke business network with transaction id 30c6b05b2854b37d60c400e48dc89c26be125b9604fa7f29f1aff5948ba27c12. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \",\"stack\":\"Error: Error trying invoke business network with transaction id 30c6b05b2854b37d60c400e48dc89c26be125b9604fa7f29f1aff5948ba27c12. Error: Error received from sendTransaction: Error: Failed to send transaction successfully to the orderer status:NOT_FOUND \\n at HLFConnection.invokeChainCode (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:1094:30)\\n at \\n at process._tickCallback (internal/process/next_tick.js:189:7)\"}}","code":500}

YanLIU0822 (Wed, 19 Dec 2018 12:31:22 GMT):
hey I start a docker to install and instantiate chaincode and do the chaincode operation, then I exit the docker, close all the docker. I make modification to the chaincode and then restart the docker. but it only call the functions in the previous chaincode. how can i delete the chaincode and use the new one ?

NeelKantht (Wed, 19 Dec 2018 12:40:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NP7obvwh2YtGjo38Q) @YanLIU0822 you can remove the chaincode images and again install the new chaincode image

AndresMartinezMelgar.itcl (Wed, 19 Dec 2018 12:44:24 GMT):
if a peer is in 2 channel has 2 ledger or has one which convine the ledger of each channel? how can i see these ledger?

rohitshukla11 (Wed, 19 Dec 2018 12:49:59 GMT):
@YanLIU0822 bring down the network first then clear all the docker images and then install the chaincode then it will work.

akshay.lawange (Wed, 19 Dec 2018 12:50:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eFCN2xittDTECoDd4) Solved..we have to set boolean value to *true * instead of *false*.

KamalGupta123 (Wed, 19 Dec 2018 12:50:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NP7obvwh2YtGjo38Q) @YanLIU0822 Hi @YanLIU0822 As per my understanding RESTARTING docker would not help you. Below are the steps which we need to perform when we upgrade the BNA or chaincode: 1. Install BNA 2. Request 3. Upgrade BNA I guess what you missed is upgrading the BNA. Please try upgrading the BNA. It would work for sure.

Sam1234 1 (Wed, 19 Dec 2018 12:54:21 GMT):
Has joined the channel.

Sam1234 1 (Wed, 19 Dec 2018 13:01:44 GMT):
um trying to build my first app using Win um following this tutorial: https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial I have installed VLC + Extension Now, I am lost where/how shall I create BND over VLC code ?

YanLIU0822 (Wed, 19 Dec 2018 13:16:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z86rBqHCjSEL3FJG6) @KamalGupta123 Thanks for your kind reply. what do you mean, BNA, is it binary files? configtxgen ... how to upgrade BNA I have no idea about this.

YanLIU0822 (Wed, 19 Dec 2018 13:17:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a5ypFj3PnmfRZXReC) @NeelKantht I cannot find the chaincode image. I thought maybe it is related to the chaincode image but I did nt start the chaincode docker.

NeelKantht (Wed, 19 Dec 2018 13:20:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XN8u7ab4Y7n4HQCWX) @YanLIU0822 what all docker images you have?

YanLIU0822 (Wed, 19 Dec 2018 13:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AsCp7QuCPKos8GdFf) @NeelKantht liuyan@liuyan-hp:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hyperledger/fabric-ca 1.2.0 66cc132bd09c 5 months ago 252MB hyperledger/fabric-ca latest 66cc132bd09c 5 months ago 252MB hyperledger/fabric-tools 1.2.0 379602873003 5 months ago 1.51GB hyperledger/fabric-tools latest 379602873003 5 months ago 1.51GB hyperledger/fabric-ccenv 1.2.0 6acf31e2d9a4 5 months ago 1.43GB hyperledger/fabric-ccenv latest 6acf31e2d9a4 5 months ago 1.43GB hyperledger/fabric-orderer 1.2.0 4baf7789a8ec 5 months ago 152MB hyperledger/fabric-orderer latest 4baf7789a8ec 5 months ago 152MB hyperledger/fabric-peer 1.2.0 82c262e65984 5 months ago 159MB hyperledger/fabric-peer latest 82c262e65984 5 months ago 159MB hyperledger/fabric-zookeeper 0.4.10 2b51158f3898 5 months ago 1.44GB hyperledger/fabric-zookeeper latest 2b51158f3898 5 months ago 1.44GB hyperledger/fabric-couchdb 0.4.10 3092eca241fc 5 months ago 1.61GB hyperledger/fabric-couchdb latest 3092eca241fc 5 months ago 1.61GB hyperledger/fabric-tools x86_64-1.0.0 0403fd1c72c7 17 months ago 1.32GB

KamalGupta123 (Wed, 19 Dec 2018 13:41:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RuzGGH64CgEWgPSEC) @YanLIU0822 BNA is nothing just the logic which our chaincode is going to execute. So lets not just get confused with this. What i suggest try upgrading your chaincode, by upgrading I mean, when you installed the new chaincode, both of the chaincodes(the previous one and newer one) are available to the peer. But what happens in your case is, your peer is still associated with the previous chaincode container. In this case you have to upgrade, this is the only solution as far as i know. After upgrade your peer would point to the newer chaincode contaier. You can take reference about, How to upgrage here: https://hyperledger.github.io/composer/v0.16/reference/composer.network.update.html

YanLIU0822 (Wed, 19 Dec 2018 14:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YFE5rfm8YMXWzoRrT) @KamalGupta123 thanks. I can understand what do you mean but the in the document it says TODO - in order to delete the CDS from the peer node, you would need to enter the peer node’s container, first. We really need to provide a utility script that can do this. docker rm -f rm /var/hyperledger/production/chaincodes/: I am a little bit confused coz I dont have the path /var/hyperledger/

adamhardie (Wed, 19 Dec 2018 14:25:56 GMT):
looks like cli cannot find the peer node, even though it is running properly - peer channel getinfo -c messagebus Error: error getting endorser client for channel: endorser client failed to connect to peer0.company:7051: failed to create new connection: context deadline exceeded the port and container name are correct

adamhardie (Wed, 19 Dec 2018 14:32:43 GMT):
is there a way in the cli container to print the configurations for the peer ?

mastersingh24 (Wed, 19 Dec 2018 14:44:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QFSR9zk8LPadr9F2P) @adamhardie How are you running things? Are you using one of the samples and using Docker Compose?

adamhardie (Wed, 19 Dec 2018 14:45:08 GMT):
i have deployed a kafka & TLS system based on the byfn sample

adamhardie (Wed, 19 Dec 2018 14:45:18 GMT):
using docker compose

adamhardie (Wed, 19 Dec 2018 14:46:11 GMT):
all containers show up and running, but i am unable to create a channel so i am trying to figure out if the cli is properly configured, or if there is an issue with my network

rahul703 (Wed, 19 Dec 2018 14:47:44 GMT):
Hello, any tip on the error below: "failed Error: Calling enrollment endpoint failed with error [Error: write EPROTO 139654861559616:error:1411713E:SSL routines:ssl_check_srvr_ecc_cert_and_alg:ecc cert not for signing:../deps/openssl/openssl/ssl/ssl_lib.c:2520:\n139654861559616:error:14082130:SSL routines:ssl3_check_cert_and_algorithm:bad ecc cert:../deps/openssl/openssl/ssl/s3_clnt.c:3550:\n]"

YanLIU0822 (Wed, 19 Dec 2018 14:53:14 GMT):
@KamalGupta123 hey finally works I have no idea which way works I deleted the /var/lib/docker and reinstall all docker images and I also use the new version of chaincode but if I make any modification to chaincode, I all have to upgrade the version, i feel it is inconvenient.

adamhardie (Wed, 19 Dec 2018 14:59:08 GMT):
so my total system is cli 2 x peer 2 x orderer 1 x couchdb 4 x kafka 3 x zookeeper

adamhardie (Wed, 19 Dec 2018 14:59:20 GMT):
1 x ca

adamhardie (Wed, 19 Dec 2018 16:06:21 GMT):
interestingly i just found some errors in couchdb logs [notice] 2018-12-19T16:04:57.781256Z nonode@nohost <0.322.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:395) <= mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) [error] 2018-12-19T16:04:57.781347Z nonode@nohost emulator -------- Error in process <0.2900.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,395}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,370}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,86}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}

nRyDevOps (Wed, 19 Dec 2018 16:44:05 GMT):

rollback_fail_error.PNG

nRyDevOps (Wed, 19 Dec 2018 16:44:44 GMT):
I setup an IAM specifically for launching a Fabric template on AWS but for some reason it keeps failing instantly.

gad0lim (Wed, 19 Dec 2018 17:00:55 GMT):
Has joined the channel.

adamhardie (Wed, 19 Dec 2018 17:21:29 GMT):
fixed the db issue, it was from an error'd container env. I have removed TLS from the peer and now i get Error: failed to create deliver client: orderer client failed to connect to orderer0.gmex-group:7050: failed to create new connection: context deadline exceeded

dave.enyeart (Wed, 19 Dec 2018 17:45:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EDGe4qYTorzrydK79) @ron Unfortunately the node sdk application samples are not printing the root cause error message. I've opened a bug against the samples to fix this: https://jira.hyperledger.org/browse/FAB-13372 @sstone1 @odowdaibm @andrew-coleman @bretharrison

andrew-coleman (Wed, 19 Dec 2018 17:45:55 GMT):
Has joined the channel.

odowdaibm (Wed, 19 Dec 2018 17:45:55 GMT):
Has joined the channel.

vikpande (Wed, 19 Dec 2018 17:51:36 GMT):
@ron , you might wanna check the version of your fabric, in your .yaml file. we had this problem with another colleague of ours and right version of fabric solved her issue.

dave.enyeart (Wed, 19 Dec 2018 17:53:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=by6EpPEc62X8WMP5G) @adamhardie Note - if you are using couchdb as state database, you need one per peer. each peer maintains a dedicated state database. you can't share as different peers are not on identical block heights at identical times.

nRyDevOps (Wed, 19 Dec 2018 18:29:56 GMT):
is anyone here familiar with the HLF AWS Cloudformation templates?

ron (Wed, 19 Dec 2018 19:20:25 GMT):
@dave.enyeart thanks, will monitor the jira issue, meanwhile will explore what @vikpande suggested.

manpeezy (Wed, 19 Dec 2018 20:10:12 GMT):
Has joined the channel.

ron (Wed, 19 Dec 2018 20:18:23 GMT):
Still on that error, how do I access the golang logs?

ron (Wed, 19 Dec 2018 20:19:21 GMT):
I had a look at the node logs with `docker logs containerID` but the info is vague

ron (Wed, 19 Dec 2018 20:22:02 GMT):
think I found it.... `docker logs -f peer0.org1.example.com` does the magic but what that this means

ron (Wed, 19 Dec 2018 20:22:34 GMT):

Clipboard - December 19, 2018 3:22 PM

lightcap (Wed, 19 Dec 2018 22:20:04 GMT):
Wondering if anyone has ever seen an error like this when running `peer channel join -b config/payment-channel.block`.

lightcap (Wed, 19 Dec 2018 22:20:09 GMT):
```2018-12-19 14:01:48.391 PST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)```

lightcap (Wed, 19 Dec 2018 22:20:26 GMT):
I've tried damn near everything I can think of and can't make a dent.

lightcap (Wed, 19 Dec 2018 22:20:59 GMT):
One peer joins the channel without an issue. The second (from a different org) fails every time.

ymakin (Thu, 20 Dec 2018 00:55:18 GMT):
Has joined the channel.

ymakin (Thu, 20 Dec 2018 00:55:59 GMT):
Hey everyone 1. I can realize data models in state database right? 2. How and where can I add validation before sending custom data model? For example I would like check if my data model property is empty or something like that

ymakin (Thu, 20 Dec 2018 01:00:14 GMT):
hello?

dave.enyeart (Thu, 20 Dec 2018 01:24:55 GMT):
@ymakin The data model is key/value. The value portion can be anything you like... many people use a JSON value for ease of use in code and for queryability (if using CouchDB as state database). You can and should add data validations in the chaincode logic prior to calling PutState().

LeoMoonStar (Thu, 20 Dec 2018 02:04:07 GMT):
Has joined the channel.

LeoMoonStar (Thu, 20 Dec 2018 02:04:19 GMT):
Have anyone found the chaincode may perform differently after being deployed to real fabric network compared with in dev-mood?

LeoMoonStar (Thu, 20 Dec 2018 02:27:27 GMT):
i meet some very wired problem and dont know where gots problem

shniu (Thu, 20 Dec 2018 03:32:36 GMT):
Has joined the channel.

me_abhijeet (Thu, 20 Dec 2018 04:33:19 GMT):
Is there any working on Multihost network using docker swarm?

rohithkumar (Thu, 20 Dec 2018 04:42:41 GMT):
Has joined the channel.

rohithkumar (Thu, 20 Dec 2018 04:42:45 GMT):
I have done with byfn.sh using golang chaincode...do we have any rest api to invoke chaincode

Sarath_Kumar (Thu, 20 Dec 2018 04:48:21 GMT):

Orderer exits.PNG

Sarath_Kumar (Thu, 20 Dec 2018 04:48:21 GMT):

Orderer exits.PNG

javapriyan (Thu, 20 Dec 2018 05:01:38 GMT):
Guys, I am wondering why my chaincode is not working as per the documentation. The putstate is simply notworking

javapriyan (Thu, 20 Dec 2018 05:03:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BDt2TjeiDrHHifo7X) @Sarath_Kumar Obviously some issue with the crypto files. Can you clean the network and start once again ?

javapriyan (Thu, 20 Dec 2018 05:06:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bocSbdCEA48EqbfFt) @rohithkumar There is a https://github.com/hyperledger/fabric-sdk-rest still, you can try golang sdk's to invoke the same. Checkout this : https://github.com/hyperledger/fabric-sdk-go/blob/master/test/integration/pkg/client/ledger/ledger_queries_test.go

sayyamahmed (Thu, 20 Dec 2018 05:07:58 GMT):
hellow every need help about abac in nodejs chaincode

sayyamahmed (Thu, 20 Dec 2018 05:07:58 GMT):
can anyone tell me equilent of cid library of Golang in node js chaincode

Sarath_Kumar (Thu, 20 Dec 2018 05:13:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FxWuoHGxeZgwdXtnH) @javapriyan i have bring down the network and restarted the network, but the issue remains the same

javapriyan (Thu, 20 Dec 2018 05:15:15 GMT):
@Sarath_Kumar Lets go DM

sayyamahmed (Thu, 20 Dec 2018 06:14:46 GMT):
no one replied me ?????????/

SJoshi7 (Thu, 20 Dec 2018 06:42:04 GMT):
Has joined the channel.

rohitshukla11 (Thu, 20 Dec 2018 06:42:16 GMT):
can I share private data between two users of same peers? Let's say I have 3 users U1, U2 and U3 all belongs to the same peers and I want to share data between U1 and U3 which U2 can't see. Is this possible?

ashufalcon (Thu, 20 Dec 2018 06:44:42 GMT):
Organizations: - &Smartforce Name: SmartforceMSP ID: SmartforceMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp - &BusinessPartner1 Name: FalconMSP ID: FalconMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/falcon.com/msp AnchorPeers: - Host: localhost Port: 7051 - &BusinessPartner2 Name: FrostMSP ID: FrostMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/frost.com/msp AnchorPeers: - Host: localhost Port: 8051 # Configuration for the Orderer Orderer: &OrdererDefaults #SampleInsecureSolo OrdererType: solo Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB Application: &ApplicationDefaults Organizations: Channel: &ChannelDefaults Profiles: TwoPartnerGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 Consortiums: TwoPartnerConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: TwoPartnerConsortium Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 $ configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01

ashufalcon (Thu, 20 Dec 2018 06:44:42 GMT):
Organizations: - &Smartforce Name: SmartforceMSP ID: SmartforceMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp - &BusinessPartner1 Name: FalconMSP ID: FalconMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/falcon.com/msp AnchorPeers: - Host: localhost Port: 7051 - &BusinessPartner2 Name: FrostMSP ID: FrostMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/frost.com/msp AnchorPeers: - Host: localhost Port: 8051 # Configuration for the Orderer Orderer: &OrdererDefaults #SampleInsecureSolo OrdererType: solo Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB Application: &ApplicationDefaults Organizations: Channel: &ChannelDefaults Profiles: TwoPartnerGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 Consortiums: TwoPartnerConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: TwoPartnerConsortium Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 MY COMMAND :- $ configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01

ashufalcon (Thu, 20 Dec 2018 06:44:42 GMT):
Organizations: - &Smartforce Name: SmartforceMSP ID: SmartforceMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp - &BusinessPartner1 Name: FalconMSP ID: FalconMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/falcon.com/msp AnchorPeers: - Host: localhost Port: 7051 - &BusinessPartner2 Name: FrostMSP ID: FrostMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/frost.com/msp AnchorPeers: - Host: localhost Port: 8051 # Configuration for the Orderer Orderer: &OrdererDefaults #SampleInsecureSolo OrdererType: solo Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB Application: &ApplicationDefaults Organizations: Channel: &ChannelDefaults Profiles: TwoPartnerGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 Consortiums: TwoPartnerConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: TwoPartnerConsortium Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 MY COMMAND :- $ *configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01 *

ashufalcon (Thu, 20 Dec 2018 06:44:42 GMT):
Organizations: - &Smartforce Name: SmartforceMSP ID: SmartforceMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp - &BusinessPartner1 Name: FalconMSP ID: FalconMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/falcon.com/msp AnchorPeers: - Host: localhost Port: 7051 - &BusinessPartner2 Name: FrostMSP ID: FrostMSP MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/frost.com/msp AnchorPeers: - Host: localhost Port: 8051 # Configuration for the Orderer Orderer: &OrdererDefaults #SampleInsecureSolo OrdererType: solo Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB Application: &ApplicationDefaults Organizations: Channel: &ChannelDefaults Profiles: TwoPartnerGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 Consortiums: TwoPartnerConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: TwoPartnerConsortium Application: <<: *ApplicationDefaults Organizations: - <<: *BusinessPartner1 - <<: *BusinessPartner2 MY COMMAND :- $ configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01

ashufalcon (Thu, 20 Dec 2018 06:45:04 GMT):
output :Error on outputChannelCreateTx: config update generation failure: cannot define a new channel with no Consortium value

ashufalcon (Thu, 20 Dec 2018 06:45:55 GMT):
can anyone help with following command and generated output

prasanths96 (Thu, 20 Dec 2018 06:50:45 GMT):
Hi, I am having trouble to find, if i can login with user identity using fabric cli, for the purpose of testing the chaincode with ABAC.

prasanths96 (Thu, 20 Dec 2018 06:51:03 GMT):
any help/ redirection is much appreciated.

rahul703 (Thu, 20 Dec 2018 08:07:30 GMT):
Hello, I am trying to run fabric-samples/balance-network and I am facing issue in chaincode instantiation - [2018-12-20 13:35:09.514] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-12-20 13:35:09.514] [ERROR] instantiate-chaincode - instantiate proposal was bad [2018-12-20 13:35:09.514] [DEBUG] instantiate-chaincode - Failed to send Proposal and receive all good ProposalResponse [2018-12-20 13:35:09.515] [ERROR] instantiate-chaincode - Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:67726) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode (/Users/rahul703/Desktop/Projects/HYPERLEDGER/fabric-samples/balance-transfer/app/instantiate-chaincode.js:203:9)

rahul703 (Thu, 20 Dec 2018 08:08:07 GMT):
Can anyone please suggest what might be the issue, as it was running fine before.

abityildiz (Thu, 20 Dec 2018 08:09:18 GMT):
hi all,i have 2 organization.2 orderer.All of organization must be same network?one of them organization can be different network system?

darapich92 (Thu, 20 Dec 2018 08:17:07 GMT):
Hello everybody, I have one question relates to the propose message that is sent by client to endorsers. The propose message include and tx=. at this point, can anyone can answer me what is "txpayload"? even i read the fabric doc, i still don't understand. I appreciate for your answers. thank you.

akshay.sood (Thu, 20 Dec 2018 08:38:39 GMT):
Hey Fabric Experts

akshay.sood (Thu, 20 Dec 2018 08:40:49 GMT):
Anyone knows how to generate certificates without using cryptogen? Is there any way to achieve that or is that even possible to generate certificates for org directly without using cryptogen? I know it becomes very easy to generate those crypto using cryptogen but I was looking for an alternate way

WouterVanHecke (Thu, 20 Dec 2018 09:10:39 GMT):
Hello I'm having trouble creating the ClientIdentity object in my chaincode. I'm getting a JSON.parse error in the constructor. This is what the object looks like: { keyUsage: 'Digital Signature', basicConstraints: 'CA:FALSE', subjectKeyIdentifier: '8B:98:45:88:4B:61:C7:E4:72:16:5E:45:AD:C1:6D:1A:A1:2A:1E:E3', authorityKeyIdentifier: 'keyid:42:39:AA:0D:CD:76:DA:EE:B8:BA:0C:DA:70:18:51:D1:45:04:D3:1A:AD:1B:2D:DD:DB:AC:6A:57:36:5E:49:7C', '1.2.3.4.5.6.7.8.1': '\u0004��{"attrs":{"ID":"55-685f-4a70-b7db","hf.Affiliation":"org1.department1","hf.EnrollmentID":"8cd78955-685f-4a70-b7db","hf.Type":"publisher"}}' } See the weird question marks right before the start of the JSON object... I don't know what causes this, anyone any idea? ps: yesterday the questionmarks was a "q", very weird

dcasado (Thu, 20 Dec 2018 09:13:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g68T5LndroHBRYLBk) @akshay.sood You can use fabric CA to generate the certificates or any other external CA that generates compatible certificates with hyperledger fabric.

Tommy109 (Thu, 20 Dec 2018 09:30:04 GMT):
anyone looking for work? dm me

OmarShekriladze (Thu, 20 Dec 2018 10:10:00 GMT):
Hello, Is there any good example how I can implement supply chain using QR codes? I mean some kind of architecture with details that answer on my questions: should all product have different QR code? isn't that kind of information too big data even for hyperledger fabric? etc.

dave.enyeart (Thu, 20 Dec 2018 11:05:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ut5fHK2JBQXWMTqnd) @rohitshukla11 Private data is permissioned at an org level. For any other access control, you can add logic into the chaincode itself. One popular approach is to use attribute based access control, see https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#attribute-based-access-control

dave.enyeart (Thu, 20 Dec 2018 11:07:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TTd7Y2RW5zeBZ69He) @sayyamahmed CID is a convenience layer on top of GetCreator which gets the submitter identity certificate. You can parse the GetCreator yourself, look at the CID go source code to understand how https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode/shim/ext/cid

dave.enyeart (Thu, 20 Dec 2018 11:07:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TTd7Y2RW5zeBZ69He) @sayyamahmed CID is a convenience layer on top of GetCreator which gets the submitter identity certificate. You can parse the GetCreator results yourself, look at the CID go source code to understand how https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode/shim/ext/cid

dave.enyeart (Thu, 20 Dec 2018 11:39:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EhCJuiT8uy8ryMM5d) @rahul703 See https://jira.hyperledger.org/browse/FAB-13372

jlcs (Thu, 20 Dec 2018 12:22:57 GMT):
Hello, I have written a post about how to configure VS Code to debug NodeJS chaincode in Fabric. Hope it helps some of you: https://blockchain.jlcs.es/2018/12/16/debugging-hyperledger-fabric-s-nodejs-chaincode-with-vs-code.html

lepar (Thu, 20 Dec 2018 12:26:02 GMT):
Very nice! Thanks for your contribution

zwartesokken (Thu, 20 Dec 2018 12:35:15 GMT):
Hi all, I'm having issues when trying to do concurrent calls. Where one call would work and another would fail. I'm invoking the chaincode through the node sdk. Anyone an idea if concurrent calls are not supported (I guess not with the nature of blockchain) or what the best practices are in this case

YanLIU0822 (Thu, 20 Dec 2018 12:35:54 GMT):
[39c68d5a] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /var/hyperledger/production/chaincodes/cc_collection.1.0: no such file or directory

dave.enyeart (Thu, 20 Dec 2018 12:38:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QwPZm2cNd78Zwk6hQ) @jlcs Good stuff. Check it out @odowdaibm @mbwhite

dave.enyeart (Thu, 20 Dec 2018 12:41:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DxPr2TX24NbStxxom) @zwartesokken You will need to model your keys to avoid collisions. One example is a bitcoin-like UTXO model where chaincode 'consumes' (deletes) a prior input and creates a new output for each transaction. Other approaches are discussed in this sample readme: https://github.com/hyperledger/fabric-samples/tree/master/high-throughput

dave.enyeart (Thu, 20 Dec 2018 12:41:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DxPr2TX24NbStxxom) @zwartesokken You will need to model your keys to avoid collisions. One example is a bitcoin-like UTXO model where chaincode 'consumes' (deletes) a prior input and creates a new output for each transaction, rather than using updates. Other approaches are discussed in this sample readme: https://github.com/hyperledger/fabric-samples/tree/master/high-throughput

Luxii (Thu, 20 Dec 2018 12:42:11 GMT):
Can we register new peer with fabric ca client sdk of node js ??

YanLIU0822 (Thu, 20 Dec 2018 12:43:10 GMT):
hey guys. If i wanna invoke a chaincode (A) in another chaincode (B). do I have to package the chaincode (A) first and then the other chaincode (B) can invoke chaincode A??

zwartesokken (Thu, 20 Dec 2018 12:43:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9YYM8dg3HMkuKvQG3) @dave.enyeart Thanks for the link. But the keys in this case are totally different. I've ruled key collisions out

dave.enyeart (Thu, 20 Dec 2018 12:43:47 GMT):
You can certainly create/update keys concurrently if they are not colliding

dave.enyeart (Thu, 20 Dec 2018 12:44:22 GMT):
Check that the same key isn't read in your chaincode for each tran

YanLIU0822 (Thu, 20 Dec 2018 12:44:29 GMT):
hey guys. If i wanna invoke a chaincode (A) in another chaincode (B). do I have to package the chaincode (A) first and then the other chaincode (B) can invoke chaincode A??

chuda (Thu, 20 Dec 2018 12:45:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DQ9FNq66X4h3txpE6) @dave.enyeart hi dave, can u provide any reference document for this, ..when using queryallcarsbyrange..i passed startkey, endkey...but as car2..are string it retriving from couch unexpected output...i need to change that datatype of key is it possible or is that bug..

zwartesokken (Thu, 20 Dec 2018 12:45:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8Y9fEy5hfuaXQ6GbY) @dave.enyeart Hmm then maybe something else is wrong. Currently stuck with this issue a couple days. I'll try to recreate the error and post it here

YanLIU0822 (Thu, 20 Dec 2018 12:46:51 GMT):
hey guys. If i wanna invoke a chaincode (A) in another chaincode (B). do I have to package the chaincode (A) first and then the other chaincode (B) can invoke chaincode A??

dave.enyeart (Thu, 20 Dec 2018 12:47:35 GMT):
you need to install and instantiate A before you install and instantiate B.

d8bhatta (Thu, 20 Dec 2018 12:47:42 GMT):
Hello All

d8bhatta (Thu, 20 Dec 2018 12:48:04 GMT):
When I try to start a network, I get following error: Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Unable to initalize channel. Attempted to contact 1 Peers. Last error was Error: Error: Failed to connect before the deadline

dave.enyeart (Thu, 20 Dec 2018 12:48:13 GMT):
@chuda please don't respond to unrelated posts... would need more details of your problem...

d8bhatta (Thu, 20 Dec 2018 12:49:07 GMT):
I ran this basic command to start the network

d8bhatta (Thu, 20 Dec 2018 12:49:08 GMT):
composer network start --networkName carnak-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

YanLIU0822 (Thu, 20 Dec 2018 12:49:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uPc7utsfs2mDGYz9W) @dave.enyeart Yes. I do install instantiate A and B but it says the errors as follows [b44a408a] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /var/hyperledger/production/chaincodes/cc_collection.1.0: no such file or directory

dave.enyeart (Thu, 20 Dec 2018 12:49:29 GMT):
i suggest post to #composer

d8bhatta (Thu, 20 Dec 2018 12:49:56 GMT):
Yes of course I have installed the network before I start it

dave.enyeart (Thu, 20 Dec 2018 12:50:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wC4t9to4JNR3nYWDD) @YanLIU0822 That means cc_collection is not yet installed. Install simply copies the chaincode to /var/hyperledger/production/chaincodes directory

dave.enyeart (Thu, 20 Dec 2018 12:51:22 GMT):
stepping away...

chuda (Thu, 20 Dec 2018 12:53:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y6J9RPYq5ELkXZHn6) @dave.enyeart ok, details are...in fabcar example i have inserted 20 cars ..iam retriving using query.js ,function queryall cars here calling query allcarsbyrange(startkey,endkey), iam passing these values explicitly,,when i have given startkey as 1 and endkey as 16 ..output is like this this..car1,car2,car11,car12,car1,car14,...which is unexpected output..if its not clear i will explain it further

YanLIU0822 (Thu, 20 Dec 2018 12:53:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=smj4EM8Wq5Zv5wz6L) @dave.enyeart I install by the command CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/collection.supplychain.com/peers/peer0.collection.supplychain.com/tls/ca.crt CORE_PEER_ADDRESS=peer0.collection.supplychain.com:7051 CORE_PEER_LOCALMSPID=collectionMSP CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/collection.supplychain.com/users/Admin@collection.supplychain.com/msp peer chaincode install -o orderer.supplychain.com:7050 -n cc_collection -v 1.0 -p $CC_COL_PATH --tls --cafile $ORDERER_CA but i do nt copy the chaincode to the /var/hyperledger/production/chaincodes directory so i need copy the chaincode to that directory?

Luxii (Thu, 20 Dec 2018 13:07:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GsBAh7pPJW2n7qPcq) @dave.enyeart could you please help me on that

dave.enyeart (Thu, 20 Dec 2018 13:09:58 GMT):
please stop the pattern of direct mentions

dave.enyeart (Thu, 20 Dec 2018 13:09:58 GMT):
please stop the pattern of direct mentions, each one causes notifications

dave.enyeart (Thu, 20 Dec 2018 13:11:13 GMT):
@chuda post your details in fabric-ledger... if you mean you don't expect car2 in that list, then i would agree

dave.enyeart (Thu, 20 Dec 2018 13:11:33 GMT):
@YanLIU0822 the `peer chaincode install` command will copy the chaincode into that directory

dave.enyeart (Thu, 20 Dec 2018 13:11:55 GMT):
@Luxii please try the experts in #fabric-sdk-node

YanLIU0822 (Thu, 20 Dec 2018 13:25:09 GMT):
@dave.enyeart it is werid. my /var/hyperledger it is empty. I find nothing here but I can invoke the chaincode and insert the data after I install and instantiate

dave.enyeart (Thu, 20 Dec 2018 13:27:43 GMT):
@YanLIU0822 i'll have to delete any direction mentions...

YanLIU0822 (Thu, 20 Dec 2018 13:31:11 GMT):
@dave.enyeart it is werid. I install and instantiate and also invoke the chaincode but my /var/hyperledger/ has nothing it is empty

dave.enyeart (Thu, 20 Dec 2018 13:31:27 GMT):
@YanLIU0822 please stop direct mentions, i am not technical support

dave.enyeart (Thu, 20 Dec 2018 13:31:41 GMT):
deleting any direct mentions...

FLASHJr (Thu, 20 Dec 2018 13:32:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMGqBwxtLWEMBr3j4) @YanLIU0822 take the cli access of your peer and then check that path

YanLIU0822 (Thu, 20 Dec 2018 13:33:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YuHpwviQzF95SPYM4) @FLASHJr it is the cli. i start the docker but it is empty in both my pc and volumes in docker

YanLIU0822 (Thu, 20 Dec 2018 13:33:53 GMT):
root@46655ac4197d:/opt/gopath/src/github.com/hyperledger/fabric/peer# ls /var/hyperledger/ root@46655ac4197d:/opt/gopath/src/github.com/hyperledger/fabric/peer#

FLASHJr (Thu, 20 Dec 2018 13:34:44 GMT):
which ex are u trying

FLASHJr (Thu, 20 Dec 2018 13:36:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Dj2Rm5aiTxZWiDrbJ) @YanLIU0822 check here : /opt/gopath/src/github.com/chaincode

YanLIU0822 (Thu, 20 Dec 2018 13:36:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zw7BegfcWTackPPtC) @FLASHJr root@46655ac4197d:/opt/gopath/src/github.com/hyperledger/fabric/peer# ls /opt/gopath/src/github.com/chaincode/ collection delivery sales warehouse root@46655ac4197d:/opt/gopath/src/github.com/hyperledger/fabric/peer# yes if i check here there are existing

YanLIU0822 (Thu, 20 Dec 2018 13:37:22 GMT):
but it says the errors as follows [b44a408a] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /var/hyperledger/production/chaincodes/cc_collection.1.0: no such file or directory

YanLIU0822 (Thu, 20 Dec 2018 13:37:41 GMT):
I do nt know why the /var/hyperledger/ is empty

FLASHJr (Thu, 20 Dec 2018 13:37:59 GMT):
otherwise check the volume section of your peer in docker-compose file, where you mention the path of chaincode

YanLIU0822 (Thu, 20 Dec 2018 13:39:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sDoqbtGg6KJxmWhFb) @FLASHJr I didnt give the chaincode setting in the docker-compose.yaml file Must i set the chaincode in this file?

YanLIU0822 (Thu, 20 Dec 2018 13:48:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t95EsqvcTX8viHihc) @dave.enyeart my chaincode is in this path, /opt/gopath/src/github.com/chaincode/ not in /avr/hyperledger

YanLIU0822 (Thu, 20 Dec 2018 13:48:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t95EsqvcTX8viHihc) my chaincode is in this path, /opt/gopath/src/github.com/chaincode/ not in /avr/hyperledger

dave.enyeart (Thu, 20 Dec 2018 13:51:50 GMT):
the directory is configurable using core.yaml fileSystemPath or env variables CORE_PEER_FILESYSTEMPATH

dave.enyeart (Thu, 20 Dec 2018 13:51:50 GMT):
the directory is configurable using core.yaml fileSystemPath or env variable CORE_PEER_FILESYSTEMPATH

YanLIU0822 (Thu, 20 Dec 2018 13:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G7mfRDSuMJfL2x8Yf) @dave.enyeart config the value of CORE_PEER_FILESYSTEMPATH in each peer ?

YanLIU0822 (Thu, 20 Dec 2018 13:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G7mfRDSuMJfL2x8Yf) config the value of CORE_PEER_FILESYSTEMPATH in each peer ?

dave.enyeart (Thu, 20 Dec 2018 13:53:41 GMT):
yes, it is peer scoped

dave.enyeart (Thu, 20 Dec 2018 13:54:12 GMT):
default value is /var/hyperledger/production

YanLIU0822 (Thu, 20 Dec 2018 14:33:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory it indeed locates the path, /opt/gopath/src/github.com/chaincode/ but it doesnt find cc_collection.1.0? cc_collection.1.0 is the package of chaincode. is it?

YanLIU0822 (Thu, 20 Dec 2018 14:33:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory it indeed locates the path, /opt/gopath/src/github.com/chaincode/ but it doesnt find cc_collection.1.0? cc_collection.1.0 is the package of chaincode. is it?

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) }

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) @dave.enyeart but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) }

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) }

YanLIU0822 (Thu, 20 Dec 2018 14:39:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PcSnTRqucf76TprWE) but the package of chaincode likes cc_collection.out, instead of cc_collection.1.0 i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) } how to make the path matched the key is that the path does nt match

adamhardie (Thu, 20 Dec 2018 14:42:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wxC5DTQA325HHjmQ2) thanks - have sorted that out and have my 2 peers properly configured

adamhardie (Thu, 20 Dec 2018 14:43:25 GMT):
from inside the peer container i try : peer channel create -c messagebus Error: ordering service endpoint is not valid or missing

adamhardie (Thu, 20 Dec 2018 14:43:49 GMT):
but if i do peer channel list 2018-12-20 14:43:40.178 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined:

adamhardie (Thu, 20 Dec 2018 14:43:57 GMT):
orderer looks ok ?

adamhardie (Thu, 20 Dec 2018 14:59:30 GMT):
So, having played around inside the peer0 container : peer channel list 2018-12-20 14:43:40.178 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined:

adamhardie (Thu, 20 Dec 2018 14:59:35 GMT):
root@0054ae54f058:/opt/gopath/src/github.com/hyperledger/fabric# peer channel create -c messagebus -o orderer0.gmex-group:7050 Error: failed to create deliver client: orderer client failed to connect to orderer0.gmex-group:7050: failed to create new connection: context deadline exceeded

adamhardie (Thu, 20 Dec 2018 14:59:35 GMT):
root@0054ae54f058:/opt/gopath/src/github.com/hyperledger/fabric# peer channel create -c messagebus -o orderer0.company:7050 Error: failed to create deliver client: orderer client failed to connect to orderer0.company:7050: failed to create new connection: context deadline exceeded

lightcap (Thu, 20 Dec 2018 16:20:25 GMT):
Figured it out. `CORE_PEER_GOSSIP_EXTERNALENDPOINT` and `CORE_PEER_GOSSIP_BOOTSTRAP` need to be set for channels to work properly.

adamhardie (Thu, 20 Dec 2018 16:23:34 GMT):
you star! will configure these and let you know how i get on

lightcap (Thu, 20 Dec 2018 16:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jerpWeJSirYjQLcz5) @Luxii If by "fabric ca client sdk" you mean the actual tool provided as part of Fabric CA Server that's named `fabric-ca-client` then, yes, you can.

lightcap (Thu, 20 Dec 2018 16:31:03 GMT):
@adamhardie sorry, man, I was following up with a question I had posted yesterday. Thought it may help someone else. But you are having some sort of issue with the actual network connection to your orderer it would appear.

lightcap (Thu, 20 Dec 2018 16:32:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZaevzHr6MHvSFXqnv) Specifically this one :point_up_2_tone1:

lightcap (Thu, 20 Dec 2018 16:32:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZaevzHr6MHvSFXqnv) Specifically this one :point_down_tone5: _tone1:

lightcap (Thu, 20 Dec 2018 16:32:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZaevzHr6MHvSFXqnv) Specifically this one :point_down_tone2:

adamhardie (Thu, 20 Dec 2018 16:33:34 GMT):
ahh i seee! well, it couldnt hurt to configure these properly anyway so thanks a lot!

lightcap (Thu, 20 Dec 2018 16:34:07 GMT):
Yeah for sure. They *do* need to be set if you're working with peers in the same channel in any case.

lightcap (Thu, 20 Dec 2018 16:34:40 GMT):
Also make sure your port mappings are right if you're working with docker containers.

adamhardie (Thu, 20 Dec 2018 16:34:44 GMT):
i believe my issue stems from kafka begginnerness

lightcap (Thu, 20 Dec 2018 16:34:55 GMT):
ah, yeah, well that could be too.

lightcap (Thu, 20 Dec 2018 16:35:08 GMT):
did you try with a solo orderer before jumping to Kafka?

adamhardie (Thu, 20 Dec 2018 16:35:11 GMT):
as i have tried a lot on the fabric configs with no luck!

adamhardie (Thu, 20 Dec 2018 16:35:22 GMT):
yeah indeed, we have everything running nicely in test systems

lightcap (Thu, 20 Dec 2018 16:35:22 GMT):
10 out of 10 would recommend, if not.

lightcap (Thu, 20 Dec 2018 16:35:27 GMT):
cool.

adamhardie (Thu, 20 Dec 2018 16:35:39 GMT):
but if we need to upgrade docker for example, it blows away the whole network

lightcap (Thu, 20 Dec 2018 16:35:51 GMT):
Ew.

adamhardie (Thu, 20 Dec 2018 16:36:05 GMT):
so im the designated person figuring out kafka ;) haha

lightcap (Thu, 20 Dec 2018 16:36:11 GMT):
lucky you :-)

mattmaru (Thu, 20 Dec 2018 17:00:40 GMT):
Hi guys, I'm a beginner in this world. I have a question... I need to know how is possible add a resource like an artwork to a "peer". In my project i create a chaincode that works with artwork. But how i can add these to a specific peer?

mattmaru (Thu, 20 Dec 2018 17:00:48 GMT):
Please answer me

lightcap (Thu, 20 Dec 2018 17:32:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Av739EMMWqupCbtyL) @mattmaru Have you looked at https://hyperledger-fabric.readthedocs.io/en/release-1.3/chaincode4noah.html?

rsoeldner (Thu, 20 Dec 2018 18:05:22 GMT):
Hi, first time fabric user - followed the byfn tutorial, but when trying to create the channel, I get ``` error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ```

rsoeldner (Thu, 20 Dec 2018 18:05:22 GMT):
Hi, first time fabric user - followed the byfn tutorial, but when trying to create the channel, I get ``` error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining ``` I switched to `CORE_LOGGING_LEVEL=DEBUG` and saw this: ``` 2018-12-20 17:58:18.551 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/work/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/crls]. Skipping. [stat /work/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/crls: no such file or directory] 2018-12-20 17:58:18.551 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/work/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/config.yaml]: [stat /work/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/config.yaml: no such file or directory] ``` Is this related ?

YanLIU0822 (Fri, 21 Dec 2018 01:20:58 GMT):
hey guys please help me out thanks [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) } how to make the path matched the key is that the path does nt match

Luxii (Fri, 21 Dec 2018 05:15:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5qp3pwiujKTPPG76R) @lightcap I'm talking about fabric ca client of node sdk not the binary tool.

silverrgray (Fri, 21 Dec 2018 06:44:24 GMT):
Has joined the channel.

silverrgray (Fri, 21 Dec 2018 06:44:33 GMT):
hi getting this error when i try to join a peer to a channel Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1:7051: failed to create new connection: context deadline exceeded what seems to be the problem?

knagware9 (Fri, 21 Dec 2018 06:52:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SqZzSMZHDKpZiuYTd) @silverrgray check this if it helps https://jira.hyperledger.org/browse/FAB-9786?attachmentViewMode=list

ashlinSajan (Fri, 21 Dec 2018 06:55:41 GMT):
Is it possible to allow for someone in hyperledger rights only to read, and to others read+write? So, can you specify different roles for users?

knagware9 (Fri, 21 Dec 2018 07:07:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=znfvseoyPaf5xaAtx) @ashlinSajan use Attribute-Based Access Control (ABAC) to invoke particular fucntion in chaincode based on user attribute and also you can define reader writer permission in https://github.com/hyperledger/fabric-samples/blob/v1.4.0-rc2/first-network/configtx.yaml

YanLIU0822 (Fri, 21 Dec 2018 07:41:52 GMT):
hey guys please help me out thanks [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) } how to make the path matched the key is that the path does nt match

irkoch (Fri, 21 Dec 2018 08:37:54 GMT):
Has joined the channel.

rahul703 (Fri, 21 Dec 2018 09:33:13 GMT):
Hello everyone, I just have a beginner question. Is the anchor peer transaction update, somehow related to chaincode instantiation or invokation. Given that the chaincode has been installed on that particular anchor peer(whose anchor peer transaction has not been updated), on which I'm trying to invoke the chaincode . Any help would be appreciated ! thanks

NeelKantht (Fri, 21 Dec 2018 09:38:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yBCzkm7XtkGXG4i4d) @rahul703 as per my understanding anchor peer update means u are updating the anchor peer in the channel so that u can do install,instantiate and invoke transaction

rahul703 (Fri, 21 Dec 2018 09:50:28 GMT):
thanks @NeelKantht

pumicerD (Fri, 21 Dec 2018 10:50:36 GMT):
Has joined the channel.

MajorityAttack (Fri, 21 Dec 2018 11:02:48 GMT):
hi all, I am trying to build fabric and run make all. but it is failed on integration-test because the hyperledger/fabric-javaenv image not found. There is no Dockerfile in fabric/image directory, so how can I build fabric-javaenv image manually? many thanks.

Aman.jain (Fri, 21 Dec 2018 11:06:07 GMT):
Has joined the channel.

pumicerD (Fri, 21 Dec 2018 11:23:12 GMT):
@MajorityAttack this is in https://github.com/hyperledger/fabric-chaincode-java/ if I'm not mistaken

Sarath_Kumar (Fri, 21 Dec 2018 11:52:53 GMT):
Hi all, I need to *deploy bna to custom network.* while deploying, the network using peeradmincard i think it will be deployed in the example network.

Sarath_Kumar (Fri, 21 Dec 2018 11:52:53 GMT):
Hi all, I need to *deploy bna to custom network.* while deploying, the bna using peeradmincard i think it will be deployed in the example network.

YanLIU0822 (Fri, 21 Dec 2018 12:30:19 GMT):
hey guys please help me out thanks [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory i found there is a mistake /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0 the path should be /opt/gopath/src/github.com/chaincode/sales/sales.go /opt/gopath/src/github.com/chaincode/collection/collection.go the configuration of CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/ in the sales.go I invoke the cc_collection chaincode col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) } how to make the path matched the key is that the path does nt match

lepar (Fri, 21 Dec 2018 12:33:48 GMT):
@YanLIU0822 you define the path in the docker-compose.yaml file

YanLIU0822 (Fri, 21 Dec 2018 12:36:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xmqZQa7ZoytRs4ffi) @lepar yes I config CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/

lepar (Fri, 21 Dec 2018 12:38:39 GMT):
What's the issue then?

lepar (Fri, 21 Dec 2018 12:40:46 GMT):
If you found the mistake then fix the path

YanLIU0822 (Fri, 21 Dec 2018 12:42:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=44qpNpbh22o5hRpMn) @lepar I have two chaincode in /chaincode/collection/collection.go /chaincode/sales/sales.go under the peer peer0.collection. in the docker-compose.yaml config CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/collection under the peer peer0.sales in the docker-compose.yaml config CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/sales I wanna invoke the chaincode, collection.go in the chaincode, sales.go

YanLIU0822 (Fri, 21 Dec 2018 12:42:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=44qpNpbh22o5hRpMn) @lepar I have two chaincode in /chaincode/collection/collection.go /chaincode/sales/sales.go under the peer peer0.collection. in the docker-compose.yaml config CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/collection under the peer peer0.sales in the docker-compose.yaml config CORE_PEER_SYSTEMPATH=/opt/gopath/src/github.com/chaincode/sales in the sales.go col_history_param := []string{"invoke", "getHistory", ID} col_queryArgs := make([][]byte, len(col_history_param)) for i, arg := range col_history_param { col_queryArgs[i] = []byte(arg) } col_response := stub.InvokeChaincode("cc_collection", col_queryArgs, "supplychainchannel") if col_response.Status != shim.OK { errStr := fmt.Sprintf("Failed to query chaincode - cc_collection. Got error: %s", col_response.Payload) fmt.Printf(errStr) return shim.Error(errStr) } col_result := string(col_response.Payload) fmt.Printf(" collection info - result : %s ", col_result) var col_infos []string if err := json.Unmarshal([]byte(col_result), &col_infos); err != nil { return shim.Error(fmt.Sprintf("query operation failed. Error marshaling JSON: %s", err)) } for _, v := range col_infos { keys = append(keys, v) } those codes are for invoking the collection chaincode in the sales chaincode I wanna invoke the chaincode, collection.go in the chaincode, sales.go when i invoke this function it says the error as follows [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory

lepar (Fri, 21 Dec 2018 12:46:04 GMT):
Ok, There's a few terms that are probably confusing to you. First, you INSTALL the chaincode on the peer, Then you INSTANTIATE the chaincode, then you INVOKE to call the chaincode functions to store/retrieve data. Which step are you stuck on?

lepar (Fri, 21 Dec 2018 12:46:31 GMT):
Because if you're invoking, the path is not necessary

YanLIU0822 (Fri, 21 Dec 2018 12:52:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Nkau4xfT6Mus3xaXf) @lepar I follow step as follows the last step meet errors ### COLLECTION peer channel join -b supplychainchannel.block --tls --cafile $ORDERER_CA export CC_COL_PATH=github.com/chaincode/collection peer chaincode install -o orderer.supplychain.com:7050 -n cc_collection -v 1.0 -p $CC_COL_PATH --tls --cafile $ORDERER_CA peer chaincode instantiate -o orderer.supplychain.com:7050 -C $CHANNEL_NAME -n cc_collection -v 1.0 -c '{"Args":[""]}' -P "OR ('warehouseMSP.member', 'salesMSP.member')" --tls --cafile $ORDERER_CA peer chaincode invoke -o orderer.supplychain.com:7050 -C $CHANNEL_NAME -n cc_collection -c '{"function":"recordCollection","Args":["XXX"]}' --tls --cafile $ORDERER_CA ### SALES peer channel join -b supplychainchannel.block --tls --cafile $ORDERER_CA export CC_COL_PATH=github.com/chaincode/sales peer chaincode install -o orderer.supplychain.com:7050 -n cc_sales -v 1.0 -p $CC_COL_PATH --tls --cafile $ORDERER_CA peer chaincode instantiate -o orderer.supplychain.com:7050 -C $CHANNEL_NAME -n cc_sales -v 1.0 -c '{"Args":[""]}' -P "OR ('collectionMSP.member', 'salesMSP.member')" --tls --cafile $ORDERER_CA peer chaincode invoke -o orderer.supplychain.com:7050 -C $CHANNEL_NAME -n cc_sales -c '{"function":"recordSales","Args":["XXX"]}' --tls --cafile $ORDERER_CA // this the step to invoke another chaincode in this function peer chaincode query -C $CHANNEL_NAME -n cc_sales -c '{"function":"getAllHistory","Args":["1"]}' --tls --cafile $ORDERER_CA in this step it meets errors [57b2dbb0] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/sales/chaincodes/cc_collection.1.0: no such file or directory

lepar (Fri, 21 Dec 2018 12:53:52 GMT):
What's the value of this variable? CC_COL_PATH

YanLIU0822 (Fri, 21 Dec 2018 12:55:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PTNcvcnvH5RwxnFTf) @lepar in the collection export CC_COL_PATH=github.com/chaincode/collection in the sales export CC_COL_PATH=github.com/chaincode/sales

lepar (Fri, 21 Dec 2018 13:02:59 GMT):
That's the problem, look at the path the error gives, change the path in the export to math the one in the error.

lepar (Fri, 21 Dec 2018 13:03:05 GMT):
match

rahul703 (Fri, 21 Dec 2018 13:10:28 GMT):
Hello I'm getting an error while trying to invoke a chaincode. The chaincode gets successfully instantiated, but during invoke it gives error - Error: make sure the chaincode chaincc has been successfully instantiated and try again: chaincode chaincc not found

rahul703 (Fri, 21 Dec 2018 13:10:39 GMT):
any hint would be appreciated

YanLIU0822 (Fri, 21 Dec 2018 13:19:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fn9kJTCvGbWkYwhtm) @lepar I guess the problem is from the path but I have no idea to make changes so far

chuda (Fri, 21 Dec 2018 13:43:01 GMT):
hi,feeling there is a bug in getallcarsbyrange(startkey,endkey)...if we give range as 1 to 12 having 20 records it retriving records like this...1,2,11,12,13,14...19...wats this error or bug..any one help me here

YanLIU0822 (Fri, 21 Dec 2018 13:43:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3yujbtptYciSH8dhN) @lepar [b62bb726] Failed to handle INVOKE_CHAINCODE. error: cannot retrieve package for chaincode cc_collection/1.0, error open /opt/gopath/src/github.com/chaincode/chaincodes/cc_collection.1.0: no such file or directory it gives the error as beforementioned but I do nt have the directory, chaincodes why it searches the direction, chaincodes github.com/chaincode/chaincodes/cc_collection.1.0 so there is the default searching path?

YanLIU0822 (Fri, 21 Dec 2018 14:09:05 GMT):
hey my chaincode name is cc_collection and the version is 1.0 where can i find the file cc_collection.1.0 if I install this chaincode?

lepar (Fri, 21 Dec 2018 14:13:01 GMT):
That's weird, that's not supposed to be the path. Lemme check on my network

lepar (Fri, 21 Dec 2018 14:17:00 GMT):
I couldn't find anything remotely close to what's happening to you. My paths didn't create anything .1.0 or the version I'm running

YanLIU0822 (Fri, 21 Dec 2018 14:18:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xqHxjMRgc6pA9hWKY) @lepar where do you put the chaincode and when you start docker where do you find the chaincode

lepar (Fri, 21 Dec 2018 14:19:42 GMT):
"/opt/gopath/src/github.com/chaincode1/chaincode.go" and "/opt/gopath/src/github.com/chaincode2/chaincode2.go"

lepar (Fri, 21 Dec 2018 14:20:58 GMT):
In the docker-compose "/chaincode/:/opt/gopath/src/github.com/"

lepar (Fri, 21 Dec 2018 14:21:13 GMT):
So it copies the chaincode folder to github/

YanLIU0822 (Fri, 21 Dec 2018 14:25:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8vaJRxLJYkbkHxtfy) @lepar do you know where do the blocks store it says the blocks are stored the path according to FILESYSTEMPATH I config CORE_PEER_FILESYSTEMPATH=/opt/gopath/src/github.com/chaincode but this path only has the chaincodes

lepar (Fri, 21 Dec 2018 14:26:06 GMT):
The blocks are stored somewhere else, if I remember correctly somewhere in the /var/...

lepar (Fri, 21 Dec 2018 14:26:40 GMT):
"/var/hyperledger/production/ledgersData"

YanLIU0822 (Fri, 21 Dec 2018 14:27:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NmbRXrHjTzKy9qEMh) @lepar the default path is /var/hyperledger/production/chaincodes but there is empth in the directory of /var/hyperledger

YanLIU0822 (Fri, 21 Dec 2018 14:28:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tnxRGthDbHPDdpWmJ) @lepar liuyan@liuyan-hp:/var$ ls backups cache crash lib local lock log mail metrics opt run snap spool tmp there is no hyperledger path

lepar (Fri, 21 Dec 2018 14:32:40 GMT):
It's empty cus you didn't invoke anything yet

YanLIU0822 (Fri, 21 Dec 2018 14:38:50 GMT):
I can find the docker images dev-peer0.sales-cc_sales-1.0-411b861d2631f65d78e482828b9692150a4d4c878255aa43780bf1c25c4c1e9f latest 56fb3c811910 About an hour ago 147MB dev-peer0.collection-cc_collection-1.0-b2302f5dee50729dd9fccbabe8b5a4f4645b5ba3c0bebd64c45df8569da7d19f latest 696bf6bfe376 About an hour ago 147MB but I cannot find the collection.1.0:joy: so sad

YanLIU0822 (Fri, 21 Dec 2018 14:38:50 GMT):
I can find the docker images dev-peer0.sales-cc_sales-1.0-411b861d2631f65d78e482828b9692150a4d4c878255aa43780bf1c25c4c1e9f latest 56fb3c811910 About an hour ago 147MB dev-peer0.collection-cc_collection-1.0-b2302f5dee50729dd9fccbabe8b5a4f4645b5ba3c0bebd64c45df8569da7d19f latest 696bf6bfe376 About an hour ago 147MB but I cannot find the collection.1.0 so sad:joy:

lepar (Fri, 21 Dec 2018 14:39:37 GMT):
I have no idea how you're coming up with collection.1.0 lol

YanLIU0822 (Fri, 21 Dec 2018 14:40:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XHej7r3GqP3beaFdb) @lepar and I indeed invoked successfully root@c3a7d1d34e87:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode invoke -o orderer.supplychain.com:7050 -C $CHANNEL_NAME -n cc_sales -c '{"function":"recordSales","Args":["XXX"]}' --tls --cafile $ORDERER_CA 2018-12-21 13:39:35.855 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-12-21 13:39:35.855 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-12-21 13:39:35.856 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-12-21 13:39:35.856 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-12-21 13:39:35.857 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0ACB070A7408031A0C0897DAF3E00510...643435365647540A076C69752079616E 2018-12-21 13:39:35.857 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 9B232AFABFE3E71D59A4175573AED8A8E57AABF7657ED6F8FFC444B5C263347A 2018-12-21 13:39:35.860 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0ACB070A7408031A0C0897DAF3E00510...F664195B712E8FF883AD97CD17528987 2018-12-21 13:39:35.860 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 5CAF19E0C1477E4E30265BEABF2CDD675CC6BF59B8DC59D8C88122A678EF1097 2018-12-21 13:39:35.861 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 009 ESCC invoke result: version:1 response: payload:"\n \203$\343\250\017;\272\302\314\\\362.\334\370Ox[#\343\004W\031\2675\252\2005\215\327\036\372\014\022\321\001\n\270\001\022\233\001\n\010cc_sales\022\216\001\032\213\001\n\0011\032\205\001{\"ObjectType\":\"sales\",\"Id\":\"1\",\"Location\":\"locationshunde\",\"CompName\":\"companyName\",\"RunCode\":\"runcodeasd456VGT\",\"Creator\":\"liu yan\"}\022\030\n\004lscc\022\020\n\016\n\010cc_sales\022\002\010\003\032\003\010\310\001\"\017\022\010cc_sales\032\0031.0" endorsement: 2018-12-21 13:39:35.861 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 00a Chaincode invoke successful. result: status:200 2018-12-21 13:39:35.861 UTC [main] main -> INFO 00b Exiting.....

lepar (Fri, 21 Dec 2018 14:42:32 GMT):
Try looking in other directories

YanLIU0822 (Fri, 21 Dec 2018 14:43:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4XouW2WMwiTAKmCCA) @lepar I can find the block file under order docker liuyan@liuyan-hp:~$ docker exec -it orderer.com bash root@245bd34ea811:/opt/gopath/src/github.com/hyperledger/fabric/orderer# ls -la /var/hyperledger/production/orderer/chains/supplychainchannel/ total 60 drwxr-xr-x 2 root root 4096 Dec 21 13:37 . drwxr-xr-x 4 root root 4096 Dec 21 13:37 .. -rw-r----- 1 root root 47915 Dec 21 13:39 blockfile_000000

lepar (Fri, 21 Dec 2018 14:44:07 GMT):
In which docker are you looking for it?

YanLIU0822 (Fri, 21 Dec 2018 14:44:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jLmugR2Px5Df9NiR5) @lepar but i am invoke the peer0.collection chaincode in the peer0.sales

lepar (Fri, 21 Dec 2018 14:54:31 GMT):
Idk what to tell you, your network is behaving weird

lepar (Fri, 21 Dec 2018 14:55:11 GMT):
check your paths, that's pretty much all I can tell you

YanLIU0822 (Fri, 21 Dec 2018 15:20:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WZ8fT3gzgKWYZ3A44) @lepar thanks

YanLIU0822 (Fri, 21 Dec 2018 15:21:14 GMT):
18-12-21 15:11:55.446 UTC [chaincodeCmd] install -> DEBU 010 Installed remotely response: payload:"\n \252\023\2414/\n\020\021\310\254jW\245\235vW\024iV\321\023\335+Ug?\240\223\371\371\352\252\022\214\001\032\201\001\010\364\003\022|error installing chaincode code cc_collection:1.0(chaincode /var/hyperledger/production/chaincodes/cc_collection.1.0 exists)\"\006\022\004lscc" it says the file exists but i cannot find this file

lepar (Fri, 21 Dec 2018 15:24:20 GMT):
Delete the container images from "docker images"

YanLIU0822 (Fri, 21 Dec 2018 15:25:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i9aFYHu38bTdecSmw) @lepar this is not the root reason I delete it every time

lepar (Fri, 21 Dec 2018 15:41:47 GMT):
Go to that location and see if it exists

YanLIU0822 (Fri, 21 Dec 2018 15:42:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TWNQHj6bM3hAj7J7A) @lepar Nope it is weird

YanLIU0822 (Fri, 21 Dec 2018 15:43:06 GMT):
:joy:

lepar (Fri, 21 Dec 2018 15:43:16 GMT):
wtf

lepar (Fri, 21 Dec 2018 15:43:26 GMT):
It has to be somewhere

ron (Fri, 21 Dec 2018 15:45:38 GMT):
Need some guidance here. Trying to install balance-transfer and one more app on fabric. With both apps I am getting this error `[ERROR] invoke-chaincode - invoke chaincode proposal was bad` any idea what it might be from?

ron (Fri, 21 Dec 2018 15:45:57 GMT):
Both apps are pretty basic setup, nothing custom...

YanLIU0822 (Fri, 21 Dec 2018 15:46:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=knZnsziiRmpPDKYaq) @lepar thanks anyway. it is very late in my home I got to sleep good night

YanLIU0822 (Fri, 21 Dec 2018 15:47:29 GMT):
i wil keep going tomorrow

YanLIU0822 (Fri, 21 Dec 2018 16:03:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=knZnsziiRmpPDKYaq) @lepar I knew why I cannot find the file actually it exits I open the docker exec -it cli bash and try to find /var/hyperledger/production/chaincodes/ but i cannot find buttttttttt liuyan@liuyan-hp:~$ docker exec -it peer0.collection.supplychain.com bash root@a41662702333:/opt/gopath/src/github.com/hyperledger/fabric# ls /var/hyperledger/production/chaincodes/ cc_collection.1.0 I open docker exec -it peer0.collection.supplychain.com bash i can find it

YanLIU0822 (Fri, 21 Dec 2018 16:03:56 GMT):
I do it in the wrong way

lepar (Fri, 21 Dec 2018 16:23:27 GMT):
I see

rsoeldner (Fri, 21 Dec 2018 19:31:12 GMT):
Running with all paths like `peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` gives me an error `Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /etc/hyperledger/fabr...` - why is it picking up `/etc/...`

rsoeldner (Sat, 22 Dec 2018 12:43:43 GMT):
Do I need to update all anchors before running peer chaincode install ?

MillionBenjamin (Sat, 22 Dec 2018 13:03:08 GMT):
Has joined the channel.

MillionBenjamin (Sat, 22 Dec 2018 13:03:14 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: cannot get package for chaincode (process3-business-network:0.0.2) ''' I got this error when using "composer network start". I confirm that my network name and version are correct and I can find the chaincode via "docker exec peer0.org1.example.com ls /var/hyperledger/production/chaincodes ". So what's wrong lol

dave.enyeart (Sat, 22 Dec 2018 13:56:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wsfRLiPe7mCyiyPb8) @rsoeldner no. anchors are required for cross-org gossip, while chaincode must be installed on each peer independently

rsoeldner (Sat, 22 Dec 2018 14:01:02 GMT):
@dave.enyeart thank you :)

bdevashish (Sat, 22 Dec 2018 18:38:24 GMT):
Has joined the channel.

bdevashish (Sat, 22 Dec 2018 18:38:31 GMT):
Hi

bdevashish (Sat, 22 Dec 2018 18:38:48 GMT):
I have started my first network

bdevashish (Sat, 22 Dec 2018 18:38:56 GMT):
I now need to bring it down

bdevashish (Sat, 22 Dec 2018 18:39:01 GMT):
I am in this directory - /opt/gopath/src/github.com/hyperledger/fabric/peer

bdevashish (Sat, 22 Dec 2018 18:39:11 GMT):
How can I bring it down from here ??

lepar (Sat, 22 Dec 2018 18:43:28 GMT):
First, get out of that directory with "exit"

lepar (Sat, 22 Dec 2018 18:43:40 GMT):
Then run "docker stop $(docker ps -aq)"

lepar (Sat, 22 Dec 2018 18:43:50 GMT):
Then run "docker rm $(docker ps -aq)

lepar (Sat, 22 Dec 2018 18:44:20 GMT):
@bdevashish

bdevashish (Sat, 22 Dec 2018 18:47:00 GMT):
ok let me try

bdevashish (Sat, 22 Dec 2018 18:48:48 GMT):
Thank you so much @lepar

lepar (Sat, 22 Dec 2018 18:49:03 GMT):
Welcome

rsoeldner (Sun, 23 Dec 2018 07:42:59 GMT):
Is there a way of defining different kinds of peers for each organization. Especially I want to have groups like an Employee, Manager, CEO and I want add peers to one of this groups. Later, one Employee creates an object which should be accepted / signed (in the sense of approved, state change) by first the manager, then ceo. Is it possible to cover this in a chaincode, and inside a chaincode, how can I unsure only the org admin is able to invoke a specific function ?

rsoeldner (Sun, 23 Dec 2018 07:42:59 GMT):
Is there a way of defining different kinds of peers for each organization. Especially I want to have groups like an Employee, Manager, CEO and I want add peers to one of this groups. Later, one Employee creates an object which should be accepted / signed (in the sense of approved, state change) by first the manager, then ceo. Is it possible to cover this in a chaincode, and inside a chaincode, how can I unsure only the org admin is able to invoke a specific function ? Is it done with https://fabric-shim.github.io/master/fabric-shim.ClientIdentity.html ?

ajaykumar213 (Sun, 23 Dec 2018 08:20:56 GMT):
Has joined the channel.

ajaykumar213 (Sun, 23 Dec 2018 08:21:48 GMT):
Which language is preferable for chaincode

hassan_ahmed4621 (Sun, 23 Dec 2018 09:46:37 GMT):
Has joined the channel.

hassan_ahmed4621 (Sun, 23 Dec 2018 09:47:09 GMT):
Hi guys I am using Basic network with my changed organizations "user" and "legaldocxauth" and fabcar chaincode to run with it (later i will change chaincode functions according to my use case) but whenever i run startFabric.sh on instantiating chaincode it gives error "failed to deserialize creator identity, err usermsp msp is unknown" Docker version latest 18.09.0 I have changed other network files configtx , docker-compose yaml and crypto configtx Msps accordingly I have also tried other solutions(on stackoverflow) of similar problem but no luck 😞

Akshat-Jain (Sun, 23 Dec 2018 12:25:28 GMT):
Has joined the channel.

Akshat-Jain (Sun, 23 Dec 2018 12:25:40 GMT):
Hello everyone! I have almost completed the IBM Blockchain Foundation course on Coursera. Hence, I have a basic idea and am familiar with Hyperledger Composer and Fabric. What should I do next? Any tips?

banijolly (Mon, 24 Dec 2018 05:24:13 GMT):
Has joined the channel.

banijolly (Mon, 24 Dec 2018 05:26:23 GMT):
Hi, I'm a beginner in this and want some advice. I need to create a token based file exchange app. Can someone suggest the best way to do this?

knagware9 (Mon, 24 Dec 2018 05:40:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qDni5cbQxGktQriRK) @ajaykumar213 I mostly use Go lang but Node.js is also good because using node will help to develop complete application in one lang

knagware9 (Mon, 24 Dec 2018 05:41:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ui6zjiKs7whhkABxA) @Akshat-Jain Go through fabric -samples and play with https://github.com/hyperledger/fabric-samples/tree/v1.4.0-rc1/fabric-ca

knagware9 (Mon, 24 Dec 2018 05:42:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ahktLHrMw8gksYEgF) @rsoeldner Yes , You can define different peers in org and for invoking specific function by admin you can achieve using RBAC e.g https://fabric-shim.github.io/master/fabric-shim.ClientIdentity.html

SJoshi7 (Mon, 24 Dec 2018 05:49:17 GMT):
hello everyone, I am working on a problem statement which involves a third party to share some user data with a company and to make sure that the shared data is not used for some other purpose I want to bring this process to blockchain. Can anyone please help me to guide through this?

bhemeswararaoankireddy (Mon, 24 Dec 2018 06:47:04 GMT):
hello everyone ,i am looking for hyperledger fabric based supplychain project please any one help me

rsoeldner (Mon, 24 Dec 2018 07:37:59 GMT):
@knagware9 Thank you, currently have defined a network without a CA (modified first-network, docker-compose-cli.yaml) - just pre-generated credentials over the crypto-config.yaml file with `Template count` and `Users count` - if I want to switch to a CA for each org, is this still needed ? I'm a bit confused - are these credentials _just_ for peer node integrity and has nothing to do with participants of the network ?

knagware9 (Mon, 24 Dec 2018 08:13:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B49dEZDEykRRhPeQx) @rsoeldner yes these are needed ,and you need to have CA container for each org to maintain peer credentials

knagware9 (Mon, 24 Dec 2018 08:13:54 GMT):
or you can use Fabric-ca instead of using cyrptogen tool to generate artefacts https://github.com/hyperledger/fabric-samples/tree/v1.4.0-rc2/fabric-ca

livenicely (Mon, 24 Dec 2018 08:46:15 GMT):
Has joined the channel.

livenicely (Mon, 24 Dec 2018 08:48:13 GMT):
Hello Everyone! I am trying to launch orderer with kafka but getting the following error "Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876" I also post my question here "https://stackoverflow.com/questions/53910987/hyperledger-orderer-is-not-working-with-kafka" I am trying from four days but did not find any solution.

rsoeldner (Mon, 24 Dec 2018 09:00:06 GMT):
@knagware9 thank you but for what is the `user count` parameter if users get handled by the ca. `user = 1` as admin cred. for the peer (hardware) would make sense to me but not > 1

rsoeldner (Mon, 24 Dec 2018 09:00:06 GMT):
@knagware9 thank you but for what is the `user count` parameter if users get handled by the ca. `user = 1` as admin cred. for the peer (hardware) would make sense to me but not > 1 OR does it mean only one (admin peer) is able to update the network and all other peers are just a separate storage / maintaining node

knagware9 (Mon, 24 Dec 2018 09:31:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZT9AuMXtgrt7QKMrt) @rsoeldner user count for creating a user certificates for peer ..if you specify 2 then two users credential generated

knagware9 (Mon, 24 Dec 2018 09:33:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=63i2F4GTA2LPkTN7H) so if one peer has 3 users registered and OR policy will check any user of a peer should endorse transaction

irkoch (Mon, 24 Dec 2018 09:33:29 GMT):
Hello everyone please i need to know how can i be able to Attaching access/permission based on the e-mail address (@ministry etc etc). if that can be possible with fabric? please i need your help

rsoeldner (Mon, 24 Dec 2018 09:34:38 GMT):
@knagware9 ok, this is only needed if i want to create all credentials with the cryptogen tool, right ? If I directly go with https://github.com/hyperledger/fabric-samples/tree/release-1.3/fabric-ca it is not needed

suva (Mon, 24 Dec 2018 09:35:54 GMT):
Hi all I am trying to query blockchain ledger, but getting error Invalid method! Valid methods are 'create|update|delete|exist|read|history|search'! I am posting my code func (t *Actpay) Query(stub *shim.ChaincodeStub, function string, args []string) peer.Response{ fmt.Println(function) // Handle different functions if function == "OrderQuery" { // gets the state for an assetID as a JSON struct return t.OrderQuery(stub, args) } return shim.Error("Received unknown function query: " + function) } func (t *Actpay) OrderQuery(stub shim.ChaincodeStubInterface, args []string) peer.Response { // "queryString" if len(args) < 1 { return shim.Error("Incorrect number of arguments. Expecting 1") } queryString := args[0] fmt.Println(queryString) resultsIterator, err := stub.GetQueryResult(queryString) defer resultsIterator.Close() if err != nil { return shim.Error("Unable to retrieve value") } defer resultsIterator.Close() var buffer bytes.Buffer buffer.WriteString("[") var bArrayMemberAlreadyWritten = false for resultsIterator.HasNext() { queryResponse,err := resultsIterator.Next() if err != nil { return shim.Error("failed") } // Add a comma before array members, suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- OrderQuery queryResult:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) } The open API code is as below '/query/FindOrderStatus': get: summary: Find Status by Order Status description: "" operationId: "OrderQuery" produces: - "application/json" parameters: - in: query name: status type: "array" items: type: "string" responses: '200': description: Query return successfully '400': description: Parameter Mismatch '409': description: ID Already Exists while trying to execute from swagger UI I am getting the error this is my api /query/FindOrderStatus?status=PO_REJECTED

suva (Mon, 24 Dec 2018 09:36:01 GMT):
Can somebody help me?

rsoeldner (Mon, 24 Dec 2018 09:36:01 GMT):
@irkoch from what I understood so far it is possible to use https://fabric-shim.github.io/master/fabric-shim.ClientIdentity.html combined with RBAC

irkoch (Mon, 24 Dec 2018 09:43:43 GMT):
@rsoeldner thank you for the answer, please if you have a tutorial for more understand

rohithkumar (Mon, 24 Dec 2018 09:58:30 GMT):
How to emit the events in the Golang chaincode and can we listen the events using nodejs sdk?

livenicely (Mon, 24 Dec 2018 10:04:34 GMT):
Hello Everyone! I am trying to launch orderer with kafka but getting the following error "Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876" I also post my question here "https://stackoverflow.com/questions/53910987/hyperledger-orderer-is-not-working-with-kafka" I am trying from four days but did not find any solution.

adityachap (Mon, 24 Dec 2018 10:10:27 GMT):
@livenicely Please check your congiftxgen.yaml file for orderer-kafka settings moreover check the certificates generated also try doing with TLS disabled first

livenicely (Mon, 24 Dec 2018 10:12:55 GMT):
tsl is disabled.

livenicely (Mon, 24 Dec 2018 10:13:10 GMT):
tls is disabled

livenicely (Mon, 24 Dec 2018 10:13:52 GMT):
OrdererType: kafka Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB # Max Channels is the maximum number of channels to allow on the ordering # network. When set to 0, this implies no maximum number of channels. MaxChannels: 0 Kafka: # Brokers: A list of Kafka brokers to which the orderer connects. Edit # this list to identify the brokers of the ordering service. # NOTE: Use IP:port notation. Brokers: - 192.168.1.35:9092 - 192.168.1.36:9092 - 192.168.1.37:9092 - 192.168.1.50:9092

adityachap (Mon, 24 Dec 2018 10:14:33 GMT):
@livenicely check for the orderer logs if the stream connection with kafka is successful

livenicely (Mon, 24 Dec 2018 10:16:15 GMT):
I think is is successful

livenicely (Mon, 24 Dec 2018 10:16:46 GMT):
2018-12-24 16:15:39.747 CST [orderer/consensus/kafka/sarama] RefreshMetadata -> DEBU 0d9 client/metadata fetching metadata for all topics from broker 192.168.1.36:9092 2018-12-24 16:15:39.750 CST [orderer/consensus/kafka/sarama] withRecover -> DEBU 0da Connected to broker at 192.168.1.36:9092 (unregistered) 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka/sarama] updateMetadata -> DEBU 0db client/brokers registered new broker #0 at 192.168.1.35:9092 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka/sarama] updateMetadata -> DEBU 0dc client/brokers registered new broker #2 at 192.168.1.37:9092 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka/sarama] updateMetadata -> DEBU 0dd client/brokers registered new broker #3 at 192.168.1.50:9092 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka/sarama] updateMetadata -> DEBU 0de client/brokers registered new broker #1 at 192.168.1.36:9092 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka/sarama] NewConsumer -> DEBU 0df Successfully initialized new client 2018-12-24 16:15:39.761 CST [orderer/consensus/kafka] try -> DEBU 0e0 [channel: ordererchannel] Error is nil, breaking the retry loop 2018-12-24 16:15:39.762 CST [orderer/consensus/kafka] startThread -> INFO 0e1 [channel: ordererchannel] Parent consumer set up successfully 2018-12-24 16:15:39.762 CST [orderer/consensus/kafka] setupChannelConsumerForChannel -> INFO 0e2 [channel: ordererchannel] Setting up the channel consumer for this channel (start offset: -2)... 2018-12-24 16:15:39.762 CST [orderer/consensus/kafka] try -> DEBU 0e3 [channel: ordererchannel] Connecting to the Kafka cluster 2018-12-24 16:15:39.762 CST [orderer/consensus/kafka/sarama] Open -> DEBU 0e4 ClientID is the default of 'sarama', you should consider setting it to something application-specific. 2018-12-24 16:15:39.764 CST [orderer/consensus/kafka/sarama] withRecover -> DEBU 0e5 Connected to broker at 192.168.1.50:9092 (registered as #3) 2018-12-24 16:15:39.787 CST [orderer/consensus/kafka] try -> DEBU 0e6 [channel: ordererchannel] Error is nil, breaking the retry loop 2018-12-24 16:15:39.787 CST [orderer/consensus/kafka/sarama] subscriptionConsumer -> DEBU 0e7 consumer/broker/3 added subscription to ordererchannel/0 2018-12-24 16:15:39.787 CST [orderer/consensus/kafka] startThread -> INFO 0e8 [channel: ordererchannel] Channel consumer set up successfully 2018-12-24 16:15:39.787 CST [orderer/consensus/kafka] startThread -> INFO 0e9 [channel: ordererchannel] Start phase completed successfully 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka/sarama] subscriptionConsumer)-fm -> DEBU 0ea consumer/broker/3 disconnecting due to error processing FetchRequest: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka/sarama] abort -> DEBU 0eb Closed connection to broker 192.168.1.50:9092 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0ec [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:39.796 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0ed [channel: ordererchannel] Deliver sessions will be dropped if consumption errors continue. 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] dispatcher)-fm -> DEBU 0ee consumer/ordererchannel/0 finding new broker 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] RefreshMetadata -> DEBU 0ef client/metadata fetching metadata for [ordererchannel] from broker 192.168.1.36:9092 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] Open -> DEBU 0f0 ClientID is the default of 'sarama', you should consider setting it to something application-specific. 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] subscriptionConsumer -> DEBU 0f1 consumer/broker/3 added subscription to ordererchannel/0 2018-12-24 16:15:41.810 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0f2 [channel: ordererchannel] Consumption will resume. 2018-12-24 16:15:41.816 CST [orderer/consensus/kafka/sarama] withRecover -> DEBU 0f3 Connected to broker at 192.168.1.50:9092 (registered as #3) 2018-12-24 16:15:41.832 CST [orderer/consensus/kafka/sarama] subscriptionConsumer)-fm -> DEBU 0f4 consumer/broker/3 disconnecting due to error processing FetchRequest: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka/sarama] abort -> DEBU 0f5 Closed connection to broker 192.168.1.50:9092 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0f6 [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876

livenicely (Mon, 24 Dec 2018 10:17:49 GMT):
2018-12-24 16:15:39.795 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0ec [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:39.796 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0ed [channel: ordererchannel] Deliver sessions will be dropped if consumption errors continue. 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] dispatcher)-fm -> DEBU 0ee consumer/ordererchannel/0 finding new broker 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] RefreshMetadata -> DEBU 0ef client/metadata fetching metadata for [ordererchannel] from broker 192.168.1.36:9092 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] Open -> DEBU 0f0 ClientID is the default of 'sarama', you should consider setting it to something application-specific. 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] subscriptionConsumer -> DEBU 0f1 consumer/broker/3 added subscription to ordererchannel/0 2018-12-24 16:15:41.810 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0f2 [channel: ordererchannel] Consumption will resume. 2018-12-24 16:15:41.816 CST [orderer/consensus/kafka/sarama] withRecover -> DEBU 0f3 Connected to broker at 192.168.1.50:9092 (registered as #3) 2018-12-24 16:15:41.832 CST [orderer/consensus/kafka/sarama] subscriptionConsumer)-fm -> DEBU 0f4 consumer/broker/3 disconnecting due to error processing FetchRequest: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka/sarama] abort -> DEBU 0f5 Closed connection to broker 192.168.1.50:9092 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0f6 [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0f7 [channel: ordererchannel] Deliver sessions will be dropped if consumption errors continue.

livenicely (Mon, 24 Dec 2018 10:17:55 GMT):
2018-12-24 16:15:39.787 CST [orderer/consensus/kafka] startThread -> INFO 0e8 [channel: ordererchannel] Channel consumer set up successfully 2018-12-24 16:15:39.787 CST [orderer/consensus/kafka] startThread -> INFO 0e9 [channel: ordererchannel] Start phase completed successfully 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka/sarama] subscriptionConsumer)-fm -> DEBU 0ea consumer/broker/3 disconnecting due to error processing FetchRequest: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka/sarama] abort -> DEBU 0eb Closed connection to broker 192.168.1.50:9092 2018-12-24 16:15:39.795 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0ec [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:39.796 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0ed [channel: ordererchannel] Deliver sessions will be dropped if consumption errors continue. 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] dispatcher)-fm -> DEBU 0ee consumer/ordererchannel/0 finding new broker 2018-12-24 16:15:41.796 CST [orderer/consensus/kafka/sarama] RefreshMetadata -> DEBU 0ef client/metadata fetching metadata for [ordererchannel] from broker 192.168.1.36:9092 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] Open -> DEBU 0f0 ClientID is the default of 'sarama', you should consider setting it to something application-specific. 2018-12-24 16:15:41.809 CST [orderer/consensus/kafka/sarama] subscriptionConsumer -> DEBU 0f1 consumer/broker/3 added subscription to ordererchannel/0 2018-12-24 16:15:41.810 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0f2 [channel: ordererchannel] Consumption will resume. 2018-12-24 16:15:41.816 CST [orderer/consensus/kafka/sarama] withRecover -> DEBU 0f3 Connected to broker at 192.168.1.50:9092 (registered as #3) 2018-12-24 16:15:41.832 CST [orderer/consensus/kafka/sarama] subscriptionConsumer)-fm -> DEBU 0f4 consumer/broker/3 disconnecting due to error processing FetchRequest: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka/sarama] abort -> DEBU 0f5 Closed connection to broker 192.168.1.50:9092 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka] processMessagesToBlocks -> ERRO 0f6 [channel: ordererchannel] Error during consumption: kafka: error while consuming ordererchannel/0: kafka: error decoding packet: CRC didn't match expected 0x0 got 0xe38a6876 2018-12-24 16:15:41.833 CST [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0f7 [channel: ordererchannel] Deliver sessions will be dropped if consumption errors continue.

adityachap (Mon, 24 Dec 2018 10:19:51 GMT):
hoping that 192.168.1.50:9092 is leader kafka and others are follower try stopping this instance so that another kafka will become the leader and see if you get the same error

livenicely (Mon, 24 Dec 2018 10:20:41 GMT):
yes, same error

livenicely (Mon, 24 Dec 2018 10:20:47 GMT):
i have been try this

livenicely (Mon, 24 Dec 2018 10:20:55 GMT):
now i am going to try with older version of kafka

livenicely (Mon, 24 Dec 2018 10:21:06 GMT):
may be 2.0 is not supported by fabric

pikvik (Mon, 24 Dec 2018 10:29:11 GMT):
Has joined the channel.

knagware9 (Mon, 24 Dec 2018 10:30:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JgG2E9JHiv8Wy2KvH) @rsoeldner yes

pikvik (Mon, 24 Dec 2018 10:31:56 GMT):
MacBook-Pro:fabCar techolution$ node invoke.js Store path:/Users/techolution/fabric-samples/fabcar/hfc-key-store (node:2563) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead Successfully loaded user1 from persistence Assigning transaction_id: da25d154b226c92274b3366969dcbdb8a8345adfc1a3b8be66fbb482b34ec4c5 Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... TECHOLUTIONs-MacBook-Pro:fabCar techolution$

pikvik (Mon, 24 Dec 2018 10:31:56 GMT):
I m facing this error folks . Can someone help me out with this ?/

pikvik (Mon, 24 Dec 2018 10:32:35 GMT):
MacBook-Pro:fabCar techolution$ node invoke.js Store path:/Users/techolution/fabric-samples/fabcar/hfc-key-store (node:2563) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead Successfully loaded user1 from persistence Assigning transaction_id: da25d154b226c92274b3366969dcbdb8a8345adfc1a3b8be66fbb482b34ec4c5 Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... TECHOLUTIONs-MacBook-Pro:fabCar techolution$

akshay.lawange (Mon, 24 Dec 2018 13:07:42 GMT):
Hi, one quick question, what is the latest release of fabric binaries?

akshay.lawange (Mon, 24 Dec 2018 13:08:07 GMT):
Because i have downloaded for 1.3.0 configtxgen --version shows me 1.2.0

shahidkhan (Mon, 24 Dec 2018 20:06:04 GMT):
Has joined the channel.

HylaJaponica (Tue, 25 Dec 2018 02:09:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QhbgNhhAiMRdoX6LA) :point_up:

AkshayMilmile (Tue, 25 Dec 2018 07:27:45 GMT):
Has joined the channel.

AkshayMilmile (Tue, 25 Dec 2018 07:30:38 GMT):
Hi, I have a question. If private data has a lifespan, and it is purged after this lifespan. Doesn't this violate the fundamental principle of immutability and the core idea of blockchain. I know that the hash of these private data is stored in the ledger but if a data deletion is occurring then it seems that the core idea is getting violated.

Krit (Tue, 25 Dec 2018 15:38:57 GMT):
Has joined the channel.

Krit (Tue, 25 Dec 2018 15:52:04 GMT):
Hi, How is Azure Service Fabric different from Fabric installed on Ubuntu server? Is Fabric on Azure instance as full fledged as the network on Ubuntu instances? Our organization is evaluating block chains for use in one of our project.

jeka_gompa (Tue, 25 Dec 2018 16:42:29 GMT):
Hello everybody, I'm really struggling here. My problem is that I need to gather signatures from other peers to update a channel but I don't know how to do that and I could find any example on how to do it. - this is what I'm trying to do: “peer channel update -f -c $CHANNEL_NAME -o orderer.example.com:7050 --tls true --cafile <$ORDERER_CA>” - this is the error I'm getting:

jeka_gompa (Tue, 25 Dec 2018 16:42:29 GMT):
Hello everybody, I'm really struggling here. My problem is that I need to gather signatures from other peers to update a channel but I don't know how to do that and I could find any example on how to do it. - this is what I'm trying to do: “peer channel update -f -c $CHANNEL_NAME -o orderer.example.com:7050 --tls true --cafile <$ORDERER_CA>” - this is the error I'm getting: “Error: got unexpected status: BAD_REQUEST – error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining” Can anyone please help me get the transaction file signed for the channel update.

jeka_gompa (Tue, 25 Dec 2018 16:42:29 GMT):
Hello everybody, I'm really struggling here. My problem is that I need to gather signatures from other peers to update a channel but I don't know how to do that and I could find any example on how to do it. - this is what I'm trying to do: “peer channel update -f -c $CHANNEL_NAME -o orderer.example.com:7050 --tls true --cafile <$ORDERER_CA>” - this is the error I'm getting: “Error: got unexpected status: BAD_REQUEST – error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining” Can anyone please help me get the transaction file signed for the channel update. Thanks in advance and hope someone can help me out.

jeka_gompa (Tue, 25 Dec 2018 16:42:29 GMT):
Hello everybody, I'm really struggling here. My problem is that I need to gather signatures from other peers to update a channel but I don't know how to do that and I couldn't find any example on how to do it. (I don't have the certificates or other information about the other peers) - this is what I'm trying to do: “peer channel update -f -c $CHANNEL_NAME -o orderer.example.com:7050 --tls true --cafile <$ORDERER_CA>” - this is the error I'm getting: “Error: got unexpected status: BAD_REQUEST – error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining” Can anyone please help me get the transaction file signed for the channel update. Thanks in advance and hope someone can help me out.

rsoeldner (Tue, 25 Dec 2018 19:09:32 GMT):
Looking at the `fabric-ca` example from the `fabric-samples` repo, is there a reason (except showing it is working) to run a intermediate-ca ?

rsoeldner (Tue, 25 Dec 2018 19:09:32 GMT):
Looking at the `fabric-ca` example from the `fabric-samples` repo, is there a reason (except showing it is working) to run a intermediate-ca ?

rsoeldner (Tue, 25 Dec 2018 19:09:32 GMT):
Looking at the `fabric-ca` example from the `fabric-samples` repo, is there a reason (except showing it is working) to run a intermediate-ca?

d8bhatta (Wed, 26 Dec 2018 05:19:51 GMT):
Hello Guys

SJoshi7 (Wed, 26 Dec 2018 05:51:07 GMT):
If I want to add a new peer to my fabric network then what's the process for it ?

mefy-pushpendu (Wed, 26 Dec 2018 05:58:23 GMT):
Has joined the channel.

mefy-pushpendu (Wed, 26 Dec 2018 05:58:27 GMT):
I amworking a project where large amount of doctor and users will be on the platform and each will have individual account along with lots of personal and business data in the blockchain. But currently i am facing a problem that whenever i am upgrading the business network , all the data gets loss. Still can not find a way to preserve the data while uograding the net work. I am using hyperledger fabric v 1.2 , couchdb as a state db and fabric-cli and loopback as a mid tier to generate the apis for the app. How can i solve this issue to store data which upgradind the business network or restarting it ?

ArpitKhurana1 (Wed, 26 Dec 2018 06:25:36 GMT):
Hi, with fabric 1.4 , if i am not wrong, CORE_LOGGING_LEVEL and ORDERER_GENERAL_LOGLEVEL does not work anymore

ArpitKhurana1 (Wed, 26 Dec 2018 06:25:36 GMT):
Hi, with fabric 1.4 , if i am not wrong, CORE_LOGGING_LEVEL and ORDERER_GENERAL_LOGLEVEL does not work anymore. Is there any way to set default global logging levels without using operations services

ArpitKhurana1 (Wed, 26 Dec 2018 06:25:36 GMT):
Hi, with fabric 1.4 , if i am not wrong, CORE_LOGGING_LEVEL and ORDERER_GENERAL_LOGLEVEL does not work anymore. Is there any way to set default global logging levels without using operations services?

mefy-pushpendu (Wed, 26 Dec 2018 06:26:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z5MaCp2eRMasCRuDN) @ArpitKhurana1 is this a reply to my question ?

ArpitKhurana1 (Wed, 26 Dec 2018 06:27:07 GMT):
@mefy-pushpendu its a separate question

ArpitKhurana1 (Wed, 26 Dec 2018 06:27:56 GMT):
@mefy-pushpendu There is a tutorial for upgrading network components

VarunVerma (Wed, 26 Dec 2018 06:39:19 GMT):
Hi, How can i retrieve the user data from the Asset History. Basically i wanted to know who(user) invoked a particular Trasnsaction. Thankyou

knagware9 (Wed, 26 Dec 2018 07:07:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5sWatSauHAebcsnh3) @Krit Underline technology is same for azure fabric service ,just microsoft done some user friendly UI to take care of network setup & application development in simple way..if you fabric installed on ubuntu you need to take care of network components & their management etc..

knagware9 (Wed, 26 Dec 2018 07:10:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EpSR6XumnH64Sq2bn) @mefy-pushpendu check this https://hyperledger-fabric.readthedocs.io/en/release-1.4/upgrade_to_newest_version.html

knagware9 (Wed, 26 Dec 2018 07:11:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z5MaCp2eRMasCRuDN) @ArpitKhurana1 Arpit ,,I think you can try with SDK https://fabric-sdk-node.github.io/master/tutorial-logging.html

mefy-pushpendu (Wed, 26 Dec 2018 07:20:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JqFDjrh9ERtvHikRT) @knagware9 Yes. just read the docs. But dont know how can i backup the ledger data before upgrading the network.

VarunVerma (Wed, 26 Dec 2018 08:21:39 GMT):
Error: error getting chaincode code fabcar: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/lib/cid: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/core/chaincode/lib/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of: /opt/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH)

halilkalkan (Wed, 26 Dec 2018 08:49:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ns5FneA6X3thhBt4u) @VarunVerma Hi Varun, have you included cid library to your chaincode vendor file?

Sarath_Kumar (Wed, 26 Dec 2018 09:39:38 GMT):
Hi all, How to check the installed bna version? How to check the created channel list and channel details?

mefy-pushpendu (Wed, 26 Dec 2018 10:34:30 GMT):
I amworking a project where large amount of doctor and users will be on the platform and each will have individual account along with lots of personal and business data in the blockchain. But currently i am facing a problem that whenever i am upgrading the business network , all the data gets loss. Still can not find a way to preserve the data while uograding the net work. I am using hyperledger fabric v 1.2 , couchdb as a state db and fabric-cli and loopback as a mid tier to generate the apis for the app. How can i solve this issue to store data which upgradind the business network or restarting it ?

WouterVanHecke (Wed, 26 Dec 2018 10:42:24 GMT):
I'm having a question about the startup of the fabric ca container. command: sh -c 'fabric-ca-server start -b admin:adminpw -d' ==> this is the command that is used to start the fabric ca, but going into production, I can't place my admin credentials in my docker compose like that. Does anyone have any suggestions on how to bypass this problem?

yaqeenmohammed (Wed, 26 Dec 2018 11:30:28 GMT):
Has joined the channel.

yaqeenmohammed (Wed, 26 Dec 2018 11:38:07 GMT):
Hi i need some help to kake CHFA exam , is their any resource to take the certificates >

mefy-pushpendu (Wed, 26 Dec 2018 11:40:38 GMT):
I amworking a project where large amount of doctor and users will be on the platform and each will have individual account along with lots of personal and business data in the blockchain. But currently i am facing a problem that whenever i am upgrading the business network , all the data gets loss. Still can not find a way to preserve the data while uograding the net work. I am using hyperledger fabric v 1.2 , couchdb as a state db and fabric-cli and loopback as a mid tier to generate the apis for the app. How can i solve this issue to store data which upgradind the business network or restarting it ?

WouterVanHecke (Wed, 26 Dec 2018 11:58:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bbrDdpwCJhtwHfygZ) @mefy-pushpendu don't forget about the GDPR rules that you can't store personal data on the blockchain :wink:

lcj (Wed, 26 Dec 2018 12:37:43 GMT):
Hello everyone. The Certified Hyperledger Fabric Administrator (CHFA) will based on fabric which version? who knows?

lcj (Wed, 26 Dec 2018 12:38:17 GMT):
hyperledger fabric exam

WouterVanHecke (Wed, 26 Dec 2018 12:46:11 GMT):
How can we dynamically generate the couchdb credentials for each peer? instead of hardcoded in the docker compose?

gustavosci (Wed, 26 Dec 2018 12:55:26 GMT):
Has joined the channel.

VarunVerma (Wed, 26 Dec 2018 12:58:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w52tKskdHenspHDj3) @halilkalkan yes

ashufalcon (Wed, 26 Dec 2018 13:05:20 GMT):
falcon@falcon:~/dev-iq-smartforce$ orderer 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 001 General.Authentication.TimeWindow unset, setting to 15m0s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 002 Kafka.Retry.ShortInterval unset, setting to 1m0s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 003 Kafka.Retry.ShortTotal unset, setting to 10m0s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 004 Kafka.Retry.LongInterval unset, setting to 10m0s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 005 Kafka.Retry.LongTotal unset, setting to 12h0m0s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 006 Kafka.Retry.NetworkTimeouts.DialTimeout unset, setting to 30s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 007 Kafka.Retry.NetworkTimeouts.ReadTimeout unset, setting to 30s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 008 Kafka.Retry.NetworkTimeouts.WriteTimeout unset, setting to 30s 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 009 Kafka.Retry.Metadata.RetryBackoff unset, setting to 250ms 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 00a Kafka.Retry.Metadata.RetryMax unset, setting to 3 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 00b Kafka.Retry.Producer.RetryBackoff unset, setting to 100ms 2018-12-26 17:28:20.197 IST [localconfig] completeInitialization -> INFO 00c Kafka.Retry.Producer.RetryMax unset, setting to 3 2018-12-26 17:28:20.198 IST [localconfig] completeInitialization -> INFO 00d Kafka.Retry.Consumer.RetryBackoff unset, setting to 2s 2018-12-26 17:28:20.198 IST [localconfig] completeInitialization -> INFO 00e Kafka.Version unset, setting to 0.10.2.0 2018-12-26 17:28:20.198 IST [orderer/common/server] initializeLocalMsp -> CRIT 00f Failed to initialize local MSP: could not load a valid signer certificate from directory /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp/signcerts: stat /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp/signcerts: no such file or directory falcon@falcon:~/dev-iq-smartforce$ help me starting orderer.the cryto-config folder is correct

ashufalcon (Wed, 26 Dec 2018 13:06:01 GMT):
orderer.yaml file ############################################################# # Orderer Configuration # # # ############################################################# General: # Genesis Block Method = Provisional then GenesisProfile need to be specified # GenesisMethod: provisional # GenesisProfile: AcmeOrdererGenesis # Genesis Block Method = file then GenesisFile need to be specified # The genesis block file need to be generated using the configtxgen tool GenesisMethod: file GenesisFile: /home/falcon/dev-iq-smartforce/TwoPartnerGenesis.block # Ledger Type can be ram, json or file LedgerType: file #File vs Database (LevelDB) # BCCSP Setup BCCSP: # Setup to use the Software CSP Default: SW SW: HASH: SHA2 Security: 256 # Using the default 'LocalMSPDir/keystore' FileKeyStore: Keystore: # Directory for the private crypto material needed by the # orderer. LocalMSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp # Identity to register the local MSP material with the MSP LocalMSPID: SmartforceMSP # Listen address: The IP on which to bind to listen. ListenAddress: 127.0.0.1 # Listen port: The port on which to bind to listen. ListenPort: 7050 # Keepalive settings for the GRPC server. Keepalive: # Disconnect the client if the time between pings is less than the specified time ServerMinInterval: 60s # Server pings the clients on open connection with the specified time between pings ServerInterval: 7200s # Server expects the clients to respond to pings. Server disconnets if response not receieved within timeout ServerTimeout: 20s # TLS: TLS settings for the GRPC server. TLS: Enabled: false PrivateKey: ./server.key Certificate: ./server.crt RootCAs: - ./ca.crt ClientAuthRequired: false ClientRootCAs: # Log Level: The level at which to log. This accepts logging specifications # per: fabric/docs/Setup/logging-control.md LogLevel: info # Log Format: The format string to use when logging. Especially useful to disable color logging LogFormat: '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}' ################################################################################ # # SECTION: File Ledger # - This section applies to the configuration of the file or json ledgers. ################################################################################ FileLedger: # Location: The directory to store the blocks in. # Windows - if you get a LevelDb error in launching orderer use the VM file # by uncommenting the following line - comment the Location: ./ledger Location: /home/falcon/dev-iq-smartforce/ledger-data # Location: ./ledger # The prefix to use when generating a ledger directory in temporary space. Prefix: hyperledger-fabric-ordererledger ################################################################################ # # Debug Configuration # # - This controls the debugging options for the orderer # ################################################################################ Debug: # BroadcastTraceDir when set will cause each request to the Broadcast service # for this orderer to be written to a file in this directory BroadcastTraceDir: ./trace # DeliverTraceDir when set will cause each request to the Deliver service # for this orderer to be written to a file in this directory DeliverTraceDir: ./trace

jeka_gompa (Wed, 26 Dec 2018 13:16:50 GMT):
Hi guys I need help with making another organization sign a channel configuration file for further channel update? Have anyone done that?

muath939 (Wed, 26 Dec 2018 13:34:21 GMT):
Has joined the channel.

mefy-pushpendu (Wed, 26 Dec 2018 14:09:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JM8kGZaP8D3AXMvRE) @WouterVanHecke yes yes . I can not even store general data as well.

mefy-pushpendu (Wed, 26 Dec 2018 14:09:25 GMT):
can you please @WouterVanHecke ?

WouterVanHecke (Wed, 26 Dec 2018 14:15:36 GMT):
normally you shouldn't have any data loss while upgrading your network, because you shouldn't have to touch the existing containers while expanding your network. Restarting means losing your data, you could make a backup of the couchdb database file and insert that again when you start the container back up again

cjml1982 (Wed, 26 Dec 2018 14:40:39 GMT):
Has joined the channel.

defemont (Wed, 26 Dec 2018 14:55:59 GMT):
Has joined the channel.

defemont (Wed, 26 Dec 2018 14:56:08 GMT):
Hello

defemont (Wed, 26 Dec 2018 14:56:13 GMT):
Glad to be here

defemont (Wed, 26 Dec 2018 14:56:24 GMT):
I have one question that is making me crazy XD

defemont (Wed, 26 Dec 2018 14:56:29 GMT):
https://stackoverflow.com/questions/53918172/hyperledger-composer-how-to-prevent-a-participant-from-changing-certain-attrib

defemont (Wed, 26 Dec 2018 14:58:56 GMT):
i dont no how to deny access from participant to change one specific attribute ... since i give them all permission to their participant registry (to change firstname, lastname) but they can change "isReview" attribute too, that is not good for my project.

RostyslavBortman (Wed, 26 Dec 2018 17:50:24 GMT):
Has joined the channel.

phonginx (Thu, 27 Dec 2018 02:19:19 GMT):
Has joined the channel.

Manjo 3 (Thu, 27 Dec 2018 04:17:27 GMT):
Has joined the channel.

Manjo 3 (Thu, 27 Dec 2018 04:17:39 GMT):
Hello, When bringing up the byfn.sh , it only stops in Creating peer0.org2.example.com ... After many hours its still stuck in this part. Any idea why? Thanks

Manjo 3 (Thu, 27 Dec 2018 04:18:39 GMT):

Clipboard - December 27, 2018 12:18 PM

halilkalkan (Thu, 27 Dec 2018 05:37:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7sGfjCPinJmQ3efhy) @defemont Hi defemont, maybe you can store your isReview attribute in another asset then they cannot get a right to change it? Because as far as i know composer acl allows control over some degree which is asset level.

sharma66mahesh (Thu, 27 Dec 2018 05:58:12 GMT):
Has joined the channel.

sharma66mahesh (Thu, 27 Dec 2018 05:58:35 GMT):
what are some apps/systems developed in hyperledger fabric?

AVINASHSHARMA1 (Thu, 27 Dec 2018 06:21:13 GMT):
Has joined the channel.

AVINASHSHARMA1 (Thu, 27 Dec 2018 06:22:44 GMT):
How can we achieve 10 million transaction in a day?

suva (Thu, 27 Dec 2018 06:33:08 GMT):
Hi All,

suva (Thu, 27 Dec 2018 06:33:26 GMT):
can somebody help me to query from distributed ledger?

suva (Thu, 27 Dec 2018 06:33:35 GMT):
I am unable to fetch the value

suva (Thu, 27 Dec 2018 06:33:46 GMT):
func (t *Actpay) OrderQuery(stub shim.ChaincodeStubInterface, args []string) peer.Response { // "queryString" if len(args) < 1 { return shim.Error("Incorrect number of arguments. Expecting 1") } status := strings.ToLower(args[0]) queryString := fmt.Sprintf("{\"selector\":{\"Status\":\"%s\"}}", status) fmt.Printf("queryString:\n%s\n", queryString) resultsIterator, err := stub.GetQueryResult(queryString) defer resultsIterator.Close() if err != nil { return shim.Error("Unable to retrieve value") } defer resultsIterator.Close() var buffer bytes.Buffer buffer.WriteString("[") var bArrayMemberAlreadyWritten = false for resultsIterator.HasNext() { queryResponse,err := resultsIterator.Next() if err != nil { return shim.Error("failed") } // Add a comma before array members, suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- OrderQuery queryResult:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) }

suva (Thu, 27 Dec 2018 06:33:53 GMT):
This is my function

rohitshukla11 (Thu, 27 Dec 2018 06:34:38 GMT):
Hi Everyone! Can I encrypt and decrypt data using Public/private key between two users? I want to develop a system in which I have multiple users. There is an option present in front of every user for sharing the data with another user. Let's say I have 3 users U1, U2 and U3 all belongs to the same peers and I want to share data between U1 and U3 which U2 can't see. Is this possible? I found only way to use asymmetric cryptography between users and wanted some help to implement this.

anjalinaik (Thu, 27 Dec 2018 06:44:41 GMT):
Hi experts..if the endorsment policy is not satisfied then the block shouldnt be added to the chain, correct?However from below peer logs i see that the blocks are being added inspite of endorsement policy failure.Any explanation would be helpful. ``` org1peer2.1.t5ttto5ct9bp@CPU92 | 2018-12-27 06:13:57.935 UTC [committer/txvalidator] validateTx -> ERRO 019 VSCCValidateTx for transaction txId = 52e73a5c8f2d75062b6fe06e877559138a285aba5204466ca2dd40489c0088cb returned error: validation of endorsement policy for chaincode fabcarand in tx 48:0 failed: signature set did not satisfy policy org1peer2.1.t5ttto5ct9bp@CPU92 | 2018-12-27 06:14:05.253 UTC [gossip/privdata] StoreBlock -> INFO 01a [mychannel] Received block [49] from buffer ```

VarunVerma (Thu, 27 Dec 2018 07:19:25 GMT):
Error: error getting chaincode code fabcar: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/lib/cid: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/core/chaincode/lib/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of: /opt/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH)

VarunVerma (Thu, 27 Dec 2018 07:19:34 GMT):
cid package

knagware9 (Thu, 27 Dec 2018 07:20:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9Y58JaeFqvsfPpXFs) @VarunVerma in the hyperldger/fabric directory , there is cid package missing ...

VarunVerma (Thu, 27 Dec 2018 07:21:51 GMT):
It's their

VarunVerma (Thu, 27 Dec 2018 07:21:58 GMT):
i have checked it properly

melwindmello (Thu, 27 Dec 2018 07:22:37 GMT):
Has joined the channel.

knagware9 (Thu, 27 Dec 2018 07:22:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=snXhjXzbLd5mgyPbn) @VarunVerma okay...then issue with gopath and goroot..

knagware9 (Thu, 27 Dec 2018 07:22:57 GMT):
similar issue i faced long back

VarunVerma (Thu, 27 Dec 2018 07:24:26 GMT):
i checked everything

VarunVerma (Thu, 27 Dec 2018 07:24:36 GMT):
so how you solved it?

knagware9 (Thu, 27 Dec 2018 07:26:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ux6HMDGC4KPvbZ3W4) @VarunVerma where is your chaincode file exist ,,

VarunVerma (Thu, 27 Dec 2018 07:26:45 GMT):
it's inside my project

knagware9 (Thu, 27 Dec 2018 07:27:00 GMT):
what is go path & where is chaincode ..

VarunVerma (Thu, 27 Dec 2018 07:27:10 GMT):
and the go path is same

knagware9 (Thu, 27 Dec 2018 07:28:07 GMT):
see your gopath & goroot /opt/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH)

knagware9 (Thu, 27 Dec 2018 07:28:27 GMT):
its different then hyperledgr/fabric

VarunVerma (Thu, 27 Dec 2018 07:31:31 GMT):
GOPATH="/home/test/Desktop/Project_test/chaincode/fabcar/go"

VarunVerma (Thu, 27 Dec 2018 07:31:42 GMT):
this my gopath

knagware9 (Thu, 27 Dec 2018 07:31:57 GMT):
ok now where is cid pacakge

VarunVerma (Thu, 27 Dec 2018 07:31:57 GMT):
took out from goenv

knagware9 (Thu, 27 Dec 2018 07:32:24 GMT):
or just check $GOPATH..give me output

VarunVerma (Thu, 27 Dec 2018 07:32:57 GMT):
yeah its same just checked nowo

VarunVerma (Thu, 27 Dec 2018 07:32:57 GMT):
cid package path : = /home/test/Desktop/Project_test/chaincode/fabcar/go/github.com/hyperledger/fabric/core/chaincode/lib/cid

knagware9 (Thu, 27 Dec 2018 07:33:07 GMT):
ok...where is cid package

knagware9 (Thu, 27 Dec 2018 07:33:12 GMT):
give that path ..

knagware9 (Thu, 27 Dec 2018 07:35:15 GMT):
ok..now where is your chaincode file present

VarunVerma (Thu, 27 Dec 2018 07:35:46 GMT):
here : home/test/Desktop/Project_test/chaincode/fabcar/go

VarunVerma (Thu, 27 Dec 2018 07:36:08 GMT):
i made this folder as gopath it self

knagware9 (Thu, 27 Dec 2018 07:36:22 GMT):
okay...

knagware9 (Thu, 27 Dec 2018 07:39:08 GMT):
see my setup

knagware9 (Thu, 27 Dec 2018 07:39:12 GMT):
package main /* Imports * 1 utility libraries for formatting * 2 specific Hyperledger Fabric specific libraries for Smart Contracts */ import ( "fmt" "strconv" //"strings" "encoding/json" "time" "runtime" "github.com/hyperledger/fabric/core/chaincode/shim" "github.com/hyperledger/fabric/core/chaincode/lib/cid" sc "github.com/hyperledger/fabric/protos/peer" )

knagware9 (Thu, 27 Dec 2018 07:39:47 GMT):
chaincode in file - /home/kamlesh/work/src/github.com/hyperledger/private-data-sample/chaincode/src

knagware9 (Thu, 27 Dec 2018 07:40:22 GMT):
cid package in /home/kamlesh/work/src/github.com/hyperledger/fabric/core/chaincode/lib

knagware9 (Thu, 27 Dec 2018 07:40:45 GMT):
GO path /home/kamlesh/work

knagware9 (Thu, 27 Dec 2018 07:40:52 GMT):
and its working

VarunVerma (Thu, 27 Dec 2018 07:41:33 GMT):
So your chaincode is inside github folder itself

VarunVerma (Thu, 27 Dec 2018 07:41:37 GMT):
?

knagware9 (Thu, 27 Dec 2018 07:41:45 GMT):
yes'

VarunVerma (Thu, 27 Dec 2018 07:42:37 GMT):
let me try

VarunVerma (Thu, 27 Dec 2018 07:42:44 GMT):
like this

knagware9 (Thu, 27 Dec 2018 07:42:55 GMT):
yeah..good luck

VarunVerma (Thu, 27 Dec 2018 07:43:34 GMT):
Thanks i will text back once i get any success or failure

VarunVerma (Thu, 27 Dec 2018 07:50:30 GMT):
@knagware9 Still facing same error

knagware9 (Thu, 27 Dec 2018 08:01:29 GMT):
oh ..

knagware9 (Thu, 27 Dec 2018 08:04:04 GMT):
let me try ..give me 10 min

knagware9 (Thu, 27 Dec 2018 08:05:54 GMT):
see running succesfully

knagware9 (Thu, 27 Dec 2018 08:05:55 GMT):
Installing on peer0.org1 x version of chaincode... + peer chaincode install -n mycc1 -v 1.0 -l golang -p github.com/chaincode/src/auction/ + res=0 + set +x 2018-12-27 08:04:34.176 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-27 08:04:34.176 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-27 08:04:38.185 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ===================== Chaincode is installed on peer0.org1 ===================== Install chaincode on peer0.org2... + peer chaincode install -n mycc1 -v 1.0 -l golang -p github.com/chaincode/src/auction/ + res=0 + set +x 2018-12-27 08:04:38.255 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-27 08:04:38.255 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-27 08:04:38.754 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ===================== Chaincode is installed on peer0.org2 ===================== Installing chaincode on peer1.org1... + peer chaincode install -n mycc1 -v 1.0 -l golang -p github.com/chaincode/src/auction/ + res=0 + set +x 2018-12-27 08:04:38.811 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-27 08:04:38.811 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-27 08:04:39.545 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ===================== Chaincode is installed on peer1.org1 ===================== Install chaincode on peer1.org2... + peer chaincode install -n mycc1 -v 1.0 -l golang -p github.com/chaincode/src/auction/ + res=0 + set +x 2018-12-27 08:04:39.601 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-27 08:04:39.601 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2018-12-27 08:04:40.106 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: ===================== Chaincode is installed on peer1.org2 ===================== Instantiating chaincode on peer0.org2... + peer chaincode instantiate -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n mycc1 -l golang -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P 'OR ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'')' --collections-config /opt/gopath/src/github.com/chaincode/src/auction/collections_config.json + res=0 + set +x 2018-12-27 08:04:40.162 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-12-27 08:04:40.162 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc ===================== Chaincode is instantiated on peer0.org2 on channel 'mychannel' =====================

knagware9 (Thu, 27 Dec 2018 08:06:13 GMT):
may be some issue of docker volume moutning

knagware9 (Thu, 27 Dec 2018 08:07:19 GMT):
here at CLI conatainer

knagware9 (Thu, 27 Dec 2018 08:07:20 GMT):
volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./../../fabric/:/opt/gopath/src/github.com/hyperledger/fabric - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts

knagware9 (Thu, 27 Dec 2018 08:07:43 GMT):
then it work,,

steffensdo (Thu, 27 Dec 2018 08:18:51 GMT):
Has joined the channel.

muath939 (Thu, 27 Dec 2018 08:42:53 GMT):
how can i build my own hyperledger private blockchain ? how can i start ? i need the best tutorial to start from it

VarunVerma (Thu, 27 Dec 2018 09:16:16 GMT):
@knagware9 their is guy named lee suggested me this, The problem is that the gopackage cid is not in the docker container (CLI docker container?), and so the chaincode can't find it. You need to mount the packages along with your fabcar chaincode. I'm assuming that you're running the fabric-samples project, I'm not sure if they've already mounted it for you.

VarunVerma (Thu, 27 Dec 2018 09:16:32 GMT):
So you know what exactly this is

githubcpc (Thu, 27 Dec 2018 09:28:14 GMT):
If I invoke 10 from A to B .In my chaincode ,it stub.putState(A,A-10) and stub.putState(B,B+10) . If it putState(A,A-10) successfully ,but putState(B,B+10) fail. A has already minus 10,and write to the ledger.The result is wrong . How can I run the transaction successfully?

githubcpc (Thu, 27 Dec 2018 09:29:46 GMT):
Any help is appreciated.

knagware9 (Thu, 27 Dec 2018 09:50:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ovSp8RJ26vdx4imkz) @VarunVerma you can see my mounting ..I have mounted cid package in docker container

knagware9 (Thu, 27 Dec 2018 09:50:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A78LcQfYQhcdTYtC4) - ./../../fabric/:/opt/gopath/src/github.com/hyperledger/fabric

DaraPenhchet (Thu, 27 Dec 2018 09:53:31 GMT):
Hello everyone, could I ask you some questions related to Fabric CA? Because I have a Client Identity and I have revoked that Identity, but it still can invoke to my Chaincode in Fabric Network? It means both revoked and notrevoked Identity can invoke the Chaincode right?

knagware9 (Thu, 27 Dec 2018 09:55:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P87pstzLfk3Cb4rJJ) @DaraPenhchet it should noy

knagware9 (Thu, 27 Dec 2018 09:55:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P87pstzLfk3Cb4rJJ) @DaraPenhchet it should not

DaraPenhchet (Thu, 27 Dec 2018 09:57:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TysaSqbh9KBQLsukm) @knagware9 But it can invoke the chaincode, I don't know why it looks like this

DaraPenhchet (Thu, 27 Dec 2018 09:58:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TysaSqbh9KBQLsukm) @knagware9 Have you ever invoked the Chaincode with the Revoked Identity?

knagware9 (Thu, 27 Dec 2018 10:00:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dhbYNbYcNQTePPKzK) @DaraPenhchet no I didnt try ...but technically it should not allowed to invoke transaction bcoz before invoking transaction user access checked at fabric-ca level

DaraPenhchet (Thu, 27 Dec 2018 10:01:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v9HYiun96qAWaPusJ) @knagware9 I have not yet found the solution about it yet

knagware9 (Thu, 27 Dec 2018 10:01:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v9HYiun96qAWaPusJ) better please ask in #fabric-ca channel

DaraPenhchet (Thu, 27 Dec 2018 10:02:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HYpp6JTizcPsFvbDT) @knagware9 Yes I am asking

rsoeldner (Thu, 27 Dec 2018 10:05:56 GMT):
Regarding the `fabric-ca` example, is there a need for intermediate ca's ? Couldn't we go with one for each org ?

rsoeldner (Thu, 27 Dec 2018 10:05:56 GMT):
Regarding the `fabric-ca` example, is there a need for intermediate ca's ? Couldn't we go with one for each org ? Our should there be one top/root ca - with one intermediate ca for each org ?

hassantauqeer (Thu, 27 Dec 2018 11:37:42 GMT):
Has joined the channel.

Sarath_Kumar (Thu, 27 Dec 2018 13:13:32 GMT):
Hi all, *cryptogen command not found error* while generating crypto material.

Sarath_Kumar (Thu, 27 Dec 2018 13:13:32 GMT):
Hi all, *cryptogen command not found error* while generating crypto material. In Fabric-dev-servers folder

jingyonglee (Thu, 27 Dec 2018 13:17:17 GMT):
Has joined the channel.

Bayeed (Thu, 27 Dec 2018 14:27:14 GMT):
Has joined the channel.

Bayeed (Thu, 27 Dec 2018 14:27:23 GMT):
can i integrate caliper with fabric v1.3 ?

jeka_gompa (Thu, 27 Dec 2018 16:10:25 GMT):
Hi guys I need help with making another organization sign a channel configuration file for further channel update? And I'm not able to have the data of the peer that has to sign in the cli. Have anyone done that?

defemont (Thu, 27 Dec 2018 16:15:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=j9Lys7y5wg3353ACv) @halilkalkan Thank you so much, I was thinking of something like that, but I needed to hear it from someone else.

AnandPegada (Thu, 27 Dec 2018 16:16:15 GMT):
Has joined the channel.

rsoeldner (Thu, 27 Dec 2018 16:26:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vSvkN2NCv3x7o4dMg) @Sarath_Kumar I'm quite sure you forgot to adapt your env path variable

ertalemdar (Thu, 27 Dec 2018 22:04:40 GMT):
Has joined the channel.

ertalemdar (Thu, 27 Dec 2018 22:04:41 GMT):
Hello! Just found out about this chat. I am currently trying to deploy Fabric with a custom chaincode onto AWS using the Ansible Agent in the Cello project. While I can get the network up and install the default chaincode onto the peers, I cannot switch the default with our custom chaincode that uses the Go extensions in the vendor folder (I think it uses fabric v1.3). Does anyone have any sources for deploying Fabric 1.3 onto AWS with a custom chaincode that uses Go extensions?

MichaelHardy (Fri, 28 Dec 2018 01:06:19 GMT):
Has joined the channel.

MichaelHardy (Fri, 28 Dec 2018 01:07:49 GMT):
Bermuda - substitute for debit cards for payment of local retailers. Reduce costs to banks, eliminate major cards such as VISA cost, improve payment process and

MichaelHardy (Fri, 28 Dec 2018 01:09:44 GMT):
MichaelHardy 8:53 PM Bermuda - 1. Bank/s one bank for Group Membership 2. Group - Members - Customers, Vendors - providing services of Debit card. Transactions in blockchain ledger Customers (a) deposit funds which go to bank account of Group and detail within ledger. Vendor receives deposit from Customer and deposits cash daily to bank from all customers. Bermuda - Vendor and Customer get ledger statement of their account 3. ID independent company so customers details kept private but meet International/ Bermuda standard Basically Bank taken out of retail sales process. 4. Ledger could provide detailed report of what was sold for analytical purposes. Bermuda -I have no idea where to start to clarify Idea and develop a Project. Who can help?

nRyDevOps (Fri, 28 Dec 2018 03:15:39 GMT):
I am hoping that someone could help point me in the right direction here. Any help is very much appreciated!!! ;-) My goal is to securely share files between two networks. right now I am just working with these scripts https://github.com/miguelangelvaldivia/hyperledgerDemo for setting up HLF on AWS and my plan is to use two instances in two different VPC's and to transfer files and have the cryptographic hashes for those files stored in the ledger. The goal is to be able to control who has access to specific files on each network based on their PKI certs

nRyDevOps (Fri, 28 Dec 2018 08:17:30 GMT):
anyone know how to fix this error I am getting?

nRyDevOps (Fri, 28 Dec 2018 08:17:31 GMT):
https://github.com/PaddyMc/decentralised-ecosystem-prototype/issues/26

nRyDevOps (Fri, 28 Dec 2018 08:17:47 GMT):
main -> ERRO 001 Cannot run peer because cannot init crypto, missing /etc/hyperledger/msp/users/Admin@org1.example.com/msp folder

nRyDevOps (Fri, 28 Dec 2018 08:18:05 GMT):
I created the directory that it says is missing but still getting the same error

nRyDevOps (Fri, 28 Dec 2018 08:18:18 GMT):
any help would be very much appreciated! ;-)

yacovm (Fri, 28 Dec 2018 08:40:39 GMT):
it needs the crypto stuff @nRyDevOps . when you run `cryptogen generate` it makes a folder structure.

yacovm (Fri, 28 Dec 2018 08:41:14 GMT):
it expects to see the files that are found under peerOrgs/users/Admin/ something like that

nRyDevOps (Fri, 28 Dec 2018 08:42:42 GMT):
I ended up using docker-compose up and that seems to work

nRyDevOps (Fri, 28 Dec 2018 08:42:52 GMT):
rather than the start.sh script

nRyDevOps (Fri, 28 Dec 2018 08:43:29 GMT):
I did create the directory that it said was missing but it still gave the same error. Docker compose UP seems to work though

shubham_aggarwal (Fri, 28 Dec 2018 09:28:50 GMT):
Guys, I am following this guide for a typo update in readme: https://hyperledger-fabric.readthedocs.io/en/latest/Gerrit/gerrit.html

shubham_aggarwal (Fri, 28 Dec 2018 09:28:50 GMT):
Guys, I am following this guide for a typo update in readme: https://hyperledger-fabric.readthedocs.io/en/latest/Gerrit/gerrit.html

shubham_aggarwal (Fri, 28 Dec 2018 09:28:50 GMT):
Guys, I am following this guide for a typo update in readme: https://hyperledger-fabric.readthedocs.io/en/latest/Gerrit/gerrit.html I created a new branch, git checkout -b readme-typo-fix. And added commits, change-id, sign off. But my git review is being rejected by gerrit. Error: To ssh://gerrit.hyperledger.org:29418/fabric.git ! [remote rejected] HEAD -> refs/for/master%topic=readme-typo-fix (no common ancestry) Am I missing something?

Sarath_Kumar (Fri, 28 Dec 2018 12:32:21 GMT):
Hi all, *Hyperledger - MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority* I have found the link given below and in the step 3, he suggest to copy .crt file into the destination file and i don't know where the .crt file is available https://stackoverflow.com/a/50394066 Thanks in advance

Sarath_Kumar (Fri, 28 Dec 2018 12:32:21 GMT):
Hi all, *Hyperledger - MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority* I have found the link given below and in the step 3, he suggest to copy .crt file into the destination folder and i don't know where the .crt file is available https://stackoverflow.com/a/50394066 Thanks in advance

SJoshi7 (Fri, 28 Dec 2018 12:54:21 GMT):
I am having issues with downloading cryptogen . can anyone help ?

mastersingh24 (Fri, 28 Dec 2018 13:26:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vDRty5TiuQJi5ZQRt) @SJoshi7 What kind of issue?

whathewatt (Fri, 28 Dec 2018 13:27:32 GMT):
Has joined the channel.

whathewatt (Fri, 28 Dec 2018 13:32:42 GMT):
Hello Fabric Community :vulcan: Do you know how to mock `cid.GetID(stub)`, `cid.GetMSPID(stub)`, `cid.AssertAttributeValue` for unit-testing in Golang ? Is there a JIRA Fabric issue on this feature ?

yousaf (Fri, 28 Dec 2018 15:13:52 GMT):
Hi everyone. As much as I know, there is no limit for number of blocks to be added to the ledger in fabric. But what if any peer in the network is lacking in space to store further data in the ledger? and is there any option which is specified, denoting maximum amount of data which can be stored on the ledger? Since each peer in the network will have different specs. If a peer has smallest storage space than all the other peers then how the fabric network will react to these exceptions??

lepar (Fri, 28 Dec 2018 16:01:52 GMT):
@yousaf that's actually a very good question, I would think it's the same on a public ledger like bitcoins, it just stops syncing

katran_nakhla (Fri, 28 Dec 2018 17:44:47 GMT):
Has joined the channel.

katran_nakhla (Fri, 28 Dec 2018 17:45:09 GMT):
hello everyone .. it is my first time to deal with hyperledger fabric and cloud in general , so i have some problems in that , i can setup the hyperledger fabric and hyperledger composer locally on ubuntu 16.0.4 successfully and create my first network on my physical machine , my question is how can access this network from 2 separate machines to make changes in the same network ?

lepar (Fri, 28 Dec 2018 17:57:20 GMT):
@yousaf my HD is low on space, about 18gb, I'm gonna sync bitcoin networks until it runs out of space and I'll post the results here

MuckT (Fri, 28 Dec 2018 18:26:21 GMT):
Has joined the channel.

yousaf (Fri, 28 Dec 2018 18:57:38 GMT):
@lepar Thanks for your response. Doesn't fabric throw any exception about it?? Or is it going to stop synchronization for the whole network or only for the peer running out of space. Also waiting for fabric community officials for their responses about it.

yousaf (Fri, 28 Dec 2018 18:58:18 GMT):
Any fabric community official to respond to my question?

lepar (Fri, 28 Dec 2018 19:05:14 GMT):
I have no idea. Never thought of that as an issue or a possibility considering the largest blockchain till now is 130gb and no one uses less than 1tb HD on servers and stuff

jeka_gompa (Sat, 29 Dec 2018 00:50:20 GMT):
Hello everybody, I'm trying to deploy my network using nodejs sdk and I'm getting this error from the ordering server: 2018-12-29 00:19:13.388 UTC [core.comm] ServerHandshake -> ERRO 01b TLS handshake failed with error EOF {"server": "Orderer", "remote address": "172.19.0.1:42722"} I'm actually using TLS. Here are my configuration files:

jeka_gompa (Sat, 29 Dec 2018 00:50:52 GMT):

network-config.txt

jeka_gompa (Sat, 29 Dec 2018 00:51:10 GMT):

docker-compose-wada.txt

jeka_gompa (Sat, 29 Dec 2018 00:52:35 GMT):
Please any help will be really appreciated It might be something very simple but I've debug it several times already and I don't know where the certificate file is missing.

klkumar369 (Sat, 29 Dec 2018 09:29:56 GMT):
Has joined the channel.

hassantauqeer (Sat, 29 Dec 2018 11:15:04 GMT):
How do i start Fabric development on Node? It seems like this smart-contract on Fabric extension is quite easy and simple, but i am unsure if there is another better way https://github.com/horeaporutiu/VSCodeTutorial

hassantauqeer (Sat, 29 Dec 2018 11:15:04 GMT):
How do i start Fabric development on Node? It seems like this VScode's smart-contract on Fabric extension is quite easy and simple, but i am unsure if there is another better way https://github.com/horeaporutiu/VSCodeTutorial

sanjaysb (Sat, 29 Dec 2018 14:18:26 GMT):
Has joined the channel.

marcj_518 (Sat, 29 Dec 2018 15:31:23 GMT):
Has joined the channel.

marcj_518 (Sat, 29 Dec 2018 15:34:27 GMT):
Hi, I'm new to HL Fabric and am experiencing difficulties when attempting to register a user in the FabCar tutorial. When I run `node registerUser.js` I receive this error message: `Failed to register user "user1": Error: Calling register endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]` Can anyone assist?

Strikerzee (Sat, 29 Dec 2018 15:38:41 GMT):
Has joined the channel.

Strikerzee (Sat, 29 Dec 2018 15:40:11 GMT):
Hi. If I have a consortium and one channel of 2 Orgs, A and B, and I want to make C join that channel, do I necessarily have to add it to the consortium as well?

Strikerzee (Sat, 29 Dec 2018 15:45:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zo8fMRP8BysbgRDet) @marcj_518 Did you start the network? @marcj_518

marcj_518 (Sat, 29 Dec 2018 15:47:35 GMT):
Yes, I started the network and was able to `node enrollAdmin.js`, but am running into problems when I attempt to `node registerUser.js`

jeffgarratt (Sat, 29 Dec 2018 17:13:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3DhpeSToSp4Cb8LEY) @Strikerzee No

SJoshi7 (Sat, 29 Dec 2018 17:38:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jFjFEYmHMDdXdoc3J) @mastersingh24 I am not being able to download it. Can you guide me how to install it ?

WaleedElsakka (Sat, 29 Dec 2018 18:48:28 GMT):
Has joined the channel.

mastersingh24 (Sat, 29 Dec 2018 20:27:59 GMT):
@SJoshi7 - how are you trying to download it?

marcj_518 (Sat, 29 Dec 2018 21:29:52 GMT):
Would anyone know why I keep getting an Authentication Failure when trying to register User1 in the FabCar tutorial? `node registerUser.js` --> `Failed to register user "user1": Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authentication failure"}]]`

muath939 (Sat, 29 Dec 2018 21:48:06 GMT):
hi guys ... is there any one who passed chfa exam ? i need some help and answers for my questions

yacovm (Sat, 29 Dec 2018 21:55:10 GMT):
what's chfa? @muath939

yacovm (Sat, 29 Dec 2018 21:55:28 GMT):
certified hyperledger fabric administrator?

muath939 (Sat, 29 Dec 2018 22:00:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=277eavLgtDwq9QXuX) @yacovm yes exactly

jeka_gompa (Sat, 29 Dec 2018 22:25:28 GMT):
Has anyone inserted a new organization to a channel using the nodejs sdk? I think this can be done by using the updateChannel method of the client but the whole process of getting the configuration .pb and update it doesn't seem to be easy. If you have some documentation about it, or have tried that by yourself. It would be great if you can share

SJoshi7 (Sun, 30 Dec 2018 05:10:02 GMT):
can anyone guide for setting up a network with two machines?

PavanDurgadsimi (Sun, 30 Dec 2018 08:50:36 GMT):
Has joined the channel.

muath939 (Sun, 30 Dec 2018 09:34:16 GMT):
hi guys ... is there any one who passed chfa exam ? i need some help and answers for my questions

jeka_gompa (Sun, 30 Dec 2018 09:41:05 GMT):
Hello everybody, I'm now facing this error, when executing this with the sdk "channel.getChannelConfig(...)" - Failed to connect before the deadline URL:grpcs://localhost:7051 Do you have any idea why this is happening?

sanjaysb (Sun, 30 Dec 2018 09:48:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HEAfp6oy5Eqvexp6B) @SKRISHNA were you able to find the solution to this?

rsoeldner (Sun, 30 Dec 2018 12:39:45 GMT):
Someone has encountered this before ? ``` FABRIC_CFG_PATH=./ configtxgen -profile BaseProfile -outputBlock bla.block 2018-12-30 13:38:19.315 CET [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2018-12-30 13:38:19.315 CET [common/tools/configtxgen] main -> INFO 002 Loading configuration 2018-12-30 13:38:19.318 CET [common/tools/configtxgen/encoder] NewChannelGroup -> WARN 003 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2018-12-30 13:38:19.319 CET [common/tools/configtxgen/encoder] NewOrdererGroup -> WARN 004 Default policy emission is deprecated, please include policy specifications for the orderer group in configtx.yaml 2018-12-30 13:38:19.319 CET [common/tools/configtxgen/encoder] NewOrdererOrgGroup -> WARN 005 Default policy emission is deprecated, please include policy specifications for the orderer org group OrdererOrg in configtx.yaml 2018-12-30 13:38:19.319 CET [common/tools/configtxgen] func1 -> PANI 006 proto: Marshal called with nil panic: proto: Marshal called with nil [recovered] panic: proto: Marshal called with nil goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0005668f0, 0x0, 0x0, 0x0) /build/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e230, 0xc000239704, 0xc00050aba0, 0x1e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /build/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e230, 0xc00050aba0, 0x1e, 0x0, 0x0, 0x0) /build/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e238, 0xc000239858, 0x1, 0x1) /build/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:251 +0x1a9 panic(0xdf1300, 0xc0000a5050) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.11/share/go/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/protos/utils.MarshalOrPanic(0xf92660, 0x0, 0x0, 0xc0002399f8, 0xd09e82) /build/go/src/github.com/hyperledger/fabric/protos/utils/commonutils.go:26 +0x83 github.com/hyperledger/fabric/common/tools/configtxgen/encoder.addValue(0xc0004e3bd0, 0xf89ea0, 0xc000519040, 0xecf3f6, 0x6) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/encoder/encoder.go:64 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/encoder.NewOrdererOrgGroup(0xc0001f9340, 0xf89ea0, 0xc000518f20, 0xecf3f6) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/encoder/encoder.go:263 +0x26e github.com/hyperledger/fabric/common/tools/configtxgen/encoder.NewOrdererGroup(0xc0001f2fc0, 0xf89ea0, 0xc000518d60, 0xedb549) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/encoder/encoder.go:235 +0x65f github.com/hyperledger/fabric/common/tools/configtxgen/encoder.NewChannelGroup(0xc00056a600, 0xc000239d88, 0x1, 0x1) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/encoder/encoder.go:164 +0x3d1 github.com/hyperledger/fabric/common/tools/configtxgen/encoder.New(0xc00056a600, 0xc00051ae50) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/encoder/encoder.go:461 +0x2f main.doOutputBlock(0xc00056a600, 0xed3d91, 0xb, 0x7ffe163ef8c7, 0x9, 0xc00056a600, 0x62) /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:35 +0x40 main.main() /build/go/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:273 +0xa67 ```

ashufalcon (Sun, 30 Dec 2018 17:37:31 GMT):
If some use case a peer who role is only to read ledger (no chaincode the role would be just read the ledger and do some event) can we make such peer in hyperledger fabric ?

MichaelHardy (Mon, 31 Dec 2018 05:20:45 GMT):
Need a Fabric software developer and or designer for secured did I cash in Bermuda

MichaelHardy (Mon, 31 Dec 2018 05:20:45 GMT):
Need a Fabric software developer and or designer for secured digicash in Bermuda

ashlinSajan (Mon, 31 Dec 2018 06:36:46 GMT):
Receiving timeout error after editing configtx.yaml [2018-12-27 11:15:50.096] [ERROR] instantiate-chaincode - REQUEST_TIMEOUT:localhost:7051 [2018-12-27 11:15:50.096] [ERROR] instantiate-chaincode - Error: ChannelEventHub has been shutdown

ashlinSajan (Mon, 31 Dec 2018 06:37:19 GMT):
Can anyone help me on this?

Sarath_Kumar (Mon, 31 Dec 2018 07:25:15 GMT):

Peer command not found.PNG

Swarnalatha (Mon, 31 Dec 2018 08:25:08 GMT):
Has joined the channel.

akshay.sood (Mon, 31 Dec 2018 08:55:41 GMT):
Hi Guys Anyone knows about this error? ```$ peer node start 2018-12-31 14:24:16.248 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/akshay/dev/fabric-ca/client/peerOrg/peer0.org1.example.com: KeyMaterial not found in SigningIdentityInfo``` PKCS11 is set as BCCSP

akshay.sood (Mon, 31 Dec 2018 08:55:41 GMT):
Hi Guys Anyone knows about this error? ```$ peer node start 2018-12-31 14:24:16.248 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/akshay/dev/fabric-ca/client/peerOrg/peer0.org1.example.com: KeyMaterial not found in SigningIdentityInfo``` `PKCS11` is set as `BCCSP` in `core.yaml`

akshay.sood (Mon, 31 Dec 2018 08:55:41 GMT):
Hi Guys Anyone knows about this error? ```$ peer node start 2018-12-31 14:24:16.248 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/akshay/dev/fabric-ca/client/peerOrg/peer0.org1.example.com: KeyMaterial not found in SigningIdentityInfo``` `PKCS11` is set as `BCCSP` in `core.yaml`

akshay.sood (Mon, 31 Dec 2018 08:55:41 GMT):
Hi Guys Anyone knows about this error? All the crypto material are generated by `fabric-ca` and PKCS11 is set as default in `fabric-ca-server-config.yam`, `fabric-ca-client-config.yaml` & `core.yaml` ```$ peer node start 2018-12-31 14:24:16.248 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/akshay/dev/fabric-ca/client/peerOrg/peer0.org1.example.com: KeyMaterial not found in SigningIdentityInfo``` `PKCS11` is set as `BCCSP` in `core.yaml`

akshay.sood (Mon, 31 Dec 2018 08:59:49 GMT):
the directory structure is below:

akshay.sood (Mon, 31 Dec 2018 08:59:49 GMT):
the directory structure is below: ```. ├── msp │   ├── admincerts │   │   └── cert.pem │   ├── cacerts │   │   └── localhost-7054.pem │   └── config.yaml └── peer0.org1.example.com ├── admincerts │   └── cert.pem ├── cacerts │   └── localhost-7054.pem ├── config.yaml ├── IssuerPublicKey ├── IssuerRevocationPublicKey ├── keystore │   └── keystore ├── signcerts │   └── cert.pem └── user ```

akshay.sood (Mon, 31 Dec 2018 08:59:49 GMT):
the directory structure is below: ```. . ├── msp │   ├── admincerts │   │   └── cert.pem │   ├── cacerts │   │   └── localhost-7054.pem │   └── config.yaml └── peer0.org1.example.com ├── admincerts │   └── cert.pem ├── cacerts │   └── localhost-7054.pem ├── config.yaml ├── IssuerPublicKey ├── IssuerRevocationPublicKey ├── keystore ├── signcerts │   └── cert.pem └── user ```

akshay.sood (Mon, 31 Dec 2018 08:59:49 GMT):
the directory structure is below: ``` ├── msp │   ├── admincerts │   │   └── cert.pem │   ├── cacerts │   │   └── localhost-7054.pem │   └── config.yaml └── peer0.org1.example.com ├── admincerts │   └── cert.pem ├── cacerts │   └── localhost-7054.pem ├── config.yaml ├── IssuerPublicKey ├── IssuerRevocationPublicKey ├── keystore ├── signcerts │   └── cert.pem └── user ```

akshay.sood (Mon, 31 Dec 2018 09:01:26 GMT):
@yacovm @mastersingh24

ashlinSajan (Mon, 31 Dec 2018 09:36:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aEF22kmHsD2boGkzr) @ashufalcon yes we can

klkumar369 (Mon, 31 Dec 2018 10:12:19 GMT):
Hi, how do I know the current version of fabric installed and running in my machine? I see there are few versions of docker images available (*X86_64-1.1.0*, *1.3.0*, *latest*, *1.4.0-rc2*). Is there a way to know it from terminal ?

FLASHJr (Mon, 31 Dec 2018 10:29:23 GMT):
has anyone worked on user permission in fabric

FLASHJr (Mon, 31 Dec 2018 10:32:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GoojJQMNia6KEEBKH) @ashlinSajan How ?

Ashish_ydv (Mon, 31 Dec 2018 10:44:41 GMT):
How to get user name from enrollment secret , using node sdk?

VarunVerma (Mon, 31 Dec 2018 10:45:52 GMT):
Hi all, Is their any way that we can retrieve the user ID from the transaction state or using transaction ID. Thanks

yasiriqbal776 (Mon, 31 Dec 2018 11:08:43 GMT):
Has joined the channel.

Dhiraj1990 (Mon, 31 Dec 2018 12:13:18 GMT):
Has joined the channel.

klkumar369 (Mon, 31 Dec 2018 12:37:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4oPwGWqHQtvjEMuan) I think the version can be found while bringing up the first-network (./byfn sh up) The terminal shows as -

klkumar369 (Mon, 31 Dec 2018 12:37:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4oPwGWqHQtvjEMuan) I think the version can be found while bringing up the first-network (./byfn sh up) The terminal shows as - LOCAL_VERSION=1.3.0 DOCKER_IMAGE_VERSION=1.3.0

chanwitkepha (Tue, 01 Jan 2019 01:27:23 GMT):
Has joined the channel.

rancifer (Tue, 01 Jan 2019 02:37:21 GMT):
Has joined the channel.

uboznikov (Tue, 01 Jan 2019 08:35:22 GMT):
Has joined the channel.

TimOBrien (Tue, 01 Jan 2019 09:31:22 GMT):
Hi

TimOBrien (Tue, 01 Jan 2019 09:31:38 GMT):
My first post here.

TimOBrien (Tue, 01 Jan 2019 09:31:45 GMT):
I built chain code in java

TimOBrien (Tue, 01 Jan 2019 09:32:14 GMT):
I am want to write unit tests using something like JUnit to test my chaincode

TimOBrien (Tue, 01 Jan 2019 09:32:45 GMT):
is there an example or paper that shows how to unit test java chaincode?

TimOBrien (Tue, 01 Jan 2019 09:33:21 GMT):
thanks in advance for any help

hjn_66 (Tue, 01 Jan 2019 13:58:54 GMT):
Has joined the channel.

hjn_66 (Tue, 01 Jan 2019 13:59:09 GMT):
How to add roles to user's certificate and use them in chaincode?

hjn_66 (Tue, 01 Jan 2019 13:59:34 GMT):
0 I develop an application on hyperledger fabric with "IBM‌ Blockchain Platform" extension and nodejs. I use "fabric-ca-client v1.3.0" module to enroll users and admins certificate. I want to add roles to users and have access control based on user roles on my chaincode. I try to enroll multiple certificate but always this module enroll certificate with empty roles and affiliation like this: {"name":"admin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"...","identity":{"..."}}}

hjn_66 (Tue, 01 Jan 2019 14:00:08 GMT):
I develop an application on hyperledger fabric with "IBM‌ Blockchain Platform" extension and nodejs. I use "fabric-ca-client v1.3.0" module to enroll users and admins certificate. I want to add roles to users and have access control based on user roles on my chaincode. I try to enroll multiple certificate but always this module enroll certificate with empty roles and affiliation like this: {"name":"admin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"...","identity":{"..."}}}

hjn_66 (Tue, 01 Jan 2019 14:00:49 GMT):
I found this on this on hyperledger shim documentation about use of roles on chaincode: const ClientIdentity = require('fabric-shim').ClientIdentity; let cid = new ClientIdentity(stub); object passed to Init() and Invoke() methods if (cid.assertAttributeValue('hf.role', 'auditor')) { // proceed to carry out auditing }

hjn_66 (Tue, 01 Jan 2019 14:01:02 GMT):
but I didn't find any solution to how I can register and enroll user that have 'hf.role' attribute

jeka_gompa (Tue, 01 Jan 2019 14:05:33 GMT):
Hi guys. Im facing a problem here, I created a channel with one first ORG1 (using orderer orderer1), then I added ORG2 and then ORG3. The next thing I want to do is to add one anchor peer for each organization. By running: peer channel update -o orderer1.example.com:7050 -c mainchannel -f channel-artifacts/org1/channels/mainchannel/mainchannel/ORG1MSPanchors.tx --tls --cafile The error I'm getting from the orderer's logs is: 2019-01-01 13:50:19.095 UTC [orderer.common.broadcast] ProcessMessage -> WARN 076 [channel: mainchannel] Rejecting broadcast of config message from 172.25.0.23:39260 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 3

jeka_gompa (Tue, 01 Jan 2019 14:05:33 GMT):
Hi guys. Im facing a problem here, I created a channel with one first ORG1 (using orderer orderer1), then I added ORG2 and then ORG3. The next thing I want to do is to add one anchor peer for each organization. By running: peer channel update -o orderer1.example.com:7050 -c mainchannel -f channel-artifacts/org1/channels/mainchannel/mainchannel/ORG1MSPanchors.tx --tls --cafile The error I'm getting from the orderer's logs is: 2019-01-01 13:50:19.095 UTC [orderer.common.broadcast] ProcessMessage -> WARN 076 [channel: mainchannel] Rejecting broadcast of config message from 172.25.0.23:39260 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 3 Any idea what can I change to set the correct configuration version in the .tx file???

liaoruohuai (Tue, 01 Jan 2019 14:24:42 GMT):
Has joined the channel.

adityachap (Wed, 02 Jan 2019 04:09:03 GMT):
@klkumar369 The best way is to check your docker-compose file image tag and see the image tag for the image being used , in case you have multiple images like you mentioned (1.1.0, 1.3.0) you cane use specific version tag in docker-compose file for example in peer docker-compose file image tag you can use "fabric-peerxxx:1.3.0" instead of "fabric-peerxxx:latest" so that you can be sure that you are using the 1.3.0 image instead of a random latest image

klkumar369 (Wed, 02 Jan 2019 05:48:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Af2zfmBRHswCPDabT) @adityachap @adityachap But my docker compose file shows the image tag as "image: hyperledger/fabric-peer:$IMAGE_TAG". I looked for the $IMAGE_TAG configuration and didn't find it. So not sure which version is taken in here.

adityachap (Wed, 02 Jan 2019 05:59:53 GMT):
@klkumar369 just replace $IMAGE_TAG with the version of image you want to use , but the best approach would be to find the IMAGE_TAG variable and change it there so that for further updates you will not have to manually revisit the docker-compose files and change the tag for all the components

adityachap (Wed, 02 Jan 2019 05:59:53 GMT):
@klkumar369 just replace $IMAGE_TAG with the version of image you want to use , but the best approach would be to find the IMAGE_TAG variable and change it there so that for further updates you will not have to manually revisit the docker-compose files and change the tag for all the components , can you tell me which fabric-sample example are you trying to deploy i will search for the IMAGE_TAG variable

Sarath_Kumar (Wed, 02 Jan 2019 06:39:07 GMT):

couchdb configuration issue.png

Sarath_Kumar (Wed, 02 Jan 2019 06:39:07 GMT):

couchdb configuration issue.png

klkumar369 (Wed, 02 Jan 2019 06:42:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sfZPXp2re3MHxz7p9) @adityachap I am looking in fabric-samples and especially in fabcar example. I think the IMAGE_TAG is getting referred from .env file from first-network. For me this is referred as IMAGE_TAG=latest But the same .env file from first-network is referred everywhere in other fabric-samples examples ?

adityachap (Wed, 02 Jan 2019 06:44:23 GMT):
@klkumar369 exactly hence it is using latest versions of images i.e 1.4.0_rcxx , always it is better to change it to a stable version which will help reduce unnecessary errors

klkumar369 (Wed, 02 Jan 2019 06:47:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=piaBBknYmaZa9KMph) @adityachap Thank you!

ashufalcon (Wed, 02 Jan 2019 07:28:32 GMT):
hey all, i have started orderer and peer on two different terminals and on third terminal is when i run peer channel create -o localhost:7051 -c mychannel -f channel.tx i get the following error 019-01-02 12:57:34.654 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium con

ashufalcon (Wed, 02 Jan 2019 07:28:32 GMT):
hey all, i have started orderer and peer on two different terminals and on third terminal is when i run peer channel create -o localhost:7051 -c mychannel -f channel.tx i get the following error 019-01-02 12:57:34.654 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium content of configtx.yaml file Organizations: - &Smartforce Name: SmartforceMSP ID: SmartforceMSP MSPDir: /home/falcon/dev-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp - &freelancer Name: freelancerMSP ID: freelancerMSP MSPDir: /home/falcon/dev-smartforce/crypto-config/peerOrganizations/Freelancer.smartforce.com/msp AnchorPeers: - Host: localhost Port: 7052 - &BusinessPartner1 Name: FalconMSP ID: FalconMSP MSPDir: /home/falcon/dev-smartforce/crypto-config/peerOrganizations/falcon.smartforce.com/msp AnchorPeers: - Host: localhost Port: 7051 - &BusinessPartner2 Name: FrostMSP ID: FrostMSP MSPDir: /home/falcon/dev-smartforce/crypto-config/peerOrganizations/frost.smartforce.com/msp AnchorPeers: - Host: localhost Port: 8051 - &BusinessPartner3 Name: GhostMSP ID: GhostMSP MSPDir: /home/falcon/dev-smartforce/crypto-config/peerOrganizations/ghost.smartforce.com/msp AnchorPeers: - Host: localhost Port: 6051 # Configuration for the Orderer Orderer: &OrdererDefaults #SampleInsecureSolo OrdererType: solo Addresses: - localhost:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB Application: &ApplicationDefaults Organizations: Channel: &ChannelDefaults Profiles: FourTeamGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: FourTeamConsortium: Organizations: - *freelancer - *BusinessPartner1 - *BusinessPartner2 - *BusinessPartner2 FourTeamChannel: Consortium: FourTeamConsortium Application: <<: *ApplicationDefaults Organizations: - *freelancer - *BusinessPartner1 - *BusinessPartner2 - *BusinessPartner3

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 08:31:22 GMT):
how many orderers do I need to create a functional network? assuming that I am in an experimental project of a company, not in a test in my house ^^

adityachap (Wed, 02 Jan 2019 08:35:48 GMT):
@AndresMartinezMelgar.itcl you will need minimum 1 orderer to create a functional network , but if you are doing a production level fabric dployment the minimum 2 orderers will be good to have configuration, moreover setting up a kafka cluster instead of using solo ordering service will also help

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 08:39:04 GMT):
@adityachap But only having 2 orderers does not make the network weak before a possible attack? Only 2 nodes should be thrown down and the network would no longer work.

adityachap (Wed, 02 Jan 2019 08:42:36 GMT):
@AndresMartinezMelgar.itcl No but even if the orderers are attacked and destroyed they can be recovered using the kafka leader

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 08:44:36 GMT):
ok thanks, i am going to search more info about this

adityachap (Wed, 02 Jan 2019 08:45:23 GMT):
@AndresMartinezMelgar.itcl yea sure if you need any more help for multiple orderer and kafka cluster setu please ping me

saketkmr (Wed, 02 Jan 2019 08:59:55 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 09:47:37 GMT):
Can there be communication between different organizations if they are in the same channel?

bhemeswararaoankireddy (Wed, 02 Jan 2019 09:57:04 GMT):
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 283 kB {5} [initial] [rendered] chunk {1} main.bundle.js, main.bundle.js.map (main) 192 kB {4} [initial] [rendered] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 184 kB {5} [initial] [rendered] chunk {3} scripts.bundle.js, scripts.bundle.js.map (scripts) 441 kB {5} [initial] [rendered] chunk {4} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.13 MB [initial] [rendered] chunk {5} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered] ERROR in /home/bc/block-track/angular-app/src/app/model.ts (2,9): Duplicate identifier 'Participant'. ERROR in /home/bc/block-track/angular-app/src/app/model.ts (5,9): Duplicate identifier 'Participant'. i got this error how to solve this

adityachap (Wed, 02 Jan 2019 10:14:15 GMT):
@AndresMartinezMelgar.itcl yes if anchor peers are set properly then it is possible

SameerKulkarni (Wed, 02 Jan 2019 10:19:59 GMT):
Has joined the channel.

SameerKulkarni (Wed, 02 Jan 2019 10:21:25 GMT):
Hi all !! I am starting a hyperledger fabric project can you please suggest how can i build and deploy fabric application

jeka_gompa (Wed, 02 Jan 2019 10:37:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gjx4YpAYgCzFyffBf) @adityachap @adityachap Is it possible to assign more that one orderer to a channel? If yes do you know how to do this, I haven't found docu o tutorial about it. Thanks in advance.

jeka_gompa (Wed, 02 Jan 2019 10:37:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gjx4YpAYgCzFyffBf) @adityachap Is it possible to assign more that one orderer to a channel? If yes do you know how to do this, I haven't found docu o tutorial about it. Thanks in advance.

saketkmr (Wed, 02 Jan 2019 10:51:55 GMT):
Hi all, i am starting a hyperledger fabric project. Have create a BNA through the steps i found in google. but didn't understand that which language being used

saketkmr (Wed, 02 Jan 2019 10:52:21 GMT):
can we create BNA using java language ?

saketkmr (Wed, 02 Jan 2019 10:54:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lb886EHLyNyiTj7Y6) @SameerKulkarni Do want to create Business network or want to access data from a existing business network

saketkmr (Wed, 02 Jan 2019 10:54:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lb886EHLyNyiTj7Y6) @SameerKulkarni Do want to create Business network or want to access data from a existing business network?

irkoch (Wed, 02 Jan 2019 11:13:23 GMT):
Can i use passport local strategies knowing that im using angular front end generated by the rest-server-api tool, cause in the passportjs documentation for passport-local they write they write that it can be used just in node.js applications.

irkoch (Wed, 02 Jan 2019 11:13:23 GMT):
Can i use passport local strategies knowing that im using angular front end generated by the composer-rest-server tool, cause in the passportjs documentation for passport-local they write that it can be used just in node.js applications.

irkoch (Wed, 02 Jan 2019 11:13:23 GMT):
Can i use passport local strategy knowing that im using angular front end generated by the composer-rest-server tool, cause in the passportjs documentation for passport-local they write that it can be used just in node.js applications.

adityachap (Wed, 02 Jan 2019 11:21:29 GMT):
@jeka_gompa Orderer is never associated with specific channel, Orderer is associated with the blockchain network , moreover for different channels orderer will mainatin different topics

adityachap (Wed, 02 Jan 2019 11:21:29 GMT):
@jeka_gompa Orderer is never associated with specific channel, Orderer is associated with the blockchain network , moreover for different channels orderer will mainatin different topics so you can have multiple orderers connected to a kafka cluster on a blockchain network

irkoch (Wed, 02 Jan 2019 11:32:54 GMT):
How to implement Local Passport Strategy for Hyperledger Composer Rest Server in Angular App

Jayakrishna.V (Wed, 02 Jan 2019 11:54:31 GMT):
@dave.enyeart @davidkel Hi, I am trying to add a peer from a different host to the network. I have followed the steps available in this post https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 I am using 2 cloud machines for this. While adding the second peer I am getting the below message. Please help me to solve this.

Jayakrishna.V (Wed, 02 Jan 2019 11:54:31 GMT):
@dave.enyeart @davidkel Hi, I am trying to add a peer from a different host to the network. I have followed the steps available in this post https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 I am using 2 cloud machines for this. While adding the second peer I am getting the below message. Please help me to solve this.

Jayakrishna.V (Wed, 02 Jan 2019 11:54:31 GMT):
@dave.enyeart @davidkel Hi, I am trying to add a peer from a different host to the network. I have followed the steps available in this post https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 I am using 2 cloud machines for this. While adding the second peer I am getting the below message. Please help me to solve this. Error: error getting endorser client for channel : endorser client failed_to connect to peer1.org1.example.com:7051: failed to create connection : context deadline exceeded

Jayakrishna.V (Wed, 02 Jan 2019 11:54:31 GMT):
@dave.enyeart @davidkel Hi, I am trying to add a peer from a different host to the network. I have followed the steps available in this post https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 I am using 2 cloud machines for this. While joining the second peer to the channel, I am getting the below message. "Error: error getting endorser client for channel : endorser client failed_to connect to peer1.org1.example.com:7051: failed to create connection : context deadline exceeded" Please help me to solve this.

liaoruohuai (Wed, 02 Jan 2019 12:02:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8JESeGM9RjxrpCpnt) @Jayakrishna.V check /etc/hosts whether peer1.org1.example.com has been configured

jeka_gompa (Wed, 02 Jan 2019 12:05:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o82vHoz2XbyaGLPKZ) @adityachap Yes, I have a kafka cluster with 4 orderers associated to it but I can see that when I perform operations on a channel only the orderer the peer communicate with is doing something. I suppose this is how it has to be because the peer has the tls certificate of this orderer but what happens in case this orderer fails: - do kafka automatically redirect the load to other orderer? Does that mean that kafka keeps all orderers updated with all the configurations of all channels? - what about the tls certificate?

jeka_gompa (Wed, 02 Jan 2019 12:05:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o82vHoz2XbyaGLPKZ) @adityachap Yes, I have a kafka cluster with 4 orderers associated to it but I can see that when I perform operations on a channel only the orderer the peer communicate with is doing something. I suppose this is how it has to be because the peer has the tls certificate of this orderer but what happens in case this orderer fails: - do kafka automatically redirect the load to other orderer? Does that mean that kafka keeps all orderers updated with the configurations of all channels? - what about the tls certificate?

jeka_gompa (Wed, 02 Jan 2019 12:05:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o82vHoz2XbyaGLPKZ) @adityachap Yes, I have a kafka cluster with 4 orderers associated to it but I can see that when I perform operations on a channel only the orderer the peer communicate with is doing something. I suppose this is how it has to be because the peer has the tls certificate of this orderer but what happens in case this orderer fails: - do kafka automatically redirect the load to other orderer? Does that mean that kafka keeps all orderers updated with the configurations of all channels? - what about the sent tls certificate info? it was directed to the orderer that failed.

Jayakrishna.V (Wed, 02 Jan 2019 12:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qvEasXNLAr26eiJFF) @liaoruohuai Yes peer1.org1.example.com is up and running along with couchdb1

Jayakrishna.V (Wed, 02 Jan 2019 12:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qvEasXNLAr26eiJFF) @liaoruohuai Yes peer1.org1.example.com is up and running along with couchdb1. I will check the folder and come back to you.

Jayakrishna.V (Wed, 02 Jan 2019 12:14:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mFmvoEoCMXntceezs) @liaoruohuai I have checked the /etc/hosts file but there is no info about peer1.org1.example.com We have the following content in this file "127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts"

Jayakrishna.V (Wed, 02 Jan 2019 12:31:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YCQog72NmSwC98Xqj) @dave.enyeart @davidkel Am I referring to the exact file that you are talking about? There is no info about this file in the post. Please let me know if there are any changes required in this file to configure peer1.org1.example.com

Jayakrishna.V (Wed, 02 Jan 2019 12:31:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YCQog72NmSwC98Xqj) @liaoruohuai @dave.enyeart @davidkel Am I referring to the exact file that you are talking about? There is no info about this file in the post. Please let me know if there are any changes required in this file to configure peer1.org1.example.com

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 12:43:49 GMT):
It can be done that within the same channel with two organizations that have to communicate with each other, keep the information hidden, and only see that an information has been sent, but not the information itself.

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 12:46:18 GMT):
a private channel does not work, because it does not keep private data between peers of the same organization

AndresMartinezMelgar.itcl (Wed, 02 Jan 2019 12:51:57 GMT):
I want the information to be private between two specific users ---> peer1.org1 (user1) and peer3.org2 (user5)

liaoruohuai (Wed, 02 Jan 2019 12:58:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EacjNJGfb78P56At8) @Jayakrishna.V the file you open is the right one. Add one line "`the IP of peer1` peer1.org1.example.com". for example: 192.168.XX.XXX peer1.org1.example.com. Both of your cloud machines need to do this.

Jayakrishna.V (Wed, 02 Jan 2019 13:22:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJeutwa3sW57zPKo2) @liaoruohuai I have added the required line for peer1 in the specified file in both the machines. But Im still getting the same issue. Please do the needful.

liaoruohuai (Wed, 02 Jan 2019 13:44:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W9M7QcsvgZPBMBDK8) @Jayakrishna.V You can do this "telnet peer1.org1.example.com 7051" on the machine to check whether the network access is ok

liaoruohuai (Wed, 02 Jan 2019 13:48:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W9M7QcsvgZPBMBDK8) @Jayakrishna.V or replace the domain name to IP in the telnet command. You're using cloud machine, generally the machine can communicate through the local network, if the telnet can't work , you need check the network policy of your cloud machine in the cloud platform

fereydoun (Wed, 02 Jan 2019 13:56:10 GMT):
Has joined the channel.

Jayakrishna.V (Wed, 02 Jan 2019 13:56:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MXtdvqpwJrWwF8zAz) @liaoruohuai We have tried both. We are getting connection refused error. It seems that the problem is with the network policy. *Note: *We are able to execute the "ping peer1.org1.example.com" command successfully. I will check the network policy and come back to you. Thanks a lot for all your support.

fereydoun (Wed, 02 Jan 2019 14:18:46 GMT):
aa

fereydoun (Wed, 02 Jan 2019 14:20:10 GMT):
cx

fereydoun (Wed, 02 Jan 2019 14:20:59 GMT):
Hi everyone! I want to start a business base on Hyperledger Fabric . If it's completely license free ? I mean can I utilize open source version and deploy in production environment without any cost? and I need to know about sizing ,performance and TPS!!!

fereydoun (Wed, 02 Jan 2019 14:20:59 GMT):
@AndresMartinezMelgar.itcl Hi everyone! I want to start a business base on Hyperledger Fabric . If it's completely license free ? I mean can I utilize open source version and deploy in production environment without any cost? and I need to know about sizing ,performance and TPS!!!

fereydoun (Wed, 02 Jan 2019 14:20:59 GMT):
Hi everyone! I want to start a business base on Hyperledger Fabric . If it's completely license free ? I mean can I utilize open source version and deploy in production environment without any cost? and I need to know about sizing ,performance and TPS!!!

jeka_gompa (Wed, 02 Jan 2019 14:29:25 GMT):
Hi everybody, I need to make 2 users sign a chaincode transaction but I don't know how i can represent that in my chaincode implementation and on the other hand how can I specify who is the other user that has to sing? Any ideas on how to do that?

WouterVanHecke (Wed, 02 Jan 2019 14:29:58 GMT):
I'm trying to create and join my channel. I'm able to create the channel on my peer0, then I try to join the channel immediately afterwards, but i get the this error: ``` 2019-01-02 14:25:15.029 UTC [core/comm] ServerHandshake -> ERRO 027 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "127.0.0.1:44794"} ```

WouterVanHecke (Wed, 02 Jan 2019 14:30:42 GMT):
TLS is enabled, these are the commands: ``` peer channel create -o $ORDERER -c $CHANNEL_NAME -f $CHANNEL_CONFIG --tls --cafile $CA_FILE peer channel join -b $BLOCK `` ```

jeka_gompa (Wed, 02 Jan 2019 14:32:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=54632R5dRWSrCdL6Q) @WouterVanHecke this happened to me and my path was incorrect, try checking again the path in $CA_FILE

WouterVanHecke (Wed, 02 Jan 2019 14:34:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mbixecHbNM6oDxz9L) @jeka_gompa But creating the channel works (where we need the ca_file), but the joining not. The path is correct

jeka_gompa (Wed, 02 Jan 2019 14:34:49 GMT):
@WouterVanHecke Is the error from the orderer logs?

WouterVanHecke (Wed, 02 Jan 2019 14:34:57 GMT):
no from the peer

jeka_gompa (Wed, 02 Jan 2019 14:35:36 GMT):
If yes then it is probably because of the channel creation command

jeka_gompa (Wed, 02 Jan 2019 14:35:44 GMT):
ah!, ok

jeka_gompa (Wed, 02 Jan 2019 14:39:19 GMT):
I assume you are doing that from the cli. Maybe check the env variables related to the peer

jeka_gompa (Wed, 02 Jan 2019 14:39:19 GMT):
I assume you are doing that from the cli. Maybe check the env variables related to the peer config

WouterVanHecke (Wed, 02 Jan 2019 14:40:42 GMT):
I'm doing it directly from the peer container itself

jeka_gompa (Wed, 02 Jan 2019 14:40:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qfffc7ca5WxNguXsk) Can anyone help with this?

WouterVanHecke (Wed, 02 Jan 2019 14:40:54 GMT):
But it's weird creating works but joining doesn't

WouterVanHecke (Wed, 02 Jan 2019 14:41:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rtinK6h4yJdGR5ppN) @jeka_gompa You mean before it's put on the blockchain? Can't you set this with policies?

jeka_gompa (Wed, 02 Jan 2019 14:43:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zfM8zCpwLg8d5uFz8) @WouterVanHecke I'm not sure how to approach this, I have to create a chaincode which allows one user to create an asset and another user to verify and sign this asset. Is it something you can do?

jeka_gompa (Wed, 02 Jan 2019 14:43:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zfM8zCpwLg8d5uFz8) @WouterVanHecke I'm not sure how to approach this, I have to create a chaincode which allows one user to create an asset and another user to verify and sign this asset. And the former user decides who has to sign. Is it something you can do?

WouterVanHecke (Wed, 02 Jan 2019 14:46:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vXBgGzRoHPfcbWJBk) @jeka_gompa I'm doing something similar, one person creates an object, 2 other person have to sign it, I'm keeping the fingerprint of the person in the object itself. Everyone with the predefined roles / city can sign that object

fereydoun (Wed, 02 Jan 2019 14:46:44 GMT):
@jeka_gompa sorry Dear jeka! I think you are active at this time! can you answer to my questions???

WouterVanHecke (Wed, 02 Jan 2019 14:49:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HTX4vTJLA6wtcNy8f) @fereydoun Everything is open source, so no extra cost for deployment and such. You might need just pay the developers for the configurations. about TPS... this is not really my area, but I think it depends on the network capabilities itself? you can size your couchdb, performance is pretty good imo

fereydoun (Wed, 02 Jan 2019 14:51:36 GMT):
@WouterVanHecke thanks a lot! but I don't know your mean about cost for developers for the configurations???

WouterVanHecke (Wed, 02 Jan 2019 14:52:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vz4aLMJB2KNJXZH8c) @fereydoun What are you trying to do and what is your function in this? Are you a developer yourself?

fereydoun (Wed, 02 Jan 2019 14:53:39 GMT):
@WouterVanHecke yes I'm developer

WouterVanHecke (Wed, 02 Jan 2019 14:54:43 GMT):
Ok, then I mean the company will have to pay you for creating the network

fereydoun (Wed, 02 Jan 2019 14:55:35 GMT):
@WouterVanHecke :v:

fereydoun (Wed, 02 Jan 2019 15:06:17 GMT):
I've been researched about "hyperledger corda frawork from R3" before, it has 2 version open source and eterprise! open source version is limited for production environment. Does open source fabric version limited too???

chris.elder (Wed, 02 Jan 2019 15:15:04 GMT):
@Sarath_Kumar Without knowing a lot of details, it looks like the peer is coming up and retries a few times before CouchDB is fully started. This is really not an issue. I assume the peer comes up successfully since I can see the system databases _users and _replicator are created.

jeka_gompa (Wed, 02 Jan 2019 15:19:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QX7bjertcHFanGCws) @fereydoun Hi, sorry I didn't answer you before, I had to go out but I think @WouterVanHecke answer you pretty well. I also don't know TPS related things with fabric

jeka_gompa (Wed, 02 Jan 2019 15:29:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tACzjscD6NfXAuRjc) @WouterVanHecke Ok, thats is a good idea but in my case one specific user has to sign it not anyone. And the specific user is probably different every time an asset is created. My Idea was at first to bind the user to the invoke function (I still don't know how ) and then send an event to my web app to notify the user and make it verify and sign the transaction. How are you doing the other users sign the tx?

WouterVanHecke (Wed, 02 Jan 2019 15:34:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eXhcJGfbLi6mj2ico) @jeka_gompa What do you mean when you say you want to bind a user to the invoke function? You can also manage this on a higher level, every person (when using fabric-ca that i know of) has a fingerprint in the ClientIdentity object (can be made out of the certificate). When creating the asset you can send the fingerprint of that particular user with the invoke function and save it in the object. Before actually sending the invoke, you'll have to get the fingerprint of that user though. Then when you want to sign, you just check the fingerprint of one that sends the invoke

jeka_gompa (Wed, 02 Jan 2019 18:42:27 GMT):
@WouterVanHecke Thank you very much for the recommendation. I think I can use that fingerprint to implement my solution.

jeka_gompa (Wed, 02 Jan 2019 18:42:27 GMT):
@WouterVanHecke Thank you very much for the recommendation. I think I can use that fingerprint to implement my solution. What I meant with the binding of the other user that has to sign the tx was to include the user information on the parameters of the invoke and I didn't know how to do that. But it may be done using the fingerprint. I'm researching now how to get it. Thanks again.

ShajiThiyarathodi (Wed, 02 Jan 2019 19:30:00 GMT):
Has joined the channel.

jeka_gompa (Wed, 02 Jan 2019 20:40:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eXhcJGfbLi6mj2ico) Hi @dave.enyeart can you please help me with my problem (described below). Do you know of any way to approach this?

jeka_gompa (Wed, 02 Jan 2019 20:42:55 GMT):
@dave.enyeart Sorry I linked the false messages this is what I'm trying to do: I'm not sure how to approach this, I have to create a chaincode which allows one user to create an asset and another user to verify and sign this asset. And the former user decides who has to sign.

dave.enyeart (Wed, 02 Jan 2019 20:51:52 GMT):
@jeka_gompa you need to use state for these types of things. For example create an asset with 'pending' property and a 'requres validation from' property of the other user's identity. Then the other user will have to submit a transaction to verify. The verify transaction would retrieve the current state, ensure the 'requires validation from' identity matches the current submitter identity, and save the state with a 'verified' property. To get the submitter identity you can use client identity library: https://github.com/hyperledger/fabric/blob/master/core/chaincode/shim/ext/cid/README.md

idavidasilva (Thu, 03 Jan 2019 00:55:21 GMT):
Has joined the channel.

unlimited (Thu, 03 Jan 2019 02:11:14 GMT):
hey guys, im trying to understand fundamentals of fabric.. 1. why wouldn't having multiple orderer nodes cause a fork? 2. how does fabric ensure order of transactions that traditional blockchains don't?

dave.enyeart (Thu, 03 Jan 2019 02:59:05 GMT):
@unlimited orderer nodes work together via consensus to provide orderering. in the case of existing kafka impl and upcoming raft impl, one orderer cuts blocks and the others follow. in a BFT impl, they will reach consensus together to cut blocks.

BingoYan (Thu, 03 Jan 2019 03:27:07 GMT):
Has joined the channel.

BingoYan (Thu, 03 Jan 2019 03:34:14 GMT):
hey my fab-friends , im just create a network that contain three Orgs which have three orderers and three peers , and I have complete my chaincode with Golang. But now, I want to create a Java project to deploy , query and invoke my chaincode, and I just visit the associate fabric-java-sdk on github, but that project is a little difficult . so I want a help about how to user fabric-java-sdk to config , deloy , query, invoke my network. Thanks!

adityachap (Thu, 03 Jan 2019 04:46:21 GMT):
has anyone tried implementing private data collections using node js

unlimited (Thu, 03 Jan 2019 05:23:51 GMT):
@dave.enyeart thanks for the reply. i understand that nodes have to reach a consensus for blocks to be added. but I learned that Fabric's ordering service prevents forking (https://blockchain-backyard.github.io/community-questions/posts/does-blockchain-fork-happen-in-fabric/) however I'd like to know more about how it prevents forking?

dave.enyeart (Thu, 03 Jan 2019 05:31:55 GMT):
@unlimited With the current ordering based on kafka, kafka is used to order transactions. one of the orderers will cut a block at a certain transaction and that event will also be ordered in kafka. all the other orderers read the same kafka topic and will deterministically cut the block at the same point. since the blocks have the same transactions regardless of which orderer is providing you with the blocks, there are no forks.

unlimited (Thu, 03 Jan 2019 05:37:31 GMT):
@dave.enyeart ah because of the leader/follower system! now im guessing this is why kafka isnt BFT? because if the leader is compromised, it can choose not to broadcast anything to the followers, preventing any blocks from being added to the main chain

dave.enyeart (Thu, 03 Jan 2019 05:41:23 GMT):
@unlimited well another node would still cut the block, but yeah, you've got the general idea... if an orderer is compromised it may not be a well-behaved leader or follower and could give peers incorrect blocks. when BFT ordering becomes available, it will require consensus before blocks are distributed.

unlimited (Thu, 03 Jan 2019 05:44:21 GMT):
@dave.enyeart I see, thanks. seems like thats a huge security hole though!

dave.enyeart (Thu, 03 Jan 2019 05:46:36 GMT):
hence the work in 2019 towards BFT ordering service

unlimited (Thu, 03 Jan 2019 05:58:19 GMT):
iirc wasn't there a PBFT implementation in fabric v0.6? somehow it changed to kafka in v1.0

yacovm (Thu, 03 Jan 2019 07:22:41 GMT):
there was, yes

Daka (Thu, 03 Jan 2019 08:08:54 GMT):
Hello, how does a real-life voting-based consensus takes place ? Is there a human, that sees the transaction and says " Ok, I like this proposal by this person ". Assuming that everything is fine with the proposal from the network point of view.

Aniket.1 (Thu, 03 Jan 2019 08:24:10 GMT):
can anyone direct to a guide to setup a single Peer on local machine to use fabric-client npm package (without the help of docker) ?

marosoft (Thu, 03 Jan 2019 08:33:47 GMT):
Has joined the channel.

Aniket.1 (Thu, 03 Jan 2019 08:52:14 GMT):
anyone??

purushothamkdr453 (Thu, 03 Jan 2019 09:06:21 GMT):
-----END CERTIFICATE----- 2019-01-03 08:58:33.127 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2028-12-31 08:49:00 +0000 UTC 2019-01-03 08:58:33.127 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-01-03 08:58:33.128 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-01-03 08:58:33.133 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-01-03 08:58:33.138 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-01-03 08:58:33.139 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2019-01-03 08:58:33.139 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-01-03 08:58:33.140 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc420525970, CONNECTING Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== I am getting this error, can any one help me on this?

sanket1211 (Thu, 03 Jan 2019 10:00:45 GMT):
after adding a new peer to an org,when i docker ps -a,the new peer,ca_org1,ca org2 and orderer exits.how to restart them?

sanket1211 (Thu, 03 Jan 2019 10:08:11 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ae36a588c726 hyperledger/fabric-peer "peer node start" 32 minutes ago Up 32 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com 3bf95e8b5f43 hyperledger/fabric-peer "peer node start" 32 minutes ago Up 32 minutes 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 53aa1ae6aead hyperledger/fabric-peer "peer node start" 32 minutes ago Exited (1) 32 minutes ago peer2.org1.example.com ceb5a419e841 hyperledger/fabric-peer "peer node start" 32 minutes ago Up 32 minutes 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com 47ae91efd587 hyperledger/fabric-peer "peer node start" 32 minutes ago Up 32 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com 4258883d66b1 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 32 minutes ago Exited (1) 32 minutes ago ca_peerOrg1 b82883046a8b hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 32 minutes ago Exited (1) 32 minutes ago ca_peerOrg2 snapper@snapper-MS:~/Desktop/work/src/hyperledger/github.com/fabric-samples/balance-transfer$ Exited (2) 32 minutes ago orderer.example.com

Legiit (Thu, 03 Jan 2019 10:15:00 GMT):
``` grpc: addrConn.createTransport failed to connect to {0.0.0.0:7051 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 0.0.0.0 because it doesn't contain any IP SANs". Reconnecting... 2019-01-03 10:11:25.478 UTC [core/comm] ServerHandshake -> ERRO 114 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "127.0.0.1:35048"} ``` Does anyone know how to resolve these errors? They occur when enabling TLS for the network

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 10:58:43 GMT):
hello, I've been studying hyperledger fabric for a month and today I read one thing that has confused me a lot, it's about ordering and peers. What is the exact function of each one? Can someone give me an article where it is explained correctly?

xaviarias (Thu, 03 Jan 2019 11:03:15 GMT):
Has joined the channel.

FLASHJr (Thu, 03 Jan 2019 11:04:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FsPQ4eQtBBwnXtKa9) @AndresMartinezMelgar.itcl orderer is a messeging service which is responsible for consistent Ledger state accross the network. Orderer creates the block and delivers that to all the peers.

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 11:04:35 GMT):
my question is about the endorsement policy, I thought it was taken by the orderers (then you could say how many orderers signed your transaction), but it seems that the peers are in charge. Then according to what I understand, the order (very simplified) would be the following: user makes a transaction-> the relevant peers sign-> send their boto to the orderers-> if the condition is fulfilled it is considered valid. If someone can get me out of the confusion, I would appreciate it! Thank you!

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 11:04:35 GMT):
my question is about the endorsement policy, I thought it was taken by the orderers (then you could say how many orderers signed your transaction), but it seems that the peers are in charge. Then according to what I understand, the order (very simplified) would be the following: user makes a transaction-> the relevant peers sign-> send their vote to the orderers-> if the condition is fulfilled it is considered valid. If someone can get me out of the confusion, I would appreciate it! Thank you!

FLASHJr (Thu, 03 Jan 2019 11:05:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zgnrnMbM7WyoB5E8S) @AndresMartinezMelgar.itcl may be this link will help you https://medium.com/coinmonks/how-does-hyperledger-fabric-works-cdb68e6066f5

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 11:42:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9YsS4eqRa9XQZwLs5) @FLASHJr ok, thanks, i read it twice to understand all again. But i have a cuestion: How can i differentiate a normal peer and endorser peer? or all act in both ways depending on the need of the moment.

FLASHJr (Thu, 03 Jan 2019 11:59:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=whcbgrwTse2FKnmG3) @AndresMartinezMelgar.itcl I think when we install chaincode on a specific peer then it becomes a endorsing peer, and we specify the endorsing policy while instantiating chaincode like this `"OR ('Org1MSP.peer','Org2MSP.peer')"` means any peer from Org1 or ORG2 should endores the tx

liaoruohuai (Thu, 03 Jan 2019 12:01:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bubWrXARggub6y4wG) @FLASHJr maybe it's the anchor peer of ORG1 or ORG2 to endorse the tx from commit peer

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 12:09:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bubWrXARggub6y4wG) @FLASHJr @FLASHJr i think the same, but I can not find any place where it is confirmed

FLASHJr (Thu, 03 Jan 2019 12:09:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YomFqnCAQiQ2eGm8q) @liaoruohuai As per my understanding Anchor peer are used for comminicating with diff org's peers

FLASHJr (Thu, 03 Jan 2019 12:16:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4okm5EpGegHxr8pKK) official documentation says: *Endorsement* Refers to the process where specific peer nodes execute a chaincode transaction and return a proposal response to the client application. The proposal response includes the chaincode execution response message, results (read set and write set), and events, as well as a signature to serve as proof of the peer’s chaincode execution. *Chaincode applications have corresponding endorsement policies, in which the endorsing peers are specified.* But in the policy we specify ORG name, not peers.. I have not tried this `"AND('Org1.peer2', 'Org2.peer1')"``

Sarath_Kumar (Thu, 03 Jan 2019 12:18:01 GMT):
volumes: - ./crypto-config/peers/peer0/msp:/etc/hyperledger/peer/msp i want to check physically, the files are available or not. where the files will be available in the system. I have checked in etc folder there is no folder named hyperledger.

FLASHJr (Thu, 03 Jan 2019 12:20:36 GMT):
@AndresMartinezMelgar.itcl @liaoruohuai check these links https://stackoverflow.com/questions/47627759/how-to-make-a-particular-peer-endorsing-peer-in-hyperledger-fabric-v1-0 and *I think this will answer your question* : https://lists.hyperledger.org/g/fabric/topic/how_to_config_a_peer_node_to/17549864?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,280,17549864

FLASHJr (Thu, 03 Jan 2019 12:21:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HDQvRr9N46tDzwX77) @Sarath_Kumar this path is the containers path. it will not be present on your machine

Sarath_Kumar (Thu, 03 Jan 2019 12:22:14 GMT):
@FLASHJr is there any other way to check the file is available or not.

liaoruohuai (Thu, 03 Jan 2019 12:22:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ydptbvtfecBioA8xL) @FLASHJr Sorry, you're right, I'm getting stucked again. I need read paper again to make it clearly

FLASHJr (Thu, 03 Jan 2019 12:24:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cYC8b5PkApQ2kN4Ai) @liaoruohuai Same here.. I was not sure about this.. I checked the doc jsut now and then answered your question..:smiley:

FLASHJr (Thu, 03 Jan 2019 12:25:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gsyQis27WdkSCnBzM) @Sarath_Kumar take a cli of that container and check

Sarath_Kumar (Thu, 03 Jan 2019 12:27:14 GMT):
@FLASHJr im new in this technology and could you elaborate or refer some links regarding this.

FLASHJr (Thu, 03 Jan 2019 12:28:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B84CgLtQ2kM9Wi4M7) @Sarath_Kumar which example are you trying to run

jeka_gompa (Thu, 03 Jan 2019 12:29:32 GMT):
Hi guys, I have a question how can we see the creator of a transaction given the transaction id ?

Sarath_Kumar (Thu, 03 Jan 2019 12:30:21 GMT):
im trying to join channels from 2 different machines. when join command is issued in the second machine it is saying that composer-genesis.block no such file or directory

Sarath_Kumar (Thu, 03 Jan 2019 12:30:21 GMT):
@FLASHJr im trying to join channels from 2 different machines. when join command is issued in the second machine it is saying that composer-genesis.block no such file or directory

Sarath_Kumar (Thu, 03 Jan 2019 12:30:21 GMT):
@FLASHJr im trying to join channels from 2 different machines. when join command is issued in the second machine it is saying that composer-genesis.block no such file or directory. im using fabric-dev-servers hlfv12 and following this tutorial : https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4

AndresMartinezMelgar.itcl (Thu, 03 Jan 2019 12:30:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pfSJKRakrMZeKcPnC) @jeka_gompa using APi --> getCreator()

Aniket.1 (Thu, 03 Jan 2019 12:31:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uKgqbs66SB8Tg4Yik) Hello Guys, Did anyone setup a peer of Hyperledger without using docker or is it possible?

Aniket.1 (Thu, 03 Jan 2019 12:31:59 GMT):
I have spent great time on it but didn't find a beginner friendly resource regarding this

jeka_gompa (Thu, 03 Jan 2019 12:35:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A2BraxiqRwDz9swTn) @AndresMartinezMelgar.itcl Hi thanks, but I mean for example when you retrieve the transaction history of an asset you get a an iterator of all changes this asset hat over time and for each change you have the transaction id and the timestamp. My question is having the transaction id how can you see who performed the modification on the asset

greg2git (Thu, 03 Jan 2019 12:59:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3r5fkYptyyDyxhux4) what decided that kafka would be better a better option for fabric between versions 0.6 and 1.4? expediency or something else?

yacovm (Thu, 03 Jan 2019 13:10:26 GMT):
> what decided that kafka would be better a better option for fabric between versions 0.6 and 1.4? expediency or something else? Astrology

yacovm (Thu, 03 Jan 2019 13:10:33 GMT):
(honestly, I don't know...)

Jayakrishna.V (Thu, 03 Jan 2019 13:19:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EM3Nvy7ucSFJSo7qQ) @liaoruohuai We have sorted out the network policy issue now. Now we are able to run telnet without any issue on both the machines. But while running the join command in machine 2, now we are getting another error "genesis block file not found open no such file or directory" Command : docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b mychannel_config.block

Jayakrishna.V (Thu, 03 Jan 2019 13:19:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EM3Nvy7ucSFJSo7qQ) @liaoruohuai We have sorted out the network policy issue now. Now we are able to run telnet without any issue on both the machines. But while running the join command in machine 2, now we are getting another error "genesis block file not found open no such file or directory" Command : docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b mychannel_config.block Do you have any idea about this issue?

purushothamkdr453 (Thu, 03 Jan 2019 13:20:49 GMT):
Hi All, foldername is getting added to the network that is being defined in the compose file, Can any one tell me to how to avoid this(Note- .env file is not available in the folder location though)?

inhyukseo1 (Thu, 03 Jan 2019 13:39:48 GMT):
Has joined the channel.

FLASHJr (Thu, 03 Jan 2019 14:41:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L3c28Gp9ygbktJPvr) @Jayakrishna.V I think you need to get the genesis.block from other machine using command or `peer channel fetch config -o orderer.example.com:7050 -c mychannel`

FLASHJr (Thu, 03 Jan 2019 14:43:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bQ7s5oK8axf5xyjoG) after this genesis block will get created on another mahine with the name mychannel_config.block after this you can proceed with the above command

klkumar369 (Thu, 03 Jan 2019 18:08:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HDQvRr9N46tDzwX77) @Sarath_Kumar Volumes is basically the term related to Docker Compose. So here in your case, the first part (crypto-config/peers/peer0/msp) is the physical path and the second path (etc/hyperledger/peer/msp) is from the docker image file system which is virtual.

smfaizalkhan (Thu, 03 Jan 2019 19:00:52 GMT):
HI All, I have played arounf wiht byfn. Now i would like to play around with multi host,to be precise with real world situation,dont find any docs Say three/four different host and conatiner in different parts of the world Help appreciated

sandy (Thu, 03 Jan 2019 20:12:47 GMT):
Has joined the channel.

sandy (Thu, 03 Jan 2019 20:18:06 GMT):
Hi All I have a basic question about hyperledger fabric. Private/Permissioned blockchains allows us to create a network and multiple organisation can join into the network by having their own peers. For a transaction to happen multiple parties need to agree. But the question is, we are using thirdparty infrastructure providers to run the blockchain network for us. How can i trust the infrastructure provider? I believe millions of nodes in bitcoin network is a big advantage of the public bitcoin network.. Am i missing some thing? Any help will be highly appreciated..

dave.enyeart (Thu, 03 Jan 2019 20:58:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kd2z3igvK6RxZFaTW) @jeka_gompa Your favorite SDK will have ability to do this, ask in your favorite sdk channel for details. for example node.js has a queryTransaction() api that returns https://fabric-sdk-node.github.io/release-1.4/global.html#ProcessedTransaction , which if you drill into it you'll find the submitter certificate

dave.enyeart (Thu, 03 Jan 2019 20:58:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kd2z3igvK6RxZFaTW) @jeka_gompa Your favorite SDK will have ability to do this, ask in your favorite sdk channel for details. for example node.js sdk has a queryTransaction() api that returns https://fabric-sdk-node.github.io/release-1.4/global.html#ProcessedTransaction , which if you drill into it you'll find the submitter certificate

jeka_gompa (Thu, 03 Jan 2019 21:04:34 GMT):
@dave.enyeart Ok, I'll do it thanks!

jp4g (Thu, 03 Jan 2019 23:17:13 GMT):
Has joined the channel.

jp4g (Thu, 03 Jan 2019 23:18:38 GMT):
Hi, I am new (~3 months) to HyperLedger and am trying to figure out if I have to pay to get a network up. To my understanding, I can build the entire network and host it myself or use the paid IBM Blockchain Service membership. Am I correct?

BingoYan (Fri, 04 Jan 2019 00:55:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GXdr4tKirt8g9Zdrj) @sanket1211 maybe you can try to docker stop [DOCKERID]

inhyukseo1 (Fri, 04 Jan 2019 03:30:31 GMT):
If i wanted to reset some values on my assets, or perform calculations every 5 minutes, how can it be done? Should I send a transaction that orders such reset/calculations or is there some other way to make a certain action performed every 5 minutes ?

smfaizalkhan (Fri, 04 Jan 2019 04:06:30 GMT):
Hello Guys, Please help me in setting up multi host hyperledger fabric environment,I coudn't find anydocs related to setting up multi host network...BYFN is on single host...Help needed

Jayakrishna.V (Fri, 04 Jan 2019 04:42:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tp3QryDKED2yRivTx) @smfaizalkhan https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 This was the link suggested by Hyperledger experts.

FLASHJr (Fri, 04 Jan 2019 05:40:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8wjDvwwnLcyLnrrBq) @Jayakrishna.V Yes. This link will help you to setup multi host network.

MuhammedHafil (Fri, 04 Jan 2019 06:00:03 GMT):
I have a PoC, Where a Big MNC organisation can add other small organisations. do i need to update network with adding a new peer organisation for every MNCs and Small organisations in config and update network ? Remember, the MNC can register themselves too. in or a basic network from fabric-samples repo is enough for this PoC by saving all MNCs and SO statedb and mapping them?

MuhammedHafil (Fri, 04 Jan 2019 06:00:03 GMT):
I have a PoC, Where a Big MNC organisation can add other small organisations. do i need to update network with adding a new peer organisation for every MNCs and Small organisations? Remember, the MNC can register themselves too. in or a basic network from fabric-samples repo is enough for this PoC by saving all MNCs and SO statedb and mapping them?

MuhammedHafil (Fri, 04 Jan 2019 06:00:03 GMT):
I have a PoC, Where a Big MNC organisation can add other small organisations. do i need to update network with adding a new peer organisation for every MNCs and Small organisations? Remember, the MNC can register themselves too. or a basic network from fabric-samples repo is enough for this PoC by saving all MNCs and SO statedb and mapping them?

MuhammedHafil (Fri, 04 Jan 2019 06:00:03 GMT):
Hi experts, I have a PoC, Where a Big MNC organisation can add other small organisations. do i need to update network with adding a new peer organisation for every MNCs and Small organisations? Remember, the MNC can register themselves too. or a basic network from fabric-samples repo is enough for this PoC by saving all MNCs and SO in statedb and mapping them?

MuhammedHafil (Fri, 04 Jan 2019 06:00:03 GMT):
Hi experts, I have a platform, Where a Big MNC organisation can add other small organisations. do i need to update network with adding a new peer organisation for every MNCs and Small organisations? Remember, the MNC can register themselves too. or a basic network from fabric-samples repo is enough for this requirement by saving all MNCs and SO in statedb and mapping them?

Jayakrishna.V (Fri, 04 Jan 2019 06:00:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bQ7s5oK8axf5xyjoG) @FLASHJr We have already executed that command but we have used a different name to the genesis block file. Now we have used chaneelid_config.block, it worked. Thanks a lot for your help.

Jayakrishna.V (Fri, 04 Jan 2019 06:00:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bQ7s5oK8axf5xyjoG) @FLASHJr We have already executed that command but we have used a different name to the genesis block file. Now we have used channelid_config.block, it worked. Thanks a lot for your help.

FLASHJr (Fri, 04 Jan 2019 06:16:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zPEgazDzPyDdCBJMe) @Jayakrishna.V great!

sanket1211 (Fri, 04 Jan 2019 07:21:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kt44fTiTrWrYLyDAL) @BingoYan it worked once,but again it exits.

BingoYan (Fri, 04 Jan 2019 07:23:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QGpykYSGcqcWypBpj) @sanket1211 maybe you can try this command "docker rm -f [DOCKERID]"

sanket1211 (Fri, 04 Jan 2019 07:36:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yeAqC3tzkweSQiwcq) @BingoYan by removing the container,how would it help me to bring up the peer?

pyraman (Fri, 04 Jan 2019 07:41:01 GMT):
I've been working on configuring hyperledger fabric network for months. My use case is Letter of Credit which has been hosted on composer sample. But in production! I would like to configure 6 organizations: Importer, Exporter, ImporterBank, ExporterBank, Carrier, Regulator. I've successfully configured the network on 9 physical machines (kafka ordering service). My question is: if an organization want to join to the network, it must invest: peer, ca, database, ordering (maybe). Is it too much? what if that organization want to join more than one network?

pyraman (Fri, 04 Jan 2019 07:46:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R3h6SRBEZ4S7QgsdX) @smfaizalkhan you may want to take a look at: https://github.com/olegabu/fabric-starter

pyraman (Fri, 04 Jan 2019 07:47:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wmy5uBxmHN8EhoC5u) https://github.com/olegabu/fabric-starter

vijaybaskar17 (Fri, 04 Jan 2019 07:55:09 GMT):
Has joined the channel.

ygnr (Fri, 04 Jan 2019 08:33:41 GMT):
Hello All, I am looking for suggestions based on your experience for this question. https://stackoverflow.com/questions/53723969/hyperledger-fabric-chaincode-data-model

FLASHJr (Fri, 04 Jan 2019 08:43:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F9JYmEskxYBb6QgZg) @ygnr I'm also facing a problem while writing chaincode in fabric in Node.JS as there is no mechanism to show relationships between two assets like Composer.

arvindkumar6568 (Fri, 04 Jan 2019 09:25:54 GMT):
Has joined the channel.

inhyukseo1 (Fri, 04 Jan 2019 09:31:04 GMT):
Hello, does anyone know? If i wanted to reset some values on my assets, or perform calculations every 5 minutes, how can it be done? Should I send a transaction that orders such reset/calculations or is there some other way to make a certain action performed every 5 minutes ?

arvindkumar6568 (Fri, 04 Jan 2019 09:44:53 GMT):
hello sir i am following https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org from hyperledger doc when i installed the bna file on admin card(PeerAdmin@byfn-network-org1) via command

arvindkumar6568 (Fri, 04 Jan 2019 09:45:24 GMT):
composer network start -c PeerAdmin@byfn-network-org1 -n trade-network -V 0.1.14 -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A alice1 -C alice1/admin-pub.pem -A bob1 -C bob1/admin-pub.pem and get error ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: cannot get package for chaincode (trade-network:0.1.14) Response from attempted peer comms was an error: Error: cannot get package for chaincode (trade-network:0.1.14) Response from attempted peer comms was an error: Error: cannot get package for chaincode (trade-network:0.1.14) Response from attempted peer comms was an error: Error: cannot get package for chaincode (trade-network:0.1.14) Command failed

NeelKantht (Fri, 04 Jan 2019 09:57:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EDtw9W6wdvD3vFzLW) @arvindkumar6568 because you dont have trade-network chaincode in your system

pikvik (Fri, 04 Jan 2019 09:58:33 GMT):
Just a conceptual query , does the peer interacts with CA validation server on what frequency and conditions. someone please educate

arvindkumar6568 (Fri, 04 Jan 2019 10:02:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SoFZsygrm5ovSPrWZ) @NeelKantht hello sir when we use ./startFabric.sh we run the command like as ./createAdminCard.sh ,composer install command ,composer start command , in this case i did not give any chaincode

arvindkumar6568 (Fri, 04 Jan 2019 10:03:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SoFZsygrm5ovSPrWZ) @NeelKantht can you give what should i do for short out this problem i checked the peer logs i got this error ERRO 05a cannot get package for chaincode (trade-network:0.1.14)-err:open /var/hyperledger/production/chaincodes/trade-network.0.1.14: no such file or directory

pikvik (Fri, 04 Jan 2019 10:04:44 GMT):
@arvindkumar6568 @NeelKantht @FLASHJr please educate me on peer interacting with CA on what occasions

arvindkumar6568 (Fri, 04 Jan 2019 10:12:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SoFZsygrm5ovSPrWZ) @NeelKantht hello sir i have only .bna file no any chaincode

NeelKantht (Fri, 04 Jan 2019 10:13:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NRAd44QsTcY7AXHE5) @arvindkumar6568 that is nothing but chaincode..what i am saying is that u must have trade-network.bna file in your local system then only your command will work

NeelKantht (Fri, 04 Jan 2019 10:14:07 GMT):
or else u use your .bna file and specify the name in the respective command

arvindkumar6568 (Fri, 04 Jan 2019 10:23:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dPS2tXPcg7a9hXXv2) @NeelKantht hello sir i have .bna file on local system

arvindkumar6568 (Fri, 04 Jan 2019 10:23:57 GMT):
this command run successfully composer network install --card PeerAdmin@byfn-network-org2 --archiveFile trade-network@0.1.14-deploy.0.bna

NeelKantht (Fri, 04 Jan 2019 10:25:18 GMT):
do u have the same bna file for org1?

arvindkumar6568 (Fri, 04 Jan 2019 10:28:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gme24tnYh7wbEGLR7) @NeelKantht yes sir

arvindkumar6568 (Fri, 04 Jan 2019 10:29:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gme24tnYh7wbEGLR7) @NeelKantht i run install command on both org's admin card composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network@0.1.14-deploy.0.bna composer network install --card PeerAdmin@byfn-network-org2 --archiveFile trade-network@0.1.14-deploy.0.bna

NeelKantht (Fri, 04 Jan 2019 10:31:42 GMT):
if the bna file is their then it should work

arvindkumar6568 (Fri, 04 Jan 2019 10:34:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=syQmf2oqftbrCiqGv) @NeelKantht hello sir but it does not work i checked the peer logs then it show cannot get package for chaincode (trade-network:0.1.14)-err:open /var/hyperledger/production/chaincodes/trade-network.0.1.14: no such file or directory

arvindkumar6568 (Fri, 04 Jan 2019 10:35:14 GMT):
here i am following this link https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org.html

NeelKantht (Fri, 04 Jan 2019 10:37:41 GMT):
As you can see from the above, we are using a Hyperledger Composer business network called trade-network to test our multi-org environment. You will need a file trade-network.bna (business network archive, from our sample networks) to do the test. If you don't have this, just go to https://composer-playground.mybluemix.net/ and deploy the trade-network sample in the online Playground, then 'connect' to the business network as 'admin', change the version number to 0.1.14 in the lower left, and export it to the current directory as trade-network.bna. The business network has a version property specified in a package.json file. That version must be specified when the business network is started using the composer start command in Step Seventeen. If you are using the trade-network sample network, the version is 0.1.14. (Note: If you are planning on using a different network, such as the Composer tutorial network tutorial-network as your business network, you would need to specify that file in the network install command above and thereafter, as the business network archive in this tutorial, as well as the correct version number for this business network).

MuhammedHafil (Fri, 04 Jan 2019 10:41:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eBDvneHsGGj37Xkut) ?

raky35 (Fri, 04 Jan 2019 10:46:39 GMT):
Has joined the channel.

raky35 (Fri, 04 Jan 2019 10:47:30 GMT):
Hi All i am getting error " Installing business network. This may take a minute...E0103 23:33:38.144154000 4486432192 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed." at step 11 "https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org" for command composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network.bna

arvindkumar6568 (Fri, 04 Jan 2019 10:47:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5FSicXAuedYTyWwE2) @NeelKantht hello sir i have completed this process i got .bna file from playground and change the version 0.1.14 and it installed on admin cards

NeelKantht (Fri, 04 Jan 2019 10:54:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qg7a9ws74vchoTsiJ) @arvindkumar6568 is that your .bna file in current directory?

raky35 (Fri, 04 Jan 2019 11:01:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EuuEHZrFAJrP9hvb5) @PrashantS SSL_ERROR_SSL please advice how the issue was resolved if at all.

raky35 (Fri, 04 Jan 2019 11:05:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F6NpZa4tAWLibZDNy) @juan.gzz.salz please advice how did u solve the "⠴ Installing business network. This may take a minute...E0103 23:33:38.144154000 4486432192 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. "

vijaybaskar17 (Fri, 04 Jan 2019 11:06:50 GMT):
Hi, can we have seperate chaincode for seperate channels? Simultaneously all chaincodes up and running...

arvindkumar6568 (Fri, 04 Jan 2019 11:10:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HNApueggAtKdMSR2b) @vijaybaskar17 yes

raky35 (Fri, 04 Jan 2019 11:10:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SzWh3aa7mEne2bicW) @Mahadream Hi @Mahadream please advice if SSL issue was resolved and how ? many thanks

Daka (Fri, 04 Jan 2019 11:18:10 GMT):
Hello, how does a real-life voting-based consensus takes place ? Is there a human, that sees the transaction and says " Ok, I like this proposal by this person ". Assuming that everything is fine with the proposal from the network point of view.

MuhammedHafil (Fri, 04 Jan 2019 11:44:21 GMT):
@Daka check, chaincode based endorsement

kpratihast (Fri, 04 Jan 2019 12:52:11 GMT):
Hello, how does Fabric ensure the integrity of state in Couchdb? I tried to run this experiment on 2 Org (having 2 peer each) network with Couchdb as state database. The endorsement policy is set to -P "AND ('Org1MSP.peer','Org2MSP.peer')" . The initial data in all 4 peers was {Key: "1", Owner: "John"} .I opened the fauxton Couchdb interface for peer1.org1 and changed the owner to "Doe" and then ran an invoke method of chaincode to change the owner to "Smith". The invoke ran successfully and now the owner is "Smith" in all 4 peers. Per your above answer, I was hoping that invoke would fail as RWSet hash would differ during endorsement.

kpratihast (Fri, 04 Jan 2019 12:52:11 GMT):
Hello, how does Fabric ensure the integrity of state in Couchdb? I tried to run this experiment on 2 Org (having 2 peer each) network with Couchdb as state database. The endorsement policy is set to -P "AND ('Org1MSP.peer','Org2MSP.peer')" . The initial data in all 4 peers was {Key: "1", Owner: "John"} .I opened the fauxton Couchdb interface for peer1.org1 and changed the owner to "Doe" and then ran an invoke method of chaincode to change the owner to "Smith". The invoke ran successfully and now the owner is "Smith" in all 4 peers. I was hoping that invoke would fail as RWSet hash would differ during endorsement but it didn't.

kpratihast (Fri, 04 Jan 2019 12:56:53 GMT):
Also, how do the different MSP roles (member, admin, peer, client) affect the endorsement policies?

Tom-Xu-CNXA (Fri, 04 Jan 2019 14:50:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sE38RQb24NKmwiHay) @kpratihast @kpratihast I think that the proposal validating 'read set' only check version of the keys. (Please refer to https://hyperledger-fabric.readthedocs.io/en/latest/readwrite.html?highlight=read%20set%20). How to produce a failed transaction, you can try to make different write-set (values to set state): in your chaincode, PutState( value from GetState(...)), then the proposal will be different values, then you will find some integrity mechanism affect the result.

kpratihast (Fri, 04 Jan 2019 14:58:54 GMT):
@Tom-Xu-CNXA thanks for your response. If I manually go ahead and change the value in couchdb, I see that _rev field changes for that key which I am assuming is the revision number. Once I change a value manually and do a GetState on that peer, i get the modified value whereas the other peers show the original value. This modified value persists till I run another PutState after which all 4 peers get same value. If I want to avoid any tampering which uses couchdb inerface as medium, what are possible options for the same ?

Tom-Xu-CNXA (Fri, 04 Jan 2019 15:13:51 GMT):
@kpratihast I think that is reasonable. When the client application (peer command as well) connect to a peer, then execute query (GetState), the peer will only search result from its State Database (the corresponding couch db instance in your example), so then, it will return the 'Changed' value. But when you try to update (PutState) them, to update the owner, the proposal IS SAME, so it will be succeed. In my mind, the distributed ledger will validate the transaction result. Please try to update owner with some random values, it will get failed. But, do you worry about somebody may change the State Database? Yes, that is a problem, since, 'query' doesn't make transaction to other peers, but only 'invoke' do that.

Tom-Xu-CNXA (Fri, 04 Jan 2019 15:13:51 GMT):
@kpratihast I think that is reasonable. When the client application (peer command as well) connect to a peer, then execute query (GetState), the peer will only search result from its State Database (the corresponding couch db instance in your example), so then, it will return the 'Changed' value. But when you try to update (PutState) them, to update the owner, the proposal IS SAME, so it will be succeed. In my mind, the distributed ledger will validate the transaction result. Please try to update owner with some random values, it will get failed. But, do you worry about somebody may change the State Database? Yes, that is a problem, since, 'query' doesn't make transaction to other peers, but only 'invoke' do that.

Tom-Xu-CNXA (Fri, 04 Jan 2019 15:13:51 GMT):
@kpratihast I think that is reasonable. When the client application (peer command as well) connect to a peer, then execute query (GetState), the peer will only search result from its State Database (the corresponding couch db instance in your example), so then, it will return the 'Changed' value. But when you try to update (PutState) them, to update the owner, the proposal IS SAME, so it will be succeed. In my mind, the client application will validate the transaction result, and submit the transaction to orderer if they are same, yes, it is ensured by your client application. Please try to update owner with some random values, it will get failed. But, do you worry about somebody may change the State Database? Yes, that is a problem, since, 'query' doesn't make transaction to other peers, but only 'invoke' do that.

Tom-Xu-CNXA (Fri, 04 Jan 2019 15:13:51 GMT):
@kpratihast I think that is reasonable. When the client application (peer command as well) connect to a peer, then execute query (GetState), the peer will only search result from its State Database (the corresponding couch db instance in your example), so then, it will return the 'Changed' value. But when you try to update (PutState) them, to update the owner, the proposal IS SAME, so it will be succeed. In my mind, the client application will validate the transaction result, and submit the transaction to orderer if they are same, yes, it is submitted by your client application. Please try to update owner with some random values, it will get failed. But, do you worry about somebody may change the State Database? Yes, that is a problem, since, 'query' doesn't make transaction to other peers, but only 'invoke' do that.

jeka_gompa (Fri, 04 Jan 2019 16:13:47 GMT):
Hi guys, I'm getting this warning on my peer nodes: WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable I want to get the DEBUG logs. Which variable do I have to set?

Krischen (Fri, 04 Jan 2019 16:33:51 GMT):
Has joined the channel.

dave.enyeart (Fri, 04 Jan 2019 17:45:51 GMT):
@jeka_gompa I think the message you posted answers your own question. This is a change mentioned in v1.4 release notes. For more details see https://hyperledger-fabric.readthedocs.io/en/release-1.4/logging-control.html#logging-specification

dave.enyeart (Fri, 04 Jan 2019 17:51:14 GMT):
@kpratihast @Tom-Xu-CNXA To avoid tampering with your state database, configure and username/password for couchdb and don't expose the couchdb port beyond the peer's docker network. This way only peer can interact with couchdb. Of course the system admin can still tamper/corrupt their own data, but the point of a blockchain is that a bad actor like this can't infect the rest of the nodes. To see how Fabric protects against this see https://lists.hyperledger.org/g/fabric/message/4896

dave.enyeart (Fri, 04 Jan 2019 17:51:14 GMT):
@kpratihast @Tom-Xu-CNXA To avoid tampering with your state database, configure a username/password for couchdb and don't expose the couchdb port beyond the peer's docker network. This way only peer can interact with couchdb. Of course the system admin can still tamper/corrupt their own data, but the point of a blockchain is that a bad actor like this can't infect the rest of the nodes. To see how Fabric protects against this see https://lists.hyperledger.org/g/fabric/message/4896

jeka_gompa (Fri, 04 Jan 2019 17:56:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=at37trcMJwgMBRGEh) @dave.enyeart Yes, thanks. I found it but still didn't get the messages I wanted, my problem seems to be solved anyways :)

dave.enyeart (Fri, 04 Jan 2019 17:59:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yxnTKA9RzuXj4yeh5) @Daka Chaincode endorsement and ordering is not human-based consensus. If you want to insert a human approval or 'vote', you would model that into your chaincode process. For example you could code chaincode such that state cannot be changed or finalized until another party adds their approval/vote to the state. Many possible approaches to this, e.g. include additional fields in json that are controlled by access control and get verified during chaincode execution.

x4e-salvi (Fri, 04 Jan 2019 18:48:18 GMT):
Has joined the channel.

Daka (Fri, 04 Jan 2019 19:18:32 GMT):
@dave.enyeart But having to code the chaincode in such a way would complicate a lot of things, unless all the voting parties are 24/7 in front of their machines. And my confusion comes from the point where if you want to sing or propose some documents for signing, the blockchain would validate the transaction if everything is allright from technical point of view. Is there a way to write the chaincode that would refuse such a document if it is not "humanly" correct ?

Daka (Fri, 04 Jan 2019 19:20:37 GMT):
@dave.enyeart Or is the document put out for signing by whoever has to crypto sign it ? Is this a correct transaction ?

dave.enyeart (Fri, 04 Jan 2019 19:21:03 GMT):
no, endorsement is for ensuring things are technically correct across the ledgers. for human checks you must code that into chaincode process logic.

dave.enyeart (Fri, 04 Jan 2019 19:21:03 GMT):
no, endorsement is for ensuring things are technically correct across the ledgers. for human checks you must code that into chaincode process logic via multi-step transactions.

Daka (Fri, 04 Jan 2019 19:21:34 GMT):
@dave.enyeart Thank you very much ^_^

mkhraisha (Fri, 04 Jan 2019 20:27:59 GMT):
If a chaincode is installed on a peer, is there a way to restrict query functions to specific users? Say a chaincode contains a list of cars, can i restrict a query on the car details to the owner?

mkhraisha (Fri, 04 Jan 2019 20:27:59 GMT):
If a chaincode is installed on a peer, is there a way to restrict query functions to specific users? Say a chaincode contains a list of cars, can i restrict a query on the car details to the owner of said car?

mkhraisha (Fri, 04 Jan 2019 20:27:59 GMT):
If a chaincode is installed on a peer, is there a way to restrict query functions to specific users? Say a chaincode contains a list of cars, can i restrict a query on the car details to the owner of said car? {car:"car1" owner:"owner1", licenseNumber: "12345"} can i restrict reading of the licenseNumber field by the owner1 field?

mkhraisha (Fri, 04 Jan 2019 20:27:59 GMT):
If a chaincode is installed on a peer, is there a way to restrict query functions to specific users? Say a chaincode contains a list of cars, can i restrict a query on the car details to the owner of said car? {car:"car1" owner:"owner1", licenseNumber: "12345"} can i restrict reading of the licenseNumber field by the owner1 field? Is this still possible if the user i wish to restrict has access to the couchdb

dave.enyeart (Sat, 05 Jan 2019 05:37:10 GMT):
@mkhraisha yes you can include access control logic in your chaincode, see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#chaincode-access-control

dave.enyeart (Sat, 05 Jan 2019 05:38:01 GMT):
you should not give end users access to couchdb.

sanket1211 (Sat, 05 Jan 2019 09:14:49 GMT):
adding new peer/orderer in balance transfer(fabric-sample) keeps exiting....posting its log..plz help to rectify it....thank you.

sanket1211 (Sat, 05 Jan 2019 09:14:53 GMT):
1 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/crypto/peer/msp: could not load a valid signer certificate from directory /etc/hyperledger/crypto/peer/msp/signcerts: stat /etc/hyperledger/crypto/peer/msp/signcerts: no such file or directory

jeka_gompa (Sat, 05 Jan 2019 11:56:04 GMT):
Hi Guys, a question. Can you add anchor peers to a channel after having add another organization to it? I tried and I get the error with the versions of the channel configuration. Here are the logs:

jeka_gompa (Sat, 05 Jan 2019 11:56:04 GMT):
Hi Guys, a question. Can you add anchor peers to a channel after having add another organization to it? I tried and I get the error with the versions of the channel configuration. Here are the logs: 2019-01-01 13:50:19.095 UTC [orderer.common.broadcast] ProcessMessage -> WARN 076 [channel: mainchannel] Rejecting broadcast of config message from 172.25.0.23:39260 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 3

jeka_gompa (Sat, 05 Jan 2019 11:56:04 GMT):
Hi Guys, a question. Can you add anchor peers to a channel after having added another organization to it? I tried and I get the error with the versions of the channel configuration. Here are the logs: 2019-01-01 13:50:19.095 UTC [orderer.common.broadcast] ProcessMessage -> WARN 076 [channel: mainchannel] Rejecting broadcast of config message from 172.25.0.23:39260 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 3

kpratihast (Sat, 05 Jan 2019 12:03:35 GMT):
@dave.enyeart Thanks for your response Dave ! Can you please also explain how do the different MSP roles (member, admin, peer, client) affect the endorsement policies?

Daka (Sat, 05 Jan 2019 13:37:40 GMT):
@jeka_gompa In theory, you can through a special transaction, I haven't done it in practice though.

jeka_gompa (Sat, 05 Jan 2019 13:59:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wEvFFbabpq9KmRwzh) @Daka Oh! Do you remember how you did it?

RenanDevillieres (Sat, 05 Jan 2019 14:38:34 GMT):
Has joined the channel.

jeka_gompa (Sat, 05 Jan 2019 14:49:15 GMT):
Hi people, another question here, I've upgrade a chaincode several times. Is it save to remove the containers of the old chaincode's versions?

jeka_gompa (Sat, 05 Jan 2019 14:49:15 GMT):
Hi guys, I have a web app connected to my blockchain and I need to list all registered users of an organization. Is there a way to do this?

AnkitGajera (Sat, 05 Jan 2019 15:18:13 GMT):
Has joined the channel.

dave.enyeart (Sat, 05 Jan 2019 15:20:51 GMT):
@kpratihast Only a peer performs endorsements, so it is recommended to use the 'peer' role in endorsement policies (if you used the generic 'member' role then technically a client could sign the endorsement rather than a peer... you don't want that). For more details see https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html#setting-chaincode-level-endorsement-policies and https://hyperledger-fabric.readthedocs.io/en/latest/msp.html#identity-classification

dave.enyeart (Sat, 05 Jan 2019 15:52:04 GMT):
@jeka_gompa yes it is safe to remove containers for old versions... there is intent to provide automatic cleanup in the future, it's just not there yet.

dave.enyeart (Sat, 05 Jan 2019 15:52:36 GMT):
Concerning updating the anchor peers, that error message is indeed confusing... please post to related issue https://jira.hyperledger.org/browse/FAB-8591 so that the confusion is documented... the owner of that issue should be able to help troubleshoot, and ideally improve the messages for the future.

rodolfoleal (Sat, 05 Jan 2019 17:14:09 GMT):

Clipboard - January 5, 2019 3:13 PM

rodolfoleal (Sat, 05 Jan 2019 17:14:11 GMT):
Im trying to build Fabric on my machine but it's failing in one of the tests.

rodolfoleal (Sat, 05 Jan 2019 17:14:38 GMT):
Someone knows the cause or if it is a known issue?

rodolfoleal (Sat, 05 Jan 2019 17:29:22 GMT):
I found the issue, the test expects the message to contains "unknown command" but my go returns a message with "unknown subcommand"

rodolfoleal (Sat, 05 Jan 2019 17:29:41 GMT):
I dont know if its because the message changed in my go version.

rodolfoleal (Sat, 05 Jan 2019 17:30:15 GMT):

Clipboard - January 5, 2019 3:30 PM

rodolfoleal (Sat, 05 Jan 2019 17:30:31 GMT):
here is the test with the assertion.

rodolfoleal (Sat, 05 Jan 2019 17:32:41 GMT):
go version go version go1.10.7 linux/amd64

rodolfoleal (Sat, 05 Jan 2019 22:13:03 GMT):
I found it was due to my go version as i suspected, I was building version 1.4 that uses go 1.11.x

rodolfoleal (Sat, 05 Jan 2019 22:14:13 GMT):
Update the go version ande everything worked fine.

akshay.sood (Sun, 06 Jan 2019 04:40:37 GMT):
Does anyone know how to generate tlc certs & key with `fabric-ca`

klkumar369 (Sun, 06 Jan 2019 06:12:04 GMT):
Hello!, I am trying to create artifacts using configtxgen command and getting the below error. Any help appreciated. configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2019-01-06 11:20:06.994 IST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2019-01-06 11:20:07.019 IST [common/tools/configtxgen/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 14 error(s) decoding: * '' has invalid keys: channel * 'Application' has invalid keys: Policies * 'Orderer' has invalid keys: Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Policies * 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: Policies * 'Profiles[TwoOrgsChannel].Application.Organizations[1]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer.Organizations[0]' has invalid keys: Policies 2019-01-06 11:20:07.020 IST [common/tools/configtxgen] func1 -> CRIT 003 Error unmarshaling config into struct: 14 error(s) decoding:

muath939 (Sun, 06 Jan 2019 08:46:14 GMT):
hello can any one helo me with hyperledger ?

PrashantS (Sun, 06 Jan 2019 11:18:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2ubxTgiE6f5ijFSaw) @raky35 Issue was with crypto-config.yaml file .. you may want to have a look at - https://github.com/ciphersbak/singleorg

jeka_gompa (Sun, 06 Jan 2019 12:38:08 GMT):
Hi guys, is there any way to list the registered users of an organization. I need to list them in my web app. I found this command: - fabric-ca-client identity list but i could not make it work

Ntienbo (Sun, 06 Jan 2019 13:39:03 GMT):
Has joined the channel.

Ntienbo (Sun, 06 Jan 2019 13:39:23 GMT):
I tried installing the Endorsement plugin based on the instructions in the link below. https://hyperledger-fabric.readthedocs.io/en/release-1.4/pluggable_endorsement_and_validation.html But I cant install. Error as below 2019-01-06 13:32:50.588 UTC [nodeCmd] serve -> INFO 002 Starting peer: Version: 1.4.0-rc2 Commit SHA: b87ec80 Go version: go1.11.1 OS/Arch: linux/amd64 Chaincode: Base Image Version: 0.4.14 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger 2019-01-06 13:32:50.589 UTC [peer.operations] initializeMetricsProvider -> WARN 003 Unknown provider type: ; metrics disabled 2019-01-06 13:32:50.589 UTC [ledgermgmt] initialize -> INFO 004 Initializing ledger mgmt 2019-01-06 13:32:50.589 UTC [kvledger] NewProvider -> INFO 005 Initializing ledger provider 2019-01-06 13:32:50.735 UTC [kvledger] NewProvider -> INFO 006 ledger provider Initialized 2019-01-06 13:32:50.838 UTC [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized 2019-01-06 13:32:50.839 UTC [peer] func1 -> INFO 008 Auto-detected peer address: 172.23.0.5:7051 2019-01-06 13:32:50.839 UTC [peer] func1 -> INFO 009 Returning peer0.org1.example.com:7051 2019-01-06 13:32:50.839 UTC [peer] func1 -> INFO 00a Auto-detected peer address: 172.23.0.5:7051 2019-01-06 13:32:50.839 UTC [peer] func1 -> INFO 00b Returning peer0.org1.example.com:7051 2019-01-06 13:32:50.840 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00c Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com 2019-01-06 13:32:50.840 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00d Exit with ccEndpoint: peer0.org1.example.com:7052 2019-01-06 13:32:50.841 UTC [nodeCmd] createChaincodeServer -> WARN 00e peer.chaincodeListenAddress is not set, using peer0.org1.example.com:7052 2019-01-06 13:32:50.842 UTC [sccapi] registerSysCC -> INFO 00f system chaincode lscc(github.com/hyperledger/fabric/core/scc/lscc) registered 2019-01-06 13:32:50.842 UTC [sccapi] registerSysCC -> INFO 010 system chaincode cscc(github.com/hyperledger/fabric/core/scc/cscc) registered 2019-01-06 13:32:50.842 UTC [sccapi] registerSysCC -> INFO 011 system chaincode qscc(github.com/hyperledger/fabric/core/scc/qscc) registered 2019-01-06 13:32:50.842 UTC [sccapi] registerSysCC -> INFO 012 system chaincode +lifecycle(github.com/hyperledger/fabric/core/chaincode/lifecycle) registered fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0] runtime stack: runtime.throw(0x123f0ff, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:374 +0x2f2 goroutine 1 [syscall]: runtime.cgocall(0xe1bf00, 0xc00024eec0, 0xc00000ecd8) /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc00024ee90 sp=0xc00024ee58 pc=0x4039ee plugin._Cfunc_pluginOpen(0xc0002fc000, 0xc00000ecd8, 0x0) _cgo_gotypes.go:77 +0x4e fp=0xc00024eec0 sp=0xc00024ee90 pc=0x923a0e plugin.open.func1(0xc0002fc000, 0xc00000ecd8, 0xc0004f79b0) /opt/go/src/plugin/plugin_dlopen.go:74 +0xa7 fp=0xc00024eef8 sp=0xc00024eec0 pc=0x924c27 plugin.open(0xc00035e9c0, 0x2b, 0xc0004b8f70, 0x0, 0x0) /opt/go/src/plugin/plugin_dlopen.go:74 +0x32a fp=0xc00024f1b0 sp=0xc00024eef8 pc=0x923e4a plugin.Open(0xc00035e9c0, 0x2b, 0x1384100, 0xc0004b8f70, 0x0) /opt/go/src/plugin/plugin.go:32 +0x35 fp=0xc00024f1e8 sp=0xc00024f1b0 pc=0x9236e5 ...... created by github.com/hyperledger/fabric/peer/node.startChaincodeServer /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:745 +0x4b6

Ntienbo (Sun, 06 Jan 2019 13:41:04 GMT):
Anyone installed Endorsement plugin successfully helped

Ntienbo (Sun, 06 Jan 2019 13:41:08 GMT):
thanks

rodolfoleal (Sun, 06 Jan 2019 13:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LyFekh7XRuEyzDpSr) @akshay.sood The tool you are looking for is the is teh cryptogen, as far i know fabric-CA is used to generate the private key, sign the certificates ans place the ca certificate in the msp.

rodolfoleal (Sun, 06 Jan 2019 13:52:46 GMT):
first you generate using the cryptogen then you use the facric CA

akshay.sood (Sun, 06 Jan 2019 13:53:02 GMT):
@rodolfoleal The issue is fixed

rodolfoleal (Sun, 06 Jan 2019 13:53:25 GMT):
;)

jvd (Sun, 06 Jan 2019 14:12:49 GMT):
Has joined the channel.

jvd (Sun, 06 Jan 2019 14:59:50 GMT):
Hi All, Getting this error while making network up for java:

jvd (Sun, 06 Jan 2019 14:59:50 GMT):
Hi All, Getting this error while making network up for java. someone suggested to upgrade Docker shared drive issue, but don't know how fix it. Thanks in Advance. : `OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script .sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed`

jvd (Sun, 06 Jan 2019 14:59:50 GMT):
Hi All, Getting this error while making network up for java: `OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script .sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed`

chance304 (Sun, 06 Jan 2019 15:08:55 GMT):
Has joined the channel.

jeka_gompa (Sun, 06 Jan 2019 18:08:58 GMT):
Hi everybody,

jeka_gompa (Sun, 06 Jan 2019 18:18:48 GMT):
Hi everybody, I'm calling a chaincode from another chaincode and I'm getting this error: Error: INVOKE_CHAINCODE failed: transaction ID: 919fa02470c8709d7e69ba91330eda29ba26efee6604c8c6dd60d44c326ba217: Failed to get policy manager for channel [mainchannel] Have not found the origin of that

jeka_gompa (Sun, 06 Jan 2019 18:18:48 GMT):
Hi everybody, I'm calling a chaincode from another chaincode and I'm getting this error: Error: INVOKE_CHAINCODE failed: transaction ID: 919fa02470c8709d7e69ba91330eda29ba26efee6604c8c6dd60d44c326ba217: Failed to get policy manager for channel [mainchannel] at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:751:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:136:40) at ClientDuplexStream. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:290:46) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at ClientDuplexStream.Readable.push (_stream_readable.js:208:10) at Object.onReceiveMessage (/usr/local/src/node_modules/grpc/src/client_interceptors.js:1292:19) at InterceptingListener.recvMessageWithContext (/usr/local/src/node_modules/grpc/src/client_interceptors.js:607:19) Have not found the origin of that

jeka_gompa (Sun, 06 Jan 2019 19:36:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kLXgXcizjZbKXGBDF) Fyi: The error is coming from the chaincode's container

jeka_gompa (Sun, 06 Jan 2019 20:02:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WYbJtvgBbKz2FXpai) I found the problem. The peer corresponding to the chaincode's container I was getting the logs from didn't have the second chaincode installed .

GuillaumeTong (Mon, 07 Jan 2019 01:16:46 GMT):
Hello, Is it possible to have one peer connect to two different ordering services via two different channels?

GuillaumeTong (Mon, 07 Jan 2019 01:16:46 GMT):
Hello, Is it possible to have one peer connect to two different ordering services via two different channels? If yes, is it recommended?

hhlee (Mon, 07 Jan 2019 02:56:52 GMT):
Has joined the channel.

Ntienbo (Mon, 07 Jan 2019 04:07:35 GMT):
hello

Ntienbo (Mon, 07 Jan 2019 04:07:36 GMT):
lugin was built with a different version of package github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/proto

Ntienbo (Mon, 07 Jan 2019 04:07:45 GMT):
plugin was built with a different version of package github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/proto:worried:

Sarath_Kumar (Mon, 07 Jan 2019 05:45:49 GMT):
Hi everyone, I am following this tutorial to create a custom network with single organisation with multiple peers in multiple machines: https://dev.to/damcosset/your-first-hyperledger-fabric-network-2n67 As suggested in this tutorial, i have created a genesis.block, channel.tx and anchor peer. step 1.Genesis block : “../bin/configtxgen -profile ComposerOrdererGenesis -outputBlock ./channel-artifacts/genesis.block” step 2.channel.tx : “../bin/configtxgen -profile ComposerChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID composerchannel” step 3.anchorPeer : “../bin/configtxgen -profile ComposerChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1Anchor.tx -channelID composerchannel -asOrg Org1MSP” step 4.network up : docker-compose -f docker-compose.yml up -d After the network is up. i have created a channel by issuing the below command step 5.“docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /etc/hyperledger/configtx/composerchannel.tx” join peers to channel step 6.“docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b composerchannel.block”. I am not sure whether i need to create genesis block, channel.tx and anchor peer.

MuhammedHafil (Mon, 07 Jan 2019 07:01:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eBDvneHsGGj37Xkut) ?

shailaja.mahara (Mon, 07 Jan 2019 07:06:26 GMT):
Has anyone here tried deployment with either docker swarm or kubernetes?

shailaja.mahara (Mon, 07 Jan 2019 07:07:57 GMT):
I am unsure about which one would be better with Fabric.

shailaja.mahara (Mon, 07 Jan 2019 07:08:04 GMT):
Any help??

RakeshKumarzs (Mon, 07 Jan 2019 07:15:35 GMT):
Hi , I am trying to set up multinode hypeledger fabric .. but facing below issue .. could you please help here

RakeshKumarzs (Mon, 07 Jan 2019 07:16:12 GMT):

Error.png

Veerc (Mon, 07 Jan 2019 07:31:23 GMT):
Has joined the channel.

pikvik (Mon, 07 Jan 2019 08:25:13 GMT):
Hi guys someone please guide me through issue I am facing . I have deployed composer on Kubernetes using helm chart for composer and the issue is now when I am executing my composer pods its not connecting . Its giving error : roc error code = 2 desc = loci runtime error: exec failed :container linux.go :247 starting container process caused "exec :\bash\. executable file path not found .

pikvik (Mon, 07 Jan 2019 08:25:34 GMT):

Screen Shot 2019-01-06 at 5.05.24 PM.png

Aniket.1 (Mon, 07 Jan 2019 08:45:39 GMT):
running orderer executable says ........ segmentation fault...

Aniket.1 (Mon, 07 Jan 2019 08:45:54 GMT):
has anyone faced it

Aniket.1 (Mon, 07 Jan 2019 08:46:22 GMT):
I am trying to run orderer node from terminal @mastersingh24

UnaiUrkiaga (Mon, 07 Jan 2019 09:07:55 GMT):
Has joined the channel.

UnaiUrkiaga (Mon, 07 Jan 2019 09:09:52 GMT):
Hi, everyone. What does Multi Organization Configuration Policy means? Where is this file? is a policy for sign transaction proposal?

Jayakrishna.V (Mon, 07 Jan 2019 10:11:32 GMT):
@dave.enyeart @liaoruohuai @FLASHJr Hi I am facing an issue while setting up Hyperledger explorer for my Fabric network by following https://github.com/hyperledger/blockchain-explorer Everything went fine but when I run ./start.sh, I am getting an error "Handshake failed with fatal error SSL_ERROR_SSL error:1408F108: SSL routines:SSL3_GET_RECORD:wrong version number [Remote.js: Error: Failed to connect before the deadlineURL:grpcs:ip_address:port" Please help me in fixing this error. Do we have a separate channel for explorer related questions?

Jayakrishna.V (Mon, 07 Jan 2019 10:11:32 GMT):
@liaoruohuai @FLASHJr Hi I am facing an issue while setting up Hyperledger explorer for my Fabric network by following https://github.com/hyperledger/blockchain-explorer Everything went fine but when I run ./start.sh, I am getting an error "Handshake failed with fatal error SSL_ERROR_SSL error:1408F108: SSL routines:SSL3_GET_RECORD:wrong version number [Remote.js: Error: Failed to connect before the deadlineURL:grpcs:ip_address:port" Please help me in fixing this error. Do we have a separate channel for explorer related questions?

mattmaru (Mon, 07 Jan 2019 10:15:59 GMT):
Hi everyone. Do you know how can I build a REST SERVICE to use my chainconde written in go?

Shirikatsu (Mon, 07 Jan 2019 11:07:12 GMT):
Hi all. Some more quick questions: How does the ordering service separate transactions that belong on separate channels? Are transactions from different channels grouped into channel-specific blocks?

Daka (Mon, 07 Jan 2019 11:11:24 GMT):
Yes, channel-specific

Shirikatsu (Mon, 07 Jan 2019 11:11:58 GMT):
@Daka Thanks for the quick response. Does that mean the ordering service must run a separate thread/routine per channel?

Luxii (Mon, 07 Jan 2019 11:12:18 GMT):
Hey, I'm getting following error while invoking transaction.

Luxii (Mon, 07 Jan 2019 11:12:37 GMT):

Clipboard - January 7, 2019 4:42 PM

Luxii (Mon, 07 Jan 2019 11:13:46 GMT):
any help on what could be the possible reason for endorsement policy failure ??

Daka (Mon, 07 Jan 2019 11:14:16 GMT):
@Shirikatsu Do you mean that as docker containers ?

Daka (Mon, 07 Jan 2019 11:19:26 GMT):
@Shirikatsu https://hyperledger-fabric.readthedocs.io/en/release-1.3/arch-deep-dive.html here you have a bit more on how Ordering service works

Aniket.1 (Mon, 07 Jan 2019 11:21:53 GMT):
`Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` Getting this while channel creation, how it can be resolved?

Aniket.1 (Mon, 07 Jan 2019 11:22:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wYDczaGRF7xiXhJTg) Got it resolved by replacing it with another executable

liaoruohuai (Mon, 07 Jan 2019 11:24:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YmDcDyi4LDYCbsTxt) @Jayakrishna.V Have no idea of this. But I'm going to build up the blockchain-explorer project tonight. If I meet the same thing and I could solve it , I'll tell you the detail .

Jayakrishna.V (Mon, 07 Jan 2019 11:32:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wPo27ysmN6FRKnZuT) @liaoruohuai Thanks. I found the channel where I can get help from #hyperledger-explorer

Aniket.1 (Mon, 07 Jan 2019 11:34:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hwtLyK7qPTxw8Sowv) any help would be appreciated.

knagware9 (Mon, 07 Jan 2019 11:37:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nkoXAtQfPRngordrX) @Aniket.1 I am also getting this error..which fabric sample is this?

knagware9 (Mon, 07 Jan 2019 11:38:40 GMT):
Hi ,,I changed block creation configutaion and then run BYFN test run but it failed with below error ..anybody please help ? Is there any bug?

knagware9 (Mon, 07 Jan 2019 11:38:41 GMT):
Querying chaincode on peer0.org1... ===================== Querying on peer0.org1 on channel 'mychannel'... ===================== + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' Attempting to Query peer0.org1 ...3 secs + res=1 + set +x + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' Attempting to Query peer0.org1 ...6 secs + res=1 + set +x + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' Attempting to Query peer0.org1 ...9 secs + res=1 + set +x Attempting to Query peer0.org1 ...12 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=1 + set +x Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: chaincode mycc not found" !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ERROR !!!! Test failed

knagware9 (Mon, 07 Jan 2019 11:40:20 GMT):
this I changed in configtx.yaml file BatchTimeout: 100s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 100

Aniket.1 (Mon, 07 Jan 2019 11:40:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WuNyDvgzCExQxB9Da) @knagware9 I am doing it from Node.js without using BYFN

knagware9 (Mon, 07 Jan 2019 11:43:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z8KJrzKKonyd4697Z) @Aniket.1 I am also getting while using node.js (balance-transfer) and I am getting only when I change block creation configuration configtx.yaml file

SJoshi7 (Mon, 07 Jan 2019 12:08:22 GMT):
Can anyone suggest a good tutorial to build a blockchain application using fabric and nodejs and doesn't involves composer much? Please help

Aniket.1 (Mon, 07 Jan 2019 12:15:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XuJW3Z5vKDtrwTGM2) @knagware9 balance-transfer configtx.yaml is quite crisp. What changes you made in it?

Aniket.1 (Mon, 07 Jan 2019 12:16:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ktxvK5Pcrg53KXy8b) @SJoshi7 I don't think there is any great tutorial available with explanation , but you can refer fabric-samples/balance-transfer

knagware9 (Mon, 07 Jan 2019 12:41:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tEZPQDsHgAW7y7WZp) @Aniket.1 now its working

knagware9 (Mon, 07 Jan 2019 12:43:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a5XjQLvSW7DMhf4HL) as per block creation config like multiple transaction should be in one block but per transaction block is created

Aniket.1 (Mon, 07 Jan 2019 12:44:18 GMT):
@knagware9 what was the issue and how did you resolved it?

knagware9 (Mon, 07 Jan 2019 12:45:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s5jMSWkseKcqiEs7r) @Aniket.1 error while creating channel Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

knagware9 (Mon, 07 Jan 2019 12:49:09 GMT):
@dave.enyeart Please help ,, I came across some scenarios while changing the block creation configuration in configtx.yaml file 1.) It was not taking BatchTimeout in double digit like 60s and channel creation failed ,, 2.) while using balance transfer sample with updated block creation setup like BatchTimeout: 9s ,MaxMessageCount: 50 but while sending transaction its creating a block per transaction ,, there is no affect of block creation config

knagware9 (Mon, 07 Jan 2019 12:49:09 GMT):
Please help ,, I came across some scenarios while changing the block creation configuration in configtx.yaml file 1.) It was not taking BatchTimeout in double digit like 60s and channel creation failed ,, 2.) while using balance transfer sample with updated block creation setup like BatchTimeout: 9s ,MaxMessageCount: 50 but while sending transaction its creating a block per transaction ,, there is no affect of block creation config

Aniket.1 (Mon, 07 Jan 2019 12:54:52 GMT):
@knagware9 I updated configtx.yaml with BatchTimeout: 9s ,MaxMessageCount: 50 , and tried again , its not working

knagware9 (Mon, 07 Jan 2019 12:57:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hZtbzennfwCg9tsXP) @Aniket.1 which error ?

Aniket.1 (Mon, 07 Jan 2019 12:58:18 GMT):
Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied'

knagware9 (Mon, 07 Jan 2019 13:00:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z2eJde2fvQuEDvyFq) @Aniket.1 you are also using balance-transfer sample

Aniket.1 (Mon, 07 Jan 2019 13:00:56 GMT):
yes, using same configtx.yaml, without any changes

sayyamahmed (Mon, 07 Jan 2019 13:02:47 GMT):
hellow everyone i need help related is it possible to develop hyperledger block chain without using docker..

Aniket.1 (Mon, 07 Jan 2019 13:04:46 GMT):
@knagware9 ??

knagware9 (Mon, 07 Jan 2019 13:05:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mJuSu4CYsjSAXqqdz) @Aniket.1 not sure dear,, run without any changes..fresh copy of code ..lets try if it still fails

sayyamahmed (Mon, 07 Jan 2019 13:07:25 GMT):
waiting for response ???????????//

knagware9 (Mon, 07 Jan 2019 13:10:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6xaPtfcogo6GQuFSM) @sayyamahmed I think not possible as chaincode container always run in docker conatiner

sayyamahmed (Mon, 07 Jan 2019 13:12:35 GMT):
@knagware9 its mean when a client want a block from me then i will tell him please install docker first

sayyamahmed (Mon, 07 Jan 2019 13:14:53 GMT):
if there are 10 different organization in my blockchain from different places then all of them first need to install docker and setup docker swarm network ...am i right????

knagware9 (Mon, 07 Jan 2019 13:17:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JZwF4YSCeqztdyPmY) @sayyamahmed docker swarm or Kubernetes

knagware9 (Mon, 07 Jan 2019 13:18:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y8H74HciQLZi9ZFuK) client no need to install docker ,,you care share block via APIs

sayyamahmed (Mon, 07 Jan 2019 13:21:31 GMT):
but if share via api then where is decentralization

Javad (Mon, 07 Jan 2019 13:29:21 GMT):
Failed to reach implicit threshold of 2 sub-policies ..Can some one point me to the right suggestion. I am trying to update the configuration of the channel.

Javad (Mon, 07 Jan 2019 13:29:21 GMT):
Failed to reach implicit threshold of 2 sub-policies ..Can some one point me to the right suggestion. I am trying to update the configuration of the channel. Is there a way to change the sub-policies in the channel to not check for any signatures from other peers

Javad (Mon, 07 Jan 2019 13:29:33 GMT):

Clipboard - January 7, 2019 6:59 PM

SimonLV (Mon, 07 Jan 2019 13:33:09 GMT):
Hi, I'm trying to build and deploy Fabric but it seems to fail at the start when I do "npm install", i've been doing many tutorial and I'm still lost, here is my last command line with errors

SimonLV (Mon, 07 Jan 2019 13:33:20 GMT):

Clipboard - January 7, 2019 2:33 PM

SimonLV (Mon, 07 Jan 2019 13:34:53 GMT):
I honestly think I've installed everything before this, and I'm working on W10 with git, any help would be really appreciate :pray:

mrudav.shukla (Mon, 07 Jan 2019 14:49:01 GMT):
Can we specify Country, State, Location for CA in a docker compose file?

mattmaru (Mon, 07 Jan 2019 15:19:06 GMT):
Hello guys. Can anyone help me ? I would to build a REST service to use my chaincode. How can i do? I wrote my chaincode with GO

adityanalgework (Mon, 07 Jan 2019 16:48:09 GMT):
I am receiving a code 9002 & message CSR Decode failed when trying to enroll a bootstrap user on the fabric-ca-server through the following api Using Postman ``` POST http://localhost:7054/api/v1/enroll HEADER - Authorization Basic YWRtaW46YWRtaW5wdw== Content-Type application/json Body - { "request": "-----BEGIN CERTIFICATE REQUEST-----MIIBQTCB6QIBADBdMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xpbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMQ8wDQYDVQQLEwZGYWJyaWMxDjAMBgNVBAMTBWFkbWluMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEs/sLo/WAXGG2QV80Lgu28v62gmE9B5JoAU/wLfro4uRgSPepkhRInhSnuUFvaid59yNEiz35smysukRhKuDBsqAqMCgGCSqGSIb3DQEJDjEbMBkwFwYDVR0RBBAwDoIMQzAyWE4yS0FKSEQyMAoGCCqGSM49BAMCA0cAMEQCIHv9Qa1LozH+nbgyy8dAVk7mv9FRAkLu6nWTPUdd/mUDAiAG8NN7UH7aO+4rGQFejPBvpn1LwiSGouJaZ4nK387IVg==-----END CERTIFICATE REQUEST-----" } ``` My CA NAME under both server and client config file is admin

adamhardie (Mon, 07 Jan 2019 16:54:55 GMT):
im unable to instantiate a chaincode using my peer - any thoughts on this ? ``` #install the chaincode docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/company/users/Admin@company/msp" cli peer chaincode install -n testnet -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE" 2019-01-07 16:46:23.154 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-01-07 16:46:23.154 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2019-01-07 16:46:23.615 UTC [chaincodeCmd] install -> INFO 005 Installed remotely response: #instantiate the chaincode docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/company/users/Admin@company/msp" cli peer chaincode instantiate -o orderer0.company:7050 -C messagebus -n testnet -l "$LANGUAGE" -v 1.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')" 2019-01-07 16:46:24.210 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-01-07 16:46:24.210 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [messagebus] creator org [Org1MSP] ``` my peer shows as joined the channel ``` docker exec cli peer channel list 2019-01-07 16:54:41.784 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Channels peers has joined: messagebus ```

Shirikatsu (Mon, 07 Jan 2019 17:40:14 GMT):
HI all, random question: Can two different chaincodes modify the same key-value? If so what is the point of the namespace in read/write sets in the transaction data of a block?

felgorm (Mon, 07 Jan 2019 17:46:16 GMT):
Has joined the channel.

prakashnm (Mon, 07 Jan 2019 17:58:45 GMT):
Has joined the channel.

lepar (Mon, 07 Jan 2019 18:06:33 GMT):
@Shirikatsu Yup, they just need to be instantiated on the same channel

rootDistress (Tue, 08 Jan 2019 05:05:22 GMT):
guys, Is there a way to actually remove/ destroy a channel after creation ?

rootDistress (Tue, 08 Jan 2019 05:39:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sMopmDMMEksF93g2d) The answer seems to be No, as of now.

rootDistress (Tue, 08 Jan 2019 05:39:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sMopmDMMEksF93g2d) If anyone interested, The answer seems to be No, as of now.

Aniket.1 (Tue, 08 Jan 2019 06:42:12 GMT):
Hi all, I have generated the genesis block and my peer and orderer are running in different terminals. Now, I want to start the network but without using docker. can anyone help me out?

liaoruohuai (Tue, 08 Jan 2019 06:46:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sMopmDMMEksF93g2d) @rootDistress If your 'remove/destroy' means delete the data records on the ledger, I guess the answer is definitely No

Rachit_gaur (Tue, 08 Jan 2019 07:10:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sMopmDMMEksF93g2d) @rootDistress No that's not possible

Daka (Tue, 08 Jan 2019 08:23:57 GMT):
Is there any grand ledger of everything, that would have the transactions of all channels ? The world state is the db of all assets, if I understand it correctly.

AndresMartinezMelgar.itcl (Tue, 08 Jan 2019 08:52:22 GMT):
how can i know if my orderers with kafka are working? I am checking logs, but i dont see nothing relevant

Aniket.1 (Tue, 08 Jan 2019 08:59:16 GMT):
`error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` Any clue about this error anyone??

prakash04 (Tue, 08 Jan 2019 09:10:27 GMT):
Peer unable to connect to Couchdb instance in fabric setup and getting below error . Can anyone please help me on this . Error in instantiating ledger provider: Unable to connect to CouchDB, check the hostname and port: Get http://localhost:5984/: dial tcp localhost:5984: connect: connection refused

FLASHJr (Tue, 08 Jan 2019 09:37:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D6zTB3wAPJbKkoop7) @Daka I am not sure if there is any. but every channel has its own ledger to keep data private from other channels

FLASHJr (Tue, 08 Jan 2019 09:39:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YmDcDyi4LDYCbsTxt) @Jayakrishna.V I do not have any idea about this. I have not tried this yet.

SJoshi7 (Tue, 08 Jan 2019 09:43:27 GMT):
can we use data inside transaction for querying the historian record?

Daka (Tue, 08 Jan 2019 09:44:15 GMT):
@FLASHJr Thanks, but I want to know for sure if there is a blockchain/ledger for all actions made in the network.

Daka (Tue, 08 Jan 2019 09:47:08 GMT):
@dave.enyeart Hello Dave, is there any grand ledger of all transactions/actions that happened in the network from all channels, where channels >= 2? And are the asset states from private transactions written on the world state db?

Daka (Tue, 08 Jan 2019 09:47:08 GMT):
is there any grand ledger of all transactions/actions that happened in the network from all channels, where channels >= 2? And are the asset states from private transactions written on the world state db?

cgroeger (Tue, 08 Jan 2019 10:18:12 GMT):
Has joined the channel.

NeelKantht (Tue, 08 Jan 2019 10:23:41 GMT):
Hi folks I have gone through the tutorial to add a new org to an existing channel. This requires getting a signed configuration transaction from all the participating peers. Is it possible to change the policy such that to add a new org, only a specified organisation can add it? To make it clearer.. Lets say OrgA, OrgB and OrgC are in the channel. The channel has been created by OrgA. OrgD needs to be added. To perform this addition, I want only OrgA to sign it. Follow up question: Is it possible to define non default values in configtx.yaml itself while configuring the network instead of updating the channel every time? Can I override the default mod_policy in configtx.yaml file itself?

suva (Tue, 08 Jan 2019 10:45:50 GMT):
Hi all can somebody help me how to write query function to query from blockchain ledger using go lang?

FLASHJr (Tue, 08 Jan 2019 10:49:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YpxFXfxG6JcByKWpX) @Daka as per my understanding : private data will be stored separately from the public data, and only on the peers from specified Org will have the **private data in their side database** and for other ORG's who are not involved in private data tx, they will have only the **hash of the key matching the public state but not the actual data**

FLASHJr (Tue, 08 Jan 2019 10:51:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FC9fmn6kvvg5R7zjY) checkout this tutorial : https://hyperledger-fabric.readthedocs.io/en/release-1.3/private_data_tutorial.html

FLASHJr (Tue, 08 Jan 2019 10:51:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FC9fmn6kvvg5R7zjY) checkout this tutorial : https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html

Aniket.1 (Tue, 08 Jan 2019 11:11:19 GMT):
`Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Aniket.1 (Tue, 08 Jan 2019 11:11:48 GMT):
any one have solution of this error which is appearing on channel creation time

FLASHJr (Tue, 08 Jan 2019 11:14:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZbvzDQJvKmPQHu7Ju) @Aniket.1 this error is coming because of Certificates.. try generating new certificates

FLASHJr (Tue, 08 Jan 2019 11:14:44 GMT):
which ex are you trying

Aniket.1 (Tue, 08 Jan 2019 11:18:41 GMT):
balance-transfer

Aniket.1 (Tue, 08 Jan 2019 11:18:41 GMT):
balance-transfer & fabcar

Aniket.1 (Tue, 08 Jan 2019 11:18:59 GMT):
i have generated new certificates many times

pmihaylov (Tue, 08 Jan 2019 11:22:04 GMT):
Has joined the channel.

pmihaylov (Tue, 08 Jan 2019 11:22:09 GMT):
Hello guys, I read that Hyperledger Fabric uses Apache Kafka as their consensus mechanism for broadcasting transactions to peers in a network. However, in the web it says that apache kafka is not byzantine-fault tolerant. For me, that means that malicious orderers in a network will be able to sabotage the HL network. But I can't think of a way for that to happen. At most, they can append invalid transactions to kafka, which would later be marked invalid at the validation stage from the peers. That doesn't seem as such an issue. Can someone explain how this can be a problem or provide a sensible use-case where a malicious orderer can sabotage the network in some way?

cgroeger (Tue, 08 Jan 2019 12:12:49 GMT):
Hi all, i started to create a blockchain network with only one org and it works. Now i added another org and i get this error: 2019-01-08 09:38:52.095 UTC [eventhub_producer] Chat -> ERRO 055 Error handling message: event message validation failed for 172.30.118.229:53618: failed deserializing event creator: expected MSP ID org3, received org1 . from the peer. Ok. But do i change the configuration for two orgs? I hope samebody can help. Thanks

SJoshi7 (Tue, 08 Jan 2019 12:13:36 GMT):
Hi all, how to add a new machine in a existing multi host network?

adamhardie (Tue, 08 Jan 2019 12:53:30 GMT):
in my docker compose i have the following volumes for peer - ./crypto-config/peerOrganizations/company/peers/peer1.company/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/company/users:/etc/hyperledger/msp/users

adamhardie (Tue, 08 Jan 2019 12:54:07 GMT):
when i start, and check these directories, they exist but are empty (the host machine directories contain multiple files/ sub-dir)

adamhardie (Tue, 08 Jan 2019 12:54:20 GMT):
what may cause these to become empty in the container?

danilojodas (Tue, 08 Jan 2019 13:05:20 GMT):
Has joined the channel.

greg2git (Tue, 08 Jan 2019 13:05:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PW7RegcbnSntTS7Ga) @Rachit_gaur if you kill (stop and remove) the containers, and didn't have any backups, your ledger is gone, too, is it not?

danilojodas (Tue, 08 Jan 2019 13:05:33 GMT):
Hello everyone. I have a doubt concerning the access of the end user applications to the peers of a blockchain network. Following the documentation of the Hyperledger Fabric, I noticed that an application is connected to a peer via credentials that is issued to the end users that want to update or query registers on the ledger of the peer. My question is: how many end users could be connected to a peer? Is it one user per peer?

jrosmith (Tue, 08 Jan 2019 13:53:41 GMT):
@danilojodas peers belong to an organization, and many identities can be associated with an organization through the orgs [membership services provider](https://hyperledger-fabric.readthedocs.io/en/release-1.3/msp.html). the node sdk recently began supporting [offline signing](https://fabric-sdk-node.github.io/tutorial-sign-transaction-offline.html), so these identities can manage their own keys.

danilojodas (Tue, 08 Jan 2019 14:00:28 GMT):
@jrosmith thank you so much for your reply. I will check the documentation you provide about the offline signing

FLASHJr (Tue, 08 Jan 2019 14:34:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bbB3xMdufM3XpT8i5) @Aniket.1 try running ./stop.sh from basic-network .. make sure that all no container is in running state. regenerate the certificates and run again.. I have faced the same issue many times.. the only problem is wrong certificates..

Daniel (Tue, 08 Jan 2019 16:13:44 GMT):
Has joined the channel.

nagaraju123 (Tue, 08 Jan 2019 16:21:06 GMT):
Has joined the channel.

GauravBothra (Tue, 08 Jan 2019 17:50:53 GMT):
Has joined the channel.

GauravBothra (Tue, 08 Jan 2019 17:50:58 GMT):
Hello guys, I need some sort of advice from you guys. Can I use hyperledger fabric for pharmaceutical n/w

GauravBothra (Tue, 08 Jan 2019 17:50:58 GMT):
Hello guys, I need some sort of advice from you guys. Can I use hyperledger fabric for pharmaceutical n/w with 5 nodes

udomsak (Tue, 08 Jan 2019 17:53:55 GMT):
Has joined the channel.

nagaraju123 (Tue, 08 Jan 2019 17:54:01 GMT):
can i any one send sample code how to build multiple organization blockchain with explanation

GauravBothra (Tue, 08 Jan 2019 17:55:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B9j9LEGGnbr6y5axe) @nagaraju123 I also wann explaination for multiple org

xuan 21 (Tue, 08 Jan 2019 18:20:10 GMT):
Has joined the channel.

danilojodas (Tue, 08 Jan 2019 18:27:26 GMT):
Hello everyone. I have another doubt. Let's suppose that a user A sign a document and store its digital signature in a blockchain. As a user B, I need to check in the future if the user A really have saved the signature in a blockchain. As you can see, I am talk about multiple signatures in a document. Is it possible a user perform queries of transactions of other users?

rsoeldner (Tue, 08 Jan 2019 19:24:06 GMT):
@danilojodas From what I understood you should check chaincodes, you can write the business logic on your own

greivinlopez (Tue, 08 Jan 2019 21:27:40 GMT):
Hi people, Is there documentation describing how to backup and restore a network? Lets say you have a network up and running then you decide to shut it down and want to restore it in the future but continue at the same block at the previous network (use a pre-existing ledger).

AndresMartinezMelgar.itcl (Tue, 08 Jan 2019 21:32:02 GMT):
how can i know if my orderers with kafka are working? I am checking logs, but i dont see nothing relevant

nagaraju123 (Wed, 09 Jan 2019 05:00:48 GMT):
how to login into Network

nagaraju123 (Wed, 09 Jan 2019 05:01:01 GMT):
how peers will login into the network

nagaraju123 (Wed, 09 Jan 2019 05:45:09 GMT):
After creating Orderers , Peers and Organizations

nagaraju123 (Wed, 09 Jan 2019 05:45:26 GMT):
how we can enter into the hyperledger fabric network

nagaraju123 (Wed, 09 Jan 2019 05:47:53 GMT):
it means how can i start Hyperledger fabric network

knagware9 (Wed, 09 Jan 2019 06:04:57 GMT):
Hi ,,I have one question , How to capture event notification which are notified by channel event hub to specific peer ? Dont see any sample application to check , how is this useful?

pankajcheema (Wed, 09 Jan 2019 06:13:05 GMT):
Is there any drawback in native deployment of fabric in comparison of docker ?

pankajcheema (Wed, 09 Jan 2019 06:13:14 GMT):
@knagware9

knagware9 (Wed, 09 Jan 2019 06:33:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eKvwdth26KuMFYpTS) @pankajcheema I dont think so ,,

sayyamahmed (Wed, 09 Jan 2019 06:53:38 GMT):
hellow everyone

sayyamahmed (Wed, 09 Jan 2019 06:53:38 GMT):
hellow everyone i am facing an issues i want to build fabric BC with node js sdk but when i try to initiate chaincode i can initiate chanincode on only 2 peers out of three...yesterday it initiated on all peers but now after restarting network i face this problem

vafaster (Wed, 09 Jan 2019 07:21:56 GMT):
Has joined the channel.

pankajcheema (Wed, 09 Jan 2019 07:23:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eKvwdth26KuMFYpTS) any other opinion ?

pankajcheema (Wed, 09 Jan 2019 07:28:01 GMT):
@sayyamahmed Why you need to instantiate chaincode on every peer ?

vafaster (Wed, 09 Jan 2019 07:28:46 GMT):
Hi everyone. I'm new on Hyperledger fabric and i'm trying to undertand the relationship between topology network logic and domain name in the file crypto-config.yaml.. i saw some samples and the domain was configurated but in some case por a one organization and 4 peers each peer has a different domain. ( PeerOrgs: - Name: InsuranceOrg Domain: insurance-org | - Name: ShopOrg Domain: shop-org), this is a litle confused for me. My questions are: 1. The domain is only a symbolic Name

vafaster (Wed, 09 Jan 2019 07:28:46 GMT):
Hi everyone. I'm new on Hyperledger fabric and i'm trying to undertand the relationship between topology network logic and domain name in the file crypto-config.yaml.. i saw some samples and the domain was configurated but in some case por a one organization and 4 peers each peer has a different domain. ( PeerOrgs: - Name: InsuranceOrg Domain: insurance-org | - Name: ShopOrg Domain: shop-org), this is a litle confused for me. My questions are: 1. The domain is only a symbolic Name

vafaster (Wed, 09 Jan 2019 07:28:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4A87sjk3wZLE5o4py) @pankajcheema Hi everyone. I'm new on Hyperledger fabric and i'm trying to undertand the relationship between topology network logic and domain name in the file crypto-config.yaml.. i saw some samples and the domain was configurated but in some case por a one organization and 4 peers each peer has a different domain. ( PeerOrgs: - Name: InsuranceOrg Domain: insurance-org | - Name: ShopOrg Domain: shop-org), this is a litle confused for me. My questions are: 1. The domain is only a symbolic Name i my organization has a domain like horizont.com with a landing page etc. can i use that domain for my hyperledger ?

vafaster (Wed, 09 Jan 2019 07:28:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4A87sjk3wZLE5o4py) @pankajcheema Hi everyone. I'm new on Hyperledger fabric and i'm trying to undertand the relationship between topology network logic and domain name in the file crypto-config.yaml.. i saw some samples and the domain was configurated but in some case por a one organization and 4 peers each peer has a different domain. ( PeerOrgs: - Name: InsuranceOrg Domain: insurance-org | - Name: ShopOrg Domain: shop-org), this is a litle confused for me. My questions are: 1. The domain is only a symbolic Name i my organization has a domain like e.g. horizont.com with a landing page etc. can i use that domain for my hyperledger ?

vafaster (Wed, 09 Jan 2019 07:28:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4A87sjk3wZLE5o4py) @pankajcheema Hi everyone. I'm new on Hyperledger fabric and i'm trying to undertand the relationship between topology network logic and domain name in the file crypto-config.yaml.. i saw some samples and the domain was configurated but in some case por a one organization and 4 peers each peer has a different domain. ( PeerOrgs: - Name: InsuranceOrg Domain: insurance-org | - Name: ShopOrg Domain: shop-org), this is a litle confused for me. My questions are: 1. The domain is only a symbolic Name My organization has a domain like e.g. horizont.com with a landing page etc. can i use that domain for my hyperledger ?

pankajcheema (Wed, 09 Jan 2019 07:29:21 GMT):
@vafaster just like a normal dns

pankajcheema (Wed, 09 Jan 2019 07:29:21 GMT):
@vafaster just like a normal domain

vafaster (Wed, 09 Jan 2019 08:00:30 GMT):
another dumb question. pls....my organization has a infrastucture and save records in DataBase like SQL or other. it has operated por years like centralized topology..if we want to use hyperledger fabric technology for storage data in Blockchain (info about mortage, insurance, reports) we need to integrate the current system (Centralized) with a Hyperledger (using Webservice or another way i don't know) or we need to work in parallel two application one for the current system and other for hyperledger blockchain. So, the really question is . What do a organization do if they want to migrate to hyperledger but they have a current system (traditional centralized) . that is my question..

sayyamahmed (Wed, 09 Jan 2019 08:03:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SKLauSDkatEmNTpwn) @pankajcheema its peers of different organizations

pankajcheema (Wed, 09 Jan 2019 08:18:28 GMT):
@vafaster yes

ChamathK (Wed, 09 Jan 2019 08:27:04 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Wed, 09 Jan 2019 08:33:13 GMT):
how can i create a private channel? I only need configure profile from configtx.yaml file?

sstone1 (Wed, 09 Jan 2019 08:48:55 GMT):
@pankajcheema deployment without docker isn't documented is it? you'd probably struggle to get help if/when things go wrong. also, chaincode deployment uses docker to run the chaincode, so you kind of need it. why don't you want to use docker? docker (+ kubernetes) is pretty much the standard for deploying apps/services these days.

FLASHJr (Wed, 09 Jan 2019 09:19:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ndbN7S8xqgKu5KDDp) @sayyamahmed check whther that peer is up an running properly

knagware9 (Wed, 09 Jan 2019 09:26:04 GMT):
Is Block created before sending transactions to Orderer ,, logs seems confusing [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - Successfully sent Proposal and received ProposalResponse: Status - 200, message - "", metadata - "", endorsement signature: 0D c����VL��&�M.i���a������ R��~��Q�b�~ht���Ǒ�c]�sZ� [2019-01-08 15:12:20.565] [DEBUG] invoke-chaincode - invokeEventPromise - setting up event [2019-01-08 15:12:20.567] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2019-01-08 15:12:20.569] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2019-01-08 15:12:51.097] [INFO] update-anchor-peers - The config update has been committed on peer localhost:7051 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - The chaincode invoke chaincode transaction has been committed on peer localhost:7051 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - Transaction 28b714f6a12fd43b2efd9cc85dee7a2c84bf9e0e4421e4a5353d784698c37540 has status of VALID in blocl 7 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - The invoke chaincode transaction was valid. [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - ------->>> R E S P O N S E : ["The invoke chaincode transaction was valid.",{"status":"SUCCESS","info":""}] [2019-01-08 15:12:51.098] [INFO] invoke-chaincode - Successfully sent transaction to the orderer. [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - Event results for event hub :localhost:7051 [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - The invoke chaincode transaction was valid. [2019-01-08 15:12:51.098] [INFO] invoke-chaincode - Successfully invoked the chaincode Org1 to the channel 'mychannel' for transaction ID: 28b714f6a12fd43b2efd9cc85dee7a2c84bf9e0e4421e4a5353d784698c37540 If we see logs block number decided before transaction send out to orderer... knagware9 12:57 PM [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - invoke chaincode proposal was good [2019-01-08 15:12:20.564] [INFO] invoke-chaincode - Successfully sent Proposal and received ProposalResponse: Status - 200, message - "", metadata - "", endorsement signature: 0D c����VL��&�M.i���a������ R��~��Q�b�~ht���Ǒ�c]�sZ� [2019-01-08 15:12:20.565] [DEBUG] invoke-chaincode - invokeEventPromise - setting up event [2019-01-08 15:12:20.567] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2019-01-08 15:12:20.569] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2019-01-08 15:12:51.097] [INFO] update-anchor-peers - The config update has been committed on peer localhost:7051 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - The chaincode invoke chaincode transaction has been committed on peer localhost:7051 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - Transaction 28b714f6a12fd43b2efd9cc85dee7a2c84bf9e0e4421e4a5353d784698c37540 has status of VALID in blocl 7 [2019-01-08 15:12:51.097] [INFO] invoke-chaincode - The invoke chaincode transaction was valid. [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - ------->>> R E S P O N S E : ["The invoke chaincode transaction was valid.",{"status":"SUCCESS","info":""}] [2019-01-08 15:12:51.098] [INFO] invoke-chaincode - Successfully sent transaction to the orderer. [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - Event results for event hub :localhost:7051 [2019-01-08 15:12:51.098] [DEBUG] invoke-chaincode - The invoke chaincode transaction was valid. [2019-01-08 15:12:51.098] [INFO] invoke-chaincode - Successfully invoked the chaincode Org1 to the channel 'mychannel' for transaction ID: 28b714f6a12fd43b2efd9cc85dee7a2c84bf9e0e4421e4a5353d784698c37540

knagware9 (Wed, 09 Jan 2019 09:26:20 GMT):

Screenshot from 2019-01-09 13-02-33.png

poode (Wed, 09 Jan 2019 09:39:32 GMT):
Has joined the channel.

klkumar369 (Wed, 09 Jan 2019 09:40:42 GMT):
Hello Geeks, I have a question.. I believe all the transactions among all the peers in a Channel are transparent. If that is the case, how can I maintain the privacy between the peers in the same Channel ? Thanks for your time!

lucas.phan (Wed, 09 Jan 2019 09:48:32 GMT):
Has joined the channel.

lucas.phan (Wed, 09 Jan 2019 09:51:54 GMT):
Hello, now I'm checking all project create have error like this

lucas.phan (Wed, 09 Jan 2019 09:52:08 GMT):

fgfg.png

lucas.phan (Wed, 09 Jan 2019 09:52:41 GMT):
Error: Could not parse enrollment response [404 page not found

lucas.phan (Wed, 09 Jan 2019 09:55:20 GMT):
I checked docker container in project error have:

lucas.phan (Wed, 09 Jan 2019 09:55:20 GMT):
I checked docker container in project error , may be not enough image container

lucas.phan (Wed, 09 Jan 2019 09:55:27 GMT):

Screenshot from 2019-01-09 16-54-57.png

SJoshi7 (Wed, 09 Jan 2019 10:01:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LAwoMgbJE6MEaZpqK) @klkumar369 In fabric we can create private channels as well.

Daka (Wed, 09 Jan 2019 10:02:25 GMT):
@SJoshi7 Actually in the channel you can have private transactions according to https://hyperledger-fabric.readthedocs.io/en/release-1.3/private-data/private-data.html

deenario (Wed, 09 Jan 2019 10:10:45 GMT):
How can i start CA with byfn.

twoneks (Wed, 09 Jan 2019 10:38:37 GMT):
I have a huge doubt. So far I developed several fabric network in my localhost to understand how fabric works. One thing I notice is that in each of them my blockchain is producing ALWAYS one transaction per block even if I tried different configuration at the section Orderer of my `configtx.yaml`. I cant really figured out why. When I increase the batchtimeout for example I can see the effect of this action because a block is produced every x second (more or less, It can be a second of delay despite the value I set). I would expect the transaction to be grouped in one block more so the timeout is high as 10s. Thanks for your time.

lepar (Wed, 09 Jan 2019 10:46:16 GMT):
@twoneks are you sending more than one transaction during that 10s timeout?

twoneks (Wed, 09 Jan 2019 10:49:41 GMT):
@lepar I'm sending transaction through the go sdk in a for statement ``` for i := 0; i < 20; i++ { _, err := client.Insert(obj) if err != nil { t.Fatal(err.Error()) } } ``` where `client.Insert(obj)` send the transaction... I would say yes...

twoneks (Wed, 09 Jan 2019 10:49:41 GMT):
@lepar I'm sending transaction through the go sdk in a for statement ```golang for i := 0; i < 20; i++ { _, err := client.Insert(obj) if err != nil { t.Fatal(err.Error()) } } ``` where `client.Insert(obj)` send the transaction... I would say yes...

lepar (Wed, 09 Jan 2019 10:51:26 GMT):
Hmm... it should all be in one block

twoneks (Wed, 09 Jan 2019 10:54:52 GMT):
@lepar I thought the same. I also thought that this was related with the fact of using solo and not kafka so I tried with kafka too and same behaviour.. My configtx.yaml now looks like ``` Orderer: &OrdererDefaults OrdererType: kafka Addresses: - orderer0.xxx.com:7050 - orderer1.xxx.com:7050 BatchTimeout: 10s BatchSize: MaxMessageCount: 100 AbsoluteMaxBytes: 102760448 PreferredMaxBytes: 5242880 Kafka: Brokers: - kafka0.example.com:9092 - kafka1.example.com:9092 - kafka2.example.com:9092 - kafka3.example.com:9092 Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" BlockValidation: Type: ImplicitMeta Rule: "ANY Writers" ```

danilojodas (Wed, 09 Jan 2019 11:07:20 GMT):
@rsoeldner thank you for your reply. I will check it

Aniket.1 (Wed, 09 Jan 2019 11:08:57 GMT):
I have stuck to this error : `Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Aniket.1 (Wed, 09 Jan 2019 11:09:26 GMT):
I am running orderer and CA out of docker and trying to create channel using node.js fabric-client

Aniket.1 (Wed, 09 Jan 2019 11:10:07 GMT):
in configtx.yaml, i have also changes MAJORITY to ANY in policies

Aniket.1 (Wed, 09 Jan 2019 11:11:02 GMT):
On orderer, it says : `2019-01-09 16:16:54.619 IST [msp] DeserializeIdentity -> INFO 007 Obtaining identity 2019-01-09 16:16:54.619 IST [orderer/common/broadcast] Handle -> WARN 008 [channel: firstchannel] Rejecting broadcast of config message from 127.0.0.1:44198 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied `

Aniket.1 (Wed, 09 Jan 2019 11:11:02 GMT):
On orderer, it says : `2019-01-09 16:16:54.619 IST [msp] DeserializeIdentity -> INFO 007 Obtaining identity 2019-01-09 16:16:54.619 IST [orderer/common/broadcast] Handle -> WARN 008 [channel: firstchannel] Rejecting broadcast of config message from 127.0.0.1:44198 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Aniket.1 (Wed, 09 Jan 2019 11:11:02 GMT):
On orderer, it says : `2019-01-09 16:16:54.619 IST [msp] DeserializeIdentity -> INFO 007 Obtaining identity` `2019-01-09 16:16:54.619 IST [orderer/common/broadcast] Handle -> WARN 008 [channel: firstchannel] Rejecting broadcast of config message from 127.0.0.1:44198 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Aniket.1 (Wed, 09 Jan 2019 11:11:26 GMT):
with which i assume that my certificates are fine

danilojodas (Wed, 09 Jan 2019 11:35:42 GMT):
One more question: Is it possible to distribute the certificate's public key of one user to others? If yes, I think it would be possible to use that information to verify if a user really made a transaction on the blockchain. I saw a function called getCreator() that gets the identity of a user that perform a transaction

AmanGhotra (Wed, 09 Jan 2019 11:56:01 GMT):
Has joined the channel.

WouterVanHecke (Wed, 09 Jan 2019 12:25:36 GMT):
Composite key question. Trying to create a composite key as follows: v1~ObjectId v2~ObjectId v3~ObjectId With 3 times the same ObjectId. Creating this works I guess, the normal object is saved on the ledger, together with a seperate object with the composite key and an empty buffer. I want to query on the id and get all the versions, but when i tr to do this, I get an empty iterator: ``` export const queryWithCompositeKey = async (stub, id) => { const iterator = await stub.getStateByPartialCompositeKey(`version~id`, [id]); return compositeKeyIterator(stub, iterator); }; ``` Can someone show me what exactly I'm doing wrong and how to fix this?

mrudav.shukla (Wed, 09 Jan 2019 12:28:45 GMT):
Hi, Can anyone please guide me here: https://stackoverflow.com/questions/54105891/custom-detailscountry-state-locality-for-msp-in-organisation-msp-of-hyperled

Aniket.1 (Wed, 09 Jan 2019 12:38:16 GMT):
facing this : `[Orderer.js]: sendBroadcast - on error: "Error: 2 UNKNOWN: Stream removed`

Aniket.1 (Wed, 09 Jan 2019 12:38:16 GMT):
facing this while channel creation: `[Orderer.js]: sendBroadcast - on error: "Error: 2 UNKNOWN: Stream removed`

Aniket.1 (Wed, 09 Jan 2019 12:38:33 GMT):
when enables tls in orderer

satish67 (Wed, 09 Jan 2019 13:07:48 GMT):
Hello all, i have a basic question, can there be multiple chaincodes inside one channel in fabric, thanks in advance

knagware9 (Wed, 09 Jan 2019 13:11:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=epP2zamJm7hc2GWjm) @satish67 yes ...there can be multiple chaincode in one channel

satish67 (Wed, 09 Jan 2019 13:13:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=skSgqLA7KqgZNraKj) @knagware9 thanks, so the ledger will be same for the channel or for each chaincode there will be different ledger??

sstone1 (Wed, 09 Jan 2019 13:14:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=spo8fBDJcPnALsihA) @twoneks i'm not familiar with the Go SDK, but if `client.Insert` waits for the transaction to be committed into a block, then your Go application will only put one transaction into one block. you need to drive multiple concurrent transactions for a block to fill up with transactions.

knagware9 (Wed, 09 Jan 2019 13:15:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JejN6t2ELeyX3uMQB) @satish67 yes...there will be only one ledger in channel

Aniket.1 (Wed, 09 Jan 2019 13:15:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tiajn9XhkbjQhX5Cx) @knagware9

millengustavo (Wed, 09 Jan 2019 13:17:04 GMT):
Has joined the channel.

knagware9 (Wed, 09 Jan 2019 13:18:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YoXJZqKosYXhf7X5X) @Aniket.1 did you try with fresh setup..I was facing same issue but resolved ..its related to some certificate only

millengustavo (Wed, 09 Jan 2019 13:18:46 GMT):
Hi guys, I'm moving my smart contracts and model from Composer to Fabric, I would like to know what is the fastest/lightest dev environment to keep iterating (testing each function of the chaincode) with Fabric?

knagware9 (Wed, 09 Jan 2019 13:20:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TuPHN4ghubYdQwAZN) @millengustavo what do you mean by fastest/lightest dev environment ,, you need to write new chaincode whether in java script or Go or Java ,,,you cant resuse the composer code

millengustavo (Wed, 09 Jan 2019 13:23:10 GMT):
I know, I want guidelines to what is the best way to spin up the blockchain with some arbitrary number of orgs, install my chaincode (that I will be developing) to test each modification and iterate on that. In composer I used both the playground and testing by CLI with embedded business network

Aniket.1 (Wed, 09 Jan 2019 13:27:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L8miGGNJuJcHFwM9b) @knagware9 I have tried a fresh setup of one orderer and one org. I am trying to create channel using nodejs. Initially orderer was saying unknow identity too but now that line is not appearing

Aniket.1 (Wed, 09 Jan 2019 13:28:21 GMT):
I have setup a CA, enrolled its admin and signing the configuration transaction by admin user

Aniket.1 (Wed, 09 Jan 2019 13:29:45 GMT):
in configtx.yaml, i have also changes MAJORITY to ANY in policies @knagware9

raviranjan14 (Wed, 09 Jan 2019 13:32:41 GMT):
Has joined the channel.

zwartesokken (Wed, 09 Jan 2019 13:47:04 GMT):
Hi all, Can someone explain how private collections are linked to the actual last state. In couchDB you have the `p` and `h` database but what links them actually together. Not really clear from the documentation.

millengustavo (Wed, 09 Jan 2019 13:52:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5esW5aZgJ4tayCG8Z) After reading the docs I assume the way to go is to keep ./byfn down and up again and installing the new chaincode every time I want to test something, am I in the right path or is there a simpler way to test my chaincode?

twoneks (Wed, 09 Jan 2019 14:00:00 GMT):
@@sstone1 Make sense. I'll try. Thanks

twoneks (Wed, 09 Jan 2019 14:00:00 GMT):
@sstone1 Make sense. I'll try. Thanks

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeart @sstone1 Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeartt@sstone1 Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeartt @sstone1 Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeartt Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeart @sstone1 Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @dave.enyeart Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @sstone1 Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

FLASHJr (Wed, 09 Jan 2019 14:33:12 GMT):
Hi, I have a query regarding *user level access/permissions* in Fabric. I have set up a Fabric network consisting of 2 organisations - OrgA and OrgB. Now I want to create user for both org with some roles i.e (Admin,Client,User) and according to the role I want to provide the *(read,write)access* to the chaincode functions. So the only users with *Admin* access would be able to *invoke the chaincode* and user with the *Client or Users* access should have *read access* to chaincode functions. So 1. How can I create the user with such access using Node.Js SDK and 2. Where should I mention these access control logic? (I dont want to use Composer for this) if anyone has the document or the example which demonstrates the same then please share it with me. @sstone1 @dave.enyeart Sorry to tag you, I'm trying to find out the solution for this but have not got the proper answer.

paul-sp (Wed, 09 Jan 2019 14:35:43 GMT):
Has joined the channel.

twoneks (Wed, 09 Jan 2019 14:54:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NEAygJEZq9oxvhy6f) @sstone1 @sstone1 You were damn right sending transaction through the cli in grouping them into the same block following the rules specified in the configtx.yaml Does anybody know wich is the way to invoke a chaincode async usong the go sdk?

GauravBothra (Wed, 09 Jan 2019 15:33:58 GMT):
anyone online

pauljithink (Wed, 09 Jan 2019 15:54:50 GMT):
Hi all, If I have 2 peers installed in 2 different machines, can clients use the node sdk in each of the machines to talk to its respective peer? Or does the node sdk app needs to be be centralized?

changsuky (Wed, 09 Jan 2019 15:59:41 GMT):
Has joined the channel.

vikimeng (Wed, 09 Jan 2019 17:14:24 GMT):
@pauljithink It's better use centralized sdk app because the sdk app use config file to use different orgs and different peers. If you use each peer install one sdk app, it's nightmare to control the code when you have many orgs and peers.

pauljithink (Wed, 09 Jan 2019 17:18:35 GMT):
Thanks @vikimeng

pauljithink (Wed, 09 Jan 2019 17:22:02 GMT):
@vikimeng so if I want to construct a fully decentralised app where in which I want to use the different peers for submitting transactions (like in ethereum), what would be the recommended way?

vikimeng (Wed, 09 Jan 2019 17:29:13 GMT):
@pauljithink When invoke/query, you can specify which peer to make this action. If no peer pass to sdk, default use all peers in config

pauljithink (Wed, 09 Jan 2019 17:31:40 GMT):
@vikimeng Ok, if the endorsement policy requires 2 peers, then we need to send this transaction to 2 peers, right?

dave.enyeart (Wed, 09 Jan 2019 19:09:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LAwoMgbJE6MEaZpqK) @klkumar369 Use the private data feature: https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html

dave.enyeart (Wed, 09 Jan 2019 19:20:40 GMT):
@FLASHJr you can embed access control logic in your chaincode, see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#chaincode-access-control

liaoruohuai (Wed, 09 Jan 2019 21:15:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Az3xCrTH6PsNRhFqB) @twoneks It's about the Go concurrent Programming, I hope to receive your good news

magar36 (Wed, 09 Jan 2019 22:31:45 GMT):
Has joined the channel.

magar36 (Wed, 09 Jan 2019 22:33:33 GMT):
Hello, can someone please tell as to what has changed in node sdk from v1.1.0 to 1.3.0?

greg2git (Thu, 10 Jan 2019 02:36:00 GMT):
i have set up basic authentication for couchDB, but is there a way to have encryption or SSL through a browser (Fauxton)?

rootDistress (Thu, 10 Jan 2019 04:07:57 GMT):
guys can I control the read-write access to orgs/peers joining a channel?

ksheer (Thu, 10 Jan 2019 04:15:04 GMT):
Has joined the channel.

AndyWoo (Thu, 10 Jan 2019 04:31:35 GMT):
Has joined the channel.

harun (Thu, 10 Jan 2019 06:32:24 GMT):
Has joined the channel.

arvindkumar6568 (Thu, 10 Jan 2019 07:28:07 GMT):
hello sir i following https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-single-org and i changed in connection.json i used 2 peer but when i run installed command then i get error Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

vikpande (Thu, 10 Jan 2019 07:43:41 GMT):
@rootDistress , you can do so with the "Membership Service Provider (MSP)" feature indeed

vikpande (Thu, 10 Jan 2019 07:48:03 GMT):
this link will explain the details to you - https://hyperledger-fabric.readthedocs.io/en/release-1.3/membership/membership.html

Lug 5 (Thu, 10 Jan 2019 08:23:55 GMT):
Has joined the channel.

lcj (Thu, 10 Jan 2019 08:47:49 GMT):
Hello everyone, ask a question, peer channel signconfigtx can get the signature of the peer, then what method should I use to get the signature of the orderer?

twoneks (Thu, 10 Jan 2019 08:48:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=phyEhyi2rNokRo4SX) @liaoruohuai At the end I gave a try sending transactions through the cli and as expected more transactions are grouped in the same block. So yes I realize was the go sdk channel client to stop the execution until the block was produced. I tried in my app to execute the chaincode invocation inside go routine and I was able to achieve the same goal. Is a good practice to do this wit goroutines?

Miguel-A (Thu, 10 Jan 2019 09:04:14 GMT):
Has joined the channel.

liaoruohuai (Thu, 10 Jan 2019 09:18:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HE8FYjEAndLPpijoe) @twoneks definitely, go routine concurrently is just the right way, good to hear that!:grinning:

Daka (Thu, 10 Jan 2019 09:22:25 GMT):
Hello all, how is this example possible ? It's taken from here https://hyperledger-fabric.readthedocs.io/en/release-1.3/gossip.html : For example, let’s assume we have three organizations—A, B, C— in the channel and a single anchor peer—peer0.orgC— defined for organization C. When peer1.orgA (from organization A) contacts peer0.orgC, it will tell it about peer0.orgA. And when at a later time peer1.orgB contacts peer0.orgC, the latter would tell the former about peer0.orgA. From that point forward, organizations A and B would start exchanging membership information directly without any assistance from peer0.orgC. Shouldn't there be anchor peers in org A and B as well in order to communicate with C in the channel ?

vikimeng (Thu, 10 Jan 2019 09:30:34 GMT):
@pauljithink Yes.

nagaraju123 (Thu, 10 Jan 2019 09:53:25 GMT):
how to authenticate peers in the network

nagaraju123 (Thu, 10 Jan 2019 09:53:58 GMT):
should i provide any login like Username and Password to enter into that networkk

AvinashVazratkar (Thu, 10 Jan 2019 10:07:01 GMT):
Hi All, I have writers, readers and admin policies as follows. *Policies:* Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" I have created a user whose role is client and client user has read, write access. Client user able to add and retrieve data into blockchain. But I have created another user whose role is peer who has only read access. When peer user tries to fetch data from blockchain, I received below error message `error from query = { Error: 2 UNKNOWN: Failed evaluating policy on signed data during check policy on channel [mychannel] with policy [/Channel/Application/Writers]: [Failed to reach implicit threshold of 1 sub-policies, required 1 remaining]` Can anyone help me on this?

nagaraju123 (Thu, 10 Jan 2019 10:09:21 GMT):
how to authenticate peers in the network should i provide any login like Username and Password to enter into that networkk

Tommy109 (Thu, 10 Jan 2019 10:47:34 GMT):
looking for a full stack developer with fabric experience. dm me

Aniket.1 (Thu, 10 Jan 2019 10:51:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2gzBfSs5M87zCRsyD) @AvinashVazratkar facing same error since 3 days while channel creation, nothing seems wrong but it is not working

Aniket.1 (Thu, 10 Jan 2019 10:58:53 GMT):
`{ status: 'FORBIDDEN', info: 'Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied' }` Getting this as a response of channel creation where config transaction is signed by admin

Aniket.1 (Thu, 10 Jan 2019 10:58:53 GMT):
```{ status: 'FORBIDDEN', info: 'Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied' }``` Getting this as a response of channel creation where config transaction is signed by admin

Aniket.1 (Thu, 10 Jan 2019 11:02:28 GMT):
getting this by following balance-transfer project of fabric-samples

millengustavo (Thu, 10 Jan 2019 11:08:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eNqmfrpxo9ubsGjNz) @Aniket.1 probably some residual installation or you may have forgotten some step of setting up orderer/peer. I suggest you clean up your docker dev environment and try it again from scratch

Aniket.1 (Thu, 10 Jan 2019 11:14:31 GMT):
@millengustavo I am not using docker. Everything is running locally on my machine

millengustavo (Thu, 10 Jan 2019 11:19:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Nu8ecZCrE5xQC8evy) @Aniket.1 This kind of error mostly happens if you submit the create channel transaction under an identity different than the admin's identity. You may try setting the context to admin before submitting

Aniket.1 (Thu, 10 Jan 2019 11:21:00 GMT):
Yes i am setting user context to admin before requesting channel creation

Aniket.1 (Thu, 10 Jan 2019 11:22:55 GMT):
I am assuming Admin is the one whose username we provide for bootstrapping CA and does not need registration before enrollment @millengustavo

millengustavo (Thu, 10 Jan 2019 11:26:34 GMT):
I'm not familiar with this example in particular, but when something fails mid-tutorial I would start from scratch and pay close attention to all the steps

Aniket.1 (Thu, 10 Jan 2019 11:31:33 GMT):
@millengustavo you are right. I tried many things but got stuck to this error ultimately. Can you help me to know that how can we ensure that admin of the organization is signing the tx.

Aniket.1 (Thu, 10 Jan 2019 11:34:03 GMT):
as when i check usercontext with admin username, it doesn't show any roles in certificates, neither gives any clue that this is admin @millengustavo

millengustavo (Thu, 10 Jan 2019 11:34:40 GMT):
can you link me the tutorial?

Aniket.1 (Thu, 10 Jan 2019 11:35:23 GMT):
https://fabric-sdk-node.github.io/tutorial-channel-create.html

Aniket.1 (Thu, 10 Jan 2019 11:35:58 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/balance-transfer/app/create-channel.js

RomanGromov (Thu, 10 Jan 2019 11:37:33 GMT):
Has joined the channel.

Aniket.1 (Thu, 10 Jan 2019 11:38:12 GMT):
i tried both ways to initiate client , using network config and just using new Client as : https://fabric-sdk-node.github.io/Client.html#Client__anchor

millengustavo (Thu, 10 Jan 2019 11:43:10 GMT):
I haven't played with node sdk, but my guess is that something along the lines of creating the participants and roles is not being done correctly. It is hard to debug these problems without a complete knowledge of the current environment and participants, you need to know under which identity and org you are calling the functions and if the other participants are up as well

Aniket.1 (Thu, 10 Jan 2019 11:52:36 GMT):
Learning Hyperledger Fabric to code something is really quite ridiculous

Aniket.1 (Thu, 10 Jan 2019 11:53:01 GMT):
no one provides support to resolve the errors

Aniket.1 (Thu, 10 Jan 2019 11:53:15 GMT):
and not well explained examples are there

Aniket.1 (Thu, 10 Jan 2019 11:53:55 GMT):
everything moves around docker

millengustavo (Thu, 10 Jan 2019 11:58:24 GMT):
Hyperledger Fabric is not an app that you run under any OS, you are learning protocol level stuff to support business in a secure manner. Docker provide wrapped setups to make the process easier, just like you can use services and protocols like "http" seamless today. Early days for blockchain, but hard work pays off

Aniket.1 (Thu, 10 Jan 2019 12:01:21 GMT):
I agree. But there is Node SDK and there is possibility to setup is locally to understand everything like config files, the interactions but when you stuck, no support is there to get you resolved. I have been stuck to one error since 4 days by using their own avaialable tutorial, commands and other stuff, that feels a bit bad.

Aniket.1 (Thu, 10 Jan 2019 12:01:21 GMT):
I agree. But there is Node SDK and there is possibility to setup it locally to understand everything like config files, the interactions but when you stuck, no support is there to get you resolved. I have been stuck to one error since 4 days by using their own avaialable tutorial, commands and other stuff, that feels a bit bad.

FLASHJr (Thu, 10 Jan 2019 12:01:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=APvNqsq8wjXnZcNWE) @Aniket.1 Yes. I have a same experience. I spent a month just to setup Fabric network with Multiple Org on differnet machines

Aniket.1 (Thu, 10 Jan 2019 12:02:20 GMT):
I have also seen many questions on stackoverflow unanswered ever.

FLASHJr (Thu, 10 Jan 2019 12:02:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZTAYgdaNCKx5T9M9D) @Aniket.1 But docker setup is easy if you understand yaml files contents

Aniket.1 (Thu, 10 Jan 2019 12:02:54 GMT):
Yes docker things goes seemlessly

Aniket.1 (Thu, 10 Jan 2019 12:02:54 GMT):
Yes docker things go seamlessly

millengustavo (Thu, 10 Jan 2019 12:04:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=txHDPJojuEmGiFtYD) @Aniket.1 I'm currently at work helping you with I can. I believe you can pay for support from IBM and others. The tech is free and open source, I'm more than grateful for the others that came before and already coded that amazing stuff

Aniket.1 (Thu, 10 Jan 2019 12:07:06 GMT):
@millengustavo I respect you and your efforts. If i was unclear, i am not saying anything to you. I was giving just a general opinion with my one month of time to learn fabric in modular way.

Aniket.1 (Thu, 10 Jan 2019 12:07:56 GMT):
I praise what Hyperledger provides, and i want to develop some great things using it.

FLASHJr (Thu, 10 Jan 2019 12:12:17 GMT):
I dont understand this statement **These applications are also compatible with Service Discovery and Private data, though we won’t explicitly show how to use our apps to leverage those features.** from here https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html Even though Fabric is open source still why most of the concepts are not documented and explained in detail. No proper examples are given.

FLASHJr (Thu, 10 Jan 2019 12:12:17 GMT):
@dave.enyeart I dont understand this statement **These applications are also compatible with Service Discovery and Private data, though we won’t explicitly show how to use our apps to leverage those features.** from here https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html Even though Fabric is open source still why most of the concepts are not documented and explained in detail. No proper examples are given.

millengustavo (Thu, 10 Jan 2019 12:13:07 GMT):
A thing that always helps is learning the basics before applying higher level tutorials. We tend to try and develop stuff quickly, but we need to have the fundamentals to go beyond that. I suggest this read (long but worth it): https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html#what-is-a-blockchain-network

Elulup (Thu, 10 Jan 2019 12:20:54 GMT):
Hi all, I've set up a multiorg network and instantiated a chaincode on the channel. However I can't find anywhere how can I deal with invoke permissions (how do I control which participant can invoke which transaction, kind of ACL), can anyone help me about this?

FLASHJr (Thu, 10 Jan 2019 12:27:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4gwaWvBDZdsxhtX8d) @Elulup I had asked same query, and here is the response : you can embed access control logic in your chaincode, see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#chaincode-access-control

Aniket.1 (Thu, 10 Jan 2019 12:28:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eRbqoXJ2XNkgfpWck) @millengustavo Gone through it 3 times and also understood it. :)

Elulup (Thu, 10 Jan 2019 12:49:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GH2sDJ3PCJ4CgHuXQ) @FLASHJr Thanks, if I understand I can use GetCreator() for node chaincode and the CID lib for go ?

Aniket.1 (Thu, 10 Jan 2019 13:14:34 GMT):
Then when the call is made to get a transaction id object, the fabric client will check to see if an admin has been assigned to the fabric client and use that to generate the transaction id. The transaction id returned will be tagged that it was generated with the assigned administrative identity. @millengustavo @FLASHJr . `client.newTransactionID(true)` this works fine in my code which means client has administrator identity for signing. Still orderer throwing the error

Aniket.1 (Thu, 10 Jan 2019 13:14:34 GMT):
Then when the call is made to get a transaction id object, the fabric client will check to see if an admin has been assigned to the fabric client and use that to generate the transaction id. The transaction id returned will be tagged that it was generated with the assigned administrative identity. @millengustavo @FLASHJr . `client.newTransactionID(true)` this works fine in my code which means client has administrator identity for signing. Still orderer throwing the error . `Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Aniket.1 (Thu, 10 Jan 2019 13:14:34 GMT):
Then when the call is made to get a transaction id object, the fabric client will check to see if an admin has been assigned to the fabric client and use that to generate the transaction id. The transaction id returned will be tagged that it was generated with the assigned administrative identity. @millengustavo @FLASHJr . `client.newTransactionID(true)` this works fine in my code which means client has administrator identity for signing. Still orderer throwing the error . `Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` @mastersingh24

millengustavo (Thu, 10 Jan 2019 13:22:18 GMT):
is there any way to "grep" the fabric processes to see if the peer, orderer and fabric-ca is running on your setup?

Aniket.1 (Thu, 10 Jan 2019 13:30:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fmd6LKMqsR8dhMAvu) @millengustavo They are running on different terminals, i can see them running

Aniket.1 (Thu, 10 Jan 2019 13:30:36 GMT):
when i enroll any user , i get logs on CA. For channel creation, i am getting logs in orderer

Aniket.1 (Thu, 10 Jan 2019 13:40:38 GMT):
while creating channel from terminal, i get same error with one more line : `rpc error: code = Canceled desc = context canceled` @millengustavo

Rajatsharma (Thu, 10 Jan 2019 15:20:58 GMT):
Could anyone help me, I'm trying to add peer and organization in a running fabric network. I was facing a bit of issues could anyone suggest me any resource to refer other than `https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#setup-the-environment`

liaoruohuai (Thu, 10 Jan 2019 15:46:47 GMT):
Hello, I'm reading the context about Read/Write Set Semantic. According to the context of https://hyperledger-fabric.readthedocs.io/en/latest/readwrite.html, When I launch a group of transactions in once execute of a chaincode, If I read a key in a tx after I write a new value of it in a tx before, the tx contains this read operation will be considered as whole invaild. Am I right ?

mastersingh24 (Thu, 10 Jan 2019 17:35:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WQSpc852vzWCcFsgx) @liaoruohuai correct ... if any keys read within your transaction have been updated between the time you requested endorsement and when the peers validate the transaction, the transaction will fail validation and be marked as invalid

QwertyJack (Thu, 10 Jan 2019 18:01:31 GMT):
hi there. Im compiling fabric but when I run `bash scripts/compile_protos.sh` the pb.go file changes.

QwertyJack (Thu, 10 Jan 2019 18:01:56 GMT):
Im using protoc 3.0.0 Which version does release 1.3.0 use ?

aashishshrestah (Thu, 10 Jan 2019 18:40:11 GMT):
Has joined the channel.

mastersingh24 (Thu, 10 Jan 2019 19:54:00 GMT):
@QwertyJack - are you actually changing the or adding protos? If not, no need to actually (re)compile the protos. If you are, you should run `make protos` rather than running the script directly. If you must run the script, 1.3.0 uses `3.1.0` ( https://github.com/hyperledger/fabric-baseimage/blob/v0.4.13/scripts/common/setup.sh#L90 )

vinken (Thu, 10 Jan 2019 20:10:52 GMT):
Has joined the channel.

nickgaski (Thu, 10 Jan 2019 20:17:13 GMT):
hey folks. I was going through the private collections tutorial and got stuck. Followed the steps to base64 encode the private data going to the transient field. But on the invoke for `initMarble` it throws this: ```root@350d2268b442:/opt/gopath/src/github.com/hyperledger/fabric/peer# export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64) root@350d2268b442:/opt/gopath/src/github.com/hyperledger/fabric/peer# echo $MARBLE eyJuYW1lIjoibWFyYmxlMSIsImNvbG9yIjoiYmx1ZSIsInNpemUiOjM1LCJvd25lciI6InRvbSIs InByaWNlIjo5OX0= root@350d2268b442:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode invoke -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n marblesp -c '{"Args":["initMarble"]}' --transient "{\"marble\":\"$MARBLE\"}" Error: error parsing transient string: invalid character '\n' in string literal - proposal response: ```

nickgaski (Thu, 10 Jan 2019 20:17:51 GMT):
anyone bumped into that before?

dan13 (Thu, 10 Jan 2019 21:05:47 GMT):
Has joined the channel.

udomsak (Thu, 10 Jan 2019 22:16:33 GMT):
which version is 'stable ' enough run on production 1.3.0 still fire this bug: https://jira.hyperledger.org/browse/FAB-8591 ( solo Environment.)

nRyDevOps (Fri, 11 Jan 2019 01:04:42 GMT):
Hello

nRyDevOps (Fri, 11 Jan 2019 01:04:53 GMT):
I am really hoping that someone might be able to help me!

nRyDevOps (Fri, 11 Jan 2019 01:05:18 GMT):
I have been working all week to setup a demo to show for work of a very simple HLF Private Data Collection example...

nRyDevOps (Fri, 11 Jan 2019 01:05:42 GMT):
however, I am currently getting the following error when I try to run "go build" to create my chaincode binary.

nRyDevOps (Fri, 11 Jan 2019 01:05:44 GMT):
public.go:14:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /snap/go/3095/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/nrydevops/dev/blockchain/hfPrivateData/fabric-samples/bin/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) public.go:15:2: cannot find package "github.com/hyperledger/fabric/protos/peer" in any of: /snap/go/3095/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT) /home/nrydevops/dev/blockchain/hfPrivateData/fabric-samples/bin/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)

nRyDevOps (Fri, 11 Jan 2019 01:05:46 GMT):
.....

nRyDevOps (Fri, 11 Jan 2019 01:06:30 GMT):
I know that my environment is working as I am able to run the ./byfn.sh up and everything works as expected.

nRyDevOps (Fri, 11 Jan 2019 01:10:47 GMT):
okay nevermind panic averted lol

nRyDevOps (Fri, 11 Jan 2019 01:10:48 GMT):
export GOPATH=/opt/gopath

nRyDevOps (Fri, 11 Jan 2019 01:10:52 GMT):
fixed the issue ;-)

cm_liu (Fri, 11 Jan 2019 01:40:27 GMT):
Has joined the channel.

QwertyJack (Fri, 11 Jan 2019 01:56:35 GMT):
Thanks @mastersingh24 . Im changing the proto :)

akoita (Fri, 11 Jan 2019 02:49:50 GMT):
Has joined the channel.

akoita (Fri, 11 Jan 2019 02:57:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ziAseJDNb3iMnyySo) @nickgaski @nickgaski Hi nickgaski, I also had the error. It could be fixed as follows(adding -w 0): export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 -w 0)

akoita (Fri, 11 Jan 2019 02:57:24 GMT):
Hi, does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: "2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining"

akoita (Fri, 11 Jan 2019 03:50:14 GMT):
Hi @nickgaski, I also had the error. It could be fixed as follows(adding -w 0): export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 -w 0)

akoita (Fri, 11 Jan 2019 03:50:33 GMT):
Hi, does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: "2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining"

akoita (Fri, 11 Jan 2019 03:51:58 GMT):
Hi, does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 03:52:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r6g49sqp6pzBqpurt) Hi nickgaski, I also had the error. It could be fixed as follows(adding -w 0): export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 -w 0)

akoita (Fri, 11 Jan 2019 04:01:14 GMT):
Hi @nickgaski, I also had the error. It could be fixed as follows(adding -w 0): ``` export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 -w 0) ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:03:18 GMT):
By the way, I have my own issue. Does anyone know how to sign an artefact by the orderer admin? I'm following the tutorial on channel updating(https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#get-the-necessary-signatures), and the signature of the orderer is required for the submission of the updating transaction. The error message produced is: ``` 2019-01-11 03:05:31.373 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit thres hold of 1 sub-policies, required 1 remaining" ```

akoita (Fri, 11 Jan 2019 04:16:05 GMT):
Edition

khetesh (Fri, 11 Jan 2019 04:57:11 GMT):
Hiii guys , I am just going through hyper ledger multihost network for single peer so I have created a network . In that network couchdb data base is state maintainer for every peer but in couch db we can change modify any data quite confused would it affect block chain????

PranilChhetri (Fri, 11 Jan 2019 04:57:40 GMT):
Has joined the channel.

PranilChhetri (Fri, 11 Jan 2019 04:57:47 GMT):
hello everyone, i have done a PoC of hyperledger fabric for KYC now it's time for deployment.I have been through several tutorial for the deployment of hlf project.What i found is to deploy on amazon using instances.Hyperledger being a decentralised app how can it be deployed to a centralised server in this case Amazon cloud.Where should i supposed to Deployy my project in order to make it fully decentralised

khetesh (Fri, 11 Jan 2019 04:59:18 GMT):
You can run your instance on different different cloud provider service to make it decentralise @PranilChhetri

PranilChhetri (Fri, 11 Jan 2019 05:02:18 GMT):
How am i supposed to do that.Is there any tutorials or something that would guide me.Would it be cost effective as i am stating it's just a prototype.

FLASHJr (Fri, 11 Jan 2019 05:52:28 GMT):
`const secret = await ca.register({ affiliation: 'org1.department1', enrollmentID: 'user1', role: 'client' }, adminIdentity);` what is the role of **affiliation** parameter? and what **role:client** parameter does? What if I change the role parameter value to something else

anjalinaik (Fri, 11 Jan 2019 05:57:33 GMT):
Hi..Can anybody help me resolve below error? I am using an external library for chaincode written in GO lang. I have downloaded the dependency to $GOPATH.However i am receiving below error.``` test_pr1.1.lxebgzlyz8sz@CPU92 | 2019-01-09 09:56:56.223 UTC [endorser] SimulateProposal -> ERRO 065 [mychan][8c52895e] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/ehr3/ehr3.go:10:2: cannot find package "github.com/rs/xid" in any of: test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/go/src/github.com/rs/xid (from $GOROOT) test_pr1.1.lxebgzlyz8sz@CPU92 | /chaincode/input/src/github.com/rs/xid (from $GOPATH) test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/gopath/src/github.com/rs/xid test_pr1.1.lxebgzlyz8sz@CPU92 | " test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container ``` I even mounted my GOPATH with the external dependency within it to peer container. I am still receiving the same error. How to import external dependencies into the Chaincode file and make it available to the fabric-client to execute it?

anjalinaik (Fri, 11 Jan 2019 05:57:33 GMT):
Hi..Can anybody please help me resolve below error? I am using an external library for chaincode written in GO lang. I have downloaded the dependency to $GOPATH.However i am receiving below error.``` test_pr1.1.lxebgzlyz8sz@CPU92 | 2019-01-09 09:56:56.223 UTC [endorser] SimulateProposal -> ERRO 065 [mychan][8c52895e] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/ehr3/ehr3.go:10:2: cannot find package "github.com/rs/xid" in any of: test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/go/src/github.com/rs/xid (from $GOROOT) test_pr1.1.lxebgzlyz8sz@CPU92 | /chaincode/input/src/github.com/rs/xid (from $GOPATH) test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/gopath/src/github.com/rs/xid test_pr1.1.lxebgzlyz8sz@CPU92 | " test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container ``` I even mounted my GOPATH with the external dependency within it to peer container. I am still receiving the same error. How to import external dependencies into the Chaincode file and make it available to the fabric-client to execute it?

anjalinaik (Fri, 11 Jan 2019 05:57:33 GMT):
Hi..Can anyone please help me resolve below error? I am using an external library for chaincode written in GO lang. I have downloaded the dependency to $GOPATH.However i am receiving below error.``` test_pr1.1.lxebgzlyz8sz@CPU92 | 2019-01-09 09:56:56.223 UTC [endorser] SimulateProposal -> ERRO 065 [mychan][8c52895e] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/ehr3/ehr3.go:10:2: cannot find package "github.com/rs/xid" in any of: test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/go/src/github.com/rs/xid (from $GOROOT) test_pr1.1.lxebgzlyz8sz@CPU92 | /chaincode/input/src/github.com/rs/xid (from $GOPATH) test_pr1.1.lxebgzlyz8sz@CPU92 | /opt/gopath/src/github.com/rs/xid test_pr1.1.lxebgzlyz8sz@CPU92 | " test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container test_pr1.1.lxebgzlyz8sz@CPU92 | error starting container ``` I even mounted my GOPATH with the external dependency within it to peer container. I am still receiving the same error. How to import external dependencies into the Chaincode file and make it available to the fabric-client to execute it?

Aniket.1 (Fri, 11 Jan 2019 06:08:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r3KFMR2T6qKWTbAhb) I am facing this error too. Let me know if you got it resolved.

DineshRaj (Fri, 11 Jan 2019 06:24:39 GMT):
Has joined the channel.

Aniket.1 (Fri, 11 Jan 2019 07:18:26 GMT):
I also tried `fabric_client.setAdminSigningIdentity()` successfully to ensure that admin is signing the certificate. Still getting same error: `Rejecting broadcast of config message from 127.0.0.1:46656 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` @millengustavo @mastersingh24

sathiyakaruppiah (Fri, 11 Jan 2019 07:33:08 GMT):
Has joined the channel.

Aniket.1 (Fri, 11 Jan 2019 08:49:52 GMT):
Got it resolved!

FLASHJr (Fri, 11 Jan 2019 09:26:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fwSz32PwBzrnxftTR) @Aniket.1 Great! what was the problem?

tejaswikhanna (Fri, 11 Jan 2019 10:22:04 GMT):
Has joined the channel.

Aniket.1 (Fri, 11 Jan 2019 10:40:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MS3sz5yBGguQdWXkr) @FLASHJr I changed logs to debug in orderer.yaml and then observing the log i removed the error by changing approches

millengustavo (Fri, 11 Jan 2019 11:15:52 GMT):
awesome, glad to hear you figure it out!

Aniket.1 (Fri, 11 Jan 2019 11:24:49 GMT):
yeah @millengustavo :mountain_bicyclist_tone3:

muniyaraj (Fri, 11 Jan 2019 11:49:00 GMT):
Has joined the channel.

satish67 (Fri, 11 Jan 2019 12:00:08 GMT):
Hello to every one, i have a question, when we will start to build the network, through fabric ca, how can we initialize the fabric ca server, i mean through some sdk or we will do that within server itself, thanks in advance

spacemandev (Fri, 11 Jan 2019 12:08:52 GMT):
Has joined the channel.

dave.enyeart (Fri, 11 Jan 2019 13:06:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5def315a-f02c-46f3-bfff-23fea271ea13) @khetesh See my answer at https://lists.hyperledger.org/g/fabric/message/4896

akshay.lawange (Fri, 11 Jan 2019 13:17:48 GMT):
Hi, I am getting an connection error to peer0 of org when i am trying to invoke even if the proposal is correct. Can anyone help why it is unable to connect? Error `error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://10.10.6.16:7051`

dave.enyeart (Fri, 11 Jan 2019 13:21:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=txHDPJojuEmGiFtYD) @Aniket.1 Thank you for the feedback. Fabric is under active development and improvement. If you can provide specific pain points or constructive suggestions, they will be investigated. Please open a Jira bug per issue (even if it is doc or tutorials), and I also invite you to summarize your experience in #fabric-maintainers channel for direct feedback to the maintainers.

SunilHirole (Fri, 11 Jan 2019 13:24:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LAwoMgbJE6MEaZpqK) @klkumar369 @klkumar369 Please check this if this helps https://hyperledger-fabric.readthedocs.io/en/release-1.3/Fabric-FAQ.html#security-access-control

nickgaski (Fri, 11 Jan 2019 16:00:49 GMT):
thanks @akoita

Shirikatsu (Fri, 11 Jan 2019 18:19:31 GMT):
Hi all, where is the Go file that contains the Fabric hashing function? I'm trying to generate a block hash from a block header. Also why was the `Hash` function of the `BlockHeader` type removed from an older version?

Shirikatsu (Fri, 11 Jan 2019 18:19:31 GMT):
Hi all, where is the Go file that contains the Fabric hashing function? I'm trying to generate a block hash from a block header. Also why was the `Hash` function of the `BlockHeader` type removed from an older version? Used to be here https://github.com/hyperledger/fabric/blob/7a596fec16dae04612d30b40c3b2d77474dbd050/protos/common/block.go#L86

Shirikatsu (Fri, 11 Jan 2019 18:19:31 GMT):
Hi all, where is the Go file that contains the Fabric hashing function? I'm trying to generate a block hash from a block header. Also why was the `Hash` function of the `BlockHeader` type removed from an older version?

Shirikatsu (Fri, 11 Jan 2019 18:19:31 GMT):
Hi all, where is the Go file that contains the Fabric hashing function in the fabric-go-sdk? I'm trying to generate a block hash from a block header.

magar36 (Fri, 11 Jan 2019 22:03:09 GMT):
magar36

chinmsay213211 (Fri, 11 Jan 2019 22:22:57 GMT):
Has joined the channel.

nRyDevOps (Fri, 11 Jan 2019 23:05:34 GMT):
@nickgaski I think you are referring to these Fabric binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html

nRyDevOps (Fri, 11 Jan 2019 23:06:15 GMT):
for example, run: curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.0 inside your project directory and it will download the binary files for Fabric into a /bin folder

nRyDevOps (Fri, 11 Jan 2019 23:06:15 GMT):
for example, run the following command inside your project directory and it will download the binary files for Fabric into a /bin folder.

nRyDevOps (Fri, 11 Jan 2019 23:06:15 GMT):
for example, run the following command inside your project directory and it will download the binary files for Fabric into a /bin folder:

nRyDevOps (Fri, 11 Jan 2019 23:06:20 GMT):
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.0

nRyDevOps (Fri, 11 Jan 2019 23:08:37 GMT):
what happened to the HLF Explorer chat channel? I am seeing: No channel with name "blockchain-explorer" was found!

nRyDevOps (Fri, 11 Jan 2019 23:09:08 GMT):
when I click on the chat link located here: https://www.hyperledger.org/projects/explorer

nRyDevOps (Fri, 11 Jan 2019 23:09:25 GMT):
it seems that the Explorer channel has been removed.

dangmanhtruong1995 (Sat, 12 Jan 2019 05:12:55 GMT):
Has joined the channel.

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:09 GMT):
Hi, I'm trying to create a simple database table on Fabric

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:24 GMT):
which consists of an ID, a name, and a date of birth field

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:33 GMT):
I used the basic network example for it

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:46 GMT):
But when I type the command to add an entry

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:54 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode query -C mychannel -n mycc -c '{"Args":["insert", "1", {"name": "Dang Manh Truong", "date": "26/04/1995"}]}'

dangmanhtruong1995 (Sat, 12 Jan 2019 05:13:58 GMT):
It shows an error

dangmanhtruong1995 (Sat, 12 Jan 2019 05:14:05 GMT):
Error: chaincode argument error: json: cannot unmarshal array into Go struct field strArgs.Args of type string

dangmanhtruong1995 (Sat, 12 Jan 2019 05:14:10 GMT):
Can anyone help me?

dangmanhtruong1995 (Sat, 12 Jan 2019 05:14:13 GMT):
Thank you very much

dangmanhtruong1995 (Sat, 12 Jan 2019 05:14:16 GMT):
:)

hbkmadness (Sat, 12 Jan 2019 09:08:20 GMT):
looks like your chaincode has problem when trying to unmarshal the var strArgs.Args which appears to be a string not the type it is expecting (I'm guessing binary?). I'd suggest carefully debug the code to the time this var is unmarshalled and see what is happening and when it should be marshalled first without the code itself it is hard to tell.

millengustavo (Sat, 12 Jan 2019 11:00:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ECBY88DPKNQa8EAwc) @dangmanhtruong1995 It looks like you are trying to pass an array as argument to the chaincode function insert and somewhere in this function the type you are passing is not being converted correctly. My suggestion is that you go to the chaincode.go and look for the insert function and examine line by line to understand what are the types the program is expecting at each step

dangmanhtruong1995 (Sat, 12 Jan 2019 11:02:50 GMT):
@millengustavo I'm using nodejs and I don't know Go :(

millengustavo (Sat, 12 Jan 2019 11:12:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EhMjHa9zA4JFxWXyg) @dangmanhtruong1995 is your chaincode code in JavaScript? If it is in Go it will be a little bit more difficult, but the compiler guides you most of the time (if you hover the mouse over each variable like in Visual Studio Code, it will show you which type the variable expects)

dangmanhtruong1995 (Sat, 12 Jan 2019 12:36:02 GMT):
I'm using Javascript nodejs

dangmanhtruong1995 (Sat, 12 Jan 2019 12:36:12 GMT):
my IDE is Visual studio code

dangmanhtruong1995 (Sat, 12 Jan 2019 12:36:34 GMT):
when I hover onto the variables it shows "parameters any"

dangmanhtruong1995 (Sat, 12 Jan 2019 12:36:35 GMT):
:(

mastersingh24 (Sat, 12 Jan 2019 14:22:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TaJXBEJuhGwj9tKQL) @dangmanhtruong1995 https://stackoverflow.com/a/54160459/6160507

mastersingh24 (Sat, 12 Jan 2019 14:22:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TaJXBEJuhGwj9tKQL) @dangmanhtruong1995 You need to encode the JSON as a string. I answered at https://stackoverflow.com/a/54160459/6160507

QwertyJack (Sat, 12 Jan 2019 19:20:59 GMT):
I want to debug `peer chaincode` but it says 'could not launch process: could not get .debug_frame section: could not find .debug_frame section'

QwertyJack (Sat, 12 Jan 2019 19:21:34 GMT):
Im using Goland with release 1.3.0 . Both golang 1.10 & 1.11 tried.

QwertyJack (Sat, 12 Jan 2019 19:21:59 GMT):
Thanks for help.

Luiserebii (Sun, 13 Jan 2019 12:32:36 GMT):
Has joined the channel.

phantom.assasin (Sun, 13 Jan 2019 12:47:51 GMT):
Has joined the channel.

phantom.assasin (Sun, 13 Jan 2019 12:48:28 GMT):
How does one add a new node to the organization using sdks

phantom.assasin (Sun, 13 Jan 2019 12:49:12 GMT):
I want to use hyperledger fabric go sdk but I cant find documentation for it anywhere or sample/example

livenicely (Sun, 13 Jan 2019 13:07:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AcsorQR4cPEog8HJs) @Aniket.1 I am also facing the same problem

ManishGaur (Sun, 13 Jan 2019 13:51:55 GMT):
Has joined the channel.

ManishGaur (Sun, 13 Jan 2019 13:55:24 GMT):
Hi all while working on hyperledger fabric multi organisation network I am facing an issue while adding an organization to the current channel and making transactions on it

ManishGaur (Sun, 13 Jan 2019 13:55:24 GMT):
Hi all while working on hyperledger fabric multi organisation network I am facing an issue while adding an organization to the current channel and making transactions on it. Please suggest me best way to add organisation and migrating its dockers on other machine?

dave.enyeart (Mon, 14 Jan 2019 02:56:16 GMT):
@ManishGaur see https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html

distrue (Mon, 14 Jan 2019 02:57:42 GMT):
Has joined the channel.

sharma66mahesh (Mon, 14 Jan 2019 05:27:20 GMT):
I can find a lot of Hyperledger Fabric examples on github but all of them have almost similar configuration for crypto-config.yaml and configtx.yaml file. But I know there is a lot more flexibility to writing these files. Where can I find documentation on how to write crypto-config.yaml and configtx.yaml files.

sharma66mahesh (Mon, 14 Jan 2019 05:27:20 GMT):
I can find a lot of Hyperledger Fabric examples on github but all of them have almost similar configuration for crypto-config.yaml and configtx.yaml file. But I know there is a lot more flexibility to writing these files. Where can I find documentation on how to write crypto-config.yaml and configtx.yaml files?

GeorgeDevise (Mon, 14 Jan 2019 06:30:24 GMT):
I try install chaincode but report error path to chaincode does not exist. who can tell me why?

GeorgeDevise (Mon, 14 Jan 2019 06:32:33 GMT):
I install path really exist by go build file

GeorgeDevise (Mon, 14 Jan 2019 06:37:59 GMT):
everybody ?

PranilChhetri (Mon, 14 Jan 2019 07:28:25 GMT):
How does fabric orderer order the transactions? What happens if two transactions are endorsed at the same time and also arrive at the orderer at the same time??

dangmanhtruong1995 (Mon, 14 Jan 2019 08:32:33 GMT):
GeorgeDevise how about check chaincode path in docker-compose.yaml ?

dangmanhtruong1995 (Mon, 14 Jan 2019 08:32:58 GMT):
check peer.org1.example.com, in the volume path, there will be a line about the chaincode path

dangmanhtruong1995 (Mon, 14 Jan 2019 08:34:00 GMT):
mastersingh24 I tried as you said, but there is still nothing :(

dangmanhtruong1995 (Mon, 14 Jan 2019 08:34:08 GMT):
it is really weird

dangmanhtruong1995 (Mon, 14 Jan 2019 08:34:34 GMT):
i just took the original code and modified several things according to the fabcar code

dangmanhtruong1995 (Mon, 14 Jan 2019 08:34:37 GMT):
but it does not work

dangmanhtruong1995 (Mon, 14 Jan 2019 08:35:03 GMT):
and sometimes while instantiating chaincode I get this error

dangmanhtruong1995 (Mon, 14 Jan 2019 08:35:04 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode mycc:1.0 for transaction

arvindkumar6568 (Mon, 14 Jan 2019 09:45:03 GMT):
hello friends i make two peers on differen machine and i used sckript of byfn when i fetched mychannel.block from second machine then i get this error Error: error receiving: rpc error : code=unavailable desc = transport is closing

arvindkumar6568 (Mon, 14 Jan 2019 09:46:03 GMT):
hello friends i make two peers on differen machine of org1 and i used sckript of byfn when i fetched mychannel.block from second machine then i get this error Error: error receiving: rpc error : code=unavailable desc = transport is closing i checked all containers are up

NeelKantht (Mon, 14 Jan 2019 10:09:39 GMT):
ERRO 001 Cannot run peer because cannot init crypto, folder “/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp” does not exist what would be the solution for this error?

AvinashMeda (Mon, 14 Jan 2019 10:59:41 GMT):
Has joined the channel.

AvinashMeda (Mon, 14 Jan 2019 11:02:13 GMT):
Just started with Hyperledger Fabric . I get this error while am generate the certs . I am using the byfn.sh generate command panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x96a8b0] ``` ```

AvinashMeda (Mon, 14 Jan 2019 11:02:13 GMT):
Just started with Hyperledger Fabric . I get this error while am generate the certs . I am using the byfn.sh generate command _panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x96a8b0] _ ``` ```

AndresMartinezMelgar.itcl (Mon, 14 Jan 2019 11:33:30 GMT):
hi! what do you think about https://www.fabricdeployer.com ?

balugeorge (Mon, 14 Jan 2019 11:45:34 GMT):
Has joined the channel.

UnaiUrkiaga (Mon, 14 Jan 2019 12:06:38 GMT):
Hi everyone. Im trying to understand peer channel create command. My question is, why I have to put ordering service URL when I create a channel on a peer?

UnaiUrkiaga (Mon, 14 Jan 2019 12:07:39 GMT):
Waht is the relation between them?

UnaiUrkiaga (Mon, 14 Jan 2019 12:07:39 GMT):
What is the relation between them?

knagware9 (Mon, 14 Jan 2019 12:25:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nv9eZ3AGBDRQeueoF) @NeelKantht its docker volume mounting issue ..check your docker compose file

knagware9 (Mon, 14 Jan 2019 12:28:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D4YHBtuWsbmAA9z9R) @UnaiUrkiaga because should have channel config block to be known..if orderer dont have channel information then how it will decide channel update , upgrade network etc..

NeelKantht (Mon, 14 Jan 2019 12:36:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LqQRPzs3H3hgRR9cj) @knagware9 can u plz tell me how to do that

knagware9 (Mon, 14 Jan 2019 12:38:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eHERJpYgwfH8bWMuq) @NeelKantht Generated crypto materials need to be reference in docker container , that we called docker volume mounting - volumes: - ./config/:/etc/hyperledger/configtx - ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1

LazarLukic (Mon, 14 Jan 2019 12:39:42 GMT):
Hello everyone, does anyone have idea what happened to https://github.com/hyperledger/fabric-samples/tree/release-1.3/fabric-ca for release-1.4? It doesn't exist anymore. Thanks

NeelKantht (Mon, 14 Jan 2019 12:42:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FC74KsQwK8Cc6bZeC) @knagware9 http://paste.arn-fai.net/?2864866 the problem is with the org3

knagware9 (Mon, 14 Jan 2019 12:44:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gfmgSgqLqxhkeQ5EG) @NeelKantht where is the docker container for peer3 ,,is peer 3 on any other machine ?

NeelKantht (Mon, 14 Jan 2019 12:44:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bfn6Gkk36BST66gcq) @knagware9 its on the same machine

NeelKantht (Mon, 14 Jan 2019 12:45:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3qqpTXgLRPTTsfZTC) http://paste.arn-fai.net/?2864877

knagware9 (Mon, 14 Jan 2019 12:47:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LrMYmWF9vdyPjpTRE) @NeelKantht you mounting till msp folder ..

knagware9 (Mon, 14 Jan 2019 12:48:29 GMT):
just do mounting like this - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users

NeelKantht (Mon, 14 Jan 2019 12:49:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a6R7KfdEMbdg4vvnA) @knagware9 in docker-compose-org4 ?

knagware9 (Mon, 14 Jan 2019 12:50:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=noGunpsJFPpkv3A6Y) @NeelKantht where you getting error there ? its just mounting issue ...see you local generated certificate directory and see at container side ,,how are they related , then you will be find out the issue

NeelKantht (Mon, 14 Jan 2019 12:52:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fbqdxd82AZdGFbWcx) @knagware9 yes in org4 only..my certificates are in /org4-artifacts/crypto-config folder

sayyamahmed (Mon, 14 Jan 2019 13:21:47 GMT):
hellow everyone

sayyamahmed (Mon, 14 Jan 2019 13:22:18 GMT):
i need help in configuration of node sdk with multi machine setup

dan13 (Mon, 14 Jan 2019 14:34:12 GMT):
fabricdeployer

mlohr (Mon, 14 Jan 2019 14:53:26 GMT):
Has joined the channel.

mlohr (Mon, 14 Jan 2019 14:53:55 GMT):
What exactly is the (technical) meaning of "Consortium" in configtx.yml?

sirvikipablo (Mon, 14 Jan 2019 15:37:33 GMT):
Has joined the channel.

mastersingh24 (Mon, 14 Jan 2019 15:46:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oigzLiM9oHF5Wg8cf) @mlohr https://hyperledger-fabric.readthedocs.io/en/release-1.4/glossary.html?highlight=consortium#consortium

dan13 (Mon, 14 Jan 2019 16:06:10 GMT):
HLF 1.2 - a client calling chaincode requiring endorsement from peers in 2 orgs must have credentials for a user in each org, correct? Would the preference be to create 2 HFCAClient instances each with a single user context (i.e., one client for each Org/User), or to have a single client and switch usercontexts between calls to each endorsing peer? If there are docs / examples for this (which I have been unable to find so far), please just point me to them and I'll dig from there :) TIA

Tommy109 (Mon, 14 Jan 2019 16:32:20 GMT):
anyone looking for work, dm me

jrosmith (Mon, 14 Jan 2019 17:08:57 GMT):
@Tommy109 you may have success in #jobs

QwertyJack (Mon, 14 Jan 2019 17:09:17 GMT):
Anyone debug peer with success ?

Tommy109 (Mon, 14 Jan 2019 17:09:47 GMT):
@jrosmith thanks, wasnt aware of that channel

jrosmith (Mon, 14 Jan 2019 17:10:47 GMT):
@QwertyJack try #fabric-peer-endorser-committer for questions about the peer. you'll find your question is more likely to get answered if you post a specific error/questions/issue

CorentinPacaud (Mon, 14 Jan 2019 17:12:05 GMT):
Hello everyone. Every time I try to do a peer chaincode instantiate, I've got a TIMEOUT Error. What could be the pb ?

CorentinPacaud (Mon, 14 Jan 2019 17:12:13 GMT):
``` docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -l "node" -v 1.0 -c '{"Args":[]}'`` ```

CorentinPacaud (Mon, 14 Jan 2019 17:12:21 GMT):
I can add that ```peer chaincode list``` return the right chaincode on both peers

millengustavo (Mon, 14 Jan 2019 18:01:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6hC95aDPfsbmAQmiJ) @CorentinPacaud as I'm aware you only need to instantiate the chaincode in one of the peers, after that you only install on the others

greg2git (Mon, 14 Jan 2019 23:32:38 GMT):
i understanding that the fab issue documenting in detail this page has not been resolved yet: https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

greg2git (Mon, 14 Jan 2019 23:32:38 GMT):
my understanding is that the fab issue documenting in detail this page has not been resolved yet: https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

QwertyJack (Tue, 15 Jan 2019 00:57:17 GMT):
Thanks @jrosmith

saranshj07 (Tue, 15 Jan 2019 03:20:21 GMT):
Has joined the channel.

khetesh (Tue, 15 Jan 2019 05:05:09 GMT):
I am facing problem in peer status even though my all peers are running ..... on explorer it shows peer status down . any help highly appreciate...
peer down status.png

darthsaini (Tue, 15 Jan 2019 05:15:20 GMT):
Has joined the channel.

mlohr (Tue, 15 Jan 2019 06:30:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ry793CEbJKHvDEqTv) @mastersingh24 @mastersingh24 A question to that (consortiums): When I have a Consortium with Orgs1+2 founding a channel (only consortiums can first members of a channel, right?) , when Org3 is joining this channel, is Org3 then also part of this consortium?

npc0405 (Tue, 15 Jan 2019 07:05:16 GMT):
Is there any document where one can find best practices to consider while doing prod level application Points can be w.r.t. MSP Logging ACL Chaincode Certificate locations User management Vault File storage Backup plan of each peer / node / org

Chaim (Tue, 15 Jan 2019 07:27:04 GMT):
Has joined the channel.

Chaim (Tue, 15 Jan 2019 07:32:44 GMT):
Hi folks, did the HL Fabric 1.4 release include an Idemix update or has this been postponed?

FLASHJr (Tue, 15 Jan 2019 07:40:01 GMT):
Hi, can anyone help me with this question? https://stackoverflow.com/questions/54194392/how-to-verify-secure-communicaion-after-using-tls-in-hyperledger-fabric

AvinashVazratkar (Tue, 15 Jan 2019 09:06:32 GMT):
I am implementing **Attribute based Access Control. While registering user, I have specified attributes like `fabric_ca_client.register({ enrollmentID: username, affiliation: 'org1.department1', role:'client' , attrs: [{ name: 'firstName', value: 'Mathan_sir', ecert: true }]}, admin_user);` Also specified same attribute while enrolling user like `fabric_ca_client.enroll({ enrollmentID: username, enrollmentSecret: secret, attr_reqs: [{ name: "firstName", optional: false } });` So when I tries to call chaincode function, I am not able to use these attrs which i set during user registration. Before calling chaincode function, we are verifying user first and then calling *getUserContext * function which validated user. In above scenario, I will set different attributes for different level of user and whenever they want to interact with chaincode, using their set attributes, I will restrict their access. Currently I am not able to get these attributes. How could I get these attributes user wise? Could anybody help me on this line? Any help would be appreciated.

AvinashVazratkar (Tue, 15 Jan 2019 09:08:04 GMT):
I am using node sdk

VictorStroganov (Tue, 15 Jan 2019 09:08:48 GMT):
Hi! Help me please: I use nodejs SDK's FabricCAClient.enroll() and as a result I get two files: private key file and user info as json in the form {"name", "mspid", "roles", "affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity","identity":{"certificate":"-----BEGIN CERTIFICATE-- --END CERTIFICATE-----\n"}}} Is it possible to get user info json using command line "fabric-ca-client enroll"?

jarvis26 (Tue, 15 Jan 2019 09:51:37 GMT):
Has joined the channel.

jarvis26 (Tue, 15 Jan 2019 09:51:59 GMT):
Is there a possible scenario where I can simulate byzantine failure in fabric and see how network reacts to it?

AndresMartinezMelgar.itcl (Tue, 15 Jan 2019 09:54:13 GMT):
Someone knows about 1 example that it have multinode and kafka? If is write in java that would be great

dave.enyeart (Tue, 15 Jan 2019 10:00:31 GMT):
@jarvis26 most scenarios would require you to change orderer or peer code. If you are not comfortable doing that, you could tamper with the ledger state database data on one peer and then attempt subsequent transactions against the same key. With an endorsement policy > 1 this will lead to a transaction invalidation at commit time, you'll see the invalidation in the peer logs. See more background on this at the post: https://lists.hyperledger.org/g/fabric/message/4896

jarvis26 (Tue, 15 Jan 2019 10:04:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TnEpXrzE3NoB89nHQ) @dave.enyeart ok..so, this invalidation would be MVCC as I will be trying to commit different write against the same read version? After this occurs, will the network be able to take in/process subsequent transactions?

dave.enyeart (Tue, 15 Jan 2019 10:07:36 GMT):
that would not be an MVCC failure. it would be a failure due to non-matching endorsements. to do an MVCC you have to send two transactions at about the same time that update the same key/value. the one ordered first will succeed validation, the second will get marked invalid. regardless of the reason for invalidation, subsequent transactions will get processed.

dave.enyeart (Tue, 15 Jan 2019 10:07:36 GMT):
that would not be an MVCC failure. it would be a failure due to non-matching endorsements. to do an MVCC failure you have to send two transactions at about the same time that update the same key/value. the one ordered first will succeed validation, the second will get marked invalid. regardless of the reason for invalidation, subsequent transactions will get processed.

dave.enyeart (Tue, 15 Jan 2019 10:07:36 GMT):
that would not be an MVCC failure. it would be a failure due to non-matching endorsements. to do an MVCC failure you have to send two transactions at about the same time (e.g. appear in same block) that read/write the same key/value. the one ordered first will succeed validation, the second will get marked invalid since its readset versions are no longer correct. regardless of the reason for transaction invalidation, subsequent transactions will get processed, the invalidation only impacts the one transaction that got invalidted.

dave.enyeart (Tue, 15 Jan 2019 10:07:36 GMT):
that would not be an MVCC failure. it would be a failure due to non-matching endorsements. to do an MVCC failure you have to send two transactions at about the same time (e.g. appear in same block) that read/write the same key/value. the one ordered first will succeed validation, the second will get marked invalid since its readset versions are no longer correct. regardless of the reason for transaction invalidation, subsequent transactions will get processed, the invalidation only impacts the one transaction that got invalidated.

dave.enyeart (Tue, 15 Jan 2019 10:07:36 GMT):
that would not be an MVCC failure. it would be a failure due to non-matching endorsements. to do an MVCC failure you have to send two transactions at about the same time (e.g. appear in same block) that read/write the same key/value. the one ordered first will succeed validation, the second will get marked invalid since its endorsed readset versions are no longer correct. regardless of the reason for transaction invalidation, subsequent transactions will get processed, the invalidation only impacts the one transaction that got invalidated.

mlohr (Tue, 15 Jan 2019 10:10:21 GMT):
Why do I have to specify both Consortium and Organizations in configtx.yml profiles? See https://github.com/hyperledger/fabric-samples/blob/release-1.4/basic-network/configtx.yaml#L125

mlohr (Tue, 15 Jan 2019 10:10:35 GMT):
Isn't that redundant?

fische (Tue, 15 Jan 2019 10:11:44 GMT):
Has joined the channel.

CorentinPacaud (Tue, 15 Jan 2019 10:17:16 GMT):
Hey, I still have some big issue to deploy a network on two peers. something is really strange : my chaincode is instantiated on peer0 and peer1 but installed only in peer0. How can this be possible ? How to install on two peers ? thx.

dave.enyeart (Tue, 15 Jan 2019 10:18:07 GMT):
this tutorial demonstrates installing on multiple peers: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

dave.enyeart (Tue, 15 Jan 2019 10:18:07 GMT):
this tutorial demonstrates installing on multiple peers: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html. You install on each peer, and instantiate once per channel.

jarvis26 (Tue, 15 Jan 2019 10:23:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6MBcedTdhEaZSyvdv) @dave.enyeart ok..so will tampering the state database truly result in a byzantine failure like situation? If so, and a write transaction against the same key is attempted, this can go either in the same block or in different block. If block creation and timeout times are kept considerably large, in that case this might even end up in being the same block - in this situation MVCC should fail. On the other hand, if it ends up in a different block, what do you mean by transaction invalidation at commit time due to non matching endorsement - as the same EP will again sign the tx.

dave.enyeart (Tue, 15 Jan 2019 10:25:40 GMT):
if the endorsement policy is two orgs, at validation/commit time all peers will check that two orgs endorsed and that those two endorsement results are identical, by validating the two signatures. if you had altered data on one peer that leads to different endorsement results, this will trigger the invalidation

dave.enyeart (Tue, 15 Jan 2019 10:26:20 GMT):
if you have one comromised peer, it will not compromise the rest of the network

jarvis26 (Tue, 15 Jan 2019 10:27:03 GMT):
If I change the state database for all the Endorsing peers then?

dave.enyeart (Tue, 15 Jan 2019 10:28:42 GMT):
yes, if your orgs collude and they all return identical bad endorsement results, then the transaction will go through. this is why you need to set an endorsement policy of sufficient strength to counter collusion attempts specific to your network.

dave.enyeart (Tue, 15 Jan 2019 10:29:39 GMT):
for example you may want to set endorsement policy to be a majority of orgs rather than two

dave.enyeart (Tue, 15 Jan 2019 10:29:39 GMT):
for example you may want to set endorsement policy to be a majority of orgs rather than two. or if there is a semi-trusted party in the network like a regulator or auditor, you may want to require them in the endorsement policy.

jlcs (Tue, 15 Jan 2019 10:32:12 GMT):
Given a MSP with intermediateCAs, can an admin/user certificate be directly issued by the root CA, or does it have to be issued by one of the int. CAs?

fische (Tue, 15 Jan 2019 10:33:13 GMT):
Hello! I'm not sure if this is the right channel but I would like to create a CR on your gerrit and I can't sign in, while I have a linux foundation account. This is the error message I am getting: `Cannot assign user name "fische 3" to account 7741; name does not conform.` (username has been generated at account creation and I can't change it unfortunatelly)

fische (Tue, 15 Jan 2019 10:33:13 GMT):
Hello! I'm not sure if this is the right channel but I would like to create a CR on your gerrit and I can't sign in, while I have a linux foundation account. This is the error message I am getting: `Cannot assign user name "fische 3" to account 7741; name does not conform.` (username has been generated at account creation and I can't change it unfortunatelly)

dave.enyeart (Tue, 15 Jan 2019 10:34:20 GMT):
Send an email to helpdesk@hyperledger.org

fische (Tue, 15 Jan 2019 10:34:52 GMT):
Okay, thanks!

jarvis26 (Tue, 15 Jan 2019 10:47:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a5ys5FCCNEB6yLxLE) @dave.enyeart with this can byzantine failures completely be avoided?

dave.enyeart (Tue, 15 Jan 2019 10:52:48 GMT):
the piece that is not yet byzantine tolerant is the ordering service. good discussion of those ramifications here: https://lists.hyperledger.org/g/fabric/message/5295?p=,,,20,0,0,0::Created,,data+security,20,2,0,28974283

dangmanhtruong1995 (Tue, 15 Jan 2019 11:08:49 GMT):
Hi

dangmanhtruong1995 (Tue, 15 Jan 2019 11:08:55 GMT):
I'm trying to write chaincode in Nodejs

dangmanhtruong1995 (Tue, 15 Jan 2019 11:09:04 GMT):
But when I check the fabcar example

dangmanhtruong1995 (Tue, 15 Jan 2019 11:09:11 GMT):
I realize there are 2 fabcars

dangmanhtruong1995 (Tue, 15 Jan 2019 11:09:18 GMT):
one is in fabric-samples/fabcar

dangmanhtruong1995 (Tue, 15 Jan 2019 11:09:34 GMT):
the other one is in fabric-samples/chaincode/fabcar

dangmanhtruong1995 (Tue, 15 Jan 2019 11:09:50 GMT):
Why are there 2 examples ?

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:09 GMT):
I realize that the one in fabric-samples/fabcar corresponds to this tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.3/write_first_app.html

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:11 GMT):
However

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:32 GMT):
The one in fabric-samples/chaincode/fabcar is closer to the chaincode used in Building first network

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:49 GMT):
So can anyone explain to me why they needed 2 fabcar examples

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:53 GMT):
Thank you very much

dangmanhtruong1995 (Tue, 15 Jan 2019 11:10:54 GMT):
:)

AndresMartinezMelgar.itcl (Tue, 15 Jan 2019 11:21:56 GMT):
i have a problem when i want instantiated my chaincode

AndresMartinezMelgar.itcl (Tue, 15 Jan 2019 11:22:11 GMT):

Clipboard - January 15, 2019 12:22 PM

AndresMartinezMelgar.itcl (Tue, 15 Jan 2019 11:22:57 GMT):
i can install it but cant instanciated

dangmanhtruong1995 (Tue, 15 Jan 2019 11:42:42 GMT):
Hi

dangmanhtruong1995 (Tue, 15 Jan 2019 11:42:59 GMT):
I'm trying to run the Fabcar example in fabric-samples/chaincode/fabcar

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:08 GMT):
However I am still unable to do any query

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:17 GMT):
Here are my commands:

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:25 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -l node -v 1.0 -c '{"Args":["Init"]}'

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:34 GMT):
This is for instantiating the code

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:42 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode query -C mychannel -n mycc -c '{"Args":["initLedger", "1"]}'

dangmanhtruong1995 (Tue, 15 Jan 2019 11:43:59 GMT):
This is for initLedger function, which adds about 5 cars into the ledger

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:05 GMT):
the "1" parameter is redundant

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:10 GMT):
And this is for querying:

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:21 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/e tc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode query -C mychannel -n mycc -c '{"Args":["queryAllCars"]}'

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:25 GMT):
The result is empty

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:37 GMT):
When I type this

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:38 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/e tc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCar", "2"]}'

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:44 GMT):
It gave me an error

dangmanhtruong1995 (Tue, 15 Jan 2019 11:44:51 GMT):
Here is the log for CouchDB

dangmanhtruong1995 (Tue, 15 Jan 2019 11:45:07 GMT):
[notice] 2019-01-15T11:22:16.089668Z nonode@nohost <0.674.0> 0269d8db8d couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/2?attachments=true 404 ok 0 [notice] 2019-01-15T11:22:19.270219Z nonode@nohost <0.674.0> 1668dfe5a3 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/2?attachments=true 404 ok 0 [notice] 2019-01-15T11:36:11.858609Z nonode@nohost <0.20709.0> d43f3ef0f8 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/1?attachments=true 404 ok 51 [notice] 2019-01-15T11:36:20.814603Z nonode@nohost <0.20709.0> 92a6fef801 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/1?attachments=true 404 ok 0 [notice] 2019-01-15T11:36:31.675132Z nonode@nohost <0.20709.0> 9d4f700668 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/2?attachments=true 404 ok 0 [notice] 2019-01-15T11:36:49.859017Z nonode@nohost <0.20709.0> 81625d8469 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/CAR2?attachments=true 404 ok 0 [notice] 2019-01-15T11:36:51.211387Z nonode@nohost <0.20709.0> fbd0612525 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/CAR2?attachments=true 404 ok 0 [notice] 2019-01-15T11:37:04.092872Z nonode@nohost <0.20709.0> 791cfa83a0 couchdb:5984 172.23.0.5 undefined GET /mychannel_mycc/_all_docs?attachments=true&endkey=%22CAR999%22&include_docs=true&inclusive_end=false&limit=1001&startkey=%22CAR0%22 200 ok 30

dangmanhtruong1995 (Tue, 15 Jan 2019 11:45:18 GMT):
Does it mean that the ledger is unable to connect to CouchDB?

dangmanhtruong1995 (Tue, 15 Jan 2019 11:45:21 GMT):
Please help me

dangmanhtruong1995 (Tue, 15 Jan 2019 11:45:26 GMT):
Thank you very much

dangmanhtruong1995 (Tue, 15 Jan 2019 11:45:31 GMT):
:mountain_bicyclist_tone3:

dave.enyeart (Tue, 15 Jan 2019 12:07:48 GMT):
@dangmanhtruong1995 fabric-samples/fabcar is for the client app and fabric-samples/chaincode/fabcar is for the chaincode. Please run it exactly per the tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html

dave.enyeart (Tue, 15 Jan 2019 12:08:28 GMT):
It looks like your peer is contacting couchdb successfully, but it looks like you have gone off script from the tutorial (the chaincode should be 'fabcar' rather than 'mycc')

dangmanhtruong1995 (Tue, 15 Jan 2019 12:19:44 GMT):
are you mentioning this: mychannel_mycc ?

dangmanhtruong1995 (Tue, 15 Jan 2019 12:19:56 GMT):
No I have not gone off script from the tutorial at all

dangmanhtruong1995 (Tue, 15 Jan 2019 12:21:08 GMT):
I simply copied the fabcar folder from fabric-samples/chaincode/fabcar to my current folder and rename it /my_chaincode

dangmanhtruong1995 (Tue, 15 Jan 2019 12:21:13 GMT):
wait a minte

dangmanhtruong1995 (Tue, 15 Jan 2019 12:21:33 GMT):
in docker-compose.yaml I have this line in peer0.org1.example.com, volumes:

dangmanhtruong1995 (Tue, 15 Jan 2019 12:21:50 GMT):
./my_chaincode:/opt/gopath/src/github.com/

dangmanhtruong1995 (Tue, 15 Jan 2019 12:22:08 GMT):
What do you mean "gone off script"

dangmanhtruong1995 (Tue, 15 Jan 2019 12:23:17 GMT):
?

dangmanhtruong1995 (Tue, 15 Jan 2019 12:23:52 GMT):
ANd what about the "undefined GET" part?

dangmanhtruong1995 (Tue, 15 Jan 2019 12:23:59 GMT):
Is it okay?

fedecaccia (Tue, 15 Jan 2019 12:33:33 GMT):
Has joined the channel.

fedecaccia (Tue, 15 Jan 2019 12:33:43 GMT):
Hello everybody, I need to implement a blockchain system using hyperledger fabric (or it could be another solution) with the requirement of changing validator nodes frequently. Can update nodes in fabric?

kevinkbc (Tue, 15 Jan 2019 12:58:57 GMT):
Hello, I have a question that is more opinion based. I am using chaincode in golang. Should I have only one file for my chaincode or can I have multiple files for different parts?

jrosmith (Tue, 15 Jan 2019 13:23:25 GMT):
@kevinkbc current best practice is to keep the chaincode in a single file. for future reference #fabric-chaincode-dev is a good resource for chaincode questions

kevinkbc (Tue, 15 Jan 2019 13:24:32 GMT):
thank you @jrosmith

greg2git (Tue, 15 Jan 2019 13:26:35 GMT):
pl ignore

Bentipe (Tue, 15 Jan 2019 14:02:51 GMT):
Has joined the channel.

kevinkbc (Tue, 15 Jan 2019 17:28:15 GMT):
Hello, I am studying a project to use hyperledger fabric in an application mainly for the immutability feature. My question is, how can someone using my application be sure that my application is really using hyperledger fabric (blockchain)?

millengustavo (Tue, 15 Jan 2019 17:39:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=J9Np3KnGSm8SvsNSt) @kevinkbc you may implement some call to gethistoryforkey function so they can see every transaction that modified a certain asset on your application

kevinkbc (Tue, 15 Jan 2019 17:44:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XCD8jj9S6TDZAQb4o) @millengustavo But how do they know if my application isn't just storing the history in a conventional database (relational, nosql) and returning that info from there?

jrosmith (Tue, 15 Jan 2019 17:50:57 GMT):
@kevinkbc you can give them ownership of an endorsing peer. they can see the transactions happening themselves. this introduces other complexities to your network architecture.

kevinkbc (Tue, 15 Jan 2019 17:55:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XKBmW6EPYDGxB85cv) @jrosmith is there any material / link so I can look for these other complexities?

jrosmith (Tue, 15 Jan 2019 18:01:59 GMT):
@kevinkbc i dont know of any good resources for multi-machine networks off of the top of my head, but you'll have to consider how to manage mutual tls, installing/instantiating chaincodes, signing identity management, and network upgrades among other things

jalfaro (Tue, 15 Jan 2019 19:58:23 GMT):
Has joined the channel.

jordanmmck (Tue, 15 Jan 2019 21:56:15 GMT):
Has joined the channel.

jordanmmck (Tue, 15 Jan 2019 21:56:44 GMT):
Does anyone know if it's possible to have private chaincode within a channel? Basically I'd like to have some parameters of business logic hidden from certain parties within a channel.

dave.enyeart (Tue, 15 Jan 2019 21:58:22 GMT):
@jordanmmck see https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html

JPonna (Tue, 15 Jan 2019 22:19:01 GMT):
Has joined the channel.

JPonna (Tue, 15 Jan 2019 22:19:37 GMT):
Is it possible to join 2 peers from different organizations and different networks in a channel?

jordanmmck (Tue, 15 Jan 2019 22:54:36 GMT):
Thanks @dave.enyeart

jordanmmck (Tue, 15 Jan 2019 22:55:30 GMT):
It seems that chaincode is always public within a channel, but parameters used by some chaincode could be stored in a private data collection.

dave.enyeart (Tue, 15 Jan 2019 22:59:21 GMT):
parameters and the corresponding key/value pairs in chaincode state can be private to a subset of channel orgs

jordanmmck (Wed, 16 Jan 2019 00:02:12 GMT):
So we could have some asset/object that, to some orgs looks like this:

jordanmmck (Wed, 16 Jan 2019 00:02:17 GMT):
car: { Make: honda, Model: civic, : { : , : , } }

jordanmmck (Wed, 16 Jan 2019 00:03:57 GMT):
Or would everything be concatenated and hashed?

jordanmmck (Wed, 16 Jan 2019 00:06:29 GMT):
If things were done as shown above then I would worry about pre-image attacks. If I knew the value of hash(value1) then if I thought that was probably a dollar amount I could just run through zero to a 100 million or so and see if I can produce the matching hash.

wangdong (Wed, 16 Jan 2019 02:32:07 GMT):
I got some error in the peer log >[public-load-channel]: MSP error: channel doesn't exist

wangdong (Wed, 16 Jan 2019 02:32:28 GMT):
>[public-load-channel]: MSP error: channel doesn't exist

wangdong (Wed, 16 Jan 2019 02:32:42 GMT):
I got some errors like this

wangdong (Wed, 16 Jan 2019 02:33:29 GMT):
And I traced it in the source code(version 1.1)

wangdong (Wed, 16 Jan 2019 02:33:42 GMT):
it should result from this function.

wangdong (Wed, 16 Jan 2019 02:34:10 GMT):

Screen Shot 2019-01-16 at 10.33.09.png

wangdong (Wed, 16 Jan 2019 02:35:13 GMT):
I can make sure that this channel is good. On what condition this error will appear? Is it some bug or race condition here?

wangdong (Wed, 16 Jan 2019 02:35:49 GMT):
And some other channels got this error too.

dave.enyeart (Wed, 16 Jan 2019 03:08:16 GMT):
@jordanmmck see the private data tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html

dave.enyeart (Wed, 16 Jan 2019 03:08:27 GMT):
the key and the value are both hashed

dave.enyeart (Wed, 16 Jan 2019 03:08:38 GMT):
the value can be a json or anything you like

dave.enyeart (Wed, 16 Jan 2019 03:08:56 GMT):
you can have a mix of public data keys/values and private data keys/values in the same transaction

dave.enyeart (Wed, 16 Jan 2019 03:09:09 GMT):
for the private keys/values you can include some salt to prevent pre-image attacks

jordanmmck (Wed, 16 Jan 2019 03:33:36 GMT):
Thanks @dave.enyeart, that helps!

mefy-pushpendu (Wed, 16 Jan 2019 05:36:25 GMT):
Hi

mefy-pushpendu (Wed, 16 Jan 2019 05:36:41 GMT):
How can i back up data in hyperledger fabric ?

FLASHJr (Wed, 16 Jan 2019 06:39:48 GMT):
Can anyone tell me why BYFN example is not using Fabric CA?

FLASHJr (Wed, 16 Jan 2019 06:39:48 GMT):
Can anyone tell me why BYFN example is not using Fabric CA? and still I can see the certificates are getting generated for ca in ` /crypto-config/peerOrganizations/org1.example.com/ca`

ArpitKhurana1 (Wed, 16 Jan 2019 07:12:54 GMT):
Can anyone suggest best ways to store and retrieve data structures from key value based database. I need to store a list, storing it in a single key is not scalable, and there is no way to iterate keys using some regex in chaincode

deenario (Wed, 16 Jan 2019 07:24:52 GMT):
I mostly write blogs realted to Hyperledger Farbic and general Blockchain. Can you guys give some of them a view and give me pointers. https://www.devprovider.com/author/danyal-ahmaddevprovider-com/

ivorobioff (Wed, 16 Jan 2019 07:25:43 GMT):
Has joined the channel.

ivorobioff (Wed, 16 Jan 2019 07:32:10 GMT):
not sure if I get answer here but can anyone tell me whether it's possible to connect to already established fabric network via java sdk. In the examples, I only can see how to create channels, users and etc and then use all that to propose transactions. But, I already have all that setup and running, and I only need to somehow to use that in java to propose transactions.

deenario (Wed, 16 Jan 2019 07:38:44 GMT):
@ivorobioff Yes you can. If you are taking about invoking the chaincode and querying it using java SDK then yes you can

AndresMartinezMelgar.itcl (Wed, 16 Jan 2019 08:07:33 GMT):
Hi. Has anyone tried to configure the network with real ips and not just with localhost? How do you solve the issue of authentication certificates (CA)? On the 2nd question if you can explain it or give some link would be appreciated. Thank you.

sayyamahmed (Wed, 16 Jan 2019 08:39:50 GMT):
hellow can same tell about "task zero exit " by orderer service in docker swarm

sayyamahmed (Wed, 16 Jan 2019 08:39:50 GMT):
hellow can some one tell me about "task zero exit " by orderer service in docker swarm

lewislau86 (Wed, 16 Jan 2019 08:56:39 GMT):
Has joined the channel.

CorentinPacaud (Wed, 16 Jan 2019 09:14:36 GMT):
Hi, How is it possible that a chaincode is installed on Peer0, instantiated on Peer0 and Peer1 but not INSTALLED on Peer1 ?

longnv1a (Wed, 16 Jan 2019 09:22:58 GMT):
Hi all, Does anyone know how to add a new consortium into existing network?

dangmanhtruong1995 (Wed, 16 Jan 2019 09:49:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rhvc6sF9oASkRFDgd) @AndresMartinezMelgar.itcl I have tried to do the basic-network example with 2 machines

dangmanhtruong1995 (Wed, 16 Jan 2019 09:51:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rhvc6sF9oASkRFDgd) @AndresMartinezMelgar.itcl I have tried to do the basic-network example with 2 machines, with each machine being a peer in the organization. The crypto-config and /config folders, after being generated on the 1st computer, has to be sent to the 2nd computer. Also, the chaincode must first be packaged on the 1st machine and then sent to the 2nd one. After that you can install using the package file.

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:05 GMT):
Hi

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:15 GMT):
I'm trying to run the Writing your first app tutorial

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:23 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.3/write_first_app.html

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:49 GMT):
However after this command

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:49 GMT):
./startFabric.sh node

dangmanhtruong1995 (Wed, 16 Jan 2019 10:04:56 GMT):
I typed in another terminal:

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:03 GMT):
docker logs -f ca.example.com

FLASHJr (Wed, 16 Jan 2019 10:05:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XKXhotJ2SWhtbBYma) @CorentinPacaud Instantiation happens on the Channel and installtion happens on Peers

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:08 GMT):
There was an error

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:16 GMT):
Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[118 71 119 94 93 31 14 109 190 195 104 233 111 42 86 203 188 197 3 112 7 85 55 139 85 27 79 69 95 134 3 177]]: Key with SKI 7647775e5d1f0e6dbec368e96f2a56cbbcc503700755378b551b4f455f8603b1 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:22 GMT):
When I tried the command

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:32 GMT):
node enrollAdmin.js

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:36 GMT):
The result:

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:43 GMT):
Store path:/home/dangmanhtruong/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/home/dangmanhtruong/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:914:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:392:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:47 GMT):
Why is that?

dangmanhtruong1995 (Wed, 16 Jan 2019 10:05:53 GMT):
Why is the tutorial failing?

deenario (Wed, 16 Jan 2019 10:06:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xS7bqNBrbKaC4p6E4) @dangmanhtruong1995 Are you trying to run Fabcar on Byfn ?

FLASHJr (Wed, 16 Jan 2019 10:06:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xS7bqNBrbKaC4p6E4) @dangmanhtruong1995 did u regenerate the certificates?

dangmanhtruong1995 (Wed, 16 Jan 2019 10:08:01 GMT):
No i'm not trying to run fabcar on byfn

dangmanhtruong1995 (Wed, 16 Jan 2019 10:08:20 GMT):
As the tutorial explicitly demanded that the Byfn.sh down command be run

dangmanhtruong1995 (Wed, 16 Jan 2019 10:11:19 GMT):
What do you mean "regenerate the certificates" ?

CorentinPacaud (Wed, 16 Jan 2019 10:11:19 GMT):
@FLASHJr So why is my chaincode installed only on peer0 and not on peer1 ?

FLASHJr (Wed, 16 Jan 2019 10:12:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WSAL9AmBN5bPayAy8) @CorentinPacaud you will have to installed it manually on every peer

FLASHJr (Wed, 16 Jan 2019 10:12:42 GMT):
You will have to specify the environment variables for every peer

CorentinPacaud (Wed, 16 Jan 2019 10:13:06 GMT):
Yes, we tried many time, but can't achieve it

CorentinPacaud (Wed, 16 Jan 2019 10:13:51 GMT):
``` docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n mycc-v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE"```

CorentinPacaud (Wed, 16 Jan 2019 10:13:51 GMT):
``` docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n mycc -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE"```

CorentinPacaud (Wed, 16 Jan 2019 10:14:14 GMT):
the command above seems to not install chaincode on all peer

CorentinPacaud (Wed, 16 Jan 2019 10:14:25 GMT):
but I don't know why

dangmanhtruong1995 (Wed, 16 Jan 2019 10:17:47 GMT):
I have found the solution

dangmanhtruong1995 (Wed, 16 Jan 2019 10:18:12 GMT):
indeed I had to regenerate the certificates and then correct the docker-compose.yaml file

FLASHJr (Wed, 16 Jan 2019 10:18:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aBHGMnXuWdjDnazQa) @dangmanhtruong1995 :thumbsup:

FLASHJr (Wed, 16 Jan 2019 10:20:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=45XNYQjF9A5otCqvx) @CorentinPacaud You will have to specify environment variables on every peeryou want to install chaincode.. eg: ``` #chaincode install on peer0.org1 CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/node/ #chaincode install on peer1.org1 CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer1.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/node/ ```

CorentinPacaud (Wed, 16 Jan 2019 10:21:18 GMT):
ok, will try

CorentinPacaud (Wed, 16 Jan 2019 10:21:50 GMT):
And I see this option in "peer chaincode install" --peerAddresses stringArray . Is it usefull ?

AndresMartinezMelgar.itcl (Wed, 16 Jan 2019 10:22:20 GMT):
in core.yaml file is defined all configuration of our network, but when /where we load this file?

AndresMartinezMelgar.itcl (Wed, 16 Jan 2019 10:23:51 GMT):
maybe we must put this configuration in configtx.yaml¿

FLASHJr (Wed, 16 Jan 2019 10:24:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3nt4KXuMs4wFenahP) @CorentinPacaud It depends on endorsement policy. If you have specified endorsement policy as `"AND ('Org1MSP.peer','Org2MSP.peer')"` then you need to specify peer address of both org

FLASHJr (Wed, 16 Jan 2019 10:24:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3nt4KXuMs4wFenahP) @CorentinPacaud It depends on endorsement policy. If you have specified endorsement policy as `"AND ('Org1MSP.peer','Org2MSP.peer')"` then you need to specify peer address and path of the certificate of both org

pauljithink (Wed, 16 Jan 2019 10:39:59 GMT):
Hi, After invoking around 1000 transactions using node sdk, I am getting an error: ```Failed to connect before the deadline URL:grpc://localhost:7052``` 7052 is the port peers are listening on. Sometimes I am getting the error after 500/1200 transactions. Any idea how can i fix this issue?

pauljithink (Wed, 16 Jan 2019 10:39:59 GMT):
Hi, After invoking around 1000 transactions using node sdk, I am getting an error: ```Failed to connect before the deadline URL:grpc://localhost:7051``` 7051 is the port peers are listening on. Sometimes I am getting the error after 500/1200 transactions. Any idea how can i fix this issue?

pauljithink (Wed, 16 Jan 2019 10:39:59 GMT):
Hi, After invoking around 1000 transactions using node sdk, I am getting an error: ```Failed to connect before the deadline URL:grpcs://localhost:7051``` 7051 is the port peers are listening on. Sometimes I am getting the error after 500/1200 transactions. Any idea how can i fix this issue?

pauljithink (Wed, 16 Jan 2019 10:39:59 GMT):
Hi, After invoking around 1000 transactions using node sdk, I am getting an error: ```Failed to connect before the deadline URL:grpcs://localhost:7051``` 7051 is the port peers are listening on. Sometimes I am getting the error after 500/1200 transactions. If I restart node server, then I am able to submit transactions again. Any idea how can i fix this issue?

arvindkumar6568 (Wed, 16 Jan 2019 11:21:59 GMT):
hello sir i have two peer on different machine how know those peers are sync i am using compser

AndresMartinezMelgar.itcl (Wed, 16 Jan 2019 11:22:46 GMT):
you can do a transacction in peer1 and check result in peer2

arvindkumar6568 (Wed, 16 Jan 2019 11:27:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FQ6GWbqcStYMANvDp) @AndresMartinezMelgar.itcl can you give me example what command run on second machine peer

npc0405 (Wed, 16 Jan 2019 11:39:48 GMT):
Any tool HL supports to trace logs of all dockers running in network at one location from monitoring perspective

npc0405 (Wed, 16 Jan 2019 11:40:06 GMT):
Any help would be much appreciated Thanks

FLASHJr (Wed, 16 Jan 2019 11:45:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m4kX4HPsEZFDpbevL) @arvindkumar6568 check the logs of both the peers `docker logs `

FLASHJr (Wed, 16 Jan 2019 11:54:04 GMT):
do u have any idea about this? https://hyperledger-fabric.readthedocs.io/en/release-1.3/enable_tls.html

FLASHJr (Wed, 16 Jan 2019 11:54:16 GMT):
``` CORE_PEER_TLS_CLIENTROOTCAS_FILES = fully qualified path of the CA chain file CORE_PEER_TLS_CLIENTCERT_FILE = fully qualified path of the client certificate CORE_PEER_TLS_CLIENTKEY_FILE = fully qualified path of the client key ```

FLASHJr (Wed, 16 Jan 2019 11:54:39 GMT):
what are these values? where do I get these?

SahithiDyavarashetti (Wed, 16 Jan 2019 12:21:29 GMT):
Has joined the channel.

AkhilKura (Wed, 16 Jan 2019 12:22:51 GMT):
Has joined the channel.

AkhilKura (Wed, 16 Jan 2019 12:23:06 GMT):
tried creating the channel for connecting 2 peers but i am getting an error while creating channel this is the error Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

AkhilKura (Wed, 16 Jan 2019 12:23:06 GMT):
tried creating the channel for connecting 2 peers but i am getting an error while creating channel this is the error Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

AkhilKura (Wed, 16 Jan 2019 12:23:06 GMT):
tried creating the channel for connecting 2 peers but i am getting an error while creating channel this is the error Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") followed this link:::::: https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

AkhilKura (Wed, 16 Jan 2019 12:23:42 GMT):

channel.png

SahithiDyavarashetti (Wed, 16 Jan 2019 12:25:46 GMT):
Hey there , I am trying to create peers and add them in deployment of fabric network in single organisation.So i needed a channel to connect the peers .I am using existing one i.e., ComposerChannel .But i got an error when i am trying to launch channel like

SahithiDyavarashetti (Wed, 16 Jan 2019 12:26:00 GMT):
'Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

SahithiDyavarashetti (Wed, 16 Jan 2019 12:28:36 GMT):
I have executed the command as:

SahithiDyavarashetti (Wed, 16 Jan 2019 12:28:39 GMT):
configtxgen -profile ComposerChannel -outputCreateChannelTx ./composer-channel.tx -channelID composerchannel

SahithiDyavarashetti (Wed, 16 Jan 2019 12:29:22 GMT):

configurationERROR.png

SahithiDyavarashetti (Wed, 16 Jan 2019 12:30:10 GMT):
Help me to solve this issue

dave.enyeart (Wed, 16 Jan 2019 12:49:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XD3JCt3ZWjG4Z27oW) @ArpitKhurana1 Sounds like you need a composite key... look at CreateCompositeKey() and GetStateByPartialCompositeKey() which enables you to store individually but query as a list: https://github.com/hyperledger/fabric/blob/release-1.4/core/chaincode/shim/interfaces.go#L140-L152

jaguarg (Wed, 16 Jan 2019 13:01:51 GMT):
What is the best way to get a paid technical support licence for fabric?

prasanths96 (Wed, 16 Jan 2019 14:04:22 GMT):
Hi, It would be very much appreciable if someone can direct me to the right path. I have a running fabric network, and a working node application which can listen to chaincode events. I want to know how to send these events to the web application (Angular). Any source / examples is appreciated. Thanks.

Daka (Wed, 16 Jan 2019 14:55:19 GMT):
@jaguarg are you talking about receiving a certificate that you can show at someone for your proficiency with Fabric ? If yes, Hyperledger created this https://www.hyperledger.org/resources/training/hyperledger-fabric-certification , however you just missed the deadline, probably in a couple of months there will be a new exam.

naqvijafar91 (Wed, 16 Jan 2019 15:14:16 GMT):
Has joined the channel.

dangmanhtruong1995 (Wed, 16 Jan 2019 15:25:55 GMT):
Hi

dangmanhtruong1995 (Wed, 16 Jan 2019 15:25:58 GMT):
I have a question

dangmanhtruong1995 (Wed, 16 Jan 2019 15:26:12 GMT):
When I try instantiating the chaincode

dangmanhtruong1995 (Wed, 16 Jan 2019 15:26:15 GMT):
it just hangs there

dangmanhtruong1995 (Wed, 16 Jan 2019 15:26:20 GMT):
I don't understand

dangmanhtruong1995 (Wed, 16 Jan 2019 15:26:24 GMT):
Can anyone help me?

dangmanhtruong1995 (Wed, 16 Jan 2019 15:26:27 GMT):
Thank you very much

jrosmith (Wed, 16 Jan 2019 15:29:29 GMT):
@dangmanhtruong1995 please post a hastebin.com link containing the error you are running into and a description of your setup

naqvijafar91 (Wed, 16 Jan 2019 15:31:46 GMT):
Hi, i have a serious issue with Identity management at the chain code level, i am building an where people can upload their education and work exeperience documents and the educational institutes and previous companies can approve it, i have this issue in doing so: Person is a universal participant, he is not dependent on any organization, i want to give him a universal identity irrespective of organizations and msps, because he can use any organization just to connect to the network as he does not maintain any peer. Now since i am not relying on the MSP credentials inside the chaincode, how can i validate that it is the same person who has invoked a function. For example in Etherum, we can just use msg.sender as this is the user's Ethereum address and this is a universal identity. There is no import private key function in fabric-ca-client node sdk, how can a Person import his old private key when he switches organizations or uses a peer from a different organization? Please help me in understanding how to implement universal identity for participants and authentication at the chaincode level

naqvijafar91 (Wed, 16 Jan 2019 15:31:46 GMT):
Hi, i have a serious issue with Identity management at the chain code level, i am building an app where people can upload their education and work exeperience documents and the educational institutes and previous companies can approve it, i have this issue in doing so: Person is a universal participant, he is not dependent on any organization, i want to give him a universal identity irrespective of organizations and msps, because he can use any organization just to connect to the network as he does not maintain any peer. Now since i am not relying on the MSP credentials inside the chaincode, how can i validate that it is the same person who has invoked a function. For example in Etherum, we can just use msg.sender as this is the user's Ethereum address and this is a universal identity. There is no import private key function in fabric-ca-client node sdk, how can a Person import his old private key when he switches organizations or uses a peer from a different organization? Please help me in understanding how to implement universal identity for participants and authentication at the chaincode level

naqvijafar91 (Wed, 16 Jan 2019 15:33:40 GMT):
I am an experienced developer with Ethereum, this is my first project on Hyperledger Fabric, if somebody can help with this, it would be awesome

naqvijafar91 (Wed, 16 Jan 2019 15:33:51 GMT):
i can teach Ethereum in return

jrosmith (Wed, 16 Jan 2019 15:36:32 GMT):
@naqvijafar91 for future reference #fabric-chaincode-dev is the best place to get help with all things chaincode related. you may find [GetTransient](https://github.com/hyperledger/fabric/blob/release-1.4/core/chaincode/shim/interfaces.go#L311) or [GetBinding](https://github.com/hyperledger/fabric/blob/release-1.4/core/chaincode/shim/interfaces.go#L319) helpful for mapping a fabric transaction to an external transaction context

naqvijafar91 (Wed, 16 Jan 2019 15:37:27 GMT):
@jrosmith thanks alot, il ask the same question over there as well

dangmanhtruong1995 (Wed, 16 Jan 2019 15:58:01 GMT):
here is my pastebin

dangmanhtruong1995 (Wed, 16 Jan 2019 15:58:02 GMT):
https://pastebin.com/z9RbBZDe

dangmanhtruong1995 (Wed, 16 Jan 2019 15:58:09 GMT):
please help me, thank you very much

dangmanhtruong1995 (Wed, 16 Jan 2019 16:09:03 GMT):
Here is the error

dangmanhtruong1995 (Wed, 16 Jan 2019 16:09:04 GMT):
Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: chaincode mycc not found"

JonathanC (Wed, 16 Jan 2019 17:17:51 GMT):
Hello guys,

JonathanC (Wed, 16 Jan 2019 17:17:51 GMT):
Hello guys, are any of you being sucsessfull returning error throwed by chaincode from the function queryByChaincode in node SDK ?

JonathanC (Wed, 16 Jan 2019 17:17:51 GMT):
Hello guys, are any of you being sucsessfull returning error throwed by chaincode from the function queryByChaincode in node SDK ? It seems to always return an empty Buffer even there is an error throw in chaincode

JonathanC (Wed, 16 Jan 2019 17:17:51 GMT):
Hello guys, are any of you being sucsessfull returning error throwed by chaincode from the function queryByChaincode in node SDK ? It seems to always return an empty Buffer even

mpena (Wed, 16 Jan 2019 17:36:14 GMT):
Has joined the channel.

mpena (Wed, 16 Jan 2019 17:36:54 GMT):
How would one go about implementing some sort of fiat money transfer given some digital asset changed hands on a fabric blockchain?

dangmanhtruong1995 (Wed, 16 Jan 2019 17:44:25 GMT):
UPDATE: it seems that my code somehow refers to the fabcar module which was installed using nodejs in the example

dangmanhtruong1995 (Wed, 16 Jan 2019 17:44:44 GMT):
however even when I have changed the docker-compose.yaml file to reflect my chaincdoe it still does not work

blockchainer (Wed, 16 Jan 2019 18:10:19 GMT):
Hi, I'm trying to build Fabric (release-1.4) on my local (within a container), and *make* throws the error "docker not available" (even while building the target "native"). Do we really need to have docker installed for this target as well? I installed docker and was able to get over with the issue, but just raising a concern here.

jrosmith (Wed, 16 Jan 2019 18:47:15 GMT):
@dangmanhtruong1995 check your peer container for logs that may explain why the instantiation is failing

jrosmith (Wed, 16 Jan 2019 18:48:05 GMT):
@JonathanC what language are you using for you chaincode? please refer you question with which language implementation youre using to #fabric-chaincode-dev

jrosmith (Wed, 16 Jan 2019 18:49:52 GMT):
@mpena it sounds like youre interested in tokenization of assets, if so you may be interested in the [tokens](https://docs.google.com/presentation/d/1nEKQQDT8Z6_7z8vtDdHggfsOesgVnh4lU5eCC4Z9okY/edit#slide=id.p1) , which are not yet implemented

JonathanC (Wed, 16 Jan 2019 19:05:23 GMT):
@jrosmith I dont think it is related to chaincode since my peer is sending back exactly the same message when using queryByChaincode and sendTransactionProposal

JonathanC (Wed, 16 Jan 2019 19:05:23 GMT):
@jrosmith I dont think it is related to chaincode since my peer is sending back exactly the same message (as seen by logs of my peers) when using queryByChaincode and sendTransactionProposal

tommyjay (Wed, 16 Jan 2019 20:26:22 GMT):
Has joined the channel.

tommyjay (Wed, 16 Jan 2019 20:28:45 GMT):
hi, what's the proper way to install 2 chaincodes in one channel? whenever i try to invoke/query functions in my second chaincode i get an error saying the function doesn't exist. but if i pass a function name from the first chaincode into the second, i can get data. i think there's a mix up with the chaincode id and i'm not able to find out where it's coming from

raidinesh80 (Wed, 16 Jan 2019 20:53:12 GMT):
is there any tool to decode enrollment certificate stored in user context.?

mujeeb (Thu, 17 Jan 2019 01:57:51 GMT):
Has joined the channel.

mefy-pushpendu (Thu, 17 Jan 2019 02:19:29 GMT):
how can i backup blockchain data and restore ?

AkhilKura (Thu, 17 Jan 2019 03:59:15 GMT):
tried creating the channel for connecting 2 peers but i am getting an error while creating channel this is the error Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") followed this link:::::: https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

AkhilKura (Thu, 17 Jan 2019 03:59:40 GMT):

channel.png

SahithiDyavarashetti (Thu, 17 Jan 2019 04:22:51 GMT):
Hey there , I am trying to create peers and add them in deployment of fabric network in single organisation.So i needed a channel to connect the peers .I am using existing one i.e., ComposerChannel .But i got an error when i am trying to launch channel like 'Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com") I got the above error by executing the following command : configtxgen -profile ComposerChannel -outputCreateChannelTx ./composer-channel.tx -channelID composerchannel

SahithiDyavarashetti (Thu, 17 Jan 2019 04:23:17 GMT):

configurationERROR.png

SahithiDyavarashetti (Thu, 17 Jan 2019 04:24:02 GMT):
These are the commands i have used for adding multiple peers to the single organisation

ryoiwamoto (Thu, 17 Jan 2019 04:29:32 GMT):
Has joined the channel.

ryoiwamoto (Thu, 17 Jan 2019 04:30:22 GMT):
I have a question about Peer's docker image. What is the difference 1.4.0 and amd64-1.4.0 ?

gaijinviki (Thu, 17 Jan 2019 04:46:21 GMT):
Has joined the channel.

SethiSaab (Thu, 17 Jan 2019 05:55:24 GMT):
HI Team

SethiSaab (Thu, 17 Jan 2019 05:55:31 GMT):
I am trying to setup channel manually

SethiSaab (Thu, 17 Jan 2019 05:55:39 GMT):
without ruunning byfn script

SethiSaab (Thu, 17 Jan 2019 05:56:06 GMT):
i am getting error while running this command peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem to create channel

SethiSaab (Thu, 17 Jan 2019 05:56:19 GMT):
error i am getting s

SethiSaab (Thu, 17 Jan 2019 05:56:20 GMT):
Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium

PPV (Thu, 17 Jan 2019 06:30:47 GMT):
Has joined the channel.

FLASHJr (Thu, 17 Jan 2019 08:48:59 GMT):
```peer1.org2.example.com: container_name: peer1.org2.example.com extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer1.org2.example.com - CORE_PEER_ADDRESS=peer1.org2.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:7051 - CORE_PEER_LOCALMSPID=Org2MSP volumes: - /var/run/:/host/var/run/ - ../crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/msp:/etc/hyperledger/fabric/msp - ../crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls:/etc/hyperledger/fabric/tls - peer1.org2.example.com:/var/hyperledger/production ports: - 10051:7051 - 10053:7053 ``` What is the use of **peer1.org2.example.com:/var/hyperledger/production** this parameter in volume section? what is does?

knagware9 (Thu, 17 Jan 2019 10:07:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E9SgDxoGF9drWmxM4) @FLASHJr I guess its volume mounting of /var/hyperledger/production to container for block data file persistance...check there will one new folder created If this is differrent then I also would like to know

FLASHJr (Thu, 17 Jan 2019 10:17:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m7wDynyfD7YviRPCG) @knagware9 **production** directory has not got created. only the path` /var/hyperledger` is accessible ,and it's empty

mastersingh24 (Thu, 17 Jan 2019 10:29:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=47XLvGKtDQ5tossve) @ryoiwamoto You end up with the same image ..... if you use 1.4.0 on an x86_64 machine, it pulls the amd64-1.4.0 image behind the scenes. If you do the same on a s390x machine, it will pull the s390x-1.4.0 image

arvindkumar6568 (Thu, 17 Jan 2019 10:33:51 GMT):
hello sir i got this error when install chaincode Error: Error getting chaincode code chaincode: Failed to determine platform type: Unknown chaincodeType: NODE

AndresMartinezMelgar.itcl (Thu, 17 Jan 2019 11:01:18 GMT):
what command did you use?

Rajatsharma (Thu, 17 Jan 2019 11:16:28 GMT):
Has anyone gone through the new `The Operations Service` section, I'm trying to connect to `The metrics endpoint` but even after maping the port on my machine I'm unable to access that. Could anyone help me with this ?

mastersingh24 (Thu, 17 Jan 2019 11:17:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=28CgqJZ27H2CwwTfn) @Rajatsharma How are you trying to connect and whatr error are you getting?

Rajatsharma (Thu, 17 Jan 2019 11:20:32 GMT):
I was trying to connect using `curl 0.0.0.0:9443` and I've added in ports section of peer it in the docker-compose as `9443:9443` .

Rajatsharma (Thu, 17 Jan 2019 11:21:42 GMT):
I'm getting this error:```curl: (56) Recv failure: Connection reset by peer```

npc0405 (Thu, 17 Jan 2019 11:46:35 GMT):
If somebody knows about these `Operations service ` step by step process. Please let us know. Appreciate help

renex (Thu, 17 Jan 2019 12:38:21 GMT):
Has joined the channel.

pauljithink (Thu, 17 Jan 2019 12:43:17 GMT):
I was trying a POC in hyperledger fabric by referring to some of the examples online, One thing I noticed is that each transaction is taking around 3 seconds as the transaction waits for endorsed peers to confirm, submitting it to order and orderer propagating it back to peer to commit it to ledger. Just wanted to check if this is correct or am I going in the wrong direction? Also I could find that fabric transaction is taking more size on disk when compared to ethereum.(I have tested for similar data sets). Is fabric storing more associated data for a transaction, for example signers data?

WouterVanHecke (Thu, 17 Jan 2019 13:05:44 GMT):
The fabric network is running correctly, but when I try to restart to peer, the chaincode doesn't work anymore. I know that the dev containers gets put down and then restarted together with the peer container. But it doesn't work anymore. When I try to invoke a function. That function is not found anymore, so I'm getting a time-out every time. Can someone help me with this problem?

phantom.assasin (Thu, 17 Jan 2019 13:09:05 GMT):
In fabric-sdk-go, ```comm.NetworkPeerConfig``` expects ```fab.EndpointConfig```. Can anyone help me with what to pass as part of config?

abityildiz (Thu, 17 Jan 2019 14:27:36 GMT):
hi,how can i learn chaincode verison in the network?

smallant (Thu, 17 Jan 2019 14:30:12 GMT):
Hi to all, on the endorsment policies for the chaincode, are there any more options than the AND and OR?

jrosmith (Thu, 17 Jan 2019 14:33:03 GMT):
@pauljithink yes, by default the batch timeout for a network is 2 seconds. batch timeout works in tandem with batch size to manage throughput. to get a better understanding please refer to the docs on [editing network configurations](https://hyperledger-fabric.readthedocs.io/en/latest/config_update.html#editing-a-config)

jrosmith (Thu, 17 Jan 2019 14:34:58 GMT):
@smallant the options are `AND`, `OR`, or `OutOf`, see more [here](https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html)

abityildiz (Thu, 17 Jan 2019 14:35:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JbJPPCp4GaBmepuNo) peer chaincode list --installed -C mychannel

smallant (Thu, 17 Jan 2019 14:39:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=R7jAWKtYqrb5qcxaf) @jrosmith this is for the latest version if I'm correct. For older versions like 1.1 it's only AND and OR (at least according to the documentation)

dangmanhtruong1995 (Thu, 17 Jan 2019 14:41:22 GMT):
Hi

dangmanhtruong1995 (Thu, 17 Jan 2019 14:41:32 GMT):
When I try to instantiate the chaincode

dangmanhtruong1995 (Thu, 17 Jan 2019 14:41:48 GMT):
it takes a lot of time to complete

dangmanhtruong1995 (Thu, 17 Jan 2019 14:41:55 GMT):
sometimes it just hangs

dangmanhtruong1995 (Thu, 17 Jan 2019 14:42:01 GMT):
can anyone help me?

dangmanhtruong1995 (Thu, 17 Jan 2019 14:42:03 GMT):
thank you very much

dangmanhtruong1995 (Thu, 17 Jan 2019 14:43:58 GMT):
I realize that in the CouchDB log, there is this line

dangmanhtruong1995 (Thu, 17 Jan 2019 14:43:59 GMT):
[notice] 2019-01-17T14:28:27.908169Z nonode@nohost <0.322.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:395) <= mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)

dangmanhtruong1995 (Thu, 17 Jan 2019 14:44:09 GMT):
does it mean that my Database setup is somehow wrong?

dangmanhtruong1995 (Thu, 17 Jan 2019 14:44:27 GMT):
Later on it is full of undefined PUT and GET

dangmanhtruong1995 (Thu, 17 Jan 2019 14:44:50 GMT):
[notice] 2019-01-17T14:28:39.448400Z nonode@nohost <0.674.0> d2ed9ff502 couchdb:5984 172.20.0.5 undefined GET /mychannel_/_index 200 ok 11 [notice] 2019-01-17T14:28:39.524494Z nonode@nohost <0.674.0> 163076e184 couchdb:5984 172.20.0.5 undefined GET /mychannel_/resourcesconfigtx.CHANNEL_CONFIG_KEY?attachments=true 200 ok 11 [notice] 2019-01-17T14:28:42.730858Z nonode@nohost <0.264.0> -------- rexi_buffer : cluster stable [notice] 2019-01-17T14:28:42.731034Z nonode@nohost <0.261.0> -------- rexi_server : cluster stable [notice] 2019-01-17T14:29:56.692938Z nonode@nohost <0.674.0> 9b4db81aed couchdb:5984 172.20.0.5 undefined GET /mychannel_lscc 404 ok 25 [notice] 2019-01-17T14:29:56.778205Z nonode@nohost <0.674.0> 81385c47a1 couchdb:5984 172.20.0.5 undefined PUT /mychannel_lscc 201 ok 82 [notice] 2019-01-17T14:29:56.782553Z nonode@nohost <0.674.0> 029bf4dc0f couchdb:5984 172.20.0.5 undefined GET /mychannel_lscc/mycc?attachments=true 404 ok 2 [notice] 2019-01-17T14:30:02.531253Z nonode@nohost <0.674.0> 3b7bdca1eb couchdb:5984 172.20.0.5 undefined GET /mychannel_lscc/mycc?attachments=true 404 ok 1

dangmanhtruong1995 (Thu, 17 Jan 2019 14:53:01 GMT):
And when I type docker ps -a

dangmanhtruong1995 (Thu, 17 Jan 2019 14:53:06 GMT):
I see several weird entries

dangmanhtruong1995 (Thu, 17 Jan 2019 14:53:28 GMT):
such as: condescending_jennings or cocky_goldwasser, elegant_noyce

jrosmith (Thu, 17 Jan 2019 15:15:46 GMT):
@smallant correct, on the bottom left of the docs you can select the release version and see what is available as an endorsement policy

ryoiwamoto (Thu, 17 Jan 2019 16:10:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G7xXtpqJRroM2jh4m) @mastersingh24 @mastersingh24 Thank you for answering my question.

ryoiwamoto (Thu, 17 Jan 2019 16:10:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G7xXtpqJRroM2jh4m) @mastersingh24 Thank you for answering my question.

blockchainer (Thu, 17 Jan 2019 17:20:53 GMT):
Can someone suggest a basic configtx.yaml for a system-channel / genesis-block?

vafaster (Thu, 17 Jan 2019 17:41:37 GMT):
Hello .. I have a dubt about channels .. I'm new in Hyperledger and I want to know if each channel in my heperledger configuration has his own genesis block. there are two genesis block in two channels? or there is only one blockchain and every block is tagged with his channel .. Thanks..

dan13 (Thu, 17 Jan 2019 17:48:05 GMT):
@vafaster https://hyperledger-fabric.readthedocs.io/en/release-1.4/glossary.html?#channel and https://hyperledger-fabric.readthedocs.io/en/release-1.4/fabric_model.html#ledger-features -- every channel is its own ledger. Get familiar with this doc site, lots of good starting info there

jrosmith (Thu, 17 Jan 2019 17:52:47 GMT):
@blockchainer the `configtx.yaml` from the [byfn example](https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/configtx.yaml) is a good basic start

blockchainer (Thu, 17 Jan 2019 18:17:51 GMT):
Thanks @jrosmith, should the "TwoOrgsOrdererGenesis" (and it's dependencies) be enough for a system-channel? Another short (+silly) question regarding the "msp" folder for MSPDir: This only contains the relevant *public* certificates, right?

AlbertoCarmona (Thu, 17 Jan 2019 18:57:49 GMT):
Hi all! Can you please tell me if you have any tutorials explaining how to work with chaincode in production? I have deployed fabric on kubernetes (kafka consensus) but I don't know how to build my first application, thanks!

jordanmmck (Thu, 17 Jan 2019 23:00:45 GMT):
Wish I could provide some answers instead of just another question, but... I'm working on a PoC where a given org belongs to 3 private data collections, each of which has 2 members (the org and some other party). Some data is going to come into the org and then the org (or whoever) is going to need to read from all 3 collections in order to know how to deal with the data. The only entity that is going to be able to deal with that data is the org, since they're the only one with access to all 3 collections. No other party is going to be able to verify that the org did the calculation correctly without that private data... So I'm wondering if this is possible -- to have some org run some chaincode "by themselves", without any other party verifying anything?

dave.enyeart (Thu, 17 Jan 2019 23:15:48 GMT):
@jordanmmck that's possible, but the endorsement policy would have to be that org only

jordanmmck (Thu, 17 Jan 2019 23:17:05 GMT):
OK, makes sense. Thanks once again @dave.enyeart :)

rdbmsdata78 (Fri, 18 Jan 2019 00:27:54 GMT):
Has joined the channel.

TharinduSandaruwan1 (Fri, 18 Jan 2019 01:34:42 GMT):
Has joined the channel.

tahaf10 (Fri, 18 Jan 2019 03:08:39 GMT):
Can anyone please tell me what's the difference between context & contract in the latest chaincode example papernet?

naganjaneyulu (Fri, 18 Jan 2019 03:19:57 GMT):
Has joined the channel.

KokoKoko (Fri, 18 Jan 2019 03:20:03 GMT):
Has joined the channel.

naganjaneyulu (Fri, 18 Jan 2019 03:20:18 GMT):
Can someone please help on fabcar startFabric.sh issue

naganjaneyulu (Fri, 18 Jan 2019 03:21:27 GMT):
$ ./startFabric.sh javascript # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down Removing network net_basic docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb Creating network "net_basic" with the default driver Creating couchdb ... done Creating orderer.example.com ... done Creating ca.example.com ... done Creating peer0.org1.example.com ... done # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= export FABRIC_START_TIMEOUT=10 #echo ${FABRIC_START_TIMEOUT} sleep ${FABRIC_START_TIMEOUT} # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx Error response from daemon: Container ac3bf0c1a53bace58884c711861296740fe813298a977704fbe142ef8f648fee is not running

naganjaneyulu (Fri, 18 Jan 2019 03:21:47 GMT):
can somebody help in resolving the above issue

AkshayMilmile (Fri, 18 Jan 2019 03:36:21 GMT):
Need some ideas to achieve data marketplace through hyperledger, I am trying to create a data marketplace where a party can transact with other parties, agree on the set of terms and sell data from one to another. Here data security is of utmost concern. A party makes data available on the hyperledger, this data should be secured and no one should get hold of it. If an interested party wants this data, they have to transact with data owner party and agree on the set of terms. Only then the interested party will get the data. And now only two parties should have hold of this data. Everyone else should not get hold of it. I would like to know what components of hyperledger can be used here. I have an idea of private data concept in hyperledger, but not sure how and where it would fit. Would love to hear some comments from experts regarding this.

tahaf10 (Fri, 18 Jan 2019 03:43:44 GMT):
Can anyone please tell me what's the difference between context & contract in the latest chaincode example papernet?

arvindkumar6568 (Fri, 18 Jan 2019 05:01:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5PXt2XpmDKskhXS7W) @AndresMartinezMelgar.itcl i used this cmd peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode_example02/node/

KokoKoko (Fri, 18 Jan 2019 05:41:35 GMT):
How to start makefile on window ?

arvindkumar6568 (Fri, 18 Jan 2019 06:08:28 GMT):
hello sir how add new peer in connection.json file in running network

KartikChauhan (Fri, 18 Jan 2019 06:51:07 GMT):
How does a user chaincode written in node.js gets installed inside a peer container even when there's node.js not installed inside it?

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using node.js version 10+ `../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: error: ‘class v8::Array’ has no member named ‘CloneElementAt’ return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’ return v8::BooleanObject::New(value).As(); `

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using node.js version 10+ `../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: error: ‘class v8::Array’ has no member named ‘CloneElementAt’ return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’ return v8::BooleanObject::New(value).As(); `

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using node.js version 10+ `../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As(); `

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using **node.js version 10+** `../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As(); `

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using **node.js version 10+** ../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As();

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using **node.js version 10+** ../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As(); ```

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing fabric-shim node package using **node.js version 10+** ``` ../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As(); ```

Aniket.1 (Fri, 18 Jan 2019 07:04:13 GMT):
Getting error in installing **fabric-shim** node package using **node.js version 10+** ``` ../node_modules/nan/nan_maybe_43_inl.h:88:15: **error: ‘class v8::Object’ has no member named ‘ForceSet’** return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal Nan::CloneElementAt(v8::Local, uint32_t)’: ../node_modules/nan/nan_maybe_43_inl.h:220:17: **error: ‘class v8::Array’ has no member named ‘CloneElementAt’** return array->CloneElementAt(GetCurrentContext(), index); ^ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:200, from ../include/x509.h:7, from ../src/addon.cc:5: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(bool)’: ../node_modules/nan/nan_implementation_12_inl.h:40:38: **error: no matching function for call to ‘v8::BooleanObject::New(bool&)’** return v8::BooleanObject::New(value).As(); ```

Aniket.1 (Fri, 18 Jan 2019 08:05:39 GMT):
Have anyone installed fabric-shim with node.js version 10+?

Gaurab 2 (Fri, 18 Jan 2019 08:47:46 GMT):
Has joined the channel.

Gaurab 2 (Fri, 18 Jan 2019 08:49:09 GMT):
how can we downgrade from fabric version 1.2 to 1.1 in IBM blockchain platform STARTER PLAN? We facing version compatibility issues while invoking a chaincode using GO sdk

mlohr (Fri, 18 Jan 2019 08:53:54 GMT):
What is the meaning of the channel id given for generating the genesis block? Is this the name of the "system channel"?

sstone1 (Fri, 18 Jan 2019 09:01:37 GMT):
@naganjaneyulu the peer appears to have died; please can you collect the peer logs by running `docker logs peer0.org1.example.com`?

sstone1 (Fri, 18 Jan 2019 09:04:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ReN6wPdz9rt9S52Jh) @tahaf10 "contract" is short for "smart contract" - chaincode and smart contract are really the same thing. context is the per transaction context that can be used to interact with the ledger (it includes the stub APIs).

sstone1 (Fri, 18 Jan 2019 09:06:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nmGPdoDd3kGxaH4aa) @KartikChauhan "chaincode install" copies the node.js chaincode *source code* into the peer container; it does not execute it or run "npm install". "chaincode instantiate" builds a new docker image for the node.js chaincode to run in, and this docker image is based off a docker image that includes node.js. chaincode never runs inside the peer container.

sstone1 (Fri, 18 Jan 2019 09:06:47 GMT):
@Aniket.1 you must use node.js version 8

sstone1 (Fri, 18 Jan 2019 09:07:46 GMT):
@Gaurab 2 you need to contact IBM support via the IBM Cloud ticket process

sstone1 (Fri, 18 Jan 2019 09:08:03 GMT):
(Rocket.Chat is for Hyperledger questions only)

Heena078 (Fri, 18 Jan 2019 09:17:16 GMT):
Have anyone added new peer into banalance_Transfer sample???i am getting error in that.....while doing docker-compose.yaml up peer getting Exited... Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[29 235 77 209 247 137 66 148 215 8 152 137 14 121 210 127 249 156 87 155 42 192 135 189 14 68 152 18 178 83 134 74]]: Key with SKI 1deb4dd1f7894294d70898890e79d27ff99c579b2ac087bd0e449812b253864a not found in /etc/hyperledger/fabric-ca-server/msp/keystore

MignonGakuba (Fri, 18 Jan 2019 09:20:07 GMT):
Hello , I am working on fabric-samples ´fabcar´ tutorial and so was I following the ´Build your first Application´ explanation.. Is it possible to add a new method to the chaincode fabcar ? Because I was trying to add a new method to the fabcar.go but that didnt work.

sstone1 (Fri, 18 Jan 2019 09:20:40 GMT):
@MignonGakuba what didn't work? what did you try? what errors did you get?

Heena078 (Fri, 18 Jan 2019 09:28:25 GMT):
Hi...I added new peer into balance_Transfer sample its working fine but while doing docker-compose.yaml up CA getting Exited... Can anyone knows how to resolve this ??? Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[29 235 77 209 247 137 66 148 215 8 152 137 14 121 210 127 249 156 87 155 42 192 135 189 14 68 152 18 178 83 134 74]]: Key with SKI 1deb4dd1f7894294d70898890e79d27ff99c579b2ac087bd0e449812b253864a not found in /etc/hyperledger/fabric-ca-server/msp/keystore

mbwhite (Fri, 18 Jan 2019 09:30:52 GMT):
@Aniket.1 worth adding a watch to this issue https://jira.hyperledger.org/browse/FAB-13075

mfaisaltariq (Fri, 18 Jan 2019 09:45:39 GMT):
Has joined the channel.

GianlucaPinto (Fri, 18 Jan 2019 09:58:22 GMT):
Has joined the channel.

GianlucaPinto (Fri, 18 Jan 2019 09:58:27 GMT):
hi all, why when i try to create a channel i receive the following error:``` 2019-01-18 09:53:12.524 UTC [orderer.common.broadcast] ProcessMessage -> WARN 178 [channel: tboxchannel] Rejecting broadcast of config message from 172.18.0.8:56746 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ```

KartikChauhan (Fri, 18 Jan 2019 10:13:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cHR5DZzcFZkK7yAjM) @sstone1 Thanks. I installed and instantiated a node.js chaincode and looked inside the chaincode container. I found node.js and go installed.

Aniket.1 (Fri, 18 Jan 2019 10:15:08 GMT):
@mbwhite I had the look

Aniket.1 (Fri, 18 Jan 2019 10:15:50 GMT):
@mbwhite @sstone1 Is there any workaround for this except downgrading node.js?

sstone1 (Fri, 18 Jan 2019 10:19:17 GMT):
@Aniket.1 no, we are aiming to deliver node.js 10 support in v1.4.1 and v2.0 though

Aniket.1 (Fri, 18 Jan 2019 10:20:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RH7PedeqvAezKzcNd) @sstone1 okay

anaswar (Fri, 18 Jan 2019 10:40:31 GMT):
Is there any official documentation explaining how to configure a multi-org Hyperledger Fabric network, with each ORG on different physical machines/ip ?

WouterVanHecke (Fri, 18 Jan 2019 10:53:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h3EHMzQeraTPchfuS) @anaswar Not, but that's just first network with each peer / org with different ip's

WouterVanHecke (Fri, 18 Jan 2019 10:56:02 GMT):
How hard/ easy is it to add orderers to the network and to change the consensus to kafka or BTF while the network is running?

Yair (Fri, 18 Jan 2019 11:04:37 GMT):
Has joined the channel.

anaswar (Fri, 18 Jan 2019 11:04:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Hr3zcmRH6QacTAFot) @WouterVanHecke each machine should have same copy of docker-compose.yaml files?

AkhilKura (Fri, 18 Jan 2019 11:09:12 GMT):

error.png

AkhilKura (Fri, 18 Jan 2019 11:10:02 GMT):
is there any workaround for this issue

raky35 (Fri, 18 Jan 2019 11:10:14 GMT):
how to see own posted messages /questions?

abityildiz (Fri, 18 Jan 2019 11:30:56 GMT):

Clipboard - January 18, 2019 2:30 PM

WouterVanHecke (Fri, 18 Jan 2019 11:42:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NEt5PokpArNFsKKQm) @AkhilKura You can go to the composer channel. Or if you can show the error the peer gives you

AkhilKura (Fri, 18 Jan 2019 11:50:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=85HvSb9B9DY3DBYcF) @WouterVanHecke i am not getting any error regarding peer'

FabricBeer (Fri, 18 Jan 2019 11:55:17 GMT):
Has joined the channel.

sonukumar18 (Fri, 18 Jan 2019 11:59:02 GMT):
Has joined the channel.

sonukumar18 (Fri, 18 Jan 2019 11:59:42 GMT):
Hi all, can any one help me to start fabric in go language? thanks

hyper_learner_ak (Fri, 18 Jan 2019 12:03:30 GMT):
I have multiple put state in a loop deducting some value in a json object I am deducting that value in every loop and calling stub.putState() to update the ledger but in the next loop I don't get the updated value and the ledger is not updated upto that time can anyone suggest the solution for this

dave.enyeart (Fri, 18 Jan 2019 12:45:37 GMT):
@hyper_learner_ak Chaincode is not writing directly to the ledger, it is preparing changes to apply to the ledger at commit time. If you re-read within chaincode you will be reading the committed state, not the new proposed state. For details see https://hyperledger-fabric.readthedocs.io/en/latest/readwrite.html

dave.enyeart (Fri, 18 Jan 2019 12:47:56 GMT):
@sonukumar18 `peer node start` will bring up a Fabric peer. If you are looking to bring up a network and deploy go chaincode, read the tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

dave.enyeart (Fri, 18 Jan 2019 12:54:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p6Aivf9HyAB6qprao) @MignonGakuba It's probably because the peer is finding the original chaincode image. The tutorial provides instructions on how to remove the old image: ```docker rm -f $(docker ps -aq) docker rmi -f $(docker images | grep fabcar | awk '{print $3}')```

rameshyadav444 (Fri, 18 Jan 2019 13:15:40 GMT):
Has joined the channel.

rameshyadav444 (Fri, 18 Jan 2019 13:16:03 GMT):
Hello Everyone, Can we debug nodejs or golang chaincode in vs code? If yes please let me know.

naganjaneyulu (Fri, 18 Jan 2019 13:16:28 GMT):
@sstone1 pls find the logs for

naganjaneyulu (Fri, 18 Jan 2019 13:16:31 GMT):
$ docker logs peer0.org1.example.com 2019-01-18 13:13:17.537 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/msp/peer/: could not load a valid signer certificate from directory /etc/hyperledger/msp/peer/signcerts: stat /etc/hyperledger/msp/peer/signcerts: no such file or directory

naganjaneyulu (Fri, 18 Jan 2019 13:16:31 GMT):
@sstone1 Docker version 18.03.0-ce, build 0520e24302, docker-compose version 1.20.1, build 5d8c71b2

CorentinPacaud (Fri, 18 Jan 2019 13:59:18 GMT):
Hi, I have a question. I try to launche cli, orderer, ca, peer0 and db0 on machine 0 and peer1 and db1 on machine1. But when I try to fetch channel config from peer1 I have this error : ``` 2019-01-18 13:56:42.595 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-01-18 13:56:42.598 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} ```

CorentinPacaud (Fri, 18 Jan 2019 13:59:21 GMT):
Any idea ?

sstone1 (Fri, 18 Jan 2019 14:05:01 GMT):
@naganjaneyulu inside the same directory as the `startFabric.sh` script, can you please run `find ../basic-network/crypto-config -type f` and paste the output in here (the first 5 lines will do)

sstone1 (Fri, 18 Jan 2019 14:05:21 GMT):
can you also provide some info about your OS, as well as `docker -v` and `docker-compose -v`

Lakshmipadmaja (Fri, 18 Jan 2019 14:06:05 GMT):
Hi, I have a doubt regarding the Query(read-only) transaction in Hyperledger Fabric. I tried to submit Query transaction for ordering, validation, and commit, to record the query proof on the ledger. When we issue a query transaction from invoke function, the endorsing peers should return their endorsements(includes the transaction ReadWrite set) for the given proposal. The proposal response includes the chaincode execution response message, results (read set and write set), and signature. Since this is a query transaction, writeset should not be added(or should be empty - as we don't have transaction writes inside query()). But in my observation, the query response(transaction writeset) is also getting recorded in to the blockchain. Is this the expected behavior?

Lakshmipadmaja (Fri, 18 Jan 2019 14:14:13 GMT):
Hi, I have a doubt regarding the Query(read-only) transaction in Hyperledger Fabric. I tried to submit Query transaction for ordering, validation, and commit, to record the query proof on the ledger. When we issue a query transaction from invoke function, the endorsing peers should return their endorsements(includes the transaction ReadWrite set) for the given proposal. In general, the proposal response includes the chaincode execution response message, results (read set and write set), and signature. Since this is a query transaction, writeset should not be added(or should be empty - as we don't have transaction writes inside query()). But while testing I have observed that the query response(transaction writeset) is also getting recorded in to the blockchain. Is this the expected behavior? Tested this using fabric-samples/balance-transfer application. ``` echo "POST query chaincode on peers of Org1 and Org2" TRX_ID=$(curl -s -X POST \ http://localhost:4000/channels/mychannel/chaincodes/mycc \ -H "authorization: Bearer $ORG1_TOKEN" \ -H "content-type: application/json" \ -d '{ "peers": ["peer0.org1.example.com","peer0.org2.example.com"], "fcn":"*query*", "args":["a"] }') ```

Lakshmipadmaja (Fri, 18 Jan 2019 14:15:42 GMT):
Hi, I have a doubt regarding the Query(read-only) transaction in Hyperledger Fabric. I tried to submit Query transaction for ordering, validation, and commit, to record the query proof on the ledger. When we issue a query transaction from invoke function, the endorsing peers should return their endorsements(includes the transaction ReadWrite set) for the given proposal. In general, the proposal response includes the chaincode execution response message, results (read set and write set), and signature. Since this is a query transaction, writeset should not be added(or should be empty - as we don't have transaction writes inside query()). But while testing I have observed that the query response(transaction writeset) is also getting recorded in to the blockchain. Is this the expected behavior? Tested this using fabric-samples/balance-transfer application.

dave.enyeart (Fri, 18 Jan 2019 14:20:14 GMT):
Typically you would not submit a query transaction for ordering/commit. But if you do that's fine, the transaction will get recorded on the blockchain, there will simply be no writeset and therefore nothing gets committed to state database.

dave.enyeart (Fri, 18 Jan 2019 14:20:47 GMT):
You may want to do this for example, if you want to recorded auditable proof that you saw some data at a certain point in time.

dave.enyeart (Fri, 18 Jan 2019 14:20:47 GMT):
You may want to do this for example, if you want to record auditable proof that you saw some data at a certain point in time.

Lakshmipadmaja (Fri, 18 Jan 2019 14:31:08 GMT):

image.png

dave.enyeart (Fri, 18 Jan 2019 14:36:41 GMT):
Correct, the entire proposal response will get recorded to the blockchain (blockfile).

dave.enyeart (Fri, 18 Jan 2019 14:36:41 GMT):
Correct, the entire proposal response (readset, empty writeset, chaincode results) gets encoded into the transaction and gets recorded to the blockchain (blockfile).

dave.enyeart (Fri, 18 Jan 2019 14:36:41 GMT):
Correct, the entire proposal response (readset, empty writeset, chaincode results) gets encoded into the transaction that gets recorded to the blockchain (blockfile).

dave.enyeart (Fri, 18 Jan 2019 14:36:41 GMT):
Correct, the entire proposal response (readset, empty writeset, chaincode response) gets encoded into the transaction that gets recorded to the blockchain (blockfile).

IgorSim (Fri, 18 Jan 2019 14:43:17 GMT):
hi, question about chaincode that invokes another chaincode in regards to Endorsement policy...For example A invokes B , but B have different end. policy then A..does commiting peers inspect if endorsement policy for B is fullfilled during validation phase?

Lakshmipadmaja (Fri, 18 Jan 2019 14:50:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xnnSq67Dx3Cr3ZusM) @dave.enyeart Here i think writeset is not empty, as i am able to view 90(query response for key 'a') and 210 (query response for key 'b') in the blockfile.

Lakshmipadmaja (Fri, 18 Jan 2019 14:50:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xnnSq67Dx3Cr3ZusM) @dave.enyeart Here i think writeset is not empty, as i am able to view 90(query response for key 'a') and 210 (query response for key 'b') in the blockfile.

dave.enyeart (Fri, 18 Jan 2019 14:52:29 GMT):
That's the chaincode 'response', not the writeset. The writeset is the set of key/value changes that should get applied to state database upon commit. In your case, you have a chaincode resposne, but empty writeset.

dave.enyeart (Fri, 18 Jan 2019 14:52:29 GMT):
That's the chaincode 'response', not the writeset. The writeset is the set of key/value changes that should get applied to state database upon commit. In your case, you have a chaincode response, but empty writeset.

raky35 (Fri, 18 Jan 2019 16:04:50 GMT):
composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network.bna ⠹ Installing business network. This may take a minute...E0117 21:32:32.532056000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.532847000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.533437000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.534208000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.537892000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.546455000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.547008000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.547544000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠸ Installing business network. This may take a minute...E0117 21:32:32.658260000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.658921000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.662836000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0117 21:32:32.664557000 4371604928 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ⠴ Installing business

CorentinPacaud (Fri, 18 Jan 2019 16:14:12 GMT):
hey, when I try to create my channel, I have this error : any idea ? ```Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied```

Bayeed (Fri, 18 Jan 2019 16:29:19 GMT):
Hi! I have a simple node.js app which uses fabcar network. My intention is to test it with Caliper but having problems with lack of resources/documentations/tutorials on this. Can anyone help me out with some directions or suggestions? Thank you in advance.

ksheer (Fri, 18 Jan 2019 16:40:10 GMT):
how to attach couchdb to peer which is installey natively (without docker)

k2ff (Fri, 18 Jan 2019 17:04:16 GMT):
Has joined the channel.

floydr (Fri, 18 Jan 2019 18:25:59 GMT):
Has joined the channel.

blockchainer (Fri, 18 Jan 2019 18:56:59 GMT):

error-in-peer.log

blockchainer (Fri, 18 Jan 2019 18:57:07 GMT):
Can anyone help me with this error ^

yacovm (Fri, 18 Jan 2019 19:13:08 GMT):
@sykesm ^ ``` github.com/hyperledger/fabric/core/scc/lscc.(*LifeCycleSysCC).ChaincodeContainerInfo(0xc0001c3f90, 0xc000432ec8, 0x4, 0x0, 0x0, 0x18a16f4, 0x5, 0xc0004330b4) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/scc/lscc/lscc.go:165 +0x37 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Launch(0xc0001823f0, 0x0, 0x0, 0xc000432ec8, 0x4, 0x18a16f4, 0x5, 0x0, 0x0, 0x30, ...) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:141 +0x117 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke(0xc0001823f0, 0xc0001459d0, 0xc000336c08, 0xc000127e80, 0x16f1720, 0xc000336b01, 0xc000326900) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:284 +0x103 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute(0xc0001823f0, 0xc0001459d0, 0xc000336c08, 0xc000127e80, 0x0, 0xc000127e80, 0x0, 0x0) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:238 +0x50 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute(0xc000413aa0, 0xc0001459d0, 0x0, 0x0, 0xc000432ec8, 0x4, 0x18a16f4, 0x5, 0xc00030cf80, 0x40, ...) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/endorser/support.go:147 +0x1a9 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode(0xc000366400, 0xc0001459d0, 0x18a16f4, 0x5, 0xc000127e80, 0xc0002f7db0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/endorser/endorser.go:146 +0x264 ```

yacovm (Fri, 18 Jan 2019 19:13:08 GMT):
@sykesm ^ ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x1366077] goroutine 105 [running]: github.com/hyperledger/fabric/core/scc/lscc.(*LifeCycleSysCC).ChaincodeContainerInfo(0xc0001c3f90, 0xc000432ec8, 0x4, 0x0, 0x0, 0x18a16f4, 0x5, 0xc0004330b4) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/scc/lscc/lscc.go:165 +0x37 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Launch(0xc0001823f0, 0x0, 0x0, 0xc000432ec8, 0x4, 0x18a16f4, 0x5, 0x0, 0x0, 0x30, ...) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:141 +0x117 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke(0xc0001823f0, 0xc0001459d0, 0xc000336c08, 0xc000127e80, 0x16f1720, 0xc000336b01, 0xc000326900) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:284 +0x103 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute(0xc0001823f0, 0xc0001459d0, 0xc000336c08, 0xc000127e80, 0x0, 0xc000127e80, 0x0, 0x0) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:238 +0x50 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute(0xc000413aa0, 0xc0001459d0, 0x0, 0x0, 0xc000432ec8, 0x4, 0x18a16f4, 0x5, 0xc00030cf80, 0x40, ...) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/endorser/support.go:147 +0x1a9 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode(0xc000366400, 0xc0001459d0, 0x18a16f4, 0x5, 0xc000127e80, 0xc0002f7db0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/bin/src/github.com/hyperledger/fabric/core/endorser/endorser.go:146 +0x264 ```

sykesm (Fri, 18 Jan 2019 19:13:08 GMT):
Has joined the channel.

MaddaliPadmaja (Fri, 18 Jan 2019 19:13:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SWrcMp6y9bnHhu7zd) @dave.enyeart Thanks dave for the clarification.

blockchainer (Fri, 18 Jan 2019 19:20:46 GMT):
Thanks @yacovm

tommyjay (Fri, 18 Jan 2019 19:41:54 GMT):
how can i call a function in chaincode B from a function in chaincode A using the nodesdk?

blockchainer (Fri, 18 Jan 2019 20:03:39 GMT):
Due to that error, I built release-1.2 and now getting the error on channel incampatibility: `config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported panic: [channel bagchain-system-channel] config requires unsupported channel capabilities: Channel capability V1_3 is required but not supported: Channel capability V1_3 is required but not supported` I have already changed V1_3=false in configtx.yaml while creating the genesis.block, is there another place where I need to configure this?

JulianBall (Fri, 18 Jan 2019 20:35:12 GMT):
Has joined the channel.

jordanmmck (Fri, 18 Jan 2019 23:55:10 GMT):
Can anyone give me any tips on how to go about building a PoC with Hyperledger Fabric? I've gone through a ton of tutorials, I've played around with the fabric-samples. Should I just frankenstein a bunch of pieces of code from the fabric-samples until I have something that does what I want? Are there best practices on this kind of thing?

jordanmmck (Fri, 18 Jan 2019 23:56:06 GMT):
I'm having a hard time knowing how to transition from the "followed a bunch of tutorials, read bunch of posts" stage to the "building an actual application" stage.

naganjaneyulu (Sat, 19 Jan 2019 00:54:03 GMT):
XXXX@XXX-XXXXXX MINGW64 /c/fabric-samples/fabcar ((v1.4.0)) $ find ../basic-network/crypto-config -type f ../basic-network/crypto-config/ordererOrganizations/example.com/ca/a0606a4a860a1e31c90a23788da6f3b6b74925ed0d23061af4899409ba46ae6a_sk ../basic-network/crypto-config/ordererOrganizations/example.com/ca/ca.example.com-cert.pem ../basic-network/crypto-config/ordererOrganizations/example.com/msp/admincerts/Admin@example.com-cert.pem ../basic-network/crypto-config/ordererOrganizations/example.com/msp/cacerts/ca.example.com-cert.pem ../basic-network/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem

naganjaneyulu (Sat, 19 Jan 2019 00:54:32 GMT):
Docker version 18.03.0-ce, build 0520e24302

naganjaneyulu (Sat, 19 Jan 2019 00:54:49 GMT):
docker-compose version 1.20.1, build 5d8c71b2

naganjaneyulu (Sat, 19 Jan 2019 00:55:00 GMT):
@sstone1 - can you please check the above details

naganjaneyulu (Sat, 19 Jan 2019 00:55:08 GMT):
OS is Windows 10 pro

sonukumar18 (Sat, 19 Jan 2019 04:24:52 GMT):
Hi @dave.enyeart ,

sonukumar18 (Sat, 19 Jan 2019 04:25:24 GMT):
Thank you for your response i am looking in docs

tahaf10 (Sat, 19 Jan 2019 04:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wWApjfY7hZYcjYFZp) @sstone1 @sstone1 I'm a bit confused with what the per transaction context means

AkhilKura (Sat, 19 Jan 2019 05:46:05 GMT):
how to delete the connection profile in hyperledger

PPV (Sat, 19 Jan 2019 06:00:23 GMT):

Screenshot from 2019-01-19 11-28-08.png

Rajatsharma (Sat, 19 Jan 2019 06:34:33 GMT):
@muralisr @sstone1 @dave.enyeart Can anyone please help to use the `The Operations Service` section of the documentation. I wanted to use `/metrics` endpoint to utilize Prometheus. I had exposed the port in the docker-compose. And then when it was not running I made the changes and restarted the peer. Prometheus is running on the peer. But I can't access that on my machine.

Rajatsharma (Sat, 19 Jan 2019 06:34:43 GMT):
Can anybody please help in this.

Rajatsharma (Sat, 19 Jan 2019 06:50:29 GMT):
If I curl inside the docker container as `curl 0.0.0.0:9443/healthz` or `curl 0.0.0.0:9443/metrics`. I get an output but when I'm outside it even when port are exposed as `9443:9443` in docker container, I'm not able to get the same output. Can anybody help me with this.

Rajatsharma (Sat, 19 Jan 2019 07:02:21 GMT):
From my machine when I send a curl request `curl 0.0.0.0:9443/healthz`, I get ``` curl: (56) Recv failure: Connection reset by peer ```

TharinduSandaruwan1 (Sat, 19 Jan 2019 07:51:51 GMT):
when I try to create a channel with peer channel create -o orderer.trafficfine.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/trafficfine.com/orderers/orderer.trafficfine.com/msp/cacerts/ca.trafficfine.com-cert.pem

TharinduSandaruwan1 (Sat, 19 Jan 2019 07:51:51 GMT):
when I try to create a channel with peer channel create -o orderer.trafficfine.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/trafficfine.com/orderers/orderer.trafficfine.com/msp/cacerts/ca.trafficfine.com-cert.pem with this command it gave me this error on the console.

TharinduSandaruwan1 (Sat, 19 Jan 2019 07:53:16 GMT):
The error was 2019-01-19 07:09:29.025 UTC [msp] getMspConfig -> WARN 001 Intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/intermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/intermediatecerts: no such file or directory] 2019-01-19 07:09:29.040 UTC [msp] getMspConfig -> WARN 002 TLS intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/tlsintermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/tlsintermediatecerts: no such file or directory] 2019-01-19 07:09:29.042 UTC [msp] getMspConfig -> WARN 003 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/crls: no such file or directory] 2019-01-19 07:09:29.043 UTC [msp] getMspConfig -> INFO 004 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/Millenniumitesp.trafficfine.com/users/Admin@Millenniumitesp.trafficfine.com/msp/config.yaml: no such file or directory] Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable

sstone1 (Sat, 19 Jan 2019 09:54:13 GMT):
@tahaf10 a single chaincode instance can be executing multiple concurrent transactions at the same time; the transaction context is a reference to the current transaction being processed, and includes things like the transaction ID and the submitter of the transaction.

sstone1 (Sat, 19 Jan 2019 09:55:19 GMT):
@naganjaneyulu I can only guess there's some problems with the volume mounts on your windows system - I've not tried fabcar on Windows yet

SahithiDyavarashetti (Sat, 19 Jan 2019 11:03:37 GMT):
hi i got the following error on executing command::::✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

SahithiDyavarashetti (Sat, 19 Jan 2019 11:04:43 GMT):
Executed the following command ::::::::::::::::::::::::::::::::::::::composer network install --card PeerAdmin@hlfv1 --archiveFile procurement-phase@0.0.86.bna

naganjaneyulu (Sat, 19 Jan 2019 12:23:41 GMT):
@sstone1 what u suggest with this issue then.?

muralisr (Sat, 19 Jan 2019 12:38:40 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=JLSW4sL4LNjKCAQQo

muralisr (Sat, 19 Jan 2019 12:39:39 GMT):
@Rajatsharma best to open a JIRA with detailed reproduction instructions

muralisr (Sat, 19 Jan 2019 12:39:39 GMT):
@Rajatsharma best to open a JIRA with detailed reproduction instructions, given the newness of this unless you get some suggestions

muralisr (Sat, 19 Jan 2019 12:45:58 GMT):
oh wait ...missed the follow up comments... so you _are_ able to access successfully except from not outside the container.

muralisr (Sat, 19 Jan 2019 12:45:58 GMT):
oh wait ...missed the follow up comments... so you _are_ able to access successfully except from not outside the container. Given that this is likely a local env issues and not a fabric issue.

muralisr (Sat, 19 Jan 2019 12:48:57 GMT):
and assuming you have exposed ports correctly I'd just check they are indeed listenting on host (with netstate or somethibg) and check to see what IP they are bound to. Try using that `curl :9443/healthz` instead of `curl 0.0.0.0:9443/healthz`

muath939 (Sat, 19 Jan 2019 14:31:29 GMT):
please any one take chfa exam msg me

tahaf10 (Sat, 19 Jan 2019 20:03:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Am8RehyrQP6eq8bRM) @sstone1 That clears it up. Thanks!

saif_lesnar (Sat, 19 Jan 2019 21:07:17 GMT):
i am facing problems in balance-transfer app, provided by the hyperledger. Whenever i try to join channel on Org1, I get this error,

saif_lesnar (Sat, 19 Jan 2019 21:07:33 GMT):

HyperledgerIssue.png

saif_lesnar (Sat, 19 Jan 2019 21:11:04 GMT):
I didn't changed any code just followed the instructions, but still got these errors.

DuneeshaFernando (Sun, 20 Jan 2019 01:36:33 GMT):
Has joined the channel.

DuneeshaFernando (Sun, 20 Jan 2019 01:38:52 GMT):
benchmark

gyc567 (Sun, 20 Jan 2019 03:47:08 GMT):
Has joined the channel.

gyc567 (Sun, 20 Jan 2019 03:47:34 GMT):
#performance-and-scale-wg

sepld (Sun, 20 Jan 2019 08:49:43 GMT):
Has joined the channel.

fullkomnun (Sun, 20 Jan 2019 10:02:08 GMT):
Has joined the channel.

fullkomnun (Sun, 20 Jan 2019 10:02:52 GMT):
Has anyone had experience with integrating Hyperledger Fabric OSS with HSM-as-a-service or HSM in general? Is this even possible through proper bccsp configuration? #fabric-questions

fullkomnun (Sun, 20 Jan 2019 10:02:52 GMT):
Has anyone had experience with integrating Hyperledger Fabric OSS with HSM-as-a-service or HSM in general? Is this even possible through proper bccsp configuration? #fabric-questions

fullkomnun (Sun, 20 Jan 2019 10:02:52 GMT):
Does anyone have experience with integrating Hyperledger Fabric OSS with HSM-as-a-service or HSM in general? Is this even possible through proper bccsp configuration? #fabric-questions

fullkomnun (Sun, 20 Jan 2019 10:02:52 GMT):
Does anyone have experience with integrating Hyperledger Fabric OSS with HSM-as-a-service or HSM in general? Is this even possible through proper bccsp configuration? Is there any other built-in way to customise the key management of ca-server and ca-client? #fabric-questions

AlbertoCarmona (Sun, 20 Jan 2019 11:48:16 GMT):
I'm trying to follow the commercial paper example in the docs but there is no "cliMagnetoCorp"

VinayakBhat (Sun, 20 Jan 2019 18:22:15 GMT):
Has joined the channel.

VinayakBhat (Sun, 20 Jan 2019 18:23:31 GMT):
hi, I am trying to run a chaincode, these are the commands : docker exec -it chaincode bash cd trade_workflow_v1 go build CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=tw:0 ./trade_workflow_v1

VinayakBhat (Sun, 20 Jan 2019 18:23:31 GMT):
hi, I am trying to run a chaincode, these are the commands : docker exec -it chaincode bash cd trade_workflow_v1 go build CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=tw:0 ./trade_workflow_v1

VinayakBhat (Sun, 20 Jan 2019 18:23:31 GMT):
hi, I am trying to run a chaincode, these are the commands : docker exec -it chaincode bash cd trade_workflow_v1 go build CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=tw:0 ./trade_workflow_v1 . but after the last command i get this : INFO 001 Chaincode log level not provided; defaulting to: INFO 2019-01-20 18:17:46.347 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...Error starting Disaster chaincode: error chaincode id not provided. how do I resolve this error ?

VinayakBhat (Sun, 20 Jan 2019 18:23:31 GMT):
hi, I am trying to run a chaincode in a cli conatainer, these are the commands : docker exec -it chaincode bash cd trade_workflow_v1 go build CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=tw:0 ./trade_workflow_v1 . but after the last command i get this : INFO 001 Chaincode log level not provided; defaulting to: INFO 2019-01-20 18:17:46.347 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...Error starting Disaster chaincode: error chaincode id not provided. how do I resolve this error ?

varuntejay (Sun, 20 Jan 2019 18:26:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AjaRaPM7eLWvauhCc) @VinayakBhat Did the chaincode inatalled properly.

varuntejay (Sun, 20 Jan 2019 18:27:02 GMT):
Try running peer chaincode list --instantiated -c mychannel

VinayakBhat (Sun, 20 Jan 2019 18:28:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m4mhHwAhtZPAuuoBL) @varuntejay It says command not found for "peer", i remember it worked b4, but stopped working after that(a similar command)

varuntejay (Sun, 20 Jan 2019 18:31:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZxwfP4iFw2T32tB8b) @VinayakBhat Login to any cli container or any other peer container using docker exec -it cli bash and try to execute the command. If not, can you show me the list of containers running in your system.

varuntejay (Sun, 20 Jan 2019 18:36:01 GMT):
Hi, I've enrolled admin and user using fabric-sdk by giving my own secret(password). I've seen that when I use getUserContext('user1',true) function it is returning me user with out asking secret that I set, during enrollment. Can someone please let me know, how do I set the password check for this.

VinayakBhat (Sun, 20 Jan 2019 18:38:21 GMT):

executionInCLI.png

VinayakBhat (Sun, 20 Jan 2019 18:38:28 GMT):

runningContainers.png

VinayakBhat (Sun, 20 Jan 2019 18:38:28 GMT):

runningContainers.png

VinayakBhat (Sun, 20 Jan 2019 18:38:28 GMT):

runningContainers.png

varuntejay (Sun, 20 Jan 2019 18:42:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bQZsnKCW6GvBgvi52) @VinayakBhat Path that you should execute is /opt/gopath/src/githib.com/hyperledger/peer

varuntejay (Sun, 20 Jan 2019 18:42:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bQZsnKCW6GvBgvi52) @VinayakBhat Path that you should execute is /opt/gopath/src/github.com/hyperledger/peer

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZzxSfgnq5oMumJXTd) @varuntejay ok thanks, I will do it

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zu8mCaxQFddFSwAQH) @varuntejay I am sorry, even this does not exist. There is no peer in the path. But I am pretty sure that it had worked fine when I had tried it for the first time.But it stopped working after that

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
I am sorry, even this does not exist. There is no peer in the path. But I am pretty sure that it had worked fine when I had tried it for the first time.But it stopped working after that. maybe i will just restart my pc and try. then i will update what is happening

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
I was using "docker exec -it chaincode bash" instead of "docker exec -it cli bash". This was all.

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
I was using "docker exec -it chaincode bash" instead of "docker exec -it cli bash" for installing the chaincode. This was all.

VinayakBhat (Sun, 20 Jan 2019 18:44:41 GMT):
I was using "docker exec -it chaincode bash" instead of "docker exec -it cli bash" for installing the chaincode. This was all. thanks.

varuntejay (Sun, 20 Jan 2019 18:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5X4pNTab9cAAAGa7Y) @VinayakBhat My apologies, correct path is following, missed fabric earliet /opt/gopath/src/github.com/hyperledger/fabric/peer

varuntejay (Sun, 20 Jan 2019 18:51:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5X4pNTab9cAAAGa7Y) @VinayakBhat My apologies, correct path is following, missed fabric earlier /opt/gopath/src/github.com/hyperledger/fabric/peer

RyanDuan (Sun, 20 Jan 2019 19:08:50 GMT):
Has joined the channel.

WaleedElsakka (Sun, 20 Jan 2019 21:32:33 GMT):
Hey all! Could someone guide me with developing on Hyperledger Fabric? I am wondering if it is better to develop on an Ubuntu virtual machine running on windows 10, or to just directly develop on windows 10 itself? Its windows 10 community edition. Thanks in advanced.

tahaf10 (Mon, 21 Jan 2019 00:57:08 GMT):
Can someone please explain a little what the function of the ledger-apis folder and its containing code is in the papernet example of fabric 1.4?

benlongstaff (Mon, 21 Jan 2019 02:26:59 GMT):
Has joined the channel.

Lakshmipadmaja (Mon, 21 Jan 2019 05:42:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SWrcMp6y9bnHhu7zd) @dave.enyeart Thanks Dave for the clarification..

Aniket.1 (Mon, 21 Jan 2019 06:15:42 GMT):
can a peer be part of more than one organization?

FabricBeer (Mon, 21 Jan 2019 06:50:47 GMT):
Error: make sure the chaincode procurement-phase has been successfully instantiated and try again: getccdata composerchannel/pro failed: failed to execute transaction 473eee71b1efc57bea20fef532815addc9d64e9da4bbb295e465b5f7d3f4f295: error sending: timeout expired while executing transaction Why I am getting this error?

FabricBeer (Mon, 21 Jan 2019 06:50:47 GMT):
Error: make sure the chaincode procurement-phase has been successfully instantiated and try again: getccdata composerchannel/pro failed: failed to execute transaction 473eee71b1efc57bea20fef532815addc9d64e9da4bbb295e465b5f7d3f4f295: error sending: timeout expired while executing transaction

FabricBeer (Mon, 21 Jan 2019 06:52:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6LqLfLid4LSQi9Qq5) @Aniket.1 yes

Aniket.1 (Mon, 21 Jan 2019 06:54:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=j2EWwczgaDTLHCDKZ) @FabricBeer Can you please add the reasoning?

Aniket.1 (Mon, 21 Jan 2019 06:54:31 GMT):
In this section : https://hyperledger-fabric.readthedocs.io/en/release-1.3/peers/peers.html#peers-and-identity

Aniket.1 (Mon, 21 Jan 2019 06:55:12 GMT):
They say : Moreover, a peer can be owned only by a single organization, and is therefore associated with a single MSP.

FabricBeer (Mon, 21 Jan 2019 06:56:48 GMT):
Yup, owned by single organistation, but can be participated in different organistaions through a channel

Aniket.1 (Mon, 21 Jan 2019 07:10:02 GMT):
So one peer can have multiple identities in one network under different organization. is it? @FabricBeer

Aniket.1 (Mon, 21 Jan 2019 07:11:27 GMT):
In that case, a peer can create a channel of two organization and in both organization he will be the peer. Things seem a bit cumbersome. :thinking:

Aniket.1 (Mon, 21 Jan 2019 07:44:51 GMT):
@FabricBeer any views?

npc0405 (Mon, 21 Jan 2019 07:59:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nwtSGG8i77TFwWupc) @muralisr @muralisr @Rajatsharma @sstone1 I am on same page. only difference is that curl 0.0.0.0:9443/healtz sometime gives me `404 page not found`

npc0405 (Mon, 21 Jan 2019 08:03:06 GMT):
however I could see the metrics for HL are getting printed inside Peer but not able to get outside(Same as @Rajatsharma) Any kind of help is much appreciated

npc0405 (Mon, 21 Jan 2019 08:04:49 GMT):
'curl: (56) Recv failure: Connection reset by peer'

npc0405 (Mon, 21 Jan 2019 08:04:49 GMT):
`curl: (56) Recv failure: Connection reset by peer`

Aniket.1 (Mon, 21 Jan 2019 08:28:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6LqLfLid4LSQi9Qq5) @Rajatsharma @Lakshmipadmaja can you provide your views on it?

arvindkumar6568 (Mon, 21 Jan 2019 08:48:58 GMT):
hello experts i got this error when i start the network Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event

FabricBeer (Mon, 21 Jan 2019 08:59:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZBeK8MnxaRSAF9urA) @arvindkumar6568 can you show your connection.json file

arvindkumar6568 (Mon, 21 Jan 2019 09:03:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4igqcjKqNZ9G7jRxt) @FabricBeer yes { "name": "fabric-network", "x-type": "hlfv1", "version": "1.0.0", "peers": { "peer0.org1.example.com": { "url": "grpc://192.168.43.59:7051" }, "peer1.org1.example.com": { "url": "grpc://192.168.43.201:8051" } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "http://192.168.43.59:7054", "caName": "ca.org1.example.com" } }, "orderers": { "orderer.example.com": { "url": "grpc://192.168.43.59:7050" } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com", "peer1.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "channels": { "composerchannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer1.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true } } } }, "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } } }

blockchainer (Mon, 21 Jan 2019 09:15:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yigLKKc4ZsCweyDyo) Anyone?

blockchainer (Mon, 21 Jan 2019 09:15:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AY48cpAF7QAY9FwTY) @yacovm Anyone?

Aniket.1 (Mon, 21 Jan 2019 09:41:31 GMT):
@blockchainer if you are learning it, you can comment out complete capabilities section

klkumar369 (Mon, 21 Jan 2019 09:54:28 GMT):
Hello all, My question seems to be a silly, but would like to know. I see all the fabric samples are running on dockers, if my understanding is correct. But in the real world, the networks really use dockers? Does the fabric network can't be established without docker? Thanks for your help!

GavitMc (Mon, 21 Jan 2019 10:00:09 GMT):
Has joined the channel.

pramodsmkv (Mon, 21 Jan 2019 10:02:47 GMT):
Has joined the channel.

pramodsmkv (Mon, 21 Jan 2019 10:03:37 GMT):
hello everyone. My name is pramod. i am a btech student and i am doing my major project on bockchain hyperledger fabric. i need to develop a prototype application but unable to know the procedure. can anyone guide me ? Thanks for your help

GavitMc (Mon, 21 Jan 2019 10:05:35 GMT):
Hello everyone I am trying to instantiate a chaincode with external imports without success...i am using golang sdk to do this operation...when I install and instantiate a chaincode without external imports everything goes fine but when I use a vendored chaincode (I used govendor) I receive this error: failed to instantiate the chaincode: sending deploy transaction proposal failed: Transaction processing for endorser [localhost:8051]: gRPC Transport Status Code: (4) DeadlineExceeded. Description: context deadline exceeded

Aniket.1 (Mon, 21 Jan 2019 10:08:17 GMT):
is your peer running at localhost:8051 ? @GavitMc

GavitMc (Mon, 21 Jan 2019 10:10:32 GMT):

Schermata 2019-01-21 alle 12.09.56.png

GavitMc (Mon, 21 Jan 2019 10:10:50 GMT):
yes, i think @Aniket.1

Aniket.1 (Mon, 21 Jan 2019 10:11:55 GMT):
Are you able to call any SDK function for peer by connecting to it?

GavitMc (Mon, 21 Jan 2019 10:14:44 GMT):
I don't how to perform this check because I am new to this, do you know how can i do?...but then why a chaincode without external imports instantiates and this one no?

HM (Mon, 21 Jan 2019 10:19:44 GMT):
Has joined the channel.

HM (Mon, 21 Jan 2019 10:19:59 GMT):
Hi, I am making a demo and getting -- > Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

HM (Mon, 21 Jan 2019 10:21:25 GMT):
Can anyone tell me is this problem related to docker containers and if yes then any solutions

SahithiDyavarashetti (Mon, 21 Jan 2019 10:25:54 GMT):
Hi .Can anyone help me to solve the error??

SahithiDyavarashetti (Mon, 21 Jan 2019 10:25:56 GMT):
Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

HM (Mon, 21 Jan 2019 10:27:25 GMT):
have you done ./startFabric.sh?

HM (Mon, 21 Jan 2019 10:27:35 GMT):
@SahithiDyavarashetti

prakash04 (Mon, 21 Jan 2019 10:27:38 GMT):
How to upload pdf files on Hyperledger fabric blocks ? Can anyone please help me o this ?

SahithiDyavarashetti (Mon, 21 Jan 2019 10:28:08 GMT):
yes i did and generated peer admin card again @HM

prakash04 (Mon, 21 Jan 2019 10:28:26 GMT):
How to upload pdf files on Hyperledger fabric blocks ? Can anyone please help me o this ?

HM (Mon, 21 Jan 2019 10:30:06 GMT):
Does your permissions.acl file has any error? @SahithiDyavarashetti

SahithiDyavarashetti (Mon, 21 Jan 2019 10:30:35 GMT):
No It's working fine @HM

SahithiDyavarashetti (Mon, 21 Jan 2019 10:31:18 GMT):
Is there any other possibilities?? @HM

HM (Mon, 21 Jan 2019 10:33:27 GMT):
I think starting server again after tearDown may work @SahithiDyavarashetti

SahithiDyavarashetti (Mon, 21 Jan 2019 10:33:54 GMT):
Tried with that too .Still i am getting the same error @HM

SahithiDyavarashetti (Mon, 21 Jan 2019 10:38:35 GMT):
@arvindkumar6568 Hi .Can anyone help me to solve the error?? Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

kavyasri (Mon, 21 Jan 2019 10:42:33 GMT):
Has joined the channel.

AkhilKura (Mon, 21 Jan 2019 10:45:21 GMT):
Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: 2 UNKNOWN: access denied: channel [] creator org [Org1MSP]

AkhilKura (Mon, 21 Jan 2019 10:45:47 GMT):
can anyone help me to solve this error

kavyasri (Mon, 21 Jan 2019 10:46:19 GMT):
Hi, when the network is starting am getting error like this : Error: failed to execute transaction 18fd2a4f9f604d9f9000f51ce3fe114a34412bd7917a0d0d49746ccbbc362985::error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 can anyone help me to solve this?

WouterVanHecke (Mon, 21 Jan 2019 10:47:46 GMT):
Which OS are you running?

kavyasri (Mon, 21 Jan 2019 10:48:23 GMT):
linux

WouterVanHecke (Mon, 21 Jan 2019 10:54:00 GMT):
fabric or composer?

kavyasri (Mon, 21 Jan 2019 10:54:47 GMT):
fabric

WouterVanHecke (Mon, 21 Jan 2019 10:56:36 GMT):
in which container do you get this error?

AkhilKura (Mon, 21 Jan 2019 10:57:24 GMT):
Installing business network. This may take a minute… Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline

AkhilKura (Mon, 21 Jan 2019 10:57:38 GMT):
can u help me to s0lve this error

HM (Mon, 21 Jan 2019 10:58:40 GMT):
this error can be because of ip binding issues

Its_Blockchain_Ira (Mon, 21 Jan 2019 11:02:23 GMT):
Has joined the channel.

kavyasri (Mon, 21 Jan 2019 11:09:01 GMT):

Screenshot from 2019-01-21 16-37-39.png

Its_Blockchain_Ira (Mon, 21 Jan 2019 11:14:32 GMT):
Hi Need help when am running * npm install -g composer-cli@0.20.5 * command getting error c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\node_report.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_mo dules\composer-cli\node_modules\node-report\build\api.vcxproj] c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\utilities.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modu les\composer-cli\node_modules\node-report\build\api.vcxproj] c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\module.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modules \composer-cli\node_modules\node-report\build\api.vcxproj] c:\program files (x86)\windows kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\bgh47690\AppData\Roaming\npm\node_modules\npm\node_modules\n ode-gyp\src\win_delay_load_hook.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node- report\build\api.vcxproj] After running >npm install -g composer-cli@0.20.5 OS is windows10

Its_Blockchain_Ira (Mon, 21 Jan 2019 11:14:32 GMT):
Hi Need help when am running * npm install -g composer-cli@0.20.5 * getting error c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\node_report.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_mo dules\composer-cli\node_modules\node-report\build\api.vcxproj] c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\utilities.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modu les\composer-cli\node_modules\node-report\build\api.vcxproj] c:\users\bgh47690\.node-gyp\8.11.3\include\node\uv-errno.h(25): fatal error C1083: Cannot open include file: 'errno.h': No such file or directory (compiling source file ..\src\module.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modules \composer-cli\node_modules\node-report\build\api.vcxproj] c:\program files (x86)\windows kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\bgh47690\AppData\Roaming\npm\node_modules\npm\node_modules\n ode-gyp\src\win_delay_load_hook.cc) [C:\Users\bgh47690\AppData\Roaming\npm\node_modules\composer-cli\node_modules\node- report\build\api.vcxproj] After running >npm install -g composer-cli@0.20.5 OS is windows10

GavitMc (Mon, 21 Jan 2019 11:18:56 GMT):
if i return shim.error somewhere, where can i actually see that this error was returned and read the content? I think my chaincode is failing init returning shim.error but in the terminal i read some timeout endorsement error

pikvik (Mon, 21 Jan 2019 11:43:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cm45NKYS7BtvcfTBG) @AkhilKura check with the keys and certs .

Sarath_Kumar (Mon, 21 Jan 2019 11:45:42 GMT):

log level.PNG

pikvik (Mon, 21 Jan 2019 11:46:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8bKin3vhrGTH58rdB) @Its_Blockchain_Ira You should install composer with this command npm install -g composer-cli For composer v0.19 the command composer network deploy has been removed, and you will now need composer network install and composer network start Note also that Composer v0.19 required Fabric v1.1.0.

pikvik (Mon, 21 Jan 2019 11:48:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KrgEuNnmSTLubGGDe) @Sarath_Kumar https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#information_source--composer-network-start-issues

pikvik (Mon, 21 Jan 2019 11:49:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4ZvyHjuwiT2ngnhtK) @SahithiDyavarashetti https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#information_source--composer-network-start-issues

PranilChhetri (Mon, 21 Jan 2019 11:56:21 GMT):
Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (400): {"message":"OCI runtime create failed: container_linux.go:344: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\": unknown"}

Its_Blockchain_Ira (Mon, 21 Jan 2019 11:57:49 GMT):
@pikvik am following what is given in https://github.com/IBM/BlockchainNetwork-CompositeJourney in this as am very new and started learning from this one

PranilChhetri (Mon, 21 Jan 2019 11:58:10 GMT):
while installing and instantiating chaincode with command docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n main -v 1.0 -p "$CC_SRC_PATH" -l "$CC_RUNTIME_LANGUAGE" docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n main -l "$CC_RUNTIME_LANGUAGE" -v 1.0 -c '{"Args":["init"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" I got following error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (400): {"message":"OCI runtime create failed: container_linux.go:344: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\": unknown"}

blockchainer (Mon, 21 Jan 2019 11:58:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bMXWQ7vATEs4ASc95) @Aniket.1 Alright, thanks! Any recommendations on the "nil pointer dereference"?

GianlucaPinto (Mon, 21 Jan 2019 12:01:32 GMT):
hi all, how are the policy evaluated at channel creation time ?

bjornoj (Mon, 21 Jan 2019 12:02:48 GMT):
Has joined the channel.

Its_Blockchain_Ira (Mon, 21 Jan 2019 12:03:28 GMT):
@pikvik docker-compose -v docker-compose version 1.23.1, build b02f1306 Docker version 18.09.0, build 4d60db4 C:\Users\bgh47690>

Its_Blockchain_Ira (Mon, 21 Jan 2019 12:03:28 GMT):
@pikvik docker-compose -v docker-compose version 1.23.1, build b02f1306 Docker version 18.09.0, build 4d60db4

bjornoj (Mon, 21 Jan 2019 12:03:56 GMT):
Hi everyone :-) Is the only way to invoke a smart-contract to invoke it manually from the outside? Such that it is impossible to deploy a smart-contract that is settled at a specific point in time. If you want to deploy a smart-contract at a specific point in time, you have to create a system externally, and at the specified time, commit a transaction?

bjornoj (Mon, 21 Jan 2019 12:06:35 GMT):
Let's say I want to withdraw money at the same day each month. Is it possible to embed that logic in a smart-contract, or is that impossible/a stupid design?

AkhilKura (Mon, 21 Jan 2019 12:15:41 GMT):
[cli/common] readBlock -> INFO 043 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN}

AkhilKura (Mon, 21 Jan 2019 12:15:51 GMT):
help me to solve this error

Aniket.1 (Mon, 21 Jan 2019 12:24:42 GMT):
``` ```

Aniket.1 (Mon, 21 Jan 2019 12:24:42 GMT):
``` 2019-01-21 17:50:06.780 IST [container] lockContainer -> DEBU 1e8 waiting for container(storage-v0) lock 2019-01-21 17:50:06.780 IST [container] lockContainer -> DEBU 1e9 got container (storage-v0) lock 2019-01-21 17:50:06.780 IST [dockercontroller] Start -> DEBU 1ea Cleanup container dev2-ai-storage-v0 2019-01-21 17:50:06.780 IST [dockercontroller] stopInternal -> DEBU 1eb Stop container dev2-ai-storage-v0(Container not running: dev2-ai-storage-v0) 2019-01-21 17:50:06.780 IST [dockercontroller] stopInternal -> DEBU 1ec Kill container dev2-ai-storage-v0 (Container not running: dev2-ai-storage-v0) 2019-01-21 17:50:06.837 IST [dockercontroller] stopInternal -> DEBU 1ed Removed container dev2-ai-storage-v0 2019-01-21 17:50:06.837 IST [dockercontroller] Start -> DEBU 1ee Start container dev2-ai-storage-v0 2019-01-21 17:50:06.838 IST [dockercontroller] getDockerHostConfig -> DEBU 1ef docker container hostconfig NetworkMode: host 2019-01-21 17:50:06.839 IST [dockercontroller] createContainer -> DEBU 1f0 Create container: dev2-ai-storage-v0 2019-01-21 17:50:07.014 IST [dockercontroller] createContainer -> DEBU 1f1 Created container: dev2-ai-storage-v0-53bae831162d1a91aec8b58b6e2ef845bbb2bd667436476cd23e293fdda9fc28 2019-01-21 17:50:07.153 IST [gossip/election] waitForInterrupt -> DEBU 1f2 [1 253 182 88 55 87 205 254 37 18 181 158 57 167 169 134 105 108 105 233 189 236 137 135 121 175 77 12 14 88 222 150] : Exiting 2019-01-21 17:50:07.153 IST [gossip/election] IsLeader -> DEBU 1f3 [1 253 182 88 55 87 205 254 37 18 181 158 57 167 169 134 105 108 105 233 189 236 137 135 121 175 77 12 14 88 222 150] : Returning true 2019-01-21 17:50:07.153 IST [gossip/election] waitForInterrupt -> DEBU 1f4 [1 253 182 88 55 87 205 254 37 18 181 158 57 167 169 134 105 108 105 233 189 236 137 135 121 175 77 12 14 88 222 150] : Entering 2019-01-21 17:50:07.542 IST [dockercontroller] Start -> DEBU 1f5 Started container dev2-ai-storage-v0 2019-01-21 17:50:07.542 IST [container] unlockContainer -> DEBU 1f6 container lock deleted(storage-v0) ```

Aniket.1 (Mon, 21 Jan 2019 12:25:50 GMT):
getting this on peer while instantiating chaincode, but as response, it get : ``` sendProposal - timed out after:45000 ```

Aniket.1 (Mon, 21 Jan 2019 12:28:12 GMT):
In core.yaml, it is mentioned : ``` # There are 2 modes: "dev" and "net". # In dev mode, user runs the chaincode after starting peer from # command line on local machine. # In net mode, peer will run chaincode in a docker container. mode: net ```

Aniket.1 (Mon, 21 Jan 2019 12:28:55 GMT):
So will changing the mode net to dev is sufficient enough not to start chaincode docker container?

Aniket.1 (Mon, 21 Jan 2019 12:28:55 GMT):
So will changing the mode net to dev is sufficient enough not to start chaincode docker container? @sstone1 @dave.enyeart

Aniket.1 (Mon, 21 Jan 2019 12:28:55 GMT):
So will changing the mode net to dev is sufficient enough not to start chaincode docker container?

david-lsq (Mon, 21 Jan 2019 12:46:15 GMT):
Has joined the channel.

david-lsq (Mon, 21 Jan 2019 12:46:19 GMT):
Hi, i'm having difficulties sending private data between organizations and i was wondering if this could be a problem "Anchor peer peer0.org2.example.com:7051 isn't in our org(Org2MSP) and we have no external endpoint, skipping"

david-lsq (Mon, 21 Jan 2019 12:47:13 GMT):
I also have 2019-01-21 12:23:18.927 UTC [gossip.comm] func1 -> WARN 065 peer0.org1.loansquare.com:7051, PKIid:1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad isn't responsive: EOF 2019-01-21 12:23:18.927 UTC [gossip.discovery] expireDeadMembers -> WARN 066 Entering [1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad] 2019-01-21 12:23:18.928 UTC [gossip.discovery] expireDeadMembers -> WARN 067 Closing connection to Endpoint: , InternalEndpoint: peer0.org1.loansquare.com:7051, PKI-ID: 1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad, Metadata: 2019-01-21 12:23:18.928 UTC [gossip.discovery] expireDeadMembers -> WARN 068 Exiting

david-lsq (Mon, 21 Jan 2019 12:47:13 GMT):
I also have 2019-01-21 12:23:18.927 UTC [gossip.comm] func1 -> WARN 065 peer0.org1.example.com:7051, PKIid:1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad isn't responsive: EOF 2019-01-21 12:23:18.927 UTC [gossip.discovery] expireDeadMembers -> WARN 066 Entering [1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad] 2019-01-21 12:23:18.928 UTC [gossip.discovery] expireDeadMembers -> WARN 067 Closing connection to Endpoint: , InternalEndpoint: peer0.org1.example.com:7051, PKI-ID: 1dd70c3aebd45cc8744d6e71be868d0b3f552a80e40e4ee1f176884b3668c3ad, Metadata: 2019-01-21 12:23:18.928 UTC [gossip.discovery] expireDeadMembers -> WARN 068 Exiting

david-lsq (Mon, 21 Jan 2019 12:47:42 GMT):
but the root of these errors are a bit obscure to me

yacovm (Mon, 21 Jan 2019 13:02:45 GMT):
> we have no external endpoint, skipping that means your peer won't receive updates of private data from other peers

yacovm (Mon, 21 Jan 2019 13:02:59 GMT):
@david-lsq

yacovm (Mon, 21 Jan 2019 13:03:17 GMT):
a peer without an external endpoint is invisible to foreign organizations

pumicerD (Mon, 21 Jan 2019 13:03:38 GMT):
Hello, I am following the steps explained at https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemix.html#how-to-use-idemix in order to use Idemix credentials to sign transaction proposals After adding and Idemix MSP to my _configtx.yaml_ file I get the following error when bringing up the network : `[orderer.commmon.multichannel] newLedgerResources -> PANI 10a Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: creating the MSP manager failed: Invalid *IdemixNewOpts. Version not recognized [0]` Is there any documentation on how to set the MSP version ? Even setting up the *msptype* field is not documented in the sample config file

david-lsq (Mon, 21 Jan 2019 13:09:54 GMT):
@yacovm i thought that this would have to be setup using CORE_PEER_ADDRESS=peer0.org2.example.com:7051 is that it ?

david-lsq (Mon, 21 Jan 2019 13:12:10 GMT):
and i also added one peer per organization as anchor peer

yacovm (Mon, 21 Jan 2019 13:14:03 GMT):
you need another config

yacovm (Mon, 21 Jan 2019 13:14:07 GMT):
that is the external endpoint

yacovm (Mon, 21 Jan 2019 13:14:16 GMT):
`CORE_PEER_GOSSIP_EXTERNALENDPOINT`

david-lsq (Mon, 21 Jan 2019 13:14:23 GMT):
ok, great

yacovm (Mon, 21 Jan 2019 13:14:30 GMT):
it also reads in the log

david-lsq (Mon, 21 Jan 2019 13:14:37 GMT):
thank you very much :smile:

yacovm (Mon, 21 Jan 2019 13:14:43 GMT):
"peer won't be acceesible from external organizations" or something like that

yacovm (Mon, 21 Jan 2019 13:15:06 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/gossip/gossip/gossip_impl.go#L121

david-lsq (Mon, 21 Jan 2019 13:15:08 GMT):
indeed

yacovm (Mon, 21 Jan 2019 13:15:16 GMT):
``` if g.conf.ExternalEndpoint == "" { g.logger.Warning("External endpoint is empty, peer will not be accessible outside of its organization") } ```

prakash04 (Mon, 21 Jan 2019 13:31:19 GMT):
How to upload pdf files on Hyperledger fabric blocks ? Can anyone please help me o this ?

WouterVanHecke (Mon, 21 Jan 2019 13:39:03 GMT):
turn to bytes and save the bytes?

CorentinPacaud (Mon, 21 Jan 2019 14:31:45 GMT):
Hoi When I try this command `docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx`, It works. But when I try with the IP of the machine where Orderer is running, I've got this error : `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied mymachine:~/apps/POC7-MCB/blockchain$ ` Why ? this is a problem because I have the same error when I try to fetch config from another machine.

CorentinPacaud (Mon, 21 Jan 2019 14:31:45 GMT):
Hi When I try this command `docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx`, It works. But when I try with the IP of the machine where Orderer is running, I've got this error : `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied mymachine:~/apps/POC7-MCB/blockchain$ ` Why ? this is a problem because I have the same error when I try to fetch config from another machine.

CorentinPacaud (Mon, 21 Jan 2019 14:31:45 GMT):
Hi When I try this command `docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx`, It works. But when I try with the IP of the machine where Orderer is running, I've got this error : `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` Why ? this is a problem because I have the same error when I try to fetch config from another machine.

VinayakBhat (Mon, 21 Jan 2019 14:53:34 GMT):
Hi``` I am trying to instantiate a chaincode, it is getting stuck in middle.It has worked before. Any idea why ? I am doing it in development enviornment, so the chaincode has to get instantiated only on one peer, should be quick.Any suggestion would be great. ```

VinayakBhat (Mon, 21 Jan 2019 14:53:34 GMT):
Hi``` I am trying to instantiate a chaincode, it is getting stuck in middle.It has worked before. Any idea why ? I am doing it in development enviornment, so the chaincode has to get instantiated only on one peer, should be quick.Any suggestion would be great. ```

CorentinPacaud (Mon, 21 Jan 2019 15:05:01 GMT):
https://stackoverflow.com/questions/54292685/forbidden-failed-to-reach-implicit-threshold-of-1-sub-policies-required-1-re

GianlucaPinto (Mon, 21 Jan 2019 15:39:12 GMT):
hi all :-) why i have to use 2 different profiles ? one for create the genesis and the other for create the channel tx ?

VinayakBhat (Mon, 21 Jan 2019 16:13:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kCBafEy2unLKXcxQS) @GianlucaPinto According to my understanding, genesis block: It is through this block that the orderer knows about the necessary organisations and the peers present in the network. You can then create a channel tx for carrying out business transactions.I think you could say that the genesis profile is like a universal set of organisations, in which you can create other sub channels(here using a channel tx). Or it should be something close to this.

VinayakBhat (Mon, 21 Jan 2019 16:14:20 GMT):
Hi``` I am trying to instantiate a chaincode, it is getting stuck in middle.It has worked before. Any idea why ? I am doing it in development enviornment, so the chaincode has to get instantiated only on one peer, should be quick.Any suggestion would be great. ```

CorentinPacaud (Mon, 21 Jan 2019 16:48:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FT8ChgKLKgwpADhve) Ok, It was a mistake in the IP address. My server n°13 has a IP ending with .19, ... not 13

maxrobot (Mon, 21 Jan 2019 17:10:20 GMT):
Is it possible to query the chaincode policy of a contract?

jcbombardelli (Mon, 21 Jan 2019 18:12:47 GMT):
Has joined the channel.

GiorgosT (Mon, 21 Jan 2019 18:57:46 GMT):
Has joined the channel.

pumicerD (Mon, 21 Jan 2019 19:38:29 GMT):
Hello, I am following the steps explained at https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemix.html#how-to-use-idemix in order to use Idemix credentials to sign transaction proposals After adding and Idemix MSP to my _configtx.yaml_ file I get the following error when bringing up the network : `[orderer.commmon.multichannel] newLedgerResources -> PANI 10a Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consortiums sub-group config: creating the MSP manager failed: Invalid *IdemixNewOpts. Version not recognized [0]` Is there any documentation on how to set the MSP version ? Even setting up the *msptype* field is not documented in the sample config file :-S

vontikov (Mon, 21 Jan 2019 20:20:47 GMT):
Has joined the channel.

jeka_gompa (Mon, 21 Jan 2019 22:26:31 GMT):
Hi everybody, I found the following text on this page (https://openblockchain.readthedocs.io/en/latest/biz/usecases/), as part of key components of the definition of the B2B Contract use case: "Multi-sig contract execution - Some contracts will require one of many signatures to execute. For example, in trade finance, a payment instruction can only be executed if either the recipient or an authorized third party (e.g. UPS) confirms the shipment of the good." - I was wondering if this means that you can implement multi-signature transactions in Hyperledger fabric like is the case of Hyperledger Iroha where peers can distribute half-signed transactions? - If yes where how can this be done? Thanks in advance

aseemrb (Mon, 21 Jan 2019 23:22:03 GMT):
Has joined the channel.

wangdong (Tue, 22 Jan 2019 04:08:50 GMT):
I inspected the peer log, and I found a lot as `CouchDB batch document delete encountered an problem.`

wangdong (Tue, 22 Jan 2019 04:09:25 GMT):
Does this mean cilent is trying to repeatedly delete the same doc?

wangdong (Tue, 22 Jan 2019 04:09:57 GMT):
I find the source code. But I need some quick clue on this so that I can understand the code quickly.

wangdong (Tue, 22 Jan 2019 04:10:03 GMT):
Thanks in advance.

AkhilKura (Tue, 22 Jan 2019 04:11:02 GMT):
[cli/common] readBlock -> INFO 043 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} help me to solve this error

doyajii1 (Tue, 22 Jan 2019 04:12:51 GMT):
Do anyone know whats the maximum scalability of hyperledger fabric v1.2 or v1.3? I have seen some papers indicate that one a channel with one org, hyperledger fabric v 1.0 was able to support up to 13 or 16 nodes but so far I wasn't able to find test result for newer versions.

vafaster (Tue, 22 Jan 2019 04:52:30 GMT):

Clipboard - January 21, 2019 11:52 PM

vafaster (Tue, 22 Jan 2019 04:52:47 GMT):
i have my folder fabric-samples/mn (mn is my folder mynetwork dont use first-network) i executed all comand into this folder crypto.. config... but when i run docker-compose -f docker-compose-cli.yaml up -d error appears. (on the other hand, this command in first-network folder ran successful ) please help me i'm new with hyperledger ..Thanks..``` ```, ``` ============ERROR =================== `[user@localhost mn]$ docker-compose -f docker-compose-cli.yaml up -d WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string. WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string. Creating network "mn_byfn" with the default driver Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... latest: Pulling from docker.io/hyperledger/fabric-orderer Digest: sha256:644265186b4887c7d9dcb91895124ccead3c0125c2c4f9eadc421dc9555d7495 Status: Image is up to date for docker.io/hyperledger/fabric-orderer:latest Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling cli (hyperledger/fabric-tools:latest)... Trying to pull repository docker.io/hyperledger/fabric-tools ... latest: Pulling from docker.io/hyperledger/fabric-tools Digest: sha256:aee256916d0cb938d8023fa32ed2745991d32cfe79018e360f1720707ebfbdb5 Status: Image is up to date for docker.io/hyperledger/fabric-tools:latest Creating peer1.org1.example.com ... Creating peer0.org2.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org1.example.com ... Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-orderer latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ERROR: for peer1.org2.example.com Image 'hyperledger/fabric-peer:' not found Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ```

vafaster (Tue, 22 Jan 2019 04:52:47 GMT):
Hello. I have my folder fabric-samples/mn (mn is my folder mynetwork dont use first-network) i executed all comand into this folder crypto.. config... but when i run docker-compose -f docker-compose-cli.yaml up -d error appears. (on the other hand, this command in first-network folder ran successful ) please help me i'm new with hyperledger ..Thanks..``` ```, ``` ============ERROR =================== `[user@localhost mn]$ docker-compose -f docker-compose-cli.yaml up -d WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string. WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string. Creating network "mn_byfn" with the default driver Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... latest: Pulling from docker.io/hyperledger/fabric-orderer Digest: sha256:644265186b4887c7d9dcb91895124ccead3c0125c2c4f9eadc421dc9555d7495 Status: Image is up to date for docker.io/hyperledger/fabric-orderer:latest Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling cli (hyperledger/fabric-tools:latest)... Trying to pull repository docker.io/hyperledger/fabric-tools ... latest: Pulling from docker.io/hyperledger/fabric-tools Digest: sha256:aee256916d0cb938d8023fa32ed2745991d32cfe79018e360f1720707ebfbdb5 Status: Image is up to date for docker.io/hyperledger/fabric-tools:latest Creating peer1.org1.example.com ... Creating peer0.org2.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org1.example.com ... Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-orderer latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ERROR: for peer1.org2.example.com Image 'hyperledger/fabric-peer:' not found Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ```

vafaster (Tue, 22 Jan 2019 04:53:30 GMT):

This is my mn folder.. i want to run hyperledger step by step

vafaster (Tue, 22 Jan 2019 04:54:11 GMT):

This is my mn Folder.. i want no run fabric step by step

vafaster (Tue, 22 Jan 2019 04:54:55 GMT):

mn folder. i want to run fabric step by step

dave.enyeart (Tue, 22 Jan 2019 05:03:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TDCNgKAGN9Jygz4Wf) @wangdong Please open a Jira bug and attach peer debug. This message indicates that the commit bulk update failed and it had to process the commit records individually. The debug will provide a reason why the bulk update failed.

npc0405 (Tue, 22 Jan 2019 05:04:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JZo4QmWzovqFP6NYf) Any idea on this? I tried on AWS machine and configured external ports in docker-compose.yaml file but now I am getting `curl: (52) Empty reply from server`

wangdong (Tue, 22 Jan 2019 05:06:34 GMT):
@dave.enyeart Thanks Dave. I will get more debug log for this. Then I will decide if the jira is needed.

dave.enyeart (Tue, 22 Jan 2019 05:07:26 GMT):
ok, you can also take any findings to #fabric-ledger for more focused discussion

dave.enyeart (Tue, 22 Jan 2019 05:07:26 GMT):
ok, you can also take any findings to #fabric-ledger for more focused discussion, that's where couchdb experts hang out

Srisha (Tue, 22 Jan 2019 05:08:22 GMT):
Has joined the channel.

Srisha (Tue, 22 Jan 2019 05:09:41 GMT):
Hi! How to install hyperledger fabric in our own machine? I am using ubuntu 16.04 in virtual box. and also i installed hyperledger composer

AkhilKura (Tue, 22 Jan 2019 05:21:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sviPKBNrQt9L8Zjeg) @Srisha follow this link :::::::::::::::::::::::::: curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.zip

AkhilKura (Tue, 22 Jan 2019 05:22:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EWR5tcZDTa4JAAHSY) use that command u will get a zip file the extract it

mefy-pushpendu (Tue, 22 Jan 2019 05:36:12 GMT):
@Srisha You can follow these instructions

mefy-pushpendu (Tue, 22 Jan 2019 05:36:13 GMT):
https://medium.com/@pushpendughosh/hyperledger-fabric-make-your-own-blockchain-1fb061149e37

mefy-pushpendu (Tue, 22 Jan 2019 05:36:28 GMT):
to install hyperledger fabric on you computer

mefy-pushpendu (Tue, 22 Jan 2019 05:36:53 GMT):
and run it. and also some basic transactions example shown there.

Srisha (Tue, 22 Jan 2019 05:40:11 GMT):
@AkhilKura @mefy-pushpendu Thank You!!!

mefy-pushpendu (Tue, 22 Jan 2019 05:41:38 GMT):
Hi ! Is there anybody using or has experience on hyperledger fabric using loopback as a mid tier to create apis for angular app ?

mefy-pushpendu (Tue, 22 Jan 2019 05:41:43 GMT):
Please message me.

mefy-pushpendu (Tue, 22 Jan 2019 05:42:14 GMT):
I am stuck in some problems in loopback like complex queries.

Rajatsharma (Tue, 22 Jan 2019 05:50:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xRzEdmBqAQm79h6km) @Aniket.1 No. I don't think so. Even if you could mount the certificates and set environment variables and replicate a peer as that of another organization. It'll always be part of only one organization. And secondly and most importantly this is not advisable at all. You really need to reconsider if you want to make a peer a part of 2 organizations.

Rajatsharma (Tue, 22 Jan 2019 06:04:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7SGn4xn4E8wZM2RCA) @npc0405 The endpoint is `/healthz`. Please check with that.

Aniket.1 (Tue, 22 Jan 2019 06:05:04 GMT):
@Rajatsharma I also think so. In such case, there will great ambiguity to resolve

Rajatsharma (Tue, 22 Jan 2019 06:07:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SCT2onunPTZsMje3B) @npc0405 Even I'm stuck at this exact point. The way we map other ports. It's not working for operations service. And it's not even an experimental feature. Hope someone replies too.

Aniket.1 (Tue, 22 Jan 2019 06:07:42 GMT):
I think at one time, it can be part of only organization even if it contains the certificate for two different orgs

Aniket.1 (Tue, 22 Jan 2019 06:07:42 GMT):
I think at one time, it can be part of only one organization even if it contains the certificate for two different orgs

Aniket.1 (Tue, 22 Jan 2019 06:08:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k865gQfsF2LAhcpgf) Facing similar issue while instantiating the code

Rajatsharma (Tue, 22 Jan 2019 06:10:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XkJbMsy6Nq3j23hRM) @Aniket.1 I just saw your previous message, you can create a channel from any organization with peers of any organization. Look in configtx for profiles, If your profile permits having more than one organization. For reference see byfn. There mychannel is created and all the peers are a part of that. SO you need to be careful while creating the `.tx` file which profile you're using.

Aniket.1 (Tue, 22 Jan 2019 06:11:16 GMT):
yes, i agree

Aniket.1 (Tue, 22 Jan 2019 06:11:40 GMT):
@Rajatsharma do you have any experience with instantiating the chaincode in dev mode?

Rajatsharma (Tue, 22 Jan 2019 06:12:46 GMT):
Yes. I've done that for go chaincode.

Rajatsharma (Tue, 22 Jan 2019 06:13:40 GMT):
I usually build any go chaincode using te `hyperledger-ccenv` containber only

Rajatsharma (Tue, 22 Jan 2019 06:13:40 GMT):
I usually build any go chaincode using te `hyperledger-ccenv` container only

Aniket.1 (Tue, 22 Jan 2019 06:13:42 GMT):
Please consider this : https://chat.hyperledger.org/channel/fabric-questions?msg=tCWttozQNTB3ciHzP

Rajatsharma (Tue, 22 Jan 2019 06:19:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uoEtBX6B7WbWS6Cv5) @Aniket.1 I'll check this one and let you know, If I'll find anything.

sPadawan (Tue, 22 Jan 2019 06:46:02 GMT):
Has joined the channel.

chance304 (Tue, 22 Jan 2019 06:47:59 GMT):
So i was going through the docs.... in the transaction section, the redeem sub-section, i see it says:: The redeem transaction for paper 00001 represents the end of its lifecycle. In our relatively simple example, DigiBank initiates the transaction which transfers the commercial paper back to MagnetoCorp: but the Tx is as follows Txn = redeem Issuer = MagnetoCorp Paper = 00001 Current owner = HedgeMatic Redeem time = 30 Nov 2020 12:00:00 EST My question is shouldn't the current owner be DigiBank? I understand that to explain the flow, they had done a buy transaction by HedgeMatic. So if I am correct, either the Current Owner should be changed, or the statement should say Hedgematic initiates the redeem transaction. Please correct me if i am wrong. I donot want to start my hyperledger docs with such a small but very significant blunder

chance304 (Tue, 22 Jan 2019 06:48:11 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/analysis.html

naqvijafar91 (Tue, 22 Jan 2019 07:13:03 GMT):
MspId + CertId gives you a unique id at the chaincode level: 1. What would happen if the certificate is revoked? 2. Can a user use a certificate issued from msp of org1 via org2 peer? I have also asked a question on stackoverflow https://stackoverflow.com/questions/54302945/unique-id-for-a-user-across-multiple-organizations-for-acl-at-the-chaincode-leve

PPV (Tue, 22 Jan 2019 07:35:04 GMT):
Hello Guys, I am running byfn script for first-network and getting following errors:

PPV (Tue, 22 Jan 2019 07:35:21 GMT):
2019-01-22 07:32:58.792 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied Can anybody help me out?

ycarmel (Tue, 22 Jan 2019 08:42:09 GMT):
Has joined the channel.

FabricBeer (Tue, 22 Jan 2019 08:43:30 GMT):
hello guys, can anyone tell me about why core.yaml is for?

FabricBeer (Tue, 22 Jan 2019 08:43:30 GMT):
hello guys, can anyone tell me about why core.yaml is for?

FabricBeer (Tue, 22 Jan 2019 08:45:18 GMT):
I'm getting this error:::Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH is set to a path which contains core.yaml

Aniket.1 (Tue, 22 Jan 2019 08:52:02 GMT):
core.yaml is used to provide configurations to peer

Aniket.1 (Tue, 22 Jan 2019 08:52:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wyGeC4ipogqn5jAsy) @PPV This is related to your endorsment policy

SahithiDyavarashetti (Tue, 22 Jan 2019 08:58:58 GMT):
can anyone help me with this?

SahithiDyavarashetti (Tue, 22 Jan 2019 08:59:03 GMT):
Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Peer localhost:7051 has rejected transaction '8d53f47f01efa13c5124a019ca7bfaa83622f0ba7e043bafdded1bf388c8ffe6' with code ENDORSEMENT_POLICY_FAILURE Command failed

jeka_gompa (Tue, 22 Jan 2019 09:15:02 GMT):
Hi everybody, I found the following text on this page (https://openblockchain.readthedocs.io/en/latest/biz/usecases/), as part of key components of the definition of the B2B Contract use case: "Multi-sig contract execution - Some contracts will require one of many signatures to execute. For example, in trade finance, a payment instruction can only be executed if either the recipient or an authorized third party (e.g. UPS) confirms the shipment of the good." - I was wondering if this means that you can implement multi-signature transactions in Hyperledger fabric like is the case of Hyperledger Iroha where peers can distribute half-signed transactions? - If yes where how can this be done? Thanks in advance

rrishmawi (Tue, 22 Jan 2019 09:56:25 GMT):
Has joined the channel.

rrishmawi (Tue, 22 Jan 2019 09:56:29 GMT):
Hi experts, I have a question regarding the common use cases for hyperledger fabric. i have a customer that wants to investigate blockchain by implementing a blockchain based solution. the application at the current time consists only of one organization, and planning to involve other organizations (banks for example) at a later stage. i understand that the use of hyperledger fabric is commonly when there is multiple organizations that need to share through applications and to trust each other. However, does it make sense to implement a hyperledger fabric solution consisting of only one organization? wouldn't be more feasible to create a regular centralized data driven solutions? please let me know the benefits (supporting credibility of using blockchain in case of a single organization). Thank you for your feedback.

Aniket.1 (Tue, 22 Jan 2019 10:03:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9KuDjQoxEBwfurR6F) I got it resolved by checking the logs of chaincode container

gnaman (Tue, 22 Jan 2019 10:06:03 GMT):
Has joined the channel.

sudhasakshi (Tue, 22 Jan 2019 10:31:59 GMT):
Has joined the channel.

phantom.assasin (Tue, 22 Jan 2019 10:34:24 GMT):
Using fabric-sdk-go I have created a new peer instance but that is not showing up when i use this command: ```docker ps``` Also the port I have specified for the peer is free. Can anyone help me regarding how to get this new peer instance added to the network? peer url: grpcs://localhost:11051

phantom.assasin (Tue, 22 Jan 2019 10:34:24 GMT):
Using fabric-sdk-go I have created a new peer instance but that is not showing up when i use this command: ```docker ps```. Also the port I have specified for the peer is free. Can anyone help me regarding how to get this new peer instance added to the network? ```peer url: grpcs://localhost:11051```

phantom.assasin (Tue, 22 Jan 2019 10:34:24 GMT):
Using fabric-sdk-go I have created a new peer instance but that is not showing up when i use this command: ```docker ps```. Also the port I have specified for the peer is free. Can anyone help me regarding how to get this new peer instance added to the network? peer url: grpcs://localhost:11051

sudhasakshi (Tue, 22 Jan 2019 10:34:28 GMT):
Hi Team ,when am trying to invoke the private data collection in mables private example using transient, am facing this error ... Error: error parsing transient string: invalid character '\n' in string literal - proposal response: .......could anyone help on this

sudhasakshi (Tue, 22 Jan 2019 10:34:28 GMT):
Hi Team ,I am trying to up startFabric in fabcar iam getting this Error: endorsement failure during invoke. response: status:500 message:"unknown function is invoked" please help me woith these

pumicerD (Tue, 22 Jan 2019 10:38:17 GMT):
@phantom.assasin the container should show up in `docker ps -a`, it's status is probably exited with some error code since it doesn't show in `docker ps`, you can check its logs with `docker logs ` for more information about why it failed to start

phantom.assasin (Tue, 22 Jan 2019 10:39:32 GMT):
```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fe6ef472daae dev-peer1.org2.example.com-mycc-1.0-26c2ef32838554aac4f7ad6f100aca865e87959c9a126e86d764c8d01f8346ab "chaincode -peer.add…" 4 hours ago Up 4 hours dev-peer1.org2.example.com-mycc-1.0 031099245e52 dev-peer0.org1.example.com-mycc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9 "chaincode -peer.add…" 4 hours ago Up 4 hours dev-peer0.org1.example.com-mycc-1.0 410e1f59a97e dev-peer0.org2.example.com-mycc-1.0-15b571b3ce849066b7ec74497da3b27e54e0df1345daff3951b94245ce09c42b "chaincode -peer.add…" 4 hours ago Up 4 hours dev-peer0.org2.example.com-mycc-1.0 0522d0cbde1f hyperledger/fabric-tools "/bin/bash -c ./scri…" 4 hours ago Exited (0) 4 hours ago cli 80401195e047 hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com c827a38ed90c hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com b556ed2f5a29 hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com e0efee3e99a6 hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com faa60222999a hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 4 hours ago Up 4 hours 0.0.0.0:8054->7054/tcp ca.org2.example.com ab07ec14ee81 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 4 hours ago Up 4 hours 0.0.0.0:7054->7054/tcp ca.org1.example.com e8107e076213 hyperledger/fabric-orderer "orderer" 4 hours ago Up 4 hours 0.0.0.0:7050->7050/tcp orderer.example.com```

phantom.assasin (Tue, 22 Jan 2019 10:40:08 GMT):
This is the output of ```docker ps -a ``` I don't see the new returned peer instance here?

phantom.assasin (Tue, 22 Jan 2019 10:40:29 GMT):
Is there any extra step which i need to do after getting a peer instance?

phantom.assasin (Tue, 22 Jan 2019 10:40:36 GMT):
to add it to the network?

pumicerD (Tue, 22 Jan 2019 10:42:00 GMT):
I think you need to add it as a service in your docker-compose file

pumicerD (Tue, 22 Jan 2019 10:42:58 GMT):
how are you creating this instance ?

phantom.assasin (Tue, 22 Jan 2019 10:45:28 GMT):
This is being created from docker-compose.yaml file that i have. Now, after that I am trying to add a new peer to this network using fabric-sdk-go

phantom.assasin (Tue, 22 Jan 2019 10:45:54 GMT):
*dynamically add a new peer node

pumicerD (Tue, 22 Jan 2019 10:47:14 GMT):
oh you are dynamically adding it

phantom.assasin (Tue, 22 Jan 2019 10:47:44 GMT):
yes trying to add in an existing network

pumicerD (Tue, 22 Jan 2019 10:48:36 GMT):
I'm not sure if you can do this directly from the Fabric SDK, because it would need to access the Docker daemon in order to create a new container for it and start it, you can ask #fabric-sdk-go for more details

phantom.assasin (Tue, 22 Jan 2019 10:48:58 GMT):
Oh thanks

pumicerD (Tue, 22 Jan 2019 10:49:00 GMT):
as a workaround you can use the Docker Go SDK to achieve this

pumicerD (Tue, 22 Jan 2019 10:49:28 GMT):
you'll need to create and start the peer container with it before getting the corresponding instance via the Fabric SDK call

pumicerD (Tue, 22 Jan 2019 10:49:39 GMT):
cf https://godoc.org/github.com/docker/docker/client

RodrigoFlorenciano (Tue, 22 Jan 2019 10:58:06 GMT):
Has joined the channel.

pumicerD (Tue, 22 Jan 2019 11:03:01 GMT):
@sudhasakshi which SDK are you using for this ?

UnaiUrkiaga (Tue, 22 Jan 2019 11:08:14 GMT):
Hi! What is the purpose of the genesis block?

SahithiDyavarashetti (Tue, 22 Jan 2019 11:20:06 GMT):
can anyone help me with this? Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Peer localhost:7051 has rejected transaction '8d53f47f01efa13c5124a019ca7bfaa83622f0ba7e043bafdded1bf388c8ffe6' with code ENDORSEMENT_POLICY_FAILURE Command failed

sudhasakshi (Tue, 22 Jan 2019 11:31:27 GMT):
while installing the chaincode, when using go get, am facing an error: Unable to find package:stale checkout?

pumicerD (Tue, 22 Jan 2019 11:35:56 GMT):
@sudhasakshi maybe redirect your question to #fabric-sdk-go

AndresMartinezMelgar.itcl (Tue, 22 Jan 2019 11:49:19 GMT):
hi, are there a new tutorioal (half year or less) about how we can make a net with 2 or more pc that they dont share ip

AndresMartinezMelgar.itcl (Tue, 22 Jan 2019 11:49:19 GMT):
hi, are there a new tutorioal (half year or less) about how we can make a net with 2 or more pc that they dont share ip

GianlucaPinto (Tue, 22 Jan 2019 12:05:00 GMT):
hi all, is there anyone that try to create a channel with 3 (or plus) peers in a single organization?

FrederikEuter (Tue, 22 Jan 2019 12:26:28 GMT):
Has joined the channel.

FrederikEuter (Tue, 22 Jan 2019 12:28:34 GMT):
Hi there, I´m currently trying to make a hyperledger network for my thesis. The thing is kinda based on the tutorials. Somehow I´m abled to instantiate the chaincode, but I instantly get endorsement errors during invocation. Help would be appreciated :)

dave.enyeart (Tue, 22 Jan 2019 12:38:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uxJf72GwnJjivQRXn) @sudhasakshi There is a fix to the tutorial documentation that will be merged soon to solve this... you can see the upcoming change here: https://gerrit.hyperledger.org/r/#/c/28837/

dave.enyeart (Tue, 22 Jan 2019 12:38:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uxJf72GwnJjivQRXn) @sudhasakshi There is a fix to the tutorial documentation that will be merged soon to solve this... you can see the upcoming change here: https://gerrit.hyperledger.org/r/#/c/28837/ . Basically the newline character that base64 adds needs to be stripped off.

banijolly (Tue, 22 Jan 2019 12:46:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=C9qXAjM7DKNmGH42p) .

dave.enyeart (Tue, 22 Jan 2019 12:52:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7WnGomyNHWYPGdcsw) @rrishmawi Where blockchain including Fabric makes sense is if there are multiple parties writing to the ledger that don't fully trust each other. This typically implies multiple organizations. But even in a large organization like a bank there may be two departments that want to operate relatively independently, blockchain can help maintain the integrity of even internal processes and people... as processes and people are not always 100% reliable...mistakes can happen whether you trust or not :) But you are correct to raise doubt and ensure you have a valid use case, as a blockchain project will require more investment than a centralized data solution. But from your description it sounds like they want to lay the foundation for a future network with other organizations, I suspect that is the ultimate goal.

Aniket.1 (Tue, 22 Jan 2019 12:53:19 GMT):
My orderer has committed 6 blocks in a channel. Where does these blocks will appear in file system. In peer data store i.e. ---> ledgersData/chains/chains/channel I am seeing single block file

dave.enyeart (Tue, 22 Jan 2019 12:56:03 GMT):
@Aniket.1 You are looking in the correct place... there will be multiple blocks per blockfile. By default a new blockfile will get created after the prior one reaches 64MB.

Aniket.1 (Tue, 22 Jan 2019 12:57:33 GMT):
ok, got it. Thanks @dave.enyeart

rrishmawi (Tue, 22 Jan 2019 13:20:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HqDTT8hHCSqyu3icG) @dave.enyeart Thanks @dave.enyeart.

pumicerD (Tue, 22 Jan 2019 13:20:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HKZ2Mh2DrZYPQMY6n) I tried setting the Orderer Capabilities in _configtx.yaml_ to both V1_1 and V1_3 with no success

Aniket.1 (Tue, 22 Jan 2019 13:31:05 GMT):
In my channel info, my previous Block Hash & current Block hash is same and height is 7. Hashes are same because there is only one file containing all blocks in file system. is it? @dave.enyeart

Aniket.1 (Tue, 22 Jan 2019 13:31:05 GMT):
In my channel info, my previous Block Hash & current Block hash is same and height is 7. Hashes are same because there is only one file containing all blocks in file system. is it?

sudhasakshi (Tue, 22 Jan 2019 13:34:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hb6MCD9vTss3Kotuy) @pumicerD node-sdk

pumicerD (Tue, 22 Jan 2019 13:35:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=29eT7upd67pKMTyDS) did this not solve your issue ?

Aniket.1 (Tue, 22 Jan 2019 13:41:17 GMT):
@dave.enyeart also one more question, Is the channel orderer the first one to store the block data and then it is broadcasted to other peers or there is anything different?

npc0405 (Tue, 22 Jan 2019 13:50:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dDRgRGKo648JGu9Ar) @Rajatsharma @Rajatsharma ... got this resolved, by removing ip address before :9443 `ListenAdress: :9443`

vafaster (Tue, 22 Jan 2019 14:41:45 GMT):
i have my folder fabric-samples/mn (mn is my folder mynetwork dont use first-network) i executed all comand into this folder crypto.. config... but when i run docker-compose -f docker-compose-cli.yaml up -d error appears. (on the other hand, this command in first-network folder ran successful ) please help me i'm new with hyperledger ..Thanks.. ``` ``` , ``` ============ERROR =================== `[user@localhost mn]$ docker-compose -f docker-compose-cli.yaml up -d WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string. WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string. Creating network "mn_byfn" with the default driver Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... latest: Pulling from docker.io/hyperledger/fabric-orderer Digest: sha256:644265186b4887c7d9dcb91895124ccead3c0125c2c4f9eadc421dc9555d7495 Status: Image is up to date for docker.io/hyperledger/fabric-orderer:latest Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest Pulling cli (hyperledger/fabric-tools:latest)... Trying to pull repository docker.io/hyperledger/fabric-tools ... latest: Pulling from docker.io/hyperledger/fabric-tools Digest: sha256:aee256916d0cb938d8023fa32ed2745991d32cfe79018e360f1720707ebfbdb5 Status: Image is up to date for docker.io/hyperledger/fabric-tools:latest Creating peer1.org1.example.com ... Creating peer0.org2.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org1.example.com ... Pulling peer1.org2.example.com (hyperledger/fabric-peer:latest)... Pulling peer1.org1.example.com (hyperledger/fabric-peer:latest)... Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... Pulling peer0.org1.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-peer ... Pulling peer0.org2.example.com (hyperledger/fabric-peer:latest)... Trying to pull repository docker.io/hyperledger/fabric-orderer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... Trying to pull repository docker.io/hyperledger/fabric-peer ... latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-peer latest: Pulling from docker.io/hyperledger/fabric-orderer latest: Pulling from docker.io/hyperledger/fabric-peer Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ERROR: for peer1.org2.example.com Image 'hyperledger/fabric-peer:' not found Digest: sha256:9707c97f787de1d4d6dd60994d6b8ea2e5cc28b0f42e6849df3fb41c64b41372 Status: Image is up to date for docker.io/hyperledger/fabric-peer:latest ```

amirfatemi (Tue, 22 Jan 2019 14:48:56 GMT):
Has joined the channel.

mattmaru (Tue, 22 Jan 2019 14:53:29 GMT):
Hi guys. I'm a beginner in this world and I've a question for you if it is possible. I build a fabric network with : 2 CA, 4 PEER (2 for each organization) and 1 ORDERER. But all is still in one machine. I would to build it in 2 different machine. FIRST MACHINE : ORG1 peers, Orderer, CA org1 SECOND MACHINE : ORG2 peers, CA org2 Which steps I need to follow to build it ? I have two Ubuntu vm

rodolfofranco (Tue, 22 Jan 2019 15:02:51 GMT):
Has joined the channel.

rodolfofranco (Tue, 22 Jan 2019 15:02:54 GMT):
Hello, I'm trying to configure a Kafka-based ordering service for my Hyperledger Fabric network built using Hyperledger Composer guides. Any help or guide will be greatly appreciated!

Jamie (Tue, 22 Jan 2019 16:14:22 GMT):
Has joined the channel.

Jamie (Tue, 22 Jan 2019 16:15:05 GMT):
You should start with changing orderer type to kafka in configtx.yaml file

Jamie (Tue, 22 Jan 2019 16:24:52 GMT):
While trying to join a new peer to an existing network getting error

Jamie (Tue, 22 Jan 2019 16:25:09 GMT):
I started the network using byfn.sh. Then trying to add a new peer to the network. First extended the peers after modifying crypto-config.yaml- Template: Count: 3 Then created a new yaml file with the extra peer config. Config at end. Then from inside cli container - peer channel join -b mychannel.block new peer yaml config version: "2" volumes: peer2.org1.example.com: networks: byfn: services: peer2.org1.example.com: container_name: peer2.org1.example.com extends: file: base/peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer2.org1.example.com - CORE_PEER_ADDRESS=peer2.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2.org1.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/tls:/etc/hyperledger/fabric/tls - peer2.org1.example.com:/var/hyperledger/production ports: - 11051:7051 - 11053:7053 I expected- successful join. But in logs of peer2.org1 i am seeing warning- [gossip/discovery] func1 -> WARN 04e Could not connect to {peer0.org1.example.com:7051 [] [] peer0.org1.example.com:7051 } : context deadline exceeded I have a vague idea that i need to add something for DSN discovery somewhere, but not sure where. Please help.

blockchainer (Tue, 22 Jan 2019 16:26:16 GMT):
Is it normal that system-chaincodes are disabled (by default) when the peer starts?

blockchainer (Tue, 22 Jan 2019 16:28:49 GMT):
If not, how to enable them?

Jamie (Tue, 22 Jan 2019 16:30:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ac2XaX2L8S6DejMEs) @blockchainer @blockchainer do you mean the installed chaincode? or the system chaincode. I believe two are different things.

pumicerD (Tue, 22 Jan 2019 16:31:06 GMT):
@Jamie you need to set the network for your service, I don't see it in there ?

Jamie (Tue, 22 Jan 2019 16:32:38 GMT):
@pumicerD i have set the network using byfn.sh

blockchainer (Tue, 22 Jan 2019 16:33:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QCJYWQS89gHFhQDfT) I'm referring to system chaincode. I notice that when we use the BYFN, the peer's logs register and deploy system chaincodes (e.g. lscc, cscc). However, when I have built fabric myself, and then running "peer node start", the logs say that system chaincodes are disabled. So I'm looking for the configuration to enable them. Context: I'm receiving a nil-pointer-dereference error when I run "peer channel list" on my peer (just to check if the network is setup properly or not)

pumicerD (Tue, 22 Jan 2019 16:34:00 GMT):
@Jamie I mean in the docker-compose file you pasted, after _volumes_ you usually specify _networks_ for your services, in this case you set it to _byfn_

Jamie (Tue, 22 Jan 2019 16:35:54 GMT):
@pumicerD i haven't set that after the ports. I am going to try with that. Could that be the reason behind the error.

Jamie (Tue, 22 Jan 2019 16:36:47 GMT):
@blockchainer while creating the genesis block we specify the system chain code channel id. Hope you have done that

blockchainer (Tue, 22 Jan 2019 16:37:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ixHxEZ9Pi2TXzuiRP) @Jamie Yes, with the "-channelID" flag

pumicerD (Tue, 22 Jan 2019 16:42:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qnBTSqDpEjFEeWBJb) bump

Jamie (Tue, 22 Jan 2019 17:02:27 GMT):
@blockchainer i have always started the peer nodes using docker-compose command and yaml file. What is the scenario you are following where you are starting the nodes using peer node start?

blockchainer (Tue, 22 Jan 2019 17:06:42 GMT):
I'm trying to setup a network on multiple hosts. Before doing that, I cloned the fabric repo + built the code on my local as well. I'm experimenting with different configurations & network topologies

blockchainer (Tue, 22 Jan 2019 17:07:35 GMT):
Experimenting for production use* E.g. - Avoiding use of solo orderer, avoiding cryptogen (prefering fabric-ca), etc.

Jamie (Tue, 22 Jan 2019 17:19:36 GMT):
aren't you using third party CA for the certificates in the production?

blockchainer (Tue, 22 Jan 2019 17:20:29 GMT):
Will be - yes. But for now, trying to experiment with something that's not cryptogen. :mountain_bicyclist_tone3:

blockchainer (Tue, 22 Jan 2019 17:21:12 GMT):
(Baby steps) But that's secondary - issue is "peer node start" has system-chaincodes disabled by default.

Its_Blockchain_Ira (Tue, 22 Jan 2019 17:27:28 GMT):
getting Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event Command failed error

Its_Blockchain_Ira (Tue, 22 Jan 2019 17:28:16 GMT):
any help from any one ?

pumicerD (Tue, 22 Jan 2019 17:30:59 GMT):
@blockchainer here's the sampleconfig for peers : https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/core.yaml I believe you are looking for the settings shown in lines 517-525 ?

Jamie (Tue, 22 Jan 2019 17:45:40 GMT):
@pumicerD thanks for pointing out missing network var. That was awesome. The new peer joined successfully. Also if i wanted to make hyperledger fabric production ready what all will be the requirements. Any documents i could go through.

pumicerD (Tue, 22 Jan 2019 17:50:53 GMT):
@Jamie this post https://dev.to/presto412/hyperledger-fabric-transitioning-from-development-to-production-4dch covers a lot of good points imo

Jamie (Tue, 22 Jan 2019 17:54:42 GMT):
great will go through

Rajatsharma (Tue, 22 Jan 2019 18:05:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5xp5HRm3PQht88Tq3) @npc0405 Thanks a lot buddy!!!

jordanmmck (Tue, 22 Jan 2019 18:15:43 GMT):
Does anyone know if there is someway to check network health or status? I'm trying to add some organizations to a network and wondering if there is some command I can run to verify that the organization is able to communicate with the network?

pumicerD (Tue, 22 Jan 2019 18:22:06 GMT):
@jordanmmck there's a liveness check available for peer and orderer nodes (cf https://jira.hyperledger.org/browse/FAB-10851)

jordanmmck (Tue, 22 Jan 2019 18:30:32 GMT):
Thanks @pumicerD !

pchochu (Tue, 22 Jan 2019 18:38:32 GMT):
Has joined the channel.

pchochu (Tue, 22 Jan 2019 18:56:38 GMT):
Hello. Is there any tutorial/text/video... on how to build a network from scratch? I mean, especially, how to set up the crypto materials, docker-compose...

Its_Blockchain_Ira (Tue, 22 Jan 2019 19:23:57 GMT):
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card error *Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event Command failed* Following steps given in https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial

rodolfofranco (Tue, 22 Jan 2019 19:50:34 GMT):
@Jamie ok I can do that, but I feel that's not the only thing needed to make it work. I've read some Hyperledger Fabric documentation but they have a different structure than the one Composer uses.

rodolfofranco (Tue, 22 Jan 2019 20:11:09 GMT):
@Jamie after changing the orderer type to kafka and listing the kafka brokers, what else do I need to do? I'm using this https://hyperledger-fabric.readthedocs.io/en/release-1.2/kafka.html

rodolfofranco (Tue, 22 Jan 2019 20:11:58 GMT):
@Jamie There's a step that requires me to modify orderer.yaml file, which is not present in my Fabric installation

trturino (Tue, 22 Jan 2019 20:20:23 GMT):
Has joined the channel.

pumicerD (Tue, 22 Jan 2019 20:22:17 GMT):
@rodolfofranco _orderer.yaml_ is in the _hyperledger/fabric-orderer_ image. you can check its contents at https://github.com/hyperledger/fabric/blob/release-1.2/sampleconfig/orderer.yaml all values can be overwritten by environment variables instead of modifying the file

rodolfofranco (Tue, 22 Jan 2019 20:39:48 GMT):
@pumicerD where do I set those environment variables and how? Is this available if using Fabric network built with Composer?

pumicerD (Tue, 22 Jan 2019 20:49:41 GMT):
@rodolfofranco I don't know how to do this with Composer, maybe try in #composer . I usually set these environment variables in whatever _docker-compose_ file I use to bring the network up.

rodolfofranco (Tue, 22 Jan 2019 20:53:20 GMT):
@pumicerD Ok but these environment variables written inside the _docker-compose.yaml_ can overwrite values inside for example, the _configtx.yaml_ file?

rodolfofranco (Tue, 22 Jan 2019 20:53:48 GMT):
@pumicerD or any other _yaml_ file?

pumicerD (Tue, 22 Jan 2019 20:56:56 GMT):
@rodolfofranco the variables prefixed with _CORE_ (for the peers) overwrite settings from _core.yaml_, the ones prefixed with _ORDERER_ (for the orderer) overwrite settings from _orderer.yaml_

pumicerD (Tue, 22 Jan 2019 20:57:31 GMT):
@rodolfofranco default settings for both files can be found in the _sampleconfig_ folder I linked above

dabbertorres (Tue, 22 Jan 2019 21:12:46 GMT):
Has joined the channel.

vafaster (Tue, 22 Jan 2019 22:56:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ChWGiTLzftsapuXqg) @pchochu this videos are very useful https://www.youtube.com/watch?v=BLT-nCdsS4I

incarose (Wed, 23 Jan 2019 00:26:19 GMT):
Has joined the channel.

unlimited (Wed, 23 Jan 2019 02:18:38 GMT):
Greetings Fabric Gurus! I was wondering in fabric, are the order of submitted transactions maintained when they are recorded on the blockchain? Where can I find this in the docs?

charles.salmon (Wed, 23 Jan 2019 02:42:15 GMT):
Has joined the channel.

charles.salmon (Wed, 23 Jan 2019 02:48:36 GMT):
Hey all, I've got a development network running in my K8s cluster (fairly closely aligned with Alejandro/Nicola's workshop: https://www.youtube.com/watch?v=ubrA3W1JMk0), containing an orderer and a peer. I would like to install some chaincode on the peer. For now, I'm attempting to install the chaincode associated with the Commercial Paper example (here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html). I'm getting the following error when I try to install the chaincode: ``` + GOPATH=/home/jenkins/workspace/blockchain_develop + CORE_PEER_ADDRESS=hlf-peer1-develop:7051 + CORE_PEER_LOCALMSPID=PeerMSP + CORE_PEER_MSPCONFIGPATH=/crypto-material/peerOrganizations/develop.svc.cluster.local/users/Admin@develop.svc.cluster.local/msp + peer chaincode install -n papercontract -v 0 -p /home/jenkins/workspace/blockchain_develop/blockchain/contracts -l node Error: error getting endorser client for install: endorser client failed to connect to 0.0.0.0:7051: failed to create new connection: context deadline exceeded ``` Is anyone able to point me in the right direction (feel free to probe me for more information if need be), or to provide a resource which would be a good follow on from the K8s workshop that I linked to above?

allan.gulley (Wed, 23 Jan 2019 03:02:07 GMT):
I have a high level question about channels and data privacy: Let's say that within Channel #1 there is Supplier A and Seller C, but Seller C also belongs to Channel #2 with Supplier B. Now in this example, Supplier A and Supplier B are competitors, so their product info should never be available for their competitor to see. However, Seller C takes the blockchain data from Channel 1 with Supplier A and sells that data to Supplier B. Does PK cryptography or some other privacy component prevent a malicious party from utilizing blockchain data in this way?

charles.salmon (Wed, 23 Jan 2019 03:38:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dt7KnPExtKze9csNm) Turns out I had two issues. Firstly, I needed to `export` these variables. Secondly, the `CORE_PEER_ADDRESS` was set incorrectly, it needed to be `hlf-peer1-develop.develop.svc.cluster.local` for my use case.

charles.salmon (Wed, 23 Jan 2019 03:38:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dt7KnPExtKze9csNm) Turns out I had two issues. Firstly, I needed to `export` these variables. Secondly, the `CORE_PEER_ADDRESS` was set incorrectly. It needed to be `hlf-peer1-develop.develop.svc.cluster.local` for my use case.

alokkv (Wed, 23 Jan 2019 04:01:53 GMT):
Has joined the channel.

alokkv (Wed, 23 Jan 2019 04:02:17 GMT):
Hi friends, i am trying to create two channel network in one machine.i was able to bring up the network without any problems.but i was not able to configure blockchain explorer config.json file.i dont know how to add two channel configuration in the config.json file.can anyone help please.i am using fabric v1.1 and explorer version 3.4

AkhilKura (Wed, 23 Jan 2019 06:19:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hBL7mdrpFo8Xmm9wi) @Jamie try to keep the same crypto-config folder which was created by peer 1

ShefaliMittal (Wed, 23 Jan 2019 07:01:25 GMT):
Hi, I am facing issues in setting endorsement policy to "AND" instead of "OR". It gives me endorsement policy failure error. While it works fine with OR(ORG1MSP.member, Org2MSP.member) please help

AndresMartinezMelgar.itcl (Wed, 23 Jan 2019 08:03:19 GMT):
hi. I have a question about ip/dns from dockers. I have to put in all the docker an address dns instead of an ip? in the documentation and in all the examples that I have found, it is always a dns. So when you want to make a network (other than locally) that you should use? dns or ip if anyone knows any page or tutorial would be grateful

sunilp (Wed, 23 Jan 2019 08:08:55 GMT):
Has joined the channel.

sunilp (Wed, 23 Jan 2019 08:22:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3FADjf7taeLNxgDj8) @waleed @waleed can you share any example on how to use indy instead if fabric CA

sunilp (Wed, 23 Jan 2019 08:22:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3FADjf7taeLNxgDj8) @waleed can you share any example on how to use indy instead of fabric CA

tazabreu (Wed, 23 Jan 2019 09:36:08 GMT):
Has joined the channel.

blockchainer (Wed, 23 Jan 2019 10:24:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CRY6oFvcxAQLBzS7t) @pumicerD Absolutely! Thanks @pumicerD

WouterVanHecke (Wed, 23 Jan 2019 10:44:59 GMT):
Hi, is there any way of checking which peers are online at the moment?

SahithiDyavarashetti (Wed, 23 Jan 2019 11:13:01 GMT):
``` composer network ping --card admin@procurement-phaseError: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [composerchannel] creator org [Org1MSP] Command failed ```

SahithiDyavarashetti (Wed, 23 Jan 2019 11:13:17 GMT):
Help me to solve this error

AkhilKura (Wed, 23 Jan 2019 11:18:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wa4yRPkAr8B3mAxu9) @WouterVanHecke online means u want to check which peers are running

WouterVanHecke (Wed, 23 Jan 2019 11:19:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=btFbLaSisGJiF2sm3) @AkhilKura Indeed

WouterVanHecke (Wed, 23 Jan 2019 11:19:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=btFbLaSisGJiF2sm3) @AkhilKura Indeed, I see that I can check this with the Discovery Service, so I'll check this out

AkhilKura (Wed, 23 Jan 2019 11:20:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6kgnCnj53oQHjXzAz) @WouterVanHecke indeed , u can also check running peers using command::: docker ps

WouterVanHecke (Wed, 23 Jan 2019 11:21:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ShMuttsAdGjYwx6o9) @AkhilKura Yes, but I want to check when I'm sending an invoke or want to query

FrederikEuter (Wed, 23 Jan 2019 12:01:06 GMT):
Hello together, I´m relatively new to Hyperledger, but so far so good. My question is, if there´s any way to verify the integrity of a certain block or to check if it has been tampered with?

sudhasakshi (Wed, 23 Jan 2019 12:05:59 GMT):
Hi Team,Error: endorsement failure during invoke. response: status:500 message:"unknown function is invoked"

FrederikEuter (Wed, 23 Jan 2019 12:07:24 GMT):
Have you checked the spelling of your function you´re trying to invoke? Is the function declared in you chaincode?

sudhasakshi (Wed, 23 Jan 2019 12:08:05 GMT):
@FrederikEuter yes, same function declared in chaincode

sudhasakshi (Wed, 23 Jan 2019 12:11:08 GMT):
Hi, I am trying to up startFabric in fabcar....... I got this Error: endorsement failure during invoke. response: status:500 message:"unknown function is invoked".... please help me with this error.

UnaiUrkiaga (Wed, 23 Jan 2019 12:29:05 GMT):
Hi, Im trying to add an ORG to a existing BC, not to existing channel. Can I do it? I have to update the genesis block?

WouterVanHecke (Wed, 23 Jan 2019 12:47:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Fa5CKEMYzFMwLDFDb) @UnaiUrkiaga Every channel has its own genesis block. So if you want to add an ORG to the network on a new channel. You'll have to create a new channel

AndresMartinezMelgar.itcl (Wed, 23 Jan 2019 12:53:00 GMT):
check this link, i think is the same trouble, maybe helps

AndresMartinezMelgar.itcl (Wed, 23 Jan 2019 12:53:02 GMT):
https://stackoverflow.com/questions/51420476/hyperledger-fabric-orderer-client-failed-to-connect-to-orderer-example-com

UnaiUrkiaga (Wed, 23 Jan 2019 12:53:22 GMT):
@WouterVanHecke thanks. But if I have a network running, with different channels, and I dont want to add a new ORG to a channel?

UnaiUrkiaga (Wed, 23 Jan 2019 12:53:43 GMT):
I only want to add the new ORG to BC

UnaiUrkiaga (Wed, 23 Jan 2019 12:53:59 GMT):
and in the future, this org can create the channels or whatever

WouterVanHecke (Wed, 23 Jan 2019 12:57:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NXNMnptbxWCPPzP2j) @UnaiUrkiaga Eum, I guess you can already create all the certs needed for that new ORG and maybe alter some specific configuration files. In that way the can already use the netwerk while not being added to an existing channel

UnaiUrkiaga (Wed, 23 Jan 2019 13:16:38 GMT):
@WouterVanHecke but if you modify config files, you have to redo the genesis block or not?

UnaiUrkiaga (Wed, 23 Jan 2019 13:17:38 GMT):
can you explain the diference between genesis block and configuration block?

WouterVanHecke (Wed, 23 Jan 2019 13:23:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nw3NH8L2BH45tk4cC) @UnaiUrkiaga The genesis block is the first block of the channel. so when creating a new channel, you create a new genesis block, if you want to join an ORG to a channel, you'll need to alter then genesis block and send it to the orderer and such. I don't particulary know what the configuration block is and where you use that? I just know that you can generate all the cert and start the new containers without actually joining a channel yet.

UnaiUrkiaga (Wed, 23 Jan 2019 13:32:07 GMT):
@WouterVanHecke I think that there are different genesis blocks. The genesis block of the orderer and the genesis block of the channel. When you create a channel on the peer, you join the channel block not the orderer genesis block.

akashingole (Wed, 23 Jan 2019 13:38:44 GMT):
Has joined the channel.

akashingole (Wed, 23 Jan 2019 13:40:05 GMT):
Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys I wanted to that how can i connect two nodes on a single network, i am working on hyperledger fabric and i'm a beginner. Hey guys i wanted to know that how can i connect 2 nodes on a network in hyperledger fabric and i'm a beginner

akashingole (Wed, 23 Jan 2019 13:43:59 GMT):
Hey guys i wanted to ask that how can i connect 2 nodes in hyperledger fabric , btw i have made the first network and i want to bring another node in my network.

hybridNeo (Wed, 23 Jan 2019 15:45:48 GMT):
Has joined the channel.

hybridNeo (Wed, 23 Jan 2019 15:48:57 GMT):
Hey guys, what do you think is the fastest way to make changes to system chain code and test them via the end to end test. I think `make peer` followed by `make peer-docker` is decent as it does not require a clean. However we had this idea of trying to keep the docker container of the peer running and building the peer and directly copying the peer binaries to the peer containers. I've had no luck in this approach as I get errors regarding configuration, has anyone tried this before ?

unlimited (Wed, 23 Jan 2019 17:27:58 GMT):
hey gurus, can a single machine take up all roles - peer, endorsing peer, as well as being an orderer node?

iamsg43 (Wed, 23 Jan 2019 18:17:54 GMT):
hi All,

iamsg43 (Wed, 23 Jan 2019 18:20:40 GMT):
hi All, trying to upgrade the hyperledger fabric basic network 1.3 to 1.4 finding difficulties can I be able to run the scripts that are in ./byfn.sh upgrade manually, and can anyone help me on this

angela-mavennet (Wed, 23 Jan 2019 20:48:20 GMT):
Has joined the channel.

angela-mavennet (Wed, 23 Jan 2019 20:48:46 GMT):
can we do private events? ie. events but some part (payload) is private except to authorized participants

angela-mavennet (Wed, 23 Jan 2019 21:41:58 GMT):
whats the least disruptive way to add a new org to a channel?

angela-mavennet (Wed, 23 Jan 2019 21:44:16 GMT):
if i use eyfn.sh script, does it temporarily take down the network, also does it save the history of all data, and how long will it be down?

konetichandra (Thu, 24 Jan 2019 00:55:03 GMT):
Has joined the channel.

angela-mavennet (Thu, 24 Jan 2019 00:55:38 GMT):
can i make a clone of the channel, add the new org, then update the channel config to switch to the new one without bringing down the network? ie. each peer switches one by one

konetichandra (Thu, 24 Jan 2019 00:55:40 GMT):
Hi! currently we are using fabric 1.2. can we move this to 1.4 version

angela-mavennet (Thu, 24 Jan 2019 00:56:12 GMT):
or if the channel contains some history we can move back to the original channel after its been updated

angela-mavennet (Thu, 24 Jan 2019 00:56:37 GMT):
but mainly, make a temporary clone for peers to connect to while the channel is being updated

angela-mavennet (Thu, 24 Jan 2019 00:57:11 GMT):
OR hold off on transactions while the update script runs and resume

angela-mavennet (Thu, 24 Jan 2019 00:57:20 GMT):
so it doesnt look like a complete shut down, just delay

konetichandra (Thu, 24 Jan 2019 00:59:52 GMT):
is it good to upgrade to 1.4

DarwinHarianto (Thu, 24 Jan 2019 01:04:11 GMT):
Has joined the channel.

AkhilKura (Thu, 24 Jan 2019 03:49:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2jptaorhF8tg6HKv4) @akashingole follow this link :::::::::::::::::::: https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

SuperSeiyan (Thu, 24 Jan 2019 04:14:42 GMT):
Has joined the channel.

SuperSeiyan (Thu, 24 Jan 2019 04:18:59 GMT):
Hi, I try to make HA function for orderers with kafka mode on 3 orderers. when 1 or 2 of them downed or stopped a orderer still able to make block or not?

sharma66mahesh (Thu, 24 Jan 2019 04:36:11 GMT):
If I am running 2 organizations, one in one host and another in another host in docker swarm mode, do these both hosts need to have same fabric versions? Say if org1 is running fabric v1.1 and org2 is running fabric v1.2, will the containers be able to communicate flawlessly?

naganjaneyulu (Thu, 24 Jan 2019 05:05:24 GMT):
@channel : in startFabric.sh

naganjaneyulu (Thu, 24 Jan 2019 05:05:34 GMT):
I could see the following commands

naganjaneyulu (Thu, 24 Jan 2019 05:05:35 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx

naganjaneyulu (Thu, 24 Jan 2019 05:06:07 GMT):
I just went inside my docker

naganjaneyulu (Thu, 24 Jan 2019 05:06:08 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx

naganjaneyulu (Thu, 24 Jan 2019 05:06:22 GMT):
docker@default:/etc$ ls acpi issue passwd shadow docker ld.so.cache passwd- shadow- fstab ld.so.conf pcmcia shells group localtime profile skel group- mke2fs.conf profile.d ssl gshadow modprobe.conf protocols subgid gshadow- motd release subuid host.conf mtab resolv.conf sudoers hostname netconfig resolv.conf.b2d sysconfig hosts nsswitch.conf rpc timezone init.d ntp.conf securetty udev inittab os-release services vmware-tools

naganjaneyulu (Thu, 24 Jan 2019 05:06:42 GMT):
there I couldn't able to find the hypderledger folder

naganjaneyulu (Thu, 24 Jan 2019 05:07:12 GMT):
any idea why I am not able to find the hyperledger folder inside etc

dave.enyeart (Thu, 24 Jan 2019 05:30:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8StoXaPHyMvL35Mci) @angela-mavennet See the tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html . It does not bring down the network or channel, rather you submit a config transaction to the channel and all peers will process it when they process the block that contains the config transaction.

ashufalcon (Thu, 24 Jan 2019 05:32:54 GMT):

can anyone tell me the warning meaning

dave.enyeart (Thu, 24 Jan 2019 05:33:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wfebJqnK68qYWXKaj) @konetichandra v1.4 has fixes on top of v1.2 and v1.3, with a focus on stability and operations support. It will also be the primary target for future fixes. So yes, it is good to upgrade to v1.4. The upgrade tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.4/upgrading_your_network_tutorial.html will have you go to v1.3 first then v1.4 (it is possible to combine the steps, but there is not a tested script for direct any to any upgrade).

dave.enyeart (Thu, 24 Jan 2019 05:35:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=46jqbEXfHcz959tZq) @ashufalcon You need to set externalendpoint, see https://hyperledger-fabric.readthedocs.io/en/release-1.4/gossip.html#external-and-internal-endpoints

dave.enyeart (Thu, 24 Jan 2019 05:41:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8BabF3mS7uagqSBJt) @iamsg43 The upgrade tutorial demonstrates both a scripted and manual upgrade process: https://hyperledger-fabric.readthedocs.io/en/release-1.4/upgrading_your_network_tutorial.html

dave.enyeart (Thu, 24 Jan 2019 05:42:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c9CnLGDdHRMMzLh3e) @unlimited A peer is always in a committing role. It can be in an endorsing role if clients send transaction proposals to it. An orderer is a different process, it can run on the same machine as peer or different.

npc0405 (Thu, 24 Jan 2019 05:51:32 GMT):
By default log levels of peers are set according to variable provided in `docker-compose.yaml` or `base.yaml` which reflects in `docker logs `. But when I execute PUT call on `/logspec`, which log level suppose to chance

npc0405 (Thu, 24 Jan 2019 05:51:32 GMT):
By default log levels of peers are set according to variable provided in `docker-compose.yaml` or `base.yaml` as `FABRIC_LOGGING_SPEC` which reflects in `docker logs `. But when I execute PUT call on `/logspec`, which log level suppose to chance

npc0405 (Thu, 24 Jan 2019 05:51:32 GMT):
By default log levels of peers are set according to variable provided in `docker-compose.yaml` or `base.yaml` as `FABRIC_LOGGING_SPEC` which reflects in `docker logs `. But when I execute PUT call on `/logspec`, which log level suppose to change

dave.enyeart (Thu, 24 Jan 2019 05:58:27 GMT):
@npc0405 see https://hyperledger-fabric.readthedocs.io/en/release-1.4/operations_service.html?highlight=logspec#log-level-management

dave.enyeart (Thu, 24 Jan 2019 05:58:35 GMT):
Here's an example that worked for me:

dave.enyeart (Thu, 24 Jan 2019 05:58:45 GMT):
`curl -H 'Content-Type: application/json' -X PUT -d '{"spec":"info:lockbasedtxmgr,couchdb,statecouchdb,gossip.privdata=debug"}' http://127.0.0.1:9443/logspec`

npc0405 (Thu, 24 Jan 2019 06:01:22 GMT):
@dave.enyeart where these changes will be reflected in docker container

dave.enyeart (Thu, 24 Jan 2019 06:02:06 GMT):
`docker logs `

npc0405 (Thu, 24 Jan 2019 06:02:42 GMT):
Thanks Any changes in core.yaml ?

dave.enyeart (Thu, 24 Jan 2019 06:03:32 GMT):
no, just the env variable which can be overridden using /logspec endpoint

dave.enyeart (Thu, 24 Jan 2019 06:03:32 GMT):
no, just the env variable `FABRIC_LOGGING_SPEC`` which can be overridden using /logspec endpoint

dave.enyeart (Thu, 24 Jan 2019 06:03:32 GMT):
no, just the env variable `FABRIC_LOGGING_SPEC` which can be overridden using /logspec endpoint

npc0405 (Thu, 24 Jan 2019 06:04:38 GMT):
Cool Thanks :) Let me check :)

PranilChhetri (Thu, 24 Jan 2019 06:06:28 GMT):
How should i implement registration system for my hyperledger fabric project.What should i do to build it in node sdk? 1.What do you prefer (email/password or private/public keys and why?). 2.) If you prefer 2nd mechanism then how will you protect user keys and certificates stored in hfc-keystore dir. I mean it can be hacked or data can be stolen by hacker. 3.) How to recover user private/public key and certificate if it is deleted mistakenly from hfc-dir. 4.) Would you prefer using password-phrase? if no, what do you prefer?

npc0405 (Thu, 24 Jan 2019 06:12:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4me4FxnpSCMQnqcWu) @dave.enyeart Well I am getting different log types in logs but that environment variable `FABRIC_LOGGING_SPEC` is not getting changed.

Aniket.1 (Thu, 24 Jan 2019 06:13:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=afhc7Nz9XgGBSsB8m) @dave.enyeart

dave.enyeart (Thu, 24 Jan 2019 06:20:03 GMT):
@npc0405 env variable won't change, but the spec will be overridden in the peer process

npc0405 (Thu, 24 Jan 2019 06:20:24 GMT):
Cool, Thanks for this

npc0405 (Thu, 24 Jan 2019 06:20:24 GMT):
Cool, Thanks for this @dave.enyeart

unlimited (Thu, 24 Jan 2019 06:22:22 GMT):
thanks @dave.enyeart !

dave.enyeart (Thu, 24 Jan 2019 06:25:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=afhc7Nz9XgGBSsB8m) @Aniket.1 How are you looking at the block hashes? Each block will have its own hash. There are N blocks per block file. New block files will get created once the file reaches 64MB.

Aniket.1 (Thu, 24 Jan 2019 06:31:30 GMT):
Using this: https://fabric-sdk-node.github.io/release-1.4/Channel.html#queryInfo__anchor

PranilChhetri (Thu, 24 Jan 2019 06:35:32 GMT):
what is the analogy of business network card used in hyperledger composer in hyperledger fabric.How am i supposed to change role i.e admin, user in hyperledger fabric

Srisha (Thu, 24 Jan 2019 08:28:27 GMT):
Hii Guys,I am doing project in Blockchain, in that i have to generate Electronic Health Records(EHR) as a client application. so for that which programming language suits to develop an EHR and integrate with blockchain through SDK and for chaincode also??

AndresMartinezMelgar.itcl (Thu, 24 Jan 2019 08:35:44 GMT):
hi. If i want have 2 pc connected in same net, they have to have install hyperledger fabric or only a docker with peer(hyperledger/fabric-peer) which connect with our net

Aniket.1 (Thu, 24 Jan 2019 09:00:52 GMT):
Can anyone provide clue regarding this error in orderer logs while channel creation? ``` Rejecting broadcast of config message from 127.0.0.1:60744 because of error: config does not validly parse: cannot enable application capabilities without orderer support first ```

Adsob (Thu, 24 Jan 2019 09:28:03 GMT):
Has joined the channel.

Adsob (Thu, 24 Jan 2019 10:33:06 GMT):
Hey Guy, is it possible to be part of a Network, issue transactions but not own a copy of the ledger? If so how?

mfaisaltariq (Thu, 24 Jan 2019 11:27:28 GMT):
Getting this error when I am trying to bring up the network using ./byfn.sh up. All crypto material was generated automatically. `2019-01-24 11:24:54.295 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-01-21 11:20:00 +0000 UTC 2019-01-24 11:24:54.295 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-01-24 11:24:54.295 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-01-24 11:24:54.300 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-01-24 11:24:54.301 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-01-24 11:24:54.301 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2019-01-24 11:24:54.301 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-01-24 11:24:54.301 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:54.305 UTC [grpc] createTransport -> DEBU 03d grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:54.305 UTC [grpc] HandleSubConnStateChange -> DEBU 03e pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE 2019-01-24 11:24:55.305 UTC [grpc] HandleSubConnStateChange -> DEBU 03f pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:55.309 UTC [grpc] createTransport -> DEBU 040 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:55.309 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE 2019-01-24 11:24:56.993 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:56.999 UTC [grpc] createTransport -> DEBU 043 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:56.999 UTC [grpc] HandleSubConnStateChange -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed`

mfaisaltariq (Thu, 24 Jan 2019 11:27:28 GMT):
Getting this error when I am trying to bring up the network using `./byfn.sh up`. All crypto material was generated successfully. `2019-01-24 11:24:54.295 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-01-21 11:20:00 +0000 UTC 2019-01-24 11:24:54.295 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-01-24 11:24:54.295 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-01-24 11:24:54.300 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-01-24 11:24:54.301 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-01-24 11:24:54.301 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2019-01-24 11:24:54.301 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-01-24 11:24:54.301 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:54.305 UTC [grpc] createTransport -> DEBU 03d grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:54.305 UTC [grpc] HandleSubConnStateChange -> DEBU 03e pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE 2019-01-24 11:24:55.305 UTC [grpc] HandleSubConnStateChange -> DEBU 03f pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:55.309 UTC [grpc] createTransport -> DEBU 040 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:55.309 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE 2019-01-24 11:24:56.993 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, CONNECTING 2019-01-24 11:24:56.999 UTC [grpc] createTransport -> DEBU 043 grpc: addrConn.createTransport failed to connect to {orderer.example.com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-01-24 11:24:56.999 UTC [grpc] HandleSubConnStateChange -> DEBU 044 pickfirstBalancer: HandleSubConnStateChange: 0xc00047b400, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed`

mfaisaltariq (Thu, 24 Jan 2019 11:28:13 GMT):
sorry if it sounds stupid but I'm just getting started with Hyperledger fabric

mfaisaltariq (Thu, 24 Jan 2019 11:31:14 GMT):
It fails even with the language flag set. I also tried `./byfn.sh -l node`

mfaisaltariq (Thu, 24 Jan 2019 11:53:32 GMT):
I checked the logs and the orderer container exited with some error. So then I checked the logs for the orderer container the logs are given below. To summarise the problem is that the orderer container fails to start with the error that the *channel ID contains invalid characters* (*SYS_CHANNEL*). The *ChannelID* cannot contain special characters. I tried to set the channel flag using following commands. `./byfn.sh generate -c mychannel `which ran successfully but `./byfn.sh up -c mychannel` command failed with the same error. On running `docker ps -a` I can see that the orderer container has exited. *LOGS* 2019-01-24 11:47:39.558 UTC [orderer.common.server] initializeServerConfig -> INFO 003 Starting orderer with TLS enabled 2019-01-24 11:47:39.561 UTC [orderer.common.server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains 2019-01-24 11:47:39.570 UTC [orderer.commmon.multichannel] newLedgerResources -> PANI 005 Error creating channelconfig bundle: initializing configtx manager failed: bad channel ID: channel ID 'SYS_CHANNEL' contains illegal characters panic: Error creating channelconfig bundle: initializing configtx manager failed: bad channel ID: channel ID 'SYS_CHANNEL' contains illegal characters goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000cdad0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e358, 0x1056c04, 0xf6f983, 0x27, 0xc000275808, 0x1, 0x1, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e358, 0xf6f983, 0x27, 0xc000275808, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc00000e360, 0xf6f983, 0x27, 0xc000275808, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc00017a510, 0xc0001a9310, 0xc0001a9310) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:260 +0x2d7 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc00017a510, 0xc0001beb70) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:147 +0x242 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc00025b200, 0xc0002ce360, 0x0, 0xc00017a480, 0x19b4420, 0xc0002ce570, 0x2, 0x2, 0xc0002ce580, 0x2, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:414 +0x2ec github.com/hyperledger/fabric/orderer/common/server.Start(0xf4dfc0, 0x5, 0xc000018c00) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:142 +0x52d github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:87 +0x1ce main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

adamhardie (Thu, 24 Jan 2019 12:27:35 GMT):
when using a kafka ordering service, i keep getting the following error when trying to create a channel ProcessMessage -> WARN 008 [channel: messagebus] Rejecting broadcast of message from 10.0.1.4:50578 with SERVICE_UNAVAILABLE: rejected by Consenter: backing Kafka cluster has not completed booting; try again later

adamhardie (Thu, 24 Jan 2019 12:27:35 GMT):
when using a kafka ordering service, i keep getting the following error when trying to create a channel ProcessMessage -> WARN 008 [channel: messagebus] Rejecting broadcast of message from 10.0.1.1:1234 with SERVICE_UNAVAILABLE: rejected by Consenter: backing Kafka cluster has not completed booting; try again later

adamhardie (Thu, 24 Jan 2019 12:28:16 GMT):
although Kafka nodes seem to have started fine. what should i do to investigate this error ?

adamhardie (Thu, 24 Jan 2019 12:35:20 GMT):
eg - on a follower node i can see - Replica loaded for partition testchainid-0 with initial high watermark 0 (kafka.cluster.Replica)

adamhardie (Thu, 24 Jan 2019 12:35:52 GMT):
orderer has set up test chain id successfully 2019-01-24 12:29:06.338 UTC [orderer.consensus.kafka] setupProducerForChannel -> INFO 00c [channel: testchainid] Setting up the producer for this channel... 2019-01-24 12:29:06.366 UTC [orderer.consensus.kafka] startThread -> INFO 00d [channel: testchainid] Producer set up successfully

dave.enyeart (Thu, 24 Jan 2019 12:48:19 GMT):
@mfaisaltariq @adamhardie You'll have better luck posting to #fabric-orderer where the orderer experts hang out

dave.enyeart (Thu, 24 Jan 2019 12:48:19 GMT):
@mfaisaltariq @adamhardie @Aniket.1 You'll have better luck posting to #fabric-orderer where the orderer and channel config experts hang out

adamhardie (Thu, 24 Jan 2019 12:48:28 GMT):
ta

redegade (Thu, 24 Jan 2019 12:49:05 GMT):
Has joined the channel.

dave.enyeart (Thu, 24 Jan 2019 12:50:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uKkKKWYNfrpnuyvEs) @Adsob Yes, include that org's MSPID in the channel config, but simply don't start any peers for that org

dave.enyeart (Thu, 24 Jan 2019 12:50:42 GMT):
Clients from that org will still be able to query and send transactions to other org's peers

konetichandra (Thu, 24 Jan 2019 12:51:19 GMT):
Hi! i have a question about fabric version. currently we are using fabric 1.2. can we migrate this to 1.4. is 1.3 stable or 1.4

dave.enyeart (Thu, 24 Jan 2019 12:52:50 GMT):
@konetichandra v1.4 has fixes on top of v1.2 and v1.3, with a focus on stability and operations support. It will also be the primary target for future fixes. So yes, it is good to upgrade to v1.4. The upgrade tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.4/upgrading_your_network_tutorial.html will have you go to v1.3 first then v1.4 (it is possible to combine the steps, but there is not a tested script for direct any to any upgrade).

konetichandra (Thu, 24 Jan 2019 12:55:00 GMT):
Thank you. so you mean we need to upgrade to 1.3 first and then move to 1.4. Am i correct?

MuhammedHafil (Thu, 24 Jan 2019 12:56:46 GMT):
what is the best way to do a private transaction between 2 users of a same peer org? SInce we can't create channels dynamically. all users of a joined organisation in a channel will be making transactions in the same channel, right? Is there any way to do public - private key based end to end encryption in hyperledger?

MuhammedHafil (Thu, 24 Jan 2019 12:56:46 GMT):
what is the best way to do a private transaction between 2 users of a same peer org? SInce we can't create channels dynamically. all users of a joined organisation in a channel will be making transactions in the same channel, right? Is there any way to do public - private key based end to end encryption in hyperledger? @dave.enyeart

MuhammedHafil (Thu, 24 Jan 2019 12:56:46 GMT):
what is the best way to do a private transaction between 2 users of a same peer org? SInce we can't create channels dynamically. all users of a joined organisation in a channel will be making transactions in the same channel, right? Is there any way to do public - private key based end to end encryption in hyperledger? @dave.enyeart

konetichandra (Thu, 24 Jan 2019 13:00:20 GMT):
One more question. Heard that Fabric composer is in incubation stage and support will be withdrawn. Is that true?

dave.enyeart (Thu, 24 Jan 2019 13:01:50 GMT):
Yes upgrade to v1.3 first and then to v1.4 if you want to follow the official instructions (it is possible to combine the steps, but there is not a tested script for direct any to any upgrade).

dave.enyeart (Thu, 24 Jan 2019 13:02:31 GMT):
Composer is not being further invested in. There is no 'support' beyond the goodwill of the community currently.

konetichandra (Thu, 24 Jan 2019 13:03:00 GMT):
Thanks Dave.

konetichandra (Thu, 24 Jan 2019 13:03:10 GMT):
so what is the alternate for composer?

dave.enyeart (Thu, 24 Jan 2019 13:03:39 GMT):
Composer developers are directing people to the new node.js programming model in v1.4 chaincode and sdk, see a detailed walk through at https://hyperledger-fabric.readthedocs.io/en/latest/developapps/developing_applications.html

dave.enyeart (Thu, 24 Jan 2019 13:03:39 GMT):
Composer developers are directing people to the new node.js programming model in Fabric v1.4 chaincode and sdk, see a detailed walk through at https://hyperledger-fabric.readthedocs.io/en/latest/developapps/developing_applications.html

konetichandra (Thu, 24 Jan 2019 13:05:38 GMT):
thank you

mfaisaltariq (Thu, 24 Jan 2019 13:14:34 GMT):
thanks @dave.enyeart

khudeja (Thu, 24 Jan 2019 13:18:47 GMT):
Has joined the channel.

Adsob (Thu, 24 Jan 2019 13:23:41 GMT):
@dave.enyeart thank you

konetichandra (Thu, 24 Jan 2019 13:24:27 GMT):
one more question. What is the maximum throughput (Transactions per sec) using fabric 1.4

konetichandra (Thu, 24 Jan 2019 13:24:51 GMT):
What is the maximum throughput (Transactions per sec) we can achieve using fabric 1.4

khudeja (Thu, 24 Jan 2019 13:26:54 GMT):
Hi. Working on balance-transfer sample, I've been facing an issue on invoking chaincode through UI stating an endorsement failure due to timeout. I used node.js rest api. However, the invoke works fine using curl.Failed to invoke chaincode. cause:Error: failed to execute transaction 2b1ceead4912eb8f0c7fc68541533ae6236f47816cce05719b0aa184ef750a42: error sending: timeout expired while executing transaction,Error: failed to execute transaction 2b1ceead4912eb8f0c7fc68541533ae6236f47816cce05719b0aa184ef750a42: error sending: timeout expired while executing transaction

khudeja (Thu, 24 Jan 2019 13:27:47 GMT):

Clipboard - January 24, 2019 6:57 PM

khudeja (Thu, 24 Jan 2019 13:32:45 GMT):
Even all those chaincode containers crashed to which the endorsement was sent.

khudeja (Thu, 24 Jan 2019 13:33:42 GMT):

Clipboard - January 24, 2019 7:03 PM

vinken (Thu, 24 Jan 2019 13:47:01 GMT):
Hi guys, when I use getCurrentParticipant and getCurrentIdentity? I created a participant and IdRegistry for participant. I have a function and I need to get the partitipant that exec the transaction. I tried to use getCurrentParticipant but I received Error: No valid responses from any peers. Response from attempted peer comms was an error. Error: transaction returned with failure: Error: Object with ID 'Participant:org.exmaple.Person" in collection with ID"$sysregistries"does not exist

dave.enyeart (Thu, 24 Jan 2019 13:48:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EQdzojwmhx6LfQaP6) @konetichandra See these research papers that have done performance analysis of Fabric:

dave.enyeart (Thu, 24 Jan 2019 13:48:40 GMT):
https://arxiv.org/abs/1801.10228 https://arxiv.org/abs/1805.11390 https://arxiv.org/abs/1901.00910

pikvik (Thu, 24 Jan 2019 14:17:46 GMT):
Hi All . I have fabric on Kubernetes and trying to start new bna. Its getting installed but not able to start . Giving following error : ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: failed to execute transaction f2eda68137d8cd9e606f040bb28ba6689826068394aa22c8593b4ac52ed306c4: error starting container: error starting container: cannot connect to Docker endpoint Command failed

adamhardie (Thu, 24 Jan 2019 14:20:23 GMT):
when i try to instantiate a chaincode from the cli container, with command : peer chaincode instantiate -o orderer0.company:7050 -C messagebus -n nodecode -l "golang" -v 4.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.member','Org2MSP.member')" i get this error: API error (500): Could not attach to network company-new_net: rpc error: code = NotFound desc = network company-new_net not found where is company-new_net coming from ? the peer is connected to a network called node_node

adamhardie (Thu, 24 Jan 2019 14:26:16 GMT):
i used to run on that network, but have changed all instances within the configuration files. so i am wondering how the chaincode script is picking that name up

GianlucaPinto (Thu, 24 Jan 2019 14:39:41 GMT):
hi all, i have a simple question :) what's the difference beetwen a fabric network with a "ca" and a fabric network without a "ca". how the users can call the fabric in the "no ca" case?

SJoshi7 (Thu, 24 Jan 2019 14:50:53 GMT):
hello eveyone, How are the transaction records stored in the fabric network? like i know that couchdb/levelDB are used but is there any use of merkle tree as n bitcoin blockchain so as to reduce the data storage ?

krabradosty (Thu, 24 Jan 2019 14:55:45 GMT):
Hello. What is the purpose of Consortium field in channel config? ``` "Consortium":{ "mod_policy":"Admins", "value":{ "name":"OptheriumConsortium" }, "version":"0" } ```

krabradosty (Thu, 24 Jan 2019 14:55:45 GMT):
Hello. What is the purpose of Consortium field in channel config? ``` "Consortium":{ "mod_policy":"Admins", "value":{ "name":"TestConsortium" }, "version":"0" } ```

krabradosty (Thu, 24 Jan 2019 14:55:45 GMT):
Hello. What is the purpose of Consortium field in channel config? ``` "Consortium":{ "mod_policy":"Admins", "value":{ "name":"TestConsortium" }, "version":"0" } ``` I know that Consortium is defined in orderer system configuration block. But I don't understand how do they are related. Because if I add a new organization to the channel, the consortium will be different.

krabradosty (Thu, 24 Jan 2019 14:55:45 GMT):
Hello. What is the purpose of Consortium field in channel config? ``` "Consortium":{ "mod_policy":"Admins", "value":{ "name":"TestConsortium" }, "version":"0" } ``` I know that Consortium is defined in the configuration block of orderer system channel. But I don't understand how do they are related. Because if I add a new organization to the channel, the consortium will be different.

Rajatsharma (Thu, 24 Jan 2019 16:04:48 GMT):
@dave.enyeart @manish-sethi @muralisr [HIGH-PRIORITY] I'm facing a issue with node chaincode. I've set corporate proxy and all the npm packages are installing from there. But some packages like x509 which require packages with nodejs.org. They are not going to proxy and throwing me error. Can anyone help me out with this ??

Rajatsharma (Thu, 24 Jan 2019 16:04:48 GMT):
[HIGH-PRIORITY] I'm facing a issue with node chaincode. I've set corporate proxy and all the npm packages are installing from there. But some packages like x509 which require packages with nodejs.org. They are not going to proxy and throwing me error. Can anyone help me out with this ??

dave.enyeart (Thu, 24 Jan 2019 16:22:12 GMT):
@Rajatsharma I recommend post to #fabric-sdk-node where the node experts hang out (for both chaincode and sdk... we need to create another channel for fabric-chaincode-node...)

pauljithink (Thu, 24 Jan 2019 16:24:33 GMT):
How can I check the block size?

kwakwa (Thu, 24 Jan 2019 17:03:51 GMT):
Is there a way to add a delay flag to docker network install ? I'm getting an error of no valid response from peers and I'm pretty sure it's because there's not a long enough delay before the command cancels.... I've already tried changing docker-compose.yml timeouts, connection.json on the card folder and destroying/rebuilding Fabric... and it's always the same error, can anyone help ?

jordanmmck (Thu, 24 Jan 2019 17:50:31 GMT):
I've been stuck on this problem since yesterday, if anyone has any ideas I would appreciate it... I'm trying to add a peer to an organization for the first-network network. I've modified the docker files and all that so the container is spinning up. But when the script on the cli is run that tries to add all the peers to the channel I get `Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists)`.

jordanmmck (Thu, 24 Jan 2019 17:51:11 GMT):
But I've gone looking in the `production` directory on this peer and there is definitely no genesis block there.

jordanmmck (Thu, 24 Jan 2019 17:51:45 GMT):
When I look at the other peers which have joined the channel they have an additional directory with a genesis block, but my new peer definitely does not.

jordanmmck (Thu, 24 Jan 2019 17:52:59 GMT):
I've modelled all my changes very closely on the existing peers (which all work fine), so I can't see any difference in the configuration I have which could account for this.

jrosmith (Thu, 24 Jan 2019 18:19:18 GMT):
@jordanmmck can the peer interact with the channel properly? i sometimes get this error message when i attempt to make a peer join a channel they are already a member of

jordanmmck (Thu, 24 Jan 2019 18:20:12 GMT):
@jrosmith when I run `peer channel list` on the peer it shows that it does not belong to any channel.

Moolkothari (Thu, 24 Jan 2019 18:49:16 GMT):
Has joined the channel.

Moolkothari (Thu, 24 Jan 2019 18:49:34 GMT):
I have setup Hyperledger Fabric blockchain network using AWS Managed blockchain following this link https://docs.aws.amazon.com/managed-blockchain/latest/managementguide/managed-blockchain-get-started-tutorial.html , everything working perfectly fine, I can install and instantiate the chiancode, also succeeded to run sample provided for non-profit blockchian https://github.com/aws-samples/non-profit-blockchain/tree/master/ngo-chaincode . Now I want to create business network and network card with Hypderledger Composer but want to make sure that the blockchain network created by following AWS Managed blockchain, after Composer installation when I create the business network and network card it is using default Hyperledger fabric network not the one which was created using AWS Blockchain , is it possible to use Hyperledger Composer the way I want if yes then please let me know how? My Requirement is to create "Create A Business Network Card" using Amazon managed Blockchain network information. e.g MSPID, Orderer, Peers and CA Thanks in Advance

pchochu (Thu, 24 Jan 2019 22:06:16 GMT):
Hello guys. Do you know, what`s the reason, why cryptogen should not be used in production? Is the key material just not secure enough or is there another reason for that.

dkalderos (Thu, 24 Jan 2019 23:01:06 GMT):
Has joined the channel.

dkalderos (Thu, 24 Jan 2019 23:11:21 GMT):
Hi all, I have fabric-1.2. network built and deployed in Azure. It's pretty simple - ca, order and 2 peers. I also have a composer-cli machine on the same network. All the nodes are up and running and everyone can talk to everyone else on the appropriate ports. I've created and imported a card and validated/tested my network in composer-playground. However when I try to install the network I get the error below. I'm logging a the DEBUG level and can see the chaincode request and that it doesn't have peers identified. I've tried a million things (mostly connection.json edits) but I'm hoping someone can give me a hint about what to look for next. It seems like it should be obvious but I'm not seeing it. Thanks, Dave ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: Missing peer objects in install chaincode request Command failed

govinda-attal (Fri, 25 Jan 2019 01:14:32 GMT):
hi all,

govinda-attal (Fri, 25 Jan 2019 01:23:25 GMT):
hi all, have a question on moving away from an existing fabric network to a new-one. Case is there is an existing Fabric Network with a channel and its existing data/ledger history. Now Idea is to have a different fabric network from Cloud Offering which will have its own set of Orderers and Peers. We could add this new Peer Organisation to existing Fabric Network's channel as a member with admin, and read and write rights? In this fashion Peer of new Organisation on new network will be populated with existing ledger data of existing data. But will the Orderers continue to be separate for these networks? Is it possible to update the channel configuration to use Orderer of new Organisation which is on Cloud network? Idea is eventually to deprecate the existing network and cut-over to the new one?? Any guidance will help.

govinda-attal (Fri, 25 Jan 2019 01:23:25 GMT):
*Hyperledger Fabric how to deprecate an existing network and move to a new network setup* hi all, have a question on moving away from an existing fabric network to a new-one. Case is there is an existing Fabric Network with a channel and its existing data/ledger history. Now Idea is to have a different fabric network from Cloud Offering which will have its own set of Orderers and Peers. We could add this new Peer Organisation to existing Fabric Network's channel as a member with admin, and read and write rights? In this fashion Peer of new Organisation on new network will be populated with existing ledger data of existing data. But will the Orderers continue to be separate for these networks? Is it possible to update the channel configuration to use Orderer of new Organisation which is on Cloud network? Idea is eventually to deprecate the existing network and cut-over to the new one?? Any guidance will help.

wangqq (Fri, 25 Jan 2019 03:23:57 GMT):
Has joined the channel.

naganjaneyulu (Fri, 25 Jan 2019 04:10:02 GMT):
@wangqq

naganjaneyulu (Fri, 25 Jan 2019 04:32:51 GMT):
$ node enrollAdmin Wallet path: C:\Users\Hrithika\fabric-samples\fabcar\javascript\wallet 2019-01-25T04:21:37.535Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054 ], stack=Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.request.on (C:\Users\Hrithika\fabric-samples\fabcar\javascript\node_modules\fabric-ca-client\lib\FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

naganjaneyulu (Fri, 25 Jan 2019 04:33:47 GMT):
$ node enrollAdmin Wallet path: C:\Users\XXXXXX\fabric-samples\fabcar\javascript\wallet 2019-01-25T04:21:37.535Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054 ], stack=Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.request.on (C:\Users\XXXXX\fabric-samples\fabcar\javascript\node_modules\fabric-ca-client\lib\FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

naganjaneyulu (Fri, 25 Jan 2019 04:34:06 GMT):
Can somebody help me in resolving the above issue

naganjaneyulu (Fri, 25 Jan 2019 04:34:24 GMT):
This error I got for fabcar sample

konetichandra (Fri, 25 Jan 2019 05:10:43 GMT):
What is the maximum throughput (Transactions per sec) we can achieve using fabric 1.4

VictorStroganov (Fri, 25 Jan 2019 06:09:23 GMT):
Hi all! I have HLF on kubernetes cluster of two nodes. On the first node: CA , orderer, org1.peer1 and couchdb. On the second node: org2.peer1, org3.peer1 and couchdbs. I create channel on org1.peer1 and try to join it on org2.peer1. As a result I get error: "Error: Failed sending proposal, got rpc error: code = Unknown desc = access denied: channel [] creator org [org2MSP]" Both nodes have the same crypto-config generated on org1.peer1. Can somebody advise me anything?

MuhammedHafil (Fri, 25 Jan 2019 06:18:11 GMT):
In this example https://github.com/IBM/build-blockchain-insurance-app , it is shown that user credentials registering to shops are stored in statedb and authentication checkings are done inside chaincode. Is it the right way to do ?

DeepakMule (Fri, 25 Jan 2019 06:23:25 GMT):
I am having hyperledger fabric network of v1.3 running on kubernetes where each node data is externalised using PV & PVC we observed one scenario when perticular ledger data is inaccessible to POD / peer container. In this case peer able commit block recevied from Orderer. we also observed that in peer log it give error /var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000: no such file or directory but after this also it continue to commit block to ledger [36m2019-01-24 13:02:49.245 UTC [kvledger] CommitWithPvtData -> DEBU 337c [mychannel] Committing block [42] to storage [36m2019-01-24 13:02:49.320 UTC [historyleveldb] Commit -> DEBU 33b4 Channel [mychannel]: Updates committed to history database for blockNo [42] [34m2019-01-24 13:02:49.320 UTC [kvledger] CommitWithPvtData -> INFO 33b5 [mychannel] Committed block [42] with 1 transaction(s) in 93ms (state_validation=18ms block_commit=42ms state_commit=24ms) when we tried to query using this block it gives sendPeersProposal - Promise is rejected: Error: Failed to get block number 42, error error opening block file /var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000: open

DeepakMule (Fri, 25 Jan 2019 06:24:07 GMT):
I am having hyperledger fabric network of v1.3 running on kubernetes where each node data is externalized using PV & PVC we observed one scenario when particular ledger data is inaccessible to POD / peer container. In this case peer able commit block received from Orderer. we also observed that in peer log it give error /var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000: no such file or directory but after this also it continue to commit block to ledger [36m2019-01-24 13:02:49.245 UTC [kvledger] CommitWithPvtData -> DEBU 337c [mychannel] Committing block [42] to storage [36m2019-01-24 13:02:49.320 UTC [historyleveldb] Commit -> DEBU 33b4 Channel [mychannel]: Updates committed to history database for blockNo [42] [34m2019-01-24 13:02:49.320 UTC [kvledger] CommitWithPvtData -> INFO 33b5 [mychannel] Committed block [42] with 1 transaction(s) in 93ms (state_validation=18ms block_commit=42ms state_commit=24ms) when we tried to query using this block it gives sendPeersProposal - Promise is rejected: Error: Failed to get block number 42, error error opening block file /var/hyperledger/production/ledgersData/chains/chains/mychannel/blockfile_000000: open

alokkv (Fri, 25 Jan 2019 07:02:23 GMT):
hi friends, has anyone had log problem. i am facing it.i created a network two weeks back with 3 zookeeper 4 kafka 3 orderer 2 peer and one cli.when i checked today 11GB log for both peers and 1+GB log for all other containers.is there a way to solve this problem

KameshPalani (Fri, 25 Jan 2019 07:49:22 GMT):
Has joined the channel.

xiuyoung89 (Fri, 25 Jan 2019 07:50:14 GMT):
Has joined the channel.

Javi (Fri, 25 Jan 2019 08:10:13 GMT):
what log level do you use?

alokkv (Fri, 25 Jan 2019 08:15:31 GMT):
CORE_LOGGING_LEVEL=DEBUG

alokkv (Fri, 25 Jan 2019 08:16:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=J9ostnm5gP3YMeP6v) @Javi CORE_LOGGING_LEVEL=DEBUG. what are the other optrions

Javi (Fri, 25 Jan 2019 08:17:08 GMT):
I think is good idea change it to INFO

alokkv (Fri, 25 Jan 2019 08:17:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bf5YJWwXJSPjx5EDJ) @Javi is there a way to log only error

Javi (Fri, 25 Jan 2019 08:18:41 GMT):
test with ERROR

alokkv (Fri, 25 Jan 2019 08:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XBXbW62EAK8RZCKHe) @Javi thank you frient

alokkv (Fri, 25 Jan 2019 08:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XBXbW62EAK8RZCKHe) @Javi thank you friend

Javi (Fri, 25 Jan 2019 08:19:45 GMT):
:smiley:

Javi (Fri, 25 Jan 2019 08:22:24 GMT):
any Fabric CA expert?? I have an issue when I try to start a `fabric-ca-server` using the `--cafiles` flag. I'm using this command to init the server with all required files: `fabric-ca-server init -b admin:hello --cafiles fabric-ca-server-config.yaml`, but it produces the next error:

Javi (Fri, 25 Jan 2019 08:22:42 GMT):
``` fabric-ca-server | 2019/01/25 08:14:03 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml fabric-ca-server | 2019/01/25 08:14:03 [INFO] Server Version: 1.4.0 fabric-ca-server | 2019/01/25 08:14:03 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} fabric-ca-server | 2019/01/25 08:14:03 [INFO] Loading CA from /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml fabric-ca-server | 2019/01/25 08:14:03 [WARNING] &{69 The specified CA certificate file /etc/hyperledger/fabric-ca-server/ca-cert.pem does not exist} fabric-ca-server | 2019/01/25 08:14:03 [INFO] generating key: &{A:ecdsa S:256} fabric-ca-server | 2019/01/25 08:14:03 [INFO] encoded CSR fabric-ca-server | 2019/01/25 08:14:03 [INFO] signed certificate with serial number 631541413862614138902925121126370474186018393750 fabric-ca-server | 2019/01/25 08:14:03 [INFO] The CA key and certificate were generated for CA Test_CA_Name fabric-ca-server | 2019/01/25 08:14:03 [INFO] The key was stored by BCCSP provider 'SW' fabric-ca-server | 2019/01/25 08:14:03 [INFO] The certificate is at: /etc/hyperledger/fabric-ca-server/ca-cert.pem fabric-ca-server | 2019/01/25 08:14:04 [INFO] Initialized sqlite3 database at /etc/hyperledger/fabric-ca-server/fabric-ca-server.db fabric-ca-server | 2019/01/25 08:14:04 [INFO] The issuer key was successfully stored. The public key is at: /etc/hyperledger/fabric-ca-server/IssuerPublicKey, secret key is at: /etc/hyperledger/fabric-ca-server/msp/keystore/IssuerSecretKey fabric-ca-server | 2019/01/25 08:14:04 [INFO] Idemix issuer revocation public and secret keys were generated for CA 'Test_CA_Name' fabric-ca-server | 2019/01/25 08:14:04 [INFO] The revocation key was successfully stored. The public key is at: /etc/hyperledger/fabric-ca-server/IssuerRevocationPublicKey, private key is at: /etc/hyperledger/fabric-ca-server/msp/keystore/IssuerRevocationPrivateKey fabric-ca-server | 2019/01/25 08:14:04 [INFO] The CA key and certificate already exist fabric-ca-server | 2019/01/25 08:14:04 [INFO] The key is stored by BCCSP provider 'SW' fabric-ca-server | 2019/01/25 08:14:04 [INFO] The certificate is at: /etc/hyperledger/fabric-ca-server/ca-cert.pem fabric-ca-server | panic: unable to open database file ```

Javi (Fri, 25 Jan 2019 08:25:43 GMT):
Complete error with stacktrace here -> https://pastebin.com/maQnPys6

Javi (Fri, 25 Jan 2019 08:27:27 GMT):
but it creates all files.... ``` -rwxrwxrwx 1 javi javi 843 Jan 25 09:24 IssuerPublicKey -rwxrwxrwx 1 javi javi 215 Jan 25 09:24 IssuerRevocationPublicKey -rwxrwxrwx 1 javi javi 786 Jan 25 09:24 ca-cert.pem -rwxrwxrwx 1 javi javi 18215 Jan 25 09:13 fabric-ca-server-config.yaml -rwxrwxrwx 1 javi javi 61440 Jan 25 09:24 fabric-ca-server.db ```

GuillaumeCisco (Fri, 25 Jan 2019 08:34:43 GMT):
the right option is `-c`, it is an hidden option

sudhasakshi (Fri, 25 Jan 2019 08:36:21 GMT):
Hi Team, Iam starting ./startFabric.sh in fabcar I am getting endorsement failure during invoke. response: status:500 message:"unknown function is invoked" please help me to resolve this issue.

GuillaumeCisco (Fri, 25 Jan 2019 08:37:27 GMT):
your invoking a method that is not present in your chaincode, verify if there is no typo

GuillaumeCisco (Fri, 25 Jan 2019 08:37:27 GMT):
you 're invoking a method that is not present in your chaincode, verify if there is no typo

GuillaumeCisco (Fri, 25 Jan 2019 08:37:27 GMT):
you're invoking a method that is not present in your chaincode, verify if there is no typo

sudhasakshi (Fri, 25 Jan 2019 08:38:06 GMT):
func name is same in chaincode

GuillaumeCisco (Fri, 25 Jan 2019 08:38:36 GMT):
try printing what the function chaincode is receiving as parameter

GuillaumeCisco (Fri, 25 Jan 2019 08:38:43 GMT):
maybe it is the order of your arguments

GuillaumeCisco (Fri, 25 Jan 2019 08:39:48 GMT):
you should also print the exact error message, and what SDK you use, if you are using one

Javi (Fri, 25 Jan 2019 08:42:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=irADtZHjfTb3wQjfa) @GuillaumeCisco Ok thanks, now the server starts and generate all files, but is not using my config file (the CA name isn't the same), and the files are not generated in the specified path...

Javi (Fri, 25 Jan 2019 08:43:00 GMT):
`fabric-ca-server | 2019/01/25 08:38:59 [INFO] Idemix issuer revocation public and secret keys were generated for CA ''` When in my config file the name of the CA is `Test_CA_Name`

GuillaumeCisco (Fri, 25 Jan 2019 08:45:56 GMT):
Does it create the `fabric-ca-server-config.yaml` or does it use the one you gave?

Javi (Fri, 25 Jan 2019 08:48:03 GMT):
`fabric-ca-server-config.yaml` exists, I want to initialize the server using these config. I use the command `fabric-ca-server init -b admin:hello -c fabric-ca-server-config.yaml`

Javi (Fri, 25 Jan 2019 08:48:46 GMT):
but seems that the config isn't used at all...

knagware9 (Fri, 25 Jan 2019 08:53:42 GMT):
Hi. Working on balance-transfer sample, I've been facing an issue on invoking chaincode through UI stating an endorsement failure due to timeout. I used node.js rest api. However, the invoke works fine using curl.Failed to invoke chaincode. cause:Error: failed to execute transaction 2b1ceead4912eb8f0c7fc68541533ae6236f47816cce05719b0aa184ef750a42: error sending: timeout expired while executing transaction,Error: failed to execute transaction 2b1ceead4912eb8f0c7fc68541533ae6236f47816cce05719b0aa184ef750a42: error sending: timeout expired while executing transaction

knagware9 (Fri, 25 Jan 2019 08:54:02 GMT):
Even all those chaincode containers crashed to which the endorsement was sent.

GuillaumeCisco (Fri, 25 Jan 2019 08:55:31 GMT):
@Javi I'm not asking if it exists, I'm asking if in the log you can be sure it will use the one you passed and it does not create a new one

sudhasakshi (Fri, 25 Jan 2019 08:57:26 GMT):
Hi,

Javi (Fri, 25 Jan 2019 08:58:29 GMT):
yes, it uses the one I'm passing, if I change the name of the config file and see the log I can see the new config file name: ``` $ fabric-ca-server init -b admin:hello -c test-config.yaml fabric-ca-server | 2019/01/25 08:56:24 [INFO] Created default configuration file at /test-config.yaml fabric-ca-server | 2019/01/25 08:56:24 [INFO] Server Version: 1.4.0 .... ```

sudhasakshi (Fri, 25 Jan 2019 08:58:42 GMT):

I am passing same function name and args but still getting these error

Javi (Fri, 25 Jan 2019 08:59:51 GMT):
and if I open the `test-config.yaml` file, I can see the name of the CA: ``` ca: # Name of this CA name: Test_CA_Name ```

GuillaumeCisco (Fri, 25 Jan 2019 09:10:00 GMT):
@Javi https://jira.hyperledger.org/browse/FABC-540

Javi (Fri, 25 Jan 2019 09:35:41 GMT):
Thanks @GuillaumeCisco I will check it

danielleekc (Fri, 25 Jan 2019 11:01:27 GMT):
Has joined the channel.

alokkv (Fri, 25 Jan 2019 11:58:27 GMT):
hi friends is there a way to auto delete log files inside docker...?

zxy 2 (Fri, 25 Jan 2019 12:18:51 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Fri, 25 Jan 2019 12:42:10 GMT):
@dave.enyeart Hi dave, are there any official example where we can connect and see how a real net work? I am trying to create a net to connect my laptop and work pc but i am stuck. i only get run it in local

dave.enyeart (Fri, 25 Jan 2019 12:43:40 GMT):
@AndresMartinezMelgar.itcl https://www.ibm.com/blockchain/getting-started

dave.enyeart (Fri, 25 Jan 2019 12:43:40 GMT):
@AndresMartinezMelgar.itcl https://www.ibm.com/blockchain/getting-started Delploy a network with one click that you can connect to. Free with the first month credits.

AndresMartinezMelgar.itcl (Fri, 25 Jan 2019 12:49:53 GMT):
@dave.enyeart ok, thx i'll check it

mattmaru (Fri, 25 Jan 2019 13:04:18 GMT):
Hi guys. I'm a beginner in this world and I've a question for you if it is possible. I build a fabric network with : 2 CA, 4 PEER (2 for each organization) and 1 ORDERER. But all is still in one machine. I would to build it in 2 different machine. FIRST MACHINE : ORG1 peers, Orderer, CA org1 SECOND MACHINE : ORG2 peers, CA org2 Which steps I need to follow to build it ? I have two Ubuntu vm

Javi (Fri, 25 Jan 2019 13:07:07 GMT):
@GuillaumeCisco using the `-H` flag works well, but only for the default config file name

Javi (Fri, 25 Jan 2019 13:07:57 GMT):
executing `fabric-ca-server init -b user:user -H /etc/hyperledger/fabric-ca-server` loads the CA name correctly

GuillaumeCisco (Fri, 25 Jan 2019 13:09:03 GMT):
it should be the same either using -c with a file or -H for a folder

Javi (Fri, 25 Jan 2019 13:17:57 GMT):
using `-c` don't work

Javi (Fri, 25 Jan 2019 13:21:45 GMT):
When I execute `fabric-ca-server init -b user:user -c ./fabric-ca-server-config.yaml`, in my config the CA is called `Test_CA_Name`, but can't be loaded

Javi (Fri, 25 Jan 2019 13:22:08 GMT):
``` fabric-ca-server | 2019/01/25 13:20:12 [INFO] Created default configuration file at /fabric-ca-server-config.yaml fabric-ca-server | 2019/01/25 13:20:12 [INFO] Server Version: 1.4.0 fabric-ca-server | 2019/01/25 13:20:12 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} fabric-ca-server | 2019/01/25 13:20:12 [WARNING] &{69 The specified CA certificate file /ca-cert.pem does not exist} fabric-ca-server | 2019/01/25 13:20:12 [INFO] generating key: &{A:ecdsa S:256} fabric-ca-server | 2019/01/25 13:20:12 [INFO] encoded CSR fabric-ca-server | 2019/01/25 13:20:12 [INFO] signed certificate with serial number 407883341217321133876628493207176585154735622694 fabric-ca-server | 2019/01/25 13:20:12 [INFO] The CA key and certificate were generated for CA fabric-ca-server | 2019/01/25 13:20:12 [INFO] The key was stored by BCCSP provider 'SW' fabric-ca-server | 2019/01/25 13:20:12 [INFO] The certificate is at: /ca-cert.pem fabric-ca-server | 2019/01/25 13:20:13 [INFO] Initialized sqlite3 database at /fabric-ca-server.db fabric-ca-server | 2019/01/25 13:20:13 [INFO] The issuer key was successfully stored. The public key is at: /IssuerPublicKey, secret key is at: /msp/keystore/IssuerSecretKey fabric-ca-server | 2019/01/25 13:20:13 [INFO] Idemix issuer revocation public and secret keys were generated for CA '' fabric-ca-server | 2019/01/25 13:20:13 [INFO] The revocation key was successfully stored. The public key is at: /IssuerRevocationPublicKey, private key is at: /msp/keystore/IssuerRevocationPrivateKey fabric-ca-server | 2019/01/25 13:20:13 [INFO] Home directory for default CA: / fabric-ca-server | 2019/01/25 13:20:13 [INFO] Initialization was successful ```

irkoch (Fri, 25 Jan 2019 14:16:56 GMT):
I get this error when I run *docker logs -f rest*, what I did is ran mongo in a docker container with this cmd *docker run -d --name mongo --network composer_default -p 27017:27017 mongo*, and run this ``` FROM hyperledger/composer-rest-server:0.19.12 RUN npm install --production loopback-connector-mongodb passport-local && \ npm cache clean --force && \ ln -s node_modules .node_modules ``` `docker build -t myorg/composer-rest-server .` anf finally i exported my env vars and executing source envvars.txt ``` COMPOSER_CARD=admin@stschain COMPOSER_NAMESPACES=never COMPOSER_AUTHENTICATION=true COMPOSER_MULTIUSER=true COMPOSER_PROVIDERS='{ "local": { "provider": "local", "module": "passport-local", "usernameField": "username", "passwordField": "password", "authPath": "/auth/local", "successRedirect": "/", "failureRedirect": "/" }, }' COMPOSER_DATASOURCES='{ "db": { "name": "db", "connector": "mongodb", "host": "mongo" } }' ``` change the hostnames ``` sed -e 's/localhost:7051/peer0.org1.example.com:7051/' -e 's/localhost:7053/peer0.org1.example.com:7053/' -e 's/localhost:7054/ca.org1.example.com:7054/' -e 's/localhost:7050/orderer.example.com:7050/' < $HOME/.composer/cards/admin@stschain/connection.json > /tmp/connection.json && cp -p /tmp/connection.json $HOME/.composer/cards/admin@stschain/ ``` then ``` docker run \ -d \ -e COMPOSER_CARD=${COMPOSER_CARD} \ -e COMPOSER_NAMESPACES=${COMPOSER_NAMESPACES} \ -e COMPOSER_AUTHENTICATION=${COMPOSER_AUTHENTICATION} \ -e COMPOSER_MULTIUSER=${COMPOSER_MULTIUSER} \ -e COMPOSER_PROVIDERS="${COMPOSER_PROVIDERS}" \ -e COMPOSER_DATASOURCES="${COMPOSER_DATASOURCES}" \ -v ~/.composer:/home/composer/.composer \ --name rest \ --network composer_default \ -p 3000:3000 \ myorg/composer-rest-server ``` THAT WHAT I GOT WHEN I EXECUTE ``` docker logs rest ``` ``` Discovering types from business network definition ... (node:5565) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. Discovered types from business network definition Generating schemas for all types in business network definition ... Generated schemas for all types in business network definition Adding schemas for all types to Loopback ... Added schemas for all types to Loopback SyntaxError: Unexpected token } in JSON at position 385 at JSON.parse () at Promise.then (/home/composer/.npm-global/lib/node_modules/composer-rest-server/server/server.js:141:34) at at process._tickDomainCallback (internal/process/next_tick.js:228:7) ``` *PLEASE I WILL SO HWPPY IF SOMEONE CAN HEALP ME *

mattmaru (Fri, 25 Jan 2019 14:52:01 GMT):
Hi guys. I would get your opinions. I've build a fabric network with 2org 2ca 1 orderer. I would to build it in multiple hosts. Do you know some steps or guide to build it in easy way? I've 2 Ubuntu machines

tommyjay (Fri, 25 Jan 2019 15:07:25 GMT):
my network times out every 12 minutes or so and i'm not able to query or make proposals after that unless i restart my backend. is this common?

dkalderos (Fri, 25 Jan 2019 16:56:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P4rQQjKKY2vnozAdg) Apologies to anyone who spent a moment on this. I've discovered that it's super helpful to use the correct card when deploying a network ... he said sheepishly

nRyDevOps (Fri, 25 Jan 2019 20:25:40 GMT):
is there a new reference to this page: https://github.com/hyperledger/fabric/tree/master/examples/chaincode/go/enccc_example that is currently getting a 404 error

nRyDevOps (Fri, 25 Jan 2019 20:26:23 GMT):
I am trying to find info on the encryption options for HLF referenced here: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html?highlight=encrypt#chaincode-encryption but the above link on that page is broken

yacovm (Fri, 25 Jan 2019 20:50:00 GMT):
@nRyDevOps https://github.com/hyperledger/fabric/tree/release-1.4/examples/chaincode/go/enccc_example

yacovm (Fri, 25 Jan 2019 20:52:18 GMT):
apparently certain people decided the best way to move the examples from the fabric core to the fabric samples is by *first* removing the fabric samples from the fabric core and *afterwards* adding them to the fabric samples repository.

nRyDevOps (Fri, 25 Jan 2019 21:26:33 GMT):
@yacovm thanks! I was also looking into the other libraries for encryption...looks very extensive.

sg777 (Sat, 26 Jan 2019 04:42:42 GMT):
Has joined the channel.

alokkv (Sat, 26 Jan 2019 05:01:59 GMT):
hi friends has anyone know how to auto delete old logs from containers?.please help..

Moolkothari (Sat, 26 Jan 2019 12:25:14 GMT):
Hello guy I have install chiancode written in Go , I can instantiate , invoke the chaincode using CLI, it is working fine, How I can create REST APIs for all the operations I am doing in chiancode, can anybody assist me?

Moolkothari (Sat, 26 Jan 2019 12:25:14 GMT):
Hello guy I have installed chiancode written in Go , I can instantiate , invoke the chaincode using CLI, it is working fine, How I can create REST APIs for all the operations I am doing in chiancode, can anybody assist me?

AndresMartinezMelgar.itcl (Sat, 26 Jan 2019 13:46:06 GMT):
Hi, how net works with real IP. Examples only have peer0.org1.example.com, but in a real case its must be 10.5.60.210(real ip), then we can conect 2 or more pc, like a real network. Some one knows a tutorial? I accepts links too.

bayhaqi008 (Sat, 26 Jan 2019 15:35:16 GMT):
Has joined the channel.

bayhaqi008 (Sat, 26 Jan 2019 15:36:27 GMT):
guys, i have a problem when i run the ./byfn.sh -m up, what should i do? tks Hello, i had a problem when i run ./byfn.sh -m up on Git bush, what should i do?

Jamie (Sat, 26 Jan 2019 16:32:57 GMT):
Hi. How to check if the new orderer i have spun and tried to attach to the network, has joined the network?

yousaf (Sat, 26 Jan 2019 16:50:18 GMT):
Hi everyone. I have a query related to anchor peers. When I did setup a basic fabric network without defining the anchor peers of participating orgs in the channel of the network then my queries were still successful in accessing the data on the ledger. So, if the work is still going on without the anchor peers then what is the actual need of defining the anchor peers for each org ??

nilesh.2003 (Sun, 27 Jan 2019 02:01:20 GMT):
Hi, we are getting following error in the orderer log ,does anyone has experience with this "rejected by Consenter: will not enqueue, consenter for this channel hasn't started yet"

knibals (Sun, 27 Jan 2019 12:17:13 GMT):
Has joined the channel.

GavitMc (Sun, 27 Jan 2019 14:37:25 GMT):
have you ever experienced this error? ``` "Certificate not found with AKI '81b673cf987e58182c6096616aff9d767012c54c2c609c4860999ff4fe71b702' and serial '7d7a9289527e32cfd779e0ab21ddea14'" ``` I have this when a try to register a user in fabric-ca. How can i do?

GavitMc (Sun, 27 Jan 2019 14:37:25 GMT):
have you ever experienced this error? ``` "Certificate not found with AKI '81b673cf987e58182c6096616aff9d767012c54c2c609c4860999ff4fe71b702' and serial '7d7a9289527e32cfd779e0ab21ddea14'" ``` I have this when I try to register a user in fabric-ca. How can i do?

GavitMc (Sun, 27 Jan 2019 14:53:51 GMT):
https://stackoverflow.com/questions/47885284/not-able-to-register-a-user-with-hyperledger-fabric-v1-1-preview I found this but what does he mean by delete the KVS?...I thought the file in crypto-config that has the same name as AKI, but if I do this the ca is not even able to start

GavitMc (Sun, 27 Jan 2019 15:42:25 GMT):
solution is re-enrol the bootstrap identity

nagaraju123 (Sun, 27 Jan 2019 17:05:11 GMT):
after instatiating ChainCode

nagaraju123 (Sun, 27 Jan 2019 17:05:18 GMT):
unable to query the data

nagaraju123 (Sun, 27 Jan 2019 17:05:27 GMT):
from chaincode function

nagaraju123 (Sun, 27 Jan 2019 17:05:41 GMT):
can any one give me solution

nagaraju123 (Sun, 27 Jan 2019 17:05:44 GMT):
here

nilesh.2003 (Sun, 27 Jan 2019 20:09:07 GMT):
hi Friends, anyone has experience with the following error , Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition.

hybridNeo (Sun, 27 Jan 2019 20:47:46 GMT):
Hi , does anyone know how I can get the addresses of the other endorsers in system chaincode ?

Srisha (Mon, 28 Jan 2019 01:30:21 GMT):
Hii Guys,I am doing project in Blockchain, in that i have to generate Electronic Health Records(EHR) as a client application. so for that which programming language suits to develop an EHR and integrate with blockchain through SDK and for chaincode also??

ashufalcon (Mon, 28 Jan 2019 06:39:41 GMT):

Clipboard - January 28, 2019 12:07 PM

ashufalcon (Mon, 28 Jan 2019 06:39:41 GMT):

Clipboard - January 28, 2019 12:07 PM

ashufalcon (Mon, 28 Jan 2019 06:39:41 GMT):

Clipboard - January 28, 2019 12:07 PM

ashufalcon (Mon, 28 Jan 2019 06:39:41 GMT):

Clipboard - January 28, 2019 12:07 PM

ashufalcon (Mon, 28 Jan 2019 06:39:41 GMT):

Clipboard - January 28, 2019 12:07 PM

YanLIU0822 (Mon, 28 Jan 2019 07:56:46 GMT):
how much the TPS do you have? I test only 19 TPS it is too much low

pauljithink (Mon, 28 Jan 2019 09:26:25 GMT):
Hi all, When I tried submitting transactions in parallel, I am getting an error ```Failed to connect before the deadline URL:grpcs://localhost:8051 ``` Can someone please help on this? I have already tried the solutions as per https://stackoverflow.com/questions/51588356/failed-to-connect-before-deadline, but its not working

pauljithink (Mon, 28 Jan 2019 09:26:25 GMT):
Hi all, When I tried submitting transactions in parallel, I am getting an error ```Failed to connect before the deadline URL:grpcs://localhost:8051 ``` Can someone please help on this? I have already tried the solutions as per https://stackoverflow.com/questions/51588356/failed-to-connect-before-deadline, but its not working... If I am submitting 1 - 40 transactions in parallel, it's going through successfully. But if I increase the number of transactions > 40, the above error is shown

pauljithink (Mon, 28 Jan 2019 09:26:25 GMT):
Hi all, Using v1.3, when I tried submitting transactions in parallel, I am getting an error ```Failed to connect before the deadline URL:grpcs://localhost:8051 ``` Can someone help on this? I have already tried the solutions as per https://stackoverflow.com/questions/51588356/failed-to-connect-before-deadline, but its not working... If I am submitting 1 - 40 transactions in parallel, it's going through successfully. But if I increase the number of transactions > 40, the above error is shown.

GianlucaPinto (Mon, 28 Jan 2019 10:30:42 GMT):
hi all, how can invoke from java / javascript a fabric network without a ca?

Jehutty (Mon, 28 Jan 2019 10:41:36 GMT):
Has joined the channel.

Jehutty (Mon, 28 Jan 2019 10:41:47 GMT):
Hi people hope you're having a good day, I would like to know about the performance of the Historian in the hyperledger fabric, I am building a model where in our use case I would need to reach out to the historian for evidence of transactions that could go to millions for a single participant or asset. With some calculations and testing on 10000 transactions it takes 21 seconds to retrieve the entire historian record through http request through the composer rest server I am worried that it might bring the entire server down or take a tremendous amount of time to retrieve a huge record that could be in the millions. Can anyone provide with an insight?

Subhankar 3 (Mon, 28 Jan 2019 11:06:40 GMT):
Getting following error from the peer.

Subhankar 3 (Mon, 28 Jan 2019 11:06:40 GMT):
Getting following error from the peer. *Got error while committing(unexpected Previous block hash. Expected PreviousHash =* I have cleared the 'var' so there is no information from the previous run.

mattmaru (Mon, 28 Jan 2019 11:16:14 GMT):
Hi guys. I would get your help ...I'm trying to build a real network but when i run docker stack deploy a docker.yml i get this output : rpc error: code = InvalidArgument desc = name must be valid as a DNS name component. How do I fix this? I have two ubuntu vm

satyarth1 (Mon, 28 Jan 2019 11:17:50 GMT):
Has joined the channel.

SahithiDyavarashetti (Mon, 28 Jan 2019 11:20:49 GMT):
@pauljithink hey where is peer running exaclt..i mean is it running in your machine ?or trying to connect to peer running in another machine??

satyarth1 (Mon, 28 Jan 2019 11:22:57 GMT):
$ git clone https://github.com/hyperledger/fabric-­samples.git

satyarth1 (Mon, 28 Jan 2019 11:23:45 GMT):

Screenshot from 2019-01-28 16-40-04.png

satyarth1 (Mon, 28 Jan 2019 11:24:02 GMT):
as a beginner i'll clone this "$ git clone https://github.com/hyperledger/fabric-­samples.git" project form github

edisinovcic (Mon, 28 Jan 2019 12:20:32 GMT):
Has joined the channel.

KartikChauhan (Mon, 28 Jan 2019 12:25:53 GMT):
Which grafana dashboard is being used in hyperledger fabric v1.4 for analyzing metrics (https://jira.hyperledger.org/browse/FAB-12872?attachmentSortBy=dateTime)

KartikChauhan (Mon, 28 Jan 2019 12:25:53 GMT):
*Which grafana dashboard is being used in hyperledger fabric v1.4 for analyzing metrics (https://jira.hyperledger.org/browse/FAB-12872?attachmentSortBy=dateTime)*

edisinovcic (Mon, 28 Jan 2019 12:27:02 GMT):
Hi guys, is there a possibility to use fabric-ca javascript API? In documentation that part is missing. How do I handle users in javascript API? Is it implemented or I need to use cli for that? Tnx!

Jehutty (Mon, 28 Jan 2019 12:28:05 GMT):
Does hyperledger support sharding?

yacovm (Mon, 28 Jan 2019 12:29:07 GMT):
yeah, with channels

pauljithink (Mon, 28 Jan 2019 12:31:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fRvyKiPDGPvXnJvCP) @SahithiDyavarashetti @SahithiDyavarashetti it is running in my machine

pauljithink (Mon, 28 Jan 2019 12:31:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fRvyKiPDGPvXnJvCP) @SahithiDyavarashetti it is running in my machine

pauljithink (Mon, 28 Jan 2019 12:31:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fRvyKiPDGPvXnJvCP) @SahithiDyavarashetti it is running in my machine, in fact all nodes are running locally in my machine

sudhasakshi (Mon, 28 Jan 2019 13:42:06 GMT):

Hi Team, I am pushing data from my excel to fabric by using node... I am getting this error....could you please help me to solve this error...

bjornoj (Mon, 28 Jan 2019 13:52:37 GMT):
Hello everyone! I get this error when I try to connect the composer-rest-server: `Error: Found multiple type definitions for XXXTransaction, must fully qualify type name` What does it mean..? What can I do to fix it?

naganjaneyulu (Mon, 28 Jan 2019 14:15:10 GMT):
Hello every one - can somebody advice me which language has been used in fabcar chain code development ..have executed my startFabric.sh without any extension. How can I find which language has been used .?

deelthor (Mon, 28 Jan 2019 14:47:25 GMT):
Hi guys. I had an already running network. Now I had to restart a peer and the password for enrolling the peer at the ca is also gone. Now the Peer comes up and tries to enroll with a new password. But it fails since the Peer was already registered and enrolled with a different password before. Any ideas?

benjamin.verhaegen (Mon, 28 Jan 2019 15:08:59 GMT):
Has joined the channel.

pankajcheema (Mon, 28 Jan 2019 16:37:02 GMT):
@naganjaneyulu go and node js both

pankajcheema (Mon, 28 Jan 2019 16:37:50 GMT):
You have to change the identity of peer @deelthor

frgomes (Mon, 28 Jan 2019 16:41:00 GMT):
Has joined the channel.

pankajcheema (Mon, 28 Jan 2019 16:41:13 GMT):
You can also reenroll your identity by providing old certificates but don’t know how to do in node js .i know only in terms of CA

frgomes (Mon, 28 Jan 2019 16:41:42 GMT):
Hello, this is my first appearance here. I'm new to Hyperledger and I'm trying to find which path I should take before I spend time and effort trying examples, etc. Note: I'm biased towards Scala and also Rust, which hints SDKs of my preference. By the way, looking for a Rust SDK took me to Sawtooth. I have a very basic question: Are Hyperledger Fabric and Hyperledger Sawtooth competing technologies? Even though I've read "Distinctive Features of Sawtooth", which supposedly lists competitive advantages of Sawtooth, it's not clear to me the competitive advantages of Fabric or other implementations. Could sometone clarify, please?

paparent (Mon, 28 Jan 2019 16:42:26 GMT):
Has joined the channel.

jeffgarratt (Mon, 28 Jan 2019 16:47:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xCHWDn9adrETMWGYM) @frgomes I am working on some interesting things in Scala. I will post here soon.

frgomes (Mon, 28 Jan 2019 16:53:56 GMT):
@jeffgarratt : I flee from Javascript as much as I can, because it's a dynamic language, the compiler does not help you much, etc. It would be great if one could write smart contracts in Scala which generates ScalaJS behind the scenes.

yacovm (Mon, 28 Jan 2019 17:03:25 GMT):
we have a java chaincode

yacovm (Mon, 28 Jan 2019 17:03:27 GMT):
and a java SDK

yacovm (Mon, 28 Jan 2019 17:03:41 GMT):
however, an SDK or a chaincode is quite a big project

yacovm (Mon, 28 Jan 2019 17:04:04 GMT):
I think that an SDK is more useful than a chaincode, because SDK is something you embed into your business logic

yacovm (Mon, 28 Jan 2019 17:04:11 GMT):
while a chaincode is simply business logic on its own

deelthor (Mon, 28 Jan 2019 17:18:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sPhRJRBw6Movz6FiUG) @pankajcheema That helped. I modified the secret of the identity with the fabric-ca-client tool. Worked again. Thanks a lot!

nRyDevOps (Mon, 28 Jan 2019 18:33:35 GMT):
Hello, I am looking into the ENC SHIM located here: https://gerrit.hyperledger.org/r/#/c/28887/ and I am wondering if there might be any samples that implement the encryption shim? Even more specifically if there might be any samples that implement Broadcast Encryption?

rodolfofranco (Mon, 28 Jan 2019 20:20:08 GMT):
Hello, I'm getting the following error when trying to start my network `Failed to initialize local MSP: could not load a valid signer certificate from directory /etc/hyperledger/orderer/msp/signcerts: stat /etc/hyperledger/orderer/msp/signcerts: no such file or directory`

rodolfofranco (Mon, 28 Jan 2019 20:20:54 GMT):
I have the following path configured `ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/orderer/msp`

rodolfofranco (Mon, 28 Jan 2019 20:21:26 GMT):
Tried these paths already: `/etc/hyperledger/msp/orderer/msp`

rodolfofranco (Mon, 28 Jan 2019 20:21:52 GMT):
And `/var/hyperledger/msp`

rodolfofranco (Mon, 28 Jan 2019 20:26:00 GMT):
Complete orderer container log: ``` 2019-01-28 20:15:08.983 UTC [localconfig] completeInitialization -> INFO 001 Kafka.Version unset, setting to 0.10.2.0 2019-01-28 20:15:08.983 UTC [bccsp_sw] createKeyStoreIfNotExists -> DEBU 002 KeyStore path [/etc/hyperledger/orderer/msp/keystore] missing [true]: [] 2019-01-28 20:15:08.983 UTC [bccsp_sw] createKeyStore -> DEBU 003 Creating KeyStore at [/etc/hyperledger/orderer/msp/keystore]... 2019-01-28 20:15:08.984 UTC [bccsp_sw] createKeyStore -> DEBU 004 KeyStore created at [/etc/hyperledger/orderer/msp/keystore]. 2019-01-28 20:15:08.984 UTC [bccsp_sw] openKeyStore -> DEBU 005 KeyStore opened at [/etc/hyperledger/orderer/msp/keystore]...done 2019-01-28 20:15:08.984 UTC [bccsp] initBCCSP -> DEBU 006 Initialize BCCSP [SW] 2019-01-28 20:15:08.984 UTC [msp] getPemMaterialFromDir -> DEBU 007 Reading directory /etc/hyperledger/orderer/msp/signcerts 2019-01-28 20:15:08.984 UTC [orderer/common/server] initializeLocalMsp -> FATA 008 Failed to initialize local MSP: could not load a valid signer certificate from directory /etc/hyperledger/orderer/msp/signcerts: stat /etc/hyperledger/orderer/msp/signcerts: no such file or directory ```

frgomes (Mon, 28 Jan 2019 21:39:10 GMT):
Hello, the instructions in project https://github.com/jeffgarratt/fabric-prototype say that I should run ``make`` on the "root fabric folder". I suppose my question is just stupid... but what this folder should be? Should I clone another project or something?

yacovm (Mon, 28 Jan 2019 22:28:04 GMT):
@frgomes I think it's a bit outdated, for example - ` export PATH=$PATH:$GOPATH/src/github.com/hyperledger/fabric/build/bin` - the build folder is now `.build` and not `build`

yacovm (Mon, 28 Jan 2019 22:28:24 GMT):
I doubt it'll work with the LTS version of fabric

yacovm (Mon, 28 Jan 2019 22:29:34 GMT):
if you want to try out fabric I suggest you look at the official documentation site https://hyperledger-fabric.readthedocs.io

frgomes (Mon, 28 Jan 2019 22:38:44 GMT):
@yacovm : yes, I'm trying the tutorial (getting started) first, instead of trying to jump straight onto fabric-prototype. Thanks a lot for the heads up in regards to outdated info. :-)

frgomes (Mon, 28 Jan 2019 22:38:44 GMT):
@yacovm : yes, I'm trying the tutorial (getting started) first, instead of trying to jump head first straight into fabric-prototype. Thanks a lot for the heads up in regards to outdated info. :-)

naganjaneyulu (Mon, 28 Jan 2019 23:21:28 GMT):
Is the smart contract installed on the network or outside of the network similar to application

naganjaneyulu (Mon, 28 Jan 2019 23:22:02 GMT):
If smart contracted installed on network..where it will be installed .?

knagware9 (Tue, 29 Jan 2019 05:10:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KspFPn7cGMiZ3K2XR) @naganjaneyulu smart contract(chaincode) installed on peer and run in separate docker container within the network

Aniket.1 (Tue, 29 Jan 2019 05:24:31 GMT):
In fabric 1.4, wallet has been introduced to store the identities which can be used for signing while interacting with smart contract. Can these identities be used for creating or joining a channel too?

rohitsethi (Tue, 29 Jan 2019 05:41:57 GMT):
Has joined the channel.

rohitsethi (Tue, 29 Jan 2019 05:44:44 GMT):
trying to install chaincode command : ./peer chaincode install -n fabcar -v 1.0 -l node -p ./chaincode/fabcar peer version : 1.4 getting this error : Error: Bad response: 500 - nil code package and running peer displays this error log : simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: af2f023e67e79e82f17486d96d8af6adbb13519ddc234c1af95445d6ebc411ab can anyone shed light on this?

rohitsethi (Tue, 29 Jan 2019 05:44:44 GMT):
trying to install chaincode command : ./peer chaincode install -n fabcar -v 1.0 -l node -p ./chaincode/fabcar peer version : 1.4 getting this error : Error: Bad response: 500 - nil code package and running peer displays this error log : simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: af2f023e67e79e82f17486d96d8af6adbb13519ddc234c1af95445d6ebc411ab can anyone shed light on this?

rohitsethi (Tue, 29 Jan 2019 05:44:44 GMT):
trying to install chaincode command : ``./peer chaincode install -n fabcar -v 1.0 -l node -p ./chaincode/fabcar`` peer version : 1.4 getting this error : ``Error: Bad response: 500 - nil code package`` and running peer displays this error log : ``simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: af2f023e67e79e82f17486d96d8af6adbb13519ddc234c1af95445d6ebc411ab`` can anyone shed light on this?

rohitsethi (Tue, 29 Jan 2019 05:44:44 GMT):
trying to install chaincode command : `./peer chaincode install -n fabcar -v 1.0 -l node -p ./chaincode/fabcar` peer version : 1.4 getting this error : ``Error: Bad response: 500 - nil code package`` and running peer displays this error log : ``simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: af2f023e67e79e82f17486d96d8af6adbb13519ddc234c1af95445d6ebc411ab`` can anyone shed light on this?

rohitsethi (Tue, 29 Jan 2019 05:44:44 GMT):
trying to install chaincode command : `./peer chaincode install -n fabcar -v 1.0 -l node -p ./chaincode/fabcar` peer version : 1.4 getting this error : `Error: Bad response: 500 - nil code package` and running peer displays this error log : `simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: af2f023e67e79e82f17486d96d8af6adbb13519ddc234c1af95445d6ebc411ab` can anyone shed light on this?

SahithiDyavarashetti (Tue, 29 Jan 2019 08:59:00 GMT):
Can anyone help me with this error ? ``` Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [composerchannel] creator org [Org1MSP] Command failed ```

mattmaru (Tue, 29 Jan 2019 09:00:27 GMT):
Hello to everyone. I would your help. I need to build an hyperledger fabric network using kubernetes but i've not idea which guide follow..can anyone help me? Please

mattmaru (Tue, 29 Jan 2019 09:00:39 GMT):
Scuse me for my bad english

Aniket.1 (Tue, 29 Jan 2019 10:21:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v64oM7RXJDWhGgosH) It means the action you are performing should be performed with ORG1MSP membe

Aniket.1 (Tue, 29 Jan 2019 10:21:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v64oM7RXJDWhGgosH) It means the action you are performing should be performed with ORG1MSP member

Aniket.1 (Tue, 29 Jan 2019 10:21:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v64oM7RXJDWhGgosH) It means the action you are performing should be performed with ORG1MSP member @SahithiDyavarashetti

Aniket.1 (Tue, 29 Jan 2019 10:28:50 GMT):
identity generated by fabric-ca by using bootstap username, password is not getting recognized by orderer as admin

jaguarg (Tue, 29 Jan 2019 10:55:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PMGYksypHsSbbBMoo) @Daka @daka, I meant technical support. We are building a live network and I will need some technical support to help us doing this. So far so good but I'd like to be able to get in touch with experts if needed.

SahithiDyavarashetti (Tue, 29 Jan 2019 10:56:15 GMT):
@Aniket.1 i did with the organization member

bibek54 (Tue, 29 Jan 2019 11:08:38 GMT):
Has joined the channel.

bibek54 (Tue, 29 Jan 2019 11:08:43 GMT):
I tried to implement kafka in hyperledger fabric. And when I try to create a channel, it shows kafka-cluster hasnot completed booting. I increased the sleep to 100 after my kafka cluster was up but it didnot work too. I have tried to edit the code of byfn network of hyperledger fabric. I tried to make 4 orderers, 4 kafka brokers and 1 zookeeper ensemble. While trying to create a channel it shows ``` + peer channel create -o orderer0.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-01-29 10:29:26.155 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ``` The logs in orderer0.example.com is ``` 2019-01-29 10:29:26.171 UTC [common.deliver] Handle -> WARN 00c Error reading from 192.168.176.14:41538: rpc error: code = Canceled desc = context canceled 2019-01-29 10:29:26.171 UTC [comm.grpc.server] 1 -> INFO 00d streaming call completed {"grpc.start_time": "2019-01-29T10:29:26.156Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "192.168.176.14:41538", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "14.906454ms"} ```

bibek54 (Tue, 29 Jan 2019 11:09:18 GMT):
``` ```

naganjaneyulu (Tue, 29 Jan 2019 11:59:40 GMT):
What minimum software needed for an application to connect to fabric network .?

AndresMartinezMelgar.itcl (Tue, 29 Jan 2019 12:54:08 GMT):
@bibek54 do you prove this example? https://github.com/keenkit/fabric-sample-with-kafka

Daca 5 (Tue, 29 Jan 2019 13:03:30 GMT):
Has joined the channel.

Daca 5 (Tue, 29 Jan 2019 13:05:25 GMT):
Hi everyone! I want to share with you my tutorial to up and run network with hyperledger fabric, so if you need it, here it is! 🙂 https://medium.com/cryptokajmak-hyperledger-fabric-web-application/hyperledger-fabric-network-up-and-running-7d7070e62df2

Aniket.1 (Tue, 29 Jan 2019 13:24:36 GMT):
should cryptogen be used on production or is their any alternative?

jaguarg (Tue, 29 Jan 2019 13:34:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d73aMeNERPrEmcJKy) @Aniket.1 +1

rohitsethi (Tue, 29 Jan 2019 13:36:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d73aMeNERPrEmcJKy) @Aniket.1 +1

GianlucaPinto (Tue, 29 Jan 2019 15:02:21 GMT):
hi all, i have create a network with 5 peer and only 1 org starting from the "first-network" dir. so, now i have a network without a ca and a tls enabled. i have a java app that will interface the blockchain. how craete the right client for this case? thanks in advance 🙂

RyanGriffiths (Tue, 29 Jan 2019 15:04:12 GMT):
Has joined the channel.

Javi (Tue, 29 Jan 2019 15:05:08 GMT):
I'm trying to interact with one Fabric CA using the node SDK, but I'm getting the error: `Enrollment failed with errors [[{"code":0,"message":"{\"code\":9002,\"message\":\"CSR Decode failed\"}"}]]`, how is the correct format of the CSR??

Javi (Tue, 29 Jan 2019 15:05:42 GMT):
currently I`m using this form: ``` -----BEGIN CERTIFICATE----- MIICGjCCAcGgAwIBAgIUB5vErR0wGtZaYgsOqDnEk/3JFU8wCgYIKoZIzj0EAwIw ajELMAkGA1UEBhMCRVM....... -----END CERTIFICATE----- ```

Javi (Tue, 29 Jan 2019 15:07:03 GMT):
The documentation says that this param is `csr string PEM-encoded PKCS#10 certificate signing request`, I'm using the `.pem` generated by the server on startud, I'm missing anything?

Javi (Tue, 29 Jan 2019 15:07:03 GMT):
The documentation says that this param is `csr string PEM-encoded PKCS#10 certificate signing request`, I'm using the `.pem` generated by the server on startup, I'm missing anything?

Javi (Tue, 29 Jan 2019 15:14:56 GMT):
Ok, first I need to generate one using the `gencsr`....

Antimttr (Tue, 29 Jan 2019 17:33:53 GMT):
Has joined the channel.

Antimttr (Tue, 29 Jan 2019 18:22:38 GMT):
is there any timeline for when idemix will support revocations?

Antimttr (Tue, 29 Jan 2019 18:22:52 GMT):
also is there any beta js sdk for idemix?

VictorStroganov (Tue, 29 Jan 2019 19:00:28 GMT):
Hi all! I get error {"name":"Error","status":500,"message":"300: Error: CheckArgs requires an object and schema"} invoking chaincode using "peer chaincode invoke ..." command. Chaincode has no input params and command is too simple to have errors. Googling gives me nothing useful..

brockhager (Tue, 29 Jan 2019 20:06:44 GMT):
Hello everyone. My name is Brock and my company is experimenting with Blockchain and Fabric

brockhager (Tue, 29 Jan 2019 20:07:28 GMT):
Sorry I'm really new and was looking for help in instalilng PreReq's on a Windows Server that my company set up for me

brockhager (Tue, 29 Jan 2019 20:07:28 GMT):
Sorry I'm really new and was looking for help in instalilng PreReq's on a Windows Server 2016 that my company set up for me

Antimttr (Tue, 29 Jan 2019 20:16:46 GMT):
@brockhager did you follow all these steps already? https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html

brockhager (Tue, 29 Jan 2019 20:19:51 GMT):
@Antimttr that is what I am doing now. I got to the GOPATH step but I had a question..........

brockhager (Tue, 29 Jan 2019 20:20:11 GMT):
I am logged in with my own ID (bhager) and there is normally an admin account. The admin is on extended leave

brockhager (Tue, 29 Jan 2019 20:20:18 GMT):
I set the GOPATH env variable under my ID

brockhager (Tue, 29 Jan 2019 20:20:24 GMT):
but will that work for all users that log in ?

brockhager (Tue, 29 Jan 2019 20:21:35 GMT):

gopath.PNG

brockhager (Tue, 29 Jan 2019 20:22:07 GMT):
My account is an administrator but not the main Admin account we had previously been using

Antimttr (Tue, 29 Jan 2019 20:22:18 GMT):
no thats only for you

brockhager (Tue, 29 Jan 2019 20:22:56 GMT):
OK. That is what I was afraid of. I will have to find out when the Admin gets back at work. Thank you @Antimttr

Antimttr (Tue, 29 Jan 2019 20:23:18 GMT):
yeah there should be another spot to put system wide env variable

Antimttr (Tue, 29 Jan 2019 20:23:25 GMT):
though im not familiar with that version of windows

brockhager (Tue, 29 Jan 2019 20:23:45 GMT):
Also - another question - Can I install the Python SDK to use on a Windows Server for Fabric?

brockhager (Tue, 29 Jan 2019 20:23:58 GMT):
My company wants to use Python above the other choices of SDK

Antimttr (Tue, 29 Jan 2019 20:24:06 GMT):
didnt even know there was one

Antimttr (Tue, 29 Jan 2019 20:24:12 GMT):
thought it was just nodejs and java and go

brockhager (Tue, 29 Jan 2019 20:24:25 GMT):
there may not be one. For ubuntu it comes with it - but wasn't sure about a Windows Server

Antimttr (Tue, 29 Jan 2019 20:24:34 GMT):
dont think the os matters

Antimttr (Tue, 29 Jan 2019 20:24:44 GMT):
but ive yet to see any reference to python sdk

Antimttr (Tue, 29 Jan 2019 20:24:54 GMT):
there were some beta sdks though

Antimttr (Tue, 29 Jan 2019 20:24:56 GMT):
maybe its one of those

brockhager (Tue, 29 Jan 2019 20:25:06 GMT):

python-prereq.PNG

Antimttr (Tue, 29 Jan 2019 20:25:24 GMT):
yeah thats the nodejs sdk

brockhager (Tue, 29 Jan 2019 20:25:31 GMT):
oh

Antimttr (Tue, 29 Jan 2019 20:25:43 GMT):
it still requires pyhton i guess

brockhager (Tue, 29 Jan 2019 20:26:26 GMT):
I asked many times about a linux/ubuntu server but my company only uses Windows OS Servers etc

Antimttr (Tue, 29 Jan 2019 20:26:32 GMT):
well

Antimttr (Tue, 29 Jan 2019 20:26:36 GMT):
you could always just virtualize it

Antimttr (Tue, 29 Jan 2019 20:26:40 GMT):
thats how im doing it

Daca 5 (Tue, 29 Jan 2019 20:26:44 GMT):
@brockhager If you are going to do with Hyperledger Fabric I would sugest you to use Linux

Antimttr (Tue, 29 Jan 2019 20:26:57 GMT):
running win10 w/a centos vm

Daca 5 (Tue, 29 Jan 2019 20:26:59 GMT):
oh, sorry, didnt see last massage

Daca 5 (Tue, 29 Jan 2019 20:27:30 GMT):
I also have Virtual Machine Ubuntu 16.4 LTS

brockhager (Tue, 29 Jan 2019 20:27:30 GMT):
hmmmm. So all I have right now is a Windows Server 2016. Can I use Oracle VM Box or something similar?

Daca 5 (Tue, 29 Jan 2019 20:28:19 GMT):
VMware Workstation is ok

brockhager (Tue, 29 Jan 2019 20:28:54 GMT):
Free?

Daca 5 (Tue, 29 Jan 2019 20:29:01 GMT):
yes

brockhager (Tue, 29 Jan 2019 20:29:08 GMT):
which version? does it matter?

Antimttr (Tue, 29 Jan 2019 20:29:13 GMT):
win10 might come with something already

Antimttr (Tue, 29 Jan 2019 20:29:20 GMT):
rr your server version

Antimttr (Tue, 29 Jan 2019 20:29:36 GMT):
im using ms's virtualization that comes with win10ult

brockhager (Tue, 29 Jan 2019 20:29:45 GMT):
Hyper-V Manager?

Antimttr (Tue, 29 Jan 2019 20:29:47 GMT):
yes

Daca 5 (Tue, 29 Jan 2019 20:30:18 GMT):
and about windows, 'cause its my host machine... it was hard for me to interact server-blockchain network

Daca 5 (Tue, 29 Jan 2019 20:30:36 GMT):
thats why I went with everything to ubuntu

Antimttr (Tue, 29 Jan 2019 20:31:05 GMT):
@Daca 5 did you go through the papernet demo already?

brockhager (Tue, 29 Jan 2019 20:31:12 GMT):
hmmm interesting @Daca 5 .....

Daca 5 (Tue, 29 Jan 2019 20:31:44 GMT):
Because Hyperledger Fabric is Linux you have to use Linux/Ubuntu for build blockchain network

Antimttr (Tue, 29 Jan 2019 20:32:11 GMT):
@Daca 5 do you know if you always have to use dockers? or would this also run on native linux

Daca 5 (Tue, 29 Jan 2019 20:32:28 GMT):
Yes, you have to use dockers

Antimttr (Tue, 29 Jan 2019 20:32:39 GMT):
interesting

Daca 5 (Tue, 29 Jan 2019 20:33:29 GMT):
I can send you my article which I published yesterday about HF Network with tutorial, so you can see how I managed it

Antimttr (Tue, 29 Jan 2019 20:33:41 GMT):
i have that open already, thanks

Antimttr (Tue, 29 Jan 2019 20:33:47 GMT):
im going to review it after i finish the papernet demo

Antimttr (Tue, 29 Jan 2019 20:34:01 GMT):
im thinking about writing a little POC

Daca 5 (Tue, 29 Jan 2019 20:34:08 GMT):
Ok, so if you have any question I can help you

Antimttr (Tue, 29 Jan 2019 20:34:09 GMT):
but i need to understand how to modify contracts first

brockhager (Tue, 29 Jan 2019 20:34:21 GMT):
link please

Antimttr (Tue, 29 Jan 2019 20:34:37 GMT):
like i want to add some more fields to the papernet smart contract

Antimttr (Tue, 29 Jan 2019 20:34:47 GMT):
https://medium.com/cryptokajmak-hyperledger-fabric-web-application/hyperledger-fabric-network-up-and-running-7d7070e62df2

brockhager (Tue, 29 Jan 2019 20:34:54 GMT):
thank you

Daca 5 (Tue, 29 Jan 2019 20:34:58 GMT):
I know its hard to find everything in one place about setting network, that 's why I put it in one article

Daca 5 (Tue, 29 Jan 2019 20:35:10 GMT):
And I will write next one about chaincode

Daca 5 (Tue, 29 Jan 2019 20:35:15 GMT):
or smart contract

Antimttr (Tue, 29 Jan 2019 20:35:19 GMT):
@Daca 5 yeah i was triyng to follow the main tutorial on their read the docs page

Antimttr (Tue, 29 Jan 2019 20:35:28 GMT):
and like, i get to a certain point and everything starts failing

Antimttr (Tue, 29 Jan 2019 20:35:41 GMT):
i find it to be a slightly confusing tutorial

Antimttr (Tue, 29 Jan 2019 20:36:08 GMT):
this papernet one though is working better

Daca 5 (Tue, 29 Jan 2019 20:36:20 GMT):
Can you share that with me?

Antimttr (Tue, 29 Jan 2019 20:36:27 GMT):
which one?

brockhager (Tue, 29 Jan 2019 20:36:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dmvSmvmf6TDpePwL3) Agreed

Antimttr (Tue, 29 Jan 2019 20:38:37 GMT):
@Daca 5 papernet: https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html

Daca 5 (Tue, 29 Jan 2019 20:39:34 GMT):
yes,that, thanks :)

Antimttr (Tue, 29 Jan 2019 20:40:38 GMT):
@Daca 5 have you written any chaincodes/smart contracts yet?

Antimttr (Tue, 29 Jan 2019 20:40:59 GMT):
@Daca 5 have you tried idemix yet?

Antimttr (Tue, 29 Jan 2019 20:41:19 GMT):
looks like it could be good but they havent finihsed it yet

Antimttr (Tue, 29 Jan 2019 20:41:22 GMT):
doesnt support revocaktions

Antimttr (Tue, 29 Jan 2019 20:41:22 GMT):
doesnt support revocations

Antimttr (Tue, 29 Jan 2019 20:43:53 GMT):
its funny i am looking at the transaction log, and although each of the operations succedes it generates this log error: peer0.org1.example.com|2019-01-29 19:56:57.271 UTC [comm.grpc.server] 1 -> INFO 051 streaming call completed {"grpc.start_time": "2019-01-29T19:56:55.195Z", "grpc.service": "protos.Deliver", "grpc.method": "DeliverFiltered", "grpc.peer_address": "172.26.0.1:52720", "error": "context finished before block retrieved: context canceled", "grpc.code": "Unknown", "grpc.call_duration": "2.075315121s"}

Daca 5 (Tue, 29 Jan 2019 20:46:12 GMT):
Yes, I wrote chaincode for my web application, this on medium blog. I will explain it in the next article, in a few days I think

Antimttr (Tue, 29 Jan 2019 20:46:39 GMT):
so when you replace an existing smart contract

Daca 5 (Tue, 29 Jan 2019 20:46:40 GMT):
And I used idemix

Antimttr (Tue, 29 Jan 2019 20:46:45 GMT):
like say by updating it

Antimttr (Tue, 29 Jan 2019 20:47:06 GMT):
its just a single command to propagate it to all the nodes correctly

Antimttr (Tue, 29 Jan 2019 20:47:19 GMT):
or do you actualy have to have the same copy on each node docker thingy

Antimttr (Tue, 29 Jan 2019 20:47:38 GMT):
oh nice, was idemix hard to setup?

Antimttr (Tue, 29 Jan 2019 20:47:43 GMT):
what did you use as your sidedb?

Antimttr (Tue, 29 Jan 2019 20:48:01 GMT):
does your tutorial cover idemix setup?

Daca 5 (Tue, 29 Jan 2019 21:29:49 GMT):
I used this tutorial, so maybe it can help you: https://hyperledger-fabric.readthedocs.io/en/release-1.2/idemix.html

Antimttr (Tue, 29 Jan 2019 21:32:42 GMT):
thanks

Antimttr (Tue, 29 Jan 2019 21:33:28 GMT):
@Daca 5 when you make a change to like a contract, and that contract already has an instance on the ledger, does the change fail

Antimttr (Tue, 29 Jan 2019 21:33:34 GMT):
or does the old version keep its old properties

Antimttr (Tue, 29 Jan 2019 21:33:42 GMT):
or do you have to like wipe the ledger out and start over again?

Antimttr (Tue, 29 Jan 2019 21:34:19 GMT):
in other words, once you have a smart contract type in the ledger, can its definition be changed after the fact?

Antimttr (Tue, 29 Jan 2019 21:39:25 GMT):
" Although all our commercial papers currently have the same properties, this need not be the case for all time, as Hyperledger Fabric supports different states having different properties. This allows the same ledger world state to contain different forms of the same asset as well as different types of asset. It also makes it possible to update a state’s structure; imagine a new regulation that requires an additional data field."

Antimttr (Tue, 29 Jan 2019 21:39:25 GMT):
*" Although all our commercial papers currently have the same properties, this need not be the case for all time, as Hyperledger Fabric supports different states having different properties. This allows the same ledger world state to contain different forms of the same asset as well as different types of asset. It also makes it possible to update a state’s structure; imagine a new regulation that requires an additional data field."*

Antimttr (Tue, 29 Jan 2019 21:39:34 GMT):
looks like it wont cause a problem

sudha247 (Wed, 30 Jan 2019 05:19:42 GMT):
Has joined the channel.

KartikChauhan (Wed, 30 Jan 2019 07:21:43 GMT):
I'm running fabric-sample/basic-network. I checked into fabric-ca-client docker container and looked for admin certificates in certificates table of fabric-ca-server.db file. The admin certificate that I found didn't match with any of the certificates present in the peer docker container. If these two certificates belong to different entities then two questions come to my mind. Why there're two admins? and if I register a new admin/user through fabric-ca-client then how will I get his certificates in peer docker container?

Rosan (Wed, 30 Jan 2019 07:24:10 GMT):
Has joined the channel.

Rosan (Wed, 30 Jan 2019 07:24:27 GMT):
Hello guys, Is it possible to send "text file" in the proposal request using any SDKs? In my current work, they want to put all business logics in the blockchain side (on Peer). So is there any possible way to send the whole file to the endorser peer as proposal request?

konetichandra (Wed, 30 Jan 2019 07:28:44 GMT):
Hi we are currently using 1.2 version fabric. Why should we upgrade to 1.4. What are all the differences? is it mandatory to move to 1.4

Aniket.1 (Wed, 30 Jan 2019 07:30:27 GMT):
@konetichandra Refer https://hyperledger-fabric.readthedocs.io/en/release-1.3/whatsnew.html https://hyperledger-fabric.readthedocs.io/en/release-1.4/whatsnew.html

KartikChauhan (Wed, 30 Jan 2019 07:30:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TeY8gTqdnyi9jnR6n) @konetichandra v1.4 will be the fabric's first long term support release. Fabric maintainers are gonna provide bug fixes for a period of one year from the date of release.

KartikChauhan (Wed, 30 Jan 2019 07:31:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7fKbu7cEJcoYr7Ygv) Moreover, they're gonna provide logging improvements, health checks, and operational metrics in v1.4

konetichandra (Wed, 30 Jan 2019 07:32:00 GMT):
Thank you and how frequently new version comes. I mean 1.4 to other versions?

KartikChauhan (Wed, 30 Jan 2019 07:33:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4jGYQq47thmATCCt4) @konetichandra They release their versions quarterly.

konetichandra (Wed, 30 Jan 2019 07:33:43 GMT):
so for next quarter we will have 1.5. is that correct?

konetichandra (Wed, 30 Jan 2019 07:34:13 GMT):
in that case how do we upgrade seamlessly from one version to another

KartikChauhan (Wed, 30 Jan 2019 08:11:48 GMT):
Next version is gonna be 2.0. They're planning to bring some significant changes to the project like Using RAFT consensus mechanism.

LucasSL (Wed, 30 Jan 2019 08:12:53 GMT):
Has joined the channel.

YanLIU0822 (Wed, 30 Jan 2019 08:13:22 GMT):
root@df1a4bb9b007:/opt/gopath/src/github.com/hyperledger/fabric/peer# export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem root@df1a4bb9b007:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx --tls --cafile $ORDERER_CA 2019-01-30 08:01:37.364 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2019-01-30 08:01:37.364 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2019-01-30 08:01:37.368 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2019-01-30 08:01:37.368 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2019-01-30 08:01:37.368 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2019-01-30 08:01:37.368 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 2019-01-30 08:01:37.368 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 2019-01-30 08:01:37.368 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AA0060A074F7267314D53501294062D...53616D706C65436F6E736F727469756D 2019-01-30 08:01:37.368 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 80EF18FEE6E298C72A28F366F6CA2E5BA54392CAFEEF2FCB95012D85522380EC 2019-01-30 08:01:37.368 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 2019-01-30 08:01:37.368 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 2019-01-30 08:01:37.368 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 2019-01-30 08:01:37.368 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 2019-01-30 08:01:37.368 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AD7060A1508021A0608E1B3C5E20522...3570FF9CB32D9CAA0ED321D6391EF261 2019-01-30 08:01:37.368 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C571A7E85C43A1FF979C143EDA195D4EE09A76FC50A4A5C85AD72CEF44B43764 Error: Got unexpected status: BAD_REQUEST Usage: peer channel create [flags]

YanLIU0822 (Wed, 30 Jan 2019 08:13:36 GMT):
please help me out

YanLIU0822 (Wed, 30 Jan 2019 08:13:50 GMT):
I cannot find the existing channel here

YanLIU0822 (Wed, 30 Jan 2019 08:14:09 GMT):
and the logs has no errors

YanLIU0822 (Wed, 30 Jan 2019 08:14:12 GMT):
idart-305@liuyan-hp:~$ docker logs peer0.org1.example.com 2019-01-30 07:35:42.231 UTC [msp] getMspConfig -> INFO 001 Loading NodeOUs 2019-01-30 07:35:42.248 UTC [nodeCmd] serve -> INFO 002 Starting peer: Version: 1.1.0 Go version: go1.9.2 OS/Arch: linux/amd64 Experimental features: false Chaincode: Base Image Version: 0.4.6 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger 2019-01-30 07:35:42.248 UTC [ledgermgmt] initialize -> INFO 003 Initializing ledger mgmt 2019-01-30 07:35:42.248 UTC [kvledger] NewProvider -> INFO 004 Initializing ledger provider 2019-01-30 07:35:42.965 UTC [kvledger] NewProvider -> INFO 005 ledger provider Initialized 2019-01-30 07:35:42.965 UTC [ledgermgmt] initialize -> INFO 006 ledger mgmt initialized 2019-01-30 07:35:42.965 UTC [peer] func1 -> INFO 007 Auto-detected peer address: 172.19.0.2:7051 2019-01-30 07:35:42.965 UTC [peer] func1 -> INFO 008 Returning peer0.org1.example.com:7051 2019-01-30 07:35:42.965 UTC [peer] func1 -> INFO 009 Auto-detected peer address: 172.19.0.2:7051 2019-01-30 07:35:42.965 UTC [peer] func1 -> INFO 00a Returning peer0.org1.example.com:7051 2019-01-30 07:35:42.966 UTC [nodeCmd] serve -> INFO 00b Starting peer with TLS enabled 2019-01-30 07:35:42.967 UTC [eventhub_producer] start -> INFO 00c Event processor started 2019-01-30 07:35:42.968 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00d Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com 2019-01-30 07:35:42.968 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00e Exit with ccEndpoint: peer0.org1.example.com:7052 2019-01-30 07:35:42.969 UTC [chaincode] NewChaincodeSupport -> INFO 00f Chaincode support using peerAddress: peer0.org1.example.com:7052 2019-01-30 07:35:42.969 UTC [sccapi] registerSysCC -> INFO 010 system chaincode cscc(github.com/hyperledger/fabric/core/scc/cscc) registered 2019-01-30 07:35:42.969 UTC [sccapi] registerSysCC -> INFO 011 system chaincode lscc(github.com/hyperledger/fabric/core/scc/lscc) registered 2019-01-30 07:35:42.969 UTC [sccapi] registerSysCC -> INFO 012 system chaincode escc(github.com/hyperledger/fabric/core/scc/escc) registered 2019-01-30 07:35:42.970 UTC [sccapi] registerSysCC -> INFO 013 system chaincode vscc(github.com/hyperledger/fabric/core/scc/vscc) registered 2019-01-30 07:35:42.970 UTC [sccapi] registerSysCC -> INFO 014 system chaincode qscc(github.com/hyperledger/fabric/core/chaincode/qscc) registered 2019-01-30 07:35:42.971 UTC [gossip/service] func1 -> INFO 015 Initialize gossip with endpoint peer0.org1.example.com:7051 and bootstrap set [127.0.0.1:7051] 2019-01-30 07:35:42.972 UTC [msp] DeserializeIdentity -> INFO 016 Obtaining identity 2019-01-30 07:35:42.974 UTC [gossip/discovery] NewDiscoveryService -> INFO 017 Started {peer0.org1.example.com:7051 [] [133 84 132 70 137 16 57 56 148 186 18 50 146 112 250 48 230 23 172 231 163 41 113 167 114 181 53 25 237 167 211 211] peer0.org1.example.com:7051 } incTime is 1548833742974119348 2019-01-30 07:35:42.974 UTC [gossip/gossip] NewGossipService -> INFO 018 Creating gossip service with self membership of {peer0.org1.example.com:7051 [] [133 84 132 70 137 16 57 56 148 186 18 50 146 112 250 48 230 23 172 231 163 41 113 167 114 181 53 25 237 167 211 211] peer0.org1.example.com:7051 } 2019-01-30 07:35:42.975 UTC [gossip/gossip] start -> INFO 019 Gossip instance peer0.org1.example.com:7051 started 2019-01-30 07:35:42.976 UTC [cscc] Init -> INFO 01a Init CSCC 2019-01-30 07:35:42.976 UTC [sccapi] deploySysCC -> INFO 01b system chaincode cscc/(github.com/hyperledger/fabric/core/scc/cscc) deployed 2019-01-30 07:35:42.977 UTC [sccapi] deploySysCC -> INFO 01c system chaincode lscc/(github.com/hyperledger/fabric/core/scc/lscc) deployed 2019-01-30 07:35:42.978 UTC [escc] Init -> INFO 01d Successfully initialized ESCC 2019-01-30 07:35:42.978 UTC [sccapi] deploySysCC -> INFO 01e system chaincode escc/(github.com/hyperledger/fabric/core/scc/escc) deployed 2019-01-30 07:35:42.978 UTC [sccapi] deploySysCC -> INFO 01f system chaincode vscc/(github.com/hyperledger/fabric/core/scc/vscc) deployed 2019-01-30 07:35:42.979 UTC [qscc] Init -> INFO 020 Init QSCC 2019-01-30 07:35:42.979 UTC [sccapi] deploySysCC -> INFO 021 system chaincode qscc/(github.com/hyperledger/fabric/core/chaincode/qscc) deployed 2019-01-30 07:35:42.979 UTC [nodeCmd] initSysCCs -> INFO 022 Deployed system chaincodes 2019-01-30 07:35:42.979 UTC [nodeCmd] serve -> INFO 023 Starting peer with ID=[name:"peer0.org1.example.com" ], network ID=[dev], address=[peer0.org1.example.com:7051] 2019-01-30 07:35:42.980 UTC [nodeCmd] serve -> INFO 024 Started peer with ID=[name:"peer0.org1.example.com" ], network ID=[dev], address=[peer0.org1.example.com:7051]

LucasSL (Wed, 30 Jan 2019 08:15:01 GMT):
Hi there, I've been reading fabric docs and doing some tutorials but I'm still confuse on how to end-to-end prepare and deploy the production environment for the correct working of fabric. Can someone give advise?

YanLIU0822 (Wed, 30 Jan 2019 08:16:17 GMT):
but the orderer reject the broadcast message from peer

Aniket.1 (Wed, 30 Jan 2019 08:18:37 GMT):
Can anyone list down the actions permitted to a non-admin user? For creating channel, joining channel, installing chaincode, instantiating chaincode, upgrading chaincode everthing needs admin identity generate by only cryptogen.

Aniket.1 (Wed, 30 Jan 2019 08:18:37 GMT):
Can anyone list down the actions permitted to a non-admin user? For creating channel, joining channel, installing chaincode, instantiating chaincode, upgrading chaincode everthing needs admin identity generated by only cryptogen.

SahithiDyavarashetti (Wed, 30 Jan 2019 09:31:06 GMT):
@LucasSL ``` https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6 ```

SahithiDyavarashetti (Wed, 30 Jan 2019 09:31:29 GMT):
Follow this link for deployment fo single organisation

harun (Wed, 30 Jan 2019 09:37:02 GMT):
I want to build KYC system for Local banks. I search a lot for comparison,but I am still confused. Fabric is good for general purpose, But KYC system would be a BIG system. Data and security would be main conscious for this system. As comparison of Varun Raj, Hyperledger Sawtooth is best for my project. But I think Sawtooth is not stable and Resources are very poor. What is your opinion?

KartikChauhan (Wed, 30 Jan 2019 10:05:18 GMT):
How can I invoke chaincode with a new user that didn't get create by command `cryptogen generate --config=./crypto-config.yml`? Do I need to send user certificates I created inside fabric-ca docker container to peer container in order to invoke chaincode with the new user?

liwaiwai (Wed, 30 Jan 2019 10:25:06 GMT):
Has joined the channel.

kYem 1 (Wed, 30 Jan 2019 12:12:37 GMT):
Has joined the channel.

diegofontgalland (Wed, 30 Jan 2019 13:04:54 GMT):
Has joined the channel.

krabradosty (Wed, 30 Jan 2019 13:28:09 GMT):
Hello. I noticed that any organization from the Consortium can join a channel (which refers to this Consortium) even if this organization is not mentioned in channel configuration. What this orgnaization can do in such channel in that case?

krabradosty (Wed, 30 Jan 2019 13:28:09 GMT):
Hello. I noticed that any organization from the Consortium can join a channel (which refers to this Consortium) even if this organization is not mentioned in channel configuration. What this orgnaization can do in such channel in that case? Will org peers receive blocks?

npc0405 (Wed, 30 Jan 2019 13:34:55 GMT):
Can I upgrade HL v1.2 to v.1.4? skipping upgrade to v1.3?

agile01 (Wed, 30 Jan 2019 14:04:49 GMT):
Has joined the channel.

agile01 (Wed, 30 Jan 2019 14:05:01 GMT):
https://stackoverflow.com/questions/54441824/how-to-match-string-in-query-file-in-hyperledger-composer

rohitsethi (Wed, 30 Jan 2019 15:15:01 GMT):
y

MatusRajsky (Wed, 30 Jan 2019 16:10:47 GMT):
Has joined the channel.

MatusRajsky (Wed, 30 Jan 2019 16:17:20 GMT):
Hello, can a node from one channel request to read Account info of an account of a second channel? Can it be done that the owner of the account can accept/deny request to view his account?

Antimttr (Wed, 30 Jan 2019 16:20:25 GMT):
i could be wrong but doesn't the node have to belong to a channel to handle requests to that channel?

MatusRajsky (Wed, 30 Jan 2019 16:29:44 GMT):
I was hoping that node that is in a different channel but shares the same orderer could give "get requests" but not "put requests"

Antimttr (Wed, 30 Jan 2019 16:32:44 GMT):
yeah im not sure what the answer is to that, i thought that if you have nodes that are not in a channel, they cannot access the ledger of that channel

Antimttr (Wed, 30 Jan 2019 16:32:55 GMT):
course ive only been hyper ledgering for a day or two

Antimttr (Wed, 30 Jan 2019 16:33:08 GMT):
still working on my first smart contract

MatusRajsky (Wed, 30 Jan 2019 16:35:08 GMT):
Thanks for your input, if anyone else has more info (if nodes from one channel can give get requests from another), please let me know!

ankur.walia (Wed, 30 Jan 2019 16:43:16 GMT):
Has joined the channel.

Antimttr (Wed, 30 Jan 2019 17:23:17 GMT):
does anyone know the command i'd use to update a chaincode that already exists in a node/set of nodes?

Antimttr (Wed, 30 Jan 2019 17:25:15 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html

Antimttr (Wed, 30 Jan 2019 17:25:20 GMT):
this might be the thing

Ammar8573 (Wed, 30 Jan 2019 17:45:07 GMT):
i create a network and then update it by adding a new asset but it gives me registry error when i try to add that asset from my nodejs app plesae help me

spmcnamara (Wed, 30 Jan 2019 17:51:14 GMT):
Has joined the channel.

spmcnamara (Wed, 30 Jan 2019 17:54:32 GMT):
Hi All. I'm following along with the IBM Zero-to-Blockchain series and have a question about the structure of the transactions and the associated JS code to implement the behavior. For creation events (CreateOrder), they specify an Order reference parameter, as well as values for the component fields. The transaction then stores the component values in the Order object passed in. I'm wondering if that's actually necessary. Wouldn't it be better to only pass in the component fields, and then construct a NEW Order object inside the transaction code? Is it required to pass in the Order reference to the transaction, or is there a reason this is preferred?

spmcnamara (Wed, 30 Jan 2019 17:57:16 GMT):
transaction CreateOrder { o Integer amount --> Order order --> Buyer buyer --> Seller seller --> FinanceCo financeCo }

spmcnamara (Wed, 30 Jan 2019 17:57:32 GMT):
function CreateOrder(purchase) { purchase.order.buyer = purchase.buyer; purchase.order.amount = purchase.amount; purchase.order.financeCo = purchase.financeCo; purchase.order.created = new Date().toISOString(); purchase.order.status = JSON.stringify(orderStatus.Created); return getAssetRegistry('org.acme.Z2BTestNetwork.Order') .then(function (assetRegistry) { return assetRegistry.update(purchase.order); }); }

spmcnamara (Wed, 30 Jan 2019 17:58:45 GMT):
Apologies, I should have pastebin'd that. :-(

AlbertoCarmona (Wed, 30 Jan 2019 18:48:12 GMT):
Hello, sorry for adding another question but have you ever set a gateway with multiple peers in a channel? When trying the issue.js example in a docker swarm network I get _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed

Antimttr (Wed, 30 Jan 2019 19:13:52 GMT):
anyone have any experience upgrading contracts? I am trying to upgrade from v0 to v1. I made the code changes (very minor) and uploaded the files to their spots in the /orgname/contract and attempted to run the command: `docker exec cliMagnetoCorp peer chaincode upgrade -C mychannel -n papercontract -v 1 -l node -c '{"Args":["org.papernet.commercialpaper:instantiate"]}' -P "AND ('Org1MSP.member')"` but got the response: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (papercontract:1)`. Is it actualy talking about the npm package? i tried changing that version to 1 but didnt seem to help at all

Antimttr (Wed, 30 Jan 2019 19:14:15 GMT):
this is using the papernet example of course

Antimttr (Wed, 30 Jan 2019 19:16:26 GMT):
got this from my transaction log: `peer0.org1.example.com|2019-01-30 19:01:47.170 UTC [lscc] executeDeployOrUpgrade -> ERRO 063 cannot get package for chaincode (papercontract:1)-err:open /var/hyperledger/production/chaincodes/papercontract.1: no such file or directory`

Antimttr (Wed, 30 Jan 2019 19:16:40 GMT):
so im guessing there's a missing file in the docker

Antimttr (Wed, 30 Jan 2019 19:20:32 GMT):
hmm i might have to isntall it first, going to try that

Antimttr (Wed, 30 Jan 2019 19:22:05 GMT):
sweet that worked

Antimttr (Wed, 30 Jan 2019 19:22:12 GMT):
so always install before you upgrade!

spmcnamara (Wed, 30 Jan 2019 19:31:21 GMT):
:-)

BCUnited (Wed, 30 Jan 2019 19:54:39 GMT):
Has joined the channel.

Antimttr (Wed, 30 Jan 2019 19:57:35 GMT):
@MatusRajsky i found this in the docs: `The ledger world state is separated into different namespaces according to the chaincode that accesses it. Within a given channel, smart contracts in the same chaincode share the same world state, and smart contracts in different chaincodes cannot directly access each other’s world state. Likewise, a blockchain can contain transactions that relate to different chaincode world states.`

Antimttr (Wed, 30 Jan 2019 19:58:13 GMT):
seems to imply that even different chaincodes in the same channel cant access eachothers data much less chaincodes from different channels

Antimttr (Wed, 30 Jan 2019 20:21:58 GMT):
@MatusRajsky check out this link: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/chaincodenamespace.html#cross-chaincode-access

Antimttr (Wed, 30 Jan 2019 20:22:20 GMT):
looks like chaincodes from one channel can make queries against chaincodes from another channel

nekia (Wed, 30 Jan 2019 23:56:41 GMT):
Has joined the channel.

jordanmmck (Thu, 31 Jan 2019 01:30:40 GMT):
Can anyone give me some tips on development workflow? I'm following the chaincode-docker-devmode stuff from the docs (https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#terminal-1-start-the-network) and it seems like after making any change to the chaincode I have to re-install, instantiate and invoke -- all with a different version number?

jordanmmck (Thu, 31 Jan 2019 01:30:48 GMT):
Surely there is a better way?

jxddmoto (Thu, 31 Jan 2019 01:32:45 GMT):
Has joined the channel.

duckthatquantum (Thu, 31 Jan 2019 01:34:36 GMT):
Has joined the channel.

AkhilKura (Thu, 31 Jan 2019 03:40:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lj4PdBF2xfYRprT4k) @Ammar8573 can u provide me screen shot of the error u got

tk6sudersen (Thu, 31 Jan 2019 05:49:51 GMT):
Has joined the channel.

tk6sudersen (Thu, 31 Jan 2019 05:50:52 GMT):
i done with build your first network application

tk6sudersen (Thu, 31 Jan 2019 05:51:29 GMT):
when i create a new one i'm getting cryptogen not an valid command can some explain me

AkhilKura (Thu, 31 Jan 2019 05:54:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wz8a5BBBwk2oFthfh) @tk6sudersen u need to add the cryptogen path in bashrc file or directly in terminal u can append the bin path of the cryptogen

AkhilKura (Thu, 31 Jan 2019 05:58:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ExzxeB33H5TRpAGfh) in terminal type echo $PATH u will get a path /home/akhil/.nvm/versions/node/v8.10.0/bin:/home/akhil/bin:/home/akhil/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:

AkhilKura (Thu, 31 Jan 2019 05:59:49 GMT):
append the bin directory which will be in fabric samples to that path

AkhilKura (Thu, 31 Jan 2019 06:02:14 GMT):
i hope it works

Luxii (Thu, 31 Jan 2019 06:23:39 GMT):
Can we use protocol-buffers instead of json marshal/unmarshal ?

lhf111 (Thu, 31 Jan 2019 06:54:01 GMT):
Has joined the channel.

lhf111 (Thu, 31 Jan 2019 06:55:02 GMT):
我在操作fabric-sdk-go时,运行query功能报错,有会的吗?谢谢

lhf111 (Thu, 31 Jan 2019 07:06:32 GMT):
错误提示: failed to query: Failed to get endorsing peers: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:

helpsolution (Thu, 31 Jan 2019 07:24:18 GMT):
Hi! Can you help me? I am using Java SDK. I need to subscribe to chaincode events starting from a given block. Is it possible? And how? I did not find it in the source code.

lhf111 (Thu, 31 Jan 2019 07:25:25 GMT):
failed to query: Failed to get endorsing peers: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:

ashufalcon (Thu, 31 Jan 2019 07:51:58 GMT):
there are two Training on Linux Foundation training courses. Hyperledger Fabric Fundamentals & Hyperledger Fabric Administration which one should any individual take. in my case I'm Student so which would be suitable for me ?

Ammar8573 (Thu, 31 Jan 2019 07:57:07 GMT):

error message

AndresMartinezMelgar.itcl (Thu, 31 Jan 2019 08:18:51 GMT):
some one have tried to use hyeperledger fabric with kubernetes?

tarun32 (Thu, 31 Jan 2019 08:45:36 GMT):
Has joined the channel.

FLASHJr (Thu, 31 Jan 2019 09:18:42 GMT):
I have created a **Multi Org Multi Machine network** with the help of **first-network tutorial** and in lot of files it is mentiond that this configuration **should not be used for Production** like solo orderer, configtx.yaml files etc ? so I was wondering what things are needed to setup network for production use? Please help

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:29:05 GMT):
how resolve this error

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:29:21 GMT):
rule EverybodyCanReadEverything { description: "Allow all participants read access to all resources" participant: "org.acme.howto.Entity" operation: READ resource: "org.acme.howto.*" action: ALLOW } rule OwnerHasFullAccessToTheirAssets { description: "Allow all participants full access to their assets" participant(p): "org.acme.howto.Entity" operation: ALL resource(r): "org.acme.howto.Mobile" condition: (r.owner.getIdentifier() === p.getIdentifier()) action: ALLOW } rule SystemACL { description: "System ACL to permit all access" participant: "org.hyperledger.composer.system.Participant" operation: ALL resource: "org.hyperledger.composer.system.**" action: ALLOW } rule NetworkAdminUser { description: "Grant business network administrators full access to user resources" participant: "org.hyperledger.composer.system.NetworkAdmin" operation: ALL resource: "**" action: ALLOW } rule NetworkAdminSystem { description: "Grant business network administrators full access to system resources" participant: "org.hyperledger.composer.system.NetworkAdmin" operation: ALL resource: "org.hyperledger.composer.system.**" action: ALLOW } rule EntityCanChangeStateToProduction { description: "Allow the entity to change the state of the mobile to production" participant: "org.acme.howto.Entity" operation: CREATE resource: "org.acme.howto.ChangeStateToProduction" action: ALLOW } rule EntityCanChangeStateToPackaging { description: "Allow the entity to change the state of the mobile to packaging" participant: "org.acme.howto.Entity" operation: CREATE resource: "org.acme.howto.ChangeStateToPackaging" action: ALLOW } rule EntityCanChangeStateToDistribution { description: "Allow the entity to change the state of the mobile to distribution" participant: "org.acme.howto.Entity" operation: CREATE resource: "org.acme.howto.ChangeStateToDistribution" action: ALLOW }

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:29:48 GMT):
resource: "org.acme.howto.*" name space error

SahithiDyavarashetti (Thu, 31 Jan 2019 09:30:57 GMT):
Specify the namespace mentiones in .cto file and replace with that

SahithiDyavarashetti (Thu, 31 Jan 2019 09:31:03 GMT):
@bhemeswararaoankireddy

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:31:33 GMT):

Screenshot from 2019-01-31 15-00-22.png

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:32:31 GMT):
org.acme.howto

bhemeswararaoankireddy (Thu, 31 Jan 2019 09:32:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AeAMQm4Adq249hQKF) @SahithiDyavarashetti org.acme.howto

tarun32 (Thu, 31 Jan 2019 09:34:57 GMT):
Hi, can someone help me how to setup and run hyperledger composer application in two different machines?

AndresMartinezMelgar.itcl (Thu, 31 Jan 2019 09:37:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GzbrgDoNfEbWq5TzE) @tarun32 i readed that hyperledger composer will not be continued

AlbertoCarmona (Thu, 31 Jan 2019 09:57:50 GMT):
is there an example of the "commercial paper" tutorial with multiple orgs/peers? When I try to build the SDK on the first-network I get the following error: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed

AlbertoCarmona (Thu, 31 Jan 2019 09:57:51 GMT):
Thanks!

tarun32 (Thu, 31 Jan 2019 10:13:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GMxNMXEQ8yEjQx83w) @AndresMartinezMelgar.itcl @AndresMartinezMelgar.itcl Thanks, so you mean to say that we cannot run hyperledger composer application in two different machines and could you share the link where you read that hyperledger composer development has been paused?

tarun32 (Thu, 31 Jan 2019 10:13:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GMxNMXEQ8yEjQx83w) @AndresMartinezMelgar.itcl Thanks, so you mean to say that we cannot run hyperledger composer application in two different machines and could you share the link where you read that hyperledger composer development has been paused?

AndresMartinezMelgar.itcl (Thu, 31 Jan 2019 10:18:50 GMT):
@tarun32 i never work with composer i readed news here https://lists.hyperledger.org/g/composer/message/125

avkkiran (Thu, 31 Jan 2019 10:31:28 GMT):
Has joined the channel.

avkkiran (Thu, 31 Jan 2019 10:36:52 GMT):
Hi all, can someone help me how to setup and run hyperledger fabric application in two different physical machines?

PhilipAndrew (Thu, 31 Jan 2019 10:38:15 GMT):
Hello, following this https://fabric-shim.github.io/release-1.3/index.html?redirect=true - where do I put the chaincode.js file and do I need to modify package.json?

PhilipAndrew (Thu, 31 Jan 2019 10:41:42 GMT):
do I put package.json line { start: 'node chaincode.js' }

AkhilKura (Thu, 31 Jan 2019 10:42:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ajjaz4TA53LJAjKKG) @avkkiran https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

lhf111 (Thu, 31 Jan 2019 10:47:22 GMT):
When I operate fabric-sdk-go, I run the query function to report errors. Will that happen? Thank you error: failed to query: Failed to get endorsing peers: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:

mujeeb (Thu, 31 Jan 2019 11:23:13 GMT):
Any tutorial to build chaincode in java and deploy on first-network peers?

CesarGonzalez (Thu, 31 Jan 2019 13:07:36 GMT):
Has joined the channel.

nikola1337 (Thu, 31 Jan 2019 13:47:07 GMT):
Has joined the channel.

sudhasakshi (Thu, 31 Jan 2019 13:51:39 GMT):
Hi Team , I am appending data to some struct by using append().... it is working in go editor but running in docker bash data is not appending.............help me with this error...

PhilipAndrew (Thu, 31 Jan 2019 14:06:20 GMT):
Please help - what does this mean when I try peer chaincode instantiate? Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Error: Invalid arguments "[]" to function "start", expecting "["serializedResource"]"

PhilipAndrew (Thu, 31 Jan 2019 14:30:27 GMT):
maybe my chaincode problem

jaguarg (Thu, 31 Jan 2019 14:41:02 GMT):
Hi, i am looking for information about the Kafka ordering service, in a multi-org network. I would like understand the transaction flow when multiple orderers are setup. Can I have 1 orderer per organisation ? How would the ordering step work in this case ?

mlucc (Thu, 31 Jan 2019 15:04:18 GMT):
Has joined the channel.

mlucc (Thu, 31 Jan 2019 15:08:02 GMT):
Hello! I'm trying to use hyperledger v1.4.0 with fabric-sdk v1.0.0-alpha4. My app used to use v.1.2.0 and v.1.0.0-alpha3. I thrown away the old network and set up a brand new hyperledger with the latest version. Problem: it doesn't find hyperledgernetwork/crypto-config/ordererOrganizations/ftl.com/tlsca/tlsca.ftl.com-cert.pem but it's there!!!

mlucc (Thu, 31 Jan 2019 15:14:37 GMT):
any idea what could have changed when sending these parameters to configureChannel?

MiguelMike93 (Thu, 31 Jan 2019 15:24:38 GMT):
Has joined the channel.

josemariabello (Thu, 31 Jan 2019 15:42:00 GMT):
Has joined the channel.

aristotlerupz (Thu, 31 Jan 2019 15:45:20 GMT):
Has joined the channel.

uherr89 (Thu, 31 Jan 2019 15:50:25 GMT):
Hi everybody, here's a way to consume the Fabric Samples in an easier and more standard way. A few lines and you're are good to go! Hope you find this tutorial helpful. https://medium.com/worldsibu/fabric-samples-made-easier-with-hurley-the-development-environment-manager-c75b44fa6ac6

SergeAFP (Thu, 31 Jan 2019 15:56:45 GMT):
Has joined the channel.

SergeAFP (Thu, 31 Jan 2019 15:57:08 GMT):
hello everyone. Could someone tell me what is the minimum time between the validation of two blocks using Fabric and Kafka consensus to be added on the blockchain? For example for Ethereum: 10 to 15 seconds, Bitcoin 10 to 12 minutes. Many thanks for your help.

Antimttr (Thu, 31 Jan 2019 16:42:10 GMT):
anyone know of any good published books on hyperledger fabric yet?

dan13 (Thu, 31 Jan 2019 17:02:51 GMT):
@uherr89 very cool stuff! Is there an ETA for HLF 1.4 support?

himanshuchawla009 (Thu, 31 Jan 2019 17:58:36 GMT):
Has joined the channel.

himanshuchawla009 (Thu, 31 Jan 2019 18:01:38 GMT):
hello everyone,can any one tell me the monthly or hourly cost of running hyperledger fabric network on aws or any other cloud platform.

Antimttr (Thu, 31 Jan 2019 18:59:26 GMT):
wouldnt that depend entirely on the usage load of the hyperledger fabric network?

Antimttr (Thu, 31 Jan 2019 18:59:40 GMT):
ie. transactions/queries per second

dan13 (Thu, 31 Jan 2019 19:22:26 GMT):
@himanshuchawla009 the base cost -- just for a simple 2 org/1 peer per org network to exist and run without load -- for IBM or AWS managed blockchains seems to be about $500 a month. AWS here: https://aws.amazon.com/managed-blockchain/pricing/

spmcnamara (Thu, 31 Jan 2019 19:28:57 GMT):
Can anyone point me to a good comparative write-up of the difference and pros/cons between the UTXO and "account" methods for storing value? I'm trying to get a handle on the best way for me to keep balances and am not sure whether there should be a "CustomerAccount" asset associated with members that contains balances, or if there should be a "balance" attribute in the member object...

jaguarg (Thu, 31 Jan 2019 19:56:41 GMT):
Hi, in a chaincode, how do I know which identity invoked the transaction ?

dan13 (Thu, 31 Jan 2019 20:16:50 GMT):
@jaguarg https://github.com/hyperledger/fabric/blob/master/core/chaincode/shim/interfaces.go#L310 (GetCreator)

jordanmmck (Thu, 31 Jan 2019 20:33:58 GMT):
I don't want to spam this channel but I asked this yesterday but didn't get a response, though there must be a simple solution. I'm wondering about hyperledger fabric development workflow. I'm trying to find a way to rapidly write and execute chaincode without having to install, instantiate, invoke over and over while also changing the version number. I've been following the chaincode-docker-devmode page from the docs (https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#terminal-1-start-the-network) and it seems like after making any change to the chaincode I have to re-install, instantiate and invoke. Is there is a better way?

mbaysek (Thu, 31 Jan 2019 23:10:30 GMT):
Has joined the channel.

Hangyu (Thu, 31 Jan 2019 23:59:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RiH224o5T6WNBA9CL) @jordanmmck One way to do it is to write a go test file, in that way you don't have to build up the fabric network, initiate, invoke to test your chaincode. https://github.com/hyperledger/fabric/blob/release-1.4/examples/chaincode/go/example02/chaincode_test.go this is an example

jordanmmck (Fri, 01 Feb 2019 01:48:31 GMT):
Thank @Hangyu I will check that ouy!

jordanmmck (Fri, 01 Feb 2019 01:48:31 GMT):
Thank @Hangyu I will check that out!

supremo 1 (Fri, 01 Feb 2019 03:55:21 GMT):
Has joined the channel.

p1212 (Fri, 01 Feb 2019 04:41:35 GMT):
Has joined the channel.

ashufalcon (Fri, 01 Feb 2019 04:49:30 GMT):
do the -o flag removed from 1.4 fabric release ?? when i run peer node start -o 'address:port' it gives me Error: unknown shorthand flag: 'o' in -o so now onwards peer node start is enough to run the peer ?

viswanathbadmi (Fri, 01 Feb 2019 06:33:03 GMT):
Has joined the channel.

JeffGutierrez (Fri, 01 Feb 2019 06:37:56 GMT):
Hi everyone does anyone tried deploying BNA on Bluemix then later on experiencing these errors WARN 10095[0m Retrying couchdb request..... {"log":"2019-01-31T11:14:20.413Z ERROR :Engine:invoke() Caught error, rethrowing {\"stack\":[\"{Error}GET_QUERY_RESULT failed: transaction ID: 39dabf43fc56341b2e83dde80af5c2b7cfeda50afa5e5217072b701a46ba9e6a:....

DattaPatil (Fri, 01 Feb 2019 06:57:34 GMT):
HI Team, How the users permission can be restricted in fabric. like how we do it composer. For example i want to allow user1 to his information only. How it can be done likewise

Siva_vignesh (Fri, 01 Feb 2019 08:23:05 GMT):
Has joined the channel.

AkhilKura (Fri, 01 Feb 2019 08:40:05 GMT):
can we define the block size in hyperledger fabric ?

DhruvKumar (Fri, 01 Feb 2019 08:51:36 GMT):
Has joined the channel.

FLASHJr (Fri, 01 Feb 2019 08:55:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uACpnHdM7kngHXriy) @AkhilKura Yes. We can define block size in configtx.yaml file

FLASHJr (Fri, 01 Feb 2019 08:57:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q77FuGWoyQvohnSz2) ``` BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 99 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 512 KB ```

FLASHJr (Fri, 01 Feb 2019 09:08:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Q77FuGWoyQvohnSz2) check this out for more info : https://hyperledger-fabric.readthedocs.io/en/release-1.4/config_update.html

JulianBall (Fri, 01 Feb 2019 09:45:26 GMT):
@DattaPatil Having the same Question: How can I implement references between entities? So that a User of Org1 can only see the information he put into the network? I habe worked with the Composer bna, there you can reference participants with their Id, is there an easy way to do the same with the node SDK?

arvindkumar6568 (Fri, 01 Feb 2019 09:52:18 GMT):
hello experts i got this error when i started explorer in composer server.on('connection', connection => { ^ TypeError: Cannot read property 'on' of undefined

KaranVelhal (Fri, 01 Feb 2019 10:18:25 GMT):
Has joined the channel.

KaranVelhal (Fri, 01 Feb 2019 10:18:59 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT Fabric Version: 1.2.1 and Composer version: 0.20

TechleadzTester (Fri, 01 Feb 2019 10:32:04 GMT):
Has joined the channel.

alokkv (Fri, 01 Feb 2019 10:54:23 GMT):
hi friends, i followed the first-network sample program to add third org to the channel.it worked. but in first-network there are two orgs right.so for testing i have start from the beginning but with one org only and created a channel.then i have added the second org to that channel dynamically.but when i try to add this third org to this channel i am getting the following error. can anyone help me with this problem.because i would like to add multiple orgs to the channel.if any one can provide any documentation for adding more than 3 orgs please provide.

alokkv (Fri, 01 Feb 2019 10:54:23 GMT):
hi friends, i followed the first-network sample program to add third org to the channel.it worked. but in first-network there are two orgs right.so for testing i have start from the beginning but with one org only and created a channel.then i have added the second org to that channel dynamically.but when i try to add this third org to this channel i am getting the following error. can anyone help me with this problem.because i would like to add multiple orgs to the channel.if any one can provide any documentation for adding more than 3 orgs please provide. Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining Usage:

pikvik (Fri, 01 Feb 2019 11:49:54 GMT):
I am unable to install Certificate authority on Kubernetes . Getting always error of file missing anyone please share doc on production deployment of hlf on kubernetes

TechleadzTester (Fri, 01 Feb 2019 12:10:37 GMT):
Hi friends, I installed von-network, and build TheOrgBook as well as Permitify files. network is running successfully, and i can use complete Alice "Indy Demo World" example on browser as "localhost:8080/". But i'm confused about somthing as modified data regarding Alice or New Person Registration, where is this data is saving in local machine. And how i can perform this verification with production site like "https://orgbook.gov.bc.cs". can anyone please tell me some working procedure about these verification or how it will work on my Live project. Thanks in advance

jeffgarratt (Fri, 01 Feb 2019 14:40:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rNrj7dG2BXrJY4Wyv) @alokkv It is possible that you are using an Implicit meta policy of majority, in which case, once you had 2 members in the channel, both would need to sign config update to add third, thus the missing 1 signature error.

SethiSaab (Fri, 01 Feb 2019 17:18:41 GMT):
HI Team

SethiSaab (Fri, 01 Feb 2019 17:18:48 GMT):
i am getting this error while enrolling admin

SethiSaab (Fri, 01 Feb 2019 17:18:49 GMT):
Failed to enroll admin: Error: Common connection profile is missing this client's organization and certificate authorit

SethiSaab (Fri, 01 Feb 2019 17:18:53 GMT):
any idea

SethiSaab (Fri, 01 Feb 2019 17:18:57 GMT):
please help me to fix it

Antimttr (Fri, 01 Feb 2019 18:26:44 GMT):
wondering if anyone has code examples of usage of the Client and Channel classes for the Nodejs SDK?

Antimttr (Fri, 01 Feb 2019 18:27:02 GMT):
im reading the documentation now, but the papernet example doesnt have any examples of actually using them

Antimttr (Fri, 01 Feb 2019 18:30:23 GMT):
looks like the balance transfer example might hav eit

TechleadzTester (Fri, 01 Feb 2019 18:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJabjC9qN2aZJ8une) @Antimttr hyperledger-boy didn't reply my questions here, i'm also confused about i installed von-network in ubuntu and working wiith Alice example is fine. But i'm not sure how i will verify organization on production? is there any Api request i will send to https://orgbook.gov.bc.cs.

TechleadzTester (Fri, 01 Feb 2019 18:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJabjC9qN2aZJ8une) @Antimttr hyperledger-boy didn't reply my questions here, i'm also confused about i installed von-network in ubuntu and working wiith Alice example is fine. But i'm not sure how i will verify organization on production? is there any Api request i will send to https://orgbook.gov.bc.cs.

TechleadzTester (Fri, 01 Feb 2019 18:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJabjC9qN2aZJ8une) @Antimttr hyperledger-bot didn't reply my questions here, i'm also confused about i installed von-network in ubuntu and working wiith Alice example is fine. But i'm not sure how i will verify organization on production? is there any Api request i will send to https://orgbook.gov.bc.cs.

dan13 (Fri, 01 Feb 2019 18:31:39 GMT):
@pivvik

dan13 (Fri, 01 Feb 2019 18:31:39 GMT):
@pikvik this may be helpful? https://www.youtube.com/watch?v=ubrA3W1JMk0&list=PL0MZ85B_96CH7wvtrRzV7SvtRY0sI0DEg&index=16

Antimttr (Fri, 01 Feb 2019 18:31:53 GMT):
i havent seen that example @TechleadzTester , but im attempting to create a simple query api using nodejs and the node sdk

TechleadzTester (Fri, 01 Feb 2019 18:33:12 GMT):
@Antimttr I followed this example and created von-network. https://github.com/IBM-Blockchain-Identity/indy-ssivc-tutorial

Antimttr (Fri, 01 Feb 2019 18:33:43 GMT):
ahh you're using the ibm blockchains stuff, i havent touched any of that yet. just using the hyperledger fabric examples from their read the docs site

TechleadzTester (Fri, 01 Feb 2019 18:34:49 GMT):
ahh ok, lets see if any one help me about my question, because i couldn't understand exactly how its will work on production thanks

TechleadzTester (Fri, 01 Feb 2019 18:34:49 GMT):
ahh ok, lets see if any one help me about my question, because i couldn't understand exactly how its will work on production thanks

ftd3 (Fri, 01 Feb 2019 19:24:03 GMT):
Has joined the channel.

Antimttr (Fri, 01 Feb 2019 20:13:11 GMT):
Quick question: if i wanted to enumerate the list of transactions on a hyperledger fabric network channel, should i use fabric-network or fabric-client?

Antimttr (Fri, 01 Feb 2019 21:34:18 GMT):
Another question: are wallets identities in the context of fabric-network the same as users in the context of fabric-client ?

Antimttr (Fri, 01 Feb 2019 21:58:52 GMT):
Another question: can anyone explain to me what the idea is behind the keyvalue stores?

developeroka (Fri, 01 Feb 2019 22:39:15 GMT):
Has joined the channel.

alokkv (Sat, 02 Feb 2019 03:49:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M7KpRgR5SDTAzwpXx) @jeffgarratt how to changecthe policy

Srisha (Sat, 02 Feb 2019 05:42:37 GMT):

Error.JPG

Srisha (Sat, 02 Feb 2019 05:42:44 GMT):

Error.JPG

svgsenthil (Sat, 02 Feb 2019 07:01:58 GMT):
Has joined the channel.

svgsenthil (Sat, 02 Feb 2019 07:03:57 GMT):
Hello anybody have idea about migrating Composer Project to Fabric-node-sdk. Any tutorial available for this topic please share with me. Thanks in advance Hello anybody have idea about migrating Composer Project to Fabric-node-sdk. Any tutorial available for this topic please share with me. Thanks in advance

svgsenthil (Sat, 02 Feb 2019 07:03:57 GMT):
Hello anybody have idea about migrating Composer Project to Fabric-node-sdk. Any tutorial available for this topic please share with me. Thanks in advance

svgsenthil (Sat, 02 Feb 2019 07:08:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AqArPgr4LWcSjoxDK) @Srisha install prerequisites file before run this Refer: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html

JosesSandeep (Sat, 02 Feb 2019 16:52:23 GMT):
Has joined the channel.

JosesSandeep (Sat, 02 Feb 2019 16:54:44 GMT):
Hello, Can anyone help me by linking me to any reading materials that are related to how to effectively traverse/search blocks for transaction in the ledger fabric? Thank you in advance.

pumicerD (Sat, 02 Feb 2019 17:40:45 GMT):
Hello, is it possible to restrict access to a _channel_ to specific _Organizational Units_ ? e.g. _org1.department2_ and _org2.department1_

kiryteo (Sun, 03 Feb 2019 04:40:44 GMT):
Has joined the channel.

Daka 1 (Sun, 03 Feb 2019 16:41:20 GMT):
Has joined the channel.

vimal974ever (Sun, 03 Feb 2019 17:29:09 GMT):
Has joined the channel.

Sivaramaaa (Mon, 04 Feb 2019 05:40:10 GMT):
Has joined the channel.

Sivaramaaa (Mon, 04 Feb 2019 05:40:23 GMT):
hello guys , i am currently reading through hyperledger docs (https://hyperledger-fabric.readthedocs.io/en/release-1.3/txflow.html) , i have one doubt though , What happens if a orderer node is tampered ? , since it's the one sending updates to all nodes

prabu3192 (Mon, 04 Feb 2019 05:56:23 GMT):
Has joined the channel.

arvindkumar6568 (Mon, 04 Feb 2019 06:16:08 GMT):
hello experts i use composer and two peers on different machines how see data on second peer that exist on second machine

knagware9 (Mon, 04 Feb 2019 06:40:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZA65FYCm2tKsRY4Rh) @Sivaramaaa Thats why multiple orderer used in the system

Sivaramaaa (Mon, 04 Feb 2019 07:08:24 GMT):
@knagware9 thanks for the reply , ok so just to be sure , so can i assume that if i use only one orderer system then i could potentially tamper every peer's ledger state ?

Sivaramaaa (Mon, 04 Feb 2019 07:10:31 GMT):
also if i use multiple orderer , how does the anchor nodes or commiting node comes to consesus , since i didin't see anything on how to acheive that

knagware9 (Mon, 04 Feb 2019 07:24:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jAJR4LHJvciiGZb5x) @Sivaramaaa Orderer dont have ledger database , and there is proper transaction validation at peer side (endorsement) and just before committing to ledger ..And Yes single orderer is not recommended , you can use Kafka orderer system to achieve multiple orderer in the network

Mozuffer (Mon, 04 Feb 2019 07:34:46 GMT):
Has joined the channel.

abityildiz (Mon, 04 Feb 2019 09:15:35 GMT):
hi all.i have setup first-network(fabric 1.4) .but CA certificate not started.how can i start the CA certificate?

ashufalcon (Mon, 04 Feb 2019 09:16:15 GMT):
Please share v 1.4 core.yaml please. All i see is on 1.3.3 version

ashufalcon (Mon, 04 Feb 2019 09:16:15 GMT):
Please share v 1.4 core.yaml please.

pumicerD (Mon, 04 Feb 2019 09:27:54 GMT):
Hello, is it possible to restrict access to a _channel_ to specific _Organizational Units_ ? e.g. _org1.department2_ and _org2.department1_

pikvik (Mon, 04 Feb 2019 10:08:36 GMT):
Hi All I am deploying Hyperledger fabric on Kubernetes and encountered this error : cat: /var/hyperledger/fabric-ca/msp/signcerts/cert.pem: No such file or directory command terminated with exit code 1 when is executed following command : kubectl exec -n cas $CA_POD -- cat /var/hyperledger/fabric-ca/msp/signcerts/cert.pem . I need someone to help me out how to generate msp and certs

GavitMc (Mon, 04 Feb 2019 10:10:40 GMT):
hello everyone! I have a question on queries. When you query the ledger you return the result on the transaction payload. What are the raccomended approaches if your query results can be very big like gigabytes of data?

GavitMc (Mon, 04 Feb 2019 10:10:40 GMT):
hello everyone! I have a question on queries. When you query the ledger you usually return the result on the transaction payload. What are the raccomended approaches if your query results can be very big like gigabytes of data?

GavitMc (Mon, 04 Feb 2019 10:10:40 GMT):
hello everyone! I have a question on queries. When you query the ledger you usually return the result in the transaction payload. What are the raccomended approaches if your query results can be very big like gigabytes of data?

GavitMc (Mon, 04 Feb 2019 10:14:12 GMT):
Another question...if no modifications happen is the result of GetStateByPartialCompositeKey returning an iterator that gives results always in the same order?

GavitMc (Mon, 04 Feb 2019 10:14:12 GMT):
Another question...if no modifications happen in ledger data is the result of GetStateByPartialCompositeKey returning an iterator that gives results always in the same order?

GavitMc (Mon, 04 Feb 2019 10:14:12 GMT):
Another question...if no modifications happen in ledger data is the result of `GetStateByPartialCompositeKey` returning an iterator that gives results always in the same order?

pieraco (Mon, 04 Feb 2019 10:14:22 GMT):
Has joined the channel.

pieraco (Mon, 04 Feb 2019 10:17:57 GMT):
Hi, all! Looks like Composer generates bussiness networks targeted for Fabric 1.2. Could anyone confirm they can be deployed to a Fabric 1.4 network? Should any changes be made to configuration files (x-type, version, etc.)?

abityildiz (Mon, 04 Feb 2019 10:38:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tKizvHqjmvfNMkg6j) @ashufalcon i am using reference like this https://github.com/hyperledger/fabric-samples.i didn't somethings

developeroka (Mon, 04 Feb 2019 11:31:52 GMT):
hi

developeroka (Mon, 04 Feb 2019 11:32:27 GMT):
i wanted to register a new user to hyperledger wallet in simple app

developeroka (Mon, 04 Feb 2019 11:32:32 GMT):
but i get this error

developeroka (Mon, 04 Feb 2019 11:32:33 GMT):
Failed to register user "user1": Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authentication failure"}]]

developeroka (Mon, 04 Feb 2019 11:32:53 GMT):
anyone has this problem ?

GavitMc (Mon, 04 Feb 2019 11:33:52 GMT):
@developeroka probably this can solve your problem. At each restart of your application re-enorl the ca admin user

dave.enyeart (Mon, 04 Feb 2019 12:29:45 GMT):
@GavitMc You can page through large result sets, see doc at https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_as_state_database.html#couchdb-pagination (note, pagination works on LevelDB as well). Yes, the results will be sorted and return the same.

GavitMc (Mon, 04 Feb 2019 12:37:21 GMT):
@dave.enyeart thank you very much, I will go trough this reference and try to understand how it works

GavitMc (Mon, 04 Feb 2019 12:50:00 GMT):
@dave.enyeart is this new feature or what? I don't know why but I don't have the "with pagination version" of the methods when i look at ChaincodeStub Interface

dave.enyeart (Mon, 04 Feb 2019 12:50:15 GMT):
Added in v1.3

AlbertoCarmona (Mon, 04 Feb 2019 12:57:19 GMT):
has anyone tried to use the node sdk on a network different than "basic-network" example? When I try to connect it to the "first-network" I get "_initializeInternalChannel: Unable to initialize channel. Attempted to contact 6 Peers. Last error was Error: 2 UNKNOWN: Stream removed" and I haven't found any other examples so far

AlbertoCarmona (Mon, 04 Feb 2019 12:59:52 GMT):
Also, if we use the fabric cli, how can we develop a webapp? We need to launch an script that runs "docker exec cli peer..."?

Aniket.1 (Mon, 04 Feb 2019 13:08:42 GMT):
Why the user certificate shows null for roles and affiliation even if they are provided at the time of identity registration?

mattmaru (Mon, 04 Feb 2019 13:17:25 GMT):
Hi guys. I've a question for you and i would to get you opinions. I'm trying to build my network on kubernetes. I've already setup a kubernetes cluster (2 nodes, master-slave). The question is : How can i link my fabric with kubernetes? Which step do i need to follow? Can you help me please?

bhithesh (Mon, 04 Feb 2019 13:34:51 GMT):
Has joined the channel.

GavitMc (Mon, 04 Feb 2019 13:46:19 GMT):
what's the best way to update hyperledger? i don't have any running network to "protect"

lepar (Mon, 04 Feb 2019 13:53:20 GMT):
@GavitMc run "docker rmi $(ps -aq)" to delete all the hl images and then just redownload the latest version

blockchainer (Mon, 04 Feb 2019 14:10:10 GMT):
When trying to instantiate chaincode, I'm getting the error: `error starting container: error starting container: Failed to generate platform-specific docker build: No image provided and "chaincode.builder" default does not exist` Could someone point me to where is this "chaincode.builder" configuration, and also if setting it to "hyperledger/fabric-ccenv" will solve the problem?

ezplora (Mon, 04 Feb 2019 15:37:12 GMT):
Has joined the channel.

Antimttr (Mon, 04 Feb 2019 16:45:48 GMT):
so comerical-paper example uses the fabric-network api, and balance-transfer uses the fabric-client api, are there any examples that use BOTH apis?

Nuwan-Walisundara (Mon, 04 Feb 2019 17:00:49 GMT):
Where can i find the Sumeragi white paper ( Consensus Algorithm for Hyperledger Iroha) ?

CubeFinSales (Mon, 04 Feb 2019 17:04:35 GMT):
Has joined the channel.

CubeFinSales (Mon, 04 Feb 2019 17:06:01 GMT):
Are there any examples of Fabrc use that does not involve transactions between "buyers" and "sellers" but rather between an initial communicator and a permissioned audience? Thank you

CubeFinSales (Mon, 04 Feb 2019 17:06:01 GMT):
Are there any examples of Fabrc use that does not involve transactions between "buyers" and "sellers" but rather communications (broadcasts) between an initial communicator and a permissioned audience? Thank you

blockchainer (Mon, 04 Feb 2019 17:13:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KXggCp7xNCo7JRjYC) I got the location - it's in core.yaml. Thanks anyway

developeroka (Mon, 04 Feb 2019 17:37:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B5odMx2uxWdcgnLJ4) @GavitMc how can i re-enrol it ? with runing this command 'node enrollAdmin.js' ?

smallant (Mon, 04 Feb 2019 17:51:19 GMT):
hi to all, currently i'm having some timeouts regarding a heavy processing chaincode

smallant (Mon, 04 Feb 2019 17:51:26 GMT):
how can i change this timeout?

smallant (Mon, 04 Feb 2019 17:51:29 GMT):
Sending proposal to peer2-org1 failed because of timeout(20000 milliseconds) expiration

smallant (Mon, 04 Feb 2019 17:51:29 GMT):
This is the error i get: Sending proposal to peer2-org1 failed because of timeout(20000 milliseconds) expiration

JosesSandeep (Mon, 04 Feb 2019 17:51:30 GMT):
Hello, Can anyone help me by linking me to any reading materials that are related to how to effectively traverse/search blocks for transaction in the ledger fabric? Thank you in advance.

blockchainer (Mon, 04 Feb 2019 17:56:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lef2muqDvLg9WNCaZ) @smallant core.yaml: chaincode.startuptimeout/deploytimeout?

smallant (Mon, 04 Feb 2019 17:57:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FgDRv9jNaGYctuf2P) @blockchainer this is on an invoke not startup

johnd_ed (Mon, 04 Feb 2019 18:57:50 GMT):
Has joined the channel.

johnd_ed (Mon, 04 Feb 2019 19:01:00 GMT):
Hello. I'm trying to get hyperledger composer running on two separate machines. I have followed a couple articles and tutorials but cant find one that works well witht he most recent release of fabric. Is this still possible to do? any pointers towards an example of how to achive this would be great.

Antimttr (Mon, 04 Feb 2019 19:03:10 GMT):
@johnd_ed check out this article posted earlier: https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6

hybridNeo (Mon, 04 Feb 2019 19:50:16 GMT):
Question about core.yaml, which core.yaml should I modify if I want to add a system chaincode plugin. there is one in sampleconfig. Is that being read ?

AlbertoCarmona (Mon, 04 Feb 2019 19:55:40 GMT):
What's the best way for building a webapp that uses the cli?

AlbertoCarmona (Mon, 04 Feb 2019 19:56:16 GMT):
We make the webapp run scripts like docker exec cli peer...?

Antimttr (Mon, 04 Feb 2019 20:04:28 GMT):
i was thinking that you would create a nodejs api like they do in balance transfer example

Antimttr (Mon, 04 Feb 2019 20:04:28 GMT):
@AlbertoCarmona i was thinking that you would create a nodejs api like they do in balance transfer example

Antimttr (Mon, 04 Feb 2019 20:04:37 GMT):
then you can just have your webapp query the api

AlbertoCarmona (Mon, 04 Feb 2019 21:10:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9HRS6WgLS4wrp7P6Q) @Antimttr The thing is that the balance transfer example is based on the basic-network, which is 1 peer 1 org, but my network is deployed in multiorg in multiple hosts via docker swarm and I get the error "_initializeInternalChannel: Unable to initialize channel. Attempted to contact 6 Peers. Last error was Error: 2 UNKNOWN: Stream removed" so I'm looking for alternatives

Antimttr (Mon, 04 Feb 2019 21:14:33 GMT):
i would check your log to see whats generating that error

Antimttr (Mon, 04 Feb 2019 21:14:47 GMT):
might just be that it cant contact one of the predefined peers

AlbertoCarmona (Mon, 04 Feb 2019 21:15:03 GMT):
what log should I check?

Antimttr (Mon, 04 Feb 2019 21:15:08 GMT):
the hyperledger log

AlbertoCarmona (Mon, 04 Feb 2019 21:15:38 GMT):
I've never looked at it before, can you tell me where it is located please?

Antimttr (Mon, 04 Feb 2019 21:15:52 GMT):
its like a docker you have to launch

Antimttr (Mon, 04 Feb 2019 21:16:05 GMT):
then i think you use -d option

AlbertoCarmona (Mon, 04 Feb 2019 21:16:43 GMT):
I used the -d option yes

AlbertoCarmona (Mon, 04 Feb 2019 21:16:48 GMT):
this is my network right now

AlbertoCarmona (Mon, 04 Feb 2019 21:16:54 GMT):

Clipboard - February 4, 2019 10:16 PM

Antimttr (Mon, 04 Feb 2019 21:18:25 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html

Antimttr (Mon, 04 Feb 2019 21:18:42 GMT):
search for: docker-compose -f docker-compose-cli.yaml up -d

Antimttr (Mon, 04 Feb 2019 21:18:48 GMT):
thats the command where you put the -d

AlbertoCarmona (Mon, 04 Feb 2019 21:20:53 GMT):
I just realized I didn't use -d in this project (docker swarm)

AlbertoCarmona (Mon, 04 Feb 2019 21:21:09 GMT):
docker stack deploy -c

AlbertoCarmona (Mon, 04 Feb 2019 21:25:23 GMT):
What is curious is that if you try to run the SDK with the "first-network" example locally, it gives the same error, so it's not a problem of docker swarm or multiple hosts

Antimttr (Mon, 04 Feb 2019 21:26:11 GMT):
yeah the tutorial for building your first network never quite worked for me

Antimttr (Mon, 04 Feb 2019 21:26:31 GMT):
so instead i used the comercial-paper and balance-transfer examples

Antimttr (Mon, 04 Feb 2019 21:26:34 GMT):
and those both worked ok

Antimttr (Mon, 04 Feb 2019 21:26:50 GMT):
although to get balance-transfer working i had to downgrade npm to v8

AlbertoCarmona (Mon, 04 Feb 2019 21:26:55 GMT):
yeap but they are both based in a much simpler network with 1 org and 1 peer :(

AlbertoCarmona (Mon, 04 Feb 2019 21:27:27 GMT):
have you been able to run the sdk with a multiple org example?

Antimttr (Mon, 04 Feb 2019 21:28:01 GMT):
not mine, my balance transfer has 4 peers

Antimttr (Mon, 04 Feb 2019 21:28:17 GMT):
and it uses 2 orgs

Antimttr (Mon, 04 Feb 2019 21:28:49 GMT):
im using the 1.4 version for it

AlbertoCarmona (Mon, 04 Feb 2019 21:36:53 GMT):
many thanks Antimttr

ooharawork (Tue, 05 Feb 2019 05:28:38 GMT):
Hello, in the official document site, I've found a page about Policies: https://hyperledger-fabric.readthedocs.io/en/release-1.4/policies.html However, It seems that this page isn't referenced by anywhere, hence a beginner (like me) can't find the page easily. Does someone know a counter-evidence ?

ooharawork (Tue, 05 Feb 2019 05:28:38 GMT):
Hello. In the official document site, I've found a page about Policies: https://hyperledger-fabric.readthedocs.io/en/release-1.4/policies.html However, It seems that this page isn't referenced by anywhere, hence a beginner (like me) can't find the page easily. Does someone know a counter-evidence ?

tk6sudersen (Tue, 05 Feb 2019 06:12:41 GMT):
Error response from daemon: Container 4a109823616934de7b3b02ea0f09e7476dff3a6810a0db039a82dc7516d954a1 is not running

tk6sudersen (Tue, 05 Feb 2019 06:13:03 GMT):
can some one help me why i'm facing this issue??

NagatoPeinI1 (Tue, 05 Feb 2019 06:21:20 GMT):
I'm trying to run first-network example given by fabric but when i'm starting the network and it is creating genesis block and other channel artifacts for me it is creating genesis.block as a folder rather than a file which is giving error. Using this command::::: echo "##########################################################" echo "######### Generating Orderer Genesis block ##############" echo "##########################################################" # Note: For some unknown reason (at least for now) the block file can't be # named orderer.genesis.block or the orderer will fail to launch! set -x configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block res=$? set +x if [ $res -ne 0 ]; then echo "Failed to generate orderer genesis block..." exit 1 fi echo

SJoshi7 (Tue, 05 Feb 2019 06:27:12 GMT):
Is there anyone who can review my pull reques on hyperledger/composer-sample-applications (https://github.com/hyperledger/composer-sample-applications/pull/163).

lee7859 (Tue, 05 Feb 2019 06:40:37 GMT):
Has joined the channel.

lee7859 (Tue, 05 Feb 2019 06:41:15 GMT):
hello, i have the following error and our situation is urgent, i hope anyone can help us.hi, i am working on building a multi-host+kafka oredring service network, and here is the situation I was able to do a invoke and query transaction successfully on the peer on which the cli services are present in my case org1 and it resulted with the desired value but when i went back to the worker machine and checked if the containers for the chaincode got generated or not, it wasn't so what to do ?

lee7859 (Tue, 05 Feb 2019 06:41:45 GMT):
i am working on building a multi-host+kafka oredring service network, and here is the situation I was able to do a invoke and query transaction successfully on the peer on which the cli services are present in my case org1 and it resulted with the desired value but when i went back to the worker machine and checked if the containers for the chaincode got generated or not, it wasn't so what to do ?

Akash76 (Tue, 05 Feb 2019 06:42:53 GMT):
Has joined the channel.

Akash76 (Tue, 05 Feb 2019 06:46:10 GMT):
Hello I am working on ledger data backup. I have mounted a volume to store ledger data. After making some transactions, I have killed the complete network. When i started the new network mounting backup volume, i am only able to query the data. But i am not able to commit new transaction to the peers. Worldstate is not updating. Can anyone please help me solving the issue? Thank you

Akash76 (Tue, 05 Feb 2019 06:46:28 GMT):
Successfully loaded user1 from persistence Assigning transaction_id: ebfb18555c2b23a61463b857fc3ca5de484c5d26bd600db9500b28940eb77572 Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" Send transaction promise and event listener promise have completed Successfully sent transaction to the orderer. Transaction failed to be committed to the ledger due to ::TIMEOUT

Akash76 (Tue, 05 Feb 2019 06:46:48 GMT):
this is the output from the node-sdk transaction submission

PhilippBraun (Tue, 05 Feb 2019 07:42:45 GMT):
Has joined the channel.

GavitMc (Tue, 05 Feb 2019 07:51:02 GMT):
probably you are referring to fabcar example...i think that script enrols the app admin user...I'm talking about re-enroling the ca admin user...so use that as template but re-enrol the ca admin...To confirm that your problem is what I think check if the log of the ca says certifacte not found with aki "very long number"

GavitMc (Tue, 05 Feb 2019 07:51:02 GMT):
@developeroka probably you are referring to fabcar example...i think that script enrols the app admin user...I'm talking about re-enroling the ca admin user...so use that as template but re-enrol the ca admin...To confirm that your problem is what I think check if the log of the ca says certificate not found with aki "very long number"

DMPROBTC (Tue, 05 Feb 2019 08:46:24 GMT):
Has joined the channel.

ooharawork (Tue, 05 Feb 2019 08:56:10 GMT):
In **Access Control Lists (ACL)** https://hyperledger-fabric.readthedocs.io/en/latest/access_control.html, the rule is written with an infix operator: `Rule: “Org1.Peer OR Org2.Peer”` However, as far as I know, it should be specified using polish notation as this: `Rule: "OR('Org1.peer', 'Org2.peer')"`. Is this a documentation error, or are infix operators also supported ? Thank you

knagware9 (Tue, 05 Feb 2019 09:02:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fKrZkNw4Dvbaf6CgA) @Antimttr check this https://github.com/hyperledger/fabric-samples/tree/release-1.4/fabcar

ooharawork (Tue, 05 Feb 2019 09:05:24 GMT):
As I posted above, I believe that I've found some issues on possible documentation errors. For now, I post the issues here on the chat space first, waiting for response by someone else, then will open a JIRA ticket, if no objections are found. However, I'm afraid that this might be noises here. Do you think I should open JIRAs directly for such trivial documentation issues, rather than to post here?

ooharawork (Tue, 05 Feb 2019 09:05:24 GMT):
As I posted above, I believe that I've found some issues on possible documentation errors. For now, I post the issues here on the chat space first, waiting for response by someone else, then will open a JIRA ticket, if no objections are found. However, I'm afraid that this might be noises here. How do you think about whether I should open JIRAs directly for such trivial documentation issues, rather than to post here?

AndresMartinezMelgar.itcl (Tue, 05 Feb 2019 10:27:32 GMT):
hi! i have an account in google cloud platform. I am trying to create a cluster with kubernetes to use hyperledger fabric. Anyone knows a tutorial? I always have same problem, all examples are so basic or in localhost ):

tk6sudersen (Tue, 05 Feb 2019 10:44:41 GMT):
Error: EACCES: permission denied, mkdir '/home/user/lib/node_modules/composer-cli/node_modules/node-report/build'

tk6sudersen (Tue, 05 Feb 2019 10:44:54 GMT):
how to give access in ubuntu

tk6sudersen (Tue, 05 Feb 2019 10:45:17 GMT):
can some one suggest i'm notable to install composer -cli

Daca 5 (Tue, 05 Feb 2019 11:28:02 GMT):
chmod a+x

Daca 5 (Tue, 05 Feb 2019 11:28:09 GMT):
@tk6sudersen

DJEMOA (Tue, 05 Feb 2019 13:23:30 GMT):
Has joined the channel.

DJEMOA (Tue, 05 Feb 2019 13:23:54 GMT):
Hello everyone, please, I would like to know if it is possible to generate ABI and ByteCode from a chaincode in other to run it in other environments.

klkumar369 (Tue, 05 Feb 2019 13:40:00 GMT):
Hi! I am trying to create a channel on my network. The network is up and running, but not able to create the channel. Here is what I get when I try to create the channel.... root@a1afba175353:/opt/gopath/src/github.com/hyperledger/fabric/peer# CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 peer channel create -c samplechannel Error: ordering service endpoint is not valid or missing Can someone suggest what's wrong here?

sudhasakshi (Tue, 05 Feb 2019 13:40:00 GMT):
Hi Team, ant function in shim to get data from chaincode with out passing any key..................

paparent (Tue, 05 Feb 2019 16:06:17 GMT):
Hi, I'm looking at fabric.. I check the docs and can't really find about deploy to prod (or well, not local!)... Is Fabric only running with Docker? or can you provide me a link to the docs to install without docker?

Antimttr (Tue, 05 Feb 2019 16:10:15 GMT):
umm i think fabric is docker based

Antimttr (Tue, 05 Feb 2019 16:10:15 GMT):
@paparent umm i think fabric is docker based

Antimttr (Tue, 05 Feb 2019 16:10:22 GMT):
dont think theres any way to avoid docker

adityanalgework1 (Tue, 05 Feb 2019 16:12:55 GMT):
Has joined the channel.

adityanalgework1 (Tue, 05 Feb 2019 16:14:26 GMT):
I have a very simple basic question. If a peer (PEER1) is joined to two channels (CHANNEL 1 and CHANNEL 2). How many ledgers are stored on the PEER? Is it just one ledger to which all the changes are made? OR Are there two ledgers, one for each channel?

Antimttr (Tue, 05 Feb 2019 16:19:02 GMT):
@adityanalgework1 `Peer nodes are the network components where copies of the blockchain ledger are hosted! At last, we’re starting to see some recognizable blockchain components! P1’s purpose in the network is purely to host a copy of the ledger L1 for others to access. We can think of L1 as being physically hosted on P1, but logically hosted on the channel C1. We’ll see this idea more clearly when we add more peers to the channel.`

Antimttr (Tue, 05 Feb 2019 16:19:18 GMT):
i think what thats saying is that a channel represents a single ledger

Antimttr (Tue, 05 Feb 2019 16:19:36 GMT):
which is physically hosted on all the nodes connected to the channel

Antimttr (Tue, 05 Feb 2019 16:19:50 GMT):
and multiple ledgers can exist on a single blockchain

Antimttr (Tue, 05 Feb 2019 16:20:06 GMT):
ref: https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html#creating-a-channel-for-a-consortium

adityanalgework1 (Tue, 05 Feb 2019 16:26:18 GMT):
@Antimttr Thank you for that detailed answer. I however am still wondering, If P1 is connected to C1 and C2, will it have to physically host ledgers L1 and L2 or will there be a common ledger L that contains transactions of C1 and C2 both?

Antimttr (Tue, 05 Feb 2019 16:27:16 GMT):
i beleive its 2 different ledgers but on the same block chain

adityanalgework1 (Tue, 05 Feb 2019 16:29:05 GMT):
Is there any way to solve the storage problem? Because if we have N number of channels and P number of Peers, it basically means we have to manage N x P ledgers. There is a lot of redundancy and storage being consumed.

Antimttr (Tue, 05 Feb 2019 16:29:12 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/_images/network.diagram.11.png

Antimttr (Tue, 05 Feb 2019 16:29:14 GMT):
see this diagram

Antimttr (Tue, 05 Feb 2019 16:29:21 GMT):
shows how theres 2 ledgers with 2 different channels

Antimttr (Tue, 05 Feb 2019 16:31:15 GMT):
@adityanalgework1 not sure, but i think that's the idea, is that each peer would have a full copy of the blockchain, so even if a peer isn't part of a channel it still has the ledgers from the other channels in its blockchain, even though it has no way of interpreting them since it doesn't have access to those channel's chaincode

adityanalgework1 (Tue, 05 Feb 2019 16:31:27 GMT):
Yes. But here P1 and P2 are not connected to the channel C2. I am talking of a worse case scenario in which all peers have joined all channels.

Antimttr (Tue, 05 Feb 2019 16:32:07 GMT):
right but even if they're not connected to a particular channel they would still get the blockchain data from all the various ledgers

Antimttr (Tue, 05 Feb 2019 16:32:14 GMT):
otherwise it wouldnt be fully distributed

Antimttr (Tue, 05 Feb 2019 16:32:48 GMT):
basically as i understand it the blockchain contains N different ledgers, where N is the total number of channels on the network

adityanalgework1 (Tue, 05 Feb 2019 16:33:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Yt99tkN76aaWN3Z8G) @Antimttr I agree with that. N channels, N ledgers.

Antimttr (Tue, 05 Feb 2019 16:33:19 GMT):
but the peer doesnt neccissarily have access to decode all the ledgers if its not part of a channel that accesses them

adityanalgework1 (Tue, 05 Feb 2019 16:33:35 GMT):
But it still has to store them?

Antimttr (Tue, 05 Feb 2019 16:33:49 GMT):
that's my understanding

Antimttr (Tue, 05 Feb 2019 16:34:15 GMT):
otherwise the blockchain would have different things depending upon which peer you querried

Antimttr (Tue, 05 Feb 2019 16:34:29 GMT):
and the whole idea of the blockchain (to me) is that every peer has a full copy of it

Antimttr (Tue, 05 Feb 2019 16:34:53 GMT):
and each copy has the same immutable set of records

Antimttr (Tue, 05 Feb 2019 16:35:26 GMT):
thats why they introduced the secure storage and the side databases for it

Antimttr (Tue, 05 Feb 2019 16:35:41 GMT):
so that you could have data that was part of a transaction but not actualy on the blockchain

adityanalgework1 (Tue, 05 Feb 2019 16:36:18 GMT):
Sure. *This service sent events any time a new block was added to the peer’s ledger, regardless of the channel to which that block pertained, and it was only accessible to members of the organization running the eventing peer (i.e., the one being connected to for events).*

adityanalgework1 (Tue, 05 Feb 2019 16:36:43 GMT):
This is what was bothering me. The language above makes it seem like ever peer runs only one ledger.

Antimttr (Tue, 05 Feb 2019 16:43:50 GMT):
yeahi think thats just saying that you get the service events for all the ledgers but only peers that are actually joined to the channel can access them in a meaningful way

pieraco (Tue, 05 Feb 2019 18:02:07 GMT):
@adityanalgework1 @Antimttr My understanding is that there is a single blockchain, as far as there is a single orderer (with may be some brokers) that created the genesis block

Antimttr (Tue, 05 Feb 2019 18:18:42 GMT):
@pieraco and that single blockchain contains multiple ledgers?

Antimttr (Tue, 05 Feb 2019 18:18:42 GMT):
@pieraco and that single blockchain can contain multiple ledgers?

dave.enyeart (Tue, 05 Feb 2019 18:19:18 GMT):
'ledger' is used is many contexts... don't read too much into that bold paragraph.... For every channel there is one physical chain and state database.

Antimttr (Tue, 05 Feb 2019 18:19:57 GMT):
ok so its one block chain per ledger then

dave.enyeart (Tue, 05 Feb 2019 18:20:41 GMT):
yes, we typically say that a peer maintains a ledger per channel, comprised of a physical chain and state database

Antimttr (Tue, 05 Feb 2019 18:20:53 GMT):
gotcha

Antimttr (Tue, 05 Feb 2019 18:21:22 GMT):
so peers that dont belong to a channel will never receive that blockchain's ledger

dave.enyeart (Tue, 05 Feb 2019 18:21:34 GMT):
correct, that's the whole point

Antimttr (Tue, 05 Feb 2019 18:24:20 GMT):
is there any way to check the chaincode installed on a peer by browsing the peer's filesystem using docker?

Antimttr (Tue, 05 Feb 2019 18:24:40 GMT):
like if i do a find / |grep mychiancodefile.js

Antimttr (Tue, 05 Feb 2019 18:24:47 GMT):
after i installed one, find comes up with nothing

Antimttr (Tue, 05 Feb 2019 18:25:04 GMT):
so do they only exist as some sort of file pointer inside the docker's fs?

dave.enyeart (Tue, 05 Feb 2019 18:37:24 GMT):
an installed chaincode will show up in the peer's `CORE_PEER_FILESYSTEMPATH/chaincodes` directory. It will be packaged up so you won't see the .js file. If the peer containers file system is mounted to the host file system, then you'd see it on the host file system as well.

dave.enyeart (Tue, 05 Feb 2019 18:37:24 GMT):
an installed chaincode will show up in the peer's `CORE_PEER_FILESYSTEMPATH/chaincodes` directory. It will be packaged up so you won't see the .js file, you'll see a file called .. If the peer containers file system is mounted to the host file system, then you'd see it on the host file system as well.

Antimttr (Tue, 05 Feb 2019 18:41:10 GMT):
ok thanks!

TBdori (Tue, 05 Feb 2019 19:23:12 GMT):
Has joined the channel.

Antimttr (Tue, 05 Feb 2019 20:13:49 GMT):
Anyone know if this is using hyperledger? https://www.coindesk.com/ibm-completes-blockchain-trial-tracking-a-28-ton-shipment-of-oranges

Rajatsharma (Tue, 05 Feb 2019 20:42:50 GMT):
can anyone help me to figure out how does kafka and zookeeper work in Hyperledger fabric, internally. I'm not able to find good resource for this.

MahmoudKhraisha (Tue, 05 Feb 2019 20:55:14 GMT):
Has joined the channel.

jenriellegaon (Tue, 05 Feb 2019 23:32:18 GMT):
Has joined the channel.

jenriellegaon (Tue, 05 Feb 2019 23:33:39 GMT):
Hello guys , can someone help me with this ? I have to add new functions to my chaincode and this error occured after I submitted a transaction . https://gist.github.com/jenriellegaon/1b43fea217416cda15888528e504d939 https://gist.github.com/jenriellegaon/1b43fea217416cda15888528e504d939

naganjaneyulu (Tue, 05 Feb 2019 23:44:04 GMT):
@channel - I made some changes to my fabcar smart contract ..just added one additional filed yearofmake..and also made changes to the income.js to send yearofmake for new cars..what should I do to reflect these changes in my network . Kindly advice.

naganjaneyulu (Wed, 06 Feb 2019 01:33:42 GMT):
XXXXX@LAPTOP-XXXXX MINGW64 ~/fabric-samples/fabcar/javascript ((v1.4.0)) $ node invoke.js Wallet path: C:\Users\Hrithika\fabric-samples\fabcar\javascript\wallet 2019-02-06T01:02:04.349Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:7050 2019-02-06T01:02:04.351Z - error: [Orderer.js]: Orderer grpc://localhost:7050 has an error Error: Failed to connect before the deadline URL:grpc://localhost:7050 Failed to submit transaction: Error: Failed to connect before the deadline URL:grpc://localhost:7050

naganjaneyulu (Wed, 06 Feb 2019 01:33:57 GMT):
getting the above error while executing the invoke.js

naganjaneyulu (Wed, 06 Feb 2019 01:34:05 GMT):
any help really appreciated

matenek (Wed, 06 Feb 2019 02:14:55 GMT):
Has joined the channel.

Aniket.1 (Wed, 06 Feb 2019 05:09:42 GMT):
Is there any possibility to create private data collection between two signing Identity of One organization network?

MuhammedHafil (Wed, 06 Feb 2019 05:36:56 GMT):
I have registered some users using balance transfer network from https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer . But im not able to find those users with `fabric-ca-client identity list ` , So the node sdk does not communicate with with ca?

MuhammedHafil (Wed, 06 Feb 2019 05:36:56 GMT):
I have registered some users using balance transfer network from https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer . But im not able to find those users with `fabric-ca-client identity list ` , So the node sdk does not communicate with with ca?The users are in ca database,

MuhammedHafil (Wed, 06 Feb 2019 05:36:56 GMT):
I have registered some users using balance transfer network from https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer . But im not able to find those users with `fabric-ca-client identity list ` , So the node sdk does not communicate with with ca?The users are in ca database, getting below error while permorming `fabric-ca-client identity list` `[ERROR] Enrollment check failed: Idemix enrollment information does not exist`

MuhammedHafil (Wed, 06 Feb 2019 05:36:56 GMT):
I have registered some users using balance transfer network from https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer . But im not able to find those users with `fabric-ca-client identity list ` , So the node sdk does not communicate with with ca? The users are in ca database, getting below error while permorming `fabric-ca-client identity list` `[ERROR] Enrollment check failed: Idemix enrollment information does not exist`

MuhammedHafil (Wed, 06 Feb 2019 05:36:56 GMT):
I have registered some users using balance transfer network from https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer . But im not able to find those users with `fabric-ca-client identity list ` , The users are in ca database, getting below error while permorming `fabric-ca-client identity list` `[ERROR] Enrollment check failed: Idemix enrollment information does not exist`

MuhammedHafil (Wed, 06 Feb 2019 05:45:38 GMT):
The user is in ca database

arvindkumar6568 (Wed, 06 Feb 2019 06:00:38 GMT):
hello experts i run hyperledger explorer and peer are running but it show status down while transaction execute successfully

snavruzoff (Wed, 06 Feb 2019 06:17:39 GMT):
Has joined the channel.

snavruzoff (Wed, 06 Feb 2019 06:36:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o3zTdHQRJKxXift7u) @arvindkumar6568 @arvindkumar6568 check your peer logs, I had the same issue and solved it by joinin' and updating all peers to my channel, by saying "all peers" I mean peer0, peer1, peer2... peerN And yes you should check your peer connection creds in config.yml of the Hyperledger Explorer

snavruzoff (Wed, 06 Feb 2019 06:40:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M89yP7g5YfMriZLCg) @Rajatsharma Here you can find a good explanation https://codeburst.io/the-abcs-of-kafka-in-hyperledger-fabric-81e6dc18da56

snavruzoff (Wed, 06 Feb 2019 06:49:07 GMT):
I've completed all steps in BYFN to run peers with a Couchdb state. Everything's working perfectly but here's a question arises, what If I get an access to the CouchDB via its Rest API(i.e Fauxton Project UI) and do some data manipulations, i.e change/delete some records inside? Should I expect the changes be re-synchronized, with _orderer_ ledgers again?

Rajatsharma (Wed, 06 Feb 2019 06:57:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sXo6YFJu7yw77Rv9J) @snavruzoff Thanks !! This seems to be really helpful.

arvindkumar6568 (Wed, 06 Feb 2019 06:58:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GJd9k3dTriPmQ3HrN) @snavruzoff hello sir i checked peers logs but i did not see any error in logs

Rajatsharma (Wed, 06 Feb 2019 06:59:34 GMT):
Can anyone help me with running a peer with any debugger like `gdb`. I've gone through all the basics numerous times but I want to see how does data flow internally in a fabric network.

Rajatsharma (Wed, 06 Feb 2019 06:59:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CDkSehipRdSRXMXu7) @npc0405

Sarath_Kumar (Wed, 06 Feb 2019 09:04:25 GMT):
Hi All, I want to know more details about *cli container*, whether it is really required or not? use of this container?

abityildiz (Wed, 06 Feb 2019 09:18:20 GMT):

Clipboard - February 6, 2019 12:18 PM

nagaraju123 (Wed, 06 Feb 2019 09:56:05 GMT):
how to get all the Assets which is created by particular "User" from blockchain

nagaraju123 (Wed, 06 Feb 2019 09:56:21 GMT):
can anyone tell me how to achieve it

NavaL3 (Wed, 06 Feb 2019 10:02:18 GMT):
Has joined the channel.

NavaL3 (Wed, 06 Feb 2019 10:02:44 GMT):
Hello team, I am implementing the blockchain-middleware nodejs SDK on ubuntu 18.04 I am getting the problem while joining the channel with peer... please find out the screenshot for more detail..... Seeking for the help......

NavaL3 (Wed, 06 Feb 2019 10:03:08 GMT):

Screenshot from 2019-02-06 15-30-03.png

Sarath_Kumar (Wed, 06 Feb 2019 10:10:03 GMT):
Hi All, I am following this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#generate-the-org3-crypto-material to add a new organisation into existing network. *export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json* The above command fails with the error message: *Error on printorg : organisation org2 not found*

Sarath_Kumar (Wed, 06 Feb 2019 10:10:03 GMT):
Hi All, I am following this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#generate-the-org3-crypto-material to add a new organisation into existing network. *export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json* The above command fails with the error message: *Error on printorg : organisation org3 not found*

Sarath_Kumar (Wed, 06 Feb 2019 10:10:03 GMT):
Hi All, I am following this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#generate-the-org3-crypto-material to add a new organisation into existing network. *export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json* The above command fails with the error message: *Error on printorg : organisation org3 not found* Based on the suggestion provided here : https://jira.hyperledger.org/browse/FAB-4424 I have checked with organisation values like Org3 and Org3MSP but the error remains same.

KartikChauhan (Wed, 06 Feb 2019 10:21:55 GMT):
Can `peer channel fetch oldest` and `peer channel fetch config` result in different content?

KartikChauhan (Wed, 06 Feb 2019 10:21:55 GMT):
Can `peer channel fetch oldest` and `peer channel fetch config` ever result in different content?

SatheeshNehru (Wed, 06 Feb 2019 10:58:10 GMT):
Has joined the channel.

Sarath_Kumar (Wed, 06 Feb 2019 11:01:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hcRozpT7EwRrE6hBX) The same command *export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json * is working fine in *first network* and not working in my own network.

Sarath_Kumar (Wed, 06 Feb 2019 11:01:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hcRozpT7EwRrE6hBX) The same command *export FABRIC_CFG_PATH=$PWD && ../../bin/configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json * is working fine in *first network* and not working in my own network. How to fix this issue any idea?

SatheeshNehru (Wed, 06 Feb 2019 11:05:13 GMT):
1.which better using docker or machines? 2.is there any alternative fr dcoker?

HaydenG (Wed, 06 Feb 2019 11:13:18 GMT):
Hi, I am trying to create a channel and I am getting the following error:

HaydenG (Wed, 06 Feb 2019 11:13:27 GMT):
BAD_REQUEST. Description: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

sureshtedla (Wed, 06 Feb 2019 11:27:17 GMT):
If add new user or participant in hyperledger fabric certificate will be in .PEM format?

HaydenG (Wed, 06 Feb 2019 11:44:44 GMT):
Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity

Sarath_Kumar (Wed, 06 Feb 2019 11:48:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ugcwT8eWmm9cioRtq) The issue is fixed. configtx file is missing in my network after adding configtx for new organisation the issue got resolved.

Switch2Logic (Wed, 06 Feb 2019 12:07:08 GMT):
Good day, I am trying to setup OpenLDAP to work with Fabric-CA version 1.4.0. I am having trouble to enroll the admin. Any ideas on what the problem might be? The command I am running -> fabric-ca-client enroll -u http://cn=admin:admin@localhost:7054 The log on the fabric-ca side -> ```2019/02/06 11:07:35 [DEBUG] Getting user 'cn=admin' 2019/02/06 11:07:35 [DEBUG] Searching for user 'cn=admin' using new connection 2019/02/06 11:07:35 [DEBUG] Connecting to LDAP server over TCP 2019/02/06 11:07:35 [DEBUG] Binding to the LDAP server as admin user cn=admin,dc=example,dc=org 2019/02/06 11:07:35 [INFO] 127.0.0.1:36228 POST /enroll 401 23 "Failed to get user: LDAP search failure; search request: &{BaseDN:dc=example,dc=org Scope:2 DerefAliases:0 SizeLimit:0 TimeLimit:0 TypesOnly:false Filter:(cn=cn=admin)  Attributes:[uid member] Controls:[]}: LDAP Result Code 201 "": ldap: finished compiling filter with extra at end:  "``` The log of the LDAP side->```5c5abff7 conn=1052 fd=12 ACCEPT from IP=10.0.0.34:47132 (IP=0.0.0.0:389) 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" method=128 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" mech=SIMPLE ssf=0 5c5abff7 conn=1052 op=0 RESULT tag=97 err=0 text= 5c5abff7 conn=1052 fd=12 closed (connection lost)``` fabric-ca-server-config.yaml file ->``` ldap: # Enables or disables the LDAP client (default: false) enabled: true # The URL of the LDAP server url: ldap://cn=admin,dc=example,dc=org:admin@example.org:389/dc=example,dc=org userfilter: (cn=%s)  tls: certfiles: client: certfile: keyfile: attribute: names: ['uid','member'] converters: - name: hf.Revoker value: attr('uid') =~ "revoker" maps: groups: - name: value: ```

Switch2Logic (Wed, 06 Feb 2019 12:12:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oEucvQpBXxyir4Dtz) @naganjaneyulu need more information about your Hyperldger Fabric network. But my guess is you should update /etc/hosts file and add 127.0.0.1 orderer.example.com. and grpc://orderer.example.com. This all deppends on your setup tho... But if you running docker swarm this should work then.

Switch2Logic (Wed, 06 Feb 2019 12:19:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=M89yP7g5YfMriZLCg) @Rajatsharma In simple terms it is used when you have mutiple Orderers. The Kafka brokers are usually implemented in an odd number of brokers to ensure fault tolerance. Now Kafka is a peer to peer messaging system its responsible for keeping the Orderers in sync with each other. Now Kafka is stateless Zookeeper is used to keep track of state changes in each Kafka broker. Note Kafka cant be used with out the Zookeeper. Now I can get more technical but this is a quick run down of why these components are there for.

HaydenG (Wed, 06 Feb 2019 12:32:59 GMT):
Can anyone help? I've been trying to fix this issue for a while: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

HaydenG (Wed, 06 Feb 2019 12:33:09 GMT):
Whilst trying to create a channel

Sarath_Kumar (Wed, 06 Feb 2019 12:36:00 GMT):
Hi All, *peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* *peer command not found* error while running the above in terminal. for peers am using "docker exec peer0.org.example.com peer channel list"

Switch2Logic (Wed, 06 Feb 2019 12:39:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tqht7MJYb7yevGhtN) @Sarath_Kumar Why are you not using Fabric_Client?

iulix_nori (Wed, 06 Feb 2019 12:39:43 GMT):
Has joined the channel.

iulix_nori (Wed, 06 Feb 2019 12:41:07 GMT):
Hello, I have a question...is the orderer set up per organization or one /multiple orderers for multiple organizations?

Switch2Logic (Wed, 06 Feb 2019 12:41:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Tqht7MJYb7yevGhtN) @Sarath_Kumar Why are you not using Fabric_Client? Then you could try and run -> docker exec -it peer0.org.example.com bash

Switch2Logic (Wed, 06 Feb 2019 12:41:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RwyZs58aAc24WEL2R) @VitorSousaCode Is it just a general question?

Switch2Logic (Wed, 06 Feb 2019 12:41:40 GMT):
Is it just a general question? Then yes

VitorSousaCode (Wed, 06 Feb 2019 12:45:00 GMT):
Has joined the channel.

VitorSousaCode (Wed, 06 Feb 2019 12:45:22 GMT):
Hi team, can i post questions about fabric-node-sdk here?

Sarath_Kumar (Wed, 06 Feb 2019 12:45:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TJhJ3WH4eJ8c7PbNP) @Switch2Logic your suggested command worked. thank you

VitorSousaCode (Wed, 06 Feb 2019 12:47:52 GMT):
Team, i’m developing an application that relies on fabric-node-sdk , at this moment in special:

VitorSousaCode (Wed, 06 Feb 2019 12:47:57 GMT):
https://fabric-sdk-node.github.io/release-1.4/global.html#RegisterRequest

VitorSousaCode (Wed, 06 Feb 2019 12:48:57 GMT):
I already registering and enrolling users, but when trying to use the ```attrs``` I already registering and enrolling users, but when trying to use the "attrs" param, so i can better custom each user info, i’m not getting it signed to my x509certicates

VitorSousaCode (Wed, 06 Feb 2019 12:48:57 GMT):
I already registering and enrolling users, but when trying to use the ```attrs``` I'm already registering and enrolling users, but when trying to use the "attrs" param, so i can better custom each user info, i’m not getting it signed to my x509certicates

VitorSousaCode (Wed, 06 Feb 2019 12:49:05 GMT):
Trying out this feature from sdk

VitorSousaCode (Wed, 06 Feb 2019 12:49:18 GMT):

Screen Shot 2019-02-06 at 10.37.27 AM.png

VitorSousaCode (Wed, 06 Feb 2019 12:49:27 GMT):
and debugging my request: I’m looking for the info already applied as param “attrs”, at register moment in the field extensios/‘1.2.3.4.5.6.7.8.1’, but only affiliation, enrollmentId and type are present

VitorSousaCode (Wed, 06 Feb 2019 12:49:40 GMT):

Screen Shot 2019-02-06 at 10.26.59 AM.png

VitorSousaCode (Wed, 06 Feb 2019 12:49:45 GMT):
does anyone have already applied this feature in projects?

VitorSousaCode (Wed, 06 Feb 2019 12:50:34 GMT):
``` //https://fabric-sdk-node.github.io/release-1.4/global.html#RegisterRequest async function enrollUsers(user, adminIdentity, ca) { return await ca.register({ affiliation: 'org1.department1', maxEnrollments: 3, attrs: [{ name: "banco", value: "owner" }], enrollmentID: user.id, role: user.role }, adminIdentity); } ```

VitorSousaCode (Wed, 06 Feb 2019 12:50:34 GMT):
``` //https://fabric-sdk-node.github.io/release-1.4/global.html#RegisterRequest async function registerUsers(user, adminIdentity, ca) { return await ca.register({ affiliation: 'org1.department1', maxEnrollments: 3, attrs: [{ name: "banco", value: "owner" }], enrollmentID: user.id, role: user.role }, adminIdentity); } ```

Switch2Logic (Wed, 06 Feb 2019 12:52:58 GMT):
I hope this helps ``` var attributes = [{name:'dev2',value:'true',ecert:true}]; return fabric_ca_client.register({enrollmentID: 'user1',enrollmentSecret:'bagdad',role: '',affiliation: '',attrs: attributes}, admin_user);```

Switch2Logic (Wed, 06 Feb 2019 12:52:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TWEZPKMM9esyiS6Ny) @VitorSousaCode I hope this helps ``` var attributes = [{name:'dev2',value:'true',ecert:true}]; return fabric_ca_client.register({enrollmentID: 'user1',enrollmentSecret:'bagdad',role: '',affiliation: '',attrs: attributes}, admin_user);```

ahmadraza (Wed, 06 Feb 2019 12:53:06 GMT):
Has joined the channel.

VitorSousaCode (Wed, 06 Feb 2019 12:55:28 GMT):
tks @Switch2Logic !

sureshtedla (Wed, 06 Feb 2019 12:58:21 GMT):
@VitorSousaCode Hi if we add new user or participant in hyperledger fabric certificate will be generated in .PEM file format?

sureshtedla (Wed, 06 Feb 2019 12:58:21 GMT):
@VitorSousaCode Hi if we add new user or participant in hyperledger fabric certificate will be generated in .PEM file format? @Switch2Logic

Switch2Logic (Wed, 06 Feb 2019 13:01:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DwvbmcLpwXFKqckNs) @sureshtedla By default yes..

Switch2Logic (Wed, 06 Feb 2019 13:01:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DwvbmcLpwXFKqckNs) @sureshtedla By default yes.. With private and public key

VitorSousaCode (Wed, 06 Feb 2019 13:01:32 GMT):
@sureshtedla when you create the identity for that user, you'll receive a cert and private key in em format

VitorSousaCode (Wed, 06 Feb 2019 13:01:32 GMT):
@sureshtedla when you create the identity for that user, you'll receive a cert and private key in .pem format

VitorSousaCode (Wed, 06 Feb 2019 13:01:40 GMT):
https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.X509WalletMixin.html

sureshtedla (Wed, 06 Feb 2019 13:03:05 GMT):
for example if we are integrating nonblockchain application with hyperledger fabric non blockchain app need to upload PEm certificate in order to access hyperledger right?

sureshtedla (Wed, 06 Feb 2019 13:03:05 GMT):
for example if we are integrating nonblockchain application with hyperledger fabric non blockchain app need to upload PEm certificate in order to access hyperledger right? @Switch2Logic @VitorSousaCode

Switch2Logic (Wed, 06 Feb 2019 13:06:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cDrAiWNcwy9AJXGj) @sureshtedla Are you referring to application that are written with fabric-sdk-go and fabric-sdk-nodejs. Then yes you use it and if TLS is enabled you need to send peer and orderer certificates aswell .

Switch2Logic (Wed, 06 Feb 2019 13:06:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cDrAiWNcwy9AJXGj) @sureshtedla Are you referring to application that are written with fabric-sdk-go and fabric-sdk-nodejs. Then yes you use it and if TLS is enabled you need to send peer and orderer certificates aswell for invoke requests on chaincode.

ahmadraza (Wed, 06 Feb 2019 13:07:09 GMT):
hi All is there is any limit on creation of no. of assets?

ahmadraza (Wed, 06 Feb 2019 13:07:09 GMT):
hi All is there is any limit on creation of no. of assets? as i am adding assets to registry by assetRegistory.getAll(list). it generates timeout error when i passed list of 10000 assets

sureshtedla (Wed, 06 Feb 2019 13:07:21 GMT):
after uploading pem certificate hyperledger fabric will send any response back to nonblockchain application? @Switch2Logic

Switch2Logic (Wed, 06 Feb 2019 13:09:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XkzABBhAPetYWdysR) @sureshtedla Depends on what your request is for... It sends that pem cert to the Fabric-Ca to check its validity and if its valid executes your request.

sureshtedla (Wed, 06 Feb 2019 13:09:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lza76Bdy6mYcEeSPh) @Switch2Logic Thanks

Switch2Logic (Wed, 06 Feb 2019 13:09:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NZMHLuxgtAKXcdRBC) @sureshtedla No problem

sureshtedla (Wed, 06 Feb 2019 13:13:37 GMT):
@Switch2Logic In my application data is coming from nonblockchain application for example buyer sending purchase order details to blockchain, in order to access fabric blockchain buyer need to upload buyer.PEM from nonblockchain app right?

VitorSousaCode (Wed, 06 Feb 2019 13:13:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SGgSeXZr7BE8RCQc9) @Switch2Logic @Switch2Logic it worked! was only missing the 'ecert' param, tks!

Switch2Logic (Wed, 06 Feb 2019 13:14:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iSKtxdJHECz7M5T6R) @VitorSousaCode I thought as much just wanted to provide the full picture. Glad I could assist.

Switch2Logic (Wed, 06 Feb 2019 13:15:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PZ7tnF8rcFetBpXCz) @sureshtedla yes

Switch2Logic (Wed, 06 Feb 2019 13:16:00 GMT):
@VitorSousaCode Good day, I am trying to setup OpenLDAP to work with Fabric-CA version 1.4.0. I am having trouble to enroll the admin. Any ideas on what the problem might be? The command I am running -> fabric-ca-client enroll -u http://cn=admin:admin@localhost:7054 The log on the fabric-ca side -> ```2019/02/06 11:07:35 [DEBUG] Getting user 'cn=admin' 2019/02/06 11:07:35 [DEBUG] Searching for user 'cn=admin' using new connection 2019/02/06 11:07:35 [DEBUG] Connecting to LDAP server over TCP 2019/02/06 11:07:35 [DEBUG] Binding to the LDAP server as admin user cn=admin,dc=example,dc=org 2019/02/06 11:07:35 [INFO] 127.0.0.1:36228 POST /enroll 401 23 "Failed to get user: LDAP search failure; search request: &{BaseDN:dc=example,dc=org Scope:2 DerefAliases:0 SizeLimit:0 TimeLimit:0 TypesOnly:false Filter:(cn=cn=admin)  Attributes:[uid member] Controls:[]}: LDAP Result Code 201 "": ldap: finished compiling filter with extra at end:  "``` The log of the LDAP side->```5c5abff7 conn=1052 fd=12 ACCEPT from IP=10.0.0.34:47132 (IP=0.0.0.0:389) 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" method=128 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" mech=SIMPLE ssf=0 5c5abff7 conn=1052 op=0 RESULT tag=97 err=0 text= 5c5abff7 conn=1052 fd=12 closed (connection lost)``` fabric-ca-server-config.yaml file ->``` ldap: # Enables or disables the LDAP client (default: false) enabled: true # The URL of the LDAP server url: ldap://cn=admin,dc=example,dc=org:admin@example.org:389/dc=example,dc=org userfilter: (cn=%s)  tls: certfiles: client: certfile: keyfile: attribute: names: ['uid','member'] converters: - name: hf.Revoker value: attr('uid') =~ "revoker" maps: groups: - name: value: ```

sureshtedla (Wed, 06 Feb 2019 13:16:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rbzaeqFtbFign9ve2) @Switch2Logic Ok Thanks for quick response @Switch2Logic

Switch2Logic (Wed, 06 Feb 2019 13:18:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FPRBe6hiyRMErayk4) @ahmadraza Work around could be to extract it straight form Couchdb. Not the preferred method but could help you in the mean time.

Switch2Logic (Wed, 06 Feb 2019 13:21:16 GMT):
Hyperledger Fabric is developing so rapidity but the user friendly documentation is lagging on advance and new topics.

Switch2Logic (Wed, 06 Feb 2019 13:21:16 GMT):
Hyperledger Fabric is developing so rapidity but the user friendly documentation is lagging on advance and new topics. I pull my hair out on a daily bases lol.

VitorSousaCode (Wed, 06 Feb 2019 13:22:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WrpTrCKP73sc4Wzbt) @Switch2Logic Hello, so trying to figure out here, maybe i can help asking some devs here that already did this kind of implementation

Sahanratnayake (Wed, 06 Feb 2019 13:28:57 GMT):
Has joined the channel.

VitorSousaCode (Wed, 06 Feb 2019 13:30:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KfLcQ2gxBaYyTyCqH) Curiously, it appears to find the admin user

VitorSousaCode (Wed, 06 Feb 2019 13:32:04 GMT):
I did something simpler like ``` COMPOSER_PROVIDERS='{ ldap: { provider: "ldap", module: "passport-ldapauth", authPath: "/auth/ldap", callbackURL: "/auth/ldap/callback", successRedirect: "/?success=true", failureRedirect: "/?failure=true", authScheme: "ldap", server: { url: "ldap://localhost:3005", bindDN: "cn=root,dc=example,dc=org", bindCredentials: "secret", searchBase: "dc=example,dc=org", searchFilter: "(uid={{username}})" } } }' ``` , but not yet with fabric ca

VitorSousaCode (Wed, 06 Feb 2019 13:32:58 GMT):
i know, it was ''plugged" in a different context, but just to have some example

VitorSousaCode (Wed, 06 Feb 2019 13:32:58 GMT):
i know, it was ''plugged" in a different context, but just to have some additional example

ahmadraza (Wed, 06 Feb 2019 13:33:52 GMT):
@Switch2Logic i need to create bulk of assets may be arround 1m. when my assets are more than 10000 . i am not able to retrieve assets after 10000 it will only returns first 10000 and even when i added more assets there are added but not retrieved in bulk but i can get individual asset but i need list of asset of particular participant.

Aniket.1 (Wed, 06 Feb 2019 13:34:17 GMT):
Is it possible to see the plain text data sent in transient field. I am using getTransient() inside chaincode. Where can i get the sent value in this object?

ahmadraza (Wed, 06 Feb 2019 13:35:57 GMT):
@Switch2Logic i made node.js rest api over hyperledger network and i created 4 lists each of 2000 assets and calll the apis to add to the network simultaneously it generated the timeout errors after reading lists

Switch2Logic (Wed, 06 Feb 2019 13:47:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BAhkWJfMEPx8QBBRs) @ahmadraza You could read sets of the data and cashing them before you display. From my research I don't think blockchains are designed for this massive queries and storing of data in batch. This is where a normal database wins 1000 times over... I would recommend maybe rethinking why you using blockchain and if you really need a blockchain for what you are doing. Another option would be to store data off chain in a normal database and use Blockchain as authentication and access control. Thats just my view.

ahmadraza (Wed, 06 Feb 2019 13:49:58 GMT):
@Switch2Logic basically i use blockchain to keeps the records of shares of different companies as a company may have many many shares. my objective is to maintain the ledger of keeping the share history increase in value or changing of owner etc?

Switch2Logic (Wed, 06 Feb 2019 13:52:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2tnCXbiq6vEhkAFTF) @ahmadraza Why do you need to query that large set of data at once?

Switch2Logic (Wed, 06 Feb 2019 13:53:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=E6Y8fkomfp3FZBZfe) CouchDB will beable to do this

Switch2Logic (Wed, 06 Feb 2019 13:53:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2tnCXbiq6vEhkAFTF) @ahmadraza CouchDB will bebale to help with this

VitorSousaCode (Wed, 06 Feb 2019 13:54:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=44NBL642oJaXSyxkF) @Switch2Logic about the reference in 'attribute.names' should you have also the 'cn' mentioned?

ahmadraza (Wed, 06 Feb 2019 13:54:05 GMT):
@Switch2Logic i need to query the shares of particular company ? or particular owner

ahmadraza (Wed, 06 Feb 2019 13:54:53 GMT):
@Switch2Logic and i want to create shares of particular comapny upto 1m

ahmadraza (Wed, 06 Feb 2019 13:56:06 GMT):
when my shares count is less than 10000 i am achieving all things correctly but when number increase problem occurs @Switch2Logic

Switch2Logic (Wed, 06 Feb 2019 13:56:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GkDrxZjyhBFZJzxzh) @ahmadraza Look at CouchDB for reading... And maybe add sets of records at intervals . Say 500 records each second and so on

Switch2Logic (Wed, 06 Feb 2019 13:57:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YdpfKZizMhRdw5MvZ) @VitorSousaCode I have had it like that before but can try it again

ahmadraza (Wed, 06 Feb 2019 14:00:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uip59NWuaiBKjWNcC) @Switch2Logic @Switch2Logic in retrieval i can manage but why there is issue in creating more than 10000 assets

Switch2Logic (Wed, 06 Feb 2019 14:01:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YdpfKZizMhRdw5MvZ) @VitorSousaCode No joy. ``` ldap: # Enables or disables the LDAP client (default: false) enabled: true # The URL of the LDAP server url: ldap://cn=admin,dc=example,dc=org:admin@example.org:389/dc=example,dc=org userfilter: (cn=%s)  tls: certfiles: client: certfile: keyfile: attribute: names: ['cn','member'] converters: - name: hf.Revoker value: attr('cn') =~ "revoker" maps: groups: - name: value: ```

gut (Wed, 06 Feb 2019 14:01:34 GMT):
Do you know if something like issue https://jira.hyperledger.org/browse/FAB-5460 has been moved in later versions to accept the distribution of chaincodes to peers in a compiled way?

Switch2Logic (Wed, 06 Feb 2019 14:02:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=przJb9BjcEeTCt33o) @ahmadraza Maybe there is a way to increase the timeout time for channel to be open...

ahmadraza (Wed, 06 Feb 2019 14:03:55 GMT):
@Switch2Logic exactly what i am looking for? may be to increase timeout or retrieval limit?

Switch2Logic (Wed, 06 Feb 2019 14:05:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ToyWQ84dr5NnkPh4t) @ahmadraza No idea sorry. Have not looked into this as I haven't had to query large sets of data at once...

ahmadraza (Wed, 06 Feb 2019 14:06:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=htp4jYuEavcofWrEi) @Switch2Logic thanks for your time and help

Peter777 (Wed, 06 Feb 2019 16:04:48 GMT):
Has joined the channel.

Peter777 (Wed, 06 Feb 2019 16:04:53 GMT):
Hello, can i restart Hyperledger explorer without delete the data in postgress db every time i restart my Fabric network?

paulovitorjp (Wed, 06 Feb 2019 16:37:54 GMT):
Has joined the channel.

vieiramanoel (Wed, 06 Feb 2019 16:56:34 GMT):
Hey guys I'd like to allow channel be modified just by only one org, changing channeltx.yaml to achieve that

vieiramanoel (Wed, 06 Feb 2019 16:57:07 GMT):
Any of you have any idea of how to do this?

vieiramanoel (Wed, 06 Feb 2019 16:57:10 GMT):
@yaco

vieiramanoel (Wed, 06 Feb 2019 16:57:27 GMT):
@yacovm can you give a guide light about this?

vieiramanoel (Wed, 06 Feb 2019 16:57:58 GMT):
I though that changing channel to this set: ```Channel: &ChannelDefaults # Policies defines the set of policies at this level of the config tree # For Channel policies, their canonical path is # /Channel/ Policies: # Who may invoke the 'Deliver' API Readers: Type: ImplicitMeta Rule: "ANY Readers" # Who may invoke the 'Broadcast' API Writers: Type: ImplicitMeta Rule: "ANY Writers" # By default, who may modify elements at this config level Admins: Type: ImplicitMeta Rule: "ANY Org1MSP.admin" ``` would work

vieiramanoel (Wed, 06 Feb 2019 16:58:04 GMT):
but apparently don't

vieiramanoel (Wed, 06 Feb 2019 16:58:04 GMT):
but apparently it doesn't

ChetanGadgilwar (Wed, 06 Feb 2019 17:38:30 GMT):
Has joined the channel.

dave.enyeart (Wed, 06 Feb 2019 18:50:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jHDSGqEGGZu9Tr8Fh) @snavruzoff No, the state database is where validated changes end up, not where changes should be made. See related discussion at https://lists.hyperledger.org/g/fabric/message/4896

dave.enyeart (Wed, 06 Feb 2019 18:58:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mymw2KguDiMdgj6wR) @Aniket.1 Yes, see examle usage in https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html and https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/marbles02_private/go/marbles_chaincode_private.go#L197-L214

pchochu (Wed, 06 Feb 2019 20:09:30 GMT):
Hello guys. Pls do you know, what`s the difference in configx.yaml, while creating profiles, between "<<: *Whatever1" and "- *Whatever2". I don`t understand why there is << and then there is no <<

rdc1113 (Wed, 06 Feb 2019 20:15:14 GMT):
Has joined the channel.

rdc1113 (Wed, 06 Feb 2019 20:17:02 GMT):
Hello guys. DO you think i can setup my own network locally for a store. (supply management, transactions, customers, wallets...) with hyperledger composer?

0xSEGFAULT (Wed, 06 Feb 2019 21:14:36 GMT):
Hello everyone, I can't seem to get a peer to create a channel. I'm using Kafka ordering with 3 orderers. I'm just trying to do `peer channel create`. Everything is running inside an AWS Kubernetes network. Here is the error message ``` *2019-02-06 21:08:03.707 UTC [orderer.common.broadcast] ProcessMessage -> WARN 015 [channel: mainchannel] Rejecting broadcast of config message from 100.96.22.242:42036 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied 2019-02-06 21:08:03.707 UTC [comm.grpc.server] 1 -> INFO 016 streaming call completed {"grpc.start_time": "2019-02-06T21:08:03.706Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "100.96.22.242:42036", "grpc.code": "OK", "grpc.call_duration": "475.889µs"} 2019-02-06 21:08:03.817 UTC [common.deliver] Handle -> WARN 017 Error reading from 100.96.22.242:42020: rpc error: code = Canceled desc = context canceled 2019-02-06 21:08:03.817 UTC [comm.grpc.server] 1 -> INFO 018 streaming call completed {"grpc.start_time": "2019-02-06T21:08:03.533Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "100.96.22.242:42020", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "283.871851ms"} ``` Here is my channel creation command ``` peer channel create -c mainchannel -f /etc/hyperledger/channels/mainchannel.tx --outputBlock /etc/hyperledger/channels/main.block -o orderer0-dev:7050 --tls --cafile /etc/hyperledger/orderer/orderers/orderer-dev.default.svc.cluster.local/tls/ca.crt ```

0xSEGFAULT (Wed, 06 Feb 2019 21:16:31 GMT):
The files are available on the path and they are correct. I've verified the paths

VitorSousaCode (Wed, 06 Feb 2019 22:14:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G9WCfQhxchjaXrbrN) @0xSEGFAULT @0xSEGFAULT i hope it can help: https://github.com/feitnomore/hyperledger-fabric-kubernetes

0xSEGFAULT (Wed, 06 Feb 2019 22:21:25 GMT):
@VitorSousaCode oh man thanks so much! I think this is exactly what I need

ThiagoFontes (Wed, 06 Feb 2019 23:52:39 GMT):
Has joined the channel.

AlbertoCarmona (Thu, 07 Feb 2019 00:15:47 GMT):
one question about chaincode, what happens if we do a putState with same values

AlbertoCarmona (Thu, 07 Feb 2019 00:16:10 GMT):
let's say we do putState('A',10) and then putState('A',20)

AlbertoCarmona (Thu, 07 Feb 2019 00:16:32 GMT):
I'm trying to think what is the best way for doing a unique identifier

AlbertoCarmona (Thu, 07 Feb 2019 00:18:41 GMT):
I guess that stub.getTxID is the easiest solution but queries will have to be done via a composite key

ygnr (Thu, 07 Feb 2019 01:03:51 GMT):
I am following `fabcar` example in `fabric-samples`. Is `enrollAdmin` or `enrollUser` basically same as when we create Admin and users from `crypto-config.yaml` file? If yes why is the structure on keys generated different in both? Why doesn't `enrollAdmin` or `enrollUser` doesn't generate client side tls certs?

val-samonte (Thu, 07 Feb 2019 03:00:39 GMT):
Has joined the channel.

ahmadraza (Thu, 07 Feb 2019 05:43:12 GMT):
hi All is there is any limit on creation of no. of assets? as i am adding assets to registry by assetRegistory.addAll(list). it generates timeout error when i passed list of 10000 assets

Sarath_Kumar (Thu, 07 Feb 2019 06:45:41 GMT):
Hi All, *peer channel fetch 0 genesis_block.pb -o orderer.example.com:7050 -c "mychannel" --tls --cafile $ORDERER_CA* while running this command throws an error *flag needs an argument --cafile*, how to fix this error? Any suggestion ?

Sarath_Kumar (Thu, 07 Feb 2019 06:45:41 GMT):
Hi All, *peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* while running this command throws an error *flag needs an argument --cafile*, how to fix this error? Any suggestion ?

hybridNeo (Thu, 07 Feb 2019 08:07:27 GMT):
https://medium.com/@rahulmahadev/how-to-deploy-and-test-system-chaincodes-on-hyperledger-fabric-effectively-84851dac651f

hybridNeo (Thu, 07 Feb 2019 08:08:50 GMT):
A blog post I wrote to explain how to deploy and test system chaincodes effectively. I have been working on a project which utilizes SCC and I felt a lot of stuff was not obvious from the documentation so I wrote this so that it can be helpful for anyone starting to work on this

Aniket.1 (Thu, 07 Feb 2019 08:49:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=88XPxXtvvCX7MuNpY) @dave.enyeart Thanks @dave.enyeart , I had visited this example and was trying to do it using NodeSDK and didn't get any related reference. Although i got it solved later on. Thanks again for your consideration.

Aniket.1 (Thu, 07 Feb 2019 08:49:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=88XPxXtvvCX7MuNpY) @dave.enyeart Thanks @dave.enyeart , I had visited this example and was trying to get the transient fields in plain text inside chaincode using NodeSDK and didn't get any related reference. Although i got it solved later on. Thanks again for your consideration.

Sarath_Kumar (Thu, 07 Feb 2019 09:58:49 GMT):
Hi All, What is the use of working_directory available in *docker-compose.yml* file? Any tutorials or explanations on options available in yml file.

Sarath_Kumar (Thu, 07 Feb 2019 09:58:49 GMT):
Hi All, What is the use of *working_directory* available in *docker-compose.yml* file? Any tutorials or explanations on options available in yml file.

AndresMartinezMelgar.itcl (Thu, 07 Feb 2019 09:59:16 GMT):
what is the function of fabric-tool?

alokkv (Thu, 07 Feb 2019 10:12:30 GMT):
hi friends.can any one help with migrating the ledgers from one server to another.

rodolfoleal (Thu, 07 Feb 2019 10:24:30 GMT):
Create the a peer on the other server, it will sync, update the anchor and leader peer if necessary.

rodolfoleal (Thu, 07 Feb 2019 10:24:47 GMT):
Than shut down the old one

rodolfoleal (Thu, 07 Feb 2019 10:27:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cj6YpnRyBG7DyP335) @Sarath_Kumar The options on the file are options of docker-compose, to know better about the environments variables of fabric look are core.yaml file.

Sarath_Kumar (Thu, 07 Feb 2019 10:40:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=88b94b10-677f-4701-be8b-9e72d0077cc5) @rodolfoleal I can't find core.yaml file anywhere in the fabric samples and in github also. According to this https://stackoverflow.com/a/46125469 core.yaml is packed into docker-compose file

knagware9 (Thu, 07 Feb 2019 10:44:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sA3YeStoZ4MDEjZjN) @Sarath_Kumar its present in peer container ,,

Sarath_Kumar (Thu, 07 Feb 2019 10:50:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tpmijGAfods8kwsob) @knagware9 Thanks , but my question is what is *working_directory*. if i use *docker exec -it bash* it will open the directory specified in *working_directory*. i am really confused why it is for.

knagware9 (Thu, 07 Feb 2019 11:10:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FfFsfkYynmekpQgvZ) @Sarath_Kumar then you need to change directory where that file exist..I dont remeber as of now ..like /etc/hyperledger..

pauljithink (Thu, 07 Feb 2019 11:16:36 GMT):
Does fabric supports indexing on events data fields like in Ethereum? I could not find a way to query the ledger data other than getHistoryForKey(), but that returns the entire data...

pauljithink (Thu, 07 Feb 2019 11:16:36 GMT):
Does fabric supports indexing on events data fields like in Ethereum? I could not find a way to query the ledger data other than getHistoryForKey(), but that returns the entire data...I was thinking if we can index data fields on events, then I can do the filtering based on it when fetching data

prashantsingh (Thu, 07 Feb 2019 11:19:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FfFsfkYynmekpQgvZ) @Sarath_Kumar working_directory is the place, as you correctly noticed already, where you get logged-in into the container. It is similar to ubuntu-logins, but as your "peer"-user is the root-login, you get to choose a place where you want to land once you are inside the container. Preferably this is also the place where you keep your files needed by peer for peer-specific files (.tx files) nee like anchor-peer-update, channel-creation and channel-join... You can set it to anything but imagine this, whenever you need to carry out those operations, you need to first navigate to that directory and do it. Waste of time when you can just land there.

smallant (Thu, 07 Feb 2019 11:29:12 GMT):
is there a property to change the transaction timeout? I raised my proposals timeout but i receive this error: java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction The chaincode is a bit heavy so it really takes sometime to do the actions

HaydenG (Thu, 07 Feb 2019 11:34:14 GMT):
Hi, I was hoping someone would be able to help me with channel creation using fabric go sdk. I am getting the following issue: `Orderer Server Status Code: (400) BAD_REQUEST. Description: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining` and on the orderer docker container I see the following: `Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity `

HaydenG (Thu, 07 Feb 2019 11:34:14 GMT):
Hi, I was hoping someone would be able to help me with channel creation using fabric go sdk. I am getting the following issue: `SendEnvelope failed: calling orderer 'localhost:7050' failed: Orderer Server Status Code: (403) FORBIDDEN. Description: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ` and on the orderer docker container I see the following: `Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity `. Is anyone able to help me? I have been stuck on this for a while and I'm not sure what I am doing wrong. Many thanks

Sarath_Kumar (Thu, 07 Feb 2019 11:37:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yj6mPJF9iMvRX5a9w) @prashantsingh Thanks for the explanation. :grinning:

Sarath_Kumar (Thu, 07 Feb 2019 11:37:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yj6mPJF9iMvRX5a9w) @prashantsingh Thanks for the explanation. :grinning: this is what i am expected

Sarath_Kumar (Thu, 07 Feb 2019 11:38:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BNgiiQ2MBhqXP2h2p) @knagware9 Ok i will change the paths accordingly. thanks

Sarath_Kumar (Thu, 07 Feb 2019 11:38:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BNgiiQ2MBhqXP2h2p) @knagware9 Ok i will change the paths accordingly. thanks:thumbsup:

knagware9 (Thu, 07 Feb 2019 11:45:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=udQuRXMJqtmikMjXJ) @smallant 1. first you can change the time out parameter there 2.> you can change the time out in node sdk code where you instantiating or invoking chaincode

smallant (Thu, 07 Feb 2019 11:47:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2qANteTsPTwyybGnC) @knagware9 currently using java sdk. My goal is really change the timeout parameter for all calls (the the proposal timeout). For each call the parameter is the -t right?

knagware9 (Thu, 07 Feb 2019 11:52:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Njmb8BzqFFgH6DPub) @smallant at what step you facing time out issue ?

smallant (Thu, 07 Feb 2019 11:54:20 GMT):
invoking the chaincode

smallant (Thu, 07 Feb 2019 11:54:28 GMT):
i know it works correctly

smallant (Thu, 07 Feb 2019 11:54:57 GMT):
I just change the volume of the amount of things i want to process and that error occurs

knagware9 (Thu, 07 Feb 2019 11:58:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wRfKjDnxh3zqwM7ww) @smallant ok then in the invoke chaincode java program, there will be one timeout paramter like node.js has ..let invokeEventPromise = new Promise((resolve, reject) => { let event_timeout = setTimeout(() => { let message = 'REQUEST_TIMEOUT:' + eh.getPeerAddr(); logger.error(message); eh.disconnect(); }, 300000);

knagware9 (Thu, 07 Feb 2019 11:59:28 GMT):
but I am not sure about java , how they handled

smallant (Thu, 07 Feb 2019 12:00:46 GMT):
ok

smallant (Thu, 07 Feb 2019 12:00:53 GMT):
tks for the help :)

rushikeshdolas (Thu, 07 Feb 2019 12:40:53 GMT):
Has joined the channel.

Sarath_Kumar (Thu, 07 Feb 2019 13:00:24 GMT):
Hi All, I am unable to fetch configuration using this command *peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA*

Sarath_Kumar (Thu, 07 Feb 2019 13:00:24 GMT):
Hi All, I am unable to fetch configuration using this command *peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* Shall i change the volume paths to some general like hyperledger/fabric instead of etc and opt

Sarath_Kumar (Thu, 07 Feb 2019 13:00:24 GMT):
Hi All, I am unable to fetch configuration using this command *peer channel fetch config config_block.pb -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* Shall i change the *volume paths* to some general like *hyperledger/fabric* instead of etc and opt?

Sarath_Kumar (Thu, 07 Feb 2019 13:00:57 GMT):

failed to create.PNG

DeepakDahiya (Thu, 07 Feb 2019 13:06:24 GMT):
Has joined the channel.

DeepakDahiya (Thu, 07 Feb 2019 13:06:40 GMT):
anyone online ?I need some help

smallant (Thu, 07 Feb 2019 13:52:47 GMT):
check your pem files are correct

smallant (Thu, 07 Feb 2019 13:53:01 GMT):
i got that error when i had a wrong pem file

Sarath_Kumar (Thu, 07 Feb 2019 13:56:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7yi7dqf5YeEgiF9Av) @smallant Ok i will check.

Simon_Perer (Thu, 07 Feb 2019 14:32:36 GMT):
Has joined the channel.

Simon_Perer (Thu, 07 Feb 2019 14:37:50 GMT):

Clipboard - February 7, 2019 5:36 PM

Simon_Perer (Thu, 07 Feb 2019 14:37:50 GMT):

Clipboard - February 7, 2019 5:36 PM

HaydenG (Thu, 07 Feb 2019 15:01:51 GMT):
Hi, I was hoping someone would be able to help me with channel creation using fabric go sdk. I am getting the following issue: `SendEnvelope failed: calling orderer 'localhost:7050' failed: Orderer Server Status Code: (403) FORBIDDEN. Description: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ` and on the orderer docker container I see the following: `Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity `. Is anyone able to help me? I have been stuck on this for a while and I'm not sure what I am doing wrong. Many thanks

HaydenG (Thu, 07 Feb 2019 15:01:51 GMT):
Hi, I was hoping someone would be able to help me with channel creation using fabric go sdk. I am getting the following issue: `SendEnvelope failed: calling orderer 'localhost:7050' failed: Orderer Server Status Code: (403) FORBIDDEN. Description: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` ` and on the orderer docker container I see the following: `Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity `. Is anyone able to help me? I have been stuck on this for a while and I'm not sure what I am doing wrong. Many thanks

HaydenG (Thu, 07 Feb 2019 15:01:51 GMT):
Hi, I was hoping someone would be able to help me with channel creation using fabric go sdk. I am getting the following issue: `SendEnvelope failed: calling orderer 'localhost:7050' failed: Orderer Server Status Code: (403) FORBIDDEN. Description: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied` and on the orderer docker container I see the following: `Principal deserialization failure (MSP org1.cvtracker.com is unknown) for identity `. Is anyone able to help me? I have been stuck on this for a while and I'm not sure what I am doing wrong. Many thanks

HaydenG (Thu, 07 Feb 2019 15:47:25 GMT):
Further information from the orderer docker logs `2019-02-07 15:00:16.345 UTC [cauthdsl] deduplicate -> ERRO 149 Principal deserialization failure (MSP cvtracker.com is unknown) for identity 0a0d6376747261636b65722e636f6d128a062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943456a43434162696741774942416749514133444f3662346472736a456b33464378506b694d44414b42676771686b6a4f50515144416a42744d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a45574d4251474131554543684d4e59335a30636d466a613256794c6d4e766254455a4d4263474131554541784d515932457559335a300a636d466a613256794c6d4e7662544165467730784f5441794d4463784e44497a4d444261467730794f5441794d4451784e44497a4d4442614d466f78437a414a0a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d52597746415944565151484577315459573467526e4a680a626d4e7063324e764d523477484159445651514445785676636d526c636d56794c6d4e3264484a685932746c6369356a623230775754415442676371686b6a4f0a5051494242676771686b6a4f50514d4242774e43414153474a4f366a4d704455646e745a77416b6c372b554b5a57503759444c356236576c51416d6b41577a440a54744159793843384439583070564b445269694646703875646d55373644555a72356b4b32567158314542526f303077537a414f42674e5648513842416638450a42414d434234417744415944565230544151482f424149774144417242674e5648534d454a44416967434238366f786e4b4f396a6a46624a36634c76337a576f0a52744455537a73555933656464584a39504543457a44414b42676771686b6a4f5051514441674e494144424641694541743279414f67523661745136336155580a7572484a2f6f6d6d4e7958646a785847784549634e57743257584d434942425770696667616757563638775032454443304d3559514a2b354e745838585063550a305a4444794265730a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14a 0xc4205bc198 gate 1549551616345575700 evaluation starts 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14b 0xc4205bc198 signed by 0 principal evaluation starts (used [false]) 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14c 0xc4205bc198 principal evaluation fails 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14d 0xc4205bc198 gate 1549551616345575700 evaluation fails 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14e Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14f == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 150 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 151 Signature set did not satisfy policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 152 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 153 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 154 Signature set did not satisfy policy /Channel/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 155 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2019-02-07 15:00:16.347 UTC [orderer/common/broadcast] Handle -> WARN 156 [channel: mychannel] Rejecting broadcast of config message from 192.168.96.1:56258 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

HaydenG (Thu, 07 Feb 2019 15:47:25 GMT):
Further information from the orderer docker logs `2019-02-07 15:00:16.345 UTC [cauthdsl] deduplicate -> ERRO 149 Principal deserialization failure (MSP cvtracker.com is unknown) for identity 0a0d6376747261636b65722e636f6d128a062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943456a43434162696741774942416749514133444f3662346472736a456b33464378506b694d44414b42676771686b6a4f50515144416a42744d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a45574d4251474131554543684d4e59335a30636d466a613256794c6d4e766254455a4d4263474131554541784d515932457559335a300a636d466a613256794c6d4e7662544165467730784f5441794d4463784e44497a4d444261467730794f5441794d4451784e44497a4d4442614d466f78437a414a0a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d52597746415944565151484577315459573467526e4a680a626d4e7063324e764d523477484159445651514445785676636d526c636d56794c6d4e3264484a685932746c6369356a623230775754415442676371686b6a4f0a5051494242676771686b6a4f50514d4242774e43414153474a4f366a4d704455646e745a77416b6c372b554b5a57503759444c356236576c51416d6b41577a440a54744159793843384439583070564b445269694646703875646d55373644555a72356b4b32567158314542526f303077537a414f42674e5648513842416638450a42414d434234417744415944565230544151482f424149774144417242674e5648534d454a44416967434238366f786e4b4f396a6a46624a36634c76337a576f0a52744455537a73555933656464584a39504543457a44414b42676771686b6a4f5051514441674e494144424641694541743279414f67523661745136336155580a7572484a2f6f6d6d4e7958646a785847784549634e57743257584d434942425770696667616757563638775032454443304d3559514a2b354e745838585063550a305a4444794265730a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14a 0xc4205bc198 gate 1549551616345575700 evaluation starts 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14b 0xc4205bc198 signed by 0 principal evaluation starts (used [false]) 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14c 0xc4205bc198 principal evaluation fails 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14d 0xc4205bc198 gate 1549551616345575700 evaluation fails 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14e Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14f == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 150 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 151 Signature set did not satisfy policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 152 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 153 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 154 Signature set did not satisfy policy /Channel/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 155 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2019-02-07 15:00:16.347 UTC [orderer/common/broadcast] Handle -> WARN 156 [channel: mychannel] Rejecting broadcast of config message from 192.168.96.1:56258 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

HaydenG (Thu, 07 Feb 2019 15:47:25 GMT):
Further information from the orderer docker logs `2019-02-07 15:00:16.345 UTC [cauthdsl] deduplicate -> ERRO 149 Principal deserialization failure (MSP cvtracker.com is unknown) for identity 0a0d6376747261636b65722e636f6d128a062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943456a43434162696741774942416749514133444f3662346472736a456b33464378506b694d44414b42676771686b6a4f50515144416a42744d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a45574d4251474131554543684d4e59335a30636d466a613256794c6d4e766254455a4d4263474131554541784d515932457559335a300a636d466a613256794c6d4e7662544165467730784f5441794d4463784e44497a4d444261467730794f5441794d4451784e44497a4d4442614d466f78437a414a0a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d52597746415944565151484577315459573467526e4a680a626d4e7063324e764d523477484159445651514445785676636d526c636d56794c6d4e3264484a685932746c6369356a623230775754415442676371686b6a4f0a5051494242676771686b6a4f50514d4242774e43414153474a4f366a4d704455646e745a77416b6c372b554b5a57503759444c356236576c51416d6b41577a440a54744159793843384439583070564b445269694646703875646d55373644555a72356b4b32567158314542526f303077537a414f42674e5648513842416638450a42414d434234417744415944565230544151482f424149774144417242674e5648534d454a44416967434238366f786e4b4f396a6a46624a36634c76337a576f0a52744455537a73555933656464584a39504543457a44414b42676771686b6a4f5051514441674e494144424641694541743279414f67523661745136336155580a7572484a2f6f6d6d4e7958646a785847784549634e57743257584d434942425770696667616757563638775032454443304d3559514a2b354e745838585063550a305a4444794265730a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14a 0xc4205bc198 gate 1549551616345575700 evaluation starts 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14b 0xc4205bc198 signed by 0 principal evaluation starts (used [false]) 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14c 0xc4205bc198 principal evaluation fails 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14d 0xc4205bc198 gate 1549551616345575700 evaluation fails 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14e Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14f == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 150 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 151 Signature set did not satisfy policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 152 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 153 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 154 Signature set did not satisfy policy /Channel/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 155 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2019-02-07 15:00:16.347 UTC [orderer/common/broadcast] Handle -> WARN 156 [channel: mychannel] Rejecting broadcast of config message from 192.168.96.1:56258 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

HaydenG (Thu, 07 Feb 2019 15:47:25 GMT):
Further information from the orderer docker logs ``` 2019-02-07 15:00:16.345 UTC [cauthdsl] deduplicate -> ERRO 149 Principal deserialization failure (MSP cvtracker.com is unknown) for identity 0a0d6376747261636b65722e636f6d128a062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943456a43434162696741774942416749514133444f3662346472736a456b33464378506b694d44414b42676771686b6a4f50515144416a42744d5173770a435159445651514745774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a790a5957356a61584e6a627a45574d4251474131554543684d4e59335a30636d466a613256794c6d4e766254455a4d4263474131554541784d515932457559335a300a636d466a613256794c6d4e7662544165467730784f5441794d4463784e44497a4d444261467730794f5441794d4451784e44497a4d4442614d466f78437a414a0a42674e5642415954416c56544d524d77455159445651514945777044595778705a6d3979626d6c684d52597746415944565151484577315459573467526e4a680a626d4e7063324e764d523477484159445651514445785676636d526c636d56794c6d4e3264484a685932746c6369356a623230775754415442676371686b6a4f0a5051494242676771686b6a4f50514d4242774e43414153474a4f366a4d704455646e745a77416b6c372b554b5a57503759444c356236576c51416d6b41577a440a54744159793843384439583070564b445269694646703875646d55373644555a72356b4b32567158314542526f303077537a414f42674e5648513842416638450a42414d434234417744415944565230544151482f424149774144417242674e5648534d454a44416967434238366f786e4b4f396a6a46624a36634c76337a576f0a52744455537a73555933656464584a39504543457a44414b42676771686b6a4f5051514441674e494144424641694541743279414f67523661745136336155580a7572484a2f6f6d6d4e7958646a785847784549634e57743257584d434942425770696667616757563638775032454443304d3559514a2b354e745838585063550a305a4444794265730a2d2d2d2d2d454e442043455254494649434154452d2d2d2d2d0a 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14a 0xc4205bc198 gate 1549551616345575700 evaluation starts 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14b 0xc4205bc198 signed by 0 principal evaluation starts (used [false]) 2019-02-07 15:00:16.345 UTC [cauthdsl] func2 -> DEBU 14c 0xc4205bc198 principal evaluation fails 2019-02-07 15:00:16.345 UTC [cauthdsl] func1 -> DEBU 14d 0xc4205bc198 gate 1549551616345575700 evaluation fails 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14e Signature set did not satisfy policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 14f == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererOrg/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 150 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 151 Signature set did not satisfy policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 152 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2019-02-07 15:00:16.346 UTC [policies] func1 -> DEBU 153 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers ] 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 154 Signature set did not satisfy policy /Channel/Writers 2019-02-07 15:00:16.346 UTC [policies] Evaluate -> DEBU 155 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2019-02-07 15:00:16.347 UTC [orderer/common/broadcast] Handle -> WARN 156 [channel: mychannel] Rejecting broadcast of config message from 192.168.96.1:56258 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ```

jeffgarratt (Thu, 07 Feb 2019 16:11:19 GMT):
@HaydenG this MSP is NOT found in the MSPs defined for the channel in the config

SethiSaab (Thu, 07 Feb 2019 17:32:26 GMT):

Screenshot from 2019-02-07 22-48-08.png

SethiSaab (Thu, 07 Feb 2019 17:32:32 GMT):
acing this issue while querying chaincode i have 2 orgs ADMIN1 and USER1 for org1 and ADMIN2 USER2 for ORG2 i deployed chaincode using admin1 and admin2 .... but when i am trying to publish something i am getting this error I have tried using both (ADMIN and USER)

zicozico (Thu, 07 Feb 2019 19:01:55 GMT):
Has joined the channel.

VitorSousaCode (Thu, 07 Feb 2019 19:03:34 GMT):
Does anyone had implemented a "revoke" feature using the fabric-sdk-node?

VitorSousaCode (Thu, 07 Feb 2019 19:03:58 GMT):
https://fabric-sdk-node.github.io/release-1.4/FabricCAClient.html - revoke

billd100 (Thu, 07 Feb 2019 19:31:48 GMT):
Has joined the channel.

himi64 (Thu, 07 Feb 2019 21:49:08 GMT):
Hi, does anyone have some guidance on how to optimize the configtx.yaml orderer configuration for maximum transactions per second? Thanks

himi64 (Thu, 07 Feb 2019 21:49:19 GMT):
In terms of batch size, timeout, etc.

govinda-attal (Thu, 07 Feb 2019 23:58:36 GMT):
hello all, Any examples on Unit tests with respect to Privacy collections using golang for chaincode implementation? Or please guide me a valid channel where I could post this question 🙂

alokkv (Fri, 08 Feb 2019 04:40:04 GMT):
hi friends,i have created a hyperleder network with v1.1 and created a peeradmin card.but when i tried to install chaincode with user:admin and secret:adminpw i am getting the following logs in peer.but the chain code works fine.but if i try to install another chanin code it is throwing error saying peer not respond. also what is this ACTIVATION_REQUIRED.can anyone help please its urgent The current identity, with the name 'admin' and the identifier '960b19fccaf908492c879671a74cce1ccab3cc99943a6b6a3b7def827742b9fc', must be activated (ACTIVATION_REQUIRED) 2019-02-01 07:55:01.839 UTC [chaincode] ExecuteChaincode -> ERRO 005 transaction returned with failure: Error: The current identity, with the name 'admin' and the identifier '960b19fccaf908492c879671a74cce1ccab3cc99943a6b6a3b7def827742b9fc', must be activated (ACTIVATION_REQUIRED) github.com/hyperledger/fabric/core/chaincode.Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/exectransaction.go:83 github.com/hyperledger/fabric/core/chaincode.ExecuteChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincodeexec.go:85 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:93 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:132 github.com/hyperledger/fabric/core/endorser.(*Endorser).simulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:265 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:491 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:31 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:112 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:781 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:981 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:551 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2337

FabricBeer (Fri, 08 Feb 2019 04:49:12 GMT):
hi everyone, I installed and started my network, on two machines and how can I test it whether they have same ledger and smartcontract(bna file)?

FabricBeer (Fri, 08 Feb 2019 04:49:12 GMT):
hi everyone, I installed and started my network on two machines and how can I test it whether they same ledger and smartcontract?

FabricBeer (Fri, 08 Feb 2019 04:49:12 GMT):
hi everyone, I installed and started my network, on two machines and how can I test it whether they have same ledger and smartcontract?

TharinduSandaruwan1 (Fri, 08 Feb 2019 04:49:47 GMT):
Cannot invoke transaction with the fabric-network package.It leaves me an error of `Error: PEM encoded certificate is required.`

TharinduSandaruwan1 (Fri, 08 Feb 2019 05:05:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WLQ2qoimZqAtZAqAh) @VitorSousaCode I Tried but it did not submit the transaction and it was failed with giving me and error like `Error: PEM encoded certificate is required`

dennymrh (Fri, 08 Feb 2019 05:06:50 GMT):
Has joined the channel.

dennymrh (Fri, 08 Feb 2019 05:08:23 GMT):
Hello, I tried Hyperledger Fabric tutorials. Now, I would like to learn/develop a blockchain app with someone or a group. Please feel free to message me

Sarath_Kumar (Fri, 08 Feb 2019 05:19:03 GMT):
Hi All, According to this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#convert-the-configuration-to-json-and-trim-it-down while executing this *configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json* it will produce a *config.json* file within the first network folder, but in my case the *config.json* is created inside my working_directory. How it generally works?

satyarth1 (Fri, 08 Feb 2019 05:28:39 GMT):
hello members my query is, which fabric sdk i preferred for developing api's in golang

ooharawork (Fri, 08 Feb 2019 07:15:55 GMT):
@Sarath_Kumar That part of the tutorial seems to assume that you have followed the whole tutorial from the top. In that case, Your current working directory should be within `first-network` folder. Actually as you're in somewhere else, you should go to `first-network` folder, bring `config.json` produced there, then go ahead.

Sarath_Kumar (Fri, 08 Feb 2019 07:23:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TTq5GabcSXvCaDLay) @ooharawork I am following the steps provided there. *docker exec -it cli bash* command is executed and set export two variables. then there is no where mentioned to go to the root directory to proceed further. so i continued the steps inside the cli container itself.

klkumar369 (Fri, 08 Feb 2019 07:27:24 GMT):
Hi everyone, I am getting the following error while joining the peers to channel. But when I check the paths, everything seems to be correct. I have checked the path in docker container also. Error: error getting endorser client for channel: failed to load config for PeerClient: unable to load peer.tls.rootcert.file: open /etc/hyperledger/fabric/tls/ca.crt: no such file or directory peer0.LocalNGO1 failed to join the channel, Retry after 3 seconds + peer channel join -b goodcharchannel.block + res=1 + set +x Appreciate your help!

ooharawork (Fri, 08 Feb 2019 07:32:28 GMT):
@Sarath_Kumar hmm, you're right, maybe you're not in first-network folder even if followed the document, so i'm not sure but maybe the description about folder was an error. Anyway now that you have produced config.json somewhere, I guess you can continue the rest of the tutorial. Have you observed any error so far?

Sarath_Kumar (Fri, 08 Feb 2019 07:34:56 GMT):

panic erro.PNG

ooharawork (Fri, 08 Feb 2019 07:39:14 GMT):
@Sarath_Kumar I have no idea ... I followed that tutorial before with error so the cause would be either a possible bug introduced in the recent versions or environment-dependen...

ooharawork (Fri, 08 Feb 2019 07:39:14 GMT):
@Sarath_Kumar I have no idea ... I finished that tutorial before with no error, so I guess the cause would be either a possible bug introduced in the recent versions or environment-dependent...

ooharawork (Fri, 08 Feb 2019 07:43:52 GMT):
@Sarath_Kumar One random idea... Does this produce `0` to the console? : `jq . modified_config.json > /dev/null ; echo $?`

ahmadraza (Fri, 08 Feb 2019 07:52:59 GMT):
hi All is there is any limit on creation of no. of assets? as i am adding assets to registry by assetRegistory.addAll(list). it generates timeout error when i passed list of 10000 assets

knagware9 (Fri, 08 Feb 2019 08:00:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TkLLfqQeQzz66JMYF) @klkumar369 check docker compose file , volume mounting is missing or wrong for the /etc/hyperledger/fabric/tls/ca.crt

ShefaliMittal (Fri, 08 Feb 2019 08:26:13 GMT):
Can anyone please tell me how do I listen to chaincode events using new fabric sdk ? Below is my chaincode invokation code - // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); //get the contract const contract = await createContract(gateway, userName, request); // Submit the specified transaction. const data = await contract.submitTransaction(request.fcn, ...request.args); console.log('Transaction has been submitted'); // Disconnect from the gateway. await gateway.disconnect();

klkumar369 (Fri, 08 Feb 2019 08:36:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bfvzTywyhXJxr6wYx) @knagware9 @knagware9 Thanks for your quick reply.. yes, I have the mounting. - ../crypto-config/peerOrganizations/localngo1.goodchar.com/peers/peer0.localngo1.goodchar.com/tls:/etc/hyperledger/fabric/tls

Sarath_Kumar (Fri, 08 Feb 2019 08:41:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JyFnfpscoyST7qfre) @ooharawork Yes it produced 0 in console.

VtpVlan-oo7 (Fri, 08 Feb 2019 08:48:28 GMT):
Has joined the channel.

VtpVlan-oo7 (Fri, 08 Feb 2019 08:48:41 GMT):
hi hyperledger-bot , VtpVlan-oo7 11:22 AM File Uploaded: Clipboard - February 8, 2019 11:23 AM i'm working on hyperledger fabric go sdk and follow https://github.com/hyperledger/fabric-sdk-go README.md when i'm going to make it then it shows error of- so what i'have to do to make it and also i'm not pretty sure hyperledger go sdk of Golang i can use for API's

VtpVlan-oo7 (Fri, 08 Feb 2019 08:48:41 GMT):
hi hyperledger-bot , i'm working on hyperledger fabric go sdk and follow https://github.com/hyperledger/fabric-sdk-go README.md when i'm going to make it then it shows error of- so what i'have to do to make it and also i'm not pretty sure hyperledger go sdk of Golang i can use for API's

VtpVlan-oo7 (Fri, 08 Feb 2019 08:49:37 GMT):

Clipboard - February 8, 2019 2:19 PM

Luxii (Fri, 08 Feb 2019 09:16:41 GMT):
why do i have to create new Identities after I docker-compose down my network?

Luxii (Fri, 08 Feb 2019 09:18:08 GMT):
Is there any way to persist those Identities ?

satyarth1 (Fri, 08 Feb 2019 09:26:14 GMT):
@VtpVlan-oo7 redo all step's again

sudhasakshi (Fri, 08 Feb 2019 10:39:34 GMT):
Hi Team, I am creating a channel I got Error: error unmarshaling envelope: unexpected EOF.........please help me with this error

AkhilKura (Fri, 08 Feb 2019 10:40:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gifoNG5n8P5WftaEZ) @sudhasakshi whats the command u used to create channel

AkhilKura (Fri, 08 Feb 2019 10:45:39 GMT):
have u made any changes in configtx.yaml file?

JayJong (Fri, 08 Feb 2019 11:11:19 GMT):
``` 2019-02-08 10:54:44.112 UTC [gossip/comm] GossipStream -> ERRO e9342 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity[] cannot be validated. No MSP found able to do that.``` Any1 faced this before?

JayJong (Fri, 08 Feb 2019 11:11:19 GMT):
``` 2019-02-08 10:54:44.112 UTC [gossip/comm] GossipStream -> ERRO e9342 Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity[] cannot be validated. No MSP found able to do that.``` Any1 faced this before?

JMIsham (Fri, 08 Feb 2019 11:19:08 GMT):
Has joined the channel.

JMIsham (Fri, 08 Feb 2019 11:20:11 GMT):
HI..I'm kind of new to hyper ledger fabric. I've been trying to understand some ground level concepts. M still not getting some things like whts the actual consensus algorithm is been used?? is it leader based one??

Sarath_Kumar (Fri, 08 Feb 2019 11:38:29 GMT):
Hi All, How to open a file available inside the cli container (working directory).

Daka 1 (Fri, 08 Feb 2019 12:10:07 GMT):
Hello, is there any video with explanation of the gossip protocol in Fabric ?

yacovm (Fri, 08 Feb 2019 12:17:13 GMT):
no

VitorSousaCode (Fri, 08 Feb 2019 12:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bxgw2ZGFNbX4aoM8h) @TharinduSandaruwan1 @TharinduSandaruwan1 in this request have you sent the enrollment_id or aki + serial ?

VitorSousaCode (Fri, 08 Feb 2019 12:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bxgw2ZGFNbX4aoM8h) @TharinduSandaruwan1 in this request have you sent the enrollment_id or aki + serial ?

ahmadraza (Fri, 08 Feb 2019 13:06:31 GMT):
does increase in block size of hyperledger composer configtx file increase the limit of assets creations?

JMIsham (Fri, 08 Feb 2019 13:07:05 GMT):
Can there be multiple ordering node for a channel =??

umair (Fri, 08 Feb 2019 13:11:54 GMT):
Has joined the channel.

wwithiam (Fri, 08 Feb 2019 16:28:49 GMT):
Has joined the channel.

Antimttr (Fri, 08 Feb 2019 17:28:23 GMT):
For the balance transfer token, how long do we have until that expires?

Antimttr (Fri, 08 Feb 2019 17:29:19 GMT):
i found the bit in code: `exp: Math.floor(Date.now() / 1000) + parseInt(hfc.getConfigSetting('jwt_expiretime'), 10),`

Antimttr (Fri, 08 Feb 2019 17:29:25 GMT):
but im not sure where that settting comes from

Antimttr (Fri, 08 Feb 2019 17:30:10 GMT):
ahh ok i found it

Antimttr (Fri, 08 Feb 2019 17:30:12 GMT):
looks like 10 hours

SJoshi7 (Fri, 08 Feb 2019 19:58:07 GMT):
anyone having a good understanding of working of fabric ? Please ping me. I need some help

yacovm (Fri, 08 Feb 2019 20:05:58 GMT):
@JMIsham yes

Rajatsharma (Fri, 08 Feb 2019 22:20:19 GMT):
I'm repeatedly facing this issue ```Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later```

Rajatsharma (Fri, 08 Feb 2019 22:20:34 GMT):
can anyone help me out with this ?

tsexplorer (Sat, 09 Feb 2019 05:44:14 GMT):
Has joined the channel.

tsexplorer (Sat, 09 Feb 2019 05:54:07 GMT):
Hello!! I am trying to run : https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html While running ./startFabric.sh javascript I get an error like this # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded ANyone had this problem?

ashufalcon (Sat, 09 Feb 2019 11:53:26 GMT):
hey how to run fabric-ca-client as registrar ? when i run fabric-ca-client identity list i get : GET /identities 403 42 "'freelancer' is not a registrar" so how can i run the command as registrar PS: freelancer is a one of client which i have created for testing

ashufalcon (Sat, 09 Feb 2019 11:59:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JNbiH25YBGurBDL4a) sorry i was in wrong directory... resolved my issue :)

DeepakTomar (Sat, 09 Feb 2019 16:10:10 GMT):
Has joined the channel.

developeroka (Sat, 09 Feb 2019 17:24:31 GMT):
Hi

developeroka (Sat, 09 Feb 2019 17:24:50 GMT):
is there anyone who has implemented chaincode in java ?

developeroka (Sat, 09 Feb 2019 17:25:34 GMT):
i mean the sacc.go file but in java language

SethiSaab (Sat, 09 Feb 2019 17:26:34 GMT):
@Rajatsharma Hi

au (Sat, 09 Feb 2019 19:53:10 GMT):
Has joined the channel.

levanto (Sat, 09 Feb 2019 21:04:37 GMT):
Has joined the channel.

levanto (Sat, 09 Feb 2019 21:04:42 GMT):
Hello. Anyone doing any project around token management in Fabric?

yacovm (Sat, 09 Feb 2019 21:21:07 GMT):
there is a token infrastructure feature being developed

levanto (Sat, 09 Feb 2019 21:42:56 GMT):
on implementing it on a use case i mean

Daka (Sat, 09 Feb 2019 23:58:30 GMT):
@yacovm But isn't the idea for Fabric to be tokenless ?

yacovm (Sun, 10 Feb 2019 00:11:29 GMT):
who's idea is that? @Daka

yacovm (Sun, 10 Feb 2019 00:11:49 GMT):
I think you're confused. The idea is to not have a built-in crypto-currency

yacovm (Sun, 10 Feb 2019 00:12:19 GMT):
No restriction on tokens.

haardikkk (Sun, 10 Feb 2019 05:19:09 GMT):
Has joined the channel.

ChetanGadgilwar (Sun, 10 Feb 2019 07:41:51 GMT):
I am getting this error for APIs HPM] Error occurred while trying to proxy request /api/Trader from localhost:4200 to http://localhost:4200 (ENOTFOUND) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Daka (Sun, 10 Feb 2019 07:58:43 GMT):
@yacovm I see, thanks.

ChinmayIngle (Sun, 10 Feb 2019 08:53:57 GMT):
Has joined the channel.

ChinmayIngle (Sun, 10 Feb 2019 11:42:41 GMT):
Hey can anyone share some resource for creating a fabric network using node sdk OR How to connect the node sdk with already created network, Thanks!

walmon (Sun, 10 Feb 2019 11:57:50 GMT):
You cannot create a new network just using the SDK @ChinmayIngle

walmon (Sun, 10 Feb 2019 11:58:31 GMT):
Check out https://github.com/worldsibu/hurley to create your network, then find the network profile in $HOME/hyperledger-fabric-network and use it in your SDK

ygnr (Sun, 10 Feb 2019 14:43:36 GMT):
Anyone came across this? ``` [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 { Error: Failed to connect before the deadline URL:grpcs://localhost:7051 at checkState (project/node_modules/fabric-client/node_modules/grpc/src/client.js:720:16) connectFailed: true } ``` Enabling TLS on peers give this error when I try to connect with peer. It works if I disable TLS. Any reasons?

NadaAyman (Sun, 10 Feb 2019 15:23:00 GMT):
Has joined the channel.

NadaAyman (Sun, 10 Feb 2019 15:23:36 GMT):
✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed Hi I am trying to run this command on ubuntu: composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna and I am getting this error: ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed could sb tell what do I need to check or how to fix this?

stg 4 (Sun, 10 Feb 2019 19:18:38 GMT):
Has joined the channel.

ChinmayIngle (Sun, 10 Feb 2019 19:22:46 GMT):
@walmon Thanks, i referred to the given link and created network with 3 organizations but how to connect this network with the node SDK ?

Rajatsharma (Sun, 10 Feb 2019 21:16:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AfMweBB8fRShtMS4d) @SethiSaab Hi

walmon (Sun, 10 Feb 2019 21:25:12 GMT):
Just use the SDK regularly with that config file I referenced

walmon (Sun, 10 Feb 2019 21:27:37 GMT):
https://fabric-sdk-node.github.io/tutorial-network-config.html

SanjeevKumarn (Mon, 11 Feb 2019 05:32:51 GMT):
Has joined the channel.

sudhasakshi (Mon, 11 Feb 2019 05:50:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HWbCrttTLcHHseb8g) @AkhilKura Hi, peer channel create -o orderer.example.com:7050 -c myc -f ./config/channel.tx i use these command to create channel

Rosan (Mon, 11 Feb 2019 06:22:23 GMT):
Hi all, Is it possible to promote an application user's role so that it would be able to do the chaincode operations (install and instantiate) like as admin user do? Thank you very much!

Switch2Logic (Mon, 11 Feb 2019 06:28:43 GMT):
Good day, has anyone successfully implemented an LDAP integration with the Fabric-CA Server? If so I need some assistance in making it work.

Aniket.1 (Mon, 11 Feb 2019 07:05:59 GMT):
Is there any timeline to introduce idemix in node SDK?

DeepaMotwani (Mon, 11 Feb 2019 07:07:25 GMT):
Hi, can we add channel dynamically to the existing fabric network?

ahmadraza (Mon, 11 Feb 2019 07:31:09 GMT):
I want to create POC where An investor have shares in multiple companies and i want to mantain ledger to keep the records of shares. currently i am using hyperledger composer but found these issues [I am adding list of assets to network. when i passed list of 1000, 2000 or even 5000 it added to the network successfully but when i passed 10000 assets list it gives timeout error. and even if i created assets in 2 3 requests and when number of assets is more than 10000 and i retrieve it by assetRegistory.getAll() it returned only 10000 assets even there are more than 10000 and if i try to retrieve single asset through assetRegistory.get(id) it gives individual asset.please help is there is any limit on number of assets or network connections to network? ] with it can some one suggest solution or help me.

ahmadraza (Mon, 11 Feb 2019 07:31:09 GMT):
I want to create POC where An investor have shares in multiple companies and i want to mantain ledger to keep the records of shares. currently i am using hyperledger composer but found these issues [I am adding list of assets to network. when i passed list of 1000, 2000 or even 5000 it added to the network successfully but when i passed 10000 assets list it gives timeout error. and even if i created assets in 2 3 requests and when number of assets is more than 10000 and i retrieve it by assetRegistory.getAll() it returned only 10000 assets even there are more than 10000 and if i try to retrieve single asset through assetRegistory.get(id) it gives individual asset.please help is there is any limit on number of assets or network connections to network? ] with it can some one suggest solution or help me. by some search i am find that the is limit in hyperledger fabric not in composer kindly help me in solving this problem>

Bentipe (Mon, 11 Feb 2019 07:53:46 GMT):
Hye guys, I have an error that is driving me crazy, when trying to install a channel I am giving this error: Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: SampleConsortium I dont get why as I am not referencing to SampleConsortium in any case, also the channel does not already exist, any help would be apreciatted, also If you need more Info I would be glad to provide

Bentipe (Mon, 11 Feb 2019 08:01:29 GMT):
If I take a look at the .tx generated for the channel I dont see any references to SampleConsortium eather

Bentipe (Mon, 11 Feb 2019 08:01:46 GMT):
May it be because I am using docker-compose?

Bentipe (Mon, 11 Feb 2019 08:15:57 GMT):
On the orderer log I get the following WARN: ``` Rejecting broadcast of config message from 172.18.0.3:57854 because of error:Unknown consortium name: SampleConsortium ```

Bentipe (Mon, 11 Feb 2019 08:28:18 GMT):
Hey, I see something weird, when throwing the channel install command it prints the following: ``` [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml ``` Why is printing a default configuration?

Bentipe (Mon, 11 Feb 2019 08:28:18 GMT):
Hey, I see something weird, when throwing the channel install command it prints the following: ``` [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml ``` Why is it using a default configuration?

bannik (Mon, 11 Feb 2019 09:13:16 GMT):
Has joined the channel.

mlucc (Mon, 11 Feb 2019 09:13:18 GMT):
hello, does anyone know how to know (by golang code) in which channel a chaincode is running?

bannik (Mon, 11 Feb 2019 09:13:35 GMT):
Hello guys, I have a really simple and a pretty dumb question

mlucc (Mon, 11 Feb 2019 09:13:36 GMT):
something like stub.CurrentChannelName()

bannik (Mon, 11 Feb 2019 09:14:28 GMT):
I have an ibm blockchain server to which I have locally connected a rest api and everything works great for me

bannik (Mon, 11 Feb 2019 09:14:49 GMT):
I want to take this and run it on a server so I can make api calls from a live app

bannik (Mon, 11 Feb 2019 09:15:04 GMT):
how the hell do I deploy my composer rest api

bannik (Mon, 11 Feb 2019 09:16:46 GMT):
should I just do the same thing I did on my maschine on a server through ssh or smth

Sarath_Kumar (Mon, 11 Feb 2019 09:34:59 GMT):
Hi All, I am facing an error while appending org3 config command executed : *jq -s '.[0] * {"channel_group":{"groups":{"Application":{"groups": {"Org3MSP":.[1]}}}}}' config.json ./channel-artifacts/org3.json > modified_config.json* command executed on *cli container* Error: *No such file or directory*

Sarath_Kumar (Mon, 11 Feb 2019 09:34:59 GMT):
Hi All, I am facing an error while appending org3 config command executed : "jq -s '.[0] * {"channel_group":{"groups":{"Application":{"groups": {"Org3MSP":.[1]}}}}}' config.json ./channel-artifacts/org3.json > modified_config.json" command executed on *cli container* Error: *No such file or directory*

tarun32 (Mon, 11 Feb 2019 10:10:15 GMT):
Hi, Does anyone came across the following error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: could not decode url: ChaincodeSpec's path/URL invalid If yes, could you please provide the solution.

tarun32 (Mon, 11 Feb 2019 10:10:15 GMT):
Hi, Does anyone came across the following error which is causing while instantiating chaincode: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: could not decode url: ChaincodeSpec's path/URL invalid If yes, could you please provide the solution.

tarun32 (Mon, 11 Feb 2019 10:10:15 GMT):
Hi, Does anyone came across the following error which is causing while instantiating chaincode: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: could not decode url: ChaincodeSpec's path/URL invalid If yes, could you please provide the solution.Thanks in Advance

fridtjon (Mon, 11 Feb 2019 10:57:35 GMT):
Has joined the channel.

JMIsham (Mon, 11 Feb 2019 11:50:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CEfvLZa785oxaRiFd) @yacovm in that case they agree on a common order based on Kafka consensus algorithm right??

yacovm (Mon, 11 Feb 2019 11:50:49 GMT):
i don't remember what i answered

JMIsham (Mon, 11 Feb 2019 11:54:50 GMT):
so I was asking about a channel having multiple ordering service.

JMIsham (Mon, 11 Feb 2019 11:56:06 GMT):
if a channel has multiple ordering service, how they all agree on a common order (whats the consensus algorithm used here?) is it mainly Kafka Consensus as mentioned in the documentation??

yacovm (Mon, 11 Feb 2019 11:57:46 GMT):
yeah through kafka

JMIsham (Mon, 11 Feb 2019 12:00:01 GMT):
Kafka ordering doesn't provide BTF as I know of(Correct me if m wrong). So can we use a different consensus implementation?? is there anything implemented already??

sudhasakshi (Mon, 11 Feb 2019 12:02:13 GMT):
HI Team, I am getting these error while creating channel panic: Unable to bootstrap orderer. Error reading genesis block file: open /etc/hyperledger/configtx/genesis.block: no such file or director

JulianSolarte (Mon, 11 Feb 2019 12:08:17 GMT):
Has joined the channel.

JulianSolarte (Mon, 11 Feb 2019 12:08:23 GMT):
I'm reading about Hyperledger Fabric documentation and I have some questions. What is the difference between between local MSP vs channel policy and global MSP vs network configuration, I know that MSP is used for mapping identity into roles and it define rights in different levels, but the channel and network policy do the same, so, how does Hyperledger works managing MSP and channel policy? What is the difference between use private data and chaincode namespaces, When I have private data, the data is encrypt and only avalaible for some organizations, but when I use chaincode namespace it create a different world state depends on chaincode, so I can use any of those techniques...Which one is better or does it the same function?

dave.enyeart (Mon, 11 Feb 2019 12:18:37 GMT):
@JulianSolarte When chaincode is instantiated on a channel, all channel members will receive the data in the chaincode namespace. When using private data, only a subset of channel members will receive the data in the chaincode's private data collection namespace, other channel members will receive hashes of the data only for validation purpose. For more details see the private data docs: https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html

dave.enyeart (Mon, 11 Feb 2019 12:22:06 GMT):
For the first question, I suggest you read the membership documentation and then come back with any remaining questions: https://hyperledger-fabric.readthedocs.io/en/latest/membership/membership.html

dave.enyeart (Mon, 11 Feb 2019 12:28:26 GMT):
@JMIsham Other consensus algorithms are in development, Raft early this year and a BFT option later this year.

JMIsham (Mon, 11 Feb 2019 12:31:24 GMT):
@dave.enyeart Great!! thanks for the answer. one more thing. Do u expect the same tps when raft is implemented?? since it sends so many messages across the peers

dave.enyeart (Mon, 11 Feb 2019 12:34:10 GMT):
@JMIsham performance of Raft will be analyzed next, but it is expected to be similar since there is only one message consented via Raft per block between orderers. Peers still receive blocks from one of the orderers via the same deliver service as when using Kafka.

JMIsham (Mon, 11 Feb 2019 12:35:30 GMT):
@developeroka so whats the average tps with a network of 20 ordering nodes??

ahmadraza (Mon, 11 Feb 2019 12:41:19 GMT):
can anyone please suggest me a perfect framework or tool for my use case. I have to make distributed ledger of shares of different companies. there may be 5000 companies and there another participant is investor. There may b many investors. Each company can have max of 6m shares which can be sale purchased by investors.?

dave.enyeart (Mon, 11 Feb 2019 12:51:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Pwa7nH4SbwQp2XJ42) @DeepaMotwani The first network tutorial walks through this step by step starting here: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-a-channel-configuration-transaction

Sarath_Kumar (Mon, 11 Feb 2019 12:59:19 GMT):
Hi All, I am facing an issue while sending an update call mentioned here https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update to update channel config. Error:*ordering service endpoint orderer.example.com is not valid or missing*

Sarath_Kumar (Mon, 11 Feb 2019 12:59:19 GMT):
Hi All, I am facing an issue while sending an update call mentioned here https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update to update channel config. Error:*ordering service endpoint orderer.example.com is not valid or missing* Command Executed : *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA*

Sarath_Kumar (Mon, 11 Feb 2019 12:59:19 GMT):
Hi All, I am facing an issue while sending an update call mentioned here https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update to update channel config. Error:*ordering service endpoint orderer.example.com is not valid or missing* Command Executed : *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com --tls --cafile $ORDERER_CA* If i use this command *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA* Error will be *orderer client failed to connect to orderer.example.com:7050 failed to create new connection : context deadline exceeded* *Note* : while fetching the configuration i have used this command *peer channel fetch config config_block.pb -o orderer.example.com -c $CHANNEL_NAME --tls --cafile $ORDERER_CA*

Sarath_Kumar (Mon, 11 Feb 2019 12:59:19 GMT):
Hi All, @dave.enyeart I am facing an issue while sending an update call mentioned here https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update to update channel config. Error:*ordering service endpoint orderer.example.com is not valid or missing* Command Executed : *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com --tls --cafile $ORDERER_CA* If i use this command *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA* Error will be *orderer client failed to connect to orderer.example.com:7050 failed to create new connection : context deadline exceeded* *Note* : while fetching the configuration i have used this command *peer channel fetch config config_block.pb -o orderer.example.com -c $CHANNEL_NAME --tls --cafile $ORDERER_CA*

Sarath_Kumar (Mon, 11 Feb 2019 12:59:19 GMT):
Hi All, I am facing an issue while sending an update call mentioned here https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update to update channel config. Error:*ordering service endpoint orderer.example.com is not valid or missing* Command Executed : *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com --tls --cafile $ORDERER_CA* If i use this command *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA* Error will be *orderer client failed to connect to orderer.example.com:7050 failed to create new connection : context deadline exceeded* *Note* : while fetching the configuration i have used this command *peer channel fetch config config_block.pb -o orderer.example.com -c $CHANNEL_NAME --tls --cafile $ORDERER_CA*

simsong (Mon, 11 Feb 2019 14:40:06 GMT):
Has joined the channel.

simsong (Mon, 11 Feb 2019 14:40:34 GMT):
Hi guys, I'm having a struggle with the Idemix Java SDK. The question I'm trying to answer is if the MspId gets set in the transactions when I use the Idemix. Thanks in advance! Hi guys, I'm having a struggle with the Idemix Java SDK. The question I'm trying to answer is if the MspId gets set in the transactions when I use the Idemix. Thanks in advance!

Bentipe (Mon, 11 Feb 2019 15:29:31 GMT):
Hey, Is there any guide on how to join a new orderer to a channel? I want to have 2 orderers in the same channel

pgdue (Mon, 11 Feb 2019 16:24:50 GMT):
Has joined the channel.

pgdue (Mon, 11 Feb 2019 16:25:38 GMT):
Hi, i'm testing Hypereldger Fabric but at the momento to enroll the admin i receive this error: Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed w ith error [Error: connect ECONNREFUSED 127.0.0.1:7054] How can i solve it? Thank's

klkumar369 (Mon, 11 Feb 2019 16:26:57 GMT):
Hi, while i am bringing up the network, I am trying to create Channel. The Channel creation is throwing the below error though I am specifying the correct path of mychannel.tx Error: channel create configuration tx file not found open /home/kumar/demo/.../.../channel-artifacts/mychannel.tx: no such file or directory Thanks for the suggestions!

klkumar369 (Mon, 11 Feb 2019 16:26:57 GMT):
Hi, while i am bringing up the network, I am trying to create Channel. The Channel creation is throwing the below error though I am specifying the correct path of mychannel.tx Error: channel create configuration tx file not found open /home/kumar/demo/.../.../channel-artifacts/mychannel.tx: no such file or directory Thanks for the help!

klkumar369 (Mon, 11 Feb 2019 16:26:57 GMT):
Hi, while i am bringing up the network, I am trying to create Channel. The Channel creation is throwing the below error though I am specifying the correct path of mychannel.tx Error: channel create configuration tx file not found open /home/kumar/demo/.../.../channel-artifacts/mychannel.tx: no such file or directory Thanks in advance for the help!

Minskyy (Mon, 11 Feb 2019 16:34:56 GMT):
Has joined the channel.

r_vishal95 (Mon, 11 Feb 2019 17:30:33 GMT):
Has joined the channel.

klkumar369 (Mon, 11 Feb 2019 18:09:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mcSpwfhXBBNqwxBHj) I am able to fix this issue by adding the below line in docker base file under volumes section "- ../channel-artifacts/channel.tx:/var/hyperledger/orderer/channel.tx"

klkumar369 (Mon, 11 Feb 2019 18:18:01 GMT):
I am able to create the channel. But while adding peers to channel, getting the below error. Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists) Appreciate your help!

Switch2Logic (Mon, 11 Feb 2019 19:03:41 GMT):
Hey, guys has anyone figured out how to correctly work with the Transient field? It seems like my chaincode is crashing on getTransient() or when I want to extract data from it...

Switch2Logic (Mon, 11 Feb 2019 19:04:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sK4JBHCCskYNJqdFW) @klkumar369 Are you running the example build your first network?

yacovm (Mon, 11 Feb 2019 19:09:43 GMT):
``` export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64) peer chaincode invoke -C mychannel -n marblesp -c '{"Args":["initMarble"]}' --transient "{\"marble\":\"$MARBLE\"}" ```

yacovm (Mon, 11 Feb 2019 19:09:52 GMT):
@Switch2Logic ^

yacovm (Mon, 11 Feb 2019 19:10:01 GMT):
from: https://github.com/hyperledger/fabric-samples/blob/8a458b5cdc3db33b133477ae55df6f0464d0f927/chaincode/marbles02_private/go/marbles_chaincode_private.go#L9

Switch2Logic (Mon, 11 Feb 2019 19:12:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w8fjppbfLdZxhELmQ) @yacovm Thank you I know about the marbles example... Call this from Fabric node sdk is providing an error...

Switch2Logic (Mon, 11 Feb 2019 19:12:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w8fjppbfLdZxhELmQ) @yacovm Thank you I know about the marbles example... Call this from Fabric node sdk is providing an error... I am familiar with the examples and documentation.

yacovm (Mon, 11 Feb 2019 19:14:50 GMT):
ah, I'd ask in #fabric-sdk-node

dave.enyeart (Mon, 11 Feb 2019 19:16:58 GMT):
note that the export in the latest docs is:

dave.enyeart (Mon, 11 Feb 2019 19:17:02 GMT):
`export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 | tr -d \\n)`

dave.enyeart (Mon, 11 Feb 2019 19:17:13 GMT):
tr to strip newlines

dave.enyeart (Mon, 11 Feb 2019 19:17:13 GMT):
tr to strip newlines that unix adds to base64 encoding

dave.enyeart (Mon, 11 Feb 2019 19:17:58 GMT):
i'm not following though... @Switch2Logic says the problem is on chaincode side, and there's a good example of chaincode side in marbles private data tutorial

kesavants (Mon, 11 Feb 2019 19:18:26 GMT):
If understand correctly each invocation of peer chaincode executes in its own thread. What is the best way to record the thread id in the peer logger to be able to troubleshoot one unit of execution

dave.enyeart (Mon, 11 Feb 2019 19:21:16 GMT):
@Switch2Logic I assume you have looked at node.js tutorial for private data?

dave.enyeart (Mon, 11 Feb 2019 19:21:21 GMT):
https://fabric-sdk-node.github.io/release-1.4/tutorial-private-data.html

Switch2Logic (Mon, 11 Feb 2019 19:22:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F3RYYFTJ45woDSG4Y) It could be the way I load the data from Fabric node sdk or the way I am extracting on the chaincode side. Also in go when I hover over getTransient it says not implemented... Wich makes me think the go shim needs to be updated or something...

dave.enyeart (Mon, 11 Feb 2019 19:22:15 GMT):
it appears that doesn't line up with the marbles02 private data chaincode however

dave.enyeart (Mon, 11 Feb 2019 19:22:15 GMT):
it appears that tutorial doesn't line up with the marbles02 private data chaincode however

Switch2Logic (Mon, 11 Feb 2019 19:23:01 GMT):
Yes I am running 1.4 and doesn't seem to be working...

dave.enyeart (Mon, 11 Feb 2019 19:23:19 GMT):
go shim supports getTransient(), this work:

dave.enyeart (Mon, 11 Feb 2019 19:23:19 GMT):
go shim supports GetTransient(), this work:

dave.enyeart (Mon, 11 Feb 2019 19:23:19 GMT):
go shim supports GetTransient(), this works:

dave.enyeart (Mon, 11 Feb 2019 19:23:21 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/marbles02_private/go/marbles_chaincode_private.go#L197

Switch2Logic (Mon, 11 Feb 2019 19:27:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z75uCtRzwiQyCkiGu) @dave.enyeart I have followed the documentation and just changed the key names and values... Power is out here so cant send my code... Thank you for trying to assist but pointing to one example does not really help...

Switch2Logic (Mon, 11 Feb 2019 19:27:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z75uCtRzwiQyCkiGu) @dave.enyeart I have followed the documentation and just changed the key names and values... Power is out here so cant send my code... Thank you for trying to assist but pointing to one example does not really help... Many of these examples dont always work out of the box many variables and missing key things also version conflicts... So thats why I asked if some has gotten there own version working... And not the example marbles...

Switch2Logic (Mon, 11 Feb 2019 19:27:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z75uCtRzwiQyCkiGu) @dave.enyeart I have followed the documentation and just changed the key names and values... Power is out here so cant send my code... Thank you for trying to assist but pointing to one example does not really help... Many of these examples dont always work out of the box many variables and missing key things also version conflicts... So thats why I asked if some has gotten their own version working... And not the example marbles...

edisinovcic (Mon, 11 Feb 2019 20:03:23 GMT):
Hi guys on instantiate i got:: "TypeError: contractClass is not a constructor at ChaincodeFromContract._resolveContractImplementations (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/chaincodefromcontract.js:152:30)" This is log of the dev-peer0... that starts to run when instantiate is runned. Install command has successfully passed.

pchochu (Mon, 11 Feb 2019 20:50:10 GMT):
helo guys. do u know whats the difference between these two sites? https://openblockchain.readthedocs.io https://hyperledger-fabric.readthedocs.io

yacovm (Mon, 11 Feb 2019 20:51:30 GMT):
the open blockchain is for fabric 0.6

yacovm (Mon, 11 Feb 2019 20:51:36 GMT):
no longer in development

nhong (Mon, 11 Feb 2019 21:56:04 GMT):
Has joined the channel.

nhong (Mon, 11 Feb 2019 21:57:09 GMT):
hi there, how do I set a default value for an array? in model definition I can set things like o String aString default = "x", how do I set things like o String[] aStringArray default = ["a", "b"]?

nhong (Mon, 11 Feb 2019 21:57:10 GMT):
thanks

klkumar369 (Tue, 12 Feb 2019 01:39:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dPfxXnMPL2CZHd5DY) @Switch2Logic I am building a new network similarly to first network to get hands on.

klkumar369 (Tue, 12 Feb 2019 01:39:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dPfxXnMPL2CZHd5DY) @Switch2Logic I am building a new network similarly to first network to get hands on. I am using fabric 1.3 version.

TBdori (Tue, 12 Feb 2019 02:19:14 GMT):
Use case question : what's the best blockchain technology to handle Supply chain rebate process ?

bricakeld (Tue, 12 Feb 2019 03:47:50 GMT):
Has joined the channel.

Switch2Logic (Tue, 12 Feb 2019 04:24:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d2nsAcAR5cLRzMH5L) @klkumar369 Did you remove all the old containers/networks/images before you started new network... Some time you just start from old container/volume and it gives you problems. Just a starting point make sure its clean. Before you start

Switch2Logic (Tue, 12 Feb 2019 04:26:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f52va7nivMuMEX42Q) @TBdori Not sure about rebate... Hyperledger Sawthooth is wat comes to mind

klkumar369 (Tue, 12 Feb 2019 04:53:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RhkhBd8Qwyv3bRhS8) @Switch2Logic Yes, I am sure I have removed all the containers and images. I checked using "docker ps" command and observed it clears all the containers when I down the network. Also, I removed all the docker images and restarted the network. So the network downloaded the necessary images on its own.

klkumar369 (Tue, 12 Feb 2019 04:53:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RhkhBd8Qwyv3bRhS8) @Switch2Logic Yes, I am sure I have removed all the containers and images. I checked using "docker ps" command and observed it clears all the containers when I down the network. Also, I removed all the docker images and restarted the network. So the network downloaded the necessary images on its own.

Switch2Logic (Tue, 12 Feb 2019 04:55:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mNXEtiLpREZGhdNjC) @klkumar369 Just making sure should run docker ps -a to remove dead containers too.. Also the volumes.

Switch2Logic (Tue, 12 Feb 2019 04:55:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mNXEtiLpREZGhdNjC) @klkumar369 Just making sure should run docker ps -a to see dead containers. They should be removed too. Also the volumes.

Switch2Logic (Tue, 12 Feb 2019 04:55:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mNXEtiLpREZGhdNjC) @klkumar369 Just making sure should run docker ps -a to see dead containers. They should be removed too. Also the volumes. I have countless errors before just from not clearing all containers before I start.

klkumar369 (Tue, 12 Feb 2019 05:01:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=icLKNEswRrXkfW2DS) @Switch2Logic Sure, THank you! I'll try removing the volumes too. I am wondering, what if these situations arrive in production? I presume we shouldn't remove the images, containers and volumes in production.

Switch2Logic (Tue, 12 Feb 2019 05:04:32 GMT):
The Hyperledger fabric images should stay... and you remove the network containers and chaincode images. Then restart that peer and it will download what it needs from other peers once online again

Switch2Logic (Tue, 12 Feb 2019 05:04:32 GMT):
The Hyperledger fabric images should stay... and you remove the network containers and chaincode images. Then restart that peer and it will download what it needs from other peers once online again. Updating of chaincode and so on...

Switch2Logic (Tue, 12 Feb 2019 05:04:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r2ts82ftE9WPXbDcM) @klkumar369 The Hyperledger fabric images should stay... and you remove the network containers and chaincode images. Then restart that peer and it will download what it needs from other peers once online again. Updating of chaincode and so on...

Switch2Logic (Tue, 12 Feb 2019 05:04:32 GMT):
The Hyperledger fabric images should stay... and you remove the network containers and chaincode images. Then restart that peer and it will download what it needs from other peers once online again. Updating of chaincode and so on... As long as one peer stays online you will beable to to get all the blockchain data back up after a single server crash...

klkumar369 (Tue, 12 Feb 2019 05:10:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oWdHuTgnMKsyEHMLG) @Switch2Logic I agree with you. Is there anyway to check how many peers added to the channel? In my case, when I try to add my first peer itself I get the LedgerID already exists error.

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ShY7cYBFQRDotbr8e) @klkumar369 Can I see your directory stucture... There is one other thing that happens some times if you mount like the peers data locally it reads its own file system on your host machine... I have seen this happen as well... I am just like a systematic debugger... Start from bottom up. Otherwise we spend ours at top for no reason...

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mSjY9z3CkX9WcRtqG) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ShY7cYBFQRDotbr8e) @klkumar369 Can I see your directory stucture... There is one other thing that happens some times if you mount like the peers data locally it reads its own file system on your host machine... I have seen this happen as well... I am just like a systematic debugger... Start from bottom up. Otherwise we spend ours at top for no reason... You can check if a peer is already on a channel by : peer channel list

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z75uCtRzwiQyCkiGu) @dave.enyeart ``` ``` This is the solution for node js. Its the base64 that was missing.

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
This is the solution for node js. Its the base64 that was missing. ``` var buff = Buffer.from(JSON.stringify({"patientID":"o21","patientName":"Foo","patientSurname":"Bar","patientFileURL":"Transient completed"})).toString("base64"); ```

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
This is the solution for node js. Its the base64 that was missing. ``` var buff = Buffer.from(JSON.stringify({"patientID":"o21","patientName":"Foo","patientSurname":"Bar","patientFileURL":"Transient completed"})).toString("base64"); const transient_data = { 'patient_details': buff, }; ```

Switch2Logic (Tue, 12 Feb 2019 05:15:35 GMT):
This is the solution for node js. Its the base64 that was missing. ``` var buff = Buffer.from(JSON.stringify({"patientID":"o21","patientName":"Foo","patientSurname":"Bar","patientFileURL":"Transient completed"})).toString("base64"); const transient_data = { 'patient_details': buff, }; ```

Switch2Logic (Tue, 12 Feb 2019 05:27:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ShY7cYBFQRDotbr8e) @klkumar369 Can I see your directory structure... If you mount the peer fs to local machine then it could be reading old files... Those need to be deleted too. I like to work from the bottom up systematically. I normally go into a peer and run peer channel list... To see list of connected channels

klkumar369 (Tue, 12 Feb 2019 05:40:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cRbgbttrrc658K7X9) @Switch2Logic peer channel list gives only the channel name. NOt the peers in it. $ docker exec -it cli bash peer channel list Channels peers has joined: mychannel This is my one of the peers mounting. volumes: - /var/run/:/host/var/run/ - ../crypto-config/peerOrganizations/gc.goodchar.com/peers/peer0.gc.goodchar.com/msp:/etc/hyperledger/fabric/msp - ../crypto-config/peerOrganizations/gc.goodchar.com/peers/peer0.gc.goodchar.com/tls:/etc/hyperledger/fabric/tls - peer0.gc.goodchar.com:/var/hyperledger/production

Switch2Logic (Tue, 12 Feb 2019 05:44:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rLMEoBaMJBaDf46g6) @klkumar369 peer0.gc.goodchar.com:/var/hyperledger/production -> Clear this locally

Switch2Logic (Tue, 12 Feb 2019 05:44:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rLMEoBaMJBaDf46g6) @klkumar369 peer0.gc.goodchar.com:/var/hyperledger/production -> Clear this locally before restarting network.

klkumar369 (Tue, 12 Feb 2019 06:00:25 GMT):
I see peer0 has joined the channel and peer1 did not. So I force removed peer0.gc.goodchar.com and restarted. Still have the same issue.

klkumar369 (Tue, 12 Feb 2019 06:00:25 GMT):
I see peer0 has joined the channel and peer1 did not. So I force removed peer0.gc.goodchar.com and restarted. Still have the same issue. @Switch2Logic

rohan.deshmukh (Tue, 12 Feb 2019 06:48:44 GMT):
Has joined the channel.

rohan.deshmukh (Tue, 12 Feb 2019 06:49:21 GMT):
Hello All,

rohan.deshmukh (Tue, 12 Feb 2019 06:50:51 GMT):
I have doubt regarding migration. I want to migrate my ledger from one cloud service provider to other. What would be the best way of doing so? I have considered executing all transaction on new cloud provider but due to a constraint that's not possible. Please suggest. Thanks.

Switch2Logic (Tue, 12 Feb 2019 06:54:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CZBvYPNgjW6Xzywfk) @klkumar369 Are you running scripts to join a channel?

sudhasakshi (Tue, 12 Feb 2019 07:10:26 GMT):
Hi Team, while creating channel Error: error unmarshaling Envelope: unexpected EOF

klkumar369 (Tue, 12 Feb 2019 07:13:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3ymPZK6kSoZhuhyTp) @Switch2Logic Yes.. after creating the channel, I am executing the following scripts. docker exec cli peer channel join -b mychannel.block # Adding peer0 docker exec -e "CORE_PEER_LOCALMSPID=GCMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/gc.goodchar.com/users/Admin@gc.goodchar.com/msp" -e "CORE_PEER_ADDRESS=peer0.gc.goodchar.com:7051" cli peer channel join -b mychannel.block # Adding peer1 docker exec -e "CORE_PEER_LOCALMSPID=GCMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/gc.goodchar.com/users/Admin@gc.goodchar.com/msp" -e "CORE_PEER_ADDRESS=peer1.gc.goodchar.com:7051" cli peer channel join -b mychannel.block

Switch2Logic (Tue, 12 Feb 2019 07:23:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iRRYaAv87aaw7MxuR) @klkumar369 Awww yea you need to fecth the block first... I would also advise you not to use scripts until you know what you are doing... I suggest doing these operations manually first from CLI of peer... Please check this repo for achieving this... https://github.com/Switch2Logic/first-fabric-network-setup -> if you find it useful please star the repo...

Switch2Logic (Tue, 12 Feb 2019 07:23:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iRRYaAv87aaw7MxuR) @klkumar369 Awww yea you need to fecth the block first... I would also advise you not to use scripts until you know what you are doing... I suggest doing these operations manually first from CLI of peer... Please check this repo for achieving this Step9... https://github.com/Switch2Logic/first-fabric-network-setup -> if you find it useful please star the repo...

Switch2Logic (Tue, 12 Feb 2019 07:23:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iRRYaAv87aaw7MxuR) @klkumar369 Awww yea you need to fecth the block first... I would also advise you not to use scripts until you know what you are doing... I suggest doing these operations manually first from CLI of peer... Please check this repo for achieving this Step9... https://github.com/Switch2Logic/first-fabric-network-setup -> if you find it useful please star the repo... Peer1 does not have the block created from the channel creation so you need to fetch it...

pgdue (Tue, 12 Feb 2019 08:22:26 GMT):
Hi, i have this error: "Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed w ith error [Error: connect ECONNREFUSED 127.0.0.1:7054]" enrolling the admin of the network.... How can i fix it? Thank's

Sarath_Kumar (Tue, 12 Feb 2019 08:34:14 GMT):
Hi @Switch2Logic, I have a doubt and i already posted it yesterday. i am trying to add a new organisation and followed this https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update for channel creation i have used this command *docker exec peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c composerchannel -f /hyperledger/configtx/composer-channel.tx* and for fetching configuration i have used this command *peer channel fetch config config_block.pb -o orderer.example.com -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* similarly for update channel config *peer channel fetch 0 mychannel.block -o orderer.example.com -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* Actual doubt: when to use *orderer.example.com* and *orderer.example.com:7050*

pumicerD (Tue, 12 Feb 2019 08:40:49 GMT):
Has left the channel.

pumicerD (Tue, 12 Feb 2019 08:41:11 GMT):
Has joined the channel.

Rajatsharma (Tue, 12 Feb 2019 10:40:40 GMT):
Has anyone used `GetQueryResultWithPagination()` to fetch some records and delete it. I just needed some code fro reference.

Rajatsharma (Tue, 12 Feb 2019 10:40:40 GMT):
Has anyone used `GetQueryResultWithPagination()` to fetch some records and delete it. I just needed some code for reference.

Rajatsharma (Tue, 12 Feb 2019 10:50:05 GMT):
I'm getting this error ```[9bc7874acb927ff4bbadcae376182115c3fc7f066c29b55774082c5e6e92772b] Received ERROR. Payload: DEL_STATE failed: transaction ID: 9bc7874acb927ff4bbadcae376182115c3fc7f066c29b55774082c5e6e92772b: txid [9bc7874acb927ff4bbadcae376182115c3fc7f066c29b55774082c5e6e92772b]: Transaction has already performed a paginated query. Writes are not allowed```

Rajatsharma (Tue, 12 Feb 2019 10:50:30 GMT):
Could anyone suggest me a way to delete bulk records in fabric.

Aniket.1 (Tue, 12 Feb 2019 10:57:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HaQxg5DS6ZbMGjZS3) @pgdue Make sure your fabric CA is running at 127.0.0.1:7054

kartik.sharma (Tue, 12 Feb 2019 11:02:51 GMT):
Has joined the channel.

duy3991 (Tue, 12 Feb 2019 11:10:15 GMT):
Has joined the channel.

duy3991 (Tue, 12 Feb 2019 11:10:37 GMT):
hi guys please help me on this ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline Response from attempted peer comms was an error: Error: Failed to connect before the deadline Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed thanks!!

Rajatsharma (Tue, 12 Feb 2019 11:21:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wNGq6vXd9B5m8S8An) Preferably >10000

SanjeevKumarn (Tue, 12 Feb 2019 11:25:56 GMT):
@pgdue kindly use docker ps and see ca is up and running

pgdue (Tue, 12 Feb 2019 11:26:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YmY7rP5Dhew2GKXHc) @Aniket.1 @Aniket.1 thank's i solve it and i run my first project in local on my pc... Now how can i configure it on a server? Is there a guide? Prerequisites are the same? Thank's a lot.

pgdue (Tue, 12 Feb 2019 11:28:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7cWnPpyCmhrJoqi57) @SanjeevKumarn Thank's i fix it use the ip provide by docker instead of localhost

Aniket.1 (Tue, 12 Feb 2019 11:29:19 GMT):
Hope it can help. https://hyperledger-fabric-ca.readthedocs.io/en/latest/ @pgdue

pgdue (Tue, 12 Feb 2019 11:37:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MBtdL4gidQ3Nfgrp6) @Aniket.1 Thank's a lot

Sarath_Kumar (Tue, 12 Feb 2019 11:47:31 GMT):

grpc error.PNG

ashlinSajan (Tue, 12 Feb 2019 11:49:43 GMT):
What is the maximum number of users that can be enrolled in an organisation ?

jlcs (Tue, 12 Feb 2019 12:13:32 GMT):
Hello, I'm having trouble with the n-of endorsement policy. In particular, I'm using a 3-of policy with 4 deployed peers in the channel. I use a custom manager to communicate with the network through the node SDK. A particular operation over the chaincode (with writes) works fine, but another always fails with an ENDORSEMENT_POLICY_FAILURE. Reading the debug logs in the peer, it appears to validate the signature of the first endorsement, but the other 3 endorsements have invalid signatures. Nonetheless, I print the following ``` for(let res of results[0]) {console.log("=====> ", this._channel.verifyProposalResponse(res as ProposalResponse)); } ``` to verify the signatures, and the output are four `true`s. If I use a 1-of policy, everything works. If it weren't because calling the same chaincode with different arguments (the function) works, I would suspect that the signatures are indeed invalid and the SDK fails. If you need more info, please mention me and I will upload. Thanks

jlcs (Tue, 12 Feb 2019 12:29:14 GMT):
Hello, I'm having trouble with the n-of endorsement policy. In particular, I'm using a 3-of policy with 4 deployed peers in the channel. I use a custom manager to communicate with the network through the node SDK. A particular operation over the chaincode (with writes) works fine, but another always fails with an ENDORSEMENT_POLICY_FAILURE. Reading the debug logs in the peer, it appears to validate the signature of the first endorsement, but the other 3 endorsements have invalid signatures. Nonetheless, I print the following ``` for(let res of results[0]) { console.log("=====> ", this._channel.verifyProposalResponse(res as ProposalResponse)); } /* Prints: =====> true =====> true =====> true =====> true */ ``` to verify the signatures, and the output are four `true`s. If I use a 1-of policy, everything works. If it weren't because calling the same chaincode with different arguments (the function) works, I would suspect that the signatures are indeed invalid and the SDK fails.

jlcs (Tue, 12 Feb 2019 12:29:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KNfbh6TctMJka5y5v) The DEBUG logs of one of the peers shows (only partial logs for clarity): * For the successful endorsement: ``` [36m2019-02-12 10:15:15.556 UTC [committer.txvalidator] Validate -> DEBU 13193 [0m [rrb] START Block Validation for block [6] [36m2019-02-12 10:15:15.556 UTC [protoutils] checkSignatureFromCreator -> DEBU 1319c [0m creator is valid [36m2019-02-12 10:15:15.558 UTC [protoutils] validateEndorserTransaction -> DEBU 131a2 [0m validateEndorserTransaction info: signature header is valid [36m2019-02-12 10:15:15.559 UTC [cauthdsl] func2 -> DEBU 131b0 [0m 0xc003527480 signed by 0 principal evaluation starts (used [false false false false]) [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131b1 [0m 0xc003527480 processing identity 0 with bytes of a997a0 [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131b2 [0m 0xc003527480 principal matched by identity 0 [36m2019-02-12 10:15:15.560 UTC [msp.identity] Verify -> DEBU 131b4 [0m Verify: digest = ... [36m2019-02-12 10:15:15.560 UTC [msp.identity] Verify -> DEBU 131b5 [0m Verify: sig = ... [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131bc [0m 0xc003527480 principal evaluation succeeds for identity 0 [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131be [0m 0xc003527480 signed by 1 principal evaluation starts (used [true false false false]) [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131c0 [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131c2 [0m 0xc003527480 principal matched by identity 1 [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cc [0m 0xc003527480 principal evaluation succeeds for identity 1 [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cd [0m 0xc003527480 signed by 2 principal evaluation starts (used [true true false false]) [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131ce [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cf [0m 0xc003527480 skipping identity 1 because it has already been used [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131d1 [0m 0xc003527480 principal matched by identity 2 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d4 [0m 0xc003527480 principal evaluation succeeds for identity 2 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d5 [0m 0xc003527480 signed by 3 principal evaluation starts (used [true true true false]) [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d6 [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d7 [0m 0xc003527480 skipping identity 1 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d8 [0m 0xc003527480 skipping identity 2 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131da [0m 0xc003527480 principal matched by identity 3 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131dd [0m 0xc003527480 principal evaluation succeeds for identity 3 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func1 -> DEBU 131de [0m 0xc003527480 gate 1549966515559216071 evaluation succeeds [36m2019-02-12 10:15:15.563 UTC [vscc] Validate -> DEBU 131df [0m block 6, namespace: *****, tx 0 validation results is: ```

jlcs (Tue, 12 Feb 2019 12:29:41 GMT):
The DEBUG logs of one of the peers shows (only partial logs for clarity): * For the successful endorsement: ``` [36m2019-02-12 10:15:15.556 UTC [committer.txvalidator] Validate -> DEBU 13193 [0m [rrb] START Block Validation for block [6] [36m2019-02-12 10:15:15.556 UTC [protoutils] checkSignatureFromCreator -> DEBU 1319c [0m creator is valid [36m2019-02-12 10:15:15.558 UTC [protoutils] validateEndorserTransaction -> DEBU 131a2 [0m validateEndorserTransaction info: signature header is valid [36m2019-02-12 10:15:15.559 UTC [cauthdsl] func2 -> DEBU 131b0 [0m 0xc003527480 signed by 0 principal evaluation starts (used [false false false false]) [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131b1 [0m 0xc003527480 processing identity 0 with bytes of a997a0 [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131b2 [0m 0xc003527480 principal matched by identity 0 [36m2019-02-12 10:15:15.560 UTC [msp.identity] Verify -> DEBU 131b4 [0m Verify: digest = ... [36m2019-02-12 10:15:15.560 UTC [msp.identity] Verify -> DEBU 131b5 [0m Verify: sig = ... [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131bc [0m 0xc003527480 principal evaluation succeeds for identity 0 [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131be [0m 0xc003527480 signed by 1 principal evaluation starts (used [true false false false]) [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131c0 [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.560 UTC [cauthdsl] func2 -> DEBU 131c2 [0m 0xc003527480 principal matched by identity 1 [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cc [0m 0xc003527480 principal evaluation succeeds for identity 1 [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cd [0m 0xc003527480 signed by 2 principal evaluation starts (used [true true false false]) [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131ce [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131cf [0m 0xc003527480 skipping identity 1 because it has already been used [36m2019-02-12 10:15:15.561 UTC [cauthdsl] func2 -> DEBU 131d1 [0m 0xc003527480 principal matched by identity 2 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d4 [0m 0xc003527480 principal evaluation succeeds for identity 2 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d5 [0m 0xc003527480 signed by 3 principal evaluation starts (used [true true true false]) [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d6 [0m 0xc003527480 skipping identity 0 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d7 [0m 0xc003527480 skipping identity 1 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131d8 [0m 0xc003527480 skipping identity 2 because it has already been used [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131da [0m 0xc003527480 principal matched by identity 3 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func2 -> DEBU 131dd [0m 0xc003527480 principal evaluation succeeds for identity 3 [36m2019-02-12 10:15:15.562 UTC [cauthdsl] func1 -> DEBU 131de [0m 0xc003527480 gate 1549966515559216071 evaluation succeeds [36m2019-02-12 10:15:15.563 UTC [vscc] Validate -> DEBU 131df [0m block 6, namespace: *****, tx 0 validation results is: ```

jlcs (Tue, 12 Feb 2019 12:31:12 GMT):
* For the failing endorsement: ``` [36m2019-02-12 10:32:12.473 UTC [cauthdsl] func2 -> DEBU 7aa3d [0m 0xc0031a0a40 signed by 0 principal evaluation starts (used [false false false false]) [36m2019-02-12 10:32:12.473 UTC [cauthdsl] func2 -> DEBU 7aa3f [0m 0xc0031a0a40 principal matched by identity 0 [36m2019-02-12 10:32:12.473 UTC [msp.identity] Verify -> DEBU 7aa40 [0m Verify: digest = ... [36m2019-02-12 10:32:12.473 UTC [msp.identity] Verify -> DEBU 7aa41 [0m Verify: sig = ... [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa42 [0m 0xc0031a0a40 principal evaluation succeeds for identity 0 [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa43 [0m 0xc0031a0a40 signed by 1 principal evaluation starts (used [true false false false]) [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa44 [0m 0xc0031a0a40 skipping identity 0 because it has already been used [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa45 [0m 0xc0031a0a40 processing identity 1 with bytes of a997a0 [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa46 [0m 0xc0031a0a40 principal matched by identity 1 [36m2019-02-12 10:32:12.474 UTC [msp.identity] Verify -> DEBU 7aa47 [0m Verify: digest = ... [36m2019-02-12 10:32:12.474 UTC [msp.identity] Verify -> DEBU 7aa48 [0m Verify: sig = ... [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa49 [0m 0xc0031a0a40 signature for identity 1 is invalid: The signature is invalid [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4a [0m 0xc0031a0a40 processing identity 2 with bytes of a997a0 [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4b [0m 0xc0031a0a40 identity 2 does not satisfy principal: the identity is a member of a different MSP (expected *******MSP, got ***********MSP) [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4c [0m 0xc0031a0a40 processing identity 3 with bytes of a997a0 [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4d [0m 0xc0031a0a40 identity 3 does not satisfy principal: the identity is a member of a different MSP (expected *******MSP, got *************MSP) [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4e [0m 0xc0031a0a40 principal evaluation fails [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa4f [0m 0xc0031a0a40 signed by 2 principal evaluation starts (used [true false false false]) [36m2019-02-12 10:32:12.474 UTC [cauthdsl] func2 -> DEBU 7aa50 [0m 0xc0031a0a40 skipping identity 0 because it has already been used ... [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa53 [0m 0xc0031a0a40 processing identity 2 with bytes of a997a0 [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa54 [0m 0xc0031a0a40 principal matched by identity 2 [36m2019-02-12 10:32:12.475 UTC [msp.identity] Verify -> DEBU 7aa55 [0m Verify: digest = ... [36m2019-02-12 10:32:12.475 UTC [msp.identity] Verify -> DEBU 7aa56 [0m Verify: sig = ... [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa57 [0m 0xc0031a0a40 signature for identity 2 is invalid: The signature is invalid [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa58 [0m 0xc0031a0a40 processing identity 3 with bytes of a997a0 [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa59 [0m 0xc0031a0a40 identity 3 does not satisfy principal: the identity is a member of a different MSP (expected ***********MSP, got *************MSP) [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa5a [0m 0xc0031a0a40 principal evaluation fails [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa5b [0m 0xc0031a0a40 signed by 3 principal evaluation starts (used [true false false false]) [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa5c [0m 0xc0031a0a40 skipping identity 0 because it has already been used ... [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa61 [0m 0xc0031a0a40 processing identity 3 with bytes of a997a0 [36m2019-02-12 10:32:12.475 UTC [cauthdsl] func2 -> DEBU 7aa62 [0m 0xc0031a0a40 principal matched by identity 3 [36m2019-02-12 10:32:12.475 UTC [msp.identity] Verify -> DEBU 7aa63 [0m Verify: digest = ... [36m2019-02-12 10:32:12.475 UTC [msp.identity] Verify -> DEBU 7aa64 [0m Verify: sig = ... [36m2019-02-12 10:32:12.476 UTC [cauthdsl] func2 -> DEBU 7aa65 [0m 0xc0031a0a40 signature for identity 3 is invalid: The signature is invalid [36m2019-02-12 10:32:12.476 UTC [cauthdsl] func2 -> DEBU 7aa66 [0m 0xc0031a0a40 principal evaluation fails [36m2019-02-12 10:32:12.476 UTC [cauthdsl] func1 -> DEBU 7aa67 [0m 0xc0031a0a40 gate 1549967532473433662 evaluation fails [31m2019-02-12 10:32:12.476 UTC [vscc] Validate -> ERRO 7aa68 [0m VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode **** in tx 7:0 failed: signature set did not satisfy policy ```

jlcs (Tue, 12 Feb 2019 12:31:35 GMT):
Anywhere else I could look for debugging info? Thanks

klkumar369 (Tue, 12 Feb 2019 12:42:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KL3uJakPuFti2Z7ua) @Switch2Logic Appreciate your help! I followed the steps as in the link provided, but running through errors. Below are the steps. $ docker exec -it cli bash export CORE_PEER_ADDRESS=peer0.gc.goodchar.com:7051 peer channel fetch 0 mychannel.block --channelID mychannel --orderer orderer.goodchar.com:7050 Error: error receiving: rpc error: code = Unavailable desc = transport is closing

Switch2Logic (Tue, 12 Feb 2019 13:04:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h8jhrXahBtcvukAc3) @klkumar369 First create the channel with peer 0... Then peer 1 fetches the genesis block for the channel...

Switch2Logic (Tue, 12 Feb 2019 13:04:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kgkY6DvB4MRPjbqxD) [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h8jhrXahBtcvukAc3) @klkumar369 First create the channel with peer 0... Then peer 1 fetches the genesis block for the channel... For each peer you add to the existing channel you have to fetch the genesis block for that channel before they can join...

Switch2Logic (Tue, 12 Feb 2019 13:09:49 GMT):
See this what is missing from docs... Running these complex scripts don't teach anyone how fabric work... Too many loose things first learn without the scripts then write your own later. By basically just coding what you would manually normally type into the CLI....

Switch2Logic (Tue, 12 Feb 2019 13:09:49 GMT):
See this what is missing from docs... Running these complex scripts don't teach anyone how fabric work... Too many loose things first learn without the scripts then write your own later. By basically just coding what you would manually normally type into the CLI... Running Scripts blindly is not a plan!

Switch2Logic (Tue, 12 Feb 2019 13:09:49 GMT):
See this what is missing from docs... Running these complex scripts don't teach anyone how fabric works... Too many loose things first learn without the scripts then write your own later. By basically just coding what you would manually normally type into the CLI... Running Scripts blindly is not a plan!

klkumar369 (Tue, 12 Feb 2019 13:15:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kgkY6DvB4MRPjbqxD) @Switch2Logic Thank you. I think this is what I am missing. and is not very clear in the docs as well. I'll try executing them and see what's happening in debug mode.

Switch2Logic (Tue, 12 Feb 2019 13:18:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Qv6m7erKYm7w6qKqX) @klkumar369 Yes, I know. I ripped everything apart line for line and figured out how to setup Hyperldegr Fabric component by component... The docs are not Noob friendly... Like there is too many things going on like need a simple set and walk you through those scripts are crazy to debug if you don't know Hyperledger Fabric...

Switch2Logic (Tue, 12 Feb 2019 13:21:29 GMT):
I just don't have time at the moment to document as I am on a tight schedule with masters...

Switch2Logic (Tue, 12 Feb 2019 13:25:23 GMT):
Good day, I am trying to setup OpenLDAP to work with Fabric-CA version 1.4.0. I am having trouble to enroll the admin. Any ideas on what the problem might be? The command I am running -> fabric-ca-client enroll -u http://cn=admin:admin@localhost:7054 The log on the fabric-ca side -> ```2019/02/06 11:07:35 [DEBUG] Getting user 'cn=admin' 2019/02/06 11:07:35 [DEBUG] Searching for user 'cn=admin' using new connection 2019/02/06 11:07:35 [DEBUG] Connecting to LDAP server over TCP 2019/02/06 11:07:35 [DEBUG] Binding to the LDAP server as admin user cn=admin,dc=example,dc=org 2019/02/06 11:07:35 [INFO] 127.0.0.1:36228 POST /enroll 401 23 "Failed to get user: LDAP search failure; search request: &{BaseDN:dc=example,dc=org Scope:2 DerefAliases:0 SizeLimit:0 TimeLimit:0 TypesOnly:false Filter:(cn=cn=admin)  Attributes:[uid member] Controls:[]}: LDAP Result Code 201 "": ldap: finished compiling filter with extra at end:  "``` The log of the LDAP side->```5c5abff7 conn=1052 fd=12 ACCEPT from IP=10.0.0.34:47132 (IP=0.0.0.0:389) 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" method=128 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" mech=SIMPLE ssf=0 5c5abff7 conn=1052 op=0 RESULT tag=97 err=0 text= 5c5abff7 conn=1052 fd=12 closed (connection lost)``` fabric-ca-server-config.yaml file ->``` ldap: # Enables or disables the LDAP client (default: false) enabled: true # The URL of the LDAP server url: ldap://cn=admin,dc=example,dc=org:admin@example.org:389/dc=example,dc=org userfilter: (cn=%s)  tls: certfiles: client: certfile: keyfile: attribute: names: ['cn','member'] converters: - name: hf.Revoker value: attr('cn') =~ "revoker" maps: groups: - name: value: ```

Switch2Logic (Tue, 12 Feb 2019 13:25:23 GMT):
Good day, I am trying to setup OpenLDAP to work with Fabric-CA version 1.4.0. I am having trouble to enroll the admin. Any ideas on what the problem might be? The command I am running -> fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 The log on the fabric-ca side -> ```2019/02/06 11:07:35 [DEBUG] Getting user 'cn=admin' 2019/02/06 11:07:35 [DEBUG] Searching for user 'cn=admin' using new connection 2019/02/06 11:07:35 [DEBUG] Connecting to LDAP server over TCP 2019/02/06 11:07:35 [DEBUG] Binding to the LDAP server as admin user cn=admin,dc=example,dc=org 2019/02/06 11:07:35 [INFO] 127.0.0.1:36228 POST /enroll 401 23 "Failed to get user: LDAP search failure; search request: &{BaseDN:dc=example,dc=org Scope:2 DerefAliases:0 SizeLimit:0 TimeLimit:0 TypesOnly:false Filter:(cn=cn=admin)  Attributes:[uid member] Controls:[]}: LDAP Result Code 201 "": ldap: finished compiling filter with extra at end:  "``` The log of the LDAP side->```5c5abff7 conn=1052 fd=12 ACCEPT from IP=10.0.0.34:47132 (IP=0.0.0.0:389) 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" method=128 5c5abff7 conn=1052 op=0 BIND dn="cn=admin,dc=example,dc=org" mech=SIMPLE ssf=0 5c5abff7 conn=1052 op=0 RESULT tag=97 err=0 text= 5c5abff7 conn=1052 fd=12 closed (connection lost)``` fabric-ca-server-config.yaml file ->``` ldap: # Enables or disables the LDAP client (default: false) enabled: true # The URL of the LDAP server url: ldap://cn=admin,dc=example,dc=org:admin@example.org:389/dc=example,dc=org userfilter: (cn=%s)  tls: certfiles: client: certfile: keyfile: attribute: names: ['cn','member'] converters: - name: hf.Revoker value: attr('cn') =~ "revoker" maps: groups: - name: value: ```

jayzonewhite (Tue, 12 Feb 2019 14:40:15 GMT):
Has joined the channel.

pchochu (Tue, 12 Feb 2019 15:07:14 GMT):
Hello guys. To generate certificates in tutorials, cryptogen is used. But this is not a good option for production. For production it is recommended to use for example fabricCA. Is there any tutorial, how to generate certs using this tool? I mean, anything but official documentation?

mlucc (Tue, 12 Feb 2019 15:14:33 GMT):
May I be lucky today and someone can help me with this error: `[E] [asm_amd64.s:573] Failed to query: Transaction processing for endorser [0.0.0.0:11051]: Chaincode status Code: (500) UNKNOWN. Description: failed to execute transaction e6759096e9b41905e33e514ea9f72e112e60e28c9f29b22c3d27ac840eddf003: error sending: timeout expired while executing transaction `

mlucc (Tue, 12 Feb 2019 15:16:30 GMT):
why could this be happening?

mlucc (Tue, 12 Feb 2019 15:16:44 GMT):
I'm trying to get by id sth that should be written in the ledger

GuillaumeCisco (Tue, 12 Feb 2019 15:35:13 GMT):
@pchochu We plan to make formations for this if you'd be interested. We spent a lot of time making it works for our company

EoghanR (Tue, 12 Feb 2019 15:48:09 GMT):
Has joined the channel.

dave.enyeart (Tue, 12 Feb 2019 16:19:36 GMT):
@pchochu @GuillaumeCisco I know that @skarim is working on such documentation to contribute to Fabric docs. I suggest you collaborate on #fabric-ca ... please highlight what you think is needed in such doc.

dave.enyeart (Tue, 12 Feb 2019 16:19:36 GMT):
@pchochu @GuillaumeCisco I know that @skarim is working on such documentation to contribute to Fabric docs. I suggest you collaborate on #fabric-ca ... please highlight what you think is needed in such doc, and post over in #fabric-ca

peters (Tue, 12 Feb 2019 16:26:28 GMT):
Hi did anyone ever faced this problem My chaincode invoke runs ok but the result of the operation isn't storred I'm using chaincode_example02.go The value of A and B isn't stored ~ `peer chaincode query -C mychannel -n test -c '{"Args":["query","a"]}' 100 peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n test -c '{"Args":["invoke","a","b","10"]}'

peters (Tue, 12 Feb 2019 16:26:55 GMT):
`2019-02-12 16:26:31.103 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 04f Chaincode invoke successful. result: status:200 peer chaincode query -C mychannel -n test -c '{"Args":["query","a"]}' 100`

peters (Tue, 12 Feb 2019 16:27:32 GMT):
All 4 perrs in 2 orgs are running and are connected to the same channel

peters (Tue, 12 Feb 2019 16:28:06 GMT):
Also I configured the anchor peers

peters (Tue, 12 Feb 2019 16:29:09 GMT):
When I start the same chaincode with policy -P "AND ('Org1MSP.peer')" instead of -P "AND ('Org1MSP.peer','Org2MSP.peer')" it works ok

peters (Tue, 12 Feb 2019 16:29:20 GMT):
Any ideas where to look ?

dave.enyeart (Tue, 12 Feb 2019 16:53:32 GMT):
@peters by default an invoke only goes to one peer for endorsement. If you require two orgs in your endorsement policy, then invoking on one peer is insufficient and the transaction will get invalidated (you can see the invalidation in the peer log). If you want an endorsement policy of two orgs, you'll have to send the invoke to two peers, as seen in the example at https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#invoke (set two --peerAddresses)

peters (Tue, 12 Feb 2019 17:03:27 GMT):
It was exactly it

peters (Tue, 12 Feb 2019 17:03:37 GMT):
Thanks for great explanation

GuillaumeCisco (Tue, 12 Feb 2019 17:11:27 GMT):
how do you invoke on multiple peers ? several invoke commands ?

Antimttr (Tue, 12 Feb 2019 17:20:37 GMT):
wow so my docker has been online for about a week

Antimttr (Tue, 12 Feb 2019 17:20:44 GMT):
and it already chewed up 54gbs in space

Antimttr (Tue, 12 Feb 2019 17:20:51 GMT):
just running hte balance-transfer example

Antimttr (Tue, 12 Feb 2019 17:21:01 GMT):
is there any way to get an idea of why it would do that?

Antimttr (Tue, 12 Feb 2019 17:21:10 GMT):
perhaps its just logs from all the p2p chatter?

Antimttr (Tue, 12 Feb 2019 17:26:27 GMT):
yes

Antimttr (Tue, 12 Feb 2019 17:26:30 GMT):
its all logs

Antimttr (Tue, 12 Feb 2019 17:26:33 GMT):
12gb log file

Antimttr (Tue, 12 Feb 2019 17:26:59 GMT):
got to be a way to setup logging in the docker so it doesnt just overflow liek this

Antimttr (Tue, 12 Feb 2019 17:30:31 GMT):
https://stackoverflow.com/questions/52987068/kafka-logs-huge-size-with-hyperledger-fabric-on-docker-on-ec2

Antimttr (Tue, 12 Feb 2019 17:30:35 GMT):
apparently im not the only one

saketkmr (Tue, 12 Feb 2019 17:39:36 GMT):
We can find the size of Docker through "docker info" but how can we get the size of blockchain network ??

Antimttr (Tue, 12 Feb 2019 17:45:44 GMT):
its funny docker system df didnt report the huge log files

Antimttr (Tue, 12 Feb 2019 17:46:01 GMT):
they're in the docker /var dirs but not reported as part of the docker image sizes

peters (Tue, 12 Feb 2019 17:53:46 GMT):
Can you open bash inside docker, go to directory where you store the blockchain and just count it's size ?

Antimttr (Tue, 12 Feb 2019 18:17:12 GMT):
isnt the blockchain stored in a db?

LucaPerico (Tue, 12 Feb 2019 23:00:37 GMT):
Has joined the channel.

LucaPerico (Tue, 12 Feb 2019 23:00:43 GMT):
Hi Guys. I'am trying to start a fabric blockchain with 2 peers. I use `fabric 1.4` with composer `v0.20.6`. The network sometimes start, sometimes fail with this error: ``` 2019-02-12 22:50:26.546 UTC [vscc] deduplicateIdentity -> WARN 036 Ignoring duplicated identity, Mspid: QohashMSP, pem: -----BEGIN CERTIFICATE----- MIICNzCCAd2gAwIBAgIRAPPuYOGABK3IDLL7snqMKLUwCgYIKoZIzj0EAwIwezEL MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG cmFuY2lzY28xHTAbBgNVBAoTFHFvaGFzaC5xb3N0b2RpYW4ubmV0MSAwHgYDVQQD ExdjYS5xb2hhc2gucW9zdG9kaWFuLm5ldDAeFw0xOTAyMTIyMjQxMzBaFw0yOTAy MDkyMjQxMzBaMHAxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw FAYDVQQHEw1TYW4gRnJhbmNpc2NvMQ8wDQYDVQQLEwZjbGllbnQxIzAhBgNVBAMM GkFkbWluQHFvaGFzaC5xb3N0b2RpYW4ubmV0MFkwEwYHKoZIzj0CAQYIKoZIzj0D AQcDQgAEN02qbPvuooUtPIR52ETS9hmQA0D0o9B+bfRk7ttnte1CT5gXb7Aokv6I z+L84/38GfNYPT7hJxlU56NR4d+cWaNNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud EwEB/wQCMAAwKwYDVR0jBCQwIoAgDhVyn6fBYlczcmNQhJUqpo41biRq02AWaQuR BabqQZcwCgYIKoZIzj0EAwIDSAAwRQIhAKrWPuc7f8rEBToy9OUGiiC0AoH2dY8g o6Df/4+z4MXYAiAgQLL+lzdUrw1M1aQ7LGrE8+CKeHiWW8/gaIA5y3CaxQ== -----END CERTIFICATE----- 2019-02-12 22:50:26.546 UTC [vscc] Validate -> WARN 037 Endorsement policy failure for transaction txid=a12bf868da4790361f220167440a1d6c0dad1c972e8e56cd9bc2d7c8a6b8a301, err: signature set did not satisfy policy 2019-02-12 22:50:26.546 UTC [committer/txvalidator] validateTx -> ERRO 038 VSCCValidateTx for transaction txId = a12bf868da4790361f220167440a1d6c0dad1c972e8e56cd9bc2d7c8a6b8a301 returned error: Endorsement policy evaluation failure might be caused by duplicated identities 2019-02-12 22:50:26.546 UTC [committer/txvalidator] Validate -> INFO 039 [composerchannel] Validated block [1] in 1ms 2019-02-12 22:50:26.547 UTC [valimpl] preprocessProtoBlock -> WARN 03a Channel [composerchannel]: Block [1] Transaction index [0] TxId [a12bf868da4790361f220167440a1d6c0dad1c972e8e56cd9bc2d7c8a6b8a301] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] 2019-02-12 22:50:26.564 UTC [kvledger] CommitWithPvtData -> INFO 03b [composerchannel] Committed block [1] with 1 transaction(s) in 17ms (state_validation=0ms block_commit=8ms state_commit=7ms) ``` when it start, I can get assets and participants in the blockchain, but if I try to submit a transaction, it fails with the same error

zicozico (Tue, 12 Feb 2019 23:16:34 GMT):
Hi guys, anyone knows if there is a way of grabbing a generated CRL and updating the MSP folder or configuration block in a network using hyperledger node sdk? I am trying to revoke a certificate, generate a CRL and then updating the configuration blocks, and is this last part that I am unsure on how to proceed. Any help would be appreciated.

YanLIU0822 (Wed, 13 Feb 2019 02:36:32 GMT):
hey does someone know how to improve the TPS

bricakeld (Wed, 13 Feb 2019 04:13:21 GMT):
hi all, may I know if anyone has any guide or more concrete resources for removing an org from a channel? The tutorial suggests that removing an org is possible but does not show any steps to do so...

dinoradulovic (Wed, 13 Feb 2019 04:18:37 GMT):
Has joined the channel.

AkhilKura (Wed, 13 Feb 2019 04:42:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rb3z6xbwR2zWb3DwW) @duy3991 this error occurs when your crypto-config file is not same in the nodes your are connecting . so copy the crypto-config folder which was generated by 1st node onto the 2nd

konetichandra (Wed, 13 Feb 2019 06:02:43 GMT):
Hi i have a quick question. No default password set on couch DB in Hyperledger deployment. So in a security aspect we need to set the password and that password has to set in Hyperleder configurations. Can you help us out where we can configure this password

SatoshiNishishita (Wed, 13 Feb 2019 08:07:18 GMT):
Has joined the channel.

konetichandra (Wed, 13 Feb 2019 10:11:56 GMT):
Hi i have a quick question. No default password set on couch DB in Hyperledger deployment. So in a security aspect we need to set the password and that password has to set in Hyperleder configurations. Can you help us out where we can configure this password

jlcs (Wed, 13 Feb 2019 10:59:51 GMT):
In the docker compose for couch you will find these env variables for the couch db services: ``` # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ```

jlcs (Wed, 13 Feb 2019 10:59:51 GMT):
In the docker compose for couch you will find these env variables for the couch db services: ``` # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ``` And for the peers: ``` # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= ```

jlcs (Wed, 13 Feb 2019 10:59:51 GMT):
@konetichandra In the docker compose for couch you will find these env variables for the couch db services: ``` # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER= - COUCHDB_PASSWORD= ``` And for the peers: ``` # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= ```

AndresMartinezMelgar.itcl (Wed, 13 Feb 2019 11:22:07 GMT):
Has anyone managed to raise a network hyperledger fabric together with Kubernetes?

sanket1211 (Wed, 13 Feb 2019 11:46:18 GMT):

Screenshot from 2019-02-13 17-13-11.png

epezhman (Wed, 13 Feb 2019 12:55:05 GMT):
Hi all, I have a problem with building Fabric V1.4.0. I checkout a branch from tag v1.4.0 do a ´make dist-clean all´ on a MacOS Mojave. I get the following error. Any idea what it is causing this? (it build alright on the latest commit of master branch). I also have gnu-tar 1.31 installed. thanks

epezhman (Wed, 13 Feb 2019 12:55:39 GMT):

build-v1.4.0.png

Aniket.1 (Wed, 13 Feb 2019 13:18:46 GMT):
Is there any timeline decided for the inclusion of idemix in Node SDK and Node.js Chaincode? Anyone aware about this

glennd (Wed, 13 Feb 2019 14:02:27 GMT):
Has joined the channel.

Antimttr (Wed, 13 Feb 2019 16:28:27 GMT):
@Aniket.1 i've asked several times included on the dev conference

Antimttr (Wed, 13 Feb 2019 16:28:27 GMT):
@Aniket.1 i've asked several times including on the dev conference call

Antimttr (Wed, 13 Feb 2019 16:28:36 GMT):
there seems to be no motivation or timeline for it

Antimttr (Wed, 13 Feb 2019 16:28:43 GMT):
which is really lame cuz who wants to use java if they have to

Antimttr (Wed, 13 Feb 2019 16:28:43 GMT):
which is really lame cuz who wants to use java if they don't have to

kevinkbc (Wed, 13 Feb 2019 18:07:04 GMT):
What is the variable BatchTimeout for? "# Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s" - from the configtx.yaml

Daka (Wed, 13 Feb 2019 20:57:24 GMT):
@kevinkbc after 2s whatever transactions you have created will be batched and given to the orderer

Daka (Wed, 13 Feb 2019 20:58:37 GMT):
and it will wait for the next, or it will give them to the orderer (if I remember correctly ) if you have more than 100 transactions in those 2 seconds, that is, if you are having the default configuration

glennd (Wed, 13 Feb 2019 21:20:24 GMT):
Hi. I have a quick question: Is it possible to bring up an orderer and then subsequently add an organization and channel?

glennd (Wed, 13 Feb 2019 21:23:18 GMT):
I guess what I mean is: is it possible to create a genesis block for an orderer with no organizations or peers or channels? Or does not not make any sense? One way around this is to have a "dummy" org that is part of the constortium, but I would like to avoid that if possible.

Antimttr (Wed, 13 Feb 2019 21:34:02 GMT):
Is it possible to have an Org but no peers for that org?

glennd (Wed, 13 Feb 2019 22:53:41 GMT):
Yeah when the consortium is just starting up. I'm looking at a structure where the orderer org is independent, and has the orderer node running to let other consortium members join later.

glennd (Wed, 13 Feb 2019 22:54:17 GMT):
If that's not possible, then having a dummy org, or having the orderer org itself be a peer in the network.

zacscoding (Thu, 14 Feb 2019 02:26:22 GMT):
Has joined the channel.

zacscoding (Thu, 14 Feb 2019 02:26:37 GMT):
Hello guys. I have some question about Private Data Collection. Suppose there are pdc1 with "MSP1" and "Peer1" in "MSP1" and "collectionMarbles" chain code with blockToLive "0". After progressed blocks, I want to add another new peer "Peer2" in "MSP1". and then possible to synchronize Private State database ?

AkhilKura (Thu, 14 Feb 2019 03:30:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Je8jRX5e48FDJtfcW) @sanket1211 on which command execution u got this error

Aniket.1 (Thu, 14 Feb 2019 05:08:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dXypTRceSDgMgvLd5) @Antimttr Ohkay :neutral_face: Thanks for your inputs.

sanket1211 (Thu, 14 Feb 2019 05:39:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sQm8DE3ny8Tq2pLRP) @AkhilKura testApi.sh(balance transfer)

prerna2048 (Thu, 14 Feb 2019 06:04:07 GMT):
Has joined the channel.

Prernashah (Thu, 14 Feb 2019 06:10:47 GMT):
Has joined the channel.

Prernashah (Thu, 14 Feb 2019 06:33:32 GMT):
Is it possible to run multiple organisations in a single node?

Aniket.1 (Thu, 14 Feb 2019 06:48:20 GMT):
Anyone has any idea why roles, affiliations and enrollSecret and not getting displayed in the wallet identity (after register and enroll). I can understand for enrollSecret but what is reason behind the others?

Sarath_Kumar (Thu, 14 Feb 2019 06:54:19 GMT):
Hi All, How to view the organisations available in the fabric network?

Sarath_Kumar (Thu, 14 Feb 2019 06:54:19 GMT):
Hi All, How to view the organisations and their configurations available in the fabric network?

Sarath_Kumar (Thu, 14 Feb 2019 06:54:19 GMT):
Hi All, How to view the organisations and their configurations available in the running fabric network?

Prernashah (Thu, 14 Feb 2019 06:59:32 GMT):
How to fetch channel(from a HFClient in JAVA SDK) from a network after it is restarted?

florianc (Thu, 14 Feb 2019 07:50:24 GMT):
Has joined the channel.

florianc (Thu, 14 Feb 2019 07:58:48 GMT):
Good morning (at least for me!) Big question here: Is there a procedure that explains how to install a fabric (for prod environment)? I mean something that is not done through a script like all the samples provided, and something generic (not like all the samples provided that nearly all have a different configuration each). Thanks!

ngoctai.tnt (Thu, 14 Feb 2019 08:51:19 GMT):
Has joined the channel.

ngoctai.tnt (Thu, 14 Feb 2019 08:53:16 GMT):
i get the error when i try to run fabcar example and take about 5 mins. I cannot initialate chaincode. Please help me some ideas to findout solution to fixing this. Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode first_cc:2.0 for transaction

ashuu-gupta (Thu, 14 Feb 2019 09:47:01 GMT):
Has joined the channel.

ashuu-gupta (Thu, 14 Feb 2019 09:47:06 GMT):
Hello Experts, I want to query on the basis of months in Hyperledger fabric. for example I need data about all the records whose date of purchase comes under last 6 months. i.e. I want to fetch record on the basis of date of purchase for last six moths. Can anyone help me out? I'm stuck on this from couple of weeks.

Sarath_Kumar (Thu, 14 Feb 2019 10:12:40 GMT):

portconfig.png

Sarath_Kumar (Thu, 14 Feb 2019 10:13:51 GMT):

peer log.PNG

Sarath_Kumar (Thu, 14 Feb 2019 10:14:04 GMT):

8053 port running.PNG

DharmeshRavichandran (Thu, 14 Feb 2019 10:45:41 GMT):
Has joined the channel.

ankamkrishnaprasad (Thu, 14 Feb 2019 11:59:23 GMT):
Has joined the channel.

ankamkrishnaprasad (Thu, 14 Feb 2019 11:59:35 GMT):
Hello every one.

ankamkrishnaprasad (Thu, 14 Feb 2019 11:59:52 GMT):
I setup environment for hyperledger fabric

ankamkrishnaprasad (Thu, 14 Feb 2019 12:00:46 GMT):
how can i run sample network ,first network and balance transfer

ankamkrishnaprasad (Thu, 14 Feb 2019 12:00:56 GMT):
and also marbles samples

dundro (Thu, 14 Feb 2019 12:09:29 GMT):
Has joined the channel.

gordonRamsay (Thu, 14 Feb 2019 12:10:20 GMT):
Has joined the channel.

gordonRamsay (Thu, 14 Feb 2019 12:14:03 GMT):
is there much performance impact to having many organisations? i am working on creating a voting application and was thinking maybe the best thing to do would be to have each voting member belong to their own organisation to allow the use of private data to hide who someone voted for with the rest of the data about the vote being public

dundro (Thu, 14 Feb 2019 12:17:57 GMT):
@ashuu-gupta It's a known issue https://jira.hyperledger.org/browse/FAB-13615

dundro (Thu, 14 Feb 2019 12:20:26 GMT):
@ashuu-gupta The only way I found to implement such feature was to save calculate a corresponding time-frame key for the record, and then do multiple queries (i.e. for each day in requested period)

dundro (Thu, 14 Feb 2019 12:24:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eHBffSZxbaRqXQQda) @Sarath_Kumar @Sarath_Kumar these ports are already exposed at the host machine. The first value in pair like this 8051:8051 is the external port exposed at the host machine, so as soon as you start the container, you this port will be assigned to the corresponding port of the container, and you can access it ( if the host machine itself is available off course)

dundro (Thu, 14 Feb 2019 12:29:36 GMT):
Has anyone tried to make custom BCCSP implementation? I have built it as a GoLang plugin and included the link to .SO file in CA config, built the CA executable, and launched it with a comand like this : `./fabric-ca-server init -b admin:adminpw`. Unfortunately, CA raises an exception: `2019/02/14 14:59:44 [FATAL] Initialization failure: Failed to initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PLUGIN [Plugin does not implement the required function signature for 'New']`. The function New is checked in pluginfactory.go this way `new, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error)) if !ok { return nil, fmt.Errorf("Plugin does not implement the required function signature for 'New'") }` My implementation has exactly the same name and parameters `func New(config map[string]interface{}) (bccsp.BCCSP, error)` The immediate thought was to check package conflicts, but it doesn't seem to be the problem.

dundro (Thu, 14 Feb 2019 12:29:36 GMT):
Has anyone tried to make custom BCCSP implementation? I have built it as a GoLang plugin and included the link to .SO file in CA config, built the CA executable, and launched it with a comand like this : `./fabric-ca-server init -b admin:adminpw`. Unfortunately, CA raises an exception: `2019/02/14 14:59:44 [FATAL] Initialization failure: Failed to initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PLUGIN [Plugin does not implement the required function signature for 'New']`. The function New is checked in pluginfactory.go this way ` new, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error)) if !ok { return nil, fmt.Errorf("Plugin does not implement the required function signature for 'New'") } ` My implementation has exactly the same name and parameters `func New(config map[string]interface{}) (bccsp.BCCSP, error)` The immediate thought was to check package conflicts, but it doesn't seem to be the problem.

Sarath_Kumar (Thu, 14 Feb 2019 12:31:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AZGTAK2EMz8hBZqSx) @dundro Thank you. using these ports we can communicate with the container. I have another doubt shall we use same port for multiple peers? example 7051 for Peer0 and Peer1

dundro (Thu, 14 Feb 2019 12:35:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=958z2yGNHtQuGoNWi) @Sarath_Kumar If you run both containers on the same host machine, then you can't expose the same port, so you have to use another one like 7051

dundro (Thu, 14 Feb 2019 12:41:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=daf2RLdkA3pseBt9o) @gordonRamsay AFAIK every organization private key must be stored separately in it's own peer, so this seems to be the main problem with your idea. The total quantity of organizations (i.e. private keys) hardly can affect the performance, it's just some records in the system channel ledger. I think that at least thousands is totally ok, but we never tested such a network, because of enormous infrastructure needed

Sarath_Kumar (Thu, 14 Feb 2019 12:45:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BhAdHAnLbu8kEoTTH) @dundro what is 7053:7053. and shall we set any other port configuration (multiple port for one container)

Sarath_Kumar (Thu, 14 Feb 2019 12:46:41 GMT):
@dundro shall we set conditional ports when the port is not available or down?

dave.enyeart (Thu, 14 Feb 2019 12:54:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ux9muAzKwTWvxrmBN) @Prernashah Each organization will need their own peer, although you can run multiple peers on a physical host. In fact, the first-network tutorial does this.

dave.enyeart (Thu, 14 Feb 2019 12:56:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uYHAeE5wxu4p3mipF) @zacscoding As of v1.4, when an org is later added to a private data collection it will automatically synchronize the prior private data from another peer that has it, see https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html#reconciliation

dundro (Thu, 14 Feb 2019 13:09:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AyXtzAwb9kFtGcoPF) @Sarath_Kumar 7053 is for listening the events . Other than 7051, 7053 peers don't need anything else AFAIK.

Sarath_Kumar (Thu, 14 Feb 2019 13:12:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YtjZdJYT4cXgaTS8S) @dundro Thank you

klkumar369 (Thu, 14 Feb 2019 13:30:30 GMT):
Hello! I am trying to instantiate the chaincode and I keep getting timeout error. I am just trying to register the user in my chaincode and nothing else. Can anyone suggest me the reasons for timeout? `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode mycc:1.0 for transaction`

glennd (Thu, 14 Feb 2019 13:44:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cvuoMWJQQtEe7zdZM) @klkumar369 @klkumar369 there is probably a bug in your chaincode (either in the building or testing). When you try to instantiate it, what happens is that hyperledger spins up a docker container, compiles, tests and packages the code and then deploys that package into another docker container. What that means is that if there is any error in the compile/test/package step, then the code never gets deployed. Unfortunately hyperledger does not make it easy to find out what's going on. Your best bet is to run a peer in chaincode dev mode and try to figure it out.

glennd (Thu, 14 Feb 2019 14:05:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ek5t7fyF2D8mCT4tN) @Sarath_Kumar @Sarath_Kumar It's not so easy. The nature of hyperledger is to maintain privacy, so that means you can only get hold of the peers connected to a channel. Take a look at: https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchannel.html#peer-channel-list . and at https://hyperledger-fabric.readthedocs.io/en/release-1.4/discovery-cli.html

iserikov (Thu, 14 Feb 2019 14:18:53 GMT):
Hello. Could anybody explain difference between Public and Confidential options in protobuf for chaincode `// Confidentiality Levels enum ConfidentialityLevel { PUBLIC = 0; CONFIDENTIAL = 1; }`

iserikov (Thu, 14 Feb 2019 14:19:02 GMT):
&

iserikov (Thu, 14 Feb 2019 14:19:04 GMT):
?))

SecMS (Thu, 14 Feb 2019 14:50:45 GMT):
Hi there, I was wondering if the query result of chaincodes includes a signature of the peer. I didn't find an answer so far. Can someone help me please and tell me where to find the right place in the fabric code to check this?

yacovm (Thu, 14 Feb 2019 14:54:44 GMT):
@SecMS yeah... the peer signs the endorsement.

yacovm (Thu, 14 Feb 2019 14:55:08 GMT):
the place in the code is https://github.com/hyperledger/fabric/blob/release-1.4/core/handlers/endorsement/builtin/default_endorsement.go

SecMS (Thu, 14 Feb 2019 14:57:14 GMT):
ah, ok, the query result is handled as simple endorsement. @yacovm thx!

yacovm (Thu, 14 Feb 2019 14:57:36 GMT):
right- actually the peer cannot distinguish between a query and an invocation

SecMS (Thu, 14 Feb 2019 15:10:49 GMT):
Then, how do committing-only peers handle client queries?

yacovm (Thu, 14 Feb 2019 15:28:19 GMT):
they don't... they are committing peers

SecMS (Thu, 14 Feb 2019 15:32:17 GMT):
ok, thx

dave.enyeart (Thu, 14 Feb 2019 15:33:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kAZPL6rpQddB9vnKc) @iserikov ConfidentialityLevel was a leftover from 0.6, it is not used in v1.x. In fact I've just submitted a CR to remove it to avoid the confusion: https://gerrit.hyperledger.org/r/#/c/29304/

iserikov (Thu, 14 Feb 2019 15:35:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZobLWzhwnAokA5hDD) @dave.enyeart Thank You)

florianc (Thu, 14 Feb 2019 15:55:21 GMT):
Hello. I am looking for the block file itself (on orderer or peer). I found one at /var/hyperledger/production/orderer/chains.composerchannel (using composer to generate txs). I can see in blockfile.00000 transactions, but where are stored block headers? Where are block hashes?

florianc (Thu, 14 Feb 2019 15:55:21 GMT):
Hello. I am looking for the block file itself (on orderer or peer). I found one at /var/hyperledger/production/orderer/chains/composerchannel (using composer to generate txs). I can see in blockfile.00000 transactions, but where are stored block headers? Where are block hashes?

klkumar369 (Thu, 14 Feb 2019 15:57:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tNWStBwqjTLm8m7vB) @glennd Thanks for your explanation.

fengbuzhi (Thu, 14 Feb 2019 18:28:12 GMT):
Has joined the channel.

fengbuzhi (Thu, 14 Feb 2019 18:28:15 GMT):
Hi everyone. I am currently facing an issue of moving the hyperledger composer model and script file of 'Member, ASSETS and Transactions'to the fabric level. I mention that the programming logic and architeture are really different between composer and fabric. Because of more features available on fabric level, we need to abandon the composer platform and put everything on fabric level. I wonder if you have any ideas of easier way to move what the projects done and programmed in hyperledger composer to setting up the same projects in hyperledger fabric. Thank you!

davidkel (Thu, 14 Feb 2019 19:22:35 GMT):
@fengbuzhi you could take a look at https://davidkel.github.io/docs/Porting/TOC.html to see if it helps

medikent (Thu, 14 Feb 2019 21:15:35 GMT):
Has joined the channel.

medikent (Thu, 14 Feb 2019 21:15:47 GMT):
I would like to submit a PR for a documentation bug I found in Building Your First Network: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html Are there any contributor license agreements I need to sign?

fengbuzhi (Thu, 14 Feb 2019 21:18:43 GMT):
@davidkel Thank you very much! This link is really useful.

yacovm (Thu, 14 Feb 2019 21:35:23 GMT):
@medikent no

yacovm (Thu, 14 Feb 2019 21:36:12 GMT):
read https://hyperledger-fabric.readthedocs.io/en/release-1.4/CONTRIBUTING.html

PranilChhetri (Fri, 15 Feb 2019 04:52:56 GMT):
how to pass arguments as a json object in submitTransaction() in fabric 1.4 version.

SatheeshNehru (Fri, 15 Feb 2019 05:03:24 GMT):
this happend while instantiating chaincode [commercial paper sample].how to resolve? Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-contract-api failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-02-15T04_57_25_679Z-debug.log

konetichandra (Fri, 15 Feb 2019 06:11:15 GMT):
Hi is there any throughput improvement in 1.4 comparing to 1.2 In Hyperledger fabric?

florianc (Fri, 15 Feb 2019 07:36:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QAyb8Daar6dQ6Sabp) Hello. Anyone has an idea? :)

TommasoMartin (Fri, 15 Feb 2019 08:55:48 GMT):
Has joined the channel.

TommasoMartin (Fri, 15 Feb 2019 08:59:40 GMT):
Hello everybody, that's my first question on this chat =) I'm used to Fabric1.1 on Ubuntu16.04 and everything used to work fine. Now, after a few months, I'm trying Fabric1.4 on Ubuntu18.04 but I'm having problems starting the network (both the basic and the byfn). When I start the network it says: Error response from daemon: Container 83a0dbacb72fc303fe66ba3d804b2a50f7774170c221421e2e5ec3617b4386a9 is not running and when I go to the peer logs it says it failed. More details can be found on the stack overflow question I just made: https://stackoverflow.com/questions/54705582/peer-exit-immediatly-after-starting-with-fatal-error-unexpected-signal-during

TommasoMartin (Fri, 15 Feb 2019 09:00:22 GMT):
I don't want to spam too much here on the chat so I linked my stack overflow question. If you want more details here just ask for them. Thanks!

waleed (Fri, 15 Feb 2019 09:08:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5u4fQgechvtHipaZ9) @TommasoMartin is answered ;)

waleed (Fri, 15 Feb 2019 09:08:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5u4fQgechvtHipaZ9) @TommasoMartin is answered :)

TommasoMartin (Fri, 15 Feb 2019 09:11:26 GMT):
Thank you! I'll try it now and let you know =)

benjamin.verhaegen (Fri, 15 Feb 2019 09:36:10 GMT):
Does anybody know how to fix this error; TLS handshake failed with error remote error: tls: bad certificate {"server": "Orderer", "remote address": "172.26.0.17:41266"}

TommasoMartin (Fri, 15 Feb 2019 09:37:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xstcWfRTB8GeLcM63) @waleed @waleed I did what suggested but I get the same error. I uninstalled docker and installed with sudo apt install docker.io and I have version 18.06.1-ce, build e68fc7a, which should be ok, but the problem is still the same. It looks like a Go problem fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f63d82a9259] runtime stack: runtime.throw(0x123f0ff, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:374 +0x2f2 goroutine 114 [syscall]: runtime.cgocall(0xe1bdc0, 0xc000247600, 0x29) /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0002475c8 sp=0xc000247590 pc=0x4039ee net._C2func_getaddrinfo(0xc0004f3c20, 0x0, 0xc0003540f0, 0xc0002d81e8, 0x0, 0x0, 0x0) _cgo_gotypes.go:92 +0x55 fp=0xc000247600 sp=0xc0002475c8 pc=0x615b95 net.cgoLookupIPCNAME.func1(0xc0004f3c20, 0x0, 0xc0003540f0, 0xc0002d81e8, 0x17, 0x17, 0x0) /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc000247648 sp=0xc000247600 pc=0x61b2b1 net.cgoLookupIPCNAME(0xc0004f37e0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc000247738 sp=0xc000247648 pc=0x617153 net.cgoIPLookup(0xc000352b40, 0xc0004f37e0, 0x16) /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0002477c8 sp=0xc000247738 pc=0x61780d runtime.goexit() /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0002477d0 sp=0xc0002477c8 pc=0x45dc81 created by net.cgoLookupIP /opt/go/src/net/cgo_unix.go:211 +0xad

TommasoMartin (Fri, 15 Feb 2019 09:37:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xstcWfRTB8GeLcM63) @waleed I did what suggested but I get the same error. I uninstalled docker and installed with sudo apt install docker.io and I have version 18.06.1-ce, build e68fc7a, which should be ok, but the problem is still the same. It looks like a Go problem fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f63d82a9259] runtime stack: runtime.throw(0x123f0ff, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:374 +0x2f2 goroutine 114 [syscall]: runtime.cgocall(0xe1bdc0, 0xc000247600, 0x29) /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0002475c8 sp=0xc000247590 pc=0x4039ee net._C2func_getaddrinfo(0xc0004f3c20, 0x0, 0xc0003540f0, 0xc0002d81e8, 0x0, 0x0, 0x0) _cgo_gotypes.go:92 +0x55 fp=0xc000247600 sp=0xc0002475c8 pc=0x615b95 net.cgoLookupIPCNAME.func1(0xc0004f3c20, 0x0, 0xc0003540f0, 0xc0002d81e8, 0x17, 0x17, 0x0) /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc000247648 sp=0xc000247600 pc=0x61b2b1 net.cgoLookupIPCNAME(0xc0004f37e0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc000247738 sp=0xc000247648 pc=0x617153 net.cgoIPLookup(0xc000352b40, 0xc0004f37e0, 0x16) /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0002477c8 sp=0xc000247738 pc=0x61780d runtime.goexit() /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0002477d0 sp=0xc0002477c8 pc=0x45dc81 created by net.cgoLookupIP /opt/go/src/net/cgo_unix.go:211 +0xad

GyoonKi (Fri, 15 Feb 2019 10:02:51 GMT):
Hello everyone, I got an error when I try to add CLI container in another host machine any one know how to solve it ? 2019-02-13 14:51:28.479 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AAD070A6908031A0C08F0DD90E30510...6D706C651A0A0A0571756572790A0161 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: F8062C56F36FBBB3705616E6BF8DB5B32E23791F2E27A584202E2EC53D851033 Error: Error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [org2MSP] -

GyoonKi (Fri, 15 Feb 2019 10:02:51 GMT):
Hello everyone, I got an error when I try to add CLI container in another host machine any one know how to solve it ? 2019-02-13 14:51:28.479 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AAD070A6908031A0C08F0DD90E30510...6D706C651A0A0A0571756572790A0161 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: F8062C56F36FBBB3705616E6BF8DB5B32E23791F2E27A584202E2EC53D851033 Error: Error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [org2MSP] -

GyoonKi (Fri, 15 Feb 2019 10:02:51 GMT):
Hello everyone, I got an error when I try to add CLI container in another host machine any one know how to solve it ? 2019-02-13 14:51:28.479 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AAD070A6908031A0C08F0DD90E30510...6D706C651A0A0A0571756572790A0161 2019-02-13 14:51:28.480 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: F8062C56F36FBBB3705616E6BF8DB5B32E23791F2E27A584202E2EC53D851033 ***Error: Error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [org2MSP] - *

waleed (Fri, 15 Feb 2019 10:05:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=REmKenBJRWMM2aqJg) @TommasoMartin make sure you have the right GO-version for fabric 1.4 and make sure that you installed GO correctly on your machine.

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue?

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. ` services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1` Here is what the error I can see from docker logs of the CA container. `Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore`

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. ` services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1` Here is what the error I can see from docker logs of the CA container. `Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI `c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore`

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. ` services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1` Here is what the error I can see from docker logs of the CA container. Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. `services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1 ` Here is what the error I can see from docker logs of the CA container. Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. `services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1` Here is what the error I can see from docker logs of the CA container. Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

klkumar369 (Fri, 15 Feb 2019 10:24:47 GMT):
Hello! I am running a fabric network with 1.3.0 version. I am able to create the Orgs, channel creation and joining the peers to channel. But fabric-ca containers are not up. Can someone suggest me what could be the issue? Here is my docker-composer-cli.yaml configuration for CA. `services: ca.LocalNGO1.goodchar.com: image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-LocalNGO1 - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem #- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' #command: sh -c 'fabric-ca-server start -b admin:adminpw -d --ca.keyfile "/etc/hyperledger/fabric-ca-server-config/4012f97e9cc7766623850703d182f57f15895ffcde9413462bf9151666fb4991_sk"' volumes: - ./channel/crypto-config/peerOrganizations/LocalNGO1.goodchar.com/ca/:/etc/hyperledger/fabric-ca-server-config container_name: ca_peerLocalNGO1` Here is what the error I can see from docker logs of the CA container. Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.LocalNGO1.goodchar.com-cert.pem': *Could not find matching private key for SKI: Failed getting key for SKI *[[194 217 102 100 242 87 92 145 186 180 230 100 164 154 99 201 219 174 21 123 189 97 126 153 98 21 64 236 14 118 125 162]]: Key with SKI c2d96664f2575c91bab4e664a49a63c9dbae157bbd617e99621540ec0e767da2 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

Brahimzaki (Fri, 15 Feb 2019 10:25:16 GMT):
Has joined the channel.

Sarath_Kumar (Fri, 15 Feb 2019 10:38:23 GMT):
Hi All, I have *added a new organisation* by following this link https://hyperledger-fabric.readthedocs.io/en/release-1.3/channel_update_tutorial.html#sign-and-submit-the-config-update and now *i want to add a new peer from another host*. I have copied the entire network folder to another host. The peer,couchdb and org2cli is up and running(new peer to join). If i run the command to fetch channel configuration an error is occured. *Command executed* : *peer channel fetch 0 mychannel.block -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA* *Error Occured : Failed to create deliver client failed to load config for ordererclient, unable to load orderer.tls.rootcert.file "filepath" no such file or directory* I have checked that the file is available within the cli container at the specific location. I have added extra_hosts for new peer with ip address ex: *orderer.example.com:89:98:75:57*

florianc (Fri, 15 Feb 2019 12:26:53 GMT):
Hi. In the documentation (https://hyperledger-fabric.readthedocs.io/en/release-1.4/readwrite.html), at the very bottom, it says: Note: Transactions with multiple read-write sets are not yet supported. Can someone explain what it actualy means?

ShefaliMittal (Fri, 15 Feb 2019 12:33:42 GMT):
Hi, I am having issue with the endorsement policies. I have set my chancode endorsement policy as OR( ORG1Msp.admin, Org2Msp.admin) But it fails even when I am invoking chaincode via admin Please tell what I am missing here

dave.enyeart (Fri, 15 Feb 2019 12:57:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tB2R4Pyivs8uTkcGq) @florianc Every chaincode invoke generates a response with a read-write set that instructs committing peers what updates to make in ledger. Each response with read-write set can be submitted in a transaction for ordering and commit. The statement in the documentation means that in the future it may be possible to package N chaincode responses into a single atomic transaction for ordering and commit. As of now, the transaction can only have 1 chaincode response.

florianc (Fri, 15 Feb 2019 13:00:14 GMT):
Interesting! Thank you.

klkumar369 (Fri, 15 Feb 2019 13:01:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SrxaD4nGyb4SjPtZQ) It was my fault. The volume mounting path was wrong.

dave.enyeart (Fri, 15 Feb 2019 13:01:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FksvfCDKfW2zQyuM6) @florianc Blocks (including block header, hash, and N transactions) are serialized and committed to the blockfiles. To read, the serialized data has to be deserialized. There are tools to do this such as Node SDK queryBlock method and blockchain explorer: https://github.com/hyperledger/blockchain-explorer/blob/master/README.md

dave.enyeart (Fri, 15 Feb 2019 13:03:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5Hj7mmfMMxwWtKJk5) @medikent No, you will simply need to sign the CR that is submitted to gerrit. See the contribution guide: https://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html

benjamin.verhaegen (Fri, 15 Feb 2019 13:29:39 GMT):
Somebody with experience in setting up TLS security?

VadimInshakov (Fri, 15 Feb 2019 13:34:55 GMT):
Help me please to create channel* I'm triyng to create channel in `first-network` (I modified configtx.yaml for 3 orgs) and get this error: ``` root@d41215:/var/seeds/hlf/1.2.1/fabric-samples/first-network# docker exec -e "CHANNEL_NAME=mychannel" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID='Org1MSP'" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" cli peer channel create -o orderer.example.com:7050 -c channel2 -f /channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2019-02-14 16:20:37.940 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium ``` `configtx.yaml`: https://gist.github.com/VadimInshakov/897aaef92cdf1dcd38aab16cecfc82b0

VadimInshakov (Fri, 15 Feb 2019 13:34:55 GMT):
**Help me please to create channel** I'm triyng to create channel in `first-network` (I modified configtx.yaml for 3 orgs) and get this error: ``` root@d41215:/var/seeds/hlf/1.2.1/fabric-samples/first-network# docker exec -e "CHANNEL_NAME=mychannel" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID='Org1MSP'" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" cli peer channel create -o orderer.example.com:7050 -c channel2 -f /channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2019-02-14 16:20:37.940 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium ``` `configtx.yaml`: https://gist.github.com/VadimInshakov/897aaef92cdf1dcd38aab16cecfc82b0

florianc (Fri, 15 Feb 2019 15:07:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZhjoeEvogfCjGwiKD) @dave.enyeart Thanks

diestrin (Fri, 15 Feb 2019 16:18:30 GMT):
ibm

jeka_gompa (Fri, 15 Feb 2019 16:58:15 GMT):
Hi everybody, I came across a project called BFT-SMaRt that provides an implementation of the Byzantine Fault-Tolerant ordering service for Hyperledger Fabric. Is this project supported by Fabric's community ? Is it reliable and safe to use it? Thank you and hope you can help me with it.

jeka_gompa (Fri, 15 Feb 2019 16:58:15 GMT):
Hi everybody, I came across a project called BFT-SMaRt that provides an implementation of the Byzantine Fault-Tolerant ordering service for Hyperledger Fabric. Is this project supported by Fabric's community ? Is it reliable and safe to use it? Thank you and hope you can help me with it.

jeka_gompa (Fri, 15 Feb 2019 16:58:15 GMT):
Hi everybody, I came across a project called BFT-SMaRt that provides an implementation of the Byzantine Fault-Tolerant ordering service for Hyperledger Fabric. Is this project supported by Fabric's community ? Is it reliable and safe to use it? Another thing, I know, the existence of malicious actors is not suppose to happen in a permissioned blockchain but if Fabric only provides Crash Fault Tolerant consensus (ordering service) with Kafka how would the system deal with malicious actors, in the remote case this happens? Thank you and hope you can help me with it.

Minskyy (Fri, 15 Feb 2019 18:18:28 GMT):
Hello guys, I'm following this tutorial *https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org* for deploying to a multi-organisation, but on the step eleven, when doing composer network install, I get the error `Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.`

Minskyy (Fri, 15 Feb 2019 18:22:05 GMT):
I followed the tutorial thoroughly, except in step 11, it tells us to chnage the version to 0.1.14, but it's nit possible? the current version is 0.2.6

Minskyy (Fri, 15 Feb 2019 18:22:05 GMT):
I followed the tutorial thoroughly, except in step 11, it tells us to chnage the version to 0.1.14, but it's not possible? the current version is 0.2.6

Minskyy (Fri, 15 Feb 2019 18:25:58 GMT):
Tried changing the version manually in the bna file but it's still not working

Minskyy (Fri, 15 Feb 2019 18:27:39 GMT):
step twelve worked though, meaning there is something wrong with my first peer configuration, I'll figure it out myself! Thanks anyway!

Minskyy (Fri, 15 Feb 2019 18:29:55 GMT):
The step twelve worked though, meaning there might be something wrong with my first org setup, I'll figure it out myself, thanks anyway!

Hineru (Fri, 15 Feb 2019 18:33:42 GMT):
Has joined the channel.

nfrunza (Fri, 15 Feb 2019 19:24:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xeo9n9fEhdvkvBt2b) @satyarth1 try using ./byfn.sh restart

nfrunza (Fri, 15 Feb 2019 19:27:32 GMT):
Hello, can someone suggest how to connect from local workstation to remote fabric network, when i use remote url grpcs://xx-xx-xxx-xxx-xx.compute-1.amazonaws.com:7050 fabric returns from discover service grpcs://localhost:7051

nfrunza (Fri, 15 Feb 2019 19:27:32 GMT):
Hello, can someone suggest how to connect from local workstation to remote fabric network, when i use remote url grpcs://xx-xx-xxx-xxx-xx.compute-1.amazonaws.com:7050 fabric returns from discover service grpcs://localhost:7051, is there a way how to configure it?

yacovm (Fri, 15 Feb 2019 21:08:32 GMT):
@nfrunza just encode the amazon endpoint into the orderer endpoints in the config block

nfrunza (Fri, 15 Feb 2019 21:11:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jywKKLvrS69MeoiWC) @yacovm you mean config block of the fabric network?

yacovm (Fri, 15 Feb 2019 21:17:03 GMT):
i mean the channel config

yacovm (Fri, 15 Feb 2019 21:17:17 GMT):
the channel config block of your channel

nfrunza (Fri, 15 Feb 2019 21:20:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mbwppPgAXwhKGCK9W) @yacovm thank you, it's kind of unstable if AWS changes the ip address

yacovm (Fri, 15 Feb 2019 21:20:42 GMT):
so use a DNS name..?

nfrunza (Fri, 15 Feb 2019 21:21:01 GMT):
sure, i'll thank you

yacovm (Fri, 15 Feb 2019 21:21:12 GMT):
i have a feeling i didn't help

nfrunza (Fri, 15 Feb 2019 21:23:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xGfYneBfzPb5sKybJ) @yacovm i'm supporting HLExplorer and we get different situation when connecting remotely, and using discover service fails with such errors

yacovm (Fri, 15 Feb 2019 21:24:05 GMT):
but discovery tells you the orderers that are encoded in the config block

yacovm (Fri, 15 Feb 2019 21:24:22 GMT):
there is no other way to know about the orderers, other than looking in the config block

nfrunza (Fri, 15 Feb 2019 21:24:47 GMT):
correct, and i need to provide the in the config remote host to connect to

nfrunza (Fri, 15 Feb 2019 21:25:20 GMT):
I'll try your suggestion, thank you Yacov

yacovm (Fri, 15 Feb 2019 21:25:57 GMT):
by the way - so are you saying the HLExplorer uses Fabric service discovery ?

nfrunza (Fri, 15 Feb 2019 21:26:09 GMT):
yes, we do

nfrunza (Fri, 15 Feb 2019 21:26:18 GMT):
shouldn't we ?

yacovm (Fri, 15 Feb 2019 21:26:30 GMT):
you should, of course!

yacovm (Fri, 15 Feb 2019 21:26:50 GMT):
It's the right tool to use

nfrunza (Fri, 15 Feb 2019 21:27:53 GMT):
I need help on operations service also, we plan to add to the explorer to see the network stats

yacovm (Fri, 15 Feb 2019 21:28:12 GMT):
network stats?

nfrunza (Fri, 15 Feb 2019 21:28:30 GMT):
fabric network

nfrunza (Fri, 15 Feb 2019 21:28:59 GMT):
health check, https://hyperledger-fabric.readthedocs.io/en/release-1.4/operations_service.html

jeka_gompa (Sat, 16 Feb 2019 03:46:17 GMT):
Hi everybody, I came across a project called BFT-SMaRt that provides an implementation of the Byzantine Fault-Tolerant ordering service for Hyperledger Fabric. Is this project supported by Fabric's community ? Is it reliable and safe to use it? Another thing, I know, the existence of malicious actors is not suppose to happen in a permissioned blockchain but if Fabric only provides Crash Fault Tolerant consensus (ordering service) with Kafka how would the system deal with malicious actors, in the remote case this happens? Thank you and hope you can help me with it.

waxer (Sat, 16 Feb 2019 04:42:15 GMT):
Question: can I store imagea close to 100k in the ledger? If yes, should I save it as an array of bytes or a base64 string?

Sarath_Kumar (Sat, 16 Feb 2019 05:35:47 GMT):
Hi All, Is there anyone added a new organisation with peers from multi hosts? I am facing issue while joining channel from second machine.

Sarath_Kumar (Sat, 16 Feb 2019 07:27:40 GMT):
Hi All, I want to know what are all the *parameters required for peer channel create* command when the* tls is enabled for orderer*. if tls is disabled, i can able to create channel.

Sarath_Kumar (Sat, 16 Feb 2019 07:27:40 GMT):
Hi All, I want to know what are all the *parameters required for peer channel create* command when the * tls is enabled for orderer*. if tls is disabled, i can able to create channel.

dpitt3 (Sat, 16 Feb 2019 19:04:13 GMT):
Has joined the channel.

mahyem14 (Sat, 16 Feb 2019 20:23:14 GMT):
Has joined the channel.

sPadawan (Sun, 17 Feb 2019 08:36:41 GMT):
Error building hyperledger fabric https://stackoverflow.com/questions/54731448/error-building-hyperledger-fabric-bzip2-data-creating-error-in-goshim-tar-bz Is this a bug?

hhlee (Sun, 17 Feb 2019 09:09:32 GMT):
Hi. I have a question about world state. where is it located?

gregnotso (Sun, 17 Feb 2019 12:29:37 GMT):
Has joined the channel.

gregnotso (Sun, 17 Feb 2019 12:30:30 GMT):
@hhlee most often, in a couchDB container

dpitt3 (Sun, 17 Feb 2019 15:33:22 GMT):
yes, Each Peer node instance requires couchDB or equivalent key/value db instance

Maarep (Sun, 17 Feb 2019 17:48:12 GMT):
Has joined the channel.

Maarep (Sun, 17 Feb 2019 17:50:17 GMT):
I'm trying to download Fabric in ubuntu but I couldn't because it shows that error. error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/c8/c8b4909d8d46f41dc8a111937e4bacf2b3b4cf2816c8553ffde2cf497acd901d/data?verify=1550251944-uHSYU8poIp5GJZPGIQBvWIJ6Pz4=: dial tcp: lookup production.cloudflare.docker.com on 127.0.0.53:53: read udp 127.0.0.1:46587->127.0.0.53:53: i/o timeout

RobiHarid (Sun, 17 Feb 2019 22:21:29 GMT):
Has joined the channel.

RobiHarid (Sun, 17 Feb 2019 22:21:37 GMT):
hey guys i have a really basic question

RobiHarid (Sun, 17 Feb 2019 22:21:45 GMT):
how do i send transaction in hyperledger fabric

RobiHarid (Sun, 17 Feb 2019 22:21:53 GMT):
i have set up my network using byfn

RobiHarid (Sun, 17 Feb 2019 22:22:34 GMT):
im trying to send 1 transaction

RobiHarid (Sun, 17 Feb 2019 22:22:37 GMT):
then 1k

RobiHarid (Sun, 17 Feb 2019 22:22:46 GMT):
then 10k and measure time it takes for it to get confirmed thru the network

RobiHarid (Sun, 17 Feb 2019 22:23:29 GMT):
it says i can use invoke on the docs but when i run the code ' peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}''

RobiHarid (Sun, 17 Feb 2019 22:23:35 GMT):
it says command not found peer

dpitt3 (Sun, 17 Feb 2019 22:37:08 GMT):
remove the --tls true flag

dpitt3 (Sun, 17 Feb 2019 22:38:27 GMT):
scratch that...peer not founds means peer cli is not installed or present in your path

dpitt3 (Sun, 17 Feb 2019 22:41:54 GMT):
you can execute the peer CLI using the docker container with something link this...docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n

narsimplyme (Mon, 18 Feb 2019 02:59:45 GMT):
Has joined the channel.

narsimplyme (Mon, 18 Feb 2019 04:17:02 GMT):
Hi guys, I have a question about the confixtx yaml file How do you edit(add,delete,modify) consortiums while your chain is online? do I have to use the peer channel command which you use on the 'Adding an Org to a Channel' tutorial? Isn't that for the channel not the network? Thanks

narsimplyme (Mon, 18 Feb 2019 04:17:02 GMT):
Hi guys, I have a question about the configtx yaml file How do you edit(add,delete,modify) consortiums while your chain is online? do I have to use the peer channel command which you use on the 'Adding an Org to a Channel' tutorial? Isn't that for the channel not the network? Thanks

narsimplyme (Mon, 18 Feb 2019 04:17:02 GMT):
Hi guys, I have a question about the Consortium and the configtx yaml file How do you edit(add,delete,modify) consortiums while your chain is online? For example, a change in the business required a new set of Orgs that needed to collaborate, so a new consortium is required on the chain. do I have to use the peer channel command which you use on the 'Adding an Org to a Channel' tutorial? Isn't that for the channel not the network? Thanks

dpitt3 (Mon, 18 Feb 2019 04:43:45 GMT):
So you will want to have one network per consortium and then have one to many channels. You will add organizations to a channel. Configuration for Orderers and channels are stored in configuration blocks along with organization MSP and access policies are also stored in configuration blocks. Yes, the instructions for adding and organization is how you updated config properties and add new organizations using the cryptogen and configtxlatr utilities. In a nutshell you are creating new update block delta in json.. then converting it to a protocol buffer file.. this then needs to be signed by organizations defined in the config block update policy.. Then executed as an config transactions... This results in a new update block in your network.. The latest config block is the current configuration. The initial genesis block has the original configuration. Every Block Header has a pointer to it's configuration block. Hope this helps.....

narsimplyme (Mon, 18 Feb 2019 04:51:18 GMT):
I wish to have one network with m:n consortium:channels if it is possible since you can put multiple consortiums under the orderer genesis profile

narsimplyme (Mon, 18 Feb 2019 04:51:38 GMT):
while you can modify consortiums?

narsimplyme (Mon, 18 Feb 2019 04:52:48 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html

narsimplyme (Mon, 18 Feb 2019 04:53:52 GMT):
the image shown here and the BYFN tutorial is making me confused, telling me like I could make new consortiums on the go

narsimplyme (Mon, 18 Feb 2019 04:59:47 GMT):
the peer channel fetch command seems to fetch only the channel config from it

dpitt3 (Mon, 18 Feb 2019 05:06:02 GMT):
You can have many channels and as many organizations you need. Then you can determine which organizations join the channel. But I would consider a consortium to be a single hyper ledger network implementation. Within that network/consortium you would have multiple channels and organizations participating. The genesis block would have all the participating orgs... new orgs would be added by config updates... (i.e. new blocks).

dpitt3 (Mon, 18 Feb 2019 05:09:02 GMT):
the fetched block should have other config properties such as orgs... peers.... config props like blocksize...consortium name...etc...

narsimplyme (Mon, 18 Feb 2019 05:17:43 GMT):
but if you have a whole big consortium, other orgs in that are not in the channel org can simply join the channel just by being in the same consortium

narsimplyme (Mon, 18 Feb 2019 05:23:24 GMT):
by separating consortiums, I think you can have bit more privacy and security over just one monolithic consortium

klkumar369 (Mon, 18 Feb 2019 06:45:30 GMT):
Hello! When my Chaincode is installed and instantiated on multiple peers, then each instantiation on a peer creates a docker container? For example, I have instantiated my chain code on 10 peers. So there are 10 containers created for this instantiation? Thanks for your help!

SethiSaab (Mon, 18 Feb 2019 07:26:22 GMT):
Hi Everyone , I want to enroll a device on Hyperledger instead of a user. Could someone please guide me or give any reference

YuIku (Mon, 18 Feb 2019 07:32:16 GMT):
Has joined the channel.

knagware9 (Mon, 18 Feb 2019 07:39:42 GMT):
Hi , Anybody tried to use node sdk in multihost network in docker swarm mode, I am facing error while I tried to instantiate chaincode via node sdk in multi host setup

ShefaliMittal (Mon, 18 Feb 2019 08:11:04 GMT):
Hi Can someone please help me with endorsement policy. I have set it as OR(ORG1Msp.admin, Org2MSP.admin) when I invoke chaincode, it fails with endorsement policy failure error. and peer log shows identity is not an admin

KaranVelhal (Mon, 18 Feb 2019 09:19:55 GMT):

relationship error.png

KaranVelhal (Mon, 18 Feb 2019 09:21:13 GMT):
'use strict'; // Constant values - change as per your needs const namespace = "securedbt"; const transactionType = "AccountTransfer"; // 1. Connect to airlinev7 const bnUtil = require('./conUtil'); bnUtil.connect(main); async function main(error){ // Check for error if(error){ console.log(error); process.exit(1); } // 2. Get the Business Network Definition let bnDef = bnUtil.connection.getBusinessNetwork(); console.log("2. Received Definition from Runtime: ", bnDef.getName()," ",bnDef.getVersion()); // 3. Get the factory let factory = bnDef.getFactory(); // 4. Lets create a new Resource of type = Transaction // Here is the sample data // { // "$class": "org.acme.airline.flight.CreateFlight", // "flightNumber": "AE101-06-06-2019", // "origin": "MSP", // "destination": "SEA", // "schedule": "2019-06-06T18:49:58.273Z" // } // 4. Create an instance of transaction let options = { generate: false, includeOptionalFields: false } //const flightId = "CV001-23-17-26"; const transId = "TRS1001"; //AE102-05-12-18 let transaction = await factory.newTransaction(namespace,transactionType,null,options); console.log("Tx Object generated"); //console.log(transaction); console.log(transaction.transactionId); // 5. Set up the properties of the transaction object transaction.setPropertyValue("to", "resource:securedbt.Account#1001"); transaction.setPropertyValue("from", "resource:securedbt.Account#1002"); transaction.setPropertyValue("amount","10"); //transaction.setPropertyValue('schedule' , new Date('2014-10-15T21:44Z')); console.log("Properties set!"); // 6. Submit the transaction return bnUtil.connection.submitTransaction(transaction).then(()=>{ console.log("6. Transaction Submitted/Processed Successfully!!") bnUtil.disconnect(); }).catch((error)=>{ console.log(error); bnUtil.disconnect(); }); } /** * Test Data for adding flight in registry { "$class": "org.acme.airline.flight.Flight", "flightId": "AE101-05-05-2019", "flightNumber": "AE101", "route": { "$class": "org.acme.airline.flight.Route", "origin": "ATL", "destination": "EWR", "schedule": "2019-12-17T18:49:58.288Z", "id": "string" } } * Adding flight using the createFlight transaction { "$class": "org.acme.airline.flight.CreateFlight", "flightNumber": "AE101-06-06-2019", "origin": "MSP", "destination": "SEA", "schedule": "2019-06-06T18:49:58.273Z" } *//*'use strict'; const namespace = "org.acme.airline.flight"; const transactionType = "CreateFlight"; const conUtil = require('./conUtil'); conUtil.connect(main); function main(error){ if(error){ console.log(error); process.exit(1); } let bnDef = conUtil.connection.getBusinessNetwork(); console.log("Received Business Network Definition from Runtime : ", bnDef.getName()," ",bnDef.getVersion()); let factory = bnDef.getFactory(); let options = { generate : false, includeOptionalFields : false } const flightIdd = "AE105-05-12-19"; //console.log(flightId); let transaction = factory.newTransaction(namespace,transactionType,flightIdd,options); transaction.setPropertyValue('flightNumber','AE103'); transaction.setPropertyValue('origin','EWR'); transaction.setPropertyValue('destination','MUM'); transaction.setPropertyValue('schedule',new Date('2019-05-05T21:44Z')); return conUtil.connection.submitTransaction(transaction).then(()=>{ console.log("Transaction submitted successfully!!"); conUtil.disconnect(); }).catch((error)=>{ console.log(error); }) }*/

KaranVelhal (Mon, 18 Feb 2019 09:21:38 GMT):
The code and the error is displayed above

florianc (Mon, 18 Feb 2019 09:47:51 GMT):
Hello. I would like someone to confirm what I've read in the documentation. Consider Channel A and channel B. The documentation says that it is not possible to update the world state of channel B from a chaincode located on channel A. Is it still true? source: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/chaincodenamespace.html?highlight=chaincode#considerations

Sarath_Kumar (Mon, 18 Feb 2019 09:51:42 GMT):
Hi All, I am facing issue while updating the channel configuration (trying to add new organisation). Command Executed: *peer channel update -f org3_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA* Error Occured : *ordering service endpoint orderer.example.com is not valid or missing*

mastersingh24 (Mon, 18 Feb 2019 10:57:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ct4XKMWXoovhep5se) @Sarath_Kumar Are you able to ping orderer.example.com ?

Sarath_Kumar (Mon, 18 Feb 2019 11:00:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nLhoShAnYQ6HYzQ9W) @mastersingh24 yes, i am able to ping orderer from cli container.

VercammenJ (Mon, 18 Feb 2019 11:45:50 GMT):
Has joined the channel.

Jgnuid (Mon, 18 Feb 2019 12:08:02 GMT):
What will happen in some years when the CA certs of orgs expire? Does expiration is ignore in orderers and peers? Or should I make channel reconfigs in all the channels of the CA?

mastersingh24 (Mon, 18 Feb 2019 12:11:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EBjPFwfQxAx9L8uYR) @Jgnuid Expiration is ignored ... you need to revoke certificates and not rely on expiration

waxer (Mon, 18 Feb 2019 12:33:25 GMT):
@mastersingh24 , oh ok. Since I saw that in fabric CA the expiration time could be configured I was suspicius. Glad to know this will not be a future headache

waxer (Mon, 18 Feb 2019 12:33:25 GMT):
@mastersingh24 , oh

Jgnuid (Mon, 18 Feb 2019 12:36:46 GMT):
@mastersingh24 , interesting. Since I saw that expiration times were configurations in fabric CA, I thought it matters. So just to be clear, all certificates used in MSPs are never checked over their expiration dates, right? (I guess TLS certs are another thing, or also aren't checked?)

yacovm (Mon, 18 Feb 2019 12:37:31 GMT):
we check expiration of client certs in the transaction sending path @Jgnuid

yacovm (Mon, 18 Feb 2019 12:37:37 GMT):
but not at commit time

yacovm (Mon, 18 Feb 2019 12:37:47 GMT):
the orderer checks expiration when the client sends it a transaction

yacovm (Mon, 18 Feb 2019 12:37:57 GMT):
and the peer checks expiration when the client sends it a transaction proposal

ahmadraza (Mon, 18 Feb 2019 12:40:16 GMT):
can we query records other then by key attribute in hyperledger fabric? and second how we apply access control in hyperledger fabric?

ahmadraza (Mon, 18 Feb 2019 13:32:19 GMT):
kindly anyone respond please?

florianc (Mon, 18 Feb 2019 13:46:34 GMT):
@ahmadraza I am not sure at all, but if you require more flexibility for queries, you can switch from leveldb to couchdb. For your second question, you are not specific enough, as there are lots of places where you can applyaccess control.

ahmadraza (Mon, 18 Feb 2019 13:49:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZFexrp35tf2tfWMBZ) @florianc @florianc i want to make multiple users and each user can see only his records. where i have to apply action controll and how give me some idea?

Jgnuid (Mon, 18 Feb 2019 13:49:51 GMT):
@yacovm , Oh, ok. And what about the certs of the peers and orderers? Will also fail doing interactions in proposals if are expired? Or expiration only aplies to clients as you mention?

florianc (Mon, 18 Feb 2019 13:52:07 GMT):
@ahmadraza Still, not a pro, but what you are looking for, I think, is private data collections (https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data/private-data.html)

dave.enyeart (Mon, 18 Feb 2019 13:55:13 GMT):
Access control can be applied in chaincode, see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#chaincode-access-control

florianc (Mon, 18 Feb 2019 13:57:20 GMT):
Wooo, nice to know, thanks for that tip @dave.enyeart

ahmadraza (Mon, 18 Feb 2019 13:59:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FQbEds8MRfM62dxS9) @dave.enyeart can you provide a example code snippet ?

dave.enyeart (Mon, 18 Feb 2019 14:03:53 GMT):
it's in the linked doc

dpitt3 (Mon, 18 Feb 2019 15:07:59 GMT):
@narsimplyme HLF has private channels.. where you can control what orgs have access to that channel preventing other orgs from seeing and accessing private channel transactions

dpitt3 (Mon, 18 Feb 2019 15:25:08 GMT):
Yes, you can query but cannot update

dpitt3 (Mon, 18 Feb 2019 15:27:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3fpxLwWiWok3K5gBB) @narsimplyme dpitt3 9:07 AM HLF has private channels.. where you can control what orgs have access to that channel preventing other orgs from seeing and accessing private channel transactions

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. Is private data secure If anyone can help with this would be very appreciated. I'm working on my master thesis and I need to provide justification to every decision I make

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. If you could also clarify how is the data being secured in the SideDB within the peer, it would be great.y specific concern is: how is the access to the SideDB being manged? If anyone can help with this would be very appreciated. I'm working on my master thesis and I need to provide justification to every decision I make

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. If you could also clarify how is the data being secured in the SideDB within the peer, it would be great. My specific concern is: how is the access to the SideDB being manged? If anyone can help with this would be very appreciated. I'm working on my master thesis and I need to provide justification to every decision I make

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. If you could also clarify how is the data being secured in the SideDB within the peer, it would be great. My specific concern is: how is the access to the SideDB being managed and what kind of DB is it? If anyone can help with this would be very appreciated. I'm working on my master thesis and I need to provide justification to every decision I make

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. If you could also clarify how is the data being secured in the SideDB within the peer, it would be great. My specific concern is: how is the access to the SideDB being managed and what kind of DB is it? If anyone can help with this would be very appreciated. I'm working on my master thesis and I need to provide justification to every system decision I make.

jeka_gompa (Mon, 18 Feb 2019 16:04:56 GMT):
Hello everybody, I'm evaluation the use of private data collections (PDC) in order to provide data privacy within some of my channels. I've checked some information regarding its usage and it seems like PDC leaks information about the organizations involved in the collections (see: https://jira.hyperledger.org/browse/FAB-7593) What I'm trying to understand is how this affects the security of the stored data. If you could also clarify how is the data being secured in the SideDB within the peer, it would be great. My specific concern is: how is the access to the SideDB being managed and what kind of DB is it? If anyone can help with this would be very appreciated.

GuillaumeCisco (Mon, 18 Feb 2019 16:59:40 GMT):
Hello, I can see in the fabric-sdk-node a file named `NetworkConfig_1.0.js` which define the network config API for interacting with a fabric network. Is there any documentation about this? Or is this specific to the fabric-sdk-node? Thank you

loneimmortal (Mon, 18 Feb 2019 17:27:08 GMT):
Has joined the channel.

Javi (Mon, 18 Feb 2019 17:56:14 GMT):
Hello everyone, I'm trying to create a new channel using the first-network sample, but when I execute the command `peer channel create -c newchannel -o orderer.example.com:7050 -f ./channel.tx` the result is this error: ``` Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` Any ideas?? I doesn't modified nothing in the config....

Javi (Mon, 18 Feb 2019 17:57:51 GMT):
I'm using the latest version 1.4.0

dpitt3 (Mon, 18 Feb 2019 19:18:20 GMT):
Did you generate the channel.tx using something like this? configtxgen -profile OneOrgChannel -outputCreateChannelTx ./config/channel.tx -channelID newchannel If so, check file access rights to channel.tx

Javi (Mon, 18 Feb 2019 21:15:28 GMT):
yes @dpitt3, I used that command. I will check file perms

dave.enyeart (Mon, 18 Feb 2019 22:55:44 GMT):
@jeka_gompa Yes with static private data collections all channel participants know who is transacting, only the data itself is private. This is why 'local collections' is on the roadmap so that clients can dynamically determine who gets the private data. The private data is stored in the configured state database (either leveldb or couchdb). Regardless of whether private data is used or not, the peer should be secured so that the peer's data cannot be accessed outside the peer.

dave.enyeart (Mon, 18 Feb 2019 22:55:44 GMT):
@jeka_gompa Yes with static private data collections all channel participants know who is transacting, only the data itself is private. This is why 'local collections' is on the roadmap so that clients can dynamically determine who gets the private data in a future release. The private data is stored in the configured state database (either leveldb or couchdb). Regardless of whether private data is used or not, the peer should be secured so that the peer's data cannot be accessed outside the peer.

Moniroaf (Tue, 19 Feb 2019 03:15:07 GMT):
Has joined the channel.

Moniroaf (Tue, 19 Feb 2019 03:15:20 GMT):
hello i have question about hyperledger how i can start to write sample program and how i can do evaluation

Moniroaf (Tue, 19 Feb 2019 03:15:46 GMT):
i need step by step

dpitt3 (Tue, 19 Feb 2019 03:31:18 GMT):
Here's a link to "writing your first app" documentation https://hyperledger-fabric.readthedocs.io/en/release-1.1/write_first_app.html Also, I when I first started playing with HLF I downloaded and studied the fabric samples.

Moniroaf (Tue, 19 Feb 2019 03:46:07 GMT):
thanks

Sarath_Kumar (Tue, 19 Feb 2019 05:28:15 GMT):
Hi All, What is the *use of MSPDir in configtx.yaml* and when this directory is used?

MuhammedHafil (Tue, 19 Feb 2019 06:05:34 GMT):
@dave.enyeart : Can we expect the commercial paper tutorial updated to a network configuration which reflects the actual given scenario in near future, Currently it uses basic network?

MuhammedHafil (Tue, 19 Feb 2019 06:05:34 GMT):
@dave.enyeart : Can we expect the commercial paper tutorial updated to a network configuration which reflects the actual given scenario in near future ? Currently it uses basic network

MuhammedHafil (Tue, 19 Feb 2019 06:05:34 GMT):
Can we expect the commercial paper tutorial updated to a network configuration which reflects the actual given scenario in near future ? Currently it uses basic network

AgnibhaBose (Tue, 19 Feb 2019 06:25:50 GMT):
Has joined the channel.

AgnibhaBose (Tue, 19 Feb 2019 06:25:57 GMT):
Hello All

AgnibhaBose (Tue, 19 Feb 2019 06:26:11 GMT):
I want to deploy chaincode maven jar using the SDK

AgnibhaBose (Tue, 19 Feb 2019 06:26:22 GMT):
But not being able to find any documentation regarding the same..

AgnibhaBose (Tue, 19 Feb 2019 06:26:32 GMT):
is there anyway to get the same

H.RSim (Tue, 19 Feb 2019 06:53:08 GMT):
Has joined the channel.

MuhammedHafil (Tue, 19 Feb 2019 06:58:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lep44rPs9MwQy6roX) @dave.enyeart : Also, Lets assume that a new organisation Like MagentoCorp who has got a contract from Daintree also want to issue their own commercial paper. How we can include that Corp also to our system? It would be really helpful if you can update the documentation from network configuration

MuhammedHafil (Tue, 19 Feb 2019 06:58:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lep44rPs9MwQy6roX) Also, Lets assume that a new organisation Like MagentoCorp who has got a contract from Daintree also want to issue their own commercial paper. How we can include that Corp also to our system? It would be really helpful if you can update the documentation from network configuration

H.RSim (Tue, 19 Feb 2019 07:00:04 GMT):
Hello, all

H.RSim (Tue, 19 Feb 2019 07:06:36 GMT):
I am trying to apply a Hyperledger-fabric to a new solution. Before applying Hyperledger, I would like to analyze the overall architecture, but I do not think there is no recent architectural diagram, I searched, but the results were so different. Could i get an architectural diagram for Hyperledger fabric 1.4?

JayJong (Tue, 19 Feb 2019 08:24:21 GMT):
Hi all, regarding this issue, https://jira.hyperledger.org/browse/FAB-13471?attachmentOrder=asc is v1.3.1 going to be released soon? im currently stuck with this issue, any help is appreciated

JayJong (Tue, 19 Feb 2019 08:24:21 GMT):
Hi all, regarding this issue, https://jira.hyperledger.org/browse/FAB-13471?attachmentOrder=asc is v1.3.1 going to be released soon? im currently stuck with this issue, any help is appreciated

MuhammedHafil (Tue, 19 Feb 2019 08:41:52 GMT):
Is `github.com/hyperledger/fabric/core/chaincode/lib/cid` this library available for node chaincode?

MuhammedHafil (Tue, 19 Feb 2019 08:41:52 GMT):
`github.com/hyperledger/fabric/core/chaincode/lib/cid` Is this library available for node chaincode?

shiftby (Tue, 19 Feb 2019 09:54:42 GMT):
Hello, I was investigating Fabric docs and in FAQ section found one QA, possibly someone can explain second option a bit? ``` Question: How do I create a business contract? Answer: There are generally two ways to develop business contracts: the first way is to code individual contracts into standalone instances of chaincode; the second way, and probably the more efficient way, is to use chaincode to create decentralized applications that manage the life cycle of one or multiple types of business contracts, and let end users instantiate instances of contracts within these applications. ```

MuhammedHafil (Tue, 19 Feb 2019 09:56:59 GMT):
In the documentation here `https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/application.html#gateway` We are discussing about `./gateway/connectionProfile.yaml` , But the code referring is from `papernetConnection.yaml` , I hope that file is just given as sample.

Sarath_Kumar (Tue, 19 Feb 2019 10:26:45 GMT):
Hi All, I am trying to connect peer0.org2.example.com to orderer.example.com peer0.org2 belongs to machine 2 and orderer is configured in machine 1. org2 is dynamically added by following this link : https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html i am not able to join channel available in machine 1. i am able to ping *orderer.example.com * from machine 2 Error : *failed connecting to orderer example com 7050 error context deadline exceeded*

Sarath_Kumar (Tue, 19 Feb 2019 10:26:45 GMT):
Hi All, I am trying to connect peer0.org2.example.com to channel peer0.org2 belongs to machine 2 and orderer is configured in machine 1. org2 is dynamically added by following this link : https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html i am not able to join channel available in machine 1. i am able to ping *orderer.example.com * from machine 2 Error : *failed connecting to orderer example com 7050 error context deadline exceeded*

ayushj10 (Tue, 19 Feb 2019 10:40:01 GMT):
Has joined the channel.

ayushj10 (Tue, 19 Feb 2019 10:42:06 GMT):
hi, I'm trying to make a POST request to a transaction which looks like this: { "$class": "org.myexample.SubmitRebniItem", "rebniItem": "resource:org.myexample.RebniItem#123abc", "timestamp": "2019-02-19T10:29:13.759Z" }

ayushj10 (Tue, 19 Feb 2019 10:42:24 GMT):
the RebniItem with ID 123abc exists

ayushj10 (Tue, 19 Feb 2019 10:43:09 GMT):
but I get the following error: Error trying invoke business network with transaction id 2c255524b7f8adb6b9e30a624d85ca40078ce837211ec50e9583ffd8d017db33. Error: No valid responses from any peers.\nResponse from attempted peer comms was an error: Error: transaction returned with failure: Error: object type or attribute not a non-zero length string

ayushj10 (Tue, 19 Feb 2019 10:43:28 GMT):
any idea what seems to be missing here?

Javi (Tue, 19 Feb 2019 11:13:57 GMT):
@dpitt3 changing file permissions doesn't works, any other idea?

Javi (Tue, 19 Feb 2019 11:14:26 GMT):
When I try to create a channel in the `cli` container I get this error: `Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Javi (Tue, 19 Feb 2019 11:16:16 GMT):
I'm using the `first-network` example

mastersingh24 (Tue, 19 Feb 2019 11:21:51 GMT):
@javi - are you using the correct identity to sign the transaction?

Javi (Tue, 19 Feb 2019 11:28:31 GMT):
I'm using the command `peer channel create -o orderer.example.com:7050 -f channel.tx -c newchannel --tls true --cafile crypto/peerOrganizations/example.com/peers/peer0.example.com/tls/ca.crt`

Javi (Tue, 19 Feb 2019 11:29:40 GMT):
@mastersingh24 but I got that error

Javi (Tue, 19 Feb 2019 11:30:37 GMT):
and I set the `CORE_PEER_MSPCONFIGPATH` env var to the msp directory of my admin user `Admin@example.com`

MuhammedHafil (Tue, 19 Feb 2019 11:32:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wf42mSr6yeLjG6Ckt) @Javi run `./byfn.sh down`

MuhammedHafil (Tue, 19 Feb 2019 11:32:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wf42mSr6yeLjG6Ckt) @Javi run `./byfn.sh down` , then up the network again

RazaDen (Tue, 19 Feb 2019 11:32:43 GMT):
Has joined the channel.

Javi (Tue, 19 Feb 2019 11:35:17 GMT):
@MuhammedHafil same error

MuhammedHafil (Tue, 19 Feb 2019 11:37:34 GMT):
run ./byfn.sh down docker rm $(docker ps -aq) docker volume prune docker network prune ./byfn.sh up

Javi (Tue, 19 Feb 2019 11:45:11 GMT):
@MuhammedHafil I deleted all volumes, files etc, now the error is `Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: SampleConsortium`, my consortium name is not `SampleConsortium`....

MuhammedHafil (Tue, 19 Feb 2019 11:46:10 GMT):
You are not using first-network?

Javi (Tue, 19 Feb 2019 11:46:31 GMT):
yes, but I changed some names

Javi (Tue, 19 Feb 2019 11:46:50 GMT):
my consortium name is `MyExampleConsortium`

MuhammedHafil (Tue, 19 Feb 2019 11:48:30 GMT):
post your configtx.yaml

subashsingh1990 (Tue, 19 Feb 2019 11:50:43 GMT):
Has joined the channel.

Javi (Tue, 19 Feb 2019 12:06:09 GMT):
@MuhammedHafil when I start the `cli` container, the config path is set to `/etc/hyperledger/fabric`, and it creates multiple files: `configtx.yaml`, `core.yaml` and `orderer.yaml`

Javi (Tue, 19 Feb 2019 12:06:35 GMT):
and these files doesn't have the values I indicate in the `configtx.yaml` file, when I create channels

Javi (Tue, 19 Feb 2019 12:07:03 GMT):
maybe I need to create these 3 files and setup the config path of my cli container to point to it??

MuhammedHafil (Tue, 19 Feb 2019 12:10:45 GMT):
No , i think (not sure), Did you changed the all occurrences of `SampleConsortium` to `MyExampleConsortium`? Please check your `configtx.yaml` file

Javi (Tue, 19 Feb 2019 12:11:59 GMT):
yes, if I use the command `grep -r 'SampleConsortium' first-network/`, I have no results

Javi (Tue, 19 Feb 2019 12:12:33 GMT):
All config is ok, but `cli` container creates a new `configtx.yaml`....

Javi (Tue, 19 Feb 2019 12:12:43 GMT):
with the sample configuration

subashsingh1990 (Tue, 19 Feb 2019 12:16:36 GMT):
Hi All, I am following the official tutorial of hyperledger-fabric and trying to build your first network. I am getting below given error when i executed "./byfn.sh up" cmd - *log - * $ ./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.0 DOCKER_IMAGE_VERSION=1.4.0 Recreating peer0.org1.example.com ... done Recreating peer0.org2.example.com ... done Recreating peer1.org2.example.com ... done Recreating peer1.org1.example.com ... done Recreating orderer.example.com ... done Recreating cli ... done OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed Please suggest me where i am doing wrong.

subashsingh1990 (Tue, 19 Feb 2019 12:16:36 GMT):
Hi All, I am following the official tutorial of hyperledger-fabric and trying to build your first network. I am getting below given error when i executed "./byfn.sh up" cmd - *log - * $ ./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.0 DOCKER_IMAGE_VERSION=1.4.0 Recreating peer0.org1.example.com ... done Recreating peer0.org2.example.com ... done Recreating peer1.org2.example.com ... done Recreating peer1.org1.example.com ... done Recreating orderer.example.com ... done Recreating cli ... done OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed Please suggest me where i am doing wrong. Note - I am using windows environment

Sarath_Kumar (Tue, 19 Feb 2019 12:17:25 GMT):
Hi All, Is it necessary to *add extra_hosts in containers* for multihost network?

Sarath_Kumar (Tue, 19 Feb 2019 12:18:26 GMT):
I want to add a peer without disturbing existing network containers

poojaKamat (Tue, 19 Feb 2019 12:21:19 GMT):
Has joined the channel.

Javi (Tue, 19 Feb 2019 12:51:44 GMT):
@MuhammedHafil see this log entry from my orderer service: ``` [orderer.common.broadcast] ProcessMessage -> WARN 016 [channel: newchannel] Rejecting broadcast of config message from 172.21.0.11:57266 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied [comm.grpc.server] 1 -> INFO 017 streaming call completed {"grpc.start_time": "2019-02-19T12:49:47.549Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "172.21.0.11:57266", "grpc.code": "OK", "grpc.call_duration": "870.6µs"} [common.deliver] Handle -> WARN 018 Error reading from 172.21.0.11:57264: rpc error: code = Canceled desc = context canceled [comm.grpc.server] 1 -> INFO 019 streaming call completed {"grpc.start_time": "2019-02-19T12:49:47.534Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "172.21.0.11:57264", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "24.8493ms"} ```

Javi (Tue, 19 Feb 2019 13:03:10 GMT):
Orderer MSP ID need to be the same as the channel admin organization MSP ID?

AVK (Tue, 19 Feb 2019 13:12:09 GMT):
Has joined the channel.

GuillaumeCisco (Tue, 19 Feb 2019 13:16:07 GMT):
is it me or the jira is down?

Javi (Tue, 19 Feb 2019 13:18:12 GMT):
@GuillaumeCisco for me it works

GuillaumeCisco (Tue, 19 Feb 2019 13:18:47 GMT):
Thanks @Javi , this url works for you? https://jira.hyperledger.org/secure/Dashboard.jspa

Javi (Tue, 19 Feb 2019 13:20:11 GMT):
yes, I see all projects and the activity stream

GuillaumeCisco (Tue, 19 Feb 2019 13:26:14 GMT):
ok, thanks, it takes forever to load for me :/ Cannot create an issue :/

volodyad (Tue, 19 Feb 2019 14:07:25 GMT):
Has joined the channel.

volodyad (Tue, 19 Feb 2019 14:11:05 GMT):
Hello, are there any news regarding when raft consensus protocol will be implemented?

Javi (Tue, 19 Feb 2019 16:17:02 GMT):
Does anyone know why when I try to instantiate a new chaincode I get this error? ``` root@c62666a891ce:/opt/gopath/src/github.com/contract# peer chaincode instantiate -n documentcontract -v 1 -l node -c '{"Args":["com.example.contract:instantiate"]}' -C newchannel -P "AND ('ExampleMsp.peer')" 2019-02-19 16:11:36.925 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (newchannel) orderer endpoint: orderer.example.com:7050 2019-02-19 16:11:36.928 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default escc 2019-02-19 16:11:36.928 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default vscc Error: could not send: EOF ```

BlahBlah (Tue, 19 Feb 2019 16:43:17 GMT):
Has joined the channel.

BlahBlah (Tue, 19 Feb 2019 16:43:52 GMT):
hi. is there any tutorial how to run chaincode for development purposes?

BlahBlah (Tue, 19 Feb 2019 16:45:52 GMT):
when i change fabcar chaincode and restart ./startFabric.sh javascript, it seems the contract does not get updated on the docker host

BlahBlah (Tue, 19 Feb 2019 17:03:22 GMT):
in the docker-chaincode-devmode tutorial, what is the node version of this step:

BlahBlah (Tue, 19 Feb 2019 17:03:24 GMT):
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02

BlahBlah (Tue, 19 Feb 2019 17:44:00 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#testing-using-dev-mode

BlahBlah (Tue, 19 Feb 2019 17:44:23 GMT):
what is the best way to update the chaincode in dev mode?

BlahBlah (Tue, 19 Feb 2019 17:45:19 GMT):
the tutorial does not tell what to do after changing code

dpitt3 (Tue, 19 Feb 2019 17:51:37 GMT):
A quick way is to spin up a go cli container, then connect using bash you will be able to execute and test your chaincode using the test shim.... in the fabric samples navigate to the chaincode-docker-dev-mod directory and issue the following command . $ docker-compose -f docker-compose-go.yaml up Open another terminal and issue this commandInstall GO locally or use the Docker CLI Image The following commands will create a container with a pre-configured Go environment and allow us to run unit tests. If there are problems, you may need to re-initialize the network by running the fabric-preload.sh and win_init.sh scripts. 1. Navigate to the dev folder 2. Start the environment with the following command $ docker-compose -f docker-compose-go.yaml up 3. Open a new command/terminal window and enter following command $ docker exec -it chaincode bash Performing and ls will display chaincode directories... cd into one of them and enter "go test" This will execute and test chaincode unittests

BlahBlah (Tue, 19 Feb 2019 18:13:11 GMT):
thanks for your answer, but is there a best practise for javascript chaincode?

dpitt3 (Tue, 19 Feb 2019 18:32:37 GMT):
I'm implementing chaincode using go, but i believe best practices apply to both.....My approach is to separate query chaincode operations for updated and business logic operations. Also, group similiar operations against a domain together, avoiding large if/else expressions in your invoke() function. Also, you will be able to change and update chaincode without affecting other chaincode operations. Hope this helps

BlahBlah (Tue, 19 Feb 2019 18:40:11 GMT):
ill consider it

BlahBlah (Tue, 19 Feb 2019 18:40:16 GMT):
thank you very much

BlahBlah (Tue, 19 Feb 2019 19:03:08 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode with name 'zoo' already exists

BlahBlah (Tue, 19 Feb 2019 19:03:20 GMT):
can i remove it?

BlahBlah (Tue, 19 Feb 2019 19:06:46 GMT):
or do i neet do user peer chaincode upgrade?

BlahBlah (Tue, 19 Feb 2019 19:06:46 GMT):
or do i need to user peer chaincode upgrade?

BlahBlah (Tue, 19 Feb 2019 19:11:14 GMT):
i think i got it:

BlahBlah (Tue, 19 Feb 2019 19:11:26 GMT):
fabric-chaincode-node start --peer.address peer:7052 --chaincode-id-name zoo:2 <--- increment the version

BlahBlah (Tue, 19 Feb 2019 19:11:28 GMT):
then

BlahBlah (Tue, 19 Feb 2019 19:11:28 GMT):
than

BlahBlah (Tue, 19 Feb 2019 19:11:49 GMT):
peer chaincode upgrade -C myc -n zoo -v 2 -c '{"args":[]}'

BlahBlah (Tue, 19 Feb 2019 19:12:36 GMT):
praise the lord.gif

dpitt3 (Tue, 19 Feb 2019 19:32:28 GMT):
Yes you need to update... for dev development when I want to code, deploy, test... make the version be current time in milliseconds

jeka_gompa (Tue, 19 Feb 2019 19:38:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X9hhizYqxcPjq9zkF) @dave.enyeart Thank you very much for your answer. It helped to clarify things. I just have now another question, the documentation says that it is possible to add private data collections at chaincode instantiation or update, now: - Is it possible to update private data collection? (by adding another organization for example) - Is it possible to add more collections to the chaincode? - Does fabric create the hash value by itself or do we have to take care of that? Thank you again

jeka_gompa (Tue, 19 Feb 2019 19:38:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X9hhizYqxcPjq9zkF) @dave.enyeart Thank you very much for your answer. It helped to clarify things. I just have now another question, the documentation says that it is possible to add private data collections at chaincode instantiation or update, now: - Is it possible to update a private data collection? (by adding another organization for example) - Is it possible to add more collections to the chaincode? - Does fabric create the hash value by itself or do we have to take care of that? - In some of the graphics in the documentation present a secret related to the private data, which is also hashed. Who defines this secret? Thank you again

blockchainer (Tue, 19 Feb 2019 21:00:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gyF9ypgWibmZmbzbZ) @Javi +1

blockchainer (Tue, 19 Feb 2019 21:01:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2uzbC9NGnQXog6c5F) My error: 2019-02-19 20:54:07.536 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-02-19 20:54:07.536 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg plugin with name escc could not be used: plugin with name escc wasn't found

dave.enyeart (Tue, 19 Feb 2019 21:15:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iLm5472yzts9bow6c) @jeka_gompa For the update questions, see https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-docs-build-x86_64/1341/html/private-data-arch.html#updating-a-collection-definition. Fabric automatically creates the hash using SHA256 and includes it in the transaction that goes on the blockchain. private=secret.

jeka_gompa (Tue, 19 Feb 2019 22:38:23 GMT):
Hi guys, I have a question, a transaction in Fabric stores: - a header - a signature: cryptographic signature created by the client application - a proposal - a response - and endorsements Is it also possible to get the is of the author of the transaction by looking at the ledger or by some other way? Thanks in advance

jeka_gompa (Tue, 19 Feb 2019 22:38:23 GMT):
Hi guys, I have a question, a transaction in Fabric stores: - a header - a signature: cryptographic signature created by the client application - a proposal - a response - and endorsements Is it also possible to get the id of the author of the transaction by looking at the ledger or by some other way? Thanks in advance

jeffgarratt (Wed, 20 Feb 2019 02:16:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WRX26qG3r2dsaZb6C) @jeka_gompa the header.signatureHeader.creator is a marshalled SerializedIdentity, inside there is a idBytes which is the cert of the creator

dpitt3 (Wed, 20 Feb 2019 03:36:52 GMT):
Transactions in each block will have a "creator" field... here's json snippet from a block transaction"data": { "actions": [ { "header": { "creator": { "Mspid": "Org1MSP", "IdBytes": "-----BEGIN CERTIFICATE-----

dpitt3 (Wed, 20 Feb 2019 03:39:08 GMT):
Here's a link to a block store browser... you can see raw block data with it.. just enter "mychannel" to browse https://byzantine-browser.herokuapp.com

FabricBeer (Wed, 20 Feb 2019 04:09:52 GMT):
@dpitt3 hey how did you deploy on heroku

poojaKamat (Wed, 20 Feb 2019 04:13:24 GMT):
Hi All, I have a application where I need to scale channels,say 50 channels , since hyperledger fabric v1.3 the event hub has become channel based ,that is I get ledger updates only from a particular channel to which I have subscribed. I wanted to know if its possible to get ledger updates from all channels in a single listener ,eg : by sending an array of channels

dpitt3 (Wed, 20 Feb 2019 04:15:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=H79c3KjGHy4AXsJv2) @FabricBeer This is an open source browser that's accessing a deployed HLF network.. it's open source . https://github.com/in-the-keyhole/byzantine-browser

dpitt3 (Wed, 20 Feb 2019 04:16:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JPhzrKMiF53biLftE) Here's info about where it's deployed https://byzantinetools.com

FabricBeer (Wed, 20 Feb 2019 04:17:46 GMT):
@dpitt3 Thank you

florianc (Wed, 20 Feb 2019 07:44:06 GMT):
Hi. The documentation says the transaction are ordered chronologically, but that is it not the only parameter taken into account. However, docs don't say what are the other parameters. Could someone provide them?

sudharsanank (Wed, 20 Feb 2019 07:45:40 GMT):
Has joined the channel.

sudharsanank (Wed, 20 Feb 2019 07:45:54 GMT):
Error: error getting chaincode code mycc: path to chaincode does not exist: github.com/hyperledger/fabric/chaincode/staffaugmentation ##### 2019-02-20 07:27:21 Tests did not complete successfully; see data/logs/run.log for more details

sudharsanank (Wed, 20 Feb 2019 07:47:09 GMT):
please help me in rectifying this error,I have written a code in nodeJs

florianc (Wed, 20 Feb 2019 07:49:42 GMT):
link does not exists

ShajiThiyarathodi (Wed, 20 Feb 2019 08:07:09 GMT):
is there an a way to query for a range of blocks, on a given channel and for a given time frame?

sudhasakshi (Wed, 20 Feb 2019 09:25:58 GMT):

calling chaincode.PNG

gade (Wed, 20 Feb 2019 11:07:50 GMT):
You have not set your GOPATH properly (or) you have not installed Fabric in your GOPATH

gade (Wed, 20 Feb 2019 11:07:50 GMT):
@sudhasakshi You have not set your GOPATH properly (or) you have not installed Fabric in your GOPATH

Sarath_Kumar (Wed, 20 Feb 2019 11:12:40 GMT):
Hi All, I am unable to connect peer from another host(machine2) to channel from machine1. Error : *failed connecting to orderer example com 7050 error context deadline exceeded*

dave.enyeart (Wed, 20 Feb 2019 11:17:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3kEMvrkhj5hE8E2d) @florianc The ordering service orders transactions in the order received, that's it.

klkumar369 (Wed, 20 Feb 2019 11:18:54 GMT):
Hello there! I did my network up and executed a node js script to do a transaction. I get the following error which I have no clue about it. Can someone help me on this please? `$ node startTransactio.js Store path:/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: ef9f17556b6c6077a091f305e5bcb68dde13c17f6a648c5e3a87e1c256c7c21a [ [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: [Object], details: 'Stream removed' } ], { header: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 1136, littleEndian: false, noAssert: false }, payload: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 103, littleEndian: false, noAssert: false }, extension: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 0, littleEndian: false, noAssert: false } } ] [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ] Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting...`

klkumar369 (Wed, 20 Feb 2019 11:18:54 GMT):
Hello there! I did my network up and executed a node js script to do a transaction. I get the following error which I have no clue about it. Can someone help me on this please? ``` $ node startTransactio.js Store path:/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: ef9f17556b6c6077a091f305e5bcb68dde13c17f6a648c5e3a87e1c256c7c21a [ [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: [Object], details: 'Stream removed' } ], { header: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 1136, littleEndian: false, noAssert: false }, payload: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 103, littleEndian: false, noAssert: false }, extension: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 0, littleEndian: false, noAssert: false } } ] [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ] Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

klkumar369 (Wed, 20 Feb 2019 11:18:54 GMT):
Hello there! I did my network up and executed a node js script to do a transaction. I get the following error which I have no clue about it. Can someone help me on this please? ``` $ node startTransaction.js Store path:/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: ef9f17556b6c6077a091f305e5bcb68dde13c17f6a648c5e3a87e1c256c7c21a [ [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: [Object], details: 'Stream removed' } ], { header: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 1136, littleEndian: false, noAssert: false }, payload: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 103, littleEndian: false, noAssert: false }, extension: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 0, littleEndian: false, noAssert: false } } ] [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ] Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

klkumar369 (Wed, 20 Feb 2019 11:18:54 GMT):
Hello there! I did my network up and executed a node js script to do a transaction. I get the following error which I have no clue about it. Can someone help me on this please? @dave.enyeart @Switch2Logic @glennd ``` $ node startTransaction.js Store path:/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/hfc-key-store Successfully loaded user1 from persistence Assigning transaction_id: ef9f17556b6c6077a091f305e5bcb68dde13c17f6a648c5e3a87e1c256c7c21a [ [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: [Object], details: 'Stream removed' } ], { header: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 1136, littleEndian: false, noAssert: false }, payload: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 103, littleEndian: false, noAssert: false }, extension: ByteBuffer { buffer: , offset: 0, markedOffset: -1, limit: 0, littleEndian: false, noAssert: false } } ] [ { Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15) at Object.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28) at InterceptingListener._callNext (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42) at InterceptingListener.onReceiveStatus (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8) at callback (/home/kumar/demo/Pradeep/GoodChar/GoodChar/GoodCharMW/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24) code: 2, metadata: Metadata { _internal_repr: {} }, details: 'Stream removed' } ] Transaction proposal was bad Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... Failed to invoke successfully :: Error: Failed to send Proposal or receive valid response. Response null or status is not 200. exiting... ```

UnaiUrkiaga (Wed, 20 Feb 2019 11:57:33 GMT):
Hi, Im getting this error for first time: fatal error: unexpected signal during runtime execution on peers and orderers. help please

florianc (Wed, 20 Feb 2019 12:41:30 GMT):
Hi! I am looking at the fabric nodejs SDK, and I have a little question: fabric-network allows to send tx and query the ledger ("only") fabric-client allows to send tx, install chaincode, monitor event, etc. My question is: Why would I use fabric-network whereas fabric-client does what network does, but with more stuff?

purandam (Wed, 20 Feb 2019 13:16:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TyQraTKWATqd5Lan6) @florianc yes . You can use NODE SDK to install chaincode . Also you can use query from the node sdk.

DeepaMotwani (Wed, 20 Feb 2019 13:44:18 GMT):
I am trying to add organization dynamically to the channel through NodeSDK. I have followed the below steps: - Extract channel configuration which returns in the protobuffer - Convert it into json so as to read it - Modify the json - Encode it into proto buffer - Calling the updateChannel method of library All the steps are executed successfully but while calling the updateChannel method, it gives me policy error. Please find below the logs of orderer: 2019-02-20 13:28:28.470 UTC [policies] Evaluate -> DEBU a2f == Evaluating *cauthdsl.policy Policy /Channel/Application/Org1MSP/Admins == 2019-02-20 13:28:28.470 UTC [cauthdsl] func1 -> DEBU a30 0xc0002afd50 gate 1550669308470922609 evaluation starts 2019-02-20 13:28:28.470 UTC [cauthdsl] func2 -> DEBU a31 0xc0002afd50 signed by 0 principal evaluation starts (used [false]) 2019-02-20 13:28:28.470 UTC [cauthdsl] func2 -> DEBU a32 0xc0002afd50 processing identity 0 with bytes of a0af20 2019-02-20 13:28:28.470 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU a33 Checking if identity satisfies ADMIN role for Org1MSP 2019-02-20 13:28:28.470 UTC [cauthdsl] func2 -> DEBU a34 0xc0002afd50 principal matched by identity 0 2019-02-20 13:28:28.471 UTC [msp.identity] Verify -> DEBU a35 Verify: digest = 00000000 b7 4c c6 c7 b4 e4 45 34 00 61 4b 80 51 3d 96 07 |.L....E4.aK.Q=..| 00000010 3f 6f 28 73 99 44 01 d4 44 8a 84 70 27 06 e5 08 |?o(s.D..D..p'...| 2019-02-20 13:28:28.471 UTC [msp.identity] Verify -> DEBU a36 Verify: sig = 00000000 30 44 02 20 24 a7 07 ba c9 d7 4b 0d 60 95 eb c1 |0D. $.....K.`...| 00000010 96 d5 43 eb 3c fa 95 4f ce 44 2e 24 cd 2b d6 9b |..C.<..O.D.$.+..| 00000020 51 81 a6 cd 02 20 1f aa 81 d9 d7 d5 64 b4 36 54 |Q.... ......d.6T| 00000030 cf 6b 4b d7 eb 42 51 b3 43 cf 07 99 18 3d 97 6d |.kK..BQ.C....=.m| 00000040 31 97 94 07 70 c0 |1...p.| 2019-02-20 13:28:28.471 UTC [cauthdsl] func2 -> DEBU a37 0xc0002afd50 principal evaluation succeeds for identity 0 2019-02-20 13:28:28.471 UTC [cauthdsl] func1 -> DEBU a38 0xc0002afd50 gate 1550669308470922609 evaluation succeeds 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a39 Signature set satisfies policy /Channel/Application/Org1MSP/Admins 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a3a == Done Evaluating *cauthdsl.policy Policy /Channel/Application/Org1MSP/Admins 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a3b == Evaluating *cauthdsl.policy Policy /Channel/Application/Org2MSP/Admins == 2019-02-20 13:28:28.471 UTC [cauthdsl] func1 -> DEBU a3c 0xc00047c690 gate 1550669308471165309 evaluation starts 2019-02-20 13:28:28.471 UTC [cauthdsl] func2 -> DEBU a3d 0xc00047c690 signed by 0 principal evaluation starts (used [false]) 2019-02-20 13:28:28.471 UTC [cauthdsl] func2 -> DEBU a3e 0xc00047c690 processing identity 0 with bytes of a0af20 2019-02-20 13:28:28.471 UTC [cauthdsl] func2 -> DEBU a3f 0xc00047c690 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected Org2MSP, got Org1MSP) 2019-02-20 13:28:28.471 UTC [cauthdsl] func2 -> DEBU a40 0xc00047c690 principal evaluation fails 2019-02-20 13:28:28.471 UTC [cauthdsl] func1 -> DEBU a41 0xc00047c690 gate 1550669308471165309 evaluation fails 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a42 Signature set did not satisfy policy /Channel/Application/Org2MSP/Admins 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a43 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/Org2MSP/Admins 2019-02-20 13:28:28.471 UTC [policies] func1 -> DEBU a44 Evaluation Failed: Only 1 policies were satisfied, but needed 2 of [ Org1MSP.Admins Org2MSP.Admins ] 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a45 Signature set did not satisfy policy /Channel/Application/Admins 2019-02-20 13:28:28.471 UTC [policies] Evaluate -> DEBU a46 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/Admins 2019-02-20 13:28:28.471 UTC [orderer.common.broadcast] ProcessMessage -> WARN a47 [channel: mychannel] Rejecting broadcast of config message from 192.168.64.1:47666 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 2 sub-policies, required 1 remaining 2019-02-20 13:28:28.471 UTC [orderer.common.server] func1 -> DEBU a48 Closing Broadcast stream 2019-02-20 13:28:28.471 UTC [comm.grpc.server] 1 -> INFO a49 streaming call completed {"grpc.start_time": "2019-02-20T13:28:28.469Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "192.168.64.1:47666", "grpc.code": "OK", "grpc.call_duration": "2.221942ms"} 2019-02-20 13:28:30.655 UTC [grpc] infof -> DEBU a4a transport: loopyWriter.run returning. connection error: desc = "transport is closing" Kindly help me out what is missing in my configuration..........

dpitt3 (Wed, 20 Feb 2019 13:58:08 GMT):
You will need to sign the protobuffer file by both Org1 and Org2 before submitting as an update tx.... using this command peer channel signconfigtx -f org3_update_in_envelope.pb

gioannou983 (Wed, 20 Feb 2019 15:14:07 GMT):
Hi! I am going to use Fabric for a proof-of-concept scenario within a research project. I have already played around with an installation based on the how-to documentation so I am a bit familiarised with it. I am now looking into creating a scenario with a couple of Orderers, 4 to 5 organisations with Peer nodes and probably around 10 clients. What would be (roughly) a recommended setup for this? Would it be sufficient to recreate this purely with docker containers? Does it make sense to create VM's for each entity (Orderer, Peer, client)? I should note that am quite new to Docker environment as well.

BlahBlah (Wed, 20 Feb 2019 15:25:30 GMT):
i'm still confused what i exactly have to do in dev-mode after changing some lines in the chaincode.

BlahBlah (Wed, 20 Feb 2019 15:33:28 GMT):
docker exec -it chaincode bash fabric-chaincode-node start --peer.address peer:7052 --chaincode-id-name zoo:1 docker exec -it cli bash peer chaincode install -p . -l node -n mycc -v 0 peer chaincode upgrade -C myc -n zoo -v 4 -c '{"args":[]}'

BlahBlah (Wed, 20 Feb 2019 15:33:28 GMT):
docker exec -it chaincode bash fabric-chaincode-node start --peer.address peer:7052 --chaincode-id-name zoo:1 docker exec -it cli bash peer chaincode install -p . -l node -n mycc -v 0

BlahBlah (Wed, 20 Feb 2019 15:33:28 GMT):
docker exec -it chaincode bash fabric-chaincode-node start --peer.address peer:7052 --chaincode-id-name zoo:1 docker exec -it cli bash peer chaincode install -p . -l node -n mycc -v 1

BlahBlah (Wed, 20 Feb 2019 15:34:40 GMT):
does the `zoo:1` has something todo with the `-v 1`

BlahBlah (Wed, 20 Feb 2019 15:34:41 GMT):
?

dpitt3 (Wed, 20 Feb 2019 15:37:35 GMT):
Once you change your chaincode you will need to build/compile it... from the cli bash simply input "go build" .. Then you will have to update the -v to a new version number such as 1.1

BlahBlah (Wed, 20 Feb 2019 15:37:57 GMT):
what is go build in js?

BlahBlah (Wed, 20 Feb 2019 15:38:13 GMT):
nevermind, no compile in js ;)

BlahBlah (Wed, 20 Feb 2019 15:38:32 GMT):
do you mean from the chaincode bash?

dpitt3 (Wed, 20 Feb 2019 15:38:32 GMT):
sorry.. I'm using go.. no need to compile

subashsingh1990 (Wed, 20 Feb 2019 15:38:32 GMT):
Hi All, I am following the official tutorial of hyperledger-fabric and trying to build your first network. I am getting below given error when i executed "./byfn.sh up" cmd - *log - * $ ./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.0 DOCKER_IMAGE_VERSION=1.4.0 Recreating peer0.org1.example.com ... done Recreating peer0.org2.example.com ... done Recreating peer1.org2.example.com ... done Recreating peer1.org1.example.com ... done Recreating orderer.example.com ... done Recreating cli ... done OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown ERROR !!!! Test failed Please suggest me where i am doing wrong. Note - I am using windows environment

BlahBlah (Wed, 20 Feb 2019 15:39:46 GMT):
do i need to `upgrade` or `install` to a new -v number?

dpitt3 (Wed, 20 Feb 2019 15:41:01 GMT):
with a new -v number you can install

JulianSolarte (Wed, 20 Feb 2019 15:41:57 GMT):
Hello, I would like to create a collection where a group of organizations can only READ AND WRITE and other group of organizations can only READ, how can I achieve this?

maxrobot (Wed, 20 Feb 2019 15:46:23 GMT):
Hi are the instructions on how to run the developer environment, https://openblockchain.readthedocs.io/en/latest/dev-setup/devenv/, up to date?

florianc (Wed, 20 Feb 2019 15:49:20 GMT):
Are ALL chaincodes ran into a dedicated docker container?

florianc (Wed, 20 Feb 2019 15:49:32 GMT):
(Like, is it one container per chaincode or on container or chaincodes?)

florianc (Wed, 20 Feb 2019 15:49:32 GMT):
(Like, is it one container per chaincode or one container or chaincodes?)

dave.enyeart (Wed, 20 Feb 2019 15:50:36 GMT):
one chaincode container per chaincode version. it can service multiple invoke requests in parallel, even across channels.

BlahBlah (Wed, 20 Feb 2019 15:51:16 GMT):
for what is upgrade?

BlahBlah (Wed, 20 Feb 2019 15:51:16 GMT):
what purpose has upgrade?

BlahBlah (Wed, 20 Feb 2019 15:51:36 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg version already exists for chaincode with name 'zoo'

JulianSolarte (Wed, 20 Feb 2019 15:51:54 GMT):
Hello, I would like to create a collection(private data) where a group of organizations can only READ AND WRITE and other group of organizations can only READ, how can I achieve this?

dave.enyeart (Wed, 20 Feb 2019 15:51:57 GMT):
use upgrade to deploy a new version of chaincode

dave.enyeart (Wed, 20 Feb 2019 15:51:57 GMT):
@BlahBlah use upgrade to deploy a new version of chaincode

dave.enyeart (Wed, 20 Feb 2019 15:52:15 GMT):
@JulianSolarte you can add more granular access control logic in the chaincode, see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#chaincode-access-control

BlahBlah (Wed, 20 Feb 2019 15:53:31 GMT):
if i increase the `-v` i get:

BlahBlah (Wed, 20 Feb 2019 15:53:42 GMT):
error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (zoo:2)

dave.enyeart (Wed, 20 Feb 2019 15:54:22 GMT):
@florianc @klkumar369 please direct node.js sdk questions to #fabric-sdk-node , the experts hang out over there

BlahBlah (Wed, 20 Feb 2019 15:55:00 GMT):
but the chaincode docker said: Registering with peer peer:7052 as chaincode "zoo:2"

dave.enyeart (Wed, 20 Feb 2019 15:55:18 GMT):
@BlahBlah you need to install the new version to the peer before calling upgrade

BlahBlah (Wed, 20 Feb 2019 15:56:37 GMT):
you mean peer node install?

dave.enyeart (Wed, 20 Feb 2019 15:57:49 GMT):
`peer chaincode install` then `peer chaincode upgrade`

BlahBlah (Wed, 20 Feb 2019 15:58:15 GMT):
okay, i competly lost it now

BlahBlah (Wed, 20 Feb 2019 15:59:00 GMT):
in first place: install & instantiate, after this invoke works

maxrobot (Wed, 20 Feb 2019 15:59:11 GMT):
has anyone found the error: panic: Error creating dir if missing: error creating dir [/var/hyperledger/production/ledgersData/ledgerProvider/]: mkdir /var/hyperledger/production/ledgersData: permission denied ``` ```

BlahBlah (Wed, 20 Feb 2019 15:59:23 GMT):
now changing some chaincode

BlahBlah (Wed, 20 Feb 2019 15:59:55 GMT):
now install & upgrade with higher -v?

BlahBlah (Wed, 20 Feb 2019 15:59:55 GMT):
now install & upgrade with incremented -v?

dave.enyeart (Wed, 20 Feb 2019 16:00:03 GMT):
yes

BlahBlah (Wed, 20 Feb 2019 16:00:08 GMT):
no more instantiate?

dave.enyeart (Wed, 20 Feb 2019 16:00:28 GMT):
right. instanstiate is used for first version, upgrade is used for subsequent versions.

dave.enyeart (Wed, 20 Feb 2019 16:00:28 GMT):
right. `instantiate` is used for first version, `upgrade` is used for subsequent versions.

BlahBlah (Wed, 20 Feb 2019 16:01:04 GMT):
so `upgrade` is the brother of `instantiate`, not `install`?

dave.enyeart (Wed, 20 Feb 2019 16:01:06 GMT):
in both cases you have to `install` first

dave.enyeart (Wed, 20 Feb 2019 16:01:13 GMT):
right

BlahBlah (Wed, 20 Feb 2019 16:01:17 GMT):
ahhhh!

dave.enyeart (Wed, 20 Feb 2019 16:01:49 GMT):
`install` is a local peer command. `instantiate` and `upgrade` are channel commands.

florianc (Wed, 20 Feb 2019 16:01:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zhEi2QSweJSCLCqWA) @dave.enyeart Thanks

BlahBlah (Wed, 20 Feb 2019 16:02:15 GMT):
is it possible to speed up install? it tars a bunch of files from the node_modules diretory

BlahBlah (Wed, 20 Feb 2019 16:02:15 GMT):
is it possible to speed up install? it tars a bunch of files from the node_modules directory

dave.enyeart (Wed, 20 Feb 2019 16:03:03 GMT):
the node experts in #fabric-sdk-node may know

BlahBlah (Wed, 20 Feb 2019 16:03:11 GMT):
thank you very much

blockchainer (Wed, 20 Feb 2019 16:04:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WspMg4cos39oRGfKF) While you're at it @dave.enyeart , Could you also please help with this query?

dave.enyeart (Wed, 20 Feb 2019 16:04:45 GMT):
what command are you trying?

blockchainer (Wed, 20 Feb 2019 16:06:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HqeygLNz9BhaBwFjA) @dave.enyeart peer chaincode instantiate \ -o org1.orderer:7050 \ -C mychannel \ -n mycc \ -l "golang" \ -v 1.0 \ -c '{"Args":[]}' \ -P "OR ('org1MSP.member','org2MSP.member')"

dave.enyeart (Wed, 20 Feb 2019 16:08:34 GMT):
looks good to me. try collecting debug on peer side. you can open a jira issue and attach the debug.

dave.enyeart (Wed, 20 Feb 2019 16:08:49 GMT):
what version?

blockchainer (Wed, 20 Feb 2019 16:09:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lo3Q7mhojqADdLttR) @dave.enyeart I'm using 1.4

maxrobot (Wed, 20 Feb 2019 16:09:34 GMT):
``` vagrant@ubuntu-xenial:/opt/gopath/src/github.com/hyperledger/fabric$ peer node start 2019-02-20 16:09:00.010 UTC [nodeCmd] serve -> INFO 001 Starting peer: Version: 1.3.1 Commit SHA: 66a2b49 Go version: go1.11.1 OS/Arch: linux/amd64 Experimental features: false Chaincode: Base Image Version: 0.4.13 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger 2019-02-20 16:09:00.011 UTC [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt 2019-02-20 16:09:00.011 UTC [kvledger] NewProvider -> INFO 003 Initializing ledger provider panic: Error creating dir if missing: error creating dir [/var/hyperledger/production/ledgersData/ledgerProvider/]: mkdir /var/hyperledger/production/ledgersData: permission denied goroutine 1 [running]: github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.(*DB).Open(0xc0004d0900) ```

blockchainer (Wed, 20 Feb 2019 16:09:35 GMT):
But that could be one problem - I'm not sure how to make sure my config files are on the same version.

dave.enyeart (Wed, 20 Feb 2019 16:09:46 GMT):
start peer with `FABRIC_LOGGING_SPEC=DEBUG`

maxrobot (Wed, 20 Feb 2019 16:09:50 GMT):
Does anyone understand why I am getting this error?

blockchainer (Wed, 20 Feb 2019 16:10:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=osaiRehwRKNx3ShaC) @dave.enyeart Alright, I try

maxrobot (Wed, 20 Feb 2019 16:10:09 GMT):
I am running the devenv in a vagrant so I don't why the permissions are not correcyt

dave.enyeart (Wed, 20 Feb 2019 16:13:11 GMT):
i can only say the obvious... check file system permissions...

dave.enyeart (Wed, 20 Feb 2019 16:13:17 GMT):
have to step away for now...

Minskyy (Wed, 20 Feb 2019 16:20:40 GMT):
Hey guys, I have a question about Composer vs Fabric, from my understanding, if I want to use Composer, I will be limited to using 1 channel only, is this correct?

SJoshi7 (Wed, 20 Feb 2019 16:25:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yePRkReNZfWDJfk26) @Minskyy yes, the concept of channel is in fabric and not in composer

SJoshi7 (Wed, 20 Feb 2019 16:25:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vSTqcpW5XRM6fZw2X) *feature

SJoshi7 (Wed, 20 Feb 2019 16:27:14 GMT):
Is anyone free for sometime to help me with a good understanding of endorsing and consensus in fabric?

Minskyy (Wed, 20 Feb 2019 16:36:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vSTqcpW5XRM6fZw2X) @SJoshi7 Alright, I am trying to design a network for my MsC thesis, and I have to provide some restrictions on data access for some peers and clients. Is it reasonable to do all of this through ACL, instead of using channels? From my understanding, the disadvantage is on the fact that peers would be able to bypass the ACL rules, by reading the database directly, is this correct?

Javi (Wed, 20 Feb 2019 16:52:01 GMT):
Hi everyone!, I'm stuck in this error: ``` 2019-02-20T16:48:26.695Z - error: [Peer.js]: sendProposal - timed out after:8000 2019-02-20T16:48:26.697Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: REQUEST_TIMEOUT Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: REQUEST_TIMEOUT ``` Maybe, the server can't reach the peer0, in my connection profile the URL of the peer is grpc://localhost:7051, but the container is in a custom network, can be this a problem?? The fabric network logs don't show anything.... any idea??

Javi (Wed, 20 Feb 2019 16:52:37 GMT):
The server can't send a propostal to the peer

mbwhite (Wed, 20 Feb 2019 16:57:17 GMT):
Can I ask what in people's experience causes this error when creating a channel ' Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied' Cleaned out all docker volumes, networks etc.

Javi (Wed, 20 Feb 2019 17:02:15 GMT):
@mbwhite maybe the identity isn't correct

mbwhite (Wed, 20 Feb 2019 17:06:44 GMT):
Could be; which identity are you thinking of?

Javi (Wed, 20 Feb 2019 17:08:26 GMT):
the identity of your orderer

Skoller (Wed, 20 Feb 2019 17:17:03 GMT):
Has joined the channel.

mbwhite (Wed, 20 Feb 2019 17:24:28 GMT):
everything looks good - but will need to look again at some point; probably missing something obvious :-)

shibasisp (Wed, 20 Feb 2019 17:52:32 GMT):
Has joined the channel.

DtmCarlson (Wed, 20 Feb 2019 19:49:51 GMT):
Hi - has anyone seen this error? "No successful events received" this is using the node sdk contract.submitTransaction, im just using the basic-network from fabric_samples running locally the odd thing is that from the logs on the chaincode container i see my successful console debug messages and the transaction did succeed - both a put and a get yet i always get an error message sent back to the client app - the only thing i see on the peer is a warning about the envelope timestamp, but it even appears to have succeeded dispite the fact that i get an error message - here is a snipit from the peer container logs 2019-02-19 15:03:37.183 UTC [endorser] callChaincode -> INFO 07c [mychannel][5064deb9] Entry chaincode: name:"batchcontract" 2019-02-19 15:03:37.201 UTC [endorser] callChaincode -> INFO 07d [mychannel][5064deb9] Exit chaincode: name:"batchcontract" (18ms) 2019-02-19 15:03:37.201 UTC [comm.grpc.server] 1 -> INFO 07e unary call completed {"grpc.start_time": "2019-02-19T15:03:37.182Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.20.0.1:42286", "grpc.code": "OK", "grpc.call_duration": "19.3392ms"} 2019-02-19 15:03:37.221 UTC [common.deliver] deliverBlocks -> WARN 07f Rejecting deliver for 172.20.0.1:42306 due to envelope validation error: envelope timestamp 2019-02-20 19:40:45.995 +0000 UTC is more than 15m0s apart from current server time 2019-02-19 15:03:37.2216412 +0000 UTC m=+64547.591463801 2019-02-19 15:03:37.221 UTC [comm.grpc.server] 1 -> INFO 080 streaming call completed {"grpc.start_time": "2019-02-19T15:03:37.221Z", "grpc.service": "protos.Deliver", "grpc.method": "DeliverFiltered", "grpc.peer_address": "172.20.0.1:42306", "grpc.code": "OK", "grpc.call_duration": "441.7µs"} 2019-02-19 15:03:39.246 UTC [gossip.privdata] StoreBlock -> INFO 081 [mychannel] Received block [6] from buffer 2019-02-19 15:03:39.246 UTC [committer.txvalidator] Validate -> INFO 082 [mychannel] Validated block [6] in 0ms 2019-02-19 15:03:39.321 UTC [kvledger] CommitWithPvtData -> INFO 083 [mychannel] Committed block [6] with 1 transaction(s) in 74ms (state_validation=25ms block_commit=32ms state_commit=5ms)

jeka_gompa (Wed, 20 Feb 2019 19:56:31 GMT):
@jeffgarratt and @dpitt3 thanks for answering my question.

nfrunza (Wed, 20 Feb 2019 20:03:40 GMT):
Hi All, need help on configuring fabric network with metrics, anyone has an example or can guide?

blockchainer (Wed, 20 Feb 2019 21:02:32 GMT):
I keep getting this error (in the orderer): ``` streaming call completed {"grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "172.30.0.3:58724", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "21.532183ms"} ``` but there's no error (or mention of any failure) in the peer. I'm guessing this could be a timeout setting somewhere, but not sure where...Is my assumption correct? If yes, where is this config?

blockchainer (Wed, 20 Feb 2019 21:04:15 GMT):
It comes when I'm trying to instantiate my chaincode using this command: ``` peer chaincode instantiate \ -o org1.orderer:7050 \ -C mychannel \ -n mycc \ -l "golang" \ -v 1.0 \ -c '{"Args":[]}' \ -P "OR ('org1MSP.member','org2MSP.member')" ``` Interestingly, the chaincode container does boot up.

snambi (Wed, 20 Feb 2019 21:06:18 GMT):
Has joined the channel.

snambi (Wed, 20 Feb 2019 21:06:35 GMT):
Hello All

snambi (Wed, 20 Feb 2019 21:06:37 GMT):
I'm trying to run the fabric tutorial "build your first network". Whether it is Mac or Linux, the tutorial never works. Have anyone succeeded?

dave.enyeart (Wed, 20 Feb 2019 21:07:04 GMT):
@DtmCarlson Looks like your client system time and peer are different, therefore you aren't authorized to receive events: WARN 07f Rejecting deliver for 172.20.0.1:42306 due to envelope validation error: envelope timestamp 2019-02-20 19:40:45.995 +0000 UTC is more than 15m0s apart from current server time 2019-02-19 15:03:37.2216412 +0000 UTC m=+64547.591463801

DtmCarlson (Wed, 20 Feb 2019 21:08:11 GMT):
@dave.enyeart thanks - so is this a docker issue then? when i spin up the cli i can call peer chaincode query and invoke with no issues

krabradosty (Wed, 20 Feb 2019 21:08:20 GMT):
Hello. Is attribute `hf.Type` of certificate used in Fabric?

DtmCarlson (Wed, 20 Feb 2019 21:08:29 GMT):
and i dont see the timestamp warning

dave.enyeart (Wed, 20 Feb 2019 21:09:06 GMT):
@DtmCarlson no such check on invoke. yeah could be a docker timestamp issue... i think i've seen that before and restarting the docker service resolved it

DtmCarlson (Wed, 20 Feb 2019 21:09:52 GMT):
hmmmm -thought i did that but ill try again - thx

dave.enyeart (Wed, 20 Feb 2019 21:11:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fkKF7suKu9uRWjHnb) @mbwhite we're trying to get that message improved, see https://jira.hyperledger.org/browse/FAB-14094. it's a permission issue, often caused by misconfigured msp. if you run server with debug it provides more context

wlahti (Wed, 20 Feb 2019 21:13:21 GMT):
@DtmCarlson If you're wondering, the check is there on the event service registration to avoid possible relay attacks, which could allow a malicious peer to continue receiving block events even if the channel has revoked that identities access rights to the network.

wlahti (Wed, 20 Feb 2019 21:13:21 GMT):
@DtmCarlson If you're wondering, the check is there on the event service registration to avoid possible relay attacks, which could allow a malicious peer to continue receiving block events even if the channel has agreed to revoke that identity's access rights to the network.

DtmCarlson (Wed, 20 Feb 2019 21:18:47 GMT):
@wlahti good to know - thank you

krabradosty (Wed, 20 Feb 2019 21:28:13 GMT):
Am I right that if Organizational Units feature is not enabled or ClientOUIdentifier and PeerOUIdentifier have the same CA, then any identity issued by this CA can start own peer?

krabradosty (Wed, 20 Feb 2019 21:28:13 GMT):
Am I right that if Organizational Units feature is not enabled or ClientOUIdentifier and PeerOUIdentifier have the same CA, then any identity issued by this CA can start own peer? I'm confused because certificates generated by cryptogen tool don't contain OU field or hf.Type attribute. How do Fabric network distinguish peer and clients in that case?

krabradosty (Wed, 20 Feb 2019 21:28:13 GMT):
Am I right that if Organizational Units feature is not enabled or ClientOUIdentifier and PeerOUIdentifier have the same CA, then any identity issued by this CA can start own peer?

krabradosty (Wed, 20 Feb 2019 21:28:13 GMT):
Am I right that if Organizational Units feature is not enabled, then any identity issued by this CA can start own peer?

DtmCarlson (Wed, 20 Feb 2019 21:30:43 GMT):
@dave.enyeart Thank you! - bouncing docker fixed my issue

DtmCarlson (Wed, 20 Feb 2019 21:31:05 GMT):
cant believe it was that simple - was scratching my head for hours on this - ugggg

snambi (Wed, 20 Feb 2019 21:36:58 GMT):
`orderer.example.com | OS/Arch: linux/amd64 orderer.example.com | 2019-02-20 21:35:09.660 UTC [orderer.common.server] Start -> INFO 006 Beginning to serve requests couchdb | grep: /opt/couchdb/etc/local.d/*.ini: No such file or directory couchdb | **************************************************** couchdb | WARNING: CouchDB is running in Admin Party mode. couchdb | This will allow anyone with access to the couchdb | CouchDB port to access your database. In couchdb | Docker's default configuration, this is couchdb | effectively any other container on the same couchdb | system. couchdb | Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password" couchdb | to set it in "docker run". couchdb | **************************************************** peer0.org1.example.com | 2019-02-20 21:35:10.773 UTC [nodeCmd] serve -> INFO 001 Starting peer: peer0.org1.example.com | Version: 1.4.0 peer0.org1.example.com | Commit SHA: d700b43 peer0.org1.example.com | Go version: go1.11.1 peer0.org1.example.com | OS/Arch: linux/amd64 peer0.org1.example.com | Chaincode: peer0.org1.example.com | Base Image Version: 0.4.14 peer0.org1.example.com | Base Docker Namespace: hyperledger peer0.org1.example.com | Base Docker Label: org.hyperledger.fabric peer0.org1.example.com | Docker Namespace: hyperledger peer0.org1.example.com | 2019-02-20 21:35:10.778 UTC [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt peer0.org1.example.com | 2019-02-20 21:35:10.778 UTC [kvledger] NewProvider -> INFO 003 Initializing ledger provider peer0.org1.example.com | 2019-02-20 21:35:10.864 UTC [kvledger] NewProvider -> INFO 004 ledger provider Initialized peer0.org1.example.com | 2019-02-20 21:35:10.947 UTC [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.24.0.4:5984: connect: connection refused peer0.org1.example.com | fatal error: unexpected signal during runtime execution peer0.org1.example.com | [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f5ae0149259] peer0.org1.example.com | peer0.org1.example.com | runtime stack: peer0.org1.example.com | runtime.throw(0x123f0ff, 0x2a) peer0.org1.example.com | /opt/go/src/runtime/panic.go:608 +0x72 peer0.org1.example.com | runtime.sigpanic() peer0.org1.example.com | /opt/go/src/runtime/signal_unix.go:374 +0x2f2 peer0.org1.example.com | peer0.org1.example.com | goroutine 58 [syscall]: peer0.org1.example.com | runtime.cgocall(0xe1bdc0, 0xc0003c4e00, 0x29) peer0.org1.example.com | /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0003c4dc8 sp=0xc0003c4d90 pc=0x4039ee peer0.org1.example.com | net._C2func_getaddrinfo(0xc000149e50, 0x0, 0xc0005ca510, 0xc00000ea38, 0x0, 0x0, 0x0) peer0.org1.example.com | _cgo_gotypes.go:92 +0x55 fp=0xc0003c4e00 sp=0xc0003c4dc8 pc=0x615b95 peer0.org1.example.com | net.cgoLookupIPCNAME.func1(0xc000149e50, 0x0, 0xc0005ca510, 0xc00000ea38, 0x8, 0x8, 0x206e656877206465) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc0003c4e48 sp=0xc0003c4e00 pc=0x61b2b1 peer0.org1.example.com | net.cgoLookupIPCNAME(0xc000149e40, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc0003c4f38 sp=0xc0003c4e48 pc=0x617153 peer0.org1.example.com | net.cgoIPLookup(0xc00015a2a0, 0xc000149e40, 0x7) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0003c4fc8 sp=0xc0003c4f38 pc=0x61780d peer0.org1.example.com | runtime.goexit() peer0.org1.example.com | /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0003c4fd0 sp=0xc0003c4fc8 pc=0x45dc81 peer0.org1.example.com | created by net.cgoLookupIP peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:211 +0xad`

snambi (Wed, 20 Feb 2019 21:36:58 GMT):
orderer.example.com | OS/Arch: linux/amd64 orderer.example.com | 2019-02-20 21:35:09.660 UTC [orderer.common.server] Start -> INFO 006 Beginning to serve requests couchdb | grep: /opt/couchdb/etc/local.d/*.ini: No such file or directory couchdb | **************************************************** couchdb | WARNING: CouchDB is running in Admin Party mode. couchdb | This will allow anyone with access to the couchdb | CouchDB port to access your database. In couchdb | Docker's default configuration, this is couchdb | effectively any other container on the same couchdb | system. couchdb | Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password" couchdb | to set it in "docker run". couchdb | **************************************************** peer0.org1.example.com | 2019-02-20 21:35:10.773 UTC [nodeCmd] serve -> INFO 001 Starting peer: peer0.org1.example.com | Version: 1.4.0 peer0.org1.example.com | Commit SHA: d700b43 peer0.org1.example.com | Go version: go1.11.1 peer0.org1.example.com | OS/Arch: linux/amd64 peer0.org1.example.com | Chaincode: peer0.org1.example.com | Base Image Version: 0.4.14 peer0.org1.example.com | Base Docker Namespace: hyperledger peer0.org1.example.com | Base Docker Label: org.hyperledger.fabric peer0.org1.example.com | Docker Namespace: hyperledger peer0.org1.example.com | 2019-02-20 21:35:10.778 UTC [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt peer0.org1.example.com | 2019-02-20 21:35:10.778 UTC [kvledger] NewProvider -> INFO 003 Initializing ledger provider peer0.org1.example.com | 2019-02-20 21:35:10.864 UTC [kvledger] NewProvider -> INFO 004 ledger provider Initialized peer0.org1.example.com | 2019-02-20 21:35:10.947 UTC [couchdb] handleRequest -> WARN 005 Retrying couchdb request in 125ms. Attempt:1 Error:Get http://couchdb:5984/: dial tcp 172.24.0.4:5984: connect: connection refused peer0.org1.example.com | fatal error: unexpected signal during runtime execution peer0.org1.example.com | [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f5ae0149259] peer0.org1.example.com | peer0.org1.example.com | runtime stack: peer0.org1.example.com | runtime.throw(0x123f0ff, 0x2a) peer0.org1.example.com | /opt/go/src/runtime/panic.go:608 +0x72 peer0.org1.example.com | runtime.sigpanic() peer0.org1.example.com | /opt/go/src/runtime/signal_unix.go:374 +0x2f2 peer0.org1.example.com | peer0.org1.example.com | goroutine 58 [syscall]: peer0.org1.example.com | runtime.cgocall(0xe1bdc0, 0xc0003c4e00, 0x29) peer0.org1.example.com | /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0003c4dc8 sp=0xc0003c4d90 pc=0x4039ee peer0.org1.example.com | net._C2func_getaddrinfo(0xc000149e50, 0x0, 0xc0005ca510, 0xc00000ea38, 0x0, 0x0, 0x0) peer0.org1.example.com | _cgo_gotypes.go:92 +0x55 fp=0xc0003c4e00 sp=0xc0003c4dc8 pc=0x615b95 peer0.org1.example.com | net.cgoLookupIPCNAME.func1(0xc000149e50, 0x0, 0xc0005ca510, 0xc00000ea38, 0x8, 0x8, 0x206e656877206465) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc0003c4e48 sp=0xc0003c4e00 pc=0x61b2b1 peer0.org1.example.com | net.cgoLookupIPCNAME(0xc000149e40, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc0003c4f38 sp=0xc0003c4e48 pc=0x617153 peer0.org1.example.com | net.cgoIPLookup(0xc00015a2a0, 0xc000149e40, 0x7) peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0003c4fc8 sp=0xc0003c4f38 pc=0x61780d peer0.org1.example.com | runtime.goexit() peer0.org1.example.com | /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0003c4fd0 sp=0xc0003c4fc8 pc=0x45dc81 peer0.org1.example.com | created by net.cgoLookupIP peer0.org1.example.com | /opt/go/src/net/cgo_unix.go:211 +0xad

snambi (Wed, 20 Feb 2019 21:38:21 GMT):
`cd basic-network; docker-compose up` results in the above error.

sacchit (Wed, 20 Feb 2019 21:42:16 GMT):
Has joined the channel.

Tejus.kabadi (Wed, 20 Feb 2019 21:54:33 GMT):
Has joined the channel.

jeka_gompa (Wed, 20 Feb 2019 23:21:22 GMT):
Hi everybody, does anybody know if there is a minimum number of Ordering Service nodes that have to be provided in order to guarantee crash-fault- tolerant capabilities. The documentation mentions that it is required a minimum of 4 kafka nodes and 3,5 or 7 zookeeper servers but it does not mention anything about the ordering services. (https://hyperledger-fabric.readthedocs.io/en/release-1.4/kafka.html) Can an organization provide several ordering service nodes? Thanks in advance

snambi (Wed, 20 Feb 2019 23:55:11 GMT):
Fabric tutorials seem to be running into one issue or other. Different issues are noted in different OSes ( though docker-compose should be helping here ). Is there a manual setup tutorial for Fabric?

DarwinHarianto (Thu, 21 Feb 2019 06:32:03 GMT):
hi everybody, I want to ask, does fabric support the usage of rest server just like composer does? I want to know if there is a way to see my fabric data from my phone. I tried fabric at the tutorial, and it seems to be able to do calculations on assets. Can I see all the transactions history like after 100.000 trades using my phone(the details like what I traded and what time was it traded)?

sudhasakshi (Thu, 21 Feb 2019 06:40:03 GMT):
HI, I removed all the networks and I up my practice_basic network then installed chaincode but while instantiating Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network _basic not found

DarwinHarianto (Thu, 21 Feb 2019 06:44:21 GMT):
there is a space in network _basic, it shouldnt be there @sudhasakshi

bhithesh (Thu, 21 Feb 2019 06:44:47 GMT):
Guys, I ran the Balance transfer example over night and now the /Dev/sda1 is full , It almost filled 30GB

bhithesh (Thu, 21 Feb 2019 06:45:35 GMT):
What has caused this problem ? I was running Hyperledger Explorer also of that example.

sudhasakshi (Thu, 21 Feb 2019 06:52:22 GMT):
my network is parctice _basic but why it is instantiating in network _basic

sudhasakshi (Thu, 21 Feb 2019 06:53:18 GMT):
my network is practice _basic but why it is instantiating in network _basic @DarwinHarianto

DarwinHarianto (Thu, 21 Feb 2019 06:56:46 GMT):
for why, I don't really know. did you see this? https://stackoverflow.com/questions/46775044/error-when-try-to-instantiate-chain-code-on-hyperledger-fabric I have had the same problem, and this helped me

bhithesh (Thu, 21 Feb 2019 07:12:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t6emzYjXX9upiHqXj) Docker logs was creating the problem

RazaDen (Thu, 21 Feb 2019 08:04:26 GMT):
Hello everyone, I am trying to run the commercial-paper tutorial. I bring the network up by running the "start.sh" script, but when I attempt to run the cli of MagnetoCorp, I get the following error: """ Starting cliMagnetoCorp ... Starting cliMagnetoCorp ... error ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: network 6d0cec3a0512750c95f2c59056704911351f51dc0086def8f028ebcf3cb0cb2a not found ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: network 6d0cec3a0512750c95f2c59056704911351f51dc0086def8f028ebcf3cb0cb2a not found ERROR: Encountered errors while bringing up the project. """

arvindkumar6568 (Thu, 21 Feb 2019 09:01:06 GMT):
hello experts using composer i want to add peer in a channel that aceess only data, not update the data

arvindkumar6568 (Thu, 21 Feb 2019 09:01:23 GMT):
or invoke the chaincode

florianc (Thu, 21 Feb 2019 09:04:23 GMT):
I believe you want to set the endorsement policy of your chaincode ?

Sarath_Kumar (Thu, 21 Feb 2019 09:21:24 GMT):
Hi All, I am unable to connect peer from another host(machine2) to channel from machine1. Error : *failed connecting to orderer example com:7050 error context deadline exceeded* *How to find the root cause of this issue?* I am able to ping *89.222.xx.xx 7050* I am able to telnet *89.222.xx.xx 7050*

arvindkumar6568 (Thu, 21 Feb 2019 09:23:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rGRmhfT4AHFJYwjZk) @Sarath_Kumar can you provide docker-compose file

Karthik1337 (Thu, 21 Feb 2019 09:25:49 GMT):
Has joined the channel.

Karthik1337 (Thu, 21 Feb 2019 09:26:13 GMT):
Hi I am trying to use hyper ledger fabric go sdk. After I downloaded dependencies it shows error like follows. Anyone know the solution?

sudhasakshi (Thu, 21 Feb 2019 09:26:18 GMT):
HI, I removed all the networks and I up my practice_basic network then installed chaincode but while instantiating Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network _basic not found

arvindkumar6568 (Thu, 21 Feb 2019 09:26:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zGQrvkWcKw4PXjHA9) @florianc i am not using endorsement policy, i have two peers on a channel and i want one peer can update the ledher and second peer can access the ledger only

Karthik1337 (Thu, 21 Feb 2019 09:27:46 GMT):

Screenshot 2019-02-21 at 2.44.18 PM.png

Karthik1337 (Thu, 21 Feb 2019 09:28:08 GMT):

Screenshot 2019-02-21 at 2.45.40 PM.png

Sarath_Kumar (Thu, 21 Feb 2019 09:28:09 GMT):

docker-compose.yml.txt

Sarath_Kumar (Thu, 21 Feb 2019 09:28:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iz7Aijbzp6NtTKXv3) @arvindkumar6568 Hi i have sent my docker file

ParkerA (Thu, 21 Feb 2019 09:52:13 GMT):
Hey guys, I am trying to find a framework for our platform. We want to build a specific-use blockchain network for the tokenization of financial assets. It seems that hyperledger has all of the features that we need, but we want to create a PUBLIC network. I keep researching hyperledger and it I keep seeing that hyperledger is supposedly very bad for building public networks with but it seems to have EVERYTHING we need. So why can't we build a public network with cryptocurrencies running on top of it?

maxrobot (Thu, 21 Feb 2019 10:15:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ErA3C5YAmB4BKDJgA) @ParkerA Use Ethereum :)

maxrobot (Thu, 21 Feb 2019 10:52:28 GMT):
Hi all, I am trying to build hyperledger locally for dev purposes. Looking through the docs I see `Building Hyperledger Fabric` where it instructs users to run the command ``` cd $GOPATH/src/github.com/hyperledger/fabric make dist-clean all ``` once this finishes I have a number of images in my docker, are they built from my local code or pulled from the docker hub?

Javi (Thu, 21 Feb 2019 11:01:33 GMT):
In the `networkConnection.yaml` file used by the `Gateway` class, the urls of the orderer and peers needed to change the URL to use with docker for windows?? I'm not able to connect to it using `localhost`...

Javi (Thu, 21 Feb 2019 11:02:50 GMT):
but if I use the IP of the docker network, it does not work either

Javi (Thu, 21 Feb 2019 11:03:58 GMT):
any idea? I'm able to invoke chaincode from the cli container, but doesn't work from my rest server, and I think that the error is inside the `networkConnection.yaml` file

sudhasakshi (Thu, 21 Feb 2019 11:11:21 GMT):
Hi, Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [myc] creator org [Org1MSP]

mastersingh24 (Thu, 21 Feb 2019 11:25:41 GMT):
@javi - what error are you getting? Is TLS enabled?

n_marcetic (Thu, 21 Feb 2019 11:29:42 GMT):
Has joined the channel.

Javi (Thu, 21 Feb 2019 11:30:31 GMT):
@mastersingh24 yes, tls is enabled

Javi (Thu, 21 Feb 2019 11:30:36 GMT):
I'm getting a timeout

Javi (Thu, 21 Feb 2019 11:31:02 GMT):
``` 2019-02-21T11:25:43.613Z - error: [Peer.js]: sendProposal - timed out after:120001 2019-02-21T11:25:43.615Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: REQUEST_TIMEOUT ```

Javi (Thu, 21 Feb 2019 11:42:22 GMT):
@mastersingh24 I'm testing in an ubuntu, and the error is different.... ``` 2019-02-21T11:40:47.572Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was E rror: 2 UNKNOWN: Stream removed Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed ``` The network profile is the same, all service urls with `localhost:`

Javi (Thu, 21 Feb 2019 11:45:38 GMT):
And the error from the peer is: ``` 2019-02-21 11:40:47.566 UTC [core.comm] ServerHandshake -> ERRO 05e TLS handshake failed with error tls: first record does n ot look like a TLS handshake {"server": "PeerServer", "remote address": "172.18.0.1:46392"} ``` I see a ticket in jira with same error, but no more info. I'm using the same certificate that when I invoke the chaincode from the `cli`container....

klkumar369 (Thu, 21 Feb 2019 11:50:57 GMT):
Hello! I want to check the connection between the peers. I believe it uses gRPC in between the peers. Is there any way to check this? Thanks much!

sudhasakshi (Thu, 21 Feb 2019 12:01:10 GMT):
Hi, where i have to set COMPOSE_PROJECT_NAME in my yaml file

klkumar369 (Thu, 21 Feb 2019 12:08:14 GMT):
COMPOSE_PROJECT_NAME is set in .env file

sudhasakshi (Thu, 21 Feb 2019 12:08:52 GMT):
i done but it is not taking form env

maxrobot (Thu, 21 Feb 2019 12:11:30 GMT):
Hi, if I clone the repo github.com/hyperledger/fabric

klkumar369 (Thu, 21 Feb 2019 12:11:31 GMT):
how are you checking this? Generally you should be able to check while your network startup.. for example, Creating network "*net*_default" with the default driver Creating network "*net*_yourNetworkName" with the default driver

maxrobot (Thu, 21 Feb 2019 12:11:45 GMT):
how can I compile the code to produce the docker images locally and run a network?

maxrobot (Thu, 21 Feb 2019 12:12:12 GMT):
I want to investigate some functionality of the peer cli and how signing is happening

sudhasakshi (Thu, 21 Feb 2019 12:12:24 GMT):
iam using docker-compose -f docker-compose.yaml up -d command @klkumar369

klkumar369 (Thu, 21 Feb 2019 12:17:30 GMT):
@sudhasakshi yes, that's the correct way. What does it display while creating volumes on your network startup ?

mastersingh24 (Thu, 21 Feb 2019 12:37:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Hhggf7xWojS7LbYW) @Javi This means that TLS is not enabled for the client

florianc (Thu, 21 Feb 2019 13:52:32 GMT):
I am sorry, but there is something that I really don't get with fabric: Why is eveyrthing so complicated? Explanations: You created a lot of tutorials, steps by steps stuff and this is good, don't get me wrong. But everything is specific to a particular scenario and does not explain the very basic. For example, I have a very basic network on bluemix, I am trying to create a nodejs app to interact with it, and there is no tuto to explain you, in a very simple context, how to do that. I get my connexionProfile for the gateway, ok, nice. But where do I find my admin creds? Where is my wallet? The question is just the following: Where are the very basic stuff I need to do a very basic thing, not with all this fancy commercial/car stuf.

Javi (Thu, 21 Feb 2019 14:02:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QGYSTh4nmcadKuLAi) @mastersingh24 and how I enable TLS in client using the `networkConnection.yaml` profile??

DeepakMule (Thu, 21 Feb 2019 14:27:40 GMT):
In Kafka based ordering service - how to enable SSL communication ?

DeepakMule (Thu, 21 Feb 2019 14:27:40 GMT):
In Kafka based ordering service - how to enable SSL communication ? is there any link / procedure available ? I found only limited information in docs : as "Set up the OSNs and Kafka cluster so that they communicate over SSL. (Optional step, but highly recommended.) Refer to the Confluent guide for the Kafka cluster side of the equation, and set the keys under Kafka.TLS in orderer.yaml on every OSN accordingly.

benjamin.verhaegen (Thu, 21 Feb 2019 14:35:18 GMT):
anybody working with IBM Blockchain ?

dpitt3 (Thu, 21 Feb 2019 15:46:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sEfSRJGMGeQceuwjJ) @florianc so, here's an open source hyperledger browser implemented in React and Node, that accesses a HyperLedger network using the node-sdk... seeing working code helps in understanding... https://github.com/in-the-keyhole/byzantine-browser

florianc (Thu, 21 Feb 2019 15:50:19 GMT):
@dpitt3 Thank you for your help. I actually "found" this repo (https://github.com/IBM/car-auction-network-fabric-node-sdk) which was extremely helpful for my understanding. Sorry if I sounded aggressive, it was not my intention at all. I was just upset not being able to find what I was looking for.

blockchainer (Thu, 21 Feb 2019 16:05:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sEfSRJGMGeQceuwjJ) @florianc +1

Javi (Thu, 21 Feb 2019 16:39:54 GMT):
how I can instantiate a chaincode behind a corportate proxy? I set in the container the `npm config set proxy http://....` config but it doesn't works

Antimttr (Thu, 21 Feb 2019 16:48:22 GMT):
@florianc I was able to do soemthing like that using the balance transfer demo

Antimttr (Thu, 21 Feb 2019 16:48:48 GMT):
i built a laravel front end, which talked to the nodejs api which talked to the hyperledger, works great

Antimttr (Thu, 21 Feb 2019 16:49:20 GMT):
then i simply added my own methods to the chaincode and i was creating my own ledger records

Javi (Thu, 21 Feb 2019 18:04:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y45kdxSHeqwCiaSgF) I solved this issue adding the `npm config set proxy...` to the base node docker image, now it works!!

Javi (Thu, 21 Feb 2019 18:04:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y45kdxSHeqwCiaSgF) I solved this issue adding the `npm config set proxy...` to the base ccenv node docker image, now it works!!

pieraco (Thu, 21 Feb 2019 18:47:48 GMT):
Hi, Javi, same problem here! How do you 'add' this command to the ccenv docker image?

pieraco (Thu, 21 Feb 2019 18:48:17 GMT):
Hi, @Javi , same problem here! How do you 'add' this command to the ccenv docker image?

Antimttr (Thu, 21 Feb 2019 19:52:45 GMT):
is it true that hyperledger fabric maxes out at 100k records?

SJoshi7 (Thu, 21 Feb 2019 19:57:32 GMT):
anyone here with good detailed understanding of fabric? I need some urgent help. Please let me know if you can

mastersingh24 (Thu, 21 Feb 2019 20:00:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2mq4Xu64BZs9p5WRj) @Antimttr ?????

Antimttr (Thu, 21 Feb 2019 20:01:36 GMT):
`Regardless of whether the pagination APIs are utilized, all chaincode queries are bound by totalQueryLimit (default 100000) from core.yaml. This is the maximum number of results that chaincode will iterate through and return to the client, in order to avoid accidental or malicious long-running queries.`

Antimttr (Thu, 21 Feb 2019 20:01:45 GMT):
i guess thats not an insertion limit

Antimttr (Thu, 21 Feb 2019 20:01:47 GMT):
but a query limit

Antimttr (Thu, 21 Feb 2019 20:02:28 GMT):
so that means that you use the pagination routines to get around it and query records above 100k in that case?

dave.enyeart (Thu, 21 Feb 2019 20:39:06 GMT):
You can override totalQueryLimit to a higher limit on the peer if you like, but your chaincode request is likely to timeout before the chaincode iterates through 100000 results regardless. So yes, the recommendation would be to use the pagination APIs to retrieve smaller sets of data, or better yet, design your queries such that massive result sets are not needed in the first place. If you need massive queries or aggregate queries, it is typically better to use block events to build a fit-for-purpose data store, rather than do these queries on-chain.

Antimttr (Thu, 21 Feb 2019 20:41:35 GMT):
where can i find the core.yaml file discussed here: https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_as_state_database.html

Antimttr (Thu, 21 Feb 2019 20:41:50 GMT):
ive searched for it in the entire fabric-samples directory tree and cant find it

Antimttr (Thu, 21 Feb 2019 20:46:12 GMT):
also refered to here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_tutorial.html?highlight=core.yaml#cdb-enable-couch

dave.enyeart (Thu, 21 Feb 2019 20:52:44 GMT):
core.yaml is the config file for the peer. In the Fabric peer container it can be found at /etc/hyperledger/fabric/core.yaml. Environment variable FABRIC_CFG_PATH references the location of core.yaml. Rather than edit core.yaml, most people override it's config values using environment variables when starting peer, for example in this case you could override totalQueryLimit by using CORE_LEDGER_STATE_TOTALQUERYLIMIT=200000.

Antimttr (Thu, 21 Feb 2019 20:55:53 GMT):
ok so i found in balance-transfer where the CORE_* variables are set: typescript/artifacts/docker-compose.yaml so if i wanted to change the state database for the peers i'd do it for each peer in their environment: prefix, correct?

dave.enyeart (Thu, 21 Feb 2019 20:57:34 GMT):
yes, here: https://github.com/hyperledger/fabric-samples/blob/release-1.4/balance-transfer/artifacts/docker-compose.yaml#L92-L97

SJoshi7 (Thu, 21 Feb 2019 20:57:52 GMT):
I guess core.yaml file is similar to what docker-compose.yaml is ....we don't use core.yaml now i beleive ... am i right @dave.enyeart ?

SJoshi7 (Thu, 21 Feb 2019 20:59:04 GMT):
@dave.enyeart please check you dm. I have some urgent queries. It would be great if you could help.

dave.enyeart (Thu, 21 Feb 2019 20:59:07 GMT):
core.yaml is where the config options and defaults are defined, most people override using environment variables, for example in the docker compose yaml files.

SJoshi7 (Thu, 21 Feb 2019 20:59:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HKBWQxRSTkKtKbYDM) @dave.enyeart yesss right

Rajatsharma (Thu, 21 Feb 2019 21:09:27 GMT):
I wanted to learn what's the Raft mechanism and how will it work ? Could anyone share any resource to go through that.

Antimttr (Thu, 21 Feb 2019 21:10:24 GMT):
@dave.enyeart thanks again!

SJoshi7 (Thu, 21 Feb 2019 21:20:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7D4ChEY5q8KY68zdy) @Rajatsharma Would you mind reading the raft paper ? (18 pages)

Rajatsharma (Thu, 21 Feb 2019 21:21:26 GMT):
Yes Please share the link and if you have any other simple resource share that too.

SJoshi7 (Thu, 21 Feb 2019 21:21:59 GMT):
https://raft.github.io/raft.pdf

Rajatsharma (Thu, 21 Feb 2019 21:22:20 GMT):
Thanks !!

SJoshi7 (Thu, 21 Feb 2019 21:23:14 GMT):
https://medium.com/@amangoeliitb/raft-consensus-algorithm-d93e7ee22b12

SJoshi7 (Thu, 21 Feb 2019 21:23:37 GMT):
https://medium.freecodecamp.org/in-search-of-an-understandable-consensus-algorithm-a-summary-4bc294c97e0d

SJoshi7 (Thu, 21 Feb 2019 21:23:45 GMT):
@Rajatsharma go through these

Rajatsharma (Thu, 21 Feb 2019 21:24:21 GMT):
@SJoshi7 Thanks a lot !!!

Antimttr (Thu, 21 Feb 2019 22:35:19 GMT):
aanyone have a clue on how to start the couchdb docker?

Antimttr (Thu, 21 Feb 2019 22:39:18 GMT):
https://medium.com/@malliksarvepalli/couchdb-configuration-for-hyperledger-fabric-1-2-on-multiple-hosts-using-docker-swarm-and-compose-c1af96f851

Antimttr (Thu, 21 Feb 2019 22:39:56 GMT):
tried following this but it references a directory that doesnt exist in fabric-samples, fabric-samples/fabric-multi-network directory

Antimttr (Thu, 21 Feb 2019 22:40:43 GMT):
@malliksarvepalli

malliksarvepalli (Thu, 21 Feb 2019 22:40:43 GMT):
Has joined the channel.

jeka_gompa (Thu, 21 Feb 2019 23:23:28 GMT):
Hi everybody, does anybody know if there is a minimum number of Ordering Service nodes that have to be provided in order to guarantee crash-fault- tolerant capabilities. The documentation mentions that it is required a minimum of 4 kafka nodes and 3,5 or 7 zookeeper servers but it does not mention anything about the ordering services. (https://hyperledger-fabric.readthedocs.io/en/release-1.4/kafka.html) Can an organization provide several ordering service nodes? Thanks in advance

ViniciusRibeiro (Thu, 21 Feb 2019 23:33:20 GMT):
Has joined the channel.

ViniciusRibeiro (Thu, 21 Feb 2019 23:33:39 GMT):
Hello, I'm using fabric 1.4 here and using a client middleware with fabric java sdk. I want gaining more performance on my blockchain, so, I send a proposal to my chaincode with grpcs call with a message more greater than 4194304. I searched in some forums about this topic and discovered a property config to make when initialize the channel, the configuration of max inbound message size, I put this attribute on my peer properties before initialize the channel but it does work, can I maked something wrong? I put it? peerProperties.put("grpc.NettyChannelBuilderOption.maxInboundMessageSize", 9999999);

RobiHarid (Fri, 22 Feb 2019 00:08:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=okSPP3aacwZDW4NQq) hey mate could you explain this in a bit more detail for a noob

RobiHarid (Fri, 22 Feb 2019 00:08:58 GMT):
@dpitt3 this is when my docker server is running the process should be active right?

jordanmmck (Fri, 22 Feb 2019 03:21:35 GMT):
I could really use some help... I have a network with 2 peers, both of which join the channel no problem. I set the policy to AND both peers when I send the instantiate command. Instantiate works fine. Peer 1 populates the ledger with the sample data, then if I query for the data on Peer 2 it will spin up a container and get the data. BUT if I simply do a chaincode invoke from Peer 1 the data does not get written to the ledger.

jordanmmck (Fri, 22 Feb 2019 03:21:59 GMT):
The data is only written if I include --peerAddresses flags for both peers in the command

jordanmmck (Fri, 22 Feb 2019 03:22:37 GMT):
Like this: docker exec cli peer chaincode invoke -o orderer.example.com:7050\ -C mychannel -n hyperstate\ --peerAddresses peer0.org1.example.com:7051\ --peerAddresses peer0.org2.example.com:7051\ -c '{"function":"sortTracks","Args":[""]}'

jordanmmck (Fri, 22 Feb 2019 03:23:27 GMT):
Does this ^ command simply send the invoke command to each peer? Ideally I could just send invoke to one peer and the other would update their ledger automatically, right?

hmmmachy (Fri, 22 Feb 2019 04:29:57 GMT):
Has joined the channel.

hmmmachy (Fri, 22 Feb 2019 04:33:52 GMT):
Hi Im new here, i have a problem following the documentation: (https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html) Chaincode for Developers on building chaincode part i have a problem accessing the github.com/hyperledger/fabric/core/chaincode/shim in go get -u github.com/hyperledger/fabric/core/chaincode/shim go build. I got this error # cd /home/username/go/src/github.com/hyperledger/fabric; git pull --ff-only You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull package github.com/hyperledger/fabric/core/chaincode/shim: exit status 1

hmmmachy (Fri, 22 Feb 2019 04:33:52 GMT):
HI guys what do you think the correct link of shim?? because when i type this command `go get -u github.com/hyperledger/fabric/core/chaincode/shim` i get this ff error: ```# cd /home/username/go/src/github.com/hyperledger/fabric; git pull --ff-only You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull package github.com/hyperledger/fabric/core/chaincode/shim: exit status 1``` im following this documentation: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html on `Building Chaincode` part Please help, im stuck!

raj_shekhar (Fri, 22 Feb 2019 05:37:31 GMT):
Has joined the channel.

ahmadraza (Fri, 22 Feb 2019 05:56:02 GMT):

Screenshot from 2019-02-22 10-52-46.png

ahmadraza (Fri, 22 Feb 2019 05:56:36 GMT):

Screenshot from 2019-02-22 10-54-08.png

ahmadraza (Fri, 22 Feb 2019 05:58:40 GMT):
I created one share in init method that is successfully created and i also can retrieve that one by same method above but when i request to create another one it does not seems to work nothing happened no response is given?

Aniket.1 (Fri, 22 Feb 2019 06:00:48 GMT):
Is there any chaincode publicly available which demonstrates the use of commonIterator?

Aniket.1 (Fri, 22 Feb 2019 07:46:51 GMT):
getting this error while trying to use couchDB: `2019-02-22 13:10:21.619 IST [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 062 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string 2019-02-22 13:10:21.619 IST [couchdb] VerifyCouchConfig -> ERRO 063 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string. Check the admin username and password.`

Aniket.1 (Fri, 22 Feb 2019 07:46:51 GMT):
getting this error while trying to use couchDB: ```2019-02-22 13:10:21.619 IST [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 062 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string 2019-02-22 13:10:21.619 IST [couchdb] VerifyCouchConfig -> ERRO 063 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string. Check the admin username and password.```

Aniket.1 (Fri, 22 Feb 2019 07:47:22 GMT):
any suggestion to resolve it?

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 08:02:14 GMT):
Hi i am trying to install a chaincode and i getting an error i never seen. All my peer belong to channel1

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 08:02:14 GMT):

Clipboard - February 22, 2019 9:02 AM

Logi (Fri, 22 Feb 2019 08:02:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EkswueH2fFebhvvrs) @jordanmmck is both the peer endorse flag set to true?

Aniket.1 (Fri, 22 Feb 2019 08:04:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5GYLqExpLS8ERa676) @AndresMartinezMelgar.itcl are you trying it with same version every time?

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 08:05:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s28GdLWkdnMZc7vm7) @Aniket.1 mmm yes, because i try to install in diferent peers

Logi (Fri, 22 Feb 2019 08:06:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CobmZAawomFyiWhTA) @AndresMartinezMelgar.itcl it shows, chaincode version already exists

Logi (Fri, 22 Feb 2019 08:07:55 GMT):
Do you see anything else in logs?

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 08:08:24 GMT):
1s, i am checking

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 08:11:57 GMT):
Ok, the chaincode was installing, for that i dont take nothing with "peer chaincode list -C channel1 --installed". I wait 2 min, then chaincode was installed correctly

Aniket.1 (Fri, 22 Feb 2019 08:14:15 GMT):
:thumbsup:

Logi (Fri, 22 Feb 2019 08:16:16 GMT):
great, use logs, that would show up the details, what's going on..

longnv1a (Fri, 22 Feb 2019 08:36:32 GMT):
Hi all, Do you know how many chaincode that I can install in on channel? Is it possible to install 1000 chaincode?

Logi (Fri, 22 Feb 2019 08:48:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5s2ZMBdHt8gDESsSn) @longnv1a I don't think, there is a limitation.. Channel can have as many chaincode as possible.. ultimately for each chaincode, it will have separate ledger.

longnv1a (Fri, 22 Feb 2019 08:49:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oz54TFFeTg9Hb7dz4) @Logi Thanks

florianc (Fri, 22 Feb 2019 09:13:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oz54TFFeTg9Hb7dz4) @Logi Isn't it one ledger per channel, instead of per chaincode?

florianc (Fri, 22 Feb 2019 09:15:04 GMT):
The documentation says there is a differeont worldstate for each chaincode, not the entire ledger (registry/worldstate).

Logi (Fri, 22 Feb 2019 09:19:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7w87dop4d2Eaq2ECD) @florianc right, each ledger can have multiple chaincode.

odowdaibm (Fri, 22 Feb 2019 09:54:50 GMT):
Hi @Logi @florianc Chaincode gets *installed* on as many peers in as many organizations as required.

odowdaibm (Fri, 22 Feb 2019 09:55:17 GMT):
It gets *instantiated* on whichever channels it is required upon, and *once* per channel.

odowdaibm (Fri, 22 Feb 2019 09:56:59 GMT):
It's helpful to think of installation as making an *implementation* available to a particular peer/org combination, whereas instantiation makes the chaincode *interface* available to all users of the channel. Most importantly, only peers where the chaincode is installed can see the implementation, but everyone can see the interface.

odowdaibm (Fri, 22 Feb 2019 09:58:19 GMT):
hope that helps your understanding a little. You'll probably find the following topics helpful. https://hyperledger-fabric.readthedocs.io/en/release-1.4/smartcontract/smartcontract.html https://hyperledger-fabric.readthedocs.io/en/release-1.4/peers/peers.html https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/chaincodenamespace.html

odowdaibm (Fri, 22 Feb 2019 09:58:41 GMT):
thanks @Logi @florianc !

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 10:19:55 GMT):
which can be the reason because i can't instantiate a chaincode who is installed?

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 10:19:58 GMT):

Clipboard - February 22, 2019 11:19 AM

AKSHITVAID (Fri, 22 Feb 2019 10:21:49 GMT):
Has joined the channel.

AkashGianchandani (Fri, 22 Feb 2019 10:22:17 GMT):
Has joined the channel.

sudhasakshi (Fri, 22 Feb 2019 10:22:27 GMT):
Hi, can we call complete chaincode1 in chaincode2 with out calling single function of chaincode1 in chain code2

AKSHITVAID (Fri, 22 Feb 2019 10:22:28 GMT):
I am using this script (https://github.com/hyperledger/fabric-samples/blob/release-1.3/high-throughput/scripts/many-updates.sh) to invoke the chaincode 1000 times on one peer. I am aiming for atleast 100 tps for now --- I performed this on first network and here is the result : It goes from 1 tps and 40 tps at its peak, on an avg i am getting 10 tps. --- I performed this on mycustom network of 4 organisations, which is having two peers, three orderers, and 4 kafka, 3 zookeepers results : It goes from 1 to 20 at its peak and avg tps was : 7 For this network i just added the extra configuration to first-network itself Here are my questions: 1 ) Do you perform multiple transactions on a peer like that script ? Or is there any alternative way ? Can we batch this somehow ? 2) If i were to buy an aws instance, which one do you recommend ? 3 ) Why is my performance even worse in mycustomnetwork ? Went through these links before: Performance Test of the Hyperledger Fabric Attempt to achieve high throughput in Hyperledger Fabric network Went through this paper : https://arxiv.org/pdf/1805.11390.pdf Here is how these we can achieve high tps : Parallel validation : unable to find how to do this N Outof endorsement policy : did this but same result Using cached endorsment signatures of endorsing signatures: unable to find how to do this Please let me know if want to know more details

raghuramesh (Fri, 22 Feb 2019 10:23:31 GMT):
Has joined the channel.

varunagarwal (Fri, 22 Feb 2019 10:25:16 GMT):
Has joined the channel.

rthatcher (Fri, 22 Feb 2019 10:31:16 GMT):
Has joined the channel.

AmitKSolulab (Fri, 22 Feb 2019 10:32:14 GMT):
Has joined the channel.

ParthKaloliya (Fri, 22 Feb 2019 10:40:07 GMT):
Has joined the channel.

raghuramesh (Fri, 22 Feb 2019 11:18:06 GMT):
Hi, I am trying setup my own network using hyperledger fabric. I have completed all the required steps and when i started the network it worked fine and got the below output. When I tried to create and join channel. I got this below error ERRO 001 Cannot run peer because cannot init crypto, folder “/app/HYPERLEDGER/fabric-samples/BaseNetwork/crypto-config/peerOrganizations/citizen.example.com/users/Admin@citizen.example.com/msp” does not exist The above mentioned folder is available in the system.

AbdullahKamran (Fri, 22 Feb 2019 11:38:51 GMT):
Has joined the channel.

mastersingh24 (Fri, 22 Feb 2019 11:40:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h3xmJZbMFtz7jAxn2) @raghuramesh I assume you are running the CLI? How are you running it ... ig in Docker you need to mount a volume

AbdullahKamran (Fri, 22 Feb 2019 11:41:36 GMT):
Hi, I am new here. I am working on my final year project using Fabric. We have set up a local network on a single VM. Now our next goal is to run it on multiple devices. Do I have to buy IBM cloud service to do that?

ahmadraza (Fri, 22 Feb 2019 12:24:10 GMT):
what is difference in running putState command in running or one peer or running on two peers?

ahmadraza (Fri, 22 Feb 2019 12:24:10 GMT):
what is difference in running putState command in running or one peer or running on two peers? means when we submit transaction proposal we provided targets [peers] if i provide peer0 of org1 what happened and if i provides one of each organization peers what happend?

AndresMartinezMelgar.itcl (Fri, 22 Feb 2019 12:25:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2cYeTcGXeggBNMTF6) @AbdullahKamran i am trying exaclty the same, only that i am worcking in gcp with kubernetes. I am stuck on stand up the network

florianc (Fri, 22 Feb 2019 12:28:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9egdtnSd9KQNJaCJB) @ahmadraza Actually, nothing. When the transaction is executed it is a "simulation". It will execute it on the current world state, genreate write sets and send the response back to the client so that it sends it to the orderer.

florianc (Fri, 22 Feb 2019 12:28:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9egdtnSd9KQNJaCJB) @ahmadraza Actually, nothing. When the transaction is executed it is a "simulation". It will execute it on the current world state, genreate write sets and send the response back to the client so that it sends it to the orderer. (Nothing is written on chain during endorsement)

ahmadraza (Fri, 22 Feb 2019 12:30:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nZLiCpDkH9XHCLtSC) @florianc thanks , means if i provide 2 peers or 1 peer it is only simulation when we pass to order then it will be written in ledger

florianc (Fri, 22 Feb 2019 12:32:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sLuyCdPMoEnj94SWf) @ahmadraza The orderer will receive the transactions, put it in order in the block and send it to all the peers (that are part of the channel of the transaction). When peers receive block from orderer, they apply the new state it creates.

ahmadraza (Fri, 22 Feb 2019 12:32:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sLuyCdPMoEnj94SWf) @florianc can you please clear my misconceptions. according to my study i found that there is one ledger per channel . can there be multiple chaincodes on one channel?

florianc (Fri, 22 Feb 2019 12:33:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o5QBkKFd7XEqn8L4Q) @ahmadraza Yes. One ledger per channel, 0 or more chaincode(s) per channel.

florianc (Fri, 22 Feb 2019 12:33:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o5QBkKFd7XEqn8L4Q) @ahmadraza Yes. One ledger per channel, 0 or more chaincode(s) per channel. (from my understanding)

ahmadraza (Fri, 22 Feb 2019 12:35:35 GMT):
@florianc copies of ledger is stored inside all peers?

florianc (Fri, 22 Feb 2019 12:37:30 GMT):
Yes. Registry and world state are stored in all peers member of the channel.

florianc (Fri, 22 Feb 2019 12:37:30 GMT):
Yes. Registry and world state are stored in all peers member of the channel. @ahmadraza

ahmadraza (Fri, 22 Feb 2019 12:41:22 GMT):
@florianc and how can we restrict one organization to only read the state while other organization have all rights

florianc (Fri, 22 Feb 2019 12:42:47 GMT):
@ahmadraza I cannot answer that. I don't know enough on this topic. But you may find your answer here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html

ahmadraza (Fri, 22 Feb 2019 12:44:38 GMT):
@florianc thanks for your time

florianc (Fri, 22 Feb 2019 12:45:05 GMT):
@ahmadraza Anytime!

phongtattuan (Fri, 22 Feb 2019 12:45:56 GMT):
Has joined the channel.

ahmadraza (Fri, 22 Feb 2019 12:49:16 GMT):
@florianc sorry for another question. can you know about size restrictions applied and where we have to change as in my usecase i have to store about 10m records

ahmadraza (Fri, 22 Feb 2019 12:50:13 GMT):
Because first i tried hyperledger composer there are limitations in that and i move to hyperledger fabric

florianc (Fri, 22 Feb 2019 12:50:43 GMT):
@ahmadraza You mean in the bluemix service? I have no idea. I think you have to upgrade to the next plan.

ahmadraza (Fri, 22 Feb 2019 12:51:29 GMT):
No in local hyperledger fabric? @florianc

ahmadraza (Fri, 22 Feb 2019 12:52:30 GMT):
currently, i am running default fabric network that is comming with fabric samples from official documentation

florianc (Fri, 22 Feb 2019 12:52:57 GMT):
I did not know there was a size restriction. Can't help you with that.

ahmadraza (Fri, 22 Feb 2019 13:24:57 GMT):
How we stop or pause fabric and resume it having no data lose?

ahmadraza (Fri, 22 Feb 2019 13:26:18 GMT):
@florianc ?

florianc (Fri, 22 Feb 2019 13:26:54 GMT):
@ahmadraza What do you mean stop or pause? You mean stopping all containers?

ahmadraza (Fri, 22 Feb 2019 13:37:04 GMT):
@florianc means i am currenlty working on POC i created some records when i stop it and restart all the data is lost. i want a way to pause or stop network in such a way that when i start work next day i have all data back?

florianc (Fri, 22 Feb 2019 13:49:05 GMT):
Well, I was certain that if you just stop the container, it would keep the data. But I am not familiar with docker. Can't help you on that either

florianc (Fri, 22 Feb 2019 13:49:17 GMT):
You could backup your peer data though.

HaydenGriffin (Fri, 22 Feb 2019 13:58:26 GMT):
Has joined the channel.

HaydenGriffin (Fri, 22 Feb 2019 14:00:06 GMT):
Hi, I am designing a hyperledger web application and have questions regarding the optimal keyvalue to store for my specific application. If anyone has experience with this and wishes to help that would be greatly appreciated.

Logi (Fri, 22 Feb 2019 14:00:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ey68HwFNGTaRomQSf) @ahmadraza If you are using dockers, you let the server run, you can turn off your system even. it will run behind, and you can use your application as normal to access the data when you resume.

ahmadraza (Fri, 22 Feb 2019 14:36:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pCxbdsgH3BwnRguJJ) @Logi yes am using docker you mean to say that i am just shut down my system and next time without any command running i can access network?

AgnibhaBose (Fri, 22 Feb 2019 15:16:47 GMT):
Hello

AgnibhaBose (Fri, 22 Feb 2019 15:16:59 GMT):
I am trying to update my chaincode via the Java SDK

AgnibhaBose (Fri, 22 Feb 2019 15:17:18 GMT):
But It is Actually Keeping Both the Old and The Newer Version.

AgnibhaBose (Fri, 22 Feb 2019 15:17:49 GMT):
It should Ideally Be Deleting the older version. And also my query is also going to the older version instead of the newer one.

jordanmmck (Fri, 22 Feb 2019 18:08:29 GMT):
@Logi I don't see anything about an endorse flag in the docs? https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html

dave.enyeart (Fri, 22 Feb 2019 18:31:16 GMT):
For docker data persistence see https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#a-note-on-data-persistence

jordanmmck (Fri, 22 Feb 2019 19:20:30 GMT):
peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n mycc --peerAddresses peer0.org1.example.com:7051 --peerAddresses peer0.org2.example.com:7051 -c '{"Args":["invoke","a","b","10"]}' Can someone help me understand this command? If I define the endorsement policy during instantiation and it says AND(org1, org2) then shouldn't I be able to run invoke on just one peer and have the changes propagate to the other peers? If I do that, if I run invoke with just one peer address in the command, then the result of the invoke command does not actually alter the ledger. I guess I'm not clear on what we are doing when we add multiple --peerAddresses

BCmysteries (Fri, 22 Feb 2019 19:23:03 GMT):
Has joined the channel.

BCmysteries (Fri, 22 Feb 2019 19:23:07 GMT):
trying to run transactions concurrently, and keep getting this error amongst others. Can someone please help? error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT error: [Peer.js]: sendProposal - timed out after:45000 Current config is 25s batch timeout, 50 MaxMessageCount, and my time out variables in invoke-transaction js are all set to 60secs, including sendTransactionProposal. I do not know where the 45000 default is being set.

BCmysteries (Fri, 22 Feb 2019 19:23:07 GMT):
trying to run transactions concurrently, and keep getting this error amongst others. Can someone please help? error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT error: [Peer.js]: sendProposal - timed out after:45000 Current config is 25s batch timeout, 50 MaxMessageCount, and my time out variables in invoke-transaction js are all set to 60secs, including sendTransactionProposal. I do not know where the 45000 default is being set. also getting UNAVAILABLE: EOF errors

BCmysteries (Fri, 22 Feb 2019 19:25:32 GMT):
@jordanmmck - you are invoking the smart contract function 'invoke' with the parameters a,b, 10 (which looks like the move function, moving 10 from a to b). I think the peer addresses are who will receive the proposal and have to endorse depending on your endorsement policy.

jordanmmck (Fri, 22 Feb 2019 19:26:22 GMT):
OK, thanks a lot @BCmysteries

jeffgarratt (Fri, 22 Feb 2019 19:46:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m7Z5TKKTwtn7gwquT) @BCmysteries see https://github.com/hyperledger/fabric-sdk-node/blob/0d24cec10f7a3e0153fcf3f0158a89c5eaa0cfab/fabric-client/config/default.json#L2

blockchainer (Fri, 22 Feb 2019 19:55:18 GMT):
Maybe a very silly question, but could someone please answer it: I can have multiple orderer organizations, right?

blockchainer (Fri, 22 Feb 2019 19:58:48 GMT):
I'm imagining a network to be like this: AppOrg1 -peerOrg1 --peer1_1 --peer1_2 -ordererOrg1 --orderer1 AppOrg2 -peerOrg2 --peer2_1 --peer2_2 -ordererOrg2 --orderer2 AppOrg3 -peerOrg3 --peer3_1 --peer3_2 -ordererOrg3 --orderer3 ... This is possible, right?

Antimttr (Fri, 22 Feb 2019 22:46:52 GMT):
Can you use environmental variables (like bash style $VARIABLE) in the yaml files used to define the hyperledger network?

Antimttr (Fri, 22 Feb 2019 22:46:52 GMT):
Can you use environmental variables (like bash style $VARIABLE) in the yaml files used to define the hyperledger network?

DtmCarlson (Fri, 22 Feb 2019 22:49:28 GMT):
Hi - i realize this may not be the right channel for this question but is there a way to see the logs in docker for containers as they spin up? im using the basic_network for local development and for some reason the ca container will not spin up, it immeadiately fails but i dont see any errors output. Im using the supplied start.sh / stop.sh / teardown.sh it was working prior to a reboot i did earlier today, not sure what i did to break it

walmon (Sat, 23 Feb 2019 02:49:43 GMT):
Hi, are you looking to just spin up your network to deploy your chaincodes or are you learning about the scripts and that?

walmon (Sat, 23 Feb 2019 02:49:47 GMT):
@DtmCarlson

sebastiantf (Sat, 23 Feb 2019 08:11:56 GMT):
Has joined the channel.

sebastiantf (Sat, 23 Feb 2019 08:12:01 GMT):
Which is best for a farm to fork food supply chain system? Sawtooth, Fabric or just Composer?

BharatGodhani (Sat, 23 Feb 2019 08:19:40 GMT):
Has joined the channel.

BharatGodhani (Sat, 23 Feb 2019 08:19:54 GMT):
Hi, I have created network, started that using composer-rest-server command and added participants. Those have created successfully. I have stop composer-rest-server and trying to create Card of one of participant that I have created. But I am getting error : Issue identity and create Network Card for: pract1 *X* Issuing identity. This may take a few seconds... Error: fabric-ca request register failed with errors [[{"code":20,"message":"Authorization failure"}]] Command failed

ParthKaloliya (Sat, 23 Feb 2019 09:13:04 GMT):
I have created network with 3 orderers 4 kafka 3 zookeeper 2 channel ... 1 channel has 4 organizations with 2 peers each and another channel has 2 organzation with 2 peers each...

ParthKaloliya (Sat, 23 Feb 2019 09:14:47 GMT):
I have created network with 3 orderers 4 kafka 3 zookeeper 2 channel ... 1 channel has 4 organizations with 2 peers each and another channel has 2 organzation with 2 peers each.... So now my question is assume that i have bulk of data data and i have to upload it through chaincode so i want to know how can i increase my TPS my current avg TPS is 10-15 but i want to increase my TPS so can anyone please tell me the solution..

DanielHruby (Sat, 23 Feb 2019 09:59:10 GMT):
Has joined the channel.

DanielHruby (Sat, 23 Feb 2019 09:59:26 GMT):
Hi, can I ask please which event listener I should use for long term monitoring? Now I'm using fabric sdk node - chaincode event listener. But after some time grpc failed without any error and I stop getting events and in peer log I found this error from comm.grpc.server: error="context finished before block retrieved: context canceled" grpc.code=Unknown

AbdullahKamran (Sat, 23 Feb 2019 12:18:41 GMT):
Hi, can please anyone guide, which is the best (and free) way to deploy a fabric network on multiple machines among IBM Cloud, Kubernetes, Docker swarm, etc. This is for a university project.

jeka_gompa (Sat, 23 Feb 2019 14:13:08 GMT):
Hi guys, is it possible to get the client identity (cid) given a user_id within chaincode or from a client application using an SDK? Not the identity of the creator of the transaction but of someone else?

PanChee_Woo (Sat, 23 Feb 2019 15:11:19 GMT):
Has joined the channel.

PanChee_Woo (Sat, 23 Feb 2019 15:12:23 GMT):
Hi,

PanChee_Woo (Sat, 23 Feb 2019 15:13:27 GMT):
Installing Hyperledger Fabric docker images ===> Pulling fabric Images ==> FABRIC IMAGE: peer Warning: failed to get default registry endpoint from daemon (error during connect: Get https://192.168.99.100:2376/v1.37/info: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.). Using system default: https://index.docker.io/v1/ error during connect: Post https://192.168.99.100:2376/v1.37/images/create?fromImage=hyperledger%2Ffabric-peer&tag=1.4.0: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. error during connect: Post https://192.168.99.100:2376/v1.37/images/hyperledger/fabric-peer:1.4.0/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ==> FABRIC IMAGE: orderer Warning: failed to get default registry endpoint from daemon (error during connect: Get https://192.168.99.100:2376/v1.37/info: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.). Using system default: https://index.docker.io/v1/ error during connect: Post https://192.168.99.100:2376/v1.37/images/create?fromImage=hyperledger%2Ffabric-orderer&tag=1.4.0: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. error during connect: Post https://192.168.99.100:2376/v1.37/images/hyperledger/fabric-orderer:1.4.0/tag?repo=hyperledger%2Ffabric-orderer&tag=latest: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ==> FABRIC IMAGE: ccenv Warning: failed to get default registry endpoint from daemon (error during connect: Get https://192.168.99.100:2376/v1.37/info: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.). Using system default: https://index.docker.io/v1/ error during connect: Post https://192.168.99.100:2376/v1.37/images/create?fromImage=hyperledger%2Ffabric-ccenv&tag=1.4.0: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. error during connect: Post https://192.168.99.100:2376/v1.37/images/hyperledger/fabric-ccenv:1.4.0/tag?repo=hyperledger%2Ffabric-ccenv&tag=latest: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ==> FABRIC IMAGE: javaenv I faced this issue when installing hyperledger fabric docker image

PanChee_Woo (Sat, 23 Feb 2019 15:16:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qc6H9GMs8Jco7hHza) @AbdullahKamran Anyone knows how to resolve this?

PanChee_Woo (Sat, 23 Feb 2019 15:16:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nEJWG4fQboB6gxvDC) Anyone knows how to resolve this?

ChinmayIngle (Sat, 23 Feb 2019 19:20:09 GMT):
I am trying to set up network from scratch, i firstly created cypto-config file and generated certificates after that i am trying to create genesis block by using configtxgen but it is giving me this error " 2019-02-24 00:19:39.298 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-02-24 00:19:39.298 IST [common.tools.configtxgen.localconfig] Load -> PANI 002 Error reading configuration: Unsupported Config Type "" 2019-02-24 00:19:39.299 IST [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" [recovered] panic: Error reading configuration: Unsupported Config Type "" goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ff970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e250, 0xc00001d804, 0xc000039900, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e250, 0xc000039900, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e258, 0xc00001d938, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9 panic(0xd4fc40, 0xc000251410) /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ff970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e230, 0xc00001dc04, 0xc000039800, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e230, 0xc000039800, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e238, 0xc00001ddb8, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffc94dacedb, 0x15, 0x0, 0x0, 0x0, 0xc000462360) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:275 +0x41f main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f " can anyone guide me if this is the right way to proceed or i am missing somthing !

ChinmayIngle (Sat, 23 Feb 2019 19:20:09 GMT):
I am trying to set up network from scratch, i firstly created cypto-config file and generated certificates after that i am trying to create genesis block by using configtxgen but it is giving me this error " 2019-02-24 00:19:39.298 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-02-24 00:19:39.298 IST [common.tools.configtxgen.localconfig] Load -> PANI 002 Error reading configuration: Unsupported Config Type "" 2019-02-24 00:19:39.299 IST [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" [recovered] panic: Error reading configuration: Unsupported Config Type "" goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ff970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e250, 0xc00001d804, 0xc000039900, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e250, 0xc000039900, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e258, 0xc00001d938, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9 panic(0xd4fc40, 0xc000251410) /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ff970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e230, 0xc00001dc04, 0xc000039800, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e230, 0xc000039800, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e238, 0xc00001ddb8, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffc94dacedb, 0x15, 0x0, 0x0, 0x0, 0xc000462360) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:275 +0x41f main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f " can anyone guide me if this is the right way to proceed or i am missing somthing ! Thanks :)

DanielHruby (Sat, 23 Feb 2019 21:19:48 GMT):
Hi, can I ask please which event listener I should use for long term monitoring? Now I'm using fabric sdk node - chaincode event listener. But after some time grpc failed without any error and I stop getting events and in peer log I found this error from comm.grpc.server: error="context finished before block retrieved: context canceled" grpc.code=Unknown

Jgnuid (Sun, 24 Feb 2019 00:19:13 GMT):
@ChinmayIngle , seems your FABRIC_CFG_PATH env variable isn't correctly setup.

Jgnuid (Sun, 24 Feb 2019 00:19:21 GMT):
Should have the path of your .yaml

Jgnuid (Sun, 24 Feb 2019 00:22:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qc6H9GMs8Jco7hHza) @AbdullahKamran Free?.. maybe some free tier on some cloudprovider (Azure, Google Cloud, AWS...) But my best guess is that you'll have problems with too low RAM or CPU. I've already tries some non-free plans on google cloud and dockers really feels the pain and got some random fails. After I chose a bigger plan, all problems are gone. Not really expensive... like 20usd each vm.

Jgnuid (Sun, 24 Feb 2019 00:23:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5nMgNkf7E73Q7GW73) @jeka_gompa I'm not sure if I understood correctly. What are you exactly trying to do?

Jgnuid (Sun, 24 Feb 2019 00:28:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cnB6M5jaNNQJe24Cp) @ParthKaloliya I'm not an expert on performance in Fabric (well, in fact im not an expert in anything in fabric). I guess there's no easy way to profile where you're having the bottleneck... but relaxing the endorsement policy, giving more resources to each node, checking that latency is not an issue, trying not to send concurrent proposals that overlap their read and write sets to avoid transactions invalidations, reduce the min in sync replicas in kafka (warning: this is not free... but you can consider it for bulk inserts).

Jgnuid (Sun, 24 Feb 2019 00:30:18 GMT):
maybe some monitoring of resources in each node (client, peers, zookeeper, kafka, orderers) can give you a hint of where is the problem. Also in the DEBUG level logs there are some times about validation and commitment times.

anant706 (Sun, 24 Feb 2019 02:54:12 GMT):
Hi team, Do we have something similar to Ethereum Oraclize as data carrier in Hyperledger? Regards

ChinmayIngle (Sun, 24 Feb 2019 07:39:50 GMT):
@Jgnuid Thanks for the reply, i will check it once again

DanielHruby (Sun, 24 Feb 2019 08:43:16 GMT):
Hi, can I ask please which event listener I should use for long term monitoring? Now I'm using fabric sdk node - chaincode event listener. But after some time grpc failed without any error and I stop getting events and in peer log I found this error from comm.grpc.server: error="context finished before block retrieved: context canceled" grpc.code=Unknown

BlahBlah (Sun, 24 Feb 2019 09:18:06 GMT):
good morning.

BlahBlah (Sun, 24 Feb 2019 09:18:21 GMT):
is it possible to change identify when using peer chaincode query / invoke in dev-mode?

BlahBlah (Sun, 24 Feb 2019 09:18:21 GMT):
is it possible to change identidy when using peer chaincode query / invoke in dev-mode?

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? My identities look like this: { username, orgName, attrs: [ firstname, secondname, organizationType, sex, birthdaterole: "athlete" 12 ] 13 }

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? My identities look like this: { username, orgName, attrs: [ firstname, secondname, organizationType, sex, birthdate, role ] }

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? My identities look like this: { - username, - orgName, - attrs: - [ - firstname, - secondname, - organizationType, - sex, - birthdate, - role - ] }

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? My identities look like this: { username, orgName, attrs: [ firstname, secondname, organizationType, sex, birthdate, role ] }

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? The chaincode method receives the user id as a parameter and from it, I need to get the user's gender and birthdate. My identities look like this: { username, orgName, attrs: [ firstname, secondname, organizationType, gender, birthdate, role ] }

jeka_gompa (Sun, 24 Feb 2019 09:51:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CALcgYErG9HLhTPHy) @Jgnuid Hi, thanks for answering. What I what to do is to load the identity attributes from a user from within my chaincode program? The chaincode method receives the user id as a parameter and from it, I need to get the user's gender and birthdate. The users digital identities (also called *principal* in Fabric) look like this: { username, orgName, attrs: [ firstname, secondname, organizationType, gender, birthdate, role ] }

sebastiantf (Sun, 24 Feb 2019 12:09:16 GMT):
I am planning to prototype a project using Composer. But I'll be moving to Fabric too. Which installation instructions should I follow to install Composer and Fabric? I found some differences in the docker images being pulled in the Composer and Fabric installation scripts.

sebastiantf (Sun, 24 Feb 2019 12:09:16 GMT):
I am planning to prototype a project using Composer. But I'll be moving to Fabric too. Which installation instructions should I follow to install Composer and Fabric? Is there going to be any version issues or mismatch issues between the docker images? I found some differences in the docker images being pulled in the Composer and Fabric installation scripts.

Jgnuid (Sun, 24 Feb 2019 13:20:57 GMT):
@jeka_gompa , so you receive an 'id' and want to output a 'gender' and 'birthdate'. My question is: can you retrieve the 'gender' and 'birthdate' from shim.GetState("id")?. Im not quite sure this is your quetsion because is rather simple. Maybe I'm imagining that you want to look for ids in all the history of transaction proposals and get that info from the certs who signed those transactions? (Suppossing the gender and birthdate are custom attributes of the certs). But this last idea sounds quite crazy to me.

Jgnuid (Sun, 24 Feb 2019 13:22:23 GMT):
If that is indeed the case, shoudn't be better to save in every transaction the gender and birthdate in the state? That would be much more efficient later when you want to retrieve that information.

jeka_gompa (Sun, 24 Feb 2019 14:56:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kjAB9Y7MzBdt7vFyP) @Jgnuid Hi, Oh!, excuse me for the confusion, maybe what I want to do is not possible or does not make sense. I appreciate a lot that you are trying to help me. In my case I do not have the certificate of the user I'm trying to load, I just have the username and yes, gender and birthdate are custom attributes of the certs. What I want to do is to retrieve the attributes of a user identity that were used to create the user 's certificate. For example within a chaincode program (Nodejs) you can do this to get the attribute of the submitter of the transaction: cid = new ClientIdentity(stub) // This retrieves the client identity of the submitter of the transaction gender = cid.getAttributeValue('gender') //Gets the value of the attribute gender I would like to do the same but with a user different from the submitter, from which I only have the username Now I'm thinking that maybe this is not possible and I need the user cert. Is there a mechanism to get all users/certs members of an organization?

Jgnuid (Sun, 24 Feb 2019 15:05:25 GMT):
@jeka_gompa, you can make the chaincode ask for the CA server to answer that quetsion. The CA server should have the authority and completness of that information. However, I think that making the chaincode call to external apis is generally buying a problem. Another solution is close to what I said before... having that info in the state of the chaincode. You could make an 'automatic' registration of their cert whenever they make a transaction (just to avoid scanning all history of transactions and getting them from the signedproposals, which I'm not sure its possible but sounds reasonable)

Jgnuid (Sun, 24 Feb 2019 15:08:19 GMT):
Pros of asking the CA server: You can have those attributes even if that identity never transacted. Cons: Complexity. Pros of saving information: Its easy and efficient to get the info.. just GetState. Cons: There're identities from which you will not have the information (i.e: if they never transacted). Since you're talking about births and gender (which hopefully are hard to change in reality), you don't have the problem of that data to be invalid or stall; but in other case might be a problem.

Jgnuid (Sun, 24 Feb 2019 15:09:44 GMT):
You could also create another chaincode for identity registration and updating of info... and in your chaincode make cross-chaincode querying.

jeka_gompa (Sun, 24 Feb 2019 15:13:41 GMT):
Ok, thanks yeah the last option is the most interesting for me right now, cause I'm creating a proof of concepts and do not have to much time. I had an idea around it before but I thought that maybe there was something built in that covers this functionality. Thanks again :)

jeka_gompa (Sun, 24 Feb 2019 15:13:41 GMT):
@Jgnuid Ok, thanks yeah the last option is the most interesting for me right now, cause I'm creating a proof of concepts and do not have to much time. I had an idea around it before but I thought that maybe there was something built in that covers this functionality. Thanks again :)

dpitt3 (Sun, 24 Feb 2019 16:55:12 GMT):
You might even keep this user id lookup logic out of chaincode, but apply it in the node.js client application.. then pass it in as an argument to the chaincode implementation. This keeps your chaincode logic encapsulated.

jeka_gompa (Sun, 24 Feb 2019 21:04:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wzd9zpEkJMavkqK9y) @dpitt3 Hi, you would not recommend then to execute cross-chaincode transactions for this purpose?

jeka_gompa (Sun, 24 Feb 2019 21:04:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wzd9zpEkJMavkqK9y) @dpitt3 Hi, why would you not recommend to execute cross-chaincode transactions for this purpose?

jeka_gompa (Sun, 24 Feb 2019 21:04:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wzd9zpEkJMavkqK9y) @dpitt3 Hi, why would you not recommend to execute cross-chaincode transactions for this purpose? Is it considered a bad practice to do cross-chainocde lookups?

jeka_gompa (Sun, 24 Feb 2019 21:04:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wzd9zpEkJMavkqK9y) @dpitt3 Hi, why would you not recommend to execute cross-chaincode transactions for this purpose? Is it considered a bad practice to do cross-chainocde lookups?

hypere (Sun, 24 Feb 2019 21:12:07 GMT):
if i get `_initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed` error from running query.js but is able to query from CLI using `peer chaincode query -C $CHANNEL_NAME -n xxx -c '{"Args": ["xxx"]}'` what could potentially be my problem? (I have updated to fabric 1.4)

dpitt3 (Sun, 24 Feb 2019 22:13:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FPmaoT3DbqNEJKEWe) @jeka_gompa My thinking is chain code logic should be succinct and only responsible for mutating or querying the global state, and of course this results in new tx's being added to the blockstore. So you have a chaincode function that results in a transaction record of some type.. I think it's ok to have business specific logic in the chaincode, but if you need something like a user id, instead of having the chaincode do this lookup... you node.js client can, then pass it in as an argument for the chaincode to utilize... keeps this dependency out of the chaincode...just my two cents...

jeka_gompa (Sun, 24 Feb 2019 22:37:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZjbysutxHhLu3WtrY) @dpitt3 Hey, thanks for answering and yes, you have a point there I'll keep it in mind.

tango107 (Mon, 25 Feb 2019 01:32:54 GMT):
Has joined the channel.

haardikkk (Mon, 25 Feb 2019 04:18:23 GMT):
Hey, im using IBM Blockchain Starter Plan and when I go to instantiate my chaincode it says `error starting container`

haardikkk (Mon, 25 Feb 2019 04:18:37 GMT):
however i modified `byfn.sh` enough to work with my chaincode and it instantiates just fine when testing locally

haardikkk (Mon, 25 Feb 2019 04:18:42 GMT):
im passing the correct arguments too

AKSHITVAID (Mon, 25 Feb 2019 06:40:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fyxy6tr6bmvPk5L6y) @Jgnuid I saw that we can scale fabric upto 100,000 tps, i am facing a similar kind of issue, I researched a lot and have the solutions : - Parallel Validation - Cache'ing the endorsement signatures of the endorsers so that we dont have to check again and again - HAve a better configuration BUT I DIDNT FIND ANY GOOD LINKS ON HOW TO IMPLEMENT THIS

MuhammedHafil (Mon, 25 Feb 2019 06:41:46 GMT):
Why fabric does not have a Authentication system? none of the tutorials gives an insight on that. Does this needed to be done outside fabric?

MuhammedHafil (Mon, 25 Feb 2019 06:41:46 GMT):
Why fabric does not have a Authentication system? none of the tutorials gives an insight on that. Does this needed to be done outside fabric? with traditional login system ?

KartikChauhan (Mon, 25 Feb 2019 06:44:41 GMT):
I've killed all the docker containers and all the fabric images are removed. But I've all the data saved in my host machine. Will I need to install and instantiate the chaincode again?

ParthKaloliya (Mon, 25 Feb 2019 07:13:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EsWZeniM6o3TkPhLL) @AKSHITVAID Cool.. Even I ran this network on various systems and the difference between TPS in my system and TPS in another system is very high so I think one of the possibility is it is depend upon system configuration also. (I assume). because I have quad core processor and another machine has dual core processor so I saw that difference but i dont think this is all depend upon the sytem conf. Can anyone have idea about what is the best Block Size when defining the orderer to boost up the TPS.

AndresMartinezMelgar.itcl (Mon, 25 Feb 2019 07:22:47 GMT):
what is the "peer fetch" function for?

knagware9 (Mon, 25 Feb 2019 07:37:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EsWZeniM6o3TkPhLL) @AKSHITVAID check this paper & playback http://blizzard.cs.uwaterloo.ca/sirius/ https://arxiv.org/abs/1901.00910 https://wiki.hyperledger.org/download/attachments/2392116/20190129-fabric-performance.mp4?api=v2

knagware9 (Mon, 25 Feb 2019 07:40:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3kzxFrbX2su8haMqS) @AndresMartinezMelgar.itcl this command used to fetch configuration block for update the configuration block .check this https://hyperledger-fabric.readthedocs.io/en/release-1.2/peer-commands.html

ahmadraza (Mon, 25 Feb 2019 08:07:43 GMT):
how can i fetch records from blockchain with attribute other than key e.g i want to search all the records of particular owner?

KungFooPanda (Mon, 25 Feb 2019 08:35:07 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Mon, 25 Feb 2019 08:44:22 GMT):
Hi, I just had a big question. When we make a transaction the code is "peer chaincode invoke ....". In that command the order is specified, the administrator of each organization necessary to validate the transaction, and the arguments. But my question is: where is it indicated that I made that transaction? I do not see anywhere a cacert that belongs to me. peer chaincode invoke -or orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example. com / msp / tlscacerts / tlsca.example.com -cert.pem -C mychannel -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric /peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles / opt / gopath / src / github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args": ["invoke", "a "," b "," 10 "]} ' In that transaction (from the examples given by hyperledger) 10 units are passed from A to B. Supposedly I would be A, but where do I indicate that I am that "person"? I do not know if I explain myself

MuhammedHafil (Mon, 25 Feb 2019 09:04:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MRAXwKLHSJXMNikeF) @ahmadraza you need to use couchdb as statedb , then you can do rich query, https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767 https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/marbles02/go/marbles_chaincode.go

YSZYCF (Mon, 25 Feb 2019 09:09:11 GMT):
Has joined the channel.

ahmadraza (Mon, 25 Feb 2019 09:14:18 GMT):
@MuhammedHafil can you tell me or give any link to configure couchdb with fabric network

Aniket.1 (Mon, 25 Feb 2019 09:51:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2YDhd6yPNFMZ2Xav5) @MuhammedHafil I got this error while using couchdb. Can you add anything about this error?

AKSHITVAID (Mon, 25 Feb 2019 09:56:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BXEFZinqMYvK4bovc) @knagware9 Thanks a lot man, that video was a great help only one question - When i invoke the chaincode lets say 1000 times, can i somehow use all the cores in parallel in ubuntu?

ashuu-gupta (Mon, 25 Feb 2019 09:56:46 GMT):
Hello team,

ashuu-gupta (Mon, 25 Feb 2019 10:09:10 GMT):
Is it necessary to store all the aruguments in different array variable. Like color = arg[1], owner = arg[2]. Can't we store in one single variable. And if we can store in one variable, can we apply quey on it. func (t *SimpleChaincode) initMarble(stub shim.ChaincodeStubInterface, args []string) pb.Response { var err error // 0 1 2 3 // "asdf", "blue", "35", "bob" if len(args) != 4 { return shim.Error("Incorrect number of arguments. Expecting 4") } marbleName := args[0] color := strings.ToLower(args[1]) owner := strings.ToLower(args[3]) size, err := strconv.Atoi(args[2]) if err != nil { return shim.Error("3rd argument must be a numeric string") }

HLFPOC (Mon, 25 Feb 2019 11:05:06 GMT):
Has joined the channel.

knagware9 (Mon, 25 Feb 2019 11:29:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=woqLhfwivmc6hcsjs) @AKSHITVAID not sure about it

krishnswam2000 (Mon, 25 Feb 2019 12:10:46 GMT):
Has joined the channel.

krishnswam2000 (Mon, 25 Feb 2019 12:10:50 GMT):
Hi. My name is Krishna. Trying to configure hyperledger fabric 1.3 from source https://hyperledger-fabric.readthedocs.io/en/release-1.3/build_network.html Can anyone let me know procedure to setup composer-playground with fabric 1.3? #fabric-questions #composer

SatheeshNehru (Mon, 25 Feb 2019 12:40:00 GMT):
cant see chaincode log why?? it shows warning .

knagware9 (Mon, 25 Feb 2019 12:45:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4k7E844Zd6tYMmvtA) @SatheeshNehru in fabric 1.4 , you need to use fabric_spec_logging = debug

SatheeshNehru (Mon, 25 Feb 2019 12:49:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Eh6kWYcrWiPAEEWTF) @knagware9 ok. thanks

Aniket.1 (Mon, 25 Feb 2019 12:59:02 GMT):
is getStateByRange() works only with couchDB?

dave.enyeart (Mon, 25 Feb 2019 13:01:14 GMT):
Key range queries and composite key queries work identically on leveldb and couchdb

dave.enyeart (Mon, 25 Feb 2019 13:01:30 GMT):
Only JSON queries are unique to CouchDB

Aniket.1 (Mon, 25 Feb 2019 13:03:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2YDhd6yPNFMZ2Xav5) Thanks @dave.enyeart . This could be great if you can provide some details regarding this error .

Aniket.1 (Mon, 25 Feb 2019 13:03:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2YDhd6yPNFMZ2Xav5) Thanks. This could be great if you can provide some details regarding this error .

Aniket.1 (Mon, 25 Feb 2019 13:16:27 GMT):
I assume the getStateByRange(startKey, endKey) process all the keys entered in the chaincode after the entrance of beforeKey and before the entrance of afterKey in the chaincode. Is it right? because i am not getting result returned with this policy. Can someone please explain this concept or provide any related link?

Aniket.1 (Mon, 25 Feb 2019 13:16:27 GMT):
I assume the getStateByRange(startKey, endKey) process all the keys entered in the chaincode after the entrance of beforeKey and before the entrance of afterKey in the chaincode. Is it right? because i am seeing that returned result are not following this policy. Can someone please explain this concept or provide any related link?

ahmadraza (Mon, 25 Feb 2019 13:53:45 GMT):
To enable couchdb we have to change state database in core.yaml file while in fabric-samples/first-network there is no core.yaml file? From where we can enable couchdb? any alternate please?

KartikChauhan (Mon, 25 Feb 2019 13:56:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WwS8sdYDS4Gjesbuf) @Aniket.1 GetStateByRange returns a range iterator over a set of keys in the ledger. The iterator can be used to iterate over all keys between the startKey (inclusive) and endKey (exclusive). However, if the number of keys between startKey and endKey is greater than the totalQueryLimit (defined in core.yaml), this iterator cannot be used to fetch all keys (results will be capped by the totalQueryLimit). The keys are returned by the iterator in lexical order. Note that startKey and endKey can be empty string, which implies unbounded range query on start or end. Call Close() on the returned StateQueryIteratorInterface object when done. The query is re-executed during validation phase to ensure result set has not changed since transaction endorsement (phantom reads detected).

KartikChauhan (Mon, 25 Feb 2019 13:57:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DM7v4GEY2sGNYjpaB) You can get the relevant info here https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetStateByRange

johnfilippone (Mon, 25 Feb 2019 14:12:13 GMT):
Question: In this blog post: https://www.ibm.com/blogs/blockchain/2019/01/answering-your-questions-on-hyperledger-fabric-performance-and-scale/ there is an experiment that shows that you can load balance endorsement to increase throughput. I am trying to verify if this is something that can work for our product to in crease throughput. How can I find out what the consensus algorithm used here was? How can I be sure these transactions were invokes and not queries? My best guess is that it is using solo consensus and invokes but it does not explicitly say that.

ahmadraza (Mon, 25 Feb 2019 14:29:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7ckhz4LFgXCybkurN) @florianc do you have any idea about it?

florianc (Mon, 25 Feb 2019 14:32:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7XnoGevpEPi3oMJwL) @ahmadraza Did you follow this: https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_tutorial.html#cdb-enable-couch (I don't know either, never done that yet)

Misantonio (Mon, 25 Feb 2019 14:43:42 GMT):
Has joined the channel.

ahmadraza (Mon, 25 Feb 2019 14:47:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bzvWaABHqgjgKdDPW) @florianc yes this documentation tells to change in core.yaml file ut there is no core.yaml file? is we have to create that file from scratch?

florianc (Mon, 25 Feb 2019 14:55:39 GMT):
I don't know.

maxrobot (Mon, 25 Feb 2019 14:57:13 GMT):
Hi I am building the fabric docker images locally, running `make all` in my source repository and then running some tests etc. Does anyone have any advice how to build and rebuild the docker images more quickly during development?

DanielHruby (Mon, 25 Feb 2019 15:11:39 GMT):
Hi, can I ask please which event listener I should use for long term monitoring? Now I'm using fabric sdk node - chaincode event listener. But after some time I stop getting events without any error.

phinpope (Mon, 25 Feb 2019 15:33:42 GMT):
Has joined the channel.

Jamie (Mon, 25 Feb 2019 15:55:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vveWxzDtEtJbeNKNA) @DanielHruby I read somewhere that it could be peer event listener. I might be wrong.

msteiner (Mon, 25 Feb 2019 16:54:37 GMT):
Has joined the channel.

dave.enyeart (Mon, 25 Feb 2019 17:35:53 GMT):
@DanielHruby The 'old' event hub had some issues and is deprecated and was removed in v1.3. The 'new' channel based event services (aka ChannelEventHub in node.js SDK) was added in v1.1 and is the strategic event service that has proved to be very reliable. One nice feature of the 'new' channel based event services is that the client can request events starting from any block number, to ensure that no events are missed even in the case of a peer or client crash. For details see https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html

Antimttr (Mon, 25 Feb 2019 17:48:15 GMT):
Can you use environmental variables (like bash style $VARIABLE) in the yaml files used to define the hyperledger network?

maxrobot (Mon, 25 Feb 2019 17:54:10 GMT):
Hi can somebody point me to where the orderer signs the block in Fabric?

DtmCarlson (Mon, 25 Feb 2019 18:27:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7sK4HwHn2Gphg3ebj) @walmon @walmon thanks. I'm just spinning up the basic_network from the fabric samples using the supplied start.sh / stop.sh / teardown.sh i noticed that the fabric_ca container starts and immediately fails but i cant figure out why. I believe it was working before, im new to docker and i cant see any error messages and im not sure where the logs might be for a container on startup

walmon (Mon, 25 Feb 2019 18:29:19 GMT):
did you change anything? Try this out https://github.com/worldsibu/hurley it will bootstrap the network for you, if you still get the error it may be something related to your env

DtmCarlson (Mon, 25 Feb 2019 18:33:31 GMT):
@walmon i dont believe i changed anything - thanks ill take a look at that

Antimttr (Mon, 25 Feb 2019 18:34:29 GMT):
so should we put couchdb usernames and passwords directly in the yaml files?

Antimttr (Mon, 25 Feb 2019 18:34:37 GMT):
seems kinda like bad practice

dpitt3 (Mon, 25 Feb 2019 18:34:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7WQc93DhCK95d928s) @maxrobot checkout orderer/common/multichannel/blockwriter.go line 176 you will see thisfunc (bw *BlockWriter) addBlockSignature(block *cb.Block) { blockSignature := &cb.MetadataSignature{ SignatureHeader: utils.MarshalOrPanic(utils.NewSignatureHeaderOrPanic(bw.support)), }

DtmCarlson (Mon, 25 Feb 2019 18:35:30 GMT):
@walmon is that for 1.3 only? or do you have plans for upgrading to 1.4?

Antimttr (Mon, 25 Feb 2019 18:47:11 GMT):
like for this example: https://github.com/hyperledger-archives/fabric/blob/master/peer/core.yaml

Antimttr (Mon, 25 Feb 2019 18:47:20 GMT):
they're putting secrets direcltly in the file

Antimttr (Mon, 25 Feb 2019 18:47:35 GMT):
but in other places they say secrets should come from environmental variables

nimaafraz (Mon, 25 Feb 2019 18:48:48 GMT):
Has joined the channel.

dave.enyeart (Mon, 25 Feb 2019 18:50:20 GMT):
@Antimttr That's the ancient pre-v1.0 core.yaml. In general core.yaml defines the config options and specifies default values, but most people override them using environment variables as seen here: https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/docker-compose-couch.yaml#L15-L35

Antimttr (Mon, 25 Feb 2019 19:00:38 GMT):
@dave.enyeart my question is about setting up the couchdb, in the sample yaml config files i've seen so far they have you putting the username and password directly in the yaml file

Antimttr (Mon, 25 Feb 2019 19:00:51 GMT):
this seems like not the best practice, but if its the only way to do it ill do it that way

Antimttr (Mon, 25 Feb 2019 19:01:08 GMT):
my question was, can you use environmental variables in the yaml files like you can in the bash scripts?

Antimttr (Mon, 25 Feb 2019 19:01:51 GMT):
the file i was looking at is in: fabric-samples/first-network/docker-compose-couch.yaml

Sreekanth1234 (Mon, 25 Feb 2019 19:11:11 GMT):
Error: Failed to discover ::Error: Failed to connect before the deadline URL:grpcs://localhost:7051

Sreekanth1234 (Mon, 25 Feb 2019 19:11:34 GMT):
i got erro....r what is this error ?

Sreekanth1234 (Mon, 25 Feb 2019 19:11:47 GMT):
can u help me of this error

walmon (Mon, 25 Feb 2019 19:12:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3CkSiNrWZehTvF9HH) @DtmCarlson Yeah, probably next week!

dave.enyeart (Mon, 25 Feb 2019 19:23:04 GMT):
@Antimttr yes you can, see https://docs.docker.com/compose/environment-variables/

OscarRoman (Mon, 25 Feb 2019 19:33:31 GMT):
Has joined the channel.

blockchainer (Mon, 25 Feb 2019 19:43:41 GMT):
Hi, I'm always getting this error: `streaming call completed {"grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "###", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "22.849895ms"}` Is there a time-out configuration somewhere that could be causing this issue? Been struggling with this since quite some time:/

blockchainer (Mon, 25 Feb 2019 19:43:41 GMT):
Hi @dave.enyeart , I'm always getting this error: `streaming call completed {"grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "###", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "22.849895ms"}` Is there a time-out configuration somewhere that could be causing this issue? Been struggling with this since quite some time:/

blockchainer (Mon, 25 Feb 2019 19:44:28 GMT):
PS - I've replaced the peer_address intentionally.

blockchainer (Mon, 25 Feb 2019 19:48:11 GMT):
Context: This comes when I'm trying to instantiate the chaincode. I notice that the docker-container for chaincode is created and there's no error in the peer's logs. Yet, orderer throws this error; and when I try to list the instantiated chaincodes - I get nothing.

blockchainer (Mon, 25 Feb 2019 19:49:48 GMT):
There's this in the peer logs though: `transport: loopyWriter.run returning. connection error: desc = "transport is closing"`

PankajTripathi (Mon, 25 Feb 2019 20:03:52 GMT):
Has joined the channel.

PankajTripathi (Mon, 25 Feb 2019 20:04:55 GMT):
Hi , I want to store objects(JSON) in Couch DB for one organization and later retrieve it . I am very new to Hyperledger any inputs ?

PankajTripathi (Mon, 25 Feb 2019 20:05:28 GMT):
assume its just one organization and I am loading asset(JSON) object

AlanLisboa (Mon, 25 Feb 2019 20:18:50 GMT):
Has joined the channel.

AlanLisboa (Mon, 25 Feb 2019 20:23:00 GMT):
Hello guys, I got a fabric network deployed and running with 4 nodes. So I was wondering to add new 3 peers without instantiate chaincode in these new 3 peers, I just want to let them with the ledger. Is it possible?

AlanLisboa (Mon, 25 Feb 2019 20:23:05 GMT):
Thank u

Sreekanth1234 (Mon, 25 Feb 2019 20:57:07 GMT):
channel's second argument must be a ChannelCredentials

Sreekanth1234 (Mon, 25 Feb 2019 20:57:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FGScb3s3r6r6g465H) I got this error

Sreekanth1234 (Mon, 25 Feb 2019 20:57:44 GMT):
if anyone knows about this error. Please help me...

blockchainer (Mon, 25 Feb 2019 21:06:34 GMT):
Hello @C0rWin, I found a Stackoverflow answer of yours here: https://stackoverflow.com/questions/46045970/why-peer-chaincode-instantiate-execuate-many-times-successfully#_=_ I have a similar query: *Context*: I'm getting the following error in the orderer when I'm trying to instantiate a chaincode: `streaming call completed {"grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "###", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "22.849895ms"}` *Issue*: The chaincode is not instantiated (not listed in list of instantiated chaincodes). *Analysis*: I notice that the docker-container for chaincode is created and there's no error in the peer's logs (except for a gRPC error - `transport: loopyWriter.run returning. connection error: desc = "transport is closing"`). From your answer, I imagine that the endorsed & signed transaction is reaching the orderer in my case, but the connection breaks sooner than the transfer is completed. Is there a time-out configuration somewhere that could be causing this issue?

dpitt3 (Mon, 25 Feb 2019 21:09:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=b5b4TWo4gLxuoCaNi) @AlanLisboa Yes, chaincode only needs to be installed and thus instantiated on the endorsing peers

bhanukandregula (Mon, 25 Feb 2019 22:32:22 GMT):
Has joined the channel.

Alex (Tue, 26 Feb 2019 00:19:03 GMT):
Has joined the channel.

Alex (Tue, 26 Feb 2019 00:19:35 GMT):
Is it true that there can only be one orderer per channel? If not, was this the case in an earlier version of Fabric?

RonaldReagan (Tue, 26 Feb 2019 00:35:51 GMT):
Has joined the channel.

RonaldReagan (Tue, 26 Feb 2019 00:46:25 GMT):
Hello guys, I have hyperledger (v1.1.0) running on remote hosts using swarm. I have a sample nodejs api app used to register user and invoke transactions. Everything works well for the first 15 minutes or so. After that, transactions TIMEOUT . When I redeploy again it works normally for 15mins and the same repeats. When I query the ledger, I can see that the timed out transactions are actually recorded on the ledger. Has someone come across same issue, or know what could cause this?

blockchainer (Tue, 26 Feb 2019 01:38:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TJmpxEvhKa4EzKS8m) @Alex My understanding is: If using solo - yes If using kafka - no

blockchainer (Tue, 26 Feb 2019 01:40:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6idHzaMBm25TzPwYQ) @RonaldReagan Maybe it's just a timeout of the connection between your client and the peer. Try increasing that?

Jamie (Tue, 26 Feb 2019 02:13:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ihR2sKKyKxPv9cDdj) @rodolfofranco Hi, Were you able to solve the issue. I am facing the same issue in my machine.

walmon (Tue, 26 Feb 2019 05:16:09 GMT):
@RonaldReagan is your chaincode started in devmode? If it is after a few minutes of iddle it gets destroyed and a new request will through time out as the containers are re provisioned

Aniket.1 (Tue, 26 Feb 2019 05:34:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DM7v4GEY2sGNYjpaB) @KartikChauhan Thanks @KartikChauhan for your response. I have gone through this definition in their documentation but I am looking for some practical implementation or explanation with technical perspective to understand the lexical order for various type of keys(number, single character, string, mixed string etc.) involved.

SatheeshNehru (Tue, 26 Feb 2019 05:39:35 GMT):
how is identity verification done ?? which is better using fabric ca or crypto gen tool what is the difference?

erictran1910 (Tue, 26 Feb 2019 06:22:48 GMT):
Has joined the channel.

erictran1910 (Tue, 26 Feb 2019 06:22:54 GMT):
hello anyone

Aniket.1 (Tue, 26 Feb 2019 06:23:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3d9FqioWBH7yoGwvd) I got it by trying various keys and same values. It appears in this way ["1","12","1a","1b","2","21","2a","a1","abc5","b2","c3","ghi","pqr"]

HarshithaC (Tue, 26 Feb 2019 06:25:22 GMT):

Clipboard - February 26, 2019 11:55 AM

HarshithaC (Tue, 26 Feb 2019 06:25:57 GMT):
Hello! Im trying to install HFC , following https://rezamtfabric.readthedocs.io/en/stable/nodeSDK/node-sdk-indepth.html#installing-only-the-sdk when i run *npm install hfc* geting the error as in above screenshot

RonaldReagan (Tue, 26 Feb 2019 06:41:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2cqhjvTwkTsKMX6cy) @blockchainer Yes it seems the client disconnects from peers and never reconnects? But how comes the transactions are recorded but the client is not notified of this, instead it times out. Look at some logs below [2019-02-26 06:29:50.992] [DEBUG] invoke-chaincode - Sending transaction proposal "{"_nonce":"FV+3o02+LpfsvAQjOz2G7knPL/EIZi6r","_transaction_id":"ec06626772395f9d443a05965421f2a9dd964bc61959e683aa2639183d1d6d4c"}" [2019-02-26 06:29:51.054] [INFO] invoke-chaincode - transaction proposal was good [2019-02-26 06:29:51.055] [DEBUG] invoke-chaincode - Successfully sent Proposal and received ProposalResponse: Status - 200, message - "OK", metadata - "", endorsement signature: MEUCIQDM83E6i7DUMc2s+eNvV2eaq8GBoZHRlfYE6I46Tx2MeAIgUwnJNsM/yBwDM+XDJbWoitHkhNdPl5P9CFx3EINaCkE= [2019-02-26 06:29:51.055] [DEBUG] invoke-chaincode - Committing transaction "{"_nonce":"FV+3o02+LpfsvAQjOz2G7knPL/EIZi6r","_transaction_id":"ec06626772395f9d443a05965421f2a9dd964bc61959e683aa2639183d1d6d4c"}" Request failed: POST /channels/chan-common/chaincodes/wish: TIMEOUT Error: TIMEOUT

RonaldReagan (Tue, 26 Feb 2019 06:44:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=11130e24-55b3-4d19-bcb5-7c9bdd8f0093) @walmon No, I share some logs below... [2019-02-26 06:29:50.992] [DEBUG] invoke-chaincode - Sending transaction proposal "{"_nonce":"FV+3o02+LpfsvAQjOz2G7knPL/EIZi6r","_transaction_id":"ec06626772395f9d443a05965421f2a9dd964bc61959e683aa2639183d1d6d4c"}" [2019-02-26 06:29:51.054] [INFO] invoke-chaincode - transaction proposal was good [2019-02-26 06:29:51.055] [DEBUG] invoke-chaincode - Successfully sent Proposal and received ProposalResponse: Status - 200, message - "OK", metadata - "", endorsement signature: MEUCIQDM83E6i7DUMc2s+eNvV2eaq8GBoZHRlfYE6I46Tx2MeAIgUwnJNsM/yBwDM+XDJbWoitHkhNdPl5P9CFx3EINaCkE= [2019-02-26 06:29:51.055] [DEBUG] invoke-chaincode - Committing transaction "{"_nonce":"FV+3o02+LpfsvAQjOz2G7knPL/EIZi6r","_transaction_id":"ec06626772395f9d443a05965421f2a9dd964bc61959e683aa2639183d1d6d4c"}" Request failed: POST /channels/chan-common/chaincodes/wish: TIMEOUT Error: TIMEOUT

RonaldReagan (Tue, 26 Feb 2019 06:48:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7m5CeaTvSbrXak8S) How to keep the client app connected to the peers always is the main issue I think

SatheeshNehru (Tue, 26 Feb 2019 07:03:26 GMT):
register vs enrolling user what is the difference?

rsoeldner (Tue, 26 Feb 2019 07:27:10 GMT):
@SatheeshNehru register creates a new user and enrolling is the process of receiving all certificates

SatheeshNehru (Tue, 26 Feb 2019 07:28:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WJL47q3e3NoG9EPjd) @rsoeldner willbe glad if u answer this

rsoeldner (Tue, 26 Feb 2019 07:30:03 GMT):
@SatheeshNehru cryptogen tool will pre generate all certificates, useful for prototyping - the ca is used in production (possible integration to ldap, ...)

rsoeldner (Tue, 26 Feb 2019 07:32:39 GMT):
@SatheeshNehru https://stackoverflow.com/questions/50677021/what-is-diffrence-between-enrolling-and-registering-a-certificate-in-hyperledger

SatheeshNehru (Tue, 26 Feb 2019 07:34:08 GMT):
thanks @rsoeldner

railtracer (Tue, 26 Feb 2019 07:48:23 GMT):
Hi, I am running some tests on fabric. I have one experiment where I run a single organization of 16 peers and invoke some functions on each peer. After I do another experiment with 8 organizations with 2 peers each and invoke some functions on each peer. One of the measured metrics is the difference in RAM usage of all containers before and after all invoke functions. In the case of one organization I get about 1GB extra RAM usage, in case of 8 organizations I get about 6GB extra RAM usage. Does anyone know the reason for this behaviour ?

railtracer (Tue, 26 Feb 2019 07:49:23 GMT):
The invoke functions all store the same data in the blockchain.

DanielHruby (Tue, 26 Feb 2019 08:00:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JhdyeYqTirSmeh5Aj) @dave.enyeart I am using sdk version 1.4.1 and 'new' ChannelEventHub but always after some time my connection is lost. I was checking timeouts and If I had "grpc.http2.max_pings_without_data": 0, so after one ping without data connection was lost without any error. And than if peer wanted to send block to channeleventhub so it gets error: error="context finished before block retrieved: context canceled" grpc.code=Unknown. But client (channeleventhub) dosn't know about this error and still looks ok. Even if I call function checkConnection on ChannelEventHub it returns everything ok. So I set grpc.http2.max_pings_without_data: 1000 it works and every day I restart ChannelEventHub. I know this is not good solution, but for now this is only one what works for me.

maxrobot (Tue, 26 Feb 2019 09:14:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JarLp5D8LDMx5oPsQ) @dpitt3 thanks you sir!

ahmadraza (Tue, 26 Feb 2019 09:49:58 GMT):
I got that affiliations form network however i have change organization names form org1 to manafa . where can we define affiliations any clue?

ahmadraza (Tue, 26 Feb 2019 09:50:00 GMT):
{"result":{"name":"","affiliations":[{"name":"org2","affiliations":[{"name":"org2.department1"}]},{"name":"org1","affiliations":[{"name":"org1.department1"},{"name":"org1.department2"}]}],"caname":"ca-manafa"},"errors":[],"messages":[],"success":true}

ycarmel (Tue, 26 Feb 2019 10:39:28 GMT):
Hello, I'd like to have user wallets with identity that is not linked to a specific orgranization (organization MSP). Is that possible? Can I create an MSP ID per user to achieve that?

dave.enyeart (Tue, 26 Feb 2019 11:16:27 GMT):
@DanielHruby ok, likely a grpc issue between node.js sdk and peer, please post the full details in #fabric-sdk-node so that the experts there can take a look. Or even better, open a Jira bug at https://jira.hyperledger.org/projects/FABN/issues so that the problem can get tracked and resolved.

DanielHruby (Tue, 26 Feb 2019 11:17:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EpzH39Sxky3tMXtZF) @dave.enyeart Thank you, I will create issue in Jira

Sarath_Kumar (Tue, 26 Feb 2019 11:39:45 GMT):
Hi all, I am facing an error while joining a peer to channel. network is tls enabled network. Error: *TLS handshake failed with error remote error: tls : bad certificate {"server" :"PeerServer", "remote address" :"198.01.xx.xx:43565"}*

knagware9 (Tue, 26 Feb 2019 11:50:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7pJuXFQQPE7rX4vp) @Sarath_Kumar you are not passing tLS cerrtifcate while running create channel command

Sarath_Kumar (Tue, 26 Feb 2019 11:57:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EgjjaAdiExFpSvyR2) @knagware9 thanks, these are the commands, i have used to create channel and you are right i didn't pass the tls certificate in the below command. could you tell me the *exact file* which i need to pass? *peer channel create -o orderer.example.com:7050 -c composerchannel -f ./path/composer-channel.tx --tls --cafile /path/tlsca.pem * then *peer channel join -b composerchannel.block*

knagware9 (Tue, 26 Feb 2019 12:01:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iETu6vmQaE8MKKGAh) @Sarath_Kumar peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

Sarath_Kumar (Tue, 26 Feb 2019 12:02:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nTtcKWYeMCG4tWYz7) @knagware9 here there is no *tls file* is specified you have added cafile only.

knagware9 (Tue, 26 Feb 2019 12:10:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=55WnEWAYvWMxYi2Zg) @Sarath_Kumar its mounted in docker compsoe file , you need to check mounting. how you mount files genertaed via cryptogen to peer container

Sarath_Kumar (Tue, 26 Feb 2019 12:12:47 GMT):

volumes.PNG

Sarath_Kumar (Tue, 26 Feb 2019 12:14:05 GMT):
within cli container i have executed and created channel. *peer channel create -o orderer.example.com:7050 -c composerchannel -f ./path/composer-channel.tx --tls --cafile /path/tlsca.pem*

Sarath_Kumar (Tue, 26 Feb 2019 12:14:05 GMT):
within cli container i have executed and created channel. *peer channel create -o orderer.example.com:7050 -c composerchannel -f ./path/composer-channel.tx --tls --cafile /path/tlsca.pem* @knagware9

Sarath_Kumar (Tue, 26 Feb 2019 12:16:41 GMT):
In machine 2, i am able to fetch the config by executing this command *peer channel fetch 0 mychannel.block -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile $ORDERER_CA*

knagware9 (Tue, 26 Feb 2019 12:36:13 GMT):
ok

SatheeshNehru (Tue, 26 Feb 2019 12:40:28 GMT):
where is level db file stored in fabric

SatheeshNehru (Tue, 26 Feb 2019 12:40:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eYfzGbDiab2MXs3uL) in the peer

Sarath_Kumar (Tue, 26 Feb 2019 12:48:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YSsn3YffRwk9puf5d) After this command, i have received composerchannel.block. next step i am joining the peer to channel by executing this command. *Peer join -b composerchannel.block* Error: *TLS handshake failed with error remote error: tls : bad certificate {"server" :"PeerServer", "remote address" :"198.01.xx.xx:43565"}*

Ikdem (Tue, 26 Feb 2019 12:53:47 GMT):
Has joined the channel.

Ikdem (Tue, 26 Feb 2019 12:57:27 GMT):
Hello, I have made a network composed of 3 organisations, each organisation has a peer. It includes 2 channels too. The Network works fine and I successfully installed a chaincode on each peer. The problem is .. The queries outputs are incorrect and I guess this is because I'm using JSON format for my asset without using couchDB So, the question is .. how to configure each peer to work with couchDB? because it didn,'t work when I modified the yaml files

Ikdem (Tue, 26 Feb 2019 13:32:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7ckhz4LFgXCybkurN) @ahmadraza DId you solve it @ahmadraza ? I need this too

ahmadraza (Tue, 26 Feb 2019 13:48:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BoHt5qFjQrQGhJXY5) @Ikdem No, but got some clue that we have to write a file like docker-compose-couch.yaml file

railtracer (Tue, 26 Feb 2019 13:48:53 GMT):
@Ikdem @ahmadraza Hey, you can check the core.yaml file in fabric-samples/config folder. This contains detailed description of each parameter. Each parameter can be overidden by setting the corresponding enviromental variable in the docker compose file. The name for each env. variable is obtained by taking the name of all sections above the parameter to override in all caps and separating subsections using an underscore. For example for setting the couchDB in core yaml you have the parameter statedatabase under the sections ledger->state: therefore for each peer service in the docker compose file you should add CORE_LEDGER_STATE_STATEDATABASE=CouchDB to the list of environmental variables. Check out the docker-compose-couch.yaml in fabric-samples/first-network for all the parameters to set up for couchdb.

ahmadraza (Tue, 26 Feb 2019 13:52:31 GMT):
@railtracer thanks for your help . Does we have to separate couchdb container for each peer?

railtracer (Tue, 26 Feb 2019 13:53:58 GMT):
yeah

ahmadraza (Tue, 26 Feb 2019 13:58:31 GMT):
@railtracer can you kindly answer one more question? i have edited fabric-samples/balance-transfer base.yaml , docker-compose.yaml ,network-config.yaml and org1.yaml and org2.yaml, crypto-config.yaml and configtx.yaml to define new network. Network is started correctly but when i tried to register user it gives affiliation error. i saw affiliations that are still org1.department1 and 2 but i have changed organization names. can you tell where there affiliations can be changed?

majkowski (Tue, 26 Feb 2019 14:03:22 GMT):
Has joined the channel.

dpitt3 (Tue, 26 Feb 2019 14:11:03 GMT):
to change organization names and config information you have to generate a new genesis.block.. configuration and org information is encoded in the genesis.block and used by the network.. You will use crytpogen and confgixtaltor tools.. here's a link https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

johnfilippone (Tue, 26 Feb 2019 14:18:57 GMT):
Question: In this blog post: https://www.ibm.com/blogs/blockchain/2019/01/answering-your-questions-on-hyperledger-fabric-performance-and-scale/ there is an experiment that shows that you can load balance endorsement to increase throughput. I am trying to verify if this is something that can work for our product to in crease throughput. How can I find out what the consensus algorithm used here was? How can I be sure these transactions were invokes and not queries? My best guess is that it is using solo consensus and invokes but it does not explicitly say that.

ahmadraza (Tue, 26 Feb 2019 14:27:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3KW6hHPAmdYj2kPyc) @dpitt3 i have followed the whole process create crypto-config folder through cryptogen and genesis.block channel.tx and anchors through configtxgen. but at the end issue genereated when i call to register user

ahmadraza (Tue, 26 Feb 2019 14:28:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mKi4quCC2FwwAKqhH) @dpitt3 and if i commented affiliation line users are registered successfully but when request to join channel this error is generated

ahmadraza (Tue, 26 Feb 2019 14:28:44 GMT):
@dpitt3 Failed to join all peers to channel. cause:Error: Invalid results returned ::FORBIDDEN

blockchainer (Tue, 26 Feb 2019 14:41:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3yjK3RDe9wtBBn87k) @DanielHruby This is exactly the issue I've been struggling with since so long! @DanielHruby Could you please share the link to JIRA issue that you're creating?

blockchainer (Tue, 26 Feb 2019 14:43:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7m5CeaTvSbrXak8S) @RonaldReagan Yes, the issue doesn't seem to be on Fabric's side. Try increaing the POST request's timeout.

blockchainer (Tue, 26 Feb 2019 14:43:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7m5CeaTvSbrXak8S) @RonaldReagan Yes, there's no issue on Fabric's side. I'm saying the POST request's timeout needs to be increased.

blockchainer (Tue, 26 Feb 2019 14:43:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f7m5CeaTvSbrXak8S) @RonaldReagan Yes, the issue doesn't seem to be on Fabric's side. I'm saying the POST request's timeout needs to be increased.

Ikdem (Tue, 26 Feb 2019 15:29:35 GMT):
Hello, the Chaincode got installed and instantiated succesfully and the peers connect to couchdb correctly but the functions do not return a correct output .. in other words, there is no data is added or gotten from the Ledger Do you have an idea what the problem could be?

Alex (Tue, 26 Feb 2019 15:31:40 GMT):
Has anyone ever used more than one orderer per channel with Kafka? Still not sure if this is possible. There is no mention of multiple orderers within a single channel anywhere on the docs: https://hyperledger-fabric.readthedocs.io/en/release-1.4/kafka.html

hssanbenrhouma (Tue, 26 Feb 2019 15:32:59 GMT):
Has joined the channel.

Ikdem (Tue, 26 Feb 2019 16:12:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rowZX9isb3Dctf5Z3) I got this error when trying to "invoke" Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response: "query" works fine

blockchainer (Tue, 26 Feb 2019 16:38:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fNcE3RwvZ4EDySa3t) @Alex I believe that orderers are a part of the network since they're defined in system-channel config. For each (application) channel creation, you don't specify which/hoe-many orderers to use

Alex (Tue, 26 Feb 2019 17:02:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xft4XDHXWFRJPznoN) @blockchainer The orderers are part of the network, and the set up is specified in the config file yes. But I am not sure if it is possible to have more than one orderer per channel more specifically I don't see this mentioned anywhere in the Fabric docs

dave.enyeart (Tue, 26 Feb 2019 21:31:53 GMT):
With 'solo' ordering service, there is one orderer per channel, it is mean for prototype environments. With 'kafka' based ordering service, you have N orderers per channel. I think the kafka ordering service doc makes this clear: https://hyperledger-fabric.readthedocs.io/en/latest/kafka.html

dave.enyeart (Tue, 26 Feb 2019 21:31:53 GMT):
With 'solo' ordering service, there is one orderer per channel, it is mean for prototype environments. With 'kafka' based ordering service, you have N orderers per channel for crash fault tolerance. I think the kafka ordering service doc makes this clear: https://hyperledger-fabric.readthedocs.io/en/latest/kafka.html

dave.enyeart (Tue, 26 Feb 2019 21:31:53 GMT):
With 'solo' ordering service, there is one orderer per channel, it is meant for prototype environments. With 'kafka' based ordering service, you have N orderers per channel for crash fault tolerance. I think the kafka ordering service doc makes this clear: https://hyperledger-fabric.readthedocs.io/en/latest/kafka.html

blockchainer (Tue, 26 Feb 2019 21:41:00 GMT):
Is there a way to test the peer-orderer connections?

kodonnel (Tue, 26 Feb 2019 21:57:43 GMT):
Has left the channel.

ThomasBereczky (Tue, 26 Feb 2019 22:15:12 GMT):
Hello Everyone

ThomasBereczky (Tue, 26 Feb 2019 22:15:29 GMT):
is there anyone who could chat with me a couple of minutes about Fabric?

ThomasBereczky (Tue, 26 Feb 2019 22:16:07 GMT):
Basically I'm writing a devops script that would add a new organization to an existing chain, and when I'm trying to add the new org to the channel I got Block Not Found Error

ThomasBereczky (Tue, 26 Feb 2019 22:17:13 GMT):
http://prntscr.com/mqkjbt

ThomasBereczky (Tue, 26 Feb 2019 22:17:26 GMT):
I'm trying to get through this for the past 2 weeks

ThomasBereczky (Tue, 26 Feb 2019 22:17:58 GMT):
The organization which I'm adding is not part of the channel at genesis block so I'm trying to add an entirely new org

ThomasBereczky (Tue, 26 Feb 2019 22:17:58 GMT):
The organization which I'm adding is not part of the channel at the genesis block so I'm trying to add an entirely new org

ThomasBereczky (Tue, 26 Feb 2019 22:18:45 GMT):
but even peer channel fetch config does not work after adding a new org and restarting docker

ThomasBereczky (Tue, 26 Feb 2019 22:19:52 GMT):
* peer channel fetch 0 in this case

SatheeshNehru (Wed, 27 Feb 2019 05:08:30 GMT):
is there any tool to view level b on peer similarly the chain data on peer

ATHULYAK (Wed, 27 Feb 2019 05:13:45 GMT):
Has joined the channel.

ATHULYAK (Wed, 27 Feb 2019 05:15:49 GMT):
hello ..i have a doubt related to my project (hyperledger composer) pls anybody know how to set the password of participants in hyperledger fabric?

YanLIU0822 (Wed, 27 Feb 2019 06:57:51 GMT):
hey I increase the size of BatchSize.MaxMessageCount, but the TPS and latency haven't changed can someone explain it to me. Many thanks

Sarath_Kumar (Wed, 27 Feb 2019 07:07:26 GMT):
Hi all, I have *regenerated the crypto materials* and *changed the ca file name in docker-compose.yml file*. Now, i am *not able to create a channel*. the network is a * tls enabled network*. *command executed* : peer channel create -o orderer.example.com:7050 -c composerchannel /path/composer-channel.tx --tls --cafile /path/tlsca.example.com-cert.pem *Error* : { status: ‘BAD_REQUEST’, info: ‘error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Orderer not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining’ }

Sarath_Kumar (Wed, 27 Feb 2019 07:07:26 GMT):
Hi all, @knagware9 I have *regenerated the crypto materials* and *changed the ca file name in docker-compose.yml file*. Now, i am *not able to create a channel*. the network is a * tls enabled network*. *command executed* : peer channel create -o orderer.example.com:7050 -c composerchannel /path/composer-channel.tx --tls --cafile /path/tlsca.example.com-cert.pem *Error* : { status: ‘BAD_REQUEST’, info: ‘error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Orderer not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining’ }

ahmadraza (Wed, 27 Feb 2019 07:30:21 GMT):
if i does not set CORE_PEER_GOSSIP_BOTTSTRAP environment variable does it effects the peer to join channel?

DanielHruby (Wed, 27 Feb 2019 07:47:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FSutmRcWfyotCbAki) @blockchainer I wanted to create issue. But I don't have account on Jira and I find out that for create an issue I need to contact my administrator but I don't have even any administrator. So if you have account could you please create issue?

ShefaliMittal (Wed, 27 Feb 2019 07:50:46 GMT):
Hi, While using fabric-ca-client I can create and customize values in fabric-ca-client configuration file. Do I have the similar option while using sdk for interacting with fabric ca server.

ahmadraza (Wed, 27 Feb 2019 08:31:55 GMT):

Screenshot from 2019-02-27 13-28-42.png

ahmadraza (Wed, 27 Feb 2019 08:31:59 GMT):

Screenshot from 2019-02-27 13-29-11.png

ahmadraza (Wed, 27 Feb 2019 08:32:17 GMT):

Screenshot from 2019-02-27 13-29-59.png

ahmadraza (Wed, 27 Feb 2019 08:37:17 GMT):
But manafa org successfully join channel and cma org did not join channel shown error"Invalid resuld returned :: FORBIDDEN"

ahmadraza (Wed, 27 Feb 2019 08:37:17 GMT):
But manafa org successfully join channel and cma org did not join channel shown error"Invalid resuld returned :: FORBIDDEN" manafa has 2 peers and cma has 1 peer

luca-morgese97 (Wed, 27 Feb 2019 09:17:47 GMT):
Has joined the channel.

luca-morgese97 (Wed, 27 Feb 2019 09:18:23 GMT):
Hello! I have a question. I understand from fabric 1.4 documentation that the .../msp folder for each peer and orderer has to have at least "admincerts", "cacerts", "keystore" and "signcerts". Through cryptogen generate --config="./crypto-config.yaml" invocation, I can see that MSP folders are generated with only "admincerts", "cacerts" and "tlscerts". So when I run "docker-compose -f up", I get an error in the log which says Failed to initialize local MSP, could not load a valid signer certificate from directory [...msp/signcerts] [...] [...]/msp/signcerts: no such file or directory How do I make sure that /signcerts exists and has a valid .pem file, so that a local MSP is initialized, and my orderer can be operative? Thanks!

Sarath_Kumar (Wed, 27 Feb 2019 09:21:47 GMT):
Hi all, reference : https://medium.com/@thotanarendranathreddy/hyperledger-fabric-multi-org-multi-channel-kafka-consensus-multi-orderers-errors-9c393791663a Error 4: Orderer Logs: reg channel creation error 2018–10–04 08:19:28.617 UTC [orderer/common/broadcast] Handle -> WARN 132 [channel: public] Rejecting broadcast of config message from 10.255.0.2:57714 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining Reason: transaction is not signed with admin key Solution: To create a channel we need admin credentials such as private key & public certificate(Ex: x.509) command i used : *peer channel create -o orderer.example.com:7050 -c composerchannel /path/composer-channel.tx --tls --cafile /path/tlsca.example.com-cert.pem* could someone explain what are the parameters required to successfully create a channel. thanks in advance.

Sarath_Kumar (Wed, 27 Feb 2019 09:21:47 GMT):
Hi all, reference : https://medium.com/@thotanarendranathreddy/hyperledger-fabric-multi-org-multi-channel-kafka-consensus-multi-orderers-errors-9c393791663a Error 4: Orderer Logs: reg channel creation error 2018–10–04 08:19:28.617 UTC [orderer/common/broadcast] Handle -> WARN 132 [channel: public] Rejecting broadcast of config message from 10.255.0.2:57714 because of error: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining Reason: transaction is not signed with admin key Solution: To create a channel we need admin credentials such as private key & public certificate(Ex: x.509) command i used : *peer channel create -o orderer.example.com:7050 -c composerchannel /path/composer-channel.tx --tls --cafile /path/tlsca.example.com-cert.pem* could someone explain what are the parameters required to successfully create a channel. thanks in advance. I have configured the certficate in cli. is it necessary to pass in commands?

lotty02cho (Wed, 27 Feb 2019 09:32:09 GMT):
I try to make three Orgs using Kafka cluster by using fabric-samples/first-network. so I edited docker-compose-.yaml files and run it. but when I start `./byfn.sh -m up`, I saw this below error. ``` 2019-02-27 09:20:26.649 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-02-24 09:03:00 +0000 UTC 2019-02-27 09:20:26.649 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-02-27 09:20:26.649 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-02-27 09:20:26.650 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-02-27 09:20:26.650 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-02-27 09:20:26.650 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer.seoulmc.com:7050 0 }] 2019-02-27 09:20:26.650 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-02-27 09:20:26.650 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc0003ca510, CONNECTING 2019-02-27 09:20:26.653 UTC [grpc] HandleSubConnStateChange -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc0003ca510, READY 2019-02-27 09:20:26.653 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2019-02-27 09:20:26.653 UTC [msp] GetDefaultSigningIdentity -> DEBU 03f Obtaining default signing identity 2019-02-27 09:20:26.653 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2019-02-27 09:20:26.653 UTC [msp.identity] Sign -> DEBU 041 Sign: plaintext: 0AB6060A074F7267314D535012AA062D...656F756C6D63436F6E736F727469756D 2019-02-27 09:20:26.653 UTC [msp.identity] Sign -> DEBU 042 Sign: digest: DE70F719BD4165F755AA1479E16ACFBFECDD9D745985225C4BD456390D221255 2019-02-27 09:20:26.653 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-02-27 09:20:26.653 UTC [msp] GetDefaultSigningIdentity -> DEBU 044 Obtaining default signing identity 2019-02-27 09:20:26.653 UTC [msp.identity] Sign -> DEBU 045 Sign: plaintext: 0AF2060A1A08021A0608DAACD9E30522...D99FAE47D897B57A697E9949623991DC 2019-02-27 09:20:26.653 UTC [msp.identity] Sign -> DEBU 046 Sign: digest: 5920EF0A275E670AEBD146A58A94F825C9826CACB36B2456DB40CE54D94DE0B9 2019-02-27 09:20:26.654 UTC [grpc] DialContext -> DEBU 047 parsed scheme: "" 2019-02-27 09:20:26.654 UTC [grpc] DialContext -> DEBU 048 scheme "" not registered, fallback to default scheme 2019-02-27 09:20:26.654 UTC [grpc] watcher -> DEBU 049 ccResolverWrapper: sending new addresses to cc: [{orderer.seoulmc.com:7050 0 }] 2019-02-27 09:20:26.654 UTC [grpc] switchBalancer -> DEBU 04a ClientConn switching balancer to "pick_first" 2019-02-27 09:20:26.654 UTC [grpc] HandleSubConnStateChange -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc0001a9d50, CONNECTING 2019-02-27 09:20:26.658 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc0001a9d50, READY Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

lotty02cho (Wed, 27 Feb 2019 09:33:05 GMT):
Here is my `docker-compose-kafka.yaml`. ``` # Copyright NDS Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' networks: byfn: services: zookeeper1: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper1 hostname: zookeeper1 restart: always environment: - ZOO_MY_ID=1 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2181:2181" - "2888:2888" - "3888:3888" networks: - byfn zookeeper2: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper2 hostname: zookeeper2 restart: always environment: - ZOO_MY_ID=2 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2281:2181" - "2788:2888" - "3788:3888" networks: - byfn zookeeper3: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper3 hostname: zookeeper3 restart: always environment: - ZOO_MY_ID=3 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2381:2181" - "2688:2888" - "3688:3888" networks: - byfn kafka1: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka1 hostname: kafka1 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka1 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9092:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 kafka2: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka2 hostname: kafka2 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=2 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka2 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9192:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 kafka3: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka3 hostname: kafka3 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=3 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka3 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9292:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 orderer.seoulmc.com: environment: # kafka - CONFIGTX_ORDERER_ORDERERTYPE=kafka - CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka1:9092,kafka2:9092,kafka3:9092] - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFKA_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true depends_on: - kafka1 - kafka2 - kafka3 ```

lotty02cho (Wed, 27 Feb 2019 09:33:05 GMT):
I made 3 kafka and 3 zookeeper. Actually, I tested this cluster when I composed basic Org1, 2 and mychannel it works well. Here is my `docker-compose-kafka.yaml`. ``` # Copyright NDS Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' networks: byfn: services: zookeeper1: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper1 hostname: zookeeper1 restart: always environment: - ZOO_MY_ID=1 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2181:2181" - "2888:2888" - "3888:3888" networks: - byfn zookeeper2: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper2 hostname: zookeeper2 restart: always environment: - ZOO_MY_ID=2 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2281:2181" - "2788:2888" - "3788:3888" networks: - byfn zookeeper3: image: hyperledger/fabric-zookeeper:$IMAGE_TAG container_name: zookeeper3 hostname: zookeeper3 restart: always environment: - ZOO_MY_ID=3 - ZOO_SERVERS=server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888 ports: - "2381:2181" - "2688:2888" - "3688:3888" networks: - byfn kafka1: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka1 hostname: kafka1 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka1 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9092:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 kafka2: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka2 hostname: kafka2 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=2 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka2 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9192:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 kafka3: image: hyperledger/fabric-kafka:$IMAGE_TAG container_name: kafka3 hostname: kafka3 restart: always environment: - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_MESSAGE_MAX_BYTES=103809024 - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 - KAFKA_BROKER_ID=3 - KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=30000 #add - KAFKA_ADVERTISED_HOST_NAME=kafka3 #add - KAFKA_ADVERTISED_PORT=9092 #add ports: - "9292:9092" networks: - byfn depends_on: - zookeeper1 - zookeeper2 - zookeeper3 orderer.seoulmc.com: environment: # kafka - CONFIGTX_ORDERER_ORDERERTYPE=kafka - CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka1:9092,kafka2:9092,kafka3:9092] - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFKA_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true depends_on: - kafka1 - kafka2 - kafka3 ```

AlbertCL (Wed, 27 Feb 2019 09:53:16 GMT):
Has joined the channel.

HarshithaC (Wed, 27 Feb 2019 11:53:05 GMT):
Hello! Anybody tried Hyperledger Fabric Client(HFC) ?

HarshithaC (Wed, 27 Feb 2019 11:53:05 GMT):
Hello! Anybody tried Hyperledger Fabric Client(HFC) ? when to use HFC?

Sarath_Kumar (Wed, 27 Feb 2019 12:29:44 GMT):
Hi all, is it necessary to create composer-channel.tx file after regenerating crypto materials?

dave.enyeart (Wed, 27 Feb 2019 12:33:41 GMT):
@DanielHruby If you have a rocket.chat id, you have a Jira id... they use the same linux foundation authentication

SatheeshNehru (Wed, 27 Feb 2019 12:37:39 GMT):
what zookeeper does in fabric

DanielHruby (Wed, 27 Feb 2019 12:48:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YBWr6kCAnxNRj3MY7) @dave.enyeart I don't have rocket.chat, so that's little problem for me create issue

dave.enyeart (Wed, 27 Feb 2019 12:53:27 GMT):
If you are posting here, you have an id

dave.enyeart (Wed, 27 Feb 2019 12:53:27 GMT):
@DanielHruby If you are posting here, you have an id. There is one common id for all linux foundation / hyperledger systems

DanielHruby (Wed, 27 Feb 2019 12:59:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=edLYY8rqkGaAx3DDA) @dave.enyeart I didn't know that, thanks

Sarath_Kumar (Wed, 27 Feb 2019 13:02:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FA4hzdLshC7xtX323) Hi @dave.enyeart , may i know the certificates to be entered into it.?

Sarath_Kumar (Wed, 27 Feb 2019 13:02:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FA4hzdLshC7xtX323) Hi, may i know the certificates to be entered into it.?

DanielHruby (Wed, 27 Feb 2019 13:13:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FSutmRcWfyotCbAki) @blockchainer Here is link to issue https://jira.hyperledger.org/browse/FABN-1164

maxrobot (Wed, 27 Feb 2019 13:58:22 GMT):
Does anyone know whether the `common.proto` file is correctly defined, as in the field `channelHeader` we see ``` // The epoch in which this header was generated, where epoch is defined based on block height // Epoch in which the response has been generated. This field identifies a // logical window of time. A proposal response is accepted by a peer only if // two conditions hold: // 1. the epoch specified in the message is the current epoch // 2. this message has been only seen once during this epoch (i.e. it hasn't // been replayed) uint64 epoch = 6; // Extension that may be attached based on the header type bytes extension = 7; // If mutual TLS is employed, this represents // the hash of the client's TLS certificate bytes tls_cert_hash = 8; ``` however looking at the google docs for protobuf they define only 6 types from 0-5 whereas here we see a total of 8 types being used... ``` 0 Varint int32, int64, uint32, uint64, sint32, sint64, bool, enum 1 64-bit fixed64, sfixed64, double 2 Length-delimited string, bytes, embedded messages, packed repeated fields 3 Start group groups (deprecated) 4 End group groups (deprecated) 5 32-bit fixed32, sfixed32, float ``` I think that the `common.proto` does not follow the rules correctly as when trying to marshall the binary of an a block I see the error: ``` proto: can't skip unknown wire type 6 for common.Block ```

Mantaray (Wed, 27 Feb 2019 14:09:06 GMT):
Has joined the channel.

Mantaray (Wed, 27 Feb 2019 14:09:27 GMT):
Hello guys, after successfully invoking my chaincode in the fabric-samples i get the following error when i want to query the result.

Mantaray (Wed, 27 Feb 2019 14:09:32 GMT):
Error: endorsement failure during query. response: status:500 message:"failed to execute transaction cdd3c4fea83758bdcb92ae087273e64b81805b34b647914729e99285d40d8fc9: error sending: timeout expired while executing transaction"

Mantaray (Wed, 27 Feb 2019 14:09:35 GMT):
what could it be?

blockchainer (Wed, 27 Feb 2019 14:09:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YBWr6kCAnxNRj3MY7) @dave.enyeart Thanks for this info!

blockchainer (Wed, 27 Feb 2019 14:09:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KyNjfNMAFccdjogW4) @DanielHruby Thanks!

Mantaray (Wed, 27 Feb 2019 14:09:54 GMT):
peer chaincode query -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n bachelortest -c '{"Args":["getTransaction","2"]}' -> was the command

warsclon (Wed, 27 Feb 2019 14:10:41 GMT):
Has joined the channel.

maxrobot (Wed, 27 Feb 2019 17:39:50 GMT):
Could anybody explain how the signature set is evaluated against a specific policy as in `fabric/peer/gossip/mcs.go` function `verifyBlock()`? I don't see how from the signature set the orderer policy is evaluated...

maxrobot (Wed, 27 Feb 2019 17:43:13 GMT):
more practically I'd like to know where the public key recovery is done by a peer when receiving a block from an orderer

Antimttr (Wed, 27 Feb 2019 18:04:18 GMT):
I am attempting to reconfigure the balance transfer network for use with Couchdb. I added the couchdb docker images, and they start fine, I added the docker configuration variables to the docker composer config file. But now, when i try to join my peers to the channel im getting this message: `[2019-02-27 17:57:45.099] [ERROR] Join-Channel - Failed to join peer to the channel with error :: Error: 2 UNKNOWN: Stream removed [2019-02-27 17:57:45.099] [ERROR] Join-Channel - Failed to join peer to the channel with error :: Error: 2 UNKNOWN: Stream removed [2019-02-27 17:57:45.099] [ERROR] Join-Channel - Failed to join all peers to channel. cause:Failed to join peer to the channel with error :: Error: 2 UNKNOWN: Stream removed `

Antimttr (Wed, 27 Feb 2019 18:05:19 GMT):
any clue why adding docker as the peer data store would cause this message?

Antimttr (Wed, 27 Feb 2019 18:05:19 GMT):
any clue why adding couchdb as the peer data store would cause this message?

Antimttr (Wed, 27 Feb 2019 18:06:41 GMT):
my docker compose config file: https://pastebin.com/QuMz4BRg

mazdah (Wed, 27 Feb 2019 18:36:42 GMT):
Has joined the channel.

Pranay333 (Wed, 27 Feb 2019 18:53:24 GMT):
Has joined the channel.

Pranay333 (Wed, 27 Feb 2019 18:55:45 GMT):
I used the simple bfyn network for 3 peers and when all peers joined the channel I destroyed the orderer container, for that I started getting [mychannel] Got error &{NOT_FOUND} on other peers as they are trying to communicate with orderer. Does ordere saves the channel information ? if yes where

Pranay333 (Wed, 27 Feb 2019 18:55:45 GMT):
I used the simple bfyn network for 3 peers and when all peers joined the channel I destroyed the orderer container, for that I started getting *[mychannel] Got error &{NOT_FOUND}* on other peers as they are trying to communicate with orderer. Does ordere saves the channel information ? if yes where

Pranay333 (Wed, 27 Feb 2019 18:56:46 GMT):
As when I restart the orderer the peer still give me* [mychannel] Got error &{NOT_FOUND}* but orderer is now up again. Can anyone help on that ?

Pranay333 (Wed, 27 Feb 2019 18:56:46 GMT):
As when I restart the orderer the peer still give me *[mychannel] Got error &{NOT_FOUND}* but orderer is now up again. Can anyone help on that ?

Antimttr (Wed, 27 Feb 2019 19:14:51 GMT):
Ok fixed my problem, i had username in password field and password in username field :joy:

duy3991 (Thu, 28 Feb 2019 04:13:07 GMT):
Hello Guys,

duy3991 (Thu, 28 Feb 2019 04:13:07 GMT):
Hello Guys, when I change configtx.yaml and regenerate genesis block and create channel transaction: configtxgen -profile ComposerOrdererGenesis -outputBlock ./composer-genesis.block error ....

duy3991 (Thu, 28 Feb 2019 04:14:58 GMT):

Clipboard - February 28, 2019 11:14 AM

ParthKaloliya (Thu, 28 Feb 2019 07:41:06 GMT):
What is the highest TPS you achieve in fabric when you are trying to upload thousands of records on couchDB ??

pikvik (Thu, 28 Feb 2019 08:36:46 GMT):
Hi folks I am installing fabric on ubuntu and encountered this error ... looked across but nothing worked please help me out .

pikvik (Thu, 28 Feb 2019 08:37:03 GMT):

Screen Shot 2019-02-28 at 2.05.23 PM.png

SergioTorres (Thu, 28 Feb 2019 08:40:10 GMT):
yeah

duy3991 (Thu, 28 Feb 2019 08:40:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2yTu8ea29R4vwqeJv) @pikvik you run 4 cmd: docker rm -f $(docker ps -aq) docker rmi -f $(docker images -q) docker network prune docker volume prune and reinstall fabric again :). Good luck!

SergioTorres (Thu, 28 Feb 2019 08:40:18 GMT):
yesterday I get the same error

SergioTorres (Thu, 28 Feb 2019 08:40:40 GMT):
you need to go to /etc/resolv.conf

SergioTorres (Thu, 28 Feb 2019 08:42:23 GMT):
and comment the last line ""

SergioTorres (Thu, 28 Feb 2019 08:43:06 GMT):
I can´t remember the text of this line, but this is a normal error when you use servers on IBM Cloud or Alibaba

pikvik (Thu, 28 Feb 2019 08:43:38 GMT):
@SergioTorres I m using azure

pikvik (Thu, 28 Feb 2019 08:56:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7FRe6gPEWsr5AYfjM) @duy3991 @duy3991 thanks . but unfortunately dint work

pikvik (Thu, 28 Feb 2019 09:03:47 GMT):

Screen Shot 2019-02-28 at 2.32.23 PM.png

pikvik (Thu, 28 Feb 2019 09:04:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8dfKYDe9SutKZtDhe) @SergioTorres Hi Sergio this is my resolv.conf file

pikvik (Thu, 28 Feb 2019 09:04:45 GMT):
should we comment out search

pikvik (Thu, 28 Feb 2019 09:07:59 GMT):
Folks please help me out as i have hit blocker with this error

Muazzamkhan95 (Thu, 28 Feb 2019 09:10:07 GMT):
Has joined the channel.

Muazzamkhan95 (Thu, 28 Feb 2019 09:10:13 GMT):
Hello guys! i am new in hyperledger fabric development! can anyone have some time to get me on the right track ?

benjamin.verhaegen (Thu, 28 Feb 2019 09:26:20 GMT):
Hi, i'm trying to secure the connection between my orderer and my kafka-zookeeper cluster. Does anybody has some clear documentation on how to setup TLS?

ahmadraza (Thu, 28 Feb 2019 09:48:03 GMT):
Failed to invoke chaincode. cause:invoke chaincode proposal resulted in an error :: Error: REQUEST_TIMEOUT?

ahmadraza (Thu, 28 Feb 2019 09:48:03 GMT):
Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: REQUEST_TIMEOUT. I have increased timeout but same error occurs

mehulcs (Thu, 28 Feb 2019 10:32:29 GMT):
Has joined the channel.

UnaiUrkiaga (Thu, 28 Feb 2019 10:44:16 GMT):
Hi everyone! I want to limitate the channel creation on Hyperledger Fabric, only orderer admin can create the channel. Is that posible? or only peer users can create the channel?

Aniket.1 (Thu, 28 Feb 2019 11:03:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TSLkmjBu3iJm2X76n) @ahmadraza have you gone through the peer logs? and is there a chaincode docker container created?

maxrobot (Thu, 28 Feb 2019 11:03:45 GMT):
I am trying to understand how blocks are signed by the orderer, where can I find what signature scheme was used? I see that the in `addBlockSignature()` the function `utils.SignOrPanic()` is called. However I then am left with the dead end of `localSigner.sign()` this is a stub interface of the signing scheme defined by the MSP but I don't see where this is actually defined in a local MSP...

ahmadraza (Thu, 28 Feb 2019 11:08:32 GMT):

dockers.png

ahmadraza (Thu, 28 Feb 2019 11:08:32 GMT):

dockers.png

ahmadraza (Thu, 28 Feb 2019 11:09:46 GMT):
@Aniket.1 this is my docker list

Aniket.1 (Thu, 28 Feb 2019 11:14:13 GMT):
what is the error in peer logs? Have you installed it successfully? @ahmadraza

ahmadraza (Thu, 28 Feb 2019 11:15:44 GMT):
@anki

ahmadraza (Thu, 28 Feb 2019 11:15:44 GMT):
@Aniket.1 basically i have change balance-transfer in fabric smaples organizations every thing is ok channel is created organizations join the channel but at time of instantiation there is timeout error.

Aniket.1 (Thu, 28 Feb 2019 11:17:56 GMT):
Have you installed the chaincode?

ahmadraza (Thu, 28 Feb 2019 11:18:02 GMT):
yes

ahmadraza (Thu, 28 Feb 2019 11:18:33 GMT):

Screenshot from 2019-02-28 16-18-12.png

ahmadraza (Thu, 28 Feb 2019 11:19:14 GMT):
@Aniket.1 sorry wrong image is shared

Aniket.1 (Thu, 28 Feb 2019 11:19:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oYePcNBqmyFzrcFEd) @ahmadraza yes

Aniket.1 (Thu, 28 Feb 2019 11:21:16 GMT):
can you add the peer logs of error?

ahmadraza (Thu, 28 Feb 2019 11:24:05 GMT):

Screenshot from 2019-02-28 16-23-30.png

ahmadraza (Thu, 28 Feb 2019 11:24:10 GMT):

insta.png

ahmadraza (Thu, 28 Feb 2019 11:26:12 GMT):
@Aniket.1 which peer logs you want and how i get them?

Aniket.1 (Thu, 28 Feb 2019 11:27:45 GMT):
logs of target peer docker container. You can use > docker logs

Aniket.1 (Thu, 28 Feb 2019 11:27:45 GMT):
logs of target peer docker container. You can use: docker logs

ahmadraza (Thu, 28 Feb 2019 11:30:12 GMT):
i check the logs of peer0.manafa.example.com they are too lengthy but i cant find any error in it

ahmadraza (Thu, 28 Feb 2019 11:30:12 GMT):
i check the logs of peer0.manafa.example.com they are too lengthy but i cant find any error in it @Aniket.1

balakrishna.devasani (Thu, 28 Feb 2019 11:37:45 GMT):
Hi All, i have a requirement in chaincode where i need to create a view (design document) in couchdb database. Do hyperledger fabric allow to create a view in couchdb ? Thanks in advance.

UnaiUrkiaga (Thu, 28 Feb 2019 11:39:49 GMT):
What is the difference betwenen ORG administrator, Peer administrator and Orderer administrator?

SahithiDyavarashetti (Thu, 28 Feb 2019 11:55:01 GMT):
where can we define endorsing peers in hyperledger channel?

mastersingh24 (Thu, 28 Feb 2019 11:55:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JQHtkamP6SpJ23rWz) @SahithiDyavarashetti An endorsing peer will be a peer which has the chaincode installed and is a member of any channel(s) where the chaincode has been instantiated

SahithiDyavarashetti (Thu, 28 Feb 2019 12:00:28 GMT):
i know that .But in which file we will be specifying the endorser peers?

SahithiDyavarashetti (Thu, 28 Feb 2019 12:00:42 GMT):
@mastersingh24

FabricBeer (Thu, 28 Feb 2019 12:03:00 GMT):
@mastersingh24 Where to configure the endorsing peers and committing peers

mastersingh24 (Thu, 28 Feb 2019 12:05:20 GMT):
From a Fabric perspective, again an endorsing peer is one which has the chaincode installed and is a member of a channel which has the chaincode instantiated. A committing peer will be a member of a channel but not have the chaincode installed. There is no configuration which "defines" this. For clients which use the SDKs, you can optionally specify endorsing peers in the connection profile

SahithiDyavarashetti (Thu, 28 Feb 2019 12:06:05 GMT):
how can we define in connection profile ?

SahithiDyavarashetti (Thu, 28 Feb 2019 12:06:11 GMT):
@mastersingh24

FabricBeer (Thu, 28 Feb 2019 12:10:15 GMT):
{ "name": "hlfv1", "x-type": "hlfv1", "version": "1.0.0", "peers": { "peer0.org1.example.com": { "url": "grpc://localhost:7051" }, "peer1.org1.example.com": { "url": "grpc://localhost:8051" }, "peer2.org1.example.com": { "url": "grpc://192.168.1.181:9051" } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "http://localhost:7054", "caName": "ca.org1.example.com" } }, "orderers": { "orderer.example.com": { "url": "grpc://localhost:7050" } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com", "peer1.org1.example.com", "peer2.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "channels": { "composerchannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer1.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true }, "peer2.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true } } } }, "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } } }

FabricBeer (Thu, 28 Feb 2019 12:10:32 GMT):
@mastersingh24 is in that way?:point_up_2:

FabricBeer (Thu, 28 Feb 2019 12:10:32 GMT):
@mastersingh24 is in that way?

SahithiDyavarashetti (Thu, 28 Feb 2019 12:18:12 GMT):
Thanks @mastersingh24

Aniket.1 (Thu, 28 Feb 2019 12:19:57 GMT):
Has anyone used couchDB as world state successfully with version 1.4? Please let me know.

Pranay333 (Thu, 28 Feb 2019 12:44:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=teXqvaztthC3XPrPS) Anyone to help me out here ??

florianc (Thu, 28 Feb 2019 12:49:26 GMT):
What do you mean channle information? Why would you destroy the orderer? The network is nothing without it.

maxrobot (Thu, 28 Feb 2019 13:47:37 GMT):
hello all

maxrobot (Thu, 28 Feb 2019 13:47:50 GMT):
is anyone aware of how I specify which elliptic curve to use

maxrobot (Thu, 28 Feb 2019 13:47:52 GMT):
?

HaydenGriffin (Thu, 28 Feb 2019 14:27:48 GMT):
Has anyone got an example of using the certificate authority to register new users with fabric Go SDK?

nawhes (Thu, 28 Feb 2019 14:39:41 GMT):
Has joined the channel.

nawhes (Thu, 28 Feb 2019 14:39:44 GMT):
Hello, When i use fabric-ca, How can orderer get signcert of admin's signcert of org??

maxrobot (Thu, 28 Feb 2019 15:56:09 GMT):
nobody is answering questions today

dpitt3 (Thu, 28 Feb 2019 17:13:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CA8NqLoiHeDtXy2n5) @Pranay333 Channel information is stored in the blockstore as a configuration block.

dpitt3 (Thu, 28 Feb 2019 17:17:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JxqDTZAK9ocrwJzsf) Also, orderer has to be up for network to work

Pranay333 (Thu, 28 Feb 2019 17:40:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JxqDTZAK9ocrwJzsf) @dpitt3 Okay, so I did restarted the order container, and my expectation was that the orderer will continue the ordering service. After I pushed up the orderer which I took down, my peer gave me mychannel] Got error &{NOT_FOUND}*

SJoshi7 (Thu, 28 Feb 2019 19:15:25 GMT):
Can anyone help me with understanding BCCSP ( Blockchain cryptographic service provider) ?

dpitt3 (Thu, 28 Feb 2019 21:44:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gGYfn6jZi4T6bZFBj) @Pranay333 What operation where you performing when you got error and not found...

Estebanrestrepo (Fri, 01 Mar 2019 01:24:59 GMT):
Has joined the channel.

Estebanrestrepo (Fri, 01 Mar 2019 01:25:55 GMT):
Hello, i have a problem with fabric-samples/first-network. Can you help me?

JMIsham (Fri, 01 Mar 2019 04:23:48 GMT):
@Estebanrestrepo Whatsup??

JMIsham (Fri, 01 Mar 2019 04:25:34 GMT):
Where can I find the documentation on configuring and creating a production network + managing it. TIA

SubhraSankhaBose (Fri, 01 Mar 2019 06:17:00 GMT):
Has joined the channel.

SubhraSankhaBose (Fri, 01 Mar 2019 06:18:53 GMT):
Hi fabic team, I am getting the below error while tring to add peer0 of org3 in mychannel

SubhraSankhaBose (Fri, 01 Mar 2019 06:20:57 GMT):
failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7052: failed to create new connection: context deadline exceeded Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7052: failed to create new connection: context deadline exceeded

SubhraSankhaBose (Fri, 01 Mar 2019 06:20:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aTvrxvTnLoE3zEAu3) @DGBlock failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded failed to create new connection: context deadline exceeded Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7052: failed to create new connection: context deadline exceeded Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:7052: failed to create new connection: context deadline exceeded @DGBlock I am very new to fabric.. So,could u plz elaborate how should I check that?

SubhraSankhaBose (Fri, 01 Mar 2019 06:20:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aTvrxvTnLoE3zEAu3) @DGBlock @DGBlock I am very new to fabric. SO,could you plz elaborate how should I check that?

akshaymayekar (Fri, 01 Mar 2019 06:48:23 GMT):
Has joined the channel.

DGBlock (Fri, 01 Mar 2019 06:48:26 GMT):
Has joined the channel.

DGBlock (Fri, 01 Mar 2019 06:48:29 GMT):
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

DGBlock (Fri, 01 Mar 2019 06:48:56 GMT):
I am also getting the same error in Fabric v.1.4

akshaymayekar (Fri, 01 Mar 2019 06:49:08 GMT):
I have set up my fabric network on my local machine following fabric samples folder (first network) documentation for Hyperledger documentation. Now I have added only one organization in my network now I want to add new organization from a different machine. Can you guide me which files I need to update and what configuration should add to enable multi-organization setup?

DGBlock (Fri, 01 Mar 2019 06:49:15 GMT):
the peers are exiting just after shutting down

DGBlock (Fri, 01 Mar 2019 06:50:30 GMT):
@SubhraSankhaBose can u check once that peers are exiting as soon as they are getting started ?

Aniket.1 (Fri, 01 Mar 2019 07:49:30 GMT):
while using couchDB as peer ledger, I am getting this error : ``` ```

Aniket.1 (Fri, 01 Mar 2019 07:49:30 GMT):
while using couchDB as peer ledger, I am getting this error : ``` panic: runtime error: invalid memory address or nil pointer dereference ```

ahmadraza (Fri, 01 Mar 2019 07:55:37 GMT):
what is CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE in peer-base.yaml

sanket1211 (Fri, 01 Mar 2019 08:03:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BktWNqzp74iQgvT72) @Aniket.1 just clear the previous docker conatiners and images and try again..

DGBlock (Fri, 01 Mar 2019 08:58:36 GMT):
@ahmadraza ${COMPOSE_PROJECT_NAME}_byfn I checked it ..this is fine.

Aniket.1 (Fri, 01 Mar 2019 09:09:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7fXGacALEXySAWDc) I setup it fresh. On running peer it first give this error : ``` 2019-03-01 13:11:18.813 IST [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt 2019-03-01 13:11:18.813 IST [kvledger] NewProvider -> INFO 003 Initializing ledger provider 2019-03-01 13:11:19.219 IST [kvledger] NewProvider -> INFO 004 ledger provider Initialized 2019-03-01 13:11:19.446 IST [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string 2019-03-01 13:11:19.446 IST [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string. Check the admin username and password. 2019-03-01 13:11:19.446 IST [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized ```

Aniket.1 (Fri, 01 Mar 2019 09:09:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7fXGacALEXySAWDc) I setup it fresh. On running peer it first give this error : @sanket1211 ``` 2019-03-01 13:11:18.813 IST [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt 2019-03-01 13:11:18.813 IST [kvledger] NewProvider -> INFO 003 Initializing ledger provider 2019-03-01 13:11:19.219 IST [kvledger] NewProvider -> INFO 004 ledger provider Initialized 2019-03-01 13:11:19.446 IST [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string 2019-03-01 13:11:19.446 IST [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string. Check the admin username and password. 2019-03-01 13:11:19.446 IST [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized ```

benjamin.verhaegen (Fri, 01 Mar 2019 09:14:41 GMT):
Hi, i'm getting following error from my kafka container: [2019-03-01 09:11:38,538] WARN [SocketServer brokerId=0] Unexpected error from /172.29.0.15; closing connection (org.apache.kafka.common.network.Selector) org.apache.kafka.common.network.InvalidReceiveException: Invalid receive (size = 369295616 larger than 104857600)

benjamin.verhaegen (Fri, 01 Mar 2019 09:14:53 GMT):
help would be appreciated

akshaymayekar (Fri, 01 Mar 2019 09:44:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8355d379-063d-4f23-8c72-935d65ecda98) @alokkv @alokkv can you tell me how you add second org to you fabric network because I am also following first network program and started with only org.Plz tell me the files which I need to edit or detail steps would be great. Thanks

Aniket.1 (Fri, 01 Mar 2019 10:11:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=99oRoGnChY8Hz89yC) I can see database '_users' available in couchdb

Aniket.1 (Fri, 01 Mar 2019 10:33:30 GMT):
is there anyone who has successfully setup couchDB as peer ledger db. Please help in this issue. I have spent many days trying to get it resolved.

DGBlock (Fri, 01 Mar 2019 10:44:56 GMT):
Hi ..Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

DGBlock (Fri, 01 Mar 2019 10:44:56 GMT):
Hi .. I am getting the Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded in fabric v 1.4

DGBlock (Fri, 01 Mar 2019 10:46:02 GMT):
can anybody help with this

ahmadraza (Fri, 01 Mar 2019 10:50:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WQkJ74A4W2XEBkrnw) @Aniket.1 i am also trying

ahmadraza (Fri, 01 Mar 2019 10:54:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S6Dkk8JnFi3JqBzFa) kindly check fabric-samples/first-network/docker-compose-couch.yaml file may you get some help

Aniket.1 (Fri, 01 Mar 2019 10:56:23 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/core/ledger/util/couchdb/couchdb.go#L51

Aniket.1 (Fri, 01 Mar 2019 10:56:30 GMT):
this is the reason of error

Aniket.1 (Fri, 01 Mar 2019 10:56:30 GMT):
this is the reason of error, as per my investigation

Aniket.1 (Fri, 01 Mar 2019 10:57:21 GMT):
which shows: ``` type DBInfo struct { DbName string `json:"db_name"` UpdateSeq string `json:"update_seq"` ```

Aniket.1 (Fri, 01 Mar 2019 10:57:39 GMT):
As error says: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string

Aniket.1 (Fri, 01 Mar 2019 10:57:39 GMT):
As error says: `json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string`

ahmadraza (Fri, 01 Mar 2019 10:58:43 GMT):
sorry @Aniket.1 am not using golang and currently am getting issues in running containers . did you run containers successfully?

Aniket.1 (Fri, 01 Mar 2019 10:58:52 GMT):
and couchdb is passing update_seq as number

Aniket.1 (Fri, 01 Mar 2019 10:58:52 GMT):
and couchdb is passing `update_seq` as number

Aniket.1 (Fri, 01 Mar 2019 10:59:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=i7mTkvQSZ8MEq3Shb) I am referring the hyperledger code to process couchdb

nagashree (Fri, 01 Mar 2019 11:00:22 GMT):
Has joined the channel.

nagashree (Fri, 01 Mar 2019 11:00:37 GMT):
hi While trying to create a channel I am getting error "2019-03-01 10:37:55.897 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: Invalid channel create transaction : mismatched channel ID HANNEL_NAME != myChannel" how can I fix it

Aniket.1 (Fri, 01 Mar 2019 11:03:11 GMT):
provide channel name same as in configtx.yaml

Aniket.1 (Fri, 01 Mar 2019 11:03:11 GMT):
provide channel name same as used while creating genesis block and config tx

Aniket.1 (Fri, 01 Mar 2019 11:03:11 GMT):
provide channel name same as used while creating genesis block and config tx @nagashree

DGBlock (Fri, 01 Mar 2019 11:05:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S6Dkk8JnFi3JqBzFa) @ahmadraza @Aniket.1 have you tried to up the docker-compose -couch.yaml ?

ahmadraza (Fri, 01 Mar 2019 11:07:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pa2w3Bo2386YhFMm4) @DGBlock yes am trying

ahmadraza (Fri, 01 Mar 2019 11:08:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DKZcunNy8zQfiX43X) docker-compose -f ./my-network/base/docker-compose-base.yaml -f ./my-network/docker-compose-couch.yaml up -d does this command successfuly up the network?

nagashree (Fri, 01 Mar 2019 11:25:48 GMT):
hi ,I am getting "channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'nutanixChannel' contains illegal characters"

nagashree (Fri, 01 Mar 2019 11:26:06 GMT):
What should be the channelName?

nagashree (Fri, 01 Mar 2019 11:26:39 GMT):
What are the illegal characters? Is it case sensitive

nagashree (Fri, 01 Mar 2019 11:30:09 GMT):
ALso I have initialized Kalfka(4 broker) and zookeper (3 instance) ,one of the KAlfa is shutting down"| [2019-03-01 11:24:08,871] ERROR [KafkaServer id=1] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) kafka3.nutanix.com | org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists kafka3.nutanix.com | at org.apache.zookeeper.KeeperException.create(KeeperException.java:122) kafka3.nutanix.com | at kafka.zk.KafkaZkClient.checkedEphemeralCreate(KafkaZkClient.scala:1631) kafka3.nutanix.com | at kafka.zk.KafkaZkClient.registerBroker(KafkaZkClient.scala:87) kafka3.nutanix.com | at kafka.server.KafkaServer.startup(KafkaServer.scala:257) kafka3.nutanix.com | at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38) kafka3.nutanix.com | at kafka.Kafka$.main(Kafka.scala:75) kafka3.nutanix.com | at kafka.Kafka.main(Kafka.scala) "

nagashree (Fri, 01 Mar 2019 11:43:15 GMT):
hi any one there ...While creating chanel I am getting "Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining "

Aniket.1 (Fri, 01 Mar 2019 12:25:27 GMT):
Make sure your transaction is signed by right MSP certificate

gade (Fri, 01 Mar 2019 12:33:59 GMT):
Hello, I am having an issue while working with Fabric SDK for NodeJS to enroll an identity. The issue is with the TLSOptions:https://fabric-sdk-node.github.io/release-1.4/global.html#TLSOptions in FabricCAServices. The trustedRoots asks for an array of PEM-encoded. What exactly will I be providing here. The path to certificate or the whole file as a string or buffer. Either way it is not working, throwing this error: [Error: unsupported certificate purpose]. But when I try the same thing using bash tool fabric-ca-client enroll returns successfully. Need help.

gade (Fri, 01 Mar 2019 12:33:59 GMT):
Hello, I am having an issue while working with Fabric SDK for NodeJS to enroll an identity. The issue is with the TLSOptions:https://fabric-sdk-node.github.io/release-1.4/global.html#TLSOptions in FabricCAServices. The trustedRoots asks for an array of PEM-encoded. What exactly will I be providing here. The path to certificate or the whole file as a string or buffer. Either way it is not working, throwing this error: [Error: unsupported certificate purpose]. But when I try the same thing using bash tool fabric-ca-client enroll returns successfully. Need help.

dave.enyeart (Fri, 01 Mar 2019 12:46:33 GMT):
@Aniket.1 Your peer is not connecting to CouchDB at all..I would focus on this part of the error message: `Unable to connect to CouchDB...Check the admin username and password.` First try it with no couchdb username/password configured in couchdb container. Make sure peer can connect to the CouchDB host/port. That is most likely your issue.

Aniket.1 (Fri, 01 Mar 2019 12:47:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7iuwoARESJ52s47pe) @dave.enyeart Yes I am trying with no couchdb username/password configured in couchdb container.

Aniket.1 (Fri, 01 Mar 2019 12:50:06 GMT):
I considered that error because this line is hard coded in the code : `Unable to connect to CouchDB, error: %s. Check the admin username and password.` Please let me know how can i resolve it

keshavrajput (Fri, 01 Mar 2019 12:51:54 GMT):
Has joined the channel.

dave.enyeart (Fri, 01 Mar 2019 12:52:05 GMT):
Your peer is not connecting to couchdb. you have to make sure they are on the same network and peer can ping the configured couchdb address. See https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_as_state_database.html#couchdb-configuration for more details of the config

keshavrajput (Fri, 01 Mar 2019 12:52:24 GMT):
Please help me out ------krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date peer1.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org1.example.com is up-to-date cli is up-to-date ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-01 12:47:57.850 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-01 12:47:57.909 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

Aniket.1 (Fri, 01 Mar 2019 12:56:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Nzk7NMcdPDd9XgC3a) @dave.enyeart Yes, they are on same network. Able to ping them individually. Can you suggest a way to check in logs that whether peer is connecting to CouchDB or not?

Aniket.1 (Fri, 01 Mar 2019 12:57:47 GMT):
I can see the '_users' and '_replicator' database too

Aniket.1 (Fri, 01 Mar 2019 12:59:11 GMT):
I am seeing debug logs

Aniket.1 (Fri, 01 Mar 2019 13:00:28 GMT):
Also in my opinion, this error `json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string` states that code is getting something as a number from couchDB as a value of `update_seq`

dave.enyeart (Fri, 01 Mar 2019 13:00:53 GMT):
You can look in peer debug logs or couchdb normal logs to see if there are any connections established

keshavrajput (Fri, 01 Mar 2019 13:03:53 GMT):
Ankit.1 Please give my solution in the above

keshavrajput (Fri, 01 Mar 2019 13:04:27 GMT):
in last network end became failed

Aniket.1 (Fri, 01 Mar 2019 13:04:46 GMT):
``` [statecouchdb] NewVersionedDBProvider -> DEBU 052 constructing CouchDB VersionedDBProvider [couchdb] CreateConnectionDefinition -> DEBU 053 Entering CreateConnectionDefinition() [couchdb] CreateConnectionDefinition -> DEBU 054 Created database configuration URL=[http://127.0.0.1:5984] [couchdb] CreateConnectionDefinition -> DEBU 055 Exiting CreateConnectionDefinition() [couchdb] VerifyCouchConfig -> DEBU 056 Entering VerifyCouchConfig() [couchdb] handleRequest -> DEBU 057 Entering handleRequest() method=GET url=http://127.0.0.1:5984/ dbName= [couchdb] handleRequest -> DEBU 058 Request URL: http://127.0.0.1:5984/ [couchdb] handleRequest -> DEBU 059 HTTP Request: GET / HTTP/1.1 | Host: 127.0.0.1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | [couchdb] handleRequest -> DEBU 05a Exiting handleRequest() [couchdb] Debugw -> DPAN 05b Ignored key without a value. {"ignored": {"couchdb":"Welcome","version":"1.6.0","vendor":{"name":"Ubuntu"}}} [couchdb] VerifyCouchConfig -> DEBU 05c VerifyConnection() dbResponseJSON: %s2019-03-01 16:09:22.859 IST [couchdb] CreateDatabaseIfNotExist -> DEBU 05d [_users] Entering CreateDatabaseIfNotExist() [couchdb] handleRequest -> DEBU 05e Entering handleRequest() method=GET url=http://127.0.0.1:5984 dbName=_users [couchdb] handleRequest -> DEBU 05f Request URL: http://127.0.0.1:5984/_users [couchdb] handleRequest -> DEBU 060 HTTP Request: GET /_users HTTP/1.1 | Host: 127.0.0.1:5984 | User-Agent: Go-http-client/1.1 | Accept: multipart/related | Accept-Encoding: gzip | | [couchdb] handleRequest -> DEBU 061 Exiting handleRequest() [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 062 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string [couchdb] VerifyCouchConfig -> ERRO 063 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string. Check the admin username and password. [couchdb] VerifyCouchConfig -> DEBU 064 Exiting VerifyCouchConfig() ```

keshavrajput (Fri, 01 Mar 2019 13:05:16 GMT):
keshavrajput 6:22 PM Please help me out ------krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date peer1.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org1.example.com is up-to-date cli is up-to-date ____ _____ _ ___ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-01 12:47:57.850 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-01 12:47:57.909 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

Aniket.1 (Fri, 01 Mar 2019 13:05:33 GMT):
@dave.enyeart these are the couchdb related logs. In my opinion, every time peer tried to connect, no error was returned

keshavrajput (Fri, 01 Mar 2019 13:05:39 GMT):
Aniket bhai yaar bta do ishka solution

keshavrajput (Fri, 01 Mar 2019 13:06:57 GMT):
@Aniket.1 plz help me @dave.enyeart help me any one ............................... keshavrajput 6:22 PM Please help me out ------krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date peer1.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org1.example.com is up-to-date cli is up-to-date ____ _____ _ ___ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-01 12:47:57.850 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-01 12:47:57.909 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

keshavrajput (Fri, 01 Mar 2019 13:06:57 GMT):
@Aniket.1 plz help me any one ............................... keshavrajput 6:22 PM Please help me out ------krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date peer1.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org1.example.com is up-to-date cli is up-to-date ____ _____ _ ___ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-01 12:47:57.850 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-01 12:47:57.909 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

Aniket.1 (Fri, 01 Mar 2019 13:07:54 GMT):
@keshavrajput I think there is a related question on stackoverflow. Have you checked it?

keshavrajput (Fri, 01 Mar 2019 13:08:15 GMT):
I checked it but i do't get solution

Aniket.1 (Fri, 01 Mar 2019 13:08:31 GMT):
@keshavrajput Also set loglevel to debug which can give more idea about error

keshavrajput (Fri, 01 Mar 2019 13:09:08 GMT):
@Aniket.1 I am new I do't know how to set Loglevel

Aniket.1 (Fri, 01 Mar 2019 13:09:55 GMT):
Set `FABRIC_LOGGING_SPEC=debug` as environment variable if using version 1.4

keshavrajput (Fri, 01 Mar 2019 13:10:52 GMT):
@Aniket.1 In environment path

vageeshprasadB (Fri, 01 Mar 2019 13:16:29 GMT):
Has joined the channel.

Aniket.1 (Fri, 01 Mar 2019 13:35:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v49EgsrqfnsrX2KxP) I can also see in couchdb logs that on this call http://127.0.0.1:5984/_users, couchdb returned 200 . @dave.enyeart (Tagging because it refers to our last discussion) . I am stuck on it. Please provide your valuable views when you are here. Thanks

ahmadraza (Fri, 01 Mar 2019 13:39:32 GMT):
@Aniket.1 After creating crypto-config anf channel artifacts i created base.yaml and docker-compose-base.yaml in base folder then create docker-compose-couch.yaml can you please tell me how to start network ?

jeka_gompa (Fri, 01 Mar 2019 13:44:03 GMT):
Hi guys, in order to create an asset is mandatory to pass an ID. Is it possible to delegate the id generation to couchDB for example? How is this normally managed in Fabric, do you need to take care of that your self?

keshavrajput (Fri, 01 Mar 2019 13:44:49 GMT):
@jeka_gompa ..help me any one ............................... keshavrajput 6:22 PM Please help me out ------krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date peer1.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org1.example.com is up-to-date cli is up-to-date ____ _____ _ __ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-01 12:47:57.850 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-01 12:47:57.909 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

jeka_gompa (Fri, 01 Mar 2019 13:49:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pDoaq5RsudXSED7ZR) @keshavrajput Hi, sorry but I cannot help you right now but I'll come back later.

jeka_gompa (Fri, 01 Mar 2019 13:50:26 GMT):
@keshavrajput Do you need to deploy it right now?

keshavrajput (Fri, 01 Mar 2019 13:53:58 GMT):
yes

keshavrajput (Fri, 01 Mar 2019 13:54:20 GMT):
@jeka_gompa yes

keshavrajput (Fri, 01 Mar 2019 13:55:32 GMT):
@jeka_gompa please help me

jeka_gompa (Fri, 01 Mar 2019 14:04:19 GMT):
@keshavrajput Hi, I'm not an expert but I think your problem is related to the orderer certificate you are providing

jeka_gompa (Fri, 01 Mar 2019 14:05:35 GMT):
Try checking the address of the file you are providing as --cafile

jeka_gompa (Fri, 01 Mar 2019 14:08:14 GMT):
You could also go into the go code of the orderer and track where this exception is being dispatched, that could give you some insight into the cause of the problem :thinking: I did it once and I understood a bit more about the problem I had

jeka_gompa (Fri, 01 Mar 2019 14:48:44 GMT):
Hi guys, in order to create an asset is mandatory to pass an ID. Is it possible to delegate the id generation to couchDB for example? How is this normally managed in Fabric, do you need to take care of that your self?

maxrobot (Fri, 01 Mar 2019 15:40:47 GMT):
Hi in the `fabric-samples` repo there is the directory `fabric-samples/config` when are the `.yaml` files found in this directory used?

maxrobot (Fri, 01 Mar 2019 15:41:06 GMT):
additionally what exact significance do they hold?

nagashree (Fri, 01 Mar 2019 15:53:20 GMT):
hi guys, when creating channel I am getting error "Error: failed to create deliver client: orderer client failed to connect to orderer.nutanix.com:7050: failed to create new connection: context deadline exceeded U"..Has anyone faced the issue

nagashree (Fri, 01 Mar 2019 15:53:20 GMT):
When I do docker ps -a,it shows "40cc32aea5ff hyperledger/fabric-orderer:x86_64-1.1.0 "orderer" 5 minutes ago Exited (2) 5 minutes ago orderer.nutanix.com"

maxrobot (Fri, 01 Mar 2019 16:17:04 GMT):
have you tried to rename first-network?

maxrobot (Fri, 01 Mar 2019 16:17:40 GMT):
make sure that you run the config and crypto material generators again and not just change the name of things in the `docker-compose.yaml`

maxrobot (Fri, 01 Mar 2019 16:17:43 GMT):
@nagashree

Estebanrestrepo (Fri, 01 Mar 2019 21:34:33 GMT):
Who can help me? I have this error TLS handshake failed with error tls: first record does not look like a TLS handshake {"server": "Orderer", "remote address": "172.18.0.23:42230"}

JMIsham (Sat, 02 Mar 2019 05:35:03 GMT):
did u generated the artifacts properly?? can u check the tls certificates are in the directory for each peer??

keshavrajput (Sat, 02 Mar 2019 07:32:19 GMT):
@JMIsham help me out......................

keshavrajput (Sat, 02 Mar 2019 07:32:23 GMT):
krajput@KTPCPN-98 MINGW64 /d/first-network-walkthrough/fabric-samples/first-network ((v1.1.0)) $ ./byfn.sh up Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.1.0 DOCKER_IMAGE_VERSION=1.4.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== Starting peer0.org1.example.com ... done Starting peer0.org2.example.com ... done Starting peer1.org2.example.com ... done Starting orderer.example.com ... done Starting peer1.org1.example.com ... done Starting cli ... done ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_LOCALMSPID=Org1MSP CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_ENABLED=true CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ID=cli CORE_LOGGING_LEVEL=INFO CORE_PEER_ADDRESS=peer0.org1.example.com:7051 + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-03-02 07:31:36.977 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-02 07:31:37.060 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-03-02 07:31:37.124 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

thanhpv24 (Sat, 02 Mar 2019 09:41:52 GMT):
Has joined the channel.

jeka_gompa (Sat, 02 Mar 2019 14:16:24 GMT):
Hi guys, in order to create an asset is mandatory to pass an ID. Is it possible to delegate the id generation to couchDB for example? How is this normally managed in Fabric, do you need to take care of that your self?

dave.enyeart (Sat, 02 Mar 2019 14:28:57 GMT):
@jeka_gompa Either use an id that is passed from the application or generate a unique id, e.g. using https://github.com/google/uuid

JMIsham (Sat, 02 Mar 2019 16:29:44 GMT):
@keshavrajput seems u already have previous containers running . in first network directory try "docker-compose -f docker-compose-cli.yaml down --volumes --remove-orphan"

JMIsham (Sat, 02 Mar 2019 16:29:54 GMT):
it worked for me once

JMIsham (Sat, 02 Mar 2019 16:30:36 GMT):
then start the network

JMIsham (Sat, 02 Mar 2019 16:33:46 GMT):
I'm new here. spent some times in examples. I used configtxgen cryptogen. but what are other 6 binaries for?? can u suggest me a source to read??

JMIsham (Sat, 02 Mar 2019 16:35:03 GMT):
so if m not wrong, "peer" binary to start peer without docker images??

JMIsham (Sat, 02 Mar 2019 16:35:09 GMT):
is that correct??

JMIsham (Sat, 02 Mar 2019 16:37:50 GMT):
and ordered binary for start the orderer node without using docker image hyperledger/fabric-orderer

JMIsham (Sat, 02 Mar 2019 16:37:52 GMT):
??

nagashree (Sat, 02 Mar 2019 17:34:04 GMT):
hi ,I have changed crypto-cpnfig.yaml ,configtx.yaml file with example.com as domain.com

nagashree (Sat, 02 Mar 2019 17:34:54 GMT):
created a sampledocker.yaml file and running it so that I can run order in Kafka

nagashree (Sat, 02 Mar 2019 17:37:24 GMT):
But I always getting error message "peer channel create -o orderer.domain.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/domain.com/orderers/orderer.domain.com/msp/tlscacerts/tlsca.domain.com-cert.pem Error: failed to create deliver client: orderer client failed to connect to orderer.domain.com:7050: failed to create new connection: context deadline exceeded Usage: "

nagashree (Sat, 02 Mar 2019 17:38:15 GMT):
When I do docker ps -a,"e187c792d737 hyperledger/fabric-orderer:x86_64-1.1.0 "orderer" 6 minutes ago Exited (2) 6 minutes ago orderer.domain.com "My hyperledger/fabric-orderer:x86_64-1.1.0 gets exited always

meiblorn (Sat, 02 Mar 2019 17:46:20 GMT):
Has joined the channel.

meiblorn (Sat, 02 Mar 2019 17:46:25 GMT):
Hi, I have problem when sending chaincode initialisation request using fabric-java-sdk. `peer0.gateway.fundtransfer.com | 2019-03-02 17:39:32.846 UTC [endorser] callChaincode -> INFO 1ae [all-orgs-channel][ada2da1f] Entry chaincode: name:"lscc" peer0.gateway.fundtransfer.com | 2019-03-02 17:39:58.340 UTC [chaincode.platform.java] GenerateDockerBuild -> ERRO 1af Can't build java chaincode Error returned from build: 1 "Maven build peer0.gateway.fundtransfer.com | [INFO] Scanning for projects... peer0.gateway.fundtransfer.com | [INFO] ------------------------------------------------------------------------ ` The problem is that I am using `gradle`. How can I switch my peers to use gradle?

yogi8091 (Sat, 02 Mar 2019 17:55:08 GMT):
Has joined the channel.

meiblorn (Sat, 02 Mar 2019 17:56:39 GMT):
Question on stackoverflow: https://stackoverflow.com/questions/54961314/hyperledger-build-chaincode-using-gradle

gennadyl (Sat, 02 Mar 2019 18:09:16 GMT):
@meiblorn . Can you specify what chaincode.source() points to? Does this forlder contains build.gradle file?

meiblorn (Sat, 02 Mar 2019 18:16:00 GMT):
oh, 1 moment. I build .tgz file which contains spring-boot-application sources. ` ➜ transfer-chaincode git:(master) ✗ gradle clean buildProjectArchive Configuration on demand is an incubating feature. BUILD SUCCESSFUL in 1s 2 actionable tasks: 2 executed ➜ transfer-chaincode git:(master) ✗ tar -tvf build/distributions/transfer-chaincode-1.0.0-SNAPSHOT.tgz -rw-r--r-- 0 0 0 1817 Mar 2 21:31 build.gradle drwxr-xr-x 0 0 0 0 Feb 25 15:00 src/ drwxr-xr-x 0 0 0 0 Mar 2 21:22 src/main/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/config/ -rw-r--r-- 0 0 0 0 Mar 2 18:50 src/main/resources/config/application.yml drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/cloudbourne/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/cloudbourne/fundtransfer/ drwxr-xr-x 0 0 0 0 Mar 2 18:49 src/main/java/com/cloudbourne/fundtransfer/transfer/ -rw-r--r-- 0 0 0 1142 Mar 2 18:49 src/main/java/com/cloudbourne/fundtransfer/transfer/TransferChaincodeApplication.java drwxr-xr-x 0 0 0 0 Mar 2 21:12 src/main/java/com/cloudbourne/fundtransfer/transfer/service/ -rw-r--r-- 0 0 0 1950 Mar 2 21:12 src/main/java/com/cloudbourne/fundtransfer/transfer/service/ChaincodeEntrypoint.java drwxr-xr-x 0 0 0 0 Mar 2 21:23 src/main/gradle/ -rw-r--r-- 0 0 0 39 Mar 2 21:23 src/main/gradle/settings.gradle -rw-r--r-- 0 0 0 1587 Mar 2 21:28 gradle.properties -rw-r--r-- 0 0 0 39 Mar 2 21:23 settings.gradle `

meiblorn (Sat, 02 Mar 2019 18:16:00 GMT):
oh, 1 moment. I build .tgz file which contains spring-boot-application sources. ` ➜ transfer-chaincode git:(master) ✗ gradle clean buildProjectArchive Configuration on demand is an incubating feature. BUILD SUCCESSFUL in 1s 2 actionable tasks: 2 executed ➜ transfer-chaincode git:(master) ✗ tar -tvf build/distributions/transfer-chaincode-1.0.0-SNAPSHOT.tgz -rw-r--r-- 0 0 0 1817 Mar 2 21:31 build.gradle drwxr-xr-x 0 0 0 0 Feb 25 15:00 src/ drwxr-xr-x 0 0 0 0 Mar 2 21:22 src/main/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/config/ -rw-r--r-- 0 0 0 0 Mar 2 18:50 src/main/resources/config/application.yml drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/fundtransfer/ drwxr-xr-x 0 0 0 0 Mar 2 18:49 src/main/java/com/fundtransfer/transfer/ -rw-r--r-- 0 0 0 1142 Mar 2 18:49 src/main/java/com/fundtransfer/transfer/TransferChaincodeApplication.java drwxr-xr-x 0 0 0 0 Mar 2 21:12 src/main/java/com/fundtransfer/transfer/service/ -rw-r--r-- 0 0 0 1950 Mar 2 21:12 src/main/java/com/fundtransfer/transfer/service/ChaincodeEntrypoint.java drwxr-xr-x 0 0 0 0 Mar 2 21:23 src/main/gradle/ -rw-r--r-- 0 0 0 39 Mar 2 21:23 src/main/gradle/settings.gradle -rw-r--r-- 0 0 0 1587 Mar 2 21:28 gradle.properties -rw-r--r-- 0 0 0 39 Mar 2 21:23 settings.gradle `

meiblorn (Sat, 02 Mar 2019 18:16:00 GMT):
oh, 1 moment. I build .tgz file which contains spring-boot-application sources. sources() points to .tgz file location ` ➜ transfer-chaincode git:(master) ✗ gradle clean buildProjectArchive Configuration on demand is an incubating feature. BUILD SUCCESSFUL in 1s 2 actionable tasks: 2 executed ➜ transfer-chaincode git:(master) ✗ tar -tvf build/distributions/transfer-chaincode-1.0.0-SNAPSHOT.tgz -rw-r--r-- 0 0 0 1817 Mar 2 21:31 build.gradle drwxr-xr-x 0 0 0 0 Feb 25 15:00 src/ drwxr-xr-x 0 0 0 0 Mar 2 21:22 src/main/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/main/resources/config/ -rw-r--r-- 0 0 0 0 Mar 2 18:50 src/main/resources/config/application.yml drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/main/java/com/fundtransfer/ drwxr-xr-x 0 0 0 0 Mar 2 18:49 src/main/java/com/fundtransfer/transfer/ -rw-r--r-- 0 0 0 1142 Mar 2 18:49 src/main/java/com/fundtransfer/transfer/TransferChaincodeApplication.java drwxr-xr-x 0 0 0 0 Mar 2 21:12 src/main/java/com/fundtransfer/transfer/service/ -rw-r--r-- 0 0 0 1950 Mar 2 21:12 src/main/java/com/fundtransfer/transfer/service/ChaincodeEntrypoint.java drwxr-xr-x 0 0 0 0 Mar 2 21:23 src/main/gradle/ -rw-r--r-- 0 0 0 39 Mar 2 21:23 src/main/gradle/settings.gradle -rw-r--r-- 0 0 0 1587 Mar 2 21:28 gradle.properties -rw-r--r-- 0 0 0 39 Mar 2 21:23 settings.gradle `

meiblorn (Sat, 02 Mar 2019 18:17:27 GMT):
So it has src, build.gradle, settings.gradle required files

meiblorn (Sat, 02 Mar 2019 18:17:27 GMT):
So it has src, build.gradle, settings.gradle required for Gradle files

meiblorn (Sat, 02 Mar 2019 18:18:45 GMT):
Peer-base docker configuration: ` peer-base: image: hyperledger/fabric-peer:$HYPERLEDGER_VERSION environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_fundtransfer_appz # - FABRIC_LOGGING_SPEC=INFO - FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_ENDORSER_ENABLED=true - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_CHANNELSERVICE_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_TLS_ENABLED=false - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt working_dir: /opt/hyperledger/peer command: peer node start `

meiblorn (Sat, 02 Mar 2019 18:18:45 GMT):
Peer-base docker configuration: ` peer-base: image: hyperledger/fabric-peer:$HYPERLEDGER_VERSION environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_fundtransfer # - FABRIC_LOGGING_SPEC=INFO - FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_ENDORSER_ENABLED=true - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_CHANNELSERVICE_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_TLS_ENABLED=false - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt working_dir: /opt/hyperledger/peer command: peer node start `

gennadyl (Sat, 02 Mar 2019 18:22:17 GMT):
I see. Can you point it to project root folder that contains src, build.gradle, etc, instead of tgz file?

meiblorn (Sat, 02 Mar 2019 18:23:05 GMT):
hm, good idea.

gennadyl (Sat, 02 Mar 2019 18:27:17 GMT):
We will pack this project into archive inside fabric

gennadyl (Sat, 02 Mar 2019 18:27:32 GMT):
Does it worked?

meiblorn (Sat, 02 Mar 2019 18:30:24 GMT):
You saved my day ` peer0.gateway.fundtransfer.cloudbourne.com | Build file '/chaincode/input/src/build.gradle' line: 9 peer0.gateway.fundtransfer.cloudbourne.com | peer0.gateway.fundtransfer.cloudbourne.com | * What went wrong: peer0.gateway.fundtransfer.cloudbourne.com | A problem occurred evaluating root project 'transfer-chaincode'. peer0.gateway.fundtransfer.cloudbourne.com | > Could not get unknown property 'pluginLombokVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. `

meiblorn (Sat, 02 Mar 2019 18:30:24 GMT):
You saved my day ` peer0.gateway.fundtransfer.com | Build file '/chaincode/input/src/build.gradle' line: 9 peer0.gateway.fundtransfer.com | peer0.gateway.fundtransfer.com | * What went wrong: peer0.gateway.fundtransfer.com | A problem occurred evaluating root project 'transfer-chaincode'. peer0.gateway.fundtransfer.com | > Could not get unknown property 'pluginLombokVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. `

meiblorn (Sat, 02 Mar 2019 18:30:36 GMT):
Yes, it works now. Now I have another type of errors

meiblorn (Sat, 02 Mar 2019 18:30:36 GMT):
Yes, it works now. Now I have another kind of errors.

meiblorn (Sat, 02 Mar 2019 18:30:36 GMT):
Yes, it works now. Now I have another kind of errors. Thank you. That errors I can solve on myself.

meiblorn (Sat, 02 Mar 2019 18:30:36 GMT):
Yes, it works now. Now I have another kind of errors. Thank you. These errors I can solve on myself.

meiblorn (Sat, 02 Mar 2019 18:31:31 GMT):
I have question. Why does fabric builds projects inside itself? Why not to build it somewhere outside and then upload complete jar file?

gennadyl (Sat, 02 Mar 2019 18:33:40 GMT):
This is how first impl on java chaincode worked :)

gennadyl (Sat, 02 Mar 2019 18:34:59 GMT):
But the idea to trust in jar from unknown developer from untrusted organization didn't hold

meiblorn (Sat, 02 Mar 2019 18:36:26 GMT):
I think, that approach brings with itself a lot of problems. Because of chaincode is built inside hyperledger, peers need to have access to maven/gradle repositories which are available only via global Internet network. Or, as workaround, we can mount .m2 /.gradle directory to peers with preinstalled dependencies ...

gennadyl (Sat, 02 Mar 2019 18:36:33 GMT):
And idea to open jar to see its sources... I lost in this discussion :(

gennadyl (Sat, 02 Mar 2019 18:38:16 GMT):
I know about those problems, but same problems happens with golang and node.js chaincode...

gennadyl (Sat, 02 Mar 2019 18:38:50 GMT):
The decision was to install chaincode as source

meiblorn (Sat, 02 Mar 2019 18:39:57 GMT):
By the way, thanks. You saved a lot of time. As of my problem with sources, I was disappointed by javadocs placed on `setChaincodeInputStream` method. ` /** * Chaincode input stream containing the actual chaincode. Only format supported is a tar zip compressed input of the source. * Only input stream or source location maybe used at the same time. * The contents of the stream are not validated or inspected by the SDK. * * @param chaincodeInputStream * @throws InvalidArgumentException */` I thought, it expects me to provide .tgz archive instead of sources. If you are active contributor to fabric, please, change it to something meaningful

meiblorn (Sat, 02 Mar 2019 18:39:57 GMT):
By the way, thanks. You saved a lot of time. As about of my problem with sources, I was disappointed by javadocs placed on `setChaincodeInputStream` method. ` /** * Chaincode input stream containing the actual chaincode. Only format supported is a tar zip compressed input of the source. * Only input stream or source location maybe used at the same time. * The contents of the stream are not validated or inspected by the SDK. * * @param chaincodeInputStream * @throws InvalidArgumentException */` I thought, it expects me to provide .tgz archive instead of sources. If you are active contributor to fabric, please, change it to something meaningful

meiblorn (Sat, 02 Mar 2019 18:39:57 GMT):
By the way, thanks. You saved me a lot of time. As about of my problem with sources, I was disappointed by javadocs placed on `setChaincodeInputStream` method. ` /** * Chaincode input stream containing the actual chaincode. Only format supported is a tar zip compressed input of the source. * Only input stream or source location maybe used at the same time. * The contents of the stream are not validated or inspected by the SDK. * * @param chaincodeInputStream * @throws InvalidArgumentException */` I thought, it expects me to provide .tgz archive instead of sources. If you are active contributor to fabric, please, change it to something meaningful

meiblorn (Sat, 02 Mar 2019 18:39:57 GMT):
By the way, thanks. You saved me a lot of time. As about of my problem with sources, I was confused by javadocs placed on `setChaincodeInputStream` method. ` /** * Chaincode input stream containing the actual chaincode. Only format supported is a tar zip compressed input of the source. * Only input stream or source location maybe used at the same time. * The contents of the stream are not validated or inspected by the SDK. * * @param chaincodeInputStream * @throws InvalidArgumentException */` I thought, it expects me to provide .tgz archive instead of sources. If you are active contributor to fabric, please, change it to something meaningful

gennadyl (Sat, 02 Mar 2019 18:43:23 GMT):
I did used this method, but created stream manually from source ``` TarArchiveOutputStream archiveOutputStream = new TarArchiveOutputStream(new GzipCompressorOutputStream(new BufferedOutputStream(bos))); ``` and added each file manually.

gennadyl (Sat, 02 Mar 2019 18:43:23 GMT):
I did used this method, but created stream manually from source ``` TarArchiveOutputStream archiveOutputStream = new TarArchiveOutputStream(new GzipCompressorOutputStream(new BufferedOutputStream(bos))); ``` and added each file manually to this stream.

gennadyl (Sat, 02 Mar 2019 18:43:46 GMT):
In this case it worked...

gennadyl (Sat, 02 Mar 2019 18:45:13 GMT):
Regarding fixing javadoc - will try to submit CR about it

gennadyl (Sat, 02 Mar 2019 18:46:52 GMT):
btw, if you have questions about java chaincode, go to #fabric-java-chaincode directly

gennadyl (Sat, 02 Mar 2019 18:47:46 GMT):
I usually don't monitor this channel, I got this link from another fabric member

gennadyl (Sat, 02 Mar 2019 18:47:46 GMT):
I usually don't monitor this channel, I got your question from another fabric member

meiblorn (Sat, 02 Mar 2019 18:48:33 GMT):
I think, it's not obvious that: 1) I need to send sources instead of pre-build jar. I spent about 1-2 hours to discover it 2) I need to place path to sources root directory instead of path to archive. Also fabric peer has eaten my archive as is without throwing an error. But, seems, input stream of .tgz archive != TarArchiveOutputStream, so that was a problem

meiblorn (Sat, 02 Mar 2019 18:48:33 GMT):
I think, it's not obvious that: 1) I need to send sources instead of pre-build jar. I spent about 1-2 hours to discover it 2) I need to place path to sources root directory instead of path to archive. Also fabric peer has eaten my archive as is without throwing an error. And, as we discovered together, seems, input stream of .tgz archive != TarArchiveOutputStream, so that was a problem

gennadyl (Sat, 02 Mar 2019 18:49:55 GMT):
Yep, I suspect this was the problem

gennadyl (Sat, 02 Mar 2019 18:50:34 GMT):
I will see that can be done about that

gennadyl (Sat, 02 Mar 2019 18:51:28 GMT):
Maybe some improvement in peer side as well. In any case you will know about the problem only during instantiate phase

gennadyl (Sat, 02 Mar 2019 18:55:52 GMT):
Opened JIRA for that FAB-14460

gennadyl (Sat, 02 Mar 2019 18:55:52 GMT):
Opened JIRA for that

gennadyl (Sat, 02 Mar 2019 18:55:57 GMT):
https://jira.hyperledger.org/browse/FAB-14460

meiblorn (Sat, 02 Mar 2019 18:56:36 GMT):
Yes, thanks. My idea was to have chaincode sources inside my webservice application jar. I want that application to get it from classpath and then upload to peers provided by configuration. As hyperledger expects pure sources, I will unpack sourecs zip somewhere in temp folder or will build a TarArchive stream from the initial one. Thanks

meiblorn (Sat, 02 Mar 2019 19:04:00 GMT):
I've updated jira ticket description with my minds about that issue

gennadyl (Sat, 02 Mar 2019 19:58:13 GMT):
@meiblorn Can you move javadoc part to comments - I would like to ask some people to comment and don't want to make it in description part.

meiblorn (Sat, 02 Mar 2019 20:13:06 GMT):
sorry for delay. See you already did it.

gennadyl (Sat, 02 Mar 2019 20:13:30 GMT):
@meiblorn Actually, you can use `setChaincodeInputStream`

gennadyl (Sat, 02 Mar 2019 20:14:10 GMT):
It was trick I totally forgot about:

gennadyl (Sat, 02 Mar 2019 20:16:08 GMT):
You should add src folder at start - so your tgz file will contain src/build.gradle instead ./build.gradle, src/src/main/ instead src/main/ and so on...

meiblorn (Sat, 02 Mar 2019 20:16:40 GMT):
hm, let me try

gennadyl (Sat, 02 Mar 2019 20:19:10 GMT):
I think it should work as well

meiblorn (Sat, 02 Mar 2019 20:19:19 GMT):
no, it doesn't work for me

gennadyl (Sat, 02 Mar 2019 20:19:55 GMT):
Never mind, we found workaround in any case

meiblorn (Sat, 02 Mar 2019 20:19:57 GMT):
➜ transfer-chaincode git:(master) ✗ tar -tvf build/distributions/transfer-chaincode-1.0.0-SNAPSHOT.tgz drwxr-xr-x 0 0 0 0 Mar 3 00:17 src/ -rw-r--r-- 0 0 0 1826 Mar 3 00:16 src/build.gradle drwxr-xr-x 0 0 0 0 Feb 25 15:00 src/src/ drwxr-xr-x 0 0 0 0 Mar 2 21:22 src/src/main/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/src/main/resources/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/src/main/resources/config/ -rw-r--r-- 0 0 0 0 Mar 2 18:50 src/src/main/resources/config/application.yml drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/src/main/java/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/src/main/java/com/ ... Result in: [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1]

meiblorn (Sat, 02 Mar 2019 20:19:57 GMT):
➜ transfer-chaincode git:(master) ✗ tar -tvf build/distributions/transfer-chaincode-1.0.0-SNAPSHOT.tgz drwxr-xr-x 0 0 0 0 Mar 3 00:17 src/ -rw-r--r-- 0 0 0 1826 Mar 3 00:16 src/build.gradle drwxr-xr-x 0 0 0 0 Feb 25 15:00 src/src/ drwxr-xr-x 0 0 0 0 Mar 2 21:22 src/src/main/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/src/main/resources/ drwxr-xr-x 0 0 0 0 Mar 2 18:50 src/src/main/resources/config/ -rw-r--r-- 0 0 0 0 Mar 2 18:50 src/src/main/resources/config/application.yml drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/src/main/java/ drwxr-xr-x 0 0 0 0 Feb 25 15:02 src/src/main/java/com/ ... Result in: [INFO] BUILD FAILURE peer0.gateway.fundtransfer.cloudbourne.com | [INFO] ------------------------------------------------------------------------ peer0.gateway.fundtransfer.cloudbourne.com | [INFO] Total time: 4.653 s peer0.gateway.fundtransfer.cloudbourne.com | [INFO] Finished at: 2019-03-02T20:19:06Z peer0.gateway.fundtransfer.cloudbourne.com | [INFO] Final Memory: 6M/46M peer0.gateway.fundtransfer.cloudbourne.com | [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1]

gennadyl (Sat, 02 Mar 2019 20:20:15 GMT):
I see

gennadyl (Sat, 02 Mar 2019 20:21:07 GMT):
I will make some tests to see why it is not work, but you have workaround for now. I will update you about what I found

gennadyl (Sat, 02 Mar 2019 20:21:07 GMT):
I will make some tests to see why it doesn't work, but you have workaround for now. I will update you about what I found

meiblorn (Sat, 02 Mar 2019 20:24:37 GMT):

Clipboard - March 3, 2019 12:24 AM

meiblorn (Sat, 02 Mar 2019 20:24:44 GMT):
I am just loading .tgz archive into bufferedInputStream, then send -> it doesn't work.

meiblorn (Sat, 02 Mar 2019 20:26:04 GMT):
Not me. Spring wraps it into bufferedInputStream: `resourceLoader.load("file:...")`

meiblorn (Sat, 02 Mar 2019 20:26:04 GMT):
Not me wrap it into buffered input stream. Spring wraps it into bufferedInputStream: `resourceLoader.load("file:...")`

meiblorn (Sat, 02 Mar 2019 20:26:04 GMT):
Not me wrap it into buffered input stream. Spring do it when I load file: `resourceLoader.load("file:...")`

meiblorn (Sat, 02 Mar 2019 20:28:18 GMT):
I am going to try to send pure fileInputStream

meiblorn (Sat, 02 Mar 2019 20:28:18 GMT):
I am going to try to send pure fileInputStream instead of wrapping it

meiblorn (Sat, 02 Mar 2019 20:28:18 GMT):
I am going to try to send pure fileInputStream avoiding of wrapping it

meiblorn (Sat, 02 Mar 2019 20:28:18 GMT):
I am going to try to send pure fileInputStream avoiding of its wrapping

meiblorn (Sat, 02 Mar 2019 20:30:28 GMT):
`peer0.gateway.fundtransfer.cloudbourne.com | Download https://repo.maven.apache.org/maven2/org/springframework/spring-core/5.1.5.RELEASE/spring-core-5.1.5.RELEASE.jar peer0.gateway.fundtransfer.cloudbourne.com | Download https://repo.maven.apache.org/maven2/org/springframework/spring-jcl/5.1.5.RELEASE/spring-jcl-5.1.5.RELEASE.jar peer0.gateway.fundtransfer.cloudbourne.com | Download https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/2.1.3.RELEASE/spring-boot-gradle-plugin-2.1.3.RELEASE.jar peer0.gateway.fundtransfer.cloudbourne.com | peer0.gateway.fundtransfer.cloudbourne.com | FAILURE: Build failed with an exception. peer0.gateway.fundtransfer.cloudbourne.com | peer0.gateway.fundtransfer.cloudbourne.com | * Where: peer0.gateway.fundtransfer.cloudbourne.com | Build file '/chaincode/input/src/build.gradle' line: 19 peer0.gateway.fundtransfer.cloudbourne.com | peer0.gateway.fundtransfer.cloudbourne.com | * What went wrong: peer0.gateway.fundtransfer.cloudbourne.com | A problem occurred evaluating root project 'transfer-chaincode'. peer0.gateway.fundtransfer.cloudbourne.com | > Failed to apply plugin [class 'com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin'] peer0.gateway.fundtransfer.cloudbourne.com | > This version of Shadow supports Gradle 5.0+ only. Please upgrade. ` Sorry, seems your trick works. My logs were outdated a bit

meiblorn (Sat, 02 Mar 2019 20:33:56 GMT):
Seems, gradle is outdated there ...

gennadyl (Sat, 02 Mar 2019 20:36:41 GMT):
Yes, we used 4.x

meiblorn (Sat, 02 Mar 2019 20:39:15 GMT):
@gennadyl , the problem was in BufferedInputStream. Pure FileInputStream works perfectly. Also it's not good that maven/gradle logs are not printed to stdout in real time.

gennadyl (Sat, 02 Mar 2019 20:39:38 GMT):
Oh, don't go there

meiblorn (Sat, 02 Mar 2019 20:39:43 GMT):
BufferedInputStream(FileInputStream()) -> does not work FileInputStream() -> works

gennadyl (Sat, 02 Mar 2019 20:40:23 GMT):
They do, but only to peer logs

gennadyl (Sat, 02 Mar 2019 20:40:43 GMT):
And after you configure peer

meiblorn (Sat, 02 Mar 2019 20:41:43 GMT):
> Also it's not good that maven/gradle logs are not printed to stdout in real time. yes, I was watching peer logs for a while and nothing was printed. Only when gradle finished build the whole its log was printed to stdout

meiblorn (Sat, 02 Mar 2019 20:41:43 GMT):
> Also it's not good that maven/gradle logs are not printed to stdout in real time. yes, I was watching peer logs for a while and nothing was printed. Only when gradle finished build, then the whole its log was printed to stdout

gennadyl (Sat, 02 Mar 2019 20:43:34 GMT):
Strange, I have to check - it should copy container log as it produce output. I think I know person who know the answer. I will talk with him soon and update you

gennadyl (Sat, 02 Mar 2019 20:43:34 GMT):
Strange, I have to check - it should copy container log as it produce output. I think I know person who know the answer. I will talk with him soon and will update you

gennadyl (Sat, 02 Mar 2019 20:45:29 GMT):
I fixed java chaincode - it will work now with and without src addition. It was bug

gennadyl (Sat, 02 Mar 2019 20:45:48 GMT):
Lets wait until CR is merged

meiblorn (Sat, 02 Mar 2019 20:46:08 GMT):
Could you send link to CR, please ?

meiblorn (Sat, 02 Mar 2019 20:47:12 GMT):
Also I am wondered why BufferedInputStream breaks the fabric to parse tgz stream.

gennadyl (Sat, 02 Mar 2019 21:01:04 GMT):
This I don't know. Sure, will send you

phantom.assasin (Sat, 02 Mar 2019 21:18:17 GMT):
byfn end to end test is failing with this message: ``` ===================== Querying on peer0.org1 on channel 'mychannel'... ===================== Attempting to Query peer0.org1 ...3 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=0 + set +x Attempting to Query peer0.org1 ...7 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=0 + set +x Attempting to Query peer0.org1 ...10 secs + peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' + res=0 + set +x 100 !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ``` Any clues as to why this is happening?

jeka_gompa (Sun, 03 Mar 2019 11:55:43 GMT):
Hi everybody, I was checking the documentation of Fabric's release 1.4 and I came across definitions of smart contracts by using the 'fabric-contract-api'. There it is possible to create objects and list of objects that hold the assets in the world state. (https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/contract/lib/papercontract.js) Is that the same as chaincodes? Is it more efficient?

jeka_gompa (Sun, 03 Mar 2019 11:55:43 GMT):
Hi everybody, I was checking the documentation of Fabric's release 1.4 and I came across definitions of smart contracts by using the 'fabric-contract-api'. There it is possible to create objects and list of objects that hold the assets in the world state. (https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/contract/lib/papercontract.js) Is that the same as chaincodes? Is it more efficient?

jeka_gompa (Sun, 03 Mar 2019 11:55:43 GMT):
Hi everybody, I was checking the documentation of Fabric's release 1.4 and I came across definitions of smart contracts by using the 'fabric-contract-api'. There it is possible to create objects and list of objects that hold the assets in the world state. (https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/contract/lib/papercontract.js) Is that the same as chaincodes? Is it more efficient? Can you implement such thin in release 1.3?

jeka_gompa (Sun, 03 Mar 2019 11:55:43 GMT):
Hi everybody, I was checking the documentation of Fabric's release 1.4 and I came across definitions of smart contracts by using the 'fabric-contract-api'. There it is possible to create objects and list of objects that hold the assets in the world state. (https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/contract/lib/papercontract.js) Is that the same as chaincodes? Is it more efficient? Can you implement such thing in release 1.3?

ygnr (Sun, 03 Mar 2019 12:16:19 GMT):
Hello, I have been getting these error `intermittently` while connecting to the peer. Any idea why I see this? `Error: Failed to connect before the deadline URL: `

ygnr (Sun, 03 Mar 2019 12:16:19 GMT):
Hello, I have been getting these error `intermittently` while connecting to the peer. Any idea why I see this? `Error: Failed to connect before the deadline URL: ` Is there any parameter that need to increase the deadline?

tstonely (Sun, 03 Mar 2019 13:47:37 GMT):
Has joined the channel.

meiblorn (Sun, 03 Mar 2019 16:21:55 GMT):
Can I somehow to increase timeout? peer0.gateway.fundtransfer.com | 2019-03-03 16:13:55.571 UTC [endorser] SimulateProposal -> ERRO 089 [all-orgs-channel][d9ab10d5] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode transfer-chaincode:1.0.36 for transaction

yacovm (Sun, 03 Mar 2019 18:23:04 GMT):
@meiblorn probably your chaincode just crashed... check the logs of the containers

JyotSabharwal (Sun, 03 Mar 2019 18:23:38 GMT):
Has joined the channel.

JyotSabharwal (Sun, 03 Mar 2019 18:24:14 GMT):
hey everyone! Can anyone tell me, at what level IBM is engaging in hyperledger fabric.?

RobiHarid (Sun, 03 Mar 2019 18:24:55 GMT):
hey guys

RobiHarid (Sun, 03 Mar 2019 18:25:00 GMT):
i want to create 100 transactions

RobiHarid (Sun, 03 Mar 2019 18:25:07 GMT):
how can i automate this on the playground

RobiHarid (Sun, 03 Mar 2019 18:30:03 GMT):
@yacovm would you know mate?

yacovm (Sun, 03 Mar 2019 18:43:04 GMT):
playground?

yacovm (Sun, 03 Mar 2019 18:43:06 GMT):
what's that

RobiHarid (Sun, 03 Mar 2019 19:45:44 GMT):
composer playgroun @yacovm

RobiHarid (Sun, 03 Mar 2019 20:11:04 GMT):
i juist want to automate sendiug lots of transactions

RobiHarid (Sun, 03 Mar 2019 20:30:24 GMT):
does anyone know how to use hyperledger caliper

RobiHarid (Sun, 03 Mar 2019 20:30:37 GMT):
i just want to benchmark anything

RobiHarid (Sun, 03 Mar 2019 20:30:39 GMT):
to check tps etc

Daka (Sun, 03 Mar 2019 20:44:02 GMT):
@RobiHarid you can use the #composer chat and #caliper

yacovm (Sun, 03 Mar 2019 20:44:42 GMT):
@RobiHarid nope, I never used composer

Daka (Sun, 03 Mar 2019 20:46:13 GMT):
@yacovm Can I pm you questions about the gossip protocol ? I want to create a NetLogo simple model of it, I already have several sources so I will try to limit my questions

RobiHarid (Sun, 03 Mar 2019 20:47:30 GMT):
@Daka noone is in those chats lol

Daka (Sun, 03 Mar 2019 20:49:24 GMT):
@RobiHarid There are people from time to time, today there were some messages passed around, on the other hand Composer is out of development at the moment so is kind of understandable

RobiHarid (Sun, 03 Mar 2019 20:50:02 GMT):
@Daka the last message in caliper was literally a week ago lol

RobiHarid (Sun, 03 Mar 2019 20:50:04 GMT):
can u help

Daka (Sun, 03 Mar 2019 20:50:25 GMT):
Oh, I haven't used caliper, I was talking about Composer ;/ sorry

RobiHarid (Sun, 03 Mar 2019 20:50:38 GMT):
have u used composer

RobiHarid (Sun, 03 Mar 2019 20:50:45 GMT):
i just want to automate transactions and time how long it takes

Daka (Sun, 03 Mar 2019 20:52:05 GMT):
well, that would technically depend on the fabric configurations as well, because you are deploying your .bna on a fabric system, and you will see how your bna behave on that particular fabric config

yacovm (Sun, 03 Mar 2019 20:52:11 GMT):
> I want to create a NetLogo simple model of it, I already have several sources so I will try to limit my questions what's NetLogo?

Daka (Sun, 03 Mar 2019 20:54:46 GMT):
It is a simple language to create models of things, for example there is a model for how a worm virus is spreading trough nodes, and I will use this as a spreading algorithm. https://www.youtube.com/watch?v=ihbjvlheXGo

Daka (Sun, 03 Mar 2019 20:55:40 GMT):
But some stuff about the gossip protocol are not clear enough to me, like the leading gossip pear is whoever or specifically one of the anchor peers, as they are the first to get a message out of the org

Daka (Sun, 03 Mar 2019 20:58:22 GMT):
And is it known how the leader choosing affects the network (whether the static or dynamic choice for leader is better), and what percentage of failure or of time lost is there

yacovm (Sun, 03 Mar 2019 21:12:51 GMT):
@Daka I think you need a quantum computer to simulate Fabric gossip

Daka (Sun, 03 Mar 2019 21:14:53 GMT):
@yacovm well, it's not going to be a real simulation on a properly configured fabric system, there is going to be a lot of assumptions

Daka (Sun, 03 Mar 2019 21:14:53 GMT):
@yacovm well, it's not going to be a real simulation on a properly configured fabric system, there are going to be a lot of assumptions

yacovm (Sun, 03 Mar 2019 21:37:49 GMT):
I am joking

Daka (Sun, 03 Mar 2019 21:51:31 GMT):
@yacovm but still, can I bug you with different question, those 2 above included ?

yacovm (Sun, 03 Mar 2019 22:03:33 GMT):
yeah sure

yacovm (Sun, 03 Mar 2019 22:03:47 GMT):
but tomorrow

Daka (Sun, 03 Mar 2019 22:28:03 GMT):
Can it be from tomorrow until thursday ? Thank you ^_^

shoumik (Sun, 03 Mar 2019 23:11:52 GMT):
Has joined the channel.

shoumik (Sun, 03 Mar 2019 23:12:07 GMT):
Anyone used hyperledger fabric on IOT ? can anyone suggest me where to look for it?

ygnr (Mon, 04 Mar 2019 00:33:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=syHt99mJo9qsFbZYw) @yacovm Can you help with this?

ygnr (Mon, 04 Mar 2019 00:36:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jZ9HMkEAmmtQQ3fyS) @meiblorn @meiblorn Faced something similar. There are env variables `CORE_CHAINCODE_STARTUPTIMEOUT`, `CORE_CHAINCODE_DEPLOYTIMEOUT`, `CORE_CHAINCODE_EXECUTETIMEOUT` that you can set. Maybe set a higher value on these variables?

ygnr (Mon, 04 Mar 2019 00:36:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jZ9HMkEAmmtQQ3fyS) @meiblorn Faced something similar. There are env variables `CORE_CHAINCODE_STARTUPTIMEOUT`, `CORE_CHAINCODE_DEPLOYTIMEOUT`, `CORE_CHAINCODE_EXECUTETIMEOUT` that you can set. Maybe set a higher value on these variables?

AkshayAshok (Mon, 04 Mar 2019 03:18:05 GMT):
Has joined the channel.

AkshayAshok (Mon, 04 Mar 2019 03:18:36 GMT):
has anyone tried to create two peers in two seperate machine and then deploy the same network?

MinhNguyenDuc (Mon, 04 Mar 2019 04:34:44 GMT):
Has joined the channel.

Aniket.1 (Mon, 04 Mar 2019 05:06:07 GMT):
I updated the couchdb version to 2.3 and now I am getting : ``` [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int ```

Aniket.1 (Mon, 04 Mar 2019 05:06:07 GMT):
I updated the couchdb version to 2.3 and now I am getting : ``` [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int ``` I found an issue related to this here: https://jira.hyperledger.org/projects/FAB/issues/FAB-13196?filter=allopenissues which is targeted to resolve in release 2.0.0 .Can anyone suggest a temporary solution for this?

venkat_nagaraj (Mon, 04 Mar 2019 06:09:19 GMT):
Has joined the channel.

venkat_nagaraj (Mon, 04 Mar 2019 06:09:38 GMT):
I am a go developer and new to hyperledger I am confused about fundamental difference between hyperledger fabric and hyperledger composer.

knobutan (Mon, 04 Mar 2019 06:31:21 GMT):
Has joined the channel.

knobutan (Mon, 04 Mar 2019 06:34:18 GMT):
@venkat_nagaraj My understand is that fabric is like the hyperledger itself. peers and other components run on it, whereas composer is like a tool to manage networks and so on.

knobutan (Mon, 04 Mar 2019 06:35:10 GMT):
I have my own question too.. Regarding how each peers can exist in the fabric. Can a single peer belong to multiple organization?

BorjanTrajanoski (Mon, 04 Mar 2019 06:59:46 GMT):
Has joined the channel.

BorjanTrajanoski (Mon, 04 Mar 2019 07:02:07 GMT):
In terms of using CouchDB the is the MVCC functionality of hyperledger fabric still in effect? I am trying to avoid phantom reads and data inconsistencies, can anyone confirm if using non-rich queries on a CouchDB storage solution, that data consistency is guaranteed with the same confidence as when using LevelDB?

BorjanTrajanoski (Mon, 04 Mar 2019 07:02:07 GMT):
In terms of using CouchDB is the MVCC functionality of hyperledger fabric still in effect? I am trying to avoid phantom reads and data inconsistencies, can anyone confirm if using non-rich queries on a CouchDB storage solution, that data consistency is guaranteed with the same confidence as when using LevelDB?

gennadyl (Mon, 04 Mar 2019 07:30:48 GMT):
@meiblorn Do you see your chaincode docker container running after timeout?

KerimAy (Mon, 04 Mar 2019 10:38:03 GMT):
Has joined the channel.

Mahesh-Raj (Mon, 04 Mar 2019 10:49:40 GMT):
Hey all, this is regarding Fabric1.4 Private Data Let's say I have 5 Orgs, (Org1, Org2, Org3, Org4, Org5) and each of them wants to do some transactions where only TWO Orgs are involved and they wanna keep them Private. I wanna use only 1 Channel 1. How many collections would network need? 2. If a new Org has to be added (Org6), how will existing Organisations gonna know about new Collections to interact with Org6?

knagware9 (Mon, 04 Mar 2019 10:52:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qSXggkBS3WhQq4jTP) @knobutan single peer not belongs to multiple organizations

knagware9 (Mon, 04 Mar 2019 10:53:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mnYPS3WFyGcspjXYr) @venkat_nagaraj composer is just tool for ease development , its abstraction layer of fabric itself

ahmadraza (Mon, 04 Mar 2019 11:38:50 GMT):
Error: error starting container: error starting container: API error (404): network my_network not found" while instaniating . i set CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my_network in peer-base.yaml ?

JMIsham (Mon, 04 Mar 2019 12:24:17 GMT):
hi everyone, I was going through adding new org to the channel tutorial, Need some clarifications, I understand that both of the organizations need to sign the block before submitting it. but in that example we manually sign as 2 organizations by changing the env according to each org admins. How does it happen in real world??

JMIsham (Mon, 04 Mar 2019 12:25:02 GMT):
please clarify this. or point me to a document I can read.

NadaHamdi (Mon, 04 Mar 2019 12:35:45 GMT):
Has joined the channel.

Aniket.1 (Mon, 04 Mar 2019 12:38:02 GMT):
does orderer stores data of each blocks same as a peer?

NadaHamdi (Mon, 04 Mar 2019 12:38:08 GMT):
Hello everyone, I'm new to hyperledger-fabric would appreciate the help..i'm running v1.4; I'm trying to build a network where organizations can be added dynamically to an up and running network without having to put it down every time a new Org wants to join, I'm already familiar with adding a new Org to the network but I down the network, modify multiple config yaml files generate the necessary certificates, then start the network again; how can I achieve that dynamically on the go?

yacovm (Mon, 04 Mar 2019 12:38:16 GMT):
@Aniket.1 yes

Aniket.1 (Mon, 04 Mar 2019 12:43:22 GMT):
and where is the chaincode actually stored?

Aniket.1 (Mon, 04 Mar 2019 12:43:22 GMT):
and where is the chaincode actually stored? When we install it, we can see it in peer data. what happens during instantiation?

dave.enyeart (Mon, 04 Mar 2019 12:56:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v6EeuQXc7G3oAWjYA) @BorjanTrajanoski Yes, CouchDB and LevelDB both detect phantoms on range and composite key queries

ahmadraza (Mon, 04 Mar 2019 13:02:40 GMT):
"Channel 'mychannel' failed to create status:BAD_REQUEST reason:error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/CmaMSP at version 0, but got version 1" can anyone tell this?

sanket1211 (Mon, 04 Mar 2019 13:10:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZxbcQpCPX2arvScrH) @ahmadraza teardown the network and try again

Aniket.1 (Mon, 04 Mar 2019 13:12:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZxbcQpCPX2arvScrH) @ahmadraza Seems you are creating the same name channel again

JMIsham (Mon, 04 Mar 2019 13:19:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hMQJWyt3taDpvBDP2) I have been asking some conceptual questions in this channel. I'm not getting any answers. Is this the right place to ask these questions? or can someone point me to the right channel please.

ahmadraza (Mon, 04 Mar 2019 13:20:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L24r897ao9rwsMJdL) @sanket1211 i tear down with docker-compose -f docker-compose.yaml down but error continue to show @Aniket.1

JMIsham (Mon, 04 Mar 2019 13:20:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=txGtLfrwP3JkkExZA) @ahmadraza try ./byfn down

rohitsethi (Mon, 04 Mar 2019 13:20:47 GMT):
Hello all, I am trying to use couchDB for the ledger database of peer. I have configured it in core.yaml file. After that I run the peer. In peer logs, I am getting this error: [kvledger] NewProvider -> INFO 004 ledger provider Initialized [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int. Check the admin username and password. [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized

rohitsethi (Mon, 04 Mar 2019 13:20:47 GMT):
Hello all, I am trying to use couchDB for the ledger database of peer. I have configured it in core.yaml file. After that I run the peer. In peer logs, I am getting this error: [kvledger] NewProvider -> INFO 004 ledger provider Initialized **[couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int. Check the admin username and password.** [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized

rohitsethi (Mon, 04 Mar 2019 13:20:47 GMT):
Hello all, I am trying to use couchDB for the ledger database of peer. I have configured it in core.yaml file. After that I run the peer. In peer logs, I am getting this error: [kvledger] NewProvider -> INFO 004 ledger provider Initialized **[couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int** [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int. Check the admin username and password.** [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized

rohitsethi (Mon, 04 Mar 2019 13:20:47 GMT):
Hello all, I am trying to use couchDB for the ledger database of peer. I have configured it in core.yaml file. After that I run the peer. In peer logs, I am getting this error: [kvledger] NewProvider -> INFO 004 ledger provider Initialized **[couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int** **[couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int. Check the admin username and password.** [ledgermgmt] initialize -> INFO 007 ledger mgmt initialized

rohitsethi (Mon, 04 Mar 2019 13:21:02 GMT):
Can someone please help me to resolve this?

JMIsham (Mon, 04 Mar 2019 13:22:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tZjbx6WCaNrQuQHGG) @NadaHamdi @rohitsethi u have any idea about this question ? m new here. It will be very helpgul

JMIsham (Mon, 04 Mar 2019 13:22:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tZjbx6WCaNrQuQHGG) @NadaHamdi @rohitsethi u have any idea about this question ? m new here. It will be very helpful

Aniket.1 (Mon, 04 Mar 2019 13:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=txGtLfrwP3JkkExZA) @ahmadraza try to change your channel name (I mean by preparing new genesis block and config tx with updated name). It may work

ahmadraza (Mon, 04 Mar 2019 13:26:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ccXLHfy8TghhFvQHE) @Aniket.1 it works but when i restart network need to always create genisis and channel.tx but in fabric-samples/balance transfer app i just down the network and up again no errors occurs i want to down and up network multiple times

Aniket.1 (Mon, 04 Mar 2019 13:27:35 GMT):
You cannot install two channels with same name, i think.

sanket1211 (Mon, 04 Mar 2019 13:28:51 GMT):
no need to create genesis block just create a new channel

ahmadraza (Mon, 04 Mar 2019 13:29:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PuSzZxcBKJMMyTtNZ) @sanket1211 you means channel.tx file?

sanket1211 (Mon, 04 Mar 2019 13:29:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rMgX5ufkngZGzzYoA) @ahmadraza yes

rohitsethi (Mon, 04 Mar 2019 13:31:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HoFrNuhYFqxigMYX2) @JMIsham as per my knowledge you have to update the genesis block to add a new organisation in an already running network. have you tried this tutorial? https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

JMIsham (Mon, 04 Mar 2019 13:36:28 GMT):
Yeah I tried, in that tutorial we are signing the block on behalf of both organizations admins via cli, so how does it done in the real production environment?

JMIsham (Mon, 04 Mar 2019 13:36:35 GMT):
@rohitsethi

JulianSolarte (Mon, 04 Mar 2019 13:45:39 GMT):
Hello, I was reading about couchdb before model my solution in Fabric and I have a question: Why in Fabric is necessary create the index in other Json and why couchdb use the index through views?

JulianSolarte (Mon, 04 Mar 2019 13:48:05 GMT):
Does it works different?

NadaHamdi (Mon, 04 Mar 2019 14:15:40 GMT):
@rohitsethi yes i've tried that tutorial, but from my understanding, i down the network to perform the changes, it is not done dynamically while the network is up..or am I missing something?

nikolas (Mon, 04 Mar 2019 14:45:38 GMT):
Has joined the channel.

wuqilv (Mon, 04 Mar 2019 14:58:37 GMT):
@rohitsethi The operation of update the genesis block of the tutorial to add a new organisation here is related to the channel. Is there any way to add an organization to the network as it was when the fabric network started generating configuration blocks without having to connected with an existing channel.

JulianSolarte (Mon, 04 Mar 2019 15:05:42 GMT):
Hello, I was reading about couchdb before model my solution in Fabric and I have a question: Why in Fabric is necessary create the index in other Json and why couchdb use the index through views? Does it works different?

ahmadraza (Mon, 04 Mar 2019 15:25:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2mnBfXHueroohAGde) @sanket1211 it does not created channel by creating channel.tx only whole crypto-config and channel-artifacts need to be generated again any solution ?

devboy00 (Mon, 04 Mar 2019 18:33:45 GMT):
Has joined the channel.

JulianSolarte (Mon, 04 Mar 2019 20:00:15 GMT):
Hello, I was reading about couchdb before model my solution in Fabric and I have a question: Why in Fabric is necessary create the index in other Json and why couchdb use the index through views? Does it works different?

ChainRider (Mon, 04 Mar 2019 20:09:52 GMT):
Has joined the channel.

dave.enyeart (Mon, 04 Mar 2019 20:16:05 GMT):
@JulianSolarte Fabric leverages the native CouchDB _find JSON declarative query API which requires indexes to be created. This should not be confused with the separate 'View' support in CouchDB. For more details read https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html

dave.enyeart (Mon, 04 Mar 2019 20:16:05 GMT):
@JulianSolarte Fabric leverages the native CouchDB `_find~ JSON declarative query API which requires indexes to be created. This should not be confused with the separate 'View' support in CouchDB. For more details read https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html

dave.enyeart (Mon, 04 Mar 2019 20:16:05 GMT):
@JulianSolarte Fabric leverages the native CouchDB `_find` JSON declarative query API which requires indexes to be created. This should not be confused with the separate 'View' support in CouchDB. For more details read https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html

JulianSolarte (Mon, 04 Mar 2019 20:23:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DLZhPqbnFD6RQMZkF) @dave.enyeart But anyway I can use the built-in "_all_docs" indexes, right?

dave.enyeart (Mon, 04 Mar 2019 20:34:58 GMT):
yes, those are used implicitly by chaincode APIs such as GetStateByRange() for key range queries

wangdong (Tue, 05 Mar 2019 02:48:47 GMT):
Regarding the leading peer, as I think there is only one per org. And this can be set up in dynamic or static.

wangdong (Tue, 05 Mar 2019 02:49:39 GMT):
And this kind of leading peer should have nothing to do with endorer unless it got specified.

wangdong (Tue, 05 Mar 2019 02:49:54 GMT):
Just want to make sure of this. In case I miss something.

wangdong (Tue, 05 Mar 2019 02:50:04 GMT):
I got one odd problem from client.

Hornbill (Tue, 05 Mar 2019 04:57:59 GMT):
Has joined the channel.

sanket1211 (Tue, 05 Mar 2019 05:08:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kCz5ybuvRmPN7itMd) @ahmadraza it does create channel only..u dont have to generate everything again.

SatheeshNehru (Tue, 05 Mar 2019 05:45:20 GMT):
`2019/03/01 18:14:04 [INFO] 127.0.0.1:54332 POST /enroll 201 0 "OK" 2019/03/01 18:14:23 [INFO] 127.0.0.1:54336 GET /certificates?notexpired=false¬revoked=false 200 0 "OK" 2019/03/01 18:15:32 [INFO] 127.0.0.1:54344 POST /register 201 0 "OK" 2019/03/01 18:16:12 [INFO] 127.0.0.1:54350 POST /register 500 0 "Registration of 'admin2' failed: Identity 'admin2' is already registered" 2019/03/01 18:16:24 [INFO] 127.0.0.1:54352 POST /register 201 0 "OK" 2019/03/01 18:16:45 [INFO] 127.0.0.1:54356 GET /certificates?notexpired=false¬revoked=false 200 0 "OK" 2019/03/04 11:30:39 [INFO] 127.0.0.1:58142 GET /certificates?notexpired=false¬revoked=false 200 0 "OK" `

SatheeshNehru (Tue, 05 Mar 2019 05:45:48 GMT):
``` wq ```

SatheeshNehru (Tue, 05 Mar 2019 06:22:04 GMT):
how to genreate certificate using fabric ca instead of cryptogen tool in first network example

Tom-Xu-CNXA (Tue, 05 Mar 2019 07:37:49 GMT):
For chaincode SDK (Node.js), there is concept of 'contract-namespace' (see https://hyperledger-fabric.readthedocs.io/en/latest/developapps/chaincodenamespace.html). But there is not any 'contract-namespace' concept in shim Go chaincode SDK, (see https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode). And in some overview introduction pages, it says chaincode==smart contract (see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html?highlight=named%20chaincode). My question is: do we have any plan to implement contract-namespace concepts in Go SDK?

Tom-Xu-CNXA (Tue, 05 Mar 2019 07:37:49 GMT):
For chaincode SDK (Node.js), there is concept of 'contract-namespace' (see https://hyperledger-fabric.readthedocs.io/en/latest/developapps/chaincodenamespace.html). But there is not any 'contract-namespace' concept in shim Go chaincode SDK, (see https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode). And in some overview introduction pages, it says chaincode==smart contract (see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html?highlight=named%20chaincode). My question is: do we have any plan to implement contract-namespace concepts in Go SDK?

Tom-Xu-CNXA (Tue, 05 Mar 2019 07:37:49 GMT):
For chaincode SDK (Node.js), there is concept of 'contract-namespace', and a chaincode might contain multiple contracts (see https://hyperledger-fabric.readthedocs.io/en/latest/developapps/chaincodenamespace.html). But there is not any 'contract-namespace' concept in shim Go chaincode SDK, (see https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode). And in some overview introduction pages, it says chaincode==smart contract (see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html?highlight=named%20chaincode). My question is: do we have any plan to implement contract-namespace concepts in Go SDK?

Tom-Xu-CNXA (Tue, 05 Mar 2019 07:37:49 GMT):
For chaincode SDK (Node.js), there is concept of 'contract-namespace', and a chaincode might contain multiple contracts (see https://hyperledger-fabric.readthedocs.io/en/latest/developapps/chaincodenamespace.html). But there is not any 'contract-namespace' concept in shim Go chaincode SDK, (see https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode). And in some overview introduction pages, it says chaincode==smart contract (see https://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html?highlight=named%20chaincode). My question is: do we have any plan to implement contract-namespace concepts in Go SDK? Do we will have Go chaincode to contain multiple Contract liked instances? Or, the Node.js chaincode SDK won't be identical with Go chaincode SDK?

jiangcm (Tue, 05 Mar 2019 08:21:58 GMT):
Has joined the channel.

ycarmel (Tue, 05 Mar 2019 08:23:05 GMT):
What is the best practice to maintain a creation date and update date on a WorldState value? Not really possible to generate the creation date from the chaincode, and if generating on the client, do I have the chaincode verify it?

Hornbill (Tue, 05 Mar 2019 08:34:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7NnBk28DJeNsokFsw) @SatheeshNehru +1 the seam question. BTW, is it ok to follow the tutorial on official website? I just find it difficult to understand all those concept

shunwatai (Tue, 05 Mar 2019 08:45:38 GMT):
Has joined the channel.

shunwatai (Tue, 05 Mar 2019 08:52:13 GMT):
Hi everyone, I am trying the papernet tutorial, it use the basic-network which only has one organisation with one peer, so my question is that if in the real world production environment, how many organisations and peers I should build for MagnetoCorp and DigiBank?

shunwatai (Tue, 05 Mar 2019 08:52:13 GMT):
Hi everyone, I am trying the paperNet tutorial, it uses the basic-network which only has one organisation with one peer, so my question is that if in the real world production environment, how many organisations and peers I should build for MagnetoCorp and DigiBank?

shunwatai (Tue, 05 Mar 2019 08:52:13 GMT):
Hi everyone, I am trying the paperNet tutorial, it uses the basic-network which only has one organisation with one peer, so my question is that if in the real world production environment, how many organisations and peers I should define / build for MagnetoCorp and DigiBank?

JMIsham (Tue, 05 Mar 2019 08:57:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XEkpqdYu8Bf9f2FkA) @shunwatai @shunwatai As per my understanding, in depends on the size of the organization. but definitely not one peer for both organization. there has to be at least one peer per organization.

JMIsham (Tue, 05 Mar 2019 08:57:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XEkpqdYu8Bf9f2FkA) @shunwatai As per my understanding, it depends on the size of the organization. but definitely not one peer for both organization. there has to be at least one peer per organization.

JMIsham (Tue, 05 Mar 2019 09:00:07 GMT):
hi everyone. Let's say in the fabcar example, only the current owner can change the ownership of the car, how can we do that? is it done in the application level or at the smart contract level?

Hornbill (Tue, 05 Mar 2019 09:01:57 GMT):
I'm not quite understand the difference between MSP and fabric. can I regard it as: CA use public/private keys to generate certificates, the MSP utilizes certificates to provide membership service?

UnaiUrkiaga (Tue, 05 Mar 2019 09:09:02 GMT):
Hi, can I create a channel using orderer admin?

maxrobot (Tue, 05 Mar 2019 09:17:01 GMT):
Is anyone aware of how I define which elliptic curve is used for my crypto materials?

CorentinPacaud (Tue, 05 Mar 2019 09:27:29 GMT):
Hello, I build a network with 3 orgs. 3 peers, and 2 channel : channel12 : peer0.org1 & peer0.org2, channel23: peer0.org2, peer0.org3. When I launch the nodejs server, I create 1 user for each org, but the org3 fails with this error : ```[ERROR] Failed to register: Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'userOrg3' failed in affiliation validation: Failed getting affiliation 'org3.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]] ``` Any tips ?

SatheeshNehru (Tue, 05 Mar 2019 10:16:13 GMT):
when is global msp created where it is located?

itg1996 (Tue, 05 Mar 2019 10:34:14 GMT):
Has joined the channel.

sanket1211 (Tue, 05 Mar 2019 11:31:00 GMT):
Failed to invoke chaincode. cause:TypeError: Cannot read property 'curve' of undefined hyperledger

sanket1211 (Tue, 05 Mar 2019 11:31:37 GMT):
has anyone come across this error while invoking the chaincode?

someguy (Tue, 05 Mar 2019 11:42:23 GMT):
Has joined the channel.

someguy (Tue, 05 Mar 2019 11:42:31 GMT):
Hello everyone, Im getting kinda confused about what Organizations really are in Hyperledger Fabric. Are organizations just containers or organizations are real life organizations/enterprises that have peers and ordering service in the blockchain network?

JMIsham (Tue, 05 Mar 2019 11:50:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cQzKqfr6AvtWPSaiK) @someguy its representing the real life trusted organizations. number of peers depends on the size of the organization

someguy (Tue, 05 Mar 2019 11:52:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sumjrDgsKDNnQyFdu) @JMIsham Thank you @JMIsham

SrinivasBitla (Tue, 05 Mar 2019 12:03:10 GMT):
Has joined the channel.

SrinivasBitla (Tue, 05 Mar 2019 12:03:54 GMT):
hello, any idea on this error

SrinivasBitla (Tue, 05 Mar 2019 12:03:55 GMT):
2019-03-05T11:51:24.096Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

UnaiUrkiaga (Tue, 05 Mar 2019 12:04:24 GMT):
@SrinivasBitla have you got the CA running?

SrinivasBitla (Tue, 05 Mar 2019 12:04:40 GMT):
not sure. how do i check?

UnaiUrkiaga (Tue, 05 Mar 2019 12:04:44 GMT):
docker ps

SrinivasBitla (Tue, 05 Mar 2019 12:05:09 GMT):
nothing running right now

SrinivasBitla (Tue, 05 Mar 2019 12:05:25 GMT):
let me rerun the script

SrinivasBitla (Tue, 05 Mar 2019 12:05:26 GMT):
thanks

SrinivasBitla (Tue, 05 Mar 2019 12:09:57 GMT):
it worked now. thanks again

JMIsham (Tue, 05 Mar 2019 12:30:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z2A7eZ7XAPsXvBHfn) @SrinivasBitla u should always run the scripts.. lolz

SashaPESIC (Tue, 05 Mar 2019 12:58:16 GMT):
Has joined the channel.

SrinivasBitla (Tue, 05 Mar 2019 13:16:41 GMT):
Hello sir, got stuck at querying the ledger..

SrinivasBitla (Tue, 05 Mar 2019 13:16:44 GMT):
2019-03-05T13:13:37.299Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:7051 2019-03-05T13:13:37.300Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:7051

SrinivasBitla (Tue, 05 Mar 2019 13:17:08 GMT):
i could see the process at docker ps

SrinivasBitla (Tue, 05 Mar 2019 13:17:14 GMT):
7051 port is up

UnaiUrkiaga (Tue, 05 Mar 2019 13:53:11 GMT):
have you got TLS activated?

SrinivasBitla (Tue, 05 Mar 2019 14:07:47 GMT):
how do i check it?

UnaiUrkiaga (Tue, 05 Mar 2019 14:20:34 GMT):
open docker-compose.yaml file that you execute to run Hyperledger Fabric

SrinivasBitla (Tue, 05 Mar 2019 14:24:04 GMT):
ok

HappyThoughts (Tue, 05 Mar 2019 14:49:15 GMT):
Has joined the channel.

HappyThoughts (Tue, 05 Mar 2019 14:50:43 GMT):
Hi, i am trying to use Hyperledger caliper on a fabric-network i am running with composer. I am getting this error after running the benchmark/composer/main.js file error: [composer.js]: composer.init() failed at initialiseFabric(), code=1, stdout=, stderr=Error: No such container: peer0.org1.example.com

HappyThoughts (Tue, 05 Mar 2019 14:50:51 GMT):
any idea what it is caused by?

UnaiUrkiaga (Tue, 05 Mar 2019 15:04:51 GMT):
You dont initialize hyperledger fabric

UnaiUrkiaga (Tue, 05 Mar 2019 15:06:00 GMT):
Be sure you have hyperledger containers up and running

SrinivasBitla (Tue, 05 Mar 2019 15:15:51 GMT):
after editing docker-compose.yaml with TLS enabled, container was not coming up

SrinivasBitla (Tue, 05 Mar 2019 15:16:00 GMT):
then reverted the changes

UnaiUrkiaga (Tue, 05 Mar 2019 15:16:17 GMT):
you have to remove volumes before

UnaiUrkiaga (Tue, 05 Mar 2019 15:16:28 GMT):
and all containers

UnaiUrkiaga (Tue, 05 Mar 2019 15:16:41 GMT):
then try to up all containers

SrinivasBitla (Tue, 05 Mar 2019 15:16:51 GMT):
how to remove them?

SrinivasBitla (Tue, 05 Mar 2019 15:18:30 GMT):
docker-compose -f docker-compose.yml down

SrinivasBitla (Tue, 05 Mar 2019 15:18:35 GMT):
will this works?

UnaiUrkiaga (Tue, 05 Mar 2019 15:18:54 GMT):
that the first step

UnaiUrkiaga (Tue, 05 Mar 2019 15:18:54 GMT):
then you have to execute: docker rm $(docker ps -a -q)

SrinivasBitla (Tue, 05 Mar 2019 15:19:21 GMT):
ok.

UnaiUrkiaga (Tue, 05 Mar 2019 15:19:27 GMT):
and then: docker volume prune

UnaiUrkiaga (Tue, 05 Mar 2019 15:20:01 GMT):
finally: docker-compose -f docker.compose.yaml up -d

SrinivasBitla (Tue, 05 Mar 2019 15:20:26 GMT):
ok

UnaiUrkiaga (Tue, 05 Mar 2019 15:21:42 GMT):
you have to modify the yaml file with your file name

SrinivasBitla (Tue, 05 Mar 2019 15:23:32 GMT):
i am trying to execute basic network, as of now file name is same

UnaiUrkiaga (Tue, 05 Mar 2019 15:23:55 GMT):
:ok_hand:

SrinivasBitla (Tue, 05 Mar 2019 15:27:01 GMT):
same issue after that. my tls config might be wrong

SrinivasBitla (Tue, 05 Mar 2019 15:28:08 GMT):
is it right way to add TLS enablement? please check for this peer

SrinivasBitla (Tue, 05 Mar 2019 15:28:09 GMT):
peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer0.org1.example.com - FABRIC_LOGGING_SPEC=info - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt

SrinivasBitla (Tue, 05 Mar 2019 15:28:24 GMT):
last 2 lines

UnaiUrkiaga (Tue, 05 Mar 2019 15:29:51 GMT):
- CORE_PEER_TLS_ROOTCERT_FILE= -> this path has to be volume path, not peer path

UnaiUrkiaga (Tue, 05 Mar 2019 15:30:12 GMT):
show your volumes defined on that file

SrinivasBitla (Tue, 05 Mar 2019 15:30:51 GMT):
volumes: - /var/run/:/host/var/run/ - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/msp/peer - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users - ./config:/etc/hyperledger/configtx

UnaiUrkiaga (Tue, 05 Mar 2019 15:32:58 GMT):
you need another volume to the tls/ca.crt file

UnaiUrkiaga (Tue, 05 Mar 2019 15:33:02 GMT):
- ../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls

UnaiUrkiaga (Tue, 05 Mar 2019 15:33:24 GMT):
and then change the path to /etc/hyperledger/fabric/tls/ca.crt

KGiou (Tue, 05 Mar 2019 15:38:06 GMT):
Hi all, in my implementation I have two Orgs, Org1 n' Org2. I want to change the policy of my channel, hence when I Add a New Org only Org1 will have the permissions to do it. Do you know where should I change my policy definition?

SrinivasBitla (Tue, 05 Mar 2019 16:05:42 GMT):
Sir, it worked,

SrinivasBitla (Tue, 05 Mar 2019 16:05:59 GMT):
but ended up with rpc error

SrinivasBitla (Tue, 05 Mar 2019 16:06:00 GMT):
# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2019-03-05 16:03:46.917 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-03-05 16:03:46.935 UTC [cli.common] readBlock -> INFO 002 Received block: 0 # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2019-03-05 16:03:47.206 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-03-05 16:03:47.320 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Creating cli ... done 2019-03-05 16:03:48.578 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-03-05 16:03:48.578 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing chaincode: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error:

UnaiUrkiaga (Tue, 05 Mar 2019 16:22:59 GMT):
I dont see where is chaincode install..

UnaiUrkiaga (Tue, 05 Mar 2019 16:23:27 GMT):
i suggest you to follow https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html tutorial

SrinivasBitla (Tue, 05 Mar 2019 16:44:38 GMT):
ok. i have been trying this https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html

merth (Tue, 05 Mar 2019 17:00:39 GMT):
Has joined the channel.

SameerKulkarni (Tue, 05 Mar 2019 17:05:03 GMT):
can a organization not present in channel be part of endorsement policy?

SameerKulkarni (Tue, 05 Mar 2019 17:05:03 GMT):
can a organization not present in channel be part of endorsement policy of that particular channel?

merth (Tue, 05 Mar 2019 17:07:22 GMT):
Hello everyone, I hope everyone is doing well. I am hitting a problem that i can't seem to be solving. I am using Fabric 1.2, and I am trying to add a member to my channel. The network has two members, and one channel called mychannel. After creating the transaction protobuf file and trying to submit the transaction to the orderer. The orderer is rejecting the transaction giving me: 2019-03-05 16:54:47.754 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining I checked the channel config, I dont see any endorsement policy with the exception of an admin. I am using the network creators Admin cert to sign and submit the transaction. We looked at the orderer logs, and but i dont see anything out of the ordinary but I'm sure I'm probably missing something. Thanks for the help! (btw, member = org)

jeffgarratt (Tue, 05 Mar 2019 19:17:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3Whzqcm4xyJp5wfRh) @merth Make sure that the "Admin" you refer to is a channel config admin, and NOT the Admin for the localMSP of the org's peer (aka a Peer Admin)

jeffgarratt (Tue, 05 Mar 2019 19:26:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9B2c4SjKjLoD37cpN) @SameerKulkarni think this is technically possible, but in effect makes the entity a gatekeeper of progression without validation of result in the traditional sense (i.e. chaincode operation). In general, I would ask you to restate your intended constraint from the value proposition of the interaction, vs the technical implementation.

merth (Tue, 05 Mar 2019 19:55:25 GMT):
@jeffgarratt Thanks Jeff! I will double check that.

crocodile001 (Tue, 05 Mar 2019 21:16:09 GMT):
Has joined the channel.

mmyburgh (Tue, 05 Mar 2019 21:33:03 GMT):
Has joined the channel.

mmyburgh (Tue, 05 Mar 2019 21:33:10 GMT):
Is the hyperledger/fabric-sdk-rest a project that will be further developed. I dont see much action on the github site and wanted to know if there is a serious commitmenton around rest support for fabric

mmyburgh (Tue, 05 Mar 2019 21:33:10 GMT):
Is the hyperledger/fabric-sdk-rest a project that will be further developed. I don't see much action on the github site and wanted to know if there is a serious commitment on around rest support for fabric

OscarRoman (Tue, 05 Mar 2019 21:40:32 GMT):
hello such good afternoon, I have a problem, I am currently creating my network Hyperledger Fabric in an AWS EC2 network, but when I stop the virtual machine and restart it, the chaincode is lost ... Has someone solved this? Thank you very much and greetings !!!!

gregnotso (Tue, 05 Mar 2019 23:10:56 GMT):
@OscarRoman - rebuild it just like byfn would if your instance is shutdown, stopping the instance and starting it should preserve all of your network

Hornbill (Wed, 06 Mar 2019 03:39:08 GMT):

Clipboard - March 6, 2019 11:38 AM

Hornbill (Wed, 06 Mar 2019 03:40:37 GMT):
dose this means that the chaincode only needed to be installed on anchor peers and it will propagate through all the peers. no matter what organizations they in?

AnkurBassi (Wed, 06 Mar 2019 05:08:10 GMT):
Has joined the channel.

AnkurBassi (Wed, 06 Mar 2019 05:08:19 GMT):
Hi everyone,In commercial paper blockchain I am editing the smart contract(papercontract.js) but it is not getting reflected on the blockchain network after installing and initiating again.To be sure I emptied the contents of papercontract.js from manetocorp as well as digitalcorp surprisingly its is working fine. from where i am going wrong

SatheeshNehru (Wed, 06 Mar 2019 05:45:19 GMT):
can you tell where will the channel msp located?? when peer of org1 communicate with peer of org2 how will the org2.peer know the certificate from org1.peer is valid will be glad if someone answer?

SatheeshNehru (Wed, 06 Mar 2019 07:01:40 GMT):
convert cahnnel.tx to jason how to do??

Heena078 (Wed, 06 Mar 2019 07:44:12 GMT):
Hello,Anybody tried Multi hosting using Multi channel setup in fabric ???????

luckforzhang (Wed, 06 Mar 2019 07:55:09 GMT):
Has joined the channel.

luckforzhang (Wed, 06 Mar 2019 07:58:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gmGik95E9X8yiAWhk) @AnkurBassi where did you change it ? if you removed the special func in the js which is needed by fabric, you will not get it ok with fabric

florianc (Wed, 06 Mar 2019 08:00:19 GMT):
Hello. I would like to know WHEN the block is created (block timestamp, etc). For example, I set my fabric to wait for 10 txs or 10 seconds. I receive only one transaction within these 10 seconds. Has the block information been generated when the first tx got in or when the 10 seconds expired?

luckforzhang (Wed, 06 Mar 2019 08:49:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FPsikY7jq8BJ3FBJ5) @florianc there are three conditions involved in the conf file of orderer```# Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 99 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 512 KB ```

luckforzhang (Wed, 06 Mar 2019 08:52:49 GMT):
If the orderer got one txs and wait for 10sec, it will batch and wait for another round; those three conditions, satisfy anyone and you will get a new block

luckforzhang (Wed, 06 Mar 2019 08:56:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4Qadufu2YHq8wdjMN) @SatheeshNehru 1. channel doesn't have a msp```2. throw anchor peer to communicate with peers in other orgs, also there is a `gossip` you may like to know ```

SatheeshNehru (Wed, 06 Mar 2019 09:13:49 GMT):
@luckforzhang but is there anything called global msp where all ca certs are stored.

luckforzhang (Wed, 06 Mar 2019 09:18:18 GMT):
msp are for peer , orderer, orgs, and admin or users, no msp for channel

luckforzhang (Wed, 06 Mar 2019 09:19:48 GMT):
when you use `cryptogen` to generate all ca certs, it will give you a folder named crypto-config, which will contains all ca certs of each role in fabric , basic on your `configtx.yaml`

SatheeshNehru (Wed, 06 Mar 2019 09:23:22 GMT):
@luckforzhang thanks

AnkurGupta7 (Wed, 06 Mar 2019 10:08:27 GMT):
Has joined the channel.

AnkurGupta7 (Wed, 06 Mar 2019 10:09:02 GMT):
While creating first Network locally - $ ./byfn.sh -m generate i am getting below error $ ./byfn.sh -m generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of ' 10' seconds and CLI delay of '3' seconds Continue? [Y/n] Y proceeding ... /d/BlockChainHyperLedger/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /d/BlockChainHyperLedger/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## CONSENSUS_TYPE=solo + '[' solo == solo ']' + configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -output Block ./channel-artifacts/genesis.block 2019-03-06 13:15:48.418 IST [common/configtx/tool] main -> INFO 001 Loading conf iguration 2019-03-06 13:15:48.444 IST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 21 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka]' has invalid keys: Capabilities, Policies * 'Profiles[SampleDevModeKafka].Application' has invalid keys: Capabilities, Pol icies * 'Profiles[SampleDevModeKafka].Application.Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Orderer' has invalid keys: Capabilities, Policie s * 'Profiles[SampleDevModeKafka].Orderer.Organizations[0]' has invalid keys: Poli cies * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities, Policie s * 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: Poli cies * 'Profiles[TwoOrgsChannel].Application.Organizations[1]' has invalid keys: Poli cies * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities, Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0 ]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[1 ]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities, Poli cies * 'Profiles[TwoOrgsOrdererGenesis].Orderer.Organizations[0]' has invalid keys: P olicies + res=1 + set +x Failed to generate orderer genesis block...

hamra (Wed, 06 Mar 2019 10:16:34 GMT):
Has joined the channel.

whoneedi (Wed, 06 Mar 2019 10:17:39 GMT):
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc000 when i update Anchor Peer report this error

whoneedi (Wed, 06 Mar 2019 10:18:40 GMT):
and this error

whoneedi (Wed, 06 Mar 2019 10:18:41 GMT):
goroutine 336 [select]: net.(*Resolver).LookupIPAddr(0x1f2ccc0, 0x1380660, 0xc0004de240, 0xc002b669c0, 0x22, 0xc002b669e3, 0x4, 0x1b8a, 0x0, 0x0) /opt/go/src/net/lookup.go:227 +0x55f

SatheeshNehru (Wed, 06 Mar 2019 10:58:12 GMT):
https://chat.hyperledger.org/channel/fabric?msg=aKnkzyJFWoupY64RQ

iRajesha (Wed, 06 Mar 2019 11:35:23 GMT):
Has joined the channel.

HaydenGriffin (Wed, 06 Mar 2019 12:10:03 GMT):
Hi, I hope someone can help me

HaydenGriffin (Wed, 06 Mar 2019 12:10:05 GMT):
I've been working on trying to implement user registration using fabrics CA with the Go SDK I have temporarily disabled tls and set grpc options to allow insecure traffic

HaydenGriffin (Wed, 06 Mar 2019 12:10:24 GMT):
I'm getting the following issue

HaydenGriffin (Wed, 06 Mar 2019 12:10:46 GMT):
``` 2019/03/06 11:41:15 [DEBUG] DB: Get certificate by serial (27b7c1509090d5f24060d15105e21216) and aki (9f0eba9c3abf94bc45d2f9972ca6efdef0f9219eb5c132b47940067721ac762b) 2019/03/06 11:41:15 [ERROR] No certificates found for provided serial and aki` ```

JMIsham (Wed, 06 Mar 2019 13:30:04 GMT):
Hi everyone. So when it comes to CA, its private for each organizations right?? is the certificate provided by cs only used by sdk's to communicate with peers?? technically information about a ca doesn't exist in the block chain right??

florianc (Wed, 06 Mar 2019 13:36:00 GMT):
certificates are also used to sign messages between the network participants (peers, orderers, etc.) For example, when endorsing, a peer sign the endorsement information. But I can't really add much info about it

JMIsham (Wed, 06 Mar 2019 13:43:17 GMT):
Those are already generated certificates right?? m asking about the certificate authority. we use it to set our application wallet and for what else we use Certificate authorities??

Peter-JanBrone (Wed, 06 Mar 2019 13:51:14 GMT):
Has joined the channel.

Peter-JanBrone (Wed, 06 Mar 2019 13:52:01 GMT):
I have some questions regarding evmcc and the fabproxy. Anyone lurking here with some knowledge on the matter?

Peter-JanBrone (Wed, 06 Mar 2019 13:52:14 GMT):
Or who can point me to some good resources because I can't find that much documentation about it.

Peter-JanBrone (Wed, 06 Mar 2019 13:52:38 GMT):
In short I'm missing some json rpc methods in order to run some custom ethereum indexer on top of the proxy.

Peter-JanBrone (Wed, 06 Mar 2019 13:53:41 GMT):
It comes down to the fact that I have some custom software, written for ethereum, but I want to make use of the channels in hyperledger. Was hoping that thanks to the work done by the burrower team it'd be plug and play but it seems it's not quite at that point, yet.

gregnotso (Wed, 06 Mar 2019 14:24:53 GMT):
by the end of the month, it's a 'bye-bye' Kafka, correct?

florianc (Wed, 06 Mar 2019 14:25:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wRvh7EtzenG4q2hKw) @gregnotso Why?

jeffgarratt (Wed, 06 Mar 2019 15:16:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nh77MSiiS7TMmMWHk) @JMIsham The CAs certs (and intermediate CA certs) are stored in the CONFIG block on the blockchain under the Org's MSP section.

jeffgarratt (Wed, 06 Mar 2019 15:16:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nh77MSiiS7TMmMWHk) @JMIsham The CAs certs (and intermediate CA certs) are stored in the CONFIG block on the blockchain under the Org's MSP section. See https://github.com/hyperledger/fabric/blob/release-1.4/protos/msp/msp_config.proto#L35-L89

yacovm (Wed, 06 Mar 2019 15:25:48 GMT):
@florianc he probably means that you should be able to use Raft type OSN

yacovm (Wed, 06 Mar 2019 15:25:57 GMT):
that doesn't need Kafka/Zookeeper

florianc (Wed, 06 Mar 2019 15:30:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ABjwWmfEDLu8KWMhs) @yacovm Is it coming out soon?

yacovm (Wed, 06 Mar 2019 15:31:04 GMT):
yes

florianc (Wed, 06 Mar 2019 15:33:44 GMT):
:thumbsup:

OscarRoman (Wed, 06 Mar 2019 16:44:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ttNFF8yPBdp2EDXEJ) @gregnotso I'm going to try it, thank you very much :D

someguy (Wed, 06 Mar 2019 17:10:47 GMT):
Hello guys, what is the difference between the the Admin@org1.example.com User1@org1.example.com, for example?

sah (Wed, 06 Mar 2019 22:20:49 GMT):
Has joined the channel.

sah (Wed, 06 Mar 2019 22:24:51 GMT):
Hi all, I've been following https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html, there are a number of bugs in the instructions (to whom do I direct that too?) but I've overcome most of them, except that I am unable to instantiate chaincode and I get the following ``` peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')" 2019-03-06 22:08:52.389 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-03-06 22:08:52.389 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Attribute 'abac.init' was not found ```

sah (Thu, 07 Mar 2019 00:15:24 GMT):
So, I've discovered the issue: The documentation is incorrect, instead of abac, I need to use chaincode_example02

wangdong (Thu, 07 Mar 2019 03:06:29 GMT):
how to purge or make the ledger data unaccessable after the org leaves the network?

JMIsham (Thu, 07 Mar 2019 03:45:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ffSCCTCgimf7HeAcT) @jeffgarratt So it happens internally, We don't need to give any configurations when generating genesis block?

SatheeshNehru (Thu, 07 Mar 2019 05:00:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2jr25zgXNjKTRQoGo) someone help me in this

FabricBeer (Thu, 07 Mar 2019 05:05:45 GMT):
How can we backup a peer's ledger from a channel

knobutan (Thu, 07 Mar 2019 05:17:03 GMT):
knobutan

ShaneHowearth (Thu, 07 Mar 2019 07:22:04 GMT):
Has joined the channel.

knagware9 (Thu, 07 Mar 2019 07:38:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xBuawjXxsBoGhgzHZ) @FabricBeer use docker-compose volume section , mounting to local file system

SatheeshNehru (Thu, 07 Mar 2019 08:01:45 GMT):
is there any way by which i can see level db data

VictorStroganov (Thu, 07 Mar 2019 08:02:56 GMT):
Hi! Fabric CA server can be configured to use softhsm. Is it possible to use softhsm on peer?

stevie20 (Thu, 07 Mar 2019 09:10:43 GMT):
Has joined the channel.

DeepPrajapati (Thu, 07 Mar 2019 09:19:26 GMT):
Has joined the channel.

DeepPrajapati (Thu, 07 Mar 2019 09:20:22 GMT):
I want to convert hyperledger fabric app to sawtooth, Is it possible and yes then how it is converted.

tatathk (Thu, 07 Mar 2019 09:20:29 GMT):
Has joined the channel.

tejateja (Thu, 07 Mar 2019 09:24:51 GMT):
Has joined the channel.

FabricBeer (Thu, 07 Mar 2019 09:44:26 GMT):
@knagware9 how to restore it back

FabricBeer (Thu, 07 Mar 2019 09:44:26 GMT):
@knagware9 how can restore it back

cophey (Thu, 07 Mar 2019 09:58:00 GMT):
Has joined the channel.

knagware9 (Thu, 07 Mar 2019 11:25:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rruJHEpEyu2YiCXPa) @FabricBeer using via same mounting option , and just restrat the container

NadaHamdi (Thu, 07 Mar 2019 11:27:44 GMT):
Hello, I added anew organization to an existing network, joined a channel, installed a chaincode and was able to invoke a read function, however when invoking a write transaction, it shows successful but is never reflected in couchdb..what could be missing?

knagware9 (Thu, 07 Mar 2019 11:33:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yaFZWghakJkRxyjHX) @NadaHamdi may be your transaction invalid thats why block is created and shows succesfull but world state(couch db ) not updated/commited

jaguarg (Thu, 07 Mar 2019 11:36:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cWSvqPNXQnYDeuva8) @dan13 Thx @dan13

jaguarg (Thu, 07 Mar 2019 11:36:51 GMT):
Hi, is there any documentation to create channels dynamically ? Is that achievable ?

NadaHamdi (Thu, 07 Mar 2019 11:41:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TQLPMZXLQGaZZ2FKX) @knagware9 what could make it invalid? as far as syntax/logic it is correctly executed from the organizations within the old/original network and reflects into db, how do I ensure if it is correct in terms of endorsement policy?

HaydenGriffin (Thu, 07 Mar 2019 11:59:25 GMT):
Hi, I hope someone can help me. I am attempting to use fabric CA to register a new user with Fabric GO SDK and I am receiving an authorisation failure whilst registering the user. ``` 2019/03/07 10:53:13 [DEBUG] Received request for /register 2019/03/07 10:53:13 [DEBUG] Caller is using a x509 certificate 2019/03/07 10:53:13 [DEBUG] Checking for revocation/expiration of certificate owned by 'Admin@org1.hf.chainhero.io' 2019/03/07 10:53:13 [DEBUG] DB: Get certificate by serial (7d7a9289527e32cfd779e0ab21ddea14) and aki (81b673cf987e58182c6096616aff9d767012c54c2c609c4860999ff4fe71b702) 2019/03/07 10:53:13 [INFO] 172.20.0.1:47584 POST /register 401 30 "Certificate not found with AKI '81b673cf987e58182c6096616aff9d767012c54c2c609c4860999ff4fe71b702' and serial '7d7a9289527e32cfd779e0ab21ddea14'" ```

HaydenGriffin (Thu, 07 Mar 2019 11:59:58 GMT):
the code I am trying to run is this https://github.com/chainHero/resource-manager

dave.enyeart (Thu, 07 Mar 2019 12:11:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tGFM3BsmJRpFBL7yj) @NadaHamdi Look in peer log to see if there is an invalidation message

NadaHamdi (Thu, 07 Mar 2019 12:13:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=S3sjQ9HsPk8nNgjis) @dave.enyeart yep did so ad found it was related to endorsement policy..had to upgrade the chaincode to include the new org into the write endorsment policy and worked! Thanks man

FabricBeer (Thu, 07 Mar 2019 12:33:30 GMT):
@knagware9 instead of taking backup entire volume can't we take only the ledger

Mindbloq (Thu, 07 Mar 2019 12:57:40 GMT):
Has joined the channel.

Mindbloq (Thu, 07 Mar 2019 12:57:59 GMT):
Hi For interoperability between consortium nodes, what data will be visible to other participating nodes and How do we protect our smart contracts. Is the code also shared if consortium is formed

Mindbloq (Thu, 07 Mar 2019 12:59:19 GMT):
Is it mandatory that the smart contract/data structures need to be same for forming consortium

DawoodJehangir (Thu, 07 Mar 2019 13:18:31 GMT):
Has joined the channel.

DawoodJehangir (Thu, 07 Mar 2019 13:18:53 GMT):
Hello Everyone, Currently I have implemented my own smart contract using fabric-contract-api and have been able to access fabric-shim.Chaincodestub methods by doing like "ctx.stub.AnyMethodFromChaincodestubClass". 1) So is it possible to access other fabric-shim classes (e.g. ClientIdentity, SignedProposal, etc) from context (ctx) variable similarly? 2) Is there any advantage of using fabric-shim instead of fabric-contract-api for developing smart contracts? As I'm working for an organization, I need to be sure if there's significant advantage of using fabric-shim over fabric-contract-api. Because then I will need to change my implementation according to fabric-shim. In my context, "advantage" really means 'more flexibility' and 'added functionality' while developing smart contract.

sudhasakshi (Thu, 07 Mar 2019 13:35:39 GMT):
Hi, I instantiated chaincode in channel but it showing no chaincode instantiated on channel.......................

florianc (Thu, 07 Mar 2019 13:40:32 GMT):
florianc

brockhager (Thu, 07 Mar 2019 14:09:30 GMT):

fabric-install-error.png

brockhager (Thu, 07 Mar 2019 14:10:12 GMT):
A small group at my company is trying to install Fabric on a Windows Server. We got through the pre-req's and we downloaded the samples. We got this certificate error. Anyone know what this is?

brockhager (Thu, 07 Mar 2019 14:10:46 GMT):
Also - if you know where the scripts have moved to, that would help out as well. Thank you!

ajmeraharsh (Thu, 07 Mar 2019 14:13:43 GMT):
@brockhager try `curl -L bitlyURL`

brockhager (Thu, 07 Mar 2019 14:16:16 GMT):
OK I will try that. Thanks!

mfaisaltariq (Thu, 07 Mar 2019 14:28:03 GMT):
2019-03-07 19:26:31.915 PKT [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2019-03-07 19:26:31.916 PKT [common.tools.configtxgen.encoder] NewOrdererGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the orderer group in configtx.yaml 2019-03-07 19:26:31.916 PKT [common.tools.configtxgen.encoder] New -> PANI 008 Error creating channel group: could not create orderer group: failed to create orderer org: 1 - Error loading MSP configuration for org: OrdererOrg: could not load a valid ca certificate from directory /Users/mfaisaltariq/fabric-samples/TRA/crypto-config/ordererOrganizations.tra.com/msp/cacerts: stat /Users/mfaisaltariq/fabric-samples/TRA/crypto-config/ordererOrganizations.tra.com/msp/cacerts: no such file or directory 2019-03-07 19:26:31.917 PKT [common.tools.configtxgen] func1 -> PANI 009 Error creating channel group: could not create orderer group: failed to create orderer org: 1 - Error loading MSP configuration for org: OrdererOrg: could not load a valid ca certificate from directory /Users/mfaisaltariq/fabric-samples/TRA/crypto-config/ordererOrganizations.tra.com/msp/cacerts: stat /Users/mfaisaltariq/fabric-samples/TRA/crypto-config/ordererOrganizations.tra.com/msp/cacerts: no such file or directory

mfaisaltariq (Thu, 07 Mar 2019 14:28:11 GMT):
cannot generate Genesis Block

mfaisaltariq (Thu, 07 Mar 2019 14:28:18 GMT):
Can someone please help

mfaisaltariq (Thu, 07 Mar 2019 14:28:34 GMT):
../bin/configtxgen -profile TRAOrdererGenesis -channelID tra-sys-channel -outputBlock ./channel-artifacts/genesis.block

mfaisaltariq (Thu, 07 Mar 2019 14:28:40 GMT):
this is the command I'm running.

mfaisaltariq (Thu, 07 Mar 2019 14:28:58 GMT):
its kind of urgent plz

jeffgarratt (Thu, 07 Mar 2019 14:29:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xktvtuKTDsg7WATpJ) @JMIsham The configuration is provided in the Consortium definition which is created by the orderer config admin for a set of entities, and then that is used as the basis for a newly created channel's genesis block. These artifacts are usually manifested through the usage of configtxgen tooling and the associated yaml file.

jeffgarratt (Thu, 07 Mar 2019 14:29:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xktvtuKTDsg7WATpJ) @JMIsham The configuration is provided in the Consortium definition which is created by the orderer config admin for a set of entities, and then that is used as the basis for a newly created channel's genesis block. These artifacts are usually manifested through the usage of configtxgen tooling and the associated configxtx.yaml file.

jeffgarratt (Thu, 07 Mar 2019 14:29:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xktvtuKTDsg7WATpJ) @JMIsham The configuration is provided in the Consortium definition which is created by the orderer config admin for a set of entities, and then that is used as the basis for a newly created channel's genesis block. These artifacts are usually manifested through the usage of configtxgen tooling and the associated configtx.yaml file.

jeffgarratt (Thu, 07 Mar 2019 14:33:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=27NBnLRioQm2Jndnp) @brockhager curl -L will follow redirects

jeffgarratt (Thu, 07 Mar 2019 14:38:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg5vejBRhS9TeobYK) @HaydenGriffin See https://github.com/hyperledger/fabric-ca/blob/3c36ab50090578c9a31f0f584a58cfe02576f04c/docs/source/users-guide.rst#troubleshooting

jeffgarratt (Thu, 07 Mar 2019 14:38:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg5vejBRhS9TeobYK) @HaydenGriffin See https://github.com/hyperledger/fabric-ca/blob/3c36ab50090578c9a31f0f584a58cfe02576f04c/docs/source/users-guide.rst#troubleshooting. Specifically number 2, which then gives the remedy as -> "To resolve this error, you must enroll again by repeating step 'a'. This will issue a new ECert which will be stored in the current database."

brockhager (Thu, 07 Mar 2019 15:25:12 GMT):
Thanks @jeffgarratt

jcbombardelli (Thu, 07 Mar 2019 15:30:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=goQbuAPEwGj27pYqE) @YanLIU0822 I am with the same question. And even reading some articles and documentation I did not find anything concrete. Any friend has any tips?

someguy (Thu, 07 Mar 2019 15:41:37 GMT):
Hello guys, is BFT version for ordering service available already?

yacovm (Thu, 07 Mar 2019 15:56:42 GMT):
no

knagware9 (Thu, 07 Mar 2019 16:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tGFM3BsmJRpFBL7yj) @NadaHamdi may be same key is updated in multiple transaction in same block,, check peer log or you can verfiy read write set

knagware9 (Thu, 07 Mar 2019 16:25:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2ugQ2TLPTKyu8ybM5) @FabricBeer yes, your ledger store in file system which stored in var/hyperledger/production, you need to mount to this location for ledger backup

vinaymahore (Thu, 07 Mar 2019 18:47:50 GMT):
Has joined the channel.

vinaymahore (Thu, 07 Mar 2019 18:48:11 GMT):
Can I use PBFT now with fabric?

meiblorn (Thu, 07 Mar 2019 19:42:24 GMT):
Hi, is there any way to debug chaincode events only? peer0.gateway.fundtransfer.cloudbourne.com | 2019-03-07 19:40:32.207 UTC [endorser] ProcessProposal -> ERRO 080 [all-orgs-channel][c22f41e4] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: c22f41e4bf2eecbdd5a8d13e5dbdaa93557858c3812a09d370a698b1a3bdd7a8 When I turn on DEBUG, peers spams a lot of unnecessary messages.

meiblorn (Thu, 07 Mar 2019 20:30:20 GMT):
How to debug this? Mar 07, 2019 8:26:32 PM org.hyperledger.fabric.shim.impl.Handler lambda$handleTransaction$1 SEVERE: [fa00ff5d] Invoke failed. Sending ERROR

meiblorn (Thu, 07 Mar 2019 20:30:26 GMT):
in chaincode container

VinayakBhat (Thu, 07 Mar 2019 21:48:03 GMT):
Hi guys,

VinayakBhat (Thu, 07 Mar 2019 21:51:21 GMT):
hi guys, I wanted to check the number of transactions per second on my docker environment, So, I did that by writing a bash script in the cli container. It turned out to be only 10 Transactions Per Second. Is the sole reason for this is Docker container or am I going wrong somewhere else?

ygnr (Thu, 07 Mar 2019 23:43:48 GMT):
How are you guys testing Fabric network locally on a laptop. Lets say a use-case requires 7 participants to run their nodes and have respective actions. Is there any light weight option to run 7 nodes to simulate network locally.

dave.enyeart (Fri, 08 Mar 2019 00:20:11 GMT):
@ygnr Start with the build your first network tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html It starts docker containers for an orderer and four peers (two orgs with two peers each) on your laptop. You can extend it as needed.

dave.enyeart (Fri, 08 Mar 2019 00:23:08 GMT):
@VinayakBhat I suspect the bottleneck is your client... if it takes the client 100ms to get an endorsement and submit it to ordering, then you would see 10 tps. You would need to drive the load using multiple parallel clients to get respectable tps through the network.

dave.enyeart (Fri, 08 Mar 2019 00:23:08 GMT):
@VinayakBhat I suspect the bottleneck is your client... if it takes the client 100ms to get an endorsement and submit it to ordering, and you are doing that in a single loop, then you would see 10 tps. You would need to drive the load using multiple parallel clients to get respectable tps through the network.

ygnr (Fri, 08 Mar 2019 01:21:00 GMT):
@dave.enyeart I am familiar with that. As we extend to multiple nodes, it takes lot of resources from docker. If I have 7 organizations, running so many docker container is killing my laptop. So checking if there is any light weight solution

iamsteveng (Fri, 08 Mar 2019 02:29:53 GMT):
Has left the channel.

Mindbloq (Fri, 08 Mar 2019 04:15:16 GMT):
I have been posting this question. Can somebody respond pls.. For interoperability between consortium nodes, what data will be visible to other participating nodes and How do we protect our smart contracts. Is the code also shared if consortium is formed Is it mandatory that the smart contract/data structures need to be same for forming consortium

SrinivasBitla (Fri, 08 Mar 2019 05:30:34 GMT):
hi..

SrinivasBitla (Fri, 08 Mar 2019 05:30:39 GMT):
how to query entire ledger?

SrinivasBitla (Fri, 08 Mar 2019 05:30:57 GMT):
associated to chaincode

luckforzhang (Fri, 08 Mar 2019 05:43:30 GMT):
I believe I have saw a method called `QueryAll()` at somewhere, maybe you could try search it in your SDK

SrinivasBitla (Fri, 08 Mar 2019 05:46:20 GMT):
ok

SrinivasBitla (Fri, 08 Mar 2019 05:47:29 GMT):
my chaincode supports only these operations

SrinivasBitla (Fri, 08 Mar 2019 05:47:30 GMT):
peer chaincode queryAll Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade|list.

luckforzhang (Fri, 08 Mar 2019 05:59:56 GMT):
this is cli command, not sdk...

SrinivasBitla (Fri, 08 Mar 2019 06:00:11 GMT):
ok

JMIsham (Fri, 08 Mar 2019 06:36:13 GMT):
hi everyone, does fabric-ca-client supports node 11??

sudhasakshi (Fri, 08 Mar 2019 06:40:32 GMT):
hi while iam creating channel i am getting Error: error unmarshaling Envelope: unexpected EOF

SahithiDyavarashetti (Fri, 08 Mar 2019 06:42:34 GMT):
ServerHandshake -> ERRO 008 TLS handshake failed with error remote error: tls: bad certificate {"server": "Orderer", "remote address": "192.168.0.77:38140"}

SahithiDyavarashetti (Fri, 08 Mar 2019 06:44:09 GMT):
Can anyone help me to resolve the error

SahithiDyavarashetti (Fri, 08 Mar 2019 06:44:46 GMT):
I found the above error in docker logs when peer of different organisation tries to fetch the channel created by another organisation

VinayakBhat (Fri, 08 Mar 2019 06:51:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pFcY8CPwwBijpc4LA) @dave.enyeart Okay thanks

luckforzhang (Fri, 08 Mar 2019 07:24:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nsDE7QmHEnHKqmdde) @SahithiDyavarashetti I am not sure if that's a valid operation, but your error msg shows that you are using wrong tls cert. If your organisations run well and works, do not change the tls cert at once. Try opening a new cli container to do such thing,

luckforzhang (Fri, 08 Mar 2019 07:30:01 GMT):
Quoting @dave.enyeart ```Start with the build your first network tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html It starts docker containers for an orderer and four peers (two orgs with two peers each) on your laptop. You can extend it as needed.``` @sudhasakshi You must have missed some steps at the beginning, try roll back and check configs or start a new one. The error is probably casued by using wrong args or config when run `configtxgen` to create a new `*.tx`.

lidengjia (Fri, 08 Mar 2019 07:38:23 GMT):
Has joined the channel.

Mindbloq (Fri, 08 Mar 2019 08:59:42 GMT):
Hello. For interoperability between consortium nodes, what data will be visible to other participating nodes and How do we protect our smart contracts. Is the code also shared if consortium is formed Is it mandatory that the smart contract/data structures need to be same for forming consortium

florianc (Fri, 08 Mar 2019 09:14:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6Q78s3R4Z37noeQXT) @Mindbloq Visible data: everything, except if you use private data collections. Protect smart contract: What do you mean? Code is shared between all peers (I think) And of course, everything needs to be the same to form a consortium. Would not make sense if not

florianc (Fri, 08 Mar 2019 09:14:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6Q78s3R4Z37noeQXT) @Mindbloq Visible data: everything, except if you use private data collections. Protect smart contract: What do you mean? Code is shared between all peers (I think) And of course, everything needs to be the same to form a consortium. Would not make sense if not (I believe)

hexiaohu (Fri, 08 Mar 2019 10:07:43 GMT):
Has joined the channel.

Mahesh-Raj (Fri, 08 Mar 2019 10:27:32 GMT):
Any experts here who have done load balancing for multi-host Fabric Orderers? What did you use `haproxy` or `nginx`? Is there a sample available?

yacovm (Fri, 08 Mar 2019 11:03:11 GMT):
please don't use any kind of load balancer for fabric

yacovm (Fri, 08 Mar 2019 11:03:37 GMT):
if you really want to put a proxy in front of fabric, use something that has TLS passthrough

yacovm (Fri, 08 Mar 2019 11:03:53 GMT):
but there is no reason to use a load balancer just for the sake of a load balancer

Mahesh-Raj (Fri, 08 Mar 2019 11:31:22 GMT):
@yacovm Any sample for TLS passthrough? Have you used it?

Mr.Reddington (Fri, 08 Mar 2019 12:05:59 GMT):
Hi there Experts. I'm new in hyperledger and I need some help. Currently I'm running the Node SDK provided from fabric-samples/balance-transfer. I'm running the app correctly and it works. By default in the file docker-compose.yaml cames without the Couch DB, you have to add it to the file. I added the couch DB to the file and it works. Know I'm trying to add the Cli interpreter to the same file (docker-compose.yaml) but it finishes wit the error : WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string. ERROR: The Compose file '././artifacts/docker-compose.yaml' is invalid because: Unsupported config option for services.peer1.org2.example.com: 'cli'

Mr.Reddington (Fri, 08 Mar 2019 12:06:50 GMT):
Anyone can tell me how to add the Cli to the docker-compose.yaml file?

ParthKaloliya (Fri, 08 Mar 2019 12:27:04 GMT):
Hi,

ParthKaloliya (Fri, 08 Mar 2019 12:29:37 GMT):
I am trying to invoke through the node SDK but i am not able to invoke the query so i researched about that so i came to know that i have to pass client and root certificates and key file to orderer and peers so I pass the path of the same but now i got an error of TLS handshake.. I am doing in single host but i got that error i am not able to find satisfactory answer so can anyone please give me suggestion or can anyone give me solution ??

ParthKaloliya (Fri, 08 Mar 2019 12:33:33 GMT):
Hi, I am trying to invoke through the node SDK but i am not able to invoke the query so i researched about that so i came to know that i have to pass client and root certificates and key file to orderer and peers so I pass the path of the same but now i got an error of TLS handshake.. I am doing in single host but i got that error i am not able to find satisfactory answer so can anyone please give me suggestion or can anyone give me solution ?? I am putting my orderer-base.yaml file and I am putting one of my peer file so that you can get more idea - Orderer-base version: '2' services: orderer: image: hyperledger/fabric-orderer:latest environment: - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${CORE_PEER_NETWORKID} - ORDERER_HOME=/var/hyperledger/orderer # - ORDERER_GENERAL_LOGLEVEL=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_LISTENPORT=7050 - ORDERER_GENERAL_LEDGERTYPE=ram - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/msp - CONFIGTX_ORDERER_ORDERERTYPE=solo - CONFIGTX_ORDERER_BATCHSIZE_MAXMESSAGECOUNT=${CONFIGTX_ORDERER_BATCHSIZE_MAXMESSAGECOUNT} - CONFIGTX_ORDERER_BATCHTIMEOUT=${CONFIGTX_ORDERER_BATCHTIMEOUT} - CONFIGTX_ORDERER_ADDRESSES=[127.0.0.1:7050] # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/tls/ca.crt] # - ORDERER_TLS_CLIENTAUTHREQUIRED=${ORDERER_TLS_CLIENTAUTHREQUIRED} - ORDERER_GENERAL_TLS_CLIENTAUTHREQUIRED=true - ORDERER_TLS_CLIENTROOTCAS_FILES=/var/hyperledger/users/Admin@example.com/tls/ca.crt - ORDERER_TLS_CLIENTCERT_FILE=/var/hyperledger/users/Admin@example.com/tls/client.crt - ORDERER_TLS_CLIENTKEY_FILE=/var/hyperledger/users/Admin@example.com/tls/client.key working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer command: orderer volumes: - ../network-config/:/var/hyperledger/configs - ../crypto-config/ordererOrganizations/example.com/users:/var/hyperledger/users - ../network-config/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - Peer-base peer0.adminloanchannel.example.com: container_name: peer0.adminloanchannel.example.com extends: file: peer-base.yaml service: peer-base environment: - CORE_PEER_ID=peer0.adminloanchannel.example.com - CORE_PEER_ADDRESS=peer0.adminloanchannel.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.adminloanchannel.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.adminloanchannel.example.com:7051 - CORE_PEER_LOCALMSPID=AdminLoanChannel2MSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb.peer0.adminloanchannel.example.com:5984 #TLS-CERTS - CORE_PEER_TLS_CLIENTROOTCAS_FILE=/etc/hyperledger/fabric/users/Admin@adminloanchannel.example.com/tls/ca.crt - CORE_PEER_TLS_CLIENTCERT_FILE=/etc/hyperledger/fabric/users/Admin@adminloanchannel.example.com/tls/client.crt - CORE_PEER_TLS_CLIENTKEY_FILE=/etc/hyperledger/fabric/users/Admin@adminloanchannel.example.com/tls/client.key volumes: - /var/run/:/host/var/run/ - ../crypto-config/peerOrganizations/adminloanchannel.example.com/peers/peer0.adminloanchannel.example.com/msp:/etc/hyperledger/fabric/msp - ../crypto-config/peerOrganizations/adminloanchannel.example.com/peers/peer0.adminloanchannel.example.com/tls:/etc/hyperledger/fabric/tls - peer0.adminloanchannel.example.com:/var/hyperledger/production - ../crypto-config/peerOrganizations/adminloanchannel.example.com/users:/etc/hyperledger/fabric/users ports: - 13051:7051 - 13053:7053 In orderer file i put ORDERER_GENERAL_TLS_ENABLED=true and ORDERER_GENERAL_TLS_CLIENTAUTHREQUIRED=true In peer file i put CORE_PEER_TLS_ENABLED=true and CORE_PEER_TLS_CLIENTAUTHREQUIRED=true

dave.enyeart (Fri, 08 Mar 2019 12:40:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gim2kx9TJTz2Xhbex) @SrinivasBitla GetStateByRange() - pass empty string for startKey and endKey to get unbounded query of entire chaincode namespace.

dave.enyeart (Fri, 08 Mar 2019 12:40:21 GMT):
If you have a lot of data, I'd recommend page the results with GetStateByRangeWithPagination()

kpnavadiya (Fri, 08 Mar 2019 13:09:22 GMT):
Has joined the channel.

kpnavadiya (Fri, 08 Mar 2019 13:09:54 GMT):
Hi

kpnavadiya (Fri, 08 Mar 2019 13:09:54 GMT):
Could not load TLS certificate with BCCSP: Could not find matching private key for SKI: Failed getting key for SKI [[100 116 163 88 44 222 251 117 107 155 194 213 74 253 133 62 166 236 52 219 47 2 103 26 13 241 144 180 150 239 187 23]]: Key with SKI 6474a3582cdefb756b9bc2d54afd853ea6ec34db2f02671a0df190b496efbb17 not found in /ca/msp/keystore

kpnavadiya (Fri, 08 Mar 2019 13:09:54 GMT):
Could not load TLS certificate with BCCSP: Could not find matching private key for SKI: Failed getting key for SKI [[100 116 163 88 44 222 251 117 107 155 194 213 74 253 133 62 166 236 52 219 47 2 103 26 13 241 144 180 150 239 187 23]]: Key with SKI 6474a3582cdefb756b9bc2d54afd853ea6ec34db2f02671a0df190b496efbb17 not found in /ca/msp/keystore``` This erro come when i deploye fabric-CA for particuler org. where can i find this SKI Key?

SrinivasBitla (Fri, 08 Mar 2019 13:28:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZnCCv7Rm9s4ohJvsb) @dave.enyeart thank you.

yacovm (Fri, 08 Mar 2019 13:53:51 GMT):
> @yacovm Any sample for TLS passthrough? Have you used it? @Mahesh-Raj no.

AjeetKumar1 (Fri, 08 Mar 2019 15:00:02 GMT):
Has joined the channel.

AjeetKumar1 (Fri, 08 Mar 2019 15:01:11 GMT):
how would i get the KEYSTORE and NETWORKPROFILE in Hyperledger fabric and replace in .env file

dheerajsuvarna (Fri, 08 Mar 2019 15:22:09 GMT):
Has joined the channel.

cgorenflo (Fri, 08 Mar 2019 15:55:20 GMT):
Has joined the channel.

ruairih (Fri, 08 Mar 2019 16:38:58 GMT):
is it possible to recover a network from a crashed SOLO orderer? cant a new network be created and somehow seeded with the old ledger?

hypere (Fri, 08 Mar 2019 23:03:43 GMT):
I have encounter `fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x43 pc=0x345b39345d]` error when trying to create peer containers using 1.4.0. Any idea?

haardikkk (Sat, 09 Mar 2019 01:22:15 GMT):
Can someone clarify the difference between a consortium and a channel for me please?

ParthKaloliya (Sat, 09 Mar 2019 05:51:10 GMT):
@SrinivasBitla you can query entire ledger by making a function readAllData (this is my function you can name whatever you want). I am putting the code here so that you can get more idea func (s *SmartContract) readAllPayment(APIstub shim.ChaincodeStubInterface, args []string) sc.Response { startKey := "1" endKey := "999" resultsIterator, err := APIstub.GetStateByRange(startKey, endKey) if err != nil { return shim.Error(err.Error()) } defer resultsIterator.Close() // buffer is a JSON array containing QueryResults var buffer bytes.Buffer buffer.WriteString("[") bArrayMemberAlreadyWritten := false for resultsIterator.HasNext() { queryResponse, err := resultsIterator.Next() if err != nil { return shim.Error(err.Error()) } // Add comma before array members,suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- queryAllTuna:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) } and if you want to query so the query would look like : peer chaincode query -C your-channel-name -n your-chaincode-name -c '{"Args":["readAllPayment"]}'

ParthKaloliya (Sat, 09 Mar 2019 05:55:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KipGYkyuzsqT2AEkN) @yacovm If you have any kind of idea of TLS so can you please help me for the same I am facing issue of TLS handshake and I raised a question here you can find my sample code here also so you can get idea what exactly i want to ask

ParthKaloliya (Sat, 09 Mar 2019 06:02:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FfJ6ZCAXNePLYue84) @Mr.Reddington I am providing my cli file please compare it with my code version: '2' networks: byfn: services: cli: container_name: cli image: hyperledger/fabric-tools:latest tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # - CORE_LOGGING_LEVEL=DEBUG # - CORE_LOGGING_LEVEL=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.adminloanchannel.example.com:7051 - CORE_PEER_LOCALMSPID=AdminLoanChannel2MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/mortgage.example.com/peers/peer0.mortgage.example.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/mortgage.example.com/peers/peer0.mortgage.example.com/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/mortgage.example.com/peers/peer0.mortgage.example.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/mortgage.example.com/users/Admin@mortgage.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ../chaincode/:/opt/gopath/src/github.com/chaincode - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ../scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/ - ../network-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/network-config networks: - byfn you get an error IMAGE_TAG so you can type latest as i type and I made a separate cli file so when i am doing my network up so i have to up CLI container separately.

cn1adil (Sat, 09 Mar 2019 08:51:21 GMT):
Has joined the channel.

cn1adil (Sat, 09 Mar 2019 08:53:02 GMT):
I can't seem to find the solution while running the first network, please help! $ ./byfn.sh -m generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of ' 10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /d/BlockChainHyperLedger/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /d/BlockChainHyperLedger/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## CONSENSUS_TYPE=solo + '[' solo == solo ']' + configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -output Block ./channel-artifacts/genesis.block 2019-03-06 13:15:48.418 IST [common/configtx/tool] main -> INFO 001 Loading conf iguration 2019-03-06 13:15:48.444 IST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 21 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka]' has invalid keys: Capabilities, Policies * 'Profiles[SampleDevModeKafka].Application' has invalid keys: Capabilities, Pol icies * 'Profiles[SampleDevModeKafka].Application.Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Orderer' has invalid keys: Capabilities, Policie s * 'Profiles[SampleDevModeKafka].Orderer.Organizations[0]' has invalid keys: Poli cies * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities, Policie s * 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: Poli cies * 'Profiles[TwoOrgsChannel].Application.Organizations[1]' has invalid keys: Poli cies * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities, Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0 ]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[1 ]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities, Poli cies * 'Profiles[TwoOrgsOrdererGenesis].Orderer.Organizations[0]' has invalid keys: P olicies + res=1 + set +x Failed to generate orderer genesis block...

ParthKaloliya (Sat, 09 Mar 2019 08:55:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ocksHL4d5aFwSyutu) @cn1adil make sure you have created folder named "channel-artifacts" and "crypto-config" in not so first create these folder and run the network and if the folder already exist so first delete both of the folder and re-create it with the same name and re-run the network

cn1adil (Sat, 09 Mar 2019 09:01:34 GMT):
Okay, I deleted the folders, created them again and executed the ./byfn.sh generate But I am still getting this error..

cn1adil (Sat, 09 Mar 2019 09:02:22 GMT):
just fyi, I followed this tutorial : https://medium.com/coinmonks/step-by-step-towards-hyperledger-fabric-part-1-c867fc5fe18

ParthKaloliya (Sat, 09 Mar 2019 09:18:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=286ZpDEjHTBi4i79K) @cn1adil please follow: https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html .. They explained in very organized way and if you get the same error so ping once. we'll look into that

ParthKaloliya (Sat, 09 Mar 2019 12:33:10 GMT):
Which are the root certificates and which are the client certificates to define the CA and to work with the NodeSDK when TLS enabled is set true.. Can anyone please help me with this

ParthKaloliya (Sat, 09 Mar 2019 12:33:48 GMT):
In single host

cn1adil (Sat, 09 Mar 2019 15:09:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ki29zPHD2JLsALzAG) @ParthKaloliya Hello, I followed the link but still I am getting the same error, what do I do now? :/

Nihaal 1 (Sun, 10 Mar 2019 07:59:48 GMT):
Has joined the channel.

Nihaal 1 (Sun, 10 Mar 2019 08:02:51 GMT):
I have problems instantiating a chaincode. I am using the basic-network from the fabric-samples. No problem installing the chaincode but when I try to initialize it, It gives me this error API error (400): OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"chaincode\": executable file not found in $PATH"

klkumar369 (Sun, 10 Mar 2019 10:39:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZJutksNvqnuR9zLTm) @cn1adil Put configtxgen file on the same file path where you run byfn.sh and try.

KrishnaVatsalTyagi (Sun, 10 Mar 2019 21:16:59 GMT):
Hi question for which i have been searching the answer. What is the number of channel that can be created withing hyperledger?

KrishnaVatsalTyagi (Sun, 10 Mar 2019 21:17:35 GMT):
#channels

KrishnaVatsalTyagi (Sun, 10 Mar 2019 21:17:43 GMT):
#fabric-questions

dpade 1 (Sun, 10 Mar 2019 23:53:47 GMT):
Has joined the channel.

dpade 1 (Sun, 10 Mar 2019 23:56:17 GMT):

Persistent mongo.png

FabricBeer (Mon, 11 Mar 2019 04:24:38 GMT):
@ParthKaloliya hey client tls authentication is required in the cli?

ParthKaloliya (Mon, 11 Mar 2019 04:48:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZJutksNvqnuR9zLTm) @cn1adil Can you please share your code ?? If you dont mind

ParthKaloliya (Mon, 11 Mar 2019 04:49:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a4biJqxw6QYizeiod) @FabricBeer Yes, I enabled in the CLI but is it wrong to put true in CLI

keshavrajput (Mon, 11 Mar 2019 04:54:38 GMT):
What command is used to retrieve the certificates of a given user? 1. composer identity request 2. composer identity issue 3.composer identity bind 4.composer identity list

keshavrajput (Mon, 11 Mar 2019 05:09:40 GMT):
@ParthKaloliya

keshavrajput (Mon, 11 Mar 2019 05:09:44 GMT):
What command is used to retrieve the certificates of a given user? 1. composer identity request 2. composer identity issue 3.composer identity bind 4.composer identity list

keshavrajput (Mon, 11 Mar 2019 05:10:02 GMT):
@klkumar369 What command is used to retrieve the certificates of a given user? 1. composer identity request 2. composer identity issue 3.composer identity bind 4.composer identity list

ccj9707 (Mon, 11 Mar 2019 05:32:06 GMT):
Has joined the channel.

keshavrajput (Mon, 11 Mar 2019 05:32:06 GMT):
What happens when “composer network upgrade” is run? 1-Installs the new chaincode on peers and restarts the blockchain network. 2-Installs the new chaincode on the peers without re-starting the blockchain network. 3-Instructs peers to use new chaincode and restarts the blockchain network. 4-Instructs peers to use new chaincode without restarting the blockchain network.

keshavrajput (Mon, 11 Mar 2019 05:33:06 GMT):
@ccj9707 @ParthKaloliya What happens when “composer network upgrade” is run? 1-Installs the new chaincode on peers and restarts the blockchain network. 2-Installs the new chaincode on the peers without re-starting the blockchain network. 3-Instructs peers to use new chaincode and restarts the blockchain network. 4-Instructs peers to use new chaincode without restarting the blockchain network.

ccj9707 (Mon, 11 Mar 2019 05:33:06 GMT):
@ParthKaloliya @ParthKaloliya Hi. I have a question about this link (https://hyperledger-fabric.readthedocs.io/en/release-1.4/smartcontract/smartcontract.html). If you can register multiple smart contracts in a single chain of code, how is that done? I could not find examples and methods. Is it the way to register multiple methods in the Invoke function? I want to register multiple smart contracts in one chain code without using the InvokeChaincode function. Thank you.

ccj9707 (Mon, 11 Mar 2019 05:33:06 GMT):
@ParthKaloliya @ParthKaloliya Hi. I have a question about this link (https://hyperledger-fabric.readthedocs.io/en/release-1.4/smartcontract/smartcontract.html). If you can register multiple smart contracts in a single chainCode, how is that done? I could not find examples and methods. Is it the way to register multiple methods in the Invoke function? I want to register multiple smart contracts in one chain code without using the InvokeChaincode function. Thank you.

jalfaro (Mon, 11 Mar 2019 08:24:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W7tMC9vpmPR239n6j) @ccj9707 Hi @ParthKaloliya, I have the same doubt as you and I guess that it can be done adding a "Contract" implementation by smart contract in the "chaincode.js" or "papercontract.js". I have to check.

FabricBeer (Mon, 11 Mar 2019 08:28:52 GMT):
hello, why it throws this error while fetching channel --> Error: can't read the block: &{FORBIDDEN}

DawoodJehangir (Mon, 11 Mar 2019 09:08:24 GMT):
Apart from BYFN example, can anyone recommend another two ORG fabric network example (most preferably with one peer each)?

florianc (Mon, 11 Mar 2019 09:12:19 GMT):
Hello. All the links about the core API are dead here (https://openblockchain.readthedocs.io/en/latest/API/CoreAPI/#to-set-up-swagger-ui). Is it deprecated? If not, can someone provide the links?

KYLeung (Mon, 11 Mar 2019 09:25:38 GMT):
Has joined the channel.

KYLeung (Mon, 11 Mar 2019 09:25:48 GMT):
Hi everyone, I'm trying to run Hyperledger Fabric's byfn on Amazon lightsail instances but I'm facing some issue in starting the network. https://stackoverflow.com/questions/55098242/unable-to-run-byfn-sh-up Any help is appreciated

KYLeung (Mon, 11 Mar 2019 09:25:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sK4cTKxL9mstEJJ8a) I was using instance with 512 MB RAM, 1 vCPU, 20 GB SSD. After upgrading it to 8GB RAM, 2 vCPU, 160 GB SSD, byfn runs perfectly. Currently I'm doing it trial and error, finding the minium requirements

Luxii (Mon, 11 Mar 2019 09:44:59 GMT):
why do i get this error ` details: 'access denied: channel [mychannel] creator org [AbcMSP]'` while invoking a transaction from one user

NadaHamdi (Mon, 11 Mar 2019 10:11:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LAeLhgqkbAYtnWqK5) @DawoodJehangir I found this useful https://medium.com/quillhash/script-to-set-up-hyperledger-fabric-composer-multi-organization-network-96bc5f7ed2f5

someguy (Mon, 11 Mar 2019 10:15:54 GMT):
Hello good moorning guys, is Fabric Python-SDK stable at the moment?

Tommy109 (Mon, 11 Mar 2019 10:18:31 GMT):
is anyone aware of any projects which use both hyperledger fabric and stellar?

DawoodJehangir (Mon, 11 Mar 2019 10:22:31 GMT):
@NadaHamdi Thanks. I will check that out.

JorgeNavarro (Mon, 11 Mar 2019 12:06:52 GMT):
Has joined the channel.

javapriyan (Mon, 11 Mar 2019 12:15:31 GMT):
Aanyhelp here : https://chat.hyperledger.org/channel/fabric?msg=rk9eKoMz4KGYu695Y

garima (Mon, 11 Mar 2019 12:23:37 GMT):
Can anyone help me with this error

garima (Mon, 11 Mar 2019 12:23:38 GMT):
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown

Mahesh-Raj (Mon, 11 Mar 2019 12:54:55 GMT):
Anyone using a proxy server for multiple orderers? with TLS passthrough capabilities?

mastersingh24 (Mon, 11 Mar 2019 15:43:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aCaXY57tbt6RvACuG) @Mahesh-Raj I assume you mean non-terminating proxies? Or at least not terminating TLS in the proxy?

mastersingh24 (Mon, 11 Mar 2019 15:44:28 GMT):
If so, we've used real load balancers like Citrix using Layer 3 ssl_bridge mode

mastersingh24 (Mon, 11 Mar 2019 15:45:37 GMT):
also used tcp proxy and also attempted to use things like Envoy with SNI-based routing

Mahesh-Raj (Mon, 11 Mar 2019 16:03:17 GMT):
@mastersingh24 can you share a sample?

Mahesh-Raj (Mon, 11 Mar 2019 16:03:25 GMT):
that would be really good

nikhilagrawal6264 (Mon, 11 Mar 2019 16:21:11 GMT):
Has joined the channel.

JohnAllen (Mon, 11 Mar 2019 17:51:06 GMT):
Has joined the channel.

JohnAllen (Mon, 11 Mar 2019 17:51:36 GMT):
Hi Group.. I'm fresh in.. just installed Fabric... having trouble running the javascript fabcar .. ie it says chaincode doesnt exist.. Hi Group.. I'm fresh in.. just installed Fabric... having trouble running the javascript fabcar .. ie it says chaincode doesnt exist.. Hi Group.. I'm fresh in.. just installed Fabric... having trouble running the javascript fabcar .. ie it says chaincode doesnt exist..

JohnAllen (Mon, 11 Mar 2019 17:51:44 GMT):
oops.. sorry for repeats!

JohnAllen (Mon, 11 Mar 2019 17:52:19 GMT):
Hi Group.. I'm fresh in.. just installed Fabric... having trouble running the javascript fabcar .. ie it says chaincode doesnt exist..

JohnAllen (Mon, 11 Mar 2019 17:54:00 GMT):
what terminal command do i plug in to tell the version?

jeka_gompa (Mon, 11 Mar 2019 19:19:47 GMT):
Hi guys, I have a question here, in all the examples I saw till now, there is only one orderer node for one channel . Is there any way to configure the fabric network, so that several orderer nodes take the transaction load of a channel?

jeka_gompa (Mon, 11 Mar 2019 19:19:47 GMT):
Hi guys, I have a question here, in all the examples I saw till now, there is only one orderer node for one channel . Is there any way to configure the fabric network, so that several orderer nodes take the transaction load of a channel? Do you think is risky to have only one orderer per channel that can be compromised?

AdamCzarnocki (Mon, 11 Mar 2019 19:50:16 GMT):
Has joined the channel.

AdamCzarnocki (Mon, 11 Mar 2019 19:50:44 GMT):
Hey, I got 2 questions asked by my business partner for which I do not have a clear answer. 1.How Hyperledger Fabric ensures data security in a longer period of time? I mean, how can I re-encrypt existing data with a longer key? Is it possible to migrate entire database in few years from now when we may need some better security for historical data? 2. How Hyperledger Fabric can be scaled? What size of data storage can be handled by Hyperledger? I would be really thankful if you can help me out.

forumdata (Mon, 11 Mar 2019 19:53:57 GMT):
Has joined the channel.

forumdata (Mon, 11 Mar 2019 19:55:08 GMT):
Hello I successfully downloaded VSCode and the IBM blockchain plugin but after some tweaking uninstalled and reinstalled the IBM blockchain plugin but this time it gives the error

forumdata (Mon, 11 Mar 2019 19:55:16 GMT):
Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=3.0.0, --runtime=electron, --dist-url=https://atom.io/download/electron, --update-binary" return code 1. Please ensure that you have node and npm installed

forumdata (Mon, 11 Mar 2019 19:55:30 GMT):
Can someone guide as to how to resolve this error..thank you

MarioPissardo (Mon, 11 Mar 2019 20:32:46 GMT):
Has joined the channel.

hybridNeo (Mon, 11 Mar 2019 20:59:22 GMT):
does anyone know how to setup REST Api with Fabric-samples/byfn

ccj9707 (Tue, 12 Mar 2019 00:10:51 GMT):
@jalfaro Further investigation, This functionality can be implemented through the "Contract namespace". I'm using the golang sdk and it does not seem to support the "Contract namespace". (https://lists.hyperledger.org/g/fabric/topic/contract_namespace_concept/30224059?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,30224059)

ygnr (Tue, 12 Mar 2019 00:53:31 GMT):
ygnr

ygnr (Tue, 12 Mar 2019 00:56:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8DfXgxXm8EzBv45NC) @dave.enyeart Any suggestions here?

ygnr (Tue, 12 Mar 2019 00:56:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8DfXgxXm8EzBv45NC) Any suggestions here?

freesam02 (Tue, 12 Mar 2019 01:36:24 GMT):
Has joined the channel.

freesam02 (Tue, 12 Mar 2019 01:36:35 GMT):
Hi is there any query function's paramenter for hex flag on fabric-java sdk?

githubcpc (Tue, 12 Mar 2019 02:05:38 GMT):
I want to use metrics in my HLF v1.4. Is there any help document or demo? I have already read the fabric doc, https://hyperledger-fabric.readthedocs.io/en/release-1.4/operations_service.html, but I can't understand how to use metrics .

githubcpc (Tue, 12 Mar 2019 02:57:24 GMT):

7.png

githubcpc (Tue, 12 Mar 2019 02:58:45 GMT):
When I curl http://localhost:8888/metrics ,I got the error: curl: (56) Recv failure: Connection reset by peer

KyunghoKim (Tue, 12 Mar 2019 03:11:02 GMT):
Has joined the channel.

githubcpc (Tue, 12 Mar 2019 03:17:08 GMT):
I use 0.0.0.0 instead of 127.0.0.1. This is work for me .

AkhilKura (Tue, 12 Mar 2019 07:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GjYeDhD2iEstSfCGW) @githubcpc can we modify core.yaml file in container

duy3991 (Tue, 12 Mar 2019 07:09:19 GMT):
Hi all, I have deploy business network but error. Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network failed to install on 1 or more peers: Response from attempted peer comms was an error: Error: Failed to connect before the deadline Response from attempted peer comms was an error: Error: Failed to connect before the deadline Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed Please help!!

duy3991 (Tue, 12 Mar 2019 07:09:39 GMT):

Clipboard - March 12, 2019 2:09 PM

AndresMartinezMelgar.itcl (Tue, 12 Mar 2019 07:29:37 GMT):
Hi, someone knows a tutorial/video to learn to use java sdk? I have deploy my network in 3 pc, 4 orgs with 2 peer each one, and 1 channel, kafka orderer. Next step is know how can i connect my components(peer, orderer, channel....) with sdk thx for any help

alphaschumann (Tue, 12 Mar 2019 07:29:42 GMT):
Has joined the channel.

alphaschumann (Tue, 12 Mar 2019 07:31:46 GMT):
Hi All. Good to be a part of this community. I am quite new to Hyperledger Fabric and I was trying to think the right implementation of the HL architecture in a real world scenario so that I can understand things on a fundamental level. Needed your help for some clarity if you dont mind. Use-Case : Imagine there is a data packet with three field. 1st and 3rd field are source and destination address and should remain the same throughout the life cycle of the data from the point it gets generated till it gets delivered. The 2nd field is a value that denotes the current location / could be modified. Imagine if this data packet passes through multiple hubs and each hub is only allowed to update the second field. How can such a basic system be implemented in Hyperledger Fabric where : (Given that each data packet has a unique DataID and each hub has unique HubID) 1. Hyperledger should register the data packet and at each hub/processing stages it should check if the integrity of the 1st and 3rd field is kept or not 2. Given a data ID, the Hyperledger network provides confirmation if the data packet is compromised or not? And if compromised at which system this was compromised.

alphaschumann (Tue, 12 Mar 2019 07:40:33 GMT):
I understand all the components of HL Fabric architecture and their functionalities but this is my first step of moving from theory to practical implementation beyond sample apps

SatheeshNehru (Tue, 12 Mar 2019 07:49:16 GMT):
@AndresMartinezMelgar.itcl https://github.com/IBM/blockchain-application-using-fabric-java-sdk check this sample

AndresMartinezMelgar.itcl (Tue, 12 Mar 2019 07:58:46 GMT):
@SatheeshNehru Thank you, I had already seen that example. I have seen how it works, but when you have the hyperledger network in several VMs, the procedure is the same? I have not found examples that use the sdk (apart from the official documentation) and both are local. Do you know an example that work with more than one node? ):

chill37 (Tue, 12 Mar 2019 08:07:53 GMT):
Hi, is there an example where it uses ORGANIZATION UNIT or IDENTITY/ANONYMITY instead of MSPROLE for MSP Classification? I would like to know how to approach the data

githubcpc (Tue, 12 Mar 2019 09:15:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F6PeFjbisAEA5fTsp) @AkhilKura Yes。$ docker cp [docker container id]:/etc/hyperledger/fabric/core.yaml /root $ vi /root/core.yaml $ docker cp /root/core.yaml [docker container id]:/etc/hyperledger/fabric $ docker restart [docker container id]

AkhilKura (Tue, 12 Mar 2019 09:19:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qcnx2ex5jkMLGtTBv) @githubcpc have u used any TLS for connecting the nodes ?

FabricBeer (Tue, 12 Mar 2019 09:34:46 GMT):
@githubcpc Why and when core.yaml file creates in containers?

Mindbloq (Tue, 12 Mar 2019 10:25:06 GMT):
how to we achieve interoperability between different DLT networks using hyperledger fabric. How do we exchange information between different DLT deployments

FabricBeer (Tue, 12 Mar 2019 10:57:35 GMT):
core.yaml

DLTChacha (Tue, 12 Mar 2019 10:59:36 GMT):
Has joined the channel.

Tommy109 (Tue, 12 Mar 2019 11:01:58 GMT):
hi all, attempting to run basic network from fabric samples. but when i run start.sh it is saying the docker container is not running. I have tried changing the FABRIC_START_TIMEOUT variable but no luck. any suggestions?

FabricBeer (Tue, 12 Mar 2019 11:11:06 GMT):
@Tommy109 try running with fabcar startFabric.sh

Tommy109 (Tue, 12 Mar 2019 11:15:34 GMT):
same outcome. in fabcar startfabric.sh it changes dir to basic network and runs the same start.sh file. why would the outcome be any different here?

Tommy109 (Tue, 12 Mar 2019 11:15:34 GMT):
same outcome. in fabcar startfabric.sh it changes dir to basic network and runs the same start.sh file. why would the outcome be any different here? @FabricBeer

SatyamMishra (Tue, 12 Mar 2019 11:24:54 GMT):
Has joined the channel.

FabricBeer (Tue, 12 Mar 2019 11:30:33 GMT):
@Tommy109 fabcar uses basic network setup

Tommy109 (Tue, 12 Mar 2019 11:31:11 GMT):
that what i was originally running so the outcome would be the same anyway, no?

Tommy109 (Tue, 12 Mar 2019 11:31:11 GMT):
that what i was originally running so the outcome would be the same anyway, no? @FabricBeer

FabricBeer (Tue, 12 Mar 2019 11:37:29 GMT):
@Tommy109 Are you getting any errors?

Tommy109 (Tue, 12 Mar 2019 11:51:30 GMT):
@FabricBeer yea, when running start.sh it creates ca, couchdb, orderer and peer ok, waits 80sec for fabric to start and the error is when creating the channel: error response from daemon: container xxxx is not running. when i run docker container ls I can see that couchdb and orderer container are both up but the others are missing

FabricBeer (Tue, 12 Mar 2019 11:56:46 GMT):
@Tommy109 see logs of the containers which are exiting

FabricBeer (Tue, 12 Mar 2019 11:56:46 GMT):
see logs of the containers which are exiting

Pradeep_Pentakota (Tue, 12 Mar 2019 11:58:35 GMT):
Hi For the CHFA exam, do we have any discount now? If yes,can you let me know how to avail it?

Pradeep_Pentakota (Tue, 12 Mar 2019 12:03:15 GMT):
Run the following command in the terminal " docker logs -f containername" or use kitematic @Tommy109 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9uRjNkZEZKhCd63pX)

Tommy109 (Tue, 12 Mar 2019 12:23:19 GMT):

Clipboard - March 12, 2019 12:23 PM

Tommy109 (Tue, 12 Mar 2019 12:23:30 GMT):
@Pradeep_Pentakota @FabricBeer see above. thanks

knagware9 (Tue, 12 Mar 2019 12:26:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ztfMbxW5pmN5ZfG5G) @FabricBeer core.yaml file contains fabric setup , its created when peer container created/its come with peer imags

Pradeep_Pentakota (Tue, 12 Mar 2019 12:32:54 GMT):

For me it's running fine. Have you done any modifications within basic-network files?

Pradeep_Pentakota (Tue, 12 Mar 2019 12:32:54 GMT):

For me it's running fine. Have you done any modifications within basic-network files?

iserikov (Tue, 12 Mar 2019 14:18:05 GMT):
good day, On HLF 1.4 we have: `Mar 12 13:53:06 fo0-lab orderer[29418]: 2019-03-12 13:53:06.336 UTC [cauthdsl] deduplicate -> ERRO 012 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca-med0.local")) for identity 0 `

florianc (Tue, 12 Mar 2019 15:01:02 GMT):
You sure you are using the correct certificate for your action?

yoko (Tue, 12 Mar 2019 15:16:03 GMT):
anyone get a chance to use Amazon QLDB? i heard with Amazon Managed Blockchain it leverages the Fabric orderering service. does anyone know how it handles permissions?

yoko (Tue, 12 Mar 2019 15:16:03 GMT):
anyone get a chance to use Amazon QLDB? i heard with Amazon Managed Blockchain it leverages the Fabric orderering service. does anyone know how it handles permissions for the different orgs? or does everyone see everything (which wouldn't make much sense)?

yoko (Tue, 12 Mar 2019 15:16:03 GMT):
anyone get a chance to use Amazon QLDB? i heard with Amazon Managed Blockchain it leverages the Fabric orderer service. does anyone know how it handles permissions for the different orgs? or does everyone see everything (which wouldn't make much sense)?

iserikov (Tue, 12 Mar 2019 15:23:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AJ6HHX9zzFhgtqFzz) @florianc yes. we solved it by ressue all certs. But nw we have error during start channel:` Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

Tommy109 (Tue, 12 Mar 2019 16:43:41 GMT):
@Pradeep_Pentakota no modification to the basic network files. I tried cloning the git again and same outcome

yacovm (Tue, 12 Mar 2019 17:03:28 GMT):
@yoko I thought that is a single node or something no?

FirasTayemAbed (Tue, 12 Mar 2019 17:10:24 GMT):
Has joined the channel.

FirasTayemAbed (Tue, 12 Mar 2019 17:10:57 GMT):
Hi, please I am looking for a resource to learn ChainCode development .. preferable to have a Video training

Pradeep_Pentakota (Tue, 12 Mar 2019 18:57:45 GMT):
I got this issue too. Just ensure that all the crypto config and.tx files are removed. Rerun it again. @iserikov [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hQJ6rvbgXizXdXwfg)

Pradeep_Pentakota (Tue, 12 Mar 2019 18:58:21 GMT):
Strange. Can you restart the docker once and try? @Tommy109 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SqY5YzH6QnSu6NTQ9)

Pradeep_Pentakota (Tue, 12 Mar 2019 19:00:51 GMT):
I've worked on it. Permissions are based on invitations options on the left side. QLDB is used for ordering service and it's internally managed by AWS once you create an AWS managed blockchain network. @yoko [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FeFJdi7yXZh6GvyHi)

JulianSolarte (Tue, 12 Mar 2019 22:34:44 GMT):
Hello, how can I update an state in couchdb Fabric?

dave.enyeart (Wed, 13 Mar 2019 01:54:59 GMT):
@JulianSolarte you shouldn't update state directly in couchdb. only peer should update state via an endorsed chaincode transaction that calls PutState()

wangdong (Wed, 13 Mar 2019 02:18:49 GMT):
when to query chaincode, we got timeout issue. And when I read the source code.

wangdong (Wed, 13 Mar 2019 02:19:02 GMT):
It is from the http request to couchdb.

wangdong (Wed, 13 Mar 2019 02:19:15 GMT):
What kind of problem this may be?

wangdong (Wed, 13 Mar 2019 02:19:19 GMT):
any clue?

wangdong (Wed, 13 Mar 2019 02:19:50 GMT):
Anyway we are going to restart the peer to see if it got recovered. But I wan to know more about thi.s

wangdong (Wed, 13 Mar 2019 02:22:08 GMT):
The return value from the couch is 500.

wangdong (Wed, 13 Mar 2019 02:22:08 GMT):
The return statur code from the couch is 500.

dave.enyeart (Wed, 13 Mar 2019 02:23:10 GMT):
http timeout and a 500 response from couchdb are different

dave.enyeart (Wed, 13 Mar 2019 02:23:10 GMT):
http timeout and a 500 response from couchdb are different , which is it?

dave.enyeart (Wed, 13 Mar 2019 02:23:19 GMT):
is there a message associated with the 500 error?

githubcpc (Wed, 13 Mar 2019 02:43:36 GMT):
@dave.enyeart I have already built the prometheus enviroment and I got the metrics from my peer and orderer.But I can't find a part of metrics from https://hyperledger-fabric.readthedocs.io/en/release-1.4/metrics_reference.html .Such as consensus_etcdraft_cluster_size,logging_entries_written...

githubcpc (Wed, 13 Mar 2019 02:43:36 GMT):
I have already built the prometheus enviroment and I got the metrics from my peer and orderer.But I can't find a part of metrics from https://hyperledger-fabric.readthedocs.io/en/release-1.4/metrics_reference.html .Such as consensus_etcdraft_cluster_size,logging_entries_written...

dave.enyeart (Wed, 13 Mar 2019 03:53:56 GMT):
@githubcpc For orderer questions and metrics I'd suggest post to #fabric-orderer where those experts hang out

Srisha (Wed, 13 Mar 2019 04:55:42 GMT):
haiii...anyone please help me to fix this error

Srisha (Wed, 13 Mar 2019 04:57:09 GMT):

Err.JPG

chill37 (Wed, 13 Mar 2019 05:40:46 GMT):
Hi, is there an example where it uses ORGANIZATION UNIT or IDENTITY/ANONYMITY instead of MSPROLE for MSP Classification? I would like to know how to approach the data

wangdong (Wed, 13 Mar 2019 05:52:05 GMT):
The errors looks as: `handleRequest -> WARN 063[0m Retrying couchdb request in 1s. Attempt:4 Error:Post http://localhost:5984/fsa-fabric-channel_fsa-fabric/_find: net/http: request canceled (Client.Timeout exceeded while awaiting headers)`

wangdong (Wed, 13 Mar 2019 05:52:05 GMT):
The errors looks as: `handleRequest -> WARN 063[0m Retrying couchdb request in 1s. Attempt:4 Error:Post http://localhost:5984/fabric-channel_fabric/_find: net/http: request canceled (Client.Timeout exceeded while awaiting headers)`

wangdong (Wed, 13 Mar 2019 05:53:04 GMT):
`simulateProposal() resulted in chaincode name:"fsa-fabric" response status 500 for txid: 9c146fce6b0cee014c6c5a248e34958c69d03a570e56561d7ba1ee4066b3d048`

wangdong (Wed, 13 Mar 2019 05:53:04 GMT):
`simulateProposal() resulted in chaincode name:"fa" response status 500 for txid: 9c146fce6b0cee014c6c5a248e34958c69d03a570e56561d7ba1ee4066b3d048`

wangdong (Wed, 13 Mar 2019 05:53:04 GMT):
`simulateProposal() resulted in chaincode name:"fa" response status 500 for txid: 146fce6b0cee014c6c5a248e34958c69d03a570e56561d7ba1ee4066b`

wangdong (Wed, 13 Mar 2019 05:53:40 GMT):
I have an eye on the code which is couchdb relavent.

wangdong (Wed, 13 Mar 2019 05:57:25 GMT):
This error should come from couchdb.go function: handleRequest.

wangdong (Wed, 13 Mar 2019 05:59:24 GMT):
The first error comes from couchdb and second from chaincode

dave.enyeart (Wed, 13 Mar 2019 06:00:12 GMT):
ah I see

wangdong (Wed, 13 Mar 2019 06:00:21 GMT):
My initial judge is that is the communnication between peer and couch. Peer fails to get ledger data from couch.

dave.enyeart (Wed, 13 Mar 2019 06:00:37 GMT):
since it is a _find query, my guess is that you are doing a query without underlying indexes in place

dave.enyeart (Wed, 13 Mar 2019 06:00:37 GMT):
since it is a _find query, my guess is that you are doing a query without underlying indexes in place and couchdb query is therefore taking too long

dave.enyeart (Wed, 13 Mar 2019 06:00:59 GMT):
i assume other interactions between peer and couchdb are working

dave.enyeart (Wed, 13 Mar 2019 06:01:05 GMT):
except for the _find queries?

dave.enyeart (Wed, 13 Mar 2019 06:01:21 GMT):
do you have much data in state database?

wangdong (Wed, 13 Mar 2019 06:04:29 GMT):
this problem should be very recent.

wangdong (Wed, 13 Mar 2019 06:06:40 GMT):
do you mean like this: `Query using selector {"selector":{"_id":"fbo1"}`

wangdong (Wed, 13 Mar 2019 06:06:40 GMT):
do you mean like this: `Query using selector {"selector":{"_id":"foo1"}`

wangdong (Wed, 13 Mar 2019 06:08:50 GMT):
@dave.enyeart by underlying indexes in place? Can I get the doc about this?

wangdong (Wed, 13 Mar 2019 06:09:04 GMT):
Want to know what is the cause.

wangdong (Wed, 13 Mar 2019 06:12:27 GMT):
@dave.enyeart I got another question, when one org is out of an org. The peer still receiced error message as `DeliverBlocks -> ERRO d0881 [channel] Got error &{FORBIDDEN}`

wangdong (Wed, 13 Mar 2019 06:12:56 GMT):
I think this is messeage is expected when the org is out of the channel.

dave.enyeart (Wed, 13 Mar 2019 06:13:39 GMT):
do you have much data in your state database?

dave.enyeart (Wed, 13 Mar 2019 06:14:02 GMT):
approximately how many keys stored?

wangdong (Wed, 13 Mar 2019 06:17:35 GMT):
Actually, I have no idea about the data in the db. It is our client's.

wangdong (Wed, 13 Mar 2019 06:17:35 GMT):
Actually, I have no idea about the data in the db.

FabricBeer (Wed, 13 Mar 2019 08:20:08 GMT):
why core.yaml is not changing in the containers? Even if configurations changes

FabricBeer (Wed, 13 Mar 2019 08:20:08 GMT):
why core.yaml is not changing in the containers?

Sarath_Kumar (Wed, 13 Mar 2019 08:59:47 GMT):
Hi All, I have *upgraded an existing chaincode*. After upgrading the chaincode, *a new container with latest chaincode* started running and *old chaincode container* also running. Is it necessary to keep the old containers as it is or we can remove the container which has old version of chaincode?

wangdong (Wed, 13 Mar 2019 09:08:27 GMT):
@Sarath_Kumar no, you can just remove the old ones.

wangdong (Wed, 13 Mar 2019 09:08:58 GMT):
@FabricBeer what kind of configuration did you change? The channel config?

wangdong (Wed, 13 Mar 2019 09:09:28 GMT):
The core.yaml is not for this. It is for the setting of node, like peer and orderer.

Sarath_Kumar (Wed, 13 Mar 2019 09:12:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sXYib6hJZNgMFByJ2) @wangdong thanks, I have read somewhere that we can install two versions of same chaincode in a channel, if it is then how to query the chaincode based on the version?

wangdong (Wed, 13 Mar 2019 09:13:08 GMT):
yes, you can only get access to the lastes version.

wangdong (Wed, 13 Mar 2019 09:13:08 GMT):
yes, you can only get access to the lastest version.

Sarath_Kumar (Wed, 13 Mar 2019 09:15:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7YAMpnCbsXHtfWPMQ) @wangdong thanks you:grinning:

florianc (Wed, 13 Mar 2019 09:17:11 GMT):
Is there a chat related to IBM Blockchain solution? I have a problem (https://stackoverflow.com/questions/55137370/ibm-blockchain-api-server-internal-error-for-chaincode-installation) but I can't find any fast access support

wangdong (Wed, 13 Mar 2019 09:20:37 GMT):
what kind of solution do you want know?

wangdong (Wed, 13 Mar 2019 09:22:34 GMT):
are you using some of the IBP(IBM blockchain Platform) service?

florianc (Wed, 13 Mar 2019 09:23:36 GMT):
I am using the Swagger to access to my blockchain from nodejs.

florianc (Wed, 13 Mar 2019 09:23:36 GMT):
I am using the Swagger they provide to access to my blockchain from nodejs.

wangdong (Wed, 13 Mar 2019 09:25:48 GMT):
So you are using your own network with swagger?

wangdong (Wed, 13 Mar 2019 09:26:10 GMT):
if so, just ask the question here.

wangdong (Wed, 13 Mar 2019 09:26:24 GMT):
If you are using their service, you can open a ticket.

florianc (Wed, 13 Mar 2019 09:28:42 GMT):
Oops, no sorry, did not understand first. Yes I am using their IBM Blockchain service (starter plan). And I am trying to interact with it using the swagger. But I struggle with one of their endpoint. I just saw there is a ibm dev forum. I'll ask there. Thanks

FabricBeer (Wed, 13 Mar 2019 10:23:11 GMT):
@wangdong changing tls enable to true

florianc (Wed, 13 Mar 2019 10:50:52 GMT):
Is there a clear step by step documentation on the best way to setup a test cycle for nodejs chaincode development?

ribjethgnis (Wed, 13 Mar 2019 12:15:48 GMT):
Has joined the channel.

ribjethgnis (Wed, 13 Mar 2019 12:16:22 GMT):
how to install hyperledger fabric on windows 8.1 and build a basic app with two peers ?

Sarath_Kumar (Wed, 13 Mar 2019 12:22:53 GMT):
Hi All, How to *attach debugger to nodejs chaincode*?

PrzemekH (Wed, 13 Mar 2019 12:35:29 GMT):
Has joined the channel.

PrzemekH (Wed, 13 Mar 2019 12:41:34 GMT):
I need help with ACL. I have User and File. Users and files can be in groups. I need to restrict that user can see only files from the same group. For example if user1 is in group A and file1 is in the group A, the user1 can read file1. But if file2 is in group B, the user1 cannot see file2 because user1 is not in group B. I have following rule but it returns empty array (no condition is met): participant(u): "org.kpmg.network.User" operation: READ resource(b): "org.kpmg.network.File" condition: (u.groups.some(function (ug) { return b.groups.some(function (fg) { return fg.getIdentifier() === ug.getIdentifier(); }); }) ) action: ALLOW

florianc (Wed, 13 Mar 2019 12:42:30 GMT):
You should ask in #composer

PrzemekH (Wed, 13 Mar 2019 12:42:53 GMT):
Ok, I asek

PrzemekH (Wed, 13 Mar 2019 12:42:53 GMT):
Ok, I asked

JohnR (Wed, 13 Mar 2019 12:53:44 GMT):
Has joined the channel.

JohnR (Wed, 13 Mar 2019 12:54:27 GMT):
I'm trying to deploy a fabric network on different vm's without docker swarm, but I'm getting a bit confused about the network security

JohnR (Wed, 13 Mar 2019 12:54:53 GMT):
I know kafka and zookeeper need to be able to communicate

JohnR (Wed, 13 Mar 2019 12:55:15 GMT):
but do all peers and orderers also need to be able to communicate with all other peers and orderers?

raviteja_puvvada (Wed, 13 Mar 2019 13:53:54 GMT):
Has joined the channel.

raviteja_puvvada (Wed, 13 Mar 2019 13:55:52 GMT):
Im trying to create role based access to my fabric-network , but don't know how to make my hands dirty in this regard.

NasserRahal (Wed, 13 Mar 2019 14:02:08 GMT):
Has joined the channel.

jlcs (Wed, 13 Mar 2019 14:06:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2DBhpHyRyNnPu7F8n) @Sarath_Kumar https://blockchain.jlcs.es/2018/12/16/debugging-hyperledger-fabric-s-nodejs-chaincode-with-vs-code.html

meiblorn (Wed, 13 Mar 2019 19:00:36 GMT):
Hi, after chaincode deployment and instantiation were completed successfully, I am trying to place transaction and I getting exception: > org.hyperledger.fabric.sdk.exception.TransactionException: Orderer orderer.fundtransfer.com was shutdown. I tried to recreate Channel instance and tried to restart application — nothing helps. Only restart of orderer helps me. How to fix that exception? How to reset channel?

SimeonPopov (Wed, 13 Mar 2019 21:10:04 GMT):
Has joined the channel.

SimeonPopov (Wed, 13 Mar 2019 21:12:57 GMT):
Hello. I have one question. If I get you tuna example. If S is fisher and M is restaurant, when S sells tuna to M, the balance (it is Double field in the participant declaration for example) will be changed by the chaincode. Right? My question is: How this guarantee that M pays real money to S. How this can be guaranteed using Hyperledger fabric?

yacovm (Wed, 13 Mar 2019 21:28:53 GMT):
@meiblorn check the orderer logs....

RizwanAli (Wed, 13 Mar 2019 22:15:12 GMT):
Has joined the channel.

ygnr (Thu, 14 Mar 2019 00:04:16 GMT):
Is there any endpoint or command that I can call to check if the node is healthy. I am facing connection drops from Node JS SDK.

hbfxc (Thu, 14 Mar 2019 01:40:01 GMT):
Has joined the channel.

saravadeo (Thu, 14 Mar 2019 04:52:55 GMT):
Has joined the channel.

saravadeo (Thu, 14 Mar 2019 04:53:26 GMT):
Hii, Anyone has setup kafka based order service for version v1.4? I am trying in first-network project, but peers and ordering service dockers are crashing.. ordering service crashing by throwing ``` 2019-03-14 04:42:39.958 UTC [orderer.consensus.kafka] setupProducerForChannel -> INFO 00a [channel: byfn-sys-channel] Setting up the producer for this channel... fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7fe4d80f8259] ```

kolayuk (Thu, 14 Mar 2019 08:12:41 GMT):
Hello! I have a question about private data reconciliation (FAB-5108, implemented in V1.4). I tested it, and it seems peer fetching private data on cc update (with new collection members), but not on peer join. Why? And I am interested if it'll be implemented private data reconciliation on peer join in future? (For example I have private collection (Org1MSP, Org2MSP), Org1 puts private data, org2 joined to channel, but recieved only hashes of private data collection)

GuillaumeCisco (Thu, 14 Mar 2019 08:41:45 GMT):
Hello I'd like an enlightment about the `--waitForEvent` option. In the doc we can read: `--waitForEvent Whether to wait for the event from each peer's deliver filtered service signifying that the 'invoke' transaction has been committed successfully` I'd like to know if the `commit` part relate to the endorser or the orderer. In another way: when we have waited for the event, is the block commited in the ledger from the orderer, or has it been only validated by the endorser peer?

HLFPOC (Thu, 14 Mar 2019 09:01:51 GMT):
Hello Team, Are there any tools available through which we can confirm the security aspects of data stored in the ledgers in fabric ?

HLFPOC (Thu, 14 Mar 2019 09:01:51 GMT):
Hello Team, Are there any tools or any other means available through which we can confirm the security aspects of data stored in the ledgers in fabric ?

AhmedRebai (Thu, 14 Mar 2019 10:40:04 GMT):
Has joined the channel.

florianc (Thu, 14 Mar 2019 10:52:39 GMT):
About the jira issues. What is the naming convention used for them (FAB-XXX)? Do you guys follow any standard/convention?

dave.enyeart (Thu, 14 Mar 2019 11:30:27 GMT):
@florianc "FAB-" is automatically prefixed for any Jira issue against the Fabric project. You can provide any summary you like for the title.

dave.enyeart (Thu, 14 Mar 2019 11:31:21 GMT):
@GuillaumeCisco `--waitForEvent` will tell if you if the transaction committed on the peers has been invalidated or validated

dave.enyeart (Thu, 14 Mar 2019 11:38:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=f4nnrnkMgF38pE66Z) @kolayuk If a peer joins a channel late and was already a member of the collection, it will pull private data while processing each block that contains private data. Technically reconciliation is not needed for these scenarios since the org was already a member of the collection and pulls the data at block processing time. Therefore this should be working even on earlier releases before reconciliation came in v1.4. If the joining peer is not getting private data at block processing time, enable debug for `gossip.privdata` and watch the log upon block processing. If it has a problem pulling the private data it will be reported in the log.

ibmstiggr (Thu, 14 Mar 2019 12:15:05 GMT):
Has joined the channel.

kolayuk (Thu, 14 Mar 2019 12:15:35 GMT):
@dave.enyeart Ok, I'll check gossip.privdata, thank you! In my case no peers of Org 2 (receiver) are in channel on the commiting moment (I getting warning checkCollectionMemberPolicy -> WARN 04c collection-name: MY_COLLECTION collection member Org2MSP is not part of the channel), is it possible reason of problem with pulling private data?

ibmstiggr (Thu, 14 Mar 2019 12:17:54 GMT):
Hi there..! Just joined to work out if there is a more 'bare-boned' repo for initial fabric network, setup, deployment, API-development, than the one with all the fabric-samples gear, or if one is supposed to extract the (absolute) necessities on one's own? Also, to which degree should the I take seriously the promise of Fabric 1.4 to lon be long-term supported? (We seem to have encountered this sort of statement before..) Hope everybody's well

FrederikEuter (Thu, 14 Mar 2019 12:22:12 GMT):
Hi there! I´ve read somewhere, that private data collections under HF 1.3 are only supported by the Go-Language. Can anybode tell me where to find that site again? I´ve been searching for half an hour already...

dave.enyeart (Thu, 14 Mar 2019 12:29:18 GMT):
@FrederikEuter private data support was added to Go and Node.js chaincode in v1.2, and to Java chaincode in v1.3.

FrederikEuter (Thu, 14 Mar 2019 12:31:17 GMT):
Oh okay, thanks!

rohitsethi (Thu, 14 Mar 2019 12:46:31 GMT):
hi all, I am trying generate cryptos for peer without using cryptogen tool. I am using fabric-ca-client to generate certs. could anyone tell me if this is the correct method to do it.if Not?

rohitsethi (Thu, 14 Mar 2019 12:46:31 GMT):
hi all, I am trying generate cryptos for peer without using cryptogen tool. I am using fabric-ca-client to generate certs. could anyone tell me if this is the correct method to do it.if Not? can you point me to a tutorial?

rohitsethi (Thu, 14 Mar 2019 12:46:31 GMT):
hi all, I am trying to generate cryptos for peer without using cryptogen tool. I am using fabric-ca-client to generate certs. could anyone tell me if this is the correct method to do it.if Not? can you point me to a tutorial?

bartnotsimpson (Thu, 14 Mar 2019 12:50:11 GMT):
Has joined the channel.

bartnotsimpson (Thu, 14 Mar 2019 12:58:25 GMT):
Hello all. As an OPS i got task to create multi org fabric network. I've made it on multiple vms (vagrant/ovirt) with docker images (without swarm). Seems to be working fine. Problem pops up when I reboot a peer - it's unable to join to the network. It elects itself as a leader and got dropped by orderer with "Principal deserialization failure". I did smtg wrong but tbh I have no idea where to look :) Can anyone point me what should i check ?

rohitsethi (Thu, 14 Mar 2019 13:02:08 GMT):
@bartnotsimpson as per my knowledge this is related to the ca cert mismatch

bartnotsimpson (Thu, 14 Mar 2019 13:02:16 GMT):
indeed

rohitsethi (Thu, 14 Mar 2019 13:02:39 GMT):
i am also trying to achieve the same

bartnotsimpson (Thu, 14 Mar 2019 13:02:44 GMT):
Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.dev.vagrant")) for identity 0

bartnotsimpson (Thu, 14 Mar 2019 13:03:06 GMT):
full output

rohitsethi (Thu, 14 Mar 2019 13:03:21 GMT):
have you setup multiple CAs for multiple orgs?

bartnotsimpson (Thu, 14 Mar 2019 13:03:24 GMT):
yes

bartnotsimpson (Thu, 14 Mar 2019 13:03:29 GMT):
they are up and running

bartnotsimpson (Thu, 14 Mar 2019 13:03:55 GMT):
got internal dns server to avoid using ips

bartnotsimpson (Thu, 14 Mar 2019 13:04:09 GMT):
so ca.org2.dev.vagrant is up and running

rohitsethi (Thu, 14 Mar 2019 13:04:54 GMT):
can you show the directory structure of your project

bartnotsimpson (Thu, 14 Mar 2019 13:06:53 GMT):
Not sure if I understand the question. I split the one-machine docker setup to serveral vms. Which directory are you asking about ?

bartnotsimpson (Thu, 14 Mar 2019 13:14:57 GMT):
anyway it worked fine untill peer reboot

benmambo (Thu, 14 Mar 2019 13:29:52 GMT):
Has joined the channel.

kolayuk (Thu, 14 Mar 2019 13:44:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=24wFB2AodHAkRRbHK) @dave.enyeart I Org Org2 peer I got 019-03-14 13:24:35.056 UTC [gossip.privdata] inspectTransaction -> DEBU 071 Peer is not eligible for collection, channel [my-channel], chaincode [my-cc], collection name [Org2MSP], txID [ee0790c7d482e423638bbba4549c5221e871a2e71e7acf09dc198514d48eec1c] the policy is [&privdata.SimpleCollection{name:"Org2MSP", accessPolicy:(*cauthdsl.policy)(0xc4220ddc60), memberOrgs:[]string{"Org2MSP", "Org1MSP"}, conf:common.StaticCollectionConfig{Name:"DellinMSP", MemberOrgsPolicy:(*common.CollectionPolicyConfig)(0xc4220219e0), RequiredPeerCount:1, MaximumPeerCount:3, BlockToLive:0x0, MemberOnlyRead:false, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}}]. Skipping. So, it is super strange, peer is recieving block, Org2 is a member of memberOrgs in policy, but peer is not eligible

kolayuk (Thu, 14 Mar 2019 13:44:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=24wFB2AodHAkRRbHK) @dave.enyeart I Org Org2 peer I got 019-03-14 13:24:35.056 UTC [gossip.privdata] inspectTransaction -> DEBU 071 Peer is not eligible for collection, channel [my-channel], chaincode [my-cc], collection name [Org2MSP], txID [ee0790c7d482e423638bbba4549c5221e871a2e71e7acf09dc198514d48eec1c] the policy is [&privdata.SimpleCollection{name:"Org2MSP", accessPolicy:(*cauthdsl.policy)(0xc4220ddc60), memberOrgs:[]string{"Org2MSP", "Org1MSP"}, conf:common.StaticCollectionConfig{Name:"Org2MSP", MemberOrgsPolicy:(*common.CollectionPolicyConfig)(0xc4220219e0), RequiredPeerCount:1, MaximumPeerCount:3, BlockToLive:0x0, MemberOnlyRead:false, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}}]. Skipping. So, it is super strange, peer is recieving block, Org2 is a member of memberOrgs in policy, but peer is not eligible

bartnotsimpson (Thu, 14 Mar 2019 15:27:37 GMT):
My problem was caused by "lost" vagrant machine with outdate code. It was my mistake and I'm not able to reproduce the error. Sorry for the confusion :)

GuillaumeCisco (Thu, 14 Mar 2019 15:36:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T8SPucdu92cQH8Ey6) @dave.enyeart Thank you, I've just implemented the waitForEvent option in the fabric-sdk-py. From all my tests, this option will wait until the transaction proposal created with the endorsing peer has been commited in the ledger from the orderer

Kazekagegara (Thu, 14 Mar 2019 16:02:15 GMT):
Has joined the channel.

mcoblenz (Thu, 14 Mar 2019 18:13:03 GMT):
Where can I find documentation about the expected serialization format of invocation arguments?

mcoblenz (Thu, 14 Mar 2019 18:13:14 GMT):
e.g. is there a standard serialization format for integers? If so, what is it?

sukrit007 (Thu, 14 Mar 2019 18:17:42 GMT):
Has joined the channel.

elciusferreira (Thu, 14 Mar 2019 21:16:43 GMT):
Hi everyone! I created a golang chaincode and I'm trying to instantiate it on the first-network from fabric-samples, but I'm having problems. My chaincode imports a package that I also created and at the moment of instantiation this error is shown: ` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/multi-org-test/account-chaincode/account/account.go:11:2: cannot find package "github.com/hyperledger-fabric-go-chaincodes/query" in any of: /opt/go/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOROOT) /chaincode/input/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOPATH) /opt/gopath/src/github.com/hyperledger-fabric-go-chaincodes/query " ` Where account.go is my chaincode, query is the name of the package I created and my cc is trying to import... I had already installed and instantiated the same chaincode on basic-network also from fabric-samples (1 org, 1 peer and 1 orderer) and it worked very well. Can anyone tell me why the instantiation is failing on first-network (2 orgs with 2 peers each and 1 orderer) but not on basic-network?

elciusferreira (Thu, 14 Mar 2019 21:16:43 GMT):
Hi everyone! I created a golang chaincode and I'm trying to instantiate it on the first-network from fabric-samples, but I'm having problems. My chaincode imports a package that I also created and at the moment of instantiation this error is shown: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/multi-org-test/account-chaincode/account/account.go:11:2: cannot find package "github.com/hyperledger-fabric-go-chaincodes/query" in any of: /opt/go/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOROOT) /chaincode/input/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOPATH) /opt/gopath/src/github.com/hyperledger-fabric-go-chaincodes/query "` Where account.go is my chaincode, query is the name of the package I created and my cc is trying to import... I had already installed and instantiated the same chaincode on basic-network also from fabric-samples (1 org, 1 peer and 1 orderer) and it worked very well. Can anyone tell me why the instantiation is failing on first-network (2 orgs with 2 peers each and 1 orderer) but not on basic-network?

elciusferreira (Thu, 14 Mar 2019 21:16:43 GMT):
Hi everyone! I created a golang chaincode and I'm trying to instantiate it on the first-network from fabric-samples, but I'm having problems. My chaincode imports a package that I also created and at the moment of instantiation this error is shown: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/multi-org-test/account-chaincode/account/account.go:11:2: cannot find package "github.com/hyperledger-fabric-go-chaincodes/query" in any of: /opt/go/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOROOT) /chaincode/input/src/github.com/hyperledger-fabric-go-chaincodes/query (from $GOPATH) /opt/gopath/src/github.com/hyperledger-fabric-go-chaincodes/query "` Where account.go is my chaincode, query is the name of the package I created and my cc is trying to import... I had already installed and instantiated the same chaincode on basic-network also from fabric-samples (1 org, 1 peer and 1 orderer) and it worked very well. Can anyone tell me why the instantiation is failing on first-network (2 orgs with 2 peers each and 1 orderer) but not on basic-network?

sangyrak (Thu, 14 Mar 2019 22:02:24 GMT):
Has joined the channel.

wangdong (Fri, 15 Mar 2019 00:55:00 GMT):
`simulateProposal() resulted in chaincode name:"qscc" response status 500 for txid:`

wangdong (Fri, 15 Mar 2019 00:55:26 GMT):
I got a lot of this error. And it is overwhelming.

wangdong (Fri, 15 Mar 2019 00:56:01 GMT):
I suspect it results from high concurrency

wangdong (Fri, 15 Mar 2019 01:32:40 GMT):
As I found from the debug log of qscc, this error is from getTransactionByID, so I suspect this error may come from the concurrent transactions updating the same key.

wangdong (Fri, 15 Mar 2019 01:33:05 GMT):
did not find any error except this one in peer and chaincode.

kolayuk (Fri, 15 Mar 2019 07:01:58 GMT):
@elciusferreira you must put your cc dependencies packages into vendor folder (we're using dep for vendoring packages)

kolayuk (Fri, 15 Mar 2019 07:03:33 GMT):
@elciusferreira or theere is another option - create custom fabric-ccenv image with all required pakages in GOPATH. But first way (with vendor) is better

kolayuk (Fri, 15 Mar 2019 07:03:33 GMT):
@elciusferreira or theere is another option - create custom fabric-ccenv image with all required packages in GOPATH. But first way (with vendor) is better

RealDeanZhao (Fri, 15 Mar 2019 07:42:22 GMT):
Has left the channel.

Sarath_Kumar (Fri, 15 Mar 2019 08:39:35 GMT):
Hi All, I am trying to *implement client application* and installed node js chaincode. I have a doubt , i have analyzed both the *fabcar* and *balance transfer application*, as of my understanding both are client app only. in fabcar we have direct node js file and while executing it will communicate with blockchain network. In balance transfer app we have a node server running on port 4000 and using curl command it will communicate. I want to implement it on angular application. which example i need to follow? Is there any sample angular application is available? or any tutorials ?

raymondyegon (Fri, 15 Mar 2019 09:27:50 GMT):
Has joined the channel.

DimaPdc (Fri, 15 Mar 2019 12:48:33 GMT):
Has joined the channel.

DimaPdc (Fri, 15 Mar 2019 12:48:39 GMT):
Hi there! https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.4.0/hyperledger-fabric-linux-amd64-1.4.0.tar.gz is not available, so we cannot install binaries.

florianc (Fri, 15 Mar 2019 12:50:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=horwKpCDrkxmwF7Gr) @Sarath_Kumar Take fabcar example. Use fabric nodejs SDK. Implement it on your angular server

Sarath_Kumar (Fri, 15 Mar 2019 12:57:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Wc2XhDZPsnpkxzRqm) @florianc Thanks, i also tried to implement the same and while implementing only, i have a doubt. in fabcar example they have read the certificates from the folder available in the server and our angular will be running in client browser. how the certificates will be loaded?

florianc (Fri, 15 Mar 2019 13:02:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=au4cAbcHMwzN5jZwv) @Sarath_Kumar Your angular server has the certificate, not your client. The SDK needs certificate to interact with the chain.

knagware9 (Fri, 15 Mar 2019 13:12:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yK893Aw2AzgNmxETK) @florianc @Sarath_Kumar I used balance transfer example and then used REST Endpoint in angular application

Sarath_Kumar (Fri, 15 Mar 2019 13:12:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yK893Aw2AzgNmxETK) @florianc you are right, but our angular app will be running on client browser and in server only dist folder is hosted. how i can able to read the certificates available in server?

Sarath_Kumar (Fri, 15 Mar 2019 13:14:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yhBLpuxJAcbBdaaDp) @knagware9 yes, i am also trying the same :grinning:, why i leaved the fabcar is i am not clear how angular will load certificate and all. here nodejs server will be available on port and we can call the endpoint to get data.

knagware9 (Fri, 15 Mar 2019 13:15:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n9dDfTzZfLeHd88yH) @Sarath_Kumar yes

wsmelojr (Fri, 15 Mar 2019 13:33:51 GMT):
Has joined the channel.

luca-morgese97 (Fri, 15 Mar 2019 13:34:02 GMT):
Hello friends. I'd like to define multiple smart contracts in a single chaincode. I see examples on how to do that if one is using the "high level" chaincode construction (the one when you say class Mycontract extends Contract {...}) But I'm interested in implementing multiple contracts on the "low level" logic, when one declares let Chaincode = class {...} Could anyone tell me how could I do it? Thank you!

wsmelojr (Fri, 15 Mar 2019 13:36:20 GMT):
Hello, I have a question about how Fabric implements the endorser. Suppose a have a endorser peer that need to treat simultaneous transactions. How it does that? Does it creates one thread for each transaction? Does it work as a single thread service? Or there is a limited number of threads (i.e., simultaneous connections) that will be accepted?

luca-morgese97 (Fri, 15 Mar 2019 13:53:02 GMT):
Otherwise, how do I invoke smartcontract specific commands from a same chaincode (that has multiple smart contracts) from a peer cli? Thanks again

habpygo (Fri, 15 Mar 2019 15:23:08 GMT):
@mastersingh24 hi. I have some questions regarding the security of the HLF docker images provided by IBM/Linux Foundation. I’m working for a large international bank in Europe that is running Hyperledger Fabric in production with one institutional client — more to follow during the year. Because of this our internal audit has questions regarding possible security issues with the HLF docker (base) images and containers. For example, containers running with root access, setgd/setuid permission, unknown authenticity/provenance of the image, healthchecks, what packages are installed, safety of the registry used by IBM etc. etc. Regarding root access it looks as if FAB-9394 fixed this issue in HLF 1.4, right? Please advise? My question is whether there is a public available IBM/Linux Foundation document available that addresses these concerns? Otherwise, could you please give answers where possible to the security issues mentioned? Thanks in advance.

PaddyBN (Fri, 15 Mar 2019 16:44:01 GMT):
Has joined the channel.

sashariati (Fri, 15 Mar 2019 17:07:54 GMT):
Has joined the channel.

plato (Fri, 15 Mar 2019 18:31:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rND2ABrWtk8R6cfR5) @Javi @dave.enyeart I'm facing with the same situation , FYI I'm using kafka based orderer

forumdata (Sat, 16 Mar 2019 04:09:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mszBnbuK33zHCaKFi) @Yakechi I am also facing similar difficulties. IS there any documentation for the azure hyperledger fabric single member as to how to deploy chain code. I understand there is no support for hyperledger composer.

YoussefSadek (Sat, 16 Mar 2019 09:02:05 GMT):
Has joined the channel.

gregnotso (Sat, 16 Mar 2019 12:27:27 GMT):
@forumdata and @yakechi why do you need fabric work on Azure and not AWS? i haven't tried Azure but trying to run it in Windows was a big turnoff for me

Sharma-Hrishabh (Sat, 16 Mar 2019 13:25:06 GMT):
Has joined the channel.

saikumar3349 (Sun, 17 Mar 2019 06:07:54 GMT):
Has joined the channel.

saikumar3349 (Sun, 17 Mar 2019 06:08:07 GMT):
Hello. How can I get peer address in hyperledger fabric chaincode. for example peer0.org1.example.com initiates a transaction. I want to get peer0 using the chaincode

ChinmayIngle (Sun, 17 Mar 2019 06:56:06 GMT):
What is the command for checking the version of fabric and fabric-client

ChinmayIngle (Sun, 17 Mar 2019 06:56:06 GMT):
What is the command for checking the version of fabric and fabric-client?

ChinmayIngle (Sun, 17 Mar 2019 06:56:21 GMT):
Thanks !

klkumar369 (Sun, 17 Mar 2019 07:17:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qjQiMWtM4MfiQSnuk) @ChinmayIngle After your Network is up and running, use _docker -ps_ command in terminal. That will list all the containers running related to your peers, ca, etc.. This will have the versions.

klkumar369 (Sun, 17 Mar 2019 07:45:44 GMT):
Hello, All the peers in a Channel can be discovered and communicated with Anchor Peer. Therefore, every participating Organization in a Channel has an Anchor peer. Peers belonging to an Organization can query this Anchor peer to discover all peers belonging to other Organizations in the channel. So my question here is, each Channel should have atleast one Anchor peer from each Organization? For example, if 3 Orgs peers involve in my Channel and so 3 Anchor peers respective to each Org should be part of my Channel?

sstone1 (Sun, 17 Mar 2019 09:13:23 GMT):
@klkumar369 yes, each channel should have at least one anchor peer from each organization note that this isn't an "extra" peer - it's just one of the peers in the channel that is nominated as an anchor peer for that organization

sstone1 (Sun, 17 Mar 2019 09:13:23 GMT):
@klkumar369 yes, each channel should have at least one anchor peer from each organization. note that this isn't an "extra" peer - it's just one of the peers in the channel that is nominated as an anchor peer for that organization

sstone1 (Sun, 17 Mar 2019 09:41:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nkFC65h5tyKGYbkGC) @saikumar3349 why do you want to do this?

klkumar369 (Sun, 17 Mar 2019 09:43:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xRWZG4kDgJhTX5mPP) @sstone1 Thanks for your reply. So If I need multiple anchor peers in my network, I have to configure them all in configtx.yaml

Patriq (Sun, 17 Mar 2019 11:27:56 GMT):
Has joined the channel.

Patriq (Sun, 17 Mar 2019 11:31:07 GMT):
Hello! I am currently doing my thesis in blockchain, and decided to pick hyperledger fabric. My thesis involves android devices evaluating and submitting transactions to the blockchain. After some research I can't seem to find anything about Android support for SDK, so I thought I would ask here. Has anyone tried to have Android devices as clients where they would use the Fabric SDK to interact with the blockchain?

NagatoPeinI1 (Sun, 17 Mar 2019 11:31:47 GMT):
Hi, I was working on fabric-sample/first-network and I wanted to create an organisation with multiple anchor peer. For that i have only made changes in configtx.yaml file i added - &Org1 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org1MSP # ID to load the MSP definition as ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.example.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')" Writers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.client')" Admins: Type: Signature Rule: "OR('Org1MSP.admin')" # leave this flag set to true. AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 - Host: peer2.org1.example.com Port: 7051 I'm assuming that this will create multiple anchor peer for me without doing echo echo "#################################################################" echo "####### Generating anchor peer update for Org1MSP ##########" echo "#################################################################" set -x configtxgen -profile GlobalOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP configtxgen -profile GlobalOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org1MSPanchors2.tx -channelID $CHANNEL_NAME -asOrg Org1MSP res=$? set +x if [ $res -ne 0 ]; then echo "Failed to generate anchor peer update for BroadridgeGlobalMSP..." exit 1 fi echo in byfn.sh

NagatoPeinI1 (Sun, 17 Mar 2019 11:31:47 GMT):
Hi, I was working on fabric-sample/first-network and I wanted to create an organisation with multiple anchor peer. For that i have only made changes in configtx.yaml file i added - &Org1 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org1MSP # ID to load the MSP definition as ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.example.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')" Writers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.client')" Admins: Type: Signature Rule: "OR('Org1MSP.admin')" # leave this flag set to true. AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org1.example.com Port: 7051 - Host: peer2.org1.example.com Port: 7051 I'm assuming that this will create multiple anchor peer for me without doing echo echo "#################################################################" echo "####### Generating anchor peer update for Org1MSP ##########" echo "#################################################################" set -x configtxgen -profile GlobalOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org1MSP configtxgen -profile GlobalOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org1MSPanchors2.tx -channelID $CHANNEL_NAME -asOrg Org1MSP res=$? set +x if [ $res -ne 0 ]; then echo "Failed to generate anchor peer update for Org1MSP..." exit 1 fi echo in byfn.sh

saikumar3349 (Sun, 17 Mar 2019 11:56:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nkFC65h5tyKGYbkGC) @sstone1 I need to know which peer is invoking a transaction on the network using chaincode

saikumar3349 (Sun, 17 Mar 2019 11:58:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bgqx2gEyYpQzfM9wS) @sstone1 @sstone1 I want to authorize the transaction based on the peer name.

Nathauy (Sun, 17 Mar 2019 12:29:16 GMT):
Has joined the channel.

Nathauy (Sun, 17 Mar 2019 12:30:38 GMT):
Hi, I have an issue while downloading the bin file with this command : curl -sSL https://goo.gl/6wtTN5 | bash -s 1.4.0 (it doesn't work and it puts the following error : tar: Unrecognized archive formattar: Error exit delayed from previous errors.)

Sahanratnayake (Sun, 17 Mar 2019 15:58:01 GMT):
Is there a way to add organizations dynamically using SDK and scripts?

ChinmayIngle (Sun, 17 Mar 2019 17:54:48 GMT):
@klkumar369 I started my network and after docker ps i got the following output "7b854a43eeea hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8052->7052/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com 744db404a792 hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:9056->7051/tcp, 0.0.0.0:9057->7052/tcp, 0.0.0.0:9058->7053/tcp peer1.org3.example.com d7fdcb688a00 hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:9051->7051/tcp, 0.0.0.0:9052->7052/tcp, 0.0.0.0:9053->7053/tcp peer0.org3.example.com f1c99fde3a2a hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:8056->7051/tcp, 0.0.0.0:8057->7052/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com b4a77e0381c0 hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:7051-7053->7051-7053/tcp peer0.org1.example.com f36ceeae46e4 hyperledger/fabric-peer "peer node start" 3 minutes ago Up 2 minutes 0.0.0.0:7056->7051/tcp, 0.0.0.0:7057->7052/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 1d7110c196e6 hyperledger/fabric-orderer "orderer" 3 minutes ago Up 3 minutes 0.0.0.0:7050->7050/tcp orderer.example.com 635d51afec92 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 3 minutes ago Up 3 minutes 0.0.0.0:8054->7054/tcp ca_peerOrg2 7b6fcb3ac82c hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 3 minutes ago Up 3 minutes 0.0.0.0:7054->7054/tcp ca_peerOrg1 7a9ca7997753 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 3 minutes ago Up 3 minutes 0.0.0.0:9054->7054/tcp ca_peerOrg3 " Where to look for this version exactly, Actually am getting this "Cannot read property 'curve' of undefined" and need to check the fabirc and fabric client versions for the same!

BlockQAI (Sun, 17 Mar 2019 18:00:57 GMT):
Has joined the channel.

BlockQAI (Sun, 17 Mar 2019 18:01:21 GMT):
Can I separate the databases from the fabric?

rohanshrothrium (Sun, 17 Mar 2019 18:44:36 GMT):
Has joined the channel.

rohanshrothrium (Sun, 17 Mar 2019 18:44:55 GMT):
I wanted to contribute some code for automation of "Build your First network" in hyperledger fabric so that it can take arguments of names of chaincodes and run the network accordingly. How do I start contributing to the project?

klkumar369 (Sun, 17 Mar 2019 18:51:12 GMT):

Clipboard - March 18, 2019 12:20 AM

klkumar369 (Sun, 17 Mar 2019 18:52:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYMEDiPgL2oYpeB6B) @ChinmayIngle Ok.. if you have configured your IMAGE_TAG, then you can see the version appended to Image as below.

klkumar369 (Sun, 17 Mar 2019 18:52:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYMEDiPgL2oYpeB6B) @ChinmayIngle Ok.. if you have configured your IMAGE_TAG, then you can see the version appended to Image as above.

klkumar369 (Sun, 17 Mar 2019 18:52:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYMEDiPgL2oYpeB6B) @ChinmayIngle Ok.. if you have configured your IMAGE_TAG, then you can see the version appended to Image as above. This IMAGE_TAG should be defined in .env file (refer first-network) and is used in peer-base.yaml as below. `image: hyperledger/fabric-peer:$IMAGE_TAG`

klkumar369 (Sun, 17 Mar 2019 19:35:13 GMT):
Hello! Is it not required that every peer in a Channel needs the chaincode installation? Only the subset of peers need to do the chaincode installation and we call them as Endorser peers? Or Every peer in the Channel needs the chaincode installation and only peer we instantiate the chaincode called as Endorser peer?

rohanshrothrium (Sun, 17 Mar 2019 19:51:55 GMT):
All the peers who would like to query would require a chaincode.

rohanshrothrium (Sun, 17 Mar 2019 19:54:02 GMT):
While instantiating you provide the endorsement policy.

sstone1 (Mon, 18 Mar 2019 00:24:09 GMT):
Correct, only the peers you want to endorse transactions for that chaincode need to have the chaincode installed. Those peers are “endorsing” peers. Peers without the chaincode will still receive ledger updates, including blocks and transactions for that chaincode. @klkumar369 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4g6A9Y6ZCRzWtbGvA)

sstone1 (Mon, 18 Mar 2019 00:25:00 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/CONTRIBUTING.html @rohanshrothrium [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMySsToBLs52SrRif)

sstone1 (Mon, 18 Mar 2019 00:25:42 GMT):
Can you elaborate - what do you mean? What are you trying to do? @BlockQAI [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fKDonpGYYxdYwmTiQ)

sstone1 (Mon, 18 Mar 2019 00:28:39 GMT):
This is “unusual”, so I wouldn’t recommend it. Transactions are submitted by client applications, and multiple peers will endorse those transactions by executing the chaincode. Client applications must have an identity (certificate and private key) to submit a transaction. Normal access control in Fabric is based on the identity used to submit the transaction, not the peer(s) endorsing the transaction. Endorsement policies can be used to specify which organisations peers need to endorse transactions for a given chaincode. @saikumar3349 [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YkupphjHLJg3ziwsY)

vanipolnedi (Mon, 18 Mar 2019 05:46:44 GMT):
Has joined the channel.

klkumar369 (Mon, 18 Mar 2019 06:22:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=relDzeb5ptJ39Qy0WW) @sstone1 Thank you!

ChinmayIngle (Mon, 18 Mar 2019 07:29:11 GMT):
@klkumar369 Thank you appreciate it !

DawoodJehangir (Mon, 18 Mar 2019 07:38:19 GMT):
I have modified the first-network (network with 2 Orgs and 1 peer in each of them) and Installed my own chaincode on it. Additionally I have made a connection.yaml file to interact with the network. But when I run the client side (code given below), I encounter this error: error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed This is the code on my client side. The error arises when `gateway.getNetwork command` is run: ` ////////////////////////////////////////////// let connectionProfile = yaml.safeLoad(fs.readFileSync('./connection.yaml', 'utf8')); ////////////////////////////////////////////// // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(connectionProfile, { wallet, identity: 'user1', discovery: { enabled: false } }); console.log("here 1"); // Get the network (channel) our contract is deployed to. const network = await gateway.getNetwork('mychannel'); console.log("here 2"); // Get the contract from the network. //const contract = network.getContract('fabcar'); const contract = network.getContract('bankpeerContract');` This is my connection.yaml file: `--- name: mychannel.firstnetwork.connectionprofile x-type: "hlfv1" description: "BankPeerContract methods will be used through this profile" version: "1.0" channels: mychannel: orderers: - orderer.example.com peers: peer0.org1.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true peer0.org2.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true organizations: Org1: mspid: Org1MSP peers: - peer0.org1.example.com certificateAuthorities: - certificate-authority-org1 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/63145b12cd86abb07b6b5797c5e9506faa8f799e81d3c71d11a6a60840e3b6ae_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem Org2: mspid: Org2MSP peers: - peer0.org2.example.com certificateAuthorities: - certificate-authority-org2 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore/4d9b19fdcce70620b45760f5d62c7c877200ab38553b7a8b85245b04ca0e8bdd_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/signcerts/Admin@org2.example.com-cert.pem orderers: orderer.example.com: url: grpc://localhost:7050 grpcOptions: ssl-target-name-override: orderer.example.com tlsCACerts: path: ../first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem peers: peer0.org1.example.com: url: grpc://localhost:7051 grpcOptions: ssl-target-name-override: peer0.org1.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem peer0.org2.example.com: url: grpc://localhost:9051 grpcOptions: ssl-target-name-override: peer0.org2.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem certificateAuthorities: ca-org1: url: http://localhost:7054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org1 ca-org2: url: http://localhost:8054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org2`

DawoodJehangir (Mon, 18 Mar 2019 07:41:21 GMT):
I have modified the first-network (network with 2 Orgs and 1 peer in each of them) and Installed my own chaincode on it. Additionally I have made a connection.yaml file to interact with the network. But when I run the client side (code given below), I encounter this error: ``` error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed ``` This is the code on my client side. The error arises when `gateway.getNetwork command` is run: ``` let connectionProfile = yaml.safeLoad(fs.readFileSync('./connection.yaml', 'utf8')); // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(connectionProfile, { wallet, identity: 'user1', discovery: { enabled: false } }); console.log("here 1"); // Get the network (channel) our contract is deployed to. const network = await gateway.getNetwork('mychannel'); console.log("here 2"); // Get the contract from the network. //const contract = network.getContract('fabcar'); const contract = network.getContract('bankpeerContract'); ``` This is my connection.yaml file: ``` --- name: mychannel.firstnetwork.connectionprofile x-type: "hlfv1" description: "BankPeerContract methods will be used through this profile" version: "1.0" channels: mychannel: orderers: - orderer.example.com peers: peer0.org1.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true peer0.org2.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true organizations: Org1: mspid: Org1MSP peers: - peer0.org1.example.com certificateAuthorities: - certificate-authority-org1 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/63145b12cd86abb07b6b5797c5e9506faa8f799e81d3c71d11a6a60840e3b6ae_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem Org2: mspid: Org2MSP peers: - peer0.org2.example.com certificateAuthorities: - certificate-authority-org2 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore/4d9b19fdcce70620b45760f5d62c7c877200ab38553b7a8b85245b04ca0e8bdd_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/signcerts/Admin@org2.example.com-cert.pem orderers: orderer.example.com: url: grpc://localhost:7050 grpcOptions: ssl-target-name-override: orderer.example.com tlsCACerts: path: ../first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem peers: peer0.org1.example.com: url: grpc://localhost:7051 grpcOptions: ssl-target-name-override: peer0.org1.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem peer0.org2.example.com: url: grpc://localhost:9051 grpcOptions: ssl-target-name-override: peer0.org2.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem certificateAuthorities: ca-org1: url: http://localhost:7054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org1 ca-org2: url: http://localhost:8054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org2 ```

DawoodJehangir (Mon, 18 Mar 2019 07:42:47 GMT):
I have modified the first-network (network with 2 Orgs and 1 peer in each of them) and Installed my own chaincode on it. Additionally I have made a connection.yaml file to interact with the network. But when I run the client side (code given below), I encounter this error: ``` error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: 2 UNKNOWN: Stream removed ``` This is the code on my client side. The error arises when `gateway.getNetwork command` is run: ``` let connectionProfile = yaml.safeLoad(fs.readFileSync('./connection.yaml', 'utf8')); // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(connectionProfile, { wallet, identity: 'user1', discovery: { enabled: false } }); console.log("here 1"); // Get the network (channel) our contract is deployed to. const network = await gateway.getNetwork('mychannel'); console.log("here 2"); // Get the contract from the network. //const contract = network.getContract('fabcar'); const contract = network.getContract('bankpeerContract'); ``` This is my connection.yaml file: ``` --- name: mychannel.firstnetwork.connectionprofile x-type: "hlfv1" description: "BankPeerContract methods will be used through this profile" version: "1.0" channels: mychannel: orderers: - orderer.example.com peers: peer0.org1.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true peer0.org2.example.com: endorsingPeer: true chaincodeQuery: true ledgerQuery: true eventSource: true organizations: Org1: mspid: Org1MSP peers: - peer0.org1.example.com certificateAuthorities: - certificate-authority-org1 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/63145b12cd86abb07b6b5797c5e9506faa8f799e81d3c71d11a6a60840e3b6ae_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem Org2: mspid: Org2MSP peers: - peer0.org2.example.com certificateAuthorities: - certificate-authority-org2 adminPrivateKey: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore/4d9b19fdcce70620b45760f5d62c7c877200ab38553b7a8b85245b04ca0e8bdd_sk signedCert: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/signcerts/Admin@org2.example.com-cert.pem orderers: orderer.example.com: url: grpc://localhost:7050 grpcOptions: ssl-target-name-override: orderer.example.com tlsCACerts: path: ../first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem peers: peer0.org1.example.com: url: grpc://localhost:7051 grpcOptions: ssl-target-name-override: peer0.org1.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem peer0.org2.example.com: url: grpc://localhost:9051 grpcOptions: ssl-target-name-override: peer0.org2.example.com request-timeout: 120001 tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem certificateAuthorities: ca-org1: url: http://localhost:7054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org1 ca-org2: url: http://localhost:8054 httpOptions: verify: false tlsCACerts: path: ../first-network/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem registrar: - enrollId: admin enrollSecret: adminpw caName: certificate-authority-org2 ```

luca-morgese97 (Mon, 18 Mar 2019 08:50:29 GMT):
Hello everyone, I have a question concerning invoking a smart contract from CLI. I have a chaincode that contains two smart contracts. On the Fabcar example, I have modified fabcar.js and index.js from chaincode/fabcar/javascript so that there are two smart contracts on the same chaincode. How do I invoke functions from the second smart contract via CLI? If I try to use a function name directly, like ... -c '{"function":"createFile","Args":[]}' of a function in the second smart contract, It says that the function does not exists. Can someone tell me how to achieve this, please? Thank you

bilalahmed (Mon, 18 Mar 2019 08:59:43 GMT):
Has joined the channel.

bilalahmed (Mon, 18 Mar 2019 09:00:00 GMT):
Hello Everyone, I have one question, do we need to create a separate organization for orderer nodes or existing orgs (providing peers) can be used for ordering?

bilalahmed (Mon, 18 Mar 2019 09:01:08 GMT):
I have two organizations with 2 peers in each org. I want each org to provide one orderer node as well (don't want to create a new third org for orderer like being done in the tutorials). is it possible?

ChaviArora (Mon, 18 Mar 2019 09:07:36 GMT):
Has joined the channel.

saikumar3349 (Mon, 18 Mar 2019 09:31:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FFg5N4cXoXPAAeNAz) @luca-morgese97 In go lang you can use invokechaincode method by passing chaincodename, args,channelname

luca-morgese97 (Mon, 18 Mar 2019 09:38:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5rT6EWvdqA7YsmQPJ) @saikumar3349 @saikumar3349 Hello saikumar, thank you for your answer. I do know that I can invoke a chaincode like how you say, but my case is different. I'm using a javascript-implemented chaincode. I have just one single chaincode, but inside it, there are class FabCar extends Contract{...} and class FilesContract extends Contract{...} In the end, I export both classes with module.exports. = Then, in the index.js, I specify the existence of both contracts in the samecode with const = require('./lib/fabcar').; And export both the contracts. I'm interested in knowing how I can invoke a specific function from one of the two contracts by command line. Thank you

luca-morgese97 (Mon, 18 Mar 2019 09:38:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5rT6EWvdqA7YsmQPJ) @saikumar3349 Hello saikumar, thank you for your answer. I do know that I can invoke a chaincode like how you say, but my case is different. I'm using a javascript-implemented chaincode. I have just one single chaincode, but inside it, there are class FabCar extends Contract{...} and class FilesContract extends Contract{...} In the end, I export both classes with module.exports. = Then, in the index.js, I specify the existence of both contracts in the samecode with const = require('./lib/fabcar').; And export both the contracts. I'm interested in knowing how I can invoke a specific function from one of the two contracts by command line. Thank you

npc0405 (Mon, 18 Mar 2019 09:39:22 GMT):
In case I want to purge / archive the blockchain data because of size issues? Can I do that? If so then what can be standard / best practices? Thanks.

rohanshrothrium (Mon, 18 Mar 2019 10:22:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dJrtJAyPFPNBjha4p) @npc0405 One method you can use is calculate the hash of your data and store it in the block and store the data in a private collection. The Data in the Private collection can be purged.

DawoodJehangir (Mon, 18 Mar 2019 11:07:37 GMT):
Hi All! Does anyone have any possible solution for this problem? https://stackoverflow.com/questions/55219497/error-initializing-the-network-channel-from-node-sdk-in-hyperledger-fabric

amanjain (Mon, 18 Mar 2019 12:09:03 GMT):
Has joined the channel.

wirsiing (Mon, 18 Mar 2019 12:30:55 GMT):
Has joined the channel.

zacpl (Mon, 18 Mar 2019 12:32:03 GMT):
Has joined the channel.

mbilalmaruf (Mon, 18 Mar 2019 13:15:27 GMT):
Has joined the channel.

mbilalmaruf (Mon, 18 Mar 2019 13:16:13 GMT):
Dear hyperledger team,

mbilalmaruf (Mon, 18 Mar 2019 13:23:54 GMT):
Can you please specify if there is any public forum where i can report issues regarding hyperledger fabric performance?

mbilalmaruf (Mon, 18 Mar 2019 14:16:05 GMT):
Our deployment of hyperledger fabric is on 1.1 and the chain height is more then 10 Million. Now we have observed that if the peer crashes in order to get it up again it takes a lot of time even more then 2 hours. On closer observation we have found that "ledgersData/chains/index/" has around more then 5000+ files. Even doing a simple ls takes a lot of time. Is that the reason for the slowness of the peer while waking up? Has somebody else encountered similar problem as well? Is there a way or configuration setting so that the files are generated in different folder for the "indexes" The files are stored on a GPFS based NFS. Any pointers in the right directions are appreciated.

elciusferreira (Mon, 18 Mar 2019 14:32:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EnYarjG9MSwqJJa4X) @kolayuk It worked. Thank you!

soaresnatan (Mon, 18 Mar 2019 14:44:19 GMT):

Clipboard - March 18, 2019 11:44 AM

bhaveshneekhra (Mon, 18 Mar 2019 14:47:57 GMT):
Has joined the channel.

soaresnatan (Mon, 18 Mar 2019 14:48:52 GMT):

Clipboard - March 18, 2019 11:48 AM

soaresnatan (Mon, 18 Mar 2019 14:49:11 GMT):
Dear friends, I am developing a new functionality in my client and I came across a problem, somewhat intrinsic. I would like the help of the attention and help of all to solve this challenge, I believe that I am not the only one to stop the development in this stage. Without further ado, I present the problem to you: * Development of a client that connects with the events of the peers by certain channel, thus generating a chain: Fabric -> Client -> third applications. A model similar to events and the websocket service provided by the hyperledger composer. How I am doing: * At this first moment, I am using a development network, the basic network, with the channel created (mychannel) and the peer ticket. * Developed chaincode sending event on GO. * Use of the JAVA SDK for communication with the fabric. ** At this first moment, I'm initializing the hardcode channel, I'm not using loadchannelfromconfig. Images of settings in annex. The mistake: *2019-03-18 11:23:39.662 WARN 23466 --- [ault-executor-1] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} detected disconnect. 2019-03-18 11:23:39.729 INFO 23466 --- [nio-3000-exec-8] org.hyperledger.fabric.sdk.Channel : Channel Channel{id: 5, name: mychannel} eventThread started shutdown: false thread: null 2019-03-18 11:23:40.201 WARN 23466 --- [ault-executor-2] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} terminated is false shutdown is false, retry count 1 has error UNAVAILABLE: Network closed for unknown reason. 2019-03-18 11:23:40.202 WARN 23466 --- [ault-executor-2] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} :StatusRuntimeException Status Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}. Description Network closed for unknown reason * Possible solutions? Thank you :)

soaresnatan (Mon, 18 Mar 2019 14:49:55 GMT):

Clipboard - March 18, 2019 11:49 AM

soaresnatan (Mon, 18 Mar 2019 14:50:26 GMT):

Clipboard - March 18, 2019 11:50 AM

soaresnatan (Mon, 18 Mar 2019 15:08:07 GMT):
Hi, all! I'm trying to develop a java client that listen to peers events using the channel, thus generating the flow: Fabric -> Client -> third applications. A model similar to events and the websocket service provided by the hyperledger composer. How I am doing: At this first moment, I am using the basic network from fabric samples (1 channel 'mychannel', 1 peer, 1 ord and 1 org).

soaresnatan (Mon, 18 Mar 2019 15:08:43 GMT):

Clipboard - March 18, 2019 12:08 PM

soaresnatan (Mon, 18 Mar 2019 15:08:59 GMT):
I am also using a golang chaincode that has the SetEvent() function and java SDK.

soaresnatan (Mon, 18 Mar 2019 15:10:06 GMT):
At this first moment, I'm initializing the channel in a hardcoded way using the SDK.

soaresnatan (Mon, 18 Mar 2019 15:10:28 GMT):

Clipboard - March 18, 2019 12:10 PM

soaresnatan (Mon, 18 Mar 2019 15:12:42 GMT):
The error I'm getting:

soaresnatan (Mon, 18 Mar 2019 15:13:20 GMT):
``` 2019-03-18 11:23:39.662 WARN 23466 --- [ault-executor-1] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} detected disconnect. 2019-03-18 11:23:39.729 INFO 23466 --- [nio-3000-exec-8] org.hyperledger.fabric.sdk.Channel : Channel Channel{id: 5, name: mychannel} eventThread started shutdown: false thread: null 2019-03-18 11:23:40.201 WARN 23466 --- [ault-executor-2] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} terminated is false shutdown is false, retry count 1 has error UNAVAILABLE: Network closed for unknown reason. 2019-03-18 11:23:40.202 WARN 23466 --- [ault-executor-2] org.hyperledger.fabric.sdk.EventHub : EventHub{id: 4, name: peer0.org1.example.com, channelName: mychannel, url: grpc://localhost:7053} :StatusRuntimeException Status Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}. Description Network closed for unknown reason ```

soaresnatan (Mon, 18 Mar 2019 15:14:36 GMT):
Does anyone have any possible solution for this problem?

BlankShrimp (Mon, 18 Mar 2019 15:48:02 GMT):
Hey guys, do you know how to modify and build sawtooth codes? It seems that building from githhub source will automatically download source codes from its repositories.

BlankShrimp (Mon, 18 Mar 2019 15:48:02 GMT):
Hey guys, do you know how to modify and build sawtooth codes? It seems that building from githhub source will automatically download source codes from its repositories. I just want to modify some of the codes.

toddinpal (Mon, 18 Mar 2019 16:07:43 GMT):
@BlankShrimp Not sure why you're asking that in a Fabric channel. I'd suggest taking this to one of the Sawtooth related channels.

BlankShrimp (Mon, 18 Mar 2019 16:08:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JENGwxRZMSF4aWEyL) @toddinpal Oh OK, thank you

osmola (Mon, 18 Mar 2019 16:09:13 GMT):
Hello, did anyone tried to solve Wallet for users private keys for fabric?

toddinpal (Mon, 18 Mar 2019 16:10:05 GMT):
A quick question about access control lists. The documentation says basically that the only access control one has over delivering events is to limit access to the event/Block and event/FilteredBlock. If one limits those, how can a client determine if a transaction is successful or fails if they are denied access to those two resources? The issue here is that a client needs to know the outcome of its transaction proposal but shouldn't know about any other transactions. I can't see how that can be done with access control lists or any other Fabric feature. Am I missing something as this seems like a rather large leak of information.

Switch2Logic (Mon, 18 Mar 2019 18:50:18 GMT):
What is Kafka Ordering service throughput - Transaction per second (TPS)

Switch2Logic (Mon, 18 Mar 2019 18:50:18 GMT):
What is Kafka Ordering service throughput - Transaction per second (TPS)?

aambati (Mon, 18 Mar 2019 20:31:29 GMT):
i started seeing this error when i run` make checks` on mac...this started happening after rebasing...anybody seen this before: ``` Immutable = [false]Failed initiliazing BCCSP at [{SecLevel:256 HashFamily:SHA2 Ephemeral:false FileKeystore: DummyKeystore: Library: Label:ForFabric Pin:98765432 SoftVerify:true Immutable:false}]: [Failed initializing PKCS11 library ForFabric: No PKCS11 library default]FAIL github.com/hyperledger/fabric/bccsp/pkcs11 0.037s ```

nRyDevOps (Mon, 18 Mar 2019 21:12:06 GMT):
Hello! I am trying to follow this EnCCC example: https://gerrit.hyperledger.org/r/#/c/28887/3/chaincode/enccc/go/README.md

nRyDevOps (Mon, 18 Mar 2019 21:12:31 GMT):
however when I get to the step to run the command: ENCKEY=`openssl rand 32 -base64` && DECKEY=$ENCKEY

nRyDevOps (Mon, 18 Mar 2019 21:12:44 GMT):
it just keeps giving me: rand: Use -help for summary.

nRyDevOps (Mon, 18 Mar 2019 21:13:42 GMT):
If someone could please help me with this I would greatly appreciate it. I'm using Ubuntu 18.04 LTS, Fabric 1.4, and Golang 1.12.1

yacovm (Mon, 18 Mar 2019 23:59:00 GMT):
what's the `openssl version` ?

yacovm (Mon, 18 Mar 2019 23:59:03 GMT):
@nRyDevOps

yacovm (Mon, 18 Mar 2019 23:59:11 GMT):
make sure you have the latest or something...

yacovm (Mon, 18 Mar 2019 23:59:14 GMT):
it works for me

garunkumar450 (Tue, 19 Mar 2019 07:33:09 GMT):
Has joined the channel.

garunkumar450 (Tue, 19 Mar 2019 07:33:49 GMT):
How to write event-listener for block events in hyperledger fabric using go

DGBlock (Tue, 19 Mar 2019 07:55:45 GMT):
HI .. while creating the channel in multinode multihost docker swarm environment , i am getting the following error. can anyone help me out : Failed to create the channel. status:SERVICE_UNAVAILABLE reason:backing Kafka cluster has not completed booting; try again later

SashaPESIC (Tue, 19 Mar 2019 08:07:37 GMT):
@DGBlock How many kafka/zookeeper nodes do you have?

JohnR (Tue, 19 Mar 2019 08:29:02 GMT):
Or the obvious question, was kafka available?

JohnR (Tue, 19 Mar 2019 08:29:26 GMT):
I sometimes get this error if the kafka nodes haven't agreed on the cluster yet

Dhiraj1990 (Tue, 19 Mar 2019 09:01:26 GMT):
I am following a tutorial by which i can integrate node sdk with running network. I am able to enroll the admin but when i enroll user i get below error Failed to register user "user1": Error: Calling register endpoint failed with error [Error: unable to verify the first certificate]

Dhiraj1990 (Tue, 19 Mar 2019 09:01:55 GMT):
Kindly let me know what is issuse ?

Dhiraj1990 (Tue, 19 Mar 2019 09:38:02 GMT):
Can someone guide me??

npc0405 (Tue, 19 Mar 2019 10:33:51 GMT):
While pushing bulk of records in blockchain in the form of chunks, some of records gets added and few of them missed without any error. any idea?

ChinmayIngle (Tue, 19 Mar 2019 10:49:37 GMT):
I CANNOT find tls/ca.crt file in either of orderer or organistion in crypto-config folder

ChinmayIngle (Tue, 19 Mar 2019 10:49:37 GMT):
I CANNOT find tls/ca.crt file in either of orderer or organistion in crypto-config folder, which is needed in docker-compose.yaml file !

Dhiraj1990 (Tue, 19 Mar 2019 10:53:46 GMT):
@ChinmayIngle it's in cypto config

Dhiraj1990 (Tue, 19 Mar 2019 10:53:59 GMT):
check your crypto-config.yaml

Dhiraj1990 (Tue, 19 Mar 2019 10:54:16 GMT):
all ceertificates generated in crypto-config folder @ChinmayIngle

Bless 7 (Tue, 19 Mar 2019 11:06:49 GMT):
Has joined the channel.

ChinmayIngle (Tue, 19 Mar 2019 11:07:17 GMT):
@Dhiraj1990 i checked it there, it does not exist ! do i need to something else for getting that files?

Dhiraj1990 (Tue, 19 Mar 2019 11:22:46 GMT):
@ChinmayIngle check below path "/crypto-config/peerOrganizations/orgname.domain.com/users/Admin@orgname.domain.com/tls/ca.crt"

Dhiraj1990 (Tue, 19 Mar 2019 11:24:02 GMT):
I am following a tutorial by which i can integrate node sdk with running network. I am able to enroll the admin but when i enroll user i get below error Failed to register user "user1": Error: Calling register endpoint failed with error [Error: unable to verify the first certificate] Any idea guys ?

DawoodJehangir (Tue, 19 Mar 2019 11:42:06 GMT):
Being stuck on this issue (https://stackoverflow.com/questions/55219497/error-initializing-the-network-channel-from-node-sdk-in-hyperledger-fabric?noredirect=1#comment97176487_55219497) for quite some time now. Can anyone suggest an alternative approach or a possible solution to this problem?

toddinpal (Tue, 19 Mar 2019 12:23:47 GMT):
@npc0405 Can you explain how you are adding the records? Does your client check to make sure the transactions are committed and valid? If you're submitting bulk updates it's possible that transactions are being invalidated due to multi-version concurrency control.

Evans347 (Tue, 19 Mar 2019 14:31:08 GMT):
Trying to setup kafka orderer. Got the following error when instantiating a chaincode: [channel: mychannel] Rejecting deliver request for 172.18.0.1:50384 because of consenter error. Checking in fafka container, here is the status: Topic:mychannel PartitionCount:1 ReplicationFactor:3 Configs: Topic: mychannel Partition: 0 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2

Evans347 (Tue, 19 Mar 2019 14:31:48 GMT):
No log is showing up on kafka and zookeeper container

Evans347 (Tue, 19 Mar 2019 14:32:51 GMT):
Have been playing for a while. It will be appreciated if anyone can give me a direction to troubleshoot further.

Evans347 (Tue, 19 Mar 2019 15:06:05 GMT):
From the official document: "A “Rejecting deliver request because of consenter error” log message is usually indicative of a connection problem with the Kafka cluster. Ensure that the Kafka cluster is set up properly, and is reachable by the ordering service’s nodes."

Evans347 (Tue, 19 Mar 2019 15:07:01 GMT):
Now the kafka cluster seems working well. How to test Kafka is reachable by the ordering service nodes?

klkumar369 (Tue, 19 Mar 2019 16:11:37 GMT):
Hello! Is there any minimum limit for creating peers in an organization? Or the other way around, can I have only one peer in my organization? This question came in my mind because, as per API, we have Endorser, Anchor and Committing peers (I believe Endorser and Anchor peers can also act as Committing peers). If this is the case, there should be minimum of two peers in on Org. Please clarify this!

Antimttr (Tue, 19 Mar 2019 16:55:31 GMT):
Anyone attending an Altoros training session for HLF in here? Just curious how your experience was?

Antimttr (Tue, 19 Mar 2019 16:55:31 GMT):
Anyone attended an Altoros training session for HLF in here? Just curious how your experience was?

Antimttr (Tue, 19 Mar 2019 16:56:22 GMT):
Thinking about going to this one: https://www.eventbrite.com/e/hyperledger-fabric-administrator-training-configuring-and-running-a-network-los-angeles-tickets-55706207767

NaveenRaju (Tue, 19 Mar 2019 17:00:14 GMT):
Has joined the channel.

jeffgarratt (Tue, 19 Mar 2019 17:11:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vH6HrbZeW5zcwh89H) @klkumar369 There is no minimum if you simply wish to view the transactions. You can do this without running a peer, but will not have ability to verify function (i.e. no endorsement). Think about is as an "observer" only.

klkumar369 (Tue, 19 Mar 2019 17:31:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BnKQWEstmGouBZyZj) @jeffgarratt Thanks for the answer. If I understand it correctly, in case of only one peer, it just acts as an "Observer" and there is no functionality of Endorser and Anchor in that Organization.

jeffgarratt (Tue, 19 Mar 2019 17:46:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Mb8baGBnfjoe8fZ9G) @klkumar369 that would be either no peers, or peers without chaincode installed (no endorsement).

Dhiraj1990 (Wed, 20 Mar 2019 04:01:23 GMT):
I am following a tutorial by which i can integrate node sdk with running network. I am able to enroll the admin but when i enroll user i get below error Failed to register user "user1": Error: Calling register endpoint failed with error [Error: unable to verify the first certificate] Any idea guys ?

SatheeshNehru (Wed, 20 Mar 2019 06:08:01 GMT):
can someone explain about system chaincode? what it does?and why its needed?

Lana2019 (Wed, 20 Mar 2019 07:21:32 GMT):
Has joined the channel.

klkumar369 (Wed, 20 Mar 2019 07:28:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7kHv3KtWWjNuT4mD2) @jeffgarratt Thank you!

AndresMartinezMelgar.itcl (Wed, 20 Mar 2019 07:33:51 GMT):
What is it the meaning of error 503?

Lana2019 (Wed, 20 Mar 2019 08:05:50 GMT):
Morning, I have a question regard database. Does Hyperledger Fabric supports external sql database?

yacovm (Wed, 20 Mar 2019 08:22:54 GMT):
no

Lana2019 (Wed, 20 Mar 2019 08:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CeAREZJ6eNsahiyaF) @yacovm no as replying for my question? To give you more details. I'm using an sql database to store some data off chain but would like to use some of these data in my chaincode

Lana2019 (Wed, 20 Mar 2019 08:30:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CeAREZJ6eNsahiyaF) @yacovm no as replying for my question? To give you more details. I'm using an sql database to store some data off the blockchain but would like to use some of these data in my chaincode

yacovm (Wed, 20 Mar 2019 08:56:30 GMT):
oh then you just need your chaincode to be able to connnect to the database... that's possible....

NadaHamdi (Wed, 20 Mar 2019 09:39:02 GMT):
hello, while having different organizations on different machines, a container for each chaincode version is created on the corrospending organization's network that created it and the other organizations are not able to invoke..that following error is received: [endorser] SimulateProposal -> ERRO 055 [channel][b2c51c66] failed to invoke chaincode name:"chaincodeone" , error: chaincode fingerprint mismatch: data mismatch could not get chaincode code. Any ideas on how to let all organizations communicate to the same chaincode container?

Lana2019 (Wed, 20 Mar 2019 10:02:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MBfFpptSRchBk59w4) @yacovm Thanks! that's what I needed to know that it's applicable to connect chaincode to sql database. Is it proven though?

yacovm (Wed, 20 Mar 2019 10:19:26 GMT):
@Lana2019 you can run any logic you want in the chaincode

iserikov (Wed, 20 Mar 2019 10:33:12 GMT):
Good day to all. Could any help us? We can install chaicncode on peer, bu can't instatntiate. We see next logs on orderer `deliverBlocks -> WARN 037 [channel: ch0] Client authorization revoked for deliver request from 169.254.11.58:49126: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied`

stsmith1975 (Wed, 20 Mar 2019 10:44:10 GMT):
Has joined the channel.

stsmith1975 (Wed, 20 Mar 2019 10:46:02 GMT):
Hi - Does anyone know if its possible to use Indy and Fabric together. I have built an implementation on Fabric and want to be able to manage identities and access to the fabric blockchain using Indy. Thanks.

mastersingh24 (Wed, 20 Mar 2019 11:13:42 GMT):
@stsmith1975 - there is currently no native integration between Fabric and Indy

iserikov (Wed, 20 Mar 2019 11:27:29 GMT):
u

stsmith1975 (Wed, 20 Mar 2019 11:32:03 GMT):
@mastersingh24 thanks for your reply. Do you know if anything is in the pipeline and/or how I can keep up to date?

ericasaa (Wed, 20 Mar 2019 11:34:28 GMT):
Has joined the channel.

ericasaa (Wed, 20 Mar 2019 11:34:33 GMT):
Hello, please how do I install the hyperledger prerequisites on windows. No Tutorial was was given

foundationID (Wed, 20 Mar 2019 12:01:31 GMT):
Has joined the channel.

foundationID (Wed, 20 Mar 2019 12:03:39 GMT):
Hello! Is it possible to run chaincode periodically (e.g. every 30 minutes) without the involvement of an application?

di-waker (Wed, 20 Mar 2019 13:35:46 GMT):
Has joined the channel.

jeffgarratt (Wed, 20 Mar 2019 13:52:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9oDBEieQEB9YYa3Bb) @iserikov make sure you are requesting the instantiate using a user with cert associated with channel config admin privilege. This differs from the install which uses peer admin privilege.

Sarath_Kumar (Wed, 20 Mar 2019 13:53:32 GMT):
Hi All, https://github.com/hyperledger/education/issues/121 I am facing the issue which is recorded as bug in the above mentioned link, may i know the status or workaround for that. Error: *Transaction failed to be committed to the ledger due to ::TIMEOUT*

jaemin.lim (Wed, 20 Mar 2019 13:56:11 GMT):
Has joined the channel.

mlucc (Wed, 20 Mar 2019 14:01:25 GMT):
Hello, has anyone suffered this issue?[2019-03-20 13:49:53.987] [ERROR] update-chaincode - Failed to instantiate. cause:Error: The chaincode instantiate transaction was invalid, code:MVCC_READ_CONFLICT (node:9) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Error: The chaincode instantiate transaction was invalid, code:MVCC_READ_CONFLICT

mlucc (Wed, 20 Mar 2019 14:01:25 GMT):
Hello, has anyone suffered this issue?[2019-03-20 13:49:53.987] [ERROR] update-chaincode - Failed to instantiate. cause:Error: The chaincode instantiate transaction was invalid, *code:MVCC_READ_CONFLICT* (node:9) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Error: The chaincode instantiate transaction was invalid, *code:MVCC_READ_CONFLICT*

anuragprajapat (Wed, 20 Mar 2019 14:15:24 GMT):
Has joined the channel.

mlucc (Wed, 20 Mar 2019 14:30:09 GMT):
:no_mouth:

raphaelbenoit (Wed, 20 Mar 2019 14:44:24 GMT):
Hi there, in the Docs FAQ https://hyperledger-fabric.readthedocs.io/en/latest/Fabric-FAQ.html#ordering-service it says __that it is a highly discourage configuration if an organization acts in both an ordering and a application role__. This question created some doubts with my understanding of the ordering service. I always though all organizations in a network should have a peer that is part of the ordering service in order for them to participate in the consensus. But if this is not the case, who should be the ordering service without completely centralizing my network? I'm sure I'm not getting something here and am lookign forward to some enlightenment :bulb:

dave.enyeart (Wed, 20 Mar 2019 15:05:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m3DNYXXz9Js6DaDJe) @mlucc See https://hyperledger-fabric.readthedocs.io/en/latest/peers/peers.html#phase-3-validation , specifically the paragraph about "consistency checks". You will need to model your application and chaincode such that the same key is not updated in parallel.

mlucc (Wed, 20 Mar 2019 15:07:30 GMT):
thank you!

mlucc (Wed, 20 Mar 2019 15:10:38 GMT):
once I got this issue, if I apply the changes you suggest, will the ledger will be sane again when upgrading the chaincode?

GuillaumeCisco (Wed, 20 Mar 2019 15:47:47 GMT):
When instantiating a chaincode we get a `ProposalResponse`, which includes a `Response` which include a `payload`. Does anyone know how we can decode this payload. I have one that looks like: ``` b'\n\nexample_cc\x12\x031.0\x1a\x04escc"\x04vscc*(\x12\x0c\x12\n\x08\x01\x12\x02\x08\x00\x12\x02\x08\x01\x1a\x0b\x12\t\n\x07Org1MSP\x1a\x0b\x12\t\n\x07Org2MSP2D\n ]\x92u\xa2a\x0e\xe5S\r\x0c\xbd\x14iN8N$Se\xa5\xe3It\xf3\x92\xa9\x19~\xc0D$\x18\x12 \x9eD\xb72\xc2\xed\xef\xe1\xf3\xa5\xe1\x96\xcf\xeb~\xb2\xf9\xda\xda{\x0f\x87\x97\x12i"\xd3\xd4\x08SL#: \xd9@\xbb\x12\xa1\xf3K\xb6&xr\x9a\xd8\x19\x1d\xdb@\x1f\x06\xa6C\xc1^&SS\x19&\x93\xcf\xec\xa1B,\x12\x0c\x12\n\x08\x01\x12\x02\x08\x00\x12\x02\x08\x01\x1a\r\x12\x0b\n\x07Org1MSP\x10\x01\x1a\r\x12\x0b\n\x07Org2MSP\x10\x01' ```

mlucc (Wed, 20 Mar 2019 16:40:47 GMT):
HELLO!!! How can I clean dirty read/write blocks in fabric?

mlucc (Wed, 20 Mar 2019 16:41:11 GMT):
I can't upgrade the chaincode because there are blocks with code:MVCC_READ_CONFLICT

mlucc (Wed, 20 Mar 2019 16:41:11 GMT):
I can't upgrade the chaincode because there are blocks with *code:MVCC_READ_CONFLICT*

jeffgarratt (Wed, 20 Mar 2019 17:09:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kbu5djKr5HjswLZ5y) @mlucc there is no "cleaning" these blocks. They just denote the fact that the peer during the validation phase marked it invalid. In this case, the peer will NOT have applied the write sets.

ChinmayIngle (Wed, 20 Mar 2019 17:14:50 GMT):
https://stackoverflow.com/questions/55264970/updating-the-docker-compose-yaml-file-for-hyperledger-fabric-for-local-environme CAn someone answer this ?

ChinmayIngle (Wed, 20 Mar 2019 17:14:50 GMT):
https://stackoverflow.com/questions/55264970/updating-the-docker-compose-yaml-file-for-hyperledger-fabric-for-local-environme Cn someone answer this ?

ChinmayIngle (Wed, 20 Mar 2019 17:14:50 GMT):
https://stackoverflow.com/questions/55264970/updating-the-docker-compose-yaml-file-for-hyperledger-fabric-for-local-environme Can someone answer this ?

yacovm (Wed, 20 Mar 2019 17:17:19 GMT):
@jeffgarratt there is no cleaning but there is polishing!!

mnobilio (Wed, 20 Mar 2019 18:59:11 GMT):
Has joined the channel.

forumdata (Thu, 21 Mar 2019 00:38:05 GMT):
Hello, I configured single virtual machine in Azure as suggested in https://docs.microsoft.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-blockchain . Can anyone guide me as to how I can deploy the chain code. Any docs or videos etc to help me. I read about installing the chain code using hyperledger composer but the latest doc for azure mentions there is no support for hyperledger composer. I am new to blockchain and also azure. Appreciate any help. Thank you

ygnr (Thu, 21 Mar 2019 04:18:19 GMT):
@yacovm Can we do joins in couchdb in hyperledger fabric?

ygnr (Thu, 21 Mar 2019 04:18:19 GMT):
@yacovm Can we do joins in couchdb in hyperledger fabric? Is something like this(https://docs.couchdb.org/en/stable/ddocs/views/joins.html) possible?

freesam02 (Thu, 21 Mar 2019 04:19:28 GMT):
getinfo

freesam02 (Thu, 21 Mar 2019 04:35:54 GMT):
Hi~ Query to peer with channel getinfo return 256,767(block height) but query to peer with channel fetch newest return 256,766....Someone tell why this happen?

yacovm (Thu, 21 Mar 2019 07:55:47 GMT):
no clue, @dave.enyeart ? ^

BlankShrimp (Thu, 21 Mar 2019 07:59:29 GMT):
Has left the channel.

SashaPESIC (Thu, 21 Mar 2019 08:45:44 GMT):
Hello guys. I have trouble finding a good demo or example of cross-chaincode communication in HF. Can two chaincodes communicate and if yes, how? Do they have to be on the same channel to be able to do that? How would you call another chaincode's function from a chaincode? I did not find many information on this, and it seems that this is an extremely important topic to address.

seanli (Thu, 21 Mar 2019 09:12:23 GMT):
Has joined the channel.

yacovm (Thu, 21 Mar 2019 09:46:24 GMT):
@SashaPESIC you can call another chaincode on your peer via https://github.com/hyperledger/fabric/blob/release-1.4/core/chaincode/shim/interfaces.go#L76

SashaPESIC (Thu, 21 Mar 2019 09:57:07 GMT):
@yacovm Nice! Thanks a lot!

dave.enyeart (Thu, 21 Mar 2019 10:08:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ADabjaCmnGueRepGi) @ygnr No, only simple JSON queries are supported by Fabric, which uses the CouchDB _find API. To do more advanced queries (aggregates, analytics, etc) the recommended pattern is to use a block event listener to build a downstream fit-for-purpose data store. If you just need to retrieve a few associated documents however, you can simply do multiple queries from your chaincode to retrieve the documents you need.

Sarath_Kumar (Thu, 21 Mar 2019 10:11:28 GMT):

transactions success.PNG

janmpo (Thu, 21 Mar 2019 11:31:46 GMT):
Hi I'm trying to access function GetBlockByNumber from my code, but I get the error "Failed to get policy manage for channel [qscc]". With the same privileges, if I issue the command peer chaincode -C "mycc" -n qscc -c {'"Args":["GetBlockByNumber", "mycc", "1"]}' I got the info, however if I use invokeChaincode("GetBlockByNumber", args, "qscc") where args is a [][]byte that contains "mycc","1", I get the "Failed to get policy manage for channel [qscc]" error. Has anyone of you the same problem? Thanks

klkumar369 (Thu, 21 Mar 2019 11:33:10 GMT):
Hello! Is there an example which uses Private Collections using NodeJS? I see Marbles chaincode has private collection, but it is built in GO.

janmpo (Thu, 21 Mar 2019 12:01:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JvYBnK2hiPob9mdeB) I have opened as well a stackoverflow question https://stackoverflow.com/questions/55279774/hyperledger-fabric-invoke-qscc-getblockbynumber-via-invokechaincode

SamRasha (Thu, 21 Mar 2019 13:20:30 GMT):
Has joined the channel.

OscarRoman (Thu, 21 Mar 2019 15:22:21 GMT):
Hello, good afternoon colleagues, at this moment I am migrating from version 1.2 of fabric to version 1.4, but the manuals of the hyperledger official website I do not understand them at all, someone who can provide me with another means to learn how to build a network fabric 1.4 from 0? I would appreciate it enough !!!

Patriq (Thu, 21 Mar 2019 16:20:51 GMT):
@OscarRoman what is it that you don't understand?

adamhardie (Thu, 21 Mar 2019 16:59:27 GMT):
I have a stable network running ontop of kafka. We have 2 orderers, 1 channel, 1 anchor peer and 1 chaincode deployed Before switching to kafka and multiple orderers, we had barely any latency Now the same transactions can take up to 1 hour for some applications to receive a newly created block from the channel. The process is this: 1) application A commits a chaincode transaction to the ledger. 2) application A receives an update via a the chaincode event listener 3) application B waits for a huge, random amount of time to receive the block (between 20minutes and 1 hour) 3) application B processes its block and sends an acknowledgement

adamhardie (Thu, 21 Mar 2019 16:59:51 GMT):
is there a way I can debug the ordering node? I cant see much from the logs

garunkumar450 (Thu, 21 Mar 2019 17:14:32 GMT):
event listener

adamhardie (Thu, 21 Mar 2019 17:21:23 GMT):
is that related to "Receiving a chaincode event. ChaincodeEventListener should not be long lived as they can take up thread resources."

adamhardie (Thu, 21 Mar 2019 17:21:47 GMT):
how can I listen to events, should i timeout the listener and re attach at regular intervals or something

YoussefSadek (Thu, 21 Mar 2019 17:23:47 GMT):
Hi everyone, I have a question regarding `core/chaincode/transaction_contexts.go`: How can I understand the transaction_context? I am sporadically failling to install/upgrade chaincode and am getting the error the the txid (mychannel) already exists and would like to understand how this txid gets generated?

YoussefSadek (Thu, 21 Mar 2019 17:23:47 GMT):
Hi everyone, I have a question regarding `core/chaincode/transaction_contexts.go`: How can I understand the transaction_context? I am sporadically failling to install/upgrade chaincode and am getting the error the the txid (mychannel) already exists and would like to understand how this txid gets generated? (transaction_contexts.go line 59, v1.4 tag)

adamhardie (Thu, 21 Mar 2019 17:24:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tFetugwJiCTxHqQft) if this is in answer to me can you expand a little bit please? lol

githubcpc (Fri, 22 Mar 2019 02:21:19 GMT):
I find rest.address in core.yaml HLF v0.6. But I can't find core API in the later version. Why cancel the rest API ?

githubcpc (Fri, 22 Mar 2019 02:24:56 GMT):
All the links about the core API are dead here (https://openblockchain.readthedocs.io/en/latest/API/CoreAPI/#to-set-up-swagger-ui). Is it deprecated? If not, can someone provide the links?

githubcpc (Fri, 22 Mar 2019 02:45:13 GMT):
@yacovm

mosogrean (Fri, 22 Mar 2019 03:29:31 GMT):
Has joined the channel.

mosogrean (Fri, 22 Mar 2019 03:58:09 GMT):
I need some help. I try to create a new peer node that connects to existing fabric network on another machine. However, when I try to connect, there is an error message. The message is " Failed obtaining connection: Could not connect to any of the endpoints: [orderer:7050] ". I wish to ask how can I config the peer node so that it can connect to the orderer service on another port than 7050.

mosogrean (Fri, 22 Mar 2019 03:59:44 GMT):
config in the env of container.

garunkumar450 (Fri, 22 Mar 2019 05:50:22 GMT):
peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n chPreferences --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["sp","{"msisdn":"7702906226","svcprv":"VIL","reqno":"12345678","rmode":"1","ctgr":"1","cmode":"1,2","day":"1","time":"123","lrn":"1234","uts":"123456","cts":"1234567"}"]}'

garunkumar450 (Fri, 22 Mar 2019 05:50:41 GMT):
Error: chaincode argument error: invalid character 'm' after array element

EvansChang (Fri, 22 Mar 2019 06:28:28 GMT):
Hi everyone, I have a question regarding blockchain-explorer: when I run start.sh, it has show error like this `2019-03-22T06:25:32.189Z - error: [Channel.js]: TypeError: Cannot read property 'toArray' of null <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> Error: Failed to discover ::TypeError: Cannot read property 'toArray' of null at Channel._initialize (/Users/evanschang/Documents/nodeWorkspace/blockchain-explorer/node_modules/fabric-client/lib/Channel.js:347:11) at Received kill signal, shutting down gracefully Closed out connections` Could anyone can help me to deal this?

ShwetaTripathi (Fri, 22 Mar 2019 06:34:44 GMT):
Has joined the channel.

ShwetaTripathi (Fri, 22 Mar 2019 06:35:36 GMT):
How can we get the attributes for a user in the e-cert generated when the user is enrolled via node API calls? The user is registered on OpenLDAP server. I am able to get the attributes in the cert file when enrolling the user via fabric client CLI.

biligunb (Fri, 22 Mar 2019 08:18:42 GMT):
Has joined the channel.

biligunb (Fri, 22 Mar 2019 08:18:54 GMT):
Hi guys. I have a question about what can be stored to Hyperledger Fabric. I know CouchDB is used. I think it can be used to save an image as Base64. 1. Can a image be saved to CouchDB? 2, Is it ok to save image to CouchDB? (only for immutable documents)

biligunb (Fri, 22 Mar 2019 08:27:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9YLjre8od3Py3cdeP) @mosogrean Hi @mosogrean Are you using the official example? (fabric-samples) The `docker-compose.yml` configures all needed Port information so it can all connect to each other

anuragprajapat (Fri, 22 Mar 2019 09:07:47 GMT):
Hi, I am creating a Single Org with One peer. The network is used by three parties. How can we ensure who inoked the transaction?

anuragprajapat (Fri, 22 Mar 2019 09:08:14 GMT):
The identity of invoker party

Tommy109 (Fri, 22 Mar 2019 09:15:00 GMT):
downloaded and installing balance-transfer from fabric-samples. when I run npm install, with or without sudo, I am getting permission errors and missing modules

Tommy109 (Fri, 22 Mar 2019 09:15:55 GMT):

Clipboard - March 22, 2019 9:15 AM

Tommy109 (Fri, 22 Mar 2019 09:16:14 GMT):
any suggestions what might be causing this? fabric 1.4, node 9.6.0

florianc (Fri, 22 Mar 2019 09:19:25 GMT):
Probably not related, but from documentation:

florianc (Fri, 22 Mar 2019 09:19:25 GMT):
Versions other than the 8.x series are not supported at this time.

florianc (Fri, 22 Mar 2019 09:19:37 GMT):
(nodejs)

Tommy109 (Fri, 22 Mar 2019 09:31:35 GMT):
get the same errors with 8.9.4 for example

Tommy109 (Fri, 22 Mar 2019 09:31:35 GMT):
get the same errors with 8.9.4 for example @florianc

Vasanth (Fri, 22 Mar 2019 09:32:10 GMT):
hi friends , am in the process of developing a tool to manage the hyper ledger fabric networks please use this tool and share your feedbacks once its ready for testing. https://cc-chainops.com

Vasanth (Fri, 22 Mar 2019 09:32:10 GMT):
hi friends , am developing a tool to manage the hyper ledger fabric networks please use this tool and share your feedbacks once its ready for testing. https://cc-chainops.com

Sarath_Kumar (Fri, 22 Mar 2019 10:55:22 GMT):

chaincode methods not available.PNG

Tommy109 (Fri, 22 Mar 2019 10:59:31 GMT):
@florianc I was able to fix that by changing ownership of the fabric-samples folder. thanks for your help anyway

geekybot (Fri, 22 Mar 2019 11:00:03 GMT):
Has joined the channel.

geekybot (Fri, 22 Mar 2019 11:02:47 GMT):
Hi, I am facing the issue of ChannelEventHub has been shutdown in fabric-node-sdk

geekybot (Fri, 22 Mar 2019 11:02:48 GMT):

errorfabric.png

geekybot (Fri, 22 Mar 2019 11:03:16 GMT):
If there is a solution please help, thanks in advance

dave.enyeart (Fri, 22 Mar 2019 11:16:05 GMT):
@biligunb yes you can save any binary data you like into CouchDB... Fabric we persist it as a CouchDB 'attachment'. If you have a mix of JSON data and binary data, this makes sense. If you persist ONLY binary data it would be more efficient and perform better to use LevelDB.

dave.enyeart (Fri, 22 Mar 2019 11:16:05 GMT):
@biligunb yes you can save any binary data you like into CouchDB... Fabric we persist it as a CouchDB 'attachment'. If you have a mix of JSON data and binary data, this makes sense. If you persist ONLY binary data it would be more efficient and perform better to use LevelDB as state database.

dave.enyeart (Fri, 22 Mar 2019 11:16:05 GMT):
@biligunb yes you can save any binary data you like into CouchDB... Fabric will persist it as a CouchDB 'attachment'. If you have a mix of JSON data and binary data, this makes sense. If you persist ONLY binary data it would be more efficient and perform better to use LevelDB as state database.

dave.enyeart (Fri, 22 Mar 2019 11:18:08 GMT):
Also it is worth mentioning that for large data, many people use a pattern where the data is stored somewhere off-chain, with a hash and small amount of metadata store on-chain

dave.enyeart (Fri, 22 Mar 2019 11:18:08 GMT):
Also it is worth mentioning that for large data, many people use a pattern where the data is stored somewhere off-chain, with a hash of the data and small amount of metadata stored on-chain as proof

Patriq (Fri, 22 Mar 2019 13:08:32 GMT):
@Vasanth when is it out?

Vasanth (Fri, 22 Mar 2019 13:24:42 GMT):
i am planning for next week

Vasanth (Fri, 22 Mar 2019 13:24:57 GMT):
thanks for your intrest

SashaPESIC (Fri, 22 Mar 2019 13:48:52 GMT):
Hey guys. Check out a set of tools I have been working on for a while (https://chainrider.io/private). You can create Fabric networks and contracts in a matter of minutes (: You could also take a look at our YT channel (https://www.youtube.com/channel/UC0he04pR8q3AFS_X3mKybhQ) for cool tutorial videos. Let me know if you have any questions. Also i could hook you up with some vauchers to try out some more advanced use cases. Would be happy to receive feedback from the community.

florianc (Fri, 22 Mar 2019 13:49:39 GMT):
@Vasanth The notify me button does not do anything (at least from a user perspective)

klkumar369 (Fri, 22 Mar 2019 16:57:03 GMT):
Hello! Is there an example which uses Private Collections using NodeJS? I see Marbles chaincode has private collection, but it is built in GO. Thanks!

AbhijeetRastogi (Fri, 22 Mar 2019 18:19:28 GMT):
Has joined the channel.

Antimttr (Fri, 22 Mar 2019 18:44:04 GMT):
@SashaPESIC any chance of oyu supporting idemix and secure store in the future?

gad0lim (Fri, 22 Mar 2019 20:04:47 GMT):
can same enroll id be used to create multiple certs?

diestrin (Sat, 23 Mar 2019 05:46:25 GMT):
@klkumar369 here's an example of private data using Convector: https://github.com/worldsibu/convector-example-private-data/blob/master/packages/product-cc/src/product.controller.ts We're gonna publish a blog post in the next days so feel free to subscribe to our medium to be notified: https://medium.com/worldsibu/

SashaPESIC (Sat, 23 Mar 2019 11:26:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QpbEfFjGfunSGbvMa) @Antimttr Yes! Greate feedback. We plan to integrate both, its on our development roadmap. Should be out in a couple of months. Just to confirm, by secure store you mean private data, right?

ank13 (Sat, 23 Mar 2019 15:58:28 GMT):
composer network install command....What should be passed to networkVersion so that is selects best available vesrion

ank13 (Sat, 23 Mar 2019 15:58:28 GMT):
composer network install command....What should be passed to networkVersion so that is selects latest available vesrion

Antimttr (Sat, 23 Mar 2019 21:37:54 GMT):
@SashaPESIC yes, thats what i mean

Antimttr (Sat, 23 Mar 2019 21:40:30 GMT):
@SashaPESIC so that means you're building a java sdk gateway?

ANAMIKAKUNDU (Sun, 24 Mar 2019 05:44:27 GMT):
Has joined the channel.

TaamChan (Sun, 24 Mar 2019 12:39:21 GMT):
Has joined the channel.

TaamChan (Sun, 24 Mar 2019 12:39:43 GMT):
Hi all, with ethereum's web3 client, we can generate data's signature by calling web3.eth.sign(account, hash), and then verify that signature with ecrecover(hash, r, s, v), I'm wondering if the hyperledger-fabric-sdk-java has provided similar functions like that or not?

SashaPESIC (Sun, 24 Mar 2019 16:58:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ubdSZNeE4bw8GhDws) @Antimttr I am not sure i understand this? Can you explain?

JulianSolarte (Mon, 25 Mar 2019 00:28:34 GMT):
Hello, what is the difference between create an index with compositeKey, e.g color~name in Marbles example and create a normal index in META-INF e.g {"index":{"fields":["color","name"]},"ddoc":"indexColorName", "name":"indexColor","type":"json"}

biligunb (Mon, 25 Mar 2019 01:30:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kEjB54KuFhnwyDBMn) @dave.enyeart Thank you for the reply

mosogrean (Mon, 25 Mar 2019 03:42:45 GMT):
I need some help. I can't using a chaincode after chaincode was installed i can see this error "Container dev-peer2-org1.1552301399867.svc.cluster.local-cc1-1.1 has closed its IO channel", look like its can't to connect the "CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock" i don't sure. How can i fix this problem?

mosogrean (Mon, 25 Mar 2019 03:42:45 GMT):
I need some help. I can't use a chaincode after chaincode was installed i can see this error "Container dev-peer2-org1.1552301399867.svc.cluster.local-cc1-1.1 has closed its IO channel", look like its can't to connect the "CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock" i don't sure. How can i fix this problem?

anuragprajapat (Mon, 25 Mar 2019 09:14:05 GMT):
I had a basic question - "In what situations do we create multiple Orgs and in which situation do we create multiple peers?"

anuragprajapat (Mon, 25 Mar 2019 09:26:14 GMT):
I understand Org is logocal separation of Business entities

anuragprajapat (Mon, 25 Mar 2019 09:26:43 GMT):
But for peers.. why should I create multiple peers

SashaPESIC (Mon, 25 Mar 2019 10:14:00 GMT):
@anuragprajapat redundancy. Running one peer per org is OK from the architecture standpoint. However, if that peer is down for some reason, you have no access to your blockchain network. Running multiple peers allows fo redundancy and scalability as well.

raphaelbenoit (Mon, 25 Mar 2019 10:39:41 GMT):
Hi, I'm looking for a complex multi-organization tutorial with private data collections for `node.js`. Can anybody point me to a good and complete example? Thanks in advance

someguy (Mon, 25 Mar 2019 10:40:33 GMT):
good morning, where do i start if i want to develop chaincode for the hyperledger fabric

dave.enyeart (Mon, 25 Mar 2019 10:47:07 GMT):
@someguy Simple go tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html

dave.enyeart (Mon, 25 Mar 2019 10:47:14 GMT):
Simple node.js tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

dave.enyeart (Mon, 25 Mar 2019 10:47:17 GMT):
Intermediate node.js tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

someguy (Mon, 25 Mar 2019 10:48:49 GMT):
thanks a lot @dave.enyeart

marcello_romani_ocyan (Mon, 25 Mar 2019 11:09:23 GMT):
Has joined the channel.

marcello_romani_ocyan (Mon, 25 Mar 2019 11:10:53 GMT):
@gt

gt (Mon, 25 Mar 2019 11:10:56 GMT):
Has joined the channel.

marcello_romani_ocyan (Mon, 25 Mar 2019 11:11:04 GMT):
@GabrieleOcyan

GabrieleOcyan (Mon, 25 Mar 2019 11:11:16 GMT):
Has joined the channel.

marcello_romani_ocyan (Mon, 25 Mar 2019 11:16:05 GMT):
Morning guys, we're looking at the (painfully slow) Fabric throughput, has anyone been able to achieve significant improvements over the default configt?

marcello_romani_ocyan (Mon, 25 Mar 2019 11:16:05 GMT):
Morning guys, we're looking at the (painfully slow) Fabric throughput, has anyone been able to achieve significant improvements over the default config?

marcello_romani_ocyan (Mon, 25 Mar 2019 11:16:55 GMT):
Docs mention the number of endorsers and the amount of transactions per block to include as config params.

FlorentTheS (Mon, 25 Mar 2019 12:38:40 GMT):
Has joined the channel.

BHosper (Mon, 25 Mar 2019 13:20:15 GMT):
Has joined the channel.

BHosper (Mon, 25 Mar 2019 13:20:47 GMT):
Hi all, We are currently working on a project with Hyperledger Fabric 1.2.1 and we are using chaincode events to notify only one of multiple micro-services of a new asset (of a certain type) being created on the blockchain. We are sending out the chaincode event by using .setEvent(eventType, BufferPayload) after the putState. And on the micro-service we have set up the eventListener to listen to that eventType and do something with the BufferPayload. This all works fine, but here comes where we find some undesired behavior: When we restart the micro-service, it again registers to the chaincodeEvent, which is ofcourse intended, but then it also retrieves/gets the last event that has been sent. This event has already been handled by a previous instance of the micro-service, and thus desired behavior would be that this event would not be picked up again (since it is an old event). Is there any way we can attain this behavior?

davidkel (Mon, 25 Mar 2019 13:30:39 GMT):
@BHosper are you using fabric-sdk-node for your microservice ?

BHosper (Mon, 25 Mar 2019 13:32:37 GMT):
@davidkel Yes we are.

davidkel (Mon, 25 Mar 2019 13:33:15 GMT):
@BHosper Suggest you ask on the #fabric-sdk-node channel and I will provide an answer there

JulianSolarte (Mon, 25 Mar 2019 14:05:53 GMT):
Hello, what is the difference between create an index with compositeKey, e.g color~name in Marbles example and create a normal index in META-INF e.g {"index":{"fields":["color","name"]},"ddoc":"indexColorName", "name":"indexColor","type":"json"}

Antimttr (Mon, 25 Mar 2019 14:22:41 GMT):
@marcello_romani_ocyan did you try looking at the high throughput example?

Antimttr (Mon, 25 Mar 2019 14:22:52 GMT):
it's supposed to be able to process more transactions/sec

adamhardie (Mon, 25 Mar 2019 15:25:08 GMT):
fabric on a kafka + 2x ordering node swarm network is still having issues. one application commits block 5590 [update via chaincode] to the anchor peer (peer0.company) the committing application receives a chaincode event into the listener for the block

adamhardie (Mon, 25 Mar 2019 15:25:22 GMT):
other applications listing for the blocks / events do not receive anything

adamhardie (Mon, 25 Mar 2019 15:25:37 GMT):
this system was working on a simple network (1x orderer, no kafka / not swarm)

adamhardie (Mon, 25 Mar 2019 15:26:14 GMT):
how can i debug the propagation of the block to the organisation's peer ? Is there a known issue that would cause non delivery / slowness ?

YamilGiralda (Mon, 25 Mar 2019 16:10:09 GMT):
Has joined the channel.

YamilGiralda (Mon, 25 Mar 2019 16:10:35 GMT):
I am creating an electronic voting software on the Hyperledger Fabric platform and I need some transactions to be carried out by using ecerts "X509 MSP" and other transactions using "idemix MSP". That is, in some transactions, users must be recognized and in other transactions they must not. I thought about doing two different channels, one that uses "X509 MSP" and the other that uses "idemix MSP", is it possible that both channels communicate with each other? Is there any other better option to implement the above? I am a bit lost if someone were able to direct me to a solution I would appreciate it very much.

Antimttr (Mon, 25 Mar 2019 16:13:25 GMT):
I would think that if you have a peer in both of the channels, it could perform logic based on access to both of the channel's data

JulianSolarte (Mon, 25 Mar 2019 16:15:11 GMT):
Hello, what is the difference between create an index with compositeKey, e.g color~name in Marbles example and create a normal index in META-INF e.g {"index":{"fields":["color","name"]},"ddoc":"indexColorName", "name":"indexColor","type":"json"}

bhithesh (Mon, 25 Mar 2019 16:15:14 GMT):
I'm having a bad channel ID error, I tried to change it back to byfn-sys-channel but it is still taking the old name. I monitored the error long in ordered container.

bhithesh (Mon, 25 Mar 2019 16:15:37 GMT):
Can anyone help me ?

bhithesh (Mon, 25 Mar 2019 16:15:54 GMT):
*log

bhithesh (Mon, 25 Mar 2019 16:18:36 GMT):
I tried deleting all the channel artifacts and containers, still not working.

Antimttr (Mon, 25 Mar 2019 16:25:50 GMT):
@SashaPESIC I mean that your existing client is built in nodejs from what I read on your website. However, the idemix feature is only avaliable to Java SDK implementations, so in order to support it you'd have to rewrite your client in JavaSDK, correct?

YamilGiralda (Mon, 25 Mar 2019 16:28:04 GMT):
@Antimttr Thanks so much, I'm not sure how to do that, but I'm going to try by that way.

raphaelbenoit (Mon, 25 Mar 2019 17:15:15 GMT):
Hello! I have some questions regarting `Convector` and `Hurley` ? 1. Are they production-ready? 2. Will they stay open-source and be kept up-to-date with further development (already learned Hyperledger Composer and I'm now struggleing getting into Fabric)? 3. How much of a benefit do I get from using it -> is is worth it? Hope to get some feedback to those (probably very subjective) questions!

diestrin (Mon, 25 Mar 2019 18:51:08 GMT):
Hey @raphaelbenoit I'm one of the core devs of both of them. 1) Convector is production ready, we and some of the community members already have contracts running in production with it with no problems 1.b) Hurley is meant to create development environments quick and easy, it's not meant for production so it won't be production ready since it's not its focus 2) Yes, they both will always be open source, actually Convector is now part of Hyperledger Labs, and we're pushing to make it a fully fledged Hyperledger project. 2.b) About the support, Convector was born with 1.1, but due to the way it interacts with the fabric library, we had to make virtually no changes at all in the core framework to make it support 1.4, because you can always get direct access to the fabric-client libraries. The changes we made were to make it even easier to consume the libraries. 3) At the end convector generates a regular javascript chaincode, it's nothing different, the benefits that you get are all the abstractions, validations, and proven solutions that all the community already experienced. When you're writing a smart contract you really want to focus on your business logic, but if you mix this with really basic tasks like parsing data from buffers to strings to objects, etc, etc, chances are you're more prone to errors. All convector does is abstract those simple tasks for you in a way you feel confortable to just focus on your actual logic

diestrin (Mon, 25 Mar 2019 18:57:18 GMT):
Additionally but very important, Convector goes beyond Fabric, the controller/model pattern it uses is not specific to Fabric in any way, the way we support Fabric is by injecting an adapter to it. The adapter is the one providing the communication layer, Convector has an official fabric adapter, but there's nothing stopping the community or yourself to write a new adapter (it's actually very simple to write one), so in case there's something we don't officially support, you can always write or fork one of the adapters to adjust to your custom needs

diestrin (Mon, 25 Mar 2019 18:59:20 GMT):
Feel free to reach us in our community chat in Discord: https://discordapp.com/invite/twRwpWt

MHBauer (Mon, 25 Mar 2019 19:30:01 GMT):
Has joined the channel.

raphaelbenoit (Mon, 25 Mar 2019 19:49:37 GMT):
@diestrin thanks so much for the detailed answer! I gave it a quick look and it looks really promising. I joined the discord and will dive deeper into it tomorrow

Antimttr (Mon, 25 Mar 2019 22:07:40 GMT):
for implementing an sdk client, are people typically storing the EnrollmentSecret of users in the database in plainttext? Or are they hashing it? Seems like it would be unusable in that case. Or is it not being stored at all?

Antimttr (Mon, 25 Mar 2019 22:08:36 GMT):
In the example test applications it seems like they're storing it in the "sample stores" in plaintext

Antimttr (Mon, 25 Mar 2019 22:08:49 GMT):
but those aren't best practice, so i'm curious what IS best practice?

xquisito (Mon, 25 Mar 2019 22:47:19 GMT):
Has joined the channel.

xquisito (Mon, 25 Mar 2019 22:49:49 GMT):
Someone knows who to call a different contract in the same chaincode using peer cli (peer chaincode invoke)? I just managed to call the methods of the first contract I load in the index.js.

diestrin (Tue, 26 Mar 2019 01:42:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BgyvymXsRFbso2y65) @Antimttr depending on the lvl of security you need, you can encrypt it just like any other sensitive information, you can also use a passphrase coming from the user to make it impossible for you to ever stole their secret and act on their behalf

watts (Tue, 26 Mar 2019 01:53:24 GMT):
Has joined the channel.

biswanath035 (Tue, 26 Mar 2019 02:50:13 GMT):
Has joined the channel.

mosogrean (Tue, 26 Mar 2019 02:53:20 GMT):
i found error that is " ERRO 361 Failed connecting to orderer0.1552301399867.svc.cluster.local:7050 , error: context deadline exceeded" but i set env of docker with "CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer0.1552301399867.svc.cluster.local:31902" and it isn't help. how can i fix them?

JulianSolarte (Tue, 26 Mar 2019 03:12:01 GMT):
Hello, what is the difference between create an index with compositeKey, e.g color~name in Marbles example and create a normal index in META-INF e.g {"index":{"fields":["color","name"]},"ddoc":"indexColorName", "name":"indexColor","type":"json"}

narayanareddybvvr (Tue, 26 Mar 2019 05:05:51 GMT):
Has joined the channel.

narayanareddybvvr (Tue, 26 Mar 2019 05:06:09 GMT):
bvvr@bvvr-Virtual-Machine:~/nrbvvr-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile nrbvvr-network@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network is already installed on all the peers Command failed bvvr@bvvr-Virtual-Machine:~/nrbvvr-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile nrbvvr-network@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: The business network is already installed on all the peers Command failed

keshav120 (Tue, 26 Mar 2019 06:37:30 GMT):
Has joined the channel.

keshav120 (Tue, 26 Mar 2019 06:37:59 GMT):
Hi, docker exec cliMagnetoCorp peer chaincode install -n papercontract -v 0 -p /opt/gopath/src/github.com/contract -l node

keshav120 (Tue, 26 Mar 2019 06:38:36 GMT):
in your documentation, https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html . you have written above to install chaincode. but i m not able to install . its giving destination not found error

keshav120 (Tue, 26 Mar 2019 06:38:51 GMT):
my question is how does /opt/gopath/src/github.com/contract come from in your documentation. its never mentioned anywhere ./../../../../organization/magnetocorp:/opt/gopath/src/github.com/ its written in docker-composer.yml. how /opt path is related and connected here ?

AndresMartinezMelgar.itcl (Tue, 26 Mar 2019 07:16:25 GMT):
hello, if the hyperledger network has fallen, but I still have the different configuration files (ledger, anchorPeer, channel) can I raise it again?

kaisos (Tue, 26 Mar 2019 09:14:30 GMT):
Which is the most appropriate way to share client certificates to end users of a Hyperledger fabric network? I have already set up a java sdk client to Register and enroll users using admin Credentials. At the end of the scenario i have a Username and a Password for each user. What i cannot find is where client certificates are stored at the local MSP and how i can share them to the actual end users. Any recommendation or example of a proposed solution will be appreciated.

jozefchmelar (Tue, 26 Mar 2019 09:21:59 GMT):
Has joined the channel.

marcello_romani_ocyan (Tue, 26 Mar 2019 09:27:38 GMT):
@narayanareddybvvr I'm not familiar with Composer, but that error message looks to me like it's trying to do an instantiate when it should do an upgrade

narayanareddybvvr (Tue, 26 Mar 2019 09:36:33 GMT):
how to make transactions persistant even we do switch off our system

keshav120 (Tue, 26 Mar 2019 10:29:45 GMT):
ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: network f4db185eace3bc53cb112eadbd9f007a2c687862adfb100f3e0f449c1ae9df49 not found

keshav120 (Tue, 26 Mar 2019 10:30:11 GMT):
can someone help me while running sudo docker-compose -f docker-compose.yml up -d cliMagnetoCorp

vsadriano (Tue, 26 Mar 2019 10:30:55 GMT):
Hi! I'm trying start a new network with capabilities and I'm getting the error bellow: ```shell INFO 001 Loading configuration [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 21 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka]' has invalid keys: Capabilities, Policies * 'Profiles[SampleDevModeKafka].Application' has invalid keys: Capabilities, Policies * 'Profiles[SampleDevModeKafka].Application.Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies * 'Profiles[SampleDevModeKafka].Orderer' has invalid keys: Capabilities, Policies * 'Profiles[SampleDevModeKafka].Orderer.Organizations[0]' has invalid keys: Policies * 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities, Policies * 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: Policies * 'Profiles[TwoOrgsChannel].Application.Organizations[1]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities, Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities, Policies * 'Profiles[TwoOrgsOrdererGenesis].Orderer.Organizations[0]' has invalid keys: Policies ``` I'm getting the same erro when I run `first network` sample. Can someone help me?

vsadriano (Tue, 26 Mar 2019 10:34:56 GMT):
I found [it](https://stackoverflow.com/questions/48985776/hyperledger-fabric-failed-to-generate-orderer-genesis-block). Tks!

ajaydatla (Tue, 26 Mar 2019 10:42:08 GMT):
Has joined the channel.

ajaydatla (Tue, 26 Mar 2019 10:42:11 GMT):
How to upgrage/update chaincode in hyperledger fabric

ajaydatla (Tue, 26 Mar 2019 10:42:27 GMT):
I am upgrading chaincode by changing the version in startFabric.sh file and then running ./startFabric.sh javascript command. So is this the right way or is there any command like peer chaincode install -p chaincodedev/chaincode/sacc -n mycc -v 0

vsadriano (Tue, 26 Mar 2019 10:45:13 GMT):
@ajaydatla see [this](https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html#upgrade).

ajaydatla (Tue, 26 Mar 2019 10:47:43 GMT):
I am new to hyperledger fabric and I am not understanding this

ajaydatla (Tue, 26 Mar 2019 10:48:36 GMT):
What to do after I edit version in startFabric.sh?

kaisos (Tue, 26 Mar 2019 11:00:03 GMT):
use the cli to install the same CC but with newer version

ajaydatla (Tue, 26 Mar 2019 11:03:25 GMT):
Thanks I will by

ajaydatla (Tue, 26 Mar 2019 11:03:28 GMT):
try

ajaydatla (Tue, 26 Mar 2019 11:06:03 GMT):
How? What will be the command?

kaisos (Tue, 26 Mar 2019 11:07:05 GMT):
peer chaincode install -p chaincodedev/chaincode/sacc -n mycc -v 1

mvaneijk (Tue, 26 Mar 2019 11:11:37 GMT):
Has joined the channel.

ajaydatla (Tue, 26 Mar 2019 11:12:54 GMT):
command peer not found, it is saying

mvaneijk (Tue, 26 Mar 2019 11:15:35 GMT):
hi all, I am trying out the first-network example, but the orderer docker container crashes on startup with this in the log: ``` 2019-03-26 11:10:14.925 UTC [orderer.commmon.multichannel] newLedgerResources -> PANI 005 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") I am not really sure if that is caused by a misconfiguration, or is this a remote expired certificate? ```

mvaneijk (Tue, 26 Mar 2019 11:15:35 GMT):
hi all, I am trying out the first-network example, but the orderer docker container crashes on startup with this in the log: ``` 2019-03-26 11:10:14.925 UTC [orderer.commmon.multichannel] newLedgerResources -> PANI 005 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.example.com") ```I am not really sure if that is caused by a misconfiguration, or is this a remote expired certificate?

mvaneijk (Tue, 26 Mar 2019 11:22:22 GMT):
I just used `byfn.sh generate` and `byfn.sh up`

mvaneijk (Tue, 26 Mar 2019 11:30:22 GMT):
ok, somehow it runs trough, I just tried it a few times more, also with non default channel names

mvaneijk (Tue, 26 Mar 2019 11:31:35 GMT):
I don't like self solving problems ..=D

Diegoescalonaro (Tue, 26 Mar 2019 11:43:16 GMT):
Has joined the channel.

ajaydatla (Tue, 26 Mar 2019 11:45:06 GMT):
Does anyone knows the cli docker image name, so that I can pull image?

vsadriano (Tue, 26 Mar 2019 11:57:42 GMT):
Can someone help me with this: ```shell [blocksProvider] DeliverBlocks -> ERRO 035 [mychannel] Got error &{FORBIDDEN} [ConnProducer] DisableEndpoint -> WARN 036 Only 1 endpoint remained, will not black-list it ```

vsadriano (Tue, 26 Mar 2019 11:57:42 GMT):
Can someone help me with this: ```shell [blocksProvider] DeliverBlocks -> ERRO 035 [mychannel] Got error &{FORBIDDEN} [ConnProducer] DisableEndpoint -> WARN 036 Only 1 endpoint remained, will not black-list it ```

rahulrajpl (Tue, 26 Mar 2019 12:08:08 GMT):
Has joined the channel.

klkumar369 (Tue, 26 Mar 2019 12:12:22 GMT):
Hello! From one of the blogs I have read, *adding an index to the Chanicode deployment* is the solution for scaling up the performance of complex queries execution of the world state. Can someone explain what exactly it means?

JohnR (Tue, 26 Mar 2019 12:23:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gAjJcq3Yk5sJRrE9p) @klkumar369 As far as I know it's more important when using couchdb, in that case the result is more or less the same as an index in a traditional sql database

JohnR (Tue, 26 Mar 2019 12:24:09 GMT):
Also see https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_tutorial.html

sandeepsingh6 (Tue, 26 Mar 2019 13:19:47 GMT):
Has joined the channel.

sandeepsingh6 (Tue, 26 Mar 2019 13:19:50 GMT):
getting this error on composer network start

sandeepsingh6 (Tue, 26 Mar 2019 13:20:02 GMT):
Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid endorsement system chaincode)

klkumar369 (Tue, 26 Mar 2019 14:27:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jrgkjy8TSok8LPbkY) @JohnR Thank you.. Makes sense.

JulianSolarte (Tue, 26 Mar 2019 16:22:50 GMT):
Someone can help me with this question? https://stackoverflow.com/questions/55349512/what-is-the-difference-between-create-an-index-with-compositekey-and-a-normal-in?noredirect=1#comment97438955_55349512

thedimo (Tue, 26 Mar 2019 22:31:51 GMT):
Has joined the channel.

thedimo (Tue, 26 Mar 2019 22:35:21 GMT):
Hi All! Any help for issues with the "first-network" fabric sample? When running the first "./byfn.sh up" command form the instructions here https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I run into the following errors:

thedimo (Tue, 26 Mar 2019 22:36:32 GMT):
`2019-03-26 22:36:07.870 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-03-26 22:36:07.898 UTC [cli.common] readBlock -> INFO 002 Received block: 0 ===================== Channel 'mychannel' created ===================== Having all peers join the channel... + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block `

thedimo (Tue, 26 Mar 2019 22:37:44 GMT):
this is on Ubuntu 18.10

sandy (Wed, 27 Mar 2019 01:54:54 GMT):
Is it possible to update the level state DB of a particular peer without chaincode endorsements ?

sah (Wed, 27 Mar 2019 03:30:39 GMT):
Hi all, I want to use the cli container from fabric-samples/first-network to connect to a test network I have hosted on BlueMix; first of all I want to know if this is possible, secondly where would I find (helpful) instructions to do so? I've just been trying with https://cloud.ibm.com/docs/services/blockchain/howto?topic=blockchain-remote-peer-aws-operate#remote-peer-aws-operate-cli-operate but I'm a LOT lost

narayanareddybvvr (Wed, 27 Mar 2019 04:25:13 GMT):
how to make block chain network persistent i.e whatever data/transaction we are creating should not be lost on restart/teardown process and enabling multiple users for REST server.

sooraj2189 (Wed, 27 Mar 2019 04:28:24 GMT):
Has joined the channel.

AkhilKura (Wed, 27 Mar 2019 04:33:52 GMT):
i want to add organisation onto the running containers is it possible ?

AkhilKura (Wed, 27 Mar 2019 04:34:59 GMT):
adding organisation onto a running network

sooraj2189 (Wed, 27 Mar 2019 04:37:55 GMT):
Hi, all. I am having two doubts. 1.) How to run the composer rest server as background service. While creating a sample app using the composer playground andd composer rest server, you have to start both to work. composer playground can be started using "nohup" but the composer rest server cannot as user should pass values into ther terminal so started. So i am stuck there. Please take a look here https://stackoverflow.com/questions/55331567/how-to-pass-answers-to-bash-script-composer-rest-server-options-through-text-f 2.) Have anybody created a network that can accpets peers from outside in composer playgrond ? I have checked the imb developers channel in youtube they say that the whole process is complicated and then they move on with the IBM blockchain enterprise edition gui where they add the peers manuallly. Anybody have done this ? How to automatically add peers like in the case of peer to peer network where we join automatically to the network ? If somebody have any idea please do reply because in some point or other lot of people will come across this. so your answers/hints will help others too..

SatheeshNehru (Wed, 27 Mar 2019 05:14:06 GMT):
in what possible ways the data in hyperledger fabirc can be changed what i mean is why there is need for endorsement??

SatheeshNehru (Wed, 27 Mar 2019 05:14:39 GMT):
in what possible ways the data in hyperledger fabirc can be changed what i mean is why there is need for endorsement??

AkshayAshok (Wed, 27 Mar 2019 05:53:28 GMT):
has anyone tried to use the hyperledger explorer? its loading speed is tooo slow, is there any solution for this?

SashaPESIC (Wed, 27 Mar 2019 07:53:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6ZiGkthqbrxWN6NFm) @AkshayAshok I use it a lot on all of my networks. Yes, its slow. Sometimes, unfortunatelly, its better to restart the explorer than wait for all the transactions to show. There is something wrong with the pulling mechanism there...

VictorStroganov (Wed, 27 Mar 2019 08:35:28 GMT):
Hi all! I have a problem during nodejs chaincode instantiation: fabric-ccenv container hangs with "npm sill install loadAllDepsIntoIdealTree" message. Can anyone help?

anuragprajapat (Wed, 27 Mar 2019 08:43:47 GMT):
On invoking query function in chainocde I always get - "Chaincode invoke successful. result: status:200 payload:"{}""

anuragprajapat (Wed, 27 Mar 2019 08:43:56 GMT):
The result is {} all the time

anuragprajapat (Wed, 27 Mar 2019 08:44:17 GMT):
Can somebody help me if they have faced similar problem

amanjain (Wed, 27 Mar 2019 08:44:53 GMT):
@anuragprajapat which fabric version you are using?

anuragprajapat (Wed, 27 Mar 2019 08:45:00 GMT):
1.4.0

amanjain (Wed, 27 Mar 2019 08:45:34 GMT):
@anuragprajapat Can you share invoke command that you have used?

anuragprajapat (Wed, 27 Mar 2019 08:45:50 GMT):
peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n payzor -c '{"function":"queryPayment","Args":["PAY0"]}'

AkshayAshok (Wed, 27 Mar 2019 08:46:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HDAQJms6NmkibviA6) @SashaPESIC thanks sasha!!

amanjain (Wed, 27 Mar 2019 08:46:40 GMT):
@anuragprajapat what was the endorsement policy?

anuragprajapat (Wed, 27 Mar 2019 08:47:01 GMT):
I have simply tried to run a modified fabcar example

anuragprajapat (Wed, 27 Mar 2019 08:47:21 GMT):
did not specify any endorsement policy explicitly

anuragprajapat (Wed, 27 Mar 2019 08:48:04 GMT):
default escc vscc it has echoed

amanjain (Wed, 27 Mar 2019 08:48:07 GMT):
share instansiate command also

anuragprajapat (Wed, 27 Mar 2019 08:48:30 GMT):
peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n payzor -l "$CC_RUNTIME_LANGUAGE" -v 1.0 -c '{"Args":[]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

anuragprajapat (Wed, 27 Mar 2019 08:49:03 GMT):
this is the fabcar instantiate command i tweaked

amanjain (Wed, 27 Mar 2019 08:49:34 GMT):
@anuragprajapat use this command:-peer chaincode invoke -o orderer.example.com:7050 --peeraddress peer0.example.com -C mychannel -n payzor -c '{"function":"queryPayment","Args":["PAY0"]}'

amanjain (Wed, 27 Mar 2019 08:49:34 GMT):
@anuragprajapat use this command:-peer chaincode invoke -o orderer.example.com:7050 --peerAddresses peer0.example.com -C mychannel -n payzor -c '{"function":"queryPayment","Args":["PAY0"]}'

anuragprajapat (Wed, 27 Mar 2019 08:50:05 GMT):
Error: unknown flag: --peeraddress

amanjain (Wed, 27 Mar 2019 08:50:32 GMT):
you have to add --peerAddresses

anuragprajapat (Wed, 27 Mar 2019 08:50:39 GMT):
ok

anuragprajapat (Wed, 27 Mar 2019 08:51:30 GMT):
Error: error getting endorser client for invoke: endorser client failed to connect to peer0.example.com: failed to create new connection: context deadline exceeded

amanjain (Wed, 27 Mar 2019 08:52:02 GMT):
replace peer0.example.com to your peer address

amanjain (Wed, 27 Mar 2019 08:52:59 GMT):
i think it will be peer0.org1.example.com

anuragprajapat (Wed, 27 Mar 2019 08:53:51 GMT):
yes

anuragprajapat (Wed, 27 Mar 2019 08:53:56 GMT):
still same error

anuragprajapat (Wed, 27 Mar 2019 08:54:06 GMT):
sorry i am new to Fabric

anuragprajapat (Wed, 27 Mar 2019 08:54:30 GMT):
Error: error getting endorser client for invoke: endorser client failed to connect to peer0.org1.example.com: failed to create new connection: context deadline exceeded

amanjain (Wed, 27 Mar 2019 08:55:44 GMT):
$ docker ps will give you peer address

anuragprajapat (Wed, 27 Mar 2019 08:56:00 GMT):
i saw that

anuragprajapat (Wed, 27 Mar 2019 08:56:22 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ed436ead1a25 dev-peer0.org1.example.com-payzor-1.0-bd14a275ecaabfb954be31c602100c435f8595b3b112b45d8f5b134822719310 "chaincode -peer.a..." 6 minutes ago Up 6 minutes dev-peer0.org1.example.com-payzor-1.0 135c8eba17b6 hyperledger/fabric-tools "/bin/bash" 6 minutes ago Up 6 minutes cli e2bdb87cd1cd hyperledger/fabric-peer "peer node start" 7 minutes ago Up 7 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com cb1d19c39747 hyperledger/fabric-couchdb "tini -- /docker-e..." 7 minutes ago Up 7 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb 0a6607d9cf3c hyperledger/fabric-ca "sh -c 'fabric-ca-..." 7 minutes ago Up 7 minutes 0.0.0.0:7054->7054/tcp ca.example.com 3de8ba8a54a0 hyperledger/fabric-orderer "orderer" 7 minutes ago Up 7 minutes 0.0.0.0:7050->7050/tcp orderer.example.com

amanjain (Wed, 27 Mar 2019 08:56:23 GMT):
peer0.org1.example.com:7051

amanjain (Wed, 27 Mar 2019 08:56:35 GMT):
use this full address

anuragprajapat (Wed, 27 Mar 2019 08:56:39 GMT):
okay

amanjain (Wed, 27 Mar 2019 08:56:47 GMT):
i forgot to mention

anuragprajapat (Wed, 27 Mar 2019 08:57:12 GMT):
Chaincode invoke successful. result: status:200 payload:"{}"

amanjain (Wed, 27 Mar 2019 08:57:43 GMT):
open couchdb in your browser http://localhost:5984/_utils/

amanjain (Wed, 27 Mar 2019 08:57:57 GMT):
and check data exists or not

anuragprajapat (Wed, 27 Mar 2019 08:58:23 GMT):
ok

amanjain (Wed, 27 Mar 2019 09:00:30 GMT):
first use this command to insert data:- *peer chaincode invoke -o orderer.example.com:7050 --peerAddresses peer0.example.com:7051 -C mychannel -n payzor -c '{"Args":["initLedger"]}'*

amanjain (Wed, 27 Mar 2019 09:15:22 GMT):
@anuragprajapat issue resolved???

SatheeshNehru (Wed, 27 Mar 2019 09:30:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EmbioERQAMbxvnEZk) .

sureshtedla (Wed, 27 Mar 2019 09:37:20 GMT):
@gatakka @mastersingh24 @sstone1 Hi All, Please find below diagram This use case comes under supplychain (Car Industry) Customer Show Rooms ABC Car Company Engine Vendor Card body Vendor Interior vendor Engine Body pistones Packing Metal glass roof part Seats dashboard cabin In above diagram ABC Car Company is the Super Admin, ABC Car Company can't manufacture all the parts required to prepare full assemble car. Different parts are manufactured by different vendors Under ABC Car Company three vendors are present names Engine Vendor, Card body Vendor and Interior Vendor Under Engine vendor there are three more sub vendors are present Named i.e Engine body, pistones and Packing In the same way Card body vendor also having its own three sub vendors names Metal,glass and roof part Interior vendor having three sub vendors named seats,dashboard and cabin. In this scenario Assume ABC Car Company wants to know full life cycle of this Car But Final Customer he can't see vendors details but ABC Car Company he need to all details about customers and vendors details Customer ---> Show rooms ----> ABC Car Company --> Engine Vendor -->Card body vendor Transactions that are happening between two participants that details can seen that those two participants If ABC Car Company give permission to show rooms this show rooms can able to see vendors details as well This type scenario is possible in Hyperledger Fabric How can ABC Car Company track all these details If ABC Car Company give permission to show room dealer he can alos able to see full life cycle of car How can we Implement this scenario in Hyperledger Fabric I am waiting for your response Thanks Suresh

rthatcher (Wed, 27 Mar 2019 10:03:31 GMT):
@sureshtedla - there is a section in the FAQ of the Fabric docs that introduces Access Control: https://hyperledger-fabric.readthedocs.io/en/latest/Fabric-FAQ.html?highlight=access%20control You might want to look into: "Fourth, you can restrict data access to certain roles in your organization, by building access control into the chaincode logic." The *ClientIdentity* object will enable you to examine Attributes that you can use for implementing your access control. Client Identity for NodeSDK is described here: https://fabric-shim.github.io/release-1.3/fabric-shim.ClientIdentity.html and for Go here: https://github.com/hyperledger/fabric/blob/master/core/chaincode/shim/ext/cid/README.md Attributes are set in the FabricCA when you register or modify Identities.

anuragprajapat (Wed, 27 Mar 2019 10:10:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JrS2DAEpDkgdps9oS) @amanjain @amanjain I dont have web access to this docker instance

anuragprajapat (Wed, 27 Mar 2019 10:10:11 GMT):
i am using cli only

anuragprajapat (Wed, 27 Mar 2019 10:10:18 GMT):
i am logging in there

anuragprajapat (Wed, 27 Mar 2019 10:10:24 GMT):
from cli

sureshtedla (Wed, 27 Mar 2019 10:14:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ssMAjQAk268k9P882) @rthatcher Thank you I will check the links

amanjain (Wed, 27 Mar 2019 10:16:10 GMT):
@anuragprajapat have you open the url i have shared ? because couchdb give you the web automatically

anuragprajapat (Wed, 27 Mar 2019 10:18:17 GMT):
Fabric is setup in an amazon ec2

anuragprajapat (Wed, 27 Mar 2019 10:18:27 GMT):
i dont have http access to that box

anuragprajapat (Wed, 27 Mar 2019 10:19:01 GMT):
any other method to debug this? FYI when i query with an unsaved key, i dont get {}

anuragprajapat (Wed, 27 Mar 2019 10:19:09 GMT):
i get a blank

anuragprajapat (Wed, 27 Mar 2019 10:19:25 GMT):
if I query PAY0 - i get {}

anuragprajapat (Wed, 27 Mar 2019 10:24:40 GMT):
on docker ps i am getting this extra peer

anuragprajapat (Wed, 27 Mar 2019 10:24:42 GMT):
ed436ead1a25 dev-peer0.org1.example.com-payzor-1.0-bd14a275ecaabfb954be31c602100c435f8595b3b112b45d8f5b134822719310 "chaincode -peer.a..." 2 hours ago Up 2 hours dev-peer0.org1.example.com-payzor-1.0

anuragprajapat (Wed, 27 Mar 2019 10:24:46 GMT):
@amanjain

amanjain (Wed, 27 Mar 2019 10:41:27 GMT):
@anuragprajapat this is the chaincode container

anuragprajapat (Wed, 27 Mar 2019 10:48:06 GMT):
ok

florianc (Wed, 27 Mar 2019 10:54:32 GMT):
When upgrading a chaincode, does Fabric creates a new container for the upgraded chaincode or does it use the container of the previous version? (Fabric 1.2.1)

SashaPESIC (Wed, 27 Mar 2019 10:58:27 GMT):
@florianc it creates a new one.

anuragprajapat (Wed, 27 Mar 2019 11:00:13 GMT):
query function always returns {}

anuragprajapat (Wed, 27 Mar 2019 11:00:26 GMT):
can anybody help ? is it a common issue?

anuragprajapat (Wed, 27 Mar 2019 11:00:48 GMT):
chaincode is installed and instantiated successfully

anuragprajapat (Wed, 27 Mar 2019 11:01:04 GMT):
create record invokation is also success

anuragprajapat (Wed, 27 Mar 2019 11:01:21 GMT):
but query response is 200 OK with {}

anuragprajapat (Wed, 27 Mar 2019 11:01:46 GMT):
Thanks in Adv

FabricBeer (Wed, 27 Mar 2019 11:04:35 GMT):
how to backup and restore the ledger

ajaydatla (Wed, 27 Mar 2019 11:12:45 GMT):
this is code to connect to basic-network

ajaydatla (Wed, 27 Mar 2019 11:12:46 GMT):
const ccpPath = path.resolve(__dirname, '..', '..', 'basic-network', 'connection.json');

ajaydatla (Wed, 27 Mar 2019 11:13:05 GMT):
can anyone tell how to connect to net_byfn

mastersingh24 (Wed, 27 Mar 2019 11:23:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bvamdgriL7cD5B9zw) @florianc It creates a new container

Cortesao (Wed, 27 Mar 2019 11:38:12 GMT):
Has joined the channel.

Cortesao (Wed, 27 Mar 2019 11:39:33 GMT):
Hello! I'm relatively new to hyperledger techincal aspects and I have a question. I'm struggling in understanding how the ordered differs from a centralized system?

JenishBajracharya (Wed, 27 Mar 2019 12:00:09 GMT):
Has joined the channel.

florianc (Wed, 27 Mar 2019 12:23:23 GMT):
@mastersingh24 @SashaPESIC Thank you. What happens to old containers? Do they "stay here"? If yes, Wouldn't it be better to delete it?

wangdong (Wed, 27 Mar 2019 12:30:10 GMT):
It will stay there. Of course you can delete it if you like.

mastersingh24 (Wed, 27 Mar 2019 13:22:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KynLs6orsXhL7R98C) @florianc Right now they stay around .... remember that chaincode containers are shared across channels and it's possible that different channels are running different versions. But you are correct ... that eventually we should be able to terminate / delete ... with some of the new chaincode lifecycle work slated for 2.0.0 we should be able to better handle this

florianc (Wed, 27 Mar 2019 13:46:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=87C7qXGL5g4ghAD8P) @mastersingh24 Ok, thanks. But I am still concerned about keeping containers of version not being used at all. If a channel uses V2 and another V3, why would you keep V1 if no one uses it?

florianc (Wed, 27 Mar 2019 13:46:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=87C7qXGL5g4ghAD8P) @mastersingh24 Ok, thanks. But I am still concerned about keeping containers of version not being used at all. If a channel uses V2 and another channel V3, why would you keep V1 if no one uses it?

JulianSolarte (Wed, 27 Mar 2019 16:05:08 GMT):
How can I query nested object in Fabric? I have a json like this {company: Acme, items: [{name: orange,nutrients: [{vitamin: b,c}]}] so I want to query with selector vitamin: b,c

JulianSolarte (Wed, 27 Mar 2019 16:06:06 GMT):
I used GetQueryResult but does not work

JulianSolarte (Wed, 27 Mar 2019 16:29:28 GMT):
How can I query double/triple nested objects in Fabric? I have the next JSON { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width": "212cm", }] }] }] } I wanna query the width

JulianSolarte (Wed, 27 Mar 2019 16:30:19 GMT):
I have tried with selector and elemMatch but it does not work

Daniel (Wed, 27 Mar 2019 17:07:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cZmmf2vz4rwR6XeQq) @JulianSolarte Have you tried something like this... selector: { dates: { $elemMatch: { $eq: "212cm" } } }

klkumar369 (Wed, 27 Mar 2019 17:24:13 GMT):
Hello! In Fabric terminology, I can understand the concept of Channel which is something like creating a private (sub network) between two organizations. While going through some of the docs, I see *Orderer System Channel*. So a question pops out to me is, does Orderer also have a Channel? If that is the case, what all are included in that Channel? Thanks!

johannesca (Wed, 27 Mar 2019 20:08:19 GMT):
Has joined the channel.

nfrunza (Wed, 27 Mar 2019 21:01:22 GMT):
Hello, are they any fabric samples with Mutual TLS enabled, aka. CORE_PEER_TLS_CLIENTAUTHREQUIRED=true ?

nfrunza (Wed, 27 Mar 2019 21:01:22 GMT):
Hello, are there any fabric samples with Mutual TLS enabled, aka. CORE_PEER_TLS_CLIENTAUTHREQUIRED=true

johannesca (Wed, 27 Mar 2019 21:22:40 GMT):
Hello, I'm working with go chaincode implementations and logging my chaincodes through the ChaincodeLogger API. Also i was using logspout to get container logs of my network (a local development network). Log generation is an interesting feature, desired in my current project and the goal is to export logs into Splunk (https://www.splunk.com/en_us) to extract some transaction metrics and monitoring. In my advances, i successfully configured Splunk as the logging driver for the peers, orderers, couchdb and cli containers, editing the docker-compose.yaml file. However, that's not usefull for dev (chaincode) containers, since they are created at runtime. What are the best practices to log/monitor peer/orderer activities (preferibly through Splunk)?

nhong (Wed, 27 Mar 2019 21:29:01 GMT):
hi there, is there any documentation on how to configure the orderer? I'm looking at the orderer.yaml file, but don't know the detail. For example, how can I change the testchannelid from the docker environment?

vishalse (Wed, 27 Mar 2019 23:30:17 GMT):
Has joined the channel.

vishalse (Wed, 27 Mar 2019 23:31:01 GMT):
Hi all, I'd like to contribute to the python sdk project and possibly come in as an intern this summer. Is there any open issue that I can tackle to demonstrate my skill set ?

vishalse (Wed, 27 Mar 2019 23:32:27 GMT):
Is this the correct repo https://github.com/hyperledger/fabric-sdk-py/ ?

vishalse (Wed, 27 Mar 2019 23:32:52 GMT):
Looking at it, can't see any open issues

vishalse (Wed, 27 Mar 2019 23:33:09 GMT):
Would really appreciate it if someone could nudge me in the right direction

spartucus (Thu, 28 Mar 2019 02:44:15 GMT):
Has joined the channel.

sah (Thu, 28 Mar 2019 04:28:00 GMT):
@vishalse Have you asked in #fabric?

sah (Thu, 28 Mar 2019 04:35:46 GMT):
Continuing on from my question yesterday, I am trying to find what I need to connect a CLI container to a BlueMix fabric network, I have exported CORE_PEER_LOCALMSPID, CORE_PEER_TLS_ROOTCERT_FILE, CORE_PEER_ADDRESS, AND CORE_PEER_MSPCONFIGPATH, however I get "Cannot run peer because error when setting up MSP of type bccsp from directory : Setup error: nil conf reference" I *believe* that the issue is that I have not put the correct certificates into the correct $MSP/ directories (there are five directories, admincerts, cacerts, keystore, signcerts, tlscacerts), I have put the tlscacert from IBM into tlscacerts, and named it org1.pem (I have NO idea if that's what it should be named)

lucky114407 (Thu, 28 Mar 2019 05:49:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dtMXaRKZN4YR5xbc6) @FabricBeer Hi Mallikarjun, u can have backup of the ledger by using the persistence mechanism provided by the fabric.

ajaydatla (Thu, 28 Mar 2019 07:03:17 GMT):
Hello, I am when this error "Error: could not send: EOF"

ajaydatla (Thu, 28 Mar 2019 07:03:56 GMT):
when instantiating chaincode with this command

ajaydatla (Thu, 28 Mar 2019 07:03:58 GMT):
peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -v 1.0 -c '{"Args":[]}' -P "OR ('Org0MSP.peer','Org1MSP.peer')"

ajaydatla (Thu, 28 Mar 2019 07:04:08 GMT):
I cannot figure out what to do

Stacker (Thu, 28 Mar 2019 09:08:10 GMT):
Has joined the channel.

garunkumar450 (Thu, 28 Mar 2019 09:15:58 GMT):
I am storing data into using stub.PutState () method in one chaincode but ,i wnat to retrieve the data using stub.GetState() in another chaincode ,is it possible or not if possible please help me

garunkumar450 (Thu, 28 Mar 2019 09:15:58 GMT):
how to listen event in chaincode (only chaincode events ) using go.please help me

garunkumar450 (Thu, 28 Mar 2019 09:23:08 GMT):
We want to call chaincode 1 to write key-value data ("key1", "value1") into channel. And call chaincode 2 to read the value by key "key1".

invocamanman (Thu, 28 Mar 2019 10:11:10 GMT):
Has joined the channel.

invocamanman (Thu, 28 Mar 2019 10:21:16 GMT):
Hi! I'm new on hyperledger and i want to do a Prove of Concept with hyperledger fabric for a governamental registry, the fact is that all the institutions (all nodes) will have permission to write in the blockchain, and i'm wondering that in that case as all the nodes trust completly the others is a good use to hyperledger or not? there some reasons that it fits perfectly like it have timestamps, inmutable, its a distributed ledger... but is one of the keys of the blockchain technologies is the fact that all the nodes don't trust completly the others, right? Really thank you for your time/help

GuillaumeCisco (Thu, 28 Mar 2019 10:27:43 GMT):
quick question, when doing a `peer chaincode --instantiated --peerAddresses=['peer0.org1.example.com','peer1.org1.example.com']` and one of the peerAddress answer with a response status not equal to 200. What is the result?

Stacker (Thu, 28 Mar 2019 10:36:47 GMT):
Hello, I wrote this question on StackOverflow: https://stackoverflow.com/questions/55395080/an-hyperledger-fabric-chaincode-cant-read-state-of-another-chaincode-in-leveldb Can anyone help me? Thanks

Stacker (Thu, 28 Mar 2019 10:43:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kjSY8nB9hqFMgq35D) @garunkumar450 My post refers to this, I encountered the same problem

GuillaumeCisco (Thu, 28 Mar 2019 10:46:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZeoqNFWsLjY86yH8J) Looks like peerAdresseses is only supported for invoke: https://github.com/hyperledger/fabric/blob/release-1.4/peer/chaincode/common.go#L315 Is there plan for supporting multiple peerAddresses?

MuhammedHafil (Thu, 28 Mar 2019 11:05:08 GMT):
Facing ``` Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later ``` Kafka is being running for 155 minutes

MuhammedHafil (Thu, 28 Mar 2019 11:05:08 GMT):
Facing ``` Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later ``` Kafka is being running for 15 minutes

adamhardie (Thu, 28 Mar 2019 11:43:03 GMT):
hi channel, I have attempted to deploy an updated config to a channel but received an failed response back from the orderer 2 days ago. Now when I try to connect a new peer i see the following -: peer channel fetch config config_block.pb -o orderer0.group:7050 -c channelone 2019-03-28 11:23:01.360 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-03-28 11:23:01.364 UTC [cli.common] readBlock -> INFO 002 Received block: 8929 2019-03-28 11:23:01.365 UTC [cli.common] readBlock -> INFO 003 Got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} do i need to remove the channel from the orderer (as it is corrupted) ?

Abubakar 3 (Thu, 28 Mar 2019 14:31:10 GMT):
Has joined the channel.

pedrohex (Thu, 28 Mar 2019 14:31:10 GMT):
Has joined the channel.

raphaelbenoit (Thu, 28 Mar 2019 15:27:08 GMT):
Hey there ... If I create an asset `token` where I map the `identities` of my participants to a `tokenBalance`. When I call the `transfer()` function it obviously updates this asset. Does that mean that I can have max 1 transaction per block where the `tranfer()` function gets called and tokens are tranferred to the same `identity`? What if person A send tokens to person B in one transaction and person C sends tokens to person D in another transaction and both are packed inside the same block? Does that work? Thanks for clarifying my understanding on the RW-set :)

garunkumar450 (Thu, 28 Mar 2019 17:26:58 GMT):
How listen chaincode evnts using go lnguage

garunkumar450 (Thu, 28 Mar 2019 17:26:58 GMT):
How listen chaincode events using go language

garunkumar450 (Thu, 28 Mar 2019 18:02:48 GMT):
is this possibel for acccess one ledger for two different chaincodes? if possible help me if not give me reason

JulianSolarte (Thu, 28 Mar 2019 18:24:21 GMT):
How can I query double/triple nested objects in Fabric? I have the next JSON { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width": "212cm", }] }] }] } I wanna query the width I have tried with selector and elemMatch but it does not work

pedrohex (Thu, 28 Mar 2019 18:44:13 GMT):
hi !

pedrohex (Thu, 28 Mar 2019 18:44:16 GMT):
Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet

pedrohex (Thu, 28 Mar 2019 18:44:36 GMT):
does anyone knows something about this ?

garunkumar450 (Thu, 28 Mar 2019 19:02:56 GMT):
"github.com/hyperledger/fabric/events/consumer" pb "github.com/hyperledger/fabric/protos" error while importing

garunkumar450 (Thu, 28 Mar 2019 19:03:35 GMT):
can find package and no go file "github.com/hyperledger/fabric/protos"

garunkumar450 (Thu, 28 Mar 2019 19:04:04 GMT):
package main import ( "flag" "fmt" "os" "github.com/hyperledger/fabric/events/consumer" pb "github.com/hyperledger/fabric/protos" ) type adapter struct { notfy chan *pb.Event_Block rejection chan *pb.Event_Rejection cc chan *pb.Event_ChaincodeEvent } //GetInterestedEvents implements consumer.EventAdapter interface for registering interested events func (a *adapter) GetInterestedEvents() ([]*pb.Interest, error) { return []*pb.Interest{ &pb.Interest{ EventType: pb.EventType_BLOCK, }, &pb.Interest{ EventType: pb.EventType_REJECTION, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTPING", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTPONG", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTINVOKEERR", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVT.IOTCP.INVOKE.RESULT", }, }, }, }, nil } //Recv implements consumer.EventAdapter interface for receiving events func (a *adapter) Recv(msg *pb.Event) (bool, error) { switch msg.Event.(type) { case *pb.Event_Block: a.notfy <- msg.Event.(*pb.Event_Block) return true, nil case *pb.Event_Rejection: a.rejection <- msg.Event.(*pb.Event_Rejection) return true, nil case *pb.Event_ChaincodeEvent: a.cc <- msg.Event.(*pb.Event_ChaincodeEvent) return true, nil default: fmt.Printf("RECV went through DEFAULT for some reason\n") // a.notfy <- nil // a.cc <- nil return false, nil } } //Disconnected implements consumer.EventAdapter interface for disconnecting func (a *adapter) Disconnected(err error) { fmt.Printf("Disconnected...exiting\n") os.Exit(1) } func createEventClient(eventAddress string) *adapter { var obcEHClient *consumer.EventsClient done := make(chan *pb.Event_Block) done2 := make(chan *pb.Event_ChaincodeEvent) done3 := make(chan *pb.Event_Rejection) adapter := &adapter{notfy: done, cc: done2, rejection: done3} obcEHClient, _ = consumer.NewEventsClient(eventAddress, 5, adapter) if err := obcEHClient.Start(); err != nil { fmt.Printf("could not start chat %s\n", err) obcEHClient.Stop() return nil } return adapter } func main() { var eventAddress string flag.StringVar(&eventAddress, "events-address", "0.0.0.0:7053", "address of events server") flag.Parse() fmt.Printf("Event Address: %s\n", eventAddress) a := createEventClient(eventAddress) if a == nil { fmt.Printf("Error creating event client\n") return } fmt.Printf("Event client appears to have been succesfully created\n") for { select { case b := <-a.notfy: fmt.Printf("\nReceived block\n") fmt.Printf("%+v\n\n", b) case r := <-a.rejection: fmt.Printf("\nReceived rejection\n") fmt.Printf("%+v\n\n", r) case p := <-a.cc: fmt.Printf("\nReceived chaincode event\n") fmt.Printf("%+v\n\n", p) } } }

garunkumar450 (Thu, 28 Mar 2019 19:12:50 GMT):
package main import ( "flag" "fmt" "os" "github.com/hyperledger/fabric/events/consumer" pb "github.com/hyperledger/fabric/protos" ) type adapter struct { notfy chan *pb.Event_Block rejection chan *pb.Event_Rejection cc chan *pb.Event_ChaincodeEvent } //GetInterestedEvents implements consumer.EventAdapter interface for registering interested events func (a *adapter) GetInterestedEvents() ([]*pb.Interest, error) { return []*pb.Interest{ &pb.Interest{ EventType: pb.EventType_BLOCK, }, &pb.Interest{ EventType: pb.EventType_REJECTION, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTPING", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTPONG", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVTINVOKEERR", }, }, }, &pb.Interest{ EventType: pb.EventType_CHAINCODE, RegInfo: &pb.Interest_ChaincodeRegInfo{ ChaincodeRegInfo: &pb.ChaincodeReg{ ChaincodeID: "mycc", EventName: "EVT.IOTCP.INVOKE.RESULT", }, }, }, }, nil } //Recv implements consumer.EventAdapter interface for receiving events func (a *adapter) Recv(msg *pb.Event) (bool, error) { switch msg.Event.(type) { case *pb.Event_Block: a.notfy <- msg.Event.(*pb.Event_Block) return true, nil case *pb.Event_Rejection: a.rejection <- msg.Event.(*pb.Event_Rejection) return true, nil case *pb.Event_ChaincodeEvent: a.cc <- msg.Event.(*pb.Event_ChaincodeEvent) return true, nil default: fmt.Printf("RECV went through DEFAULT for some reason\n") // a.notfy <- nil // a.cc <- nil return false, nil } } //Disconnected implements consumer.EventAdapter interface for disconnecting func (a *adapter) Disconnected(err error) { fmt.Printf("Disconnected...exiting\n") os.Exit(1) } func createEventClient(eventAddress string) *adapter { var obcEHClient *consumer.EventsClient done := make(chan *pb.Event_Block) done2 := make(chan *pb.Event_ChaincodeEvent) done3 := make(chan *pb.Event_Rejection) adapter := &adapter{notfy: done, cc: done2, rejection: done3} obcEHClient, _ = consumer.NewEventsClient(eventAddress, 5, adapter) if err := obcEHClient.Start(); err != nil { fmt.Printf("could not start chat %s\n", err) obcEHClient.Stop() return nil } return adapter } func main() { var eventAddress string flag.StringVar(&eventAddress, "events-address", "0.0.0.0:7053", "address of events server") flag.Parse() fmt.Printf("Event Address: %s\n", eventAddress) a := createEventClient(eventAddress) if a == nil { fmt.Printf("Error creating event client\n") return } fmt.Printf("Event client appears to have been succesfully created\n") for { select { case b := <-a.notfy: fmt.Printf("\nReceived block\n") fmt.Printf("%+v\n\n", b) case r := <-a.rejection: fmt.Printf("\nReceived rejection\n") fmt.Printf("%+v\n\n", r) case p := <-a.cc: fmt.Printf("\nReceived chaincode event\n") fmt.Printf("%+v\n\n", p) } } }

elciusferreira (Thu, 28 Mar 2019 20:10:28 GMT):
Hello again! I'm trying to instantiate a go chaincode on a multi-org network using fabric java SDK and an external package, created by me, is not being imported successfully... ``` peer0-org1-example-com|2019-03-28 18:33:38.436 UTC [dockercontroller] deployImage -> ERRO 073 Error building image: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/hyperledger-fabric-go-chaincodes/account-chaincode/account/account.go:15:2: cannot find package "github.com/query" in any of: peer0-org1-example-com| /opt/go/src/github.com/query (from $GOROOT) peer0-org1-example-com| /chaincode/input/src/github.com/query (from $GOPATH) peer0-org1-example-com| /opt/gopath/src/github.com/query ``` I am using govendor and my vendor folder does have a github.com/query folder. When I instantiate the same chaincode on the same multi-org network and using cli everything works fine, but using the SDK the error above is shown. Does anyone know why this is hapenning?

erictran1910 (Fri, 29 Mar 2019 03:01:29 GMT):
Can we plug Mongodb as the state DB into Fabric ?

erictran1910 (Fri, 29 Mar 2019 03:01:38 GMT):
hello everyone

MuhammedHafil (Fri, 29 Mar 2019 05:32:32 GMT):
can somebody please provide docker-compose file for deploying fabric in docker swarm?

Sarath_Kumar (Fri, 29 Mar 2019 05:51:17 GMT):
Hi All Good Morning, I am trying to alter the first-network. I have regenerated the crypto config and for simplicity i have moved the ca service into my docker-compose-cli itself. and i have changed the certificate_sk manually and bring up the network. Container is up and running. *I am not able to create a channel.* *Error: Could not load Tls certificate with BCCSP: could not find matching private key*

Sarath_Kumar (Fri, 29 Mar 2019 05:51:34 GMT):

ca certificate error.PNG

alokkv (Fri, 29 Mar 2019 05:54:22 GMT):
hi friends, i have been trying the script eyfn to join org3 to the existing channel.i notices that org2 need to sign the block file before updating it.i understand thet it is because the implicit meta policy is set to MAJORITY.i would like to change it to org1(ADMIN).how can i change it?can anyone please help

knagware9 (Fri, 29 Mar 2019 07:19:40 GMT):
Can I use docker swarm overlay network to connect on my physical machine with any cloud VM instance ? Did anyone try it ?

knagware9 (Fri, 29 Mar 2019 07:20:39 GMT):
My requirement is build the overlay network between local Ubuntu machine and cloud Ubuntu VM instance

Hong3Nguyen (Fri, 29 Mar 2019 08:42:38 GMT):
Has joined the channel.

hengfun (Fri, 29 Mar 2019 08:59:38 GMT):
Has joined the channel.

hengfun (Fri, 29 Mar 2019 09:00:14 GMT):
Hi, Is it possible to run python code in the chain code?

NavaL3 (Fri, 29 Mar 2019 09:18:24 GMT):
Hello Team, Where i will get the fabric-14.1 installation example ????

Sillywumps (Fri, 29 Mar 2019 09:41:25 GMT):
Has joined the channel.

amanjain (Fri, 29 Mar 2019 10:08:50 GMT):
@NavaL3 https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html

NavaL3 (Fri, 29 Mar 2019 10:11:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iPcNQ8j9f6QFpnXwz) @amanjain Thanks champion....:joy:

amanjain (Fri, 29 Mar 2019 10:13:07 GMT):
@NavaL3 :thumbsup:

AkhilKura (Fri, 29 Mar 2019 10:47:29 GMT):
Hey , can we add organisation onto a running network ?

cbf (Fri, 29 Mar 2019 11:03:26 GMT):
Yes, there’s a tutorial for this in the docs

amanjain (Fri, 29 Mar 2019 11:39:14 GMT):
@AkhilKura read this https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

AkhilKura (Fri, 29 Mar 2019 11:42:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rrD5WF72H2aeW4QKm) @amanjain in this doc they are adding the org but they are making network down and again making it up so i need to add the organisation without downing the network

amanjain (Fri, 29 Mar 2019 11:45:35 GMT):
@AkhilKura Start from *Bring Org3 into the Channel Manually*

amanjain (Fri, 29 Mar 2019 11:48:55 GMT):
they are making network down if you have follow *Bring Org3 into the Channel with the Script*

FabricBeer (Fri, 29 Mar 2019 12:53:11 GMT):
Hi all why i'm getting this error Orderer capability V1_2 is required but not supported

MoonLee (Fri, 29 Mar 2019 14:25:25 GMT):
Has joined the channel.

MoonLee (Fri, 29 Mar 2019 14:28:45 GMT):
Hello, Is there a way to use fabric and indy together?

walmon (Fri, 29 Mar 2019 16:34:50 GMT):
@FabricBeer in your configtx.yaml you are probably not including capabilities - https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/configtx.yaml#L126

walmon (Fri, 29 Mar 2019 16:36:02 GMT):
@NavaL3 if you want to get up and running quickly for your dev env: https://github.com/worldsibu/hurley

JulianSolarte (Fri, 29 Mar 2019 19:43:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uyJ7x379ZgA4DKaJp) @erictran1910 No, you can plug to CouchDb

gregnotso (Fri, 29 Mar 2019 20:00:38 GMT):
i think SAP have already plugged fabric into HANA, Oracle into their DB, as Microsoft probably into SQL Server

Daka (Sat, 30 Mar 2019 00:04:13 GMT):
Hello, which cryptographic algorithms are used in BYFN tutorial ?

nagarajants (Sat, 30 Mar 2019 02:16:25 GMT):
Hello all can we create private data collection between two parts of same organization

Dhiraj1990 (Sat, 30 Mar 2019 06:36:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gGwkQr7XrMDhEZCww) @AkhilKura There is seprate tutorial for that. https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

Dhiraj1990 (Sat, 30 Mar 2019 06:37:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h4d9E7fNCHqdCthWp) @JulianSolarte Yes

Dhiraj1990 (Sat, 30 Mar 2019 06:40:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LQwgjydx84Wr3DNuR) @NavaL3 You can do from hyperledger offcial docs

Dhiraj1990 (Sat, 30 Mar 2019 06:40:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wGSPm6bCCvFHWA5R4) @knagware9 WIth two local machines it works.\

NithinBlocker (Sat, 30 Mar 2019 10:05:59 GMT):
Has joined the channel.

NithinBlocker (Sat, 30 Mar 2019 10:06:26 GMT):
Hi, i am new to hyperledger community and i started working on improvising the security issues in IoT and i thought using hyperledger fabric into it....so, any suggestions?

NithinBlocker (Sat, 30 Mar 2019 10:06:26 GMT):
Hi, i am new to hyperledger community and i started working on improvising the security issues in IoT and i thought of incorporating hyperledger fabric into it....so, any suggestions?

knagware9 (Sat, 30 Mar 2019 10:46:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vvqDybXdXL3tyJPTE) @Dhiraj1990 yes it works for two local machine , I need one local and one in cloud or any other external network

Dhiraj1990 (Sat, 30 Mar 2019 12:19:31 GMT):
@knagware9 It should work

Dhiraj1990 (Sat, 30 Mar 2019 12:19:31 GMT):
@knagware9 It should work. I have not tried with cloud

Daka (Sat, 30 Mar 2019 13:14:24 GMT):
hello

Daka (Sat, 30 Mar 2019 13:14:35 GMT):
what's the difference between MSP and BCCSP

Daka (Sat, 30 Mar 2019 14:35:05 GMT):
does the anchor peer have chaincode and ledger copy ?

hengfun (Sat, 30 Mar 2019 14:39:14 GMT):
Hi is it possible to run python code in chaincode container?

TBdori (Sat, 30 Mar 2019 21:25:41 GMT):
when using Fabric ,Node , how to delete registered user in the code?

TBdori (Sat, 30 Mar 2019 21:25:56 GMT):
fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'R1' failed: Identity 'R1' is already registered"}]].

TBdori (Sat, 30 Mar 2019 21:26:51 GMT):
IBP has R1 user registered and existed but in the local repository, I ended up deleting it somehow and can't add it back

ShivGaurani (Sun, 31 Mar 2019 05:24:16 GMT):
Has joined the channel.

ShivGaurani (Sun, 31 Mar 2019 05:24:24 GMT):
Myself Gaurav Jain , I am new to Hyperledger Fabric and going thru their study tutorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html . Issue : I made changes in query.js and invoke.js to replace local host with my IP Address which I reverted back to original . Now when I run startFabric.sh script , I am getting following error : " Error: error getting chaincode code fabcar: failed to determine platform type: Unknown chaincodeType: UNDEFINED " . I have googled the issue whole day but still unable to solve . Please let me know how I may solve this issue .

knagware9 (Sun, 31 Mar 2019 05:46:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tbtxShvZkbQ5qXiFB) @Dhiraj1990 ok ,,,but my manager node is not able to join worker node

deceive3w (Sun, 31 Mar 2019 08:42:38 GMT):
Has joined the channel.

Henrycoffin (Sun, 31 Mar 2019 09:26:44 GMT):
Has joined the channel.

VinayakBhat (Sun, 31 Mar 2019 10:18:03 GMT):
Hi, I need to fetch the time at which a transaction was submitted and also the time when it was committed. How can I write a chaincode that could fetch the details for a specific transction ?

VinayakBhat (Sun, 31 Mar 2019 10:18:03 GMT):
Hi, I need to fetch the time at which a transaction was submitted and also the time when it was committed. How can I write a chaincode that could fetch the details for a specific transaction ?

Vishalvarshney62 (Sun, 31 Mar 2019 14:11:19 GMT):
Has joined the channel.

Vishalvarshney62 (Sun, 31 Mar 2019 14:11:30 GMT):
Hey ! I was instantiating the chainChode Fabcar on my terminal But it get failed with the following error. INFO: Chaincode fabcar on channel mychannel instantiation java.util.concurrent.CompletableFuture@4fce136b[Completed exceptionally: org.hyperledger.fabric.sdk.exception.InvalidArgumentException: java.lang.NullPointerException] Can anybody tell me what is the problem ?

sschepman (Sun, 31 Mar 2019 15:29:44 GMT):
Has joined the channel.

yxuco (Sun, 31 Mar 2019 15:57:43 GMT):
Has joined the channel.

AlexOvchinnikov (Sun, 31 Mar 2019 17:37:26 GMT):
Has joined the channel.

AlexOvchinnikov (Sun, 31 Mar 2019 17:37:35 GMT):
Hello guys,

AlexOvchinnikov (Sun, 31 Mar 2019 17:44:43 GMT):
I'm new to fabric k and to linux as well and have some problem with first-network on Macbook pro 2012 with bootcamp windows 10 and vmware desktop player and ubunru 18.4 and fabrick 1.1 when I install everything dockers are running i can query but cannot invoke - has error : error getting broadcast client: rpc error... pipeline is broken. someone recomended for that model setup tls=false and comment all next lines about tls - what i did and after tht i hae trouble event to run first-network failed to crete deliver client: rpc error... pipeline is broken. what can be the reason. thank you

RobiHarid (Sun, 31 Mar 2019 19:01:02 GMT):
hey guiys can anyone help me test performance of lots of transactions

RobiHarid (Sun, 31 Mar 2019 19:01:06 GMT):
im running hyperledger on azure

arpurush (Sun, 31 Mar 2019 19:21:22 GMT):
Has joined the channel.

sah (Sun, 31 Mar 2019 22:08:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iu6t8EJxRHSLGnYeg) @VinayakBhat I'm a newbie, but I don't think you get the chaincode to 'fetch' information like that, I force that information to be in the proposal, that is I get the chaincode to reply with an error if there is no timestamp within the payload. I also do some math to check if the timestamp is within some tolerance levels to ensure that proposals submitted are fresh (although I don't know how to deal with the use case where network issues cause proposals to be /very/ old)

Gachengo (Mon, 01 Apr 2019 04:36:43 GMT):
Has joined the channel.

Gachengo (Mon, 01 Apr 2019 04:38:47 GMT):
Hey guys, i try to install a bna but not succedfull, there is someone who can help me !

Gachengo (Mon, 01 Apr 2019 04:38:55 GMT):
Error: Error trying install business network. Error: No valid responses from any peers. that my error

Psingh (Mon, 01 Apr 2019 06:43:26 GMT):
Has joined the channel.

Psingh (Mon, 01 Apr 2019 06:44:20 GMT):
Hey everyone, I'm new to hyperledger fabric. I'm trying to install it on my machine and I'm confused about fabric vs fabric-samples repos. I went through couple of tutorials for installation and one of them cloned fabric and other cloned fabric-samples. So, Is there any difference ?

balaganapathy-k (Mon, 01 Apr 2019 07:34:22 GMT):
Has joined the channel.

sunit.versatile (Mon, 01 Apr 2019 08:09:05 GMT):
Has joined the channel.

Randyshu2018 (Mon, 01 Apr 2019 08:09:10 GMT):
Hey guys,how to understand msp construct clearly? i found the msp directory have some duplicate certs,what's the best practice to do with msp(use cryptogen tool or fabric-ca) in fabric network

sunit.versatile (Mon, 01 Apr 2019 08:09:32 GMT):
Hi All, Can anyone help me to setup hyperledger fabric as i need to deploy project on KYC chaincode ?

integrated.xtal (Mon, 01 Apr 2019 08:33:57 GMT):
Has joined the channel.

integrated.xtal (Mon, 01 Apr 2019 08:33:59 GMT):
please hyperledger, in the fabric-samples, please implement it in fabric-sdk-go also (klike the balance-transfer example)

VinayakBhat (Mon, 01 Apr 2019 09:10:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=k9T8qQ4a7p8EoB2vA) @sah thank you

AkhilKura (Mon, 01 Apr 2019 10:10:03 GMT):
are u running any ca

LovepreetSingh (Mon, 01 Apr 2019 10:30:03 GMT):
Has joined the channel.

LovepreetSingh (Mon, 01 Apr 2019 10:31:52 GMT):
Hi all, is it possible to create channels between users of Peer nodes instead of between peer nodes?

corpix (Mon, 01 Apr 2019 12:04:53 GMT):
Has joined the channel.

corpix (Mon, 01 Apr 2019 12:06:38 GMT):
Hello. Where could I find a `Dockerfile` for this image? https://hub.docker.com/r/hyperledger/fabric-orderer

corpix (Mon, 01 Apr 2019 12:24:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eHLBou4vn7iBrmqEi) Answering my own question: hyperledger/fabric-orderer image `Dockerfile` is a template located here https://github.com/hyperledger/fabric/blob/release-1.4/images/orderer/Dockerfile.in``` Makefile has special targets to process this templates https://github.com/hyperledger/fabric/blob/release-1.4/Makefile#L283-L292``` And sampleconfig.tar.bz2 created here https://github.com/hyperledger/fabric/blob/2240d5f32071f32593120c9832ea8b62964bb384/Makefile#L317``` It would be better if image on docker hub would have some readme instead of "No overview available" because HLF heavily relies on containers and it is could be hard for people to dive deeper than "fabric-samples/first-network" ``` ``` ```

corpix (Mon, 01 Apr 2019 12:24:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eHLBou4vn7iBrmqEi) Answering my own question: hyperledger/fabric-orderer image `Dockerfile` is a template located [here](https://github.com/hyperledger/fabric/blob/release-1.4/images/orderer/Dockerfile.in) Makefile has [special targets](https://github.com/hyperledger/fabric/blob/release-1.4/Makefile#L283-L292) to post-process this templates And sampleconfig.tar.bz2 created [here](https://github.com/hyperledger/fabric/blob/2240d5f32071f32593120c9832ea8b62964bb384/Makefile#L317) It would be better if image on docker hub would have some readme instead of "No overview available" because HLF heavily relies on containers and it is could be hard for people to dive deeper than "fabric-samples/first-network"

umamani113 (Mon, 01 Apr 2019 12:55:16 GMT):
Has joined the channel.

sandy (Mon, 01 Apr 2019 13:47:30 GMT):
Hi all, Can an single organisation administrator install chaincode on other organisation peers?

sandy (Mon, 01 Apr 2019 13:49:13 GMT):
How can i install same chaincode to all organisation peers in the same channel?

yacovm (Mon, 01 Apr 2019 13:51:26 GMT):
no

walmon (Mon, 01 Apr 2019 13:52:05 GMT):
It can if it has access to the cryptographic materials @sandy but ideally each organization would install it on their own peers and an instantiate request would start the installed version

sandy (Mon, 01 Apr 2019 14:06:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZqGB57cBxneyvmipm) @walmon okay. But how does one can verify that all the organisation has installed same piece of chaincode in their peers?

walmon (Mon, 01 Apr 2019 14:14:44 GMT):
It won't let you instantiate it if it's not installed, you can get in the peer and call `peer chaincode list --installed` for example

walmon (Mon, 01 Apr 2019 14:16:19 GMT):
If you mean operationally and just not technically, that's part of the orchestration work needed in the infra, whether throught a platform like https://worldsibu.tech/forma or manually by their IT depts self-organizing or a tech provider third-party that does the work for them

walmon (Mon, 01 Apr 2019 14:16:26 GMT):
I personally prefer having it automated

sanusatyadarshi (Mon, 01 Apr 2019 14:23:21 GMT):
Has joined the channel.

sanusatyadarshi (Mon, 01 Apr 2019 14:24:49 GMT):
Hi all, has anyone used Jenkins for end to end CI/CD for production grade fabric blockchain?

sandy (Mon, 01 Apr 2019 14:50:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5ofYr9EnwxcgR9vB4) @walmon ok .

sandy (Mon, 01 Apr 2019 14:52:15 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html#adding-network-administrators . I have red this.. Here they are saying that one organisation can give admin permission to other. Am not able to understand it. What is network administrator? @walmon

sandy (Mon, 01 Apr 2019 14:55:56 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html#adding-network-administrators . I have red this.. Here they are saying that one organisation can give admin permission to other. Am not able to understand it. What is network administrator? What is the role of network Administrator?

sandy (Mon, 01 Apr 2019 15:02:06 GMT):
what is the difference between network Administrator and Peer Admin?

sandy (Mon, 01 Apr 2019 15:25:47 GMT):
is it possible to create network administrator without hyperledger composer?

xiaoningdev (Mon, 01 Apr 2019 15:35:04 GMT):
Has joined the channel.

notnull (Mon, 01 Apr 2019 15:50:15 GMT):
Has joined the channel.

walmon (Mon, 01 Apr 2019 18:12:09 GMT):
The infrastructure doesn't need composer at all (actually migrate your code from it if possible). It's just nomenclatures, but what actually has to happen is usually giving cryptographic objects with permissions, i.e.: have an admin user and give it to another org to enroll it and interact with their fabric components (install chaincodes, sign txs, upgrade configs, etc) - that's one way, not the safest tho About the post you pasted, it talks about administrators because when you define the configtx.yaml you set permissions of each organization involved, policies and so on, which may evolve over time

walmon (Mon, 01 Apr 2019 18:12:31 GMT):
how you aim to provide admin righst to another player depends on what you'd like to give access to

klkumar369 (Mon, 01 Apr 2019 18:21:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z5sdW3aRzWfh9QXCR) @LovepreetSingh Why do you want to create channels between users? If your intention is to provide privacy between the user transactions, you should think about Private Collections.

haardikkk (Mon, 01 Apr 2019 19:09:17 GMT):
Is it safe to share crypto-config fixtures of one org with other organizations?

balazsprehoda (Mon, 01 Apr 2019 19:57:12 GMT):
Has joined the channel.

balazsprehoda (Mon, 01 Apr 2019 20:00:24 GMT):
Hi guys! I'm using private data w/ 3 orgs. Only org1 and org2 should be able to access private data. Is it expected behavior, that org3 can not query private data, but can write it?

walmon (Mon, 01 Apr 2019 21:07:14 GMT):
@haardikkk not at all, unless it is for TLS and mutual TLS

walmon (Mon, 01 Apr 2019 21:07:46 GMT):
@balazsprehoda AFIK the policy is just for read

mcoblenz (Tue, 02 Apr 2019 01:26:10 GMT):
If I invoke peer on the command-line, and the command exits, can I assume that if I invoke peer again, the results of the firast will be visible to the second invocation?

mcoblenz (Tue, 02 Apr 2019 01:26:10 GMT):
If I invoke peer on the command-line, and the command exits, can I assume that if I invoke peer again, the results of the first will be visible to the second invocation?

mcoblenz (Tue, 02 Apr 2019 01:26:41 GMT):
I'm having some issues that make me think the answer is no.

mcoblenz (Tue, 02 Apr 2019 01:46:03 GMT):
Answer: I need to pass --waitForEvent to get the behavior I need.

mcoblenz (Tue, 02 Apr 2019 01:46:23 GMT):
IMHO that should be the default behavior :(

Vasanth (Tue, 02 Apr 2019 05:02:31 GMT):
@florianc pls check the site now

Vasanth (Tue, 02 Apr 2019 05:02:49 GMT):
@Patriq pls check the site now

NishaM.R (Tue, 02 Apr 2019 05:17:55 GMT):
Has joined the channel.

NishaM.R (Tue, 02 Apr 2019 05:18:30 GMT):
Hi ,   I am trying to create an application on fabric 1.4 version which runs on multi org set up with hyperledger fabric node SDK. I have 2 organizations and 4 peers (2 peer for each org). I was able to start the network successfully. I was able to invoke and query the chaincode from the command line using cli. But when I am trying to invoke a transaction from UI using SDK, it throws me an error: ``` Live on port: 4000 Store path:/Users/549121/.hfc-key-store Successfully loaded user1 from persistence Query has completed, checking results error from query =  { Error: 2 UNKNOWN: Stream removed     at Object.exports.createStatusError (/Users/549121/Desktop/LIFE-INSURANCE-NETWORK-2-2/LifeInsurance-app/node_modules/fabric-client/node_modules/grpc/src/common.js:87:15)     at Object.onReceiveStatus (/Users/549121/Desktop/LIFE-INSURANCE-NETWORK-2-2/LifeInsurance-app/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1188:28)     at InterceptingListener._callNext (/Users/549121/Desktop/LIFE-INSURANCE-NETWORK-2-2/LifeInsurance-app/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:564:42)     at InterceptingListener.onReceiveStatus (/Users/549121/Desktop/LIFE-INSURANCE-NETWORK-2-2/LifeInsurance-app/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:614:8)     at callback (/Users/549121/Desktop/LIFE-INSURANCE-NETWORK-2-2/LifeInsurance-app/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:841:24)   code: 2,   metadata: Metadata { _internal_repr: {} },   details: 'Stream removed' } ``` I am using the first-network from the fabric samples 1.4 . node version is  8.15.0 and npm version is 6.4.1.           "fabric-ca-client": "^1.4.0",         "fabric-client": "^1.4.0",         "grpc": "latest" Can anyone help in this?

knagware9 (Tue, 02 Apr 2019 06:20:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MqkdBBL6knBLxisfj) @NishaM.R its seems issue with grpc version , check that and try to manully install the grpc version which is stable

ajaydatla (Tue, 02 Apr 2019 06:20:28 GMT):
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.0 is not able to download binaries

ajaydatla (Tue, 02 Apr 2019 06:20:33 GMT):
it has stopeed

ajaydatla (Tue, 02 Apr 2019 06:21:30 GMT):
It stopped while download this file

ajaydatla (Tue, 02 Apr 2019 06:21:32 GMT):
https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.4.0/hyperledger-fabric-linux-amd64-1.4.0.tar.gz

ajaydatla (Tue, 02 Apr 2019 06:22:05 GMT):
Hyperledger repo is down

knagware9 (Tue, 02 Apr 2019 06:22:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vjDYDSDp8uSaAP2Gp) @ajaydatla I also faced the same issue yesterday , later it resolved

ajaydatla (Tue, 02 Apr 2019 06:23:47 GMT):
Yes, and also try to access it from browser and it is not loading

Dhiraj1990 (Tue, 02 Apr 2019 06:27:43 GMT):
2019-04-02 06:20:11.021 UTC [endorser] callChaincode -> INFO 166 [gll][7e5d24f1] Entry chaincode: name:"cscc" 2019-04-02 06:20:11.022 UTC [endorser] callChaincode -> INFO 167 [gll][7e5d24f1] Exit chaincode: name:"cscc" (0ms) 2019-04-02 06:20:11.022 UTC [comm.grpc.server] 1 -> INFO 168 unary call completed {"grpc.start_time": "2019-04-02T06:20:11.021Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.22.0.1:39420", "grpc.code": "OK", "grpc.call_duration": "901.228µs"} I get logs on peer when i query the peer legder ? I want to know if is this a transaction proposal response ?

Dhiraj1990 (Tue, 02 Apr 2019 06:27:43 GMT):
2019-04-02 06:20:11.021 UTC [endorser] callChaincode -> INFO 166 [gll][7e5d24f1] Entry chaincode: name:"cscc" 2019-04-02 06:20:11.022 UTC [endorser] callChaincode -> INFO 167 [gll][7e5d24f1] Exit chaincode: name:"cscc" (0ms) 2019-04-02 06:20:11.022 UTC [comm.grpc.server] 1 -> INFO 168 unary call completed {"grpc.start_time": "2019-04-02T06:20:11.021Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.22.0.1:39420", "grpc.code": "OK", "grpc.call_duration": "901.228µs"} I get logs on peer when i query the peer legder ? I want to know if is this a transaction proposal response ? If yes then is should be displayed on the endorsing peers and not on other orgnaization peer

NishaM.R (Tue, 02 Apr 2019 07:03:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XRdTqNGkqReCRfuNQ) @knagware9 i have installed the grpc version 1.19.0 .. still getting same issue

ajaydatla (Tue, 02 Apr 2019 07:10:49 GMT):
hello everyone

ajaydatla (Tue, 02 Apr 2019 07:10:50 GMT):
what is difference between instantiate and invoke chaincode

sandy (Tue, 02 Apr 2019 07:15:35 GMT):
hi.. As all the peers of the same channel has same ledger why we are getting endorsements from all the peers ?

sandy (Tue, 02 Apr 2019 07:16:40 GMT):
Is there any possibility of ledgers in the different peers of the same channel to be different?

knagware9 (Tue, 02 Apr 2019 07:18:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=22Fkt4WE5ZQ3viToi) @NishaM.R ok...are you using docker swarm overlay network on local network or multiple external network ?

Sarath_Kumar (Tue, 02 Apr 2019 07:25:33 GMT):
Hi All, I am facing an error and the answer is here : https://stackoverflow.com/a/52464492 In third point, we need to clear the tmp/hfc-key-store and how to clear the temp folder.

Sarath_Kumar (Tue, 02 Apr 2019 07:26:28 GMT):
I have cleared the physical folder available inside the project folder.

Tommy109 (Tue, 02 Apr 2019 09:08:32 GMT):
hi all, I have setup the balance-transfer sample using docker. I haven't got anything invoking chaincode yet or doing any transactions so it shouldn't be taking up any more space than it has. However, when left idle the free space on the VM is being completely used up. I pruned any docker images or volumes I had but it's still happening. Has this happened anyone else and what might be causing it?

AkhilKura (Tue, 02 Apr 2019 09:21:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EunfkNfhHSMTepHKL) @ajaydatla https://hyperledger-fabric.readthedocs.io/en/release-1.4/glossary.html go through this document u will find the definitions

NishaM.R (Tue, 02 Apr 2019 09:25:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W766MtmgsSpmnMxTp) @knagware9 i have the setup in my local machine only. Not overlay network

ajaysilver (Tue, 02 Apr 2019 09:45:08 GMT):
Has joined the channel.

ajaysilver (Tue, 02 Apr 2019 09:45:59 GMT):
I am getting this error on starting the network with java chaincode for which command is ./byfn up -l java

ajaysilver (Tue, 02 Apr 2019 09:46:19 GMT):
Error: error endorsing query: rpc error: code = Unavailable desc = transport is closing - proposal response: !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

ahmadraza (Tue, 02 Apr 2019 09:46:44 GMT):
Hi all? Why we need to create crypto-config and channel-artifacts everytime in first-network? But in Balance transfer sample it is created only once

MuhammadBilal1 (Tue, 02 Apr 2019 10:10:13 GMT):
Has joined the channel.

pedrohex (Tue, 02 Apr 2019 10:24:40 GMT):
hi all, can anyone recommend the best approach to develop a .NET application? What happened to hyperledger-rest , is there any alternative ?

ajaysilver (Tue, 02 Apr 2019 10:26:28 GMT):
hello everyone

ajaysilver (Tue, 02 Apr 2019 10:26:34 GMT):
./byfn up is not working

ajaysilver (Tue, 02 Apr 2019 10:26:36 GMT):
test failed

ajaysilver (Tue, 02 Apr 2019 10:26:50 GMT):
can anyone help

ajaysilver (Tue, 02 Apr 2019 11:01:03 GMT):
Is anyone facing the same issue?

ajaysilver (Tue, 02 Apr 2019 11:01:11 GMT):
I am getting this error on starting the network with java chaincode for which command is ./byfn up -l java Error: error endorsing query: rpc error: code = Unavailable desc = transport is closing - proposal response: !!!!!!!!!!!!!!! Query result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

ajaysilver (Tue, 02 Apr 2019 11:01:16 GMT):
on ./byfn up

DineshRaj (Tue, 02 Apr 2019 11:12:44 GMT):
How to change the anchor peer which is configured in the channel? #fabric-questions

arcaneproject (Tue, 02 Apr 2019 11:25:42 GMT):
Has joined the channel.

arcaneproject (Tue, 02 Apr 2019 11:26:05 GMT):
Hello, I have recently started experimenting with Hyperledger and have run into some doubts, can someone please clear them up for me? 1 What happens if orders (considering orderers is a cluster) reorder or delete the transaction in a block? 2 What happens if committers did not commit the block? 3 What happens if Endorser (who is behaving like committer) denied committing the block? 4. How does hyperledger deal with DoS attack? Like Ethereum deals with it using Gas. 5. Is BFT required in HL fabric (which is not there right now, however currently deals with CFT by using Kafka) since I already have identities of all nodes? 6. How determinism is achieved using non-deterministic languages like node js, go lang etc. ? 7. We know that we are planning to implement BFT, my question is, since HL fabric uses _passive replication_ how it is possible to implement BFT? My 2nd question is why do we need to implement BFT since we already know identities of actors (if they do wrong they can be caught right?) #fabric-questions

LovepreetSingh (Tue, 02 Apr 2019 11:32:16 GMT):
by default peer0,peer1 notation is used to define the name of peer nodes is there a way to change names of peer nodes to use custom names ?

ahmadraza (Tue, 02 Apr 2019 11:33:15 GMT):
Hello All Can you please guide me about my use-case how can i achieve it?

ahmadraza (Tue, 02 Apr 2019 11:36:40 GMT):
Can anyone please help me in achieving my usecase There are two organizations. Asset is share which we have to store in ledger. Admin of org1 can only create or update assets which are assigned to the users of org1. User of Org1 can read only of its assets which are assigned to him.

ahmadraza (Tue, 02 Apr 2019 11:37:33 GMT):
So far i created network with two organizations following balance-transfer sample in which i can save assets but assets are not assigned to anyone?

DineshRaj (Tue, 02 Apr 2019 11:39:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YZ9PiRmaFxJEHfydL) @LovepreetSingh you can change it whatever names you want, just go to the docker compose file and change the service names

LovepreetSingh (Tue, 02 Apr 2019 11:48:01 GMT):
@DineshRaj I think changing service names will only making changes in the docker container. Peer names and files generated inside crypto-config folder will be changed too?

DineshRaj (Tue, 02 Apr 2019 11:52:26 GMT):
that has a no effect, you have too refer that folders for peer in whatever names you wish to create, i.e if the peer name is sample you have to map

DineshRaj (Tue, 02 Apr 2019 11:52:26 GMT):
that has a no effect, you have to refer that folders for peer in whatever names you wish to create,

GthmR (Tue, 02 Apr 2019 11:56:06 GMT):
Has joined the channel.

DineshRaj (Tue, 02 Apr 2019 11:56:11 GMT):

Clipboard - April 2, 2019 5:26 PM

DineshRaj (Tue, 02 Apr 2019 11:57:54 GMT):
look at the above screen shot test.org1.example.com is the first peer ,so for first peer you have refer "/peers/peer0.org1.example.com/msp" this directory, for second "/peers/peer1.org1.example.com/msp" and so on

LovepreetSingh (Tue, 02 Apr 2019 12:02:19 GMT):
@DineshRaj thanks that is helpful. But generating test.org1.example.com in crypto-config instead of peer0.org1.example.com is not possible ?

DineshRaj (Tue, 02 Apr 2019 12:06:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s552wgi9mMpuooaC4) @LovepreetSingh No, I don't think there is a way

Sarath_Kumar (Tue, 02 Apr 2019 12:13:01 GMT):

tls error.PNG

Sarath_Kumar (Tue, 02 Apr 2019 12:17:34 GMT):
the peer log will be displayed above and there is no issues in orderer

TBdori (Tue, 02 Apr 2019 12:51:36 GMT):
Nobody answered my question yet. When using Fabric ,Node , how to delete a registered user in the code? fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'R1' failed: Identity 'R1' is already registered"}]]. IBP has R1 user registered and existed but in the local repository, I ended up deleting it somehow and can't add it back

deenario (Tue, 02 Apr 2019 13:14:56 GMT):
I need someone with very solid knowledge of the fabric architecture in order to discuss a platform i a desiging with him.

walmon (Tue, 02 Apr 2019 16:08:01 GMT):
@deenario if you want you can ping me or you can post your questions here publicly and let anybody answer them

AYUSHIAGARWAL (Tue, 02 Apr 2019 16:58:09 GMT):
I want to implement my own consensus algorithm in hyperledger fabric. https://hyperledger-fabric.readthedocs.io/en/release-1.4/Fabric-FAQ.html#ordering-service Here, I got to know that I need to implement Consenter and Chain interfaces. I tried to read Kafka's code but I am not able to understand much. Can someone guide how to impplement the functions such as HandleChain() , Order() , Configure() , WaitReady() etc.

Antimttr (Tue, 02 Apr 2019 19:04:21 GMT):
Should enrollment of org admins be done each time an sdk client starts up? Or should the enrollment object somehow be stored and enrollment not repeated?

codeUncode (Tue, 02 Apr 2019 19:07:08 GMT):
Has joined the channel.

walmon (Tue, 02 Apr 2019 22:36:30 GMT):
You should safetly store the crypto objects generated after enroll

walmon (Tue, 02 Apr 2019 22:36:35 GMT):
@Antimttr

johnsmith1234 (Wed, 03 Apr 2019 01:43:09 GMT):
Has joined the channel.

johnsmith1234 (Wed, 03 Apr 2019 01:46:04 GMT):
I am new to fabric, can I anyone tell me that how can make organizations which have different permissions with each other(eg some have only read permissions) in a channel?

sah (Wed, 03 Apr 2019 01:49:10 GMT):
I'm having to troubleshoot a problem I am having getting a cli container on one machine talk to an organisation on another machine. I want to know how to build a tools container from scratch, that is, what repo do I need to checkout, and what build parameters will I need to use?

FabricBeer (Wed, 03 Apr 2019 04:43:12 GMT):
@LovepreetSingh You have to change the profile names in configtx.yaml file before generating crypto-config material

FabricBeer (Wed, 03 Apr 2019 04:47:37 GMT):
@johnsmith1234 You can do it in configtx.yaml file in organisations sections

AkhilKura (Wed, 03 Apr 2019 04:50:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SDq67j6XNT8PiAC9o) @deenario https://hyperledger-fabric.readthedocs.io/en/release-1.3/network/network.html follow this document to understand the fabric architecture

AYUSHIAGARWAL (Wed, 03 Apr 2019 06:44:53 GMT):
Hi! Are there people in the channel who have coded or have knowledge of consensus in hyperledger fabric code. If not, where can I find them?

Hong3Nguyen (Wed, 03 Apr 2019 06:49:16 GMT):
Hi, after cloning the hyperledger fabric from git, I would like to run a basic network as private one (some my machines work together). but I dont know how should I start with it

Dhiraj1990 (Wed, 03 Apr 2019 06:50:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iwT8hMoTB2GvzP35A) @AYUSHIAGARWAL on the offical doc as well. You can try changing endorsment policy and see the results

Dhiraj1990 (Wed, 03 Apr 2019 06:51:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x2uuzy3FdW6M6Ytxd) @Hong3Nguyen docker will run on your machine only

Hong3Nguyen (Wed, 03 Apr 2019 06:54:21 GMT):
Hi because I would like to build my own application based on Hyperledger

AYUSHIAGARWAL (Wed, 03 Apr 2019 06:56:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sDDixoWzBFidXHzHo) @Dhiraj1990 Actually, I want to implement my own consensus algorithm in hyperledger fabric. https://hyperledger-fabric.readthedocs.io/en/release-1.4/Fabric-FAQ.html#ordering-service Here, I got to know that I need to implement Consenter and Chain interfaces. I tried to read Kafka's code but I am not able to understand much. Can you guide how to impplement the functions such as HandleChain() , Order() , Configure() , WaitReady() etc.

AndresMartinezMelgar.itcl (Wed, 03 Apr 2019 06:57:13 GMT):
Hi, if i have a network with 2 or more orderer, i must mark it in configtx file? and in ORDERER_URL variable? --> orderer1:port,orderer2:port? just with putting one left over? since they communicate with each other or on the contrary I have to point out all the order

AndresMartinezMelgar.itcl (Wed, 03 Apr 2019 07:04:57 GMT):
hi. at the end is it confirmed that hyperledger composer will be abandoned? or I'm invented

benjamin.verhaegen (Wed, 03 Apr 2019 07:08:32 GMT):
anyone here from the linux foundation?

Lorem (Wed, 03 Apr 2019 07:32:27 GMT):
Has joined the channel.

Lorem (Wed, 03 Apr 2019 07:37:34 GMT):
Hey, can someone please explain me the difference in using the node.js scripts to access the ledger of the first tutorials compared to connecting to the cli docker-container and running all commands manually as query or invoke transactions? What are the differences in permissions? Or are both methods the same, just with some sort of UI in case of the scripts?

Lorem (Wed, 03 Apr 2019 07:42:59 GMT):
To be more accurate: What are the differences between running "node fabric-samples/fabcar/javascript/query.js" compared to running "docker exec cli peer chaincode query -o orderer.example.com:7050 -C mychannel -n mocc -c '{"function":"queryAllCars","Args":[]}' "

Lorem (Wed, 03 Apr 2019 07:42:59 GMT):
To be more accurate, for example: What are the differences between running "node fabric-samples/fabcar/javascript/query.js" compared to running "docker exec cli peer chaincode query -o orderer.example.com:7050 -C mychannel -n mocc -c '{"function":"queryAllCars","Args":[]}' "

johnsmith1234 (Wed, 03 Apr 2019 08:12:36 GMT):
could you show me an example ? @FabricBeer

Lorem (Wed, 03 Apr 2019 09:07:16 GMT):
Hi, another questions: Im currently running two chaincodes on the same channel (using the chaincode from fabcar tutorial). After using the createCar invoke-transaction on the first chaincode, I can't see the new car-object by using queryCar with the second chaincode but with the first chaincode. So, to formulate my question: Why do these two chaincodes have kind of different/separate ledgers even when they are in the same channel?

KGiou (Wed, 03 Apr 2019 09:57:13 GMT):
Hi all.I have to questions. Firstly, how can I migrate my Organisations Infrastructure (peers, orderers, generally all the nodes) from one datacenter to another?? And secondly, if I have a blockchain network up and running and something happens to my CA and lose my CA certificates, will I be able to have access to my old ledger or because I will change certs it will be impossible? What should I do in a situation like that?

KGiou (Wed, 03 Apr 2019 09:57:13 GMT):
Hi all.I have two questions. Firstly, how can I migrate my Organisations Infrastructure (peers, orderers, generally all the nodes) from one datacenter to another?? And secondly, if I have a blockchain network up and running and something happens to my CA and lose my CA certificates, will I be able to have access to my old ledger or because I will change certs it will be impossible? What should I do in a situation like that?

laurasp (Wed, 03 Apr 2019 10:25:27 GMT):
Has joined the channel.

GianlucaPinto (Wed, 03 Apr 2019 10:28:02 GMT):
hi all, a simple question: why the name of the chaincode container start with "dev-" ?

AndresMartinezMelgar.itcl (Wed, 03 Apr 2019 11:15:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dhYd9K5B7X7GYkDtP) @KGiou i have exactly same question

jozefchmelar (Wed, 03 Apr 2019 11:17:43 GMT):
Hello... Why previous previous_hash doesnt equal data hash in blockS?

sahilgoel (Wed, 03 Apr 2019 11:22:24 GMT):
Has joined the channel.

florianc (Wed, 03 Apr 2019 11:24:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iX2qBxXLQWJ8jdv3C) @Lorem Hi. Chaincodes have "separate" world state, but registry is the same, even if they are in the same channel. I cannot tell you why, but you can query the world state of CCB from CCA with the invokeChaincode function by providing the chaincode name. For example: var responseAsBytes = await stub.invokeChaincode('chaincodename', query, "channelName");

gen_el (Wed, 03 Apr 2019 11:53:27 GMT):
Hi. So i noticed the raft ordering and broadcast time isn't consistent. Sometimes it takes 2s (batch timeout time) other times it takes *60seconds*. See the logs --> Why does this happen?

gen_el (Wed, 03 Apr 2019 11:54:13 GMT):

Screenshot 2019-04-03 at 12.34.03 PM.png

vineetmishra (Wed, 03 Apr 2019 11:58:24 GMT):
I was checking my fabric application performance testing with 100,200 user send doing some post request to chaincode after 500 record exception start coning mentioned below error Error: Error: Failed to invoke chaincode. cause:Error: The invoke chaincode transaction was invalid, code:MVCC_READ_CONFLICT please suggest for this

AkhilKura (Wed, 03 Apr 2019 12:00:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4YCMMbujhhPaEKTq3) @GianlucaPinto Because you are running them in development mode

AYUSHIAGARWAL (Wed, 03 Apr 2019 12:01:00 GMT):
I tried to build the hyperledger fabric code of both master branch and release-1.4 . But it gives the following errors

AYUSHIAGARWAL (Wed, 03 Apr 2019 12:01:32 GMT):

Screenshot from 2019-04-03 17-27-18.png

AYUSHIAGARWAL (Wed, 03 Apr 2019 12:01:35 GMT):

Screenshot from 2019-04-03 17-27-24.png

AYUSHIAGARWAL (Wed, 03 Apr 2019 12:02:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TT84rZ8CdCMMWETfA) Can anyone help me with this?

FabricBeer (Wed, 03 Apr 2019 12:25:15 GMT):
@johnsmith1234 ::

FabricBeer (Wed, 03 Apr 2019 12:26:16 GMT):
@johnsmith1234 - &TPW1 # party organisation Name: TPW1MSP # ID to load the MSP definition as ID: TPW1MSP MSPDir: crypto-config/peerOrganizations/tpw1org.example.com/msp Policies: Readers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.peer', 'TPW1MSP.client')" Writers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.client')" Admins: Type: Signature Rule: "OR('TPW1MSP.admin')"

FabricBeer (Wed, 03 Apr 2019 12:26:16 GMT):
@johnsmith1234 - &TPW1 # Third party warehouse organisation Name: TPW1MSP # ID to load the MSP definition as ID: TPW1MSP MSPDir: crypto-config/peerOrganizations/tpw1org.rvbl.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.peer', 'TPW1MSP.client')" Writers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.client')" Admins: Type: Signature Rule: "OR('TPW1MSP.admin')"

FabricBeer (Wed, 03 Apr 2019 12:26:16 GMT):
@johnsmith1234 - &TPW1 # Third party warehouse organisation Name: TPW1MSP # ID to load the MSP definition as ID: TPW1MSP MSPDir: crypto-config/peerOrganizations/tpw1org.example.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.peer', 'TPW1MSP.client')" Writers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.client')" Admins: Type: Signature Rule: "OR('TPW1MSP.admin')"

FabricBeer (Wed, 03 Apr 2019 12:26:16 GMT):
@johnsmith1234 - &TPW1 # party organisation Name: TPW1MSP # ID to load the MSP definition as ID: TPW1MSP MSPDir: crypto-config/peerOrganizations/tpw1org.example.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.peer', 'TPW1MSP.client')" Writers: Type: Signature Rule: "OR('TPW1MSP.admin', 'TPW1MSP.client')" Admins: Type: Signature Rule: "OR('TPW1MSP.admin')"

walmon (Wed, 03 Apr 2019 12:42:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=x2uuzy3FdW6M6Ytxd) @Hong3Nguyen Hi @Hong3Nguyen start with Hurley to start quickly https://github.com/worldsibu/hurley then you can check the https://github.com/hyperledger/fabric-samples - here's how to run them with Hurley without worriying about the infra - https://medium.com/worldsibu/fabric-samples-made-easier-with-hurley-the-development-environment-manager-c75b44fa6ac6

Hong3Nguyen (Wed, 03 Apr 2019 13:06:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bhb9oTzLFdH7x4etX) @walmon Hi thank you for suggestion, when I build it if I have some more questions can I ask u later. Thank you in advance

GianlucaPinto (Wed, 03 Apr 2019 13:08:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JWF4EtzibtKgq94QF) @AkhilKura ok, and how can i run i non-dev mode?

walmon (Wed, 03 Apr 2019 13:09:05 GMT):
Sure thing @Hong3Nguyen good luck!

Lorem (Wed, 03 Apr 2019 13:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ajJ7nL5qoFj8bzNNx) @florianc Thanks for replying. Now, I've found the invokeChaincode function in the docs. Nevertheless, I struggle with calling this function. I'm currently using it like this: queryResponse = await ctx.stub.invokeChaincode("fabcar", ["queryAllCars", "[]"], "mychannel"); but I get the error: "Failed to get policy manager for channel [c]". Do you know how to solve this issue? Thanks in advance

florianc (Wed, 03 Apr 2019 15:05:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tC8g6tgRJHwtdsQjZ) @Lorem I cannot help you with that. I don't really understand the error. Looks like something is wrong with your channel.

klkumar369 (Wed, 03 Apr 2019 18:26:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=iX2qBxXLQWJ8jdv3C) @Lorem Each peer has its own ledger(s) as per the design and also can have chaincode(s) installed on them. I think your peer should be installed with both of your chaincodes. So that, logically both the peers should be able to access the world state.

spmcnamara (Wed, 03 Apr 2019 19:22:44 GMT):
Can anyone point me to the documentation for the configuration file directives available for the *cryptogen* tool? I know they must be somewhere, but I'm not spotting them in the docs. :-(

j4zzcat (Wed, 03 Apr 2019 20:18:24 GMT):
Has joined the channel.

j4zzcat (Wed, 03 Apr 2019 20:18:39 GMT):
Hello, when proposing a transaction to an endorser, is the invocation synchronous ?

j4zzcat (Wed, 03 Apr 2019 20:19:57 GMT):
i.e., imagine a use case where a human has to accept or reject a proposed transaction

j4zzcat (Wed, 03 Apr 2019 20:20:52 GMT):
a client submits a proposal and then listens async to a result

walmon (Wed, 03 Apr 2019 21:36:31 GMT):
endorsement is not a human task, it's a computer task. If you had to approve or reject, the approval or reject action would be a transaction. You are confusing two different layers @j4zzcat but that's a common misconception. You can have approval/rejection logic in the code but that has little to do with a tx being endorsed, as it is done automatically by running the smart contract rules and passing throught policies. But yes, also transactions as asynchronous and you can listed for a result.

medikent (Wed, 03 Apr 2019 22:12:27 GMT):
What is the default orderer configuration used for a profile in *configtx.yaml* when that profile does not specify an *Orderer:* YAML block?

sah (Thu, 04 Apr 2019 02:31:49 GMT):
I'm having no luck with getting a cli on my machine to talk to a peer in another organisation on another machine. I've found how to up the logging level for *everything* on the peer, but there's too much chatter because of the gossip. Does anyone know how to set the level of the logger so only the communication between my cli and the peer are debug? I've tried `peer logging setlevel core.comm debug` but there was no change (keeping in mind that peer logging setlogspec debug` was too much)

sah (Thu, 04 Apr 2019 02:31:49 GMT):
I'm having no luck with getting a cli on my machine to talk to a peer in another organisation on another machine. I've found how to up the logging level for *everything* on the peer, but there's too much chatter because of the gossip. Does anyone know how to set the level of the logger so only the communication between my cli and the peer are debug? I've tried `peer logging setlevel core.comm debug` but there was no change (keeping in mind that `peer logging setlogspec debug` was too much)

AkhilKura (Thu, 04 Apr 2019 04:20:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mJ6eXXpDqCSKBNF4q) @GianlucaPinto there will be 2 kinds of modes development and production by default it it will run in development mode . Here can change that development to production in byfn.sh file

FabricBeer (Thu, 04 Apr 2019 04:36:49 GMT):
@spmcnamara https://hyperledger-fabric.readthedocs.io/en/release-1.1/commands/cryptogen-commands.html

Lorem (Thu, 04 Apr 2019 04:55:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YBE2oijFPtGYArzNX) @florianc Alright, thanks anyway. I guess, I'll keep on searching for some examples of this use case. Maybe this will help

Lorem (Thu, 04 Apr 2019 05:05:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nhszoFHk9SkCB2TsJ) @klkumar369 Thanks for your response, but i guess, you're mixing up terms. I have a single peer on my channel and both chaincodes are installed on this peer and initialized on the same channel. My problem is, that the first chaincode can't access the world state of the second chaincode, without using the invokeChaincode() method, @florianc mentioned. So in my case, I can init the world state of the first chaincode with some cars, but when i try to query one of these cars with the second chaincode, I've only get an empty object. Even though I can successfully query and edit all cars by using the first chaincode. But since @florianc already told me about the invokeChaincode() method and me getting some error caused by channel misconfiguration (?), this issue is mostly solved. Thanks anyway

ShwetaTripathi (Thu, 04 Apr 2019 05:10:27 GMT):
Hello, I am trying to implement ACL in Hyperledger Fabric. I have refered to the docs:https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html but couldn't find any concrete implementation of the same. Has anyone implemented it? If yes please provide insights to help me proceed with the same.

G596 (Thu, 04 Apr 2019 05:21:49 GMT):
Has joined the channel.

G596 (Thu, 04 Apr 2019 05:22:41 GMT):
Hi, Is there anyway to test business logic and the features of hyperledger fabric in an automated fashion ?

deenario (Thu, 04 Apr 2019 05:30:08 GMT):
If an organization holds multiple peers connected through a network and one endorsing peer is taking in transaction from the system. What if that single peer loses connection to all the peers in the organization for a temporary time. Will this peer be still able to work on its own and queue transactions to itself. When it gets live it send them to all the other peers and sync them .

deenario (Thu, 04 Apr 2019 05:31:58 GMT):
A Network with multiple organizations and multiple peers within those organizations working together. How will they handle a communication loss attack ?

spmcnamara (Thu, 04 Apr 2019 06:00:09 GMT):
@FabricBeer Thanks, I'm aware of that page but didn't think it was giving me what I'm looking for. Is the template shown by /cryptogen showtemplate/ 100% complete? For sections that aren't included in a YAML file (such as the CA), what is the default? Also, it indicates that the CA section is a SPEC, but also shows a number of parameters being set that do not appear in the description of SPEC. I was wondering if there was a more formal document (other than a template file) that answers these questions. I also find it interesting that the template file content has been removed from the 1.4 documentation.

SudhirKhatwani (Thu, 04 Apr 2019 06:17:27 GMT):
Has joined the channel.

NagatoPeinI1 (Thu, 04 Apr 2019 06:17:33 GMT):
I created a test network of 4 organization and based on collections i have segregated which organization can transact with each other but how can create a common node in which all organizations can come together and can do transaction, i.e. they all can see other organization data in that node?

AndresMartinezMelgar.itcl (Thu, 04 Apr 2019 06:25:14 GMT):
Hello, is there any way to know which users are registered in the CA? If at the moment of creating the network 2 users are created (according to the crypto-config file) and I create an additional one in the CA, I can also access those files?

LovepreetSingh (Thu, 04 Apr 2019 06:29:00 GMT):
While executing fabcar chaincode it gets instantiated but while inkoing initledger() it gives the following ERROR

LovepreetSingh (Thu, 04 Apr 2019 06:29:17 GMT):
Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response:

Sarath_Kumar (Thu, 04 Apr 2019 06:31:51 GMT):
Hi All, Yesterday i have installed a chaincode and have invoked some transactions. Today i am tried to query the transaction and the result is error. Chaincode container is exited and recent log says *bad certificate*

NaveenVamshi (Thu, 04 Apr 2019 06:35:27 GMT):
Has joined the channel.

NaveenVamshi (Thu, 04 Apr 2019 06:36:14 GMT):
Help to solve the bug when i running hyperledger fabrics , balance transfer by using the command in the bash script using the commands ./runApp.sh ./tesAPIs.sh then getting the error: [2019-04-04 16:20:42.432] [ERROR] Helper - Failed to get registered user: Jim with error: TypeError: client.loadFromConfig is not a function [2019-04-04 16:20:42.432] [ERROR] Helper - Failed to get registered user: Jim with error: TypeError: client.loadFromConfig is not a function How to resolve this bug.

johnsmith1234 (Thu, 04 Apr 2019 07:50:45 GMT):
does any one knows how chaincode's main function be invoked by who(which function) , how chaincode container be created

ajaysilver (Thu, 04 Apr 2019 07:50:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y9znYNieW6NKj7FvZ) @LovepreetSingh Can you provide the command you used to install and instantiate chaincode?

deenario (Thu, 04 Apr 2019 08:04:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7qQJqqK3g2GxtikCY) this :(

deenario (Thu, 04 Apr 2019 08:04:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DDbwXgFkaKC9s39f4) .

itg1996 (Thu, 04 Apr 2019 08:07:36 GMT):
Hi everyone, when I am instantiating the chaincode , the following error is shown in orderer logs:

itg1996 (Thu, 04 Apr 2019 08:07:43 GMT):
"2019-04-04 07:58:52.923 UTC [core.comm] ServerHandshake -> ERRO 011 TLS handshake failed with error tls: first record does not look like a TLS handshake {"server": "Orderer", "remote address": "172.22.0.3:52378"}"

BramLangelaar (Thu, 04 Apr 2019 08:29:20 GMT):
Has joined the channel.

LovepreetSingh (Thu, 04 Apr 2019 08:29:58 GMT):
@ajaysilver for insatlling

LovepreetSingh (Thu, 04 Apr 2019 08:30:00 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript

LovepreetSingh (Thu, 04 Apr 2019 08:30:49 GMT):
@ajaysilver For installing docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript

LovepreetSingh (Thu, 04 Apr 2019 08:30:49 GMT):
@ajaysilver For installing docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript

LovepreetSingh (Thu, 04 Apr 2019 08:30:49 GMT):
@ajaysilver For installing docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript for instantiation .. docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode instantiate -o orderer.medchain.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/medchain.com/orderers/orderer.medchain.com/msp/tlscacerts/tlsca.medchain.com-cert.pem -C channel0-n mycc -v 1.0 -l node -c '{"Args":[]}' -P "OR ('PatientMSP.peer','DoctorMSP.peer')"

LovepreetSingh (Thu, 04 Apr 2019 08:30:49 GMT):
@ajaysilver For installing docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript for instantiation .. docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode instantiate -o orderer.medchain.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/medchain.com/orderers/orderer.medchain.com/msp/tlscacerts/tlsca.medchain.com-cert.pem -C channel0-n mycc -v 1.0 -l node -c '{"Args":[]}' -P "OR ('PatientMSP.peer','DoctorMSP.peer')" *It get installed and instantiated But while querying it give error*

LovepreetSingh (Thu, 04 Apr 2019 08:30:49 GMT):
@ajaysilver For installing docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/fabcar/javascript for instantiation .. docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode instantiate -o orderer.medchain.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/medchain.com/orderers/orderer.medchain.com/msp/tlscacerts/tlsca.medchain.com-cert.pem -C channel0-n mycc -v 1.0 -l node -c '{"Args":[]}' -P "OR ('PatientMSP.peer','DoctorMSP.peer')" *It get installed and instantiated But while querying it give error*

jozefchmelar (Thu, 04 Apr 2019 08:33:41 GMT):
how di I display the real value in queryInfo.currentBlockHash.buffer using nodejs?

LovepreetSingh (Thu, 04 Apr 2019 08:33:51 GMT):
@ajaysilver Querying command docker exec -e "CORE_PEER_LOCALMSPID=PatientMSP" -e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/peers/peer0.patient.medchain.com/tls/ca.crt" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/patient.medchain.com/users/Admin@patient.medchain.com/msp" -e "CORE_PEER_ADDRESS=peer0.patient.medchain.com:7051" cli peer chaincode query -C channel0 -n mycc -c '{"Args":["query","a"]}'

bilalahmed (Thu, 04 Apr 2019 08:45:36 GMT):
How and where may I see transaction logs (Ledger blocks data) ? Like it is shown on Hyplerledger Composer Playground

florianc (Thu, 04 Apr 2019 08:52:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CsSygntpA8ySZjSt9) @jozefchmelar Try buffer.toString('utf8'). Also, check this out. It could help you if toString is not enough: https://hackernoon.com/https-medium-com-amanhimself-converting-a-buffer-to-json-and-utf8-strings-in-nodejs-2150b1e3de57

shekharrajak (Thu, 04 Apr 2019 09:08:28 GMT):
Has joined the channel.

YTing 1 (Thu, 04 Apr 2019 09:36:55 GMT):
Has joined the channel.

YTing 1 (Thu, 04 Apr 2019 09:37:08 GMT):
Help to solve the error when I running hyperledger fabric first-network``` ``` Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing) ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded ```

bilalahmed (Thu, 04 Apr 2019 09:39:26 GMT):
@YTing 1 please verify COMPOSE_PROJECT_NAME variable is set

bilalahmed (Thu, 04 Apr 2019 09:39:50 GMT):
in peer base: CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_byfn

YTing 1 (Thu, 04 Apr 2019 09:50:34 GMT):
@bilalahmed My peer-base.yaml ``` services: peer-base: image: hyperledger/fabric-peer:$IMAGE_TAG environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_byfn - FABRIC_LOGGING_SPEC=INFO #- FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true ```

HaydenGriffin (Thu, 04 Apr 2019 09:51:05 GMT):
Hi everyone. I am hoping someone can help me regarding keys generated by user enrolment to the fabric CA. I am following this example: https://github.com/hyperledger/fabric-sdk-go/blob/master/test/integration/pkg/client/msp/user_data_mgmt_test.go I have managed to retrieve key objects for each registered user and would like to use the keys within my web app for encryption

HaydenGriffin (Thu, 04 Apr 2019 09:55:58 GMT):
How can I utilise these keys to encrypt and decrypt data?

bilalahmed (Thu, 04 Apr 2019 09:56:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MPe5kHg82NZLSCcZ2) @YTing 1 yes, verify ${COMPOSE_PROJECT_NAME} is being replaced correctly

YTing 1 (Thu, 04 Apr 2019 10:03:22 GMT):
@bilalahmed Sorry How to confirm that it was replaced as correct? Thank you

bilalahmed (Thu, 04 Apr 2019 10:09:52 GMT):
Are you adding a new peer? or running network from start?

bilalahmed (Thu, 04 Apr 2019 10:10:42 GMT):
There are two ways, first you can check container logs of peer and secondly when you run ./byfn up command you will see net_byfn

bilalahmed (Thu, 04 Apr 2019 10:11:10 GMT):
and if it is not set you get warning too that variable COMPOSE_PROJECT_NAME isn't set so replacing it with empty string

HaydenGriffin (Thu, 04 Apr 2019 10:14:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HcTY56LDANiDb7KAk) And how can I retrieve the private key? I currently return an empty byte and a message is presented, saying Not supported when I try to access the private key

KartikChauhan (Thu, 04 Apr 2019 10:14:53 GMT):
How do I setup Raft based ordering service? So far I've just installed fabric 1.4.1 binaries. I couldn't find any documentation or doc on this.

Yunxi 3 (Thu, 04 Apr 2019 10:17:54 GMT):
Has joined the channel.

Yunxi 3 (Thu, 04 Apr 2019 10:18:06 GMT):
Hello, I'm using Fabric version 1.4 plus node for developing chaincode for all docker images. In my Fabric network, I have two organisations, each organisation has only one peer node. The issue I got is I can see my chaincode has been installed in the two peer nodes, but I can't tell if the chaincode has been instantiated properly. This is the log i can see in my one of my peer node: 2019-04-04 10:10:36.648 UTC [endorser] callChaincode -> INFO 049 [][1576be58] Entry chaincode: name:"lscc" 2019-04-04 10:10:36.654 UTC [lscc] executeInstall -> INFO 04a Installed Chaincode [cc] Version [0.1] to peer 2019-04-04 10:10:36.655 UTC [endorser] callChaincode -> INFO 04b [][1576be58] Exit chaincode: name:"lscc" (8ms) 2019-04-04 10:10:36.656 UTC [comm.grpc.server] 1 -> INFO 04c unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.21.0.5:47472 grpc.code=OK grpc.call_duration=9.2915ms 2019-04-04 10:10:45.775 UTC [endorser] callChaincode -> INFO 04d [c][1cb4ab60] Entry chaincode: name:"lscc" 2019-04-04 10:11:19.071 UTC [endorser] callChaincode -> INFO 04e [c][1cb4ab60] Exit chaincode: name:"lscc" (33330ms) 2019-04-04 10:11:19.071 UTC [comm.grpc.server] 1 -> INFO 04f unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.21.0.5:47480 grpc.code=OK grpc.call_duration=33.332049s My question is: if a chaincode has been successfully instantiated, am i supposed to see this info in the peer node's log, and how can i test if a chaincode has been successfully instantiated?

itg1996 (Thu, 04 Apr 2019 10:25:57 GMT):
@Yunxi 3 run command in cli: peer chaincode list --instantiated

Yunxi 3 (Thu, 04 Apr 2019 10:28:58 GMT):
Get instantiated chaincodes on channel c: Name: cc, Version: 0.1, Path: /opt/gopath/src/github.com/chaincode/buy_sell/node/, Escc: escc, Vscc: vscc. Does this mean the chaincode has been instantiated successfully?

YTing 1 (Thu, 04 Apr 2019 10:39:48 GMT):
@bilalahmed I get new error ``` Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH is set to a path which contains core.yaml``` ``` ```

Yunxi 3 (Thu, 04 Apr 2019 10:52:18 GMT):
@itg1996 , if the log I provided above does mean chaincode has been successfully instantiated, the strange stuff i got is i can't see any log printed from init function in my chaincode

adamhardie (Thu, 04 Apr 2019 10:52:52 GMT):
when running on a test server running kafka network, our hyperledger applications experience slowdown after 15 minutes (idle or active during the time) CompletableFuture in the javaSDK becomes longer than 5 seconds (proposal to peer is still immediately replied to, but commit seems to fail to respond)

Yunxi 3 (Thu, 04 Apr 2019 10:58:54 GMT):
what's the difference between the two files named config.yml and configtx.yml ?

Yunxi 3 (Thu, 04 Apr 2019 11:02:21 GMT):
figured out where to see the logs for chaincode, but still confused with config.yml and configtx.yml

neneg (Thu, 04 Apr 2019 11:16:25 GMT):
Has joined the channel.

SashaPESIC (Thu, 04 Apr 2019 11:19:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9kycM6g2stJHea92a) @Yunxi 3 Can you post the files? i am not sure what are you reffering to...

neneg (Thu, 04 Apr 2019 11:22:01 GMT):
Hi, I am using HLF 1.4 and I am using docker swarm to implement the network on various machines (i.e. a cluster). First, what other technologies or frameworks can i use to be able to deploy my network on various physical machines? Which one is the best you think (easy to debug, scalable, etc)? second, I constantly get the error "Error: rpc error: code = Unavailable desc = transport is closing" when I try to create a channel on one of my peers .... do you have any idea what may be causing this error? JSYK I am working behind a corporate proxy, could this be the issue? If so, how can I fix it. I also looked at the docker logs for the very peer but I have no clue what causes this error... I would appreciate your advice on this.

bilalahmed (Thu, 04 Apr 2019 11:26:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2297A4xH8PhPb5kyL) @YTing 1 export FABRIC_CFG_PATH=${PWD}

BrajeshKumar (Thu, 04 Apr 2019 11:41:03 GMT):
Has joined the channel.

BrajeshKumar (Thu, 04 Apr 2019 11:41:13 GMT):
how to access fabric-ca-client? we have already setup fabric-ca-server and got it up and running but we are not able to use fabric ca client using cli

adamhardie (Thu, 04 Apr 2019 11:42:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Eo75Mrk7h5jNGyx7m) might it be related to this General.Authentication.TimeWindow = 15m0s in orderer config ?

mariogemoll (Thu, 04 Apr 2019 12:19:38 GMT):
Hello, is there a way to specify an environment variable or other configuration option on a peer that gets passed to a chaincode (e.g. an environment variable that is set by the peer in the chaincode container when it is started)?

HaydenGriffin (Thu, 04 Apr 2019 12:23:04 GMT):
Hi all, I have created a memory key store and registered users to this key store. I am attempting to retrieve the private key for the users stored within the keystore and I am receiving an error saying [] Not supported. Is there any way for me to be able to retrieve this private key value?

Yunxi 3 (Thu, 04 Apr 2019 12:45:53 GMT):
@SashaPESIC , the configtx.yml file is the one shows like this: Organizations: # SampleOrg defines an MSP using the sampleconfig. It should never be used # in production but may be used as a template for other definitions - &OrdererOrg # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: OrdererOrg # ID to load the MSP definition as ID: OrdererMSP # MSPDir is the filesystem path which contains the MSP configuration MSPDir: crypto-config/ordererOrganizations/admin.com/msp, for the config.yml file, I only find it on this link: https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html, but have no clue if they are the same file or not

SashaPESIC (Thu, 04 Apr 2019 13:11:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XwFktsw9bHSzZw9RT) @Yunxi 3 well. this is configtx.yaml like here (https://github.com/hyperledger/fabric-samples/blob/release-1.4/basic-network/configtx.yaml). What you also need is a crypto-config.yaml, like here (https://github.com/hyperledger/fabric-samples/blob/release-1.4/basic-network/crypto-config.yaml). Both are needed to create all necessary config files...

brucedonovan (Thu, 04 Apr 2019 13:16:14 GMT):
Has joined the channel.

sara92 (Thu, 04 Apr 2019 13:16:28 GMT):
Has joined the channel.

sara92 (Thu, 04 Apr 2019 13:19:00 GMT):
Hi guys. Having an issue with running the chain code for one of the peers I have. The last peer trying to run never gets the Chain Code container spun up. When trying to instantiate it I get an error in the logs saying "chaincode with name 'main-chaincode' already exists". Any idea why that is happening? :)

adamhardie (Thu, 04 Apr 2019 13:47:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Eo75Mrk7h5jNGyx7m) could it be related to this please? https://jira.hyperledger.org/browse/FAB-3310

HaydenGriffin (Thu, 04 Apr 2019 13:56:54 GMT):
Hi all, I need some help regarding BCCSP implementation in fabric go sdk

StefanoSambruna (Thu, 04 Apr 2019 14:06:38 GMT):
Has joined the channel.

StefanoSambruna (Thu, 04 Apr 2019 14:06:42 GMT):
Hi everyone, is there a channel in which I can ask very generic questions about Fabric network design approaches or possible Fabric use cases?

Antimttr (Thu, 04 Apr 2019 14:23:37 GMT):
boy i wish there was

Yunxi 3 (Thu, 04 Apr 2019 14:23:40 GMT):
@SashaPESIC , thanks for the answer, i do use the configtx.yaml and crypto-config.yaml, just wondering what the config.yaml file is used for in the link I gave above?

Antimttr (Thu, 04 Apr 2019 14:24:17 GMT):
@StefanoSambruna i have yet to find anything on best practices, but maybe some day

walmon (Thu, 04 Apr 2019 14:25:28 GMT):
@StefanoSambruna ask here! Here's people that can advice

Antimttr (Thu, 04 Apr 2019 14:26:35 GMT):
@walmon do all the sdk's implement the same 3 admin users that the java sdk does?

Antimttr (Thu, 04 Apr 2019 14:27:48 GMT):
ie. an admin for CA, admin for Peers and admin for orderers? or is this specific to the java sdk

walmon (Thu, 04 Apr 2019 14:31:02 GMT):
@Antimttr yeah, that's not specific to an sdk - you need an identity for orderers and peers - as you do for every CA, since they communicate they need to be identifiable

Antimttr (Thu, 04 Apr 2019 14:32:41 GMT):
and the identity is always established by the cert&key used by the user which is located in the MSP directory, correct?

StefanoSambruna (Thu, 04 Apr 2019 14:33:11 GMT):
I have a doubt about the security of the client application. As I understood well it should be a web app hosted on a remote server which has the ability to communicate with the Fabric nodes through the Fabric SDK. With the Client Application, also the members credentials are store somewhere on a remote server. So I would like to know how to make this client application secure in this sense. Isn't there the possibility that someone who has direct control over the cloud service that hosts the webapp could take the member credentials and act as it was someone else?

walmon (Thu, 04 Apr 2019 14:34:34 GMT):
@Antimttr that's just a pattern, you actually configure that as env vars in the containers to point to wherever you want the files to be

Antimttr (Thu, 04 Apr 2019 14:35:24 GMT):
@StefanoSambruna if you have 3rd parties accessing your assets that would always be a security issue

walmon (Thu, 04 Apr 2019 14:35:36 GMT):
@StefanoSambruna not sure I followed completely, they could grab the client credentials and act as the client app - not sure if that's what you mean with this "act as it was someone else"

walmon (Thu, 04 Apr 2019 14:35:48 GMT):
There are also HSM support where you could store the cert

walmon (Thu, 04 Apr 2019 14:35:48 GMT):
There is also HSM support where you could store the cert

Antimttr (Thu, 04 Apr 2019 14:36:23 GMT):
im storing my certs encrypted in a database, but enevitably i have to store the keys to unlock the encryption on the server itself

Antimttr (Thu, 04 Apr 2019 14:36:23 GMT):
im storing my certs encrypted in a database, but inevitably i have to store the keys to unlock the encryption on the server itself

kjensen (Thu, 04 Apr 2019 14:38:46 GMT):
Has joined the channel.

ZichengWang (Thu, 04 Apr 2019 15:58:46 GMT):
Has joined the channel.

kjensen (Thu, 04 Apr 2019 16:16:16 GMT):
Has left the channel.

mrortner (Thu, 04 Apr 2019 17:11:54 GMT):
Has joined the channel.

TBdori (Thu, 04 Apr 2019 18:31:02 GMT):
hi. so IBP 2.0 allows to use other cloud such as AZURE or AWS ?

TBdori (Thu, 04 Apr 2019 18:31:32 GMT):
this blog says "Later in 2019, we will provide the capability to connect to nodes running in any environment, including on-premise, public, and hybrid clouds."

TBdori (Thu, 04 Apr 2019 18:31:42 GMT):
https://www.ibm.com/blogs/bluemix/2019/02/ibm-blockchain-platform-free-2-0-beta/

mrortner (Thu, 04 Apr 2019 18:33:45 GMT):
Hey anyone out there want some freelance work for a small Hyperledger Fabic 2.0 with node project?

JulienTocci (Thu, 04 Apr 2019 20:00:58 GMT):
Hello, did someone manage to make joining an org to an existing channel with node.sdk ? Implementing steps described there https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html with the node sdk is a nightmare

Antimttr (Thu, 04 Apr 2019 20:11:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=np3AngJgHNpn2u5QN) 2.0? did i miss a release?

mrortner (Thu, 04 Apr 2019 20:57:59 GMT):
https://www.ibm.com/blogs/bluemix/2019/02/ibm-blockchain-platform-free-2-0-beta/ is what I am referring to

mrortner (Thu, 04 Apr 2019 20:58:18 GMT):
HL 2.0 with Fabric.

Estebanrestrepo (Thu, 04 Apr 2019 23:20:33 GMT):
How to invoke a chaincode form another chaincode?

walmon (Thu, 04 Apr 2019 23:49:31 GMT):
@mrortner that's not a hyperledger release - it's the name they gave to their platform

walmon (Thu, 04 Apr 2019 23:50:07 GMT):
@mrortner hyperledger fabric is still 1.4. the 2.0 is the name they gave to their platform

TBdori (Fri, 05 Apr 2019 01:53:23 GMT):
i kept getting " Unable to initialize channel. Attempted to contact 1 Peers". not sure why

armmarov (Fri, 05 Apr 2019 01:53:33 GMT):
Has joined the channel.

TBdori (Fri, 05 Apr 2019 01:53:59 GMT):
looks like several people have seen it but i can't find a solution

florianc (Fri, 05 Apr 2019 06:41:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lr7RMoKvNSNRqkqWb) @Estebanrestrepo https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html#invokeChaincode__anchor

ajaysilver (Fri, 05 Apr 2019 06:44:27 GMT):
Hello everyone, I have a doubt. Here I have 2 chaincode in nodejs

ajaysilver (Fri, 05 Apr 2019 06:44:29 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/chaincode_example02/node/chaincode_example02.js

ajaysilver (Fri, 05 Apr 2019 06:44:33 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/fabcar/javascript/lib/fabcar.js

ajaysilver (Fri, 05 Apr 2019 06:44:45 GMT):
I don't understand what is the difference between them

ajaysilver (Fri, 05 Apr 2019 06:44:55 GMT):
And why 2 different implementation

LovepreetSingh (Fri, 05 Apr 2019 06:45:29 GMT):
Error : PEM encoded certificate is required .at *gateway.getNetwork('channelname') *

LovepreetSingh (Fri, 05 Apr 2019 06:46:48 GMT):
@ajaysilver chaincode_example02.js is implemented using 'fabric-shim' and fabcar.js is implemented using 'fabric-contract-api' module

SashaPESIC (Fri, 05 Apr 2019 06:48:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EoazbmYPY4qcqCN7d) @sara92 My first guess is that the chaincode is already instantiated on that channel. Instantiation can happen only once (as its a transaction) on the channel. If you instantiated on one peer, simply invoke a transaction on the other peer and the chaincode container will come up...

ajaysilver (Fri, 05 Apr 2019 06:54:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CFxvuurPqcfbafcgr) @LovepreetSingh Thanks

ajaysilver (Fri, 05 Apr 2019 06:54:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tmSkmm9EyT7RrPjn8) @LovepreetSingh Thanks

deenario (Fri, 05 Apr 2019 07:06:59 GMT):
Okay Imagine this. There are 100 Organizations and every one of them have an orderer connected to it and have about 10 peers. 5 endorsing peers. Now 1 of these 100 organizations looses communication with the remaining 99 organization and there peers. Can this organization with its endorsing peers and orderer still handling transactions? Keeping in mind that the remaining 99 Orgs are working together as they are still connected. SO now that the internet is back. The 99 org peers have there ledger state and this 1 orgs peers have there state. Can they sync everything up ? They all have a same ledger but different chaincodes.

MuhammedHafil (Fri, 05 Apr 2019 07:11:24 GMT):
Im getting below error while instantiating chaincode, peer log ``` 2019-04-05 06:59:32.047 UTC [endorser] callChaincode -> INFO 050 [mychannel][e420aa56] Entry chaincode: name:"lscc" 2019-04-05 07:04:33.827 UTC [endorser] callChaincode -> INFO 051 [mychannel][e420aa56] Exit chaincode: name:"lscc" (301780ms) 2019-04-05 07:04:33.827 UTC [endorser] SimulateProposal -> ERRO 052 [mychannel][e420aa56] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode finlead:1.0 for transaction ``` ``` ``` chaincode container log ``` 2019-04-05T06:59:55.999Z ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/usr/local/src/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:618:8)\n at /usr/local/src/node_modules/grpc/src/client_interceptors.js:1123:18" ``` peer is currently running

MuhammedHafil (Fri, 05 Apr 2019 07:11:24 GMT):
Im getting below error while instantiating chaincode, peer log ``` 2019-04-05 06:59:32.047 UTC [endorser] callChaincode -> INFO 050 [mychannel][e420aa56] Entry chaincode: name:"lscc" 2019-04-05 07:04:33.827 UTC [endorser] callChaincode -> INFO 051 [mychannel][e420aa56] Exit chaincode: name:"lscc" (301780ms) 2019-04-05 07:04:33.827 UTC [endorser] SimulateProposal -> ERRO 052 [mychannel][e420aa56] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode mycc:1.0 for transaction ``` ``` ``` chaincode container log ``` 2019-04-05T06:59:55.999Z ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/usr/local/src/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:618:8)\n at /usr/local/src/node_modules/grpc/src/client_interceptors.js:1123:18" ``` peer is currently running

florianc (Fri, 05 Apr 2019 07:11:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aJSXy2K2Q4dFRmiBY) @deenario I don't have full" answer to that, but one of the parameter to take into account is endorsment policy. If it is set to more than one org, no transaction will be validated by the organization that is "alone".

florianc (Fri, 05 Apr 2019 07:13:25 GMT):
And thinking about this, (but I can be wrong), endorsement policy might have been created for this purpose. In a well configured network with 100 orgs, you don't want only one org to endorse transactions as it would not really make sense to use blockchain in this case.

deenario (Fri, 05 Apr 2019 07:19:32 GMT):
Every organization data is irrelevant to other organizations (They only need to query it). So i was thinking that 1 organization would have policies like its own 10 peers should be able to add this data to its ledger.

deenario (Fri, 05 Apr 2019 07:19:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PCrhGsFYNKsir5jyN) @florianc This system is not really making my mind spin.

florianc (Fri, 05 Apr 2019 07:21:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bLfFwfC2oQX4EoYds) @deenario Is blockchain appropriate for your solution then? If orgs do not need to reach a consensus and only need to query data, why don't you use current database technology?

MuhammedHafil (Fri, 05 Apr 2019 07:22:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ua29R5WBhHbwExnYW) okay. it worked after giving `CORE_PEER_CHAINCODELISTENADDRESS` to peer

ajaysilver (Fri, 05 Apr 2019 07:33:01 GMT):
Hello everyone, I have a question as we use connection.json file in basic-network

ajaysilver (Fri, 05 Apr 2019 07:33:10 GMT):
What do we use in first-network?

deenario (Fri, 05 Apr 2019 07:34:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G9AkBDwvnGCBdLYNu) @florianc I wanted to make it work on the blockchain technology. Plus making it immutable and decentralized. The rest matches my architecture. I just wanted to make sure that Somehow if a peer does down then it should be able to handle the transactions but i guess that wont be possible. Connectivity to the orderer and other organization is a must.

florianc (Fri, 05 Apr 2019 07:36:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LQpFJ7st5eAsJimzj) @deenario Ok. I have not tested it. But a peer should sync with the rest of the network. And according to my understanding, you should not give to only one org the endorsing role.

Rajatsharma (Fri, 05 Apr 2019 07:40:09 GMT):
I'm building a chaincode and for my use case I want to know if that's invoked from the SDK directly by a user of from a chaincode using `stub.invokeChaincode()`. Is there anyone to find this out ? Then I'll implement my logic accordingly.

neneg (Fri, 05 Apr 2019 08:07:18 GMT):
Hi guys! what is the best way to deploy network on various machines? docker swarm, Kuberetes, etc?

JohnR (Fri, 05 Apr 2019 08:26:58 GMT):
Docker swarm with an overlay network is pretty easy. I based an installation on Ansible Fabric Starter and that worked pretty easy too

JohnR (Fri, 05 Apr 2019 08:27:27 GMT):
I did some tweaking however to the playbooks, that I'll probably do a pull request for

Lorem (Fri, 05 Apr 2019 08:29:31 GMT):
Hey, can someone please tell me, when i start any node.js script from the fabric tutorials, on which docker container will they be executed and where is this defined? I've examined the script files, but i haven't found any indication on which docker container will be accessed to run the chaincode commands

Tom-Xu-CNXA (Fri, 05 Apr 2019 08:29:58 GMT):
It seems that 'operations|metrics' configuration in core.yaml or orderer.yaml doesn't work in 1.4.1-rc1, I tried several ways (try setting it in docker yaml ENV) but the operation service even didn't start. Do we have any information on this? (No steps, per core.yaml, it should start as default, right?)

neneg (Fri, 05 Apr 2019 08:32:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TnCXE987S4XH7XxS7) @JohnR Thanks John for your reply. I am currently using docker swarm, however, I constantly get this error: "Error: rpc error: code = Unavailable desc = transport is closing" when I try to create the channel using peer channel create command... could this be caused by proxy? How can I debug gRPC most effectively?

JohnR (Fri, 05 Apr 2019 08:46:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Lnu6dWv3SbTjDm3iE) @neneg Last time I saw that one, it was a resolving issue, I'ld try to check the logs from the different peers and orderer and see if you can determine the issue from there

JohnR (Fri, 05 Apr 2019 08:50:32 GMT):
It could also be a TLS issue with missing certificates, but that should be pretty obvious from peer / orderer logs too

Lorem (Fri, 05 Apr 2019 10:17:00 GMT):
Hi, another question: Does a chaincode have a single world state and every smart contract defined in this chaincodes has access to it, or does every smart contract have his own world state but smart contracts defined in the same chaincode can access each of these world states?

Dhiraj1990 (Fri, 05 Apr 2019 10:49:34 GMT):
Hello all, I have encoutred a very strange behaviour with fabric I have two orgs with each peer & endorsement policy is (OR Org1.peer). I have integrated the node sdk with it. In connection.json i have set below property for peers as below "channels": { "mychannel": { "orderers": [ "orderer.example.com" ], "peers": { "peer0.org1.example.com": { "endorsingPeer": true, "chaincodeQuery": true, "ledgerQuery": true, "eventSource": true }, "peer1.org1.example.com": { "endorsingPeer": false, "chaincodeQuery": false, "ledgerQuery": false, "eventSource": false }, "peer0.org2.example.com": {}, "peer1.org2.example.com": {} } } }, According to this when i query ledger then peer0 should execute chaincode and return the proposal response but peer1 is executing chaincode and giving response. below is console logs for peer0 2019-04-05 10:44:05.384 UTC [endorser] callChaincode -> INFO 102 [mychannel][1ddaefbd] Entry chaincode: name:"cscc" 2019-04-05 10:44:05.385 UTC [endorser] callChaincode -> INFO 103 [mychannel][1ddaefbd] Exit chaincode: name:"cscc" (0ms) 2019-04-05 10:44:05.385 UTC [comm.grpc.server] 1 -> INFO 104 unary call completed {"grpc.start_time": "2019-04-05T10:44:05.384Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.28.0.1:40602", "grpc.code": "OK", "grpc.call_duration": "1.092964ms"} 2019-04-05 10:44:05.401 UTC [endorser] callChaincode -> INFO 105 [mychannel][59362366] Entry chaincode: name:"mycc" 2019-04-05 10:44:05.402 UTC [endorser] callChaincode -> INFO 106 [mychannel][59362366] Exit chaincode: name:"mycc" (1ms) 2019-04-05 10:44:05.402 UTC [comm.grpc.server] 1 -> INFO 107 unary call completed {"grpc.start_time": "2019-04-05T10:44:05.4Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "172.28.0.1:40602", "grpc.code": "OK", "grpc.call_duration": "1.825092ms"} Kindly let me know why is this behaviour

ahmadraza (Fri, 05 Apr 2019 11:36:35 GMT):
is "adminpw" is the default enrollment secret in fabric network and how can i change it?

Adsob (Fri, 05 Apr 2019 11:48:59 GMT):
Hey guys, is it possible to have multiple ledger in one channel?

ViveikYadav (Fri, 05 Apr 2019 11:49:35 GMT):
Has joined the channel.

bilalahmed (Fri, 05 Apr 2019 11:51:59 GMT):
I think it depends on the number of chaincodes/BNA installed on that channel. Each chaincode/BNA has its own ledger?

Adsob (Fri, 05 Apr 2019 12:26:06 GMT):
H

Adsob (Fri, 05 Apr 2019 12:26:06 GMT):
That is what I thought, but I could not find that in the documentation.

florianc (Fri, 05 Apr 2019 12:32:40 GMT):
I confirm that each chaincode has its own worldstate.

florianc (Fri, 05 Apr 2019 12:32:48 GMT):
However, the "registry" is common

Yunxi 3 (Fri, 05 Apr 2019 12:40:20 GMT):
hello all, i'm using node for chaincode in Fabric. My chaincode can successfully be installed and instantiated in my peers, but when I try to update data by using invoke function in the chaincode, it doesn't update the data. Has anyone met this issue before?

walmon (Fri, 05 Apr 2019 13:26:54 GMT):
is it getting the request successfully @Yunxi 3 ?

walmon (Fri, 05 Apr 2019 13:26:54 GMT):
is it getting the request successfully @Yunxi 3 ?

walmon (Fri, 05 Apr 2019 13:27:12 GMT):
you can review the logs `docker ps` to see

walmon (Fri, 05 Apr 2019 13:27:49 GMT):
@Adsob at the end it's a single "ledger" a channel = a ledger

mrortner (Fri, 05 Apr 2019 14:30:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DQ8xc5RR9P3LidDv3) @walmon Shows how much I know and why I need help! LOL

walmon (Fri, 05 Apr 2019 14:38:42 GMT):
Ping me on private @mrortner I may be able to help

mrortner (Fri, 05 Apr 2019 14:42:13 GMT):
PM sent

YTing 1 (Fri, 05 Apr 2019 15:10:10 GMT):
hello all, Help to solve the error when I running hyperledger fabric 1.4 solo create channel```Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 0, but got version 1 ```

brockhager (Fri, 05 Apr 2019 16:41:04 GMT):
Hello. I will be working on the "Build Your First Network" today on Ubuntu 16.04. Would someone be OK with me sending a direct message to them with questions I have? I would prefer not to spam the channel with a bunch of beginner questions. Thanks!

Antimttr (Fri, 05 Apr 2019 18:48:01 GMT):
Anyone know which configuration artifact sets the number of orgs that need to sign a request to create a new channel?

elciusferreira (Fri, 05 Apr 2019 20:52:26 GMT):
Hello! I have 2 organizations (Org1 and Org2) and would like to know if it is possible to create a collections_config.json that would allow Org1 to create and read a private asset Y and allow Org2 to ONLY read this same private asset Y... I'm using first-network from fabric samples to this test.

Antimttr (Fri, 05 Apr 2019 21:48:56 GMT):
``` ├── ordererOrganizations │ └── example.com │ ├── ca │ │ ├── 0d46ccf0e9436c1bc3b6e2bf80cdb202c4943604f95c72ee0ff839d3ec300719_sk │ │ └── ca.example.com-cert.pem │ ├── msp │ │ ├── admincerts │ │ │ └── Admin@example.com-cert.pem │ │ ├── cacerts │ │ │ └── ca.example.com-cert.pem │ │ └── tlscacerts │ │ └── tlsca.example.com-cert.pem │ ├── orderers │ │ └── orderer.example.com ``` Why is example.com considered an "ordering organization" in the msp configuration artifacts? The actual organizations are org1.example.com and org2.example,com, example.com is not a valid organization.

Kenbok (Sat, 06 Apr 2019 05:43:32 GMT):
Has joined the channel.

dave.enyeart (Sat, 06 Apr 2019 07:09:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XCH6BnuaAGvxS74L8) @elciusferreira You would make them both members of the collection and use access control logic within the chaincode to prevent Org2 from writing, see https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#chaincode-access-control

itg1996 (Sat, 06 Apr 2019 07:10:44 GMT):
hi everyone , I am using fabric nodeJS sdk to interact with fabric and i am getting following error in peer logs: WARN 04b channel [channel1]: MSP error: MSP Org1 is unknown everything works fine when I interact using cli the console shows the error : error: [Channel.js]: Error: 2 UNKNOWN: access denied: channel [channel1] creator org [Org1]

dave.enyeart (Sat, 06 Apr 2019 07:18:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aJSXy2K2Q4dFRmiBY) @deenario All the orderers work together to provide the ordering service and provide blocks to peers. If one orderer gets partitioned from the network it cannot create blocks by itself. A partitioned peer can still be queried. But no new transactions will get committed on the partitioned orderer/peer. When the partitioned orderer/peer rejoin the network, they will catch up to the current blockchain height.

dave.enyeart (Sat, 06 Apr 2019 07:18:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=aJSXy2K2Q4dFRmiBY) @deenario All the orderers work together to provide the ordering service and provide a consistent set of blocks to peers. If one orderer gets partitioned from the network it cannot create blocks by itself. A partitioned peer can still be queried. But no new transactions will get committed on the partitioned orderer/peer. When the partitioned orderer/peer rejoin the network, they will catch up to the current blockchain height.

itg1996 (Sat, 06 Apr 2019 09:07:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uAdeP3wMecaGksYKi) anyone??

khrandm (Sat, 06 Apr 2019 10:07:24 GMT):
Has joined the channel.

mastersingh24 (Sat, 06 Apr 2019 11:14:27 GMT):
MSPIDs are case-sensitive as I recall ...

khrandm (Sat, 06 Apr 2019 14:12:23 GMT):
Does anyone know a tutorial for building network up to chaincode from scratch?

tcurdt (Sat, 06 Apr 2019 15:17:09 GMT):
Has joined the channel.

tcurdt (Sat, 06 Apr 2019 15:18:15 GMT):
Is there anywhere a full fledged demo dapp to look at? Is there anywhere a full fledged demo dapp to look at? and is fabric+evm+web3 the way to go? or is there a web3 equivalent for interacting with hyperledger chaincode?

tcurdt (Sat, 06 Apr 2019 15:18:15 GMT):
Is there anywhere a full fledged demo dapp to look at? and is fabric+evm+web3 the way to go? or is there a web3 equivalent for interacting with hyperledger chaincode?

AYUSHIAGARWAL (Sat, 06 Apr 2019 18:55:57 GMT):
Hi! I am building Hyperledger fabric's code by doing some changes. I get a statement when I execute "$sudo make dist-clean all release docker" The statement is : find: ‘/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory

AYUSHIAGARWAL (Sat, 06 Apr 2019 18:56:15 GMT):

Selection_001.png

AYUSHIAGARWAL (Sat, 06 Apr 2019 18:56:20 GMT):
This statement cause problem of "shim" not found in gopath when I start my network. Using ./byfn.sh up Can anyone help me?

LovepreetSingh (Sun, 07 Apr 2019 10:11:22 GMT):
do i need to update connection.yaml file whenever i create a new channel to interact with ledger of that channel?

JulienTocci (Sun, 07 Apr 2019 10:21:19 GMT):
Hi, I am trying to modify a config envelope using configtxlator programatically, I tried many things but didn't manage to get it correctly:

JulienTocci (Sun, 07 Apr 2019 10:21:58 GMT):
mychannel.getChannelConfigFromOrderer().then((configEnvelope) => { const config_envelope_proto = _configtxProto.ConfigEnvelope.encode(configEnvelope).finish(); request({ method: 'POST', url:"http://" + configtxlatorUrl + "/protolator/decode/common.Block", json: true, body: configEnvelope, }, function (err, res, body) { if (err) { console.log(err) } //console.log("Res.body : " +JSONCIRC.stringify(res.body)) console.log("Body : " +body) /*console.log( res.body.toString('utf8')) var jsonObject = JSON.stringify(body); console.log("ici"+jsonObject) */ //});

JulienTocci (Sun, 07 Apr 2019 10:23:01 GMT):
I have got protobuf uint64 error (I am working with node) and tried to convert every uint to Long

JulienTocci (Sun, 07 Apr 2019 10:23:07 GMT):
static fixInt64(obj) { console.log("Fixing Object") for(var key in obj) { if( typeof obj[key] === 'object'){ //Avoir recursion if(map.get(obj)){ return } map.set( obj, true); this.fixInt64(obj[key]); } if(obj[key] instanceof protobuf.Long){ console.log("Converting uint64 to Long" + obj[key]) obj[key] = Long.fromValue(obj[key]); } } return obj; }

JulienTocci (Sun, 07 Apr 2019 15:13:52 GMT):
I found how to do it for those that are interested:

JulienTocci (Sun, 07 Apr 2019 15:14:40 GMT):
request({ method: 'POST', url:"http://" + configtxlatorUrl + "/protolator/decode/common.Config", body: configEnvelope.config.toBuffer(), }, function (err, res, body) { if (err) { console.log(err) }

DB21 (Sun, 07 Apr 2019 17:58:09 GMT):
Has joined the channel.

rangeshsripathi (Sun, 07 Apr 2019 18:26:09 GMT):
Hello All ,

rangeshsripathi (Sun, 07 Apr 2019 18:26:45 GMT):
Is there a way to log chaincode logs to file system?

rangeshsripathi (Sun, 07 Apr 2019 18:27:54 GMT):
I could only see logs getting printed out in console..is there any kind of mechanism to store in file ?

jjean (Sun, 07 Apr 2019 19:51:34 GMT):
Has joined the channel.

AlexMeng (Mon, 08 Apr 2019 03:26:25 GMT):
Has joined the channel.

AlexMeng (Mon, 08 Apr 2019 03:29:02 GMT):
hi ,how can i define one more consortium in configtx.yaml? I tried but got "Unknown consortium name".

AkhilKura (Mon, 08 Apr 2019 04:18:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YvCDhL9scn59X8xPL) @AlexMeng in profiles under consortiums section u need to add an other one

haardikkk (Mon, 08 Apr 2019 05:35:45 GMT):
hey guys

haardikkk (Mon, 08 Apr 2019 05:36:05 GMT):
when i upgrade a chaincode, is the old ledger state maintained?

haardikkk (Mon, 08 Apr 2019 05:36:32 GMT):
also, since it asks to be instantiated again, if the instantiate code contains keys which are already there from the last veersion of the chaincode, do they get overwritten?

NaveenVamshi (Mon, 08 Apr 2019 06:18:25 GMT):
Hi , I am getting the error when i am running ./testAPIs.sh from balance transfer

NaveenVamshi (Mon, 08 Apr 2019 06:18:25 GMT):
Hi , I am getting the error when i am running ./testAPIs.sh from balance transfer [ERROR] Helper - Failed to get registered user: Jim with error: TypeError: client.loadFromConfig is not a function How to resolve this

LovepreetSingh (Mon, 08 Apr 2019 07:36:29 GMT):
How to access a already created channel using fabric-client module to add more peers to the channel?

ShimingLiu (Mon, 08 Apr 2019 07:45:47 GMT):
Has joined the channel.

jlcs (Mon, 08 Apr 2019 08:52:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=28PWJLwA2WEuAdkbX) @haardikkk The ledger state is independent of the chaincode. Some peers don't have the chaincode installed, but they maintain the state, for example. Others may have equivalent implementations in different languages, but the state is the same

jlcs (Mon, 08 Apr 2019 08:54:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W8ToMG6yeKKohcTmQ) @haardikkk As the state is the same, when the upgraded chaincode asks to read a key from the ledger, the current value (written by the previous version of the chaincode) is returned. If your new chaincode puts a new value in that key, yes, it will overwrite it.

Randyshu2018 (Mon, 08 Apr 2019 09:03:34 GMT):

Clipboard - April 8, 2019 5:03 PM

lucky114407 (Mon, 08 Apr 2019 09:14:35 GMT):
are there any working examples of tls enabled network set up with kafka based ordering . If yes please share the links

vanitas92 (Mon, 08 Apr 2019 09:44:13 GMT):
Hello everyone! I am trying to set up a multiple orderer with raft consensus with kubernetes. I have managed to bootstrap them and it seems that the first chain `testchainid` seems to connect with each orderer node but after somewhile it says that its no longer a TLS handshake happening. Some logs here when starting the orderer nodes: ``` 2019-04-05 13:59:02.200 UTC [orderer.consensus.etcdraft] Start -> INFO 32d Starting Raft node channel=testchainid node=1 2019-04-05 13:59:02.200 UTC [orderer.common.cluster] Configure -> INFO 32e Entering, channel: testchainid, nodes: [ID: 2, Endpoint: orderer1-allianz-technology-com:7050, ServerTLSCert:-----BEGIN CERTIFICATE----- MIICiTCCAjCgAwIBAgIRAL0S5.... ID: 3, Endpoint: orderer2-allianz-technology-com:7050, ServerTLSCert:-----BEGIN CERTIFICATE----- ... 2019-04-05 13:59:02.200 UTC [orderer.common.cluster] updateStubInMapping -> INFO 32f Allocating a new stub for node 2 with endpoint of orderer1-allianz-technology-com:7050 for channel testchainid 2019-04-05 13:59:02.200 UTC [orderer.common.cluster] updateStubInMapping -> INFO 330 Deactivating node 2 in channel testchainid with endpoint of orderer1-allianz-technology-com:7050 due to TLS certificate change ... 2019-04-05 13:59:02.200 UTC [orderer.common.cluster] func1 -> DEBU 331 Connecting to ID: 2, Endpoint: orderer1-allianz-technology-com:7050, ... for channel testchainid 2019-04-05 13:59:02.201 UTC [grpc] DialContext -> DEBU 332 parsed scheme: "" 2019-04-05 13:59:02.201 UTC [grpc] DialContext -> DEBU 333 scheme "" not registered, fallback to default scheme 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] updateStubInMapping -> INFO 334 Allocating a new stub for node 3 with endpoint of orderer2-allianz-technology-com:7050 for channel testchainid 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] updateStubInMapping -> INFO 335 Deactivating node 3 in channel testchainid with endpoint of orderer2-allianz-technology-com:7050 due to TLS certificate change 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] func1 -> DEBU 336 Connecting to ID: 3, Endpoint: orderer2-allianz-technology-com:7050, ... for channel testchainid 2019-04-05 13:59:02.201 UTC [grpc] DialContext -> DEBU 337 parsed scheme: "" 2019-04-05 13:59:02.201 UTC [grpc] DialContext -> DEBU 338 scheme "" not registered, fallback to default scheme 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] applyMembershipConfig -> INFO 339 2 exists in both old and new membership for channel testchainid , skipping its deactivation 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] applyMembershipConfig -> INFO 33a 3 exists in both old and new membership for channel testchainid , skipping its deactivation 2019-04-05 13:59:02.201 UTC [orderer.common.cluster] Configure -> INFO 33b Exiting 2019-04-05 13:59:02.201 UTC [orderer.consensus.etcdraft] start -> DEBU 33c Starting raft node: #peers: 3 channel=testchainid node=1 2019-04-05 13:59:02.201 UTC [orderer.consensus.etcdraft] start -> INFO 33d Restarting raft node channel=testchainid node=1 2019-04-05 13:59:02.201 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO 33e 1 became follower at term 1 channel=testchainid node=1 2019-04-05 13:59:02.201 UTC [orderer.consensus.etcdraft] newRaft -> INFO 33f newRaft 1 [peers: [], term: 1, commit: 3, applied: 0, lastindex: 3, lastterm: 1] channel=testchainid node=1 2019-04-05 13:59:02.201 UTC [orderer.common.server] Start -> INFO 340 Starting orderer: Version: 1.4.1-rc1 Commit SHA: 29433f0 Go version: go1.11.5 OS/Arch: linux/amd64 2019-04-05 13:59:02.201 UTC [orderer.common.server] Start -> INFO 341 Beginning to serve requests ```

vanitas92 (Mon, 08 Apr 2019 09:44:38 GMT):
Until here it seems fine, after that, this happens: ``` 2019-04-05 13:59:02.202 UTC [grpc] watcher -> DEBU 342 ccResolverWrapper: sending new addresses to cc: [{orderer1-allianz-technology-com:7050 0 }] 2019-04-05 13:59:02.202 UTC [grpc] HandleSubConnStateChange -> DEBU 344 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, CONNECTING 2019-04-05 13:59:02.205 UTC [grpc] watcher -> DEBU 345 ccResolverWrapper: sending new addresses to cc: [{orderer2-allianz-technology-com:7050 0 }] 2019-04-05 13:59:02.215 UTC [orderer.consensus.etcdraft] apply -> INFO 348 Applied config change to add node 1, current nodes in channel: [1] channel=testchainid node=1 2019-04-05 13:59:02.220 UTC [orderer.consensus.etcdraft] apply -> INFO 349 Applied config change to add node 2, current nodes in channel: [1 2] channel=testchainid node=1 2019-04-05 13:59:02.220 UTC [orderer.consensus.etcdraft] apply -> INFO 34a Applied config change to add node 3, current nodes in channel: [1 2 3] channel=testchainid node=1 2019-04-05 13:59:09.705 UTC [orderer.consensus.etcdraft] Step -> INFO 34b 1 is starting a new election at term 1 channel=testchainid node=1 2019-04-05 13:59:09.705 UTC [orderer.consensus.etcdraft] becomePreCandidate -> INFO 34c 1 became pre-candidate at term 1 channel=testchainid node=1 2019-04-05 13:59:09.705 UTC [orderer.consensus.etcdraft] poll -> INFO 34d 1 received MsgPreVoteResp from 1 at term 1 channel=testchainid node=1 2019-04-05 13:59:09.705 UTC [orderer.consensus.etcdraft] campaign -> INFO 34e 1 [logterm: 1, index: 3] sent MsgPreVote request to 2 at term 1 channel=testchainid node=1 2019-04-05 13:59:09.705 UTC [orderer.consensus.etcdraft] campaign -> INFO 34f 1 [logterm: 1, index: 3] sent MsgPreVote request to 3 at term 1 channel=testchainid node=1 2019-04-05 13:59:09.708 UTC [orderer.consensus.etcdraft] consensusSent -> DEBU 350 Sending msg of 28 bytes to 2 on channel testchainid took 2.729273ms 2019-04-05 13:59:09.708 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 351 Failed to send StepRequest to 2, because: connection to 2(orderer1-allianz-technology-com:7050) is in state CONNECTING channel=testchainid node=1 2019-04-05 13:59:09.708 UTC [orderer.consensus.etcdraft] consensusSent -> DEBU 352 Sending msg of 28 bytes to 3 on channel testchainid took 6.578µs 2019-04-05 13:59:09.708 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 353 Failed to send StepRequest to 3, because: connection to 3(orderer2-allianz-technology-com:7050) is in state CONNECTING channel=testchainid node=1 2019-04-05 13:59:17.205 UTC [orderer.consensus.etcdraft] Step -> INFO 355 1 is starting a new election at term 1 channel=testchainid node=1 2019-04-05 13:59:21.897 UTC [core.comm] ServerHandshake -> ERRO 35e TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=192.168.235.232:60930 2019-04-05 13:59:21.897 UTC [grpc] handleRawConn -> DEBU 35f grpc: Server.Serve failed to complete security handshake from "192.168.235.232:60930": tls: first record does not look like a TLS handshake 2019-04-05 13:59:22.203 UTC [grpc] createTransport -> DEBU 360 grpc: addrConn.createTransport failed to connect to {orderer1-allianz-technology-com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 10.111.31.178:7050: i/o timeout". Reconnecting... 2019-04-05 13:59:22.204 UTC [grpc] HandleSubConnStateChange -> DEBU 361 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, TRANSIENT_FAILURE 2019-04-05 13:59:22.204 UTC [grpc] HandleSubConnStateChange -> DEBU 362 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, CONNECTING 2019-04-05 13:59:22.207 UTC [grpc] HandleSubConnStateChange -> DEBU 363 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, READY 2019-04-05 13:59:22.209 UTC [grpc] infof -> DEBU 364 transport: loopyWriter.run returning. connection error: desc = "transport is closing" 2019-04-05 13:59:22.209 UTC [grpc] HandleSubConnStateChange -> DEBU 365 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, TRANSIENT_FAILURE 2019-04-05 13:59:22.210 UTC [grpc] HandleSubConnStateChange -> DEBU 366 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, CONNECTING 2019-04-05 13:59:22.210 UTC [grpc] HandleSubConnStateChange -> DEBU 367 pickfirstBalancer: HandleSubConnStateChange: 0xc00058c1e0, TRANSIENT_FAILURE 2019-04-05 13:59:22.211 UTC [grpc] createTransport -> DEBU 368 grpc: addrConn.createTransport failed to connect to {orderer2-allianz-technology-com:7050 0 }. Err :connection error: desc = "transport: Error while dialing dial tcp 10.102.240.130:7050: i/o timeout". Reconnecting... ``` And its goes forever on. Someone had experience with that problem??

yacovm (Mon, 08 Apr 2019 09:56:04 GMT):
@vanitas92 do you have some proxy or something of the sort?

JohnR (Mon, 08 Apr 2019 10:12:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LSz72KxbQdTETYLai) @lucky114407 Do you mean regular TLS or do you also require secure access to kafka?

vanitas92 (Mon, 08 Apr 2019 10:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xSNZbNiqDZ5Qdb844) @yacovm No, but i managed to fix it, it was a typo in Docker environment variables. Thank you!

yacovm (Mon, 08 Apr 2019 10:21:54 GMT):
np

yacovm (Mon, 08 Apr 2019 10:22:27 GMT):
@vanitas92 i'm glad to see people using it :) How is the experience?

vanitas92 (Mon, 08 Apr 2019 10:25:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v4WPtHcY9LeLSxGkD) @yacovm The fact that eliminates the huge dependency on kafka and zookeeper that is a big plus, and also lower resources consumption. Completed the deployment and testing it on a dev environment so cannot tell much at the moment. I'll keep you posted it! Thank you!

yacovm (Mon, 08 Apr 2019 10:26:45 GMT):
Cool. If you have questions feel free to tag me ;)

lucky114407 (Mon, 08 Apr 2019 10:29:32 GMT):
@JohnR only regular TLS

lucky114407 (Mon, 08 Apr 2019 10:31:27 GMT):
I am creating an HLF v1.4 network with TLS enabled and Kafka based ordering,.But when I am trying to create a channel it throws an error saying Error and when I saw the logs of orderer it is showing Orderer Logs Configs for TLS in network Peer Configs - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/crypto/peer/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/crypto/peer/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/crypto/peer/tls/ca.crt Orderer Configs # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/hyperledger/crypto/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/crypto/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/etc/hyperledger/crypto/orderer/tls/ca.crt] Cli Configs - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/peer/peers/peer0.org1/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/peer/peers/peer0.org1/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/peer/peers/peer0.org1/tls/ca.crt Can anyone help me in this regard

JohnR (Mon, 08 Apr 2019 10:31:53 GMT):
I based my playbooks on https://github.com/Altoros/Ansible-Fabric-Starter and that has default tls enabled

MuhammedHafil (Mon, 08 Apr 2019 11:13:53 GMT):
what is the reason for `Error: got unexpected status: BAD_REQUEST -- Consortium config value missing` while updating acnhor peer via cli? I can install the same network with docker swarm in my local network on multiple machines, but not able to install in AWS instances? is there any special steps to do while deploying in AWS?

MuhammedHafil (Mon, 08 Apr 2019 11:13:53 GMT):
what is the reason for `Error: got unexpected status: BAD_REQUEST -- Consortium config value missing` while updating acnhor peer via cli? I can install the same network with docker swarm in my local network on multiple machines, but not able to install in AWS instances? is there any special steps to do while deploying in AWS?

nakulgr13 (Mon, 08 Apr 2019 11:17:39 GMT):
Has joined the channel.

benjamin.verhaegen (Mon, 08 Apr 2019 11:41:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h9WHA9PHAmf2sWWYs) @lucky114407 can you give us the error pls..

Dhiraj1990 (Mon, 08 Apr 2019 11:49:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o2kvFC7umvxhERQRb) @rangeshsripathi may be you can echo logs to a file and that file could saved on your chaincode container

Yuven (Mon, 08 Apr 2019 12:04:41 GMT):
Has joined the channel.

Yuven (Mon, 08 Apr 2019 12:06:55 GMT):
Anyone know how to fix: " cryptogen generate --config ./crypto-config.yaml cryptogen: command not found " ?

Yuven (Mon, 08 Apr 2019 12:07:25 GMT):
i tried following the hitchhikers guide to deploying Hyperledger fabric on k8s

Yuven (Mon, 08 Apr 2019 12:07:37 GMT):
already stubling

JohnR (Mon, 08 Apr 2019 12:15:50 GMT):
you're executing the command from within the fabric tools container?

Yuven (Mon, 08 Apr 2019 12:18:46 GMT):
no

Yuven (Mon, 08 Apr 2019 12:19:00 GMT):
should I ?

benjamin.verhaegen (Mon, 08 Apr 2019 12:27:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vqNzxoaTCW77pPAMf) @Yuven you need to copy the files (cryptogen/configtxgen) to your /bin file in the GOPATH

bilalahmed (Mon, 08 Apr 2019 12:29:42 GMT):
1.4.1

lucky114407 (Mon, 08 Apr 2019 12:52:13 GMT):
what certificates (cryptogen generated or fabric-ca generated) for network setup with TLS enabled

nakulgr13 (Mon, 08 Apr 2019 12:52:47 GMT):
Could anyone please share Hyperledger Fabric 1.4 multi-node production docs or url ?

nakulgr13 (Mon, 08 Apr 2019 12:52:47 GMT):
Could anyone please share Hyperledger Fabric 1.4 multi-node production environment setup docs or url ?

nakulgr13 (Mon, 08 Apr 2019 12:52:47 GMT):
Could anyone please share Hyperledger Fabric 1.4 multi-node production environment setup docs or url ?

cecemel (Mon, 08 Apr 2019 12:56:13 GMT):
Has joined the channel.

cecemel (Mon, 08 Apr 2019 12:57:43 GMT):
Hello, using hyperledger-fabric-ca. My user got locked out (exceeded the max password attempts) trying to autheticate to the CA. What is the best way to unlock it? Couldn't find anything in the doc

cecemel (Mon, 08 Apr 2019 12:57:43 GMT):
Hello, using hyperledger-fabric-ca. My admimn user got locked out (exceeded the max password attempts) trying to autheticate to the CA. What is the best way to unlock it? Couldn't find anything in the doc

cecemel (Mon, 08 Apr 2019 12:57:43 GMT):
Hello, using hyperledger-fabric-ca. My admin user got locked out (exceeded the max password attempts) trying to autheticate to the CA. What is the best way to unlock it? Couldn't find anything in the doc

nicoduch (Mon, 08 Apr 2019 13:44:58 GMT):
Has joined the channel.

nicoduch (Mon, 08 Apr 2019 13:45:35 GMT):
Hello everybody, i'm trying to compile and run a chaincode on my dev environment. Everything seems to goes well. I connect to my chaincode container. Build my chaincode. But when I try to launch it using the following command : "CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=tw:0 ./trade_workflow_v1", it say to me "userChaincodeStreamGetter -> ERRO 003 context deadline exceeded error trying to connect to local peer". Well it's normal i think, because the only one container running is the container named chaincode. The others are in Exited status.

nicoduch (Mon, 08 Apr 2019 13:45:45 GMT):

Capture d’écran 2019-04-08 à 15.40.41.png

nicoduch (Mon, 08 Apr 2019 13:48:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vqNzxoaTCW77pPAMf) @Yuven @Yuven ( MAC OS ) I copied and paste the tools from build/bin path to /usr/local/bin and it worked perfectly after that

Yuven (Mon, 08 Apr 2019 13:49:20 GMT):
i will try that, the former solution did not help

nicoduch (Mon, 08 Apr 2019 13:50:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=owcxQQHQWLgBDP5zW) @Yuven Are you on mac ? I had the same problem yesterday and solved it like that.

Yuven (Mon, 08 Apr 2019 13:50:20 GMT):
i am on ubuntu 18.04

nicoduch (Mon, 08 Apr 2019 13:53:18 GMT):
Ok ok, should be approximately the same i think.

elciusferreira (Mon, 08 Apr 2019 13:59:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NsQey8dWYMWtsRYCv) @dave.enyeart Thank you very much!

SaphiraBjartskular (Mon, 08 Apr 2019 16:36:27 GMT):
Has joined the channel.

SaphiraBjartskular (Mon, 08 Apr 2019 16:36:58 GMT):
Hi, is there any official testing library for any of the supported languages?

MuhammedHafil (Mon, 08 Apr 2019 16:47:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=53WpP9jBL7htkqaWi) anyone?

SaphiraBjartskular (Mon, 08 Apr 2019 17:03:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wtsShC9gazoYkJQvc) What is the best way to test node chaincode?

walmon (Mon, 08 Apr 2019 17:07:16 GMT):
Not official but a lot of people use the mock from the ledger

walmon (Mon, 08 Apr 2019 17:07:18 GMT):
for nodejs

SaphiraBjartskular (Mon, 08 Apr 2019 17:18:38 GMT):
@walmon Ok thank you. Is there an official testing library for any of the languages? Trying to decide which language I should be writing chaincode in

walmon (Mon, 08 Apr 2019 17:31:21 GMT):
I don't think there will be any, as every programming language use their own standards for example for node chai and mocha as standards - not official from Hyperledger tho

walmon (Mon, 08 Apr 2019 17:31:24 GMT):
I can share an example

walmon (Mon, 08 Apr 2019 17:31:38 GMT):
https://medium.com/worldsibu/testing-and-debugging-a-convector-smart-contract-aa02c84e7ecc

walmon (Mon, 08 Apr 2019 17:31:50 GMT):
this repo has unit tests - https://github.com/worldsibu/convector-example-unit-tests

walmon (Mon, 08 Apr 2019 17:31:54 GMT):
hope it can help you

walmon (Mon, 08 Apr 2019 17:31:58 GMT):
@SaphiraBjartskular

JulienTocci (Mon, 08 Apr 2019 19:33:24 GMT):
Did someone manage to make the "let proposal_response = await mychannel.joinChannel(r, 50000)" joinChannel method work with node sdk?

JulienTocci (Mon, 08 Apr 2019 19:34:14 GMT):
I tried almost everything and got "access denied: channel [] creator org [Org1MSP]" everytime

walmon (Mon, 08 Apr 2019 20:49:49 GMT):
@JulienTocci that error is common when the cryptographic materials are not the right ones or the user was enrolled with the wrong msp id

JulienTocci (Mon, 08 Apr 2019 20:54:14 GMT):
@walmon I am inspecting the orderer container logs while doing that and I can't grasp what I am missing, I thought for a moment that i had to use the orderer Certs+Key to sign the node fabric client before calling the "joinChannel". Indeed I was seeing "expected OrgOrdererMSP, got Org1MSP" but can't still manage to make it work

JulienTocci (Mon, 08 Apr 2019 20:54:46 GMT):
@walmon thanks for your answer btw

JulienTocci (Mon, 08 Apr 2019 20:57:15 GMT):

Clipboard - April 8, 2019 10:56 PM

JulienTocci (Mon, 08 Apr 2019 21:27:15 GMT):
and when i use the Orderer Admin Cert+Key

JulienTocci (Mon, 08 Apr 2019 21:27:39 GMT):

Clipboard - April 8, 2019 11:27 PM

JulienTocci (Mon, 08 Apr 2019 21:27:55 GMT):
This time it expects Org1MSP

sgbenav (Mon, 08 Apr 2019 22:14:26 GMT):
Has joined the channel.

sgbenav (Mon, 08 Apr 2019 22:25:00 GMT):
Hi there! does anyone have a tutorial or a guide to remove an organization from a channel? I reversed the "adding organization" tutorial to remove an organization and it seems to work. But after sending the update, the logs of the removed organization shows: ServerHandshake -> ERRO 0a4 TLS handshake failed with remote error error: tls: incorrect certificate server = PeerServer remoteaddress This is normal? I just want to be sure that I'm not missing something Thanks!

sgbenav (Mon, 08 Apr 2019 22:25:00 GMT):
Hi there! does anyone have a tutorial or a guide to remove an organization from a channel? I reversed the "adding organization" tutorial to remove an organization and it seems to work. But after sending the update, the logs of the removed organization shows: ServerHandshake -> ERRO 0a4 TLS handshake failed with remote error error: tls: incorrect certificate server = PeerServer remoteaddress Is this normal? I just want to be sure that I'm not missing something Thanks!

Ruben-Joseph-Halder (Tue, 09 Apr 2019 01:44:24 GMT):

Clipboard - April 9, 2019 9:43 AM

deenario (Tue, 09 Apr 2019 05:39:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3gNPbnmbN9JcH96uF) @dave.enyeart Thank you this was very helpful .

Luxii (Tue, 09 Apr 2019 07:20:20 GMT):
What are the steps that one needs to follow to add a peer into an org in an already running network ?

DB21 (Tue, 09 Apr 2019 07:20:45 GMT):
In Private Data Collection , is there a way to verify in the logs that the data has been purged?

Yuven (Tue, 09 Apr 2019 07:24:32 GMT):
anyone have an easy to follow guide to deploying HLF on K8s?

cecemel (Tue, 09 Apr 2019 07:24:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7HNnpDWjWGnFTLyoT) anyone?

Randyshu2018 (Tue, 09 Apr 2019 07:29:27 GMT):
Hi,all,Can we make the private data available to only some “users” of a single organization

ribjethgnis (Tue, 09 Apr 2019 07:36:46 GMT):
how can i create my own hyperledger fabric network without using these fabric-tools or fabric-dev-servers samples avaible in git. i want to make 2 org 2 peer per org network . and want to write all the necessary config files. I have gone through so many site but everywhere it started with sample networks from fabrick-tools and fabric-dev-servers

benjamin.verhaegen (Tue, 09 Apr 2019 07:42:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5SZqf8QtBTNb2JNAk) @ribjethgnis just use the docker-compose files being supplied by fabric and update them to your needs

ribjethgnis (Tue, 09 Apr 2019 07:50:17 GMT):
@benjamin.verhaegen okay thanks i am going to do this using docker-composer files

ribjethgnis (Tue, 09 Apr 2019 07:52:12 GMT):
@benjamin.verhaegen thanks . but from where i ll get all the necessary docker-compose files . is there any site for such reference

ribjethgnis (Tue, 09 Apr 2019 07:53:17 GMT):
as i want to make key certificates files by myself too

benjamin.verhaegen (Tue, 09 Apr 2019 07:54:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HzMmPFDTRpoNZ43AG) @ribjethgnis you can find them in the fabric-samples repository

Lorem (Tue, 09 Apr 2019 08:08:16 GMT):
Hi all, in which way are the blocks of the Blockchain stored on the local hard drive. I know that the current world state is stored in LevelDB or CouchDB database as key-value pairs. But is there another Database system for storing the blocks?

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:43:30 GMT):

Clipboard - April 9, 2019 4:38 PM

AkhilKura (Tue, 09 Apr 2019 08:49:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yY3k3ffqoFbf8avzm) @Ruben-Joseph-Halder is peer2 is on ur system

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:50:20 GMT):
yes

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:50:27 GMT):
@AkhilKura

AkhilKura (Tue, 09 Apr 2019 08:50:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=otoBit7GBimgWaGiY) in other system u need to fetch the channel config after that u need to join it

AkhilKura (Tue, 09 Apr 2019 08:51:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fReT7j7dDp5gwnLxY) use fetch command like peer channel fetch config -o orderer.example.com:7050 -c mychannel

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:51:59 GMT):

Clipboard - April 9, 2019 4:51 PM

MuhammedHafil (Tue, 09 Apr 2019 08:52:12 GMT):
peer getting closed with this error ``` fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f4de58ee259] ```

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:52:14 GMT):
machine

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:52:19 GMT):
@AkhilKura

AkhilKura (Tue, 09 Apr 2019 08:52:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=a8nMneaxFJc3Hsgzw) @Ruben-Joseph-Halder without fetching the configuration u cannot join the peer to the channel

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:53:24 GMT):

Clipboard - April 9, 2019 4:53 PM

Ruben-Joseph-Halder (Tue, 09 Apr 2019 08:53:30 GMT):
@AkhilKura

AkhilKura (Tue, 09 Apr 2019 08:55:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JkJDmsqGL8QzkCXRz) @Ruben-Joseph-Halder here orderer node i.e master node only can create the channel and join the peers if other node peers want to join the channel they need to fetch that channel and join

Ruben-Joseph-Halder (Tue, 09 Apr 2019 09:01:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mmeXerRGM3P6ceZ3a) @AkhilKura I know, can u see the picture l sended u. Thanks a lot

AkhilKura (Tue, 09 Apr 2019 09:02:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5q8uS93yrs5JYQWbN) @Ruben-Joseph-Halder yaa

AkhilKura (Tue, 09 Apr 2019 09:03:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jKLkJYLq24fKECkFY) other thing is like you no need to send the channel artifacts folder just send the crypto-config folder that u generated

Ruben-Joseph-Halder (Tue, 09 Apr 2019 09:10:37 GMT):

IMG_20190409_165718.jpg

Ruben-Joseph-Halder (Tue, 09 Apr 2019 09:17:12 GMT):
do u know what's wrong with me? @AkhilKura

AkhilKura (Tue, 09 Apr 2019 09:35:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CD9kEsANLkCtCg4sP) @Ruben-Joseph-Halder use this commands in 2nd machine ::: peer channel fetch config -o orderer.example.com:7050 -c mychannel and peer channel join -b mychannel.block

AkhilKura (Tue, 09 Apr 2019 09:38:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mDRudtLoc7RFxWtQS) https://medium.com/hyperlegendary/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-bfbe4e38b6c6 follow this link u will get an idea about the deployment

Ruben-Joseph-Halder (Tue, 09 Apr 2019 10:11:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mDRudtLoc7RFxWtQS) @AkhilKura ok, I will try.(was dinner just now)

Ruben-Joseph-Halder (Tue, 09 Apr 2019 10:31:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mDRudtLoc7RFxWtQS) @AkhilKura THANK YOU SO MUCH!!! It works! This problem has been bothering me for nearly half a month. Thanks again!!!

itg1996 (Tue, 09 Apr 2019 11:02:45 GMT):
Hi everyone, I am getting the following error when I am updating the anchor peer in a channel:Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channel0': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application/Org1MSP be at version 0, but it is currently at version 1

Ruben-Joseph-Halder (Tue, 09 Apr 2019 11:04:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t6J745XPhGnpuGaSZ) @itg1996 #清理docker环境 docker rm -f $(docker ps -aq) docker network prune docker volume prune #清理镜像 DOCKER_IMAGE_IDS=$(docker images | grep "goodwayhouse\|aberic\|none\|test-vp\|peer[0-9]-" | awk '{print $3}') if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then echo "---- No images available for deletion ----" else docker rmi -f $DOCKER_IMAGE_IDS fi

Ruben-Joseph-Halder (Tue, 09 Apr 2019 11:05:05 GMT):
try again

itg1996 (Tue, 09 Apr 2019 11:25:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=J8r5eo3Hc2GJdCTom) @Ruben-Joseph-Halder still getting same error

Ruben-Joseph-Halder (Tue, 09 Apr 2019 12:04:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BLi8Fv6uf7Er9Z2Z9) @itg1996 l suggest u to baidu or google "Channel/Application/Org1MSP be at version 0, but it is currently at version 1"

ribjethgnis (Tue, 09 Apr 2019 12:20:39 GMT):
i have run the following command -- docker-compose -f docker-compose.yml up ( i have made my own file docker-compose.yml having 4 peers ) . when i run it it shows the following .... i dont under stand what is this exactly . and how should i proceed further

ribjethgnis (Tue, 09 Apr 2019 12:21:00 GMT):

prt.PNG

ribjethgnis (Tue, 09 Apr 2019 12:21:38 GMT):
i have install explorer also to see the output but while doing localhost:9090 . it doesnt connect

itg1996 (Tue, 09 Apr 2019 13:22:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QafiLsFhQGfqhsczx) @Ruben-Joseph-Halder I did that but still didn't find any solution. Anyone??

itsNebula (Tue, 09 Apr 2019 14:16:09 GMT):
Has joined the channel.

itsNebula (Tue, 09 Apr 2019 14:16:23 GMT):
Hi guys, is it possible that with fabric client sdk's on two DIFFERENT(not a virtual machine, not in the same subnet) computer interacts the ledger? Hi guys, is it possible that with fabric client sdk's on two DIFFERENT(not a virtual machine, not in the same subnet) computer interacts the ledger? Hi guys, is it possible that with fabric client sdk's on two DIFFERENT(not a virtual machine, not in the same subnet) computer interacts the ledger? Hi guys, is it possible that with fabric client sdk's on two DIFFERENT(not a virtual machine, not in the same subnet) computer interacts the ledger?

itsNebula (Tue, 09 Apr 2019 14:16:32 GMT):
Hi guys, is it possible that with fabric client sdk's on two DIFFERENT(not a virtual machine, not in the same subnet) computer interacts the ledger?

florianc (Tue, 09 Apr 2019 14:27:30 GMT):
Yes

itsNebula (Tue, 09 Apr 2019 14:31:12 GMT):
Could you help me on that? How is it possible what should i look for?

itsNebula (Tue, 09 Apr 2019 14:31:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=yF33JcGJgaSqRce6o) @florianc Could you help me on that? How is it possible what should i look for?

florianc (Tue, 09 Apr 2019 14:38:17 GMT):
It works like any other component you want to interract with. If your first machine manages to do stuff with the blockchain, just implement the same on your second machine.

itsNebula (Tue, 09 Apr 2019 14:46:56 GMT):
But what i want is different. I want user can enroll my network via my client application on different computers. Then each computer can submit the transactions. How can this happen?

florianc (Tue, 09 Apr 2019 14:54:30 GMT):
You will need to find a way to share the enrollment certificate between both machines.

florianc (Tue, 09 Apr 2019 14:55:05 GMT):
(Or ask the user himself to provide the cert, which does not seem to be a good idea ^^)

Antimttr (Tue, 09 Apr 2019 14:55:37 GMT):
why not just have the client application be a restful api, then build a front end for that

Antimttr (Tue, 09 Apr 2019 14:55:57 GMT):
helps centralize your certificates

florianc (Tue, 09 Apr 2019 14:56:33 GMT):
I don't know for Nebula, but in a business environment, you may not want someone from company A to use the company B server.

Antimttr (Tue, 09 Apr 2019 14:56:56 GMT):
of course, thats why you'd do one api per org

Antimttr (Tue, 09 Apr 2019 14:57:14 GMT):
and orgs arent going to want to share their crypto assets across org lines anyways

florianc (Tue, 09 Apr 2019 14:57:27 GMT):
But if you don't care about that @itsNebula , Antimttr is right, that may be a solution.

Antimttr (Tue, 09 Apr 2019 14:57:58 GMT):
unless of course one org is managing another

neneg (Tue, 09 Apr 2019 14:59:28 GMT):
Hi guys, I see the following error in my peer docker logs: 2019-04-09 14:56:36.476 UTC [gossip.discovery] func1 -> WARN 046 Could not connect to Endpoint: peer1.org1.example.com:7051, InternalEndpoint: peer1.org1.example.com:7051, PKI-ID: , Metadata: : cont ...... and I am not able to create the channel either..... can anyone help?

itsNebula (Tue, 09 Apr 2019 15:00:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KzoSxphhGd7i3FqJ9) @Antimttr Do you mean composer-rest-server?

Antimttr (Tue, 09 Apr 2019 15:00:20 GMT):
well im talking about the client implementation of the SDK

Antimttr (Tue, 09 Apr 2019 15:00:39 GMT):
not sure what a composer-rest-server is

Antimttr (Tue, 09 Apr 2019 15:00:43 GMT):
i dont use hyperledger composer

florianc (Tue, 09 Apr 2019 15:01:39 GMT):
@itsNebula client-front-end <=> fabric sdk (which provide rest api to interract with it so that any front-end can use) <=> blockchain

florianc (Tue, 09 Apr 2019 15:01:39 GMT):
@itsNebula client-front-end <=> fabric sdk server (which provide rest api to interract with it so that any front-end can use) <=> blockchain

Antimttr (Tue, 09 Apr 2019 15:02:36 GMT):
so in my design im doing: web app gateway <=> restfulapi backend <=> fabric sdk <=> hyperledger fabric

Antimttr (Tue, 09 Apr 2019 15:02:51 GMT):
really i could stick anything in place of the web app gateway though

itsNebula (Tue, 09 Apr 2019 15:02:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7ZQFbfanuYgvkd86Z) @Antimttr In this case, assuming Bob is a user from a machine A. Alice is a user from machine B. They are using the same client application that I distributed them. Assume the application holds the property records. And bob submitted the transaction he bought a new car. In this case, I want Alice can see the ledger update of Bob's

Antimttr (Tue, 09 Apr 2019 15:02:55 GMT):
a cellphone app

itsNebula (Tue, 09 Apr 2019 15:02:57 GMT):
Is that possible?

itsNebula (Tue, 09 Apr 2019 15:03:46 GMT):
And they are not in the same subnet

Antimttr (Tue, 09 Apr 2019 15:03:47 GMT):
@itsNebula every sdk client on the hyperledger should be able to see that transaction

itsNebula (Tue, 09 Apr 2019 15:04:44 GMT):
Can you redirect me to where should i look for an example or something makes solid architecture for thise?

Antimttr (Tue, 09 Apr 2019 15:05:04 GMT):
well the best example of a restful api i've found in the samples is balance-transfer

Antimttr (Tue, 09 Apr 2019 15:05:23 GMT):
it has a fully operational restful api implemented in both nodejs and typescript

Antimttr (Tue, 09 Apr 2019 15:05:35 GMT):
only downside is it doesnt support idemix :/

itsNebula (Tue, 09 Apr 2019 15:06:11 GMT):
For balance-transfer example, assume me and my friends trying to run network and submit a transaction. Should both of us build the network on our own computers?

Antimttr (Tue, 09 Apr 2019 15:06:38 GMT):
well it uses local docker images

Antimttr (Tue, 09 Apr 2019 15:06:46 GMT):
so unless you change that you'll have it all on one computer

itsNebula (Tue, 09 Apr 2019 15:07:22 GMT):
We tried this example: https://github.com/IBM/blockchain-application-using-fabric-java-sdk However if we both build the network then it runs only locally. I want to connect my client to the network

Cherep (Tue, 09 Apr 2019 15:08:05 GMT):
Has joined the channel.

Antimttr (Tue, 09 Apr 2019 15:08:11 GMT):
the dockers are setup only to listen to localhost

itsNebula (Tue, 09 Apr 2019 15:08:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=geAQtyQvrd3yu4D7s) @Antimttr So we should run the network( I mean the dockers peer,orderer,couchdb etc.) just on one computer right?

Antimttr (Tue, 09 Apr 2019 15:08:20 GMT):
i dunno about the ibm version but in balance transfer thats the way it is

Antimttr (Tue, 09 Apr 2019 15:08:31 GMT):
you'd need ot change the docker configuration to have it listen on actual ips

Antimttr (Tue, 09 Apr 2019 15:08:37 GMT):
and open up ports in your firewall

itsNebula (Tue, 09 Apr 2019 15:09:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AMPtpmMf9MHo3me6B) @Antimttr But the app is dynamic, users will register the network via client. It makes this impossible.

Antimttr (Tue, 09 Apr 2019 15:10:21 GMT):
not sure about that, i'm just going by the balance-transfer example

Antimttr (Tue, 09 Apr 2019 15:10:35 GMT):
in balance-transfer everything binds to localhost

itsNebula (Tue, 09 Apr 2019 15:11:21 GMT):
If everything binds to localhost, how does this app is decentralized?

Antimttr (Tue, 09 Apr 2019 15:11:32 GMT):
well thats just demo setup

Antimttr (Tue, 09 Apr 2019 15:11:37 GMT):
you have to change it to bind to real ips

Antimttr (Tue, 09 Apr 2019 15:11:47 GMT):
really though if you're running in the cloud

itsNebula (Tue, 09 Apr 2019 15:11:53 GMT):
Every user runs it in localhost then

Antimttr (Tue, 09 Apr 2019 15:11:53 GMT):
i'd reccomend a kubernetes setup

itsNebula (Tue, 09 Apr 2019 15:12:50 GMT):
I want to build a decentralized cloud app. Deploying a kubernetes will kill my arguments on decentralization :(

Antimttr (Tue, 09 Apr 2019 15:13:23 GMT):
how so?

itsNebula (Tue, 09 Apr 2019 15:13:55 GMT):
Single failure of the system?

Antimttr (Tue, 09 Apr 2019 15:14:03 GMT):
nah kubernetes can do clustering

itsNebula (Tue, 09 Apr 2019 15:14:06 GMT):
System binds to a single point which I do not want to

Antimttr (Tue, 09 Apr 2019 15:14:12 GMT):
you'd have multiple copies of all the node types

Antimttr (Tue, 09 Apr 2019 15:14:28 GMT):
that means no single point of failure

maral (Tue, 09 Apr 2019 16:22:16 GMT):
Has joined the channel.

nfrunza (Tue, 09 Apr 2019 16:41:17 GMT):
Hello, what is the max lengths of the channel name in HLFabric ?

nicola.attico (Tue, 09 Apr 2019 17:33:38 GMT):
Has joined the channel.

nicola.attico (Tue, 09 Apr 2019 17:33:45 GMT):
Hi, I set up an environment with composer-sample-applications, specifically the vehicle-manufacture. Is there a command to start/stop the entire environment? including fabric, composer, rest, and application's containers?

Antimttr (Tue, 09 Apr 2019 17:35:26 GMT):
im not sure about that one but on others i've found bash scripts

Antimttr (Tue, 09 Apr 2019 17:35:30 GMT):
in the root of the sample

Antimttr (Tue, 09 Apr 2019 17:35:39 GMT):
which start the docker and client stuff

nicola.attico (Tue, 09 Apr 2019 18:11:53 GMT):
I've a composer.sh script, but it's removing all containers... I don't want to lose the work I did on the environment...

LovepreetSingh (Tue, 09 Apr 2019 18:18:44 GMT):
Can private data be created between only 2 specific peers in a channel of multiple peers ?

Chandoo (Tue, 09 Apr 2019 18:44:03 GMT):
@LovepreetSingh: look into the *Private data Collection* , https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data-arch.html?highlight=private%20data%20collections

Chandoo (Tue, 09 Apr 2019 18:48:39 GMT):
@nicola.attico : I never used composer.sh script, If you want to save the work you did, you can use docker feature to save the running container with changes or save it as image, Look into *docker save* https://docs.docker.com/engine/reference/commandline/save/

brockhager (Tue, 09 Apr 2019 18:58:06 GMT):
is the fabric docs down?

brockhager (Tue, 09 Apr 2019 18:58:06 GMT):
are the fabric docs down?

brockhager (Tue, 09 Apr 2019 18:58:18 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#overview

brockhager (Tue, 09 Apr 2019 18:58:36 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html

brockhager (Tue, 09 Apr 2019 18:59:15 GMT):
I read these all the time

rolsonquadras (Tue, 09 Apr 2019 19:20:33 GMT):
Has joined the channel.

mastersingh24 (Tue, 09 Apr 2019 19:54:23 GMT):
They should be up ... you might have caught them in a rebuild cycle

brockhager (Tue, 09 Apr 2019 19:55:09 GMT):
I"m discussing on #fabric now

TBdori (Tue, 09 Apr 2019 20:06:53 GMT):
Where do we save actual documents(files) in the blockchain network? or we just save their hash value into the ledger?

brockhager (Tue, 09 Apr 2019 23:08:42 GMT):
@mastersingh24 I see them now. Thank you

blockchainer (Wed, 10 Apr 2019 00:03:46 GMT):
My chaincode container is exiting as soon as it starts. Anyone else faced this issue? Solution recommendations?

blockchainer (Wed, 10 Apr 2019 00:33:37 GMT):
My analysis points to the fact that "chaincode registration is failing". Could anyone point me to an explanation of this process of chaincode registration?

Benjamin (Wed, 10 Apr 2019 01:10:44 GMT):
Has joined the channel.

SubhraSankhaBose (Wed, 10 Apr 2019 02:29:16 GMT):
I am trying to find the keystore folder for the fabcar project in location /fabric-samples/fabcar directory, but not able to find. Where and how I can get the keystore folder?

SubhraSankhaBose (Wed, 10 Apr 2019 02:29:16 GMT):
I am trying to find the keystore folder for the fabcar project in location /fabric-samples/fabcar directory, but not able to find. Where and how I can get the keystore folder? Using fabric version 1.4

blockchainer (Wed, 10 Apr 2019 03:13:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SLnDqs3PnWRX6skbu) @SubhraSankhaBose It's generated when you run the cryptogen command.

Vritra (Wed, 10 Apr 2019 03:55:12 GMT):
Has joined the channel.

Lorem (Wed, 10 Apr 2019 04:50:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SLnDqs3PnWRX6skbu) @SubhraSankhaBose For the fabcar tutorial, the keystore folder is in the basic-network directory

LovepreetSingh (Wed, 10 Apr 2019 05:08:54 GMT):
Can i have a specific peer like peer0.org1.example.com in the policy field of collections_config.json for private communication between specific peers?

trinayanbhatt (Wed, 10 Apr 2019 06:14:45 GMT):
Has joined the channel.

SubhraSankhaBose (Wed, 10 Apr 2019 06:46:35 GMT):

Clipboard - April 10, 2019 12:16 PM

SubhraSankhaBose (Wed, 10 Apr 2019 06:47:29 GMT):

Clipboard - April 10, 2019 12:17 PM

SubhraSankhaBose (Wed, 10 Apr 2019 06:48:06 GMT):

Clipboard - April 10, 2019 12:18 PM

SubhraSankhaBose (Wed, 10 Apr 2019 06:52:39 GMT):

Capture1.PNG

SubhraSankhaBose (Wed, 10 Apr 2019 06:53:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=q62h9Le3ZGzTJBKBQ) @Lorem @Lorem

itg1996 (Wed, 10 Apr 2019 06:53:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wGKRYdunjxYEeW6db) @LovepreetSingh same question. Can we specify a particular peer in collection definition json file?

narsimplyme (Wed, 10 Apr 2019 06:54:16 GMT):
Have somebody tested out the PTE in the Fabric-test repo? I can't get it to work since it has too little documentation

SubhraSankhaBose (Wed, 10 Apr 2019 06:57:17 GMT):
@Lorem

SubhraSankhaBose (Wed, 10 Apr 2019 06:57:17 GMT):
@Lorem ubuntu@ip-172-31-37-25:~/fabric-samples/basic-network$ ls -a . config connection.json crypto-config docker-compose.yml generate.sh README.md stop.sh .. configtx.yaml connection.yaml crypto-config.yaml .env init.sh start.sh teardown.sh ubuntu@ip-172-31-37-25:~/fabric-samples/basic-network$

SubhraSankhaBose (Wed, 10 Apr 2019 06:57:17 GMT):
@Lorem ubuntu@ip-172-31-37-25:~/fabric-samples/basic-network$ ls -a . config connection.json crypto-config docker-compose.yml generate.sh README.md stop.sh .. configtx.yaml connection.yaml crypto-config.yaml .env init.sh start.sh teardown.sh ubuntu@ip-172-31-37-25:~/fabric-samples/basic-network$ Still not able to find the keystore folder.

MuhammedHafil (Wed, 10 Apr 2019 07:01:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JuFFC4NuX2XupY2iX) @blockchainer In my case it was due to no able to connect with its peer provide `CORE_PEER_CHAINCODELISTENADDRESS` environment variable to the peer Like : `- CORE_PEER_CHAINCODELISTENADDRESS=peer0.example.com:7052`

MuhammedHafil (Wed, 10 Apr 2019 07:01:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JuFFC4NuX2XupY2iX) @blockchainer In my case it was due to no able to connect with its peer provide `CORE_PEER_CHAINCODELISTENADDRESS` environment variable to the peer in ypur docker-compose file Like : `- CORE_PEER_CHAINCODELISTENADDRESS=peer0.example.com:7052`

geekybot (Wed, 10 Apr 2019 07:03:57 GMT):
in fabric-samples/balance-transfer the apis are written with async and await, why not use promise or callbacks?? won't it make better? invokeChaincode in the utils folder is itself making a synchronous process. Can somebody explain the scenario?? thanks

florianc (Wed, 10 Apr 2019 07:06:45 GMT):
Because it is more readable to use async/await than callbacks/promises :D

geekybot (Wed, 10 Apr 2019 07:07:07 GMT):
but what about performance??

florianc (Wed, 10 Apr 2019 07:08:38 GMT):
I've read some articles say async/await is more efficient. Have not found any proof of that though.

geekybot (Wed, 10 Apr 2019 07:09:57 GMT):
but the whole point of using nodejs is to use the power of promise or callbacks, isn't it?

florianc (Wed, 10 Apr 2019 07:12:40 GMT):
From my understanding, no. async/await code style does the exact same thing as promises/callbacks (with somes changes to the internal stuff if I understood correctly), but it makes it just easier to read. Nesting code is always a pain according to me, so why not using something that does the same without all the nesting stuff?

geekybot (Wed, 10 Apr 2019 07:19:32 GMT):
makes sense, but I am not sure if it's the correct thing to do.

DawoodJehangir (Wed, 10 Apr 2019 07:44:17 GMT):
Hi All, I am trying to query the chaincode through NodeSDK (installed my own chaincode on first-network) but facing the following errors: ``` error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.org1.example.com:7051 error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.org1.example.com:7051 error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.org2.example.com:9051 error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.org2.example.com:9051 error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.org2.example.com Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.org2.example.com ``` I have checked that my connection profile has grpcs:// & https://. Moreover, I have correctly added the TLS certs and private keys of peers, etc. What can be the possible issue now?

corpix (Wed, 10 Apr 2019 07:58:07 GMT):
Hello. I have a problem with core.yaml/vm/docker/hostConfig. How should I attach volumes to containers? I have a try with this configuration, but it does not seem to work(when I `docker inspect` the container it has no volumes): ` vm: docker: attachStdout: false hostConfig: Dns: null LogConfig: Config: max-file: '5' max-size: 50m Type: json-file Memory: 2147483648 Mounts: Destination: /etc/foobar Driver: bind Mode: ro Name: foobar RW: false Source: '/home/vagrant/fabric/foobar' NetworkMode: host Volumes: foobar: {} `

corpix (Wed, 10 Apr 2019 07:58:07 GMT):
Hello. I have a problem with core.yaml/vm/docker/hostConfig. How should I attach volumes to containers? I have a try with this configuration, but it does not seem to work(when I `docker inspect` the container it has no volumes): ``` vm: docker: attachStdout: false hostConfig: Dns: null LogConfig: Config: max-file: '5' max-size: 50m Type: json-file Memory: 2147483648 Mounts: Destination: /etc/foobar Driver: bind Mode: ro Name: foobar RW: false Source: '/home/vagrant/fabric/foobar' NetworkMode: host Volumes: foobar: {} ```

blockchainer (Wed, 10 Apr 2019 08:00:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qM92mnu9L9DH7E2jn) @MuhammedHafil That's helpful! Could you also confirm what is the default listen port? 7052 or 30303?

davidkel (Wed, 10 Apr 2019 08:09:52 GMT):
@geekybot in the early says of node.js there were only callbacks, but code exhibited what was referred to as callback hell where it got so nested and complicated it was difficult to read or maintain. Next came promises to help address this but that introduced long promise chains which although easier to read than nested callbacks still created code that was difficult to read and maintain. async/await is the solution to this. It uses promises under the covers and is now the defacto way to do async programming in node.js. There are still places where using a callback pattern is more appropriate but async/await is by far the best approach.

davidkel (Wed, 10 Apr 2019 08:09:52 GMT):
@geekybot in the early days of node.js there were only callbacks, but code exhibited what was referred to as callback hell where it got so nested and complicated it was difficult to read or maintain. Next came promises to help address this but that introduced long promise chains which although easier to read than nested callbacks still created code that was difficult to read and maintain. async/await is the solution to this. It uses promises under the covers and is now the defacto way to do async programming in node.js. There are still places where using a callback pattern is more appropriate but async/await is by far the best approach.

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 08:18:08 GMT):
Hi, someone knows any tutorial/vide which explain how work the consensus

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 08:18:08 GMT):
Hi, someone knows any tutorial/vide which explain how work the consensus(kafka)

florianc (Wed, 10 Apr 2019 08:21:25 GMT):
@AndresMartinezMelgar.itcl https://hyperledger-fabric.readthedocs.io/en/release-1.2/txflow.html?highlight=transaction%20flow

blockchainer (Wed, 10 Apr 2019 08:38:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gdDTtX3czoPJLyTs6) Also, I'm using v1.4. So I think CORE_PEER_LISTENADDRESS is used as CORE_PEER_CHAINCODELISTENADDRESS? https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/core.yaml

shekharrajak (Wed, 10 Apr 2019 08:58:29 GMT):
Hello guys, I am new to Hyperledger and want to contribute to this project. I have setup the developement version following the steps given in this link: https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html I have also watched tutorials and created sample application using composer. I want to work on any small open bug or issue to understand the codebase, can anyone let me know where should I move(in JIRA issue tracker) ? Thanks! Shehkar

mlucc (Wed, 10 Apr 2019 09:05:03 GMT):
Hello! does anyone faced the following issue? `################################################################# ### Generating channel configuration transaction 'channel.tx' ### ################################################################# 2019-04-10 10:48:33.226 CEST [common/configtx/tool] main -> INFO 001 Loading configuration 2019-04-10 10:48:33.240 CEST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 14 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Capabilities, Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies `

mlucc (Wed, 10 Apr 2019 09:05:03 GMT):
Hello! does anyone faced the following issue? `################################################################# ### Generating channel configuration transaction 'channel.tx' ### ################################################################# 2019-04-10 10:48:33.226 CEST [common/configtx/tool] main -> INFO 001 Loading configuration 2019-04-10 10:48:33.240 CEST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 14 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Capabilities, Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies `

mlucc (Wed, 10 Apr 2019 09:05:03 GMT):
Hello! does anyone faced the following issue? ```` ################################################################# ### Generating channel configuration transaction 'channel.tx' ### ################################################################# 2019-04-10 10:48:33.226 CEST [common/configtx/tool] main -> INFO 001 Loading configuration 2019-04-10 10:48:33.240 CEST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct: 14 error(s) decoding: * '' has invalid keys: capabilities, channel * 'Application' has invalid keys: Capabilities, Policies * 'Orderer' has invalid keys: Capabilities, Policies * 'Organizations[0]' has invalid keys: Policies * 'Organizations[1]' has invalid keys: Policies * 'Organizations[2]' has invalid keys: Policies ``` `

MuhammedHafil (Wed, 10 Apr 2019 09:21:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gdDTtX3czoPJLyTs6) @blockchainer I have used 7052 in all peers, and i can confirm that `CORE_PEER_CHAINCODELISTENADDRESS` works in 1.4

blockchainer (Wed, 10 Apr 2019 09:42:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W9P9uHmkvKnntKksv) @MuhammedHafil I tried it, but still same error. Is there a way to debug the logs of the chaincode container? Unfortunately, it starts, exits & prunes so quickly that I'm unable to catch its logs. Could we possibly attach its logs to the peer's logs?

Sarath_Kumar (Wed, 10 Apr 2019 09:59:09 GMT):
Hi All, After restarting the machine, all my containers are getting exited. using *docker start $(docker ps -a -q --filter "status=exited")* this command i am able to start all containers except chaincode containers. How to start my chaincode container?

MichaelMarcotrigiano (Wed, 10 Apr 2019 10:02:12 GMT):
Has joined the channel.

MichaelMarcotrigiano (Wed, 10 Apr 2019 10:04:39 GMT):
Hi all, is there a way to see the definition of the participants (model) from the composer? I got a ValidationException: Instance [id instance] has a property named password which is not declared in org.namespace.Member

MuhammedHafil (Wed, 10 Apr 2019 10:05:26 GMT):
@blockchainer are you able to see chaincode container with `docker ps -a`?

NarendraPurohit (Wed, 10 Apr 2019 10:14:44 GMT):
Has joined the channel.

NarendraPurohit (Wed, 10 Apr 2019 10:15:43 GMT):
Hi Team, While running byfn, it says successful. But when I look into docker logs have observed an error [34m2019-03-29 08:19:15.135 UTC [comm.grpc.server] 1 -> INFO 013 streaming call completed {"grpc.start_time": "2019-03-29T08:19:15.122Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "x.x.x.x:56828", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "12.735105ms"} Please guide how to resolve it.

ajaysilver (Wed, 10 Apr 2019 10:15:44 GMT):
I am getting connection refused while enrolling Admin. Below is the code I am using

ajaysilver (Wed, 10 Apr 2019 10:15:47 GMT):
String caUrl = Config.CA_ORG1_URL; CAClient caClient = new CAClient(caUrl, null); // Enroll Admin to Org1MSP UserContext adminUserContext = new UserContext(); adminUserContext.setName(Config.ADMIN); adminUserContext.setAffiliation(Config.ORG1); adminUserContext.setMspId(Config.ORG1_MSP); caClient.setAdminUserContext(adminUserContext); adminUserContext = caClient.enrollAdminUser(Config.ADMIN, Config.ADMIN_PASSWORD);

ahmadraza (Wed, 10 Apr 2019 10:31:28 GMT):
how can i pass array of json object to chaincode as parameter?

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 10:33:03 GMT):
@florianc ok, but how do you decide that a transaction is valid or not?

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 10:37:04 GMT):
If I have a chaincode that is in version 1.0, I make a series of transactions. Then I update that cc to version 2.0, share the same ledger? Can I still use version 1.0 of the cc?

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 10:37:04 GMT):
If I have a chaincode that is in version 1.0, I make a series of transactions. Then I update that cc to version 2.0, share the same ledger? Can I still use version 1.0 of the cc? If I can continue using the 1.0, what is the meaning of the versions of the cc?

florianc (Wed, 10 Apr 2019 11:26:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EJ6NuHadyE8KfuwKa) @AndresMartinezMelgar.itcl Chaincode V1 and V2 share the same ledger You cannot use chaincode V1 unless you downgrade the chaincode version from V2 to V1 To define if a transaction is valid or not, all the endorsing peers must return you the exact same simulation (same inputs and outputs). If you receive same simulations from all endorsing peer, you (and by you, I mean the SDK) build the transaction, send it to the orderer. The orderer will do some other quick checks on it and if transaction proposal is valid, insert it into a block and broadcast the block on the channel. Peers will receive it and commit it to their ledger. Remark: During simulation of transaction, endorsing peers (peers that do simulation) use their current ledger, but never alter it. The ledger is changed only on block commit.

ribjethgnis (Wed, 10 Apr 2019 11:27:07 GMT):
what to write in docker-compose-cli,yaml 's working and volume fields . i am created my own folder and in that i have created crypto-config,configtx files. i created with teh help of fabric-tools directory . what to write in below working and volume fields, as i have not created any scripts,chaincode etc. and its mentioned there.

ribjethgnis (Wed, 10 Apr 2019 11:27:37 GMT):

docekcomposeCLI.PNG

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 11:32:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y4BWTzdfop56EDnpu) @florianc LOL, good expliacion thank you very much !!!

AndresMartinezMelgar.itcl (Wed, 10 Apr 2019 11:32:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=y4BWTzdfop56EDnpu) @florianc LOL, good explanation thank you very much !!!

ardaersoy (Wed, 10 Apr 2019 11:47:23 GMT):
Has joined the channel.

ardaersoy (Wed, 10 Apr 2019 11:47:55 GMT):
Hi,

ardaersoy (Wed, 10 Apr 2019 11:51:18 GMT):
I am new here and we are developing decentralized cloud storage with hlf. I am investigating that how i can do this network for multi user. What i mean from multi user is i have an application and user register using app and this user will be added to my network and ieach user has its own ledger that has current state. How can i achieve this?

ardaersoy (Wed, 10 Apr 2019 11:52:29 GMT):
I look lots of multi user blockchain tutorial but all works on localhost and how anyone can register from different pc and join the network.

blockchainer (Wed, 10 Apr 2019 11:57:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JqdpYrnBZpTwp7WGf) @MuhammedHafil Yes, I see it for a few seconds.

blockchainer (Wed, 10 Apr 2019 12:00:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YGQykp3MQfKJE6sLX) Here's the logs: `2019-04-10 09:50:17.116 UTC [chaincode] Launch -> DEBU 3f0 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1333 chaincode registration failed`

florianc (Wed, 10 Apr 2019 12:00:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B3D9Fzm53oLRaCXDC) @ardaersoy What do you mean "has its own ledger"?

ardaersoy (Wed, 10 Apr 2019 12:01:58 GMT):

Clipboard - April 10, 2019 3:01 PM

ardaersoy (Wed, 10 Apr 2019 12:02:08 GMT):
like in this image

ardaersoy (Wed, 10 Apr 2019 12:02:17 GMT):
each user has peer and ledger itself

alokkv (Wed, 10 Apr 2019 12:05:00 GMT):
hi friends, in production based setup is it required to set "CORE_PEER_TLS_CLIENTAUTHREQUIRED " to true.what is the variable means ?. please help.if you have any documentation on explaining this variable please share it.thank you i have found the following documentation but it is not explaining why it needed and how it works https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

alokkv (Wed, 10 Apr 2019 12:05:00 GMT):
hi friends, in production based setup is it required to set "CORE_PEER_TLS_CLIENTAUTHREQUIRED " to true.what is the variable means ?. please help.if you have any documentation on explaining this variable please share it.thank you i have found the following documentation but it is not explaining why it needed and how it works https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

neneg (Wed, 10 Apr 2019 12:14:34 GMT):
Hi guys, I see the following error in my peer docker logs: 2019-04-09 14:56:36.476 UTC [gossip.discovery] func1 -> WARN 046 Could not connect to Endpoint: peer1.org1.example.com:7051, InternalEndpoint: peer1.org1.example.com:7051, PKI-ID: , Metadata: : cont ...... and I am not able to create the channel either..... can anyone help?

nikolas (Wed, 10 Apr 2019 12:33:59 GMT):
Hi guys, is there a way to explicitly delete a private collection entry from a peer's transient db? (not by defining a block-based lifetime). Thanks!

nikolas (Wed, 10 Apr 2019 12:33:59 GMT):
Hi guys, is there a way to explicitly delete a private collection from a peer's transient db? (not by defining a block-based lifetime). Thanks!

alokkv (Wed, 10 Apr 2019 12:44:53 GMT):
hi friends , can anyone help me to understand which one is the best approch, like enabling tls in server side only or enabling TLS in server and client side.i followed the below link https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

alokkv (Wed, 10 Apr 2019 12:44:53 GMT):
hi friends , can anyone help me to understand which one is the best approach, like enabling TLS in server side only or enabling TLS in server and client side.i followed the below link https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

gregnotso (Wed, 10 Apr 2019 12:49:53 GMT):
has anyone tried this yet? https://wiki.alpinelinux.org/wiki/Install_Alpine_on_Amazon_EC2 - it seems necessary for v2

dgoinda (Wed, 10 Apr 2019 12:52:34 GMT):
Has joined the channel.

dgoinda (Wed, 10 Apr 2019 12:53:47 GMT):
Anyone of you finished the Certified Hyperledger Fabric Administrator test? Any tipps how to get prepared for the test?

benjamin.verhaegen (Wed, 10 Apr 2019 13:13:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nrAQSfJNGTLJLHYrC) @dgoinda the course is not released yet

florianc (Wed, 10 Apr 2019 13:21:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oGb5A9mN9rPgzmvpJ) @ardaersoy You need to add the new user peer to the channel.

mssathees (Wed, 10 Apr 2019 13:28:31 GMT):
Has joined the channel.

mssathees (Wed, 10 Apr 2019 13:28:36 GMT):
Hi i'm aware that hyperledger is an open source platform. Can i use this open source coding for developing my own requirement independently with the support of my developers. Is there any kind of fees applicable ? If any fees or procedures, please guide me with the steps to be followed. Thanks.

neneg (Wed, 10 Apr 2019 13:39:00 GMT):
Hi guys, I see the following error in my peer docker logs: 2019-04-09 14:56:36.476 UTC [gossip.discovery] func1 -> WARN 046 Could not connect to Endpoint: peer1.org1.example.com:7051, InternalEndpoint: peer1.org1.example.com:7051, PKI-ID: , Metadata: : cont ...... Please note that I have deployed my network on a single host and I am not able to create the channel either..... can anyone help?

ahmadraza (Wed, 10 Apr 2019 14:28:16 GMT):
Error: failed to execute transaction 028bc459b8d40b1603f1413b2afd452ae35f904217bbc131d502070cecd2854f: error sending: timeout expired while executing transaction" . Hi All Can any one help me?. I am passing argument set of 5000 strings which then converted to json and save them accordingly.

mssathees (Wed, 10 Apr 2019 14:51:02 GMT):
Hi Neneg, We are a small sized IT company seeking for a blockchain based solution for our products. I did few research on the Blockchain and I find Hyperledger fabric can be the better solution to meet our expectations. As we are in initial stage of the conceptual designing, it is very important to understand the pricing. Can you please let me know is there any kind of fees applicable? I know my question is not relevant to you. But your response can help me to drive in a right path. Thanks.

florianc (Wed, 10 Apr 2019 14:53:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DSjeP644P2ok49omt) @mssathees It is an open source projet. Just check the licence requirements and thats all.

mssathees (Wed, 10 Apr 2019 14:58:38 GMT):
Thank you @florianc

Antimttr (Wed, 10 Apr 2019 16:12:11 GMT):
The channel directory in the artifacts directory: is it meant to hold just one channel or multiple channels? The one in balance transfer has all the artifacts just sitting inside the /artifacts/channel/ directory, so where would the artifacts for a second channel go?

Antimttr (Wed, 10 Apr 2019 16:12:16 GMT):
would there be a channel2 directory?

Antimttr (Wed, 10 Apr 2019 16:14:31 GMT):
This is in the balance-transfer example

Antimttr (Wed, 10 Apr 2019 16:27:34 GMT):
OK i think i got it now. the channel/ dir is general for all channels, however it contains a .tx file which is specific to a particular channel

blockchainer (Wed, 10 Apr 2019 17:50:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qM92mnu9L9DH7E2jn) @MuhammedHafil You were right about the issue, @MuhammedHafil ! Thank you very much. Although the solution in my case was to mention my docker-network's name in `CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE` env variable.

MichaelMarcotrigiano (Wed, 10 Apr 2019 18:08:30 GMT):
michael

JoshFodale (Wed, 10 Apr 2019 20:18:18 GMT):
Has joined the channel.

blockchainer (Wed, 10 Apr 2019 20:20:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cx8rHho8F5dgKJo2i) Although the chaincode containers are starting now, still the list of instantiated chaincodes is empty. :(

Sarath_Kumar (Thu, 11 Apr 2019 05:56:40 GMT):
Hi All, I am facing issue while querying

Sarath_Kumar (Thu, 11 Apr 2019 05:56:55 GMT):

Error while querying chaincode.PNG

itg1996 (Thu, 11 Apr 2019 06:00:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Dw7XvfL9R2ecNsxQa) anyone??

bilalahmed (Thu, 11 Apr 2019 06:58:11 GMT):
Hello All, Have anyone tried adding new Peer at run time. I did and modified the connection profile as well. I created new cards using updated connection profile but when I run commands using these new cards I get the identity not registered error. I have explained error here in stackoverflow; https://stackoverflow.com/questions/55613984/update-connection-profile-the-current-identity-has-not-been-registered

florianc (Thu, 11 Apr 2019 07:08:00 GMT):
Hi. If I send a transaction, that should be endorsed by only org1, to a peer of org2. What happens? Is the tx sent automatically to a peer of org1?

MuhammedHafil (Thu, 11 Apr 2019 07:10:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jvmhekGgt97BhXN5Z) @blockchainer Did you instantaited succesfully?

ahmadraza (Thu, 11 Apr 2019 08:01:20 GMT):
PUT_STATE failed: transaction ID: ac467afef522dadc842409527eeeaadeb26e4db27b22352c2e8772ef2ed710be: no ledger context]. can any one explain ?

JorgeNavarro (Thu, 11 Apr 2019 08:15:57 GMT):
hi, while doing a transaction, if we have more than one orderer, we need to point all of them or it is only necessary to point one of them

JohnR (Thu, 11 Apr 2019 08:17:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=g85pzz6jyYCce4j6r) @JorgeNavarro We add them all to the channel and handle the exception in case the first one fails

hssanbenrhouma (Thu, 11 Apr 2019 08:47:10 GMT):
Hello, how to model users in hyperledger fabric network, for example in a healthcare platform, how can i model patients ? Do i need an organisation per patient?

florianc (Thu, 11 Apr 2019 08:51:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4KNiuxp4dsKuzzLF4) @hssanbenrhouma There is no universal answer. It depends on what are your needs. For hte healthcare platform,(even though I don't know what you want to do), I would do something like one org per service.

hssanbenrhouma (Thu, 11 Apr 2019 08:55:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=cBZRKoyFAbSf8aTRp) @florianc @florianc thank you for you time, one question How to choose the number of peers for each organisations?

neneg (Thu, 11 Apr 2019 08:57:25 GMT):
Hi guys, I see the following error in my peer docker logs: 2019-04-09 14:56:36.476 UTC [gossip.discovery] func1 -> WARN 046 Could not connect to Endpoint: peer1.org1.example.com:7051, InternalEndpoint: peer1.org1.example.com:7051, PKI-ID: , Metadata: : cont ...... Please note that I have deployed my network on a single host and I am not able to create the channel either..... can anyone help?

hssanbenrhouma (Thu, 11 Apr 2019 08:57:47 GMT):
@florianc thank you for you time, one question How to choose the number of peers for each organisations?

florianc (Thu, 11 Apr 2019 08:59:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DhnWbtkT6C9p5S6Ep) @hssanbenrhouma I am not sure about the answer. You should check the documentation/best practices/wait for someone to answer. But I would advise, for production, more than 2 per org. But I may be mistaken here.

JohnR (Thu, 11 Apr 2019 09:09:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DhnWbtkT6C9p5S6Ep) @hssanbenrhouma Since peers in a channel are identical, it hardly makes sense to run a lot of peers. My rule of thumb is mostly - Align the number of peers to the number of clients (so if you have 1 app calling the chaincode, get 1 peer) - If you require availability increase the number of peers according (so increase them to secure your availability) For me, having more then 3 peers seldom has an added value, unless you really expect a large amount of transactions / a large number of clients calling the chaincode

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 09:23:28 GMT):
Hi, i have 2 orderer with kafka, but when i am trying to create a new channel i receive this error: Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

benjamin.verhaegen (Thu, 11 Apr 2019 09:32:32 GMT):
could somebody help me with usage of composer-concerto-tools?

bilalahmed (Thu, 11 Apr 2019 10:18:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYTsGZtNNGyivPbtW) @AndresMartinezMelgar.itcl Channel is already created. Restart your network

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 10:21:19 GMT):
i dont think so, because i just start my network

bilalahmed (Thu, 11 Apr 2019 10:28:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tdjG2ZikWnyXbkYsM) @AndresMartinezMelgar.itcl connect with any peer and run the following command: peer channel list

MuhammedHafil (Thu, 11 Apr 2019 10:35:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYTsGZtNNGyivPbtW) @AndresMartinezMelgar.itcl completely remove your network, ie, containers,volumes,network and crypto keys and restart network

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 10:36:16 GMT):
@MuhammedHafil yes, i am doing that

bilalahmed (Thu, 11 Apr 2019 10:39:33 GMT):
And secondly, just try restarting it

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 10:46:16 GMT):
@bilalahmed @MuhammedHafil I have tried everything that decides me, but I keep giving the same error

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 10:46:16 GMT):
@bilalahmed @MuhammedHafil I have tried everything you tell me, but I still get the same mistake

MuhammedHafil (Thu, 11 Apr 2019 10:50:43 GMT):
what does your orderer logs shows?

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 10:51:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BYTsGZtNNGyivPbtW) this one

bilalahmed (Thu, 11 Apr 2019 10:55:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gYe4o4hg5Ri3bD2X2) @AndresMartinezMelgar.itcl Please run this command and see if you get any response: docker volume rm $(docker volume ls -qf dangling=true)

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 11:04:17 GMT):
i not using docker, i am using kubernetes

bilalahmed (Thu, 11 Apr 2019 11:06:17 GMT):
I see... Alright, generally you get such error when channel is already setup and you are trying to recreate it or peer has already joined and its rejoining itself. So, make sure that you are terminating network setup properly and running it again.

AndresMartinezMelgar.itcl (Thu, 11 Apr 2019 11:10:07 GMT):
yes. i am sure that i am doing that. I created a new kubernetes cluster then i try to create a new channel, then i receive that error

Dhiraj1990 (Thu, 11 Apr 2019 13:34:13 GMT):
what does this log mean 2019-04-11 13:32:46.665 UTC [cli.common] readBlock -> INFO 00a Got status: &{SERVICE_UNAVAILABLE}

BlockS 4 (Thu, 11 Apr 2019 13:44:22 GMT):
Has joined the channel.

BlockS 4 (Thu, 11 Apr 2019 13:46:07 GMT):
Hi, I am trying to setup test network using byfn script in fabric-samples repository (under first-network directory). On ./byfn.sh up with go, everything works fine. If I try to do the same with java (-l java) I am getting the error -

BlockS 4 (Thu, 11 Apr 2019 13:46:09 GMT):
Chaincode installation on peer0.org1

BlockS 4 (Thu, 11 Apr 2019 13:46:09 GMT):
Chaincode installation on peer0.org1 has failed

BlockS 4 (Thu, 11 Apr 2019 13:46:16 GMT):
ERROR !!! FAILED to execute End-2-End Scenario

BlockS 4 (Thu, 11 Apr 2019 13:46:24 GMT):
Can someone please help me with debugging this ?

bilalahmed (Thu, 11 Apr 2019 14:25:54 GMT):
check peer logs

colasga (Thu, 11 Apr 2019 14:40:12 GMT):
Has joined the channel.

colasga (Thu, 11 Apr 2019 14:40:37 GMT):
Hey, i'm trying to register a user from my CA using Node SDK and the fabcar node sample. When i'm using it on my own network (with my connection.json file) i got this error : `Failed to register user "user1": Error: Calling register endpoint failed with error [Error: self signed certificate]`

mssathees (Thu, 11 Apr 2019 16:56:39 GMT):
Are there any players (Companies) available with blockchain based solution in Surety bond industry, specifically in North America

itsNebula (Thu, 11 Apr 2019 16:57:11 GMT):
How do i solve the problem "cryptogen not found" ?

itsNebula (Thu, 11 Apr 2019 16:57:25 GMT):
I have installed the hyperledger with given curl command but it gives cryptogen not found error

itsNebula (Thu, 11 Apr 2019 16:57:40 GMT):
Is there any way to download and install only cryptogen?

Antimttr (Thu, 11 Apr 2019 17:07:42 GMT):
check the paths to your binary files

Antimttr (Thu, 11 Apr 2019 17:07:51 GMT):
i beleive they have to be added to your path env. variable

itsNebula (Thu, 11 Apr 2019 17:24:13 GMT):
I'm getting an error like " Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' reference" while trying to call the command: configtxgen -profile ComposerOrdererGenesis -outputBlock ./composer-genesis.block Is there anyone can help me?

alvaro210 (Thu, 11 Apr 2019 17:27:25 GMT):
Has joined the channel.

alvaro210 (Thu, 11 Apr 2019 17:27:27 GMT):
Hi

alvaro210 (Thu, 11 Apr 2019 17:27:41 GMT):
What are the best courses for hyperledger fabric?

Antimttr (Thu, 11 Apr 2019 17:28:13 GMT):
not sure, i've never taken one. I almost took one of the alturius(sp) one's but it was canceled

alvaro210 (Thu, 11 Apr 2019 17:31:14 GMT):
it is true that composer is over?

Antimttr (Thu, 11 Apr 2019 17:31:31 GMT):
i beleive its now deprecated, but im not 100% sure

alvaro210 (Thu, 11 Apr 2019 17:32:00 GMT):
I'm trying to learn more about chaincode

alvaro210 (Thu, 11 Apr 2019 17:32:08 GMT):
but the tutorials are in Go

Antimttr (Thu, 11 Apr 2019 17:32:20 GMT):
yeah, i've been jumping around between the examples

Antimttr (Thu, 11 Apr 2019 17:32:33 GMT):
i really like the node/typescript examples in the balance-transfer sample

alvaro210 (Thu, 11 Apr 2019 17:32:44 GMT):
and I want to learn in NodeJs

Antimttr (Thu, 11 Apr 2019 17:32:48 GMT):
and i've been modeling a java sdk client implementation on them

alvaro210 (Thu, 11 Apr 2019 17:33:04 GMT):
are you coding chaincode in java?

Antimttr (Thu, 11 Apr 2019 17:33:19 GMT):
not yet, ive only messed around with chaincode stuff in nodejs

Antimttr (Thu, 11 Apr 2019 17:34:06 GMT):
there's so much implimentation you have to do before you can even think about chaincode when you write a client from scratch

alvaro210 (Thu, 11 Apr 2019 17:35:09 GMT):
yeah I want to learn more

Antimttr (Thu, 11 Apr 2019 17:35:25 GMT):
check out balance-transfer

Antimttr (Thu, 11 Apr 2019 17:35:46 GMT):
its got pretty good client implementations in both typescript and node

Antimttr (Thu, 11 Apr 2019 17:36:10 GMT):
i was able to write custom chaincode for it for my application as a POC

Antimttr (Thu, 11 Apr 2019 17:36:16 GMT):
and it worked nicely

alvaro210 (Thu, 11 Apr 2019 17:36:39 GMT):
balance-transfer sample app in github?

Antimttr (Thu, 11 Apr 2019 17:36:44 GMT):
yup

Antimttr (Thu, 11 Apr 2019 17:37:08 GMT):
its a bit confusing because they stick two client implementations in it, but just pick one you like and stick iwth it

Antimttr (Thu, 11 Apr 2019 17:37:15 GMT):
i went with the node one

alvaro210 (Thu, 11 Apr 2019 17:40:32 GMT):
it should have more examples about chaincode in Node

alvaro210 (Thu, 11 Apr 2019 17:42:18 GMT):
Have you hear about blockgeeks?

walmon (Thu, 11 Apr 2019 18:21:51 GMT):
@alvaro210 @antimttr have you tried Convector? A lot of devs have migrated from composer to convector https://github.com/hyperledger-labs/Convector

walmon (Thu, 11 Apr 2019 18:22:36 GMT):
It's fullstack and JavaScript (typescript)

alvaro210 (Thu, 11 Apr 2019 18:22:47 GMT):
Have you use it?

walmon (Thu, 11 Apr 2019 18:22:56 GMT):
I'm one of the core devs

walmon (Thu, 11 Apr 2019 18:23:25 GMT):
We are incubating it in Hyperledger Labs

alvaro210 (Thu, 11 Apr 2019 18:23:53 GMT):
Why composer is dead?

walmon (Thu, 11 Apr 2019 18:24:21 GMT):
Here are some code samples https://docs.worldsibu.com/article/73-code-samples

walmon (Thu, 11 Apr 2019 18:25:21 GMT):
It's architecture was pretty heavy and hard to keep up witj Fabric as it abstracted a lot of the features. Most of the learning of that were applied the Convector which is much more lightweight and runs natively in fabric

walmon (Thu, 11 Apr 2019 18:25:21 GMT):
It's architecture was pretty heavy and hard to keep up witj Fabric as it abstracted a lot of the features. Most of the learning of that were applied to Convector which is much more lightweight and runs natively in fabric

alvaro210 (Thu, 11 Apr 2019 18:25:48 GMT):
Convector is like a replacement for Composer?

walmon (Thu, 11 Apr 2019 18:26:34 GMT):
Not entirely. It's architecture is really differente. But like 80% of the devs in community i talk to migrated from Composer to it

alvaro210 (Thu, 11 Apr 2019 18:27:30 GMT):
Convector is currently in Hyperledger Labs?

walmon (Thu, 11 Apr 2019 18:27:43 GMT):
Yes

walmon (Thu, 11 Apr 2019 18:28:03 GMT):
Hopefully we can graduate it soon

Antimttr (Thu, 11 Apr 2019 18:28:46 GMT):
@walmon so convector would be something you'd use in place of implementing your own client from one of the sdks?

walmon (Thu, 11 Apr 2019 18:29:16 GMT):
It uses the official sdk but enhances it

Antimttr (Thu, 11 Apr 2019 18:29:25 GMT):
im curious how it ties in with the new Gateway methodology that 1.4(i think) introduced?

walmon (Thu, 11 Apr 2019 18:29:53 GMT):
It runs natively - you can use any other fabric feature

walmon (Thu, 11 Apr 2019 18:30:20 GMT):
Both in the chaincode and in the server side

walmon (Thu, 11 Apr 2019 18:30:56 GMT):
https://docs.worldsibu.com/article/99-tutorial-getting-started check this out

Antimttr (Thu, 11 Apr 2019 18:31:01 GMT):
so just to confirm, if you use convector than you're not writing code which directly interacts with the sdks?

walmon (Thu, 11 Apr 2019 18:31:29 GMT):
You are writing code that uses every official sdk

walmon (Thu, 11 Apr 2019 18:31:33 GMT):
For Node

Antimttr (Thu, 11 Apr 2019 18:31:56 GMT):
ahh, so it doesnt currently support idemix then?

walmon (Thu, 11 Apr 2019 18:32:15 GMT):
On the contraire. It uses everything that fabric has

walmon (Thu, 11 Apr 2019 18:32:29 GMT):
It doesnt abstract features

Antimttr (Thu, 11 Apr 2019 18:32:30 GMT):
ahh so it uses go or java for its idemix?

walmon (Thu, 11 Apr 2019 18:33:38 GMT):
No no, it uses node so anything that node supports Convector does too

Antimttr (Thu, 11 Apr 2019 18:33:55 GMT):
right, and AFAIK node does not support idemix

Antimttr (Thu, 11 Apr 2019 18:34:21 GMT):
_checks out the full stack example_

Antimttr (Thu, 11 Apr 2019 18:34:52 GMT):
thats why im rolling my own implementation in java right now

Antimttr (Thu, 11 Apr 2019 18:35:12 GMT):
since i dont know golang at all, figure java is the least painful way to get that functionality

walmon (Thu, 11 Apr 2019 18:36:29 GMT):
Sounds weird as Idemix is a server/infra tech

walmon (Thu, 11 Apr 2019 18:36:43 GMT):
I'll check later whats the supprt status in node

Antimttr (Thu, 11 Apr 2019 18:37:06 GMT):
this is the epic they've assigned for idemix implementation in the node sdk: https://jira.hyperledger.org/browse/FABN-689

walmon (Thu, 11 Apr 2019 18:37:27 GMT):
I can see

Antimttr (Thu, 11 Apr 2019 18:38:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8e881200-ace2-4969-a2ea-529d8b98b731) I believe it's because it has to talk to the CA's in a slightly different manner

walmon (Thu, 11 Apr 2019 18:38:07 GMT):
But thats for tje sdk. You could create a convector chaincode calling it fron Java

walmon (Thu, 11 Apr 2019 18:38:07 GMT):
But thats for the sdk. You could create a convector chaincode calling it from Java

brockhager (Thu, 11 Apr 2019 20:54:33 GMT):
Hello. Sorry to be a bother again but I am wondering if anyone has any possible solution for me to read the docs. It works on other computers outside of our network - but does not show up under my work network

brockhager (Thu, 11 Apr 2019 20:54:43 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#overview

brockhager (Thu, 11 Apr 2019 20:54:57 GMT):
it works for most everyone else. I just don't know why it wouldn't work for me

brockhager (Thu, 11 Apr 2019 20:55:04 GMT):
it isn't being blocked by the work web filters

brockhager (Thu, 11 Apr 2019 20:55:11 GMT):
just a connection error

brockhager (Thu, 11 Apr 2019 20:55:34 GMT):
i have tried IE, chrome and Firefox. I have restarted and tried clearing cookies and opening new private sessions

brockhager (Thu, 11 Apr 2019 20:56:43 GMT):

failed-website-Capture.PNG

MaxVirkus (Thu, 11 Apr 2019 21:00:55 GMT):
Has joined the channel.

caveman7 (Fri, 12 Apr 2019 00:56:42 GMT):
i saw the release of hyperledger fabric v2 alpha with fabtoken. is there any plans to support atomic token swap transactions? saw the future features ( https://hyperledger-fabric.readthedocs.io/en/latest/token/FabToken.html#future-features) but it has no such information

TristanBustillo (Fri, 12 Apr 2019 02:26:57 GMT):
Has joined the channel.

knagware9 (Fri, 12 Apr 2019 02:36:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tKmo5FsgvNGy8AH9E) @brockhager Its blocked

Akatsuki (Fri, 12 Apr 2019 03:17:14 GMT):
Has joined the channel.

ribjethgnis (Fri, 12 Apr 2019 05:10:51 GMT):
hi everyone , how to achieve this Proof of Existence – creating value and trust by providing irrefutable evidence that a specific piece of information or product existed at a given time, enabling a company and its stakeholders, such as customers and customs, to operate in confidence. Even after a cyber-attack, which has become a more prevalent threat to global companies. Proof of Existence is a highly desirable operating function for global logistics, as it becomes an expectation from stakeholders to ensure trust and accountability as well as enabling a company to protect themselves from hacking or tampering.

LovepreetSingh (Fri, 12 Apr 2019 05:56:13 GMT):
Error while executing contract.submitTransaction() Error: "orderer" request parameter is missing and there are no orderers defined on this channel in the common connection profile *Orderer is defined in the connection profile as specified by common connection profile format *

florianc (Fri, 12 Apr 2019 06:31:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A9oqg5PfrhZS4BoQ5) @ribjethgnis I don't really know if I understand well your question. If you talk about existence of an asset (an entry in the database), you could provide the ID of the transaction that wrote the asset in the DB

florianc (Fri, 12 Apr 2019 06:31:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A9oqg5PfrhZS4BoQ5) @ribjethgnis I don't really know if I understand well your question. If you talk about existence of an asset (an entry in the database), you could provide the ID of the transaction that wrote the asset in the DB

ribjethgnis (Fri, 12 Apr 2019 07:07:19 GMT):
@florianc what kind of possible stuff i can conclude from the statement i mentioned above.

itsNebula (Fri, 12 Apr 2019 07:14:02 GMT):
Hey guys, I'm wondering is it possible to join as a peer to the fabric network while network has been already instantiated and running well.(I mean peers submitted transaction on a orderers channel)

luca-morgese97 (Fri, 12 Apr 2019 07:16:11 GMT):
Hello everyone. I have a question concerning mutual TLS on the network. I'd like to know if a configuration I have running is correct. My objective is: - having peer to peer communications happening through TLS with mutual TLS but no different contracts if they communicate as clients or servers. - having peer - orderer communications happening through TLS without mutual TLS. - Having client application users - network communications happening through TLS with mutual TLS. On orderer: - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] On peers: - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_TLS_CLIENTAUTHREQUIRED=true - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/etc/hyperledger/fabric/tls/ca.crt And then I'll have the client application specify its TLS certificate and key when instantiating peers with client.newPeer(). Is that correct? Thank you very much

luca-morgese97 (Fri, 12 Apr 2019 07:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3EXJEnCDk6JmPJcD) @itsNebula Hello Nebula. It is possible. I have found this article which explains a method to accomplish such task: https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217 (Medium articles been popping everywhere lately)

florianc (Fri, 12 Apr 2019 07:20:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JebCHSxhApxeKCW89) @ribjethgnis I am confused. What did you not understand or what did I not understand?

luca-morgese97 (Fri, 12 Apr 2019 07:24:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A3EXJEnCDk6JmPJcD) @itsNebula Hello Nebula. It is possible. Here is a Medium article I have found describing a way to accomplish such task: https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217 (Medium articles been popping everywhere lately)

itsNebula (Fri, 12 Apr 2019 08:01:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9CRvySsuQ67tCFwdJ) @luca-morgese97 Thank you. I will look at it

neneg (Fri, 12 Apr 2019 08:06:19 GMT):
Hey guys! if I have a network already running how can I change (update, etc.) the chaincode installed on one of the endorsing peers? Does the client have to update the local copies of the chaincode on rest of the peers accordingly or they will be updated automatically as the result of the update on only one of the endorsing peers?

JohnR (Fri, 12 Apr 2019 08:19:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kL6jYfBC3ozY7fgDj) @neneg Install the chaincode on the peers, and upgrade the channel. Once the channel is upgraded the new version will become active

neneg (Fri, 12 Apr 2019 08:23:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d7vSF95w6i965KNRQ) @JohnR Thanks for your reply John! This means that I still have to install the new chaincode on every peer one by one?

florianc (Fri, 12 Apr 2019 08:32:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=G24w9goczq4HS2gj8) @neneg Yes

JohnR (Fri, 12 Apr 2019 08:33:58 GMT):
Yup, different peers can run different versions of chaincode, yet the active one is bound to the challel

kolayuk (Fri, 12 Apr 2019 08:49:20 GMT):
Hello! After upgrading network to v1.4 I recieving error messages in peer logs: 2019-04-12 08:44:02.549 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.20.125.30:40366"} It connects to a strange port (it may be closed) and fails to connect. Btw network works fine, including private data (that means gossip communication is OK). What's the reason of this message?

kolayuk (Fri, 12 Apr 2019 08:49:20 GMT):
Hello! After upgrading network to v1.4 I recieving error messages in peer logs: 2019-04-12 08:44:02.549 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.20.125.30:40366"} It connects to a strange port (it may be closed) and fails to connect. Btw network works fine, including private data (that means gossip communication is OK). What's the reason of this message? Why is it appears if everything seems to work ok?

kolayuk (Fri, 12 Apr 2019 08:49:20 GMT):
Hello! After upgrading network to v1.4 I recieving error messages in peer logs: 2019-04-12 08:44:02.549 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "10.20.125.30:40366"} It connects to a strange port (it may be closed) and fails to connect. Btw network works fine, including private data (that means gossip communication is OK). What's the reason of this message? Why is it appears if everything seems to work ok? Why it trying to connect strange port?

itg1996 (Fri, 12 Apr 2019 08:49:50 GMT):
hi everyone, I am writing chaincode in nodejs using fabric-contract-api. I want to know how to pass values to constructor while instantiating

itg1996 (Fri, 12 Apr 2019 08:49:50 GMT):
hi everyone, I am writing chaincode in nodejs using fabric-contract-api. I want to know how to pass values to constructor while instantiating ?

itg1996 (Fri, 12 Apr 2019 08:49:57 GMT):
?

salibalea (Fri, 12 Apr 2019 09:57:36 GMT):
Has joined the channel.

salibalea (Fri, 12 Apr 2019 09:57:51 GMT):
Hello I'm new on Hyperledger Fabric. I have a question, I want to start my own network for healthcare data. What is the best way to start? Is it by Build your first network example or Writing your first application?

sandeepsingh6 (Fri, 12 Apr 2019 10:04:40 GMT):
getting this error on network start

sandeepsingh6 (Fri, 12 Apr 2019 10:04:41 GMT):
Error: No valid responses from any peers. Unexpected response of 500. Payload was:

sandeepsingh6 (Fri, 12 Apr 2019 10:04:50 GMT):
please hepl

SiddhantRawat (Fri, 12 Apr 2019 10:30:50 GMT):
Has joined the channel.

SiddhantRawat (Fri, 12 Apr 2019 10:35:15 GMT):
Hi, I'm trying to define participants on Hyperledger Fabric but when I use the namespace command the terminal says namespace not found. What should I do?

ahmadraza (Fri, 12 Apr 2019 10:58:30 GMT):
How can i ensure that transaction is commited to all peers?

bilalahmed (Fri, 12 Apr 2019 11:03:19 GMT):
As Fabric SDK for Go and Python has not been released officially but available for testing and development so should we use these SDKs for production applications? Like Composer is not recommended for production use.

peters (Fri, 12 Apr 2019 11:31:19 GMT):
Hi I searched for posts like this but found nothing I get "Attempted to include a member which is not in the consortium" when trying to create channel I found on the internet that this can happen if no channel name is passed but I explicitly pass it in create command "peer channel create -c mychannel -f ./channel-artifacts/mychannel.tx --orderer ......" Anyone faced this issue

ribjethgnis (Fri, 12 Apr 2019 11:35:25 GMT):
whenever i run "docker-compose -f docker-compose.yaml up " i get the following output running for long time

ribjethgnis (Fri, 12 Apr 2019 11:35:39 GMT):

captr.PNG

ribjethgnis (Fri, 12 Apr 2019 11:37:55 GMT):
3 orgs , with 2 peers each orgs. i have written the docker-compose files for couchdb,base,peer,ca. but i am getting the above output running for long time . what should i do. when i do ctrl+c it then stop peer0 and orderer node

garunkumar450 (Fri, 12 Apr 2019 13:01:24 GMT):
peer channel signconfigtx -f conifg.pb Error: Invalid channel create transaction : bad header

mfaisaltariq (Fri, 12 Apr 2019 13:31:59 GMT):
Anyone who has worked with fabric-explorer or postgresql faced this error? ```default database: `/var/db/locate.database' or $LOCATE_PATH <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> Error : [ 'Invalid platform configuration, Please check the log' ] (node:7851) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead Received kill signal, shutting down gracefully Closed out connections```

neneg (Fri, 12 Apr 2019 14:08:34 GMT):

error.png

neneg (Fri, 12 Apr 2019 14:08:36 GMT):
Here's the log of my peer0.org1.example.com container.... any ideas what is the issue? I cannot create a channel either. ``` ```

GyoonKi (Fri, 12 Apr 2019 14:22:19 GMT):
hello there, I'm using fabric 1.1 and I want to use Explorer so which version on Explorer is compatible with fabric 1.1

JoshFodale (Fri, 12 Apr 2019 15:22:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8RQ3ZNdDHZAfPHt3p) @salibalea I would start with the Build Your First Network example. There's a lot to learn about the Fabric infrastructure and that is a good starting point to introduce all of that

JoshFodale (Fri, 12 Apr 2019 17:49:14 GMT):
Got a question I've been spinning my wheels on for awhile... I'm trying to deploy & instantiate my chaincode from a CDS file (whereas normally I just deploy & instantiate directly from my source). It installs from the CDS alright, but it always times out during the instantiation step. Here is the log from my peer with logging level set to debug: ``` 2019-04-10 19:56:06.677 UTC [endorser] callChaincode -> INFO 03e [][5dfb94ea] Exit chaincode: name:"cscc" (1ms) 2019-04-10 19:56:06.686 UTC [endorser] callChaincode -> INFO 03f [mychannel][c2e4eb58] Entry chaincode: name:"lscc" 2019-04-10 20:01:06.358 UTC [endorser] callChaincode -> INFO 040 [mychannel][c2e4eb58] Exit chaincode: name:"lscc" (300019ms) 2019-04-10 20:01:06.359 UTC [endorser] SimulateProposal -> ERRO 041 [mychannel][c2e4eb58] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode loan-chain:v1 for transaction github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:65 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).LaunchInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:122 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:213 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:179 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:237 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:456 ```

JoshFodale (Fri, 12 Apr 2019 18:50:21 GMT):
I'm trying to deploy my chaincode using a SignedCDS (as opposed to straight from the source which is what I usually do). When instantiating the chaincode, I get an error saying it can't locate the shim.js file of my chaincode, which I suppose makes sense, since I have a SignedCDS in place of where my source usually is. Is there something special I have to do to tell the `chaincode install` step that I am using a SignedCDS?

brockhager (Fri, 12 Apr 2019 19:26:27 GMT):
anyone installed docker on RHEL 7 ?

brockhager (Fri, 12 Apr 2019 19:27:10 GMT):
the instructions seem a bit confusing

brockhager (Fri, 12 Apr 2019 19:29:01 GMT):
actually i think we got it

brockhager (Fri, 12 Apr 2019 19:29:07 GMT):
"sudo yum install docker" lol

MohammedR (Sat, 13 Apr 2019 06:57:50 GMT):
Hey, I've configure peer and orderer with prometheus and visualizing it using graffna but i'm not able to get any metrics related to gossip although in official documentation gossip metrics are specified. https://hyperledger-fabric.readthedocs.io/en/release-1.4/metrics_reference.html#prometheus-metrics

MohammedR (Sat, 13 Apr 2019 06:57:50 GMT):
Hey, I've configure peer and orderer with prometheus and visualizing metrics using graffna but i'm not able to get any metrics related to gossip although in official documentation gossip metrics are specified. https://hyperledger-fabric.readthedocs.io/en/release-1.4/metrics_reference.html#prometheus-metrics

erictran1910 (Sat, 13 Apr 2019 12:27:30 GMT):
can we set mongodb as state database ???

rampanda (Sat, 13 Apr 2019 14:53:29 GMT):
Has joined the channel.

rampanda (Sat, 13 Apr 2019 14:56:01 GMT):
I am trying to bring up the container after generating the certs and keys successfully. but getting errors --- OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "no such file or directory": unknown ERROR !!!! Test failed

rampanda (Sat, 13 Apr 2019 14:56:30 GMT):
I am using windows machine

Dipspaw (Sat, 13 Apr 2019 15:41:19 GMT):
Has joined the channel.

balazsprehoda (Sat, 13 Apr 2019 15:53:19 GMT):
Hi! Can you give me a few pointers to get started with Idemix? I understand that I need to enroll peers using --enrollment.type 'idemix'. My question would be, how can I configure an IdemixMSP, and how should I use it for verification?

balazsprehoda (Sat, 13 Apr 2019 15:53:19 GMT):
Hi! Can you give me a few pointers to get started with Idemix? I understand that I need to enroll peers using --enrollment.type 'idemix'. My question would be, how can I configure an IdemixMSP, and how should I use it for verification? Edit: I see in the documentation (https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemix.html#current-limitations), that peers can't use Idemix for signing yet. Does that mean, that without Client SDK, I can't use Idemix?

rangeshsripathi (Sat, 13 Apr 2019 17:00:46 GMT):
Hey All ,

rangeshsripathi (Sat, 13 Apr 2019 17:01:23 GMT):
I tried using Caliper for benchmarking.. how

rangeshsripathi (Sat, 13 Apr 2019 17:02:38 GMT):
*how does the caliper node SDK sends transaction in a batch..it does send 100 transaction per second...

rangeshsripathi (Sat, 13 Apr 2019 17:03:45 GMT):
Should sending transaction be handled from fabric node SDK ? I.e sending 50 or 100 transaction to fabric network ?

rangeshsripathi (Sat, 13 Apr 2019 17:03:57 GMT):
Any pointers would real help..

rangeshsripathi (Sat, 13 Apr 2019 17:07:07 GMT):
I did figure out the configured fabric network supports 100 transaction per second using Caliper..but still struggling to find how to send 100 or 50 transaction via node SDK ..

umarmw (Sat, 13 Apr 2019 17:58:47 GMT):
Has joined the channel.

umarmw (Sat, 13 Apr 2019 17:59:34 GMT):
Hello, do you know any area of research in fabric, or a novelty factor?

tigersega (Sun, 14 Apr 2019 03:11:48 GMT):
Has joined the channel.

jessezhu (Sun, 14 Apr 2019 09:45:31 GMT):
Has joined the channel.

hazbiy97 (Sun, 14 Apr 2019 10:35:20 GMT):
Has joined the channel.

hazbiy97 (Sun, 14 Apr 2019 10:35:35 GMT):
hello everybody, im so excited to be here. im undergraduate student who takes hyperledger fabric as my thesis, but i get confused a lot by fabric because how complex fabric is, and in my understanding (CMIIW) composer is acting like chaincode maker and i intend to use composer to understand how chaincode works before moving on to fabric network (MSP, Channel, etc) does anybody here have better flow to understand fabric rather than this? i really want to understand fabric but if you guys say that composer is enough (even for production purpose) maybe i'll focus on composer then (my thesis is a project for some company so i expect to learn something that can be used for production) hello everybody, im so excited to be here. im undergraduate student who takes hyperledger fabric as my thesis, but i get confused a lot by fabric because how complex fabric is, and in my understanding (CMIIW) composer is acting like chaincode maker and i intend to use composer to understand how chaincode works before moving on to fabric network (MSP, Channel, etc) does anybody here have better flow to understand fabric rather than this? i really want to understand fabric but if you guys say that composer is enough (even for production purpose) maybe i'll focus on composer then (my thesis is a project for some company so i expect to learn something that can be used for production) hello everybody, im so excited to be here. im undergraduate student who takes hyperledger fabric as my thesis, but i get confused a lot by fabric because how complex fabric is, and in my understanding (CMIIW) composer is acting like chaincode maker and i intend to use composer to understand how chaincode works before moving on to fabric network (MSP, Channel, etc) does anybody here have better flow to understand fabric rather than this? i really want to understand fabric but if you guys say that composer is enough (even for production purpose) maybe i'll focus on composer then (my thesis is a project for some company so i expect to learn something that can be used for production)

hazbiy97 (Sun, 14 Apr 2019 10:35:46 GMT):
hello everybody, im so excited to be here. im undergraduate student who takes hyperledger fabric as my thesis, but i get confused a lot by fabric because how complex fabric is, and in my understanding (CMIIW) composer is acting like chaincode maker and i intend to use composer to understand how chaincode works before moving on to fabric network (MSP, Channel, etc) does anybody here have better flow to understand fabric rather than this? i really want to understand fabric but if you guys say that composer is enough (even for production purpose) maybe i'll focus on composer then (my thesis is a project for some company so i expect to learn something that can be used for production)

mosogrean (Sun, 14 Apr 2019 11:03:41 GMT):
Hi everyone, Do you know about ACL of hyperledger fabric in hyperledger composer structure can do, I wanna know will i use ACL in the pure chaincode or will config them?

Chilli 4 (Sun, 14 Apr 2019 14:22:46 GMT):
Has joined the channel.

Antimttr (Sun, 14 Apr 2019 15:04:02 GMT):
@hazbiy97 as i've heard, composer is basically a dead project

Antimttr (Sun, 14 Apr 2019 15:04:22 GMT):
i wouldnt base any long term research off of it if i were you, better to go with a project that's still alive

Shritesh99 (Sun, 14 Apr 2019 15:28:57 GMT):
Has joined the channel.

caveman7 (Mon, 15 Apr 2019 01:48:47 GMT):
in https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html#creating-the-network , it is mentioned that "configuration NC4 contains the policies that describe the starting set of administrative capabilities for the network". does this configuration refer to https://hyperledger-fabric.readthedocs.io/en/release-1.4/configtx.html#orderer-system-channel-configuration ?

DarwinHarianto (Mon, 15 Apr 2019 04:14:07 GMT):
Hello guys, how do I bring my composer configuration to fabric?

itg1996 (Mon, 15 Apr 2019 05:17:53 GMT):
hi everyone , when I am invoking chaincode from cli and passing arguement as environment variable , I am getting the following error: Error: chaincode argument error: unexpected end of JSON input I am using syntax: '{"function":"start","Args":["'$id'"]}'

sahilgoel (Mon, 15 Apr 2019 05:50:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rTKjrhTqhhGXpTE45) @itg1996 @itg1996 Escape the single quotes by using the \

sahilgoel (Mon, 15 Apr 2019 05:50:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rTKjrhTqhhGXpTE45) @itg1996 @itg1996 Escape the single quotes by using the \' For example: '{"function":"start","Args":["\'$id\'"]}'

itg1996 (Mon, 15 Apr 2019 05:59:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ADmXWvd9ddbZAZjca) @sahilgoel I tried it . Instead of executing the command , the cli behaves weird and displays "> " character

DarwinHarianto (Mon, 15 Apr 2019 06:07:56 GMT):
which one is better for deploying on multiple machines? using https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f (docker swarm) or https://medium.com/coinmonks/hyperledger-fabric-cluster-on-multiple-hosts-af093f00436 (directly??)

caveman7 (Mon, 15 Apr 2019 06:09:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zHN47Ct6d46hA7iMZ) @DarwinHarianto Kubernetes :)

DarwinHarianto (Mon, 15 Apr 2019 06:11:21 GMT):
where can I find the tutorial to do that?

DarwinHarianto (Mon, 15 Apr 2019 06:11:28 GMT):
@caveman7

garunkumar450 (Mon, 15 Apr 2019 06:15:58 GMT):
how to retrieve data based on transactionid

agc (Mon, 15 Apr 2019 06:21:27 GMT):
Has joined the channel.

ahmadraza (Mon, 15 Apr 2019 06:24:00 GMT):
how can we back up the peer data and restore it. And is there any possibility to pause/resume network because if laptop/system get shutdown for some reason all the data is get lost ? Anyone can help?

sahilgoel (Mon, 15 Apr 2019 06:33:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pWqdHzr6pdghstJ7u) @itg1996 try this one '{"function":"create","Args":["$id"]}'

agc (Mon, 15 Apr 2019 06:33:35 GMT):
Hello everyone! I'm trying to add a new peer to my channel (1 org, 1 peer) with the following command (launched from the new peer in v1.4.0): ../bin/cryptogen extend --config=./crypto-config.yaml (same network config plus 1 peer) But the following error appears: "x509: certificate private key does not implement crypto.Signer" Do you know what the problem might be? Thank you!

agc (Mon, 15 Apr 2019 06:33:35 GMT):
Hello everyone! I'm trying to add a new peer to my channel (1 org, 1 peer) with the following command (launched from the new peer in v1.4.0): ../bin/cryptogen extend --config=./crypto-config.yaml (same network config plus 1 peer) But the following error appears: "x509: certificate private key does not implement crypto.Signer" Do you know what the problem might be? Thank you!

JohnR (Mon, 15 Apr 2019 06:36:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zHN47Ct6d46hA7iMZ) @DarwinHarianto Personally I think docker swarm is a bit contradictionary to the idea of a blockchain / distributed ledger. Having one manager controlling all nodes in the network re-introduces the trusted third party blockchain technology tries to get rid off

DarwinHarianto (Mon, 15 Apr 2019 06:38:55 GMT):
ah yes, you are right. But hyperledger have orderer that validate things right? if I put orderer as swarm manager, isn't it ok? I don't really know. Im new here, just made a little project using composer. When I heard composer is dead, I want to move to fabric level.

JohnR (Mon, 15 Apr 2019 06:42:56 GMT):
The orderer makes sure the transactions that have been endorsed get handled in the right order / way

raghavvarora (Mon, 15 Apr 2019 06:45:38 GMT):
Has joined the channel.

raghavvarora (Mon, 15 Apr 2019 06:45:52 GMT):
Hi to all,

raghavvarora (Mon, 15 Apr 2019 06:46:19 GMT):
Please solve my doubt byfn.sh is written in language

raghavvarora (Mon, 15 Apr 2019 06:46:27 GMT):
?? ??

JohnR (Mon, 15 Apr 2019 06:49:16 GMT):
bash

florianc (Mon, 15 Apr 2019 06:50:11 GMT):
Hello. Say I have a chaincode with policy saying only org2 can endorse transactions. If I send this transaction to org1 peer, what happens? Is it transferred to org2?

florianc (Mon, 15 Apr 2019 06:50:11 GMT):
Hello. Say I have a chaincode with policy saying only org2 can endorse transactions. If I send this transaction to org1 peer, what happens? Is it transferred to org2 peer?

itg1996 (Mon, 15 Apr 2019 06:54:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=N4qyiRnFydARvsJMk) @sahilgoel In this case , it passes the arguement as $id instead of retrieving the value stored in id.

DarwinHarianto (Mon, 15 Apr 2019 07:09:54 GMT):
@JohnR what do you recommend to linking multiple physical machine?

JohnR (Mon, 15 Apr 2019 07:12:57 GMT):
Depends on specific needs, but we use a combination of IP-filtering and TLS for communication between nodes

DarwinHarianto (Mon, 15 Apr 2019 07:14:55 GMT):
I just want to make a mock up env. Where I can save data and look at it from different places

DarwinHarianto (Mon, 15 Apr 2019 07:15:35 GMT):
i.e. from office desktop and my home desktop

AndresMartinezMelgar.itcl (Mon, 15 Apr 2019 07:15:58 GMT):
Hello, I am trying to create a network in kubernetes with kafka and 2 nodes to order. When I try to create a channel it gives me this error: Error: got unexpected status: BAD_REQUEST - error authorizing update: error validating DeltaSet: policy for [Group] / Channel / Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remainin. Does anyone know the reason for this error? PS: restarting the network does not work, I've already tried it. The channel does not exist, I'm starting the network from 0

ribjethgnis (Mon, 15 Apr 2019 07:37:55 GMT):
hyperledger network with 3 orgs having 2 peers each and one ordering node is done . what is the need of hyperledger composer now ? what will i achieve in the end that hypeledger network doenst achieve alone ? what shteps should i do to work with composer

DarwinHarianto (Mon, 15 Apr 2019 07:59:21 GMT):
is there any tutorial on developing on multiple physical machine for fabric?

bilalahmed (Mon, 15 Apr 2019 08:09:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bADLdof557WSzY3qt) Can anyone please respond on this.

JorgeNavarro (Mon, 15 Apr 2019 08:25:00 GMT):
Hello, if i have two orderer, how can we check if the information is inside both of them?

benjamin.verhaegen (Mon, 15 Apr 2019 08:52:58 GMT):
anybody knows why I can't git checkout release-1.4.1?

bilalahmed (Mon, 15 Apr 2019 09:05:09 GMT):
try: v1.4.1-rc1

ribjethgnis (Mon, 15 Apr 2019 09:08:29 GMT):
i want to create a 3 orgs 3 peers each 1 ordere network using hl fabric. what is the use of doing it in fabric ? cant i do the same in composer / then wats the idfference

CorentinPacaud (Mon, 15 Apr 2019 09:09:17 GMT):
Hi, I am developping a network/chaincode with hyperledger fabric 1.2. Is it possible to deny an Organization from creating resources ? Like in composer we disable the CREATE/UPDATE/DELETE right ?

AndresMartinezMelgar.itcl (Mon, 15 Apr 2019 09:13:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hAaAEhj4H5EbqeYQ5) @DarwinHarianto first at all you need to know if you want to use docker swarm or kubernetes or another system to create a net

Psingh (Mon, 15 Apr 2019 09:23:04 GMT):
I'm trying to create my own-network by following chainHero tutorials but got stuck when trying to start the docker compose because of below error. `Creating network "firstproject-network_default" with the default driver Creating ca.org1.firstproject.com ... done Creating orderer.firstproject.com ... done Creating peer1.org1.firstproject.com ... error Creating peer0.org1.firstproject.com ... ERROR: for peer1.org1.firstproject.com Cannot start service peer1.org1.firstproject.com: b'OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \\"peer\\": executable fileCreating peer0.org1.firstproject.com ... error`

DawoodJehangir (Mon, 15 Apr 2019 09:38:46 GMT):
Hello, Currently when I start my first-network the ledger gets initialized with some data that I have in my initLedger() function. (I have built my own smart contract). However, if I don't want to initialize it from now on, what changes do I need to make?

bilalahmed (Mon, 15 Apr 2019 09:40:29 GMT):
remove --init-required flag from peer CLI

bilalahmed (Mon, 15 Apr 2019 09:40:57 GMT):
BTW doc says: If execution of Init is requested, fabric will ensure that Init is invoked before any other function and is only invoked once.

CorentinPacaud (Mon, 15 Apr 2019 09:43:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SRRGLP5nPPP2ifASi) @DawoodJehangir Empty the "initLedger" function or just don't call it at the end of build of the network.

DawoodJehangir (Mon, 15 Apr 2019 09:50:01 GMT):
@bilalahmed Referring to the first-network, where is the --init-required flag defined? @CorentinPacaud let me try.

rohitsethi (Mon, 15 Apr 2019 09:56:52 GMT):
Hi all, I have been exploring hyperledger fabric from couple of weeks and tried 1.) A network( 2 organisations) setup without using docker to go through all the binary tools and their respective config files. 2.) fabric shim package to write chaincodes( supplychain etc.) 3.) fabric-contract-api package. 4.) NodeSDK to interact with network(creating channels,install and instantiate chaincode etc.) But after spending so much time my final question to the community: *Is hyperledger fabric production ready ?*

rohitsethi (Mon, 15 Apr 2019 09:57:33 GMT):
If yes please point me to some real time projects

sahilgoel (Mon, 15 Apr 2019 10:06:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DFR4yfniepQKX3Zpr) @itg1996 working fine for me '{"function":"create","Args":["'$id'"]}'

rohitsethi (Mon, 15 Apr 2019 10:16:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tTGtJukzXjajqjbvK) @dave.enyeart could you please share your views on this?

mrudav.shukla (Mon, 15 Apr 2019 10:50:53 GMT):
How do we set Locality, State, Country and Organisation attributes of X509 certificates for the user identities? Using affiliation, we're able to attach OU attribute. And also Common Name(CN). But other attributes for the user remains empty. While Issuer portion of the certificate is set successfully. SO: https://stackoverflow.com/questions/55687562/setting-pem-attributes-for-user-identities-in-hyperledger-fabric

mrudav.shukla (Mon, 15 Apr 2019 10:58:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2e6X2AdtPW39YADZ5) @CorentinPacaud I believe setting the policies for this Org should do. You can restrict actions of reading/writing using Readers and Writers policies. These policies are set in 'configtx.yaml' during network setup.

mrudav.shukla (Mon, 15 Apr 2019 11:00:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=L8q4ZZEes4hwjmvMR) @JorgeNavarro Going by this information: https://hyperledger-fabric.readthedocs.io/en/release-1.4/Fabric-FAQ.html#security-access-control, the orderer does not save any information. It just creates the blocks and orders them.

mrudav.shukla (Mon, 15 Apr 2019 11:02:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7umxMzYSLSNzPzAXy) @garunkumar450 Are you using any sdk or issuing peer commands?

JorgeNavarro (Mon, 15 Apr 2019 11:07:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dxTEar7XujYGHvC8y) @mrudav.shukla And how we know that both orders are ordering transactions? In transactions, Do we need to point only one of them or need to point both?

mrudav.shukla (Mon, 15 Apr 2019 11:29:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SHmbStdyXuMTXzakr) @JorgeNavarro In a basic setup, one orderer setup using kafka cluster should suffice.

ribjethgnis (Mon, 15 Apr 2019 12:04:28 GMT):
why there is need to deploy hl composer on hyperledger fabric ? both composer and fabric seems do the same work ?

florianc (Mon, 15 Apr 2019 12:06:02 GMT):
There is not need to use composer with Fabric. Composer is just a layer on top of fabric to help developers focus on business logic. Composer does not do the same as fabric does, because as I said, it is just a layer on top of fabric.

mrudav.shukla (Mon, 15 Apr 2019 12:12:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eqNvzMyFRgAGeCL3G) @ribjethgnis Basically to invoke and query chaincode fabric gives peer commands. However, to utilise these peer commands within your application, you'll need some form of API that utilises these commands. These APIs are available with SDKs (Node, Java, Go) and with Hyperledger Composer. Thus, Composer acts as an abstraction to invoke transactions on the Fabric network.

mrudav.shukla (Mon, 15 Apr 2019 12:12:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eqNvzMyFRgAGeCL3G) @ribjethgnis Basically to invoke and query chaincode, fabric gives peer commands. However, to utilise these peer commands within your application, you'll need some form of API that utilises these commands. These APIs are available with SDKs (Node, Java, Go) and with Hyperledger Composer. Thus, Composer acts as an abstraction to invoke transactions on the Fabric network.

ribjethgnis (Mon, 15 Apr 2019 12:16:23 GMT):
@mrudav.shukla thanks for the rply . as i understood composer helps in invoking query/transaction on peers of fabric network . what i did actually i m trying to create a new fabric network so

ribjethgnis (Mon, 15 Apr 2019 12:20:02 GMT):
i generated cryptographic material using crpytogen for 3 orgs 3 peers each with 1 orderer node. then using configtx.yml generated, what should i do next . i m trying to write the docker-compose file but i have confusion should i write once docker-compose file or differenct compse files for peers,couchdb ,orderer,ca . i tried doing it but it not showing anyoutput while starting the docker . somwhere in working directory and volumne section i got consfused beacuse what to mention there . should i keep that as default value like etc/hyperledger/peer .

mrudav.shukla (Mon, 15 Apr 2019 12:26:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=esYZbo65gEjf4DdQh) @ribjethgnis Composer does not have to do anything with the creation of fabric network.

ribjethgnis (Mon, 15 Apr 2019 13:22:50 GMT):
than wats the difference between Composer business network and Hyperledger Fabric network then ?

florianc (Mon, 15 Apr 2019 13:24:47 GMT):
https://stackoverflow.com/a/45506238/6213883

Abrara (Mon, 15 Apr 2019 13:54:03 GMT):
Has joined the channel.

DawoodJehangir (Mon, 15 Apr 2019 15:39:37 GMT):
Can we only throw exceptions from chaincode? e.g. if nothing exists in the ledger then I am returning null as of now. But the variable which gets this null value in my nodeSDK doesn't go inside the specific 'if' condition. What might be causing this?

JohnR (Mon, 15 Apr 2019 15:42:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xX3HZnP5voHpg9CzY) @ribjethgnis Composer is an abstraction layer on top of fabric

JohnR (Mon, 15 Apr 2019 15:43:23 GMT):
In theory you could just take any blockchain solution and put it under composer, I think however nobody ever implemented it

JosefButts (Mon, 15 Apr 2019 15:50:54 GMT):
Has joined the channel.

Alecgilchrist (Mon, 15 Apr 2019 15:53:00 GMT):
Has joined the channel.

florianc (Tue, 16 Apr 2019 06:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SSrazFQ6EdtyoMSn6) @DawoodJehangir I don't really understand what you mean. But (at least on my side), when a getState fails, (key does not exist), using a try catch, it goes directly into the catch (obviously). You could handle the error thrown in the catch block. (either in a "general one" (for all the function) or in a small one that just handles your getState function.

florianc (Tue, 16 Apr 2019 06:47:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SSrazFQ6EdtyoMSn6) @DawoodJehangir I don't really understand what you mean. But (at least on my side), when a getState fails, (key does not exist), using a try catch, it goes directly into the catch (obviously). You could handle the error thrown in the catch block. (either in a "general one" (for all the function) or in a small one that just handles your getState function. (with chaincode written in Nodejs, I guess (hope?) there is an equivalent in golang)

umarmw (Tue, 16 Apr 2019 06:53:26 GMT):
anyone knows how this works: zero knowledge proofs (ZKP)

DawoodJehangir (Tue, 16 Apr 2019 07:09:09 GMT):
@florianc I am posting my code in case you have a better understanding. What happens is that, the code probably goes in the try catch block even if the key does not exist. Plus, I also have another try catch block on my client side (nodeSDK - from where I query chaincode) and it goes in that catch block as well. For example, if the key does not exist then "some-error-occured-in-getting-car" is printed. (CHECK THE CODE BELOW) I want to return null in case a key does not exist. And then I have a condition which checks if null is returned. But it always goes in the catch block at client side. I hope you have got it now. CHAINCODE: ``` async queryCar(ctx, carNumber) { try { const carAsBytes = await ctx.stub.getState(carNumber); if (!carAsBytes || carAsBytes.length === 0) { return null; } return carAsBytes.toString('utf8'); } catch (err) { throw new Error('error-querying-car-contract'); } } ``` Code from client side: ``` var result = await contract.evaluateTransaction('queryCar', key); if (result!=null){ result = result.toString(); result = JSON.parse(result); //console.log("\n\nTransaction in Javascript object form:\n"); result = JSON.parse(result); //console.log(result); return result; } else { return "car-does-not-exist"; } } catch (error) { var err = `${error}`; console.error(`Failed to evaluate transaction: ${error}`); //return err; return "some-error-occured-in-getting-car"; } ```

AlongGod (Tue, 16 Apr 2019 07:18:48 GMT):
Has joined the channel.

AlongGod (Tue, 16 Apr 2019 07:19:22 GMT):
Did anyone encounter the same following warn? 2019-04-16 14:11:18.321 WARN 14196 --- [ool-22-thread-3] o.h.fabric.sdk.PeerEventServiceClient : PeerEventServiceClient{id: 7, channel: mychannel, peerName: peer0.org2.example.com, url: grpc://192.168.60.192:7051} Channel mychannel connect time exceeded for peer eventing service peer0.org2.example.com, timed out at 5000 ms.

AlongGod (Tue, 16 Apr 2019 07:19:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZPqiQJpx76Wj2oP5v) Hey, does anyone know how to find out the cause of the warning and error? ``` ``` 2019-04-16 14:11:18.321 WARN 14196 --- [ool-22-thread-3] o.h.fabric.sdk.PeerEventServiceClient : PeerEventServiceClient{id: 7, channel: mychannel, peerName: peer0.org2.example.com, url: grpc://192.168.60.192:7051} Channel mychannel connect time exceeded for peer eventing service peer0.org2.example.com, timed out at 5000 ms.```org.hyperledger.fabric.sdk.exception.TransactionException: Channel mychannel, send transactions failed on orderer OrdererClient{id: 6, channel: mychannel, name: orderer.example.com, url: grpc://192.168.60.190:7050}. Reason: timeout after 600000 ms. at org.hyperledger.fabric.sdk.OrdererClient.sendTransaction(OrdererClient.java:223) ```

AlongGod (Tue, 16 Apr 2019 07:20:38 GMT):
I upgrade the fabric version from 1.0 to 1.4 , the peer eventing service is really confusing to me!

florianc (Tue, 16 Apr 2019 07:24:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CfhvPbtDuRGboKvQA) @DawoodJehangir I think the flow is the following: SDK: try evaluateTransaction Chaincode: try getState => ERROR catch return ERROR SDK: try => ERROR catch error I think that because of the try catch in your chaincode, you will never get into the length check of carAsBytes. What happens if you getState without the try catch?

Lorem (Tue, 16 Apr 2019 07:49:50 GMT):
Hey, can someone give me some good tutorials or descriptions on how to create my own config-files for the cryptogen and/or the configtxgen tool? I feel like not fully understanding what I'm doing, when I just edit existing files...

AlongGod (Tue, 16 Apr 2019 08:14:10 GMT):
Did anyone have an idea what's wrong? `org.hyperledger.fabric.sdk.exception.TransactionException: Channel mychannel, send transactions failed on orderer OrdererClient{id: 6, channel: mychannel, name: orderer.example.com, url: grpc://192.168.60.190:7050}. Reason: timeout after 600000 ms. at org.hyperledger.fabric.sdk.OrdererClient.sendTransaction(OrdererClient.java:223)`

ahmadraza (Tue, 16 Apr 2019 08:14:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tTGtJukzXjajqjbvK) @rohitsethi Can Anyone Answer it. I want to ask same question?

ahmadraza (Tue, 16 Apr 2019 08:14:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tTGtJukzXjajqjbvK) @rohitsethi Can Anyone Answer it. I want to ask same question? my use case requirement is millions of assets

BChain_Dev (Tue, 16 Apr 2019 08:24:23 GMT):
Has joined the channel.

BChain_Dev (Tue, 16 Apr 2019 08:25:26 GMT):
hi can anyone help me. I have installed 1.4 .1 version of Fabric....i can see docker images tagged with 1.4.1 ....but where i can find startFabric.sh ?

AlongGod (Tue, 16 Apr 2019 08:25:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZPqiQJpx76Wj2oP5v) I was using fabric java sdk 1.4 and fabric 1.4

MarLu96 (Tue, 16 Apr 2019 08:28:41 GMT):
Has joined the channel.

AlongGod (Tue, 16 Apr 2019 08:29:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=FxDiqfWkw8zMPqstG) @BChain_Dev I think it is in the project "fabric-samples/fabcar". https://github.com/hyperledger/fabric-samples/blob/release-1.4/fabcar/startFabric.sh

MarLu96 (Tue, 16 Apr 2019 08:30:28 GMT):
Hi all, I saw that in Fabric v0.6, there is a PBFT algorithm that is implemented for validating block. My question is the following, what happens if at a moment in time, some node are remotes from the network and form a subnetwork. They will elect a leader and validate their transaction? And will that causes forks? How will this be resolve? Will their transaction be cancelled?

sooyong (Tue, 16 Apr 2019 08:44:45 GMT):
Has joined the channel.

Sarath_Kumar (Tue, 16 Apr 2019 08:58:37 GMT):
balance

AlexIR (Tue, 16 Apr 2019 09:07:11 GMT):
Has joined the channel.

JenishBajracharya (Tue, 16 Apr 2019 09:36:06 GMT):
Hello Everyone, I tried to run multiple orderer service on different VM. I created channel with orderer0.example.com on one VM using " *docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH= /var/hyperledger/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer0.example.com:7050 -c mychannel -f /var/hyperledger/configs/channel.t* " . And when I tried to instantiate the chaincode on second VM using orderer1.example.com, it prints the error *"messageError: error sending transaction for invoke: got unexpected status: NOT_FOUND -- channel does not exist "* . Does it mean I need to create channel with both the orderer ?

mhs22 (Tue, 16 Apr 2019 09:41:23 GMT):
Hi guys, I am really grade 1.4.1 is released. But for upgrading from 1.4 to 1.4.1, all I have to do is change images of each component?

mastersingh24 (Tue, 16 Apr 2019 09:57:26 GMT):
Yes ... although be aware that in 1.4.1 there is no way to migrate from Solo or Kafka to the new Raft ordering service. But other than that, just change the images and you should be all set

Sarath_Kumar (Tue, 16 Apr 2019 10:03:40 GMT):
Hi All, I have a doubt, i have created some assets in two different channels, using org1 identity. Now i am trying to query the assets using Org2 identity. while querying i am receiving access denied error. it is working correctly or not.

DawoodJehangir (Tue, 16 Apr 2019 10:29:18 GMT):
@florianc Thanks a lot for your response. I have removed Try Catch blocks from chaincode and somehow tried to get most out of Try Catch at SDK. Although it's not what I wanted to do. But still it's better than before.

mastersingh24 (Tue, 16 Apr 2019 10:56:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=p3ede9rhvfzQvke9b) @Sarath_Kumar Is Org2 a member of the channels with write access?

Sarath_Kumar (Tue, 16 Apr 2019 11:03:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EE88XQB7PFJHscFba) @mastersingh24 yes, org2 is a member of the channel, how to check the write access?

AlexIR (Tue, 16 Apr 2019 11:22:03 GMT):
Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers! Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers! Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers! Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers!Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers!

AlexIR (Tue, 16 Apr 2019 11:22:14 GMT):
Hey guys, I am new in Hyperledger and looking for a developer suite to easy make chaincode/address the event handler - maybe together with a business process modeling tool - is there such a solution? Cheers!

ronenschafferibm (Tue, 16 Apr 2019 12:06:57 GMT):
Has joined the channel.

JuanSuero (Tue, 16 Apr 2019 16:01:34 GMT):
im getting the following error from Kafka ``` [2019-04-16 15:47:26,406] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server 'zookeeper0-example-com.feature-addkafka-1.svc:2181,zookeeper1-example-com.feature-addkafka-1.svc:2181,zookeeper2-example-com.feature-addkafka-1.svc:2181' with timeout of 6000 ms ``` even though a few seconds before that i get ``` [2019-04-16 15:47:25,129] INFO Opening socket connection to server zookeeper2-example-com.feature-addkafka-1.svc.cluster.local/172.21.16.238:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2019-04-16 15:47:25,130] INFO Socket connection established to zookeeper2-example-com.feature-addkafka-1.svc.cluster.local/172.21.16.238:2181, initiating session (org.apache.zookeeper.ClientCnxn) `` ```

JuanSuero (Tue, 16 Apr 2019 16:01:34 GMT):
im getting the following error from Kafka ``` [2019-04-16 15:47:26,406] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server 'zookeeper0-example-com.feature-addkafka-1.svc:2181,zookeeper1-example-com.feature-addkafka-1.svc:2181,zookeeper2-example-com.feature-addkafka-1.svc:2181' with timeout of 6000 ms ``` even though a few seconds before that i get ``` [2019-04-16 15:47:25,129] INFO Opening socket connection to server zookeeper2-example-com.feature-addkafka-1.svc.cluster.local/172.21.16.238:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2019-04-16 15:47:25,130] INFO Socket connection established to zookeeper2-example-com.feature-addkafka-1.svc.cluster.local/172.21.16.238:2181, initiating session (org.apache.zookeeper.ClientCnxn) `` ``` when i telnet zookeeper0-example-com.feature-addkafka-1.svc 2181 it connects Trying 172.21.92.12... Connected to zookeeper0-example-com.feature-addkafka-1.svc.cluster.local. Escape character is '^]'.

JuanSuero (Tue, 16 Apr 2019 16:20:22 GMT):
im also getting this on the zookeeper 2019-04-16 16:14:37,742 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /172.30.6.33:47020 (no session established for client) 2019-04-16 16:14:37,758 [myid:1] - WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@400] - Cannot open channel to 2 at election address zookeeper1-example-com.feature-addkafka-1.svc/172.21.150.25:3888 java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method)

Switch2Logic (Tue, 16 Apr 2019 18:17:27 GMT):
Hey, my multi org kafka network stopped working after upgrading from 1.2 to 1.4... The orderers keep on crashing any ideas?

Switch2Logic (Tue, 16 Apr 2019 18:18:09 GMT):

Screenshot from 2019-04-16 19-59-11.png

BenHayward (Tue, 16 Apr 2019 23:11:49 GMT):
Has joined the channel.

DarwinHarianto (Wed, 17 Apr 2019 01:13:10 GMT):
I tried to follow this https://medium.com/coinmonks/hyperledger-fabric-setup-with-multiple-peers-and-orderers-with-kafka-542023787a6d when I tried to start services, orderer is not created. how do I get it created?

sooyong (Wed, 17 Apr 2019 01:52:11 GMT):
Can i change transaction header in hyperledger fabric?? i'm using basic-sample network

JuanSuero (Wed, 17 Apr 2019 02:37:23 GMT):
when i run peer channel create i get .... 2019-04-17 02:33:31.498 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later

Dhiraj1990 (Wed, 17 Apr 2019 04:03:48 GMT):
Hello all, How can we create a independent api which can fetch number of network organization & show which organization has done how many wrte operation for a particular peroid of time

DarwinHarianto (Wed, 17 Apr 2019 05:05:26 GMT):
How can I see the logs of transaction that is done by peer?

ribjethgnis (Wed, 17 Apr 2019 05:24:37 GMT):
i hv created new fabric network related files crypto-config.yml , configtx.yml and docker-compose.yml ( 1 orderer 3 orgs 2 peers each ) . what should i do next ? how can i create my own .sh files for starting fabric network . and what after that ?

DarwinHarianto (Wed, 17 Apr 2019 05:54:42 GMT):
how can I read the block at fabric? I want to see what is happening on the block

florianc (Wed, 17 Apr 2019 06:41:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5zukqRw4sTjpaXAYu) @DarwinHarianto This may help: https://fabric-sdk-node.github.io/release-1.4/Channel.html#queryBlock__anchor

SamYuan1990 (Wed, 17 Apr 2019 07:30:06 GMT):
Has joined the channel.

DarwinHarianto (Wed, 17 Apr 2019 07:30:33 GMT):
@florianc how can I use that? is there any example?

florianc (Wed, 17 Apr 2019 07:32:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dYeSqwsH5gbijRHHt) @DarwinHarianto This is simple nodejs. So run it in nodejs script

SamYuan1990 (Wed, 17 Apr 2019 07:37:05 GMT):
Hi guys, I have a question about node sdk implementation. I meet `Error: CKR_ATTRIBUTE_VALUE_INVALID:19` When using node sdk with HSM. With help of debug info, I am sure I had conneted with HSM device. I noticed the error reports from CryptoSuite_PKCS11(bccsp_pkcs11.js) _pkcs11GenerateECKeyPair function Futher checked with pkcs11 https://github.com/PeculiarVentures/pkcs11js#example-4 I found our implementation is different with pkcs11 sample. I tried pkcss11 sample and it passed on my env. Could someone suggestion? error log: 2019-04-17T07:33:55.256Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Failed to generate key for enrollment due to error [Error: CKR_ATTRIBUTE_VALUE_INVALID:19 at Error (native) C_GenerateKeyPair:920], stack=Error: Failed to generate key for enrollment due to error [Error: CKR_ATTRIBUTE_VALUE_INVALID:19 at Error (native) C_GenerateKeyPair:920] at FabricCAServices.enroll (/home/icpcrypto/sam/project/node_modules/fabric-ca-client/lib/FabricCAServices.js:219:12) at at runMicrotasksCallback (internal/process/next_tick.js:121:5) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)

SamYuan1990 (Wed, 17 Apr 2019 07:38:11 GMT):
I am not sure if the error is due to my pkcs11 version (for npm) mismatch with our SDK. or it is just a bug?

davidkel (Wed, 17 Apr 2019 08:05:25 GMT):
@SamYuan1990 I'm guessing it's the HSM you are talking to that returns that error code, can you check your HSM logs ? Also what HSM are you using ?

SamYuan1990 (Wed, 17 Apr 2019 08:08:57 GMT):
@davidkel the HSM is provided by other people.(in my company) and the CKR_ATTRIBUTE_VALUE_INVALID is defined https://www.cryptsoft.com/pkcs11doc/v211/pkcs11__all_8h.html I am not sure if I am able to find HSM log or not. do you think HSM log will help?

Switch2Logic (Wed, 17 Apr 2019 08:14:00 GMT):
Has anyone got LDAP To work with Hyperledger Fabric CA. I am having trouble setting it up?

Switch2Logic (Wed, 17 Apr 2019 08:14:00 GMT):
Has anyone got LDAP To work with Hyperledger Fabric CA. I am having trouble setting it up? Should we use LDAP?

AlongGod (Wed, 17 Apr 2019 08:35:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NYMGknaLHsXTAyECd) Today I was really tired of solveing this problem and afraid of not qualified doing the work I am doing. So I prayed to my GOD, help me to be calm. Then I turned off all the firewalls, and it turns out to work. Finally I found out it was kaspersky that cause the error!

MarLu96 (Wed, 17 Apr 2019 08:59:30 GMT):
Has left the channel.

Randyshu2018 (Wed, 17 Apr 2019 09:00:20 GMT):

Clipboard - April 17, 2019 4:59 PM

Lorem (Wed, 17 Apr 2019 09:35:11 GMT):
Hey, I'm trying to build a network with 3 orgs, (2, 3 and 1 peers) and everything's fine, but my third peer from second org wont start docker container. I've configured him like all the other peers. Does anyone know how to fix this or what could cause this issue?

BChain_Dev (Wed, 17 Apr 2019 09:37:38 GMT):
Any sample web application using Node SDK ?

Lorem (Wed, 17 Apr 2019 10:07:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2XjqmPQcuchpACL4C) Found it. Has been a simple typo :sweat_smile:

Lana2019 (Wed, 17 Apr 2019 10:21:04 GMT):
Hi, I'd like to know does hyperledger still support composer?

Randyshu2018 (Wed, 17 Apr 2019 10:27:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P8cPDqFjc43mNQbRQ) @BChain_Dev https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer

salibalea (Wed, 17 Apr 2019 10:49:04 GMT):
Hello. Does anyone know if Raft works with hyperledger fabric version 1.4.1? Do I need to change anything in configtx.yaml for it to work? I tried with the command suggested in Building your first network: ../bin/configtxgen -profile SampleMultiNodeEtcdRaft -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block but it keeps saying orderer type: solo

agc (Wed, 17 Apr 2019 10:50:32 GMT):
Hello everyone! I'm trying to add a new peer to my channel (1 org, 1 peer) with the following command (launched from the new peer in v1.4.0): ../bin/cryptogen extend --config=./crypto-config.yaml (same network config plus 1 peer) But the following error appears: "x509: certificate private key does not implement crypto.Signer" Do you know what the problem might be? Thank you!

garunkumar450 (Wed, 17 Apr 2019 10:58:54 GMT):
peer channel update -f config.pb -c mychannel -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

garunkumar450 (Wed, 17 Apr 2019 10:58:54 GMT):
peer channel update -f config.pb -c mychannel -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Getting Error is Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 3, but got version 4

garunkumar450 (Wed, 17 Apr 2019 10:58:54 GMT):
peer channel update -f config.pb -c mychannel -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Getting Error is Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 3, but got version 4 already 3 organization are added in channel

garunkumar450 (Wed, 17 Apr 2019 10:59:59 GMT):
while update 4th organization in channel

garunkumar450 (Wed, 17 Apr 2019 11:00:56 GMT):
is there any way to remove organization from channel without distrubing the network

florianc (Wed, 17 Apr 2019 11:07:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3dzC4CkyaZtvard9r) @Lana2019 Yes. But keep in mind that composer will only be updated to support further version of Fabric. It won't get any major update.

CorentinPacaud (Wed, 17 Apr 2019 14:01:38 GMT):
Hello, Which policy do I need to write if I want a Org to be authorized to WRITE in the blockchain (only Read) ? I only see OR/AND and not NOT.

Switch2Logic (Wed, 17 Apr 2019 14:26:35 GMT):
Hey guys is it possible to invoke chaincode func from another chaincode func? Say updating a users details can you after doing that send details to an say audit chaincode to record the event?

Switch2Logic (Wed, 17 Apr 2019 14:28:34 GMT):

Screenshot from 2019-04-17 16-27-40.png

Switch2Logic (Wed, 17 Apr 2019 14:28:34 GMT):

Screenshot from 2019-04-17 16-27-40.png

florianc (Wed, 17 Apr 2019 14:44:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xPYAyoBHFjNwMKsvE) @Switch2Logic yes it is. However, be careful. You can only throw one and only one event per chaincode context. Meaning that if CCA invokes CCB but both try to emit an event, only the last one (unless I am mistaken) will be taken into account.

TBdori (Wed, 17 Apr 2019 14:48:03 GMT):
peer channel create -o orderer.example.com:7050 -c channelall -f /var/hyperledger/configs/channelall.tx gives me "Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'channelall', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: attempted to set key [Value] /Channel/Application/Org1MSP/AnchorPeers to version 1, but key does not exist" .

TBdori (Wed, 17 Apr 2019 14:48:08 GMT):
i can't figure out

TBdori (Wed, 17 Apr 2019 14:48:57 GMT):
any idea ?

JuanSuero (Wed, 17 Apr 2019 14:50:02 GMT):
when i run peer channel create i get ... ``` [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later ``` but my Kafka seems fine i have 4 kafka, 3 zookeeper, 3 orderers and 3 peers

JoshFodale (Wed, 17 Apr 2019 16:50:46 GMT):
anyone successfully instantiated a signed chaincode package before? I'm creating my package with this command: ``` peer chaincode package -l node -n mycc -p /mycc -v v1 -s -S -i "OR('org1MSP.admin')" /mycc/ccpack.out ``` It creates, signs, and installs with no problems, but I always receive this error when I instantiate: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy ``` There are no errors in the chaincode or peer logs. I'm not sure what else I can do to try and satisfy the policy, as the package is already signed by the admin of org1MSP.

JoshFodale (Wed, 17 Apr 2019 17:06:42 GMT):
if I create an un-signed package (with no -s, -S, or -i parameters), it works fine

SaphiraBjartskular (Wed, 17 Apr 2019 18:51:40 GMT):
It would be super great if the fabric admins could add some documentation around the QueryStateIterator object here: https://fabric-shim.github.io/release-1.4/fabric-shim.StateQueryIterator.html dealing with this object has been a nightmare and there is no documentation on how to use it

yacovm (Wed, 17 Apr 2019 18:52:11 GMT):
this is node SDK

yacovm (Wed, 17 Apr 2019 18:52:18 GMT):
well, node chaincode

yacovm (Wed, 17 Apr 2019 18:52:30 GMT):
@SaphiraBjartskular tell that in #fabric-sdk-node

SaphiraBjartskular (Wed, 17 Apr 2019 18:53:12 GMT):
Ok thanks the bot directed me here, will post there

yacovm (Wed, 17 Apr 2019 18:53:13 GMT):
i can't believe there is a site called `fabric-shim.github.io` and it is about node chaincode.

SaphiraBjartskular (Wed, 17 Apr 2019 18:53:53 GMT):
yes and it is has no info regarding the QueryStateIterator

yacovm (Wed, 17 Apr 2019 18:54:55 GMT):
no, that's not it - there are all kinds of shims, not only node.js shim

SaphiraBjartskular (Wed, 17 Apr 2019 18:59:26 GMT):
there are golang and java shims to my knowledge... but I am curious about using the querystateiterator in node.

medikent (Wed, 17 Apr 2019 20:17:31 GMT):
How long is the review period for v2.0.0-alpha before it becomes ready?

medikent (Wed, 17 Apr 2019 20:17:31 GMT):
How long is the review period for v2.0.0-alpha before it becomes fully released, ready for Prod?

medikent (Wed, 17 Apr 2019 20:38:23 GMT):
From what it looks like in Gerrit each release takes a few months seeming to average three or four. I imagine since this is a major release it might be four to six. Doe that seem reasonable?

Antimttr (Wed, 17 Apr 2019 20:43:14 GMT):
I would hope atleast that long considering 1.4 is supposed to be LTS

medikent (Wed, 17 Apr 2019 20:44:45 GMT):
How can I get involved to help with Fabric 2.0.0?

medikent (Wed, 17 Apr 2019 20:45:04 GMT):
I see a 68% completion status for the current release planning: https://jira.hyperledger.org/secure/Dashboard.jspa?selectPageId=11700

medikent (Wed, 17 Apr 2019 20:45:14 GMT):
I'd like to contribute where possible.

negupta (Wed, 17 Apr 2019 23:16:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GgFZREHuMgk9xsZfF) @JoshFodale You might be interested in using the new chaincode lifecycle introduced in the 2.0 alpha: https://hyperledger-fabric.readthedocs.io/en/master/whatsnew.html

DarwinHarianto (Thu, 18 Apr 2019 05:05:16 GMT):
is there any easy example on how to use node js at fabric? I want to read the block I have comitted

DRSK (Thu, 18 Apr 2019 05:10:56 GMT):
Hi, I am new to fabric and using version 1.4. I want to get events enabled and I tried giving as follows var event_hub = channel.newChannelEventHub('grpc://localhost:7051'); . But this gave following error. Error: Peer with name "grpc://localhost:7051" not assigned to this channel. Tried adding peer to channel but it didn't work. Can anyone help me out?

MuhammedHafil (Thu, 18 Apr 2019 05:39:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GgFZREHuMgk9xsZfF) @JoshFodale 1. `peer chaincode package -n ${CHAINCODE_NAME} -v ${VERSION} -l ${LANGUAGE} -p ${CC_SRC_PATH} ${PACKAGENAME}.pak` 2. `peer chaincode install ${PACKAGENAME}.pak` 3. `peer chaincode instantiate -o $ORDERER_ADDRESS --tls true --cafile $ORDERER_CA -C $CHANNEL_NAME -n $CHAINCODE_NAME -l ${LANGUAGE} -v $VERSION -c '{"Args":[]}' -P "OR ('org1MSP.admin')" `

MuhammedHafil (Thu, 18 Apr 2019 05:39:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GgFZREHuMgk9xsZfF) @JoshFodale 1. `peer chaincode package -n ${CHAINCODE_NAME} -v ${VERSION} -l ${LANGUAGE} -p ${CC_SRC_PATH} ${PACKAGENAME}.pak` 2. `peer chaincode install ${PACKAGENAME}.pak` 3. `peer chaincode instantiate -o $ORDERER_ADDRESS --tls true --cafile $ORDERER_CA -C $CHANNEL_NAME -n $CHAINCODE_NAME -l ${LANGUAGE} -v $VERSION -c '{"Args":[]}' -P "OR ('org1MSP.admin')" `

garunkumar450 (Thu, 18 Apr 2019 06:28:25 GMT):
How to remove joinging organization from channel

ahmadraza (Thu, 18 Apr 2019 06:54:14 GMT):
Error: Failed to connect before the deadline URL:grpcs://localhost:7051 Anyone can help?

MuhammedHafil (Thu, 18 Apr 2019 07:10:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zDaebHbMwFuYCkYMq) @ahmadraza peer container ls down. check docker log

ahmadraza (Thu, 18 Apr 2019 07:21:26 GMT):

Screenshot from 2019-04-18 12-21-21.png

ahmadraza (Thu, 18 Apr 2019 07:21:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rfrNhNmYNFECrcGwD) @MuhammedHafil Containers are up

ahmadraza (Thu, 18 Apr 2019 07:23:08 GMT):
what i do is add that line to volumes - /var/hyperledgerr/peer0:/var/hyperledger/production to persist data it gives timeout error without that line its working

ahmadraza (Thu, 18 Apr 2019 07:23:08 GMT):
@MuhammedHafil what i do is add that line to volumes - /var/hyperledgerr/peer0:/var/hyperledger/production to persist data it gives timeout error without that line its working

MuhammedHafil (Thu, 18 Apr 2019 07:24:42 GMT):
which timeout?

MuhammedHafil (Thu, 18 Apr 2019 07:24:42 GMT):
i meant, at which step?

ahmadraza (Thu, 18 Apr 2019 07:25:41 GMT):
means Failed to connect before the deadline?

ahmadraza (Thu, 18 Apr 2019 07:25:41 GMT):
means Failed to connect before the deadline? Error: Failed to connect before the deadline URL:grpcs://localhost:7051

ahmadraza (Thu, 18 Apr 2019 07:27:19 GMT):
when i want to join channel

ahmadraza (Thu, 18 Apr 2019 07:27:48 GMT):
channel is created and when i run command to join channel it gives error

ribjethgnis (Thu, 18 Apr 2019 07:29:51 GMT):

docker-compose.PNG

MuhammedHafil (Thu, 18 Apr 2019 07:30:09 GMT):
@ahmadraza wait for some time after creating channel

ribjethgnis (Thu, 18 Apr 2019 07:30:27 GMT):
i have 3 orgs , 1 org with 1 peer , 2nd org with 2 peers and 3orgs with three peeers.

MuhammedHafil (Thu, 18 Apr 2019 07:30:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=T68MkSnbjv5QAmPHQ) @ribjethgnis docker container ls or docker ps -a

ahmadraza (Thu, 18 Apr 2019 07:31:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dniLPHgnCzMbjXHR8) @MuhammedHafil i will try

ribjethgnis (Thu, 18 Apr 2019 07:34:35 GMT):

dockerimages.PNG

ahmadraza (Thu, 18 Apr 2019 07:40:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dniLPHgnCzMbjXHR8) @MuhammedHafil Same error

saikumar3349 (Thu, 18 Apr 2019 07:54:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w4q54yeKN4cLqznng) @ribjethgnis I think 3rd organization is exited. check with docker ps -a command

ribjethgnis (Thu, 18 Apr 2019 08:23:15 GMT):

docker ps -a.PNG

saikumar3349 (Thu, 18 Apr 2019 08:31:59 GMT):
could you please show your docker-compose file

saikumar3349 (Thu, 18 Apr 2019 08:32:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LwnT3uQoEh6sATz4H) @ribjethgnis could you please show your docker-compose file

salibalea (Thu, 18 Apr 2019 08:43:08 GMT):
Hello, how can I configure yaml files to use Raft in hyperledger fabric 1.4.1?

albanlienart (Thu, 18 Apr 2019 08:49:40 GMT):
Has joined the channel.

Randyshu2018 (Thu, 18 Apr 2019 08:58:26 GMT):

Clipboard - April 18, 2019 4:56 PM

sahilgoel (Thu, 18 Apr 2019 09:12:45 GMT):
Hi

sahilgoel (Thu, 18 Apr 2019 09:14:02 GMT):
Suppose we have 3 organisations and i want to endorse one transaction by Org 1 and Org2 And other transaction endorsed by Org2 and Org3 without having separate channel is it possible?

Lorem (Thu, 18 Apr 2019 09:34:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TNdDGzmPTyfxAgvMc) @sahilgoel You can set up endorsement policies for each chaincode on your channel. So, you can just use two different chaincodes, one with an endorsement policy for Org 1 and Org2 and the other with a policy including Org 2 and Org 3

sahilgoel (Thu, 18 Apr 2019 09:52:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A7WXqhWPF69QsTAnz) @Lorem I can't do it with one chaincode?

sahilgoel (Thu, 18 Apr 2019 09:55:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=A7WXqhWPF69QsTAnz) @Lorem As i have multiple transactions which will follow this kind of pattern and have multiple organisations to endorse. So i can not create multiple chaincodes for each combination

ribjethgnis (Thu, 18 Apr 2019 10:27:06 GMT):
@saikumar3349 its done now . thanks .. i did some silly mistake .

saikumar3349 (Thu, 18 Apr 2019 10:36:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BhoLBWCLDnMWJ72Fd) @ribjethgnis ok can you tell that mistake'

saikumar3349 (Thu, 18 Apr 2019 10:38:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TNdDGzmPTyfxAgvMc) @sahilgoel hey. you can use private data collections to do that

sahilgoel (Thu, 18 Apr 2019 10:55:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qma4XxkL7yD9RzsKX) @saikumar3349 Private data is used to hide some data from organisations but i want to the organisation skip endorsement only. Data will be synced with them

Lorem (Thu, 18 Apr 2019 11:15:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6qCh2SueXxPZ4oEFu) @sahilgoel Seems like I don't quite understand your problem. Do you just want any two Orgs to endorse the transactions or do you want different endorsement policies for different smart contracts in the same chaincode? What do you mean by " one transaction by Org 1 and Org2 And other transaction endorsed by Org2 and Org3"? Shall it be the same sort of transaction and when will it be determined who has to endorse the specific transaction?

florianc (Thu, 18 Apr 2019 11:15:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ehp788venQZ9uNava) @sahilgoel You can then change endorsement policies.

droyer (Thu, 18 Apr 2019 12:09:58 GMT):
Has joined the channel.

droyer (Thu, 18 Apr 2019 12:10:15 GMT):
Hello, it is possible to execute a different program on each nodes and if yes how we proceed ? Thank you

sgaddam (Thu, 18 Apr 2019 12:49:57 GMT):
Hi, When I was working on HLF1.4 Private Data Access Control, i am getting the below error. I explain my setup. I have two orgs and each have 1 peer. Org1 is member of the private collection and Org2 is not. Installation, Instantiation and Invokation were working well and successful. I also tried to query the data for readPrivateIdentityData and readIdentityData. I am able to get the results for readIdentityData in both peers. But in readPrivateIdentityData, i am getting the below error in the Org1 Peer which is member of the private collection. In Org2 Peer, i am getting the expected message. FYI, i used memberOnlyRead=false in the collection configuration. When i use memberOnlyRead=true as a peer level ACL, its working perfectly. Error : Failed to handle GET_STATE. error: private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x2b, TxNum:0x0}, Private data version = (*version.Height)(nil) please help me if anyone works on this.

saikumar3349 (Thu, 18 Apr 2019 12:54:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w2drAT4duPpQrDGJH) @sgaddam i'm not sure about it. but when you had modified the .json file for cl. you need to upgrade the chaincode.

saikumar3349 (Thu, 18 Apr 2019 12:54:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=w2drAT4duPpQrDGJH) @sgaddam i'm not sure about it. but when you had modified the .json file for acl. you need to upgrade the chaincode.

JoshFodale (Thu, 18 Apr 2019 15:39:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=t2ksfnemZvWLuZxfj) @negupta Thanks, I will check that out.

JoshFodale (Thu, 18 Apr 2019 15:42:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DxqEEAaQoEc28TQ7Q) @MuhammedHafil Right, that works for me, but I can't get it to work when I try to specify an instantiation policy or sign it (-i, -s, or -S arguments). The certificates that get appended onto the package file match my admin certificate, but it still says it fails the instantiation policy

JoshFodale (Thu, 18 Apr 2019 15:42:27 GMT):
but thank you!

ufosky (Thu, 18 Apr 2019 16:41:01 GMT):
Has joined the channel.

Antimttr (Thu, 18 Apr 2019 16:52:41 GMT):
@MuhammedHafil doesn't the chaincode have to be pushed to the peers first? I know when i install chaincode i have to specify a list of peers to install it to before instatiating it w/the orderers

rohit_kumar (Thu, 18 Apr 2019 18:05:53 GMT):
Has joined the channel.

rohit_kumar (Thu, 18 Apr 2019 18:06:50 GMT):
Can anyone answer my Node.js chaincode problem? https://stackoverflow.com/questions/55750863/debug-my-already-instanitated-nodejs-chaincode

rohit_kumar (Thu, 18 Apr 2019 18:08:02 GMT):
Is there any possible way to edit my chaincode source without upgrading it each time?

Antimttr (Thu, 18 Apr 2019 18:09:20 GMT):
I've never found a way around that, infact i couldnt get the upgrade to work so i just reboot (reset) the hyperledger each time

Antimttr (Thu, 18 Apr 2019 18:09:38 GMT):
Have you put it into a bash script yet? that really helps on the time

rohit_kumar (Thu, 18 Apr 2019 18:10:35 GMT):
it means each time you delete all the docker containers and start everything from scratch?

Antimttr (Thu, 18 Apr 2019 18:10:44 GMT):
pretty much

Antimttr (Thu, 18 Apr 2019 18:10:48 GMT):
but its fast

Antimttr (Thu, 18 Apr 2019 18:10:53 GMT):
cuz i just do ./rebootNetwork.sh

rohit_kumar (Thu, 18 Apr 2019 18:11:15 GMT):
@Antimttr can you give me that script?

Antimttr (Thu, 18 Apr 2019 18:11:25 GMT):
its only for balance transfer

Antimttr (Thu, 18 Apr 2019 18:11:29 GMT):
i can paste it here though

rohit_kumar (Thu, 18 Apr 2019 18:11:47 GMT):
@Antimttr Yes i will edit it

Antimttr (Thu, 18 Apr 2019 18:12:04 GMT):
i did some tricks to actualy store my token that the balance transfer demo uses

Antimttr (Thu, 18 Apr 2019 18:12:31 GMT):
``` #!/usr/bin/env bash docker rm -f $(docker ps -aq) docker rmi -f $(docker images | grep dev | awk '{print $3}') rm -rf fabric-client-kv-org[1-2] ./runApp.sh ```

Antimttr (Thu, 18 Apr 2019 18:12:34 GMT):
thats the reboot one

Antimttr (Thu, 18 Apr 2019 18:12:42 GMT):
runApp is part of balance-transfer

rohit_kumar (Thu, 18 Apr 2019 18:13:25 GMT):
@Antimttr imttr Thank you so much. You made my day!

Antimttr (Thu, 18 Apr 2019 18:13:29 GMT):
theres more

Antimttr (Thu, 18 Apr 2019 18:14:00 GMT):
but its all api calls specific to the balance transfer clietn implementation

rohit_kumar (Thu, 18 Apr 2019 18:14:24 GMT):
Its okay now i will code my own shell script

Antimttr (Thu, 18 Apr 2019 18:14:45 GMT):
i write my tokens out to another shell script

rohit_kumar (Thu, 18 Apr 2019 18:15:03 GMT):
I just want to know , is there any option to debug nodejs chaincode without upgrading it

Antimttr (Thu, 18 Apr 2019 18:15:04 GMT):
and then run that script in other scripts so they're their in the env when i need em

rohit_kumar (Thu, 18 Apr 2019 18:15:28 GMT):
okay thank you

Antimttr (Thu, 18 Apr 2019 18:16:50 GMT):
``` #!/usr/bin/env bash CC_SRC_PATH="$PWD/artifacts/src/github.com/example_cc/node" LANGUAGE=node echo "POST request Enroll on Org1 ..." echo ORG1_TOKEN=$(curl -s -X POST \ http://localhost:4000/users \ -H "content-type: application/x-www-form-urlencoded" \ -d 'username=User%20Name&orgName=Org1') echo $ORG1_TOKEN ORG1_TOKEN=$(echo $ORG1_TOKEN | jq ".token" | sed "s/\"//g") echo echo "ORG1 token is $ORG1_TOKEN" echo echo "POST request Enroll on Org2 ..." echo ORG2_TOKEN=$(curl -s -X POST \ http://localhost:4000/users \ -H "content-type: application/x-www-form-urlencoded" \ -d 'username=Barry&orgName=Org2') echo $ORG2_TOKEN ORG2_TOKEN=$(echo $ORG2_TOKEN | jq ".token" | sed "s/\"//g") echo echo "ORG2 token is $ORG2_TOKEN" echo export ORIG1_TOKEN=$ORG1_TOKEN export ORIG2_TOKEN=$ORG2_TOKEN echo "ORG1_TOKEN=$ORG1_TOKEN" > tokens.sh echo "ORG2_TOKEN=$ORG2_TOKEN" >> tokens.sh echo "export ORIG1_TOKEN=$ORG1_TOKEN" >> tokens.sh echo "export ORIG2_TOKEN=$ORG2_TOKEN" >> tokens.sh ```

Antimttr (Thu, 18 Apr 2019 18:17:37 GMT):
tehn at the top of all your scripts where you need a token you just put `. login.sh` and it injects it into the environment for that script

Antimttr (Thu, 18 Apr 2019 18:17:37 GMT):
tehn at the top of all your scripts where you need a token you just put `. tokens.sh` and it injects it into the environment for that script

rohit_kumar (Thu, 18 Apr 2019 18:18:25 GMT):
okay i will edit this script according to my requirement. Thanks

Antimttr (Thu, 18 Apr 2019 18:18:36 GMT):
np

davidkel (Thu, 18 Apr 2019 18:25:15 GMT):
@rohit12 1 @Antimttr You can use the standard approach of running the peer in development mode, install it to the peer, start your chaincode and get it to connect the the peer, then instantiate the chaincode. Then you can make changes to your chaincode, stop the chaincode process and start it again and continue testing. Pretty sure there is doc on the hyperledger fabric docs about running a peer in development mode

davidkel (Thu, 18 Apr 2019 18:25:15 GMT):
@rohit12 1 @Antimttr You can use the standard approach of running the peer in development mode, install any chaincode to the peer, start your chaincode and get it to connect the the peer, then instantiate the chaincode. Then you can make changes to your chaincode, stop the chaincode process and start it again and continue testing. Pretty sure there is doc on the hyperledger fabric docs about running a peer in development mode

davidkel (Thu, 18 Apr 2019 18:25:15 GMT):
@rohit12 1 @Antimttr You can use the standard approach of running the peer in development mode, install any chaincode to the peer, start your chaincode in a terminal and get it to connect the the peer, then instantiate the chaincode. Then you can make changes to your chaincode, stop the chaincode process and start it again and continue testing. Pretty sure there is doc on the hyperledger fabric docs about running a peer in development mode

Antimttr (Thu, 18 Apr 2019 18:26:30 GMT):
wouldnt you have to install it on all peers that need to sign off on the chaincode

Antimttr (Thu, 18 Apr 2019 18:26:43 GMT):
like for balance-transfer that'd be 4 different peers

davidkel (Thu, 18 Apr 2019 18:27:39 GMT):
@Antimttr No. I use a basic single peer/single org env for developing chaincode

Antimttr (Thu, 18 Apr 2019 18:28:04 GMT):
i see

rohit_kumar (Thu, 18 Apr 2019 18:28:12 GMT):
yes ofcourse in devlopment mode we need to install, instantiate and invoke our chaincode first time. But suppose you want to edit your chaincode then you will do this whole process (install, upgrade, invoke) process again which take so much of time.

davidkel (Thu, 18 Apr 2019 18:28:47 GMT):
@rohit12 1 in development mode all I do is stop my chaincode process, modify the code and start it again

Antimttr (Thu, 18 Apr 2019 18:28:51 GMT):
i need to write an upgrader into my client

Antimttr (Thu, 18 Apr 2019 18:29:02 GMT):
not sure that the java sdk has any examples of that processs

rohit_kumar (Thu, 18 Apr 2019 18:29:18 GMT):
@davidkel How can it be done? Can you give me any link

davidkel (Thu, 18 Apr 2019 18:29:37 GMT):
@rohit12 1 @Antimttr Also you could use VSCode and look at the IBM Blockchain extension which has an inbuilt debugger

davidkel (Thu, 18 Apr 2019 18:30:48 GMT):
@rohit12 1 The hyperledger fabric docs should have something about running a peer in development mode and this is the purpose of development mode, so that you can run your chaincode in a terminal window, stop/start and modify as needed to test it

Antimttr (Thu, 18 Apr 2019 18:30:49 GMT):
that's cool, hadn't heard of that

Antimttr (Thu, 18 Apr 2019 18:30:59 GMT):
i have visual studio but never used vscode

rohit_kumar (Thu, 18 Apr 2019 18:31:24 GMT):
I am learning blockchain from this video https://www.youtube.com/watch?v=dzwR0dwzXNs He is upgrading its chaincode without using upgrade command

rohit_kumar (Thu, 18 Apr 2019 18:59:32 GMT):
i have edited my nodejs code which is kept in chaincode folder and restarted "dev-peer0.org1.example.com-mycc-1.0 " docker container. But still it is not modifed

rohit_kumar (Thu, 18 Apr 2019 18:59:41 GMT):
@davidkel

davidkel (Thu, 18 Apr 2019 19:07:16 GMT):
@rohit12 1 in development mode your chaincode doesn't run in a docker container. you run it as a normal process

davidkel (Thu, 18 Apr 2019 19:07:16 GMT):
@rohit12 1 in development mode your chaincode doesn't run in a docker container. you run it as a normal process. suggest you look for guidance in the hyperledger fabric docs on developing chaincode

davidkel (Thu, 18 Apr 2019 19:07:16 GMT):
@rohit12 1 in development mode your chaincode doesn't run in a docker container. you run it as a normal process. suggest you look for guidance in the hyperledger fabric docs on developing chaincode, https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#testing-using-dev-mode

davidkel (Thu, 18 Apr 2019 19:07:16 GMT):
@rohit12 1 in development mode your chaincode doesn't run in a docker container. you run it as a normal process. suggest you look for guidance in the hyperledger fabric docs on developing chaincode, https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#testing-using-dev-mode needs adapting for a node.js chaincode env but it describes the principles

BenHayward (Thu, 18 Apr 2019 22:17:51 GMT):
Got a production system SNAFU and struggling to find where to begin with fixing it. Disk ran out of space and the server crashed, on reboot our start scripts will not bring up the peers

BenHayward (Thu, 18 Apr 2019 22:17:59 GMT):
Any help would be incredibly appreciated

BenHayward (Thu, 18 Apr 2019 22:21:16 GMT):
``` 2019-04-18 21:52:01.836 UTC [eventhub_producer] start -> INFO 00a Event processor started 2019-04-18 21:52:01.836 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00b Entering computeChaincodeEndpoint with peerHostname: peer0.shared.site.io 2019-04-18 21:52:01.836 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00c Exit with ccEndpoint: peer0.shared.sharednodes.io:7052 2019-04-18 21:52:01.836 UTC [nodeCmd] createChaincodeServer -> WARN 00d peer.chaincodeListenAddress is not set, using peer0.shared.site.io:7052 fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f3d32def259] ``` is the error from the peer container

BenHayward (Thu, 18 Apr 2019 22:21:16 GMT):
``` 2019-04-18 21:52:01.836 UTC [eventhub_producer] start -> INFO 00a Event processor started 2019-04-18 21:52:01.836 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00b Entering computeChaincodeEndpoint with peerHostname: peer0.shared.site.io 2019-04-18 21:52:01.836 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00c Exit with ccEndpoint: peer0.shared.site.io:7052 2019-04-18 21:52:01.836 UTC [nodeCmd] createChaincodeServer -> WARN 00d peer.chaincodeListenAddress is not set, using peer0.shared.site.io:7052 fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f3d32def259] ``` is the error from the peer container

BenHayward (Thu, 18 Apr 2019 22:22:17 GMT):
``` 2019-04-18 22:21:30.392 UTC [common/deliver] deliverBlocks -> WARN 1c42 [channel: <>] Rejecting deliver request for <> because of consenter error ``` Orderer container does this occasionally

yacovm (Thu, 18 Apr 2019 22:29:21 GMT):
@BenHayward your disk ran out of space.... is it still out of spacE?

yacovm (Thu, 18 Apr 2019 22:29:21 GMT):
@BenHayward your disk ran out of space.... is it still out of space?

BenHayward (Thu, 18 Apr 2019 22:30:58 GMT):
Nope increased, got plenty of it now

BenHayward (Thu, 18 Apr 2019 22:32:09 GMT):
Every other container spins up fine. Got 3 kafka's, 2 couches, 2 zookeepers, and there should be 2 peers and an orderer.

BenHayward (Thu, 18 Apr 2019 22:35:53 GMT):
``` docker exec -e "CORE_PEER_LOCALMSPID=SharedMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@[[networkname]]/msp" peer0.shared.[[networkname]].io peer channel create -o orderer.[[networkname]].io:7050 -c [[channel]] -f /etc/hyperledger/configtx/channel.tx ``` which usually works, tells me that a container doesn't exist - but I cant find any container with that ID. I've searched the system and have no idea where its getting the container id from

BenHayward (Thu, 18 Apr 2019 22:36:21 GMT):

Clipboard - April 18, 2019 11:36 PM

medikent (Thu, 18 Apr 2019 23:16:22 GMT):
Regarding chaincode namespaces how do things work with new versions of the same chaincode? Are chaincode namespaces scoped only to the name of the chaincode or is each new chaincode version also a separate namespace?

yacovm (Thu, 18 Apr 2019 23:23:30 GMT):
same namespace

yacovm (Thu, 18 Apr 2019 23:23:44 GMT):
only the "latest" version can write to the namespace

yacovm (Thu, 18 Apr 2019 23:23:55 GMT):
the old version's writes are ignored

walmon (Thu, 18 Apr 2019 23:30:18 GMT):
@rohit12 1 we use hot reload with an env created with Hurley https://github.com/worldsibu/hurley just start with the debug flag and then if you use Convector repackage `npm run cc:package` your code (or if you use native javascript just refresh the folder with the mapped code)

walmon (Thu, 18 Apr 2019 23:30:37 GMT):
That way changes are automatic without reinstantiating

BenHayward (Thu, 18 Apr 2019 23:38:17 GMT):
Any help on the above great appreciated - can dump logs just didnt want to do so publicly

BenHayward (Thu, 18 Apr 2019 23:39:19 GMT):
Appreciate though that its a damn tricky one

PaulA (Fri, 19 Apr 2019 01:16:10 GMT):
Has joined the channel.

Randyshu2018 (Fri, 19 Apr 2019 02:10:46 GMT):
hi,Any sample for noutof policy defined in configtx.yaml?

JulianSolarte (Fri, 19 Apr 2019 02:50:26 GMT):
Does exist the concept of Transaction in database(unit of work) but in Hyperledger Fabric?

sahilgoel (Fri, 19 Apr 2019 04:06:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DaCeHQzAp2iHHMEbr) @Lorem Yeah Do you just want any two Orgs to endorse the transactions or do you want different endorsement policies for different smart contracts in the same chaincode? Yes, you can say that. Suppose i have three functions Add User, Add Order, Add Subscription, i will write these functions in one chaincode and then i install it on 3 Organisations i.e Org 1, Org 2, Org 3. If i instantiate it, then i can specify the policy say AND(Org1.peer, Org2.peer,Org3.peer) But i wanted to set it like Add user function should be endorsed by Org 1 and Org 2, Add Order should be endorsed by Org 2 and Org 3.

rangeshsripathi (Fri, 19 Apr 2019 05:29:15 GMT):
Hi All, I have multi org setup orderer & peer(Org1) in a box (VM) while the other peer(Org2) is other box(VM). .. I have installed the Chaincode and all looks fine in both Org... but when i try to kill the chaincode in Org2 and try to invoke the chaincode container fails to start , but the same behaviour is not observed in Org1 .. Any clue why Org2 chaincode conatiner fails to start...? There is nothing getting logged in Peer or orderer..

rangeshsripathi (Fri, 19 Apr 2019 05:29:15 GMT):
Hi All, I have multi org setup orderer & peer(Org1) in a box (VM) while the other peer(Org2) is other box(VM). .. I have installed the Chaincode and all looks fine in both Org... but when i try to kill the chaincode in Org2 and try to invoke the chaincode container fails to start , but the same behaviour is not observed in Org1 .. Any clue why Org2 chaincode conatiner fails to start...? There is nothing getting logged in Peer or orderer.. (Hyperledger version 1.2 )

Sana_Nawazkhan (Fri, 19 Apr 2019 05:35:45 GMT):
Has joined the channel.

Sana_Nawazkhan (Fri, 19 Apr 2019 05:36:00 GMT):
_initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:7051 I get this error message when trying to run node issue,js

Sana_Nawazkhan (Fri, 19 Apr 2019 05:36:20 GMT):
can anybody suggest what needs to be done?

kavyasri (Fri, 19 Apr 2019 05:37:23 GMT):
Hi, I am trying to create the multiple channel i.e defined in configtx.yaml file after that while creating the genesis block am getting error like this:

kavyasri (Fri, 19 Apr 2019 05:38:29 GMT):
kavya@kavya-ThinkPad-T530:~/fabric-dev-servers/fabric-scripts/hlfv12/composer$ configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2019-04-19 10:58:51.493 IST [common.tools.configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2019-04-19 10:58:51.494 IST [common.tools.configtxgen] main -> INFO 002 Loading configuration 2019-04-19 10:58:51.494 IST [common.tools.configtxgen.localconfig] Load -> PANI 003 Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced 2019-04-19 10:58:51.494 IST [common.tools.configtxgen] func1 -> PANI 004 Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced [recovered] panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000107970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e248, 0xc000463804, 0xc000040620, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e248, 0xc000040620, 0x69, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e250, 0xc000463938, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9 panic(0xd4fc40, 0xc0003976b0) /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000107970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e228, 0xc000463c04, 0xc0000404d0, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e228, 0xc0000404d0, 0x69, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e230, 0xc000463db8, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7fffbd14e093, 0xe, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:275 +0x41f main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f

kavyasri (Fri, 19 Apr 2019 05:39:16 GMT):
can any one help me ??

sgaddam (Fri, 19 Apr 2019 06:04:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9qvWDtFhRsjN4eQD3) @saikumar3349 @saikumar3349 Thanks for the reply. I have already done that. And also tried to deploy it as a new chaincode as well. But, no luck. I suspect that whenever i mention *memberOnlyRead=false* in the config file, the private data will not be accessable to any member (either authorized or non-authorized). Not sure on this. I think we need to write a logic in chaincode to provide access at granular level. Can somebody help me in this regard.

kavyasri (Fri, 19 Apr 2019 06:47:21 GMT):
hi, while creating the genesis block getting error like this:

kavyasri (Fri, 19 Apr 2019 06:47:42 GMT):
configtxgen -profile ComposerOrdererGenesis -outputBlock ./composer-genesis.block 2019-04-19 12:13:59.900 IST [common.tools.configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2019-04-19 12:13:59.900 IST [common.tools.configtxgen] main -> INFO 002 Loading configuration 2019-04-19 12:13:59.900 IST [common.tools.configtxgen.localconfig] Load -> PANI 003 Error reading configuration: While parsing config: yaml: line 138: found character that cannot start any token 2019-04-19 12:13:59.900 IST [common.tools.configtxgen] func1 -> PANI 004 Error reading configuration: While parsing config: yaml: line 138: found character that cannot start any token panic: Error reading configuration: While parsing config: yaml: line 138: found character that cannot start any token [recovered] panic: Error reading configuration: While parsing config: yaml: line 138: found character that cannot start any token

Randyshu2018 (Fri, 19 Apr 2019 06:54:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8kCcRn7DFcybQFABs) @kavyasri maybe anything error occurred with line 138

kavyasri (Fri, 19 Apr 2019 08:20:54 GMT):
@Randyshu2018 in that i added org2

itsNebula (Fri, 19 Apr 2019 09:28:09 GMT):
Hi guys, I have cto, acl and logic files of my business network. How can I instantiate these as a chaincode to my fabric network?

itsNebula (Fri, 19 Apr 2019 09:28:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jtrpsbHpvCkZv7FTm) @kavyasri Can you show the line 138 ?

sathyai (Fri, 19 Apr 2019 12:29:35 GMT):
Has joined the channel.

sathyai (Fri, 19 Apr 2019 12:29:51 GMT):
Errata in BYFN tutorial. Under the section Start your network, subsection Invoke, i.e. where the chaincode is invoked to move 10 from a to b, the peerAddress for peer0.org1.example.com is given as 9051 instead of 7051. Please correct this.

sathyai (Fri, 19 Apr 2019 12:29:51 GMT):
Errata in BYFN tutorial documentation. Under the section Start your network, subsection Invoke, i.e. where the chaincode is invoked to move 10 from a to b, the peerAddress for peer0.org1.example.com is given as 9051 instead of 7051. Please correct this.

colasga (Fri, 19 Apr 2019 15:07:45 GMT):
Hey guys I'm trying to call qscc but I have this error : [invoke][mychannel]: [Unmapped policy for qscc/invoke], how should I add the policies for this channel ?

colasga (Fri, 19 Apr 2019 15:09:43 GMT):
Okay nevermind I found out alone :)

ruairih (Fri, 19 Apr 2019 15:52:24 GMT):
Has anybody tried using the Fabric 2.0 Alpha Fabtoken with Private Data?

gregnotso (Fri, 19 Apr 2019 15:54:57 GMT):
@ruairih yes, but not yet with couchDB

ruairih (Fri, 19 Apr 2019 16:08:32 GMT):
@gregnotso how does it work? Is it possible to have a token only in a private data set?

gregnotso (Fri, 19 Apr 2019 16:43:56 GMT):
i haven't done much but when inspecting the block the quantities seem hidden, so at least that part seems private, in my mind best to confirm it once on couchDB

ruairih (Fri, 19 Apr 2019 16:55:26 GMT):
is there something you have to do explicitly @gregnotso or do you just not include other orgs in the config?

ruairih (Fri, 19 Apr 2019 16:55:50 GMT):
i am experimenting with it now

ruairih (Fri, 19 Apr 2019 16:56:14 GMT):
its not clear from the documentation that this shouldbe the case

gregnotso (Fri, 19 Apr 2019 16:58:46 GMT):
i would play with yaml file configurations and try to add a setting for couchDB, while making sure my docker containers could get stopped and restarted without problems

RishabhSingh (Fri, 19 Apr 2019 17:19:49 GMT):
Has joined the channel.

RishabhSingh (Fri, 19 Apr 2019 17:21:18 GMT):
Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles after I deploy my application

RishabhSingh (Fri, 19 Apr 2019 17:21:40 GMT):
Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric Can I add roles in hyperledger fabric after deploying our application on the hyperledger fabric

negupta (Fri, 19 Apr 2019 20:29:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xTHfdRMRvwdoPQLum) @sathyai This has been corrected in the latest version of the documetnation. You may be using older documentation with a newer sample.

Saiva4u (Sat, 20 Apr 2019 09:16:43 GMT):
Has joined the channel.

GowriR (Sat, 20 Apr 2019 12:49:00 GMT):
Hi, I am using fabric 1.4.1 with raft am unable to get the orderers running - i followed the examples with 5 orderer nodes # TickInterval is the time interval between two Node.Tick invocations. # if it is commented - panic: [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration # fails if with "ms" at generating genesis block # if no "ms" and plain 500 fails too - 019-04-20 12:41:12.955 UTC [orderer.commmon.multichannel] newChainSupport -> PANI 455 [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration #panic: [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration TickInterval: 500 what should i be doing here? Orderers dont get created. Is this a bug? The same bug was in JIRA but now it is closed. https://jira.hyperledger.org/browse/FAB-14451?workflowName=FAB:+Bug+Workflow&stepId=6

itsNebula (Sat, 20 Apr 2019 19:27:28 GMT):
Hello again, I would like to ask a question about ledger continuity. I deployed business network modifying basic-network example. I have two machine, machine one has an orderer, a ca and a peer onself. The other has a peer on itself. I configured the configuration that two machines has sync the information on the network. Also the peers are joined in the same channel. What i want to learn is how to ensure system is never downs? If the machine1 fails, how can machine 2 supplies continuiety of the blockchain network? Can someone help me to understand the infrastructure? Thanks a lot.

PallabPaul (Sat, 20 Apr 2019 19:29:41 GMT):
Hi everyone I was wondering if anyone has taken the certified hyperledger fabric administrator exam offered by thelinuxfoundation and if they can give me some advice and tips on it.

AshishAcharya (Sun, 21 Apr 2019 04:25:53 GMT):
Has joined the channel.

AshishAcharya (Sun, 21 Apr 2019 04:26:05 GMT):
Hi Everyone , I am trying to configure the hyperledger-explorer and connect it to a multi org network. while trying to start the explorer and sync it i am getting the below error :(node:32525) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead 2019-04-21T04:06:17.068Z - error: [Channel.js]: Error: 2 UNKNOWN: Stream removed <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> Error: Failed to discover ::Error: 2 UNKNOWN: Stream removed at Channel._initialize (/home/ashish/blockchain/blockchain-explorer/node_modules/fabric-client/lib/Channel.js:347:11) at Received kill signal, shutting down gracefully Closed out connections

AnilSingh (Sun, 21 Apr 2019 05:21:50 GMT):
Has joined the channel.

AnilSingh (Sun, 21 Apr 2019 05:23:15 GMT):
Hello Pallab ,

AnilSingh (Sun, 21 Apr 2019 05:24:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gxoGaru4PAMnjqJxA) @PallabPaul Hello Pallab,

AnilSingh (Sun, 21 Apr 2019 05:27:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gxoGaru4PAMnjqJxA) @PallabPaul Hello Pallab, I am also planning for same and tried getting details from many folks. It seems to be one of the toughest certification in Blockchain space. I spoke to many people but surprisingly didn't get anyone CHFA certified, and most of them failed in exam but it was great speaking them on why they failed. The exam is completely practical and you can open fabric docs also. It will test every angle be it setting up a new environment or changing the configuration of existing network. So make sure you have good practical hands on with HFL

AnilSingh (Sun, 21 Apr 2019 05:32:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kNTeCRM3tyZzyg7Xe) @itsNebula It can not as you do not ave any orderer service up and running, that's why you should always have an order service with a cluster of orders.

AnilSingh (Sun, 21 Apr 2019 05:33:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qTQpQZntiiLur9eCn) in your setup, it's a single point of failure.

PallabPaul (Sun, 21 Apr 2019 07:19:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=SX6mm3TDJuHejBCxK) @AnilSingh Thank you so much for the info. Would you be able to help connect me with some of the people you have talked to who took the exam. I would love to ask them some questions as well.

itsNebula (Sun, 21 Apr 2019 09:53:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qTQpQZntiiLur9eCn) @AnilSingh Then in every machine, I need an orderer in addition to the peer. But there will be additional channels if I have multiple orderer. Am I wrong?

yousaf (Sun, 21 Apr 2019 15:03:41 GMT):
Hi everyone. What are the minimum hardware requirements for a peer in HLF to be used in production environment?

hyperion101010 (Sun, 21 Apr 2019 15:42:44 GMT):
Has joined the channel.

hyperion101010 (Sun, 21 Apr 2019 15:42:58 GMT):
hi there I am working on this intern proposal Running Web Assembly Smart Contracts in Fabric

hyperion101010 (Sun, 21 Apr 2019 15:43:18 GMT):
mbauer

hyperion101010 (Sun, 21 Apr 2019 15:43:51 GMT):
is anyone of this person present here Morgan Bauer, mbauer@us.ibm.com, @MHBauer, IBM Jay Guo, guojiannan@cn.ibm.com, @guoger, IBM Swetha Repakula, srepaku@us.ibm.com, @swetha, IBM

swetha (Sun, 21 Apr 2019 15:43:51 GMT):
Has joined the channel.

hyperion101010 (Sun, 21 Apr 2019 15:44:10 GMT):
I would like to get more context on the idea they have posted

swetha (Sun, 21 Apr 2019 15:46:37 GMT):
@hyperion101010 what is your question?

hyperion101010 (Sun, 21 Apr 2019 15:47:13 GMT):
where will we be using web assembly in here https://wiki.hyperledger.org/display/INTERN/Running+Web+Assembly+Smart+Contracts+in+Fabric

hyperion101010 (Sun, 21 Apr 2019 15:47:32 GMT):
will it be a support along side evmcc or replacement of evm

swetha (Sun, 21 Apr 2019 15:48:36 GMT):
It will be another option of a support contract runtime

swetha (Sun, 21 Apr 2019 15:48:36 GMT):
It will be another option of a smart contract runtime

swetha (Sun, 21 Apr 2019 15:48:48 GMT):
It is not a replacement of the evm

hyperion101010 (Sun, 21 Apr 2019 15:49:29 GMT):
one min I am phrasing all of my doubts and will be in touch in 5 minutes

kevinyap (Mon, 22 Apr 2019 02:15:38 GMT):
Has joined the channel.

AnilSingh (Mon, 22 Apr 2019 03:51:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9MfAbsLAgbrDLowtH) @itsNebula No necessarily on every machine or every peers of an Org (may be 2 or more from each Org would be okay'ed decentralization). What are we trying to do here is having an ORDERER service with a cluster of nodes working as orderer node, we are not really creating multiple orderer SERVICE. Hope this answer your question.

mistogans (Mon, 22 Apr 2019 04:23:13 GMT):
Has joined the channel.

mistogans (Mon, 22 Apr 2019 04:25:41 GMT):
Hi guys, I'm having trouble with the Gossip Protocol on my fabric network. I have 22 Containerised peers running on a single VM, but the membership view for the online peers from one of my peers seems to change all the time. Overtime I realised some of the peers stop using the gossip (through the logs) functions. Anyone ever seen this issue? I'm wondering if it's resource related, or there's some behaviour for peers that I've not considered

zacscoding (Mon, 22 Apr 2019 05:52:43 GMT):
hi i have a question about producing block in orderer with kafka assume that there are two orderes and then who can produce block after subscribe orderered messages ?

zacscoding (Mon, 22 Apr 2019 06:25:46 GMT):
In my guess, two orderer have same consumer group id and then produce blocks after subscribe messages respectively. is right ?

sharmavikram (Mon, 22 Apr 2019 06:43:07 GMT):
Has joined the channel.

sharmavikram (Mon, 22 Apr 2019 06:46:21 GMT):
Hi Guys, I have setup a multi node kafka ordering service. While testing it with FabricClient(NodeSDK) 1.2, in case Orderer '0' is down, it switches automatically to Orderer '1'. But when i use FabricClient(NodeSDK) 1.3, it fails to execute transaction if the Orderer '0' is down and does not automatically switch to Orderer '1'.

DarwinHarianto (Mon, 22 Apr 2019 06:55:00 GMT):
has anyone tried the fabric docs? I think there is a typo at https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html inside query function

DarwinHarianto (Mon, 22 Apr 2019 06:56:13 GMT):
query: ``` peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:9051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:9051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}' ``` for peer0.org1.example.com it should be 7051 instead of 8051

DarwinHarianto (Mon, 22 Apr 2019 06:56:13 GMT):
query: ``` peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:9051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:9051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}' ``` for peer0.org1.example.com it should be 7051 instead of 9051

mhs22 (Mon, 22 Apr 2019 07:02:29 GMT):
Hi guys, I set my network with multiple orgs and multiple peers but there is a problem, which is each peer shows warning that disconnecting to other peer regulary when gossiping

mhs22 (Mon, 22 Apr 2019 07:05:41 GMT):
```2019-04-22 07:02:54.601 UTC [gossip.discovery] expireDeadMembers -> WARN bc131 Entering [f0268aa2c9a215a34c7f8404b04bf3a6ff5847a8641ebba6356b913e648cef5f] 2019-04-22 07:02:54.620 UTC [gossip.discovery] expireDeadMembers -> WARN bc132 Closing connection to Endpoint: peer-pgmwa-org1fd8-org:7051, InternalEndpoint: , PKI-ID: f0268aa2c9a215a34c7f8404b04bf3a6ff5847a8641ebba6356b913e648cef5f, Metadata: 2019-04-22 07:02:54.620 UTC [gossip.discovery] expireDeadMembers -> WARN bc133 Exiting 2019-04-22 07:02:54.620 UTC [gossip.discovery] expireDeadMembers -> WARN bc134 Entering [05636f6521917f48190ad5561c484fd7b733dc69675e190c75ee7fe191742614] 2019-04-22 07:02:54.620 UTC [gossip.discovery] expireDeadMembers -> WARN bc135 Closing connection to Endpoint: peer-azboo-org1-org:7051, InternalEndpoint: peer-azboo-org1-org:7051, PKI-ID: 05636f6521917f48190ad5561c484fd7b733dc69675e190c75ee7fe191742614, Metadata: 2019-04-22 07:02:54.620 UTC [gossip.discovery] expireDeadMembers -> WARN bc136 Exiting```

mhs22 (Mon, 22 Apr 2019 07:05:54 GMT):
```04-22 07:03:02.268 UTC [comm.grpc.server] 1 -> INFO bc146 unary call completed {"grpc.start_time": "2019-04-22T07:03:02.268Z", "grpc.service": "gossip.Gossip", "grpc.method": "Ping", "grpc.request_deadline": "2019-04-22T07:03:04.268Z", "grpc.peer_address": "10.255.233.193:51878", "grpc.code": "OK", "grpc.call_duration": "53.009µs"} 2019-04-22 07:03:03.164 UTC [gossip.comm] func1 -> WARN bc147 peer-efedp-org1fd8-org:7051, PKIid:9ef0682f6396998652d7cbc8e170fa5f5c174bc4e0f15c080edd09383df07d70 isn't responsive: EOF 2019-04-22 07:03:03.164 UTC [gossip.comm] func1 -> WARN bc148 peer-iljmt-sallynat10-org:7051, PKIid:f83edef7e483c6ff899ee82ec65da90a6bcbdfacf0915bc271d72edfec897f29 isn't responsive: EOF 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc149 Entering [9ef0682f6396998652d7cbc8e170fa5f5c174bc4e0f15c080edd09383df07d70] 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc14a Closing connection to Endpoint: peer-efedp-org1fd8-org:7051, InternalEndpoint: , PKI-ID: 9ef0682f6396998652d7cbc8e170fa5f5c174bc4e0f15c080edd09383df07d70, Metadata: 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc14b Exiting 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc14c Entering [f83edef7e483c6ff899ee82ec65da90a6bcbdfacf0915bc271d72edfec897f29] 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc14d Closing connection to Endpoint: peer-iljmt-sallynat10-org:7051, InternalEndpoint: , PKI-ID: f83edef7e483c6ff899ee82ec65da90a6bcbdfacf0915bc271d72edfec897f29, Metadata: 2019-04-22 07:03:03.166 UTC [gossip.discovery] expireDeadMembers -> WARN bc14e Exiting 2019-04-22 07:03:03.288 UTC [gossip.comm] func1 -> WARN bc14f peer-nkvgj-org1vp9-org:7051, PKIid:86f8fc47bca42706fa2fd4f1cac4cb4f86431f2938687ecc6943b3660582bcb8 isn't responsive: EOF 2019-04-22 07:03:03.288 UTC [gossip.discovery] expireDeadMembers -> WARN bc150 Entering [86f8fc47bca42706fa2fd4f1cac4cb4f86431f2938687ecc6943b3660582bcb8] 2019-04-22 07:03:03.288 UTC [gossip.discovery] expireDeadMembers -> WARN bc151 Closing connection to Endpoint: peer-nkvgj-org1vp9-org:7051, InternalEndpoint: , PKI-ID: 86f8fc47bca42706fa2fd4f1cac4cb4f86431f2938687ecc6943b3660582bcb8, Metadata: 2019-04-22 07:03:03.288 UTC [gossip.discovery] expireDeadMembers -> WARN bc152 Exiting```

mhs22 (Mon, 22 Apr 2019 07:06:06 GMT):
```2019-04-22 07:03:03.346 UTC [gossip.channel] reportMembershipChanges -> INFO bc153 Membership view has changed. peers went offline: [[peer-iljmt-sallynat10-org:7051 ] [peer-jhgpo-test7-org:7051 ] [peer-nkvgj-org1vp9-org:7051 ] [peer-efedp-org1fd8-org:7051 ]] , peers went online: [[peer-pgmwa-org1fd8-org:7051 ] [peer-azboo-org1-org:7051]] , current view: [[peer-anc03-org1-org:7051] [peer-ezzyd-org1vp9-org:7051 ] [peer-gbelv-sally2-org:7051 ] [peer-kkimg-moonshot17-org:7051 ] [peer-nymbq-moonshot17-org:7051 ] [peer-jufqt-org1pe16-org:7051 ] [peer-hizic-org1-org:7051] [peer-njvjz-eric4-org:7051 ] [peer-qfwxi-org1vp9-org:7051 ] [peer-asixl-sallynat10-org:7051 ] [peer-stgao-org1vp9-org:7051 ] [peer-wbjlq-org1-org:7051] [peer-kllxm-org1ty14-org:7051 ] [peer-lozia-testbin18-org:7051 ] [peer-oahvx-sally2-org:7051 ] [peer-ixrxa-org1pe16-org:7051 ] [peer-khqex-sallynat10-org:7051 ] [peer-mpbjt-lineup6-org:7051 ] [peer-wltkr-sallynat10-org:7051 ] [peer-ltcay-eliejehm12-org:7051 ] [peer-dzjna-markcorp3-org:7051 ] [peer-ytrng-org1vp9-org:7051 ] [peer-uifce-org1vp9-org:7051 ] [peer-pgmwa-org1fd8-org:7051 ] [peer-gxbem-org1vp9-org:7051 ] [peer-azboo-org1-org:7051] [peer-lmtab-test7-org:7051 ] [peer-rlxux-org1vp9-org:7051 ] [peer-oevnu-markcorp3-org:7051 ] [peer-iznyr-org1fd8-org:7051 ] [peer-zuhai-elin5-org:7051 ] [peer-nzmjf-org1vp9-org:7051 ] [peer-anc02-org1-org:7051] [peer-btrfh-eric4-org:7051 ] [peer-lvriq-eric4-org:7051 ] [peer-lgyoc-org1fd8-org:7051 ] [peer-dmugp-elin5-org:7051 ] [peer-vkfma-org1vp9-org:7051 ] [peer-vpfmm-lineup6-org:7051 ] [peer-khoyz-org1ty14-org:7051 ] [peer-gwbfb-sally2-org:7051 ] [peer-tlxdh-testbin18-org:7051 ] [peer-updsa-eliejehm12-org:7051 ]] 2019-04-22 07:03:03.468 UTC [comm.grpc.server] 1 -> INFO bc154 unary call completed {"grpc.start_time": "2019-04-22T07:03:03.468Z", "grpc.service": "gossip.Gossip", "grpc.method": "Ping", "grpc.request_deadline": "2019-04-22T07:03:05.209Z", "grpc.peer_address": "10.255.233.193:51974", "grpc.code": "OK", "grpc.call_duration": "44.184µs"} 2019-04-22 07:03:03.533 UTC [comm.grpc.server] 1 -> INFO bc155 streaming call completed {"grpc.start_time": "2019-04-22T07:02:41.801Z", "grpc.service": "gossip.Gossip", "grpc.method": "GossipStream", "grpc.peer_address": "10.255.233.70:60062", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "21.731384408s"} 2019-04-22 07:03:03.716 UTC [comm.grpc.server] 1 -> INFO bc156 unary call completed {"grpc.start_time": "2019-04-22T07:03:03.716Z", "grpc.service": "gossip.Gossip", "grpc.method": "Ping", "grpc.request_deadline": "2019-04-22T07:03:05.716Z", "grpc.peer_address": "10.255.234.171:50316", "grpc.code": "OK", "grpc.call_duration": "48.649µs"} C2019-04-22 07:03:05.390 UTC [gossip.discovery] getDeadMembers -> WARN bc157 Haven't heard from [6 160 146 72 181 11 228 130 16 27 74 152 115 97 244 8 243 186 194 5 70 217 216 18 183 116 65 58 180 61 122 79] for 36.999641794s```

mistogans (Mon, 22 Apr 2019 07:19:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3CHFmS8QPr2YPcjR6) @mhs22 I have this same issue @mhs22

mistogans (Mon, 22 Apr 2019 07:19:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3CHFmS8QPr2YPcjR6) @mhs22 I have this same issue

duy3991 (Mon, 22 Apr 2019 07:37:43 GMT):
I have a problem, I can't deploy a new bussiness network :(. Help me. Thanks!!!

duy3991 (Mon, 22 Apr 2019 07:38:24 GMT):

Error

duy3991 (Mon, 22 Apr 2019 07:38:24 GMT):

Error

sahilgoel (Mon, 22 Apr 2019 08:38:09 GMT):
I instantiated an chaincode with AND policy say between two organisation. When i invoke the chaincode from CLI then i passed only one peerAddress in the invoke command and it shows me the Invoke is successfully but in the logs shown Endorsement policy failure.

sahilgoel (Mon, 22 Apr 2019 08:38:09 GMT):
I instantiated an chaincode with AND policy say between two organisation. When i invoke the chaincode from CLI then i passed only one peerAddress in the invoke command and it shows me the Invoke is successfully but in the logs shown Endorsement policy failure. I know i had to pass both the organisation peerAddress in the command but why the Invoke command return success with one Address and in logs shows endorsement policy failure. Is it bug or anything else?

sahilgoel (Mon, 22 Apr 2019 08:38:09 GMT):
I instantiated an chaincode with AND policy say between two organisation. When i invoke the chaincode from CLI then i passed only one peerAddress in the invoke command and it shows me the Invoke is successfull but in the logs shown Endorsement policy failure. I know i had to pass both the organisation peerAddress in the command but why the Invoke command return success with one Address and in logs shows endorsement policy failure. Is it bug or anything else?

garunkumar450 (Mon, 22 Apr 2019 08:55:50 GMT):
Opened ledger with id = chpreferences 2019-04-22 06:35:39.502 UTC [gossip.service] updateAnchors -> ERRO 01e Tried joining channel chpreferences but our org( QTL1MSP ), isn't among the orgs of the channel: [VILMSP] , aborting. 2019-04-22 06:35:39.602 UTC [gossip.state] NewGossipStateProvider -> INFO 01f Updating metadata information, current ledger sequence is at = 0, next expected block is = 1 2019-04-22 06:35:39.602 UTC [gossip.gossip] UpdateLedgerHeight -> WARN 020 No such channel [99 104 112 114 101 102 101 114 101 110 99 101 115] 2019-04-22 06:35:39.602 UTC [sccapi] deploySysCC -> INFO 021 system chaincode lscc/chpreferences(github.com/hyperledger/fabric/core/scc/lscc) deployed 2019-04-22 06:35:39.602 UTC [cscc] Init -> INFO 022 Init CSCC 2019-04-22 06:35:39.602 UTC [sccapi] deploySysCC -> INFO 023 system chaincode cscc/chpreferences(github.com/hyperledger/fabric/core/scc/cscc) deployed 2019-04-22 06:35:39.603 UTC [qscc] Init -> INFO 024 Init QSCC 2019-04-22 06:35:39.603 UTC [sccapi] deploySysCC -> INFO 025 system chaincode qscc/chpreferences(github.com/hyperledger/fabric/core/scc/qscc) deployed 2019-04-22 06:35:39.603 UTC [sccapi] deploySysCC -> INFO 026 system chaincode (+lifecycle,github.com/hyperledger/fabric/core/chaincode/lifecycle) disabled 2019-04-22 06:35:39.603 UTC [discovery.lifecycle] DeployedChaincodes -> INFO 027 Chaincode preferences isn't instantiated 2019-04-22 06:35:39.603 UTC [gossip.gossip] UpdateChaincodes -> WARN 028 No such channel [99 104 112 114 101 102 101 114 101 110 99 101 115] 2019-04-22 06:35:39.604 UTC [discovery] NewService -> INFO 029 Created with config TLS: true, authCacheMaxSize: 1000, authCachePurgeRatio: 0.750000 2019-04-22 06:35:39.604 UTC [nodeCmd] registerDiscoveryService -> INFO 02a Discovery service activated 2019-04-22 06:35:39.605 UTC [nodeCmd] serve -> INFO 02b Starting peer with ID=[name:"peer0.qtl1.infotelconnect.com" ], network ID=[dev], address=[peer0.qtl1.infotelconnect.com:7051] 2019-04-22 06:35:39.605 UTC [nodeCmd] serve -> INFO 02c Started peer with ID=[name:"peer0.qtl1.infotelconnect.com" ], network ID=[dev], address=[peer0.qtl1.infotelconnect.com:7051] 2019-04-22 06:35:39.605 UTC [nodeCmd] func8 -> INFO 02d Starting profiling server with listenAddress = 0.0.0.0:6060

garunkumar450 (Mon, 22 Apr 2019 08:56:37 GMT):
while invoking chaincode from one peer

KartikChauhan (Mon, 22 Apr 2019 08:59:24 GMT):
When a transaction's r/w set is sent to committing peers, how do peers perform MVCC verification? Do they check if the values from read set and current values in state db are equal or not or do they verify by any unique id? If they check from the read set, what happens when a transaction's read set is very large?

nikhilshenoy (Mon, 22 Apr 2019 09:02:20 GMT):
Has joined the channel.

AnilSingh (Mon, 22 Apr 2019 11:10:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zLq8LQYWtTfp9t9Xo) @saikumar3349 could you please elaborate on this ? I am under assumption that until 1.4 we can have endorsement policy that can only be defines at chain code level while installing the chaincode.

ZLL (Mon, 22 Apr 2019 11:12:05 GMT):
Has joined the channel.

ahmadraza (Mon, 22 Apr 2019 11:53:04 GMT):

Screenshot from 2019-04-22 16-52-51.png

ahmadraza (Mon, 22 Apr 2019 11:54:12 GMT):
Can anyone please help me in adding another type like Company? when i added here it gives error while running configtxgen

Sarath_Kumar (Mon, 22 Apr 2019 13:15:16 GMT):
Hi All, I am facing issue while invoking transactions. I have 3 different orgs in 3 different vm's. while invoking transaction from org1 it is working. But error while invoking from org2 and org3. https://stackoverflow.com/q/53828171

garunkumar450 (Mon, 22 Apr 2019 13:15:36 GMT):
peer channel list 2019-04-22 12:27:41.010 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: chpreferences peer chaincode list --installed Get installed chaincodes on peer: Name: preferences, Version: 0.5, Path: github.com/chaincode/, Id: 454d25aed5df1af4e70be0988a0f508ce95649e7475fb1e3a0f12e05aa78581e peer chaincode list --instantiated -C chpreferences Error: Error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [chpreferences] creator org [QTL1MSP]

ahmadraza (Mon, 22 Apr 2019 14:25:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WppLa6W5AwaytgMY8) @walmon Do yoy have any idea about this?

ahmadraza (Mon, 22 Apr 2019 14:25:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WppLa6W5AwaytgMY8) @walmon Do yoy have any idea about this? Can anyone please help me in adding another type like Company? when i added here it gives error while running configtxgen

walmon (Mon, 22 Apr 2019 14:29:00 GMT):
These AFIK cannot be changed

spmcnamara (Mon, 22 Apr 2019 15:19:55 GMT):
Hi all. Can anyone point me towards some documentation/description/tutorial for programmatically creating user accounts in HLF? I'm not finding my way to the right stuff.

spmcnamara (Mon, 22 Apr 2019 15:20:34 GMT):
Preferrably Golang, but if the docs are for Node, I can probably interpret.

Antimttr (Mon, 22 Apr 2019 15:28:32 GMT):
@spmcnamara the balance-transfer client api is pretty straightforward and its a nodejs/typescript example

spmcnamara (Mon, 22 Apr 2019 15:29:56 GMT):
Thanks @Antimttr . I'll look at that one right now. I also just found my way to the client.msp package in the SDK which looks like the functionality I'm after.

GirishManchapanahalli (Mon, 22 Apr 2019 15:55:08 GMT):
Has joined the channel.

GirishManchapanahalli (Mon, 22 Apr 2019 15:55:19 GMT):
Storing Application data on blockchain: I have always heard conflicting reports on storing large amounts of data in blockchain. Just want to check what are the best practices around storing any application data in blockchain (hyperledger fabric/ CouchDB). Ex:- If your building a blockchain for a logistics Industry, would you store all the inventory data on the blockchian and any associated data. Thanks in advance.

medikent (Mon, 22 Apr 2019 16:18:18 GMT):
@GirishManchapanahalli you can store a hash of application data on the blockchain in order to minimize the size of the chain.

medikent (Mon, 22 Apr 2019 16:18:58 GMT):
@spmcnamara I am looking for the same thing. Will you send me what you found in the client.msp package?

medikent (Mon, 22 Apr 2019 16:19:21 GMT):
@Antimttr what is the balance-transfer client API? Is it from an example in *fabric-examples*?

Antimttr (Mon, 22 Apr 2019 16:27:40 GMT):
it is

Antimttr (Mon, 22 Apr 2019 16:28:03 GMT):
and it uses the nodejs sdk, it builds a restful api in both typescript and plain nodejs

Antimttr (Mon, 22 Apr 2019 16:28:10 GMT):
so you can see multiple examples of how to do it

medikent (Mon, 22 Apr 2019 20:29:27 GMT):
Why is a consortium defined as "a collection of non-orderer organizations..."? Does this imply that in architecting my network I should make an organization with the sole purpose of being an orderer organization and with no intent to have that orderer organization participate in a channel with peers?

medikent (Mon, 22 Apr 2019 20:30:28 GMT):
Does the design of Fabric suggest to not have orderer organizations participate with peers on channels or is it acceptable and good design to have orderer organizations have peers in channels?

GirishManchapanahalli (Mon, 22 Apr 2019 20:30:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7CakpRjvRGPFxmRP) @medikent how do we store and retrieve the hash. any link to the documentation ?

medikent (Mon, 22 Apr 2019 20:31:52 GMT):
When you use the chaincode method *putState* then you can store a JSON object with the hash of the data you stored off chain. ``` err = stub.PutState(A, []byte(__yourJsonDataWithHash__)) ```

GirishManchapanahalli (Mon, 22 Apr 2019 20:46:13 GMT):
Thanks.!

medikent (Mon, 22 Apr 2019 20:49:54 GMT):
@GirishManchapanahalli Hope that helps :)

walmon (Mon, 22 Apr 2019 20:53:52 GMT):
Anybody with experience doing geospatial queries in couchdb?

medikent (Mon, 22 Apr 2019 21:11:41 GMT):
That would be cool. I only know simple queries ATM.

yacovm (Mon, 22 Apr 2019 21:40:29 GMT):
@medikent don't mix orderers and peers in the same organization.

yacovm (Mon, 22 Apr 2019 21:40:43 GMT):
It's against best practices

medikent (Mon, 22 Apr 2019 21:40:56 GMT):
What problems can arise by mixing them?

medikent (Mon, 22 Apr 2019 21:41:06 GMT):
Also, do you have a reference I could follow on that best practice?

yacovm (Mon, 22 Apr 2019 21:41:08 GMT):
It's like having the supreme court the same people as the government and the senate

yacovm (Mon, 22 Apr 2019 21:41:37 GMT):
and no, but you'll have to trust me on that :)

Antimttr (Mon, 22 Apr 2019 21:42:24 GMT):
@yacovm what do you mean by mix?

Antimttr (Mon, 22 Apr 2019 21:42:36 GMT):
should an organization that has a peer not contain an orderer?

yacovm (Mon, 22 Apr 2019 21:46:43 GMT):
exaftly

Antimttr (Mon, 22 Apr 2019 21:47:40 GMT):
can it be in the same org but different ou?

Antimttr (Mon, 22 Apr 2019 21:53:19 GMT):
this is very confusing

Antimttr (Mon, 22 Apr 2019 21:53:28 GMT):
even the examples of it in the documentation

Antimttr (Mon, 22 Apr 2019 21:53:35 GMT):
example: ``` The organizations RA, RB, RC and RD have decided to jointly invest in a Fabric blockchain network. Organization RA will contribute 3 peers, and 2 client applications of RA will consume the services of the blockchain network. Organization RB will contribute 4 peers and has 1 client application. Organization RC contributes 3 peers and has 2 client applications. Organization RD contributes 4 orderers. Organization RA and RB have decided to form a consortium and exploit a separate application channel between the two of them. Organization RB and RC have decided to form another consortium and also exploit a separate application channel between the two of them. Each application channel has its own policy. ```

Antimttr (Mon, 22 Apr 2019 21:53:39 GMT):
so in this scenario

Antimttr (Mon, 22 Apr 2019 21:53:54 GMT):
what incentive does RD have for joining the hyperledger fabric network in the first place

Antimttr (Mon, 22 Apr 2019 21:54:05 GMT):
if all they do is order blocks, and cannot participate in the network otherwise?

Antimttr (Mon, 22 Apr 2019 21:54:13 GMT):
seems very strange

Antimttr (Mon, 22 Apr 2019 21:55:06 GMT):
why wouldnt the stakeholders in the network want to also participate in the ordering of the blocks?

Antimttr (Mon, 22 Apr 2019 21:55:25 GMT):
it seems like the most central and important of all tasks of an organization

yacovm (Mon, 22 Apr 2019 21:55:33 GMT):
so, in general you want to separate crypto material between entities of different operations

yacovm (Mon, 22 Apr 2019 21:55:47 GMT):
so if one key is stolen, you don't compromise all functions

yacovm (Mon, 22 Apr 2019 21:55:54 GMT):
sort of "not putting all egs in the same basket"

Antimttr (Mon, 22 Apr 2019 21:56:07 GMT):
aye, but in that scenario it seems like they are

Antimttr (Mon, 22 Apr 2019 21:56:14 GMT):
by all agreeing to be ordered by organization RD

Antimttr (Mon, 22 Apr 2019 21:56:31 GMT):
what if RD pulls out of the network? Then the network effectively collapses

Antimttr (Mon, 22 Apr 2019 21:56:50 GMT):
vs sharing orderers amongst all organizations

yacovm (Mon, 22 Apr 2019 21:56:57 GMT):
can you point me to the doc?

Antimttr (Mon, 22 Apr 2019 21:57:06 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.2/network/network.html#creating-a-channel-for-a-consortium

Antimttr (Mon, 22 Apr 2019 21:57:19 GMT):
sorry thats an old doc

Antimttr (Mon, 22 Apr 2019 21:57:21 GMT):
let me get the 1.4

Antimttr (Mon, 22 Apr 2019 21:58:51 GMT):
seems 1.4 doesnt have that scenario

yacovm (Mon, 22 Apr 2019 21:59:03 GMT):
no it's fine i only wanted to see the link so i can look at the git blame

yacovm (Mon, 22 Apr 2019 21:59:40 GMT):
so it can be that RD is like a cloud service

yacovm (Mon, 22 Apr 2019 21:59:52 GMT):
and that document was written at the time of Kafka orderer

yacovm (Mon, 22 Apr 2019 21:59:57 GMT):
which is centralized

Antimttr (Mon, 22 Apr 2019 22:00:05 GMT):
thats what im designing my network around

Antimttr (Mon, 22 Apr 2019 22:00:07 GMT):
kafka

yacovm (Mon, 22 Apr 2019 22:00:11 GMT):
ouch

Antimttr (Mon, 22 Apr 2019 22:00:16 GMT):
thats an issue?

Antimttr (Mon, 22 Apr 2019 22:00:22 GMT):
you prefer raft?

yacovm (Mon, 22 Apr 2019 22:00:55 GMT):
well, most users would prefer to use Raft because it is easier to manage

Antimttr (Mon, 22 Apr 2019 22:00:57 GMT):
i wanted something that gave distributed ordeing

Antimttr (Mon, 22 Apr 2019 22:01:01 GMT):
i see

Antimttr (Mon, 22 Apr 2019 22:01:05 GMT):
well maybe ill switch to raft

Antimttr (Mon, 22 Apr 2019 22:01:07 GMT):
its early days

yacovm (Mon, 22 Apr 2019 22:01:12 GMT):
i.e in Kafka you need to maintain zookeeper

Antimttr (Mon, 22 Apr 2019 22:01:16 GMT):
right

yacovm (Mon, 22 Apr 2019 22:01:21 GMT):
it's a pain

Antimttr (Mon, 22 Apr 2019 22:01:24 GMT):
i see

Antimttr (Mon, 22 Apr 2019 22:01:50 GMT):
ok so in a raft scenario, if you have 4 participating orgs, would it make sense to have a distributed ordering network amongst all particpants?

Antimttr (Mon, 22 Apr 2019 22:01:50 GMT):
ok so in a raft scenario, if you have 4 participating orgs, would it make sense to have a distributed ordering network amongst all participants?

yacovm (Mon, 22 Apr 2019 22:02:07 GMT):
what's an ordering network?

Antimttr (Mon, 22 Apr 2019 22:02:28 GMT):
well its what im calling the kafka/zookeeper distirbuted system

Antimttr (Mon, 22 Apr 2019 22:02:34 GMT):
so i guess it would be replaced by raft

Antimttr (Mon, 22 Apr 2019 22:02:49 GMT):
its the consensus mechanism that the orderers use to agree on block order

yacovm (Mon, 22 Apr 2019 22:07:07 GMT):
I would advise you to use Raft ;)

Antimttr (Mon, 22 Apr 2019 22:08:45 GMT):
right, but even in a raft situation, its still a set of orderers who come to a consensus, if im not mistaken

yacovm (Mon, 22 Apr 2019 22:12:22 GMT):
yes, Raft is a conensus algorithm

Antimttr (Mon, 22 Apr 2019 22:14:46 GMT):
so what would be the problem in having a channel where there was a set of raft orderers which belong to each of the organizations participating in the channel?

Antimttr (Mon, 22 Apr 2019 22:15:38 GMT):
that way no single organization could manipulate the ordering consensus

yacovm (Mon, 22 Apr 2019 22:17:10 GMT):
what's the problem of having the same root CA and root TLS CA?

yacovm (Mon, 22 Apr 2019 22:17:22 GMT):
orderers do something, and peers do something else

yacovm (Mon, 22 Apr 2019 22:17:29 GMT):
it's best to separate them in terms of security

yacovm (Mon, 22 Apr 2019 22:17:51 GMT):
this way if the CA of the peer org is hacked, the orderers are not affected

Antimttr (Mon, 22 Apr 2019 22:31:14 GMT):
thanks for the info, im going to read up on raft, now that its avalaible

DarwinHarianto (Tue, 23 Apr 2019 00:47:37 GMT):
Hello guys, I have a question about Hyperledger concept.

DarwinHarianto (Tue, 23 Apr 2019 00:49:14 GMT):
What keep Hyperledger Fabric safe? If I directly change the db, what will happen to my changed peer's db and other db? If I only have 2 peers, is it safe? what is the minimum number of peer to keep it safe when they are comparing each other ledger?

geethanisp (Tue, 23 Apr 2019 02:15:56 GMT):
Has joined the channel.

geethanisp (Tue, 23 Apr 2019 02:16:26 GMT):
Need help on blockchain explorer . Requirement is to deploy explorer on a machine other than where my blockchain network peers are running. Can anyone help me on how to do this

DarwinHarianto (Tue, 23 Apr 2019 02:47:34 GMT):
What does to mean by multiple kafka/raft service? what does kafka/raft do?

Randyshu2018 (Tue, 23 Apr 2019 02:48:04 GMT):
Hi,expert,I have three new questions very important to me with fabric-ca: 1,How to self-certify(for example: I'm randy and in fabric-ca how to represent it?) 2,How to form certificate-chain(has a self-signed rootCA and then use it to sign ICA ,then use ICA to register enroll and revoke?) 2,How to trace back according to the certificate signature(every transaction has user sign and endorser sign so how to decode this sign to determine who they are)

hnampk (Tue, 23 Apr 2019 02:59:10 GMT):
Has joined the channel.

walmon (Tue, 23 Apr 2019 03:19:52 GMT):
@DarwinHarianto if you mean the couchdb, that never goes back to the peers, so if you change it, it will go back to the original state as soon as the peer syncs, it's one direction (peer)=>(couch)

DarwinHarianto (Tue, 23 Apr 2019 03:41:22 GMT):
@walmon if I happened to change the db, will it ever says error? because it is not the same across all the peer?

DarwinHarianto (Tue, 23 Apr 2019 03:42:03 GMT):
can someone explain to me what is kafka roles against peer and orderer? How the data flow and the security works?

walmon (Tue, 23 Apr 2019 03:48:57 GMT):
@DarwinHarianto you are not changing anything that needs to be notified, couchdb is a readonly selfgenerated db from the peers' state

walmon (Tue, 23 Apr 2019 03:49:28 GMT):
it has nothing to do with syncs

sah (Tue, 23 Apr 2019 03:56:35 GMT):
Hrm, I was of the understanding that changing the CouchDB could be a bad idea, if you are storing private data in there, because once changes are made to the data, the hash in the blockchain would no longer correlate to anything

DarwinHarianto (Tue, 23 Apr 2019 04:55:31 GMT):
@sah yes, I'm just curious what would happen if one person could alter his couchDB. Will he be excluded from the network? or couchDB will re 'heal' itself

DarwinHarianto (Tue, 23 Apr 2019 04:58:32 GMT):

Screen Shot 2019-04-23 at 13.58.10.png

DarwinHarianto (Tue, 23 Apr 2019 04:58:49 GMT):
in that system, I don't understand what does orderer and kafka does

DarwinHarianto (Tue, 23 Apr 2019 04:58:49 GMT):
in that system, I don't understand what does orderer and kafka do

DarwinHarianto (Tue, 23 Apr 2019 04:59:31 GMT):
I read that orderer have a responsibility to take and maintain the chain data over all the peers. if I have orderer that does that, why do I need kafka?

AnilSingh (Tue, 23 Apr 2019 05:12:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xDenfL8mKCY2iEXY7) @DarwinHarianto Kafka is enabler for orderer service ... more precisely it's kafka (in case you choose orderer type as kafka, we have 'Solo' and 'Raft in 1.4' as well) which provides the consensus mechanism used by Orderer service.

AnilSingh (Tue, 23 Apr 2019 05:22:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RjwTjQZZd8Nsh25JF) @DarwinHarianto No, it won't get excluded from Network, it's a local copy and World State (and it will be caught during the endorsement step), usually World state are derived from the ledger (having all the transaction)

DarwinHarianto (Tue, 23 Apr 2019 05:35:34 GMT):
@AnilSingh if I have set Kafka as my ordering service, I pass my data from orderer 1 2 3 to my Kafka 0 1 2 3 (?) then my Kafka will evaluate my chain and return the chain again to orderer(?) then my orderer will return those chain to peers. Is this right?

AnilSingh (Tue, 23 Apr 2019 05:46:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=jcfFu5oMus8bnpJRs) @DarwinHarianto I would request to have a look to this amazing document on topic ... please feel free to raise question here on this in case you see feel that we need clarity ... https://docs.google.com/document/d/19JihmW-8blTzN99lAubOfseLUZqdrB6sBR0HsRgCAnY/edit

AnilSingh (Tue, 23 Apr 2019 05:50:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mNfivwtpsXo2tsxm3) In Fabric, peers from different orgs as specified in the endorsement policy must return the same chaincode execution results for transactions to be validated. If ledger state data had been altered or corrupted (in CouchDB or LevelDB file system) on a peer, then the chaincode execution results would be inconsistent across endorsing peers, the 'bad’ peer/org will be found out, and the application client should throw out the results from the bad peer/org before submitting the transaction for ordering/commit. If a client application tries to submit a transaction with inconsistent endorsement results regardless, this will be detected on all the peers at validation time and the transaction will be invalidated.

DarwinHarianto (Tue, 23 Apr 2019 06:24:03 GMT):
@AnilSingh So OSN is orderer, then they are sending to Kafka. that Tx is from the peers right? That is a really well built explanation, thanks

RonaldReagan (Tue, 23 Apr 2019 07:02:08 GMT):
Hello guys, I am experiencing the following issue with fabric v1.1.0 (distributed docker swarm environment) .After creating the channel and all peers joining, When I do invoke using peer0, the peer0's chaincode container is created immediately. However when I invoke using peer1 the chaincode container is not created. only the message (2 UNKNOWN: error executing chaincode: premature execution - chaincode (chaincode name) launched and waiting for registration). No matter how long I wait it's never created. Any ideas how to tackle this?

ribjethgnis (Tue, 23 Apr 2019 07:25:16 GMT):
while creating channel using the following command

ribjethgnis (Tue, 23 Apr 2019 07:28:28 GMT):
peer channel create -o orderer.example.com:7050 -c channelall -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/channelall.tx —-tls —-cafile $ORDERER_CA i got the error " BAD_REQUEST --error applying config update to existing channel "mychannel" : error authorizing update : error validating readset : proposed update requires that key[Group] /Channel/Application be at version 0 , but it is currently at version 1 what should i do

bilalahmed (Tue, 23 Apr 2019 07:39:24 GMT):
Anyone have an idea about the following error: [core.comm] ServerHandshake -> ERRO 078 TLS handshake failed with error remote error: tls: internal error server=PeerServer remoteaddress=172.29.0.1:52426 P.S: Saw it on Peer Container Logs

AnilSingh (Tue, 23 Apr 2019 08:06:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D6EaGD6qjaNdn63iH) @ribjethgnis are you doing this as part of extending your network or byfn example ?

ribjethgnis (Tue, 23 Apr 2019 08:24:49 GMT):
@AnilSingh no , i have created my own network . and while creating channel i m facing this issue

garunkumar450 (Tue, 23 Apr 2019 08:54:30 GMT):
Error: error endorsing invoke: rpc error: code = Unknown desc = access denied: channel [chpreferences] creator org [QTL1MSP] - proposal response:

ribjethgnis (Tue, 23 Apr 2019 09:24:31 GMT):
1 . how to check how many peers have been joined in a channel ? 2. how to join a particular peer to the channel ?

SonDang (Tue, 23 Apr 2019 09:29:23 GMT):
Has joined the channel.

ahmedahmed (Tue, 23 Apr 2019 09:29:40 GMT):
Has joined the channel.

ahmedahmed (Tue, 23 Apr 2019 09:29:49 GMT):
hi i'm using the evm with fabric and trying to interact with deployed smart contracts using the web3 library i just built a very simple smart contract with a feature to return the sender's address like that function test() view public returns(address){ return msg.sender; } it's working fine but what i don't understand is the address i'm getting in return i never set that address and i don't know from where it's coming can anyone explain that to me and how i can change that address to set addresses i know and want to receive transactions from

SonDang (Tue, 23 Apr 2019 09:33:18 GMT):

Clipboard - April 23, 2019 5:33 PM

SonDang (Tue, 23 Apr 2019 09:39:08 GMT):
Hi you all, I'm newbie in hyperledger fabric. Currently I'm using hyperledger composer playground to create new business network. I have done to create admin card successfully, however when I created new business network I got an error msg like "Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]". What should I do to solve this error? My fabric version is 1.2 and below is my admin card info connection.json{"name":"Son Dang","version":"1.0.0","client":{"organization":"Org1","connection":{"timeout":{"peer":{"endorser":"30","eventHub":"30","eventReg":"30"},"orderer":"30"}}},"orderers":{"orderer.example.com":{"url":"grpc://localhost:7050","grpcOptions":{}}},"peers":{"peer.example.com":{"url":"grpc://localhost:7051","grpcOptions":{},"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true}},"channels":{"sondt1123":{"orderers":["orderer.example.com"],"peers":{"peer.example.com":{}}}},"certificateAuthorities":{"ca-org1":{"url":"http://localhost:7054","caName":null}},"organizations":{"Org1":{"mspid":"Org1MSP","peers":["peer.example.com"],"certificateAuthorities":["ca-org1"]}},"x-type":"hlfv1","x-commitTimeout":100}

SonDang (Tue, 23 Apr 2019 09:39:08 GMT):
Hi you all, I'm newbie in hyperledger fabric. Currently I'm using hyperledger composer playground to create new business network. I have done to create admin card successfully, however when I created new business network I got an error msg like "Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]". What should I do to solve this error? Please advise me, thanks My fabric version is 1.2 and below is my admin card info connection.json{"name":"Son Dang","version":"1.0.0","client":{"organization":"Org1","connection":{"timeout":{"peer":{"endorser":"30","eventHub":"30","eventReg":"30"},"orderer":"30"}}},"orderers":{"orderer.example.com":{"url":"grpc://localhost:7050","grpcOptions":{}}},"peers":{"peer.example.com":{"url":"grpc://localhost:7051","grpcOptions":{},"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true}},"channels":{"sondt1123":{"orderers":["orderer.example.com"],"peers":{"peer.example.com":{}}}},"certificateAuthorities":{"ca-org1":{"url":"http://localhost:7054","caName":null}},"organizations":{"Org1":{"mspid":"Org1MSP","peers":["peer.example.com"],"certificateAuthorities":["ca-org1"]}},"x-type":"hlfv1","x-commitTimeout":100}

SonDang (Tue, 23 Apr 2019 09:40:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pbnLZWj7fowsGMEqG) why it still point to fabric 1.0?

ribjethgnis (Tue, 23 Apr 2019 09:49:56 GMT):

restart.PNG

ahmadraza (Tue, 23 Apr 2019 10:00:58 GMT):
Is there any way to persist Fabric-ca-server data e.g identities so that if fabric-ca-server is restarted same old identities will be used?

colasga (Tue, 23 Apr 2019 10:04:36 GMT):

Screenshot from 2019-04-23 12-04-02.png

colasga (Tue, 23 Apr 2019 10:04:39 GMT):
Hey, I'm trying to use GetChainInfo from qscc using Node SDK, but the result from the query is something I cannot interpret can someone help ?

ahmadraza (Tue, 23 Apr 2019 10:08:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GGeghvY3G8AGFm4Ea) @colasga this may be bytecode try .tostring('utf8')

colasga (Tue, 23 Apr 2019 10:09:28 GMT):
I already tried that, it returns "Response : AF߬�r"����[�&�䙙���H���L 8B�/&i(6��hO�<3i2�sA�-��)���"

colasga (Tue, 23 Apr 2019 10:10:07 GMT):
I tried things like JSON.stringify aswell but it returns me a buffer with numbers I can't interprete either

colasga (Tue, 23 Apr 2019 10:11:46 GMT):

Screenshot from 2019-04-23 12-11-17.png

ahmadraza (Tue, 23 Apr 2019 10:17:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eSCTJGyNJ5MLwJhQX) @colasga i have no idea about contract api as am using chaincodeShim

Tommy109 (Tue, 23 Apr 2019 10:39:11 GMT):
are there any known issues where a fabric installation will gradually use up all the free space on a machine? This is even before instantiating code and blocks are created

Lorem (Tue, 23 Apr 2019 10:48:46 GMT):
Hey, does someone of you know this error or has an idea on how to solve the issue?

Lorem (Tue, 23 Apr 2019 10:48:46 GMT):
Hey, does someone of you know this error or has an idea on how to solve the issue? Log-Entry of Cli: "Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: context deadline exceeded"

Lorem (Tue, 23 Apr 2019 11:04:56 GMT):
This error occurs when I try to connect my second peer (peer1.org1..) to my channel. What makes me wondering is, that I've already connected my first peer (peer0.org1..) to the same channel, so the error only occurs at the second peer. Any ideas on how to fix this?

AnilSingh (Tue, 23 Apr 2019 11:07:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F8jmoE3kwpeJXKdnM) @Lorem are you using same machine for running peer0 and peer1 ? make sure the ports are correct in cli docker for your peers ? also is peer0 running as orderer ?

sahilgoel (Tue, 23 Apr 2019 11:13:39 GMT):
Hello

sahilgoel (Tue, 23 Apr 2019 11:13:50 GMT):
I had created an Network

sahilgoel (Tue, 23 Apr 2019 11:13:50 GMT):
I had created an Network with 2 organisations. Then i added third organisation into it. The peers have successfully joined the network but and chaincode is installed. The endorsement policy is also updated. But still my couchdb for the new peers is empty

sahilgoel (Tue, 23 Apr 2019 11:13:50 GMT):
I had created an Network with 2 organisations. Then i added third organisation into it. The peers have successfully joined the network but and chaincode is installed. The endorsement policy is also updated. But still my couchdb for the new peers is empty What can be the reason for it? How should i sync the data now?

Lorem (Tue, 23 Apr 2019 11:26:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8FbjTyDFWMP44BGYY) @AnilSingh Thanks for your response. I've found the cause for this issue. I was using some old files without noticing it, which I haven't checked before. So checking the ports of my peers actually helped me there. Thanks

ahmadraza (Tue, 23 Apr 2019 11:30:10 GMT):
Started fabric-ca-server container and make identities which are stored in key-value-store. I killed the container and start again . Now identities which are already there can be used to invoke/query transactions but not able to make net identities using admin credentials. Any solution?

ahmadraza (Tue, 23 Apr 2019 11:33:22 GMT):
it gives this error Error: fabric-ca request register failed with errors [[{\"code\":20,\"message\":\"Authentication failure\"}]]

Sarath_Kumar (Tue, 23 Apr 2019 11:56:06 GMT):
Hi all, How and where to set the org's affiliations? I have added a new org in first network, while enrolling i am facing issue.

KavyasriSollem (Tue, 23 Apr 2019 12:02:19 GMT):
Has joined the channel.

Psingh (Tue, 23 Apr 2019 13:09:01 GMT):
Hi all, I'm facing below issue when running "go build" command `alpha@GHOST-RIDER:~/GoWorkspace/src/github.com/hyperledger/firstproject$ go build # github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations ../fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations/system.go:227:23: not enough arguments in call to s.statsd.SendLoop have (<-chan time.Time, string, string) want (context.Context, <-chan time.Time, string, string)`

Psingh (Tue, 23 Apr 2019 13:09:01 GMT):
Hi all, I'm facing below issue when running "go build" command ```alpha@GHOST-RIDER:~/GoWorkspace/src/github.com/hyperledger/firstproject$ go build # github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations ../fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations/system.go:227:23: not enough arguments in call to s.statsd.SendLoop have (<-chan time.Time, string, string) want (context.Context, <-chan time.Time, string, string)```

garunkumar450 (Tue, 23 Apr 2019 13:26:38 GMT):
2019-04-23 18:55:17.756 IST [eventsclient] main -> INFO 001 Error connecting: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com on 10.10.52.2:53: no such host"

MuhammadBilal1 (Tue, 23 Apr 2019 13:36:09 GMT):
Hi,

neneg (Tue, 23 Apr 2019 13:47:59 GMT):
Hi! I get: *Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium* when creating running command peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/fabric/configs/channel.tx on one of the peers... any ideas why i get this error and How I can fix it?

Psingh (Tue, 23 Apr 2019 14:07:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2fon46fRLequjBdf6) can someone please help with this?

Psingh (Tue, 23 Apr 2019 14:07:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2fon46fRLequjBdf6) can someone please help with this?

shrek95 (Tue, 23 Apr 2019 17:52:10 GMT):
Has joined the channel.

shrek95 (Tue, 23 Apr 2019 17:52:36 GMT):
Hi everyone, what does template, user, count in crypto-config.yaml means .... plz some one explain..

ahmadraza (Tue, 23 Apr 2019 19:30:48 GMT):

Screenshot from 2019-04-24 00-30-19.png

ahmadraza (Tue, 23 Apr 2019 19:32:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJwEJQ48Ajvnb5niy) Why orderer containers are exiting can any one help?

ahmadraza (Tue, 23 Apr 2019 19:32:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=kuH37qSAMAc8RLfMv) @walmon Any idea?

walmon (Tue, 23 Apr 2019 19:36:06 GMT):
there are hundreds of potential reasons, reading the logs and reviewing your settings will help you

walmon (Tue, 23 Apr 2019 19:36:17 GMT):
but just a screenshot wont help

ahmadraza (Tue, 23 Apr 2019 19:36:37 GMT):
i will try to check logs

itsNebula (Tue, 23 Apr 2019 20:53:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xxNLaApzkKco9Motg) @AnilSingh Thank you. Should these orderer clusted should totally seperated from the machines where peers or orderers run?

itsNebula (Tue, 23 Apr 2019 20:53:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xxNLaApzkKco9Motg) @AnilSingh Thank you. Should these orderer clusters totally be seperated from the machines where peers or orderers run?

Antimttr (Tue, 23 Apr 2019 20:58:30 GMT):
@itsNebula did you also know that orgs that have peers in a channel should not also have orderers on a channel?

Antimttr (Tue, 23 Apr 2019 20:58:33 GMT):
that blew my mind

itsNebula (Tue, 23 Apr 2019 21:10:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8xEWfg9sF5ZPsrsQh) @Antimttr I didn't get the question. May be we can talk this in dm?

ArturoReyes (Tue, 23 Apr 2019 22:10:58 GMT):
Has joined the channel.

ArturoReyes (Tue, 23 Apr 2019 22:16:26 GMT):
Hi, I'm having this problem where I invoke putState in my chaincode and nothing happens on couchDB, the peer reports a valid transaction and generates a new block but that's it. InitLedger works properly though. Also, are there examples of proper use of logging in chaincode?

gregnotso (Tue, 23 Apr 2019 22:54:08 GMT):
can i run Fauxton queries without indexes on CouchDB records?

DarwinHarianto (Wed, 24 Apr 2019 00:59:02 GMT):
can someone explain this? Because “alive” messages are cryptographically signed, malicious peers can never impersonate other peers, as they lack a signing key authorized by a root certificate authority (CA). what is this sign? why can't it be faked?

DarwinHarianto (Wed, 24 Apr 2019 01:04:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8xEWfg9sF5ZPsrsQh) @Antimttr @Antimttr can you elaborate this? I am curious

SonDang (Wed, 24 Apr 2019 01:05:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pbnLZWj7fowsGMEqG) Can someone please help this?

DarwinHarianto (Wed, 24 Apr 2019 01:09:19 GMT):
@SonDang its better to direct it at #composer , it seems like your image at docker ps is not up, or port problem

SonDang (Wed, 24 Apr 2019 01:33:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=387ZnQcaQgMiSETqt) @DarwinHarianto ok thanks alot. I think that's root cause.

AnilSingh (Wed, 24 Apr 2019 02:44:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=e87fQNxBQEFnMQMs9) @itsNebula it depends, as a good practice we can. But Fabric doesn't stop you to assign multiple roles to same peer/node.

mistogans (Wed, 24 Apr 2019 04:37:49 GMT):
has anyone had any issues with their fabric peers disconnecting from each other during gossiping?

ribjethgnis (Wed, 24 Apr 2019 05:09:24 GMT):

error

ribjethgnis (Wed, 24 Apr 2019 05:09:24 GMT):

error

ribjethgnis (Wed, 24 Apr 2019 05:11:37 GMT):

Clipboard - April 24, 2019 10:42 AM

sahilgoel (Wed, 24 Apr 2019 05:25:51 GMT):
What is the best way to structure the chaincode in Go? I mean like dividing it into Packages, Using Other libraries like CCKIt. Can someone please recommend me the things and how can i structure it in proper way?

sbhv13 (Wed, 24 Apr 2019 05:57:39 GMT):
Has joined the channel.

ahmadraza (Wed, 24 Apr 2019 06:35:14 GMT):
Orderer container is exiting with error Error creating consenter: failed to parse TickInterval () to time duration? can anyone help

Sarath_Kumar (Wed, 24 Apr 2019 06:43:17 GMT):
Hi all, I am facing issue while invoking transaction using node sdk. I am using balance transfer example. I have registered a new user. I have added few assets and after shutdown , i have started the containers by using *docker ps -a -q --filter "status=exited"* now all my containers have started except the chaincode container. while invoking a transaction *cannot read property curve of undefined* error is occuring. After registering a new user i am able to invoke a transaction.

neneg (Wed, 24 Apr 2019 07:13:38 GMT):
Hi all! I get: *Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium* when creating running command *peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/fabric/configs/channel.tx* on one of the peers... any ideas why i get this error and How I can fix it?

ribjethgnis (Wed, 24 Apr 2019 07:15:54 GMT):
how to resolve this issue

ribjethgnis (Wed, 24 Apr 2019 07:15:57 GMT):
# peer channel update -o orderer.example.com:7050 -c jetchannelid -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/Org1MSPanchors.tx --tls true --cafile $ORDERER_CA successfully submit channel update ===================== BUT FOR Org2MSPanchors.tx AND Org3MSPanchors.tx peer channel update -o orderer.example.com:7050 -c jetchannelid -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/Org2MSPanchors.tx --tls true--cafile $ORDERER_CA ERROR - /Channel/Application/Org2MSP not satisfied: signature set did not satisfy policy ERROR - /Channel/Application/Org3MSP not satisfied: signature set did not satisfy policy

levanto (Wed, 24 Apr 2019 07:24:14 GMT):
Hello, i do have a question. I am looking at the token package from fabric core master branch. In trying to create a new tokenClient, i am having trouble getting the SigningIdentity required as a parameter in the newClient function. Anyone who can help?

levanto (Wed, 24 Apr 2019 07:24:23 GMT):
Let me send a snippet.

levanto (Wed, 24 Apr 2019 07:29:09 GMT):
`=!=ReW2CkpcekbCamt9e=!= `

levanto (Wed, 24 Apr 2019 07:29:29 GMT):
``` cannot use signingIdentity (type "vendor/github.com/hyperledger/fabric/msp".SigningIdentity) as type "vendor/github.com/hyperledger/fabric/token".SigningIdentity in argument to client.NewClient: "vendor/github.com/hyperledger/fabric/msp".SigningIdentity does not implement "vendor/github.com/hyperledger/fabric/token".SigningIdentity (wrong type for GetPublicVersion method) have GetPublicVersion() "vendor/github.com/hyperledger/fabric/msp".Identity want GetPublicVersion() "vendor/github.com/hyperledger/fabric/token".Identitygo ```

levanto (Wed, 24 Apr 2019 07:31:20 GMT):
The reason why i use the msp.SigningIdentity is because i use the GetSigningIdentity method provided in the same package. However, seems the newClient method needs the token.SigningIdentity type. Help.

levanto (Wed, 24 Apr 2019 07:32:08 GMT):
How can i make msp.SigningIdentity interface implement the token.SigningIdentity?

AnilSingh (Wed, 24 Apr 2019 08:25:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BnsZCQY2KeXn6KT6r) @ribjethgnis please cross check you endorsement policy ...

AnilSingh (Wed, 24 Apr 2019 08:26:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Kw3Pr2os4SH8yP5aS) @neneg Please cross check that we have the crypto and transaction config material for this peer you are trying ...

Lorem (Wed, 24 Apr 2019 08:33:25 GMT):
Hey, can someone tell me, if the name set at the installation of chaincode (-n flag) is only a descriptor for accessing this chaincode on the channel or does the name also specify the file or part of the path or anything else? Since the path is set by the -p flag, the name should not have an impact on the path, right?

SaravananPalanisamy (Wed, 24 Apr 2019 08:42:02 GMT):
Has joined the channel.

DarwinHarianto (Wed, 24 Apr 2019 08:49:26 GMT):

Screen Shot 2019-04-24 at 17.48.16.png

DarwinHarianto (Wed, 24 Apr 2019 08:55:38 GMT):
@Lorem isn't -n is the name of smart contract and -p means the endorsing peer?

mlucc (Wed, 24 Apr 2019 09:14:20 GMT):
Hello. Does someone know how to manually purge a private collection? (Private data)

Lorem (Wed, 24 Apr 2019 09:34:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xqCY5MuGRZENsQWDH) @DarwinHarianto The first part ("./../../../../organization/magnetocorp" in your case) is the (relative, in this case) path in your local file system. The second part ("/opt/gopath/src/github.com/") is the name, the previous path will be mapped to. So, you're starting a docker container and it will have a local file system itself, which is actually just part of the file system of your host. In the docker container it will be named "/opt/gopath/src/github.com/", but actually this folder contains all files and folders from "./../../../../organization/magnetocorp" on your host (respect the relative part, starting from the yaml file) since its the same path.

sgaddam (Wed, 24 Apr 2019 09:44:09 GMT):
Hi, Can someone help me on Private Data Reconciliation where i am getting the below error [cfbfbdca] Failed to handle GET_STATE. error: private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x16, TxNum:0x0}, Private data version = (*version.Height)(nil)

mikarios (Wed, 24 Apr 2019 09:54:08 GMT):
Has joined the channel.

JorgeNavarro (Wed, 24 Apr 2019 10:48:50 GMT):
Hello, if im using a 1.3v network, can i use the 1.0v from Java SDK?

rrodriguezreche (Wed, 24 Apr 2019 11:14:10 GMT):
Has joined the channel.

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see to ways of doing things in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement?

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see to ways of doing things in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement? I can see that the sample invokes initLedger after the chaincode has been instantiated, but I'd like to perform this operation in the init() method, not by means of an invoke. It would be unlikely, but a bad actor could invoke initLedger before the entity instantiating the code and therefore claim ownership, I want to avoid that by using init(), but I don't find a way to do it using the non-low-level approach

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see to ways of doing things in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement? I can see that the sample invokes initLedger after the chaincode has been instantiated, but I'd like to perform this operation in the init() method, not by means of an invoke. It would be unlikely, but a bad actor could invoke initLedger before the entity instantiating the code and therefore claim ownership, I want to avoid that by using init(), but I don't find a way to do it using the non-low-level approach (the folder with /lib subdirectory)

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see two ways of doing things in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement? I can see that the sample invokes initLedger after the chaincode has been instantiated, but I'd like to perform this operation in the init() method, not by means of an invoke. It would be unlikely, but a bad actor could invoke initLedger before the entity instantiating the code and therefore claim ownership, I want to avoid that by using init(), but I don't find a way to do it using the non-low-level approach (the folder with /lib subdirectory)

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see two ways of doing things in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement? I can see that the sample invokes initLedger after the chaincode has been instantiated, but I'd like to perform this operation in the init() method, not by means of an invoke. It would be unlikely, but a bad actor could invoke initLedger before the entity instantiating the code and therefore claim ownership, I want to avoid that by using init(), but I can't find a way to do it using the non-low-level approach (the folder with /lib subdirectory)

rrodriguezreche (Wed, 24 Apr 2019 11:20:19 GMT):
Hi everyone, I am pretty new to Fabric and I am confused about the nodejs contracts api. Taking a closer look to the samples, ie fabcar I can see two ways of installing and instantiating chaincode in two folders => javascript and javascript-low-level. My question is, if I take the approach of the former, can I still use the chaincode interface init() method, so that I can give an ownership to the entity instantiating the code? Or have got to use the low level approach in order to satisfy this requirement? I can see that the sample invokes initLedger after the chaincode has been instantiated, but I'd like to perform this operation in the init() method, not by means of an invoke. It would be unlikely, but a bad actor could invoke initLedger before the entity instantiating the code and therefore claim ownership, I want to avoid that by using init(), but I can't find a way to do it using the non-low-level approach (the folder with /lib subdirectory)

walmon (Wed, 24 Apr 2019 12:21:56 GMT):
@rrodriguezreche try https://github.com/hyperledger-labs/convector if you'd like to try the nodejs version, it will make things way clearer for you

abhinav10gupta (Wed, 24 Apr 2019 13:20:57 GMT):
Has joined the channel.

johanquiroga (Wed, 24 Apr 2019 14:29:13 GMT):
Has joined the channel.

johanquiroga (Wed, 24 Apr 2019 14:30:15 GMT):
Hi, does anyone know if it is possible to suspend a blockchain instance with the starter plan to prevent unwanted charges to the account

johanquiroga (Wed, 24 Apr 2019 14:30:15 GMT):
Hi, does anyone know if it is possible to suspend a blockchain instance with the starter plan to prevent unwanted charges to the account ?

Antimttr (Wed, 24 Apr 2019 14:33:58 GMT):
@DarwinHarianto I was talking with @yacovm the other day and he mentioned it, I had a discussion confirming it with him and it seems that yes, that is infact the best practice

Antimttr (Wed, 24 Apr 2019 14:34:18 GMT):
to not have orderers in the same org/channel as you have peers

Antimttr (Wed, 24 Apr 2019 14:34:28 GMT):
so an org can have orderers and peers

Antimttr (Wed, 24 Apr 2019 14:34:31 GMT):
but not together in the same channel

Antimttr (Wed, 24 Apr 2019 14:34:45 GMT):
which doesnt make a lot of sense to me but they insist its due to security

Antimttr (Wed, 24 Apr 2019 14:35:23 GMT):
maybe though the org is just a logical division

Antimttr (Wed, 24 Apr 2019 14:35:58 GMT):
like say you're in company A and company A can own org 1A and 2A, 1a has orderers in channel FOO and 2A has peers in channel FOO

Antimttr (Wed, 24 Apr 2019 14:37:11 GMT):
@walmon what has your experence with this been?

jcbombardelli (Wed, 24 Apr 2019 14:51:35 GMT):
Hi folks! Someone already had to do a count inside a chaincode ?

walmon (Wed, 24 Apr 2019 15:29:39 GMT):
@jcbombardelli what do you mean?

jcbombardelli (Wed, 24 Apr 2019 15:36:38 GMT):
Hello @walmon I have a asset named by "tgim" (like similar that "marble") and i would like execute a Count of total "tgim" by "owners" (likes SELECT COUNT(*) .... ), however not exists a balance registered, only a list of "tgim". How i can do this kind of query ?

walmon (Wed, 24 Apr 2019 15:37:37 GMT):
you have a lot of options, i.e.: you could do a view in couch or you can make a mango query to get that data

jcbombardelli (Wed, 24 Apr 2019 15:42:31 GMT):
this was my first idea, but i couldn't execute a View (for example) or instantiate a query with Mango that would bring the result that I would like. (Also found no references in the documentation, but may be my fault)

walmon (Wed, 24 Apr 2019 15:57:46 GMT):
what are you using to develop?

walmon (Wed, 24 Apr 2019 15:58:43 GMT):
and where do you need the count? In the chaincode or in the backend?

walmon (Wed, 24 Apr 2019 15:58:57 GMT):
views are not integrated with Fabric yet, but if you need it from your backend you may get the data directly

jcbombardelli (Wed, 24 Apr 2019 17:26:49 GMT):
This is a question I have: Run direct queries a couchdb. You not see a problem ?

jcbombardelli (Wed, 24 Apr 2019 17:26:49 GMT):
>> what are you using to develop? GoLang >> and where do you need the count? In the chaincode or in the backend? Backend This is a question I have: Run direct queries a couchdb. You not see a problem ?

walmon (Wed, 24 Apr 2019 17:47:17 GMT):
It's ideal to go through the chaincode - but it's a resource that you have available and if it's secured by you, you can go to it

walmon (Wed, 24 Apr 2019 17:47:33 GMT):
since views are not integrated so far, I don't see any other way

nitishbhardwaj19 (Wed, 24 Apr 2019 17:50:52 GMT):
Hi, I have deployed a sample network on Kubernetes using cryptogen. The network is running successfully. But, I want to add Ingress controller to expose the network with an external IP. I am using vanilla scripts to spin up NGINX as I can't use Helm. I haven't got any references to configure Ingress-controller routers for peers/orderer anywhere. Could someone share their experiences of configuring routes for fabric containers.

SaphiraBjartskular (Wed, 24 Apr 2019 17:58:59 GMT):
Does each client need to know every organization on the network? That seems a bit... transparent

spmcnamara (Wed, 24 Apr 2019 18:27:22 GMT):
@Psingh I'm seeing the same error. I found a couple of similar questions online but not good answers.... github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations/system.go:227:23: not enough arguments in call to s.statsd.SendLoop

spmcnamara (Wed, 24 Apr 2019 18:59:38 GMT):
@Psingh This did the trick for me. https://stackoverflow.com/a/55813979/11407130

DannyBarrientos (Wed, 24 Apr 2019 20:18:01 GMT):
Has joined the channel.

DannyBarrientos (Wed, 24 Apr 2019 20:22:48 GMT):
Good afternoon team, It have a channel for Testing? Best reggard :yum:

DannyBarrientos (Wed, 24 Apr 2019 20:22:48 GMT):
@channel .Good afternoon team, It have a channel for Testing? Best reggard :yum:

medikent (Wed, 24 Apr 2019 20:53:22 GMT):
Where is core.yaml located in v1.4.1?

medikent (Wed, 24 Apr 2019 20:53:26 GMT):
In the GitHub repo

jcbombardelli (Wed, 24 Apr 2019 22:38:02 GMT):
Thanks for your opinion @walmon =)

walmon (Wed, 24 Apr 2019 23:37:29 GMT):
sure @jcbombardelli good luck!

walmon (Wed, 24 Apr 2019 23:37:41 GMT):
@DannyBarrientos what do you mean?

DarwinHarianto (Thu, 25 Apr 2019 00:37:58 GMT):
@Antimttr So, from org1 , I can have orderer1 and peer1, then in the channel x I need orderer2 from org2 to maintain peer1 block?

DarwinHarianto (Thu, 25 Apr 2019 00:41:12 GMT):
@Lorem Thanks

caveman7 (Thu, 25 Apr 2019 01:23:45 GMT):
is `InvokeChaincode` function atomic? based on the documentation `If the called chaincode is on the same channel, it simply adds the called chaincode read set and write set to the calling transaction.`, seems to me that it is atomic..can anybody confirm this? i'm referring to https://github.com/hyperledger/fabric/blob/715c6ec339ec46583020ec6783726d3e4502ddba/core/chaincode/shim/interfaces.go#L76

DarwinHarianto (Thu, 25 Apr 2019 02:59:08 GMT):
following the docs for BYFN(https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html), I tried to use raft tutorial. After I use ./byfn.sh down, I proceed step by step until they went into the docker after I input this ``` peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` it says ```Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader``` what step did I miss?

DarwinHarianto (Thu, 25 Apr 2019 02:59:08 GMT):
following the docs for BYFN(https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html), I tried to use raft tutorial. After I use ./byfn.sh down, I proceed step by step until they went into the docker after I input this ``` peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem``` it says ```Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader``` what step did I miss?

DarwinHarianto (Thu, 25 Apr 2019 02:59:08 GMT):
following the docs for BYFN(https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html), I tried to use raft tutorial. After I use ./byfn.sh down, I proceed step by step until they went into the docker after I input this ``` peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` it says ``` Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader ``` what step did I miss?

DarwinHarianto (Thu, 25 Apr 2019 03:23:38 GMT):
If I found a problem at fabric docs, where should I report it?

TharinduSandaruwan1 (Thu, 25 Apr 2019 03:43:33 GMT):
when I am instantiating chaincode it leaves me this error on the terminal `Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing` can someone help me to solve this problem?

anjalinaik (Thu, 25 Apr 2019 04:10:17 GMT):
Hi Team.Can we prevent a specific user from seeing a chaincode event

Rosan (Thu, 25 Apr 2019 04:40:24 GMT):
Hi Team, Is peer event service running on port 7053 removed in Fabric v1.4.1? I updated my Fabric version directly from v1.1 to v1.4 and now I could not found that event service.

DarwinHarianto (Thu, 25 Apr 2019 05:09:24 GMT):
yes

Rosan (Thu, 25 Apr 2019 05:17:47 GMT):
@DarwinHarianto , is that yes for my question?

Rosan (Thu, 25 Apr 2019 05:17:47 GMT):
@DarwinHarianto , Hello! is that "yes" for my question?

DarwinHarianto (Thu, 25 Apr 2019 05:24:55 GMT):
@Rosan yes, the peer now become 9051

DarwinHarianto (Thu, 25 Apr 2019 05:26:24 GMT):

Screen Shot 2019-04-25 at 14.25.58.png

Psingh (Thu, 25 Apr 2019 05:38:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DHmfs9AfashehBQJH) @spmcnamara this one is better rather making changes to hyperleder code cd $GOPATH/src/github.com/go-kit/kit git fetch --tags git checkout v0.8.0

SonDang (Thu, 25 Apr 2019 05:53:15 GMT):

Clipboard - April 25, 2019 1:52 PM

Psingh (Thu, 25 Apr 2019 05:55:48 GMT):
Is anyone developing a fabric project on Windows Subsystem for Linux(WSL) and having issues with docker-compose? I'm facing some weird issues when trying to run `docker-compose up` command and unable to create the containers for orderer, ca and peers because it couldn't find signcerts directory but the same thing working on proper Ubuntu machine.

AndresMartinezMelgar.itcl (Thu, 25 Apr 2019 06:21:15 GMT):
Hello, if I do some action with the SDK (for example create and join some peers to a channel) and then I enter one of those peer and I write peer channel list, should I return something or the command be the target? The actions performed with the sdk are reflected with the commands of the terminal?

Rosan (Thu, 25 Apr 2019 06:45:05 GMT):
@DarwinHarianto yah! Thanks!

bilalahmed (Thu, 25 Apr 2019 06:54:58 GMT):
Can anyone please explain that how peerorganisation user's prive key is encoded? I actually want to load that file in JAVA's PrivateKey object. thanks

bilalahmed (Thu, 25 Apr 2019 08:25:44 GMT):
I mean using which algorithm private key is encoded?

Lorem (Thu, 25 Apr 2019 08:32:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eMqXDxMCYZFBzisjH) @bilalahmed Looks like the key files are just base64 encoded, but no warranty that they dont use any other encoding

Lorem (Thu, 25 Apr 2019 08:35:20 GMT):
Hey, can someone explain me the purpose of multiple users while having only a single peer? I'm currently designing my own network and i just want a single peer in each organisation. Now I'm not sure, if I'm supposed to have only one user, the admin, or if I need an additional user for each organisation

Lorem (Thu, 25 Apr 2019 08:35:20 GMT):
Hey, can someone explain me the purpose of multiple users while having only a single peer? I'm currently designing my own network and i just want a single peer in each organisation. Now I'm not sure, if I'm supposed to have only one user, the admin, or if I need an additional user for each organisation

Lorem (Thu, 25 Apr 2019 08:35:20 GMT):
Hey, can someone explain me the purpose of multiple users while having only a single peer? I'm currently designing my own network and i just want a single peer in each organisation. Now I'm not sure, if I'm supposed to have only one user, the admin, or if I need an additional user for each organisation I'm talking about the Template: count and Users: Count in the crypto-config.yaml file

bilalahmed (Thu, 25 Apr 2019 08:41:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WspKDwMHnMDtYNFS4) @Lorem Then how may we load it any any language without knowing algorithm? I want to load private key (_sk) in java.

bilalahmed (Thu, 25 Apr 2019 08:41:23 GMT):
Whats the extension of private key file (_sk) btw?

DarwinHarianto (Thu, 25 Apr 2019 08:56:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uyKeuYXoNbt5aAFum) @Lorem more peer means you can make more endorser.

Lorem (Thu, 25 Apr 2019 09:21:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qtoh8XXk6CgdwL4mC) @DarwinHarianto I'm not sure, if I just don't understand your response, but I've asked for the purpose of multiple *users* not multiple *peers*. What are the benefits by having multiple users while using only one peer per org?

sgaddam (Thu, 25 Apr 2019 10:15:31 GMT):
Hi, Anyone worked on Private Data Reconciliatoin? Can you please help me to solve my issues. I am facing this issue since three days and i am not getting any help anywhere. Can someone plz help me on this.

sgaddam (Thu, 25 Apr 2019 10:35:51 GMT):
Hi, I will eloborate my work in Private Data Reconciliation. Please suggest me if i am doing wrong in my process. I have a blockchain network with 2 Orgs each with 2 Peers along with 1 Orderer. I have a channel for 2 Orgs. I tried like below.. - Initially the Org1Peer0 and Org2Peer0 have joined the Channel. After that, installed, instantiated, Invoked and Queried Private Data. Its working fine. - Later, the new peer Org1Peer1 joined to the channel. And also configured with the below options in the .bashrc file for Org1Peer0. But not added the below options in Peer0's of 2 Orgs. - export CORE_PEER_GOSSIP_PVTDATA_RECONCILIATIONENABLED=true - export CORE_PEER_GOSSIP_PVTDATA_RECONCILESLEEPINTERVAL=1m - After that i tried to query the reconciled private data. But i end up with errors. - To make simplify the process, i take only 1 Org with 2 peers to test the Privated Data Reconciliation. - I stopped Org1 Peer1 but Org1 Peer0 is already in running mode. I added the Reconciliation options in both the peers in a .bashrc file. - I installed new chaincode in Org1Peer0 and then instantiated, invoked couple of private data and then queryied the data. The private data is returning properly. - Now i started Org1Peer1 and installed the new chaincode in this node. Then i tried querying the reconciled data. But i end up with the same errors provided you earlier. Below is the collection config which i used for the 1 Org scenario. [ { "name": "collectionPurchaseOrders", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":1000000, "memberOnlyRead": true }, { "name": "collectionPrivatePurchaseOrders", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":0, "memberOnlyRead": true } ] Can you please suggest me if i have anything wrong in the above steps or configurations?

sgaddam (Thu, 25 Apr 2019 10:35:51 GMT):
Hi, *I am able to fetch the Private data in the initial setup 2Orgs 2 peers. However in the newly added peer i am unable to fetch the reconciled private data.* I will eloborate my work in Private Data Reconciliation. Please suggest me if i am doing wrong in my process. I have a blockchain network with 2 Orgs each with 2 Peers along with 1 Orderer. I have a channel for 2 Orgs. I tried like below.. - Initially the Org1Peer0 and Org2Peer0 have joined the Channel. After that, installed, instantiated, Invoked and Queried Private Data. Its working fine. - Later, the new peer Org1Peer1 joined to the channel. And also configured with the below options in the .bashrc file for Org1Peer0. But not added the below options in Peer0's of 2 Orgs. - export CORE_PEER_GOSSIP_PVTDATA_RECONCILIATIONENABLED=true - export CORE_PEER_GOSSIP_PVTDATA_RECONCILESLEEPINTERVAL=1m - After that i tried to query the reconciled private data. But i end up with errors. - To make simplify the process, i take only 1 Org with 2 peers to test the Privated Data Reconciliation. - I stopped Org1 Peer1 but Org1 Peer0 is already in running mode. I added the Reconciliation options in both the peers in a .bashrc file. - I installed new chaincode in Org1Peer0 and then instantiated, invoked couple of private data and then queryied the data. The private data is returning properly. - Now i started Org1Peer1 and installed the new chaincode in this node. Then i tried querying the reconciled data. But i end up with the same errors provided you earlier. Below is the collection config which i used for the 1 Org scenario. [ { "name": "collectionPurchaseOrders", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":1000000, "memberOnlyRead": true }, { "name": "collectionPrivatePurchaseOrders", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":0, "memberOnlyRead": true } ] Can you please suggest me if i have anything wrong in the above steps or configurations?

sgaddam (Thu, 25 Apr 2019 10:36:13 GMT):
No Errors in Org1Peer0 while invoking. But, below is the error in Org1Peer1 while invoking the Private Data in Org1Peer0. Error in Org1Peer1 while Invoking in Org1Peer0 --------------------------------------------- 2019-04-25 09:55:38.088 UTC [gossip.privdata] reconcile -> ERRO 191f reconciliation error when trying to fetch missing items from different peers: Empty membership 2019-04-25 09:55:38.088 UTC [gossip.privdata] run -> ERRO 1920 Failed to reconcile missing private info, error: Empty membership 2019-04-25 09:55:38.536 UTC [gossip.privdata] fetchPrivateData -> WARN 1921 Do not know any peer in the channel( channeltest2 ) that matches the policies , aborting 2019-04-25 09:55:38.536 UTC [gossip.privdata] fetchFromPeers -> WARN 1922 Failed fetching private data for block 24 from peers: Empty membership 2019-04-25 09:55:39.537 UTC [gossip.privdata] fetchPrivateData -> WARN 1923 Do not know any peer in the channel( channeltest2 ) that matches the policies , aborting 2019-04-25 09:55:39.537 UTC [gossip.privdata] fetchFromPeers -> WARN 1924 Failed fetching private data for block 24 from peers: Empty membership 2019-04-25 09:55:40.537 UTC [gossip.privdata] StoreBlock -> WARN 1925 [channeltest2] Could not fetch all missing collection private write sets from remote peers. Will commit block [24] with missing private write sets:[txID: 03ece15b2ef5dcaa952cdf663a60292426e82aa838a0304d73b6cd1659711fb1, seq: 0, namespace: xyzchaincode, collection: collectionPrivatePurchaseOrders, hash: 34f6ade8fa9fa825797941777f170262a95bfaf217572660a2434677b31b97f8 txID: 03ece15b2ef5dcaa952cdf663a60292426e82aa838a0304d73b6cd1659711fb1, seq: 0, namespace: xyzchaincode, collection: collectionPurchaseOrders, hash: 50fe70b55805b8281669b7ddd9aa8ac78c02a42b6693cc2a96f0f601613253de ] 2019-04-25 09:55:40.553 UTC [kvledger] CommitWithPvtData -> INFO 1926 [channeltest2] Committed block [24] with 1 transaction(s) in 15ms (state_validation=0ms block_commit=9ms state_commit=3ms) Error in Org1Peer1 while querying in the same peer: ----------------------------------------------------- 2019-04-25 09:59:02.150 UTC [endorser] callChaincode -> INFO 1933 [channeltest2][651413f6] Entry chaincode: name:"xyzchaincode" 2019-04-25 09:59:02.152 UTC [chaincode] HandleTransaction -> ERRO 1934 [651413f6] Failed to handle GET_STATE. error: private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x18, TxNum:0x0}, Private data version = (*version.Height)(nil) github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:640 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleGetState-fm /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:214 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:272 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 GET_STATE failed: transaction ID: 651413f6371f594722a6c0b8ee46793e9232b32acac463939b356896d3211624 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:276 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 2019-04-25 09:59:02.152 UTC [endorser] callChaincode -> INFO 1935 [channeltest2][651413f6] Exit chaincode: name:"xyzchaincode" (2ms) 2019-04-25 09:59:02.152 UTC [endorser] ProcessProposal -> ERRO 1936 [channeltest2][651413f6] simulateProposal() resulted in chaincode name:"xyzchaincode" response status 500 for txid: 651413f6371f594722a6c0b8ee46793e9232b32acac463939b356896d3211624 Please help me in this. Thank you.

centent2018 (Thu, 25 Apr 2019 11:11:44 GMT):
Has joined the channel.

centent2018 (Thu, 25 Apr 2019 11:12:27 GMT):
The order of the fabric network contains all the received transactions, sorted, packed into transaction blocks, and sent to the commit peer。 Then, after any peer in the network obtains data from the order, it contains transaction data that does not belong to the itself, that is, the peer belongs to channel A, but obtains also the transaction data of the data related channel B. Is chanel data isolation risky? In other words: any peer can get transaction data that should not belong to its own channel, so can not achieve data isolation privacy?

centent2018 (Thu, 25 Apr 2019 11:37:44 GMT):
The order of the fabric network contains all the received transactions, sorted, packed into transaction blocks, and sent to the commit peer。 Then, after any peer in the network obtains data from the order, it contains transaction data that does not belong to the itself, that is, the peer belongs to channel A, but obtains also the transaction data of the data related channel B. Is chanel data isolation risky? In other words: any peer can get transaction data that should not belong to its own channel, so can not achieve data isolation privacy? @guoger

centent2018 (Thu, 25 Apr 2019 11:40:34 GMT):
throuth your anser, i see a peer just can pull the tx data belong to itself, becauce order create multi channel @guoger

centent2018 (Thu, 25 Apr 2019 11:42:08 GMT):
and then , is the order have all fabric tx data? for order, there is no data isolation?

centent2018 (Thu, 25 Apr 2019 11:46:16 GMT):
in other words, in spite of peer is channel isolate, but order have all tx data,if your have a order ,it also have other channel's tx data? please help ,thank you! @guoger

guoger (Thu, 25 Apr 2019 12:44:41 GMT):
@centent2018 if you want to prevent orderer from seeing your data, pls check out Private Data Collection: https://hyperledger-fabric.readthedocs.io/en/latest/private-data-arch.html

KartikChauhan (Thu, 25 Apr 2019 12:52:59 GMT):
I'm trying to get status of a transaction by using node.js sdk. I know about `queryTransaction` method which returns the transaction data and in it, I can find transaction response. But its limitation is that it only returns response `200` if the transaction gets succeeded or _Failed to get transaction_ message if the transaction is invalid or hasn't mined yet. `queryTransaction` method queries ledger data present on the peers and then gives a binary response. But what if I want to know a transaction is in process or not? How can I get the response _pending_ if a transaction id is valid but hasn't mined yet? I found this stackoverflow question https://stackoverflow.com/questions/51163023/hyperledger-transaction-mempool which is somewhat related to my question. Is it even possible to do that in Hyperledger Fabric or not?

mlucc (Thu, 25 Apr 2019 12:54:26 GMT):
Aloha. I don't get an error when instantiating a chaincode and I see the docker up and running. Nevertheless, when I query I get `Error: endorsement failure during query. response: status:500 message:"make sure the chaincode SimpleChaincode has been successfully instantiated and try again: chaincode SimpleChaincode not found"` If I list the chaincode instantiated with peer chaincode command, there's none!!! Any idea of what's going on? I hope someone can help me.

spmcnamara (Thu, 25 Apr 2019 13:44:54 GMT):
@Psingh Yes, that's the answer I followed.

benjamin.verhaegen (Thu, 25 Apr 2019 13:49:20 GMT):
could somebody help me with javascript chaincode

benjamin.verhaegen (Thu, 25 Apr 2019 13:49:23 GMT):
please?

DannyBarrientos (Thu, 25 Apr 2019 14:14:34 GMT):
@walmon One channel , Where the people speak about of test, for example: Test System.

DannyBarrientos (Thu, 25 Apr 2019 14:14:38 GMT):

Clipboard - April 25, 2019 9:13 AM

walmon (Thu, 25 Apr 2019 14:15:11 GMT):
@benjamin.verhaegen ping me on a private message

walmon (Thu, 25 Apr 2019 14:16:03 GMT):
I don't there is, I usually see that topic all over the place - may be a good idea to propose to create a dedicated channel for testing

DannyBarrientos (Thu, 25 Apr 2019 14:19:55 GMT):
Who can create the testing channel ? @walmon

walmon (Thu, 25 Apr 2019 14:22:09 GMT):
Not quite sure. maybe one of the admins like @dhuseby or @tkuhrt

DannyBarrientos (Thu, 25 Apr 2019 14:38:43 GMT):
@dhuseby or @tkuhrt they can create the testing channel

DannyBarrientos (Thu, 25 Apr 2019 14:38:43 GMT):
@dhuseby or @tkuhrt youcan create the testing channel

DannyBarrientos (Thu, 25 Apr 2019 14:38:43 GMT):
@dhuseby or @tkuhrt you can create the testing channel ? :)

mikhail.shubin (Thu, 25 Apr 2019 14:40:34 GMT):
Has joined the channel.

Antimttr (Thu, 25 Apr 2019 14:44:44 GMT):
@DarwinHarianto If org1 has a peer in chanel X then it should not also have an orderer in it. Same goes for Org2.

mikhail.shubin (Thu, 25 Apr 2019 14:51:40 GMT):
Hi guys. Got this errror on instantiate command. Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 2 Peer log: 2019-04-24 18:22:16.242 UTC [chaincode] Launch -> DEBU 25806 stopping due to error while launching: container exited with 2 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2019-04-24 18:22:16.242 UTC [container] lockContainer -> DEBU 25807 waiting for container(mycc-1.0) lock 2019-04-24 18:22:16.242 UTC [container] lockContainer -> DEBU 25808 got container (mycc-1.0) lock 2019-04-24 18:22:16.242 UTC [dockercontroller] stopInternal -> DEBU 25809 stopping container id=dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0 2019-04-24 18:22:16.244 UTC [dockercontroller] stopInternal -> DEBU 2580a stop container result error="Container not running: dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0" 2019-04-24 18:22:16.244 UTC [dockercontroller] stopInternal -> DEBU 2580b killing container id=dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0 2019-04-24 18:22:16.247 UTC [dockercontroller] stopInternal -> DEBU 2580c kill container result id=dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0 error="API error (500): Cannot kill container dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0: Container d3d2869b7308342706461c6ebdf8d354923cd6a6cfc35a1893dd96d4cce01403 is not running" 2019-04-24 18:22:16.247 UTC [dockercontroller] stopInternal -> DEBU 2580d removing container id=dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0 2019-04-24 18:22:16.288 UTC [dockercontroller] stopInternal -> DEBU 2580e remove container result id=dev-hyperledger-fabric-peer.dcp-mycc-lgre-d00.local-mycc-1.0 error=null 2019-04-24 18:22:16.288 UTC [container] unlockContainer -> DEBU 2580f container lock deleted(mycc-1.0) 2019-04-24 18:22:16.288 UTC [chaincode] Launch -> DEBU 25810 launch complete 2019-04-24 18:22:16.288 UTC [chaincode] Deregister -> DEBU 25811 deregister handler: mycc:1.0 2019-04-24 18:22:16.288 UTC [endorser] callChaincode -> INFO 25812 [channel][c1423b98] Exit chaincode: name:"lscc" (2815ms) 2019-04-24 18:22:16.288 UTC [endorser] SimulateProposal -> ERRO 25813 [channel][c1423b98] failed to invoke chaincode name:"lscc" , error: container exited with 2 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2019-04-24 18:22:16.288 UTC [endorser] SimulateProposal -> DEBU 25814 [channel][c1423b98] Exit

HaydenGriffin (Thu, 25 Apr 2019 15:20:01 GMT):
Hi all, does anyone have any information about the following StackOverflow question? (not mine but I'd like to know also) https://stackoverflow.com/questions/55238550/hyperledger-fabric-application-acl-testing

JulianSolarte (Thu, 25 Apr 2019 16:03:34 GMT):
I have a question about how to model my requirement and how to query it. My requiriment is simple I need to save the information related to a person and the cars that she/he has bought in a warehouse and query with pagination the cars that she/he has bought. I have thought about the following options: 1. Saving a list with the id cars in the Person Json Object { "idPerson": "54546" "namePerson": "John" "surNamePerson": "Doe" "carsBought": ["idcar1","idcar2","idcar3","idcar4","idcar5"] } { "idCar": "idcar1" "color": "black" "city": "Miami" } For query the list car, I get the Person Object and then I get the cars id then I use GetState for the N cars that I need to query, so that way I make the pagination in a manual way, so for 5 items pagination will be 5 GetState calls 2. Using Compiste Key with idPerson and IdCar Saving a composite key with the idPerson and IdCar. For query the list car I use GetStateByPartialCompositeKeyWithPagination 3. Using GetQueryResultWithPagination and indexes { "idCar": "idcar1" "idPerson": "54546" "color": "black" "city": "Miami" } Save the Car Json Object with its owner. For query the list cars will be use selectors and indexes I have been looking for a paper where explain the perfomance between GetQueryResultPagination vs GetStateByPartialCompositeKeyWithPagination vs GetStateByRangeWithPagination vs GetState but I have not found it. If you give me an technical answer I will be thankful. Thanks in advance

palashjain1 (Thu, 25 Apr 2019 16:37:52 GMT):
Has joined the channel.

PallabPaul (Thu, 25 Apr 2019 16:57:43 GMT):
Hello, I am curious and would like some people's opinions. What are some pros and cons of deploying chaincode on fabric vs using the fabric evm and deploying a solidity smart contract on fabric and vice versa? Is deploying ethereum smart contracts necessary sometimes or is this just a nice feature to have?

dhuseby (Thu, 25 Apr 2019 21:51:26 GMT):
@DannyBarrientos can you give me some more context? Are you talking about a chat channel?

yacovm (Thu, 25 Apr 2019 21:53:44 GMT):
@DannyBarrientos - see #fabric-quality

maral (Fri, 26 Apr 2019 00:38:37 GMT):
Hello, I have a fabric network with Raft ordering. I was doing some test with bringing down one or two of the orderers. When I want to invoke the chaincode I need to specify which orderer to use with command: 'peer chaincode invoke -o orderer2.example.com:7050 ...'. If it is the killed orderer then I get error and I have to choose another orderer. Is there any way to get around it? Is there any way to invoke a chaincode without specifying the exact orderer?

DarwinHarianto (Fri, 26 Apr 2019 01:57:01 GMT):
@Lorem oh sorry, I read it wrong. I think more user means you can make more identity card.

MuhammedHafil (Fri, 26 Apr 2019 06:23:10 GMT):
@dhuseby : while running https://github.com/hyperledger/fabric-samples/tree/master/fabtoken sample the peer always gets exited by ``` 2019-04-26 06:12:37.337 UTC [peer] capabilitiesSupportedOrPanic -> PANI 02a [channel mychannel] incompatible: Application capability V2_0 is required but not supported panic: [channel mychannel] incompatible: Application capability V2_0 is required but not supported panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd074f6] ```

Dhiraj1990 (Fri, 26 Apr 2019 06:59:35 GMT):
Hello all , On cli when i run `peer channel list` i get below error `Error: Failed sending proposal, got rpc error: code = Unknown desc = access denied: channel [] creator org [Org1MSP]` And when i am checking logs for peer0 `MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority` What is the issue here. seems like certificate is not valid but i have generated them as per docs

sudhasakshi (Fri, 26 Apr 2019 07:02:04 GMT):
transient

Dhiraj1990 (Fri, 26 Apr 2019 07:02:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fbMp3XFFAH9MGZfhM) @sudhasakshi means?

DarwinHarianto (Fri, 26 Apr 2019 07:08:40 GMT):
how can I make multi level key value? suppose I have a.name, a.age, a.value in fabric?

AnilSingh (Fri, 26 Apr 2019 07:25:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oney6RyFL757fQ4cs) @PallabPaul deploying ethereum smart contracts is not necessary afaik ... your previous qn is great and deserve a debate (I am not expert though). But one thing is quite clear that general purpose programming language for smart contract is better compared to DSLs like solidity from many aspects, not sure though how helpful is this non-deterministic nature (from DSLs like Solidity) in case of Hyperledger Fabric... not sure if this feature something more than just having the compatibility of evms.

benjamin.verhaegen (Fri, 26 Apr 2019 08:43:33 GMT):
Can somebody give me a piece of example code in Nodejs to check if a certain key-value exists? For example when adding a comment to an asset, check if the asset exists?

Dhiraj1990 (Fri, 26 Apr 2019 08:51:51 GMT):
can anyone help me with this issue https://stackoverflow.com/questions/55863993/access-denied-channel-creator-org-org1msp-in-hyperledger-fabric-with-kuben

PrakashSelvaraj1 (Fri, 26 Apr 2019 09:03:35 GMT):
Has joined the channel.

Aniket.1 (Fri, 26 Apr 2019 09:09:37 GMT):
are bccsp services /utils available in node.js chaincode development?

ahmadraza (Fri, 26 Apr 2019 09:15:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ygD2rtW9NSrPtRSCq) @benjamin.verhaegen let investState = await stub.getState(key); if (investState.toString()) { //already exists }else{}

ahmadraza (Fri, 26 Apr 2019 09:15:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ygD2rtW9NSrPtRSCq) @benjamin.verhaegen let investState = await stub.getState(key); if (investState.toString()) { //already exists }else{ //not exists}

benjamin.verhaegen (Fri, 26 Apr 2019 09:17:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4fAGuapCbf63ZZukn) @ahmadraza I'm using this: let data = await ctx.stub.getState(userId.toString()); console.log(JSON.stringify(data)); let author; if(data){ author = JSON.parse(data.toString()); } else { throw new Error('author not found'); } But this gives me: Unexpected end of JSON input\n at JSON.parse

Aniket.1 (Fri, 26 Apr 2019 09:21:26 GMT):
does CA stores certificate data and keys? If someone gets access to CA server, will that person get access to each certificate and key?

ahmadraza (Fri, 26 Apr 2019 09:22:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tpyepYy8FdsnBNFmY) @benjamin.verhaegen Just check if(data.tostring()) if it is true it means it is existed

benjamin.verhaegen (Fri, 26 Apr 2019 09:24:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=REwhC9FkYQB59uZ7J) @ahmadraza yep, doesn't work. It says it doesn't exist while im 100% sure the userId exists

ahmadraza (Fri, 26 Apr 2019 09:24:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tpyepYy8FdsnBNFmY) @benjamin.verhaegen i think error is generating on second line of your code

ahmadraza (Fri, 26 Apr 2019 09:25:59 GMT):
try console.log(data.toString());

ahmadraza (Fri, 26 Apr 2019 09:26:31 GMT):
because response is in bytes

benjamin.verhaegen (Fri, 26 Apr 2019 09:27:03 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=5Zkgkk39kcpsj7Suz) @ahmadraza funny thing is that the same code works in another transaction but not in this one

ahmadraza (Fri, 26 Apr 2019 10:26:31 GMT):
If CA server container is restarted, can we use certificates that are already existed?

HappyThoughts (Fri, 26 Apr 2019 10:31:38 GMT):
Hi, i am currently working on a multi host multi org fabric setup with version 1.3. I am having an issue with the TLS setup, when i try to create a channel from a peer, i get the error message " Err :connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"" Does anyone know why this happens?

abhinav10gupta (Fri, 26 Apr 2019 10:32:15 GMT):
Hi Everyone I am trying to explore Identity Mixer but facing challenges has anyone done that ?

akoenig (Fri, 26 Apr 2019 12:01:25 GMT):
Hi, I have a questions about private data: Is someone using them? Because we saw the property "blocksToLive" which says, that after an amount of new blocks the private data will be deleted. But in a blockchain you can't delete anything?

akoenig (Fri, 26 Apr 2019 12:02:18 GMT):
Or how does it work? When I need to proof what the organizations inside the channels has commited at some point of the usecase? Don't get it, how it should work here...

Psingh (Fri, 26 Apr 2019 12:15:23 GMT):
Is anyone following chainHero example and facing this issue? ``` 2019-04-26 06:59:13.437 UTC [orderer.common.server] Broadcast -> DEBU 2c0 Starting new Broadcast handler 2019-04-26 06:59:13.437 UTC [orderer.common.broadcast] Handle -> DEBU 2c1 Starting new broadcast loop for 192.168.160.1:38170 2019-04-26 06:59:13.437 UTC [orderer.common.broadcast] ProcessMessage -> DEBU 2c2 [channel: testchainid] Broadcast is processing config update message from 192.168.160.1:38170 2019-04-26 06:59:13.438 UTC [orderer.common.msgprocessor] ProcessConfigUpdateMsg -> DEBU 2c3 Processing config update tx with system channel message processor for channel ID testchainid 2019-04-26 06:59:13.438 UTC [orderer.common.msgprocessor] ProcessConfigUpdateMsg -> DEBU 2c4 Processing config update message for channel testchainid 2019-04-26 06:59:13.438 UTC [policies] Evaluate -> DEBU 2c5 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers == 2019-04-26 06:59:13.438 UTC [policies] Evaluate -> DEBU 2c6 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2019-04-26 06:59:13.438 UTC [policies] Evaluate -> DEBU 2c7 == Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers == 2019-04-26 06:59:13.439 UTC [policies] Evaluate -> DEBU 2c8 This is an implicit meta policy, it will trigger other policy evaluations, whose failures may be benign 2019-04-26 06:59:13.439 UTC [policies] Evaluate -> DEBU 2c9 == Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererFirstProject/Writers == 2019-04-26 06:59:13.439 UTC [cauthdsl] func1 -> DEBU 2ca 0xc0004b85a0 gate 1556261953439524700 evaluation starts 2019-04-26 06:59:13.439 UTC [cauthdsl] func2 -> DEBU 2cb 0xc0004b85a0 signed by 0 principal evaluation starts (used [false]) 2019-04-26 06:59:13.439 UTC [cauthdsl] func2 -> DEBU 2cc 0xc0004b85a0 processing identity 0 with bytes of a1be80 2019-04-26 06:59:13.439 UTC [cauthdsl] func2 -> DEBU 2cd 0xc0004b85a0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrdererMSP, got Org1MSP) 2019-04-26 06:59:13.439 UTC [cauthdsl] func2 -> DEBU 2ce 0xc0004b85a0 principal evaluation fails 2019-04-26 06:59:13.439 UTC [cauthdsl] func1 -> DEBU 2cf 0xc0004b85a0 gate 1556261953439524700 evaluation fails 2019-04-26 06:59:13.439 UTC [policies] Evaluate -> DEBU 2d0 Signature set did not satisfy policy /Channel/Orderer/OrdererFirstProject/Writers 2019-04-26 06:59:13.439 UTC [policies] Evaluate -> DEBU 2d1 == Done Evaluating *cauthdsl.policy Policy /Channel/Orderer/OrdererFirstProject/Writers 2019-04-26 06:59:13.439 UTC [policies] func1 -> DEBU 2d2 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererFirstProject/Writers ] 2019-04-26 06:59:13.440 UTC [policies] Evaluate -> DEBU 2d3 Signature set did not satisfy policy /Channel/Orderer/Writers 2019-04-26 06:59:13.440 UTC [policies] Evaluate -> DEBU 2d4 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Orderer/Writers 2019-04-26 06:59:13.440 UTC [policies] func1 -> DEBU 2d5 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Consortiums/Writers Orderer/Writers ] 2019-04-26 06:59:13.440 UTC [policies] Evaluate -> DEBU 2d6 Signature set did not satisfy policy /Channel/Writers 2019-04-26 06:59:13.440 UTC [policies] Evaluate -> DEBU 2d7 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers 2019-04-26 06:59:13.440 UTC [orderer.common.broadcast] ProcessMessage -> WARN 2d8 [channel: testchainid] Rejecting broadcast of config message from 192.168.160.1:38170 because of error: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied 2019-04-26 06:59:13.440 UTC [orderer.common.server] func1 -> DEBU 2d9 Closing Broadcast stream 2019-04-26 06:59:13.440 UTC [comm.grpc.server] 1 -> INFO 2da streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.request_deadline=2019-04-26T06:59:28.424Z grpc.peer_address=192.168.160.1:38170 grpc.code=OK grpc.call_duration=2.8451ms 2019-04-26 06:59:13.444 UTC [grpc] infof -> DEBU 2db transport: loopyWriter.run returning. connection error: desc = "transport is closing" ```

ribjethgnis (Fri, 26 Apr 2019 12:40:58 GMT):
when i reigster my chaincode using this CORE_CHAINCODE_ID_NAME="mycc1:v0" npm start -- --peer.address grpc://localhost:7052 it throws error - npm ERR! path /opt/gopath/src/github.com/hyperledger/fabric/peer/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/opt/gopath/src/github.com/hyperledger/fabric/peer/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-04-26T12_38_04_632Z-debug.log

ribjethgnis (Fri, 26 Apr 2019 13:24:31 GMT):

cclocked.PNG

ShwetaTripathi (Fri, 26 Apr 2019 13:42:00 GMT):
Hi, has anyone implemented wallet for multiple user roles?

walmon (Fri, 26 Apr 2019 15:41:30 GMT):
@akoenig what is in the ledger are the hashes - the data is stored as a sidedb that's why it can be purged

walmon (Fri, 26 Apr 2019 15:42:16 GMT):
it's a helper - you could do the same without private data, saving data offchain and storing hashes (the main difference is that with private data you can *process* it with smart contracts, unlike it would be if you just store plain hashes and compute offchain)

Antimttr (Fri, 26 Apr 2019 16:04:50 GMT):
can you join an anchor peer to a channel who is not previously joined to the channel?

jtwalker2000 (Fri, 26 Apr 2019 17:34:35 GMT):
Has joined the channel.

jtwalker2000 (Fri, 26 Apr 2019 17:34:47 GMT):
Hello Channel - I'm looking for documentation on or an example of implementing a WebId-TLS server as an intermediate CA for a Fabric network? Related would be same for reading and authenticating with x.509 certs from a PKCS 12 container for a user. thx !!

JulianSolarte (Fri, 26 Apr 2019 20:12:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AeNqXN6muYpz4g6uf) @ribjethgnis You created that folder in super user mode

AnilSingh (Sat, 27 Apr 2019 05:31:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3yS7tHqGFHKrD2amT) @ribjethgnis looks like your package.json file directory is (the underlying volume) not mounted to container

kavyasri (Sat, 27 Apr 2019 06:17:24 GMT):
Hi,

kavyasri (Sat, 27 Apr 2019 06:17:59 GMT):
while executing the command :docker exec cli peer chaincode install -n $FIRST_CHAINCODE_NAME -p $FIRST_CHAINCODE_SRC -v $CHAINCODE_VERSION getting error like this:

kavyasri (Sat, 27 Apr 2019 06:18:13 GMT):
2019-04-27 06:08:10.109 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2019-04-27 06:08:10.109 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2019-04-27 06:08:10.109 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-04-27 06:08:10.109 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2019-04-27 06:08:10.109 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled Error: Error getting chaincode code chaincode: path to chaincode does not exist: /opt/gopath/src/github.com/chaincode/one Usage: peer chaincode install [flags] Flags: -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -l, --lang string Language the chaincode is written in (default "golang") -n, --name string Name of the chaincode -p, --path string Path to chaincode -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint --logging-level string Default logging level and overrides, see core.yaml for full syntax -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding

kavyasri (Sat, 27 Apr 2019 06:18:32 GMT):
please help me...........

rampanda (Sun, 28 Apr 2019 03:11:37 GMT):
i am re-installing the chaincode after some code changes. Installation on peer is successful but the reinstantiaition is giving errors as following. I am using a different chaincode name/version.

rampanda (Sun, 28 Apr 2019 03:12:21 GMT):
i am re-installing the chaincode after some code changes. Installation on peer is successful but the reinstantiaition is giving errors as following. I am using a different chaincode name/version. Error : 2019-04-28 03:06:09.746 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 0a8 java chaincode enabled 2019-04-28 03:06:09.747 UTC [msp/identity] Sign -> DEBU 0a9 Sign: plaintext: 0AAC070A6A08031A0C08A1B194E60510...6E740A000A04657363630A0476736363 2019-04-28 03:06:09.747 UTC [msp/identity] Sign -> DEBU 0aa Sign: digest: 507366754F679C2675E02F4BBA3844D72E0B87D05B807B3658A0921E5E0B8460 Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0

rampanda (Sun, 28 Apr 2019 03:12:44 GMT):
can someone tell how can i resolve this ?

rampanda (Sun, 28 Apr 2019 03:13:18 GMT):
the earlier version was working fine.

rampanda (Sun, 28 Apr 2019 03:14:58 GMT):
Do i have to rebuild the network which I want to avoid. pl help

rampanda (Sun, 28 Apr 2019 03:23:22 GMT):
I am using a go chaincode

proxycracy (Sun, 28 Apr 2019 03:23:23 GMT):
Has joined the channel.

demiban (Sun, 28 Apr 2019 04:03:10 GMT):
Has joined the channel.

Randyshu2018 (Sun, 28 Apr 2019 08:44:55 GMT):
hi,there are some samples or more informations for https://hyperledger-fabric.readthedocs.io/en/latest/msp.html#best-practices? thanks a lot

tonyyang132 (Sun, 28 Apr 2019 09:05:42 GMT):
Hi, I've got a question about raft setup. I've read through https://hyperledger-fabric.readthedocs.io/en/release-1.4/orderer/ordering_service.html and https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html and came to an understanding that the consenter set is configured on a per channel basis, except for the system channel that needs to include all raft nodes. But from fabric-samples/first-network I failed to find the consenter set defined for the application channel `mychannel` (I assume the `SampleMultiNodeEtcdRaft` profile is for the system channel). Am I missing something here?

yacovm (Sun, 28 Apr 2019 10:16:04 GMT):
@tonyyang132 it is re-used

tonyyang132 (Sun, 28 Apr 2019 10:22:06 GMT):
@yacovm Thanks for your response. But I'm still not quite clear how it is re-used, because I didn't see the `EtcdRaft` definition referenced anywhere else other than in `SampleMultiNodeEtcdRaft`. Can you please elaborate?

tonyyang132 (Sun, 28 Apr 2019 10:25:09 GMT):
Or, if I were to configure only orderer3 through orderer5 for as the consenter set for `mychannel`, how can I do that?

tonyyang132 (Sun, 28 Apr 2019 10:25:09 GMT):
Or, if I were to configure only orderer3 through orderer5 as the consenter set for `mychannel`, how can I do that?

yacovm (Sun, 28 Apr 2019 10:25:17 GMT):
I think it is coped from the system channel

yacovm (Sun, 28 Apr 2019 10:25:17 GMT):
I think it is copied from the system channel

yacovm (Sun, 28 Apr 2019 10:26:28 GMT):
there is a way, to define a subset. look at https://gerrit.hyperledger.org/r/#/c/30938/

tonyyang132 (Sun, 28 Apr 2019 10:27:33 GMT):
So `mychannel` would copy the consenter set from system channel if there isn't an explicit definition for it, am I getting it right?

yacovm (Sun, 28 Apr 2019 10:34:02 GMT):
yes

tonyyang132 (Sun, 28 Apr 2019 10:35:48 GMT):
I see. Thank you so much for the clarification @yacovm .

nicoventrella (Sun, 28 Apr 2019 14:35:50 GMT):
Hi, have anyone tried the RAFT orderer service? I tried to start the network with RAFT following the BYFN example but I'm stuck in a problem related to signcert certificate that miss from the cripto-config folder after the criptogen tool has been executed. I follow the following steps:When I get in the crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp folder, I just see admincerts/ and keystore/ folder. I tried re-executing the criptogen tool but it doesn't work. Do you have any suggestion?

nicoventrella (Sun, 28 Apr 2019 14:35:50 GMT):
Hi, have anyone tried the RAFT orderer service? I tried to start the network with RAFT following the BYFN example but I'm stuck in a problem related to signcert certificate that miss from the cripto-config folder after the criptogen tool has been executed. I follow the following steps: re-generate the cripto material first (file cripto-config.YAML already has specs about the orderers), then i start the container. The logs tell me that orederer container don't find signcert certificate and exited. Actually when I get in the crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp folder, I just see admincerts/ and keystore/ folder. I tried re-executing the criptogen tool but it doesn't work. Do you have any suggestion?

nicoventrella (Sun, 28 Apr 2019 16:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rFZe9QiHKb4kWR9rP) OK! Problem solved.

MrMann (Sun, 28 Apr 2019 22:00:00 GMT):
Has joined the channel.

MrMann (Sun, 28 Apr 2019 22:00:12 GMT):
https://twitter.com/quant_network/status/1121774734503501830?s=20

MrMann (Sun, 28 Apr 2019 22:00:22 GMT):
What does this mean for hyperledger users? I have been told in their telegram that I will need qnt tokens to use hyperledger in the future as their CTO is now in charge of hyper ledger quilt?

sah (Mon, 29 Apr 2019 03:47:50 GMT):
I have a smart contract that I want to be run every time any query is done on a network, is this possible? How do I ensure that it is run by other smart contracts?

lorenzofang (Mon, 29 Apr 2019 05:48:50 GMT):
Has joined the channel.

RahulHundet (Mon, 29 Apr 2019 06:01:00 GMT):
Has joined the channel.

ribjethgnis (Mon, 29 Apr 2019 07:05:55 GMT):
hi , while running the following command for registering chaincode in peer CORE_PEER_TLS_ENABLED=false CORE_CHAINCODE_LOGLEVEL=debug CORE_CHAINCODE_ID_NAME="jetcc1:v0" npm start -- --peer.address grpc://localhost:7052

ribjethgnis (Mon, 29 Apr 2019 07:07:34 GMT):
i am getting the following error 2019-04-29T07:04:55.998Z INFO [lib/chaincode.js] Registering with peer grpc://localhost:7052 as chaincode "jetcc1:v0" 2019-04-29T07:04:56.017Z ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 2 UNKNOWN: Stream removed\n at Object.exports.createStatusError (/home/osboxes/jet/chaincode/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/osboxes/jet/chaincode/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/osboxes/jet/chaincode/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/osboxes/jet/chaincode/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/home/osboxes/jet/chaincode/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/osboxes/jet/chaincode/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/osboxes/jet/chaincode/node_modules/grpc/src/client_interceptors.js:1123:18"

TristanBustillo (Mon, 29 Apr 2019 07:50:06 GMT):
have you guys tried having a private data collection with 2 orgs then overriding the endorsement policy to add one more org through state-based EP? i'm trying that scenario, and after adding the third org, i still cannot query the private data... I'm suspecting that maybe the private data is not synced to other org... any idea? proper setup of anchor peers? transient store? (using java sdk)

nikolas (Mon, 29 Apr 2019 08:40:57 GMT):
Hi guy, a private collection question: Private collections can be deleted from the transient db implicitly after some blocks are committed. Is is possible to delete a collection explicitly from the peers transient DB?

nikolas (Mon, 29 Apr 2019 08:40:57 GMT):
Hi guys, a private collection question: Private collections can be deleted from the transient db implicitly after some blocks are committed. Is is possible to delete a collection explicitly from the peers transient DB?

colasga (Mon, 29 Apr 2019 09:39:46 GMT):
Hi, how should I use "GetBlockByNumber" ? I'm trying to build a block explorer but when I use the QSCC functions it returns values I can't interpret

MuhammedHafil (Mon, 29 Apr 2019 09:46:14 GMT):
Is it possible to add private data which can be shared with different organisations dynamically?

Lorem (Mon, 29 Apr 2019 10:04:19 GMT):
Hey, can someone help me? I'm getting the following error, when i try to run a function to store some data as an invoke call: 2019-04-29T09:50:46.079Z error [_] error: Unhandled Rejection reason TypeError: Illegal buffer promise Promise { TypeError: Illegal buffer at Function.module.exports.ByteBuffer.wrap (/usr/local/src/node_modules/bytebuffer/dist/bytebuffer-node.js:378:23) at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/usr/local/src/node_modules/protobufjs/dist/protobuf.js:1886:39) at Field.ProtoBuf.Reflect.FieldPrototype.verifyValue (/usr/local/src/node_modules/protobufjs/dist/protobuf.js:3499:33) at Message.ProtoBuf.Reflect.MessagePrototype.encode (/usr/local/src/node_modules/protobufjs/dist/protobuf.js:3139:57) at MessagePrototype.encode (/usr/local/src/node_modules/protobufjs/dist/protobuf.js:2675:27) at MessagePrototype.encodeNB (/usr/local/src/node_modules/protobufjs/dist/protobuf.js:2770:37) at handleMessage (/usr/local/src/node_modules/fabric-shim/lib/handler.js:658:35) at at process._tickCallback (internal/process/next_tick.js:188:7) } {"timestamp":"2019-04-29T09:50:46.079Z"}

Lorem (Mon, 29 Apr 2019 10:07:04 GMT):
This is part of my code, where I do something with a buffer: const data = { holder, cert, state, lastEdit, expiry, }; // Store data in ledger try { await stub.putState(FP, Buffer.from(JSON.stringify(data))); return shim.success(); } catch (err) { return shim.error(err); }

jasonn (Mon, 29 Apr 2019 10:59:01 GMT):
Has joined the channel.

jasonn (Mon, 29 Apr 2019 10:59:32 GMT):
Hi There, I'm new to Hyperledger Fabric and discovering it with BYFN tutorial. Can anyone please advise what is the difference between Orderer's genesis block (genesis.block) created on channel configuration and Peer's genesis block (mychannel.block) created on channel joining in the tutorial? In fact, I found they are different in size. Any comments will be much appreciated

jasonn (Mon, 29 Apr 2019 10:59:32 GMT):
Hi There, I'm new to Hyperledger Fabric and playing with BYFN tutorial. Can anyone please advise the difference between Orderer's genesis block (genesis.block) created on channel configuration and Peer's genesis block (mychannel.block) created on channel joining in the tutorial? Any comments will be much appreciated

ribjethgnis (Mon, 29 Apr 2019 11:58:42 GMT):
while instantiate chaincode using below command root@aa4e2ea0644b:/opt/gopath/src/github.com/hyperledger/fabric/peer# CORE_LOGGING_PEER=debug peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n jetcc1 -l node -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer','Org3.MSP.peer')" i am getting the following error : Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network simplenetwork_jet-fabric-network not found

ribjethgnis (Mon, 29 Apr 2019 11:58:42 GMT):
while instantiate chaincode using below command root@aa4e2ea0644b:/opt/gopath/src/github.com/hyperledger/fabric/peer# CORE_LOGGING_PEER=debug peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n jetcc1 -l node -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')" i am getting the following error : Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network simplenetwork_jet-fabric-network not found

ahmadraza (Mon, 29 Apr 2019 12:45:49 GMT):
TypeError: Cannot read property 'curve' of undefined Any solutions ?

Lorem (Mon, 29 Apr 2019 13:09:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6dL4rKWXxoQZCZcGi) @ribjethgnis Could you run "docker network network ls" and post the response?

andrew114 (Mon, 29 Apr 2019 13:29:05 GMT):
Has joined the channel.

andrew114 (Mon, 29 Apr 2019 13:29:16 GMT):
Hi folks , Which is the production stable version for hyper ledger fabric ?

Switch2Logic (Mon, 29 Apr 2019 13:30:12 GMT):
I am having trouble generating a CRL... `Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort `

Switch2Logic (Mon, 29 Apr 2019 13:30:12 GMT):
I am having trouble generating a CRL... `Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort `

Switch2Logic (Mon, 29 Apr 2019 13:30:12 GMT):
I am having trouble generating a CRL... ``` Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

Switch2Logic (Mon, 29 Apr 2019 13:30:12 GMT):
I am having trouble generating a CRL... Running command "fabric-ca-client gencrl" ``` Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

ahmadraza (Mon, 29 Apr 2019 13:40:04 GMT):
Is there is anyway to backup and reuse CA identities? in case of disaster?

ahmadraza (Mon, 29 Apr 2019 13:40:04 GMT):
Is there is anyway to backup and reuse CA identities? in case of disaster? Disaster means host is somehow crashed

Switch2Logic (Mon, 29 Apr 2019 13:55:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=puE2B5hZMWH6yqwGa) @ahmadraza When the corresponding public/private keys are missing for that certificate used to run a query or invoke it will produce that error.

LucasAsafe (Mon, 29 Apr 2019 14:01:45 GMT):
Has joined the channel.

ahmadraza (Mon, 29 Apr 2019 14:04:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LDo6SarEkPSXRWb4v) @Switch2Logic got it. can there is any way that we can persist identities. means if host machine is crashed somehow we can reuse same identities. Because this error is occurred when i forcefully restart my system to check data backup?

ahmadraza (Mon, 29 Apr 2019 14:05:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u4TYscntvbhrXPFj3) Identities are there but did not used and gives Error

Switch2Logic (Mon, 29 Apr 2019 14:09:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u4TYscntvbhrXPFj3) @ahmadraza It does by default store identities in an SQLLite3 database... Witch you could probably backup and restore after a crash... Could also make use of openLDAP... I am not sure how one would update the MSP on the peers tho..

Switch2Logic (Mon, 29 Apr 2019 14:10:02 GMT):
I myself is having trouble with generating CRL and updating the peers. To revoke users

ahmadraza (Mon, 29 Apr 2019 14:10:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=nBkaRfKfNmLzL3kFK) @Switch2Logic Ids are store in sqllite3 . I have look at them but how can we reuse?

Switch2Logic (Mon, 29 Apr 2019 14:13:26 GMT):

Screenshot from 2019-04-29 16-12-54.png

Switch2Logic (Mon, 29 Apr 2019 14:14:40 GMT):
Could maybe overwrite the fabric-ca-server.db... But also need to backup the MSP for peers

ahmadraza (Mon, 29 Apr 2019 14:24:09 GMT):
i have backup these files then restarted my system and paste these files in same folder. Now old identities which are in key-value-store folder are no more usable but when i created new one. it works fine and if i created identity of the name that is already there it gives error of already existed but older one is no more useable. My main objective is to backup and reuse same identities as i have to declare 1000 of identities. Recreating them is not option for me because i have to distribute identities

ahmadraza (Mon, 29 Apr 2019 14:26:37 GMT):
when i get identity list through IdentityService All identities are shown but older one are not useable

ahmadraza (Mon, 29 Apr 2019 14:26:43 GMT):
Can anyone help?

ahmadraza (Mon, 29 Apr 2019 14:48:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=D5CPzHSwJRjubrX4E) @Switch2Logic Is there is any way to make identities again from fabric-ca-server.db file?

Switch2Logic (Mon, 29 Apr 2019 14:53:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=oEm4ZsS8s8ZCbHtvs) @ahmadraza https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#troubleshooting

andrew114 (Mon, 29 Apr 2019 15:59:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=74i4QTCSdvPzThizs) Hi for fabric - can anyone answer , which is the latest stable version for prod use - 1.2 or 1.3 or 1,4 ?

mastersingh24 (Mon, 29 Apr 2019 16:06:35 GMT):
1.4.1

medikent (Mon, 29 Apr 2019 16:10:07 GMT):
Regarding endorsement policies can one organization's endorsement policy reference another organization defined in the same YAML file? For example, `OR('Org1.admin', 'Org2.admin')` where Org1 and Org2 are defined in the same file.

spmcnamara (Mon, 29 Apr 2019 16:31:41 GMT):
I'm trying to get my first MockStub test case working and it appears I'm not constructing the client identity correctly. It appears the sample code just sets a string id "0001", but I think that fails for me since the proper operation of the chaincode depends on details in the user ID. Can anyone point me to how to construct a more complete mock identity? ERROR MSG: Error on Invoke: identity bytes are neither X509 PEM format nor an idemix credential: failed to get attributes from the transaction invoker's idemix credential: creator is nil

andrew114 (Mon, 29 Apr 2019 16:33:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MG7YCTaAgr8icRfkg) @mastersingh24 Thanks !

andrew114 (Mon, 29 Apr 2019 16:34:24 GMT):
Anyone has any links to launch fabric network on AWS ECS ?

Switch2Logic (Mon, 29 Apr 2019 16:36:24 GMT):
``` Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

Switch2Logic (Mon, 29 Apr 2019 16:36:24 GMT):
``` Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

Switch2Logic (Mon, 29 Apr 2019 16:36:24 GMT):
I am having trouble running commands with Fabric-ca-client. Can any one assist me ? ``` Enrollment check failed: Idemix enrollment information does not exist Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort ```

stevenjowens (Mon, 29 Apr 2019 20:36:09 GMT):
Has joined the channel.

JulianSolarte (Mon, 29 Apr 2019 23:03:12 GMT):
How can I see the transactions/actions made by an user?

spmcnamara (Mon, 29 Apr 2019 23:47:07 GMT):
Can anyone tell me what the structure of the "Creator" byte array is? (returned from shim.GetCreator) Digging in the code a bit, it appears to be a struct serialized to JSON, but I haven't managed to find the structure definition.

spmcnamara (Mon, 29 Apr 2019 23:48:18 GMT):
There's a modification to the MockShim in the head of the source repo that modifies it to allow setting and retrieval, but I'm even if I pull that code into the build, I'm not sure how to correctly populate the field.

djraj (Tue, 30 Apr 2019 01:15:33 GMT):
Has joined the channel.

saikumar3349 (Tue, 30 Apr 2019 05:33:02 GMT):
Hello all, Is it possible to add multiple organizations in channel at single channel update?

ribjethgnis (Tue, 30 Apr 2019 05:34:10 GMT):
@Lorem hi i did use docker network ls , and it was giving me the following response and shows the network also NETWORK ID NAME DRIVER SCOPE 3e0413d66a83 bridge bridge local a83d517c4e45 composer_default bridge local 8de6fc110c28 host host local fa2a0c8fc1ac net_basic bridge local 1d85d9c4eda8 none null local 5a9ed013c2ba jet_byfn bridge local 941ef840782f jet_jet-fabric-network bridge local c2e35a61adb1 jetsamples_jetfabric-network bridge local

ribjethgnis (Tue, 30 Apr 2019 05:34:10 GMT):
@Lorem hi i did use docker network ls , and it was giving me the following response and NETWORK ID NAME DRIVER SCOPE 3e0413d66a83 bridge bridge local a83d517c4e45 composer_default bridge local 8de6fc110c28 host host local fa2a0c8fc1ac net_basic bridge local 1d85d9c4eda8 none null local 5a9ed013c2ba jet_byfn bridge local 941ef840782f jet_jet-fabric-network bridge local c2e35a61adb1 jetsamples_jetfabric-network bridge local

MuhammedHafil (Tue, 30 Apr 2019 05:48:33 GMT):
how to persist private data permanent in fabric ?

AshishMishra 1 (Tue, 30 Apr 2019 06:11:04 GMT):
Hi experts, I have setup a fabric cluster on kubernetes using helm charts. I could join the peers to a channel and install chaincode on it. However when I 'm instantiating the chaincode, I am not getting any error the chaincode container also starts successfully on the peer node but it's not registering himself with the peer container somehow. So when I do peer chaincode list --instantiated -C mychannel... I don't see anything. Am I missing some env here?

Switch2Logic (Tue, 30 Apr 2019 06:29:05 GMT):
Hey guys... How can I go about populating the CRL file through the network so that a user certificate can no longer be used to inovke chaincode?

Switch2Logic (Tue, 30 Apr 2019 06:29:05 GMT):
Hey guys... How can I go about populating the CRL file through the network so that a user certificate can no longer be used to invoke chaincode?

ribjethgnis (Tue, 30 Apr 2019 07:08:54 GMT):
hi , when i use this command docker-compose -f docker-compose.yml up -d it creates "Creating network "jet_jet-fabric-network" with the default driver" instead of jet-fabric-network . in docker-compose.yml i am giving networks jet-fabric-network why it is not taking jet-fabric-network rather than jet_jet-fabric netork

Switch2Logic (Tue, 30 Apr 2019 07:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hsEfAeYfeJ7ratEhF) @ribjethgnis ``` networks: jet-fabric-networ: external: true ```

Switch2Logic (Tue, 30 Apr 2019 07:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hsEfAeYfeJ7ratEhF) @ribjethgnis ``` networks: jet-fabric-network: external: true ```

Switch2Logic (Tue, 30 Apr 2019 07:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hsEfAeYfeJ7ratEhF) @ribjethgnis Edit the network section in the docker-compose.yaml file``` networks: jet-fabric-network: external: true ```

Switch2Logic (Tue, 30 Apr 2019 07:25:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hsEfAeYfeJ7ratEhF) @ribjethgnis Create jet-fabric-network with docker and then edit the network section in the docker-compose.yaml file``` networks: jet-fabric-network: external: true ```

ribjethgnis (Tue, 30 Apr 2019 07:56:30 GMT):
@Switch2Logic thanks :)

Switch2Logic (Tue, 30 Apr 2019 07:56:46 GMT):
;) no problem

MuhammedHafil (Tue, 30 Apr 2019 09:19:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Zkt7XCBB66JBx8Zud) @AshishMishra 1 add `CORE_PEER_CHAINCODELISTENADDRESS` to peer container compose file with port 7052

adamhardie (Tue, 30 Apr 2019 09:25:48 GMT):
hi all - i have been experiencing an issue with a java SDK application connecting to a multi-orderer (kafka) hyperledger. The application works fine at first, but after 15 minutes the peer closes the connection, OR the orderer does not complete the DeliverResponse after a successful commit. I have written a sample application with e2e junit and a sample hyperledger network configuration and setup script to reproduce the issue. could i please ask someone to reproduce and help me figure out what I am doing wrong ?

Lorem (Tue, 30 Apr 2019 09:48:02 GMT):
Hey, what is in your opinion the best way to learn on how to create a whole fabric network including network configuration, chaincode development and cryptographic settings? The tutorials are not not that detailed imo and I feel like it requires much more sources to gather all that information.

AjeeshJohn (Tue, 30 Apr 2019 09:50:53 GMT):
Has joined the channel.

AjeeshJohn (Tue, 30 Apr 2019 09:51:00 GMT):
Hi, I was trying to connect to state couch database, i have changed credentials in docker-compose.yml as per mentioned in the document, But when I try to start fabric, getting error as follows 019-04-30 09:27:11.720 UTC [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 064 Error during CouchDB CreateDatabaseIfNotExist() for system dbName: _users error: Couch DB Error:unauthorized, Status Code:401, Reason:You are not a server admin. I have verified my couch db login credentials, Those are correct. FYI: I have hosted couch db in an another EC2 instance

AjeeshJohn (Tue, 30 Apr 2019 09:51:00 GMT):
Hi, I was trying to connect to state couch database, i have changed credentials in docker-compose.yml as per mentioned in the document, But when I try to start fabric, getting error as follows ```019-04-30 09:27:11.720 UTC [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 064 Error during CouchDB CreateDatabaseIfNotExist() for system dbName: _users error: Couch DB Error:unauthorized, Status Code:401, Reason:You are not a server admin.``` I have verified my couch db login credentials, Those are correct. FYI: I have hosted couch db in an another EC2 instance

ribjethgnis (Tue, 30 Apr 2019 10:05:53 GMT):
not able to resolve this issue when i am using the follwoing command to instantiate chaincde peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C jetchannel -n jetcc1 -l node -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'','\''Org3MSP.peer'\'')' it throws error - Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network sample_jet-fabric-network not found in docker-compose my network name is - "jet-fabric-network" and in peer section - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=sample_jet-fabric-network docker network ls shows jet-fabric-network but why while instantiate it looks for sample_jet-fabric-network

sahilgoel (Tue, 30 Apr 2019 10:08:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CxCCX473yuf7wZcWt) @ribjethgnis because you have specified it CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=sample_jet-fabric-network

sahilgoel (Tue, 30 Apr 2019 10:09:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CxCCX473yuf7wZcWt) @ribjethgnis change it to CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_jet-fabric-network

pmamatsis (Tue, 30 Apr 2019 10:25:46 GMT):
Has joined the channel.

ribjethgnis (Tue, 30 Apr 2019 10:26:13 GMT):
@sahilgoel should i keep the same name "CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=jet-fabric-network" or "CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_jet-fabric-network" why net_ ?

pmamatsis (Tue, 30 Apr 2019 10:26:50 GMT):
Hello to everyone! Is there any tutorial about setting up a multi node fabric network?

Switch2Logic (Tue, 30 Apr 2019 12:35:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9MZhFW6coKzijR8gX) @pmamatsis Check out my repositories they might be of help -> https://github.com/Switch2Logic/first-fabric-network-setup

ribjethgnis (Tue, 30 Apr 2019 12:38:48 GMT):
i have instantiate the chaincode and now using the below command for invoking and then querying peer chaincode invoke -n jetcc1 -C jetchannel -c '{"Args":["transfer","A","B","10"]}' -o orderer.example.com:7050 but i am getting this continuously 2019-04-30 12:36:05.368 UTC [grpc] infof -> DEBU 064 transport: loopyWriter.run returning. connection error: desc = "transport is closing" 2019-04-30 12:36:05.368 UTC [grpc] HandleSubConnStateChange -> DEBU 065 pickfirstBalancer: HandleSubConnStateChange: 0xc0005b8520, TRANSIENT_FAILURE 2019-04-30 12:36:05.369 UTC [grpc] HandleSubConnStateChange -> DEBU 066 pickfirstBalancer: HandleSubConnStateChange: 0xc0005b8520, CONNECTING 2019-04-30 12:36:05.369 UTC [grpc] HandleSubConnStateChange -> DEBU 067 pickfirstBalancer: HandleSubConnStateChange: 0xc0005b8520, TRANSIENT_FAILURE ^C

MartaCeprini (Tue, 30 Apr 2019 13:01:27 GMT):
Has joined the channel.

ahmadraza (Tue, 30 Apr 2019 13:18:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZtkxoNSqYsbnPMx2p) I am starting ca-server with the same cert/key files but Using old identity gives error: TypeError: Cannot read property 'curve' of undefined Can anyone help or suggest better way to backup ca-server so that ids can be reuseable

ribjethgnis (Tue, 30 Apr 2019 13:22:07 GMT):

error.PNG

ribjethgnis (Tue, 30 Apr 2019 13:22:07 GMT):

error.PNG

ahmadraza (Tue, 30 Apr 2019 13:22:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W3dpn5HkXssBhS3YJ) When i start again new bootstap identity admin is created and there is two identities with name 'admin' in fabric-ca-server.db file

GirishManchapanahalli (Tue, 30 Apr 2019 15:12:15 GMT):
Can somebody tell me the last stable version of the hyperledger ?

yacovm (Tue, 30 Apr 2019 15:48:51 GMT):
1.4.1

muellerdberlin (Tue, 30 Apr 2019 22:57:13 GMT):
Has joined the channel.

muellerdberlin (Tue, 30 Apr 2019 22:57:18 GMT):
hey does anyone know more about the java chaincode implementation and how to find out "msg.sender"?

vhulendamoraba (Wed, 01 May 2019 01:03:59 GMT):
Has joined the channel.

chinmaym (Wed, 01 May 2019 02:40:06 GMT):
Has joined the channel.

ribjethgnis (Wed, 01 May 2019 12:44:15 GMT):
peer chaincode query -C jetchannel -n jetcc1 -c '{"Args":["query","a"]}' getting this error - 2019-05-01 12:32:42.475 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-04-22 10:16:37 +0000 UTC 2019-05-01 12:32:42.475 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-05-01 12:32:42.478 UTC [grpc] DialContext -> DEBU 037 parsed scheme: "" 2019-05-01 12:32:42.479 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2019-05-01 12:32:42.479 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0.org1.example.com:7051 0 }] 2019-05-01 12:32:42.479 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2019-05-01 12:32:42.479 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc00051fb50, CONNECTING 2019-05-01 12:32:42.485 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc00051fb50, READY 2019-05-01 12:32:42.487 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2019-05-01 12:32:42.487 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2019-05-01 12:32:42.487 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0.org1.example.com:7051 0 }] 2019-05-01 12:32:42.487 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2019-05-01 12:32:42.487 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc0001adef0, CONNECTING 2019-05-01 12:32:42.492 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc0001adef0, READY 2019-05-01 12:32:42.493 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-05-01 12:32:42.495 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AB0070A6C08031A0C08EAA3A6E60510...746363311A0A0A0571756572790A0161 2019-05-01 12:32:42.496 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 6A4DE7AFC6870C4BBB284DD3A6B341A51CC84BC41C45312D17AC301515E7D9AE Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 426d35e005e6c82b9d3ea598b654bd1991e5a3e31a039aa85c5fc196cf46a1ed: error sending: timeout expired while executing transaction"

Fernando_Diaz_Luque (Wed, 01 May 2019 14:38:26 GMT):
Has joined the channel.

gomanthbere (Wed, 01 May 2019 17:58:18 GMT):
Has joined the channel.

gomanthbere (Wed, 01 May 2019 17:58:51 GMT):
Can I customize the hyper ledger fabric to meet my own needs

gregnotso (Thu, 02 May 2019 00:22:07 GMT):
i would try to figure out licensing before thinking of any production deployments

n0rbs (Thu, 02 May 2019 02:42:53 GMT):
Has joined the channel.

n0rbs (Thu, 02 May 2019 02:54:26 GMT):
Hi. How do we test all cryptographic operations used in Fabric-Client (encryption, decryption, hashing, signing) and key management procedures (generation, distribution, installation, renewal, revocation and expiry)? We would like to know if anyone is doing this right now and can share. Thanks

n0rbs (Thu, 02 May 2019 02:54:46 GMT):
fabric

NguyenHien (Thu, 02 May 2019 03:33:29 GMT):
Has joined the channel.

NguyenHien (Thu, 02 May 2019 03:35:06 GMT):
Hello. I want to know how to interact with fabric when we dployed composer to fabric??/

NguyenHien (Thu, 02 May 2019 03:35:14 GMT):
Please help me

Pradeep_Pentakota (Thu, 02 May 2019 04:39:02 GMT):
Increase the connTimeout value to 10secs by adding the parameter connTimeout @ribjethgnis [ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wFd38gMtpmvfYM5rK)

BChain_Dev (Thu, 02 May 2019 05:04:39 GMT):
@All: I want to create two channels in a network. Does we require two genesis block or one genesis block is enough?

Psingh (Thu, 02 May 2019 05:54:08 GMT):
I'm facing below issue when trying to instantiate the chaincode using fabric-go-sdk. Please help. ``` Value of setup.Orderer is: orderer.firstproject.com Channel created Channel joined Initialization Successful ccPkg created Chaincode installed Unable to install and instantiate the chaincode: failed to instantiate the chaincode: failed to get discovery service: could not get chConfig cache reference: read configuration for channel peers failed [fabsdk/util] 2019/05/01 11:49:30 UTC - lazyref.(*Reference).refreshValue -> WARN Error - initializer returned error: read configuration for channel peers failed. Will retry again later ``` config.yaml : https://ideone.com/UY5Dbe

JorgeNavarro (Thu, 02 May 2019 07:25:43 GMT):
Hello, i have a 3 node network, how many orderers should i have?

benjamin.verhaegen (Thu, 02 May 2019 08:22:56 GMT):
Dear community, can somebody tell me why this code doesn't add my asset to the world state? `async registerAd(ctx, userId, adId, createdOn, title, category, from, to, text){ let userdata = await ctx.stub.getState(userId); let user; console.log("Data: " + userdata.toString()); if (userdata || userdata.toString()){ user = JSON.parse(userdata.toString()); if( user.userId !== userId){ throw new Error("User not identified"); } } else { throw new Error("User not found"); } let ad = { userId: userId, adId: adId, createdOn: createdOn, title: title, category: category, from: from, to: to, text: text, comments: [] }; await ctx.stub.putState(adId, Buffer.from(JSON.stringify(ad))); //add adId to 'ads' key let data = await ctx.stub.getState('ads'); if (data) { let ads = JSON.parse(data.toString()); ads.push(adId); await ctx.stub.putState('ads', Buffer.from(JSON.stringify(ads))); } else { throw new Error('ads registry not found'); } return JSON.stringify(ad); }`

florianc (Thu, 02 May 2019 08:27:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=evR6deMsLuuLGe9qi) @benjamin.verhaegen Is there an error when you run this?

florianc (Thu, 02 May 2019 08:27:57 GMT):
await ctx.stub.putState(adId, Buffer.from(JSON.stringify(ad))); Are you sure adld is a string?

benjamin.verhaegen (Thu, 02 May 2019 08:28:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BQHmNePBPMS3yAKaj) @florianc No it doesn't return errors, but when executing a query it returns empty {}

benjamin.verhaegen (Thu, 02 May 2019 08:29:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bwPPHBia9DyQtKTDu) @florianc Yes AdId is a string, I use this: /** * * @param {Context} ctx * @param {String} userId * @param {String} adId * @param {Date} createdOn * @param {String} title * @param {String} category * @param {String} from * @param {String} to * @param {String} text */

ANKITPODDAR (Thu, 02 May 2019 08:52:58 GMT):
Has joined the channel.

ANKITPODDAR (Thu, 02 May 2019 08:53:22 GMT):
while running chaincode it showing go-dir not found

ANKITPODDAR (Thu, 02 May 2019 08:53:37 GMT):
i have set path for go root and go-dir

malak (Thu, 02 May 2019 09:14:16 GMT):
Has joined the channel.

ONRising (Thu, 02 May 2019 09:29:39 GMT):
Has joined the channel.

ribjethgnis (Thu, 02 May 2019 11:10:01 GMT):
while using this command CORE_CHAINCODE_ID_NAME="mychannel:v0" node jetcc1.js --peer.address grpc://localhost:7052 i am getting the following erro ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 2 UNKNOWN: Stream removed\n at Object.exports.createStatusError

ribjethgnis (Thu, 02 May 2019 11:10:57 GMT):
and if i use this command node jetcc1.js --peer.address grpc://localhost:7052 i get the following error ERROR [lib/handler.js] uncaughtException: Illegal value for namevalue element of type string: undefined (not a string)

ribjethgnis (Thu, 02 May 2019 11:12:33 GMT):
this is my chaincode const shim = require('fabric-shim'); const util = require('util'); var Chaincode = class { async Init(stub) { let ret = stub.getFunctionAndParameters(); let args = ret.params; if (args.length != 4) { return shim.error("Incorrect number of arguments. Expecting 4"); } let a = args[0]; let aValue = args[1]; let b = args[2]; let bValue = args[3]; try { await stub.putState(a, Buffer.from(aValue)); await stub.putState(b, Buffer.from(bValue)); return shim.success(Buffer.from("Initialized success")); } catch (e) { return shim.error(e); } } async Invoke(stub) { let ret = stub.getFunctionAndParameters(); let fcn = this(ret.fcn); fcn(stub,ret.params); } async transfer(stub,args) { let a=args[0]; let b=args[1]; let value= args[2]; let amount=parseInt(value); let aBalance = await stub.getState(a); let bBalance = await stub.getState(b); aBalance=parseInt(aBalance) - amount; bBalance=parseInt(bBalance) + amount; await stub.putState(a,Buffer.from(aBalance.toString())); await stub.putState(b,Buffer.from(bBalance.toString())); return shim.success(Buffer.from("Transfer Successfull")); } async query(stub,args) { let a=args[0]; let aBalance = await stub.getState(a); return shim.success(aBalance); }

ribjethgnis (Thu, 02 May 2019 11:24:55 GMT):
I have installed my chaincode on peers . and instantiate also , but while involking and quering its show error. so i am not sure what my chaincode is running properly on peers. and i am using the above code to test and run my chaincode . but i am not able to get through it. its show erros

Shivi (Thu, 02 May 2019 12:06:31 GMT):
Has joined the channel.

MichaelMarcotrigiano (Thu, 02 May 2019 12:22:24 GMT):
Hi guys after I register a new user under an organisation I get my files under the store directory. I'm trying to use the secret key to enroll the user but I've got code":0,"message":"No rows were affected when updating the state of identity. Any tips?

poojaKamat (Thu, 02 May 2019 12:47:04 GMT):
Hi , required help in running Hyperledger Fabric components on bare metal ? Is there any documentation available on this ?

dsessions (Thu, 02 May 2019 15:23:46 GMT):
Has joined the channel.

BChain_Dev (Thu, 02 May 2019 16:00:40 GMT):
Hi i am getting below error, while trying to join the channel from org2 peer....I have created channel block in org1 peer and able to join the channel......but in org2 peer even though i have over-ride CLI properties getting below error

BChain_Dev (Thu, 02 May 2019 16:00:43 GMT):
Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [org2MSP])

SaphiraBjartskular (Thu, 02 May 2019 16:47:55 GMT):
At what point does the size of the composite key become an issue

PallabPaul (Thu, 02 May 2019 18:29:14 GMT):
What are people's thought on AWS blockchain managed services? Will this lower the need for fabric administrators or experts?

peters (Thu, 02 May 2019 19:09:52 GMT):
Hi anyone tried to change from goleveldb to CouchDB can this be done after peer was running for some time and some transactions already happened on the channel ?

peters (Thu, 02 May 2019 19:48:41 GMT):
Forget this question It is possible :)

peters (Thu, 02 May 2019 19:49:03 GMT):
and old transactions are in couchdb

KennethMyatt (Thu, 02 May 2019 21:21:47 GMT):
Has joined the channel.

KennethMyatt (Thu, 02 May 2019 21:23:11 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'channel1', could not succesfully apply update to template configuration: error authorizing update: error validating Hi I could really use some help, I've been stuck getting this error for Days.... I am just simply trying to a create the initial channel on the network: "DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied"

LinuxLearner1 (Thu, 02 May 2019 21:24:55 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'channel1', could not succesfully apply update to template configuration: error authorizing update: error validating Hi I could really use some help, I've been stuck getting this error for Days.... I am just simply trying to a create the initial channel on the network: "DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied"

medikent (Thu, 02 May 2019 22:00:00 GMT):
@LinuxLearner1 looks like an endorsement policy problem.

aspring (Thu, 02 May 2019 22:12:02 GMT):
@gregnotso have you tried adding a third user with Fabtoken?

aspring (Thu, 02 May 2019 22:14:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CtHkabGJPmDorbW5Q) @caveman7 curious to know if you have actually tried out fabtoken core features...

gregnotso (Thu, 02 May 2019 22:42:55 GMT):
@aspring i have and it seems to be working, so maybe i should try to update the Gerrit/Jenkins/Github with my modifications?

gregnotso (Thu, 02 May 2019 22:44:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Du7vmjkD4Rxd25SSC) @PallabPaul too pricey (for an open source) and too complex (for a casual business user) when i tried it back in December when it came out

gregnotso (Thu, 02 May 2019 23:16:08 GMT):
'i don't know what i'm doing': https://jira.hyperledger.org/browse/FAB-15328 🤔🧐😂

ygnr (Thu, 02 May 2019 23:25:34 GMT):
deterministic

jlau (Fri, 03 May 2019 01:06:13 GMT):
Has joined the channel.

yerganat (Fri, 03 May 2019 03:48:07 GMT):
Has joined the channel.

yerganat (Fri, 03 May 2019 03:48:20 GMT):
hello all I am interested on collobarate in hyperladger fabric java sdk

yerganat (Fri, 03 May 2019 03:49:29 GMT):
How i can involved? where i can get tasks to make and request pull ?

sah (Fri, 03 May 2019 04:09:37 GMT):
I have a question about ACLs, where are the feilds defined (that is, what do the 'type' values mean? Where do ACL entries go in a config.json? and so on)

sah (Fri, 03 May 2019 04:09:37 GMT):
I have a question about ACLs, where are the fields defined (that is, what do the 'type' values mean? Where do ACL entries go in a config.json? and so on)

sah (Fri, 03 May 2019 04:35:46 GMT):
ok, type is defined in `github.com/hyperledger/fabric/protos/common/policies.proto`, there's an enum ``` PolicyType { Unknown = 0; Signature = 1; ```

sah (Fri, 03 May 2019 04:35:46 GMT):
ok, type is defined in `github.com/hyperledger/fabric/protos/common/policies.proto`, there's an enum ``` PolicyType { Unknown = 0; Signature = 1; MSP = 2; Implicit_Meta = 3; }

abityildiz (Fri, 03 May 2019 06:30:19 GMT):
hi all,i have 7 organizations.how many should I create to orderer?

Shivi (Fri, 03 May 2019 06:57:32 GMT):
In the Fabric-FAQ on the Data Privacy and Access Control section it is noted: " within a channel you can restrict the input data to chaincode to the set of endorsers only, by using visibility settings. The visibility setting will determine whether input and output chaincode data is included in the submitted transaction, versus just output data." I cannot find where to configure these visibility options . Can you point me to a direction?

Psingh (Fri, 03 May 2019 07:07:10 GMT):
Can anyone please help me? https://stackoverflow.com/questions/55936208/failed-to-get-discovery-service-could-not-get-chconfig-cache-reference-read-co

alokkv (Fri, 03 May 2019 07:37:07 GMT):
hi friends, is there a way to move all blocks from one channel to another channel

alokkv (Fri, 03 May 2019 07:37:07 GMT):
hi friends, is there a way to move all blocks from one channel to another channel ?

alokkv (Fri, 03 May 2019 07:37:07 GMT):
hi friends, is there a way to move all blocks from one channel to another channel ? if yes can you please provide some documentation. i am trying to move data from one channel to another

alokkv (Fri, 03 May 2019 07:37:07 GMT):
hi friends, is there a way to move all blocks from one channel to another channel ? if yes can you please provide some documentation. i am trying to move data from one channel to another.thanks

benjamin.verhaegen (Fri, 03 May 2019 08:38:55 GMT):
Can somebody help me with this error message: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

benjamin.verhaegen (Fri, 03 May 2019 08:39:05 GMT):
appears when trying to deploy nodejs chaincode

miguelreisa (Fri, 03 May 2019 09:31:29 GMT):
Has joined the channel.

miguelreisa (Fri, 03 May 2019 09:32:55 GMT):
Hello, I would like to try to, in a chaincode function, make each endorser sign something (e.g. variable, certificate, etc..) and send the value signed as the response. Is this possible? If not, where should I try to modify fabric's code to implement this? Thank you

aspring (Fri, 03 May 2019 11:18:01 GMT):
@gregnotso, so, how did you add the third user's identity and credentials? via cryptogen tool and then enroll and register with fabric-ca? could you explain your process?

benjamin.verhaegen (Fri, 03 May 2019 11:24:04 GMT):
Can somebody help me with this error message: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 appears when trying to deploy nodejs chaincode

dave.enyeart (Fri, 03 May 2019 11:47:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PDGzwsN6kMWLc2nkX) @alokkv You would have to resubmit new transactions to the other channel. Transactions processing is scoped to the channel configuration policies, and therefore it wouldn't make sense to simply copy blocks/transactions between channels

dave.enyeart (Fri, 03 May 2019 11:47:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PDGzwsN6kMWLc2nkX) @alokkv You would have to resubmit new transactions to the other channel. Transaction processing is scoped to the channel configuration policies, and therefore it wouldn't make sense to simply copy blocks/transactions between channels

dave.enyeart (Fri, 03 May 2019 11:52:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=XWAHJ7L7ufpFpr3Pf) @Shivi That sentence was incorrect and removed from the docs a long time ago. Since v1.2 you have the ability to utilize private data collections if you don't want certain data to be included in the on-chain transaction.

malak (Fri, 03 May 2019 11:58:11 GMT):
hi can anybody guide me how can I create different types of users using fabric ca, who can be given permissions to submit/perform specific chaincode functions on the network

dave.enyeart (Fri, 03 May 2019 12:00:36 GMT):
@malak Please see https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#attribute-based-access-control

malak (Fri, 03 May 2019 12:11:31 GMT):
@dave.enyeart Thanks :) I have checked this section, this involves setting permissions in the chain code functions for particular attributes of user. But I want to know how can we set similar permissions using Fabric CA, Access control list/configtx.yaml file or any other files. I couldn't find proper guide to utilize Access control list feature of HL Fabric

dave.enyeart (Fri, 03 May 2019 12:20:12 GMT):
@malak Your question mentioned "specific chaincode functions", in which case you must embed the access control logic within the chaincode itself, for example using attribute based access control. If you are talking about channel level access control see https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html. These are the two levels of access control.

mfaisaltariq (Fri, 03 May 2019 13:44:57 GMT):
What is the difference b/w installing and instantiating chain code? Have read a lot material but still confused with the concept and the purpose behind it. I know that chaincode is installed on peer and instantiated on the channel but why and why there are separate images for each peer for the chaincode?

florianc (Fri, 03 May 2019 14:07:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GPmGmQhwjmpDoNqFg) @mfaisaltariq When you install the chaincode on a peer. Only this peer knows the chaincode, but it cannot execute it. When you instantiate the chaincode, you broadcast it into the channel and all peers install and instantiate it (this is not actually true, the procedure is a bit more complicated that that, but it makes it easier to understand). When instantiated, the chaincode can be executed. Each peer has an "image" (a container to be more specific) of this chaincode because they may have to endorse it (simulate it and send the simulation result).

mfaisaltariq (Fri, 03 May 2019 14:26:22 GMT):
@florianc okay so to make it clear. If I install the chaincode on all the peers and do not instantiate it, then no peer would be able to execute it (Understood). But let me give you a scenario that I went through. I installed the chaincode on all peers or all Orgs. Then I instantiated the chaincode from lets say peer0.Org1, an image and container with the chaincode for peer0.org1 was started. Then I queried the chaincode from peer0.Org2 and another image and container for the chaincode of peer0.Org2 was started, my question is why the other container was started? Why isn't there only one container if the chaincode is instantiated on the channel. Isn't this redundancy or Is it some kind of security or other feature?

mfaisaltariq (Fri, 03 May 2019 14:26:22 GMT):
@florianc okay so to make it clear. If I install the chaincode on all the peers and do not instantiate it, then no peer would be able to execute it (Understood). But let me give you a scenario that I went through. I installed the chaincode on all peers for all Orgs. Then I instantiated the chaincode from lets say peer0.Org1, an image and container with the chaincode for peer0.org1 was started. Then I queried the chaincode from peer0.Org2 and another image and container for the chaincode of peer0.Org2 was started, my question is why the other container was started? Why isn't there only one container if the chaincode is instantiated on the channel. Isn't this redundancy or Is it some kind of security or other feature?

mfaisaltariq (Fri, 03 May 2019 14:26:22 GMT):
@florianc okay so to make it clear. If I install the chaincode on all the peers and do not instantiate it, then no peer would be able to execute it (Understood). But let me give you a scenario that I went through. I installed the chaincode on all peers for all Orgs. Then I instantiated the chaincode from lets say peer0.Org1, an image was created and container with the chaincode for peer0.org1 was started. Then I queried the chaincode from peer0.Org2 and another image was created and container for the chaincode of peer0.Org2 was started, my question is why the other container was started? Why isn't there only one container if the chaincode is instantiated on the channel. Isn't this redundancy or Is it some kind of security or other feature?

florianc (Fri, 03 May 2019 14:39:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GWHH4DvuSkxwcfNsM) @mfaisaltariq The channel is not really something that "exists". You should consider it more like a technique for partitioning the network. Or like a logical subnetwork of communication between your peers. (Not sure if my vocabulary is correct though, do not hesitate to correct me!) For the instantiation, here is the reason: Your chaincode has endorsement policies. When you instantiated the CC on the channel, all the peers got the message that this chaincode should be executable. Then you send a transaction/query to the peer0.org1, which is member of the channel. The peer knows that this chaincode should be "endorsable". As a consequence, it created the container on its side to simulate transactions/query the world state if necessary. (Others: Do not hesitate to correct me if I am mistaken)

florianc (Fri, 03 May 2019 14:39:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=GWHH4DvuSkxwcfNsM) @mfaisaltariq The channel is not really something that "exists". You should consider it more like a technique for partitioning the network. Or like a logical subnetwork of communication between your peers. (Not sure if my vocabulary is correct though, do not hesitate to correct me!) For the instantiation, here is the reason: Your chaincode has endorsement policies. When you instantiated the CC on the channel, all the peers got the message that this chaincode should be executable. Then you send a transaction/query to the peer0.org1, which is member of the channel. The peer knows that this chaincode should be "endorsable". As a consequence, it created the container on its side to simulate transactions/query the world state if necessary, as indicated in the endorsement policies. (Others: Do not hesitate to correct me if I am mistaken)

ahmadraza (Fri, 03 May 2019 15:16:49 GMT):
I am following https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html to add new organization to network no error is reported but when i try to invoke chaincode it gives error "Failed to invoke chaincode. cause:invoke chaincode proposal resulted in an error :: Error: failed to execute transaction 3615ad2a89d8e557c17d63da398a6a96fa84b6968c92bdd72a2380b98e0c93f3: [channel mychannel] could not launch chaincode mycc:v0: chaincode registration failed: container exited with 0"

ahmadraza (Fri, 03 May 2019 15:17:02 GMT):
Any Workarounds?

dsessions (Fri, 03 May 2019 16:00:59 GMT):
Hey there, I'm trying to get a 2.0.0-alpha installation up and running. I'm to the point where I'm creating channels, and get the following error message.

dsessions (Fri, 03 May 2019 16:01:11 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'payments', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied command terminated with exit code 1

dsessions (Fri, 03 May 2019 16:01:37 GMT):
I've been running a 1.4.0 installation just fine, and used those configs as the basis for this deployment.

dsessions (Fri, 03 May 2019 16:02:43 GMT):
I'm running the peer channel create with CORE_PEER_MSPCONFIGPATH=$ADMIN_MSP_PATH prepended

dsessions (Fri, 03 May 2019 16:04:24 GMT):
I've checked the OUs in the CA config and the fabric-ca-client-config.yaml both, and they're the same. I'm sure it's something to do with the policies in configtx.yaml, but I'm using a vanilla set of policies I copied over from the fabric samples with the 2.0.0-alpha tag

dsessions (Fri, 03 May 2019 16:06:14 GMT):
I'm curious if there is an ACL policy I'm missing perhaps? I've already seen in the fabric issue tracker where this specific error message has been revised to be a bit more verbose. I'm still wrapping my head around the policies, so I'm at a loss at the moment.

dsessions (Fri, 03 May 2019 16:06:42 GMT):
Any help would be greatly appreciated :)

spmcnamara (Fri, 03 May 2019 16:09:55 GMT):
Can anyone give me some pointers on how to test a transaction using MockShim that makes use of calls to cid.GetID()? I'm on HLF v1.4 and have pulled in MockShim changes from the master described here (https://jira.hyperledger.org/browse/FAB-5644), but clearly don't have things setup correctly. Testing the ID checks is pretty critical, but I'd really like to avoid having to actually install/instantiate on a real instance during development in order to test.

stevie20 (Fri, 03 May 2019 16:21:46 GMT):
Hi all, I tried to add a new organization to my network, peer is able to join but i cannot invoke chaincode with error VSCC error: endorsement policy failure, err: signature set did not satisfy policy ... Any hint to fix this?

stevie20 (Fri, 03 May 2019 16:25:40 GMT):
Hi @ahmadraza was somebody able to help you?

stevie20 (Fri, 03 May 2019 16:35:13 GMT):
On instantiation i used the following command

stevie20 (Fri, 03 May 2019 16:35:15 GMT):
peer chaincode upgrade -o orderer.example.com:7050 --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -v 2.0 -c '{"Args":["init","a","90","b","210"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"

stevie20 (Fri, 03 May 2019 16:35:48 GMT):
I guess, this means any peer from Org1 or Org2 should be able to invoke chaincode...

stevie20 (Fri, 03 May 2019 16:35:59 GMT):
But no peer is able to do this...

stevie20 (Fri, 03 May 2019 17:13:22 GMT):
Can at least somebody tell me how to identify, which identity was used to sign the transaction?

gregnotso (Fri, 03 May 2019 17:13:43 GMT):
@aspring i just bumped up the user count here: "# Count: The number of user accounts _in addition_ to Admin # --------------------------------------------------------------------------- Users: Count: 3"

gregnotso (Fri, 03 May 2019 17:15:35 GMT):
not sure if it had any bearing but i have replaced the default "mychannel" with my own

gregnotso (Fri, 03 May 2019 17:17:49 GMT):
the rest of the changes are a little rewrite of the fabtoken.js file and commenting out unnecessary log statements

stevie20 (Fri, 03 May 2019 17:21:53 GMT):
@gregnotso do you know how to check which identity was used to sign a transaction?

stevie20 (Fri, 03 May 2019 17:22:24 GMT):
I got an error message claiming identity 0 does not satisfy principal: The identity is not a [PEER] under this MSP [Org2MSP]: NodeOUs not activated. Cannot tell apart identities.

stevie20 (Fri, 03 May 2019 17:24:26 GMT):
I tried to set CORE_PEER_MSPCONFIGPATH="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp" and to peerOrganizations/org2.example.com/pe ers/peer0.org2.example.com/msp but none of this worked...

gregnotso (Fri, 03 May 2019 17:30:20 GMT):
i don't remember ever going to org2 everything is within org1 and i only have 4 containers running for the basic network

stevie20 (Fri, 03 May 2019 17:31:43 GMT):
ok, thank you...

aspring (Fri, 03 May 2019 17:50:16 GMT):
@gregnotso yeah, bumping Users count to 3 for the crypto-config.yaml, then, did you run cryptogen to generate new identity and crypto credentials for the new user? After that, did you do anything else other than a little re-write of the fabtoken.js file?

stevie20 (Fri, 03 May 2019 18:00:37 GMT):
ok, updating the endorsement policy to Org1.member or Org2.member did solved my issue... That brings me to the question, how to choose the peer identity?

Stewtherealbosshog (Fri, 03 May 2019 19:18:42 GMT):
Has joined the channel.

Stewtherealbosshog (Fri, 03 May 2019 19:18:58 GMT):
Hello. I have been getting this issue, where it says it cannot find the docker compose yml file that is located in my folder when attempting to execute the startFabric.sh file. I am using Git as my terminal software. Earlier I ran into an issue that said I couldn't find the configuration channel tx file, but I solved that issue earlier by using export MSYS_NO_PATHCONV=1 command. I tried uninstalling and then reinstalling. I suspect it has something to do with my environment on my Windows.

oussmea (Sat, 04 May 2019 00:42:36 GMT):
Has joined the channel.

PallabPaul (Sat, 04 May 2019 04:24:13 GMT):
Hello, I was just wondering when/who is meant to use the Fabric CA and if/how it is being used in the byfn tutorial.

PallabPaul (Sat, 04 May 2019 04:30:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HDy5K7rAw4z5afmW7) Also adding to this, does cryptogen create our CA's for the byfn tutorial but for production we should be using the Fabric CA?

PallabPaul (Sat, 04 May 2019 04:30:43 GMT):
Also, does cryptogen create our CA's for the byfn tutorial but for production we should be using the Fabric CA?

malak (Sat, 04 May 2019 08:58:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JFeuh3iJnsXw7zcBd) @dave.enyeart Thanks a lot for ur help :)

APelser (Sat, 04 May 2019 11:52:59 GMT):
Has joined the channel.

alokkv (Sat, 04 May 2019 12:37:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2h3gXN3S6qtjAPn2E) @dave.enyeart thank you

MontassarGarfa (Sat, 04 May 2019 19:04:31 GMT):
Has joined the channel.

MontassarGarfa (Sat, 04 May 2019 19:06:40 GMT):
Hello friends, i have an internship based on hyperledger fabric. I’m blocked and i wanna know how to add / remove channel in existing network (network up ) thanks

oussmea (Sat, 04 May 2019 22:19:45 GMT):
Hello friends, I downlaoded the fabric-sdk-node and I'm trying to test it , the problem that I'm having when I run gulp test-headless , I'm getting error: task function must be specified. I google it but I didn't find any solution

oussmea (Sat, 04 May 2019 22:29:01 GMT):
@MontassarGarfa try this command $../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME

RichardLi (Sat, 04 May 2019 22:59:14 GMT):
Has joined the channel.

ferpzfresh (Sun, 05 May 2019 05:24:16 GMT):
Has joined the channel.

LinuxLearner1 (Sun, 05 May 2019 21:30:59 GMT):
LinuxLearner1

LinuxLearner1 (Sun, 05 May 2019 21:31:51 GMT):
Can anyone explain this error & what I must do to fix it? /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

LinuxLearner1 (Sun, 05 May 2019 21:32:30 GMT):
I never set any policies

Randyshu2018 (Mon, 06 May 2019 03:26:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4GySau2b8Baj9bFLB) @LinuxLearner1 default channel create policy need one of org admins, u can fetch channel config to check policy

PranjalYadav (Mon, 06 May 2019 04:08:16 GMT):
Has joined the channel.

FenixH (Mon, 06 May 2019 04:19:27 GMT):
Has joined the channel.

FenixH (Mon, 06 May 2019 04:23:01 GMT):
Does anyone know how to parse the transaction submitter identity in Java Chaincode? Go Chaincode has Client Identity Chaincode Library to parse the identity. Is there a Client Identity Chaincode Library in Java?

obc993 (Mon, 06 May 2019 05:23:38 GMT):
Has joined the channel.

Psingh (Mon, 06 May 2019 06:03:48 GMT):
Can anyone please help me with below issue? https://stackoverflow.com/questions/55936208/failed-to-get-discovery-service-could-not-get-chconfig-cache-reference-read-co

ahmad-raza (Mon, 06 May 2019 06:08:18 GMT):
Has joined the channel.

mfaisaltariq (Mon, 06 May 2019 07:07:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=m6ALe9HZcE7ckCBg7) @florianc @florianc thanks man. But I think technically there would be more to it. I cannot find any substantial read where it is explained in detail. If anyone has some material or link please do share. Thank you :)

ribjethgnis (Mon, 06 May 2019 07:25:40 GMT):
i am facing the issue form last three days and still not able to resolve root@aecd3d350b12:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel getinfo -c mychannel output i getting - Blockchain info: {"height":5,"currentBlockHash":"++fdSI4NeGNavOVdQTYPYxeV0dZxFbh8nCdlT6P11zU=","previousBlockHash":"8cXYiSJovLoC0F7GJfPHFHeUHHh4brw8kcCostjmkVg="} it means my chaincode is instantiated properly but when i do query using peer chaincode query -C mychannel -n jetcc1 --connTimeout 15s -c '{"Args":["query","A"]}' -----END CERTIFICATE----- 2019-05-06 07:23:36.167 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-04-22 10:16:37 +0000 UTC 2019-05-06 07:23:36.167 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-05-06 07:23:36.168 UTC [grpc] DialContext -> DEBU 037 parsed scheme: "" 2019-05-06 07:23:36.169 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2019-05-06 07:23:36.169 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0.org1.example.com:7051 0 }] 2019-05-06 07:23:36.169 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2019-05-06 07:23:36.169 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc0004ebb50, CONNECTING 2019-05-06 07:23:36.175 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc0004ebb50, READY 2019-05-06 07:23:36.176 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2019-05-06 07:23:36.177 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2019-05-06 07:23:36.177 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0.org1.example.com:7051 0 }] 2019-05-06 07:23:36.177 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2019-05-06 07:23:36.177 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc00023def0, CONNECTING 2019-05-06 07:23:36.181 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc00023def0, READY 2019-05-06 07:23:36.182 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-05-06 07:23:36.184 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AAF070A6B08031A0B08F8C1BFE60510...746363311A0A0A0571756572790A0141 2019-05-06 07:23:36.184 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 7C16A52B5FCD1F20FB10A7FEF54ABE54FBD80A76002C81BB88096EC906673D18 Error: endorsement failure during query. response: status:500 message:"failed to execute transaction c43c23f0d0f6f0d06da8f0c33ee5dc2bf4251ec89dda6413e311a30409e60af6: error sending: timeout expired while executing transaction"

florianc (Mon, 06 May 2019 07:26:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YEuD4CEBgrR5ZGdTG) @mfaisaltariq https://hyperledger-fabric.readthedocs.io/en/release-1.4/key_concepts.html

VivekAnandPanda (Mon, 06 May 2019 07:31:10 GMT):
Has joined the channel.

VivekAnandPanda (Mon, 06 May 2019 07:31:18 GMT):
Hi everyone, I am trying to deploy and initiate Java chaincode from Java SDK. But getting failure response. Can you please walkthrough how to deploy and initiate Java chaincode from Java client SDK?

Lorem (Mon, 06 May 2019 08:36:38 GMT):
Hey, really basic question over here. When deploying a network in the tutorial files, I always use the cli container to access the peers and create the channel or instantiate chaincode, etc. But do you create a channel, when you do not have all peers locally hosted but as real clients with their own hardware. Will there be multiple cli's, one for each peer, or will I just use the peer itself to do these actions

Lorem (Mon, 06 May 2019 08:39:17 GMT):
To make it clear: I'm currently using "docker exec cli peer channel create ... " with some environment variables instead of "docker exec peer0.org1.example.com peer channel create ..." Why do I do so and will it be different, when the peers won't be docker containers anymore?

abityildiz (Mon, 06 May 2019 08:49:53 GMT):

Clipboard - May 6, 2019 11:48 AM

garunkumar450 (Mon, 06 May 2019 09:05:41 GMT):
Error: Bad response: 500 - failed to execute transaction 94a7b5f6f8d9e08f2a287f3fae4cc32c7e247f5c1be4091fe7c492ca35b8c044: error sending: timeout expired while executing transaction while installing chaincode

samshdn (Mon, 06 May 2019 09:29:44 GMT):
Has joined the channel.

samshdn (Mon, 06 May 2019 09:34:38 GMT):
Can anyone tell me how I package and install Java chaincode to network?

samshdn (Mon, 06 May 2019 09:35:54 GMT):
I am using Fabric version 1.4

Switch2Logic (Mon, 06 May 2019 09:47:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wNYNGBTuqvfMDPLnd) @abityildiz Have you configured TLS correctly? Is client-side TLS activated if so you need to add the client-cert and key to the transaction...

Switch2Logic (Mon, 06 May 2019 09:47:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wNYNGBTuqvfMDPLnd) @abityildiz What is the command you are running to start he network? Have you configured TLS correctly? Is client-side TLS activated if so you need to add the client-cert and key to the transaction...

Switch2Logic (Mon, 06 May 2019 09:47:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wNYNGBTuqvfMDPLnd) @abityildiz What is the command you are running to execute this? Have you configured TLS correctly? Is client-side TLS activated if so you need to add the client-cert and key to the transaction...

Switch2Logic (Mon, 06 May 2019 09:49:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=xN3LNCKaRD7Az23EE) @garunkumar450 Are you instantiating GO chaincode?

garunkumar450 (Mon, 06 May 2019 10:11:27 GMT):
yes iam using go

Switch2Logic (Mon, 06 May 2019 10:13:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9pFY9LJdq5xtN34an) @garunkumar450 Have you added this line to you peer and cli... GODEBUG=netdns=go

Switch2Logic (Mon, 06 May 2019 10:14:15 GMT):

Screenshot from 2019-04-30 14-42-53.png

abityildiz (Mon, 06 May 2019 11:48:05 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ixbbWvTFGgASxSC2v) @Switch2Logic i did again setup TLS via https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html.it work fine.thanks.

abityildiz (Mon, 06 May 2019 13:29:35 GMT):

Clipboard - May 6, 2019 4:28 PM

kevinyap (Mon, 06 May 2019 13:31:10 GMT):
multiple host

BChain_Dev (Mon, 06 May 2019 14:10:16 GMT):
Hi can someone help me on this error

BChain_Dev (Mon, 06 May 2019 14:10:21 GMT):
2019-05-06 14:05:26.325 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: 2019-05-06 14:05:27.921 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-05-06 14:05:27.922 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 254

Antimttr (Mon, 06 May 2019 16:04:31 GMT):
has anyone found a good doc on migrating from kafka to raft consensus?

walmon (Mon, 06 May 2019 16:14:01 GMT):
@Antimttr AFIK that's not possible - the docs say it I believe

spmcnamara (Mon, 06 May 2019 16:15:25 GMT):
When attempting to create/add a new user certificate to the CA via the fabric-ca-client tool, what is the correct process? Should I be attaching to the fabric-ca-server image (which is the only place I spotted the ca-client binary)? I've attached there and have tried to register the new user, but get: "[ERROR] Enrollment check failed: Idemix enrollment information does not exist". I've created a fabric-ca-client-config.yaml file, and set the FABRIC_CA_CLIENT_HOME environment variable, but that didn't appear to help.

spmcnamara (Mon, 06 May 2019 16:15:36 GMT):
Is there some other way I should be creating user certificates?

Antimttr (Mon, 06 May 2019 16:15:55 GMT):
howabout any doc for setting up raft?

Antimttr (Mon, 06 May 2019 16:16:00 GMT):
or better yet example

Antimttr (Mon, 06 May 2019 16:16:22 GMT):
i found this: https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html but its more of a disussion than any usable example

Antimttr (Mon, 06 May 2019 16:16:38 GMT):
were any of the sample examples updated to use raft?

spmcnamara (Mon, 06 May 2019 16:18:16 GMT):
Antimttr: I haven't seen much, and recently was at a talk with the Oracle HLF team where they talked about RAFT but only in the vaguest terms.

spmcnamara (Mon, 06 May 2019 16:18:48 GMT):
RAFT may be up a creek without a paddle at the moment. ;-)

Antimttr (Mon, 06 May 2019 16:19:10 GMT):
huh

Antimttr (Mon, 06 May 2019 16:19:42 GMT):
if there was a way to create new channels on here i'd create #fabric-raft

Antimttr (Mon, 06 May 2019 16:19:50 GMT):
so we can have some discussion on it

spmcnamara (Mon, 06 May 2019 16:20:11 GMT):
^^ failed attempt at humor. https://www.macmillandictionary.com/us/dictionary/american/be-up-the-creek-without-a-paddle

Antimttr (Mon, 06 May 2019 16:20:18 GMT):
lol

Antimttr (Mon, 06 May 2019 16:21:09 GMT):
has anyone had the issue of docker nodes running longer than a week and just filling up the disk volume they're on with logs?

Antimttr (Mon, 06 May 2019 16:21:23 GMT):
i need to understand how to manage the logging on the docker nodes so they dont fill up my volumes

spmcnamara (Mon, 06 May 2019 16:23:26 GMT):
https://access.redhat.com/solutions/2334181

Antimttr (Mon, 06 May 2019 16:27:55 GMT):
thanks!

Antimttr (Mon, 06 May 2019 16:41:03 GMT):
@spmcnamara apparently that doesnt work on centos, according to the comment at the bottom. seems weird that this would be so difficult

spmcnamara (Mon, 06 May 2019 16:45:14 GMT):
@Antimttr Did you try setting a logging configuration block for the instance in your docker-compose file?

spmcnamara (Mon, 06 May 2019 16:47:12 GMT):
logging: options: max-size: "10m" max-file: "5"

Antimttr (Mon, 06 May 2019 16:48:52 GMT):
yeah i did it on a global level

Antimttr (Mon, 06 May 2019 16:48:54 GMT):
trying it now

Antimttr (Mon, 06 May 2019 16:49:08 GMT):
using the daemon.json

spacemandev (Mon, 06 May 2019 18:49:16 GMT):
Has left the channel.

Antimttr (Mon, 06 May 2019 20:49:59 GMT):
so if i shut off my docker images with `docker-compose -f ./artifacts/docker-compose.yaml down` and then restart them with `docker-compose -f ./artifacts/docker-compose.yaml up -d` i notice that my chaincode running nodes dont come back with the rest of them:

Antimttr (Mon, 06 May 2019 20:50:46 GMT):
Before shutdown: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9112eb629885 dev-peer1.org1.example.com-mcttrade-1-3a3d303155082376947ce1e2290ecd8a83f09ed9aa4e7b2a0787c194d8a26c17 "/bin/sh -c 'cd /usr…" 4 hours ago Up 4 hours dev-peer1.org1.example.com-mcttrade-1 0cb98e89ab18 dev-peer0.org2.example.com-mcttrade-1-b2b615733ae567de3aaba98f08cb5aa0655e7a82456dbd8a9b5af07afd1a7005 "/bin/sh -c 'cd /usr…" 4 hours ago Up 4 hours dev-peer0.org2.example.com-mcttrade-1 5a9d9567577c dev-peer0.org1.example.com-mcttrade-1-01863c2eb56ff258796c04af27ab0254122f079e46ebb05402c17559e57ffc38 "/bin/sh -c 'cd /usr…" 4 hours ago Up 4 hours dev-peer0.org1.example.com-mcttrade-1 cfe82bf25048 dev-peer1.org2.example.com-mcttrade-1-ca9f6949205b352387437b2abd9117210ee0fe1616041fdea48be493d37287c5 "/bin/sh -c 'cd /usr…" 4 hours ago Up 4 hours dev-peer1.org2.example.com-mcttrade-1 8911df497877 hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com aef31d49606d hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 97b79a9046fd hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com e97512d82a46 hyperledger/fabric-peer "peer node start" 4 hours ago Up 4 hours 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com ca7a60b957bf hyperledger/fabric-couchdb "tini -- /docker-ent…" 4 hours ago Up 4 hours 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 e3f437056169 hyperledger/fabric-couchdb "tini -- /docker-ent…" 4 hours ago Up 4 hours 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 a5d3c4d3deca hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 4 hours ago Up 4 hours 0.0.0.0:7054->7054/tcp ca_peerOrg1 d836382031d3 hyperledger/fabric-orderer "orderer" 4 hours ago Up 4 hours 0.0.0.0:7050->7050/tcp orderer.example.com d192c794f598 hyperledger/fabric-couchdb "tini -- /docker-ent…" 4 hours ago Up 4 hours 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 f70670520c4e hyperledger/fabric-couchdb "tini -- /docker-ent…" 4 hours ago Up 4 hours 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 8f44c4d5cfd7 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 4 hours ago Up 4 ```

Antimttr (Mon, 06 May 2019 20:51:25 GMT):
after shutdown: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6ff40fad004d hyperledger/fabric-peer "peer node start" 22 seconds ago Up 21 seconds 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com e03d247a7193 hyperledger/fabric-peer "peer node start" 22 seconds ago Up 20 seconds 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com 977cc75cf6b3 hyperledger/fabric-peer "peer node start" 24 seconds ago Up 22 seconds 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 9463f487523d hyperledger/fabric-peer "peer node start" 24 seconds ago Up 22 seconds 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com b4efd1691e4d hyperledger/fabric-couchdb "tini -- /docker-ent…" 26 seconds ago Up 22 seconds 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 ef7255642053 hyperledger/fabric-couchdb "tini -- /docker-ent…" 26 seconds ago Up 22 seconds 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 fee17c33f599 hyperledger/fabric-couchdb "tini -- /docker-ent…" 26 seconds ago Up 23 seconds 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 8c9e2532c865 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 26 seconds ago Up 23 seconds 0.0.0.0:8054->7054/tcp ca_peerOrg2 a3a2c5caf842 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 26 seconds ago Up 23 seconds 0.0.0.0:7054->7054/tcp ca_peerOrg1 1682cb64b5a0 hyperledger/fabric-couchdb "tini -- /docker-ent…" 26 seconds ago Up 23 seconds 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 922943a4714d hyperledger/fabric-orderer "orderer" 26 seconds ago Up 24 seconds 0.0.0.0:7050->7050/tcp orderer.example.com ```

Antimttr (Mon, 06 May 2019 20:52:05 GMT):
is there any way to get all the nodes i need to restart, as opposed to just the ones defined in the docker.yaml file?

Antimttr (Mon, 06 May 2019 21:01:37 GMT):
hmm found something that said down is the wrong thing to use, use stop instead

Antimttr (Mon, 06 May 2019 21:01:40 GMT):
going to try that

Antimttr (Mon, 06 May 2019 21:26:00 GMT):
interesting, so just restarting the dockers defined in the yaml file and then invoking the chaincode seems to automagically restart the chaincode docker nodes

DarwinHarianto (Tue, 07 May 2019 02:19:51 GMT):
Hello guys, I am trying to do private data tutorial. https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html after I do byfn up I put ``` docker exec -it cli bash``` it gives me ```root@cc98b08c90aa:/opt/gopath/src/github.com/hyperledger/fabric/peer# ``` when I put the text command ```peer lifecycle chaincode package marblesp.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/marbles02_private/go/ --lang golang --label marblespv1 ``` it said peer lifecycle is unknown command is there something wrong with the docker commands? what should I put?

DarwinHarianto (Tue, 07 May 2019 02:42:36 GMT):
Can someone explain to me why private data has block to live variable?

srinivaskumarr (Tue, 07 May 2019 05:10:45 GMT):
Has joined the channel.

srinivaskumarr (Tue, 07 May 2019 05:13:02 GMT):
cd $GOPATH/src/github.com/hyperledger/fabric/devenv

srinivaskumarr (Tue, 07 May 2019 05:14:18 GMT):
Hi guys, i am trying to setup my devenv, i have cloned the codebase however inorder to build it i need to setup vagrant. , however `cd $GOPATH/src/github.com/hyperledger/fabric/devenv cd $GOPATH/src/github.com/hyperledger/fabric/devenv ` here the folder devenv is not present , what must i do about this?

srinivaskumarr (Tue, 07 May 2019 05:20:28 GMT):
THe cloning process did go correctly is there some other step i am missing here?

VinodValsan (Tue, 07 May 2019 06:37:37 GMT):
What are policies in the configtx.yaml file under the organistaion section

VinodValsan (Tue, 07 May 2019 06:37:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TnYQaoCWNFcasrbWz) @abityildiz No

abityildiz (Tue, 07 May 2019 06:46:43 GMT):
hi all,i want to setup kafka network.Do I have to install Swarm?

abityildiz (Tue, 07 May 2019 07:02:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=v98FTGbiHhnkbpmS2) @VinodValsan zookeeper and kafka enough.thanks

aditya520 (Tue, 07 May 2019 07:18:36 GMT):
Has joined the channel.

aditya520 (Tue, 07 May 2019 07:18:53 GMT):
Hi Everyone, has anybody tried updating ACLs dynamically by fetching config block and updating it in fabric? #fabric #fabric-questions

VinodValsan (Tue, 07 May 2019 07:31:18 GMT):
what are policies under the organization section in the configtx file

saurbhshrma (Tue, 07 May 2019 07:35:54 GMT):
Has joined the channel.

arctic_Oak (Tue, 07 May 2019 07:35:56 GMT):
Has joined the channel.

arctic_Oak (Tue, 07 May 2019 07:38:03 GMT):
Hello all, I just have few doubts regarding Orderer. So, if the Kafka cluster is down where is the block data stored. Is it some persistence storage or in-memory storage?

arctic_Oak (Tue, 07 May 2019 07:38:03 GMT):
Hello all, I just have few doubts regarding Orderer. So, if the Kafka cluster is down where is the block data stored. Is it some persistent storage or in-memory storage?

arctic_Oak (Tue, 07 May 2019 07:38:03 GMT):
@channel Hello all, I just have few doubts regarding Orderer. So, if the Kafka cluster is down where is the block data stored. Is it some persistent storage or in-memory storage?

aditya520 (Tue, 07 May 2019 07:38:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=F7RXwdhtSheYaLMHF) @ShwetaTripathi @ShwetaTripathi Yes I tried ACLs on first network and they are working perfectly.

aditya520 (Tue, 07 May 2019 07:40:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MYppTdN6Lc8Pzs6px) @VinodValsan @VinodValsan These are signature policies you can use while applying ACLs for channel!

oussmea (Tue, 07 May 2019 08:02:38 GMT):
@srinivaskumarr did you make the folder $GOPATH/src/github.com/hyperledger/fabric/devenv before you cloned the project ?

Switch2Logic (Tue, 07 May 2019 08:09:58 GMT):
Good day, I was hoping anyone could help me... What is the block sequence for Fabric. Say GensisBlock and the channelConfigBlock... Now from their how are the blocks differentiated as well as when you update the configuration blocks like removing an Org from a channel. How is the blockchain updated? What will the actual blocks look like and how do we know not to look at the old configuration?

Switch2Logic (Tue, 07 May 2019 08:09:58 GMT):
Good day, I was hoping anyone could help me... What is the block sequence for Fabric. Say GensisBlock and the channelConfigBlock... Now from their how are the blocks differentiated as well as when you update the configuration blocks like removing an Org from a channel. How is the blockchain updated? What will the actual blocks look like and how do we know not to look at the old configuration? Guess I am trying to understand the LocalMSP and ChannelMSP... I know what they do I would like to know more about how the actually do it?

Switch2Logic (Tue, 07 May 2019 08:09:58 GMT):
Good day, I was hoping anyone could help me... What is the block sequence for Fabric. Say GensisBlock and the channelConfigBlock... Now from their how are the blocks differentiated as well as when you update the configuration blocks like removing an Org from a channel. How is the blockchain updated? What will the actual blocks look like and how do we know not to look at the old configuration? Guess I am trying to understand the LocalMSP and ChannelMSP... I know what they do I would like to know more about how the actually do it? What is stored in the genesis with regards to the MSP and the configuration block is that always the same block?

abityildiz (Tue, 07 May 2019 09:11:26 GMT):

Clipboard - May 7, 2019 12:05 PM

dave.enyeart (Tue, 07 May 2019 13:32:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Z5hRgetghkJz57z4K) @DarwinHarianto Because in some use cases private data is sensitive information that peer owners either don't need to keep or don't want to keep forever.

nikloladze (Tue, 07 May 2019 17:28:26 GMT):
Has joined the channel.

nikloladze (Tue, 07 May 2019 17:28:26 GMT):
Hey guys, what's the easiest way to send a transaction with minimal setup?

nikloladze (Tue, 07 May 2019 17:28:50 GMT):
Or through a command on the terminal? Any help appreciated. Sorry if I sound new, it's because I am. Thanks.

kevinkbc (Tue, 07 May 2019 17:45:04 GMT):
is there any hyperledger fabric cloud service like IBM or Amazon with a free trial period?

yacovm (Tue, 07 May 2019 17:46:09 GMT):
yes

kevinkbc (Tue, 07 May 2019 17:47:22 GMT):
which one? both?

yacovm (Tue, 07 May 2019 17:48:53 GMT):
https://www.youtube.com/watch?v=gPnkVQiHRqk

yacovm (Tue, 07 May 2019 17:49:04 GMT):
wow these threads are so ugly... slack is better

yacovm (Tue, 07 May 2019 17:50:12 GMT):
oh nice we have a preview in the main thread

akshatbh (Tue, 07 May 2019 18:02:21 GMT):
Has joined the channel.

akshatbh (Tue, 07 May 2019 18:02:22 GMT):
Hi..does fabric store the user identities in transaction history? is there a way to get that back when querying an asset history - I want to know which transactions were performed and who performed them for a given asset

akshatbh (Tue, 07 May 2019 18:02:59 GMT):
I am using golang for chaincode

Antimttr (Tue, 07 May 2019 18:59:08 GMT):
@akshatbh If you browse the blocks of the chaincode you can retrieve the identity of the transaction initiator

kevinkbc (Tue, 07 May 2019 19:04:58 GMT):
thank you, I am having a look onthis right now

Antimttr (Tue, 07 May 2019 19:07:40 GMT):
theres example code for it for the java sdk in the blockWalker() method in this file: https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/java/org/hyperledger/fabric/sdkintegration/End2endIT.java

spmcnamara (Tue, 07 May 2019 19:21:26 GMT):
When using fabric-ca-client to create new users, where do the key/pem files get stored? I'm not getting an error, but also don't see those key/pem files written anywhere...

Antimttr (Tue, 07 May 2019 19:25:02 GMT):
i use the sdk and they get returned to me as the results of the sdk call, then i store them with the user object in my mongo data store

akshatbh (Tue, 07 May 2019 19:33:46 GMT):
Thanks..although walking blocks does not look like it will be very performance friendly ;-) I am leaning the other way of using the getCreator method to get the identity in the current transaction and store that into couchdb

Antimttr (Tue, 07 May 2019 19:34:41 GMT):
right, when you handle the transaction in the first place you get a chance to store all of the data about the transaction in a secondary datastore

akshatbh (Tue, 07 May 2019 19:36:32 GMT):
It will be a good enhancement if the getHistoryForKey returns the identity for each transaction record that is returned in the history instead of browsing blocks..i think this would be a pretty common business requirement out there

kevinkbc (Tue, 07 May 2019 19:55:35 GMT):
I watched the tutorials and created IBM account, but the service is unavailable to me

kevinkbc (Tue, 07 May 2019 19:55:50 GMT):
asking to upgrade account, even though it is free for 1 node

gregnotso (Tue, 07 May 2019 21:53:31 GMT):
@kevinkbc not free but quite affordable if you want to spin up an ubuntu instance on AWS and install all the prerequisites for fabric samples

c-an (Wed, 08 May 2019 01:24:48 GMT):
Has joined the channel.

c-an (Wed, 08 May 2019 01:40:46 GMT):
hello!

DarwinHarianto (Wed, 08 May 2019 03:24:59 GMT):

Screen Shot 2019-05-08 at 12.23.34.png

poojaKamat (Wed, 08 May 2019 04:13:34 GMT):
Hi guys , has anyone tried tried running orderer using raft ?wanted help in configuring orderer using raft

poojaKamat (Wed, 08 May 2019 04:13:34 GMT):
Hi guys , has anyone tried running orderer using raft ?wanted help in configuring orderer using raft

Silona (Wed, 08 May 2019 04:54:46 GMT):
Has joined the channel.

Silona (Wed, 08 May 2019 04:54:46 GMT):
If you, or your company, is interested in participating in the Linux Foundation Fabric developer workshop, please complete this short Form by May 15: https://forms.gle/v4CuDnHQ9QA9pf6p8

DarwinHarianto (Wed, 08 May 2019 05:23:40 GMT):
hello, how do I overwrite ``` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/ca-key.pem ``` to ``` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ```? I already write this ``` - FABRIC_CA_SERVER_KEYFILE=/etc/hyperledger/fabric-ca-server-config/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ``` but it doesn't work

DarwinHarianto (Wed, 08 May 2019 05:23:40 GMT):
hello, how do I overwrite ``` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/ca-key.pem ``` to ``` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ``` ? I already write this ``` - FABRIC_CA_SERVER_KEYFILE=/etc/hyperledger/fabric-ca-server-config/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ``` but it doesn't work

DarwinHarianto (Wed, 08 May 2019 05:23:40 GMT):
hello, how do I overwrite ` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/ca-key.pem ` to ` 2019/05/08 05:18:23 [INFO] Key file location: /etc/hyperledger/fabric-ca-server/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ` ? I already write this ` - FABRIC_CA_SERVER_KEYFILE=/etc/hyperledger/fabric-ca-server-config/92074e886eac39857b2665f725f4b6275947dba409f43a05f52511dcd1cf7cd0_sk ` but it doesn't work

umarmw (Wed, 08 May 2019 06:02:15 GMT):
Hello, what is the alternative for hyperledger fabric composer?

DarwinHarianto (Wed, 08 May 2019 06:36:36 GMT):
Hyperledger fabric

umarmw (Wed, 08 May 2019 06:48:50 GMT):
any example on how to create a web interface to connect with hyperledger fabric please?

umarmw (Wed, 08 May 2019 06:49:08 GMT):
without using composer..

AndresMartinezMelgar.itcl (Wed, 08 May 2019 07:19:47 GMT):
Hi, I'm creating my own chaincode written in GOLANG. My network is in 1.3v and I use couchdb. The problem is this: when I do an invoke of chaincode it returns a Status 200 (all correct) and it is reflected in the block (since it increases in 1 its depth) but when I make a query it tells me that the saved data does not exist

benjamin.verhaegen (Wed, 08 May 2019 07:27:05 GMT):
How to add an empty array in Go, which gets appended by another transaction? Is this possible?

Aniket.1 (Wed, 08 May 2019 08:56:02 GMT):
How the chaincode container marked idle and resumed. As i see if there is no chaincode interaction request, chaincode container got disappeared from docker ps.

abityildiz (Wed, 08 May 2019 12:10:54 GMT):
i all,i have setup kafka network multi host.i have 2 org ,3 zookeeper,2 kafka clustur for development(i will be increase 4).but host1 and host2 don't communicate with each other.how can i solve this problem?

abityildiz (Wed, 08 May 2019 12:10:54 GMT):
i all,i have setup kafka network multi host.i have 2 org ,3 zookeeper,2 kafka clustur for development(i will be increase 4).but host1 and host2 don't communicate with each other.how can i solve this problem?or how can i test communicate with each other

kevinkbc (Wed, 08 May 2019 12:34:54 GMT):
I was looking for some free trial so I dont have to wait for the approval of the company I work for.

kevinkbc (Wed, 08 May 2019 12:35:45 GMT):
I was looking for a multi node setup, so I guess I will have to stick with AWS

ribjethgnis (Wed, 08 May 2019 12:59:50 GMT):
i have gocc.go ( chaincode in this location ) root@de83ffb9b80b:/opt/gopath/src/github.com/chaincode# ls gocc.go jetcc1.js jetcc2.js node_modules package-lock.json package.json but when i install this gocc chaincode on peers using root@de83ffb9b80b:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n gocc -v 1.0 -p opt/gopath/src/github/chaincode it throws error - Error: error getting chaincode code gocc: path to chaincode does not exist: /opt/gopath/src/opt/gopath/src/github/chaincode

knagware9 (Wed, 08 May 2019 13:00:01 GMT):
check balance transfer sample in fabric samples

ANKITPODDAR (Wed, 08 May 2019 13:31:18 GMT):
we define endorsement policy for transaction like in (-P "AND ('Org1MSP.peer','Org2MSP.peer')") this way. But what basis these nodes will endorse the transaction where we define endorsement rules for peers.

ANKITPODDAR (Wed, 08 May 2019 13:31:38 GMT):
on what basis peers will endorse trhe transaction

ANKITPODDAR (Wed, 08 May 2019 13:35:06 GMT):
Let's assume a scenario: org1 and org2 have already endorsed 5 transactions. But some day, let's say, org1 doesn't want to endorse any transaction at all, which means that for every new incoming transaction(e.g. 6th transaction), org1 wants to say no, and refuses to endorse the new transaction. So my question is: How can org1 refuse endorsing new incoming transaction

ANKITPODDAR (Wed, 08 May 2019 14:10:10 GMT):
I want to say this command (-P "AND ('Org1MSP.peer','Org2MSP.peer')") will say that many peer endorse the transaction but on what basis it will endorse the transaction what are the rules for endorsement by peers

walmon (Wed, 08 May 2019 15:03:24 GMT):
You can use Convector https://github.com/hyperledger-labs/convector

florianc (Wed, 08 May 2019 15:14:14 GMT):
Hi! I get a block using the nodejs SDK but something is kind of surprising me: I cannot find block timestamp in block metadata or anytwhere else. I only have a transaction timestamp. Is it normal? (Fabric 1.2)

dave.enyeart (Wed, 08 May 2019 16:15:06 GMT):
Yes, this is as designed. There is no concept of a common time in the distributed network. Block height is used instead of a common time. The timestamp you see in the transactions are based on the submitting client and should not be considered an agreed to timestamp from the perspective of the distributed network.

ruairih (Wed, 08 May 2019 16:20:21 GMT):
Question on private data. How do you prove to another organization not part of the private data collection that you know the values of the data in the collection? The hash of the data is published to the channel, but presumably there is some sort of randomness before a SHA256 function is called on it?

ruairih (Wed, 08 May 2019 16:22:55 GMT):
would probably be most useful to debug through the fabric go code itself to get these answers? Has anybody tried this? Any recommendations or guides for this?

sejalpawar (Wed, 08 May 2019 16:34:40 GMT):
Has joined the channel.

sejalpawar (Wed, 08 May 2019 16:34:41 GMT):
Can someone send me the git repo link for FabricProposal class? I can't seem to find it.

dave.enyeart (Wed, 08 May 2019 16:35:38 GMT):
There is no randomness, it is a simple SHA256 hash of the private data. The collection members are explicitly called out in the collection membership policy. All channel participants know who holds the private data for a collection. A collection member could provide the private data to a 3rd party as needed (e.g. an auditor). The on-chain hash is the 'proof' that the data hasn't changed.

ruairih (Wed, 08 May 2019 16:37:11 GMT):
No randomness? So if an account had a balance an attacker could just keep computing hashes till the get the right number? I suppose you could add your own randomness

dave.enyeart (Wed, 08 May 2019 16:37:46 GMT):
Yes, you add your own 'salt' to the private data to prevent these types of attacks.

ivorobioff (Wed, 08 May 2019 16:51:23 GMT):
Hello guys! I have a question about dissemination/distribution of private data. Not sure, if it's right place to ask. If not, please redirect me. So, I have a collection with assets of the same type that is shared among several organizations. However, some organizations should have access only to some of the assets in this collection. That should be decided at run-time based on custom logic. For example, some of the assets should not pass through because they don't have a suitable status or they are not related to a required organization, and so on. Moreover, the organizations should not be able to access that data directly from their peers as well. So, doing this in chaincode is not a solution. Obviously, the private data in the collection should be distributed based on a custom dissemination policy since the existing one is not enough. My question, is there any way to extend the current dissemination policy implementation with custom logic? I found these code https://github.com/hyperledger/fabric/blob/release-1.4/gossip/privdata/distributor.go#L160 and I feel it should be somewhere nearby. I'd appreciate if anyone from experts in this part could show me right direction and explain me how this can be achieved. I'll be thankful for any useful info in this regard.

ivorobioff (Wed, 08 May 2019 16:51:23 GMT):
Hello guys! I have a question about dissemination/distribution of private data. Not sure, if it's right place to ask. If not, please redirect me. So, I have a collection with assets of the same type that is shared among several organizations. However, some organizations should have access only to some of the assets in this collection. That should be decided at run-time based on custom logic. For example, some of the assets should not pass through because they don't have a suitable status or they are not related to a required organization, and so on. Moreover, the organizations should not be able to access that data directly from their peers as well. So, doing this in chaincode is not an option. Obviously, the private data in the collection should be distributed based on a custom dissemination policy since the existing one is not enough. My question, is there any way to extend the current dissemination policy implementation with custom logic? I found these code https://github.com/hyperledger/fabric/blob/release-1.4/gossip/privdata/distributor.go#L160 and I feel it should be somewhere nearby. I'd appreciate if anyone from experts in this part could show me right direction and explain me how this can be achieved. I'll be thankful for any useful info in this regard.

ivorobioff (Wed, 08 May 2019 16:51:23 GMT):
Hello guys! I have a question about dissemination/distribution of private data. Not sure, if it's right place to ask. If not, please redirect me. So, I have a collection with assets of the same type that is shared among several organizations. However, some organizations should have access only to some of the assets in this collection. That should be decided at run-time based on custom logic. For example, some of the assets should not pass through because they don't have a suitable status or they are not related to a required organization, and so on. Moreover, the organizations should not be able to access that data directly from their peers as well. So, doing this in chaincode is not an option. Obviously, the private data in the collection should be distributed based on a custom dissemination policy since the existing one is not enough. My question, is there any way to extend the current dissemination policy implementation with custom logic? I found this code https://github.com/hyperledger/fabric/blob/release-1.4/gossip/privdata/distributor.go#L160 and I feel it should be somewhere nearby. I'd appreciate if anyone from experts in this part could show me right direction and explain me how this can be achieved. I'll be thankful for any useful info in this regard.

dave.enyeart (Wed, 08 May 2019 16:57:17 GMT):
Not possible in current releases. You would need to statically define multiple collections beforehand, and have the client choose the correct collection to share the data with. In future releases there is intent to allow client to dynamically determine who to share private data with, without the need for statically defining collections ahead of time.

ivorobioff (Wed, 08 May 2019 17:38:28 GMT):
yes, that's what I found on the Internet as well. the problem with collections is that I will have to create a numerous number of collections to keep the same type of assets private from one group of organization while open to another group of organizations. This can end up with a large number of collections if we have 3 or more organizations in the group. Consider this use case, we have 3 types of organizations, Type A, Type B, and Type C. Then we have 3 organizations of Type A, and 3 organizations of Type B and 1 organization of Type C. All 3 organizations of type A are competitors, and all 3 organizations of Type B are also competitors. Thus, in the same collection we can have 1 organization of Type A and 1 organization of Type B. With that, we end up with the following collections: Org A1 - Org B1 - Org C1 Org A1 - Org B2 - Org C1 Org A1 - Org B3 - Org C1 Org A2 - Org B1 - Org C1 Org A2 - Org B2 - Org C1 Org A2 - Org B3 - Org C1 Org A3 - Org B1 - Org C1 Org A3 - Org B2 - Org C1 Org A3 - Org B3 - Org C1 and If I need to get all the assets of this type I will have to go through the all collections and pull the assets individually from each collection and them merge them all into a single list of the assets. Obviously, this is going to be painful.

ivorobioff (Wed, 08 May 2019 17:38:28 GMT):
yes, that's what I found on the Internet as well. the problem with collections is that I will have to create a numerous number of collections to keep the same type of assets private from one group of organization while open to another group of organizations. This can end up with a large number of collections if we have 3 or more organizations in the group. Consider this use case, we have 3 types of organizations, Type A, Type B, and Type C. Then we have 3 organizations of Type A, and 3 organizations of Type B and 1 organization of Type C. All 3 organizations of type A are competitors, and all 3 organizations of Type B are also competitors. Thus, in the same collection we can have 1 organization of Type A and 1 organization of Type B. With that, we end up with the following collections: Org A1 - Org B1 - Org C1 Org A1 - Org B2 - Org C1 Org A1 - Org B3 - Org C1 Org A2 - Org B1 - Org C1 Org A2 - Org B2 - Org C1 Org A2 - Org B3 - Org C1 Org A3 - Org B1 - Org C1 Org A3 - Org B2 - Org C1 Org A3 - Org B3 - Org C1 and If I need to get all the assets of this type I will have to go through the all collections and pull the assets individually from each collection and them merge them all into a single list of the assets. Obviously, this is going to be painful if we add more organizations of the same type.

ruairih (Wed, 08 May 2019 17:46:35 GMT):
thanks for your reply. Do you know what format the rwset needs to be in to compare the hash? Im trying to find it in the code but not obvious to me

ruairih (Wed, 08 May 2019 17:47:06 GMT):
as in sha256("marble1":"3")

dave.enyeart (Wed, 08 May 2019 18:45:37 GMT):
Right, that is the reason that 'dynamic' sharing is on the roadmap. Both models have been intended for a long time, it's just that a project sponsor needed the static collections first.

ivorobioff (Wed, 08 May 2019 19:19:07 GMT):
Thank for your response! I am just not sure how it will solve my problem even with dynamic collections. I will still have to create separate collections for each group of organizations. Doing this dynamically just facilitates this approach but doesn't relief from the main pain. It's much better to have a way to apply a custom dissemination policy at run-time and decide whether this or that asset can go further or not. Do you know whether it's technically possible at all with the current implementation?

ruairih (Wed, 08 May 2019 20:47:20 GMT):
Im having a similar problem. I think you need a way to have an asset jump from one private collection to another but be guarantee that the properties have not been tampered with. Private UTXOs in Fabric 2.X may help

ruairih (Wed, 08 May 2019 20:47:53 GMT):
I think Sawtooth can do this

dave.enyeart (Wed, 08 May 2019 21:17:21 GMT):
@ruairih In current releases a collectionA member (asset owner) can 'transfer' an asset to collectionB by deleting from A and creating in B. They don't have to be a member of B to 'transfer' to B. You can split the asset into two keys, one that changes as it traverses collections (e.g. asset ownership info), and one that stays the same (e.g. asset properties). The hash of the asset properties can be used as proof of the history of the asset and that it hasn't changed since issuance.

dave.enyeart (Wed, 08 May 2019 21:18:14 GMT):
@ivorobioff The idea with the dynamic collection is not that you create N collections. There would be one collection where the client can specify which org peers should receive the private data.

dave.enyeart (Wed, 08 May 2019 21:18:14 GMT):
@ivorobioff The idea with the future dynamic collection is not that you create N collections. There would be one collection where the client can specify which org peers should receive the private data. As the asset is transferred around, it would remain in the same collection.

ruairih (Wed, 08 May 2019 21:20:08 GMT):
@dave.enyeart yes but the problem is proving that that asset isnt being "double spent" so if the asset was a bitcoin for instance, you cant prove that A wont try to spend the coin again. With some kind of UTXO and zero knowledge proofs you might be able to

dave.enyeart (Wed, 08 May 2019 21:22:22 GMT):
@ruairih double spend is solved by the chaincode reading before deleting the asset, just like with public data. The RWSet includes a hash of the key and version info. If the asset is attempted to be 'transferred' twice, the latter transaction will be invalidated by all peers.

dave.enyeart (Wed, 08 May 2019 21:22:22 GMT):
@ruairih double spend is solved by the chaincode reading before deleting the asset, just like with public data. The RWSet includes a hash of the key and version info. If the asset is attempted to be 'transferred' twice, the latter transaction will be invalidated by all peers. All peers have the key hash and version history.

ruairih (Wed, 08 May 2019 21:29:45 GMT):
@dave.enyeart but that would mean the peers would need to be able to see the data to validate it, peers with are not part of the private collection wouldnt know what has happened

ruairih (Wed, 08 May 2019 21:31:42 GMT):
also it would require disclosing the exact private collection from which the coin came from, which means disclosing the other members of the private collection

ruairih (Wed, 08 May 2019 21:32:31 GMT):
sawtooth private UTXO seems to guartantee the double spending is not possible and also doesnt disclose who the sender is

dave.enyeart (Wed, 08 May 2019 21:34:08 GMT):
peers don't need to see the data to validate it. they can validate based on the hash and version info only. you are right that the transacting parties are disclosed, but not the private data. there are techniques to hide the transacting parties that are being worked on.

dave.enyeart (Wed, 08 May 2019 21:34:08 GMT):
peers don't need to see the data to validate it. they can validate based on the hash and version info only. you are right that the transacting parties are disclosed, but not the private data. there are techniques to hide the transacting parties that are being proposed.

ruairih (Wed, 08 May 2019 21:35:34 GMT):
right, so they can agree that they received hashed data, but they have no idea what that data is, it could say my coin balance is now negative (as in I didnt have really own the coin I just sent you)

ruairih (Wed, 08 May 2019 21:36:21 GMT):
eg. Private collection A (balance 10) _> send 15 coins to private collection B

ruairih (Wed, 08 May 2019 21:36:31 GMT):
the peers will just accept it

dave.enyeart (Wed, 08 May 2019 21:37:41 GMT):
the scenario I am talking about is not a balance scenario, it is an asset scenario. e.g. assetX is issued and then trasferred around private collections, where the hash of assetX can be verified by all parties as not changing all the way back to issuance.

ruairih (Wed, 08 May 2019 21:51:07 GMT):
@dave.enyeart so you are saying that if second transfer of the asset from collection A occurs everybody on the blockchain will see the same hash in the block, so people will know a double spend is happening?

dave.enyeart (Wed, 08 May 2019 21:53:46 GMT):
yes, specifically they will see that a transaction attempted to read/write a (hashed) key, but it will fail the mvcc version validation since a prior transaction already deleted the (hashed) key.

dave.enyeart (Wed, 08 May 2019 21:53:46 GMT):
yes, specifically they will see that a transaction attempted to read/delete a (hashed) key, but it will fail the mvcc version validation since a prior transaction already deleted the (hashed) key.

ruairih (Wed, 08 May 2019 22:11:24 GMT):
ok, thanks will think about it

xDxD (Thu, 09 May 2019 01:21:46 GMT):
Has joined the channel.

DarwinHarianto (Thu, 09 May 2019 01:34:27 GMT):
Hello guys, I make 2 orgs and each org has 2 peers. I want them all to get in 1 channel.

DarwinHarianto (Thu, 09 May 2019 01:34:27 GMT):
Hello guys, I make 2 orgs and each org has 2 peers. I want them all to get in 1 channel. I have already make the script and running them. when I put from org 1, both peers are inside the channel. for org 2, they cannot get inside channel. inside docker I put this ` CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/users/Admin@org2.ttp.com/msp CORE_PEER_ADDRESS=peer0.org2.ttp.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/peers/peer0.org2.ttp.com/tls/ca.crt peer channel join -b mychannel.block ` Error said that `2019-05-09 01:30:27.380 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: genesis block file not found open mychannel.block: no such file or directory ` But I have already copied the file using ` docker cp peer0.org1.ttp.com:/mychannel.block . docker cp mychannel.block peer0.org2.ttp.com:/mychannel.block ` where did I go wrong?

DarwinHarianto (Thu, 09 May 2019 01:34:27 GMT):
Hello guys, I make 2 orgs and each org has 2 peers. I want them all to get in 1 channel. I have already make the script and running them. when I put from org 1, both peers are inside the channel. for org 2, they cannot get inside channel. inside docker I put this ``` CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/users/Admin@org2.ttp.com/msp CORE_PEER_ADDRESS=peer0.org2.ttp.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/peers/peer0.org2.ttp.com/tls/ca.crt peer channel join -b mychannel.block ``` Error said that ``` 2019-05-09 01:30:27.380 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: genesis block file not found open mychannel.block: no such file or directory ``` But I have already copied the file using ``` docker cp peer0.org1.ttp.com:/mychannel.block . docker cp mychannel.block peer0.org2.ttp.com:/mychannel.block ``` where did I go wrong?

DarwinHarianto (Thu, 09 May 2019 01:46:36 GMT):
if I put `docker exec -e "CORE_PEER_LOCALMSPID=Org2MSP" -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/users/Admin@org2.ttp.com/msp" peer0.org2.ttp.com peer channel join -b mychannel.block` it said `Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org2MSP])` Even if the channel consortium is org1 and org2

sah (Thu, 09 May 2019 02:20:17 GMT):
@DarwinHarianto When you copied the blocks into the containers you put them at the root of their respective filesystems, but when you run the command the block you specify is relative to directory that the peer command is run from (ie. `/opt/gopath/src/github.com/hyperledger/fabric/peer/`)

sah (Thu, 09 May 2019 02:21:51 GMT):
also, FWIW, I get a shell on the container (`docker exec -it cli bash`) so I can 'see' what's in the directory and what paths are valid

DarwinHarianto (Thu, 09 May 2019 02:22:44 GMT):
@sah thanks for answering. docker exec bash is `root@389b6d43bd5a:/opt/gopath/src/github.com/hyperledger/fabric/peer# `

sah (Thu, 09 May 2019 02:24:32 GMT):
Also, have you read this? https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

DarwinHarianto (Thu, 09 May 2019 02:25:06 GMT):
I make it already having 2 orgs, does it mean I still need to do that?

sah (Thu, 09 May 2019 02:25:30 GMT):
I'm a learner too, so I don't know for sure, but my guess is yes

DarwinHarianto (Thu, 09 May 2019 02:25:42 GMT):
``` Profiles: TwoOrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: SampleConsortium: Organizations: - *Org1 - *Org2 TwoOrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationsDefaults Organizations: - *Org1 - *Org2 ```

DarwinHarianto (Thu, 09 May 2019 02:27:05 GMT):
btw, do you know about this? ` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Post http://unix.sock/containers/create?name=net-peer0.org1.ttp.com-mycc-v0: dial unix /var/run/docker.sock: connect: no such file or directory` this happen after I installed Chaincode for peer0 and peer1. When I tried to `docker exec -it cli peer chaincode instantiate -o orderer0.ttp.com:7050 -C mychannel -n mycc github.com/chaincode -v v0 -c '{"Args": ["a", "100"]}'` it said the above error.

sah (Thu, 09 May 2019 02:28:25 GMT):
No, sorry.

sah (Thu, 09 May 2019 02:30:42 GMT):
Also, when you're logged into a container, I find `export $FABRIC_LOGGING_LEVEL=DEBUG` VERY helpful

yeousunn (Thu, 09 May 2019 02:35:35 GMT):
Has joined the channel.

JhonatanCuevas (Thu, 09 May 2019 02:43:28 GMT):
Has joined the channel.

JhonatanCuevas (Thu, 09 May 2019 02:43:30 GMT):
Good afternoon, I have a problem with raft, I was attached to the network, but I stopped my order and I applied a docker stop and then a docker rm and finally a docker system prune, and now I do not when I raise it again I get the following error: `[orderer.consensus.etcdraft] commitTo -> PANI 80a tocommit(25) is out of range [lastIndex(0)]. Was the raft log corrupted, truncated, or lost?`

JhonatanCuevas (Thu, 09 May 2019 02:43:30 GMT):
Good afternoon, I have a problem with raft, I was attached to the network, but I stopped my order and I applied a docker stop and then a docker rm and finally a docker system prune, and now when I raise it again I get the following error: `[orderer.consensus.etcdraft] commitTo -> PANI 80a tocommit(25) is out of range [lastIndex(0)]. Was the raft log corrupted, truncated, or lost?`

JhonatanCuevas (Thu, 09 May 2019 02:53:16 GMT):
This happens when I start communication with the rest of the oderer nodes of the other organizations

JhonatanCuevas (Thu, 09 May 2019 02:53:16 GMT):
this happens when he started communicating with the rest of the oderer nodes of the other organizations

JhonatanCuevas (Thu, 09 May 2019 02:56:50 GMT):
how can i solve this error? thank

samshdn (Thu, 09 May 2019 03:12:50 GMT):
I have a problem with chaincode instantiation. I have installed the java chain code through fabric-java-sdk. after that, I try to instantiate the chain code, I got error from the log: failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode SimpleChaincode:1 for transaction how can I solve this error? thank

DarwinHarianto (Thu, 09 May 2019 03:40:35 GMT):
@sah I found my problem, my docker exec, doesn't have the authority to use peer. Do you know how to give that authority? simply putting ``` ```

DarwinHarianto (Thu, 09 May 2019 03:40:35 GMT):
@sah I found my problem, my docker exec, doesn't have the authority to use peer. Do you know how to give that authority? simply putting ``` version: '2' networks: behave: services: cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli2 - CORE_PEER_ADDRESS=peer0.org2.ttp.com:7051 - CORE_PEER_LOCALMSPID="Org2MSP" - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/users/Admin@org2.ttp.com/msp - CORE_CHAINCODE_KEEPALIVE=10 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ../chaincode/:/opt/gopath/src/github.com/chaincode - $GOPATH/src/github.com/hyperledger/fabric/:/opt/gopath/src/github.com/hyperledger/fabric/ - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - /var/run/docker.sock:/host/var/run/docker.sock networks: - behave ``` doesnt work

DarwinHarianto (Thu, 09 May 2019 03:40:35 GMT):
@sah I found my problem, my docker exec, doesn't have the authority to use peer. Do you know how to give that authority? simply putting ``` version: '2' networks: behave: services: cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org2.ttp.com:7051 - CORE_PEER_LOCALMSPID="Org2MSP" - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ttp.com/users/Admin@org2.ttp.com/msp - CORE_CHAINCODE_KEEPALIVE=10 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ../chaincode/:/opt/gopath/src/github.com/chaincode - $GOPATH/src/github.com/hyperledger/fabric/:/opt/gopath/src/github.com/hyperledger/fabric/ - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - /var/run/docker.sock:/host/var/run/docker.sock networks: - behave ``` doesnt work

sah (Thu, 09 May 2019 04:36:16 GMT):
@DarwinHarianto Can't say that I do. What do you mean that your docker exec doesn't have authority?

DarwinHarianto (Thu, 09 May 2019 04:55:31 GMT):
because I am seeing this message all the time `2019-05-09 04:53:47.591 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org2MSP])` when I put for org1, it works fine. When I put it for org2, this came out. I tried to just call peer channel list. At 1 it gives my channel, at 2, it doesn't work.

DarwinHarianto (Thu, 09 May 2019 04:55:38 GMT):
@sah

garunkumar450 (Thu, 09 May 2019 05:12:57 GMT):
can any one help chaincode event listener in go lang

ivorobioff (Thu, 09 May 2019 05:13:52 GMT):
@dave.enyeart I understood the idea of dynamic collections. The reason why it won't for my situation is that I don't want to grant full access to the collection but just to some of the assets in the collection. For example, I have orgA and orgB, and I have assets A1, A2, A3 in the same collection. What I want is that orgA can see only asset A3 and orgB can see only assets A1 and A2 even though all assets are in the same collection. That's why dynamic collections don't help because even if I change participants of the collection at run-time it will still grant full access to the collection.

ivorobioff (Thu, 09 May 2019 05:13:52 GMT):
@dave.enyeart I understood the idea of dynamic collections. The reason why it won't work for my situation is that I don't want to grant full access to the collection but just to some of the assets in the collection. For example, I have orgA and orgB, and I have assets A1, A2, A3 in the same collection. What I want is that orgA can see only asset A3 and orgB can see only assets A1 and A2 even though all assets are in the same collection. That's why dynamic collections don't help because even if I change participants of the collection at run-time it will still grant full access to the collection.

deenario (Thu, 09 May 2019 05:35:53 GMT):
Guys, I have to create multiple user in my Blockchain. Like lets suppose multiple voter that can cast there vote in the system. What would be the user authentication for these voters. How will they get authenticated to the system. Like in normal systems we have User logins using username and password.

Lorem (Thu, 09 May 2019 05:37:04 GMT):
Hey, whenever I start a new network, install and instantiate a chaincode, its takes really long to propose the first invoke transaction, since the docker containers for dev-chaincode have to start first. So, is there any way to speed this up? I'm having a network with almost 30 orgs and it takes 35-50 minutes

DarwinHarianto (Thu, 09 May 2019 06:23:58 GMT):
can some one tell me what does this mean? ``` docker exec -it cli peer chaincode instantiate -o orderer0.ttp.com:7050 -C mychannel -n mycc github.com/chaincode -v v0 -c '{"Args": ["a", "100"]}' 2019-05-09 06:23:31.998 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-05-09 06:23:32.052 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-05-09 06:23:32.073 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-05-09 06:23:32.073 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Post http://unix.sock/containers/create?name=net-peer1.org2.ttp.com-mycc-v0: dial unix /var/run/docker.sock: connect: no such file or directory ```

DarwinHarianto (Thu, 09 May 2019 06:24:10 GMT):
already declaring the volume, but still get that error

florianc (Thu, 09 May 2019 06:26:08 GMT):
Hum. Interesting. Could you elaborate why? Because from my understanding, the orderer generates the block at a certain point in time. This time could be considered as the block timestamp, no? Moreover, is there a proper way to detreminate when a block, or a transaction, was commited to the ledger? My problem is that I use events for my users to work with the business represented by my chaincodes. They would like to known when a certain action has been executed.

Lorem (Thu, 09 May 2019 06:31:01 GMT):
Might probably not be the solution for this, but you're missing the init function call in Args, I think. It should be: ... -v v0 -c '{"Args": ["init","a", "100"]}'

DarwinHarianto (Thu, 09 May 2019 06:55:06 GMT):
Thanks for replying. I found the problem. It was the peer endpoint directory instead of ///host, I put in //host

chlsc (Thu, 09 May 2019 07:30:25 GMT):
can someone tell me whether I can do count using couchdb via chaincode?

arctic_Oak (Thu, 09 May 2019 07:43:42 GMT):
We are building an application for transaction within an organization and we are in research phase. We have a doubt that if the transaction needs to happen inside an organization will it be feasible. Anywhere we are referring to any documentation they all are about transaction across the organizations.

saurbhshrma (Thu, 09 May 2019 07:50:53 GMT):
I am using windows 8.1 and docker toolbox for fabric. When i run the /byfn.sh up command it shows an error saying cannot find file scripts/script.sh.

DarwinHarianto (Thu, 09 May 2019 08:18:09 GMT):
Is there any tutorial to use node js to query against ledger?

ivorobioff (Thu, 09 May 2019 08:21:00 GMT):
btw, I found this https://jira.hyperledger.org/browse/FAB-10889 it looks like proposal to a solution that I am looking for

dave.enyeart (Thu, 09 May 2019 09:25:17 GMT):
@ivorobioff FAB-10889 is one model, where each org has its own implicit collection. FAB-7593 is the model I was speaking about, where there would be a global 'local' collection that everybody is implicitly a member of, but not everybody can see the private data. You only see the private data if a client explicitly sends it to you.

dave.enyeart (Thu, 09 May 2019 09:25:17 GMT):
@ivorobioff FAB-10889 is one model, where each org has its own implicit collection. FAB-7593 is the model I was speaking about, where there would be a global 'local' collection that everybody is implicitly a member of, but not everybody can see the private data. You only see the private data if a client explicitly sends it to you. It wouldn't work the same way as the existing collections.

ribjethgnis (Thu, 09 May 2019 09:31:27 GMT):

issue.png

dave.enyeart (Thu, 09 May 2019 09:34:24 GMT):
@ribjethgnis See https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html#managing-external-dependencies-for-chaincode-written-in-go

TristanBustillo (Thu, 09 May 2019 09:36:16 GMT):
is this flow okay? eg. 3 org private data is in collection of org1 and org2 (ep is OR) i need to assign it to org3 for read-only as org3 client i will have a rest api that query the private data between org1 and org2 and i will use peer of org2 for endorsement to query for me

TristanBustillo (Thu, 09 May 2019 09:37:02 GMT):
or maybe better to have another collection that involves all parties... just delete the state in one collection and move it to the new collection

ribjethgnis (Thu, 09 May 2019 09:39:47 GMT):
@dave.enyeart ya i tried but now i m getting osboxes@osboxes:~/go/src/github.com$ go run gocc.go gocc.go:24:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of: /home/osboxes/go/src/github.com/vendor/github.com/hyperledger/fabric/core/chaincode/lib/cid (vendor tree) /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) /home/osboxes/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH)

dave.enyeart (Thu, 09 May 2019 09:40:59 GMT):
No, for aggregate reporting the recommended practice is to use a fit-for-purpose downstream data store. You can use block events to build out the data store as mentioned here: https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html. Alternatively you could setup CouchDB replication such that the primary CouchDB is only accessed by the peer (read/write) while the replica is accessed by other query clients (read only).

dave.enyeart (Thu, 09 May 2019 09:40:59 GMT):
No, for aggregate reporting the recommended practice is to use a fit-for-purpose downstream data store. You can use block events to build out the data store as mentioned here: https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html. Alternatively you could setup CouchDB replication such that the primary CouchDB is only accessed by the peer (read/write) while the replica is accessed by other query clients (read only) and can include aggregate Views.

dave.enyeart (Thu, 09 May 2019 09:40:59 GMT):
No, for aggregate reporting and analytics the recommended practice is to use a fit-for-purpose downstream data store. You can use block events to build out the data store as mentioned here: https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html. Alternatively you could setup CouchDB replication such that the primary CouchDB is only accessed by the peer (read/write) while the replica is accessed by other query clients (read only) and can include aggregate Views.

chlsc (Thu, 09 May 2019 09:55:23 GMT):
Thank you. Dave.

Niklaskkkk (Thu, 09 May 2019 10:58:54 GMT):
Hi, I just tried the basic tutorial "build your first network" from the official documentation. However, seems to have an issue with the docker containers? All help appreciated! Status: Downloaded newer image for hyperledger/fabric-peer:latest Creating peer1.org1.example.com ... Creating peer0.org1.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org2.example.com ... Creating peer1.org1.example.com Creating peer0.org1.example.com Creating peer1.org2.example.com Creating orderer.example.com Creating peer0.org1.example.com ... error ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: driver failed programming external connectivity on endpoint peer0.org1.example.com (c98218d920aa94b3631c0d6bb1a887f87b0ad5ad3c94b65e8ba719c26a91caf6): Error starting userlaCreating orderer.example.com ... error ERROR: for orderer.example.com Cannot start service orderer.example.com: driver failed programming external connectivity on endpoint orderer.example.com (89515b67a2210e2d6d29aa8b47e4bc2a9b3972995382a03ea01a2a3e5332f195): Error starting userland proxy:Creating peer0.org2.example.com ... done ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: driver failed programming external connectivity on endpoint peer0.org1.example.com (c98218d920aa94b3631c0d6bb1a887f87b0ad5ad3c94b65e8ba719c26a91caf6): Error starting userland proxy: listen tcp 0.0.0.0:7051: bind: address already in use ERROR: for orderer.example.com Cannot start service orderer.example.com: driver failed programming external connectivity on endpoint orderer.example.com (89515b67a2210e2d6d29aa8b47e4bc2a9b3972995382a03ea01a2a3e5332f195): Error starting userland proxy: listen tcp 0.0.0.0:7050: bind: address already in use ERROR: Encountered errors while bringing up the project. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES edb3d52fb11c hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:9051->9051/tcp peer0.org2.example.com d16191e64d06 hyperledger/fabric-orderer:latest "orderer" 2 seconds ago Created orderer.example.com 6ee8fac77f31 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:10051->10051/tcp peer1.org2.example.com 9e6d2102a251 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Created peer0.org1.example.com 721bd6b00480 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:8051->8051/tcp peer1.org1.example.com Error: No such container: cli ERROR !!!! Test failed

Niklaskkkk (Thu, 09 May 2019 10:58:54 GMT):
Hi, I just tried the basic tutorial "build your first network" from the official documentation. However, seems to have an issue with the docker containers? All help appreciated! Status: Downloaded newer image for hyperledger/fabric-peer:latest Creating peer1.org1.example.com ... Creating peer0.org1.example.com ... Creating orderer.example.com ... Creating peer1.org2.example.com ... Creating peer0.org2.example.com ... Creating peer1.org1.example.com Creating peer0.org1.example.com Creating peer1.org2.example.com Creating orderer.example.com Creating peer0.org1.example.com ... error ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: driver failed programming external connectivity on endpoint peer0.org1.example.com (c98218d920aa94b3631c0d6bb1a887f87b0ad5ad3c94b65e8ba719c26a91caf6): Error starting userlaCreating orderer.example.com ... error ERROR: for orderer.example.com Cannot start service orderer.example.com: driver failed programming external connectivity on endpoint orderer.example.com (89515b67a2210e2d6d29aa8b47e4bc2a9b3972995382a03ea01a2a3e5332f195): Error starting userland proxy:Creating peer0.org2.example.com ... done ERROR: for peer0.org1.example.com Cannot start service peer0.org1.example.com: driver failed programming external connectivity on endpoint peer0.org1.example.com (c98218d920aa94b3631c0d6bb1a887f87b0ad5ad3c94b65e8ba719c26a91caf6): Error starting userland proxy: listen tcp 0.0.0.0:7051: bind: address already in use ERROR: for orderer.example.com Cannot start service orderer.example.com: driver failed programming external connectivity on endpoint orderer.example.com (89515b67a2210e2d6d29aa8b47e4bc2a9b3972995382a03ea01a2a3e5332f195): Error starting userland proxy: listen tcp 0.0.0.0:7050: bind: address already in use ERROR: Encountered errors while bringing up the project. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES edb3d52fb11c hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:9051->9051/tcp peer0.org2.example.com d16191e64d06 hyperledger/fabric-orderer:latest "orderer" 2 seconds ago Created orderer.example.com 6ee8fac77f31 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:10051->10051/tcp peer1.org2.example.com 9e6d2102a251 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Created peer0.org1.example.com 721bd6b00480 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:8051->8051/tcp peer1.org1.example.com Error: No such container: cli ERROR !!!! Test failed ~~~This is on Ubuntu 18.4 and I just ran the command "./byfn.sh up -l node"

RiccardoPersiani1 (Thu, 09 May 2019 11:01:16 GMT):
Has joined the channel.

RiccardoPersiani1 (Thu, 09 May 2019 11:01:17 GMT):
Hello, does anybody know how to increase the timeout of the function stub.InvokeChaincode?

saurbhshrma (Thu, 09 May 2019 11:22:48 GMT):
byfn.sh

mastersingh24 (Thu, 09 May 2019 11:25:33 GMT):
update `chaincode.executetimeout` in core.yaml or set the environment variable `CORE_CHAINCODE_EXECUTETIMEOUT` the format is a duration string, e.g. `30s` (default)

saurbhshrma (Thu, 09 May 2019 11:40:13 GMT):
I am trying to run fabcar from the docs. but the fabric-ca container exits. On checking the logs I found this: $ docker logs -f ca.example.com 2019/05/09 11:36:59 [INFO] Created default configuration file at /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2019/05/09 11:36:59 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server 2019/05/09 11:36:59 [INFO] Server Version: 1.4.1 2019/05/09 11:36:59 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[159 180 112 53 8 218 17 114 63 112 60 160 55 104 139 108 17 67 167 30 54 159 95 186 124 60 37 15 183 114 158 32]]: Key with SKI 9fb4703508da11723f703ca037688b6c1143a71e369f5fba7c3c250fb7729e20 not found in /etc/hyperledger/fabric-ca-server/msp/keystore Environment-- Windows 8.1, docker-toolbox

saurbhshrma (Thu, 09 May 2019 11:40:13 GMT):
I am trying to run fabcar from the docs. but the fabric-ca container exits. On checking the logs I found this: $ docker logs -f ca.example.com 2019/05/09 11:36:59 [INFO] Created default configuration file at /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2019/05/09 11:36:59 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server 2019/05/09 11:36:59 [INFO] Server Version: 1.4.1 2019/05/09 11:36:59 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[159 180 112 53 8 218 17 114 63 112 60 160 55 104 139 108 17 67 167 30 54 159 95 186 124 60 37 15 183 114 158 32]]: Key with SKI 9fb4703508da11723f703ca037688b6c1143a71e369f5fba7c3c250fb7729e20 not found in /etc/hyperledger/fabric-ca-server/msp/keystore Environment-- Windows 8.1, docker-toolbox. How to fix this error?

RiccardoPersiani1 (Thu, 09 May 2019 11:41:46 GMT):
Thanks for the reply, I am using the basic-network in fabric-samples, but apparently there the is not any core.yaml.

Niklaskkkk (Thu, 09 May 2019 11:51:25 GMT):
Hi, once I run the following command on the "first-network" tutorial from official documentation, I receive the following error. ./byfn.sh up -l node aving all peers join the channel... + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host" peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host" peer0.org1 failed to join the channel, Retry after 3 seconds

Niklaskkkk (Thu, 09 May 2019 12:06:08 GMT):
Hi, doing the "first-network" from the official documentation and I receive an error running the following command. Anyone help? This is on Ubuntu 18.04. ./byfn.sh up -l node Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x 2019-05-09 12:00:31.378 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

Niklaskkkk (Thu, 09 May 2019 12:24:37 GMT):
I tried to bring the network down and prone all containers. However, once I run the "up" command again I receive this error: uild your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + res=0 + set +x 2019-05-09 12:20:54.807 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-05-09 12:20:54.839 UTC [cli.common] readBlock -> INFO 002 Received block: 0 ===================== Channel 'mychannel' created ===================== Having all peers join the channel... + peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host" + res=1 + set +x peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x

Niklaskkkk (Thu, 09 May 2019 12:50:55 GMT):
If I run the ./byfn.sh down command I get the following message. Particularly, the "no containers available" command could that be part of the issue? root@nik-ThinkPad-T470s:/home/nik/fabric-intro/fabric-samples/first-network# ./byfn.sh down Stopping for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... Stopping cli ... done Stopping orderer.example.com ... done Removing cli ... done Removing peer1.org2.example.com ... done Removing peer0.org2.example.com ... done Removing peer1.org1.example.com ... done Removing peer0.org1.example.com ... done Removing orderer.example.com ... done Removing network net_byfn Removing volume net_peer0.org3.example.com WARNING: Volume net_peer0.org3.example.com not found. Removing volume net_peer1.org3.example.com WARNING: Volume net_peer1.org3.example.com not found. Removing volume net_orderer2.example.com WARNING: Volume net_orderer2.example.com not found. Removing volume net_orderer.example.com Removing volume net_peer0.org2.example.com Removing volume net_peer0.org1.example.com Removing volume net_peer1.org1.example.com Removing volume net_peer1.org2.example.com Removing volume net_orderer5.example.com WARNING: Volume net_orderer5.example.com not found. Removing volume net_orderer4.example.com WARNING: Volume net_orderer4.example.com not found. Removing volume net_orderer3.example.com WARNING: Volume net_orderer3.example.com not found. ---- No containers available for deletion ---- ---- No images available for deletion ----

Niklaskkkk (Thu, 09 May 2019 12:50:55 GMT):
If I run the ./byfn.sh down command I get the following message. Particularly, the "no containers available" command could that be part of the issue? root@nik:/home/nik/fabric-intro/fabric-samples/first-network# ./byfn.sh down Stopping for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... Stopping cli ... done Stopping orderer.example.com ... done Removing cli ... done Removing peer1.org2.example.com ... done Removing peer0.org2.example.com ... done Removing peer1.org1.example.com ... done Removing peer0.org1.example.com ... done Removing orderer.example.com ... done Removing network net_byfn Removing volume net_peer0.org3.example.com WARNING: Volume net_peer0.org3.example.com not found. Removing volume net_peer1.org3.example.com WARNING: Volume net_peer1.org3.example.com not found. Removing volume net_orderer2.example.com WARNING: Volume net_orderer2.example.com not found. Removing volume net_orderer.example.com Removing volume net_peer0.org2.example.com Removing volume net_peer0.org1.example.com Removing volume net_peer1.org1.example.com Removing volume net_peer1.org2.example.com Removing volume net_orderer5.example.com WARNING: Volume net_orderer5.example.com not found. Removing volume net_orderer4.example.com WARNING: Volume net_orderer4.example.com not found. Removing volume net_orderer3.example.com WARNING: Volume net_orderer3.example.com not found. ---- No containers available for deletion ---- ---- No images available for deletion ----

CaioPinheiro (Thu, 09 May 2019 14:52:32 GMT):
Has joined the channel.

CaioPinheiro (Thu, 09 May 2019 14:52:33 GMT):
Hi, I get this error when I try to create a channel: Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0

CaioPinheiro (Thu, 09 May 2019 14:53:19 GMT):
can someone help me?

ericsolomon (Thu, 09 May 2019 15:08:01 GMT):
Has joined the channel.

ericsolomon (Thu, 09 May 2019 15:08:02 GMT):
I am trying to better understand policies in channel configuration, and going off of https://hyperledger-fabric.readthedocs.io/en/release-1.4/policies.html?highlight=policies#configuration-and-policies I get the hierarchy of policies in place, but not how they are used and what they control at each level. Is there any documentation out there as to how the Admin policy at the Application level differs from the Admin policy at the Application Org level, for example?

Alecgilchrist (Thu, 09 May 2019 15:45:30 GMT):
There seems to have been an update to the bootstrap script that breaks networks attempting to not run on fabric v1.4. version arguments and flags passed to the bootstrap script downloaded in build your first network scenario, and any that use the bootstrap script to pull down docker containers for the network

jkosecki (Thu, 09 May 2019 20:50:53 GMT):
Hi, I'm trying to upgrade my fabric cluster in kubernetes - 2 orderers and 3 peers from 1.2.1 to 1.3.0. With orderers everything seems fine after deploying new image version but peers fail with an error: ``` 2019-05-09 16:04:29.339 UTC [ledgermgmt] OpenLedger -> INFO 01b Opening ledger with id = test1 2019-05-09 16:04:29.345 UTC [ledgermgmt] OpenLedger -> INFO 01c Opened ledger with id = test2 2019-05-09 16:04:29.345 UTC [peer] Initialize -> WARN 01d Failed to load chain test1(proto: msgs.VersionedValueProto: illegal tag 0 (wire type 0)) 2019-05-09 16:04:29.346 UTC [peer] Initialize -> INFO 01e Loading chain test2 2019-05-09 16:04:29.346 UTC [ledgermgmt] OpenLedger -> INFO 01f Opening ledger with id = test1 2019-05-09 16:04:29.351 UTC [ledgermgmt] OpenLedger -> INFO 020 Opened ledger with id = test2 ``` 2019-05-09 16:04:29.352 UTC [peer] Initialize -> WARN 021 Failed to load chain test2(proto: msgs.VersionedValueProto: illegal tag 0 (wire type 0))

jkosecki (Thu, 09 May 2019 20:50:53 GMT):
Hi, I'm trying to upgrade my fabric cluster in kubernetes - 2 orderers and 3 peers from 1.2.1 to 1.3.0. With orderers everything seems fine after deploying new image version but peers fail with an error: ``` 2019-05-09 16:04:29.339 UTC [ledgermgmt] OpenLedger -> INFO 01b Opening ledger with id = test1 2019-05-09 16:04:29.345 UTC [ledgermgmt] OpenLedger -> INFO 01c Opened ledger with id = test2 2019-05-09 16:04:29.345 UTC [peer] Initialize -> WARN 01d Failed to load chain test1(proto: msgs.VersionedValueProto: illegal tag 0 (wire type 0)) 2019-05-09 16:04:29.346 UTC [peer] Initialize -> INFO 01e Loading chain test2 2019-05-09 16:04:29.346 UTC [ledgermgmt] OpenLedger -> INFO 01f Opening ledger with id = test1 2019-05-09 16:04:29.351 UTC [ledgermgmt] OpenLedger -> INFO 020 Opened ledger with id = test2 2019-05-09 16:04:29.352 UTC [peer] Initialize -> WARN 021 Failed to load chain test2(proto: msgs.VersionedValueProto: illegal tag 0 (wire type 0)) ```

abidtsi (Thu, 09 May 2019 20:53:53 GMT):
Has joined the channel.

abidtsi (Thu, 09 May 2019 20:53:56 GMT):
#fabric-questions How do I change the proxy when trying to install fabric samples using curl -sSL http://bit.ly/2ysbOFE | bash -s command?

yacovm (Thu, 09 May 2019 20:54:01 GMT):
Oh.... That's not good. @jkosecki is this production?

jkosecki (Thu, 09 May 2019 20:54:53 GMT):
@yacovm No, luckily doing tests in dev environment before going to production

yacovm (Thu, 09 May 2019 20:55:27 GMT):
Great! Open a JIRA and attach your files 😁

jkosecki (Thu, 09 May 2019 20:57:13 GMT):
What files would be needed? Anyway, can it be related to step 3 from the fabric docs: ``` 1. Stop the peer. 2. Back up the peer’s ledger and MSP. 3. Remove chaincode containers and images. ``` Because in kubernetes chaincode container is not visible so I'm not sure how to do it

yacovm (Thu, 09 May 2019 21:00:53 GMT):
Just the ledger of coursr

jkosecki (Thu, 09 May 2019 21:04:20 GMT):
Not sure if I understand. SHould I upload `ledgersData` folder toinJIRA ticket?

jkosecki (Thu, 09 May 2019 21:04:20 GMT):
Not sure if I understand. SHould I upload `ledgersData` folder in JIRA ticket?

yacovm (Thu, 09 May 2019 21:06:51 GMT):
Yes

yacovm (Thu, 09 May 2019 21:06:57 GMT):
The old and the new

yacovm (Thu, 09 May 2019 21:07:05 GMT):
If it is not confidential

jkosecki (Thu, 09 May 2019 21:09:44 GMT):
What do you mean by "old one"? As part of upgrade I didn't remove ledger. I just changed an image version in my `deployment.yml` file and applied it with `kubectl apply -f deployment.yml`.

jkosecki (Thu, 09 May 2019 21:09:57 GMT):
And when peer pod was restarting this problem appeared

CaioPinheiro (Fri, 10 May 2019 00:09:03 GMT):
#fabric-questions Hi, I get this error when I try to create a channel: "Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied". Can someone help me?

oussmea (Fri, 10 May 2019 00:30:58 GMT):
hello I'm new here , I need a help for this problem please

oussmea (Fri, 10 May 2019 00:31:31 GMT):

fabric.png

oussmea (Fri, 10 May 2019 00:43:33 GMT):
I just cloned the fabrik-sdk-node project and I'm trying to test it

DarwinHarianto (Fri, 10 May 2019 01:14:07 GMT):
Can someone help me with this error? At `docker exec -it cli bash` I Tried to make an anchor peer using `peer channel update -o orderer1.ttp.com:7050 -c mychannel -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer1.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem` it gives me this error `Error: failed to create deliver client: orderer client failed to connect to orderer1.ttp.com:7050: failed to create new connection: context deadline exceeded`

DarwinHarianto (Fri, 10 May 2019 02:47:37 GMT):
how can I query using node.js? `docker exec -it cli peer chaincode invoke -o orderer0.ttp.com:7050 -n mycc -c '{"Args":["set", "a", "20"]}' -C mychannel` query block doesn't give me what I want

FedMan (Fri, 10 May 2019 04:09:47 GMT):
Has joined the channel.

FedMan (Fri, 10 May 2019 04:09:48 GMT):
does anyone knows where to look for hyperledger developers? i have a project and I am looking for blockchain developers (fabric / composer)

DarwinHarianto (Fri, 10 May 2019 04:19:52 GMT):
composer is not recommended

djraj (Fri, 10 May 2019 04:37:43 GMT):
Hello guys. I've got an error when instantiating a chaincode `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (500): invalid cluster node while attaching to network`

djraj (Fri, 10 May 2019 04:37:57 GMT):
Does anyone know what it is and how to solve it?

deenario (Fri, 10 May 2019 05:29:58 GMT):
Does anyone know how to use fabric Identities ?

deenario (Fri, 10 May 2019 05:30:32 GMT):
Delete all your docker containers and try then

DarwinHarianto (Fri, 10 May 2019 05:34:56 GMT):
do you mean on Node SDK?

DarwinHarianto (Fri, 10 May 2019 05:36:42 GMT):
I tried to query using node js on Chaincode . this is what it gives me ``` Query result from peer [0]: 100 Query result from peer [1]: Error: failed to execute transaction 91f17b408954eb01e8f9e57c80e4fdfe285e361a7b2256b6f775ff69d304c69f: error sending: txid: 91f17b408954eb01e8f9e57c80e4fdfe285e361a7b2256b6f775ff69d304c69f(mychannel) exists Query result from peer [2]: Error: failed to execute transaction 91f17b408954eb01e8f9e57c80e4fdfe285e361a7b2256b6f775ff69d304c69f: error sending: txid: 91f17b408954eb01e8f9e57c80e4fdfe285e361a7b2256b6f775ff69d304c69f(mychannel) exists Query result from peer [3]: 100 ``` I have 4 peers. `const responsePayloads = await channel.queryByChaincode(request);` This is how I called the result. can someone explain why it give failure?

deenario (Fri, 10 May 2019 05:38:06 GMT):
Try to execute a command on terminal rather than Node SDK.

DarwinHarianto (Fri, 10 May 2019 05:38:33 GMT):
I am trying to make a front end. I can't do that using terminal.

deenario (Fri, 10 May 2019 05:38:58 GMT):
Use the terminal to test if your fabric is working.

DarwinHarianto (Fri, 10 May 2019 05:39:35 GMT):
My fabric is working. I just want to know why it gives me an error on peers. If I tried it multiple times, the peer will change overtime. sometimes all success

DarwinHarianto (Fri, 10 May 2019 05:40:14 GMT):
``` Query result from peer [0]: 100 Query result from peer [1]: 100 Query result from peer [2]: 100 Query result from peer [3]: 100 ```

deenario (Fri, 10 May 2019 05:41:17 GMT):
Hmmm This is kind of weird. I haven't tried this.

DarwinHarianto (Fri, 10 May 2019 06:34:51 GMT):
Do you know how to query all data? not by key?

deenario (Fri, 10 May 2019 06:36:14 GMT):
Write chaincode for it .

deenario (Fri, 10 May 2019 06:37:07 GMT):
by defining start Key and end Key . func (s *SmartContract) queryAllCars(APIstub shim.ChaincodeStubInterface) sc.Response { startKey := "CAR0" endKey := "CAR999" resultsIterator, err := APIstub.GetStateByRange(startKey, endKey) if err != nil { return shim.Error(err.Error()) } defer resultsIterator.Close() // buffer is a JSON array containing QueryResults var buffer bytes.Buffer buffer.WriteString("[") bArrayMemberAlreadyWritten := false for resultsIterator.HasNext() { queryResponse, err := resultsIterator.Next() if err != nil { return shim.Error(err.Error()) } // Add a comma before array members, suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- queryAllCars:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) }

deenario (Fri, 10 May 2019 06:37:07 GMT):
by defining start Key and end Key . `func (s *SmartContract) queryAllCars(APIstub shim.ChaincodeStubInterface) sc.Response { startKey := "CAR0" endKey := "CAR999" resultsIterator, err := APIstub.GetStateByRange(startKey, endKey) if err != nil { return shim.Error(err.Error()) } defer resultsIterator.Close() // buffer is a JSON array containing QueryResults var buffer bytes.Buffer buffer.WriteString("[") bArrayMemberAlreadyWritten := false for resultsIterator.HasNext() { queryResponse, err := resultsIterator.Next() if err != nil { return shim.Error(err.Error()) } // Add a comma before array members, suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- queryAllCars:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) }`

deenario (Fri, 10 May 2019 06:37:07 GMT):
by defining start Key and end Key . ``` `func (s *SmartContract) queryAllCars(APIstub shim.ChaincodeStubInterface) sc.Response { startKey := "CAR0" endKey := "CAR999" resultsIterator, err := APIstub.GetStateByRange(startKey, endKey) if err != nil { return shim.Error(err.Error()) } defer resultsIterator.Close() // buffer is a JSON array containing QueryResults var buffer bytes.Buffer buffer.WriteString("[") bArrayMemberAlreadyWritten := false for resultsIterator.HasNext() { queryResponse, err := resultsIterator.Next() if err != nil { return shim.Error(err.Error()) } // Add a comma before array members, suppress it for the first array member if bArrayMemberAlreadyWritten == true { buffer.WriteString(",") } buffer.WriteString("{\"Key\":") buffer.WriteString("\"") buffer.WriteString(queryResponse.Key) buffer.WriteString("\"") buffer.WriteString(", \"Record\":") // Record is a JSON object, so we write as-is buffer.WriteString(string(queryResponse.Value)) buffer.WriteString("}") bArrayMemberAlreadyWritten = true } buffer.WriteString("]") fmt.Printf("- queryAllCars:\n%s\n", buffer.String()) return shim.Success(buffer.Bytes()) }` ```

DarwinHarianto (Fri, 10 May 2019 06:45:35 GMT):
ah yea, that's from Fabcar. I saw that, but if I have an arbitrary key, what should I do? such as a b c d, dasd, 223.

deenario (Fri, 10 May 2019 06:51:52 GMT):
Use keys with prefix then. Like user_1, User_2, User_3 Or voter_1, Voter_2 .

deenario (Fri, 10 May 2019 06:52:44 GMT):
It will be easy if you use prefix and sequenctiak keys

DarwinHarianto (Fri, 10 May 2019 06:53:04 GMT):
aah I see, can it only loop for number? for dates?

deenario (Fri, 10 May 2019 06:53:39 GMT):
Haven't Tried for dates.

knagware9 (Fri, 10 May 2019 07:53:21 GMT):
Check docker compose file , orderer container section , there is some root tls certificate are missing for other orgs peer, thats the issue in my case

ribjethgnis (Fri, 10 May 2019 09:01:04 GMT):
when i run this chaincode osboxes@osboxes:~/go/src/github.com$ go run gocc.go gocc.go:24:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT) /home/osboxes/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH) how to get the github.com/hyperledger/fabric/core/chaincode/lib/cid package

ribjethgnis (Fri, 10 May 2019 09:01:38 GMT):

aa.png

levanto (Fri, 10 May 2019 09:15:18 GMT):
can the prover peer still be a commiting peer?

neneg (Fri, 10 May 2019 10:22:38 GMT):
Hi al! How can I set the endorsement policy for installing and instantiating chaincodes?

FedMan (Fri, 10 May 2019 10:37:25 GMT):
Hi all! I was wondering, is there anyone who has developed and completed a hyperledger solution? I have investors (including me) interested in buying solution if that fits one of the use case we want to develop.

gregnotso (Fri, 10 May 2019 11:27:19 GMT):
can anyone explain these comments in the fabric samples config files? # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.

gregnotso (Fri, 10 May 2019 11:27:19 GMT):
can anyone explain these comments in the fabric samples config files? # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. 1/2

gregnotso (Fri, 10 May 2019 11:28:43 GMT):
the containers are communicating via http and not https, so what is the point of securing anything or the "Admin Party" mode? 2/2

CaioPinheiro (Fri, 10 May 2019 13:59:28 GMT):
Did you mean the environment variable ORDERER_TLS_CLIENTROOTCAS_FILES or ORDERER_GENERAL_TLS_ROOTCAS?

CaioPinheiro (Fri, 10 May 2019 14:46:57 GMT):
here's my orderer docker compose

CaioPinheiro (Fri, 10 May 2019 14:47:21 GMT):

orderer-yml.png

knagware9 (Fri, 10 May 2019 14:48:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=n6wB2hxEu5SwdL9GX) @CaioPinheiro General Root file

CaioPinheiro (Fri, 10 May 2019 14:51:38 GMT):

env-orderer.png

knagware9 (Fri, 10 May 2019 14:54:09 GMT):
ORDERER_GENERAL_TLS_ROOTCAS..should have array of peer org TLS certificate..

jvkatzman (Fri, 10 May 2019 16:15:38 GMT):
Has joined the channel.

jvkatzman (Fri, 10 May 2019 16:15:41 GMT):
12:14 PM Does anyone see any issue to use different channels for dev and qa separation?

jvkatzman (Fri, 10 May 2019 16:15:41 GMT):
12:14 PM Does anyone see any issue to use different channels for dev and qa separation? This is just to get us started at the beginning

spmcnamara (Fri, 10 May 2019 16:25:19 GMT):
@jvkatzman I would think no. I would spin up two different sets of docker containers, one for Dev, and one for QA. That way you don't have goofy channel config stuff to contend with when moving between environments.

spmcnamara (Fri, 10 May 2019 16:28:42 GMT):
Can anyone point me to (or show me) how to move between a ca-client-config.yaml file and a msp.ClientContext? The example code uses a call to a mockClientProvider() for the context. I've found example code in the ChainHero writeup, but that uses what I'm guessing is an older version of the fabric-golang-sdk (because the import paths are not correct), and the calls they make are not correct (at least for the latest fabric-sdk-go.)

spmcnamara (Fri, 10 May 2019 16:29:34 GMT):
I'm guessing that there is a filereader somewhere, and then a utility class to turn that reader in a a ClientConfig which I then can use to create a ClientContext, but but currently I'm not spotting it.

spmcnamara (Fri, 10 May 2019 16:29:56 GMT):
Note: This is to call some of the functions that interact with the MSP.

spmcnamara (Fri, 10 May 2019 16:31:51 GMT):
@ribjethgnis go get -u github.com/hyperledger/fabric

spmcnamara (Fri, 10 May 2019 16:33:39 GMT):
@ribjethgnis You can do a get using the entire path, but you shouldn't have to...

horeaporutiu (Fri, 10 May 2019 17:39:01 GMT):
When running contract.submitTransaction I keep getting `[Network]: _initializeInternalChannel: no suitable peers available to initialize from`...is this a problem connecting with my peers? The first transaction works like a charm.. it's just when I submit a second one I get this error.

ericsolomon (Fri, 10 May 2019 17:52:53 GMT):
Does anyone have an example of the json structure for a SignaturePolicy that contains a nested SignaturePolicy?

vsadriano (Fri, 10 May 2019 17:54:00 GMT):
Hi! I'm trying setup a fabric network using `1.2.1` and I'm getting the error bellow: ```shell orderer.ufc.br | 2019-05-10 17:50:07.651 UTC [orderer/common/broadcast] Handle -> WARN 009 [channel: researchchannel] Rejecting broadcast of config message from 192.168.96.5:58714 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied ``` Any idea what's going on?

stevie20 (Fri, 10 May 2019 19:23:53 GMT):
Does anybody knows, how to format the shim.Success return value with line breaks?

spmcnamara (Fri, 10 May 2019 19:32:32 GMT):
@stevie20 I'm not sure what you mean. The payload of Success is []byte. If you have newline characters in that byte array, they should be maintained when you convert the byte array to string. Perhaps I'm not understanding what you want.

spmcnamara (Fri, 10 May 2019 19:33:29 GMT):
@Antimttr Did you get your logfile size issue worked out? Curious if you learned anything interesting.

stevie20 (Fri, 10 May 2019 19:33:53 GMT):
I just want nicer output if I invoke a query of all fabCars ...

stevie20 (Fri, 10 May 2019 19:35:04 GMT):
In the cli container after peer invoke all cars are in one single line... If I add \n in the buffer, it just includes it as string in the output

spmcnamara (Fri, 10 May 2019 19:35:37 GMT):
@stevie20 Did you try unmarshaling the results, then iterate through the list?

stevie20 (Fri, 10 May 2019 19:37:20 GMT):
This was my first thought how to get all the data from a struct, but I saw there was an iterate example... And i would be very fine with this, if i just can get a \n to get identified as new line in the return from shim.Success ...

stevie20 (Fri, 10 May 2019 19:38:10 GMT):
This is my first chaincode I try to develop...

stevie20 (Fri, 10 May 2019 19:39:45 GMT):
If i iterate through the list, how can i get output to the peer chaincode command? Will this output will be available on production networks as well?

stevie20 (Fri, 10 May 2019 19:40:35 GMT):
Or is the print in the "chaincode" container the output i will get, running outside dev mode?

spmcnamara (Fri, 10 May 2019 19:44:01 GMT):
Are you sure that the original byte array is putting in newlines rather than '\','n'? That is, if you output the payload to the log from inside your chaincode, is it formatted correctly?

spmcnamara (Fri, 10 May 2019 19:47:22 GMT):
If you look at the value of that byte, it should be 0x0a

stevie20 (Fri, 10 May 2019 19:51:28 GMT):
The chaincode from the fabcar example has a output from the buffer...

stevie20 (Fri, 10 May 2019 19:52:11 GMT):
Inside the chaincode container, everything looks well formatted inside the cli container it just shows one line with it as string output...

stevie20 (Fri, 10 May 2019 19:52:48 GMT):
I try to run the chaincode on a production network and looks what is the output there...

Antimttr (Fri, 10 May 2019 19:54:21 GMT):
@spmcnamara I did, that method you gave me worked perfectly!

spmcnamara (Fri, 10 May 2019 20:10:15 GMT):
Awesome. Glad it worked out!

stevie20 (Fri, 10 May 2019 20:14:15 GMT):
Hmm...

stevie20 (Fri, 10 May 2019 20:14:54 GMT):
does anybody knows where the "2019-05-10 20:13:25.207 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 004 Chaincode invoke successful. result: status:200 payload:" comes from?

stevie20 (Fri, 10 May 2019 20:16:00 GMT):
In an other example a query just gives a return value without this INFO...

stevie20 (Fri, 10 May 2019 20:16:19 GMT):
But in my chaincode I get this Info line...

spmcnamara (Fri, 10 May 2019 20:30:37 GMT):
@stevie20 Are you printing the Success object, rather than Success.Payload?

stevie20 (Fri, 10 May 2019 20:30:56 GMT):
Hm...

stevie20 (Fri, 10 May 2019 20:32:05 GMT):
I am just returning return shim.Success(buffer.Bytes())

stevie20 (Fri, 10 May 2019 20:32:46 GMT):
and this produces an output beginning with chaincodeCmd] chaincodeInvokeOrQuery -> INFO 004 Chaincode invoke successful ...

stevie20 (Fri, 10 May 2019 20:33:22 GMT):
and inside this output i get the payload, but this payload is not recognizing \n as new line...

spmcnamara (Fri, 10 May 2019 20:37:46 GMT):
@stevie20 What are you putting into buffer?

spmcnamara (Fri, 10 May 2019 20:37:58 GMT):
The entire query response?

spmcnamara (Fri, 10 May 2019 20:38:36 GMT):
Let's take this offline.

miguelreisa (Fri, 10 May 2019 21:32:39 GMT):
Hello, where in the source code of fabric are the docker images (peer, orderer, etc..) created?

spmcnamara (Fri, 10 May 2019 23:29:52 GMT):
@miguelreisa Look here: https://github.com/hyperledger/fabric/tree/release-1.4/images

nitishbhardwaj19 (Sat, 11 May 2019 09:00:07 GMT):
Hi, I hope everyone is doing good. I am trying to use fabric-java-sdk. I am going through End2endAndBackAgainIt.java. It's well written, easy to follow, but, I am confused about from where does they are loading properties file. I couldn't find any properties file with the name HFCSampletest.properties anywhere. Could someone point me to the required properties file to run a fabric-java-sdk.

varunagarwal (Sat, 11 May 2019 10:16:09 GMT):
In this sample https://github.com/IBM/build-blockchain-insurance-app on this lines https://github.com/IBM/build-blockchain-insurance-app/blob/master/docker-images.sh#L64-L68 a peer image is pulled for the different peers in orgs. What is so special about this image, why can't we just pull `peer latest`. If I had to add another organization to this, how would it work? Can someone plese help out

TharinduSandaruwan1 (Sat, 11 May 2019 10:22:54 GMT):
Can someone help me with this problem?

TharinduSandaruwan1 (Sat, 11 May 2019 10:23:03 GMT):
https://stackoverflow.com/questions/56087988/chaincode-is-not-making-state-correctly

varunagarwal (Sat, 11 May 2019 10:31:02 GMT):
@TharinduSandaruwan1 Can you confirm the value returned when you ran `queryAllCars`?

TharinduSandaruwan1 (Sat, 11 May 2019 10:32:14 GMT):
@varunagarwal It is returning an empty array.

varunagarwal (Sat, 11 May 2019 10:34:26 GMT):
When I did this, the queryAllCars function didn't for me either, but the queryByCar worked fine

varunagarwal (Sat, 11 May 2019 10:35:15 GMT):
@TharinduSandaruwan1

TharinduSandaruwan1 (Sat, 11 May 2019 10:37:33 GMT):
@varunagarwal for me both does not work. And when I when to the couchDb of that peer through browser It does not show the data.It show only this.~{ "_id": "fabcar", "_rev": "1-d61b5b17a369130a3e4a8e2bf587a2df", "~version": "\u0000CgMBBwA=", "_attachments": { "valueBytes": { "content_type": "application/octet-stream", "revpos": 1, "digest": "md5-Mhg2LdVFOtkVyfm3Zg3VYw==", "length": 419, "stub": true } } }~

varunagarwal (Sat, 11 May 2019 10:38:00 GMT):
omg, how do you see the coinDB of the peer through browser? I have been tyring that for so long

varunagarwal (Sat, 11 May 2019 10:38:07 GMT):
couchDB*

varunagarwal (Sat, 11 May 2019 10:40:42 GMT):
@TharinduSandaruwan1 Try creating a car using `createCar` function and then query that same car? This will comfirm if there is an issue in the instantiating of the chaincode or issue with the code itself

varunagarwal (Sat, 11 May 2019 10:41:02 GMT):
await contract.submitTransaction('createCar', 'CAR10', 'Honda', 'Accord', 'Black', 'Tom'); should work

TharinduSandaruwan1 (Sat, 11 May 2019 10:51:17 GMT):
@varunagarwal http://localhost:7984/_utils/ when Issue this on the browser with the port number of the couchDb instance we can see the details of it.

varunagarwal (Sat, 11 May 2019 10:52:05 GMT):
just showing me this `�` in the browser

TharinduSandaruwan1 (Sat, 11 May 2019 10:53:36 GMT):
@varunagarwal where can I issue this command contract.submitTransaction

varunagarwal (Sat, 11 May 2019 10:53:59 GMT):
oh its a command in a nodejs program. if you using the CLI then just use the one you already using

varunagarwal (Sat, 11 May 2019 10:57:41 GMT):
`peer chaincode invoke -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C myc -n fabcar -c '{"Args":["createCar","MYCAR", "Holden", "Barina", "Brown", "tharindu" ]}'` @TharinduSandaruwan1 run this, then do `queryByCar` on `MYCAR`

TharinduSandaruwan1 (Sat, 11 May 2019 11:04:32 GMT):
@varunagarwal It also leads to same results. Does not exit:sob:

varunagarwal (Sat, 11 May 2019 11:04:49 GMT):
what's the log on createCar?

varunagarwal (Sat, 11 May 2019 11:04:53 GMT):
cause this is working for me :)

varunagarwal (Sat, 11 May 2019 11:06:15 GMT):
i am calling via node sdk but I don't think that should be an issue

TharinduSandaruwan1 (Sat, 11 May 2019 11:06:33 GMT):
{ fcn: 'createCar', params: [ 'MYCAR', 'Holden', 'Barina', 'Brown', 'tharindu' ] } ============= START : Create Car =========== ============= END : Create Car =========== 2019-05-11T11:01:18.179Z info [lib/handler.js] info: [myc-5bb79d1c] Calling chaincode Invoke() succeeded. Sending COMPLETED message back to peer {"timestamp":"2019-05-11T11:01:18.179Z"} { fcn: 'queryCar', params: [ 'MYCAR' ] } Error: MYCAR does not exist: at queryCar (/usr/local/src/fabcar.js:50:13) at at process._tickCallback (internal/process/next_tick.js:188:7) 2019-05-11T11:03:09.200Z error [lib/handler.js] error: [myc-7a584656] Calling chaincode Invoke() returned error response [Error: MYCAR does not exist: ]. Sending ERROR message back to peer {"timestamp":"2019-05-11T11:03:09.200Z"}

TharinduSandaruwan1 (Sat, 11 May 2019 11:07:35 GMT):
@varunagarwal these are the chaincode logs for those two actions

varunagarwal (Sat, 11 May 2019 11:08:19 GMT):
you seem to be doing exactly what I did

TharinduSandaruwan1 (Sat, 11 May 2019 11:26:00 GMT):
@varunagarwal when I see logs of the peer it shows me this

TharinduSandaruwan1 (Sat, 11 May 2019 11:26:00 GMT):
[myc][7a584656] failed to invoke chaincode name:"fabcar" , error: transaction returned with failure: Error: MYCAR does not exist: github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:266 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:240 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:147 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:146 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:247 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:500 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler.func1 /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:169 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:31 github.com/hyperledger/fabric/core/comm.(*Throttle).UnaryServerIntercptor /opt/gopath/src/github.com/hyperledger/fabric/core/comm/throttle.go:54 github.com/hyperledger/fabric/core/comm.(*Throttle).UnaryServerIntercptor-fm /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:224 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpclogging/server.go:91 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:30 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:39 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:171 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:982 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1208 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 2019-05-11 11:03:09.202 UTC [comm.grpc.server] 1 -> INFO 1c3 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.23:48700 grpc.code=OK grpc.call_duration=264.3394ms

varunagarwal (Sat, 11 May 2019 11:30:52 GMT):
@TharinduSandaruwan1 Sadly I don't know what else to suggest. You are following same steps I did, but I am not getting the error :P The only difference is I am using `nodejs sdk` whereas you are using `cli`. However with different chaincode example I have used `cli` successfuly so I doubt its the same.

TharinduSandaruwan1 (Sun, 12 May 2019 02:51:06 GMT):
@varunagarwal On the InitLedger command peer logs was like this.

TharinduSandaruwan1 (Sun, 12 May 2019 02:51:11 GMT):
2019-05-12 02:44:18.189 UTC [vscc] Validate -> ERRO 197 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy 2019-05-12 02:44:18.189 UTC [committer.txvalidator] validateTx -> ERRO 198 VSCCValidateTx for transaction txId = 9e55c9bb42c109dc5236fedc58c1db95d46f02139525ccb6a6a4b9c9ec72743d returned error: validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy 2019-05-12 02:44:18.189 UTC [committer.txvalidator] Validate -> INFO 199 [myc] Validated block [8] in 28ms 2019-05-12 02:44:18.196 UTC [valimpl] preprocessProtoBlock -> WARN 19a Channel [myc]: Block [8] Transaction index [0] TxId [9e55c9bb42c109dc5236fedc58c1db95d46f02139525ccb6a6a4b9c9ec72743d] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] 2019-05-12 02:44:19.473 UTC [kvledger] CommitWithPvtData -> INFO 19b [myc] Committed block [8] with 1 transaction(s) in 1277ms (state_validation=0ms block_commit=670ms state_commit=420ms)

TharinduSandaruwan1 (Sun, 12 May 2019 03:53:40 GMT):
When I am invoking the transaction initLedger in fabcar chaincode it leaves me this error on the peer logs

TharinduSandaruwan1 (Sun, 12 May 2019 03:53:50 GMT):
2019-05-12 02:44:18.189 UTC [vscc] Validate -> ERRO 197 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy 2019-05-12 02:44:18.189 UTC [committer.txvalidator] validateTx -> ERRO 198 VSCCValidateTx for transaction txId = 9e55c9bb42c109dc5236fedc58c1db95d46f02139525ccb6a6a4b9c9ec72743d returned error: validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy 2019-05-12 02:44:18.189 UTC [committer.txvalidator] Validate -> INFO 199 [myc] Validated block [8] in 28ms 2019-05-12 02:44:18.196 UTC [valimpl] preprocessProtoBlock -> WARN 19a Channel [myc]: Block [8] Transaction index [0] TxId [9e55c9bb42c109dc5236fedc58c1db95d46f02139525ccb6a6a4b9c9ec72743d] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] 2019-05-12 02:44:19.473 UTC [kvledger] CommitWithPvtData -> INFO 19b [myc] Committed block [8] with 1 transaction(s) in 1277ms (state_validation=0ms block_commit=670ms state_commit=420ms)

TharinduSandaruwan1 (Sun, 12 May 2019 03:54:04 GMT):
can someone help me to solve this problem.

TharinduSandaruwan1 (Sun, 12 May 2019 03:56:22 GMT):
This is how my endorsement policy is

TharinduSandaruwan1 (Sun, 12 May 2019 03:56:32 GMT):
`"AND ('Org2MSP.peer','Org1MSP.peer','Org3MSP.peer','Org4MSP.peer','Org5MSP.peer','Org6MSP.peer')"`

TharinduSandaruwan1 (Sun, 12 May 2019 03:57:00 GMT):
And I do transaction in Org2Peer trough cli

filip.niziol (Sun, 12 May 2019 10:14:14 GMT):
Has joined the channel.

umarmw (Sun, 12 May 2019 18:31:20 GMT):
Anyone knows where I can get the vehicle life cycle composer code (https://github.com/hyperledger/composer-sample-networks/tree/master/packages/vehicle-lifecycle-network) in go/node format ?

stanis 24 (Sun, 12 May 2019 18:31:21 GMT):
Has joined the channel.

stanis 24 (Sun, 12 May 2019 18:31:22 GMT):
Hi, does anyone have an example of connecting Golang SDK to the chaincode-docker-devmode?

GthmR (Sun, 12 May 2019 19:42:11 GMT):
is there any sample javascript code on private data collection? Kindly help

DarwinHarianto (Mon, 13 May 2019 03:29:13 GMT):
Hello guys, I want to ask. I tried to use Nodejs SDK. when I tried to start query, `Error: cannot retrieve package for chaincode mycc/v0, error open /var/hyperledger/production/chaincodes/mycc.v0: no such file or directory` what should I do?

TharinduSandaruwan1 (Mon, 13 May 2019 04:22:34 GMT):
I have created a Hyperledger fabric network which consisting six organization 2 peers for each organization.After Installation I instantiate the fabcar chaincode. This is the command which I used to instantiate the chaincode.``` peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -n fabcar -l node -v 1.0 -c '{"Args":["init"]}' -C mychannel -P "AND ('Org2MSP.peer','Org1MSP.peer','Org3MSP.peer','Org4MSP.peer','Org5MSP.peer','Org6MSP.peer')" ``` .With this when I invoking the first transaction which will init the ledger It leaves me an error on the peer. I do these every things on Org2 peer 0. If I replace AND with OR / if I put it like this` -p "AND ('Org2MSP.peer')"` it works fine without giving the error. Can someone help me to solve this issue.

TharinduSandaruwan1 (Mon, 13 May 2019 04:25:36 GMT):
~2019-05-13 04:10:33.465 UTC [vscc] Validate -> ERRO 170 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy 2019-05-13 04:10:33.465 UTC [committer.txvalidator] validateTx -> ERRO 171 VSCCValidateTx for transaction txId = bfcc1867bc68dddb7852ae8b819ab404f6239bcd1f0eda6cd4074490bc856a0b returned error: validation of endorsement policy for chaincode fabcar in tx 8:0 failed: signature set did not satisfy policy~

MuhammedHafil (Mon, 13 May 2019 04:48:34 GMT):
`AND` means you need approval(endorse) from the all peers listed inside the bracket. `OR` means endorsement from any one of them. Is all our peer containers are up?

TharinduSandaruwan1 (Mon, 13 May 2019 04:50:49 GMT):
Yeah all containers are up

AndresMartinezMelgar.itcl (Mon, 13 May 2019 06:26:48 GMT):
Hi, I'm using the java sdk. When I make a valid transaction a new block is created (normal behavior) but when I make a query I also create a block. I understand that this behavior is not normal, but I do not know for sure.

Ramrockez143 (Mon, 13 May 2019 06:28:01 GMT):
2019-05-13 06:18:13.513 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc000239b60, READY Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later

Ramrockez143 (Mon, 13 May 2019 06:28:06 GMT):
hi

florianc (Mon, 13 May 2019 06:28:38 GMT):
It is probably because you do not use the correct function to run your query. I don't know for java SDK, but in the node SDK, the function to query and the function to submit transaction are different.

AndresMartinezMelgar.itcl (Mon, 13 May 2019 06:29:14 GMT):
yes i think the same, but i cant find the "correct" function

Ramrockez143 (Mon, 13 May 2019 06:29:21 GMT):
kafka is in different kubernetes cluster and orderer in different kubernetes cluster iam unable to connect kafka while creating channel

florianc (Mon, 13 May 2019 06:29:40 GMT):
Can you provide the link to the Java SDK doc please?

Ramrockez143 (Mon, 13 May 2019 06:30:02 GMT):
2019-05-13 06:18:13.513 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc000239b60, READY Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later this is the error iam getting

florianc (Mon, 13 May 2019 06:30:11 GMT):
Can you provide the link to the Java SDK doc please?

florianc (Mon, 13 May 2019 06:30:33 GMT):
This new "slacky" version rocket chat is very confusing when you wanna answer people...

AndresMartinezMelgar.itcl (Mon, 13 May 2019 06:42:56 GMT):
https://github.com/hyperledger/fabric-sdk-java/blob/433432f4fb7f04251f40af0b2e1af96678169804/src/main/java/org/hyperledger/fabric/sdk/Channel.java#L4426

florianc (Mon, 13 May 2019 06:44:58 GMT):
And by using this you have a transaction created?

AndresMartinezMelgar.itcl (Mon, 13 May 2019 06:45:56 GMT):
i think so, it return me the query i am loocking for, but it create a new block too

AndresMartinezMelgar.itcl (Mon, 13 May 2019 06:45:56 GMT):
i think so, it return me the query i am looking for, but it create a new block too

Ramrockez143 (Mon, 13 May 2019 06:46:56 GMT):
2019-05-13 06:18:13.496 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-05-03 12:45:00 +0000 UTC 2019-05-13 06:18:13.496 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity 2019-05-13 06:18:13.496 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-05-13 06:18:13.503 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-05-13 06:18:13.503 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-05-13 06:18:13.503 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{orderer0.telco:7050 0 }] 2019-05-13 06:18:13.503 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-05-13 06:18:13.503 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc000238340, CONNECTING 2019-05-13 06:18:13.505 UTC [grpc] HandleSubConnStateChange -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc000238340, READY 2019-05-13 06:18:13.506 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2019-05-13 06:18:13.508 UTC [msp] GetDefaultSigningIdentity -> DEBU 03f Obtaining default signing identity 2019-05-13 06:18:13.508 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2019-05-13 06:18:13.508 UTC [msp.identity] Sign -> DEBU 041 Sign: plaintext: 0AF9050A074F7267314D535012ED052D...727469756D120912070A0554656C636F 2019-05-13 06:18:13.508 UTC [msp.identity] Sign -> DEBU 042 Sign: digest: 9E8337095CC7CF7BA88EB0E2FCCF3FF49CFD74F06A1BEC0AD4F0C7DD4D4A4A83 2019-05-13 06:18:13.508 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-05-13 06:18:13.508 UTC [msp] GetDefaultSigningIdentity -> DEBU 044 Obtaining default signing identity 2019-05-13 06:18:13.509 UTC [msp.identity] Sign -> DEBU 045 Sign: plaintext: 0AAF060A1408021A0608A598E4E60522...D3D76DB1538BA7EF045DDB44E361AE13 2019-05-13 06:18:13.509 UTC [msp.identity] Sign -> DEBU 046 Sign: digest: DEB16E8719CD58869DD459CC3CD3B34B4258A57B8C3C9368C3BAB5273FA44CDA 2019-05-13 06:18:13.509 UTC [grpc] DialContext -> DEBU 047 parsed scheme: "" 2019-05-13 06:18:13.509 UTC [grpc] DialContext -> DEBU 048 scheme "" not registered, fallback to default scheme 2019-05-13 06:18:13.509 UTC [grpc] watcher -> DEBU 049 ccResolverWrapper: sending new addresses to cc: [{orderer0.telco:7050 0 }] 2019-05-13 06:18:13.509 UTC [grpc] switchBalancer -> DEBU 04a ClientConn switching balancer to "pick_first" 2019-05-13 06:18:13.510 UTC [grpc] HandleSubConnStateChange -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc000239b60, CONNECTING 2019-05-13 06:18:13.513 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc000239b60, READY Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later

Ramrockez143 (Mon, 13 May 2019 06:47:11 GMT):
please hlep me

Lorem (Mon, 13 May 2019 07:26:02 GMT):
Hey, does every anchor peer have to install a chaincode for all peers to use its query or invoke transactions? I thought, that only the endorser and the peer, who instantiates the chaincode have to install the chaincode, but when I try so, I get the following error: 'Error: endorsement failure during query. response: status:500 message:"cannot retrieve package for chaincode mycc/1.0, error open /var/hyperledger/production/chaincodes/mycc.1.0: no such file or directory"'

poojaKamat (Mon, 13 May 2019 08:26:12 GMT):
In Operation service , we expose a port inside a container , I want to expose it to the external host , tried mapping it to the external host , but cant send request to the API's ? any help around this

florianc (Mon, 13 May 2019 08:41:19 GMT):
Hello. I am "confused" about this endorsement policy: Does that mean no peer has to endorse the transaction? ``` "policy": { "1-of": [ { "signed-by": 0 } ] } ```

poojaKamat (Mon, 13 May 2019 08:47:05 GMT):
It means one member("1-of": ) has to endorse , and signed-by : 0 means the zeroth element in the identities array

florianc (Mon, 13 May 2019 08:49:23 GMT):
Oh! OK! Now it's clear! Thank you.

ashlinSajan (Mon, 13 May 2019 09:23:11 GMT):
Hi have any one tried integrating fabric with indy?

mlucc (Mon, 13 May 2019 09:27:55 GMT):
Hello everyone. Does anyone know where is private data stored? I'm trying to find the path inside the peer docker

Unni_1994 (Mon, 13 May 2019 09:46:59 GMT):
How Indy can be use as certification authority in the fabric network? How this integration is happening , any links?

dave.enyeart (Mon, 13 May 2019 10:06:27 GMT):
Private data is stored in a leveldb database at the peer's /ledgersData/pvtdataStore, by default that is /var/hyperledger/production/ledgersData/pvtdataStore

mlucc (Mon, 13 May 2019 10:07:34 GMT):
thanks! This is where I'm looking for the data. But I only see these files:

mlucc (Mon, 13 May 2019 10:07:46 GMT):
000001.log CURRENT LOCK LOG MANIFEST-000000

mlucc (Mon, 13 May 2019 10:08:24 GMT):
where is the info? I only see logs here

mlucc (Mon, 13 May 2019 10:11:19 GMT):
I'd like to inspect private data

dave.enyeart (Mon, 13 May 2019 10:15:55 GMT):
@mlucc In leveldb all data gets written to the log files. For details see https://github.com/google/leveldb/blob/master/doc/impl.md

mlucc (Mon, 13 May 2019 10:16:36 GMT):
Thank you very much @dave.enyeart !!

Lorem (Mon, 13 May 2019 13:32:32 GMT):
Another question: I've used bash commands like in byfn to start the ledger and communicate with it yet, without spending much time on the client SDK. Could someone please tell me the advantages and disadvantages of using the SDK compared to complete bash-scripts? I'm kinda confused which of these to use in which situation

florianc (Mon, 13 May 2019 13:35:59 GMT):
With the SDK you can easily run complete servers (nodejs for example) that interacts with the blockchain, while in bash.. wel it is feasible, but not ideal ^^ For example, I currently have a nodejs server running with the node SDK and I use it as a "middle ware" between my client application and my blockchain.

Lorem (Mon, 13 May 2019 13:42:43 GMT):
Got it, thanks for your response. Is it feasible to use bash scripts when not hosting the network locally on virtual server infrastructure? I'm currently using cli-Container for every peer command but if you have a real physical infrastructure probably not each org has its own interface like the cli, or am I just totally messing things up here?

florianc (Mon, 13 May 2019 13:44:32 GMT):
I am not 100% sure, but if you are able to ssh into your containers, you could still use the CLI, if the org has one (I do not deal with this kind of "infrastructure stuff", so I am not sure)

Lorem (Mon, 13 May 2019 13:47:44 GMT):
You're right, ssh could help... But I guess, I will just switch to using node SDK. At actually seems much more suitable for my purposes. Thanks a lot :D

florianc (Mon, 13 May 2019 13:48:08 GMT):
:thumbsup:

jkosecki (Mon, 13 May 2019 15:31:56 GMT):
Hi, why `configtx.yaml` defines `OrdererOrg` but the docs says it should never be used in production? What's wrong with it and why it should be removed?

jkosecki (Mon, 13 May 2019 15:31:56 GMT):
Hi, why does `configtx.yaml` define `OrdererOrg` but the docs says it should never be used in production? What's wrong with it and why it should be removed?

aspring (Mon, 13 May 2019 16:08:40 GMT):
chain code in node.js worked fine with fabric 1.0.0 and 1.3.0 but with fabric 1.4.1 install and instantiate also work but invoke fails with "ENDORSEMENT_POLICY_FAILURE", as I recall when fabric 1.4 first came out there were complaints about its endorsement policy but I don't recall its details... now it's happening to me... how do we fix it? tks

crazydev71 (Mon, 13 May 2019 17:53:16 GMT):
Has joined the channel.

crazydev71 (Mon, 13 May 2019 17:53:17 GMT):
Hi can anybody help to write multiple smart contracts in one chaincode with golang?

crazydev71 (Mon, 13 May 2019 17:53:17 GMT):
Hi can anybody help me to write multiple smart contracts in one chaincode with golang?

AbhishekAadi (Mon, 13 May 2019 20:37:13 GMT):
Has joined the channel.

Beluosa (Mon, 13 May 2019 22:12:05 GMT):
Has joined the channel.

Taffies (Tue, 14 May 2019 01:59:28 GMT):
Hi! In the chaincode, is it possible to do a rich query on a key which is an array? For example, if I have `"key": [value1, value2, value3]` stored in the JSON object, is there anyway I am able to query for all the rows which has `value1` in "key"? Thank you in advance!

djraj (Tue, 14 May 2019 04:06:01 GMT):
Hello guys, I'm facing an error when invoking my chaincode `Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response:`

djraj (Tue, 14 May 2019 04:06:09 GMT):
Any idea why this happens?

poojaKamat (Tue, 14 May 2019 05:36:34 GMT):
Hi , I am trying to access the Rest API's provided in Operation Services , I can access all inside the container , but if I expose the port to the external host , the same API's are not accessible , It throws an error "HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying." , Any help around this ?

poojaKamat (Tue, 14 May 2019 05:36:34 GMT):
Hi , I am trying to access the Rest API's provided in Operation Services , I can access all inside the container , but if I expose the port to the external host , the same API's are not accessible , It throws an error "HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying." , Any help around this ? @yacovm

shreyak9 (Tue, 14 May 2019 06:29:53 GMT):
Has joined the channel.

shreyak9 (Tue, 14 May 2019 06:29:55 GMT):
Hello this is Shreya

shreyak9 (Tue, 14 May 2019 06:30:56 GMT):
Can we delete a channel from existing network ?

deenario (Tue, 14 May 2019 07:53:31 GMT):
Is there a way to retrieve all records from chaincode struct . I mostly get a single result when i search an ID. For Example: I want get an array of lists where status is Active.

umarmw (Tue, 14 May 2019 08:10:53 GMT):
while running the *fabcar* example on the second time, I'm getting this error: `2019-05-14T08:06:18.335Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-05-14T08:06:18.336Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-05-14T08:06:18.355Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-05-14T08:06:18.355Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-05-14T08:06:18.355Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:mychannel Discovery error:access denied` I've solved it by deleting the files in the wallet and re-registering the admin/user, but what is the correct way to fix it?

florianc (Tue, 14 May 2019 08:16:45 GMT):
If you mean get all records with a property set to a specific value in the couchDb world state, then you can use selectors

benjamin.verhaegen (Tue, 14 May 2019 08:17:02 GMT):
How can I use enumerated types in Go chaincode?

deenario (Tue, 14 May 2019 08:17:33 GMT):
Tell me an example query. let suppose i do this. queryString := fmt.Sprintf("{\"selector\":{\"Type\":\"campaignresults\",\"campaign_ID\":\"%s\"}}", campaign_ID)

deenario (Tue, 14 May 2019 08:17:50 GMT):
I want to get all the records that have campaign ID 1.

florianc (Tue, 14 May 2019 08:20:19 GMT):
Chcekc this for the query : https://docs.couchdb.org/en/stable/api/database/find.html And this to query the from CC: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetQueryResult And here is a nodejs example (I don'thve it in go):

florianc (Tue, 14 May 2019 08:20:21 GMT):
let resultIterator = await stub.getQueryResult(query); let results = {}; var i = 0; let res = { done: false }; // The query returns an iterator. Loop while there is still a result in the queue while (!res.done) { i++; res = await resultIterator.next(); if (res && res.value && res.value.value) { let lowerValue = res.value.value.toString('utf8'); let key = res.value.key.toString('utf8'); if (lowerValue.length > 0) { let valueAsJson = JSON.parse(lowerValue); results[i - 1] = {}; results[i - 1]["key"] = key; results[i - 1]["data"] = valueAsJson; } } if (res && res.done) { try { resultIterator.close(); // Use the length property on client side to loop through the results results['length'] = i; } catch (err) { throw new Error(err); } } } console.info('============= END : RichQuery method ==========='); return Buffer.from(JSON.stringify(results)); }

florianc (Tue, 14 May 2019 08:22:53 GMT):
let resultIterator = await stub.getQueryResult(query); let results = {}; var i = 0; let res = { done: false }; // The query returns an iterator. Loop while there is still a result in the queue while (!res.done) { i++; res = await resultIterator.next(); if (res && res.value && res.value.value) { let lowerValue = res.value.value.toString('utf8'); let key = res.value.key.toString('utf8'); if (lowerValue.length > 0) { let valueAsJson = JSON.parse(lowerValue); results[i - 1] = {}; results[i - 1]["key"] = key; results[i - 1]["data"] = valueAsJson; } } if (res && res.done) { try { resultIterator.close(); // Use the length property on client side to loop through the results results['length'] = i; } catch (err) { throw new Error(err); } } } console.info('============= END : RichQuery method ==========='); return Buffer.from(JSON.stringify(results)); }

mlucc (Tue, 14 May 2019 08:59:22 GMT):
How can I see the worldstate in my hyperledger network?

mlucc (Tue, 14 May 2019 08:59:44 GMT):
hyperledger is configured for using couchdb

rohithkumar (Tue, 14 May 2019 09:19:58 GMT):
Do Fabric CA Server can be replaced? If it can be replaced, what are the other alternatives?

ribjethgnis (Tue, 14 May 2019 11:07:14 GMT):

q.png

ribjethgnis (Tue, 14 May 2019 11:08:17 GMT):
peer chaincode query -C mychannel -n mycc --connTimeout 10s -c '{"Args":["query","A"]}' is working fine and returning 100

ahmedahmed (Tue, 14 May 2019 11:10:05 GMT):
Has left the channel.

Javi (Tue, 14 May 2019 11:52:57 GMT):
Hello, anyone using the Fabric Java SDK?? I'm trying to use it, but when I try to connect to the CA server through the SDK using the certificate generated by the cryptogen utility, I get a lot of errors like this: `sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target`

Javi (Tue, 14 May 2019 11:52:57 GMT):
Hello, anyone using the Fabric Java SDK?? I'm trying to use it, but when I try to connect to the CA server through the SDK using the certificate generated by the cryptogen utility, I get a lot of errors like this: ``` sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ```

ribjethgnis (Tue, 14 May 2019 12:03:41 GMT):

o.png

ribjethgnis (Tue, 14 May 2019 12:04:18 GMT):
how to resolve this issue

benjamin.verhaegen (Tue, 14 May 2019 12:48:31 GMT):
How can I use enumerated types in Go chaincode?

umarmw (Tue, 14 May 2019 18:27:51 GMT):
Is there a way to preserve the blockchain after shutting down the network along with removing the docker images and putting it back in the docker container once started/restarted?

Antimttr (Tue, 14 May 2019 18:30:10 GMT):
i think if you want to preserve the state of the ledger you need to use stop instead of down

Antimttr (Tue, 14 May 2019 18:30:10 GMT):
@umarmw think if you want to preserve the state of the ledger you need to use stop instead of down

Antimttr (Tue, 14 May 2019 18:30:18 GMT):
and that wont remove the docker images

umarmw (Tue, 14 May 2019 18:33:46 GMT):
@Antimttr hmm. ok. I'll try that. thanks :)

umarmw (Tue, 14 May 2019 18:37:18 GMT):
@Antimttr , there are no *stop* for byfn.sh - one of 'up', 'down', 'restart', 'generate' or 'upgrade'" , any alternative?

Antimttr (Tue, 14 May 2019 21:36:35 GMT):
oh

Antimttr (Tue, 14 May 2019 21:36:35 GMT):
@umarmw oh

Antimttr (Tue, 14 May 2019 21:36:41 GMT):
i was talking about docker command actually

Antimttr (Tue, 14 May 2019 21:36:59 GMT):
so for my project i use bash scripts (kinda like byfn.sh) to start and stop stuff

Antimttr (Tue, 14 May 2019 21:37:50 GMT):
just do `docker ps` to get your docker instance names

Antimttr (Tue, 14 May 2019 21:37:58 GMT):
then do `docker stop `

Antimttr (Tue, 14 May 2019 21:38:19 GMT):
i beleive thats all byfn.sh is doing more or less

Antimttr (Tue, 14 May 2019 21:39:01 GMT):
except it uses the down command of course

Antimttr (Tue, 14 May 2019 21:39:06 GMT):
which whipes out the docker instances

umarmw (Wed, 15 May 2019 00:30:54 GMT):
@Antimttr ok

djraj (Wed, 15 May 2019 02:18:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=JkyydMk7S2ufEYRFA) Like @Antimttr said, @umarmw you need to preserve the ledger state. There is a method to backup. Once you have backup the necessary files, you can remove the images as well as containers and rebuild them using your backup files

Rumaise (Wed, 15 May 2019 04:46:34 GMT):
Has joined the channel.

Rumaise (Wed, 15 May 2019 04:46:35 GMT):
How to add a string into hyperledger fabric blockchain

AayushSirohi (Wed, 15 May 2019 06:41:02 GMT):
Has joined the channel.

AayushSirohi (Wed, 15 May 2019 06:41:03 GMT):
how to handle error bad proposal .. ledger id already exist while joining an another org in channel in hyperledger fabric

knagware9 (Wed, 15 May 2019 08:09:10 GMT):
you can check in Couchdb in Fauxton API with http://localhost:5984/_utils/#/database/mychannel/_all_docs

ribjethgnis (Wed, 15 May 2019 08:13:10 GMT):
i have installed and instantiate the fabcar chaincode .. and when i try to invoke something i dont see anyoutput it get this message - Chaincode invoke successful. result: status:200 payload:"[]" it should contain values inside payload .

ribjethgnis (Wed, 15 May 2019 08:15:09 GMT):
for instantiate i use the following command peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabcar -l node -v 1.0 -c '{"Args":["initLedger"]}' -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'','\''Org3MSP.peer'\'')' here also i get no instantiate value printed in payload result: status:200 payload:"[]" any help

umarmw (Wed, 15 May 2019 08:24:10 GMT):
I've created a script https://gist.github.com/umarmw/8af7426d2abb827828b894ac15daeb5a to update the chain codes, however I see only the *dev-peer0.org1.example.com-vblock-1.1.3-GUID* up and only when I start invoking the methods of my smart contract, the *dev-peer0.org2.example.com-vblock-1.1.3-GUID* is launched. Any ideas?

mlucc (Wed, 15 May 2019 09:39:44 GMT):
@umarmw it looks like you are upgrading the chaincode for peer0.org1

mlucc (Wed, 15 May 2019 09:43:35 GMT):
thanks for your reply @knagware9

Lorem (Wed, 15 May 2019 09:43:44 GMT):
What kind of output do you expect? The fabcar chaincode methods do not return anything.

Lorem (Wed, 15 May 2019 09:44:28 GMT):
Try to run queryCar as invoke. It should you give you the same output as if you run it as query

mlucc (Wed, 15 May 2019 09:44:40 GMT):
anyhow here I only see two files: statedb_savepoint and resourcesconfigtx.CHANNEL_CONFIG_KEY

mlucc (Wed, 15 May 2019 09:45:22 GMT):
where is my data? is within any of these?

mlucc (Wed, 15 May 2019 09:46:07 GMT):
I'm looking for the json containing the data I introduced from the chaincode (PutState)

knagware9 (Wed, 15 May 2019 09:55:52 GMT):
@mlucc there is data find the channel database, you can refer first-network sample read the doc..in the last section they described the way to check

ribjethgnis (Wed, 15 May 2019 10:14:22 GMT):
peer chaincode invoke --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}' -o orderer.example.com:7050 it should return what ever is there in ledger at the time of initialization . async queryAllCars(stub, args) { let startKey = 'CAR0'; let endKey = 'CAR999'; let iterator = await stub.getStateByRange(startKey, endKey); let allResults = []; while (true) { let res = await iterator.next(); if (res.value && res.value.value.toString()) { let jsonRes = {}; console.log(res.value.value.toString('utf8')); jsonRes.Key = res.value.key; try { jsonRes.Record = JSON.parse(res.value.value.toString('utf8')); } catch (err) { console.log(err); jsonRes.Record = res.value.value.toString('utf8'); } allResults.push(jsonRes); } if (res.done) { console.log('end of data'); await iterator.close(); console.info(allResults); return Buffer.from(JSON.stringify(allResults)); } } } ========== and if i use this one async createCar(stub, args) { console.info('============= START : Create Car ==========='); if (args.length != 5) { throw new Error('Incorrect number of arguments. Expecting 5'); } var car = { docType: 'car', make: args[1], model: args[2], color: args[3], owner: args[4] }; await stub.putState(args[0], Buffer.from(JSON.stringify(car))); console.info('============= END : Create Car ==========='); } and after that while invoking it shows success Chaincode invoke successful. result: status:200 and again if i check the ledger and invoke it ... it shows using queryAllCars Chaincode invoke successful. result: status:200 payload:"[]" it should have atlease latest entry of the car which i have created

ribjethgnis (Wed, 15 May 2019 10:16:02 GMT):
querycar is not showing anything as ledger doesnot contain any entry . or recent entry also .

jkosecki (Wed, 15 May 2019 10:31:10 GMT):
Can someone explain TLS on peer? I've enabled TLS on orderers to use Raft protocol instead of Kafka. With `CORE_PEER_TLS_ENABLED` set to `false` my peer can't contact with orderer when trying to join a channel but when I set the variable to `true` then my client and my CLI can't connect to the peer

jkosecki (Wed, 15 May 2019 10:31:30 GMT):
`CORE_PEER_TLS_CLIENTAUTHREQUIRED` doesn't seem to be changing anything

jkosecki (Wed, 15 May 2019 10:32:41 GMT):
Ideally I'd like to have orderers with TLS enabled and peer(s)/CLI talking with them with TLS

jkosecki (Wed, 15 May 2019 10:33:05 GMT):
But no TLS for my java client when talking to them

pankajcheema (Wed, 15 May 2019 10:35:42 GMT):
please have a look https://stackoverflow.com/questions/56145252/read-and-write-operation-in-hyperledger-fabric-smart-contract

pankajcheema (Wed, 15 May 2019 10:35:54 GMT):
@knagware9

knagware9 (Wed, 15 May 2019 10:36:24 GMT):
Yes , replying there

pankajcheema (Wed, 15 May 2019 10:37:05 GMT):
ok @knagware9

TharinduSandaruwan1 (Wed, 15 May 2019 10:42:37 GMT):
Is there any error in the peer after initLedger function call or when you ae creating a new car entry

TharinduSandaruwan1 (Wed, 15 May 2019 10:43:06 GMT):
I think reason would be the transaction is not committing

Lorem (Wed, 15 May 2019 10:45:42 GMT):
Sorry, can't test it myself right not, but do you at least get en empty JSON response after running queryAllCars as invoke (like "[]")? If so, then Tharindu is probably right and there might be an issue with you invoke transactions. Can you give us some peer logs?

mlucc (Wed, 15 May 2019 10:49:18 GMT):
PRIVATE DATA! I'm facing an issue when I invoke from peer0.org1 that contains private data. If the collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('org1MSP.member', 'org2MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 } ]` the request succeeds. However, the private data is only accessible by querying from peer0.org1 and *not from peer0.org2*.

mlucc (Wed, 15 May 2019 10:49:18 GMT):
*PRIVATE DATA!* I'm facing an issue when I invoke from peer0.org1 that contains private data. If the collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('org1MSP.member', 'org2MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 } ]` the request succeeds. However, the private data is only accessible by querying from peer0.org1 and *not from peer0.org2*.

mlucc (Wed, 15 May 2019 10:49:18 GMT):
*PRIVATE DATA!* I'm facing an issue when I invoke from peer0.org1 that contains private data. If the collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('org1MSP.member', 'org2MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 } ]` the request succeeds. However, the private data is only accessible by querying from peer0.org1 and *not from peer0.org2*.

mlucc (Wed, 15 May 2019 10:49:18 GMT):
*PRIVATE DATA!* I'm facing an issue when I invoke from peer0.org1 that contains private data. If the collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('org1MSP.member', 'org2MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 } ]` the request succeeds. However, the private data is only accessible by querying from peer0.org1 and *not from peer0.org2*.

mlucc (Wed, 15 May 2019 10:51:17 GMT):
if collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('hondaMSP.member', 'yamahaMSP.member')", "requiredPeerCount": 1, "maxPeerCount": 1, "blockToLive": 0 } ]` I can't even invoke. I get the following error `ESCC invoke result: response: Error: endorsement failure during invoke. response: status:500 message:"Failed disseminating 1 out of 1 private RWSets"`

mlucc (Wed, 15 May 2019 10:51:17 GMT):
if collections_config.json is: `[ { "name": "collectionRacer", "policy": "OR ('hondaMSP.member', 'yamahaMSP.member')", "requiredPeerCount": 1, "maxPeerCount": 1, "blockToLive": 0 } ] I can't even invoke. I get the following error `ESCC invoke result: response: Error: endorsement failure during invoke. response: status:500 message:"Failed disseminating 1 out of 1 private RWSets"`

knagware9 (Wed, 15 May 2019 10:55:43 GMT):
anchor peer setup correctly ? please check this stackoverflow https://stackoverflow.com/questions/52448077/failed-to-distribute-private-collection-in-hyperledger-fabric

mlucc (Wed, 15 May 2019 10:56:55 GMT):
yes! I saw this post! I checked configtx.yaml and I included the Anchor peers, one for each org

mlucc (Wed, 15 May 2019 10:57:22 GMT):
Organizations: - &OrdererOrg Name: OrdererOrg ID: OrdererMSP MSPDir: crypto-config/ordererOrganizations/motogp.com/msp # Policies: # Readers: # Type: Signature # Rule: "OR('OrdererMSP.member')" # Writers: # Type: Signature # Rule: "OR('OrdererMSP.member')" # Admins: # Type: Signature # Rule: "OR('OrdererMSP.admin')" - &honda Name: hondaMSP ID: hondaMSP MSPDir: crypto-config/peerOrganizations/honda.motogp.com/msp # Policies: # Readers: # Type: Signature # Rule: "OR('hondaMSP.admin', 'hondaMSP.peer', 'hondaMSP.client')" # Writers: # Type: Signature # Rule: "OR('hondaMSP.admin', 'hondaMSP.client')" # Admins: # Type: Signature # Rule: "OR('hondaMSP.admin')" AnchorPeers: - Host: peer0.honda.motogp.com Port: 7051

mlucc (Wed, 15 May 2019 10:58:22 GMT):
honda would be org1 and yamaha org2

knagware9 (Wed, 15 May 2019 10:59:26 GMT):
okay but did you also run anchor peer update on channel

AndresMartinezMelgar.itcl (Wed, 15 May 2019 11:23:26 GMT):
Hi, if i upgrate a chaincode to v2.0, do i need to instantiated him? or just i need install it?

JohnR (Wed, 15 May 2019 11:25:26 GMT):
You need to install it and upgrade the channel

florianc (Wed, 15 May 2019 11:25:34 GMT):
You need to install it and instantiate it.

JohnR (Wed, 15 May 2019 11:26:12 GMT):
Not completely, if the chaincode has been instantiated, you'll need to upgrade, not instantiate

ribjethgnis (Wed, 15 May 2019 11:26:54 GMT):
@TharinduSandaruwan1 is it the correct command to instantiate peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabcar -l node -v 1.0 -c '{"Args":["initLedger"]}' -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'','\''Org3MSP.peer'\'')'

florianc (Wed, 15 May 2019 11:27:05 GMT):
True. My bad.

AndresMartinezMelgar.itcl (Wed, 15 May 2019 11:27:39 GMT):
ok, i ll loock for info to do that with java SDK

AndresMartinezMelgar.itcl (Wed, 15 May 2019 11:27:39 GMT):
ok, i ll look for info to do that with java SDK

ribjethgnis (Wed, 15 May 2019 11:28:44 GMT):
for balance transfer chaincode also i am able to do query but not able to do invoke .. i think there also transaction is not commited. so i started working on fabcar and here the same problem .

ribjethgnis (Wed, 15 May 2019 11:30:46 GMT):
------------------ if i invoke using initLedger only then i get the records which this function contains . but i am not able to do any queryCar,createCar, but my blockheight is increasing .

ribjethgnis (Wed, 15 May 2019 11:31:40 GMT):
@TharinduSandaruwan1 @Lorem i spent almost full day on this

dave.enyeart (Wed, 15 May 2019 11:48:05 GMT):
your peer logs will likely tell you that gossip cant find the other peers to share the private data. also check the gossip external endpoint config for your peers.

ribjethgnis (Wed, 15 May 2019 11:56:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=BDNuKkQNngPaPSRP9) yes i get empty json Chaincode invoke successful. result: status:200 payload:"[]"

Lorem (Wed, 15 May 2019 11:56:45 GMT):
Alright, I've just tested it. So, for instantiating I've used: docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -l node -v 1.0 -c '{"Args":[]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

mlucc (Wed, 15 May 2019 11:57:12 GMT):
yes, you're right. I've checked that too. Each peer has its own CORE_PEER_GOSSIP_EXTERNALENDPOINT in docker-compose-base.yaml.

mlucc (Wed, 15 May 2019 11:57:19 GMT):
CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.honda.motogp.com:7051

Lorem (Wed, 15 May 2019 11:57:47 GMT):
When i used queryAllCars like this: docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode query -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}'

Lorem (Wed, 15 May 2019 11:58:02 GMT):
I've received: "[]"

Lorem (Wed, 15 May 2019 11:58:20 GMT):
After using: docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["initLedger"]}'

engr.aliraza190 (Wed, 15 May 2019 11:58:44 GMT):
Has joined the channel.

Lorem (Wed, 15 May 2019 11:58:44 GMT):
And afterwards: docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode query -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}'

engr.aliraza190 (Wed, 15 May 2019 11:58:48 GMT):
raza@raza-VirtualBox:~/mynet$ composer network install --card PeerAdmin@hlfv1 --archiveFile mynet@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed pls help

Lorem (Wed, 15 May 2019 11:59:08 GMT):
I've got the query result by my initLedger function

ribjethgnis (Wed, 15 May 2019 12:01:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qt6jNgtnTLtbmaoLZ) No i am not getting any error. it shows no ouput or []

engr.aliraza190 (Wed, 15 May 2019 12:05:57 GMT):

issue error 14

mlucc (Wed, 15 May 2019 12:16:47 GMT):
@dave.enyeart I basically have this last statement for each peer

mlucc (Wed, 15 May 2019 12:30:57 GMT):
I think that the problem might be the variables CORE_PEER_GOSSIP_USELEADERELECTION and CORE_PEER_GOSSIP_ORGLEADER instead

mlucc (Wed, 15 May 2019 12:32:13 GMT):
I've: - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false

dave.enyeart (Wed, 15 May 2019 12:35:56 GMT):
@mlucc please study and try the private data tutorial that uses first-network. That network has known working gossip anchors and endpoints. In every problem like yours, it has come down to gossip not being able to find the other peers. https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html

mlucc (Wed, 15 May 2019 12:38:39 GMT):
ok, thanks

ribjethgnis (Wed, 15 May 2019 12:41:32 GMT):
i am facing problem in balance transfer chaincode 1. i have successfully installed chaincode and instantiate it using the below command peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n mycc -l node -v 1.0 -c '{"Args":["init","A","100","B","200"]}' -P 'OR ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'','\''Org3MSP.peer'\'')' 2 . when i do query on it using peer chaincode query -C mychannel -n mycc --connTimeout 10s -c '{"Args":["query","A"]}' peer chaincode query -C mychannel -n mycc --connTimeout 10s -c '{"Args":["query","B"]}' it is showing A value = 100 and b=200 means its running fine 3. but when i invoke using the below command for transferring $10 from A -> B peer chaincode invoke --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem -n mycc -C mychannel -c '{"Args":["invoke","A","B","10"]}' -o orderer.example.com:7050 it invokes successfully but when i again check the value of A which should be 90 and B which should be 210 . it is st ill giving A = 100 and B = 200 when i invoke transfer it adds block into the blockchain ... but when i query Avalue or Bvalue it shows the same value which is initialised one only

Emiel 1 (Wed, 15 May 2019 15:36:04 GMT):
Has joined the channel.

Emiel 1 (Wed, 15 May 2019 15:36:05 GMT):
Hello, i have some questions about the commercial paper tutorial

Emiel 1 (Wed, 15 May 2019 15:36:46 GMT):
i am currently at the application dependencies stage https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html#application-dependencies

Emiel 1 (Wed, 15 May 2019 15:37:03 GMT):
however i'm running into some issues trying to run `npm install`

Emiel 1 (Wed, 15 May 2019 15:37:59 GMT):
here is the error log

Emiel 1 (Wed, 15 May 2019 15:38:29 GMT):

Emiel 1 - Wed May 15 2019 17:38:22 GMT+0200 (Central European Summer Time).txt

Emiel 1 (Wed, 15 May 2019 15:39:06 GMT):
``` ../src/node.h:22:23: error: no template named 'Handle' in namespace 'v8' static void Init(v8::Handle exports); ~~~~^ 1 error generated. make: *** [Release/obj.target/pkcs11/src/main.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:196:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12) gyp ERR! System Darwin 18.5.0 gyp ERR! command "/usr/local/Cellar/node/12.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/emielvdbrink/go/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/pkcs11js gyp ERR! node -v v12.1.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN nodejs@1.0.0 No description npm WARN nodejs@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.17 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.17 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ```

Emiel 1 (Wed, 15 May 2019 15:39:11 GMT):
specifically this part

Emiel 1 (Wed, 15 May 2019 15:39:31 GMT):
if anyone could give me some pointers to what might be wrong, it'd be hugely appreciated :)

Antoine_Artillan (Wed, 15 May 2019 15:51:54 GMT):
Has joined the channel.

Adsob (Wed, 15 May 2019 18:05:07 GMT):
Hey Guys, we are currently trying to predict the potential data growth of our system. How is it possible to view the size of our transactions (not just the Blocksize) and generally how big each element (header, signatures, the proposal etc.) in a block is. Do you have any numbers from your systems you could share? A big thanks in advance.

SashaPESIC (Wed, 15 May 2019 18:06:47 GMT):
How to correctly set up gossip for one organization? Should all peers point to one or many peers?

CristianDesiderio (Wed, 15 May 2019 18:22:29 GMT):
Has joined the channel.

CristianDesiderio (Wed, 15 May 2019 18:22:30 GMT):
Hi, I'm trying BYFN for 1.4 with etcdraft, I wanna now why in the docker-compose-etcdraft2 file each orderderXX has a different port mapping , however on the configtx file on the SampleMultiNodeEtcdRaft profile all consenter orderers have the same 7050 port

CristianDesiderio (Wed, 15 May 2019 18:22:30 GMT):
Hi, I'm trying BYFN for 1.4 with etcdraft, I wanna know why in the docker-compose-etcdraft2 file each orderderXX has a different port mapping , however on the configtx file on the SampleMultiNodeEtcdRaft profile all consenter orderers have the same 7050 port

TharinduSandaruwan1 (Thu, 16 May 2019 02:28:08 GMT):
Can you give peer and chaincode logs for this after the command for transferring $10 from A -> B

srinivaskumarr (Thu, 16 May 2019 04:15:01 GMT):
Hello is there any follow up action required on https://gerrit.hyperledger.org/r/#/c/31296/ ? Is this merged ?

DarwinHarianto (Thu, 16 May 2019 04:44:42 GMT):
what should i do for this? `Failed to send transaction successfully to the orderer status:SERVICE_UNAVAILABLE` orderer is showing on docker ps should I restart the system?

AndresMartinezMelgar.itcl (Thu, 16 May 2019 06:11:11 GMT):
Hi, i am trying to make a query on time about one ID. I see i need put "true" ledger.history.enableHistoryDatabase variable. My question is next: where must i put it? on each peer configuration, in configtx.yaml file

sahilgoel (Thu, 16 May 2019 06:59:46 GMT):
Hi

sahilgoel (Thu, 16 May 2019 07:00:04 GMT):
How can we generate multiple unique ID in chaincode

TharinduSandaruwan1 (Thu, 16 May 2019 07:48:16 GMT):
can you give some logs of oderer and peer?

ribjethgnis (Thu, 16 May 2019 08:01:30 GMT):
Hi got the solution ..

ribjethgnis (Thu, 16 May 2019 08:02:34 GMT):
i was writing while isntatiation AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'','\''Org3MSP.peer'\'')' instead of AND ('\''Org1MSP.member'\'','\''Org2MSP.member'\'','\''Org3MSP.member'\'')' now i got the current answer

ManikantaRaju (Thu, 16 May 2019 08:21:04 GMT):
I am not able to find ca-key.pem file after fabric-server init or start with boot strap identity . Where can i find it Please help me with this

nimaafraz (Thu, 16 May 2019 08:32:53 GMT):
Does anyone know of an hassle-free way of starting and configuering peers on distributed servers?

Switch2Logic (Thu, 16 May 2019 09:36:11 GMT):
Good day, I would like to know with the cid.GetID(APIstub) chaincode method. Would this ID be different if you renew or revoke a users cert and then provide them with a new certificate?

Switch2Logic (Thu, 16 May 2019 09:52:09 GMT):
Maybe Cello could be an option... It is limited tho...

Switch2Logic (Thu, 16 May 2019 09:52:09 GMT):
Maybe Hyperledger Cello could be an option... It is limited tho...

Switch2Logic (Thu, 16 May 2019 09:55:05 GMT):
Docker Swarm....Docker Stack Deploy more work to setup but if the configuration files have been setup it is hassle free ...

Switch2Logic (Thu, 16 May 2019 09:58:34 GMT):
crypto-config directory? It needs to be copied to the Fabric-CA

Switch2Logic (Thu, 16 May 2019 09:59:55 GMT):

13518987.jpeg

Switch2Logic (Thu, 16 May 2019 10:00:30 GMT):

Screenshot from 2019-05-16 11-59-15.png

Switch2Logic (Thu, 16 May 2019 10:01:38 GMT):

Screenshot from 2019-05-16 12-01-13.png

nimaafraz (Thu, 16 May 2019 10:33:13 GMT):
Thanks I will give docker swarm a try

nmutter (Thu, 16 May 2019 10:59:31 GMT):
Has joined the channel.

nmutter (Thu, 16 May 2019 10:59:32 GMT):
Hey, does the Gossip protocol need special ports for its communication? or does it use the already existing one (using gRPC default 7051 i think). i mean the real question is, what ports and protocols (tcp i guess) would we need to open for a bc-network to work over the internet :) did not find extra documentation for this - thanks

yacovm (Thu, 16 May 2019 11:13:18 GMT):
it uses the same port as the endorser service

yacovm (Thu, 16 May 2019 11:13:22 GMT):
@nmutter

yacovm (Thu, 16 May 2019 11:13:34 GMT):
it uses gRPC over mutual TLS

Karthik1337 (Thu, 16 May 2019 12:28:56 GMT):
Hi,

Karthik1337 (Thu, 16 May 2019 12:28:56 GMT):
Hi, While I am instantiating chain code I am getting an error as follows. Please help me. ``` ailed to instantiate the chaincode: %v sending deploy transaction proposal failed: Transaction processing for endorser [localhost:7051]: Chaincode status Code: (500) UNKNOWN. Description: error starting container: error starting container: API error (400) : OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown ```

Karthik1337 (Thu, 16 May 2019 12:28:56 GMT):
Hi, While I am instantiating chain code I am getting an error as follows. Please help me. ``` Failed to instantiate the chaincode: %v sending deploy transaction proposal failed: Transaction processing for endorser [localhost:7051]: Chaincode status Code: (500) UNKNOWN. Description: error starting container: error starting container: API error (400) : OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown ```

Lorem (Thu, 16 May 2019 12:53:02 GMT):
Hey, is it possible to query data from chaincode instantiated on a different channel? Does the peer have to be a member of both channel in this case?

walmon (Thu, 16 May 2019 12:57:25 GMT):
https://worldsibu.tech/forma

florianc (Thu, 16 May 2019 13:01:43 GMT):
Yes and yes.

Lorem (Thu, 16 May 2019 13:02:29 GMT):
Can you tell me, how to do it? :D

Lorem (Thu, 16 May 2019 13:03:18 GMT):
And according to fabric docs, it should not be possible: "Although any one anchor peer can belong to multiple channels, and therefore maintain multiple ledgers, *no ledger data can pass from one channel to another*"

Lorem (Thu, 16 May 2019 13:03:31 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/channels.html

florianc (Thu, 16 May 2019 13:07:26 GMT):
It cannot pass "alone". But a chaincode can call a chaincode (even in another channel) to execute a function. this function can read/write the ledger. From my point of view, it is ok because it is the developer who says "hey, chaincode, do it". But the peers cannot communicate "alone" with other peers taht are not part of the channel

florianc (Thu, 16 May 2019 13:07:28 GMT):
https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html#invokeChaincode__anchor

florianc (Thu, 16 May 2019 13:08:05 GMT):
as specified, if chaincode is in anotehr channel, your ENDORSING peer(s) must be in both channels, because they need both ledgers.

jkosecki (Thu, 16 May 2019 13:10:21 GMT):
Hi, any idea why my I can't instantiate my chaincode in kubernetes environment: ``` 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26d start container: testchaincode:0.2.0 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26e start container with args: chaincode -peer.address=127.0.0.1:7052 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26f start container with env: CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_CHAINCODE_LOGGING_SHIM=DEBUG CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} CORE_CHAINCODE_ID_NAME=testchaincode:0.2.0 CORE_PEER_TLS_ENABLED=false 2019-05-16 12:13:35.855 UTC [container] lockContainer -> DEBU 270 waiting for container(testchaincode-0.2.0) lock 2019-05-16 12:13:35.855 UTC [container] lockContainer -> DEBU 271 got container (testchaincode-0.2.0) lock 2019-05-16 12:13:35.856 UTC [dockercontroller] stopInternal -> DEBU 272 stopping container id=dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:35.857 UTC [dockercontroller] stopInternal -> DEBU 273 stop container result error="No such container: dev-peer1-post-quantum-io-testchaincode-0.2.0" 2019-05-16 12:13:35.857 UTC [dockercontroller] stopInternal -> DEBU 274 killing container id=dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:35.858 UTC [dockercontroller] stopInternal -> DEBU 275 kill container result id=dev-peer1-post-quantum-io-testchaincode-0.2.0 error="No such container: dev-peer1-post-quantum-io-testchaincode-0.2.0" 2019-05-16 12:13:35.858 UTC [dockercontroller] stopInternal -> DEBU 276 removing container id=dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:35.860 UTC [dockercontroller] stopInternal -> DEBU 277 remove container result id=dev-peer1-post-quantum-io-testchaincode-0.2.0 error="No such container: dev-peer1-post-quantum-io-testchaincode-0.2.0" 2019-05-16 12:13:35.860 UTC [dockercontroller] createContainer -> DEBU 278 create container imageID=dev-peer1-post-quantum-io-testchaincode-0.2.0-1826209b82a42fd6af0c8fc79d7d07c6360716a6eee38921bf7886a971a35b2e containerID=dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:35.860 UTC [dockercontroller] getDockerHostConfig -> DEBU 279 docker container hostconfig NetworkMode: host 2019-05-16 12:13:35.920 UTC [dockercontroller] createContainer -> DEBU 27a created container imageID=dev-peer1-post-quantum-io-testchaincode-0.2.0-1826209b82a42fd6af0c8fc79d7d07c6360716a6eee38921bf7886a971a35b2e containerID=dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:36.036 UTC [dockercontroller] Start -> DEBU 27b Started container dev-peer1-post-quantum-io-testchaincode-0.2.0 2019-05-16 12:13:36.036 UTC [container] unlockContainer -> DEBU 27c container lock deleted(testchaincode-0.2.0) 2019-05-16 12:13:36.036 UTC [container] lockContainer -> DEBU 27d waiting for container(testchaincode-0.2.0) lock 2019-05-16 12:13:36.036 UTC [container] lockContainer -> DEBU 27e got container (testchaincode-0.2.0) lock 2019-05-16 12:13:36.036 UTC [container] unlockContainer -> DEBU 27f container lock deleted(testchaincode-0.2.0) 2019-05-16 12:13:39.168 UTC [chaincode] Launch -> DEBU 280 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

jkosecki (Thu, 16 May 2019 13:10:21 GMT):
Hi, any idea why my I can't instantiate my chaincode in kubernetes environment: ``` 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26d start container: testchaincode:0.2.0 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26e start container with args: chaincode -peer.address=127.0.0.1:7052 2019-05-16 12:13:35.855 UTC [chaincode] Start -> DEBU 26f start container with env: CORE_CHAINCODE_LOGGING_LEVEL=DEBUG CORE_CHAINCODE_LOGGING_SHIM=DEBUG CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} CORE_CHAINCODE_ID_NAME=testchaincode:0.2.0 CORE_PEER_TLS_ENABLED=false 2019-05-16 12:13:35.855 UTC [container] lockContainer -> DEBU 270 waiting for container(testchaincode-0.2.0) lock 2019-05-16 12:13:35.855 UTC [container] lockContainer -> DEBU 271 got container (testchaincode-0.2.0) lock 2019-05-16 12:13:35.856 UTC [dockercontroller] stopInternal -> DEBU 272 stopping container id=dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:35.857 UTC [dockercontroller] stopInternal -> DEBU 273 stop container result error="No such container: dev-peer1-org-io-testchaincode-0.2.0" 2019-05-16 12:13:35.857 UTC [dockercontroller] stopInternal -> DEBU 274 killing container id=dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:35.858 UTC [dockercontroller] stopInternal -> DEBU 275 kill container result id=dev-peer1-org-io-testchaincode-0.2.0 error="No such container: dev-peer1-org-io-testchaincode-0.2.0" 2019-05-16 12:13:35.858 UTC [dockercontroller] stopInternal -> DEBU 276 removing container id=dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:35.860 UTC [dockercontroller] stopInternal -> DEBU 277 remove container result id=dev-peer1-org-io-testchaincode-0.2.0 error="No such container: dev-peer1-org-io-testchaincode-0.2.0" 2019-05-16 12:13:35.860 UTC [dockercontroller] createContainer -> DEBU 278 create container imageID=dev-peer1-org-io-testchaincode-0.2.0-1826209b82a42fd6af0c8fc79d7d07c6360716a6eee38921bf7886a971a35b2e containerID=dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:35.860 UTC [dockercontroller] getDockerHostConfig -> DEBU 279 docker container hostconfig NetworkMode: host 2019-05-16 12:13:35.920 UTC [dockercontroller] createContainer -> DEBU 27a created container imageID=dev-peer1-org-io-testchaincode-0.2.0-1826209b82a42fd6af0c8fc79d7d07c6360716a6eee38921bf7886a971a35b2e containerID=dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:36.036 UTC [dockercontroller] Start -> DEBU 27b Started container dev-peer1-org-io-testchaincode-0.2.0 2019-05-16 12:13:36.036 UTC [container] unlockContainer -> DEBU 27c container lock deleted(testchaincode-0.2.0) 2019-05-16 12:13:36.036 UTC [container] lockContainer -> DEBU 27d waiting for container(testchaincode-0.2.0) lock 2019-05-16 12:13:36.036 UTC [container] lockContainer -> DEBU 27e got container (testchaincode-0.2.0) lock 2019-05-16 12:13:36.036 UTC [container] unlockContainer -> DEBU 27f container lock deleted(testchaincode-0.2.0) 2019-05-16 12:13:39.168 UTC [chaincode] Launch -> DEBU 280 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

Lorem (Thu, 16 May 2019 13:12:29 GMT):
Alright, thanks a lot

abityildiz (Thu, 16 May 2019 14:35:18 GMT):

Clipboard - May 16, 2019 5:33 PM

Rajatsharma (Thu, 16 May 2019 14:45:52 GMT):
I had a running fabric network which was producing a lot of data from very long, but suddenly today I started encountering this error, in my orderer: 2019-05-16 14:24:34.367 UTC [common/deliver] Handle -> WARN 100 Error reading from : rpc error: code = Canceled desc = context canceled 2019-05-16 14:24:54.380 UTC [common/deliver] deliverBlocks -> WARN 101 [channel: ] Rejecting deliver request for because of consenter error The peer is giving Service unavailable. And Kafka is giving this error: 019-05-16 11:21:14.990 UTC [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0bd [channel: ] got right time-to-cut message (for block 25641), no pending requests though; this might indicate a bug ``` Can anyone help me out rectifying this. This is really urgent. ```

Rajatsharma (Thu, 16 May 2019 14:45:52 GMT):
I had a running fabric network which was producing a lot of data from very long, but suddenly today I started encountering this error, in my orderer: ``` 2019-05-16 14:24:34.367 UTC [common/deliver] Handle -> WARN 100 Error reading from : rpc error: code = Canceled desc = context canceled 2019-05-16 14:24:54.380 UTC [common/deliver] deliverBlocks -> WARN 101 [channel: ] Rejecting deliver request for because of consenter error ``` The peer is giving Service unavailable. And Kafka is giving this error: ``` 019-05-16 11:21:14.990 UTC [orderer/consensus/kafka] processMessagesToBlocks -> WARN 0bd [channel: ] got right time-to-cut message (for block 25641), no pending requests though; this might indicate a bug ``` Can anyone help me out rectifying this. This is really urgent.

miguelreisa (Thu, 16 May 2019 21:06:05 GMT):
Hello, I made each endorser sign a string in ESCC and now in the java sdk I want to verify the signature. How can I get the signature instance that is being used?

miguelreisa (Thu, 16 May 2019 21:06:18 GMT):
in the fabric sdk library

gregnotso (Thu, 16 May 2019 23:17:30 GMT):
1/2 after deploying node.js package as per 'peer lifecycle chaincode package' my peer container cannot be restarted and has this error message:

gregnotso (Thu, 16 May 2019 23:18:10 GMT):
2/2 [discovery.lifecycle] DeployedChaincodes -> ERRO 02d Failed querying lscc namespace: no revision tag detected [nodeCmd] func6 -> PANI 02e Failed subscribing to chaincode lifecycle updates

DarwinHarianto (Fri, 17 May 2019 01:32:11 GMT):

DarwinHarianto - Fri May 17 2019 10:32:04 GMT+0900 (JST).txt

DarwinHarianto (Fri, 17 May 2019 01:32:38 GMT):
seems like, there is an Kafka error

srinivasd (Fri, 17 May 2019 05:38:32 GMT):
Has joined the channel.

abityildiz (Fri, 17 May 2019 09:14:03 GMT):

Clipboard - May 17, 2019 12:13 PM

sejalpawar (Fri, 17 May 2019 09:27:42 GMT):
Has left the channel.

MohammedR (Fri, 17 May 2019 09:31:25 GMT):
@abityildiz your CORE_PEER_MSPCONFIGPATH is empty assign the location

kund2n (Fri, 17 May 2019 09:51:36 GMT):
Has joined the channel.

kund2n (Fri, 17 May 2019 09:51:38 GMT):
Does latest version i.e 1.4 of hyperledger fabric support java for writing smart contract.

ManfredsMertens (Fri, 17 May 2019 10:13:54 GMT):
Has joined the channel.

ManfredsMertens (Fri, 17 May 2019 10:13:57 GMT):
Looking for help. I can't clone the Hyperledger Fabric source from Gerrit even after setting up the SSH keys as told in the official documentation. Getting error "Fatal: Could not read from remote repository."

elrito96 (Fri, 17 May 2019 10:14:54 GMT):
Has joined the channel.

elrito96 (Fri, 17 May 2019 10:14:56 GMT):
Hello everyone I just finished the Introduction to Hyperledger Technologies course chapter 9 (Hyperledger Fabric) and I still have some unanswered concept questions if someone can help me I will appreciate it

ManfredsMertens (Fri, 17 May 2019 10:27:19 GMT):
Guys please :(

engr.aliraza190 (Fri, 17 May 2019 10:40:24 GMT):

issue error 14.jpeg

engr.aliraza190 (Fri, 17 May 2019 10:40:53 GMT):
I have asked this question several times, but no one is answering me plz help

engr.aliraza190 (Fri, 17 May 2019 10:40:55 GMT):
raza@raza-VirtualBox:~/mynet$ composer network install --card PeerAdmin@hlfv1 --archiveFile mynet@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed pls help

engr.aliraza190 (Fri, 17 May 2019 10:40:58 GMT):
raza@raza-VirtualBox:~/mynet$ composer network install --card PeerAdmin@hlfv1 --archiveFile mynet@0.0.1.bna ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed Command failed pls help

engr.aliraza190 (Fri, 17 May 2019 10:41:12 GMT):
please help me

AndresMartinezMelgar.itcl (Fri, 17 May 2019 10:50:38 GMT):
Hi an user's certificate is a public key from private key of that user?

yacovm (Fri, 17 May 2019 10:52:54 GMT):
yes. the public key is just the generator multiplied by the private key

rohit_kumar (Fri, 17 May 2019 11:07:41 GMT):
Can we traverse how world state is derived?

rohit_kumar (Fri, 17 May 2019 11:12:19 GMT):
any help is appreciated

AndresMartinezMelgar.itcl (Fri, 17 May 2019 11:33:45 GMT):

Clipboard - May 17, 2019 1:33 PM

AndresMartinezMelgar.itcl (Fri, 17 May 2019 11:34:23 GMT):
@yacovm I mean this user´s certificate. Is the public key from private key?

rjones (Fri, 17 May 2019 13:15:07 GMT):
Has joined the channel.

rjones (Fri, 17 May 2019 13:15:08 GMT):
@ManfredsMertens you here?

rjones (Fri, 17 May 2019 13:24:47 GMT):
@ManfredsMertens can you watch this please? https://www.youtube.com/watch?v=PJXGEAq6yK0

miguelreisa (Fri, 17 May 2019 16:02:48 GMT):
Hello, what is the default hash and signature algorithm that is used to sign the payload of endorsements?

Antimttr (Fri, 17 May 2019 16:44:29 GMT):
@rohit_kumar AFAIU when you do blockwalking that's how the worldstate is derrived

Antimttr (Fri, 17 May 2019 16:45:12 GMT):
aka the worldstate is the end result of each of the invocations to chaincode with a set or parameters in order

Antimttr (Fri, 17 May 2019 16:45:12 GMT):
aka the worldstate is the end result of each of the invocations to chaincode with a set of parameters in order

Antimttr (Fri, 17 May 2019 16:46:09 GMT):
so if you use or implement your own blockwalker utility you're looking at the derivation of the world state

MarkGrandau (Fri, 17 May 2019 16:47:32 GMT):
Has joined the channel.

umarmw (Sat, 18 May 2019 01:18:41 GMT):
Anyone knows how to retrieve the full history of an object using Fabric SDK? eg: based on the fabcar example, retrieve the different owners of a specific car.

umarmw (Sat, 18 May 2019 01:18:41 GMT):
Anyone knows how to retrieve the full history of an object using Fabric SDK? eg: based on the fabcar example, retrieve the previous owners of a specific car.

charyorde (Sat, 18 May 2019 06:35:15 GMT):
Has joined the channel.

charyorde (Sat, 18 May 2019 06:36:11 GMT):
Is ERC20 token address feature coming to FabToken?

circlespainter (Sat, 18 May 2019 07:34:11 GMT):
Has joined the channel.

engr.aliraza190 (Sat, 18 May 2019 12:55:17 GMT):

Screenshot from 2019-05-18 11-56-53.jpg

Jelle.Diet (Sat, 18 May 2019 15:39:36 GMT):
you can use the getHistoryByKey function of the chaincode APIs to get all the transactions of an object

AndresMartinezMelgar.itcl (Sat, 18 May 2019 16:58:23 GMT):
https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetHistoryForKey

af4092 (Sun, 19 May 2019 08:24:44 GMT):
Has joined the channel.

af4092 (Sun, 19 May 2019 08:24:45 GMT):
hello everyone

af4092 (Sun, 19 May 2019 08:24:52 GMT):
I need help ~

af4092 (Sun, 19 May 2019 08:25:10 GMT):
I'm running through this tutorial

af4092 (Sun, 19 May 2019 08:25:11 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html

af4092 (Sun, 19 May 2019 08:25:40 GMT):
I successfully ran Terminal 1 and Terminal 2 , but when I try to run Terminal 3 having problem

af4092 (Sun, 19 May 2019 08:26:01 GMT):
Error response from daemon: Container bca204603fb6e46b9f6aadc1a7455ce576ee731614bf7c546af836dc26482a93 is not running

af4092 (Sun, 19 May 2019 08:26:16 GMT):
$ winpty docker exec -it cli bash

af4092 (Sun, 19 May 2019 08:26:25 GMT):
i'm on windows 10

af4092 (Sun, 19 May 2019 08:26:38 GMT):
can anyone help pls

af4092 (Sun, 19 May 2019 08:39:25 GMT):

Clipboard - May 19, 2019 5:39 PM

DVasin (Sun, 19 May 2019 11:14:21 GMT):
Has joined the channel.

DVasin (Sun, 19 May 2019 11:16:25 GMT):
Hi, guys. It it possible to use Java Frameworks (i.e. Spring) inside (!) Fabric 1.4 Java Chaincode? I want to use Spring State Machine to handle state transitions inside my contract, and it plays extremely well with Spring Framework for IoC and DI.

DVasin (Sun, 19 May 2019 11:16:49 GMT):
Is there any examples how to integrate Spring IoC with HLF CC?

DVasin (Sun, 19 May 2019 11:16:55 GMT):
Thanks in advance!

yacovm (Sun, 19 May 2019 11:38:24 GMT):
@gennadyl

gennadyl (Sun, 19 May 2019 11:47:20 GMT):
@DVasin I am not familiar with Spring State Machine, but while you stay in cc boundaries - each call pass thru 'init' and 'invoke', your chaincode inherits 'ChaincodeBase' and during chaincode start ('main' method) 'ChaincodeBase.start(...)' method called -I don't see why you can't use Spring. Just keep in mind that each call to chaincode can be executed on different jvm/docker

tommparekh (Sun, 19 May 2019 13:11:35 GMT):
Has joined the channel.

tommparekh (Sun, 19 May 2019 13:11:35 GMT):
Hi, I am working on a Voting app PoC on HLF 1.4. This is my first implementation. Can someone help with user registration approach? I know I could have used Composer to model the participants. But with HLF, how do I enroll candidates? Does users/participants need to be added explicitly as an entities in DB? also, how do I issue these users an identity to interact with the network?

johnsmith1234 (Sun, 19 May 2019 13:45:20 GMT):
Hi, does any one knows Can intermediate CA register and enroll a user valid to invoke chaincode

johnsmith1234 (Sun, 19 May 2019 13:45:20 GMT):
Hi, does any one knows Can intermediate CA register and enroll a user valid to invoke chaincode,

johnsmith1234 (Sun, 19 May 2019 13:54:01 GMT):
Hi, does any one knows Can intermediate CA register and enroll a user valid to invoke chaincode, ``` I got the following error:``` Exception in thread "main" org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer1.org1.example.com. Status FAILURE, details: Channel Channel{id: 6, name: mychannel} Sending proposal with transaction: 5bc80a782578a6e6fd25b85663390bbe8f79fd58389622819a35740502345f4f to Peer{ id: 2, name: peer1.org1.example.com, channelName: mychannel, url: grpc://192.168.231.100:8051} failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [mychannel] creator org [Org1MSP], cause=null} ``` ```

DVasin (Sun, 19 May 2019 18:26:03 GMT):
Thanks! Is there any examples of doing so? Also, is there any specs on how threading works in fabric cc? I.e. is there a thread per invoke/init execution, or are they executed concurrently, or is there some other guarantees/restriction on how this pieces of code are run?

tommparekh (Sun, 19 May 2019 20:51:16 GMT):
@engr.aliraza190 I have faced similar issue earlier. Not exactly sure but this could be related with the admin card you use to install. Try removing an admin card, reinstall it and test. See if this helps.

ShashiRattan (Mon, 20 May 2019 01:12:35 GMT):
Has joined the channel.

ShashiRattan (Mon, 20 May 2019 01:12:42 GMT):
Hi everyone

RodrigoAcosta (Mon, 20 May 2019 01:31:24 GMT):
Has joined the channel.

RodrigoAcosta (Mon, 20 May 2019 01:31:26 GMT):
hi all, hope you are having a good night / evening. I'm having trouble initiating a smart contract with a private collection attached. I'm instantiating in both from IBM plug in in code and from the IBM cloud platform, the error I'm getting is Error instantiating smart contract: Invalid policy, missing the "identities" property Even If I used a standard arrangement_config.json file like: [ { "name": "collectionMarbles", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":1000000, "memberOnlyRead": true }, { "name": "collectionMarblePrivateDetails", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":3, "memberOnlyRead": true } ] did anyone faced the same issue?

RodrigoAcosta (Mon, 20 May 2019 01:31:26 GMT):
I think I found the answer at https://medium.com/beyondi/private-data-in-hyperledger-fabric-3aaa8a3994ed The correct format for the collection config file is: [{ "name": "collectionShared", "policy": { "identities": [{ "role": { "name": "member", "mspId": "Org1MSP" } }, { "role": { "name": "member", "mspId": "Org2MSP" } } ], "policy": { "1-of": [ { "signed-by": 0 }, { "signed-by": 1 } ] } }, "requiredPeerCount": 1, "maxPeerCount": 2, "blockToLive": 100 } ]

engr.aliraza190 (Mon, 20 May 2019 05:14:06 GMT):
ok I try

ankayarkanniprabakaran (Mon, 20 May 2019 07:12:47 GMT):
Has joined the channel.

ankayarkanniprabakaran (Mon, 20 May 2019 07:14:59 GMT):
Hi Can you try by adding all the the asset, particpant and trade information in the same file org.example.biznet.cto file and proceed further. It worked for me.

JorgeNavarro (Mon, 20 May 2019 07:35:35 GMT):
.

engr.aliraza190 (Mon, 20 May 2019 07:40:19 GMT):
how to remove and reinstall admin card? thanks in advance

trinayanbhatt (Mon, 20 May 2019 09:33:03 GMT):
Can anyone help in docker swarm setup for multiorg network? I have created manger and worker nodes and when i try to access some directory or file from worker node of the swarm network from manager node then its not accessible. I want to generate channel artifacts and that requires the msp directory path which is not accessible, so can anyone help me with this?

shreyak9 (Mon, 20 May 2019 10:30:21 GMT):
can someone help on asymmetric encryption in fabric chaincode

shreyak9 (Mon, 20 May 2019 10:30:42 GMT):
tried with symmetric using shimcrypto lib

Dhiraj1990 (Mon, 20 May 2019 10:58:13 GMT):
Hello All,

Dhiraj1990 (Mon, 20 May 2019 10:59:07 GMT):
I have written chaincode in node it looks for data for a particlaur id in couch db. Now if does not find any data i throw error as below

Dhiraj1990 (Mon, 20 May 2019 10:59:07 GMT):
I have written chaincode in node it looks for data for a particlaur id in couch db. Now if does not find any data i throw error as below const dataAsBytes = await ctx.stub.getState(Id); if (identityAsBytes.length == 0) { throw new Error(`${Id} id does not exist`); } return [dataAsBytes,jsonData]

Dhiraj1990 (Mon, 20 May 2019 11:00:08 GMT):
` const dataAsBytes = await ctx.stub.getState(Id); if (dataAsBytes.length == 0) { throw new Error(`${Id} id does not exist`); } return`

Dhiraj1990 (Mon, 20 May 2019 11:00:08 GMT):
It shows error message on node sdk end as below `{ "message": "No valid responses from any peers. 3 peer error responses:\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist" }`

Dhiraj1990 (Mon, 20 May 2019 11:00:08 GMT):
It shows error message on node sdk end as below `{ "message": "No valid responses from any peers. 3 peer error responses:\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist" }` How to send a custom message instead of this message

Dhiraj1990 (Mon, 20 May 2019 11:00:08 GMT):
It shows error message on node sdk end as below `{ "message": "No valid responses from any peers. 3 peer error responses:\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist\n transaction returned with failure: Error: fgdfgfdgretrretre id does not exist" }` How to send a custom message instead of this message for eg. id does not exist

florianc (Mon, 20 May 2019 11:09:35 GMT):
What is your question?

sahilgoel (Mon, 20 May 2019 11:19:27 GMT):
I think he wants to get the error message send thrown from chaincode

sahilgoel (Mon, 20 May 2019 11:19:27 GMT):
I think he wants to get the error message send thrown from chaincode inside the node sdk

sahilgoel (Mon, 20 May 2019 11:19:27 GMT):
I think he wants to get the error message thrown from chaincode in the node sdk

ManfredsMertens (Mon, 20 May 2019 11:51:31 GMT):
Thank you!

charyorde (Mon, 20 May 2019 11:53:27 GMT):
Hello, Is it possible to move MSP from one Org to another?

chlsc (Mon, 20 May 2019 11:56:24 GMT):
Can someone here help me on how to get the error message from chaincode? I use both nodejs chaincode and sdk. And I can trace from the chaincode that it throws an error "ERROR [lib/handler.js] Calling chaincode Invoke() returned error response [Error:xxx]. Sending ERROR message back to peer". However, from node sdk, the proposal response gives me "{"status":500,"payload":{"type":"Buffer","data":[]},"isProposalResponse":true}".

chlsc (Mon, 20 May 2019 11:58:01 GMT):
@dave.enyeart could you please have a look? got stuck on this.

Dhiraj1990 (Mon, 20 May 2019 12:15:35 GMT):
Hello all When i upgrading and instantiating chaincode for first time and then i hit a API from node sdk then i gte below error for first time only "Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"","stack":"Error: Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"\n

Dhiraj1990 (Mon, 20 May 2019 12:15:35 GMT):
Hello all When i upgrading and instantiating chaincode for first time and then i hit a API from node sdk then i get below error for first time only "Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"","stack":"Error: Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"\n

Dhiraj1990 (Mon, 20 May 2019 12:15:35 GMT):
Hello all When i upgrading and instantiating chaincode for first time and then i hit a API from node sdk then i get below error for first time only *"Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"","stack":"Error: Peer localhost:7051 has rejected transaction \"1b0f72d31c2d2baa1b7fa2d5f079ba62982f67359b30a490dae901d74b8a3a1d\" with code \"ENDORSEMENT_POLICY_FAILURE\"\n *

Dhiraj1990 (Mon, 20 May 2019 12:15:49 GMT):
Please tell me how can i resolve this issue >?

Dhiraj1990 (Mon, 20 May 2019 12:15:49 GMT):
Please tell me how can i resolve this issue ?

Dhiraj1990 (Mon, 20 May 2019 12:15:49 GMT):
Please tell me how can i resolve this issue ? @DavidAEdwards @dsanchezseco

DVasin (Mon, 20 May 2019 13:16:33 GMT):
Hi guys. Is it possible (and is there any examples) for interacting with byfn network (without ca) using Java SDK? Is is ca nessecary for accessing the network via Java SDK?

opossumzilla (Mon, 20 May 2019 13:52:44 GMT):
Has joined the channel.

trinayanbhatt (Mon, 20 May 2019 13:56:15 GMT):
Hi can anyone resolve this issue while creating channel's first block: Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'testchannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/TransporterMSP but was in the read set

trinayanbhatt (Mon, 20 May 2019 13:56:15 GMT):
Hi can anyone resolve this issue while creating channel's first block: *Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'testchannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/TransporterMSP but was in the read set*

smunx (Mon, 20 May 2019 17:19:22 GMT):
Has joined the channel.

JulianSolarte (Mon, 20 May 2019 20:54:10 GMT):
How can I index double nested fields in Hyperledger Fabric? 0 I'm using CouchDb in Fabric and I have the next JSON document { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width": "212cm" }] }] }] } How can I index the idItem and width fields?

JulianSolarte (Mon, 20 May 2019 20:54:28 GMT):
jm

JulianSolarte (Mon, 20 May 2019 20:55:43 GMT):
I'm using CouchDb in Fabric and I have the next JSON document { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width": "212cm" }] }] }] } How can I index the idItem and width fields?

JulianSolarte (Mon, 20 May 2019 20:56:16 GMT):
How can I index double nested fields in Hyperledger Fabric? I'm using CouchDb in Fabric and I have the next JSON document { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width": "212cm" }] }] }] } How can I index the idItem and width fields?

JulianSolarte (Mon, 20 May 2019 21:12:56 GMT):
How can I index double nested fields in Hyperledger Fabric?

cheny 15 (Tue, 21 May 2019 00:36:08 GMT):
Has joined the channel.

cheny 15 (Tue, 21 May 2019 00:36:10 GMT):
Anyone familiar with the hyperledger fabric upgrade process?

cheny 15 (Tue, 21 May 2019 00:36:11 GMT):
(e.g. 1.1->1.4)

sah (Tue, 21 May 2019 02:21:15 GMT):
I'm unit testing some chaincode, and wanting to mock some aspects of the BC for parts. Has anyone got any examples of hand-rolled mocks they can show me?

sandy (Tue, 21 May 2019 03:19:20 GMT):
Hi guys...

sandy (Tue, 21 May 2019 03:19:27 GMT):
Instead of using fabric directly using SDK, can we use hyperledger composer directly for all cases ?

TharinduSandaruwan1 (Tue, 21 May 2019 05:52:36 GMT):
When I am generating crypto materiels with cryptogen command how to configure organizations afflications like org1.department1. Can I change it to somthing org1.colombo. If can how to do it?

MuhammedHafil (Tue, 21 May 2019 06:03:49 GMT):
Check your configtx.yaml. Under channel -> application

Fedor_SH (Tue, 21 May 2019 06:03:49 GMT):
Has joined the channel.

Fedor_SH (Tue, 21 May 2019 06:03:51 GMT):
Hello everyone! Is the peer chaincode installation\update is also a transaction and is visible to all the peers? Will the chaincode installed on one peer be visible on every other in the network?

MuhammedHafil (Tue, 21 May 2019 06:13:40 GMT):
Hyperledger VS Corda

MuhammedHafil (Tue, 21 May 2019 06:17:19 GMT):
https://chat.hyperledger.org/group/T3uzRQDA7daj2i4WF

TharinduSandaruwan1 (Tue, 21 May 2019 10:00:02 GMT):
should all endorser peers have instantiated the chaincode?

Vlad_Ivanov (Tue, 21 May 2019 10:27:50 GMT):
Has joined the channel.

deenario (Tue, 21 May 2019 10:33:59 GMT):
How can i start Fabric CA with byfn . Byfn by default doesn't have CA .

shreyak9 (Tue, 21 May 2019 11:36:30 GMT):
'

shreyak9 (Tue, 21 May 2019 11:36:30 GMT):
'

shreyak9 (Tue, 21 May 2019 11:42:02 GMT):
you can check if your container is working or not using docker ps -a and then start the container using docker start

engr.aliraza190 (Tue, 21 May 2019 12:38:25 GMT):

I beg you, ples help me

Sarath_Kumar (Tue, 21 May 2019 13:09:42 GMT):
Hi all, I am facing issue while invoking a transaction. Error: *error: 2 unknown: access denied: channel [] creator org [org1msp]* Orderer log: *the identity must be a client, a peer or an orderer identity to be valid, not a combination of them.*

engr.aliraza190 (Tue, 21 May 2019 14:03:05 GMT):
E: Version '18.06.2~ce~3-0~ubuntu' for 'docker-ce-cli' was not found

Adsob (Tue, 21 May 2019 16:57:32 GMT):
Do you guys know how large the overhead of just a transaction (not the entire Block) is? Assuming i have 5 validation peers validating the transaction.

AVK (Tue, 21 May 2019 17:34:57 GMT):
Hi! I'm looking for some documentation on Fabric Peer GRPC services. Where can i found one? ( Using Go-SDK mostly, but due to it's luck of flexibility, i need to do some operations on a GRPC level. )

horse (Tue, 21 May 2019 18:08:13 GMT):
Has joined the channel.

CaioPinheiro (Tue, 21 May 2019 19:03:06 GMT):
#fabric-questions Hi, I get this error when I try to create a channel: "Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied". Can someone help me?

FabrizioVigevani (Tue, 21 May 2019 19:45:05 GMT):
Has joined the channel.

FedMan (Wed, 22 May 2019 00:34:13 GMT):
Hi Guys! I am looking for someone who has developed and ready to sell use cases in Hyperledger. I am willing to buy use cases which are ready and functional. Use case such as Supply-chain, certificate management, escrow contract management, buy and sell market place, medical blockchain, pet blockchain (pedigree) etc etc no cryptocurrency or exchange

yeousunn (Wed, 22 May 2019 01:19:52 GMT):
Hi, I am trying to install chaincode on new peer in the network. while instantiating I am getting error message "error code 500, chaincode with name 'nodecc' already exists"

yeousunn (Wed, 22 May 2019 01:19:52 GMT):
Hi, I am trying to install chaincode on new peer in the network. while instantiating I am getting error message "error code 500, chaincode with name 'nodecc' already exists". I am guessing that the chaincode is already instantiated with default value and cannot be instantiated again from different peer. is there any other process for starting chaincode on new peer introduced in the channel?

DarwinHarianto (Wed, 22 May 2019 01:56:41 GMT):
you just need to delete the card composer card delete I think

DarwinHarianto (Wed, 22 May 2019 01:58:14 GMT):
from the docs, I believe instantiating is unlike installing. Instantiating is only done once in a channel. Sorry for asking, but can you tell me how do you add a new peer?

yeousunn (Wed, 22 May 2019 02:00:28 GMT):
Hi, thank you for reply, I added new peer on the network. I just found the solution. I needed to package the installed chaincode and install that on other peers. https://stackoverflow.com/questions/55538672/failed-to-get-chaincode-container-info-for-mycc1-0-while-executing-peer-chainco

DarwinHarianto (Wed, 22 May 2019 02:04:41 GMT):
Hello, I have been trying to update anchor peer. This is the error I have been getting `Error: failed to create deliver client: orderer client failed to connect to orderer0.ttp.com:7050: failed to create new connection: context deadline exceeded ` I have been trying to ask at Stack overflow and search on the internet. I haven't found the solution. What should I do for this? Any help is appreciated.

yeousunn (Wed, 22 May 2019 02:16:19 GMT):
is there any more information? It seems that you are not able to connect to orderer.

DarwinHarianto (Wed, 22 May 2019 02:18:09 GMT):
I can instantiate Chaincode and everything else. I don't know where to start searching

yeousunn (Wed, 22 May 2019 02:21:28 GMT):
on which terminal are you getting this error. also check orderer logs.

DarwinHarianto (Wed, 22 May 2019 02:21:40 GMT):
this is the command that I used to update `docker exec -it cli bash` `peer channel update -o orderer0.ttp.com:7050 -c mychannel -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer0.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem`

yeousunn (Wed, 22 May 2019 02:22:23 GMT):
ok, can you check if there's anything else on orderer log.

DarwinHarianto (Wed, 22 May 2019 02:22:39 GMT):
after I throw the command orderer logs aren't increasing `2019-05-22 01:50:06.019 UTC [orderer.consensus.kafka] processRegular -> WARN 02a [channel: mychannel] This orderer is running in compatibility mode 2019-05-22 01:50:06.029 UTC [orderer.common.broadcast] Handle -> WARN 02b Error reading from 172.18.0.18:52374: rpc error: code = Canceled desc = context canceled 2019-05-22 01:50:06.029 UTC [comm.grpc.server] 1 -> INFO 02c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.18:52374 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=2.4121437s`

yeousunn (Wed, 22 May 2019 02:28:11 GMT):
the command looks fine. maybe some configuration issue.

yeousunn (Wed, 22 May 2019 02:28:11 GMT):
the command looks fine. maybe some configuration issue. check configtx.yaml orderer address.

DarwinHarianto (Wed, 22 May 2019 02:29:54 GMT):
yes, that's what I initially thought too. I am currently following this guide https://medium.com/coinmonks/hyperledger-fabric-setup-with-multiple-peers-and-orderers-with-kafka-542023787a6d is there any specific configuration that enables anchor peer?

DarwinHarianto (Wed, 22 May 2019 02:30:39 GMT):
as far as I can tell, anchor peer only declared at ` - &Org1 Name: Org1MSP ID: Org1MSP MSPDir: ../crypto-config/peerOrganizations/org1.ttp.com/msp AnchorPeers: - Host: peer0.org1.ttp.com port: 7051 `

DarwinHarianto (Wed, 22 May 2019 02:30:39 GMT):
as far as I can tell, anchor peer only declared at ``` - &Org1 Name: Org1MSP ID: Org1MSP MSPDir: ../crypto-config/peerOrganizations/org1.ttp.com/msp AnchorPeers: - Host: peer0.org1.ttp.com port: 7051 ```

yeousunn (Wed, 22 May 2019 02:32:59 GMT):
check the orderer section. ```Orderer: &OrdererDefaults OrdererType: solo Addresses: - 192.168.14.245:7050```

yeousunn (Wed, 22 May 2019 02:32:59 GMT):
check the orderer section. ```Orderer: &OrdererDefaults OrdererType: solo Addresses: - 192.168.14.245:7050``` what is the entry for Addresses?

DarwinHarianto (Wed, 22 May 2019 02:37:42 GMT):
``` Orderer: &OrdererDefaults OrdererType: kafka Addresses: - orderer0.ttp.com:7050 - orderer1.ttp.com:7050 - orderer2.ttp.com:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB Kafka: Brokers: - kafka0:9092 - kafka1:9092 - kafka2:9092 - kafka3:9092 Organizations: Application: &ApplicationsDefaults Organizations: ``` I am using kafka for this one

yeousunn (Wed, 22 May 2019 02:44:09 GMT):
everything looks fine to me. I am not sure where else you specify the orderer. have you used crypto-config.yaml for generating artifacts?

DarwinHarianto (Wed, 22 May 2019 02:44:54 GMT):
yes, `cryptogen generate --config=./fabric-config/crypto-config.yaml` that's why I am so bamboozled

DarwinHarianto (Wed, 22 May 2019 02:45:47 GMT):
oh, for the cli settings ``` version: '2' networks: behave: services: cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer2.org1.ttp.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/users/Admin@org1.ttp.com/msp - CORE_CHAINCODE_KEEPALIVE=10 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ../chaincode/:/opt/gopath/src/github.com/chaincode - $GOPATH/src/github.com/hyperledger/fabric/:/opt/gopath/src/github.com/hyperledger/fabric/ - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ networks: - behave ``` I don't know if this means much or not

yeousunn (Wed, 22 May 2019 02:49:12 GMT):
Don't think cli is the problem. just make sure the volumes are mapped correctly. it just connects to peer. are you able to run other chaincode normally?

DarwinHarianto (Wed, 22 May 2019 02:58:13 GMT):
yes, this is how I install and instantiate the chaincode `docker exec -it cli peer chaincode install -n mycc -p github.com/chaincode -v v0` `docker exec -it cli peer chaincode instantiate -o orderer0.ttp.com:7050 -C mychannel -n mycc github.com/chaincode -v v0 -c '{"Args": ["a", "100"]}'` and invoking is fine `docker exec -it cli peer chaincode invoke -o orderer0.ttp.com:7050 -n mycc -c '{"Args":["set", "aaasdt","112"]}' -C mychannel `

DarwinHarianto (Wed, 22 May 2019 02:58:13 GMT):
yes, this is how I install and instantiate the chaincode `docker exec -it cli peer chaincode install -n mycc -p github.com/chaincode -v v0` `docker exec -it cli peer chaincode instantiate -o orderer0.ttp.com:7050 -C mychannel -n mycc github.com/chaincode -v v0 -c '{"Args": ["a", "100"]}'` and invoking is fine `docker exec -it cli peer chaincode invoke -o orderer0.ttp.com:7050 -n mycc -c '{"Args":["set", "aaasdt","112"]}' -C mychannel`

yeousunn (Wed, 22 May 2019 03:10:15 GMT):
not sure, what else could be the reason. since everything else is running fine.

DarwinHarianto (Wed, 22 May 2019 03:21:50 GMT):
thanks for your time. I'll try searching at other places, maybe there are some insights

TharinduSandaruwan1 (Wed, 22 May 2019 03:59:31 GMT):
I also place this problem lot of times what I do is remove the containers and start the network again and then update the anchor peers.

DarwinHarianto (Wed, 22 May 2019 04:25:15 GMT):
by removing, do you mean this? `docker kill $(docker ps -q) && docker rm $(docker ps -a -q)`

DarwinHarianto (Wed, 22 May 2019 04:27:32 GMT):
tried to remove them, restart the docker-compose, docker exec cli then still the same error after `peer channel update -o orderer0.ttp.com:7050 -c mychannel -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer0.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem`

AveshKadri (Wed, 22 May 2019 06:09:42 GMT):
Has joined the channel.

AveshKadri (Wed, 22 May 2019 06:09:44 GMT):
i any trying to do Attribute-Based Access Control while registering user in JAVA but i am not able to find attrs in the `RegistrationRequest` ..

tehsunnliu (Wed, 22 May 2019 07:10:47 GMT):
Has joined the channel.

JorgeNavarro (Wed, 22 May 2019 07:26:59 GMT):
Hello, if i want to use the function "GetHistoryForKey(key string)", i need to enable the environment variable "enableHistoryDatabase", where should i find this variable??

AndresMartinezMelgar.itcl (Wed, 22 May 2019 07:29:41 GMT):
Hi,in documentation there are a reference to "core.yaml" but is this file the configtx.yaml ?

DarwinHarianto (Wed, 22 May 2019 08:19:52 GMT):
where can I find it?

AndresMartinezMelgar.itcl (Wed, 22 May 2019 08:21:29 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/systemchaincode.html?highlight=core.yaml Also yo can fin in other pages from documentation

DarwinHarianto (Wed, 22 May 2019 08:24:26 GMT):
if you have downloaded fabric-samples go inside fabric-samples/config there is a core.yaml

AndresMartinezMelgar.itcl (Wed, 22 May 2019 08:26:23 GMT):
i know it, this not my question. I am asking for if the config of core.yaml i cant put on configtx.yaml

DarwinHarianto (Wed, 22 May 2019 08:33:49 GMT):
I haven't tried using those. But seeing some example on couchDB, doesn't it go to docker-compose file?

JP (Wed, 22 May 2019 08:37:26 GMT):
Have you set the namespace in the top of the .cto file?

JP (Wed, 22 May 2019 08:37:26 GMT):
Have you set the namespace in the top of the .cto file? if you not then type "namespace org.example.biznet" in top of the

watts (Wed, 22 May 2019 09:27:18 GMT):
test

RahulEth (Wed, 22 May 2019 09:27:41 GMT):
i am invoking the chaincode with passing JSON object but peer chaincode invoke -o localhost:7050 -C mychannel -n pmc -c '{"function":"initLedger", "Args": ["{\"property1\":\"one\",\"property2\":\"two\"}"]}'. but everytime i am getting invalid JSON input

RahulEth (Wed, 22 May 2019 09:27:41 GMT):
i am invoking the chaincode with passing JSON object >> peer chaincode invoke -o localhost:7050 -C mychannel -n pmc -c '{"function":"initLedger", "Args": ["{\"property1\":\"one\",\"property2\":\"two\"}"]}'. but everytime i am getting invalid JSON input. is someone know how to pass json object as argument

RahulEth (Wed, 22 May 2019 09:28:34 GMT):
i am using fabric 1.4

AayushSirohi (Wed, 22 May 2019 10:23:13 GMT):
Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists)

AayushSirohi (Wed, 22 May 2019 10:23:13 GMT):
Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists) facing this issue while joining another peer of another org into the channel....can anyone resolve it?

knagware9 (Wed, 22 May 2019 10:38:47 GMT):
only one peer , chaincode should be instantiated once only

dave.enyeart (Wed, 22 May 2019 11:03:17 GMT):
It is true by default in the peer's core.yaml. But if you would like to override it, you'd pass env variable to peer start like CORE_LEDGER_HISTORY_ENABLEHISTORYDATABASE=true

dave.enyeart (Wed, 22 May 2019 11:05:47 GMT):
chaincode install is done per peer. chaincode instantiation is submitted as a transactions that all peers will see on their channel ledger. chaincode has to be both installed on a peer and instantiated on a channel before a peer will process chaincode requests.

Emiel 1 (Wed, 22 May 2019 12:49:16 GMT):
Hello, I have some questions regarding the Transaction context

Emiel 1 (Wed, 22 May 2019 12:49:46 GMT):
Even with the documentation I find it difficult to understand what it does and how i need to construct/use it

Emiel 1 (Wed, 22 May 2019 12:50:41 GMT):
Is there 1 context for a smart contract per channel? or is it more bound to a set of transactions?

gregnotso (Wed, 22 May 2019 13:02:02 GMT):
is there a way to get rid of this error without deleting docker images? "grpc: Server.Serve failed to create ServerTransport" it seems to trip this error for my orderer: "failed to create new connection: context deadline exceeded"

ahmad-raza (Wed, 22 May 2019 13:28:13 GMT):
hi all how can we update orderer configuration like Batchsize of running network. i had got genesis block update value and convert into .pb format. compute update then make envelope.pb but problem is in signing . because we are going to update orderer organization which require admin signature of admin of order organization. how can i sign the file with ordererAdmin signature ? Any one can help?

ahmad-raza (Wed, 22 May 2019 13:28:42 GMT):
@walmon can you please help?

JoshFodale (Wed, 22 May 2019 14:06:52 GMT):
I'm trying to setup a network with RAFT orderers and I'm receiving the following error in regards to policies: `2019-05-20 20:51:45.119 UTC [orderer.common.broadcast] ProcessMessage -> WARN 04d [channel: mychannel] Rejecting broadcast of config message from 172.31.0.20:33368 because of error: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` Does anyone have any insight as to what could be causing this? I can supply my configtx.yaml if needed.

MuhammedHafil (Wed, 22 May 2019 14:21:54 GMT):
How private data work in fabric ? Do I need to define the private data collection definition JSON file before starting network? Is it possible to dynamically add private data definitions and make private communications on the go?

JohnAllen (Wed, 22 May 2019 14:54:59 GMT):
I'm in Springfield Missouri.. I am deploying .sol to EVM as chaincod to HLF.. burrows EVM.. questions on Fab 3

JohnAllen (Wed, 22 May 2019 14:55:21 GMT):
anyone else using burrow EVM on Fabric 1.4 ?

CaioPinheiro (Wed, 22 May 2019 15:05:46 GMT):
I'm trying to create a channel, but I'm getting this error: ``` Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'gdchannel': error authorizing update: error validating ReadSet: existing config does not contain element for [Value] /Channel/Consortium but was in the read set ``` Someone can help me?

ownspies (Wed, 22 May 2019 15:32:30 GMT):
Has joined the channel.

ownspies (Wed, 22 May 2019 15:32:31 GMT):
Hi all, I had posted this in #fabric but thought perhaps this is the better forum ... I'm trying to follow the instructions at https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html to update the channel configuration, however I am updating the channel policies and NOT adding a new org to the channel. I follow all the instructions (at least, I am pretty sure I have), yet when I run `peer channel update ...`, it responds with `error authorizing update: error validating DeltaSet: attempt to set key [Group] /Channel/Orderer to version 0, but key is at version 0` - has anyone else updated the channel other than adding a new org?

icarrascol (Wed, 22 May 2019 20:27:37 GMT):
Has joined the channel.

icarrascol (Wed, 22 May 2019 20:31:50 GMT):
hello everyone i am testing a network with 1 channel with 4 orgs and 1 peer each, using node sdk for the client i cant get past 10tps, does anyone have any sugestion in what to do to get a high throughput

RodrigoAcosta (Wed, 22 May 2019 21:34:55 GMT):
hello everyone, does anyone knows if it is possible to retrieve the list of collections used for private data from chaincode stub? All installed collections include an admin org which can see all data. So I want to iterate on private data using all collections, but can't find a way to get all collections. Probably will have to add them to the state db and get it from there

RodrigoAcosta (Wed, 22 May 2019 21:34:55 GMT):
hello everyone, does anyone knows if it is possible to retrieve the list of collections used for private data from chaincode stub? All my instantiated collections include an admin org which can see all data. So I want to iterate on private data using all collections, but can't find a way to get all collections. Probably will have to add them to the state db and get it from there

Antimttr (Wed, 22 May 2019 21:36:46 GMT):
wouldnt that defeat the point of a private collection if the private data is included in the world state?

RodrigoAcosta (Wed, 22 May 2019 21:40:15 GMT):
What I meant is that I will put in the state world the name of the collection. So that when the admin Org wants to retrieve all private data from other orgs I will iterate from the collection's name and getPrivateData with all collections. Does it makes sense?

RodrigoAcosta (Wed, 22 May 2019 21:41:11 GMT):
because I can't find a method to retrieve the instantiated collections

Antimttr (Wed, 22 May 2019 21:41:41 GMT):
yeah that makes more sense

GeorgiiKulinarov (Thu, 23 May 2019 01:25:02 GMT):
Has joined the channel.

GeorgiiKulinarov (Thu, 23 May 2019 01:25:04 GMT):
Hello. I have a question. Since I deployed my Hyperledger Fabric network, can I add new Smart Contracts into the system?

tanishqharman (Thu, 23 May 2019 02:45:49 GMT):
Has joined the channel.

tanishqharman (Thu, 23 May 2019 02:45:49 GMT):
Hi i am building my first network on hyperledger, i have generated the network artifacts but now during bringing up my network it shows "/bin/bash: scripts/script.sh: Permission denied ERROR !!!! Test failed" after running the command $ ./byfn.sh up

DarwinHarianto (Thu, 23 May 2019 03:22:24 GMT):
I think you could look into updating chaincode

GeorgiiKulinarov (Thu, 23 May 2019 03:22:59 GMT):
Can you please give me a link to the documentation?

DarwinHarianto (Thu, 23 May 2019 04:40:49 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html

DarwinHarianto (Thu, 23 May 2019 04:40:49 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html it is upgrade, sorry for the misinformation

DarwinHarianto (Thu, 23 May 2019 04:42:07 GMT):
Hello guys, can someone tell me how do I initiate orderer for raft? I tried to create the image, but it can't start at all. I think something is wrong with configuration file. Is there any example on how to do that?

DarwinHarianto (Thu, 23 May 2019 05:57:59 GMT):

DarwinHarianto - Thu May 23 2019 14:57:56 GMT+0900 (JST).txt

K1L14N (Thu, 23 May 2019 07:00:11 GMT):
Has joined the channel.

AayushSirohi (Thu, 23 May 2019 07:25:26 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network multi-channel-network_byfn not found can anyone suggest me what could be the possible reason for this error while instantiating the chaincode

DarwinHarianto (Thu, 23 May 2019 07:35:10 GMT):
error says channel is not found, are you sure channel name is alright?

DarwinHarianto (Thu, 23 May 2019 07:36:17 GMT):
how do I start leader election on raft? I have make 3 orderers. ``` EtcdRaft: Consenters: - Host: orderer.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/tls/server.crt - Host: orderer1.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer1.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer1.ttp.com/tls/server.crt - Host: orderer2.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer2.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer2.ttp.com/tls/server.crt ``` But leader election isn't working at all

dave.enyeart (Thu, 23 May 2019 08:09:39 GMT):
@RodrigoAcosta you can query lscc to get the collections for a chaincode. SDKs make this available, e.g. https://fabric-sdk-node.github.io/release-1.4/Channel.html#queryCollectionsConfig__anchor

hieu29791 (Thu, 23 May 2019 08:22:49 GMT):
Has joined the channel.

Lorem (Thu, 23 May 2019 08:24:25 GMT):
Could you please run: "docker network ls" Seems like your network is not up or it probably has just a different name

hieu29791 (Thu, 23 May 2019 08:25:43 GMT):
Hi, my network is running fine about few weeks, but suddenly when I call invoke/upgrade chaincode, it show *Failed to upgrade. Cause: Error: ChannelEventHub has been shutdownroot* I don't know what's happening. I don't do anything, like morning working fine but afternoon it's error

hieu29791 (Thu, 23 May 2019 08:25:43 GMT):
Hi, my network is running fine about few weeks, but suddenly when I call invoke/upgrade chaincode, it show *Failed to upgrade. Cause: Error: ChannelEventHub has been shutdown* I don't know what's happening. I don't do anything, like morning working fine but afternoon it's error

MikeRichardson (Thu, 23 May 2019 08:40:41 GMT):
Has joined the channel.

RameshT (Thu, 23 May 2019 09:00:36 GMT):
Has joined the channel.

Raumo0 (Thu, 23 May 2019 10:25:55 GMT):
Has joined the channel.

AayushSirohi (Thu, 23 May 2019 10:49:20 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channelall1': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application/Org2MSP not satisfied: signature set did not satisfy policy

AayushSirohi (Thu, 23 May 2019 10:49:20 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channelall1': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application/Org2MSP not satisfied: signature set did not satisfy policy can anyone resolve this issue ,trying to update the anchor peer of org2 while adding it to channel

AayushSirohi (Thu, 23 May 2019 10:49:20 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channelall1': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application/Org2MSP not satisfied: signature set did not satisfy policy ----------------------->can anyone resolve this issue ,trying to update the anchor peer of org2 while adding it to channel

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ``` fabric-ca-client enroll -u http://admin:adminpw@localhost:17054 fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054 fabric-ca-client identity list -u http://admin:adminpw@localhost:17054 ``` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ``` fabric-ca-client enroll -u http://admin:adminpw@localhost:17054 fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054 fabric-ca-client identity list -u http://admin:adminpw@localhost:17054 ``` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ``` `fabric-ca-client enroll -u http://admin:adminpw@localhost:17054` `fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs 'app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054` `fabric-ca-client identity list -u http://admin:adminpw@localhost:17054` ``` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: `fabric-ca-client enroll -u http://admin:adminpw@localhost:17054` `fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs 'app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054` `fabric-ca-client identity list -u http://admin:adminpw@localhost:17054` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: `fabric-ca-client enroll -u http://admin:adminpw@localhost:17054` fabric-ca-client register - id.name user1 - id.secret user1pw - id.type user - id.affiliation org1 - id.attrs' app1Admin = true: ecert, email = user1 @ gmail.com, role = builder -u http: // admin: adminpw @ localhost: 17054 `fabric-ca-client identity list -u http://admin:adminpw@localhost:17054` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: fabric-ca-client enroll -u http: // admin: adminpw @ localhost: 17054 fabric-ca-client register - id.name user1 - id.secret user1pw - id.type user - id.affiliation org1 - id.attrs' app1Admin = true: ecert, email = user1 @ gmail.com, role = builder -u http: // admin: adminpw @ localhost: 17054 `fabric-ca-client identity list -u http://admin:adminpw@localhost:17054` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: fabric-ca-client enroll -u http: // admin: adminpw @ localhost: 17054 fabric-ca-client register - id.name user1 - id.secret user1pw - id.type user - id.affiliation org1 - id.attrs' app1Admin = true: ecert, email = user1 @ gmail.com, role = builder -u http: // admin: adminpw @ localhost: 17054 `fabric-ca-client identity list -u http: // admin: adminpw @ localhost: 17054` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ` fabric-ca-client enroll -u http: // admin: adminpw @ localhost: 17054 fabric-ca-client register - id.name user1 - id.secret user1pw - id.type user - id.affiliation org1 - id.attrs' app1Admin = true: ecert, email = user1 @ gmail.com, role = builder -u http: // admin: adminpw @ localhost: 17054 fabric-ca-client identity list -u http: // admin: adminpw @ localhost: 17054 ` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ``` fabric-ca-client enroll -u http://admin:adminpw@localhost:17054 fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054 fabric-ca-client identity list -u http://admin:adminpw@localhost:17054 ``` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

Raumo0 (Thu, 23 May 2019 11:46:39 GMT):
Can someone help me? I'm trying to create a new identity with custom attributes or replace a certificate with new attributes. I work with vscode (ibm blockchain platform extention). If I create identity from a plugin, then I don’t have the ability to set additional parameters in attributes. The priv key, pub key and certificate appear in the plugin directory. I tried to go inside the container docker and there did the following: ``` fabric-ca-client enroll -u http://admin:adminpw@localhost:17054 fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs app1Admin=true:ecert,email=user1@gmail.com,role=builder' -u http://admin:adminpw@localhost:17054 fabric-ca-client identity list -u http://admin:adminpw@localhost:17054 ``` The last command tells me about having a new identity, but I did it inside the CA container. Now I do not know how to add identity to the plugin, since I need to specify the certificate and keys, but I do not know where to get them.

NishaM.R (Thu, 23 May 2019 12:18:02 GMT):
Hi, I was deploying chaincode in IBM cloud. I am working with hyperledger fabric Node SDK. While trying to register user I am getting below error `AIM00110:EVCharging-app 549121$ node registerUserOrg2.js Store path:/Users/549121/Desktop/IBM-EV/EVCharging-app/hfc-key-store Successfully loaded admin from persistence Failed to register: Error: Calling register endpoint failed, CONNECTION Timeout` Can anyone help in this?

NishaM.R (Thu, 23 May 2019 12:18:02 GMT):
Hi, I was deploying chaincode in IBM cloud. I am working with hyperledger fabric Node SDK. While trying to register user I am getting below error ``AIM00110:EVCharging-app 549121$ node registerUserOrg2.js Store path:/Users/549121/Desktop/IBM-EV/EVCharging-app/hfc-key-store Successfully loaded admin from persistence Failed to register: Error: Calling register endpoint failed, CONNECTION Timeout`` Can anyone help in this?

RodrigoAcosta (Thu, 23 May 2019 13:35:08 GMT):
thanks @dave.enyeart . I was looking on dong this from the chaincode actually. So i finally added the collection names during chaincode instantiation and retrieve them when I need them

cryptog (Thu, 23 May 2019 14:32:14 GMT):
Has joined the channel.

kn3118 (Thu, 23 May 2019 16:26:08 GMT):
Has joined the channel.

Antimttr (Thu, 23 May 2019 16:37:10 GMT):
Hey folks, I'm running through the doc here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html and i've come to this step:

Antimttr (Thu, 23 May 2019 16:37:35 GMT):

Capture.PNG

Antimttr (Thu, 23 May 2019 16:38:47 GMT):
so this implies that in order to create a new org in an existing channel you have to copy all the crypto data from each org's existing orderer artifacts to the new org, doesnt this constitute handing the keys to the castle to the new org? why would i want to give my private keys for my orderer to an external organization?

Antimttr (Thu, 23 May 2019 16:39:32 GMT):
or is it just that they only really want the tls cert and the keys are not required to be copied?

Antimttr (Thu, 23 May 2019 16:40:34 GMT):
seems like a massive trust violation that we would have to provide the private keys to all the existing orderers in the channel to any organization trying to join?

Antimttr (Thu, 23 May 2019 16:40:58 GMT):
any clarification would be greatly appreciated

Antimttr (Thu, 23 May 2019 16:45:17 GMT):
seems like the only place it gets used is in lines like this: `export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem && export CHANNEL_NAME=mychannel`

Antimttr (Thu, 23 May 2019 16:45:27 GMT):
which would seem to imply the only thing they're using is the cert pem not the private keys

Antimttr (Thu, 23 May 2019 16:45:45 GMT):
if this is the case then i suppose thats ok

yacovm (Thu, 23 May 2019 17:24:52 GMT):
@Antimttr obviously you're not supposed to give the private keys...

yacovm (Thu, 23 May 2019 17:24:59 GMT):
the channel config only contains public keys

Antimttr (Thu, 23 May 2019 17:37:33 GMT):
well i checked, the directory they're copying contains public and private keys

Antimttr (Thu, 23 May 2019 17:37:50 GMT):
but i beleive they're only using the public keys anways, so thats all that would be needed

yacovm (Thu, 23 May 2019 17:44:28 GMT):
you're only supposed to copy the `msp` folder

yacovm (Thu, 23 May 2019 17:44:33 GMT):
it shouldn't contain private keys

Antimttr (Thu, 23 May 2019 17:45:22 GMT):
ahh so its just a issue in their doc then, well its also in the eyfn.sh script but regardless, that clarifies it for me

yacovm (Thu, 23 May 2019 17:45:48 GMT):
can you point to where this is in the `eyfn`?

Antimttr (Thu, 23 May 2019 17:45:57 GMT):
yeah i was just about to copy it

Antimttr (Thu, 23 May 2019 17:45:58 GMT):
sec

yacovm (Thu, 23 May 2019 17:46:07 GMT):
I doubt it can work like this.... the MSP has a structure. it you put something wrong it will vomit it

Antimttr (Thu, 23 May 2019 17:46:30 GMT):
``` function generateChannelArtifacts() { which configtxgen if [ "$?" -ne 0 ]; then echo "configtxgen tool not found. exiting" exit 1 fi echo "##########################################################" echo "######### Generating Org3 config material ###############" echo "##########################################################" (cd org3-artifacts export FABRIC_CFG_PATH=$PWD set -x configtxgen -printOrg Org3MSP > ../channel-artifacts/org3.json res=$? set +x if [ $res -ne 0 ]; then echo "Failed to generate Org3 config material..." exit 1 fi ) cp -r crypto-config/ordererOrganizations org3-artifacts/crypto-config/ echo } ```

Antimttr (Thu, 23 May 2019 17:46:39 GMT):
second to last line is the copy

Antimttr (Thu, 23 May 2019 17:47:06 GMT):
contents of the dir copied:

Antimttr (Thu, 23 May 2019 17:47:11 GMT):
``` └── example.com ├── ca │   ├── 11466b5067a0c318b827845fea2ff05ed6e9c9b080ba71927f6f225e72eb929c_sk │   └── ca.example.com-cert.pem ├── msp │   ├── admincerts │   │   └── Admin@example.com-cert.pem │   ├── cacerts │   │   └── ca.example.com-cert.pem │   └── tlscacerts │   └── tlsca.example.com-cert.pem ├── orderers │   ├── orderer2.example.com │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@example.com-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.example.com-cert.pem │   │   │   ├── keystore │   │   │   │   └── bd0d0522d96f22fa6991d0e6a3620c7cf6dc825d283a49bb31748f45e49ed33b_sk │   │   │   ├── signcerts │   │   │   │   └── orderer2.example.com-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.example.com-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   ├── orderer3.example.com │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@example.com-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.example.com-cert.pem │   │   │   ├── keystore │   │   │   │   └── 46972417fff6a33ccc7e13167caa51da700d49b9fbf7f2b7e4504084f345c58e_sk │   │   │   ├── signcerts │   │   │   │   └── orderer3.example.com-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.example.com-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   ├── orderer4.example.com │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@example.com-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.example.com-cert.pem │   │   │   ├── keystore │   │   │   │   └── d89cd00a1d50abd6b0e7502a404a7f6ef3acd0db21fa8f6c3391ace50c83398d_sk │   │   │   ├── signcerts │   │   │   │   └── orderer4.example.com-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.example.com-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   ├── orderer5.example.com │   │   ├── msp │   │   │   ├── admincerts │   │   │   │   └── Admin@example.com-cert.pem │   │   │   ├── cacerts │   │   │   │   └── ca.example.com-cert.pem │   │   │   ├── keystore │   │   │   │   └── 314f9a66172f031efa058fa3f68e07dde3efa5fb842305d15336bbb7ec5e8c45_sk │   │   │   ├── signcerts │   │   │   │   └── orderer5.example.com-cert.pem │   │   │   └── tlscacerts │   │   │   └── tlsca.example.com-cert.pem │   │   └── tls │   │   ├── ca.crt │   │   ├── server.crt │   │   └── server.key │   └── orderer.example.com │   ├── msp │   │   ├── admincerts │   │   │   └── Admin@example.com-cert.pem │   │   ├── cacerts │   │   │   └── ca.example.com-cert.pem │   │   ├── keystore │   │   │   └── 7ca72d20e1f6ae29eea1c048c6e18b970298500179448574590335fd4ece6dca_sk │   │   ├── signcerts │   │   │   └── orderer.example.com-cert.pem │   │   └── tlscacerts │   │   └── tlsca.example.com-cert.pem │   └── tls │   ├── ca.crt │   ├── server.crt │   └── server.key ├── tlsca │   ├── ad0d1fc0b7b168d42010df8f6542f664cf6f19519dfebd2177111222fb1266d0_sk │   └── tlsca.example.com-cert.pem └── users └── Admin@example.com ├── msp │   ├── admincerts │   │   └── Admin@example.com-cert.pem │   ├── cacerts │   │   └── ca.example.com-cert.pem │   ├── keystore │   │   └── 819be407cec236692013386777e001a2d72203a2d1ee256e572f62a1b497d69f_sk │   ├── signcerts │   │   └── Admin@example.com-cert.pem │   └── tlscacerts │   └── tlsca.example.com-cert.pem └── tls ├── ca.crt ├── client.crt └── client.key ```

yacovm (Thu, 23 May 2019 17:47:58 GMT):
where is org3 though?

yacovm (Thu, 23 May 2019 17:47:59 GMT):
it's the orderer org

Antimttr (Thu, 23 May 2019 17:48:17 GMT):
this script adds org3 to the channel

Antimttr (Thu, 23 May 2019 17:48:30 GMT):
so its assets are in the org3-crypto dir

yacovm (Thu, 23 May 2019 17:48:51 GMT):
where is that dir in what you pasted?

Antimttr (Thu, 23 May 2019 17:49:05 GMT):
hyperledger/fabric-samples/first-network/crypto-config/ordererOrganizations

yacovm (Thu, 23 May 2019 17:49:20 GMT):
i mean in the directory structure

yacovm (Thu, 23 May 2019 17:49:25 GMT):
the directory tree

Antimttr (Thu, 23 May 2019 17:49:49 GMT):
the dir i pasted the tree of is: `hyperledger/fabric-samples/first-network/crypto-config/ordererOrganizations`

yacovm (Thu, 23 May 2019 17:49:57 GMT):
so it only has `example.com`

yacovm (Thu, 23 May 2019 17:49:59 GMT):
not org3

Antimttr (Thu, 23 May 2019 17:50:02 GMT):
right

Antimttr (Thu, 23 May 2019 17:50:03 GMT):
yeah

yacovm (Thu, 23 May 2019 17:50:57 GMT):
so i think the scripts just make the config update skip everything that is not the public `msp` folders

yacovm (Thu, 23 May 2019 17:51:23 GMT):
you can just do `configtxgen --inspectBlock` on the block

yacovm (Thu, 23 May 2019 17:51:33 GMT):
and see that it only has public MSP data

Antimttr (Thu, 23 May 2019 17:51:54 GMT):
yeah, and it seems like they're only using the public key from the orderers in the operation

Antimttr (Thu, 23 May 2019 17:52:11 GMT):
so that hsould be all that i need to distribute to a hypothetical organization that im onboarding

yacovm (Thu, 23 May 2019 17:52:22 GMT):
yes

DarwinHarianto (Fri, 24 May 2019 00:56:24 GMT):
hello, my ca orderer is not up. `Error: Failed to find private key for certificate in '/var/hyperledger/fabric-ca-server-config/ca.org.ttp.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[180 238 135 89 115 20 120 232 73 22 247 113 255 214 119 48 143 177 17 238 132 50 121 30 68 244 72 200 151 78 53 58]]: Key with SKI b4ee8759731478e84916f771ffd677308fb111ee8432791e44f448c8974e353a not found in /var/hyperledger/fabric-ca-server/msp/keystore` is the error it gives. I already copied key file from orderer ca, to docker compose file. What should I do?

DarwinHarianto (Fri, 24 May 2019 01:21:27 GMT):
hello, what should I do for this? `Error: Failed to find private key for certificate in '/var/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[86 87 196 9 127 108 195 154 13 63 30 82 127 48 183 225 110 149 163 144 122 85 140 118 87 172 83 187 72 27 6 103]]: Key with SKI 5657c4097f6cc39a0d3f1e527f30b7e16e95a3907a558c7657ac53bb481b0667 not found in /var/hyperledger/fabric-ca-server-config/msp/keystore` I tried to explore the docker container, I can see that folder exist, but there is not a single file inside keystore.

DarwinHarianto (Fri, 24 May 2019 01:21:27 GMT):
hello, what should I do for this? `Error: Failed to find private key for certificate in '/var/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[86 87 196 9 127 108 195 154 13 63 30 82 127 48 183 225 110 149 163 144 122 85 140 118 87 172 83 187 72 27 6 103]]: Key with SKI 5657c4097f6cc39a0d3f1e527f30b7e16e95a3907a558c7657ac53bb481b0667 not found in /var/hyperledger/fabric-ca-server/msp/keystore` I tried to explore the docker container, I can see that folder exist, but there is not a single file inside keystore.

Hoonki (Fri, 24 May 2019 03:53:40 GMT):
Has joined the channel.

DarwinHarianto (Fri, 24 May 2019 04:51:22 GMT):
hello, what should I do for this? ` failed to load config for PeerClient: unable to load peer.tls.clientKey.file: open : no such file or directory` I tried using raft and TLS configuraton when peer start join channel, that error appeared

DarwinHarianto (Fri, 24 May 2019 05:05:02 GMT):
seeing peer logs ``` 2019-05-24 04:53:12.775 UTC [core.comm] ServerHandshake -> ERRO 3c04 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.18.0.8:45168 2019-05-24 04:53:12.788 UTC [gossip.comm] sendToEndpoint -> WARN 3c05 Failed obtaining connection for 172.18.0.8:7051, PKIid:1484dfeded5478872973d18a8bd58f6f398c1c7d2f730eb97fa10e98dc8bbefa reason: context deadline exceeded 2019-05-24 04:53:12.789 UTC [gossip.discovery] expireDeadMembers -> WARN 3c06 Entering [1484dfeded5478872973d18a8bd58f6f398c1c7d2f730eb97fa10e98dc8bbefa] 2019-05-24 04:53:12.789 UTC [gossip.discovery] expireDeadMembers -> WARN 3c07 Closing connection to Endpoint: , InternalEndpoint: 172.18.0.8:7051, PKI-ID: 1484dfeded5478872973d18a8bd58f6f398c1c7d2f730eb97fa10e98dc8bbefa, Metadata: 2019-05-24 04:53:12.789 UTC [gossip.discovery] expireDeadMembers -> WARN 3c08 Exiting ```

DarwinHarianto (Fri, 24 May 2019 05:52:30 GMT):
what should I do with this? `peer0.org1.ttp.com:7051: failed to create new connection: context deadline exceeded`

DarwinHarianto (Fri, 24 May 2019 05:52:41 GMT):
docker ps showing it is running and no error sign

DarwinHarianto (Fri, 24 May 2019 06:15:04 GMT):
Tried to play with CORE_PEER_ADDRESS, doesn't solve the problem

tejateja (Fri, 24 May 2019 06:39:30 GMT):
Hi we moved docker containers from A host to B host. The way we used rsync to move the docker containers. rsync completed successfully and containers also running successfully in b host. Here the problem is am not able to see business cards in composer playground but that business card container is running... how can i solve this issue

djraj (Fri, 24 May 2019 06:50:07 GMT):
Have you copied your ".composer" folder from A host to B host? The cards are located in there

yeousunn (Fri, 24 May 2019 07:16:24 GMT):
Hi, anyone faced this error? `Failed to initialize local MSP: Setup error: nil conf reference` when starting orderer with tls enabled.

DarwinHarianto (Fri, 24 May 2019 07:18:34 GMT):
maybe your localmspid is not declared?

yeousunn (Fri, 24 May 2019 07:21:03 GMT):
ORDERER_GENERAL_LOCALMSPID and ORDERER_GENERAL_LOCALMSPDIR are set.

yeousunn (Fri, 24 May 2019 07:21:20 GMT):
when I disable tls it works fine.

DarwinHarianto (Fri, 24 May 2019 07:22:37 GMT):
can I see your docker compose file?

yeousunn (Fri, 24 May 2019 07:25:43 GMT):
I am not using docker. These are the variables I have set. ``` export ORDERER_GENERAL_GENESISFILE="/home/Practice/hyperledger/artifact/genesis.block" export ORDERER_GENERAL_LOCALMSPDIR="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp" export ORDERER_GENERAL_LOCALMSPID="Org1MSP" export ORDERER_GENERAL_TLS_CERTIFICATE="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem" export ORDERER_GENERAL_TLS_ENABLED="true" export ORDERER_GENERAL_TLS_PRIVATEKEY="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/4930bdf17db8b09bb026b1f756c0ae5e7a18b9b08cfde7ca2a74a2b6f80f8d99_sk" export ORDERER_GENERAL_TLS_ROOTCAS="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem" export ORDERER_HOME="/home/Practice/hyperledger/orderer" ```

yeousunn (Fri, 24 May 2019 07:25:43 GMT):
I am not using docker. These are the variables I have set. ``` export ORDERER_GENERAL_GENESISFILE="/home/Practice/hyperledger/artifact/genesis.block" export ORDERER_GENERAL_LOCALMSPDIR="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp" export ORDERER_GENERAL_LOCALMSPID="OrdererMSP" export ORDERER_GENERAL_TLS_CERTIFICATE="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem" export ORDERER_GENERAL_TLS_ENABLED="true" export ORDERER_GENERAL_TLS_PRIVATEKEY="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/4930bdf17db8b09bb026b1f756c0ae5e7a18b9b08cfde7ca2a74a2b6f80f8d99_sk" export ORDERER_GENERAL_TLS_ROOTCAS="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem" export ORDERER_HOME="/home/Practice/hyperledger/orderer" ```

yeousunn (Fri, 24 May 2019 07:26:51 GMT):
I am able to run the network when not using TLS.

DarwinHarianto (Fri, 24 May 2019 07:32:25 GMT):
seems like variables is not you problem. I tried to use the same variable, it works.

yeousunn (Fri, 24 May 2019 07:35:23 GMT):
thanks, This is how I enrolled the orderer `fabric-ca-client enroll -u https://orderer:pw@0.0.0.0:7054 --enrollment.profile tls `

yeousunn (Fri, 24 May 2019 07:36:15 GMT):
is --csr.hosts necessary here?

DarwinHarianto (Fri, 24 May 2019 07:43:28 GMT):
I don't know about that. I am spinning up raft configuration, so I need to use TLS for orderer.

yeousunn (Fri, 24 May 2019 07:45:27 GMT):
ok, are you using docker or fabric binaries? I am trying binaries.

DarwinHarianto (Fri, 24 May 2019 07:45:55 GMT):
I am using docker

DarwinHarianto (Fri, 24 May 2019 07:46:43 GMT):
just curious, what would happen if you remove the " "

yeousunn (Fri, 24 May 2019 07:48:06 GMT):
okay, thank you for help. I'll try with csr.hosts. removing "" has the same effect, in fact I set the variables without " ". when displaying export it automatically adds ""

tejateja (Fri, 24 May 2019 08:34:40 GMT):
we copied the folder but it was not working

Abrara (Fri, 24 May 2019 09:17:44 GMT):
Hello, I'm having trouble finding where the Channel's MSPs are stored on the peers' local filesystem. If I understood correctly, Channels' MSPs are actually the managing organizations' MSPs and for the orderers they are "stored" in the genesis block? But from the doc "there is a copy of each channel MSP on the local file system of every node" and I couldn't find it

Abrara (Fri, 24 May 2019 09:17:44 GMT):
Hello, I'm having trouble finding where the Channel's MSPs are stored on the peers' local filesystem. If I understood correctly, Channel's MSPs are actually the managing organizations' MSPs and for the orderers they are "stored" in the genesis block? But from the doc "there is a copy of each channel MSP on the local file system of every node" and I couldn't find it

AayushSirohi (Fri, 24 May 2019 10:13:27 GMT):
can anyone resolve? trying to query value of a in sample sacc.go bt getting an error-----------------------------------chaincode argument error: invalid character 'â' looking for beginning of value

yacovm (Fri, 24 May 2019 10:13:43 GMT):
@Abrara they are stored in the blockchain. the peer loads them into memory each time it starts up

yacovm (Fri, 24 May 2019 10:14:06 GMT):
it just fetches the last configuration block from the blockchain, that contains the latest MSP s

poojaKamat (Fri, 24 May 2019 10:48:06 GMT):
I have configured an orderer and peer to expose /metrics endpoint for Prometheus , I could successfully get the metrics , however there are some questions regarding metrics: Does the metrics give average time taken by a transaction to complete endorsements and average time taken for a transaction to be ordered in a block and confirmed by committing peer? Can we reset the counter and get metrics from a point where will start invoking transactions?

tejateja (Fri, 24 May 2019 11:27:27 GMT):
We are getting the error trying to connect networks in playground. Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]

tejateja (Fri, 24 May 2019 11:30:47 GMT):
We are getting the error trying to connect networks in playground. Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]

DiogoPalermo (Fri, 24 May 2019 11:44:35 GMT):
Has joined the channel.

DiogoPalermo (Fri, 24 May 2019 11:44:37 GMT):
hello All, i am building a smartcontract and i am creating a query to find my data.. until now everything is ok, but now i want to sort this field and i am receiving an error that i dont have an index to do so ... anyone knows how i create this index using GoLang ? this is my current query: { "selector":{"price":{ "$lte": 0.35}}, "sort": ["price"] }

DiogoPalermo (Fri, 24 May 2019 11:44:37 GMT):
hello All, i am building a smartcontract and i am creating a query to find my data.. until now everything is ok, but now i want to sort this field and i am receiving an error that i dont have an index to do so ... anyone knows how i create this index using GoLang ? this is my current query: { "selector":{"price":{ "$lte": 0.35}}, "sort": ["price"] } this is the response: { "error": { "message": "GET_QUERY_RESULT failed: transaction ID: 6d921f7b84664df2739eea607e58855d5a1c81f5d93fbc0005eb30b0c9ce3852: error handling CouchDB request. Error:no_usable_index, Status Code:400, Reason:No index exists for this sort, try indexing by the sort fields.", "code": "CustomError", "status": 500 } }

Abrara (Fri, 24 May 2019 12:07:55 GMT):
ok thank you very much! May I ask where the information was in the documentation?

Jelle.Diet (Fri, 24 May 2019 12:37:06 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_as_state_database.html

Jelle.Diet (Fri, 24 May 2019 12:37:33 GMT):
There's a section for CouchDB indexes

Abrara (Fri, 24 May 2019 12:45:29 GMT):
I think you joined the bad convo here :)

Jelle.Diet (Fri, 24 May 2019 12:46:30 GMT):
whoops you are right my bad

Jelle.Diet (Fri, 24 May 2019 12:46:44 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_as_state_database.html

Jelle.Diet (Fri, 24 May 2019 12:47:02 GMT):
See CouchDB indexes

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: ``2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found (node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found at Channel.sendTransaction (/home/appinventiv/kraudNetwork/org1/node_modules/fabric-client/lib/Channel.js:2934:10)`` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: `2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found (node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found at Channel.sendTransaction (/home/appinventiv/kraudNetwork/org1/node_modules/fabric-client/lib/Channel.js:2934:10)` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: ``2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found (node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found at Channel.sendTransaction (/home/appinventiv/kraudNetwork/org1/node_modules/fabric-client/lib/Channel.js:2934:10)`` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: ``2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found (node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found at Channel.sendTransaction (/home/appinventiv/kraudNetwork/org1/node_modules/fabric-client/lib/Channel.js:2934:10)`` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: ``2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 `` 2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found (node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found at Channel.sendTransaction (/home/appinventiv/kraudNetwork/org1/node_modules/fabric-client/lib/Channel.js:2934:10)`` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the error when I try to instantiate chaincode using fabric-client module: `2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 ` `2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found` `(node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found` And follwing are the docker logs of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the `error` when I try to instantiate chaincode using fabric-client module: `2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 ` `2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found` `(node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found` And follwing are the `docker logs` of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

rohitsethi (Fri, 24 May 2019 13:26:09 GMT):
Hi all, I am stuck at chaincode instantiation. here is the `error` when I try to instantiate chaincode using `fabric-client` module: `2019-05-24T13:07:07.466Z - error: [Peer.js]: sendProposal - timed out after:240000 ` `2019-05-24T13:07:07.479Z - error: [Channel.js]: sendTransaction - no valid endorsements found` `(node:21125) UnhandledPromiseRejectionWarning: Error: no valid endorsements found` And follwing are the `docker logs` of the chaincode container: ``error: Chat stream with peer - on error: "Error: 14 UNAVAILABLE: Name resolution failure\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)`` Any help would be highly appreciated

Abhishekg.s (Fri, 24 May 2019 13:34:50 GMT):
Has joined the channel.

mohankumar9 (Fri, 24 May 2019 13:35:42 GMT):
Has joined the channel.

mohankumar9 (Fri, 24 May 2019 13:35:43 GMT):
hi,Is it possible to do content expiry using any tool in blockchain. If yes, can you suggest how its done

florianc (Fri, 24 May 2019 13:40:49 GMT):
What do you mean by content expiry?

mohankumar9 (Fri, 24 May 2019 13:42:23 GMT):
suppose i made a transaction where i posted a url and i want that url or transaction to expire after a limited time

mohankumar9 (Fri, 24 May 2019 13:43:48 GMT):
Is it possible to expire transaction data in blockchain

florianc (Fri, 24 May 2019 13:45:48 GMT):
There is no way to delete completely an information from a blockchain because it would go against the principle of it. As far as I know, The only way you could achieve this with Fabric is with private data collections.

florianc (Fri, 24 May 2019 13:46:11 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data/private-data.html

mohankumar9 (Fri, 24 May 2019 13:47:58 GMT):
how can i achieve multiple node setup using hyperledger fabric

mohankumar9 (Fri, 24 May 2019 13:48:15 GMT):
without ips

charyorde (Fri, 24 May 2019 16:06:31 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=wrv3BiEhpEAEsr6cv) Anyone please?

florianc (Sat, 25 May 2019 16:34:05 GMT):
I am not sure. But considering that the MSP got its certificate from the organization CA, I don't think it is possible.

Adsob (Sun, 26 May 2019 08:47:10 GMT):
So there is no way of finding out the transaction size?

DarwinHarianto (Mon, 27 May 2019 01:29:23 GMT):
Hello guys, I tried to start multiple orderer. This error comes out `Error opening leveldb: resource temporarily unavailable` anything come to mind?

yeousunn (Mon, 27 May 2019 01:30:04 GMT):
is there another process using the leveldb file?

DarwinHarianto (Mon, 27 May 2019 01:31:37 GMT):
I found the problem. volume maintaining was conflicted. this caused db conflict. `- orderer2.ttp.com:/var/hyperledger/production/orderer`

yeousunn (Mon, 27 May 2019 01:32:40 GMT):
:thumbsup:

DarwinHarianto (Mon, 27 May 2019 01:33:34 GMT):
thanks for replying. by any chance, have you ever encountered this? `peer0.org1.ttp.com:7051: failed to create new connection: context deadline exceeded` happens only when I tried to interact with chaincode

yeousunn (Mon, 27 May 2019 01:37:38 GMT):
I did find that error few times, can happen due to different cases. check your orderer address in configtx.yaml is same as that you are passing. next check gossip is properly set.

DarwinHarianto (Mon, 27 May 2019 01:39:14 GMT):
you mean this one? ``` - &Org1 Name: Org1MSP ID: Org1MSP MSPDir: ../crypto-config/peerOrganizations/org1.ttp.com/msp AnchorPeers: - Host: peer0.org1.ttp.com port: 7051 ``` and gossip is at docker compose? ``` environment: - CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.ttp.com:7052 - CORE_PEER_LISTENADDRESS=peer0.org1.ttp.com:7051 - CORE_PEER_ID=peer0.org1.ttp.com - CORE_PEER_ADDRESS=peer0.org1.ttp.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.ttp.com:7051 - CORE_PEER_CHAINCODEADDRESS=peer0.org1.ttp.com:7052 ```

DarwinHarianto (Mon, 27 May 2019 01:39:24 GMT):
should it be 0.0.0.0?

DarwinHarianto (Mon, 27 May 2019 01:41:59 GMT):
I think something with TLS it is omitting error `transport: authentication handshake failed: tls: first record does not look like a TLS handshake". Reconnecting...`

yeousunn (Mon, 27 May 2019 01:42:23 GMT):
I mean orderer section ``` Orderer: &OrdererDefaults OrdererType: solo Addresses: # - :7050 ```

yeousunn (Mon, 27 May 2019 01:43:35 GMT):
not sure about tls, I am also facing issue with TLS atm.

DarwinHarianto (Mon, 27 May 2019 01:43:40 GMT):
``` Orderer: &OrdererDefaults OrdererType: etcdraft Addresses: - orderer.ttp.com:7050 - orderer1.ttp.com:7050 - orderer2.ttp.com:7050 BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB EtcdRaft: Consenters: - Host: orderer.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/tls/server.crt - Host: orderer1.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer1.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer1.ttp.com/tls/server.crt - Host: orderer2.ttp.com Port: 7050 ClientTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer2.ttp.com/tls/server.crt ServerTLSCert: ../crypto-config/ordererOrganizations/ttp.com/orderers/orderer2.ttp.com/tls/server.crt Organizations: ```

yeousunn (Mon, 27 May 2019 01:45:00 GMT):
this looks fine. are you getting the error when trying to instantiate chaincode?

DarwinHarianto (Mon, 27 May 2019 01:47:15 GMT):
I tried playing with TLS settings. turning it on and off. Now I am on peer joining channel with peer TLS off and orderer TLS on. it seems both need to be on. After turning them both on, now I am facing `channel []: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority` when peer joining channel.

yeousunn (Mon, 27 May 2019 01:47:32 GMT):
Hi, has anyone tried starting orderer when TLS is enabled using fabric binaries? I am trying since Friday, I am getting this error `Failed to initialize local MSP: Setup error: nil conf reference` I have these variables set ``` export ORDERER_GENERAL_GENESISFILE="/home/Practice/hyperledger/artifact/genesis.block" export ORDERER_GENERAL_GENESISMETHOD="file" export ORDERER_GENERAL_LISTENADDRESS="0.0.0.0" export ORDERER_GENERAL_LOCALMSPDIR="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp" export ORDERER_GENERAL_LOCALMSPID="OrdererMSP" export ORDERER_GENERAL_TLS_CERTIFICATE="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem" export ORDERER_GENERAL_TLS_ENABLED="true" export ORDERER_GENERAL_TLS_PRIVATEKEY="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/8d6c2949c6f0eb839bc0abc1f2dcd8c8667874e2e85ad4d2565119d3c21b1743_sk" export ORDERER_GENERAL_TLS_ROOTCAS="[/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem]" ``` This is what I got when I dump the conf variable ``` &{{file 0.0.0.0 7050 {true /home/thgy/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/30b6be91d5030420577f6f696191cd8460dec7a3bdb7727256b0d41f9d87fbee_sk /home/thgy/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem [/home/thgy/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem] false []} { 0 [] 5s 7s 20971520 5s 5s 5m0s 12 10 168h0m0s} {1m0s 2h0m0s 20s} file SampleSingleMSPSolo test-system-channel-name /home/thgy/Practice/hyperledger/artifact/genesis.block {false } /home/thgy/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp Org1MSP 0xc00052aee0 {15m0s}} {./ledger hyperledger-fabric-ordererledger} {0} {{1m0s 10m0s 10m0s 12h0m0s {30s 30s 30s} {3 250ms} {3 100ms} {2s}} false 0.10.2.0 {false [] false []} {false } {0}} {./trace ./trace} { {false [] false []}} { { 0s }}} ```

yeousunn (Mon, 27 May 2019 01:47:32 GMT):
Hi, has anyone tried starting orderer when TLS is enabled using fabric binaries? I am trying since Friday, I am getting this error `Failed to initialize local MSP: Setup error: nil conf reference` I have these variables set ``` export ORDERER_GENERAL_GENESISFILE="/home/Practice/hyperledger/artifact/genesis.block" export ORDERER_GENERAL_GENESISMETHOD="file" export ORDERER_GENERAL_LISTENADDRESS="0.0.0.0" export ORDERER_GENERAL_LOCALMSPDIR="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp" export ORDERER_GENERAL_LOCALMSPID="OrdererMSP" export ORDERER_GENERAL_TLS_CERTIFICATE="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem" export ORDERER_GENERAL_TLS_ENABLED="true" export ORDERER_GENERAL_TLS_PRIVATEKEY="/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/8d6c2949c6f0eb839bc0abc1f2dcd8c8667874e2e85ad4d2565119d3c21b1743_sk" export ORDERER_GENERAL_TLS_ROOTCAS="[/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem]" ``` This is what I got when I dump the conf variable ``` &{{file 0.0.0.0 7050 {true /home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/keystore/30b6be91d5030420577f6f696191cd8460dec7a3bdb7727256b0d41f9d87fbee_sk /home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/signcerts/cert.pem [/home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp/tlscacerts/tls-0-0-0-0-7054.pem] false []} { 0 [] 5s 7s 20971520 5s 5s 5m0s 12 10 168h0m0s} {1m0s 2h0m0s 20s} file SampleSingleMSPSolo test-system-channel-name /home/Practice/hyperledger/artifact/genesis.block {false } /home/Practice/hyperledger/fabric-ca/client/orderer/orderer/msp Org1MSP 0xc00052aee0 {15m0s}} {./ledger hyperledger-fabric-ordererledger} {0} {{1m0s 10m0s 10m0s 12h0m0s {30s 30s 30s} {3 250ms} {3 100ms} {2s}} false 0.10.2.0 {false [] false []} {false } {0}} {./trace ./trace} { {false [] false []}} { { 0s }}} ```

yeousunn (Mon, 27 May 2019 01:48:43 GMT):
yeah, if you are enabling tls you need to make sure that tls is enabled for whole network. that's what I read.

yeousunn (Mon, 27 May 2019 01:51:06 GMT):
unknown authority looks like wrong certificate.

DarwinHarianto (Mon, 27 May 2019 01:55:05 GMT):
this is so weird. I already stated ` - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls:/var/hyperledger/tls` on volume. Then `-CORE_PEER_TLS_CERT_FILE=/var/hyperledger/tls/server.crt` I have done the same for server.key and ca.crt

DarwinHarianto (Mon, 27 May 2019 01:55:05 GMT):
this is so weird. I already stated ``` - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls:/var/hyperledger/tls ``` on volume. Then `-CORE_PEER_TLS_CERT_FILE=/var/hyperledger/tls/server.crt` I have done the same for server.key and ca.crt

yeousunn (Mon, 27 May 2019 02:04:14 GMT):
this is weird. the path looks fine to me. maybe something changed in the background? or maybe when enabling and disabling the tls require different certs? I am not so sure about this.

DarwinHarianto (Mon, 27 May 2019 02:23:57 GMT):
seems like you are right `2019-05-27 02:22:36.775 UTC [gossip.discovery] isSentByMe -> ERRO 023 Bad configuration detected: Received AliveMessage from a peer with the same PKI-ID as myself: tag:EMPTY alive_msg: timestamp: identity:" ` I keep getting this

DarwinHarianto (Mon, 27 May 2019 02:24:13 GMT):
but I don't know why they are the same

yeousunn (Mon, 27 May 2019 02:28:33 GMT):
are you running two peers? check if both peers are not using the certs from same path.

yeousunn (Mon, 27 May 2019 02:28:33 GMT):
are you running two peers? check if both peers are using the certs from same path. If they are change one of it.

yeousunn (Mon, 27 May 2019 02:28:33 GMT):
Try changing this ``` - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.ttp.com:7051 ``` to ``` - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.ttp.com:7051 ```

DarwinHarianto (Mon, 27 May 2019 02:31:21 GMT):
I am running 3 peers on 1 org. ``` peer0.org1.ttp.com: extends: file: docker-compose-base.yml service: peer container_name: peer0.org1.ttp.com environment: - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 # should this be ip? - CORE_PEER_LISTENADDRESS=0.0.0.0:7051 # should this be ip? - CORE_PEER_ID=peer0.org1.ttp.com - CORE_PEER_ADDRESS=peer0.org1.ttp.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.ttp.com:7051 - CORE_PEER_CHAINCODEADDRESS=peer0.org1.ttp.com:7052 # - CORE_PEER_GOSSIP_ORGLEADER=${CORE_PEER_GOSSIP_ORGLEADER_PEER0_ORG1} # - CORE_PEER_GOSSIP_USELEADERELECTION=${CORE_PEER_GOSSIP_USELEADERELECTION_PEER0_ORG1} # - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_LOCALMSPID=Org1MSP # - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/etc/hyperledger/users/Admin@org1.ttp.com/tls/ca.crt # - CORE_PEER_TLS_CLIENTCERT_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.crt # - CORE_PEER_TLS_CLIENTKEY_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.key volumes: - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/msp:/etc/hyperledger/msp - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls:/etc/hyperledger/tls # - ../crypto-config/peerOrganizations/org1.ttp.com/users:/etc/hyperledger/users - ../network-config/:/etc/hyperledger/configs - peer0.org1.ttp.com:/etc/hyperledger/production depends_on: - orderer.ttp.com - orderer1.ttp.com - orderer2.ttp.com networks: behave: aliases: - ${CORE_PEER_NETWORKID} ports: - 7051:7051 - 7053:7053 peer1.org1.ttp.com: extends: file: docker-compose-base.yml service: peer container_name: peer1.org1.ttp.com environment: - CORE_PEER_CHAINCODELISTENADDRESS=peer1.org1.ttp.com:7052 - CORE_PEER_LISTENADDRESS=peer1.org1.ttp.com:7051 - CORE_PEER_ID=peer1.org1.ttp.com - CORE_PEER_ADDRESS=peer1.org1.ttp.com:7051 # - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.ttp.com:7051 # - CORE_PEER_GOSSIP_ORGLEADER=${CORE_PEER_GOSSIP_ORGLEADER_PEER1_ORG1} # - CORE_PEER_GOSSIP_USELEADERELECTION=${CORE_PEER_GOSSIP_USELEADERELECTION_PEER1_ORG1} # - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_LOCALMSPID=Org1MSP # - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/etc/hyperledger/users/Admin@org1.ttp.com/tls/ca.crt # - CORE_PEER_TLS_CLIENTCERT_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.crt # - CORE_PEER_TLS_CLIENTKEY_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.key volumes: - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer1.org1.ttp.com/msp:/etc/hyperledger/msp - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer1.org1.ttp.com/tls:/etc/hyperledger/tls # - ../crypto-config/peerOrganizations/org1.ttp.com/users:/etc/hyperledger/users - ../network-config/:/etc/hyperledger/configs - peer1.org1.ttp.com:/etc/hyperledger/production depends_on: - orderer.ttp.com - orderer1.ttp.com - orderer2.ttp.com - peer0.org1.ttp.com networks: behave: aliases: - ${CORE_PEER_NETWORKID} ports: - 8051:7051 - 8053:7053 peer2.org1.ttp.com: extends: file: docker-compose-base.yml service: peer container_name: peer2.org1.ttp.com environment: - CORE_PEER_CHAINCODELISTENADDRESS=peer2.org1.ttp.com:7052 - CORE_PEER_LISTENADDRESS=peer2.org1.ttp.com:7051 - CORE_PEER_ID=peer2.org1.ttp.com - CORE_PEER_ADDRESS=peer2.org1.ttp.com:7051 # - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.ttp.com:7051 # - CORE_PEER_GOSSIP_ORGLEADER=${CORE_PEER_GOSSIP_ORGLEADER_PEER2_ORG1} # - CORE_PEER_GOSSIP_USELEADERELECTION=${CORE_PEER_GOSSIP_USELEADERELECTION_PEER2_ORG1} - CORE_PEER_LOCALMSPID=Org1MSP # - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/etc/hyperledger/users/Admin@org1.ttp.com/tls/ca.crt # - CORE_PEER_TLS_CLIENTCERT_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.crt # - CORE_PEER_TLS_CLIENTKEY_FILE=/etc/hyperledger/users/Admin@org1.ttp.com/tls/client.key volumes: - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer2.org1.ttp.com/msp:/etc/hyperledger/msp - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer2.org1.ttp.com/tls:/etc/hyperledger/tls # - ../crypto-config/peerOrganizations/org1.ttp.com/users:/etc/hyperledger/users - ../network-config/:/etc/hyperledger/configs - peer2.org1.ttp.com:/etc/hyperledger/production depends_on: - orderer.ttp.com - orderer1.ttp.com - orderer2.ttp.com - peer0.org1.ttp.com networks: behave: aliases: - ${CORE_PEER_NETWORKID} ports: - 9051:7051 - 9053:7053 ```

DarwinHarianto (Mon, 27 May 2019 02:32:42 GMT):
everyone mounting different volume. peer0 with peer0. O believe

DarwinHarianto (Mon, 27 May 2019 02:32:42 GMT):
everyone mounting different volume. peer0 with peer0. I believe

yeousunn (Mon, 27 May 2019 02:36:47 GMT):
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.ttp.com:7051

yeousunn (Mon, 27 May 2019 02:38:28 GMT):
I think on peer0 you have gossip set to wrong EXTERNALENDPOINT and BOOTSTRAP try changing it to ``` - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.ttp.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.ttp.com:7051 ```

DarwinHarianto (Mon, 27 May 2019 02:41:34 GMT):
wow, thanks. You are right. It solved the pki problem. So, bootstrap is referring to itself. and external referring to 1 of the peers? but channel joining still have access error. `access denied: channel [] creator org [Org1MSP]` is channel contain empty array?

yeousunn (Mon, 27 May 2019 02:44:04 GMT):
yes, bootstrap should point to itself, and externalendpoint to other peers. yeah, channel looks like empty.

juliarainbowx (Mon, 27 May 2019 03:01:48 GMT):
Has joined the channel.

juliarainbowx (Mon, 27 May 2019 03:01:50 GMT):
Hi, I'm doing Writing my first application tutorial and after command "node enrollAdmin.js" I received error "Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]". How can I possibly solve it?

juliarainbowx (Mon, 27 May 2019 03:02:54 GMT):
enrollAdmin

yeousunn (Mon, 27 May 2019 03:13:32 GMT):
check if all the services has started correctly.

yeousunn (Mon, 27 May 2019 03:13:32 GMT):
check if all the services has started correctly. Specially the CA.

yeousunn (Mon, 27 May 2019 03:13:32 GMT):
check if all the services has started correctly. Specially the CA. you can run `docker ps` to check

DarwinHarianto (Mon, 27 May 2019 03:14:29 GMT):
How do I get that channel string? I have created with `peer channel create -o orderer.ttp.com:7050 -c $CHANNEL_NAME -f ./network-config/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem` with `export CHANNEL_NAME=mychannel`

DarwinHarianto (Mon, 27 May 2019 03:15:10 GMT):
creating channel.tx with `configtxgen -profile OneOrgsChannel -outputCreateChannelTx ./network-config/channel.tx -channelID mychannel`

yeousunn (Mon, 27 May 2019 03:18:57 GMT):
do you mean before you connect to channel or after?

DarwinHarianto (Mon, 27 May 2019 03:19:58 GMT):
I am trying to join peer into channel

DarwinHarianto (Mon, 27 May 2019 03:20:26 GMT):
then, this happens `access denied: channel [] creator org [Org1MSP]`

DarwinHarianto (Mon, 27 May 2019 03:20:56 GMT):
was wondering what's the problem..

yeousunn (Mon, 27 May 2019 03:21:08 GMT):
I am not sure if you can list channels before joining. the binary gives you the ability to check the channels that the peer is joined to.

yeousunn (Mon, 27 May 2019 03:30:15 GMT):
just noticed that you didn't specify `--outputBlock` for channel genesis when creating channel. btw you can do a fetch to get the channel genesis file on peer using `peer channel fetch config $GENESIS_BLOCK -o $ORDERER_ADDRESS -c $CHANNEL_NAME `

yeousunn (Mon, 27 May 2019 03:30:15 GMT):
just noticed that you didn't specify `--outputBlock` for channel genesis when creating channel. btw you can do a fetch to get the channel genesis file on peer using `peer channel fetch config $GENESIS_BLOCK -o $ORDERER_ADDRESS -c $CHANNEL_NAME`

DarwinHarianto (Mon, 27 May 2019 03:30:53 GMT):
where should I put that?

DarwinHarianto (Mon, 27 May 2019 03:32:09 GMT):
I think there is something wrong with certificate on peers. `channel []: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority`

DarwinHarianto (Mon, 27 May 2019 03:32:30 GMT):
Using cli, I can't do any peer commands

DarwinHarianto (Mon, 27 May 2019 03:33:05 GMT):
``` services: cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.ttp.com:7051 - CORE_PEER_LISTENADDRESS=peer0.org1.ttp.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/users/Admin@org1.ttp.com/msp - CORE_PEER_TLS_CLIENTKEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/users/Admin@org1.ttp.com/tls/client.key - CORE_PEER_TLS_CLIENTROOTCAS_FILES=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/users/Admin@org1.ttp.com/tls/ca.crt - CORE_PEER_TLS_CLIENTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.ttp.com/users/Admin@org1.ttp.com/tls/client.crt - CORE_CHAINCODE_KEEPALIVE=10 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ../chaincode/:/opt/gopath/src/github.com/chaincode - $GOPATH/src/github.com/hyperledger/fabric/:/opt/gopath/src/github.com/hyperledger/fabric/ - ../crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ../network-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/network-config/ networks: - behave ```

yeousunn (Mon, 27 May 2019 03:34:19 GMT):
looks like wrong certificate. `--outputBlock /path/genesis.block` when creating channel

DarwinHarianto (Mon, 27 May 2019 03:37:04 GMT):
like this? `peer channel create -o orderer.ttp.com:7050 -c $CHANNEL_NAME -f ./network-config/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem --outputBlock ./genesis.block`

yeousunn (Mon, 27 May 2019 03:37:42 GMT):
yeah, that will give you genesis.block file

DarwinHarianto (Mon, 27 May 2019 03:38:13 GMT):
hmm, I don't understand why my certificate is wrong again

DarwinHarianto (Mon, 27 May 2019 03:39:33 GMT):
``` - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/tls/ca.crt ``` and ``` - ../crypto-config/peerOrganizations/org1.ttp.com/peers/peer0.org1.ttp.com/tls:/etc/hyperledger/tls ``` for peer0.org1

yeousunn (Mon, 27 May 2019 03:40:09 GMT):
the cli config looks fine to me.

DarwinHarianto (Mon, 27 May 2019 03:40:52 GMT):
that is my docker compose for peer

yeousunn (Mon, 27 May 2019 03:46:32 GMT):
are you running the create channel on cli? are you able to create the channel or error on that too?

DarwinHarianto (Mon, 27 May 2019 03:48:06 GMT):
yes, I run create channel on cli.

DarwinHarianto (Mon, 27 May 2019 03:48:35 GMT):
Somehow creating makes an error it was ok, but after I make some changes, it becomes an error now

DarwinHarianto (Mon, 27 May 2019 03:48:35 GMT):
creating channel is ok, but when I tried to manipulate peer, error appear

yeousunn (Mon, 27 May 2019 03:52:34 GMT):
I'll suggest to recreate channel.tx and genesis again using configtxgen, and try again.

poojaKamat (Mon, 27 May 2019 04:04:24 GMT):
I have configured an orderer and peer to expose /metrics endpoint for Prometheus , I could successfully get the metrics , however there are some questions regarding metrics: Does the metrics give average time taken by a transaction to complete endorsements and average time taken for a transaction to be ordered in a block and confirmed by committing peer? Can we reset the counter and get metrics from a point where will start invoking transactions?

pravn1729 (Mon, 27 May 2019 04:22:05 GMT):
Hi Everyone, Is it okay to write complex business logic on Fabric smart contract. Do we need to change any parameters to support this.. executiontimeout etc

DarwinHarianto (Mon, 27 May 2019 04:41:53 GMT):
tried to create it all again. still the same access problem

DarwinHarianto (Mon, 27 May 2019 04:42:24 GMT):
``` 2019-05-27 04:41:19.881 UTC [protoutils] ValidateProposalMessage -> WARN 020 channel []: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 2019-05-27 04:41:19.881 UTC [comm.grpc.server] 1 -> INFO 021 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.9:40454 error="access denied: channel [] creator org [Org1MSP]" grpc.code=Unknown grpc.call_duration=1.2906ms ```

yeousunn (Mon, 27 May 2019 05:15:46 GMT):
not sure what's wrong, maybe double check the cert file paths are correct for all peer and orderer.

Hoonki (Mon, 27 May 2019 06:23:25 GMT):
Hello, i want to configure some organization in the channel as read-only permission. how can i do this?

tejateja (Mon, 27 May 2019 06:54:18 GMT):
can u please help me with this error. Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]

DarwinHarianto (Mon, 27 May 2019 07:02:09 GMT):
I quit on it haha. delete all the configuration, remaking it from tutorial

DarwinHarianto (Mon, 27 May 2019 07:03:06 GMT):
check your localmspid configuration. I think there is a problem on certificate or msp

yeousunn (Mon, 27 May 2019 07:03:20 GMT):
:laughing: been doing that myself, starting from scratch when I get stuck. however this time I am not able to get it to work.

DarwinHarianto (Mon, 27 May 2019 07:07:23 GMT):
I would help if I could. I have no experience on doing it directly without docker, sorry

Henretter (Mon, 27 May 2019 07:09:25 GMT):
Has joined the channel.

yeousunn (Mon, 27 May 2019 07:09:31 GMT):
no problem :thumbsup: . All the examples used cryptogen which I don't want to use as it's for test purpose only. Been trying to work with binaries directly. I am able to start network when TLS is disabled. not sure why I get error when enabling TLS.

Henretter (Mon, 27 May 2019 07:12:55 GMT):
@rohitsethi Error: no valid endorsements found . Do you have the file ?

tejateja (Mon, 27 May 2019 07:22:17 GMT):
how to check localmspid configurations

DarwinHarianto (Mon, 27 May 2019 07:40:49 GMT):
it is located at docker-compose file

tejateja (Mon, 27 May 2019 07:54:11 GMT):
Hi we moved docker containers from A host to B host. The way we used rsync to move the docker containers. rsync completed successfully and containers also running successfully in b host. We copied .composer file from A to B. business network cards are also showing in playground. But when we are connecting to networks this "Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]" was showing. We checked local mspid configurations also.

JorgeNavarro (Mon, 27 May 2019 07:55:53 GMT):
Hello, what is the function of channel.addEventHub()? Im using java sdk.

yeousunn (Mon, 27 May 2019 08:10:06 GMT):
Hi, I think you'll get the answer in fabric sdk java channel faster. #fabric-sdk-java

Henretter (Mon, 27 May 2019 08:13:33 GMT):
你也在用java sdk ?

Henretter (Mon, 27 May 2019 08:14:32 GMT):
Are u Chinese ?

Henretter (Mon, 27 May 2019 08:14:43 GMT):
@JorgeNavarro

Henretter (Mon, 27 May 2019 08:16:38 GMT):
I am using too

DarwinHarianto (Mon, 27 May 2019 08:20:00 GMT):
I tried to use node sdk. defined connection profile. ``` Use network channel: mychannel. 2019-05-27T08:16:08.089Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T08:16:08.089Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T08:16:11.097Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 2019-05-27T08:16:11.098Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 2019-05-27T08:16:11.098Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 Error processing transaction. Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 ``` what should I do with this error? this is my java code ``` 'use strict'; const fs = require('fs'); const yaml = require('js-yaml'); const { FileSystemWallet, Gateway } = require('fabric-network'); const args = require('yargs').argv; const wallet = new FileSystemWallet('identity/user/isabella/wallet'); async function main() { try { const userName = 'User1@org1.ttp.com'; let connectionProfile = yaml.safeLoad(fs.readFileSync('networkConnection.yaml', 'utf8')); let connectionOptions = { identity: userName, wallet: wallet, discovery: { enabled:false, asLocalhost: true } }; await gateway.connect(connectionProfile, connectionOptions) const network = await gateway.getNetwork('mychannel') const contract = network.getContract('mycc') const issueResponse = await contract.submitTransaction('get', args.key); } catch (error) { console.log(`Error processing transaction. ${error}`); console.log(error.stack); } finally { // Disconnect from the gateway console.log('Disconnect from Fabric gateway.') gateway.disconnect(); } } main().then(() => { console.log('Set program complete.'); }).catch((e) => { console.log('Set program exception.'); console.log(e); console.log(e.stack); process.exit(-1); }); ```

tejateja (Mon, 27 May 2019 08:21:10 GMT):
1

Henretter (Mon, 27 May 2019 08:22:40 GMT):
your channel initialized fail

Henretter (Mon, 27 May 2019 08:23:04 GMT):
Is there any peer join the channel ?

DarwinHarianto (Mon, 27 May 2019 08:23:11 GMT):
yes, peer0

Henretter (Mon, 27 May 2019 08:24:12 GMT):
can u ping another peer on port 8051

DarwinHarianto (Mon, 27 May 2019 08:24:19 GMT):
``` 2019-05-27 08:24:05.364 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2019-05-27 08:24:05.364 UTC [msp.identity] Sign -> DEBU 03f Sign: plaintext: 0AA8070A5C08031A0C08A5BDAEE70510...631A0D0A0B4765744368616E6E656C73 2019-05-27 08:24:05.365 UTC [msp.identity] Sign -> DEBU 040 Sign: digest: D59EF96DDF856D17FB518986AE57E80CCC6F49B8D3054D197FB884C2A7DE9967 Channels peers has joined: mychannel ```

DarwinHarianto (Mon, 27 May 2019 08:24:29 GMT):
how do I do that?

Henretter (Mon, 27 May 2019 08:25:22 GMT):
What operation Do u want to now

Henretter (Mon, 27 May 2019 08:25:38 GMT):
Query?

DarwinHarianto (Mon, 27 May 2019 08:26:19 GMT):
invoke transaction

Henretter (Mon, 27 May 2019 08:26:42 GMT):
peer chaincode list --instantiated -C mychannel

Henretter (Mon, 27 May 2019 08:26:47 GMT):
have a try

DarwinHarianto (Mon, 27 May 2019 08:27:08 GMT):
``` 2019-05-27 08:26:56.960 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2019-05-27 08:26:56.960 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer1.org1.ttp.com:8051 0 }] 2019-05-27 08:26:56.960 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2019-05-27 08:26:56.960 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc00049b400, CONNECTING 2019-05-27 08:26:56.967 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc00049b400, READY 2019-05-27 08:26:56.974 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2019-05-27 08:26:56.974 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2019-05-27 08:26:56.974 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer1.org1.ttp.com:8051 0 }] 2019-05-27 08:26:56.974 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2019-05-27 08:26:56.974 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc000433d90, CONNECTING 2019-05-27 08:26:56.984 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc000433d90, READY 2019-05-27 08:26:56.991 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-05-27 08:26:56.992 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AB3070A6708031A0C08D0BEAEE70510...0F0A0D676574636861696E636F646573 2019-05-27 08:26:56.994 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 13754C7097574269408D7B427E4B2FD4E1B4349DC4FFC219FF14C15D916AF2C4 Get instantiated chaincodes on channel mychannel: Name: mycc, Version: 1.0, Path: github.com/chaincode/, Escc: escc, Vscc: vscc ```

Henretter (Mon, 27 May 2019 08:27:37 GMT):
Do u endorser?

DarwinHarianto (Mon, 27 May 2019 08:27:46 GMT):
nope

Henretter (Mon, 27 May 2019 08:28:01 GMT):
why not?

DarwinHarianto (Mon, 27 May 2019 08:28:08 GMT):
``` docker exec -it cli peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/ peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C $mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' ```

DarwinHarianto (Mon, 27 May 2019 08:28:49 GMT):
ow, should I endorse it? Using AND{org1.msp}?

Henretter (Mon, 27 May 2019 08:29:14 GMT):
have a try for Or

DarwinHarianto (Mon, 27 May 2019 08:32:25 GMT):
like this? ``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C $mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' -P "OR ('Org1MSP.peer')" ``` it gives me `Error: must supply value for chaincode name parameter`

Henretter (Mon, 27 May 2019 08:33:19 GMT):
-c '{"Args": ["init","a", "100"]}'

DarwinHarianto (Mon, 27 May 2019 08:33:58 GMT):
still the same

DarwinHarianto (Mon, 27 May 2019 08:34:13 GMT):
``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C $mychannel -n mycc -v 1.0 -c '{"Args": ["init", "a", "100"]}' -P "OR ('Org1MSP.peer')" ```

Henretter (Mon, 27 May 2019 08:34:24 GMT):
Can I see your chainocde code ?

Henretter (Mon, 27 May 2019 08:34:56 GMT):
Init that code

DarwinHarianto (Mon, 27 May 2019 08:35:21 GMT):

DarwinHarianto - Mon May 27 2019 17:35:19 GMT+0900 (JST).txt

DarwinHarianto (Mon, 27 May 2019 08:36:16 GMT):
supposed to be ``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C $mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' -P "OR ('Org1MSP.peer','Org1MSP.peer')" ```

mlucc (Mon, 27 May 2019 08:38:44 GMT):
Hello. When I instantiate the chaincode, I obtain the following error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1`

Henretter (Mon, 27 May 2019 08:38:52 GMT):
the params is right

mlucc (Mon, 27 May 2019 08:38:53 GMT):
has anyone seen this before?

DarwinHarianto (Mon, 27 May 2019 08:39:17 GMT):
have you seen the docker logs at orderer?

DarwinHarianto (Mon, 27 May 2019 08:39:17 GMT):
have you seen the docker logs at orderer? or maybe peer

DarwinHarianto (Mon, 27 May 2019 08:40:15 GMT):
the one with init? or the one with only a 100?

Henretter (Mon, 27 May 2019 08:40:26 GMT):

Clipboard - May 27, 2019 4:40 PM

mlucc (Mon, 27 May 2019 08:40:34 GMT):
yes, but I don't know what's happening: 2019-05-27 08:36:15.128 UTC [orderer.commmon.multichannel] newChain -> INFO 00a Created and starting new chain examplechannel 2019-05-27 08:36:15.140 UTC [common.deliver] Handle -> WARN 00b Error reading from 172.21.0.18:49876: rpc error: code = Canceled desc = context canceled 2019-05-27 08:36:15.140 UTC [comm.grpc.server] 1 -> INFO 00c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.21.0.18:49876 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=64.866864ms 2019-05-27 08:37:28.053 UTC [orderer.common.broadcast] Handle -> WARN 00d Error reading from 172.21.0.18:49964: rpc error: code = Canceled desc = context canceled 2019-05-27 08:37:28.053 UTC [comm.grpc.server] 1 -> INFO 00e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.21.0.18:49964 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=25.850545688s

Henretter (Mon, 27 May 2019 08:40:38 GMT):
no

Henretter (Mon, 27 May 2019 08:40:45 GMT):
without init

DarwinHarianto (Mon, 27 May 2019 08:40:56 GMT):
so something is wrong with P?

Henretter (Mon, 27 May 2019 08:41:17 GMT):
Do u have any logs ?

Henretter (Mon, 27 May 2019 08:41:23 GMT):
@DarwinHarianto

Henretter (Mon, 27 May 2019 08:43:13 GMT):
docker ps

DarwinHarianto (Mon, 27 May 2019 08:43:23 GMT):
logs from orderer and peer, nothing out of ordinary ``` 019-05-27 08:31:04.696 UTC [gossip.state] NewGossipStateProvider -> INFO 02a Updating metadata information, current ledger sequence is at = 0, next expected block is = 1 2019-05-27 08:31:04.698 UTC [sccapi] deploySysCC -> INFO 02b system chaincode lscc/mychannel(github.com/hyperledger/fabric/core/scc/lscc) deployed 2019-05-27 08:31:04.698 UTC [cscc] Init -> INFO 02c Init CSCC 2019-05-27 08:31:04.699 UTC [sccapi] deploySysCC -> INFO 02d system chaincode cscc/mychannel(github.com/hyperledger/fabric/core/scc/cscc) deployed 2019-05-27 08:31:04.699 UTC [qscc] Init -> INFO 02e Init QSCC 2019-05-27 08:31:04.699 UTC [sccapi] deploySysCC -> INFO 02f system chaincode qscc/mychannel(github.com/hyperledger/fabric/core/scc/qscc) deployed 2019-05-27 08:31:04.700 UTC [sccapi] deploySysCC -> INFO 030 system chaincode (+lifecycle,github.com/hyperledger/fabric/core/chaincode/lifecycle) disabled 2019-05-27 08:31:04.700 UTC [endorser] callChaincode -> INFO 031 [][ccdafa7d] Exit chaincode: name:"cscc" (48ms) 2019-05-27 08:31:04.700 UTC [comm.grpc.server] 1 -> INFO 032 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:49130 grpc.code=OK grpc.call_duration=49.9459ms 2019-05-27 08:31:10.702 UTC [gossip.election] beLeader -> INFO 033 103367f54aecc05cf1e6ab655058f577ca8a9d5ce03d90325eae0c43ffdae1d8 : Becoming a leader 2019-05-27 08:31:10.702 UTC [gossip.service] func1 -> INFO 034 Elected as a leader, starting delivery service for channel mychannel 2019-05-27 08:31:10.720 UTC [gossip.privdata] StoreBlock -> INFO 035 [mychannel] Received block [1] from buffer 2019-05-27 08:31:10.730 UTC [gossip.gossip] JoinChan -> INFO 036 Joining gossip network of channel mychannel with 1 organizations 2019-05-27 08:31:10.730 UTC [gossip.gossip] learnAnchorPeers -> INFO 037 Learning about the configured anchor peers of Org1MSP for channel mychannel : [{peer0.org1.ttp.com 7051}] 2019-05-27 08:31:10.758 UTC [comm.grpc.server] 1 -> INFO 038 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=172.24.0.2:53382 grpc.peer_subject="CN=peer0.org1.ttp.com,L=San Francisco,ST=California,C=US" error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=43.2104526s 2019-05-27 08:31:10.760 UTC [committer.txvalidator] Validate -> INFO 039 [mychannel] Validated block [1] in 39ms 2019-05-27 08:31:10.776 UTC [kvledger] CommitWithPvtData -> INFO 03a [mychannel] Committed block [1] with 1 transaction(s) in 14ms (state_validation=1ms block_commit=8ms state_commit=2ms) 2019-05-27 08:31:11.551 UTC [comm.grpc.server] 1 -> INFO 03b unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2019-05-27T08:31:13.55Z grpc.peer_address=172.24.0.2:53404 grpc.peer_subject="CN=peer0.org1.ttp.com,L=San Francisco,ST=California,C=US" grpc.code=OK grpc.call_duration=664.3µs ``` above is peer below is orderer ``` 2019-05-27 08:30:45.779 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 058 Writing block [1] (Raft index: 7) to ledger channel=mychannel node=1 2019-05-27 08:30:45.780 UTC [orderer.common.broadcast] Handle -> WARN 059 Error reading from 172.24.0.10:48578: rpc error: code = Canceled desc = context canceled 2019-05-27 08:30:45.785 UTC [comm.grpc.server] 1 -> INFO 05b streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.24.0.10:48578 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=57.9312ms 2019-05-27 08:31:43.836 UTC [comm.grpc.server] 1 -> INFO 05c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.24.0.10:48602 grpc.code=OK grpc.call_duration=569µs 2019-05-27 08:32:46.800 UTC [comm.grpc.server] 1 -> INFO 05d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.24.0.10:48608 grpc.code=OK grpc.call_duration=157.9µs 2019-05-27 08:33:35.872 UTC [comm.grpc.server] 1 -> INFO 05e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.24.0.10:48620 grpc.code=OK grpc.call_duration=259.9µs ```

Henretter (Mon, 27 May 2019 08:43:44 GMT):
have a look

Henretter (Mon, 27 May 2019 08:44:04 GMT):

Clipboard - May 27, 2019 4:44 PM

Henretter (Mon, 27 May 2019 08:44:50 GMT):
U should check your network

DarwinHarianto (Mon, 27 May 2019 08:45:16 GMT):
wait, what...... I was using the same component earlier, and I could start it...

Henretter (Mon, 27 May 2019 08:47:26 GMT):
Are there many Chinese ?

Henretter (Mon, 27 May 2019 08:48:03 GMT):
@DarwinHarianto

DarwinHarianto (Mon, 27 May 2019 08:51:06 GMT):
I don't know, but I think there are

Henretter (Mon, 27 May 2019 08:51:25 GMT):
yeah

Henretter (Mon, 27 May 2019 08:51:29 GMT):
I am.

Henretter (Mon, 27 May 2019 08:52:16 GMT):
Can u read Chinese?

mlucc (Mon, 27 May 2019 08:52:22 GMT):
I have no idea what's going on

DarwinHarianto (Mon, 27 May 2019 08:52:44 GMT):
not much, I can somehow read japanese

DarwinHarianto (Mon, 27 May 2019 08:53:06 GMT):
I fixed the error, it was $ sign. Now I am facing ``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' -P "OR ('Org1MSP.peer')" ```

DarwinHarianto (Mon, 27 May 2019 08:53:18 GMT):
``` 2019-05-27 08:52:27.340 UTC [msp.identity] Sign -> DEBU 04d Sign: digest: 219B65D0D26B3B0A831AF9095AA69A105C4FC147CC27858A430B7B93ABDACD96 Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] ```

DarwinHarianto (Mon, 27 May 2019 08:53:48 GMT):
I know someone who can read chinese, why?

Henretter (Mon, 27 May 2019 08:53:57 GMT):
have a look about logs

Henretter (Mon, 27 May 2019 08:54:11 GMT):
not need

Henretter (Mon, 27 May 2019 08:54:19 GMT):
I am poor in English

Henretter (Mon, 27 May 2019 08:54:56 GMT):
So three will appear some wrong in my word

Henretter (Mon, 27 May 2019 08:55:03 GMT):
there

DarwinHarianto (Mon, 27 May 2019 08:55:11 GMT):
``` 2019-05-27 08:31:19.020 UTC [lscc] executeInstall -> INFO 027 Installed Chaincode [mycc] Version [1.0] to peer 2019-05-27 08:31:19.021 UTC [endorser] callChaincode -> INFO 028 [][c40b0a48] Exit chaincode: name:"lscc" (1ms) 2019-05-27 08:31:19.021 UTC [comm.grpc.server] 1 -> INFO 029 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:56972 grpc.code=OK grpc.call_duration=2.9026ms 2019-05-27 08:50:06.634 UTC [endorser] callChaincode -> INFO 02a [][9ec942e9] Entry chaincode: name:"lscc" 2019-05-27 08:50:06.635 UTC [endorser] callChaincode -> INFO 02b [][9ec942e9] Exit chaincode: name:"lscc" (1ms) 2019-05-27 08:50:06.635 UTC [endorser] ProcessProposal -> ERRO 02c [][9ec942e9] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 9ec942e9043f0faae3989778cfd445d36b3cff7134f5f2419039279db468a05c 2019-05-27 08:50:06.636 UTC [comm.grpc.server] 1 -> INFO 02d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:57054 grpc.code=OK grpc.call_duration=2.2413ms 2019-05-27 08:52:02.612 UTC [protoutils] ValidateProposalMessage -> WARN 02e channel [mychannel]: MSP error: channel doesn't exist 2019-05-27 08:52:02.613 UTC [comm.grpc.server] 1 -> INFO 02f unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:57064 error="access denied: channel [mychannel] creator org [Org1MSP]" grpc.code=Unknown grpc.call_duration=1.6405ms 2019-05-27 08:52:16.473 UTC [protoutils] ValidateProposalMessage -> WARN 030 channel [mychannel]: MSP error: channel doesn't exist 2019-05-27 08:52:16.474 UTC [comm.grpc.server] 1 -> INFO 031 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:57070 error="access denied: channel [mychannel] creator org [Org1MSP]" grpc.code=Unknown grpc.call_duration=1.2651ms 2019-05-27 08:52:27.342 UTC [protoutils] ValidateProposalMessage -> WARN 032 channel [mychannel]: MSP error: channel doesn't exist 2019-05-27 08:52:27.342 UTC [comm.grpc.server] 1 -> INFO 033 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.24.0.10:57076 error="access denied: channel [mychannel] creator org [Org1MSP]" grpc.code=Unknown grpc.call_duration=730.8µs ``` peer logs said channel doesn't exist

Henretter (Mon, 27 May 2019 08:55:31 GMT):
peer channel list

Henretter (Mon, 27 May 2019 08:55:34 GMT):
have a try

Henretter (Mon, 27 May 2019 08:56:03 GMT):
Where au from by the way?

DarwinHarianto (Mon, 27 May 2019 08:56:31 GMT):
omg, I thought I already joined them hahahha

DarwinHarianto (Mon, 27 May 2019 08:56:39 GMT):
indonesia native, live in japan

Henretter (Mon, 27 May 2019 08:57:24 GMT):
great

DarwinHarianto (Mon, 27 May 2019 08:58:27 GMT):
``` peer chaincode invoke -o orderer.ttp.com:7050 -n mycc -c '{"Args":["get", "a"]}' -C mychannel --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem ``` doing that, came perfectly. but my js is still stuck sadly haaha

DarwinHarianto (Mon, 27 May 2019 08:58:43 GMT):
``` Connect to Fabric gateway. Use network channel: mychannel. 2019-05-27T08:57:19.095Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T08:57:19.096Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T08:57:22.106Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 2019-05-27T08:57:22.106Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 2019-05-27T08:57:22.106Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 Error processing transaction. Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 at Network._initializeInternalChannel (/Users/darwinharianto/bunkerToyotatsusho/ttpFabric2/javascript/node_modules/fabric-network/lib/network.js:86:12) at at process._tickCallback (internal/process/next_tick.js:189:7) Disconnect from Fabric gateway. Set program complete. ```

Henretter (Mon, 27 May 2019 08:59:41 GMT):
I had not use the node sdk yet

Henretter (Mon, 27 May 2019 08:59:52 GMT):
I am using java sdk

DarwinHarianto (Mon, 27 May 2019 09:00:24 GMT):
did u turn on clientauth?

Henretter (Mon, 27 May 2019 09:00:57 GMT):
yes

Henretter (Mon, 27 May 2019 09:01:39 GMT):
7051

Henretter (Mon, 27 May 2019 09:01:44 GMT):
7052,7053

Henretter (Mon, 27 May 2019 09:01:53 GMT):
orderer 8050

Henretter (Mon, 27 May 2019 09:02:22 GMT):
orderer 7050

Henretter (Mon, 27 May 2019 09:03:48 GMT):
@mlucc what happen?

DarwinHarianto (Mon, 27 May 2019 09:05:23 GMT):
can I see how you set clientauth? what variable is needed for both orderer and peer

Henretter (Mon, 27 May 2019 09:06:20 GMT):
Do u mean the CA ?

Henretter (Mon, 27 May 2019 09:07:30 GMT):
I mistakes for client listen port

mlucc (Mon, 27 May 2019 09:08:49 GMT):
I'm trying to instantiate a chaincode in my network and the error shown above appears

mlucc (Mon, 27 May 2019 09:09:15 GMT):
it's weird because it was working on friday and today I can't instantiate (I didn't work this weekend)

Henretter (Mon, 27 May 2019 09:09:16 GMT):
Let me have a look

mlucc (Mon, 27 May 2019 09:09:24 GMT):
thanks

mlucc (Mon, 27 May 2019 09:09:37 GMT):
the logs I've sent you are the orderer's logs

mlucc (Mon, 27 May 2019 09:09:56 GMT):
the peer where the chaincode is instantiated does not show any error or warning

Henretter (Mon, 27 May 2019 09:09:56 GMT):
ok

Henretter (Mon, 27 May 2019 09:10:49 GMT):
How many orgs do u have ?

Henretter (Mon, 27 May 2019 09:11:53 GMT):
docker ps

Henretter (Mon, 27 May 2019 09:12:12 GMT):
I want to see

mlucc (Mon, 27 May 2019 09:12:47 GMT):
1

Henretter (Mon, 27 May 2019 09:13:06 GMT):
one org one peer ?

mlucc (Mon, 27 May 2019 09:13:28 GMT):

Clipboard - May 27, 2019 11:17 AM

mlucc (Mon, 27 May 2019 09:13:58 GMT):
Three orgs with 2 peers per org and the orderer

Henretter (Mon, 27 May 2019 09:15:49 GMT):
I only see one org six peer

Henretter (Mon, 27 May 2019 09:15:59 GMT):
right ?

Henretter (Mon, 27 May 2019 09:16:36 GMT):
oh no

Henretter (Mon, 27 May 2019 09:16:46 GMT):
yes u are right

Henretter (Mon, 27 May 2019 09:16:54 GMT):
one orderer

Henretter (Mon, 27 May 2019 09:18:48 GMT):
3 peer org, every org have 2 peer

Abrara (Mon, 27 May 2019 09:19:23 GMT):
Hello, I'm having trouble grasping and explaining how a channel and associated orgs are physically represented. From what I understood channel conf is stored in the ledger, and a channel is just some orgs (represented by msps stored in... I'd say their CA machine?) ? So then the channel only exists if there is at least one peer to physically host the ledger?

mlucc (Mon, 27 May 2019 09:19:36 GMT):
I'm trying to instantiate on peer0.orga

mlucc (Mon, 27 May 2019 09:19:47 GMT):
all of them join the same channel succesfully

Henretter (Mon, 27 May 2019 09:21:03 GMT):
Do u have installed the chaincode ?

Henretter (Mon, 27 May 2019 09:21:06 GMT):
@mlucc

mlucc (Mon, 27 May 2019 09:21:19 GMT):
yes, in all peers

Henretter (Mon, 27 May 2019 09:22:05 GMT):
peer chaincode list --installed

Henretter (Mon, 27 May 2019 09:22:10 GMT):
u can have a try

Henretter (Mon, 27 May 2019 09:22:38 GMT):
But u should start a cli container before

mlucc (Mon, 27 May 2019 09:22:58 GMT):
yes I've got it

Henretter (Mon, 27 May 2019 09:23:20 GMT):
Ok

mlucc (Mon, 27 May 2019 09:23:46 GMT):
this is the script I use to instantiate `echo echo "#########################################################################" echo "############# Instantiate chaincode_example02 - orga peer ###############" echo "#########################################################################" ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ORDERER=orderer.example.com:7050 CORE_PEER_TLS_ENABLED=true CHAINCODENAME=chaincode_example02 VERSION=1.0 CORE_PEER_LOCALMSPID="orgaMSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/orga.example.com/peers/peer0.orga.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/orga.example.com/users/Admin@orga.example.com/msp CORE_PEER_ADDRESS=peer0.orga.example.com:7051 CHANNEL_NAME=examplechannel peer chaincode instantiate -o $ORDERER --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n $CHAINCODENAME -l node -v $VERSION -c '{"Args":["init","A","1","B","2"]}' -P "OR ('orgaMSP.member','orgbMSP.member')" `

Henretter (Mon, 27 May 2019 09:24:43 GMT):
Which version are u useing on fabric ?

mlucc (Mon, 27 May 2019 09:24:59 GMT):
1.4.1

Henretter (Mon, 27 May 2019 09:25:15 GMT):

Clipboard - May 27, 2019 5:25 PM

Henretter (Mon, 27 May 2019 09:25:31 GMT):
-P "OR ('orgaMSP.peer','orgbMSP.peer')"

mlucc (Mon, 27 May 2019 09:25:40 GMT):
I know orgcMSP is missing

mlucc (Mon, 27 May 2019 09:25:50 GMT):
but shouldn't be a problem right?

Henretter (Mon, 27 May 2019 09:26:25 GMT):
I do't know what the different with them

Henretter (Mon, 27 May 2019 09:26:44 GMT):
But I using it for peer not member

mlucc (Mon, 27 May 2019 09:28:17 GMT):
with .peer does not work neither

mlucc (Mon, 27 May 2019 09:28:19 GMT):
just checked

Henretter (Mon, 27 May 2019 09:30:04 GMT):
Which logs belong to u

mlucc (Mon, 27 May 2019 09:30:29 GMT):
what do you meen?

mlucc (Mon, 27 May 2019 09:30:29 GMT):
what do you mean?

Henretter (Mon, 27 May 2019 09:31:24 GMT):

Clipboard - May 27, 2019 5:32 PM

Henretter (Mon, 27 May 2019 09:31:32 GMT):
Is it?

mlucc (Mon, 27 May 2019 09:32:19 GMT):
yes

mlucc (Mon, 27 May 2019 09:32:23 GMT):
this is mine

mlucc (Mon, 27 May 2019 09:32:40 GMT):
orderer's logs

Henretter (Mon, 27 May 2019 09:33:21 GMT):
not enough

Henretter (Mon, 27 May 2019 09:33:54 GMT):
I should see more err logs

mlucc (Mon, 27 May 2019 09:38:10 GMT):

mlucc - Mon May 27 2019 11:42:20 GMT+0200 (hora de verano de Europa central).txt

mlucc (Mon, 27 May 2019 09:38:26 GMT):
this is all I've in docker logs for the orderer

Henretter (Mon, 27 May 2019 09:43:09 GMT):
Have a look logs for peer

akoenig (Mon, 27 May 2019 09:43:29 GMT):
Hi, regarding to the new feature in 2.0: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#migrate-to-the-new-fabric-lifecycle

mlucc (Mon, 27 May 2019 09:44:09 GMT):
yes, I've done it, but there's no error or warning message in peer's logs. STRANGE, isn't it?

akoenig (Mon, 27 May 2019 09:45:04 GMT):
so when we want to use the new feature, we have to create a new channel? What will happen to the blocks in the old channel? This seems maybe working for a POC or something... but how should this work in a production application?

akoenig (Mon, 27 May 2019 09:45:41 GMT):
switching all to the new channel and let the old one running? .. No upgrade seems a bit strange, sorry...

akoenig (Mon, 27 May 2019 09:45:41 GMT):
switching all to the new channel and let the old one running? No upgrade seems a bit strange. Or will there be an upgrade from 1.4 release to 2.0 release?

Henretter (Mon, 27 May 2019 09:46:16 GMT):
sorry,wait...

Henretter (Mon, 27 May 2019 09:56:55 GMT):
So

mlucc (Mon, 27 May 2019 09:57:14 GMT):
I don't know what to look now

Henretter (Mon, 27 May 2019 09:57:39 GMT):
Can u sure that the network is ok ?

Henretter (Mon, 27 May 2019 09:57:49 GMT):
before instantiated chaincode

mlucc (Mon, 27 May 2019 09:58:21 GMT):
how can I know?

mlucc (Mon, 27 May 2019 09:58:34 GMT):
pinging among dockers?

Henretter (Mon, 27 May 2019 09:58:54 GMT):
There is no err in logs

Henretter (Mon, 27 May 2019 09:59:00 GMT):
orderer cli peer

Henretter (Mon, 27 May 2019 09:59:05 GMT):
couchdb

Henretter (Mon, 27 May 2019 09:59:17 GMT):
ca

Henretter (Mon, 27 May 2019 10:02:38 GMT):
It's time for dinner

Henretter (Mon, 27 May 2019 10:02:44 GMT):
Wait a moment.

mlucc (Mon, 27 May 2019 10:03:52 GMT):
Oh! I've not checked couchdb. Let me check.

mlucc (Mon, 27 May 2019 10:04:01 GMT):
Ok, no prob

Emiel 1 (Mon, 27 May 2019 10:10:25 GMT):
Hey i had some questions about creating chaincode

Emiel 1 (Mon, 27 May 2019 10:10:54 GMT):
Looking through the javascript chaincode api i noticed there are 2 ways of creating chaincode

Emiel 1 (Mon, 27 May 2019 10:11:02 GMT):
via contracts and via shim

Emiel 1 (Mon, 27 May 2019 10:11:27 GMT):
however i'm a bit confused as to where contracts or the shim need to be used

Emiel 1 (Mon, 27 May 2019 10:11:27 GMT):
however i'm a bit confused as to where contracts or the shim need to be used. Are they substitutions for each other or do they act in different ways/have different use cases?

Emiel 1 (Mon, 27 May 2019 10:11:46 GMT):
any help would be sincerely appreciated

ahmad-raza (Mon, 27 May 2019 10:19:36 GMT):
hi all, can anyone help me in enabling identity removal of fabric-ca server? As when i try it gives error "Identity removal is disabled" and 2nd: what is meaning of revoking the certificate? because i revoked a certificate but i can still use it to invoke chaincode?

Jelle.Diet (Mon, 27 May 2019 10:21:36 GMT):
The node chaincode api has a newer programming model (contracts api) , while the shim api is similar to the java and go chaincode. They both have the functionality so you can choose the one you are most comfortable with and use that. In the future java and go will probably updated to also use the contracts api instead

Jelle.Diet (Mon, 27 May 2019 10:21:36 GMT):
The node chaincode api has a newer programming model (contracts api) , while the shim api is similar to the java and go chaincode. They both have the same functionality so you can choose the one you are most comfortable with and use that. In the future java and go will probably updated to also use the contracts api instead

Emiel 1 (Mon, 27 May 2019 10:23:25 GMT):
I see, what about the init and invoke function of the shim api?

Emiel 1 (Mon, 27 May 2019 10:23:39 GMT):
is there an equivalent for the contract api?

Jelle.Diet (Mon, 27 May 2019 10:25:47 GMT):
contract api calls your functions directly without the need for going through invoke first, while the init can be replaced with a constructor

Emiel 1 (Mon, 27 May 2019 10:26:16 GMT):
ah i see, that explains a lot

Emiel 1 (Mon, 27 May 2019 10:26:40 GMT):
so i can use a contracts constructor as a replacement for the init function, meaning that will be called for each initiation of the contract?

Jelle.Diet (Mon, 27 May 2019 10:27:52 GMT):
yes, or you can write your own init function and call it when instantiating the contract

Emiel 1 (Mon, 27 May 2019 10:27:57 GMT):
Thanks a lot for the info btw, i've been looking all over the internet to find some explanation with minimal succes

Emiel 1 (Mon, 27 May 2019 10:28:05 GMT):
awesome thanks a bunch

Jelle.Diet (Mon, 27 May 2019 10:28:23 GMT):
there's some examples here

Jelle.Diet (Mon, 27 May 2019 10:28:24 GMT):
https://fabric-shim.github.io/release-1.4/index.html

Emiel 1 (Mon, 27 May 2019 10:28:58 GMT):
yea i found that, but it doesnt really give any explanation as to why there is both the shim and contract api

Emiel 1 (Mon, 27 May 2019 10:29:18 GMT):
i was guessing the shim was some sort of older version

Emiel 1 (Mon, 27 May 2019 10:29:18 GMT):
i was guessing the shim was some sort of older version, the changelog for 1.4 also says so

mlucc (Mon, 27 May 2019 10:36:46 GMT):
@Henretter I see this in couchorga0

mlucc (Mon, 27 May 2019 10:36:47 GMT):
[notice] 2019-05-27T10:34:34.224886Z nonode@nohost <0.5463.0> 38c0ab3b3a couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_ 404 ok 1 [notice] 2019-05-27T10:34:34.236378Z nonode@nohost <0.5463.0> 34e46be159 couchdborga0:5984 172.21.0.3 undefined PUT /examplechannel_ 201 ok 11 [notice] 2019-05-27T10:34:34.282682Z nonode@nohost <0.5463.0> 04cc7ea845 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_ 200 ok 4 [notice] 2019-05-27T10:34:34.304037Z nonode@nohost <0.5463.0> 364ac530f6 couchdborga0:5984 172.21.0.3 undefined POST /examplechannel_/_all_docs?include_docs=true 200 ok 21 [notice] 2019-05-27T10:34:34.316754Z nonode@nohost <0.5463.0> 1da56adf17 couchdborga0:5984 172.21.0.3 undefined POST /examplechannel_/_bulk_docs 201 ok 12 [notice] 2019-05-27T10:34:34.318853Z nonode@nohost <0.5463.0> 86b321ee00 couchdborga0:5984 172.21.0.3 undefined POST /examplechannel_/_ensure_full_commit 201 ok 2 [notice] 2019-05-27T10:34:34.320270Z nonode@nohost <0.5463.0> cd37b9d729 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_/statedb_savepoint?attachments=true 404 ok 1 [notice] 2019-05-27T10:34:34.324001Z nonode@nohost <0.5463.0> 3110333508 couchdborga0:5984 172.21.0.3 undefined PUT /examplechannel_/statedb_savepoint 201 ok 3 [notice] 2019-05-27T10:34:34.334571Z nonode@nohost <0.5464.0> ccd32d5035 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_/_index 200 ok 15 [notice] 2019-05-27T10:34:34.343128Z nonode@nohost <0.5463.0> d7aa832773 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_/resourcesconfigtx.CHANNEL_CONFIG_KEY?attachments=true 200 ok 8 [notice] 2019-05-27T10:34:40.875565Z nonode@nohost <0.5463.0> 6b049abe27 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_lscc 404 ok 0 [notice] 2019-05-27T10:34:40.894271Z nonode@nohost <0.5463.0> ac66fba6ea couchdborga0:5984 172.21.0.3 undefined PUT /examplechannel_lscc 201 ok 18 [notice] 2019-05-27T10:34:40.902220Z nonode@nohost <0.5463.0> 8dca729960 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_lscc/chaincode_example02?attachments=true 404 ok 8 [notice] 2019-05-27T10:35:05.419380Z nonode@nohost <0.5463.0> 5770c53de6 couchdborga0:5984 172.21.0.3 undefined GET /examplechannel_lscc/chaincode_example02?attachments=true 404 ok 0

StefanoSambruna (Mon, 27 May 2019 12:03:29 GMT):
Hi everyone, I have a simple question about an approach I want to take in order to implement a client application which can interact with a Business Netowork written with Hyperledger Fabric and Composer. I want to develop a desktop client application using plain javascript and Electron which stores locally the card of the owner of that machine, and which can interact directly with the Fabric Business Network through javascript which uses the Composer SDK. does it make sense?

aspring (Mon, 27 May 2019 13:44:40 GMT):
for the "balance-transfer" sample app, when the "node app at port 4000" is down while all the Fabric's containers are still up is there a quick way to resume the "runApp" (rest api) service? Attempt of running "port=4000 node app" failed. (moved the question to this channel)

aspring (Mon, 27 May 2019 15:26:23 GMT):
imho, while Jelle.Diet's post is an excellent explanation of the difference of "contract" vs. "shim" for fabric 1.4 the "contract" new schema does not add much value, if such resources were used to create or make the Fabtoken functionality real, that is, to have some real value the Fabric blockchain platform would be in a better position to compete with the likes of R3 Corda... currently Fabric has serious deficiency in support token economy concept.

aspring (Mon, 27 May 2019 15:26:23 GMT):
imho, while Jelle.Diet's post is an excellent explanation of the difference of "contract" vs. "shim" for fabric 1.4 the "contract" new schema does not add much value, if such resources were used to create or make the Fabtoken functionality real, that is, to have some real value the Fabric blockchain platform would be in a better position to compete with the likes of R3 Corda etc... currently Fabric has serious deficiency in support token economy concept.

icarrascol (Mon, 27 May 2019 20:10:19 GMT):
hello everyone i am testing the node app with 30 tps but i am having problems of failed to connect before the deadline does anyone know what should i check to fix that

DannyBarrientos (Mon, 27 May 2019 20:20:08 GMT):
@Family What tools recommended for Security Analyzer for Hyperledger Fabric opensource ?

walmon (Mon, 27 May 2019 23:10:51 GMT):
That usually happens when the node cannot receive more transactions, there are a lot of things to check

walmon (Mon, 27 May 2019 23:11:40 GMT):
did you know that Composer is almost deprecated? Try Convector instead, better if you are familiar with JavaScript https://github.com/hyperledger-labs/convector

fardinho (Mon, 27 May 2019 23:56:40 GMT):
Has joined the channel.

fardinho (Mon, 27 May 2019 23:56:41 GMT):
hello?

DarwinHarianto (Tue, 28 May 2019 00:53:21 GMT):
what can I do for this error? ``` 2019-05-27T09:08:46.727Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T09:08:46.728Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-05-27T09:08:49.738Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 2019-05-27T09:08:49.738Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 ``` I tried using Nodejs to communicate with TLS enabled fabric. logs at peer and orderer doesn't increased when I call node js

aspring (Tue, 28 May 2019 01:29:46 GMT):
I'm interested in such tool as well.

DarwinHarianto (Tue, 28 May 2019 01:33:11 GMT):
any help with this? ``` TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.23.0.5:57714 ``` this is how I called the command ``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' ``` then, it return ``` Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] ```

DarwinHarianto (Tue, 28 May 2019 01:33:11 GMT):
any help with this? ``` TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.23.0.5:57714 ``` this is how I called the command ``` peer chaincode instantiate -o orderer.ttp.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/ttp.com/orderers/orderer.ttp.com/msp/tlscacerts/tlsca.ttp.com-cert.pem -C mychannel -n mycc -v 1.0 -c '{"Args": ["a", "100"]}' ``` then, it return ``` Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] ``` I don't know why it goes to 172.21.0.5. I have my orderer on my localhost

Randyshu2018 (Tue, 28 May 2019 01:40:17 GMT):
considering security,I don't want to expose org admin account to peer,so how can i finishing join/install/...for peer node?

DarwinHarianto (Tue, 28 May 2019 02:04:32 GMT):
``` 2019-05-28 01:55:40.160 UTC [gossip.service] func1 -> INFO 033 Elected as a leader, starting delivery service for channel mychannel 2019-05-28 01:55:42.567 UTC [protoutils] ValidateProposalMessage -> WARN 034 channel [mychannel]: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 2019-05-28 01:55:42.567 UTC [comm.grpc.server] 1 -> INFO 035 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.23.0.8:34514 error="access denied: channel [mychannel] creator org [Org1MSP]" grpc.code=Unknown grpc.call_duration=838µs 2019-05-28 01:55:43.130 UTC [ConnProducer] NewConnection -> ERRO 036 Failed connecting to orderer2.ttp.com:7050 , error: context deadline exceeded 2019-05-28 01:55:46.132 UTC [ConnProducer] NewConnection -> ERRO 037 Failed connecting to orderer1.ttp.com:7050 , error: context deadline exceeded 2019-05-28 01:55:49.134 UTC [ConnProducer] NewConnection -> ERRO 038 Failed connecting to orderer.ttp.com:7050 , error: context deadline exceeded ``` what should I do for this? I already put in tls and msp files

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node `TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320`. This is the command I am trying to run ` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/thgy/Practice/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem`

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node `TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320`. This is the command I am trying to run ``` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/thgy/Practice/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem ```

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node ``` TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320 ``` This is the command I am trying to run ``` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/thgy/Practice/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem ```

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node ``` TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320 ``` This is the command I am trying to run ``` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/thgy/Practice/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem ``` I don't understand why is the request not TLS handshake.

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node ``` TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320 ``` This is the command I am trying to run ``` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/thgy/Practice/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem ``` This is the error on executing terminal ``` Error: proposal failed (err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: ) ``` I don't understand why is the request not TLS handshake.

yeousunn (Tue, 28 May 2019 03:18:33 GMT):
I have peer running with TLS enabled. And when trying to join the channel I am getting this error on peer node ``` TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=127.0.0.1:63320 ``` This is the command I am trying to run ``` peer channel join -o $ORDERER_ADDRESS -b $GENESIS_BLOCK --tls --cafile /home/hyperledger/fabric-ca/client/org1/org1-peer1/msp/tlscacerts/tls-0-0-0-0-7054.pem ``` This is the error on executing terminal ``` Error: proposal failed (err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: ) ``` I don't understand why is the request not TLS handshake.

DarwinHarianto (Tue, 28 May 2019 04:37:56 GMT):
when I got this, it is either certificate, or cafile

yeousunn (Tue, 28 May 2019 05:31:26 GMT):
This is so weird. I generated all new certificates. not sure if configuration files have issue or certificates.

ooojerryooo (Tue, 28 May 2019 05:48:58 GMT):
Has joined the channel.

akoenig (Tue, 28 May 2019 06:52:11 GMT):
Hi, regarding to the new feature in 2.0: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#migrate-to-the-new-fabric-lifecycle . Will there be an upgrade mechanism for 1.4 release to 2.0 release? Or do we have to create a new channel in the release-version also? Is there somethng planed?

AndresMartinezMelgar.itcl (Tue, 28 May 2019 08:25:24 GMT):
if i have a net with 4 peer, then one of them crash down ... how can i get him in to network again? if this peer stand up again ( it have same name, ip, ports...) why dont login in net? Maybe i need to join that peer again to network?

Adsob (Tue, 28 May 2019 08:33:24 GMT):
Hey guys, hopefully someone can help me. My problem is the following. I need to know the size of a transaction by the following assumptions. My payload is about 50 byte und 4 endorser are requierd for the validation.

Adsob (Tue, 28 May 2019 08:34:12 GMT):
For the calculation the blockheader and meta data should be included.

johnsmith1234 (Tue, 28 May 2019 08:44:23 GMT):
hi, can anyone tell me how to get event from the committed transaction, I can see the event from the transaction payload bytes, but i don't know how to deserialize it and extract the event

benjamin.verhaegen (Tue, 28 May 2019 08:46:49 GMT):
could somebody please tell me what is wrong with the following command: peer chaincode upgrade -n ccForAll -v 1.1 -C allarewelcome -c '{"Args":["Mach","50"]}' -P "AND('Org1.peer', 'Org2.peer' OR('Org1.peer', 'Org2.peer'))"

benjamin.verhaegen (Tue, 28 May 2019 08:46:56 GMT):
I get: Error invalid policy

lucky114407 (Tue, 28 May 2019 09:15:25 GMT):
Hi all, I have set an event in Chaincode by using SetEvent() function after putstate, now is there a way to check whether the even has been created or not.

Lorem (Tue, 28 May 2019 09:25:47 GMT):
Not sure, if that's the cause, but you're missing a comma between "Org2.peer" and "OR"

benjamin.verhaegen (Tue, 28 May 2019 09:26:32 GMT):
yes that was the problem, thanks

mlucc (Tue, 28 May 2019 09:55:05 GMT):
Hello! I'm trying to use Deon Digital (https://www.deondigital.com/) with Hyperledger Fabric. Has anyone tried before??????????? :crystal_ball:

Dhiraj1990 (Tue, 28 May 2019 10:21:55 GMT):
How can i view the endoresement policy of a channel on cli or check if node is endorser or not ?

AayushSirohi (Tue, 28 May 2019 10:49:43 GMT):
can anyone help me with this error..facing while invoking chaincode from cli container from peer0 of org1..--------------->Error: error endorsing invoke: rpc error: code = Unknown desc = access denied: channel [ChannelOne] creator org [Org1MSP] - proposal response:

Dhiraj1990 (Tue, 28 May 2019 10:54:36 GMT):
@AayushSirohi Please check if you have provided channel name correct if yes then issue with your admin certificatesd

Dhiraj1990 (Tue, 28 May 2019 11:54:27 GMT):
How can i view the endorsement policy of a channel on cli or check if node is endorser or not ?

HLFPOC (Tue, 28 May 2019 12:08:12 GMT):
Can anyone please suggest/guide on best practices to follow for production fabric-network setup? I want to know ideally how many peers should an organization have, how the deployment should be done (docker or native setup) & what all things should be taken care of before moving into production. I would really appreciate if someone can guide me on this..

Jelle.Diet (Tue, 28 May 2019 12:11:32 GMT):
There's a couple of best practices here https://cloud.ibm.com/docs/blockchain?topic=blockchain-best-practices-app

raphaelbenoit (Tue, 28 May 2019 12:13:25 GMT):
Hey there! I have a question regarding private transactions: I have 3 organisations: `A`, `B` and `C`. `A` and `B` have a private collection `Coll1`, and `B` and `C` share a private data collection `Coll2`. I have a transaction that needs to read both the data in `Coll1` and `Coll2` (let's assume `Coll1` has only one value `= 1` and `Coll2` one value `= 2`. The chaincode then sums up those two values and stores `3` on the ledger shared by all organisations). That means only organisation `B` can endorse that transaction, right? Can organisations `A` and `C` still be sure that `B` didn't change the values in the private data collections before calling the transaction? Or could he overwrite the Couch DB database? Or is there a way, to check that the stored values are still equivalent to the stored hash on the blockchain before summing up the values? Oh, and I ran into a problem when implementing it: When I try to invoke the transaction that sums up the private data in both collections I get an error. The peer from organisation `B` returns the value successfully, but all other peers return an error because `"At least one peer returned an error! This may happen when a transaction queries private data that's not accessible to all peers"`. Any idea how I can fix it? I hope this is clear enough! Thanks in advance 😃

ANKITPODDAR (Tue, 28 May 2019 12:37:41 GMT):
There is one organization having one peer in my channel , I am instantiating the chaincode and it got instantiated am able to invoke too but i am getting endorsement failure error during query the chaincode.

ANKITPODDAR (Tue, 28 May 2019 12:38:16 GMT):

Clipboard - May 28, 2019 6:07 PM

ANKITPODDAR (Tue, 28 May 2019 12:39:08 GMT):
But in the same network i have tried with different chaincode and it's working

AayushSirohi (Tue, 28 May 2019 12:46:17 GMT):
Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response: payload:"\n \371+\177\3668E.\376\373\007\302\320D\021M\325\t\255h\026\373\254\360\272M8\"\016@c/S\022\200\001\nm\022V\n\003kyc\022O\032M\n\0011\032H{\"ssn\":\"\",\"idimage\":\"passport\",\"firstname\":\"aayush\",\"lastname\":\"sirohi\"}\022\023\n\004lscc\022\013\n\t\n\003kyc\022\002\010\003\032\003\010\310\001\"\n\022\003kyc\032\0031.4" endorsement: ----------------------------------------------------------------->can u please resolve this issue

Abrara (Tue, 28 May 2019 14:21:58 GMT):
Hello, I don't really understand the use of Org2 in the fabcar example. Seems to me that the user and admin we register/enroll are both associated to Org1, so I don't see when Org2 is used from an application point of view? TIA

dave.enyeart (Tue, 28 May 2019 16:20:21 GMT):
You can do this if your endorsement policy is B alone, and you only send endorsements for the summing to B. An endorsement policy of only a single org is not considered secure however. Minimally you would probably want some trusted party like an auditor to also have access to all collections and endorse, to ensure that B has not lied about the sum during endorsement.

raphaelbenoit (Tue, 28 May 2019 16:22:31 GMT):
ok, thanks for your rapid answer! Is it possible to set the endorsement policy differently for one type of transaction, e.g. only the `sum_up()` transaciton?

dave.enyeart (Tue, 28 May 2019 16:28:55 GMT):
no

raphaelbenoit (Tue, 28 May 2019 16:31:22 GMT):
what if I make organisation `B` retrieve the 2 values before invoking the transaction and send them along as "transient input". Would that work?

dave.enyeart (Tue, 28 May 2019 21:02:25 GMT):
yes, but still you'd only have org B endorsing. can the other orgs trust that org B didn't tamper with the data passed as transient input?

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before)

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before).

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before). Have any of you have any suggestions about progressing with it?

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before). Would any of you have any suggestions about progressing with it?

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before). Would any of you have any suggestions about progressing with it? There are no errors, it just hangs.

gad0lim (Tue, 28 May 2019 21:09:58 GMT):
hey Team, I have been relentlessly trying to get explorer up with my hyperledger in k8s and really spending hours with console.log in Channel.js, Peer.js, ... I see that it tries to connect to _buildOrdererName - create a new orderer grpc://localhost:7050, and create a new peer grpc://localhost:undefined. I am on hlf 1.4. i know sth is not configure right but there are not errors (http interface doesnt start as discovery that hangs is before). Would any of you have any suggestions about progressing with it? There are no errors, it just hangs.

gad0lim (Tue, 28 May 2019 21:11:46 GMT):
Is there community in Bay Area I could reach out for help? I see meetups but they are in odd places and not happening that often.

gad0lim (Tue, 28 May 2019 21:11:46 GMT):
Is there community in SF Bay Area I could reach out for help? I see meetups but they are in odd places and not happening that often.

yeousunn (Wed, 29 May 2019 03:21:13 GMT):
Is there any relation between --csr.hosts , csr section in fabric-ca-server-config.yaml and orderer addresses in configtx.yaml? When I try to instantiate chaincode, I am getting error on orderer TLS handshake failed with error remote error: tls: bad certificate server=Orderer peer is able to create and join channel with no problem. That means there is no problem in peer and orderer connecting.

yeousunn (Wed, 29 May 2019 03:21:13 GMT):
Is there any relation between --csr.hosts , csr section in fabric-ca-server-config.yaml and orderer addresses in configtx.yaml? When I try to instantiate chaincode, I am getting error on orderer ``` TLS handshake failed with error remote error: tls: bad certificate server=Orderer ``` peer is able to create and join channel with no problem. That means there is no problem in peer and orderer connecting.

Dhiraj1990 (Wed, 29 May 2019 04:17:28 GMT):
How can i view the endoresement policy of a channel on cli or check if node is endorser or not ?

Dhiraj1990 (Wed, 29 May 2019 05:39:38 GMT):
can someone answer please??

Dhiraj1990 (Wed, 29 May 2019 05:41:25 GMT):
I want to check the current endorsement policy for a channel and see which MSPs are allowed to endorse the transaction

yeousunn (Wed, 29 May 2019 05:47:54 GMT):
If peer has chaincode installed it act as endorsement peer.

Dhiraj1990 (Wed, 29 May 2019 05:48:44 GMT):
THat is not correct i guess a non endorser peer can install the chaincode

yeousunn (Wed, 29 May 2019 05:50:19 GMT):
as soon as you install chaincode it act as endorsement peer for any transaction sent form that chaincode.

Dhiraj1990 (Wed, 29 May 2019 05:51:20 GMT):
That is one the steps but when we instantiate the chaincode and include that peer in the endorsement policy then it act as endorser

Dhiraj1990 (Wed, 29 May 2019 05:51:20 GMT):
That is one of the steps but when we instantiate the chaincode and include that peer in the endorsement policy then it act as endorser

Dhiraj1990 (Wed, 29 May 2019 05:51:20 GMT):
That is one of the steps but when we instantiate the chain-code and include that peer in the endorsement policy then it act as endorser

Dhiraj1990 (Wed, 29 May 2019 05:51:20 GMT):
That is one of the steps but when we instantiate the chain-code and include that peer in the endorsement policy then it act as endorser not just by installing

yeousunn (Wed, 29 May 2019 05:55:51 GMT):
In my understanding, I think you can't specify a particular peer in an msp. like `Org1MSP.peer1`; you do `Org1MSP.peer`, once you specify Org1MSP peer to act as endorsers, all peer that have chaincode can act as endorser.

Dhiraj1990 (Wed, 29 May 2019 05:57:19 GMT):
No we just specify Org1.peer not which it means any peer of Org1 I am saying we can not define endorsement policy while installing chaincode

yeousunn (Wed, 29 May 2019 06:01:17 GMT):
you specify policy at the time of instantiation

Dhiraj1990 (Wed, 29 May 2019 06:01:27 GMT):
Yes

DarwinHarianto (Wed, 29 May 2019 06:43:47 GMT):
what can I do for this? ``` cannot enable channel capabilities without orderer support first ```

DarwinHarianto (Wed, 29 May 2019 06:43:57 GMT):
appear when I tried to start orderer

ANKITPODDAR (Wed, 29 May 2019 06:45:21 GMT):
There is one organization having one peer in my channel , I am instantiating the chaincode and it got instantiated am able to invoke too but

NishantVartak (Wed, 29 May 2019 06:49:20 GMT):
Has joined the channel.

NishantVartak (Wed, 29 May 2019 06:49:24 GMT):
how to implement pluggable membership service provider?

NishantVartak (Wed, 29 May 2019 06:52:12 GMT):
how to use fabric cli for IBM blockchain cloud platform?

yeousunn (Wed, 29 May 2019 06:55:50 GMT):
When I faced this issue, it was related to configtx.yaml profiles not set properly

yeousunn (Wed, 29 May 2019 06:57:00 GMT):
check if gossip is set properly.

DarwinHarianto (Wed, 29 May 2019 06:57:01 GMT):
is there any Node SDK example on communicating with TLS enabled environment? I have created a non TLS Node SDK which works fine. I want to upgrade to TLS so I can enable raft configuration. I think non TLS connection can't be used with raft config.

DarwinHarianto (Wed, 29 May 2019 06:57:51 GMT):
Thanks for the fast response. I missed some configs there.

NishantVartak (Wed, 29 May 2019 07:11:33 GMT):
with compose deprecated how to deploy .cds (chaincode) on latest fabric?

raphaelbenoit (Wed, 29 May 2019 07:30:11 GMT):
I'm not sure I totally understand who get's to see the transient data. Only org `B`? So the 2 other organisations don't simulate the transaction with the private data, right? If so, I thought about having the `sum_up()` function return the hashes of the transient inputs, so the other organisations could be sure that the inputs where right. Of course, I'd have to add some salt if the values are so simple.

nmutter (Wed, 29 May 2019 10:24:05 GMT):
is docker the only option for peers? or could a peer be installed on the host directly?

Aniket.1 (Wed, 29 May 2019 10:28:04 GMT):
In a channel, can orderer create different size blocks?

AndresMartinezMelgar.itcl (Wed, 29 May 2019 10:46:46 GMT):
How can i solve this issue? Getting block time exceeded 5 seconds for channel channelname

Aniket.1 (Wed, 29 May 2019 11:05:29 GMT):
how you are instantiating the chaincode?

Aniket.1 (Wed, 29 May 2019 11:05:54 GMT):
Also have setup the value you are querying?

knagware9 (Wed, 29 May 2019 11:17:59 GMT):
I am facing this error while upgrading my fabric network 1.2 to 1.3 , getting error in last step

knagware9 (Wed, 29 May 2019 11:17:59 GMT):
peer channel update -f config_update_in_envelope.pb -c channel1 -o orderer.be.*********.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/be.********.com/orderers/orderer.be.*******.com/msp/tlscacerts/tlsca.be.*******.com-cert.pem

knagware9 (Wed, 29 May 2019 11:19:05 GMT):
this is the error log https://pastebin.com/dG24C1mS

knagware9 (Wed, 29 May 2019 11:22:52 GMT):
you can check via service discovery , when service discover enabled it will give edorsment policy also in response ..

omkarsunku (Wed, 29 May 2019 11:27:28 GMT):
Has joined the channel.

omkarsunku (Wed, 29 May 2019 11:27:29 GMT):
Hello All , I have a error when instantiate chaincode. Please help me out. Firstly I have a chaincode with version 1.0. Now I have done chaincode upgrade with version 2.0 steps followed(install, upgrade, instantiate and invoke). But I can only install and upgrade not able to instantiate chaincode of new version 2.0. How can do this instantiate?

knagware9 (Wed, 29 May 2019 11:34:42 GMT):
which error , can you please paste here

omkarsunku (Wed, 29 May 2019 11:37:17 GMT):
This was the error when instantiate the chaincode of new version Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode with name 'chaincode-name' already exists

omkarsunku (Wed, 29 May 2019 11:40:20 GMT):
Currently I have only one orderer, one org,one channel

knagware9 (Wed, 29 May 2019 11:55:20 GMT):
I think this is the wrong flow Now I have done chaincode upgrade with version 2.0 steps followed(install, upgrade, instantiate and invoke). check this https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html ...no need to instantiate only upgrade required

omkarsunku (Wed, 29 May 2019 11:56:59 GMT):
instantiate is not required for new version of chaincode 2.0. is it?

knagware9 (Wed, 29 May 2019 11:57:57 GMT):
yes

omkarsunku (Wed, 29 May 2019 11:59:41 GMT):
okay thanks for answer

tejateja (Wed, 29 May 2019 12:13:55 GMT):
I am getting this Error: error receiving: rpc error: code = Unavailable desc = transport is closing. When i am adding existing peer to another host

ANKITPODDAR (Wed, 29 May 2019 12:18:20 GMT):

Clipboard - May 29, 2019 5:48 PM

ANKITPODDAR (Wed, 29 May 2019 13:50:28 GMT):
how you are instantiating the chaincode?

ANKITPODDAR (Wed, 29 May 2019 13:51:58 GMT):
check if gossip is set properly.

ANKITPODDAR (Wed, 29 May 2019 13:52:51 GMT):

Clipboard - May 29, 2019 7:22 PM

HazimDikenli (Wed, 29 May 2019 14:09:01 GMT):
Has joined the channel.

raphaelbenoit (Wed, 29 May 2019 15:27:16 GMT):
Hey, a quick question regarding private data: WhenI send a transaction with transient input, which peers receive a copy of this transient data and which don't? I understand that data in collections is distributed to all peers that are part of the collection, but I'm not shure I fully grasp the endorsement process for private transactions. Clarifications very welcome :)

icarrascol (Wed, 29 May 2019 15:56:45 GMT):
hello, does anyone know what do i have to configure to use discovery in a multi host configuration, when i activate discovery it tries to endorse to localhost directions instead of the hosts ips

dave.enyeart (Wed, 29 May 2019 17:12:48 GMT):
@raphaelbenoit that solution sounds viable. Only the endorsers that you pass the transient data to will see the transient data.

dave.enyeart (Wed, 29 May 2019 17:14:44 GMT):
Only the endorsers that you pass the transient data to will see the transient data. Typically peers will use the transient data in chaincode to generate writes to private data collections. All members of the collections will get the private data writes. But only the actual endorsing peer will see the input transient data.

dave.enyeart (Wed, 29 May 2019 17:14:44 GMT):
Only the endorsers that you pass the transient data to will see the transient data. Typically peers will use the transient data in chaincode to generate writes to private data collections. All peers that are members of the collection will get the private data writes, either via push dissemination at endorsement time or pull at validation/commit time. But only the actual endorsing peer will see the input transient data.

cryptog (Wed, 29 May 2019 18:38:04 GMT):
Hyperledger Burrow and Hyperledger Fabric seem to accomplish the same end thru different means... which of the two frameworks is best, does it simply come down to the particular use-case for which you are trying to solve?

yeousunn (Thu, 30 May 2019 00:47:53 GMT):
it can be installed directly using the binaries.

DarwinHarianto (Thu, 30 May 2019 00:49:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X7Yj8JSqWzYBvGtEW) anyone have ever done this?

yeousunn (Thu, 30 May 2019 01:37:37 GMT):
After joining the channel I am facing issue of peer and orderer not able to connect. on Peer node I am getting ``` 2019-05-30 09:35:17.354 CST [ConnProducer] NewConnection -> ERRO 04d Failed connecting to 192.168.14.245:7050 , error: context deadline exceeded 2019-05-30 09:35:17.354 CST [deliveryClient] connect -> ERRO 04e Failed obtaining connection: Could not connect to any of the endpoints: [192.168.14.245:7050] 2019-05-30 09:35:17.354 CST [deliveryClient] try -> WARN 04f Got error: Could not connect to any of the endpoints: [192.168.14.245:7050] , at 8 attempt. Retrying in 2m8s ``` and on the orderer node ``` 2019-05-30 09:35:14.355 CST [core.comm] ServerHandshake -> ERRO 033 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62566 2019-05-30 09:35:15.355 CST [core.comm] ServerHandshake -> ERRO 034 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62568 2019-05-30 09:35:17.142 CST [core.comm] ServerHandshake -> ERRO 035 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62570 ``` I am not sure why it is getting bad certificate. Since all other commands ran successfully.

yeousunn (Thu, 30 May 2019 01:37:37 GMT):
After joining the channel I am facing issue of peer and orderer not able to connect. on Peer node I am getting ``` 2019-05-30 09:35:17.354 CST [ConnProducer] NewConnection -> ERRO 04d Failed connecting to 192.168.14.245:7050 , error: context deadline exceeded 2019-05-30 09:35:17.354 CST [deliveryClient] connect -> ERRO 04e Failed obtaining connection: Could not connect to any of the endpoints: [192.168.14.245:7050] 2019-05-30 09:35:17.354 CST [deliveryClient] try -> WARN 04f Got error: Could not connect to any of the endpoints: [192.168.14.245:7050] , at 8 attempt. Retrying in 2m8s ``` and on the orderer node ``` 2019-05-30 09:35:14.355 CST [core.comm] ServerHandshake -> ERRO 033 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62566 2019-05-30 09:35:15.355 CST [core.comm] ServerHandshake -> ERRO 034 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62568 2019-05-30 09:35:17.142 CST [core.comm] ServerHandshake -> ERRO 035 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.14.245:62570 ``` I am not sure why it is getting bad certificate. Since all other commands ran successfully. *Edit:* On peer node I am getting this error from grpc ``` 2019-05-30 11:09:45.539 CST [grpc] createTransport -> DEBU 057 grpc: addrConn.createTransport failed to connect to {192.168.14.245:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting... ```

tejateja (Thu, 30 May 2019 04:32:47 GMT):
Hi guys i am trying to setup High Availability for Hyperledger fabric in two availability zones. Can u please share any article related to HI setup or disaster recovery.

sgaddam (Thu, 30 May 2019 05:51:14 GMT):
Hi Guys, I am getting the below error while installing the chaincode in the multinode network. Earlier it was working fine with the other chaincodes. Suddenly it stopped installing the chaincode and getting the below error. Your help will be greatly appreciated. Error: error getting chaincode code marblesp: error getting chaincode package bytes: Error obtaining imports: command : failed with error: "timed out after 1m0s"

DarwinHarianto (Thu, 30 May 2019 06:01:17 GMT):
where can I see my Chaincode fmtprintln?

AndresMartinezMelgar.itcl (Thu, 30 May 2019 06:05:46 GMT):
How can i check if TLS is working?

Aniket.1 (Thu, 30 May 2019 08:50:40 GMT):
Can anyone give some insights that whether it is possible to generate different size of blocks by updating blocksize in channel configuration transaction?

HLFPOC (Thu, 30 May 2019 08:59:50 GMT):
By checking the logs of your chaincode container

raphaelbenoit (Thu, 30 May 2019 09:07:46 GMT):
@dave.enyeart ok, thank you very much! That makes sense. So when the transient data is used in chaincode to make a write on the public ledger all parties essentially have to trust that one peer ... so not really a type of consensus

donjon (Thu, 30 May 2019 09:40:33 GMT):
Has joined the channel.

benjaminverhaegen (Thu, 30 May 2019 09:57:44 GMT):
Can somebody tell me how I can use nested JSON objects in GO? and how to get them out of my arguments?

dave.enyeart (Thu, 30 May 2019 11:42:25 GMT):
Yes, send a config transaction that updates one of the BatchSize parameters: https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/configtx.yaml#L216-L229

AndresMartinezMelgar.itcl (Thu, 30 May 2019 11:59:20 GMT):
you must use structs, then in first struct(nested one) you can define what you want. In second struct( "father") you have to put a new entry with type of 1º struct. You can see fabcar example, it may help you. https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/fabcar/go/fabcar.go

benjaminverhaegen (Thu, 30 May 2019 12:00:41 GMT):
I don't see any nested structs in the fabcar example?

RahulEth (Thu, 30 May 2019 12:19:49 GMT):
Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

RahulEth (Thu, 30 May 2019 12:19:49 GMT):
whenever try to create the channel with peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pemError: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

RahulEth (Thu, 30 May 2019 12:19:49 GMT):
whenever try to create the channel with : peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

RahulEth (Thu, 30 May 2019 12:29:50 GMT):
-- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

RahulEth (Thu, 30 May 2019 12:37:22 GMT):
have someone face this issue? i got stuck here for long time

Aniket.1 (Thu, 30 May 2019 12:43:59 GMT):
Is there a way to add new organizations and peers in a running channel using node SDK or somehow dynamically?

Aniket.1 (Thu, 30 May 2019 12:44:09 GMT):
Thanks @dave.enyeart

benjaminverhaegen (Thu, 30 May 2019 12:45:15 GMT):
do you know how to add optional fields to structs?

Aniket.1 (Thu, 30 May 2019 12:45:49 GMT):
just one addition, can we change the size on an already running channel? means for example, my first 10 blocks are of 10 kb and second 10 blocks of same channel are of 20 kb. Please confirm.

dave.enyeart (Thu, 30 May 2019 12:48:58 GMT):
yes, just send a config transaction to update the channel's config

Aniket.1 (Thu, 30 May 2019 12:49:28 GMT):
great

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:51:10 GMT):
Fabcar show you how to use Json objects. Following that example, you can make another struct called "brandOfCard"( for example type Car struct { Make string `json:"make"` Model string `json:"model"` Colour string `json:"colour"` Owner string `json:"owner"` Brand brandOfCard `json:"make"` } type Brand struct { Name string `json:"make"` yearSold string `json:"make"` }

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:51:10 GMT):
Fabcar show you how to use Json objects. Following that example, you can make another struct called "brandOfCard"( for example type Car struct { Make string `json:"make"` Model string `json:"model"` Colour string `json:"colour"` Owner string `json:"owner"` Brand brandOfCard `json:"make"` } type brandOfCard struct { Name string `json:"make"` yearSold string `json:"make"` }

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:51:41 GMT):
Do you understand me?

benjaminverhaegen (Thu, 30 May 2019 12:51:51 GMT):
yes, I know how the nesting works

benjaminverhaegen (Thu, 30 May 2019 12:52:02 GMT):
but how would I make that brand optional?

benjaminverhaegen (Thu, 30 May 2019 12:52:49 GMT):
because using ,omitempty doesn't want to work (getting runtime errors)

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:54:56 GMT):
making 2 types of Car, 1 whith nested and other without it( remember change the name to Car1(for example)) Then when you chaincode receive args you can check their length and create one or other type of car But this i never prove in chaincodes, only a though

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:54:56 GMT):
making 2 types of Car, 1 whith nested and other without it( remember change the name to Car1(for example)) Then when you chaincode receive args you can check their length and create one or other type of car But this i never try in chaincodes, only a though

benjaminverhaegen (Thu, 30 May 2019 12:56:10 GMT):
hmm, doesn't seem like the right way as it would cost a lot of duplicate code right?

AndresMartinezMelgar.itcl (Thu, 30 May 2019 12:58:09 GMT):
yes, maybe, but it might solve your problem

benjaminverhaegen (Thu, 30 May 2019 12:59:25 GMT):
Would cause trouble when wantig to add the brandOfCard later on

benjaminverhaegen (Thu, 30 May 2019 13:19:21 GMT):
Can somebody tell me how to use optional fields in a struct in Go?

MuhammadSalah (Thu, 30 May 2019 13:53:41 GMT):
you can always use the omitempty tag for json. I will refer you to an example https://www.sohamkamani.com/blog/golang/2018-07-19-golang-omitempty/

benjaminverhaegen (Thu, 30 May 2019 14:12:42 GMT):
when i use this example I get a panic error message

benjaminverhaegen (Thu, 30 May 2019 14:12:46 GMT):
runtime errors

MuhammadSalah (Thu, 30 May 2019 14:14:34 GMT):
All I want to say is you can simply have a struct that you can omitempty fields out of it if not specified when unmarshalled to bytes; when it is stored in ledger, ledger won't care about the struct, it only understands bytes, and you store as json

MuhammadSalah (Thu, 30 May 2019 14:14:34 GMT):
package main import ( "fmt" "encoding/json" ) type Optional struct { Fixed_field string `json:"fixedField"` Optional_field string `json:"optionalField,omitempty"` } func main () { op1 := &Optional{ Fixed_field: "I am a fixed field", } op2 := &Optional{ Fixed_field: "I am a fixed field", Optional_field: "I am an optional field", } js, _ := json.Marshal(op1) fmt.Println("op1: ", string(js)) js, _ = json.Marshal(op2) fmt.Println("op2: ", string(js)) }

benjaminverhaegen (Thu, 30 May 2019 14:32:44 GMT):
this is what I get when using omitempty

benjaminverhaegen (Thu, 30 May 2019 14:32:48 GMT):
panic: runtime error: index out of range panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x956976]

spmcnamara (Thu, 30 May 2019 18:21:00 GMT):
Having a little trouble wrapping my head around exactly how authentication of chaincode calls exposed via a REST interface should generally work... Is it a correct approach to have the client sign their REST request with the certificate registered and enrolled with the CA, and then to use that identity when invoking chaincode via the API? I haven't found a clear example that shows this, but I *think* that might be the "correct" approach... Anyone have pointers or corrections?

Antimttr (Thu, 30 May 2019 18:22:42 GMT):
i havent ever tried that way, i took the approach shown in the balance-transfer nodejs client

Antimttr (Thu, 30 May 2019 18:23:08 GMT):
where, the client assigns the user a token upon registration

Antimttr (Thu, 30 May 2019 18:23:54 GMT):
and then the user retains that token and uses it whenever they want to perform an operation

Antimttr (Thu, 30 May 2019 18:24:00 GMT):
and of course the token can also expire

Antimttr (Thu, 30 May 2019 18:24:31 GMT):
but then as far as certs go the client itself stores the user's ca keys in a db (encrypted at rest)

Antimttr (Thu, 30 May 2019 18:25:07 GMT):
i thought it would be better to keep the actual blockchain certs and keys all strictly on the client server

spmcnamara (Thu, 30 May 2019 18:27:51 GMT):
@Antimttr That makes sense as well. I'm trying to figure out the "right" balance regarding key management. If the service provider holds the keys, then a compromise of the service provider potentially exposes all keys (but if the service provider is good and responsible, it's one location to secure.) If the end client is responsible, a breach only impacts one user, but each user may take a different (and bad) approach to key security... Similar argument vs some of the crypto exchanges...

Antimttr (Thu, 30 May 2019 18:29:03 GMT):
yeah, its definitely up for debate as to which would be a more secure policy. like my org uses mainly AWS, and of course theres always the threat of something like rowhammer or one of the other speculative attacks on systems like that

Antimttr (Thu, 30 May 2019 18:30:12 GMT):
personaly i would view the end user as a more ripe target than a well maintained cloud provider though

Antimttr (Thu, 30 May 2019 18:30:30 GMT):
depends on your userbase too of course

spmcnamara (Thu, 30 May 2019 18:30:44 GMT):
Users are terrible everywhere. ;-)

Antimttr (Thu, 30 May 2019 18:30:50 GMT):
if they're all part of a well regulated and secure org, then they might be better off holding it

Antimttr (Thu, 30 May 2019 18:30:59 GMT):
lol yeah

Antimttr (Thu, 30 May 2019 18:31:47 GMT):
i mean if you look at the hacks recently with cellphones, any exectation of security on those platforms is pretty much out the window

Antimttr (Thu, 30 May 2019 18:31:47 GMT):
i mean if you look at the hacks recently with cellphones, any expectation of security on those platforms is pretty much out the window

Antimttr (Thu, 30 May 2019 18:32:27 GMT):
like if you have whatsapp installed all a nationstate actor with the right set of hacks would have to do to pwn your phone is call it, then your phone is compramised

Antimttr (Thu, 30 May 2019 18:32:44 GMT):
so then all the of 2 factor auth going through it could be considered compramised

spmcnamara (Thu, 30 May 2019 18:34:44 GMT):
Current 2FA is a colossal PITA. Recently had to reset my phone which blasted all the 2FA registrations, and resetting them for some providers is NOT a simple process.

Antimttr (Thu, 30 May 2019 18:35:09 GMT):
yeah i lost my phone in vegas for a couple days and it was a giant PITA

Antimttr (Thu, 30 May 2019 18:35:35 GMT):
cuz i had to contact uber to get my phone back but uh-oh jits all blocked off via 2fa

spmcnamara (Thu, 30 May 2019 18:35:48 GMT):
Exactly.

DarwinHarianto (Fri, 31 May 2019 01:17:32 GMT):
hello, any tips for this kind of error? ``` Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- cannot enqueue - proposal response: version:1 response: payload:"\n \030\357\257\023@\201\210\010\335\264\341\027\345>\031l\317\022\033pN\346\341\363\3173\355\205}\320h\372\022L\n/\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\001\022\027\n\004mycc\022\017\n\r\n\007balance\022\002\010\027\032\r\010\310\001\032\0100.000000\"\n\022\004mycc\032\002v1" endorsement: ```

DarwinHarianto (Fri, 31 May 2019 01:18:09 GMT):
peer logs shows this ``` 2019-05-31 01:15:03.236 UTC [endorser] SimulateProposal -> ERRO 1e4 [mychannel][1f2f28cd] failed to invoke chaincode name:"mycc" , error: txid: 1f2f28cd9996d43bc035620961852a33db3af10d9ae954651d58a5a2b6cb3660(mychannel) exists ``` I tried to invoke a simple get command

DarwinHarianto (Fri, 31 May 2019 01:38:16 GMT):
zookeeper logs ``` Got user-level KeeperException when processing sessionid:0x16b0b3d94300001 type:setData cxid:0x771 zxid:0xb00000756 txntype:-1 reqpath:n/a Error Path:/brokers/topics/mychannel/partitions/0/state Error:KeeperErrorCode = BadVersion for /brokers/topics/mychannel/partitions/0/state ```

ahmad-raza (Fri, 31 May 2019 07:14:19 GMT):
What is the process of Endorsement. As when we send transaction proposal to endorsing peers . it will return endorsement response and tells whatever transaction is valid or not. This process is automatic. What if an organization does not want to endorse transaction? No Human involvement in it? Kindly guide me

florianc (Fri, 31 May 2019 07:43:58 GMT):
Endorsement is the process of defining if a transaction is valid or not. You can specify which org(s) can endorse a transaction. This "endorsement list" is relative to a chaincode (each chaincode has its own endrosement policy). Here is a nexample of an endorsement policy: https://fabric-sdk-node.github.io/release-1.4/global.html#ChaincodeInstantiateUpgradeRequest__anchor (scroll to the end of the linked section)

raphaelbenoit (Fri, 31 May 2019 08:40:25 GMT):
I'm wondering: does the orderer have visibility on the "content" of a transaction? I know he doesn't need to, but I'm just curious if he CAN if he wants :)

florianc (Fri, 31 May 2019 08:50:09 GMT):
Hello. I have a transaction with MVCC_READ_CONFLICT (I tried to update the same thing with too many txs at the same time). This transaction made it to the ledger, but its read/write set has not been added to the world state, hasn't it?

RahulEth (Fri, 31 May 2019 11:04:24 GMT):
i am getting this error : root@4bb9d2d4aec6:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}'Error: error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org3MSP] - proposal response:

RahulEth (Fri, 31 May 2019 11:04:24 GMT):
i am trying to add one more orgnization with exesting networking of two orgs ,getting this error : root@4bb9d2d4aec6:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}'Error: error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org3MSP] - proposal response:

Aniket.1 (Fri, 31 May 2019 11:21:50 GMT):
Hello Everyone, I want some insights from you guys experience. If there is a channel of two peers of same organization and we install same chaincode to both peers and instantiate it on the channel. So will there be two docker container for the chaincode running corresponding to each peer?

K1L14N (Fri, 31 May 2019 11:35:16 GMT):
@Aniket.1 Yes each peer run his own chaincode container if you install it

K1L14N (Fri, 31 May 2019 11:38:24 GMT):
I have a question, what is the recommended way to call the chaincode from a web app ? Does each org should provide a rest API ?

Aniket.1 (Fri, 31 May 2019 11:39:27 GMT):
Thanks @K1L14N . So logs of one chaincode container will be synced with other one, means if i hit peer1 to query, will the query function logs also appear in peers chaincode container?

Aniket.1 (Fri, 31 May 2019 11:41:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=dBiLpt4FbY3P7zwiJ) I think we can use SDK for that

K1L14N (Fri, 31 May 2019 11:43:40 GMT):
On chaincode container only logs from the chaincode itself, say you use print statement in your code, will appear

K1L14N (Fri, 31 May 2019 11:44:28 GMT):
The query will appear on the peer container, not necessarily all the peers, it depends on the policy

Aniket.1 (Fri, 31 May 2019 11:46:02 GMT):
Do we apply same approach for production too as it seems too resource consuming to run a new docker container for same chaincode on all peers. Also does running chaincode docker container consume same level of resources or they got idle if not in use and leave resources?

K1L14N (Fri, 31 May 2019 11:49:46 GMT):
That is why it is not recommended to install chaincode on every peers. I am not sure about the second part of your question sorry

Aniket.1 (Fri, 31 May 2019 11:54:03 GMT):
hmmm. But installing in on multiple peers can help in dividing the work load to increase scalability which is a big concern for an application.

rohitsethi (Fri, 31 May 2019 12:02:47 GMT):
Hi all, can someone suggest best practices to keep in mind while designing the hyperledger fabric architecture to achieve maximum scalability and performance?

BlueKing (Fri, 31 May 2019 12:41:12 GMT):
Has joined the channel.

florianc (Fri, 31 May 2019 14:06:58 GMT):
Why is it necessary for the ledger to store endorsement proposals/responses as well as the return of the transaction executed? For the proposals/responses, is it because we may need to reverify the ledger later? (which does not seem to make sens for me)

rangeshsripathi (Fri, 31 May 2019 15:32:36 GMT):
Hi All

rangeshsripathi (Fri, 31 May 2019 15:33:14 GMT):
Is it possible to create new channel dynamically to existing network ?

walmon (Fri, 31 May 2019 15:54:52 GMT):
Absolutely

walmon (Fri, 31 May 2019 15:56:53 GMT):
It doesn't, in fact you can even limit it to just see outputs not inputs

walmon (Fri, 31 May 2019 15:57:35 GMT):
this may help yoy @florianc https://github.com/hyperledger/fabric-samples/tree/release-1.4/high-throughput

raphaelbenoit (Fri, 31 May 2019 15:57:47 GMT):
great, thank you!

walmon (Fri, 31 May 2019 15:58:16 GMT):
Best practices on that really depends on your networks topology, structure, and general requirements

Antimttr (Fri, 31 May 2019 16:03:10 GMT):
Is a peer an anchor peer only in the context of a specific channel, or are anchor peers defined organizationally?

icarrascol (Fri, 31 May 2019 16:20:16 GMT):
hello everyone is there a way to assign peer names using config files

Antimttr (Fri, 31 May 2019 17:03:48 GMT):
anyone know if the yaml files in the samples or anywhere in the codebase were outputted progmattically?

Antimttr (Fri, 31 May 2019 17:04:03 GMT):
im having a hell of a time getting the same format using symphony's yaml dumper library

Antimttr (Fri, 31 May 2019 17:04:14 GMT):
its almost the same, but not quite

rangeshsripathi (Fri, 31 May 2019 17:17:54 GMT):
@walmon : Any pointers are supporting links please ?

walmon (Fri, 31 May 2019 17:18:52 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchannel.html#peer-channel-create-examples

dominik (Fri, 31 May 2019 20:38:39 GMT):
Has joined the channel.

dominik (Fri, 31 May 2019 20:38:41 GMT):
Is there a way to write transactions on IBM Blockchain for free? I know there is a 6 month trial but am confused by the kubernetes cluster, and I'm very new to hyperledger as a whole. I have hyperledger installed and working on my local machine right now. Any help is appreciated.

Antimttr (Fri, 31 May 2019 20:50:25 GMT):
well hyperledger fabric is sort of the free version of the ibm blockchain in a way

Antimttr (Fri, 31 May 2019 20:50:32 GMT):
but you have to write your own implementation

Antimttr (Fri, 31 May 2019 20:50:41 GMT):
or just use the samples that you can find in fabric-samples

Antimttr (Fri, 31 May 2019 20:51:09 GMT):
honestly i dont know much about the ibm version since i'm writing my own implementation

vb2605 (Sat, 01 Jun 2019 07:13:32 GMT):
Has joined the channel.

adarshaJha (Sat, 01 Jun 2019 08:42:26 GMT):
Has joined the channel.

adarshaJha (Sat, 01 Jun 2019 08:42:26 GMT):
Hi i have started working on hyperledger fabric recently and i am trying to use raft as an ordering service and with multiple orderers and organizations .

adarshaJha (Sat, 01 Jun 2019 08:42:42 GMT):
is there any tutorial i can follow ?

adarshaJha (Sat, 01 Jun 2019 08:43:50 GMT):
I have one more question that users that are generated on my organization, there privatekeys are stored at my organization node. How to avoid storing of private keys ? i didn't find any good tutorial or article over the internet regarding this.

adarshaJha (Sat, 01 Jun 2019 08:44:21 GMT):
so here i am asking this question to experts who can guide me on my journey with hyperledger fabric.

HLFPOC (Sat, 01 Jun 2019 15:41:51 GMT):
Hello Team, Has anyone been able to setup explorer with fabric network having multiple channels ? I am able to see the explorer but only 1 channel is listed in the drop down, not able to see the details of my second channel, however I am able to do transactions in both the channels, so I guess fabric-network is properly configured.

xana (Sun, 02 Jun 2019 07:18:45 GMT):
Has joined the channel.

xana (Sun, 02 Jun 2019 07:18:46 GMT):
Hello Team, can we restore blockchain network using only the peer backup. we created a fabric network with KAFKA (OSN) on docker swarm and was mis-configured, after the vm restarted we cannot make any transactions we fixed the configurations but network is still broken.

kHAWLAAA (Mon, 03 Jun 2019 00:56:35 GMT):
Has joined the channel.

kHAWLAAA (Mon, 03 Jun 2019 00:56:39 GMT):
Hi, thank you for helping me how i can start developement an application hyperledger fabric please guide

DarwinHarianto (Mon, 03 Jun 2019 02:33:08 GMT):
hello, what should I do for this error? ``` the supplied identity is not valid: x509: certificate signed by unknown authority ```

DarwinHarianto (Mon, 03 Jun 2019 02:33:59 GMT):
I am trying to start configuration on ubuntu in ecstatics. When I tried to start orderer, this happens. peer and ca works fine.

rangeshsripathi (Mon, 03 Jun 2019 02:52:35 GMT):
Thanks walmon, I actually wanted to add an org dynamically to consortium and then create channel. I should have framed the question better ... I was able to do the same as well ...Thanks for the link.. ++ My article to add org dynamically to existing consortium https://medium.com/@rsripathi781/how-to-add-an-organization-dynamically-to-existing-consortium-hyperledger-fabric-36b4c923b937

rohitsethi (Mon, 03 Jun 2019 05:03:35 GMT):
Hi @walmon thanks for the help. Any pointers for detailed information about network topology and structure?

yeousunn (Mon, 03 Jun 2019 05:32:52 GMT):
abc123*

Nishanth92 (Mon, 03 Jun 2019 06:48:15 GMT):
Has joined the channel.

Dhiraj1990 (Mon, 03 Jun 2019 06:51:09 GMT):
anchor peer are of orgs not for channels

KrishnaprabuThangavel (Mon, 03 Jun 2019 07:25:08 GMT):
Has joined the channel.

tjkim0706 (Mon, 03 Jun 2019 07:51:25 GMT):
Has joined the channel.

tjkim0706 (Mon, 03 Jun 2019 07:51:27 GMT):
Hi everyone. I am trying to build with "fabric". But an error occurred. Does anyone know of this problem? I can not see the issue category in fabric github, so I write it here. ------------------------------------------------------------------------- Diff: No differences. goroutine 244 [running]: github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).fail(0xc00040ad90, 0xf637b3, 0x6f, 0xc00051a480, 0x4, 0x4) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:236 +0x14d github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).MethodCalled(0xc00040ad90, 0x1525e49, 0xd, 0x0, 0x0, 0x0, 0xc00051a440, 0x4, 0x4) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:358 +0x800 github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).Called(0xc00040ad90, 0x0, 0x0, 0x0, 0x90, 0xebc400, 0x30) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:334 +0x1a9 github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipAdapterMock).GetMembership(0xc00040ad90, 0xb, 0xc0005700f0, 0x0) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel_test.go:221 +0x42 github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipChannel).GetPeers(0xc000230500, 0x1, 0xc0004e45f0, 0xc000223b60) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:361 +0x79 github.com/hyperledger/fabric/gossip/gossip/channel.(*membershipTracker).trackMembershipChanges(0xc00051b140) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:1106 +0x2b2 created by github.com/hyperledger/fabric/gossip/gossip/channel.NewGossipChannel /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:296 +0xa52 FAIL github.com/hyperledger/fabric/gossip/gossip/channel 0.098s ok github.com/hyperledger/fabric/gossip/gossip/msgstore 8.052s coverage: 100.0% of statements ok github.com/hyperledger/fabric/gossip/gossip/pull 2.134s coverage: 94.1% of statements ok github.com/hyperledger/fabric/gossip/identity 12.049s coverage: 100.0% of statements ok github.com/hyperledger/fabric/gossip/metrics 0.009s coverage: 100.0% of statements ? github.com/hyperledger/fabric/gossip/metrics/mocks [no test files] ok github.com/hyperledger/fabric/gossip/privdata 19.329s coverage: 85.7% of statements ? github.com/hyperledger/fabric/gossip/privdata/common [no test files] ? github.com/hyperledger/fabric/gossip/privdata/mocks [no test files] ok github.com/hyperledger/fabric/gossip/protoext 0.028s coverage: 95.1% of statements ok github.com/hyperledger/fabric/gossip/service 73.798s coverage: 83.8% of statements ? github.com/hyperledger/fabric/gossip/service/mocks [no test files] ok github.com/hyperledger/fabric/gossip/state 58.084s coverage: 78.5% of statements ok github.com/hyperledger/fabric/gossip/state/mocks 0.036s coverage: 55.6% of statements ok github.com/hyperledger/fabric/gossip/util 4.199s coverage: 78.5% of statements real 10m44.332s user 10m39.004s sys 5m2.823s Makefile:199: recipe for target 'unit-test' failed make: *** [unit-test] Error 1

tjkim0706 (Mon, 03 Jun 2019 07:51:27 GMT):
Hi everyone. I am trying to build with "fabric". But an error occurred. Does anyone know of this problem? I can not see the issue category in fabric github, so I write it here. ------------------------------------------------------------------------- ... ... ... Diff: No differences. goroutine 244 [running]: github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).fail(0xc00040ad90, 0xf637b3, 0x6f, 0xc00051a480, 0x4, 0x4) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:236 +0x14d github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).MethodCalled(0xc00040ad90, 0x1525e49, 0xd, 0x0, 0x0, 0x0, 0xc00051a440, 0x4, 0x4) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:358 +0x800 github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock.(*Mock).Called(0xc00040ad90, 0x0, 0x0, 0x0, 0x90, 0xebc400, 0x30) /root/gopath/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/mock/mock.go:334 +0x1a9 github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipAdapterMock).GetMembership(0xc00040ad90, 0xb, 0xc0005700f0, 0x0) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel_test.go:221 +0x42 github.com/hyperledger/fabric/gossip/gossip/channel.(*gossipChannel).GetPeers(0xc000230500, 0x1, 0xc0004e45f0, 0xc000223b60) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:361 +0x79 github.com/hyperledger/fabric/gossip/gossip/channel.(*membershipTracker).trackMembershipChanges(0xc00051b140) /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:1106 +0x2b2 created by github.com/hyperledger/fabric/gossip/gossip/channel.NewGossipChannel /root/gopath/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go:296 +0xa52 FAIL github.com/hyperledger/fabric/gossip/gossip/channel 0.098s ok github.com/hyperledger/fabric/gossip/gossip/msgstore 8.052s coverage: 100.0% of statements ok github.com/hyperledger/fabric/gossip/gossip/pull 2.134s coverage: 94.1% of statements ok github.com/hyperledger/fabric/gossip/identity 12.049s coverage: 100.0% of statements ok github.com/hyperledger/fabric/gossip/metrics 0.009s coverage: 100.0% of statements ? github.com/hyperledger/fabric/gossip/metrics/mocks [no test files] ok github.com/hyperledger/fabric/gossip/privdata 19.329s coverage: 85.7% of statements ? github.com/hyperledger/fabric/gossip/privdata/common [no test files] ? github.com/hyperledger/fabric/gossip/privdata/mocks [no test files] ok github.com/hyperledger/fabric/gossip/protoext 0.028s coverage: 95.1% of statements ok github.com/hyperledger/fabric/gossip/service 73.798s coverage: 83.8% of statements ? github.com/hyperledger/fabric/gossip/service/mocks [no test files] ok github.com/hyperledger/fabric/gossip/state 58.084s coverage: 78.5% of statements ok github.com/hyperledger/fabric/gossip/state/mocks 0.036s coverage: 55.6% of statements ok github.com/hyperledger/fabric/gossip/util 4.199s coverage: 78.5% of statements real 10m44.332s user 10m39.004s sys 5m2.823s Makefile:199: recipe for target 'unit-test' failed make: *** [unit-test] Error 1

kHAWLAAA (Mon, 03 Jun 2019 08:44:27 GMT):
Hi, thank you for helping me how i can start developement an application hyperledger fabric please guide

Archna (Mon, 03 Jun 2019 09:33:37 GMT):
Has joined the channel.

Archna (Mon, 03 Jun 2019 09:33:38 GMT):
Hi team , am looking for help to develop test cases for blockchain testing (not application functional testing) , Please help share relevant docs/links which details specifics of hyperledger fabric testing, approaches and testing tools.

surabhivyas (Mon, 03 Jun 2019 09:47:17 GMT):
Has joined the channel.

MichaelMarcotrigiano (Mon, 03 Jun 2019 10:02:29 GMT):
Hi guys, is it possible to create a new channel dynamically (using the api) without updating the network configuration file?

andrewhw (Mon, 03 Jun 2019 10:55:03 GMT):
I'm looking at access control lists in Fabric https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html . All the examples in this chapter relate to system chain code. Is it possible to control access to application chain code in the same way, e.g. to require a policy to control access to mycc/query in the byfn example, would it be sufficient to add lines in the following form to the example ACL definition? ``` + # ACL policy for playing with our chaincode + mycc/query: /Channel/Application/Queryers ```

andrewhw (Mon, 03 Jun 2019 10:55:03 GMT):
I'm looking at access control lists in Fabric https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html . All the examples in this chapter relate to system chain code. Is it possible to control access to application chain code in the same way, e.g. to require a policy to control access to mycc/query in the byfn example, would it be sufficient to add lines in the following form to the example ACL definition? ``` + # ACL policy for controlling access to our chaincode + mycc/query: /Channel/Application/Queryers ```

mastersingh24 (Mon, 03 Jun 2019 11:35:20 GMT):
No ... ACLs are specific to built-in Fabric functions (some of which are implemented as system chaincode)

AmeyaSinha (Mon, 03 Jun 2019 13:05:49 GMT):
Has joined the channel.

AmeyaSinha (Mon, 03 Jun 2019 13:05:49 GMT):
Hi! I'm trying to get started with Hyperledger and am unable to understand the second point of this tutorial - https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html. I have already installed all the prerequistes (https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html) and am using Windows 10. What does it mean by "Checkout the appropriate version tag" I have already cloned the repo on my local computer

florianc (Mon, 03 Jun 2019 13:23:41 GMT):
This part is indeed confusing. I had the same questions when I did it. It actually does not tel you what to do, but tells you what will happen when you run the script bellow

florianc (Mon, 03 Jun 2019 13:24:11 GMT):
So, just go to the curl command

harishbm34 (Mon, 03 Jun 2019 13:51:38 GMT):
Has joined the channel.

harishbm34 (Mon, 03 Jun 2019 13:51:38 GMT):
Hi All, I am very new to Hyperledger Fabric. I would like to understand the few concepts in this BC. Hyperledger Fabric is private blockchain and according to my understanding, if there are 10 participants in the network, two participants can do the private communication by creating the channel..am I right?

florianc (Mon, 03 Jun 2019 14:08:01 GMT):
Correct. You could consider a channel like a blockchain itself, because there is one ledger per channel.

YassineAmor (Mon, 03 Jun 2019 14:23:44 GMT):
Has joined the channel.

YassineAmor (Mon, 03 Jun 2019 14:24:57 GMT):
Hi! I was wondering if there's a way to link Hyperledger Fabric with Indy?

harishbm34 (Mon, 03 Jun 2019 14:37:10 GMT):
@florianc : thank you.!! when we do the private communication between the 2 channels, only those two channels will have the ledger entry. Those entries will not be with other 8 nodes ledger.. right?

florianc (Mon, 03 Jun 2019 14:44:35 GMT):
Do you mean "private communication between the 2 channels" or "between the 2 peers"?

harishbm34 (Mon, 03 Jun 2019 14:45:07 GMT):
Let's say I have 10 companies in the supply chain network. One of the company will post a project to be developed. Big company can bid to that project, but small companies will not be able to bid due to their funds or lack of resources. In that case, 3 small companies would like club to together and bid to that project using chain code and private channel communication between only those 3 companies. Does fabric has this feature or to be developed?

Emiel 1 (Mon, 03 Jun 2019 14:48:57 GMT):
Is there a way to get the transaction invoker's public key using the nodejs sdk for writing smart contracts & chaincode?

harishbm34 (Mon, 03 Jun 2019 14:53:24 GMT):
thank you.!! when we do the private communication between the 2 channels, only those two channels will have the ledger entry. Those entries will not be with other 8 nodes ledger.. right?

pleerock (Mon, 03 Jun 2019 15:35:21 GMT):
Has joined the channel.

pleerock (Mon, 03 Jun 2019 15:35:22 GMT):
Hey everybody! Quick question - most apps have users (lets say I make a social network where everybody can register and be my friend). My question is follows - is fabric enrollment system is a right thing to create those users? Personally I was thinking about those enrolled users as "api users", but I see some samples on the internet where people actually use this system to create end users.

harishbm34 (Mon, 03 Jun 2019 15:35:35 GMT):
Please put some insight on the below query too : Let's say I have 10 companies in the supply chain network. One of the company will post a project to be developed. Big company can bid to that project, but small companies will not be able to bid due to their funds or lack of resources. In that case, 3 small companies would like club to together and bid to that project using chain code and private channel communication between only those 3 companies. Does fabric has this feature or to be developed?

Silona (Mon, 03 Jun 2019 15:37:32 GMT):
https://wiki.hyperledger.org/display/INTERN/Extending+HL+Fabric+for+connecting+with+HL+Indy

YassineAmor (Mon, 03 Jun 2019 15:39:57 GMT):
The link states that you need to create a custom MSP. Do you know how to do this? Thanks

Silona (Mon, 03 Jun 2019 15:51:50 GMT):
https://bitmark.com/en/use-cases/hyperledger

Silona (Mon, 03 Jun 2019 15:51:53 GMT):
nope

Silona (Mon, 03 Jun 2019 15:53:20 GMT):
https://www.ibm.com/blogs/blockchain/2018/05/self-sovereign-identity-our-recent-activity-as-a-sovrin-steward/

Silona (Mon, 03 Jun 2019 15:53:48 GMT):
But you can also ask on the indy channel. also someone did a demo at Consensus of Fabric and Indy.

spmcnamara (Mon, 03 Jun 2019 18:18:50 GMT):
Hi all. Does each peer need to *create* the channel before joining? I thought by creating the channel on one peer, it would be available for joining by other peers, but that doesn't seem to work. I get a "genesis block file not found" error. Can someone help clean up my thinking about how this works?

walmon (Mon, 03 Jun 2019 18:24:09 GMT):
You create it once, and use that for the rest of peers to join

spmcnamara (Mon, 03 Jun 2019 18:31:18 GMT):
@walmon but does that mean I need to propagate the genesis block file to all peers first? I think that's what I'm probably unclear about: What files need to be available on any peer for it to operate on the network?

DineshRaj (Mon, 03 Jun 2019 18:35:54 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 1, but it is currently at version 2

DineshRaj (Mon, 03 Jun 2019 18:38:10 GMT):
error while updating anchor peer, i.e while executing this command "peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f Org2MSPanchors.tx --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA" does anybody has come across this

gapan (Mon, 03 Jun 2019 19:56:56 GMT):
Has joined the channel.

gapan (Mon, 03 Jun 2019 19:56:59 GMT):
Hi everyone! I'm trying to run the tutorial here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html

gapan (Mon, 03 Jun 2019 19:57:31 GMT):
however, when I get to the ```node enrollAdmin.js``` part, I get this error message: ```Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: read ECONNRESET] ```

gapan (Mon, 03 Jun 2019 19:57:36 GMT):
any ideas?

gapan (Mon, 03 Jun 2019 20:34:58 GMT):
OK, got it, it was an iptables firewall rule that was causing it

spmcnamara (Mon, 03 Jun 2019 21:19:06 GMT):
Figured this out. I was able to add the second peer *from* the first peer. I was looking at an example that said to do the add from the cli instance, but that wasn't working.

anand.fast (Tue, 04 Jun 2019 00:59:58 GMT):
Has joined the channel.

DarwinHarianto (Tue, 04 Jun 2019 01:31:48 GMT):
Hello, how can I count how many GB of memory should I not to save transactions? suppose I have levelDB and 1 org with 2 peers. Each transaction is key value like this {a:10} if in a day I do 10 transactions, how many memory do I need for a month? I see from SO, we need roughly 3Kb for endorsement. so, 3 Kb from org1 certs, then how much do I need for levelDB and other stuffs?

florianc (Tue, 04 Jun 2019 05:52:56 GMT):
You can have has many channels as you want. So it is possible.

Rumaise (Tue, 04 Jun 2019 07:20:54 GMT):
How to connect a peer node with a firefox web browser

Jelle.Diet (Tue, 04 Jun 2019 07:43:05 GMT):
You can also look into private data, which does what you want without the need to create new channels all the time

harishbm34 (Tue, 04 Jun 2019 07:47:52 GMT):
@Jelle.Diet @florianc Thank you :)

Jelle.Diet (Tue, 04 Jun 2019 07:54:19 GMT):
Also, I might be misunderstanding your question, but private blockchain means that not everyone is allowed to join the blockchain (without authorization), not that the data on the blockchain is private between certain members

Emiel 1 (Tue, 04 Jun 2019 08:22:01 GMT):
Hi, I'm currently developing chaincode using the NodeJS sdk https://github.com/hyperledger/fabric-chaincode-node

Emiel 1 (Tue, 04 Jun 2019 08:22:19 GMT):
Im running into an issue though, i need the public key from the transaction submitter

Emiel 1 (Tue, 04 Jun 2019 08:22:52 GMT):
But i cannot seem to find it, does anybody know if this is possible with the NodeJS sdk?

Emiel 1 (Tue, 04 Jun 2019 08:23:09 GMT):
Any help is sincerely appreciated :)

florianc (Tue, 04 Jun 2019 08:29:34 GMT):
Hello. I think you may be able to find your solution here: https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html#getCreator__anchor One of these functions should do the job.

Emiel 1 (Tue, 04 Jun 2019 08:30:55 GMT):
i've tried that, but that only gives me the MSPID and the certificate

Emiel 1 (Tue, 04 Jun 2019 08:31:10 GMT):
i need something permanent like a users public key

yeousunn (Tue, 04 Jun 2019 09:17:36 GMT):
I am starting three orderer nodes with raft. I am getting this error ``` Failed pulling system channel: failed obtaining the latest block for channel ordererchannel ``` ``` Rejecting deliver request for 192.168.160.2:57044 because of consenter error ``` and all the orderer nodes stops. any idea what is wrong here?

harishbm34 (Tue, 04 Jun 2019 09:27:19 GMT):
@Jelle.Diet : right, private chain means, not everyone is allowed to join the blockchain without authorization. Let's say, within the private blockchain, company 'A' would like to sell certain material in cheaper rate to company 'X' then that 'rates' details will be present only on the company 'A' and 'X' ledger... not on other companies ledger. am I right?

Jelle.Diet (Tue, 04 Jun 2019 09:28:45 GMT):
if you have a seperate channel between company A and X or used private data for these transactions then yes, but not by default

harishbm34 (Tue, 04 Jun 2019 09:31:59 GMT):
@Jelle.Diet yes, thank you.

andrewhw (Tue, 04 Jun 2019 09:32:08 GMT):
Thank you.

Abrara (Tue, 04 Jun 2019 12:28:14 GMT):
Hello, I'm not sure I understand the way an organization is "stored". Let's take the first-network example from fabric-samples, it seems to me that the MSP corresponding to orgs is stored in crypto-config once cryptogen is called, but the msp content doesn't correspond to a "local msp" as shown in the documentation so I'm not sure what it's used for ?

franke92 (Tue, 04 Jun 2019 13:39:43 GMT):
Has joined the channel.

franke92 (Tue, 04 Jun 2019 13:39:45 GMT):
How to solve this error? Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]

AndresMartinezMelgar.itcl (Tue, 04 Jun 2019 15:43:03 GMT):
Hi, are there an example of a blockchain network distributed with a hyperledger fabric? The examples given are centralized blockchain networks.

aspring (Tue, 04 Jun 2019 19:28:46 GMT):
Hi All, I am very new to Hyperledger Fabric. I would like to understand the few concepts in this BC. Hyperledger Fabric is private blockcha

Corydoras (Tue, 04 Jun 2019 20:22:23 GMT):
Has joined the channel.

Corydoras (Tue, 04 Jun 2019 21:33:09 GMT):
HI when trying to open Hyperledger Fabric I get this error2019-06-04 18:53:11.156 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

Corydoras (Tue, 04 Jun 2019 21:33:31 GMT):
Can anyone help me fix it?

DarwinHarianto (Wed, 05 Jun 2019 00:33:53 GMT):
go a step back, try to see docker logs, or see message before this happens

yeousunn (Wed, 05 Jun 2019 02:11:52 GMT):
Hi anyone faced issue when starting orderer with raft ``` orderer1 | 2019-06-05 01:47:51.379 UTC [orderer.common.cluster.replication] fetchLastBlockSeq -> WARN 024 Received status:SERVICE_UNAVAILABLE from orderer1:7050: service unavailable orderer1 | 2019-06-05 01:47:51.379 UTC [orderer.common.cluster.replication] func1 -> WARN 025 Received error of type 'service unavailable' from orderer1:7050 orderer1 | 2019-06-05 01:47:51.379 UTC [orderer.common.cluster.replication] HeightsByEndpoints -> INFO 026 Returning the heights of OSNs mapped by endpoints map[] orderer1 | 2019-06-05 01:47:51.379 UTC [orderer.common.cluster] ReplicateChains -> PANI 027 Failed pulling system channel: failed obtaining the latest block for channel ordererchannel orderer1 | panic: Failed pulling system channel: failed obtaining the latest block for channel ordererchannel ```

charyorde (Wed, 05 Jun 2019 04:27:50 GMT):
`error: [token-utils.js]: command response has error: FabToken capability not enabled for channel mychannel`

charyorde (Wed, 05 Jun 2019 04:28:00 GMT):
What's the config to enable FabToken?

KrishnaprabuThangavel (Wed, 05 Jun 2019 06:21:08 GMT):
Hi when I try to issue token I got the following error

KrishnaprabuThangavel (Wed, 05 Jun 2019 06:21:08 GMT):
Hi when I try to issue token I got the following error error from prover: FabToken capability not enabled for channel mychannel May i know how to resolve it

Corydoras (Wed, 05 Jun 2019 13:53:40 GMT):

Corydoras - Wed Jun 05 2019 09:53:28 GMT-0400 (Eastern Daylight Time).txt

Corydoras (Wed, 05 Jun 2019 13:53:40 GMT):

Corydoras - Wed Jun 05 2019 09:53:28 GMT-0400 (Eastern Daylight Time).txt

harishbm34 (Wed, 05 Jun 2019 14:02:27 GMT):
@florianc @Jelle.Diet : I have another question. Let's say I want to store the data on the blockchain from different companies (which will be growing and becomes huge) then on top of that, if we want to do some analysis on the (big) data and to generate the report... how flexible is this? Please through some light on this.

cryptog (Wed, 05 Jun 2019 18:56:17 GMT):
Regarding a use-case concerned with intra-firm transfers, would it be best to organize a Fabric network with separate channels for each of the departments making exchanging and use the gossip protocol to facilitate persistence of a single rw-set over two separate blockchains, or would it make more sense to represent all departments on a single channel in the network where tx data from all activities is stored on a single blockchain?

cryptog (Wed, 05 Jun 2019 18:56:17 GMT):
Regarding a use-case concerned with intra-firm transfers, would it be best to organize a Fabric network with separate channels for each of the departments exchanging and use the gossip protocol to facilitate persistence of a single rw-set over two separate blockchains, or would it make more sense to represent all departments on a single channel in the network where tx data from all activities is stored on a single blockchain?

gustavosantos15 (Wed, 05 Jun 2019 19:56:19 GMT):
Has joined the channel.

gustavosantos15 (Wed, 05 Jun 2019 19:56:20 GMT):
Hi everyone. I would like to get a tips. I will start to develop a application with fabric and Java with Spring Framework.

gustavosantos15 (Wed, 05 Jun 2019 19:56:20 GMT):
Hi everyone. I would like to get a tips. I will start to develop a application with fabric and Java with Spring Framework. 1. Is Java a good language for developing fabric applications? I see a lot of documentation and sample with Javascript, node, go, etc.. a few with java just. 2. Can someone send me a github project with this stask for I analyse?

inceptchain (Wed, 05 Jun 2019 21:47:21 GMT):
Has joined the channel.

inceptchain (Wed, 05 Jun 2019 21:47:22 GMT):
hi I have some questions about working with the the go-sdk and basically why I cannot seem to get the orderers to connect

inceptchain (Wed, 05 Jun 2019 21:48:11 GMT):
I keep getting a connection timed out error, and dont know where to look to figure it out

inceptchain (Wed, 05 Jun 2019 21:50:00 GMT):
here is the error

inceptchain (Wed, 05 Jun 2019 21:50:02 GMT):
[fabsdk/fab] 2019/06/05 21:49:38 UTC - txn.sendBroadcast -> DEBU Receive Error Response from orderer: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [orderer1.Vitalnotes.com:7050]

inceptchain (Wed, 05 Jun 2019 21:51:15 GMT):
I think its something to do with the discovery configuration basically there seems to be an endpoint missing for the orderer, but I didnt see any place to configure an external endpoint.

florianc (Thu, 06 Jun 2019 06:39:13 GMT):
test

florianc (Thu, 06 Jun 2019 06:40:58 GMT):
@harishbm34 Hi. For an unknown reason, I get error 400 when I try to answer in thread, so here I am: You should not store your huge amount of data in the blockchain. It is not meant for that. Instead, you could store your actual data in a classic way and use the blockchain to authenticate these data (use a hash of your data or whatever system is the best for you). There are plenty articles about it on Internet.

knagware9 (Thu, 06 Jun 2019 07:52:44 GMT):
yes , you can chooose Java to write chaincode and SDK to build application , check this https://github.com/siyuyifang/balance-transfer-java

adarshaJha (Thu, 06 Jun 2019 10:31:57 GMT):
is there any online demo resource to setup multiple orderers using raft ?

Abrara (Thu, 06 Jun 2019 12:32:39 GMT):
https://medium.com/coinmonks/hyperledger-fabric-the-taste-of-raft-4f9f0df20b5e This one is based on the byfn with raft

klkumar369 (Thu, 06 Jun 2019 12:33:32 GMT):
What is the best way(s) to increase the throughput of transactions (say 1000/sec). I read somewhere, throughput can be increased by adding more peers. But are there any other strategies/methods? Appreciate your ideas.

klkumar369 (Thu, 06 Jun 2019 12:33:32 GMT):
What is the best way(s) to increase the throughput of transactions (say 1000/sec). I read somewhere, throughput can be increased by adding more peers. But are there any other strategies/methods/tips? Appreciate your ideas!

adarshaJha (Thu, 06 Jun 2019 12:57:06 GMT):
i'M GETTING THIS ERROR : Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org1MSP but was in the read set !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed I am following the tutorial link that you posted in the #fabric-questions

rjones (Thu, 06 Jun 2019 13:55:38 GMT):
Has left the channel.

klkumar369 (Thu, 06 Jun 2019 18:00:32 GMT):
throughput

HLFPOC (Thu, 06 Jun 2019 18:23:26 GMT):
I have one doubt regarding the network design for my use-case which I want to get clarified here. In my use-case, I have 2 organizations (lets say org1 & org2) and they want to do some transactions between them, so I will create one channel between them (lets call it channel_1) and install the chaincode on the endorsing peers. Now, based on the transactions in channel_1, org2 wants to create new type of transactions which should be private and visible only to org2, so shall I create a new channel (channel_2) in which org2 will be the only member or shall I use private data collection with org2's configuration and post the private transaction data of org2 under that collection?. Just wanted to understand what should be the best approach for this scenario.

spmcnamara (Thu, 06 Jun 2019 22:25:36 GMT):
@HLFPOC I would think your first option (new channel with org2 as the only member) would be the preferable way to go, since it allows you to fairly easily expand the number of parties with access to that particular ledger's data by adding them to the channel. That said, it seems like either method would work.

DarwinHarianto (Fri, 07 Jun 2019 00:37:23 GMT):
Hello team, should I use kubernetes on fabric? I wonder, how do you set them up, if I have 1 peer in A, 1 peer in B, then both of them on kubernetes?

DarwinHarianto (Fri, 07 Jun 2019 01:05:24 GMT):
Hello guys, where can I see example of fabric and kubernetes? I searched on medium, can't find a working one

hamza8070 (Fri, 07 Jun 2019 02:11:48 GMT):
Has joined the channel.

hamza8070 (Fri, 07 Jun 2019 02:11:49 GMT):
https://medium.com/free-code-camp/how-to-build-a-blockchain-network-using-hyperledger-fabric-and-composer-e06644ff801d i want to run this example but this error comes twork install --archiveFile cards-trading-network@0.0.1.bna --card PeerAdmin@hlfv1 ✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline command failed

HLFPOC (Fri, 07 Jun 2019 04:22:15 GMT):
Thanks for your inputs, I have also considered the first approach of creating a separate channel for org2, and everything is working fine, the only issue which I am facing right now is connecting this network with hyperledger explorer. The dashboard of explorer lists down only the first channel details and it seems like second channel details are not being shared by fabric to the explorer services, although I am able to do transactions in both the channels using SDK application. Any idea how can we make second channel discover-able so that explorer can also pick it?

HLFPOC (Fri, 07 Jun 2019 04:49:28 GMT):
What is the parameter to decide on how many nodes should be there to configure Raft based ordering service? Should we go by the formula of 2f + 1 or should we consider number of organizations present in the network ? I was going through the BYFN sample with RAFT settings and there are 5 ordering nodes for 2 organizations, so how should we proceed with deployment of these nodes in actual production environment ? Basically I want to understand , who will own the (infra) raft ordering nodes in production environment?

DarwinHarianto (Fri, 07 Jun 2019 05:07:45 GMT):
I believe its better to just use that formula. if you think up to 2 orderer can be down, just use 5

HLFPOC (Fri, 07 Jun 2019 05:10:04 GMT):
Thanks for your inputs, but if the network has only 2 or 3 organizations, then who will own the responsibility of hosting the remaining raft orderer nodes ?

DarwinHarianto (Fri, 07 Jun 2019 05:17:18 GMT):
I think its better to put all the orderers in another environment, not the same as the peers

HLFPOC (Fri, 07 Jun 2019 05:24:05 GMT):
I was going through one of the blog about how fabric can now be fully decentralized by having RAFT ordering service, and below lines were mentioned in that article : "it (raft based ordering service) does get you one step closer to decentralization of the ordering service because with the removal of the dependency on Kafka and Zookeeper, having ordering nodes run by different organizations now makes sense". So I assume that RAFT nodes should be owned by participating organizations, rather than having a separate org/environment to handle ordering services (like we do in kafka based OSN).

HLFPOC (Fri, 07 Jun 2019 05:28:27 GMT):
@lehors can you please share your thoughts/inputs on this ?

DarwinHarianto (Fri, 07 Jun 2019 05:51:12 GMT):
ah you are right, maybe its better to divide the ordering service for each orgs?

HLFPOC (Fri, 07 Jun 2019 06:23:30 GMT):
Yes that can be one way of distributing ordering nodes across the network, but not sure if this approach is correct or not.

florianc (Fri, 07 Jun 2019 06:26:58 GMT):
It seems to make sense. If you set the orderers in one org only, if this org goes down for any reason, your blockchain(s) is stuck and won't be able to do anything until the org goes up again. If you split your orderers, any org can go down without really impacting the network as other orderer from other orgs can do the job.

Abrara (Fri, 07 Jun 2019 09:24:27 GMT):
Hello, I'm having a cannot find package error when importing the lib cid into my chaincode as shown in https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode/shim/ext/cid I tried the proposed solution here https://stackoverflow.com/questions/49560104/cannot-find-package-cid-in-goroot-or-gopath but it doesn't change a thing, could it be the ccenv image?

MuhammadSalah (Fri, 07 Jun 2019 09:27:41 GMT):
Vendor the lib, using any of vendoring tools (dep is what I recommend)

MuhammadSalah (Fri, 07 Jun 2019 09:27:41 GMT):
Confirmed, thanks for the tip.

MuhammadSalah (Fri, 07 Jun 2019 09:33:40 GMT):
Elaborating on this, yes it's the ccenv image; it is stripped to the minimal which is good. It's a good practice to vendor all your dependencies, which guarantees reproducibility of your binary; this is something you really should focus on while building a smart contract at the end of the day, you don't want the image to be pulling code from github.

Abrara (Fri, 07 Jun 2019 09:39:55 GMT):
Thanks, I'll look into vendors. Following this logic I don't get why we have dependencies such as shim then. Shouldn't it be an all or nothing?

MuhammadSalah (Fri, 07 Jun 2019 09:41:28 GMT):
Shim is important to create a chaincode server that replies back to the peer instance once you submit transactions. It works as following in nutshell: clientSDK --> PEER --> ChaincodeVM (Docker Image / GRPC server) that's the part of simulating the transaction of course.

Abrara (Fri, 07 Jun 2019 09:42:49 GMT):
that I get, but it's pulled from github too no? so the premices of not pulling code from github is already broken

MuhammadSalah (Fri, 07 Jun 2019 09:48:53 GMT):
It's yes pulled from github, but you already have a built image that supplies this dependency, that's considered a trusted codebase/image. In the runtime, you don't need to issue any go get (pull code) in order to compile the binary. Vendoring your libs, will also include your external libs such as CID in this case, and simply the image will only compile the binary and run it; and that should be reproducible.

MuhammadSalah (Fri, 07 Jun 2019 09:52:32 GMT):
All I want to say is, you don't need to modify the image for example, not to override it, and issue a go get -d thinking that might be solving all your problems, because it most likely will, but still introduces you to the risk of pulling changing code, and not creating a reproducible binary that you already tested.

MuhammadSalah (Fri, 07 Jun 2019 09:53:39 GMT):
I hope this was clear enough, why you should only vendor it; not to share a volume with a codebase, not to intervine with the image in anyway.

Abrara (Fri, 07 Jun 2019 09:53:58 GMT):
yes very helpful, thanks !

MuhammadSalah (Fri, 07 Jun 2019 09:54:49 GMT):
You are welcome!

Abrara (Fri, 07 Jun 2019 09:54:50 GMT):
I just find it weird that the CID is not considered as part of the minimal tbh x_

MuhammadSalah (Fri, 07 Jun 2019 09:55:56 GMT):
I have been away from Fabric for a decent amount of time (few months). I find a lot of changes, but actually this is all for the better in my humble opinion. Minimal is what is only required to run, you don't need CID for that.

K1L14N (Fri, 07 Jun 2019 09:56:06 GMT):
Hello, i want to call a chaincode method with sensible parameters. Are all peers going to be aware of the parameters ?

florianc (Fri, 07 Jun 2019 09:56:28 GMT):
Yes

florianc (Fri, 07 Jun 2019 09:57:11 GMT):
Input parameters are present in the blocks. So every single peer that maintains the ledger will possibly know these data.

K1L14N (Fri, 07 Jun 2019 09:57:44 GMT):
ok thank you, do you know how i can access these parameters ?

Abrara (Fri, 07 Jun 2019 09:57:52 GMT):
mmmh, yeah, I guess I see the whole thing too much as a developer & operator but not just as an easy way to get a minimal poc. Thanks again :)

florianc (Fri, 07 Jun 2019 09:58:21 GMT):
In the blocks? It is somewhere in the transaction information. I don't know the exact structure.

K1L14N (Fri, 07 Jun 2019 09:58:58 GMT):
ok are they encoded or in plain text somehow ?

K1L14N (Fri, 07 Jun 2019 10:01:24 GMT):
i found the blocks, the informations is "encoded" using configtxlator

K1L14N (Fri, 07 Jun 2019 10:01:34 GMT):
thank you florianc have a good day

MuhammadSalah (Fri, 07 Jun 2019 10:03:37 GMT):
dep/govendor will make your life very easy, no need to worry about that. also this is very good, if you are planning to run Fabric in an offline (Isolated) environment or a DMZ.

davidkel (Fri, 07 Jun 2019 10:08:32 GMT):
I use the cid package in my sample go chaincode and I've never had to vendor it in. I just declare it as ``` "github.com/hyperledger/fabric/core/chaincode/shim/ext/cid" ``` Note I am using fabric 1.4

MuhammadSalah (Fri, 07 Jun 2019 10:10:43 GMT):
Oh, it's replaced. Thanks for the tip.

Abrara (Fri, 07 Jun 2019 11:32:25 GMT):
well, I have this exact line, and it doesn't do it for me :/ fabric1.4.1

YassineAmor (Fri, 07 Jun 2019 11:36:35 GMT):
Hello, is it possible for a chaincode to follow ERC20 standard? If i implement the same functions with the same names and args, will my chaincode be ERC20-compliant or does it need to be deployed on the ETH network for a token to be considered as ERC20-compliant

tejateja (Fri, 07 Jun 2019 12:04:14 GMT):
Hi, fabric network having one channel, with two organization and each organization having two peers. How to check peers and transaction history.

root10 (Fri, 07 Jun 2019 12:55:26 GMT):
Has joined the channel.

root10 (Fri, 07 Jun 2019 12:55:27 GMT):
Hi guys. I have a problem with many insert (over 50.000) and each of it is processed in a goroutine. In which way I have to configure the network/write the chaincode/backend? In which channel should I ask? Thanks

pleerock (Fri, 07 Jun 2019 13:04:13 GMT):
Hey guys, can someone help how to specify a contract name using `fabric-shim` node library?

Niklaskkkk (Fri, 07 Jun 2019 13:05:40 GMT):
Hi! Does anyone know documentation that explains more about Hyperledgers private channels? How, technically, do they become private? I have tried to search the official docs, withouth results

Niklaskkkk (Fri, 07 Jun 2019 13:05:40 GMT):
Hi! Does anyone know documentation that explains more about Hyperledgers Fabrics private channels? How, technically, do they become private? I have tried to search the official docs, withouth results

Niklaskkkk (Fri, 07 Jun 2019 13:10:00 GMT):
Does anyone have documentation on how Hyperledger Fabric is used in the platform We.Trade?

Niklaskkkk (Fri, 07 Jun 2019 13:10:00 GMT):
Also, does anyone have documentation on how Hyperledger Fabric is used in the platform We.Trade?

Niklaskkkk (Fri, 07 Jun 2019 13:10:00 GMT):
Also, does anyone have documentation on how Hyperledger Fabric is used in the platform We.Trade? Thanks!

spmcnamara (Fri, 07 Jun 2019 13:47:45 GMT):
Sorry, I haven't been working with explorer so don't have much insight into that. :-(

spmcnamara (Fri, 07 Jun 2019 13:51:32 GMT):
ERC-20 is an Ethereum-specific proposal, but there isn't any reason you couldn't implement those same interfaces in your HLF chaincode, but I'm not sure what you'd gain by doing this. What are you trying to accomplish?

spmcnamara (Fri, 07 Jun 2019 13:54:23 GMT):
The proper channel would be dependent on what your specific question is, but this would be a good place to start. What is the problem you are having? If you are just asking "How do I do this?", the answer will most likely be "look at the sample apps" so it's better to have a specific question.

spmcnamara (Fri, 07 Jun 2019 13:56:41 GMT):
I'm not sure I understand your question. When you say "how to specify a contract name", do you really mean "how do I invoke a specific chaincode"?

spmcnamara (Fri, 07 Jun 2019 13:57:32 GMT):
What, specifically, do you mean by "check peers and transaction history"?

root10 (Fri, 07 Jun 2019 13:58:03 GMT):
I have a timeout problem maybe. I try to run 25.000 goroutine that insert a struct.

root10 (Fri, 07 Jun 2019 13:58:30 GMT):
This are some errors in peer log: ```bash 2019-06-06 13:27:52.711 UTC [chaincode] HandleTransaction -> ERRO 28e8e [5803343e] Failed to handle PUT_STATE. error: no ledger context github.com/hyperledger/fabric/core/chaincode.(*Handler).isValidTxSim /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:545 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:259 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 PUT_STATE failed: transaction ID: 5803343ead5d8c64f26a3a98f08cd214c47236c5c23cf9be69d562e2cd477431 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:276 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 ``` ```bash 2019-06-06 13:25:34.840 UTC [chaincode] HandleTransaction -> ERRO 24328 [7e618958] Failed to handle GET_STATE. error: no ledger context github.com/hyperledger/fabric/core/chaincode.(*Handler).isValidTxSim /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:545 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:259 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 GET_STATE failed: transaction ID: 7e6189587bb77a72ab9e911402de1a46f0b2653e00280072ed2719a0b43a6c48 github.com/hyperledger/fabric/core/chaincode.(*Handler).HandleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:276 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 ``` ```bash error sending failed to execute transaction 56efc78ac84f99c44d79dc43441ff4b2b88434b27775f3f2f003e209a4555592 github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:244 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:147 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:142 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:237 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:456 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler.func1 /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:169 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:31 github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpclogging/server.go:91 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:30 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:39 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:171 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:982 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1208 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 ```

KartikChauhan (Fri, 07 Jun 2019 14:02:13 GMT):
I'm trying out the wallet classes introduced in Hyperledger Fabric v1.4. All the wallet classes work fine except for `HSMWalletMixin`. I couldn't understand the working of it. There's not much info available about it in the official documentation or in sdk docs. It says in the docs > currently you should use the FileSystemWallet class in combination with the HSMWalletMixin class to manage HSM wallets. There's no working example from where I could take any help. I've no idea how to use these two classes together. Plus, isn't there any option of configuring `HSMWalletMixin` class with AWS CloudHSM currently?

spmcnamara (Fri, 07 Jun 2019 14:03:32 GMT):
If you are running 25k simultaneous transaction, I wouldn't be surprised if you are hitting timeouts. What is your timeout threshold set to? Also, are you running a Kafka-based setup? Given the throughput you are talking about, that might be necessary.

root10 (Fri, 07 Jun 2019 14:07:05 GMT):
`What is your timeout threshold set to?` where I read/set it? This is my block config ```yaml Orderer: &OrdererDefaults OrdererType: solo BatchTimeout: 2s BatchSize: MaxMessageCount: 100 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB ```

spmcnamara (Fri, 07 Jun 2019 14:07:14 GMT):
@Abrara Did you look in your GOSRC to make sure those files are really there? I had a problem at one point because I was looking at older docs and the path had changed...

Niklaskkkk (Fri, 07 Jun 2019 14:07:51 GMT):
Hi! Do Orderer nodes see transaction content? How is this related to GDPR for companies transacting in Fabric that do not have their own orderer node? Will a different organization which then run the orderer node gain access to another companys transactions?

Abrara (Fri, 07 Jun 2019 14:12:42 GMT):
They are on my local machine, and I couldn't find them on the peers / cli (I used docker FWIW)

MuhammadSalah (Fri, 07 Jun 2019 14:16:05 GMT):
code is not on peer anymore neither go compiler.

MuhammadSalah (Fri, 07 Jun 2019 14:16:52 GMT):
but I do find the package under /go/src/github.com bla bla

MuhammadSalah (Fri, 07 Jun 2019 14:16:58 GMT):
in the ccenv

MuhammadSalah (Fri, 07 Jun 2019 14:18:08 GMT):
it should be compiling; if not please show the docker logs of the chaincode container instance.

MuhammadSalah (Fri, 07 Jun 2019 14:19:12 GMT):
and as far as I recal your line was the old one with lib not ext

MuhammadSalah (Fri, 07 Jun 2019 14:19:34 GMT):
that got me so tricked; things change :D

Abrara (Fri, 07 Jun 2019 14:21:54 GMT):
the dev-peer container? If yes, he's not up, the problem occures for the installation of the smart contract, log of the script (byfn.sh) below: `+ echo 'Installing smart contract on peer0.org1.example.com' Installing smart contract on peer0.org1.example.com + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_ADDRESS=peer0.org1.example.com:7051 -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt cli peer chaincode install -n fabcar -v 1.0 -p github.com/chaincode/fabcar/go -l golang 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode code fabcar: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: command : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim/ext/cid" in any of: /opt/go/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOPATH)`

Abrara (Fri, 07 Jun 2019 14:21:54 GMT):
the dev-peer container? If yes, he's not up, the problem occures for the installation of the smart contract, log of the script (byfn.sh) below: `+ echo 'Installing smart contract on peer0.org1.example.com' Installing smart contract on peer0.org1.example.com + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_ADDRESS=peer0.org1.example.com:7051 -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt cli peer chaincode install -n fabcar -v 1.0 -p github.com/chaincode/fabcar/go -l golang 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode code fabcar: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: command : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim/ext/cid" in any of: /opt/go/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOROOT)` /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOPATH)`

Abrara (Fri, 07 Jun 2019 14:21:54 GMT):
the dev-peer container? If yes, he's not up, the problem occures for the installation of the smart contract, log of the script (byfn.sh) below: ``+ echo 'Installing smart contract on peer0.org1.example.com' Installing smart contract on peer0.org1.example.com + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_ADDRESS=peer0.org1.example.com:7051 -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt cli peer chaincode install -n fabcar -v 1.0 -p github.com/chaincode/fabcar/go -l golang 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-06-07 12:47:34.813 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode code fabcar: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: command : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/core/chaincode/shim/ext/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim/ext/cid" in any of: /opt/go/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOROOT)` /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/ext/cid (from $GOPATH)``

spmcnamara (Fri, 07 Jun 2019 14:22:45 GMT):
That seems really strange. Don't all those components get bundled into the chaincode package? I haven't figured out how to unpack those yet, but it seems possible.

MuhammadSalah (Fri, 07 Jun 2019 14:24:11 GMT):
I would recommend tearing down the dev images deleting them

MuhammadSalah (Fri, 07 Jun 2019 14:24:16 GMT):
thats a first

Abrara (Fri, 07 Jun 2019 14:24:28 GMT):
I tried to docker rmi the ccenv images

MuhammadSalah (Fri, 07 Jun 2019 14:24:32 GMT):
second docker system prune -f

Abrara (Fri, 07 Jun 2019 14:24:46 GMT):
not the other ones tho, I'll give it a shot I guess

MuhammadSalah (Fri, 07 Jun 2019 14:25:24 GMT):
well in peer code it does the following: 1 find a chaincode vm with network id peer id chaincode name version

MuhammadSalah (Fri, 07 Jun 2019 14:25:50 GMT):
so if you did not so that; most likely you are hitting an old cache

MuhammadSalah (Fri, 07 Jun 2019 14:26:01 GMT):
docker image cache

MuhammadSalah (Fri, 07 Jun 2019 14:26:08 GMT):
for dev peer

MuhammadSalah (Fri, 07 Jun 2019 14:26:24 GMT):
deleting ccenv is irrelevant

MuhammadSalah (Fri, 07 Jun 2019 14:26:48 GMT):
would only slow down your next clean build

MuhammadSalah (Fri, 07 Jun 2019 14:27:15 GMT):
do that and give it a shot

MuhammadSalah (Fri, 07 Jun 2019 14:27:27 GMT):
docker rmi dev-peer*

Abrara (Fri, 07 Jun 2019 14:27:38 GMT):
I only have one tho

MuhammadSalah (Fri, 07 Jun 2019 14:27:41 GMT):
docker system prune -f

MuhammadSalah (Fri, 07 Jun 2019 14:28:08 GMT):
to clean up all orphan image cache unused docker networks

MuhammadSalah (Fri, 07 Jun 2019 14:28:15 GMT):
and before that

MuhammadSalah (Fri, 07 Jun 2019 14:28:59 GMT):
docker rm -f $(docker ps -aq)

MuhammadSalah (Fri, 07 Jun 2019 14:29:15 GMT):
that will kill all docker instances running

Abrara (Fri, 07 Jun 2019 14:32:07 GMT):
prune didn't change anything

Abrara (Fri, 07 Jun 2019 14:32:19 GMT):
I mean, it removed images, but still got the error

davidkel (Fri, 07 Jun 2019 14:32:20 GMT):
Suggest you ask in the #fabric-sdk-node channel

MuhammadSalah (Fri, 07 Jun 2019 14:32:35 GMT):
its just a cautionary its fine it should just clear cache and reclaim your resources if any were used up.

MuhammadSalah (Fri, 07 Jun 2019 14:33:13 GMT):
uhmm; can you git clone the fabric samples; run byfn

MuhammadSalah (Fri, 07 Jun 2019 14:33:39 GMT):
make sure everything runs in tact first?

MuhammadSalah (Fri, 07 Jun 2019 14:33:59 GMT):
before we go further thinking with this?

MuhammadSalah (Fri, 07 Jun 2019 14:35:03 GMT):
use a fresh clone please and checkout the v1.4.1

MuhammadSalah (Fri, 07 Jun 2019 14:35:13 GMT):
and run byfn

pleerock (Fri, 07 Jun 2019 14:54:00 GMT):
thanks for reply! If you use `fabric-contract-api`, there is a constructor where you can set contract name (e.g. (`constructor(){ super('UpdateValuesContract'); } `)

pleerock (Fri, 07 Jun 2019 14:54:36 GMT):
How can I achieve same (set a name to a contract) using `fabric-shim` instead of `fabric-contract-api` ?

spmcnamara (Fri, 07 Jun 2019 15:11:10 GMT):
Ah, I understand. Unfortunately, I'm doing all my work in golang, and that uses the shim api (with no "contract" api that I am aware of.)

spmcnamara (Fri, 07 Jun 2019 15:12:06 GMT):
From a quick read, it looks like the node Contract library sits on top of the shim library and provides some higher-level abstractions (like contract).

spmcnamara (Fri, 07 Jun 2019 15:12:42 GMT):
At the shim level, there is really only chaincode and it's invocation.

spmcnamara (Fri, 07 Jun 2019 15:13:14 GMT):
Sorry I can't be more helpful. :-(

MattMilligan (Fri, 07 Jun 2019 16:06:56 GMT):
Has joined the channel.

CMan 7 (Fri, 07 Jun 2019 21:14:16 GMT):
Has joined the channel.

CMan 7 (Fri, 07 Jun 2019 21:15:06 GMT):
Hi, does Fabric support user accounts? I.e. Can a peer host more than one identity?

yacovm (Fri, 07 Jun 2019 21:23:03 GMT):
no

inceptchain (Sun, 09 Jun 2019 18:20:15 GMT):
I keep getting errors with the sdk-go tests

inceptchain (Sun, 09 Jun 2019 18:20:19 GMT):
I got these errors: pkg/fab/resource/configtxmsp.go:61:3: shadow: declaration of "err" shadows declaration at line 43 (govet) err := generateCertDir(filepath.Join(mspDir, d.dir), d.certs) ^ pkg/fab/resource/configtx.go:51:1: comment on exported function CreateGenesisBlockForOrderer should be of the form CreateGenesisBlockForOrderer ... (golint) // CreateGenesisBlock creates a genesis block for a channel ^ pkg/fab/resource/configtxmsp.go:25:2: keystore is unused (varcheck) keystore = "keystore" ^ pkg/fab/resource/configtxmsp.go:28:2: configfilename is unused (varcheck) configfilename = "config.yaml" ^ pkg/fab/resource/configtxmsp.go:24:2: signcerts is unused (varcheck) signcerts = "signcerts" ^ pkg/fab/resource/configtxmsp.go:71: G301: Expect directory permissions to be 0750 or less (gosec) err := os.MkdirAll(certDir, 0755) Makefile:292: recipe for target 'unit-test' failed make: *** [unit-test] Error 1

inceptchain (Sun, 09 Jun 2019 18:20:23 GMT):
go version 1.12.3

inceptchain (Sun, 09 Jun 2019 18:20:34 GMT):
latest clone of the go-sdk

inceptchain (Sun, 09 Jun 2019 18:21:22 GMT):
the integration test works fine

inceptchain (Sun, 09 Jun 2019 18:22:03 GMT):
its the unit-test thats giving me problems

singhsourav73 (Sun, 09 Jun 2019 18:30:11 GMT):
Has joined the channel.

singhsourav73 (Sun, 09 Jun 2019 18:30:12 GMT):
how can i know the the kafka version used in hyperledger/fabric-kafka? Is there any document to show which kafka version is used?

singhsourav73 (Sun, 09 Jun 2019 18:30:12 GMT):
how can i know the kafka version used in hyperledger/fabric-kafka? Is there any document to show which kafka version is used?

singhsourav73 (Sun, 09 Jun 2019 18:30:12 GMT):
how can i know the kafka version used in hyperledger/fabric-kafka docker images? Is there any document to show which kafka version is used?

mastersingh24 (Sun, 09 Jun 2019 20:43:32 GMT):
The latest version we published was Kafka 1.0.0 You can always check the Dockerfile: https://github.com/hyperledger/fabric-baseimage/blob/master/images/kafka/Dockerfile.in#L8 or you can run `docker run --rm hyperledger/fabric-kafka:latest ls /opt/kafka/libs|grep kafka` which will list the Kafka libs (which all have the Scala version followed by Kafka version in their names)

yeousunn (Mon, 10 Jun 2019 02:09:34 GMT):
Hi, I am having trouble running orderer when configured to use raft. this is my docker environment ``` - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/home/hyperledger/artifacts/genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/home/hyperledger/fabric-ca/client/orderer/orderer1/msp - ORDERER_FILELEDGER_LOCATION=/home/hyperledger/orderer/orderer1/ledger - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_CERTIFICATE=/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_TLS_ROOTCAS=[/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/tlscacerts/tls-0-0-0-0-7054.pem] - ORDERER_GENERAL_TLS_PRIVATEKEY=/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/keystore/key.pem - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true - ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/keystore/key.pem - ORDERER_GENERAL_CLUSTER_ROOTCAS=[/home/hyperledger/fabric-ca/client/orderer/orderer1/tls-msp/tlscacerts/tls-0-0-0-0-7054.pem] ``` Error: ``` orderer1 | 2019-06-10 02:04:49.948 UTC [orderer.common.server] replicateDisabledChains -> INFO 00c Found 1 inactive chains: [ordererchannel] orderer1 | 2019-06-10 02:04:49.948 UTC [orderer.common.cluster] ReplicateChains -> INFO 00d Will now replicate chains [ordererchannel] orderer1 | 2019-06-10 02:04:49.951 UTC [orderer.common.cluster] createReplicator -> PANI 00e Failed creating puller config from bootstrap block: unable to decode TLS certificate PEM: orderer1 | panic: Failed creating puller config from bootstrap block: unable to decode TLS certificate PEM: orderer1 | orderer1 | goroutine 43 [running]: orderer1 | github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000187b80, 0x0, 0x0, 0x0) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 orderer1 | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0004a4088, 0x4, 0x1047e13, 0x36, 0xc000861c50, 0x1, 0x1, 0x0, 0x0, 0x0) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 orderer1 | github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0004a4088, 0x1047e13, 0x36, 0xc000861c50, 0x1, 0x1) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 orderer1 | github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc0004a40e8, 0x1047e13, 0x36, 0xc000861c50, 0x1, 0x1) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 orderer1 | github.com/hyperledger/fabric/orderer/common/server.(*replicationInitiator).createReplicator(0xc00032b980, 0xc00013b100, 0xc00058ec10, 0xe) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/onboarding.go:60 +0x30c orderer1 | github.com/hyperledger/fabric/orderer/common/server.(*replicationInitiator).ReplicateChains(0xc00032b980, 0xc00013b100, 0xc00058ea30, 0x1, 0x1, 0x0, 0x0, 0x0) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/onboarding.go:117 +0x1ca orderer1 | github.com/hyperledger/fabric/orderer/common/server.(*inactiveChainReplicator).replicateDisabledChains(0xc0006b1080) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/onboarding.go:224 +0x1f5 orderer1 | github.com/hyperledger/fabric/orderer/common/server.(*inactiveChainReplicator).run(0xc0006b1080) orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/onboarding.go:202 +0x42 orderer1 | created by github.com/hyperledger/fabric/orderer/common/server.initializeEtcdraftConsenter orderer1 | /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:637 +0x3fc orderer1 exited with code 2 ```

bhemeswararaoankireddy (Mon, 10 Jun 2019 06:33:07 GMT):
i have trouble running gulp serve

bhemeswararaoankireddy (Mon, 10 Jun 2019 06:33:13 GMT):

Clipboard - June 10, 2019 12:03 PM

singhsourav73 (Mon, 10 Jun 2019 07:18:07 GMT):
thanks

singhsourav73 (Mon, 10 Jun 2019 07:19:54 GMT):
but why fabric is still using Kafka 1.0.0 when there is higher stable version available? Is there any specific reason?

DarwinHarianto (Mon, 10 Jun 2019 07:24:23 GMT):
I think its better to migrate to raft..

yeousunn (Mon, 10 Jun 2019 08:13:43 GMT):
Hi, anyone faced this issue? ``` initializeMultichannelRegistrar -> INFO 014 Not bootstrapping because of existing chains 2019-06-10 16:12:37.080 CST [orderer.consensus.etcdraft] detectSelfID -> WARN 015 Could not find -----BEGIN CERTIFICATE----- MIICzjCCAnSgAwIBAgIUFYZ7eK1KzRTAYg+UD0vd4AUgfUIwCgYIKoZIzj0EAwIw YDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK EwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMREwDwYDVQQDEwhjYXNlcnZl cjAeFw0xOTA2MTAwODA0MDBaFw0yMDA2MDkwODA5MDBaMHExCzAJBgNVBAYTAlVT MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTEUMBIGA1UEChMLSHlwZXJsZWRnZXIx IDAOBgNVBAsTB29yZGVyZXIwDgYDVQQLEwdvcmRlcmVyMREwDwYDVQQDEwhvcmRl cmVyMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABL31xgnvPS1O3WcSCr1Ru2ZX n+uZZs7+UM8iB27JMchbf4HB+FNtf7gnqnub8HXHLADdbnsKUBGJGIlC4u6H6cCj gfowgfcwDgYDVR0PAQH/BAQDAgOoMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF BQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQPl47i9wR2beL8CljXghzLDM7b zjAfBgNVHSMEGDAWgBTuoHgmpgowN75TMuNF3KzYxIsaVTATBgNVHREEDDAKgghv cmRlcmVyMTBjBggqAwQFBgcIAQRXeyJhdHRycyI6eyJoZi5BZmZpbGlhdGlvbiI6 Im9yZGVyZXIiLCJoZi5FbnJvbGxtZW50SUQiOiJvcmRlcmVyMSIsImhmLlR5cGUi OiJvcmRlcmVyIn19MAoGCCqGSM49BAMCA0gAMEUCIQDAs31/yvxl7RMG6xyXl5nh q3HGRvLphqHTZCGVhk0uaAIgG4PBytkbtKK9tsm5s7bNt6WCCUiFbJ7+p1RJ95aj zU8= -----END CERTIFICATE----- among [-----BEGIN CERTIFICATE----- MIICGDCCAb6gAwIBAgIUHQP4n//MPUg/F/faAlHXO9nDoD0wCgYIKoZIzj0EAwIw YDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK EwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMREwDwYDVQQDEwhjYXNlcnZl cjAeFw0xOTA2MTAwODAzMDBaFw0zNDA2MDYwODAzMDBaMGAxCzAJBgNVBAYTAlVT MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTEUMBIGA1UEChMLSHlwZXJsZWRnZXIx DzANBgNVBAsTBkZhYnJpYzERMA8GA1UEAxMIY2FzZXJ2ZXIwWTATBgcqhkjOPQIB BggqhkjOPQMBBwNCAASuX1BkBoLOgf8iNvSsVhzQqq49WIh1w/6JnaPV1cKqBB+A ch1EtOwrLzY0B8pcmEe160iHDRQJl3VFGLwIo29Vo1YwVDAOBgNVHQ8BAf8EBAMC AQYwEgYDVR0TAQH/BAgwBgEB/wIBATAdBgNVHQ4EFgQU7qB4JqYKMDe+UzLjRdys 2MSLGlUwDwYDVR0RBAgwBocEAAAAADAKBggqhkjOPQQDAgNIADBFAiEAz7aHhEOG NfiqzQheNBoEg/ueWtqZzznFXFZe4qGPkI0CIBlvW93BCOTpXuqMziuQV9Hvk9gO CSONvv1F3CvKsXjz -----END CERTIFICATE----- ] ```

yeousunn (Mon, 10 Jun 2019 08:13:43 GMT):
Hi, anyone faced this issue? ``` initializeMultichannelRegistrar -> INFO 014 Not bootstrapping because of existing chains 2019-06-10 16:12:37.080 CST [orderer.consensus.etcdraft] detectSelfID -> WARN 015 Could not find -----BEGIN CERTIFICATE----- MIICzjCCAnSgAwIBAgIUFYZ7eK1KzRTAYg+UD0vd4AUgfUIwCgYIKoZIzj0EAwIw YDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK EwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMREwDwYDVQQDEwhjYXNlcnZl cjAeFw0xOTA2MTAwODA0MDBaFw0yMDA2MDkwODA5MDBaMHExCzAJBgNVBAYTAlVT MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTEUMBIGA1UEChMLSHlwZXJsZWRnZXIx IDAOBgNVBAsTB29yZGVyZXIwDgYDVQQLEwdvcmRlcmVyMREwDwYDVQQDEwhvcmRl cmVyMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABL31xgnvPS1O3WcSCr1Ru2ZX n+uZZs7+UM8iB27JMchbf4HB+FNtf7gnqnub8HXHLADdbnsKUBGJGIlC4u6H6cCj gfowgfcwDgYDVR0PAQH/BAQDAgOoMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF BQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQPl47i9wR2beL8CljXghzLDM7b zjAfBgNVHSMEGDAWgBTuoHgmpgowN75TMuNF3KzYxIsaVTATBgNVHREEDDAKgghv cmRlcmVyMTBjBggqAwQFBgcIAQRXeyJhdHRycyI6eyJoZi5BZmZpbGlhdGlvbiI6 Im9yZGVyZXIiLCJoZi5FbnJvbGxtZW50SUQiOiJvcmRlcmVyMSIsImhmLlR5cGUi OiJvcmRlcmVyIn19MAoGCCqGSM49BAMCA0gAMEUCIQDAs31/yvxl7RMG6xyXl5nh q3HGRvLphqHTZCGVhk0uaAIgG4PBytkbtKK9tsm5s7bNt6WCCUiFbJ7+p1RJ95aj zU8= -----END CERTIFICATE----- among [-----BEGIN CERTIFICATE----- MIICGDCCAb6gAwIBAgIUHQP4n//MPUg/F/faAlHXO9nDoD0wCgYIKoZIzj0EAwIw YDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK EwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMREwDwYDVQQDEwhjYXNlcnZl cjAeFw0xOTA2MTAwODAzMDBaFw0zNDA2MDYwODAzMDBaMGAxCzAJBgNVBAYTAlVT MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTEUMBIGA1UEChMLSHlwZXJsZWRnZXIx DzANBgNVBAsTBkZhYnJpYzERMA8GA1UEAxMIY2FzZXJ2ZXIwWTATBgcqhkjOPQIB BggqhkjOPQMBBwNCAASuX1BkBoLOgf8iNvSsVhzQqq49WIh1w/6JnaPV1cKqBB+A ch1EtOwrLzY0B8pcmEe160iHDRQJl3VFGLwIo29Vo1YwVDAOBgNVHQ8BAf8EBAMC AQYwEgYDVR0TAQH/BAgwBgEB/wIBATAdBgNVHQ4EFgQU7qB4JqYKMDe+UzLjRdys 2MSLGlUwDwYDVR0RBAgwBocEAAAAADAKBggqhkjOPQQDAgNIADBFAiEAz7aHhEOG NfiqzQheNBoEg/ueWtqZzznFXFZe4qGPkI0CIBlvW93BCOTpXuqMziuQV9Hvk9gO CSONvv1F3CvKsXjz -----END CERTIFICATE----- ] ``` This happens when using raft. solo orderer is working fine.

singhsourav73 (Mon, 10 Jun 2019 08:25:12 GMT):
I have been using Kafka for a very long time and sudden switching to raft is difficult for me especially in the server.

akhilsree07 (Mon, 10 Jun 2019 11:07:03 GMT):
Has joined the channel.

akhilsree07 (Mon, 10 Jun 2019 11:07:04 GMT):
Hi guys I am a beginner in Hyperledger Fabric. Could anyone provide me with a best resource where I can learn to create a DAPP using Hyperledger Fabric. I googled but couldn't find anything productive

akhilsree07 (Mon, 10 Jun 2019 11:26:09 GMT):
I have read the documentation and finding it really scratchy and not able to understand the implementation can anyone help me out with the end to developement using SDK.

akhilsree07 (Mon, 10 Jun 2019 11:26:43 GMT):
Can anyone provide a sample working application source code atleast

adarshaJha (Mon, 10 Jun 2019 12:02:01 GMT):
@akhilsree07 https://github.com/tittuvarghese/HyperLedgerFabricFabCar

adarshaJha (Mon, 10 Jun 2019 12:02:13 GMT):
all the best , happy learning.

tejateja (Mon, 10 Jun 2019 12:36:47 GMT):
Hi guys, Can any one help me to build Fabric network two Organizations and each having two peers.

tejateja (Mon, 10 Jun 2019 12:36:47 GMT):
Hi guys, Can any one help me to build Fabric network with two Organizations and each having two peers.

trinayanbhatt (Mon, 10 Jun 2019 12:40:25 GMT):
Look at the marbles chaincode once, that has used fabric-shim and the contract name is passed in the package.json

tejateja (Mon, 10 Jun 2019 12:41:43 GMT):
can u please share me link

trinayanbhatt (Mon, 10 Jun 2019 12:42:32 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.4/chaincode/marbles02/node

MattiaBolzonella (Mon, 10 Jun 2019 12:50:44 GMT):
Has joined the channel.

MattiaBolzonella (Mon, 10 Jun 2019 12:50:47 GMT):
scratch

trinayanbhatt (Mon, 10 Jun 2019 12:51:33 GMT):
is there anyone who have implemented raft based ordering service in a fully functional hyperledger application

bbonetee (Mon, 10 Jun 2019 13:52:52 GMT):
Has joined the channel.

LeeCherry (Mon, 10 Jun 2019 14:54:29 GMT):
Going out of my mind on this error instantiating the chaincode. Has anyone had this before? `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/@theledger%2ffabric-chaincode-utils failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-10T14_44_12_426Z-debug.log`

LeeCherry (Mon, 10 Jun 2019 14:54:29 GMT):
Going out of my mind on this error instantiating the chaincode. Has anyone had this before? ```Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/@theledger%2ffabric-chaincode-utils failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-10T14_44_12_426Z-debug.log```

davidkel (Mon, 10 Jun 2019 16:40:57 GMT):
EAI_AGAIN means DNS Lookup failure in the chaincode image builder container.

davidkel (Mon, 10 Jun 2019 16:40:57 GMT):
EAI_AGAIN means DNS Lookup failure in the chaincode image builder container. Your docker environment can't resolve hostnames

Antimttr (Mon, 10 Jun 2019 21:57:31 GMT):
So what is the best way to generate an msp without using cryptogen?

Antimttr (Mon, 10 Jun 2019 22:06:52 GMT):
https://lists.hyperledger.org/g/fabric/topic/30552669

Antimttr (Mon, 10 Jun 2019 22:07:03 GMT):
seems like other people are having problems with this as well

Antimttr (Mon, 10 Jun 2019 22:09:50 GMT):
does seem like some have gotten it working, however: https://lists.hyperledger.org/g/fabric/topic/30212013?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,30212013

Antimttr (Mon, 10 Jun 2019 22:21:27 GMT):
hmm

Antimttr (Mon, 10 Jun 2019 22:21:38 GMT):
seems like just using openssl libraries directly is the best way to go

scott_boone (Mon, 10 Jun 2019 22:31:34 GMT):
Has joined the channel.

ooojerryooo (Tue, 11 Jun 2019 03:06:02 GMT):
`2019-06-11T02:56:25.992539967Z 2019-06-11 02:56:25.992 UTC [orderer.consensus.etcdraft] TakeSnapshot -> WARN 0d3 Raft entries prior to 7 are already purged channel=secchannel node=1 `

ooojerryooo (Tue, 11 Jun 2019 03:06:34 GMT):
why happen?

novus_sangius (Tue, 11 Jun 2019 04:02:12 GMT):
Has joined the channel.

mustafahusain (Tue, 11 Jun 2019 06:32:51 GMT):
Has joined the channel.

LeeCherry (Tue, 11 Jun 2019 06:42:45 GMT):
Yet curl works?

davidkel (Tue, 11 Jun 2019 06:43:13 GMT):
Are you running curl from inside a docker container ?

LeeCherry (Tue, 11 Jun 2019 06:46:44 GMT):
Well, I am using k8s, so running curl from inside the same peer pod that I am instantiating the chaincode on

davidkel (Tue, 11 Jun 2019 06:48:20 GMT):
I'm not that familiar with K8s but EAI_AGAIN is a problem trying to resolve hostnames from within the chaincode builder container that the peer starts up using docker

LeeCherry (Tue, 11 Jun 2019 06:52:49 GMT):
So does the instantiation spin up another container? I thought, and maybe just assumed that the instantiation builds the cc and part of that is an npm install but all of that takes place in the same pod.

LeeCherry (Tue, 11 Jun 2019 06:53:11 GMT):
How does it work in Docker?

davidkel (Tue, 11 Jun 2019 06:53:52 GMT):
Fabric will invoke docker to start a container from the ccenv image. This is used to build chaincode and where the npm install is run

davidkel (Tue, 11 Jun 2019 06:55:34 GMT):
If I remember correctly some K8s providers changed some network parameters causing this container issues. There was a Jira for fabric to address this in the way it starts this container but it wasn't fixed. So this could be your problem

LeeCherry (Tue, 11 Jun 2019 06:56:26 GMT):
and once that image has been pulled and the cc built, do the artifacts then get shipped back to the peer and the image destroyed?

LeeCherry (Tue, 11 Jun 2019 06:56:26 GMT):
Once that image has been pulled and the cc built, do the artifacts then get shipped back to the peer and the image destroyed?

LeeCherry (Tue, 11 Jun 2019 06:56:26 GMT):
Once that image has been pulled and the cc built, do the artifacts then get shipped back to the peer and the container destroyed?

davidkel (Tue, 11 Jun 2019 06:56:59 GMT):
Yes

davidkel (Tue, 11 Jun 2019 06:57:12 GMT):
This may be the cause of your issue https://jira.hyperledger.org/browse/FAB-12465

LeeCherry (Tue, 11 Jun 2019 06:59:28 GMT):
Yes, that looks like it could be the same issue. Yet no fix? Do you know where I can find the config / code which calls the hyperledger/fabric-ccenv image?

LeeCherry (Tue, 11 Jun 2019 07:00:15 GMT):
Currently deploying all of this using the aid:tech helm charts

davidkel (Tue, 11 Jun 2019 07:00:46 GMT):
I don't know where to find the code off hand, sorry

LeeCherry (Tue, 11 Jun 2019 07:01:29 GMT):
No probs, you have been so helpful, really appreciate your responses, I at least have a direction to investigate more

davidkel (Tue, 11 Jun 2019 07:01:44 GMT):
:thumbsup:

Randyshu2018 (Tue, 11 Jun 2019 07:33:00 GMT):
Hi,how to determine a acl policy that a transaction needed and then meeting the requirement of acl policy before send them.

florianc (Tue, 11 Jun 2019 07:50:28 GMT):
Hello. What do you mean by ACL for a transaction?

Randyshu2018 (Tue, 11 Jun 2019 07:53:58 GMT):
for example , add a org to channel need majority of admins

Randyshu2018 (Tue, 11 Jun 2019 07:54:16 GMT):
for example , add a org to channel need majority of admins

MuhammadSalah (Tue, 11 Jun 2019 08:04:12 GMT):
These are Channel Policies; you can find a good example for it on the first-network creation; which specifies channel policy, and application policy.

MuhammadSalah (Tue, 11 Jun 2019 08:04:31 GMT):
Namely the file "configtx.yaml"

Randyshu2018 (Tue, 11 Jun 2019 08:08:48 GMT):
in other words ,there are no apis for me to get determined acl policy but can construct one by myself .right?

MuhammadSalah (Tue, 11 Jun 2019 08:10:02 GMT):
It's present already in channel configurations, so it's present in the block, just query the block. There is an api for it.

MuhammadSalah (Tue, 11 Jun 2019 08:11:29 GMT):
If you performed the extended scenario in the Build Your First Network, you have already fiddled a bit with the block configuration, simply, you will find Channel:Policies: Application:Policies: In JSON format after translation, more or less if I recall correctly.

Randyshu2018 (Tue, 11 Jun 2019 08:16:39 GMT):

Clipboard - June 11, 2019 4:13 PM

MuhammadSalah (Tue, 11 Jun 2019 08:18:50 GMT):
I don't understand what that logs stand for? I realize you encounter a problem, but I don't understand what do you really want to achieve?

yeousunn (Tue, 11 Jun 2019 08:21:05 GMT):
anyone?

Randyshu2018 (Tue, 11 Jun 2019 08:25:16 GMT):
I want to know create-channel、join-channel、install-chaincode、instantiate-chaincode and channel-config-update's acl policy

Randyshu2018 (Tue, 11 Jun 2019 08:26:12 GMT):
and then want to know some of them has been satisfy(majority admins)?

MuhammadSalah (Tue, 11 Jun 2019 08:26:34 GMT):
Follow same tutorial, and instead of adding organization, you don't do the organization related stuff. You simply, fetch the config, modify it to your needs, calculate the delta, sign, and submit.

Randyshu2018 (Tue, 11 Jun 2019 08:29:05 GMT):
I realize it in a simple way .but in specific scenario,every admin need to sign a proposal offline

MuhammadSalah (Tue, 11 Jun 2019 08:29:41 GMT):
The package will have to be transferred offline accordingly then.

MuhammadSalah (Tue, 11 Jun 2019 08:30:08 GMT):
That's only required in the signing stage.

Randyshu2018 (Tue, 11 Jun 2019 08:31:46 GMT):
yes,if a proposal need five admins sign before send,how can i determine some of them has signed?

MuhammadSalah (Tue, 11 Jun 2019 08:32:38 GMT):
Ah, I understand you now. You want to inspect a signed package, for those who have already signed it?

Randyshu2018 (Tue, 11 Jun 2019 08:32:48 GMT):
yes.

MuhammadSalah (Tue, 11 Jun 2019 08:35:21 GMT):
I am not sure if there is an API for that.

Randyshu2018 (Tue, 11 Jun 2019 08:36:27 GMT):
so I can use a centralized application to record which admin has signed for it?

MuhammadSalah (Tue, 11 Jun 2019 08:40:20 GMT):
As mentioned in the docs, it follows a pass it along system. You may create an application yes to facilitate the signing or the sharing of the object. However, it can be inspectable, I will get to you now, just need to figure it out.

MuhammadSalah (Tue, 11 Jun 2019 08:46:37 GMT):
The signing is an ECDSA signature, so I believe you can work it accordingly, via some utility.

MuhammadSalah (Tue, 11 Jun 2019 08:47:52 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/cmd/common/signer/signer.go

Randyshu2018 (Tue, 11 Jun 2019 08:51:43 GMT):
:thumbsup: thank you very much.

MuhammadSalah (Tue, 11 Jun 2019 08:51:52 GMT):
Welcome.

santaiwang (Tue, 11 Jun 2019 09:35:06 GMT):
Has joined the channel.

santaiwang (Tue, 11 Jun 2019 09:35:08 GMT):
Is there any option for command "peer" to specify the contract name? for example, this command will query chaincode "mycc" in channel "mychannel" peer chaincode query -C mychannel -n mycc -c '{"Args":["query","e"]}' But I deployed 2 contract into 1 chaincode, I can use function network.getContract() in fabric-network to get specific contract. How to do this with peer command? Thanks!

MuhammadSalah (Tue, 11 Jun 2019 09:57:41 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html

MuhammadSalah (Tue, 11 Jun 2019 09:57:49 GMT):
check the peerchaincode list section

superafro12 (Tue, 11 Jun 2019 09:59:17 GMT):
Has joined the channel.

superafro12 (Tue, 11 Jun 2019 09:59:18 GMT):
Hi beautiful people! I'm working with a project were we have a Fabric network up and running, 2 orgs, 2 orderers and 2 peers (this might be extended in the future). We are now looking for the best way to store files on the blockchain. The best would be if we could store them on the peers in couchDB like any other transaction data. The files will be in formats such as .doc .pdf .txt and in sizes for multi MB. Anyone that has experience with this and knows best praxis here? 🙂 Thanks, Theodor

ghatdev (Tue, 11 Jun 2019 10:05:50 GMT):
Has joined the channel.

ghatdev (Tue, 11 Jun 2019 10:06:01 GMT):
Hello! I have a question about fabric Event. After fabric 1.1.*, payload sent with SetEvent(eventName, Payload) does not work. Payload is empty. Does fabric not support to send payload by event ?

santaiwang (Tue, 11 Jun 2019 10:06:43 GMT):
But I want to execute query within specific contract( call contract method). "peer chaincode list" will get the different contract name, I want to know how to specify contract name in command "peer chaincode query"

MuhammadSalah (Tue, 11 Jun 2019 10:09:12 GMT):
No that is not possible, you can prorvide this functionality as a common courtesy inside your chaincode. The chaincode works only through payload as bytes via the invoke and query. The methods in your contract, are merely some logic you add to it, and you provide if conditioning/switch case depending on the first string word in the arguments that is by convention named function.

MuhammadSalah (Tue, 11 Jun 2019 10:10:15 GMT):
So you could create some discovery fu

MuhammadSalah (Tue, 11 Jun 2019 10:10:15 GMT):
So you could create some discovery function for example, that returns method names and exepcted arguments, and output in whatever proper format.

MuhammadSalah (Tue, 11 Jun 2019 10:13:44 GMT):
I think I understood you wrong, the flag "-n" specifies the chaincode name for a specific channel.

MuhammadSalah (Tue, 11 Jun 2019 10:14:15 GMT):
and it runs the latest version on the channel.

adarshaJha (Tue, 11 Jun 2019 10:24:16 GMT):
superafro12 yes that's possible and i would suggest you to use ansible fabric starter for this and convert files into hex using any server side language and store it on blockchain. it will save space. #fabric-questions

adarshaJha (Tue, 11 Jun 2019 10:24:16 GMT):
It seems that I found something - maybe cumbersome, but better than nothing: Command: docker logs -f peer0.org1.example.com 2>&1 | grep blockNo Check for the "latest" line in the output, something like: 2017-07-18 19:40:39.586 UTC [historyleveldb] Commit -> DEBU b75b Channel [mychannel]: Updates committed to history database for blockNo [34] So, if I am not wrong, in this case the block height is: 34

neneg (Tue, 11 Jun 2019 11:06:10 GMT):
Hi guys! I am trying to visualize blocks in Angular using Nodejs block listener... can anyone help me with the server side code? Is there any example code any where?

neneg (Tue, 11 Jun 2019 11:06:10 GMT):
Thanks for your reply florianc. Can I use fabric client event listener instead of the fabric network one? (https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html)....what is the difference between the two actually?

florianc (Tue, 11 Jun 2019 11:09:52 GMT):
https://fabric-sdk-node.github.io/release-1.4/tutorial-listening-to-events.html

fsoares (Tue, 11 Jun 2019 11:18:36 GMT):
Has joined the channel.

fsoares (Tue, 11 Jun 2019 11:18:37 GMT):
Hello, I'm having troubles installing the dependencies on the application part of the Fabric Documentation Commercial Paper tutorial. Running npm install gives an error with this in logs: 8042 error code ELIFECYCLE 8043 error errno 1 8044 error grpc@1.17.0 install: node-pre-gyp install --fallback-to-build --library=static_library 8044 error Exit status 1 8045 error Failed at the grpc@1.17.0 install script. 8045 error This is probably not a problem with npm. There is likely additional logging output above. 8046 verbose exit [ 1, true ] anyone know how to solve this?

nmutter (Tue, 11 Jun 2019 11:24:25 GMT):
Is there some network-connection/firewall article? Who connects to who? I'm asking as I need to setup firewall rules and I'm not sure what connections have to be possible. E.g. who initiates the connection between peers and orderer? Does the peer connect to the orderer or the other way around? Or maybe both? Not sure where I can find informations like that.

neneg (Tue, 11 Jun 2019 11:35:24 GMT):
Thanks for your reply florianc. Can I use fabric client event listener instead of the fabric network one? (https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-events.html)....what is the difference between the two actually?

florianc (Tue, 11 Jun 2019 11:36:37 GMT):
Yes you can. fabric-network provides abstraction, fabric-client is "low level" SDK. But so far fabric-network does not provide all the functionalities fabric-network does (and fabric-network is kind of bugued and/or documentation is not complete)

florianc (Tue, 11 Jun 2019 11:36:37 GMT):
Yes you can. fabric-network provides abstraction, fabric-client is "low level" SDK. But so far fabric-network does not provide all the functionalities fabric-client does (and fabric-network is kind of bugued and/or documentation is not complete)

neneg (Tue, 11 Jun 2019 11:39:52 GMT):
perfect thanks :)

peerzet3 (Tue, 11 Jun 2019 11:49:57 GMT):
Has joined the channel.

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca?

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user.

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel.

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel. ``` const adminIdentity = gateway.getCurrentIdentity(); const secret = await fabricCaClient.register({ enrollmentID: 'MYUSER', role: 'client', attrs: [ { name: 'Admin', value: 'true', ecert: true }] }, adminIdentity); const enrollment = await fabricCaClient.enroll({ enrollmentID: 'MYUSER', enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import('MYUSER', userIdentity); ``` Such created user is not admin :(

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel. ``` const adminIdentity = gateway.getCurrentIdentity(); const secret = await fabricCaClient.register({ enrollmentID: 'MYUSER', role: 'client', attrs: [ { name: 'admin', value: 'true', ecert: true }] }, adminIdentity); const enrollment = await fabricCaClient.enroll({ enrollmentID: 'MYUSER', enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import('MYUSER', userIdentity); ``` Such created user is not admin :(

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel. ``` const adminIdentity = gateway.getCurrentIdentity(); const secret = await fabricCaClient.register({ enrollmentID: 'MYUSER', role: 'client', attrs: [ { name: 'admin', value: 'true', ecert: true }] }, adminIdentity); const enrollment = await fabricCaClient.enroll({ enrollmentID: 'MYUSER', enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import('MYUSER', userIdentity); ``` Such created user is not admin. Create channel response: ''' { status: 'BAD_REQUEST', info: "error validating channel creation transaction for new channel 'ecmrchannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" } ```

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel. ``` const adminIdentity = gateway.getCurrentIdentity(); const secret = await fabricCaClient.register({ enrollmentID: 'MYUSER', role: 'client', attrs: [ { name: 'admin', value: 'true', ecert: true }] }, adminIdentity); const enrollment = await fabricCaClient.enroll({ enrollmentID: 'MYUSER', enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import('MYUSER', userIdentity); ``` Such created user is not admin. Create channel response: ``` { status: 'BAD_REQUEST', info: "error validating channel creation transaction for new channel 'ecmrchannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" } ```

peerzet3 (Tue, 11 Jun 2019 11:49:58 GMT):
How can i register Admin user for creating channel with fabric-ca, using SDK? I'm trying since few days, and I have BAD_REQUEST all the time, telling me that I'm not ADMIN user. Created user can make queries and send transactions as well. Cannot create channel. ``` const adminIdentity = gateway.getCurrentIdentity(); const secret = await fabricCaClient.register({ enrollmentID: 'MYUSER', role: 'client', attrs: [ { name: 'admin', value: 'true', ecert: true }] }, adminIdentity); const enrollment = await fabricCaClient.enroll({ enrollmentID: 'MYUSER', enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import('MYUSER', userIdentity); ``` Such created user is not admin. Create channel response: ``` { status: 'BAD_REQUEST', info: "error validating channel creation transaction for new channel 'ecmrchannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" } ``` When in my node.js script I set `client.setAdminSigningIdentity(` with keys of Admin user of org1 (created by cryptogen) the channel is created successfully. Of course my Fabric-CA is using ca keys from org1. No idea what's the problem.

MattiaBolzonella (Tue, 11 Jun 2019 12:01:53 GMT):
tls

agc (Tue, 11 Jun 2019 14:06:51 GMT):
Hi everyone! My doubt is the following, everytime I instantiate a chaincode I have the following format in the name of the docker container: dev-peer0.org1.example.com-mycc-0-7d45bb258665f9d477eb6ada737ace604f82820d22fce4b90b3e7e3c9f8a65dc , is it possible to change this format? For example I would like to have as a container and image name "peer0.org1.example.com-mycc:0"

mtng (Tue, 11 Jun 2019 14:07:06 GMT):
Has joined the channel.

krtk6160 (Tue, 11 Jun 2019 15:55:05 GMT):
Has joined the channel.

krtk6160 (Tue, 11 Jun 2019 15:55:08 GMT):
Hey everyone! I'm trying to play around with custom chaincode that I've written for node, and trying to work with it using the first-network scripts in the fabric-samples. I have modified the `docker-compose-cli.yaml` file to mount another directory with my custom chaincode. Although I'm able to install my chaincode, I can't instantiate it. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ```

krtk6160 (Tue, 11 Jun 2019 15:55:08 GMT):
Hey everyone! I'm trying to play around with custom chaincode that I've written for node, and trying to work with it using the first-network scripts in the fabric-samples. I have modified the `docker-compose-cli.yaml` file to mount another directory with my custom chaincode. Although I'm able to install my chaincode, I can't instantiate it. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ``` I have also tried to place the chaincode_example02 chaincode into my new directory, and it fails with the same error. It works fine if I try to install it from the original path specified in the default scripts, but trying to install and instantiate the exact same chaincode from another directory only allows me to install it, but not instantiate it.

krtk6160 (Tue, 11 Jun 2019 15:55:08 GMT):
Hey everyone! I'm trying to play around with custom chaincode that I've written for node, and trying to work with it using the first-network scripts in the fabric-samples. I have modified the `docker-compose-cli.yaml` file to mount another directory with my custom chaincode. Although I'm able to install my chaincode, I can't instantiate it. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ``` I have also tried to place the chaincode_example02 chaincode into my new directory, and it fails with the same error. It works fine if I try to install it from the original path specified in the default scripts, but trying to install and instantiate the exact same chaincode from another directory only allows me to install it, but not instantiate it. This is the error from the peer logs: ``` 2019-06-11 16:14:47.054 UTC [endorser] SimulateProposal -> ERRO 041 [testchannel][284b518f] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

Swhit210 (Tue, 11 Jun 2019 17:10:58 GMT):
Has joined the channel.

Swhit210 (Tue, 11 Jun 2019 17:11:05 GMT):
I am working on a raft orderer project using Hyperledger Fabric. I am attempting to install chaincode on one of my peer nodes using this command: docker exec $env_vars $peer peer chaincode install -n loan-chain -l node -p /opt/gopath/src/github.com/hyperledger/fabric/peer/loan-chain-node -v v1 --tls --cafile /etc/hyperledger/msp/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem I am experiencing the below error. The error sometimes randomly goes away with repeated attempts. Any advice? I have additional go routine logs if someone wants to see them. fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fd384254638] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic()

Swhit210 (Tue, 11 Jun 2019 17:11:29 GMT):
I am working on a raft orderer project using Hyperledger Fabric. I am attempting to install chaincode on one of my peer nodes using this command: `docker exec $env_vars $peer peer chaincode install -n loan-chain -l node -p /opt/gopath/src/github.com/hyperledger/fabric/peer/loan-chain-node -v v1 --tls --cafile /etc/hyperledger/msp/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ` I am experiencing the below error. The error sometimes randomly goes away with repeated attempts. Any advice? I have additional go routine logs if someone wants to see them. ` fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fd384254638] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic()`

Swhit210 (Tue, 11 Jun 2019 17:11:52 GMT):
I am working on a raft orderer project using Hyperledger Fabric. I am attempting to install chaincode on one of my peer nodes using this command: `docker exec $env_vars $peer peer chaincode install -n loan-chain -l node -p /opt/gopath/src/github.com/hyperledger/fabric/peer/loan-chain-node -v v1 --tls --cafile /etc/hyperledger/msp/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ` I am experiencing the below error. The error sometimes randomly goes away with repeated attempts. Any advice? I have additional go routine logs if someone wants to see them. fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fd384254638] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic()

Swhit210 (Tue, 11 Jun 2019 17:12:10 GMT):
I am working on a raft orderer project using Hyperledger Fabric. I am attempting to install chaincode on one of my peer nodes using this command: `docker exec $env_vars $peer peer chaincode install -n loan-chain -l node -p /opt/gopath/src/github.com/hyperledger/fabric/peer/loan-chain-node -v v1 --tls --cafile /etc/hyperledger/msp/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` I am experiencing the below error. The error sometimes randomly goes away with repeated attempts. Any advice? I have additional go routine logs if someone wants to see them. fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fd384254638] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic()

Antimttr (Tue, 11 Jun 2019 17:15:39 GMT):
ouch, segfault

mastersingh24 (Tue, 11 Jun 2019 19:15:14 GMT):
Is there more in the stack trace?

mastersingh24 (Tue, 11 Jun 2019 19:15:57 GMT):
Are you running on Redhat or AWS EC2?

hklee (Tue, 11 Jun 2019 19:37:58 GMT):
Has joined the channel.

hklee (Tue, 11 Jun 2019 19:37:58 GMT):
Hi, I was wondering if it's possible to run fabric on RPI3 at this point. I wasn't able to find a good post that deals with it. Anyone? Already searched messages..

yeousunn (Wed, 12 Jun 2019 00:44:53 GMT):
Hi, can anyone explain, when using the below certificates with solo orderer everything works fine. However, when using ordering service with raft, the same certificates shows warning. ``` export ORDERER_GENERAL_TLS_CERTIFICATE=$PWD/client/org1/orderer1/tls-msp/signcerts/cert.pem export ORDERER_GENERAL_TLS_ROOTCAS=$PWD/client/org1/orderer1/tls-msp/tlscacerts/tls-0-0-0-0-7054.pem export ORDERER_GENERAL_TLS_PRIVATEKEY=$PWD/client/org1/orderer1/tls-msp/keystore/key.pem ``` ``` 2019-06-11 17:24:03.280 CST [orderer.consensus.etcdraft] detectSelfID -> WARN 015 Could not find -----BEGIN CERTIFICATE----- .....This shows signcerts.... -----END CERTIFICATE----- among [-----BEGIN CERTIFICATE----- .....This shows tls ca certs...... -----END CERTIFICATE----- ] ``` after that it fails to start with error: ``` 2019-06-11 17:24:13.279 CST [orderer.common.cluster] ReplicateChains -> INFO 01b Will now replicate chains [ordererchannel] 2019-06-11 17:24:13.283 CST [orderer.common.cluster] createReplicator -> PANI 01c Failed creating puller config from bootstrap block: unable to decode TLS certificate PEM: panic: Failed creating puller config from bootstrap block: unable to decode TLS certificate PEM: ``` any idea?

sukalpomitra (Wed, 12 Jun 2019 03:25:36 GMT):
Has joined the channel.

sukalpomitra (Wed, 12 Jun 2019 03:30:50 GMT):
Has left the channel.

kpratihast (Wed, 12 Jun 2019 06:46:56 GMT):
What will happen if I do not provide anchor peer updates on a channel ? I tried doing so and network seems to be working fine, chaincode got installed successfully, invokes are working fine, ledger is getting updated.

kpratihast (Wed, 12 Jun 2019 06:46:56 GMT):
What will happen if I do not provide anchor peer updates on a channel ? I tried doing so and network seems to be working fine, chaincode got installed successfully, invokes are working fine, ledger is getting updated that means gossip is also working fine. Should I expect some error elsewhere ?

Niklaskkkk (Wed, 12 Jun 2019 07:28:58 GMT):
Hello, when I run the following command I get this error message: "Use the following command to curl down the ​ fabric-samples​ project folder, and Docker images for Hyperledger Fabric v1.4: curl -sSL ​ http://bit.ly/2ysbOFE​ | bash -s 1.4.0

Niklaskkkk (Wed, 12 Jun 2019 07:28:58 GMT):
Hello, when I run the following command I get this error message: "Use the following command to curl down the ​ fabric-samples​ project folder, and Docker images for Hyperledger Fabric v1.4:" curl -sSL ​ http://bit.ly/2ysbOFE​ | bash -s 1.4.0 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.0 not found Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.0

Niklaskkkk (Wed, 12 Jun 2019 07:28:58 GMT):
Hello, when I run the following command I get this error message: "Use the following command to curl down the ​ fabric-samples​ project folder, and Docker images for Hyperledger Fabric v1.4:" curl -sSL ​ http://bit.ly/2ysbOFE​ | bash -s 1.4.0 I then receive the following error when running ./startup.sh ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.0 not found Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.0

ahmad-raza (Wed, 12 Jun 2019 07:55:07 GMT):
Hi all can anyone give expert opinion which one is better to use with hyperledger fabric "IBM blockchain service" OR "AWS managed blockchain"?

AndresMartinezMelgar.itcl (Wed, 12 Jun 2019 08:40:52 GMT):

Clipboard - June 12, 2019 10:40 AM

emeakai (Wed, 12 Jun 2019 08:54:40 GMT):
Has joined the channel.

neneg (Wed, 12 Jun 2019 11:21:13 GMT):
Hi everyone! what is the best way to get the blockchain height? Also, is there any specific function (e.g., in Fabric Node SDK) that would somehow return the height of the blockchain? I need the number of the very last block in a code I am developing...

adarshaJha (Wed, 12 Jun 2019 11:32:09 GMT):
It seems that I found something - maybe cumbersome, but better than nothing: Command: docker logs -f peer0.org1.example.com 2>&1 | grep blockNo Check for the "latest" line in the output, something like: 2017-07-18 19:40:39.586 UTC [historyleveldb] Commit -> DEBU b75b Channel [mychannel]: Updates committed to history database for blockNo [34] So, if I am not wrong, in this case the block height is: 34

HumaAlam (Wed, 12 Jun 2019 11:41:57 GMT):
Has joined the channel.

HumaAlam (Wed, 12 Jun 2019 11:42:00 GMT):
i am implementing https://github.com/ccastroiragorri/blockdegree_previous.im confused about cards. there are two organizations but in a single machine if i want to use this from another computer using card as a participent is this possible?

AndresMartinezMelgar.itcl (Wed, 12 Jun 2019 11:51:15 GMT):
If you access a peer and you give the path to your MSP file as a variable, you can use the following command: peer chanel getinfo -C channelName

neneg (Wed, 12 Jun 2019 11:55:06 GMT):
Thanks very much for your reply. As I am developing front-end an application, I would prefer a command/method that is more efficient.

neneg (Wed, 12 Jun 2019 13:03:57 GMT):
In case anyone else is also interested, I found method queryInfo(target, useAdmin) of Fabric SDK that returns a Promise for a BlockchainInfo object with blockchain height, current block hash and previous block hash. :)

akoenig (Wed, 12 Jun 2019 14:12:22 GMT):
Hi sorry I asked this again but in this documentation: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4noah.html#migrate-to-the-new-fabric-lifecycle there is written, that there is no upgrade-mechanism for the alpha. But is there an ugrade-mechanism planned for 1.4-Release to 2.0-Release?

walmon (Wed, 12 Jun 2019 15:06:49 GMT):
Hi @ahmad-raza I'd advice to use a decoupled tool from the cloud providers, so you still can use IBM Cloud or AWS without getting locked - Forma is an option in that space: https://worldsibu.tech/forma/forma-versus-blockchain-as-a-service/ here's a comparison table

jozefchmelar (Wed, 12 Jun 2019 16:27:05 GMT):
Hello >..I have a question about integrity of the data if some node will be down... what will happen if the node is down and I have let's say just one, or two... ..how will the node catch up with the new data after is back on ?

Antimttr (Wed, 12 Jun 2019 16:33:31 GMT):
I believe that it compares the blockchain it stores locally to the one stored by other peers via gossip protocol, and if it sees that there's more blocks that it has it will request those blocks from its peers to become synchronized with the peers. but i'm not expert on that whole process

Swhit210 (Wed, 12 Jun 2019 16:43:10 GMT):
This is the full error logged to the console.

Swhit210 (Wed, 12 Jun 2019 16:43:16 GMT):

Swhit210 - Wed Jun 12 2019 12:43:22 GMT-0400 (Eastern Daylight Time).txt

Swhit210 (Wed, 12 Jun 2019 16:43:31 GMT):
I am running this locally on my MacOS.

Swhit210 (Wed, 12 Jun 2019 16:45:04 GMT):
Has anyone encountered this error before? I am trying to use my client to interact with my chaincode and the transaction can't be successfully completed because of the error: (node:2171) UnhandledPromiseRejectionWarning: Error: 2 UNKNOWN: Stream removed at Object.exports.createStatusError (/Users/fcprxbci/Documents/projects/hlfExample/client/ford/node_modules/fabric-client/node_modules/grpc/src/common.js:91:15) at Object.onReceiveStatus (/Users/fcprxbci/Documents/projects/hlfExample/client/ford/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:1204:28) at InterceptingListener._callNext (/Users/fcprxbci/Documents/projects/hlfExample/client/ford/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/Users/fcprxbci/Documents/projects/hlfExample/client/ford/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/Users/fcprxbci/Documents/projects/hlfExample/client/ford/node_modules/fabric-client/node_modules/grpc/src/client_interceptors.js:845:24) (node:2171) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:2171) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Antimttr (Wed, 12 Jun 2019 16:45:46 GMT):
that might be an issue with your chaincode

MohammedR (Wed, 12 Jun 2019 18:57:34 GMT):
Hi, does anyone know how to configure multiple channels with hyperledger explorer ?

VictorMachado (Wed, 12 Jun 2019 20:01:57 GMT):
Has joined the channel.

VictorMachado (Wed, 12 Jun 2019 20:01:59 GMT):
Hello everyone, I am having an issue related to MSP The docs (https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html) in the Identity Classification section states: _Certificate: Set this to the CA or intermediate CA under which client (peer) identities should be validated. The field is relative to the MSP root folder. It can be empty, meaning that the identity’s x509 certificate can be validated under any CA defined in the MSP configuration._ but when I try to run _configtxgen -profile MyChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID channel_ I get this error: Failed loading ClientOU certificate at .../crypto-config/peerOrganizations/myorg/msp It's like it's trying to load the msp folder as a file, because I did not specified the Certificate file path. But the documentation says I could do so. Is this a bug?

sidepocket (Wed, 12 Jun 2019 22:16:43 GMT):
Has joined the channel.

sidepocket (Wed, 12 Jun 2019 22:16:44 GMT):
Why doesn't the shim method "PutState" observe MaxMessageCount? I can put thousands of records in one transaction and one block with a simple loop in my chaincode, but when I try the same thing using CLI, it will observe the MaxMessageCount of 10 and it will split each "peer chaincode invoke" into its own transaction, but bundled 10-per-block. Why does this behavior differ so much?

sidepocket (Wed, 12 Jun 2019 22:16:44 GMT):
Why doesn't the shim method "PutState" observe MaxMessageCount? I can put thousands of records in one transaction and one block with a simple loop in my golang chaincode, but when I try the same thing using CLI, it will observe the MaxMessageCount of 10 and it will split each "peer chaincode invoke" into its own transaction, but bundled 10-per-block. Why does this behavior differ so much?

mastersingh24 (Wed, 12 Jun 2019 22:58:14 GMT):
They are different contexts. CLI invokes chaincode CLI receives endorsement responses CLI packages endorsement responses into a transaction CLI sends transaction to orderer If the MaxMessageCount for the blocks is set to 10, the orderer will batch 10 of those transactions into a block (transaction = message) If your chaincode does multiple PutState's, they are all returned in a single endorsement response which in turn ends up in a single transaction sent to the orderer

mastersingh24 (Wed, 12 Jun 2019 23:04:08 GMT):
It's a bad/confusing log message but not an error

PanChee_Woo (Thu, 13 Jun 2019 00:25:10 GMT):
Is there a tutorial similar to this using javascript? Trying to implement a web application solution that interacts with the blockchain. Using NodeJS

eujungkim (Thu, 13 Jun 2019 00:58:37 GMT):
Has joined the channel.

eujungkim (Thu, 13 Jun 2019 00:58:39 GMT):
Hello, I have a question about raft orderering service. First, I have 3 orderers(orderer0, orderer1, orderer2). And all orderer are consenters to 2 channel - mychannel, mychannel2. Second, I add one more orderer(orderer3) as a consenters to system channel and mychannel. And etch the system channel config and set it as genesis block to orderer3. Then, below logs are occurred continuously in first 3 orderers(orderer0, orderer1, orderer2). ‘2019-06-12 23:47:03.262 UTC [comm.grpc.server] 1 -> INFO 39e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.29.0.11:44514 grpc.peer_subject="CN=orderer0.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=6.261949ms‘ And below logs are occurred continuously in second orderer(orderer3) ‘2019-06-12 23:51:42.478 UTC [common.deliver] deliverBlocks -> WARN 06e [channel: mychannel2] Rejecting deliver request for 172.29.0.11:34978 because of consenter error 2019-06-12 23:51:42.478 UTC [orderer.common.cluster.replication] fetchLastBlockSeq -> WARN 06f Received status:SERVICE_UNAVAILABLE  from orderer0.org2.example.com:7050: service unavailable 2019-06-12 23:51:42.479 UTC [orderer.common.cluster.replication] func1 -> WARN 070 Received error of type 'service unavailable' from orderer0.org2.example.com:7050‘ If I add orderer3 to mychannel2 as consenter those logs are stopped. But another logs are occured. In channel2 leader node, ‘2019-06-12 23:49:47.175 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 3bb Failed to send StepRequest to 4, because: aborted channel=mychannel2 node=1 2019-06-12 23:49:47.677 UTC [orderer.consensus.etcdraft] send -> INFO 3bc Successfully sent StepRequest to 4 after failed attempt(s) channel=mychannel2 node=1’ In orderer3, ‘2019-06-12 23:50:42.634 UTC [comm.grpc.server] 1 -> INFO 1b5b streaming call completed grpc.service=orderer.Cluster grpc.method=Step grpc.peer_address=172.29.0.7:34988 grpc.peer_subject="CN=orderer.example.com,L=San Francisco,ST=California,C=US" error="channel mychannel2 doesn't exist" grpc.code=Unknown grpc.call_duration=369.102µs’ And if I fetch the system channel config and set it as genesis block to orderer3, those logs are stopped. Is this a normal case? Or should I do some more thing to resolve the warning logs? If there are something I missed, please let me know. Thanks.

eujungkim (Thu, 13 Jun 2019 00:58:39 GMT):
Hello, I have a question about raft orderering service. First, I have 3 orderers(orderer0, orderer1, orderer2). And all orderer are consenters to 2 channel - mychannel, mychannel2. Second, I add one more orderer(orderer3) as a consenters to system channel and mychannel. And etch the system channel config and set it as genesis block to orderer3. Then, below logs are occurred continuously in first 3 orderers(orderer0, orderer1, orderer2). `2019-06-12 23:47:03.262 UTC [comm.grpc.server] 1 -> INFO 39e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.29.0.11:44514 grpc.peer_subject="CN=orderer0.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=6.261949ms` And below logs are occurred continuously in second orderer(orderer3) `2019-06-12 23:51:42.478 UTC [common.deliver] deliverBlocks -> WARN 06e [channel: mychannel2] Rejecting deliver request for 172.29.0.11:34978 because of consenter error 2019-06-12 23:51:42.478 UTC [orderer.common.cluster.replication] fetchLastBlockSeq -> WARN 06f Received status:SERVICE_UNAVAILABLE  from orderer0.org2.example.com:7050: service unavailable 2019-06-12 23:51:42.479 UTC [orderer.common.cluster.replication] func1 -> WARN 070 Received error of type 'service unavailable' from orderer0.org2.example.com:7050` If I add orderer3 to mychannel2 as consenter those logs are stopped. But another logs are occured. In channel2 leader node, `2019-06-12 23:49:47.175 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 3bb Failed to send StepRequest to 4, because: aborted channel=mychannel2 node=1 2019-06-12 23:49:47.677 UTC [orderer.consensus.etcdraft] send -> INFO 3bc Successfully sent StepRequest to 4 after failed attempt(s) channel=mychannel2 node=1` In orderer3, `2019-06-12 23:50:42.634 UTC [comm.grpc.server] 1 -> INFO 1b5b streaming call completed grpc.service=orderer.Cluster grpc.method=Step grpc.peer_address=172.29.0.7:34988 grpc.peer_subject="CN=orderer.example.com,L=San Francisco,ST=California,C=US" error="channel mychannel2 doesn't exist" grpc.code=Unknown grpc.call_duration=369.102µs` And if I fetch the system channel config and set it as genesis block to orderer3, those logs are stopped. Is this a normal case? Or should I do some more thing to resolve the warning logs? If there are something I missed, please let me know. Thanks.

PanChee_Woo (Thu, 13 Jun 2019 02:58:29 GMT):
Hi all, I've difficulty understanding what a peer is in a physical sense, and how do I set up a peer? If I have a remotely hosted (cloud) web application, how can I assign an authenticated user (of the webapp) to interact with the blockchain with their specific identity as a peer node of an organisation? Tutorials only show how you change peer context through CLI. What is the actual way to set this peer context up?

JayJong (Thu, 13 Jun 2019 03:33:23 GMT):
Hi all, im using fabric-ca to generate my msp but when i deleted my msp in the peer, it still continues to invoke as usual, is this normal?

PanChee_Woo (Thu, 13 Jun 2019 03:38:54 GMT):
Also, where exactly is the ledger hosted? Since its a DLT, every node should have a copy of the ledger. Which action allows the copy of the ledger to be copied to the node

umarmw (Thu, 13 Jun 2019 06:24:22 GMT):
Hello, as per this page: https://blockonomi.com/practical-byzantine-fault-tolerance/ The pBFT model is also susceptible to sybil attacks where a single party can create or manipulate a large number of identities (nodes in the network), thus compromising the network. This is mitigated against with larger network sizes, but scalability and the high-throughput ability of the pBFT model is reduced with larger sizes and thus needs to be optimized or used in combination with another consensus mechanism. Can you give me a suitable consensus mechanism that can work along with pBFT when dealing with a network containing 15 organisations?

HumaAlam (Thu, 13 Jun 2019 06:34:05 GMT):
what is difference between wallets and cards?

PanChee_Woo (Thu, 13 Jun 2019 06:43:38 GMT):
wallet stores cards (identity of participant)

HumaAlam (Thu, 13 Jun 2019 06:47:00 GMT):
thanks for your reply.i have one more question.how to restrict that each wallet contain only one card? and can a wallet have cards for diffrenet networks.?

HumaAlam (Thu, 13 Jun 2019 06:47:40 GMT):
thanks for your reply.i have one more question.how to restrict that each wallet contain only one card? and can a wallet have cards for diffrenet networks.?

jfkidear (Thu, 13 Jun 2019 07:20:37 GMT):
Hi,when I run composer network start I get a problem. Please help me. Thanks.

jfkidear (Thu, 13 Jun 2019 07:20:39 GMT):
jfk@ubuntu fabric-tools $ sudo composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card [sudo] password for jfk: Starting business network tutorial-network at version 0.0.1 Processing these Network Admins: userName: admin ⠸ Starting business network definition. This may take a minute...(node:6011) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: cannot get package for chaincode (tutorial-network:0.0.1) Command failed

PanChee_Woo (Thu, 13 Jun 2019 07:25:09 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/wallet.html

PanChee_Woo (Thu, 13 Jun 2019 07:25:39 GMT):
I don't think you can set configurations to restrict a wallet to only 1 card. Unless you do it on your application-side logic

PanChee_Woo (Thu, 13 Jun 2019 07:26:09 GMT):
Your wallet can contain cards for different channels, or same channel but different identity

HumaAlam (Thu, 13 Jun 2019 07:27:13 GMT):
ok thank you soo much :)

davidkel (Thu, 13 Jun 2019 07:45:02 GMT):
When you are talking about wallets and cards are you referring to hyperledger composer cards and wallets as defined by the fabric-node-sdk ? If so then 1. Wallets contain identities used to interact with a fabric network (they don't contain cards) 2. Cards are a composer construct that define the fabric network to interact with (via a connection profile), an identity to use for that interaction and optionally the business network running on that fabric network Composer stored cards in a card store. Composer incorrectly defined a term called `cloud wallets` in fact they are better termed as `cloud card stores`

davidkel (Thu, 13 Jun 2019 07:45:02 GMT):
When you are talking about wallets and cards are you referring to hyperledger composer cards and wallets as defined by the fabric-node-sdk ? If so then 1. Wallets contain identities used to interact with a fabric network (they don't contain cards) 2. Cards are a composer construct that define the fabric network and channel to interact with (via a connection profile), an identity to use for that interaction and optionally the business network running on that fabric network Composer stored cards in a card store. Composer incorrectly defined a term called `cloud wallets` in fact they are better termed as `cloud card stores`

rasmusmilz (Thu, 13 Jun 2019 08:58:57 GMT):
Has joined the channel.

rasmusmilz (Thu, 13 Jun 2019 08:58:59 GMT):
Hello, I have been googling a lot about the cryptogen-tool and why it is not meant to be used in a production environment. But I have not found a real answer to this, can anyone explain?

adarshaJha (Thu, 13 Jun 2019 09:25:09 GMT):
@rasmusmilz Cryptogen tool is used to generate private/public key pairs and the corresponding certificates at system setup. After that we need a dynamic add/remove identity mechanism. And the solution is Fabric-ca.

adarshaJha (Thu, 13 Jun 2019 09:25:30 GMT):
* Note, fabric-ca is optional, you may use any other CA.

adarshaJha (Thu, 13 Jun 2019 09:27:05 GMT):
As to your question about cryptogen, there's no reason why you can't use the generated crypto materials in production ... it's simply that it's a tool that was really designed to aid in development and testing to bootstrap a network. It is not a PKI infrastructure and does not included things like certificate revocation.

rasmusmilz (Thu, 13 Jun 2019 10:03:53 GMT):
@adarshaJha thank you. Our setup right now is using cryptogen for every key for peers and orderer and the ca is responsible for generating only certs for the users. We use cryptogen extend to generate more meterial when needed for more peers etc. See any problems with that ?

vsadriano (Thu, 13 Jun 2019 10:51:02 GMT):
Hi! I'm trying to run a new fabric network (two organizations) and getting the error bellow: ```shell # Orderer log 2019-06-13 10:48:02.023 UTC [common.deliver] deliverBlocks -> WARN 09f [channel: mychannel] Client authorization revoked for deliver request from 172.19.0.10:50338: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied # Peer log 2019-06-13 10:50:22.458 UTC [blocksProvider] DeliverBlocks -> ERRO 0a1 [mychannel] Got error &{FORBIDDEN} ``` What's happening?

vsadriano (Thu, 13 Jun 2019 10:51:02 GMT):
Hi! I'm trying to run a new fabric network (fabric-1.4 and two organizations) and getting the error bellow: ```shell # Orderer log 2019-06-13 10:48:02.023 UTC [common.deliver] deliverBlocks -> WARN 09f [channel: mychannel] Client authorization revoked for deliver request from 172.19.0.10:50338: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied # Peer log 2019-06-13 10:50:22.458 UTC [blocksProvider] DeliverBlocks -> ERRO 0a1 [mychannel] Got error &{FORBIDDEN} ``` What's happening?

vsadriano (Thu, 13 Jun 2019 10:51:02 GMT):
Hi! I'm trying to run a new fabric network (fabric-1.4 and two organizations) and getting the error bellow when run `peer join channel...`: ```shell # Orderer log 2019-06-13 10:48:02.023 UTC [common.deliver] deliverBlocks -> WARN 09f [channel: mychannel] Client authorization revoked for deliver request from 172.19.0.10:50338: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied # Peer log 2019-06-13 10:50:22.458 UTC [blocksProvider] DeliverBlocks -> ERRO 0a1 [mychannel] Got error &{FORBIDDEN} ``` What's happening?

ajaya-man (Thu, 13 Jun 2019 10:55:23 GMT):
Is there any way to set attributes for a particular affiliation? Like org1.department1 always has a custom attribute,"CAN READ" with the value true?

lepar (Thu, 13 Jun 2019 12:26:49 GMT):
Check OrgMSP when creating channel

kund2n (Thu, 13 Jun 2019 12:27:48 GMT):
How to spin up couchdb in development mode in Hyperledger fabric because by default it support leveldb. So I am not able to perform rich queries for my chaincode

vsadriano (Thu, 13 Jun 2019 13:01:17 GMT):
I'm getting this now: ```shell failed to invoke chaincode name:"lscc" , error: container exited with 1 ```

vsadriano (Thu, 13 Jun 2019 13:01:26 GMT):
when I'm trying to instantiate a chaincode

lepar (Thu, 13 Jun 2019 13:03:28 GMT):
Send a log of the peer container

vsadriano (Thu, 13 Jun 2019 13:04:11 GMT):
```shell 2019-06-13 12:58:35.595 UTC [endorser] callChaincode -> INFO 049 [mychannel][e85c06de] Entry chaincode: name:"lscc" 2019-06-13 12:59:03.713 UTC [endorser] callChaincode -> INFO 04a [mychannel][e85c06de] Exit chaincode: name:"lscc" (28117ms) 2019-06-13 12:59:03.713 UTC [endorser] SimulateProposal -> ERRO 04b [mychannel][e85c06de] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

lepar (Thu, 13 Jun 2019 13:05:48 GMT):
Send a log of the orderer

vsadriano (Thu, 13 Jun 2019 13:07:16 GMT):
```shell 2019-06-13 12:59:03.715 UTC [orderer.common.broadcast] Handle -> WARN 014 Error reading from 172.29.0.6:44066: rpc error: code = Canceled desc = context canceled 2019-06-13 12:59:03.715 UTC [comm.grpc.server] 1 -> INFO 015 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.29.0.6:44066 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=28.121169123s ```

lepar (Thu, 13 Jun 2019 13:08:20 GMT):
Check to see if there's a dev container using "docker ps -a)

vsadriano (Thu, 13 Jun 2019 13:08:49 GMT):
No. There's an image only.

lepar (Thu, 13 Jun 2019 13:10:09 GMT):
Delete that image and all the docker containers open and rerun the network

vsadriano (Thu, 13 Jun 2019 13:15:22 GMT):
The error continues..

vsadriano (Thu, 13 Jun 2019 13:15:31 GMT):
Same error.

vsadriano (Thu, 13 Jun 2019 13:15:54 GMT):
Peer logs: ```shell 2019-06-13 13:13:11.213 UTC [endorser] callChaincode -> INFO 045 [mychannel][8b9c77fe] Entry chaincode: name:"lscc" 2019-06-13 13:14:39.424 UTC [endorser] callChaincode -> INFO 046 [mychannel][8b9c77fe] Exit chaincode: name:"lscc" (88211ms) 2019-06-13 13:14:39.424 UTC [endorser] SimulateProposal -> ERRO 047 [mychannel][8b9c77fe] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

lepar (Thu, 13 Jun 2019 13:16:49 GMT):
That's weird because the container exited, meaning it was created but something made it stop working. No container with Exited status shows up when you docker ps -a ?

vsadriano (Thu, 13 Jun 2019 13:19:19 GMT):
```shell $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cf91c282554f hyperledger/fabric-peer:1.4 "peer node start" 6 minutes ago Up 6 minutes 0.0.0.0:7051-7053->7051-7053/tcp, 0.0.0.0:7443->9443/tcp peer0.br.example.com ee5899efe0d4 hyperledger/fabric-peer:1.4 "peer node start" 6 minutes ago Up 6 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8052->7052/tcp, 0.0.0.0:8053->7053/tcp, 0.0.0.0:8443->9443/tcp peer0.ch.example.com 7a75be589151 hyperledger/fabric-tools:1.4 "/bin/bash" 6 minutes ago Up 6 minutes cli.ch 85694661d080 hyperledger/fabric-orderer:1.4 "orderer" 6 minutes ago Up 6 minutes 0.0.0.0:7050->7050/tcp, 0.0.0.0:6443->9443/tcp orderer.example.com c2386ec1854d hyperledger/fabric-tools:1.4 "/bin/bash" 6 minutes ago Up 6 minutes cli.br 88303225ad78 hyperledger/fabric-ca:1.4 "sh -c 'fabric-ca-se…" 6 minutes ago Up 6 minutes 0.0.0.0:8054->7054/tcp ca.ch.example.com 03cb71dc4b7f hyperledger/fabric-ca:1.4 "sh -c 'fabric-ca-se…" 6 minutes ago Up 6 minutes 0.0.0.0:7054->7054/tcp ca.br.example.com 08ee444e0fa7 hyperledger/fabric-couchdb:0.4.14 "tini -- /docker-ent…" 6 minutes ago Up 6 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdbbr 479a1a664ac1 hyperledger/fabric-couchdb:0.4.14 "tini -- /docker-ent…" 6 minutes ago Up 6 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdbch ```

vsadriano (Thu, 13 Jun 2019 13:20:58 GMT):
The chaincode container wasn't created.

xana (Thu, 13 Jun 2019 13:28:40 GMT):
xana

jozefchmelar (Thu, 13 Jun 2019 13:34:26 GMT):
what is going on when a node goes down for a while and then it comes up again? how it will fetch new data?

lepar (Thu, 13 Jun 2019 13:34:29 GMT):
What's the command you're running?

lepar (Thu, 13 Jun 2019 13:34:55 GMT):
Uses gossip protocol to catch up

vsadriano (Thu, 13 Jun 2019 13:34:55 GMT):
docker exec cli.br peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_TLS_CAFILE -C mychannel -n comexdata_cc -l node -v 1.0 -c '{"Args":[]}'

vsadriano (Thu, 13 Jun 2019 13:34:55 GMT):
```shell docker exec cli.br peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile $ORDERER_TLS_CAFILE -C mychannel -n comexdata_cc -l node -v 1.0 -c '{"Args":[]}' ```

jozefchmelar (Thu, 13 Jun 2019 13:56:28 GMT):
thank you

Swhit210 (Thu, 13 Jun 2019 14:01:26 GMT):
I am getting the below errors in all of my peer nodes when I attempt to use my client application to invoke my chaincode. I am working on using RAFT and have enabled TLS for the orderers and the peers. CORE_PEER_TLS_CLIENTAUTHREQUIRED is set to false however, so I am shocked to see the peer getting a TLS error when acting as a server. `2019-06-13 13:57:43.684 UTC [core.comm] ServerHandshake -> ERRO 079 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:54488`

Swhit210 (Thu, 13 Jun 2019 14:01:26 GMT):
I am getting the below errors in all of my peer nodes when I attempt to use my client application to invoke my chaincode. I am working on using RAFT and have enabled TLS for the orderers and the peers. CORE_PEER_TLS_CLIENTAUTHREQUIRED is set to false. `2019-06-13 13:57:43.684 UTC [core.comm] ServerHandshake -> ERRO 079 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:54488`

sidepocket (Thu, 13 Jun 2019 15:22:11 GMT):
Thank you for the reply, @mastersingh24 Are there any downsides to filling a ledger using the "multiple PutState" method?

mastersingh24 (Thu, 13 Jun 2019 15:23:14 GMT):
no ... although do be aware of the fact that the maximum payload size at the transport layer is 100MB

mastersingh24 (Thu, 13 Jun 2019 15:23:14 GMT):
nope ... although do be aware of the fact that the maximum payload size at the transport layer is 100MB

sidepocket (Thu, 13 Jun 2019 15:24:45 GMT):
Got it, @mastersingh24 Thanks for your help!

mastersingh24 (Thu, 13 Jun 2019 15:25:44 GMT):
sure thing

VictorMachado (Thu, 13 Jun 2019 15:41:01 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/msp/configbuilder.go#L314 Reading this code you can spot the message on line 314 Either the documentation is wrong or the code is, because the way it works the NodeOUs.ClientOUIdentifier.Certificate clearly can not be empty

Charles99 (Thu, 13 Jun 2019 15:44:19 GMT):
Has joined the channel.

VictorMachado (Thu, 13 Jun 2019 15:44:30 GMT):
you can check docker-compose-couch.yaml in the sample files of build your first network you have to set CORE_LEDGER_STATE_STATEDATABASE=CouchDB and the other variables related to the couchdb instance: CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD

Charles99 (Thu, 13 Jun 2019 15:53:31 GMT):
Endorsement help on modifying First Network example

Charles99 (Thu, 13 Jun 2019 16:11:10 GMT):
Anyone know how to invoke a transaction when using the AND endorsement policy in the first network example?

hanubc7743 (Thu, 13 Jun 2019 16:34:41 GMT):
Has joined the channel.

hanubc7743 (Thu, 13 Jun 2019 16:37:29 GMT):
@ArnaudP 1 Please can share the sample application url end to end like restful apis,etc by using java sdk?

ArnaudP 1 (Thu, 13 Jun 2019 16:38:06 GMT):
Has joined the channel.

ArnaudP 1 (Thu, 13 Jun 2019 16:38:07 GMT):
Hi, the crypto-config.yaml allows us to make a number of users. I haven't found online a way to dynamically add a user to an Organisation on a running network. Is there any way through the SDKs ? Or do I have to create a small crypto-config.yaml file for only 1 user of a specific Org and generate it with the binary. Should I then use the "extend" argument when calling cryptogen ? The documentation online for that argument simply says "Extend existing network" but it doesn't say if it can take an extended version of the original crypto-config.yaml file or if the file should only have the params for the the 1 user you want to create. Any insight is welcome

ArnaudP 1 (Thu, 13 Jun 2019 16:39:27 GMT):
@hanubc7743 I do not have any sample application, personnally I don't use the Java SDK

hanubc7743 (Thu, 13 Jun 2019 16:40:21 GMT):
I am not asking personal application

hanubc7743 (Thu, 13 Jun 2019 16:40:34 GMT):
any application in github

hanubc7743 (Thu, 13 Jun 2019 16:43:06 GMT):
Anyone can share the sample application development by using java sdk?

HLFPOC (Thu, 13 Jun 2019 16:44:08 GMT):
you can refer this : https://github.com/siyuyifang/balance-transfer-java

hyperledger85 (Thu, 13 Jun 2019 16:53:46 GMT):
Has joined the channel.

hyperledger85 (Thu, 13 Jun 2019 16:53:49 GMT):
hi , i am a beginner to hyperledger fabric. I am not able to understand what is the difference between the byfn.sh and ./startFabric.sh ? Are they doing the same things in different way ?

hanubc7743 (Thu, 13 Jun 2019 17:02:45 GMT):
@HLFPOC thank you

hyperledger85 (Thu, 13 Jun 2019 17:05:57 GMT):
hi , i am a beginner to hyperledger fabric. I am not able to understand what is the difference between the byfn.sh and ./startFabric.sh ? Are they doing the same things in different way ?

VictorMachado (Thu, 13 Jun 2019 17:08:30 GMT):
have you tried to use the fabric ca client sdk? You may deploy a fabric ca server using the CA generated by the cypto config, and then submit a user register and enrollment. Because the CA is the same as the one you used to config your peers, the user will be accepted

ArnaudP 1 (Thu, 13 Jun 2019 17:31:50 GMT):
I think that's what I was looking for, thank you !

hyperledger85 (Thu, 13 Jun 2019 17:49:42 GMT):
hi , i am a beginner to hyperledger fabric. I am not able to understand what is the difference between the byfn.sh and ./startFabric.sh ? Are they doing the same things in different way ?Anyone can help in this .

Swhit210 (Thu, 13 Jun 2019 18:05:09 GMT):
I was able to resolve this issue. After configuring the Peers, Orderers, and CAs for TLS, it was also necessary to update the grpc and http protocols to https and grpcs. I will say the documentation isn

Swhit210 (Thu, 13 Jun 2019 18:05:09 GMT):
I was able to resolve this issue. After configuring the Peers, Orderers, and CAs for TLS, it was also necessary to update the grpc and http protocols to https and grpcs.

xuu 1 (Thu, 13 Jun 2019 20:11:04 GMT):
Has joined the channel.

xuu 1 (Thu, 13 Jun 2019 20:13:49 GMT):
Hi guys, I'm running through the Hyperledger Fabric tutorial and I'm at the part where you package and chaincode on each peer. There's a cli command in the docs that says to run `peer lifecycle chaincode package mycc.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/abstore/go/ --lang golang --label mycc_1` However, when I run it in the docker container, I get the following error message: `Error: unknown command "lifecycle" for "peer"` When typing `peer --help`, `chaincode` isn't one of the available commands. What is going on here? Am I running the wrong version of the docker containers? I'm currently working through the 2.0 alpha release tutorial.

xuu 1 (Thu, 13 Jun 2019 20:13:49 GMT):
Hi guys, I'm running through the Hyperledger Fabric tutorial and I'm at the part where you package and install chaincode on each peer. There's a cli command in the docs that says to run `peer lifecycle chaincode package mycc.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/abstore/go/ --lang golang --label mycc_1` However, when I run it in the docker container, I get the following error message: `Error: unknown command "lifecycle" for "peer"` When typing `peer --help`, `chaincode` isn't one of the available commands. What is going on here? Am I running the wrong version of the docker containers? I'm currently working through the 2.0 alpha release tutorial.

xuu 1 (Thu, 13 Jun 2019 20:15:30 GMT):
similarly, when I remove `lifecycle` and just run `peer chaincode package mycc.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/abstore/go/ --lang golang --label mycc_1`, I get an error saying that "label" isn't a flag: `Error: unknown flag: --label`

ArnaudP 1 (Thu, 13 Jun 2019 20:26:52 GMT):
Yes, you're running on the wrong docker images

ArnaudP 1 (Thu, 13 Jun 2019 20:27:30 GMT):
When you type command "docker images" how many images have "2.0.0-alpha" ?

ArnaudP 1 (Thu, 13 Jun 2019 20:27:54 GMT):
As a tag

xuu 1 (Thu, 13 Jun 2019 20:36:08 GMT):
none—all 1.4.1. Thanks!

VictorMachado (Thu, 13 Jun 2019 20:43:52 GMT):
Guys, what is the purpose of peer id? When clients submit transactions, only the peer address is required, so I think it is pretty much useless

sidepocket (Thu, 13 Jun 2019 21:18:27 GMT):
Is there a way to check the size (in bytes) of a specific block? I assume the block size will vary based on how many transactions I'm stuffing into one block, and how many records I'm stuffing into a transaction. So my assumption is that every block will not be of equal size. How do I check how big block number 456 is?

icarrascol (Thu, 13 Jun 2019 21:26:39 GMT):
is there a way to move the couchdb container to a different machine

sekhmette (Thu, 13 Jun 2019 23:09:06 GMT):
Has joined the channel.

sekhmette (Thu, 13 Jun 2019 23:09:07 GMT):
For Fabric 1.4.1, what configuration and command changes are needed in order to set up multiple orderers spread across multiple servers and using Raft consensus as the OS? Do hostnames need to be specified in certain areas, are extra commands required so that the orderers can find each others, etc?

xamaarshad (Fri, 14 Jun 2019 04:48:14 GMT):
Has joined the channel.

xamaarshad (Fri, 14 Jun 2019 04:48:15 GMT):
When I delete the the block file from peer,why is it not recovering that block file from other peers?

xamaarshad (Fri, 14 Jun 2019 04:53:54 GMT):
@sidepocket yes, get block by transaction id or block number and then check it side in byte.(just count number of charters)

xamaarshad (Fri, 14 Jun 2019 05:24:10 GMT):
its size *

adarshaJha (Fri, 14 Jun 2019 07:03:45 GMT):
to host on multiple servers with multiple orderers and organizations using raft , Ansible has developed a fabric-starter kit to make our life easy. you will find the documentation sound and smooth. Here's the link to the repo. https://github.com/Altoros/Ansible-Fabric-Starter

MohamedLEGHERABA (Fri, 14 Jun 2019 07:45:12 GMT):
Has joined the channel.

MohamedLEGHERABA (Fri, 14 Jun 2019 07:50:03 GMT):
Hello. I tried to create a chaincode from scratch, I can install it on peers but I can't initiate it. When I try to initiate it I have to following error : "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1". Any ideas ?

xamaarshad (Fri, 14 Jun 2019 09:12:32 GMT):
close all apps and try again. maybe it processing problem. if it doesn't work, try after changing name of chaincode.

MohamedLEGHERABA (Fri, 14 Jun 2019 09:25:54 GMT):
Thanks a lot. It's worked when I changed the name. The first name I gived was "token", maybe it was already taken by a system chaincode.

GuillaumeCisco (Fri, 14 Jun 2019 09:56:48 GMT):
Hello there, is is possible to get MVCC_READ_CONFLICT errors if using the `--waitForEvent` parameter?

GuillaumeCisco (Fri, 14 Jun 2019 09:56:48 GMT):
Hello there, is it possible to get MVCC_READ_CONFLICT errors if using the `--waitForEvent` parameter?

GuillaumeCisco (Fri, 14 Jun 2019 09:56:48 GMT):
Hello there, is it possible to get a `MVCC_READ_CONFLICT` errors if using the `--waitForEvent` parameter?

MatteoLinear (Fri, 14 Jun 2019 11:57:31 GMT):
Has joined the channel.

MatteoLinear (Fri, 14 Jun 2019 11:57:59 GMT):
Hi , i have little bit of confusion,i would like to understand the setup necessary for a network with ca , orderer and peer on one machine and other two peer each in separate machines.is it necessary to use docker swarm or just setting the extra host parameter in the docker-compose.yaml?

MohamedLEGHERABA (Fri, 14 Jun 2019 12:08:05 GMT):
Another question. How can I print messages in a javascript chaincode on the console ? I tried "console.info" and "console.log" but nothing appear on my shell when I run a function of the chaincode. Any ideas ?

K1L14N (Fri, 14 Jun 2019 12:09:04 GMT):
Hello in production mode, are each organization supposed to run their own back-end server ?

jeanp (Fri, 14 Jun 2019 12:57:31 GMT):
Has joined the channel.

jeanp (Fri, 14 Jun 2019 12:57:32 GMT):
HI there! does anyone have a doc for deploying HL in a multi node setting ?

florianc (Fri, 14 Jun 2019 12:59:32 GMT):
The log will appear in the endorsing peer logs.

K1L14N (Fri, 14 Jun 2019 13:03:21 GMT):
to watch the logs, just type 'docker logs -f ${peerName}'

jeanp (Fri, 14 Jun 2019 13:04:52 GMT):
Anyone here using a multi-node deployment , btw ?

MohamedLEGHERABA (Fri, 14 Jun 2019 13:15:03 GMT):
is it possible to get only logs generated by a chaincode ? doing docker logs -f peername generate a lot of logs and it's very difficult to find and read logs of a chaincode.

K1L14N (Fri, 14 Jun 2019 13:20:06 GMT):
just select the container id of the cc

MohamedLEGHERABA (Fri, 14 Jun 2019 13:27:33 GMT):
ok thanks

adarshaJha (Fri, 14 Jun 2019 13:33:33 GMT):
@jeanp yes using multi-node deployment using kafka ordering service.

jeanp (Fri, 14 Jun 2019 13:35:06 GMT):
Hey, do you have a pointer for any documentation that explains in detail a deployment like that. this is exactly what I want to try. multiple nodes using kafka-ordering on multiple nodes too .

adarshaJha (Fri, 14 Jun 2019 13:35:19 GMT):
yes sure.

adarshaJha (Fri, 14 Jun 2019 13:35:41 GMT):
use this and when you face any problem , feel free to ask. https://github.com/Altoros/Ansible-Fabric-Starter

jeanp (Fri, 14 Jun 2019 13:38:01 GMT):
thanks, Im taking a look at it now. The main questions that come to my mind is concerning the key/cert management, where the key artifacts should be hold on the nodes and if we are dependent on docker compose to deploy or if we can do it manually. Im going to take a look at the doc you sent me first.

sekhmette (Fri, 14 Jun 2019 16:46:04 GMT):
Are there any other examples using variations of the standard docker-compose.yml, configtx.yaml, etc... configuration files? Something building off of the official documentation (https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html)?

hanubc7743 (Fri, 14 Jun 2019 17:46:08 GMT):
Hi Anyone please suggest me which SDK is best for development?

SaurabhDayama (Fri, 14 Jun 2019 19:09:44 GMT):
Has joined the channel.

SaurabhDayama (Fri, 14 Jun 2019 19:26:09 GMT):
Hello, I am new to Fabric and would like to learn how it works. Is this the best place to gain that knowledge? https://hyperledger-fabric.readthedocs.io/en/latest/tutorials.html

sidepocket (Fri, 14 Jun 2019 19:50:10 GMT):
Can you please explain how to do this?

sidepocket (Fri, 14 Jun 2019 19:50:10 GMT):
@xamaarshad Can you please explain how to do this?

Abhishek_Tyagi (Fri, 14 Jun 2019 21:15:35 GMT):
Has joined the channel.

Abhishek_Tyagi (Fri, 14 Jun 2019 21:15:36 GMT):
Hello Guys, While executing command "Peer channel create" I am facing following error: "2019-06-14 20:05:05.196 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-06-14 20:05:05.221 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: failed to create deliver client: orderer client failed to connect to orderer1.empmanagement.com:6051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer1.empmanagement.com on 127.0.0.11:53: no such host" The command I am running is: "peer channel create -o orderer1.empmanagement.com:6051 -c $CHANNEL_NAME -f ./channel-artifacts/channel-artifacts/channel.t x --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/empmanagement.com/orderers/orderer1.empmanagement.com/msp/tlscacerts/tlsca.empmanagement.com-cer t.pem"

RahulEth (Sat, 15 Jun 2019 10:58:43 GMT):
Hello Guys,

RahulEth (Sat, 15 Jun 2019 10:59:04 GMT):
Hello Guys Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority

RahulEth (Sat, 15 Jun 2019 10:59:48 GMT):
check whether orderer1.empmanagement.com:6051 running or bot

RahulEth (Sat, 15 Jun 2019 11:00:35 GMT):
@Abhishek_Tyagi check wheter orderer1.empmanagement.com:6051 is running or not

trinayanbhatt (Sat, 15 Jun 2019 11:38:29 GMT):
Can anyone let me know if we can dynamically create a profile for creating channels ?

RahulEth (Sat, 15 Jun 2019 12:02:21 GMT):

screen.png

DVasin (Sat, 15 Jun 2019 17:27:36 GMT):
Hello!

DVasin (Sat, 15 Jun 2019 17:27:41 GMT):
Anyone seen a problem:

DVasin (Sat, 15 Jun 2019 17:27:41 GMT):
Anyone seen a problem: ```Error: Error endorsing chaincode: rpc error: code = ResourceExhausted desc = trying to send message larger than max (124696587 vs. 104857600)```

DVasin (Sat, 15 Jun 2019 17:27:41 GMT):
Anyone seen a problem: `Error: Error endorsing chaincode: rpc error: code = ResourceExhausted desc = trying to send message larger than max (124696587 vs. 104857600)` During chaincode installation? I'm installing chaincode with the following command: `docker exec -e "CORE_PEER_LOCALMSPID=CoMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/co.example.com/users/Admin@co.example.com/msp" cli peer chaincode install -n easychaincc -v 1.0 -p "$CC_SRC_PATH" -l java`

DVasin (Sat, 15 Jun 2019 17:27:41 GMT):
Anyone seen a problem: ```Error: Error endorsing chaincode: rpc error: code = ResourceExhausted desc = trying to send message larger than max (124696587 vs. 104857600)``` During chaincode installation? I'm installing chaincode with the following command: ```docker exec -e "CORE_PEER_LOCALMSPID=CoMSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/co.example.com/users/Admin@co.example.com/msp" cli peer chaincode install -n easychaincc -v 1.0 -p "$CC_SRC_PATH" -l java```

Abhishek_Tyagi (Sun, 16 Jun 2019 06:00:06 GMT):
Hi Rahul, Yes I have checked and it is running

Abhishek_Tyagi (Sun, 16 Jun 2019 06:02:18 GMT):
Hi Rahul, I have checked and the containers for both the orderers are up and running. However I do not know how to check whether this complete DNS " orderer1.empmanagement.com:6051" is problematic?

xana (Sun, 16 Jun 2019 07:25:01 GMT):
Hello! I deployed a fabric network using Kafka as OSN, I missed to disable logs retention at first, so after a VM restart all kafka logs are lost and the orderer service cannot operate properly, how can I fix it. And if fix is not possible, is it possible to migrate the data to new network.

hanubc7743 (Sun, 16 Jun 2019 17:40:41 GMT):
Hi I am getting below error

hanubc7743 (Sun, 16 Jun 2019 17:40:44 GMT):
./bin/configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2019-06-16 23:07:20.775 IST [common.tools.configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2019-06-16 23:07:20.775 IST [common.tools.configtxgen] main -> INFO 002 Loading configuration 2019-06-16 23:07:20.788 IST [common.tools.configtxgen.localconfig] Load -> PANI 003 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 2019-06-16 23:07:20.788 IST [common.tools.configtxgen] func1 -> PANI 004 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 [recovered] panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0000b2240, 0xc0002f9804, 0xc00009b1a0, 0x59, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0000b2240, 0xc00009b1a0, 0x59, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0000b2248, 0xc0002f9938, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9 panic(0xd4fc40, 0xc0003018e0) /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0000b2220, 0xc0002f9c04, 0xc00009b080, 0x59, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0000b2220, 0xc00009b080, 0x59, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0000b2228, 0xc0002f9d98, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffeb116516d, 0xe, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:282 +0x580 main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f

hanubc7743 (Sun, 16 Jun 2019 17:41:07 GMT):
Anyone know any solution please?

GKumar (Sun, 16 Jun 2019 18:24:41 GMT):
I am using private data collection for private transactions. But for any new collection creation i am forced to create and instantiate chaincode with the configuration of the new collection. This is completely contradicting the privacy because now every org need to accept the new collection configuration change and which is private and accessible only between some orgs!!!. Is there anyway to creation new collection as part of the chaincode dynamically and get instantiated only for certain orgs

umarmw (Sun, 16 Jun 2019 19:27:52 GMT):
how to use zero knowledge proof in hyperledger fabric?

lakshmideepak26 (Mon, 17 Jun 2019 06:13:40 GMT):
Has joined the channel.

lakshmideepak26 (Mon, 17 Jun 2019 06:13:42 GMT):
hi

lakshmideepak26 (Mon, 17 Jun 2019 06:14:28 GMT):
Getting error while fetching data from a peer in fabric and unable to resolve the issue. Tried to insert new records in one of the peers which I have created and has entered the code, where I didn't receive any response and cursor is moved to next point and when I am fetching details of that new record I am getting error Error: endorsement failure during query. response: status:500 message:"transaction returned with failure: Error: CAR10 does not exist" I used following query to fetch the row details peer chaincode query -c $channel NAME -n mycc -c '{"args":["querycar","CAR10"]}' My task is to insert a new record into the peer and to fetch the record details and also the data should be inserted in all the peers which I have created.

florianc (Mon, 17 Jun 2019 06:15:51 GMT):
Hi. Well, I think the error is kind of easy to understand: You have not inserted CAR10 into your world state.

lakshmideepak26 (Mon, 17 Jun 2019 06:18:15 GMT):
may I know how to insert data into all the peers

lakshmideepak26 (Mon, 17 Jun 2019 06:18:39 GMT):
I have created 2 organizations each one is having two peers

lakshmideepak26 (Mon, 17 Jun 2019 06:19:02 GMT):
I need to insert a new record which should be stored in all the peers

florianc (Mon, 17 Jun 2019 06:19:04 GMT):
If you are following the fabcar example, your chaincode should have a function to insert a car, or there is a function to init ledger data.

lakshmideepak26 (Mon, 17 Jun 2019 06:19:13 GMT):
yes

florianc (Mon, 17 Jun 2019 06:19:25 GMT):
Call it first, then query.

lakshmideepak26 (Mon, 17 Jun 2019 06:24:46 GMT):
I am using following query to create a new record

lakshmideepak26 (Mon, 17 Jun 2019 06:24:49 GMT):
peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["createCar", "CAR1233", "Black","Honda", "Accord", "Tom"]}'

lakshmideepak26 (Mon, 17 Jun 2019 06:25:01 GMT):
pls confirm if it is wrong

florianc (Mon, 17 Jun 2019 06:29:40 GMT):
I don't know. Check you peer logs to check if it work or not.

nmutter (Mon, 17 Jun 2019 08:26:33 GMT):
has noone an idea?

florianc (Mon, 17 Jun 2019 08:40:17 GMT):
I dont have the answer, but you can see used ports in the connection profile. Communication is, if I am not mistaken, done with gossip protocol.

KrishnaprabuThangavel (Mon, 17 Jun 2019 08:43:38 GMT):
May i know why fabtoken is designed in such a way that it transfer values from one token but not the entire token

Vgkmanju (Mon, 17 Jun 2019 09:12:48 GMT):
Has joined the channel.

Vgkmanju (Mon, 17 Jun 2019 09:12:48 GMT):
In fabtoken, why they are considering token value as quantity and how it is possible to transfer particular quantity of one token?? For example consider bank loans, if 9 loans is grouped to one token it's worth is around 100USD. In fabtoken, how they are transfering 50USD of that token??? In this case, how the loans got separated???

Randyshu2018 (Mon, 17 Jun 2019 09:16:31 GMT):
channel fabric-gateway-java now available?

lskor (Mon, 17 Jun 2019 10:31:25 GMT):
Has joined the channel.

Meghna18 (Mon, 17 Jun 2019 10:37:36 GMT):
Has joined the channel.

Meghna18 (Mon, 17 Jun 2019 10:37:41 GMT):
hii

Meghna18 (Mon, 17 Jun 2019 10:37:42 GMT):
i want to connect to different instances of couchdb present in different peers in hyperledger fabric network. Please let me know the command to get the same.

MarianoThiago (Mon, 17 Jun 2019 13:12:20 GMT):
Has joined the channel.

MarianoThiago (Mon, 17 Jun 2019 13:12:20 GMT):
hi

MarianoThiago (Mon, 17 Jun 2019 13:12:25 GMT):
good morning

MarianoThiago (Mon, 17 Jun 2019 13:12:27 GMT):
Is there documentation about how to confire the orderers in more than one ordererorg in RAFT mode ?

MarianoThiago (Mon, 17 Jun 2019 13:12:40 GMT):
* to configure

PJHaga (Mon, 17 Jun 2019 13:59:01 GMT):
Has joined the channel.

walmon (Mon, 17 Jun 2019 14:04:22 GMT):
I understand that's in the roadmap, to create them dynamically

VictorMachado (Mon, 17 Jun 2019 14:22:19 GMT):
check if you deployed your orderer with tls enabled, also that port 6051 seems like a peer port maybe you have a typo?

MatteoLinear (Mon, 17 Jun 2019 15:25:27 GMT):
Hi everyone, is it possible to have peers of the same organization, but in different machines, that can both query and executes transaction on the same network?

kantipov (Mon, 17 Jun 2019 15:45:18 GMT):
Has joined the channel.

icarrascol (Mon, 17 Jun 2019 16:04:01 GMT):
hi everyone, i am trying to persist the data from hyperledger, i set it up as the doc says peer and couch db volumes in composer but it isnt persisting the data, does anyone know if i need something else to make it work?

ryantxu1 (Mon, 17 Jun 2019 17:02:24 GMT):
Has joined the channel.

ryantxu1 (Mon, 17 Jun 2019 17:02:25 GMT):
Can fabric be supported on Raspberry Pis?

ryantxu1 (Mon, 17 Jun 2019 17:02:25 GMT):
Can fabric be supported on Raspberry Pis? Where can I get images build in ARMv7

Antimttr (Mon, 17 Jun 2019 18:33:40 GMT):
i've never heard of that, but that'd be cool

Abhishek_Tyagi (Mon, 17 Jun 2019 18:58:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=X9DytHpz5RQGXdrgy) Hi Victor, Yes the orderers are TLS enabled. And does it matter which port I assign to Peer or orderer? Following is the configuration for orderer1: orderer1: hostname: orderer1.empmanagement.com image: hyperledger/fabric-orderer networks: xor-fabric: aliases: - orderer1.empmanagement.com environment: - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=xor-fabric - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFAK_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ./crypto-config/ordererOrganizations/empmanagement.com/orderers/orderer1.empmanagement.com/msp:/var/hyperledger/orderer/msp - ./crypto-config/ordererOrganizations/empmanagement.com/orderers/orderer1.empmanagement.com/tls/:/var/hyperledger/orderer/tls ports: - 6051:6050

billsinc (Mon, 17 Jun 2019 23:16:59 GMT):
Has joined the channel.

DarwinHarianto (Tue, 18 Jun 2019 01:22:36 GMT):
Hello guys, I've been following this post for deploying fabric on kubernetes. https://medium.com/@zhanghenry/how-to-deploy-hyperledger-fabric-on-kubernetes-2-751abf44c807 in that peer channel create section, ` peer channel create -o orderer0.orgorderer1: 7050 -c mychannel -f ./channel-artifacts/channel.tx ` orderer is not found. Is there any linking problem to link deployment between namespaces?

DarwinHarianto (Tue, 18 Jun 2019 01:22:36 GMT):
Hello guys, I've been following this post for deploying fabric on kubernetes. https://medium.com/@zhanghenry/how-to-deploy-hyperledger-fabric-on-kubernetes-2-751abf44c807 in that peer channel create section, ``` peer channel create -o orderer0.orgorderer1: 7050 -c mychannel -f ./channel-artifacts/channel.tx ``` orderer is not found. Is there any linking problem to link deployment between namespaces?

erictran1910 (Tue, 18 Jun 2019 05:35:42 GMT):
hi everyone, when i run ./start.sh javascript in fabcar folder in fabric-samples, it will create only 1 peer ( peer0.org1.example.com) and run the script "node query.js" , it will return the query result, but when i run "./byfn up -l node " in first-network folder , then run again "node query.js" , it shows the error : " Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed" . Can anyone help me ,

himanshuchawla009 (Tue, 18 Jun 2019 07:04:03 GMT):
hello everyone i am facing following error : andshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.

himanshuchawla009 (Tue, 18 Jun 2019 07:04:11 GMT):
while running balance transfer network

himanshuchawla009 (Tue, 18 Jun 2019 07:04:25 GMT):
on local system

himanshuchawla009 (Tue, 18 Jun 2019 07:04:46 GMT):
can anyone help to resolve this

Niklaskkkk (Tue, 18 Jun 2019 08:14:39 GMT):
hen I try to pull the genesis block for the current channel with this command: peer channel fetch oldest allarewelcome.block -c allarewelcome\ --orderer orderer.example.com:7050 I receive the following error: Cannot run peer because cannot init crypto, folder "/etc/hyperledger/msp/users/org1.example.com/mspAdmin@" does not exist Obiously I did execute the command before, with export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@​org1.example.com/msp without any error message. After searching I find that this could have something to do with setting wrong environment variable, however, no posts explain how I should do it (I am not experienced with setting PATHS). I have ubuntu 18.04. Appreaciate any help!

K1L14N (Tue, 18 Jun 2019 15:07:38 GMT):
on which peer do you execute this command ? there are too many possible reasons to your issue you need to be more precise

K1L14N (Tue, 18 Jun 2019 15:09:05 GMT):
looks like there is a space between your orderer name and port

UnaiUrkiaga (Tue, 18 Jun 2019 15:09:51 GMT):
Hi everyone, is Hyperledger 1.4 compatible with Docker 1.13 ????

K1L14N (Tue, 18 Jun 2019 15:10:46 GMT):
Can the peers part of the ordering service view the transactions content ? If so, in what sense a data can be "private" in private channels ?

K1L14N (Tue, 18 Jun 2019 15:12:04 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html

K1L14N (Tue, 18 Jun 2019 15:12:32 GMT):
of course

UnaiUrkiaga (Tue, 18 Jun 2019 15:16:22 GMT):
Thanks @K1L14N , is there a way to compatibilize hyperledger fabric 1.4 with docker 1.13??

K1L14N (Tue, 18 Jun 2019 15:46:56 GMT):
i don't think so, you might encounter issues, haven't tried tho.

hanubc7743 (Tue, 18 Jun 2019 19:52:15 GMT):
Hi Anybody know how to work with hyperledger fabric java sdk and ipfs?

walmon (Tue, 18 Jun 2019 19:59:39 GMT):
No, they can't

sekhmette (Tue, 18 Jun 2019 21:35:26 GMT):
What did you do to update those protocols?

DarwinHarianto (Wed, 19 Jun 2019 00:42:20 GMT):
this is my pods ``` NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-fb8b8dccf-5rsfd 1/1 Running 0 17h kube-system coredns-fb8b8dccf-vjs75 1/1 Running 0 17h kube-system etcd-k8s-master 1/1 Running 0 17h kube-system kube-apiserver-k8s-master 1/1 Running 0 17h kube-system kube-controller-manager-k8s-master 1/1 Running 0 17h kube-system kube-flannel-ds-amd64-hpbfz 1/1 Running 0 17h kube-system kube-flannel-ds-amd64-kb4j2 1/1 Running 0 17h kube-system kube-flannel-ds-amd64-r5npk 1/1 Running 0 17h kube-system kube-proxy-9mqj9 1/1 Running 0 17h kube-system kube-proxy-vr9zt 1/1 Running 0 17h kube-system kube-proxy-xz2fg 1/1 Running 0 17h kube-system kube-scheduler-k8s-master 1/1 Running 0 17h org1 ca-7cfc7bc4b6-k8bjm 1/1 Running 0 16h org1 cli-55dd4df5bb-6vn7g 1/1 Running 0 16h org1 peer0-org1-5c65b984d5-685bp 2/2 Running 0 16h org1 peer1-org1-7b9cf7fbd4-hf9b9 2/2 Running 0 16h org2 ca-567ccf7dcd-sgbxz 1/1 Running 0 16h org2 cli-76bb768f7f-mt9nx 1/1 Running 0 16h org2 peer0-org2-6c8fbbc7f8-n6msn 2/2 Running 0 16h org2 peer1-org2-77fd5f7f67-blqpk 2/2 Running 0 16h orgorderer1 orderer0-orgorderer1-7b6947868-d9784 1/1 Running 0 16h ```

DarwinHarianto (Wed, 19 Jun 2019 00:42:57 GMT):
``` vagrant@k8s-master:~/articles-master/fabric_on_kubernetes/Fabric-on-K8S/setupCluster/crypto-config/peerOrganizations$ kubectl exec -it cli-55dd4df5bb-6vn7g bash --namespace=org1 root@cli-55dd4df5bb-6vn7g:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer0.orgorderer1:7050 -c mychannel -f ./channel-artifacts/channel.tx 2019-06-19 00:41:31.465 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2019-06-19 00:41:31.465 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2019-06-19 00:41:51.466 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: i/o timeout"; Reconnecting to {orderer0.orgorderer1:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] ``` this is how I call it. I have been linking them using flannel over 3 vagrant vis.

DarwinHarianto (Wed, 19 Jun 2019 00:42:57 GMT):
``` vagrant@k8s-master:~/articles-master/fabric_on_kubernetes/Fabric-on-K8S/setupCluster/crypto-config/peerOrganizations$ kubectl exec -it cli-55dd4df5bb-6vn7g bash --namespace=org1 root@cli-55dd4df5bb-6vn7g:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer0.orgorderer1:7050 -c mychannel -f ./channel-artifacts/channel.tx 2019-06-19 00:41:31.465 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2019-06-19 00:41:31.465 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2019-06-19 00:41:51.466 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: i/o timeout"; Reconnecting to {orderer0.orgorderer1:7050 } Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable Usage: peer channel create [flags] ``` this is how I call it. I have been linking them using flannel over 3 vagrant vm.

erictran1910 (Wed, 19 Jun 2019 03:09:26 GMT):
hi everyone, when i run ./start.sh javascript in fabcar folder in fabric-samples, it will create only 1 peer ( peer0.org1.example.com) and run the script "node query.js" , it will return correctly the query result, but when i run "./byfn up -l node " in first-network folder to start 4 peers , then run again "node query.js" , it shows the error : " Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: 2 UNKNOWN: Stream removed" . Can anyone help me ,

RodrigoAcosta (Wed, 19 Jun 2019 03:51:45 GMT):
hello guys, hopefully someone already faced this before. I have created a node js REST API connecting to HP Fabric on IBM blockchain that works great. But I'm registering identities with affiliations and roles, but when I enroll them, that info is not being stored at the certificate and I'm not able to retrieve them. Does anyone has a similar issue?

RodrigoAcosta (Wed, 19 Jun 2019 03:52:25 GMT):
what are you trying to do?

RodrigoAcosta (Wed, 19 Jun 2019 04:03:21 GMT):
let me re prhase

RodrigoAcosta (Wed, 19 Jun 2019 04:03:22 GMT):
hello team, I have created a nodeJS REST API and it is working great. I'm connecting to HP on IBM cloud. However, I'm registering identities on the CA with affiliations and roles specified. ``` await caClient.register({ enrollmentID: userName, enrollmentSecret: secret, role: 'client', affiliation: "MyOrg.Backend", maxEnrollments: 0, attr_reqs: [ {name: "hf.Registrar.Roles"}, {name: "hf.Registrar.Attributes"} ]}, admin); ``` My problem is that when I enroll the users, role and affiliation values are not being stored at the certificate stored at my hfc store path, for example: ``` {"name":"test","mspid":"IssuerMSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"b58958bb5e98445.... ``` and on my user object, affiliation and role are unset. Does anyone have a clue of what I'm doing wrong?

K1L14N (Wed, 19 Jun 2019 06:41:05 GMT):
Can the peers part of the ordering service view the content of the transactions ? If so, in what sense a data can be "private" in private channels ?

deenario (Wed, 19 Jun 2019 06:47:42 GMT):
Hey guys i have to write a chaincode in which i have 3 structures. I have states and every state has a dist . Now to create a realtion between them. In relational DB i could make a relation. What is its equivalent for Fabric using couchdb ?

Shanmugaapriyan (Wed, 19 Jun 2019 07:25:40 GMT):
Has joined the channel.

Shanmugaapriyan (Wed, 19 Jun 2019 07:28:04 GMT):
Hi guys, I would like to know is there a way to instantiate the chaincode without using maven/gradle ?

Shanmugaapriyan (Wed, 19 Jun 2019 07:28:04 GMT):
Hi guys, I would like to know is there a way to instantiate the java chaincode without using maven/gradle ?

K1L14N (Wed, 19 Jun 2019 07:50:42 GMT):
of course using 'peer' command

benjamin.verhaegen (Wed, 19 Jun 2019 08:03:52 GMT):
Hi, i'm searching for somebody with experience in connecting SDK to a remote server running Hyperledger Fabric. I can connect to the network, but get channel errors

benjamin.verhaegen (Wed, 19 Jun 2019 08:04:18 GMT):
does somebody have any example on how to setup the policies/ chaincode/ connection profiles to connect to Fabric?

ahmad-raza (Wed, 19 Jun 2019 08:15:10 GMT):
https://fabric-sdk-node.github.io/master/tutorial-network-config.html may be this can help you

AndreyYudin (Wed, 19 Jun 2019 08:51:53 GMT):
Has joined the channel.

vb2605 (Wed, 19 Jun 2019 09:06:37 GMT):
I need to run Hyperledger-Fabric instances on 4 different machines PC-1 should contain CA and peers of ORG-1 in containers, Pc-2 should contain CA and peers of ORG-2, PC-3 should contain orderer(solo) and PC-4 should Node api Is my approach missing something ? if not how can I achieve this?

phantom.assasin (Wed, 19 Jun 2019 09:28:08 GMT):
Hey, Is there any way for us to remove a channel or remove a peer from a channel through sdk?

ahmad-raza (Wed, 19 Jun 2019 09:31:26 GMT):
can anyone please explain the concept of re-enrolling the identity, as i have created identity with 1h expiry and before 1h i reenrolled it. but after 1h it is giving errors of expired identity although i have look in fabric-ca-server.db file there are two certificates one that is expired and second that i reenrolled. butt why it always go with expired one ?

Abrara (Wed, 19 Jun 2019 09:51:43 GMT):
Hello everyone, I'm currently trying to add multiple data in an HLF ledger based on the fabcar example with javascript. If I call "createCar" from the chaincode for each car to add, the performance are terrible (basically 3s per car), so what would be the correct way to do it? I've thought about altering the chaincode for a batch insert of cars (with a loop like in "initLedger") but it seems kinda tedious since you cannot pass an array of string to "submitTransaction" in the javascript code (unless I'm missing stgh). TIA

Abrara (Wed, 19 Jun 2019 09:51:43 GMT):
Hello everyone, I'm currently trying to add multiple data in an HLF ledger based on the fabcar example with javascript. If I call in my js app the "createCar" function from the chaincode for each car to add, the performance are terrible (basically 3s per car), so what would be the correct way to do it? I've thought about altering the chaincode for a batch insert of cars (with a loop like in "initLedger") but it seems kinda tedious since you cannot pass an array of string to "submitTransaction" in the javascript code (unless I'm missing stgh). TIA

Shanmugaapriyan (Wed, 19 Jun 2019 10:42:58 GMT):
Thank you for your response @K1L14N .

Shanmugaapriyan (Wed, 19 Jun 2019 10:44:44 GMT):
But I would like to rephrase my question here. I would like to develop a java chaincode without using gradle or maven repository, like a normal java with library jars . Is this possible ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:44:44 GMT):
But I would like to rephrase my question here. I want to develop a java chaincode without using gradle or maven repository for including the dependencies. I want to bring in my own java libraries . Is this possible in Hyperleger fabric ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:44:44 GMT):
But I would like to rephrase my question here. I want to develop a java chaincode without using gradle or maven repository for including the dependencies (i.e) I want to introduce the dependent java libraries in the old fashion way ( like jars, zips ) . Is this possible in Hyperleger fabric ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:58:49 GMT):
Hi guys , I have one more query. Is it possible to develop a java chaincode with using maven or gradle repositories for including the dependencies of the same. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is this possible to create the chaincode in this way ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:58:49 GMT):
Hi guys , I have one more query. Is it possible to develop a java chaincode with using maven or gradle repositories for including the dependencies. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is this possible to create the chaincode in this way ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:58:49 GMT):
Hi guys , I have one more query. Is it possible to develop a java chaincode without using maven or gradle repositories for including the dependencies. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is this possible to create the chaincode in this way ?

Shanmugaapriyan (Wed, 19 Jun 2019 10:58:49 GMT):
Hi guys , I have one more query. Is it possible to develop a java chaincode without using maven or gradle repositories for including the dependencies. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is it possible to create the chaincode in this way ?

davidkel (Wed, 19 Jun 2019 11:16:18 GMT):
Might want to ask in #fabric-java-chaincode you may get an answer there

Shanmugaapriyan (Wed, 19 Jun 2019 11:27:35 GMT):
okay @davidkel. I will ask in that channel as well. Thank you

erikleffler (Wed, 19 Jun 2019 11:37:54 GMT):
Has joined the channel.

erikleffler (Wed, 19 Jun 2019 11:37:55 GMT):
Hey guys, I'm trying to develop code using the golang sdk to interact with a fabric ledger. Does anyone know of any good documentation/tutorial? I've had a look at the chainhero one but its not really enough.

vaibhavr2709 (Wed, 19 Jun 2019 12:47:24 GMT):
Has joined the channel.

hanubc7743 (Wed, 19 Jun 2019 12:49:57 GMT):
need ipfs for storing documents

vaibhavr2709 (Wed, 19 Jun 2019 12:50:53 GMT):
I am trying to run the ubuntu build for the hyperledger fabric insurance app but getting an error. I have raised an issue on the github repo of the project.

vaibhavr2709 (Wed, 19 Jun 2019 12:51:16 GMT):
https://github.com/IBM/build-blockchain-insurance-app/issues/79

vaibhavr2709 (Wed, 19 Jun 2019 12:52:11 GMT):
This is the link to the issue i have registered. Any idea what's probably going wrong during the build.

hanubc7743 (Wed, 19 Jun 2019 13:56:45 GMT):
do we have ipfs client for java sdk?

hanubc7743 (Wed, 19 Jun 2019 13:57:16 GMT):
Is it stable for development?

john.ciclus (Wed, 19 Jun 2019 14:06:08 GMT):
Has joined the channel.

john.ciclus (Wed, 19 Jun 2019 14:13:00 GMT):
Hello everyone, I'm having a problem during the execution of the command peer chaincode instantiate, the instantiation doesn't end or create the peer container, any suggestion?

soumyanayak (Wed, 19 Jun 2019 14:16:16 GMT):
Has joined the channel.

soumyanayak (Wed, 19 Jun 2019 14:16:17 GMT):
Hi All, I am facing some issues while creating a kafka zookeeper cluster. Distributed the zookeepers and brokers across 4 virtual machines as below: VM1 - kafka1, zookeeper1 VM2 - kafka2, zookeeper2 VM3 - kafka3, zookeeper3 VM4 - kafka4 Using docker compose i am trying to achieve. But after i had started the dockers - the logs in the machines are showing as the brokers and zookeepers are started ..the moment i run orderer , its unable to start completely. I am getting the below errors in orderer:- 7 IST [orderer.consensus.kafka] try -> DEBU 2cf [channel: ordererchannel] Attempting to post the CONNECT message... 2019-06-19 18:38:36.637 IST [orderer.consensus.kafka.sarama] RefreshMetadata -> DEBU 2d0 client/metadata fetching metadata for [ordererchannel] from broker kafka3:9092 2019-06-19 18:38:36.667 IST [orderer.consensus.kafka.sarama] RefreshMetadata -> DEBU 2d1 client/metadata found some partitions to be leaderless 2019-06-19 18:38:36.667 IST [orderer.consensus.kafka.sarama] tryRefreshMetadata -> DEBU 2d2 client/metadata retrying after 250ms... (3 attempts remaining) 2019-06-19 18:38:36.917 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2d3 client/metadata fetching metadata for [ordererchannel] from broker kafka3:9092 2019-06-19 18:38:36.928 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2d4 client/metadata found some partitions to be leaderless 2019-06-19 18:38:36.928 IST [orderer.consensus.kafka.sarama] tryRefreshMetadata -> DEBU 2d5 client/metadata retrying after 250ms... (2 attempts remaining) 2019-06-19 18:38:37.178 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2d6 client/metadata fetching metadata for [ordererchannel] from broker kafka3:9092 2019-06-19 18:38:37.195 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2d7 client/metadata found some partitions to be leaderless 2019-06-19 18:38:37.195 IST [orderer.consensus.kafka.sarama] tryRefreshMetadata -> DEBU 2d8 client/metadata retrying after 250ms... (1 attempts remaining) 2019-06-19 18:38:37.445 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2d9 client/metadata fetching metadata for [ordererchannel] from broker kafka3:9092 2019-06-19 18:38:37.462 IST [orderer.consensus.kafka.sarama] func1 -> DEBU 2da client/metadata found some partitions to be leaderless 2019-06-19 18:38:37.462 IST [orderer.consensus.kafka] try -> DEBU 2db [channel: ordererchannel] Initial attempt failed = kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes. So how to check if the brokers and zookeepers are working properly. It would be of great help. Images used are -- hyperledger/fabric-kafka for kafka and hyperledger/fabric-zookeeper for zookeeper Regards, Soumya

RodrigoAcosta (Wed, 19 Jun 2019 14:19:50 GMT):
you will have to share errors. post the logs of the orderer

soumyanayak (Wed, 19 Jun 2019 14:21:51 GMT):
Hi , try checking this tutorial - https://courses.pragmaticpaths.com/p/mastering-fabric-chaincode-development-in-golang

mna 18 (Wed, 19 Jun 2019 14:28:21 GMT):
Has joined the channel.

mna 18 (Wed, 19 Jun 2019 14:28:23 GMT):
Is chaincode source logged anywhere when we install it on a peer? How to keep the chaincode source private?

florianc (Wed, 19 Jun 2019 14:35:19 GMT):
It the peer's container logs

florianc (Wed, 19 Jun 2019 14:36:16 GMT):
Chaincode source is necessary to execute the code (obviously). I don't really know what you mean by "private", but I think you can't remove it from the peer

john.ciclus (Wed, 19 Jun 2019 14:39:14 GMT):
Hello Rodrigo, the latest logs are: 2019-06-19 12:36:25.533 UTC [fsblkstorage] newBlockfileMgr -> INFO 003 Getting block information from block storage 2019-06-19 12:36:25.558 UTC [orderer.commmon.multichannel] Initialize -> INFO 004 Starting system channel 'testchainid' with genesis block hash f82a8b06667f5b7ee94cb776b292a6c4bb0379e61ffad637876b28c9712c48bb and orderer type solo 2019-06-19 12:36:25.558 UTC [orderer.common.server] Start -> INFO 005 Starting orderer: Version: 1.4.1 Commit SHA: 87074a7 Go version: go1.11.5 OS/Arch: linux/amd64 2019-06-19 12:36:25.558 UTC [orderer.common.server] Start -> INFO 006 Beginning to serve requests 2019-06-19 12:37:23.707 UTC [comm.grpc.server] 1 -> INFO 007 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.5:33322 grpc.code=OK grpc.call_duration=13.865828ms 2019-06-19 12:37:23.710 UTC [fsblkstorage] newBlockfileMgr -> INFO 008 Getting block information from block storage 2019-06-19 12:37:23.719 UTC [orderer.commmon.multichannel] newChain -> INFO 009 Created and starting new chain channelall 2019-06-19 12:37:23.720 UTC [comm.grpc.server] 1 -> INFO 00a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.5:33320 grpc.code=OK grpc.call_duration=28.451812ms 2019-06-19 13:36:01.597 UTC [orderer.common.broadcast] Handle -> WARN 00b Error reading from 172.18.0.5:33614: rpc error: code = Canceled desc = context canceled 2019-06-19 13:36:01.597 UTC [comm.grpc.server] 1 -> INFO 00c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.5:33614 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=45m29.572882493s

mna 18 (Wed, 19 Jun 2019 14:40:35 GMT):
Is there a way to deploy a golang as an executable/image? So that way the source can be kept private. Is it possible?

mna 18 (Wed, 19 Jun 2019 14:40:35 GMT):
Is there a way to deploy a chaincode as an executable/image? So that way the source can be kept private. Is it possible?

john.ciclus (Wed, 19 Jun 2019 14:41:54 GMT):
there is a error in a IP 172.18.0.5

john.ciclus (Wed, 19 Jun 2019 14:41:55 GMT):
WARN 00b Error reading from 172.18.0.5:33614: rpc error: code = Canceled desc = context canceled

john.ciclus (Wed, 19 Jun 2019 14:42:22 GMT):
therefore, I don't set up this IP

mna 18 (Wed, 19 Jun 2019 14:57:14 GMT):
I am using a third party fabric platform. We want to keep our chaincode source private from them. Is there a way to achieve this?

K1L14N (Wed, 19 Jun 2019 15:07:12 GMT):
no, you can not endorse if you don't know the logic

walmon (Wed, 19 Jun 2019 16:59:17 GMT):
You are looking to avoid them from seeing it while deploying or running?

Khaled.MH (Wed, 19 Jun 2019 17:01:54 GMT):
Hey guys how Hyperledger fabric managing Big Data docs scalability ?

hanubc7743 (Wed, 19 Jun 2019 17:46:17 GMT):
Hi Can we integrate oracle db instead of couch db in hyperledger fabric?

diestrin (Wed, 19 Jun 2019 18:42:27 GMT):
Can anyone help me here with a RAFT problem? I created ticket https://jira.hyperledger.org/browse/FAB-15767 for this I'm starting a network with multiple orderers from multiple organizations, and when they are starting the server and try to talk to each other, they randomly fail stating they're in status `CONNECTING`. After some attempts the orderer server crashes. This is only when multiple orderers start the network, if I use only one orderer, the problem doesn't happen

Antimttr (Wed, 19 Jun 2019 18:58:07 GMT):
@diestrin seems similar to @dev-d 's problem he talked about in #fabric-questions

Antimttr (Wed, 19 Jun 2019 18:58:07 GMT):
@diestrin seems similar to @dev-d 's problem he talked about in #fabric

dev-d (Wed, 19 Jun 2019 18:58:08 GMT):
Has joined the channel.

diestrin (Wed, 19 Jun 2019 19:10:21 GMT):
gonna take a look, thanks

diestrin (Wed, 19 Jun 2019 19:18:00 GMT):
sadly no, that's not the error for my case

yacovm (Wed, 19 Jun 2019 19:45:18 GMT):
@diestrin i commented in the JIRA

diestrin (Wed, 19 Jun 2019 19:58:04 GMT):
thanks, will take a look

icarrascol (Wed, 19 Jun 2019 20:04:10 GMT):
can anyone help me i am getting this error Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (119344800 vs. 104857600) using node sdk and using a direct invoke

sekhmette (Wed, 19 Jun 2019 20:57:21 GMT):

Clipboard - June 19, 2019 1:57 PM

sekhmette (Wed, 19 Jun 2019 20:59:41 GMT):
Hello, I am using Fabric 1.4.1 and have enabled TLS and I am using Raft consensus with 3 orderers across 2 servers, and I keep receiving the following error in my orderer logs: [core.comm] ServerHandshake -> ERRO 07f TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=[ip address]:51118 Eventually, each orderer Docker container goes down after 10 minutes due to "PANI 276 Failed creating a block puller." Any suggestions?

yacovm (Wed, 19 Jun 2019 21:02:41 GMT):
@sekhmette this is probably due to bad configuration

yacovm (Wed, 19 Jun 2019 21:02:55 GMT):
if it can't create a block puller it is due to bad certificate or something

yacovm (Wed, 19 Jun 2019 21:03:39 GMT):
i'll open a JIRA to make the reason be included in the logs

yacovm (Wed, 19 Jun 2019 21:15:43 GMT):
https://jira.hyperledger.org/browse/FAB-15769 if it helps :/

yacovm (Wed, 19 Jun 2019 21:15:49 GMT):
better late than never

sekhmette (Wed, 19 Jun 2019 21:22:18 GMT):
Thanks!

asahaf (Thu, 20 Jun 2019 06:47:08 GMT):
Has joined the channel.

asahaf (Thu, 20 Jun 2019 06:47:09 GMT):
Hi all, does any one knows how we can use sort in the couchdb? every time I used it I faced index_error problem. I tried several way to create the sort index but I didn't achieve any success and also I didn't find any sample on how to create index for the sort on the internet. Would you please help me how to create index which can be used in sort the queries. Thanks!

asahaf (Thu, 20 Jun 2019 06:48:07 GMT):
{ "index": { "fields": [ "Uploadtime" ] }, "ddoc": "indexOwnerDoc", "name": "indexOwner", "type": "json" }

asahaf (Thu, 20 Jun 2019 06:48:23 GMT):
{"selector": {"docType": "Document"},"sort": [{"uploadtime": "desc"}]}

asahaf (Thu, 20 Jun 2019 06:48:32 GMT):
error handling CouchDB request. Error:no_usable_index, Status >Code:400, Reason:No index exists for this sort, try indexing by the >sort fields.

AndresMartinezMelgar.itcl (Thu, 20 Jun 2019 07:17:43 GMT):
Hi, anyone receibe this error? cannot enqueue envelope because = kafka server: Message was too large, server rejected it to avoid allocation error I tried to send to my net a file in base64

benjamin.verhaegen (Thu, 20 Jun 2019 07:27:58 GMT):
@AndresMartinezMelgar.itcl it's a bad practice to send files to your Hyperledger Fabric network. You should keep the file off chain or in IPFS and save the hash of the file on your Hyperledger Fabric netwokk

AndresMartinezMelgar.itcl (Thu, 20 Jun 2019 07:38:38 GMT):
@benjamin.verhaegen ok thx

MattiaBolzonella (Thu, 20 Jun 2019 07:40:22 GMT):
Hi i created a sample network with TLS enabled and RAFT ordering service. Currently i have 5 orederers, 2 orgs with 2 peer each (1 anchor and 1 peer). I successfully created a channel of which Org1 and Org2 are members. I've written a simple java chaincode and built it with Maven. Using the cli peer i can install the chaincode onto the anchor peer of Org1, but i can't instatiate it. Logs of the peer when i try to instatiate the chaincode:``` [mychannel][734c76b9] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Can some one help me please?

MattiaBolzonella (Thu, 20 Jun 2019 07:40:22 GMT):
Hi i created a sample network with TLS enabled and RAFT ordering service. Currently i have 5 orederers, 2 orgs with 2 peer each (1 anchor and 1 peer). I successfully created a channel of which Org1 and Org2 are members. I've written a simple java chaincode and built it with Maven. Using the cli peer i can install the chaincode onto the anchor peer of Org1, but i can't instatiate it. Logs of the peer when i try to instatiate the chaincode:``` [mychannel][734c76b9] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Can some one help me please, i'm using Fabric 1.4.1?

MattiaBolzonella (Thu, 20 Jun 2019 07:40:22 GMT):
Hi i created a sample network with TLS enabled and RAFT ordering service. Currently i have 5 orederers, 2 orgs with 2 peer each (1 anchor and 1 peer). I successfully created a channel of which Org1 and Org2 are members. I've written a simple java chaincode and built it with Maven. Using the cli peer i can install the chaincode onto the anchor peer of Org1, but i can't instatiate it. Logs of the peer when i try to instatiate the chaincode:``` [mychannel][734c76b9] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Can some one help me please? I'm using Fabric 1.4.1

MattiaBolzonella (Thu, 20 Jun 2019 07:40:22 GMT):
Hi, I created a sample network with TLS enabled and RAFT ordering service. Currently i have 5 orederers, 2 orgs with 2 peers each (1 anchor and 1 peer). I successfully created a channel of which Org1 and Org2 are members. I've written a simple java chaincode and built it with Maven. Using the cli peer i can install the chaincode onto the anchor peer of Org1, but i can't instatiate it. Logs of the peer when i try to instatiate the chaincode:``` [mychannel][734c76b9] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Can someone help me please? I'm using Fabric 1.4.1

MattiaBolzonella (Thu, 20 Jun 2019 07:41:35 GMT):
the chaincode is not named lscc but mycc

mna 18 (Thu, 20 Jun 2019 10:38:55 GMT):
I am sure they wont be able to see it when it it is running(it's binary image inside the container). I don't want their admin to be able to copy the source code from logs.

mna 18 (Thu, 20 Jun 2019 10:38:55 GMT):
I am sure they wont be able to see it when it it is running(it's binary image inside the container). So deploy is what i am interested in. I don't want their admin to be able to copy the source code from logs.

davidkel (Thu, 20 Jun 2019 10:47:21 GMT):
if they have access to any of the peers filesystem then they can get the source code

davidkel (Thu, 20 Jun 2019 10:47:21 GMT):
if they have access to any of the peers filesystems then they can get the source code

mna 18 (Thu, 20 Jun 2019 11:02:13 GMT):
this is what I thought. Thanks.

davidkel (Thu, 20 Jun 2019 11:04:23 GMT):
FYI proposed changes coming in the fabric 2 will allow you to provide pre-compiled chaincode

davidkel (Thu, 20 Jun 2019 11:04:23 GMT):
FYI proposed changes coming in the fabric 2 releases will allow you to provide pre-compiled chaincode

davidkel (Thu, 20 Jun 2019 11:04:23 GMT):
FYI proposed changes coming in the fabric 2 releases will allow you to provide pre-compiled chaincode. However how feasible is it to decompile an executable written in Go and get back something of use ?

davidkel (Thu, 20 Jun 2019 11:04:23 GMT):
FYI proposed changes coming in the fabric 2 releases will allow you to provide pre-compiled chaincode.

mna 18 (Thu, 20 Jun 2019 11:09:13 GMT):
This is great!

mna 18 (Thu, 20 Jun 2019 11:10:19 GMT):
How different are commercial Fabric platforms from Open Fabric. I mean SAP and IBM Blockchain platforms specifically?

PanaS1 (Thu, 20 Jun 2019 12:07:12 GMT):
Has joined the channel.

PanaS1 (Thu, 20 Jun 2019 12:07:13 GMT):
Hello, I have some trouble with setting up kafka on multiple hosts. Can someone help me please? I dont understand how to send messages after setting up my HL network on multiple hosts and kafka manager following this tutorial: https://medium.com/@malliksarvepalli/configuring-apache-kafka-with-hyperledger-fabric-1-2-on-multiple-hosts-e16c6079d112

jlcs (Thu, 20 Jun 2019 12:44:45 GMT):
When using CouchDB as the data store, where is private data stored? We have two new databases in CouchDB: _$$hcollection$ _$$pcollection$ But they are empty, although the queries for private data return the data, and it is not in the non private documents in the other databases. Do I need to configure in core.yaml / environment variables that the private data is also stored in Couch DB?

Missterio (Thu, 20 Jun 2019 14:29:53 GMT):
Has joined the channel.

Missterio (Thu, 20 Jun 2019 14:29:55 GMT):
Hello guys I have built a REST server according to the instructions Using Google OAUTH2.0 with a REST server and I was successful. Then I built an application for the client using angular. I obtained the token after the user logged in and successfully interacted with the REST server api. The problem is that when I use this token to get user information like name, email, ... from google api, it always returns an "Invalid Credentials" error. The API that I use to get information is https://www.googleapis.com/oauth2/v3/userinfo. Ex: https://www.googleapis.com/oauth2/v3/userinfo?access_token=u2dDxaEeECKPAv6HlhQ1eMULWNADvVDHbGTlUjnS7jfUII0fwiHvkzYGD0FmZjuf What is my problem? Any ideas are appreciated.

Swhit210 (Thu, 20 Jun 2019 14:51:22 GMT):
I updated the config file I use when creating a client class within my node scripts that make up my CLI client application. https://fabric-sdk-node.github.io/release-1.4/Client.html#.loadFromConfig__anchor

Swhit210 (Thu, 20 Jun 2019 14:54:02 GMT):
I believe my config is equivalent to the connection-org.json or connection-org.yaml files located here in fabric-samples: https://github.com/hyperledger/fabric-samples/tree/release-1.4/first-network

Swhit210 (Thu, 20 Jun 2019 14:55:12 GMT):
All the connection files in above link use grpcs and https protocols.

erictran1910 (Thu, 20 Jun 2019 16:29:49 GMT):
lol

erictran1910 (Thu, 20 Jun 2019 16:30:02 GMT):
why only my question has no answer

erictran1910 (Thu, 20 Jun 2019 16:30:04 GMT):
:(

vaibhavr2709 (Thu, 20 Jun 2019 17:39:06 GMT):
I need to add one more peer to the basic-network of fabric-samples. How do I do it

Antimttr (Thu, 20 Jun 2019 18:11:12 GMT):
Hey I think you'll need to make sure none of the docker nodes from fabcar are running before you start first-network. That's my guess aynways

Antimttr (Thu, 20 Jun 2019 18:11:12 GMT):
Hey I think you'll need to make sure none of the docker nodes from fabcar are running before you start first-network. That's my guess anyways

vaibhavr2709 (Thu, 20 Jun 2019 18:14:32 GMT):
To stop and remove all existing containers

vaibhavr2709 (Thu, 20 Jun 2019 18:15:16 GMT):
docker stop $(docker ps -aq) && docker rm $(docker ps -aq). Do this

bhanukandregula (Thu, 20 Jun 2019 20:59:22 GMT):
```Hello Everyone, I would love to explore generating digital certificates to the digital documents with in the Hyperledger Fabric network. Please advise where to start. Thank you very much in advance.```

mespejo84 (Thu, 20 Jun 2019 21:13:56 GMT):
Has joined the channel.

mespejo84 (Thu, 20 Jun 2019 21:13:57 GMT):
Hi everyone, as in many parts there is some examples of blockchain applications using Hyperledger Composer, and there is another ones using Fabric SDK, my first question is, which one should I use? I mean, it is right to use Hyperledger Composer for "production ready" applications? Which advantages do I have using pure Fabric SDK chaincode? If anyone could point to me to somewhere this kind of things are discussed I will appreciate

yacovm (Thu, 20 Jun 2019 21:15:48 GMT):
don't use composer. ever. again.

yacovm (Thu, 20 Jun 2019 21:16:02 GMT):
it is no longer supported.

mespejo84 (Thu, 20 Jun 2019 21:25:11 GMT):
I didn't know that, I guess that answer my question

Taffies (Fri, 21 Jun 2019 03:31:02 GMT):
Hi, may I know if anyone has a full list of communications and its protocols that are being used in a fabric network? E.g. Communication protocols used to communicate amongst peers in a channel, etc.

Taffies (Fri, 21 Jun 2019 03:31:02 GMT):
Hi, may I know if anyone has a full list of communication ports and its protocols that are being used in a fabric network? E.g. Communication protocols used to communicate amongst peers in a channel, etc.

dev-d (Fri, 21 Jun 2019 04:09:59 GMT):
is it required to run a couchdb container in hyperledger fabric network? I am testing a SC on a network which is having byfn configuration (raft one) but I didnt instantiated couchDB containers BUT still everything works fine..

dev-d (Fri, 21 Jun 2019 04:10:41 GMT):
So Q: is it required to run a couchdb container in hyperledger fabric network? Q: If it is not required then where does Chaincode stores the state ?

dev-d (Fri, 21 Jun 2019 04:11:35 GMT):

These are the running containers

dev-d (Fri, 21 Jun 2019 04:13:18 GMT):
is it LeveldB at peer level??? can anyone confirm ?

mlohr (Fri, 21 Jun 2019 05:46:26 GMT):
Hello everybody. Is there, beside the official documentation, any detailed example on how policies work? I'm still struggling with understanding them completely...

vaibhavr2709 (Fri, 21 Jun 2019 07:12:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gHktsSibszxDZAcmc) Please can somebody help

Taffies (Fri, 21 Jun 2019 07:34:14 GMT):
`deliver(seqno, prevhash, blob)` how is prevhash generated? is it by the ordering service?

Taffies (Fri, 21 Jun 2019 07:34:14 GMT):
`deliver(seqno, prevhash, blob)` where can I find the code for the ordering service API/

Taffies (Fri, 21 Jun 2019 07:34:14 GMT):
`deliver(seqno, prevhash, blob)` where can I find the code for the ordering service API?

Taffies (Fri, 21 Jun 2019 07:34:14 GMT):
`deliver(seqno, prevhash, blob)` where can I find the code for the ordering service API? I'm trying to find out who generates the hash to the written to the ledger

K1L14N (Fri, 21 Jun 2019 07:36:51 GMT):
hey do you know which API in the SDK can help me handle events for integrating web sockets in my server ?

tejateja (Fri, 21 Jun 2019 08:20:36 GMT):
you have to make changes in docker-compose.yaml file

vaibhavr2709 (Fri, 21 Jun 2019 08:21:18 GMT):
Okay what more

vaibhavr2709 (Fri, 21 Jun 2019 08:22:22 GMT):
I think in the crypto-config.yaml too

tejateja (Fri, 21 Jun 2019 08:25:00 GMT):
you have to update the organization count

vaibhavr2709 (Fri, 21 Jun 2019 08:25:31 GMT):
done

vaibhavr2709 (Fri, 21 Jun 2019 08:28:09 GMT):
I need to add one more peer to a particular org. The number of org remain the same

saumitra99 (Fri, 21 Jun 2019 08:33:10 GMT):
Has joined the channel.

saumitra99 (Fri, 21 Jun 2019 08:33:11 GMT):
[root@100friends first-network]# ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /root/hyperledger/l/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml ./byfn.sh: line 347: 31085 Segmentation fault cryptogen generate --config=./crypto-config.yaml + res=139 + set +x Failed to generate certificates...

saumitra99 (Fri, 21 Jun 2019 08:33:21 GMT):
i am getting this error

tejateja (Fri, 21 Jun 2019 08:36:16 GMT):
i think u have to down the network

BlueKing (Fri, 21 Jun 2019 08:36:38 GMT):
How to view the ledger in a peernode by navigating into the docker container

saumitra99 (Fri, 21 Jun 2019 08:36:44 GMT):
using iwconfig?

BlueKing (Fri, 21 Jun 2019 08:37:10 GMT):
to down the network use ./byfn -m down

BlueKing (Fri, 21 Jun 2019 08:37:28 GMT):
How to view the ledger in a peernode by navigating into the docker container, also please suggest other ways of viewing the ledger

BlueKing (Fri, 21 Jun 2019 08:38:02 GMT):
Been using composer so far and it's plug has been pulled so resorted to fabric, any help is appreciated

saumitra99 (Fri, 21 Jun 2019 08:39:26 GMT):
still not working/

tejateja (Fri, 21 Jun 2019 08:45:46 GMT):
share the file

soumyanayak (Fri, 21 Jun 2019 08:47:01 GMT):
Hello everyone When i am running the channel create command of peer i am getting the below issue 2019-06-21 14:13:20.975 IST [msp] setupSigningIdentity -> DEBU 033 Signing identity expires at 2020-06-11 10:37:00 +0000 UTC 2019-06-21 14:13:20.975 IST [msp] Validate -> DEBU 034 MSP Org1MSP validating identity 2019-06-21 14:13:20.975 IST [msp] GetDefaultSigningIdentity -> DEBU 035 Obtaining default signing identity 2019-06-21 14:13:20.975 IST [grpc] DialContext -> DEBU 036 parsed scheme: "" 2019-06-21 14:13:20.976 IST [grpc] DialContext -> DEBU 037 scheme "" not registered, fallback to default scheme 2019-06-21 14:13:20.976 IST [grpc] watcher -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{172.23.155.122:7050 0 }] 2019-06-21 14:13:20.976 IST [grpc] switchBalancer -> DEBU 039 ClientConn switching balancer to "pick_first" 2019-06-21 14:13:20.976 IST [grpc] HandleSubConnStateChange -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc0001af6f0, CONNECTING 2019-06-21 14:13:20.978 IST [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc0001af6f0, READY 2019-06-21 14:13:20.978 IST [channelCmd] InitCmdFactory -> INFO 03c Endorser and orderer connections initialized 2019-06-21 14:13:20.979 IST [msp] GetDefaultSigningIdentity -> DEBU 03d Obtaining default signing identity 2019-06-21 14:13:20.979 IST [msp] GetDefaultSigningIdentity -> DEBU 03e Obtaining default signing identity 2019-06-21 14:13:20.979 IST [msp.identity] Sign -> DEBU 03f Sign: plaintext: 0AE1070A074F7267314D535012D5072D...697074696F6E436F6E736F727469756D 2019-06-21 14:13:20.979 IST [msp.identity] Sign -> DEBU 040 Sign: digest: 84EB0A1EC23D8FCBDAAA707BF8E3597049ACD5A8A397F5A443ED5039E83D9CDE 2019-06-21 14:13:20.979 IST [msp] GetDefaultSigningIdentity -> DEBU 041 Obtaining default signing identity 2019-06-21 14:13:20.979 IST [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity 2019-06-21 14:13:20.979 IST [msp.identity] Sign -> DEBU 043 Sign: plaintext: 0AA6080A2308021A0608A8B1B2E80522...300EA19073662B3E8D018B9D2664B9E8 2019-06-21 14:13:20.980 IST [msp.identity] Sign -> DEBU 044 Sign: digest: 732DE76F88D1615E619CA658551700A2B125E281073AB150000CC541ED0E910A 2019-06-21 14:13:20.980 IST [grpc] DialContext -> DEBU 045 parsed scheme: "" 2019-06-21 14:13:20.980 IST [grpc] DialContext -> DEBU 046 scheme "" not registered, fallback to default scheme 2019-06-21 14:13:20.980 IST [grpc] watcher -> DEBU 047 ccResolverWrapper: sending new addresses to cc: [{172.23.155.122:7050 0 }] 2019-06-21 14:13:20.980 IST [grpc] switchBalancer -> DEBU 048 ClientConn switching balancer to "pick_first" 2019-06-21 14:13:20.980 IST [grpc] HandleSubConnStateChange -> DEBU 049 pickfirstBalancer: HandleSubConnStateChange: 0xc0005963e0, CONNECTING 2019-06-21 14:13:20.981 IST [grpc] HandleSubConnStateChange -> DEBU 04a pickfirstBalancer: HandleSubConnStateChange: 0xc0005963e0, READY Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'legaldescriptionchannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied Can anybody please help

saumitra99 (Fri, 21 Jun 2019 08:47:18 GMT):
[root@100friends first-network]# ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /root/hyperledger/l/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml ./byfn.sh: line 347: 702 Segmentation fault cryptogen generate --config=./crypto-config.yaml + res=139 + set +x Failed to generate certificates... [root@100friends first-network]# docker --version Docker version 18.09.6, build 481bc77 [root@100friends first-network]# node --version v10.16.0 [root@100friends first-network]#

saumitra99 (Fri, 21 Jun 2019 08:47:49 GMT):
when is run the byfn script. it shows Failed to generate certificates...

saumitra99 (Fri, 21 Jun 2019 08:47:49 GMT):
when i run the byfn script. it shows Failed to generate certificates...

hungba (Fri, 21 Jun 2019 08:48:20 GMT):
Has joined the channel.

tejateja (Fri, 21 Jun 2019 08:51:29 GMT):
did u changed anything in configtx file

saumitra99 (Fri, 21 Jun 2019 08:51:55 GMT):
nope

PhilippDolgolev (Fri, 21 Jun 2019 08:53:35 GMT):
Has joined the channel.

PhilippDolgolev (Fri, 21 Jun 2019 08:53:37 GMT):
Hello! I'm try use java-sdk for connect to network, started with ./byfn.sh up -i 1.4.1 and currently have next error: org.hyperledger.fabric.sdk.exception.ProposalException: Channel evoting failed proposal on peer peer0.org1.example.com org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel evoting failed with peer peer0.org1.example.com. Status FAILURE, details: Channel Channel{id: 1, name: evoting} Sending proposal with transaction: 25a6dd820c61c382ed5e7dddc07a18ad94261dd576f9090fc9c8164da1316df1 to Peer{ id: 3, name: peer0.org1.example.com, channelName: evoting, url: grpc://localhost:7051} failed because of: gRPC failure=Status{code=INTERNAL, description=http2 exception, cause=io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 1503010002 As I understand, it's because TLS not enabled in SDK. How can I enable TLS? Moreover, possibly somebody can suggest any examples of SDK usage for connect to network?

santai (Fri, 21 Jun 2019 08:57:14 GMT):
Has joined the channel.

Shivi (Fri, 21 Jun 2019 09:07:39 GMT):
How I can deploy a couchDb index for my Hyperledger Fabric chaincode?

BlueKing (Fri, 21 Jun 2019 09:43:03 GMT):
provide the tutorial you are following

BlueKing (Fri, 21 Jun 2019 09:45:07 GMT):
./byfn.sh up -c mychannel -s couchdb

BlueKing (Fri, 21 Jun 2019 09:46:02 GMT):
did you follow through this curl -sSL http://bit.ly/2ysbOFE | bash -s

BlueKing (Fri, 21 Jun 2019 09:46:16 GMT):
step *

soumyanayak (Fri, 21 Jun 2019 09:58:18 GMT):
hi all When we create organization admin for peers using Fabric-ca-server -- can you please confirm if the below commands are correct to run ????? ATTRIBUTES='"hf.Registrar.Roles=peer,user,client","hf.AffiliationMgr=true","hf.Revoker=true"' fabric-ca-client register --id.type client --id.name peer-admin --id.secret pw --id.affiliation acme --id.attrs $ATTRIBUTES As when i am creating channel using peer binary command for the Org1 i am getting the below issue Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'legaldescriptionchannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

BlueKing (Fri, 21 Jun 2019 10:16:51 GMT):
I need to find the ledger data after I have completed the setup could you guide me, I have followed this tutorial

BlueKing (Fri, 21 Jun 2019 10:16:52 GMT):
https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org

MohammedR (Fri, 21 Jun 2019 12:03:31 GMT):
@soumyanayak check CORE_PEER_MSPCONFIGPATH is set to admin msp

soumyanayak (Fri, 21 Jun 2019 12:17:25 GMT):
yes the path is already set to the admin MSP. One thing can you please let me know the admincerts folder that we create inside the msp folder carries which .pem file ?

BlueKing (Fri, 21 Jun 2019 12:20:45 GMT):
crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/ Is this what you are looking for?

soumyanayak (Fri, 21 Jun 2019 12:26:33 GMT):
so inside the admin msp folder the admincerts and signcerts folder both have the same .pem file?

BlueKing (Fri, 21 Jun 2019 12:28:07 GMT):
Yep I just did a uniq and nothing returned

BlueKing (Fri, 21 Jun 2019 12:28:27 GMT):
they are the same files

soumyanayak (Fri, 21 Jun 2019 12:30:07 GMT):
but still after keeping the files same --- same error is throwing

soumyanayak (Fri, 21 Jun 2019 12:37:41 GMT):
Can you please tell me from MSP folder or certificates how do we know a identity is an ADMIN? any attribute or anything that tells it

CT123 (Fri, 21 Jun 2019 13:08:34 GMT):
Has joined the channel.

MohammedR (Fri, 21 Jun 2019 13:16:42 GMT):
use this while registering user using fabric-ca-client --id.attrs 'admin=true:ecert'

mespejo84 (Fri, 21 Jun 2019 15:22:40 GMT):
If I have a business network of two orgs, when the first org if in charge of some transactions of one asset (initialization, approvals or something like it) and the second org if in charge for other transactions for that same asset, in what way the chaincode should be implemented? one chaincode for each org with the appropriate transactions according to the org? Or one chaincode with appropriate validation rules for each transaction? Hope I've explained myself

PanaS1 (Fri, 21 Jun 2019 16:12:28 GMT):
Hey, can someone provide me a good tutorial, where I can setup a HLF kafka network and learn how to send messages between the brokers? I tried one out, but I dont understand how to send the messages.

PanaS1 (Fri, 21 Jun 2019 16:12:50 GMT):
I tried this one outhttps://medium.com/@malliksarvepalli/configuring-apache-kafka-with-hyperledger-fabric-1-2-on-multiple-hosts-e16c6079d112

PanaS1 (Fri, 21 Jun 2019 16:13:05 GMT):
I tried this one out https://medium.com/@malliksarvepalli/configuring-apache-kafka-with-hyperledger-fabric-1-2-on-multiple-hosts-e16c6079d112

Antimttr (Fri, 21 Jun 2019 17:46:17 GMT):
@PanaS1 from what i hear kafka is a huge PITA and with 1.4.1 they introduced etcdRaft ordering to provide a simpler solution. THere's an example of how to set it up in the firstnetwork sample

Antimttr (Fri, 21 Jun 2019 17:46:30 GMT):
you use a ordering parameter for byfn i think

dan13 (Fri, 21 Jun 2019 20:12:02 GMT):
Each chaincode creates its own namespace, so two different chaincodes cannot operate on the same assets. If I understand your need, you would use ACL (via Client Identification / CID Library) implemented in the chaincode, with some functions requiring the transacting user to belong to Org 1 and other functions requiring Org 2 user

mespejo84 (Fri, 21 Jun 2019 20:22:29 GMT):
Alright then, thank you for your answer

MulengwaChibwe (Sat, 22 Jun 2019 06:50:58 GMT):
Has joined the channel.

MulengwaChibwe (Sat, 22 Jun 2019 06:51:00 GMT):
what could be the cause of Curl: (7) connection refused when starting monitordocker.sh in the commercial paper tutorial

AdityaJoshi 1 (Sat, 22 Jun 2019 09:38:22 GMT):
Has joined the channel.

AdityaJoshi 1 (Sat, 22 Jun 2019 09:39:05 GMT):
Facing this error while creating a channel Failed to reach implicit threshold of 1 sub-policies, required 1 remaining permission denied

MaxVirkus (Sat, 22 Jun 2019 14:25:10 GMT):
Im having a hard time distinguishing the components of fabric-ca. How does MSP, Idemix and PKI relate in the context of Hyperledger Fabric? Do I need to write smart contracts to verifiy identity or is can I deal with that by only using PKI? I went multiple times through the docs but don't come to no conclusion. If someone has a clearer idea of those concepts and could help me I would appreciate that.

aakzubaidi (Sat, 22 Jun 2019 19:10:30 GMT):
Hi Everyone. I am wondering if can introduce a new component to the Fabric network, by replicating this component on each peer and exploit the existing consensus mechanism. This component interacts with external world and process received data. The data will be passed then to the smart contract. My question, is that practically possible? any links help me with this?

hdamar (Sat, 22 Jun 2019 20:50:53 GMT):
Has joined the channel.

hdamar (Sat, 22 Jun 2019 20:50:55 GMT):
hi, I can't create channel for fabcar tutorial

hdamar (Sat, 22 Jun 2019 20:51:47 GMT):

1.png

hdamar (Sat, 22 Jun 2019 21:02:40 GMT):
I think, we need to wait to use Hyperledger until v2.0! This is still unstable, buggy and WTF-friendly application!

vaibhavr2709 (Sun, 23 Jun 2019 06:14:28 GMT):
stop and remove all present containers and try again. to stop and remove them run this command

vaibhavr2709 (Sun, 23 Jun 2019 06:15:07 GMT):
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)

vaibhavr2709 (Sun, 23 Jun 2019 06:16:08 GMT):
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)

vaibhavr2709 (Sun, 23 Jun 2019 06:16:52 GMT):
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)

hdamar (Sun, 23 Jun 2019 08:57:31 GMT):
I did it but peer0 not not working. I changed TIMEOUT variable but it's not worked.

hdamar (Sun, 23 Jun 2019 08:58:23 GMT):

2.png

vaibhavr2709 (Sun, 23 Jun 2019 09:04:45 GMT):
what timeout did you set

vaibhavr2709 (Sun, 23 Jun 2019 09:05:32 GMT):
start the container manually once

vaibhavr2709 (Sun, 23 Jun 2019 09:07:10 GMT):
docker container start [first 5 chars of the container id]

vaibhavr2709 (Sun, 23 Jun 2019 09:07:10 GMT):
docker container start [first 5 chars of the peer container id]

vaibhavr2709 (Sun, 23 Jun 2019 09:08:24 GMT):
but first stop and remove all the containers again

AndresMartinezMelgar.itcl (Sun, 23 Jun 2019 09:37:59 GMT):
Hi, how can i check if i instantiated successfully a peer/orderer?

hdamar (Sun, 23 Jun 2019 09:40:56 GMT):
thanks for you help. New problem is that

hdamar (Sun, 23 Jun 2019 09:41:08 GMT):

3.png

hdamar (Sun, 23 Jun 2019 09:41:37 GMT):
I had set 100 seconds timeout.

MalinthaAdikari (Sun, 23 Jun 2019 09:58:13 GMT):
Has joined the channel.

MalinthaAdikari (Sun, 23 Jun 2019 09:58:14 GMT):
Hi, I am new to Hyperledger Fabric. I was trying the example, exactly fabcar example. I want to implement some custom functions in the chain code. As the first step, I tried to change a existing function name in node js chain code. I changed "queryAllCars" function name to "queryAllProducts" and changed the name in "query.js" where we use that function. Then I regenerated my docker containers by runninig "startFabric.sh". It gives me error while I call query.js. Following is the error. warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer0.ibo.bc4scm.de" failed: message=transaction returned with failure: Error: You've asked to invoke a function that does not exist: queryAllProducts, stack=Error: transaction returned with failure: Error: You've asked to invoke a function that does not exist: queryAllProducts at self._endorserClient.processProposal (/home/malintha/Academic/3rd_Semester/DLT4PI/BCNetwork/BC4SCM/FrontEndCalls/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/malintha/Academic/3rd_Semester/DLT4PI/BCNetwork/BC4SCM/FrontEndCalls/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/malintha/Academic/3rd_Semester/DLT4PI/BCNetwork/BC4SCM/FrontEndCalls/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/malintha/Academic/3rd_Semester/DLT4PI/BCNetwork/BC4SCM/FrontEndCalls/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/home/malintha/Academic/3rd_Semester/DLT4PI/BCNetwork/BC4SCM/FrontEndCalls/node_modules/grpc/src/client_interceptors.js:845:24), status=500, , url=grpc://localhost:7051, name=peer0.ibo.bc4scm.de, grpc.max_receive_message_length=-1, grpc.max_send_message_length=-1, grpc.keepalive_time_ms=120000, grpc.http2.min_time_between_pings_ms=120000, grpc.keepalive_timeout_ms=20000, grpc.http2.max_pings_without_data=0, grpc.keepalive_permit_without_calls=1, name=peer0.ibo.bc4scm.de, request-timeout=300000, isProposalResponse=true I tried simply changing the function name. What is the reason fir this issue? How to solve it. Appreciate your input.

zglider (Sun, 23 Jun 2019 11:11:01 GMT):
Has joined the channel.

zglider (Sun, 23 Jun 2019 11:11:02 GMT):
Hi, Did anyone successfully install and run the dev environment on Window home?

davidkel (Sun, 23 Jun 2019 11:24:49 GMT):
It can be made to work, but there are limitations such as which directories you can use. I would say it's not worth the effort and issues you need to work around. Install a hypervisor such as virtualbox or vmware player and install a linux distribution (eg linux mint) on a virtual machine and use that instead

gregnotso (Sun, 23 Jun 2019 12:34:44 GMT):
not worth the effort, winscp+ubuntu on aws makes it all more affordable as you can terminate instances without cluttering your windows with dead code

hdamar (Sun, 23 Jun 2019 13:18:13 GMT):
I found the solution! :) It was damn GoLang!

hdamar (Sun, 23 Jun 2019 13:19:25 GMT):
go /basic-network/docker-compose.yml

hdamar (Sun, 23 Jun 2019 13:20:57 GMT):
add GODEBUG=netdns=go line under the environment section in docker-compose.yml

hdamar (Sun, 23 Jun 2019 13:21:46 GMT):

4.png

diestrin (Sun, 23 Jun 2019 19:31:42 GMT):
It's probably still looking at the old version of the contract, based on the logs you provide that's what I can conclude. I'm not really familiar with startFabric.sh, but I was finishing writing an example repo of fabcar with Convector + api + front-end integration, in case you want to take a look https://github.com/worldsibu/convector-example-fabcar-rest/tree/feature/fullstack

Taffies (Mon, 24 Jun 2019 03:26:29 GMT):
Hi, does anyone know where and how the blockheader is created? Am curious of the exact flow of how the hash is being generated

florianc (Mon, 24 Jun 2019 05:40:45 GMT):
I guess it is during block generation, on the orderer.

AnilSingh (Mon, 24 Jun 2019 05:47:54 GMT):
Hello Experts, Could someone please help me to create a new Channel to an existing network. I am working with byfn and eyfn samples, now as I have 3 Orgs in network up and running and part of mychannel, I wanted to create a new channel "mychannel1and3" and make Org1 and Org3 part of it.

BlueKing (Mon, 24 Jun 2019 06:23:03 GMT):
Hi All, what do you think about Convector, is it safe to migrate to it? or good old fabric should be the one where i need to put all my effort on ?

SatheeshNehru (Mon, 24 Jun 2019 06:34:24 GMT):
what are option available to store user private key in secure way?

soumyanayak (Mon, 24 Jun 2019 06:37:43 GMT):
ok will try mohammed regenerating again

soumyanayak (Mon, 24 Jun 2019 06:38:18 GMT):
Can we modify the existing registered user with this new atributes

MohammedR (Mon, 24 Jun 2019 06:42:43 GMT):
I don't think so.

alisanBlotocol (Mon, 24 Jun 2019 07:17:49 GMT):
Has joined the channel.

alisanBlotocol (Mon, 24 Jun 2019 07:17:50 GMT):
hi all! i am looking for a tutorial for fabtoken development? can anyone share with me a link? Also i cant find the fabtoken directory in fabric-samples .. can anyone help me please?

soumyanayak (Mon, 24 Jun 2019 07:20:02 GMT):
ok then i will create a new admin else

soumyanayak (Mon, 24 Jun 2019 07:20:26 GMT):
any ides how we can see all the registered users?

soumyanayak (Mon, 24 Jun 2019 07:24:04 GMT):
When i had created the old user -- below were the attributes ATTRIBUTES='"hf.Registrar.Roles=peer,user,client","hf.AffiliationMgr=true","hf.Revoker=true"'

MohammedR (Mon, 24 Jun 2019 07:24:08 GMT):
fabric-ca-client identity lsit

soumyanayak (Mon, 24 Jun 2019 07:24:43 GMT):
SO now i have to change that to ATTRIBUTES='"hf.Registrar.Roles=peer,user,client","hf.AffiliationMgr=true","hf.Revoker=true, admin=true:ecert"'

MohammedR (Mon, 24 Jun 2019 07:25:03 GMT):
yup

soumyanayak (Mon, 24 Jun 2019 07:34:50 GMT):
Mohammed while registering the new admin is the below fine fabric-ca-client register --id.type client --id.name org1admin --id.secret pw --id.affiliation Org1 --id.attrs $ATTRIBUTES or any changes like -- id.type should be client or peer ?

Abrara (Mon, 24 Jun 2019 07:43:23 GMT):
Yes, I'll say your old contract is still in use. Try to put your docker containers down and remove the docker image associated to the contract (docker images | grep fabcar) and then startFabric. Or change the version number of your contract when it's installed / instantiated

MohammedR (Mon, 24 Jun 2019 07:46:24 GMT):
you prefer as per you requirement, as i haven't used that

MohammedR (Mon, 24 Jun 2019 07:46:24 GMT):
you can prefer as per you requirement, as i haven't used that

soumyanayak (Mon, 24 Jun 2019 09:02:50 GMT):
Hi Mohammed i created once again by registering and then enrolling the user

soumyanayak (Mon, 24 Jun 2019 09:02:55 GMT):
but still the same issue is coming

soumyanayak (Mon, 24 Jun 2019 09:03:24 GMT):
2019-06-24 14:28:18.079 IST [cauthdsl] func2 -> DEBU 6ab 0xc000328910 identity 0 does not satisfy principal: This identity is not an admin 2019-06-24 14:28:18.079 IST [cauthdsl] func2 -> DEBU 6ac 0xc000328910 principal evaluation fails 2019-06-24 14:28:18.079 IST [cauthdsl] func1 -> DEBU 6ad 0xc000328910 gate 1561366698078958314 evaluation fails 2019-06-24 14:28:18.079 IST [policies] Evaluate -> DEBU 6ae Signature set did not satisfy policy /Channel/Application/Org1/Admins 2019-06-24 14:28:18.079 IST [policies] Evaluate -> DEBU 6af == Done Evaluating *cauthdsl.policy Policy /Channel/Application/Org1/Admins 2019-06-24 14:28:18.079 IST [policies] func1 -> DEBU 6b0 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Org1/Admins ] 2019-06-24 14:28:18.079 IST [policies] Evaluate -> DEBU 6b1 Signature set did not satisfy policy /Channel/Application/ChannelCreationPolicy 2019-06-24 14:28:18.079 IST [policies] Evaluate -> DEBU 6b2 == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/ChannelCreationPolicy

soumyanayak (Mon, 24 Jun 2019 09:03:39 GMT):
error logs in orderer

MohammedR (Mon, 24 Jun 2019 09:08:00 GMT):
you are using docker

MohammedR (Mon, 24 Jun 2019 09:08:03 GMT):
?

soumyanayak (Mon, 24 Jun 2019 09:08:09 GMT):
no natively doing it

MohammedR (Mon, 24 Jun 2019 09:08:39 GMT):
i am asking for peer and orderer

soumyanayak (Mon, 24 Jun 2019 09:08:57 GMT):
peer and orderer - native set up only

MohammedR (Mon, 24 Jun 2019 09:09:01 GMT):
ok

MohammedR (Mon, 24 Jun 2019 09:09:27 GMT):
https://github.com/hyperledger/fabric-samples/tree/release-1.3/fabric-ca

MohammedR (Mon, 24 Jun 2019 09:09:38 GMT):
try to follow this example

MohammedR (Mon, 24 Jun 2019 09:09:53 GMT):
it uses ca to generate MSP

soumyanayak (Mon, 24 Jun 2019 09:11:05 GMT):
ok sure mohammed

schinni (Mon, 24 Jun 2019 09:32:27 GMT):
I have a case where I have hyperledger fabric network two orgs with one endorser peers on each org. there is a write policy that says, 'both the orgs to sign the transaction to commit the ledger'. in this case how can a client app of one org send transaction request to both the orgs' endorsers? Can a client have identity info from both the orgs which I thing not suggestible

BrajeshKumar (Mon, 24 Jun 2019 09:47:06 GMT):
Could anyone let me know , how to resolve *Error: No event hubs for strategy*

davidkel (Mon, 24 Jun 2019 11:40:38 GMT):
Assume you are using the fabric node sdk, would suggest you ask on #fabric-sdk-node

MalinthaAdikari (Mon, 24 Jun 2019 11:53:28 GMT):
Yes, the problem was the old containers. I remove them and it worked.

adarshaJha (Mon, 24 Jun 2019 12:41:16 GMT):
I'm sitting next to you, i solved it @BrajeshKumar

tennenjl (Mon, 24 Jun 2019 14:10:55 GMT):
Hi Team, are there any recommended tools for static and/or dynamic analysis to look for vulnerabilities in JavaScript chain code. Thanks!

ahy (Mon, 24 Jun 2019 18:14:25 GMT):
Has joined the channel.

ahy (Mon, 24 Jun 2019 18:14:26 GMT):
Hi. How can I integrate data encryption in fabric? when I see the block file of peer, the transactions are in plain text. Would the ledgers typically be encrypted or the data presented in each individual transactions be encrypted? Thanks!

gWOLF3 (Mon, 24 Jun 2019 20:14:05 GMT):
Has joined the channel.

gWOLF3 (Mon, 24 Jun 2019 20:14:27 GMT):
has anyone been able to export the /healthz endpoint to kubernetes cluster to run liveness probes against?

gWOLF3 (Mon, 24 Jun 2019 20:14:36 GMT):
as described here - https://hyperledger-fabric.readthedocs.io/en/release-1.4/operations_service.html#health-checks

mastersingh24 (Mon, 24 Jun 2019 20:42:21 GMT):
I answered your other post

richardmurillo (Mon, 24 Jun 2019 20:59:26 GMT):
Has joined the channel.

ladygluck (Mon, 24 Jun 2019 23:44:36 GMT):
Has joined the channel.

spmcnamara (Tue, 25 Jun 2019 04:12:27 GMT):
Hi guys. Cross posting from fabric-sdk-go, but there is more activity over here. I had some chaincode working previously, but after stopping and restarting my containers, I am getting 'Error: endorsement failure during invoke. response: status:500 message:"Unknown function invoke"' This happens with both the SDK invocation as well as when using 'peer chaincode invoke ...' Any tips on what might be wrong or where I should be looking to troubleshoot?

spmcnamara (Tue, 25 Jun 2019 04:12:27 GMT):
Hi guys. Cross posting from fabric-sdk-go, but there is more activity over here. I had some chaincode working previously, but after stopping and restarting my containers, I am getting ` Error: endorsement failure during invoke. response: status:500 message:"Unknown function invoke"` This happens with both the SDK invocation as well as when using `peer chaincode invoke ...` Any tips on what might be wrong or where I should be looking to troubleshoot?

florianc (Tue, 25 Jun 2019 05:47:57 GMT):
What's your code?

yeousunn (Tue, 25 Jun 2019 07:44:27 GMT):
what method did you use to stop and restart containers? check if chaincode are installed using `peer chaincode list --installed` and then check if it's instantiated properly `peer chaincode list --instantiated -C mychannel`

PB4 (Tue, 25 Jun 2019 08:14:29 GMT):
Has joined the channel.

PB4 (Tue, 25 Jun 2019 08:15:32 GMT):
Could anyone tell me, if I'm making some architectural changes in fabric, how would I make the fabric to use it?

erictran1910 (Tue, 25 Jun 2019 08:47:32 GMT):
is anyone here familiar with java sdk?

erictran1910 (Tue, 25 Jun 2019 08:51:40 GMT):
my question related to hyperledger explorer

erictran1910 (Tue, 25 Jun 2019 08:51:57 GMT):
to view blockchain activites in fabric network

erictran1910 (Tue, 25 Jun 2019 08:53:21 GMT):
the tutorial said i must set up the - CORE_PEER_GOSSIP_BOOTSTRAP and - CORE_PEER_GOSSIP_EXTERNALENDPOINT in docker-compose.yml , what value should i put into ?

erictran1910 (Tue, 25 Jun 2019 08:54:20 GMT):
can anyone help me ? , here is the link : https://github.com/hyperledger/blockchain-explorer

harishbm34 (Tue, 25 Jun 2019 08:56:22 GMT):
Hi All, I have few questions with respect to fabric. Request you to please try to give more insight on the below. 1. I am planning to use "Hyperledger - Fabric" as part of supply chain project. In that case, which is the best consensus to be adoptable? 2. Are the validators to be online all the time? If not, how the transactions will get validated? (Got this doubt, as I read a sentence saying that "when the two companies in the network want to exchange the data privately each other then both the companies should validate the transaction". How this works?) Thanks, Harish

MarcoChiappetta (Tue, 25 Jun 2019 09:19:00 GMT):
Has joined the channel.

MarcoChiappetta (Tue, 25 Jun 2019 09:19:00 GMT):
Hello, I have a question regarding the MSP: I took the edX course and read through the docs but it's still not clear whether any peer can act as (part of the) MSP (as in: it's a cluster, similarly to the ordering service) or if the MSP is a single entity controlled by only one of the members in the network. If so doesn't the whole network rely on trusting the MSP?

MarcoChiappetta (Tue, 25 Jun 2019 09:20:06 GMT):
And can't the MSP simply deny access to any peer at any time?

MarcoChiappetta (Tue, 25 Jun 2019 09:20:06 GMT):
And can't the MSP simply deny access to any peer at any time? Furthermore can't any organization simply add more of their own peers to the network so they are sure to have the needed 2/3 for consensus?

mastersingh24 (Tue, 25 Jun 2019 09:28:36 GMT):
Endorsement policies are usually of the form "OrgX.peer" ... this means that even if you send endorsements from multiple peers in OrgX, it still only counts as a single endorsement for OrgX Each organization can provide its own membership provider (e.g. use its own Fabric CA)

MarcoChiappetta (Tue, 25 Jun 2019 10:01:40 GMT):
Oh ok that makes sense. So the "unit" of Fabric is organizations/members, not peers. One more question: if any organization can provide its own MSP how can identity be verified across different organizations?

MarcoChiappetta (Tue, 25 Jun 2019 10:02:46 GMT):
(Btw feel free to RTFM me but I can't find a comprehensive, consistent document that explains this, links are much appreciated)

MarcoChiappetta (Tue, 25 Jun 2019 10:14:37 GMT):
I found a 3rd party article that clarifies most of these things https://medium.com/coinmonks/demystifying-hyperledger-fabric-1-3-fabric-architecture-a2fdb587f6cb

MarcoChiappetta (Tue, 25 Jun 2019 10:31:18 GMT):
I think most of my doubts come from the fact that the EdX course is not up to date, in fact it still uses the ordering service based on Kafka (not Raft) which is not BFT. It would be nice to add a disclaimer maybe at the beginning of the course.

MarcoChiappetta (Tue, 25 Jun 2019 10:31:18 GMT):
I think most of my doubts (not the ones about MSP) come from the fact that the EdX course is not up to date, in fact it still uses the ordering service based on Kafka (not Raft) which is not BFT. It would be nice to add a disclaimer maybe at the beginning of the course.

spmcnamara (Tue, 25 Jun 2019 12:38:16 GMT):
Thanks @yeousunn. Yes, I did all those things and see that the chaincode is both installed and instantiated. Containers were stopped with `docker-compose stop` and started with `docker-compose start`

spmcnamara (Tue, 25 Jun 2019 13:54:42 GMT):
OK. I found this. Combination of a typo in the code and some poor logging. :weary:

spmcnamara (Tue, 25 Jun 2019 13:54:56 GMT):
Thanks for chiming in.

Abrara (Tue, 25 Jun 2019 14:40:57 GMT):
double check it, but those values should already be set in first-network/base/docker-compose-base.yml : https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/base/docker-compose-base.yaml

K1L14N (Tue, 25 Jun 2019 14:49:37 GMT):
Hello, i have an error that i can't resolve even by taking old version of my network: *Error: error getting endoser client for invoke: tls root cert file must be set*

spmcnamara (Tue, 25 Jun 2019 15:36:57 GMT):
What is the "correct" way of getting the UserID of the submitter of a request? I tried using cid.GetID(), but that appears to return the ID of the *peer* rather than the ID of the *user* submitting the request (or perhaps I've got this very wrong.)

PanaS (Tue, 25 Jun 2019 17:50:01 GMT):
Has joined the channel.

PanaS (Tue, 25 Jun 2019 17:50:02 GMT):
Hey everyone! I want to install Fabcar Chaincode on my Hyperledger Network. I am using multiple hosts with 3 peers. Can anyone provide me a good tutorial? Thank you in advance.

ASAPBLOCKY (Tue, 25 Jun 2019 20:36:33 GMT):
Has joined the channel.

spmcnamara (Tue, 25 Jun 2019 20:43:47 GMT):
I was previously trying to use cid.GetAttributeValue(stub, "hf.EnrollmentID"), but that doesn't appear to be set as an attribute in the users X.509 certificate. What am I doing wrong here?

spmcnamara (Tue, 25 Jun 2019 20:44:53 GMT):
I thought this was pretty comprehensive: https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html

spmcnamara (Tue, 25 Jun 2019 20:51:08 GMT):
That specifically uses FabCar

danillosantos (Tue, 25 Jun 2019 21:24:26 GMT):
Has joined the channel.

ASAPBLOCKY (Tue, 25 Jun 2019 22:01:41 GMT):
I'm having trouble distinguishing the components of fabric-ca. I read multiple times through the docs on Hyperledger Fabric but I still think the concepts are quite confusing. Which relation do MSP, Idemix and the PKI have? and is it mandatory to verify new actors through the SDK by using chaincode or can I handle that through the PKI ?

spmcnamara (Tue, 25 Jun 2019 22:08:51 GMT):
I agree that it can be confusing when you look at it for the first time. The CA isn't actually required, but is a convenient mechanism of creating the PKI keys and certificates used by HLF. Others on this list have been working on generating the keys/certs without the CA, but I haven't personally done that yet (though am wanting to do so.)

spmcnamara (Tue, 25 Jun 2019 22:10:49 GMT):
Your chaincode doesn't have to do any validation directly unless your business logic requires it. The chaincode invocation calls are signed, and make use of the PKI in order to ensure the parties submitting the requests are well-known.

spmcnamara (Tue, 25 Jun 2019 22:11:17 GMT):
Hopefully I haven't said anything completely incorrect, but if I did am sure someone else will chime in to correct me.

ruairih (Wed, 26 Jun 2019 01:07:52 GMT):
what is the Fabric plan for real privacy on the blockchain. Channel and private collections are very limited The JIRA has some zero knowledge proof tickets and an SGX implementation both of which mention that Fabric architecture is not well suited to these approaches anybody have any concrete ideas where fabric is going in this regard. Privacy on blockchain is critical if this technology is to gain real adoption This is the best i could find https://docs.google.com/document/d/1fzxoQYARFPTTIM-eIw8zs6tYkg6t6uRVI6fmnCQJz9I/edit and the hyperledger labs SGX patchfor fabric

poojaKamat (Wed, 26 Jun 2019 05:24:55 GMT):
Has anyone tried monitoring results of prometheus /metrics endpoint with Grafana visualization tool?required help in setting up the data source

PanaS1 (Wed, 26 Jun 2019 08:39:29 GMT):
Hey, thank you for your reply. This is for one basic network with one host. I need something for multiple hosts. I got 4 VMs. I don't understand how to get fabcar ready for multiple hosts without using those scripts?

bregg (Wed, 26 Jun 2019 12:56:42 GMT):
Has joined the channel.

bregg (Wed, 26 Jun 2019 13:08:35 GMT):
New to fabric development, working with nodejs. Does anyone have any example of nodejs chaincode or a snippet for modeling assets with references to other assets. I think a comparable composer snippet would be: ``` asset Car identified by carId { o String carId --> Owner owner o String color o String make o String model } asset Spoiler identified by spoilerId { o String ownerId o String color --> Car installedOnCar } participant Owner identified by ownerId { o String ownerId o String firstName o String lastName } ```

bregg (Wed, 26 Jun 2019 13:08:35 GMT):
New to fabric development, working with nodejs. Does anyone have any example of nodejs chaincode or a snippet for modeling assets with references to other assets. I think a comparable composer snippet would be: ``` asset Car identified by carId { o String carId --> Owner owner o String color o String make o String model } asset Spoiler identified by spoilerId { --> Owner owner o String spoilerId o String color --> Car installedOnCar } participant Owner identified by ownerId { o String ownerId o String firstName o String lastName } ```

florianc (Wed, 26 Jun 2019 13:39:49 GMT):
Fabric works with a document or key/value based database. So you must implement your own logic for "foreign keys", etc.

bregg (Wed, 26 Jun 2019 13:42:33 GMT):
Gotcha, thanks! That's really good to know. Is there some "best practices" for this, specifically for fabric

K1L14N (Wed, 26 Jun 2019 13:44:14 GMT):
clone fabric-samples there are tons of good examples

K1L14N (Wed, 26 Jun 2019 13:46:35 GMT):
I am trying to deploy a network with Kafka consensus. Can somebody confirm that i still need ordering nodes to communicate with the kafka cluster in order to "order" the transactions ?

bregg (Wed, 26 Jun 2019 13:48:01 GMT):
Thanks, I'll go back through it now that I have a little more knowledge

spmcnamara (Wed, 26 Jun 2019 14:25:14 GMT):
1. Create the other 3 peers.

spmcnamara (Wed, 26 Jun 2019 14:25:26 GMT):
2. Add the peers to the config.

spmcnamara (Wed, 26 Jun 2019 14:25:56 GMT):
3. Use the `peer install ...` command to install the fabcar chaincode

spmcnamara (Wed, 26 Jun 2019 14:26:24 GMT):
4. Use the `peer instantiate ...` command to instantiate the fabcar chaincode on the nodes.

spmcnamara (Wed, 26 Jun 2019 14:26:32 GMT):
5. Enjoy!

spmcnamara (Wed, 26 Jun 2019 14:27:37 GMT):
If you look inside the docker-compose.yaml file for FabCar, it should start to become clear how to construct the additional nodes.

mespejo84 (Wed, 26 Jun 2019 15:46:17 GMT):
Can anyone suggest me a good course for Fabric architecture and network configuration? As most of public free tutorials for this is only about using samples and not enter too much in detail. Fabric documentation is good but you can lost yourself as there is no guidance for it or some steps are skipped

nmarco (Wed, 26 Jun 2019 19:39:43 GMT):
Has joined the channel.

nmarco (Wed, 26 Jun 2019 19:40:57 GMT):
Are there any public examples of UI wallets for end users? The public networks like bitcoin and ethereum have a variety of wallets to help end users manage keys and sign transactions. Are there equivalents for fabric?

LinuxLearner1 (Wed, 26 Jun 2019 21:22:41 GMT):
Hello All I am running into an issue with TLS certificates I am trying to run a simple command yet I get error:

LinuxLearner1 (Wed, 26 Jun 2019 21:22:43 GMT):
2019-06-26 21:18:32.782 UTC [core.comm] ServerHandshake -> ERRO 013 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.26.0.16:53080

mespejo84 (Wed, 26 Jun 2019 22:48:27 GMT):
Hi everyone, maybe this is a dumb question, but, still I need to ask. In fabric documentation there is a conceptual steps to create a fabric network (https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html), and according to this, the network starts with the ordering service. I am trying to deploy each organization separately (as the example) in order to simulate how deployment should be in real scenarios. I think each organization will provide its infrastructure. But when I try to instantiate the orderer node, throw me an error as there is no genesis.block file. I don't know if it is a problem with the script that I'm using to initialize it, but that is the question, how I can start the network with ordering service only? do I need the genesis.block?, if is so, should I create the genesis.block for only orderer in the channel? Well I think there is more than one question. Sorry

jfkidear (Thu, 27 Jun 2019 03:07:26 GMT):
jfk@ubuntu tutorial-network $ composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card Starting business network tutorial-network at version 0.0.1 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT Command failed

jfkidear (Thu, 27 Jun 2019 03:08:07 GMT):
How to solve the problem?Thanks!

jfkidear (Thu, 27 Jun 2019 03:11:11 GMT):
Please help me

tejateja (Thu, 27 Jun 2019 08:20:36 GMT):
Hi everyone, our network having an organization with two peer's and having chain-code for both the peer's. The issue is, if one peer down network cards are not connecting with second peer. Can u please any information about peer configurations.

K1L14N (Thu, 27 Jun 2019 09:10:03 GMT):
Hello my orderers don't want to stay active, as soon as they execute start command they exit. Any thoughts ?

Abrara (Thu, 27 Jun 2019 09:43:46 GMT):
docker logs your orderers to get the reason of their exits

djay21 (Thu, 27 Jun 2019 10:29:55 GMT):
Has joined the channel.

djay21 (Thu, 27 Jun 2019 10:29:56 GMT):
Do check your Docker logs for orderer and check the logs..

djay21 (Thu, 27 Jun 2019 10:31:39 GMT):
docker logs (container_id)

marinkovicvlado (Thu, 27 Jun 2019 10:32:02 GMT):
Has joined the channel.

marinkovicvlado (Thu, 27 Jun 2019 10:32:03 GMT):
Hi can anyone direct me to some good resource on enabling mutual TLS in Fabric? What interests me is connection profile, and submitting transactions via Gateway (using fabric-sdk-node)...

mfaisaltariq (Thu, 27 Jun 2019 11:12:56 GMT):
trying to setup Fabric with SoftHSM and getting the following error ``` 2019/06/27 16:08:26 [INFO] Created default configuration file at /Users/mfaisaltariq/fabric-ca/server/fabric-ca-server-config.yaml 2019/06/27 16:08:26 [INFO] Server Version: 1.4.2 2019/06/27 16:08:26 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2019/06/27 16:08:26 [FATAL] Initialization failure: Failed to initialize BCCSP Factories: %!s() Could not find default `PKCS11` BCCSP ```

Abrara (Thu, 27 Jun 2019 12:24:52 GMT):
yeah, put your container ID or the name instead of container_id, you can get it from "docker ps". For the default examples it's usually orderer.example.com

K1L14N (Thu, 27 Jun 2019 12:38:16 GMT):
thank you very much :) just FYI the reason was that channelID api does not support camelCase parameter name ...

Abrara (Thu, 27 Jun 2019 12:39:34 GMT):
oh wow, so that's why the default name is mychannel and not myChannel. You'd think they lowercase the string anyway x)

marinkovicvlado (Thu, 27 Jun 2019 12:54:13 GMT):
After enabling TLS I keep receiving this error: ` error: [Transaction]: _validatePeerResponses: No valid responses from any peers. 2 peer error responses: key USERPUBLICKEY -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEKjJjbAu3Ip6Gjig8sEyCOrPOZuVN WOAZmDVjbVZ/YIWUMSE2OSuknGSMRmkitgkuTJCxXoax78Nz4G+UmQs3zg== -----END PUBLIC KEY----- doesn't exist`

marinkovicvlado (Thu, 27 Jun 2019 14:35:40 GMT):
``` ```

marinkovicvlado (Thu, 27 Jun 2019 14:35:40 GMT):
On Channel initialize ``` error: [Transaction]: _validatePeerResponses: No valid responses from any peers. 2 peer error responses: key USERPUBLICKEY -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEwa8W1HEdeM4i7u2i2p4A91eiRWQN vYs72nX3CMiLnlILQl0821fj7StxSuquQw+mJ87C9izwiNP4gWZnM/eI7A== -----END PUBLIC KEY----- doesn't exist ```

marinkovicvlado (Thu, 27 Jun 2019 14:35:40 GMT):
On Channel initialize I keep getting following error: ``` error: [Transaction]: _validatePeerResponses: No valid responses from any peers. 2 peer error responses: key USERPUBLICKEY -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEwa8W1HEdeM4i7u2i2p4A91eiRWQN vYs72nX3CMiLnlILQl0821fj7StxSuquQw+mJ87C9izwiNP4gWZnM/eI7A== -----END PUBLIC KEY----- doesn't exist ```

PanaS (Thu, 27 Jun 2019 18:24:50 GMT):
Thank you! Step 1 and 2 are done. But I dont get it, which command I have to use to install fabcar chaincode. I was using this one to test the network first which worked for me: docker exec -it cli peer chaincode install -n mycc -p github.com/chaincode -v v0

spmcnamara (Thu, 27 Jun 2019 18:42:04 GMT):
I mount a central GOSRC volume on all my peers, and then login to the CLI host directly. `docker exec -it cli /bin/bash` I can then `peer install -v -n -p ` and then: `peer instantiate -n -v -C ` You need to do the instatiation on each peer (which I do by setting CORE_PEER_ADDRESS on the command)

PanaS (Thu, 27 Jun 2019 18:46:18 GMT):
I understand, that's why I am getting the "path to chaincode does not exist" error. Thank you!

PanaS (Thu, 27 Jun 2019 19:06:46 GMT):
I mount the central GOSRC volumes with login in to the peers like that: docker exec -it peer0.org1.example.com bash right? I am a real newbie to this. Sorry for stupid questions. I have a little student project with hyperledger and haven't worked with docker or different blockchain.

sindelio (Thu, 27 Jun 2019 22:29:41 GMT):
Has joined the channel.

sindelio (Thu, 27 Jun 2019 22:29:43 GMT):
Hey guys

sindelio (Thu, 27 Jun 2019 22:29:59 GMT):
I'm trying to run the example first-network, inside fabric-samples

sindelio (Thu, 27 Jun 2019 22:30:29 GMT):
Getting this error: ``` ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=0 + set +x 2019-06-27 22:25:07.661 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-06-27 22:25:11.168 UTC [cli.common] readBlock -> INFO 002 Received block: 0 ===================== Channel 'mychannel' created ===================== Having all peers join the channel... + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host" peer0.org1 failed to join the channel, Retry after 30 seconds```

sindelio (Thu, 27 Jun 2019 22:31:47 GMT):
My environment: go version go1.11.11 linux/amd64 Docker version 18.06.1-ce, build e68fc7a docker-compose version 1.24.0, build 0aa59064 GOPATH=/usr/local/go/bin

sindelio (Thu, 27 Jun 2019 22:31:47 GMT):
My environment: ubuntu 18.04 LTS go version go1.11.11 linux/amd64 Docker version 18.06.1-ce, build e68fc7a docker-compose version 1.24.0, build 0aa59064 GOPATH=/usr/local/go/bin

sindelio (Thu, 27 Jun 2019 22:32:54 GMT):
Thanks for any help!

ajmeraharsh (Fri, 28 Jun 2019 06:48:53 GMT):
Fabric experts, here is a quick scenario I have. My network is connected with Car buyers and sellers. Seller sets minimum price for the Car with an end date. Buyers can bid till the end date. We have got everything in place, expect one. How can I achieve this - *If the Seller doesn't accept the highest bidder post 3 days of the end date, the Car should be automatically sold to highest bidder* ? Is there a way this can be done from the chaincode? Thoughts please.

ajmeraharsh (Fri, 28 Jun 2019 06:48:53 GMT):
Fabric experts, here is a quick scenario I have. My network is connected with Car buyers and sellers. Seller sets minimum price for the Car with an end date. Buyers can bid till the end date. We have got everything in place. How can I achieve this - *If the Seller doesn't except the highest bidder post 3 days of the end date, the Car should be automatically sold to highest bidder* ? Is there a way this can be done from the chaincode? Thoughts please.

ajmeraharsh (Fri, 28 Jun 2019 06:48:53 GMT):
Fabric experts, here is a quick scenario I have. My network is connected with Car buyers and sellers. Seller sets minimum price for the Car with an end date. Buyers can bid till the end date. We have got everything in place. How can I achieve this - *If the Seller doesn't accept the highest bidder post 3 days of the end date, the Car should be automatically sold to highest bidder* ? Is there a way this can be done from the chaincode? Thoughts please.

marinkovicvlado (Fri, 28 Jun 2019 07:35:36 GMT):
You might need to set env variables that are necessary after enabling TLS: CORE_PEER_TLS_ENABLED=true CORE_PEER_TLS_CERT_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt Also in connection profile: "grpcOptions": { "ssl-target-name-override": "blockchain-org1peer1" },

marinkovicvlado (Fri, 28 Jun 2019 07:35:36 GMT):
You might need to set env variables that are necessary after enabling TLS: CORE_PEER_TLS_ENABLED=true CORE_PEER_TLS_CERT_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt Also in connection profile: "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com" },

marinkovicvlado (Fri, 28 Jun 2019 07:38:12 GMT):
Also I think peer channel join also requires "--tls --cafile "

K1L14N (Fri, 28 Jun 2019 08:37:44 GMT):
Hello, i am wondering how the network is aware of the endorsing peers and how the SDK chooses to contact them

K1L14N (Fri, 28 Jun 2019 08:41:23 GMT):
Interesting question, I am also interested.

alisanBlotocol (Fri, 28 Jun 2019 09:02:45 GMT):

Clipboard - June 28, 2019 5:02 PM

alisanBlotocol (Fri, 28 Jun 2019 09:02:50 GMT):
hello everyone! can anyone please help me solve this issue? during network start.. i'm using the fabric-dev-server to run a network.

alisanBlotocol (Fri, 28 Jun 2019 09:03:52 GMT):

picturemessage_p25vmb3f.3e5.png

alisanBlotocol (Fri, 28 Jun 2019 09:03:52 GMT):

picturemessage_p25vmb3f.3e5.png

muellerdberlin (Fri, 28 Jun 2019 11:26:04 GMT):
Hey, i have one question in theory and how hyperledger solves this in production. Scenario: i have 3 peers for one channel mychannel. I'm using a restproxy to write data on the ledger using mychaincode. If someone would be able to manipulate one of the 3 peers (or lets say the world state of the peer): 1. can i request only the malicious peer and do i get the manipulated state? 2. what happens if i request via e.g. the restproxy? Do i get an error? Do i get the right state because 2 of 3 still have the right state of some object? thank you for your answers! :)

hyperlearner (Fri, 28 Jun 2019 12:05:05 GMT):
I'm trying to discover more about MSP.I've got the fabric-sdk-go to explore. But I think it would be more clear if I go with the flow of a transaction. So I was wondering If I could find those files regarding the validation, verification and signing of transaction inside the gbalance-transfer. Could anyone help me figure out the place where the code for the MSP services exists?

florianc (Fri, 28 Jun 2019 13:10:57 GMT):
Hey guys. In couchDB, I tried to insert a value around 10kb. What happened is that the transaction was considered VALID, but the value was not updated. Is there a maximum size of data for a putState to function correctly?

dan13 (Fri, 28 Jun 2019 14:59:25 GMT):
We've stored single attribute values over 5K successfully (in this case, the whole putState was a single attribute). cDB has large document size limit (4G, I think). So I'm not sure why this would not work. If you can simplify the problem to validate your assumption it's related to the size of the data, that would be my suggestion. Good luck!

Antimttr (Fri, 28 Jun 2019 15:02:26 GMT):
@florianc did you submit the transactions to the orderers after you submitted it to the peers?

Antimttr (Fri, 28 Jun 2019 15:02:47 GMT):
unless you submit to orderers it wont ever actualy make it on the blockchain and therefore the worldstate would not be updated

rahyul19 (Fri, 28 Jun 2019 16:29:47 GMT):
Has joined the channel.

dan13 (Fri, 28 Jun 2019 18:12:49 GMT):
Chaincode does not have any ability to maintain timers and trigger actions. So this must be handled externally as part of the overall application, and not in chaincode.

montana (Fri, 28 Jun 2019 18:24:07 GMT):
Cross post from #fabric since it's a question - Is there an expected behavior path if we start to exceed the peer's TPS limit for querying/invoking chaincode?

KartikChauhan (Fri, 28 Jun 2019 19:47:14 GMT):
I'm running a Fabric 1.4.1 network with one peer and one orderer. I'm using Prometheus to monitor them. The targets are up and Prometheus is able to scrape the metrics. But I think I'm not getting all the metrics that are listed on https://hyperledger-fabric.readthedocs.io/en/latest/metrics_reference.html Plus many of the metrics names look different than the ones mentioned in the list. This probably could be because the documentation is of version 1.4 and I'm running a network of 1.4.1. Just want to confirm if this is the sole reason or if there could be any other reason as well.

ozaiter (Fri, 28 Jun 2019 22:20:42 GMT):
Has joined the channel.

sidepocket (Fri, 28 Jun 2019 23:47:27 GMT):
While calling the getNetwork method from my Node SDK Gateway class, I am getting the following error message, does anybody know what could be causing this or what I could try to fix it? error: [Remote.js]: Error: The channel has been closed URL:grpc://localhost:7051 error: [Channel.js]: Error: The channel has been closed URL:grpc://localhost:7051 error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: The channel has been closed URL:grpc://localhost:7051 Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: The channel has been close URL:grpc://localhost:7051 at Network._initializeInternalChannel (network.js:112:2) at at process._tickCallback (next_tick.js:189:7)

Psingh (Sat, 29 Jun 2019 09:21:58 GMT):
Hey Everyone, I have a question that how would I decide that how many orderer, channels and peers do I need for Multiple Organisation solution?

mastersingh24 (Sat, 29 Jun 2019 13:35:21 GMT):
it's going to be up to the "members" of the network to decide

gregnotso (Sat, 29 Jun 2019 13:37:15 GMT):
the peer:couchdb ratio is 1:1 tough, isn't it?

Psingh (Sat, 29 Jun 2019 14:46:51 GMT):
lets say network is consist of 10 members then how many orderers should I need?

Psingh (Sat, 29 Jun 2019 14:55:01 GMT):
lets take an example of hospital with couple of departments 1. cardiology department 2. Dental department for this I have created two different channels so that both the department have their own ledger. Now I'm confused about the orderer. how many orderer should I create?

flozender (Sat, 29 Jun 2019 15:13:55 GMT):
Has joined the channel.

flozender (Sat, 29 Jun 2019 15:13:55 GMT):
Hey guys, I have a question regarding security. Using a Nodejs API I am able to create users for an organisation by sending a post to /users, but how can I restrict this access to general users? Where can I learn more about the whole user enrollment and access part of the client application? Thanks!

ASAPBLOCKY (Sat, 29 Jun 2019 16:17:38 GMT):
I'm not sure if I understood that correctly but is it possible to correct a transaction in HLF in the case of an operating error? Let's say I'm adding a transaction to the network and I'm sending someone 100$ and I type accidently 300$, what's the way of undoing this type of error. Is there some sort of Chamelon Hash ?

ASAPBLOCKY (Sat, 29 Jun 2019 16:17:38 GMT):
I'm not sure if I understood that correctly but is it possible to correct a transaction in HLF in the case of an operating error? Let's say I'm adding a transaction to the network and I'm sending someone 100$ and I type accidently 300$, what's the way of undoing this type of error. Is there some sort of Chameleon Hash ?

MuhammadSalah (Sat, 29 Jun 2019 16:22:08 GMT):
Greetings everyone, is there a capability integrated already or a plan to add some "Docker Host Config" options, I am especially interested in specifying ( or should the project specify a docker security profile ) for running chaincode based on App Armor for example? In real case scenarios, docker containers are to be hardened, and the chaincode must deny any capabilities of trying to dump data in a directory, alter ip-tables and all those cases of bougeous activities that I may not be able to think of.

MuhammadSalah (Sat, 29 Jun 2019 16:24:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=B4xgFqC4rgNDqLjWu)
Clipboard - June 29, 2019 6:23 PM

MuhammadSalah (Sat, 29 Jun 2019 16:30:28 GMT):
Then each department is considered a peer belonging to same organization; and they are operated accordingly. Channels are basically ledgers, so if each one needs a shared ledger (different); you basically need two channels. Orderer decisions are mostly related to fault tolerance of the network, and availability; so basically on a KAFKA based one, you kick off using 3 at minimum, and going up in terms of odd numbers 3,5,7,.. and so on so forth. hope this sufficed enough

harsh-98 (Sat, 29 Jun 2019 18:31:36 GMT):
Has joined the channel.

harsh-98 (Sat, 29 Jun 2019 18:31:53 GMT):
I have a doubt regarding kubernetes fabric

harsh-98 (Sat, 29 Jun 2019 18:32:21 GMT):
i also posted a query 6 hrs ago but no response on fabric-kubernetes channel

harsh-98 (Sat, 29 Jun 2019 18:32:31 GMT):
plz help needed

Psingh (Sat, 29 Jun 2019 18:40:38 GMT):
Thanks a lot @MuhammadSalah and @mastersingh24 for your valuable time.

Psingh (Sat, 29 Jun 2019 18:42:01 GMT):
@MuhammadSalah yes it solved all my queries and moreover my confusion.

zZz (Sun, 30 Jun 2019 07:03:25 GMT):
Has joined the channel.

aleksandar.nasuovski (Sun, 30 Jun 2019 07:16:20 GMT):
We were deployed peer inside kubernetes pod and persist volumes /opt/gopath/... After we delete and start new container peer generate new local certs because cant find config.yaml inside opt/gopath/.../msp folder.

gregnotso (Sun, 30 Jun 2019 14:01:26 GMT):
ERRO 045 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode, is this due to missing values in configtx.yaml file?

gregnotso (Sun, 30 Jun 2019 15:03:08 GMT):
i got past that error, and indeed it was in the configtx.yaml file (and/or lower/upper case labels), now on to this one: "tx creator does not have read access permission on privatedata in chaincode", any pointers?

florianc (Mon, 01 Jul 2019 05:17:16 GMT):
Of course. This transaction is sent like every other transaction, following the classic flow with nodejs sdk.

Aniket.1 (Mon, 01 Jul 2019 05:30:02 GMT):
Hello Guys, I have a design question here. If there is an usecase to store user record history in chaincode/ledger , to make it scalable, should we instantiate a dedicated chaincode for each user or a single chaincode for all users wil be good or any other approach? Please share your precious views.

florianc (Mon, 01 Jul 2019 05:39:18 GMT):
Hello. For what it's worth, here is what I think. A chaincode represents a business logic (or just a logic). If all your users have the same logic and you don't have any reason to separate users' data, there is no reason for you to duplicate a chaincode that does the same thing. It is useless redundancy of code/container. Moreover, check your country legislation. There are information you may not insert into a blockchain about your users.

Aniket.1 (Mon, 01 Jul 2019 05:46:36 GMT):
Currently I am only thinking about scalability. So my view is that if one container will be handling all data fetching and storing requests, this can be a point of concern.

Aniket.1 (Mon, 01 Jul 2019 05:46:36 GMT):
Currently I am only thinking about scalability. So my view is that if one container will be handling all data fetching and storing requests, this can be a point of concern for scalability (not sure).

florianc (Mon, 01 Jul 2019 05:48:20 GMT):
What do you mean by that?

Aniket.1 (Mon, 01 Jul 2019 05:49:09 GMT):
I am thinking about requests handled per second by the network.

Aniket.1 (Mon, 01 Jul 2019 05:50:00 GMT):
One chaincode container for all requests vs. User specific chaincode container for user specific requests

Aniket.1 (Mon, 01 Jul 2019 05:55:04 GMT):
is it clear?

Aniket.1 (Mon, 01 Jul 2019 05:55:04 GMT):
is it clear now?

Aniket.1 (Mon, 01 Jul 2019 05:55:04 GMT):
is it clear now? @florianc

Aniket.1 (Mon, 01 Jul 2019 05:56:30 GMT):
I am just thinking which architecture will be morr scalable to handle requests

Aniket.1 (Mon, 01 Jul 2019 05:56:30 GMT):
I am just thinking which architecture will be more scalable to handle requests

ajmeraharsh (Mon, 01 Jul 2019 06:41:04 GMT):
@dan13 you mean a script which would act as an identity and gonna perform the transaction?

ajmeraharsh (Mon, 01 Jul 2019 06:41:17 GMT):
@manish-s

Aniket.1 (Mon, 01 Jul 2019 06:50:27 GMT):
I think you can use admin identity with a cron job for this

KartikChauhan (Mon, 01 Jul 2019 07:10:50 GMT):
Can a newly added organization create its own channel? I know how to add an organization to a running fabric network. But can that organization create a channel of its own?

ahmad-raza (Mon, 01 Jul 2019 07:21:51 GMT):
Hi all, is there is any way to delete certificate file from credential store dynamically(through) code? using Node.sdk? or any other way?

ahmad-raza (Mon, 01 Jul 2019 07:22:53 GMT):

Screenshot from 2019-07-01 12-24-05.png

florianc (Mon, 01 Jul 2019 07:25:10 GMT):
https://nodejs.org/api/fs.html#fs_fs_unlink_path_callback

K1L14N (Mon, 01 Jul 2019 07:41:48 GMT):
Hello, i am wondering if it is revelant to check size of data stored through a smart contract into DB ? If so what is the recommended way to do so ?

SatyamMishra (Mon, 01 Jul 2019 08:14:41 GMT):
Hi, I am following commercial paper tutorial, while staring cliMagnetoCorp (docker-compose -f docker-compose.yml up -d cliMagnetoCorp), getting following error : Starting cliMagnetoCorp ... error ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: b'network d2daa20f4fe35f50fcd07fc4efb3f6acb97e2f246ac657f7233cea51789d2268 not found' ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: b'network d2daa20f4fe35f50fcd07fc4efb3f6acb97e2f246ac657f7233cea51789d2268 not found' ERROR: Encountered errors while bringing up the project.

adarshaJha (Mon, 01 Jul 2019 08:43:24 GMT):
@SatyamMishra kill all containers and remove them then restart the same container

adarshaJha (Mon, 01 Jul 2019 08:43:37 GMT):
or simply restart your network.

SatyamMishra (Mon, 01 Jul 2019 08:50:18 GMT):
@adarshaJha after killing all processes and restarting network I am getting same error

adarshaJha (Mon, 01 Jul 2019 08:51:53 GMT):
once clean everything and then restart

adarshaJha (Mon, 01 Jul 2019 08:52:04 GMT):
when you clean you docker ps -a should show nothing

adarshaJha (Mon, 01 Jul 2019 08:52:15 GMT):
then start your network

SatyamMishra (Mon, 01 Jul 2019 08:52:31 GMT):
Yes I followed this only @adarshaJha

vaibhavr2709 (Mon, 01 Jul 2019 09:03:14 GMT):
Make sure you have removed the containers not just stopped them as said by @adarshaJha . Also if they are removed run it again and this time check the logs of the containers. Maybe you can find something fishy there.

vaibhavr2709 (Mon, 01 Jul 2019 09:04:00 GMT):
To print logs you may use the docker logs command

himanshuchawla009 (Mon, 01 Jul 2019 09:47:30 GMT):
hii everyone ,can anyone tell me any approach to test that the chaincode is key collision resistant?

incredible5 (Mon, 01 Jul 2019 10:04:44 GMT):
Has joined the channel.

incredible5 (Mon, 01 Jul 2019 10:04:45 GMT):
hey there, I want to know if there is a detailed descriptive tutorial on endorsement in hyperledger fabric apart from the hyperledger fabric documents. I am planning to make a network in which an admin must approve the transaction to proceed

Rachit-gaur (Mon, 01 Jul 2019 10:05:49 GMT):
Has joined the channel.

Rachit-gaur (Mon, 01 Jul 2019 10:05:50 GMT):
Hi, Can someone share a sample docker compose file which has swarm implementation for 1.4 fabric version?

kund2n (Mon, 01 Jul 2019 10:26:18 GMT):
To package chaincode written golang what are the files need to be packaged for deployment.

kund2n (Mon, 01 Jul 2019 10:26:18 GMT):
To package chaincode written in golang what are the files need to be packaged for deployment.

florianc (Mon, 01 Jul 2019 11:12:46 GMT):
If you mean that a real person must approve the transaction, during the endorsement process, I am not sure this is possible.

adarshaJha (Mon, 01 Jul 2019 11:19:50 GMT):
#fabric-sdk-node Could anyone let me know , how to resolve Error: No event hubs for strategy

adarshaJha (Mon, 01 Jul 2019 11:20:58 GMT):
#fabric-sdk-node invalid transaction id

incredible5 (Mon, 01 Jul 2019 11:23:02 GMT):
@florianc Is there any another way to achieve that or about the same functionality?

florianc (Mon, 01 Jul 2019 11:25:17 GMT):
I am not a "pro". But from my understanding the chaincode is here to automate business logic between two or more parties. If you try to include a manual input, you may have a misconception somewhere. However you can split your logic in two: The user sends transaction to do stuff and an administrator sends another transaction to validate the stuff done by the user.

florianc (Mon, 01 Jul 2019 11:25:17 GMT):
I am not a "pro". But from my understanding of chaincode is here to automate business logic between two or more parties. If you try to include a manual input, you may have a misconception somewhere. However you can split your logic in two: The user sends transaction to do stuff and an administrator sends another transaction to validate the stuff done by the user.

florianc (Mon, 01 Jul 2019 11:25:17 GMT):
I am not a "pro". But from my understanding, the chaincode is here to automate business logic between two or more parties. If you try to include a manual input, you may have a misconception somewhere. However you can split your logic in two: The user sends transaction to do stuff and an administrator sends another transaction to validate the stuff done by the user.

incredible5 (Mon, 01 Jul 2019 11:27:41 GMT):
@florianc could you please explain this a bit more? This would be a huge help to me if I can get this done

florianc (Mon, 01 Jul 2019 11:33:48 GMT):
Of course. But as I say, do not take what I say for THE solution, as I may be wrong and as I don't know your context. Lets say you have in a couchdb world state a car that can change color. The car belongs to a company but an employee uses it (dumb example, I know). By default, the color is green. So current state would be: `{'color':'green', 'proposal': 'none'}` If the employee wants to change the color to blue, he notifies his manager/admin with a transaction that sets the 'proposal' property to 'blue'. Current state is: `{'color': 'green', 'proposal': 'blue'}` The manager/admin is notified of this request. If he accepts, he sends a transaction to validate the proposal. If he does not accept, he sends a tx to 'not validate' the proposal. If admin is ok, state would be: `{'color':'blue', 'proposal':'none'}` If admin is not ok, state would return to original state: `{'color':'green', 'proposal': 'none'}`

incredible5 (Mon, 01 Jul 2019 11:40:37 GMT):
@florianc That's awesome. Thank you. But, also, I'm a newbie so I've problems implementing this. Can you direct me to some resources through which I can learn to implement this?

florianc (Mon, 01 Jul 2019 11:41:48 GMT):
I think the only resource you can find are the existing fabric samples in the official documentation.

Rachit-gaur (Mon, 01 Jul 2019 12:19:42 GMT):
Can someone guide me for same?

marinkovicvlado (Mon, 01 Jul 2019 13:04:23 GMT):
Anyone has experience with mutual TLS option? Once I enabled mutual TLS and have CORE_PEER_TLS_CLIENTCERT_FILE, Caliper fails with BAD_CERTIFICATE error... Can't find the way to override wrong certificate it is providing...

marinkovicvlado (Mon, 01 Jul 2019 13:04:23 GMT):
Anyone has experience with mutual TLS option? Once I enabled mutual TLS and have CORE_PEER_TLS_CLIENTCERT_FILE set, Caliper fails with BAD_CERTIFICATE error... Can't find the way to override wrong certificate it is providing...

Abrara (Mon, 01 Jul 2019 13:19:52 GMT):
https://medium.com/@malliksarvepalli/hyperledger-fabric-on-multiple-hosts-using-docker-swarm-and-compose-f4b70c64fa7d

Abrara (Mon, 01 Jul 2019 13:21:52 GMT):
I'm currently playing with this, but IIRC just changing the version tags here and there should do the trick,.I'm currently playing with this example and the error I have is not version related I think. At least I have all my containers up and running in 1.4 version on the swarm

alokkv (Mon, 01 Jul 2019 13:26:22 GMT):
hi friends, i ran byfn from first-network without any error. but when i try to upgrade it to 1.1 to 1.4 , it is not working.it is throwing error saying no such image and the old 1.1 image ID.but i have already download 1.2 images.what is the issue.can anyone please help.

ajayatgit (Mon, 01 Jul 2019 13:27:57 GMT):
Has joined the channel.

ajayatgit (Mon, 01 Jul 2019 13:28:43 GMT):
Hello All, I would like to know, Why couchDb was selected as one of the alternative state database?

Abrara (Mon, 01 Jul 2019 13:59:50 GMT):
Hello, I have some errors when I try to create a channel. I get one of those 2 depending on idk what. `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` `Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied` My configtx.yaml is basically the one from fabric-samples/first-network, I just changed Org1 and org2 occurrences by "FOO" and "BAR". I already tried pruning volumes, made sure that crypto-config / channel-artifacts is regenerated, docker volumes down, etc. Any leads would be appreciated, thanks :)

Abrara (Mon, 01 Jul 2019 13:59:50 GMT):
Hello, I have some errors when I try to create a channel. I get one of those 2 depending on idk what. `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` `Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied` My configtx.yaml is basically the one from fabric-samples/first-network, I just changed Org1 and org2 occurrences by "FOO" and "BAR". I already tried pruning volumes, made sure that crypto-config / channel-artifacts is regenerated, docker containers down, etc. Any leads would be appreciated, thanks :)

Abrara (Mon, 01 Jul 2019 14:22:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vpwjH4LoLxwCo2Xp7)
error_logs.txt

Abrara (Mon, 01 Jul 2019 14:24:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=vpwjH4LoLxwCo2Xp7)
error_logs.txt

dan13 (Mon, 01 Jul 2019 14:55:00 GMT):
@ajmeraharsh yes, something external to the chaincode, however you might like to build that

tballast (Mon, 01 Jul 2019 15:39:27 GMT):
Is there any way to query the Fabric-CA to get the enrollment secret of a non-admin user?

mastersingh24 (Mon, 01 Jul 2019 20:29:10 GMT):
no ... but an admin can update the secret

KaseyAlusi (Mon, 01 Jul 2019 21:45:19 GMT):
Has joined the channel.

KaseyAlusi (Mon, 01 Jul 2019 21:45:20 GMT):
Forwarding a question from #fabric-sdk-go https://chat.hyperledger.org/channel/fabric-sdk-go?msg=ZMFQDncuXiHXfesov

RodrigoAcosta (Mon, 01 Jul 2019 22:14:23 GMT):
hello people, I'm using Visual Code IBM Blockchain extension to deploy chaincode into cloud. My chaincode has become bigger as I add new functionality and now the package has exceed the 4MB causing errors when trying to deploy on my peers. Wondering if anyone is around with some experience on this

bruno.lopes (Mon, 01 Jul 2019 22:52:44 GMT):
Has joined the channel.

bruno.lopes (Mon, 01 Jul 2019 22:52:45 GMT):
Hi folks! Someone can give a trick? I desire to install the Hyperledger Fabric in some physical computers, but all tutorials that I seen show how to install it with docker. The docker installation is the best choice for every cases or its better use the Fabric on physical machines when we need put the Hyperledger in production environment?

hyperlearner (Tue, 02 Jul 2019 04:10:47 GMT):
Hi @dave.enyeart and everyone I'm trying to discover about pluggable MSP i.e. try removing existing MSP service and plug other service in its place.I've been looking into

hyperlearner (Tue, 02 Jul 2019 04:10:47 GMT):
Hi @dave.enyeart and everyone, I'm trying to discover about pluggable MSP i.e. try removing existing MSP service and plug another service in its place. I've been looking into fabric node SDK code https://github.com/hyperledger/fabric-sdk-node and https://github.com/hyperledger/fabric/tree/release-1.4/msp but unable to find the entry point to various MSP services. Where does MSP perform its various services like validation etc? Where do I have to start looking to successfully implement a pluggable service in MSP's place?

hyperlearner (Tue, 02 Jul 2019 04:10:47 GMT):
Hi @dave.enyeart and everyone, I'm trying to discover about pluggable MSP i.e. try removing existing MSP service and plug another service in its place. I've been looking into fabric node SDK code https://github.com/hyperledger/fabric-sdk-node and https://github.com/hyperledger/fabric/tree/release-1.4/msp but unable to find the entry point to various MSP services. Where does MSP perform its various services like validation etc? Where do I have to start looking to successfully implement a pluggable service in MSP's place? #general #fabric-questions #fabric-sdk-node

Rachit-gaur (Tue, 02 Jul 2019 04:22:22 GMT):
I did see the swarm examples for fabric 1.2 but 1.4 is not available

Rachit-gaur (Tue, 02 Jul 2019 04:22:45 GMT):
Doesn't look like changing the version will do the trick, something is still missing

intanishere (Tue, 02 Jul 2019 04:46:50 GMT):
Has joined the channel.

intanishere (Tue, 02 Jul 2019 04:46:51 GMT):
Hi everyone! I'm newbie in blockchain, especially hyperledger fabric. I tried fabcar project, but i got error when run 'node invoke.js' : Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: 14 UNAVAILABLE: TCP Write failed I looked for the solution, but none. I hope anyone can help me. thanks

ajmeraharsh (Tue, 02 Jul 2019 05:20:31 GMT):
@dan13 @Aniket.1 thanks for the insights. We have the script in place already outside the Fabric network. My concern was if Fabric provides anything of the sort already. As Corda does. Or maybe its in pipeline. any admins here? cc: @sstone1

ajmeraharsh (Tue, 02 Jul 2019 05:20:31 GMT):
@dan13 @Aniket.1 thanks for the insights. We have the script in place already. My concern was if Fabric provides anything of the sort already. As Corda does.

ajmeraharsh (Tue, 02 Jul 2019 05:20:31 GMT):
@dan13 @Aniket.1 thanks for the insights. We have the script in place already outside the Fabric network. My concern was if Fabric provides anything of the sort already. As Corda does.

ajmeraharsh (Tue, 02 Jul 2019 05:20:31 GMT):
@dan13 @Aniket.1 thanks for the insights. We have the script in place already outside the Fabric network. My concern was if Fabric provides anything of the sort already. As Corda does. Or maybe its in pipeline

BlueKing (Tue, 02 Jul 2019 06:26:58 GMT):
How can i setup Fabric in multiple machines

BlueKing (Tue, 02 Jul 2019 06:27:28 GMT):
Any informative link will do, thanks in advance

pankajcheema (Tue, 02 Jul 2019 06:44:06 GMT):
https://chat.hyperledger.org/channel/fabric?msg=oJxjG9fKMxEjsNkGG

pankajcheema (Tue, 02 Jul 2019 06:44:15 GMT):
Hi anyone have any idea

pankajcheema (Tue, 02 Jul 2019 06:44:22 GMT):
What I am missing

pankajcheema (Tue, 02 Jul 2019 06:44:44 GMT):
I have verified msp multiple time something is here `channel []`

pankajcheema (Tue, 02 Jul 2019 06:44:49 GMT):
any idea ?

pankajcheema (Tue, 02 Jul 2019 06:45:20 GMT):
I am using kubernetes multinode env

incredible5 (Tue, 02 Jul 2019 06:51:10 GMT):
@florianc Thanks for the help :-)

florianc (Tue, 02 Jul 2019 06:51:31 GMT):
You solved your problem?

soumyanayak (Tue, 02 Jul 2019 07:02:51 GMT):
Finally the issue is resolved -- i just replicated the Node SDK setup to a different machine and from there i tried to connect to the peer machine and it worked . Previously i was trying from the same peer machine where i had given the IP address in the connection.yaml file instead i guess should have given localhost

Abrara (Tue, 02 Jul 2019 07:09:08 GMT):
what is missing?

pankajcheema (Tue, 02 Jul 2019 08:10:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AoRnDPC45QW3tubMJ) please help stuck here from 2 days

generak (Tue, 02 Jul 2019 08:16:40 GMT):
Has joined the channel.

generak (Tue, 02 Jul 2019 08:16:41 GMT):
heya, not sure if this is the best channel to ask in, but I was wondering if it's possible to set chaincode events from a function that doesn't update state? For example, if I wanted to emit some sort of event once a query has been completed, would that be possible? From testing with the node sdk I've only been able to receive events from state modifications

Bentipe (Tue, 02 Jul 2019 08:40:52 GMT):
hey @pankajcheema could you specify more? when is throwing that error?

pankajcheema (Tue, 02 Jul 2019 08:41:30 GMT):
@Bentipe `peer channel join -b mychannel.block `

pankajcheema (Tue, 02 Jul 2019 08:41:47 GMT):
everything is as per default build your first network

pankajcheema (Tue, 02 Jul 2019 08:42:31 GMT):
I have cross checked mspid and mspconfigpath but no luck

pankajcheema (Tue, 02 Jul 2019 08:42:43 GMT):
@Bentipe

pankajcheema (Tue, 02 Jul 2019 08:43:13 GMT):
also exported the CHANNEL_NAME in cli

Bentipe (Tue, 02 Jul 2019 08:43:40 GMT):
have you set up the CORE_PEER_LOCALMSPID ?

Bentipe (Tue, 02 Jul 2019 08:43:55 GMT):
the CORE_PEER_MSPCONFIGPATH ?

pankajcheema (Tue, 02 Jul 2019 08:44:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=h7kygBpFKmvwDxbHY) yes

Bentipe (Tue, 02 Jul 2019 08:44:21 GMT):
also if you are doing from the client have you CORE_PEER_ADRESS?

pankajcheema (Tue, 02 Jul 2019 08:44:48 GMT):
yes

Bentipe (Tue, 02 Jul 2019 08:46:06 GMT):
you r using docker images right? In that case check that the path has the crypto material

Bentipe (Tue, 02 Jul 2019 08:46:36 GMT):
get inside the machine and check that the path that corresponds to the MSPDir has the material

Bentipe (Tue, 02 Jul 2019 08:47:13 GMT):
also you may have some path wrong there on the artifacts creation

Bentipe (Tue, 02 Jul 2019 08:47:34 GMT):
on the configtx.yaml

MartinKanala (Tue, 02 Jul 2019 08:47:45 GMT):
Has joined the channel.

pankajcheema (Tue, 02 Jul 2019 08:47:55 GMT):
everything checked @Bentipe

pankajcheema (Tue, 02 Jul 2019 08:48:29 GMT):
directory exist on the container and paths for msp are right in configtx.yaml

sgiessmann (Tue, 02 Jul 2019 09:55:08 GMT):
unknown msp

sgiessmann (Tue, 02 Jul 2019 10:01:32 GMT):
Hi, I'm trying to manually join a new organization to a channel but did not succeed. The network is running and the channel exists, but when I try to fetch the config in order to generate the config change transaction I get the return FORBIDDEN. Looking at the orderer I can read that the request was denied because the MSP "ExtensionOrgMSP" (name of the orgs msp) is unknown. This is of course true because the Org didn't exist when I first setup the blockchain. What am I missing here?

tballast (Tue, 02 Jul 2019 10:04:50 GMT):
@mastersingh24 thanks for the info, that would also work. Could you direct me somewhere to learn more about it?

mastersingh24 (Tue, 02 Jul 2019 10:05:50 GMT):
Are you using one of the SDKs or using the fabric-ca-client ?

incredible5 (Tue, 02 Jul 2019 10:07:49 GMT):
Good afternoon everyone. I want to know how to add a peer on a different computer and access the hyperledger fabric network? The tutorials I followed adds a new peer, but I want to know how to login (access the network) as a peer from a different computer

lingzhiyu (Tue, 02 Jul 2019 10:19:12 GMT):
Has joined the channel.

lingzhiyu (Tue, 02 Jul 2019 10:19:13 GMT):
Hi, I set up the fabric network with kubernetes and used nfs as the persistent volume. However, I would like to remove nfs and I faced the following "failed mounted" errors: ``` Warning FailedMount 29m kubelet, orderer0 MountVolume.SetUp failed for volume "scripts-orgorderer1" : mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/22788ab9-9cae-11e9-8c9a-000d3aa31e9d/volumes/kubernetes.io~nfs/scripts-orgorderer1 --scope -- mount -t nfs 10.0.0.22:/opt/scripts /var/lib/kubelet/pods/22788ab9-9cae-11e9-8c9a-000d3aa31e9d/volumes/kubernetes.io~nfs/scripts-orgorderer1 Output: Running scope as unit run-rf27be303297749968795a0851673cff0.scope. mount.nfs: access denied by server while mounting 10.0.0.22:/opt/scripts``` Does anyone have experience in removing nfs?

tballast (Tue, 02 Jul 2019 11:43:04 GMT):
I'm using the Java SDK

mastersingh24 (Tue, 02 Jul 2019 12:50:02 GMT):
You can use https://github.com/hyperledger/fabric-sdk-java/blob/8bdcbe9d4b986bcd01ad2d468f976f04c085a29a/src/main/java/org/hyperledger/fabric_ca/sdk/HFCAIdentity.java#L298

MatasV (Tue, 02 Jul 2019 14:06:20 GMT):
Has joined the channel.

MatasV (Tue, 02 Jul 2019 14:06:23 GMT):
Hey guys! I'm have done some basic node SDK interaction with the fabric network (used balance-transfer sample) Now I'm trying to separate network and REST server on different virtual machines. What should I use? Could anyone help me finding the right path of solving this problem?

MatasV (Tue, 02 Jul 2019 14:06:23 GMT):
Hey guys! I'm have done some basic node SDK interaction with the fabric network (used *balance-transfer* sample) Now I'm trying to separate network and REST server on different virtual machines. How can I do it? Could anyone help me finding the right path of solving this problem?

tballast (Tue, 02 Jul 2019 14:10:41 GMT):
@MatasV Take a look at this: https://medium.com/coinmonks/hyperledger-fabric-cluster-on-multiple-hosts-af093f00436 not sure if its _exactly_ what you want, but it might help.

MatasV (Tue, 02 Jul 2019 14:23:27 GMT):
@tballast Thank you for your help, but this is not exactly what i'm looking for. It's fine that hyperledger-fabric network Orgs, peers, etc is in the same virtual machine. I'm looking for the solution how to communicate between REST server and fabric netwok. I can reformulate the question: *should i change _localhost_ to __ in the network-config.yaml configuration?*

sheru (Tue, 02 Jul 2019 14:47:22 GMT):
Has joined the channel.

sheru (Tue, 02 Jul 2019 14:47:24 GMT):
Hi

Jelle.Diet (Tue, 02 Jul 2019 14:52:59 GMT):
When using private data, deleting the data will only leave a hash on the ledger right? The data is permanently removed and cannot be read in any way? (not even using history by key)? Asking for gdpr compliance using sensitive user data

Jelle.Diet (Tue, 02 Jul 2019 14:52:59 GMT):
When using private data, deleting the data will only leave a hash on the ledger right? Since the data is only saved on a sideDB on relevant peers. The data is permanently removed and cannot be read in any way? (not even using history by key)? Asking for gdpr compliance using sensitive user data.

gregnotso (Tue, 02 Jul 2019 15:02:30 GMT):
@jelle.dieit i understand that only the private data is deleted after a certain number of blocks, depending on the settings, and at least hashes, and the block the're in, remain immutable

gregnotso (Tue, 02 Jul 2019 15:02:30 GMT):
@jelle.diet i understand that only the private data is deleted after a certain number of blocks, depending on the settings, and at least hashes, and the block the're in, remain immutable

PanosChtz (Tue, 02 Jul 2019 15:17:41 GMT):
Hello, I just setup Hyperledger on Ubuntu 18.04. I followed this guide https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html . After I go to the first-network directory and run ./byfn.sh up I get the following errors: https://pastebin.com/rFTgZKBH can someone help me troubleshoot this?

Abrara (Tue, 02 Jul 2019 15:24:28 GMT):
not available for a lot of time, but from what I saw you already tried to up the network and had some leftovers, try ./byfn.sh down before trying again and if you still got errors, check the docker logs of the exited containers (peer1.org2.example.com on your previous log for example)

PanosChtz (Tue, 02 Jul 2019 15:26:45 GMT):
I did bring the network down (got few warnings there like "WARNING: Volume net_peer0.org3.example.com not found.") Then tried again but get the same errors. Where do I check the logs?

Abrara (Tue, 02 Jul 2019 15:28:34 GMT):
docker logs container_name

tballast (Tue, 02 Jul 2019 15:31:07 GMT):
Yea, I believe that will work. Like, if you have your Orderer running on 1.2.3.4 instead of localhost, then you should be able to swap it out.

PanosChtz (Tue, 02 Jul 2019 15:38:25 GMT):
Ok but I don't know what is the container name..

Abrara (Tue, 02 Jul 2019 15:39:25 GMT):
docker ps. in your pasted example it was peer1.org2.example.com

Abrara (Tue, 02 Jul 2019 15:39:41 GMT):
docker ps -a *

PanosChtz (Tue, 02 Jul 2019 15:41:20 GMT):
docker ps -a outputs 2 containers, one named couchdb and the other is named ca.example.com

Abrara (Tue, 02 Jul 2019 15:42:33 GMT):
after you put the network up?

PanosChtz (Tue, 02 Jul 2019 15:42:52 GMT):
oh right yes let me bring it up

PanosChtz (Tue, 02 Jul 2019 15:44:35 GMT):
got same errors again, here is the log I can't make something out of it https://pastebin.com/AbURXDRu

SubhraSankhaBose (Tue, 02 Jul 2019 19:01:55 GMT):
Can anyone tell me how to configure different CA(other than fabric CA) in hyperledger fabric? Any tutorial link will be well appreciated

mastersingh24 (Tue, 02 Jul 2019 20:21:48 GMT):
There's nothing special other than ensuring that the CA is providing EC certificates and not RSA certs. Also, the SDKs do not have integration with others CAs. You'll need to use the APIs in the SDKs which create users/identities from existing crypto materia;

mastersingh24 (Tue, 02 Jul 2019 20:21:48 GMT):
There's nothing special other than ensuring that the CA is providing EC certificates and not RSA certs. Also, the SDKs do not have integration with others CAs. You'll need to use the APIs in the SDKs which create users/identities from existing crypto material

MatasV (Tue, 02 Jul 2019 20:44:00 GMT):
Thank you mate @tballast

mastersingh24 (Tue, 02 Jul 2019 23:00:34 GMT):
https://chat.hyperledger.org/channel/general?msg=ExBcbPPBcWZugzJC3

mastersingh24 (Tue, 02 Jul 2019 23:01:05 GMT):
Sometime in 4Q of this year

lingzhiyu (Wed, 03 Jul 2019 02:54:09 GMT):
try this https://medium.com/ibm-garage/using-3rd-party-root-cas-in-hyperledger-fabric-3cafa91d1260

SubhraSankhaBose (Wed, 03 Jul 2019 03:56:06 GMT):
Thanks @lingzhiyu

SubhraSankhaBose (Wed, 03 Jul 2019 04:04:36 GMT):
Thanks @mastersingh24

Jelle.Diet (Wed, 03 Jul 2019 10:28:21 GMT):
In an application where I would keep the users privatekey and cert for them and use it to sign transactions after they have logged in, what would be the recommended way to store these? LDAP, database? encrypt them using the users password? has anyone implemented something like this?

ilkan8 (Wed, 03 Jul 2019 10:33:55 GMT):
Has joined the channel.

ilkan8 (Wed, 03 Jul 2019 10:33:57 GMT):
Hello, Has anyone else come across following error message when trying to launch intermediate CA with METRICS_PROVIDER environment variable. "panic: duplicate metrics collector registration attempted"

ilkan8 (Wed, 03 Jul 2019 10:33:57 GMT):
Hello, Has anyone else come across following error message when trying to launch intermediate CA with METRICS_PROVIDER environment variable? "panic: duplicate metrics collector registration attempted"

generak (Wed, 03 Jul 2019 11:11:21 GMT):
I'd be interested to know best practices regarding this too. While wallets definitely seem to be the way to go given their ease of use, there's a few different options available. I'd imagine CouchDBWallet might be the best option right now, though currently I'm just using FileSystemWallet

MeSSeRz (Wed, 03 Jul 2019 11:16:41 GMT):
Has joined the channel.

MatasV (Wed, 03 Jul 2019 11:30:13 GMT):
Hello, once again, what kind of server should I use to configure Node.js REST server (with Node SKD)? Do you have any suggestions?

MeSSeRz (Wed, 03 Jul 2019 11:31:03 GMT):
Hi all. Should the CompositeKey be unique? For example I have Coins that belongs to User. Can I use the same user id for each Coin composite key ?

MarcoChiappetta (Wed, 03 Jul 2019 12:30:25 GMT):
Hi people! I have a question regarding channels: assuming members A and B share a channel and write transaction T1 to the ledger, would another member, added to the channel later, be able to read T1 or would their ledger start from scratch and only have future transactions? In other words would C be able to reconstruct the history of the channel up to the point it joined?

florianc (Wed, 03 Jul 2019 12:31:29 GMT):
C will have to sync all blocks from the other members of the channel. So C will know everything about the channel, from the beginning to current state.

MarcoChiappetta (Wed, 03 Jul 2019 12:31:50 GMT):
Awesome! Thank you for the prompt response!

ChristianLF (Wed, 03 Jul 2019 16:15:34 GMT):
Has joined the channel.

rjones (Wed, 03 Jul 2019 16:22:09 GMT):
User User_1 added by rjones.

delao (Wed, 03 Jul 2019 16:23:20 GMT):
Has joined the channel.

novus_sangius (Wed, 03 Jul 2019 16:46:41 GMT):
I am trying to learn app development in fabric. But I am not able to find any code material about smart contract other than fabric-samples and it shows very limited functionality (at least i understood pretty few things from it). Can someone please provide some helping material? Thanks in advance.

spmcnamara (Wed, 03 Jul 2019 18:25:43 GMT):
Blocks on a HLF chain are numbered, and I'm guessing (but would like clarification) that this is probably an int64 number. What happens if the number of blocks generated reaches max(uint64)?

spmcnamara (Wed, 03 Jul 2019 18:31:33 GMT):
What are you having trouble understanding, or what specifically are you looking for that you aren't seeing?

novus_sangius (Wed, 03 Jul 2019 18:33:09 GMT):
I am trying to implement a basic supply chain example from scratch. And thus was looking for some boilerplate code to build upon.

spmcnamara (Wed, 03 Jul 2019 18:38:17 GMT):
The CommercialPaper example shows a multi-step process. While not exactly a supply chain process, it is similar enough (creation of assets, and tracking of movement of assets across the system) that it might provide you with what you are looking for.

theDweeb (Wed, 03 Jul 2019 18:41:07 GMT):
Has joined the channel.

theDweeb (Wed, 03 Jul 2019 18:41:08 GMT):
Is there a full nodejs SDK tutorial that shows how to setup the nodejs application and how it communicates to the hyperledger containers and chaincode? https://fabric-sdk-node.github.io/release-1.4/index.html This website seems a little incomplete

spmcnamara (Wed, 03 Jul 2019 18:45:00 GMT):
A composite key is a key made up of multiple fields. So if each coin has a unique id, and each user has a unique id, you could have a ledger entry with a composite key of (user_id, coin_id), but that composite key would have to be unique in the ledger. It's not like a RDBMS composite key, I believe HLF just smashes the two fields together into a singular value (although perhaps that could change in the future.)

spmcnamara (Wed, 03 Jul 2019 18:47:29 GMT):
That means a userid could be mapped to multiple coins (if that's what you are after.)

theDweeb (Wed, 03 Jul 2019 19:15:04 GMT):
Is there documentation discussing the pros and cons of having a multi org network and ONE channel versus multi org network with multiple channels? If access can be restricted within a channel then what is the purpose of multiple channels to do the same thing?

spmcnamara (Wed, 03 Jul 2019 20:09:57 GMT):
Each channel in effect establishes it's own chain. Peers subscribed to a channel receive/build a full copy of that chain. While you can restrict access to methods in the chaincode, the peers would still have access to all the raw data. With that in mind, take the example of an auto manufacturer who sells cars to various dealerships (I'm making this up, so it might not be completely realistic - I don't know the details of the auto business). The manufacturer may sell cars to different dealerships at different prices based on volume agreements, etc. If all the dealerships are on the same channel, and can see all transactions done with the manufacturer, the dealerships would be able to see what the other dealerships paid. In this case, you might want to have one channel per dealership so other dealerships don't have access to the raw chain data.

theDweeb (Wed, 03 Jul 2019 20:19:24 GMT):
Thank you for your detailed answer. A follow up question, can you restrict whether the dealerships can see details of the other dealerships transactions? (i.e. price/quantity) if using the single channel scenario? Will they always be able to see transaction details or could you restrict it enough that other dealerships just see that there WAS a transaction but have no access to the details. Again thank you, I am working on a supply chain scenario and can't decide which architecture to use.

spmcnamara (Wed, 03 Jul 2019 21:14:10 GMT):
I've thought a bit about that, and think you could probably restrict visibility but it would be through encrypting the payloads of the data held in the blocks. That would mean key management for the data, and given the immutable nature of the blockchain, there wouldn't be a way to revoke access for a key that has been compromised on blocks that have already posted to the chain.

spmcnamara (Wed, 03 Jul 2019 21:14:48 GMT):
I think it's doable, but with so much effort, and so many hairy edge-cases, I think you'd be better off with the multi-channel setup.

spmcnamara (Wed, 03 Jul 2019 21:15:15 GMT):
The only thing I haven't fully gotten comfortable with in the multi-channel environment is how to execute a cross-channel query.

spmcnamara (Wed, 03 Jul 2019 21:15:46 GMT):
For instance: The manufacturer wants to look across *all* channels to see sales of a particular model of car.

spmcnamara (Wed, 03 Jul 2019 21:16:10 GMT):
I'm trying to figure that one out currently and hope there is a way built-in to HLF to facilitate.

spmcnamara (Wed, 03 Jul 2019 21:18:16 GMT):
Your other option (in the single channel case) is to only store minimal identifier data on the chain, and then have all the important details held off-chain with security around that.

spmcnamara (Wed, 03 Jul 2019 21:18:47 GMT):
Doing so kind-of defeats some of the key benefits of a blockchain solution...

blast64000 (Thu, 04 Jul 2019 01:59:39 GMT):
Has joined the channel.

HLFPOC (Thu, 04 Jul 2019 04:22:34 GMT):
If you want to restrict the transaction details among the participants present in the same channel, you can also use private data collections (https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data/private-data.html) which is supported in version 1.2 and above.

djay21 (Thu, 04 Jul 2019 06:04:57 GMT):
Do my api's that i created for registering, installing and instantiating chaincodes on peers have anything to do with my variables and functions define in the chaincode.????

knagware9 (Thu, 04 Jul 2019 06:21:44 GMT):
There is private data /side DB feature in fabric that you can use to restrict information from one dealership to other

Heena078 (Thu, 04 Jul 2019 06:41:58 GMT):
Hello does anyone know how to resolve this issue [ERROR] Join-Channel - Failed to join peer to the channel with error :: Error: Failed to connect before the deadline URL:grpcs:

ahmad-raza (Thu, 04 Jul 2019 06:46:38 GMT):
Hi all, can we copy peer's ledger data and orderer's data and place it into other network folder and access it?

JuanD 10 (Thu, 04 Jul 2019 06:56:12 GMT):
Has joined the channel.

mattiabolzonella1 (Thu, 04 Jul 2019 07:04:26 GMT):
Has joined the channel.

mattiabolzonella1 (Thu, 04 Jul 2019 07:04:28 GMT):
Hi, i have a question about the discovery service configuration: if I have 2 orgs with 2 peer each (one of which is anchor). How should I set the CORE_PEER_GOSSIP_EXTERNALENDPOINT envirorment variable in docker for each peer? I was thinking somewhat like this:``` - peer0.org1 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2 (anchor of org2) - peer1.org1: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org2 (anchor of org2) - peer0.org2 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1 (anchor of org1) - peer1.org2: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org1 (anchor of org1)``` ``` ```

mattiabolzonella1 (Thu, 04 Jul 2019 07:04:28 GMT):
Hi, i have a question about the discovery service configuration: if I have 2 orgs with 2 peer each (one of which is anchor). How should I set the CORE_PEER_GOSSIP_EXTERNALENDPOINT envirorment variable in docker for each peer? I was thinking somewhat like this:``` - peer0.org1 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2 (anchor of org2) - peer1.org1: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org2 (anchor of org2) - peer0.org2 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1 (anchor of org1) - peer1.org2: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org1 (anchor of org1)``` But i'm not sure abuot peer1.org1 and peer1.org2 i don't if this setting is correct ``` ```

mattiabolzonella1 (Thu, 04 Jul 2019 07:04:28 GMT):
Hi, i have a question about the discovery service configuration: if I have 2 orgs with 2 peer each (one of which is anchor). How should I set the CORE_PEER_GOSSIP_EXTERNALENDPOINT envirorment variable in docker for each peer? I was thinking somewhat like this:``` - peer0.org1 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2 (anchor of org2) - peer1.org1: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org2 (anchor of org2) - peer0.org2 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1 (anchor of org1) - peer1.org2: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org1 (anchor of org1)``` But i'm not sure abuot peer1.org1 and peer1.org2 i don't if this setting is correct.

mattiabolzonella1 (Thu, 04 Jul 2019 07:04:28 GMT):
Hi, i have a question about the discovery service configuration: if I have 2 orgs with 2 peer each (one of which is anchor). How should I set the CORE_PEER_GOSSIP_EXTERNALENDPOINT environment variable in docker for each peer? I was thinking somewhat like this:``` - peer0.org1 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2 (anchor of org2) - peer1.org1: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org2 (anchor of org2) - peer0.org2 (anchor): CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1 (anchor of org1) - peer1.org2: CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org1 (anchor of org1)``` But I'm not sure about peer1.org1 and peer1.org2 i don't if this setting is correct.

DeepaMotwani (Thu, 04 Jul 2019 07:08:40 GMT):
I need to plug postgres SQL database in the hyperledger fabric. Can anyone help me how to do it?

mattiabolzonella1 (Thu, 04 Jul 2019 07:17:51 GMT):
Hi, i have a question about the discovery service configuration: if I have 2 orgs with 2 peer each (one of which is anchor). How should I se

erictran1910 (Thu, 04 Jul 2019 07:32:02 GMT):
hi i would like to ask the role in fabric

erictran1910 (Thu, 04 Jul 2019 08:05:11 GMT):
i read some piece of codes, every function such as create channel, install & instantiate chaincode will use admin identity to implement, so what would be the use case for using client identity in fabric network?, when we will use certificate , also private key of enrolled client identity ?

florianc (Thu, 04 Jul 2019 08:59:12 GMT):
Hi! I am interested in contributing. I've checked this: https://hyperledger-fabric.readthedocs.io/en/release-1.4/CONTRIBUTING.html?highlight=contribution I ahve also checked the videos mae by Horea Porutiu, they help a lot for the worflow. However I have a question: Can we just "pick" a non assigned task/ticket and do it? Or is they like a process to follow? For example: If there is an issue on the documentation, I can just pick it. Or one on the nodejs sdk that I think I can handle, etc.

hussain.salaam (Thu, 04 Jul 2019 09:48:24 GMT):
Has joined the channel.

hussain.salaam (Thu, 04 Jul 2019 09:48:25 GMT):
hi all

hussain.salaam (Thu, 04 Jul 2019 09:48:49 GMT):
anybody can help regarding hyperledger fabric and IOTA integration

umarmw (Thu, 04 Jul 2019 10:22:05 GMT):
I would also like to know

Heena078 (Thu, 04 Jul 2019 10:26:18 GMT):
Hi I am facing this issue while doing multi hosting in hyperledger fabric using docker swarm [ ERRO 077 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=127.0.0.1:41186]

generak (Thu, 04 Jul 2019 10:31:19 GMT):
if you're invoking chaincode at all, you should use client identities rather than an admin identity - by having client identities, you can make use of attributes in certificates for attribute-based access control as part of your chaincode. Individual client identities would in turn be created through an admin identity

theDweeb (Thu, 04 Jul 2019 11:53:03 GMT):
"The only thing I haven't fully gotten comfortable with in the multi-channel environment is how to execute a cross-channel query. For instance: The manufacturer wants to look across all channels to see sales of a particular model of car." Yes! This is our only motivation for using one channel. Unless we can get a peer added in every channel with reading permissions, I don't know of another way of doing this. @HLFPOC This looks very promising! I will check it out thank you @spmcnamara Thank you again for your help! I will comment back with whatever solution I find works for me.

erictran1910 (Thu, 04 Jul 2019 12:30:46 GMT):
so at this point, we dont need JWT to authenticate client i think

erictran1910 (Thu, 04 Jul 2019 12:30:46 GMT):
so at this point, we dont need JWT to authenticate client right?, will we implement the asymmetric cryptography ?

erictran1910 (Thu, 04 Jul 2019 12:30:46 GMT):
so at this point, we dont need JWT to authenticate the client right?, will we implement the asymmetric cryptography based on their private key ?

erictran1910 (Thu, 04 Jul 2019 12:35:30 GMT):
Or still implement JWT, then use their token to decode into their name, and get their identities from matching name to verify ?

florianc (Thu, 04 Jul 2019 12:42:24 GMT):
You don't need that. The chaincode can access the identity informations (certificates, roles I beleive, etc)

florianc (Thu, 04 Jul 2019 12:43:56 GMT):
I think it is this one: https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html#getCreator__anchor

generak (Thu, 04 Jul 2019 14:31:51 GMT):
Yeah, chaincode can get access to certificate attributes directly. In my own implementation I've been using a replicated password-based database for authentication, providing a user with a JWT, then for each REST endpoint I verify the JWT and use the stored wallet identity to invoke the relevant chaincode

FernandaSartori (Thu, 04 Jul 2019 16:58:39 GMT):
Has joined the channel.

diestrin (Thu, 04 Jul 2019 18:27:53 GMT):
Hey guys, does anyone has a guide on how to add orderers to a RAFT network? I know the docs have this section https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html#reconfiguration but there's a lot of missing information there. I found this unit test with the steps necessary to update the configuration https://github.com/hyperledger/fabric-test/blob/30292a3513b0607ae45885a7ceb85d08a5b16c26/tools/PTE/CITest/scenarios/PTECIutils.sh#L104 and I was able to make the update successfully, however the new started orderer in all my tests is not able to connect or talk with the rest of the orderers, it's getting rejected. One of the biggest features in 1.4 is RAFT and yet the lack of technical guides helping the community to adopt it easily will make really hard for it to happen. Is any of the core members able to talk briefly about how the whole RAFT update process works?

DeeptimanPattnaik (Thu, 04 Jul 2019 20:01:32 GMT):
Has joined the channel.

DeeptimanPattnaik (Thu, 04 Jul 2019 20:01:36 GMT):
Hi Everyone I need a help , currently facing an error saying : ENDORSEMENT_POLICY_FAILURE. Description: received invalid transaction posted this issue at stackoverflow : https://stackoverflow.com/questions/56892753/endorsement-policy-failure-description-received-invalid-transaction but no answer yet any suggestion will be highly appreaciated

DeeptimanPattnaik (Thu, 04 Jul 2019 20:03:37 GMT):
please kindly help me out

gregnotso (Thu, 04 Jul 2019 22:28:04 GMT):
@DeeptimanPattnaik in my case it was the literal in the collections_config.json file, but the actual clue was a warning in the peer log

DeeptimanPattnaik (Thu, 04 Jul 2019 22:28:48 GMT):
but collections_config.json is for private collection

DeeptimanPattnaik (Thu, 04 Jul 2019 22:29:12 GMT):
i am just trying save as non-private dat

DeeptimanPattnaik (Thu, 04 Jul 2019 22:29:15 GMT):
*data

DeeptimanPattnaik (Thu, 04 Jul 2019 22:31:42 GMT):
@gregnotso can you please kindly check my stackoverflow question and provide my some solution

DeeptimanPattnaik (Thu, 04 Jul 2019 22:31:49 GMT):
*me some solution

gregnotso (Thu, 04 Jul 2019 22:36:23 GMT):
it was tripping in the json file, but my configtx.yaml has only this Endorsement: Type: Signature Rule: "OR('Org1MSP.peer')"

gregnotso (Thu, 04 Jul 2019 22:36:45 GMT):
i would check the logs for peer for any clues

DeeptimanPattnaik (Thu, 04 Jul 2019 22:37:51 GMT):
how do i get logs for peer, any idea

gregnotso (Thu, 04 Jul 2019 22:40:29 GMT):
docker logs peer0....

DeeptimanPattnaik (Thu, 04 Jul 2019 22:42:39 GMT):

DeeptimanPattnaik - Fri Jul 05 2019 01:42:25 GMT+0300 (Eastern European Summer Time).txt

DeeptimanPattnaik (Thu, 04 Jul 2019 22:42:47 GMT):
@gregnotso please check

gregnotso (Thu, 04 Jul 2019 22:45:14 GMT):
looks like you have some errors here:

gregnotso (Thu, 04 Jul 2019 22:45:18 GMT):
102: 2019-07-04 22:23:27.704 UTC [vscc] Validate -> ERRO 05c VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode CC_ORG1_V13 in tx 2:0 failed: signature set did not satisfy policy 103: 2019-07-04 22:23:27.704 UTC [committer/txvalidator] validateTx -> ERRO 05d VSCCValidateTx for transaction txId = 50d09a417eda56149394b1ebd2713fa5cd3e51b5cb46158e6367c3eda1698b8d returned error: validation of endorsement policy for chaincode CC_ORG1_V13 in tx 2:0 failed: signature set did not satisfy policy 114: 2019-07-04 22:23:31.369 UTC [vscc] Validate -> ERRO 068 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode CC_ORG1_V13 in tx 3:0 failed: signature set did not satisfy policy 115: 2019-07-04 22:23:31.369 UTC [committer/txvalidator] validateTx -> ERRO 069 VSCCValidateTx for transaction txId = cbd997d71cf49f5288f088899c522c28d9c1c0e5c942d70ea168f5d300097bb8 returned error: validation of endorsement policy for chaincode CC_ORG1_V13 in tx 3:0 failed: signature set did not satisfy policy 126: 2019-07-04 22:23:35.347 UTC [vscc] Validate -> ERRO 074 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode CC_ORG1_V13 in tx 4:0 failed: signature set did not satisfy policy 127: 2019-07-04 22:23:35.347 UTC [committer/txvalidator] validateTx -> ERRO 075 VSCCValidateTx for transaction txId = 6996a73c491b466bfcc84e0c08261222964381357b3c018de3b55f9708d63298 returned error: validation of endorsement policy for chaincode CC_ORG1_V13 in tx 4:0 failed: signature set did not satisfy policy 138: 2019-07-04 22:23:40.420 UTC [vscc] Validate -> ERRO 080 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode CC_ORG1_V13 in tx 5:0 failed: signature set did not satisfy policy 139: 2019-07-04 22:23:40.420 UTC [committer/txvalidator] validateTx -> ERRO 081 VSCCValidateTx for transaction txId = 4f82bb219134fc34421990bc1a009e1114232a23b5ae29c11f81fa472ebfa4b5 returned error: validation of endorsement policy for chaincode CC_ORG1_V13 in tx 5:0 failed: signature set did not satisfy policy

DeeptimanPattnaik (Thu, 04 Jul 2019 22:45:46 GMT):
oh ok, it says :signature set did not satisfy policy

DeeptimanPattnaik (Thu, 04 Jul 2019 22:45:55 GMT):
so, what does it mean

gregnotso (Thu, 04 Jul 2019 22:46:04 GMT):
keep editing configtx file until you get a clean run

DeeptimanPattnaik (Thu, 04 Jul 2019 22:46:22 GMT):
means, i am able to generate artifacts correctly

DeeptimanPattnaik (Thu, 04 Jul 2019 22:46:31 GMT):
is any issue with my configtx.yaml

gregnotso (Thu, 04 Jul 2019 22:47:10 GMT):
i think it's the policy settings for one, either, or both of your peers

gregnotso (Thu, 04 Jul 2019 22:47:36 GMT):
but i didn't write the code so it was just trial and error for me

DeeptimanPattnaik (Thu, 04 Jul 2019 22:48:08 GMT):
so, is there any mistake in my policy settings in configtx.yaml

gregnotso (Thu, 04 Jul 2019 22:48:52 GMT):
not sure if it's a mistake, but mine looks different: Endorsement: Type: Signature Rule: "OR('Org1MSP.peer')"

DeeptimanPattnaik (Thu, 04 Jul 2019 22:49:14 GMT):
oh ok, this is for Org1

DeeptimanPattnaik (Thu, 04 Jul 2019 22:49:35 GMT):
so similarly for Org2 for also Endorsement: Type: Signature Rule: "OR('Org2MSP.peer')"

DeeptimanPattnaik (Thu, 04 Jul 2019 22:49:39 GMT):
am i correct

gregnotso (Thu, 04 Jul 2019 22:52:35 GMT):
yes, same for Org2, but this may not be sufficient as mine had the wrong case in the json file

DeeptimanPattnaik (Thu, 04 Jul 2019 22:53:03 GMT):
if possible, can you please share me your code, just for reference , i'll check

gregnotso (Thu, 04 Jul 2019 22:55:09 GMT):
the file is copyrighted by IBM, so not sure what i can paste here, but it took me several edits of configtx file to get rid of that endorsement error

DeeptimanPattnaik (Thu, 04 Jul 2019 22:55:47 GMT):
oh ok, i'll just try modifying my configtx.yaml

gregnotso (Thu, 04 Jul 2019 22:56:48 GMT):
here's org section of my configtx file, but again the actual error was elsewhere for me: ################################################################################ # Section: Organizations ################################################################################ Organizations: - &OrdererOrg Name: OrdererOrg ID: OrdererMSP MSPDir: crypto-config/ordererOrganizations/ledger2.com/msp Policies: Readers: Type: Signature Rule: "OR('OrdererMSP.member')" Writers: Type: Signature Rule: "OR('OrdererMSP.member')" Admins: Type: Signature Rule: "OR('OrdererMSP.admin')" - &Org1 Name: org1MSP ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.ledger2.com/msp Policies: Readers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')" Writers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.client')" Admins: Type: Signature Rule: "OR('Org1MSP.admin')" Endorsement: Type: Signature Rule: "OR('Org1MSP.peer')" AnchorPeers: - Host: peer0.org1.ledger2.com Port: 7051 - &Org2 Name: org2MSP ID: Org2MSP MSPDir: crypto-config/peerOrganizations/org2.ledger2.com/msp Policies: Readers: Type: Signature Rule: "OR('Org2MSP.admin', 'Org2MSP.peer', 'Org2MSP.client')" Writers: Type: Signature Rule: "OR('Org2MSP.admin', 'Org2MSP.client')" Admins: Type: Signature Rule: "OR('Org2MSP.admin')" Endorsement: Type: Signature Rule: "OR('Org2MSP.peer')" AnchorPeers: - Host: peer0.org2.ledger2.com Port: 7057

DeeptimanPattnaik (Thu, 04 Jul 2019 22:57:20 GMT):
thank you , i'll try these config and let you know

DeeptimanPattnaik (Thu, 04 Jul 2019 22:57:28 GMT):
thanks for the help

gregnotso (Thu, 04 Jul 2019 22:57:44 GMT):
sure, some of those errors are not obvious at all

DeeptimanPattnaik (Thu, 04 Jul 2019 22:57:52 GMT):
no problem

poojaKamat (Fri, 05 Jul 2019 05:25:51 GMT):
In Fabric metrics API , what does Capacity of the egress queue imply ?

Psingh (Fri, 05 Jul 2019 06:34:43 GMT):
Is anyone implemented Raft based Ordering service in hlf v.14?

mattiabolzonella1 (Fri, 05 Jul 2019 07:10:03 GMT):
I did, following the BYFN example

Abrara (Fri, 05 Jul 2019 07:31:37 GMT):
Hi everyone, I'm having an endorsment error when I try to insert data into the ledger, did anyone already had the error `SimulateProposal -> ERRO 6075 [mychannel][9bc630fb] failed to invoke chaincode name:"fabcar" , error: txid: 9bc630fb3dd7e0ae0cd5e11e24b0cca5d805eb3ab4943618d2ed58740a2a73d3(mychannel) exists` ? From the few stuff I looked into SO I couldn't find a working solution. I'm using docker, compose and swarm. HMU for more details if you think you can help. Thanks :)

Bentipe (Fri, 05 Jul 2019 07:32:42 GMT):
Hello, Can someone help me? When starting the peer with docker compose is giving me the following error: ``` 2019-07-05 07:18:55.966 UTC [nodeCmd] startChaincodeServer -> PANI 00e Failed to create chaincode server: listen tcp 192.168.0.125:7052: bind: cannot assign requested address panic: Failed to create chaincode server: listen tcp 192.168.0.125:7052: bind: cannot assign requested address ```

Abrara (Fri, 05 Jul 2019 07:38:45 GMT):
looks like a port problem, is 7052 free? maybe you can catch the docker logs of the exited peer container while it's booting up?

Psingh (Fri, 05 Jul 2019 07:47:41 GMT):
ok. thanks @mattiabolzonella1

Bentipe (Fri, 05 Jul 2019 07:51:38 GMT):
Hey, TY abrara, no its not that, but it gave me a clue, the CORE_PEER_ADDRESS was not correctly set

srinu_chunduru (Fri, 05 Jul 2019 08:10:13 GMT):
Has joined the channel.

srinu_chunduru (Fri, 05 Jul 2019 08:10:14 GMT):
Hi Team, I am working on HyperLedger Fabric Java chain code. I feel there is some issue with getStateByRange method. when i pass startKey and endKey as empty, it is not returning any data. But it is working with empty values in GO and NodeJS. Documentation show that both can be empty, but it's not working. Can you please help me in this?

davidkel (Fri, 05 Jul 2019 08:28:23 GMT):
Seems this might be an issue/restriction with java chaincode. might be worth raising a jira

srinu_chunduru (Fri, 05 Jul 2019 08:29:36 GMT):
I don't see an option to raise jira, i don't have login credentials and no option to create a login. let me try one more time

Patriq (Fri, 05 Jul 2019 10:51:25 GMT):
@srinu_chunduru use your linux foundation credentials you used to join this chat

jscode017 (Fri, 05 Jul 2019 11:11:03 GMT):
Has joined the channel.

jscode017 (Fri, 05 Jul 2019 11:11:05 GMT):
Hi everyone, I'm new here and have some questions about the chaincodeEvent

jscode017 (Fri, 05 Jul 2019 11:13:41 GMT):
I'm currently using javascript sdk, I know that setting something like event_hub.registerChaincodeEvent, enable me to listen to chaincode event. But when I receive the event and then go in to callback function, I would lost the events that happended until I set event_hub.registerChaincodeEvent again. Are there anyway that I can continuosly listen to chaincode event without some blank window? Thanks

jscode017 (Fri, 05 Jul 2019 11:13:41 GMT):
I'm currently using javascript sdk, I know that setting something like event_hub.registerChaincodeEvent, enable me to listen to chaincode event. But when I receive the event and then go in to callback function, I would lost the events that happended until I set event_hub.registerChaincodeEvent again. Are there anyway that I can continuosly listen to chaincode event without some blank window? Help, please. Thanks

SatyamMishra (Fri, 05 Jul 2019 12:02:35 GMT):
how can I setup fabric on multi host network.Is there any proper documentation you can refer me to?

srinu_chunduru (Fri, 05 Jul 2019 12:11:30 GMT):
I used Google authentication,

Patriq (Fri, 05 Jul 2019 12:47:21 GMT):
All good, just say you forgot password, and they will send you one to your google account

Abrara (Fri, 05 Jul 2019 14:26:16 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f this one partly works for me, I'm currently having trouble with chaincodes and such, but the network part looks OK

icarrascol (Fri, 05 Jul 2019 15:20:00 GMT):
hello everyone, if the orderer doesnt have a couchdb instance how does it know the number of the last block of its ledger? , where is that number saved?

mrudav.shukla (Fri, 05 Jul 2019 15:32:39 GMT):
Blocks are basically agnostic to the state database. The orderer is the part of the channel and thus is able get the block number.

icarrascol (Fri, 05 Jul 2019 15:51:41 GMT):
if the orderers ledger gets deleted for a reason how do you proceed, because when you restart the container it detects it doesnt have data of the last block so it fails to start

abisarvepalli (Fri, 05 Jul 2019 17:39:51 GMT):
Has joined the channel.

Roper 2 (Fri, 05 Jul 2019 22:14:56 GMT):
Has joined the channel.

Roper 2 (Fri, 05 Jul 2019 22:14:57 GMT):
Hey, I'm working on Fabric chaincode in Golang. I split up the chaincode into the main package and a sub-package because that helps with the testability. However, one of my chaincodes uses vendoring (because of the cid package) and the chaincode instantiation messes up the dependency import path, details here: https://stackoverflow.com/questions/56909688/vendored-chaincode-has-false-dependencies help would be much appreciated

Roper 2 (Fri, 05 Jul 2019 22:14:57 GMT):
Hey, I'm working on Fabric chaincode in Golang. I split up the chaincode into the main package and a sub-package because that helps with the testability. However, one of my chaincodes uses vendoring (because of the cid package) and the chaincode instantiation messes up the dependency import path by repeating portions of the path, details here: https://stackoverflow.com/questions/56909688/vendored-chaincode-has-false-dependencies help would be much appreciated

Roper 2 (Fri, 05 Jul 2019 22:14:57 GMT):
Hey, I'm working on Fabric chaincode in Golang. I split up the chaincode into the main package and a sub-package because that helps with the testability. However, one of my chaincodes uses vendoring and the chaincode instantiation messes up the dependency import path by repeating portions of the path, details here: https://stackoverflow.com/questions/56909688/vendored-chaincode-has-false-dependencies help would be much appreciated

Psingh (Sat, 06 Jul 2019 08:12:03 GMT):
Hey everyone, I'm facing a weird issue. when running a _docker-compose up_ command then _*channel-artifacts*_ and _*crypto-config*_ folders are getting generated under *_base_* folder which contains *peer-base.yaml* and *docker-compose.yaml* files

Psingh (Sat, 06 Jul 2019 08:12:03 GMT):
Hey everyone, I'm facing a weird issue. when running a _*docker-compose up*_ command then _*channel-artifacts*_ and _*crypto-config*_ folders are getting generated under *_base_* folder which contains *peer-base.yaml* and *docker-compose.yaml* files

Psingh (Sat, 06 Jul 2019 08:20:20 GMT):

Screenshot (22).png

Psingh (Sat, 06 Jul 2019 08:20:45 GMT):

Screenshot (23).png

Heena078 (Sat, 06 Jul 2019 11:12:09 GMT):

Screenshot from 2019-07-06 16-35-43.png

Heena078 (Sat, 06 Jul 2019 11:12:29 GMT):
Hi Does anyone face this issue?

Heena078 (Sat, 06 Jul 2019 11:13:07 GMT):
can anyone help me out this....??

Aar34w23 (Sat, 06 Jul 2019 19:09:08 GMT):
Has joined the channel.

PanosChtz (Sun, 07 Jul 2019 02:40:48 GMT):
Hello all, I'm new to Hyperledger Fabric. I've just installed it on a Ubuntu 18.04 VM. My VM hostname is "hyperledger1". I went through the tutorials here https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html but now I want to build a test network of my own. I want to have 3 VMs, the first one "hyperledger1" will be the peer, the second "hyperledger2" will be the orderer and the third "hyperledger3" will be the client who makes a simple query. Any suggestions or existing tutorial for that? Thank you

PanosChtz (Sun, 07 Jul 2019 02:40:48 GMT):
Hello all, I'm new to Hyperledger Fabric. I've just installed it on a Ubuntu 18.04 VM. My VM hostname is "hyperledger1". I went through the tutorials here https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html but now I want to build a test network of my own, not on containers but on VMs. I want to have 3 VMs, the first one "hyperledger1" will be the peer, the second "hyperledger2" will be the orderer and the third "hyperledger3" will be the client who makes a simple query. Any suggestions or existing tutorial for that? Thank you

Psingh (Sun, 07 Jul 2019 07:48:22 GMT):
Is anyone using or used fabric-go-sdk to install and instantiate the chaincode with MultiOrg architecture ?

djay21 (Mon, 08 Jul 2019 04:57:35 GMT):
can anyone help me with food supply chain entities like what other variables can i take other than product id, Details and description?

elrito96 (Mon, 08 Jul 2019 06:09:03 GMT):
temperature, location(X and Y coordinates)

MattV 5 (Mon, 08 Jul 2019 08:21:54 GMT):
Has joined the channel.

MattV 5 (Mon, 08 Jul 2019 08:29:40 GMT):
Hello guys! I just wondering should I use reverse proxy server (such as nginx) for node-sdk rest server? Or does anyone have other suggestion?

MattV 5 (Mon, 08 Jul 2019 08:29:40 GMT):
Hello guys! I just wondering should I use reverse proxy server (such as nginx) for node-sdk rest server? Or does anyone have other suggestion? Thank you a lot!

MattV 5 (Mon, 08 Jul 2019 08:29:40 GMT):
Hello guys! I just wondering should I use reverse proxy server (such as nginx) for node-sdk rest server? Or does anyone have other suggestion? Thank you a lot!

MattV 5 (Mon, 08 Jul 2019 08:29:40 GMT):
Hello guys! I just wondering should I use reverse proxy server (such as nginx) for node-sdk rest server? Or does anyone have other suggestion? Thank you a lot!

RicNtt (Mon, 08 Jul 2019 08:44:12 GMT):
Has joined the channel.

RicNtt (Mon, 08 Jul 2019 08:44:13 GMT):
Hello! I have my Nodejs server with Fabric Node SDK running. I use contract.submitTransaction to send a transation that creates an entity. The transaction correctly arrives in some milliseconds and is elaborated. But the response arrives around 2 sec after to the fabric client. Why there is this delay?

himanshuchawla009 (Mon, 08 Jul 2019 08:55:19 GMT):
hello everyone , i need some help regarding use of hyperledger caliper

himanshuchawla009 (Mon, 08 Jul 2019 08:56:21 GMT):
I am wondering does hyperledger caliper supports dynamic arguments to be passed while writing benchmark files.

himanshuchawla009 (Mon, 08 Jul 2019 08:57:21 GMT):
for ex: While benchmarking transfer function of chaincode for 1000 transactions ,can i pass 1000 different arguments in function

himanshuchawla009 (Mon, 08 Jul 2019 08:57:42 GMT):
of all my transactions can be tested with a static argument defined in configuration file.

RicNtt (Mon, 08 Jul 2019 09:08:28 GMT):
So how can I get answer about this?

generak (Mon, 08 Jul 2019 09:33:47 GMT):
naturally it'll take some time as the transaction is not just sent and committed immediately - the transaction proposal response is received in milliseconds, but submitTransaction both submits the proposal and assembles the returned endorsements into a transaction. So, once the proposal response is received, it continues on by sending the transaction to the orderer which passes the transaction to peers to commit. Finally, once a peer commits to the ledger, a transaction event is emitted - at this point, submitTransaction completes execution.

generak (Mon, 08 Jul 2019 09:35:42 GMT):
you can read more about the transaction flow in Fabric here https://hyperledger-fabric.readthedocs.io/en/release-1.4/txflow.html

RicNtt (Mon, 08 Jul 2019 09:39:47 GMT):
Thanks for the answer

RicNtt (Mon, 08 Jul 2019 09:39:56 GMT):
so is it possible to reduce the time for the response?

Abrara (Mon, 08 Jul 2019 11:35:59 GMT):
Still have this issue :s I also sometimes get `error: [AbstractStrategy]: constructor: No event hubs for strategy` . Querying the ledger is fine. From what I understood it's an endorsment error (` endorsement failed - Error: failed to execute transaction 4ce3d91a0fada591756aa690400ff8d03a13b668e99f52a9dbc874a8cad07959: error sending: txid: 4ce3d91a0fada591756aa690400ff8d03a13b668e99f52a9dbc874a8cad07959(mychannel) exists`), but I'm having trouble investigating it further, any leads please?

DawoodJehangir (Mon, 08 Jul 2019 12:16:43 GMT):
Hi, I'm facing an issue while upgrading smart contract. I would like to mention that I haven't faced any similar problem before (while running this command), so I'm not sure what's causing this. Below, I have attached a section of my terminal window which shows its current state. Kindly let me know about the possible fixes ``` docker exec -e CORE_PEER_LOCALMSPID="bopMSP" -e CORE_PEER_TLS_ROOTCERT_FILE="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/bop.pitb.gov.pk/peers/boppeer01.bop.pitb.gov.pk/tls/ca.crt" -e CORE_PEER_MSPCONFIGPATH="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/bop.pitb.gov.pk/users/Admin@bop.pitb.gov.pk/msp" -e CORE_PEER_ADDRESS="boppeer01.bop.pitb.gov.pk:7051" cli0 peer chaincode upgrade -n bankpeerContract -v 1.8 -p /opt/gopath/src/github.com/chaincode/fabcar/javascript/ -l node -c '{"Args":[]}' -o orderer.pitb.gov.pk:7050 --tls true --cafile "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/pitb.gov.pk/orderers/orderer.pitb.gov.pk/msp/tlscacerts/tlsca.pitb.gov.pk-cert.pem" -C mychannel 2019-07-08 11:55:54.175 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-07-08 11:55:54.175 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc ``` And it's just stuck here. Not proceeding further.

Bentipe (Mon, 08 Jul 2019 13:13:50 GMT):
Hey guys, trying to implement raft here, wich are the differences between ClientTLSCert and ServerTLSCerts? What do they belong to? tls ca? ca? Thanks

Abrara (Mon, 08 Jul 2019 13:52:50 GMT):
Hello, when I set CORE_PEER_LISTENADDRESS to the same address as CORE_PEER_ADDRESS (as can be seen in https://fabric-sdk-node.github.io/release-1.4/tutorial-discovery.html for example) I get the following error: `Failed to create peer server (listen tcp X.X.X.X:7051: bind: cannot assign requested address)` where X.X.X.X is an unknown address. Hence, my peer container crashes at launch. Any idea where that could come from? If I don't set the LISTENADDRESS the container runs smoothly, but I have errors for endorsement (previous question).

HritikGupta (Mon, 08 Jul 2019 15:42:37 GMT):
Has joined the channel.

HritikGupta (Mon, 08 Jul 2019 15:42:38 GMT):
Hi there! I am working on connecting LDAP server with a fabric network (2 orgs + 4 peers (2 each)), having 2 CAs. The process I am currently following to enroll a user is via authentication with LDAP (performed by fabric-ca server) and then assigning certificates to the enrolled user, so that it can invoke methods in chaincode. The certificates of the authenticated user get saved in hfc-key-store. What I want to achieve is as follows: I have an external CA and I have a user who is already enrolled (i.e. the user already has the certificate and priv-key). Is there a way the user can directly invoke txns, skipping the enrolling part ?

icarrascol (Mon, 08 Jul 2019 15:57:07 GMT):
hello everyone is there a way to rejoin or disconnect a peer from a network

medikent (Mon, 08 Jul 2019 16:04:33 GMT):
Does Hyperledger Fabric 2.0 introduce the ability to mock the database so we can unit test CouchDB queries?

HritikGupta (Mon, 08 Jul 2019 16:17:10 GMT):
None as of now, I guess

icarrascol (Mon, 08 Jul 2019 16:37:02 GMT):
if the last block of a peers ledger is deleted it cant recover automatically, which is the procedure to recover this peer? is it even possible to do?

delao (Mon, 08 Jul 2019 16:38:46 GMT):
Shouldn't gossip between peers recover the missing block?

medikent (Mon, 08 Jul 2019 16:55:03 GMT):
I wondered the same thing. I haven't heard of or found a way to do so.

icarrascol (Mon, 08 Jul 2019 17:14:27 GMT):
using docker the container doesnt start, checking the log it shows this panic: Could not retrieve header of the last block form file: error peeking [-38760480] bytes from block file: bufio: negative count

icarrascol (Mon, 08 Jul 2019 17:18:17 GMT):
how would you react against this, if you loose a peer it cant recover

delao (Mon, 08 Jul 2019 17:42:30 GMT):
Usually if your peer is lost, you can get the container back up and then you can run ```peer chaincode join``` to re-join the channel you've lost after re-intalling the chaincode with ```peer chaincode install```

delao (Mon, 08 Jul 2019 17:42:30 GMT):
Usually if your peer is lost, you can get the container back up and then you can run ```peer channel join``` to re-join the channel you've lost after re-intalling the chaincode with ```peer chaincode install```

icarrascol (Mon, 08 Jul 2019 18:06:06 GMT):
but the container cant start if part of the ledger is deleted

jyhong (Mon, 08 Jul 2019 23:34:59 GMT):
Has joined the channel.

jyhong (Mon, 08 Jul 2019 23:35:00 GMT):
Hello. I'm adding a new consortium to existing network. Do you know how to add ? thanks ahead

DeeptimanPattnaik (Tue, 09 Jul 2019 01:12:10 GMT):
Hi, How do i know, which Peer did the Transaction in Hyperledger Fabric Go? asked at Stackoverflow : https://stackoverflow.com/questions/56944097/how-do-i-know-which-peer-did-the-transaction-in-hyperledger-fabric-go please suggest me some solution

jyhong (Tue, 09 Jul 2019 02:08:09 GMT):
consortium

LKas71 (Tue, 09 Jul 2019 04:57:35 GMT):
Has joined the channel.

LKas71 (Tue, 09 Jul 2019 04:57:37 GMT):
https://stackoverflow.com/questions/56945579/hyperledger-fabric-warning-this-orderer-is-running-in-compatibility-mode Hi, can anyone help us with this? We receive warnings: "[orderer.consensus.kafka] processRegular -> WARN 02a [channel: mychannel] This orderer is running in compatibility mode"

sahilgoel (Tue, 09 Jul 2019 06:21:36 GMT):
If i have an network with 3 Org and each organisation is having 2 peers then we have two channels say between A and B and A and C. If I assume that the one peer has 1K TPS. So does it mean that Org A peers TPS will be 1K for both channels combined or it will be divided between the two channels?

sahilgoel (Tue, 09 Jul 2019 06:21:36 GMT):
If i have an network with 3 Org and each organisation is having 2 peers and we have two channels say one is (A and B) & other is (A and C). If I assume that the one peer has 1K TPS. So does it mean that Org A peers TPS will be 1K for both channels combined or it will be divided between the two channels?

sahilgoel (Tue, 09 Jul 2019 06:21:36 GMT):
If i have an network with 3 Org and each organisation is having 2 peers and we have two channels say one is (A and B ) & other is (A and C). If I assume that the one peer has 1K TPS. So does it mean that Org A peers TPS will be 1K for both channels combined or it will be divided between the two channels?

sahilgoel (Tue, 09 Jul 2019 06:21:36 GMT):
If i have an network with 3 Org and each organisation is having 2 peers and we have two channels say one is (A and B ) & other is (A and C). If I assume that the one peer has 1K TPS. So does it mean that Org A peers TPS will be 1K for each channel or it will be divided between the two channels?

Leo 426 (Tue, 09 Jul 2019 07:37:40 GMT):
Has joined the channel.

andrewhw (Tue, 09 Jul 2019 08:29:25 GMT):
I would like to add a small number of properties to a channel configuration, to ensure that certain common configuration data is managed under the same restrictions (policy) as organisations. (In detail, I would like to set some constants for an application in a way which cannot then be amended by the application). Is there any way of adding a user field to the channel definition? If there is a way of adding these fields, can channel configuration be read by application code?

shamashanf (Tue, 09 Jul 2019 08:47:52 GMT):
Has joined the channel.

shamashanf (Tue, 09 Jul 2019 08:50:39 GMT):
Hi everyone, hope you all well. I am working on a project which hosted on my local machine but I planning to deploy it on a cloud platform, I am wondering if anyone has experience with that(what option I have)

shamashanf (Tue, 09 Jul 2019 08:50:39 GMT):
Hi everyone, hope you all well. I am working on a project which hosted on my local machine but I planning to deploy it on a cloud platform, I am wondering if anyone has experience with that(what options I have, which one is the best)

himanshuchawla009 (Tue, 09 Jul 2019 10:13:03 GMT):
hello everyone,can anyone tell me solution for this error:-

himanshuchawla009 (Tue, 09 Jul 2019 10:13:08 GMT):
error: [Orderer.js]: sendDeliver - rejecting - status:BAD_REQUEST [2019-07-09 12:22:39.347] [ERROR] Join-Channel - Error: Invalid results returned ::BAD_REQUEST

himanshuchawla009 (Tue, 09 Jul 2019 10:13:35 GMT):
I am trying to run balance transfer sample app pn

himanshuchawla009 (Tue, 09 Jul 2019 10:14:04 GMT):
on* mac os and it throws the error given above while joining channel

djay21 (Tue, 09 Jul 2019 10:24:52 GMT):
how can i unit test or debug my chaincode without installing and instantiate again and again on peers ??? is there any method to do it

djay21 (Tue, 09 Jul 2019 10:40:06 GMT):
check your Docker-compose.yaml file and network-config. and make sure each certificate is correctly pasted as the in crypto-materials

sahilgoel (Tue, 09 Jul 2019 11:25:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eXgyBRCaMDL8xy4Di) Any sugesstions on the same?

sahilgoel (Tue, 09 Jul 2019 11:25:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eXgyBRCaMDL8xy4Di) Any suggestions on the same?

sergiupopescu199 (Tue, 09 Jul 2019 11:27:50 GMT):
Has joined the channel.

sergiupopescu199 (Tue, 09 Jul 2019 11:27:51 GMT):
Hi everyone! Can anyone help me or give a link how to use hyperledger fabric? I'm new to this project but i reaally want to know more and create my own blockchain. Thanks in advance

vindias (Tue, 09 Jul 2019 12:25:07 GMT):
Has joined the channel.

vindias (Tue, 09 Jul 2019 12:27:31 GMT):
hey @Abrara , I have the same issue when trying to insert data into the ledger in v2. Querying also works fine for me. Were you able to solve this? Btw, in v1.4 everything works ok.

vindias (Tue, 09 Jul 2019 12:29:37 GMT):
hey @Abrara! I have the same issue when trying to insert data into the ledger. Querying also works ok for me. Were you able to solve this?

Abrara (Tue, 09 Jul 2019 12:39:09 GMT):
oh, I have the issue in v1.4 actually, and still not solved no

ZainabM (Tue, 09 Jul 2019 12:41:13 GMT):
Has joined the channel.

ZainabM (Tue, 09 Jul 2019 12:41:21 GMT):
Currently we use configtxgen tool to generate channel configuration file. Can we create the channel configuration file through sdk/api? So that for a given channel name, the .tx file is generated and new channel gets created through api.

ZainabM (Tue, 09 Jul 2019 12:41:21 GMT):
Currently configtxgen tool is used to generate channel configuration file. Can we create the channel configuration file through sdk/api? So that for a given channel name, the .tx file is generated and new channel gets created through api.

vindias (Tue, 09 Jul 2019 12:44:02 GMT):
hmm got it.. thanks!

Abrara (Tue, 09 Jul 2019 12:45:28 GMT):
i'll let you know if I find a solution in 1.4, maybe it will apply

vindias (Tue, 09 Jul 2019 12:53:03 GMT):
Some time ago I had a similar issue and I solved it by removing the docker images and downloading them again for 1.4.. seems some kind of conflict with older images happened.

Abrara (Tue, 09 Jul 2019 12:53:26 GMT):
will try, thanks

MatteoPiovanelli (Tue, 09 Jul 2019 12:58:21 GMT):
Has joined the channel.

GioG12 (Tue, 09 Jul 2019 13:37:23 GMT):
Has joined the channel.

GioG12 (Tue, 09 Jul 2019 13:37:57 GMT):
Hi guys. I'm getting this error in console after running cli UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder (some path) does not exist But actually this files exist in the path. Has anyone got this error?

dcof (Tue, 09 Jul 2019 13:39:50 GMT):
Has joined the channel.

dcof (Tue, 09 Jul 2019 13:46:42 GMT):
Hi, i'm just getting started with fabric, i read the key concepts and did the first three tutorials. In the tutorials, the network is setup automatically via scripts leading to connected docker containers. What i don't understand at the moment is how a fabric network is built in product with physical nodes for every organization. Are the peers and orderers and so on still running in docker containers? I read about docker swarm to connect multiple docker containers from different physical machines, but that sounds like a more complex development environment. Do you have any hints / further readings for me?

Bentipe (Tue, 09 Jul 2019 13:49:33 GMT):
hey guys, I am trying to set up the orderer with raft and there is something that I dont have clear yet: - On the configtx.yml file on the orderer section orderertype, should I put raft? - For the certificates, are the signcerts from the tls for each orderer? thanks in advance

dcof (Tue, 09 Jul 2019 13:57:21 GMT):
I came across the exact same question and found this post as well. But i think it is strange, that there is no official guide / solution around for setting up such multi host networks? After all, that should be one key feature, or am i missing something here? From my understanding, the peers, hosted by different organizations, along with the ordering and CA nodes form the fabric network, so it is only natural that hey have to be deployed across multiple machines, right?

Abrara (Tue, 09 Jul 2019 14:00:32 GMT):
Yeah, I also was a bit flabbergasted to not find an official tutorial with at least 2 different physical machines (unless I missed it)

MatteoPiovanelli (Tue, 09 Jul 2019 15:14:12 GMT):
quick question: I might have read about this, but I am not sure: is it possible to mix go and node chaincode in the same project?

warrenlamb (Tue, 09 Jul 2019 15:16:02 GMT):
Has joined the channel.

warrenlamb (Tue, 09 Jul 2019 15:16:03 GMT):
Hey guys pretty simple question but cant seem to find an answer, is there a way to submit non-string parameters to chaincode transactions? Fabric always rejects the transaction if they arn't wrapped in ""

Antimttr (Tue, 09 Jul 2019 15:59:29 GMT):
not a direct answer, but any string could later be interpreted as a number once the string is extracted from the blockchain

warrenlamb (Tue, 09 Jul 2019 16:58:08 GMT):
yea I can pass in strings and convert them I'm just wondering if this limitation is by design

DeeptimanPattnaik (Tue, 09 Jul 2019 23:44:30 GMT):
Hi, How to read Block data received by transaction id in Hyperledger Fabric Go? asked at Stackoverflow : https://stackoverflow.com/questions/56961434/how-to-read-block-data-received-by-transaction-id-in-hyperledger-fabric-go please suggest me solution

eujungkim (Wed, 10 Jul 2019 05:13:47 GMT):
peer channel fetch

HritikGupta (Wed, 10 Jul 2019 05:45:07 GMT):
How does `fabric-ca-client` enroll generates the "signingIdentity" ?

HritikGupta (Wed, 10 Jul 2019 05:45:07 GMT):
How does `fabric-ca-client enroll` generates the "signingIdentity" ?

RahulEth (Wed, 10 Jul 2019 06:01:37 GMT):
@RahulEth

RahulEth (Wed, 10 Jul 2019 06:02:47 GMT):
hello guys i have heard about hyperledger from some of my colleague that all its projects going to licensed from next year. Do anyone know about it?

ZainabM (Wed, 10 Jul 2019 06:10:51 GMT):
chaincode event

umarmw (Wed, 10 Jul 2019 06:14:03 GMT):
in `configtx.yaml` if I have 5 organisations, should I use the `TwoOrgsChannel` like this? sample: ``` TwoOrgsChannel: Consortium: SampleConsortium <<: *ChannelDefaults Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 - *Org3 - *Org4 - *Org5 Capabilities: <<: *ApplicationCapabilities ```

JuanD 10 (Wed, 10 Jul 2019 06:14:53 GMT):

Clipboard - 10 de julio de 2019 8:14

JuanD 10 (Wed, 10 Jul 2019 06:15:43 GMT):

screenshot.png

umarmw (Wed, 10 Jul 2019 06:18:56 GMT):
I've installed it a couple of weeks back. It should be fine. Try to relaunch it again..

JuanD 10 (Wed, 10 Jul 2019 06:19:27 GMT):
I tried a few times, but always show errors...

umarmw (Wed, 10 Jul 2019 06:20:28 GMT):
Try to download the tar file

umarmw (Wed, 10 Jul 2019 06:20:35 GMT):
and extract it manually

HritikGupta (Wed, 10 Jul 2019 06:24:17 GMT):
This seems correct

umarmw (Wed, 10 Jul 2019 06:26:43 GMT):
and the next step is to create the anchor peer in `byfn.sh`. eg: ``` echo echo "#################################################################" echo "####### Generating anchor peer update for Org3MSP ##########" echo "#################################################################" set -x configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org3MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Org3MSP res=$? set +x if [ $res -ne 0 ]; then echo "Failed to generate anchor peer update for Org3MSP..." exit 1 fi ``` right?

RahulEth (Wed, 10 Jul 2019 06:27:03 GMT):
do somebody have answer?

JuanD 10 (Wed, 10 Jul 2019 06:32:01 GMT):
It was a problem of the folder I was running the command. Thanks for the help!

umarmw (Wed, 10 Jul 2019 06:32:33 GMT):
:thumbsup:

HritikGupta (Wed, 10 Jul 2019 06:35:09 GMT):
Have you defined the anchor peers in your configtx.yaml?

HritikGupta (Wed, 10 Jul 2019 06:35:16 GMT):
.. for each org

umarmw (Wed, 10 Jul 2019 06:37:00 GMT):
This one: ``` - &Org3 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org3MSP # ID to load the MSP definition as ID: Org3MSP MSPDir: crypto-config/peerOrganizations/org3.vehiclelifecycle.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')" Writers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.client')" Admins: Type: Signature Rule: "OR('Org3MSP.admin')" ```

umarmw (Wed, 10 Jul 2019 06:37:00 GMT):
This one: ``` - &Org3 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org3MSP # ID to load the MSP definition as ID: Org3MSP MSPDir: crypto-config/peerOrganizations/org3.vehicle-life-cycle.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')" Writers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.client')" Admins: Type: Signature Rule: "OR('Org3MSP.admin')" ```

umarmw (Wed, 10 Jul 2019 06:37:00 GMT):
This one: ``` - &Org3 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org3MSP # ID to load the MSP definition as ID: Org3MSP MSPDir: crypto-config/peerOrganizations/org3.example.com/msp # Policies defines the set of policies at this level of the config tree # For organization policies, their canonical path is usually # /Channel/// Policies: Readers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')" Writers: Type: Signature Rule: "OR('Org3MSP.admin', 'Org3MSP.client')" Admins: Type: Signature Rule: "OR('Org3MSP.admin')" ```

HritikGupta (Wed, 10 Jul 2019 06:38:43 GMT):
`AnchorPeers: - Host: peer0.org2.example.com Port: 7051` is missing

HritikGupta (Wed, 10 Jul 2019 06:39:47 GMT):
Check the configtx.yaml file in fabric-samples/first-network repo

umarmw (Wed, 10 Jul 2019 06:40:11 GMT):
``` AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only # encoded in the genesis block in the Application section context - Host: peer0.org3.example.com Port: 11051 ``` i forgot to paste this part.

umarmw (Wed, 10 Jul 2019 06:40:29 GMT):
Is that all?

HritikGupta (Wed, 10 Jul 2019 06:41:29 GMT):
yeah

HritikGupta (Wed, 10 Jul 2019 06:42:19 GMT):
You can then update the anchor peers

umarmw (Wed, 10 Jul 2019 06:42:58 GMT):
thanks :)

K1L14N (Wed, 10 Jul 2019 07:36:49 GMT):
hello everyone, i would like to access the private key of my clients through the server in order to sign for them. how can i achieve that ?

GianlucaPinto (Wed, 10 Jul 2019 08:26:23 GMT):
hi all, in production i have 2 orderer and 2 peer. the orderer1 (and peer1) fails to start for a block file corrupted. how can i remove this orderer and add a new one that fetch the data from the good orderer0 ?

Psingh (Wed, 10 Jul 2019 08:47:31 GMT):
how to inspect the content of genesis.block? i'm trying this command ../../bin/configtxgen -profile TwoOrgChannel -inspectBlock ./genesis.block but it's showing below error 2019-07-10 14:14:24.414 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-07-10 14:14:24.415 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> PANI 002 Error reading configuration: Unsupported Config Type "" 2019-07-10 14:14:24.416 IST [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" [recovered] panic: Error reading configuration: Unsupported Config Type ""

Psingh (Wed, 10 Jul 2019 08:47:31 GMT):
how to inspect the content of genesis.block? i'm trying this command `../../bin/configtxgen -profile TwoOrgChannel -inspectBlock ./genesis.block` but it's showing below error ``` 2019-07-10 14:14:24.414 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-07-10 14:14:24.415 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> PANI 002 Error reading configuration: Unsupported Config Type "" 2019-07-10 14:14:24.416 IST [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" [recovered] panic: Error reading configuration: Unsupported Config Type "" ```

K1L14N (Wed, 10 Jul 2019 08:58:17 GMT):
to inspect you need to use configtxlator, configtxgen is a tool to generate crypto material

K1L14N (Wed, 10 Jul 2019 08:59:29 GMT):
something like configtxlator proto_decode --type common.Block --input genesis.block

Psingh (Wed, 10 Jul 2019 09:04:12 GMT):
thanks @K1L14N

jlcs (Wed, 10 Jul 2019 09:54:18 GMT):
Check this tutorial: https://blockchain.jlcs.es/2018/12/16/debugging-hyperledger-fabric-s-nodejs-chaincode-with-vs-code.html

shamashanf (Wed, 10 Jul 2019 10:48:03 GMT):
Hi guys, I am quite new to the Hyperledger Fabric. I have a problem with running the RestApi which is that every time I restart my OS I have to kill all dockers and images and start the fabric network again and do all the steps to be able to open the Rest Api. I feel that I am missing something here.

tballast (Wed, 10 Jul 2019 11:02:37 GMT):
When it comes to a multi-org network, would each organization know about the peers of all of the other organizations, or must they only know about their own?

dcof (Wed, 10 Jul 2019 11:06:00 GMT):
I'm new to fabric, but wouldn't they need to know each other to some extend, i.e. the ordering nodes and the endorsing peers?

tballast (Wed, 10 Jul 2019 11:07:39 GMT):
The orderer's for sure, I was more wondering about the peers themselves. I suppose that they probably do though, because if Org1 wants to transact, he'd have to sent it to Org2's endorsing peers to make sure that they actually endorse it.

dcof (Wed, 10 Jul 2019 11:09:41 GMT):
Yeah, i think so too, also for gossping when using private data, they would need to know each other, right?

Abrara (Wed, 10 Jul 2019 11:45:42 GMT):
from my understanding, they would "know" the anchor peers, and it's those anchor that would be responsible of gossiping to the peers of their org

HritikGupta (Wed, 10 Jul 2019 12:25:56 GMT):
Yes, peers of an org know about the peers of other orgs via the anchor peer of their org.

tballast (Wed, 10 Jul 2019 12:29:20 GMT):
Ahh ok, so in that case does Org2 only need to tell Org1 about the anchor peer? What would happen then if the anchor peer went down?

Abrara (Wed, 10 Jul 2019 12:32:19 GMT):
Orgs tell about their anchor peers to the channel, using a transaction (Org1MSPanchors.tx which is in channel-artifacts in fabric samples e.g.), they do not contact each org individually. If an anchor peer goes down you should get at least another one up (if not already the case since you can have multiple anchor peers)

Abrara (Wed, 10 Jul 2019 12:35:20 GMT):
although you can have 0 anchor peers: https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html#types-of-peers

IgnatZakrevsky (Wed, 10 Jul 2019 13:30:28 GMT):
Has joined the channel.

IgnatZakrevsky (Wed, 10 Jul 2019 13:30:29 GMT):
Hi is it somehow possible to throw an error on concurrent updating the same state?

IgnatZakrevsky (Wed, 10 Jul 2019 13:30:29 GMT):
Hi is it somehow possible to throw an error on concurrent updating the same state? It seems like a trivial problem, but `putState` just rewrites previous value without any signs

mmulji (Wed, 10 Jul 2019 14:04:31 GMT):
Has joined the channel.

tballast (Wed, 10 Jul 2019 14:50:21 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html#install-not-instantiate Look in the third paragraph here. > Copies of smart contract S5 will usually be identically implemented using the same programming language, but if not, they must be semantically equivalent. Should be possible.

tballast (Wed, 10 Jul 2019 14:50:21 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html#install-not-instantiate Look in the third paragraph here. > Copies of smart contract S5 will usually be identically implemented using the same programming language, but if not, they must be semantically equivalent. Should be possible.

K1L14N (Wed, 10 Jul 2019 14:52:07 GMT):
I need to get the key generated by fabric-ca-client, how can i do so please ?

delao (Wed, 10 Jul 2019 14:53:05 GMT):
You are right, `putState` will create a new state for your asset, even if the latest state is the same as the actual. If you don't want to have this double state scenarios, you could use `getState` in your chaincode e compare them before tring to submit the transaction

Bentipe (Wed, 10 Jul 2019 14:55:18 GMT):
You should declare the fabric-ca-client home and there should be the crypto material

Bentipe (Wed, 10 Jul 2019 14:55:38 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#fabric-ca-client

IgnatZakrevsky (Wed, 10 Jul 2019 14:56:38 GMT):
But if events are concurrent `getState` can return not-updated state. Here is exact problem that I have. One transactions comes right after `getState` but before `putState`

IgnatZakrevsky (Wed, 10 Jul 2019 14:56:38 GMT):
But if events are concurrent `getState` can return not-updated state. Here is the exact problem that I have. One transaction comes right after `getState` but before `putState`

K1L14N (Wed, 10 Jul 2019 14:56:51 GMT):
I want to access private key through the node SDK for my server is it possible ?

Bentipe (Wed, 10 Jul 2019 14:58:16 GMT):
yes, here there is a section called fabric-ca-client

Bentipe (Wed, 10 Jul 2019 14:58:17 GMT):
https://fabric-sdk-node.github.io/release-1.4/index.html

Bentipe (Wed, 10 Jul 2019 14:58:38 GMT):
the part that you have to look for is the enrollment part, the ca should return all the crypto material

K1L14N (Wed, 10 Jul 2019 14:59:26 GMT):
going to take a look, will keep you informed

tballast (Wed, 10 Jul 2019 15:00:14 GMT):
@SatyamMishra https://medium.com/coinmonks/hyperledger-fabric-cluster-on-multiple-hosts-af093f00436 this helped me.

IgnatZakrevsky (Wed, 10 Jul 2019 15:00:19 GMT):
``` T1: getState('A') --- v1 ----- setState('A', v2) -- success -> V2 T2: getState('A') ------- v1 ------ setState('A', v3) -- success -> V3 ```

tballast (Wed, 10 Jul 2019 15:03:40 GMT):
Right, true. Ok, so if Org1 & 2 each have an Anchor peer, then I should just be able to tell the other org about the Anchor peers. However, if the Anchor peer is down, then I'd have to connect to at least one (or potentially more depending on the Endorsement Policy) peer from the other org to complete the transaction. I guess ultimately the information about the peers will have to be "public" knowledge (at least to those on the network) and then my client application will have to take these peers into account when it puts together a transaction proposal.

K1L14N (Wed, 10 Jul 2019 15:33:50 GMT):
i can not manage to get the name of the keystore file :(

K1L14N (Wed, 10 Jul 2019 15:34:49 GMT):
in my server logs i see something like this [FileKeyValueStore.js]: getValue { key: "9473928709709923179-priv"}

K1L14N (Wed, 10 Jul 2019 15:34:58 GMT):
this is what i want

Bentipe (Wed, 10 Jul 2019 15:35:32 GMT):
dos not the name come on the object?

K1L14N (Wed, 10 Jul 2019 15:35:48 GMT):
no

K1L14N (Wed, 10 Jul 2019 15:35:57 GMT):
i am wondering where it came from by the way

Bentipe (Wed, 10 Jul 2019 15:36:23 GMT):
why do you want the name?

K1L14N (Wed, 10 Jul 2019 15:36:55 GMT):
i want my server to handle signing digital content so i need to get priv key of client users

Bentipe (Wed, 10 Jul 2019 15:37:44 GMT):
but, cant you access the content of that file¿

K1L14N (Wed, 10 Jul 2019 15:38:03 GMT):
i store the pair of keys in persistent store /tmp/kv but i don't know how to choose the name of the file

K1L14N (Wed, 10 Jul 2019 15:38:17 GMT):
it is generated automatically by fabric-ca-client i guess

Bentipe (Wed, 10 Jul 2019 15:39:14 GMT):
yeah, but if you have the content, you can write them with the name of the file that you want

K1L14N (Wed, 10 Jul 2019 15:40:20 GMT):
i don't know how to choose the name since fabric-ca-client is handling this process

Bentipe (Wed, 10 Jul 2019 15:41:36 GMT):
you can ask on #fabric-ca , but as far as I know the name is not important, what is important is the content

K1L14N (Wed, 10 Jul 2019 15:44:25 GMT):
the issue (i think) is that to access key content, i need to enroll user each time my server receives a request so the signing process is useless since the private key will change. Did i miss something ?

Bentipe (Wed, 10 Jul 2019 15:45:58 GMT):
so you r trying to create like a wallet?

Bentipe (Wed, 10 Jul 2019 15:45:59 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/wallet.html

Bentipe (Wed, 10 Jul 2019 15:46:24 GMT):
for CA specific things you can ask on their channel, they will help you more than me

K1L14N (Wed, 10 Jul 2019 15:48:15 GMT):
thank you Bentipe for your help, i think a wallet can do the job but it's maybe too much for my usecase i don't know yet.

K1L14N (Wed, 10 Jul 2019 15:50:47 GMT):
maybe you can tell me where the output name of the priv/pub key comes from ? hash of the content ? other ?

Psingh (Wed, 10 Jul 2019 15:55:17 GMT):
Hey everyone, I'm facing some issue with byfn mutli orgs setup when trying to create a channel command: ``` root@d093154d8320:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` ``` 2019-07-10 15:53:32.351 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied root@d093154d8320:/opt/gopath/src/github.com/hyperledger/fabric/peer# ```

Psingh (Wed, 10 Jul 2019 15:55:17 GMT):
Hey everyone, I'm facing some issue with byfn mutli orgs setup when trying to create a channel command: ``` root@d093154d8320:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` error: ``` 2019-07-10 15:53:32.351 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied root@d093154d8320:/opt/gopath/src/github.com/hyperledger/fabric/peer# ```

Psingh (Wed, 10 Jul 2019 16:10:04 GMT):
Could someone please help me with byfn multiorg setup?

irj (Wed, 10 Jul 2019 17:01:06 GMT):
Has joined the channel.

irj (Wed, 10 Jul 2019 17:01:09 GMT):
Is there any references for setting up a test network (orderer, peers, etc) without all the prepackaged scripts? Is there some minimal viable example floating about? The docs seem very heavy and complicated and a lot of the scripts are opaque to understand.

theDweeb (Wed, 10 Jul 2019 18:01:41 GMT):
I think i am in a similar boat as you ``` `2019-07-10 17:52:09.683 UTC [grpc] HandleSubConnStateChange -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc0002e6080, CONNECTING 2019-07-10 17:52:09.684 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc0002e6080, READY Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` ```

Psingh (Wed, 10 Jul 2019 18:04:42 GMT):
check below two parameters under ca-server config in docker-compose.yaml(docker-compose-e2e.yaml) - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/

theDweeb (Wed, 10 Jul 2019 18:05:58 GMT):
ah is that file not just for e2e testing

theDweeb (Wed, 10 Jul 2019 18:06:38 GMT):
I have made my own network from the byfn and was wondering where the CA config was. I have been assuming the e2e.yamls were just for testing

Psingh (Wed, 10 Jul 2019 18:07:43 GMT):
it contains ca-server config for org1 and org2 (in case of multi org setup)

theDweeb (Wed, 10 Jul 2019 18:12:41 GMT):
thanks! I never included it my own networks directory so I forgot all about it.

Psingh (Wed, 10 Jul 2019 18:51:21 GMT):
try byfn.sh script to generate Multi Orgs setup. this is under `fabric-samples/first-network`

Psingh (Wed, 10 Jul 2019 18:52:11 GMT):
Did it work?

theDweeb (Wed, 10 Jul 2019 20:18:22 GMT):
What I ended up doing and have had success with (after spending a lot of time trying to find a one-stop shop resource) is just go to the byfn page and open up the byfn.sh and script.sh. Figure out the order of everything and how everything works. Start with crypto-config and configtxgen, then the docker-compose (cli, couch, kafka, ca, etc) This guy helped me out too: https://www.youtube.com/watch?v=z-bZ71LN_mw I am still learning but just sifting through the tutorials and their code has helped a lot, although its not as easy and quick as a 20min youtube tutorial

theDweeb (Wed, 10 Jul 2019 20:20:59 GMT):
About to give it a try, took a break. I will let you know... I do have a question, I see some compose-ca.yaml have just the CA information inside them, where as the docker-compose-e2e.yaml has all of the peer and orderer information. Should I just have the CA container settings if I have configured the peer/orderer stuff in other .yamls? Or should I leave it as is

theDweeb (Wed, 10 Jul 2019 20:23:05 GMT):
Also, sorry for hijacking your thread

nmarco (Wed, 10 Jul 2019 22:48:25 GMT):
Question about upgrading chaincode. What happens if not all peers upgraded and then one peer sends a transaction using the new chaincode version?

mespejo84 (Wed, 10 Jul 2019 22:56:44 GMT):
I saw in Fabric documentation that is a good practice create indexes for couchDB to optimize queries, and there is one example about how to do that and it only said that I need to create a file with json format and one value is the fields by which the index needs to be created. But I don't see how to do that if my chaincode has two lists for example, how to tell couch db that needs to create one index for my paper list and one for my participants list (for example).

theDweeb (Wed, 10 Jul 2019 23:18:58 GMT):
Still same error, following the chain of command i can't see where they actually start the CA compose file (the e2e.yaml) I can get the byfn network working with their config files and scripts but with mine I get the error above

DeeptimanPattnaik (Wed, 10 Jul 2019 23:36:37 GMT):
how to add collection config in Fabric SDK Go?

DeeptimanPattnaik (Thu, 11 Jul 2019 00:09:12 GMT):
asked at stackoverflow : https://stackoverflow.com/questions/56980085/how-to-add-collection-config-in-fabric-sdk-go

DeeptimanPattnaik (Thu, 11 Jul 2019 00:09:27 GMT):
please check and kindly suggest me solution

vinker (Thu, 11 Jul 2019 00:57:10 GMT):
Has joined the channel.

vinker (Thu, 11 Jul 2019 00:57:11 GMT):
#fabric

handy (Thu, 11 Jul 2019 02:00:30 GMT):
Has joined the channel.

Taffies (Thu, 11 Jul 2019 03:19:41 GMT):
Hello! I'm configuring my firewall & wanted to know what where I can allow traffic from. I have questions regarding what some of the ports on orderer & peer should be communicating with: - Orderer: 8443, 6060 - Peer: 9443, 6060 Any ideas? Thank you!

Taffies (Thu, 11 Jul 2019 03:27:44 GMT):
Also, if I'm running it on Docker containers, do the services only talk to other containers or can they be accessible from anywhere?

NaveenVamshi (Thu, 11 Jul 2019 05:19:04 GMT):
How to implement to external-ca in place of fabric-ca , is there any specific external-ca is there and way to implement the external-ca?

Psingh (Thu, 11 Jul 2019 05:26:28 GMT):
There are 3 files 1. peer-base.yaml : contains common config for peers 2. docker-compose.yaml: contains config of orderer and peers above two are under base directory 3. so if u want to use a tls connection then there is a third file called docker-compose-e2e.yaml which basically extends docker-compose.yaml file. so if u want to use ca then start the docker using command "docker-compose -f docker-compose-e2e.yaml up -d" . for the sake of simplicity they are using different files. one quick hack: copy the cli configuration(just the cli config part only) from docker-compose-cli.yaml file to docker-compose-e2e.yaml file to start the cli container too

LixonLouis (Thu, 11 Jul 2019 05:33:15 GMT):
Has joined the channel.

Psingh (Thu, 11 Jul 2019 05:45:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=guJMqRMeNTDNwccAr) any core dev in here who can help me out with this please ?

Psingh (Thu, 11 Jul 2019 05:55:40 GMT):
hey Naveen, please check this article on medium: https://medium.com/ibm-garage/using-3rd-party-root-cas-in-hyperledger-fabric-3cafa91d1260

Psingh (Thu, 11 Jul 2019 05:55:40 GMT):
hey Naveen, please check this article on medium. it might help you https://medium.com/ibm-garage/using-3rd-party-root-cas-in-hyperledger-fabric-3cafa91d1260

tballast (Thu, 11 Jul 2019 07:33:03 GMT):
@Psingh Are you using the right user context? What is youz `CORE_PEER_MSPCONFIGPATH` variable?

tballast (Thu, 11 Jul 2019 07:34:40 GMT):
What is your `CORE_PEER_MSPCONFIGPATH` variable set to? I believe that you need to make sure you're using the admin context. for example, mine is `/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp` and I don't have issues with channel creation.

MatteoPiovanelli (Thu, 11 Jul 2019 07:36:26 GMT):
excuse me, but could it be that this stuff you are describing is the reason why, following the byfn tutorial, I get the following error in the logs: Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity: Peer Identity [a sequence of bytes] cannot be validated. No MSP found able to do that. Would the reason be that there is no CA in the base file used for docker compose, and then in later steps in the tutorial they have you use tls?

Psingh (Thu, 11 Jul 2019 07:37:14 GMT):
this is mine: root@bb137ef4839e:/opt/gopath/src/github.com/hyperledger/fabric/peer# echo $CORE_PEER_MSPCONFIGPATH /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp

tballast (Thu, 11 Jul 2019 07:38:50 GMT):
Does the channel happen to already exist?

Psingh (Thu, 11 Jul 2019 07:39:23 GMT):
nope cauz i tried this even after removing docker images too

Psingh (Thu, 11 Jul 2019 07:43:02 GMT):
i quick query. since my orderer org is not a part of consortium so it is be the possible reason of this failure. But there are some articles available in which ordererOrg isn't a part of consortium and they are working fine.

Psingh (Thu, 11 Jul 2019 07:43:02 GMT):
one quick query. since my orderer org is not a part of consortium so it is be the possible reason of this failure. But there are some articles available in which ordererOrg isn't a part of consortium and they are working fine.

tballast (Thu, 11 Jul 2019 07:53:54 GMT):
hmm...you said that it's part of the byfn example? Did you make modifications to it? Also, do you know which policy it is actually trying to satisfy? To me it looks as though this is being done from the wrong user context (given the `...requires 1 of the 'Admins' sub-policies to be satisfied` line)

tballast (Thu, 11 Jul 2019 07:54:33 GMT):
I don't know where those are located unfortunately.

Psingh (Thu, 11 Jul 2019 07:56:08 GMT):
I didn't make any changes to the configtx.gen and crypto-config.yaml files. I'm also not able to figureout these policies.

Psingh (Thu, 11 Jul 2019 07:56:08 GMT):
I didn't make any changes to the configtx.yaml and crypto-config.yaml files. I'm also not able to figureout these policies.

Psingh (Thu, 11 Jul 2019 08:03:22 GMT):
this is what i'm getting in docker logs ``` 2019-07-11 07:09:08.979 UTC [orderer.common.server] Start -> INFO 008 Beginning to serve requests 2019-07-11 07:10:37.054 UTC [cauthdsl] deduplicate -> ERRO 009 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 2019-07-11 07:10:37.055 UTC [cauthdsl] deduplicate -> ERRO 00a Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 2019-07-11 07:10:37.055 UTC [orderer.common.broadcast] ProcessMessage -> WARN 00b [channel: mychannel] Rejecting broadcast of config message from 172.19.0.9:54388 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied 2019-07-11 07:10:37.055 UTC [comm.grpc.server] 1 -> INFO 00c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.9:54388 grpc.code=OK grpc.call_duration=6.5955ms ```

tballast (Thu, 11 Jul 2019 08:04:56 GMT):
Oh, right at the beginning it looks like you've got some invalid certificates. Is this the log for the CLI from startup?

Psingh (Thu, 11 Jul 2019 08:04:59 GMT):
the policies are in configtx.yaml files

Psingh (Thu, 11 Jul 2019 08:05:45 GMT):
yes

tballast (Thu, 11 Jul 2019 08:08:19 GMT):
Looking at the first x509 deserilization error I found this thread: https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric maybe that could provide you with something? Though perhaps you've already seen it.

Psingh (Thu, 11 Jul 2019 08:09:29 GMT):
I have already seen this thats why I asked about the consortium thing

tballast (Thu, 11 Jul 2019 08:10:13 GMT):
Do the orderer logs tell you anything more?

Psingh (Thu, 11 Jul 2019 08:11:39 GMT):
no. nothin more

Psingh (Thu, 11 Jul 2019 08:11:39 GMT):
no. nothing more

RahulEth (Thu, 11 Jul 2019 09:14:56 GMT):

explorer.png

RahulEth (Thu, 11 Jul 2019 09:14:56 GMT):

explorer.png

RahulEth (Thu, 11 Jul 2019 09:27:06 GMT):
try again after restarting your pc

tballast (Thu, 11 Jul 2019 09:31:25 GMT):
Or perhaps regenerate the crypto materials

Psingh (Thu, 11 Jul 2019 09:32:39 GMT):
will try regenrating the crypto-material and artifacts.

Psingh (Thu, 11 Jul 2019 09:56:02 GMT):
nothing changed after regenerating the artifacts and crypto-config too.

Psingh (Thu, 11 Jul 2019 09:56:35 GMT):
i think restarting the pc is the only solution I'm left with

tballast (Thu, 11 Jul 2019 09:57:47 GMT):
Have you tried a full tear down? Like, delete all containers and restart? It seems off that this would require a PC restart.

Psingh (Thu, 11 Jul 2019 09:58:35 GMT):
not this time. but i tried it previously

RahulEth (Thu, 11 Jul 2019 09:59:44 GMT):
is there any export ?? i am stuck here

tballast (Thu, 11 Jul 2019 09:59:53 GMT):
Ok I see. Are you trying to follow the tutorial instructions or do something on your own?

Psingh (Thu, 11 Jul 2019 10:00:18 GMT):
i'm following the tutorial instruction only

Psingh (Thu, 11 Jul 2019 10:00:39 GMT):
this is link i'm following : https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html#createchanneltx

Psingh (Thu, 11 Jul 2019 10:00:39 GMT):
this is lthe ink i'm following : https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html#createchanneltx

Psingh (Thu, 11 Jul 2019 10:00:39 GMT):
this is the link i'm following : https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html#createchanneltx

tballast (Thu, 11 Jul 2019 10:00:52 GMT):
This looks similiar to the other problem that @Psingh is having. If that's solved, then maybe it will relate to this too.

RahulEth (Thu, 11 Jul 2019 10:01:48 GMT):
@tballast let me check. i am setting up the explorer with default first-network

tballast (Thu, 11 Jul 2019 10:06:03 GMT):
I haven't run the example in a while, however I know that when I did, and followed the instructions, it did work. If you can follow along step by step and try to understand what's happening at each stage, it should illuminate something.

RahulEth (Thu, 11 Jul 2019 10:10:07 GMT):
have you setup explorer ever??

tballast (Thu, 11 Jul 2019 10:21:19 GMT):
I see, so, I just ran the ./byfn test on my computer, and when I ran it the first time I got a similar error to you. then, I ran: ``` ./byfn.sh down ./byfn.sh generate ./byfn.sh up ``` and everything worked smoothly.

tballast (Thu, 11 Jul 2019 10:22:54 GMT):
I've tried it however I normally ran into problems with the postgres database, and it's never been important enough to me to continue.

tballast (Thu, 11 Jul 2019 10:23:46 GMT):
nonetheless, it looks like your error has to do with some sort of invalid certificate, so you'll either have to find out which one and fix it, or try completely regenerating your crypto material as well.

Psingh (Thu, 11 Jul 2019 10:53:57 GMT):
ok

Psingh (Thu, 11 Jul 2019 11:18:53 GMT):
finally its working :)

tballast (Thu, 11 Jul 2019 11:19:11 GMT):
:sign_of_the_horns: good to hear

RahulEth (Thu, 11 Jul 2019 11:21:24 GMT):
how??

Psingh (Thu, 11 Jul 2019 11:21:34 GMT):
after restart

Abrara (Thu, 11 Jul 2019 11:23:09 GMT):
Hi everyone, following my endorsment issue with "txid exists" I opened a SO question, any help would be appreciated, TIA. https://stackoverflow.com/questions/56954847/hyperledger-fabric-endorsement-failing-txid-exists

Psingh (Thu, 11 Jul 2019 11:25:30 GMT):
now i'm gonna try it with docker-compose-e2e.yaml file.

mania06 (Thu, 11 Jul 2019 11:54:36 GMT):
Has joined the channel.

mania06 (Thu, 11 Jul 2019 11:54:38 GMT):
Hello, i'm Sylvain Bossut from Connecting Food. We're currently running Hyperledger in production, but we've had a problem recently. We restarted the whole stack (including all kafka brokers) and since, we cannot use our main channel. The orderer is logging error when trying to fetch data from kafka brokers: ``` # Logs of an orderer: [channel: ] Starting chain with last persisted offset 14369 and last recorded block 3580 ... [channel: ] Connecting to the Kafka cluster [channel: ] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. [channel: ] Connecting to the Kafka cluster [channel: ] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. [channel: ] Connecting to the Kafka cluster [channel: ] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. # etc ... ... [channel: ] Rejecting deliver request for because of consenter error ``` I guess the orderer is trying to access data that isn't in kafka. Am i guessing right? And, if yes, what can i do about it? Thanks for helping, Sylvain

MatteoLinear (Thu, 11 Jul 2019 12:28:38 GMT):
Hi, how will i modify a fabric network so that a change in the chaincode (adding a function for exmple) will be refelcted in the running network, is chaincode upgrade related to this or do i need to bring down the chaincode container and install from scratch?

mastersingh24 (Thu, 11 Jul 2019 12:52:12 GMT):
chaincode upgrade is the way to go

baocontact (Thu, 11 Jul 2019 13:27:35 GMT):
Has joined the channel.

MatteoLinear (Thu, 11 Jul 2019 13:40:02 GMT):
ok,thank you, i guess i dont understand the chaincode versioning though.. because of course it cant let me upgrade to v1 due to it being the one already instantiated,so what version do i put? 2.0? do i choose the versioning or is it related to something else?

lepar (Thu, 11 Jul 2019 13:51:32 GMT):
Hey guys, anyone have a network in production?

dcof (Thu, 11 Jul 2019 13:52:02 GMT):
i'm still wondering, i read a few articles about using docker swarm for connecting multiple hosts. I think @Abrara also posted one concerning multi host networks. In that case, every peer or every node would know each other, as they are connected in the same docker network via swarm, right? At least when considering the examples where orderers and peers share the same docker network (which they have to?)

Abrara (Thu, 11 Jul 2019 13:55:51 GMT):
I think it's the same pattern whether the orgs are on the same host or not: talk to the anchors and hope they'll gossip to their little brothers in the same org. Not your job as Org1 to make sure that all the peers of Org2 are notified

dcof (Thu, 11 Jul 2019 13:57:42 GMT):
Hm, makes sense

dcof (Thu, 11 Jul 2019 14:08:05 GMT):
Did i understand it correctly, that the docker-compose files, on every machine, are manually extended via extra_host with the host information of every peer / orderer? Is that's the way it is done in production as well, it looks quite stressfull to me

lepar (Thu, 11 Jul 2019 14:21:16 GMT):
You can choose any version, just has to be an incrementing number. 1.001, 1.01, 1.1, 1.2, 2.0, 400. It's up to you how you want to control the versions

awjh (Thu, 11 Jul 2019 14:29:28 GMT):
Is it safe to write a function in chaincode that returns private data? For example if someone were to run submitTransaction on this function to peers that could access this data and therefore consensus were achieved. Would the value returned by these peers when the data is shared around the other peers be recorded and therefore the other peers be able to see this data?

theDweeb (Thu, 11 Jul 2019 15:06:22 GMT):

error.png

theDweeb (Thu, 11 Jul 2019 15:07:13 GMT):
I have been stuck on this for almost a day, I have completely torn down the containers, images, removed volumes, restarted computer

theDweeb (Thu, 11 Jul 2019 15:07:54 GMT):
I can get the byfn network up and running no problem but the only difference with mine is I have 4 orgs

ONRising (Thu, 11 Jul 2019 15:08:59 GMT):
Hello, I am a bit confuse about the differences between Contract and Chaincode interface in javascript. What is the use case for each of them?

ONRising (Thu, 11 Jul 2019 15:08:59 GMT):
Hello, I am a bit confuse about the differences between Contract and Chaincode interface in javascript. What is the use case for each one?

generak (Thu, 11 Jul 2019 15:34:43 GMT):
In production, you'd utilise something like docker swarm or Kubernetes with an overlay network to allow for addressing via DNS names - this makes the network far more expandable and dynamic than having to maintain the compose file(s)

theDweeb (Thu, 11 Jul 2019 18:42:59 GMT):
Fixed it

anirudh9048 (Fri, 12 Jul 2019 00:08:40 GMT):
Has joined the channel.

anirudh9048 (Fri, 12 Jul 2019 00:08:41 GMT):
I am working on implementing my own ordering service with multiple ordering nodes. I'm using the etcdraft ordering service as a reference. I'm confused about how raft ensures that all 5 orderers join mychannel (since `peer channel create` only specifies one orderer). `peer channel create` is only called on orderer.example.com, how do the rest of the orderers join mychannel? Once orderer.example.com joins mychannel, is there an induction process that brings the rest of the orderers into mychannel?

theDweeb (Fri, 12 Jul 2019 00:42:55 GMT):
So I am building off of the byfn and have expanded it to 4 organizations. I have modified all of the necessary config files and scripts. It runs the end-to-end test all the way until the end but fails at the last query because the value is still 100 and not 90, meaning the invoke never goes through?

theDweeb (Fri, 12 Jul 2019 00:44:55 GMT):
the e2e worked with 2 orgs, stackoverflow has outdated solutions to upgrading the 1.0-alpha images

isakiko (Fri, 12 Jul 2019 01:02:52 GMT):
Has joined the channel.

isakiko (Fri, 12 Jul 2019 01:02:53 GMT):
hi everyone :wave: i'm just looking into write rights and was wondering if you can only assign rights in the chaincode or if there is a way to link a list of users to a specific state or even key/value pair.

theDweeb (Fri, 12 Jul 2019 01:06:51 GMT):
examining the dev-peer containers shows 90 and 210 for a and b

PB4 (Fri, 12 Jul 2019 01:55:55 GMT):
Hello everyone! I wanted to ask about whether the time showing in peer logs about Committed block, for example like this: Committed block [50] in 24ms. Can this be called the throughput of the fabric?

DUO1510 (Fri, 12 Jul 2019 03:55:31 GMT):
Has joined the channel.

jastisriradheshyam (Fri, 12 Jul 2019 06:12:11 GMT):
are capabilities optional if I am running all orgs, orderer and application at same version (e.g. v1.4)

RahulEth (Fri, 12 Jul 2019 06:18:45 GMT):
Hello guys

RahulEth (Fri, 12 Jul 2019 06:20:30 GMT):
hello guys i have heard about the hyperledger fabric . its going to be licensed in near future. if it is then what would be the next for open sourse community. ``` any comments would be appricated ```

K1L14N (Fri, 12 Jul 2019 06:58:44 GMT):
Proposals sent back to client won't match thus depending on your policies the transaction would be considered invalid

K1L14N (Fri, 12 Jul 2019 06:59:22 GMT):
do you have sources please ?

K1L14N (Fri, 12 Jul 2019 07:02:41 GMT):
Hello, can somebody used the sign/verify method under the Signer API? I can not manage to use it and had to make my own implementation.

RahulEth (Fri, 12 Jul 2019 07:06:41 GMT):
@K1L14N its backed by IBM and they usually put their projects open source initially. when the project get mature they make it licensed. some of my friends get to know they are making it licensed from next year

sstone1 (Fri, 12 Jul 2019 07:15:13 GMT):
@RahulEth Hyperledger Fabric is, and will continue to be, licensed under the Apache-2.0 license and developed in the open by IBM and all other companies that contribute

sstone1 (Fri, 12 Jul 2019 07:16:08 GMT):
IBM and other companies, for example Oracle, do have paid offerings that are built around the open source Hyperledger Fabric project that provide you with hosting, services, 24/7 support, etc

sstone1 (Fri, 12 Jul 2019 07:16:47 GMT):
if you don't want to pay for those offerings, that's fine, and you can continue to use the open source Hyperledger Fabric for free under the terms of the Apache-2.0 license

RahulEth (Fri, 12 Jul 2019 07:21:57 GMT):
@sstone1 thank you very much for your valuable comments. i was scared for last one week.

RahulEth (Fri, 12 Jul 2019 07:22:41 GMT):
@sstone1 is it possible IBM launch their own Licensed version of fabric other than open source

RahulEth (Fri, 12 Jul 2019 07:26:20 GMT):
@sstone1 any comments would be highly appreciated

sstone1 (Fri, 12 Jul 2019 07:26:20 GMT):
no, not possible - it is highly likely your friends are confused with regards to the IBM Blockchain Platform (a commercial offering as above) that is built on top of Hyperledger Fabric

RahulEth (Fri, 12 Jul 2019 07:32:56 GMT):
thanks again @sstone1 for more clarity

Jelle.Diet (Fri, 12 Jul 2019 08:37:55 GMT):
I'm trying to use private data with a collections config json file, but when trying to install the file I get the error : Error upgrading smart contract: Invalid policy, missing the "identities" property. My policy looks like this: "policy": "OR('Org1MSP.member')". Is there something I'm missing? Does member need to be defined somewhere in the network? All the examples seem to use this .member property without issues

gt (Fri, 12 Jul 2019 09:36:45 GMT):
Hello everyone, I need some helm on finding the problem on configuring mulatual tls: ```ServerHandshake -> ERRO 68c TLS handshake failed with error remote error: tls: bad certificate server=Orderer``` I'm using let's encrypt certificate with ingress on Kubernetes. This is a detailed description of the problem: https://stackoverflow.com/questions/56874687/hyperledger-fabric-mutual-tls-authentication-causes-orderer-error-tls-bad-cer

gt (Fri, 12 Jul 2019 09:36:45 GMT):
Hello everyone, I need some help on finding the problem on configuring mutual tls: ```ServerHandshake -> ERRO 68c TLS handshake failed with error remote error: tls: bad certificate server=Orderer``` I'm using let's encrypt certificate with ingress on Kubernetes. This is a detailed description of the problem: https://stackoverflow.com/questions/56874687/hyperledger-fabric-mutual-tls-authentication-causes-orderer-error-tls-bad-cer

gt (Fri, 12 Jul 2019 09:38:07 GMT):
I'm not sure if i'm doing something wrong, or the peer client is not respecting this he ENV variables here.

GioG12 (Fri, 12 Jul 2019 11:27:14 GMT):
Hello guys chaincode fails to instantiate on JS/TS, but works on Go can somebody tell me what is problem?

tballast (Fri, 12 Jul 2019 11:42:18 GMT):
@GioG12 really hard to say what the problem is with so little information, but whenever I've run into an issue like that it was becuase I either had the path wrong, or I didn't specify the chaincode language in the instantiation command (`-l `)

GioG12 (Fri, 12 Jul 2019 11:57:24 GMT):
this is docker log `ERRO 041 [mychannel][f5fc5520] failed to invoke chaincode name:"lscc" , error: container exited with 127 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333`

K1L14N (Fri, 12 Jul 2019 11:57:28 GMT):
hello can somebody figured out a way to commit transaction (PutState) even though i want to return an error with shim.Error ?

K1L14N (Fri, 12 Jul 2019 11:58:03 GMT):
which container exited ?

GioG12 (Fri, 12 Jul 2019 11:58:47 GMT):
chaincode cointainer I think, rest are working fine

K1L14N (Fri, 12 Jul 2019 11:59:18 GMT):
run docker ps to be sure

florianc (Fri, 12 Jul 2019 11:59:27 GMT):
I think shim;error does not allow tx commitment. I believe throwing an error when everything is OK is not a good practice (at least it does not pake sense)

GioG12 (Fri, 12 Jul 2019 11:59:58 GMT):
tools peer ca orderer and couchdb are running

K1L14N (Fri, 12 Jul 2019 12:02:49 GMT):
yes i get the point but i am not satisfied to output a success message of error. like shim.Success([]byte("error")) :( is it the only way ?

Abrara (Fri, 12 Jul 2019 12:02:59 GMT):
we'd need the error code from the existed container. docker ps -a and if you cannot see the existed container, try to run your instantiation again and catch the container logs before it exits

K1L14N (Fri, 12 Jul 2019 12:03:37 GMT):
docker logs -f

GioG12 (Fri, 12 Jul 2019 12:06:42 GMT):
ps -a does not show any other container

GioG12 (Fri, 12 Jul 2019 12:07:27 GMT):
I think chaincode container does not even start

Abrara (Fri, 12 Jul 2019 12:07:38 GMT):
it does, because it exits

Abrara (Fri, 12 Jul 2019 12:07:57 GMT):
just run instantiation again and spam docker ps to see its id

K1L14N (Fri, 12 Jul 2019 12:09:08 GMT):
just look for the status of each container

K1L14N (Fri, 12 Jul 2019 12:09:46 GMT):
even exited one appear after they exit

GioG12 (Fri, 12 Jul 2019 12:11:22 GMT):
ye, just spammed ps -a and its chaincode contaner

Abrara (Fri, 12 Jul 2019 12:12:01 GMT):
so docker logs it

GioG12 (Fri, 12 Jul 2019 12:16:13 GMT):
I try to see logs by id but it does not show

K1L14N (Fri, 12 Jul 2019 12:23:44 GMT):
can you give your command ?

GioG12 (Fri, 12 Jul 2019 12:25:11 GMT):
docker logs -f 79e8d0d43e67

GioG12 (Fri, 12 Jul 2019 12:25:29 GMT):
Error: No such container: 79e8d0d43e67

Abrara (Fri, 12 Jul 2019 12:26:25 GMT):
you need to launch your logs command before the container exits, need to be quick to catch the id with docker ps BEFORE the container exits

GioG12 (Fri, 12 Jul 2019 12:26:53 GMT):
yes but its too hard, it exits in 1 sec

K1L14N (Fri, 12 Jul 2019 12:37:15 GMT):
you CAN logs even after exit

K1L14N (Fri, 12 Jul 2019 12:37:48 GMT):
show the output of docker ps -a

GioG12 (Fri, 12 Jul 2019 12:42:18 GMT):

Screen Shot 2019-07-12 at 4.41.15 PM.png

K1L14N (Fri, 12 Jul 2019 12:43:27 GMT):
i don't see the exited container ?

GioG12 (Fri, 12 Jul 2019 12:44:49 GMT):
it appears if I spam docker ps -a during instantiation and exits in 1 sec

K1L14N (Fri, 12 Jul 2019 12:45:15 GMT):
nothing after ?

mania06 (Fri, 12 Jul 2019 12:45:37 GMT):
Hello, i'm Sylvain Bossut from Connecting Food. We're currently running Hyperledger in production, but we've had a problem recently. We rest

K1L14N (Fri, 12 Jul 2019 12:45:42 GMT):
right now i can see multiple container that exited more than 1 hour ago

GioG12 (Fri, 12 Jul 2019 12:45:45 GMT):
nope, it disappears

Abrara (Fri, 12 Jul 2019 12:45:48 GMT):
it gets removed right after exiting that's why, the command isprobably stgh like docker run --rm

K1L14N (Fri, 12 Jul 2019 12:46:39 GMT):
yes what command did you type before ?

GioG12 (Fri, 12 Jul 2019 12:52:17 GMT):
I run fabcar example startFabric shell script from fabric samples

K1L14N (Fri, 12 Jul 2019 13:03:13 GMT):
it's supposed to work you might have changed a file or maybe pulled an issue from gerrit. Either try to clear all containers and removing orphans just in case or git checkout to previous commit

K1L14N (Fri, 12 Jul 2019 13:04:19 GMT):
i pulled repo at commit 334a66f17

GioG12 (Fri, 12 Jul 2019 13:09:25 GMT):
I just installed new docker images and fabric-sample and during pull it logs errors on nodeenv image

GioG12 (Fri, 12 Jul 2019 13:10:41 GMT):

Screen Shot 2019-07-12 at 5.09.39 PM.png

K1L14N (Fri, 12 Jul 2019 13:11:13 GMT):
the issue is comming from your docker daemon

K1L14N (Fri, 12 Jul 2019 13:11:26 GMT):
on what OS are you ? mac ?

GioG12 (Fri, 12 Jul 2019 13:12:03 GMT):
High Sierra 10.13.6

K1L14N (Fri, 12 Jul 2019 13:12:26 GMT):
just restart docker then

GioG12 (Fri, 12 Jul 2019 13:17:05 GMT):
still logs this two message

K1L14N (Fri, 12 Jul 2019 13:19:27 GMT):
actually i checked i have the same issue except if i remove TAG version

K1L14N (Fri, 12 Jul 2019 13:20:19 GMT):
maybe they updated their docker hub, try to find $IMAGE_TAG var and set it to empty

GioG12 (Fri, 12 Jul 2019 13:31:15 GMT):
they updated to 2.0

GioG12 (Fri, 12 Jul 2019 13:37:12 GMT):
tried instantiating with nodeenv and baseos 2.0 images still same error

K1L14N (Fri, 12 Jul 2019 14:11:47 GMT):
2.0 is not stable i think

K1L14N (Fri, 12 Jul 2019 14:12:28 GMT):
just pull the latest images it works

K1L14N (Fri, 12 Jul 2019 14:12:48 GMT):
if you omit tag version, latest yill be pulled

GioG12 (Fri, 12 Jul 2019 14:20:48 GMT):
do javascript samples work on your machine? if I change CC_SRC_LANGUAGE it does not work

nikolas (Fri, 12 Jul 2019 14:24:19 GMT):
Hi, is there a tutorial / example of anonymous asset transfer for fabric?

GioG12 (Fri, 12 Jul 2019 14:32:55 GMT):
docker pull hyperledger/fabric-nodeenv does not work

K1L14N (Fri, 12 Jul 2019 14:39:58 GMT):
i found related issue on stackoverflow by pasting your error msg

K1L14N (Fri, 12 Jul 2019 14:40:50 GMT):
also interested

GioG12 (Fri, 12 Jul 2019 14:42:32 GMT):
none of them was usefull, I think nodenv image is problem

juaiglesias (Fri, 12 Jul 2019 15:32:01 GMT):
Has joined the channel.

RyanOuyang (Fri, 12 Jul 2019 15:59:04 GMT):
Has joined the channel.

RyanOuyang (Fri, 12 Jul 2019 15:59:06 GMT):
Hi there, perhaps this is a better place to ask my question here: https://chat.hyperledger.org/channel/fabric-chaincode-dev?msg=NczKBM4qrDYtihn8g

anirudh9048 (Fri, 12 Jul 2019 17:02:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bTCCTXy2hME88XgM6) Hey, wondering if anyone else has experience implementing their own ordering service.

rustie (Fri, 12 Jul 2019 17:03:39 GMT):
Has joined the channel.

invaliduser (Fri, 12 Jul 2019 17:18:21 GMT):
Has joined the channel.

medikent (Fri, 12 Jul 2019 17:47:56 GMT):
What is the target date or date range to release the *v2.0.0 alpha* version of Fabric Samples?

abityildiz (Fri, 12 Jul 2019 18:59:31 GMT):
hi all, i got the this error:

abityildiz (Fri, 12 Jul 2019 18:59:33 GMT):
Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied

abityildiz (Fri, 12 Jul 2019 18:59:41 GMT):
how can i pass this error?

abityildiz (Fri, 12 Jul 2019 20:57:08 GMT):
i have created kafka orderer.i have 3 orderer

theDweeb (Sat, 13 Jul 2019 01:14:33 GMT):
Has anyone expanded the byfn into 4 orgs? When I have 4 orgs and include Org1 and Org2 in the chaincode instantiate policy ( 'AND(Org1.peer, Org2.peer' ) it works... When I include Org3 and/or Org4 the invoke fails with: `err validation of endorsement policy for chaincode mycc in tx 7:0 failed: signature set did not satisfy policy`

theDweeb (Sat, 13 Jul 2019 01:48:11 GMT):
Hey I fixed it... so far all of my issues have just been typos.. really fun

theDweeb (Sat, 13 Jul 2019 01:53:04 GMT):
Actually if I just modified the 'parsePeerConnectionParameters' function in utils.sh to support 4 orgs

hengfun (Sat, 13 Jul 2019 10:35:57 GMT):
Hello, How do I run the examples in /go/src/github.com/hyperledger/fabric/examples/chaincode/go/example01/?

GayathriGanesan (Sat, 13 Jul 2019 11:40:31 GMT):
Has joined the channel.

gregnotso (Sat, 13 Jul 2019 14:29:48 GMT):
github says it was out in early April: https://github.com/hyperledger/fabric/blob/master/docs/source/whatsnew.rst

abityildiz (Sat, 13 Jul 2019 14:59:32 GMT):

Clipboard - July 13, 2019 5:58 PM

viraj124 (Sun, 14 Jul 2019 08:34:38 GMT):
Has joined the channel.

viraj124 (Sun, 14 Jul 2019 08:34:39 GMT):
Hi Every one i am starting with hyperledger fabric developmnts from can you guys suggest me goods hands on coding tutorials to build a hyperledger fabric app from scratch Any help would be really good

HritikGupta (Sun, 14 Jul 2019 10:14:27 GMT):
I'd suggest to get started via their official documentation to understand the essential jargons, and then the "Write your first application" section that describes how to create your first fabric network quite clearly. That should suffice to build an understanding of fabric, after which you can start with the apps. People tend to use Composer for apps, as it abstracts a lot of things, though I'm yet to try it out.

viraj124 (Sun, 14 Jul 2019 11:06:52 GMT):
@HritikGupta what about chaincode development?

viraj124 (Sun, 14 Jul 2019 11:06:56 GMT):
tutorials

theDweeb (Sun, 14 Jul 2019 16:35:52 GMT):
Check your file paths in the docker-compose files? While inside the cli container try navigating to the file in question

alexx (Mon, 15 Jul 2019 03:21:37 GMT):
Has joined the channel.

alexx (Mon, 15 Jul 2019 03:46:10 GMT):
Hi, I have a question regarding the build-in recovery mechanism: the problem originates from the fact that the validation is done individually by the peer and there's no sync afterwards (by original paper), however, a honest yet faulty node could end up in a wrongly committed ledger, specifically speaking, let's say the read-write sets are agreed upon by the orderers, and blocks are sent to the peers, now, a honest peer try to validate them and commit to ledger, however, during the process there's random fault injected and a write value is wrong or maybe missed out (although rarely happens, but any hardware failure or even kernel disruption is inevitably when running a sustain period of time), now the peer "doesn't know its ledger is non-canonical/wrong", so there needs to be a "sync-up with other peer to correct itself" process, which I believe was named "a built in recovery process" on one of the hyperledger forum posts. This process is also used for newly join peers or offline out-of-sync peer to catch up. My question, is is this feature implemented in fabric2.0, if so, anyone could point me to the code? Cuz I want to find out how frequent do peer sync with each other, and heuristically measure the communication overhead due to this. Thanks

Utsav_Solanki (Mon, 15 Jul 2019 06:27:03 GMT):
Has joined the channel.

Utsav_Solanki (Mon, 15 Jul 2019 06:27:04 GMT):
hello, i found this warninig in HLF fabric peer0 docker logs [UTC [gossip.comm] createConnection -> WARN 89eddsc Remote endpoint claims to be a different peer, expected djslkflsdfndskjfla but got fnldfnsdfnlsdf ] , can any one have solution / idea for why its happening

AnilKharabe (Mon, 15 Jul 2019 06:38:07 GMT):
Has joined the channel.

AnilKharabe (Mon, 15 Jul 2019 06:38:07 GMT):
HI there.... I am facing while update the state and return the response in the same function.

AnilKharabe (Mon, 15 Jul 2019 06:38:07 GMT):
HI there.... I am facing while update the state and return the response in the same function. lets take example of fabcar , If i am adding new car in db.. and want to return the response , I am not getting response.. the code is for adding and getting response is- async createCar(ctx, carNumber, make, model, color, owner) { console.info('============= START : Create Car ==========='); const car = { color, docType: 'car', make, model, owner, }; await ctx.stub.putState(carNumber, Buffer.from(JSON.stringify(car))); return "car "+carNumber+" added successfully"; }

AnilKharabe (Mon, 15 Jul 2019 06:45:11 GMT):
docker exec cli peer chaincode invoke -C mychannel -n fabcar -c '{"Args":["createCar", "99", "xys", "honda","blue","Anil"]}'

K1L14N (Mon, 15 Jul 2019 08:56:52 GMT):
Hello, is there a Go API similar to GetStateByRange to apply a method for a set of index (similarly to [...index].forEach) ?

PulkitSarraf (Mon, 15 Jul 2019 10:32:35 GMT):
Has joined the channel.

PulkitSarraf (Mon, 15 Jul 2019 10:32:36 GMT):
Hi i want to know that can we a new orderer in the running network when using etcdraft ordering service

PulkitSarraf (Mon, 15 Jul 2019 10:41:18 GMT):
First install the new chaincode usinf the admin card and then upgrade the network with the new version.

PulkitSarraf (Mon, 15 Jul 2019 10:41:45 GMT):
Version is just an increment in the of previous version

PulkitSarraf (Mon, 15 Jul 2019 10:43:28 GMT):
composer network install -a -c composer network upgrade -n -V -c

JuanD 10 (Mon, 15 Jul 2019 10:51:32 GMT):
Anyone recommends a complete tutorial to learn fabric from scratch to web app?

K1L14N (Mon, 15 Jul 2019 11:04:13 GMT):
fabric-samples repo

JuanD 10 (Mon, 15 Jul 2019 11:05:06 GMT):
Well, they are not from scratch. Those are samples to play with

K1L14N (Mon, 15 Jul 2019 11:06:20 GMT):
the code is well documented, i think it's the best tutorial

K1L14N (Mon, 15 Jul 2019 11:06:36 GMT):
or do you prefer a codethrough ?

JuanD 10 (Mon, 15 Jul 2019 11:07:59 GMT):
It would be nice a codethrough tutorial

JuanD 10 (Mon, 15 Jul 2019 11:08:47 GMT):
I've watched the ones from Horea Porutiu. Following them are easy, but starting from scratch mostly impossible with my knowledge

K1L14N (Mon, 15 Jul 2019 11:09:12 GMT):
Can the OSN know all the content ? if so how a private channel do to hide content ?

K1L14N (Mon, 15 Jul 2019 11:11:11 GMT):
i haven't found from scratch tutorials especially for writing config files :( connecting blockchain through the SDK is pretty easy tho

JuanD 10 (Mon, 15 Jul 2019 11:18:41 GMT):
Yeah...

JuanD 10 (Mon, 15 Jul 2019 11:19:09 GMT):
Is composer enough for developing a complex network?

PulkitSarraf (Mon, 15 Jul 2019 11:24:53 GMT):
Anyone added an orderer using etcdraft protocol in a running network

PulkitSarraf (Mon, 15 Jul 2019 11:25:44 GMT):
i am getting an error when i modify the config.json file and update the channel with new orderer address and its tls certs

PulkitSarraf (Mon, 15 Jul 2019 11:26:06 GMT):
083 Deactivating node 6 in channel firstchannel with endpoint of orderer6.testing.wakandi.com:7050 due to TLS certificate change

PulkitSarraf (Mon, 15 Jul 2019 11:26:06 GMT):
083 Deactivating node 6 in channel firstchannel with endpoint of orderer6.example.com:7050 due to TLS certificate change

Abrara (Mon, 15 Jul 2019 11:31:32 GMT):
Hi everyone, still fishing for answers on my `endorsment error: txid exists` issue: detailed description here https://stackoverflow.com/questions/56954847/hyperledger-fabric-endorsement-failing-txid-exists

MattV 5 (Mon, 15 Jul 2019 12:05:41 GMT):
hello, I'm testing my REST API server - written using a balance-transfer example. The problem is, I cannot enroll organisation and users calling rest server externally, but I'm able to do the same thing sending POST request from an internal server using localhost. What is even more interesting that after enrolling users to organisations I'm able to join channels, install and instantiate chaincodes etc. _*catch error from helper.js_ ``` 0|app | [2019-07-12 12:16:41.509] [ERROR] Helper - Failed to get registered user: Mautas with error: Error: Invalid common connection profile due to missing configuration data 0|app | [2019-07-12 12:16:41.510] [DEBUG] Node-Server - -- returned from registering the username Jim for organization Org1 0|app | [2019-07-12 12:16:41.510] [DEBUG] Node-Server - Failed to register the username Test-user-1 for organization Test-org1 with::failed Error: Invalid common connection profile due to missing configuration data ``` *Does anyone have any ideas?* Any suggestions would be appreciated :slight_smile:

abityildiz (Mon, 15 Jul 2019 12:53:33 GMT):

Clipboard - July 15, 2019 3:52 PM

vsadriano (Mon, 15 Jul 2019 13:10:51 GMT):
Hi! Where can I get fabric dashboard samples for grafana?

vsadriano (Mon, 15 Jul 2019 13:10:51 GMT):
Hi! Where can I get fabric dashboard samples for grafana? Is there an "oficial repo" for this?

K1L14N (Mon, 15 Jul 2019 13:22:07 GMT):
for a poc composer is good but there are too many abstractions for a complex network i think

santmukh (Mon, 15 Jul 2019 13:39:38 GMT):
Has joined the channel.

florianc (Mon, 15 Jul 2019 13:43:44 GMT):
I approve what K1L14N says. Easy for starting, useless when you get into real stuff. From my experience, you should even skip composer. You'll lose time if what you want to do is complex.

dcof (Mon, 15 Jul 2019 14:16:19 GMT):
As far as i have understood it, hyperledger composer should speed up the developing of applications running on the fabric network, right? I thought the network itself is a configuration thing based on docker compose and / or docker swarm or kubernetes? Did i mixed things up, but i thought building the network and building applications running on it are two more or less separated things.

florianc (Mon, 15 Jul 2019 14:20:00 GMT):
Composer allows you to develop very fast chaincodes. Moreover, as you said, it allows you to generate a "template" from your composer code. But the problem is when you need to use specific stuff like private data collections, you cannot. Moreover, Composer won't get any major update in the future (at least from what I know based on latest news I have). They will only make it compatible with next version of fabric, but that's it. Finally, as someone said above, interacting directly with fabric is not hard. Just use one of the SDK. The hardest part is to understand the logic of the SDK, but when you get it, it's pretty straight forward.

MatteoLinear (Mon, 15 Jul 2019 14:22:18 GMT):
Regarding multiple chaincode installation on peer,you bring up a network with the path to the chaincode on the cli(in the docker-compose.yml file),but what if i wanted to add a chaincode that wasnt in that path?do i have to add it in the compose.yml file and bring up the network again?

dcof (Mon, 15 Jul 2019 14:24:37 GMT):
Ah okay, thanks for the clarification!

davidkel (Mon, 15 Jul 2019 14:25:28 GMT):
Composer is not recommended for any sort of production deployment. Also it will only work with Fabric V1. It will not be updated to work with Fabric V2. I highly recommend not to invest any time now in composer and to go straight into looking at the programming models now available in fabric 1.4.

K1L14N (Mon, 15 Jul 2019 14:31:01 GMT):
you can access your docker container and bind volumes. i don't know if this is the best practice tho, someone to confirm/correct ?

ahmad-raza (Mon, 15 Jul 2019 14:43:33 GMT):
Hi can we change domain and port nos of running components of fabric network?

benlongstaff (Mon, 15 Jul 2019 15:39:39 GMT):
when i run curl -sSL http://bit.ly/2ysbOFE | bash -s im getting ==> FABRIC IMAGE: peer Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=hyperledger%2Ffabric-peer&tag=1.4.1: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/hyperledger/fabric-peer:1.4.1/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

medikent (Mon, 15 Jul 2019 16:08:11 GMT):
I'd like to understand the user model and key provisioning workflow for Fabric users provisioned from Fabric CA. I am trying to determine whether the keys can be securely moved to a end-user mobile device or if a server-based custodial model is more appropriate and idiomatic for the Fabric world.

rhall9090 (Mon, 15 Jul 2019 17:51:19 GMT):
Has joined the channel.

ramks (Mon, 15 Jul 2019 18:34:14 GMT):
Has joined the channel.

ramks (Mon, 15 Jul 2019 18:34:15 GMT):
Hi all, I have a fabric question. I create a channel - channel1 with org org1. Now I enroll a new additional admin for the org and hence a new MSP. I also update system channel to add the msp to the system channel. Now, can i submit transactions to channel1 with the new MSP. Or should i again submit a configtx to make it recognize the new MSP.

jyhong (Tue, 16 Jul 2019 00:01:05 GMT):
channel

Mindbloq (Tue, 16 Jul 2019 01:49:15 GMT):
We have setup distributed ledger network with 5 ZK, 6 KF, and 7 ODNs. 5 Channels were Created and in one channel we have around 165 million transactions. Per Channel one topic with one partition were created. All of sudden one Kafka node crashed with disk full and same node is a leader for that topic partition. When node brought up again without the persistent volume. The Kafka nodes are out of sync and the channel is not coming up. How to restore the network ? Or What are different disaster recovery methods that we can look for?

MatteoLinear (Tue, 16 Jul 2019 07:13:00 GMT):
So you say i should be able to mount the folder on the running container?

Mindbloq (Tue, 16 Jul 2019 07:41:09 GMT):
We have setup distributed ledger network with 5 ZK, 6 KF, and 7 ODNs. 5 Channels were Created and in one channel we have around 165 million transactions. Per Channel one topic with one partition were created. All of sudden one Kafka node crashed with disk full and same node is a leader for that topic partition. When node brought up again without the persistent volume. The Kafka nodes are out of sync and the channel is not coming up. How to restore the network ? Or What are different disaster recovery methods that we can look for?

Mindbloq (Tue, 16 Jul 2019 07:46:22 GMT):
Can somebody respond on this pls

RahulEth (Tue, 16 Jul 2019 08:34:11 GMT):
hii @Mindbloq if your one kafka is down another one should become the leader through leader election mechanism

RahulEth (Tue, 16 Jul 2019 08:34:52 GMT):
@Mindbloq could you share your kafka config file

RahulEth (Tue, 16 Jul 2019 08:35:48 GMT):
follow below link for disaster recovery https://medium.com/@rsripathi781/backup-disaster-recovery-in-hyperledger-fabric-ea9c7693d637

RahulEth (Tue, 16 Jul 2019 08:36:20 GMT):
https://medium.com/@jariarud/hyperledger-fabric-backup-and-restore-3263561e259e

heenas06 (Tue, 16 Jul 2019 08:41:32 GMT):
Has joined the channel.

IsaSec (Tue, 16 Jul 2019 09:11:38 GMT):
Has joined the channel.

IsaSec (Tue, 16 Jul 2019 09:11:45 GMT):
Hello, I was trying to find explanation why orderer should be under separate organization Orderer, or maybe not necessarily? This approach was promoted in fabric-samples, but could I create orderers within peers organizations? What are prons and cons of separate orderer org?

yacovm (Tue, 16 Jul 2019 09:29:45 GMT):
@IsaSec that's indeed the recommended setup

yacovm (Tue, 16 Jul 2019 09:30:20 GMT):
Peers deal with business logic and orderers do consensus, and it's better to separate administration of the two from security reasons

Saif_Ali_Kamal (Tue, 16 Jul 2019 09:32:34 GMT):
Has joined the channel.

IsaSec (Tue, 16 Jul 2019 09:52:26 GMT):
ok, but could CA of OrdererOrg be associated with CA of one of PeerOrg which I want to be a root CA? Were I can setup this? From security reasons orderers would run on different infrastructure but would be controlled by one PeerOrg. Is it right?

yacovm (Tue, 16 Jul 2019 09:54:40 GMT):
nope, it can't. a CA actually defines its organization

yacovm (Tue, 16 Jul 2019 09:55:17 GMT):
> rom security reasons orderers would run on different infrastructure but would be controlled by one PeerOrg. Is it right? They would be run with different certificate chain, but they can be controlled by the same company

IsaSec (Tue, 16 Jul 2019 09:58:14 GMT):
I read in documentation of Ordering Service - "Just like peers, ordering nodes belong to an organization. And similar to peers, a separate Certificate Authority (CA) should be used for each organization. Whether this CA will function as the root CA, or whether you choose to deploy a root CA and then intermediate CAs associated with that root CA, is up to you."

IsaSec (Tue, 16 Jul 2019 09:59:40 GMT):
How can I setup root CA and intermediate CAs?

yacovm (Tue, 16 Jul 2019 10:00:03 GMT):
what do you mean how?

someguy (Tue, 16 Jul 2019 10:07:47 GMT):
hello, did anyone tryed to setup multi node of hyperledger fabric using fabric-starter from altoros? Im having a issue and i cant fix it

someguy (Tue, 16 Jul 2019 10:09:10 GMT):
Im trying to generate the anchor peers but It gives me an error It shoulndt. ERROR: .FileNotFoundError: [Errno 2] No such file or directory: './dockercompose/docker-compose-blockchain-01.yaml'

someguy (Tue, 16 Jul 2019 10:09:29 GMT):
because my path is right, and the file and directory really exist

abityildiz (Tue, 16 Jul 2019 10:11:40 GMT):

Clipboard - July 16, 2019 1:11 PM

someguy (Tue, 16 Jul 2019 10:12:53 GMT):
"/home/####/go/fabric-starter/dockercompose/docker-compose-blockchain-01.yaml"

shakeyblakey (Tue, 16 Jul 2019 10:41:32 GMT):
Has joined the channel.

thiagooliveira1985 (Tue, 16 Jul 2019 11:54:51 GMT):
Has joined the channel.

thiagooliveira1985 (Tue, 16 Jul 2019 11:54:52 GMT):
Olá pessoal, estou construindo uma aplicação e tenho uma rede blockchain instalada na ibm cloud. Eu posso realizar as transações somente com restfull ou eu preciso instalar Hyperledge Fabric para escrever registros no livro razão? Comecei aprender sobre blockchain agora e não sei como começar :(

thiagooliveira1985 (Tue, 16 Jul 2019 11:55:13 GMT):
Hello everyone, I'm building an application and I have a blockchain network installed on the ibm cloud. Can I perform the transactions only with restfull or do I need to install Hyperledge Fabric to write records in the ledger? I started learning about blockchain now and I do not know how to start it :(

mastersingh24 (Tue, 16 Jul 2019 11:59:32 GMT):
Oye! Precisa usar os SDKs do Fabric

mastersingh24 (Tue, 16 Jul 2019 11:59:32 GMT):
Oye! Precisa usar os SDKs do Fabric (Hi. You need to use the Fabric SDKs)

thiagooliveira1985 (Tue, 16 Jul 2019 12:02:55 GMT):
Is there a good tutorial ?

HritikGupta (Tue, 16 Jul 2019 12:04:11 GMT):
If you're a node developer, this has some boiler plate code https://github.com/hyperledger/fabric-sdk-node. Also checkout the documentation here https://fabric-sdk-node.github.io/release-1.4/index.html

thiagooliveira1985 (Tue, 16 Jul 2019 12:04:36 GMT):
Thank you very much

thiagooliveira1985 (Tue, 16 Jul 2019 12:09:09 GMT):
Im a noob on nodejs, lol I started to learn a few days ago and I do not speak english so well... Are there requiriments to install clone it?

florianc (Tue, 16 Jul 2019 12:20:53 GMT):
It is a package. You can install this package via npm for example. Once installed, you can use it into your nodejs scripts.

mastersingh24 (Tue, 16 Jul 2019 12:40:23 GMT):
I can read (Brazilian) Portuguese fairly well ;)

thiagooliveira1985 (Tue, 16 Jul 2019 13:13:59 GMT):
Which is the npm package?

florianc (Tue, 16 Jul 2019 13:23:12 GMT):
The link has been given to you above for the documentation. There are actually 3 packages: https://www.npmjs.com/package/fabric-ca-client https://www.npmjs.com/package/fabric-network https://www.npmjs.com/package/fabric-client Stick to fabric-network for basic stuff. If you need more specific functions, you'll have to go into fabric-client until its functionalities have been implmented into fabric-network.

dijaa (Tue, 16 Jul 2019 13:33:38 GMT):
Has joined the channel.

dijaa (Tue, 16 Jul 2019 13:33:39 GMT):
Hello, i'm working on a blockchain application with hyperledger fabric, and i want to know what files i should code in addition to script.js and model.cto and permessions file, there is any other files to add in my project?

thiagooliveira1985 (Tue, 16 Jul 2019 13:33:48 GMT):
ok I will try thank you

dijaa (Tue, 16 Jul 2019 13:34:38 GMT):
Is here any one that could help me please?

thiagooliveira1985 (Tue, 16 Jul 2019 13:47:21 GMT):
Hi

thiagooliveira1985 (Tue, 16 Jul 2019 13:47:59 GMT):
I tried to install fabric-network and got this error in rhel8:

thiagooliveira1985 (Tue, 16 Jul 2019 13:48:37 GMT):

Captura de Tela 2019-07-16 às 10.48.13.png

thiagooliveira1985 (Tue, 16 Jul 2019 13:49:05 GMT):
Do you know what it means?

thiagooliveira1985 (Tue, 16 Jul 2019 13:49:29 GMT):
In mac os i got the same error

Abrara (Tue, 16 Jul 2019 13:49:35 GMT):
Hello, I have a problem where the endorsement is sent twice to the same peer, did anyone encounter that? (related to: https://stackoverflow.com/questions/56954847/hyperledger-fabric-endorsement-failing-txid-exists?noredirect=1#comment100607413_56954847) `2019-07-16T13:19:48.801Z - debug: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G1:0 - start 2019-07-16T13:19:48.802Z - debug: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G1:0 - send endorsement to peer0.org1.com:7051 2019-07-16T13:19:48.802Z - debug: [Remote.js]: getUrl::grpcs://localhost:7051 2019-07-16T13:19:48.802Z - debug: [Peer.js]: sendProposal - Start ----peer0.org1.com:7051 grpcs://localhost:7051 2019-07-16T13:19:48.802Z - debug: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G0:1 - start 2019-07-16T13:19:48.802Z - debug: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G0:1 - send endorsement to peer0.org1.com:7051`

florianc (Tue, 16 Jul 2019 14:03:49 GMT):
This is related to your system and npm. This error is very well documented on Internet.

thiagooliveira1985 (Tue, 16 Jul 2019 14:04:59 GMT):
I got a fix to the error....

thiagooliveira1985 (Tue, 16 Jul 2019 14:05:52 GMT):
Now fabric-network is installed, is there any tutorial to learn how to connect in ibm cloud network ?

florianc (Tue, 16 Jul 2019 14:06:38 GMT):
Yes, on ibm blockchain platform documentation.

thiagooliveira1985 (Tue, 16 Jul 2019 14:08:48 GMT):
I mean using fabric-network...

florianc (Tue, 16 Jul 2019 14:09:01 GMT):
My asnwer is still correct.

florianc (Tue, 16 Jul 2019 14:09:13 GMT):
https://cloud.ibm.com/docs/services/blockchain/howto?topic=blockchain-ibp-console-app#ibp-console-app-invoke

thiagooliveira1985 (Tue, 16 Jul 2019 14:09:25 GMT):
Thank :)

abityildiz (Tue, 16 Jul 2019 14:12:33 GMT):

Clipboard - July 16, 2019 5:12 PM

abityildiz (Tue, 16 Jul 2019 14:12:33 GMT):

Clipboard - July 16, 2019 5:12 PM

thiagooliveira1985 (Tue, 16 Jul 2019 14:32:09 GMT):
Please, is there any sample project?

mania06 (Tue, 16 Jul 2019 14:33:22 GMT):
Hello, I've posted my problem last week, and haven't figured it out.. After a full restart, i get errors in orderer logs: ```[orderer/consensus/kafka] setupChannelConsumerForChannel -> INFO 019 [channel: ] Setting up the channel consumer for this channel (start offset: 14370)... ... [common/deliver] deliverBlocks -> WARN 134 [channel: ] Rejecting deliver request for 10.0.2.245:56034 because of consenter error [common/deliver] deliverBlocks -> WARN 135 [channel: ] Rejecting deliver request for 10.0.2.9:60026 because of consenter error [common/deliver] deliverBlocks -> WARN 136 [channel: ] Rejecting deliver request for 10.0.2.28:54928 because of consenter error [common/deliver] Handle -> WARN 137 Error reading from 10.0.2.245:56034: rpc error: code = Canceled desc = context canceled [common/deliver] Handle -> WARN 138 Error reading from 10.0.2.9:60026: rpc error: code = Canceled desc = context canceled [common/deliver] Handle -> WARN 139 Error reading from 10.0.2.28:54928: rpc error: code = Canceled desc = context canceled```

mania06 (Tue, 16 Jul 2019 14:33:22 GMT):
Hello, I've posted my problem last week, and haven't figured it out.. After a full restart, i get errors in orderer logs: ```[orderer/consensus/kafka] setupChannelConsumerForChannel -> INFO 019 [channel: ] Setting up the channel consumer for this channel (start offset: 14370)... ... [common/deliver] deliverBlocks -> WARN 134 [channel: ] Rejecting deliver request for 10.0.2.245:56034 because of consenter error [common/deliver] deliverBlocks -> WARN 135 [channel: ] Rejecting deliver request for 10.0.2.9:60026 because of consenter error [common/deliver] deliverBlocks -> WARN 136 [channel: ] Rejecting deliver request for 10.0.2.28:54928 because of consenter error [common/deliver] Handle -> WARN 137 Error reading from 10.0.2.245:56034: rpc error: code = Canceled desc = context canceled [common/deliver] Handle -> WARN 138 Error reading from 10.0.2.9:60026: rpc error: code = Canceled desc = context canceled [common/deliver] Handle -> WARN 139 Error reading from 10.0.2.28:54928: rpc error: code = Canceled desc = context canceled``` Can someone help me on this?

usama7777 (Tue, 16 Jul 2019 18:10:27 GMT):
Has joined the channel.

usama7777 (Tue, 16 Jul 2019 18:10:27 GMT):
hi , I just cloned the fabric git directory and ran the bootstrap script. Then I tried running the first network and got the error. Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded The orderer exited right before the end to end script started and logs of orderer show : [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_4_2 is required but not supported: Orderer capability V1_4_2 is required but not supported panic: [channel byfn-sys-channel] config requires unsupported orderer capabilities: Orderer capability V1_4_2 is required but not supported: Orderer capability V1_4_2 is required but not supported Edit: it works If I reverse the changes made to the configtx.yaml in first network folder made 3 days ago.

AjayKalola (Wed, 17 Jul 2019 02:46:13 GMT):
Has joined the channel.

Utsav_Solanki (Wed, 17 Jul 2019 04:53:48 GMT):
does CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE variable required in orderer configuration file

liujianglin1 (Wed, 17 Jul 2019 05:25:24 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Wed, 17 Jul 2019 06:53:29 GMT):
Hello, does anyone know a tutorial to implement a network of multiple nodes with kubernetes?

Aniket.1 (Wed, 17 Jul 2019 07:15:01 GMT):
Hello Everyone, can someone suggest what can be good configuration to setup a peer & orderer on Cloud to achieve above average TPS performance ?

harsh-98 (Wed, 17 Jul 2019 10:25:39 GMT):
```Error: endorsement failure during query. response: status:500 message:"cannot retrieve package for chaincode mycc/1.0, error open /var/hyperledger/production/chaincodes/mycc.1.0: no such file or directory"``` I have added a new org to network and chaincode 2.0 is there

harsh-98 (Wed, 17 Jul 2019 10:26:05 GMT):
peer chaincode query -C mychannel -n mycc.2.0 -c '{"Args":["fcn","a"]}' -- command i am using form querying

harsh-98 (Wed, 17 Jul 2019 10:26:05 GMT):
peer chaincode query -C mychannel -n mycc.2.0 -c '{"Args":["fcn","a"]}' -- command i am using form querying

harsh-98 (Wed, 17 Jul 2019 10:26:05 GMT):
peer chaincode query -C mychannel -n mycc.2.0 -c '{"Args":["fcn","a"]}' -- command i am using for querying

tballast (Wed, 17 Jul 2019 10:41:28 GMT):
When using the Java SDK, I wish to instantiate chaincode on a channel, and I have an endorsement policy that requires that it is endorsed by both Org1 and Org2. I am running my client from the context of Org1, which will not know about the private keys of Org2. I set up my channel and attach the Org 1 peers as well as an Org2 peer, however it always fails the endorsement stage. In the logs of the docker containers I see the following: ``` ... 2019-07-17 10:36:35.868 UTC [cauthdsl] func1 -> DEBU b8de 0xc0024b0660 gate 1563359795868828340 evaluation starts 2019-07-17 10:36:35.868 UTC [cauthdsl] func2 -> DEBU b8df 0xc0024b0660 signed by 0 principal evaluation starts (used [false]) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e0 0xc0024b0660 processing identity 0 with bytes of aa4b30 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e1 0xc0024b0660 identity 0 does not satisfy principal: This identity is not an admin 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e2 0xc0024b0660 principal evaluation fails 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e3 0xc0024b0660 signed by 1 principal evaluation starts (used [false]) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e4 0xc0024b0660 processing identity 0 with bytes of aa4b30 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e5 0xc0024b0660 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected Org2MSP, got Org1MSP) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e6 0xc0024b0660 principal evaluation fails 2019-07-17 10:36:35.869 UTC [cauthdsl] func1 -> DEBU b8e7 0xc0024b0660 gate 1563359795868828340 evaluation fails 2019-07-17 10:36:35.869 UTC [chaincode] handleMessage -> DEBU b8e8 [6cd4345c] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready 2019-07-17 10:36:35.869 UTC [chaincode] Notify -> DEBU b8e9 [6cd4345c] notifying Txid:6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4, channelID:www.reportix.com 2019-07-17 10:36:35.870 UTC [chaincode] Execute -> DEBU b8ea Exit 2019-07-17 10:36:35.870 UTC [endorser] callChaincode -> INFO b8eb [www.reportix.com][6cd4345c] Exit chaincode: name:"lscc" (153ms) 2019-07-17 10:36:35.870 UTC [lockbasedtxmgr] GetTxSimulationResults -> DEBU b8ec Simulation completed, getting simulation results 2019-07-17 10:36:35.870 UTC [lockbasedtxmgr] Done -> DEBU b8ed Done with transaction simulation / query execution [6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4] 2019-07-17 10:36:35.870 UTC [endorser] SimulateProposal -> DEBU b8ee [www.reportix.com][6cd4345c] Exit 2019-07-17 10:36:35.870 UTC [endorser] ProcessProposal -> ERRO b8ef [www.reportix.com][6cd4345c] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4 2019-07-17 10:36:35.871 UTC [lockbasedtxmgr] Done -> DEBU b8f0 Done with transaction simulation / query execution [6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4] ``` which is complaining about not having an Org2 identity, however I'm not sure how I'm supposed to get an Org2 identity if I'm Org 1. Does anyone know?

tballast (Wed, 17 Jul 2019 10:41:28 GMT):
When using the Java SDK, I wish to instantiate chaincode on a channel, and I have an endorsement policy that requires that it is endorsed by both Org1 and Org2. I am running my client from the context of Org1, which will not know about the private keys of Org2. I set up my channel and attach the Org 1 peers as well as an Org2 peer, however it always fails the endorsement stage. In the logs of the docker containers I see the following: ``` ... 2019-07-17 10:36:35.868 UTC [cauthdsl] func1 -> DEBU b8de 0xc0024b0660 gate 1563359795868828340 evaluation starts 2019-07-17 10:36:35.868 UTC [cauthdsl] func2 -> DEBU b8df 0xc0024b0660 signed by 0 principal evaluation starts (used [false]) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e0 0xc0024b0660 processing identity 0 with bytes of aa4b30 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e1 0xc0024b0660 identity 0 does not satisfy principal: This identity is not an admin 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e2 0xc0024b0660 principal evaluation fails 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e3 0xc0024b0660 signed by 1 principal evaluation starts (used [false]) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e4 0xc0024b0660 processing identity 0 with bytes of aa4b30 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e5 0xc0024b0660 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected Org2MSP, got Org1MSP) 2019-07-17 10:36:35.869 UTC [cauthdsl] func2 -> DEBU b8e6 0xc0024b0660 principal evaluation fails 2019-07-17 10:36:35.869 UTC [cauthdsl] func1 -> DEBU b8e7 0xc0024b0660 gate 1563359795868828340 evaluation fails ... 2019-07-17 10:36:35.870 UTC [endorser] ProcessProposal -> ERRO b8ef [www.reportix.com][6cd4345c] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4 2019-07-17 10:36:35.871 UTC [lockbasedtxmgr] Done -> DEBU b8f0 Done with transaction simulation / query execution [6cd4345c7ecb09121adaa1e1d345eddb633397972c4e20b19c393ed9fa3649c4] ``` which is complaining about not having an Org2 identity, however I'm not sure how I'm supposed to get an Org2 identity if I'm Org 1. Does anyone know?

harsh-98 (Wed, 17 Jul 2019 11:06:22 GMT):
``` ```

harsh-98 (Wed, 17 Jul 2019 11:06:22 GMT):
``` failed to execute transaction f683cb749244ce8bec724dbf5e2d83cb88a8d02a1863bcabd7dc2e39d2dcc6f7: [channel mychannel] could not launch chaincode mycc:2.0: error starting container: error starting container: API error (404): network _byfn not found" ```

harsh-98 (Wed, 17 Jul 2019 11:06:22 GMT):
``` failed to execute transaction f683cb749244ce8bec724dbf5e2d83cb88a8d02a1863bcabd7dc2e39d2dcc6f7: [channel mychannel] could not launch chaincode mycc:2.0: error starting container: error starting container: API error (404): network _byfn not found" ``` When added new org to network

tballast (Wed, 17 Jul 2019 11:09:45 GMT):
Normally you would at least need a colon for the version. ie. `peer chaincode query -C mychannel -n mycc:2.0 -c '{"Args":["fcn","a"]}'`

harsh-98 (Wed, 17 Jul 2019 11:10:19 GMT):
I have figured that one

tballast (Wed, 17 Jul 2019 11:10:21 GMT):
Furthermore, are your versions correct? in the error message it talks about v1 but you're using v2

harsh-98 (Wed, 17 Jul 2019 11:10:41 GMT):
I am adding a new org to the network

harsh-98 (Wed, 17 Jul 2019 11:11:00 GMT):
Now the current error is: ``` failed to execute transaction f683cb749244ce8bec724dbf5e2d83cb88a8d02a1863bcabd7dc2e39d2dcc6f7: [channel mychannel] could not launch chaincode mycc:2.0: error starting container: error starting container: API error (404): network _byfn not found" ```

harsh-98 (Wed, 17 Jul 2019 11:11:17 GMT):
I am using 1.4 and upgrade to 2.0 version of chaincode

tballast (Wed, 17 Jul 2019 11:14:07 GMT):
Not 100% sure about this but make sure that in your docker files your networks are set up correctly. like, at the top of mine I have something like this: ``` networks: mynetwork: ``` And then all the containers you want to be able to talk to one another should be on this network. So, in the service definition for them you'd add: ``` peer0.org1.example.com: ... networks: - mynetwork ```

tballast (Wed, 17 Jul 2019 11:14:57 GMT):
Looks like yours is `_byfn` which seems slightly odd, so jsut amake sure it's correct.

tballast (Wed, 17 Jul 2019 11:14:57 GMT):
Looks like yours is `_byfn` which seems slightly odd, so just make sure it's correct.

harsh-98 (Wed, 17 Jul 2019 11:46:31 GMT):
I am using an external network, net_byfn. Still it is showing _byfn ``` networks: outside: external: name: net_byfn peer0.org1.example.com: networks: - outside ```

tdonovic (Wed, 17 Jul 2019 12:21:18 GMT):
Has joined the channel.

tdonovic (Wed, 17 Jul 2019 12:21:18 GMT):
Hey there. Wondering if you have any tips for developing chaincode without tearing down the byfn network between each test run? Can I just instantiate the chaincode with a newer version?

tballast (Wed, 17 Jul 2019 12:22:07 GMT):
@tdonovic look into dev-mode. It allows you to spin up your own chaincode container, and run the code manually. you only have to install/instantiate once.

tballast (Wed, 17 Jul 2019 12:22:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/peer-chaincode-devmode.html

tdonovic (Wed, 17 Jul 2019 12:22:38 GMT):
Im testing out private data though, can I do that within devmode?

tdonovic (Wed, 17 Jul 2019 12:23:21 GMT):
I was having issues passing in the permissions json file upon init, but I guess I can give it another go

tballast (Wed, 17 Jul 2019 12:27:33 GMT):
Apologies, that I don't know.

tdonovic (Wed, 17 Jul 2019 12:29:27 GMT):
@usama7777 I had the same issue. Use the kafka orderer instead, it seems to work.

tdonovic (Wed, 17 Jul 2019 12:42:55 GMT):
@tballast Fyi, something like this `peer chaincode upgrade -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n tom -v 3.1 -c '{"Args":["init"]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config $GOPATH/src/github.com/chaincode/tom/conf.json`

tdonovic (Wed, 17 Jul 2019 12:43:13 GMT):
just swap instantiate for upgrade and bump the version number

dijaa (Wed, 17 Jul 2019 13:13:32 GMT):
Hello everyone, I'm working on hyperledger fabric could anyone please, tell me how to import a file to the ledger of blockchain, because i need to read from that file.

florianc (Wed, 17 Jul 2019 13:23:44 GMT):
If the file is located on remote storage, you could query the storage for the file (like with http). But not really recommended if the file changes a lot because of endorsement required determinism.

hengfun (Wed, 17 Jul 2019 13:46:18 GMT):
Hi does anyone know if it is possible to edit fabric/-ccenv

dijaa (Wed, 17 Jul 2019 13:51:36 GMT):
Yeah the file change always

hengfun (Wed, 17 Jul 2019 13:52:19 GMT):
This is the container that runs the "isolated chaincode env"

hengfun (Wed, 17 Jul 2019 13:52:21 GMT):
?

Khaled.MH (Wed, 17 Jul 2019 14:03:30 GMT):

Clipboard - July 17, 2019 3:02 PM

HarryLovesCode (Wed, 17 Jul 2019 14:51:06 GMT):
Has joined the channel.

HarryLovesCode (Wed, 17 Jul 2019 14:51:08 GMT):
Hello, I'm struggling to get Cello up and running. On multiple machines, it says "cello-initial | python: can't open file '/app/initial.py': [Errno 2] No such file or directory" as the final error when running SERVER_PUBLIC_IP=XXX.XX.XXX.XX make start

ravinayag (Wed, 17 Jul 2019 15:45:46 GMT):
Has joined the channel.

afifield (Wed, 17 Jul 2019 16:58:03 GMT):
Has joined the channel.

harsh-98 (Wed, 17 Jul 2019 17:45:33 GMT):
I am getting ``` Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': initializing channelconfig failed: could not create channel Application sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority ```

tdonovic (Wed, 17 Jul 2019 22:24:14 GMT):
did you generate the key material with ./bynf generate?

harsh-98 (Wed, 17 Jul 2019 22:25:04 GMT):
Thanks @tdonovic i solved that one,

tdonovic (Wed, 17 Jul 2019 22:25:16 GMT):
How did you solve it?

harsh-98 (Wed, 17 Jul 2019 22:27:18 GMT):
I was trying to add a new org to network with org being to different server and different docker engine, so for new org's configtx anchor peer had peer.org3.example.com which is not valid, so I changed it to ip address of server and exposed the port to internet

tdonovic (Wed, 17 Jul 2019 22:30:59 GMT):
Nice, thanks for the info :)

eujungkim (Thu, 18 Jul 2019 01:03:01 GMT):
Hello, dose anyone have a guide how to add new organization to raft ordering service? (not new node of existing organization which explained in https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html#reconfiguration)

ashish.cppdev (Thu, 18 Jul 2019 02:31:11 GMT):
Has joined the channel.

ashish.cppdev (Thu, 18 Jul 2019 02:31:13 GMT):
Hi - how do I create a ticket in HL JIRA for an issue I am having with byfn.sh

DUO1510 (Thu, 18 Jul 2019 03:12:02 GMT):
Hello,I want to know difference between common kafka and Fabric kafka,should we choose Fabric kafka ?

DUO1510 (Thu, 18 Jul 2019 03:12:02 GMT):
SERVICE_UNAVAILABLE — backing Kafka cluster has not completed booting; try again later

zacscoding (Thu, 18 Jul 2019 04:23:20 GMT):
Hello, i have a question about genesis block. after created no orgs in consortium and how can i create a new channel ?

zacscoding (Thu, 18 Jul 2019 04:23:53 GMT):
forexample, below is profile section in configtx.yaml Profiles: OrdererGenesis: <<: *ChannelDefaults Orderer: <<: *OrdererDefaults Organizations: - *ordererorg Capabilities: <<: *OrdererCapabilities Consortiums: PlatformConsortium: Organizations: ch1: Consortium: PlatformConsortium <<: *ChannelDefaults Application: <<: *ApplicationDefaults Organizations: - *peerorg1 Capabilities: <<: *ApplicationCapabilities

zacscoding (Thu, 18 Jul 2019 05:00:32 GMT):
or how can i add a member of consortium ??

aleksandar.nasuovski (Thu, 18 Jul 2019 05:43:04 GMT):
Hello, we were deployed hyperledger version 1.3 in kubernetes cluster on ibm with persistent volumes. We noticed if we use persistent volume for CouchDB (stable image) first time to write block on CouchDB worldstate having issuee with latency.

HritikGupta (Thu, 18 Jul 2019 06:38:49 GMT):
Has anyone implemented ZKAT on their network?

tballast (Thu, 18 Jul 2019 07:38:38 GMT):
When installing java chaincode via a java client, it is not possible to set the path for the ChaincodeID, and thus when querying the installation one will find something like this: `Name: examplecc, Version: 0, Id: 4284ecb1faf998d0bafcab130b0e9166b40994aa2a68957244260317044fe66` However, when installing via the CLI one _must_ specify the path, and then the chaincode is identified like this: `Name: examplecc, Version: 3, Path: /opt/gopath/src/github.com/chaincode/javacc, Id: cd911f7005d916f05054fda06ca544572a7ae400017afebb93c738947f225592` This makes them _look_ different to the client even though they're the same. Is there a way to remedy this issue? I can't instantiate at the moment with the client because it thinks that the chaincode installed on each peer is different.

tballast (Thu, 18 Jul 2019 07:38:38 GMT):
When installing java chaincode via a java client, it is not possible to set the path for the ChaincodeID, and thus when querying the installation one will find something like this: `Name: examplecc, Version: 0, Id: 4284ecb1faf998d0bafcab130b0e9166b40994aa2a68957244260317044fe66` However, when installing via the CLI one _must_ specify the path, and then the chaincode is identified like this: `Name: examplecc, Version: 3, Path: /opt/gopath/src/github.com/chaincode/javacc, Id: cd911f7005d916f05054fda06ca544572a7ae400017afebb93c738947f225592` This makes them _look_ different to the client even though they're the same. Is there a way to remedy this issue? I can't instantiate at the moment with the client because it thinks that the chaincode installed on each peer is different.

tballast (Thu, 18 Jul 2019 07:38:38 GMT):
When installing java chaincode via a java client, it is not possible to set the path for the ChaincodeID, and thus when querying the installation one will find something like this: `Name: examplecc, Version: 3, Id: 4284ecb1faf998d0bafcab130b0e9166b40994aa2a68957244260317044fe66` However, when installing via the CLI one _must_ specify the path, and then the chaincode is identified like this: `Name: examplecc, Version: 3, Path: /opt/gopath/src/github.com/chaincode/javacc, Id: cd911f7005d916f05054fda06ca544572a7ae400017afebb93c738947f225592` This makes them _look_ different to the client even though they're the same. Is there a way to remedy this issue? I can't instantiate at the moment with the client because it thinks that the chaincode installed on each peer is different.

harsh-98 (Thu, 18 Jul 2019 08:09:33 GMT):
I want to change provide a ip insert of orderer.example.com to which the peers tries to connect after joining the channel

harsh-98 (Thu, 18 Jul 2019 08:09:33 GMT):
I want to change provide a ip insert of orderer.example.com to which the peers tries to connect after joining the channel ``` Unknown desc = access denied: channel [mychannel] creator org [Org3MSP] - proposal response: ```

SanthoshThomas (Thu, 18 Jul 2019 08:19:36 GMT):
Has joined the channel.

mania06 (Thu, 18 Jul 2019 08:32:03 GMT):
Is there someone able to help me on this please ?

archsule (Thu, 18 Jul 2019 08:59:49 GMT):
Has joined the channel.

archsule (Thu, 18 Jul 2019 08:59:51 GMT):
hello

archsule (Thu, 18 Jul 2019 09:00:18 GMT):
i need to get some details as to how to size my application which is built on hyperledger fabric and hosted on AWS cloud

archsule (Thu, 18 Jul 2019 09:00:53 GMT):
can someone help me with this

ONRising (Thu, 18 Jul 2019 10:16:48 GMT):
Hello, is there any good documentation about configtx.yaml files?

dcof (Thu, 18 Jul 2019 10:41:47 GMT):
For starting, you could check out this video https://www.youtube.com/watch?v=nF9fkBuBNpE (Note that its a year old, but the general things are still valid i think). This video along with the example configtx.yaml provided in fabric-samples first-network at least gives you an nice overview.

ONRising (Thu, 18 Jul 2019 10:48:27 GMT):
Thanks, this material seems great!

dcof (Thu, 18 Jul 2019 13:44:26 GMT):
How does the naming of orderers / peers in crypto-config.yaml files affects the crypto-config directory? Are the two directories in this crypto-config always named "ordererOrganizations" and "peerOrganizations" (Is this a hardcoded convention somewhere?). Within these directories, the next directories are named after the domain specified in the crypto-config.yaml, right?

ONRising (Thu, 18 Jul 2019 14:01:17 GMT):
You can see in the source code that "ordererOrganizations" and "peerOrganizations" are indeed hardcoded. I do not know how the naming affects the crypto-config directory, it seems to be irrelevant. The next directories are named after the domain specified in crypto-config.yaml.

ONRising (Thu, 18 Jul 2019 14:01:17 GMT):
You can see in the source code that "ordererOrganizations" and "peerOrganizations" are indeed hardcoded. I do not know how the naming affects the crypto-config directory, it seems to be irrelevant. The next directories are named after the domain specified in crypto-config.yaml. Source code: https://github.com/hyperledger/fabric/blob/release-1.4/common/tools/cryptogen/main.go

dcof (Thu, 18 Jul 2019 14:01:54 GMT):
Thanks!

harsh-98 (Thu, 18 Jul 2019 15:20:22 GMT):
I am trying to register a user after admin register for org3: ``` Failed to register user username: Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'tester' failed in affiliation validation: Failed getting affiliation 'org3.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]] ```

harsh-98 (Thu, 18 Jul 2019 15:42:57 GMT):
Thanks, though I fixed it

icarrascol (Thu, 18 Jul 2019 17:03:02 GMT):
hello everyone, how do you secure the user certificates generated when you enroll people? (considering them being saved in kvs folder), if someone gets access to these certs they can use them to access the ledger data.

walmon (Thu, 18 Jul 2019 17:55:36 GMT):
I saw nobody answered you. Ping me if you'd like to a bit of guidance on migrating. A lot of Composer devs have done already

HylaJaponica (Fri, 19 Jul 2019 01:06:31 GMT):
hello everyone , do you know default blocksize of fabric? and can i edit blocksize or confirmation number?

githubcpc (Fri, 19 Jul 2019 01:53:07 GMT):
How can I remove org from channel or unjoin peer from channel?

githubcpc (Fri, 19 Jul 2019 01:54:53 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html from the page, it seems that it is possible to do this.

FedMan (Fri, 19 Jul 2019 02:57:23 GMT):
Hi everyone, is there a docker for HLF contain peers, order service, Coutch Db etc? a MVP network to start testing

Utsav_Solanki (Fri, 19 Jul 2019 05:13:45 GMT):
while i am accessing HLF docker container of couchdb through url in web browser i am getting connection refuse error

Utsav_Solanki (Fri, 19 Jul 2019 05:13:45 GMT):
while i am accessing HLF docker container of couchdb through public ip and port in web browser i am getting connection refuse error

usama7777 (Fri, 19 Jul 2019 05:34:00 GMT):
Thanks but we should solve the issue in the solo orderer

Utsav_Solanki (Fri, 19 Jul 2019 05:56:19 GMT):
couch

esumit (Fri, 19 Jul 2019 06:51:15 GMT):
Dear All, Is there any body faced issue like this : HyperLedger Fabric SDK Go showing cannot convert nil to type csr.KeyRequest https://stackoverflow.com/questions/57105051/hyperledger-fabric-sdk-go-showing-cannot-convert-nil-to-type-csr-keyrequest

dcof (Fri, 19 Jul 2019 07:31:58 GMT):
Within the docs i found this statement "Just as we add an Org by adding their artifacts and MSP information, you can remove them by reversing the process." from https://hyperledger-fabric.readthedocs.io/en/release-1.4/config_update.html?highlight=Remove%20Organization#editing-a-config maybe this helps

githubcpc (Fri, 19 Jul 2019 07:58:06 GMT):
root@90a3d0eb7b91:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel update -f org2_remove_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA 2019-07-19 07:59:24.796 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/OrdererOrg/MSP not satisfied: signature set did not satisfy policy

githubcpc (Fri, 19 Jul 2019 07:58:38 GMT):
I got this error when I try to remove org from joined channel

esumit (Fri, 19 Jul 2019 08:36:31 GMT):
Any body such issue : ambiguous import: found github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/common/ccprovider in multiple modules:

esumit (Fri, 19 Jul 2019 08:36:52 GMT):
go: extracting github.com/hyperledger/fabric-sdk-go v1.0.0-alpha4 go: extracting github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric v0.0.0-20190718163007-4db5c8227854 build bitbucket.org/everledger/dia-api/cmd/diaapi: cannot load github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/common/ccprovider: ambiguous import: found github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/common/ccprovider in multiple modules: github.com/hyperledger/fabric-sdk-go v1.0.0-alpha4 (/Users/esumit/go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0-alpha4/third_party/github.com/hyperledger/fabric/core/common/ccprovider) github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric v0.0.0-20190718163007-4db5c8227854 (/Users/esumit/go/pkg/mod/github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric@v0.0.0-20190718163007-4db5c8227854/core/common/ccprovider)

esumit (Fri, 19 Jul 2019 08:45:19 GMT):
Not sure, home this error coming again

esumit (Fri, 19 Jul 2019 08:45:20 GMT):
go: copying requirements from ../../Gopkg.lock # github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util /Users/esumit/go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0-alpha4/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type csr.KeyRequest /Users/esumit/go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0-alpha4/internal/github.com/hyperledger/fabric-ca/util/csp.go:132:37: cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest in argument to getBCCSPKeyOpts

dcof (Fri, 19 Jul 2019 08:48:30 GMT):
I have a rather stupid question but i just want to make sure that i understand it correctly: When i'm building a network for multiple organizations, each organization would have their own docker-compose.yaml file for spinning up their peers or start them manually via command line, right? Is there anyone around who can give insights in some best practise, i.e. is docker-compoes the way to go or command line or something completely different?

esumit (Fri, 19 Jul 2019 09:18:18 GMT):
I have done stuff via docker-compose.yml , but done once a while, in my case network was simple , One Org two peers, as close to default network , so can't tell much about best practices,

DavideC (Fri, 19 Jul 2019 10:42:03 GMT):
Has joined the channel.

DavideC (Fri, 19 Jul 2019 10:42:04 GMT):
Hi, everybody. I'm using Hyperledger Fabric + Hyperledger Composer and I have a network formed by 3 Orgs. I added a new Organization and the configuration works well. But when I try to update the endorsement policy upgrading the smart contract, I don't see the effects of the new endorsement policy. I make the update of the endorsement policy from Composer, but I think that the problem could be in Fabric configuration. Do you have any suggestions?

DavideC (Fri, 19 Jul 2019 10:42:04 GMT):
Hi everybody, I'm using Hyperledger Fabric + Hyperledger Composer and I have a network formed by 3 Orgs. I added a new Organization and the configuration works well. But when I try to update the endorsement policy upgrading the smart contract, I don't see the effects of the new endorsement policy. I make the update of the endorsement policy from Composer, but I think that the problem could be in Fabric configuration. Do you have any suggestions?

mania06 (Fri, 19 Jul 2019 11:39:29 GMT):
Is Kafka supposed to have data persistence ?

delao (Fri, 19 Jul 2019 13:28:34 GMT):
The default block configuration is: `Orderer.BatchTimeout: 2s` (The amount of time to wait before creating a batch) `Orderer.BatchSize.MaxMessageCount: 10` ( maximum number of messages ( e.g transactions ) in a block ) `Orderer.BatchSize.AbsoluteMaxBytes: 99MB` ( The absolute maximum number of bytes allowed for the serialized messages in a batch) `Orderer.BatchSize.PreferredMaxBytes: 512 KB` (The preferred maximum number of bytes allowed for the serialized messages in a batch. A message larger than the preferred max bytes will result in a batch larger than preferred max bytes) It is located in the configtx.yaml file

Deepakshinde (Fri, 19 Jul 2019 13:53:08 GMT):
Has joined the channel.

Deepakshinde (Fri, 19 Jul 2019 13:55:42 GMT):
How can i use swagger UI to interact with fabric network using go chaincode ? Also, Need guide to create Rest API endpoints for same.

Deepakshinde (Fri, 19 Jul 2019 13:55:42 GMT):
How can i use swagger UI to interact with fabric network using go chaincode ? Also, Need guide to create node Rest API endpoints for same.

ManojNarne (Fri, 19 Jul 2019 14:55:58 GMT):
Has joined the channel.

ManojNarne (Fri, 19 Jul 2019 14:55:58 GMT):
*Any one here know of how to setup off chain DB(In couchDB)? the data needs to be extracted from fabric 1.2 in Amazon Managed Blockchain*

rhall9090 (Fri, 19 Jul 2019 17:29:03 GMT):
Hi there I've got a silly question about Attribute Based Access Control on Hyperledger Fabric, say I want to enforce an attribute in the chaincode where only some participants in the network can perform a function, do I have to sign the certificates with the admin private key and then give them the certificate with the correct attributes?

ykim 1 (Fri, 19 Jul 2019 18:04:24 GMT):
Has joined the channel.

ykim 1 (Fri, 19 Jul 2019 18:04:25 GMT):
Hi I'm trying to create network with private-data-collection with (https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/marbles02_private/go/marbles_chaincode_private.go) . When ever I put data from org1(has access to both publicCollection and privateCollection) org2 cannot read data from both collection even if org2 has access to public collection

ykim 1 (Fri, 19 Jul 2019 18:04:25 GMT):
Hi I'm trying to create network with private-data-collection with (https://github.com/hyperledger/fabric-samples/blob/release-1.4/chaincode/marbles02_private/go/marbles_chaincode_private.go) . When ever I put data from org1(has access to both publicCollection and privateCollection) org2 cannot read data from both collection even if org2 has access to public collection. I'm getting this error ```Error: endorsement failure during query. response: status:500 message:"Failed to read : GET_STATE failed: transaction ID: e6dc4d09d61f227cba0880689035f887da8d04d07295054212150cf4681e2058: Private data matching public hash version is not available. Public hash version = &version.Height{BlockNum:0x2, TxNum:0x0}, Private data version = (*version.Height)(nil)"``` does anyone have any idea?

ykim 1 (Fri, 19 Jul 2019 18:53:39 GMT):
hmm... I can put data from org1 and org2. and each org can read only data they put. otherwise they are getting error above. I verified they are in same channel( by checking when one org put data, the height of blockchain goes up by 1.)

gregnotso (Fri, 19 Jul 2019 20:44:04 GMT):
@ykim 1 don't have a solution for you but trying to see why i am stuck at a similar juncture what does the log show for your anchor peers?

esumit (Sat, 20 Jul 2019 02:35:25 GMT):
I have found the root cause of that issue, Its like frequent updates on fab-sdk-go , and I applied master fab-sdk-go release to be fetched from Gopkg.toml file. It took me like manually apply various individual fab-sdk-go fix by dates, to figure out which is the best fab-sdk-go version, means that version which won’t give any compilation issue liek above. And when I applied following version of FAB-SDK-Go [FABG-815] make multi-errors on a single line: 56ebf9adac580e7e3251685fe4fe6e793df838dc , https://github.com/hyperledger/fabric-sdk-go/commit/56ebf9adac580e7e3251685fe4fe6e793df838dc It didn't give any error and it worked out. Even I applied for releases like alpha1,alpha2,aplha3 as well for fab-sdk-go, but again various compilation issues.

Utsav_Solanki (Sat, 20 Jul 2019 06:03:11 GMT):
while i am invoking chaincode / querying chiancode, i am getting error as below 2019-07-20T05:53:44.057Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-07-20T05:53:44.059Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-07-20T05:53:44.075Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-07-20T05:53:44.076Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-07-20T05:53:44.076Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:mychannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:mychannel Discovery error:access denied any solution / suggestion ?

Utsav_Solanki (Sat, 20 Jul 2019 06:03:11 GMT):
while i am invoking chaincode / querying chiancode, i am getting error as below 2019-07-20T05:53:44.057Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-07-20T05:53:44.059Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-07-20T05:53:44.075Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-07-20T05:53:44.076Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-07-20T05:53:44.076Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:mychannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:mychannel Discovery error:access denied any solution / suggestion ? thanks in advance

samaganamkarthik (Sat, 20 Jul 2019 09:24:46 GMT):
Has joined the channel.

Bentipe (Sat, 20 Jul 2019 11:44:22 GMT):
Hey guys, I have an error on creating an channel: ``` Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied ``` The orderer says the following ``` WARN 025 [channel: testchannel] Rejecting broadcast of config message from 192.168.0.121:39954 because of error: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied ``` I use this commands inside the peer container: ``` export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/crypto-config/peer/msp/users/admin/msp/ peer channel create -c testchannel -f testchannel.tx --outputBlock testchannel.block --tls --cafile /etc/hyperledger/crypto-config/peer/tls-msp/cacerts/192-168-0-114-7054.pem -o 192.168.0.124:7050 ``` My policies for the channel are the following: ``` Channel: &ChannelDefaults # Policies defines the set of policies at this level of the config tree # For Channel policies, their canonical path is Policies: # Who may invoke the 'Deliver' API Readers: Type: ImplicitMeta Rule: "ANY Readers" # Who may invoke the 'Broadcast' API Writers: Type: ImplicitMeta Rule: "ANY Writers" # By default, who may modify elements at this config level Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" # Capabilities describes the channel level capabilities, see the # dedicated Capabilities section elsewhere in this file for a full # description Capabilities: <<: *ChannelCapabilities ``` I am using etcdraft withe 3 nodes and v 1.4.1

ialom1 (Sat, 20 Jul 2019 14:41:43 GMT):
Has joined the channel.

ialom1 (Sat, 20 Jul 2019 14:41:45 GMT):
I am facing this same error. #fabric-questions https://stackoverflow.com/questions/55744928/error-failed-to-connect-before-the-deadline-when-firing-transactions-at-high-ra

HritikGupta (Sat, 20 Jul 2019 14:46:12 GMT):
I am not very sure about this, but try reducing the BatchTimeout in your configtx.yaml

ialom1 (Sat, 20 Jul 2019 14:49:12 GMT):
I have reduced batch timeout to 1 second but the problem still exists. Should I reduce it further..??

HritikGupta (Sat, 20 Jul 2019 14:51:04 GMT):
Make it 0 and see? also try reducing MaxMessageCount under BatchSize

HritikGupta (Sat, 20 Jul 2019 14:51:26 GMT):
Make it 0 and see? also try reducing MaxMessageCount under BatchSize

ialom1 (Sat, 20 Jul 2019 15:30:33 GMT):
I set the batchtimeout to 0 and maxmsgcount to 5, but still some errors

HritikGupta (Sat, 20 Jul 2019 15:30:39 GMT):
Has anyone worked with Access Control Lists?

HritikGupta (Sat, 20 Jul 2019 15:50:56 GMT):
What is "/Channel/Application/Writers" under "Updating ACL defaults" section present? What does it imply/signify?

HritikGupta (Sat, 20 Jul 2019 15:50:56 GMT):
What is "/Channel/Application/Writers" under "Updating ACL defaults" section [https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html] present? What does it imply/signify?

HritikGupta (Sat, 20 Jul 2019 15:50:56 GMT):
Where is "/Channel/Application/Writers" under "Updating ACL defaults" section [https://hyperledger-fabric.readthedocs.io/en/release-1.4/access_control.html] present? What does it imply/signify?

ialom1 (Sat, 20 Jul 2019 16:11:12 GMT):
I am using Hyperledger Fabric v1.2 to do some performance analysis. At low transaction submit rate(upto 50 tps), all transactions are completed successfully. But when I submit transactions at rates higher than 50, some of the transactions are failed with the error: `Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpc://x.x.x.x:7050 has an error Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline` My configtx: `Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: solo Addresses: - orderer.example.com:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 0s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 128 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 120 MB MaxChannels: 0 Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE: Use IP:port notation Brokers: - 127.0.0.1:9092`

ialom1 (Sat, 20 Jul 2019 16:11:12 GMT):
I am using Hyperledger Fabric v1.2 to do some performance analysis. At low transaction submit rate(upto 50 tps), all transactions are completed successfully. But when I submit transactions at rates higher than 50, some of the transactions are failed with the error: `Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpc://x.x.x.x:7050 has an error Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline` My configtx: `Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: solo Addresses: - orderer.example.com:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 0s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 128 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 120 MB MaxChannels: 0 Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE: Use IP:port notation Brokers: - 127.0.0.1:9092`

ialom1 (Sat, 20 Jul 2019 16:11:12 GMT):
#fabric-questions I am using Hyperledger Fabric v1.2 to do some performance analysis. At low transaction submit rate(upto 50 tps), all transactions are completed successfully. But when I submit transactions at rates higher than 50, some of the transactions are failed with the error: `Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpc://x.x.x.x:7050 has an error Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline` My configtx: `Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: solo Addresses: - orderer.example.com:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 0s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 128 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 120 MB MaxChannels: 0 Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE: Use IP:port notation Brokers: - 127.0.0.1:9092`

ialom1 (Sat, 20 Jul 2019 16:23:49 GMT):
#fabric-questions I am using Hyperledger Fabric v1.2 to do some performance analysis. At low transaction submit rate(upto 50 tps), all transactions are completed successfully. But when I submit transactions at rates higher than 50, some of the transactions are failed with the error: `Transaction proposal was good Successfully sent Proposal and received ProposalResponse: Status - 200, message - "" error: [Remote.js]: Error: Failed to connect before the deadline error: [Orderer.js]: Orderer grpc://x.x.x.x:7050 has an error Error: Failed to connect before the deadline error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline` My configtx: `Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: solo Addresses: - orderer.example.com:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 0s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 # Absolute Max Bytes: The absolute maximum number of bytes allowed for # the serialized messages in a batch. AbsoluteMaxBytes: 128 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 120 MB MaxChannels: 0 Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE: Use IP:port notation Brokers: - 127.0.0.1:9092`

mastersingh24 (Sat, 20 Jul 2019 23:17:42 GMT):
1) You really should move to Fabric 1.4.1 or 1.4.2 (which just came out) 2) You should use Raft rather than Kafka once you move 3) The bottleneck might be your client 4) It's possible that you have not increased the file descriptors for your peer/orderer nodes

acidfreako (Sun, 21 Jul 2019 01:20:29 GMT):
Has joined the channel.

dijaa (Sun, 21 Jul 2019 15:15:17 GMT):
Hey, did anyone here triyed to get a certification from Blockchain Council?

ialom1 (Sun, 21 Jul 2019 15:16:37 GMT):
I am not using kafka, only a single orderer. The thing is this failure does not occur at low transaction rates. It occurs when we submit transactions at high rates 60 and above. But some of the related academic papers suggest that fabric v1.2 can handle more. I have tested using Hyperledger Caliper for upto 200 tps

ialom1 (Sun, 21 Jul 2019 15:25:46 GMT):
I am not using kafka, only a single orderer. The thing is this failure does not occur at low transaction rates. It occurs when we submit transactions at high rates 60 and above. But some of the related academic papers suggest that fabric v1.2 can handle more. I have tested using Hyperledger Caliper for upto 200 tps

ialom1 (Sun, 21 Jul 2019 16:45:44 GMT):
OK, finally fixed it. The eventhub was causing the failure. Just removed the event hub(Since it is not a vital part of transaction process) and the problem was gone. I have also cross checked the records in the couchDB.

umarmw (Sun, 21 Jul 2019 18:32:42 GMT):
yes

umarmw (Sun, 21 Jul 2019 18:35:30 GMT):
Anyone encounter this issue: Failed to post transaction: SyntaxError: Unexpected end of JSON input. ``` const vehicle = { 'colour': colour, 'vin': vin, 'vehicleStatus': 'UNREGISTERED', 'docType': 'vehicle' }; await ctx.stub.putState('vehicle-'+vin, Buffer.from(JSON.stringify(vehicle))); ```

umarmw (Sun, 21 Jul 2019 18:35:30 GMT):
Anyone encounter this issue: Failed to post transaction: SyntaxError: Unexpected end of JSON input. ``` const vehicle = { 'colour': colour, 'vin': vin, 'vehicleStatus': 'UNREGISTERED', 'docType': 'vehicle' }; await ctx.stub.putState('vehicle-'+vin, Buffer.from(JSON.stringify(vehicle))); ``` as per the JSON, am not seeing anything invalid.

kamere (Sun, 21 Jul 2019 19:54:05 GMT):
Has joined the channel.

kamere (Sun, 21 Jul 2019 19:54:07 GMT):
hello everyone. newbie here! 🙂 i want to start learning hyperledger fabric. i've read documents and key concepts and started byfn tutorial. i followed all steps but when i type ./byfn.sh up i get an error. `2019-07-21 19:41:11.930 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing) peer0.org1 failed to join the channel, Retry after 3 seconds ... ... ... ... Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com on 127.0.0.11:53: no such host" peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block ` Can you help?

Randyshu2018 (Mon, 22 Jul 2019 02:39:35 GMT):
hi, I want to design the permission control to be responsive. The scenario is as follows: The user initiates a request to add a new organization. After receiving the request, the federation organization signs it with the Admin user. After collecting enough signatures, it initiates the updated transaction.

usama7777 (Mon, 22 Jul 2019 07:53:36 GMT):
Hello, I am unable to bring first network up using etcd raft as consensus protocol. I recently cloned it from github v1.4. I get the error of unsupported capabilities in the orderer logs . Capabilities is set to v1.4.2 in configtx

Niklaskkkk (Mon, 22 Jul 2019 08:11:16 GMT):
Hi, I struggle really hard this error message. It appears once I try to create a new channel (either AllAreWelcomeTwo or OrgTwoChannel). I try to execute the creat channel command both from CLI, or the individual peer containers. The same error message appers. And yes, the artifact (for instance allarewelcometwo.tx is inside the config file within the fabric-samples folder). What could be wrong here? I am on Ubuntu 18.04 Here are my commands: ../bin/configtxgen -profile AllAreWelcomeTwo -outputCreateChannelTx ./config/AllAreWelcomeTwo.tx -channelID allarewelcometwo I then check the config file, and the artifact is indeed created. Then I log into the CLI container or peer0 org or peer0org2...I tried them all and changed export commands below accordingly...: docker exec -it cli bash export CORE_PEER_LOCALMSPID="Org2MSP" export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp export CORE_PEER_ADDRESS=peer0.org2.example.com:7051 peer channel create -o orderer.example.com:7050 -f ./config/AllAreWelcomeTwo.tx -c allarewelcome 2019-07-21 14:53:56.921 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: channel create configuration tx file not found open ./config/AllAreWelcomeTwo.tx: no such file or directory Really need help on this one guys, been testing different options now for 5 hours without success...

tballast (Mon, 22 Jul 2019 08:14:17 GMT):
@Niklaskkkk If you generate the artifact _outside_ of the container, there is no guarantee that it will appear within it. Make sure that whatever volumes you're mounting contain the artifact.

soumyanayak (Mon, 22 Jul 2019 08:15:01 GMT):
peer channel create -o orderer.example.com:7050 -f ./config/AllAreWelcomeTwo.tx -c allarewelcometwo --- please try this --- renamed the channelname

Niklaskkkk (Mon, 22 Jul 2019 08:18:56 GMT):
This is the CLI definition in docker-compose.yml cli: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_LOGGING_LEVEL=info - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp - CORE_CHAINCODE_KEEPALIVE=10 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/ - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ networks: - basic depends_on: - orderer.example.com - peer0.org1.example.com

tballast (Mon, 22 Jul 2019 08:24:28 GMT):
you could add a line like this to the `volumes` section: ` - ./config:/opt/gopath/src/github.com/hyperledger/fabric/peer/config` Then, when you go inside the cli, use the came command as before.

tballast (Mon, 22 Jul 2019 08:25:17 GMT):
then make sure that the AllAreWelcomeTwo.tx file is in the config directory.

Niklaskkkk (Mon, 22 Jul 2019 08:35:05 GMT):
There has got to be something wrong with my Paths or volumes now, because now I tried to to the ./teardown script, then ./bootstrap & change the _sk for both CA containers. Then I restarted the network with ./start.sh & now the error message also appears for the allarewelcome (version 1 channel),....

Niklaskkkk (Mon, 22 Jul 2019 08:35:29 GMT):
Bootstrap script #!/bin/sh # # Copyright IBM Corp All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # export PATH=$GOPATH/src/github.com/hyperledger/fabric/build/bin:${PWD}/../bin:${PWD}:$PATH export FABRIC_CFG_PATH=${PWD} CHANNEL_NAME=allarewelcome # remove previous crypto material and config transactions rm -fr config/* rm -fr crypto-config/* # generate crypto material cryptogen generate --config=./crypto-config.yaml if [ "$?" -ne 0 ]; then echo "Failed to generate crypto material..." exit 1 fi # generate genesis block for orderer configtxgen -profile OneOrgOrdererGenesis -outputBlock ./config/genesis.block if [ "$?" -ne 0 ]; then echo "Failed to generate orderer genesis block..." exit 1 fi # generate channel configuration transaction configtxgen -profile OneOrgChannel -outputCreateChannelTx ./config/allarewelcome.tx -channelID allarewelcome if [ "$?" -ne 0 ]; then echo "Failed to generate channel configuration transaction..." exit 1 fi # generate anchor peer transaction configtxgen -profile OneOrgChannel -outputAnchorPeersUpdate ./config/Org1MSPanchors.tx -channelID allarewelcome -asOrg Org1MSP if [ "$?" -ne 0 ]; then echo "Failed to generate anchor peer update for Org1MSP..." exit 1 fi sleep 5s set -ev # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down docker-compose -f docker-compose.yml up -d Org1ca.example.com Org2ca.example.com orderer.example.com peer1.org1.example.com couchdbOrg1Peer1 couchdbOrg1Peer0 couchdbOrg2Peer0 couchdbOrg2Peer1 peer0.org1.example.com peer0.org2.example.com peer1.org2.example.com cli # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= export FABRIC_START_TIMEOUT=10 #echo ${FABRIC_START_TIMEOUT} sleep ${FABRIC_START_TIMEOUT} # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c allarewelcome -f /etc/hyperledger/configtx/allarewelcome.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b allarewelcome.block

Niklaskkkk (Mon, 22 Jul 2019 08:35:49 GMT):
start.sh script: #!/bin/bash # # Copyright IBM Corp All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # # Exit on first error, print all commands. set -ev # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down docker-compose -f docker-compose.yml up -d Org1ca.example.com Org2ca.example.com orderer.example.com peer1.org1.example.com couchdbOrg1Peer1 couchdbOrg1Peer0 couchdbOrg2Peer0 couchdbOrg2Peer1 peer0.org1.example.com peer0.org2.example.com peer1.org2.example.com cli # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= export FABRIC_START_TIMEOUT=10 #echo ${FABRIC_START_TIMEOUT} sleep ${FABRIC_START_TIMEOUT} # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block

Niklaskkkk (Mon, 22 Jul 2019 08:36:05 GMT):
error message: # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2019-07-22 08:33:41.698 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: channel create configuration tx file not found open /etc/hyperledger/configtx/channel.tx: no such file or directory

Niklaskkkk (Mon, 22 Jul 2019 08:37:09 GMT):
Both allarewelcome.tx & genesis.block are in the config directory, in the fabric-samples folder on my dekstop

Niklaskkkk (Mon, 22 Jul 2019 08:42:29 GMT):
Oh, nevermind this last error. I now see there was an error in the start.sh script. Wrong channel name! I will now try your proposed solution for the allarewelcometwo error

tballast (Mon, 22 Jul 2019 08:44:56 GMT):
Just so you know, when posting code here it can be hard to read if it isn't formatted, and you can do so by using the little backtick character like this -> ` you can type three of them in a row to do multiline code blocks like the script you posted. ( ie. ``` at the beginning, and then again at the end) ```

tballast (Mon, 22 Jul 2019 08:44:56 GMT):
Just so you know, when posting code here it can be hard to read if it isn't formatted, and you can do so by using the little backtick character like this -> ` you can type three of them in a row to do multiline code blocks like the script you posted. ```

tballast (Mon, 22 Jul 2019 08:44:56 GMT):
Just so you know, when posting code here it can be hard to read if it isn't formatted, and you can do so by using the little backtick character like this -> ` you can type three of them in a row to do multiline code blocks like the script you posted.

tballast (Mon, 22 Jul 2019 08:44:56 GMT):
Just so you know, when posting code here it can be hard to read if it isn't formatted, and you can do so by using the little backtick character like this -> ` you can type three of them in a row to do multiline code blocks like the script you posted. (ie. \`\`\` code \`\`\` )

tballast (Mon, 22 Jul 2019 08:44:56 GMT):
Just so you know, when posting code here it can be hard to read if it isn't formatted, and you can do so by using the little backtick character like this -> ` you can type three of them in a row to do multiline code blocks like the script you posted.

Niklaskkkk (Mon, 22 Jul 2019 09:06:07 GMT):
Thanks for the replies @tballast now the error message changes, so it appear the container do find the allarewelcometwo.tx artifact, but now it says that I try to include a member not part of the consortium. I tried both with peer0 from organization 1 & peer 1 from organization two. I also checked the _sk certificate numbers for CA from both org1 & 2, and they are matching in the docker-compose.yml with corresponding crypto-files

Niklaskkkk (Mon, 22 Jul 2019 09:24:01 GMT):
@tballast It now worked as I edited the

Niklaskkkk (Mon, 22 Jul 2019 09:25:22 GMT):
configtx.yaml file and got allarewelcoetwo.tx channel created. Thanks for your help @tballast , been stuck two days with this! :D

tballast (Mon, 22 Jul 2019 09:26:26 GMT):
Good to hear, and Glad to help! :smiley:

Niklaskkkk (Mon, 22 Jul 2019 10:22:55 GMT):
Hi, I receive a syntax error when trying to edit the network config file. These are my commands - is anyone familiar with jq? fabric/peer# jq -s '.[0]*{"channel_group":{"groups":{Application":{groups":{"Org2MSP":.[1]}}}}}' configBlock.json ./config/org2_definition.json > configChanges.json jq: error: syntax error, unexpected QQSTRING_START, expecting '}' (Unix shell quoting issues?) at , line 1: .[0]*{"channel_group":{"groups":{Application":{groups":{"Org2MSP":.[1]}}}}} jq: error: syntax error, unexpected '}', expecting $end (Unix shell quoting issues?) at , line 1: .[0]*{"channel_group":{"groups":{Application":{groups":{"Org2MSP":.[1]}}}}} jq: 2 compile errors

ahmad-raza (Mon, 22 Jul 2019 11:10:23 GMT):
Hi all, I have a question? Can i shift hyperledger fabric running network from one location to another? Which things i have to update or modify if it is possible?

ayusht11 (Mon, 22 Jul 2019 11:15:31 GMT):
Has joined the channel.

ayusht11 (Mon, 22 Jul 2019 11:15:33 GMT):
Hi guys, I'm unable to create new channels with new orgs added to an existing fabric network using this tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html I have detailed my issue here: https://stackoverflow.com/questions/57144745/cannot-create-channels-with-new-orgs-in-fabric-got-error-attempted-to-include

ayusht11 (Mon, 22 Jul 2019 11:16:02 GMT):
It would be great if you could take a look and help.

Niklaskkkk (Mon, 22 Jul 2019 12:16:47 GMT):
Hello, I have an organization with two nodes, peer0 & peer1. I have installed a chaincode on both peers, and confirmed they both have installed the same chaincode with "peer chaincode list --installed" However, if I try to instantiate the chaincode with policy I get an error message. I do not understand why & I do not know how to troubleshoot this? Commands: /fabric/peer# peer chaincode instantiate -n ccForAll -v 1.1 -o orderer.example.com:7050 -C allarewelcome -c '{"Args":["Mach","50"]}' --policy "AND('Org1.peer', OR ('Org1.member))" 2019-07-22 11:56:12.055 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-07-22 11:56:12.065 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-07-22 11:56:12.070 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-07-22 11:56:12.070 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: invalid policy AND('Org1.peer', OR ('Org1.member))

Niklaskkkk (Mon, 22 Jul 2019 12:54:26 GMT):
Hi, I am setting up a script (bootstrap.sh) to quickly get my test-network up & running. However, I am struggeling with the install chaincode line, where I believe it might be something wrong with the path (LS command). Does anyone know much about .sh files? how should I correctly type in the "ls /opt/gopath/src/github.com/sacc" so that the script will find the chaincode file before installing it in the next line? the following error message currently appears: "ls: cannot access '/opt/gopath/src/github.com/sacc': No such file or directory" Here are the script commands: `# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c allarewelcome -f /etc/hyperledger/configtx/allarewelcome.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b allarewelcome.block # Peer1.org1 fetch genesis block from the channel before joining docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050 # Join peer1.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b allarewelcome.block # Find chaincode for peer0.org1 version 1.1 docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com ls /opt/gopath/src/github.com/sacc # Install chaincode on peer0.org1 version 1.1 docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode install -n ccForAll -v 1.1 -p github.com/sacc`

MatteoLinear (Mon, 22 Jul 2019 13:54:36 GMT):
How would i test chaincode and make changes to functions without having to install it everytime?

akoenig (Mon, 22 Jul 2019 14:01:40 GMT):
You can create UnitTests for the Go-Code, the blockchain is mocked inside the UnitTests. You can't test richt quries in the Unit-Test.

akoenig (Mon, 22 Jul 2019 14:01:40 GMT):
You can create UnitTests for the Go-Code, the blockchain is mocked inside the UnitTests. You can't test rich queries in the Unit-Test.

akoenig (Mon, 22 Jul 2019 14:01:40 GMT):
You can create UnitTests for the Go-Code, the blockchain is mocked inside the UnitTests. You can't test rich queries in the Unit-Test. For more there is also a "fabric-chaincode-dev"-channel.

tongli (Mon, 22 Jul 2019 14:05:05 GMT):
can some one point me to docs or examples how cds format of chaincode to be installed?

MikeRichardson (Mon, 22 Jul 2019 14:55:37 GMT):
Hi, I am trying to configure and run a network based on single raft orderer. I can generate the crypto material but when I run the orderer binary I get an error message: "Error retrieving consenter of type: etcdraft". I am using the configtx.yaml and crypto-config.yaml from the fabric samples, first network setup. Any ideas what might cause this? All the crypto material and the genesis block/channel tx file were generated.

MikeRichardson (Mon, 22 Jul 2019 14:55:37 GMT):
Hi, I am trying to configure and run a network based on single raft orderer. I can generate the crypto material but when I run the orderer binary I get an error message: "Error retrieving consenter of type: etcdraft". I am using the configtx.yaml and crypto-config.yaml from the fabric samples, first network setup (but modified to have only one orderer for learning purposes). Any ideas what might cause this? All the crypto material and the genesis block/channel tx file were generated.

ykim 1 (Mon, 22 Jul 2019 15:21:29 GMT):
I'm using AWS ManagedBlockchain. There is no good way to get an error from anchor peer I believe

Bentipe (Mon, 22 Jul 2019 15:27:00 GMT):
Hey guys, I am facing a problem when creating the channel, when I create the channel I point to the admins MSP, but when I launch the command I get the following error: ``` WARN 025 [channel: testchannel] Rejecting broadcast of config message from 192.168.0.121:39954 because of error: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the '*Writers*' sub-policies to be satisfied: permission denied ``` If I add to the MSP directory the admincerts folder with the cert of the admin (the same of the signcerts) I get the following: ``` WARN 025 [channel: testchannel] Rejecting broadcast of config message from 192.168.0.121:39954 because of error: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the '*Admins*' sub-policies to be satisfied: permission denied ```

lepar (Mon, 22 Jul 2019 15:40:12 GMT):
@Bentipe Are u pointing to the admin of the Users or Peer folder of the msp?

Bentipe (Mon, 22 Jul 2019 15:41:44 GMT):
admin of the users

Bentipe (Mon, 22 Jul 2019 15:41:44 GMT):
admin of the users @lepar

dijaa (Mon, 22 Jul 2019 15:49:20 GMT):
./byfn.sh , what is the utility of that script?

jastisriradheshyam (Mon, 22 Jul 2019 15:50:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=DFwHEbMtTxNCwDwPA) @dijaa demonstration of fabric network orchestration

dijaa (Mon, 22 Jul 2019 15:51:29 GMT):
Can you explain more plz

Bentipe (Mon, 22 Jul 2019 15:51:42 GMT):
the policies are this: ``` Channel: &ChannelDefaults # Policies defines the set of policies at this level of the config tree # For Channel policies, their canonical path is Policies: # Who may invoke the 'Deliver' API Readers: Type: ImplicitMeta Rule: "ANY Readers" # Who may invoke the 'Broadcast' API Writers: Type: ImplicitMeta Rule: "ANY Writers" # By default, who may modify elements at this config level Admins: Type: ImplicitMeta Rule: "ANY Admins" ```

dijaa (Mon, 22 Jul 2019 15:57:15 GMT):
when i'm executing this command , i get the following error

dijaa (Mon, 22 Jul 2019 15:58:24 GMT):

Capture.PNG

dijaa (Mon, 22 Jul 2019 15:58:42 GMT):
can anyone tell me how to fix that error

dijaa (Mon, 22 Jul 2019 15:59:26 GMT):
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host

jastisriradheshyam (Mon, 22 Jul 2019 16:08:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=K7N2ZPTQChtFZyzyN) @dijaa it can be your internet or DNS or docker.io is having trouble serving response, basically your machine don't have docker image that is required so, it is trying to pull from docker registry

lepar (Mon, 22 Jul 2019 17:12:10 GMT):
Check to see if any path is being overwritten or you're executing from the right container (cli or peer)

sirtow (Mon, 22 Jul 2019 18:17:54 GMT):
Has joined the channel.

sirtow (Mon, 22 Jul 2019 18:17:55 GMT):
Hi all, does private collections support versioning? e.g. is it possible to see the private collection changes between different blocks?

Bentipe (Mon, 22 Jul 2019 18:19:29 GMT):
Im executing it from the peer container itself

Bentipe (Mon, 22 Jul 2019 18:19:57 GMT):
What do you mean by checking if any path is overwritten?

usama7777 (Mon, 22 Jul 2019 18:39:02 GMT):
what should be the capabilities in configtx if I want to run raft as ordering service on docker images 1.4.1

lepar (Mon, 22 Jul 2019 18:55:32 GMT):
What's the command you're executing? Inside the container or outside?

CT123 (Mon, 22 Jul 2019 19:34:49 GMT):
commercial paper tutorial does not work - running start.sh from https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html and the peer will not join -- I'm getting the following error `[channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)` Can anyone suggest what I need to change in start.sh to fix this?

Bentipe (Mon, 22 Jul 2019 19:39:33 GMT):
inside the container of the peer: ``` peer channel create -c testchannel -f testchannel.tx --outputBlock testchannel.block --tls --cafile /etc/hyperledger/crypto-config/peer/tls-msp/cacerts/192-168-0-114-7054.pem -o 192.168.0.124:7050 ```

lepar (Mon, 22 Jul 2019 19:41:49 GMT):
Check any typos with the generated testchannel.tx to make sure it's the same MSP

CT123 (Mon, 22 Jul 2019 19:44:09 GMT):
This is from start.sh that was supplied from the fabric-samples git clone:

CT123 (Mon, 22 Jul 2019 19:44:16 GMT):
`# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block`

CT123 (Mon, 22 Jul 2019 19:45:15 GMT):
This is from start.sh that was supplied from the fabric-samples git clone: `# Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block`

Bentipe (Mon, 22 Jul 2019 19:51:37 GMT):
will check lepar thanks, thanks ct

icarrascol (Mon, 22 Jul 2019 21:12:39 GMT):
hello does anyone know how to generate the certs and keys for all the network using openssl?

windykiss (Tue, 23 Jul 2019 02:02:17 GMT):
Has joined the channel.

windykiss (Tue, 23 Jul 2019 02:02:18 GMT):
Excuse me!!! . I have a problem when I instantiate my java chaincode. Error returned from gradle build: org.everit.json.schema:1.11.1 is not found from repo.maven.apache.org. Please support me to fix this bug. Thank you so much!

windykiss (Tue, 23 Jul 2019 02:02:55 GMT):

screenshot.png

miroki (Tue, 23 Jul 2019 02:50:20 GMT):
Has joined the channel.

miroki (Tue, 23 Jul 2019 02:50:22 GMT):
hello. I got a question about deployment. does this tutorial here produce a production ready installation? https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html

flojdek (Tue, 23 Jul 2019 04:43:32 GMT):
Has joined the channel.

flojdek (Tue, 23 Jul 2019 04:43:33 GMT):
Hello everyone. I'm Tom! Nice to meet you. I have a fairly simple question I would think. Let's say I run Hyperledger Fabric for my organization and we issue internally a token that pays dividends to the holders. Now this is without our private permissioned network. Let's assume that token is based by real estate. Now there is a security tokens exchange that likes our project and we trust that exchange as well and we would like their clients to be able to trade our token. Is there any possibility for us to grant that exchange certain address pool on our Hyperledger Fabric so they can start trading our token with other crypto pairs they trade?

flojdek (Tue, 23 Jul 2019 04:43:33 GMT):
Hello everyone. I'm Tom! Nice to meet you. I have a fairly simple question I would think. Let's say I run Hyperledger Fabric for my organization and we issue internally a token that pays dividends to the holders. Now this is within our private permissioned network. Let's assume that token is based by real estate. Now there is a security tokens exchange that likes our project and we trust that exchange as well and we would like their clients to be able to trade our token. Is there any possibility for us to grant that exchange certain address pool on our Hyperledger Fabric so they can start trading our token with other crypto pairs they trade?

flojdek (Tue, 23 Jul 2019 04:43:33 GMT):
Hello everyone. I'm Tom! Nice to meet you. I have a fairly simple question I would think. Let's say I run Hyperledger Fabric for my organization and we issue internally a token that pays dividends to the holders. Now this is within our private permissioned network. Let's assume that token is backed by real estate. Now there is a security tokens exchange that likes our project and we trust that exchange as well and we would like their clients to be able to trade our token. Is there any possibility for us to grant that exchange certain address pool on our Hyperledger Fabric so they can start trading our token with other crypto pairs they trade?

flojdek (Tue, 23 Jul 2019 04:47:40 GMT):
I'd appreciate your hints/help. Thank you.

mrudav.shukla (Tue, 23 Jul 2019 06:36:40 GMT):
Can we apply criteria based queries on private data collection in CouchDb?

japidei (Tue, 23 Jul 2019 06:36:55 GMT):
Has joined the channel.

javapriyan (Tue, 23 Jul 2019 07:24:17 GMT):
trying to clone the repo using ```git clone ssh://LFID@gerrit.hyperledger.org:29418/fabric && scp -p -P 29418 LFID@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/ ``` getting the following error. ``` javapriyan@gerrit.hyperledger.org: Permission denied (publickey). fatal: Could not read from remote repository. ``` How to add my public key so that I can get the access to the repo ?

GioG12 (Tue, 23 Jul 2019 08:20:04 GMT):
Hello everyone, I have some questions about Hyperledger concepts 1. If network has many channels and these channels have their own different ledgers, how does blockchain looks like from network wide point of view? 2. If network has thousands of transactions per second how do many nodes (ex 10) synchronize and order transactions in blocks?

GioG12 (Tue, 23 Jul 2019 08:20:04 GMT):
Hello everyone, I have some questions about Hyperledger concepts 1. If network has many channels and these channels have their own different ledgers, how does blockchain looks like from network wide point of view? 2. If network has thousands of transactions per second how do many ordering nodes (ex 10) synchronize and order transactions in blocks?

Niklaskkkk (Tue, 23 Jul 2019 09:11:02 GMT):
Hi! I need help to set correct paths in a bootstrap.sh script I edited. I want the network to automatically create channels & sign config transactions when the network is starting up. However, I keep getting this error message: Error: channel create configuration tx file not found open /etc/hyperledger/fabric/peer/org2submitReady.pb: no such file or directory If I go into the CLI container and LS the file is indeed there, but it does not seem to find it upon starting the network. Anyone know? Here is the script: `export PATH=$GOPATH/src/github.com/hyperledger/fabric/build/bin:${PWD}/../bin:${PWD}:$PATH export FABRIC_CFG_PATH=${PWD} CHANNEL_NAME=allarewelcome # remove previous crypto material and config transactions #rm -fr config/* #rm -fr crypto-config/* # generate crypto material #cryptogen generate --config=./crypto-config.yaml #if [ "$?" -ne 0 ]; then # echo "Failed to generate crypto material..." # exit 1 #fi # generate genesis block for orderer configtxgen -profile OneOrgOrdererGenesis -outputBlock ./config/genesis.block if [ "$?" -ne 0 ]; then echo "Failed to generate orderer genesis block..." exit 1 fi # generate channel configuration transaction configtxgen -profile OneOrgChannel -outputCreateChannelTx ./config/allarewelcome.tx -channelID allarewelcome if [ "$?" -ne 0 ]; then echo "Failed to generate channel configuration transaction..." exit 1 fi # generate anchor peer transaction configtxgen -profile OneOrgChannel -outputAnchorPeersUpdate ./config/Org1MSPanchors.tx -channelID allarewelcome -asOrg Org1MSP if [ "$?" -ne 0 ]; then echo "Failed to generate anchor peer update for Org1MSP..." exit 1 fi sleep 5s set -ev # don't rewrite paths for Windows Git Bash users export MSYS_NO_PATHCONV=1 docker-compose -f docker-compose.yml down docker-compose -f docker-compose.yml up -d Org1ca.example.com Org2ca.example.com orderer.example.com peer1.org1.example.com couchdbOrg1Peer1 couchdbOrg1Peer0 couchdbOrg2Peer0 couchdbOrg2Peer1 peer0.org1.example.com peer0.org2.example.com peer1.org2.example.com cli # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= export FABRIC_START_TIMEOUT=10 #echo ${FABRIC_START_TIMEOUT} sleep ${FABRIC_START_TIMEOUT} # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c allarewelcome -f /etc/hyperledger/configtx/allarewelcome.tx # Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b allarewelcome.block # Peer1.org1 fetch genesis block from the channel before joining docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050 # Join peer1.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer1.org1.example.com peer channel join -b allarewelcome.block # Find chaincode for peer0.org1 version 1.1 #docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com ls /opt/gopath/src/github.com/sacc # Install chaincode on peer0.org1 version 1.1 #docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer chaincode install -n ccForAll -v 1.1 -p github.com/sacc # Try to sign config block for Org2 to join network docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" peer0.org1.example.com peer channel signconfigtx -f /etc/hyperledger/fabric/peer/org2submitReady.pb # Send config changes to rest of network for approval docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" peer0.org1.example.com peer channel update -f /etc/hyperledger/fabric/peer/org2submitReady.pb -c allarewelcome -o orderer.example.com:7050`

premdutt09 (Tue, 23 Jul 2019 10:47:47 GMT):
Has joined the channel.

premdutt09 (Tue, 23 Jul 2019 10:47:53 GMT):
How to implement endorsement policy with AND condition with multiple peers?

premdutt09 (Tue, 23 Jul 2019 10:47:53 GMT):
How to implement endorsement policy with AND condition with multiple peers? Defining it while instantiating is fine. But how can other peers make it a valid transaction by passing there certificates?

ahmad-raza (Tue, 23 Jul 2019 11:36:35 GMT):
Any one know about this error appearing in logs of orderer grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: EOF"

ahmad-raza (Tue, 23 Jul 2019 11:36:53 GMT):
grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 10.244.0.53:7050->10.244.0.1:56912: read: connection reset by peer"

Javi (Tue, 23 Jul 2019 11:49:03 GMT):
Hi people, I'm curious, why the average time taken to complete requests to couchdb using the function `WarmIndex` increases over time when we write transactions to the ledger?

mania06 (Tue, 23 Jul 2019 13:09:10 GMT):
You need to have make installed. If you are on ubuntu: `sudo apt-get install build-essential`

HyperledgerGirl (Tue, 23 Jul 2019 13:20:48 GMT):
Has joined the channel.

HyperledgerGirl (Tue, 23 Jul 2019 13:20:50 GMT):
Any one know the step by step procedure for implementing raft in a balance transfer sample

dijaa (Tue, 23 Jul 2019 13:54:27 GMT):
please, can anyone tell me why usine that path after -p

dijaa (Tue, 23 Jul 2019 13:54:36 GMT):
peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/

Abrara (Tue, 23 Jul 2019 14:28:41 GMT):
Which path did you want it to use? It means that the source code of the chaincode is located there on the container you are using. I'm guessing you are in the CLI container of the first-network tutorial. The chaincode was put in this path via a docker volume (check docker-compose-cli.yaml)

dijaa (Tue, 23 Jul 2019 14:32:34 GMT):
it's an external path , i mean github.so how can i change that path, and this chaincode to be local?

dijaa (Tue, 23 Jul 2019 14:34:14 GMT):
Can you tell me how to start a new network, without be deponding on those path of tutorials plz?

pedrotelles2 (Tue, 23 Jul 2019 14:36:11 GMT):
Has joined the channel.

pedrotelles2 (Tue, 23 Jul 2019 14:36:12 GMT):
Hello, I`m testing a multi-host environment. I have 2 orgs A and B, Org A has Orderer Org with one Peer Org and Org B has Peer Org. I'm trying to connect Org B to Org A. It's apparently connected, but Peer B returns "Got error &{FORBIDDEN}" and Orderer Org A returns Client authorization revoked for deliver request from : "Failed to reach implicit threshold of 1 sub-policies". How to resolve this?

Abrara (Tue, 23 Jul 2019 14:42:19 GMT):
it's not external, you have a local directory called github.com on your peer, it's common practice when working with Go

Abrara (Tue, 23 Jul 2019 14:44:57 GMT):
but as I told you, you link the chaincode to your container using docker volumes, in the docker-compose.yaml file (in your case, probably docker-compose-cli.yaml). Check the file, it might help you understand a bit better how you link your "local" chaincode to your peer

RyanOuyang (Tue, 23 Jul 2019 14:50:38 GMT):
Anyone else unable to log into the Hyperledger JIRA?

RyanOuyang (Tue, 23 Jul 2019 14:51:01 GMT):
Can't seem to get in and submit a ticket

dijaa (Tue, 23 Jul 2019 15:08:30 GMT):
yes, i see the same path in docker-compose-cli.yaml

dijaa (Tue, 23 Jul 2019 15:09:54 GMT):
if i want to chnage it, how?

Abrara (Tue, 23 Jul 2019 15:15:01 GMT):
Well, change it in the docker-compose-cli.yaml. And then in all the files where you call this specific path (your peer chaincode install command probably comes from a script for example).

dijaa (Tue, 23 Jul 2019 15:15:18 GMT):
I need just to inderstand that path, i don't see the code of any chaincode

Abrara (Tue, 23 Jul 2019 15:15:36 GMT):
you should see the chaincode code in this path actually

Abrara (Tue, 23 Jul 2019 15:15:46 GMT):
in the CLI container

dijaa (Tue, 23 Jul 2019 15:16:06 GMT):
i can't access to it

Abrara (Tue, 23 Jul 2019 15:16:16 GMT):
in the CLI container?

dijaa (Tue, 23 Jul 2019 15:19:44 GMT):
no i'm searching for the path

dijaa (Tue, 23 Jul 2019 15:20:29 GMT):
/ opt/gopath.....

dijaa (Tue, 23 Jul 2019 15:20:46 GMT):
i can't found it by using terminal command

Swhit210 (Tue, 23 Jul 2019 16:04:31 GMT):
Hi, I am running the command ./bin/configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid and seeing the below error in the terminal. Any thoughts? `2019-07-23 12:03:25.122 EDT [common.tools.configtxgen] func1 -> PANI 009 proto: Marshal called with nil panic: proto: Marshal called with nil [recovered] panic: proto: Marshal called with nil`

Swhit210 (Tue, 23 Jul 2019 16:04:31 GMT):
Hi, I am running the command ./bin/configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid and seeing the below error in the terminal. Any thoughts? `2019-07-23 12:03:25.122 EDT [common.tools.configtxgen] func1 -> PANI 009 proto: Marshal called with nil` `panic: proto: Marshal called with nil [recovered]` `panic: proto: Marshal called with nil`

MiaSinger (Tue, 23 Jul 2019 16:04:32 GMT):
Has joined the channel.

MiaSinger (Tue, 23 Jul 2019 16:04:36 GMT):
Hi there, I need some help with chaincode policies - no matter how I define my policy ( at the moment it is OR('org1.peer', 'org2.peer', 'org3.peer') ) I always get a "VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode piccv1 in tx 5:0 failed: signature set did not satisfy policy" My network is very close to byfn, but with 3 orgs. Could anyone point me to where else to look for a more detailed error? I am clueless... thank you so much in advance!

yacovm (Tue, 23 Jul 2019 17:07:57 GMT):
@MiaSinger you can set the logging to debug and see what exactly is missing while the policy is evaluated

ykim 1 (Tue, 23 Jul 2019 17:26:05 GMT):
Does anyone was able to set up chaincode with 'private data collection' in AWS ManagedBlockchain? orgs can only read data that he put, but cannot read other orgs put

ykim 1 (Tue, 23 Jul 2019 17:26:05 GMT):
Does anyone was able to set up chaincode with 'private data collection' in AWS ManagedBlockchain? orgs can only read data that he put, but cannot read other orgs put..

Swhit210 (Tue, 23 Jul 2019 17:27:23 GMT):
I am getting this same error right now. Did you happen to resolve this issue?

walmon (Tue, 23 Jul 2019 17:36:44 GMT):
why do you think it's a AWS specific issue?

ykim 1 (Tue, 23 Jul 2019 17:49:17 GMT):
Probably its not a AWS specific issue. I'm just want to get some info from develop who has similar env

kpd 2 (Wed, 24 Jul 2019 00:49:03 GMT):
Has joined the channel.

Psingh (Wed, 24 Jul 2019 05:27:34 GMT):
Hey everyone, I'm unable to instantiate the chaincode. getting below error and since the chaincode container closing instantly hence not bale to check the logs too. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 ```

Psingh (Wed, 24 Jul 2019 05:27:34 GMT):
Hey everyone, I'm unable to instantiate the chaincode. getting below error and since the chaincode container closing instantly hence not able to check the logs too. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 ```

Psingh (Wed, 24 Jul 2019 05:27:34 GMT):
Hey everyone, I'm unable to instantiate the chaincode. getting below error and since the chaincode container closing instantly hence not able to check the logs too. ``` root@0b9681f73d0c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.mytrade.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n mycc -l golang -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "AND ('sellerMSP.peer','buyerMSP.peer')" 2019-07-24 05:31:23.685 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-07-24 05:31:23.685 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 ```

GioG12 (Wed, 24 Jul 2019 06:29:07 GMT):
Set - FABRIC_LOGGING_SPEC=debug to see detailed errors in cointainer

RicardoMurillo (Wed, 24 Jul 2019 06:33:43 GMT):
Has joined the channel.

MatteoLinear (Wed, 24 Jul 2019 08:27:27 GMT):
Is there a way for an endorse policy to be only for a specific function instead of all the chaincode?

ayusht11 (Wed, 24 Jul 2019 09:38:17 GMT):
You can check the MSP of the function caller and write the required logic within chaincode.

ayusht11 (Wed, 24 Jul 2019 09:40:48 GMT):
check this @MatteoLinear : https://github.com/grepruby/ERC20-Token-On-Hyperledger/blob/8665b1d2e9e2f0e981160758b0ea8c30824ceb64/chaincode/token_chaincode/node/tokens/OwnableToken.js#L34

Norikoff (Wed, 24 Jul 2019 09:48:55 GMT):
Has joined the channel.

Norikoff (Wed, 24 Jul 2019 09:48:56 GMT):
Hi there, I have some problem with fabric 1.4.2. Before, I did invoke configuration system chaincode(cscc) for all new channels which I create with node sdk. After update, i have this errors 1) [Channel.js]: getEndorsementPlan - looking at plan_id of {"chaincodes":[{"name":"cscc"}]} [Channel.js]: getEndorsementPlan - plan not found in known plans {"chaincodes":[{"name":"cscc"}]} 2) error: [DiscoveryEndorsementHandler]: endorse - no endorsement plan found for {"chaincodes":[{"name":"cscc"}]} error: [DiscoveryEndorsementHandler]: endorse - no endorsement plan found for {"chaincodes":[{"name":"cscc"}]} 3) Error: No endorsement plan available for {"chaincodes":[{"name":"cscc"}]}

Vgkmanju (Wed, 24 Jul 2019 10:37:01 GMT):
Hi, In fabric 2.0 alpha version, in token i try to change a variable name (quantity to worth) compiled and generated proto file and also changed the variable in the related files. when i try to run make all, i'm getting few error messages like "make: *** No rule to make target '.build/bin/peer', needed by 'peer'. Stop."

Vgkmanju (Wed, 24 Jul 2019 10:37:01 GMT):
Hi, In fabric 2.0 alpha version, in token i try to change a variable name (quantity to worth) compiled and generated proto file and also changed the variable in the related files. when i try to run make all, i'm getting few error messages like "make: *** No rule to make target '.build/bin/peer', needed by 'peer'. Stop." #fabtoken

Vgkmanju (Wed, 24 Jul 2019 10:37:01 GMT):
Hi, In fabric 2.0 alpha version, in token i try to change a variable name (quantity to worth) compiled and generated proto file and also changed the variable in the related files. when i try to run make all, i'm getting few error messages like "make: *** No rule to make target '.build/bin/peer', needed by 'peer'. Stop." #fabtoken #fabric-questions #general

Vgkmanju (Wed, 24 Jul 2019 10:37:39 GMT):
can you please help me in resolving the above issue. Thanks in advance.

triftx (Wed, 24 Jul 2019 11:23:33 GMT):
Has joined the channel.

triftx (Wed, 24 Jul 2019 11:23:34 GMT):
Hi all, are there any writeups on how to deploy the composer bna to amazon managed blockchain?

cvkonduru (Wed, 24 Jul 2019 12:05:46 GMT):
Has joined the channel.

cvkonduru (Wed, 24 Jul 2019 12:05:47 GMT):
Hello Team

cvkonduru (Wed, 24 Jul 2019 12:06:06 GMT):
I am using fabric 1.3 version and I am trying to instantiate my chaincode

cvkonduru (Wed, 24 Jul 2019 12:06:11 GMT):
I am getting below error

cvkonduru (Wed, 24 Jul 2019 12:06:13 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Get https://registry.centos.org/v1/_ping: dial tcp: lookup registry.centos.org on 169.192.215.147:53: no such host

cvkonduru (Wed, 24 Jul 2019 12:06:25 GMT):
Has anyone faced this issue earlier?

dijaa (Wed, 24 Jul 2019 12:31:04 GMT):
can anyone tell me how to fix that error: 2019-07-24 12:29:41.268 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

shreybhardwaj (Wed, 24 Jul 2019 12:33:01 GMT):
Has joined the channel.

shreybhardwaj (Wed, 24 Jul 2019 12:33:03 GMT):
Hi is there anyone who can help me with this error grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.21.0.4:2181: getsockopt: connection refused"; Reconnecting to {orderer.domainname.com:2181 } Error: failed to create deliver client: orderer client failed to connect to orderer.domainname.com:2181: failed to create new connection: context deadline exceeded

ownspies (Wed, 24 Jul 2019 12:57:58 GMT):
@shreybhardwaj that sounds like your orderer is not running or is not listening on port 2181

ownspies (Wed, 24 Jul 2019 12:58:09 GMT):
Question for the channel - We have HLF1.4.1 with TLS enabled for the peers and the orderers. The `peer channel ....` commands work fine but ONLY if I specify the `--cafile` that points to the TLSCA for the orderers. Once the peer has joined the channel however and the running `peer start` process tries to talk to the orderer, the peer outputs an error that the TLS cert for the orderer was signed by an unknown authority. How does the peer normally load the TLSCA file for the orderers so it can communicate? I don't see any CORE_PEER_TLS options to specify the cert chain.

ownspies (Wed, 24 Jul 2019 12:58:09 GMT):
We have HLF1.4.1 with TLS enabled for the peers and the orderers. The `peer channel ....` commands work fine but ONLY if I specify the `--cafile` that points to the TLSCA for the orderers. Once the peer has joined the channel however and the running `peer start` process tries to talk to the orderer, the peer outputs an error that the TLS cert for the orderer was signed by an unknown authority. How does the peer normally load the TLSCA file for the orderers so it can communicate? I don't see any CORE_PEER_TLS options to specify the cert chain.

ownspies (Wed, 24 Jul 2019 13:00:37 GMT):
Are you sure that the orderer is running and is set to listen on port 2181 ?

ownspies (Wed, 24 Jul 2019 13:27:25 GMT):
Here is the error I see in the peer logs after joining a channel: `2019-07-24 13:25:45.839 UTC [grpc] createTransport -> DEBU aa6 grpc: addrConn.createTransport failed to connect to {orderer-01.dev.mydomain.com:7050 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting..`

ownspies (Wed, 24 Jul 2019 13:31:39 GMT):
I thought the peer is supposed to pull the chain when it joins a channel, according to https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html: `When a peer joins a channel, root CA certificate chains of the channel members are read from the config block of the channel and are added to the TLS client and server root CAs data structure. So, peer to peer communication, peer to orderer communication should work seamlessly.` although that may just pull the CA and not the TLS CA for all the channel members

ownspies (Wed, 24 Jul 2019 13:32:48 GMT):
I've also tried setting `ORDERER_TLS_ROOTCERT_FILE` on the peer, but that does not help; I should also note that we have a fully working 4 orderer Kafka based setup working without problem. This only started once we added ETCDRAFT. We have TLS enabled on the orderers and peers on the Kafka based setup as well

Daka 1 (Wed, 24 Jul 2019 13:49:47 GMT):
Hello, Where are the actors' digital certificates saved and how do they "use" them when interacting with a Fabric network ?

phantom.assasin (Wed, 24 Jul 2019 13:50:02 GMT):
Where can I raise a JIRA for a feature request?

ownspies (Wed, 24 Jul 2019 13:52:48 GMT):
Google 'hyperledger JIRA' and you'll get the URL... I don't recall it off the top of my head

Abrara (Wed, 24 Jul 2019 14:30:34 GMT):
Hi, quick question, if we remove data from the couchDB database, the peer will have a false view of the world state. How to make sure he recovers a view of the actual ledger? I tried stgh with 2 orgs in 1 channel, removing data from the couchDB of peer0.org1 and then inserting some new data: the peer didn't get the manually deleted data back, but had the new data. Any explanation would be welcomed

GioG12 (Wed, 24 Jul 2019 14:38:39 GMT):
Hello everyone, I have some questions about Hyperledger concepts 1. If network has many channels and these channels have their own different ledgers, how does blockchain looks like from network wide point of view? 2. If network has thousands of transactions per second how do many ordering nodes (ex 10) synchronize and order transactions in blocks?

Daka 1 (Wed, 24 Jul 2019 14:43:08 GMT):
1. 1 channel means 1 ledger. a fabric network can have as many channels as hardware is capable, only the participants in those channels can see the ledgers' transactions. If 1 person is part from 50% of the ledgers he will see the transactions and will not be notified of the actions in the rest of the ledgers.

GioG12 (Wed, 24 Jul 2019 14:48:18 GMT):
So networks saves informations as chainn of blocks (blockchain) and we have only access to our channel transactions

GioG12 (Wed, 24 Jul 2019 14:48:18 GMT):
So network saves information as chain of blocks (blockchain) and we have only access to our channel transactions

icarrascol (Wed, 24 Jul 2019 15:26:15 GMT):
hello, does anyone know how to persist fabric-ca database

Daka 1 (Wed, 24 Jul 2019 16:37:33 GMT):
your network consists of people and channels (roughly), these people can be connected in different ways in different channels. each channel is a standalone blockchain not connected in any way to the others (unless you make it so) and you have access to the blockchains (channels) which you are part from (if you are not super admin of the network)

bereal (Wed, 24 Jul 2019 16:54:11 GMT):
Has joined the channel.

bereal (Wed, 24 Jul 2019 16:54:13 GMT):
Hello, how much of a job would be to add a new language to write chaincodes in? Also, considering that the chaincodes run in containers anyway, would it make sense to have a generic support for "run this image as a chaincode"?

HienPham (Wed, 24 Jul 2019 17:17:16 GMT):
Has joined the channel.

HienPham (Wed, 24 Jul 2019 17:25:09 GMT):
Hi guys, can anyone explain to me what is the meaning of this error message "sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied". This happen when I change the configtx.yaml and create the mychannel.block. Thank you

vasanthan-rk (Wed, 24 Jul 2019 17:36:07 GMT):
Has joined the channel.

vasanthan-rk (Wed, 24 Jul 2019 17:38:53 GMT):
Hi gays i am new in blockchain need some clarity.

vasanthan-rk (Wed, 24 Jul 2019 17:39:21 GMT):
may i now what is decentralized?

theDweeb (Wed, 24 Jul 2019 18:00:35 GMT):
Does anyone have any updated resources on setting up multiple connection profiles? I have a multi org network but all of the invokes/queries go through just one org's CA. I have 4 identical CP's for each org with the only difference is the client: name

HritikGupta (Wed, 24 Jul 2019 18:24:33 GMT):
``` ```

HritikGupta (Wed, 24 Jul 2019 18:41:13 GMT):
``` Policies: Readers: Type: Signature Rule: "OR('OrdererMSP.member')" Writers: Type: Signature Rule: "OR('OrdererMSP.member')" Admins: Type: Signature Rule: "OR('OrdererMSP.admin')" ``` This is wrt ACL in configtx.yaml. Let's say I define my own policy `foo` and specify the rule underneath; where do I validate that the policy is not violated?

shreybhardwaj (Thu, 25 Jul 2019 04:15:46 GMT):
Yes the order is running and the 2181 port is assign to the zookeeper.

shreybhardwaj (Thu, 25 Jul 2019 04:28:49 GMT):
Thanks @ownspies for reviewing my question. My domain server is up and running (domain.com) however I've also tried to main the AAA record. By setting it as orderer.domain.com But there is not success. I don't know why its dialing 172.21.0.4. I've passed the IP in configtx.yaml under the Orderer section. I've provided kafka.

Daka 1 (Thu, 25 Jul 2019 05:51:13 GMT):
Hello, Where are the actors' digital certificates saved and how do they "use" them when interacting with a Fabric network ?

nwyee (Thu, 25 Jul 2019 06:01:03 GMT):
Has joined the channel.

nwyee (Thu, 25 Jul 2019 06:01:03 GMT):
sha256

nwyee (Thu, 25 Jul 2019 06:40:48 GMT):
which crypto protocols is used in common in Hyperledger Fabric? Is it okay ( safe) by using default CSR with ECDSA-with-SHA256?

nwyee (Thu, 25 Jul 2019 06:43:58 GMT):
I want to get 521 key size of user enrollment from application. Is It possible?

nwyee (Thu, 25 Jul 2019 06:45:04 GMT):
I tried to change key algorithm in fabric-ca-config.yaml file for Fabric-CA-Server and Client .

nwyee (Thu, 25 Jul 2019 06:46:25 GMT):
From nodejs application, I can enroll admin user, it stills ok, but when i try to make transaction, it is failed.

nwyee (Thu, 25 Jul 2019 06:49:04 GMT):
```root@77fe471e78b4:~# fabric-ca-server start -c /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml -b admin:adminpw 2019/07/24 02:05:09 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2019/07/24 02:05:09 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server 2019/07/24 02:05:09 [INFO] Server Version: 1.1.1-snapshot-e656889 2019/07/24 02:05:09 [INFO] Server Levels: &{Identity:1 Affiliation:1 Certificate:1} 2019/07/24 02:05:09 [INFO] generating key: &{A:ecdsa S:384} 2019/07/24 02:05:09 [INFO] encoded CSR 2019/07/24 02:05:10 [INFO] signed certificate with serial number 110264769529564364573401896112004006643018820041 2019/07/24 02:05:10 [INFO] The CA key and certificate were generated for CA 2019/07/24 02:05:10 [INFO] The key was stored by BCCSP provider 'SW' 2019/07/24 02:05:10 [INFO] The certificate is at: /etc/hyperledger/fabric-ca-server/ca-cert.pem 2019/07/24 02:05:10 [INFO] Initialized sqlite3 database at /etc/hyperledger/fabric-ca-server/fabric-ca-server.db 2019/07/24 02:05:10 [INFO] Home directory for default CA: /etc/hyperledger/fabric-ca-server Error: TCP listen failed for http://0.0.0.0:7054: listen tcp 0.0.0.0:7054: bind: address already in use root@77fe471e78b4:~# openssl x509 -in /etc/hyperledger/fabric-ca-server/ca-cert.pem -text Certificate: Data: Version: 3 (0x2) Serial Number: 13:50:71:7a:31:1a:87:0a:e1:f0:6e:c6:a1:5b:a9:61:2a:a0:e9:c9 Signature Algorithm: ecdsa-with-SHA384 Issuer: C=US, ST=North Carolina, O=Hyperledger, OU=Fabric, CN=fabric-ca-server Validity Not Before: Jul 24 02:00:00 2019 GMT Not After : Jul 20 02:00:00 2034 GMT Subject: C=US, ST=North Carolina, O=Hyperledger, OU=Fabric, CN=fabric-ca-server Subject Public Key Info: Public Key Algorithm: id-ecPublicKey Public-Key: (384 bit) pub: 04:93:b4:a1:c8:64:46:65:82:b1:c5:78:eb:2a:ac: 7f:ae:53:e1:83:72:c7:2c:b6:69:72:19:cf:71:37: 59:2e:03:4b:26:59:2c:d2:df:fa:f5:60:a2:45:25: 5f:87:e0:a4:50:0c:e2:da:a3:2e:6c:85:6d:63:45: 21:71:3b:36:91:92:45:11:f4:79:d4:c9:88:ef:d7: 09:41:25:79:fb:f6:41:e5:59:0f:e3:ca:d0:e6:91: c2:0d:f7:2a:4f:18:ba ASN1 OID: secp384r1 NIST CURVE: P-384 X509v3 extensions: X509v3 Key Usage: critical Certificate Sign, CRL Sign X509v3 Basic Constraints: critical CA:TRUE, pathlen:1 X509v3 Subject Key Identifier: 1D:3F:1A:0C:52:F2:5E:06:C7:49:DE:BD:8D:9A:F7:A1:8A:18:FF:64 Signature Algorithm: ecdsa-with-SHA384 30:65:02:31:00:ea:41:9e:ad:87:e3:0c:67:d6:63:2d:72:55: de:b2:27:af:f7:1b:16:ba:a4:27:d5:11:6c:2b:99:2a:2e:f9: a0:5a:9e:8b:cd:43:da:32:a6:76:bd:93:e7:e8:18:e1:ee:02: 30:04:58:a4:8b:10:41:2e:91:a5:f1:24:9d:3b:8d:e7:99:c6: 47:04:95:4a:03:8f:00:10:c1:38:d7:bb:34:d8:ee:4b:1d:e5: 1c:c8:0b:ca:86:d3:2f:9d:32:f1:2b:fb:f1 -----BEGIN CERTIFICATE----- MIICVDCCAdqgAwIBAgIUE1BxejEahwrh8G7GoVupYSqg6ckwCgYIKoZIzj0EAwMw aDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK EwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMt Y2Etc2VydmVyMB4XDTE5MDcyNDAyMDAwMFoXDTM0MDcyMDAyMDAwMFowaDELMAkG A1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQKEwtIeXBl cmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMtY2Etc2Vy dmVyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEk7ShyGRGZYKxxXjrKqx/rlPhg3LH LLZpchnPcTdZLgNLJlks0t/69WCiRSVfh+CkUAzi2qMubIVtY0UhcTs2kZJFEfR5 1MmI79cJQSV5+/ZB5VkP48rQ5pHCDfcqTxi6o0UwQzAOBgNVHQ8BAf8EBAMCAQYw EgYDVR0TAQH/BAgwBgEB/wIBATAdBgNVHQ4EFgQUHT8aDFLyXgbHSd69jZr3oYoY /2QwCgYIKoZIzj0EAwMDaAAwZQIxAOpBnq2H4wxn1mMtclXesiev9xsWuqQn1RFs K5kqLvmgWp6LzUPaMqZ2vZPn6Bjh7gIwBFikixBBLpGl8SSdO43nmcZHBJVKA48A EME417s02O5LHeUcyAvKhtMvnTLxK/vx -----END CERTIFICATE-----```

GuillaumeTong (Thu, 25 Jul 2019 06:58:19 GMT):
Hello, I just saw a quote on this page: https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html#msp-configuration "It is important to note that MSP identities never expire" It this still the case? This would make cert renewal easier than what I initially thought when switching for newer certs since channel updates are not needed.

DLTChacha (Thu, 25 Jul 2019 07:02:34 GMT):
Hello, I've heard that Kafka based support is available only till 2021 for Fabric, and the community recommends moving to Raft. It that true?

HARPARTAPSINGH (Thu, 25 Jul 2019 07:07:03 GMT):
Has joined the channel.

HARPARTAPSINGH (Thu, 25 Jul 2019 07:07:05 GMT):
Hello Expert getting an error on instantiate chaincode on peer. Chaincode is installed on all peers. here is my error logs Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0

HARPARTAPSINGH (Thu, 25 Jul 2019 07:07:05 GMT):
Hello Expert getting an error on instantiate chaincode on peer. Chaincode is installed on all peers. here is my error logs `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0`

HARPARTAPSINGH (Thu, 25 Jul 2019 07:08:10 GMT):
Error on peer logs : ` ERRO 051 [mychannel][f85e2d8d] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed`

HARPARTAPSINGH (Thu, 25 Jul 2019 07:08:52 GMT):
can anyone help me out to resolve this issue

kopaygorodsky (Thu, 25 Jul 2019 07:39:08 GMT):
Has joined the channel.

kopaygorodsky (Thu, 25 Jul 2019 07:39:35 GMT):
I've posted this in ca channel, maybe here somebody from devs can answer. Hello, I have a question regarding TLS usage in fabric protocols. Not sure that it's the right channel to ask it, but haven't found a more suitable one. So I'm running my organization(ca, peers, orderers) under some proxy which does TLS termination and then traffic goes unsecured inside a private network. All configs for nodes have disabled TLS. In system channel config I define an external address to my orderer (since foreign peers should be able to connect as well)- Addresses: [ orderer.domain.com:443] Peers are not able to connect to this endpoint through gossip protocol because mutual TLS is required for secured endpoints, but I just want to pass proxy TLS, not mutual TLS of orderer node. I'm getting error `2019-07-24 22:13:46.686 UTC [deliveryClient] connect -> ERRO 292 Connection to orderer.mydomain.com:443 established but was unable to create gRPC stream: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: ` `Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt` The error message is not clear, but I tested it with 80 port and it works, so it's TLS problem. I did some debug: I can connect to the orderer node if I add certificates from SystemCertPool() to the TransportCredentials of my test grpc client. I can create PR to fix this, but don't know where to start. Credentials added to the client only if `peer.tls.enabled`, but I have it disabled and just want to use system cert pool for any secured connections. https://github.com/hyperledger/fabric/blob/release-1.4/core/deliverservice/deliveryclient.go#L308 Don't think that you would approve adding one more config param like 'core.tls.systemCertPool'. Could you help me with this question?

kopaygorodsky (Thu, 25 Jul 2019 07:39:35 GMT):
I've posted this in ca channel, maybe here somebody from devs can answer. Hello, I have a question regarding TLS usage in fabric protocols. Not sure that it's the right channel to ask it, but haven't found a more suitable one. So I'm running my organization(ca, peers, orderers) under some proxy which does TLS termination and then traffic goes unsecured inside a private network. All configs for nodes have disabled TLS. In system channel config I define an external address to my orderer (since foreign peers should be able to connect as well)- Addresses: [ orderer.domain.com:443] Peers are not able to connect to this endpoint through gossip protocol because mutual TLS is required for secured endpoints, but I just want to pass proxy TLS, not mutual TLS of orderer node. I'm getting error `2019-07-24 22:13:46.686 UTC [deliveryClient] connect -> ERRO 292 Connection to orderer.mydomain.com:443 established but was unable to create gRPC stream: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: ` `Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt` The error message is not clear, but I tested it with 80 port and it works, so it's TLS problem. I did some debug: I can connect to the orderer node if I add certificates from SystemCertPool() to the TransportCredentials of my test grpc client. I can create PR to fix this, but don't know where to start. Credentials added to the client only if `peer.tls.enabled`, but I have it disabled and just want to use system cert pool for any secured connections. https://github.com/hyperledger/fabric/blob/release-1.4/core/deliverservice/deliveryclient.go#L308 Don't think that devs would approve adding one more config param like 'core.tls.systemCertPool'. Could you help me with this question?

kopaygorodsky (Thu, 25 Jul 2019 07:39:35 GMT):
I've posted this in ca channel, maybe here somebody from devs can answer. Hello, I have a question regarding TLS usage in fabric protocols. Not sure that it's the right channel to ask it, but haven't found a more suitable one. So I'm running my organization(ca, peers, orderers) under some proxy which does TLS termination and then traffic goes unsecured inside a private network. All configs for nodes have disabled TLS. In system channel config I define an external address to my orderer (since foreign peers should be able to connect as well)- Addresses: [ orderer.domain.com:443] Peers are not able to connect to this endpoint through gossip protocol because mutual TLS is required for secured endpoints, but I just want to pass proxy TLS, not mutual TLS of orderer node. I'm getting error `2019-07-24 22:13:46.686 UTC [deliveryClient] connect -> ERRO 292 Connection to orderer.mydomain.com:443 established but was unable to create gRPC stream: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: ` `Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt` The error message is not clear, but I tested it with 80 port and it works, so it's TLS problem. I did some debug: I can connect to the orderer node if I add certificates from SystemCertPool() to the TransportCredentials of my test grpc client. I can create PR to fix this, but don't know where to start. Credentials added to the client only if `peer.tls.enabled`, but I have it disabled and just want to use system cert pool for any secured connections. https://github.com/hyperledger/fabric/blob/release-1.4/core/deliverservice/deliveryclient.go#L308 Don't think that core devs would approve adding one more config param like 'core.tls.systemCertPool'. Could you help me with this question?

Abrara (Thu, 25 Jul 2019 07:56:45 GMT):
try to get the container logs to know why the ocntainer exited with 0

icarrascol (Thu, 25 Jul 2019 14:50:28 GMT):
does anyone knows where the orderer is storing last block number

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. I the configtx file I made orderer type to kafka. 2. Added a single orderer address

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. I the configtx file I made orderer type to kafka. 2. Added a single orderer address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. I the configtx file I made orderer type to kafka. 2. Added a single orderer address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d I see some kafka related logs in orderer but none in the kafka containers logs

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. In the configtx file I made orderer type to kafka. 2. Added a single orderer address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d I see some kafka related logs in orderer but none in the kafka containers logs

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. In the configtx file I made orderer type to kafka. 2. Added a single orderer(orderer.example.com) address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d I see some kafka related logs in orderer but none in the kafka containers logs

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. In the configtx file I made orderer type to kafka. 2. Added a single orderer(orderer.example.com) address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d I see some kafka related logs in orderer but none in the kafka containers logs https://stackoverflow.com/questions/57205972/kafka-based-osn-in-local-single-host-fabric-network-but-no-logs-in-the-kafka-co

ialom1 (Thu, 25 Jul 2019 15:13:37 GMT):
#fabric-questions I am using kafka-based ordering service in my local single-host Fabric network, But I dont see any logs in the kafka containers when I perform transactions: My approach was: 1. In the configtx file I made orderer type to kafka. 2. Added a single orderer(orderer.example.com) address 3. Added 4 kafka brokers 4. generated the genesis and channel configs 5. Updated my docker compose to launch the kafka and zookeeper containers 6. Brought up the entire network using docker-compose -f ... up -d I see some kafka related logs in orderer but none in the kafka containers logs https://stackoverflow.com/questions/57205972/kafka-based-osn-in-local-single-host-fabric-network-but-no-logs-in-the-kafka-co

ownspies (Thu, 25 Jul 2019 15:16:02 GMT):
I have been going through something similar myself. Have you added the CA chain for the TLS certs to the `msp/tlscacerts` folder for all orgs, all orderers, and all peers? I just learned that the configtxgen and peer commands embed the certs from the `map/tlscacerts` into the genesis block, then the `peer channel join` commands receive a channel config block from the orderer that includes those same TLS certs. Also, I think you can use `CORE_PEER_TLS_ENABLED=true` with `CORE_PEER_TLS_CLIENTAUTHREQUIRED=false` so you do TLS without mutual auth. You'd use the same orderer specific attributes on the orderer nodes to use TLS without mutual auth.

kopaygorodsky (Thu, 25 Jul 2019 15:31:33 GMT):
but I don't manage TLS certificates in fabric, only on proxy node.

ownspies (Thu, 25 Jul 2019 18:07:41 GMT):
You still have to distribute the TLSCA files to all the nodes, otherwise you'll get "signed by unknown authority" errors

ownspies (Thu, 25 Jul 2019 18:08:22 GMT):
everything under the MSP directory ends up getting added to the HLF config block, including the TLSCA files, that is how the peers and orderers talk to each other using TLS

warrenlamb (Thu, 25 Jul 2019 19:37:15 GMT):
Im trying to implement private data collections but seem to be having trouble implementing the chaincode to store the data in a private collection, has anyone had any success doing this in javascript?

icarrascol (Thu, 25 Jul 2019 20:25:53 GMT):
does anyone know how to use the new peer node rollback function implemented in v1.4.2

kopaygorodsky (Thu, 25 Jul 2019 21:07:41 GMT):
TLS is not related to signing, it has different purpose

Shubham-koli (Fri, 26 Jul 2019 04:26:24 GMT):

Screenshot from 2019-07-26 09-49-41.png

HLFPOC (Fri, 26 Jul 2019 04:26:54 GMT):
Hello Team, How many RAFT orderer nodes should be configured in a network of 4 organizations? Should we run 1 ordering node/per org or go with the recommended cluster size of 3 to 5 nodes ?

HLFPOC (Fri, 26 Jul 2019 04:26:54 GMT):
Hello Team, How many RAFT orderer nodes should be configured in a network of 4 organizations? Should we run 1 ordering node/per org or go with the recommended cluster size of 3 to 5 nodes ? @mastersingh24 @yacovm ?

Shubham-koli (Fri, 26 Jul 2019 04:26:56 GMT):
I'm getting this error while making post request to install chaincode endpoint in balance-transfer

Shubham-koli (Fri, 26 Jul 2019 04:27:08 GMT):
any idea what might be the cause?

Shubham-koli (Fri, 26 Jul 2019 04:27:24 GMT):

Screenshot from 2019-07-26 09-49-41.png

Shubham-koli (Fri, 26 Jul 2019 04:29:39 GMT):
the Login Request,Create Channel request,Join Channel request

Shubham-koli (Fri, 26 Jul 2019 04:29:39 GMT):
the Login Request,Create Channel request,Join Channel request work just fine. no issues at all.

Shubham-koli (Fri, 26 Jul 2019 04:38:16 GMT):

Screenshot from 2019-07-26 10-07-34.png

Shubham-koli (Fri, 26 Jul 2019 04:47:44 GMT):
okay .got it.

Olexander (Fri, 26 Jul 2019 04:48:08 GMT):
Has joined the channel.

Olexander (Fri, 26 Jul 2019 04:48:13 GMT):
I have some problems during installing Hyperledger Fabric Docker Images and Binaries.

Shubham-koli (Fri, 26 Jul 2019 04:48:51 GMT):
answer to this is to remove the $PWD and use following body { "peers": ["peer0.org1.example.com","peer1.org1.example.com"], "chaincodeName":"mycc", "chaincodePath":"artifacts/src/github.com/example_cc/node", "chaincodeType": "node", "chaincodeVersion":"v0" }

Olexander (Fri, 26 Jul 2019 04:56:17 GMT):
In the course on edX from LinuxFoundationX: LFS171x "Blockchain for Business - An Introduction to Hyperledger Technologies" written, after running command `$ curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0` expected responce is:

Olexander (Fri, 26 Jul 2019 04:56:17 GMT):
In the course from LinuxFoundationX on edX: LFS171x "Blockchain for Business - An Introduction to Hyperledger Technologies" written, that after running command `$ curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0` expected responce is:

Olexander (Fri, 26 Jul 2019 04:56:35 GMT):

Fabric_installation_1.jpg

Olexander (Fri, 26 Jul 2019 04:57:46 GMT):

Снимок экрана от 2019-07-25 19-25-56.png

Olexander (Fri, 26 Jul 2019 04:58:02 GMT):
I'm running

Olexander (Fri, 26 Jul 2019 04:58:02 GMT):
I'm running:

Olexander (Fri, 26 Jul 2019 04:58:14 GMT):

Снимок экрана от 2019-07-25 19-25-56.png

Olexander (Fri, 26 Jul 2019 04:59:00 GMT):
But on my computer i can see only:

Olexander (Fri, 26 Jul 2019 04:59:22 GMT):

Снимок экрана от 2019-07-25 13-27-24.png

Olexander (Fri, 26 Jul 2019 05:00:52 GMT):
Next points are absent there: ``` ``` - .../fabric-couchdb, both latest and x86_64-1...; ``` ``` - .../fabric-kafka, the same; ``` ``` - .../fabric-zookeeper, the same; ``` ``` - .../fabric-baseos x86_64-0.3.2;

Olexander (Fri, 26 Jul 2019 05:00:52 GMT):
Next points are absent there: - .../fabric-couchdb, both latest and x86_64-1...; - .../fabric-kafka, the same; - .../fabric-zookeeper, the same; - .../fabric-baseos x86_64-0.3.2;

Olexander (Fri, 26 Jul 2019 05:01:32 GMT):
There was erors during installing:

Olexander (Fri, 26 Jul 2019 05:01:32 GMT):
There was errors during installing:

Olexander (Fri, 26 Jul 2019 05:01:57 GMT):

Снимок экрана от 2019-07-25 19-22-22.png

Olexander (Fri, 26 Jul 2019 05:02:19 GMT):

Снимок экрана от 2019-07-25 19-24-01.png

Olexander (Fri, 26 Jul 2019 05:02:57 GMT):
How can I get fabric-couchdb, fabric-kafka, fabric-zookeeper and fabric-baseos?

shreybhardwaj (Fri, 26 Jul 2019 06:06:18 GMT):
I'm getting an error when pass this ./byfn.sh -m up -s kafka -a Error: got unexpected status: SERVICE_UNAVAILABLE -- will not enqueue, consenter for this channel hasn't started yet when I check the docker logs I'm getting this: 2019-07-26 05:57:31.298 UTC [orderer/common/broadcast] Handle -> WARN 009 [channel: businesschannel] Rejecting broadcast of message from 172.21.0.10:38946 with SERVICE_UNAVAILABLE: rejected by Consenter: will not enqueue, consenter for this channel hasn't started yet 2019-07-26 05:57:31.300 UTC [common/deliver] Handle -> WARN 00a Error reading from 172.21.0.10:38944: rpc error: code = Canceled desc = context canceled ~ I'm deploying this from on my local system. However the network contains 2 organization. Which has 2 peers under each organization. And these domain (organization are placed on aws server). I've passed the server IP in configtx.yaml under the Orderer section. And the Zookeeper and kafka is running on the server. How can I fix this. Also am I doing anything wrong with the development. Please suggest me so that I can develop my own private network.

ShefaliMittal (Fri, 26 Jul 2019 07:55:59 GMT):
Hi Team, I have a chaincode in which I have returned some error using shim.Error("This is error from chaincode"); I am invoking chaincode via node sdk using - Contract.SubmitTransaction() Now when the error is returned from chaincode the catch error says - Error: No valid responses from any peers. 1 peer error responses: This is error from chaincode I want to capture only the error i.e "This is error from chaincode" and discard other string. Please tell me how could I do that

mattiabolzonella1 (Fri, 26 Jul 2019 09:22:43 GMT):
Hi, I've upgraded Fabric to 1.4.2 and I wonder how (and in which file) to specify orderer endpoints per orgs. Thanks in advance

nwyee (Fri, 26 Jul 2019 09:33:04 GMT):
can i generate crypto material without using cryptogen because i need to generate private key with P521 with SHA512 ?

nwyee (Fri, 26 Jul 2019 09:33:11 GMT):
Is it possible

nwyee (Fri, 26 Jul 2019 09:33:13 GMT):
?

Shubham-koli (Fri, 26 Jul 2019 12:54:59 GMT):
I was experimenting on the hyperledger fabric FabCar example

Shubham-koli (Fri, 26 Jul 2019 12:55:14 GMT):
There's this line which submits transaction

Shubham-koli (Fri, 26 Jul 2019 12:55:14 GMT):
await contract.submitTransaction('createCar', 'CAR12', 'Honda', 'Accord', 'Black', 'Tom');

Shubham-koli (Fri, 26 Jul 2019 12:55:31 GMT):
but in response it doesn't post transaction id

Shubham-koli (Fri, 26 Jul 2019 12:55:48 GMT):
what can I do so I can get access to transaction Id?

awjh (Fri, 26 Jul 2019 13:08:20 GMT):
You cannot get the transaction ID by that function. The docs for submitTransaction is equivalent to calling `createTransaction(name).submit(). Therefore you can change the code to do something like`const myTx = contract.createTransaction('createCar')`. You can then submit the transaction by calling `myTx.submit( 'CAR12', 'Honda', 'Accord', 'Black')`. And finally you can then get the transaction ID for your submitted transaction by calling `myTx.getTransactionID()`. As a block: ``` const myTx = contract.createTransaction('createCar'); ```

awjh (Fri, 26 Jul 2019 13:08:20 GMT):
You cannot get the transaction ID by that function. The docs for submitTransaction is equivalent to calling `createTransaction(name).submit()`. Therefore you can change the code to do something like`const myTx = contract.createTransaction('createCar')`. You can then submit the transaction by calling `myTx.submit( 'CAR12', 'Honda', 'Accord', 'Black')`. And finally you can then get the transaction ID for your submitted transaction by calling `myTx.getTransactionID()`. As a block: ``` const myTx = contract.createTransaction('createCar'); myTx.submit( 'CAR12', 'Honda', 'Accord', 'Black'); const txId = myTx.getTransactionID(); ```

awjh (Fri, 26 Jul 2019 13:08:20 GMT):
You cannot get the transaction ID by that function. The docs for submitTransaction is equivalent to calling `createTransaction(name).submit()`. Therefore you can change the code to do something like`const myTx = contract.createTransaction('createCar')`. You can then submit the transaction by calling `myTx.submit('CAR12', 'Honda', 'Accord', 'Black')`. And finally you can then get the transaction ID for your submitted transaction by calling `myTx.getTransactionID()`. As a block: ``` const myTx = contract.createTransaction('createCar'); myTx.submit('CAR12', 'Honda', 'Accord', 'Black'); const txId = myTx.getTransactionID(); ```

awjh (Fri, 26 Jul 2019 13:08:20 GMT):
You cannot get the transaction ID by that function. The docs for submitTransaction is equivalent to calling `createTransaction(name).submit()`. Therefore you can change the code to do something like`const myTx = contract.createTransaction('createCar')`. You can then submit the transaction by calling `await myTx.submit('CAR12', 'Honda', 'Accord', 'Black')`. And finally you can then get the transaction ID for your submitted transaction by calling `myTx.getTransactionID()`. As a block: ``` const myTx = contract.createTransaction('createCar'); await myTx.submit('CAR12', 'Honda', 'Accord', 'Black'); const txId = myTx.getTransactionID(); ``` Docs links: https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Contract.html https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Transaction.html

awjh (Fri, 26 Jul 2019 13:08:20 GMT):
You cannot get the transaction ID by that function. The docs for submitTransaction is equivalent to calling `createTransaction(name).submit()`. Therefore you can change the code to do something like`const myTx = contract.createTransaction('createCar')`. You can then submit the transaction by calling `myTx.submit('CAR12', 'Honda', 'Accord', 'Black')`. And finally you can then get the transaction ID for your submitted transaction by calling `myTx.getTransactionID()`. As a block: ``` const myTx = contract.createTransaction('createCar'); myTx.submit('CAR12', 'Honda', 'Accord', 'Black'); const txId = myTx.getTransactionID(); ``` Docs links: https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Contract.html https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Transaction.html

dan13 (Fri, 26 Jul 2019 15:59:17 GMT):
https://jira.hyperledger.org/browse/FAB-15482?jql=text%20~%20%22raft%20tls%22 Pre v2.0 does not support orderers in multiple organizations when using service discovery

yacovm (Fri, 26 Jul 2019 16:33:02 GMT):
@dan13 it's supported in 1.4.2

yacovm (Fri, 26 Jul 2019 16:33:37 GMT):
see https://jira.hyperledger.org/browse/FAB-7559

weeaix (Sat, 27 Jul 2019 05:48:33 GMT):
Has joined the channel.

weeaix (Sat, 27 Jul 2019 05:56:39 GMT):
Yes you can. I created mine using *openssl*. Didn't tried P-521 though.

Psingh (Sat, 27 Jul 2019 08:21:37 GMT):
Hey everyone, I'm getting below error when trying to instantiate the chaincode ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network "testscript"_byfn not found !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ```

Psingh (Sat, 27 Jul 2019 08:22:52 GMT):
docker network output: ``` alpha@GHOST-RIDER:/c/Projects/Go/src/github.com/hyperledger/testscript/network$ docker network ls NETWORK ID NAME DRIVER SCOPE f9254587632e bridge bridge local 330045e63a9a host host local bc400105fad3 none null local 85e6ec054b25 testscript_byfn bridge local ```

Olexander (Sat, 27 Jul 2019 08:32:28 GMT):
How can I get fabric-couchdb, fabric-kafka, fabric-zookeeper and fabric-baseos?

Olexander (Sat, 27 Jul 2019 08:32:44 GMT):
I ran:

Olexander (Sat, 27 Jul 2019 08:33:13 GMT):

Снимок экрана от 2019-07-25 19-25-56.png

Olexander (Sat, 27 Jul 2019 08:33:49 GMT):
and got some errors:

Olexander (Sat, 27 Jul 2019 08:33:55 GMT):

Снимок экрана от 2019-07-25 13-27-24.png

Olexander (Sat, 27 Jul 2019 08:34:00 GMT):

Снимок экрана от 2019-07-25 19-22-22.png

Olexander (Sat, 27 Jul 2019 08:34:23 GMT):

Снимок экрана от 2019-07-25 19-24-01.png

weeaix (Sat, 27 Jul 2019 09:50:00 GMT):
If `COMPOSE_PROJECT_NAME` in your .env file has double quotes around the var, try removing them. Unlike Unix, Docker currently treats quotes as part of the var.

ialom1 (Sat, 27 Jul 2019 16:06:42 GMT):
#fabric-questions Why are there NO logs in kafka containers during the transaction in fabric...?

qin (Sun, 28 Jul 2019 02:52:57 GMT):
Has joined the channel.

qin (Sun, 28 Jul 2019 02:52:58 GMT):
hi, I meet some problem when use go sdk. I have a hyperledger fabric testnet with 1 orgs and 2 peers per org.I try to install and instantiate chaincode with sdk. the per port is my custom port,such as 8031:7051. In sdk config, I config as peers: 9peer0.aaa.develop.com: url: 192.168.0.106:8031 # url: 9peer0.aaa.develop.com:8031 grpcOptions: ssl-target-name-override: 9peer0.aaa.develop.com keep-alive-time: 0s keep-alive-timeout: 20s keep-alive-permit: false fail-fast: false # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs allow-insecure: false tlsCACerts: but when i instantiate chaincode, it try to connect with port 7051,then throw out exception, how to solve it ,please!!! [fabsdk/fab] 2019/07/28 02:16:16 UTC - txn.SendProposal.func1 -> DEBU Received error response from txn proposal processing: Transaction processing for endorser [9peer1.aaa.develop.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [9peer1.aaa.develop.com:7051] ERROR: logging before flag.Parse: I0728 10:16:16.853437 93380 chaincode.go:67] sending deploy transaction proposal failed: Transaction processing for endorser [9peer1.aaa.develop.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [9peer1.aaa.develop.com:7051] ERROR: logging before flag.Parse: I0728 10:16:16.853487 93380 main.go:43] instantiate errsending deploy transaction proposal failed: Transaction processing for endorser [9peer1.aaa.develop.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [9peer1.aaa.develop.com:7051]

qin (Sun, 28 Jul 2019 02:54:00 GMT):
have any ideas about it? please

srinivaschejerla (Sun, 28 Jul 2019 03:24:04 GMT):
Has joined the channel.

srinivaschejerla (Sun, 28 Jul 2019 03:24:06 GMT):
Hi

coderdecoder01 (Sun, 28 Jul 2019 06:21:43 GMT):
Has joined the channel.

coderdecoder01 (Sun, 28 Jul 2019 06:21:45 GMT):
hi

Psingh (Sun, 28 Jul 2019 07:43:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=59q9JDkpyAdn9PLuC) you have disabled the allow-insecure flag. add grpcs in the url and then try it

hengfun (Sun, 28 Jul 2019 10:21:29 GMT):
Hi all does anyone know how to change to fabric order to a BFT orderer?

weeaix (Sun, 28 Jul 2019 12:15:20 GMT):
BFT is not implemented in Fabric yet, but it's in the roadmap. You can track the progress here: https://jira.hyperledger.org/browse/FAB-33 There is also an experimental plugin based on the BFTSmart protocol for Fabric 1.3 too, if you are interested: https://github.com/bft-smart/fabric-orderingservice

gregnotso (Sun, 28 Jul 2019 14:30:24 GMT):
does anyone know how to get past this warning message? [orderer.common.broadcast] Handle -> WARN 017 Error reading from 172.26.0.6:51540: rpc error: code = Canceled desc = context canceled - seems version independent

walmon (Sun, 28 Jul 2019 14:50:45 GMT):
what probles do you have?

thiagooliveira1985 (Sun, 28 Jul 2019 18:17:37 GMT):
Hi, im trying to do some queries in smart contract like this: await ctx.stub.getQueryResultWithPagination(queryString, pageSize, bookmark)

thiagooliveira1985 (Sun, 28 Jul 2019 18:17:51 GMT):
But im getting some errors:

thiagooliveira1985 (Sun, 28 Jul 2019 18:18:06 GMT):
[DiscoveryEndorsementHandler]: _build_endorse_group_member >> G0:0 - endorsement failed - Error: transaction returned with failure: SyntaxError: Unexpected token o in JSON at position 1 Failed to submit transaction: Error: Endorsement has failed

thiagooliveira1985 (Sun, 28 Jul 2019 18:18:56 GMT):
the query is: const queryString = `{"selector": {"agente": "usuario1"}}`;

thiagooliveira1985 (Sun, 28 Jul 2019 18:19:11 GMT):
What am I doing wrong?

madhukar_sh (Sun, 28 Jul 2019 23:44:14 GMT):
Has joined the channel.

madhukar_sh (Sun, 28 Jul 2019 23:44:20 GMT):
I have 3 peers running under 1 organization, in same channel, all of them have chaincode installed.. I am getting ENDORSEMENT_POLICY_FAILURE with following policies. 1) "AND('7sugarMSP.peer','7sugarMSP.peer')" 2) "OutOf(2, '7sugarMSP.peer', '7sugarMSP.peer', '7sugarMSP.peer')" What can I do to set endorsement between peers of my single organization

thiagooliveira1985 (Mon, 29 Jul 2019 01:31:27 GMT):
I did it!! its working now...

thiagooliveira1985 (Mon, 29 Jul 2019 01:31:42 GMT):
Anyway, thank u

nwyee (Mon, 29 Jul 2019 03:00:30 GMT):
If so, would you like to give me some recommend for curve to choose?

nwyee (Mon, 29 Jul 2019 03:03:04 GMT):
I dont know too much about hyperledger fabric. Can you give me guild line or any other references to create crypto material ?

Randyshu2018 (Mon, 29 Jul 2019 03:28:28 GMT):
hi,Any idea to check the online chaincode is from specific source code?

HylaJaponica (Mon, 29 Jul 2019 05:47:53 GMT):
thank u!

HylaJaponica (Mon, 29 Jul 2019 05:47:53 GMT):
i found, thank u! ARIGATO!

abityildiz (Mon, 29 Jul 2019 06:47:48 GMT):
hi all,how can i get transaction details?i need to transcation context data?i know txtId.i use to this method queryBlockByTxID.But i dont find transaction asset value

Aniket.1 (Mon, 29 Jul 2019 07:00:47 GMT):
To set fabric CA with tls which folder cert and key should be used: ``` 1. /crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls 2. /crypto-config/peerOrganizations/org1.example.com/tlsca ```

Aniket.1 (Mon, 29 Jul 2019 07:00:47 GMT):
Hello everyone, can someone suggest that to set fabric CA server with tls which folder cert and key should be used: ``` 1. /crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls 2. /crypto-config/peerOrganizations/org1.example.com/tlsca ```

Psingh (Mon, 29 Jul 2019 07:53:43 GMT):
Hey everyone I'm trying to instantiate the chaincode using go-sdk . below is the command that i'm sending ``` resp, err := setup.admin.InstantiateCC(setup.ChannelID, resmgmt.InstantiateCCRequest{ Name: setup.ChainCodeID, Path: setup.ChaincodeGoPath, Version: "1.0", Args: [][]byte{[]byte("init"), []byte("Seller"), []byte("100"), []byte("Buyer"), []byte("200")}, Policy: ccPolicy, }) ``` but when I checked the peer, chaincode was instantiated but with `Input = nil` value. ``` root@c6f8cf4dd928:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode list --instantiated -C mychannel Get instantiated chaincodes on channel mychannel: Name: myproject, Version: 1.0, Path: github.com/hyperledger/myproject/chaincode/, Input: , Escc: escc, Vscc: vscc ``` I'm using `chaincode_example02.go` chaincode I think there's some issue the way I'm sending the args. Please help

IsaSec (Mon, 29 Jul 2019 07:58:10 GMT):
hi, what exactly is responsible for doing data hash? Is it a hash for data in entire block or could it be for each transaction separately? How to retrieve data hash for particular transaction using a key ? I would like to retrieve hash for data kept in blockchain and generate same for data in external database and compare them (should be the same when data is the same). Any advice would be helpful. Thanks!

Psingh (Mon, 29 Jul 2019 08:01:01 GMT):
second one

Psingh (Mon, 29 Jul 2019 08:01:53 GMT):
Ca is set on Org level

Aniket.1 (Mon, 29 Jul 2019 08:07:31 GMT):
Thanks, I also think the same but some things confused me.

Aniket.1 (Mon, 29 Jul 2019 08:08:07 GMT):
@Psingh would you like to add the tls path for fabric-ca-client too?

Psingh (Mon, 29 Jul 2019 08:11:16 GMT):
u can refer to this link. https://github.com/hyperledger/fabric-sdk-go/tree/master/test/fixtures/config

Aniket.1 (Mon, 29 Jul 2019 08:15:26 GMT):
I don't see ca test config files there

tballast (Mon, 29 Jul 2019 08:22:19 GMT):
I'm no expert on Endorsement policies by any means, but what you are trying to do seems odd. From my understanding, an endorsement policy is used to define which roles need to endorse the transaction before it can be committed, and you are trying to specify the same rold more than once. Ideally, 7sugarMSP.peer would only need to sign once, as any of the peers with the same role under this MSP will be equivalent. If you wanted to vary it, you could use something like 7sugarMSP.peer and 7sugarMSP.admin. The way you have it specified would likely not make any sense to the application.

weeaix (Mon, 29 Jul 2019 08:25:53 GMT):
Sorry. I don't know much about cryptography so I'll leave that question for others. I learned how to create crypto material using openssl from [this tutorial](https://pki-tutorial.readthedocs.io/en/latest/simple/index.html). However, by default, openssl generates an rsa key. In order to create a ec key, you'll have to specify it explicitly. Something like this: ``` openssl req -new -newkey ec \ -pkeyopt ec_paramgen_curve:prime256v1 \ -pkeyopt ec_param_enc:named_curve \ -config my-root-ca.conf \ -out my-root-ca.csr \ -keyout private/my-root-ca.key ``` Available curves could be listed using this command: ``` openssl ecparam -list_curves ``` After every crypto material have been created, you'll have to place them in a [structured folder](https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html#msp-setup-on-the-peer-orderer-side). Quite cumbersome, isn't it? If you don't mind administrating another server, [fabric-ca](https://hyperledger-fabric-ca.readthedocs.io) might be a better choice.

Aniket.1 (Mon, 29 Jul 2019 08:34:29 GMT):
Have anyone setup fabric CA client and server with tls?

Kypros (Mon, 29 Jul 2019 08:59:06 GMT):
Has joined the channel.

marinkovicvlado (Mon, 29 Jul 2019 09:50:49 GMT):
Hyperledger Fabric...are you having a laugh? https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

marinkovicvlado (Mon, 29 Jul 2019 09:52:28 GMT):
hi, I worked on setting up TLS and mutual TLS in a network, I haven't worked with fabric ca client...what seems to be the problem...?

MeSSeRz (Mon, 29 Jul 2019 10:06:47 GMT):
Hi. Based on the documentation, the network creator (Org1 for example) can define what rights do other organizations have in the channel (readers, writers, admins) and also can define which organizations must endorse the chaincode transactions. But can an organization single-handedly manage the network? For example, can I give read only rights to other organizations, specify only Org1 peers as endorsing peers and update the channel configuration without coordination with other organizations?

madhukar_sh (Mon, 29 Jul 2019 10:14:12 GMT):
I am getting following error -> The identity is not a [PEER] under this MSP NodeOUs not activated. Cannot tell apart identities. Where can I enable NodeOUs (I am using Fabric CA to generate crypto materials not cryptogen)

madhukar_sh (Mon, 29 Jul 2019 10:14:12 GMT):
I am getting following error -> ```The identity is not a [PEER] under this MSP NodeOUs not activated. Cannot tell apart identities.``` Where can I enable NodeOUs (I am using Fabric CA to generate crypto materials not cryptogen)

madhukar_sh (Mon, 29 Jul 2019 10:15:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pYujt3MiXnXoHMK7G)
error.png

madhukar_sh (Mon, 29 Jul 2019 10:16:28 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=pYujt3MiXnXoHMK7G)
error.png

Aniket.1 (Mon, 29 Jul 2019 10:28:22 GMT):
When i searched that what tls cert and keys i need to provide from crypto-config folder, I got various options. I need to know what is right way to do it. I am pasting below what i found.

Aniket.1 (Mon, 29 Jul 2019 10:28:57 GMT):
One is answer of this question: https://stackoverflow.com/questions/52548965/how-to-set-tls-in-fabric-ca which suggests to use: `crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls`

Aniket.1 (Mon, 29 Jul 2019 10:30:49 GMT):
Another one is this question: https://stackoverflow.com/questions/48680689/fabric-ca-how-to-generate-client-certfile-and-keyfile which suggest to use: `crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/tls`

Bentipe (Mon, 29 Jul 2019 10:31:09 GMT):
hello guys, on instantiating a chaincode Im getting the following error: ``` failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` I am using docker-compose with the following environment variables: ``` - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=$FABRIC_PEER_NAME - FABRIC_LOGGING_SPEC=debug - CORE_CHAINCODE_LOGGING_LEVEL=debug - CORE_PEER_LOCALMSPID=$LOCAL_MSPID - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/crypto-config/peer/msp - CORE_PEER_ADDRESS=$FABRIC_PEER_NAME:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=$FABRIC_PEER_GOSSIP_BOOTSTRAP - CORE_PEER_GOSSIP_EXTERNALENDPOINT=$FABRIC_PEER_NAME:7051 - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/signcerts/cert.pem - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/keystore/$CATLSKEYFILENAME - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/cacerts/$TLSCACERT ``` If someone can help me, thanks.

Aniket.1 (Mon, 29 Jul 2019 10:33:19 GMT):
Another is from response of my previous question:https://chat.hyperledger.org/channel/fabric-questions?msg=qoN2wxNSpQkQgY3Nj which suggests to use: `/crypto-config/peerOrganizations/org1.example.com/tlsca`

Aniket.1 (Mon, 29 Jul 2019 10:34:05 GMT):
@marinkovicvlado now i need to know which one i should use? :|

marinkovicvlado (Mon, 29 Jul 2019 10:39:29 GMT):

ca-yaml.PNG

marinkovicvlado (Mon, 29 Jul 2019 10:39:42 GMT):

client-connection-profile.PNG

marinkovicvlado (Mon, 29 Jul 2019 10:41:31 GMT):
- the first image is the CA configuration where you specify root TLS certificates and keys for your CA - second one should be a fabric-client configuration where you specify user's TLS to access the network

MeSSeRz (Mon, 29 Jul 2019 10:42:45 GMT):
this error says nothing. Can you log your cli and peer containers using docker logs? perhaps there is a more detailed description of the error

Aniket.1 (Mon, 29 Jul 2019 10:44:08 GMT):
First one looks fine. Second one is probably not representing the TLS data. Second one is about adminuser identity

marinkovicvlado (Mon, 29 Jul 2019 10:44:54 GMT):
sorry you are right...

marinkovicvlado (Mon, 29 Jul 2019 10:44:58 GMT):
hold on

Bentipe (Mon, 29 Jul 2019 10:47:41 GMT):

Bentipe - Mon Jul 29 2019 12:47:34 GMT+0200 (hora de verano de Europa central).txt

Bentipe (Mon, 29 Jul 2019 10:48:14 GMT):
ty @MeSSeRz thats the log for the peer

Bentipe (Mon, 29 Jul 2019 10:48:38 GMT):
the client just says: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ```

marinkovicvlado (Mon, 29 Jul 2019 10:48:40 GMT):

client-connection-profile.PNG

marinkovicvlado (Mon, 29 Jul 2019 10:48:47 GMT):

peer-connection-profile.PNG

marinkovicvlado (Mon, 29 Jul 2019 10:49:25 GMT):
- org2 is misplaced it should be org1 but you get the point

Aniket.1 (Mon, 29 Jul 2019 10:51:59 GMT):
yeah

Aniket.1 (Mon, 29 Jul 2019 10:52:11 GMT):
Thank you so much!

Aniket.1 (Mon, 29 Jul 2019 10:53:57 GMT):
first image is telling about TLS for client which will connect to peer. I was looking to get same for fabric-ca-client which will interact with fabric-ca-server

marinkovicvlado (Mon, 29 Jul 2019 10:57:19 GMT):
yes, in my case we are using fabric-client but fabric-ca-client should use the same connection-profile.json (or yaml) to interact with fabric-ca-server container...

marinkovicvlado (Mon, 29 Jul 2019 10:57:30 GMT):
np, hope it helps

marinkovicvlado (Mon, 29 Jul 2019 10:59:57 GMT):
you can use this to reference your connection-profile... https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/config_test.yaml

Aniket.1 (Mon, 29 Jul 2019 11:05:22 GMT):
It provides some info. I need to tryout things now. Thanks a lot for your valuable inputs.

neneg (Mon, 29 Jul 2019 11:48:12 GMT):
Hi everyone! I have a question about querying a key-value pair off the ledger.... How can I query a key , for example, bigger than x from the ledger? Does LevelDB support this? How about CouchDB?

thiagooliveira1985 (Mon, 29 Jul 2019 12:00:40 GMT):
Good morning guys :P ! Is there a way to filter the history with queries? I found this way to bring all history(getHistoryForKey), but I need to filter :(

thiagooliveira1985 (Mon, 29 Jul 2019 12:01:28 GMT):
I mean in 1.4.1...

Abrara (Mon, 29 Jul 2019 12:15:39 GMT):
yes you can use richQueries from couchDB, like they do in the marbles chaincode

thiagooliveira1985 (Mon, 29 Jul 2019 12:18:15 GMT):
I used that but rich queries brings only last state....

thiagooliveira1985 (Mon, 29 Jul 2019 12:19:43 GMT):
I need to filter the history of a key

thiagooliveira1985 (Mon, 29 Jul 2019 12:20:00 GMT):
Something like this:

thiagooliveira1985 (Mon, 29 Jul 2019 12:21:12 GMT):
select * from table.user where id = 1 and month = 12 and year = 2005...

Bentipe (Mon, 29 Jul 2019 12:23:40 GMT):
can I have 2 versions of the same chaincode running on the same peer?

Bentipe (Mon, 29 Jul 2019 12:26:54 GMT):
example: demochaincode v 1, and demochaincode v 2

Aniket.1 (Mon, 29 Jul 2019 12:27:57 GMT):
yes

madhukar_sh (Mon, 29 Jul 2019 12:28:44 GMT):
You cannot instantiate (i.e keep chaincode running) 2 versions of same chaincode on same channel on a peer You can install as many versions as you like

madhukar_sh (Mon, 29 Jul 2019 12:29:02 GMT):
You can run (instantiate) only one version per channel

Bentipe (Mon, 29 Jul 2019 12:30:09 GMT):
so, If I change something on a chaincode, then I need to stop the previous version and then instantiate the new one?

madhukar_sh (Mon, 29 Jul 2019 12:30:41 GMT):
No, you can install new chaincode with a new version number and then run a ```peer chaincode upgrade```

madhukar_sh (Mon, 29 Jul 2019 12:31:15 GMT):
Go here -> https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html for more info

Bentipe (Mon, 29 Jul 2019 12:31:26 GMT):
ooooooo, right

Bentipe (Mon, 29 Jul 2019 12:31:27 GMT):
ty

dijaa (Mon, 29 Jul 2019 12:32:57 GMT):
Can anyone tell me how to solve that error: Error: error getting chaincode code mycc1: Unknown chaincodeType: UNDEFINED

madhukar_sh (Mon, 29 Jul 2019 12:34:04 GMT):
when are you gettiung this error

neneg (Mon, 29 Jul 2019 12:43:09 GMT):
Hi everyone! How can I query a key , for example, bigger than x from the ledger? Does LevelDB support this? How about CouchDB?

lepar (Mon, 29 Jul 2019 12:52:42 GMT):
@neneg Check out rich queries https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_as_state_database.html

Abrara (Mon, 29 Jul 2019 12:52:53 GMT):
ah yeah, sorry didn't catch that it was the history. Not sure you can do that out of the box then

ahmad-raza (Mon, 29 Jul 2019 12:52:57 GMT):
Hi everyone , Have anyone create HLF network on "Kubernetes Cluster" . How can we enable TLS communication in cluster for network components. As i have successfully created network with TLS disabled. Any way or tutorial?

lepar (Mon, 29 Jul 2019 12:53:52 GMT):
When you install chaincode, you have to pass the type using the -l flag. -l node/java/golang

dijaa (Mon, 29 Jul 2019 12:56:42 GMT):
I did this too, an d i got the following error: Error: error getting chaincode code mycc1: Unknown chaincodeType: UNDEFINED

lepar (Mon, 29 Jul 2019 12:57:13 GMT):
MAke sure the file has a .go extension

dijaa (Mon, 29 Jul 2019 12:57:47 GMT):
which file?

lepar (Mon, 29 Jul 2019 12:57:55 GMT):
mycc1

lepar (Mon, 29 Jul 2019 12:57:58 GMT):
mycc1.go

dijaa (Mon, 29 Jul 2019 12:58:40 GMT):
mycc1 is the name of the chaincode

lepar (Mon, 29 Jul 2019 12:59:07 GMT):
Yes, does it have the .go at the end? I'm assuming your cc is in go

dijaa (Mon, 29 Jul 2019 13:00:13 GMT):
no, i run this command

dijaa (Mon, 29 Jul 2019 13:00:15 GMT):
i run this command: peer chaincode install -n mycc1 -v 1.0 -p github.com/chaincode/fabcar/javascript/lib/ -l javascript

tballast (Mon, 29 Jul 2019 13:01:57 GMT):
isn't it supposed to be `-l node` ?

lepar (Mon, 29 Jul 2019 13:02:06 GMT):
Yup, -l node

lepar (Mon, 29 Jul 2019 13:02:10 GMT):
not javascript

Abrara (Mon, 29 Jul 2019 13:10:21 GMT):
Hi everyone, in the doc the prerequisites say to change the gopath to `point at the Go workspace containing the downloaded Fabric code base` but so far we do not download anything other than cURL and Docker, according to the doc. Did I miss something or should a jira be raised to say that the first thing to do is to download the fabric code and put it somewhere (can you even raise a jira for doc?)?

devidas (Mon, 29 Jul 2019 14:08:08 GMT):
Has joined the channel.

devidas (Mon, 29 Jul 2019 14:08:09 GMT):
donloi

devidas (Mon, 29 Jul 2019 14:08:47 GMT):
download the fabric samples

Abrara (Mon, 29 Jul 2019 14:14:23 GMT):
so there is no other way than downloading fabric-samples ? How about if you just want to setup a network you developed on a clean install, that would mean you have to download all the useless samples?

Abrara (Mon, 29 Jul 2019 14:15:37 GMT):
Also, that doesn't change the fact that the doc doesn't say anything about the `Fabric code base` we are supposed to download before installing Go

deepaks (Mon, 29 Jul 2019 14:37:28 GMT):
Hi everyone, Can anyone please suggest how to change fabric config on the fly without restarting the service?

kopaygorodsky (Mon, 29 Jul 2019 15:52:49 GMT):
which config are you talking about?

harshvishnoi (Mon, 29 Jul 2019 16:45:19 GMT):
Has joined the channel.

thiagooliveira1985 (Mon, 29 Jul 2019 16:55:09 GMT):
Hi...

thiagooliveira1985 (Mon, 29 Jul 2019 16:55:31 GMT):
_build_endorse_group_member >> G0:0 - endorsement failed - Error: transaction returned with failure: Error: PUT_STATE failed: transaction ID: 568d6e7df87b576b55c559580cb5e4afaccbff2acf0f0b05a963e3000161be92: txid [568d6e7df87b576b55c559580cb5e4afaccbff2acf0f0b05a963e3000161be92]: Transaction has already performed a paginated query. Writes are not allowed

thiagooliveira1985 (Mon, 29 Jul 2019 16:56:30 GMT):
Writes are not allowed after a paginate query?

thiagooliveira1985 (Mon, 29 Jul 2019 16:56:37 GMT):
Is there a way to do it?

Psingh (Mon, 29 Jul 2019 17:03:48 GMT):

Screenshot (40).png

Psingh (Mon, 29 Jul 2019 17:04:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=MrhKRavLTdbQtpz6Y) Please help

deepaks (Mon, 29 Jul 2019 18:18:40 GMT):
I'm talking abouth in which we load ordereres and peer config.

Charles99 (Mon, 29 Jul 2019 19:22:36 GMT):
Hello, does anyone know how I can get the block hash, block info, transaction time, etc from a transaction id?

Charles99 (Mon, 29 Jul 2019 19:25:04 GMT):
I'm getting a list of transaction ID's when I get the history for a key. I want to use the transaction IDs to find out which block the transaction happened in, what time, etc

thiagooliveira1985 (Mon, 29 Jul 2019 19:42:36 GMT):
Tpo...

HylaJaponica (Tue, 30 Jul 2019 02:05:09 GMT):
hi, There is no specific chaincode, I wanted to use fabric if there was flexibility in scalability.

HylaJaponica (Tue, 30 Jul 2019 02:07:37 GMT):
Hello, RW-set in a transaction is not a hash value, right?

HylaJaponica (Tue, 30 Jul 2019 02:07:37 GMT):
Hello, RW-set in the transaction is not a hash value, right?

kopaygorodsky (Tue, 30 Jul 2019 03:19:21 GMT):
no

HLFPOC (Tue, 30 Jul 2019 05:12:10 GMT):
Hello Team, How many RAFT orderer nodes should be configured in a network of 4 organizations? Should we run 1 ordering node/per org or go with the recommended cluster size of 3 to 5 nodes ?

HLFPOC (Tue, 30 Jul 2019 05:12:10 GMT):
Hello Team, How many RAFT orderer nodes should be configured in a network of 4 organizations? Should we run 1 ordering node/per org or go with the recommended cluster size of 3 to 5 nodes ? @yacovm

madhukar_sh (Tue, 30 Jul 2019 06:01:17 GMT):
Endorsement Failure when i check the log: ```principal evaluation succeeds for identity 0 skipping identity 0 because it has already been used``` My policy is this -> ``` policy = { 'identities': [ {'role': {'name': 'member', 'mspId': 'Org1MSP'}}, {'role': {'name': 'member', 'mspId': 'Org2MSP'}}, ], 'policy': { '2-of': [ {'signed-by': 0}, {'signed-by': 1}, ] } } ``` I have 2 orgs running with 2 peers each in them

sahilgoel (Tue, 30 Jul 2019 06:13:00 GMT):
https://stackoverflow.com/questions/57265280/hyperledger-fabric-unable-to-invoke-using-node-sdk Please have a look at the above question

cody588 (Tue, 30 Jul 2019 07:11:32 GMT):
Has joined the channel.

JorgeNavarro (Tue, 30 Jul 2019 07:41:38 GMT):
Hello, i have a 3 node network, when i create a 3 replicas peer, the replicas goes randomly to a node, if one of the replicas goes to a different node than the others, this replica doesnt work, is it possible to set the node where the replicas must go? if not, how can i deploy a 3 replicas peer in the same node?

awjh (Tue, 30 Jul 2019 08:32:50 GMT):
If using the node SDK you can use the fabric-network module to configure a gateway to fabric, get your network and then get the channel and then use `queryTransaction` https://fabric-sdk-node.github.io/release-1.4/Channel.html#queryTransaction__anchor https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Gateway.html

awjh (Tue, 30 Jul 2019 08:32:50 GMT):
If using the node SDK you can use the fabric-network module to configure a gateway to fabric, get your network and then get the channel and then use `queryTransaction` https://fabric-sdk-node.github.io/release-1.4/Channel.html#queryTransaction__anchor

sahilgoel (Tue, 30 Jul 2019 08:33:34 GMT):
can we add a channel to the existing network?

Psingh (Tue, 30 Jul 2019 08:48:27 GMT):
Please help below question https://stackoverflow.com/questions/57267647/getting-runtime-error-invalid-memory-address-or-nil-pointer-dereference-when

Psingh (Tue, 30 Jul 2019 08:48:27 GMT):
Please help with below question https://stackoverflow.com/questions/57267647/getting-runtime-error-invalid-memory-address-or-nil-pointer-dereference-when

usama7777 (Tue, 30 Jul 2019 08:53:09 GMT):
Hello, I created a network over two separate physical hosts using docker swarm. Everything on the network side is working correctly like installing chain code and instantiating chain code along with invoking directly via the cli. The problem I am having is when try to connect using client js. The structure of node js files is of commercial paper net files provided in the fabric samples. What changes are required in connection profile?

winata (Tue, 30 Jul 2019 09:30:11 GMT):
Has joined the channel.

winata (Tue, 30 Jul 2019 09:35:14 GMT):
Hello, I am trying to follow Fabcar tutorial but I got error when I tried to run node enrollAdmin.js. ping@pinguin:~/Fabric/fabric-samples/fabcar/javascript$ node enrollAdmin.js Wallet path: /home/ping/Fabric/fabric-samples/fabcar/javascript/wallet 2019-07-30T09:08:21.907Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.request.on (/home/ping/Fabric/fabric-samples/fabcar/javascript/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

winata (Tue, 30 Jul 2019 09:35:34 GMT):
anyone can help?

marinkovicvlado (Tue, 30 Jul 2019 10:38:40 GMT):
check your connection-profile section of CA, in case you are using https or tls you'll have to add these arguments ```"blockchain-ca-org1": { "url": "https://192.168.99.131:30054", "registrar": { "enrollmentID": "admin", "enrollmentSecret": "adminpw1", "profile": "tls" }, "httpOptions": { "verify": false }, "tlsCACerts": { "path": "./local_fabric/certs/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem" } },```

marinkovicvlado (Tue, 30 Jul 2019 10:40:50 GMT):
also if you are using kubernetes than port number should be nodePort (service) 30054, while 7054 is reserved for Pod port

marinkovicvlado (Tue, 30 Jul 2019 10:44:09 GMT):
If you are using kubernetes or swarm there should node affinity option https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

JorgeNavarro (Tue, 30 Jul 2019 12:00:33 GMT):
okay thank you i will try

Aniket.1 (Tue, 30 Jul 2019 12:02:52 GMT):
I am getting this error while instantiating chaincode : ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "cp: cannot stat '/chaincode/input/src/.': No such file or directory ```

ahmad-raza (Tue, 30 Jul 2019 12:18:09 GMT):
Hi all, How can we setup Hyperledger fabric with TLS enabled on kubernetes cluster?

ahmad-raza (Tue, 30 Jul 2019 12:18:38 GMT):
I have successfully installed without TLS.

ahmad-raza (Tue, 30 Jul 2019 12:19:29 GMT):
But when i enabled TLS it gives error "grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 10.244.0.228:7051->10.244.0.1:53422: read: connection reset by peer""

ahmad-raza (Tue, 30 Jul 2019 12:19:29 GMT):
But when i enabled TLS it gives error "grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 10.244.0.228:7051->10.244.0.1:53422: read: connection reset by peer"" This is error from peer logs

ibanfi (Tue, 30 Jul 2019 15:12:34 GMT):
Has joined the channel.

ibanfi (Tue, 30 Jul 2019 15:13:53 GMT):
Hi all, I try to call a chaincode method from chaincode. The channel is the same but different contract. I use this: `await ctx.stub.invokeChaincode("pps", ["transfer", JSON.stringify(_txn01)], "");'

ibanfi (Tue, 30 Jul 2019 15:13:53 GMT):
Hi all, I try to call a chaincode method from chaincode. The channel is the same but different contract. I use this: await ctx.stub.invokeChaincode("pps", ["transfer", JSON.stringify(_txn01)], "");``

ibanfi (Tue, 30 Jul 2019 15:13:53 GMT):
Hi all, I try to call a chaincode method from chaincode. The channel is the same but different contract. I use this: `await ctx.stub.invokeChaincode("pps", ["transfer", JSON.stringify(_txn01)], "");`

ibanfi (Tue, 30 Jul 2019 15:15:36 GMT):
However I cannot reach the method itself, I got a message: `Error: INVOKE_CHAINCODE failed: transaction ID: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7: execute failed: error sending: txid: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7(general) exists`

ibanfi (Tue, 30 Jul 2019 15:15:36 GMT):
However I cannot reach the method itself, I got a message: `Error: INVOKE_CHAINCODE failed: transaction ID: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7: execute failed: error sending: txid: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7(general) exists`

ibanfi (Tue, 30 Jul 2019 15:15:36 GMT):
However I cannot reach the method itself, I got a message: ``` Error: INVOKE_CHAINCODE failed: transaction ID: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7: execute failed: error sending: txid: c248368119783e9fb6349eac523cb797ab6cf2d0a696cc6270c9a7cb671d5ac7(general) exists ```

ibanfi (Tue, 30 Jul 2019 15:15:36 GMT):
Hi, it is usually caused by incorrect MSP configuration. Check the MSPs.

ibanfi (Tue, 30 Jul 2019 15:17:15 GMT):
If I change the method to a non-existing ones, the problem is still the same.

gatakka (Tue, 30 Jul 2019 17:10:12 GMT):
Hello, what is the procedure to update admin certificates AFTER they are expired. Currently I'm in this situation, and I'm unable to make config update, to upgrade chaincode or any other admin task

harshvishnoi (Tue, 30 Jul 2019 17:26:18 GMT):
Hello, I just deleted my user1 waller credentials and now when I try to register it again it throws error. Failed to register user "user1": Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'user1' failed: Identity 'user1' is already registered"}]]

harshvishnoi (Tue, 30 Jul 2019 17:28:07 GMT):
Hello, I just deleted my user1 waller credentials and now when I try to register it again it throws an error. Failed to register user "user1": Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'user1' failed: Identity 'user1' is already registered"}]] Is there a way to get those credentials without setting up the whole network all again?

thiagooliveira1985 (Tue, 30 Jul 2019 20:05:05 GMT):
Hello

thiagooliveira1985 (Tue, 30 Jul 2019 20:07:48 GMT):
when I do queries inside couchdb there is metadata.fetched_records_count and metadata.bookmark, is there a way to know the total of records ?

madiazp (Tue, 30 Jul 2019 20:15:19 GMT):
Has joined the channel.

thiagooliveira1985 (Wed, 31 Jul 2019 00:01:06 GMT):
:)

deanzaka (Wed, 31 Jul 2019 04:16:02 GMT):
Has joined the channel.

deanzaka (Wed, 31 Jul 2019 04:16:04 GMT):
Hallo, I have a strange issue with private data collection. I have a network with 3 orgs, create a collection config with org1 and org2 as members. Tried, to query the private data with org3, it is failed as expected. But, problem is, when I tried to invoke the private data with using org3, it is successfully submitted and the data is changed. Is this an expected behaviour of pdc?

deanzaka (Wed, 31 Jul 2019 04:16:04 GMT):
Hallo, I have a strange issue with private data collection. I have a network with 3 orgs, create a collection config with org1 and org2 as members. Tried, to query the private data with org3, it is failed as expected. But, problem is, when I tried to invoke the private data using org3, it is successfully submitted and the data is changed. Is this an expected behaviour of pdc?

Randyshu2018 (Wed, 31 Jul 2019 06:22:15 GMT):
hi,the case is the patient's privacy, but sometimes it is necessary to authorize the expert to conduct research. How is this scenario achieved by hyperledger fabric?

mdhinakaran (Wed, 31 Jul 2019 06:23:52 GMT):
Has joined the channel.

mdhinakaran (Wed, 31 Jul 2019 06:23:54 GMT):
Executing "fabric-ca-client enroll -u http://admin:adminpw@localhost:7054" command throws below exception. bash: /d/Blockchain/code/fabric-samples/bin/fabric-ca-client: cannot execute binary file: Exec format error

mdhinakaran (Wed, 31 Jul 2019 06:29:55 GMT):
How to add new Organization in AFFILIATION?

mdhinakaran (Wed, 31 Jul 2019 06:29:55 GMT):
How to add new Organization in AFFILIATION in ca container?

Randyshu2018 (Wed, 31 Jul 2019 06:53:34 GMT):
fabric-ca-client affiliation add xx

mdhinakaran (Wed, 31 Jul 2019 06:55:18 GMT):
Yes. I have tried below command using the fabric-samples/bin exec files. And getting below error. Executing "fabric-ca-client enroll -u http://admin:adminpw@localhost:7054" command throws below exception. bash: /d/Blockchain/code/fabric-samples/bin/fabric-ca-client: cannot execute binary file: Exec format error

Randyshu2018 (Wed, 31 Jul 2019 06:58:54 GMT):
maybe this binary is not suitable for your operation system

Randyshu2018 (Wed, 31 Jul 2019 06:59:12 GMT):
you can compile it in your way.

mdhinakaran (Wed, 31 Jul 2019 07:00:35 GMT):
Thank you for your response. I am implementing it in Windows 10 OS. I could able to run configtxgen and cryptogen tools binaries.

Aniket.1 (Wed, 31 Jul 2019 07:03:34 GMT):
do you have the related enrollment secret?

YashGupta (Wed, 31 Jul 2019 07:09:51 GMT):
Has joined the channel.

YashGupta (Wed, 31 Jul 2019 07:09:52 GMT):
Hey, I am getting "ENDORSEMENT_POLICY_FAILURE" while committing concurrent transactions. And if I commit transaction one by one they are committing successfully. can anybody help me, why I am getting this error.

mdhinakaran (Wed, 31 Jul 2019 07:50:59 GMT):
Could you please help me on this?

Randyshu2018 (Wed, 31 Jul 2019 07:59:39 GMT):
how about this command 'fabric-ca-client -h'

Abrara (Wed, 31 Jul 2019 08:05:42 GMT):
I use the [node SDK](https://fabric-sdk-node.github.io/AffiliationService.html) to do that, dunno if it is relevant for you

metadata (Wed, 31 Jul 2019 08:25:33 GMT):
Has joined the channel.

mdhinakaran (Wed, 31 Jul 2019 08:34:01 GMT):
@Randyshu2018 help command also not working..

Randyshu2018 (Wed, 31 Jul 2019 08:38:46 GMT):
so, you may build it alone .

luckforzhang (Wed, 31 Jul 2019 09:24:13 GMT):
Hi all, now I am facing something very confused. Well the fabric channel, I thought it will separate orgs. For example, sixthchannel comes from configtx.yaml like this ``` SixthOrgsChannel: Consortium: SampleConsortium <<: *ChannelDefaults Application: <<: *ApplicationDefaults Organizations: - *Org1 Capabilities: <<: *ApplicationCapabilities ``` so I thought this `sixthchannel` should only be used by org1. But instead, org3 could join this channel as well. However org3 could not modify the chaincode in org3 even with `peer chaincode list --instantiated -C sixthchannel`. My question is, why could org3 join the `sixthchannel`? It's not right with the purpose of 'separate channel' I think.

mdhinakaran (Wed, 31 Jul 2019 09:27:38 GMT):
@Abrara I need to up the Node SDK and then try it out. I need to get some knowledge on it..

mdhinakaran (Wed, 31 Jul 2019 09:28:12 GMT):
@Randyshu2018 Do you mean tobuild the fabric-ca-client binary using golang code?

Randyshu2018 (Wed, 31 Jul 2019 09:29:40 GMT):
yes

mdhinakaran (Wed, 31 Jul 2019 09:30:28 GMT):
Ok Thanks. Will do that.

luckforzhang (Wed, 31 Jul 2019 09:37:34 GMT):
Please tell me if you have any opions about this channel issue.

luckforzhang (Wed, 31 Jul 2019 09:37:41 GMT):
Thanks!

mdhinakaran (Wed, 31 Jul 2019 10:02:46 GMT):
Getting below exception while Creating Channel. {"status":"FORBIDDEN","info":"implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied"} What could cause the issue?

mdhinakaran (Wed, 31 Jul 2019 10:12:11 GMT):
@Randyshu2018 @Abrara and @everyone, any idea about this errer?

VINITH_S (Wed, 31 Jul 2019 10:21:01 GMT):
Has joined the channel.

Henretter (Wed, 31 Jul 2019 10:49:18 GMT):
when I post the http://x.x.x.x:7059/protolator/encode/common.Config

Henretter (Wed, 31 Jul 2019 10:49:30 GMT):
it response "Bad Request"

Henretter (Wed, 31 Jul 2019 10:50:10 GMT):
can anyone help me ?

neneg (Wed, 31 Jul 2019 11:12:33 GMT):
Hi! I am using docker swarm to run my fabric network on multiple hosts.I can install chaincode on peers though when I try to instantiate the chaincode , I get the following error: "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (500): Could not attach to network net_test: rpc error: code = NotFound desc = network net_test not found " The problem here is that when I create the containers using "docker stack deploy" the bridge network (which I expect to be created based on how I wrote the docker-compose files) of the containers (which is supposed to be called net_test) is not created. I create this network manually and attach the containers to it but I still get the same error. Any ideas how I can fix the issue? what could be the root cause? ..... Thanks in advance.

CarstenStahlschmidt (Wed, 31 Jul 2019 12:19:55 GMT):
Has joined the channel.

CarstenStahlschmidt (Wed, 31 Jul 2019 12:22:10 GMT):
Hi @neneg, i had this exact problem yesterday within the same setup. Solution that worked for me was to edit the /etc/hosts by adding the local IPs of the participants

CarstenStahlschmidt (Wed, 31 Jul 2019 12:25:41 GMT):
But I'm here because of my own problem: Fabric 1.4.1 Docker Swarm Network running, within the CLI all participants (PC1: Orderer, PC2: Org1, Peer1&2, CLI | PC3: Org2, Peer1&2, CLI) are "pingable". Now I'm trying to create the channel within the CLI but this error occurs: INFO 003 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied I'm not able to decypher what exactly is going wrong here. Can someone help me out on this?

CarstenStahlschmidt (Wed, 31 Jul 2019 12:25:41 GMT):
**But I'm here because of my own problem:** Fabric 1.4.1 Docker Swarm Network running, within the CLI all participants (PC1: Orderer, PC2: Org1, Peer1&2, CLI | PC3: Org2, Peer1&2, CLI) are "pingable". Now I'm trying to create the channel within the CLI but this error occurs: INFO 003 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied I'm not able to decypher what exactly is going wrong here. Can someone help me out on this?

yacovm (Wed, 31 Jul 2019 12:46:36 GMT):
you need to send the channel creation transaction with an admin identity

CarstenStahlschmidt (Wed, 31 Jul 2019 12:51:53 GMT):
first of all: thank you for your reply. So, my command is: peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls TRUE --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

CarstenStahlschmidt (Wed, 31 Jul 2019 12:52:34 GMT):
Is the admin identity not included within thje --cafile param?

yacovm (Wed, 31 Jul 2019 12:52:56 GMT):
the ca file, is a PEM of a CA

yacovm (Wed, 31 Jul 2019 12:53:05 GMT):
so it's not an admin.... and it's not related at all

yacovm (Wed, 31 Jul 2019 12:53:12 GMT):
you need to sign the transaction with an admin

yacovm (Wed, 31 Jul 2019 12:53:21 GMT):
the ca file parameter is used to validate TLS certificates

CarstenStahlschmidt (Wed, 31 Jul 2019 12:54:33 GMT):
so how do I include an admin in this transaction?

yacovm (Wed, 31 Jul 2019 12:54:44 GMT):
there is that environment variable

yacovm (Wed, 31 Jul 2019 12:54:52 GMT):
`CORE_PEER_MSPCONFIGPATH`

yacovm (Wed, 31 Jul 2019 12:55:03 GMT):
you need to point it to an admin msp config

CarstenStahlschmidt (Wed, 31 Jul 2019 12:57:44 GMT):
that param is set within the yaml file for docker-compose-org1.yaml which is consumed when starting the network on PC 2

yacovm (Wed, 31 Jul 2019 13:00:04 GMT):
i mean for the CLI

yacovm (Wed, 31 Jul 2019 13:00:06 GMT):
not for a peer

yacovm (Wed, 31 Jul 2019 13:00:10 GMT):
do you have a CLI container?

CarstenStahlschmidt (Wed, 31 Jul 2019 13:01:35 GMT):
yes I do. wait- just checking if the CLI has this param also

CarstenStahlschmidt (Wed, 31 Jul 2019 13:03:41 GMT):
yeah, docker-compose..org1.yaml has org1cli with environment variable CORE_PEER_MSOCONFIGPATH set to /opt/gopath/.../peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp

yacovm (Wed, 31 Jul 2019 13:04:11 GMT):
hmmmm so it points to the admin..... it should work :O

yacovm (Wed, 31 Jul 2019 13:04:21 GMT):
what is the LOCALMSPID ?

CarstenStahlschmidt (Wed, 31 Jul 2019 13:05:00 GMT):
Org1MSP

yacovm (Wed, 31 Jul 2019 13:05:11 GMT):
hmmm

yacovm (Wed, 31 Jul 2019 13:05:30 GMT):
you can try to turn on the debug

yacovm (Wed, 31 Jul 2019 13:05:36 GMT):
make the `msp` logs in debug

yacovm (Wed, 31 Jul 2019 13:05:38 GMT):
and see

CarstenStahlschmidt (Wed, 31 Jul 2019 13:06:00 GMT):
CORE_LOGGING_LEVEL=DEBUG ?

yacovm (Wed, 31 Jul 2019 13:06:16 GMT):
no, look in the documentation

yacovm (Wed, 31 Jul 2019 13:06:39 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/logging-control.html

CarstenStahlschmidt (Wed, 31 Jul 2019 13:13:05 GMT):
to be honest, I've got my difficulties to figure out on how to change the log level

CarstenStahlschmidt (Wed, 31 Jul 2019 13:13:17 GMT):
to be honest, I've got my difficulties to figure out on how to change the log level

neneg (Wed, 31 Jul 2019 13:46:27 GMT):
Hi! I get the following error when I try to instantiate the chaincode on peers in multiple host fabric setup suing docker swarm.... any ideas how i can fix it or what the root cause could be? "*ERRO 044 [mychannel][e10ed8cd] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed*" "

CarstenStahlschmidt (Wed, 31 Jul 2019 14:06:40 GMT):
okay, so this might be an issue i guess: 2019-07-31 14:04:52.465 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/crls: no such file or directory] 2019-07-31 14:04:52.465 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config.yaml: no such file or directory]

yacovm (Wed, 31 Jul 2019 14:07:04 GMT):
no

yacovm (Wed, 31 Jul 2019 14:07:06 GMT):
it's not an issue

someguy (Wed, 31 Jul 2019 14:08:17 GMT):
Hello guys, can anyone tell me the difference between User and Admin certificates and the peer and orderer certificates?

CarstenStahlschmidt (Wed, 31 Jul 2019 14:08:23 GMT):
then these are the last log entries: 2019-07-31 14:04:52.508 UTC [grpc] watcher -> DEBU 049 ccResolverWrapper: sending new addresses to cc: [{orderer.example.com:7050 0 }] 2019-07-31 14:04:52.509 UTC [grpc] switchBalancer -> DEBU 04a ClientConn switching balancer to "pick_first" 2019-07-31 14:04:52.509 UTC [grpc] HandleSubConnStateChange -> DEBU 04b pickfirstBalancer: HandleSubConnStateChange: 0xc00004bf60, CONNECTING 2019-07-31 14:04:52.520 UTC [grpc] HandleSubConnStateChange -> DEBU 04c pickfirstBalancer: HandleSubConnStateChange: 0xc00004bf60, READY Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied + res=1 + set +x

yacovm (Wed, 31 Jul 2019 14:08:46 GMT):
go slightly above

yacovm (Wed, 31 Jul 2019 14:08:52 GMT):
search for "msp" logs

CarstenStahlschmidt (Wed, 31 Jul 2019 14:10:03 GMT):
2019-07-31 14:04:52.494 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2019-07-31 14:04:52.495 UTC [msp] GetDefaultSigningIdentity -> DEBU 03f Obtaining default signing identity 2019-07-31 14:04:52.495 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2019-07-31 14:04:52.496 UTC [msp.identity] Sign -> DEBU 041 Sign: plaintext: 0AB6060A074F7267314D535012AA062D...53616D706C65436F6E736F727469756D 2019-07-31 14:04:52.496 UTC [msp.identity] Sign -> DEBU 042 Sign: digest: CD4C872958D925204767C7905A153C0A83887B9A3C6BB0F82F93E196BF87C1CC 2019-07-31 14:04:52.497 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2019-07-31 14:04:52.497 UTC [msp] GetDefaultSigningIdentity -> DEBU 044 Obtaining default signing identity 2019-07-31 14:04:52.498 UTC [msp.identity] Sign -> DEBU 045 Sign: plaintext: 0AED060A1508021A060884C086EA0522...1DC97C19B1F451C10DC6B903FE9A87A6 2019-07-31 14:04:52.498 UTC [msp.identity] Sign -> DEBU 046 Sign: digest: 1582E4D9CC2549369F3DFD2EEEC6E5EFBA08263BE573A22225248D5C0A7323AC

CarstenStahlschmidt (Wed, 31 Jul 2019 14:13:15 GMT):
more log entries?

yacovm (Wed, 31 Jul 2019 14:13:50 GMT):
no i meant in the orderer logs

yacovm (Wed, 31 Jul 2019 14:13:53 GMT):
not in the CLI logs

CarstenStahlschmidt (Wed, 31 Jul 2019 14:21:32 GMT):
wow. there are some errors: Start -> INFO 007 Starting orderer: Version: 1.4.1 Commit SHA: 87074a7 Go version: go1.11.5 OS/Arch: linux/amd64 2019-07-31 14:04:03.210 UTC [orderer.common.server] Start -> INFO 008 Beginning to serve requests 2019-07-31 14:04:52.533 UTC [cauthdsl] deduplicate -> ERRO 009 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 2019-07-31 14:04:52.533 UTC [cauthdsl] deduplicate -> ERRO 00a Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0

CarstenStahlschmidt (Wed, 31 Jul 2019 14:22:27 GMT):
and finally the request to create the cannel leads to this: 2019-07-31 14:16:32.420 UTC [cauthdsl] deduplicate -> ERRO 00f Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 2019-07-31 14:16:32.420 UTC [cauthdsl] deduplicate -> ERRO 010 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 2019-07-31 14:16:32.420 UTC [orderer.common.broadcast] ProcessMessage -> WARN 011 [channel: mychannel] Rejecting broadcast of config message from 10.0.0.19:57392 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

yacovm (Wed, 31 Jul 2019 14:50:22 GMT):
ok then that's the problem - the certificate of the admin is rejected

CarstenStahlschmidt (Wed, 31 Jul 2019 14:53:54 GMT):
IT WORKS NOW! I had to generate new certificates, but most importantly was the command: docker volume prune I had > 60MB of data removed. Now it works

CarstenStahlschmidt (Wed, 31 Jul 2019 15:04:47 GMT):
Crucial info from you @yacovm was to change log levels and read logs from the orderer. That error message led to https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric and finally helped me figure out the problem.

CarstenStahlschmidt (Wed, 31 Jul 2019 15:05:04 GMT):
Thank you very much for your help!

mdhinakaran (Wed, 31 Jul 2019 15:22:37 GMT):
Hi All, I am getting below error while instantiating Chaincode for the peers. { Error: failed to execute transaction 887b8aff5eeaf8fc659d043861677f09e04b978f6f5b5e88af86c8b089c3dfd5: error sending: timeout expired while executing transaction at self._endorserClient.processProposal (D:\Blockchain\code\ss_projects\Charity_NGO\node_modules\fabric-client\lib\Peer.js:140:36) at Object.onReceiveStatus (D:\Blockchain\code\ss_projects\Charity_NGO\node_modules\grpc\src\client_interceptors.js:1207:9) at InterceptingListener._callNext (D:\Blockchain\code\ss_projects\Charity_NGO\node_modules\grpc\src\client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (D:\Blockchain\code\ss_projects\Charity_NGO\node_modules\grpc\src\client_interceptors.js:618:8) at callback (D:\Blockchain\code\ss_projects\Charity_NGO\node_modules\grpc\src\client_interceptors.js:845:24) status: 500, payload: , peer: { url: 'grpcs://localhost:7051', name: 'peer0.central.ngo.com', options: { 'grpc.max_receive_message_length': -1, 'grpc.max_send_message_length': -1, 'grpc.keepalive_time_ms': 120000, 'grpc.http2.min_time_between_pings_ms': 120000, 'grpc.keepalive_timeout_ms': 20000, 'grpc.http2.max_pings_without_data': 0, 'grpc.keepalive_permit_without_calls': 1, name: 'peer0.central.ngo.com', 'grpc.ssl_target_name_override': 'peer0.central.ngo.com', 'grpc.default_authority': 'peer0.central.ngo.com' } }, isProposalResponse: true } Failed to send Proposal and receive all good ProposalResponse Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse (node:14340) UnhandledPromiseRejectionWarning: Error: Failed to instantiate. cause:Failed to send Proposal and receive all good ProposalResponse at Object.instantiateChaincode (D:\Blockchain\code\ss_projects\Charity_NGO\fabricScripts.js:414:15) at (node:14340) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:14340) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

yacovm (Wed, 31 Jul 2019 15:28:31 GMT):
sure

mdhinakaran (Wed, 31 Jul 2019 15:42:19 GMT):
Kindly help me on this. I am stuck at here.

harshvishnoi (Wed, 31 Jul 2019 17:08:39 GMT):
I was following this tutorial. https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html I am very new to this so just want to know whether we can retrieve keys without setting up network again.

pedrotelles2 (Wed, 31 Jul 2019 18:45:38 GMT):
Hello, i`m trying to connect an api with my chaincode. My client sends "The channel has been closed for URL:..."

pedrotelles2 (Wed, 31 Jul 2019 18:45:38 GMT):
Hello, i`m trying to connect an api with my chaincode. My client sends "The channel has been closed for URL:...". My TLS is enabled and network-profile is the same of example in fabric-samples.

pedrotelles2 (Wed, 31 Jul 2019 18:45:38 GMT):
Hello, i`m trying to connect an api with my chaincode. My client sends "The channel has been closed for URL:...". My TLS is enabled and network-profile is the same grpcs model of example in fabric-samples.

someguy (Wed, 31 Jul 2019 20:31:08 GMT):
Hello everyone, can someone tell me where in the development of a hyperledger fabric POC, we configure, implement or customize the policies and the consensus logic to our needs? is it in the chaincode? is it in channel configuration or? because I cannot figure it out.

Devensharma (Thu, 01 Aug 2019 01:30:35 GMT):
Has joined the channel.

Devensharma (Thu, 01 Aug 2019 01:30:36 GMT):
hello while instantiaing the chaincode i am getting the following error Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network network byfn not found

Psingh (Thu, 01 Aug 2019 06:15:16 GMT):
check `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_byfn` in peer-base.yaml file and then check `COMPOSE_PROJECT_NAME` value in env variable. if not set then assign some value to it

Psingh (Thu, 01 Aug 2019 06:15:16 GMT):
check `- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_byfn` in peer-base.yaml file and then check `COMPOSE_PROJECT_NAME` value in env variable. if not set then assign some value to it

Psingh (Thu, 01 Aug 2019 06:16:35 GMT):
then check the network is there or not using command ` docker network ls`

Psingh (Thu, 01 Aug 2019 06:17:24 GMT):
assigning project name to `COMPOSE_PROJECT_NAME` worked for me

Psingh (Thu, 01 Aug 2019 07:22:47 GMT):
I ran the byfn script and it works fine. channel created, install and instantiation worked. invoke and query worked too. then I checked the orderer logs and found this thing `identity 0 does not satisfy principal: the identity is a member of a different MSP`. So, Is it a warning or an error?

Psingh (Thu, 01 Aug 2019 07:22:47 GMT):
I ran the byfn script and it went fine. channel created, install and instantiation worked. invoke and query worked too. then I checked the orderer logs and found this thing `identity 0 does not satisfy principal: the identity is a member of a different MSP`. So, Is it a warning or an error?

Psingh (Thu, 01 Aug 2019 07:23:39 GMT):

Screenshot (44).png

DavideC (Thu, 01 Aug 2019 08:10:20 GMT):
Hi, I added dynamically a new organization in an existing network composed by 3 organizations, and I updated the chaincode that was running in the network with a new endorsement policy that includes the new organization. The new endorsement policy is set up so that all the transactions, for being validated, have to be signed by all the orgs. But after modifing the endorsement policy, if I shutdown the node that hosts the new organization, I can still make operations with the chaincode from the others organizations. Any suggestions about how to solve this issue? Thanks

metadata (Thu, 01 Aug 2019 08:32:55 GMT):
I'm going through the discovery section of config.yaml . ``` #[Optional] options for retrieving discovery info discovery: #[Optional] discovery info will be retrieved for these number of random targets maxTargets: 2 #[Optional] retry options for retrieving discovery info retryOpts: #[Optional] number of retry attempts attempts: 4 #[Optional] the back off interval for the first retry attempt initialBackoff: 500ms #[Optional] the maximum back off interval for any retry attempt maxBackoff: 5s #[Optional] he factor by which the initial back off period is exponentially incremented backoffFactor: 2.0 ``` what's maxTargets ? Is it like the number of peers it is trying to connect or search? Is any doc available to understand this ? 2nd Question In below snippet(chainHero config.yaml), from where it is getting the value of userName? In some other config.yaml file, this userName is written as username ```organizations: org1: mspid: org1.hf.chainhero.io cryptoPath: peerOrganizations/org1.hf.chainhero.io/users/{userName}@org1.hf.chainhero.io/msp ```

metadata (Thu, 01 Aug 2019 08:32:55 GMT):
I'm going through the discovery section of config.yaml . ``` #[Optional] options for retrieving discovery info discovery: #[Optional] discovery info will be retrieved for these number of random targets maxTargets: 2 #[Optional] retry options for retrieving discovery info retryOpts: #[Optional] number of retry attempts attempts: 4 #[Optional] the back off interval for the first retry attempt initialBackoff: 500ms #[Optional] the maximum back off interval for any retry attempt maxBackoff: 5s #[Optional] he factor by which the initial back off period is exponentially incremented backoffFactor: 2.0 ``` what's `maxTargets` ? Is it like the number of peers it is trying to connect or search? Is any doc available to understand this ? 2nd Question In below snippet(chainHero config.yaml), from where it is getting the value of userName? In some other config.yaml file, this userName is written as username ```organizations: org1: mspid: org1.hf.chainhero.io cryptoPath: peerOrganizations/org1.hf.chainhero.io/users/{userName}@org1.hf.chainhero.io/msp ```

metadata (Thu, 01 Aug 2019 08:32:55 GMT):
I'm going through the discovery section of config.yaml . ``` #[Optional] options for retrieving discovery info discovery: #[Optional] discovery info will be retrieved for these number of random targets maxTargets: 2 #[Optional] retry options for retrieving discovery info retryOpts: #[Optional] number of retry attempts attempts: 4 #[Optional] the back off interval for the first retry attempt initialBackoff: 500ms #[Optional] the maximum back off interval for any retry attempt maxBackoff: 5s #[Optional] he factor by which the initial back off period is exponentially incremented backoffFactor: 2.0 ``` what's `maxTargets` ? Is it like the number of peers it is trying to connect or search? Is any doc available to understand this ? 2nd Question In below snippet(chainHero config.yaml), from where it is getting the value of `userName`? In some other config.yaml file, this `userName` is written as `username` ```organizations: org1: mspid: org1.hf.chainhero.io cryptoPath: peerOrganizations/org1.hf.chainhero.io/users/{userName}@org1.hf.chainhero.io/msp ```

Aniket.1 (Thu, 01 Aug 2019 09:10:10 GMT):
I am trying to instantiate a chaincode with this command : ``` ./peer chaincode instantiate -o 0.0.0.0:7050 -C mychannel -n chaincode2 -l node -v v1 -c '{"Args":[]}' --collections-config hyperledger/collection/config.json ``` It is giving me error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1`

Aniket.1 (Thu, 01 Aug 2019 09:10:28 GMT):
Can someone suggest what I am doing wrong

Aniket.1 (Thu, 01 Aug 2019 09:10:28 GMT):
Can someone suggest what I am doing wrong?

Aniket.1 (Thu, 01 Aug 2019 09:11:25 GMT):
my config.json is as: ``` [ { "name": "myCollection1", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive": 0 } ] ```

awjh (Thu, 01 Aug 2019 09:36:43 GMT):
Is there a way in fabric to get the collections config for a deployed chaincode?

awjh (Thu, 01 Aug 2019 09:36:43 GMT):
Is there a way in fabric to get the collections config for a chaincode?

Aniket.1 (Thu, 01 Aug 2019 11:06:04 GMT):
Have anyone instantiated a chaincode with private data collection?

Aniket.1 (Thu, 01 Aug 2019 11:24:32 GMT):
can someone suggest anything? I have spent great time to resolve it. But error is not moving.

PuneetKumar10 (Thu, 01 Aug 2019 13:13:07 GMT):
Has joined the channel.

PuneetKumar10 (Thu, 01 Aug 2019 13:13:09 GMT):
can i change system-channel BatchTimeout ? if yes , how ?

PuneetKumar10 (Thu, 01 Aug 2019 13:13:56 GMT):
I am getting error "error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchTimeout not satisfied: signature set did not satisfy policy"

ahmad-raza (Thu, 01 Aug 2019 13:44:07 GMT):
Hi all how to enable TLS communication for hyperledger fabric peers and orderers on Kuberentes. CA server woks fine?

metadata (Thu, 01 Aug 2019 13:47:02 GMT):
Is port `7053` deprecated in `fabric-sdk-go`?

metadata (Thu, 01 Aug 2019 13:47:22 GMT):
if yes then how to use the `eventUrl` thing?

mdhinakaran (Thu, 01 Aug 2019 14:20:48 GMT):
Hi All,

mdhinakaran (Thu, 01 Aug 2019 14:57:06 GMT):
Hi All, How to get the complete transaction details in the Ledger in Balance-Transfer project? I am using Golang for Chaincode. I have "stub.GetHistoryForKey(id)" method to get all the transactions. But in there I could get only the current state value of a or b in respective transactions. The details of who transferred how much to whome. How to get it? I have tried a lot to get these details, but couldn't get it. Kindly help me on this. Thanks in Advance.

mdhinakaran (Thu, 01 Aug 2019 14:57:06 GMT):
Hi All, How to get the complete transaction details in the Ledger in Balance-Transfer project? I am using Golang for Chaincode. I have *"stub.GetHistoryForKey(id)"* method to get all the transactions. But in there I could get only the current state value of a or b in respective transactions. The details of who transferred how much to whome. How to get it? I have tried a lot to get these details, but couldn't get it. Kindly help me on this. Thanks in Advance.

zzocker (Thu, 01 Aug 2019 19:53:01 GMT):
Has joined the channel.

zzocker (Thu, 01 Aug 2019 19:53:02 GMT):
is there any resources for fabric golang sdk

ianco (Thu, 01 Aug 2019 20:23:55 GMT):
Has left the channel.

Rosan (Fri, 02 Aug 2019 03:32:13 GMT):
@Aniket.1 , I think you got that error because your missed to give the chaincode endorsement policy.

Rosan (Fri, 02 Aug 2019 03:32:13 GMT):
@Aniket.1 , I think you got that error because you missed to provied the chaincode endorsement policy.

conanoc (Fri, 02 Aug 2019 03:41:25 GMT):
Has joined the channel.

Aayush30 (Fri, 02 Aug 2019 05:27:57 GMT):
Has joined the channel.

Aayush30 (Fri, 02 Aug 2019 05:27:59 GMT):
can anyone tell ----- can we use multiple user in a single peer in hyperledger fabric simultaneously.... if yes then how?

salmandabbakuti279 (Fri, 02 Aug 2019 05:38:38 GMT):
Has joined the channel.

Abrara (Fri, 02 Aug 2019 07:29:37 GMT):
Hi everyone, on the CLI `peer chaincode invoke...` loads indefinitely, while the `query` is fine. If I try to invoke the function from the node SDK it contacts the chaincode container, but from the CLI it doesn't. Any leads? I am using docker swarm if that change anything

Abrara (Fri, 02 Aug 2019 07:29:37 GMT):
Hi everyone, on the CLI `peer chaincode invoke...` loads indefinitely, while the `query` is fine. If I try to invoke the function from the node SDK it contacts the chaincode container, but from the CLI it doesn't. Any leads? I am using docker swarm if that changes anything

ONRising (Fri, 02 Aug 2019 08:52:44 GMT):
Hey! I would like to transform the returned value of contract.evaluateTransaction( ... ) into JSON value. How can I proceed? When I parse the string value, I have weird result like {\"docType\":\"credentials\",\"email\":\"carol@example.com\",\"password\":\"carol\"}. Here is the code: ``` const result = await contract.evaluateTransaction('queryCredentials', req.params.user); const str = console.log(result.toString()); let json = JSON.parse(str); ```

ONRising (Fri, 02 Aug 2019 08:52:44 GMT):
Hey! I would like to transform the returned value of contract.evaluateTransaction( ... ) into JSON value. How can I proceed? When I transorm the value into, I have weird result like {\"docType\":\"credentials\",\"email\":\"carol@example.com\",\"password\":\"carol\"}. Then if I parse into JSON, I obtain {"docType":"credentials","email":"carol@example.com","password":"carol"} but I can't obtain value with the key. Here is the code: ``` const result = await contract.evaluateTransaction('queryCredentials', req.params.user); const str = console.log(result.toString()); let json = JSON.parse(str); ```

Abrara (Fri, 02 Aug 2019 09:03:53 GMT):
so your problem is that you don't have the key in the result?

ONRising (Fri, 02 Aug 2019 09:08:20 GMT):
The problem is that when I use json.email for example, I get undefined.

HienPham (Fri, 02 Aug 2019 09:45:04 GMT):
I used to have this error. Check organization policy in configtx.yaml. This error means the implicit policy in your channel is ok, but lower level is not. Read here: https://medium.com/coinmonks/hyperledger-fabric-damn-implicitmetapolicy-44cc9cc5c472

HienPham (Fri, 02 Aug 2019 09:46:41 GMT):
[Nodejs SDK] Hey guys, do you know is there any way to get all state without using ctx.stub.getStateByRange(startKey, endKey). The reason is I dont know endKey. I dont want to hardcoded it.

BChain_Dev (Fri, 02 Aug 2019 09:52:12 GMT):
Guess, you can use use empty string ("","") for starkey and endkey

BChain_Dev (Fri, 02 Aug 2019 09:53:34 GMT):
Hi, Can someone provide the docs if any, to use Third party CA instead of Fabric CA? I want to use Azure AD as CA

HienPham (Fri, 02 Aug 2019 10:08:02 GMT):
Got it. Thank you.

thienhoa.tran (Fri, 02 Aug 2019 10:08:33 GMT):
Has joined the channel.

thienhoa.tran (Fri, 02 Aug 2019 10:08:34 GMT):
Hi everyone, I have one issue about create a new channel and join to exist network hyperledger. I can't create a new channel. Could you give me some solutions or tutorial about it? thanks so much

mlucc (Fri, 02 Aug 2019 10:22:19 GMT):
[ZKAT] Can anyone inform me about the status of ZKAT (Zero-Knowledge Asset Transfer) development status???? I'm interested in Privacy-preserving exchange of assets but I can't find the progress of this in Fabric

mlucc (Fri, 02 Aug 2019 10:22:19 GMT):
[ZKAT] Can anyone inform me about the status of ZKAT (Zero-Knowledge Asset Transfer) development status please???? I'm interested in Privacy-preserving exchange of assets but I can't find the progress of this in Fabric

HienPham (Fri, 02 Aug 2019 11:07:42 GMT):
Hey what is the issue?

Shubham-koli (Fri, 02 Aug 2019 11:22:45 GMT):
docker-compose-base.yaml file in first-network from Fabric-samples information about orderer configuration:- orderer.mysite.com: container_name: orderer.mysite.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/tls/:/var/hyperledger/orderer/tls - orderer.mysite.com:/var/hyperledger/production/orderer ports: - 7050:7050 I've just replaced names from example.com to mysite.com and generated certificates according to that now when I try to start the network I'm getting this error -> FATA 003 Failed to load ServerRootCAs file 'open /etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt: no such file or directory' (/etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt) I understand it is not able to find the certificates but where should I store the certificates?

Shubham-koli (Fri, 02 Aug 2019 11:22:45 GMT):
"I'm inside the docker-compose-base.yaml file in first-network from Fabric-samples information about orderer configuration:-" orderer.mysite.com: container_name: orderer.mysite.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/tls/:/var/hyperledger/orderer/tls - orderer.mysite.com:/var/hyperledger/production/orderer ports: - 7050:7050 I've just replaced names from example.com to mysite.com and generated certificates according to that now when I try to start the network I'm getting this error -> FATA 003 Failed to load ServerRootCAs file 'open /etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt: no such file or directory' (/etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt) I understand it is not able to find the certificates but where should I store the certificates?

Shubham-koli (Fri, 02 Aug 2019 11:22:45 GMT):
*"I'm inside the docker-compose-base.yaml file in first-network from Fabric-samples information about orderer configuration:-"* orderer.mysite.com: container_name: orderer.mysite.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/tls/:/var/hyperledger/orderer/tls - orderer.mysite.com:/var/hyperledger/production/orderer ports: - 7050:7050 *I've just replaced names from example.com to mysite.com and generated certificates according to that now when I try to start the network I'm getting this error* -> FATA 003 Failed to load ServerRootCAs file 'open /etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt: no such file or directory' (/etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt) *I understand it is not able to find the certificates but where should I store the certificates?*

Shubham-koli (Fri, 02 Aug 2019 11:22:45 GMT):
*I'm inside the docker-compose-base.yaml file in first-network from Fabric-samples information about orderer configuration:* orderer.mysite.com: container_name: orderer.mysite.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/tls/:/var/hyperledger/orderer/tls - orderer.mysite.com:/var/hyperledger/production/orderer ports: - 7050:7050 *I've just replaced names from example.com to mysite.com and generated certificates according to that now when I try to start the network I'm getting this error* -> FATA 003 Failed to load ServerRootCAs file 'open /etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt: no such file or directory' (/etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt) *I understand it is not able to find the certificates but where should I store the certificates?*

Shubham-koli (Fri, 02 Aug 2019 11:22:45 GMT):
*I am inside the docker-compose-base.yaml file in first-network from Fabric-samples information about orderer configuration* orderer.mysite.com: container_name: orderer.mysite.com image: hyperledger/fabric-orderer environment: - FABRIC_LOGGING_SPEC=INFO - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1 - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: orderer volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/mysite.com/orderers/orderer.mysite.com/tls/:/var/hyperledger/orderer/tls - orderer.mysite.com:/var/hyperledger/production/orderer ports: - 7050:7050 *I've just replaced names from example.com to mysite.com and generated certificates according to that now when I try to start the network I'm getting this error* -> FATA 003 Failed to load ServerRootCAs file 'open /etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt: no such file or directory' (/etc/hyperledger/fabric/[/var/hyperledger/orderer/tls/ca.crt) *I understand it is not able to find the certificates but where should I store the certificates?*

HienPham (Fri, 02 Aug 2019 11:32:53 GMT):
maybe try to remove all the previous cert with ./byfn.sh down, and bring up the network again (./byfn.sh up). I think you should make sure to change all example.com to mysite.com for orderer in both docker-compose-cli.yaml, crypto-config.yaml as well.

Shubham-koli (Fri, 02 Aug 2019 11:35:35 GMT):
okay. I will do that and update you. thanks. I'm using docker-compose-e2e.yaml if that helps.

marinkovicvlado (Fri, 02 Aug 2019 11:43:28 GMT):
I am following tutorial of "Add a new Organization to existing channel", ( https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html ) but I am receiving following error on join-channel step: Error: received bad response, status 500: access denied for [GetChainInfo][coopchannel]: [Failed evaluating policy on signed data during check policy on channel [coopchannel] with policy [/Channel/Application/Readers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied]]

Shubham-koli (Fri, 02 Aug 2019 11:44:24 GMT):
the error still persists. only the orderer is facing this issue. I am able to spawn 2 CA's and 4 Peers without any problem.

DeeptimanPattnaik (Fri, 02 Aug 2019 12:46:24 GMT):
Hello, I have published few repos in github for Hyperledger fabric, written in Go fabric sdk 1. Single Org Demo https://github.com/Deeptiman/employeeledger 2. Muti Org Demo https://github.com/Deeptiman/multiorgledger 3. Private Data store in Multi Org network https://github.com/Deeptiman/privateledger please let me know, your feedback and suggestions are highly appreciated. It will be helpful for me in further enhancement of the project. Thanks

ialom1 (Fri, 02 Aug 2019 15:03:51 GMT):
When invoking using Node SDK, how do we select the peer, because in local environment all peer addresses is 'localhost:7051'..???

HappyThoughts (Fri, 02 Aug 2019 15:51:22 GMT):
I have a quick question on the performance of two remote Hyperledger Fabric networks i have made, both are identical and have identical environments. The only difference is that one uses TLS, and the other does not. The Caliper reports I get from testing the networks do not make sense, as the results say that the Latency is lower on the TLS network, and that it has a higher throughput. Does this make sense?

HappyThoughts (Fri, 02 Aug 2019 18:44:51 GMT):
Nevermind, i solved it!

koakh (Sat, 03 Aug 2019 20:00:50 GMT):
hello

koakh (Sat, 03 Aug 2019 20:02:00 GMT):
I follow the tutorial first network, and a 2 weeks ago, everything is easy to install, now Im trying it hard and cam't lift the stack, always same error Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 10 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! I try other versions, and search for help in stack overflow, try many tips but can't solve it but always the same error...... the only diference is now I install in a virtualmachine with 8GB and 16GB Disk Space.....else is equal, I even follow my notes thanks

koakh (Sat, 03 Aug 2019 21:30:09 GMT):

koakh - Sat Aug 03 2019 22:30:01 GMT+0100 (Western European Summer Time).txt

koakh (Sat, 03 Aug 2019 21:39:34 GMT):
I try versions 1.3.0, 1.4.0 and 1.4.2 all with same error...............

wesleyW 2 (Sun, 04 Aug 2019 00:58:50 GMT):
Has joined the channel.

wesleyW 2 (Sun, 04 Aug 2019 01:13:01 GMT):
hello, I need help please regarding policy: Writers: Type: Signature Rule: "OR('Org1MSP.admin', 'Org1MSP.client')" "Org1MSP" is the ID, so is ".client" a role or type or OU when I register a new user with fabric-ca-client? Thanks

SateeshBangarugiri (Sun, 04 Aug 2019 04:44:18 GMT):
Has joined the channel.

SateeshBangarugiri (Sun, 04 Aug 2019 04:44:20 GMT):
Hi everyone, How to provide security to other application using hyperledger fabric application

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config' in `orderer volumes` section.

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config' in `orderer volumes` section.

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config' in `orderer` volumes` section.

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config` in `orderer` volumes` section.

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config` in `orderer` volumes section.

Psingh (Sun, 04 Aug 2019 06:36:31 GMT):
your config looks fine. Is your `docker-compose.yaml` file inside `base` directory? If yes then nothing wrong with your config. In that case try thse commands `docker rm -f $(docker ps -aq)` `docker network prune` `docker volume prune` `docker rmi -f $(docker images -aq)` if your `docker-compose.yaml` file is not in `base` directory then replace `../cryto-config` to `./crypto-config` in `orderer` `volumes` section.

Psingh (Sun, 04 Aug 2019 06:39:47 GMT):
If you re replacing the names then you won't be able to start the docker using `./byfn.sh` script.

maniankara (Sun, 04 Aug 2019 08:02:08 GMT):
Has joined the channel.

maniankara (Sun, 04 Aug 2019 08:05:29 GMT):
Hi, did you try stop+delete all the containers. I once had this problem and starting with a clean environment solved. This is recommended only for fresh development envs (not prod :smiley: )

maniankara (Sun, 04 Aug 2019 08:07:29 GMT):
Hi @HappyThoughts can post your observations here? It helps others :smiley:

maniankara (Sun, 04 Aug 2019 08:07:29 GMT):
Hi @HappyThoughts can post your observations (how you solved it) here? It helps others :smiley:

maniankara (Sun, 04 Aug 2019 08:15:32 GMT):
Hi @ialom1 Those address are inside the given container. So, if you were to access those from outside (i.e. from host), then you use localhost with different port. You get to know the correct port mapping from `docker ps` and taking a look at `ports`. If you were to access the peer from other container, e.g. `cli`, then the port is same but the host is different, so with a cli container, you use, `peer0.org1.example.com:7051, peer1.org1.example.com:7051` etc. Hope this clarifies.

LakshyaAgarwal (Sun, 04 Aug 2019 10:48:33 GMT):
Has joined the channel.

LakshyaAgarwal (Sun, 04 Aug 2019 10:48:42 GMT):
Can anyone guide me how I can make frontend for the hyperledger Fabric.

LabibFarag (Sun, 04 Aug 2019 10:50:24 GMT):
Can anyone guide me how I can make frontend for the hyperledger Fabric.

Shubham-koli (Mon, 05 Aug 2019 06:28:53 GMT):
is it possible to add new orderer to existing network?

GioG12 (Mon, 05 Aug 2019 08:30:46 GMT):
Hello guys, how can I get transaction ID of submitted transaction? Node SDK documentation is not clear enough

neneg (Mon, 05 Aug 2019 08:34:57 GMT):
Hi all! I am trying to implement fabric on a cluster of nodes (i.e. multi host). When I try to instantiate the chaincode (after I successfully install it on the endorsing peers), I get the following error in the: *Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0*

neneg (Mon, 05 Aug 2019 08:34:57 GMT):
Hi all! I am trying to implement fabric on a cluster of nodes (i.e. multi host). When I try to instantiate the chaincode (after I successfully install it on the endorsing peers), I get the following error in the: *Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0*

neneg (Mon, 05 Aug 2019 08:34:57 GMT):
Hi all! I am trying to implement fabric on a cluster of nodes (i.e. multi host). When I try to instantiate the chaincode (after I successfully install it on the endorsing peers), I get the following error in the: *Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0* The peer logs show the following error: *[mychannel][f4a3a6fc] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed* Any ideas how I can fix this? *

neneg (Mon, 05 Aug 2019 08:34:57 GMT):
Hi all! I am trying to implement fabric on a cluster of nodes (i.e. multi host). When I try to instantiate the chaincode (after I successfully install it on the endorsing peers), I get the following error in the: *Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0* The peer logs show the following error: *[mychannel][f4a3a6fc] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed* Any ideas how I can fix this?

GioG12 (Mon, 05 Aug 2019 08:36:58 GMT):
check paths in drupal composer file, also set FABRIC_LOGGING to debug

GioG12 (Mon, 05 Aug 2019 08:36:58 GMT):
check paths in ddocker composer file, also set FABRIC_LOGGING to debug

GioG12 (Mon, 05 Aug 2019 08:36:58 GMT):
check paths in docker composer file, also set FABRIC_LOGGING to debug

GioG12 (Mon, 05 Aug 2019 08:36:58 GMT):
check volume paths in docker composer file, also set FABRIC_LOGGING to debug

neneg (Mon, 05 Aug 2019 08:40:55 GMT):
Thanks for your reply. When I implement the same network on a single host everything works just fine. But when I have various nodes I get this error. Do you still see the volume paths as the issue?

GioG12 (Mon, 05 Aug 2019 08:43:31 GMT):
I had same instantiate error and fixed it after I checked chaincode container error logs, it could be hint to problem

neneg (Mon, 05 Aug 2019 08:46:17 GMT):
Is the chaincode container created before instantiation is successful?

GioG12 (Mon, 05 Aug 2019 08:47:19 GMT):
yes for few seconds, its hard to inspect, vs code docker extension helped me

neneg (Mon, 05 Aug 2019 08:48:02 GMT):
that is good to know thanks

neneg (Mon, 05 Aug 2019 08:48:33 GMT):
that is good to know thanks

mania06 (Mon, 05 Aug 2019 09:21:38 GMT):
Hello, i'm trying to instantiate a NodeJS chaincode which use the `Contract` class of `fabric-contract-api`. It is installed correctly but at instantiation, i get this error: ```Error: transaction returned with failure: Error: You've asked to invoke a function that does not exist: init ``` I understand it tries to call an `Init` method on my contract but there isn't any. Shouldn't the `Contract` class of `fabric-contract-api` have an `Init` function, just like the `Chaincode` one ? I suppose i'm exepected to implement one ? Or is there a way to not call anything at instantiate time ?

sstone1 (Mon, 05 Aug 2019 10:34:48 GMT):
https://chat.hyperledger.org/channel/fabric-chaincode-dev?msg=hsWLYM6uzCRxauHMz answered in #fabric-chaincode-dev

paparent (Mon, 05 Aug 2019 12:58:43 GMT):
Hi ! I'm experimenting with Fabric chaincode, works nicely for now.. I'm about to create client code.. I know we need to use FileSystemWallet. I was wondering how can I deploy the application on a serverless service, such as AWS Lambda ? If so, how I setup the wallet

generak (Mon, 05 Aug 2019 13:01:29 GMT):
You can use a CouchDBWallet https://fabric-sdk-node.github.io/CouchDBWallet.html

paparent (Mon, 05 Aug 2019 13:06:23 GMT):
ok thanks. any other options ? :) Lambda usually use Env vars, or S3, whatever

sstone1 (Mon, 05 Aug 2019 13:07:10 GMT):
@paparent you can develop your own wallet implementation and use that

sstone1 (Mon, 05 Aug 2019 13:08:31 GMT):
https://github.com/hyperledger/fabric-sdk-node/blob/release-1.4/fabric-network/lib/impl/wallet/inmemorywallet.js is probably the simplest implementation to copy from

caod (Mon, 05 Aug 2019 14:32:54 GMT):
Has joined the channel.

paparent (Mon, 05 Aug 2019 15:12:19 GMT):
@sstone1 ok thanks. I'm checking right now, Sad that BaseWallet isn't exported from the package and need to import from full path.. is that intended? When seeing that, it sounds like we should not use it that way!

sstone1 (Mon, 05 Aug 2019 15:14:15 GMT):
@bestbeforetoday agreed - not sure! would be the best person to talk to about this but he's on vacation today - should be in the office tomorrow though

sstone1 (Mon, 05 Aug 2019 15:14:15 GMT):
agreed - not sure! @bestbeforetoday would be the best person to talk to about this but he's on vacation today - should be in the office tomorrow though

paparent (Mon, 05 Aug 2019 15:16:35 GMT):
ok ! it's just because i'm on typescript and it flashes from everywhere.. so wanna make sure before! thanks !!

paparent (Mon, 05 Aug 2019 15:45:57 GMT):
:( Type signature doesn`t match https://github.com/hyperledger/fabric-sdk-node/blob/release-1.4/fabric-client/types/base.d.ts#L11 vs https://github.com/hyperledger/fabric-sdk-node/blob/0d24cec10f7a3e0153fcf3f0158a89c5eaa0cfab/fabric-client/lib/BaseClient.js#L52-L68 Dunno if I can trick Typescript because it might not compile. Maybe I should experiment with plain JS first.

MatteoLinear (Mon, 05 Aug 2019 16:25:45 GMT):
Hi everybody, is interacting with the network with the cli viable in a production environment ? what would be the next thing to learn after you know how to instantiate and invoke through cli?

zhasni (Mon, 05 Aug 2019 16:48:27 GMT):
Hi I have an issue with Private Data Collection is there a channel dedicated for this kind of issue ? thx.

davidkel (Mon, 05 Aug 2019 16:52:03 GMT):
A possible option would be to store the cert and private key in pem format on whatever persistence mechanism you have available then retrieve them and import them into the in memory wallet. Then you can avoid having to implement your no wallet mechanism for now.

davidkel (Mon, 05 Aug 2019 16:52:03 GMT):
A possible option would be to store the cert and private key in pem format on whatever persistence mechanism you have available then retrieve them and import them into the in memory wallet. Then you can avoid having to implement your own wallet mechanism for now.

zhasni (Mon, 05 Aug 2019 16:55:23 GMT):
I never tried but yes I think so, you would have to uprgade your testchainid channel for that and maybe all of your other channels.

davidkel (Mon, 05 Aug 2019 16:55:23 GMT):
Guess that needs to be fixed, if you could raise a jira for the FABN project about it that would be great.

ItaloCarrasco (Mon, 05 Aug 2019 17:06:23 GMT):
Has joined the channel.

ItaloCarrasco (Mon, 05 Aug 2019 17:06:24 GMT):
hello, is there a way to verify block data hash

lepar (Mon, 05 Aug 2019 17:09:27 GMT):
Yeah just get the information and hash it

lepar (Mon, 05 Aug 2019 17:10:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=6mKe4w9pcLLBuchyo) https://www.xorbin.com/tools/sha256-hash-calculator

paparent (Mon, 05 Aug 2019 17:30:39 GMT):
@davidkel Interesting ! Just tried.. kinda works, the identity is in the wallet, but i get access denied :( I used `X509WalletMixin.createIdentity` to create the identity with both certificate and private key in PEM format. Weird !

paparent (Mon, 05 Aug 2019 17:31:15 GMT):
Would be nice but I don't have an account there i guess :(

davidkel (Mon, 05 Aug 2019 17:37:20 GMT):
ok, sounds like the cert and key are not valid but it sort out the correct identity and it sounds like you are there

davidkel (Mon, 05 Aug 2019 17:37:20 GMT):
ok, sounds like the cert and key are not valid but sort out the correct identity and it sounds like you are there

davidkel (Mon, 05 Aug 2019 17:37:20 GMT):
ok, sounds like the cert and key are not valid but sort out the correct identity and it looks like you are there

HappyThoughts (Mon, 05 Aug 2019 17:37:28 GMT):
Well, basically I had to analyze the numbers generated from Caliper better. TLS had a better latency because my base case that did not use TLS had a better success rate, throughput and send rate. Which i think leads to more transactions being in flight, and im not sure, but i think that in order for Caliper to calculate average latency for each transaction each transaction needs its own timer. Which means that each transaction starts its timer at the same time, and if the throughput of the network cannot handle the send rate, the waiting time for the transactions become longer.

davidkel (Mon, 05 Aug 2019 17:38:56 GMT):
Do you login with a linux foundation id or another type such as google ? If google then you can create a linux foundation id (anyone can) then you use youe linux foundation id to login to jira at https://jira.hyperledger.org

davidkel (Mon, 05 Aug 2019 17:38:56 GMT):
Do you login to rocketchat with a linux foundation id or another type such as google ? If google then you can create a linux foundation id (anyone can) then you use youe linux foundation id to login to jira at https://jira.hyperledger.org

HappyThoughts (Mon, 05 Aug 2019 17:39:04 GMT):
I had an average throughput of 70 TPS, while my send rate was on average around 980 TPS. This has to result in some sort of queue, which leads to the timers going until the transaction is committed.

HappyThoughts (Mon, 05 Aug 2019 17:43:42 GMT):
I cant find any information that can provide more insight into this issue, but I think i have narrowed it down to the validation phase, as the VSCC is done sequentially here, according to some articles I have read.

HappyThoughts (Mon, 05 Aug 2019 17:49:34 GMT):
To be more specific, I think i solved the issue :sweat_smile:

jpeterseni35 (Mon, 05 Aug 2019 18:32:31 GMT):
Has joined the channel.

paparent (Mon, 05 Aug 2019 18:36:56 GMT):
deduplicate -> ERRO 380 Principal deserialization failure (parseCertificate failed: asn1: structure error: tags don't match (2 vs {class:0 tag:6 length:7 isCompound:false}) {optional:false explicit:false application:false private:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} @2) for identity 0

paparent (Mon, 05 Aug 2019 18:37:08 GMT):
this is the error I get :(

flopoe (Mon, 05 Aug 2019 20:32:23 GMT):
Has joined the channel.

flopoe (Mon, 05 Aug 2019 20:32:23 GMT):
Hi, I'm trying to extend Fabtoken attributes which are just owner, type & quantity by default. I would like to add few more attributes. I'm using the fabtoken example in fabric-samples. I've tried changing .proto files, issue method's arguments and some fabric-client code but no luck. I've already asked this question on stackoverflow but I haven't got any response yet. You can find the question and more details here: https://stackoverflow.com/questions/57298484/hyperledger-fabric-extending-fabtoken-attributes I would really appreciate it if anyone could give me some hints. Thanks!

ItaloCarrasco (Mon, 05 Aug 2019 21:43:57 GMT):
does anyone know which is the method used to create the hash of the currentblock, the one that you get from channel.queryInfo()

pchochu (Tue, 06 Aug 2019 07:54:25 GMT):
Hello guys. "A consortium is a collection of non-orderer organizations on the blockchain network. These are the organizations that form and join channels and that own peers. While a blockchain network can have multiple consortia, most blockchain networks have a single consortium. At channel creation time, all organizations added to the channel must be part of a consortium. However, an organization that is not defined in a consortium may be added to an existing channel." Can anyone explain me why it is necessary to have a consortium to create a channel but later it is not necessary for a new organization to be part of the consortium in order to join the channel. What is the difference between organization that is in the consortium and also is in channel C and organization that is in channel C but is not in the consortium. Thank you

barchiesi (Tue, 06 Aug 2019 08:36:04 GMT):
Has joined the channel.

barchiesi (Tue, 06 Aug 2019 08:36:12 GMT):
Hello!

barchiesi (Tue, 06 Aug 2019 08:36:13 GMT):
I'm having problems using "peer channel fetch config", it seems to just hang. On the client side the last message I see is "Sign: digest: CD161336755EC50157E0E90F...4" On the orderer side I only see "Attempting to read seek info message from 192.168.240.14:51664" that also seems to be hanging. Any ideas?

maniankara (Tue, 06 Aug 2019 09:24:44 GMT):
Thanks for the explaination @HappyThoughts

aatkddny (Tue, 06 Aug 2019 13:48:27 GMT):
is there a way to get to configtxlator inside the fabric-tools container from an external source? so i don't have to run a local copy and can keep it with everything else. a quick search isn't coming back with anything i can use and simply exposing 7059 doesn't cut it.

ahmad-raza (Tue, 06 Aug 2019 13:55:31 GMT):
Hello all, In peers and orderers when we enabled TLS , what it means? is it secure the communication within the hyperledger fabric network components ? OR it means secure communication from network to outside network applications(Node application)?

yacovm (Tue, 06 Aug 2019 14:06:07 GMT):
it means secure communication between the 2 ends of the TLS session

ahmad-raza (Tue, 06 Aug 2019 14:13:23 GMT):
@yacovm please explain little bit, means if there is communication b/w orderer and peers nodes . Session is created and secured through TLS?

Swhit210 (Tue, 06 Aug 2019 14:32:52 GMT):
If you are building a distributed network between multiple external organizations, how can you define the mspdir in your configtx.yaml folder if that material for other organizations is maintained and held by them?

Swhit210 (Tue, 06 Aug 2019 14:37:35 GMT):
If you are building a distributed network between two external organizations, how should the configtx.yaml file be configured? Does each organization need separate files, to generate separate but the same channel artifacts that are used for creating and joining the channel?

CaioPinheiro (Tue, 06 Aug 2019 14:55:38 GMT):
Hello guys! I get this error when I try to perform a ledger insertion transaction : `Error: Failed to connect before the deadline URL:grpc://localhost:7051` Below is my code using module fabric-network ``` const { Gateway } = require('fabric-network'); const FabricCAServices = require('fabric-ca-client'); const path = require('path'); const { FileSystemWallet, X509WalletMixin } = require('fabric-network'); controller.insert = async function(request, response){ let user_hash = request.body.hash // Check to see if we've already enrolled the admin user. let wallet = request.wallet; const adminExists = await wallet.exists('admin'); if (!adminExists) { throw new Error("Admin is not registred") } // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'admin', discovery: { enabled: true } }); // Get the CA client object from the gateway for interacting with the CA. const ca = gateway.getClient().getCertificateAuthority(); const adminIdentity = gateway.getCurrentIdentity(); //Insert on the ledger const network = await gateway.getNetwork(Constants.GD_CHANNEL_NAME); const contract = network.getContract(Constants.CHAINCODE_NAME); let user = await contract.createTransaction('create').submit(String(user_hash), JSON.stringify(request.body)); // this line is where the error happens // Register the user, enroll the user, and import the new identity into the wallet. const secret = await ca.register({ enrollmentID: user_hash, role: 'client' }, adminIdentity); const enrollment = await ca.enroll({ enrollmentID: user_hash, enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('CitsMSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import(user_hash, userIdentity); await gateway.disconnect(); return { body: { user } }; }; ```

CaioPinheiro (Tue, 06 Aug 2019 14:55:38 GMT):
Hello guys! I get this error when I try to perform a ledger insertion transaction : `Error: Failed to connect before the deadline URL:grpc://localhost:7051` Someone can help me? Below is my code using module fabric-network ``` const { Gateway } = require('fabric-network'); const FabricCAServices = require('fabric-ca-client'); const path = require('path'); const { FileSystemWallet, X509WalletMixin } = require('fabric-network'); controller.insert = async function(request, response){ let user_hash = request.body.hash // Check to see if we've already enrolled the admin user. let wallet = request.wallet; const adminExists = await wallet.exists('admin'); if (!adminExists) { throw new Error("Admin is not registred") } // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'admin', discovery: { enabled: true } }); // Get the CA client object from the gateway for interacting with the CA. const ca = gateway.getClient().getCertificateAuthority(); const adminIdentity = gateway.getCurrentIdentity(); //Insert on the ledger const network = await gateway.getNetwork(Constants.GD_CHANNEL_NAME); const contract = network.getContract(Constants.CHAINCODE_NAME); let user = await contract.createTransaction('create').submit(String(user_hash), JSON.stringify(request.body)); // this line is where the error happens // Register the user, enroll the user, and import the new identity into the wallet. const secret = await ca.register({ enrollmentID: user_hash, role: 'client' }, adminIdentity); const enrollment = await ca.enroll({ enrollmentID: user_hash, enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('CitsMSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import(user_hash, userIdentity); await gateway.disconnect(); return { body: { user } }; }; ```

CaioPinheiro (Tue, 06 Aug 2019 14:55:38 GMT):
Hello guys! I get this error when I try to perform a ledger insertion transaction : `Error: Failed to connect before the deadline URL:grpc://localhost:7051` Someone can help me? Below is my code using module fabric-network ``` const { Gateway } = require('fabric-network'); const FabricCAServices = require('fabric-ca-client'); const path = require('path'); const { FileSystemWallet, X509WalletMixin } = require('fabric-network'); controller.insert = async function(request, response){ let user_hash = request.body.hash // Check to see if we've already enrolled the admin user. let wallet = request.wallet; const adminExists = await wallet.exists('admin'); if (!adminExists) { throw new Error("Admin is not registred") } // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'admin', discovery: { enabled: true } }); // Get the CA client object from the gateway for interacting with the CA. const ca = gateway.getClient().getCertificateAuthority(); const adminIdentity = gateway.getCurrentIdentity(); //Insert on the ledger const network = await gateway.getNetwork(Constants.GD_CHANNEL_NAME); const contract = network.getContract(Constants.CHAINCODE_NAME); let user = await contract.createTransaction('create').submit(String(user_hash), JSON.stringify(request.body)); // this line is where the error happens // Register the user, enroll the user, and import the new identity into the wallet. const secret = await ca.register({ enrollmentID: user_hash, role: 'client' }, adminIdentity); const enrollment = await ca.enroll({ enrollmentID: user_hash, enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes()); wallet.import(user_hash, userIdentity); await gateway.disconnect(); return { body: { user } }; }; ```

barchiesi (Tue, 06 Aug 2019 15:12:04 GMT):
I would look at the peer logs

Abrara (Tue, 06 Aug 2019 15:25:20 GMT):
grpc might be grpcs?

CaioPinheiro (Tue, 06 Aug 2019 15:35:22 GMT):
This is what the peer log show me ``` 2019-08-06 15:33:12.220 UTC [comm.grpc.server] 1 -> INFO 0ca unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=172.19.0.1:58266 grpc.code=OK grpc.call_duration=1.172935ms 2019-08-06 15:33:12.244 UTC [comm.grpc.server] 1 -> INFO 0cb unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=172.19.0.1:58266 grpc.code=OK grpc.call_duration=541.003µs ```

ItaloCarrasco (Tue, 06 Aug 2019 19:06:33 GMT):
does anyone know how to generate the data_hash of a block

JoshFodale (Tue, 06 Aug 2019 20:29:30 GMT):
You can do this with the NodeSDK. Get the block by doing `channel.queryBlock(blockNumber, peer)`. Once you have the block, you can retrieve the data hash from it: `block.header.data_hash`.

JoshFodale (Tue, 06 Aug 2019 20:35:28 GMT):
I'm trying to set up a network with two orgs, without using cryptogen in order to keep crypto material seperate. When creating the channel artifacts with configtxgen, how should I get the MSP folder for the other orgs? Is this supposed to be passed out-of-band?

ItaloCarrasco (Tue, 06 Aug 2019 20:38:49 GMT):
i need to hash it myself to check if the data_hash is equal to the hashed data, i am checking if the data is modified

ItaloCarrasco (Tue, 06 Aug 2019 20:39:25 GMT):
so i need to hash the data myself but i dont know how and i couldnt find anything related to it

JoshFodale (Tue, 06 Aug 2019 20:42:07 GMT):
ah gotcha. I've only calculated overall hash for the entire block, but not just of the data. Here is the function I wrote, not sure if any use to you: `` function calculateBlockHash(blockNumber, previousHash, dataHash) { const hash = crypto.createHash('SHA256'); // Create a new ASN1JS sequence let sequence = new asn1js.Sequence(); // Add BlockNumber [Integer] sequence.valueBlock.value.push(new asn1js.Integer({ value: blockNumber })); // Add Previous Block Hash [DER OctetString] const previousHashBuff = Buffer.from(previousHash, 'hex'); sequence.valueBlock.value.push(new asn1js.OctetString({ valueHex: previousHashBuff })); // Add Data Hash [DER OctetString] const dataHashBuff = Buffer.from(dataHash, 'hex'); sequence.valueBlock.value.push(new asn1js.OctetString({ valueHex: dataHashBuff })); // Create a DataView from the ASN1JS Sequence and update the hash let sequenceBuffer = new DataView(sequence.toBER(false)); hash.update(sequenceBuffer); return hash.digest('hex'); } ``

JoshFodale (Tue, 06 Aug 2019 20:42:07 GMT):
ah gotcha. I've only calculated overall hash for the entire block, but not just of the data. Here is the function I wrote, not sure if any use to you: ``` function calculateBlockHash(blockNumber, previousHash, dataHash) { const hash = crypto.createHash('SHA256'); // Create a new ASN1JS sequence let sequence = new asn1js.Sequence(); // Add BlockNumber [Integer] sequence.valueBlock.value.push(new asn1js.Integer({ value: blockNumber })); // Add Previous Block Hash [DER OctetString] const previousHashBuff = Buffer.from(previousHash, 'hex'); sequence.valueBlock.value.push(new asn1js.OctetString({ valueHex: previousHashBuff })); // Add Data Hash [DER OctetString] const dataHashBuff = Buffer.from(dataHash, 'hex'); sequence.valueBlock.value.push(new asn1js.OctetString({ valueHex: dataHashBuff })); // Create a DataView from the ASN1JS Sequence and update the hash let sequenceBuffer = new DataView(sequence.toBER(false)); hash.update(sequenceBuffer); return hash.digest('hex'); } ```

ItaloCarrasco (Tue, 06 Aug 2019 20:57:20 GMT):
ty

nickwa (Tue, 06 Aug 2019 22:42:56 GMT):
Has joined the channel.

nickwa (Tue, 06 Aug 2019 22:42:57 GMT):
I was able to setup fabcar from the example, and invoke chaincode on it using the nodejs SDK. Im using an external application to hit the peer on port 7051 via GRPC. When I hit the peer, I see no logs and no response on the peer logs side. The grpc request packets are coming in tho, I verified using tcpdump. On the external application side, I just see "event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [xx.xx.xx.xx:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [xx.xx.xx.xx:7051]"

nickwa (Tue, 06 Aug 2019 22:43:13 GMT):
note: this is on Fabric 1.2

nickwa (Tue, 06 Aug 2019 22:44:41 GMT):
so why does the peer not respond at all, and theres nothing in the peer logs as well (on docker)? Im sure its not a networking issue as I see the packets coming in via tcpdump

nickwa (Tue, 06 Aug 2019 22:47:50 GMT):
Question 2: I set the peer logs level to Debug, and bootstrapped the network again, all I see is more logs which running the user chaincode, how do I see debug level logs on the Endorsement System ChainCode docker container as well?

jastisriradheshyam (Wed, 07 Aug 2019 04:06:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=fAZ6yixCYJJXqJDH9) @nickwa chaincode containers logs are not included when viewed with docker-compose script because they are generated when you instantiate the chaincode. chaincode containers are named with dev in prefix ( can be viewed with `docker ps`) then to see logs from particular chaincode container: `docker logs container-name-or-id`

Utsav_Solanki (Wed, 07 Aug 2019 06:21:26 GMT):
in CLI TOOL i am doing like this peer chaincode instantiate -o ORDERER_NAME:7050 -C abc -n new opt/github,com -v v0 -l node -c '{"Args":[]}' -P "OR('Org1MSP.member', 'Org2MSP.member')" --cafile ORDERER_CA 2019-08-07 04:51:19.985 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-08-07 04:51:19.985 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

Utsav_Solanki (Wed, 07 Aug 2019 06:21:31 GMT):
i got this error

Utsav_Solanki (Wed, 07 Aug 2019 06:21:39 GMT):
any solution

winata (Wed, 07 Aug 2019 09:29:42 GMT):
Hello, I want to create 2 channel with 2 organization on each channel. what is the right way to define it in configtx.yaml ? Profiles: TwoOrgsOrdererGenesis: Consortiums: ConsortiumA: Organizations: - *Org1 - *Org2 - *Org3 - *Org4 ChannelA: Consortium: ConsortiumA Organizations: - *Org1 - *Org2 ChannelB: Consortium: ConsortiumA Organizations: - *Org3 - *Org4 --OR-- Profiles: TwoOrgsOrdererGenesis: Consortiums: ConsortiumA: Organizations: - *Org1 - *Org2 ConsortiumB: Organizations: - *Org3 - *Org4 ChannelA: Consortium: ConsortiumA Organizations: - *Org1 - *Org2 ChannelB: Consortium: ConsortiumB Organizations: - *Org3 - *Org4

fsoares (Wed, 07 Aug 2019 14:00:51 GMT):
Hello, how can I deserialize correctly a transaction received by a call made to QSCC? For example: getTxArgs := ToChaincodeArgs("GetTransactionByID","channel",TxId) getTxResponse := stub.InvokeChaincode("qscc", getTxArgs, "channel")

marinkovicvlado (Wed, 07 Aug 2019 14:03:18 GMT):
I've added a new organization to existing channel, but now I receive these errors on orderer: [channel: coopchannel] Client authorization revoked for deliver request from 172.17.0.17:34944: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied

marinkovicvlado (Wed, 07 Aug 2019 14:03:32 GMT):
Can anyone help, thank you...

marinkovicvlado (Wed, 07 Aug 2019 14:03:32 GMT):
I followed this tutorial to the letter (https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html)... Can anyone help, thank you...

ItaloCarrasco (Wed, 07 Aug 2019 14:07:22 GMT):
is anyone having problems with version 1.4.2 and peer nodes? my peers stop working after a couple of hours, this didnt happen in v 1.4.1

TBdori (Wed, 07 Aug 2019 14:18:39 GMT):
how many channel

neneg (Wed, 07 Aug 2019 14:37:31 GMT):
Are you by any chance behind a proxy?

neneg (Wed, 07 Aug 2019 14:37:31 GMT):
Are you by any chance behind a proxy? of course the calls do not go past the proxy, though, that could sometimes be problematic.

neneg (Wed, 07 Aug 2019 14:40:34 GMT):
Also, make sure that GOPATH is set properly

ItaloCarrasco (Wed, 07 Aug 2019 14:46:18 GMT):
seems like all the peers go down if you stop 1 peer container using v1.4.2 and raft (1 channel, 4 orgs and 1 peer each)

TBdori (Wed, 07 Aug 2019 15:10:59 GMT):
can I have more than one channel among the same nodes?

metadata (Wed, 07 Aug 2019 15:39:01 GMT):
https://medium.com/@kctheservant/demo-of-multi-channel-network-in-hyperledger-fabric-640f7158e2d3

jambonrose (Wed, 07 Aug 2019 15:45:29 GMT):
Has joined the channel.

jambonrose (Wed, 07 Aug 2019 15:45:30 GMT):
param

nickwa (Wed, 07 Aug 2019 15:50:21 GMT):
@jastisriradheshyam yes I know about that, that isnt my question, Im seeing those logs, my question is to see Debug level logs on ESCC container

nickwa (Wed, 07 Aug 2019 15:50:21 GMT):
@jastisriradheshyam yes I know about that, that isnt my question, Im seeing those logs, my question is how to see Debug level logs on ESCC container

nickwa (Wed, 07 Aug 2019 15:51:44 GMT):
not on chaincode container, I can see debug logs on chaincode container

nickwa (Wed, 07 Aug 2019 15:53:27 GMT):
bump, anyone?

jambonrose (Wed, 07 Aug 2019 18:15:11 GMT):
Hi - does anyone have any examples for how to use the `@Param` decorator provided by the `fabric-contract-api` NodeJS package? My understanding (from [the docs](https://fabric-shim.github.io/release-1.4/tutorial-data-types-and-contracts.html) is that decorator allows transactions parameters to be an array of some primitive type, rather than a string.

jambonrose (Wed, 07 Aug 2019 18:15:11 GMT):
Hi - does anyone have any examples for how to use the `@Param` decorator provided by the `fabric-contract-api` NodeJS package? My understanding (from [the docs](https://fabric-shim.github.io/release-1.4/tutorial-data-types-and-contracts.html)) is that decorator allows transactions parameters to be an array of some primitive type, rather than a string.

ts1k (Wed, 07 Aug 2019 19:33:07 GMT):
Has joined the channel.

ts1k (Wed, 07 Aug 2019 19:33:09 GMT):
Hi everyone! do someone knows where I can find a good document on how to start Hyperledger Fabric from zero (without Docker)?

abityildiz (Wed, 07 Aug 2019 20:09:07 GMT):

Clipboard - August 7, 2019 11:08 PM

abityildiz (Wed, 07 Aug 2019 20:09:07 GMT):

Clipboard - August 7, 2019 11:08 PM

Vandersteen (Wed, 07 Aug 2019 21:48:40 GMT):
Has joined the channel.

Vandersteen (Wed, 07 Aug 2019 21:48:41 GMT):
Does anyone have experience using fabric-ca-server with azure mysql 5.7 ? I've been trying for hours to get it to work, however I keep on getting: 2019/08/07 23:39:35 [ERROR] Error occurred initializing database: Failed to connect to MySQL database: this authentication plugin is not supported

Vandersteen (Wed, 07 Aug 2019 21:49:04 GMT):
Even thought, using the same exact connection string in a simple go script

Vandersteen (Wed, 07 Aug 2019 21:49:07 GMT):
it works without any issues

Vandersteen (Wed, 07 Aug 2019 21:50:03 GMT):
I posted more details here: https://stackoverflow.com/questions/57402608/fabric-ca-server-connect-to-azure-mysql-this-authentication-plugin-is-not-suppo I'm desperately looking for help

nickwa (Wed, 07 Aug 2019 23:01:47 GMT):
Is anyone able to make the Go client SDK for ver. 1.2? I keep getting "Running metalinters... gometalinter: error: unknown linters: megacheck, unused, gosimple"

K1L14N (Thu, 08 Aug 2019 07:53:59 GMT):
dear community, i realized that the value stored in the chaincode is actually a string. is it an issue if i allow my chaincode to append characters to my value "object" ?

SateeshBangarugiri (Thu, 08 Aug 2019 08:02:28 GMT):
hi............u know how to connect hyperledger peer to hive MQQT broker

K1L14N (Thu, 08 Aug 2019 08:41:54 GMT):
some ressources about energy consumption of fabric ?

SateeshBangarugiri (Thu, 08 Aug 2019 09:10:57 GMT):
:joy:

sahilgoel (Thu, 08 Aug 2019 11:29:43 GMT):
Hi I am trying to use the service discovery cli

sahilgoel (Thu, 08 Aug 2019 11:30:09 GMT):
but when i run this command discover --configFile conf.yaml peers --channel mychannel --server peer0.org1.example.com:7051

sahilgoel (Thu, 08 Aug 2019 11:30:20 GMT):
it returns the access denied error

sahilgoel (Thu, 08 Aug 2019 11:30:35 GMT):
any help?

HienPham (Thu, 08 Aug 2019 11:37:58 GMT):
[Nodejs invokeChaincode()] Hi all, did anyone test the function: invokeChaincode() in chaincodeStub before (mentioned here: https://jira.hyperledger.org/browse/FAB-9832)? In my case, I got error that arg.forEach is not a function. I guess my arg is not received as an array, but I sent an array to invokeChaincod() and even try the same as intergration test.js.

yacovm (Thu, 08 Aug 2019 12:07:59 GMT):
check the logs of the peer

HienPham (Thu, 08 Aug 2019 12:11:41 GMT):
my dev.peer log shows that: TypeError: args.forEach is not a function. Is that wrong when sending arg=['getKey', 'whoami'] like in the link? Should I convert it into bytearray, as described here: https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html?redirect=true#invokeChaincode__anchor

HienPham (Thu, 08 Aug 2019 12:14:14 GMT):
any help?

someguy (Thu, 08 Aug 2019 13:56:18 GMT):
Hello everyone, can anyone tell me how can I in the chaincode know wich person is making a specific request to the peer?

someguy (Thu, 08 Aug 2019 13:57:43 GMT):
because, i need to instantiate and initialize a certain key/value for different individuals in this specific chaincode

HienPham (Thu, 08 Aug 2019 14:02:04 GMT):
maybe this is what you are looking for: https://fabric-shim.github.io/release-1.4/fabric-shim.ClientIdentity.html

HaroonSaeed (Thu, 08 Aug 2019 14:08:23 GMT):
Has joined the channel.

HaroonSaeed (Thu, 08 Aug 2019 14:08:26 GMT):
I need build an Audit trail and integrate it on Fabric. I installed hyperledger fabric and played around the samples. As a beginner programmer I couldn't get the idea where I can start from building an audit trail and integrate it with Fabric. I have to do my assignment using Java

someguy (Thu, 08 Aug 2019 14:08:53 GMT):
Thanks a lot, just one question. How different is using this methods from the link u just sent me and using the GetCreator() method from shim interface?

HienPham (Thu, 08 Aug 2019 14:15:10 GMT):
getCreator() basically gets everything from the creator identity in json string (including MSPID, id, ...) rather than using clientIdentity to get each field. Test it and you will see.

someguy (Thu, 08 Aug 2019 14:37:11 GMT):
man thanks a lot. really.

someguy (Thu, 08 Aug 2019 14:39:16 GMT):
btw, one more question. im sorry if im pushing it. Do you know how can I like get an action from a chaincode signed by other peers, I mean, does that have to be implemented inside the chaincode or has to bhe by policies and stuff?

JulienTocci (Thu, 08 Aug 2019 16:03:14 GMT):
Hello! I have been playing with Fabric for the last 6 months, i have studied every aspect of it. The last question i have is: In the context of a SaaS offering of Fabric-oriented system to multiple actors that have no trust between each others, does it make sense to have a centralized IaaS/PaaS Fabric system to provide a decentralized system to those actors that will have to trust us (the provider) ? Having decentralized Orderer of even Peer (on the actors sides) would be more secure but in my case, the actors will not have any servers. The usage of Fabric in our case is justified for the simplifaction or the complex ecosystem, smart behavior with chaincodes and immuability of the data. Thank you for your time.

swelankarcls (Thu, 08 Aug 2019 19:03:20 GMT):
Has joined the channel.

swelankarcls (Thu, 08 Aug 2019 19:08:10 GMT):
Hello .. we are having issues with Kafka (not immediately after starting Fabric instance, but may be after 2-4 days of problem-free running) all of a sudden, since we upgraded to Fabric 1.4.0 on our GNU/Linux servers. We get the following FATAL error in Kafka logs and the Kafka instance goes down which makes our Orderers to go down / stop responding as well. The stack trace for the Kafka error is: [2019-08-08 18:27:52,758] INFO Truncating cls1obo-cls4obo-0 to 269 has no effect as the largest offset in the log is 268. (kafka.log.Log) [2019-08-08 18:27:52,759] INFO [ReplicaFetcher replicaId=2, leaderId=1, fetcherId=0] Based on follower's leader epoch, leader replied with an offset 345 >= the follower's log end offset 345 in cls1obo-cls2obo-0. No truncation needed. (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,759] INFO Truncating cls1obo-cls2obo-0 to 345 has no effect as the largest offset in the log is 344. (kafka.log.Log) *[2019-08-08 18:27:52,807] FATAL [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Exiting because log truncation is not allowed for partition cls2obo-cls4obo-0, current leader's latest offset 245 is less than replica's latest offset 253 (kafka.server.ReplicaFetcherThread)* [2019-08-08 18:27:52,808] INFO [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Stopped (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,810] INFO [KafkaServer id=2] shutting down (kafka.server.KafkaServer) [2019-08-08 18:27:52,811] INFO [KafkaServer id=2] Starting controlled shutdown (kafka.server.KafkaServer) Kafka Compose File : - KAFKA_MESSAGE_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_BROKER_ID=0 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper01clsorder.cit.clsnet:2181,zookeeper02clsorder.cit.clsnet:2181,zookeeper03clsorder.cit.clsnet:2181 - LICENSE=accept

swelankarcls (Thu, 08 Aug 2019 19:08:10 GMT):
Hello .. we are having issues with Kafka (not immediately after starting Fabric instance, but may be after 2-4 days of problem-free running) all of a sudden, since we upgraded to Fabric 1.4.0 (Kafka and ZK versions are 0.4.10.1) on our GNU/Linux servers. We get the following FATAL error in Kafka logs and the Kafka instance goes down which makes our Orderers to go down / stop responding as well. The stack trace for the Kafka error is: [2019-08-08 18:27:52,758] INFO Truncating cls1obo-cls4obo-0 to 269 has no effect as the largest offset in the log is 268. (kafka.log.Log) [2019-08-08 18:27:52,759] INFO [ReplicaFetcher replicaId=2, leaderId=1, fetcherId=0] Based on follower's leader epoch, leader replied with an offset 345 >= the follower's log end offset 345 in cls1obo-cls2obo-0. No truncation needed. (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,759] INFO Truncating cls1obo-cls2obo-0 to 345 has no effect as the largest offset in the log is 344. (kafka.log.Log) *[2019-08-08 18:27:52,807] FATAL [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Exiting because log truncation is not allowed for partition cls2obo-cls4obo-0, current leader's latest offset 245 is less than replica's latest offset 253 (kafka.server.ReplicaFetcherThread)* [2019-08-08 18:27:52,808] INFO [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Stopped (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,810] INFO [KafkaServer id=2] shutting down (kafka.server.KafkaServer) [2019-08-08 18:27:52,811] INFO [KafkaServer id=2] Starting controlled shutdown (kafka.server.KafkaServer) Kafka Compose File : - KAFKA_MESSAGE_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_BROKER_ID=0 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper01clsorder.cit.clsnet:2181,zookeeper02clsorder.cit.clsnet:2181,zookeeper03clsorder.cit.clsnet:2181 - LICENSE=accept

swelankarcls (Thu, 08 Aug 2019 19:08:10 GMT):
Hello .. we are having issues with Kafka (not immediately after starting Fabric instance, but may be after 2-4 days of problem-free running) all of a sudden, since we upgraded to Fabric 1.4.0 (Kafka and ZK versions are 0.4.10) on our GNU/Linux servers. We get the following FATAL error in Kafka logs and the Kafka instance goes down which makes our Orderers to go down / stop responding as well. The stack trace for the Kafka error is: [2019-08-08 18:27:52,758] INFO Truncating cls1obo-cls4obo-0 to 269 has no effect as the largest offset in the log is 268. (kafka.log.Log) [2019-08-08 18:27:52,759] INFO [ReplicaFetcher replicaId=2, leaderId=1, fetcherId=0] Based on follower's leader epoch, leader replied with an offset 345 >= the follower's log end offset 345 in cls1obo-cls2obo-0. No truncation needed. (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,759] INFO Truncating cls1obo-cls2obo-0 to 345 has no effect as the largest offset in the log is 344. (kafka.log.Log) *[2019-08-08 18:27:52,807] FATAL [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Exiting because log truncation is not allowed for partition cls2obo-cls4obo-0, current leader's latest offset 245 is less than replica's latest offset 253 (kafka.server.ReplicaFetcherThread)* [2019-08-08 18:27:52,808] INFO [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Stopped (kafka.server.ReplicaFetcherThread) [2019-08-08 18:27:52,810] INFO [KafkaServer id=2] shutting down (kafka.server.KafkaServer) [2019-08-08 18:27:52,811] INFO [KafkaServer id=2] Starting controlled shutdown (kafka.server.KafkaServer) Kafka Compose File : - KAFKA_MESSAGE_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_BROKER_ID=0 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_LOG_RETENTION_MS=-1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper01clsorder.cit.clsnet:2181,zookeeper02clsorder.cit.clsnet:2181,zookeeper03clsorder.cit.clsnet:2181 - LICENSE=accept

Aayush30 (Fri, 09 Aug 2019 05:49:13 GMT):
docker exec cli peer chaincode instantiate -o orderer.example.com:7050 --t ls --cafile $ORDERER_CA -C $CHANNEL_ONE_NAME -c '{"args":['init','user1']}' -n erc20 -v 1.4 -P "OR('Org1MSP.member')" Error: empty JSON chaincode parameters must contain the following keys: 'Args' or 'Function' and 'Args' Code:// Init function func (e *ERC20Chaincode) Init(stub shim.ChaincodeStubInterface) (res pb.Response) { defer func() { if r, ok := recover().(error); ok { res = shim.Error(r.Error()) } }() fcn, args := stub.GetFunctionAndParameters() switch fcn { case "init": res = e.init(stub, args) default: res = shim.Success(nil) } return } func (e *ERC20Chaincode) init(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) != 1 { return shim.Error("invalid arguments") } owner := args[0] setBalance(stub, owner, totalSupply) emitEvent(stub, "Transfer", getTransfer("", owner, totalSupply)) return shim.Success(nil) } ----------------can anyone pleaser resolve this issue 11:18 AM Aayush30 Please redirect your question to chat channel #fabric-questions \[KaTeX\]

metadata (Fri, 09 Aug 2019 05:55:45 GMT):
'{"Args":['init','user1']}'

harshvishnoi (Fri, 09 Aug 2019 08:28:48 GMT):
I am very new to hyperledger fabric. My question may be silly. Why we export FABRIC_CFG_PATH and what it is ?

SateeshBangarugiri (Fri, 09 Aug 2019 09:55:27 GMT):
hello anyone know how to connect hyperledger fabric to MQTT broker

ahmad-raza (Fri, 09 Aug 2019 10:10:01 GMT):
Two ways to develop Chaincode 1. Chaincode Interface 2. Smartcontract Interface Which is better and production ready?

ahmad-raza (Fri, 09 Aug 2019 10:12:33 GMT):
Which methodology is better? One that is used in Balance-transfer Sample(In which keys are kept safe in credential stores) and other used in FabCAR sample example (In which wallet is used)?

Vandersteen (Fri, 09 Aug 2019 11:24:12 GMT):
When using raft etcd in your orderers, where should you get your tls certificates from ? Do they have to come from the fabric-ca ? (If so -> how should I do so ?) Or can I use any tls cert generated by openssl

harshvishnoi (Fri, 09 Aug 2019 13:34:12 GMT):

Screenshot from 2019-08-09 19-01-37.png

MartinKanala (Fri, 09 Aug 2019 13:40:07 GMT):
Hello everybody,

MartinKanala (Fri, 09 Aug 2019 13:48:01 GMT):
Hello everybody, I want to kindly ask you for pointing me to the right direction. I have an organization with 2 peers. One of these peers crashed and reset (k8s pod). Now the pod (peer) is not joined into the channel - even I have persistent folder /var/hyperledger ... two questions are here... 1. Is it possible to "easy" rejoin this peer into the channel? Or it is neccessary to leave with organization from channel and add into again? 2. Where is stored configuration of peer? Which folder should be persistent to have peer after reset as was before withnout any manual effort? Thank you all in advance!

MartinKanala (Fri, 09 Aug 2019 13:48:01 GMT):
Hello everybody, I want to kindly ask you for pointing me to the right direction. I have an organization with 2 peers. One of these peers crashed and reset (k8s pod). Now the pod (peer) is not joined into the channel - even I have persistent folder /var/hyperledger ... two questions are here... 1. Is it possible to "easy" rejoin this peer into the channel? Or it is neccessary to remove organization from channel and add into again? 2. Where is stored configuration of peer? Which folder should be persistent to have peer after reset as was before withnout any manual effort? Thank you all in advance!

ItaloCarrasco (Fri, 09 Aug 2019 13:49:59 GMT):
is there a way to open a ledger and do operations over it iif i have all its files?

Adam_Hardie (Fri, 09 Aug 2019 14:07:38 GMT):
hello all -- can someone please point me in the direction of a working example of HL 1.4 with raft. Most of the samples i find have single orderers

dcof (Fri, 09 Aug 2019 14:14:21 GMT):

Clipboard - August 9, 2019 4:14 PM

dcof (Fri, 09 Aug 2019 14:14:27 GMT):
Hi, I'm currently trying to get a sample network on two different machines up and running. The basic communication is working, when i try to enable TLS, i see an error concerning the TLS handshake. I did some research an it looks like an issue that the certificate used for TLS (i generated them via crypto config) do not contain the IP of the host but the hostname. I'm wondering: is the IP required? I know that i coud configured it using SANS but i thought that hostname would do as this is the way the fabric-samples work (first-network)? Could anyone explain this to me or give me some reading hints?

Adam_Hardie (Fri, 09 Aug 2019 15:12:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zXbXfmAo7LNR2wJ8K) or at least a sample config.tx file with raft orderers please?

nickwa (Fri, 09 Aug 2019 18:47:03 GMT):
anybody how to turn on dEbug level logging on peer0.org1.example.com

mastersingh24 (Sat, 10 Aug 2019 09:08:30 GMT):
If you are using version 1.4.x, have a look at https://hyperledger-fabric.readthedocs.io/en/release-1.4/logging-control.html?highlight=logging

saif_32 (Sat, 10 Aug 2019 16:32:37 GMT):
Hi.. I am getting this error while instantiating chaincode. Can anyone tell me why is this error coming up and how can I fix this ?

saif_32 (Sat, 10 Aug 2019 16:32:46 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network mcbyfn not found #fabric-questions

soumyanayak (Sun, 11 Aug 2019 05:08:40 GMT):
what is the value of the envrionment variable - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE in your peer docker compose? if its set

soumyanayak (Sun, 11 Aug 2019 05:16:58 GMT):
Check this link https://stackoverflow.com/questions/46775044/error-when-try-to-instantiate-chain-code-on-hyperledger-fabric

JeffGutierrez (Mon, 12 Aug 2019 00:45:18 GMT):
Hi Everyone, did anyone here implemented a nodejs Chaincode with the use of Indexing in CouchDB?

cDown (Mon, 12 Aug 2019 07:09:26 GMT):
Has joined the channel.

Shubham-koli (Mon, 12 Aug 2019 08:55:11 GMT):
so I'm getting this error `Failed to submit transaction: Error: No endorsement plan available for {"chaincodes":[{"name":"mycc"}]}` how do I update endorsement policies of the already instantiated chaincodes?

marinkovicvlado (Mon, 12 Aug 2019 11:54:24 GMT):
Hello all, I have enabled TLS and Mutual TLS and it works fine...but when I add a new organization (Org3) with new CA-Org3, I keep getting "TLS handshake failed with error tls: client didn't provide a certificate server=Orderer" on orderer if I try invoking chaincode via org3peer1....

marinkovicvlado (Mon, 12 Aug 2019 11:54:24 GMT):
Hello all, I have enabled TLS and Mutual TLS and it works fine...but when I add a new organization (Org3) with new CA-Org3, I keep getting "TLS handshake failed with error tls: client didn't provide a certificate server=Orderer" on orderer if I try invoking chaincode via org3peer1.... Any clue on what I should do?

saif_32 (Mon, 12 Aug 2019 12:13:53 GMT):
Hi! I am using private data collections. So I updated the collection file (.json) and tried to upgrade. using - peer chaincode upgrade -o orderer.example.com:7050 --tls false --cafile $ORDERER_CA -C mychannel -n medium -v 3.0 -c '{"Args":["init"]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config $GOPATH/src/github.com/chaincode/medium/collections_config.json But unfortunately I am getting the below error-

saif_32 (Mon, 12 Aug 2019 12:13:53 GMT):
Hi! I am using private data collections. So I updated the collection file (.json) and tried to upgrade. using - peer chaincode upgrade -o orderer.example.com:7050 --tls false --cafile $ORDERER_CA -C mychannel -n medium -v 3.0 -c '{"Args":["init"]}' -P "OR('Org1MSP.member','Org2MSP.member')" --collections-config $GOPATH/src/github.com/chaincode/medium/collections_config.json But unfortunately I am getting the below error- Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (medium:3.0)

superafro12 (Mon, 12 Aug 2019 12:14:14 GMT):
Hello! I'm using Fabric CA to generate certificates for my network. Currently I have one root CA and two intermediate CAs and already I find the MSP structure a bit messy. How do you manage certificates in a good way? Is it possible to see or get an overview of issued and revoked certificates? Thanks!

neneg (Mon, 12 Aug 2019 12:23:28 GMT):
Hi! How can I read/open a file in chaincode developed in Golang? How can I make the file be accessible in the chaincode container when installing the chaincode?

Adam_Hardie (Mon, 12 Aug 2019 13:18:42 GMT):
Hi there - I have setup a raft OSN swarm on docker. I keep seeing the following in logs.. how should i troubleshoot this ? Thanks 2019-08-12 13:17:40.640 UTC [core.comm] ServerHandshake -> ERRO 707 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=10.0.0.4:51536 2019-08-12 13:17:40.640 UTC [grpc] handleRawConn -> DEBU 708 grpc: Server.Serve failed to complete security handshake from "10.0.0.4:51536": tls: first record does not look like a TLS handshake

dcof (Mon, 12 Aug 2019 14:13:13 GMT):
I came across a similar issue. In my case, if configured the orderer node to accept only TLS connections but i forgot to adjust the peers to use TLS as well leading to a case where the peers send plain requests to the orderer which only accepts TLS. Once i configured the peers to use TLS as well, it went well. Hope this helps in some way.

Adam_Hardie (Mon, 12 Aug 2019 15:09:36 GMT):
thanks! thats helpful

dcof (Mon, 12 Aug 2019 15:55:25 GMT):

Clipboard - August 12, 2019 5:53 PM

bis2019 (Mon, 12 Aug 2019 16:40:47 GMT):
Has joined the channel.

nickwa (Mon, 12 Aug 2019 21:07:12 GMT):
I did, that didnt work

nickwa (Mon, 12 Aug 2019 21:08:58 GMT):
Question: I downloaded Fabric Go SDK (https://github.com/hyperledger/fabric-sdk-go). Then I ran "make", this results in: [fabsdk/fab] 2019/08/12 20:52:10 UTC - peer.(*peerEndorser).sendProposal -> ERRO process proposal failed [rpc error: code = DeadlineExceeded desc = context deadline exceeded]

nickwa (Mon, 12 Aug 2019 21:09:28 GMT):
Also: Installing and instantiating example chaincode...Done [27177 ms] integration-tests_1 | [fabsdk/util] 2019/08/12 20:45:28 UTC - lazyref.(*Reference).refreshValue -> WARN Error - initializer returned error: error calling discover service send: From target: peer0.org1.example.com:7051: discovery service refused our Request: rpc error: code = DeadlineExceeded desc = context deadline exceeded. Will retry again later integration-tests_1 | [fabsdk/util] 2019/08/12 20:45:28 UTC - lazyref.(*Reference).refreshValue -> WARN Error - initializer returned error: error calling discover service send: Multiple errors occurred: - From target: peer1.org1.example.com:7151: discovery service refused our Request: rpc error: code = DeadlineExceeded desc = context deadline exceeded - From target: peer0.org1.example.com:7051: discovery service refused our Request: rpc error: code = DeadlineExceeded desc = context deadline exceeded. Will retry again later

nickwa (Mon, 12 Aug 2019 21:11:03 GMT):

Clipboard - August 12, 2019 2:10 PM

WebKruncher (Tue, 13 Aug 2019 01:04:53 GMT):
Has joined the channel.

SatoshiNishishita (Tue, 13 Aug 2019 02:15:33 GMT):
Question:I tried peer node rollback command. it issued the below error message. What should I do?

SatoshiNishishita (Tue, 13 Aug 2019 02:15:33 GMT):
Question:I tried peer node rollback command. it issued the below error message. What should I do? root@9a9a6a3d3a3e:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer node rollback -c mychannel Error: as another peer node command is executing, wait for that command to complete its execution or terminate it before retrying: lock is already acquired on file /var/hyperledger/production/ledgersData/fileLock

superafro12 (Tue, 13 Aug 2019 08:37:49 GMT):
Hi! In a network with two organizations, Org1 and Org2, where Org1 should be the "admin org" in command of chaincode installations etc. and Org2 is only there to perform transactions and accept chaincode updates. Org1 obviously need an admin user for performing those operations, but does Org2 need an admin user for its operations or is it enough to have a normal user in Org2?

jiwanglai (Tue, 13 Aug 2019 09:06:09 GMT):
Has joined the channel.

NaveenVamshi (Tue, 13 Aug 2019 09:30:36 GMT):
While running balance-transfer using the commnds

NaveenVamshi (Tue, 13 Aug 2019 09:35:55 GMT):
When i am running the Balance-tarnsfer in Hyperledger-fabric ./runApp.sh after running the ./testAPIS.sh getting the error 2019-08-13T09:27:24.045Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 [2019-08-13 14:57:24.045] [ERROR] Query - Error: Failed to connect before the deadline URL:grpcs://localhost:7051 , How can i resolve this nerror

NaveenVamshi (Tue, 13 Aug 2019 09:35:55 GMT):
When i am running the Balance-tarnsfer in Hyperledger-fabric ./runApp.sh after running the ./testAPIS.sh getting the error 2019-08-13T09:27:24.045Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 [2019-08-13 14:57:24.045] [ERROR] Query - Error: Failed to connect before the deadline URL:grpcs://localhost:7051 , How can i resolve this error

sahilgoel (Tue, 13 Aug 2019 10:04:24 GMT):
Please check https://stackoverflow.com/questions/57472814/hyperledger-fabric-node-sdk-specify-target-peers-in-invoke

saif_32 (Tue, 13 Aug 2019 10:42:52 GMT):
Hi, after upgrading the chaincode and invoking it, I am getting this error.

saif_32 (Tue, 13 Aug 2019 10:42:54 GMT):
Error: endorsement failure during invoke. response: status:500 message:"failed to execute transaction 1f65e8e3de0076788e1427c4cd2f679ca3ed234c675d470021d6785ed97f498b: error sending: timeout expired while executing transaction"

saif_32 (Tue, 13 Aug 2019 10:43:19 GMT):
Please help!

marinkovicvlado (Tue, 13 Aug 2019 10:46:16 GMT):
I have a question regarding mutual TLS when adding new organization to existing channel...can anyone help me with some guidance? Thank you!

superafro12 (Tue, 13 Aug 2019 13:16:27 GMT):
what MSP identity type should a CA have and what difference does it make?

dave.mckay (Tue, 13 Aug 2019 13:24:33 GMT):
Has joined the channel.

dave.mckay (Tue, 13 Aug 2019 13:24:35 GMT):
peer command

HienPham (Tue, 13 Aug 2019 14:27:37 GMT):
I had the same problem. Maybe It would be great if you could post the config file here

AnilSingh (Tue, 13 Aug 2019 14:33:53 GMT):
from the error it looks like you don't have version 3.0 of chaincode on peer you running upgrade from. Please try to cross check the same "peer chaincode list --installed" if not install version 3.0 and run the upgrade command

dachrillz (Tue, 13 Aug 2019 16:59:33 GMT):
Has joined the channel.

dachrillz (Tue, 13 Aug 2019 17:04:29 GMT):
Hello all I have a noobie question that I would love to get an answer to. I'm struggling to understand how the MSP is actually used in a network. I know that it serves as an abstraction over the nitty gritty details of the certificates. I can't find any documentation on how the different entities actually interact with an MSP. For example if I use FabricCA, how does the MSP make the handling of identities become easier? Does the MSP retrieve the certificates from the CA for you? I'm currently writing a Master's thesis on Fabric and would like to understand in detail how the identification is actually handed.

dachrillz (Tue, 13 Aug 2019 17:04:29 GMT):
Hello all I have a noobie question that I would love to get an answer to. I'm struggling to understand how the MSP is actually used in a network. I know that it serves as an abstraction over the nitty gritty details of the certificates. I can't find any documentation on how the different entities actually interact with an MSP. For example if I use FabricCA, how does the MSP make the handling of identities become easier? Does the MSP retrieve the certificates from the CA for you? I'm currently writing a Master's thesis on Fabric and would like to understand in detail how the identification is actually handed. Many thanks!

rrevuru (Tue, 13 Aug 2019 22:28:34 GMT):
Has joined the channel.

Karthik1337 (Wed, 14 Aug 2019 04:37:59 GMT):
Hi, I want get the count of records in the blockchain. Not with history. Can anyone help with this.

JenishBajracharya (Wed, 14 Aug 2019 06:25:23 GMT):
Hello all, Is it possible to endorse chaincode by only one specific organization member out of multiple organizations in a fabric network? If yes, what would be the structure of the endorsement policy?

JenishBajracharya (Wed, 14 Aug 2019 06:25:23 GMT):
Hello all, Is it possible to endorse transaction by only one specific organization member out of multiple organizations in a fabric network? If yes, what would be the structure of the endorsement policy?

neneg (Wed, 14 Aug 2019 07:26:56 GMT):
you can get the blockchain height

saif_32 (Wed, 14 Aug 2019 07:27:40 GMT):
Hi! I wrote a new function in my chaincode. I have installed and upragded it. Still I am getting this error- peer chaincode query -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n medium -c '{"Args":["getProductSellingPrice","2020"]}' Error: endorsement failure during query. response: status:500 message:"Invalid invoke function name." It seems I am not able to hit the functuin. Please help.

saif_32 (Wed, 14 Aug 2019 07:27:40 GMT):
Hi! I wrote a new function in my chaincode. I have installed and upragded it. Still I am getting this error- peer chaincode query -o orderer.example.com:7050 --tls --cafile $ORDERER_CA -C mychannel -n medium -c '{"Args":["getProductSellingPrice","2020"]}' Error: endorsement failure during query. response: status:500 message:"Invalid invoke function name." It seems I am not able to hit the function. Please help.

Utsav_Solanki (Wed, 14 Aug 2019 07:28:47 GMT):
where to find gRPC running in HLfabric

Utsav_Solanki (Wed, 14 Aug 2019 07:28:47 GMT):
where to find gRPC running in HLfabric network

superafro12 (Wed, 14 Aug 2019 07:32:36 GMT):
So MSP is basically a specific folder structure that HLF employs. The certificates and keys are stored in these folders. An organization has their own MSP, meaning they have their own MSP folder, the same goes for all entities in the network, such as peers, orderers and clients. In https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html you can read about the different folders that's inside the MSP folder. So for a peer, you would place all the security credentials connected to it in the peer's MSP folder. Another example is when you create the channel.tx (or ordering system channel, I believe). First you specify organizations in the configtx.yaml file and their MSP (pointing to the MSP folder for that organization), which, for example, contains a CA's certificate. This then adds this organization to the cosortium, which is a list of organizations that are allowed to create channels. Since you pointed to the MSP for an organization with a CA certificate, entities that had their certificates issued from that CA can be authenticated by the orderer.

Karthik1337 (Wed, 14 Aug 2019 08:10:17 GMT):
@neneg Thanks for replying :handshake: . I don't want total count. I want count of every model in the chaincode. For pagination purpose.

Shubham-koli (Wed, 14 Aug 2019 09:10:35 GMT):
if you are using couchdb then you can directly interact with the couchdb and get the data you need. http://localhost:5984/_utils

snowch0x41in (Wed, 14 Aug 2019 12:28:03 GMT):
Has joined the channel.

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. How to fix it? Output: `1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51` Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. How to fix it? Output: ````1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. How to fix it? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. How to fix it? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` I also looked it up in the dockerhub. There exists multiple versions, but no 1.4.2. Which one to choose now that should fit here? Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. How to fix it? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` I also looked it up in the dockerhub. There exists multiple versions, but no 1.4.2. Which one to choose now that should fit here? Shouldn't this script work alone? Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. For me there seems to be a bug in the script: dockerFabricPull() { local FABRIC_TAG=$1 for IMAGES in peer orderer ccenv tools baseos nodeenv javaenv; do ... but baseos and nodeenv have no 1.4.2 files. They need 0.4.15 for this version of 1.4.2 fabric ?? Am I right? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` I also looked it up in the dockerhub. There exists multiple versions, but no 1.4.2. Which one to choose now that should fit here? Shouldn't this script work alone? Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. For me there seems to be a bug in the script: dockerFabricPull() { local FABRIC_TAG=$1 for IMAGES in peer orderer ccenv tools baseos nodeenv javaenv; do ... but baseos and nodeenv have no 1.4.2 files. They need 0.4.15 for this version of 1.4.2 fabric ?? Am I right? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` I also looked it up in the dockerhub. There exists multiple versions, but no 1.4.2. Which one to choose now that should fit here?? Thank you!

snowch0x41in (Wed, 14 Aug 2019 12:28:04 GMT):
[EDIT with Install ScriptBug suggestion?!] Hello, I followed the official fabric "release-1.4" instructions and got problems with the download install script : `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.2 1.4.2 0.4.15` cannot pull *nodeenv* and *baseos* cause of "not found" error. For me there seems to be a bug in the script: dockerFabricPull() { local FABRIC_TAG=$1 for IMAGES in peer orderer ccenv tools baseos nodeenv javaenv; do ... but baseos and nodeenv have no 1.4.2 files. They need 0.4.15 for this version of 1.4.2 fabric ?? Am I right? Output: ```1.4.2: Pulling from hyperledger/fabric-tools Digest: sha256:a5c377e8587d4543685b474637ab1d4aed86988b893e5f176032129b620b6bf2 Status: Image is up to date for hyperledger/fabric-tools:1.4.2 docker.io/hyperledger/fabric-tools:1.4.2 ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: javaenv 1.4.2: Pulling from hyperledger/fabric-javaenv Digest: sha256:b3cc1042b7b08607f2d781e036251cf3a51 ``` I also looked it up in the dockerhub. There exists multiple versions, but no 1.4.2. Which one to choose now that should fit here?? Thank you!

Adam_Hardie (Wed, 14 Aug 2019 15:50:27 GMT):
hi all - I am trying to create a channel with TLS enabled. Peer and Orderer containers have launched without error. when i run peer channel create command (with --tls and --cafile flags set) the peer prints the following logs : > Loading private key [66f52f4d8018e9b5d7e9d1ab14bd056e64c03ac1ee08d795bbf843f0b305dc99] at > [/etc/hyperledger/fabric/msp/keystore/66f52f4d8018e9b5d7e9d1ab14bd056e64c03ac1ee08d795bbf843f0b305dc99_sk however - the orderer prints the following > error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

Adam_Hardie (Wed, 14 Aug 2019 15:51:11 GMT):
i seem to have mounted the correct certificates.. as per the byfn docker yaml configs. However my peer does not seem to be an Admin for the MSP

Adam_Hardie (Wed, 14 Aug 2019 16:08:50 GMT):
i believe perhaps it is due to policies section of configtx (i am using cryptogen to mount the keyfiles onto the Organisation's containers)

ashish.cppdev (Wed, 14 Aug 2019 17:17:19 GMT):
Hi everyone - using the first-network byfn.sh script, we keep running into an issue when we run byfn.sh up -l node since our environment uses a local npm registry instead of npmjs.org. Any suggestions?

ashish.cppdev (Wed, 14 Aug 2019 17:17:19 GMT):
Hi everyone - using the first-network byfn.sh script, we keep running into an issue when we run byfn.sh up -l node since our environment uses a local npm registry instead of npmjs.org. Any suggestions? The error received is 500 - registry.npmjs.org not found

someguy (Wed, 14 Aug 2019 17:50:48 GMT):
Hello guys where can i customize the endorsements policies, and also can i change them on the fly on a chaincode?

rodolfoleal (Wed, 14 Aug 2019 19:11:06 GMT):
Use a .npmrc poiting to your internal registry on chaincode folder.

rodolfoleal (Wed, 14 Aug 2019 19:12:10 GMT):
You can setup that on Instatiate, on the fly you can only change the key level endorsements but only for change, on key creation it uses the chaincode level policy

ashish.cppdev (Wed, 14 Aug 2019 19:29:22 GMT):
Thanks @rodolfoleal you mean the /fabric-samples/chaincode folder?

ashish.cppdev (Wed, 14 Aug 2019 19:38:19 GMT):
Thanks I figured it out. It is chaincode//node/ folder. I was able to get past the error

ashish.cppdev (Wed, 14 Aug 2019 19:38:25 GMT):
Thanks!

rodolfoleal (Wed, 14 Aug 2019 19:47:08 GMT):
Great. Best Regards

ashish.cppdev (Wed, 14 Aug 2019 19:52:48 GMT):
:thumbsup:

someguy (Wed, 14 Aug 2019 20:02:48 GMT):
Can you help me with something? I dont know if i got this right but let me explain my doubt. So, an agent/client executes a chaincode to do an action on the blockchain, this proposal will be endorsed by the other peers, but is there a way that this other peers notify their clients or a specific client from a certain organization about the event that the other client executed?

someguy (Wed, 14 Aug 2019 20:04:31 GMT):
becau my use case is, client A executes chaincode to do an action on the blockchain but this action needs to later be validated by other clients to that client A gains a bonus for that action he submitted

someguy (Wed, 14 Aug 2019 20:04:46 GMT):
so*

someguy (Wed, 14 Aug 2019 20:05:09 GMT):
im sorry if this is too much bro

rodolfoleal (Wed, 14 Aug 2019 20:05:19 GMT):
I think today we only have events while commiting the block or transaction.

someguy (Wed, 14 Aug 2019 20:06:24 GMT):
hmm, ok, but the use case im saying is doable?

rodolfoleal (Wed, 14 Aug 2019 20:09:01 GMT):
You can set a chaincode events and your client will be notified when the peer receive the block that has this event

rodolfoleal (Wed, 14 Aug 2019 20:10:44 GMT):
But your peer has to be on the channel

someguy (Wed, 14 Aug 2019 20:10:56 GMT):
yeah i know that xD

someguy (Wed, 14 Aug 2019 20:15:37 GMT):
ok, i think i got it. thanks for your help. You are a fabric dev or you just happen to know a lot about fabric?

someguy (Wed, 14 Aug 2019 20:20:15 GMT):
because i could some more help if you dont mind ahah

rodolfoleal (Wed, 14 Aug 2019 20:22:01 GMT):
Actually I working with Fabric for 2 years in a private company.

rodolfoleal (Wed, 14 Aug 2019 20:22:19 GMT):
Never had contributed with code, but

rodolfoleal (Wed, 14 Aug 2019 20:22:33 GMT):
planning to do that very soon.

rodolfoleal (Wed, 14 Aug 2019 20:22:44 GMT):
:wink:

someguy (Wed, 14 Aug 2019 20:23:18 GMT):
wow thats pretty cool man, im portuguese btw you pt or brazilian? xD

someguy (Wed, 14 Aug 2019 20:23:47 GMT):
this questions im asking you are for a final degree school project btw

ashish.cppdev (Wed, 14 Aug 2019 21:08:42 GMT):
Another question relating to npm config in .npmrc. We have a cafile that points to a local pem file. Now, when chaincode instantiates, it uses the settings in our project .npmrc file but is unable to figure out the cafile as that path is not available in the docker container. Any suggestions would be most helpful. Thanks !

mikhailKh (Wed, 14 Aug 2019 21:50:15 GMT):
Has joined the channel.

mikhailKh (Wed, 14 Aug 2019 21:50:17 GMT):
Hi everyone, I am trying to set up data persistence in startFabric example setting parameters in daemon.json "live-restore": true, in docker-compose-couch.yaml ` volumes: - /var/hyperledger/couchdb0:/opt/couchdb/data` When I restart docker it works fine, but when I reboot server all containers have got status *exited* with code 255. However if I restart containers manually `docker restart ` it works fine again. Thank you in advance.

akoenig (Thu, 15 Aug 2019 07:47:12 GMT):
Hi, does a commiting-peer needs private-certs from the admin as well? Or can we run a commiting-peer without private-keys?

akoenig (Thu, 15 Aug 2019 07:47:12 GMT):
Hi, does a commiting-peer need a private-cert from the admin as well? Or can we run a commiting-peer without private-keys?

superafro12 (Thu, 15 Aug 2019 08:37:28 GMT):
Heya! I want to revoke a peer's certificate.

mastersingh24 (Thu, 15 Aug 2019 09:21:41 GMT):
All peer nodes need an identity so you'll need to populate `msp/keystore` and `msp/signcerts` with a valid key pair for the peer's org. The peer does not need to run as an admin, but `msp/admincerts` should contain the public key(s) of users who can perform admin actions on the peer.

akoenig (Thu, 15 Aug 2019 09:22:42 GMT):
Okay, thanks. But what does the peer / user with the private key? The commiting peer only writes the information down to the leder, right?

akoenig (Thu, 15 Aug 2019 09:22:42 GMT):
Okay, thanks. But what does the peer / user do with the private key? The commiting peer only writes the information down to the leder, right?

superafro12 (Thu, 15 Aug 2019 09:26:32 GMT):
Hi! I revoked peer1's certificate with 'fabric-ca-client revoke -e peer1'. Can I reset the CA somehow so I can reuse peer1 as identity again or is there any other solution?

mastersingh24 (Thu, 15 Aug 2019 09:38:00 GMT):
it will need the private key to actually sign the messages used to connect to the orderer to get the blocks. The orderer authenticates and authorizes based on the identity used to sign the Deliver API call

mastersingh24 (Thu, 15 Aug 2019 09:38:00 GMT):
it will need the private key to actually sign the messages used to connect to the orderer to get the blocks. The orderer authenticates and authorizes based on the identity used to sign the Deliver API call used by the peer to actually connect to channel(s)

akoenig (Thu, 15 Aug 2019 10:03:51 GMT):
Ok, thanks - so last question: Can someone sign a transaction with this key and send to an endorsing peer to execute the chaincode?

superafro12 (Thu, 15 Aug 2019 11:53:56 GMT):
Hello again, I'm trying to update the channel configuration with revoked certificates. I've fetched the config block and translated it into json-format. How I see a field named 'revocation_list'. What exactly should I put there? Thanks!

marinkovicvlado (Thu, 15 Aug 2019 12:24:22 GMT):
Hello, I am adding a new Org3 to existing channel and I am confused about using: ```configtxgen -printOrg Org3MSP > org3.json``` It sets certificates which appears to not be the valid ones...After updating genesis block, I keep getting tls error: bad certificate

marinkovicvlado (Thu, 15 Aug 2019 12:24:22 GMT):
Hello, I am adding a new Org3 to existing channel and I am confused about using: ```configtxgen -printOrg Org3MSP > org3.json``` It sets certificates which appears to not be the valid ones...After updating genesis block, I keep getting tls error: bad certificate On my peer I set following variables, similarly as for Org1 and Org2 where I don't have TLS psoblems: ``` - name: CORE_PEER_TLS_ENABLED value: "true" - name: CORE_PEER_TLS_CERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_KEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.key" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_ROOTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/ca.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_CLIENTAUTHREQUIRED value: "true" - name: CORE_PEER_TLS_CLIENTROOTCAS_FILES value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/ca.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTKEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.key" $org.name $org.name }} ```

marinkovicvlado (Thu, 15 Aug 2019 12:24:22 GMT):
Hello, I am adding a new Org3 to existing channel and I am confused about using: ```configtxgen -printOrg Org3MSP > org3.json``` It sets certificates which appears to not be the valid ones...After updating genesis block, I keep getting tls error: bad certificate On my peer I set following variables, similarly as for Org1 and Org2 where I don't have TLS psoblems: - name: CORE_PEER_TLS_ENABLED value: "true" - name: CORE_PEER_TLS_CERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_KEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.key" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_ROOTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/ca.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_CLIENTAUTHREQUIRED value: "true" - name: CORE_PEER_TLS_CLIENTROOTCAS_FILES value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/ca.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTKEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.key" $org.name $org.name }}

marinkovicvlado (Thu, 15 Aug 2019 12:24:22 GMT):
Hello, I am adding a new Org3 to existing channel and I am confused about using: ```configtxgen -printOrg Org3MSP > org3.json``` It sets certificates which appears to not be the valid ones...After updating genesis block, I keep getting tls error: bad certificate On my org3peer I set following variables, similarly as for Org1 and Org2 where I don't have TLS psoblems: - name: CORE_PEER_TLS_ENABLED value: "true" - name: CORE_PEER_TLS_CERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_KEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/server.key" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_ROOTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/peers/blockchain-%speer%d.%s.example.com/tls/ca.crt" $org.name $org.name $peerIndex $org.name }} - name: CORE_PEER_TLS_CLIENTAUTHREQUIRED value: "true" - name: CORE_PEER_TLS_CLIENTROOTCAS_FILES value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/ca.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTCERT_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.crt" $org.name $org.name }} - name: CORE_PEER_TLS_CLIENTKEY_FILE value: {{ printf "/shared/crypto-config/peerOrganizations/%s.example.com/users/Admin@%s.example.com/tls/client.key" $org.name $org.name }}

mixtheman (Thu, 15 Aug 2019 12:45:24 GMT):
Has joined the channel.

mixtheman (Thu, 15 Aug 2019 12:45:25 GMT):
Hi there.

mixtheman (Thu, 15 Aug 2019 12:45:29 GMT):
I am using Hyperledger Fabric in combination with docker. My question is, how do i find out which peers verified a transaction in Hyperledger Fabric? I use this code to instantiate my chaincode, which works: docker exec -e "CORE_PEER_ADDRESS=peer0.org1.example.com:7051" cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mycc -l golang -v ${CC_VERSION} -c '{"Args":["entry","5"]}' -P "OutOf(2, 'Org1MSP.member', 'Org1MSP.member')" I am using peers from the same organization to verify the transaction. All of my code works, but after running the code (which includes invokes), can i somehow check the block to see which peers endorsed the transactions that were made? I have tried using the configtxlator to decode and view the block, but cannot find any information about endorsements in mychannel.block.

mastersingh24 (Thu, 15 Aug 2019 12:49:19 GMT):
Depends ... If the peer's org also has write permission to the channel (which it might if it has clients that can submit transactions), then yes. But if you create an org which is only going to commit transactions, then the peer's org could be limited to being a channel reader and would not be able to submit transactions

akoenig (Thu, 15 Aug 2019 12:56:28 GMT):
No, the org should have also write permissions. Can there be an org inside the channel / channel-config. Without haveing an own peer? Because the Certs are inside the channel-conifg right? So could it be enought to have write permission without a peer?

superafro12 (Thu, 15 Aug 2019 13:30:44 GMT):
Okey so nodes in the network can either be: clients, peers or orderers. This is specified with --id.type. What different types are there for entities that are not nodes? Is there any list of possible identity types or doesn't it matter? What kind of type should a CA be? What kind of type should an admin be? Thank you!

ashish.cppdev (Thu, 15 Aug 2019 14:55:01 GMT):
Another question relating to npm config in .npmrc. We have a cafile that points to a local pem file. Now, when chaincode instantiates, it uses the settings in our project .npmrc file but is unable to figure out the cafile as that path is not available in the docker container. Any suggestions would be most helpful. Thanks !

Adam_Hardie (Thu, 15 Aug 2019 15:45:26 GMT):
hey guys - I am trying to setup a channel with TLS - I have mounted the orderer cert file into the peer - and am using the directory for the peer channel create --cafile option... however when I make the call, the orderer rejects with Signed by unkown authority.

Adam_Hardie (Thu, 15 Aug 2019 15:52:42 GMT):
is this a problem with the orderer certificate? tlsca.company-cert.pem from the msp folder? or is it a deeper problem with the peer? thanks

Adam_Hardie (Thu, 15 Aug 2019 17:05:55 GMT):
ive tried to pick this apart from the byfn network scripts but seem to have gone wrong somewhere. any help is appreciated

Vandersteen (Thu, 15 Aug 2019 18:29:06 GMT):
Hey Adam_Hardie

Vandersteen (Thu, 15 Aug 2019 18:29:10 GMT):
I seem to have the same issue

Vandersteen (Thu, 15 Aug 2019 18:29:20 GMT):
https://stackoverflow.com/questions/54152469/how-to-setup-a-blockchain-network-with-tls-in-peers-and-orderers

Vandersteen (Thu, 15 Aug 2019 18:29:34 GMT):
Oops

Vandersteen (Thu, 15 Aug 2019 18:29:37 GMT):
wrong link

Vandersteen (Thu, 15 Aug 2019 18:29:38 GMT):
https://stackoverflow.com/questions/57513234/hyperledger-fabric-peer-unable-to-connect-to-raft-orderer-with-mutual-tls

Vandersteen (Thu, 15 Aug 2019 18:30:54 GMT):
I have checked this over and over - compared it with samples, files are mounted correctly, ca.cert is the same everywhere - however i keep on getting "Signed by unkown authority"

soumyanayak (Fri, 16 Aug 2019 07:24:23 GMT):
Hi Team, I tried installing the fabric binaries for 2.0.0-alpha. So while checking for configtxgen version i am getting the below error -- ranjan@ubuntuVMServer16:~$ configtxgen version 2019-08-16 12:52:04.638 IST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-08-16 12:52:04.639 IST [common.tools.configtxgen.localconfig] LoadTopLevel -> PANI 002 Error reading configuration: Unsupported Config Type "" 2019-08-16 12:52:04.639 IST [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: Unsupported Config Type "" panic: Error reading configuration: Unsupported Config Type "" [recovered] panic: Error reading configuration: Unsupported Config Type "" goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ede40, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e218, 0xc0002c9804, 0xc000032980, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e218, 0xc000032980, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e220, 0xc0002c99a8, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:228 +0x1a9 panic(0xd6be40, 0xc00026b460) /opt/go/go1.11.5.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000ede40, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e1f8, 0xc0002c9c04, 0xc000032880, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e1f8, 0xc000032880, 0x38, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e200, 0xc0002c9dc8, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/internal/configtxgen/localconfig.LoadTopLevel(0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/internal/configtxgen/localconfig/config.go:240 +0x332 main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:246 +0xc28

superafro12 (Fri, 16 Aug 2019 08:30:36 GMT):
Isn't there anyone that has any answers for my questions? O.o Anyway, here's another: how do I sign a channel config update with an orderer admin? I have 1 peer organization and one orderer organization. If I try to use my peers in the peer organization to sign with the orderer admin's msp, the peer says that the certificate is signed by unknow authority, since the orderer admin's cert is issued by the orderer organization CA (which the peer organization isn't aware of).

dcof (Fri, 16 Aug 2019 08:51:16 GMT):
Hi, i had a similar issue once. In my case there was some sort of cert mismatch as the docker volumes were not correctly updated. I pruned them manually via docker volume prune. That way i made sure that, starting the container again, the certs were binded correctly. Maybe it's something like this in your case too. Hope this helps.

Adam_Hardie (Fri, 16 Aug 2019 10:05:36 GMT):
thanks @dcof . I thought this would also be the cause at first. I have added a volume and network prune to my teardown script in case some configs were being kept

dcof (Fri, 16 Aug 2019 10:23:29 GMT):
Do you prune the container itself as well?

Adam_Hardie (Fri, 16 Aug 2019 10:26:13 GMT):
yeah i clear down everything

adineshreddy1 (Fri, 16 Aug 2019 11:41:00 GMT):
Has joined the channel.

superafro12 (Fri, 16 Aug 2019 11:48:44 GMT):
Hi team, I have 2 peers in my network where one peer is both anchor and leader peer. I have revoked that peer's certificate and updated the channel configuration, but it can still invoke chaincode queries, however no chaincode that updates the world state. I'm not able to invoke any chaincode at all that updates the world state, even though my other peer's certificate isn't revoked. If I stop my anchor and leader peer the other peer automatically takes over as leader and continues to invoke chaincode, but this is not the case when the leader peer's certificate is revoked. 1. Should an invoked peer still be able to peform queries? 2. How should I do to make the other peer able to "take over" when the first peer's certificate is revoked? Cheers!

Adam_Hardie (Fri, 16 Aug 2019 12:54:55 GMT):
sorry, I have to ask.. is byfn.sh and other scripts really the best way to point people to learn how to deploy? its very convoluted with raft, kafka, etc all within the same scripts. I am trying to setup the most basic raft network with tls but i have to unpick so many things and it is a slow process. It feels like wasting time and stack overflow questions remain unanswered

Adam_Hardie (Fri, 16 Aug 2019 12:59:01 GMT):
also, the base docker files will not work in the latest docker compose version, which is required for swarm mode. so in order to have orderers on different sites (as required for fail-safe) no docker compose files in the samples are actual working versions

sstone1 (Fri, 16 Aug 2019 12:59:35 GMT):
@Adam_Hardie no, it's not, which is why we're trying to cut down BYFN and separate out the important bits into other tutorials/samples ;-)

sstone1 (Fri, 16 Aug 2019 12:59:35 GMT):
@Adam_Hardie no, it's not, which is why we're trying to cut down BYFN and separate out the other important bits (chaincode deployment, upgrade, etc) into other tutorials/samples ;-)

Adam_Hardie (Fri, 16 Aug 2019 13:00:16 GMT):
thats great to hear! thank you for reassuring...

Adam_Hardie (Fri, 16 Aug 2019 13:03:44 GMT):
is there a sample raft sample available? I am having problems with TLS certificates, and it appears to be the same configuration as byfn, except for running on swarm mode

Adam_Hardie (Fri, 16 Aug 2019 13:03:44 GMT):
is there a simple raft sample available? I am having problems with TLS certificates, and it appears to be the same configuration as byfn, except for running on swarm mode

mastersingh24 (Fri, 16 Aug 2019 13:06:06 GMT):
The container hostnames generated by swarm mode are an entirely different format than the names generated when running in "normal" mode with Docker Compose.

Adam_Hardie (Fri, 16 Aug 2019 13:06:54 GMT):
thats right, however as they are within the network, the peer can still use the hostname eg orderer0.company

Adam_Hardie (Fri, 16 Aug 2019 13:07:26 GMT):
im able to get the orderers and peers talking together, but deploying a channel fails with tls problems.

mastersingh24 (Fri, 16 Aug 2019 13:08:16 GMT):
what's the error?

Adam_Hardie (Fri, 16 Aug 2019 13:09:32 GMT):
on the orderer side: TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=10.0.0.4:34962 on the peer side: Error: failed to create deliver client: orderer client failed to connect to orderer0.company:7050: failed to create new connection: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate"

Adam_Hardie (Fri, 16 Aug 2019 13:10:05 GMT):
i have mounted ORDERER_GENERAL_TLS_CLIENTROOTCAS and other files as per instructions on https://hyperledger-fabric.readthedocs.io/en/release-1.4/enable_tls.html

Vandersteen (Fri, 16 Aug 2019 13:26:36 GMT):
I'm running into a similar issue on Kubernetes, I was able to create / fetch / join channel - but once it is joined, I'm getting similar output in orderer / peer logs

Vandersteen (Fri, 16 Aug 2019 13:30:32 GMT):
As cryptogen should not be used in production, are there samples on how to reach a similar setup with fabric-ca-client ?

fsoares (Fri, 16 Aug 2019 14:03:54 GMT):
Hello, how can I deserialize correctly a transaction received by a call made to QSCC? For example: getTxArgs := ToChaincodeArgs("GetTransactionByID","channel",TxId) getTxResponse := stub.InvokeChaincode("qscc", getTxArgs, "channel")

Adam_Hardie (Fri, 16 Aug 2019 15:26:13 GMT):
here's my peer docker setup.. https://pastebin.com/dnhTzyRN

Adam_Hardie (Fri, 16 Aug 2019 15:27:05 GMT):
and the command i use to attempt channel setup.. docker exec $PEER_NAME peer channel create -o orderer0.company:7050 --tls --cafile /etc/hyperledger/fabric/ordererCerts/tlsca.company-cert.pem -c messagebus -f /etc/hyperledger/configtx/channel.tx --keyfile /etc/hyperledger/msp/users/Admin\@company/tls/client.key --clientauth

Vandersteen (Fri, 16 Aug 2019 15:28:50 GMT):
aren't you missing --certfile ?

Adam_Hardie (Fri, 16 Aug 2019 15:29:35 GMT):
sorry, i missed that from the paste.

Vandersteen (Fri, 16 Aug 2019 15:30:08 GMT):
which localMSPID are you using ?

Vandersteen (Fri, 16 Aug 2019 15:30:31 GMT):
Is it the same as ur certificates ?

Adam_Hardie (Fri, 16 Aug 2019 15:31:11 GMT):
in peer environment variable? CORE_PEER_MSPCONFIGPATH is the same directory

Adam_Hardie (Fri, 16 Aug 2019 15:31:24 GMT):
as client.key & crt

Vandersteen (Fri, 16 Aug 2019 15:31:35 GMT):
CORE_PEER_LOCALMSPID

Adam_Hardie (Fri, 16 Aug 2019 15:32:13 GMT):
ah yes. same OrgMSP yes

Adam_Hardie (Fri, 16 Aug 2019 15:32:33 GMT):
i only have 1 org set up in configtx

dcof (Fri, 16 Aug 2019 15:33:44 GMT):
Hey, i'm trying to deploy a chaincode example. I created a network consisting of one orderer organization and one sample organization. I created the channel and joined two peers and installed the chaincode. Then I run the command to instantiated the chaincode. If i check for instantiated chaincodes, the returned list is empty even though the container with the chaincode was spawned. In the orderer logs i this warning: "[channel: mynewchannel] Client authorization revoked for deliver request from 10.0.0.110:47100: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied" The IP is the one from the other peer. Can anyone explain what this warning / error means and how i can solve this? The chaincode instantiate command itself showed no error, what confuses me a bit as the chaincode was not instantiated properly (from my newbie point of view). thanks in advance!

Vandersteen (Fri, 16 Aug 2019 15:49:21 GMT):
Is there a way to show what configvalues the peer is using ?

CT123 (Fri, 16 Aug 2019 16:00:54 GMT):
Working through this document: https://buildmedia.readthedocs.org/media/pdf/hyperledger-fabric/latest/hyperledger-fabric.pdf And on page 110, under 6.4 Smart Contract Processing, it points to "If you'd like, you can download the sample and even run it locally." BUT THE LINKS to both are broken. "download the sample" points to install.html -- but no domain or other info and "run it locally" points to tutorial/commercial_paper.html Can someone *please* point me to the correct URLs so that we can work through these examples? Please?

soumyanayak (Fri, 16 Aug 2019 21:28:18 GMT):
dcof can you please share the complete logs or a screenshot

soumyanayak (Fri, 16 Aug 2019 21:30:41 GMT):
Please follow the link for using fabric-ca generation of certs - https://github.com/Blockdaemon/fabric-ca/blob/gerrit-pr-29430/docs/source/operations_guide.rst

ArtemSkliarov (Sat, 17 Aug 2019 14:06:29 GMT):
Has joined the channel.

ArtemSkliarov (Sat, 17 Aug 2019 14:06:31 GMT):
Hello. Trying to generate genesis block for raft or kafka orderer types from configtx.yaml file from "fisrt-network" folder and have the following logs: 2019-08-17 15:40:19.453 CEST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-08-17 15:40:19.528 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2019-08-17 15:40:19.529 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520 2019-08-17 15:40:19.529 CEST [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /Volumes/current/hyperledger/testnetwork/configtx.yaml 2019-08-17 15:40:19.609 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: solo 2019-08-17 15:40:19.609 CEST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 006 Loaded configuration: /Volumes/current/hyperledger/testnetwork/configtx.yaml 2019-08-17 15:40:19.612 CEST [common.tools.configtxgen] doOutputBlock -> INFO 007 Generating genesis block 2019-08-17 15:40:19.613 CEST [common.tools.configtxgen] doOutputBlock -> INFO 008 Writing genesis block as you can see INFO 002 orderer type: etcdraft is ok, but then INFO 005 orderer type: solo. Why it is like this? Am I wrong somehow? Im doing ./configtxgen -profile SampleMultiNodeEtcdRaft -channelID testchannel -outputBlock ./channel-artifacts/genesis.block

ruairih (Sat, 17 Aug 2019 18:55:46 GMT):
Hi, what is the easiest way to find out the identity who invoked a chaincode? There are functions like ctx.stub.getCreator() and ctx.clientIdentity().getID() But they dont seem to return details linked to a Wallet identity, seems like the peers identity

sundarsuman (Sun, 18 Aug 2019 18:55:27 GMT):
Has joined the channel.

hyperlearner (Mon, 19 Aug 2019 05:45:17 GMT):
Hi Jay, I reading about Idemix and have some doubts.Hope you could help.Thanks in advance. 1) How is the basic transaction flow different from using the Idemix MSP? 2) How is the identity and integrity of a transaction ensured in case of Idemix MSP? 3) client/idemix MSP signing and verification part:What is the input to the Idemix MSP credential verification part? Where and how is it done?

hyperlearner (Mon, 19 Aug 2019 05:45:17 GMT):
Hi, I reading about Idemix and have some doubts. Hope you could help.Thanks in advance. 1) How is the basic transaction flow different from using the Idemix MSP? 2) How is the identity and integrity of a transaction ensured in case of Idemix MSP? 3) client/idemix MSP signing and verification part: What is the input to the Idemix MSP credential verification part? Where and how is it done?

sanket1211 (Mon, 19 Aug 2019 07:13:29 GMT):
how to update genesis block with new organisation?

sanket1211 (Mon, 19 Aug 2019 07:15:36 GMT):
how to update exisiting genesis block with new organisation?

superafro12 (Mon, 19 Aug 2019 08:08:37 GMT):
This guide is quite helpful: https://medium.com/@kctheservant/add-a-new-organization-on-existing-hyperledger-fabric-network-2c9e303955b2

deepaks (Mon, 19 Aug 2019 08:38:29 GMT):
Hi everyone, If we change the bootstrap identity of running fabric CA, would that affect existing certificates ?

superafro12 (Mon, 19 Aug 2019 08:40:57 GMT):
No

sanket1211 (Mon, 19 Aug 2019 09:29:03 GMT):
i need to create new network..not on existing one

superafro12 (Mon, 19 Aug 2019 09:30:53 GMT):
I don't understand, what is it that you want to achieve?

deepaks (Mon, 19 Aug 2019 09:59:16 GMT):
@superafro12 can you please elaborate that what other changes would happen for new users and existing users

dcof (Mon, 19 Aug 2019 10:13:58 GMT):
Sure, here are the logs from the orderer: https://pastebin.com/VdQyXe1j as well as the logs from the cli from where i created the channel and chaincode: https://pastebin.com/2fqrYKuf I noticed on the orderer some Warning when joining the other peer to the channel, but it is correctly joined (i verified it by running "peer channel list " on the respective peer. Any help is highly appreciate :)

superafro12 (Mon, 19 Aug 2019 11:27:26 GMT):
nothing at all. all certificates will be issued by the same CA (if you don't change any CA options ofc)

deepaks (Mon, 19 Aug 2019 12:02:21 GMT):
so effectively what would be use of changing bootstrap identity?

superafro12 (Mon, 19 Aug 2019 12:41:25 GMT):
Hello,

superafro12 (Mon, 19 Aug 2019 12:44:10 GMT):
Hello, If I create a new admin user for org1, do I need to update the channel configuration with the new admin added to the org1's MSP for the orderer to understand that this is a new admin for org1? Or, should it be enough to create this user with the attribute hf.Admin:true and have its certificate issued by the org1's CA

mfaisaltariq (Mon, 19 Aug 2019 13:14:12 GMT):
``` TLS handshake failed with error tls: failed to verify client's certificate: x509: certificate specifies an incompatible key usage server=PeerServer ``` Getting error for Mutual TLS. Generated certs manually using CFSSL. Have set all the env variables properly but still getting the error.

yacovm (Mon, 19 Aug 2019 13:17:00 GMT):
This is really odd @mfaisaltariq ... how can CFSSL generate certificates that lack an extended key usage? :O

yacovm (Mon, 19 Aug 2019 13:17:15 GMT):
aer you sure these are TLS certificates?

mfaisaltariq (Mon, 19 Aug 2019 13:23:59 GMT):
yes General TLS works fine for me but with Mutual TLS I'm getting errors with client cert generation. Check this out. https://coreos.com/os/docs/latest/generate-self-signed-certificates.html

mfaisaltariq (Mon, 19 Aug 2019 13:24:27 GMT):
https://scriptcrunch.com/create-ca-tls-ssl-certificates-keys/

mfaisaltariq (Mon, 19 Aug 2019 13:25:21 GMT):
there is no implementation for TLS with PKCS11(softHSM) enabled network so you have generate your own certs for that

yacovm (Mon, 19 Aug 2019 13:32:44 GMT):
can you use `cryptogen` to generate self signed certs?

Vandersteen (Mon, 19 Aug 2019 14:17:29 GMT):
Is there a difference between: --id.attrs "hf.admin=true:ecert" & --id.attrs "admin=true:ecert" ?

Vandersteen (Mon, 19 Aug 2019 14:17:44 GMT):
Which should be used to create a peer admin ?

Vandersteen (Mon, 19 Aug 2019 14:18:31 GMT):
fabric-ca-client register -d --id.name peer-admin --id.secret peer-admin --id.type user --id.attrs "hf.admin=true:ecert" ?

Anuj 48 (Mon, 19 Aug 2019 14:22:17 GMT):
Has joined the channel.

JanKosecki (Mon, 19 Aug 2019 14:25:01 GMT):
Has joined the channel.

JanKosecki (Mon, 19 Aug 2019 14:25:02 GMT):
Hi, I'm trying to instantiate a chaincode using fabric-cli 1.4.1 and I'm getting following issue ``` 2019-08-19 12:50:36.740 UTC [endorser] callChaincode -> INFO 280 [audit][aa2adeda] Exit chaincode: name:"lscc" (3573ms) 2019-08-19 12:50:36.740 UTC [endorser] SimulateProposal -> ERRO 281 [audit][aa2adeda] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

JanKosecki (Mon, 19 Aug 2019 14:25:02 GMT):
Hi, I'm trying to instantiate a chaincode using fabric-cli 1.4.1 and I'm getting following issue ``` 2019-08-19 12:50:36.740 UTC [endorser] callChaincode -> INFO 280 [audit][aa2adeda] Exit chaincode: name:"lscc" (3573ms) 2019-08-19 12:50:36.740 UTC [endorser] SimulateProposal -> ERRO 281 [audit][aa2adeda] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Earlier in the logs appears also ``` 2019-08-19 12:50:36.713 UTC [chaincode] Launch -> DEBU 274 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Any idea what could be a reason?

Vandersteen (Mon, 19 Aug 2019 14:32:36 GMT):
I've been having a similar issue, putting debug logs on in the peer resulted in: 2019-08-19 13:41:46.956 UTC [chaincode] Execute -> DEBU 3da Entry 2019-08-19 13:41:46.956 UTC [chaincode] handleMessage -> DEBU 3db [c56bc50d] Fabric side handling ChaincodeMessage of type: GET_STATE in state ready 2019-08-19 13:41:46.956 UTC [chaincode] HandleTransaction -> DEBU 3dc [c56bc50d] handling GET_STATE from chaincode 2019-08-19 13:41:46.956 UTC [chaincode] HandleGetState -> DEBU 3dd [c56bc50d] getting state for chaincode lscc, key drr, channel fma-dev-channel 2019-08-19 13:41:46.956 UTC [stateleveldb] GetState -> DEBU 3de GetState(). ns=lscc, key=drr 2019-08-19 13:41:46.956 UTC [chaincode] HandleGetState -> DEBU 3df [c56bc50d] No state associated with key: drr. Sending RESPONSE with an empty payload 2019-08-19 13:41:46.956 UTC [chaincode] HandleTransaction -> DEBU 3e0 [c56bc50d] Completed GET_STATE. Sending RESPONSE 2019-08-19 13:41:46.956 UTC [cauthdsl] func1 -> DEBU 3e1 0xc00345e290 gate 1566222106956670316 evaluation starts 2019-08-19 13:41:46.956 UTC [cauthdsl] func2 -> DEBU 3e2 0xc00345e290 signed by 0 principal evaluation starts (used [false]) 2019-08-19 13:41:46.956 UTC [cauthdsl] func2 -> DEBU 3e3 0xc00345e290 processing identity 0 with bytes of aa61b0 2019-08-19 13:41:46.956 UTC [cauthdsl] func2 -> DEBU 3e4 0xc00345e290 identity 0 does not satisfy principal: This identity is not an admin 2019-08-19 13:41:46.956 UTC [cauthdsl] func2 -> DEBU 3e5 0xc00345e290 principal evaluation fails 2019-08-19 13:41:46.956 UTC [cauthdsl] func1 -> DEBU 3e6 0xc00345e290 gate 1566222106956670316 evaluation fails

Vandersteen (Mon, 19 Aug 2019 14:32:59 GMT):
So looks like I don't have an admin user

mfaisaltariq (Mon, 19 Aug 2019 14:38:53 GMT):
cryptogen generated file based certs. PKCS11 enabled network generates certs in softhsm therefore cryptogen is not required

yacovm (Mon, 19 Aug 2019 14:39:13 GMT):
ah, i see

yacovm (Mon, 19 Aug 2019 14:39:45 GMT):
so where is the private key of the CA that signs this?

yacovm (Mon, 19 Aug 2019 14:39:50 GMT):
is it also in HSM?

mfaisaltariq (Mon, 19 Aug 2019 14:39:54 GMT):
yup

yacovm (Mon, 19 Aug 2019 14:40:12 GMT):
i see... that's a problem.

yacovm (Mon, 19 Aug 2019 14:40:19 GMT):
i thought maybe you could "correct" the certificate

yacovm (Mon, 19 Aug 2019 14:40:25 GMT):
by adding it the required extension

yacovm (Mon, 19 Aug 2019 14:40:27 GMT):
and signing again

mfaisaltariq (Mon, 19 Aug 2019 14:40:39 GMT):
I've found the issue I'll let you know when I fix it.

yacovm (Mon, 19 Aug 2019 14:40:45 GMT):
ok cool

yacovm (Mon, 19 Aug 2019 14:40:50 GMT):
what is the issue?

JanKosecki (Mon, 19 Aug 2019 14:42:03 GMT):
I'll have a look. But I think I'm using DEBUG lvl for everything and haven't notice any message that would explain what's happening

mfaisaltariq (Mon, 19 Aug 2019 14:50:48 GMT):
Check your configtx.yaml file the system chaincode is not being invoked. There must be some configuration problem.

mfaisaltariq (Mon, 19 Aug 2019 14:52:40 GMT):
the signing profile that I was using to generate certs didn't have "Client auth" in its usages section.

yacovm (Mon, 19 Aug 2019 14:52:56 GMT):
ah makes sense

yacovm (Mon, 19 Aug 2019 14:53:00 GMT):
glad it worked out

mfaisaltariq (Mon, 19 Aug 2019 14:53:18 GMT):
thanks

JanKosecki (Mon, 19 Aug 2019 14:53:33 GMT):
Extra lines when a container is created: ``` 2019-08-19 14:48:56.889 UTC [dockercontroller] deployImage -> DEBU 5d7 Created image: dev-peer0-my-company-io-my-chaincode-0.13.0-ffc24dea4bef87347783607669bd6aa7da542179c0c64a78e05df30ea2f25151 2019-08-19 14:48:56.889 UTC [dockercontroller] createContainer -> DEBU 5d8 create container imageID=dev-peer0-my-company-io-my-chaincode-0.13.0-ffc24dea4bef87347783607669bd6aa7da542179c0c64a78e05df30ea2f25151 containerID=dev-peer0-my-company-io-my-chaincode-0.13.0 2019-08-19 14:48:56.889 UTC [dockercontroller] getDockerHostConfig -> DEBU 5d9 docker container hostconfig NetworkMode: host 2019-08-19 14:48:56.948 UTC [dockercontroller] createContainer -> DEBU 5da created container imageID=dev-peer0-my-company-io-my-chaincode-0.13.0-ffc24dea4bef87347783607669bd6aa7da542179c0c64a78e05df30ea2f25151 containerID=dev-peer0-my-company-io-my-chaincode-0.13.0 2019-08-19 14:48:57.260 UTC [dockercontroller] Start -> DEBU 5db Started container dev-peer0-my-company-io-my-chaincode-0.13.0 2019-08-19 14:48:57.260 UTC [container] unlockContainer -> DEBU 5dc container lock deleted(my-chaincode-0.13.0) 2019-08-19 14:48:57.260 UTC [container] lockContainer -> DEBU 5dd waiting for container(my-chaincode-0.13.0) lock 2019-08-19 14:48:57.260 UTC [container] lockContainer -> DEBU 5de got container (my-chaincode-0.13.0) lock 2019-08-19 14:48:57.260 UTC [container] unlockContainer -> DEBU 5df container lock deleted(my-chaincode-0.13.0) 2019-08-19 14:49:00.462 UTC [chaincode] Launch -> DEBU 5f3 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

mfaisaltariq (Mon, 19 Aug 2019 14:57:51 GMT):
are these logs from the orderer or peer?

JanKosecki (Mon, 19 Aug 2019 14:57:57 GMT):
peer

mfaisaltariq (Mon, 19 Aug 2019 14:58:07 GMT):
can you please post logs of orderer

mfaisaltariq (Mon, 19 Aug 2019 14:58:17 GMT):
and let the log_spec_level to debug

mfaisaltariq (Mon, 19 Aug 2019 14:58:22 GMT):
set*

JanKosecki (Mon, 19 Aug 2019 15:00:19 GMT):
Ok, on it. I haven't really looked into orderer logs thinking that issue lies in peer

JanKosecki (Mon, 19 Aug 2019 15:05:32 GMT):
oh... ``` 2019-08-19 15:03:18.683 UTC [core.comm] ServerHandshake -> ERRO 6a9 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=100.104.128.2:33964 ``` I've been trying to create o 3-orderer cluster with RAFT. I guess I need `--tls` flag when instantiating a chaincode

JanKosecki (Mon, 19 Aug 2019 15:06:35 GMT):
But I run other commands `chaincode list`, `chaincode install`, `channel join` without TLS flag :thinking_face:

ruairih (Mon, 19 Aug 2019 15:07:27 GMT):
Hallo, Im wondering if anybody know the answer. I am trying to identify the client who invokes a smart contract. There is a ctx.clientIdentity class although the code says it shouldn't be called from a contract!?

ruairih (Mon, 19 Aug 2019 15:08:19 GMT):
There is also ctx.stub.getCreator() but how to associate that with a Wallet Identity?

JanKosecki (Mon, 19 Aug 2019 15:08:40 GMT):
Anyway, didn't help. The TLS error doesn't appear now but chaincode fails to start anyway

JanKosecki (Mon, 19 Aug 2019 15:08:47 GMT):
Orderer logs: ``` 2019-08-19 15:07:34.220 UTC [orderer.common.server] Broadcast -> DEBU 6b0 Starting new Broadcast handler 2019-08-19 15:07:34.220 UTC [orderer.common.broadcast] Handle -> DEBU 6b1 Starting new broadcast loop for 100.104.128.2:37824 2019-08-19 15:07:37.746 UTC [orderer.common.broadcast] Handle -> DEBU 6b2 Received EOF from 100.104.128.2:37824, hangup 2019-08-19 15:07:37.746 UTC [orderer.common.server] func1 -> DEBU 6b3 Closing Broadcast stream 2019-08-19 15:07:37.746 UTC [comm.grpc.server] 1 -> INFO 6b4 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=100.104.128.2:37824 grpc.code=OK grpc.call_duration=3.526047848s 2019-08-19 15:07:37.752 UTC [grpc] warningf -> DEBU 6b5 transport: http2Server.HandleStreams failed to read frame: read tcp 100.107.0.21:7050->100.104.128.2:37824: read: connection reset by peer 2019-08-19 15:07:37.752 UTC [grpc] infof -> DEBU 6b6 transport: loopyWriter.run returning. connection error: desc = "transport is closing" ```

mfaisaltariq (Mon, 19 Aug 2019 15:10:00 GMT):
with peer list, chaincode list the tls certs are not required

mfaisaltariq (Mon, 19 Aug 2019 15:10:30 GMT):
for channel creation and chaincode instantiation TLS certs are required

ItaloCarrasco (Mon, 19 Aug 2019 15:10:49 GMT):
are the images updated if bug fixes get implemented after the release of version 1.4.2

JanKosecki (Mon, 19 Aug 2019 15:11:13 GMT):
Ah yeah, I've been actually using them for creating & fetching a channel

JanKosecki (Mon, 19 Aug 2019 15:11:29 GMT):
Anyway, no there is no error in orderer, only about connection lost

JanKosecki (Mon, 19 Aug 2019 15:11:45 GMT):
But peer still logs the same issue

JanKosecki (Mon, 19 Aug 2019 15:17:29 GMT):
Btw, 3 orderers and the peer are deployed in a kubernetes namespace

JanKosecki (Mon, 19 Aug 2019 15:17:44 GMT):
Not sure if it could be any networking issue

mfaisaltariq (Mon, 19 Aug 2019 15:25:22 GMT):
try to ping orderer from the peer

ruairih (Mon, 19 Aug 2019 15:27:11 GMT):
This should be basic functionality, none of the examples cover this, the assumption being that the client identity is not relevant

JanKosecki (Mon, 19 Aug 2019 15:34:52 GMT):
Should it be port 7050 or some other?

JanKosecki (Mon, 19 Aug 2019 15:34:56 GMT):
``` nc -vz fabric-orderer0 7050 fabric-orderer0.fabric-sandbox.svc.cluster.local [100.69.116.237] 7050 (?) open ```

JanKosecki (Mon, 19 Aug 2019 15:50:00 GMT):
Also - is there a way to stop peer from destroying chaincode container? I have access to a node, where the peer runs but the chaincode container is being deleted so can't access its logs and exec into it

JanKosecki (Mon, 19 Aug 2019 18:02:59 GMT):
@mfaisaltariq Following some threads about fabric i kubernetes that I found I think the issue was CHAINCODELISTENADDRESS

JanKosecki (Mon, 19 Aug 2019 18:03:31 GMT):
I don't know why I disabled `addressAutoDetect` but now it's enabled again and it worked

TBdori (Mon, 19 Aug 2019 19:20:19 GMT):
HLF, adding org to network requires approval from existing orgs in the network?

Vandersteen (Mon, 19 Aug 2019 20:38:34 GMT):
What did you set CHAINCODELISTENADDRESS to ?

Vandersteen (Mon, 19 Aug 2019 20:38:55 GMT):
also CORE_PEER_ADDRESS and CORE_PEER_CHAINCODEADDRESS

Vandersteen (Mon, 19 Aug 2019 20:39:05 GMT):
having a similar issue

CT123 (Mon, 19 Aug 2019 20:44:09 GMT):
In a single HLF application, can different transactions have different state keys? Or does there need to be a consistent key between all the transactions?

madiazp (Mon, 19 Aug 2019 21:52:47 GMT):
Hi, I've changed the chaincode code and start over the network (byfn down and remove the cc containers) but when I installed the cc, the old one was installed instead of the changed one. I fix this by installing the new one (same path that the old one) with a new version (-v 1.1) and then upgrade to the v 1.1. But I wonder, Where the network keeps the old cc since I remove all the containers and the volume mounted and Why installed that instead of the new one when i reset the network?

madiazp (Mon, 19 Aug 2019 21:54:23 GMT):
all te installing and upgrading thing was made in the cli container with the peer chaincode command

Koushik (Mon, 19 Aug 2019 23:10:50 GMT):
Has joined the channel.

Koushik (Mon, 19 Aug 2019 23:25:15 GMT):
Hi guys, I am I getting a peculiar error. I have set up an simple network with raft. (2 organizations, 2 Peers Each and one channel) when I am only have one consenter(One Orderer) the network works perfectly fine but when I add one more consenter so two Consenters(so another orderer) it fails in the channel creation. I am getting these two errors in sequential errors, 1.) Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader 2.) Error: genesis block file not found open channel.block: no such file or directory

Koushik (Mon, 19 Aug 2019 23:26:39 GMT):
Sorry another error Error: got unexpected status: BAD_REQUEST -- Consortium config value missing

ygnr (Tue, 20 Aug 2019 01:27:19 GMT):
``` 2019-08-20 01:23:34.343 UTC [gossip.gossip] func1 -> WARN 1320 Deep probe of node1:7051 failed: context deadline exceeded github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:249 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:160 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 2019-08-20 01:23:34.343 UTC [gossip.discovery] func1 -> WARN 1321 Could not connect to Endpoint: node1:7051, InternalEndpoint: node1:7051, PKI-ID: , Metadata: : context deadline exceeded 2019-08-20 01:23:38.703 UTC [core.comm] ServerHandshake -> ERRO 1322 TLS handshake failed with error remote error: tls: bad certificate {"server": "PeerServer", "remote address": "172.23.0.16:54440"} ``` I keep on seeing these in the logs of the nodes, although all the transactions processed as expected. Any idea why this happens?

bjcawanglu (Tue, 20 Aug 2019 02:05:56 GMT):
Has joined the channel.

Zoultrex (Tue, 20 Aug 2019 02:33:45 GMT):
hey all

Zoultrex (Tue, 20 Aug 2019 02:34:07 GMT):
its seems there is a problem with the fabric-samples bootstrap script

Zoultrex (Tue, 20 Aug 2019 02:34:10 GMT):
https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh

Zoultrex (Tue, 20 Aug 2019 02:34:47 GMT):
I'm getting the following error during the instalation

Zoultrex (Tue, 20 Aug 2019 02:36:28 GMT):
error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: maifest unknown: Error response from daemon: No such image: hyperledger/fabric-baseos:1.3.2 ==> FABRIC IMAGE: nodeenv

Zoultrex (Tue, 20 Aug 2019 02:36:28 GMT):
error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: maifest unknown: Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv

Zoultrex (Tue, 20 Aug 2019 02:36:28 GMT):
error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: maifest unknown: Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2

Zoultrex (Tue, 20 Aug 2019 02:36:39 GMT):
and

Zoultrex (Tue, 20 Aug 2019 02:37:49 GMT):
error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: maifest unknown: Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 ==> FABRIC IMAGE: nodeenv

Zoultrex (Tue, 20 Aug 2019 02:37:49 GMT):
error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: maifest unknown: Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2

Zoultrex (Tue, 20 Aug 2019 02:38:47 GMT):
I wonder if those are showstoppers to continue with the tutorial for the first install

Zoultrex (Tue, 20 Aug 2019 02:45:54 GMT):
off_chain_data folder did not get copied over from github after the end of the process

Zoultrex (Tue, 20 Aug 2019 02:45:54 GMT):
off_chain_data folder did not get copied over from github(https://github.com/hyperledger/fabric-samples) after the end of the process

madiazp (Tue, 20 Aug 2019 04:56:45 GMT):
1.4.2 is acting weird with bootstrap, what i did is downgrade to 1.4.1

madiazp (Tue, 20 Aug 2019 04:57:53 GMT):
1.4.2 is acting weird with bootstrap, what i did is downgrade to 1.4.1

Heena078 (Tue, 20 Aug 2019 06:19:36 GMT):
Hi anyone did multi channel setup using fabric 1.3.............?

Heena078 (Tue, 20 Aug 2019 06:19:57 GMT):
Please reply as soon as possible............

MohammedR (Tue, 20 Aug 2019 06:20:27 GMT):
I've done that

MohammedR (Tue, 20 Aug 2019 06:20:27 GMT):
@Heena078 I've done that

Heena078 (Tue, 20 Aug 2019 06:22:39 GMT):
can you please let me know the steps .....

MohammedR (Tue, 20 Aug 2019 06:26:23 GMT):
make changes in profile section in configtx.yaml file, create new profile with your channel name

MohammedR (Tue, 20 Aug 2019 06:26:25 GMT):
TwoOrgsChannel: Consortium: SampleConsortium <<: *ChannelDefaults Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 Capabilities: <<: *ApplicationCapabilities

Heena078 (Tue, 20 Aug 2019 06:26:32 GMT):
yes i did

MohammedR (Tue, 20 Aug 2019 06:26:40 GMT):
then what is the error

Heena078 (Tue, 20 Aug 2019 06:27:20 GMT):
i added org3 for 2nd channel & i kept org1 is for both the channels

Heena078 (Tue, 20 Aug 2019 06:28:26 GMT):
i am doing in balance_transfer sample & i am not able to enroll the users

Heena078 (Tue, 20 Aug 2019 06:29:17 GMT):
{"success":false,"message":"failed YAMLException: duplicated mapping key at line 156, column 5:\n mspid: Org3MSP\n ^"} getting this error but i reviewed all yaml files but i am not getting any issue in that ..........

Heena078 (Tue, 20 Aug 2019 06:29:52 GMT):
Profiles: TwoOrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: SampleConsortium: Organizations: - *Org1 - *Org2 - *Org3 TwoOrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 NewOrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org3

Heena078 (Tue, 20 Aug 2019 06:30:01 GMT):
This i did...

MohammedR (Tue, 20 Aug 2019 06:30:35 GMT):
org3 has joined the channel

Heena078 (Tue, 20 Aug 2019 06:30:39 GMT):
yes

sanket1211 (Tue, 20 Aug 2019 06:46:07 GMT):
is there a way,to create new organization dynamically and create a new channel with some of the existing organizations?

ahmad-raza (Tue, 20 Aug 2019 07:20:35 GMT):
Hi all, Can we manage ca-certificates in such a way that when user has to invoke chaincode, user must provide its certificate ? oppose to Balance-transfer app in which all certificates are managed and kept by nodejs application in "credentialStore" and user simply provide username and certificate is get from credentialStore? What i want to do is provide certificate files to users so that they can provide it while invoking chaincode

ahmad-raza (Tue, 20 Aug 2019 07:20:35 GMT):
Hi all, Can we manage ca-certificates in such a way that when user has to invoke chaincode, user must provide its certificate ? oppose to Balance-transfer app in which all certificates are managed and kept by nodejs application in "credentialStore" and user simply provide username and certificate is get from credentialStore? What i want to do is provide certificate files to users so that they can provide it while invoking chaincode?

ibmamnt (Tue, 20 Aug 2019 08:14:13 GMT):
This may help https://fabric-sdk-node.github.io/release-1.4/tutorial-sign-transaction-offline.html. Note that the sample does not tell how to sign transaction offline (probably done at client side code with local private key file kept in the local PC or mobile phone).

superafro12 (Tue, 20 Aug 2019 08:15:57 GMT):
Hey, I'm trying to reroll a peer's certificate that has expired, but the reenroll command always reenrolls the peer admin's certificate. How do I specify which identity I want to reroll? (I've tried with --id.name without success)

hyperlearner (Tue, 20 Aug 2019 09:28:18 GMT):
Hi, I've some doubts about hl fabric Idemix. 1. How is the identity verified by idemix MSP? I assume it is done through ZKP. If yes, how is this done? How does the MSP verify that client-A performs the transaction and not the client-B(using client-A's credential)? 2. How is the integrity of the transaction maintained while using idemix? 3. For what all reasons is the ZKP generated by the user used? #fabric #fabric-questions #general #fabric-crypto #general

mikelee89 (Tue, 20 Aug 2019 10:17:27 GMT):
Has joined the channel.

mikelee89 (Tue, 20 Aug 2019 10:17:29 GMT):
Hi, I am trying to initialize commercial-paper chaincode that is in Java. But I am getting the following error: dev-peer0.org1.example.com-papercontract-0|09:04:13:353 INFO java.util.logging.LogManager$RootLogger log Updated all handlers the format dev-peer0.org1.example.com-papercontract-0|09:04:15:050 INFO org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl findAndSetContr Searching chaincode class in urls: [file:/root/chaincode-java/chaincode/chaincode.jar, file:/root/chaincode-java/chaincode/chaincode.jar] dev-peer0.org1.example.com-papercontract-0|09:04:15:108 INFO org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl findAndSetContr Found class: org.example.CommercialPaperContract dev-peer0.org1.example.com-papercontract-0|09:04:15:128 INFO org.hyperledger.fabric.contract.routing.impl.ContractDefinitionImpl Found class: org.example.CommercialPaperContract dev-peer0.org1.example.com-papercontract-0|09:04:15:141 INFO org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl findAndSetContr Found class: org.hyperledger.fabric.contract.systemcontract.SystemContract dev-peer0.org1.example.com-papercontract-0|09:04:15:143 INFO org.hyperledger.fabric.contract.routing.impl.ContractDefinitionImpl Found class: org.hyperledger.fabric.contract.systemcontract.SystemContract dev-peer0.org1.example.com-papercontract-0|09:04:15:145 INFO org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl findAndSetContr Looking for the data types dev-peer0.org1.example.com-papercontract-0|09:04:15:147 INFO org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl findAndSetContr found 1 dev-peer0.org1.example.com-papercontract-0|09:04:15:156 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul email java-contract@example.com dev-peer0.org1.example.com-papercontract-0|09:04:15:157 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul name java-contract dev-peer0.org1.example.com-papercontract-0|09:04:15:158 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url http://java-contract.me dev-peer0.org1.example.com-papercontract-0|09:04:15:164 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url dev-peer0.org1.example.com-papercontract-0|09:04:15:166 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul email dev-peer0.org1.example.com-papercontract-0|09:04:15:167 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul name dev-peer0.org1.example.com-papercontract-0|09:04:15:168 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url dev-peer0.org1.example.com-papercontract-0|09:04:15:168 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url dev-peer0.org1.example.com-papercontract-0|09:04:15:169 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul email java-contract@example.com dev-peer0.org1.example.com-papercontract-0|09:04:15:170 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul name java-contract dev-peer0.org1.example.com-papercontract-0|09:04:15:171 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url http://java-contract.me dev-peer0.org1.example.com-papercontract-0|09:04:15:172 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder$MetadataMap putIfNotNul url dev-peer0.org1.example.com-papercontract-0|09:04:15:187 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder initialize Validating scehma created dev-peer0.org1.example.com-papercontract-0|09:04:15:188 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder validate Running schema test validation dev-peer0.org1.example.com-papercontract-0|Exception in thread "main" org.everit.json.schema.SchemaException: #/definitions/objecttype/properties/%24id: expected type: String, found: JsonObject dev-peer0.org1.example.com-papercontract-0| at org.everit.json.schema.loader.LoadingState.createSchemaException(LoadingState.java:151) dev-peer0.org1.example.com-papercontract-0| at org.everit.json.schema.loader.JsonValue.requireString(JsonValue.java:186) dev-peer0.org1.example.com-papercontract-0| at org.everit.json.schema.loader.JsonValue.requireString(JsonValue.java:179) Please help

JanKosecki (Tue, 20 Aug 2019 10:55:37 GMT):
@Vandersteen I set `CORE_PEER_ADDRESS: 0.0.0.0:7051` and in `core.yaml` `addressAutoDetect: true` and commented out both `chaincodeListenAddress` and `chaincodeAddress`

JanKosecki (Tue, 20 Aug 2019 10:55:51 GMT):
Hope it helps

JanKosecki (Tue, 20 Aug 2019 10:56:28 GMT):
So far I've managed to instantiate a chaincode on a single peer, now gonna try to do it on 3 peers and then connect with Java SDK client

Vandersteen (Tue, 20 Aug 2019 10:56:48 GMT):
Alright thanks !

Adam_Hardie (Tue, 20 Aug 2019 11:07:35 GMT):
I just asked a new question on setup with TLS & docker swarm mode , including compose file samples. Please let me know if this is an ok question https://stackoverflow.com/questions/57572159/hyperledger-setup-in-docker-swarm-mode-w-tls

Tom1337 (Tue, 20 Aug 2019 12:24:58 GMT):
Has joined the channel.

Tom1337 (Tue, 20 Aug 2019 12:25:01 GMT):
Hi there, I am a newbie to Fabric

Tom1337 (Tue, 20 Aug 2019 12:25:03 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

ahmad-raza (Tue, 20 Aug 2019 12:56:42 GMT):
Hi all, I have two organizations with one peer each. My Endorsement policy is 'endorsement-policy': { identities: [ { role: { name: 'member', mspId: 'ManafaMSP' }}, { role: { name: 'member', mspId: 'CmaMSP' }} ], policy: { '2-of':[{ 'signed-by': 0 }, { 'signed-by': 1 }] } } and i invoke chaincode by calling { "args":["i28","2999","2000","20000","investor1","company1"], "fcn":"initInvestment", "peer":["peer0.manafa.example.com","peer0.cma.example.com"] }

ahmad-raza (Tue, 20 Aug 2019 12:56:42 GMT):
Hi all, I have two organizations with one peer each. My Endorsement policy is 'endorsement-policy': { identities: [ { role: { name: 'member', mspId: 'ManafaMSP' }}, { role: { name: 'member', mspId: 'CmaMSP' }} ], policy: { '2-of':[{ 'signed-by': 0 }, { 'signed-by': 1 }] } } and i invoke chaincode by calling { "args":["i28","2999","2000","20000","investor1","company1"], "fcn":"initInvestment", "peer":["peer0.manafa.example.com","peer0.cma.example.com"] } It gives 90% Endorsment_Policy_failure but it executes transaction some time ? what is happening here?

ahmad-raza (Tue, 20 Aug 2019 12:59:05 GMT):

Screenshot from 2019-08-20 18-00-19.png

mastersingh24 (Tue, 20 Aug 2019 13:28:57 GMT):
you need to make sure the root certificate which issued the orderer(s) TLS cert(s) is in the orderer MSP in the `tlsrootcerts` folder when you create the genesis block

Adam_Hardie (Tue, 20 Aug 2019 13:34:51 GMT):
thanks for the answer.. i use cryptogen and confixtx.yaml with generate.sh script. this generates my crypto-config folder.

Adam_Hardie (Tue, 20 Aug 2019 13:36:19 GMT):
does your answer mean supplying the tlsrootcerts to the -outputBlock part of the script?

SeddikBenLamine (Tue, 20 Aug 2019 13:40:19 GMT):
Has joined the channel.

SeddikBenLamine (Tue, 20 Aug 2019 13:40:20 GMT):
Hi, i'm designing the business network and i'm implementing the logic.js for the network on hyperledger composer bluemix, i want to create an asset through a transaction in the logic.js file how to do that please ? and i have an other problem wich is how to check a random number is not equal an old or active asset attribute in the transaction registry, i'm creating a voucherconsumption transaction and model.cto : asset Voucher identified by serial { o String serial o String Code //new code generated for every new consumption transaction o DateTime creationDate o Double amount o Typev type o Integer activated } enum Typev { o paperVoucher o giftVoucher } this is my logic in the logic.js file : do{ var min=1; var max=999999; var random = Math.floor(Math.random() * (+max - +min)) + +min; }while (random!=//old serials or active serials); //missing random test with the old serials

Swhit210 (Tue, 20 Aug 2019 13:49:22 GMT):
Am I correct in thinking that at a minimum the v1_4_2 Application capability needs to be set as true in the configtx.yaml in order to use private data?

Adam_Hardie (Tue, 20 Aug 2019 13:49:54 GMT):
or, could you please give an example of how to ensure that certificate is in tlsrootcerts ?

Adam_Hardie (Tue, 20 Aug 2019 13:53:44 GMT):
the OSN has file ... msp/tlscacerts/tlsca.gmex-group-cert.pem

ahmad-raza (Tue, 20 Aug 2019 13:57:33 GMT):
@walmon Can you please answer this problem?

Adam_Hardie (Tue, 20 Aug 2019 14:03:24 GMT):
this file is also mounted on the peer and used as --cafile in "peer channel create" command

mastersingh24 (Tue, 20 Aug 2019 14:04:46 GMT):
Does the orderer TLS cert have the correct CN or SANs?

Adam_Hardie (Tue, 20 Aug 2019 14:06:02 GMT):
the filename has the correct name ie. tlsca.company-cert.pem

mastersingh24 (Tue, 20 Aug 2019 14:06:10 GMT):
`bad certificate` is usually due to either a hostname mismatch or failure to verify ... sounds like you set up the MSPs correctly with cryptogen .... so might be the former where you don't have the right SANs (subject alternative name)

mastersingh24 (Tue, 20 Aug 2019 14:06:29 GMT):
but what about the actual TLS cert being used by the orderer?

Adam_Hardie (Tue, 20 Aug 2019 14:08:03 GMT):
my orderer has this env : ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/fabric/tls/server.crt which is mounted from the ordererOrganizations folder

Adam_Hardie (Tue, 20 Aug 2019 14:08:34 GMT):
eg orderers/orderer0.comapny/tls

Adam_Hardie (Tue, 20 Aug 2019 14:09:23 GMT):
hmm, although i have seen ORDERER_GENERAL_TLS_CLIENTROOTCAS also configured. maybe i should include this too

mastersingh24 (Tue, 20 Aug 2019 14:11:56 GMT):
right .... can you run `openssl x509 -noout -text -in [path-to-orderer-tls-cert`

mastersingh24 (Tue, 20 Aug 2019 14:12:32 GMT):
I see you have `orderer.company` as the orderer hostname?

Adam_Hardie (Tue, 20 Aug 2019 14:13:20 GMT):
looks fine in this output X509v3 Subject Alternative Name: DNS:orderer0.company, DNS:orderer0

mastersingh24 (Tue, 20 Aug 2019 14:14:27 GMT):
hmm

mastersingh24 (Tue, 20 Aug 2019 14:16:45 GMT):
Do you have client tls enabled?

Adam_Hardie (Tue, 20 Aug 2019 14:19:21 GMT):
in peer environment: CORE_PEER_TLS_ENABLED and orderer ORDERER_GENERAL_TLS_ENABLED=true

Adam_Hardie (Tue, 20 Aug 2019 14:22:28 GMT):
see some example of my config on this question .. https://stackoverflow.com/questions/57572159/hyperledger-setup-in-docker-swarm-mode-w-tls

mastersingh24 (Tue, 20 Aug 2019 14:29:37 GMT):
can you post the full output of the openssl command? Just want to see who signed that orderer cert as well

Adam_Hardie (Tue, 20 Aug 2019 14:31:21 GMT):
sure

Adam_Hardie (Tue, 20 Aug 2019 14:32:07 GMT):
https://pastebin.com/QEw5ELV9

Adam_Hardie (Tue, 20 Aug 2019 14:33:54 GMT):
this is /etc/hyperledger/fabric/tls/server.crt

mikelee89 (Tue, 20 Aug 2019 14:47:59 GMT):
Hi, I'm trying to instantiate chaincode of fabric sample commerical-paper. When I try to instantiate chain code, I get the following error: `dev-peer0.org1.example.com-papercontract-0|09:04:15:188 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder validate Running schema test validation dev-peer0.org1.example.com-papercontract-0|Exception in thread "main" org.everit.json.schema.SchemaException: #/definitions/objecttype/properties/%24id: expected type: String, found: JsonObject` Any help please

barchiesi (Tue, 20 Aug 2019 18:33:43 GMT):
How am I supposed to decode the Response I get via ctx.stub.invokeChaincode() from one chaincode to another?

ruairih (Tue, 20 Aug 2019 19:03:15 GMT):
According to this article https://medium.com/@kctheservant/exploring-the-behaviour-of-hyperledger-fabric-when-world-state-is-tampered-764676fe90f2 It is possible to tamper with the world state, that tampered world state can then be propagated to all other peers. This seems like a bug? The point of the validation step is to check the read and write set to see if they match, in this case perhaps the read set matches since the ledger itself is unmodified? So the validation step is effectively bypassed?

ruairih (Tue, 20 Aug 2019 19:19:36 GMT):
I suppose its ok, since if the tamperer is able to have a modified value propagate through the network, as in is permitted via the endorsement policies, then it doesnt matter when its a valid or invalid change

madiazp (Tue, 20 Aug 2019 23:32:16 GMT):
If you are using golang and ctx.stub is a shim.chaincodestubinterface you should see the pb.Response documentation

madiazp (Tue, 20 Aug 2019 23:33:14 GMT):
sorry, pb = github.com/hyperledger/fabric/protos/peer

madiazp (Wed, 21 Aug 2019 01:24:32 GMT):
answered myself, Is not enough removing the cc container, I had to remove the image to. https://stackoverflow.com/questions/49855723/hyperledger-fabric-chaincode-not-updated

Tom1337 (Wed, 21 Aug 2019 03:49:25 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.11:7050: connect: connection refused"

Tom1337 (Wed, 21 Aug 2019 03:49:44 GMT):
how to solve the problem

SaikrishnaReddy (Wed, 21 Aug 2019 05:16:56 GMT):
Has joined the channel.

SaikrishnaReddy (Wed, 21 Aug 2019 05:18:56 GMT):
Install Samples, Binaries and Docker Images for 1.4.2 version failes - with baseos and javaenc fabric image (Bug in bootstrap.sh script?) hyperledger-fabric hyperledger I followed the official fabric "release-1.4" instructions and got problems with the download install script: curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.2 1.4.2 0.4.15 cannot pull nodeenv and baseos cause of "not found" error. Output: ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.2 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.2 not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.2 Installed after the LTS Installation file 1.4.2 (missing: baseos, nodeenv): hyperledger/fabric-javaenv 1.4.2 1cd707531ce7 4 weeks ago 1.76GB hyperledger/fabric-javaenv latest 1cd707531ce7 4 weeks ago 1.76GB hyperledger/fabric-ca 1.4.2 f289675c9874 4 weeks ago 253MB hyperledger/fabric-ca latest f289675c9874 4 weeks ago 253MB hyperledger/fabric-tools 1.4.2 0abc124a9400 4 weeks ago 1.55GB hyperledger/fabric-tools latest 0abc124a9400 4 weeks ago 1.55GB hyperledger/fabric-ccenv 1.4.2 fc0f502399a6 4 weeks ago 1.43GB hyperledger/fabric-ccenv latest fc0f502399a6 4 weeks ago 1.43GB hyperledger/fabric-orderer 1.4.2 362021998003 4 weeks ago 173MB hyperledger/fabric-orderer latest 362021998003 4 weeks ago 173MB hyperledger/fabric-peer 1.4.2 d79f2f4f3257 4 weeks ago 178MB hyperledger/fabric-peer latest d79f2f4f3257 4 weeks ago 178MB hyperledger/fabric-zookeeper 0.4.15 20c6045930c8 5 months ago 1.43GB hyperledger/fabric-zookeeper latest 20c6045930c8 5 months ago 1.43GB hyperledger/fabric-kafka 0.4.15 b4ab82bbaf2f 5 months ago 1.44GB hyperledger/fabric-kafka latest b4ab82bbaf2f 5 months ago 1.44GB hyperledger/fabric-couchdb 0.4.15 8de128a55539 5 months ago 1.5GB hyperledger/fabric-couchdb latest 8de128a55539 5 months ago 1.5GB For me there seems to be a bug in the bootstrap.sh script that pulls all dockers images (compare official guide here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html): The relevant extract part of the file bootstrap.sh that is linked behind the bit.ly URL: dockerFabricPull() { local FABRIC_TAG=$1 for IMAGES in peer orderer ccenv tools baseos nodeenv javaenv; do ... 6 For "baseos" and "nodeenv" there exists no 1.4.2 version in docker-hub to pull. This is why this error occures. They exists only for Version 2.0 (Master Release) or 0.4.15. For nodeenv there exists only a 2.0 file. This bug should be fixed Which version should I take to receive the full 1.4.2 version features? *What is the main purpose of the docker images*: nodeenv and baseos. I couldn't find them in the documentation. *Are these both files are not needed for the proper work of fabric 1.4.2? **I can completely ignore: baseos and nodeenv*? If not? Which version should I take to receive its full support for 1.4.2? What is or was the main purpose of this images? If they are not needed anymore. I want to receive a complete LTS version 1.4.2 for research purpose and am unsure what to do with

Tom1337 (Wed, 21 Aug 2019 05:46:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZZprEqmWpscGY2dwn) solved thx, too easy

barchiesi (Wed, 21 Aug 2019 07:04:03 GMT):
I'm using the nodejs sdk

barchiesi (Wed, 21 Aug 2019 07:25:03 GMT):
Using the nodejs sdk, how am I supposed to decode the Response I get via ctx.stub.invokeChaincode() from one chaincode to another? I can't seem to find any protobuf decoders

Shanmugaapriyan (Wed, 21 Aug 2019 09:33:00 GMT):
Is there any Shim API available to add a new Organisational Unit to my network ?

Shanmugaapriyan (Wed, 21 Aug 2019 09:33:00 GMT):
Is there any Shim API available to add a new Organisational Unit to the network ?

sandy (Wed, 21 Aug 2019 09:59:06 GMT):
Hi Guys. Am trying to develop Asset management software over hyperledger fabric which includes asset access control feature.Each user in the system has his/her own assets which he can read/transfer to others only by using his own private key/certificates. Private key and certificate for the user will be generated by using fabric CA. I dont want to store the Private key of the user in the Application Server/SDK side but i want to store Private key at the user side ( may be some mobile wallet.. not sure). Can anyone help me on this??? #fabric-sdk-java #fabric-questions #fabric

sandy (Wed, 21 Aug 2019 11:18:21 GMT):
Is there any way to user thirparty certificate authority in hyperledger fabric?

kpratihast (Wed, 21 Aug 2019 11:28:59 GMT):
What is the official way to log errors/system state for a production #fabric solution? Are there any preferred packages / tools ?

ahmad-raza (Wed, 21 Aug 2019 11:38:53 GMT):
I have two peers joined to channel and has endorsement policy "signed by both of peers" . why Endorsement policy failure is return?

ahmad-raza (Wed, 21 Aug 2019 11:38:53 GMT):
I have two peers joined to channel and has endorsement policy "signed by both of peers" . why Endorsement policy failure is return? Sometime it is returned valid and commited? What happened here?

barchiesi (Wed, 21 Aug 2019 12:35:50 GMT):
@ahmad-raza probably they didn't create the same read/write set

ahmad-raza (Wed, 21 Aug 2019 12:36:48 GMT):
any particular reasons why they dont create same sets because when i try with policy 1 form 2 it works

ahmad-raza (Wed, 21 Aug 2019 12:38:05 GMT):
sometimes it works with 2 of 2 also this is surprising. Mostly failure occur but it works sometime?

halisha (Wed, 21 Aug 2019 12:41:17 GMT):
Has joined the channel.

halisha (Wed, 21 Aug 2019 12:42:35 GMT):
Hello, I'm trying to compose a 5 nodes Proof of Concept RAFT consensus network. Anyone here can help me with guidance?

halisha (Wed, 21 Aug 2019 12:42:35 GMT):
Hello, I'm trying to compose a 5 nodes Proof of Concept RAFT consensus network. Anyone here can help me with guidance? #fabric #fabric-questions

barchiesi (Wed, 21 Aug 2019 12:54:46 GMT):
depends.. is the chaincode deterministic?

ahmad-raza (Wed, 21 Aug 2019 12:59:34 GMT):
please explain little bit . transaction is endorsed by two peers . Both peers return it valid. Then if there read write set matches than it will be committed ? am i right? 2nd : if one of them return invalid it is not committed In case of only one peer . Only endorsement response to come valid to commit? Right?

ResearchTeam (Wed, 21 Aug 2019 13:12:50 GMT):
Has joined the channel.

barchiesi (Wed, 21 Aug 2019 13:15:52 GMT):
have you tried looking at the peer logs? FABRIC_LOGGING_SPEC=DEBUG might help

greg2git (Wed, 21 Aug 2019 13:16:07 GMT):
i came here at the recommendation of the bot and my question is: are there any chats about @code fabric plugin somewhere around here?

ahmad-raza (Wed, 21 Aug 2019 13:16:45 GMT):

Screenshot from 2019-08-21 18-18-37.png

ahmad-raza (Wed, 21 Aug 2019 13:17:03 GMT):
log shows signature did not match

ahmad-raza (Wed, 21 Aug 2019 13:18:01 GMT):
org1MSP.member means (peer,client,admin) ?

ResearchTeam (Wed, 21 Aug 2019 13:18:32 GMT):
Hello, even i changed the statedatabase to couchDB, I am getting error says: query not supported for levelDB

SubramaniyamKMV (Wed, 21 Aug 2019 13:19:47 GMT):
Has joined the channel.

davidkel (Wed, 21 Aug 2019 13:20:41 GMT):
could you be more specific about what you mean ?

greg2git (Wed, 21 Aug 2019 13:22:30 GMT):
both visual code and plugin seem to be open source and they live on github, so instead of opening issues there we could have a channel here dedicated to local fabric development

davidkel (Wed, 21 Aug 2019 13:23:30 GMT):
The IBM Blockchain platform extension for visual studio code isn't a hyperledger project, so there isn't a chat channel for it

davidkel (Wed, 21 Aug 2019 13:24:24 GMT):
It's only github issues and stack overflow questions with the `ibp-vscode-extension` tags to contact that team

davidkel (Wed, 21 Aug 2019 13:24:24 GMT):
It's only github issues and stack overflow questions with the `ibp-vscode-extension` tag to contact that team

greg2git (Wed, 21 Aug 2019 13:25:02 GMT):
it kinda is when it pulls fabric images, imho, but i understand if we don't want to divert unnecessary traffic to the channels here

superafro12 (Wed, 21 Aug 2019 13:26:40 GMT):
Is it only CA, intermediate CA and admin certificates that need to be specified in the channel MSP?

davidkel (Wed, 21 Aug 2019 13:31:14 GMT):
The important point is that it is not a hyperledger project so won't have a channel for it. You can try asking questions on what you consider an appropriate channel of course and see if like minded people in the community respond

davidkel (Wed, 21 Aug 2019 13:31:14 GMT):
The important point is that it is not a hyperledger project so won't have a channel for it. You can try asking questions on what you consider an appropriate channel of course and see if like minded people in the community respond, but I think the channels should be for people asking questions about their use of hyperledger fabric not about how other products use hyperledger fabric.

barchiesi (Wed, 21 Aug 2019 13:32:09 GMT):
I believe so

barchiesi (Wed, 21 Aug 2019 13:32:52 GMT):
@superafro12 tls ca and policies also

barchiesi (Wed, 21 Aug 2019 13:34:37 GMT):

Org1MSP

barchiesi (Wed, 21 Aug 2019 13:35:09 GMT):
that is the output of "configtxgen -printOrg Org1MSP > Org1MSP.json"

superafro12 (Wed, 21 Aug 2019 13:35:15 GMT):
Okey thanks! So if an admin is added for an organization I need to do a channel configuration update, but if I add a new peer it's not needed?

barchiesi (Wed, 21 Aug 2019 13:35:30 GMT):
I believe you are right

greg2git (Wed, 21 Aug 2019 13:37:36 GMT):
got it, -1 for Windows and +1 for ubuntu then

ahmad-raza (Wed, 21 Aug 2019 13:39:33 GMT):
"signature set did not satisfy policy" but i sent transaction proposal to both peers why policy did not satisfied?

davidkel (Wed, 21 Aug 2019 13:39:46 GMT):
Definitely at the moment when it comes to working with linux containers. But Microsoft are working hard to making linux development a much better experience on windows with the announcement of Windows System for Linux V2. If this delivers what it promises then I can't wait off the Mac and back to Windows

davidkel (Wed, 21 Aug 2019 13:39:46 GMT):
Definitely at the moment when it comes to working with linux containers. But Microsoft are working hard to making linux development a much better experience on windows with the announcement of Windows System for Linux V2. If this delivers what it promises then I can't wait to get off the Mac and back to Windows

greg2git (Wed, 21 Aug 2019 13:41:32 GMT):
they made me pay for the upgrade, so can fund making @code better for all the users, but thx for the tip and the chat

superafro12 (Wed, 21 Aug 2019 13:42:42 GMT):
How do you fetch the ordering system channel configuration?

superafro12 (Wed, 21 Aug 2019 13:42:42 GMT):
How do you fetch the ordering system channel configuration? And do you update in the same way as you would with a channel configuration?

barchiesi (Wed, 21 Aug 2019 14:14:30 GMT):
@superafro12 https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/scripts/step1org3.sh should give you an idea

ahmad-raza (Wed, 21 Aug 2019 14:18:21 GMT):
@barchiesi ?

TBdori (Wed, 21 Aug 2019 14:19:15 GMT):
why my fabric-client. initCredentialStores() is not working?

superafro12 (Wed, 21 Aug 2019 14:24:34 GMT):
@barchiesi the ordering system channel, is that what's get updated when I perform a channel configuration?

ahmad-raza (Wed, 21 Aug 2019 14:24:41 GMT):
Hi alll, VSCCValidateTx for transaction txId = e1e22287e678bafe66a36c02285cd563c83f29a2fd0610b8fdba3b174814d477 returned error: validation of endorsement policy for chaincode manafa_chaincode in tx 23:0 failed: signature set did not satisfy policy can anybody help ?

barchiesi (Wed, 21 Aug 2019 14:28:13 GMT):
i would increase the logging level

ahmad-raza (Wed, 21 Aug 2019 14:28:37 GMT):
how?

barchiesi (Wed, 21 Aug 2019 14:28:53 GMT):
FABRIC_LOGGING_SPEC=DEBUG in the peer env

barchiesi (Wed, 21 Aug 2019 14:29:23 GMT):
yes

superafro12 (Wed, 21 Aug 2019 14:30:30 GMT):
So if I add a CRL into the channel configuration and then create a new channel, those certificates are revoked on the new channel as well?

TBdori (Wed, 21 Aug 2019 14:39:13 GMT):
should i use filesystem or db for keys? can't I just use usercontext instead?

superafro12 (Wed, 21 Aug 2019 14:53:47 GMT):
Okey so I just discovered that thereS

superafro12 (Wed, 21 Aug 2019 14:53:47 GMT):
Okey so I just discovered that there's something called a network configuration, as well as a channel configuration. Can anyone explain this network configuration and where it is?

tballast (Wed, 21 Aug 2019 15:51:16 GMT):
I have a network with 2 orgs 2 peers set up and I'm trying to use service discovery. When I look at the logs of my peers I get the following error: ``` 2019-08-21 15:48:15.013 UTC [gossip.gossip] func1 -> WARN 1683 Deep probe of peer0.org2.example.com:7051 failed: context deadline exceeded github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).learnAnchorPeers.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:249 github.com/hyperledger/fabric/gossip/discovery.(*gossipDiscoveryImpl).Connect.func1 /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:160 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 2019-08-21 15:48:15.013 UTC [gossip.discovery] func1 -> WARN 1684 Could not connect to Endpoint: peer0.org2.example.com:7051, InternalEndpoint: peer0.org2.example.com:7051, PKI-ID: , Metadata: : context deadline exceeded ``` This doesn't match my port configuration though, as I am using the following: `peer0.org1:7051` `peer1.org1:8051` `peer0.org2:9051` `peer1.org2:10051` I have the following (port related) variables declared for each peer: ``` - CORE_PEER_ADDRESS=peer0.org2.example.com:9051 - CORE_PEER_LISTENADDRESS=peer0.org2.example.com:9051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:9051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:9051 ```

JanKosecki (Wed, 21 Aug 2019 16:10:44 GMT):
I'm no expert of fabric but as far as I understand in this case you need cross org gossip communication - what's port set for your anchor peers in configtx.yaml?

tballast (Wed, 21 Aug 2019 16:25:07 GMT):
:ok_hand: That's likely it. I had it defined at 7051. Completely for got it was even there.

JanKosecki (Wed, 21 Aug 2019 17:07:41 GMT):
Great! Hope it helps ;) Feeling excited that I could help someone instead of seeking help all the time :D

Swhit210 (Wed, 21 Aug 2019 17:47:27 GMT):
Might be a silly question, but has anyone successfully converted the transientMap from getTransient() into an acceptable value for putPrivateData using the node sdk for contract and shim?

hengfun (Wed, 21 Aug 2019 22:22:09 GMT):
any ideas why gprc gives me an error after a certain amount of transactions

hengfun (Wed, 21 Aug 2019 22:22:12 GMT):

Clipboard - August 22, 2019 12:22 AM

nickwa (Wed, 21 Aug 2019 23:29:12 GMT):
Does anyone know how to turn on TLS on basic-network? I cant find TLS settings in its config files

Ayyalusamy (Thu, 22 Aug 2019 07:07:52 GMT):
Has joined the channel.

Ayyalusamy (Thu, 22 Aug 2019 07:07:55 GMT):
I wanted to join two docTypes using Fabric getQueryResult API. But as of now, I don't think couchdb view is supported in Fabric getQueryResult API. In that case can I directly create view in peer's couchdb and query the couchdb?

tballast (Thu, 22 Aug 2019 07:19:08 GMT):
Yep, worked perfectly. Haha, I know that feeling! Thank you :D

tballast (Thu, 22 Aug 2019 08:17:52 GMT):
Is there documentation on what the transient map is really for? Using the java-sdk I frequently see these lines: ``` tm2.put("HyperLedgerFabric", "TransactionProposalRequest:JavaSDK".getBytes(UTF_8)); //Just some extra junk in transient map tm2.put("method", "TransactionProposalRequest".getBytes(UTF_8)); ``` But I'm not really sure why they are there, or if they really need to be. I know you can pull data from the transient map inside the chaincode, but are these lines necessary?

tballast (Thu, 22 Aug 2019 08:17:52 GMT):
Is there documentation on what the transient map is really for? Using the java-sdk I frequently see these lines: ``` tm2.put("HyperLedgerFabric", "TransactionProposalRequest:JavaSDK".getBytes(UTF_8)); tm2.put("method", "TransactionProposalRequest".getBytes(UTF_8)); ``` But I'm not really sure why they are there, or if they really need to be. I know you can pull data from the transient map inside the chaincode, but are these lines necessary?

someguy (Thu, 22 Aug 2019 08:51:53 GMT):
hello can someone tell me the difference between using APIstub and stub ?

someguy (Thu, 22 Aug 2019 08:52:17 GMT):
because im seing some chaincode using APIstub and others using stub only

someguy (Thu, 22 Aug 2019 08:52:32 GMT):
and i cannot find an explanation

sstone1 (Thu, 22 Aug 2019 09:06:13 GMT):
@someguy `APIstub` and `stub` are function parameter names, they can be whatever you like

HLFPOC (Thu, 22 Aug 2019 09:35:49 GMT):
Hello Team, Is it possible to restart the network containers (peers/orderers/chaincode/chouchdb etc) without affecting the state of the network?Currently I am running a fabric network using docker-compose in a single instance and I want to restart all the containers (including chaincode containers) without deleting existing data from the network in case of error/crashing of any container.

madiazp (Thu, 22 Aug 2019 09:51:11 GMT):
data persistence in docker containers usually is delegated to volumes. The world state is stored in leveldb or couchdb (or whatever db you use), and the ledger itself in var/hyperledger/production, so if the production folder is a volume mounted from your local machine you should have no problem restarting them if you keep the same env variables, configuration a volumes mounted.

JanKosecki (Thu, 22 Aug 2019 10:27:20 GMT):
Hi, I'm experiencing a lag of ~40second on a first invocation to a freshly instantiated chaincode - the delay appears on getting policy manager for a channel. First invocation: ``` 2019-08-21 15:44:40.868 UTC [endorser] SimulateProposal -> DEBU 324 [audit][9a3d3c27] Exit 2019-08-21 15:44:40.868 UTC [endorser] endorseProposal -> DEBU 325 [audit][9a3d3c27] Entry chaincode: path:"chaincode/path" name:"my-chaincode" version:"0.1.0" 2019-08-21 15:44:40.868 UTC [endorser] endorseProposal -> DEBU 326 [audit][9a3d3c27] escc for chaincode path:"chaincode/path" name:"my-chaincode" version:"0.1.0" is escc 2019-08-21 15:44:40.868 UTC [endorser] EndorseWithPlugin -> DEBU 327 Entering endorsement for {plugin: escc, channel: audit, tx: 9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d, chaincode: my-chaincode} 2019-08-21 15:44:40.869 UTC [endorser] EndorseWithPlugin -> DEBU 328 Exiting {plugin: escc, channel: audit, tx: 9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d, chaincode: my-chaincode} 2019-08-21 15:44:40.869 UTC [endorser] endorseProposal -> DEBU 329 [audit][9a3d3c27] Exit 2019-08-21 15:44:40.869 UTC [lockbasedtxmgr] Done -> DEBU 32a Done with transaction simulation / query execution [9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d] 2019-08-21 15:44:40.869 UTC [endorser] func1 -> DEBU 32b Exit: request from 127.0.0.1:37282 2019-08-21 15:44:40.869 UTC [comm.grpc.server] 1 -> INFO 32c unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=127.0.0.1:37282 grpc.code=OK grpc.call_duration=6.201576ms 2019-08-21 15:45:30.347 UTC [peer.gossip.mcs] VerifyBlock -> DEBU 32d Got policy manager for channel [audit] with flag [true] 2019-08-21 15:45:30.347 UTC [peer.gossip.mcs] VerifyBlock -> DEBU 32e Got block validation policy for channel [audit] with flag [true] ``` Later invocation: ``` ```

JanKosecki (Thu, 22 Aug 2019 10:27:20 GMT):
Hi, I'm experiencing a lag of ~40second on a first invocation to a freshly instantiated chaincode - the delay appears on getting policy manager for a channel. First invocation: ``` 2019-08-21 15:44:40.868 UTC [endorser] SimulateProposal -> DEBU 324 [audit][9a3d3c27] Exit 2019-08-21 15:44:40.868 UTC [endorser] endorseProposal -> DEBU 325 [audit][9a3d3c27] Entry chaincode: path:"chaincode/path" name:"my-chaincode" version:"0.1.0" 2019-08-21 15:44:40.868 UTC [endorser] endorseProposal -> DEBU 326 [audit][9a3d3c27] escc for chaincode path:"chaincode/path" name:"my-chaincode" version:"0.1.0" is escc 2019-08-21 15:44:40.868 UTC [endorser] EndorseWithPlugin -> DEBU 327 Entering endorsement for {plugin: escc, channel: audit, tx: 9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d, chaincode: my-chaincode} 2019-08-21 15:44:40.869 UTC [endorser] EndorseWithPlugin -> DEBU 328 Exiting {plugin: escc, channel: audit, tx: 9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d, chaincode: my-chaincode} 2019-08-21 15:44:40.869 UTC [endorser] endorseProposal -> DEBU 329 [audit][9a3d3c27] Exit 2019-08-21 15:44:40.869 UTC [lockbasedtxmgr] Done -> DEBU 32a Done with transaction simulation / query execution [9a3d3c27dd80de8de5af2f3fc8b5ec21aa0cc4b7cb1465f560bb08cd0fa6568d] 2019-08-21 15:44:40.869 UTC [endorser] func1 -> DEBU 32b Exit: request from 127.0.0.1:37282 2019-08-21 15:44:40.869 UTC [comm.grpc.server] 1 -> INFO 32c unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=127.0.0.1:37282 grpc.code=OK grpc.call_duration=6.201576ms 2019-08-21 15:45:30.347 UTC [peer.gossip.mcs] VerifyBlock -> DEBU 32d Got policy manager for channel [audit] with flag [true] 2019-08-21 15:45:30.347 UTC [peer.gossip.mcs] VerifyBlock -> DEBU 32e Got block validation policy for channel [audit] with flag [true] ``` Later invocation: ``` 2019-08-21 15:49:15.353 UTC [comm.grpc.server] 1 -> INFO 3cb unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=127.0.0.1:37282 grpc.code=OK grpc.call_duration=7.297228ms 2019-08-21 15:49:17.589 UTC [peer.gossip.mcs] VerifyBlock -> DEBU 3cc Got policy manager for channel [audit] with flag [true] ``` As you can see, in the first invocation there is almost 40seconds of delay between `unary call completed` and receiving policy manager. Any way to avoid the delay?

MeiHuiWang (Thu, 22 Aug 2019 11:50:29 GMT):
Has joined the channel.

MeiHuiWang (Thu, 22 Aug 2019 11:50:30 GMT):
"./byfn.sh up" in Fabric 2.0 has "unknown flag: --channelID" error [[34m2019-08-22 11:12:23.799 UTC [cli.lifecycle.chaincode] setOrdererClient -> INFO 001^[[0m Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050 ^[[34m2019-08-22 11:12:25.848 UTC [chaincodeCmd] ClientWait -> INFO 002^[[0m txid [93266506e9d495bda0795246581e88a2c035635b2cfa9f857954bb3dfbe81772] committed with status (VALID) at ===================== Chaincode definition approved on peer0.org1 on channel 'mychannel' ===================== ===================== Checking the commit readiness of the chaincode definition on peer0.org1 on channel 'mychannel'... ===================== Attempting to check the commit readiness of the chaincode definition on peer0.org1 ...3 secs Attempting to check the commit readiness of the chaincode definition on peer0.org1 ...6 secs Attempting to check the commit readiness of the chaincode definition on peer0.org1 ...9 secs Error: unknown flag: --channelID Usage: peer lifecycle chaincode [command] .... .. !!!!!!!!!!!!!!! Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ERROR !!!! Test failed

saikumar3349 (Thu, 22 Aug 2019 11:57:07 GMT):
hello everyone, is it possible to keep access control over a specific transaction over a channel?

MarioSavard (Thu, 22 Aug 2019 12:49:48 GMT):
Has joined the channel.

MarioSavard (Thu, 22 Aug 2019 12:49:50 GMT):
anyone can help with raft consensus using Hyperledger 1.4? We are attempting to create a channel with 4 raft peer but struggling to understand how to get the TLS Client and TLS Server certificat for the configuration (I mean without cryptogen not recommanded for production). We are using Kubernetes as host and using ingress to secure our cluster, using let's encrypt. Any help would be apreciated.

Logi (Thu, 22 Aug 2019 13:08:55 GMT):
Hi - Have anyone implemented SAML way authentication to access Hyperledger Fabric network?, any suggestions or inputs would be really helpful. thanks,

NehaPrashantMutke (Thu, 22 Aug 2019 13:26:54 GMT):
Has joined the channel.

barchiesi (Thu, 22 Aug 2019 15:25:42 GMT):
anyone have any experience with generating unique ids? what would the best/correct way be?

someguy (Thu, 22 Aug 2019 16:22:03 GMT):
ooh ok ok, my bad, because i was seing that everytime APIstub is used sc.Response is used instead of pb.Response. And i could not fin where this sc was comming from, ive checked the path of the import and I cannot find why they use sc instead of pb.

sstone1 (Thu, 22 Aug 2019 16:29:24 GMT):
I have no idea why they used `sc` instead of `pb`, but it doesn't matter which you use (though `pb` is more common) - they both refer to the same import `"github.com/hyperledger/fabric/protos/peer"`

someguy (Thu, 22 Aug 2019 16:30:34 GMT):
hm ok. thanks a lot

shitaibin (Fri, 23 Aug 2019 00:13:17 GMT):
Has joined the channel.

VipulKoul (Fri, 23 Aug 2019 01:13:36 GMT):
Has joined the channel.

VipulKoul (Fri, 23 Aug 2019 01:13:36 GMT):
Hi all. I am new to this chatroom and very excited to start working on fabric. I have decided to work on building a hyperledger accelerator for GPUs as my capstone project. So if any of you can guide me to where to get started from, for the same that would be great. Thanks!!

Koushik (Fri, 23 Aug 2019 05:45:51 GMT):
Quick question, so I have defined 3 orderers in my crypto-config and configtx/yaml with unique names ie (orderer, orderer1, orderer2) but when I explore and notice in the path crypto-config/ordererOrganizations/example.com/orderers I see a addtional orderer called orderer0?

Koushik (Fri, 23 Aug 2019 05:46:12 GMT):
can someone explain what is the purpose of orderer0?

NishaM.R (Fri, 23 Aug 2019 06:22:15 GMT):
``` ```

NishaM.R (Fri, 23 Aug 2019 06:30:23 GMT):
I am trying to create a network with multiple hosts using Azure and AWS instance. I am using docker swarm to create the network. The network is created with Azure instance as manager and AWS instance as worker. The ca, orderer, peer , couchdb containers are up and running in manager instance. But i am not able to bring up the containers in worker instance. It shows the following error : `docker run --rm -it --network="my-net" --name couchdb1 -p 6984:5984 -e COUCHDB_USER= -e COUCHDB_PASSWORD= -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net hyperledger/fabric-couchdb docker: Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded. ERRO[0020] error waiting for container: context canceled ` I am following the mentioned link - https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f Can anyone help me with this..??

SashaPESIC (Fri, 23 Aug 2019 07:05:58 GMT):
Can you share your crypto config file?

dcof (Fri, 23 Aug 2019 08:29:50 GMT):
Did you check the docker manager logs as stated in the message? Did you make sure that both hosts joined the swarm correctly?

GioG12 (Fri, 23 Aug 2019 08:34:09 GMT):
Hello guys, how can I verify that transaction issuer signature is valid?

bis2019 (Fri, 23 Aug 2019 09:58:02 GMT):
Hi guys, quick question, is it possible to have two channels with different BatchSize ? the default is 10. Is it possible to have 2 channels with different settings for BatchSize?

ahmad-raza (Fri, 23 Aug 2019 10:02:32 GMT):
Hi all, I have two orgs with one peer each and have two channels joined by both org's peers chaincode A is instantiated on channel A. Chaincode B is instantiated on Channel B. Both with same Endorsement policy that require 2 of peers to verify it. But strange behavior is happened here when i invoke chaincode A with request send to both peers it executed and if i remove one or give wrong peer address it will not work ( this case work perfectly) const request = { targets:[peer0.org1.example.com,peer0.org2.example.com], chaincodeId: chaincodeName, fcn: fcn, args: args, chainId: channelName, txId: tx_id }; With Chaincode B . If i go wrong peer addresses it also work and transaction is commited . Both uses same node sdk app

ahmad-raza (Fri, 23 Aug 2019 10:02:32 GMT):
Hi all, I have two orgs with one peer each and have two channels joined by both org's peers chaincode A is instantiated on channel A. Chaincode B is instantiated on Channel B. Both with same Endorsement policy that require 2 of peers to verify it. But strange behavior is happened here when i invoke chaincode A with request send to both peers it executed and if i remove one or give wrong peer address it will not work ( this case work perfectly) const request = { targets:[peer0.org1.example.com,peer0.org2.example.com], chaincodeId: chaincodeName, fcn: fcn, args: args, chainId: channelName, txId: tx_id }; With Chaincode B . If i go wrong peer addresses it also work and transaction is commited . const request = { targets: ["peer34.org1.example"], chaincodeId: chaincodeName, fcn: fcn, args: args, chainId: channelName, txId: tx_id }; Both uses same node sdk app

ahmad-raza (Fri, 23 Aug 2019 10:02:32 GMT):
Hi all, I have two orgs with one peer each and have two channels joined by both org's peers chaincode A is instantiated on channel A. Chaincode B is instantiated on Channel B. Both with same Endorsement policy that require 2 of peers to verify it. But strange behavior is happened here when i invoke chaincode A with request send to both peers it executed and if i remove one or give wrong peer address it will not work ( this case work perfectly) const request = { targets:["peer0.org1.example.com","peer0.org2.example.com"], chaincodeId: chaincodeName, fcn: fcn, args: args, chainId: channelName, txId: tx_id }; With Chaincode B . If i go wrong peer addresses it also work and transaction is commited . const request = { targets: ["peerABCDDD"], chaincodeId: chaincodeName, fcn: fcn, args: args, chainId: channelName, txId: tx_id }; Both uses same node sdk app

ahmad-raza (Fri, 23 Aug 2019 10:04:02 GMT):

Screenshot from 2019-08-23 14-57-12.png

ahmad-raza (Fri, 23 Aug 2019 10:04:02 GMT):

Screenshot from 2019-08-23 14-57-12.png

barchiesi (Fri, 23 Aug 2019 10:29:17 GMT):
your endorsement doesn't require 2 peers to endorse it

barchiesi (Fri, 23 Aug 2019 10:29:21 GMT):
1-of

ahmad-raza (Fri, 23 Aug 2019 10:46:32 GMT):
@barchiesi i mistakenly send that image but it requires 2 of

ahmad-raza (Fri, 23 Aug 2019 10:48:17 GMT):
and endorsement policy is fine but what actuality happening is in case of chaincode B if i provide wrong target peer it will execute the transaction and commit it??

CaioPinheiro (Fri, 23 Aug 2019 12:28:28 GMT):
Hi guys! I'm trying to add a peer to a channel but I get this error, someone help me?

CaioPinheiro (Fri, 23 Aug 2019 12:28:28 GMT):
Hi guys! I'm trying to add a peer to a channel but I get this error: `Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creato r org [Org1MSP])` Someone help me?

CaioPinheiro (Fri, 23 Aug 2019 12:28:28 GMT):
Hi guys! I'm trying to add a peer to a channel but I get this error: `Error: proposal failed (err: rpc error: code = Unknown desc = access denied: channel [] creator org [Org1MSP])` Someone help me?

barchiesi (Fri, 23 Aug 2019 12:34:52 GMT):
admincerts are wrong it seems

rohand (Fri, 23 Aug 2019 12:38:20 GMT):
Has joined the channel.

rohand (Fri, 23 Aug 2019 12:38:22 GMT):
Hey guys, while trying to run `peer channel fetch config` I keep getting following error `Error: can't read the block: &{FORBIDDEN}` I am trying to fetch system channel

rohand (Fri, 23 Aug 2019 12:39:12 GMT):
can someone tell me what I'm doing wrong

dcof (Fri, 23 Aug 2019 12:43:56 GMT):
I'm not entirely sure but i think the system channel ist for ordering services only so you're not allowed to fetch this as a peer and therefore you get an forbidden

rohand (Fri, 23 Aug 2019 12:50:14 GMT):
this used to work previously for fabric version less than fabric 1.4

isilvalepe (Fri, 23 Aug 2019 13:31:36 GMT):
Has joined the channel.

isilvalepe (Fri, 23 Aug 2019 13:31:37 GMT):
Hi everyone, I am new to this channel, let me know if this is not an appropriate question for this channel, or if it has been asked and answered already I have been following the well done documentation for Hyperledger here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/whatis.html And I have been able to run the tutorials and even extended them a bit to have my extension work over two separate servers on BlueCloud What I would like to do now is to customize the endorsement to provide some non-default behavior I have created my own `customEndorsement.so` by trivially modifying the default endorsement logic in: https://github.com/hyperledger/fabric/blob/release-1.4/core/handlers/endorsement/plugin/plugin.go And I have modified `.../fabric-samples/config/core.yaml` to use a custom endorser, as in: https://hyperledger-fabric.readthedocs.io/en/release-1.4/pluggable_endorsement_and_validation.html#configuration But now I am not sure how to incorporate those changes into the running code in the containers I tried doing a teardown and deleting the peer image that gets created at startup, in the hopes that the newly created peer image would include the changes to `core.yaml` But I don’t see a difference in behavior My guess now is that I also need to change the `docker.io/hyperledger/fabric-peer` image itself to somehow incorporate the changes there But I don’t know how to do that, short of writing a new Dockerfile with a `FROM docker.io/hyperledger/fabric-peer`, and then copy my modified `core.yaml` into the image created by that Dockerfile But I am really guessing here and I’d like to ask here if there is a documented procedure to accomplish my goal Any ideas?

charuni2018 (Fri, 23 Aug 2019 14:27:38 GMT):
Has joined the channel.

charuni2018 (Fri, 23 Aug 2019 14:28:08 GMT):
How can I test fabcar example in PKS ?

charuni2018 (Fri, 23 Aug 2019 14:28:22 GMT):
I have tested my chaincode example02

SateeshBangarugiri (Fri, 23 Aug 2019 15:09:48 GMT):
difference b/w hyperledger vs fb libra

rrodriguezreche (Fri, 23 Aug 2019 15:35:38 GMT):
Has anybody tried vendoring Go package that rely on C sources? Is there any hidden trick? I cannot get go-ethereum to work on chaincode

rrodriguezreche (Fri, 23 Aug 2019 15:35:38 GMT):
Has anybody tried vendoring Go packages that rely on C sources? Is there any hidden trick? I cannot get go-ethereum to work on chaincode

HLFPOC (Fri, 23 Aug 2019 17:06:55 GMT):
check the value of `CORE_PEER_LOCALMSPID `of the peer container , it should have valid value of MSP ID.

mastersingh24 (Fri, 23 Aug 2019 19:39:46 GMT):
What exactly are you trying to do with go-ethereum and chaincode?

mastersingh24 (Fri, 23 Aug 2019 19:42:50 GMT):
I believe that there may be some c++ / .cpp code in there ... and if you use the peer CLI to package it will filter out those files

Koushik (Fri, 23 Aug 2019 21:39:37 GMT):
Heys guys, so I have an running network with little to no transactions on it, I want to add a CouchDB usersname and password

Koushik (Fri, 23 Aug 2019 21:39:45 GMT):
for the peers

Koushik (Fri, 23 Aug 2019 21:40:11 GMT):
can I just stop the container and start it again with the updated docker-compose.yaml file

Koushik (Fri, 23 Aug 2019 21:40:31 GMT):
I have my peer data mounted

Koushik (Fri, 23 Aug 2019 21:40:39 GMT):
or would I need to

Koushik (Fri, 23 Aug 2019 21:40:46 GMT):
tear down the network

Zoultrex (Fri, 23 Aug 2019 22:38:44 GMT):
Hey all, i'm having problems running the tutorials a second time, maybe because I have just shutdown my VM unexpectedly and maybe some things are lingering? In the fabcar tutorial I'm seeing an error when interacting with the ledger (bringing the network was ok), the error is: ------ node query.js Wallet path: /home/projects/hyperledger/fabric-samples/fabcar/javascript/wallet 2019-08-23T22:29:12.905Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-08-23T22:29:12.907Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied ----- The magnetoCorp tutorial is showing problems when starting the MagnetoCorp container: /fabric-samples/commercial-paper/organization/magnetocorp/configuration/cli$ docker-compose -f docker-compose.yml up -d cliMagnetoCorp Starting cliMagnetoCorp ... error ERROR: for cliMagnetoCorp Cannot start service cliMagnetoCorp: network dacc6d917b1facc13aa997cc3f826cd0f92b9fe369c4b8177accd1cc9b27e43b not found

Zoultrex (Fri, 23 Aug 2019 23:04:06 GMT):
@Koushik

Zoultrex (Fri, 23 Aug 2019 23:04:25 GMT):
you gave me a hint of what my problem was, I needed to teardown before running the networks again

Zoultrex (Fri, 23 Aug 2019 23:04:34 GMT):
if you were I'd give it a try

Zoultrex (Fri, 23 Aug 2019 23:04:34 GMT):
if I were you I'd give it a try

Koushik (Sat, 24 Aug 2019 00:29:02 GMT):
@Zoultrex umm my network seems to be fine after I just did docker-compose restart on my VM for the peers. So I was trying to add a CouchDB username and password to my network as by defult its empty, and I tested a transaction and it went through

Koushik (Sat, 24 Aug 2019 00:30:32 GMT):
But yeah by default I Would just tear the network down but in this circumstance I thought it might be a overkill.

SateeshBangarugiri (Sat, 24 Aug 2019 04:42:13 GMT):
i want to create new consensus algorithm for hyperledger fabric...by improving kafka and raft orderers..can you suggest some ideas on this??

HumaAlam (Sat, 24 Aug 2019 11:00:05 GMT):
hi i want to develop an application using hyperledger fabric.Please help me out about the hardware i should have.??

jeffanon (Sat, 24 Aug 2019 23:36:11 GMT):
Has joined the channel.

rrodriguezreche (Sun, 25 Aug 2019 00:00:10 GMT):
yes, as you are saying, the peer is filtering those files. I have tried vendoring the packages with DEP. The files are actually getting included in the final payload, but still it fails when I try to instantiate it. For now, I want ethereum-go just for reading a value from a simple HelloWorld contract, nothing fancy

rrodriguezreche (Sun, 25 Aug 2019 00:00:10 GMT):
yes, as you are saying, the peer is filtering those files. I have tried vendoring the packages with DEP. The files (I mean, the C sources and headers) are actually getting included in the final payload, but still it fails when I try to instantiate it. For now, I want ethereum-go just for reading a value from a simple HelloWorld contract, nothing fancy

sarapaul (Sun, 25 Aug 2019 18:08:00 GMT):
Has joined the channel.

sarapaul (Sun, 25 Aug 2019 18:08:02 GMT):
Hello,

sarapaul (Sun, 25 Aug 2019 18:08:46 GMT):
Please could someone help me to resolve the following issue when running node enrollAdmin.js?

sarapaul (Sun, 25 Aug 2019 18:08:55 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node enrollAdmin.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.request.on (/home/francois/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin

yacovm (Sun, 25 Aug 2019 18:09:36 GMT):
looks like you just can't connect to the CA...

sarapaul (Sun, 25 Aug 2019 18:10:35 GMT):
How to fix this connection issue?

yacovm (Sun, 25 Aug 2019 18:12:18 GMT):
i don't know how you setup your Dell Inspiron ....

sarapaul (Sun, 25 Aug 2019 18:13:13 GMT):
I am using ubuntu

yacovm (Sun, 25 Aug 2019 18:14:18 GMT):
you can start by checking where the CA runs... is it in a container, as a process, etc.

sarapaul (Sun, 25 Aug 2019 18:15:45 GMT):
Container. Please see below?

sarapaul (Sun, 25 Aug 2019 18:15:47 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node enrollAdmin.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.request.on (/home/francois/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin

sarapaul (Sun, 25 Aug 2019 18:16:15 GMT):
francois@francois-Inspiron-N5110:~$ docker logs -f ca.example.com 2019/08/25 00:27:29 [INFO] Created default configuration file at /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2019/08/25 00:27:29 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server 2019/08/25 00:27:29 [INFO] Server Version: 1.3.0 2019/08/25 00:27:29 [INFO] Server Levels: &{Identity:1 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2019/08/25 00:27:29 [INFO] The CA key and certificate files already exist 2019/08/25 00:27:29 [INFO] Key file location: /etc/hyperledger/fabric-ca-server-config/4239aa0dcd76daeeb8ba0cda701851d14504d31aad1b2ddddbac6a57365e497c_sk 2019/08/25 00:27:29 [INFO] Certificate file location: /etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem 2019/08/25 00:27:37 [INFO] Initialized sqlite3 database at /etc/hyperledger/fabric-ca-server/fabric-ca-server.db 2019/08/25 00:27:38 [INFO] The issuer key was successfully stored. The public key is at: /etc/hyperledger/fabric-ca-server/IssuerPublicKey, secret key is at: /etc/hyperledger/fabric-ca-server/msp/keystore/IssuerSecretKey 2019/08/25 00:27:38 [INFO] Idemix issuer revocation public and secret keys were generated for CA 'ca.example.com' 2019/08/25 00:27:38 [INFO] The revocation key was successfully stored. The public key is at: /etc/hyperledger/fabric-ca-server/IssuerRevocationPublicKey, private key is at: /etc/hyperledger/fabric-ca-server/msp/keystore/IssuerRevocationPrivateKey 2019/08/25 00:27:39 [INFO] Home directory for default CA: /etc/hyperledger/fabric-ca-server 2019/08/25 00:27:39 [INFO] Listening on http://0.0.0.0:7054

yacovm (Sun, 25 Aug 2019 18:17:30 GMT):
do `docker inspect ca.example.com`

yacovm (Sun, 25 Aug 2019 18:17:44 GMT):
and tell what IP address it's listening on

yacovm (Sun, 25 Aug 2019 18:17:56 GMT):
the container has an IP address too

sarapaul (Sun, 25 Aug 2019 18:19:57 GMT):

sarapaul - Sun Aug 25 2019 14:19:26 GMT-0400 (Eastern Daylight Time).txt

yacovm (Sun, 25 Aug 2019 18:21:58 GMT):
hmmm weird... 7054 should work.... can you try to replace the configuration that the `enrollAdmin` uses with `172.18.0.2` instead of `127.0.0.1` ? just to try

sarapaul (Sun, 25 Aug 2019 18:22:39 GMT):
I see this "Gateway": "172.18.0.1", "IPAddress": "172.18.0.2",

yacovm (Sun, 25 Aug 2019 18:22:51 GMT):
yeah...

yacovm (Sun, 25 Aug 2019 18:22:54 GMT):
hence what i said

sarapaul (Sun, 25 Aug 2019 18:23:09 GMT):
Yeah. Trying!

sarapaul (Sun, 25 Aug 2019 18:24:41 GMT):
Failed with the below

sarapaul (Sun, 25 Aug 2019 18:24:55 GMT):
Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect EHOSTUNREACH 172.18.0.2:7054] at ClientRequest.request.on (/home/francois/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin

yacovm (Sun, 25 Aug 2019 18:25:36 GMT):
do you have a firewall ?

sarapaul (Sun, 25 Aug 2019 18:26:28 GMT):
I do not think so!

sarapaul (Sun, 25 Aug 2019 18:26:36 GMT):
how to confirm?

yacovm (Sun, 25 Aug 2019 18:26:45 GMT):
`ufw disable`

sarapaul (Sun, 25 Aug 2019 18:26:47 GMT):
I installed Ubuntu on a dell laptop

yacovm (Sun, 25 Aug 2019 18:26:51 GMT):
or `sudo iptables stop` or something

yacovm (Sun, 25 Aug 2019 18:26:51 GMT):
or `sudo service iptables stop` or something

yacovm (Sun, 25 Aug 2019 18:27:05 GMT):
`sudo /etc/init.d/iptables stop`

yacovm (Sun, 25 Aug 2019 18:27:08 GMT):
something like that

sarapaul (Sun, 25 Aug 2019 18:29:35 GMT):
Another error

sarapaul (Sun, 25 Aug 2019 18:29:37 GMT):
francois@francois-Inspiron-N5110:~$ ufw disable ERROR: You need to be root to run this script francois@francois-Inspiron-N5110:~$ sudo ufw disable [sudo] password for francois: Firewall stopped and disabled on system startup francois@francois-Inspiron-N5110:~$ node enrollAdmin.js module.js:550 throw err; ^ Error: Cannot find module '/home/francois/enrollAdmin.js' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Function.Module.runMain (module.js:694:10) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3 francois@francois-Inspiron-N5110:~$

yacovm (Sun, 25 Aug 2019 18:31:00 GMT):
with `sudo` before

yacovm (Sun, 25 Aug 2019 18:31:09 GMT):
ah

yacovm (Sun, 25 Aug 2019 18:31:14 GMT):
try the `ufw` with sudo

yacovm (Sun, 25 Aug 2019 18:31:21 GMT):
`sudo ufw disable`

sarapaul (Sun, 25 Aug 2019 18:32:53 GMT):
I did sudo ufw disable and got the following

sarapaul (Sun, 25 Aug 2019 18:32:54 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node enrollAdmin.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect EHOSTUNREACH 172.18.0.2:7054] at ClientRequest.request.on (/home/francois/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:33:26 GMT):
this is odd...

sarapaul (Sun, 25 Aug 2019 18:33:59 GMT):
It is saying

sarapaul (Sun, 25 Aug 2019 18:34:01 GMT):
Error: connect EHOSTUNREACH 172.18.0.2:7054]

yacovm (Sun, 25 Aug 2019 18:34:15 GMT):
try to do `nc 172.18.0.2 7054`

yacovm (Sun, 25 Aug 2019 18:34:34 GMT):
and also do `ifconfig -a`

sarapaul (Sun, 25 Aug 2019 18:34:50 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ nc 172.18.0.2 7054 francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:37:52 GMT):
oh wait, Fabric-CA is HTTPS...

yacovm (Sun, 25 Aug 2019 18:38:10 GMT):
just try to curl it `curl https://172.18.0.2:7054/`

yacovm (Sun, 25 Aug 2019 18:38:14 GMT):
what do you get ?

sarapaul (Sun, 25 Aug 2019 18:39:28 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ curl https://172.18.0.2:7054/ curl: (7) Failed to connect to 172.18.0.2 port 7054: No route to host francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:40:28 GMT):
try same with localhost - `curl https://127.0.0.1:7054/`

sarapaul (Sun, 25 Aug 2019 18:41:00 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ curl https://127.0.0.1:7054/ curl: (7) Failed to connect to 127.0.0.1 port 7054: Connection refused francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:41:19 GMT):
`ifconfig -a`

sarapaul (Sun, 25 Aug 2019 18:41:48 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ ifconfig -a br-cce2cbd96355: flags=4099 mtu 1500 inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255 ether 02:42:af:1a:d3:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 br-fef7cc936914: flags=4099 mtu 1500 inet 172.19.0.1 netmask 255.255.0.0 broadcast 172.19.255.255 ether 02:42:d3:1e:b5:fe txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 docker0: flags=4099 mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:3d:6c:ca:76 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp5s0: flags=4099 mtu 1500 ether 78:45:c4:c0:0f:4c txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 12524 bytes 1352100 (1.3 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12524 bytes 1352100 (1.3 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlp9s0: flags=4163 mtu 1500 inet 192.168.1.230 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::facb:effe:1687:7b8e prefixlen 64 scopeid 0x20 ether 00:c2:c6:21:7e:2e txqueuelen 1000 (Ethernet) RX packets 88084 bytes 71418473 (71.4 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 46911 bytes 7190698 (7.1 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:43:13 GMT):
`netstat -rn`

sarapaul (Sun, 25 Aug 2019 18:43:55 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlp9s0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlp9s0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-cce2cbd96355 172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-fef7cc936914 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp9s0 francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:44:14 GMT):
I don't know why you have no route to host :(

yacovm (Sun, 25 Aug 2019 18:44:20 GMT):
it should work...

yacovm (Sun, 25 Aug 2019 18:44:34 GMT):
something is up with your docker i think

sarapaul (Sun, 25 Aug 2019 18:46:13 GMT):
What's the IP for the CA?

sarapaul (Sun, 25 Aug 2019 18:48:10 GMT):
Any new idea to fix this?

yacovm (Sun, 25 Aug 2019 18:49:32 GMT):
fabric-samples usually run for everyone... I'm not sure why it doesn't run for you :/ can you perhaps stop, delete all your docker containers, restart the docker service and try to do all over again?

sarapaul (Sun, 25 Aug 2019 18:52:21 GMT):
Trying!

sarapaul (Sun, 25 Aug 2019 18:53:37 GMT):
Do you know why the following error in this commend?

sarapaul (Sun, 25 Aug 2019 18:53:40 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ docker rmi -f $(docker images | grep fabcar | awk '{print $3}') "docker rmi" requires at least 1 argument. See 'docker rmi --help'. Usage: docker rmi [OPTIONS] IMAGE [IMAGE...] Remove one or more images francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 18:54:36 GMT):
try `docker ps -aq | xargs docker rm -f` , followed by `docker images -aq | xargs docker rmi -f`

yacovm (Sun, 25 Aug 2019 18:54:44 GMT):
it will delete all docker images on your ubuntu

yacovm (Sun, 25 Aug 2019 18:54:53 GMT):
i assume you only have fabric images

yacovm (Sun, 25 Aug 2019 18:54:58 GMT):
and nothing else you are attached too

yacovm (Sun, 25 Aug 2019 18:54:58 GMT):
and nothing else you are attached to

sarapaul (Sun, 25 Aug 2019 19:02:49 GMT):
Redid everything and still getting

sarapaul (Sun, 25 Aug 2019 19:02:50 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node enrollAdmin.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 172.18.0.2:7054] at ClientRequest.request.on (/home/francois/fabric-samples/fabcar/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin: Error: Failed to enroll admin francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

sarapaul (Sun, 25 Aug 2019 19:03:55 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ curl https://172.18.0.2:7054/ curl: (7) Failed to connect to 172.18.0.2 port 7054: Connection refused francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

yacovm (Sun, 25 Aug 2019 19:05:15 GMT):
what tutorial are you following?

sarapaul (Sun, 25 Aug 2019 19:05:56 GMT):
Hyperledger Fabric tutorial

yacovm (Sun, 25 Aug 2019 19:06:02 GMT):
link?

sarapaul (Sun, 25 Aug 2019 19:07:06 GMT):
It is working now:

sarapaul (Sun, 25 Aug 2019 19:07:08 GMT):
francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node enrollAdmin.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Successfully enrolled admin user "admin" Assigned the admin user to the fabric client ::{"name":"admin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"89786bd9690facd9b9c95368f2764c0ca344d3812d94cd97c161c1240d38c8ff","identity":{"certificate":"-----BEGIN CERTIFICATE-----\nMIICAjCCAaigAwIBAgIUcI7YnNXgSkwK8ssu3MxLmAUimvUwCgYIKoZIzj0EAwIw\nczELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMT\nE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTkwODI1MTkwMTAwWhcNMjAwODI0MTkw\nNjAwWjAhMQ8wDQYDVQQLEwZjbGllbnQxDjAMBgNVBAMTBWFkbWluMFkwEwYHKoZI\nzj0CAQYIKoZIzj0DAQcDQgAEhTdmVxDUjOguxc/ZkJ/612m+zyRGKT/PyBRHN/b5\n5VUPOyvQ3jE3zH2hm7u86LjzYIwo1WF2/emv+fYCOofVQ6NsMGowDgYDVR0PAQH/\nBAQDAgeAMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFHD3yOTiJyhweaNSVge038Dg\nFSsEMCsGA1UdIwQkMCKAIEI5qg3NdtruuLoM2nAYUdFFBNMarRst3dusalc2Xkl8\nMAoGCCqGSM49BAMCA0gAMEUCIQCDHbvNapaN+HffqKaz21QsTcvxTB+n/vqn5dqu\nzyRkqAIgRg1Lm1bxws/4RE3FWSjmBMtyPoKoURLrgVjm7Z9Wc+k=\n-----END CERTIFICATE-----\n"}}} francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$

sarapaul (Sun, 25 Aug 2019 19:08:18 GMT):
Ip has changed when i rebuilt things

sarapaul (Sun, 25 Aug 2019 19:08:21 GMT):
"IPAddress": "172.18.0.3

yacovm (Sun, 25 Aug 2019 19:09:10 GMT):
wow i can't believe even shitty advice works sometimes

sarapaul (Sun, 25 Aug 2019 19:09:54 GMT):
Thank you so much. I will continue the tutorial. I spent a lot of time on this issue today!

yacovm (Sun, 25 Aug 2019 19:10:09 GMT):
np

sarapaul (Sun, 25 Aug 2019 19:10:22 GMT):
Where are you based?

yacovm (Sun, 25 Aug 2019 19:10:30 GMT):
in direct message

Zoultrex (Sun, 25 Aug 2019 23:26:57 GMT):
@sarapaul I had a similar issue where something was not working for me when I ran the tutorial the second time. Actually I was running the tutorial step by step and all was good. Untill I accidentally turned off my VM and when I started over there was some things runing on my docker that were causing problems for me. I found a teardown script that removed the docker containers and after that i started all over and finally it worked. I never worked with docker so it was not obvious to me what could be hapenning.

ahmad-raza (Mon, 26 Aug 2019 09:13:54 GMT):
Hi all , Have any one deploy Hyperledger fabric network on Kubernetes with TLS enabled?

SecMS (Mon, 26 Aug 2019 09:58:34 GMT):
raft

SecMS (Mon, 26 Aug 2019 10:02:59 GMT):
Hi! I have a question regarding the usage of raft on a conceptual level: Can someone tell me whether the raft leader already signs the block he proposes to his followers? I can't find it in the code. Thx!

tballast (Mon, 26 Aug 2019 10:41:13 GMT):
I'd like to define multiple channels in my network, and I'm studying the configtx.yaml file to see how to do this, and I'm unsure exactly what the difference is between these two profiles: ``` Profiles: TwoOrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: SampleConsortium: Organizations: - *Org1 - *Org2 TwoOrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 ``` I believe that one is for the orderer (like a system channel) whereas the other is one that peers will communicate on, however is it possible to use one system channel for many regular ones? How come?

tballast (Mon, 26 Aug 2019 10:42:10 GMT):
Furthermore, can I create more than one channel based on a single profile? Or would this simply be redundant? (ie. FinancialData channel and HRData or something like that, but with the same organizations)

deenario (Mon, 26 Aug 2019 10:44:21 GMT):
Fabric 1.4 container crashes as soon as it starts. logs give the following error. 2019-08-26 10:34:20.381 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2019-08-26 10:34:20.595 UTC [bccsp_sw] loadPrivateKey -> ERRO 002 Failed loading private key [c4e93a741c2f2ea5f881dbbc131310845c245eb2809557c34512e4a10f8be14e]: [open /etc/hyperledger/crypto/peer/msp/keystore/c4e93a741c2f2ea5f881dbbc131310845c245eb2809557c34512e4a10f8be14e_sk: permission denied]. 2019-08-26 10:34:20.596 UTC [main] InitCmd -> ERRO 003 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/crypto/peer/msp: KeyMaterial not found in SigningIdentityInfo

tballast (Mon, 26 Aug 2019 10:46:06 GMT):
Looks like it's not able to open the keyfile becase the permissions are incorrect. Did you generate the crypto material as root? i believe you're probably running docker as a normal use but the crypto material is owned by root or something.

deenario (Mon, 26 Aug 2019 10:47:04 GMT):
how can i run Docker as root. Can you guide me a little bit. I am using macOS not ubuntu.

Deepakshinde (Mon, 26 Aug 2019 12:02:56 GMT):
Peer machine IP changed, how to update transaction file and genesis block without regenerating artifacts?

superafro12 (Mon, 26 Aug 2019 12:29:19 GMT):
You have to specify which channel with -c channel name and orderer with -o orderer url:orderer port. And you have to export CORE_PEER_LOCALMSPID=the MSP ID of one organization that's part of the channel and CORE_PEER_MSPCONFIGPATH=the path to an administrator's MSP of the organization

tballast (Mon, 26 Aug 2019 12:47:28 GMT):
I'm not actually sure that that' really the best solution to this. Like, one option to do that would be `sudo su` and then run your commands running as the root user, but instead I think you actually just want to make the crypto materials accessible to a non-root user. This can be done by generating the material as a non-root user.

CarlosAvim (Mon, 26 Aug 2019 13:41:52 GMT):
Has left the channel.

ItaloCarrasco (Mon, 26 Aug 2019 14:23:45 GMT):
hello everyone i wanted to know, if we get fabric minor releases with hotfixes? i know there is a bug in 1.4.2 that got fixed in master and i need that fix in my project.

yacovm (Mon, 26 Aug 2019 14:39:36 GMT):
@ItaloCarrasco - https://gerrit.hyperledger.org/r/#/c/fabric/+/32874/

yacovm (Mon, 26 Aug 2019 14:39:46 GMT):
i also fixed it in 1.4.3 which is yet to be out

ItaloCarrasco (Mon, 26 Aug 2019 14:55:30 GMT):
@yacovm i know we need to wait for 1.4.2 but this bug was that if u had lets say a network with 4 peers and 1 is down all the others crash after a while, seems like a critical bug and waiting for v1.4.3 is a lot of time

ItaloCarrasco (Mon, 26 Aug 2019 14:55:30 GMT):
@yacovm i know we need to wait for 1.4.3 but this bug was that if u had lets say a network with 4 peers and 1 is down all the others crash after a while, seems like a critical bug and waiting for v1.4.3 is a lot of time

yacovm (Mon, 26 Aug 2019 14:57:47 GMT):
@dave.enyeart ^

yacovm (Mon, 26 Aug 2019 14:58:38 GMT):
@ItaloCarrasco well i don't know what to tell you... 1.4.3 should be soon

greg2git (Mon, 26 Aug 2019 23:31:06 GMT):
sanity check: is this true? #the shortest blockchain sequence is the following: #0-genesis when fabric starts #1-when channel is joined #2-when channel is updated #3-when chaincode is instantiated

neerajUdai (Tue, 27 Aug 2019 06:21:31 GMT):
Has joined the channel.

mastersingh24 (Tue, 27 Aug 2019 07:21:42 GMT):
assuming your numbers are block numbers, then there is no new block created when joining a channel. You also don't have to update the channel either

SibirajPR (Tue, 27 Aug 2019 08:19:49 GMT):
Has joined the channel.

SibirajPR (Tue, 27 Aug 2019 08:19:49 GMT):
Please help me about the following code

SibirajPR (Tue, 27 Aug 2019 08:19:56 GMT):
async getAllDetails(ctx, userId) { const getAllDetailsAsBytes = await ctx.stub.getStateByPartialCompositeKey( 'userIdcarId', [userId] ) return getAllDetailsAsBytes.toString() }

SibirajPR (Tue, 27 Aug 2019 08:20:08 GMT):
This function return only some [object object].

SibirajPR (Tue, 27 Aug 2019 08:20:15 GMT):
Is this the right way to do this

ShubhneetChawla (Tue, 27 Aug 2019 09:23:00 GMT):
Has joined the channel.

ShubhneetChawla (Tue, 27 Aug 2019 09:23:01 GMT):
Hi , i am trying to implement ledger backup in case of shutdown or crash Steps I followed 1. Stored Hyperledger fabric channel-artifacts and CryptoconfigMaterial in /var/hyperledger 2. Stored Docker containers for peers, orderers,couchdb 3. Shut the network down 4. Restored the material (Step1 and Step2) into their places while network down. 5. While doing network up i am able to see the data in couchdb fauxton but unable to do invoke on the these docker containers and it gives me error while starting the network again Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Kindly guide where i am missing what i need to do for taking backup

abel23 (Tue, 27 Aug 2019 10:54:58 GMT):
Has joined the channel.

someguy (Tue, 27 Aug 2019 10:57:38 GMT):
Hello guys, do I always need to instantiate a chaincode or I can execute it by going directly to a invoke function? because in my chaincode im not doing nothing in Init and im going directly to Invoke and using a function, but the chaincode is not being instatiated correctly

abel23 (Tue, 27 Aug 2019 11:04:03 GMT):
The function worked without instantiating? According to the docs, the chaincode must be installed on all the peers that intends to invoke the chaincode. The chaincode has to be instantiated on the channel. The instantiation of a particular chaincode on a channel can be done only once. If you try to instantiate again you'll get a decent error message stating that its already instantiated on the channel. Is this the answer you're looking for?

ShubhneetChawla (Tue, 27 Aug 2019 11:13:26 GMT):
Can Any1 Guide regarding Multinode setup any links/document would be appreciated

someguy (Tue, 27 Aug 2019 11:15:08 GMT):
Im actually instantiating the chaincode,

someguy (Tue, 27 Aug 2019 11:15:27 GMT):
but the Args that im instantiating with are not going in correctly

someguy (Tue, 27 Aug 2019 11:16:41 GMT):
becaue in this specific chaincode im not doing anything on Init (i just return shim.Success), and than on Invoke i have a initSomething function to start something on the blockchain but the aregs are not going in correctly

someguy (Tue, 27 Aug 2019 11:16:41 GMT):
becaue in this specific chaincode im not doing anything on Init (i just return shim.Success), and than on Invoke i have a initSomething function to start something on the blockchain but the args are not going in correctly

abel23 (Tue, 27 Aug 2019 11:17:22 GMT):
hmm.. So if you use the init function during instantiation and then use the invoke command to execute the invoke function, does it work?

someguy (Tue, 27 Aug 2019 11:20:16 GMT):
i think im not using the invoke command

someguy (Tue, 27 Aug 2019 11:20:59 GMT):
but i have another chaincode and that one is instantiating correctly

someguy (Tue, 27 Aug 2019 11:21:12 GMT):
in the debug of the machine

someguy (Tue, 27 Aug 2019 11:21:36 GMT):
the chaincode is going like this "CHAINCODE_COMMON_INIT='{"Args":["init","a","100","b","100"]}'"

someguy (Tue, 27 Aug 2019 11:21:44 GMT):
and the debug is correct

someguy (Tue, 27 Aug 2019 11:22:02 GMT):
my other chaincode is like this "CHAINCODE_TIER_INIT='{Args":["initTier", "10", "700", "others_level"]}'"

someguy (Tue, 27 Aug 2019 11:22:34 GMT):
but in the debug only appears this ""CHAINCODE_TIER_INIT='{Args":["initTier", '

abel23 (Tue, 27 Aug 2019 11:22:44 GMT):
The second one is missing "" on the Args

someguy (Tue, 27 Aug 2019 11:23:02 GMT):
oh mam

someguy (Tue, 27 Aug 2019 11:23:07 GMT):
jesus

someguy (Tue, 27 Aug 2019 11:23:13 GMT):
tanks a lot

someguy (Tue, 27 Aug 2019 11:23:21 GMT):
ahaha im so stupid

abel23 (Tue, 27 Aug 2019 11:23:26 GMT):
you're welcome

abel23 (Tue, 27 Aug 2019 11:28:16 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

abel23 (Tue, 27 Aug 2019 11:28:37 GMT):
This one guided me. Check it out.

ShubhneetChawla (Tue, 27 Aug 2019 11:31:03 GMT):
Thanks alot @abel23

AdityaDhand (Tue, 27 Aug 2019 11:32:29 GMT):
Has joined the channel.

AdityaDhand (Tue, 27 Aug 2019 11:32:30 GMT):
i need to setup hyperledger fabric on multiple nodes/hosts and i want if there is transaction on first node it should reflect on second node or host could you please share some links or refrence for it

abel23 (Tue, 27 Aug 2019 11:33:41 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

AdityaDhand (Tue, 27 Aug 2019 11:35:45 GMT):
i am using hyperledger composer

AdityaDhand (Tue, 27 Aug 2019 11:35:55 GMT):
so it will work

abel23 (Tue, 27 Aug 2019 11:36:45 GMT):
Composer is just a tool to work on fabric network! you will have to set a network first

SaikrishnaReddy (Tue, 27 Aug 2019 11:37:26 GMT):
saikrishna@WorkEatSleep:~/Hyper.fabric/fabric-samples/first-network$ ./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.2.0 DOCKER_IMAGE_VERSION=1.2.0 Creating network "net_byfn" with the default driver Creating volume "net_peer0.org2.example.com" with default driver Creating volume "net_peer1.org2.example.com" with default driver Creating volume "net_peer1.org1.example.com" with default driver Creating volume "net_peer0.org1.example.com" with default driver Creating volume "net_orderer.example.com" with default driver Creating peer1.org1.example.com ... done Creating peer0.org2.example.com ... done Creating orderer.example.com ... done Creating peer0.org1.example.com ... done Creating peer1.org2.example.com ... done Creating cli ... done ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=0 + set +x 2019-08-27 11:32:15.502 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-08-27 11:32:15.655 UTC [cli/common] readBlock -> INFO 002 Got status: &{NOT_FOUND} 2019-08-27 11:32:15.656 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2019-08-27 11:32:15.858 UTC [cli/common] readBlock -> INFO 004 Got status: &{NOT_FOUND} 2019-08-27 11:32:15.863 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2019-08-27 11:32:16.069 UTC [cli/common] readBlock -> INFO 006 Received block: 0 ===================== Channel 'mychannel' created ===================== Having all peers join the channel... + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

SaikrishnaReddy (Tue, 27 Aug 2019 11:37:26 GMT):
*what is the problem with following error?..anyone help me *saikrishna@WorkEatSleep:~/Hyper.fabric/fabric-samples/first-network$ ./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.2.0 DOCKER_IMAGE_VERSION=1.2.0 Creating network "net_byfn" with the default driver Creating volume "net_peer0.org2.example.com" with default driver Creating volume "net_peer1.org2.example.com" with default driver Creating volume "net_peer1.org1.example.com" with default driver Creating volume "net_peer0.org1.example.com" with default driver Creating volume "net_orderer.example.com" with default driver Creating peer1.org1.example.com ... done Creating peer0.org2.example.com ... done Creating orderer.example.com ... done Creating peer0.org1.example.com ... done Creating peer1.org2.example.com ... done Creating cli ... done ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=0 + set +x 2019-08-27 11:32:15.502 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-08-27 11:32:15.655 UTC [cli/common] readBlock -> INFO 002 Got status: &{NOT_FOUND} 2019-08-27 11:32:15.656 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2019-08-27 11:32:15.858 UTC [cli/common] readBlock -> INFO 004 Got status: &{NOT_FOUND} 2019-08-27 11:32:15.863 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2019-08-27 11:32:16.069 UTC [cli/common] readBlock -> INFO 006 Received block: 0 ===================== Channel 'mychannel' created ===================== Having all peers join the channel... + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

abel23 (Tue, 27 Aug 2019 11:37:32 GMT):
I suggest not to use composer since the IBM guys have ceased it's development

AdityaDhand (Tue, 27 Aug 2019 11:40:19 GMT):
yes we have two Ec2 instances so to create network we have connection profile json file so how we can manage this thing that if we create some asset or participant in network (means do some transaction) then it will effect on my second Ec2 instance

AdityaDhand (Tue, 27 Aug 2019 11:40:26 GMT):
that thing we are confusing

abel23 (Tue, 27 Aug 2019 11:42:36 GMT):
i'm don't know using Ec2. I made a local network using docker swarm

abel23 (Tue, 27 Aug 2019 11:42:36 GMT):
i don't know using Ec2. I made a local network using docker swarm

ShubhneetChawla (Tue, 27 Aug 2019 11:43:47 GMT):
@SaikrishnaReddy you must clean all the containers and can try running with sudo access , sudo ./byfn -m up

abel23 (Tue, 27 Aug 2019 11:44:07 GMT):
Are you using the right version of the fabric-samples and the docker images?

AdityaDhand (Tue, 27 Aug 2019 11:45:41 GMT):
means in local network if you create some asset from hyperledger composer tool or from node.js SDK on pc1 then it is replicating in pc2

abel23 (Tue, 27 Aug 2019 11:47:09 GMT):
Yes!

abel23 (Tue, 27 Aug 2019 11:47:22 GMT):
Use the link i gave above

SaikrishnaReddy (Tue, 27 Aug 2019 11:47:32 GMT):
tried but getting same error

SaikrishnaReddy (Tue, 27 Aug 2019 11:48:03 GMT):
Yeah both are same

abel23 (Tue, 27 Aug 2019 11:49:45 GMT):
Did you follow the BYFN tutorials

abel23 (Tue, 27 Aug 2019 11:49:58 GMT):
did you generate the crypto materials?

abel23 (Tue, 27 Aug 2019 11:50:40 GMT):
Why don't you try the latest release and the corresponding images if error persists. A lot has changed

SaikrishnaReddy (Tue, 27 Aug 2019 11:50:42 GMT):
iam following byfn tutorials only...yeah generated

SaikrishnaReddy (Tue, 27 Aug 2019 11:52:34 GMT):
latest only .....

abel23 (Tue, 27 Aug 2019 11:53:06 GMT):
No, it is not latest. you are using 1.2.0

abel23 (Tue, 27 Aug 2019 11:53:24 GMT):
look at the initial outputs

abel23 (Tue, 27 Aug 2019 11:53:37 GMT):
check you docker images using docker image ls

AdityaDhand (Tue, 27 Aug 2019 11:53:41 GMT):
yes in link there are 2 peeers but now with us there are 3 peers on PC1 and 3 peers on PC2 so in this case how it will manage

AdityaDhand (Tue, 27 Aug 2019 11:53:55 GMT):
can i send my connection profile to you here

abel23 (Tue, 27 Aug 2019 11:53:56 GMT):
see version number

AdityaDhand (Tue, 27 Aug 2019 11:54:07 GMT):
could you look into it

SaikrishnaReddy (Tue, 27 Aug 2019 11:54:23 GMT):
yes sorry... to match with the local i used 1.2.0 but with both iam getting same error

abel23 (Tue, 27 Aug 2019 11:56:04 GMT):
yes, create the third one using the format used for the other two peers. Just change the crypto materials.

abel23 (Tue, 27 Aug 2019 11:56:23 GMT):
Send I will look

abel23 (Tue, 27 Aug 2019 11:56:54 GMT):
Just try the tutorial in the link, then you'll get an idea.

AdityaDhand (Tue, 27 Aug 2019 11:57:55 GMT):
{ "name": "hlfv1", "x-type": "hlfv1", "x-commitTimeout": 300, "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300", "eventHub": "300", "eventReg": "300" }, "orderer": "300" } } }, "channels": { "channeliot1": { "orderers": [ "orderer.iotblockchain.com" ], "peers": { "peer0.org1.iotblockchain.com": {}, "peer1.org1.iotblockchain.com": {}, "peer2.org1.iotblockchain.com": {}, "peer3.org1.iotblockchain.com": {}, "peer4.org1.iotblockchain.com": {}, "peer5.org1.iotblockchain.com": {} } }, "channeliot2": { "orderers": [ "orderer.iotblockchain.com" ], "peers": { "peer0.org1.iotblockchain.com": {}, "peer1.org1.iotblockchain.com": {}, "peer2.org1.iotblockchain.com": {}, "peer3.org1.iotblockchain.com": {}, "peer4.org1.iotblockchain.com": {}, "peer5.org1.iotblockchain.com": {} } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.iotblockchain.com", "peer1.org1.iotblockchain.com", "peer2.org1.iotblockchain.com", "peer3.org1.iotblockchain.com", "peer4.org1.iotblockchain.com", "peer5.org1.iotblockchain.com" ], "certificateAuthorities": [ "ca.org1.iotblockchain.com" ] } }, "orderers": { "orderer.iotblockchain.com": { "url": "grpc://localhost:7050" } }, "peers": { "peer0.org1.iotblockchain.com": { "url": "grpc://localhost:7051", "eventUrl": "grpc://localhost:7053" }, "peer1.org1.iotblockchain.com": { "url": "grpc://localhost:8051", "eventUrl": "grpc://localhost:8053" }, "peer2.org1.iotblockchain.com": { "url": "grpc://localhost:9051", "eventUrl": "grpc://localhost:9053" }, "peer3.org1.iotblockchain.com": { "url": "grpc://ip2:10051", "eventUrl": "grpc://ip2:10053" }, "peer4.org1.iotblockchain.com": { "url": "grpc://ip2:11051", "eventUrl": "grpc://ip2:11053" }, "peer5.org1.iotblockchain.com": { "url": "grpc://ip2:12051", "eventUrl": "grpc://ip212053" } }, "certificateAuthorities": { "ca.org1.iotblockchain.com": { "url": "http://localhost:7054", "caName": "ca.org1.iotblockchain.com" } } }

AdityaDhand (Tue, 27 Aug 2019 11:58:04 GMT):
this is currently we are using

abel23 (Tue, 27 Aug 2019 11:58:17 GMT):
check your docker logs using docker logs -f container-name

abel23 (Tue, 27 Aug 2019 11:58:32 GMT):
see docker ps -a

abel23 (Tue, 27 Aug 2019 11:58:47 GMT):
see, their status. Have they all exited?

AdityaDhand (Tue, 27 Aug 2019 11:59:52 GMT):
at present we are using hyperledger fabric node sdk BusinessNetwork API of node.js so if we use this link configuration then that code will not work i guess right?

abel23 (Tue, 27 Aug 2019 12:01:13 GMT):
You should be. Have you checked out the fabric documentation?

SaikrishnaReddy (Tue, 27 Aug 2019 12:01:31 GMT):
dm-ed u

greg2git (Tue, 27 Aug 2019 12:02:31 GMT):
i realize it's not the same, but when i look at IBM Blockchain - creation, joining, instantiation, and the first transaction are all wrapped into 1 block and i think i need to have an update if permissioning is deployed, so sample blockchain is 0-start, 1-channel create, 2-channel update(for anchor peer/privacy), and 3-(chaincode) instantiate

AdityaDhand (Tue, 27 Aug 2019 12:05:10 GMT):
yes checked but in that i didn't find some multinode setup network

AdityaDhand (Tue, 27 Aug 2019 12:05:21 GMT):
so could you please guide us

abel23 (Tue, 27 Aug 2019 12:06:19 GMT):
Hyperledger fabric uses docker to make the services possible.

abel23 (Tue, 27 Aug 2019 12:06:37 GMT):
So it is better to use docker swarm for multi host

abel23 (Tue, 27 Aug 2019 12:06:54 GMT):
i have tried this is in the local network using Wi-FI

AdityaDhand (Tue, 27 Aug 2019 12:07:48 GMT):
yes we setup network using dokcer swarm then if we want to save some data in blockchain then for this we have to query on chiancode right dou have some sample for this?

AdityaDhand (Tue, 27 Aug 2019 12:07:55 GMT):
saving data

AdityaDhand (Tue, 27 Aug 2019 12:08:10 GMT):
in blockchain

abel23 (Tue, 27 Aug 2019 12:08:47 GMT):
Check the fabric-samples repository. You'll have a lot of chaincodes to play with

abel23 (Tue, 27 Aug 2019 12:09:31 GMT):
See the BYFN tutorial and use those commands to install and instantiate chaincode

abel23 (Tue, 27 Aug 2019 12:10:20 GMT):
I will send you the docker compose files i made for multihost. Maybe it'll make things easier for you

AdityaDhand (Tue, 27 Aug 2019 12:10:33 GMT):
yes please

AdityaDhand (Tue, 27 Aug 2019 12:12:30 GMT):
at present we have used composer-client for our code so if we follow the above link for setup network then composer-client will work?

razasikander (Tue, 27 Aug 2019 12:12:51 GMT):
Has joined the channel.

razasikander (Tue, 27 Aug 2019 12:12:52 GMT):
Hello is it possible to use 3rd party CA instead of the Fabric CA?

abel23 (Tue, 27 Aug 2019 12:13:04 GMT):
The compose works on top of the fabric network

abel23 (Tue, 27 Aug 2019 12:13:24 GMT):
You have started a network in the background right?

AdityaDhand (Tue, 27 Aug 2019 12:13:34 GMT):
yes

abel23 (Tue, 27 Aug 2019 12:13:51 GMT):
It's the same things that is being done

abel23 (Tue, 27 Aug 2019 12:14:03 GMT):
Only things, you started it using a script

AdityaDhand (Tue, 27 Aug 2019 12:14:51 GMT):
no but i am asking about code things if we successfully setup network from above link then how can we manage to insert data in blockchain

abel23 (Tue, 27 Aug 2019 12:15:28 GMT):
Obviously!! Thats what fabric is for

jfilippone (Tue, 27 Aug 2019 12:15:33 GMT):
Has joined the channel.

jfilippone (Tue, 27 Aug 2019 12:15:34 GMT):
I am using the node sdk and registering chaincode event listeners. I see that it should be able to replay events that happen while the listener is down. I am using the addContractListener method from fabric-network.Contract. If I knock out the listening application and bring it back up, it does catch up on events but once it hits a checkpoint, it fails to bring the listener back up. It looks like in the code, it is connecting the eventHub first, then registering the chaincode event and during that registration it fails because there is a start block defined (because we have passed a checkpoint) and the event hub is already connected. I get that you're not suppose to register the event again but don't see any options for reconnecting to the event hub to get the events but not registering the event through the fabric-network interface. Can anyone help?

abel23 (Tue, 27 Aug 2019 12:16:04 GMT):
Seriously I recommend you to check the documentation.

AdityaDhand (Tue, 27 Aug 2019 12:16:36 GMT):
yes so could you please guide us how we can start the code in Node.js after our network is setup with multiple host

abel23 (Tue, 27 Aug 2019 12:17:35 GMT):
I don't know that! Check this: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/developing_applications.html

abel23 (Tue, 27 Aug 2019 12:17:55 GMT):
You want to build apps on hyperledger fabric right

abel23 (Tue, 27 Aug 2019 12:18:11 GMT):
Me explaining to you will take a lot of time

abel23 (Tue, 27 Aug 2019 12:19:20 GMT):
This is for host 1. Please check the names used

abel23 (Tue, 27 Aug 2019 12:19:42 GMT):

abel23 - Tue Aug 27 2019 17:49:29 GMT+0530 (India Standard Time).txt

abel23 (Tue, 27 Aug 2019 12:21:05 GMT):

abel23 - Tue Aug 27 2019 17:50:59 GMT+0530 (India Standard Time).txt

abel23 (Tue, 27 Aug 2019 12:21:24 GMT):
This is max i can do for you to make life easier

abel23 (Tue, 27 Aug 2019 12:21:31 GMT):
You have to check the docs

abel23 (Tue, 27 Aug 2019 12:22:11 GMT):
the network name i used is my-net . Please change the docker compose file accordingly

AdityaDhand (Tue, 27 Aug 2019 12:31:30 GMT):
yes so if we want to create our personal network then we have to change the name just in this configuration networks: default: external: name: MyNetwork

AdityaDhand (Tue, 27 Aug 2019 12:34:46 GMT):
and how can i check that my network is created in which tool

AdityaDhand (Tue, 27 Aug 2019 12:35:13 GMT):
just like in hyperledger composer we can see that there is our business network

someguy (Tue, 27 Aug 2019 12:45:13 GMT):
i just tested, and it failed the same way again

jfilippone (Tue, 27 Aug 2019 13:23:18 GMT):
You still have the wrong args after fixing the quote in your code?

Alexoid83 (Tue, 27 Aug 2019 13:28:52 GMT):
Has joined the channel.

Alexoid83 (Tue, 27 Aug 2019 13:28:53 GMT):
Hi. If a network consists of several orgs and each of this org has its own ca-tls (and so its own tls-certs for the peers). In my understanding, when I invoke some chaincode on a peer of my own org (for that I have the TLS-CA-cert) that peer must probably contact other (endorsing) peers outside my organisation. But how is the fabric sdk (or the peer) able to retrieve the tls-ca-cert of the other org, to be able to contact them?

Alexoid83 (Tue, 27 Aug 2019 14:11:14 GMT):
ls

HazimDikenli (Tue, 27 Aug 2019 14:37:17 GMT):
Is .npmignore respected when deploying nodejs chaincode, `npm pack` command produces a small tarfile but when I install chaincode through `peer chaincode install` everything in that folder is put into the tarball. I see output like ` [container] WriteFileToPackage -> DEBU 172 Writing file to tarball: src/tslint.json`, which is supposed to be ignored due to .npmignore setting

priti_kumari (Tue, 27 Aug 2019 15:15:00 GMT):
Has joined the channel.

marinkovicvlado (Tue, 27 Aug 2019 15:43:49 GMT):
Hi all, what are you hardware specs for peers, orderers, kafka, zoo and CA? Did anyone determine some ranges for hw limits and how many requests per second was you goal?

marinkovicvlado (Tue, 27 Aug 2019 15:43:49 GMT):
Hi all, what are your hardware specs for peers, orderers, kafka, zoo and CA? Did anyone determine some ranges for hw limits and how many requests per second was you goal?

marinkovicvlado (Tue, 27 Aug 2019 15:43:49 GMT):
Hi all, what are your hardware specs for peers, orderers, kafka, zoo and CA? Ram and cpu? Did anyone determine some ranges for hw limits and how many requests per second was you goal?

marinkovicvlado (Tue, 27 Aug 2019 15:43:49 GMT):
Hi all, what are your hardware specs for peers, orderers, kafka, zoo and CA? Ram and cpu? Did anyone determine some ranges for hw limits and how many requests per second was your goal?

ItaloCarrasco (Tue, 27 Aug 2019 16:53:03 GMT):
hello i am trying to set up a network with 4 orgs and 2 peers each but i am gettin this error in all the second peers of all the orgs, does anyone know what could cause it? 2019-08-27 16:28:30.437 UTC [gossip.comm] sendToEndpoint -> WARN 398 Failed obtaining connection for peer1.org4.autentia-bchain.com:14051, PKIid:9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa reason: context deadline exceeded 2019-08-27 16:28:30.437 UTC [gossip.discovery] expireDeadMembers -> WARN 399 Entering [9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa] 2019-08-27 16:28:30.437 UTC [gossip.discovery] expireDeadMembers -> WARN 39a Closing connection to Endpoint: peer1.org4.autentia-bchain.com:14051, InternalEndpoint: , PKI-ID: 9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa, Metadata: 2019-08-27 16:28:30.437 UTC [gossip.discovery] expireDeadMembers -> WARN 39b Exiting 2019-08-27 16:28:31.621 UTC [gossip.comm] sendToEndpoint -> WARN 39c Failed obtaining connection for peer1.org2.autentia-bchain.com:10051, PKIid:2ad94ae1a635024dd83b598ec9f95c997d79ad161e195a7b9131f32d5e8307b8 reason: context deadline exceeded 2019-08-27 16:28:31.621 UTC [gossip.discovery] expireDeadMembers -> WARN 39d Entering [2ad94ae1a635024dd83b598ec9f95c997d79ad161e195a7b9131f32d5e8307b8] 2019-08-27 16:28:31.621 UTC [gossip.discovery] expireDeadMembers -> WARN 39e Closing connection to Endpoint: peer1.org2.autentia-bchain.com:10051, InternalEndpoint: , PKI-ID: 2ad94ae1a635024dd83b598ec9f95c997d79ad161e195a7b9131f32d5e8307b8, Metadata: 2019-08-27 16:28:31.621 UTC [gossip.discovery] expireDeadMembers -> WARN 39f Exiting 2019-08-27 16:28:31.834 UTC [gossip.comm] sendToEndpoint -> WARN 3a0 Failed obtaining connection for peer1.org3.autentia-bchain.com:12051, PKIid:0d6474f433e0433dc82a34e76176633883c8637b092d132592923e198160ffe4 reason: context deadline exceeded 2019-08-27 16:28:31.834 UTC [gossip.discovery] expireDeadMembers -> WARN 3a1 Entering [0d6474f433e0433dc82a34e76176633883c8637b092d132592923e198160ffe4] 2019-08-27 16:28:31.834 UTC [gossip.discovery] expireDeadMembers -> WARN 3a2 Closing connection to Endpoint: peer1.org3.autentia-bchain.com:12051, InternalEndpoint: , PKI-ID: 0d6474f433e0433dc82a34e76176633883c8637b092d132592923e198160ffe4, Metadata: 2019-08-27 16:28:31.834 UTC [gossip.discovery] expireDeadMembers -> WARN 3a3 Exiting 2019-08-27 16:28:32.732 UTC [gossip.comm] sendToEndpoint -> WARN 3a4 Failed obtaining connection for peer1.org4.autentia-bchain.com:14051, PKIid:9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa reason: context deadline exceeded 2019-08-27 16:28:32.733 UTC [gossip.discovery] expireDeadMembers -> WARN 3a5 Entering [9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa] 2019-08-27 16:28:32.733 UTC [gossip.discovery] expireDeadMembers -> WARN 3a6 Closing connection to Endpoint: peer1.org4.autentia-bchain.com:14051, InternalEndpoint: , PKI-ID: 9ade89c1145b027e8618cb0ba1106b2a017180c71ab52442520779428fc640aa, Metadata: 2019-08-27 16:28:32.734 UTC [gossip.discovery] expireDeadMembers -> WARN 3a7 Exiting

jfilippone (Tue, 27 Aug 2019 17:32:06 GMT):
Is there a way to submit a bug report for the Node SDK

davidkel (Tue, 27 Aug 2019 17:33:29 GMT):
jira.hyperledger.org is the bug reporting tool. You will need a linux foundation id. You need to select the FABN project when creating the issue

jfilippone (Tue, 27 Aug 2019 17:34:29 GMT):
Thanks! Are there any other support channels that I should go through? Just trying to make sure I follow the proper procedure

davidkel (Tue, 27 Aug 2019 18:08:17 GMT):
There is no defined procedure. Some people like to perhaps discuss it on the #fabric-sdk-node channel, stackoverflow or mailing lists to help confirm it is a bug and maybe see if anyone knows of a workaround for now for example.

jfilippone (Tue, 27 Aug 2019 18:30:22 GMT):
thank you!

someguy (Tue, 27 Aug 2019 19:26:50 GMT):
Hello guys, i have a multinode blockchain POC(proof of concept), within 4 virtual machines with 30 GB disk space each. When i deploy the fabric, dockers and execute some simple chaincode it leaves me with 20 GB space availabe in each, 2 days like this and its ok, but within a week the disk is completly full without me doing nothing. Does anyone know what can be causing this?

ashish.cppdev (Tue, 27 Aug 2019 19:49:42 GMT):
Hi All - I am trying to run the FabCar example in HLF. Everything works to the point of starting all the containers. The script startFabric.sh using javascript works and prints END (from byfn.sh). However, when it comes to the point of instantiating the contract on the channel, it fails because it cannot contact registry.npmjs.org because it is trying to get fabric-shim. We have an no-internet environment but have a local artifactory based registry to point to, which has fabric-shim. I cannot figure out how to pass my local .npmrc entries to the c

ashish.cppdev (Tue, 27 Aug 2019 19:49:42 GMT):
Hi All - I am trying to run the FabCar example in HLF. Everything works to the point of starting all the containers. The script startFabric.sh using javascript works and prints END (from byfn.sh). However, when it comes to the point of instantiating the contract on the channel, it fails because it cannot contact registry.npmjs.org because it is trying to get fabric-shim. We have an no-internet environment but have a local artifactory based registry to point to, which has fabric-shim. I cannot figure out how to pass my local .npmrc entries to the container

TBdori (Tue, 27 Aug 2019 20:02:35 GMT):
.cds package can be installed on any fabric network?

greg2git (Tue, 27 Aug 2019 23:13:08 GMT):
for v1.4.3 is it config.yaml or configtx.yaml here https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html#identity-classification

aiga (Wed, 28 Aug 2019 02:41:02 GMT):
Has joined the channel.

aiga (Wed, 28 Aug 2019 02:41:03 GMT):
Hello everyone! does anyone know how to deploy proxy re-encryption to fabric? this re-encryption have to be done on sdk or in chaincode?

abel23 (Wed, 28 Aug 2019 04:19:55 GMT):
HELLO! Can Go SDK be used as an alternative to node SDK? Why are the examples given either in js and some are given in go. In the case of paperNet tutorial, the example is given in js. Can the paperNet contract be written in GO? Which SDK should one choose for the long term? My wild guess is Node.js since it uses javascript.

jastisriradheshyam (Wed, 28 Aug 2019 05:14:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8H7CSzjwtj7v2QhPM) @abel23 Both NodeJS and Go SDK's are being maintained for newer versions of fabric. So, any one of the SDK can be used for long term use. chose the language based on your confidence with language. SDK in both languages provide same level of feature set.

jastisriradheshyam (Wed, 28 Aug 2019 05:16:23 GMT):
Both NodeJS and Go SDK's are being maintained for newer versions of fabric. So, any one of the SDK can be used for long term use. chose the language based on your confidence with language. SDK in both languages provide same level of feature set.

hr8008830 (Wed, 28 Aug 2019 06:19:13 GMT):
Has joined the channel.

ShubhneetChawla (Wed, 28 Aug 2019 06:21:26 GMT):
Hi , When we talk about data persistance in hyperledger i have kept data via docker in /var/hyperledger and i am stopping the container and restarting it i am able to achieve it. how can i achieve it when i put my network down and start again can i achive it in that case as well ?? if yeh then how

abel23 (Wed, 28 Aug 2019 06:21:54 GMT):
Thanks mate

hr8008830 (Wed, 28 Aug 2019 06:29:01 GMT):
@abel23 , hlf-docker-swarm/network$ sudo ./start_all.sh run script then succesfully run it but docker stack deploy created services but no container is created

hr8008830 (Wed, 28 Aug 2019 06:29:19 GMT):
https://www.skcript.com/svr/setting-up-a-multi-node-hyperledger-fabric-network-with-docker-swarm/

Alexoid83 (Wed, 28 Aug 2019 07:28:17 GMT):
Does the discovery service just share the peerID and the mspId or also the actual tls-certificates of the peers?

knagware9 (Wed, 28 Aug 2019 07:28:53 GMT):
In my fabric network I have 3 orgs(org1,org2, org3) and one channel between them called "Mychannel". Now new Org called org4 want to join the network but this org4 want to create separate(new channel called "NyChannel") channel with one of existing org called org1. Did anyone tried this and its similar to add new org in the existing channel or different steps required

mastersingh24 (Wed, 28 Aug 2019 07:41:03 GMT):
Assuming you created the orderer system channel with the defaults, you'll need to add `org4` to the consortium and then it will be able to create new channels

AnilSingh (Wed, 28 Aug 2019 08:19:28 GMT):
refer https://github.com/rohitadivi/Reconfigure-BYFN/blob/master/Create_channel.md

knagware9 (Wed, 28 Aug 2019 08:34:23 GMT):
Thanks

knagware9 (Wed, 28 Aug 2019 08:34:30 GMT):
Thanks

knagware9 (Wed, 28 Aug 2019 08:34:51 GMT):
Let me try out

abel23 (Wed, 28 Aug 2019 08:47:31 GMT):
Why is the developing application section of the hyperledger docs only on node.js. Can the paper net app be made in go? Where can i learn to make apps using go SDK?

lotty02cho (Wed, 28 Aug 2019 09:05:30 GMT):
I'm upgrade my fabric 1.4.2 to 1.4.3 and I start to create channel, but it comes out. ``` + peer channel join -b channel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7056: failed to create new connection: connection error: desc = "transport: authentication handshake failed: read tcp 172.31.0.6:59816->172.17.32.101:7056: read: connection reset by peer" peer1.org1 failed to join on the channel "honeybeechannel", Retry after 3 seconds ``` does anyone know about this issue?

lotty02cho (Wed, 28 Aug 2019 09:05:30 GMT):
I'm upgrade my fabric 1.4.2 to 1.4.3 and I start to create channel, but it comes out. ``` + peer channel join -b channel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7056: failed to create new connection: connection error: desc = "transport: authentication handshake failed: read tcp 172.31.0.6:59816->172.17.32.101:7056: read: connection reset by peer" peer1.org1 failed to join on the channel "mychannel", Retry after 3 seconds ``` does anyone know about this issue?

ShubhneetChawla (Wed, 28 Aug 2019 09:38:27 GMT):
https://www.youtube.com/watch?v=DCJ10bvPV8I

ShubhneetChawla (Wed, 28 Aug 2019 09:38:56 GMT):
you can check this , i have implemented chaincode version upgrade but i didnt got this issue

lotty02cho (Wed, 28 Aug 2019 09:41:05 GMT):
Thanks for reply:) I' ll check this video, and I will let you know it works.

ShubhneetChawla (Wed, 28 Aug 2019 09:41:08 GMT):
Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ShubhneetChawla (Wed, 28 Aug 2019 09:41:57 GMT):
while taking ledger backup ,my data is stored in /var/hyperledger/ while starting the network again it gives me this issue ... Any help

SaikrishnaReddy (Wed, 28 Aug 2019 10:37:56 GMT):
got same error.... solved?

AdityaDhand (Wed, 28 Aug 2019 10:53:28 GMT):
hii i am using https://www.skcript.com/svr/setting-up-a-multi-node-hyperledger-fabric-network-with-docker-swarm/ this tutorial for multihost network so my containers are not reflecting on anthor pc someone please could tell me what i am doing wrong here

mattiabolzonella1 (Wed, 28 Aug 2019 13:47:27 GMT):
If you run `docker node ls` what's the output?

ItaloCarrasco (Wed, 28 Aug 2019 16:08:27 GMT):
hello i have a network with 4 orgs and 2 peers each, when i execute peer commands in any peer 0 container they all work, but when i execute the same commands in peer1 containers they show this error, does anyone know what could cause this? 2019-08-28 16:04:00.641 UTC [grpc] HandleSubConnStateChange -> DEBU 039 pickfirstBalancer: HandleSubConnStateChange: 0xc00026db80, CONNECTING 2019-08-28 16:04:00.642 UTC [grpc] createTransport -> DEBU 03a grpc: addrConn.createTransport failed to connect to {peer1.org1.autentia-bchain.com:8051 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 172.18.0.8:8051: connect: connection refused". Reconnecting... 2019-08-28 16:04:00.642 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc00026db80, TRANSIENT_FAILURE

ItaloCarrasco (Wed, 28 Aug 2019 16:08:27 GMT):
hello i have a network with 4 orgs and 2 peers each, when i execute peer commands in any peer 0 container they all work, but when i execute the same commands in peer1 containers they show this error, does anyone know what could cause this? 2019-08-28 16:04:00.641 UTC [grpc] HandleSubConnStateChange -> DEBU 039 pickfirstBalancer: HandleSubConnStateChange: 0xc00026db80, CONNECTING 2019-08-28 16:04:00.642 UTC [grpc] createTransport -> DEBU 03a grpc: addrConn.createTransport failed to connect to {peer1.org1.example.com:8051 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 172.18.0.8:8051: connect: connection refused". Reconnecting... 2019-08-28 16:04:00.642 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc00026db80, TRANSIENT_FAILURE

JanKosecki (Wed, 28 Aug 2019 18:03:41 GMT):
Is it okey to have 3 peers in an organization for resilience, all of them both endorsing and committing peers? Or is it recommended to have these peers separate?

ashish.cppdev (Wed, 28 Aug 2019 18:06:48 GMT):
[object Object]

ashish.cppdev (Wed, 28 Aug 2019 18:07:12 GMT):
Hi All - I am trying to run the Fabcar example application. The fabcar contract has been successfully instantiated. I am able to create the admin and the user1 user. However, when I execute "node query.js", I get an error saying "error: [Channel.js]: TypeError: Incorrectly typed arguments to startBatch". Has anyone had this before? Any suggestions. Thank you.

lotty02cho (Thu, 29 Aug 2019 01:30:39 GMT):
I think it's not an issue about chaincode version, before I make my own channel, this error comes out.

AdityaDhand (Thu, 29 Aug 2019 05:59:42 GMT):
i want to build an sample backend application intregrating with hyperledger fabric in Node.js could someone please guide from where i can start

AshutoshKumar7 (Thu, 29 Aug 2019 06:11:55 GMT):
Has joined the channel.

simran (Thu, 29 Aug 2019 06:56:33 GMT):
Has joined the channel.

santmukh (Thu, 29 Aug 2019 07:05:48 GMT):
Hi, I need help to generate the crl.pem file using API call. Through CLI its perfectly working and getting generated in /msp/crls/ folder. This is required for Certificate revocation process. I am using client. Revoke({enrollmentID:username}, admin-credentials) function for revoking. I get below result: Revoke was successful: {RevocationRequest:{Name:admin Serial: AKI: Reason: CAName:ca-org3 GenCRL:false}} 2019/08/20 07:30:39 [INFO] 172.31.0.1:50152 POST /api/v1/revoke 200 0 "OK"

abel23 (Thu, 29 Aug 2019 07:16:45 GMT):
"Failed to enroll admin user "admin": Error: Failed to generate key for enrollment due to error [Error: EACCES: permission denied while trying to open /.hfc-key-store/4e07ee54e3aec560cd44880b18409f5f3f2365c0415cf7ba726f93ab7d1eb6a8-priv' " This happened while i tried to use "node enrollAdmin.js" in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html I know that using sudo solves the permission error, is there a way to do it without sudo as mentioned in the documentation?

sanket1211 (Thu, 29 Aug 2019 07:26:16 GMT):
while updating system channel with new org facing error .....:Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

abel23 (Thu, 29 Aug 2019 07:30:26 GMT):
check your environment variables in the CLI. I think that's where it is going wrong

sanket1211 (Thu, 29 Aug 2019 07:38:28 GMT):
ok..let me check

sanket1211 (Thu, 29 Aug 2019 07:46:21 GMT):
i did check cli env...signed with org1,org2 and orderer......

sanket1211 (Thu, 29 Aug 2019 07:46:46 GMT):
this error popped up .....Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'byfn-sys-channel': error authorizing update: error validating DeltaSet: invalid mod_policy for element [Group] /Channel/Application: mod_policy not set

sanket1211 (Thu, 29 Aug 2019 07:46:46 GMT):
this error popped up .....Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'byfn-sys-channel': error authorizing update: error validating DeltaSet: invalid mod_policy for element [Group] /Channel/Application: mod_policy not set after peer channel update -f org3_update_in_envelope.pb -c byfn-sys-channel -o orderer.example.com:7050 --tls --cafile $ORDERER_CA

bigworld12 (Thu, 29 Aug 2019 08:15:57 GMT):
Has joined the channel.

bigworld12 (Thu, 29 Aug 2019 08:15:58 GMT):
Hey, i read in the docs that Peers are the physical representation of an organization, but can a single physical computer be shared across multiple organizations ?

abel23 (Thu, 29 Aug 2019 08:24:16 GMT):
Oh! idk. This is beyond my scope at the moment.

santmukh (Thu, 29 Aug 2019 10:02:35 GMT):
Hi, I need help to generate the crl.pem file using API call. Through CLI its perfectly working and getting generated in /msp/crls/ folder. This is required for Certificate revocation process. I am using client. Revoke({enrollmentID:username}, admin-credentials) function for revoking. I get below result: Revoke was successful: {RevocationRequest:{Name:admin Serial: AKI: Reason: CAName:ca-org3 GenCRL:false}} 2019/08/20 07:30:39 [INFO] 172.31.0.1:50152 POST /api/v1/revoke 200 0 "OK"

abel23 (Thu, 29 Aug 2019 11:49:16 GMT):
Just use "sudo chown" and get access to those directories from the current user. Once the current user has access to the files, no more permission denied errors without sudo

HienPham (Thu, 29 Aug 2019 11:57:58 GMT):
[Node chaincode] Did anyone work with the fabric-shim-crypto library? Is there any idea where can I find proper documentation or sample code for this lib? Thanks all.

ShubhneetChawla (Thu, 29 Aug 2019 12:02:50 GMT):
Can any1 help me regarding how to mount docker volumes to /var/hyperledger/ in case of using ledger backup . i am following but i am unable to mount the volume in docker-compose.yaml

tballast (Thu, 29 Aug 2019 12:12:37 GMT):
what you can also do it mount it like ``` volumes: - /my/backup/folder:/var/hyperledger/production ```

HienPham (Thu, 29 Aug 2019 13:34:18 GMT):
Here is it. In case someone might need https://github.com/hyperledger/fabric-chaincode-node/blob/release-1.4/test/integration/test.js

ashish.cppdev (Thu, 29 Aug 2019 19:01:48 GMT):
Hi All - I am trying to run the Fabcar example application. The fabcar contract has been successfully instantiated. I am able to create the admin and the user1 user. However, when I execute "node query.js", I get an error saying "error: [Channel.js]: TypeError: Incorrectly typed arguments to startBatch". Has anyone had this before? Any suggestions. Thank you.

ShubhneetChawla (Fri, 30 Aug 2019 04:31:42 GMT):
I have done this, this helps to store your backup from docker to local , now i need to implement like how to restore it back to the network such that when i start the network all the previous data should be persisted

HumaAlam (Fri, 30 Aug 2019 05:10:22 GMT):
i have done setup for multi network using docker swarm.After this i want to develop an application.I am confused how to start to develop application ?please help me out

conanoc (Fri, 30 Aug 2019 05:47:51 GMT):
See this: https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

HumaAlam (Fri, 30 Aug 2019 06:02:11 GMT):
but in this tutorial they setup using " first-network subdirectory within local clone of the fabric-samples repo." but i have done setup in "fabric-multi-network within local clone of the fabric-samples repo"

conanoc (Fri, 30 Aug 2019 06:17:05 GMT):
I don't know what you mean by fabric-multi-network, but what's your problem? Is there any problem following the tutorial in your fabric-multi-network directory?

HumaAlam (Fri, 30 Aug 2019 06:20:42 GMT):
i follow this tutorial https://medium.com/@malliksarvepalli/hyperledger-fabric-1-2-on-multiple-hosts-using-docker-swarm-and-compose-11c13635e69e.I succesfully completed all steps.but after this tutorial i want to develop my own application but i could not find tutorial related to multi network

HumaAlam (Fri, 30 Aug 2019 06:20:58 GMT):
i follow this tutorial https://medium.com/@malliksarvepalli/hyperledger-fabric-1-2-on-multiple-hosts-using-docker-swarm-and-compose-11c13635e69e.I succesfully completed all steps.but after this tutorial i want to develop my own application but i could not find tutorial related to multi network

abel23 (Fri, 30 Aug 2019 06:21:57 GMT):
How many orgs do you have?

HumaAlam (Fri, 30 Aug 2019 06:23:16 GMT):
2 organizations in 2 seprate machines and 1 orderer in 3rd main machine

abel23 (Fri, 30 Aug 2019 06:24:27 GMT):
Okay! use the tutorial. If you understand how to use for one org. Its the same method used for multi. You'll have to make 2 separate apps for both orgs and use the services accordingly

abel23 (Fri, 30 Aug 2019 06:24:53 GMT):
Do the Commercial paper tutorial also to have a better understanding

abel23 (Fri, 30 Aug 2019 06:25:27 GMT):
Once you understand how the services in an org are used by an app. you'll be able to do the same for multi

abel23 (Fri, 30 Aug 2019 06:25:33 GMT):
cheers and good luck

pchochu (Fri, 30 Aug 2019 06:25:40 GMT):
Hello guys. If I turn on discovery service, do I have to add anchor peer to each organization? Or the anchor peers are sharing only the data about the ledger and not about the network structure and smart contracts?

pchochu (Fri, 30 Aug 2019 06:25:40 GMT):
Hello guys. If I turn on discovery service, do I have to add anchor peer to each organization? Or the anchor peers shares only the data about the ledger and not about the network structure and smart contracts?

HumaAlam (Fri, 30 Aug 2019 06:26:01 GMT):
ok thank you

tballast (Fri, 30 Aug 2019 06:43:18 GMT):
As far as I know, if you do this, then if you stop and start a container the data will all still be there. You can start to query the network to verify it. Just make sure the data on your host stays intact.

ShubhneetChawla (Fri, 30 Aug 2019 06:47:22 GMT):
what about if i put the docker containers down and up(start) again

ShubhneetChawla (Fri, 30 Aug 2019 06:48:05 GMT):
?

ShubhneetChawla (Fri, 30 Aug 2019 07:08:00 GMT):
Any leads for crash recovery methods as if there is a crash network goes down completely

tballast (Fri, 30 Aug 2019 07:09:28 GMT):
yea, even in that case I believe that as long as the data you saved in the var/hl/prod folder is intact, it should be ok.

ShubhneetChawla (Fri, 30 Aug 2019 07:10:08 GMT):
data is there intact but , that data is not being used when network goes up again

ShubhneetChawla (Fri, 30 Aug 2019 07:11:02 GMT):
"var/hypldger is being recreated"

tballast (Fri, 30 Aug 2019 07:11:34 GMT):
If the container goes down you will have to still join the peers to the channel and install chaincode, however you don't have to instantiate and everything. That's already been done.

tballast (Fri, 30 Aug 2019 07:11:55 GMT):
Also, I think that there might be en env variable you need to set.

ShubhneetChawla (Fri, 30 Aug 2019 07:13:18 GMT):
isn't this like when we do network down : Stops containers and removes containers, networks, volumes, and images created by up.

tballast (Fri, 30 Aug 2019 07:15:06 GMT):
mmm, what if you don't tell it to remove volumes?

ShubhneetChawla (Fri, 30 Aug 2019 07:16:43 GMT):
tried that too, still while doing docker up it recreates everything

ShubhneetChawla (Fri, 30 Aug 2019 07:18:51 GMT):
can u tell how to do configuration such that while doing docker up, it takes my ledger/backup location or my volumes to /var/hyperledger

tballast (Fri, 30 Aug 2019 07:19:29 GMT):
what does your docker compose file look like?

ShubhneetChawla (Fri, 30 Aug 2019 07:20:24 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/base/docker-compose-base.yaml its like this

tballast (Fri, 30 Aug 2019 07:30:57 GMT):
right ok, I haven't really used the actual _volumes_ before (like the named ones in the file you sent) but I have explicitely mounted the /var/hyperledger/production folder. ie. ``` volumes: - /data/peer0.org1.example.com:/var/hyperledger/production ``` and in this case, when restarting it was important not to delete the volumes, but it would retain the data afterwards. there were not special commands that you had to use to specifically tell it where to find the data.

ShubhneetChawla (Fri, 30 Aug 2019 07:32:07 GMT):
yaa i too had done the path /data/peer...my data is in my /var/

ShubhneetChawla (Fri, 30 Aug 2019 07:33:01 GMT):
was ur data was persisted when u do dockker up

tballast (Fri, 30 Aug 2019 07:36:08 GMT):
yes. I didn't have any special commands to make it pull the data from these locations.

ShubhneetChawla (Fri, 30 Aug 2019 07:48:01 GMT):
Build your first network (trace) end-to-end test Channel name : channel Creating channel... + peer channel create -o orderer.network.com:7050 -c channel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/network.com/orderers/orderer.network.com/msp/tlscacerts/tlsca.network.com-cert.pem + res=1 + set +x 2019-08-30 07:45:38.265 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

ShubhneetChawla (Fri, 30 Aug 2019 07:49:42 GMT):
this was the error i am facing primarily bcz the place where i am storing the data is not cleared , it containes data thus when i gain start the network it looks for an empty diretory(mayb) thus showing me this error , once i clean the directorty it runs fine

phantom.assasin (Fri, 30 Aug 2019 10:34:15 GMT):
Repost: Any way to remove a peer from a channel? (Node-sdk)

AdityaDhand (Fri, 30 Aug 2019 10:45:56 GMT):
hii i am using the fabric-samples repo for wrtting chaincode in node.js but i want to add my custom data in couchdb state but it is not adding it is just adding the default data of the fabric-sample script var car = { docType: 'car', make: args[1], model: args[2], color: args[3], owner: args[4] }; But instead of this "make" key i want to add my custom key in db but it is not happeing could you please tell me in which file i have to change . i have changed in all places but same problem.

sanket1211 (Fri, 30 Aug 2019 11:17:46 GMT):
trying to add new org in system channel...facing this error Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

sanket1211 (Fri, 30 Aug 2019 11:18:06 GMT):
after... peer channel update -f org3_update_in_envelope.pb -c byfn-sys-channel -o orderer.example.com:7050 --tls --cafile $ORDERER_CA

AdityaDhand (Fri, 30 Aug 2019 12:06:05 GMT):
hii @sanket1211 have you any idea of my issue?

bigworld12 (Fri, 30 Aug 2019 12:43:09 GMT):
Hey, i read in the docs that Peers are the physical representation of an organization, but can a single physical computer be shared across multiple organizations ?

akrim (Fri, 30 Aug 2019 14:15:11 GMT):
Has joined the channel.

akrim (Fri, 30 Aug 2019 14:15:12 GMT):
Hello everyone in this great community, I am developing an application on Hyperledger Fabric and facing some issues in Adding an organization to the network. I am following the official tutorial for Adding an Organization and but its not working for me. I have downloaded the latest fabric samples. Can anyone here help me about this. Appreciate!

AnilSingh (Fri, 30 Aug 2019 14:47:02 GMT):
what's the issue ?

akrim (Fri, 30 Aug 2019 14:49:31 GMT):
I am following the manual steps. when I enter this command in Docker cli : configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json It doesn't create config.json file in my current directory.

AnilSingh (Fri, 30 Aug 2019 14:56:06 GMT):
do you have jq installed within cli container ? if not please run "apt update && apt install -y jq" within cli and follow the doc

akrim (Fri, 30 Aug 2019 16:01:54 GMT):
Well I actually have installed jq tool on my Ubuntu machine. But I will now install it in cli container as well and will let you know about it. I hope it runs Thank you :)

ashish.cppdev (Fri, 30 Aug 2019 16:42:35 GMT):
Hi All - I have posted this question previously. Can I please get some suggestions? I think I know it is mostly an environment issue because when I use the same setup on my Ubuntu laptop, I can get "node query.js" in the FabCar example to work and give me a result. However, in my client's environment, I have this issue: Hi All - I am trying to run the Fabcar example application. The fabcar contract has been successfully instantiated. I am able to create the admin and the user1 user. However, when I execute "node query.js", I get an error saying "error: [Channel.js]: TypeError: Incorrectly typed arguments to startBatch". Has anyone had this before? Any suggestions. Thank you.

ashish.cppdev (Fri, 30 Aug 2019 16:42:43 GMT):
Any pointers would be most appreciated.

toddinpal (Fri, 30 Aug 2019 23:36:35 GMT):
Yes, you can have peers from multiple organizations on the same computer.

sarapaul (Sat, 31 Aug 2019 00:42:08 GMT):
yacovm

knagware9 (Sat, 31 Aug 2019 06:04:54 GMT):
try this https://github.com/sebastianpaulp/Balance_Transfer_Docker_Swarm

abel23 (Sat, 31 Aug 2019 06:12:27 GMT):
What are the contents in the config folder within fabric-samples . "orderer.yaml , configtx.yaml , core.yaml". Where are they used. Which tool uses these files? Are these files used when we execute the sample networks?

vinnieantunes (Sun, 01 Sep 2019 01:28:56 GMT):
Has joined the channel.

vinnieantunes (Sun, 01 Sep 2019 01:28:57 GMT):
Hi

vinnieantunes (Sun, 01 Sep 2019 01:28:59 GMT):
I was working on the Fabcar network to add and encountered problems with container conflicts. Anyway, to avoid future issues, I would like to know more directly which files should I change to remove BYFN peers and orgs? The same basics (-configtx.yaml , crypto-config.yaml and docker-compose.yml)?

wasimbari162 (Sun, 01 Sep 2019 11:07:26 GMT):
Has joined the channel.

wasimbari162 (Sun, 01 Sep 2019 11:07:27 GMT):
Hi,

wasimbari162 (Sun, 01 Sep 2019 11:07:54 GMT):
Can anyone share the details about setting up fabric network with the RAFT?

sb2407 (Sun, 01 Sep 2019 15:10:29 GMT):
Has joined the channel.

AbhijeetSamanta (Sun, 01 Sep 2019 22:38:17 GMT):
Has joined the channel.

AbhijeetSamanta (Sun, 01 Sep 2019 22:38:18 GMT):
Hello everyone in this great community,

AbhijeetSamanta (Sun, 01 Sep 2019 22:43:32 GMT):
I have setup the hyperledger fabric network on AWS my setup is 1 orderer node, 1 client node , 2 peer node of 2 different orgs. I am successfully deploy the chaincode in network however now I want to execute all the invoke and query from API using node fabric SDK for that I created the 1 client node EC2 instance on AWS. Now I want to enroll the Admin and register the user on client node and want to create the wallet of admin and users in client node instance however I think the client not connect to other nodes so it unable to create any wallet for admin and users. So anybody help me find out whats the issue ?

ShubhneetChawla (Mon, 02 Sep 2019 04:59:10 GMT):
Hi ,

ShubhneetChawla (Mon, 02 Sep 2019 05:00:28 GMT):
how to recover data when my system crashes /goes down and all the docker containers and down, is there any recovery method in such conditions

Alwii (Mon, 02 Sep 2019 05:26:14 GMT):
Has joined the channel.

sanket1211 (Mon, 02 Sep 2019 05:32:39 GMT):
while joining channel.block facing Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)...any solution?

soumyanayak (Mon, 02 Sep 2019 05:55:06 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/raft_configuration.html?highlight=RAFT

soumyanayak (Mon, 02 Sep 2019 05:56:04 GMT):
Can you please post the complete issue what you are getting?

soumyanayak (Mon, 02 Sep 2019 05:58:01 GMT):
Can you please post the steps and the complete error you got

soumyanayak (Mon, 02 Sep 2019 06:00:35 GMT):
You can use rsync, scp or sftp for having the backup in remote systems.

soumyanayak (Mon, 02 Sep 2019 06:00:58 GMT):
in case of kubernetes https://hyperledger-fabric.readthedocs.io/en/latest/raft_configuration.html?highlight=RAFT

soumyanayak (Mon, 02 Sep 2019 06:01:24 GMT):
in case of kubernetes https://github.com/APGGroeiFabriek/PIVT/blob/master/README.md#backup-restore

soumyanayak (Mon, 02 Sep 2019 06:03:31 GMT):
What are the container conflicts you are facing?

sanket1211 (Mon, 02 Sep 2019 08:01:45 GMT):
solved it...

idiota101 (Mon, 02 Sep 2019 09:20:53 GMT):
Has joined the channel.

idiota101 (Mon, 02 Sep 2019 09:20:54 GMT):
hi

idiota101 (Mon, 02 Sep 2019 09:24:26 GMT):
hi, I am getting Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

idiota101 (Mon, 02 Sep 2019 09:24:26 GMT):
hi, I am getting Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== on ./byfn.sh up can anyone plz help me with this? Why I am getting this error

someguy (Mon, 02 Sep 2019 10:21:06 GMT):
Hello, im trying to invoke a function in smartcontract, but every time i try to invoke with the following json schema {"Args":["initTier","10","700","others_level"]}, it gives me an error like, (args | [ ]).map is not a function

someguy (Mon, 02 Sep 2019 10:21:06 GMT):
Hello, im trying to invoke a function in smartcontract, but every time i try to invoke with the following json schema {"Args":["initTier","10","700","others_level"]}, it gives me an error like, (args | | [ ]).map is not a function

GioG12 (Mon, 02 Sep 2019 10:21:45 GMT):
Hello, is there any guide how to implement authentication/authorization with fabric/sdk?

greg2git (Mon, 02 Sep 2019 11:18:14 GMT):
@someguy did you try parsing/validating your json file outside of your smart contract?

dachrillz (Mon, 02 Sep 2019 11:47:12 GMT):
Hello all! Is there any functionality to search for assets in chaincode? That is, do i have to know the name exactly when i use stub.GetState("someAsset") or is there some mechanism that somewhat efficiently could find assets using some more loose string? Many thanks!

AnilSingh (Mon, 02 Sep 2019 11:57:50 GMT):
you can do either by Key (representing the asset) or you can also do the same by attributes from values using rich queries.

dachrillz (Mon, 02 Sep 2019 11:59:21 GMT):
ok! Thanks for the response :)

Jelle.Diet (Mon, 02 Sep 2019 13:12:17 GMT):
dont forget you have to be using couchdb for rich querying

mfaisaltariq (Mon, 02 Sep 2019 14:08:50 GMT):
Hi everyone, I have created a softhsm enabled fabric network. Now that I DON'T have the admin-cert and admin-private-key in a file, how can I connect with the network from a dlt-adapter without them or is there a work around this problem. NOTE: The user is getting registered and I'm getting back certs and keys for the user. I have verified the user from the CA-DB but when I send in a request to install chaincode it gives the following error as I'm giving it a dummy cert and key form some other network for testing. 2019-09-02 07:57:54.956 UTC [cauthdsl] deduplicate -> ERRO e94 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 Commonly we define the path of private-key and cert in the connection profile like this.

mfaisaltariq (Mon, 02 Sep 2019 14:08:50 GMT):
**Connecting DLT Adapter with an HSM Enabled Network** Hi everyone, I have created a softhsm enabled fabric network. Now that I DON'T have the admin-cert and admin-private-key in a file, how can I connect with the network from a dlt-adapter without them or is there a work around this problem. NOTE: The user is getting registered and I'm getting back certs and keys for the user. I have verified the user from the CA-DB but when I send in a request to install chaincode it gives the following error as I'm giving it a dummy cert and key form some other network for testing. ``` 2019-09-02 07:57:54.956 UTC [cauthdsl] deduplicate -> ERRO e94 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 ``` Commonly we define the path of private-key and cert in the connection profile like this.

mfaisaltariq (Mon, 02 Sep 2019 14:08:50 GMT):
**Connecting DLT Adapter with an HSM Enabled Network** Hi everyone, I have created a softhsm enabled fabric network. Now that I DON'T have the admin-cert and admin-private-key in a file, how can I connect with the network from a dlt-adapter without them or is there a work around this problem. NOTE: The user is getting registered and I'm getting back certs and keys for the user. I have verified the user from the CA-DB but when I send in a request to install chaincode it gives the following error as I'm giving it a dummy cert and key form some other network for testing. ``` 2019-09-02 07:57:54.956 UTC [cauthdsl] deduplicate -> ERRO e94 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 ``` Commonly we define the path of private-key and cert in the connection profile like this. ``` org1: mspid: org1MSP peers: - peer0.org1.projectaber.com certificateAuthorities: - ca-org1 adminPrivateKey: path: ../network/dummy-key/8324ca3d120673c05fe0201f7f9cea5bb8d5e9cc396591d0023572934378a04b_sk signedCert: path: ../network/dummy-cert.pem ```

mfaisaltariq (Mon, 02 Sep 2019 14:08:50 GMT):
**Connecting DLT Adapter with an HSM Enabled Network** Hi everyone, I have created a softhsm enabled fabric network. Now that I DON'T have the admin-cert and admin-private-key in a file, how can I connect with the network from a dlt-adapter without them or is there a work around this problem. NOTE: The user is getting registered and I'm getting back certs and keys for the user. I have verified the user from the CA-DB but when I send in a request to install chaincode it gives the following error as I'm giving it a dummy cert and key form some other network for testing. ``` 2019-09-02 07:57:54.956 UTC [cauthdsl] deduplicate -> ERRO e94 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0 ``` Commonly we define the path of private-key and cert in the connection profile like this. ``` org1: mspid: org1MSP peers: - peer0.org1.projectaber.com certificateAuthorities: - ca-org1 adminPrivateKey: path: ../network/dummy-key/8324ca3d120673c05fe0201f7f9cea5bb8d5e9cc396591d0023572934378a04b_sk signedCert: path: ../network/dummy-cert.pem ```

someguy (Mon, 02 Sep 2019 15:13:17 GMT):
Hello can anyone tell me why im having this error when trying to execute a chaincode "Failed to connect before the deadline URL:grpcs://peer1.blockchain-03.example.com:7051" ? thanks

someguy (Mon, 02 Sep 2019 15:14:31 GMT):
Can anyone tell me what am i doing wrong when i try to execute a chaincode and get this error? "Failed to connect before the deadline grpcs://peer1.blockchain-03.example.com:7051" thanks

ItaloCarrasco (Mon, 02 Sep 2019 17:09:23 GMT):
can anyone help me with peer node rollback, it says that ledgerID doesnt exist, i am using the id listed in peer channel list

sarapaul (Mon, 02 Sep 2019 20:50:14 GMT):
Please could you help to resolve the following issue in fabric-samples francois@francois-Inspiron-N5110:~/fabric-samples/fabcar$ node query.js Store path:/home/francois/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence 2019-08-31T01:08:35.197Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://127.0.0.1:7051 Query has completed, checking results error from query = { Error: Failed to connect before the deadline URL:grpc://127.0.0.1:7051 at checkState (/home/francois/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:835:16) connectFailed: true }

liujianglin1 (Tue, 03 Sep 2019 01:47:21 GMT):
hello.when i use "./byfn.sh up -l java"meet this question

alokkv (Tue, 03 Sep 2019 06:10:53 GMT):

Clipboard - September 3, 2019 11:40 AM

alokkv (Tue, 03 Sep 2019 06:11:36 GMT):
hi friends, i have created a two orgs in two servers and created a channel between them.till now all transations went well, i can query my assets from both orgs.but when i look into the logs of peer, i find one gossip authentication failure.i am attaching the screen shot. can anyone please help why this error log logging in the peer containers.

alokkv (Tue, 03 Sep 2019 06:11:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=d5bkhPCgAbZZEYLWj)
Clipboard - September 3, 2019 11:41 AM

cagirtas (Tue, 03 Sep 2019 08:25:18 GMT):
Has joined the channel.

abel23 (Tue, 03 Sep 2019 09:22:14 GMT):
Hey guys! Do you guys have any suggestions on developing apps on the hyperledger fabric network? Which SDK you use and the GUI? Just curious though: Can a chaincode written in golang be called from Node SDK?

someguy (Tue, 03 Sep 2019 09:28:52 GMT):
Yes, golang chaincode can be called from a Node SDK, thats how i am doing it

abel23 (Tue, 03 Sep 2019 09:35:18 GMT):
@someguy okay cool! Also i have another doubt! If a chaincode require endorsement from both orgs. The invoke function requires the root certs of the orgs. How will the certificates be made available?

AnkurDaharwal (Tue, 03 Sep 2019 09:35:57 GMT):
Has joined the channel.

someguy (Tue, 03 Sep 2019 09:38:09 GMT):
i dont think it requires the root certs from the orgs, i think it only needs the MSP certs. Those are within every peer that belongs to a channel. But dont quote me on this, because im still newbie in here.

someguy (Tue, 03 Sep 2019 09:38:54 GMT):
Btw, check this already made framework i think it suits your needs. https://www.altoros.com/blog/deploying-a-multi-node-hyperledger-fabric-network-in-5-steps/

abel23 (Tue, 03 Sep 2019 09:39:02 GMT):
OK!

abel23 (Tue, 03 Sep 2019 09:42:38 GMT):
If a chaincode require endorsement from both orgs. The invoke function requires the root certs of the orgs. How will the certificates be made available? In the BYFN tutorial, the invoke cmd involves the ca.crt of peer from both orgs. I'm talking from the application point of view?

abel23 (Tue, 03 Sep 2019 09:47:24 GMT):
@someguy The MSP is the CA of an org right

IamArtur612 (Tue, 03 Sep 2019 09:51:00 GMT):
Has joined the channel.

someguy (Tue, 03 Sep 2019 09:51:15 GMT):
thats a good question xD

someguy (Tue, 03 Sep 2019 09:51:21 GMT):
let me investigate

someguy (Tue, 03 Sep 2019 09:51:38 GMT):
if you figure it out let me know too ahah

someguy (Tue, 03 Sep 2019 09:53:16 GMT):
but i think your are right. MSP is a way to abstract all the certs into a identity, so in a way i guess you are right

someguy (Tue, 03 Sep 2019 09:53:24 GMT):
thats what i can understand from the docs

IamArtur612 (Tue, 03 Sep 2019 09:56:19 GMT):
Hej guys. I´m pretty new to Hyperledger Fabric development. The network is running right now and i want to use the golang sdk to basically send some data to the ledger. Can someone recommend a good example?

abel23 (Tue, 03 Sep 2019 10:09:48 GMT):
https://github.com/hyperledger/fabric-sdk-go . I checked this, but i don't think it's ready to be used. I think it's better to use node sdk since thats already available and official doc on app development is given in node js. You might get more help in the case of node. Just an assumption. Maybe by end of this year, golang SDK will be ready for deployment. NOw it's just a release to experiment on i guess

IamArtur612 (Tue, 03 Sep 2019 10:23:50 GMT):
Is it right that the Rest Api is not supported anymore?

abel23 (Tue, 03 Sep 2019 10:51:25 GMT):
I don't have an answer to that?

AnilSingh (Tue, 03 Sep 2019 10:59:36 GMT):
"Maybe by end of this year, golang SDK will be ready for deployment. NOw it's just a release to experiment on i guess" ===> where do you see this ? nothing like that. Also, "https://github.com/hyperledger/fabric-sdk-go . I checked this, but i don't think it's ready to be used" ===> why do you think it's not ready to be used

abel23 (Tue, 03 Sep 2019 11:03:50 GMT):
Because, in the official doc, they have said that "go and python SDK are being developed, users are free to try it out" The tutorials on app dev is already available on node js but not on go. Go will be available soon, this is what is said on the official doc.

simran (Tue, 03 Sep 2019 11:08:55 GMT):
hello guys, when i creating org 4 in the existing first network of fabric in the i have run the peer update command for the sign and submit request `peer channel update -f org4_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA`

simran (Tue, 03 Sep 2019 11:08:55 GMT):
hello guys, when i creating org 4 in the existing first network of fabric in the i have run the peer update command for the sign and submit request `peer channel update -f org4_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA` AND I GOT THIS ERROR:-2019-09-03 10:59:32.358 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied ``

IamArtur612 (Tue, 03 Sep 2019 11:38:24 GMT):
So do you guys maybe have a good example for me?

abel23 (Tue, 03 Sep 2019 11:41:42 GMT):
Fo Go, check the link. In the readme section, thy've given some.

abel23 (Tue, 03 Sep 2019 11:42:20 GMT):
For node, you'll have more support. Check it out in the official docs

abel23 (Tue, 03 Sep 2019 11:42:31 GMT):
https://fabric-sdk-node.github.io/tutorial-app-dev-env-setup.html

abel23 (Tue, 03 Sep 2019 11:42:36 GMT):
This is for node

sanket1211 (Tue, 03 Sep 2019 12:36:32 GMT):
which fabric version are u suing?

simran (Tue, 03 Sep 2019 12:36:58 GMT):
version 1.4

sanket1211 (Tue, 03 Sep 2019 12:37:17 GMT):
use 1.4.1 or 1.4.2

simran (Tue, 03 Sep 2019 12:38:01 GMT):
1.4.2

simran (Tue, 03 Sep 2019 12:38:14 GMT):
yes sanket i am using 1.4.2

sanket1211 (Tue, 03 Sep 2019 12:38:51 GMT):
use orderers env variables and then try to sign

simran (Tue, 03 Sep 2019 12:39:08 GMT):
yes i have used this method

simran (Tue, 03 Sep 2019 12:39:19 GMT):
but its not working

sanket1211 (Tue, 03 Sep 2019 12:39:32 GMT):
can u try on 1.4.1

simran (Tue, 03 Sep 2019 12:39:56 GMT):
actually no

simran (Tue, 03 Sep 2019 12:40:08 GMT):
have u added org in network

sanket1211 (Tue, 03 Sep 2019 12:40:13 GMT):
yes'

simran (Tue, 03 Sep 2019 12:40:16 GMT):
like org4,5

sanket1211 (Tue, 03 Sep 2019 12:40:22 GMT):
yup

simran (Tue, 03 Sep 2019 12:40:29 GMT):
which version have u used

sanket1211 (Tue, 03 Sep 2019 12:40:46 GMT):
1.4.1 and 1.4.2

sanket1211 (Tue, 03 Sep 2019 12:40:54 GMT):
doesnt work on 1.4.3

simran (Tue, 03 Sep 2019 12:41:10 GMT):
like adding org3 in network same as org 4 manually

sanket1211 (Tue, 03 Sep 2019 12:41:20 GMT):
yes

simran (Tue, 03 Sep 2019 12:41:36 GMT):
yeah actually me also following same

alokkv (Tue, 03 Sep 2019 13:57:13 GMT):
can anyone please help

CT123 (Tue, 03 Sep 2019 15:27:31 GMT):
When generating the genesis block for BYFN *RAFT* ordering service, shouldn't the orderer type = etcdraft and NOT solo? See below: ``` ../bin/configtxgen -profile SampleMultiNodeEtcdRaft -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block 2019-09-03 11:19:36.412 EDT [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520 2019-09-03 11:19:36.475 EDT [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml *2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: solo* 2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 006 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 007 Generating genesis block 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 008 Writing genesis block ```

CT123 (Tue, 03 Sep 2019 15:27:31 GMT):
When generating the genesis block for BYFN *RAFT* ordering service, shouldn't the orderer type = etcdraft and NOT solo? See below - specifically at INFO 005: ``` ../bin/configtxgen -profile SampleMultiNodeEtcdRaft -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block 2019-09-03 11:19:36.412 EDT [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520 2019-09-03 11:19:36.475 EDT [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml *2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: solo* 2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 006 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 007 Generating genesis block 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 008 Writing genesis block ```

CT123 (Tue, 03 Sep 2019 15:27:31 GMT):
When generating the genesis block for BYFN *RAFT* ordering service, shouldn't the orderer type = etcdraft and NOT solo? See below - specifically at INFO 005: ``` ../bin/configtxgen -profile SampleMultiNodeEtcdRaft -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block 2019-09-03 11:19:36.412 EDT [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2019-09-03 11:19:36.474 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520 2019-09-03 11:19:36.475 EDT [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml 2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: solo 2019-09-03 11:19:36.531 EDT [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 006 Loaded configuration: /src/github.com/hyperledger/fabric-samples/first-network/configtx.yaml 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 007 Generating genesis block 2019-09-03 11:19:36.539 EDT [common.tools.configtxgen] doOutputBlock -> INFO 008 Writing genesis block ```

someguy (Tue, 03 Sep 2019 16:07:22 GMT):
hello guys, so i have my blockchain network working, i execute my chaincode. I have a channel between 2 VMs, each with 2 peers. I go on machine A and try to query machine B peers, which i think i should be able to do since they are in the same channel, but it gives me an error saying that i cannot query foreign peers. Does anyone know why this happens?

RameshT (Tue, 03 Sep 2019 17:53:27 GMT):
Hello, why do you have to query on Peer B when both Peers A & B are on the same Channel and have same ledger copies? Also, Peers are governed by their Local Configuration files for access permissions.

RameshT (Tue, 03 Sep 2019 17:53:27 GMT):
Hello, why do you have to query on Peer B when both Peers A & B are on the same Channel and have same ledger copies? Both of the ledgers have same data. You can perform Querying chaincode on the same machine. Also, Peers are governed by their Local Configuration files for access permissions.

someguy (Tue, 03 Sep 2019 17:59:17 GMT):
Yeah man. I am so tired i was not even thinking

someguy (Tue, 03 Sep 2019 18:00:18 GMT):
but, btw i got another problem. when i query this error happens. "GET_QUERY_RESULT failed: transaction ID: 603ba9b3451dc57b95d7b4fa345a755670c3bfd54f4694cf602db783b8bb5a51: invalid character 'a' looking for beginning of value"

Shirifto (Tue, 03 Sep 2019 18:05:54 GMT):
Has joined the channel.

Shirifto (Tue, 03 Sep 2019 18:05:57 GMT):
Hey guys, Can someone confirm if one peer/orderer represents one physical system or can there be multiple peers/orderers running on the same system?

RameshT (Tue, 03 Sep 2019 18:13:01 GMT):
Hello, a Peer (1 machine) constitutes of 1 Ledger + 1 World State. An Organisation can have multiple peers on the same channel. An Organization can run multiple Orderers (machines) synced with Kafka, to withstand Crash Tolerance.

Shirifto (Tue, 03 Sep 2019 18:22:31 GMT):
Thank you very much.:smile:

RameshT (Tue, 03 Sep 2019 18:25:12 GMT):
:thumbsup:

juaiglesias (Tue, 03 Sep 2019 19:09:32 GMT):
Hello folks!!! Do you know if there is any documentation on how to create a login system for the users? (using username and pwd or private keys, idc). I am using NodeJS to create the backend server. Thx!

sPadawan (Wed, 04 Sep 2019 02:33:54 GMT):
I create two Orderers (Orderer1 and Orderer2). I want to connect to Orderer2 when connecting to Orderer1 fails. The Connection Profile lists two Orderers, but the Node-SDK only use the first Orderer(Orderer1). ```yaml channels: mychannel: orderers: - orderer1.example.com - orderer2.example.com ``` I can connect to Orderer2 as follows. ```yaml channels: mychannel: orderers: - orderer2.example.com - orderer1.example.com ``` **How can I implement automatic connection to Orderer2 when connection to Orderer1 fails?**

biligunb (Wed, 04 Sep 2019 03:41:46 GMT):
Hi guys I am trying to use FabricNetwork module submitTransaction. And I have 1 question. ``` async submitTransaction(name, ...args) { return this.createTransaction(name).submit(...args); } ``` What happens if transaction endorsement fails or orderer fails? Is there any retry method implemented?

sPadawan (Wed, 04 Sep 2019 06:01:51 GMT):
How to retry differs depending on whether endorsement fails or orderer fails. In the case of endorsement fails, it must be re-executed from channel.sendTransactionProposal.

davidkel (Wed, 04 Sep 2019 06:12:51 GMT):
The node.js implementation provides support for a variety of high availability scenarios as well as provides the ability for the developer to plug in their own capabilities. I would suggest raising a jira ( https://jira.hyperledger.org ) on the FABN project to get this clarified in the documentation as it is not obvious.

razasikander (Wed, 04 Sep 2019 06:19:20 GMT):
hi guys i want to use the certifcates generated by openssl for balance-transfer network what steps are required to do this im unable to solve understand like which crt will be of root and which to be replaced and where for an organization or peer

simran (Wed, 04 Sep 2019 07:39:37 GMT):
hello guys how i can switch the hyperledger fabric version image from` 1.4.3 to 1.4.2`

simran (Wed, 04 Sep 2019 07:40:25 GMT):
or i have to clone the hyperleldger fabric code version of 1.4.2

madiazp (Wed, 04 Sep 2019 08:07:09 GMT):
yea, you can do the git clon form master and then do the checkout to the tag 1.4.2, there is a bootstrap script that help you with requirements and docker images

madiazp (Wed, 04 Sep 2019 08:08:09 GMT):
https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh

biligunb (Wed, 04 Sep 2019 08:21:28 GMT):
Thank you @davidkel . But `channel.sendTransactionProposal.` is from different module.

simran (Wed, 04 Sep 2019 08:21:53 GMT):
thanks @madiazp it means i have to clone the new code of fabric sample

davidkel (Wed, 04 Sep 2019 08:23:04 GMT):
@biligunb Sorry that reply about sendTransactionProposal wasn't me. I recommend you raise a jira asking to document the High Availability capabilities of the fabric-network node implementation which is what you are using

biligunb (Wed, 04 Sep 2019 08:27:12 GMT):
@davidkel Oh my bad... (bow) It seems that retry logic should be handled by the app itself. https://jira.hyperledger.org/browse/FABN-1196?jql=project%20%3D%20FABN%20AND%20text%20~%20%22submitTransaction%22%20AND%20created%20%3E%3D%20-52w

biligunb (Wed, 04 Sep 2019 08:28:53 GMT):
@sPadawan FabricNetwork vs FabricClient which are 2 different modules. I was wondering about the high level wrapped `submitTransaction` but it seems it does not support any retry logic

davidkel (Wed, 04 Sep 2019 08:28:59 GMT):
It depends on what type of retry you are referring to. Things like MVCC_READ_CONFLICT currently has to be handled by the app with a retry, but other things such as peers down, orderers unavailable are covered by fabric-network

biligunb (Wed, 04 Sep 2019 08:29:55 GMT):
@davidkel cases would be the following peer down (endorsement fails) orderer down (not committed)

davidkel (Wed, 04 Sep 2019 08:31:30 GMT):
In that case there are facilities in place in fabric-network to assist. I would raise a jira to get it documented about exactly how it does help and what other capabilities there are for you to extend the built in features

biligunb (Wed, 04 Sep 2019 08:36:35 GMT):
Thanks again. All I could find was FabricNetwork uses FabricClient inside. But looking over from https://github.com/hyperledger/fabric-sdk-node/blob/release-1.4/fabric-network/lib/contract.js#L155 i could not see any retry logic

monika_gs (Wed, 04 Sep 2019 08:49:53 GMT):
Has joined the channel.

monika_gs (Wed, 04 Sep 2019 08:49:56 GMT):
Hi team, Can we use fabric-java-sdk or fabric-gateway-sdk to build android app?

davidkel (Wed, 04 Sep 2019 09:45:29 GMT):
The retry logic is mainly in fabric-client, some of it is in fabric-network but you won't find it in the contract or transaction class

simran (Wed, 04 Sep 2019 11:40:49 GMT):
hello team ,

simran (Wed, 04 Sep 2019 11:40:49 GMT):
hello team , when i create docker-compose-org4-cli.yaml file manualy as same as of docker-compose-org3-cli.yaml file as changed port number and org name

simran (Wed, 04 Sep 2019 11:40:49 GMT):
when i run the command `docker-compose -f docker-compose-org4.yaml up -d` `ERROR: Service 'Org4cli' depends on service 'peer0.org4.example.com' which is undefined.`

someguy (Wed, 04 Sep 2019 12:13:03 GMT):
Hello, does anyone in here have some experience to work with PGP in golang for a chaincode?

someguy (Wed, 04 Sep 2019 12:13:03 GMT):
Hello, does anyone in here have some experience to work with PGP keys in golang for a chaincode?

ahmad-raza (Wed, 04 Sep 2019 12:59:18 GMT):
Hi all, is anyone have the experience of deploying hyperledger fabric on Kuberentes cluster with tls enabled?

marinkovicvlado (Wed, 04 Sep 2019 13:24:19 GMT):
hi all, is there a way to un-join peers from the channel?

Jelle.Diet (Wed, 04 Sep 2019 13:31:11 GMT):
is it possible to use peer chaincode install on a .cds file?

Shubham-koli (Wed, 04 Sep 2019 14:07:29 GMT):

Screenshot from 2019-09-04 19-34-26.png

Shubham-koli (Wed, 04 Sep 2019 14:08:26 GMT):
I'm getting an error while starting fabric CA. it is showing can not find private key .

Shubham-koli (Wed, 04 Sep 2019 14:09:42 GMT):

Screenshot from 2019-09-04 19-39-07.png

Shubham-koli (Wed, 04 Sep 2019 14:10:16 GMT):
what am I doing wrong?

Shubham-koli (Wed, 04 Sep 2019 14:15:26 GMT):

Screenshot from 2019-09-04 19-44-37.png

ConnorAbla (Wed, 04 Sep 2019 14:50:46 GMT):
Has joined the channel.

ConnorAbla (Wed, 04 Sep 2019 14:50:47 GMT):
Hey guys, I'm just now getting into HL Fabric, and have some questions.

ConnorAbla (Wed, 04 Sep 2019 14:52:55 GMT):
Why do we have the chaincode completely divorced from the rest of the application? Much of the content I've been able to find on HL:F hasn't really delved into the chaincode (Or why we call it chaincode), and just seems to assume its there.

sstone1 (Wed, 04 Sep 2019 15:33:49 GMT):
have you seen the developing applications section?

sstone1 (Wed, 04 Sep 2019 15:34:46 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/smartcontract.html

ConnorAbla (Wed, 04 Sep 2019 15:58:39 GMT):
I'll take a look at that, Thanks!

delao (Wed, 04 Sep 2019 17:42:36 GMT):
By the looks of the the log, it seams that this certificate and this key are not a pair. could you check whether the public key on both are the same? You can do this by running `openssl x509 -in -noout -text` and `openssl pkey -in -noout -text`

someguy (Wed, 04 Sep 2019 18:32:37 GMT):
Hello guys, doesn anyone know how i can use PGP keys in a golang chaincode?

someguy (Wed, 04 Sep 2019 18:32:37 GMT):
Hello guys, doesn anyone know how i can use PGP keys in a golang chaincode? Simple things, like submitting PGP public from one individual into the ledger

someguy (Wed, 04 Sep 2019 18:32:37 GMT):
Hello guys, doesn anyone know how i can use PGP keys in a golang chaincode? Simple things, like submitting PGP public key from one individual into the ledger

ejkul (Wed, 04 Sep 2019 20:43:27 GMT):
Has joined the channel.

medikent (Wed, 04 Sep 2019 23:32:22 GMT):
Hello folks!!! Do you know if there is any documentation on how to create a login system for the users? (using username and pwd or private k

medikent (Thu, 05 Sep 2019 01:09:53 GMT):
In order to have a unit test suite with an acceptable level of coverage we need to be able to mock CouchDB queries. Currently there appears to be no good way to do this. What is the best way to do unit tests for smart contract methods that use CouchDB queries, specifically the *GetQueryResult* Chaincode interface method?

generak (Thu, 05 Sep 2019 03:28:20 GMT):
https://github.com/blockmusic/blockmusic-chaincode/blob/master/test/blockmusic-contract.js this is a good example, though it's using the node SDK. Essentially you'd mock the iterator response from get query result, then make it resolve with the mocked iterator

ShubhneetChawla (Thu, 05 Sep 2019 05:27:03 GMT):
Hi Developers , can anyone guide me how to implement hyperledger in multinode. Any links would also be appreciable Thanks in Advance

simran (Thu, 05 Sep 2019 05:31:55 GMT):
hello team can anyone guide me how i add the org 4 in the existing network i have completed at org 3 in the network

ShubhneetChawla (Thu, 05 Sep 2019 05:32:45 GMT):
which sample are u using for reference

simran (Thu, 05 Sep 2019 05:33:02 GMT):
fabric-sample

simran (Thu, 05 Sep 2019 05:33:07 GMT):
version 1.4.2

simran (Thu, 05 Sep 2019 05:33:42 GMT):
i have followed the same as org3 for org4 but me geeting an error

simran (Thu, 05 Sep 2019 05:33:50 GMT):
when i update the peers in org 4

ShubhneetChawla (Thu, 05 Sep 2019 05:33:52 GMT):
you need to modify configtx.yaml crypto-config docker files network-config regenerate the certificates

simran (Thu, 05 Sep 2019 05:34:00 GMT):
yes

simran (Thu, 05 Sep 2019 05:34:07 GMT):
same i had done this

ShubhneetChawla (Thu, 05 Sep 2019 05:34:14 GMT):
what is the error

simran (Thu, 05 Sep 2019 05:34:22 GMT):
org4-artifatc folder

simran (Thu, 05 Sep 2019 05:35:28 GMT):
root@2b66286d905c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel update -f org4_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA 2019-09-03 10:21:18.399 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied

ShubhneetChawla (Thu, 05 Sep 2019 05:36:48 GMT):
your /var/hyperledger is not being deletd i guess , remove it first and it would work fine

simran (Thu, 05 Sep 2019 05:38:30 GMT):
means i am not get it

simran (Thu, 05 Sep 2019 05:38:36 GMT):
can you pls brief it out

simran (Thu, 05 Sep 2019 05:38:47 GMT):
means i am not get it can you pls brief it out

ShubhneetChawla (Thu, 05 Sep 2019 05:39:45 GMT):
this error comes when in docker file u add /var.hyperledger for data persist ,,which means this channel is already created it wont allow u to create again

ShubhneetChawla (Thu, 05 Sep 2019 05:40:05 GMT):
you need to remove /var/hyperledger from your local

simran (Thu, 05 Sep 2019 05:40:30 GMT):
okh i am deleting it

simran (Thu, 05 Sep 2019 05:40:44 GMT):
then again create the org4 in the network

simran (Thu, 05 Sep 2019 05:40:47 GMT):
right???

ShubhneetChawla (Thu, 05 Sep 2019 05:42:13 GMT):
yes

simran (Thu, 05 Sep 2019 05:43:33 GMT):
in var folder of local there is no file contain of hyperledger

mrpuri (Thu, 05 Sep 2019 05:44:13 GMT):
Has joined the channel.

mrpuri (Thu, 05 Sep 2019 05:44:14 GMT):
enrollAdminconnect to ca

ShubhneetChawla (Thu, 05 Sep 2019 05:45:43 GMT):
put down your complete network and restart

ShubhneetChawla (Thu, 05 Sep 2019 05:45:49 GMT):
delete all the keys

simran (Thu, 05 Sep 2019 05:46:07 GMT):
okh shubham

simran (Thu, 05 Sep 2019 05:46:13 GMT):
hope for the best

ShubhneetChawla (Thu, 05 Sep 2019 05:46:42 GMT):
shubhneet*

simran (Thu, 05 Sep 2019 05:46:59 GMT):
yeah :)

simran (Thu, 05 Sep 2019 05:47:17 GMT):
have u add the new org in existing network ???

ShubhneetChawla (Thu, 05 Sep 2019 05:47:23 GMT):
yess

simran (Thu, 05 Sep 2019 05:47:33 GMT):
which script have u referred ??

ShubhneetChawla (Thu, 05 Sep 2019 05:49:20 GMT):
created my own

simran (Thu, 05 Sep 2019 05:50:05 GMT):
ohh okh

simran (Thu, 05 Sep 2019 05:50:16 GMT):
how ???/

simran (Thu, 05 Sep 2019 05:50:37 GMT):
means u have created your own channel ???

ShubhneetChawla (Thu, 05 Sep 2019 05:50:45 GMT):
yes

simran (Thu, 05 Sep 2019 05:50:55 GMT):
nice :)

simran (Thu, 05 Sep 2019 05:51:29 GMT):
yeah i have just started to learn fabric

ShubhneetChawla (Thu, 05 Sep 2019 05:51:52 GMT):
good now we have a good community support

ShubhneetChawla (Thu, 05 Sep 2019 05:57:31 GMT):
Hi Developers , can anyone guide me how to implement hyperledger in multinode. Any links would also be appreciable Thanks in Advance

Shubham-koli (Thu, 05 Sep 2019 06:02:53 GMT):
okay the error was due to I forgot to add the private key in --ca.keyfile in command. resolved the issue thanks

Shubham-koli (Thu, 05 Sep 2019 06:04:00 GMT):

Screenshot from 2019-09-05 11-33-14.png

Shubham-koli (Thu, 05 Sep 2019 06:04:28 GMT):
*Error* `Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority`

Shubham-koli (Thu, 05 Sep 2019 06:04:28 GMT):
Orderer goes into panic mode *Error* `Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority`

Shubham-koli (Thu, 05 Sep 2019 06:04:56 GMT):
Then orderer goes into panic mode: `Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority`

Shubham-koli (Thu, 05 Sep 2019 06:07:31 GMT):
I've tried creating fresh genesis block as I was under impression that this error was due to invalid Genisys block.

Shubham-koli (Thu, 05 Sep 2019 06:07:51 GMT):

Screenshot from 2019-09-05 11-36-20.png

soumyanayak (Thu, 05 Sep 2019 06:33:36 GMT):
i am getting the below error configtxlator: error: Error decoding: message of type %!s() unknown the command i executed was - configtxlator proto_decode --input config_block.pb --type common.block | jq .data.data[0].payload.data.config > config.json

narendranathreddy (Thu, 05 Sep 2019 06:36:13 GMT):
@soumyanayak Seems like you are updating the channel

narendranathreddy (Thu, 05 Sep 2019 06:36:13 GMT):
@soumyanayak Seems like you are updating the channel ?

narendranathreddy (Thu, 05 Sep 2019 06:36:42 GMT):
soumyanayak Seems like you are updating the channel ?

soumyanayak (Thu, 05 Sep 2019 06:38:24 GMT):
Yes i am trying the process of channel update

narendranathreddy (Thu, 05 Sep 2019 06:41:26 GMT):
share me error occurred at what step

soumyanayak (Thu, 05 Sep 2019 06:45:54 GMT):
*First step -- Fetch of config block* peer channel fetch config config_block.pb -c legaldescriptionchannel --orderer $ORDERER_ADDRESS --tls --cafile $CORE_PEER_TLS_ROOTCERT_FILE --clientauth --keyfile $CORE_PEER_TLS_CLIENTKEY_FILE --certfile $CORE_PEER_TLS_CLIENTCERT_FILE *Second step ---* configtxlator proto_decode --input ./config_block.pb --type common.block | jq .data.data[0].payload.data.config > config.json

soumyanayak (Thu, 05 Sep 2019 06:46:11 GMT):

config_block.zip

soumyanayak (Thu, 05 Sep 2019 06:53:59 GMT):
its resolved

soumyanayak (Thu, 05 Sep 2019 06:54:32 GMT):
it has to be common.Block instead of common.block

Utsav_Solanki (Thu, 05 Sep 2019 07:24:19 GMT):
my all orgs peer1 containers and all couchDB contaners are getting exited (0) with out any error in 7 days after HLF NW up, i am using hyperledger fabric 1.4.2. peer1 exited container logs are 2019-08-30 13:19:01.474 UTC [ledger] CommitWithPvtData -> INFO 83f [newchnl] Committed block [663] with 1 transaction(s) in 80ms (state_validation=7ms block_and_pvtdata_commit=45ms state_commit=24ms) commitHash=[a684e2a781eefdsfdffsd76d] 2019-09-04 09:45:50.270 UTC [nodeCmd] handleSignals -> INFO 840 Received signal: 15 (terminated) 2019-09-04 09:45:50.270 UTC [gossip.service] Stop -> INFO 841 Stopping chain newchnl 2019-09-04 09:45:50.270 UTC [gossip.gossip] Stop -> INFO 842 Stopping gossip 2019-09-04 09:45:50.270 UTC [gossip.discovery] Stop -> INFO 843 Stopping 2019-09-04 09:45:50.270 UTC [gossip.discovery] Stop -> INFO 844 Stopped 2019-09-04 09:45:50.270 UTC [gossip.comm] Stop -> INFO 845 Stopping 2019-09-04 09:45:50.270 UTC [gossip.comm] Stop -> INFO 846 Stopped , also you can see the difference of date change in logs any solution, Thank you

narendranathreddy (Thu, 05 Sep 2019 07:39:56 GMT):
great

simran (Thu, 05 Sep 2019 08:54:35 GMT):
hello `peer0.org4.example.com | 2019-09-05 08:52:06.567 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory` when i run the command `docker-compose -f docker-compose-org4.yaml up `

jon_s (Thu, 05 Sep 2019 09:16:52 GMT):
How to make a configurable fabric network

jon_s (Thu, 05 Sep 2019 09:17:17 GMT):
Is it better to use docker or kubernetes or binaries

someguy (Thu, 05 Sep 2019 09:28:03 GMT):
Hello guys, i have a project as a proof of concept working, but im using orederer type: solo, my question is. If I wanted to transition to a raft orderer type how much it time wit would take? Because i must deliver project day 11 of september

someguy (Thu, 05 Sep 2019 09:29:52 GMT):
i would go Docker. But that's me.

superafro12 (Thu, 05 Sep 2019 09:42:11 GMT):
Hi, I know there's a method to fetch all the history for a specific key (getHistoryForKey). But are there any other ways to get the history of the transactions? Fetching of whole blocks or similar?

generak (Thu, 05 Sep 2019 09:54:11 GMT):
you could use gethistoryforkey and then get the transaction ID for the latest change from the returned iterator, then use Channel.queryBlockByTxID https://fabric-sdk-node.github.io/Channel.html to get the block containing that transaction

generak (Thu, 05 Sep 2019 09:54:39 GMT):
alternatively, the Channel class provides several other query methods

madiazp (Thu, 05 Sep 2019 09:54:53 GMT):
maybe is a overkill but it can help you, https://github.com/hyperledger/blockchain-explorer

generak (Thu, 05 Sep 2019 09:55:51 GMT):

Clipboard - September 5, 2019 5:55 PM

generak (Thu, 05 Sep 2019 09:55:54 GMT):
querying block data can result in some pretty massive strings

superafro12 (Thu, 05 Sep 2019 09:57:30 GMT):
Great, exactly what I needed - Thanks!

kyujeong (Thu, 05 Sep 2019 10:57:05 GMT):
Has joined the channel.

kyujeong (Thu, 05 Sep 2019 10:57:06 GMT):
Hello, everyone. I'm using fabric version 1.2. Certificate was generated using cryptogen. Your certificate has expired and needs to be renewed or re-registered. Please let me know what I should do.

kyujeong (Thu, 05 Sep 2019 10:57:06 GMT):
Hello, everyone. I'm using fabric version 1.2. Certificate was generated using cryptogen. The certificate has expired and I have to renew or register a new certificate. Please let me know what I should do.

daekp (Thu, 05 Sep 2019 10:59:48 GMT):
Has joined the channel.

Bentipe (Thu, 05 Sep 2019 12:11:41 GMT):
Hey guys, Is leveldb compressed by default on hyperledger fabric? or should be specify anywere?

Bentipe (Thu, 05 Sep 2019 12:11:41 GMT):
Hey guys, Is leveldb compressed by default on hyperledger fabric? or should be specify somewere?

mattmaru (Thu, 05 Sep 2019 12:57:32 GMT):
Hi guys. I would need your help/opinion. I need to performs 2 actions and i haven't find anything online ... 1) I would call a query without any keys but using my asset's fields . Is it possible? 2) Is possible get all keys about records stores in the ledger? Can you help me ?

mattmaru (Thu, 05 Sep 2019 12:58:26 GMT):
Can I use couch db index?

generak (Thu, 05 Sep 2019 13:39:16 GMT):
For 1), you can use getQueryResult in whichever language you're developing in (e.g. https://fabric-shim.github.io/release-1.4/fabric-shim.ChaincodeStub.html). It uses Mango queries (for examples, see here https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767). Not sure what you mean by 2) You should define CouchDB indexes for anything that will be queried often. Fabric uses a specific directory convention - https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_tutorial.html#create-an-index

mattmaru (Thu, 05 Sep 2019 13:45:30 GMT):
How can I add the metadata path inside the chaincode installation command ? An example is here : peer chaincode install -n mycc -v 1.0 -p "$CC_SRC_PATH" -l "$LANGUAGE" but how can iI add the metadata path?

mattmaru (Thu, 05 Sep 2019 13:45:42 GMT):
Thanks for your help

mattmaru (Thu, 05 Sep 2019 13:56:28 GMT):
(I spoke about couch db index metadata...)

nimaafraz (Thu, 05 Sep 2019 14:39:07 GMT):
Hey All, When using Raft, Do all the orderers have to be in the same host/machine?

delao (Thu, 05 Sep 2019 14:40:36 GMT):
I believe they do not, however they should be able to 'ping' each other

nimaafraz (Thu, 05 Sep 2019 14:43:43 GMT):
Thanks @delao, I have a Network up and running with 3 Raft orderers. It works perfectly fine when all three orderers are in the same host (and peers and CAs in seperate hosts). But once I put one of the orderers in a separate host, a third of transactions fail (I guess these are the TXs where the seperated orderer is chosen as leader?!)

generak (Thu, 05 Sep 2019 14:55:49 GMT):
The metadata path is under the CC_SRC_PATH, so it'll automatically be added

mattmaru (Thu, 05 Sep 2019 14:58:45 GMT):
Ok thanks. I have a nodejs server. app.get('/query-get', function (req, res) { var outReq = { chaincode: req.body.chaincode, method: req.body.method, args: req.body.args }; Fabric_Client.newDefaultKeyValueStore({ path: store_path }).then((state_store) => { cryptoSetup(state_store); return fabric_client.getUserContext('user1', true); }).then((user_from_store) => { checkEnrolledUser(user_from_store); const request = { chaincodeId: outReq.chaincode, fcn: outReq.method, args: outReq.args }; return channel.queryByChaincode(request); }).then((query_responses) => { getQueryResponse(query_responses); res.status(200).json({response: query_responses[0].toString()}); }).catch(function(err) { res.status(500).json({error: err.toString()}) }) }); How can I specify the index I want use for query?

mattmaru (Thu, 05 Sep 2019 14:59:23 GMT):
Where do I need to put in my requesT?

mattmaru (Thu, 05 Sep 2019 15:08:46 GMT):
Do I need to put in args , right?

someguy (Thu, 05 Sep 2019 16:07:34 GMT):
Hello guys, i have a project as a proof of concept working, but im using orederer type: solo, my question is. If I wanted to transition to a raft orderer type how much it time wit would take? Because i must deliver project day 11 of september

delao (Thu, 05 Sep 2019 16:11:24 GMT):
Do you have any log of it?

generak (Thu, 05 Sep 2019 17:22:17 GMT):
hey all, I'm testing out some policies through configtx. I'm having issues joining a channel and instantiating chaincode using the admin identity generated by cryptogen for the relevant organisation. even if I set all admin policy sections to Org1MSP.member, it'll work for creating and joining a channel, but instantiating chaincode fails with Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy anyone have any ideas?

garima (Thu, 05 Sep 2019 17:43:53 GMT):
Hi all, I am trying to run balance transfer example on docker toolbox and I am recvieing this error

garima (Thu, 05 Sep 2019 17:44:06 GMT):
{"success":false,"message":"failed Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]"} can someone please help me with this ?

generak (Thu, 05 Sep 2019 17:48:23 GMT):
seems to just be an issue with the machine i was using, tried on a different dev system and it's working fine

TBdori (Thu, 05 Sep 2019 18:07:14 GMT):
let say I have a complicate business logic(calculation) , is it recommended doing it on-chain , off-chain?

mastersingh24 (Thu, 05 Sep 2019 18:07:17 GMT):
Most likely your issue is that the various nodes cannot communicate across machines. How are you standing up the nodes?

TBdori (Thu, 05 Sep 2019 18:10:43 GMT):
can someone shed some light?

TBdori (Thu, 05 Sep 2019 18:13:13 GMT):
in you guys' project, you guys are computing data on chain or off chain?

someguy (Thu, 05 Sep 2019 18:19:26 GMT):
i would recommend doing that off chain

TBdori (Thu, 05 Sep 2019 18:19:56 GMT):
can you elaborate more?

TBdori (Thu, 05 Sep 2019 18:20:52 GMT):
within chaincode, can you call external db stored procedure or something to look up data/calculate outside?

someguy (Thu, 05 Sep 2019 18:25:28 GMT):
It really comes out to what is your business logic. Ideally you would want to maximize the thtroughput performance of your blockchain network, if your business logic demands a lot of data to be computed within the blockchain, reminding that the same action is going to be replicated in all the network components within the same scope, i think it will make your network slow, and maybe your business logic will suffer from this. Like I said it really comes out to what is your business logic and how much performance you need.

someguy (Thu, 05 Sep 2019 18:26:23 GMT):
I'm somwhat new to this, so i would advise you to get some extra opinion.

TBdori (Thu, 05 Sep 2019 18:27:42 GMT):
thanks. i kinda heard that but ...still how bad it will affect performance is the question

someguy (Thu, 05 Sep 2019 18:27:47 GMT):
For example, you coul'd transfer files within a blokchain network, but a better approach would be to this by hashing those files and submit the hash, instead of files directly

TBdori (Thu, 05 Sep 2019 18:28:05 GMT):
right. hashing.

someguy (Thu, 05 Sep 2019 18:28:59 GMT):
btw, i dont know if from a chaincode you can call an external DB, thats a good question also.

TBdori (Thu, 05 Sep 2019 18:29:28 GMT):
let say i have 10000 (transactions) and i need to calculate some number every once in a while, looping through 10000 tx in fabric would be really slow, right?

someguy (Thu, 05 Sep 2019 18:32:18 GMT):
it depends on the size of those transactions

someguy (Thu, 05 Sep 2019 18:34:31 GMT):
i think the issue in performance is if you store something with a lot of size within those transaction, it not really the quantity, because if you check the HL fabric docs you can check and i think fabric can do like 100000 tx in a second or something like this. If its something simple like a check or a small calculation i dont think that there is any problem

someguy (Thu, 05 Sep 2019 18:35:28 GMT):
but, this is me talking, im just a normal guy like you playing with HL fabric, so, I would try another opinion.

someguy (Thu, 05 Sep 2019 18:40:14 GMT):
Hello guys, i have a project as a proof of concept working, but im using orederer type: solo, my question is. If I wanted to transition to a raft orderer type how much it time wit would take?

TBdori (Thu, 05 Sep 2019 19:47:21 GMT):
thanks thoug

TBdori (Thu, 05 Sep 2019 19:47:23 GMT):
h

Aniket.1 (Fri, 06 Sep 2019 06:55:17 GMT):
``` Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start. # Available types are "solo" and "kafka". OrdererType: solo ``` hello everypne, I see this in configtx.yaml of first-network of version 1.4.3. I just wanted to as RAFT is also applicable now what option i see provide in orderer type. Please suggest

Aniket.1 (Fri, 06 Sep 2019 06:55:17 GMT):
``` Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start. # Available types are "solo" and "kafka". OrdererType: solo ``` hello everypne, I see this in configtx.yaml of first-network of version 1.4.3. I just wanted to know as RAFT is also applicable now what option i see provide in orderer type. Please suggest

Bentipe (Fri, 06 Sep 2019 07:45:52 GMT):
Does the leveldb that uses hyperledger fabric compress the data? We know that leveldb compresses by default on snappy, but, when I get to the folder of procution data, ledgers data I see the following folders: bookkeeper chains configHistory historyLeveldb ledgerProvider pvtdataStore On chains I can see the channel created, and there is a block with all the data uncompressed, I can see everything clearly. The file is 33MB and I can see that there are all the operations that have been done for the channel, configurations, upgrades.. On the historyLeveldb I can see another file much smaller, with .ldb extension and what apears to be compressed. When does leveldb compress a file? What are the roles of those 2 folders and files? When quering the ledger, what file does it query?

simran (Fri, 06 Sep 2019 09:47:08 GMT):
hello team

simran (Fri, 06 Sep 2019 09:47:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RMwrLmdkcwdWYHanK)
Screenshot from 2019-09-06 15-16-13.png

smallant (Fri, 06 Sep 2019 09:56:50 GMT):
Hi to all, currently using a network with Kafka ordering service, with 2 orderers and 4 peers. Checking data from the couchdb mychannel_mychannel database on all peers i can see some differences on the data: Peer1 couchDB {"id":"\u0000TYPE\u00007214f7fd1a6e4e01a1a2a0685a95f6140ca3002d483a946f7b7dfee0b995537d7359\u0000","key":"\u0000TYPE\u00007214f7fd1a6e4e01a1a2a0685a95f6140ca3002d483a946f7b7dfee0b995537d7359\u0000","value":{"rev":"2-037a5bb82577dfa898f636552d8a04d2"}} Peer2 couchDB {"id":"\u0000TYPE\u00007214f7fd1a6e4e01a1a2a0685a95f6140ca3002d483a946f7b7dfee0b995537d7359\u0000","key":"\u0000TYPE\u00007214f7fd1a6e4e01a1a2a0685a95f6140ca3002d483a946f7b7dfee0b995537d7359\u0000","value":{"rev":"1-b8f19ad550a5c9b6095d11decb57e303"}} Here, the difference is in the "rev" value. Does this mean I have 2 different data sets? Is this incoherent or the rev is only metadata?

mastersingh24 (Fri, 06 Sep 2019 10:24:28 GMT):
rev is metadata

Aniket.1 (Fri, 06 Sep 2019 10:30:53 GMT):
in channeltx.yaml, do i need to set orderer data for channel profile too?

Aniket.1 (Fri, 06 Sep 2019 10:31:55 GMT):
like kafka orderer profile do: ``` ```

Aniket.1 (Fri, 06 Sep 2019 10:31:55 GMT):
like kafka orderer profile do: ``` SampleDevModeKafka: <<: *ChannelDefaults Capabilities: <<: *ChannelCapabilities Orderer: <<: *OrdererDefaults OrdererType: kafka ```

nimaafraz (Fri, 06 Sep 2019 10:56:07 GMT):
The orderer logs are here: https://www.scss.tcd.ie/~nafraz/caliperlogs/

nimaafraz (Fri, 06 Sep 2019 10:59:17 GMT):
I have two orgs, two hosts, three orderers. Each host has one peer and one CA. Host1 has two orderers and Host2 has one orderer. Initially I also thought it is a network issue but my peers are able to talk to each other in different machines. I is the orderers that seem can't be separated.

smallant (Fri, 06 Sep 2019 11:08:35 GMT):
and does it have any meaning regarding the data? is it coherent?

tbrunain (Fri, 06 Sep 2019 12:48:10 GMT):
Has joined the channel.

Shubham-koli (Fri, 06 Sep 2019 13:47:12 GMT):
Hi I am not able to up this cli container! can someone please validate the cli configuration? I can boot up the peer and CA but not cli my other cli are of same configuration

Shubham-koli (Fri, 06 Sep 2019 13:47:36 GMT):

Screenshot from 2019-09-06 18-46-53.png

Shubham-koli (Fri, 06 Sep 2019 13:47:48 GMT):

Screenshot from 2019-09-06 19-15-14.png

tommyjay (Fri, 06 Sep 2019 13:49:49 GMT):
is anyone familiar with this error on the orderer: ``` 2019-09-06 13:43:27.436 UTC [orderer.common.broadcast] ProcessMessage -> WARN 246 [channel: testchainid] Rejecting broadcast of config message from 172.19.0.1:33486 because of error: error applying config update to existing channel 'testchainid': error authorizing update: proto: field "common.ConfigUpdate.channel_id" contains invalid UTF-8 ```

Shubham-koli (Fri, 06 Sep 2019 13:50:27 GMT):
which command is giving this error?

Shubham-koli (Fri, 06 Sep 2019 14:17:09 GMT):
ERROR WAS DUE TO NON EXISTING GO PATH

binhn (Fri, 06 Sep 2019 15:52:44 GMT):
Has left the channel.

Man-Jain (Fri, 06 Sep 2019 16:21:45 GMT):
Has joined the channel.

Man-Jain (Fri, 06 Sep 2019 16:21:48 GMT):
Do we have the go chaincode sdk for latest fabric 1.4 ?

mastersingh24 (Fri, 06 Sep 2019 16:28:40 GMT):
Go chaincode is part of the core fabric repo through v1.4.x

nitinbondre (Sat, 07 Sep 2019 11:06:20 GMT):
Has joined the channel.

shivesh86 (Sat, 07 Sep 2019 19:03:37 GMT):
Has joined the channel.

someguy (Sun, 08 Sep 2019 08:58:16 GMT):
Hello guys, if i have raft consensus implemented do i need to use the cryptogen utility in some way?

mastersingh24 (Sun, 08 Sep 2019 09:25:48 GMT):
cryptogen is simply a utility for quickly generating crypto material so that you can set up test network(s). Setting up Raft does require crypto material: - keys to sign blocks - client TLS certs used to identity nodes

someguy (Sun, 08 Sep 2019 09:29:15 GMT):
yeah i know that, but that doesnt mean it needs cryptogen utility

someguy (Sun, 08 Sep 2019 10:40:41 GMT):
ok new question guys xD, i transitioned from solo to raft orderer service, but for some reason, when i do compose-up on the ordereres they just exit and dont run. any help?

someguy (Sun, 08 Sep 2019 10:41:25 GMT):
it gives me evrything as ok, it creates the containers and stuff. but when i check in docker ps -a, they all exited

mastersingh24 (Sun, 08 Sep 2019 10:47:07 GMT):
correct ... that is what I was trying to say

mastersingh24 (Sun, 08 Sep 2019 10:48:06 GMT):
nothing in Fabric requires cryptogen ... of course the samples all use it ... but that's because the samples are trying to quickly spin up and emulate multi-org networks

someguy (Sun, 08 Sep 2019 10:49:23 GMT):
hmm ok ok, thanks bro. Im now banging my head on this new error. The orderer instances all exit

mastersingh24 (Sun, 08 Sep 2019 10:51:48 GMT):
(I'm the guy who wrote cryptogen ... I wrote it to make testing things out easy) If there are issues in the docs about setting up Raft orderers, please file defects as you see them ... my guess is that there are pieces missing explaining exactly what crypto material is needed

someguy (Sun, 08 Sep 2019 10:54:36 GMT):
the thing is that im not following the fabric docs exactly, im using Altoros/fabric-starter repo from github, but they dont have raft implmented so im modifying it for Raft but i guess im doing some stuff wrong, and cant figure out what.

mastersingh24 (Sun, 08 Sep 2019 10:56:10 GMT):
hmm .. ok ... have you taken a look at https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html ?

someguy (Sun, 08 Sep 2019 10:57:01 GMT):
yes i have, in configtx.yaml everything is ok, i have checked the paths for the cryptographic material and all seems ok

mastersingh24 (Sun, 08 Sep 2019 10:57:08 GMT):
the problem with both the fabric samples and sample networks provided by others is that they hide a lot of details which make them hard to modify

someguy (Sun, 08 Sep 2019 10:57:29 GMT):
yeah i have noticed that xD

someguy (Sun, 08 Sep 2019 10:58:23 GMT):
but since i am doing a multi host deployment and i coulnd figure out how to do it from the docs and i figured it would be easy to use this repo

someguy (Sun, 08 Sep 2019 10:58:51 GMT):
i had it in solo, and everything worked perfectly

someguy (Sun, 08 Sep 2019 10:59:22 GMT):
so i think, the error is not that big

someguy (Sun, 08 Sep 2019 11:00:49 GMT):

Screenshot from 2019-09-08 12-00-04.png

someguy (Sun, 08 Sep 2019 11:00:56 GMT):

Screenshot from 2019-09-08 12-00-25.png

someguy (Sun, 08 Sep 2019 11:01:04 GMT):
here is some shots

mastersingh24 (Sun, 08 Sep 2019 11:01:20 GMT):
Things to check: 1) the host names in your consenters list are accessible from all hosts 2) when using Docker (and not Kube or Swarm) you'll need to make sure that you have exposed the ports used by the containers 3) Make sure that firewalls are not blocking the ports 4) Make sure that the TLS server certs you use for the orderers contain SANs which match the hostnames you are using

someguy (Sun, 08 Sep 2019 11:06:37 GMT):
ok Im im checking

someguy (Sun, 08 Sep 2019 11:08:26 GMT):
i think in the end i complicated everyhting using this repo, but i need to deliver the prject untill 11 september so xD

jworthington (Sun, 08 Sep 2019 12:15:29 GMT):
Has joined the channel.

jworthington (Sun, 08 Sep 2019 12:15:30 GMT):
Trying to package commercial-paper into 2.0 Alpha (basic-net). Seems everything set up and called correctly. But peer lifecycle chaincode package returns 'Unknown chaincodeType: JAVASCRIPT'. Is only golang supported for chaincode in 2.0 Alpha?

ALURUJAWAHAR (Sun, 08 Sep 2019 12:45:43 GMT):
Has joined the channel.

ALURUJAWAHAR (Sun, 08 Sep 2019 12:45:46 GMT):
Hi I'm trying to learn hyperledger fabric.. So I have doubt after building the network and application for any project, how can we generate a User Interface for it?

jworthington (Sun, 08 Sep 2019 12:52:58 GMT):
I think most folks will expose the Fabric SDK through an API, then use your favorite UI platform.

tbrunain (Sun, 08 Sep 2019 17:24:56 GMT):
Does someone has a link to a good tutorial using fabric-client and fabric-ca-client npm package ? I'm having trouble understanding how to register/enroll user with it , Thx !

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : ``

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : ` const caClient = new FabricCAServices(`http://${ip}:4242`); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: `adminpw`, }, ); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar); `

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices(`http://${ip}:4242`); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: `adminpw`, }, ); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar); `

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices(\`http://${ip}:4242\`); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: `adminpw`, }, ); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar); `

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices("http://${ip}:4242"); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: "adminpw", }, ); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar); `

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices("http://${ip}:4242"); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: "adminpw", }, ); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar);`

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices("http://${ip}:4242"); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: "adminpw", }, ); const registrar = new User('admin'); registrar.setEnrollment(enrollResponse.key,enrollResponse.certificate, `${namespace}Msp`); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar);`

tbrunain (Sun, 08 Sep 2019 18:52:53 GMT):
I'm trying to do that : `const caClient = new FabricCAServices("http://${ip}:4242"); enrollResponse = await caClient.enroll({ enrollmentID: "admin", enrollmentSecret: "adminpw", }, ); const registrar = new User('admin'); registrar.setEnrollment(enrollResponse.key,enrollResponse.certificate, "OrgMsp"); await caClient.register({enrollmentID: 'bob', enrollmentSecret: 'shhh!', maxEnrollments: 7, role: 'test_role', affiliation: 'test_affiliation', attrs: 'test_atts'}, registrar);`

tbrunain (Sun, 08 Sep 2019 18:54:57 GMT):
But I'm getting that kind of error : Error: Can not get signingIdentity from registrar

tbrunain (Sun, 08 Sep 2019 19:19:14 GMT):
From what I see in the code of the User object, the signingIdentity should be set when you use the setEnrollment function , but that seems not to be the case (or I'm missing something somewhere : x )

tbrunain (Sun, 08 Sep 2019 19:20:34 GMT):
Oh wait ... setEnrollment return a promise ... I'm dumb I think, let's see :p

iamksseo (Mon, 09 Sep 2019 02:51:42 GMT):
HI All, I have deployed the Hyperledger fabric 1.4 on k8s. Everything works fine. But, orderer dockers shuts down with below error (1 or 2 times a day): Can anyone please tell me what I am missing here? 2019-09-09 03:57:34.706 KST [orderer.consensus.kafka] startThread -> PANI 01e [channel: testchainid] Cannot set up channel consumer = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. panic: [channel: testchainid] Cannot set up channel consumer = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. goroutine 61 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0001262c0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00017c020, 0x4, 0x10438a4, 0x31, 0xc00091df48, 0x2, 0x2, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00017c020, 0x10438a4, 0x31, 0xc00091df48, 0x2, 0x2) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc00017c028, 0x10438a4, 0x31, 0xc00091df48, 0x2, 0x2) /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60 github.com/hyperledger/fabric/orderer/consensus/kafka.startThread(0xc00031f5e0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/consensus/kafka/chain.go:355 +0xe69 created by github.com/hyperledger/fabric/orderer/consensus/kafka.(*chainImpl).Start /opt/gopath/src/github.com/hyperledger/fabric/orderer/consensus/kafka/chain.go:159 +0x3f

Aniket.1 (Mon, 09 Sep 2019 06:55:14 GMT):
Hello everyone, have anyone successfully setup the orderer and channel using etcdraft?

Aniket.1 (Mon, 09 Sep 2019 06:55:14 GMT):
Hello everyone, has anyone successfully setup the orderer and channel using etcdraft?

Aniket.1 (Mon, 09 Sep 2019 07:00:10 GMT):
Hello @mastersingh24 , is there a sample config file which reflects adding fields mentioned here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html#channel-configuration

skyfan (Mon, 09 Sep 2019 08:47:40 GMT):
Has joined the channel.

yllllll (Mon, 09 Sep 2019 08:54:11 GMT):
Has joined the channel.

yllllll (Mon, 09 Sep 2019 08:54:12 GMT):
Hello good afternoon, I am new to hyperledger and i am keen to deploy multi organization. I'm following this link https://hyperledger.github.io/composer/unstable/tutorials/deploy-to-fabric-multi-org.html. May I know where do I amend the codes so that it will run on other hosts rather than local host?

soumyanayak (Mon, 09 Sep 2019 09:42:28 GMT):
You can check the tutorials rather trying with composer as composer is now deprecated. https://hyperledger-fabric.readthedocs.io/en/latest/tutorials.html

sgaddam (Mon, 09 Sep 2019 09:50:29 GMT):
Hi, I have a HLF Network with 4 Orgs and each org has 2 peers in VM based environment. Now, I have a business requirement that i need to add one more peer (3rd peer) for Org4. But it should be in a docker container in a separate windows machine. I have done the setup with HLF in the docker container using docker-compose.yaml file. But, when i try to install the chaincode in the docker container using Peer CLI, i am getting the below exception. By the way, i am using bccsp package in my chaincode. Error: error getting chaincode code rcodso: error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/bccsp: command : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/bccsp: cannot find package "github.com/hyperledger/fabric/bccsp" in any of: /opt/go/src/github.com/hyperledger/fabric/bccsp (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/bccsp (from $GOPATH) It clearly looking for bccsp package, but it was not there in the /opt/gopath/src/github.com/hyperledger/fabric directory. Please help me in this regard to make it works.

unlimited (Mon, 09 Sep 2019 11:56:26 GMT):
Hi all, the official docs & tutorials cover a good variety of topics. But is there a certain order to architecting & developing a blockchain solution? Like first defining organizations, consortiums, nodes, MSPs, CAs, etc then move onto chaincode dev? Is there a more organized guide out there?

mrudav.shukla (Mon, 09 Sep 2019 12:10:30 GMT):
Hi, Any article on generating MSP for the components (Orderer and Peers) using CA instead of CryptoGen tool?

soumyanayak (Mon, 09 Sep 2019 12:15:53 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html

mrudav.shukla (Mon, 09 Sep 2019 12:16:51 GMT):
Just bumped into it. Thanks Soumya!

Koushik (Mon, 09 Sep 2019 17:05:14 GMT):
Hi guys, can someone tell me why Cryptogen is not intended for production?

dsessions (Mon, 09 Sep 2019 17:06:52 GMT):
@Koushik Crypto gen generates your crypto material for you ahead of your deployment. You have to specify entities in your config file and then crypto gen generates everything for you. What happens if you deploy with cryptogen and then you want to add / remove an entity?

dsessions (Mon, 09 Sep 2019 17:07:46 GMT):
If you run cryptogen again to effectuate that change, you've replaced all of your crypto material for everything.

dsessions (Mon, 09 Sep 2019 17:08:43 GMT):
If you bootstrap the hyperledger ca, then you can do all of that entity management in a centralized location, and dynamically create the needed MSP / crypto material for entities as needed.

Koushik (Mon, 09 Sep 2019 17:08:57 GMT):
Ohh thanks.

Koushik (Mon, 09 Sep 2019 17:09:12 GMT):
kk thanks.

Koushik (Mon, 09 Sep 2019 17:10:13 GMT):
I have an another question. Why do most projects use openssl with fabric-ca? anyone can explain it like im a 5 year old? LOL

dsessions (Mon, 09 Sep 2019 17:10:31 GMT):
Are you talking about the TLS?

Koushik (Mon, 09 Sep 2019 17:10:36 GMT):
yeah

dsessions (Mon, 09 Sep 2019 17:11:53 GMT):
So they are two separate things . . TLS support for the communication between components, and the hyperledger fabric MSP crypto material

dsessions (Mon, 09 Sep 2019 17:11:53 GMT):
So they are two separate things . . TLS is for the communication between components at a lower level, and the hyperledger fabric MSP crypto material is for communication between HLF components.

dsessions (Mon, 09 Sep 2019 17:13:08 GMT):
TLS is strictly for encrypting the communication between hyperledger fabric components and any component you create that interfaces with the HLF components

dsessions (Mon, 09 Sep 2019 17:14:19 GMT):
Think of it like a web browser

dsessions (Mon, 09 Sep 2019 17:14:32 GMT):
HTTPS . . you're encrypting the web traffic

dsessions (Mon, 09 Sep 2019 17:14:48 GMT):
same thing here . . TLS is just encrypting the HLF traffic

dsessions (Mon, 09 Sep 2019 17:16:37 GMT):
@Koushik does that help?

Koushik (Mon, 09 Sep 2019 17:40:30 GMT):
No my bad. I was talking about the process of using openssl to generate the root cert then use that root cert with Fabric CA as a intermediate CA to generate the rest of the certs for the network

dsessions (Mon, 09 Sep 2019 17:43:17 GMT):
Ahhh

dsessions (Mon, 09 Sep 2019 17:44:10 GMT):
You can create a fabric ca, and then create another fabric ca as an intermediate for the first

dsessions (Mon, 09 Sep 2019 17:44:43 GMT):
that way you can still invalidate the intermediate if you wanted to with a revocation list

dsessions (Mon, 09 Sep 2019 17:45:28 GMT):
Personally, I've never created the root hlf ca cert with openssl

atari83 (Mon, 09 Sep 2019 18:39:53 GMT):
Has joined the channel.

atari83 (Mon, 09 Sep 2019 18:50:29 GMT):
Hello there :)

atari83 (Mon, 09 Sep 2019 18:51:30 GMT):
I'm working on a scenario that I'd like to know if I could possibly getting it done via Fabric (+Burrow .. perhaps)

atari83 (Mon, 09 Sep 2019 18:52:52 GMT):
Actually according to the organization business plan, there should be some sort of digital asset in network (aka Token)

atari83 (Mon, 09 Sep 2019 18:55:06 GMT):
And as I see almost for all their use cases, these token are either given or taken to peers (their accounts) .. so basically I assume there wouldnt be an issue and it should be managed by chaincode

atari83 (Mon, 09 Sep 2019 18:57:17 GMT):
But ..... they are also interested in "Block Reward", "Mining Reward" concept. Means, they would like the peers to compete on registering new block in the ledger .. and the one that get to submit the new block also get some reward

atari83 (Mon, 09 Sep 2019 18:58:15 GMT):
I dont know if it is even possible .. would you please share your ideas. Thanks

madiazp (Mon, 09 Sep 2019 21:04:41 GMT):
you should see https://hyperledger-fabric.readthedocs.io/en/release-1.4/txflow.html, there is no single peer block production like in PoW schemes. from the tx flow explanation you ca deduct some sort of rewarding.

someguy (Mon, 09 Sep 2019 21:55:18 GMT):
Hello guys, one question. Is there a way for the endorsing peers i own in the blockchain system , only sign a transaction if me, "the client", authorize the peer to sign the transaction ???

someguy (Mon, 09 Sep 2019 22:20:49 GMT):
another question. are there two kinds of policies or the endorsement policies are the same thing as the configuration policies we have in configtx.yaml file ?

someguy (Mon, 09 Sep 2019 22:20:49 GMT):
another question. are there two kinds of policies or the endorsement policies are the same thing as the configuration policies we have in configtx.yaml file ? Because suddenly im getting confused.

Aniket.1 (Tue, 10 Sep 2019 06:39:34 GMT):
Hello everyone, can someone suggest what data to provide as `ClientCertificate, ClientPrivateKey: The file path of the client TLS certificate and corresponding private key.`

Aniket.1 (Tue, 10 Sep 2019 06:41:20 GMT):
I am getting this error: ``` 2019-09-10 12:07:40.328 IST [orderer.consensus.etcdraft] logSendFailure -> ERRO 024 Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs" channel=test-system-channel-name node=1 ```

Aniket.1 (Tue, 10 Sep 2019 06:42:02 GMT):
Please anyone let me know what i am doing wrong

soumyanayak (Tue, 10 Sep 2019 06:54:42 GMT):
Please check the SAN details in your certificate if its holding the IP and DNS names where you are running the RAFT Orderers

Aniket.1 (Tue, 10 Sep 2019 07:00:34 GMT):
how can i check it?

Aniket.1 (Tue, 10 Sep 2019 07:00:55 GMT):
I have generated crypto material using cryptogen.

soumyanayak (Tue, 10 Sep 2019 07:01:49 GMT):
Paste your certificate contents in below URL and check https://certlogik.com/decoder/

soumyanayak (Tue, 10 Sep 2019 07:03:06 GMT):
certififcate from the signcerts folder

Aniket.1 (Tue, 10 Sep 2019 07:03:23 GMT):
this shows SANS blank

soumyanayak (Tue, 10 Sep 2019 07:03:57 GMT):
check under the Certficate detailed information

soumyanayak (Tue, 10 Sep 2019 07:04:12 GMT):
X509v3 Subject Alternative Name:

soumyanayak (Tue, 10 Sep 2019 07:04:19 GMT):
if any DNS or IP is there

Aniket.1 (Tue, 10 Sep 2019 07:06:07 GMT):
``` Subject: commonName = orderer.example.com organizationalUnitName = orderer localityName = San Francisco stateOrProvinceName = California countryName = US ```

Aniket.1 (Tue, 10 Sep 2019 07:06:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8sRkD8KcgKpn2LeqZ) I don't think anything related is there

Aniket.1 (Tue, 10 Sep 2019 07:07:18 GMT):
I don't think anything related is there

soumyanayak (Tue, 10 Sep 2019 07:07:40 GMT):
While enrolling you would have mentioned the SAN details using the flag --csr.hosts like an example fabric-ca-client enroll -d -u https://peer1-org1:peer1PW@0.0.0.0:7052 --enrollment.profile tls --csr.hosts peer1-org1,172.23.11.11

Aniket.1 (Tue, 10 Sep 2019 07:08:22 GMT):
I have used cryptogen to get crypto material of peer and orderer

soumyanayak (Tue, 10 Sep 2019 07:12:15 GMT):
in cryptogen yaml config file SANS: - myorg.com - myorg.org

soumyanayak (Tue, 10 Sep 2019 07:14:48 GMT):
Specs: - Hostname: foo

soumyanayak (Tue, 10 Sep 2019 07:15:29 GMT):
# Specs is an array of Spec entries. Each Spec entry consists of two fields: # - Hostname: (Required) The desired hostname, sans the domain. # - CommonName: (Optional) Specifies the template or explicit override for # the CN. By default, this is the template: # # "{{.Hostname}}.{{.Domain}}" # # which obtains its values from the Spec.Hostname and # Org.Domain, respectively. # --------------------------------------------------------------------------- # Specs: # - Hostname: foo # implicitly "foo.org1.example.com" # CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above # - Hostname: bar # - Hostname: baz

Aniket.1 (Tue, 10 Sep 2019 07:15:45 GMT):
I kept that commented :worried:

soumyanayak (Tue, 10 Sep 2019 07:19:19 GMT):
just set up the hostnames and try once generating - u can have mutliptle hostnames with DNS and IP . Try once

Aniket.1 (Tue, 10 Sep 2019 07:19:30 GMT):
ok

chanioxaris (Tue, 10 Sep 2019 08:00:21 GMT):
Has joined the channel.

Aniket.1 (Tue, 10 Sep 2019 08:01:55 GMT):
@soumyanayak can you suggest what data needs to be provided in ClientCertificate, ClientPrivateKey

Aniket.1 (Tue, 10 Sep 2019 08:02:10 GMT):
I mean the path in crypto-config folder.

soumyanayak (Tue, 10 Sep 2019 08:15:22 GMT):
provide the TLS signed certs and TLS private key

Paradox-AT (Tue, 10 Sep 2019 09:41:22 GMT):
Hey Guys,

Paradox-AT (Tue, 10 Sep 2019 09:41:22 GMT):
Hey Guys, Is there any limit to how many channels should we create?

UdkReddy (Tue, 10 Sep 2019 09:45:50 GMT):
Has joined the channel.

mastersingh24 (Tue, 10 Sep 2019 09:59:54 GMT):
There's no config setting to limit the absolute number of channels that can be created, but you can limit who can create channels by limiting which orgs get added to the consortium and/or by setting ChannelCreationPolicy to an explicit set of orgs

mastersingh24 (Tue, 10 Sep 2019 09:59:54 GMT):
There's no config setting to limit the absolute number of channels that can be created by any specific org, but you can limit who can create channels by limiting which orgs get added to the consortium and/or by setting ChannelCreationPolicy to an explicit set of orgs

Paradox-AT (Tue, 10 Sep 2019 10:01:56 GMT):
Let us take an example of supply chain, for each shipment should we create a seperate channel or the channel should be on the organization level?

Paradox-AT (Tue, 10 Sep 2019 10:02:12 GMT):
Let us take an example of supply chain, for each shipment should we create a seperate channel or the channel should be on the organization level?

Paradox-AT (Tue, 10 Sep 2019 10:03:51 GMT):
PS: There is an upper bound limit for the channel that you can define for the ordering service:

mastersingh24 (Tue, 10 Sep 2019 10:13:13 GMT):
Sorry ... edited my response ... you cans et the absolute number of channels for an orderer but not a limit for any given org

mastersingh24 (Tue, 10 Sep 2019 10:14:13 GMT):
I'm not sure why you would create channel per shipment

Shubham-koli (Tue, 10 Sep 2019 11:07:37 GMT):
Hi I used custom endorsement policy `peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n fabcar -l node -v 1.0 -c '{"function":"initLedger","Args":[]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer')"` now I tried to invoke the transaction `2019-09-10T10:46:15.272Z - warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d": Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" Failed to submit transaction: Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE"`

Shubham-koli (Tue, 10 Sep 2019 11:07:37 GMT):
Hi I used custom endorsement policy `peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n fabcar -l node -v 1.0 -c '{"function":"initLedger","Args":[]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer')"` now I tried to invoke the transaction ` 2019-09-10T10:46:15.272Z - warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d": Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" Failed to submit transaction: Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" `

Shubham-koli (Tue, 10 Sep 2019 11:07:37 GMT):
Hi I used custom endorsement policy `peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n fabcar -l node -v 1.0 -c '{"function":"initLedger","Args":[]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer')"` now I tried to invoke the transaction `2019-09-10T10:46:15.272Z - warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d": Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" Failed to submit transaction: Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" `

Shubham-koli (Tue, 10 Sep 2019 11:07:37 GMT):
Hi I used custom endorsement policy `peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n fabcar -l node -v 1.0 -c '{"function":"initLedger","Args":[]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer')"` now I tried invoking transaction `2019-09-10T10:46:15.272Z - warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d": Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" Failed to submit transaction: Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" `

Shubham-koli (Tue, 10 Sep 2019 11:07:37 GMT):
Hi I used custom endorsement policy `peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n fabcar -l node -v 1.0 -c '{"function":"initLedger","Args":[]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer')"` now I tried invoking transaction `2019-09-10T10:46:15.272Z - warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d": Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE"` `Failed to submit transaction: Error: Peer 54.88.46.198:7051 has rejected transaction "0809f576dc97d07f93f6e72ac7629372478d8a74dde2d65033b8e693a7205c8d" with code "ENDORSEMENT_POLICY_FAILURE" `

Shubham-koli (Tue, 10 Sep 2019 11:09:25 GMT):
I am using docker swarm to run the network on multiple nodes. I have 4 nodes and 4 orgs

Shubham-koli (Tue, 10 Sep 2019 11:10:00 GMT):

Screenshot from 2019-09-10 16-39-33.png

lepar (Tue, 10 Sep 2019 11:46:32 GMT):
Hey guys, has anyone been able to generate TLS using fabric-ca? Ive been trying to do a "peer channel fetch" but no cetificates seems to work, keeps returning "bad certificate" error

SarvottamKumar (Tue, 10 Sep 2019 11:51:25 GMT):
Has joined the channel.

Shubham-koli (Tue, 10 Sep 2019 12:16:48 GMT):
DO NOT USE `Org.peer` sometimes it doesn't work. always use `Org.member` for custom endorsement policy

Shubham-koli (Tue, 10 Sep 2019 12:16:48 GMT):
DO NOT USE `Org.peer` sometimes it won't work instead use `Org.member` for custom endorsement policy

anujhlf (Tue, 10 Sep 2019 13:22:19 GMT):
Has joined the channel.

anujhlf (Tue, 10 Sep 2019 13:26:38 GMT):
Hi all, I have a general question. I am learning fabric and I am a bit confused in the role of peer. For fault tolerance, we rely on orderers (correct me if I am wrong) and endorsing peers are only for the execution of chaincode In creating the environment with docker-compose file,we specify the orderers and peers. Now I have two questions 1. How do we "describe" which peer is endorsing peer or an "anchor peer" 2. For production environment, we go with Kafka or Raft. In raft we need to have 2n+1 nodes. so this formula 2n+1 is for peer nodes I guess. Here n is the number of non orderer nodes? 3. What benefit do we have in having multiple endorser nodes and anchor nodes?

someguy (Tue, 10 Sep 2019 13:47:07 GMT):
For the question number 2, i would say Raft, since offers almost the same stuff as kafka and requires less space.

SaikrishnaReddy (Tue, 10 Sep 2019 14:36:01 GMT):
Can anyone explain exactly what is the difference of words below in Fabric context? * Organization * Party * Member * Participant * Entity * Identity

dsessions (Tue, 10 Sep 2019 15:08:16 GMT):
To my knowledge, and I'd love to be wrong, the Hyperledger CA does not produce crypto material for TLS . . just the crypto material / MSP for entities. I think you could technically use that crypto material for TLS if you really, really wanted to, but that doesn't seem like a good best practice.

lepar (Tue, 10 Sep 2019 15:09:17 GMT):
Actually it does, it has a flag to pass a profile for enroll with TLS.

dsessions (Tue, 10 Sep 2019 15:13:42 GMT):
Interesting . . I'm actually looking at the docs right now, and I can see where you can enable TLS with pre-existing certs during enrollment, but I can't see anywhere where the CA would create TLS certs for you. Do you have a link you could share?

lepar (Tue, 10 Sep 2019 15:21:06 GMT):
I've been following this tutorial. https://github.com/rupeshtr78/fabric/tree/master/scripts

dsessions (Tue, 10 Sep 2019 15:23:58 GMT):
Very interesting! I'll check it out, thank you! :)

lepar (Tue, 10 Sep 2019 15:24:38 GMT):
Welcome!

Adam_Hardie (Tue, 10 Sep 2019 15:51:00 GMT):
hi! is there any known reason for orderer container to exit and print log: Failed validating bootstrap block: cannot enable channel capabilities without orderer support first

Adam_Hardie (Tue, 10 Sep 2019 15:51:21 GMT):
i am trying to create an Orderer Organization

medikent (Tue, 10 Sep 2019 16:08:14 GMT):
Thank you! I will try this and see if that works for me.

rallam (Tue, 10 Sep 2019 16:27:00 GMT):
Has joined the channel.

nimaafraz (Tue, 10 Sep 2019 16:57:41 GMT):
Hello, How do I make sure that two orderers on separate hosts can see each other? I'm trying 'telnet HOST-IP port' from inside the Orderer container in one of the hosts to ping the other orderer but it gives me the error 'Connection closed by foreign host.'

nimaafraz (Tue, 10 Sep 2019 16:57:41 GMT):
Hello, How do I make sure that two orderers on separate hosts can see each other? I'm trying '`telnet HOST-IP port`' from inside the Orderer container in one of the hosts to ping the other orderer but it gives me the error '`Connection closed by foreign host.`'

Koushik (Wed, 11 Sep 2019 00:46:34 GMT):
@nimaafraz your firewall rules in your cloud serivce

Koushik (Wed, 11 Sep 2019 00:47:09 GMT):
@nimaafraz can also try adding extra host section in your docker-compose.yaml file for each machine

Koushik (Wed, 11 Sep 2019 00:49:04 GMT):
Guys is there an typo for the peer_base.yaml file in the Hyperledger First Network code base for the data persistence, mounting it to your local machine for the orderer. `version: '2' services: orderer.example.com: container_name: orderer.example.com extends: file: peer-base.yaml service: orderer-base volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block - ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls - orderer.example.com:/var/hyperledger/production/orderer`

Koushik (Wed, 11 Sep 2019 00:49:43 GMT):
shouldnt it be orderer.example.com:/var/hyperledger/production/ so when you restart the orderer container it can start from where it left off

unlimited (Wed, 11 Sep 2019 02:05:57 GMT):
Hi all, the official docs & tutorials cover a good variety of topics. But is there a certain order to architecting & developing a blockchain solution? Like first defining organizations, consortiums, nodes, MSPs, CAs, etc then move onto chaincode dev? Is there a more organized guide out there?

Aniket.1 (Wed, 11 Sep 2019 05:14:37 GMT):
I am trying to setup raft cluster locally on my system with different port and same host. Is it possible? if yes, what are the things i need to keep in mind. Please someone respond and help me.

simran (Wed, 11 Sep 2019 06:03:12 GMT):
hello all when i run to start the network by using the command `docker-compose -f docker-compose-cli.yaml up`

simran (Wed, 11 Sep 2019 06:03:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AsrybovCZHs7zF9fw)
Screenshot from 2019-09-11 11-04-18.png

simran (Wed, 11 Sep 2019 06:06:45 GMT):

Screenshot from 2019-09-11 11-35-54.png

Aniket.1 (Wed, 11 Sep 2019 07:21:34 GMT):
can someone suggest what these errors signifies: ``` 2019-09-11 12:49:58.824 IST [core.comm] ServerHandshake -> ERRO 020 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=127.0.0.1:57980 2019-09-11 12:49:59.032 IST [orderer.consensus.etcdraft] Step -> INFO 021 2 is starting a new election at term 1 channel=test-system-channel-name node=2 2019-09-11 12:49:59.032 IST [orderer.consensus.etcdraft] becomePreCandidate -> INFO 022 2 became pre-candidate at term 1 channel=test-system-channel-name node=2 2019-09-11 12:49:59.032 IST [orderer.consensus.etcdraft] poll -> INFO 023 2 received MsgPreVoteResp from 2 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:49:59.032 IST [orderer.consensus.etcdraft] campaign -> INFO 024 2 [logterm: 1, index: 2] sent MsgPreVote request to 1 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:49:59.032 IST [orderer.consensus.etcdraft] logSendFailure -> ERRO 025 Failed to send StepRequest to 1, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs" channel=test-system-channel-name node=2 2019-09-11 12:50:05.031 IST [orderer.consensus.etcdraft] Step -> INFO 026 2 is starting a new election at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:05.031 IST [orderer.consensus.etcdraft] becomePreCandidate -> INFO 027 2 became pre-candidate at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:05.031 IST [orderer.consensus.etcdraft] poll -> INFO 028 2 received MsgPreVoteResp from 2 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:05.032 IST [orderer.consensus.etcdraft] campaign -> INFO 029 2 [logterm: 1, index: 2] sent MsgPreVote request to 1 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:11.031 IST [orderer.consensus.etcdraft] Step -> INFO 02a 2 is starting a new election at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:11.031 IST [orderer.consensus.etcdraft] becomePreCandidate -> INFO 02b 2 became pre-candidate at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:11.032 IST [orderer.consensus.etcdraft] poll -> INFO 02c 2 received MsgPreVoteResp from 2 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:11.032 IST [orderer.consensus.etcdraft] campaign -> INFO 02d 2 [logterm: 1, index: 2] sent MsgPreVote request to 1 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:17.032 IST [orderer.consensus.etcdraft] Step -> INFO 02e 2 is starting a new election at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:17.032 IST [orderer.consensus.etcdraft] becomePreCandidate -> INFO 02f 2 became pre-candidate at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:17.032 IST [orderer.consensus.etcdraft] poll -> INFO 030 2 received MsgPreVoteResp from 2 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:17.032 IST [orderer.consensus.etcdraft] campaign -> INFO 031 2 [logterm: 1, index: 2] sent MsgPreVote request to 1 at term 1 channel=test-system-channel-name node=2 2019-09-11 12:50:17.809 IST [core.comm] ServerHandshake -> ERRO 032 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=127.0.0.1:58030 ```

alkiimista (Wed, 11 Sep 2019 08:10:07 GMT):
Has joined the channel.

simran (Wed, 11 Sep 2019 08:48:07 GMT):

Screenshot from 2019-09-11 13-04-03.png

nimaafraz (Wed, 11 Sep 2019 09:05:57 GMT):
Thanks, I have opened all the ports on my GCloud using the firewalll rules. Also I have added the extra hosts to the Docker-compose file.

nimaafraz (Wed, 11 Sep 2019 09:05:57 GMT):
Thanks, I have opened all the ports on my GCloud using the firewalll rules. Also I have added the extra hosts to the Docker-compose file. The problem is still there.

jeanp (Wed, 11 Sep 2019 09:44:17 GMT):
hello there. Anyone here doing native (without docker composer) deployment on multi nodes ? I'd be happy to chat about it.

soumyanayak (Wed, 11 Sep 2019 10:44:52 GMT):
You can ping me

jeanp (Wed, 11 Sep 2019 10:53:44 GMT):
Hello

jeanp (Wed, 11 Sep 2019 10:53:53 GMT):
how are you doing ?

jeanp (Wed, 11 Sep 2019 10:54:18 GMT):
You can ping me

umersaleem (Wed, 11 Sep 2019 11:21:17 GMT):
Has joined the channel.

umersaleem (Wed, 11 Sep 2019 11:21:41 GMT):

9-5-2019 1-56-24 PM.png

umersaleem (Wed, 11 Sep 2019 11:22:28 GMT):
can any one help me?? how i can remove this error

simran (Wed, 11 Sep 2019 12:04:19 GMT):

Screenshot from 2019-09-11 17-23-13.png

Aniket.1 (Wed, 11 Sep 2019 12:26:01 GMT):
Make sure your CA is running

soumyanayak (Wed, 11 Sep 2019 12:41:16 GMT):
its the same IP SANS issue i could see

gatakka (Wed, 11 Sep 2019 12:41:53 GMT):
Hello, is there any limit for data send in chaincode invoke? Because when we send a serialized JSON bigger then 4K in size, the text is not delivered, instead is truncated to around 4K.

soumyanayak (Wed, 11 Sep 2019 12:43:05 GMT):
in the docker-compose are you using network_mode as host or using docker swarm?

nimaafraz (Wed, 11 Sep 2019 12:45:35 GMT):
I guess Network-mode as I'm sure it's not Swarm

migrenaa (Wed, 11 Sep 2019 12:47:59 GMT):
I am trying to configure monitoring and health checks with operations service. I don't use core.yaml file, instead I am setting the environments in the compose file with prefix "CORE". I did set the env `CORE_OPERATIONS_LISTENADDRESS` as it is written in the documentation. However, I am still getting connection refused error. Has someone done it?

Aniket.1 (Wed, 11 Sep 2019 12:49:24 GMT):
I am trying to setup cluster on local machine

Aniket.1 (Wed, 11 Sep 2019 12:49:48 GMT):
So i can not give two different dns name

Aniket.1 (Wed, 11 Sep 2019 12:50:01 GMT):
as they will be refering to localhost only

Aniket.1 (Wed, 11 Sep 2019 12:50:12 GMT):
thats why i am using IP

soumyanayak (Wed, 11 Sep 2019 12:50:21 GMT):
and in the ports section the ports are exposed right network_mode: "host" ports: - "7050:7050"

soumyanayak (Wed, 11 Sep 2019 12:51:31 GMT):
so did you give that IP address in SANS whiel generating certs

nimaafraz (Wed, 11 Sep 2019 12:53:46 GMT):
My docker-compose files are uploaded here: https://www.scss.tcd.ie/~nafraz/caliperConfig/

Aniket.1 (Wed, 11 Sep 2019 12:55:13 GMT):
I have worked with 'solo' ordering service without enabling hosts in crypto-config.yaml so I wanted to use the same data for this.

soumyanayak (Wed, 11 Sep 2019 12:56:59 GMT):
Actually when using RAFT orderer you need the TLS certs

soumyanayak (Wed, 11 Sep 2019 12:57:21 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/raft_configuration.html

Aniket.1 (Wed, 11 Sep 2019 13:00:11 GMT):
yes

Aniket.1 (Wed, 11 Sep 2019 13:00:25 GMT):
looks like last option is to start fresh

soumyanayak (Wed, 11 Sep 2019 13:01:01 GMT):
checked the files please add this line to all the services in docker-compose and try network_mode: "host"

soumyanayak (Wed, 11 Sep 2019 13:01:47 GMT):
example orderer0.example.com: container_name: orderer0.example.com network_mode: "host" image: hyperledger/fabric-orderer:1.4.1

soumyanayak (Wed, 11 Sep 2019 13:02:04 GMT):
similarly you can do for remaining all services in both the docker-compose

nimaafraz (Wed, 11 Sep 2019 13:02:07 GMT):
Will do, Thanks

soumyanayak (Wed, 11 Sep 2019 13:03:00 GMT):
just try regenrating everything with proper SAN details becasue the error clearly say TLS issue

parsa (Wed, 11 Sep 2019 13:05:13 GMT):
I read the documentation about the gossip protocol, I still don't know how to set my CORE_PEER_BOOTSTRAP and CORE_PEER_GOSSIP_EXTERNALENDPOINT. can someone help me or recommend me some good related links or samples.

soumyanayak (Wed, 11 Sep 2019 13:06:35 GMT):
if you are using docker try like below - CORE_OPERATIONS_LISTENADDRESS=:9443 and then expose the port 9443 under the ports and restart the peer container

soumyanayak (Wed, 11 Sep 2019 13:08:54 GMT):
Its CORE_PEER_GOSSIP_BOOTSTRAP

soumyanayak (Wed, 11 Sep 2019 13:09:03 GMT):
https://github.com/hyperledger/fabric/blob/v1.4.3/sampleconfig/core.yaml

soumyanayak (Wed, 11 Sep 2019 13:09:31 GMT):
The descriptions are well explained above the parameters you can go through it

parsa (Wed, 11 Sep 2019 13:12:01 GMT):
I will look at them right now! thanks

Aniket.1 (Wed, 11 Sep 2019 13:12:03 GMT):
ok

nimaafraz (Wed, 11 Sep 2019 13:14:33 GMT):
Ok I added the network_mode: "host" as you said and now the channel creation fails: Failed to connect before the deadline URL:grpcs://10.128.0.6:7050

migrenaa (Wed, 11 Sep 2019 13:20:57 GMT):
with my machines IP address, right? It didn't work like this. I am testing it making a curl/wget request from the fabric-tools container in the same docker network and also from my local machine..

migrenaa (Wed, 11 Sep 2019 13:20:57 GMT):
with my machines IP address, right? It didn't work this way. I am testing it making a curl/wget request from the fabric-tools container in the same docker network and also from my local machine..

migrenaa (Wed, 11 Sep 2019 13:20:57 GMT):
@soumyanayak with my machines IP address, right? It didn't work this way. I am testing it making a curl/wget request from the fabric-tools container in the same docker network and also from my local machine..

Lebski (Wed, 11 Sep 2019 13:26:36 GMT):
Has joined the channel.

Lebski (Wed, 11 Sep 2019 13:30:10 GMT):
Hi, is there any starting point for learning the Go SDK? We are a little bit stuck with getting it running.

soumyanayak (Wed, 11 Sep 2019 14:35:55 GMT):
did you expose the port 9443 under ports?

soumyanayak (Wed, 11 Sep 2019 14:36:16 GMT):
ports: - "9443:9443"

soumyanayak (Wed, 11 Sep 2019 14:36:24 GMT):
under peer service in docker-compose

dsessions (Wed, 11 Sep 2019 14:50:10 GMT):
I'd recommend the #fabric-kubernetes channel too

migrenaa (Wed, 11 Sep 2019 15:08:38 GMT):
ъес

migrenaa (Wed, 11 Sep 2019 15:08:38 GMT):
@soumyanayak yes

soumyanayak (Wed, 11 Sep 2019 15:15:18 GMT):
in the peer docker-compose you have added this -- network_mode: "host" ?

migrenaa (Wed, 11 Sep 2019 15:37:54 GMT):
My peer is version 1.2.. I guess that's the problem.

IamArtur612 (Wed, 11 Sep 2019 16:23:33 GMT):
Can someone send me a test transaction written in go maybe?

dsessions (Wed, 11 Sep 2019 20:44:40 GMT):
Have you done any of the tutorials?

dsessions (Wed, 11 Sep 2019 20:46:08 GMT):
Have you tried any of the examples? https://github.com/hyperledger/fabric-sdk-go

medikent (Wed, 11 Sep 2019 23:14:54 GMT):
What is the value in using the *shim.ChaincodeStubInterface* *CreateCompositeKey* and *SplitCompositeKey* methods? why not just write your own?

yacovm (Wed, 11 Sep 2019 23:18:56 GMT):
well if the ledger starts using different encoding, you'll have a problem, no?

medikent (Wed, 11 Sep 2019 23:34:57 GMT):
Perfect answer. Thanks!

vinnieantunes (Thu, 12 Sep 2019 01:36:05 GMT):
Does the fabric network have any limits on peers, orgs, etc.?

vinnieantunes (Thu, 12 Sep 2019 01:37:11 GMT):
How can I remove and add peers in Fabcar? How can I decrease BYFN?

vinnieantunes (Thu, 12 Sep 2019 01:38:38 GMT):
In the case of BYFN, do I need to modify any scripts besides the config and docker-compose.yaml files?

soumyanayak (Thu, 12 Sep 2019 03:36:19 GMT):
can you please post the complete logs once when you invoke

AnilSingh (Thu, 12 Sep 2019 05:39:36 GMT):
I believe it's set as default limit to gRPC in 4MB (4194304 Bytes).

RahulEth (Thu, 12 Sep 2019 06:18:16 GMT):
i am sending multiple transaction by running for loop through nodesdk. and every time key is different but still getting below error``` ::MVCC_READ_CONFLICT ```

RahulEth (Thu, 12 Sep 2019 06:18:16 GMT):
i am sending multiple transaction by running for loop through nodesdk. and every time key is different but still getting below error``` ::MVCC_READ_CONFLICT ``` do someone have any idea why it is hapening

BiplavKumar (Thu, 12 Sep 2019 06:46:23 GMT):
Has joined the channel.

BiplavKumar (Thu, 12 Sep 2019 06:46:24 GMT):
Hi, I need to learn golang chain code development but I am not aware of the way to test my chaincode while in development

BiplavKumar (Thu, 12 Sep 2019 06:46:42 GMT):
Is there any platform or tool available?

Aniket.1 (Thu, 12 Sep 2019 06:49:49 GMT):
Hello everyone, what i need to add in `ClientTLSCert` & `ServerTLSCert` in consenters of etcdraft when i have generated crypto material using crypto-config

Aniket.1 (Thu, 12 Sep 2019 06:51:23 GMT):
first-network example provides same data in both the fields i.e. `crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt`

generak (Thu, 12 Sep 2019 07:09:30 GMT):
Are you sending the transactions then waiting for a response or just sending them? If you're not waiting for an endorsement response then it's possible that the loop will iterate over and submit another transaction before the first has been completed.

Ammu (Thu, 12 Sep 2019 07:43:11 GMT):
how blocks will get to know next blocks?

Aniket.1 (Thu, 12 Sep 2019 07:56:08 GMT):
@soumyanayak I checked i was having hostnames for orderer initially

Aniket.1 (Thu, 12 Sep 2019 07:56:39 GMT):
In orderer.yml, I also used `ListenAddress: orderer2.example.com`

Aniket.1 (Thu, 12 Sep 2019 07:56:56 GMT):
still stuck on same error

Aniket.1 (Thu, 12 Sep 2019 07:57:27 GMT):
In cluster client certificate i am providing: `crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp/signcerts/orderer2.example.com-cert.pem`

Aniket.1 (Thu, 12 Sep 2019 07:58:22 GMT):
error says: ``` 2019-09-12 13:15:56.718 IST [orderer.consensus.etcdraft] logSendFailure -> ERRO 026 Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs" channel=test-system-channel-name node=1 ```

Aniket.1 (Thu, 12 Sep 2019 07:59:20 GMT):
in crypto-config.yaml, i use: ``` OrdererOrgs: # --------------------------------------------------------------------------- # Orderer # --------------------------------------------------------------------------- - Name: Orderer Domain: example.com EnableNodeOUs: true # --------------------------------------------------------------------------- # "Specs" - See PeerOrgs below for complete description # --------------------------------------------------------------------------- Specs: - Hostname: orderer - Hostname: orderer2 ```

Aniket.1 (Thu, 12 Sep 2019 07:59:55 GMT):
@soumyanayak let me know if you see something wrong

soumyanayak (Thu, 12 Sep 2019 08:05:47 GMT):
add - Hostname: 127.0.0.1 and try regenerating tehc erts

soumyanayak (Thu, 12 Sep 2019 08:05:47 GMT):
add - Hostname: 127.0.0.1 and try regenerating the certs

Adam_Hardie (Thu, 12 Sep 2019 08:55:14 GMT):
is there any tutorial available about setting up a production hyperledger without using cryptogen ? (eg setting up the MSP + CA first and adding peers/orderers via configtx) thanks

Aniket.1 (Thu, 12 Sep 2019 09:01:35 GMT):
although i have added in my system hosts file orderer.example.com to 127.0.0.1

Aniket.1 (Thu, 12 Sep 2019 09:03:37 GMT):
still I should regenerate the crypto-material and if i will add hostname as 127.0.0.1, will i get the material for two ordering node?

Aniket.1 (Thu, 12 Sep 2019 09:11:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=z6X9WkNR3oc8C5yBc) @soumyanayak do you find the path fine?

aymanmt (Thu, 12 Sep 2019 09:35:40 GMT):
Has joined the channel.

aymanmt (Thu, 12 Sep 2019 09:36:41 GMT):
Hello everyone! This is my first message here, so I am not sure if this is the right place to ask questions or not :)

aymanmt (Thu, 12 Sep 2019 09:36:47 GMT):
well here is the thing

aymanmt (Thu, 12 Sep 2019 09:39:30 GMT):
I am trying to make a query with pagination using getQueryResultWithPagination, but the returned metadata does not contain the bookmark, it is always empty. Anybody has any idea why this is happening?

simran (Thu, 12 Sep 2019 09:47:15 GMT):
hello everyone when i start the firstnetwork of fabric -sample

simran (Thu, 12 Sep 2019 09:47:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gZeohEmJuaQqzgAN6)
Screenshot from 2019-09-12 15-16-32.png

simran (Thu, 12 Sep 2019 09:47:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=gZeohEmJuaQqzgAN6)
Screenshot from 2019-09-12 15-16-32.png

parsa (Thu, 12 Sep 2019 12:23:09 GMT):
I keep getting" Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded". I tried to set the CORE_PEER_PROFILE_LISTENADDRESS, but I don't know what is this and whats the value, can anyone help me.

Purbaja (Thu, 12 Sep 2019 12:23:18 GMT):
Hi All, in hyperledger fabric 1.4 we can send events publicly through stub.setEvent() method in a channel. Can events be sent privately between two organizations within a channel?

IamArtur612 (Thu, 12 Sep 2019 13:19:32 GMT):
Yess im trying the e2e simple transaction.

IamArtur612 (Thu, 12 Sep 2019 13:19:48 GMT):
Getting Error executing step: failed to create channel context: failed to get client context to create channel client: invalid options to create identity, invalid org name

simran (Thu, 12 Sep 2019 13:22:10 GMT):
same :(

indirajith (Thu, 12 Sep 2019 13:45:09 GMT):
Hi all, Is there any easy to understand materials available for the policy we use in 'configtx.yaml' file? Because in the examples they have a separate org for orderers. But in reality all participating orgs can have their own orderers, in this case how does the policy we define in the configtx file changes? Where can I find the intricacies of policy usage? Thanks in advance!

simran (Thu, 12 Sep 2019 14:05:58 GMT):
me trying to start the `byfn.sh up ` command `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied`

catalin-gabriel (Thu, 12 Sep 2019 14:32:45 GMT):
Has joined the channel.

saj97 (Thu, 12 Sep 2019 17:21:29 GMT):
Has joined the channel.

saj97 (Thu, 12 Sep 2019 17:21:30 GMT):
I have the same error before. In my case was because when I define the user in the ca, the type was client when it has to be admin

saj97 (Thu, 12 Sep 2019 17:24:28 GMT):
I have the same error before. In my case was because when I define the user in the ca, the type was client when it has to be admin

CT123 (Thu, 12 Sep 2019 18:12:44 GMT):
Are there any naming convention rules for HLF network entities? For example, can I name a peer widget3-peer0.project-name.domain.xyz? with the domain being fully qualified of course? Same with CA, orderer, MSP, etc?

CT123 (Thu, 12 Sep 2019 18:12:44 GMT):
Are there any naming convention rules for HLF network entities? For example, can I name a peer widget3-peer0.project-name.domain.xyz? with the domain being fully qualified of course? Same with CA, orderer, MSP, etc? Zero info in the docs

CT123 (Thu, 12 Sep 2019 18:12:44 GMT):
Are there any naming convention rules for HLF network entities? For example, can I name a peer widget3-peer0.project-name.domain.xyz? with the domain being fully qualified of course? Same with CA, orderer, MSP, etc? Zero info in the docs``` ```

CT123 (Thu, 12 Sep 2019 18:12:44 GMT):
Are there any naming convention rules for HLF network entities? For example, can I name a peer widget3-peer0.project-name.domain.xyz? with the domain being fully qualified of course? Same with CA, orderer, MSP, etc? Zero info in the docs I have referenced this however while it's helpful it doesn't answer the question above: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/designelements.html

toddinpal (Thu, 12 Sep 2019 19:45:51 GMT):
@BiplavKumar Look into using the mock shim to test your go chaincode before installing/instantiating it. Alternatively you can use development mode to allow yourself to start the chaincode itself inside an IDE or debugger. For the mock shim, check out the various chaincode unit tests in the fabric source code.

medikent (Thu, 12 Sep 2019 22:39:28 GMT):
Sometimes I see that error when my crypto-config directory has invalid crypto material in it.

medikent (Thu, 12 Sep 2019 22:40:23 GMT):
I'll stop and start the network to fix it. Stopping the network should remove the old crypto material and starting the network should generate new crypto material.

simran (Fri, 13 Sep 2019 04:36:43 GMT):

Screenshot from 2019-09-13 09-59-15.png

MohammedR (Fri, 13 Sep 2019 05:30:32 GMT):
@simran first bring down byfn ./byfn down then bring it up

simran (Fri, 13 Sep 2019 05:30:57 GMT):
i have done so amy times like this

MohammedR (Fri, 13 Sep 2019 05:31:16 GMT):
check is dangling containers exists

MohammedR (Fri, 13 Sep 2019 05:31:20 GMT):
or images

MohammedR (Fri, 13 Sep 2019 05:31:46 GMT):
check if dangling images or container exists

MohammedR (Fri, 13 Sep 2019 05:32:33 GMT):
https://stackoverflow.com/questions/52548185/how-to-fix-failed-to-execute-end-2-end-scenario-in-hyperledger-fabric/52553615#52553615

MohammedR (Fri, 13 Sep 2019 05:33:35 GMT):
what's the error in container

simran (Fri, 13 Sep 2019 05:39:27 GMT):
now its removd thanks

damir13 (Fri, 13 Sep 2019 09:06:04 GMT):
Has joined the channel.

damir13 (Fri, 13 Sep 2019 09:06:06 GMT):
Greetings! I'm using kubernetes for deploying hyperledger fabric infrastructure. So far so good, with a lot of hiccups. One of those hiccups is enabling private data. Can you please lend me a hand? I'm using fabric 1.4.1 Orderers appear to be down ever since I added Application Capabilities to the configtx.yaml Here are the logs from the orderers: `2019-09-13 08:54:04.815 UTC [orderer.common.cluster] loadVerifier -> INFO 002 Loaded verifier for channel systemchannel from config block at index 0 2019-09-13 08:54:04.815 UTC [orderer.common.server] initializeServerConfig -> INFO 003 Starting orderer with mutual TLS enabled 2019-09-13 08:54:04.823 UTC [orderer.common.server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains 2019-09-13 08:54:04.869 UTC [orderer.commmon.multichannel] checkResourcesOrPanic -> PANI 005 [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported panic: [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported ` ``` ```` ``` ``` `

damir13 (Fri, 13 Sep 2019 09:06:06 GMT):
Greetings! I'm using kubernetes for deploying hyperledger fabric infrastructure. So far so good, with a lot of hiccups. One of those hiccups is enabling private data. Can you please lend me a hand? I'm using fabric 1.4.1 Orderers appear to be down ever since I added Application Capabilities to the configtx.yaml Here are the logs from the orderers: ```2019-09-13 08:54:04.815 UTC [orderer.common.cluster] loadVerifier -> INFO 002 Loaded verifier for channel systemchannel from config block at index 0 2019-09-13 08:54:04.815 UTC [orderer.common.server] initializeServerConfig -> INFO 003 Starting orderer with mutual TLS enabled 2019-09-13 08:54:04.823 UTC [orderer.common.server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains 2019-09-13 08:54:04.869 UTC [orderer.commmon.multichannel] checkResourcesOrPanic -> PANI 005 [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported panic: [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported ```

damir13 (Fri, 13 Sep 2019 09:10:35 GMT):

configtx.txt

simran (Fri, 13 Sep 2019 10:49:01 GMT):

Screenshot from 2019-09-13 16-16-53.png

Subhankar 3 (Fri, 13 Sep 2019 10:59:35 GMT):
fflag

parsa (Fri, 13 Sep 2019 11:07:22 GMT):
I'm developing my own network using the steps in the scripts from the first-network sample. I've have double checked the environment variables in the docker-compose files. I have set them right.

parsa (Fri, 13 Sep 2019 11:12:16 GMT):
I'm developing my own network using the steps in the scripts from the first-network sample. I've double-checked the environment variables in the docker-compose files. I have set them right. I create the channel with TLS enabled and it was successfully created. But I can't join peers into the channel using the peer channel join -b $CHANNEL_NAME.block I keep getting the "error getting endorser client for channel: endorser client failed to connect to peer0.bank.landregistry.com:7051: failed to create a new connection: context deadline exceeded" (one of my organizations are called bank and it has 3 peers". can it be related to the gossip protocol and BOOTSTRP or EXTERNALPOINT variables?

parsa (Fri, 13 Sep 2019 11:12:16 GMT):
I'm developing my own network using the steps in the scripts from the first-network sample. I've double-checked the environment variables in the docker-compose files. I have set them right. I create the channel with TLS enabled and it was successfully created. But I can't join peers into the channel using the peer channel join -b $CHANNEL_NAME.block I keep getting the "error getting endorser client for channel: endorser client failed to connect to peer0.bank.landregistry.com:7051: failed to create a new connection: context deadline exceeded" (one of my organizations are called bank and it has 3 peers". can anyone help me with this problem? can it be related to the gossip protocol and BOOTSTRP or EXTERNALPOINT variables?

yacovm (Fri, 13 Sep 2019 11:23:49 GMT):
no

ahmad-raza (Fri, 13 Sep 2019 12:42:51 GMT):
Hello ALl, Anyone know about this error "instantiate proposal resulted in an error :: Error: error starting container: error starting container: cannot connect to Docker endpoint" I am using ibm-kubernetes-cluster. Everything is working untill instantiating the chaincode

ahmad-raza (Fri, 13 Sep 2019 12:43:12 GMT):

Screenshot from 2019-09-13 17-27-32.png

ahmad-raza (Fri, 13 Sep 2019 12:43:12 GMT):

Screenshot from 2019-09-13 17-27-32.png

ahmad-raza (Fri, 13 Sep 2019 12:46:59 GMT):
Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: error starting container: error starting container: cannot connect to Docker endpoint"

davidkel (Fri, 13 Sep 2019 12:54:50 GMT):
That's probably due to the fact the Kubernetes doesn't use docker

davidkel (Fri, 13 Sep 2019 12:54:50 GMT):
That's probably due to the fact that Kubernetes doesn't use docker

ahmad-raza (Fri, 13 Sep 2019 12:55:10 GMT):
any workaround?

davidkel (Fri, 13 Sep 2019 12:56:12 GMT):
I assume so as other people deploy fabric to kubernetes, but not something I have ever tried. Have you asked on the #fabric-kubernetes channel ?

ahmad-raza (Fri, 13 Sep 2019 12:56:56 GMT):
No

ahmad-raza (Fri, 13 Sep 2019 13:00:45 GMT):
certificates, channel creation , joining channel, installing chaincode on channels are done but error occured during instantiating chaincode. Does all other things not required "DOcker"?

davidkel (Fri, 13 Sep 2019 13:01:44 GMT):
No they don't the only require a linux container runtime for which docker is just one of

davidkel (Fri, 13 Sep 2019 13:01:44 GMT):
No they don't they only require a linux container runtime for which docker is just one of

davidkel (Fri, 13 Sep 2019 13:02:20 GMT):
But chaincode instantiation explicitly requires docker

ahmad-raza (Fri, 13 Sep 2019 13:02:25 GMT):
sure so any vm_endpoint for linux base conatiners

davidkel (Fri, 13 Sep 2019 13:03:00 GMT):
The vm endpoint I'm guessing has to be to a docker daemon

ahmad-raza (Fri, 13 Sep 2019 13:03:46 GMT):
e.g?

ahmad-raza (Fri, 13 Sep 2019 13:05:03 GMT):

Screenshot from 2019-09-13 18-04-12.png

davidkel (Fri, 13 Sep 2019 13:05:37 GMT):
That's because fabric can only instantiate chaincode using docker

ahmad-raza (Fri, 13 Sep 2019 13:06:49 GMT):
okay. is i have to install docker-dind?

ahmad-raza (Fri, 13 Sep 2019 13:08:17 GMT):
One more thing when i have configure kubernetes cluster on my local machine . It does not give any error. it works fine with this unix:///host/var/run/docker.sock

davidkel (Fri, 13 Sep 2019 13:08:39 GMT):
No idea as I haven't had to set up my own fabric in K8s.

ahmad-raza (Fri, 13 Sep 2019 13:09:09 GMT):
thanks

davidkel (Fri, 13 Sep 2019 13:10:34 GMT):
The reason it might have worked on your machine is that the version of K8s you are using is configured to use docker. K8s can use different container engines.

ahmad-raza (Fri, 13 Sep 2019 13:11:49 GMT):
maybe

braduf (Fri, 13 Sep 2019 14:34:46 GMT):
Has joined the channel.

braduf (Fri, 13 Sep 2019 14:34:46 GMT):
Hi all, what is the best way to get the public key of the transaction sender in go chaincode? So not the certificate ID, but really the public key.

braduf (Fri, 13 Sep 2019 14:34:46 GMT):
Hi all, what is the best way to get the public key of the transaction sender in go chaincode? So not the certificate ID, but really the public key. Thanks in advance.

aymanmt (Fri, 13 Sep 2019 16:14:44 GMT):
hello everybody

aymanmt (Fri, 13 Sep 2019 16:14:59 GMT):
i asked a question yesterday about pagination

aymanmt (Fri, 13 Sep 2019 16:15:23 GMT):
but didn't get any answer

aymanmt (Fri, 13 Sep 2019 16:15:55 GMT):
so I am not sure how the chat works, should i ask the question again?

mastersingh24 (Fri, 13 Sep 2019 17:34:40 GMT):
try #fabric-ledger

aymanmt (Fri, 13 Sep 2019 17:35:31 GMT):
alright, thanks

sssaha (Fri, 13 Sep 2019 19:29:45 GMT):
Has joined the channel.

sssaha (Fri, 13 Sep 2019 19:29:46 GMT):
hello Is there any example released for HLF V 2.0 regarding the new features added for Chaincode endorsing?

Koushik (Fri, 13 Sep 2019 23:57:28 GMT):
Hi guys, can fabric-ca be used in production without openssl

Koushik (Fri, 13 Sep 2019 23:57:30 GMT):
??

Koushik (Sat, 14 Sep 2019 00:27:13 GMT):
Hi, to elaborate on that question. I remember documentation stating that fabric-ca is meant for Production while cryptogen is meant for dev, because cryptogen's generation technique and lack of revocation for identities, but I seem to not find that information in the documentation anymore

vinnieantunes (Sat, 14 Sep 2019 03:43:03 GMT):
I had the following error while trying to remove org1 peer1 from BYFN. Some help?

vinnieantunes (Sat, 14 Sep 2019 03:43:46 GMT):
errors*

vinnieantunes (Sat, 14 Sep 2019 03:43:50 GMT):
ERROR !!!! Test failed - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:8051 Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

vinnieantunes (Sat, 14 Sep 2019 03:44:20 GMT):
Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com on 127.0.0.11:53: no such host" peer1.org1 failed to join the channel, Retry after 3 seconds + peer channel join -b mychannel.block + res=1 + set +x Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com on 127.0.0.11:53: no such host" !!!!!!!!!!!!!!! After 10 attempts, peer1.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed

NeelBanker (Sat, 14 Sep 2019 10:57:19 GMT):
Has joined the channel.

NeelBanker (Sat, 14 Sep 2019 11:01:03 GMT):
have you changed the configtx.yaml file in first-network folder? if not then in that file you also need to remove the polices for org1 that you are trying to remove

NeelBanker (Sat, 14 Sep 2019 11:05:22 GMT):
First, try setting the ports in both channel setup and in docker-compose-base.yaml file, check in configtx.yaml file that orgs have same ports

NeelBanker (Sat, 14 Sep 2019 11:06:50 GMT):
First, try setting the ports in both channel setup and in docker-compose-base.yaml file, check in configtx.yaml file that orgs have same ports

NeelBanker (Sat, 14 Sep 2019 11:17:35 GMT):
Check in the configtx.yaml file that you have defined proper polices or not

vinnieantunes (Sat, 14 Sep 2019 15:22:44 GMT):
Error response from daemon: Container 624ec878908730aa74d5c83c755ee3c2bfc2759dedfa91620c13b8c65567964b is not run.

vinnieantunes (Sat, 14 Sep 2019 15:22:44 GMT):
That

vinnieantunes (Sat, 14 Sep 2019 15:23:57 GMT):
Ok, i try

vinnieantunes (Sat, 14 Sep 2019 15:23:57 GMT):
Thanks

volodyad (Sat, 14 Sep 2019 16:20:15 GMT):
Hello. have a question. Can we control raft quorum size? seems it calculated it automatically every time I join node to the config. Can I manually setup this size?

buvaneshkumar1 (Sun, 15 Sep 2019 12:42:12 GMT):
Has joined the channel.

buvaneshkumar1 (Sun, 15 Sep 2019 12:42:14 GMT):
update the ledger — updating requires the consent of other peers in the network. A peer requires other peers in the network to approve a ledger update before it can be applied to a peer’s local ledger. This process is called consensus, which takes much longer to complete than a simple query.

buvaneshkumar1 (Sun, 15 Sep 2019 12:42:31 GMT):
how and when this is happening

AlokSingh 1 (Sun, 15 Sep 2019 14:42:04 GMT):
Has joined the channel.

AlokSingh 1 (Sun, 15 Sep 2019 14:42:06 GMT):
I want to automate the hyperledger fabric deployment for multiple organizations. Please suggest the way.

viraj124 (Sun, 15 Sep 2019 15:07:08 GMT):
hi everyone,

viraj124 (Sun, 15 Sep 2019 15:07:42 GMT):
has anyone worked with node sdk i am stuck somewhere

TrevorOakley (Sun, 15 Sep 2019 16:00:49 GMT):
Has joined the channel.

TrevorOakley (Sun, 15 Sep 2019 16:00:50 GMT):
what is the best place to learn chaincode?

minashij (Sun, 15 Sep 2019 17:53:52 GMT):
Has joined the channel.

minashij (Sun, 15 Sep 2019 17:53:57 GMT):
hi there, i have problem with fabric samples, i am following commercial_paper tutorial, but in installing chaincode part, i get error : "panic: runtime error: invalid memory address or nil pointer dereference". any one konws why i get this? i am working on windows 10

miribeiro (Sun, 15 Sep 2019 20:45:03 GMT):
Has joined the channel.

miribeiro (Sun, 15 Sep 2019 20:50:28 GMT):

Clipboard - September 15, 2019 9:50 PM

miribeiro (Sun, 15 Sep 2019 20:51:15 GMT):
Hi! I'm following the tutorial to write my first application. However I'm having some problems installing the samples and binaries. When I run *curl -sSL http://bit.ly/2ysbOFE | bash -s* this error appears

miribeiro (Sun, 15 Sep 2019 20:51:18 GMT):

Clipboard - September 15, 2019 9:51 PM

miribeiro (Sun, 15 Sep 2019 20:52:40 GMT):
I tried to see a solution online but couldn't find one. Anyone knows how to fix this? Thanks in advance

miribeiro (Mon, 16 Sep 2019 01:27:04 GMT):
Hi guys! When I run the command *./byfn.sh up* there is an error that says: *OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory"* Does anyone know how to solve it?

Randyshu2018 (Mon, 16 Sep 2019 06:55:42 GMT):
In a typical scenario, the patient's medical data only needs to be authorized for the designated experts for a limited time. Can this scenario be implemented by hyperledger fabric?

metadata (Mon, 16 Sep 2019 07:12:46 GMT):
Hi all, I'm getting below error when running `dep ensure` command ``` Solving failure: (1) failed to list versions for https://github.com/milagro-crypto/amcl: fatal: could not read Username for 'https://github.com': terminal prompts disabled : exit status 128 ``` `github.com/milagro-crypto/aml` doen't exist any workaround for this ?

metadata (Mon, 16 Sep 2019 07:12:46 GMT):
Hi all, I'm getting below error when running `dep ensure` command ``` Solving failure: (1) failed to list versions for https://github.com/milagro-crypto/amcl: fatal: could not read Username for 'https://github.com': terminal prompts disabled : exit status 128 ``` `github.com/milagro-crypto/amcl` doen't exist any workaround for this ?

Aniket.1 (Mon, 16 Sep 2019 07:27:33 GMT):
Hello Everyone, I am getting this error in the nodes of raft cluster. Can someone give some insights? ``` ```

Aniket.1 (Mon, 16 Sep 2019 07:27:33 GMT):
Hello Everyone, I am getting this error in the nodes of raft cluster. Can someone give some insights? ``` 2019-09-16 12:03:50.050 IST [orderer.consensus.etcdraft] consensusSent -> DEBU a29 Sending msg of 28 bytes to 1 on channel test-system-channel-name took 15.01µs 2019-09-16 12:03:50.050 IST [orderer.consensus.etcdraft] logSendFailure -> ERRO a2a Failed to send StepRequest to 1, because: aborted channel=test-system-channel-name node=2 2019-09-16 12:03:52.421 IST [orderer.common.cluster] Step -> DEBU a2b Connection from unidentified node(127.0.0.1:50582) 2019-09-16 12:03:52.421 IST [orderer.common.cluster] func1 -> WARN a2c Certificate of unidentified node from 127.0.0.1:50582 for channel test-system-channel-name expires in less than -2562047h47m16.854775808s ```

metadata (Mon, 16 Sep 2019 07:31:13 GMT):
Is `fabric-amcl` working fine? I'm getting this error. ``` /GoWorkspace/src/github.com/hyperledger/fabric-amcl$ ./createpkg.sh + rm -Rf amcl + export GOPATH=/home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl + GOPATH=/home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl + mkdir -p /home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl/src + set +e + go get github.com/milagro-crypto/amcl/version3/go # cd .; git clone https://github.com/milagro-crypto/amcl /home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl/src/github.com/milagro-crypto/amcl Cloning into '/home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl/src/github.com/milagro-crypto/amcl'... fatal: could not read Username for 'https://github.com': terminal prompts disabled package github.com/milagro-crypto/amcl/version3/go: exit status 128 + pushd /home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl/src/github.com/milagro-crypto/amcl/version3/go ./createpkg.sh: line 14: pushd: /home/alpha/GoWorkspace/src/github.com/hyperledger/fabric-amcl/src/github.com/milagro-crypto/amcl/version3/go: No such file or directory + echo 22 + python3 config64.py python3: can't open file 'config64.py': [Errno 2] No such file or directory + set -e + popd ./createpkg.sh: line 17: popd: directory stack empty ```

PhaniKrishna_MV (Mon, 16 Sep 2019 08:39:58 GMT):
Has joined the channel.

PhaniKrishna_MV (Mon, 16 Sep 2019 08:40:18 GMT):
Hi All, any one have experience on Hyper Ledger implementation on Kubernetes i need some help on Pod Mount where the peer pod is keep crashing

jonathan-blood (Mon, 16 Sep 2019 08:51:11 GMT):
Has joined the channel.

damir13 (Mon, 16 Sep 2019 09:48:32 GMT):
Greetings! I'm using kubernetes for deploying hyperledger fabric infrastructure. So far so good, with a lot of hiccups. One of those hiccups is enabling private data. Can you please lend me a hand? I'm using fabric 1.4.1 Orderers appear to be down ever since I added Application Capabilities to the configtx.yaml Here are the logs from the orderers: ``` 2019-09-13 08:54:04.815 UTC [orderer.common.cluster] loadVerifier -> INFO 002 Loaded verifier for channel systemchannel from config block at index 0 2019-09-13 08:54:04.815 UTC [orderer.common.server] initializeServerConfig -> INFO 003 Starting orderer with mutual TLS enabled 2019-09-13 08:54:04.823 UTC [orderer.common.server] initializeMultichannelRegistrar -> INFO 004 Not bootstrapping because of existing chains 2019-09-13 08:54:04.869 UTC [orderer.commmon.multichannel] checkResourcesOrPanic -> PANI 005 [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported panic: [channel systemchannel] config requires unsupported channel capabilities: Channel capability V1_4_1 is required but not supported: Channel capability V1_4_1 is required but not supported ```

damir13 (Mon, 16 Sep 2019 09:48:53 GMT):

configtx.txt

HumaAlam (Mon, 16 Sep 2019 10:55:43 GMT):
hi,i want to add transaction logic such that after adding an item its status is unapproved and after that only specific member must change the status of the item

HumaAlam (Mon, 16 Sep 2019 10:55:55 GMT):
in hyperledger comnposer

trevoro1 (Mon, 16 Sep 2019 11:08:23 GMT):
I have a question about CAs and MSPs. It is required for an MSP to have a CA? Once setup is the allocation of CAs all automatic?

simran (Mon, 16 Sep 2019 11:54:31 GMT):
hello guys

mastersingh24 (Mon, 16 Sep 2019 11:54:45 GMT):
not sure I understand the question?

simran (Mon, 16 Sep 2019 11:59:18 GMT):

Screenshot from 2019-09-16 17-27-43.png

simran (Mon, 16 Sep 2019 11:59:18 GMT):

Screenshot from 2019-09-16 17-27-43.png

simran (Mon, 16 Sep 2019 11:59:25 GMT):
atway E0916 11:57:59.570821696 580 ssl_transport_security.cc:636] Could not load any root certificate. E0916 11:57:59.570975581 580 ssl_transport_security.cc:1702] Cannot load server root certificates. E0916 11:57:59.571067939 580 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E0916 11:57:59.571162818 580 secure_channel_create.cc:152] Failed to create secure subchannel for secure name '34.205.143.244:9051' E0916 11:57:59.571256860 580 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-09-16T11:58:02.573Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://34.205.143.244:9051 2019-09-16T11:58:02.574Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://34.205.143.244:9051 2019-09-16T11:58:02.575Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://34.205.143.244:9051 Failed to submit transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://34.205.143.244:9051

alexortiz005 (Mon, 16 Sep 2019 13:00:59 GMT):
Has joined the channel.

alexortiz005 (Mon, 16 Sep 2019 13:01:00 GMT):
Hello

alexortiz005 (Mon, 16 Sep 2019 13:01:16 GMT):
is anyone here working with the node js client?

simran (Mon, 16 Sep 2019 13:04:54 GMT):
is anybody added pem file in org.json file

soumyanayak (Mon, 16 Sep 2019 13:55:41 GMT):
Hi All, In RAFT Orderer Set up (v1.4.3) , created 5 orderers and whiel creating a channel i am getting the below error- *Error: got unexpected status: SERVICE_UNAVAILABLE -- channel ordererchannel is not serviced by me* While creating genesis block i had given the below command - *configtxgen -profile LegalDescriptionGenesis -outputBlock ./legaldescription-genesis.block -channelID ordererchannel*

sterling729 (Mon, 16 Sep 2019 19:29:07 GMT):
Has joined the channel.

sterling729 (Mon, 16 Sep 2019 19:29:08 GMT):
Hello, more of a higher level question. When creating smartcontract chaincode, am I limited to what is defined in the ChaincodeStub? (i.e. https://fabric-shim.github.io/release-1.3/fabric-shim.ChaincodeStub.html). So I may only call function such as getState(), getTXID(), etc?

sterling729 (Mon, 16 Sep 2019 19:30:05 GMT):
...Or may I define my own variables on the ledger without using those stub functions?

mastersingh24 (Mon, 16 Sep 2019 21:07:59 GMT):
the stub functions are the only way you can access state ... you can write any other code you want to manipulate things in the chaincode, but the only way to actually get/put state is via those APIs

sterling729 (Mon, 16 Sep 2019 21:37:19 GMT):
Thanks Master Yoda. I'm guessing that the chaincode wasn't inteded to handle much more than storing key/value? Perhaps some math operations or reads from an API can be integrated before the write may occur? (Forgive my ignorance, but I'm trying to build a mini project with chaincode so I understand how to implement it better)

mastersingh24 (Mon, 16 Sep 2019 22:27:14 GMT):
oh ... well you can write any logic you want to manipulate the state after you call get and/or before you call put

mastersingh24 (Mon, 16 Sep 2019 22:28:02 GMT):
I just meant that the only way to store/retrieve state via the ledger is through the stub APIs

n_y (Tue, 17 Sep 2019 01:11:18 GMT):
Has joined the channel.

n_y (Tue, 17 Sep 2019 01:11:23 GMT):
Hello all, Is there any idea how to set ModPolicy of the channel in configtx.yaml? I can get the channel config after creation and update it. But I need to set it before channel creation.

zhanglongjing (Tue, 17 Sep 2019 03:06:49 GMT):
Has joined the channel.

ShubhneetChawla (Tue, 17 Sep 2019 04:34:58 GMT):
Hi , i am facing this issue can any one help me with this rror: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host" i am running the network with etcdraft concensus

Shubham-koli (Tue, 17 Sep 2019 05:22:54 GMT):
Hi

soumyanayak (Tue, 17 Sep 2019 05:29:09 GMT):
Anybody any update on the above error?

ankeshsomani (Tue, 17 Sep 2019 08:24:22 GMT):
Has joined the channel.

ankeshsomani (Tue, 17 Sep 2019 08:24:24 GMT):
Hi, how do i query the historical states from the ledger.can anyone provide me an example or link explaining the same

generak (Tue, 17 Sep 2019 09:08:53 GMT):
You can access the history database (if enabled) through the stub getHistoryForKey method. If you want to query blocks themselves, you can use channel.queryBlock methods if using the node SDK. For each write set per transaction in a block, a read set is given for what's written which contains a reference to the block containing the prior version of what was written. It's worth familiarising yourself with the decoded block structure - https://fabric-sdk-node.github.io/global.html#Block

generak (Tue, 17 Sep 2019 09:10:17 GMT):
Blocks can be queried by either block number, tansaction ID or hash

ahmad-raza (Tue, 17 Sep 2019 09:13:19 GMT):
Any one can help cause:upgrade proposal resulted in an error :: Error: chaincode registration failed: container exited with 254 Newer Chanicode version is installed on peers. But error while upgrading chaincode Fabric network is setup on IBM kubernetes Cluster

jmbong1906 (Tue, 17 Sep 2019 09:15:26 GMT):
Has joined the channel.

jmbong1906 (Tue, 17 Sep 2019 09:15:27 GMT):
Hi. I have a question. I am trying to use raft as the ordering mechanism for my orderers. I have deployed my fabric network across 2 VMs with an option of a third org added to the channel "mychannel". Each org is separated by a VM behind a private IP address. Everything works smoothly except in org3. All the docker containers in org3 (peers and orderers) can be brought up.

jmbong1906 (Tue, 17 Sep 2019 09:16:33 GMT):
Channel joining is also fine. However, when I check the docker logs of one of my orderers in org3, it gives me the following error message: 2019-09-17 09:16:06.289 UTC [comm.grpc.server] 1 -> INFO 13d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.208.1:47264 grpc.peer_subject="CN=orderer3b.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=3.493808ms 2019-09-17 09:16:07.217 UTC [core.comm] ServerHandshake -> ERRO 13e TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.208.1:47278 2019-09-17 09:16:07.271 UTC [core.comm] ServerHandshake -> ERRO 13f TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.208.1:47282 2019-09-17 09:16:08.820 UTC [core.comm] ServerHandshake -> ERRO 140 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.208.1:47286 2019-09-17 09:16:08.923 UTC [core.comm] ServerHandshake -> ERRO 141 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.208.1:47290 2019-09-17 09:16:11.122 UTC [core.comm] ServerHandshake -> ERRO 142 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=192.168.208.1:47294

KartikChauhan (Tue, 17 Sep 2019 09:52:31 GMT):
How can I install and instantiate a typescript chaincode? This is what I did so far to try to make it work: 1) Installed npm packages in local environment. 2) Compiled my typescript project to js. Chaincode installed successfully but during instantiation I got the error `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0`. I then removed all my ts files and kept only js files and package.json in the folder. Again, the chaincode installed successfully but got the above-mentioned error again during instantiation.

metadata (Tue, 17 Sep 2019 10:19:37 GMT):
Hi all, I'm getting ` Post https://localhost:7054/enroll: x509: certificate is valid for ca.seller.mytrade.com, not localhost" ` error when trying to enrol the user after searching I found out that I have to add below config in `docker-compose.yaml` file under `ca` section ``` - FABRIC_CA_SERVER_CSR_CN=ca.seller.mytrade.com - FABRIC_CA_SERVER_CSR_HOSTS=ca.seller.mytrade.com,localhost ``` but still I'm getting the same result. Please help Do I have to generate all the certs again?

AdityaDhand (Tue, 17 Sep 2019 10:25:42 GMT):
hii i am using composer client node.js sdk to store data in blockchain and i have total 5 channels now i want to add data to channel passed from frontend so how can i acheive this thing please tell me

gaila (Tue, 17 Sep 2019 13:59:34 GMT):
Has joined the channel.

gaila (Tue, 17 Sep 2019 14:00:14 GMT):
getaddrinfo

someguy (Tue, 17 Sep 2019 14:55:02 GMT):
Does anyone know what p2p framework or library does the HL fabric use?

someguy (Tue, 17 Sep 2019 14:55:02 GMT):
Hello, Does anyone know what p2p framework or library does the HL fabric use?

mastersingh24 (Tue, 17 Sep 2019 15:01:33 GMT):
none really ... communication between clients and peers/orderers, peers and orderers/other peers and orderers to orderers uses gRPC

mastersingh24 (Tue, 17 Sep 2019 15:01:33 GMT):
none really ... communication between clients and peers/orderers, peers and orderers/other peers and orderers to orderers uses gRPC services

someguy (Tue, 17 Sep 2019 15:16:34 GMT):
hmm ok, got ya

someguy (Tue, 17 Sep 2019 15:16:40 GMT):
thanks

someguy (Wed, 18 Sep 2019 01:01:10 GMT):
hello guys , one quick question. How long can a ledger grow?

someguy (Wed, 18 Sep 2019 01:01:23 GMT):
how much size can the peer take?

Shubham-koli (Wed, 18 Sep 2019 05:02:58 GMT):
Hi ! I am trying to generate the transaction for my chaincode with fabric-client. I am facing an issue `Created a transaction ID: c2eb8f3d3294c50e7377049616ce629ed68777e9e4861e5b83b4e6f9ef02ac9d` `Successfully sent Proposal and received response: Status - 200` `Registered transaction listener with the peer event service for transaction ID:c2eb8f3d3294c50e7377049616ce629ed68777e9e4861e5b83b4e6f9ef02ac9d` `Sending endorsed transaction to the orderer` `Unable to invoke ::Error: No orderers assigned to the channel` I can generate the transaction to the same chaincode using fabric-network sdk.

Shubham-koli (Wed, 18 Sep 2019 05:02:58 GMT):
Hi ! I am trying to generate the transaction for my chaincode with fabric-client sdk I am facing an issue `Created a transaction ID: c2eb8f3d3294c50e7377049616ce629ed68777e9e4861e5b83b4e6f9ef02ac9d` `Successfully sent Proposal and received response: Status - 200` `Registered transaction listener with the peer event service for transaction ID:c2eb8f3d3294c50e7377049616ce629ed68777e9e4861e5b83b4e6f9ef02ac9d` `Sending endorsed transaction to the orderer` `Unable to invoke ::Error: No orderers assigned to the channel` I can generate the transaction to the same chaincode using fabric-network sdk.

Shubham-koli (Wed, 18 Sep 2019 05:03:14 GMT):

Screenshot from 2019-09-18 10-28-46.png

abel23 (Wed, 18 Sep 2019 05:35:31 GMT):
How do we create a login for users. In the example code, we run the registerUser.js and the file is stored in a wallet. Are all users in an org saved in the same wallet? The node js backend requires the file, So should the files be uploaded for a signin or is it up to us to build a way to make a login? Is there an Expected way.

abel23 (Wed, 18 Sep 2019 05:35:31 GMT):
How do we create a login for users. In the example code, we run the registerUser.js and the file is stored in a wallet. Are all users in an org saved in the same wallet? The node js backend requires the file, So should the files be uploaded for a signin or is it up to us to build a way to make a login? Is there an Expected way. Should the files be kept against a username and password in a database to make the sign in process simpler?

abel23 (Wed, 18 Sep 2019 05:35:31 GMT):
How do we create a login for users. In the example code, we run the registerUser.js and the file is stored in a wallet. Are all users in an org saved in the same wallet? The node js backend requires the file, So should the files be uploaded for a signin or is it up to us to build a way to make a login? Is there an Expected way. Should the files be kept against a username and password in a database to make the sign in process simpler? Also, in fabric, the registering of a user is supposed to be done by an admin right?

ShubhneetChawla (Wed, 18 Sep 2019 07:05:27 GMT):
Hiii All, follow this for your issue .

abel23 (Wed, 18 Sep 2019 07:10:11 GMT):
Centrally stored wallet or Locally stored wallet? Also seeing it from the organization POV, the user doesn't require it for their own purposes. All operation are on behalf of the company. But it is a single point of failure. Do you keep an extra copy of wallets in case of a disaster. Or just create new id in replacement for the lost ones. Any thoughts and opinions on this?

simran (Wed, 18 Sep 2019 09:04:53 GMT):

Screenshot from 2019-09-18 14-31-19.png

DLTChacha (Wed, 18 Sep 2019 09:46:56 GMT):
you mean you are seeing fabric-client folder in node modulesand still getting this?

ASAPBLOCKY (Wed, 18 Sep 2019 10:22:05 GMT):
Is there are list or can somebody tell me the hf.x attributes for the registration process in Fabric CA ?

SatheeshNehru (Wed, 18 Sep 2019 10:48:48 GMT):
When deploying fabric on kubernetes is it recommended to have peer and its couch db inside a single pod(as they are dependent)?? doing this will have any drawbacks?

damir13 (Wed, 18 Sep 2019 10:50:20 GMT):
Are there any tutorials on how to use private data? Or tutorials on what application capabilities are necessary for private data to work?

damir13 (Wed, 18 Sep 2019 10:50:20 GMT):
Are there any tutorials on how to use private data? Or tutorials on what application capabilities are necessary for private data to work? Chaincode instantiation is a huge problem for me when I try to incorporate private data in it.

SatheeshNehru (Wed, 18 Sep 2019 10:52:05 GMT):
https://github.com/hyperledger/fabric-sdk-java/blob/8044bac1bfe9baf9d6360b067e0d6b5445cc953d/src/test/java/org/hyperledger/fabric/sdkintegration/PrivateDataIT.java

damir13 (Wed, 18 Sep 2019 10:53:31 GMT):
@SatheeshNehru I edited my question. The problems are in chaincode instantiation.

SatheeshNehru (Wed, 18 Sep 2019 11:17:26 GMT):
#fabric-sdk-java #fabric-java-chaincode

razasikander (Wed, 18 Sep 2019 11:21:22 GMT):
Hello guys i have a network setup of 1orderer and 3 channels with 2 peer each running in my machine. How can i get the network details like organizations name , peer names with help of node js

delao (Wed, 18 Sep 2019 12:53:51 GMT):
You can have a look on Hyperledger Explorer, it might suit your needs :)

simran (Wed, 18 Sep 2019 12:55:32 GMT):

Screenshot from 2019-09-18 17-30-13.png

nleut (Wed, 18 Sep 2019 14:59:45 GMT):
Has joined the channel.

someguy (Wed, 18 Sep 2019 21:13:33 GMT):

damm.png

SunilGopinath1 (Wed, 18 Sep 2019 23:40:57 GMT):
Has joined the channel.

SunilGopinath1 (Wed, 18 Sep 2019 23:40:58 GMT):
hi everyone, I am trying to find out whether a transaction is committed upon a successful return from PutState(). Is there any documentation or links in this chat? I see from interfaces.go that "PutState doesn't effect the ledger until the transaction is validated and successfully committed." but at what point do we get an OK from PutState()

razasikander (Thu, 19 Sep 2019 03:53:27 GMT):
okay thank you :D

HLFPOC (Thu, 19 Sep 2019 04:36:36 GMT):
Hello Team, Is there any way to archive data in Hyperledger fabric ? There is already a JIRA raised for this (https://jira.hyperledger.org/browse/FAB-106). Any update by when can this feature be implemented ? Or is there any turnaround to support this functionality in existing versions?

ShubhneetChawla (Thu, 19 Sep 2019 05:48:39 GMT):
configuration in configtx.yaml is creating this problem check channel capabilities

simran (Thu, 19 Sep 2019 07:10:22 GMT):

Screenshot from 2019-09-19 10-30-27.png

soumyanayak (Thu, 19 Sep 2019 09:29:43 GMT):
This was resolved i mapped the TLS certificates correctly and it worked

razasikander (Thu, 19 Sep 2019 11:16:06 GMT):
hello i wanted to know how does load balancing happen in the hyperledger fabric in the network. Do we need to write something according to our need or it happens automatically

trevoro1 (Thu, 19 Sep 2019 13:32:43 GMT):
If I have local MSPs - are they are able to define channels at the local level so that privacy is controlled between OUs - this design will have local MSP with one OU?

trevoro1 (Thu, 19 Sep 2019 13:37:21 GMT):
if I am not using Composer and not a BaaS - to add a new member can this be done by not insisting existing members vote on the new member, ie for a central authority to control and decide the new addition? I am using the OSS version, not IBM etc.

generak (Thu, 19 Sep 2019 13:41:09 GMT):
You could define channel admins as only being admins in a particular organisation rather than using the default MAJORITY ImplictMeta in configtx. I think you can make finer adjustments if you get the JSON decoded protobuffer that results from configtxgen.

Bentipe (Thu, 19 Sep 2019 14:36:29 GMT):
yes, what can I help you with?

Adam_Hardie (Thu, 19 Sep 2019 15:39:55 GMT):
hi there. I am configuring my orderer for image 1.4.3 however my orderer hits the error Orderer capability V1_4_3 is required but not supported: Orderer capability V1_4_3 is required but not supported is my capabilities section incorrect? Global: &ChannelCapabilities V1_4_3: true Orderer: &OrdererCapabilities V1_4_3: true Application: &ApplicationCapabilities V1_4_3: true thanks

soumyanayak (Thu, 19 Sep 2019 15:57:07 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/configtx.yaml this is the configtx.yaml for 1.4.3. Change as per this

Fama 5 (Fri, 20 Sep 2019 02:32:23 GMT):
Has joined the channel.

Fama 5 (Fri, 20 Sep 2019 02:32:24 GMT):
Hi

Fama 5 (Fri, 20 Sep 2019 02:32:50 GMT):
Is it possible to store the document in fabric ?

hmoazzem (Fri, 20 Sep 2019 02:34:51 GMT):
Has joined the channel.

hmoazzem (Fri, 20 Sep 2019 02:37:12 GMT):
Hello, I'm a novice in HLF and Kubernetes stuff. I'd very much appreciate if anyone could help me with this https://stackoverflow.com/questions/58020988/hyperledger-fabric-orderer-ca-admin-user-registration-fails.

soumyanayak (Fri, 20 Sep 2019 02:59:05 GMT):
can you please post the error logs you are getting

hmoazzem (Fri, 20 Sep 2019 03:09:53 GMT):
``` ```

hmoazzem (Fri, 20 Sep 2019 03:11:10 GMT):

error.txt

Fama 5 (Fri, 20 Sep 2019 03:11:16 GMT):
Is it possible to store the document files using fabric ? or should i need to relay on other kind like ipfs

Fama 5 (Fri, 20 Sep 2019 03:11:26 GMT):
?

hmoazzem (Fri, 20 Sep 2019 03:12:40 GMT):
Yes, you can store whatever you want, but storing large files is not a good idea

Fama 5 (Fri, 20 Sep 2019 03:18:54 GMT):
thank you @hmoazzem, I am new to fabric, Is there any data size limit while uploading the file or if there is any documentation link will be helpful.

simran (Fri, 20 Sep 2019 04:43:28 GMT):

Screenshot from 2019-09-20 09-59-01.png

soumyanayak (Fri, 20 Sep 2019 04:46:47 GMT):
fabric-ca-client register -d --id.name admin-org0 --id.secret org0adminpw --id.type admin --id.attrs "hf.Registrar.Roles=client,hf.Registrar.Attributes=*,hf.Revoker=true,hf.GenCRL=true,admin=true:ecert,abac.init=true:ecert" -u http://$SERVICE_DNS:7054 Just try once with the above

knagware9 (Fri, 20 Sep 2019 06:01:48 GMT):
There is not such limit but uploading big file can decrease the ledger performance ..anyway 99MB is the blocksize defined in fabric

knagware9 (Fri, 20 Sep 2019 06:03:28 GMT):
absolute max size is 99MB right based on configtx.yaml BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 99 MB PreferredMaxBytes: 512 KB

umersaleem (Fri, 20 Sep 2019 07:18:52 GMT):

9-20-2019 12-17-12 PM.png

umersaleem (Fri, 20 Sep 2019 07:19:05 GMT):
am still stuck on it

Fama 5 (Fri, 20 Sep 2019 07:20:03 GMT):
thank you @knagware9 ,may i can get any links or documentation related to file upload in fabric.

knagware9 (Fri, 20 Sep 2019 09:11:53 GMT):
There is not such link, but here in configtx.yaml you can configure block size.

mastersingh24 (Fri, 20 Sep 2019 09:30:55 GMT):
Looks like you are running on Windows?

mastersingh24 (Fri, 20 Sep 2019 09:31:17 GMT):
You cannot use localhost to access Docker containers on Windows

mastersingh24 (Fri, 20 Sep 2019 09:31:48 GMT):
You cannot use localhost to access Docker containers on Windows

mastersingh24 (Fri, 20 Sep 2019 09:32:03 GMT):
Are you running Docker Toolbox or Docker for Windows?

Fama 5 (Fri, 20 Sep 2019 09:43:25 GMT):
Thank you.

umersaleem (Fri, 20 Sep 2019 09:58:32 GMT):
yes am using docker

mastersingh24 (Fri, 20 Sep 2019 11:39:37 GMT):
on Windows?

mastersingh24 (Fri, 20 Sep 2019 11:39:59 GMT):
that's what it looks like

mastersingh24 (Fri, 20 Sep 2019 11:40:27 GMT):
and are you running Windows 7 / Docker Toolbox or Windows 10 / Docker for Windows ?

umersaleem (Fri, 20 Sep 2019 11:52:40 GMT):
window 10 with docker

mastersingh24 (Fri, 20 Sep 2019 12:09:42 GMT):
hmm ... should work with Docker for Windows ...

mastersingh24 (Fri, 20 Sep 2019 12:10:18 GMT):
Can you show the output of: `docker ps` `netstat -a -n -o -p tcp | findstr LISTENING`

umersaleem (Fri, 20 Sep 2019 12:21:32 GMT):

9-20-2019 5-21-16 PM.png

trevoro1 (Fri, 20 Sep 2019 12:27:24 GMT):
I posted this - has anyone any ideas - https://stackoverflow.com/questions/58024673/how-are-new-members-added-into-hyperledger-fabric-1-4

generak (Fri, 20 Sep 2019 12:58:43 GMT):
Those policies don't give enough information. It comes down to the channel admins - by default, the channel admins policy is MAJORITY Admins. So if you have a single organisation and you're adding a second, then only the one organisation administrator will need to 'approve' the addition of another.

generak (Fri, 20 Sep 2019 12:59:53 GMT):
New organisations/MSPs would need to be defined in a config transaction which would take place as a config update on the channel.

generak (Fri, 20 Sep 2019 13:00:57 GMT):
This gives some high level info https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html though this can be done programmatically through Node SDK pretty easily. There's some test code on the Fabric node SDK repo which gives an example.

generak (Fri, 20 Sep 2019 13:01:52 GMT):
As you add more orgs, the config transaction would need to be signed by more parties. However if you want to keep it centralised for whatever reason, you could just define channel admins as only those of a particular organisation

trevoro1 (Fri, 20 Sep 2019 13:14:48 GMT):
is the answer here to use OU - organizational units?

generak (Fri, 20 Sep 2019 13:31:18 GMT):
Maybe, I've not looked too much into OUs and how permissions would apply. What's the business case behind this?

trevoro1 (Fri, 20 Sep 2019 13:39:31 GMT):
basically the issue here is that we want orgs to join but not be subject to any kind of voting or approval from existing MSPs. Hence one MSP invites a "friend" and that org is automatically included because that MSP has made that decision.

bhanukandregula (Fri, 20 Sep 2019 16:01:09 GMT):
Hello mates, I'm finding for Hyperledger Fabric + IPFS solutions, can someone help me to find and where to start explorations. Thank you.

KaseyAlusi (Fri, 20 Sep 2019 17:06:57 GMT):
Hi, does anyone recommendations on why I would want to run non-endorsing peers? It seems like a waste of resources?

KaseyAlusi (Fri, 20 Sep 2019 17:06:57 GMT):
Hi, does anyone have recommendations on why I would want to run non-endorsing peers? It seems like a waste of resources?

knagware9 (Fri, 20 Sep 2019 17:11:32 GMT):
some peer doesnt require to participate in endorsment or may be just they used for query function only.

KaseyAlusi (Fri, 20 Sep 2019 17:12:43 GMT):
So really only if the network doesn't want that peer to be able to endorse? Or if the network is saturated with reads, we could have non-endorsing peer to help take some load off?

yacovm (Fri, 20 Sep 2019 17:12:53 GMT):
the former

yacovm (Fri, 20 Sep 2019 17:13:00 GMT):
queries are implemented as endorsements too

KaseyAlusi (Fri, 20 Sep 2019 17:13:12 GMT):
Oh interesting

yacovm (Fri, 20 Sep 2019 17:13:28 GMT):
but yeah - generally, if you have a chaincode that is not in the endorsement poliy, it makes no sense to install the chaincode on it if you're not using it even for queries

KaseyAlusi (Fri, 20 Sep 2019 17:13:29 GMT):
So from a client perspective, is a non-endorsing peer useless?

yacovm (Fri, 20 Sep 2019 17:13:39 GMT):
not quite

yacovm (Fri, 20 Sep 2019 17:13:46 GMT):
you can still receive events from this peer

yacovm (Fri, 20 Sep 2019 17:13:55 GMT):
and use it for discovery

KaseyAlusi (Fri, 20 Sep 2019 17:14:27 GMT):
That makes sense, thank you!!

Abhishekkishor (Fri, 20 Sep 2019 18:36:43 GMT):
Has joined the channel.

Koushik (Fri, 20 Sep 2019 20:48:09 GMT):
Hi guys, has anyone experienced this error when creating a channel with raft using Fabric-CA

Koushik (Fri, 20 Sep 2019 20:48:11 GMT):
Error: got unexpected status: SERVICE_UNAVAILABLE -- channel testchainid is not serviced by me

Koushik (Fri, 20 Sep 2019 20:50:56 GMT):
I am able to successfully create a channel when using cyrptogen to generate the certs but not when using Fabric-CA

yacovm (Fri, 20 Sep 2019 21:21:44 GMT):
@Koushik this means that the orderer doesnt find its TLS certificate within the genesis block of testchainid

Koushik (Fri, 20 Sep 2019 21:22:06 GMT):
kk

yacovm (Fri, 20 Sep 2019 21:22:25 GMT):
Raft orderers deduce if they serve a channel if their TLS certificate is within the consenter set of that channel

AshutoshKumar7 (Sat, 21 Sep 2019 06:47:22 GMT):
Hi Is there any example for distributed network where client applications sit in different networks , peers are across organizations ? Most of the examples I see use same docker network for all . I am looking for a real life use case example .

prashantmi (Sun, 22 Sep 2019 14:10:16 GMT):
Has joined the channel.

prashantmi (Sun, 22 Sep 2019 14:10:57 GMT):

cmd screenchot- September 22, 2019 7:40 PM

francisco-rojas (Sun, 22 Sep 2019 14:11:57 GMT):
Has joined the channel.

prashantmi (Sun, 22 Sep 2019 14:13:09 GMT):
i am done with all the prerequisites node, npm, docker, python, curl, and few cmd commands all done properly, so can anybody tell me what's causing this

francisco-rojas (Sun, 22 Sep 2019 14:15:30 GMT):
what docker version do you have? I recently did this setup (though in MacOS) and didn´t have any problems ``` $ docker -v Docker version 19.03.1, build 74b1e89 ```

prashantmi (Sun, 22 Sep 2019 14:19:52 GMT):

Clipboard - September 22, 2019 7:48 PM

prashantmi (Sun, 22 Sep 2019 14:22:42 GMT):
only Docker Images is not installed rest is ok i think

prashantmi (Sun, 22 Sep 2019 14:31:17 GMT):
your docker was set to windows container or linux container

prashantmi (Sun, 22 Sep 2019 14:31:53 GMT):
docker version 19.03.2, docker compose 1.24.1

francisco-rojas (Sun, 22 Sep 2019 14:32:29 GMT):
I just installed docker in my machine (MacOS) then cloned the repo and installed the images following the commands in the guides

francisco-rojas (Sun, 22 Sep 2019 14:32:40 GMT):
what command did you run when you got the error?

prashantmi (Sun, 22 Sep 2019 14:33:52 GMT):
curl -sSL http://bit.ly/2ysbOFE | bash -s

prashantmi (Sun, 22 Sep 2019 14:34:23 GMT):
as stated, it'll do what's required

prashantmi (Sun, 22 Sep 2019 14:34:43 GMT):
install binaries and clone repo.

francisco-rojas (Sun, 22 Sep 2019 14:35:26 GMT):
can you send me the link to the guide you are following

prashantmi (Sun, 22 Sep 2019 14:35:45 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/install.html

prashantmi (Sun, 22 Sep 2019 14:36:03 GMT):
the getting started one

prashantmi (Sun, 22 Sep 2019 14:39:43 GMT):
is there a way to download these docker images externally and map it, if the above script's not working

francisco-rojas (Sun, 22 Sep 2019 14:42:46 GMT):
I am not sure, I just started learning Fabric a few weeks ago. Did you check this link: https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#id1 ?

prashantmi (Sun, 22 Sep 2019 14:46:06 GMT):
yes i have followed all these steps

francisco-rojas (Sun, 22 Sep 2019 14:47:59 GMT):
how about you try to use docker outside of fabric just to confirm that the installation works?

francisco-rojas (Sun, 22 Sep 2019 14:51:27 GMT):
something like `docker run -i -t ubuntu /bin/bash`

prashantmi (Sun, 22 Sep 2019 15:03:10 GMT):
docker is working fine i tried that command it started pulling the image for library/ubuntu

francisco-rojas (Sun, 22 Sep 2019 15:04:31 GMT):
in that case how about you try following this https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

prashantmi (Sun, 22 Sep 2019 15:06:36 GMT):
i don't think it'll work without the fabric docker images

francisco-rojas (Sun, 22 Sep 2019 15:06:55 GMT):
if everything is installed correctly I guess it should be able to get the required images for that app

prashantmi (Sun, 22 Sep 2019 15:08:10 GMT):
ok i'll , thanks :slight_smile:

vdods (Mon, 23 Sep 2019 04:30:22 GMT):
Hi all, question about chaincode -- how would I go about deleting all key/value pairs from the ledger (or analogously a private collection) for a given partial composite key? Is there a way more efficient than querying all the keys and then DelState/DelPrivateData'ing each one?

benjamin.verhaegen (Mon, 23 Sep 2019 08:00:56 GMT):
Does anyone know how to use environment variables in Docker-compose? I keep getting this error: Invalid service name 'orderer5.$domain' - only [a-zA-Z0-9\._\-] characters are allowed

Adam_Hardie (Mon, 23 Sep 2019 09:26:16 GMT):
i am trying to setup a network with TLS . in some examples, i see CORE_PEER_TLS_CLIENTROOTCAS_FILES = tlsca.company-cert.pem and others it is tls/ca.crt [these files are mounted using configtx cryptogen output folders] which is the correct one?

ShubhneetChawla (Mon, 23 Sep 2019 11:07:56 GMT):
HI any links or lead for multinode setup

sudhasakshi (Mon, 23 Sep 2019 11:50:57 GMT):
how can I call more than one chaincode by using nodejs

sudhasakshi (Mon, 23 Sep 2019 11:56:49 GMT):
how can we call different chaincode once by using nodejs in fabric

simran (Mon, 23 Sep 2019 12:10:48 GMT):

Screenshot from 2019-09-20 18-49-22.png

MoonVijh (Mon, 23 Sep 2019 12:18:52 GMT):
Has joined the channel.

MoonVijh (Mon, 23 Sep 2019 12:18:53 GMT):
I am getting an error on channel create command "Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied", Any ideas regarding the same?

MoonVijh (Mon, 23 Sep 2019 12:20:13 GMT):
I have created my own network based on byfn network

MoonVijh (Mon, 23 Sep 2019 12:20:23 GMT):
If required, I can share my code

MoonVijh (Mon, 23 Sep 2019 12:20:41 GMT):
I have 4 organizations with 2 peers each.

MoonVijh (Mon, 23 Sep 2019 12:21:17 GMT):
The network is based upon BYFN as the template

simran (Mon, 23 Sep 2019 13:26:22 GMT):

Screenshot from 2019-09-23 18-47-11.png

simran (Mon, 23 Sep 2019 13:26:59 GMT):
when u instantiate the chaincode peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mychaincode -l node -v 1.0 -c '{"Args":[]}' -P "AND ('Org1MSP.member','Org2MSP.member')"

simran (Mon, 23 Sep 2019 13:34:31 GMT):

Screenshot from 2019-09-23 19-04-08.png

trevoro1 (Mon, 23 Sep 2019 13:55:07 GMT):
has someone the sample json file to create when using Hyperledger Explorer? I saw a lot a variations online? I am just working on byfn.

trevoro1 (Mon, 23 Sep 2019 13:56:15 GMT):
I saw this in github - https://github.com/hyperledger/blockchain-explorer/blob/master/app/platform/fabric/config.json

trevoro1 (Mon, 23 Sep 2019 14:19:25 GMT):
I found the repo and get this now - (node:4368) UnhandledPromiseRejectionWarning: error: password authentication failed for user "postgres"

wunderbarb (Mon, 23 Sep 2019 16:53:19 GMT):
Has joined the channel.

vsadriano (Mon, 23 Sep 2019 19:57:41 GMT):
Hi guys! Where can I see about hyperledger infra max size?

vsadriano (Mon, 23 Sep 2019 19:57:41 GMT):
Hi guys! Where can I see about hyperledger fabric infra max size?

bmatsuo (Mon, 23 Sep 2019 23:50:03 GMT):
Has joined the channel.

JeancarloBarrios (Tue, 24 Sep 2019 03:45:47 GMT):
Has joined the channel.

JeancarloBarrios (Tue, 24 Sep 2019 03:45:48 GMT):
does anyone know when fabric will support go for 1.4?

JoeAngel.tw (Tue, 24 Sep 2019 04:24:34 GMT):
Has joined the channel.

simran (Tue, 24 Sep 2019 04:51:38 GMT):

Screenshot from 2019-09-24 10-20-36.png

BrianKabiru (Tue, 24 Sep 2019 06:47:32 GMT):

Screenshot from 2019-09-24 09-46-32.png

BrianKabiru (Tue, 24 Sep 2019 06:47:32 GMT):
Has joined the channel.

BrianKabiru (Tue, 24 Sep 2019 06:47:49 GMT):
Hi guys, can anyone help me here ?

HLFPOC (Tue, 24 Sep 2019 07:22:04 GMT):
Before the execution of end-to-end tests, make sure all network components (peers/orderer/couchdb etc) are running without any error.

HLFPOC (Tue, 24 Sep 2019 07:22:28 GMT):
From the screenshot, seems like peer container is in exit state

BrianKabiru (Tue, 24 Sep 2019 07:23:22 GMT):
I have tried starting Fabric but it still doesn't get to the "END" part where everything is ok

HLFPOC (Tue, 24 Sep 2019 07:23:55 GMT):
Checking the logs of peer and orderer container might help

BrianKabiru (Tue, 24 Sep 2019 07:24:09 GMT):
How do you do that ?

HLFPOC (Tue, 24 Sep 2019 07:24:22 GMT):
docker logs

BrianKabiru (Tue, 24 Sep 2019 07:24:42 GMT):
Will try then come back if I run into any other issue. Thanks

HLFPOC (Tue, 24 Sep 2019 07:24:51 GMT):
sure

Utsav_Solanki (Tue, 24 Sep 2019 07:26:56 GMT):
what is default path of couchdb in hyperledger fabric repo, i want to do voolume mapping

Utsav_Solanki (Tue, 24 Sep 2019 07:26:56 GMT):
what is default path of couchdb in hyperledger fabric repo, i want to do volume mapping

Adam_Hardie (Tue, 24 Sep 2019 10:38:10 GMT):
does anyone have a simple , working RAFT config I can use

Adam_Hardie (Tue, 24 Sep 2019 10:38:49 GMT):
I am stuck getting a channel deployed, and byfn is very convoluted. would be good to have a simple sample with just Raft / TLS setup instead of everything in a single script

mrudav.shukla (Tue, 24 Sep 2019 13:21:22 GMT):
Is it possible to replace a peer’s blocks? I have two peers and out of some reason, there was a mismatch in the state database between the peers and one of the peer started giving MVCC read conflict. So while one peer marked transactions as valid the other kept on marking the transactions as invalid. I read https://stackoverflow.com/a/54623103/4110629 which suggested to delete couchdb’s data directory. I did that. However, this builds up the state database using the peer’s blockchain itself and thus the state database is still different. So is it possible and advisable to replace peer’s blockchain with other peers blockchain?

umersaleem (Tue, 24 Sep 2019 13:27:42 GMT):
npm test i facing these errors

umersaleem (Tue, 24 Sep 2019 13:28:02 GMT):

9-24-2019 6-26-31 PM.png

umersaleem (Tue, 24 Sep 2019 13:28:11 GMT):

9-24-2019 6-26-46 PM.png

umersaleem (Tue, 24 Sep 2019 13:28:19 GMT):

9-24-2019 6-26-57 PM.png

umersaleem (Tue, 24 Sep 2019 13:29:07 GMT):
fabric-sdk-node

trevoro1 (Tue, 24 Sep 2019 13:47:18 GMT):
https://stackoverflow.com/questions/49588007/error-when-creating-an-new-channel-bad-request-error-authorizing-update-err

trevoro1 (Tue, 24 Sep 2019 13:47:34 GMT):
Has anyone any idea about how to solve this problem?

Fama 5 (Wed, 25 Sep 2019 03:26:27 GMT):
hi everyone is it possible to update the genesis file once it is started

RahulEth (Wed, 25 Sep 2019 05:31:49 GMT):
i am working on fabric node-sdk and trying to override the hostname return by service discovry. but could not find any method. service discovery always trying to connect with localhost:7051 but i am running my peer at localhost:7055. so want it to connect with localhost:7055. do anybody have any idea how to do it.

AshutoshKumar7 (Wed, 25 Sep 2019 05:50:39 GMT):
does your cryptotx.yaml point to 7055?

knagware9 (Wed, 25 Sep 2019 06:26:42 GMT):
yes ,,,we can update the config block and config block contains the genesis file details called as genesis block

Fama 5 (Wed, 25 Sep 2019 06:31:37 GMT):
thank you, if i update the genesis once the fabric is started and running, the state in ledger doesn't break

knagware9 (Wed, 25 Sep 2019 06:33:24 GMT):
It will add new config block in chain

AshutoshKumar7 (Wed, 25 Sep 2019 06:43:26 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/config_update.html

AshutoshKumar7 (Wed, 25 Sep 2019 06:45:13 GMT):
Genesis block is not updated. Each time the configuration of a channel changes it is done through a new configuration block, with the latest configuration block representing the current channel configuration

Fama 5 (Wed, 25 Sep 2019 06:55:23 GMT):
okay, i understan thank you @AshutoshKumar7,@knagware9

RahulEth (Wed, 25 Sep 2019 06:58:17 GMT):
hi @AshutoshKumar7 inside docker i am using port 7051

AlviseBaggio (Wed, 25 Sep 2019 07:04:04 GMT):
Has joined the channel.

AlviseBaggio (Wed, 25 Sep 2019 07:04:06 GMT):
Hy everyone, first of all sorry for bothering, secondly I hope this is the right place for my question.

MarcoIppolito (Wed, 25 Sep 2019 07:12:01 GMT):
Has joined the channel.

MarcoIppolito (Wed, 25 Sep 2019 07:12:03 GMT):
Hi all, following the indications here: https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#configuring-the-database I'm trying to understand how to correctly set Fabric-CA with a PostgreSQL-11 database in Ubuntu 18.04.02 Server Edition. I created a postgresql-11 db to which I can connect with SSL: (base) marco@pc:~$ psql --cluster 11/fabmnet -h 127.0.0.1 -d fabmnetdb -U fabmnet_admin Password for user fabmnet_admin: psql (11.5 (Ubuntu 11.5-1.pgdg18.04+1)) SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off) Type "help" for help. fabmnetdb=> \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+---------------+----------+---------+---------+----------------------- fabmnetdb | fabmnet_admin | UTF8 | C.UTF-8 | C.UTF-8 | postgres | postgres | UTF8 | C.UTF-8 | C.UTF-8 | template0 | postgres | UTF8 | C.UTF-8 | C.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | C.UTF-8 | C.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (4 rows) fabmnetdb=> but when trying to start a fabric-ca-server : (base) marco@pc:~/fabric/fabric-ca$ fabric-ca-server start -b admin:adminpw 2019/09/23 11:54:20 [INFO] Configuration file location: /home/marco/fabric/fabric-ca/fabric-ca-server-config.yaml 2019/09/23 11:54:20 [INFO] Starting server in home directory: /home/marco/fabric/fabric-ca 2019/09/23 11:54:20 [INFO] Server Version: 1.4.4 2019/09/23 11:54:20 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2019/09/23 11:54:20 [INFO] The CA key and certificate already exist 2019/09/23 11:54:20 [INFO] The key is stored by BCCSP provider 'SW' 2019/09/23 11:54:20 [INFO] The certificate is at: /home/marco/fabric/fabric-ca/ca-cert.pem 2019/09/23 11:54:20 [WARNING] Failed to connect to database 'fabmnetdb' 2019/09/23 11:54:20 [WARNING] Failed to connect to database 'postgres' 2019/09/23 11:54:20 [WARNING] Failed to connect to database 'template1' 2019/09/23 11:54:20 [ERROR] Error occurred initializing database: Failed to connect to Postgres database. Postgres requires connecting to a specific database, the following databases were tried: [fabmnetdb postgres template1]. Please create one of these database before continuing 2019/09/23 11:54:20 [INFO] Home directory for default CA: /home/marco/fabric/fabric-ca 2019/09/23 11:54:20 [INFO] Operation Server Listening on 127.0.0.1:9443 2019/09/23 11:54:20 [INFO] Listening on http://0.0.0.0:7054 This is how I set the pg_hba.conf file in the fabmnet postgresql cluster : (base) marco@pc:~$ sudo -su postgres (base) postgres@pc:~$ nano /etc/postgresql/11/fabmnet/pg_hba.conf Unable to create directory /home/marco/.local/share/nano/: Permission denied It is required for saving/loading search history or cursor positions. Press Enter to continue # TYPE DATABASE USER ADDRESS METHOD # Database administrative login by Unix domain socket local all postgres peer # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all peer # IPv4 local connections: host all all 127.0.0.1/32 md5 # Allow connections from 10.1.2.0/24 subnet only to fabric_ca_db for fabric_ca_user hostssl fabmnetdb fabmnet_admin 10.1.2.0/24 cert # IPv6 local connections: host all all ::1/128 md5 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all peer host replication all 127.0.0.1/32 md5 host replication all ::1/128 md5 And this is the db's configuration in (base) marco@pc:~$ nano ./fabric/fabric-ca/fabric-ca-server-config.yaml : db: type: postgres datasource: host=localhost port=5433 user=fabmnet_admin password=pwd dbname=fabmnetdb sslmode=verify-full How to correctly set Fabric-CA in order to make it see and use PostgreSQL-11 database? Looking forward to your kind help Marco

AlviseBaggio (Wed, 25 Sep 2019 07:22:49 GMT):
Hy everyone, first of all, sorry for bothering, secondly I hope this is the right place for my question. I am trying to understand if it is possible to free up storage space by deleting the "old" part of the transaction log and data related to it, or by other techniques I am not aware of. Basically, let us say I have a device with limited storage capacity and that transaction happened more than a certain period before (e.g. 4 months) do not have any more importance since already handled off-chain after verification trough the "blockchain" (HLF) itself. Moreover, all the different organizations in the network are ok in doing this operation, basically, freeing up storage at peer levels. There is any solution related to something similar? What I was concerned for is that I must keep all the configuration blocks and the genesis one...... A solution I was thinking of is the possibility of creating a new channel after that specific amount of time I agreed of. In this way, the chaincode I am using will still be present in the peers and a new tx log and world state will be generated, giving me the possibility to "delate2 the data related to the old channel. Anyway, I do not think that this solution is smart since every time I need to create, configure, set identity etcetera for the new channel plus instantiating the chaincode again. Does someone have any solution?

AlviseBaggio (Wed, 25 Sep 2019 07:22:49 GMT):
Hy everyone, first of all, sorry for bothering, secondly I hope this is the right place for my question. I am trying to understand if it is possible to free up storage space by deleting the "old" part of the transaction log and data related to it, or by other techniques I am not aware of. Basically, let us say I have a device with limited storage capacity and that transaction happened more than a certain period before (e.g. 4 months) do not have any more importance since already handled off-chain after verification trough the "blockchain" (HLF) itself. Moreover, all the different organizations in the network are ok in doing this operation, basically, freeing up storage at peer levels. There is any solution related to something similar? What I was concerned for is that I must keep all the configuration blocks and the genesis one...... A solution I was thinking of is the possibility of creating a new channel after that specific amount of time I agreed of. In this way, the chaincode I am using will still be present in the peers and a new tx log and world state will be generated, giving me the possibility to "delate2 the data related to the old channel. Anyway, I do not think that this solution is smart since every time I need to create, configure, set identity etcetera for the new channel plus instantiating the chaincode again. Does someone have any solution? Thank you very much for your help. AB

trevoro1 (Wed, 25 Sep 2019 08:03:22 GMT):
what happens if the orderers all go down - is the state lost?

abel23 (Wed, 25 Sep 2019 08:56:52 GMT):
Nope. I switched off everything and switched on the next day. All data was as it was before shutting down

trevoro1 (Wed, 25 Sep 2019 09:12:14 GMT):
really?

trevoro1 (Wed, 25 Sep 2019 09:12:42 GMT):
how come then, the data is persistent - I guess kept in couchdb?

KazukiTaga (Wed, 25 Sep 2019 10:07:33 GMT):
Has joined the channel.

KazukiTaga (Wed, 25 Sep 2019 10:07:34 GMT):
Hey, guys Is there a way to re-create a user with access to the business network if I miss the certificate renewal in Hyperledger Composer? I found this site, but I think it's written about what to do before it expires. https://github.com/hyperledger/composer/wiki/HandlingCertificateRenewal Thank you for helping me

KazukiTaga (Wed, 25 Sep 2019 10:07:34 GMT):
Hey, guys Is there a way to re-create a user with access to the business network if I miss the certificate renewal in Hyperledger Composer? PeerAdmin @ hlfv11 has not expired, but admin @ (business network) has expired and there are no other users in the business network. I found this site, but I think it's written about what to do before it expires. https://github.com/hyperledger/composer/wiki/HandlingCertificateRenewal Thank you for helping me

KazukiTaga (Wed, 25 Sep 2019 10:07:34 GMT):
Hey, guys Is there a way to re-create a user with access to the business network if I miss the certificate renewal in Hyperledger Composer? PeerAdmin @ hlfv11 has not expired, but admin @ (business network) has expired and there are no other users in the business network. I found this site, but I think it's written about what to do before it expires. https://github.com/hyperledger/composer/wiki/HandlingCertificateRenewal Thank you for helping me

simran (Wed, 25 Sep 2019 10:32:21 GMT):

Screenshot from 2019-09-25 16-01-59.png

simran (Wed, 25 Sep 2019 10:35:24 GMT):

Screenshot from 2019-09-25 16-01-59.png

ahmad-raza (Wed, 25 Sep 2019 11:01:50 GMT):
let adminUserObj = await client.setUserContext({username: admins[0].username, password: admins[0].secret}); let user = await client.getUserContext(username, true); What is the purpose of password here? because we can getUserContext() without password???

trevoro1 (Wed, 25 Sep 2019 11:55:16 GMT):
if we have an org connecting to say 100 orgs and the first org needs to maintain privacy - is there to implement this without having a 100 channels which could overload the system?

mrudav.shukla (Wed, 25 Sep 2019 12:07:56 GMT):
How can I stop the peer process but not the container within which the peer is running?

Deepakshinde (Wed, 25 Sep 2019 12:31:37 GMT):
Hi All, I am using fabric 1.4.3 with raft orderer getting error on executing below commands peer chaincode install -n ldbc -v 1.2 -p ldbc peer chaincode upgrade -o $ORDERER_ADDRESS --tls --cafile $ORDERER_ROOTCA_CERT -C legaldescriptionchannel -n ldbc -v 1.2 -c '{"Args":[]}' --clientauth --keyfile $ORDERER_TLS_CLIENTKEY_FILE --certfile $ORDERER_TLS_CLIENTCERT_FILE Error screnshot attaching

Deepakshinde (Wed, 25 Sep 2019 12:32:24 GMT):

chaincodeUpgradeError.JPG

MuhammedHafil (Wed, 25 Sep 2019 12:44:13 GMT):
What is the best way to architecture network structure(organisations) for a marketplace like system? There will be multiple buyers and sellers, will each buyer and seller will be a organisation or only 2 organisations with users registering to it via ca? if we are using ca, how to make a private transaction between 1 buyer and seller? since the organisations in already joined in the channel all transactions all transactions will be visible to all, right? can we make use of private data collection?

soumyanayak (Wed, 25 Sep 2019 13:01:50 GMT):
please post your configtx.yaml once

simran (Wed, 25 Sep 2019 13:05:47 GMT):
now i have resolved this thanks

AshutoshKumar7 (Wed, 25 Sep 2019 13:23:09 GMT):
data should be in persistent volumes right? State data should be in couch db?

dtomczyk (Wed, 25 Sep 2019 14:31:19 GMT):
Has joined the channel.

dtomczyk (Wed, 25 Sep 2019 14:38:48 GMT):
When I try to create a channel configuration transaction with command ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME on cli container I get error Unknown Consortium : SampleConsortium. Where is this read from? I have no single word "Sample" in my project. I also checked genesis block there is also no SampleConsortium. Any help ?

soumyanayak (Wed, 25 Sep 2019 14:54:15 GMT):
peer ledger has to be persisted in your host machine using volumes. and the moment couchDB container is restarted it rebuilts from the ledger folder but even if you do a volume mapping for the couchDB so nothing has to be rebuilt from the scratch. So your data will be still there even if you restart containers until and unless you have done the host volume mapping.

trevoro1 (Wed, 25 Sep 2019 15:56:05 GMT):
are sidedbs actually in leveldb format?

lepar (Wed, 25 Sep 2019 16:03:22 GMT):
Has anyone been able to run more than one orderer in the same pc using the same msp but different crypto-config files without getting a leveldb error?

lepar (Wed, 25 Sep 2019 16:14:48 GMT):
couchdb

AshutoshKumar7 (Wed, 25 Sep 2019 16:21:11 GMT):
Confixtx.yaml has SampleConsortium . Do you have any other errors before this one ?

medikent (Wed, 25 Sep 2019 17:33:11 GMT):
Is having the '@' symbol in various paths from *config.yaml* intentional or is that accidental complexity? This causes a difficult situation when using Kubernetes with Fabric.

ANKITPODDAR (Wed, 25 Sep 2019 18:05:45 GMT):
I a ledger containing data for multiple chaincode, i have multiple chaincode for one ledger how to read data of hole ledger (data of all chainocode) at once. I am not getting the way how to do that.

medikent (Wed, 25 Sep 2019 19:15:16 GMT):
The documentation describes how to do cross chaincode calls: https://hyperledger-fabric.readthedocs.io/en/release-1.4/smartcontract/smartcontract.html#intercommunication

medikent (Wed, 25 Sep 2019 19:16:21 GMT):
You will find the *invokeChaincode* method of use: https://fabric-shim.github.io/master/fabric-shim.ChaincodeStub.html#invokeChaincode__anchor

AgniCampos (Wed, 25 Sep 2019 19:49:44 GMT):
Has joined the channel.

Koushik (Wed, 25 Sep 2019 21:02:02 GMT):
Hi can anyone point me to some documentation or anything on how I can change up the .csr information for fabric-ca

Koushik (Wed, 25 Sep 2019 21:02:37 GMT):
right now when I generate the bootstrap Identity it is associated with the default ones

Koushik (Wed, 25 Sep 2019 21:02:45 GMT):
ie: Issuer: C = US, ST = North Carolina, O = Hyperledger, OU = Fabric, CN = ca-tls

unlimited (Thu, 26 Sep 2019 02:05:11 GMT):
Hi, I'm trying to understand endorsements. In the PaperNet trading example, say A sells a stock to B. Both A and B have to agree on the price and accept the trade, and this can be set through endorsements. However it seems like endorsements is done automatically on the back end, instead of, say something pops up on the B user interface and alerts them to press the agree button or something?

madhukar_sh (Thu, 26 Sep 2019 02:43:22 GMT):
You can change the csr information in the ca-server-config.yaml file . Read here: https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#fabric-ca-server

madhukar_sh (Thu, 26 Sep 2019 02:48:05 GMT):
Yes, this endorsement is to prevent data tampering. (Machines making sure that they all have the same data) What you're looking for is endorsement by an actual human being. It has to be achieved in the application logic.

gauravgiri (Thu, 26 Sep 2019 03:57:49 GMT):
Has joined the channel.

gauravgiri (Thu, 26 Sep 2019 03:57:50 GMT):
Jira ticket https://jira.hyperledger.org/browse/FAB-15026, mentions segmentation fault on peer chaincode install. The resolution is to trick using go, instead of cgo by using “GODEBUG=netdns=go peer chaincode install” However, this is not helping. The local environment is Redhat Linux(on other machines with Mac it works correctly, only this Redhat machine is an issue), and hyperledger fabric 1.4.1 network is being setup up locally on this machine using docker images/containers. Any resolution, or anyone else faced same issue, error trace below, also described at FAB-15026: peer chaincode install -n test_chaincode -l node -v 041da11c955e -p /usr/src/chaincode 2019-09-24 10:02:50.636 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-09-24 10:02:50.636 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7f4c7816b3f8] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:374 +0x2f2 goroutine 1 [syscall]: runtime.cgocall(0xe45ff0, 0xc000456c68, 0x29) /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc000456c30 sp=0xc000456bf8 pc=0x4039ee os/user._Cfunc_mygetpwuid_r(0x3e8, 0xc00028bd10, 0x7f4c64000c50, 0x400, 0xc0001303b0, 0xc000000000) _cgo_gotypes.go:173 +0x4d fp=0xc000456c68 sp=0xc000456c30 pc=0x79d55d os/user.lookupUnixUid.func1.1(0x3e8, 0xc00028bd10, 0x7f4c64000c50, 0x400, 0xc0001303b0, 0xc000456d00) /opt/go/src/os/user/cgo_lookup_unix.go:100 +0x135 fp=0xc000456ca8 sp=0xc000456c68 pc=0x79f0b5 os/user.lookupUnixUid.func1(0x110e8c0)

HumaAlam (Thu, 26 Sep 2019 05:14:47 GMT):
I have seen many tutorials but almost in all ,organizations and peers are created in a single physical machine.why all use single physical machine? why not multiple?

MuhammedHafil (Thu, 26 Sep 2019 05:18:26 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

HumaAlam (Thu, 26 Sep 2019 05:24:12 GMT):
i have configured network with 2 peers in 2 physical machine and succesfully deploy my bna file .now i want to add a peer in already running my network.but im stuck. in all tutorials peers are added in a similar machine.would you help me out?im very confused about some concepts

MuhammedHafil (Thu, 26 Sep 2019 05:27:36 GMT):
https://link.medium.com/uSg1v7Xtg0

MuhammedHafil (Thu, 26 Sep 2019 05:28:05 GMT):
sure

MuhammedHafil (Thu, 26 Sep 2019 05:29:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=avaoN5yPBiZ3cN2iJ) Can anybody give your thoughts on this?

HumaAlam (Thu, 26 Sep 2019 05:29:46 GMT):
thank you

MuhammedHafil (Thu, 26 Sep 2019 05:47:16 GMT):
Can private data be configured as sharing between peers of organisations? instead of all org?

MuhammedHafil (Thu, 26 Sep 2019 05:47:16 GMT):
Can private data be configured as sharing between peers of organisations? instead of whole org?

MuhammedHafil (Thu, 26 Sep 2019 05:47:16 GMT):
Can private data be configured as sharing between peers of organisations? instead of whole org? What would be the policy in collection config then instead of `Org1MSP.member`?

UdkReddy (Thu, 26 Sep 2019 06:02:32 GMT):
Hello, Could anyone tell me how to install bna file on fabric network

rameshyadav444 (Thu, 26 Sep 2019 06:15:10 GMT):
I was trying to create a new org in balance transfer application 1.4.3 version. Started the network, I tried to run all the REST API's as per the documentation. After registering users on all 3 orgs, created a new channel with mychannel. Then I tried to join all the peers to all 3 orgs to mychannel. I was able to join peers to org1 and org2 to mychannel through REST API, but when send to join peers to org3 to join mychannel it was giving below error. [ERROR] Join-Channel - Failed to join all peers to channel. cause:Failed to join peer to the channel with error :: Error: 2 UNKNOWN: access denied: channel [] creator org [Org3MSP]

rameshyadav444 (Thu, 26 Sep 2019 06:15:27 GMT):
please suggest on this error

MuhammedHafil (Thu, 26 Sep 2019 06:19:58 GMT):
is there a org3 in balance transfer network?

rameshyadav444 (Thu, 26 Sep 2019 06:20:14 GMT):
yes

rameshyadav444 (Thu, 26 Sep 2019 06:20:32 GMT):
yes

MuhammedHafil (Thu, 26 Sep 2019 06:21:25 GMT):
share your configtx and crypto-config.yaml

Fama 5 (Thu, 26 Sep 2019 06:22:22 GMT):
i am facing the issue, when use this command,./bin/cryptogen generate --config=./crypto-config1.yaml, its creating all the certificate except peerOrganisation msp admincerts

rameshyadav444 (Thu, 26 Sep 2019 06:22:28 GMT):
there is no crypto-config.yaml file, i think its docker-compose .yaml

Fama 5 (Thu, 26 Sep 2019 06:23:15 GMT):
OrdererOrgs: - Name: Orderer Domain: example.com Specs: - Hostname: orderer PeerOrgs: - Name: Org1 Domain: org1.example.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1 - Name: Org2 Domain: org2.example.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1 - Name: Org3 Domain: org3.example.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1

Fama 5 (Thu, 26 Sep 2019 06:23:32 GMT):
this my crypto-config.yaml

Fama 5 (Thu, 26 Sep 2019 06:24:26 GMT):
anybody can help me ?

MuhammedHafil (Thu, 26 Sep 2019 06:24:37 GMT):
So, you just added a new org in docker-compose and tried?

rameshyadav444 (Thu, 26 Sep 2019 06:25:31 GMT):
No.. I have added new org details in below mentioned files.. artifacts/channel/crytogen.yaml artifacts/channel/configtx.yaml artifacts/channel/docker-compose.yaml artifacts/network-config.yaml artifacts/org3.yaml config.js app/instantiate-chaincode.js

MuhammedHafil (Thu, 26 Sep 2019 06:25:48 GMT):
there is, https://github.com/hyperledger/fabric-samples/tree/release-1.4/balance-transfer/artifacts/channel

MuhammedHafil (Thu, 26 Sep 2019 06:28:22 GMT):
Adding only to the configuration file will not work, the balance trnasfer example works on already generated cryptos and artificats, if you want add a new org to the network adding the new org only to the file wont work

MuhammedHafil (Thu, 26 Sep 2019 06:28:22 GMT):
Adding only to the configuration file will not work, the balance trnasfer example works on already generated cryptos and artificats, if you want add a new org to the network you need to perform some more actions

rameshyadav444 (Thu, 26 Sep 2019 06:29:00 GMT):
yes..

MuhammedHafil (Thu, 26 Sep 2019 06:29:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

MuhammedHafil (Thu, 26 Sep 2019 06:29:14 GMT):
This doc will be helpul : https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

rameshyadav444 (Thu, 26 Sep 2019 06:30:02 GMT):
First I generated cryto-config folder using crytogen cryptogen generate --config=./cryptogen.yaml

rameshyadav444 (Thu, 26 Sep 2019 06:30:28 GMT):
then.. created genesis, mychannel.tx

rameshyadav444 (Thu, 26 Sep 2019 06:30:58 GMT):
org1mspanchors.tx, org2mspanchors.tx, org3mspanchors.tx,

MuhammedHafil (Thu, 26 Sep 2019 06:32:18 GMT):
as i mentioned , balance transfer network works based on already generated cryptos , if you regenerated the cryptos then you should also update the key file names in docker-compose files also

rameshyadav444 (Thu, 26 Sep 2019 06:33:10 GMT):
yes.. i updated those keyfile and and pem files wherever required

rameshyadav444 (Thu, 26 Sep 2019 06:34:36 GMT):
i have updated in docker-compose.yaml file in ca_peerOrg container - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/252c26e8807f58be5312071a4bf78220ab733c1702a484d59c59bee2051ca48f_sk

MuhammedHafil (Thu, 26 Sep 2019 06:34:40 GMT):
what is the output of executig `peer channel list` on all org3 peer?

rameshyadav444 (Thu, 26 Sep 2019 06:39:19 GMT):
docker exec -it peer0.org3.example.com bash

rameshyadav444 (Thu, 26 Sep 2019 06:39:40 GMT):
i typed peer channel list in bash terminal

rameshyadav444 (Thu, 26 Sep 2019 06:39:50 GMT):
2019-09-26 06:39:15.190 UTC [msp] Validate -> DEBU 036 MSP org3MSP validating identity 2019-09-26 06:39:15.191 UTC [msp] GetDefaultSigningIdentity -> DEBU 037 Obtaining default signing identity 2019-09-26 06:39:15.191 UTC [grpc] DialContext -> DEBU 038 parsed scheme: "" 2019-09-26 06:39:15.191 UTC [grpc] DialContext -> DEBU 039 scheme "" not registered, fallback to default scheme 2019-09-26 06:39:15.191 UTC [grpc] watcher -> DEBU 03a ccResolverWrapper: sending new addresses to cc: [{peer0.org3.example.com:7051 0 }] 2019-09-26 06:39:15.191 UTC [grpc] switchBalancer -> DEBU 03b ClientConn switching balancer to "pick_first" 2019-09-26 06:39:15.191 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc00030cc20, CONNECTING 2019-09-26 06:39:15.194 UTC [grpc] HandleSubConnStateChange -> DEBU 03d pickfirstBalancer: HandleSubConnStateChange: 0xc00030cc20, READY 2019-09-26 06:39:15.195 UTC [channelCmd] InitCmdFactory -> INFO 03e Endorser and orderer connections initialized 2019-09-26 06:39:15.195 UTC [msp.identity] Sign -> DEBU 03f Sign: plaintext: 0A9F070A5B08031A0B0893BAB1EC0510...631A0D0A0B4765744368616E6E656C73 2019-09-26 06:39:15.195 UTC [msp.identity] Sign -> DEBU 040 Sign: digest: 1E53AB236E43050474A91152997011B4C687A921A422F071F16A00E84AC1D830 Channels peers has joined:

rameshyadav444 (Thu, 26 Sep 2019 06:42:17 GMT):
Actually I was creating users, creating channel, join channel request for org1, org2 and org3

rameshyadav444 (Thu, 26 Sep 2019 06:42:22 GMT):
using REST API

rameshyadav444 (Thu, 26 Sep 2019 06:42:37 GMT):
join channel request for org1 and org2 works fine

rameshyadav444 (Thu, 26 Sep 2019 06:43:10 GMT):
but when i try to join for org3 it is giving access denied error ERROR] Join-Channel - Failed to join all peers to channel. cause:Failed to join peer to the channel with error :: Error: 2 UNKNOWN: access denied: channel [] creator org [Org3MSP]

simran (Thu, 26 Sep 2019 06:48:20 GMT):

Screenshot from 2019-09-26 12-16-55.png

rameshyadav444 (Thu, 26 Sep 2019 06:50:00 GMT):
can you share configtx file?

razasikander (Thu, 26 Sep 2019 07:10:35 GMT):
how to upgrade fabric 1.2 to fabric 1.4 application? do i need to change chaincode and any other stuff?

Fama 5 (Thu, 26 Sep 2019 07:29:57 GMT):
why cryptogen is not generating the key in mac Version: 1.4.3

Fama 5 (Thu, 26 Sep 2019 07:30:32 GMT):
sorry cryptogen version 1.4.3

dtomczyk (Thu, 26 Sep 2019 07:45:30 GMT):
Is there a way to debug orderer (container hyperledger/fabric-orderer) in GoLand for example ?

trevoro1 (Thu, 26 Sep 2019 08:06:42 GMT):
is a policy instantiated on the channel or just installed on the peer?

trevoro1 (Thu, 26 Sep 2019 08:06:42 GMT):
is a policy instantiated on the channel or just installed on the peer?

trevoro1 (Thu, 26 Sep 2019 08:16:06 GMT):
I worked through the example here - when the network is down we can do queries still. What is the impact of byfn down and why that is needed?

trevoro1 (Thu, 26 Sep 2019 08:16:09 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html#read-and-write-private-data-using-chaincode-apis

msolefonte (Thu, 26 Sep 2019 08:46:33 GMT):
Has joined the channel.

msolefonte (Thu, 26 Sep 2019 08:46:34 GMT):
Hello, I am running a custom Hyperledger 1.4 network where I am not using cryptogen. The problem is that when I try to join a channel from a peer I get this error: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]. I have an admin registered and I do the enroll just before running peer join, but it seems not to work. I have to add that, it does not work from the CLI, but

msolefonte (Thu, 26 Sep 2019 08:46:34 GMT):
Hello, I am running a custom Hyperledger 1.4 network where I am not using cryptogen. The problem is that when I try to join a channel from a peer I get this error: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]. I have an admin registered and I do the enroll just before running peer join, but it seems not to work. I have to add that it does not work from the CLI, but it works if I connect directly to the peer and execute the command there. You can see the full issue here: https://stackoverflow.com/questions/58101053/error-joining-channel-from-peer-this-identity-is-not-an-admin

msolefonte (Thu, 26 Sep 2019 08:47:29 GMT):
Thank you very much

simran (Thu, 26 Sep 2019 08:48:09 GMT):
Hello as i am trying to create the channel with raft ordering service

rameshyadav444 (Thu, 26 Sep 2019 09:30:10 GMT):
r u working on balance transfer?

dtomczyk (Thu, 26 Sep 2019 09:40:57 GMT):
Why this command (peer channel create -o orderer.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile $ORDERER_CA) invoked from within the cli container is reading configtx.yaml from location /etc/hyperledger/fabric instead of channel.tx ?

MuhammedHafil (Thu, 26 Sep 2019 09:43:52 GMT):
What are `Org0.admin` , `Org0.member` , `Org0.client` and `Org0.peer` . How do we define them?

MarcoIppolito (Thu, 26 Sep 2019 09:43:56 GMT):
Hi everybody. Could you please explain me what to put in this section of fabric-ca-server-config.yaml ? # Name of this CA name: # Key file (is only used to import a private key into BCCSP) keyfile: # Certificate file (default: ca-cert.pem) certfile: # Chain file chainfile:

MuhammedHafil (Thu, 26 Sep 2019 09:46:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TbjsotbwkQKX8CgN4) How do we define private data policy to 2 specific peers?

jona-sc (Thu, 26 Sep 2019 10:28:17 GMT):
Has joined the channel.

Salaria_77 (Thu, 26 Sep 2019 11:00:06 GMT):
Has joined the channel.

Salaria_77 (Thu, 26 Sep 2019 11:05:09 GMT):
How to implement fungible asset in fabric eg shares. Here is the use case, suppose user1 has 1000 shares he sold his 200 shares to user2 and 100 user 10000. user1=700 user2=200 user3=100 As i know ledger history can only be fetched by the transactionId and leveldb only maintains the latest update on that key. after the transactions i want three diff states not one latest update and still be able to tract the whole history.

Salaria_77 (Thu, 26 Sep 2019 11:05:09 GMT):
How to implement fungible asset in fabric eg shares. Here is the use case, suppose user1 has 1000 shares he sold his 200 shares to user2 and 100 user3. user1=700 user2=200 user3=100 As i know ledger history can only be fetched by the transactionId and leveldb only maintains the latest update on that key. after the transactions i want three diff states not one latest update and still be able to tract the whole history.

Salaria_77 (Thu, 26 Sep 2019 11:05:09 GMT):
How to implement fungible asset in fabric eg shares. Here is the use case, suppose user1 has 1000 shares he sold his 200 shares to user2 and 100 user3. user1=700 user2=200 user3=100 As i know ledger history can only be fetched by the key and leveldb only maintains the latest update on that key. after the transactions i want three diff states not one latest update and still be able to tract the whole history.

Salaria_77 (Thu, 26 Sep 2019 11:05:09 GMT):
How to implement fungible asset in fabric eg shares. Here is the use case, suppose user1 has 1000 shares he sold his 200 shares to user2 and 100 user3. user1=700 user2=200 user3=100 As i know ledger history can only be fetched by the key and leveldb only maintains the latest update on that key. after the transactions i want three diff states not one latest update and still be able to track the whole history.

Fama 5 (Thu, 26 Sep 2019 11:11:52 GMT):
Error reading configuration: Unsupported Config Type "" when i use cryptogen to create the channel Tx

Fama 5 (Thu, 26 Sep 2019 11:12:20 GMT):
is any has face this issue?

UdkReddy (Thu, 26 Sep 2019 13:01:58 GMT):
Hi, I was trying to add new peer to the existing network but got stuck with this error while adding peer to the channel `Error: error getting endorser client for channel: endorser client failed to connect to peer2.org2.example.com:7051: failed to create new connection: context deadline exceeded ` I had even tried restarting docker containers, still ended up getting same errors. i was following this tutorial https://medium.com/@wahabjawed/extending-hyperledger-fabric-network-adding-a-new-peer-4f52f70a7217 Could anyone please help me with this error

trevoro1 (Thu, 26 Sep 2019 14:31:28 GMT):
did anyone work at scaling hlf and using kubernetes and similar tools such as ansible?

msolefonte (Thu, 26 Sep 2019 14:37:42 GMT):
Currently working on it. Already achieved it using connections without TLS but certificates are a pain in the ass

lawkim (Thu, 26 Sep 2019 14:42:15 GMT):
Has joined the channel.

MuhammedHafil (Thu, 26 Sep 2019 14:54:43 GMT):
Have you looked at fab token? https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html#fabtoken earlier they had an entire doc on the whole token process,like isuue,transfer , redeem etc. now iam not able to find it is the official doc, check yourself

MuhammedHafil (Thu, 26 Sep 2019 14:54:43 GMT):
Have you looked at fab token? https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html#fabtoken earlier they had an entire doc on the whole token process,like issue,transfer , redeem etc. now I am not able to find it in the official doc, check yourself

davidkel (Thu, 26 Sep 2019 14:59:25 GMT):
fabtoken has been removed in it's current form and will not be released in fabric 2.0 which explains why you can't find any documentation

MuhammedHafil (Thu, 26 Sep 2019 15:00:52 GMT):
is this due any specific reason?

davidkel (Thu, 26 Sep 2019 15:01:59 GMT):
The fabric team did state the reasons but I can't recall offhand what they were

MuhammedHafil (Thu, 26 Sep 2019 15:02:12 GMT):
Ok

trevoro1 (Thu, 26 Sep 2019 15:39:54 GMT):
I saw the consensus algorithm is changing to RAFT in 2.0. Does that mean that Kafka will be deprecated in 1.4?

yacovm (Thu, 26 Sep 2019 15:45:59 GMT):
changing to Raft? Raft is available in 1.4.1

yacovm (Thu, 26 Sep 2019 15:46:19 GMT):
and you can also migrate from Kafka to Raft in 1.4.2

msolefonte (Thu, 26 Sep 2019 15:59:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PJDpG9aMFEaArqvMB) Up

unlimited (Thu, 26 Sep 2019 16:55:16 GMT):
@madhukar_sh so in an application, it needs to read the hyperledger fabric endorsement event so that it can be endorsed by a human being in the second organization ?

saurabhj 3 (Thu, 26 Sep 2019 22:11:17 GMT):
Has joined the channel.

saurabhj 3 (Thu, 26 Sep 2019 22:11:17 GMT):
Hi All I am trying to setup elasticbeats to get data from ledger and transfer to elastic search but getting error github.com/blockchain-analyzer/agent/fabricbeat/vendor/github.com/elastic/beats/libbeat/version.commit=74ec2c73aedc79dc6349696d342a6afa8064164e" # github.com/fsouza/go-dockerclient/internal/archive ../../../../../pkg/mod/github.com/fsouza/go-dockerclient@v1.4.4/internal/archive/archive.go:73:19: undefined: idtools.Identity

Koushik (Fri, 27 Sep 2019 01:53:22 GMT):
Hi guys, my orderer can not join the testchainid

Koushik (Fri, 27 Sep 2019 01:53:33 GMT):
"[orderer.common.cluster] channelsToPull -> INFO 0b8 I do not belong to channel testchainid or am forbidden pulling it (not in the channel), skipping chain retrieval"

Koushik (Fri, 27 Sep 2019 01:53:39 GMT):
I am using Raft Consensus

Koushik (Fri, 27 Sep 2019 01:53:50 GMT):
any thoughts what the issue can be?

Koushik (Fri, 27 Sep 2019 02:01:41 GMT):

I can see the system channel testchannelid gets created

Koushik (Fri, 27 Sep 2019 02:38:02 GMT):
`A 2019-09-27T02:31:07.281474907Z 2019-09-27 02:31:07.280 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 003 Not bootstrapping because of 1 existing channels A 2019-09-27T02:31:07.287138821Z 2019-09-27 02:31:07.284 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 004 System channel: name=testchainid, height=1, last config block number=0 A 2019-09-27T02:31:07.287338408Z 2019-09-27 02:31:07.284 UTC [orderer.common.server] selectClusterBootBlock -> INFO 005 Cluster boot block is bootstrap (genesis) block; Blocks Header.Number system-channel=0, bootstrap=0 2019-09-27 02:31:07.300 UTC [orderer.common.cluster] loadVerifier -> INFO 006 Loaded verifier for channel testchainid from config block at index 0 34m2019-09-27 02:31:07.301 UTC [orderer.common.server] initializeServerConfig -> INFO 007 Starting orderer with TLS enabled 34m2019-09-27 02:31:07.304 UTC [orderer.common.server] configureClusterListener -> INFO 008 Cluster listener is not configured, defaulting to use the general listener on port 7050 [34m2019-09-27 02:31:07.325 UTC [orderer.common.server] TrackChain -> INFO 00b Adding testchainid to the set of chains to track 2019-09-27 02:31:07.326 UTC [orderer.commmon.multichannel] Initialize -> INFO 00c Starting system channel 'testchainid' with genesis block hash 5e1b4cf45e29d41f85ee929fb19f8085d2f4fd4bcd417c3d28a0d599d3365246 and orderer type etcdraft 2019-09-27 02:31:17.332 UTC [orderer.common.cluster] channelsToPull -> INFO 013 Probing whether I should pull channel testchainid [34m2019-09-27 02:31:17.372 UTC [orderer.common.cluster] channelsToPull -> INFO 022 I do not belong to channel testchainid or am forbidden pulling it (not in the channel), skipping chain retrieval`

Koushik (Fri, 27 Sep 2019 02:38:22 GMT):
``` A 2019-09-27T02:31:07.281474907Z 2019-09-27 02:31:07.280 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 003 Not bootstrapping because of 1 existing channels A 2019-09-27T02:31:07.287138821Z 2019-09-27 02:31:07.284 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 004 System channel: name=testchainid, height=1, last config block number=0 A 2019-09-27T02:31:07.287338408Z 2019-09-27 02:31:07.284 UTC [orderer.common.server] selectClusterBootBlock -> INFO 005 Cluster boot block is bootstrap (genesis) block; Blocks Header.Number system-channel=0, bootstrap=0 2019-09-27 02:31:07.300 UTC [orderer.common.cluster] loadVerifier -> INFO 006 Loaded verifier for channel testchainid from config block at index 0 34m2019-09-27 02:31:07.301 UTC [orderer.common.server] initializeServerConfig -> INFO 007 Starting orderer with TLS enabled 34m2019-09-27 02:31:07.304 UTC [orderer.common.server] configureClusterListener -> INFO 008 Cluster listener is not configured, defaulting to use the general listener on port 7050 [34m2019-09-27 02:31:07.325 UTC [orderer.common.server] TrackChain -> INFO 00b Adding testchainid to the set of chains to track 2019-09-27 02:31:07.326 UTC [orderer.commmon.multichannel] Initialize -> INFO 00c Starting system channel 'testchainid' with genesis block hash 5e1b4cf45e29d41f85ee929fb19f8085d2f4fd4bcd417c3d28a0d599d3365246 and orderer type etcdraft 2019-09-27 02:31:17.332 UTC [orderer.common.cluster] channelsToPull -> INFO 013 Probing whether I should pull channel testchainid [34m2019-09-27 02:31:17.372 UTC [orderer.common.cluster] channelsToPull -> INFO 022 I do not belong to channel testchainid or am forbidden pulling it (not in the channel), skipping chain retrieval ```

Shubham-koli (Fri, 27 Sep 2019 05:56:02 GMT):
Hello everybody! I am experimenting with raft consensus. I've created a stack of 3 orderers and deployed them on docker swarm. I've created a channel and installed chaincode on it. then I instantiated the chaincode. it got successfully instantiated. even the chaincode container is created. but when I run the command `peer chaincode list -C channelallnew --instantiated` I see nothing. instantiated chaincode section is blank. I've added a screenshot of whole process. please look into it

Shubham-koli (Fri, 27 Sep 2019 05:56:39 GMT):

Screenshot from 2019-09-27 11-13-16.png

Shubham-koli (Fri, 27 Sep 2019 05:57:03 GMT):

Screenshot from 2019-09-27 11-14-28.png

msolefonte (Fri, 27 Sep 2019 06:34:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PJDpG9aMFEaArqvMB) Up

AnkitKumar021 (Fri, 27 Sep 2019 06:40:08 GMT):
Has joined the channel.

AnkitKumar021 (Fri, 27 Sep 2019 06:40:10 GMT):
can we create a package of one chaincode and import it into another chaincode

BrianMwangi (Fri, 27 Sep 2019 07:24:39 GMT):
Has joined the channel.

BrianMwangi (Fri, 27 Sep 2019 07:25:22 GMT):
Hi there. I am setting up Fabric and trying to launch the first network but I get this error : ``` ```

BrianMwangi (Fri, 27 Sep 2019 07:25:22 GMT):
Hi there. I am setting up Fabric and trying to launch the first network but I get this error : ``` Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

BrianMwangi (Fri, 27 Sep 2019 07:26:08 GMT):
Any help ?

dtomczyk (Fri, 27 Sep 2019 07:39:12 GMT):
Do I need to enroll admin on ca before creating channel with "peer channel create" ?

Shubham-koli (Fri, 27 Sep 2019 08:50:56 GMT):
both are independent processes. executing one before other won't matter.

Shubham-koli (Fri, 27 Sep 2019 08:52:15 GMT):
error is due to wrong crypto-config. generate new crypto before starting the network.

simran (Fri, 27 Sep 2019 09:46:43 GMT):

Screenshot from 2019-09-27 15-14-51.png

msolefonte (Fri, 27 Sep 2019 09:50:38 GMT):
Is there another place where I can ask questions about Hyperledger Fabric with more possibilities to get an answer? Nobody answer any question here nor in StackOverflow

dtomczyk (Fri, 27 Sep 2019 10:07:21 GMT):
Why do I get on orderer "This identity is not admin" and error message, after executing command "peer channel create" ?

Shubham-koli (Fri, 27 Sep 2019 10:23:15 GMT):
you need admin certificates for creating channels

Shubham-koli (Fri, 27 Sep 2019 10:25:36 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html#create-join-channel you need to give path to the admin certificates ie check if your CORE_PEER_MSPCONFIGPATH is set properly correct path will look like this `CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp`

dtomczyk (Fri, 27 Sep 2019 10:33:18 GMT):
yes, i specified it correctly

dtomczyk (Fri, 27 Sep 2019 10:34:16 GMT):
and Admin certificate is in signcerts

dtomczyk (Fri, 27 Sep 2019 10:34:49 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'channel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

yacovm (Fri, 27 Sep 2019 10:58:44 GMT):
@msolefonte sometimes people answer questions

Shubham-koli (Fri, 27 Sep 2019 11:18:03 GMT):
can you show me your crypto-config.yaml?

dtomczyk (Fri, 27 Sep 2019 11:20:17 GMT):
OrdererOrgs: - Name: Orderer Domain: sys.example.com EnableNodeOUs: true Specs: - Hostname: orderer PeerOrgs: - Name: ORG1 Domain: org1.sys.example.com EnableNodeOUs: true Template: Count: 1 Users: Count: 1

soumyanayak (Fri, 27 Sep 2019 12:49:48 GMT):
while channel creation was the MSP set to that of admin?

soumyanayak (Fri, 27 Sep 2019 12:49:59 GMT):
while channel creation was the MSP set to that of admin?

simran (Fri, 27 Sep 2019 12:51:57 GMT):
means ???

soumyanayak (Fri, 27 Sep 2019 12:58:35 GMT):
channel creation can be done by org admin CORE_PEER_MSPCONFIGPATH

soumyanayak (Fri, 27 Sep 2019 12:58:35 GMT):
channel creation has to be carried out by org admin CORE_PEER_MSPCONFIGPATH

simran (Fri, 27 Sep 2019 13:01:39 GMT):
yeah

simran (Fri, 27 Sep 2019 13:01:44 GMT):
yeah

soumyanayak (Fri, 27 Sep 2019 13:06:58 GMT):
can you please post here once the value of the above variable, configtx.yaml.

simran (Fri, 27 Sep 2019 13:08:22 GMT):

crypto-config.yaml.zip

simran (Fri, 27 Sep 2019 13:08:22 GMT):

configtx.yaml.zip

simran (Fri, 27 Sep 2019 13:08:34 GMT):
yeah me posted it

AshutoshKumar7 (Fri, 27 Sep 2019 17:01:34 GMT):
I am getting following error while trying to add a channel , any clues?

AshutoshKumar7 (Fri, 27 Sep 2019 17:01:36 GMT):
peer channel create -o orderer.7digitallabs.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/7digitallabs.com/orderers/orderer.7digitallabs.com/msp/tlscacerts/tlsca.7digitallabs.com-cert.pem 2019-09-27 16:59:35.680 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2019-09-27 16:59:36.176 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml 2019-09-27 16:59:36.177 UTC [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 003 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2019-09-27 16:59:36.178 UTC [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 004 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium

AshutoshKumar7 (Fri, 27 Sep 2019 17:09:19 GMT):
After export CHANNEL_NAME=mychannel

AshutoshKumar7 (Fri, 27 Sep 2019 17:09:44 GMT):
I get this error

AshutoshKumar7 (Fri, 27 Sep 2019 17:09:46 GMT):
2019-09-27 17:08:49.347 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

BrianMwangi (Fri, 27 Sep 2019 18:12:30 GMT):
How do you generate a new crypto ?

Fama 5 (Sat, 28 Sep 2019 05:15:53 GMT):
Hi everyone, Is It possible to create the admin certificate using fabric sdk or need to use the Fabric CA client command to create the certificate

Fama 5 (Sat, 28 Sep 2019 05:15:55 GMT):
?

AshutoshKumar7 (Sat, 28 Sep 2019 08:38:23 GMT):
I created a new folder inside fabric samples and copied the files from first-network. I then changed configurations to suit my organization. but I am getting following error. Is there any other configuration required?

AshutoshKumar7 (Sat, 28 Sep 2019 08:38:25 GMT):
../bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block 2019-09-28 08:33:28.482 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2019-09-28 08:33:28.511 UTC [common.tools.configtxgen.localconfig] Load -> PANI 002 Could not find profile: TwoOrgsOrdererGenesis 2019-09-28 08:33:28.511 UTC [common.tools.configtxgen] func1 -> ERRO 003 Could not find profile: TwoOrgsOrdererGenesis. Please make sure that FABRIC_CFG_PATH or -configPath is set to a path which contains configtx.yaml with the specified profile

metadata (Sat, 28 Sep 2019 08:48:08 GMT):
Hi everyone, Please help with below issue. I was using https://localhost:7054 for ca and getting this erro `cert is valid for ca.0rg1.example.com not localhost` so I have changed it tp `http://ca.org1.example.com` and now I'm using https://ca.org1.example.com:7054 to enroll and register the new user but now I'm getting below error ```Post https://ca.org1.example.com:7054/enroll: dial tcp: lookup ca.org1.example.com on 192.168.0.1:53: no such host" ```

yllllll (Sat, 28 Sep 2019 09:56:20 GMT):
Hello, good morning/evening. May I ask how do I communicate between ubuntu machines in VMware? I currently got an error which is orderer context exceeded.

bigworld12 (Sat, 28 Sep 2019 22:11:18 GMT):
hey, i am having a basic deployment question, if i have a mobile client app, and a fabric backend, how can the mobile app connect to the fabric backend ? since there are multiple dynamic peers, how can i get the address of any peer from the mobile application?

TBdori (Sun, 29 Sep 2019 03:04:33 GMT):
how to get list of registered users?

mastersingh24 (Sun, 29 Sep 2019 09:10:54 GMT):
Fabric CA has an API to list users that are visible / were registered by given user: https://github.com/hyperledger/fabric-ca/blob/release-1.4/swagger/swagger-fabric-ca.json#L1908 `fabric-ca-client identities list` will list the registered users the caller is allowed to see https://fabric-sdk-node.github.io/release-1.4/IdentityService.html#getAll__anchor calls the API using the Node SDK

someguy (Sun, 29 Sep 2019 23:05:04 GMT):
hello guys, where can i check the documentation for the fabric metrics like. How many peers shoud i have for each organization, how may orderer nodes or instaces should i have per X peers or X organizations ?

someguy (Sun, 29 Sep 2019 23:05:04 GMT):
hello guys, where can i check the documentation for the fabric metrics like. How many peers shoud i have for each organization, how many orderer nodes or instances should i have per X peers or X organizations ?

UdkReddy (Mon, 30 Sep 2019 02:26:51 GMT):
Is there any method to deploy bna to fabric network?

Fama 5 (Mon, 30 Sep 2019 02:50:13 GMT):
hi everyone, i have doubt please refer https://stackoverflow.com/questions/58152205/hyperledger-fabric-private-channel-does-it-create-new-separate-ledger

Fama 5 (Mon, 30 Sep 2019 02:50:34 GMT):
give some suggestion

Fama 5 (Mon, 30 Sep 2019 03:46:54 GMT):
hi everyone, does the orderer has its own database ?

abel23 (Mon, 30 Sep 2019 04:25:50 GMT):
Once the wallet id is deleted from the imported directory, is it lost forever or can it be retrieved?

abel23 (Mon, 30 Sep 2019 04:40:43 GMT):
How to re-import a wallet id?

simran (Mon, 30 Sep 2019 04:54:04 GMT):

Screenshot from 2019-09-30 10-23-35.png

simran (Mon, 30 Sep 2019 04:55:19 GMT):

Screenshot from 2019-09-30 10-23-35.png

simran (Mon, 30 Sep 2019 05:04:25 GMT):

Screenshot from 2019-09-30 10-31-01.png

ShubhneetChawla (Mon, 30 Sep 2019 05:53:30 GMT):
hi i am getting this error when i am connecting a new node in multi node setup any help on this error :

Salaria_77 (Mon, 30 Sep 2019 06:14:36 GMT):
How to use NOutOf Signature policies.

HLFPOC (Mon, 30 Sep 2019 06:33:53 GMT):
Hi Team, Going through the official Documentation and wanted to understand the chaincode namespace concepts in a channel, but the topic link seems broken (https://hyperledger-fabric.readthedocs.io/en/release-1.4/ledger/developapps/chaincodenamespace.html), Can anyone share updated link or material which I can refer?

PulkitSarraf (Mon, 30 Sep 2019 07:24:54 GMT):
Hi ..!! Can we perform the GET transactions from a card whose organisation config is deleted from the channel

AnkitKumar021 (Mon, 30 Sep 2019 07:29:02 GMT):
can we create a package of one chaincode and import it into another chaincode

marinkovicvlado (Mon, 30 Sep 2019 07:49:45 GMT):
Hi all, I am receiving an error on peer: "channel doesn't exist". It happens only after I restart a peer...any clues what could be the problem?

marinkovicvlado (Mon, 30 Sep 2019 07:52:20 GMT):
Do I need to again perform join channel after case of restart?

PulkitSarraf (Mon, 30 Sep 2019 07:54:57 GMT):
Yes, i think you need to perform join channel again

marinkovicvlado (Mon, 30 Sep 2019 07:56:21 GMT):
Thank you

abel23 (Mon, 30 Sep 2019 11:13:10 GMT):
Is there a way to identify if a wallet id is the admin id?

Unicow (Mon, 30 Sep 2019 11:32:12 GMT):
Hello, I am struggling to understand the connection between fabric-ca and cryptogen tool. Are the files generated by cryptogen used by fabric-ca? Eg, can I start the first-network sample without using cryptogen and use fabric-ca-server and fabric-ca-client for certificate generation, user registration etc? Are there any tutorials using fabric for production?

abel23 (Mon, 30 Sep 2019 11:50:38 GMT):
Guys, how to use getRegistrar() in node sdk? https://fabric-sdk-node.github.io/CertificateAuthority.html#toc0__anchor || How to use this?

abel23 (Mon, 30 Sep 2019 11:52:55 GMT):
You have to use the cryptogen tool initially since it generates all the crypto materials for channels, anchor peers, orderers, etc. In operation, you use the CA service to add and remove users. Cryptogen is not required once the network is in operation

abel23 (Mon, 30 Sep 2019 11:53:36 GMT):
There are no tutorials for using fabric in production.

abel23 (Mon, 30 Sep 2019 11:54:47 GMT):
If you notice BYFN in fabric-samples it doesn't use Ca service. It just uses cryptogen

trevoro1 (Mon, 30 Sep 2019 11:55:28 GMT):
has anyone an example of using kubernetes and hyperledger?

abel23 (Mon, 30 Sep 2019 11:55:45 GMT):
Just to spin the network up! If you wanted to add new users er et al, you'll need ca

Unicow (Mon, 30 Sep 2019 11:57:12 GMT):
Thank you very much! So, the cryptogen tool doesn't generate any private keys?

Unicow (Mon, 30 Sep 2019 11:58:06 GMT):
I the BYFN sample, the fabric-ca containers are generated, and in combination with the fabcar example (which is based on the first-network sample) the enrolladmin.js file is using the fabric-ca client. Is that what you mean?

abel23 (Mon, 30 Sep 2019 12:00:47 GMT):
BYFN does'nt create CA. The fabcar example does. if you wanna use the enrollAdmin.js You need Ca.

abel23 (Mon, 30 Sep 2019 12:01:22 GMT):
I don't know if it generates private keys. I think it does create

Unicow (Mon, 30 Sep 2019 12:02:36 GMT):
In the fabcar sample the startFabric.sh script triggers the byfn with the flag `-a` which means "launch certificate authorities"

Unicow (Mon, 30 Sep 2019 12:02:59 GMT):
that's why you're able to use the enrollAdmin.js I guess..

abel23 (Mon, 30 Sep 2019 12:03:11 GMT):
Yes, you are right

Unicow (Mon, 30 Sep 2019 12:04:06 GMT):
and in this case, I still need the cryptogen tool, right?

Unicow (Mon, 30 Sep 2019 12:04:27 GMT):
Although the fabcar sample could be a production example of fabric?

Unicow (Mon, 30 Sep 2019 12:04:27 GMT):
Although the fabcar sample could be considered a production example of fabric?

abel23 (Mon, 30 Sep 2019 12:04:41 GMT):
To start the network initially, you need cryptogen

abel23 (Mon, 30 Sep 2019 12:06:09 GMT):
Yea. But it's just a sample. The magnetocorp one is more realistic,, but they have not implemented it in the proper manner

abel23 (Mon, 30 Sep 2019 12:06:41 GMT):
Just check out all the examples. You'll get a better idea

Unicow (Mon, 30 Sep 2019 12:06:57 GMT):
I've done it already, but there are so many configs

abel23 (Mon, 30 Sep 2019 12:06:59 GMT):
there are this marble ones also for private data

Unicow (Mon, 30 Sep 2019 12:07:07 GMT):
I agree about the magnetocorp

abel23 (Mon, 30 Sep 2019 12:07:47 GMT):
If you've done it , then you can use this knowledge to make a production one

abel23 (Mon, 30 Sep 2019 12:07:57 GMT):
There's nothing more to it i guess

Unicow (Mon, 30 Sep 2019 12:08:46 GMT):
Thank you, I will, but I have to dig more :P .

Unicow (Mon, 30 Sep 2019 12:08:46 GMT):
Thank you, I will, but I have to dig more :P

abel23 (Mon, 30 Sep 2019 12:09:16 GMT):
:thumbsup:

Unicow (Mon, 30 Sep 2019 12:09:26 GMT):
I'm still confused because they mention in the docs that cryptogen are used for testing and ca for production, although there is no clear documentation how..

Unicow (Mon, 30 Sep 2019 12:09:39 GMT):
I thought cryptogen was a replacement for fabric-ca

abel23 (Mon, 30 Sep 2019 12:11:38 GMT):
cryptogen is not a replacement. Cryptogen always creates different crypto materials. It generates as a set each time you run. You cannot run it separately

abel23 (Mon, 30 Sep 2019 12:12:40 GMT):
It generates Ca, orderer,peer. This is one set. You cannot run this separately and make it part of an already running network

abel23 (Mon, 30 Sep 2019 12:12:59 GMT):
That's why in operation, you must use CA

Unicow (Mon, 30 Sep 2019 12:14:33 GMT):
I see..

Unicow (Mon, 30 Sep 2019 12:15:07 GMT):
Thank you again

abel23 (Mon, 30 Sep 2019 12:15:29 GMT):
You're welcome

nakulgr13 (Mon, 30 Sep 2019 12:40:49 GMT):
Hi, We are facing below exception while setting up hyperledger Explorer with Fabric 1.4 multimode network setup. Please suggest a way forward Below are the docs we are following for Fabric and Explorer: Fabric: https://medium.com/@kctheservant/demo-of-three-node-two-channel-setup-in-hyperledger-fabric-54ba8a9c461f Explorer: https://medium.com/@thanawitsupinnapong/setting-up-hyperledger-explorer-on-fabric-5f1f7cda73b3 Explorer Error: ========= <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> Error : [ 'Default client peer is down and no channel details available database' ] Received kill signal, shutting down gracefully <<<<<<<<<<<<<<<<<<<<<<<<<< Closing explorer >>>>>>>>>>>>>>>>>>>>> (We also tried to replace mychannel with our channel name but still getting above exception)

kodepareek (Mon, 30 Sep 2019 12:51:15 GMT):
Has joined the channel.

kodepareek (Mon, 30 Sep 2019 12:51:16 GMT):
Hello all. Some help please. I have a 2 org 4 node network running on Kubernetes

kodepareek (Mon, 30 Sep 2019 12:51:44 GMT):
# peer channel list 2019-09-30 12:51:35.509 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel

kodepareek (Mon, 30 Sep 2019 12:52:06 GMT):
# peer chaincode instantiate -C mychannel -n koinearthcc -v 1.2 -c '{"Args":["init"]}' -P "$POLICY 7050" 2019-09-30 12:43:50.551 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer1-koinearth.koinearth:7050 2019-09-30 12:43:50.553 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default escc 2019-09-30 12:43:50.553 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default vscc Error: got unexpected status: NOT_FOUND -- channel does not exist

kodepareek (Mon, 30 Sep 2019 12:52:42 GMT):
cannot figure this out. I have checked channel joining status on all 4 nodes and all the peer channel list commands show that the channel has been joined

kodepareek (Mon, 30 Sep 2019 12:52:47 GMT):
what am I doing wrong

soumyanayak (Mon, 30 Sep 2019 12:56:57 GMT):
https://medium.com/beyondi/understanding-hyperledger-explorer-setup-via-docker-6af845fcb82e

delao (Mon, 30 Sep 2019 12:57:28 GMT):
you could run `FABRIC_LOGGING_SPEC=debug peer chaincode instantiate -C mychannel -n koinearthcc -v 1.2 -c '{"Args":["init"]}' -P "$POLICY 7050" ` and see if the debug logs show you anything

soumyanayak (Mon, 30 Sep 2019 13:00:30 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html -- Link for generating certificates using fabric -ca .

MarkNewman (Mon, 30 Sep 2019 14:52:58 GMT):
Has joined the channel.

IamArtur612 (Mon, 30 Sep 2019 15:05:49 GMT):
Hej guys i have problem with sending a tx. While debug i get this error: mgr, ok := sdk.provider.IdentityManager(opts.orgName) if !ok { return nil, errors.New("invalid options to create identity, invalid org name") }

IamArtur612 (Mon, 30 Sep 2019 15:05:49 GMT):
Hej guys i have problem with sending a tx. While debug i get this error: mgr, ok := sdk.provider.IdentityManager(opts.orgName) if !ok { return nil, errors.New("invalid options to create identity, invalid org name") } But i have given the correct parameter from the first-network example Org2MSP

MarkNewman (Mon, 30 Sep 2019 15:29:51 GMT):
Hi all, I'm trying to migrate my ledger to another instance of Fabric (both use v1.4.3, basic setup no CounchDB). I've shutdown the first cluster and copied the contents of `/var/hyperledger` from the peer and orderer to the new instances and then started them. I'm seeing the following error reported by the peer every 5 seconds ``` self-hlf-peer.default | 2019-09-30 15:25:30.629 UTC [blocksProvider] DeliverBlocks -> WARN 065 [self] Got error &{NOT_FOUND} ``` Everything else appears to be ok with the exception of being able to make changes to the ledger at which point I see this on the orderer. ``` self-hlf-ord.default | 2019-09-30 15:27:19.251 UTC [orderer.common.broadcast] ProcessMessage -> WARN 045 [channel: self] Rejecting broadcast of normal message from 172.30.0.4:46234 because of error: channel does not exist ``` The peer says it's a member of channel `self` and I can successfully query the ledger, just not invoke it. Any ideas what might be causing the issue?

someguy (Mon, 30 Sep 2019 15:56:03 GMT):
hello guys, how does one configure in a situation where a node wants to get in the blockchain network or one node that wants to leave

delao (Mon, 30 Sep 2019 16:15:50 GMT):
This could be helpful: https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

EltonSearcy (Mon, 30 Sep 2019 17:06:20 GMT):
Has joined the channel.

sharif2008 (Mon, 30 Sep 2019 17:31:52 GMT):
`E0930 03:49:58.103991314 5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0930 03:49:58.105143769 5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-09-30T10:49:58.414Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-09-30T10:49:58.416Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-09-30T10:49:58.416Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051`

sharif2008 (Mon, 30 Sep 2019 17:32:07 GMT):
``` E0930 03:49:58.103991314 5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. E0930 03:49:58.105143769 5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-09-30T10:49:58.414Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-09-30T10:49:58.416Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-09-30T10:49:58.416Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051 ```

sharif2008 (Mon, 30 Sep 2019 17:32:46 GMT):
I am trying to connect to fabric using Nodjes App. What can be the possible reasons?

someguy (Mon, 30 Sep 2019 17:37:50 GMT):
thanks

Daniela_Barbosa (Mon, 30 Sep 2019 17:54:22 GMT):
Has joined the channel.

someguy (Mon, 30 Sep 2019 18:26:14 GMT):
Guys howw can replace the cryptogen utility with openssl?

someguy (Mon, 30 Sep 2019 18:26:42 GMT):
because i know that fabric has a certain certificate structure for all the compnents

someguy (Mon, 30 Sep 2019 18:27:05 GMT):
or should i use fabric-ca?

someguy (Mon, 30 Sep 2019 18:33:00 GMT):
and how many Certificate Authorities should i have in a network?

unlimited (Mon, 30 Sep 2019 18:44:54 GMT):
Hi, im trying to understand the process for applications to connect to the blockchain network through certificates. Is there a tutorial on this?

TBdori (Mon, 30 Sep 2019 20:39:38 GMT):
i'm getting " Error: Missing "orderer" request parameter" . when I send channel.sendTransaction(orderer_request);

TBdori (Mon, 30 Sep 2019 20:39:46 GMT):
var orderer_request = { txId: tx_id, proposalResponses: proposalResponses, proposal: proposal };

TBdori (Mon, 30 Sep 2019 20:40:10 GMT):
why is it asking for orderer info? I don't see sendTransaction takes it as argument

abel23 (Tue, 01 Oct 2019 03:56:28 GMT):
I think you can have as many as you want. It's a matter of providing the CA service uninterrupted and in a distributed manner. I don't think there is a limit

abel23 (Tue, 01 Oct 2019 06:04:18 GMT):
If two orgs have their own hyperledger fabric network set up. If both orgs share data through this medium, Are they considered to be part of the same network?

abel23 (Tue, 01 Oct 2019 06:04:18 GMT):
If two orgs have their own hyperledger fabric network set up. If both orgs share data through this medium, Are they considered to be part of the same network? Or different network, same channel?

kodepareek (Tue, 01 Oct 2019 07:03:56 GMT):
Hi Delao. Thank you so much for the pointer. I ran the instantiate command with debug mode on but did not get anything new

kodepareek (Tue, 01 Oct 2019 07:04:09 GMT):
last few lines of the log

kodepareek (Tue, 01 Oct 2019 07:04:10 GMT):
019-10-01 05:49:25.720 UTC [grpc] DialContext -> DEBU 0ba parsed scheme: "" 2019-10-01 05:49:25.720 UTC [grpc] DialContext -> DEBU 0bb scheme "" not registered, fallback to default scheme 2019-10-01 05:49:25.720 UTC [grpc] watcher -> DEBU 0bc ccResolverWrapper: sending new addresses to cc: [{orderer1-koinearth.koinearth:7050 0 }] 2019-10-01 05:49:25.720 UTC [grpc] switchBalancer -> DEBU 0bd ClientConn switching balancer to "pick_first" 2019-10-01 05:49:25.720 UTC [grpc] HandleSubConnStateChange -> DEBU 0be pickfirstBalancer: HandleSubConnStateChange: 0xc000254bb0, CONNECTING 2019-10-01 05:49:25.721 UTC [grpc] HandleSubConnStateChange -> DEBU 0bf pickfirstBalancer: HandleSubConnStateChange: 0xc000254bb0, READY 2019-10-01 05:49:25.721 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0c0 Using default escc 2019-10-01 05:49:25.722 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0c1 Using default vscc 2019-10-01 05:49:25.722 UTC [msp.identity] Sign -> DEBU 0c2 Sign: plaintext: 0AD9090A6708031A0C08E5D1CBEC0510...374D53500A04657363630A0476736363 2019-10-01 05:49:25.722 UTC [msp.identity] Sign -> DEBU 0c3 Sign: digest: AC0535BE583436C0DBA21B0432DC99C4ECAD7B4B7CB601915440A474DA41C472 2019-10-01 05:49:25.756 UTC [msp.identity] Sign -> DEBU 0c4 Sign: plaintext: 0AD9090A6708031A0C08E5D1CBEC0510...E8867DF3199CE53D78484B13AFF00D89 2019-10-01 05:49:25.756 UTC [msp.identity] Sign -> DEBU 0c5 Sign: digest: DACDBDB4A318CC6619FCC3706F8493B96FBEDD15C3FB169F47E542C21C584A15 Error: got unexpected status: NOT_FOUND -- channel does not exist

adarshaJha (Tue, 01 Oct 2019 07:50:47 GMT):
i'm trying to use ldap with ca . when i try to enroll i'm getting this error [FabricCAClientService.js]: Failed to enroll alejandro, error:%o message=Enrollment failed with errors [[{"code":20,"message":"Authentication failure"}]], stack=Error: Enrollment failed with errors [[{"code":20,"message":"Authentication failure"}]] at IncomingMessage.response.on (/home/adarsha/Documents/fabric-ldap-example/fabric-sdk-with-ldap/node_modules/fabric-ca-client/lib/FabricCAClient.js:465:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at combinedTickCallback (internal/process/nexttick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Error: Enrollment failed with errors [[{"code":20,"message":"Authentication failure"}]] at IncomingMessage.response.on (/home/adarsha/Documents/fabric-ldap-example/fabric-sdk-with-ldap/node_modules/fabric-ca-client/lib/FabricCAClient.js:465:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at combinedTickCallback (internal/process/nexttick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll: Error: Failed to enroll alejandro

rohitkhatri (Tue, 01 Oct 2019 10:07:10 GMT):
Has joined the channel.

simran (Tue, 01 Oct 2019 10:11:25 GMT):

Screenshot from 2019-10-01 15-41-01.png

simran (Tue, 01 Oct 2019 10:12:33 GMT):

Screenshot from 2019-10-01 15-41-01.png

someguy (Tue, 01 Oct 2019 10:53:13 GMT):
thanks mate

delao (Tue, 01 Oct 2019 12:25:24 GMT):
It states that the channel does not exists, could you please run `peer channel list` and see if the peer has joined the channel?

rgummadi (Tue, 01 Oct 2019 13:41:57 GMT):
Has joined the channel.

rgummadi (Tue, 01 Oct 2019 13:50:31 GMT):
I am trying to create a network with 5 orgs. 1)Able to successfully create the crypto-config files 2) Channel artifacts are created successfully 3) Channel transaction is created successfully 4) Anchor peer transactions are created successfully 5) Created channel successfully 6) peer 0 of the first org is able to join the channel But when peer 1 of first is trying to join the channel, getting the below error. What can be the reason. ******Error: error getting endorser client for channel: endorser client failed to connect to peer1.reliancecapital.reliance-network.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.64.12:8051: connect: connection refused"******

hmoazzem (Tue, 01 Oct 2019 19:28:28 GMT):
Hi, all I managed to install, instantiate, invoke and query the `marbles_02` nodejs chaincode, but getting this error while trying `fabcar` chaincode. ``` /var/hyperledger/fabric-samples/chaincode/fabcar/typescript# peer chaincode instantiate \ -C mychannel -n fabcar -v 1.0 -l node -c '{"Args":[]}' \ -P "OR('Org1MSP.member','Org2MSP.member')" [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (mychannel) orderer endpoint: ord1.orderers:7050 [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default escc [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: \ error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 \ "cp: cannot stat '/chaincode/input/src/.': No such file or directory" ```

DiAnh (Wed, 02 Oct 2019 04:16:34 GMT):
Has joined the channel.

DiAnh (Wed, 02 Oct 2019 04:19:21 GMT):
hi everyone, i am finding some way to optimization for query transactions so could you give some sugestion about it ? thank you

Jelle.Diet (Wed, 02 Oct 2019 07:40:02 GMT):
Make sure you're using indexes https://hyperledger-fabric.readthedocs.io/en/release-1.4/couchdb_tutorial.html#cdb-create-index

DiAnh (Wed, 02 Oct 2019 07:52:06 GMT):
yes, i'm using it. Thank for your suggestion

kodepareek (Wed, 02 Oct 2019 10:14:09 GMT):
hi delao. peer channel list shows all peers have joined the channel.

simran (Wed, 02 Oct 2019 10:38:18 GMT):

Screenshot from 2019-10-02 16-07-01.png

eduelias (Wed, 02 Oct 2019 11:19:59 GMT):
Has joined the channel.

simran (Wed, 02 Oct 2019 13:24:53 GMT):

Screenshot from 2019-10-02 18-54-20.png

azzicharbel (Wed, 02 Oct 2019 19:56:29 GMT):
Has joined the channel.

azzicharbel (Wed, 02 Oct 2019 19:57:56 GMT):
Hi, I was looking into the documentation, of how to create/use a wallet in version 1.2 but could not find any. I found it in Version 1.4. Could anyone guide me please?

TrevorOakley (Wed, 02 Oct 2019 20:57:03 GMT):
can we add a peer via chaincode and the sdk?

vinsent (Thu, 03 Oct 2019 06:23:40 GMT):
Has joined the channel.

caveman7 (Thu, 03 Oct 2019 06:48:27 GMT):
according to https://hyperledger-fabric.readthedocs.io/en/latest/commands/cryptogen.html , cryptogen is not recommended for production use. Why is that so?

abel23 (Thu, 03 Oct 2019 06:58:32 GMT):
What they mean is "in operation". You can use it to set up the network. Once it is set up, the CA service must be used to further extend the network, add new users and so on

MuhammedHafil (Thu, 03 Oct 2019 07:34:23 GMT):
No, can't just add new peer with just sdk,

MuhammedHafil (Thu, 03 Oct 2019 07:34:23 GMT):
No, can't a add new peer with just sdk,

MuhammedHafil (Thu, 03 Oct 2019 08:11:11 GMT):
wallet came after that

Tim (Thu, 03 Oct 2019 10:05:44 GMT):
Has joined the channel.

Paradox-AT (Thu, 03 Oct 2019 10:19:32 GMT):
Hey Guys, In case of raft ordering service when I am creating a channel the increase in size for orderer volume is about 100MB, is this size for channel is normal?

Tim (Thu, 03 Oct 2019 10:43:21 GMT):
Hi, is there any sens for 2 peers holding the same chainCode in the same organisation to make transaction between them, or is it even possible ? thanks

abel23 (Thu, 03 Oct 2019 10:44:58 GMT):
A transaction is between two orgs

abel23 (Thu, 03 Oct 2019 10:44:58 GMT):
Should application be modified if new chaicodes are added or is there an approach to create a universal app that can interact with any chaincode. Take node SDK for reference

Tim (Thu, 03 Oct 2019 10:45:24 GMT):
ok thx

rameshyadav444 (Thu, 03 Oct 2019 10:46:08 GMT):

Screenshot (25).png

abel23 (Thu, 03 Oct 2019 10:55:06 GMT):
Should application be modified if new chaicodes are added or is there an approach to create a universal app that can interact with any chaincode. Take node SDK for reference

BalakrishnaChandrasekaran (Thu, 03 Oct 2019 11:24:33 GMT):
Has joined the channel.

lepar (Thu, 03 Oct 2019 12:50:37 GMT):
Yeah if you have two peers from two different departments like human resources and sales that need to transact but you want to have separate peers for them.

Tim (Thu, 03 Oct 2019 13:01:29 GMT):
with different departments you mean that the peers who want to make transactions between them are in differents organization??

knagware9 (Thu, 03 Oct 2019 13:17:42 GMT):
Increase the time out in https://github.com/hyperledger/fabric-samples/blob/release-1.4/balance-transfer/app/instantiate-chaincode.js

knagware9 (Thu, 03 Oct 2019 13:19:18 GMT):
no application change required,

lepar (Thu, 03 Oct 2019 13:22:39 GMT):
Nope, same organization but two peers. One assigned to a department and the other to another department.

andrewhw (Thu, 03 Oct 2019 13:35:15 GMT):
With private data collections, as I understand it only the hash of the RW set is placed on the ledger. Is the effect of this to perform consistency checks when the hash is committed like we have with the checks of a RW set when a non-private transaction is committed? I am interested to know if private data collections have the same protection against simultaneous updates in a race condition that we have with non-private data collections, but can't see from the documentation whether this protection exists. For example, a system which maintains a key/value which can be updated from two different peers, would an update from one peer make an update from the second peer fail in a race? Would a transaction which read a key/value fail if another transaction had update the key/value before it was committed?

Tim (Thu, 03 Oct 2019 13:38:05 GMT):
okay thx

smallant (Thu, 03 Oct 2019 14:12:56 GMT):
Hi, does anyone know what is the variable for timeouts to receive a reply from the chaincode?

RayYu 1 (Thu, 03 Oct 2019 16:33:10 GMT):
Has joined the channel.

RayYu 1 (Thu, 03 Oct 2019 16:33:12 GMT):
Hi all, I was trying to startup the fabcar example, I got a error message for echo 'Instantiating smart contract on mychannel' Instantiating smart contract on mychannel + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -l node -v 1.0 -c '{"Args":[]}' -P 'AND('\''Org1MSP.member'\'','\''Org2MSP.member'\'')' --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt 2019-10-03 16:10:35.260 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-10-03 16:10:35.260 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 I made some changes to the fabcar.js file in chaincode/fabcar/javascript/lib by duplicate and modify the createCar and query function for testing, not sure if that could have affected anything

dwelch91 (Thu, 03 Oct 2019 19:55:48 GMT):
Has joined the channel.

dalesupa22 (Thu, 03 Oct 2019 19:55:54 GMT):
Has joined the channel.

amealwithbasil (Thu, 03 Oct 2019 20:37:20 GMT):
Has joined the channel.

amealwithbasil (Thu, 03 Oct 2019 20:37:21 GMT):
Hi, I'm looking for guidance on how to save PDFs on Fabric. I've seen settings that define the max block size. Are there known limits to these, and what are the tradeoffs? My other thinking is to save them offchain and just save the hash into the blockchain. The problem with that is how to store the PDF in a decentralized manner.

delao (Thu, 03 Oct 2019 20:45:47 GMT):
This is a similar problem related to: is it possible to store PDFs, photos, videos, etc into a database? It is, but should you? You will lose performance and the network will have a harder time to get into sync again should anything goes off. If you MUST do it, you can change Orderer.BatchSize.AbsoluteMaxBytes on configtx.yaml to a apropriate number

SulavAdhikari (Thu, 03 Oct 2019 20:57:54 GMT):
Has joined the channel.

SulavAdhikari (Thu, 03 Oct 2019 20:57:56 GMT):
Hi, I am trying to write a Go client for Hyperledger fabric network. Can anyone point me to some documentation/guide to do so. The fabcar sample examples only provide node and java clients.

amealwithbasil (Thu, 03 Oct 2019 21:06:12 GMT):
thanks @delao. it will be a low throughput network, and short lived ledgers, needed for 1-2 months. so the network size shouldn't need to grow that much.

amealwithbasil (Thu, 03 Oct 2019 21:06:56 GMT):
do you know how large AbsoluteMaxBytes can go? i think the pdfs wouldn't exceed 10-20MB.

eliezer_of (Thu, 03 Oct 2019 22:27:10 GMT):
Has joined the channel.

Fama 5 (Fri, 04 Oct 2019 03:20:16 GMT):
Hi everyone, I wanted to know, hyperledger fabric have more resources in Golang or in javascript

abel23 (Fri, 04 Oct 2019 04:02:13 GMT):
How come no change is required? The users wouldn't know the available functionalities of the new chaincode.

abel23 (Fri, 04 Oct 2019 04:12:56 GMT):
The application development is more on node js SDK. The official docs use them. Go SDK is less. In the case of chaincode, both are on the same page i guess.

abel23 (Fri, 04 Oct 2019 04:21:03 GMT):
How can we add departments et al? These are not specified in the docs. Can we instantiate chaincode between two departments?

abel23 (Fri, 04 Oct 2019 04:29:04 GMT):
block chain is not suitable to store data like these. (PDF, .mp4, etc). It's better to be used only with textual data. Check out IPFS if you want to store these data using blockchain.

knagware9 (Fri, 04 Oct 2019 04:33:15 GMT):
that part is needed in sdk to call the new chaincode function but no so much changes just the new function name & required argument need to pass

abel23 (Fri, 04 Oct 2019 04:34:08 GMT):
okay.

mattiabolzonella1 (Fri, 04 Oct 2019 06:37:09 GMT):
Were can I find the hardware requirements in order to run a fabric network in an envirorment production?

Paradox-AT (Fri, 04 Oct 2019 08:03:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=AmJbxkHpDnhdeSnBC) Hey Guys, anyone here worked on RAFT ordering service?

adarshaJha (Fri, 04 Oct 2019 12:36:38 GMT):
yes

ashish.cppdev (Fri, 04 Oct 2019 15:13:39 GMT):
Hi - good morning. I have a question regarding getStateByPartialCompositeKey.

ashish.cppdev (Fri, 04 Oct 2019 15:16:37 GMT):
I use createCompositeKey to generate a key using which I write the state to the ledger with putState. The composite key consists of a prefix "org.example.testkey" and I write out several records which have prefixes like fabric1, fabric2, fabric3, ledger1, ledger2 etc. Now, I use getStateByPartialCompositeKey("org.example.testkey",["fabric"]) and I am hoping to get all the records that have fabric in the key. But I always get an empty iterator object back.

ashish.cppdev (Fri, 04 Oct 2019 15:19:28 GMT):
In the marbeles02 example, I notice that the example executes a putState with a different key, and the creates a composite key and does a putState with the composite key. I could not understand why this is being done. So, my question is whether I need to do this to get the getStateByPartialCompositeKey to work: 1. create composite key (compkey). 2) putState(compkey, ), 3) putState(compkey, null value) in order for the getStateByPartialCompositeKey to work? If so, then I am not clear on why. If I am missing something, please let me know. Thanks in advance.

trevoro1 (Fri, 04 Oct 2019 15:51:58 GMT):
with regard to collections, is privacy maintained only at an MSP level or may it be directly at a member level.

yacovm (Fri, 04 Oct 2019 15:56:05 GMT):
MSP level

trevoro1 (Fri, 04 Oct 2019 15:59:24 GMT):
Thanks @yacovm - then if I have a lot of members all sharing data via private side dbs, then will I need a lot of MSPs - ie one MSP per member in effect; I can see that getting very messy, if I have 100 members then I need a 100 MSPs. That I assume means a full MSP set of policies and infrastructure. Did I not understand how members and MSPs interact here?

yacovm (Fri, 04 Oct 2019 15:59:53 GMT):
you have 100 MSPs in your Blockchain?

trevoro1 (Fri, 04 Oct 2019 16:01:02 GMT):
@yacovm - no but I have in effect 100 members (eg 100 companies) and they all need to share data based on varying conditions - the documents evolve and then privacy changes as the document status changes. So I can foresee here have a lot of MSPs and that being hard to manage.

yacovm (Fri, 04 Oct 2019 16:01:28 GMT):
oh yeah... an endorsement policy with 100 MSPs is not something you should try at home

trevoro1 (Fri, 04 Oct 2019 16:01:51 GMT):
so am I missing something here?

yacovm (Fri, 04 Oct 2019 16:02:03 GMT):
perhaps use encryption

trevoro1 (Fri, 04 Oct 2019 16:02:18 GMT):
you mean not any side databases?

yacovm (Fri, 04 Oct 2019 16:02:35 GMT):
so, tell me something

trevoro1 (Fri, 04 Oct 2019 16:02:37 GMT):
I do not understand why Fabric requires MSP only constraints.

yacovm (Fri, 04 Oct 2019 16:02:53 GMT):
what you really want is to enable private data for a company that shares an MSP ID with another company?

yacovm (Fri, 04 Oct 2019 16:02:55 GMT):
is that it?

trevoro1 (Fri, 04 Oct 2019 16:04:24 GMT):
I think that is partly it. Consider an example, I have Alice with an invoice she shares with Bob - hence we have two members A and B. But then I get C into the equation - I need then 3 MSPs but the sound of it if side databases are used.

yacovm (Fri, 04 Oct 2019 16:05:54 GMT):
collections scale well because they are only a partition of the tables

yacovm (Fri, 04 Oct 2019 16:06:01 GMT):
however, MSP partitioning doesn't scale :/

yacovm (Fri, 04 Oct 2019 16:07:17 GMT):
I think that the problem is that if 2 peers share an MSP

yacovm (Fri, 04 Oct 2019 16:07:25 GMT):
then they will also replicate the private data

trevoro1 (Fri, 04 Oct 2019 16:07:44 GMT):
hence we need entirely new MSPs.

trevoro1 (Fri, 04 Oct 2019 16:08:06 GMT):
I am a little confused by the MSP: member relationship

yacovm (Fri, 04 Oct 2019 16:08:16 GMT):
what is the endorsement policy in your chaincode?

trevoro1 (Fri, 04 Oct 2019 16:09:02 GMT):
I assume that will control the specific chaincode access, is that how we control access by limiting access to chaincode?

yacovm (Fri, 04 Oct 2019 16:10:37 GMT):
no.... that controls who needs to validate a transaction

trevoro1 (Fri, 04 Oct 2019 16:11:20 GMT):
so how does that help with side databases?

yacovm (Fri, 04 Oct 2019 16:14:20 GMT):
It is unrelated, but endorsement policy is defined over MSP IDs

yacovm (Fri, 04 Oct 2019 16:14:57 GMT):
So if you have an EP that is complex, having lots of MSPs makes it more complex

trevoro1 (Fri, 04 Oct 2019 16:19:46 GMT):
My idea was just one MSPID and lots of members but I guess that will not work now in terms of side dbs

yacovm (Fri, 04 Oct 2019 16:20:23 GMT):
It will replicate to everyone

yacovm (Fri, 04 Oct 2019 16:20:31 GMT):
In that MSP

yacovm (Fri, 04 Oct 2019 16:21:15 GMT):
I think your best bet is to have lots od MSPs and use state based endorsement

yacovm (Fri, 04 Oct 2019 16:21:35 GMT):
It will shrink your endorsement policy pet key

yacovm (Fri, 04 Oct 2019 16:21:38 GMT):
*per

trevoro1 (Fri, 04 Oct 2019 16:21:59 GMT):
I read about state based endorsement

trevoro1 (Fri, 04 Oct 2019 16:46:13 GMT):
I just read this again. How will changing endorsements by KVpair changes help privacy? Is that for when different chaincode is deployed on different peers?

yacovm (Fri, 04 Oct 2019 16:54:44 GMT):
It doesnt help privacy, it makes endorsement policies tolerable

trevoro1 (Fri, 04 Oct 2019 17:00:20 GMT):
I am a little confused here. I am trying to have say 100 companies all interact and they need to restrict privacy access. I did firstly just think of channels but then that made a high overhead, then I considered collections which seemed to work but now I need a lot of MSPIds. You say about endorsement policies which seems to basically control how chaincode is endorsed.

trevoro1 (Fri, 04 Oct 2019 17:00:53 GMT):
Is there a standard model from Fabric about this?

yacovm (Fri, 04 Oct 2019 17:04:01 GMT):
You can have lots of MSPs, it's not an issue

yacovm (Fri, 04 Oct 2019 17:04:11 GMT):
You just need to use state based endorsement too

yacovm (Fri, 04 Oct 2019 17:04:31 GMT):
Otherwise you are going to have an odd endorsememt policy

yacovm (Fri, 04 Oct 2019 17:04:42 GMT):
Read about endorsement policies

yacovm (Fri, 04 Oct 2019 17:04:47 GMT):
And understamd them

yacovm (Fri, 04 Oct 2019 17:04:59 GMT):
(sorry for typos... On phone)

yacovm (Fri, 04 Oct 2019 17:04:59 GMT):
(sorry for typos... On mobile)

trevoro1 (Fri, 04 Oct 2019 17:05:36 GMT):
state based endorsement allows key value pairs to change endorsement. That basically means the system controls which peers endorse the txn based on values?

yacovm (Fri, 04 Oct 2019 17:05:52 GMT):
Nah... Based on keys

yacovm (Fri, 04 Oct 2019 17:05:56 GMT):
Not values

trevoro1 (Fri, 04 Oct 2019 17:05:58 GMT):
Why is that relevant? I have read the doc on that subject.

yacovm (Fri, 04 Oct 2019 17:06:08 GMT):
Ok if you have 100 companies

yacovm (Fri, 04 Oct 2019 17:06:35 GMT):
What is the endorsement policy of a chaincode that trades assets between each 2 companies?

TrevorOakley (Sat, 05 Oct 2019 02:33:11 GMT):
@yacovm I was called away. The basic chaincode is accessing a document state. So we have a series of documents (shipping notes etc) and they are updated but only certain parties can see certain docs. Hence my idea was a collection of docs and then defining a collection policy showing who could access what.

Amanullah68 (Sat, 05 Oct 2019 06:06:05 GMT):
Has joined the channel.

sanket1211 (Sat, 05 Oct 2019 09:14:27 GMT):
if there are three endorsers and i want to execute a transaction.i want a transaction proposal sent to three endorsers to accept or reject the transaction manually.can it be done? if yes plz let me know.

TrevorOakley (Sat, 05 Oct 2019 10:21:35 GMT):
manually how?

TrevorOakley (Sat, 05 Oct 2019 12:17:26 GMT):
lots of dead links here - https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data-arch.html#private-data-collection-definition

TrevorOakley (Sat, 05 Oct 2019 12:17:32 GMT):
Can someone correct?

TrevorOakley (Sat, 05 Oct 2019 12:18:35 GMT):
Status URL Source link text 410 Gone https://readthedocs.org/builds/hyperledger-fabric/?fromdocs=hyperledger-fabric Builds 404 Not Found https://github.com/hyperledger/fabric/tree/master/core/chaincode/shim/ext/cid chaincode library

TrevorOakley (Sat, 05 Oct 2019 12:22:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/ 100% scanned - 2000/2000 URLs checked, 1886 OK, 114 failed This free service checks the first 2000 links on any website. For larger websites please use our Auto-check subscription service - options. Scan completed with 114 errors

TrevorOakley (Sat, 05 Oct 2019 12:23:02 GMT):
114 deadlinks - capped at 2000 urls checked. Can someone correct these? There are many free utilities to list all the deadlinks. This is really minimal work for someone

TrevorOakley (Sat, 05 Oct 2019 12:23:51 GMT):
eg https://wiki.hyperledger.org/projects/fabric

TrevorOakley (Sat, 05 Oct 2019 12:23:58 GMT):
404 error

greg2git (Sat, 05 Oct 2019 14:09:26 GMT):
@TrevorOakley nobody wants to 'maintain' dead links, do they? but that's the state of the 'open source community'

TrevorOakley (Sat, 05 Oct 2019 14:20:16 GMT):
@greg2git maintaining a link takes a matter of minutes. Is that really too much to ask? The reports list all the deadlinks, and really from there it is a case of deleting references of changing them. I do not think that is unreasonable to ask. If the docs are so poorly maintained as this, then someone needs to rethink how the product is documented.

TrevorOakley (Sat, 05 Oct 2019 14:20:16 GMT):
@greg2git maintaining a link takes a matter of minutes. Is that really too much to ask? The reports list all the deadlinks, and really from there it is a case of deleting references of changing them. I do not think that is unreasonable to ask.

JosephNguyen (Sat, 05 Oct 2019 14:33:37 GMT):
Has joined the channel.

JosephNguyen (Sat, 05 Oct 2019 14:37:15 GMT):
Hi guys,

JosephNguyen (Sat, 05 Oct 2019 14:37:39 GMT):
When I use CLI to create a channel.

JosephNguyen (Sat, 05 Oct 2019 14:37:50 GMT):
I get this error.

JosephNguyen (Sat, 05 Oct 2019 14:37:53 GMT):
"Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'fabchannel01', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied "

JosephNguyen (Sat, 05 Oct 2019 14:38:50 GMT):
I take a look at orderer, there is another error message like this

JosephNguyen (Sat, 05 Oct 2019 14:39:10 GMT):
ERRO 0ee Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0

JosephNguyen (Sat, 05 Oct 2019 14:39:24 GMT):
Please help.

hmoazzem (Sat, 05 Oct 2019 15:37:21 GMT):
Hi all, could anyone tell me about any event related config on the peers? I'm getting error `Failed to submit transaction: Error: No event hubs for strategy` while trying to execute transactions from nodejs SDK. I've specified events URL `0.0.0.0:7053` in `connection-profile.json` file. I've `CORE_PEER_EVENTS_ADDRESS: 0.0.0.0:7053` environment variable on peers. How do I make peers use this port?

Fama 5 (Sat, 05 Oct 2019 16:45:28 GMT):
thank you

greg2git (Sat, 05 Oct 2019 16:59:55 GMT):
sure it makes sense, so if i see that 'https://wiki.hyperledger.org/projects/fabric' is dead and see that 'https://wiki.hyperledger.org/display/fabric' is not, where would i fix that? not sure if i want to sign up for all 114 fails, but we have to start somewhere

TrevorOakley (Sat, 05 Oct 2019 17:00:58 GMT):
I was not involved in the docs - I understand there is some kind of committee for this. I guess that would be the place to start.

TrevorOakley (Sat, 05 Oct 2019 17:08:48 GMT):
A client signs the proposal for the endorsing peer. How under Fabric CA client is that done? Is there a sample code for that?

TrevorOakley (Sun, 06 Oct 2019 05:03:45 GMT):
doc - Reconfiguration of a “local” MSP is only possible manually, and requires that the peer or orderer process is restarted. In subsequent releases we aim to offer online/dynamic reconfiguration (i.e. without requiring to stop the node by using a node managed system chaincode).

TrevorOakley (Sun, 06 Oct 2019 05:03:58 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html

TrevorOakley (Sun, 06 Oct 2019 05:04:18 GMT):
Can we add full MSPs dynamically?

TrevorOakley (Sun, 06 Oct 2019 17:51:01 GMT):
I find this confusing - https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html

TrevorOakley (Sun, 06 Oct 2019 17:58:51 GMT):
the demo refers to orgs but the collection refers to MSPs. If an MSP has many members, then how does the collection work?

TrevorOakley (Sun, 06 Oct 2019 18:16:21 GMT):
I think I worked this out. The MSP is a localMSP?

TrevorOakley (Sun, 06 Oct 2019 18:16:34 GMT):
that is then related to local nodes

akaskyknight (Sun, 06 Oct 2019 20:14:26 GMT):
Has joined the channel.

ultimo2020 (Mon, 07 Oct 2019 04:59:32 GMT):
Has joined the channel.

ultimo2020 (Mon, 07 Oct 2019 04:59:33 GMT):
Hi to everyone. I am trying to get back into developing with Fabric and wanted to ask you guys what is your language of choice? Is it GoLang or NodeJS? To develop with Fabric further, is the Composer still only for the Proof of Concepts? Or ar you using GoLang?

sanket1211 (Mon, 07 Oct 2019 05:06:45 GMT):
i mean on UI..asking user to endorse txn or not.

ultimo2020 (Mon, 07 Oct 2019 05:25:03 GMT):
Hi guys. To write Chaincode and develop applications, how are you doing this? With NodeJS or GoLang? I have seen that the NodeJS SDK is very rich but maybe with NPM insecure because of many unwanted packages? And there is also Chaincode in NodeJS - https://github.com/hyperledger/fabric-chaincode-node

ultimo2020 (Mon, 07 Oct 2019 05:25:54 GMT):
Where is the focus now? What are you guys using that you think that will be in the future of Hyperledger supported more from the Community side? GoLang or NodeJS ?

trevoro1 (Mon, 07 Oct 2019 07:10:05 GMT):
Go was dropped from official support AFAIK in 1.4 and also on 2.0. Composer was dropped from LTS weeks ago. Therefore, it seems atm Java and nodejs are preferred.

trevoro1 (Mon, 07 Oct 2019 07:11:07 GMT):
What is the best way to add dynamically MSPs to a network? I understand the Fabric SDK cannot be used. Is therefore it best to use a python script with some kind of automation such as Ansible or Vagrant?

ultimo2020 (Mon, 07 Oct 2019 07:37:53 GMT):
Hi. Thanks for your fast answer. I cannot find that GoLang was dropped. Writting chaincode in Go was from the beggining, and I see know we have NodeJS. What would be the right way to pursuit für Longer Term development

davidkel (Mon, 07 Oct 2019 07:50:48 GMT):
From a chaincode point of view there are 3 choices, GoLang, Node, Java. It will be a personal choice as to which one you use. Some have newer capabilities currently (such as node which has a contract api, java version of this is still in beta I believe and there will be a version for GoLang in the future). Performance may also be a key requirement and each language will exhibit different performance characteristics. For the SDK side, currently there are 4 SDKs. The node sdk is probably the most comprehensive but doesn't support IDEMIX. Java is also available but probably not as capable as the node implementation, but Java does support IDEMIX. Go has an SDK but has only just released a beta version (not sure which version of fabric the Go SDK releases actually target). There is a Python SDK but I think that is still quite a way behind the other SDKs

ultimo2020 (Mon, 07 Oct 2019 08:00:15 GMT):
Thanks a lot David. As I can see from your side, Node would be preffered for both Chaincode (Bussiness Logic) and SDK for die apps? Is this the way you also follow ?

davidkel (Mon, 07 Oct 2019 08:02:17 GMT):
My preference for the node sdk client side is only because I am most familiar with it. For chaincode side personally I would choose node or Go depending on my requirements.

ultimo2020 (Mon, 07 Oct 2019 08:28:08 GMT):
Thanks a lot. I was playing with the composer in the year 2018. Should I start with this link: https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html and build a new fabric for the test development? Is this a good way, or are you using something else?

Fama 5 (Mon, 07 Oct 2019 09:20:44 GMT):
i am want to use fabric-sdk-go, i using go mod to create the vendor fabric-sdk-go, the issue is all the files are not loaded

Fama 5 (Mon, 07 Oct 2019 09:20:44 GMT):
i want to use fabric-sdk-go, i am using go mod to create the vendor fabric-sdk-go, the issue is all the files are not loaded

Fama 5 (Mon, 07 Oct 2019 09:20:51 GMT):
module gitlab.com/avantas go 1.12 require ( github.com/hyperledger/fabric-sdk-go v1.0.0-beta1 google.golang.org/appengine v1.4.0 // indirect )

Fama 5 (Mon, 07 Oct 2019 09:20:51 GMT):
module gitlab.com go 1.12 require ( github.com/hyperledger/fabric-sdk-go v1.0.0-beta1 google.golang.org/appengine v1.4.0 // indirect )

Fama 5 (Mon, 07 Oct 2019 09:20:51 GMT):
module github.com/myproject go 1.12 require ( github.com/hyperledger/fabric-sdk-go v1.0.0-beta1 google.golang.org/appengine v1.4.0 // indirect )

azzicharbel (Mon, 07 Oct 2019 09:45:51 GMT):
@MuhammedHafil thx a lot for your input.

msolefonte (Mon, 07 Oct 2019 09:46:23 GMT):
Hi to everyone. When I start a channel between some orgs, I get errors related to TLS hadshake fails. How can I add remote orgs peers TLS certicates to my peers?

trevoro1 (Mon, 07 Oct 2019 10:16:37 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/fabric-sdks.html - "Hyperledger Fabric intends to offer a number of SDKs for a wide variety of programming languages. The first two delivered are the Node.js and Java SDKs. We hope to provide Python, REST and Go SDKs in a subsequent release." There is no Go support for an SDK. That is repeated for 2.0.

trevoro1 (Mon, 07 Oct 2019 10:17:32 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/fabric-sdks.html - "Hyperledger Fabric intends to offer a number of SDKs for a wide variety of programming languages. The first two delivered are the Node.js and Java SDKs. We hope to provide Python, REST and Go SDKs in a subsequent release." There is no Go support for an SDK. That is repeated for 2.0.

trevoro1 (Mon, 07 Oct 2019 10:18:05 GMT):
Go is not supported, just Java and nodejs now. Also in 2.0.

azzicharbel (Mon, 07 Oct 2019 10:18:17 GMT):
@MuhammedHafil if I had a 1.2 version and we want to go to 1.4 and start using wallet, how we would go about it ? any guidance would be appreciated

trevoro1 (Mon, 07 Oct 2019 10:19:22 GMT):
Can endorsement be done across two orgs when I have a collection? the endorsement policy is at a channel level and can that go across orgs?

davidkel (Mon, 07 Oct 2019 10:40:27 GMT):
@trevoro1 that statement is very out of date. There is a plan to try to get an "official" release for the Go SDK. People do use the Go SDK for production deployments currently

ultimo2020 (Mon, 07 Oct 2019 10:51:34 GMT):
What are you guys using ?

UdkReddy (Mon, 07 Oct 2019 11:01:09 GMT):
Hello guys. Is there a method to fetch all participants/members of a channel?

trevoro1 (Mon, 07 Oct 2019 11:24:12 GMT):
You mean the official docs are out of date? That is really unhelpful. I have seen this statement repeated in numerous places. So what is the actual situation now?

davidkel (Mon, 07 Oct 2019 11:28:47 GMT):
Currently there are 4 sdks under the hyperledger fabric banner: node, java, Go, Python. Node and Java have official releases. Go has been around for a while as well but doesn't have an "official" release number however there are people who use the Go SDK for production purposes so it is considered to be capable now. The Go SDK maintainers are working towards declaring an official release. I haven't looked at the Python SDK so don't know how capable it is. As far as I know there will never be a REST api for fabric.

ultimo2020 (Mon, 07 Oct 2019 11:43:32 GMT):
When you talk about GO Sdk, do you mean the Chaincode SDK or Application SDK or both ? Or the way would be to use NodeJS for both ?

msolefonte (Mon, 07 Oct 2019 11:46:29 GMT):
Hello. Can someone take a look to this? https://stackoverflow.com/questions/58267505/tls-handshake-fails-between-organizations

davidkel (Mon, 07 Oct 2019 11:48:36 GMT):
@Zeljko Milinovic I think the point is it's really your choice on what language you develop your chaincode in and what language you develop your client side code in, and it isn't mandatory that both chaincode and application have to be in the same language. Go, Node and Java are all suitable candidates to choose from

davidkel (Mon, 07 Oct 2019 11:48:36 GMT):
@Zeljko Milinovic I think the point is it's really your choice on what language you develop your chaincode in and what language you develop your client side code in, and it isn't mandatory that both chaincode and application have to be in the same language. Go, Node and Java are all suitable candidates to choose from. When I talk about the Go SDK not having an official release number yet I am referring to the client side SDK.

davidkel (Mon, 07 Oct 2019 11:48:36 GMT):
@Zeljko Milinovic I think the point is it's really your choice on what language you develop your chaincode in and what language you develop your client side code in, and it isn't mandatory that both chaincode and application have to be in the same language. Go, Node and Java are all suitable candidates to choose from depending on your needs/requirements. When I talk about the Go SDK not having an official release number yet I am referring to the client side SDK.

ultimo2020 (Mon, 07 Oct 2019 12:04:47 GMT):
Thanks a lot.

trevoro1 (Mon, 07 Oct 2019 12:10:19 GMT):
where do we check what SDKs are officially supported? I heard the docs are dated.

msolefonte (Mon, 07 Oct 2019 14:13:14 GMT):
After joining a channel from a peer I am getting the message `[blocksProvider] DeliverBlocks -> WARN 055 [global] Got error &{SERVICE_UNAVAILABLE}` in the peer and the message `[common.deliver] deliverBlocks -> WARN 015 [channel: global] Rejecting deliver request for 172.17.0.14:37192 because of consenter error` in the orderer. Any idea?

yacovm (Mon, 07 Oct 2019 14:22:00 GMT):
@msolefonte is it Kafka or Raft orderer?

msolefonte (Mon, 07 Oct 2019 14:22:12 GMT):
Kafka

yacovm (Mon, 07 Oct 2019 14:22:16 GMT):
oh boy

yacovm (Mon, 07 Oct 2019 14:22:20 GMT):
:(

yacovm (Mon, 07 Oct 2019 14:22:40 GMT):
probably you can't connect to Kafka or something

yacovm (Mon, 07 Oct 2019 14:22:44 GMT):
check the orderer logs

msolefonte (Mon, 07 Oct 2019 14:23:05 GMT):
Look a this message

msolefonte (Mon, 07 Oct 2019 14:23:16 GMT):
I think I already connected but I get the consenter error

CT123 (Mon, 07 Oct 2019 17:05:44 GMT):
IS there a guide or reference to port mapping for multiple orgs, e.g. anchor peers and configuring configtx.yaml?

CT123 (Mon, 07 Oct 2019 17:13:39 GMT):
If I have org1 = port 7051, org2 = port 9051 would it follow that org3 = port 11051, org4 = port 13051, org5 = port 15051??? There is zero info in the readthedocs info THANKS in advance

delao (Mon, 07 Oct 2019 19:21:34 GMT):
Port mapping is really up to the user, It is common to use the 1st orderer port as 7050 and subsequent orderers 1000 ports up each, for peers the same "convention" is used the 1st peer of the 1st org listens to port 7051 and each other peer's port is 1000 numbers higher. It is all configurable though. You can set any port to your node ( being orderer peer, ca ) by setting either the orderer.yaml, core.yaml and fabric-ca-server-config.yaml OR setting the correct environment variables

braduf (Mon, 07 Oct 2019 20:54:13 GMT):
Hi, to obtain data from the blockchain and/or worldstate I found several approaches like implementing query functions in the chaincode or using events and retrieving information from the payload. Now I was thinking that I have never seen an example where the CouchDB of the world state is queried directly. Since it is a regular database outside of the peer node itself i don't see why it shouldn't be possible. Or is there any specific reason why it is not advised to query the state database directly?

braduf (Mon, 07 Oct 2019 20:54:13 GMT):
Hi, to obtain data from the blockchain and/or worldstate I found several approaches like implementing query functions in the chaincode or using events and retrieving information from the payload. Now I was thinking that I have never seen an example where the CouchDB of the world state is queried directly. Since it is a regular database outside of the peer node itself i don't see why it shouldn't be possible. Or shouldn't the state database be queried directly for some reason?

yacovm (Mon, 07 Oct 2019 20:56:05 GMT):
Of course it's possible

yacovm (Mon, 07 Oct 2019 20:56:12 GMT):
if you own the peer, why isn't it possible?

braduf (Mon, 07 Oct 2019 21:32:43 GMT):
Yeah, I know, I just wanted to be sure that there are no concerns with querying the database directly since in every example I have seen and read the state is always queried through the chaincode, i thought there maybe was a reason why it was not done...

yacovm (Mon, 07 Oct 2019 21:49:52 GMT):
@braduf It depends on whether the commits to the state database in couchDB are atomic

yacovm (Mon, 07 Oct 2019 21:50:04 GMT):
if they are not atomic, then you may get a non serializable read

yacovm (Mon, 07 Oct 2019 21:50:15 GMT):
@dave.enyeart - are the commits to couch atomic ?

yacovm (Mon, 07 Oct 2019 21:50:26 GMT):
is there a transactional semantic in multiple commits

yacovm (Mon, 07 Oct 2019 21:50:32 GMT):
or is it a commit of a document at a time?

braduf (Tue, 08 Oct 2019 00:38:38 GMT):
That would be good to know. Thanks for raising the question @yacovm !

Fama 5 (Tue, 08 Oct 2019 03:52:28 GMT):
Hi all, I am trying to use the fabric sdk-go, According document it says "Initialize the SDK with the configuration file", but how i can create the configuration file ?

Fama 5 (Tue, 08 Oct 2019 03:58:39 GMT):
do i need to run fabric-server frist

TrevorOakley (Tue, 08 Oct 2019 04:29:59 GMT):
how can someone know if the commit is atomic?

msolefonte (Tue, 08 Oct 2019 10:42:58 GMT):
Hello. I am trying to create a channel with `peer channel create -o orderer0.org1:7050 --channelID global -f /data/global.tx` but I get the error `got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'global': error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application but was in the read set `. Any idea?

msolefonte (Tue, 08 Oct 2019 10:42:58 GMT):
Hello. I am trying to create a channel with `peer channel create -o orderer0.org1:7050 --channelID global -f /data/global.tx` but I get the error `got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'global': error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application but was in the read set`. Any idea?

PulkitSarraf (Tue, 08 Oct 2019 11:03:14 GMT):
Hi..!! Is there any way to delete a channel once created? If yes please share the method

trevoro1 (Tue, 08 Oct 2019 13:27:17 GMT):
you can revoke peer access in the config, or just change the artifacts and then get the systems channel to be regenerated.

msolefonte (Tue, 08 Oct 2019 14:23:42 GMT):
Can someone take a look here? https://stackoverflow.com/questions/58286678/implicit-policy-evaluation-failed-when-creating-a-new-channel

hmoazzem (Tue, 08 Oct 2019 14:32:34 GMT):
Hi, all I'd really appreciate if anyone could have a look my `MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority` problem. I've been struggling for weeks now with this. Detailed SO question: https://stackoverflow.com/questions/58288431/msp-error-the-supplied-identity-is-not-valid-x509-certificate-signed-by-unkno

CT123 (Tue, 08 Oct 2019 14:52:17 GMT):
core.yaml vs base/peer-base.yaml what's the diff and which should we use? docs (https://hyperledger-fabric.readthedocs.io/en/release-1.4/gossip.html) indicate that core.yaml is to be used to config gossip btwn peers but fabric-samples does this in base/peer-base.taml - which is correct?

CT123 (Tue, 08 Oct 2019 15:02:41 GMT):
More fundamental Q - our config is 5 orgs, 1 orderer, CA for each org, 1 peer only for each org - 1 channel but private coms between orgs 1 and A, 1 and B -- trying to configure docker-compose-base.yaml - is the following correct for GOSSIP for two of the example peers: ``` CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:8051 CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.orgA.example.com:13051 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.orgA.example.com:14051 ```

hmoazzem (Tue, 08 Oct 2019 17:20:15 GMT):
@CT123 To my understanding `CORE_PEER_GOSSIP_BOOTSTRAP` is the peer (URL) a newly launched peer connects to and starts "gossiping". The new peer learns more about the network and other peers through gossip protocol. I'm learning Fabric and using this for kubernetes configmap (environment variables) manifests. ``` $(if [ "$PEER" = "peer0" ]; then echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer1.${ORG}:7051" else echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer0.${ORG}:7051" fi) ```

hmoazzem (Tue, 08 Oct 2019 17:20:15 GMT):
@CT123 To my understanding `CORE_PEER_GOSSIP_BOOTSTRAP` is the peer (URL) a newly launched peer connects to and starts "gossiping". The new peer learns more about the network and other peers through gossip protocol. I'm learning Fabric and using this for kubernetes configmap (environment variables) manifests. ``` $(if [ "$PEER" = "peer0" ]; then echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer1.${ORG}:7051" else echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer0.${ORG}:7051" fi) ``` So in your case first instance is correct ``` CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:8051 ```

hmoazzem (Tue, 08 Oct 2019 17:20:15 GMT):
@CT123 To my understanding `CORE_PEER_GOSSIP_BOOTSTRAP` is the peer (URL) a newly launched peer connects to and starts "gossiping". The new peer learns more about the network and other peers through gossip protocol. I'm learning Fabric and using this for kubernetes configmap (environment variables) manifests. ``` $(if [ "$PEER" = "peer0" ]; then echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer1.${ORG}:7051" else echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer0.${ORG}:7051" fi) ``` So in your case it should look like ``` CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:8051 ```

hmoazzem (Tue, 08 Oct 2019 17:20:15 GMT):
@CT123 To my understanding `CORE_PEER_GOSSIP_BOOTSTRAP` is the peer (URL) a newly launched peer connects to and starts "gossiping". The new peer learns more about the network and other peers through gossip protocol. I'm learning Fabric and using this for kubernetes configmap (environment variables) manifests. ``` $(if [ "$PEER" = "peer0" ]; then echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer1.${ORG}:7051" else echo "CORE_PEER_GOSSIP_BOOTSTRAP: peer0.${ORG}:7051" fi) ``` If you've only one peer, gossiping probably isn't needed (not sure if gossiping with peers from other org is needed). In case of two peers it should look like ``` CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:8051 ```

delao (Tue, 08 Oct 2019 18:06:53 GMT):
I tried to answer there, if you need any help, PM me

PratikPatil (Tue, 08 Oct 2019 19:45:52 GMT):
Has joined the channel.

PratikPatil (Tue, 08 Oct 2019 19:45:53 GMT):
Hi, Im getting leveldb error in fabric-orderer docker container. Any help is appreciated. Thank you.panic: Error opening leveldb: resource temporarily unavailable goroutine 1 [running]: github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.(*DB).Open(0xc00002f800) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_helper.go:79 +0x271 github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.NewProvider(0xc000030ff0, 0xc000030ff0) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_provider.go:40 +0xda github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.NewProvider(0xc0001fc220, 0xc0001fc260, 0x7d2325, 0xc00000e4d8) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore_provider.go:34 +0x7f github.com/hyperledger/fabric/common/ledger/blockledger/file.New(0xc00004010c, 0x2d, 0x2, 0x2)

CT123 (Tue, 08 Oct 2019 21:12:37 GMT):
@hmoazzem thanks for the reply. What was recommended was that we would need to use private communication, as org1 and orgA need private coms and org1 and orgB need private comms so the recommendation by someone on the dev team was to use 1 channel and use private data --- which I *believe* is handled over gossip. Originally we had architected using 2 channels and someone here vetoed that and recommended private comms.

CT123 (Tue, 08 Oct 2019 21:12:37 GMT):
@hmoazzem thanks for the reply. Believe I found a great answer here - you might find it useful as well https://stackoverflow.com/questions/51377474/hyperledger-fabric-gossip-bootstrap-gossip-externalendpoints

CT123 (Tue, 08 Oct 2019 21:15:07 GMT):
@hmoazzem also forgot to mention we're not using kubernetes, just Docker

mauricio (Wed, 09 Oct 2019 02:34:16 GMT):
Has joined the channel.

PulkitSarraf (Wed, 09 Oct 2019 03:47:23 GMT):
can i create a channel again with same name

PulkitSarraf (Wed, 09 Oct 2019 03:47:23 GMT):
can i again create a channel with name?

PulkitSarraf (Wed, 09 Oct 2019 03:47:25 GMT):
?

Fama 5 (Wed, 09 Oct 2019 04:22:11 GMT):
Is is possible to create the CA config file using fabric-sdk-go

dinesh.rivankar (Wed, 09 Oct 2019 04:55:05 GMT):
Hey, how do we create a network of networks in Fabric, e.g. a single organization being part of many fabric networks where they can read and write data to all networks.

dinesh.rivankar (Wed, 09 Oct 2019 04:55:05 GMT):
Hey, how can we create a network of networks in Fabric, e.g. a single organization being part of many fabric networks where they can read and write data to all networks.

simran (Wed, 09 Oct 2019 06:15:06 GMT):

Screenshot from 2019-10-09 11-43-52.png

rohand (Wed, 09 Oct 2019 09:25:49 GMT):
Hi Guys

rohand (Wed, 09 Oct 2019 09:26:02 GMT):
I am trying to migrate an existing Kafka based setup to Raft

rohand (Wed, 09 Oct 2019 09:26:26 GMT):
I have followed the documentation on the same but I am getting an error while trying to update metadata to channel

rohand (Wed, 09 Oct 2019 09:27:10 GMT):
The channel diff json file contains "proto: can't skip unknown wire type 6"

soumyanayak (Wed, 09 Oct 2019 10:06:49 GMT):
Can you please specify which step exactly and post the complete logs

rohand (Wed, 09 Oct 2019 10:39:03 GMT):
the decoded json that I get after running command ` curl -X POST --data-binary @channelname.diff.block http://127.0.0.1:7059/protolator/decode/common.ConfigUpdate -o channelname.diff.json` shows above error

rohand (Wed, 09 Oct 2019 10:40:26 GMT):
the command used for generating block file is `curl -X POST -F original=@channelname.block -F updated=@channelname.updated.block http://127.0.0.1:7059/configtxlator/compute/update-from-configs -F channel=channelname-o channelname.diff.block`

rohand (Wed, 09 Oct 2019 10:41:46 GMT):
the issue is not with the commands above though because they work without any issue while trying to update consensusType or changing maintenance state as required by the migration process

rohand (Wed, 09 Oct 2019 10:42:13 GMT):
It's only during metadata update that I get error `proto: can't skip unknown wire type 6`

ShefaliMittal (Wed, 09 Oct 2019 13:13:11 GMT):
Hi, Can anyone please tell me how do I create two contract in one go chaincode and invoke them separately.

braduf (Wed, 09 Oct 2019 17:00:27 GMT):
Just to follow up to know if someone has an answer already or a direction on how we can get to know it. Will every commit be atomic or does it depend of what states should be updated by a tx and so does it depend of the application?

yacovm (Wed, 09 Oct 2019 17:02:53 GMT):
@dave.enyeart , @manish-sethi - is couchDB commit atomic?

manish-sethi (Wed, 09 Oct 2019 17:43:11 GMT):
Short answer is yes. Though, couchdb by itself does not provide atomicity of commits, however, fabric manages on its own to achieve this - as that is one of the fundamental requirement for us.

yacovm (Wed, 09 Oct 2019 17:43:28 GMT):
@manish-sethi that's the problem

yacovm (Wed, 09 Oct 2019 17:43:37 GMT):
he wants to query couchDB without going through Fabric

yacovm (Wed, 09 Oct 2019 17:43:51 GMT):
I'm asking - is it linearizable?

manish-sethi (Wed, 09 Oct 2019 17:43:57 GMT):
Then he may get inconsistent view

yacovm (Wed, 09 Oct 2019 17:44:11 GMT):
that's what I was concerned about, but I wasn't sure, hence asked you :)

yacovm (Wed, 09 Oct 2019 17:44:15 GMT):
thanks @manish-sethi

yacovm (Wed, 09 Oct 2019 17:44:46 GMT):
@braduf ^

raidinesh80 (Wed, 09 Oct 2019 23:57:45 GMT):
Is their any way to set timeout for Fabric CA client in Node js sdk?

msolefonte (Thu, 10 Oct 2019 07:58:27 GMT):
Thank you very much. I am going to check it and report you with some answers.

Paradox-AT (Thu, 10 Oct 2019 09:23:48 GMT):
Hey guys

Paradox-AT (Thu, 10 Oct 2019 09:24:21 GMT):
While instantiating the chaincode I am getting the following error:

Paradox-AT (Thu, 10 Oct 2019 09:24:35 GMT):
2019-10-10 09:19:03.184 UTC [msp.identity] Sign -> DEBU 04a Sign: digest: 2176BF8E4040EA1949CD403B848B42E69CE1B3E88EC357865E66790212F6D667 Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown

Paradox-AT (Thu, 10 Oct 2019 09:24:35 GMT):
```2019-10-10 09:19:03.184 UTC [msp.identity] Sign -> DEBU 04a Sign: digest: 2176BF8E4040EA1949CD403B848B42E69CE1B3E88EC357865E66790212F6D667 Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown```

Paradox-AT (Thu, 10 Oct 2019 09:24:54 GMT):
I am trying to use java chaincode

Paradox-AT (Thu, 10 Oct 2019 09:25:12 GMT):
can anyone help?

SAURABHPATIL (Thu, 10 Oct 2019 12:26:06 GMT):
Has joined the channel.

SAURABHPATIL (Thu, 10 Oct 2019 12:26:08 GMT):
How is participant using client application of Hyperledger fabric identified or validated on the network?

y3g0r (Thu, 10 Oct 2019 16:31:11 GMT):
Has joined the channel.

y3g0r (Thu, 10 Oct 2019 16:31:12 GMT):
Hi, I see this when I trying to Install samples, binaries and docker images: ``` ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.3 not found Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.3 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.3 not found Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.3 ``` command is `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.3 1.4.3 0.4.15` I've created an issue in Jira https://jira.hyperledger.org/browse/FAB-16812

y3g0r (Thu, 10 Oct 2019 16:31:12 GMT):
Hi, I see this when I'm trying to Install samples, binaries and docker images: ``` ==> FABRIC IMAGE: baseos Error response from daemon: manifest for hyperledger/fabric-baseos:1.4.3 not found Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.3 ==> FABRIC IMAGE: nodeenv Error response from daemon: manifest for hyperledger/fabric-nodeenv:1.4.3 not found Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.3 ``` command is `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.3 1.4.3 0.4.15` I've created an issue in Jira https://jira.hyperledger.org/browse/FAB-16812

Fosol (Thu, 10 Oct 2019 20:22:49 GMT):
Has joined the channel.

Fosol (Thu, 10 Oct 2019 20:22:49 GMT):
Hi, I have a general question about management of Wallets. Currently they are only accessible via an Agent (Cloud or Edge). They are possibly encrypted through the owner's key-phrase. What if the Agent becomes unavailable? Is there a way to regenerate a Wallet from nothing? Is there a built in way to share/copy/move a Wallet from one Agent to another?

Koushik (Thu, 10 Oct 2019 22:26:13 GMT):
Hi Guys, I am in a perplexed dilemma, I have a running production env with cryptogen generated certs for PeerOrg and OrdererOrg. I want to migrate the peer certs with Fabric-CA generated certs without creating a new channel and new genesis.block is it possible?

yacovm (Thu, 10 Oct 2019 22:48:00 GMT):
yes, but it's painful. Take your painkiller of choice and strap in

yacovm (Thu, 10 Oct 2019 22:50:06 GMT):
Basically you need to add the CA certificate of the fabric CA

yacovm (Thu, 10 Oct 2019 22:50:22 GMT):
then you add the certificates of admins issued by the CA to the channel config

yacovm (Thu, 10 Oct 2019 22:50:43 GMT):
afterwards you *slowly and carefully* move the certificates of peers, one by one

yacovm (Thu, 10 Oct 2019 22:51:00 GMT):
and make sure they don't complain in the logs

yacovm (Thu, 10 Oct 2019 22:51:16 GMT):
I would recommend you to use the latest build in v1.4 branch or wait for v1.4.4 to be released....

Koushik (Thu, 10 Oct 2019 23:02:45 GMT):
Wait if I change the configtx.yaml with fabric ca certs wouldn’t I have to

Koushik (Thu, 10 Oct 2019 23:03:11 GMT):
Create a new .tx and new genesis.block?

Koushik (Thu, 10 Oct 2019 23:03:19 GMT):
That’s the part I am stuck on?

yacovm (Thu, 10 Oct 2019 23:03:23 GMT):
you need to *add* more CA certificates

yacovm (Thu, 10 Oct 2019 23:03:26 GMT):
not *replace* them

yacovm (Thu, 10 Oct 2019 23:03:37 GMT):
no.... you just update all the channels

yacovm (Thu, 10 Oct 2019 23:04:03 GMT):
look, make a test throw-away channel to practice this migration

yacovm (Thu, 10 Oct 2019 23:04:14 GMT):
so if you screw up - you are not locked outside of your blockchain

Koushik (Thu, 10 Oct 2019 23:04:23 GMT):
🤔

Utsav_Solanki (Fri, 11 Oct 2019 05:04:27 GMT):
in hyperledger fabric can i use different version docker images in same hyperledger network, for example orderer docker images is 1.4.3 and peer docker images is 1.4.2

abel23 (Fri, 11 Oct 2019 05:08:55 GMT):
Should all hyperledger technologies work together to make the dream work. For eg: fabric, indy, iroha. Should these tech's interact? If so, how would fabric interact with indy, iroha, sawtooth and others?

abel23 (Fri, 11 Oct 2019 05:51:28 GMT):
How should one choose which hyperledger technology to take on depending on the use-case? For eg: fabric for transactions between parties? Can other tech be used for the same or does it have it's own use case.

abel23 (Fri, 11 Oct 2019 06:29:03 GMT):
Is agreement between orgs to install a chaincode comes outside the fabric network? Both orgs will have to verify the chaincode before instantiation right? Also it's one of the org that has to instantiate the chaincode on the channel. How would the other org know which instantiation policy the other org is using during instantiation of the chaincode?

Jelle.Diet (Fri, 11 Oct 2019 07:49:23 GMT):
I believe the update policy is defined on the channel itself, which means you can require x amount of admins to sign off on a chaincode before installation/instantiation

Fama 5 (Fri, 11 Oct 2019 08:32:27 GMT):
hi all, I am trying to use fabrick-sdk-go, i want to create "client context" to generate the keypair for admin, i am referring the https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/msp, my question is 1. which config file i need to load to create the client context.

Fama 5 (Fri, 11 Oct 2019 08:32:27 GMT):
hi all, I am trying to use fabrick-sdk-go, i want to create "client context" to generate the keypair for admin, i am referring the https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/msp, i generate the config file using fabric-ca-server init -b admin:adminpw --home ~/ServerCA and from client i am using fabric-ca-client enroll -b admin:adminpw@localhost:7054 my question is . 1. which config file i need to load to create the client context.

abel23 (Fri, 11 Oct 2019 09:07:04 GMT):
This is not provided in the fabric samples right? In the samples, we just install on both org peers and one org just instantiates it with an endorsement pollicy.

mauricio (Fri, 11 Oct 2019 11:39:47 GMT):
@yacovm When will be fabric v1.4.4 released?

yacovm (Fri, 11 Oct 2019 11:46:22 GMT):
I don't know... @dave.enyeart / @mastersingh24 ?

mastersingh24 (Fri, 11 Oct 2019 11:54:17 GMT):
actually ... do you still have everything you generated with cryptogen?

mastersingh24 (Fri, 11 Oct 2019 11:54:53 GMT):
If so, this is pretty easy ... just start fabric-ca-server using the root certs created by cryptogen ... they are in the `ca` folder of each org

abel23 (Fri, 11 Oct 2019 12:03:43 GMT):
I just checked fabric 2.0 release notes. This is one of the issues they are resolving or have resolved in v2.0. https://github.com/hyperledger/fabric/releases/tag/v2.0.0-alpha FAB-11237 describes this issue

Koushik (Fri, 11 Oct 2019 13:36:30 GMT):
Holy shit thanks

Koushik (Fri, 11 Oct 2019 13:41:07 GMT):
@mastersingh24 the thing is when you bring up the fabric ca server isn’t the root cert auto generated? Or can we we define which root cert to use in the fabric-ca-server-config.yaml)

mastersingh24 (Fri, 11 Oct 2019 13:41:58 GMT):
you can define the root key and cert in `fabric-ca-server-config.yaml`

mastersingh24 (Fri, 11 Oct 2019 13:44:30 GMT):
You can also use environment variables (but I don't recommend that) ... but here's an example from the samples which use environment variables: https://github.com/hyperledger/fabric-samples/blob/release-1.4/basic-network/docker-compose.yml#L17-L18

Koushik (Fri, 11 Oct 2019 13:45:00 GMT):
Kk thanks

mastersingh24 (Fri, 11 Oct 2019 13:45:09 GMT):
sure thing

Koushik (Fri, 11 Oct 2019 13:46:07 GMT):
If this works will buy you a beer wherever you are 😱😱😱. Was having a mini meltdown for the past few days

mastersingh24 (Fri, 11 Oct 2019 13:47:05 GMT):
don't meltdown ;)

mastersingh24 (Fri, 11 Oct 2019 14:05:42 GMT):
it's just blockchain lol

Koushik (Fri, 11 Oct 2019 14:06:36 GMT):
😂

CT123 (Fri, 11 Oct 2019 17:30:36 GMT):
Q on private data collections: where is it recommended that collections-config.json live? In a dir under a project folder or what's recommended?? Thanks for fielding a noob q

spmcnamara (Sat, 12 Oct 2019 03:39:52 GMT):
Can anyone point me towards a good walkthrough for setup of the RAFT orderer on v1.4? I'm having some trouble understanding the set of configuration parameters available to me, along with what (if any) defaults exist. I'm using the example configs (configtx.yaml and orderer.yaml) from https://github.com/hyperledger/fabric/tree/release-1.4/sampleconfig, but am struggling. Also, is the recommended model to have a separate orderer organization that contains all the RAFT orderer nodes, or should each organization involved in the network have their own orderer node(s) that participate in the RAFT set? There are quite a lot of posts/tutorials out there for simple demo setups, but I'm finding much less around non-trivial setups (mutli-org + RAFT.)

knagware9 (Sat, 12 Oct 2019 09:49:12 GMT):
This is the recommanded approach " each organization involved in the network have their own orderer node(s) that participate in the RAFT set"

spmcnamara (Sat, 12 Oct 2019 17:14:44 GMT):
Thanks @knagware9. Any thing good out there other than the official docs regarding setup of RAFT orderers?

spmcnamara (Sat, 12 Oct 2019 17:14:44 GMT):
Thanks @knagware9. Any thing good out there other than the official docs regarding setup of RAFT orderers? And are those RAFT orderers OK to live in each Org, or should each Org have a separate "orderer org" to keep them separate? I think there was a strong recommendation not to have your orderer in the same Org as your peers due to DoS concerns. Not sure if that changed with RAFT.

yacovm (Sat, 12 Oct 2019 17:29:36 GMT):
right, don't put peers and orderers in the same org

hmoazzem (Sat, 12 Oct 2019 17:51:30 GMT):
I'm not using TLS in dev environment. I can't seem to get `fabric-network` npm package to work without TLS in Fabcar sample. In Fabcar example, I modified `connection-profile.json` like: ``` "name": "fabcar-network", "version": "1.0.0", "client": { "tlsEnable": false, "adminUser": "admin", ... ... ``` I also removed `s` wherever `https` and `grpcs` occurred in connection-profile.json file. The same connection profile works with Fabric explorer. Where can I specify not to use TLS in Fabcar example?

spmcnamara (Sun, 13 Oct 2019 21:21:56 GMT):
Thanks @yacovm

Fama 5 (Mon, 14 Oct 2019 04:16:00 GMT):
Hi everyone, I am facing difficulty in using the Fabric-sdk-go with Fabric CA could anyone can help me. 1. I am running the Fabric CA server which create farbci-ca-server-config.yaml. 2. Now i want to use the fabric-sdk-go to register and enroll, admin,peers,orderer which create the keypair. 3.How i can create the instance of CA using Fabric-sdk-go. 4. There is method to create the instance in Fabric-sdk-go which func New(clientProvider context.ClientProvider, opts ...ClientOption) do i need to use any configfile (if yes)which format config.yaml i need to use.(if no) how i can create client Provider context, above method ask for orgName has parameter, any orgname while creating the context, i am search everywhere i didnt got any material using fabric-sdk-go with fabric CA generating keypairs.

Fama 5 (Mon, 14 Oct 2019 04:16:00 GMT):
Hi everyone, I am facing difficulty in using the Fabric-sdk-go with Fabric CA could anyone can help me. 1. I am running the Fabric CA server which create farbci-ca-server-config.yaml. 2. Now i want to use the fabric-sdk-go to register and enroll, admin,peers,orderer which create the keypair. 3.How i can create the instance of CA using Fabric-sdk-go. 4. There is method to create the instance in Fabric-sdk-go which func New(clientProvider context.ClientProvider, opts ...ClientOption) do i need to use any configfile (if yes)which format config.yaml i need to use.(if no) how i can create client Provider context, above method ask for orgName has parameter, any orgname while creating the context, i have searched a lot, i didn't got any material using fabric-sdk-go with fabric CA generating keypairs.

HLFPOC (Mon, 14 Oct 2019 04:35:09 GMT):
One doubt here, If my consortium have 4 orgs, so ideally how many RAFT orderer nodes should be present ? From what I understand from official docs is, each org should run a RAFT orderer, but I have also read somewhere that it is recommended to run either 3 or 5 (odd number) RAFT nodes in cluster. Can anyone please guide and share inputs here? @yacovm

HLFPOC (Mon, 14 Oct 2019 04:35:09 GMT):
One doubt here, If my consortium have 4 orgs, so ideally how many RAFT orderer nodes should be present ? What I understand from official docs is, each org should run a RAFT orderer, but I have also read somewhere that it is recommended to run either 3 or 5 (odd number) RAFT nodes in cluster. Can anyone please guide and share inputs here? @yacovm

PraharshaBejju (Mon, 14 Oct 2019 07:21:09 GMT):
Has joined the channel.

PraharshaBejju (Mon, 14 Oct 2019 07:21:10 GMT):
Hi everyone, When I use a RAFT ordering service for each channel it is consuming about 123MB * (no. of orderers) space. Is this an expected behaviour, or is it an issue with my configuration?

gazelle (Mon, 14 Oct 2019 08:27:08 GMT):
Has joined the channel.

JulienTocci (Mon, 14 Oct 2019 08:45:36 GMT):
Hello, does somebody know what is the preferred way of dealing with the node SDK backend and the differents peers/organisation that can be used within it? I am wondering if i should do a 1-1 frontend-backend(configured with the specific organisation keys) relation for each of the organisations or a 1-N in some ways (but putting all the crypto materials on a same backend is not great i think). Thank you

sanjeet.kumar (Mon, 14 Oct 2019 08:58:41 GMT):
Has left the channel.

santmukh (Mon, 14 Oct 2019 09:35:45 GMT):
I'm able to create channel and invoke the chaincode using RAFT ordering service. Now I want to add another Organization into the existing channel. I also upgraded the consortium and channel. It was done without any error and was also able to join the channel. At the time of invoke I am getting the error in peer as shown in attached file.

santmukh (Mon, 14 Oct 2019 09:37:20 GMT):

Error.txt

yacovm (Mon, 14 Oct 2019 09:58:32 GMT):
then run 5, what's the problem?

HLFPOC (Mon, 14 Oct 2019 10:14:28 GMT):
Thanks for your reply, but in that case, who will sponsor the infrastructure for the extra 5th node in consortium of 4 orgs (in case of on-premise network setup)

JohnC (Mon, 14 Oct 2019 10:16:18 GMT):
Has joined the channel.

JohnC (Mon, 14 Oct 2019 10:16:20 GMT):
Question for the Room....I am testing a Blockchain solution running Fabric 1.4, from a performance standpoint we see that the peer nodes hog up memory under continuous load (approx. 100 inserts/sec). We can only run that kind of load for about 8 minutes on a node hosted on t3.large before it runs out of memory. If we give the load a break for 15 minutes, then node memory recovers. Based on this behavior, we do not believe it is a memory leak but we do believe that the behavior may have something to do with protobuf behavior when blocks are created rapidly. Have you guys run into this and can you share what workarounds or config changes can alleviate this issue?

yacovm (Mon, 14 Oct 2019 10:16:33 GMT):
I don't know... it's up to you...

yacovm (Mon, 14 Oct 2019 10:16:43 GMT):
This isn't BFT so the only problem is the cost

JohnC (Mon, 14 Oct 2019 10:17:12 GMT):
Some follow up all to consider....Let me explain the setup a little more: Endorsement policy: Both OEM and ATT orgs must approve. Block timeout: 3s. Preferredmaxsize: 1MB. This was the best choice of parameters to balance block creation frequency with memory usage and not severely impact throughput. We had 6 threads running at a time, submitting a single transaction at a time. Each transaction contained 200 records for insertion. Each thread was using the OEM wallet for the transactions. Please see the attached cpu utilization from a period where we ran several of these batch jobs, with roughly 15 minute rest periods. From a CPU perspective, you can see that the OEM nodes take the biggest hit, followed slightly lower by the ATT peers and then the other two peers are much lower. However, from a memory usage perspective, it was very different – only the OEM nodes hogged up memory while ATT and other peer nodes remained quite flat. Is that due to the validation backing up? Why do just the OEM nodes hog up memory when both ATT and OEM are required to endorse? I suspect its due to the OEM user initiating transactions but it still does not make sense to me why that would lead to such behavior.

JohnC (Mon, 14 Oct 2019 10:19:14 GMT):

Clipboard - October 14, 2019 5:19 AM

PeterRomfeld (Mon, 14 Oct 2019 10:38:22 GMT):
Has joined the channel.

PeterRomfeld (Mon, 14 Oct 2019 10:38:23 GMT):
Hi, im having trouble to install chaincode without docker

hmoazzem (Mon, 14 Oct 2019 10:42:06 GMT):
Can I use token functionality in v2.0 from any of npm packages?

soumyanayak (Mon, 14 Oct 2019 13:48:46 GMT):
There is an error - *ERRO 032 Tried joining channel swapchannel but our org( abc1MSP ), isn't among the orgs of the channel: [SwapMSP] , aborting.* i guess abc1 is the new org added. So there is some issue still where the org peer has not joined the channel. Are you getting FORBIDDEN errors ?? . I was getting this issue and resolved by correctly setting up the admin MSP for the new org

soumyanayak (Mon, 14 Oct 2019 13:50:01 GMT):
When you are creating a channel 123 MB is used up or while doing a transaction for each trans 123 MB is getting used up ?

weeaix (Mon, 14 Oct 2019 14:18:31 GMT):
Can cryptogen generate certificates for organizations that host both peers and orderers? ``` PeerOrgs: - Name: Org1 Domain: org1.example.com EnableNodeOUs: true Template: Count: 2 Orderers: // << Something like this Count: 1 Users: Count: 1 ```

alkiimista (Mon, 14 Oct 2019 14:31:13 GMT):
Hi, I'm having issues with instantiating chaincode using the IBM blockchain extension. https://stackoverflow.com/questions/58321192/hyperledger-typeerror-class-extends-value-undefined-is-not-a-function-or-null

diego_ (Mon, 14 Oct 2019 17:07:52 GMT):
Has joined the channel.

haydarmajeed (Mon, 14 Oct 2019 18:46:06 GMT):
Has joined the channel.

braduf (Mon, 14 Oct 2019 19:07:19 GMT):
Hi all, I was reading about the cid library and the next phrase makes me wonder: "Note that both cert and err may be nil as will be the case if the identity is not using an X509 certificate." Can an identity transact on the network without a certificate and just a key pair? Or does it just mean that other certificate standards are possible?

braduf (Mon, 14 Oct 2019 19:07:19 GMT):
Hi all, I was reading about the cid library and the next phrase makes me wonder: "Note that both cert and err may be nil as will be the case if the identity is not using an X509 certificate." (https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode/shim/ext/cid) Can an identity transact on the network without a certificate and just a key pair? Or does it just mean that other certificate standards are possible?

yacovm (Mon, 14 Oct 2019 19:11:44 GMT):
@braduf idemix....

braduf (Mon, 14 Oct 2019 19:12:10 GMT):
Got it! Thanks

spmcnamara (Mon, 14 Oct 2019 23:56:53 GMT):
Need help to clarify correct setup of a multi-org network. When multiple orgs participate in the network, what policies need to exist for data on the channel to work properly? If an *Org1 client* connects to an *Org1 peer* and updates data on the channel, will an Org2 peer on the network be able to sync it's view of the ledger by default, or do I need to allow *Org2.peer* READ policy access?

braduf (Tue, 15 Oct 2019 04:45:58 GMT):
Hi all, I am trying to pass an array of composite keys as an invoke parameter: `peer chaincode invoke -n iou -c '{"Args": ["merge", "['\u0000iou\u00002bbe093fcbd46121fd80eeaa7eb62c68d0ea1147009cb22a1c3f27c36feed45a\u00000\u0000','\u0000iou\u0000cc838e3f1b3c4c4fd44bf52ffb2d4960ecda3cdee827932b07133bb96aed6e12\u00000\u0000','\u0000iou\u00002bbe093fcbd46121fd80eeaa7eb62c68d0ea1147009cb22a1c3f27c36feed45a\u00000\u0000']"]}' -C $CHANNEL_NAME -o $ORDERER_ADDRESS --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA` It gives me all kind of invalid character errors depending on how I work with quotes etc. How should I pass an array of keys of states as an argument? I am sure there is a cleaner way without the \0000... but i couldn't find it yet

braduf (Tue, 15 Oct 2019 04:45:58 GMT):
Hi all, I am trying to pass an array of composite keys as an invoke parameter: `peer chaincode invoke -n iou -c '{"Args": ["merge", "['\u0000iou\u00002bbe093fcbd46121fd80eeaa7eb62c68d0ea1147009cb22a1c3f27c36feed45a\u00000\u0000','\u0000iou\u0000cc838e3f1b3c4c4fd44bf52ffb2d4960ecda3cdee827932b07133bb96aed6e12\u00000\u0000','\u0000iou\u00002bbe093fcbd46121fd80eeaa7eb62c68d0ea1147009cb22a1c3f27c36feed45a\u00000\u0000']"]}' -C $CHANNEL_NAME -o $ORDERER_ADDRESS --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA` It gives me all kind of invalid character errors depending on how I work with quotes etc. How should I pass an array of keys of states as an argument? I am sure there is a cleaner way without the \0000... but i couldn't find it yet I could also pass the different parts that make up the composite key separately and always create the composite key in the chaincode to obtain a state, but it would be nicer if I can just pass the composite key already and just get the state inmediately...

hyperlearner (Tue, 15 Oct 2019 06:12:57 GMT):
Hi guys, In the function GetAttributesFromIdemix() from https://github.com/hyperledger/fabric/blob/93d94f8b6434dd54e7b70738ff7137d046a9ca96/core/chaincode/shim/ext/attrmgr/attrmgr.go#L137 from where does the client get loaded before it comes here? does the peer store the identities in any of its own storage(like state database)? My understanding is that the creator (be it idemix or x509 type) passes his identity(byte[]) and from the identity bytes the creator passes, the function unmarshalls, gets the attributes and returns it back.

soumyanayak (Tue, 15 Oct 2019 06:40:20 GMT):
Yes creating a new channel consumes 123 MB of space in WAL directory

PraharshaBejju (Tue, 15 Oct 2019 08:26:36 GMT):
Yeah, that has really been an issue

PraharshaBejju (Tue, 15 Oct 2019 08:26:38 GMT):
In a same world with kafka or solo ordering services which are consuming just in Kbs, Any idea why would anyone suggest or use the RAFT service?

soumyanayak (Tue, 15 Oct 2019 08:30:55 GMT):
@jyellick @guoger -- Any idea why 123 MB of space geting consumed for creating a channel.

guoger (Tue, 15 Oct 2019 08:53:33 GMT):
@soumyanayak wal files are 64MB per each segment, and they are preallocated

guoger (Tue, 15 Oct 2019 08:53:49 GMT):
and there's an additional `0.tmp` file as placeholder

guoger (Tue, 15 Oct 2019 08:54:45 GMT):
therefore, it's expected to have around 128MB file initially. It shouldn't be a big problem, as data will be written into those segment file till full

guoger (Tue, 15 Oct 2019 08:55:17 GMT):
(it's not like Raft consumes more space, it simply pre-allocates space)

soumyanayak (Tue, 15 Oct 2019 09:03:32 GMT):
ok thanks @guoger for the info

soumyanayak (Tue, 15 Oct 2019 09:07:09 GMT):
@PraharshaBejju you can check this link also for more info for RAFT https://hyperledger-fabric.readthedocs.io/en/latest/orderer/ordering_service.html

trevoro1 (Tue, 15 Oct 2019 09:31:26 GMT):
does hyperledger fabric 1.4 work fully with Ubuntu 18.04? Is there any recommended operating system?

abel23 (Tue, 15 Oct 2019 09:35:57 GMT):
Well, i run hf-v1.4 on Ubuntu 18.04. It works like charm. I just use the recommended pre-requisite versions for docker, go and things like that

PraharshaBejju (Tue, 15 Oct 2019 09:39:57 GMT):
sure @soumyanayak . Thanks for the info @guoger @soumyanayak

PraharshaBejju (Tue, 15 Oct 2019 09:52:23 GMT):
I am still wondering about two things here, 1. what is the major advantage going with the RAFT orderer where kafka is using ~76KB. 2. Is there a way where I can configure/create RAFT channel with less than 64MB?

guoger (Tue, 15 Oct 2019 09:58:17 GMT):
64MB is preallocated, meaning when you have 1000 txs with 64kb, it’s still 64MB

barney2k7 (Tue, 15 Oct 2019 10:23:11 GMT):
Has joined the channel.

lorenzofang (Tue, 15 Oct 2019 10:41:15 GMT):
hello.When the endorsement policy is set to AND ``` "AND ('Org1MSP.peer','Org2MSP.peer')", ``` I am a Org1 node, I don't know the certificate and private key of the Org2 node. If I want to call the invoke method of the Chaincode, I need to collect the endorsement results of 2 nodes. How can I achieve the code? Sdk only provides the Execute method,But need to configure org2 information in the configuration file. ``` func (cc *Client) Execute(request Request, options ...RequestOption) (Response, error) { options = append(options, addDefaultTimeout(fab.Execute)) options = append(options, addDefaultTargetFilter(cc.context, filter.EndorsingPeer)) return callExecute(cc, request, options...) } ```

arvindkumar6568 (Tue, 15 Oct 2019 11:08:26 GMT):
hello friends i add a org in running network in hyperledger , when i invoke a command i get Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP] . Please how to solve it. i joined the peer of second org successfully.

PraharshaBejju (Tue, 15 Oct 2019 11:34:18 GMT):
In my usecase I wouldnt be using 64MB of space per channel but has mulitple channel implementation.

PraharshaBejju (Tue, 15 Oct 2019 11:36:11 GMT):
This makes me lean towards the kafka than RAFT

guoger (Tue, 15 Oct 2019 11:44:05 GMT):
Are you going to create channel but not sending any transaction? If not, then it’s not different

guoger (Tue, 15 Oct 2019 11:45:16 GMT):
It’s certainly going to grow beyond 76kb, right?

barney2k7 (Tue, 15 Oct 2019 11:48:03 GMT):
@yacovm just to make sure I fully understand: for two (real world) companies running a fabric network it is recommended to represent them as two PeerOrgs and two OrdererOrgs, with each company controlling one PeerOrg and one OrdererOrg? Are you aware of any documentation about this setup or sample config files (like byfn)?

soumyanayak (Tue, 15 Oct 2019 12:09:19 GMT):
Did you add the new org as Org1 ? You need to have the admin of the new Org helping join the peer.

PraharshaBejju (Tue, 15 Oct 2019 13:21:51 GMT):
yeah it might but in a really long term

PraharshaBejju (Tue, 15 Oct 2019 13:22:02 GMT):
I do have transcations happening

PraharshaBejju (Tue, 15 Oct 2019 13:22:02 GMT):
I do have transcations happening which would take years to fill up 64MB

spmcnamara (Tue, 15 Oct 2019 14:00:52 GMT):
I would be equally interested in seeing a good sample config as well, as it sounds like we are both attempting to do something similar.

spmcnamara (Tue, 15 Oct 2019 14:02:01 GMT):
@barney2k7 Have you figured out what the minimum policy requirements are for Org1 and Org2 to interop? I'm on the verge of punting on that right now and putting all the permission checking in the application chaincode.

barney2k7 (Tue, 15 Oct 2019 14:18:23 GMT):
@spmcnamara policies similar to the ones in the first network example ( https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/configtx.yaml ) have worked for me - not sure if those are the minimum

spmcnamara (Tue, 15 Oct 2019 14:27:39 GMT):
I'm trying to establish a 2-Org network and initially use 2 channels. Org1 has read/write on channel1, and read-only channel2. Org2 has read/write on channel2, read-only on channel1.

spmcnamara (Tue, 15 Oct 2019 14:27:55 GMT):
I'll go back and review the first-network config.

spmcnamara (Tue, 15 Oct 2019 14:30:46 GMT):
I have no idea if the way I'm composing this is sensible, but Org1 has authority to enter a set of data that Org2 can read, and vice-versa.

sterling729 (Tue, 15 Oct 2019 17:22:37 GMT):
What’s the best way to learn Fabric development from scratch? I mean developing and deploying chain code and connecting to a front end UI. I’ve already followed the tutorial from the documentation.

brunohenrique123 (Tue, 15 Oct 2019 17:33:10 GMT):
Has joined the channel.

brunohenrique123 (Tue, 15 Oct 2019 17:33:11 GMT):
Hello friends, my name is Bruno. I am now starting to explore the blockchain hyperledger fabric solution. I did some community research to solve a problem I am having on the solution proxy when I start chaincode, because chaincode does not use the proxy that was set up in the docker. (The challenge is to make chaincode run on a low-provision network where I can't enable the firewall). Have an open issue or solution about this issue? Thanks =)

Koushik (Tue, 15 Oct 2019 18:36:31 GMT):
@mastersingh24 @yacovm Update: Thank you for the help last week. Hi all, I generated the Fabric-CA certs using the the root cert generated by cryptogen, and switched the peer certs in the docker-compose.yaml with the certs generated by the fabric-ca. I can now list the channel the peer is part and list all the instantiated chaincode but can not list or install the chaincode in the network unless I switch the CORE_PEER_MSPCONFIGPATH. So in Summary, If CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/Peer0rg/peer0/msp then - I am now able to list all the instatiated chaincodes > peer chaincode list --instantiated -C channel-name - Can not list installed chaincode, > peer chaincode list --installed -C channel-name Get Error Message: Error: Bad response: 500 - access denied for [getinstalledchaincodes]: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] else If CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/PeerOrg/admin/msp then - I am not able to list all the instatiated chaincodes > peer chaincode list --instantiated -C channel-name GET ERROR: Error: Error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [channel-name] creator org [PeerOrg] - I am able to list all the installed chaincodes > peer chaincode list --installed -C channel-name any thoughts on resolving this issue?

yacovm (Tue, 15 Oct 2019 18:39:51 GMT):
@Koushik

yacovm (Tue, 15 Oct 2019 18:40:05 GMT):
you need to add the admin's new certificate to the `msp/admincerts` in the peer's file system

yacovm (Tue, 15 Oct 2019 18:40:18 GMT):
i didn't comment in the thread because I get an internal error

Koushik (Tue, 15 Oct 2019 18:40:26 GMT):
kk kool

Koushik (Tue, 15 Oct 2019 18:40:48 GMT):
can you direct me to where the peer's file system?

yacovm (Tue, 15 Oct 2019 18:41:02 GMT):
i said.... `msp/admincerts`

Koushik (Tue, 15 Oct 2019 18:41:10 GMT):
wait

Koushik (Tue, 15 Oct 2019 18:41:21 GMT):
I believe I did do that

yacovm (Tue, 15 Oct 2019 18:41:35 GMT):
did you re-generate the admin cert ?

yacovm (Tue, 15 Oct 2019 18:41:38 GMT):
of your admin?

Koushik (Tue, 15 Oct 2019 18:41:39 GMT):
Yeah

yacovm (Tue, 15 Oct 2019 18:41:47 GMT):
so you need to update the peer's file system too

Koushik (Tue, 15 Oct 2019 18:42:20 GMT):
I regenerated the admincert after I recreated the certs using the root cert from the cryptogen generated certs as @mastersingh24 mentioned

yacovm (Tue, 15 Oct 2019 18:45:37 GMT):
did you update the peer's file system?

Koushik (Tue, 15 Oct 2019 18:45:43 GMT):
yes.

yacovm (Tue, 15 Oct 2019 18:45:54 GMT):
hmmm.... can you double check?

Koushik (Tue, 15 Oct 2019 18:45:59 GMT):
yeah

Koushik (Tue, 15 Oct 2019 18:46:02 GMT):
will do

yacovm (Tue, 15 Oct 2019 18:46:05 GMT):
the PEM should match textually

Koushik (Tue, 15 Oct 2019 18:46:06 GMT):
thanks :)

Koushik (Tue, 15 Oct 2019 18:46:26 GMT):
I use openssl x509 -in ca-cert.pem -text

Koushik (Tue, 15 Oct 2019 18:46:30 GMT):
to check

yacovm (Tue, 15 Oct 2019 18:46:30 GMT):
the MSP literally does a byte by byte comparison

yacovm (Tue, 15 Oct 2019 18:46:40 GMT):
so using the x509 won't cut it

Koushik (Tue, 15 Oct 2019 18:46:59 GMT):
ohh have any suggestions?

yacovm (Tue, 15 Oct 2019 18:47:00 GMT):
even if you have the same public key, but different signature of the CA, it will fail

yacovm (Tue, 15 Oct 2019 18:47:09 GMT):
like i said - just print the PEM

yacovm (Tue, 15 Oct 2019 18:47:13 GMT):
or maybe do ` diff`

yacovm (Tue, 15 Oct 2019 18:47:16 GMT):
in linux you have `diff`

yacovm (Tue, 15 Oct 2019 18:47:23 GMT):
or do a `cksum`

yacovm (Tue, 15 Oct 2019 18:47:25 GMT):
and compare the results

yacovm (Tue, 15 Oct 2019 18:47:29 GMT):
if it's on diff. hosts

braduf (Tue, 15 Oct 2019 22:37:12 GMT):
I think CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/Peer0rg/peer0/msp is configured as a network administrator (part of your MSP in the channel) and CORE_PEER_MSPCONFIGPATH=/opt/hyperledger/PeerOrg/admin/msp is part of the local MSP of your peer and so has permissions as a peer admin. You should update both MSPs if you want both identities to be able to obtain both the installed as the instantiated chaincode. To update the local MSP of the peer I think you can just add the certificate in the admincerts of the local MSP and restart your peer. To update the channel MSP you should create a configuration transaction that updates your MSP on the network with the identity in admincerts and send the transaction (with the admin that already is in the network MSP).

Koushik (Tue, 15 Oct 2019 22:39:33 GMT):
" To update the channel MSP you should create a configuration transaction that updates your MSP on the network with the identity in admincerts and send the transaction (with the admin that already is in the network MSP). " thanks I think that might be the answer

Koushik (Tue, 15 Oct 2019 22:39:41 GMT):
did not think about tht

braduf (Tue, 15 Oct 2019 22:40:21 GMT):
I guess that will fix it, let me know if not or if you need help creating and sending the tx

Koushik (Tue, 15 Oct 2019 22:42:56 GMT):
can you tell me the sites

Koushik (Tue, 15 Oct 2019 22:43:05 GMT):
steps ? or documentation?

braduf (Tue, 15 Oct 2019 23:12:57 GMT):
This should help: https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

braduf (Tue, 15 Oct 2019 23:16:29 GMT):
just instead of adding an organisation to your configtx.yaml file, just add the certificate to the MSP where the configtx.yaml file references to for your organisation. Then create a new config_block from it using `configtxgen`. Then use fetch the current configuration and use configtxlator to generate the difference and create the configuration transaction you can then update the channel with.

braduf (Tue, 15 Oct 2019 23:16:29 GMT):
just instead of adding an organisation to your configtx.yaml file, just add the certificate to the MSP where the configtx.yaml file references to for your organisation. Then create a new config_block from it using `configtxgen`. Then fetch the current configuration block and use `configtxlator` to generate the difference with the new config_block you made and create the configuration transaction you can then update the channel with.

Koushik (Tue, 15 Oct 2019 23:22:36 GMT):
Kk thanks

biligunb (Wed, 16 Oct 2019 03:00:44 GMT):
Hey I got 1 best-practice like question. What is the optimal Peer (Endorser & Committer), Orderer number to get 3000 TPS? (It is said HLF 1.4.4 is possible to handle 3000 tx in some research papers -> they managed to get 10k || 20k) My draft : - 4 endorser peer - 1 committer peer (Leader peer - to get block from orderer and broadcast to other peers) - 2 orderer - Batchsize of (2MB & 100 transactions) How is that sound?

biligunb (Wed, 16 Oct 2019 03:00:44 GMT):
Hey I got 1 best-practice like question. What is the optimal Peer (Endorser & Committer), Orderer number to get 3000 TPS? (It is said HLF 1.4.4 is possible to handle 3000 tx in some research papers -> they managed to get 10k || 20k) My draft : - 4 endorser peer - 1 committer peer (Leader peer - to get block from orderer and broadcast to other peers) - 2 orderer (KAFKA) - Batchsize of (2MB & 100 transactions) How is that sound?

arvindkumar6568 (Wed, 16 Oct 2019 05:03:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=u2ywtGYZKXvEtwLDW) i add new org as org2

soumyanayak (Wed, 16 Oct 2019 06:07:18 GMT):
did you try joining the peer of org2 with org2 admin certs?

mattmaru (Wed, 16 Oct 2019 08:01:41 GMT):
Hi guys. When I try to run basic-network (fabcar) with persistence after deleted it I get an error about an existing ledgerid : "docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2019-10-16 08:01:15.319 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists) "

mattmaru (Wed, 16 Oct 2019 08:02:13 GMT):
How can i solve it? How can i delete permanently the ledger?

soumyanayak (Wed, 16 Oct 2019 08:26:43 GMT):
Stop the peer container and remove it and delete the peer ledger folder from the local and try

arvindkumar6568 (Wed, 16 Oct 2019 09:23:08 GMT):
Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists)

arvindkumar6568 (Wed, 16 Oct 2019 09:24:17 GMT):
Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists) tell that peer join already to mychannel. So delete all container and again create peer,channel and then join.

arvindkumar6568 (Wed, 16 Oct 2019 09:25:41 GMT):
ok i solved it

Bhagi 3 (Wed, 16 Oct 2019 09:32:36 GMT):
Has joined the channel.

Bhagi 3 (Wed, 16 Oct 2019 09:35:09 GMT):
Can anyone suggest me the best ordering service when there are about 4 peers and multiple channels (could be more than 10). Is it solo, kafka and raft @guoger @soumyanayak @PraharshaBejju

Bhagi 3 (Wed, 16 Oct 2019 09:36:03 GMT):
* @PraharshaBejju similar to your requirement even my channel doesnt require pre occupied space of ~64MB

soumyanayak (Wed, 16 Oct 2019 10:29:08 GMT):
In peer and orderer docker containers where are the container logs located in which path ?

binarysailor (Wed, 16 Oct 2019 11:03:58 GMT):
Has joined the channel.

ShubhamRai (Wed, 16 Oct 2019 12:12:14 GMT):
Has joined the channel.

ShubhamRai (Wed, 16 Oct 2019 12:12:16 GMT):
hey, I am using fabcar example of hyperledger fabric and try to store the wallet data into couch db

ShubhamRai (Wed, 16 Oct 2019 12:13:10 GMT):
I am facing difficulty in providing the couch db address in enroll.js file

RahulSingh 6 (Wed, 16 Oct 2019 12:13:52 GMT):
Has joined the channel.

ShubhamRai (Wed, 16 Oct 2019 12:48:10 GMT):
I think I did not explain my problem correctly, actually I am using fabcar repository of hyperledger fabric in which all things are going fine my wallet details are storing in my file system, i tried using couch db wallet to store the wallet details into couch db but I am not able to establish the connection. Can any one suggest how to do that.

jvi (Wed, 16 Oct 2019 12:51:02 GMT):
Has joined the channel.

jvi (Wed, 16 Oct 2019 12:51:02 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know *how is computed the private data hash*? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see *the hash of the key and the hash of the value* (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= And for the value '26e4d281', the corresponding hash is somehing weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So can you tell me how this hash is computed and how i can compute this hash by myself?

jvi (Wed, 16 Oct 2019 12:51:02 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know *how is computed the private data hash*? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see *the hash of the key and the hash of the value* (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= And for the value '26e4d281', the corresponding hash is something weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So can you tell me *how this hash is computed and how i can compute this hash by myself*?

jvi (Wed, 16 Oct 2019 12:51:02 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know *how is computed the private data hash*? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see *the hash of the key and the hash of the value* (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= (_looks like a base64 string_) And for the value '26e4d281', the corresponding hash is something weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So can you tell me *how this hash is computed and how i can compute this hash by myself*?

jvi (Wed, 16 Oct 2019 12:51:02 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know *how is computed the private data hash*? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see *the hash of the key and the hash of the value* (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= (looks like a base64 string) And for the value '26e4d281', the corresponding hash is something weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So can you tell me *how this hash is computed and how i can compute this hash by myself*?

mattmaru (Wed, 16 Oct 2019 13:29:59 GMT):
I haven't any container active while I running startFabric.sh. I would know where I can delete my ledger. where is it localized? Where can I find its path?

mattmaru (Wed, 16 Oct 2019 13:30:36 GMT):
God bless you guys. I love your help

binarysailor (Wed, 16 Oct 2019 14:20:23 GMT):
I'm not sure you can find them anywhere in the container filesystem. What certainly works OK for an ad-hoc peek at the logs is the docker logs command: https://docs.docker.com/engine/reference/commandline/logs

spmcnamara (Wed, 16 Oct 2019 16:21:43 GMT):
Any advice on troubleshooting configtx.yaml? I've run through YAML lint which says my syntax is fine, but when running configtxgen I get the following: `yaml: map merge requires map or sequence of maps as the value` but no indication of where in the YAML file this is coming from. I have no idea where to look. :-(

PraharshaBejju (Wed, 16 Oct 2019 17:40:41 GMT):
@bhagi yeah , in this scenario RAFT doesnt seem to be a good choice.

PraharshaBejju (Wed, 16 Oct 2019 17:42:28 GMT):
I am still investigating on the kakfa service. my last choice would be solo bcoz once the application goes live with a particular ordering service we would have no other choice but to accept its challenges. Switching the ordering service would mean loss of data.

soumyanayak (Wed, 16 Oct 2019 19:17:43 GMT):
can you post your configtx.yaml file

Fama 5 (Thu, 17 Oct 2019 06:45:41 GMT):
This question is regarding Fabric CA. Fabric CA acts has standalone project, If it fabric ca got hacked does complete fabric network will be compromised, Does it is possible that if Fabric CA got hacked, Using that CA hacker can generate the self signed certificate.

Fama 5 (Thu, 17 Oct 2019 06:45:41 GMT):
This question is regarding Fabric CA. Fabric CA acts has standalone project, If fabric ca got hacked does complete fabric network will be compromised, Does it is possible that if Fabric CA got hacked, Using that CA hacker can generate the self signed certificate.

Fama 5 (Thu, 17 Oct 2019 06:47:11 GMT):
I am new to hyperledger fabric need some suggestion

gazelle (Thu, 17 Oct 2019 08:23:34 GMT):
While running the fabcar sample (java) I have issues resolving the other peer. `peer1.org2.example.com: nodename nor servname provided, or not known`. Its container runs fine, and is in the correct network. Anything I'm missing here?

binarysailor (Thu, 17 Oct 2019 08:57:20 GMT):
Which machine can't resolve the name? Where are you getting this error?

gazelle (Thu, 17 Oct 2019 09:08:04 GMT):
I think org1 cannot resolve org2. I'm running https://github.com/hyperledger/fabric-samples/tree/release-1.4/fabcar/java/src/main/java/org/example , just running the tests as instructed by the `startfabric.sh` script from the same sample

gazelle (Thu, 17 Oct 2019 09:08:04 GMT):
I think org1 cannot resolve org2. I'm running https://github.com/hyperledger/fabric-samples/tree/release-1.4/fabcar/java/src/main/java/org/example (first create admin, then enroll, then client app, issues only on the last one) , just running the tests as instructed by the `startfabric.sh` script from the same sample

gazelle (Thu, 17 Oct 2019 09:08:04 GMT):
None of the 4 can be resolved (peer0, peer1 on node1, node2) https://github.com/hyperledger/fabric-samples/tree/release-1.4/fabcar/java/src/main/java/org/example (first create admin, then enroll, then client app, issues only on the last one) , just running the tests as instructed by the `startfabric.sh` script from the same sample

binarysailor (Thu, 17 Oct 2019 09:20:54 GMT):
I've been struggling with the fabcar sample for a few days now too, but didn't have this kind of issues. So are you getting 4 IP addresses when you run a command like this? `docker inspect peer{0,1}.org{1,2}.example.com -f '{{.NetworkSettings.Networks.net_byfn.IPAddress}}'`

gazelle (Thu, 17 Oct 2019 09:21:37 GMT):
yes

binarysailor (Thu, 17 Oct 2019 09:22:09 GMT):
are you running the script with sudo?

gazelle (Thu, 17 Oct 2019 09:23:28 GMT):
no, hope that shouldn't be necessary?

binarysailor (Thu, 17 Oct 2019 09:24:18 GMT):
I'm not sure why, but I did have some connection problems (although slightly different ones) when I wasn't using sudo.

gazelle (Thu, 17 Oct 2019 09:27:18 GMT):
On the other hand, when I've tried the js version, it worked fine, even w/o root.

UdkReddy (Thu, 17 Oct 2019 10:11:11 GMT):
is it possible interact with the chaincode installed using composer through peer node cli?

soumyanayak (Thu, 17 Oct 2019 10:17:48 GMT):
Composer is deprecated . Any reason of using it

UdkReddy (Thu, 17 Oct 2019 10:39:55 GMT):
I have spent a lot time developing my application in compose and now we are trying to move app to production, so obviously i can't use composer, so i'm trying to reuse it. Is it possible?

soumyanayak (Thu, 17 Oct 2019 10:43:46 GMT):
there is no more support to composer if any issues then it might be difficult

davidkel (Thu, 17 Oct 2019 11:07:40 GMT):
Can you explain what you mean by `obviously i can't use composer, so i'm trying to reuse it`

davidkel (Thu, 17 Oct 2019 11:07:40 GMT):
Can you explain what you mean by ```obviously i can't use composer, so i'm trying to reuse it```

UdkReddy (Thu, 17 Oct 2019 11:17:10 GMT):
As suggested by some of the developers i had understood that composer is not for production. and Reusing means , i want to use the lib, models and permission files of composer application

davidkel (Thu, 17 Oct 2019 11:18:00 GMT):
I've just posted an answer to your stackoverflow question

UdkReddy (Thu, 17 Oct 2019 11:29:56 GMT):
okay thanks:sweat_smile:

davidkel (Thu, 17 Oct 2019 11:32:41 GMT):
Basically to get rid of composer you have to port your composer application to native fabric and that includes the business network. See guidance can be found here https://davidkel.github.io/docs/Porting/TOC.html

davidkel (Thu, 17 Oct 2019 11:32:41 GMT):
Basically to get rid of composer you have to port your composer application to native fabric and that includes the business network. Some guidance can be found here https://davidkel.github.io/docs/Porting/TOC.html

lepar (Thu, 17 Oct 2019 11:52:16 GMT):
Yup, if it got hacked it would compromise the entire network. Then you would need to move to openssl and regenerate all the certificates to guarantee so it's a risk. There's always a risk.

Ammu (Thu, 17 Oct 2019 12:02:58 GMT):
what is the command for instantiate chaincode using node channel name mychannel

dhurkes (Thu, 17 Oct 2019 13:10:02 GMT):
Has joined the channel.

vsadriano (Thu, 17 Oct 2019 13:11:39 GMT):
Hi! Where can I read about peer resource? I need to see the function list available (e.g., Propose). Tks!

sudijovski (Thu, 17 Oct 2019 13:27:34 GMT):
Has joined the channel.

sudijovski (Thu, 17 Oct 2019 13:27:35 GMT):
Hi, is there possibility to invoke older version of chaincode using fabric v1.4.3?

alkiimista (Thu, 17 Oct 2019 13:28:42 GMT):
It should be possible by using the -v { version number } flag when invoking the code

sudijovski (Thu, 17 Oct 2019 13:29:26 GMT):
the flag -v is only available on peer chaincode (install, instantiate and upgrade) commands. Not on invoke

alkiimista (Thu, 17 Oct 2019 13:39:20 GMT):
Looks like it's intentional that you can't invoke older versions of chaincode. https://jira.hyperledger.org/browse/FAB-2957

sudijovski (Thu, 17 Oct 2019 13:53:57 GMT):
hm.. then what happens if there are multiple clients using the same network and one day someone upgrades the chaincode?

dhurkes (Thu, 17 Oct 2019 14:40:45 GMT):
Dear All, i am new to Hyperledger.. My lead said just setup the hyperledger fabric.. i had gone thru the documentation and built the first network.. as per the documentation its working fine.. could you guys please suggest what else i should do for the project development environment?

LucW (Thu, 17 Oct 2019 16:01:06 GMT):
Has joined the channel.

LucW (Thu, 17 Oct 2019 16:01:07 GMT):
Hey guys. I am currently trying to setup a simple python script to perform a dummy query onto my smart contract. Environment: - network of containers using the 1.4.3 version of ccenv, cli, peer, ca, orderer - trying to call the smart contract using the latest fabric-sdk-py What's happening: - My smart contract is up and ready in the ccenv container - I can call my smart contract and my dummy function from the CLI container - I can call my 'invoke' function of the smart contract with my python script, using the fabric python sdk, which is returning shim.Error() by default BUT: - I CAN'T call my dummy function: using the python fabric sdk, when I am calling my contract, even if the function seems to be triggered (I can see it in the ccenv container logs), the shim.Success(nil) at the end of the function seems to cause a crash to the RPC connection (Rendezvous of RPC terminated with DNS Resolution Failed). TL;DR: trying to call a smart contract from the python sdk: connection works when contract returning shim.Error(), but RPC connection (seems to) crash when contract returning shim.Success(nil) (DNS Resolution failed)

madiazp (Thu, 17 Oct 2019 16:20:17 GMT):
I'm kind in the same situation with sdk go. You should see entityMatcher in the network config file of the sdk. maybe you have problem with localhost and peers url conversion.

twoneks (Thu, 17 Oct 2019 16:56:48 GMT):
Hello every body

twoneks (Thu, 17 Oct 2019 16:56:54 GMT):
please some help here

twoneks (Thu, 17 Oct 2019 16:56:55 GMT):
https://stackoverflow.com/questions/58437455/hyperledger-fabric-custom-policy-during-channel-creation

keishikubo (Thu, 17 Oct 2019 17:04:27 GMT):
Has joined the channel.

keishikubo (Thu, 17 Oct 2019 17:04:58 GMT):
Should I implement my own peer on production environment ? If so, how to implement them ? If not, should i use docker image of fabric-samples ? Same questions to msp, orderer, committing peer, endorsing peers, ca.

NelsonGlobalGeek (Thu, 17 Oct 2019 19:51:52 GMT):
Has joined the channel.

NelsonGlobalGeek (Thu, 17 Oct 2019 19:51:53 GMT):
Hey I heard that Fabric wasn't built on a blockchain data structure anymore. Now, its built on a graph. Is that true?

yacovm (Thu, 17 Oct 2019 19:56:45 GMT):
@NelsonGlobalGeek it's actually a circular Blockchain - a hash chain that is a circle!

NelsonGlobalGeek (Thu, 17 Oct 2019 20:00:11 GMT):
how does that scale?

NelsonGlobalGeek (Thu, 17 Oct 2019 20:00:31 GMT):
is there a picture of this architecture?

yacovm (Thu, 17 Oct 2019 20:41:03 GMT):
I'm joking, there obviously isn't such a thing as a hash chain that is a circle

yacovm (Thu, 17 Oct 2019 20:41:52 GMT):
that means that you need to find a circle in the hash function such that `hash(hash(hash(hash(.....(hash(x)))...) = hash(y)` for some `x,y`

yacovm (Thu, 17 Oct 2019 20:42:35 GMT):
the probability of this happening is negligible

CT123 (Thu, 17 Oct 2019 21:16:07 GMT):
Hello - trying to download / upgrade to fabric and docker binaries for 1.4.4 -- is it live because bootstrap.sh errors on 1.4.4

CT123 (Thu, 17 Oct 2019 21:16:07 GMT):
Hello - trying to download / upgrade to fabric and docker binaries for 1.4.4 -- is it live because bootstrap.sh errors on 1.4.4 @yacovm would you know? Need docker images for 1.4.4 for mac

yacovm (Thu, 17 Oct 2019 21:21:43 GMT):
@CT123 no, 1.4.4 hasn't been released yet

yacovm (Thu, 17 Oct 2019 21:21:50 GMT):
you can compile them yourself

yacovm (Thu, 17 Oct 2019 21:22:02 GMT):
git clone the fabric repo and build them

CT123 (Thu, 17 Oct 2019 21:27:06 GMT):
Thanks -- just did that for both fabric and fabric-ca but what about the docker images? Won't they need to jive?

yacovm (Thu, 17 Oct 2019 21:27:52 GMT):
you can also compile them with `make docker`

CT123 (Thu, 17 Oct 2019 21:32:58 GMT):
ah! thanks -- that will do. Final Q -- what about third-party images, specifically couchDB -- is there a pointer to how to update? bootstrap.sh I believe will all those, no?

CT123 (Thu, 17 Oct 2019 21:41:01 GMT):
Wow -- @yacovm baseos fails..... ``` Status: Downloaded newer image for hyperledger/fabric-baseos:amd64-0.4.16 ---> f711d456dcc4 Step 2/7 : ENV FABRIC_CFG_PATH /etc/hyperledger/fabric ---> Running in d1758ff2a0b4 Removing intermediate container d1758ff2a0b4 ---> 895901d21ac6 Step 3/7 : RUN mkdir -p /var/hyperledger/production $FABRIC_CFG_PATH ---> Running in fe082cc39f1d Removing intermediate container fe082cc39f1d ---> 01b767a2ca7d Step 4/7 : COPY payload/peer /usr/local/bin ---> 06606c0904e8 Step 5/7 : ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH failed to copy files: Error processing tar file(bzip2 data invalid: bad magic value in continuation file): make: *** [.build/image/peer/.dummy-amd64-1.4.4-snapshot-59d4adce3] Error 1 ``` thoughts?

yacovm (Thu, 17 Oct 2019 21:45:44 GMT):
google it.... there are plenty solutions for that on stackoverflow

yacovm (Thu, 17 Oct 2019 21:46:16 GMT):
no clue...

CT123 (Thu, 17 Oct 2019 22:31:01 GMT):
re: goole - yep. re: other - Think I know what the issue is -- have been working against direct fabric downloads and compiling locally (1.4.4), but my docker images have been coming via bootstrap.sh -- we've been ditching the binaries (those that land in bin) instead using those we compile and using the bootstrap.sh docker images -- thinking all this was aligned (really bad assumption on our part) - now getting panic 6 against MSP builds for consortiums -- known jira issues, but they have been marked resolved -- or at least for 1.4.3. So, back to fresh 1.4.3 for all and will roll forward -- thanks again for your input -- feedback help!

CT123 (Thu, 17 Oct 2019 22:31:01 GMT):
re: goole - yep. re: other - Think I know what the issue is -- have been working against direct fabric downloads and compiling locally (1.4.4), but my docker images have been coming via bootstrap.sh -- we've been ditching the binaries (those that land in bin) instead using those we compile and using the bootstrap.sh docker images -- thinking all this was aligned (really bad assumption on our part) - now getting panic 6 against MSP builds for consortiums -- known jira issues, but they have been marked resolved -- or at least for 1.4.3. So, back to fresh 1.4.3 for all and will roll forward -- thanks again for your input -- feedback helps!

myopenledger (Thu, 17 Oct 2019 23:32:21 GMT):
Has joined the channel.

myopenledger (Thu, 17 Oct 2019 23:32:22 GMT):
Hi All, I have developed a basic chaincode. When I am installing it , then it is no issue. But, when I am trying to instantiate it, I am getting this error message: Could now assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container excited with 1

myopenledger (Thu, 17 Oct 2019 23:32:48 GMT):
Any idea about the above error message. I am using basic-network to develop and test my chaincode

myopenledger (Fri, 18 Oct 2019 01:08:52 GMT):
@mattmaru where you able to resolve this issue. Because I am getting the same error while running my sample chain code in the basic network

Fama 5 (Fri, 18 Oct 2019 02:22:01 GMT):
thanks for replay, whenever the transaction happen in fabric network, does each time Fabric Ca will verify transaction through certificate ? or only one time create the certificate and give to user so when the user the does the transaction, peer will validate his certificate.

soumyanayak (Fri, 18 Oct 2019 03:27:35 GMT):
This new fabric chaincode lifecycle is the one which will manage things in case of multiple clients. It was introduced in v2.0.0-alpha for a preview , in the release of v2.0 it will be there where all the issues will be addressed https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html

soumyanayak (Fri, 18 Oct 2019 03:28:26 GMT):
Probably by end of 4th quarter v2.0 will be there

msolefonte (Fri, 18 Oct 2019 07:03:25 GMT):
Hi to everyone. Does anyone know the minimal/recommended requirements to run a peer/orderer/ca? I know that recommended are hard to set as it depends on the traffic, but at least the minimal ones would be nice to know.

simran (Fri, 18 Oct 2019 07:36:09 GMT):
hello team has any one used the fabric ca to generate the cryptos instead of using the cryptogen file

simran (Fri, 18 Oct 2019 07:36:13 GMT):
????

biligunb (Fri, 18 Oct 2019 08:27:24 GMT):
2gb ram 1cpu can handle basic network (1 peer 1 ca 1 orderer)

biligunb (Fri, 18 Oct 2019 08:28:05 GMT):
after u started the network you can register and get credentials from CA

biligunb (Fri, 18 Oct 2019 08:29:00 GMT):
If you are using basic-network with cli docker container. make sure to get the orderer address and cert files are given

generak (Fri, 18 Oct 2019 08:31:46 GMT):
It could potentially be an issue with your code - add - CORE_VM_DOCKER_ATTACHSTDOUT=true to your environment variables for your peers. - CORE_CHAINCODE_LOGGING_LEVEL=info may also be useful. With those environment variables enabled, you should be able to look at the logs for the peer through which the chaincode is being instantiated, and determine the error,

metadata (Fri, 18 Oct 2019 08:47:17 GMT):
Hey All, I'm working on testing the chaincode using `MockStub`. In chaincode, I have a method `CreateUser()` in which I'm fetching some details like `cid.GetAttributeValue()`, `cid.GetID()` and `cid.GetMSPID()` . I have to test `CreateUser()` method using `MockStub` . I tried to test it but ran into an error ```Expecting a PEM-encoded X509 certificate; PEM block not found ``` . I think it is because I'm not providing any certificate. So, Is there any functionality in `MockStub` to test these kind of things? Any reference or an example would be a great help.

metadata (Fri, 18 Oct 2019 08:47:17 GMT):
Hey All, I'm working on testing the chaincode using `MockStub`. In chaincode, I have a method `CreateUser()` in which I'm fetching some details like `cid.GetAttributeValue()`, `cid.GetID()` and `cid.GetMSPID()` . I have to test `CreateUser()` method using `MockStub` . I tried to test it but ran into an error ```Expecting a PEM-encoded X509 certificate; PEM block not found ``` I think it is because I'm not providing any certificate. So, Is there any functionality in `MockStub` to test these kind of things? Any reference or an example would be a great help.

metadata (Fri, 18 Oct 2019 08:47:17 GMT):
Hey All, I'm working on testing the chaincode using `MockStub`. In chaincode, I have a method `CreateUser()` in which I'm fetching some details like `cid.GetAttributeValue()`, `cid.GetID()` and `cid.GetMSPID()` . I have to test `CreateUser()` method using `MockStub` . I tried to test it but ran into an error ```Expecting a PEM-encoded X509 certificate; PEM block not found ``` I think it is because I'm not providing any certificate. So, Is there any functionality in `MockStub` to test these kind of things? Any reference or an example would be a great help. If anyone tested anything similar then please share

alkiimista (Fri, 18 Oct 2019 08:57:46 GMT):
Hi, I'm having an issue with Gateway.connect() using fabric-network. It seems to never get past this function, I've given it the correct parameters as well.

Fama 5 (Fri, 18 Oct 2019 09:16:40 GMT):
Hi, I am trying to create the user login part with hyperledger fabric, my question is, Let's assume that Fabric CA for org1 is running and admin is enrolled for org1. Now User from outside the organisation want to register,How User get his certificate and private key. where does this private key and certificate will be stored. Does CA will key the of user private key and certificate. if the user login to organisation does he have to use the certificate to authenticate ?

nikit-singh (Fri, 18 Oct 2019 09:19:57 GMT):
Has joined the channel.

lepar (Fri, 18 Oct 2019 11:51:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=8eipvfxPC3HapTdTf) You NEVER release a private key. For anything or anyone other than the owner. If you do, then the entire security is compromised and it's no longer a permissioned network. The outside user doesn't register, the admin has to. What you can do is create an endpoint that will use the admins certs on the server side to register and enroll that user and return their certificates.

msolefonte (Fri, 18 Oct 2019 12:07:04 GMT):
Can you specify more? I need per-component requirements. I understand that 0.4 CPU/800MB is enough for peers and orderers and 0.2 CPU/400MB is enough for CA. What do you think?

LucW (Fri, 18 Oct 2019 12:47:43 GMT):
@madiazp Right, I am thinking about something like that too and I will investigate. What bugs me is the fact that the issue doesn't come up when the smart contract returns shim.Error().

karthikcyadav (Fri, 18 Oct 2019 13:01:15 GMT):
Has joined the channel.

karthikcyadav (Fri, 18 Oct 2019 13:01:49 GMT):

Screenshot from 2019-10-18 18-20-50.png

lepar (Fri, 18 Oct 2019 13:32:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tnjG8Z52xvNAAyySc) Check your environment variables and make sure it's pointing to a peer admin folder

LucW (Fri, 18 Oct 2019 13:47:20 GMT):
Well... It seems that I solved the issue by replacing: grpc://localhost:7050 by localhost:7050... Which is really weird because the basic-network example uses the 'grpc' prefix at that same address

CT123 (Fri, 18 Oct 2019 15:12:35 GMT):
Receiving the following error when running local equiv of byfn.sh: ``` [common.tools.configtxgen.encoder] New -> PANI 006 Error creating channel group: could not create consortiums group: failed to create consortium ``` This is the 4th org in a 5 org configuration -- it's complaining about not finding a certificate for a MSP however it should not be creating the directory it says is missing: ``` panic: Error creating channel group: could not create consortiums group: failed to create consortium ClipNetConsortium: failed to create consortium org: 1 - Error loading MSP configuration for org: XYZMSP: could not load a valid ca certificate from directory /Users/CT15/temp/HL-COMPOSE/src/github.com/hyperledger/SS-test/ClipNet/crypto-config/peerOrganizations/XYZMSP.oceantides.example.com/msp/cacerts: stat /Users/CT15/temp/HL-COMPOSE/src/github.com/hyperledger/SS-test/ClipNet/crypto-config/peerOrganizations/XYZMSP.oceantides.example.com/msp/cacerts: no such file or directory [recovered] ``` There should be NO XYZMSP.oceantides.example.com directory -- there *should be* a XYZ.oceantides.example.com directory -- the script creates it and it is accessible. And in fact there are certificates under ```crypto-config/peerOrganizations/XYZ.oceantides.example.com/msp/cacerts ``` Any input on the errors?

delao (Fri, 18 Oct 2019 18:56:06 GMT):
As far as I know, every peer is a committer, so you actually have 5 commiters

lepar (Fri, 18 Oct 2019 18:56:51 GMT):
Has anyone been able to register a user with a CA using Node SDK with TLS

lepar (Fri, 18 Oct 2019 18:56:53 GMT):
?

delao (Fri, 18 Oct 2019 18:57:18 GMT):
TPS is heavily linked to your chaincode performance and complexity

delao (Fri, 18 Oct 2019 19:00:24 GMT):
How are you running your app? on premisses, Kubernetes, Cloud..?

Patriq (Fri, 18 Oct 2019 19:02:23 GMT):
Hello! :) I stumbled upon this repo that uses composite keys as a way to ensure single keys and stay away from read conflicts. (https://github.com/hyperledger/fabric-samples/tree/release/high-throughput). The basic idea is that it saves the updates to a value, the deltas, instead of the value itself. It then uses `getStateByPartialCompositeKey` when querying. Unfortunately in my chaincode I need to ensure that an update doesn't allow a value to be negative. This means that everytime I update a value, I need to use `getStateByPartialCompositeKey`. Now I am getting an error on phantom reads... Is there any neat way to be able to ensure this requirement using composite keys to guarantee high throughput? Cheers!

yacovm (Fri, 18 Oct 2019 19:29:43 GMT):
@Patriq since a chaincode invocation is simply a simulation, you can always have 100 simulations on their way to be included in some block, and the peer has no way to be aware of what it simulated

Patriq (Fri, 18 Oct 2019 19:32:18 GMT):
I'm confused. What do you mean by simulation? Also according to https://fabric-shim.github.io/master/fabric-shim.ChaincodeStub.html#getStateByPartialCompositeKey__anchor#getStateByPartialCompositeKey `getStateByPartialCompositeKey` seems to be the one causing the phantom reads.

yacovm (Fri, 18 Oct 2019 19:32:34 GMT):
when you do a chaincode invoke

yacovm (Fri, 18 Oct 2019 19:32:43 GMT):
and your transaction is sent to a block

yacovm (Fri, 18 Oct 2019 19:32:47 GMT):
what does the chaincode actually do?

yacovm (Fri, 18 Oct 2019 19:32:58 GMT):
it simulates the transaction and signs over this simulation, right?

Patriq (Fri, 18 Oct 2019 19:36:54 GMT):
if by signing you mean endorsing, yes I guess

yacovm (Fri, 18 Oct 2019 19:37:15 GMT):
ok.... then let's assume that you had some way of making a chaincode that detects that you go below 0

yacovm (Fri, 18 Oct 2019 19:38:00 GMT):
let's assume now you have 2 invocations of this chaincode such that 2 of them together get you under zero, but each of them alone, makes you stay above 0

yacovm (Fri, 18 Oct 2019 19:38:33 GMT):
so if you invoke these 2 invocations and then send them into the ordering service after they are both invoked

yacovm (Fri, 18 Oct 2019 19:39:02 GMT):
so essentially, the chaincode and the peer treated each of these 2 invocations as the first invocation

yacovm (Fri, 18 Oct 2019 19:39:15 GMT):
so when they both get to the block, and if they are both validated - you will get below 0

yacovm (Fri, 18 Oct 2019 19:39:22 GMT):
my point is, what you are asking, cannot be done

Patriq (Fri, 18 Oct 2019 19:40:21 GMT):
True!!!

Patriq (Fri, 18 Oct 2019 19:40:27 GMT):
But isn't there a way to enforce it?

yacovm (Fri, 18 Oct 2019 19:40:43 GMT):
not with the current Fabric

yacovm (Fri, 18 Oct 2019 19:40:53 GMT):
you need post order execution for this

Patriq (Fri, 18 Oct 2019 19:41:04 GMT):
In my use case, a value only gets updated every 1 minute or something

yacovm (Fri, 18 Oct 2019 19:41:21 GMT):
ah... if it's every 1 minute then it's not that bad

Patriq (Fri, 18 Oct 2019 19:41:55 GMT):
Yeah, but `getStateByPartialCompositeKey` seems to be throwing phantom reads tho...

Patriq (Fri, 18 Oct 2019 19:42:12 GMT):
And I wanted to know if there was a way to remove those checks?

Patriq (Fri, 18 Oct 2019 19:42:31 GMT):
Specifically the docs say: ``` The query is re-executed during validation phase to ensure result set has not changed since transaction endorsement (phantom reads detected). ```

yacovm (Fri, 18 Oct 2019 19:42:58 GMT):
just make sure you do the endorsement right after the block is committed

Patriq (Fri, 18 Oct 2019 19:44:08 GMT):
I am using the node sdk, which has some sort of high level api on the whole endorsement + send to orderer functionality

Patriq (Fri, 18 Oct 2019 19:44:08 GMT):
I am using the node sdk, which has some sort of high level api on the whole endorsement + send to orderer requirement

Patriq (Fri, 18 Oct 2019 19:44:51 GMT):
What do you mean with `endorsement right after the block is committed `?

yacovm (Fri, 18 Oct 2019 19:45:15 GMT):
when you do a transaction, send the next transaction after the block of the first transaction reaches the peer

Patriq (Fri, 18 Oct 2019 19:47:59 GMT):
isn't spacing out chaincode invocation enough?

yacovm (Fri, 18 Oct 2019 19:49:48 GMT):
that's.... what i am saying

Patriq (Fri, 18 Oct 2019 20:01:24 GMT):
mhh I am still stumbling upon phantom reads when calling chaincode using the sdk although I am spacing them out like 1 minute

yacovm (Fri, 18 Oct 2019 20:16:21 GMT):
@manish-sethi any idea why? ^

Patriq (Fri, 18 Oct 2019 20:20:41 GMT):
It could very well be that I am fucking something up

Patriq (Fri, 18 Oct 2019 20:34:37 GMT):
Reading this was helpful. I am not really sure why I am bumping into phantom reads tho... Is there any way of debugging this?

Patriq (Fri, 18 Oct 2019 20:34:37 GMT):
Reading this (https://hyperledger-fabric.readthedocs.io/en/release-1.4/readwrite.html) was helpful. I am not really sure why I am bumping into phantom reads tho... Is there any way of debugging this?

Patriq (Fri, 18 Oct 2019 20:40:33 GMT):
If in a transaction simulation, I read a range (to calculate a value), and then update the value (add another delta to the range), does this fall under: ``` This additional validation should ensure that no key has been inserted/deleted/updated in the super range (i.e., union of the ranges) of the results captured in the query-info(s). In other words, if we re-execute any of the range queries (that the transaction performed during simulation) during validation on the committed-state, it should yield the same results that were observed by the transaction at the time of simulation. This check ensures that if a transaction observes phantom items during commit, the transaction should be marked as invalid```

Patriq (Fri, 18 Oct 2019 20:40:33 GMT):
If in a transaction simulation, I read a range (to calculate a value), and then update the value (add another delta to the range), does this fall under? ``` This additional validation should ensure that no key has been inserted/deleted/updated in the super range (i.e., union of the ranges) of the results captured in the query-info(s). In other words, if we re-execute any of the range queries (that the transaction performed during simulation) during validation on the committed-state, it should yield the same results that were observed by the transaction at the time of simulation. This check ensures that if a transaction observes phantom items during commit, the transaction should be marked as invalid```

Patriq (Fri, 18 Oct 2019 20:40:33 GMT):
If in a transaction simulation, I read a range (to calculate a value), and then update the value (add another delta to the range), does this fall under? ``` This additional validation should ensure that no key has been inserted/deleted/updated in the super range (i.e., union of the ranges) of the results captured in the query-info(s). In other words, if we re-execute any of the range queries (that the transaction performed during simulation) during validation on the committed-state, it should yield the same results that were observed by the transaction at the time of simulation. This check ensures that if a transaction observes phantom items during commit, the transaction should be marked as invalid```

Patriq (Fri, 18 Oct 2019 20:40:33 GMT):
If in a transaction simulation, I read a range (all deltas to calculate a value), and then update the value (add another delta to the range), does this fall under? ``` This additional validation should ensure that no key has been inserted/deleted/updated in the super range (i.e., union of the ranges) of the results captured in the query-info(s). In other words, if we re-execute any of the range queries (that the transaction performed during simulation) during validation on the committed-state, it should yield the same results that were observed by the transaction at the time of simulation. This check ensures that if a transaction observes phantom items during commit, the transaction should be marked as invalid```

Patriq (Fri, 18 Oct 2019 20:40:33 GMT):
If in a transaction simulation, I read a range (all deltas to calculate a value), and then update the value (add another delta to the range), does this fall under this category? ``` This additional validation should ensure that no key has been inserted/deleted/updated in the super range (i.e., union of the ranges) of the results captured in the query-info(s). In other words, if we re-execute any of the range queries (that the transaction performed during simulation) during validation on the committed-state, it should yield the same results that were observed by the transaction at the time of simulation. This check ensures that if a transaction observes phantom items during commit, the transaction should be marked as invalid```

manish-sethi (Fri, 18 Oct 2019 20:56:46 GMT):
@Patriq From what I understand, you are using `getStateByPartialCompositeKey` in you `write` transaction and then in the same transaction, you are adding further delta (in other words, your one write transaction is affecting the query results that were perfomed by other write transaction results) and hence you are getting this error. Other way to think is that you are not gaining anything by using this model over the account model (where you would have maintained just the latest value) because you are reading everything (all the deltas). This is just converting the mvcc version conflict error into phantom conflict error. The intent of the delta model is that your write transaction should simply write the delta without reading the existing deltas and the latest commulative value you should be retrieving only in a read-only transaction. If your problem cannot be modeled into this, then this is not a solution for you.

manish-sethi (Fri, 18 Oct 2019 20:56:46 GMT):
@Patriq From what I understand, you are using `getStateByPartialCompositeKey` in a `write` transaction and then in the same transaction, you are adding further delta (in other words, your one write transaction is affecting the query results of other write transaction) and hence you are getting this error. Other way to think is that you are not gaining anything by using this model over the account model (where you would have maintained just the latest value) because you are reading everything (all the deltas). This is just converting the mvcc version conflict error into phantom conflict error. The intent of the delta model is that your write transaction should simply write the delta without reading the existing deltas and the latest commulative value you should be retrieving only in a read-only transaction. If your problem cannot be modeled into this, then this is not a solution for you.

manish-sethi (Fri, 18 Oct 2019 20:56:46 GMT):
@Patriq From what I understand, you are using `getStateByPartialCompositeKey` in a `write` transaction and then in the same transaction, you are adding further delta (in other words, your one write transaction is affecting the query results of other write transaction) and hence you are getting this error. Other way to look at this is that you are gaining nothing by using this model over the account model (where you would have maintained just the latest value) because you are reading everything (all the deltas). This is just converting the mvcc version conflict error into phantom conflict error. The intent of the delta model is that your write transaction should simply write the delta without reading the existing deltas and the latest commulative value you should be retrieving only in a read-only transaction. If your problem cannot be modeled into this, then this is not a solution for you.

Patriq (Fri, 18 Oct 2019 20:58:05 GMT):
That is exactly what is happening

Patriq (Fri, 18 Oct 2019 20:59:24 GMT):
That is exactly what happened. I had the account model > read conflicts happened > stumbled upon getStateByPartialCompositeKey > phantom reads happened

Patriq (Fri, 18 Oct 2019 20:59:24 GMT):
That is exactly what happened. I had the account model > read conflicts happened > stumbled upon `getStateByPartialCompositeKey` > phantom reads happened

manish-sethi (Fri, 18 Oct 2019 21:01:47 GMT):
Yes, this is saving you from data inconsistency issues. As your logic depends on the latest commulative value and hence this check is saving you from committing the wrong data (sa it would have done in the account model). As I said before, if you cannot model your logic otherwise, you won't gain anything from this model (rather you would end up making your app and data model more complex)

manish-sethi (Fri, 18 Oct 2019 21:01:47 GMT):
Yes, this is saving you from data inconsistency issues. As your logic depends on the latest commulative value and hence this check is saving you from committing the wrong data (as it would have done in the account model). As I said before, if you cannot model your logic otherwise, you won't gain anything from this model (rather you would end up making your app and data model more complex)

Patriq (Fri, 18 Oct 2019 21:04:44 GMT):
Very true. I will go back to the account model. Somehow I was running into read conflicts... They shouldn't happen if I space out transactions that read then write the same key correct?

manish-sethi (Fri, 18 Oct 2019 21:05:03 GMT):
Yes, that's right

Patriq (Fri, 18 Oct 2019 21:06:34 GMT):
I need to debug this properly then... Do you thing one minute is enough between writes? Also is it fine if I do write to key > 5 seconds > query key (just query) ?

manish-sethi (Fri, 18 Oct 2019 21:12:05 GMT):
Hard to say any numbers without looking at the app - cursorly look ok to me and yes, the queries (read-only transactions) do not affect writes.

Patriq (Fri, 18 Oct 2019 21:14:04 GMT):
Alright I will give it another shot, try to enforce 1 minute between writes

Patriq (Fri, 18 Oct 2019 21:14:26 GMT):
See if I run into any read conflicts! Thanks a lot @manish-sethi and @yacovm :) Much love <3

Patriq (Fri, 18 Oct 2019 23:24:04 GMT):
So I changed the chaincode to use the account model. I am ensuring a 2 minute between query or write under the same key, and I am still running into read conflicts... Does this mean that the a block isn't being confirmed in 2 minutes? This happens after a while, when I am sieging the network with 130 tps. Could it be that after a while, the network is so overloaded that it takes longer to confirm blocks and therefore I run into read conflicts?

Patriq (Fri, 18 Oct 2019 23:40:57 GMT):
It starts after like 32k transactions

karthikcyadav (Sat, 19 Oct 2019 03:43:55 GMT):
Hi LucW, How did you chancge grpc://localhost:7050 to localhost:7050. How did you remove grpc whcih was taking by default, Thanks in advance

karthikcyadav (Sat, 19 Oct 2019 03:46:22 GMT):
@LucW How did you chancge grpc://localhost:7050 to localhost:7050. How did you remove grpc whcih was taking by default, Thanks in advance

karthikcyadav (Sat, 19 Oct 2019 03:51:25 GMT):
Yes, I have pointed the admin user in environment variable

karthikcyadav (Sat, 19 Oct 2019 03:52:07 GMT):

Screenshot from 2019-10-19 09-19-58.png

karthikcyadav (Sat, 19 Oct 2019 04:01:02 GMT):
@lepar please see the above screenshot, Thanks

iamanujvrma (Sat, 19 Oct 2019 12:14:27 GMT):
Has joined the channel.

iamanujvrma (Sat, 19 Oct 2019 12:14:45 GMT):
Hi all, I am a beginner in fabric. I am trying to build a sample insurance application in which there are participants: 1. Insurance Policy holders (customers) 2. Insurers (there are N companies which can provide insurance) I am having a hard time in deciding the organisation in network configuration as I cannot device what will be an Organisation in my network. Will it be a generic org like InsuranceOrg or for every Insurance company will there be a separate org ? I tried looking up the docs and stackoverflow, but not able to clearly understand this. Please help.

iamanujvrma (Sat, 19 Oct 2019 12:14:45 GMT):
Hi all, I am a beginner in fabric. I am trying to build a sample insurance application in which there are 2 participants: 1. Insurance Policy holders (customers) 2. Insurers (there are N companies which can provide insurance) I am having a hard time in deciding the organisation in network configuration as I cannot device what will be an Organisation in my network. Will it be a generic org like InsuranceOrg or for every Insurance company will there be a separate org ? I tried looking up the docs and stackoverflow, but not able to clearly understand this. Please help.

lework (Sat, 19 Oct 2019 16:41:03 GMT):
Hi all,

lework (Sat, 19 Oct 2019 17:00:45 GMT):

cadocument.png

lework (Sat, 19 Oct 2019 17:01:03 GMT):

error.png

lework (Sat, 19 Oct 2019 17:08:07 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Attribute 'abac.init' was not found

CT123 (Sat, 19 Oct 2019 20:12:37 GMT):
Hi - updating byfn scripts for 5 orgs - question on ```fabric-samples/scripts/utils.sh``` within ```instantiateChaincode()``` and ```upgradeChaincode()``` in the tutorial we're working with only 2 orgs. In my working test, we are using 5 orgs. Should I be doing a ```peer chaincode instantiate`` and ```peer chaincode upgrade``` on ALL 5 orgs? Realize this maybe a *basic* question but there is not enough discussion in docs around these scripts -- so asking for a sanity check - thanks in advance ```

CT123 (Sat, 19 Oct 2019 20:12:37 GMT):
Hi - updating byfn scripts for 5 orgs - question on ```fabric-samples/scripts/utils.sh``` within ```instantiateChaincode()``` and ```upgradeChaincode()``` in the tutorial we're working with only 2 orgs. In my working test, we are using 5 orgs. Should I be doing a ```peer chaincode instantiate`` and ```peer chaincode upgrade``` on ALL 5 orgs? Realize this maybe a *basic* question but there is not enough discussion in docs around these scripts -- so asking for a sanity check - thanks in advance ```

CT123 (Sat, 19 Oct 2019 20:12:37 GMT):
Hi - updating byfn scripts for 5 orgs - question on ```fabric-samples/scripts/utils.sh``` within ```instantiateChaincode()``` and ```upgradeChaincode()``` in the tutorial we're working with only 2 orgs. In my working test, we are using 5 orgs. Should I be doing a ```peer chaincode instantiate`` and ```peer chaincode upgrade``` on ALL 5 orgs? Realize this maybe a *basic* question but there is not enough discussion in docs around these scripts -- so asking for a sanity check - thanks in advance ```

CT123 (Sat, 19 Oct 2019 20:12:37 GMT):
Hi - updating byfn scripts for 5 orgs - question on `fabric-samples/scripts/utils.sh` within` instantiateChaincode() `and `upgradeChaincode()` in the tutorial we're working with only 2 orgs. In my working test, we are using 5 orgs. Should I be doing a `peer chaincode instantiate` and `peer chaincode upgrade` on ALL 5 orgs? IOW should it be this for my 5 orgs: `peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -l ${LANGUAGE} -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer','Org5MSP.peer')" >&log.txt ` Realize this maybe a *basic* question but there is not enough discussion in docs around these scripts -- so asking for a sanity check - thanks in advance

CT123 (Sat, 19 Oct 2019 20:12:37 GMT):
Hi - updating byfn scripts for 5 orgs - question on `fabric-samples/scripts/utils.sh` within` instantiateChaincode() `and `upgradeChaincode()` in the tutorial we're working with only 2 orgs. In my working test, we are using 5 orgs. Should I be doing a `peer chaincode instantiate` and `peer chaincode upgrade` on ALL 5 org? IOW should it be this for my 5 orgs: `peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -l ${LANGUAGE} -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer','Org5MSP.peer')" >&log.txt ` Realize this maybe a *basic* question but there is not enough discussion in docs around these scripts -- so asking for a sanity check - thanks in advance

jvi (Mon, 21 Oct 2019 07:29:21 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know how is computed the private data hash? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see the hash of the key and the hash of the value (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= (looks like a base64 string) And for the value '26e4d281', the corresponding hash is something weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So *can you tell me how this hash is computed and how i can compute this hash by myself*?

twoneks (Mon, 21 Oct 2019 10:20:47 GMT):
Hi guys!

twoneks (Mon, 21 Oct 2019 10:21:04 GMT):
some one able to answer this tricky question?? https://stackoverflow.com/questions/58437455/hyperledger-fabric-custom-policy-during-channel-creation

Unicow (Mon, 21 Oct 2019 10:33:16 GMT):
Hi all, I set up fabric with 3 orgs (org1, org2, org3) and then I want to add a new org. I use the eyfn script to add the new org. Then I enroll an admin for org1 and register a user for org1. Using the nodejs sdk I try to submit a transaction but I get the error: Failed to submit transaction: Error: No endorsement plan available for {"chaincodes":[{...} Any ideas what might be the problem? Thanks

cenkozan (Mon, 21 Oct 2019 12:28:02 GMT):
Has joined the channel.

kakoi.lenko (Mon, 21 Oct 2019 12:57:03 GMT):
Has joined the channel.

kakoi.lenko (Mon, 21 Oct 2019 12:57:04 GMT):
Hi everyone! Could you please give us advice on how to organize the nodes of Hyperledger Fabric? Background: we are building a commercial app using blockchain smart contracts based on Hyperledger Fabric platform. The architecture of the app expects some RESTful API web service (possibly in bound with some load balancing) accessing Hyperledger nodes and exposing the API to SPA Web UI. The web service API is proxying application requests to the another Hyperledger alloted RESTful API dedicated to node accessing and smart contract invocation rather then direct acces to the blockchain nodes from the app API. The customers access the facilities of smart contracts through the web UI (SPA). The requrements of Hyperledger are the options given by blockchain such as trust, confidence reliability, consensus and so on and required by the business logic. The main problem is hidden in node distribution. So, the question is *how to organize the nodes of the network if the users have only web access and main blockchain features are provided only in a distributed network*. Maybe, you can suggest us some suitable solution or a direction to investigate? (besides IBM cloud platform and AWS) Thank you.

simran (Mon, 21 Oct 2019 13:01:14 GMT):
yeah mychannel is the channel name of the fabric network if you want to change the change the channel name then u have to export the env variable here of channel name and u can proceed of it

soumyanayak (Mon, 21 Oct 2019 13:36:02 GMT):
Hi All,

soumyanayak (Mon, 21 Oct 2019 13:44:52 GMT):
Hi All, Fabric- v1.4.3 (RAFT Orderer Set UP) Created a custom policy and when am trying to channel update, every time a different error is coming up like as below -- ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/OrgB/Readers to version 0, but key is at version 0``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Value] /Channel/Application/OrgB/MSP to version 0, but key is at version 0``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/Org1/Admins to version 0, but key is at version 0```

soumyanayak (Mon, 21 Oct 2019 13:44:52 GMT):
Hi All, Fabric- v1.4.3 (RAFT Orderer Set UP) Created a custom policy and when am trying to channel update, every time a different error is coming up like as below -- ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/OrgB/Readers to version 0, but key is at version 0``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Value] /Channel/Application/OrgB/MSP to version 0, but key is at version 0``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/Org1/Admins to version 0, but key is at version 0```

soumyanayak (Mon, 21 Oct 2019 13:44:52 GMT):
Hi All, Fabric- v1.4.3 (RAFT Orderer Set UP) Created a custom policy and when am trying to channel update, every time a different error is coming up like as below -- ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/OrgB/Readers to version 0, but key is at version 0 Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Value] /Channel/Application/OrgB/MSP to version 0, but key is at version 0``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'legaldescriptionchannel': error authorizing update: error validating DeltaSet: attempt to set key [Policy] /Channel/Application/Org1/Admins to version 0, but key is at version 0```

Taaanos (Mon, 21 Oct 2019 14:07:00 GMT):
Has joined the channel.

Taaanos (Mon, 21 Oct 2019 14:07:00 GMT):
I'm trying to sort this error: Everything lives under the vendor and is passed to the containers. I get no errors from my IDE ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/myproject/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/car chaincode/input/src/github.com/myproject/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/car/platform.go:96:10: undefined: MetadataProvider " !!!!!!!!!!!!!!! Chaincode instantiation on PEER0 on channel 'stmchannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

Taaanos (Mon, 21 Oct 2019 14:07:00 GMT):
I'm trying to sort this error: Everything lives under the vendor and is passed to the containers. ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/myproject/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/car chaincode/input/src/github.com/myproject/vendor/github.com/hyperledger/fabric/core/chaincode/platforms/car/platform.go:96:10: undefined: MetadataProvider " !!!!!!!!!!!!!!! Chaincode instantiation on PEER0 on channel 'stmchannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

redegade (Mon, 21 Oct 2019 15:21:03 GMT):
Hi all! Does anybody have an idea how / where to save the private keys of the enrolled users in a production environment? Saving them on the file system of the server is not quite secure I think, and if it were, how would you handle authorization as to which user can access which wallet directory? How can the users even Authenticate themselves in production? Thanks in advance.

ericsolomon (Mon, 21 Oct 2019 16:38:41 GMT):
I am running into this issue when trying to start up my network: https://jira.hyperledger.org/browse/FAB-13196. I have the latest docker images but it still fails when trying to create the couchdb. Any ideas?

ericsolomon (Mon, 21 Oct 2019 17:43:00 GMT):
Seems like the docker images weren't updated with the backpatches. Pulling the latest 1.4 worked.

spmcnamara (Mon, 21 Oct 2019 18:12:44 GMT):
I'm trying to setup a RAFT-ordered 2-Org network with two application channels. Can anyone help me understand what this area of the BYFN tutorial means: ``` Note that you don’t have to issue a special command for the channel if you are using a Raft or Kafka ordering service. The TwoOrgsChannel profile will use the ordering service configuration you specified when creating the genesis block for the network. ``` Does this mean I don't need to generate a MSPanchors.tx file? I've been walking through the byfn.sh script, and even when RAFT is used, it seems to generate that file. If I *do* need to create it, I'm not sure how to do so for the two channels, since each call (one ofr each channel) appears to overwrite the file. The bigger problem is that I don't really understand what is happening in this particular step.

spmcnamara (Mon, 21 Oct 2019 18:14:34 GMT):
I ended up starting from the byfn file and re-entering all my data. Whatever indentation problem I had appears to be gone now.

spmcnamara (Mon, 21 Oct 2019 18:30:30 GMT):
After re-reading for the 400th time, I *think* I see what needs to happen. I need to generate an anchor transaction for-each-channel, for-each-org. Someone please correct me if I'm wrong.

spmcnamara (Mon, 21 Oct 2019 19:57:48 GMT):
I'm at the point where I'm trying to add my channel to the orderer and generate the channel's genesis block, but I get the following: ``` 2019-10-21 19:49:53.418 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium ``` I have 4 orgs defined: Org1Orderer, Org2Orderer, Org1, and Org2. My application channel consortiums include Org1 and Org2. Do I also need to include the Orderer orgs? I don't see that done in the "first-network" example, but wonder if that's what is missing.

spmcnamara (Mon, 21 Oct 2019 20:14:24 GMT):
Is the issue that I *don't* need to add the application channels to the orderer nodes?

spmcnamara (Mon, 21 Oct 2019 21:09:15 GMT):
_ Rain falling outside Echoing silence in here Sound of my keyboard _

spmcnamara (Mon, 21 Oct 2019 21:09:15 GMT):
_Rain falling outside Echoing silence in here Sound of my keyboard_

spmcnamara (Mon, 21 Oct 2019 21:09:15 GMT):
_Rain falling outside_ _Echoing silence in here_ _Sound of my keyboard_

CT123 (Mon, 21 Oct 2019 21:40:42 GMT):
@spmcnamara the way I read your description, you have two orgs defined, Org1 and Org2. You are defining an architecture where each org has an orderer. You define this in configtx.yaml -- your consortiums get defined in the Profiles section. Take a look at how you have things defined there. With two orgs, you will likely only need 1 consortium but we would need to know more about your thinking to confirm.

spmcnamara (Mon, 21 Oct 2019 21:41:58 GMT):
Thanks for the reply. Not quite. I received guidance that said orderer nodes should *not* be placed with peer nodes/orgs, so I have an additional organization defined to hold each of the orgs orderers.

spmcnamara (Mon, 21 Oct 2019 21:42:38 GMT):
So there are 4 orgs. 2 just for orderers, and 2 for the peers.

spmcnamara (Mon, 21 Oct 2019 21:47:57 GMT):
Org Defs: https://pastebin.com/1WpFBWXz

spmcnamara (Mon, 21 Oct 2019 21:50:18 GMT):
If the guidance is not correct and it's fine to run orderers and peers in the same organization, that would simplify the config...

spmcnamara (Mon, 21 Oct 2019 21:51:42 GMT):
P.S. This is using the RAFT ordering service.

spmcnamara (Mon, 21 Oct 2019 21:57:34 GMT):
Here is my whole configtx.yaml. I'm able to create the artifacts OK, but get the BAD_REQUEST error when trying to add the channel to the orderer. https://pastebin.com/vZXZ2USt

CT123 (Mon, 21 Oct 2019 22:02:12 GMT):
Think of 'orgs' as participants in your network -- probably businesses but they could be entities like farmers or buyers. For this example let's call your two orgs BigCo1 and SmallCo2. If this is a simple test scenario this is probably what you want: -- 1 orderer org for all organizations, call it myorderer.example.com (or whatever domain name you want to use -- for BigCo1 you'll want two peers: peer0.BigCo1.example.com peer1.BigCo1.example.com --for SmallCo2 you'll also want two peers: peer0.SmallCo2.example.com peer1.SmallCo2.example.com -- you'll need to name a channel to join them to -- call that mychannel -- you'll need to name a consortium for them to be part of -- call that myexampleconsortium That's pretty much it -- does this make sense.

CT123 (Mon, 21 Oct 2019 22:02:48 GMT):
Reason why you want two peers so one can be an anchor peer

spmcnamara (Mon, 21 Oct 2019 22:11:01 GMT):
Yes, that all makes sense, however here is my scenario. I need to show a network for BigCo1 and BigCo2. Both companies interact with applications over Channel1 and Channel2. BigCo1 will also interact with other companies over different channels, and therefore needs their own orderer. BigCo2 will interact with other companies over different channels, and therefore also needs their own orderer. I understand the conceptual model, and think I've defined it correctly in configtx.yaml I'm able to generate all the artifacts (RAFT orderer genesis block, channel transaction files, anchor tx files) but when I try to add one of the channels to the orderer, I get that I've attempted to add a member who is not in the consortium. The consortium currently has BigCo1 and BigCo2, but *does not* include BigCo1OrdererOrg or BigCo2OrdererOrg. I did this based on the setup shown in the "first-network" tutorial code, so if the orderer orgs need to be added to the consortium, I'm not sure why that isn't shown in the example.

spmcnamara (Mon, 21 Oct 2019 22:13:35 GMT):
The only difference between my setup and the tutorial code _seems_ to be that I have two organizations running RAFT ordering nodes. Based on the docs about RAFT, this seems like it should work but I can try to rip out the second ordererOrg and see if that makes a difference.

CT123 (Mon, 21 Oct 2019 23:05:02 GMT):
You probably want to use private data collections instead of channels -- see here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html You should also know that there are ~14 files you need to be aware of / edit in order to use byfn.sh correctly. It is not copiously documented, but you can find a good overview of the files here: https://medium.com/@reasdom/hyperledger-fabric-building-your-first-network-tutorial-part-2-267fc5d36118 That post has several "parts" -- but it covers most of what you need to know -- again not in great detail but it's more detail than in the HLF docs.... hope this helps

biligunb (Tue, 22 Oct 2019 01:10:45 GMT):
Yes. Every peer is committer. However endorser peers have more load > committer peer has less (no endorsement done there) Which leads to what is the best architecture (given total of 5 peers)

biligunb (Tue, 22 Oct 2019 01:11:15 GMT):
I am testing both on local environment (dockers) and cloud (AWS).

biligunb (Tue, 22 Oct 2019 01:11:45 GMT):
Chaincode is the generic-chaincode used in Canadian Whitepaper (waterloo university)

medikent (Tue, 22 Oct 2019 04:53:11 GMT):
What are some possible causes for getting a gRPC *access denied* failure when getting the ConfigBlock? I am using a newly generated fabric identity to invoke a chaincode function on a channel. Do I need to create a user with access to a given channel? Below is my stack trace: ``` org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel alexchannel failed with peer alex.example.org. Status FAILURE, details: Channel Channel{id: 4, name: alexchannel} Sending proposal with transaction: c88ec73a833a8a8e026e4f03090e058c44b9efec15873470ddd9e8dc2e22cdcc to Peer{ id: 1, name: alex.example.org, channelName: alexchannel, url: grpc://alex.example.org:8051} failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [alexchannel] creator org [AlexMSP], cause=null} ```

Ishee (Tue, 22 Oct 2019 05:47:11 GMT):
Has joined the channel.

Ishee (Tue, 22 Oct 2019 05:47:12 GMT):
Hello, I have developed a Chaincode using a Hyperledger composer. Now I am trying to install my chaincode on Blockchain platform service of IBM cloud. But it's not accepting a .bna file which is having a chaincode logic. So which alternative service I can use for installing my chaincode which is written using hyperledger-composer on the IBM cloud?

biligunb (Tue, 22 Oct 2019 06:48:17 GMT):
Where can I get performance results for HLF v1.4.4 & v2.0? or even better comparison of the two?

HLFPOC (Tue, 22 Oct 2019 07:00:06 GMT):
Hi Team, I am trying to fetch the blocks from my transactions in chaincode and noticed that block number starts from 4. Can anyone guide what all details gets stored in blocks from 0 till 3 and how to get those blocks in client app?

soumyanayak (Tue, 22 Oct 2019 07:02:34 GMT):
Those blocks will be having channel configuration updates . You can have a better view using the hyperledger explorer tool

HLFPOC (Tue, 22 Oct 2019 07:04:40 GMT):
Thanks for reply. Any idea on how to capture those blocks in client application?

Unicow (Tue, 22 Oct 2019 09:29:22 GMT):
Hi, any ideas why in the eyfn the step 3 is executed in the cli container and not in the Org3cli? I'm talking about this line `docker exec cli ./scripts/step3org3.sh ....`

Unicow (Tue, 22 Oct 2019 09:29:22 GMT):
Hi, any ideas why in the eyfn the step 3 is executed in the cli container and not in the Org3cli? I'm talking about this line `docker exec cli ./scripts/step3org3.sh ....` in the eyfn.sh

saikumar3349 (Tue, 22 Oct 2019 10:08:59 GMT):
i want to generate different certificates for different users for performing transactions using fabric-ca-server. can anyone help with any resources ? It would be great if anyone can help.

Unicow (Tue, 22 Oct 2019 10:29:45 GMT):
In the eyfn.sh do you understand why the upgradeChaincode (step3org3.sh) changes the policy from AND to OR and from org.member to org.peer?

hungptse (Tue, 22 Oct 2019 10:51:08 GMT):
Has joined the channel.

hungptse (Tue, 22 Oct 2019 10:53:01 GMT):
Hello everyone , I'm developing a chaincode, How can I get data from `stub.GetQueryResult(queryString)`, I ran debug but it stop my debugger ?

Adryx86 (Tue, 22 Oct 2019 11:17:05 GMT):
Has joined the channel.

Adryx86 (Tue, 22 Oct 2019 11:17:07 GMT):
Hello, i'm trying to understand how to wrote a clean chaincode using java. I found 2 ways to do it, first implementing the ContractInterface (i did it following this way and it works well), the second way is extending the ChaincodeBase class and writing code this way is so different. Why there are this possibility on how to implement chaincode ? Thanks in advance

sudijovski (Tue, 22 Oct 2019 11:31:04 GMT):
I dont think you can get them by subscribing the client to listen for block events, because i am not sure if you even can setup a client before (but you can try). I think it would be better if you get them programatically, once the client is up and running

sudijovski (Tue, 22 Oct 2019 11:32:40 GMT):
@souma

sudijovski (Tue, 22 Oct 2019 11:32:40 GMT):
@soumyanayak thank you for the answer, but i am stuck with 1.4.3

ikar (Tue, 22 Oct 2019 11:36:34 GMT):
Has joined the channel.

brunohenrique123 (Tue, 22 Oct 2019 12:15:30 GMT):
Hello my name is Bruno. I am now starting to explore the blockchain hyperledger fabric solution. I did some community research to solve a problem I am having on the solution proxy when I start chaincode, because chaincode does not use the proxy that was set up in the docker. (The challenge is to make chaincode run on a low-provision network where I can't enable the firewall). Have an open issue or solution about this issue? Thanks =)

zhasni (Tue, 22 Oct 2019 12:53:37 GMT):
Hi I have a problem with Private data collections and JSDK Service Discovery Where can I explain my issue and get help ? thx.

AhmedBesbes (Tue, 22 Oct 2019 13:05:15 GMT):
Has joined the channel.

AhmedBesbes (Tue, 22 Oct 2019 13:05:16 GMT):
Hi, Can anyone tell me whats the best linux distribution to start working with fabric ?

Adryx86 (Tue, 22 Oct 2019 13:12:34 GMT):
Ignore this message.. i found a solution in a dedicated channel

saif_32 (Tue, 22 Oct 2019 15:57:13 GMT):
Is it possible to store unstructured data in ledger by a state ? By unstructured it means we do not have a defined struct for it as the the key, value changes everytime. Ofcourse, there will be one key field which will always be present against with the data will be stored. I tried this and the couchdb did store data but when I open fauxton and click the key, I see only some meta data fields and no other key,vlaues.

VarunVemala (Tue, 22 Oct 2019 18:12:46 GMT):
Has joined the channel.

delao (Tue, 22 Oct 2019 21:03:31 GMT):
Fabric should run on any UNIX like OS with no problems. Just pick a distro you feel comfortable with and make sure you can install Docker on your distro

delao (Tue, 22 Oct 2019 21:04:11 GMT):
As you will probably use containers

PratikPatil (Tue, 22 Oct 2019 23:50:54 GMT):
Hi, Im getting starting the fabric-ca docker container with command fabric-ca-client enroll -u ... .However it works fine if I don't put command in dockerfile and execute it later with docker exec -it. Does anyone know why? Any help is appriciated. Thanks

spmcnamara (Wed, 23 Oct 2019 00:34:04 GMT):
Hi all. I'm trying to enable CouchDB, but I think I'm missing something in my config. When trying to access the peer, I get a mismatch on the MSP ID. The names match, but it looks like the request is missing a CouchDB identifier. ```2019-10-22 22:59:49.067 UTC [protoutils] ValidateProposalMessage -> WARN 1a06 channel []: MSP error: expected MSP ID myorgMSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB, received myorgMSP```

spmcnamara (Wed, 23 Oct 2019 00:34:51 GMT):
I tried defining CORE_LEDGER_STATE_STATEDATABASE=CouchDB in the environment before the call, but still get the same message.

spmcnamara (Wed, 23 Oct 2019 00:35:28 GMT):
The above happens when I try to "peer channel list"

saikumar3349 (Wed, 23 Oct 2019 04:31:26 GMT):
check your MSP in your cli container

saikumar3349 (Wed, 23 Oct 2019 04:34:26 GMT):
Also check your peer and couchdb container logs

saikumar3349 (Wed, 23 Oct 2019 04:45:04 GMT):
Hello all. How to generate transaction certificates using fabric-sdk-py.

abel23 (Wed, 23 Oct 2019 05:36:27 GMT):
How to enroll different kinds of users from a CA in an organization. Say i want to give access to a clerk who can only query the chaincode and not invoke them. How do I do this?

spmcnamara (Wed, 23 Oct 2019 05:55:15 GMT):
@saikumar3349 Thanks. I'm running the commands from the cli host, and have set the parameter value but it doesn't appear to have any affect. I'm pulling the error message from the peer.

RahulEth (Wed, 23 Oct 2019 06:17:51 GMT):
inside the peer we set environment variable CORE_PEER_MSPCONFIGPATH to admin msp. i am worried about what would happen if someone get access to peer illegally . i.e. he can make transaction on behalf on admin. is there any way to secure the admin credential in case someone get peer access ?? any answer would be appreciated

mattiabolzonella1 (Wed, 23 Oct 2019 07:41:32 GMT):
hi, where i can find the core.yalm that fabric is using?

Taaanos (Wed, 23 Oct 2019 08:35:38 GMT):
Solved it. Had an issue with vendoring, redid it and works :)

soumyanayak (Wed, 23 Oct 2019 08:58:08 GMT):
https://github.com/hyperledger/fabric/tree/v1.4.3/sampleconfig

mattiabolzonella1 (Wed, 23 Oct 2019 08:59:32 GMT):
Thanks, follow up question: where i need to place the core.yalm file in my file system in order to be used by fabric?

soumyanayak (Wed, 23 Oct 2019 09:02:44 GMT):
If you are using the Native based set up like using the bianries to start the services it depends on the environment variable - FABRIC_CFG_PATH where you set the path whcih containe core.yaml in case of docker based set up you need not have to worry about that - environment variables would play the role for the configuration

soumyanayak (Wed, 23 Oct 2019 09:02:44 GMT):
If you are using the Native based set up like using the bianries to start the services it depends on the environment variable - FABRIC_CFG_PATH where you set the path which contains the core.yaml in case of docker based set up you need not have to worry about that - environment variables would play the role for the configuration

weeaix (Wed, 23 Oct 2019 09:10:55 GMT):
If you're using fabric-ca, you could add roles like this: ``` fabric-ca-client register --id.name user1 --id.secret user1pw --id.type user --id.affiliation org1 --id.attrs 'app1Admin=true:ecert,email=user1@gmail.com' fabric-ca-client enroll -u http://user1:user1pw@localhost:7054 --enrollment.attrs "email,phone:opt" ``` Then write your chaincode to assert these role before invoking. Ref: https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode/shim/ext/cid

ahmad-raza (Wed, 23 Oct 2019 09:21:14 GMT):
Hi all Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: chaincode registration failed: container exited with 1

ahmad-raza (Wed, 23 Oct 2019 09:21:56 GMT):
Is there is any limit how much time chaincode is upgrading??

ahmad-raza (Wed, 23 Oct 2019 09:22:27 GMT):
As i am upgrading it about 20th times And this error is shown

mattiabolzonella1 (Wed, 23 Oct 2019 09:27:13 GMT):
Oh I understand, i'm using the docker set up and I was wondering if the core.yalm was being used. Now it's all clear. thanks!

weeaix (Wed, 23 Oct 2019 09:30:07 GMT):
Since [v1.4.3](https://github.com/hyperledger/fabric/releases/tag/v1.4.3) allowed us to classify identities as orderers, do we still need separate organizations for clients and orderers?

abel23 (Wed, 23 Oct 2019 09:36:59 GMT):
Thanks! Can i implement this via node SDK? What you have given must be the terminal method right?

weeaix (Wed, 23 Oct 2019 09:38:45 GMT):
Yes. Above is the terminal method.

weeaix (Wed, 23 Oct 2019 09:45:13 GMT):
For the SDK, you could pass an array of key/value attributes to register() Ref: https://fabric-sdk-node.github.io/FabricCAClient.html#register__anchor

abel23 (Wed, 23 Oct 2019 09:53:26 GMT):
COOL!

PraharshaBejju (Wed, 23 Oct 2019 10:36:11 GMT):
Hi, I have configured the kafka broker and orderer with the zookeeper service. But how do I configure this in a way to ensure fault tolerent service

saikumar3349 (Wed, 23 Oct 2019 11:04:27 GMT):
You need to configure multiple kafka and zookeerpers on multiple systems for cft

alkiimista (Wed, 23 Oct 2019 11:09:44 GMT):
Hello, currently having issues with the DiscoveryEndorsementHandler. It keeps returning with Error: transaction returned with failure: TypeError: cannot create property 'item' on string ''. I find this very weird as the code was working before I restarted my local fabric network.

RahulEth (Wed, 23 Oct 2019 12:01:43 GMT):
my data get committed into couchdb as status showing success but still getting MVCC_READ_CONFLICT``` The transaction was invalid, code = MVCC_READ_CONFLICT Send transaction promise and event listener promise have completed commititngresults [ { status: 'SUCCESS', info: '' }, { event_status: 'MVCC_READ_CONFLICT', tx_id: '188811533e1865a64aee3b0e5a78dad88c01539d7aa4346368fc70b635cd9198' } ] ################# { status: 'SUCCESS', info: '' } @@@@@@@@@@@@@@@@@@@ { event_status: 'MVCC_READ_CONFLICT', tx_id: '188811533e1865a64aee3b0e5a78dad88c01539d7aa4346368fc70b635cd9198' } Successfully sent transaction to the orderer. Transaction failed to be committed to the ledger due to ::MVCC_READ_CONFLICT { statusCode: 500, data: 'Transaction failed to be committed to the ledger due to ::MVCC_READ_CONFLICT', chData: [ [ [Object], [Object] ], { header: [Object], payload: [Object], extension: [Object] } ] } ```

simran (Wed, 23 Oct 2019 12:30:11 GMT):

Screenshot from 2019-10-23 17-42-17.png

soumyanayak (Wed, 23 Oct 2019 12:32:32 GMT):
While running the peer channel join hopefully you are pointing the MSPconfigpath to the peer admin ?

simran (Wed, 23 Oct 2019 12:33:22 GMT):
yes soumya i have passed the mspconfig path

simran (Wed, 23 Oct 2019 12:33:22 GMT):
correctly

alkiimista (Wed, 23 Oct 2019 12:46:41 GMT):
Any way to instantiate faster?

skyfan (Wed, 23 Oct 2019 14:37:33 GMT):
Hi, I have a HF network (with raft) running in a k8s cluster alongside with a nodejs app that runs in the same namespace. I encounter gRPC communication problems when the app tries to communicate with the peer. On the peer side, it shows:``` `grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 100.96.76.154:30110->100.96.75.17:58932: read: connection reset by peer"` ```

skyfan (Wed, 23 Oct 2019 14:39:41 GMT):
Hi, I have a HF network (with raft) running in a k8s cluster alongside with a nodejs app that runs in the same namespace. I encounter gRPC communication problems when the app tries to communicate with the peer (for example when trying to query). On the peer side, the logs show:``` `grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 100.96.76.154:30110->100.96.75.17:58932: read: connection reset by peer"` ``` ``` On the app side, the following error appears:``` `"Error: Failed to connect before the deadline URL:grpcs://blockchain-org1peer1:30110".` ``` ```

Sai_S 1 (Wed, 23 Oct 2019 14:50:53 GMT):
Has joined the channel.

CT123 (Wed, 23 Oct 2019 20:03:52 GMT):
For `BYFN` has anyone updated `script.sh` and `utils.sh` for more than 2 orgs and who would be willing to share / post their script here?

medikent (Wed, 23 Oct 2019 20:40:04 GMT):
Any ideas why I would be getting an *access denied* gRPC error when trying to connect to a peer on my network through fabric-gateway-java?

medikent (Wed, 23 Oct 2019 20:40:34 GMT):
I created some scripts to dynamically add an org and a peer for that org. is that what you are looking for?

CT123 (Wed, 23 Oct 2019 21:13:54 GMT):
What' I'm really looking for is an *initial* load of more than 2 orgs -- 5 or 6 orgs via scripts.sh and utils.sh - byfn calls scripts.sh which calls utils.sh in turn.

CT123 (Wed, 23 Oct 2019 21:19:01 GMT):
@medikent not directly but you might try asking on the fabric-sdk-java channel Also - you might check this, which was closed by one of fabric's authors: https://github.com/hyperledger/composer/issues/4015

CT123 (Wed, 23 Oct 2019 21:30:49 GMT):
Actually may a better q is: script.sh installs, instantiates, queries and invokes chaincode on all the orgs peers. if I have 5 (or 6) orgs should I be doing that as an initial test for ALL of them?

throwawayacc1234 (Thu, 24 Oct 2019 01:39:29 GMT):
Has joined the channel.

joseph-d-p (Thu, 24 Oct 2019 02:13:04 GMT):
Has joined the channel.

joseph-d-p (Thu, 24 Oct 2019 02:34:33 GMT):
Hi all, I've been running the fabcar sample in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html but I got an error: ``` ```

joseph-d-p (Thu, 24 Oct 2019 02:58:37 GMT):
Hi everyone, hope this is the right channel to ask for `fabric-samples`-related questions. I've been playing with the `fabcar` sample in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html. I got an error when enrolling the admin. ``` $ node enrollAdmin.js ``` > Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27 Before this I was playing around with building your first network. I managed to execute it well. So when I transitioned to *Writing Your First Application*, I brought down the existing network: ```bash $ ./byfn.sh down $ docker rm -f $(docker ps -aq) $ docker rmi -f $(docker images | grep fabcar | awk '{print $3}') ``` I checked running dockers after starting fabric ```bash $ ./startFabric.sh javascript $ docker ps ``` Out: ``` f24bd3c10a75 dev-peer1.org2.example.com-fabcar-1.0-a139c9f32bcd86b26c02c1cfecba01c235a9007e24c34b03cb1d82d000696338 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org2.example.com-fabcar-1.0 8fc39b671604 dev-peer0.org2.example.com-fabcar-1.0-264b0a1cb5efbecaac5cf8990339c24474dc8435c6e10f10f2be565d555d0e94 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org2.example.com-fabcar-1.0 a9412c3eed57 dev-peer1.org1.example.com-fabcar-1.0-791f4e9c59e5c5ae44b5e63c754aaf47cfa4757490019879665238e39ab45594 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org1.example.com-fabcar-1.0 4d96477f2245 dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org1.example.com-fabcar-1.0 da77e8a95820 hyperledger/fabric-tools:latest "/bin/bash" 16 minutes ago Up 16 minutes cli 6ec21ecb773b hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com ecfe4b450657 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:9051->9051/tcp peer0.org2.example.com 6838f9c4151d hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:10051->10051/tcp peer1.org2.example.com b5cbf943217a hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:8051->8051/tcp peer1.org1.example.com a6b50a64328f hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 43b06333763e hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 b06b9d7b5e7c hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 ff52abcf0dd9 hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 689f1c4417ae hyperledger/fabric-orderer:latest "orderer" 17 minutes ago Up 16 minutes 0.0.0.0:7050->7050/tcp orderer.example.com ``` I didn't see ` Any thoughts about the error?

joseph-d-p (Thu, 24 Oct 2019 02:58:37 GMT):
Hi everyone, hope this is the right channel to ask for `fabric-samples`-related questions. I've been playing with the `fabcar` sample in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html. I got an error when enrolling the admin. ``` $ node enrollAdmin.js ``` > Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27 Before this I was playing around with building your first network. I managed to execute it well. So when I transitioned to *Writing Your First Application*, I brought down the existing network: ```bash $ ./byfn.sh down $ docker rm -f $(docker ps -aq) $ docker rmi -f $(docker images | grep fabcar | awk '{print $3}') ``` I checked running dockers after starting fabric ```bash $ ./startFabric.sh javascript $ docker ps ``` Out: ``` f24bd3c10a75 dev-peer1.org2.example.com-fabcar-1.0-a139c9f32bcd86b26c02c1cfecba01c235a9007e24c34b03cb1d82d000696338 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org2.example.com-fabcar-1.0 8fc39b671604 dev-peer0.org2.example.com-fabcar-1.0-264b0a1cb5efbecaac5cf8990339c24474dc8435c6e10f10f2be565d555d0e94 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org2.example.com-fabcar-1.0 a9412c3eed57 dev-peer1.org1.example.com-fabcar-1.0-791f4e9c59e5c5ae44b5e63c754aaf47cfa4757490019879665238e39ab45594 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org1.example.com-fabcar-1.0 4d96477f2245 dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org1.example.com-fabcar-1.0 da77e8a95820 hyperledger/fabric-tools:latest "/bin/bash" 16 minutes ago Up 16 minutes cli 6ec21ecb773b hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com ecfe4b450657 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:9051->9051/tcp peer0.org2.example.com 6838f9c4151d hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:10051->10051/tcp peer1.org2.example.com b5cbf943217a hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:8051->8051/tcp peer1.org1.example.com a6b50a64328f hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 43b06333763e hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 b06b9d7b5e7c hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 ff52abcf0dd9 hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 689f1c4417ae hyperledger/fabric-orderer:latest "orderer" 17 minutes ago Up 16 minutes 0.0.0.0:7050->7050/tcp orderer.example.com ``` Any thoughts about the error?

joseph-d-p (Thu, 24 Oct 2019 02:58:37 GMT):
Hi everyone, hope this is the right channel to ask for `fabric-samples`-related questions. I've been playing with the `fabcar` sample in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html. I got an error when enrolling the admin. ``` $ node enrollAdmin.js ``` > Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27 Before this I was playing around with building your first network. I managed to execute it well. So when I transitioned to *Writing Your First Application*, I brought down the existing network: ```bash $ ./byfn.sh down $ docker rm -f $(docker ps -aq) $ docker rmi -f $(docker images | grep fabcar | awk '{print $3}') ``` I checked running dockers after starting fabric ```bash $ ./startFabric.sh javascript $ docker ps ``` Out: ``` f24bd3c10a75 dev-peer1.org2.example.com-fabcar-1.0-a139c9f32bcd86b26c02c1cfecba01c235a9007e24c34b03cb1d82d000696338 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org2.example.com-fabcar-1.0 8fc39b671604 dev-peer0.org2.example.com-fabcar-1.0-264b0a1cb5efbecaac5cf8990339c24474dc8435c6e10f10f2be565d555d0e94 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org2.example.com-fabcar-1.0 a9412c3eed57 dev-peer1.org1.example.com-fabcar-1.0-791f4e9c59e5c5ae44b5e63c754aaf47cfa4757490019879665238e39ab45594 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org1.example.com-fabcar-1.0 4d96477f2245 dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org1.example.com-fabcar-1.0 da77e8a95820 hyperledger/fabric-tools:latest "/bin/bash" 16 minutes ago Up 16 minutes cli 6ec21ecb773b hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com ecfe4b450657 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:9051->9051/tcp peer0.org2.example.com 6838f9c4151d hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:10051->10051/tcp peer1.org2.example.com b5cbf943217a hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:8051->8051/tcp peer1.org1.example.com a6b50a64328f hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 43b06333763e hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 b06b9d7b5e7c hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 ff52abcf0dd9 hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 689f1c4417ae hyperledger/fabric-orderer:latest "orderer" 17 minutes ago Up 16 minutes 0.0.0.0:7050->7050/tcp orderer.example.com ``` Any thoughts about the error?

joseph-d-p (Thu, 24 Oct 2019 02:58:37 GMT):
Hi everyone, hope this is the right channel to ask for `fabric-samples`-related questions. I've been playing with the `fabcar` sample in https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html. I got an error when enrolling the admin. ``` $ node enrollAdmin.js ``` > Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27 > .... > ... Before this I was playing around with building your first network. I managed to execute it well. So when I transitioned to *Writing Your First Application*, I brought down the existing network: ```bash $ ./byfn.sh down $ docker rm -f $(docker ps -aq) $ docker rmi -f $(docker images | grep fabcar | awk '{print $3}') ``` I checked running dockers after starting fabric ```bash $ ./startFabric.sh javascript $ docker ps ``` Out: ``` f24bd3c10a75 dev-peer1.org2.example.com-fabcar-1.0-a139c9f32bcd86b26c02c1cfecba01c235a9007e24c34b03cb1d82d000696338 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org2.example.com-fabcar-1.0 8fc39b671604 dev-peer0.org2.example.com-fabcar-1.0-264b0a1cb5efbecaac5cf8990339c24474dc8435c6e10f10f2be565d555d0e94 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org2.example.com-fabcar-1.0 a9412c3eed57 dev-peer1.org1.example.com-fabcar-1.0-791f4e9c59e5c5ae44b5e63c754aaf47cfa4757490019879665238e39ab45594 "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer1.org1.example.com-fabcar-1.0 4d96477f2245 dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba "/bin/sh -c 'cd /usr…" 16 minutes ago Up 16 minutes dev-peer0.org1.example.com-fabcar-1.0 da77e8a95820 hyperledger/fabric-tools:latest "/bin/bash" 16 minutes ago Up 16 minutes cli 6ec21ecb773b hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com ecfe4b450657 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:9051->9051/tcp peer0.org2.example.com 6838f9c4151d hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:10051->10051/tcp peer1.org2.example.com b5cbf943217a hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 16 minutes 0.0.0.0:8051->8051/tcp peer1.org1.example.com a6b50a64328f hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 43b06333763e hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 b06b9d7b5e7c hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 ff52abcf0dd9 hyperledger/fabric-couchdb "tini -- /docker-ent…" 17 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 689f1c4417ae hyperledger/fabric-orderer:latest "orderer" 17 minutes ago Up 16 minutes 0.0.0.0:7050->7050/tcp orderer.example.com ``` Any thoughts about the error?

adarshaJha (Thu, 24 Oct 2019 07:03:58 GMT):
helm version Client: &version.Version{SemVer:"v2.15.1", GitCommit:"cf1de4f8ba70eded310918a8af3a96bfe8e7683b", GitTreeState:"clean"} Error: Get http://localhost:8080/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp 127.0.0.1:8080: connect: connection refused

MKabanau (Thu, 24 Oct 2019 10:01:51 GMT):
Has joined the channel.

giuzero (Thu, 24 Oct 2019 10:21:20 GMT):
Has joined the channel.

giuzero (Thu, 24 Oct 2019 10:21:21 GMT):
Hi, I changed my consortium name in configtx.yaml and I generated all the cryptomaterial and stuff. When I enter into the docker trying to create a channel I got got an error about not having SampleConsortium in my configtx.yaml. I saw that "peer channel create" loads a configtx.yaml that is in /etc/hyperledger/fabric/configtx.yaml that seems the byfn one. 2019-10-24 10:20:03.381 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml 2019-10-24 10:20:03.381 UTC [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 003 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2019-10-24 10:20:03.383 UTC [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 004 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: SampleConsortium

BrettR (Thu, 24 Oct 2019 10:46:43 GMT):
Hello All, I'm doing the Certified Hyperledger Fabric Administration (CHFA) course and Im wondering if there is any support here for the course? Specifically, where is the updated "Lab Assets" on The LF referred to in the training documents. Thank you.

BrettR (Thu, 24 Oct 2019 11:25:28 GMT):
Hi again, just an FYI here is Linux support forum for the Certified Hyperledger Fabric Administration (CHFA) course. https://forum.linuxfoundation.org/categories/lfs272-class-forum

ahmad-raza (Thu, 24 Oct 2019 12:22:46 GMT):
HI all Error is shown while instantiating chaincode chaincode registration failed: container exited with 1 Any one can help

ahmad-raza (Thu, 24 Oct 2019 12:22:46 GMT):
HI all Error is shown while instantiating chaincode chaincode registration failed: container exited with 1 Any one can help I have seen there is docker image created for chaincode but there is no container shown in list Any suggestions hints??

abel23 (Thu, 24 Oct 2019 12:31:37 GMT):
Guys, There is something called affiliation, for eg: org1.department1. How do i create different departments in an org? Say, i want to create org1.department2. How do I do this?

Adryx86 (Thu, 24 Oct 2019 12:54:15 GMT):
Hi all! Does exist a way to invoke/query a transaction from a different contract instantiaded on the same channell ?

Adryx86 (Thu, 24 Oct 2019 12:54:15 GMT):
Hi all! Does exist a way to invoke/query a transaction on a different contract instantiaded on the same channell ?

Adryx86 (Thu, 24 Oct 2019 12:54:15 GMT):
Hi all! Does exist a way to invoke/query a transaction on a different contract instantiaded on the same channel ?

Oninik (Thu, 24 Oct 2019 13:18:46 GMT):
Has joined the channel.

Oninik (Thu, 24 Oct 2019 13:18:59 GMT):
Hi all! I created a network using ibp (local fabric), and after doing some transactions with chaincode, I decided to have a look at the block files and see how they are on the peers. After serching a little bit here I found some old threads of people also looking for it and found the location at /var/hyperledger/production/ledgersData/chains/chains/mychannel, the thing is there is only one file named blockfile_000000 there, and I am assuming it is the first block, at this point I already made more than 15 transactions on it. So my question is: shouldn't there already be more blocks? Or I am looking on the wrong place?

delao (Thu, 24 Oct 2019 13:23:05 GMT):
As far as I know, all blocks live on that file

Oninik (Thu, 24 Oct 2019 13:28:11 GMT):
Shouldn't the blocks them have their transactions be hashed there? And also, is there a way to know when a block ends and when another begins in there?

Oninik (Thu, 24 Oct 2019 13:28:11 GMT):
Shouldn't the blocks them have their transactions be hashed there? And also, is there a way to know when a block ends and whe another begins in there?

ahmad-raza (Thu, 24 Oct 2019 13:59:21 GMT):
HI all Error is shown while instantiating chaincode chaincode registration failed: container exited with 1 Any one can help I have seen there is docker image created for chaincode but there is no container shown in list Any suggestions hints??

ahmad-raza (Thu, 24 Oct 2019 13:59:21 GMT):
HI all Error is shown while instantiating chaincode chaincode registration failed: container exited with 1 Any one can help Errors in peer logs "failed to invoke chaincode name:"lscc" , error: container exited with 1" I have seen there is docker image created for chaincode but there is no container shown in list Any suggestions hints??

ahmad-raza (Thu, 24 Oct 2019 13:59:21 GMT):
HI all Error is shown while instantiating chaincode chaincode registration failed: container exited with 1 Any one can help Errors in peer logs "*failed to invoke chaincode name:"lscc" , error: container exited with 1*" I have seen there is docker image created for chaincode but there is no container shown in list Any suggestions hints??

ahmad-raza (Thu, 24 Oct 2019 14:02:01 GMT):
I have upgraded chaincode many times before but now it is giving error . ???

saanvijay (Thu, 24 Oct 2019 14:37:29 GMT):
Has joined the channel.

msolefonte (Thu, 24 Oct 2019 14:41:07 GMT):
Hello. Do I have to apply the anchor peer on each org peer involved in the channel or only in the anchor peers of that org?

msolefonte (Thu, 24 Oct 2019 14:41:07 GMT):
Hello. Do I have to apply the anchor peer on each org peer involved in the channel or only in the anchor peers of that org? Please @ me.

ahmad-raza (Thu, 24 Oct 2019 14:44:39 GMT):

Screenshot from 2019-10-24 19-44-14.png

rmscott (Thu, 24 Oct 2019 15:37:49 GMT):
Has joined the channel.

spmcnamara (Thu, 24 Oct 2019 15:41:29 GMT):
I all. Still struggling to get things working after enabling CouchDB. It appears that something is wrong with my peer command from the CLI host as the peer rejects the request due to a MSP ID mismatch. I've checked to make sure that `CORE_LEDGER_STATE_STATEDATABASE=CouchDB` is set on the CLI host, but still get the following: ```[protoutils] ValidateProposalMessage -> WARN 1a06 channel []: MSP error: expected MSP ID myorgMSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB, received myorgMSP```

spmcnamara (Thu, 24 Oct 2019 15:42:22 GMT):
What needs to be done to have the MSP ID include the CouchDB modifier?

spmcnamara (Thu, 24 Oct 2019 15:43:21 GMT):
It also seems odd that a client would need to know that the peer is CouchDB enabled.

spmcnamara (Thu, 24 Oct 2019 16:09:33 GMT):
I got this to work by setting `CORE_PEER_LOCALMSPID="myorgMSP - CORE_LEDGER_STATE_STATEDATABASE=CouchDB"` but is that really correct?

spmcnamara (Thu, 24 Oct 2019 16:10:39 GMT):
Argh... I think I see what happened... extra tab in the YAML file. I think I might hate YAML.

Swhit210 (Thu, 24 Oct 2019 17:56:00 GMT):
Is it possible to create a second channel after your network is already up and running?

CT123 (Thu, 24 Oct 2019 20:26:28 GMT):
@Swhit210 see if this gives you what you need https://fabric-sdk-node.github.io/release-1.4/tutorial-channel-create.html

knagware9 (Fri, 25 Oct 2019 05:21:53 GMT):
you can update affiliation via sdk or directly updating ca-config.yaml file. check this https://stackoverflow.com/questions/48836728/unable-to-enroll-user-in-new-org-added-to-balance-transfer-sample

abel23 (Fri, 25 Oct 2019 05:55:05 GMT):
Thank you! I have gotten the idea

joseph-d-p (Fri, 25 Oct 2019 06:31:26 GMT):
Hi all, I have two cli docker containers. The first one was where I created the channel which obviously contains the `"mychannel"` genesis block. The `peer0.org1.example.com` joined "`mychannel"` using this block. Now, using the second cli docker container, I want to have `peer0.org2.example.com` join `"mychannel"`. However, `mychannel.block` doesn't exist. Only `genesis.block` exist in `channel-artifacts`. Is there a way for the second container join the channel using the existing genesis block?

joseph-d-p (Fri, 25 Oct 2019 06:31:26 GMT):
Hi all, Struggling to have other contains join the existing channel. Here's the scenario: I have two cli docker containers. The first one was where I created the channel which obviously contains the `"mychannel"` genesis block. The `peer0.org1.example.com` joined "`mychannel"` using this block. Now, using the second cli docker container, I want to have `peer0.org2.example.com` join `"mychannel"`. However, `mychannel.block` doesn't exist. Only `genesis.block` exist in `channel-artifacts`. Is there a way for the second container join the channel using the existing genesis block?

joseph-d-p (Fri, 25 Oct 2019 06:31:26 GMT):
Hi all, Struggling to have other docker containers join the existing channel. Here's the scenario: I have two cli docker containers. The first one was where I created the channel which obviously contains the `"mychannel"` genesis block. The `peer0.org1.example.com` joined "`mychannel"` using this block. Now, using the second cli docker container, I want to have `peer0.org2.example.com` join `"mychannel"`. However, `mychannel.block` doesn't exist. Only `genesis.block` exist in `channel-artifacts`. Is there a way for the second container join the channel using the existing genesis block?

umapoyo (Fri, 25 Oct 2019 07:30:51 GMT):
Has joined the channel.

santmukh (Fri, 25 Oct 2019 08:16:42 GMT):
Dear All, required help. I'm able to create channel and invoke the chaincode using RAFT ordering service. Now I want to add another Organization into the existing channel. I also upgraded the consortium and channel. It was done without any error and was also able to join the channel. Attached herewith the config files. Please find the error below:

santmukh (Fri, 25 Oct 2019 08:17:02 GMT):
[2019-10-24 09:34:38.050] [ERROR] Join-Channel - Failed to joined peer to the channel swapchannel [2019-10-24 09:34:38.050] [ERROR] Join-Channel - Failed to join all peers to channel. cause:Failed to joined peer to the channel swapchannel Inside the same peer I got the error 2019-10-24 09:34:38.045 UTC [endorser] callChaincode -> INFO 022 [][b8e9f45a] Entry chaincode: name:"cscc" 2019-10-24 09:34:38.048 UTC [endorser] callChaincode -> INFO 023 [][b8e9f45a] Exit chaincode: name:"cscc" (2ms) 2019-10-24 09:34:38.048 UTC [endorser] ProcessProposal -> ERRO 024 [][b8e9f45a] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: b8e9f45ab01d86a76e9f6427ec0da4fb2dc940e4f6b060a0c49c294a32efcb73 2019-10-24 09:34:38.048 UTC [comm.grpc.server] 1 -> INFO 025 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=104.211.89.242:48362 grpc.code=OK grpc.call_duration=4.193058ms

santmukh (Fri, 25 Oct 2019 08:17:30 GMT):
Config files are attached herewith.

santmukh (Fri, 25 Oct 2019 08:18:03 GMT):

RaftConfigFiles.zip

santmukh (Fri, 25 Oct 2019 08:18:03 GMT):

RaftConfigFiles.zip

santmukh (Fri, 25 Oct 2019 08:18:03 GMT):

RaftConfigFiles.zip

cenkozan (Fri, 25 Oct 2019 08:19:12 GMT):
Hey all. Looking into development of fabric with Node. Can I use TypeScript on the BE? Will this cause me problems in the future? Thanks in advance.

alkiimista (Fri, 25 Oct 2019 10:24:41 GMT):
Hello, does anyone else have the issue with stub.getTxTimestamp() returning nothing? Yesterday it was returning values fine and today it's not working anymore

gazelle (Fri, 25 Oct 2019 10:26:37 GMT):
I'm getting `Could not meet endorsement policy for chaincode` on invoke and `Undefined contract method called` on queries on my deploy of my first chaincode. How to debug?

gazelle (Fri, 25 Oct 2019 11:13:47 GMT):
I had the path wrong in the contract creation step. Question remains, how would one normally debug this? How to see what commands are available?

josephboyle (Fri, 25 Oct 2019 20:39:23 GMT):
Has joined the channel.

noorkhan_92 (Sat, 26 Oct 2019 09:45:17 GMT):
Has joined the channel.

noorkhan_92 (Sat, 26 Oct 2019 09:45:18 GMT):
Hello Everyone, does anyone face this problem.``` ``` module.js:549 throw err; ^ Error: Cannot find module 'fabric-network' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) while running fabcar network `node enrollAdmin.js` shows this error

n-lam (Sat, 26 Oct 2019 12:56:08 GMT):
Has joined the channel.

n-lam (Sat, 26 Oct 2019 12:57:23 GMT):
Hi everyone, I have the following error when I attempt to run the commercial-paper sample: ``` # wait for Hyperledger Fabric to start # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT= export FABRIC_START_TIMEOUT=10 #echo ${FABRIC_START_TIMEOUT} sleep ${FABRIC_START_TIMEOUT} # Create the channel docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx Error response from daemon: Container ca6814bb95a740c5d0971e81814d50e9123cd9fdaacc9659a23bfcdf5ad40da3 is not running Exiting:Failed to start Fabric ``` would anyone happen to have any ideas of what might've gone wrong, or where to look further into why it's not running?

SamYuan1990 (Sun, 27 Oct 2019 06:47:24 GMT):
Hi , I am going to make a CR for FAB-15695, but I got error when making the CR, ! [remote rejected] HEAD -> refs/for/master (prohibited by Gerrit: project state does not permit write)

tdonovic (Mon, 28 Oct 2019 06:25:05 GMT):
Hey, using byfn, with default configuration, when I run some chaincode, it only runs on one container, not on each peer in the network. What configuration do I need to change to have it execute in all orgs, on all peers?

klkumar369 (Mon, 28 Oct 2019 06:33:51 GMT):
Hi all, I want to generate a random id, save it to couch db and fetch it on the UI screen. I am able to generate it in my chaincode and saving to couch db. The problem here is while I fetch the record, I get endorsement failure. This is because my chaincode executes on multiple peers as part of endorsement policy and the results are not same from all the peers (random id generates unique in each peer). How can I overcome this issue? Or is there any other way to generate random id?

generak (Mon, 28 Oct 2019 08:36:29 GMT):
Chaincode should return deterministic results, i.e. for any given input, all peers should return the same result. Random number generation definitely shouldn't be done in chaincode - can you generate the UUID/random ID prior to submitting the transaction?

generak (Mon, 28 Oct 2019 08:37:31 GMT):
Most likely need to adjust the endorsement policy - it probably only runs on one peer as that's all that's needed to endorse the transaction.

klkumar369 (Mon, 28 Oct 2019 09:00:12 GMT):
I want to generate a random ID which should be part of my record. So when I fetch using that random ID (from the client side), I should be able to get complete record and hence it should not throw endorsement failure. I think I have to generate the random ID off-chain and pass it to the chaincode.

biligunb (Mon, 28 Oct 2019 09:26:09 GMT):
Hi guys. I am trying out HLF v2.0.0-alpha And I am stuck at approving new chaincode at org. (instantiate chaincode) I used fabric-samples/basic-network to create (1 peer 1 orderer 1 ca 1 couch + cli) And running the chaincode package, install, approve for org from the cli container. However I have ``` Error: failed to retrieve broadcast client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded ``` this error. Does anyone have similar issue?

biligunb (Mon, 28 Oct 2019 09:26:59 GMT):

biligunb - approveformyorg

generak (Mon, 28 Oct 2019 10:51:28 GMT):
Yeah, that's what I'm saying. You need to generate it off chain and pass it as a parameter.

klkumar369 (Mon, 28 Oct 2019 11:45:38 GMT):
Thank you!

alkiimista (Mon, 28 Oct 2019 12:08:04 GMT):
Hi, I'm currently having an issue with retrieving a transaction timestamp. Every time I try to call the function it returns nothing. Is this a problem with the IBM extension?

jvi (Mon, 28 Oct 2019 15:50:35 GMT):
Hi everybody, I'm using Hyperledger Fabric 1.4.3 with private data collections and I would like to know how is computed the private data hash? I'm using couchDb web explorer to visualize the data in private data collections. I'm storing the following informations in private data collection : key=IDC_VA_CA_1 and value=26e4d281 If I check this private data in one of the organization of the private collection, I can see these values. However, if i check the data in an organization which is not a member of the private collection, I see the hash of the key and the hash of the value (according to hyperledger fabric documentation) For the key 'IDC_VA_CA_1 ', the corresponding hash is : ga3gczKo5oH6t/czUIJyok4lJvJ+Wf8x2xnUiQY+Ln4= (looks like a base64 string) And for the value '26e4d281', the corresponding hash is something weird as: ITû }«½f$)â‰ü°ODtÈ=*=x­èy©À (does not look like a sha256 hash) So can you tell me how this hash is computed and how i can compute this hash by myself?

akshat_shah (Mon, 28 Oct 2019 16:36:12 GMT):
Has joined the channel.

akshat_shah (Mon, 28 Oct 2019 16:36:13 GMT):
Hi there, I was having a look at FabricCAServices.register(request) - why does the request allow attributes to have ecert: false - what does that _actually_ do

VadimInshakov (Mon, 28 Oct 2019 21:28:44 GMT):
ELI5 please. Why ACL policies in example https://github.com/hyperledger/fabric/blob/release-1.2/sampleconfig/configtx.yaml specified in different places (in "organizations" section and in "application")? What is the difference? In which cases which one should i use?

VadimInshakov (Mon, 28 Oct 2019 21:28:44 GMT):
ELI5 please. Why ACL policies in example https://github.com/hyperledger/fabric/blob/release-1.2/sampleconfig/configtx.yaml specified in different places (in "organizations", "orderer" and "application" sections)? What is the difference? In which cases which one should i use?

santmukh (Tue, 29 Oct 2019 05:05:11 GMT):
Dear All, required help. I'm able to create channel and invoke the chaincode using RAFT ordering service. Now I want to add another Organization into the existing channel. I also upgraded the consortium and channel. It was done without any error and was also able to join the channel. Attached herewith the config files. Please find the error below. [2019-10-24 09:34:38.050] [ERROR] Join-Channel - Failed to joined peer to the channel swapchannel [2019-10-24 09:34:38.050] [ERROR] Join-Channel - Failed to join all peers to channel. cause:Failed to joined peer to the channel swapchannel Inside the same peer I got the error 2019-10-24 09:34:38.045 UTC [endorser] callChaincode -> INFO 022 [][b8e9f45a] Entry chaincode: name:"cscc" 2019-10-24 09:34:38.048 UTC [endorser] callChaincode -> INFO 023 [][b8e9f45a] Exit chaincode: name:"cscc" (2ms) 2019-10-24 09:34:38.048 UTC [endorser] ProcessProposal -> ERRO 024 [][b8e9f45a] simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid: b8e9f45ab01d86a76e9f6427ec0da4fb2dc940e4f6b060a0c49c294a32efcb73 2019-10-24 09:34:38.048 UTC [comm.grpc.server] 1 -> INFO 025 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=104.211.89.242:48362 grpc.code=OK grpc.call_duration=4.193058ms Config files are attached herewith.

santmukh (Tue, 29 Oct 2019 05:07:34 GMT):

RaftConfigFiles.zip

SamYuan1990 (Tue, 29 Oct 2019 05:21:09 GMT):
Hi, during go test for https://github.com/hyperledger/fabric-chaincode-go I meet error msg below, can anyone help? github.com/hyperledger/fabric-protos-go/msp ../../../fabric-protos-go/msp/identities.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 ../../../fabric-protos-go/msp/msp_config.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 ../../../fabric-protos-go/msp/msp_principal.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 FAIL github.com/hyperledger/fabric-chaincode-go/pkg/cid [build failed]

SamYuan1990 (Tue, 29 Oct 2019 05:21:09 GMT):
Hi, during go test for https://github.com/hyperledger/fabric-chaincode-go I meet error msg below for master branch, can anyone help? github.com/hyperledger/fabric-protos-go/msp ../../../fabric-protos-go/msp/identities.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 ../../../fabric-protos-go/msp/msp_config.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 ../../../fabric-protos-go/msp/msp_principal.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3 FAIL github.com/hyperledger/fabric-chaincode-go/pkg/cid [build failed]

hariomgoyal (Tue, 29 Oct 2019 06:55:09 GMT):
Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

hariomgoyal (Tue, 29 Oct 2019 06:55:21 GMT):
I am using hyperledger-fabric 1.4

hariomgoyal (Tue, 29 Oct 2019 06:57:17 GMT):
this is the setup for first-network

hariomgoyal (Tue, 29 Oct 2019 06:57:57 GMT):
during channel creation "peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx"

hariomgoyal (Tue, 29 Oct 2019 06:57:57 GMT):
during channel creation "peer channel create -o orderer.integra.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx"

hariomgoyal (Tue, 29 Oct 2019 06:58:07 GMT):
without tls

hariomgoyal (Tue, 29 Oct 2019 07:07:35 GMT):
here is the orderer logs: [channel: mychannel] Rejecting broadcast of config message from 172.26.0.5:58472 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied 2019-10-29 07:06:10.699 UTC [comm.grpc.server] 1 -> INFO 00b streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.26.0.5:58472 grpc.code=OK grpc.call_duration=3.727067ms

Taaanos (Tue, 29 Oct 2019 08:01:51 GMT):
Looks like a dependency issue, maybe the vendor is not populated correctly? @SamYuan1990

Taaanos (Tue, 29 Oct 2019 08:01:51 GMT):
Looks like a dependency issue, maybe the vendor is not populated correctly?

Taaanos (Tue, 29 Oct 2019 08:13:35 GMT):
Hi, I get the following error: `{"code":3000,"message":"[Incorrect Format]timestamp format is invalid."}` All containers are in the same timezone. Any insights or pointers?

liujianglin1 (Tue, 29 Oct 2019 09:31:49 GMT):
hi,i meet a question when i try to deployment fabric on multi machines.

liujianglin1 (Tue, 29 Oct 2019 09:35:42 GMT):
hi,i meet a question when i try to deployment fabric on multi machines.When i try to instantiation chaincode it say context deadline exceedeed.this is my environment.can anybody help me

bertschneider (Tue, 29 Oct 2019 10:16:13 GMT):
Has joined the channel.

PraharshaBejju (Tue, 29 Oct 2019 10:19:32 GMT):
I am trying to setup gateway module from fabric-network but I am unable to getNetwork for a specific channelName. Can anyone help me in this?

bertschneider (Tue, 29 Oct 2019 10:29:36 GMT):
Hi, could someone help me with the Helm Orderer Chart? I try to create a 3 node etcd orderer cluster but something is wrong with the tls configuration and the handshake fails (TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.7:50756). Could someone provide the correct paths for the secrets configuration?

liujianglin1 (Tue, 29 Oct 2019 10:53:28 GMT):

first-network.zip

SamYuan1990 (Tue, 29 Oct 2019 12:21:29 GMT):
hi @Taaanos , I found the chaincode-go seems depend on a not exists version of fabric-protos-go https://github.com/hyperledger/fabric-chaincode-go/blob/master/go.sum#L18

SamYuan1990 (Tue, 29 Oct 2019 12:47:09 GMT):
ok, fixed

trevoro1 (Tue, 29 Oct 2019 13:19:43 GMT):
what is the best way to share keys generated by the CA?

UdkReddy (Tue, 29 Oct 2019 13:42:16 GMT):
Could anyone please provide me nodejs chaincode privatedata tutorials or some examples

AntonyZanetti (Tue, 29 Oct 2019 13:59:21 GMT):
Has joined the channel.

AntonyZanetti (Tue, 29 Oct 2019 13:59:22 GMT):
Hello everyone - Does someone have a good tutorial/resource for deploying a fabric network on production environment? Thanks!

marinkovicvlado (Tue, 29 Oct 2019 14:05:23 GMT):
Hi Antony, that is the great question...however not many good resources on that matter... the closest thing our team got was using Kubernetes with Helm for deployment and jobs for CLI configurations and network setup... Some hints here: http://www.think-foundry.com/hyperledger-fabric-deployment-using-helm-chart/

AntonyZanetti (Tue, 29 Oct 2019 14:07:12 GMT):
Thanks!

Taaanos (Tue, 29 Oct 2019 14:39:19 GMT):
Do `fabric-ccenv` containers have commands like `fabric-peer` has `peer`?

Bolzo 1 (Tue, 29 Oct 2019 15:30:03 GMT):
Has joined the channel.

spmcnamara (Tue, 29 Oct 2019 16:34:33 GMT):
Hi guys. I'm forgetting something... If I register a new identity and include custom attributes, I'm not seeing those attributes included in the certificate. What do I need to set in order to include custom attrs?

spmcnamara (Tue, 29 Oct 2019 16:34:58 GMT):
(using HLF CA server)

anweiss (Tue, 29 Oct 2019 17:24:24 GMT):
Has left the channel.

spmcnamara (Tue, 29 Oct 2019 17:42:43 GMT):
^^ If anyone else is trying to do this, you need to add the `:ecert` suffix to the custom attributes.

caduellery (Tue, 29 Oct 2019 19:14:20 GMT):
Has joined the channel.

shoumik (Tue, 29 Oct 2019 22:21:42 GMT):
I have a question and I have posted it on stackoverflow . Hope get some help . https://stackoverflow.com/questions/58616145/how-to-encrypt-and-decrypt-using-ecdsa-private-key-and-public-key-generated-in-h

BlockchainExpert (Wed, 30 Oct 2019 03:25:42 GMT):
Has joined the channel.

BlockchainExpert (Wed, 30 Oct 2019 03:25:43 GMT):
hey does anyone know, how to setup fabric on multiple machine?

noorkhan_92 (Wed, 30 Oct 2019 06:41:22 GMT):
Hello Everyone i am facing this error if anyone have solution please. link to stackoverflow question i already asked https://stackoverflow.com/q/58619509/5563585

marinkovicvlado (Wed, 30 Oct 2019 08:04:26 GMT):
If you are using Kubernetes that should be easy - you can set "nodeName" in .yaml to match the name of your physical or virtual machine name... However, those VMs must be joined to your Kubernetes cluster...

marinkovicvlado (Wed, 30 Oct 2019 08:05:48 GMT):
seems like you are missing dependencies...run ```npm install``` also check your packages.json for fabric libraries

noorkhan_92 (Wed, 30 Oct 2019 08:12:47 GMT):
@marinkovicvlado Yes i was missing dependencies and i tried `npm install` many times but didn't succeed. after further research i found that we need to run `npm install` in fabcar directory not in javascript directory.

BlockchainExpert (Wed, 30 Oct 2019 09:00:07 GMT):
but how??? any tutorials??

karthiknvlr (Wed, 30 Oct 2019 10:03:17 GMT):
Has joined the channel.

bertschneider (Wed, 30 Oct 2019 11:13:22 GMT):
Hi again, I want to expose an orderer in kubernetes by an ingress rule. Is that possible? As far as I understand it ingress works by distinguishing the hostname for routing and that's only possible in HTTP but the orderers talks with grpc. Am I missing something?

bertschneider (Wed, 30 Oct 2019 11:14:19 GMT):
When I try to connect to the exposed orderer via CLI I get the error message: Error: failed to create deliver client: orderer client failed to connect to :80: failed to create new connection: context deadline exceeded

ikar (Wed, 30 Oct 2019 11:21:01 GMT):
Has left the channel.

mastersingh24 (Wed, 30 Oct 2019 11:36:44 GMT):
Standard ingress will not work ... your best bet is to use either a load balancer or if you are using the Nginx ingress you can use it's SNI-based routing option: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#ssl-passthrough If you are using Openshift or OKD, you can also use SNI-based Routes rather than Ingress: https://docs.openshift.com/container-platform/3.11/architecture/networking/routes.html#passthrough-termination

tegie (Wed, 30 Oct 2019 11:58:59 GMT):
Has joined the channel.

tegie (Wed, 30 Oct 2019 11:59:22 GMT):
Hi all, beginner here. I would like to ask what is the advantage when we are using peer in `dev` mode or `net` mode in docker on local machine? In both cases, when I am developing chaincode I have to install chaincode with higher version and then call `peer upgrade` method to work with updated chaincode version?

bertschneider (Wed, 30 Oct 2019 12:03:27 GMT):
Thx! I will have a look at the links.

saikumar3349 (Wed, 30 Oct 2019 12:04:11 GMT):
hello everyone. can we deregister the registered user from fabric-ca server?

Swhit210 (Wed, 30 Oct 2019 13:24:49 GMT):
I think the closest would be to revoke the users certificate using fabric-ca-client revoke and then generate a Certificate Revocation List CRL using fabric-ca-client gencrl and put that in the crl folder within your msp folder

Swhit210 (Wed, 30 Oct 2019 13:26:41 GMT):
Do you mean run multiple nodes representing different orgs on different machines? I have done this without Kubernetes, just Docker and 2+ Azure VMs

Adryx86 (Wed, 30 Oct 2019 14:17:53 GMT):
Hi to everyone.. i'm trying to get an answer about this error: blockchain-node-server | 2019-10-30T14:04:35.089Z - warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer1.org1.pomodoro.it:7051" failed: message=Failed to connect before the deadline URL:grpcs://peer1.org1.pomodoro.it:7051, stack=Error: Failed to connect before the deadline URL:grpcs://peer1.org1.pomodoro.it:7051 blockchain-node-server | at checkState (/tmp/build/node_modules/fabric-client/node_modules/grpc/src/client.js:835:16), connectFailed=true blockchain-node-server | 2019-10-30T14:04:35.090Z - error: [RoundRobinQueryHandler]: evaluate: message=No peers available to query. Errors: ["Failed to connect before the deadline URL:grpcs://peer0.org1.pomodoro.it:7051","Failed to connect before the deadline URL:grpcs://peer1.org1.pomodoro.it:7051"], stack=FabricError: No peers available to query. Errors: ["Failed to connect before the deadline URL:grpcs://peer0.org1.pomodoro.it:7051","Failed to connect before the deadline URL:grpcs://peer1.org1.pomodoro.it:7051"] blockchain-node-server | at RoundRobinQueryHandler.evaluate (/tmp/build/node_modules/fabric-network/lib/impl/query/roundrobinqueryhandler.js:43:17) blockchain-node-server | at process._tickCallback (internal/process/next_tick.js:68:7), name=FabricError I'm load testing my blockchain and i'm facing some problems.. The test is done simulating the enrollment of 300 identities and after the enroll, for each identity, i perform a query transaction. At the current version i'm getting an avarage of 6% of enrolls failure and another avarage of 9% of query failure requests. The network is made by 2 orgs, with 2 peers and 1 orderer each org. Maybe is a configuration problem (timeouts?) or it's simple a technical limit (need to scale up? peers? ).. i don't know exactly what is happening behind the scenes. My expectation about this is the client should wait for a "free" peer (obviously with a reasonable configurable timeout). What am i wrong ? Thanks

Swhit210 (Wed, 30 Oct 2019 17:38:37 GMT):
I am getting "channel registration failed", same error identified in these two JIRA issues: https://jira.hyperledger.org/browse/FAB-14741, https://jira.hyperledger.org/browse/FAB-14638. Any advice? The issues are closed.

Swhit210 (Wed, 30 Oct 2019 18:01:40 GMT):
I can deploy a go chaincode, but I am unable to deploy a node chaincode

VadimInshakov (Wed, 30 Oct 2019 18:25:23 GMT):
ELI5 please. Why ACL policies in example https://github.com/hyperledger/fabric/blob/release-1.2/sampleconfig/configtx.yaml specified in different places (in "organizations", "orderer" and "application" sections)? What is the difference? In which cases which one should i use?

as20203 (Wed, 30 Oct 2019 18:51:02 GMT):
Has joined the channel.

as20203 (Wed, 30 Oct 2019 18:51:04 GMT):
I would like to know how the peers in endorsement policies verify transactions? Is it done manually from cli or automatically by the program

as20203 (Wed, 30 Oct 2019 18:51:31 GMT):
moreover If its done automatically what is the purpose of these policies they will approve all the transactions.

delao (Wed, 30 Oct 2019 18:59:41 GMT):
Endorsement policy (as better described here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/endorsementpolicies.html#endorsement-policies) guarantees that the transaction proposal meets the business requirements written on the smart contract held by the responsible parties. They will only approve the transaction if your proposal meets the requirement on the smart contract

Swhit210 (Wed, 30 Oct 2019 20:46:57 GMT):
I am working on learning Go and I am unsure about how to get the ProposalBytes value out of the *peer.SignedProposal returned from stub.GetSignedProposal(). Any advice?

razasikander (Thu, 31 Oct 2019 04:51:54 GMT):
load distribution

HiteshSharma (Thu, 31 Oct 2019 05:42:21 GMT):
Has joined the channel.

VadimInshakov (Thu, 31 Oct 2019 06:18:04 GMT):
Does anyone know anything about the ACL? I also created stackoverflow question here: https://stackoverflow.com/questions/58602843/hyperledger-fabric-acl

Marina1806 (Thu, 31 Oct 2019 06:19:50 GMT):
Has joined the channel.

Marina1806 (Thu, 31 Oct 2019 06:19:51 GMT):
I read about the problem of blockchain interoperability that many researches are trying to solve. Is this problem only being faced between heterogeneous blockchain networks ? We don’t need to connect homogeneous networks like fabric to fabric network ?

RuchitaTomar (Thu, 31 Oct 2019 06:26:59 GMT):
Has joined the channel.

RuchitaTomar (Thu, 31 Oct 2019 06:27:01 GMT):
Do we have any way so we could achieve approx 20000 TPS in raft based fabric network ?

RuchitaTomar (Thu, 31 Oct 2019 06:27:24 GMT):
Or any resource ?

MohammedR (Thu, 31 Oct 2019 07:14:14 GMT):
Can we add capabilities to channel if image version in 1.4.0 and capabilities that need to be added are 1.4.2 ?

soumyanayak (Thu, 31 Oct 2019 08:56:42 GMT):
Hi Team, While pulling the orderer image i am getting the below issue . Any idea ? ```Pulling orderer3 (hyperledger/fabric-orderer:1.4.3)... ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authori ```

SamYuan1990 (Thu, 31 Oct 2019 09:25:51 GMT):
cloud someone help give me a list of environment variables for invoke chaincode with an Idemix type MSP via peer cli? I know CORE_PEER_LOCALMSPTYPE=idemix, CORE_PEER_LOCALMSPID,CORE_PEER_MSPCONFIGPATH what's else?

Bolzo 1 (Thu, 31 Oct 2019 10:34:44 GMT):
Hi, I'm using the java sdk to send transaction to my fabric network.. Sometimes i receive a proposal timeout from a peer and its logs say this: ```Error reading from channel, cause was: NOT_FOUND ``` what this error means?

ddhulla (Thu, 31 Oct 2019 11:36:33 GMT):
Has joined the channel.

ddhulla (Thu, 31 Oct 2019 11:36:34 GMT):
Hi, Trying to setup Prometheus to monitor the HLF containers, however, getting below error in prometheus: Get http://orderer.example.com:7050/metrics: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02" Get http://peer0.org1.example.com:7051/metrics: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02" In the log file or orderer and peer0, it gives below TLS error: 2019-10-31 11:00:08.305 UTC [core.comm] ServerHandshake -> ERRO 21d9 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.22.0.8:33190 2019-10-31 11:00:18.305 UTC [core.comm] ServerHandshake -> ERRO 21da TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.22.0.8:33208 Seems Prometheus is unable to connect with the Docker container when it tries to scrape. Please share any suggestions to overcome this issue.

barney2k7 (Thu, 31 Oct 2019 11:47:50 GMT):
The operations service runs on a separate port, not on the orderers/peers grpc port (7050/7051)

HarisC (Thu, 31 Oct 2019 11:53:08 GMT):
Has joined the channel.

mastersingh24 (Thu, 31 Oct 2019 12:39:02 GMT):
and in any case you are trying to make an http connection to TLS-enabled endpoint as well

Swhit210 (Thu, 31 Oct 2019 17:19:46 GMT):
Does anyone have good examples of working with stub.GetSignedProposal() using the Go Shim? I am trying to access the mspid associated with the proposal. Using the Node Shim it was as simple as accessing: `stub.signedProposal.proposal.header.signature_header.creator.mspid`

negupta (Thu, 31 Oct 2019 17:47:21 GMT):
Fabric-ccenv is used to build he chaicode container that is invoked from the peer. Not sure if you need to exec inside the peer.

vieiramanoel (Thu, 31 Oct 2019 19:04:51 GMT):
Hey guys is there any way to change peer's go version? Even if it's rebuilding image...

rpocase (Thu, 31 Oct 2019 20:07:43 GMT):
Has joined the channel.

rpocase (Thu, 31 Oct 2019 20:07:44 GMT):
I was coming in to look for some guidance on production fabric use cases. The biggest challenge to me seems to be distributing new crypto material/adding organizations/peers. Are there any whitepapers available that discuss people actually doing this? I've seen some toy (incomplete) examples of people using Hashicorp Vault for dynamic crypto material, but that isn't really a full solution

negupta (Thu, 31 Oct 2019 20:58:06 GMT):
HI @rpocase, in a production use case each org would make their own crypto and be in charge of maintaining their own material. You can use a fabric ca, or you can bring your use your own ca to create the crypto and create your org MSPs

rpocase (Thu, 31 Oct 2019 21:02:23 GMT):
Sure - that was my assumption. Even for a single organization, this sounds like a tremendous operational burden to add just a single new peer or start communicating with a new organization. Are there patterns to make the crypto generation (including network config files) more maintainable?

AllanHansen (Fri, 01 Nov 2019 00:28:15 GMT):
Has joined the channel.

umapoyo (Fri, 01 Nov 2019 01:03:27 GMT):
Hi all, I would like to ask about golang version supported in fabric v1.4.3. According to [Fabric documentation](https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html), golang v 1.11.x is required. However, I'm using golang v1.13 and looks like it's working properly. Is there anything wrong without using v1.11.x?

Taaanos (Fri, 01 Nov 2019 09:20:06 GMT):
I see, thank you. Is there any resource describing the data flow at a lower level - like the transaction flow - but with containers created etc.

sudijovski (Fri, 01 Nov 2019 13:25:29 GMT):
Hi all, When fetching non config blocks using "peer channel fetch" is it possible to include the sent transient data too? Because, even tho i see the Transient key in the proposal request (once i decode the block as json) i can't see any data there. Do i need to decode it as something other than common.Block or?

mastersingh24 (Fri, 01 Nov 2019 14:30:01 GMT):
transient data is just that ... transient ... it will never be persisted (which means it won't be included in the transaction sent to the orderer and hence to the peers)

braduf (Fri, 01 Nov 2019 18:03:50 GMT):
Hi all, I am having some worries about the endorsement policies when using private data collections. In the documentation it says the following: "To support read/write transactions, the private data distribution policy must define a broader set of organizations than the chaincode endorsement policy, as peers must have the private data in order to endorse proposed transactions. For example, in a channel with ten organizations, five of the organizations might be included in a private data collection distribution policy, but the endorsement policy might call for any three of the organizations to endorse." And i understand why it is needed, but it seems impractical to me since in most cases it is private data between a select group, so the number of organizations in a private data collection will be less than the ones involved in other (public) transactions, so it is difficult to use private data collections and have a strong endorsement policy in general. What strategy can be applied to solve this? And are you thinking about a possibility to split private data endorsement and public data endorsement of a transaction with transient in some

braduf (Fri, 01 Nov 2019 18:03:50 GMT):
Hi all, I am having some worries about the endorsement policies when using private data collections. In the documentation it says the following: "To support read/write transactions, the private data distribution policy must define a broader set of organizations than the chaincode endorsement policy, as peers must have the private data in order to endorse proposed transactions. For example, in a channel with ten organizations, five of the organizations might be included in a private data collection distribution policy, but the endorsement policy might call for any three of the organizations to endorse." And i understand why it is needed, but it seems impractical to me since in most cases it is private data between a select group, so the number of organizations in a private data collection will be less than the ones involved in other (public) transactions, so it is difficult to use private data collections and have a strong endorsement policy in general. What strategy can be applied to solve this? And are you thinking about a possibility to split private data endorsement and public data endorsement of a transaction with transient in some next releases or will that be completely impossible?

braduf (Fri, 01 Nov 2019 18:06:35 GMT):
I think they mean you need at least 1.11, since 1.13 is newer than 1.11 you are good!

antoniovassell (Fri, 01 Nov 2019 23:03:30 GMT):
Hi all, is there anyone that could answer this question? https://stackoverflow.com/questions/58666805/how-to-configure-deadline-time-for-grpc-in-connection-profile-for-hyperledger-fa

antoniovassell (Fri, 01 Nov 2019 23:03:46 GMT):
Happy to provide more details if needed.

tdonovic (Sat, 02 Nov 2019 06:29:23 GMT):
Howdy, having issues with upgrade not giving me a newer version of my chaincode using byfn. Additionally, my chaincode only executes on one node, is there some way to force it to run on both orgs in the network?

UdkReddy (Sat, 02 Nov 2019 13:05:28 GMT):
Hello i am trying to setup kafka enabled multihost network and setup the nodes in 4 servers, while i was trying to create a channel i was getting this error Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later. Could anyone please tell what could be the reason for this error

mastersingh24 (Sat, 02 Nov 2019 13:10:54 GMT):
Seems like your Kafka cluster has not reached a steady state. But why are you using Kafka now anyway? You should really be using Raft

UdkReddy (Sat, 02 Nov 2019 13:15:54 GMT):
So will that kafka cluster reach to a steady after some time or is it caused due to mis-cofiguration? Could you please share any tutorial for setting up multihost network with kafka mechanism

mastersingh24 (Sat, 02 Nov 2019 13:19:13 GMT):
We don't provide any docs on actually setting up Kafka ... there's plenty of material out there on setting up Kafka clusters. I'd recommend using some of the Kafka utilities to check that your cluster is up and running before attempting to connect orderer nodes to the cluster. In terms of setting up the orderer with Kafka: https://hyperledger-fabric.readthedocs.io/en/release-1.4/kafka.html

mastersingh24 (Sat, 02 Nov 2019 13:20:57 GMT):
But I highly recommend that you move to Fabric 1.4.2 or later and use Raft-based ordering. We will deprecate the Kafka-based orderer in a future release and it is much simpler to operate a Raft-based orderer

UdkReddy (Sat, 02 Nov 2019 14:17:21 GMT):
We have created kafka-enabled multi host network following the document https://medium.com/@kctheservant/another-multi-node-setup-of-a-fabric-network-8d88e9b8d7c5., we were succesfully able to install chaincode on all 4 nodes however when we instantiated the chaincode on one node the instantiation should not reflected on all other nodes

UdkReddy (Sat, 02 Nov 2019 14:17:21 GMT):
We have created kafka-enabled multi host network following the document https://medium.com/@kctheservant/another-multi-node-setup-of-a-fabric-network-8d88e9b8d7c5., we were succesfully able to install chaincode on all 4 nodes however when we instantiated the chaincode on one node the instantiation doesn't reflect on other nodes.

UdkReddy (Sat, 02 Nov 2019 14:23:57 GMT):
The command peer chaincode instantiate -n chex2 -v 1.0 -C mychannel -c '{"Args":["init","a", "100", "b","200"]}' gives the following error: Error: error getting channel (mychannel) orderer endpoint: error bad proposal response 500: access denied for [GetConfigBlock][mychannel]: Failed evaluating policy on signed data during check policy on channel [mychannel] with policy [/Channel/Application/Readers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied]

UdkReddy (Sat, 02 Nov 2019 14:24:14 GMT):
Can somebody help here please

spmcnamara (Sun, 03 Nov 2019 03:12:33 GMT):
Can someone help me understand multi-channel configuration? During initialization, should each channel have it's own genesis block, or do they piggyback off the system channel genesis block? I'm trying to create them for each channel, but am getting `proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1`

spmcnamara (Sun, 03 Nov 2019 03:27:16 GMT):
I'm digging through the first-network example, and don't see where mychannel.block is actually created (but do see where it is used for the join)

spmcnamara (Sun, 03 Nov 2019 03:54:03 GMT):
So I can fetch the channel genesis block from the peer and then use that to join the channel, but am still unclear on how that was supposed to happen during the setup process. Any guidance is appreciated.

UdkReddy (Sun, 03 Nov 2019 10:01:27 GMT):
I've created a network with 3 org's, 2 peers each i was trying to add new peer in org1, i've updated crypto-config.json and increased peer count and then generated peer artifacts with cryptogen extend. everything worked fine and i've started the docker container,. But while i was trying to add the new peer to a channel it's throwing this error ```CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt``` Could anyone please help me with this

suyun (Sun, 03 Nov 2019 14:08:31 GMT):
Has joined the channel.

suyun (Sun, 03 Nov 2019 14:08:32 GMT):
The following is my understanding about cross channel in fabric: Orderer is responsible for block creation of all channels. Orderer has all channel's transaction A peer receives ordered state updates in the form of blocks from the ordering service and maintain the state and the ledger. So when one peer joins two or more channels, it have all the account information and world state of the channels. According to above example,does the peers can performe cross channel transactions by a simple smart contract in ledger and in world state? And how the other peers sync the cross channel data?

VadimInshakov (Sun, 03 Nov 2019 17:42:01 GMT):
Does anyone know anything about the ACL? I also created stackoverflow question here: https://stackoverflow.com/questions/58602843/hyperledger-fabric-acl

spmcnamara (Sun, 03 Nov 2019 19:11:59 GMT):
That doesn't look like an error message. Did you accidentally copy/paste the wrong thing?

as20203 (Sun, 03 Nov 2019 19:13:03 GMT):
so basically all the peers will run the same smart contract function i called and check if they get same result

spmcnamara (Mon, 04 Nov 2019 05:27:58 GMT):
I think I'm having a problem with including 3rd party libraries. I'm getting a bunch of errors like the following but don't understand where I've gone wrong: `cannot use util.CreateUtcTimestamp() (type *"github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp) as type *"mydomain.com/hlf/chaincode/license_service/vendor/github.com/golang/protobuf/ptypes/timestamp".Timestamp in argument to stub.setTxTimestamp`

spmcnamara (Mon, 04 Nov 2019 05:35:40 GMT):
I'm guessing I've managed to setup my vendor dependency file incorrectly, but am not sure exactly how. When issuing the govendor commands, what directory are you expected to be in? I did it from the directory that contains my chaincode.

spmcnamara (Mon, 04 Nov 2019 05:40:53 GMT):
Also, I'm assuming it's still correct that HLF v1.4 requires golang v1.11? I had to downgrade my system from golang v1.13 (or did I?)

spmcnamara (Mon, 04 Nov 2019 05:49:57 GMT):
My understanding is as follows (and hopefully is mostly, if not completely, correct). You can think of each "channel" as a separate chain, meaning it has it's own genesis block and chainfile for the channel. When a peer subscribes to a particular channel, it will then build a current copy of the chainfile. So once the peer subscribes to the channel, it will sync to the current state as well as receive new requests/updates from the orderer.

tanmoyk2 (Mon, 04 Nov 2019 05:59:47 GMT):
Has joined the channel.

tanmoyk2 (Mon, 04 Nov 2019 05:59:48 GMT):
Is there any tutorial/doc available on Raft massaging process during channel creation in Hyperledger-Fabric ?

hawkinggg (Mon, 04 Nov 2019 07:11:42 GMT):
Has joined the channel.

spmcnamara (Mon, 04 Nov 2019 07:12:39 GMT):
I completely purged all the govendor stuff and started over which has gotten me down to a single error: ```DynamicApplicationGroupFactory does not implement common.DynamicConfigGroupFactory (wrong type for DynamicConfigGroup method) have DynamicConfigGroup(*common.ConfigGroup) "mydomain.com/hlf/chaincode/license_service/vendor/github.com/golang/protobuf/proto".Message want DynamicConfigGroup(*common.ConfigGroup) "github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/proto".Message``` I'm don't have `github.com/golang/protobuf/proto` in my vendor directory, nor is it referenced in *vendor/vendor.json* so I'm not sure where it's coming from.

spmcnamara (Mon, 04 Nov 2019 07:12:39 GMT):
I'm getting an error on instantiation and I don't understand what is causing it: ```DynamicApplicationGroupFactory does not implement common.DynamicConfigGroupFactory (wrong type for DynamicConfigGroup method) have DynamicConfigGroup(*common.ConfigGroup) "mydomain.com/hlf/chaincode/license_service/vendor/github.com/golang/protobuf/proto".Message want DynamicConfigGroup(*common.ConfigGroup) "github.com/hyperledger/fabric/vendor/github.com/golang/protobuf/proto".Message``` I don't have `github.com/golang/protobuf/proto` in my vendor directory, nor is it referenced in *vendor/vendor.json* so I'm not sure where it's coming from. I'm not completely certain, but the issue might be due to the fact that my chaincode is trying to make use of *github.com/golang/protobuf/proto* but it also gets used under the covers of the HLF chaintool stuff. Would this be something that causes a problem, and if so how does one work around it?

spmcnamara (Mon, 04 Nov 2019 07:26:39 GMT):
I'm not completely certain, but the issue *might* be due to the fact that my chaincode is trying to make use of `github.com/golang/protobuf/proto` but it also gets used under the covers of the HLF chaintool stuff. Would this be something that causes a problem, and if so how does one work around it?

Adryx86 (Mon, 04 Nov 2019 08:49:33 GMT):
Hi, i'm trying to update the Orderer max batch size but i'm failing on authorizing the update action.. I signed the pb file as explained in the documentation (adding org3 to existing network) using the orderer msp admin certificate. It seems that user is not an admin so i think i have to tell to the orderer MSP that user is an admin.. Does anyone knows how to solve this ?

Fama 5 (Mon, 04 Nov 2019 10:05:29 GMT):
Hi all, what is difference between role type client and member.Because when register the user with *role.Type=Member*, i am unable to query the chaincode. get error `{Failed to evaluate transaction: FabricError: No peers available to query. Errors: ["2 UNKNOWN: access denied: channel [channelall] creator org [Org1MSP]"]} ` If i register the user with *role.Type=client* i can query the chain code. I am confused between member and client.

simran (Mon, 04 Nov 2019 10:46:04 GMT):

Screenshot from 2019-11-04 15-26-14.png

Adryx86 (Mon, 04 Nov 2019 11:10:52 GMT):
There is a way to get the cryptogen tool builded using the branch 1.4-release ?

Bolzo 1 (Mon, 04 Nov 2019 11:11:44 GMT):
Hi, I've deployed a multihost fabric network using a docker swarm.. It appears that there are some problem with CouchDB.. This is the log of a peer: ```panic: error during commit to txmgr: error handling CouchDB request. Error:not_found, Status Code:404, Reason:Database does not exist. goroutine 328 [running]: github.com/hyperledger/fabric/core/ledger/kvledger.(*kvLedger).CommitWithPvtData(0xc0025d9ce0, 0xc002a6e540, 0xc002ab60da, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger.go:418 +0xd5b github.com/hyperledger/fabric/core/committer.(*LedgerCommitter).CommitWithPvtData(0xc002d34a00, 0xc002a6e540, 0xc002ab60da, 0x35f, 0xbf681f7e82afa054) /opt/gopath/src/github.com/hyperledger/fabric/core/committer/committer_impl.go:95 +0x75 github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock(0xc00270c380, 0xc0004851c0, 0x0, 0x0, 0x0, 0x41, 0xc000014f00) /opt/gopath/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:282 +0x16a9 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock(0xc002cc21e0, 0xc0004851c0, 0x0, 0x0, 0x0, 0x3, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:810 +0xa2 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc002cc21e0) /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:598 +0x3d5 created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider /opt/gopath/src/github.com/hyperledger/fabric/gossip/state/state.go:284 +0x714``` Any suggestion about this error?

Taaanos (Mon, 04 Nov 2019 11:27:02 GMT):
looks like a dependency issue? Is your vendor correctly populated? @Bolzo 1

Taaanos (Mon, 04 Nov 2019 11:27:02 GMT):
looks like a dependency issue? Is your vendor correctly populated?

Bolzo 1 (Mon, 04 Nov 2019 11:30:10 GMT):
Thanks for the reply. Can you explain what is a vendor? Side note: I have 3 orgs each with 2 peers (each one using a couchdb container) but only the peers from only one organization manage to connect to the couchdb container

Bolzo 1 (Mon, 04 Nov 2019 11:32:56 GMT):
This is the log of a faulty couchdb container: ``` [notice] 2019-11-04T11:22:08.639933Z nonode@nohost <0.319.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:395) <= mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) [notice] 2019-11-04T11:22:13.640571Z nonode@nohost <0.319.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:395) <= mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134) [error] 2019-11-04T11:22:13.641482Z nonode@nohost emulator -------- Error in process <0.1434.0> with exit value: {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,395}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,370}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,86}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]} ```

Taaanos (Mon, 04 Nov 2019 11:33:33 GMT):
The vendor is your go dependency folder. I've had these kind of issues in the past and solved them by repopulating the vendor myself. Check this here with `govendor` or you could use `go mod vendor`

Taaanos (Mon, 04 Nov 2019 11:33:36 GMT):
https://gocodecloud.com/blog/2016/03/29/go-vendoring-beginner-tutorial/

Taaanos (Mon, 04 Nov 2019 11:35:22 GMT):
Yeah you get errors from fabric's repo

Bolzo 1 (Mon, 04 Nov 2019 11:36:10 GMT):
I'll try with govendor thx

Bolzo 1 (Mon, 04 Nov 2019 12:10:16 GMT):
I'm following the guide, but in my gopath i have no fabric folder

dhurkes (Mon, 04 Nov 2019 12:21:08 GMT):
Dear All, i am trying the fabcar sample application from the official documentation.. When i run the below command i get the following error node query.js Store path:/home/dell2/Documents/fabric-samples/fabcar/hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/dell2/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/dell2/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 Query has completed, checking results error from query = { Error: 14 UNAVAILABLE: Connect Failed at new createStatusError (/home/dell2/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/dell2/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 code: 14, metadata: Metadata { _internal_repr: {} }, details: 'Connect Failed' }

spmcnamara (Mon, 04 Nov 2019 12:27:56 GMT):
When you look at your docker environment, can you see the CouchDB instances running?

spmcnamara (Mon, 04 Nov 2019 12:29:46 GMT):
Is CORE_PEER_ADDRESS defined in your environment, and pointed at the appropriate peer?

Bolzo 1 (Mon, 04 Nov 2019 13:10:14 GMT):
Yes with `docker ps` i can see that containers are running

adarshaJha (Mon, 04 Nov 2019 13:14:00 GMT):
https://stackoverflow.com/questions/58694159/how-to-add-postgres-as-a-db-in-hyperledger-fabric-ca-using-sslmode-verify-ca-or

spmcnamara (Mon, 04 Nov 2019 13:35:40 GMT):
specifically the CouchDB containers? Can you connect to those containers directly?

spmcnamara (Mon, 04 Nov 2019 13:36:28 GMT):
And does the container name match the name of the host your peer is trying to connect to?

Bolzo 1 (Mon, 04 Nov 2019 13:42:20 GMT):
If "connect to those containers directly" means enter the containter using `docker exec` the answer is yes. And I'm pretty sire that the name match here's my docker-compose yalm file: ``` couchdb1: container_name: couchdb1 image: hyperledger/fabric-couchdb:0.4.15 # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode. environment: - COUCHDB_USER=couchdb - COUCHDB_PASSWORD=couchdbpw # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service, # for example map it to utilize Fauxton User Interface in dev environments. ports: - "5986:5986" networks: - fabric-net peer1.org1.mydomain.com: environment: - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5986 # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD # provide the credentials for ledger to connect to CouchDB. The username and password must # match the username and password set for the associated CouchDB. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=couchdb - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=couchdbpw depends_on: - couchdb1```

spmcnamara (Mon, 04 Nov 2019 13:44:24 GMT):
If you open up a shell on your peer, can you telnet to couchdb1:5986 ?

spmcnamara (Mon, 04 Nov 2019 13:46:10 GMT):
Also, what do you see in the logfile of the peer?

Bolzo 1 (Mon, 04 Nov 2019 13:50:31 GMT):
yes i can

spmcnamara (Mon, 04 Nov 2019 13:51:00 GMT):
OK. What do you see in the peer logs?

spmcnamara (Mon, 04 Nov 2019 13:51:33 GMT):
What do you see in the peer logs?

Bolzo 1 (Mon, 04 Nov 2019 13:52:58 GMT):
``` [couchdb] runWarmIndexAllIndexes -> ERRO 080 Error detected during WarmIndexAllIndexes(): error handling CouchDB request. Error:not_found, Status Code:404, Reason:missing github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchInstance).handleRequest /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1847 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).handleRequest /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1650 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).ListIndex /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1151 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).WarmIndexAllIndexes /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1324 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).runWarmIndexAllIndexes /opt/gopath/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1311 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 ```

spmcnamara (Mon, 04 Nov 2019 14:00:55 GMT):
I don't know... On the peer, do you see the required files it says are missing in /opt/gopath?

spmcnamara (Mon, 04 Nov 2019 14:02:20 GMT):
And do you see the connection attempt in the logs for couchdb1?

Bolzo 1 (Mon, 04 Nov 2019 14:04:25 GMT):

Bolzo 1 - Mon Nov 04 2019 15:03:04 GMT+0100 (Central European Standard Time).txt

Bolzo 1 (Mon, 04 Nov 2019 14:07:02 GMT):
Yes, the files are missing... But these file are missing also in the peer which has no issue connecting to its couchdb container

spmcnamara (Mon, 04 Nov 2019 14:13:03 GMT):
Does the couchdb admin interface work at http://couchdb1:5984/_utils#setup?

spmcnamara (Mon, 04 Nov 2019 14:13:37 GMT):
Your couchdb is running in docker. Is your host that is running the client code able to see the docker network?

Bolzo 1 (Mon, 04 Nov 2019 14:15:04 GMT):
I cannot conntect to http://couchdb1:5984/_utils#setup because I'm working through ssh on ubuntu server

spmcnamara (Mon, 04 Nov 2019 14:15:30 GMT):
But if you curl it you get a good response?

Bolzo 1 (Mon, 04 Nov 2019 14:16:44 GMT):
Now i'm resetting the entire network and deleting images and volumes, I'll get back to you with a response in a few minutes

Bolzo 1 (Mon, 04 Nov 2019 14:19:34 GMT):
And yes the host machine can see the overlay network of the docker swarm

spmcnamara (Mon, 04 Nov 2019 14:21:17 GMT):
Running out of ideas. Sorry that this is a little bit of blind-leading-the-blind. I was able to bring up a couchdb-based environment, but didn't have any client code try to directly access it so haven't done exactly what you are trying to do.

Bolzo 1 (Mon, 04 Nov 2019 14:22:32 GMT):
No problem, thanks for trying thou! Now I'm pulling fresh images, I hope that an hard reset solves the issue

spmcnamara (Mon, 04 Nov 2019 14:23:14 GMT):
I've had a few of those where clearing out everything and rebuilding from scratch solved the issue. I find that terrifying.

Bolzo 1 (Mon, 04 Nov 2019 14:26:29 GMT):
I feel you

Bolzo 1 (Mon, 04 Nov 2019 14:27:03 GMT):
Issue not solved: 2 out of 6 peer cannot connect to couchdb

spmcnamara (Mon, 04 Nov 2019 14:27:33 GMT):
but the other 4 can? Timing issue? If you start the ones that failed do they connect?

Bolzo 1 (Mon, 04 Nov 2019 14:38:20 GMT):
Now all peer have joined to the channel, which mean that the can connect to couchdb

Bolzo 1 (Mon, 04 Nov 2019 14:38:46 GMT):
Unfortunately i have no idea how

Bolzo 1 (Mon, 04 Nov 2019 14:39:00 GMT):
Maybe is a timing issue as you said

spmcnamara (Mon, 04 Nov 2019 14:40:23 GMT):
I had some issues like that, and ended up creating a dependency chain where peer2 --> couchdb2 --> peer1-->couchdb1-->peer0-->couchdb0 (where --> means "depends_on")

Bolzo 1 (Mon, 04 Nov 2019 14:42:00 GMT):
I'll try it out, now i'll test chaincode lifecycle

Bolzo 1 (Mon, 04 Nov 2019 14:46:58 GMT):
Nope, same error the peer container exits due to `error handling CouchDb request`

spmcnamara (Mon, 04 Nov 2019 15:00:34 GMT):
So your chaincode is doing the query. Then I would think you might need the couchdb libraries in your vendor directory. I believe that is what @Taaanos was suggesting earlier

Bolzo 1 (Mon, 04 Nov 2019 15:04:28 GMT):
I think so, but i have zero experience with Go so i don't know where i need to start

spmcnamara (Mon, 04 Nov 2019 15:05:02 GMT):
I'm fighting with what appears to be a vendor-code problem right now and will share what I find.

Bolzo 1 (Mon, 04 Nov 2019 15:07:06 GMT):
thanks a lot!

Taaanos (Mon, 04 Nov 2019 15:10:57 GMT):
@Bolzo 1 do you see any vendor folder in the dir of the container? You should have one at the dir of the container with the couchdb. The process is that you create a vendor as the tutorial says. Then you can replace the old vendor folder with the new one. Usually in order to create the vendor folder you need to initialize it at the root dir of the project - so it can get all the dependencies it needs.

Bolzo 1 (Mon, 04 Nov 2019 15:22:47 GMT):
I ran find and these are the folders found: ``` /usr/local/lib/node_modules/npm/node_modules/qrcode-terminal/vendor /usr/local/lib/node_modules/npm/node_modules/libnpx/node_modules/yargs/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/parse-json/vendor /usr/local/lib/node_modules/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/vendor /sys/devices/pci0000:00/0000:00:00.0/vendor /sys/devices/pci0000:00/0000:00:01.0/vendor /sys/devices/pci0000:00/0000:00:07.0/vendor /sys/devices/pci0000:00/0000:00:07.1/vendor /sys/devices/pci0000:00/0000:00:07.3/vendor /sys/devices/pci0000:00/0000:00:07.7/vendor /sys/devices/pci0000:00/0000:00:10.0/host32/target32:0:0/32:0:0:0/vendor /sys/devices/pci0000:00/0000:00:10.0/vendor /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/ata3/host2/target2:0:0/2:0:0:0/vendor /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/vendor /sys/devices/pci0000:00/0000:00:11.0/vendor /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/vendor /sys/devices/pci0000:00/0000:00:15.0/vendor /sys/devices/pci0000:00/0000:00:15.1/vendor /sys/devices/pci0000:00/0000:00:15.2/vendor /sys/devices/pci0000:00/0000:00:15.3/vendor /sys/devices/pci0000:00/0000:00:15.4/vendor /sys/devices/pci0000:00/0000:00:15.5/vendor /sys/devices/pci0000:00/0000:00:15.6/vendor /sys/devices/pci0000:00/0000:00:15.7/vendor /sys/devices/pci0000:00/0000:00:16.0/vendor /sys/devices/pci0000:00/0000:00:16.1/vendor /sys/devices/pci0000:00/0000:00:16.2/vendor /sys/devices/pci0000:00/0000:00:16.3/vendor /sys/devices/pci0000:00/0000:00:16.4/vendor /sys/devices/pci0000:00/0000:00:16.5/vendor /sys/devices/pci0000:00/0000:00:16.6/vendor /sys/devices/pci0000:00/0000:00:16.7/vendor /sys/devices/pci0000:00/0000:00:17.0/vendor /sys/devices/pci0000:00/0000:00:17.1/vendor /sys/devices/pci0000:00/0000:00:17.2/vendor /sys/devices/pci0000:00/0000:00:17.3/vendor /sys/devices/pci0000:00/0000:00:17.4/vendor /sys/devices/pci0000:00/0000:00:17.5/vendor /sys/devices/pci0000:00/0000:00:17.6/vendor /sys/devices/pci0000:00/0000:00:17.7/vendor /sys/devices/pci0000:00/0000:00:18.0/vendor /sys/devices/pci0000:00/0000:00:18.1/vendor /sys/devices/pci0000:00/0000:00:18.2/vendor /sys/devices/pci0000:00/0000:00:18.3/vendor /sys/devices/pci0000:00/0000:00:18.4/vendor /sys/devices/pci0000:00/0000:00:18.5/vendor /sys/devices/pci0000:00/0000:00:18.6/vendor /sys/devices/pci0000:00/0000:00:18.7/vendor /sys/devices/pci0000:00/0000:00:0f.0/vendor /sys/devices/platform/i8042/serio0/input/input1/id/vendor /sys/devices/platform/i8042/serio1/input/input3/id/vendor /sys/devices/platform/i8042/serio1/input/input4/id/vendor /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0/id/vendor /opt/go/pkg/linux_amd64_race/vendor /opt/go/pkg/linux_amd64/vendor /opt/go/src/vendor /opt/go/src/cmd/vendor /opt/go/src/cmd/go/testdata/src/canonical/a/vendor /opt/go/src/cmd/go/testdata/src/dupload/vendor /opt/go/src/cmd/go/testdata/src/vend/vendor /opt/go/src/cmd/go/testdata/src/vend/x/vendor /opt/go/src/cmd/go/testdata/testvendor2/vendor /opt/go/src/cmd/go/testdata/testvendor/src/q/vendor ```

spmcnamara (Mon, 04 Nov 2019 16:11:30 GMT):
@Taaanos When you are handling vendor code, are you using govendor or making use of the "go mod" mechanism? I've been fighting with vendor code for a few days now and it's giving me a headache.

spmcnamara (Mon, 04 Nov 2019 18:36:25 GMT):
Is there a way to call `peer chaincode invoke` on the CLI and pass it information to identify the request as coming from a specific user?

CT123 (Mon, 04 Nov 2019 19:21:22 GMT):
Hi - using couchdb during byfn up and getting yaml errors on of all things version and network - and I'm using the default files: `version: '2' networks: byfn: services: couchdb0: container_name: couchdb0 image: hyperledger/fabric-couchdb `

CT123 (Mon, 04 Nov 2019 19:21:22 GMT):
Hi - using couchdb during byfn up and getting yaml errors on of all things version and network - and I'm using the default files: ```version: '2' networks: byfn: services: couchdb0: container_name: couchdb0 image: hyperledger/fabric-couchdb ``` any thoughts on why?

CT123 (Mon, 04 Nov 2019 19:22:40 GMT):
The networks error is this: ```ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in "./docker-compose-couch.yaml", line 8, column 9```

CT123 (Mon, 04 Nov 2019 19:26:53 GMT):
This is the version error: ```ERROR: yaml.parser.ParserError: while parsing a block mapping in "docker-compose-base.yaml", line 6, column 1 expected , but found ''```

CT123 (Mon, 04 Nov 2019 19:47:03 GMT):
What is the correct current docker compose version that support HLF 1.4.3? It's not still 2 is it?

antoniovassell (Mon, 04 Nov 2019 20:02:16 GMT):
Hi all, is it possible for the node sdk to automatically/dynamically select a different peer to be used for discovery?

antoniovassell (Mon, 04 Nov 2019 20:03:46 GMT):
For example if peer1 was set as the discover node, and it goes down...

yacovm (Mon, 04 Nov 2019 20:18:09 GMT):
@antoniovassell you can just use several discovery peers no?

antoniovassell (Mon, 04 Nov 2019 20:23:14 GMT):
Hey @yacovm thinking the same, but not sure if am doing something wrong. When I set mutliple peers with the discover role, it still defaults to only using the first peer with that role

yacovm (Mon, 04 Nov 2019 20:24:08 GMT):
hmm maybe try to change the order?

yacovm (Mon, 04 Nov 2019 20:24:19 GMT):
maybe it only uses the other peers if the first is not reachable?

antoniovassell (Mon, 04 Nov 2019 20:25:10 GMT):
so my current test setup is 5 peers (peer1 .... peer5)

antoniovassell (Mon, 04 Nov 2019 20:25:30 GMT):
all set with the discover role in the connection profile

antoniovassell (Mon, 04 Nov 2019 20:26:01 GMT):
if i intentionally take peer1 offline, it still tries to connect to peer1

antoniovassell (Mon, 04 Nov 2019 20:27:28 GMT):
i was thinking it would try to connect to the others as you said,.. if the first is not reachable, but that's not the case.

antoniovassell (Mon, 04 Nov 2019 20:28:09 GMT):
hopefully that's not confusing

yacovm (Mon, 04 Nov 2019 20:28:12 GMT):
what SDK is that?

antoniovassell (Mon, 04 Nov 2019 20:28:46 GMT):
node SDK

yacovm (Mon, 04 Nov 2019 20:28:52 GMT):
ah now it makes sense

yacovm (Mon, 04 Nov 2019 20:29:09 GMT):
open a JIRA ;)

yacovm (Mon, 04 Nov 2019 20:29:45 GMT):
or try another SDK .... Go SDK is pretty good at using discovery

antoniovassell (Mon, 04 Nov 2019 20:30:08 GMT):
so given this documentation

antoniovassell (Mon, 04 Nov 2019 20:30:09 GMT):
https://fabric-sdk-node.github.io/release-1.4/tutorial-discovery.html

antoniovassell (Mon, 04 Nov 2019 20:30:28 GMT):
"If the initialize fails because the peer with the discover role is not online, the application may select another peer."

yacovm (Mon, 04 Nov 2019 20:30:38 GMT):
:/ sorry I don't know what to say...

antoniovassell (Mon, 04 Nov 2019 20:30:43 GMT):
`await channel.initialize({discover:true, target:'peer2.org2.example.com'});`

yacovm (Mon, 04 Nov 2019 20:30:45 GMT):
if it doesn't work open a bug

yacovm (Mon, 04 Nov 2019 20:30:57 GMT):
I'm not an SDK dev

yacovm (Mon, 04 Nov 2019 20:31:08 GMT):
am just passing by

antoniovassell (Mon, 04 Nov 2019 20:31:12 GMT):
it seems will have to do it manually with custom code.

antoniovassell (Mon, 04 Nov 2019 20:31:16 GMT):
thanks for responding

antoniovassell (Mon, 04 Nov 2019 20:31:25 GMT):
i will look more into it

antoniovassell (Mon, 04 Nov 2019 20:31:26 GMT):
:)

CT123 (Mon, 04 Nov 2019 21:25:07 GMT):
Can anyone help -- This directory exists -- I can see it -- why would I be getting an error?? ```2019-11-04 20:52:15.172 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/crypto-config/peerOrganizations/XYZ.oceantides.example.com/users/Admin@XYZ.oceantides.example.com/msp" does not exist !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========```

antoniovassell (Mon, 04 Nov 2019 23:11:29 GMT):
@CT123 are you running this inside a container? are you checking that this exact path exist inside the container?

antoniovassell (Mon, 04 Nov 2019 23:12:59 GMT):
@yacovm figured out the service discovery issue by the way. thanks again. It was due to client library being reloaded on each new transactions, it wasn't storing the previous requests as it would have if it was loaded as a singleton (or not recreating the connection each time)

CT123 (Mon, 04 Nov 2019 23:28:58 GMT):
I don't believe so -- this is launching from BYFN, specifically this is pulled *I believe* from /scripts/script.sh where is creates the channel. Here's the complete dump after all the containers are created, peers up, orderer up, etc: ```Sleeping 15s to allow etcdraft cluster to complete booting ____ _____ _ ____ _____ / ___| |_ _| / \ | _ \ |_ _| \___ \ | | / _ \ | |_) | | | ___) | | | / ___ \ | _ < | | |____/ |_| /_/ \_\ |_| \_\ |_| XYZ network (XYZN) end-to-end test Channel name : ssbchannel Creating channel... + peer channel create -o XYZorderer.oceantides.example.com:7050 -c ssbchannel -f ../channel-artifacts/channel.tx --tls true --cafile /crypto-config/ordererOrganizations/oceantides.example.com/orderers/XYZorderer.oceantides.example.com/msp/tlscacerts/tlsca.oceantides.example.com-cert.pem + res=1 + set +x 2019-11-04 21:40:56.481 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/crypto-config/peerOrganizations/XYZ.oceantides.example.com/users/Admin@XYZ.oceantides.example.com/msp" does not exist !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed ```

CT123 (Mon, 04 Nov 2019 23:30:14 GMT):
The folder *does in fact* exist

biligunb (Tue, 05 Nov 2019 00:02:26 GMT):
HI guys. Has anyone tried HLF v2.0.0-alpha and successfully installed & instantiated chaincode? (approveformyorg <- new chaincode lifecycle)

biligunb (Tue, 05 Nov 2019 00:13:55 GMT):

approveformyorg

robmurgai (Tue, 05 Nov 2019 04:06:32 GMT):
Has joined the channel.

SamYuan1990 (Tue, 05 Nov 2019 04:51:41 GMT):
do we have any channel related with msp?

SamYuan1990 (Tue, 05 Nov 2019 04:51:41 GMT):
do we have any channel for with msp?

SamYuan1990 (Tue, 05 Nov 2019 04:51:41 GMT):
do we have any channel for msp?

guoger (Tue, 05 Nov 2019 05:02:31 GMT):
try #fabric-crypto

hotspot2009 (Tue, 05 Nov 2019 07:59:20 GMT):
Has joined the channel.

hotspot2009 (Tue, 05 Nov 2019 07:59:22 GMT):
i wanted to ask that in the Application SDK node.js, it does not support above 9.0. May i know what is the technical reason for that?

VadimInshakov (Tue, 05 Nov 2019 08:20:31 GMT):
Why we need to specify policies for ACL on the peer, orderer, organization and channel level? What does it mean? Does the orderer check signatures? Only peers do this. So, why we specify policies for orderer and channel?

Taaanos (Tue, 05 Nov 2019 08:46:42 GMT):
Ordering service signs the blocks and the peers verify that this particular ordering service is eligible to construct the blocks.

Bolzo 1 (Tue, 05 Nov 2019 08:55:44 GMT):
I think I resolved the problem, there was a port conflict problem with couchdb

Bolzo 1 (Tue, 05 Nov 2019 08:57:25 GMT):
I have the following error in the peer logs: ``` deliverBlocks -> ERRO 1aa [channel: mychannel1] Error reading from channel, cause was: NOT_FOUND``` but in the cli if i run `peer channel list` i can see that the peer has joined `mychannel1`... Any idea about this error?

Taaanos (Tue, 05 Nov 2019 09:10:19 GMT):
I'm not sure if the problem is that the channel is not found, I usually get "Channel not found for name "

simran (Tue, 05 Nov 2019 09:53:15 GMT):

Screenshot from 2019-11-05 11-29-44.png

Taaanos (Tue, 05 Nov 2019 10:36:48 GMT):
are the address:port correct for said container?

adarshaJha (Tue, 05 Nov 2019 11:21:53 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 11:22:38 GMT):
stuck on this for past 3 days

ahmad-raza (Tue, 05 Nov 2019 11:55:58 GMT):
################################################################################ # # SECTION: RAM Ledger # # - This section applies to the configuration of the RAM ledger. # ################################################################################ RAMLedger: # History Size: The number of blocks that the RAM ledger is set to retain. # WARNING: Appending a block to the ledger might cause the oldest block in # the ledger to be dropped in order to limit the number total number blocks # to HistorySize. For example, if history size is 10, when appending block # 10, block 0 (the genesis block!) will be dropped to make room for block 10. HistorySize: 1000 ################################################################################

ahmad-raza (Tue, 05 Nov 2019 11:56:08 GMT):
Can any body explain this???

ahmad-raza (Tue, 05 Nov 2019 11:57:32 GMT):
HistorySize =10 , when 11th block is added block 0 will be dropped?? Is is same in FileLedger???

msolefonte (Tue, 05 Nov 2019 12:29:37 GMT):
Where can I see the differences between Hyperledger Explorer versions? I wanted to update from 0.3.9.1 to 0.3.9.5, which seems to be latest, but I can not use the same config file and do not know where to look for the new version format.

adarshaJha (Tue, 05 Nov 2019 12:44:29 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:54:57 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:54:58 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:54:58 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:54:59 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:00 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ? how to use postgres as a db in fabric-ca ? using verify-ca mode ? how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:00 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:01 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:01 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:01 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:02 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ? how to use postgres as a db in fabric-ca ? using verify-ca mode ? how to use postgres as a db in fabric-ca ? using verify-ca mode ?

adarshaJha (Tue, 05 Nov 2019 12:55:03 GMT):
how to use postgres as a db in fabric-ca ? using verify-ca mode ?

msolefonte (Tue, 05 Nov 2019 12:59:39 GMT):
Hello @adarshaJha. Hyperledger support is not the best at all, it is hardly good so do not expect fast and quality help here. I have read your question several times but have not used fabric-ca with postgres, so I can no help. Is it blocking you? Can't you use sqlite meanwhile you get an answer?

msolefonte (Tue, 05 Nov 2019 12:59:39 GMT):
Hello @adarshaJha Hyperledger support is not the best at all, it is hardly good so do not expect fast and quality help here. I have read your question several times but have not used fabric-ca with postgres, so I can no help. Is it blocking you? Can't you use sqlite meanwhile you get an answer?

adarshaJha (Tue, 05 Nov 2019 13:00:52 GMT):
actually i am able to connect using postgres in require mode but i want to add sslmode=verify-ca or verify-full.

adarshaJha (Tue, 05 Nov 2019 13:01:17 GMT):
i understand it's a small community but i have to move things to production.

msolefonte (Tue, 05 Nov 2019 13:01:33 GMT):
I do not know anything about ca, I am not a developer but another user

msolefonte (Tue, 05 Nov 2019 13:01:59 GMT):
But I have been working with Hyperledger for months and have found little help here

msolefonte (Tue, 05 Nov 2019 13:02:14 GMT):
I recommend you to use StackOverflow with the tag Hyperledger

adarshaJha (Tue, 05 Nov 2019 13:02:18 GMT):
I know that @mastersingh24 can help me but i guess he is busy with conferences ( as i can see IBM is organizing conferences across the globe ).

msolefonte (Tue, 05 Nov 2019 13:02:20 GMT):
Is easier to get answers that way

adarshaJha (Tue, 05 Nov 2019 13:02:50 GMT):
https://stackoverflow.com/questions/58694159/how-to-add-postgres-as-a-db-in-hyperledger-fabric-ca-using-sslmode-verify-ca-or

adarshaJha (Tue, 05 Nov 2019 13:03:03 GMT):
It's already been couple of days but no support there too.

adarshaJha (Tue, 05 Nov 2019 13:03:39 GMT):
but i am posting again and again because i guess there might be other developers of IBM also who can help me regarding this.

adarshaJha (Tue, 05 Nov 2019 13:04:00 GMT):
and maybe i will come in notice.

adarshaJha (Tue, 05 Nov 2019 13:04:10 GMT):
I am stuck on this for 3 days now ,

adarshaJha (Tue, 05 Nov 2019 13:04:18 GMT):
in fact more than that.

spmcnamara (Tue, 05 Nov 2019 13:10:05 GMT):
Glad you were able to get it sorted!

Bolzo 1 (Tue, 05 Nov 2019 13:10:31 GMT):
Thanks for the help!

Taaanos (Tue, 05 Nov 2019 13:12:58 GMT):
This is what the description says. No idea about FileLedger.

dcof (Tue, 05 Nov 2019 14:58:21 GMT):
Hi, I'm wondering how to create the crypto materials using cryptogen for creating a organization which has both orderering node and peer node. Would I just add the same entry to OrdererOrgs and to PeerOrgs in crypto-config.yaml? Does anybody has experience with something like this or can point me to some sort of article?

jyellick (Tue, 05 Nov 2019 15:46:34 GMT):
We strongly recommend that even if the same organization is participating in both ordering and the application, that you create logically distinct orgs to represent them.

Mattrussell98 (Tue, 05 Nov 2019 16:46:33 GMT):
Has joined the channel.

Mattrussell98 (Tue, 05 Nov 2019 16:56:14 GMT):
Hi, I'm not a developer, but have some Fabric questions. Has anyone had success with network performance with transaction sizes of 500 bytes? How many tps should I expect, based on my resources? Is this feasible?

mra023 (Tue, 05 Nov 2019 17:02:18 GMT):
Has joined the channel.

planetf1 (Tue, 05 Nov 2019 18:08:41 GMT):
Has joined the channel.

CT123 (Tue, 05 Nov 2019 18:33:29 GMT):
bump - any input?

CT123 (Tue, 05 Nov 2019 18:36:36 GMT):
@antoniovassell I don't know at this point. `CORE_PEER_MSPCONFIGPATH` is set in two places - docker-compose-cli.yaml and that path is correct and in scripts/utils.sh and I've tried BOTH pointing to the local on system directory where, the 'project' directory and to the container - and I get an error on both - same error - but I can look in each dir - locally and in the container and the paths are correct and the files are there

rpocase (Tue, 05 Nov 2019 19:27:02 GMT):
I stumbled about the hlf-* charts in the helm mono-repo (e.g. https://github.com/helm/charts/tree/master/stable/hlf-ca). Any one know offhand if these are community maintained or by primary fabric contributors? Just curious how much support to expect these to receive

CT123 (Tue, 05 Nov 2019 20:07:00 GMT):
The are maintained by this group: https://github.com/orgs/helm/people

rpocase (Tue, 05 Nov 2019 20:08:45 GMT):
Each chart in this mono-repo has a distinct owners set (e.g. https://github.com/helm/charts/blob/master/stable/hlf-ca/OWNERS). Just not sure where to poke around to see if these people are directly affiliated with fabric

rpocase (Tue, 05 Nov 2019 20:12:18 GMT):
Best I can tell, they are loosely owned by AID:tech (https://github.com/aidtechnology/at-charts)

dachrillz (Tue, 05 Nov 2019 22:17:48 GMT):
Hello all. I'm trying to get Caliper to work, so that I can run some tests on a Fabric network that I am building. So far so good, however when caliper is trying to instantiate the chaincode I get the following error: error [caliper] [caliper-flow] Error: Error: Invalid endorsement for marbles@v0 in mychannel from peer0.org1.example.com: error starting container: error starting container: Failed to generate platform-specific docker build: Error uploading input to container: API error (500): Error processing tar file(exit status 1): "../chaincode/go/marbles.go" is outside of "/chaincode/input" Any pointers would be very much appreciated as I have been stuck on this the last five hours! :S Thanks!

dachrillz (Tue, 05 Nov 2019 22:20:04 GMT):
looking inside of one of the peers the following error message can also be retrieved [mychannel][3be1fd59] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error uploading input to container: API error (500): Error processing tar file(exit status 1): "../chaincode/go/marbles.go" is outside of "/chaincode/input"

dachrillz (Tue, 05 Nov 2019 22:46:30 GMT):
Turns out that one can not have the chaincode outside of the folder running caliper. By moving the chaincode from ../chaincode to src/chaincode the issue was resolved

SimranGoyal (Wed, 06 Nov 2019 05:52:47 GMT):
Has joined the channel.

PraharshaBejju (Wed, 06 Nov 2019 08:15:54 GMT):
Hi everyone, I have configured the a kafka orderer with a single broker and a single zooper as of now and after working smoothly on the network for few days, now I run into an issue of kafka service being unavailable. I see that the container is up and running perfectly but not sure what is causing the service issue. Below is the exact error: Retrieved channel orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later - proposal response: version:1 response: Would really appreciate any help

PraharshaBejju (Wed, 06 Nov 2019 08:15:54 GMT):
Hi everyone, I have configured the a kafka orderer with a single broker and a single zooper as of now and after working smoothly on the network for few days, now I run into an issue of kafka service being unavailable. I see that the container is up and running perfectly but not sure what is causing the service issue. Below is the exact error: `Retrieved channel orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later - proposal response: version:1 response: ` Would really appreciate any help

PraharshaBejju (Wed, 06 Nov 2019 08:15:54 GMT):
Hi everyone, I have configured the a kafka orderer with a single broker and a single zooper as of now and after working smoothly on the network for few days, now I run into an issue of kafka service being unavailable. I see that the container is up and running perfectly but not sure what is causing the service issue. Below is the exact error: _Retrieved channel orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later - proposal response: version:1 response: _ Would really appreciate any help

PraharshaBejju (Wed, 06 Nov 2019 08:15:54 GMT):
Hi everyone, I have configured the a kafka orderer with a single broker and a single zooper as of now and after working smoothly on the network for few days, now I run into an issue of kafka service being unavailable. I see that the container is up and running perfectly but not sure what is causing the service issue. Below is the exact error: _Retrieved channel orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later - proposal response: version:1 response: _ Would really appreciate any help

PraharshaBejju (Wed, 06 Nov 2019 08:15:54 GMT):
Hi everyone, I have configured the a kafka orderer with a single broker and a single zookeeper as of now and after working smoothly on the network for few days, now I run into an issue of kafka service being unavailable. I see that the container is up and running perfectly but not sure what is causing the service issue. Below is the exact error: _Retrieved channel orderer endpoint: orderer.example.com:7050 Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later - proposal response: version:1 response: _ Would really appreciate any help

dcof (Wed, 06 Nov 2019 09:46:20 GMT):
Thank you very much for the answer! That means, that, considering building a test network, one "physical" organisation would be present in the OrdererOrganisations as well as in PeerOrganisations section in crypto-config.yaml and therefore creating two logical organisations from an hyperledger fabric point of view? Is there a reason for this that it should be done that way?

heeropunjabi (Wed, 06 Nov 2019 11:19:02 GMT):
Has joined the channel.

heeropunjabi (Wed, 06 Nov 2019 11:19:03 GMT):
HI Team

heeropunjabi (Wed, 06 Nov 2019 11:19:04 GMT):
Good Morning

heeropunjabi (Wed, 06 Nov 2019 11:19:12 GMT):
I hope everyone is fine in their own way

heeropunjabi (Wed, 06 Nov 2019 11:19:21 GMT):
I need to understand one thing

heeropunjabi (Wed, 06 Nov 2019 11:19:34 GMT):
how can we add organization using nodesdk

heeropunjabi (Wed, 06 Nov 2019 11:19:40 GMT):
?

mattmaru (Wed, 06 Nov 2019 11:39:16 GMT):
Hi guys can you tell me how to solve "mvcc read conflict" when i send multiple transactions to create an object ?

AliciaKiran (Wed, 06 Nov 2019 12:28:00 GMT):
Has joined the channel.

tegie (Wed, 06 Nov 2019 12:45:37 GMT):
Hey guys, I am trying to create `InMemoryWallet` in browser using react, but I am getting `grpc TypeError: Cannot read property '_handle' of undefined` error, anyone had similar issue?

skdeshmukh (Wed, 06 Nov 2019 12:51:42 GMT):
Has joined the channel.

skdeshmukh (Wed, 06 Nov 2019 12:51:43 GMT):
Hi Guys, where can I find any examples to add organization to channel using node sdk? Thanks.

json (Wed, 06 Nov 2019 12:51:49 GMT):
Has joined the channel.

SimranGoyal (Wed, 06 Nov 2019 13:04:34 GMT):

Screenshot from 2019-11-06 18-10-21.png

aleksandar.nasuovski (Wed, 06 Nov 2019 14:30:42 GMT):
Hello Team, i'm having issue with updating system channel. So, after i'm was added new org when i tried to add org to consortium when updating system channel i'm getting error:

aleksandar.nasuovski (Wed, 06 Nov 2019 14:30:42 GMT):
Hello Team, i'm having issue with updating system channel. So, after i'm was added new org when i tried to add org to consortium when updating system channel i'm getting error: 2019-11-06 14:19:44.415 UTC [orderer.common.broadcast] ProcessMessage -> WARN b59 [channel: byfn-sys-channel] Rejecting broadcast of config message from 172.18.0.7:60556 because of error: error applying config update to existing channel 'byfn-sys-channel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Consortiums/SampleConsortium not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

json (Wed, 06 Nov 2019 15:24:12 GMT):
Would anyone know what 'func1' does?

rachidchami (Wed, 06 Nov 2019 15:41:41 GMT):
Has joined the channel.

CT123 (Wed, 06 Nov 2019 19:07:28 GMT):
See this https://blog.mindorks.com/rxjava-anatomy-what-is-rxjava-how-rxjava-is-designed-and-how-rxjava-works-d357b3aca586 and then see this and look under functions https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-2.0

antoniovassell (Wed, 06 Nov 2019 21:22:58 GMT):
Hi all, I have 4 peers, each running on a t2.small instance (1 CPU, 2gb ram) in one org, there is also 5 orderers each in there own instance My issue is that i am seeing high memory usage, up to 70-80% on most of the peers, even though no transactions are being done. After a certain time, the peer containers will just stop running. I can easily reboot the peer node if memory is high (or restart the container), but the memory usage will just keep increasing until the container stops working again Before the container stops, some errors that I see in the peer logs are: ``` 2019-11-05 23:58:38.599 UTC [core.comm] ServerHandshake -> ERRO 48c0 TLS handshake failed with error write tcp 172.1.1.1:7051->3.1.1.1:40936: i/o timeout server=PeerServer remoteaddress=3.1.1.1:40936 ``` And errors from the chaincode instance: ``` 2019-11-06T00:06:40.616Z [31mERROR[39m [31m[lib/handler.js][39m Chat stream with peer - on error: "Error: 14 UNAVAILABLE: keepalive watchdog timeout\n at Object.exports.createStatusError (/usr/local/src/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/usr/local/src/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/usr/local/src/node_modules/grpc/src/client_interceptors.js:618:8)\n at /usr/local/src/node_modules/grpc/src/client_interceptors.js:1123:18" ``` Questions are: - Where/how could I investigate the memory issues? I tried a few things but nothing I can see why the memory keeps increasing - Is the specs (1cpu, 2gb ram) too low? - Does the amount of peers (4 in this case) affects the total memory of each individual peer (probably because of gossip, and other communication, etc) ?

CT123 (Wed, 06 Nov 2019 22:08:08 GMT):
@antoniovassell two thoughts -- there is a #performance-and-scale-wg channel that you might have some success asking that on; 2 - check out these two articles on performance and scale which might lead to some other nuggets you can try to glean: https://www.ibm.com/blogs/blockchain/2019/01/answering-your-questions-on-hyperledger-fabric-performance-and-scale/ https://www.ibm.com/blogs/blockchain/2019/04/does-hyperledger-fabric-perform-at-scale/

CT123 (Wed, 06 Nov 2019 22:14:36 GMT):
In bringing up a modified BYFN using (modified) `byfn.sh up -s coudhdb -o etcdraft` I'm getting the following errors - can anyone lend some insights? Note all appears well up to this point: ```-----END CERTIFICATE----- 2019-11-06 21:43:51.218 UTC [msp] setupSigningIdentity -> DEBU 033 Signing identity expires at 2029-11-03 21:26:00 +0000 UTC 2019-11-06 21:43:51.218 UTC [msp] GetDefaultSigningIdentity -> DEBU 034 Obtaining default signing identity 2019-11-06 21:43:51.222 UTC [grpc] DialContext -> DEBU 035 parsed scheme: "" 2019-11-06 21:43:51.222 UTC [grpc] DialContext -> DEBU 036 scheme "" not registered, fallback to default scheme 2019-11-06 21:43:51.222 UTC [grpc] watcher -> DEBU 037 ccResolverWrapper: sending new addresses to cc: [{XYZorderer.oceantides.example.com:7050 0 }] 2019-11-06 21:43:51.222 UTC [grpc] switchBalancer -> DEBU 038 ClientConn switching balancer to "pick_first" 2019-11-06 21:43:51.222 UTC [grpc] HandleSubConnStateChange -> DEBU 039 pickfirstBalancer: HandleSubConnStateChange: 0xc000073eb0, CONNECTING 2019-11-06 21:43:51.243 UTC [grpc] createTransport -> DEBU 03a grpc: addrConn.createTransport failed to connect to {NFLorderer.oceantides.example.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp: lookup XYZorderer.oceantides.example.com on 127.0.0.11:53: no such host". Reconnecting... 2019-11-06 21:43:51.243 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc000073eb0, TRANSIENT_FAILURE Error: failed to create deliver client: orderer client failed to connect to XYZorderer.oceantides.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup XYZorderer.oceantides.example.com on 127.0.0.11:53: no such host" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

antoniovassell (Wed, 06 Nov 2019 22:22:15 GMT):
@CT123 thanks

CT123 (Wed, 06 Nov 2019 22:34:49 GMT):
I should add that for some reason the XYZorderer container is stopped - in fact all orderers are stopped (there are 6 XYZ and XYZ1..XYZ5) as are all peer1's (there are 5 as there are 5 orgs in this test). Why would this be?

biligunb (Thu, 07 Nov 2019 00:45:40 GMT):
Does any one uses the `fabric-test` repo's Network Launcher tool? It seems nice. I've tried it. But I am not sure if this one is compatible with v2.0.0-alpha?

CT123 (Thu, 07 Nov 2019 01:34:27 GMT):
Tested again *without* couchdb or raft -- containers for only peer0's for all 5 orgs started -- all other including orderer started and immediately stopped. Is this possible related to the need to add `GODEBUG=netdns=go` to one or more .yaml files? If so, what are the exact files that need to have that added. Platform = macOS 10.14.6 with standard docker config

cthtuf (Thu, 07 Nov 2019 03:38:01 GMT):
Has joined the channel.

biligunb (Thu, 07 Nov 2019 05:57:59 GMT):
Hey guys on HLF v2.0.0-alpha i encountered this problem while installing & instantiating chaincode ``` Error: bad response: 500 - failed to invoke backing implementation of 'QueryApprovalStatus': could not set defaults for chaincode definition in channel mychannel: Policy '/Channel/Application/Endorsement' must be defined for channel 'mychannel' before chaincode operations can be attempted ``` does any one know why?

AjayKalola (Thu, 07 Nov 2019 06:12:30 GMT):
Hello Everyone, i am getting error in instantiate chaincode . here is the log of error . if somebody have solution please help me https://pastebin.com/btkGbjgd Thanks in advance

wbn (Thu, 07 Nov 2019 06:44:52 GMT):
Has joined the channel.

json (Thu, 07 Nov 2019 10:05:25 GMT):
Thank you :thumbsup:

keishikubo (Thu, 07 Nov 2019 11:59:36 GMT):
I thought that peer is the endorser. But, endorsement policy can specify Org.member. Then, what is peer role. What is peer.

UdkReddy (Thu, 07 Nov 2019 13:25:14 GMT):
I am trying to restrict invoke access for members dynamicall in chaincode level and had used this "stub.GetCallerCertificate" but getting error could you please tell what mistake did i made in the code and if possible please provide some working example for restricting access to members in chaincode level(only for invoking transactions) Error:stub.GetCallerCertificate undefined (type shim.ChaincodeStubInterface has no field or method GetCallerCertificate) ``` xx, err1 := stub.GetCallerCertificate() if err1 != nil { matchLogger.Info(err1) } matchLogger.Info("Cert ----") matchLogger.Info(string(xx)) ```

delao (Thu, 07 Nov 2019 13:39:37 GMT):
I believe that this method `GetCallerCertificate` doesn't exists. You could try this: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetCreator

spmcnamara (Thu, 07 Nov 2019 17:58:57 GMT):
@UdkReddy Have you looked at using the ext.cid stuff? In particular, `cid.GetAttributeValue()` and `cid.AssertAttributeValue()`

CT123 (Thu, 07 Nov 2019 19:19:54 GMT):
I have a fabric runtime that does not start due to several docker contains going down -- they come up and then immediately go down. Most serious of which is the orderer. Have tried using both RAFT and not. Note: I'm *not* using VSCode. I can verify that /var/hyperledger/orderer never gets created. Am using modified byfn scripts (all of them) but not fabric-samples.

CT123 (Thu, 07 Nov 2019 19:20:47 GMT):

CT123 - Thu Nov 07 2019 14:20:14 GMT-0500 (EST).txt

CT123 (Thu, 07 Nov 2019 19:22:08 GMT):
The orderer genesis block never gets transferred to the container -- but `generate` does create it and I can see the file in local crypto-config dir

delao (Thu, 07 Nov 2019 19:24:13 GMT):
Are you mounting the genesis block to the orderer container?

delao (Thu, 07 Nov 2019 19:25:12 GMT):
Also, generating the genesis should come before starting the containers. The containers look for the file on booting up, and if they don't find it, they crash

CT123 (Thu, 07 Nov 2019 19:44:20 GMT):
Am using template files from byfn.sh including all the docker yaml files - the only changes that have been made are to org names and the addition of additional orgs, etc.

CT123 (Thu, 07 Nov 2019 19:45:47 GMT):
Here is the relevant snip from the modified byfn.sh: ```# Generate the needed certificates, the genesis block and start the network. function networkUp() { checkPrereqs # generate artifacts if they don't exist if [ ! -d "crypto-config" ]; then generateCerts replacePrivateKey generateChannelArtifacts fi COMPOSE_FILES="-f ${COMPOSE_FILE}" if [ "${CERTIFICATE_AUTHORITIES}" == "true" ]; then COMPOSE_FILES="${COMPOSE_FILES} -f ${COMPOSE_FILE_CA}" export SSBN_CA1_PRIVATE_KEY=$(cd crypto-config/peerOrganizations/XYZProp.oceantides.example.com/ca && ls *_sk) export SSBN_CA2_PRIVATE_KEY=$(cd crypto-config/peerOrganizations/SponsorA.oceantides.example.com/ca && ls *_sk) export SSBN_CA3_PRIVATE_KEY=$(cd crypto-config/peerOrganizations/SponsorB.oceantides.example.com/ca && ls *_sk) export SSBN_CA4_PRIVATE_KEY=$(cd crypto-config/peerOrganizations/XYZ.oceantides.example.com/ca && ls *_sk) export SSBN_CA5_PRIVATE_KEY=$(cd crypto-config/peerOrganizations/XYZPA.oceantides.example.com/ca && ls *_sk) fi if [ "${CONSENSUS_TYPE}" == "kafka" ]; then COMPOSE_FILES="${COMPOSE_FILES} -f ${COMPOSE_FILE_KAFKA}" elif [ "${CONSENSUS_TYPE}" == "etcdraft" ]; then COMPOSE_FILES="${COMPOSE_FILES} -f ${COMPOSE_FILE_RAFT2}" fi if [ "${IF_COUCHDB}" == "couchdb" ]; then COMPOSE_FILES="${COMPOSE_FILES} -f ${COMPOSE_FILE_COUCH}" fi IMAGE_TAG=$IMAGETAG docker-compose ${COMPOSE_FILES} up -d 2>&1 docker ps -a if [ $? -ne 0 ]; then echo "ERROR !!!! Unable to start network" exit 1 fi if [ "$CONSENSUS_TYPE" == "kafka" ]; then sleep 1 echo "Sleeping 10s to allow $CONSENSUS_TYPE cluster to complete booting" sleep 9 fi if [ "$CONSENSUS_TYPE" == "etcdraft" ]; then sleep 1 echo "Sleeping 15s to allow $CONSENSUS_TYPE cluster to complete booting" sleep 14 fi # now run the end to end script docker exec cli scripts/script.sh $CHANNEL_NAME $CLI_DELAY $LANGUAGE $CLI_TIMEOUT $VERBOSE $NO_CHAINCODE if [ $? -ne 0 ]; then echo "ERROR !!!! Test failed" exit 1 fi } ```

CT123 (Thu, 07 Nov 2019 19:47:58 GMT):
Interesting thing is all the peer0's start, all the couchdb containers start, cli starts but not the orderer or any peer1's

delao (Thu, 07 Nov 2019 19:48:13 GMT):
Could you show the volume part for the docker compose files?

CT123 (Thu, 07 Nov 2019 19:50:52 GMT):
which ones? the BYFN template has 7 docker compose files, including peer-base.yaml

CT123 (Thu, 07 Nov 2019 19:52:47 GMT):
Here's the representative from docker-compose-base.yaml for the orderer: ```XYZorderer.oceantides.example.com: container_name: XYZorderer.oceantides.example.com extends: file: peer-base.yaml service: orderer-base volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/XYZorderer.genesis.block - ../crypto-config/ordererOrganizations/oceantides.example.com/orderers/XYZorderer.oceantides.example.com/msp:/var/hyperledger/orderer/msp - ../crypto-config/ordererOrganizations/oceantides.example.com/orderers/XYZorderer.oceantides.example.com/tls/:/var/hyperledger/orderer/tls - XYZorderer.oceantides.example.com:/var/hyperledger/production/orderer ports: - 7050:7050 ```

delao (Thu, 07 Nov 2019 19:53:47 GMT):
Aren't your orderer missing this line? `- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block`

delao (Thu, 07 Nov 2019 19:54:22 GMT):
The problem is in this line

delao (Thu, 07 Nov 2019 19:54:25 GMT):
`- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/XYZorderer.genesis.block`

CT123 (Thu, 07 Nov 2019 19:54:54 GMT):
Why?

delao (Thu, 07 Nov 2019 19:55:41 GMT):
You have mapped the file to this name: `- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/XYZorderer.genesis.block` and the environment variable says that the path of the file is /var/hyperledger/orderer/orderer.genesis.block

CT123 (Thu, 07 Nov 2019 19:56:16 GMT):
Here's that line from the default BYFN distro: ```orderer.example.com: container_name: orderer.example.com extends: file: peer-base.yaml service: orderer-base volumes: - ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block `` ```

CT123 (Thu, 07 Nov 2019 19:57:48 GMT):
So is there an error in the default byfn distribution?

delao (Thu, 07 Nov 2019 19:58:24 GMT):
No, you have changed the name for the genesis block file that is mapped inside the container

delao (Thu, 07 Nov 2019 19:59:06 GMT):
If you change `- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/XYZorderer.genesis.block` to `- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block` it should work

CT123 (Thu, 07 Nov 2019 20:00:03 GMT):
but the name of the orderer *is* XYZorderer

delao (Thu, 07 Nov 2019 20:00:45 GMT):
OR alternatively you can set the environment variable for the orderer as: `ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/XYZorderer.genesis.block` on the peer-base.yaml file

delao (Thu, 07 Nov 2019 20:01:28 GMT):
Because your orderer is looking for a file that doesn't existis

delao (Thu, 07 Nov 2019 20:01:28 GMT):
Because your orderer is looking for a file that doesn't exists

CT123 (Thu, 07 Nov 2019 20:01:49 GMT):
Ah ha! If I change it in peer.base.yaml to XYZorderer will that solve it there as well?

CT123 (Thu, 07 Nov 2019 20:02:33 GMT):
Go it! Thank you so much.

suyun (Fri, 08 Nov 2019 06:13:12 GMT):
I have encounted the same question.I solved this way.

suyun (Fri, 08 Nov 2019 07:01:26 GMT):
I have encounted the same question.I solved this way. ``` sid := msp.SerializedIdentity{} creator, err := stub.GetCreator() proto.Unmarshal(creator, &sid) ``` Then you can get the identity of the tx.

sshKashyap (Fri, 08 Nov 2019 07:44:18 GMT):
Has joined the channel.

sshKashyap (Fri, 08 Nov 2019 07:47:21 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

sshKashyap (Fri, 08 Nov 2019 07:47:38 GMT):
I am getting the above error when executing byfn

sshKashyap (Fri, 08 Nov 2019 07:48:11 GMT):
chaincode installation on peer0 of org2 is successful

sshKashyap (Fri, 08 Nov 2019 07:49:07 GMT):
I was able to get this basic setup up and running a couple of months ago it was successful then, now it is as above, any hints or suggestions ?

elmira (Fri, 08 Nov 2019 09:20:23 GMT):
Has joined the channel.

elmira (Fri, 08 Nov 2019 09:20:31 GMT):
hello I'm new on this channel I'm getting this error :"error getting endorser client for install: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded "while run start.sh script of Commercial paper tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html I search it on the web and do some solution like # stop all processes docker stop $(docker ps -aq) # remove all containers docker rm $(docker ps -aq) # remove all images docker rmi -f $(docker images -aq) # delete all volumes docker volume prune and do the step from the beginning of tutorial but it doesn't work for me I appreciate for any help

json (Fri, 08 Nov 2019 10:38:45 GMT):
re: TLSClientRootCertPath string = "/etc/hyperledger/fabric/peer.crt"

json (Fri, 08 Nov 2019 10:39:33 GMT):
So I understand from source code commends that this is:Mutual TLS auth client key and cert paths in the chaincode container TLSClientKeyPath string = "/etc/hyperledger/fabric/client.key" TLSClientCertPath string = "/etc/hyperledger/fabric/client.crt" TLSClientRootCertPath string = "/etc/hyperledger/fabric/peer.crt"

json (Fri, 08 Nov 2019 10:39:58 GMT):
Does this make peer.crt a public key then?

dhurkes (Fri, 08 Nov 2019 10:52:27 GMT):
i am not able to bring up the network with Raft or Kafka ./byfn.sh up -o etcdraft ./byfn.sh up -o kafka i am getting below error.... can someone help me with this quickly root@dell2-PowerEdge-R720:/home/dell2/Documents/fabric-samples/first-network# ./byfn.sh up -o etcdraft ./byfn.sh: illegal option -- o Usage: byfn.sh up|down|restart|generate|upgrade [-c ] [-t ] [-d ] [-f ] [-s ] [-i ] byfn.sh -h|--help (print this message) - one of 'up', 'down', 'restart' or 'generate' - 'up' - bring up the network with docker-compose up - 'down' - clear the network with docker-compose down - 'restart' - restart the network - 'generate' - generate required certificates and genesis block - 'upgrade' - upgrade the network from v1.0.x to v1.1 -c - channel name to use (defaults to "mychannel") -t - CLI timeout duration in seconds (defaults to 10) -d - delay duration in seconds (defaults to 3) -f - specify which docker-compose file use (defaults to docker-compose-cli.yaml) -s - the database backend to use: goleveldb (default) or couchdb -l - the chaincode language: golang (default) or node -i - the tag to be used to launch the network (defaults to "latest") Typically, one would first generate the required certificates and genesis block, then bring up the network. e.g.: byfn.sh generate -c mychannel byfn.sh up -c mychannel -s couchdb byfn.sh up -c mychannel -s couchdb -i 1.1.0-alpha byfn.sh up -l node byfn.sh down -c mychannel byfn.sh upgrade -c mychannel Taking all defaults: byfn.sh generate byfn.sh up byfn.sh down

knagware9 (Fri, 08 Nov 2019 10:55:27 GMT):
whats error message ?

dhurkes (Fri, 08 Nov 2019 11:47:18 GMT):
its showing -o as illegal option

yacovm (Fri, 08 Nov 2019 11:57:33 GMT):
yeah

yacovm (Fri, 08 Nov 2019 11:57:55 GMT):
a certificate is a public key, some information, and a signature of a CA over the raw certificate

json (Fri, 08 Nov 2019 12:18:39 GMT):
@yacovm - cool, that's very helpful. thank you

CT123 (Fri, 08 Nov 2019 14:12:09 GMT):
@antoniovassell Another resource for you - this is a deep look at Benchmarking of Blockchain Techologies used in a Decentralized Data Marketplace from June 2019 -- http://oa.upm.es/55775/1/TFG_ALBERTO_FUENTES_CONTRERAS.pdf

antoniovassell (Fri, 08 Nov 2019 15:00:31 GMT):
Thanks @CT123 the actual issue was with HF itself memory leak

antoniovassell (Fri, 08 Nov 2019 15:00:41 GMT):
it will be fixed in 1.4.4

antoniovassell (Fri, 08 Nov 2019 15:01:10 GMT):
https://stackoverflow.com/questions/57994330/weird-network-behaviour-after-peer-restart-too-many-open-connections

antoniovassell (Fri, 08 Nov 2019 15:01:21 GMT):
https://jira.hyperledger.org/browse/FAB-16651

CT123 (Fri, 08 Nov 2019 15:55:11 GMT):
@antoniovassell Thanks for this as among other issues I'm seeing that as well. :thumbsup:

CT123 (Fri, 08 Nov 2019 17:57:58 GMT):
Peers fail to join the channel for any org other than "org1" -- we use unique names for our orgs - not org1, org2, etc. when doing a `byfn.sh (modified) up - s couchdb -o etcdraft ` peers0 and 1 join the channel correctly for my first org (e.g. "org1") but fail for the next one, e.g. "org2": ```2019-11-08 17:15:11.289 UTC [msp] setupSigningIdentity -> DEBU 033 Signing identity expires at 2029-11-05 17:08:00 +0000 UTC 2019-11-08 17:15:11.290 UTC [msp] GetDefaultSigningIdentity -> DEBU 034 Obtaining default signing identity Error: error getting endorser client for channel: failed to load config for PeerClient: unable to load peer.tls.rootcert.file: open /etc/hyperledger/fabric/tls/ca.crt: no such file or directory peer0.org2 failed to join the channel, Retry after 3 seconds + peer channel join -b ssbchannel.block + res=1 + set +x ```

CT123 (Fri, 08 Nov 2019 17:58:22 GMT):
Is there a setting I need to adjust in `utils.sh` to fix this?

CT123 (Fri, 08 Nov 2019 18:00:04 GMT):
And there is *no* `tls` directory on docker at `/etc/hyperledger/fabric` - why?

CT123 (Sat, 09 Nov 2019 16:51:47 GMT):
Request for HELP -- Scripting issues with utils.sh, script.sh and byfn.sh: Can someone *please* tell me how to map (probably within utils.sh) our 5 orgs with actual names to org1, org2, etc? All is good with the peers as I'm using peer0 and peer1 but the scripts want to jam in orgx.example.com and we've named our org (for example): ` XYZProp, SponsorA, SponsorB, XYZ, XYZPA` I'm able to join the first org (XYZ) to the channel but all the others fail. The first - it should say that peer1.XYZProp joined channel not the below however: ```watcher -> DEBU 037 ccResolverWrapper: sending new addresses to cc: [{peer1.XYZProp.oceantides.example.com:8051 0 }] ===================== peer1.org1 joined channel 'ssbchannel' ===================== ``` But the second fails 10 times - here is one example: ```2019-11-08 17:15:14.404 UTC [msp] setupSigningIdentity -> DEBU 033 Signing identity expires at 2029-11-05 17:08:00 +0000 UTC 2019-11-08 17:15:14.404 UTC [msp] GetDefaultSigningIdentity -> DEBU 034 Obtaining default signing identity Error: error getting endorser client for channel: failed to load config for PeerClient: unable to load peer.tls.rootcert.file: open /etc/hyperledger/fabric/tls/ca.crt: no such file or directory peer0.org2 failed to join the channel, Retry after 3 seconds ``` It fails to find some tls resources: ```DEBU 027 TLS intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/SponsorA.oceantides.example.com/users/Admin@SponsorA.oceantides.example.com/msp/tlsintermediatecerts]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/SponsorA.oceantides.example.com/users/Admin@SponsorA.oceantides.example.com/msp/tlsintermediatecerts: no such file or directory] 2019-11-08 17:15:14.389 UTC [msp] getPemMaterialFromDir -> DEBU 028 Reading directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/SponsorA.oceantides.example.com/users/Admin@SponsorA.oceantides.example.com/msp/crls 2019-11-08 17:15:14.389 UTC [msp] getMspConfig -> DEBU 029 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/SponsorA.oceantides.example.com/users/Admin@SponsorA.oceantides.example.com/msp/crls]. Skipping. [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/SponsorA.oceantides.example.com/users/Admin@SponsorA.oceantides.example.com/msp/crls: no such file or directory] ```

CT123 (Sat, 09 Nov 2019 16:56:37 GMT):
Someone suggested that it might be the way we're defining the "orgs" in setGlobals() or how the "orgs" get processed in joinChannelWithRetry() - if *anyone can help* would be super greatly appreciated....

lepar (Sat, 09 Nov 2019 17:09:33 GMT):
Hey guys, I created a generic fabric network with TLS and Raft enabled. It is meant for production level. For anyone interested it's here: https://github.com/lepar/hyperledger-fabric-generic-network

sistemaon (Sat, 09 Nov 2019 17:35:41 GMT):
Has joined the channel.

metadata (Sat, 09 Nov 2019 17:40:41 GMT):
hey all, what's the use of `CONFIGTX_ORDERER_ADDRESSES` in docker-compose.yaml file under `orderer` section? It is currently set to`127.0.0.1:7050`.

vishnupradeepcm (Sat, 09 Nov 2019 19:47:23 GMT):
Has joined the channel.

noorkhan_92 (Sun, 10 Nov 2019 08:36:34 GMT):
Hello everyone, got this error link to stackoverflow https://stackoverflow.com/q/58786074/5563585 i am in very trouble due to this error from many days. please if anyone can help.

VadimInshakov (Sun, 10 Nov 2019 11:42:03 GMT):
**Service discovery in go sdk** Where I can find any tutorial of using service discovery with go sdk? I can't understand how that changes ordinary workflow without discovery service. At least examples are needed

VadimInshakov (Sun, 10 Nov 2019 11:44:36 GMT):
I don't specify peers urls in orinary flow (get channel client, execute query/invoke). So, how service discovery can simplify anything?

santmukh (Sun, 10 Nov 2019 16:37:03 GMT):
In Fabric 1.4.2 for high availability, If any of the peer/orderer container goes down, would the kubernetes spin off a new container with the same state? If yes, can you please share the link of making the application high availability?

maniankara (Sun, 10 Nov 2019 21:34:06 GMT):
@noorkhan_92 I commented the same in stackoverflow, >For me, it looks like github.com/docker/compose/issues/3875 what version of docker-compose are you using? `docker-compose version`

dhurkes (Mon, 11 Nov 2019 05:28:48 GMT):
how to run the fabric network with Raft or Kafka?

metadata (Mon, 11 Nov 2019 05:33:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ya34cLikpLhr35nfE) Please help. Is it mandatory to add this?

RahulEth (Mon, 11 Nov 2019 07:33:14 GMT):
i am using fabric-node-sdk to connect with fabric network with service discovery. is there any method to check whether target peer is alive or not before transmitting the thransaction??

MohamadFazuan (Mon, 11 Nov 2019 08:50:39 GMT):
Has joined the channel.

trevoro1 (Mon, 11 Nov 2019 10:24:45 GMT):
are there any effective tools to test a hyperledger network, eg pen testing, testing security generally, testing the performance of the network. I am interested in only utilities.

Esegarra (Mon, 11 Nov 2019 11:08:15 GMT):
Has joined the channel.

Esegarra (Mon, 11 Nov 2019 11:08:25 GMT):
Hello, I’m testing a Fabric network over Kubernetes with 5 orderers in mode raft: `OrdererType: etcdraft Addresses: - orderer0-fabric-net-dev:7050 - orderer1-fabric-net-dev:7050 - orderer2-fabric-net-dev:7050 - orderer3-fabric-net-dev:7050 - orderer4-fabric-net-dev:7050 ` When I tear down two of them (excluding orderer0), leaving at least three orderers working, the network works as expected. However, every time I tear down orderer0, I’m not able to make invokes. Is this the expected behavior? Is there a way to balance the workload between all the orderers? I do not want to be dependent on orderer0 and provide high availability. Thank you so much.

Esegarra (Mon, 11 Nov 2019 11:08:25 GMT):
Hello, I’m testing a Fabric network over Kubernetes with 5 orderers in mode raft: ```` OrdererType: etcdraft Addresses: - orderer0-fabric-net-dev:7050 - orderer1-fabric-net-dev:7050 - orderer2-fabric-net-dev:7050 - orderer3-fabric-net-dev:7050 - orderer4-fabric-net-dev:7050 ``` ` When I tear down two of them (excluding orderer0), leaving at least three orderers working, the network works as expected. However, every time I tear down orderer0, I’m not able to make invokes. Is this the expected behavior? Is there a way to balance the workload between all the orderers? I do not want to be dependent on orderer0 and provide high availability. Thank you so much.

mastersingh24 (Mon, 11 Nov 2019 12:03:14 GMT):
what client are you using?

Esegarra (Mon, 11 Nov 2019 12:08:57 GMT):
I’m using a API written with the Node.js SDK

giuzero (Mon, 11 Nov 2019 12:20:39 GMT):
Hi how to create a connection profile to use with client-sdk?

giuzero (Mon, 11 Nov 2019 12:20:39 GMT):
Hi how to create a connection profile to use with client-sdk for a network based on this fabric-ca guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html ??

kunju_shihas (Mon, 11 Nov 2019 12:50:30 GMT):
Has joined the channel.

liujianglin1 (Mon, 11 Nov 2019 13:07:16 GMT):
i want to know why `QueryResultsIterator query = stub.getStateByRange("", ""); Iterator queryIterator = query.iterator();`can't return any key from chaincode,and i know there have keys in chaincode which can return by getStates

ultimo2020 (Mon, 11 Nov 2019 13:12:44 GMT):
Hi to everyone. I had a small operations question. I have a test fabric network built on ubuntu 16.04 and HL 1.3 and I tested the same rollout on Ubuntu 19.04 and hyperledger latest docker images. The network starts (with two ORGS1 and ORGS2) ok but I get these docker logs errors: 2019-11-11 06:31:29.668 UTC [orderer.common.broadcast] Handle -> WARN 00c Error reading from 172.18.0.6:53140: rpc error: code = Canceled desc = context canceled 2019-11-11 06:31:29.668 UTC [comm.grpc.server] 1 -> INFO 00d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.6:53140 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=14.104228ms 2019-11-11 06:31:29.670 UTC [common.deliver] Handle -> WARN 00e Error reading from 172.18.0.6:53138: rpc error: code = Canceled desc = context canceled 2019-11-11 06:32:37.674 UTC [comm.grpc.server] 1 -> INFO 028 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.request_deadline=2019-11-11T06:32:47.669Z grpc.peer_address=172.18.0.12:50894 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=4.791204ms

liujianglin1 (Mon, 11 Nov 2019 13:29:01 GMT):
it only can work when the chaincode have one key.

metadata (Mon, 11 Nov 2019 14:01:55 GMT):
Hey all, I'm trying to use `raft` ordering service and facing some issues. https://chat.hyperledger.org/channel/fabric?msg=eWsKcLRCQoM9Qe6fm

dachrillz (Mon, 11 Nov 2019 15:49:12 GMT):
Hello, all just a quick question. Is there any rate limit mechanism on the peers/orderers. I was running some tests locally on my machine and realized that it was pretty easy to destabilize the whole network by spamming it with transactions using a client. Naturally one could build some form of rate limit into the client, but what if you have a network where clients are deployed to semi-untrusted actors?

dachrillz (Mon, 11 Nov 2019 15:49:12 GMT):
Hello, all just a quick question. Is there any rate limit mechanism on the peers/orderers. I was running some tests locally on my machine and realized that it was pretty easy to destabilize the whole network by spamming it with transactions using a client. Naturally one could build some form of rate limit into the client, but what if you have a network where clients are deployed to semi-untrusted actors? Thanks

Bolzo 1 (Mon, 11 Nov 2019 15:50:28 GMT):
Hi, has anyone deployed a network using Amazon ECS ? I have some question about this type of service versus using separate EC2 istances

VadimInshakov (Mon, 11 Nov 2019 20:24:28 GMT):
Service discovery in go sdk Where I can find any tutorial of using service discovery with go sdk? I can't understand how that changes ordinary workflow without discovery service. At least examples are needed I don't specify peers urls in orinary flow (get channel client, execute query/invoke). So, how service discovery can simplify anything?

mastersingh24 (Tue, 12 Nov 2019 09:51:26 GMT):
you should post to #fabric-sdk-go

sshKashyap (Tue, 12 Nov 2019 11:52:20 GMT):
In the official hyperledger readme

sshKashyap (Tue, 12 Nov 2019 11:52:23 GMT):
it is given

sshKashyap (Tue, 12 Nov 2019 11:52:24 GMT):
# if version not passed in, default to latest released version VERSION=1.4.3 # if ca version not passed in, default to latest released version CA_VERSION=1.4.3 # current version of thirdparty images (couchdb, kafka and zookeeper) released THIRDPARTY_IMAGE_VERSION=0.4.15

sshKashyap (Tue, 12 Nov 2019 11:52:42 GMT):
could you please provide me the most stable alternatives for the above versions

sshKashyap (Tue, 12 Nov 2019 11:53:08 GMT):
as I am not able to get a proper source code out of that specific versions

lepar (Tue, 12 Nov 2019 11:55:36 GMT):
@sshKashyap Those are the latest stable versions

sshKashyap (Tue, 12 Nov 2019 11:59:16 GMT):
I am unable to download the repo

lepar (Tue, 12 Nov 2019 12:00:51 GMT):
What happens?

sshKashyap (Tue, 12 Nov 2019 12:01:32 GMT):

cmd1.PNG

sshKashyap (Tue, 12 Nov 2019 12:01:43 GMT):
this is the first command after installing the prerequisities

sshKashyap (Tue, 12 Nov 2019 12:01:54 GMT):
docker, docker-compose, go ,node, npm and python

sshKashyap (Tue, 12 Nov 2019 12:02:01 GMT):
also have set the PATH for go

sshKashyap (Tue, 12 Nov 2019 12:02:14 GMT):
I just executed the command so give me a sec

sshKashyap (Tue, 12 Nov 2019 12:03:14 GMT):

cmd1_result.PNG

adineshreddy1 (Tue, 12 Nov 2019 12:03:30 GMT):
This curl is for downloads all the hyperledger fabric images from dokcerhub along with fabric samples code. What u are going to do??? @sshKashyap

adineshreddy1 (Tue, 12 Nov 2019 12:03:30 GMT):
This curl is for downloading all the hyperledger fabric images from dockerhub along with fabric samples code. What u are going to do??? @sshKashyap

lepar (Tue, 12 Nov 2019 12:03:46 GMT):
It seems it worked

sshKashyap (Tue, 12 Nov 2019 12:04:04 GMT):

Capture.PNG

sshKashyap (Tue, 12 Nov 2019 12:04:06 GMT):
it didnt work

sshKashyap (Tue, 12 Nov 2019 12:04:14 GMT):
I just have 2 folders

sshKashyap (Tue, 12 Nov 2019 12:04:28 GMT):
I am supposed to have all of the folders

sshKashyap (Tue, 12 Nov 2019 12:04:34 GMT):
like first-network

sshKashyap (Tue, 12 Nov 2019 12:04:37 GMT):
fabcar

sshKashyap (Tue, 12 Nov 2019 12:04:37 GMT):
etc

lepar (Tue, 12 Nov 2019 12:04:50 GMT):
Delete all the images and the fabric-samples folder and run it again

sshKashyap (Tue, 12 Nov 2019 12:05:06 GMT):
i did it twice, will do it again gimme a sec

sshKashyap (Tue, 12 Nov 2019 12:13:29 GMT):
same thing again

sshKashyap (Tue, 12 Nov 2019 12:13:37 GMT):
no luck

adineshreddy1 (Tue, 12 Nov 2019 12:14:02 GMT):
make a folder hyperledger, then try curl command @sshKashyap

sshKashyap (Tue, 12 Nov 2019 12:14:26 GMT):
i dont see how that's going to make a difference

sshKashyap (Tue, 12 Nov 2019 12:14:30 GMT):
did it work for you ?

adineshreddy1 (Tue, 12 Nov 2019 12:14:38 GMT):
Just now i tried with curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.3 1.4.3 0.4.15

adineshreddy1 (Tue, 12 Nov 2019 12:20:23 GMT):
it worked

sshKashyap (Tue, 12 Nov 2019 12:25:11 GMT):
it is not working on environment yet

sshKashyap (Tue, 12 Nov 2019 12:25:17 GMT):
I am trying to make it work in AWS

sshKashyap (Tue, 12 Nov 2019 12:25:30 GMT):
where in my nameserver is set to 1.1.1.1

sshKashyap (Tue, 12 Nov 2019 12:25:43 GMT):
im getting the same issue over and over

sshKashyap (Tue, 12 Nov 2019 12:34:33 GMT):
Okay that issue was because I did not have Git installed, oops

lepar (Tue, 12 Nov 2019 12:42:52 GMT):
Glad it worked out

sshKashyap (Tue, 12 Nov 2019 12:46:27 GMT):
surprisingly AWS is slow af right now, the download for that command is still going on

lepar (Tue, 12 Nov 2019 12:56:31 GMT):
I was having problems downloading it yesterday too but on my home network. Prob the service is going through something

sshKashyap (Tue, 12 Nov 2019 13:24:05 GMT):
oh yeah it could be that

sshKashyap (Tue, 12 Nov 2019 13:24:09 GMT):
also after the download

sshKashyap (Tue, 12 Nov 2019 13:24:18 GMT):
my bin folder only has one tool

sshKashyap (Tue, 12 Nov 2019 13:24:33 GMT):
fabric-ca-client

sshKashyap (Tue, 12 Nov 2019 13:24:40 GMT):
how do i get the rest ?

sshKashyap (Tue, 12 Nov 2019 13:25:16 GMT):
i believe getting the previous most stable version would be a better call at this

sshKashyap (Tue, 12 Nov 2019 13:25:21 GMT):
any idea what the versions care ?

sshKashyap (Tue, 12 Nov 2019 13:25:28 GMT):
versions are **?

lepar (Tue, 12 Nov 2019 14:02:40 GMT):
I'm not sure because when I ran that command it would always generate the rest

sshKashyap (Tue, 12 Nov 2019 14:12:26 GMT):
I managed to find an old version of my hyperledger fabric, I copied the bin/ folder into my new one and it worked. Thanks folks, I owe you one

giuzero (Tue, 12 Nov 2019 17:38:08 GMT):
do python fabric-sdk works on x86?

lepar (Tue, 12 Nov 2019 18:15:32 GMT):
@sshKashyap u shouldn't do that because there are features that will not work with older version like Raft only works with bin version starting at 1.4.2

CT123 (Tue, 12 Nov 2019 18:53:07 GMT):
I'm getting this error and Jira suggests it was fixed prior to 1.4.3 however I'm running 1.4.3 - any help would be appreciated: ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!```

CT123 (Tue, 12 Nov 2019 18:55:56 GMT):
Note if this matters - channel creation for this network *was* working end of last week and today I blew away all the docker containers, network, volumes and system and all had to be reloaded.

millo (Wed, 13 Nov 2019 05:35:03 GMT):
Has joined the channel.

millo (Wed, 13 Nov 2019 05:35:04 GMT):
Hello everyone! I want to know private data of hyperledger fabric. I wonder the capcatiy of private data of hyperledger. Thnks 🙂

biligunb (Wed, 13 Nov 2019 08:14:42 GMT):
Is Fabric Node SDK - FabricClient thread safe?

tale.jiang (Wed, 13 Nov 2019 08:37:39 GMT):
Has joined the channel.

tale.jiang (Wed, 13 Nov 2019 08:37:39 GMT):
Hello, when I use Fabric-go-SDK to query endorse, it tells me "error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:"

tale.jiang (Wed, 13 Nov 2019 08:37:39 GMT):
Hello, when I use Fabric-go-SDK to query endorsers, it tells me "error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:"

tale.jiang (Wed, 13 Nov 2019 08:37:53 GMT):
link in stackoverflow: https://stackoverflow.com/questions/58832977/discovery-service-does-not-work-failed-constructing-descriptor-for-chaincodes

tale.jiang (Wed, 13 Nov 2019 08:37:53 GMT):
link in stackoverflow is https://stackoverflow.com/questions/58832977/discovery-service-does-not-work-failed-constructing-descriptor-for-chaincodes

liujianglin1 (Wed, 13 Nov 2019 12:45:55 GMT):
did anyone meet this "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/root/chaincode-java/start\": stat /root/chaincode-java/start: no such file or directory": unknown"

davidkel (Wed, 13 Nov 2019 12:49:42 GMT):
you might want to ask on the #fabric-java-chaincode channel

DilipManjunatha (Wed, 13 Nov 2019 12:52:30 GMT):
Has joined the channel.

liujianglin1 (Wed, 13 Nov 2019 12:54:29 GMT):
maybe i should

liujianglin1 (Wed, 13 Nov 2019 13:03:05 GMT):
but this question is about chaincode install ,not only java? like https://stackoverflow.com/questions/58070749/error-running-fabcar-javascript-chaincode-in-hyperledger-fabric-1-4-3/58094779?r=SearchResults#58094779

Chem (Wed, 13 Nov 2019 13:09:13 GMT):
Has joined the channel.

Chem (Wed, 13 Nov 2019 13:09:14 GMT):
msp

Oninik (Wed, 13 Nov 2019 13:11:08 GMT):
Anyone knows how to install the node sdk in the vscode IBP local fabric?

Chem (Wed, 13 Nov 2019 13:12:10 GMT):
Idemix?

bertschneider (Wed, 13 Nov 2019 14:11:35 GMT):
Hi people, I want to instantiate node chaincode behind a corporate proxy. I set the proxy in `/etc/systemd/system/docker.service.d/http-proxy.conf` (with that config docker is able to download the public Hyperledger images) and in `~/.docker/config.json` so the environment is passed on to other all container like the cli-container and I verified that it is set there. On the other hand it is not set in the `ccenv`-container, so npm can not execute the `npm install` there and the chaincode can not be instantiated. Does someone know how to correctly configure the proxy? This shouldn't be such a special case, or should it?

bertschneider (Wed, 13 Nov 2019 15:10:19 GMT):
I found a solution. One can use `.npmrc` to set the proxy settings is the chaincode project.

antonios64 (Wed, 13 Nov 2019 15:44:43 GMT):
Has joined the channel.

liujianglin1 (Thu, 14 Nov 2019 02:18:00 GMT):
This is because the environment has not been completely cleaned up

sakshibansal (Thu, 14 Nov 2019 05:19:15 GMT):
Has joined the channel.

sakshibansal (Thu, 14 Nov 2019 05:19:16 GMT):
Hello everyone! Did anyone face this issue - Peer has rejected transaction with code "MVCC_READ_CONFLICT". If yes, Please help me out from this. How can i fix this issue in Hyperledger Fabric?

laxmanmali (Thu, 14 Nov 2019 05:38:08 GMT):
Has joined the channel.

laxmanmali (Thu, 14 Nov 2019 05:38:09 GMT):
Hello Everyone Please find my problem on stackoverflow and please help me https://stackoverflow.com/questions/58763910/not-getting-correct-transaction-id-in-registertxevent-after-commit-data-in-ladge

laxmanmali (Thu, 14 Nov 2019 05:38:09 GMT):
#fabric-sdk-node Hello Everyone Please find my problem on stackoverflow and please help me https://stackoverflow.com/questions/58763910/not-getting-correct-transaction-id-in-registertxevent-after-commit-data-in-ladge

trevoro1 (Thu, 14 Nov 2019 13:11:21 GMT):
I get this error below, has anyone any idea about the cause and hence solution - Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 254

lepar (Thu, 14 Nov 2019 14:15:53 GMT):
Send your peer logs

RamanM (Thu, 14 Nov 2019 14:59:09 GMT):
Has joined the channel.

trevoro1 (Thu, 14 Nov 2019 15:40:05 GMT):
-11-14 15:26:37.248 UTC [comm.grpc.server] 1 -> INFO 10a unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.16.13:58876 grpc.code=OK grpc.call_duration=1.716386643s 2019-11-14 15:26:55.597 UTC [endorser] callChaincode -> INFO 10b [mychannel][80fd6432] Entry chaincode: name:"lscc" 2019-11-14 15:26:57.331 UTC [endorser] callChaincode -> INFO 10c [mychannel][80fd6432] Exit chaincode: name:"lscc" (1733ms) 2019-11-14 15:26:57.331 UTC [endorser] SimulateProposal -> ERRO 10d [mychannel][80fd6432] failed to invoke chaincode name:"lscc" , error: container exited with 254 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2019-11-14 15:26:57.331 UTC [comm.grpc.server] 1 -> INFO 10e unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.16.13:58884 grpc.code=OK grpc.call_duration=1.733798855s

PhilippDolgolev (Thu, 14 Nov 2019 16:27:29 GMT):
Hello! Is it possible to use any custom binaries from chaincode in Hyperledger Fabric?

lepar (Thu, 14 Nov 2019 16:43:28 GMT):
Send your peers

trevoro1 (Thu, 14 Nov 2019 16:58:43 GMT):
6c0c8238fc12 hyperledger/fabric-tools:latest "/bin/bash" 7 days ago Up 7 days cli 8f1c837f5590 hyperledger/fabric-peer:latest "peer node start" 7 days ago Up 7 days 0.0.0.0:8051->8051/tcp peer1.org1.example.com 27a764fbb1a7 hyperledger/fabric-peer:latest "peer node start" 7 days ago Up 7 days 0.0.0.0:7051->7051/tcp peer0.org1.example.com 81729698c5f5 hyperledger/fabric-peer:latest "peer node start" 7 days ago Up 7 days 0.0.0.0:9051->9051/tcp peer0.org2.example.com 013ef38a4ece hyperledger/fabric-peer:latest "peer node start" 7 days ago Up 7 days 0.0.0.0:10051->10051/tcp peer1.org2.example.com c530e7df053d hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 7 days ago Up 7 days 7054/tcp, 0.0.0.0:8054->8054/tcp ca_peerOrg2 0c97e8ce4fdd hyperledger/fabric-couchdb "tini -- /docker-ent…" 7 days ago Up 7 days 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp couchdb3 d30dfa94281a hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 7 days ago Up 7 days 0.0.0.0:7054->7054/tcp ca_peerOrg1 744d28fa7165 hyperledger/fabric-couchdb "tini -- /docker-ent…" 7 days ago Up 7 days 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp couchdb1 db698583dbe0 hyperledger/fabric-couchdb "tini -- /docker-ent…" 7 days ago Up 7 days 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 145ee33a4fd7 hyperledger/fabric-couchdb "tini -- /docker-ent…" 7 days ago Up 7 days 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb2 e20e4e8cd905 hyperledger/fabric-orderer:latest "orderer" 7 days ago Up 7 days 0.0.0.0:7050->7050/tcp orderer.example.com ubuntu@ip-172-31-46-103:~/fabric-samples/ch

trevoro1 (Thu, 14 Nov 2019 17:00:02 GMT):
is there a playground for hyperledger? I saw it is possible to install chaincode which has errors and hence some kind of error checking is needed before installing

lepar (Thu, 14 Nov 2019 17:19:07 GMT):
Add this option to you peer in your docker-compose.yaml - CORE_VM_DOCKER_ATTACHSTDOUT=true

lepar (Thu, 14 Nov 2019 17:19:19 GMT):
It'll give you more information when you instantiate the chaincode

biligunb (Fri, 15 Nov 2019 05:13:16 GMT):
What is the best way to handle all the data (ledger) when it gets too big?

ultimo2020 (Fri, 15 Nov 2019 06:55:36 GMT):
Hi to everyone. I would like to test a small setup with Kubernetes and Raft. Does anyone has maybe a documented example of that kind of infrastructure test scenario?

ultimo2020 (Fri, 15 Nov 2019 06:56:22 GMT):
Hi. I would try a better design approach. I would scale the peers with Kubernetes. And for big Files I would use CouchDB as a SideDB to hold the bigger files.

sanket1211 (Fri, 15 Nov 2019 08:50:41 GMT):
Local Fabric binary version of 1.4.4 does not match this newer version of BYFN...why does this error occur?

sanket1211 (Fri, 15 Nov 2019 08:50:41 GMT):
Local Fabric binary version of 1.4.4 does not match this newer version of BYFN...why does this error occur?LOCAL_VERSION=1.4.4 DOCKER_IMAGE_VERSION=1.4.4

sanket1211 (Fri, 15 Nov 2019 08:50:41 GMT):
Local Fabric binary version of 1.4.4 does not match this newer version of BYFN...why does this error occur?LOCAL_VERSION=1.4.4 DOCKER_IMAGE_VERSION=1.4.4 even tho its matches...

pankajcheema (Fri, 15 Nov 2019 08:50:44 GMT):
@sakshibansal I think your peer is not able to identify which chain needs to be read

pankajcheema (Fri, 15 Nov 2019 08:50:53 GMT):
Please elaborate more

sanket1211 (Fri, 15 Nov 2019 08:53:23 GMT):
ven tho it matches..

SamYuan1990 (Fri, 15 Nov 2019 10:00:24 GMT):
having a question here, by reading fabric 1.4 source code, it seems that peer node having a gossip server, and the gossip server able to make leader for each channel? or say there 5 peer nodes for Org1 with 3 channel, so we may possible having 3 gossip leader for each channel?

sshKashyap (Fri, 15 Nov 2019 10:17:13 GMT):
thanks @lepar I have followed your advice, got HLF up and running though

sshKashyap (Fri, 15 Nov 2019 10:17:14 GMT):
thanks

trevoro1 (Fri, 15 Nov 2019 11:44:52 GMT):
how can I confirm the anchor peers on a channel? I know I can examine the yaml files to see what they should be, but is there an actual command to confirm the peer is an anchor peer?

trevoro1 (Fri, 15 Nov 2019 12:16:22 GMT):
I have a question about extending the network via scripts and network calls via an ask. Can the sdk add new members? I think it can add new peers.

gt (Fri, 15 Nov 2019 12:20:19 GMT):
Hi everyone, I'm trying to create a channel on a RAFT hlf cluster, using fabric-ca not crytpogen. When the create comand: ```peer channel create -c mychannel -f /hl_config/channel/mychannel.tx -o $ORD_0 --tls --cafile $CORE_PEER_TLS_CLIENTROOTCAS_FILES --certfile $CORE_PEER_TLS_CLIENTCERT_FILE --keyfile $CORE_PEER_TLS_CLIENTKEY_FILE --clientauth ``` hangs on: ```2019-11-15 12:11:09.618 UTC [channelCmd] InitCmdFactory -> INFO 03b Endorser and orderer connections initialized 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 03c Obtaining default signing identity 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 03d Obtaining default signing identity 2019-11-15 12:11:09.619 UTC [msp.identity] Sign -> DEBU 03e Sign: plaintext: 0AE1070A0774706A314D535012D5072D...53616D706C65436F6E736F727469756D 2019-11-15 12:11:09.619 UTC [msp.identity] Sign -> DEBU 03f Sign: digest: ABB1041366BBAC19DC8E3514F2AE5C4624467C9F975B5210CA6266371773C78C 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2019-11-15 12:11:09.620 UTC [msp] GetDefaultSigningIdentity -> DEBU 041 Obtaining default signing identity 2019-11-15 12:11:09.620 UTC [msp.identity] Sign -> DEBU 042 Sign: plaintext: 0A98080A1508021A0608DDABBAEE0522...91DBA81771A0117ECD14534836322C07 2019-11-15 12:11:09.620 UTC [msp.identity] Sign -> DEBU 043 Sign: digest: C646A04D43D0469DD636EE21FA0DAD9B6E527A4CC38A63BFB4EE378F03B630E8 2019-11-15 12:11:09.621 UTC [grpc] DialContext -> DEBU 044 parsed scheme: "" 2019-11-15 12:11:09.621 UTC [grpc] DialContext -> DEBU 045 scheme "" not registered, fallback to default scheme 2019-11-15 12:11:09.621 UTC [grpc] watcher -> DEBU 046 ccResolverWrapper: sending new addresses to cc: [{ord0-gt1-hlf-ord.orderers-gt1.svc.cluster.local:7050 0 }] 2019-11-15 12:11:09.621 UTC [grpc] switchBalancer -> DEBU 047 ClientConn switching balancer to "pick_first" 2019-11-15 12:11:09.621 UTC [grpc] HandleSubConnStateChange -> DEBU 048 pickfirstBalancer: HandleSubConnStateChange: 0xc000222a40, CONNECTING 2019-11-15 12:11:09.630 UTC [grpc] HandleSubConnStateChange -> DEBU 049 pickfirstBalancer: HandleSubConnStateChange: 0xc000222a40, READY ``` orderers and peers are running on k8s cluster and they all can see each other. Can someone help understand what I'm missing here?

gt (Fri, 15 Nov 2019 12:20:19 GMT):
Hi everyone, I'm trying to create a channel on a RAFT hlf cluster, using fabric-ca not crytpogen. When the create comand: ``` peer channel create -c mychannel -f /hl_config/channel/mychannel.tx -o $ORD_0 --tls --cafile $CORE_PEER_TLS_CLIENTROOTCAS_FILES --certfile $CORE_PEER_TLS_CLIENTCERT_FILE --keyfile $CORE_PEER_TLS_CLIENTKEY_FILE --clientauth ``` hangs on: ``` 2019-11-15 12:11:09.618 UTC [channelCmd] InitCmdFactory -> INFO 03b Endorser and orderer connections initialized 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 03c Obtaining default signing identity 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 03d Obtaining default signing identity 2019-11-15 12:11:09.619 UTC [msp.identity] Sign -> DEBU 03e Sign: plaintext: 0AE1070A0774706A314D535012D5072D...53616D706C65436F6E736F727469756D 2019-11-15 12:11:09.619 UTC [msp.identity] Sign -> DEBU 03f Sign: digest: ABB1041366BBAC19DC8E3514F2AE5C4624467C9F975B5210CA6266371773C78C 2019-11-15 12:11:09.619 UTC [msp] GetDefaultSigningIdentity -> DEBU 040 Obtaining default signing identity 2019-11-15 12:11:09.620 UTC [msp] GetDefaultSigningIdentity -> DEBU 041 Obtaining default signing identity 2019-11-15 12:11:09.620 UTC [msp.identity] Sign -> DEBU 042 Sign: plaintext: 0A98080A1508021A0608DDABBAEE0522...91DBA81771A0117ECD14534836322C07 2019-11-15 12:11:09.620 UTC [msp.identity] Sign -> DEBU 043 Sign: digest: C646A04D43D0469DD636EE21FA0DAD9B6E527A4CC38A63BFB4EE378F03B630E8 2019-11-15 12:11:09.621 UTC [grpc] DialContext -> DEBU 044 parsed scheme: "" 2019-11-15 12:11:09.621 UTC [grpc] DialContext -> DEBU 045 scheme "" not registered, fallback to default scheme 2019-11-15 12:11:09.621 UTC [grpc] watcher -> DEBU 046 ccResolverWrapper: sending new addresses to cc: [{ord0-gt1-hlf-ord.orderers-gt1.svc.cluster.local:7050 0 }] 2019-11-15 12:11:09.621 UTC [grpc] switchBalancer -> DEBU 047 ClientConn switching balancer to "pick_first" 2019-11-15 12:11:09.621 UTC [grpc] HandleSubConnStateChange -> DEBU 048 pickfirstBalancer: HandleSubConnStateChange: 0xc000222a40, CONNECTING 2019-11-15 12:11:09.630 UTC [grpc] HandleSubConnStateChange -> DEBU 049 pickfirstBalancer: HandleSubConnStateChange: 0xc000222a40, READY ``` orderers and peers are running on k8s cluster and they all can see each other. Can someone help understand what I'm missing here?

gt (Fri, 15 Nov 2019 12:27:57 GMT):
Can this be a bug related to version 1.4.3?

vikas.kundz (Fri, 15 Nov 2019 14:07:01 GMT):
Hi friends, how many channels can a fabric Orderer using Kafka set up handle in a production environment? Do we have a maximum number which has been tested so far or a recommended max value? (Any version of Fabric)

Bolzo 1 (Fri, 15 Nov 2019 14:14:25 GMT):
As I remeber in a channel all peer must have the same type of ledger, either LevelDB or CouchDB am I correct? Where can I can find this information on the official documentation?

Bolzo 1 (Fri, 15 Nov 2019 14:14:25 GMT):
As I remeber, in a channel all peers must have the same type of ledger, either LevelDB or CouchDB am I correct? Where can I can find this information on the official documentation?

andz (Fri, 15 Nov 2019 14:21:41 GMT):
Has joined the channel.

andz (Fri, 15 Nov 2019 14:21:42 GMT):
Hello!

andz (Fri, 15 Nov 2019 14:22:36 GMT):
I try to generate certificates on zLinux for my first network and stumble upon following error: /opt/hl_fabric/fabric-samples/first-network> ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI d Continue? [Y/n] Y proceeding ... /opt/hl_fabric/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x3df228] goroutine 1 [running]: github.com/hyperledger/fabric/common/tools/cryptogen/msp.GenerateVerifyingMSP(0xc00002c580, 0x34, 0x0 /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools main.generatePeerOrg(0x549368, 0xd, 0xc0004382d0, 0x4, 0xc0004382f0, 0x10, 0x100000000000000, 0x0, 0x /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools main.generate() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools + res=2 + set +x Failed to generate certificates...

andz (Fri, 15 Nov 2019 14:23:22 GMT):
Can you please help?

Bolzo 1 (Fri, 15 Nov 2019 14:25:06 GMT):
Has anyone deployed a network using IBM docker containers?

andz (Fri, 15 Nov 2019 14:25:27 GMT):
not yet

andz (Fri, 15 Nov 2019 14:25:39 GMT):
sorry

andz (Fri, 15 Nov 2019 14:25:45 GMT):
it says fabric-release-jobs-x86_64, but i'm on s390

icarrascol (Fri, 15 Nov 2019 14:48:56 GMT):
hello everyone, i have a question about extending the network adding a new organization, after generating the new crypto for the org, why is it necessary to copy the orderers crypto to the new generated crypto folder?

andz (Fri, 15 Nov 2019 15:51:38 GMT):
Following error was a problem with permissions, wasn't the owner anymore: ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x3df228]

antoniovassell (Fri, 15 Nov 2019 17:47:33 GMT):
Hey, will upgrade from 1.4.3 to 1.4.4 require any special guide?

CT123 (Fri, 15 Nov 2019 22:00:59 GMT):
HLF 1.4.4 download error - fabric-ca-client binary ```===> Downloading version 1.4.4 platform specific fabric-ca-client binary ===> Downloading: https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/darwin-amd64-1.4.4/hyperledger-fabric-ca-darwin-amd64-1.4.4.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1148 0 1148 0 0 9199 0 --:--:-- --:--:-- --:--:-- 9258 tar: Unrecognized archive format tar: Error exit delayed from previous errors. ==> There was an error downloading the binary file. Switching to incremental download. ==> Downloading file... ------> 1.4.4 fabric-ca-client binary is not available to download (Available from 1.1.0-rc1) <---- ``` Any help would be appreciated.

CT123 (Fri, 15 Nov 2019 22:31:40 GMT):
Also appears that bootstrap.sh needs to move `THIRDPARTY_IMAGE_VERSION=0.4.18` and *not* 15 - pls advise? 0.4.18 is the latest for all those packages

vikas.kundz (Sat, 16 Nov 2019 11:17:07 GMT):
I haven't practically tried it myself with two different types of State DB hosted peers within the same channel. But theoretically, it shouldn't matter as the stateDB is used only by the corresponding peers to manage its state and thereby its ledger. Have you tried such a setup? Any errors which you can share?

noorkhan_92 (Sun, 17 Nov 2019 14:14:47 GMT):
have same problem as @CT123 faces. link to stackeoverflow https://stackoverflow.com/q/58898069/5563585 . please if anyone have any solution.

idanilt (Sun, 17 Nov 2019 17:07:52 GMT):
Has joined the channel.

idanilt (Sun, 17 Nov 2019 17:07:53 GMT):
Hello I couldn't log into the Jira to report it (hope you will have GitHub soon) The update in scripts/bootstrap.sh (https://github.com/hyperledger/fabric/commit/33139a966bb75377f65c5d9dc990619bd80ca22d) brook the ability to install some versions For example 2.x

BrettLogan (Sun, 17 Nov 2019 19:15:27 GMT):
Has joined the channel.

BrettLogan (Sun, 17 Nov 2019 19:15:28 GMT):
@idanilt Which version were you trying to use, v2.0.0-alpha?

BrettLogan (Sun, 17 Nov 2019 19:15:40 GMT):
The artifacts for v2.0.0-alpha were missing on GitHub, I added them. The following versions should be fine now 2.0.0-alpha, 1.4.4, 1.4.3, 1.4.2, 1.4.1, and 1.4.0. None of the 1.4x-RC releases have artifacts right now. Someone will add the release candidates and versions less than 1.4 tomorrow

BrettLogan (Sun, 17 Nov 2019 19:15:40 GMT):
The artifacts for `v2.0.0-alpha` were missing on GitHub, I added them. The following versions should be fine now `2.0.0-alpha, 1.4.4, 1.4.3, 1.4.2, 1.4.1, and 1.4.0`. None of the 1.4x-RC releases have artifacts right now. Someone will add the release candidates and versions less than 1.4 tomorrow

BrettLogan (Sun, 17 Nov 2019 19:25:27 GMT):
@noorkhan_92 What is the output of `cat /etc/os-release && curl --version && tar --version && gzip --version`

BrettLogan (Sun, 17 Nov 2019 19:25:51 GMT):
Trying to reproduce

noorkhan_92 (Mon, 18 Nov 2019 01:59:17 GMT):
@BrettLogan OS `Ubuntu 18.0.3` , curl `7.58.0` , gzip `1.6`

BrettLogan (Mon, 18 Nov 2019 02:04:14 GMT):
@noorkhan_92 Tar version?

noorkhan_92 (Mon, 18 Nov 2019 02:05:23 GMT):
@BrettLogan tar `1.29`

BrettLogan (Mon, 18 Nov 2019 02:09:25 GMT):
What is the output of `curl -v -s -L https://github.com/hyperledger/fabric/releases/download/v1.4.3/hyperledger-fabric-linux-amd64-1.4.3.tar.gz | tar xz`

BrettLogan (Mon, 18 Nov 2019 02:10:45 GMT):
It will be extensive, you can redirect it to a file and upload the file

noorkhan_92 (Mon, 18 Nov 2019 02:11:55 GMT):
let me try it

BrettLogan (Mon, 18 Nov 2019 02:12:19 GMT):
My best guess here is I shouldn't have removed the incremental download. Our assumption was the need for it was due to the fact we were serving our releases out of a server in Canada before we switched to GitHub. We thought with a truly global CDN we wouldn't experience downloads failing to download, but that does not appear to be the case. If you could provide me with that output it would help me confirm this hypothesis and I'll try to get the incremental download back into the script.

BrettLogan (Mon, 18 Nov 2019 02:12:57 GMT):
In the meantime you can use the `-b` flag to skip downloading the binaries and download them and put them on your path yourself

BrettLogan (Mon, 18 Nov 2019 02:13:25 GMT):
`https://github.com/hyperledger/fabric/releases/download/v1.4.3/hyperledger-fabric-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:13:41 GMT):
`https://github.com/hyperledger/fabric-ca/releases/download/v1.4.3/hyperledger-fabric-ca-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:14:11 GMT):
Those are the two sets of binaries you need, you also need to copy the `config` directory in the `fabric` specific one into your fabric-samples directory

noorkhan_92 (Mon, 18 Nov 2019 02:27:17 GMT):
I already have these two binaries but don't know how to set it. can you please tell me the steps...?

BrettLogan (Mon, 18 Nov 2019 02:28:30 GMT):
download the tarballs, move them to fabric-samples and do a `tar -xzvf https://github.com/hyperledger/fabric/releases/download/v1.4.3/hyperledger-fabric-linux-amd64-1.4.3.tar.gz && mv bin/config .`

BrettLogan (Mon, 18 Nov 2019 02:28:30 GMT):
download the tarballs, move them to fabric-samples and do a `tar -xzvf https://github.com/hyperledger/fabric/releases/download/v1.4.3/hyperledger-fabric-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:28:55 GMT):
`tar -xvf https://github.com/hyperledger/fabric-ca/releases/download/v1.4.3/hyperledger-fabric-ca-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:29:37 GMT):
You just want to untar them into the fabric samples directory

BrettLogan (Mon, 18 Nov 2019 02:29:37 GMT):
You just want to untar them into the fabric samples directory and then move the config from the bin directory that is created to the root of fabric-samples

BrettLogan (Mon, 18 Nov 2019 02:30:14 GMT):
so you fabric-samples directory should have a `bin` and a `config` directory

noorkhan_92 (Mon, 18 Nov 2019 02:30:44 GMT):
the above command given this error `gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now`

BrettLogan (Mon, 18 Nov 2019 02:39:10 GMT):
Delete those tar files and download them again using `wget https://github.com/hyperledger/fabric/releases/download/v1.4.3/hyperledger-fabric-linux-amd64-1.4.3.tar.gz` instead of curl

BrettLogan (Mon, 18 Nov 2019 02:39:35 GMT):
`https://github.com/hyperledger/fabric-ca/releases/download/v1.4.3/hyperledger-fabric-ca-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:39:35 GMT):
`wget https://github.com/hyperledger/fabric-ca/releases/download/v1.4.3/hyperledger-fabric-ca-linux-amd64-1.4.3.tar.gz`

BrettLogan (Mon, 18 Nov 2019 02:39:48 GMT):
And then try to untar them

noorkhan_92 (Mon, 18 Nov 2019 02:42:26 GMT):
i tar both binaries into fabric samples. now fabric samples contain bin and config folder. what next i need to do?

BrettLogan (Mon, 18 Nov 2019 02:43:51 GMT):
Run the bootstrap.sh script with the `-b` flag `./bootstrap.sh -b 1.4.3 1.4.3 0.4.15`

BrettLogan (Mon, 18 Nov 2019 02:43:51 GMT):
Run the bootstrap.sh script with the `-b` flag `./bootstrap.sh -b 1.4.3 1.4.3 0

noorkhan_92 (Mon, 18 Nov 2019 03:15:37 GMT):
Yeah hurray @BrettLogan i succesfully build my frist network. it is working fine now. Thanks a lot for your quick response...:v: :ok_hand:

BrettLogan (Mon, 18 Nov 2019 03:17:25 GMT):
No problem. Glad we were able to work through it!

noorkhan_92 (Mon, 18 Nov 2019 03:26:16 GMT):
If you don't mind to give link to this chat from my question on stackoverflow. maybe it help others also...

prayagk (Mon, 18 Nov 2019 04:41:22 GMT):
Has joined the channel.

prayagk (Mon, 18 Nov 2019 04:41:37 GMT):
https://stackoverflow.com/questions/58907733/error-while-bringing-up-custom-network-in-hyperledger-fabric Can anyone please answer this question? I'm stuck with this step. Any help will be appreciated.

Utsav_Solanki (Mon, 18 Nov 2019 05:49:11 GMT):
any one tried with AWS QLDB instead of couchDB, please let me know

Utsav_Solanki (Mon, 18 Nov 2019 05:49:11 GMT):
any one tried with AWS QLDB instead of couchDB in hyperledger fabric, please let me know

pavan_2299 (Mon, 18 Nov 2019 05:49:20 GMT):
Has joined the channel.

pavan_2299 (Mon, 18 Nov 2019 05:49:22 GMT):
Hey I have working on hyper ledger fabric from last 1 and half month and I am using fabcar sample network, I want to save the wallet information in couch db instead of system storage but I am not able to find the URL for connecting couch db. Can any one suggest something, either solution or right method to do it. In which file should i make changes...Thanks in Advance.......

RishavChatterjee (Mon, 18 Nov 2019 06:39:50 GMT):
Has joined the channel.

RishavChatterjee (Mon, 18 Nov 2019 06:39:50 GMT):
Hello People I have one question I am trying to trigger chaincode event in application at the time of invoking. I have 2 organizations and If I am invoking from org1, the event should be raised in org2(no invokation from org2). Is there any possibility to trigger event like that?

RishavChatterjee (Mon, 18 Nov 2019 06:39:58 GMT):
Thanks in advance

Bolzo 1 (Mon, 18 Nov 2019 07:39:27 GMT):
I'm not getting any error, i haven't tried yet. I'm curious about this aspect... I'll try and I'll come back with answers

Bolzo 1 (Mon, 18 Nov 2019 07:58:35 GMT):
It seems that is possible, I haven't tried to invoke chaincode (obviously, if the chaincode has instructions that are supported by only by couchdb, the endorsing peers must use couchdb)

Shabana1717344 (Mon, 18 Nov 2019 11:31:27 GMT):
Has joined the channel.

Shabana1717344 (Mon, 18 Nov 2019 12:47:16 GMT):
while installing hyper ledger fabric 1.4.3 images ,

Shabana1717344 (Mon, 18 Nov 2019 12:47:16 GMT):
while installing hyper ledger fabric 1.4.3 images , Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34412->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-peer:1.4.3 ==> FABRIC IMAGE: orderer Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:43708->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-orderer:1.4.3 ==> FABRIC IMAGE: ccenv Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:36684->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-ccenv:1.4.3 ==> FABRIC IMAGE: tools Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:57791->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-tools:1.4.3 ==> FABRIC IMAGE: baseos Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:53765->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.3 ==> FABRIC IMAGE: nodeenv Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:35042->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.3 ==> FABRIC IMAGE: javaenv Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45660->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-javaenv:1.4.3 ===> Pulling fabric ca Image ==> FABRIC CA IMAGE Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:33458->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-ca:1.4.3 ===> Pulling thirdparty docker images ==> THIRDPARTY DOCKER IMAGE: couchdb Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:59051->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-couchdb:0.4.15 ==> THIRDPARTY DOCKER IMAGE: kafka Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45524->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-kafka:0.4.15 ==> THIRDPARTY DOCKER IMAGE: zookeeper Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45133->[::1]:53: read: connection refused Error response from daemon: No such image: hyperledger/fabric-zookeeper:0.4.15

Shabana1717344 (Mon, 18 Nov 2019 12:54:46 GMT):
i am installing on ubuntu 16.after installing binaries its not pulling hyper ledger fabric images

Shabana1717344 (Mon, 18 Nov 2019 12:54:46 GMT):
i am installing on ubuntu 16.after installing binaries its not pulling hyper ledger fabric images,please suggest any soultion?

BrettLogan (Mon, 18 Nov 2019 12:58:57 GMT):
What happens if you pull one of those images manually. It appears to be a connection issue, not an issue with the script

adriksemenove (Mon, 18 Nov 2019 13:14:04 GMT):
Has joined the channel.

adriksemenove (Mon, 18 Nov 2019 13:16:27 GMT):
i am trying to create and join channel using " peer channel create -f ./channel-artifacts/channel.tx -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem "

adriksemenove (Mon, 18 Nov 2019 13:16:27 GMT):
i am trying to create and join channel using " peer channel create -f ./channel-artifacts/channel.tx -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem " but i m continuously getting two types of errors . 1)Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 and 2) Error BAD_REQUEST attempted to include a member which is not in consortium

adriksemenove (Mon, 18 Nov 2019 13:16:27 GMT):
i am trying to create and join channel using " peer channel create -f ./channel-artifacts/channel.tx -o orderer.example.com:7050 -c $CHANNEL_NAME --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem " but i m continuously getting two types of errors . 1)Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1 2) Error BAD_REQUEST attempted to include a member which is not in consortium if someone can help me through it

PrzemyslawSanecki (Mon, 18 Nov 2019 14:00:54 GMT):
Has joined the channel.

PrzemyslawSanecki (Mon, 18 Nov 2019 14:00:54 GMT):
hi, it looks like the folder `shim` doesn't exists on https://github.com/hyperledger/fabric/tree/master/core/chaincode I am getting ``` go get -u github.com/hyperledger/fabric/core/chaincode/shim package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /Users/PrzemekSanecki/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) ``` any thoughts?

msolefonte (Mon, 18 Nov 2019 14:07:34 GMT):
Hello. I has code that was working and not anymore after the 1.4.4 release. It is related to the installation of chaincode and the error I get is this one: ```package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)```. I have looked for shim inside of the chaincode folder and it does not appear, neither in the repo: https://github.com/hyperledger/fabric/tree/master/core/chaincode . It appears in the release 1.4 though: https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode

msolefonte (Mon, 18 Nov 2019 14:07:34 GMT):
Hello. I has code that was working and not anymore after the 1.4.4 release. It is related to the installation of chaincode and the error I get is this one: ```package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)``` I have looked for shim inside of the chaincode folder and it does not appear, neither in the repo: https://github.com/hyperledger/fabric/tree/master/core/chaincode . It appears in the release 1.4 though: https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode

msolefonte (Mon, 18 Nov 2019 14:07:34 GMT):
Hello. I has code that was working and not anymore after the 1.4.4 release. It is related to the installation of chaincode and the error I get is this one: ```package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)``` I have looked for shim inside of the chaincode folder and it does not appear, neither in the repo: https://github.com/hyperledger/fabric/tree/master/core/chaincode It appears in the release 1.4 though: https://github.com/hyperledger/fabric/tree/release-1.4/core/chaincode Has legacy code been deleted? Is there now any alternative to fabric shim?

tschulshuh (Mon, 18 Nov 2019 14:40:15 GMT):
Has joined the channel.

tschulshuh (Mon, 18 Nov 2019 14:40:16 GMT):
Same for me, since the update i cant instantiate chaincode. Using shim v1.4.2, any infos on this ?

msolefonte (Mon, 18 Nov 2019 14:58:26 GMT):
As far as I have researched, the image gets `shim` from the master branch of `hyperledger/fabric` and not from any specific release, which has produced old images to fail as they have deleted the shim folder. I am pretty sure a workaround may involve manually downloading the chaincode from the release 1.4, but this should be updated by them because affects all the legacy code. This is not a beta

awjh (Mon, 18 Nov 2019 15:14:32 GMT):
Will fabric 2.0 support go chaincode with a mod file? At the minute I am vendoring the necessary files.

Bolzo 1 (Mon, 18 Nov 2019 15:35:49 GMT):
After upgrading to 1.4.4 i receive the following error in my chaincode logs: `transaction returned with failure: Failed to submit task for processing` I'm sending transaction in a multithread envirorment, it's not supported anymore?

PrzemyslawSanecki (Mon, 18 Nov 2019 16:21:44 GMT):
as workaround run `GO111MODULE=on go get -u github.com/hyperledger/fabric/core/chaincode/shim@1.4.4`

mfromage (Mon, 18 Nov 2019 17:11:01 GMT):
Has joined the channel.

Shabana1717344 (Mon, 18 Nov 2019 18:21:28 GMT):
btl5037 how to run manually please guide

heeropunjabi (Mon, 18 Nov 2019 19:13:58 GMT):
Hi Team,

heeropunjabi (Mon, 18 Nov 2019 19:14:30 GMT):
can u pls anyone tell me how to achieve logging into file or Elastic search from Hyperledger Fabric

BrettLogan (Mon, 18 Nov 2019 19:31:23 GMT):
Logstash can send logs directly to Elasticsearch

BrettLogan (Mon, 18 Nov 2019 19:32:29 GMT):
For those of you missing the shim after 1.4.4 upgrade, the shim moved to the fabric-chaincode-go repository, please correct you import path accordingly

BrettLogan (Mon, 18 Nov 2019 19:32:29 GMT):
For those of you missing the shim after 1.4.4 upgrade, the shim move to fabric-chaincode-go repository, please correct you import path accordingly

xrain0 (Mon, 18 Nov 2019 22:49:09 GMT):
Has joined the channel.

xrain0 (Mon, 18 Nov 2019 22:49:10 GMT):
Hello guys, has anyone here implemented other Certificates issuer besides Fabric CA in production level?

gwalsh (Mon, 18 Nov 2019 23:17:43 GMT):
Has joined the channel.

fade2black (Tue, 19 Nov 2019 00:18:09 GMT):
Has joined the channel.

fade2black (Tue, 19 Nov 2019 00:18:10 GMT):
Why doesn't Hyperledger Fabric support C++ and Ruby? Anyone knows?

gwalsh (Tue, 19 Nov 2019 00:26:39 GMT):
I learned the key concepts of Fabric from the BTA material which states that the transaction log part of the ledger is an instance of LevelDB with update & delete functionality removed. Is this still accurate for 1.4? The official docs do not seem to specify exactly what is used. Thanks!

tale.jiang (Tue, 19 Nov 2019 03:12:32 GMT):
I always have a error like "2019-11-19T03:06:17.698900841Z 2019-11-19 03:06:17.698 UTC [core.comm] ServerHandshake -> ERRO 26cf TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:48214"

tale.jiang (Tue, 19 Nov 2019 03:13:35 GMT):
but it can endorse and transact

tale.jiang (Tue, 19 Nov 2019 03:16:08 GMT):
Hello

yxuco (Tue, 19 Nov 2019 03:16:16 GMT):
does your TLS cert contain TLS extension? X509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authentication

yxuco (Tue, 19 Nov 2019 03:16:50 GMT):
TLS keys must contain that the TLS Web extension to work.

tale.jiang (Tue, 19 Nov 2019 03:21:12 GMT):
ok, I try it.

tale.jiang (Tue, 19 Nov 2019 03:45:23 GMT):
sorry, I don't konw how to do it, and I need help

tale.jiang (Tue, 19 Nov 2019 04:00:10 GMT):
services: ca.org1.example.com: container_name: ca.org1.example.com image: hyperledger/fabric-ca environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca.org1.example.com - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/${CA_PKEY} - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/${CA_PKEY} ports: - "7054:7054" command: sh -c 'fabric-ca-server start --ca.certfile /ca.org1.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/${CA_PKEY} -b admin:adminpw -d' volumes: - ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config networks: default: aliases: - ca.org1.example.com peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer environment: # - CORE_LEDGER_STATE_STATEDATABASE=CouchDB # # - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=172.31.159.129:5984 - CORE_PEER_ID=peer0.org1.example.com - CORE_PEER_NETWORKID=aberic - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_CHAINCODEADDRESS=peer0.org1.example.com:7052 - CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.example.com:7052 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_ADDRESSAUTODETECT=true - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_VM_DOCKER_ATTACHSTDOUT=true # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=aberic_default - CORE_VM_DOCKER_TLS_ENABLED=true # - CORE_LOGGING_LEVEL=ERROR - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false

tale.jiang (Tue, 19 Nov 2019 04:00:29 GMT):
- CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt volumes: - /var/run/:/host/var/run/ - ../examples/chaincode/go/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: peer node start ports: - 7051:7051 - 7052:7052 - 7053:7053 networks: default: aliases: - peer0.org1.example.com extra_hosts: - "orderer0.example.com:ip" - "orderer1.example.com:ip" - "orderer2.example.com:ip"

tale.jiang (Tue, 19 Nov 2019 04:00:42 GMT):
This is my configure

yxuco (Tue, 19 Nov 2019 04:11:25 GMT):
Is it for tls handshake failure/ Did you generate the peers' tls/server.crt using fabric-ca? if so, can you post the output of "openssl x509 -in server.crt -text -noout"?

tale.jiang (Tue, 19 Nov 2019 04:17:43 GMT):
Is this what you say? It is '1.226' peer's server.crt

tale.jiang (Tue, 19 Nov 2019 04:17:44 GMT):
-----BEGIN CERTIFICATE----- MIICeTCCAh+gAwIBAgIRAOzTHuNE+eopEV3+nFs/9ewwCgYIKoZIzj0EAwIwdjEL MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG cmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs c2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTkxMTE1MTE0NjAwWhcNMjkxMTEyMTE0 NjAwWjBbMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE BxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEAxMWcGVlcjAub3JnMS5leGFtcGxlLmNv bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABO6mQLx/pf/Iivnh4I3YBaGc7Fkm vYvhNWrdrJISYgFYFy42KypW5jhyw/n6wCDAIYvFozarnUKblzg0+sX/oOujgagw gaUwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcD AjAMBgNVHRMBAf8EAjAAMCsGA1UdIwQkMCKAIK9bRnM0K54pptlWnWCMwZDY5TSb 4eEjaV5mxSJ+BIn8MDkGA1UdEQQyMDCCFnBlZXIwLm9yZzEuZXhhbXBsZS5jb22C BXBlZXIwgglsb2NhbGhvc3SHBH8AAAEwCgYIKoZIzj0EAwIDSAAwRQIhAKss6GbV 7Zwxf/iZL52i4LbrS9MSj+H2ZST+s+Z72LuKAiA5gw7chb4M4tiyFksnav+ExAhh mvzS0UXXkwBTKe4h1Q== -----END CERTIFICATE-----

tale.jiang (Tue, 19 Nov 2019 04:19:42 GMT):
it is this

tale.jiang (Tue, 19 Nov 2019 04:19:43 GMT):
Certificate: Data: Version: 3 (0x2) Serial Number: ec:d3:1e:e3:44:f9:ea:29:11:5d:fe:9c:5b:3f:f5:ec Signature Algorithm: ecdsa-with-SHA256 Issuer: C = US, ST = California, L = San Francisco, O = org1.example.com, CN = tlsca.org1.example.com Validity Not Before: Nov 15 11:46:00 2019 GMT Not After : Nov 12 11:46:00 2029 GMT Subject: C = US, ST = California, L = San Francisco, CN = peer0.org1.example.com Subject Public Key Info: Public Key Algorithm: id-ecPublicKey Public-Key: (256 bit) pub: 04:ee:a6:40:bc:7f:a5:ff:c8:8a:f9:e1:e0:8d:d8: 05:a1:9c:ec:59:26:bd:8b:e1:35:6a:dd:ac:92:12: 62:01:58:17:2e:36:2b:2a:56:e6:38:72:c3:f9:fa: c0:20:c0:21:8b:c5:a3:36:ab:9d:42:9b:97:38:34: fa:c5:ff:a0:eb ASN1 OID: prime256v1 NIST CURVE: P-256 X509v3 extensions: X509v3 Key Usage: critical Digital Signature, Key Encipherment X509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authentication X509v3 Basic Constraints: critical CA:FALSE X509v3 Authority Key Identifier: keyid:AF:5B:46:73:34:2B:9E:29:A6:D9:56:9D:60:8C:C1:90:D8:E5:34:9B:E1:E1:23:69:5E:66:C5:22:7E:04:89:FC X509v3 Subject Alternative Name: DNS:peer0.org1.example.com, DNS:peer0, DNS:localhost, IP Address:127.0.0.1 Signature Algorithm: ecdsa-with-SHA256 30:45:02:21:00:ab:2c:e8:66:d5:ed:9c:31:7f:f8:99:2f:9d: a2:e0:b6:eb:4b:d3:12:8f:e1:f6:65:24:fe:b3:e6:7b:d8:bb: 8a:02:20:39:83:0e:dc:85:be:0c:e2:d8:b2:16:4b:27:6a:ff: 84:c4:08:61:9a:fc:d2:d1:45:d7:93:00:53:29:ee:21:d5

yxuco (Tue, 19 Nov 2019 04:27:31 GMT):
the cert looks fine. where did you see the handshake error?

tale.jiang (Tue, 19 Nov 2019 04:28:30 GMT):
on peer

tale.jiang (Tue, 19 Nov 2019 04:32:30 GMT):
I have three peers, and all of them have the same error,but they can endorse

tale.jiang (Tue, 19 Nov 2019 04:32:32 GMT):
2019-11-19 04:29:03.118 UTC [core.comm] ServerHandshake -> ERRO 2756 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:49086 2019-11-19 04:29:13.741 UTC [core.comm] ServerHandshake -> ERRO 2757 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:49088 2019-11-19 04:29:33.573 UTC [core.comm] ServerHandshake -> ERRO 2758 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:49090 2019-11-19 04:30:04.005 UTC [core.comm] ServerHandshake -> ERRO 2759 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:49094 2019-11-19 04:30:43.951 UTC [core.comm] ServerHandshake -> ERRO 275a TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=192.168.1.226:49096 2019-11-19 04:30:48.749 UTC [endorser] callChaincode -> INFO 275b [mychannel][49591d70] Entry chaincode: name:"cscc" 2019-11-19 04:30:48.749 UTC [endorser] callChaincode -> INFO 275c [mychannel][49591d70] Exit chaincode: name:"cscc" (0ms) 2019-11-19 04:30:48.750 UTC [comm.grpc.server] 1 -> INFO 275d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.request_deadline=2019-11-19T04:33:48.692Z grpc.peer_address=192.168.1.160:51683 grpc.code=OK grpc.call_duration=1.452238ms 2019-11-19 04:31:00.239 UTC [endorser] callChaincode -> INFO 275e [mychannel][acb41b3b] Entry chaincode: name:"txcc" 2019-11-19 04:31:01.566 UTC [peer.chaincode.aberic-peer0.org1.example.com-txcc-2.0] func2 -> INFO 275f ex02 Invoke 2019-11-19 04:31:01.567 UTC [peer.chaincode.aberic-peer0.org1.example.com-txcc-2.0] func2 -> INFO 2760 Aval = 99, Bval = 201 2019-11-19 04:31:01.568 UTC [endorser] callChaincode -> INFO 2761 [mychannel][acb41b3b] Exit chaincode: name:"txcc" (1329ms) 2019-11-19 04:31:01.568 UTC [comm.grpc.server] 1 -> INFO 2762 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.request_deadline=2019-11-19T04:34:00.238Z grpc.peer_address=192.168.1.160:51683 grpc.code=OK grpc.call_duration=1.330055736s 2019-11-19 04:31:05.417 UTC [comm.grpc.server] 1 -> INFO 2763 unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2019-11-19T04:31:20.416Z grpc.peer_address=192.168.1.160:51683 grpc.code=OK grpc.call_duration=290.121µs

heeropunjabi (Tue, 19 Nov 2019 07:02:04 GMT):
Hi Team

heeropunjabi (Tue, 19 Nov 2019 07:02:42 GMT):
can pls anyone tell me d process for logging on the hyperledger fabric network

tale.jiang (Tue, 19 Nov 2019 07:05:21 GMT):
what are pls and d?

ultimo2020 (Tue, 19 Nov 2019 08:28:06 GMT):
Hi to everyone. Does anyone have a working kubernetes Fabric cluster? I would be interrested in deployment documentation. Thanks in advance.

simplexity-ckcclc (Tue, 19 Nov 2019 08:33:03 GMT):
Has joined the channel.

tale.jiang (Tue, 19 Nov 2019 08:36:09 GMT):
I would also like to ask a question that how I should query endorsers who endorse for the transaction.

tschulshuh (Tue, 19 Nov 2019 09:05:38 GMT):
JSON

sshKashyap (Tue, 19 Nov 2019 09:14:55 GMT):
Got an error while trying to create a channel ' channelall'

sshKashyap (Tue, 19 Nov 2019 09:14:56 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creatransaction for new channel 'channelall', could not succesfully apply updateemplate configuration: error authorizing update: error validating DeltaSet:cy for [Group] /Channel/Application not satisfied: implicit policy evaluatailed - 0 sub-policies were satisfied, but this policy requires 1 of the 'A' sub-policies to be satisfied

heeropunjabi (Tue, 19 Nov 2019 09:32:59 GMT):
Hi @tale.jiang could you please help me understand the process of logging into ELK architecture from Hyperledger fabric network.

tale.jiang (Tue, 19 Nov 2019 09:51:54 GMT):
I learn Fabric recently, I do not also understand it,

sshKashyap (Tue, 19 Nov 2019 10:00:34 GMT):
Resolved, nevermind, thanks

skdeshmukh (Tue, 19 Nov 2019 10:32:14 GMT):
Hi Guys, does anybody know how can we capture logs in Hyperledger network or if logs are already there, where can we find it and use it to display in Kibana?

skdeshmukh (Tue, 19 Nov 2019 10:32:14 GMT):
Hi Guys, does anybody know how can we capture logs in Hyperledger network or if logs are already there, where can we find it?

lepar (Tue, 19 Nov 2019 11:15:29 GMT):
For anyone wanting a production environment reference, I created this generic network with TLS and Raft. https://github.com/lepar/hyperledger-fabric-generic-network

sshKashyap (Tue, 19 Nov 2019 12:00:42 GMT):
got a quick question, when we install chaincode with this command - docker exec -it cli peer chaincode install -n mycc -p github.com/chaincode/sacc -v v0, the "github.com/chaincode/sacc" is a package from the golang packages, where can I see the code and how can I modify it as per my needs. Please correct my assumptions whenever I'm wrong

zaparoli.mauricio (Tue, 19 Nov 2019 14:16:37 GMT):
Has joined the channel.

zaparoli.mauricio (Tue, 19 Nov 2019 14:16:38 GMT):
I've been having this issue when following the Commercial Paper tutorial on Windows 10 Home and Docker Toolbox. When I get to the point where I run "./monitordocker.sh net_basic" I get the fallowing error "curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused". Can anyone help me?

spmcnamara (Tue, 19 Nov 2019 16:06:41 GMT):
Need some help. prod environment is running HLF v1.4.2. Just upgraded dev environment tools from old 1.2 stuff which brought those tools (configtxgen, etc.) to v1.4.5. Now when I'm trying to run configtxgen, I get `Orderer.EtcdRaft' has invalid keys: Addresses, Capabilities, Organizations.` Were changes introduced between the 1.4.2 and 1.4.5 tools that would break the old configs?

icarrascol (Tue, 19 Nov 2019 16:28:32 GMT):
hello everyone, does anyone know which is the procedure to update an entire organization certificates

gwalsh (Tue, 19 Nov 2019 17:10:40 GMT):
In answer to my own question, I found some useful information in the 1.3 release notes. https://hyperledger-fabric.readthedocs.io/en/release-1.3/ledger/ledger.html#blockchain This information is not present in 1.4 docs so I am forced to assume it persists. Although I still think it would be useful.

razasikander (Wed, 20 Nov 2019 04:41:53 GMT):
Hello everyone any one know how to add a new organization into the channel with out using the cli and giving all my peers/org certs to the new org . (Im using fabric version 1.4.1)

knagware9 (Wed, 20 Nov 2019 05:16:07 GMT):
No , its not go lang package. Its go chaincode written which present in your local hard disk and mounted to docker container via volume in docker-compose ..you can modify code in your local machine

knagware9 (Wed, 20 Nov 2019 05:17:34 GMT):
logs already there. You can check using docker logs container-name for particular peer/orderer/ca container

prayagk (Wed, 20 Nov 2019 05:19:42 GMT):
Hi. Does any one know how an ordering node belongs to an organization?

razasikander (Wed, 20 Nov 2019 06:28:56 GMT):
"docker logs peer0.org1.com"

UdkReddy (Wed, 20 Nov 2019 09:50:01 GMT):
What are types of blocks stored in fabric? I was encoding blocks in channel and found this variable `data.data[0].payload.header.channel_header.type` for which some of blocks has value `1` and for some blocks it is `3` Can anyone please explain what does these type define

sshKashyap (Wed, 20 Nov 2019 09:54:26 GMT):
Got it! Thanks mate!

barney2k7 (Wed, 20 Nov 2019 10:08:38 GMT):
Have a look here https://github.com/hyperledger/fabric/tree/release-1.4/protos/common

waleed (Wed, 20 Nov 2019 10:48:08 GMT):
Hi everyone, I have a question regarding tokenization on fabric if we use EVM on fabric, are we able to create Utility Tokens and Security Tokens?

PrzemyslawSanecki (Wed, 20 Nov 2019 10:59:08 GMT):
hi everyone, I have question regarding channel Policies. I can't get rid of this kind of error in peers of all organisations ``` [gossip.service] func1 -> INFO 036 Elected as a leader, starting delivery service for channel app_channel 2019-11-20 10:48:09.231 UTC [blocksProvider] DeliverBlocks -> ERRO 037 [app_channel] Got error &{FORBIDDEN} ``` app_channel is an application channel. Clearly something in my configtx.yaml is wrong, but in general which part of configuration holds policies for this particular peer action?

sshKashyap (Wed, 20 Nov 2019 11:55:33 GMT):
Why would I be getting this error response: status:500 message:"failed to execute transaction *insert random tx id*: error sending: timeout expired while executing transaction"

sshKashyap (Wed, 20 Nov 2019 11:55:39 GMT):
And How do i avoid it ?

sshKashyap (Wed, 20 Nov 2019 11:57:33 GMT):
Do i have to change the low-level chaincode, eventually increasing the timeout length,(don't know if I can actually do that or how) so that I don't get the error or did I mess up at my modified chaincode ?

heenas06 (Wed, 20 Nov 2019 12:29:21 GMT):
Hi Everyone ..is anyone facing issue with downloading hyperledger fabric 1.4.4 Binaries and Docker Images???

BrettLogan (Wed, 20 Nov 2019 12:37:02 GMT):
@heenas06 What issue are you seeing

sshKashyap (Wed, 20 Nov 2019 13:35:16 GMT):
I used to until a while ago, but now I'm good, what's your issue, be specific

Taaanos (Wed, 20 Nov 2019 13:44:36 GMT):
Hi,

Taaanos (Wed, 20 Nov 2019 13:44:36 GMT):
Hi, maybe you mean Sawtooth and not Fabric? Fabric doesn't support tokens yet neither has EVM support. Version 2.x will start support for Fabric native tokens.

Taaanos (Wed, 20 Nov 2019 13:44:36 GMT):
Hi, maybe you mean Sawtooth and not Fabric?

Taaanos (Wed, 20 Nov 2019 13:44:36 GMT):
Hi, maybe you mean Sawtooth and not Fabric? Fabric doesn't support tokens yet neither has EVM support.

Taaanos (Wed, 20 Nov 2019 13:46:07 GMT):
Anyone with experience on:

Taaanos (Wed, 20 Nov 2019 13:46:07 GMT):
Anyone with experience on: * Hyperledger Explorer * Fabric on Kubernetes

Taaanos (Wed, 20 Nov 2019 14:11:18 GMT):
`2019-11-20T13:18:09.477Z - error: [Client.js]: Channel not found for name mychannel` any ideas what might be wrong?

alokkv (Wed, 20 Nov 2019 14:40:59 GMT):
hi friends, i have been trying to deploy hyperledger fabric in red hat linux. i was able to brought up all containers and created channel. no issues so far. but i am troubling to install packges for fabricSDK(node packages). has anyone knows about the issue. is hyperledger fabric packages can only be installed in ubundu. can anyone please replay.

dhurkes (Wed, 20 Nov 2019 14:48:44 GMT):
i am not able to use peer lifecycle command.. even i have alpha 2.0 docker images as well root@0d44c3260295:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer lifecycle chaincode package mycc.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/abstore/go/ --lang golang --label mycc_1 Error: unknown command "lifecycle" for "peer" Run 'peer --help' for usage.

dhurkes (Wed, 20 Nov 2019 14:48:44 GMT):
root@dell2-PowerEdge-R720:/home/dell2/Documents/Dhursh/fabric-samples# peer version peer: Version: 1.4.3 Commit SHA: b8c4a6a Go version: go1.11.5 OS/Arch: linux/amd64 Chaincode: Base Image Version: 0.4.15 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger

Taaanos (Wed, 20 Nov 2019 14:52:15 GMT):
what does `peer version` reports?

Taaanos (Wed, 20 Nov 2019 14:52:44 GMT):
Can you elaborate?

dhurkes (Wed, 20 Nov 2019 14:54:02 GMT):
It returns... root@dell2-PowerEdge-R720:/home/dell2/Documents/Dhursh/fabric-samples# peer version peer: Version: 1.4.3 Commit SHA: b8c4a6a Go version: go1.11.5 OS/Arch: linux/amd64 Chaincode: Base Image Version: 0.4.15 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger

Taaanos (Wed, 20 Nov 2019 14:54:53 GMT):
ok you are not using a peer 2.0, so it makes sense. `peer lifecycle` is only available from alpha 2.0

Taaanos (Wed, 20 Nov 2019 14:55:01 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/commands/peerlifecycle.html

Taaanos (Wed, 20 Nov 2019 14:55:07 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/commands/peerchaincode.html

alokkv (Wed, 20 Nov 2019 15:02:25 GMT):
i was not able to install fabric-ca-client and fabric-client packages for fabricSDK to work

Taaanos (Wed, 20 Nov 2019 15:03:00 GMT):
which sdk are you using?

dhurkes (Wed, 20 Nov 2019 15:08:05 GMT):
thank you for the clarification... please suggest how can i upgrade it to alpha 2.0

Taaanos (Wed, 20 Nov 2019 15:11:57 GMT):
Upgrading from Fabric v1.4 to the v2.0 Alpha release is not supported. This tutorial will be updated after the 2.0 Alpha release.

Taaanos (Wed, 20 Nov 2019 15:12:10 GMT):
source: https://hyperledger-fabric.readthedocs.io/en/master/upgrading_your_network_tutorial.html

Taaanos (Wed, 20 Nov 2019 15:12:24 GMT):
Additionally there is no upgrade support to the v2.0 Alpha release, and no intended upgrade support from the the Alpha release to future versions of v2.x.

Taaanos (Wed, 20 Nov 2019 15:12:30 GMT):
source: https://hyperledger-fabric.readthedocs.io/en/master/whatsnew.html#release-notes

Taaanos (Wed, 20 Nov 2019 15:12:50 GMT):
So that means that you will be able to upgrade from 1.4 to 2.x when the release is stable

barney2k7 (Wed, 20 Nov 2019 15:20:24 GMT):
Binaries are now distributed via github instead of nexus, see https://jira.hyperledger.org/browse/FAB-17092

barney2k7 (Wed, 20 Nov 2019 15:20:41 GMT):
if you use and old bootstrap.sh, it might look in the wrong place

barney2k7 (Wed, 20 Nov 2019 15:20:41 GMT):
if you use and old bootstrap .sh, it might look in the wrong place

Swhit210 (Wed, 20 Nov 2019 19:25:15 GMT):
`rm -f bootstrap.sh` `curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o bootstrap.sh` `chmod +x bootstrap.sh`

Swhit210 (Wed, 20 Nov 2019 19:25:15 GMT):
`rm -f bootstrap.sh` `curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o bootstrap.sh` `chmod +x bootstrap.sh` `./bootstrap.sh 1.4.1 -s -d`

Swhit210 (Wed, 20 Nov 2019 19:25:43 GMT):
So i was previously executed a command like this: `rm -f bootstrap.sh` `curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o bootstrap.sh` `chmod +x bootstrap.sh` `./bootstrap.sh 1.4.1 -s -d`

Swhit210 (Wed, 20 Nov 2019 19:25:43 GMT):
So i was previously executing a command like this: `rm -f bootstrap.sh` `curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o bootstrap.sh` `chmod +x bootstrap.sh` `./bootstrap.sh 1.4.1 -s -d`

Swhit210 (Wed, 20 Nov 2019 19:25:43 GMT):
So i was previously executing a command like this: `rm -f bootstrap.sh` `curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o bootstrap.sh` `chmod +x bootstrap.sh` `./bootstrap.sh 1.4.4 -s -d`

Swhit210 (Wed, 20 Nov 2019 19:25:47 GMT):
What should I do now?

Swhit210 (Wed, 20 Nov 2019 19:30:03 GMT):
I am seeing this notification when I use the above script: `1.4.3 fabric-ca-client binary is not available to download`

Swhit210 (Wed, 20 Nov 2019 19:30:03 GMT):
I am seeing this notification when I use the above script: `1.4.4 fabric-ca-client binary is not available to download`

Swhit210 (Wed, 20 Nov 2019 19:30:03 GMT):
I was seeing this notification when I use the above script: `1.4.4 fabric-ca-client binary is not available to download`

Swhit210 (Wed, 20 Nov 2019 19:44:35 GMT):
I made this change and it is working correctly now: `./bootstrap.sh -s -- 1.4.1 1.4.1 0.4.18`

Swhit210 (Wed, 20 Nov 2019 19:44:35 GMT):
I made this change and it is working correctly now: `./bootstrap.sh -s -- 1.4.4 1.4.4 0.4.18`

Swhit210 (Wed, 20 Nov 2019 21:26:34 GMT):
I am getting this error when spinning up my network and the first peer attempts to connect to the associated couchdb: `Error initializing ledger provider: unable to connect to CouchDB, check the hostname and port: error unmarshalling json data: invalid character '<' looking for beginning of value`. Has anyone seen this before?

Swhit210 (Wed, 20 Nov 2019 21:26:34 GMT):
I am getting this error when spinning up my network and the first peer attempts to connect to the associated couchdb: `Error initializing ledger provider: unable to connect to CouchDB, check the hostname and port: error unmarshalling json data: invalid character '<' looking for beginning of value`. Has anyone seen this before? OS: MacOS Mojave v10.14.6 Go Version: go version go1.13.4 darwin/amd64 Node Version: v10.16.0 NPM Version: 6.9.2 Docker Version: 19.03.5

Swhit210 (Wed, 20 Nov 2019 21:26:34 GMT):
I am getting this error when spinning up my network and the first peer attempts to connect to the associated couchdb: `Error initializing ledger provider: unable to connect to CouchDB, check the hostname and port: error unmarshalling json data: invalid character '<' looking for beginning of value`. Has anyone seen this before? OS: MacOS Mojave v10.14.6 Go Version: go version go1.13.4 darwin/amd64 Node Version: v10.16.0 NPM Version: 6.9.2 Docker Version: 19.03.5 hyperledger/fabric-couchdb: 0.4.18

Swhit210 (Wed, 20 Nov 2019 21:26:34 GMT):
I am getting this error when spinning up my network and the first peer attempts to connect to the associated couchdb: `Error initializing ledger provider: unable to connect to CouchDB, check the hostname and port: error unmarshalling json data: invalid character '<' looking for beginning of value`. Has anyone seen this before? OS: MacOS Mojave v10.14.6 Go Version: go version go1.13.4 darwin/amd64 Node Version: v10.16.0 NPM Version: 6.9.2 Docker Version: 19.03.5 hyperledger/fabric-couchdb: 0.4.18 hyperledger/fabric-couchdb: latest Other Containers: 1.4.1 and latest

nsivraj (Wed, 20 Nov 2019 21:49:39 GMT):
Has joined the channel.

BrettLogan (Wed, 20 Nov 2019 22:41:46 GMT):
Somewhere in your configuration it looks like you forgot to change a default value. We can see it says `invalid character: '<'` which lead me to believe somewhere you have something like `couchDBAddress:

` and it is catching the start of that placeholder

alokkv (Thu, 21 Nov 2019 04:42:24 GMT):
fabric node SDK

alokkv (Thu, 21 Nov 2019 04:42:24 GMT):
fabric node SDK. please note all this setup works fine in ubunthu. i am tring to install in red hat

alokkv (Thu, 21 Nov 2019 04:42:24 GMT):
fabric node SDK. please note all this setup works fine in ubunthu. i am tring to install in red hat. that is were i am facing issue

aiga (Thu, 21 Nov 2019 05:07:04 GMT):
Hello, can anyone tell why peer chaincode command can not take a arguments from txt file in bash script? ` #!/bin/bash while read -r line1 <&3 && read -r line2 <&4; do peer chaincode invoke -c '{"Args":["createDocRecord", "$line1" , "$line2"]}' -o orderer.example.com:7050 -C bloom-filter-channel -n bloom-filter --peerAddresses peer0.org2.example.com:9051 done 3

Adhavpavan (Thu, 21 Nov 2019 05:23:28 GMT):
Issue: Issue while migrating from kafka to RAFT Hello there, I am migrating from kafka to raft, When I have changed state from "NORMAL" to "STATE_MAINTENANCE" and created the final expected envelope as per the procedure. Note: We are using BYFN script HF version: 1.4.3 My CLI pointed to Org1MSP, I signed config update transaction, later I changed CLI pointing to Org2MSP and signed, finally submitted the new channel config update to the orderer.After submission, getting a following error message. Error on CLI: "Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" Orderer log: "[channel: mychannel] Rejecting broadcast of config message from 172.21.0.13:51078 because of error: error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" Please let me know if I am doing something wrong. Thanks in advance.

Adhavpavan (Thu, 21 Nov 2019 05:23:28 GMT):
Issue: Getting error while migrating from kafka to RAFT Hello there, I am migrating from kafka to raft, When I have changed state from "NORMAL" to "STATE_MAINTENANCE" and created the final expected envelope as per the procedure. Note: We are using BYFN script HF version: 1.4.3 My CLI pointed to Org1MSP, I signed config update transaction, later I changed CLI pointing to Org2MSP and signed, finally submitted the new channel config update to the orderer.After submission, getting a following error message. Error on CLI: "Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" Orderer log: "[channel: mychannel] Rejecting broadcast of config message from 172.21.0.13:51078 because of error: error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" Please let me know if I am doing something wrong. Thanks in advance.

BrettLogan (Thu, 21 Nov 2019 05:24:18 GMT):
What version of node are you using, what is the error you are receiving? Ubuntu and RHEL are hosted by different sources for node so the version of NPM isn't guaranteed to be the same. As well as sometimes you have to upgrade the node-gyp version that ships with NPM itself. So please share as much detail as you can and we'd be more than happy to help

alokkv (Thu, 21 Nov 2019 06:10:38 GMT):

Clipboard - November 21, 2019 11:40 AM

alokkv (Thu, 21 Nov 2019 06:10:43 GMT):
when i try to install fabric node package using the command $ npm install fabric-ca-client 1.1.0 i am getting the following error

alokkv (Thu, 21 Nov 2019 06:11:10 GMT):

Clipboard - November 21, 2019 11:41 AM

BrettLogan (Thu, 21 Nov 2019 06:12:28 GMT):
So this looks like you have two different versions of npm. The ubuntu version has a version of NPM which still has a reference to the cairo repo, the RHEL version does not. Can you confirm which versions of npm you have on both systems `npm -v`

alokkv (Thu, 21 Nov 2019 06:27:06 GMT):
mu node version is v8.16.2 and npm version is 6.4.1

alokkv (Thu, 21 Nov 2019 06:27:06 GMT):
my node version is v8.16.2 and npm version is 6.4.1. it is same for ubundu version also

vieiramanoel (Thu, 21 Nov 2019 07:08:38 GMT):
@yacovm when msp is setting up with an hsm set, it will search for a key with same ski that its public cert has, right? What part of certificate is used as SKI? I've tried subject key id ``` bytes := eliptic.Marshal(elliptic.P256(), X,Y) ski := sha256.Sum256(ecpt)[:] ``` (where X, Y were extracted from pub key at cert after fabric-ca has signed the CSR) And none them has been successfull So as example: peer with this certificate https://hastebin.com/neketizumu.rb is searching for a key with a SKI 2845996533ebe464de13fe2fbf2e15fe84cc9cde09022cbc5899e9a3c2223505 not 9c1373528c0ec490e1a54bd95caa992fe2a3ff83 neither the hash of its bytes. I know how to set ski at my private key (I just need to set CKA_ID attr for related p11 object). But Idk how this ski is calculated by msp to set in key

vieiramanoel (Thu, 21 Nov 2019 07:08:38 GMT):
@yacovm when msp is setting up with an hsm set, it will search for a key with same ski that its public cert has, right? What part of certificate is used as SKI? I've tried - subject key id ``` bytes := eliptic.Marshal(elliptic.P256(), X,Y) ski := sha256.Sum256(ecpt)[:] ``` (where X, Y were extracted from pub key at cert after fabric-ca has signed the CSR) And none them has been successfull So as example: peer with this certificate https://hastebin.com/neketizumu.rb is searching for a key with a SKI 2845996533ebe464de13fe2fbf2e15fe84cc9cde09022cbc5899e9a3c2223505 not 9c1373528c0ec490e1a54bd95caa992fe2a3ff83 neither the hash of its bytes. I know how to set ski at my private key (I just need to set CKA_ID attr for related p11 object). But Idk how this ski is calculated by msp to set in key

vieiramanoel (Thu, 21 Nov 2019 07:08:38 GMT):
@yacovm when msp is setting up with an hsm set, it will search for a key with same ski that its public cert has, right? What part of certificate is used as SKI? I've tried - subject key id; and ``` bytes := eliptic.Marshal(elliptic.P256(), X,Y) ski := sha256.Sum256(ecpt)[:] ``` (where X, Y were extracted from pub key at cert after fabric-ca has signed the CSR) And none them has been successfull So as example: peer with this certificate https://hastebin.com/neketizumu.rb is searching for a key with a SKI 2845996533ebe464de13fe2fbf2e15fe84cc9cde09022cbc5899e9a3c2223505 not 9c1373528c0ec490e1a54bd95caa992fe2a3ff83 neither the hash of its bytes. I know how to set ski at my private key (I just need to set CKA_ID attr for related p11 object). But Idk how this ski is calculated by msp to set in key

vieiramanoel (Thu, 21 Nov 2019 07:08:38 GMT):
@yacovm when msp is setting up with an hsm set, it will search for a key with same ski that its public cert has, right? What part of certificate is used as SKI? I've tried - subject key id; and ``` bytes := eliptic.Marshal(elliptic.P256(), X,Y) ski := sha256.Sum256(ecpt)[:] ``` (where X, Y were extracted from pub key at cert after fabric-ca has signed the CSR) And none of them has been successfull So as example: peer with this certificate https://hastebin.com/neketizumu.rb is searching for a key with a SKI 2845996533ebe464de13fe2fbf2e15fe84cc9cde09022cbc5899e9a3c2223505 not 9c1373528c0ec490e1a54bd95caa992fe2a3ff83 neither the hash of its bytes. I know how to set ski at my private key (I just need to set CKA_ID attr for related p11 object). But Idk how this ski is calculated by msp to set in key

BrettLogan (Thu, 21 Nov 2019 07:10:06 GMT):
I'll take a shot at it in the morning, can you give me the os version for both `cat /etc/os-release`

alokkv (Thu, 21 Nov 2019 07:12:38 GMT):
thank you.i am attaching the cat out put. i am working on hyperledger 1.1 version NAME="Red Hat Enterprise Linux Server" VERSION="7.7 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.7" PRETTY_NAME="Red Hat Enterprise Linux Server 7.7 (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.7 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.7"

sshKashyap (Thu, 21 Nov 2019 07:18:47 GMT):
I have implemented fabric in centos(AWS EC2), I didn't seem to have any issue, do you need any specific log info of mine?

ultimo2020 (Thu, 21 Nov 2019 07:20:16 GMT):
Hi to everyone. I had a question about off-chain and Hyperledger. Has anyone played around and implemented IPFS or Private data to comply with the personal data laws ? Or some other method? Some links or documentation would be nice to see. Thanks in advance.

vieiramanoel (Thu, 21 Nov 2019 07:30:45 GMT):
@nyet If you can see this too :) I've been for at least 4 days reading fabric's code searching for this haha

yacovm (Thu, 21 Nov 2019 07:40:58 GMT):
``` // Marshall the public key raw := elliptic.Marshal(k.privKey.Curve, k.privKey.PublicKey.X, k.privKey.PublicKey.Y) // Hash it hash := sha256.New() hash.Write(raw) return hash.Sum(nil) ```

alokkv (Thu, 21 Nov 2019 07:42:00 GMT):
were you able to install fabricSDK. if yes were you able to install fabric-ca-client and fabric-client node packages.

vieiramanoel (Thu, 21 Nov 2019 07:50:36 GMT):
worked, thnks Was that in some part of the code that I missed or did you know it from ahead?

msolefonte (Thu, 21 Nov 2019 08:04:56 GMT):
How can I get DEBUG LEVEL log from Hyperledger Explorer?

davidkel (Thu, 21 Nov 2019 08:07:13 GMT):
@alokkv perhaps this will help ? https://stackoverflow.com/questions/22100213/package-cairo-was-not-found-in-the-pkg-config-search-path-node-j-s-install-canv

yacovm (Thu, 21 Nov 2019 08:07:35 GMT):
You missed, @v

yacovm (Thu, 21 Nov 2019 08:07:41 GMT):
You missed

FedMan (Thu, 21 Nov 2019 08:26:09 GMT):
Hi guys I have a issue with my HLF network when I record lot of block sthe network slow down quite considerably (either for post and get call). any suggestion on why this happen and how to make them faster?

yacovm (Thu, 21 Nov 2019 08:27:12 GMT):
you missed

sung (Thu, 21 Nov 2019 08:31:55 GMT):
Has joined the channel.

dhurkes (Thu, 21 Nov 2019 09:12:26 GMT):
please help me understand what is this path (/opt/gopath/src/github.com/hyperledger/fabric)..why we use this everywhere in fabric config files

alokkv (Thu, 21 Nov 2019 09:44:09 GMT):
sure thank you, if it works i will let you know

mfaisaltariq (Thu, 21 Nov 2019 10:06:35 GMT):
Hi Everyone, does you have a link with a list of all variables of Peer from core.yaml that can be used to override settings in docker-compose

Taaanos (Thu, 21 Nov 2019 11:37:47 GMT):
it's the path that go looks for imported packages etc

sshKashyap (Thu, 21 Nov 2019 11:38:50 GMT):
New error: I Modified Fabcar.go and added more key value pairs succesfully Installed and instantiated new chaincode in channel from peer0.org1 Then I tried setting data with createCar, faced with an error timeout

anuragp090 (Thu, 21 Nov 2019 11:47:50 GMT):
Has joined the channel.

anuragp090 (Thu, 21 Nov 2019 11:47:51 GMT):
Hi,

anuragp090 (Thu, 21 Nov 2019 11:51:42 GMT):
Hi, In Hyperledger Fabric network configuration, I want to create a user with a custom username instead of the default User1, User2 etc. How can I achieve that?

anuragp090 (Thu, 21 Nov 2019 11:51:42 GMT):
Hi, In Hyperledger Fabric network configuration, I want to create a user with a custom username instead of the default User1, User2... How can I achieve that?

JulienTocci (Thu, 21 Nov 2019 11:57:38 GMT):
Did somebody ever make mutual TLS working with the node sdk?

Taaanos (Thu, 21 Nov 2019 12:09:43 GMT):
at which component of fabric are you referring to?

Taaanos (Thu, 21 Nov 2019 12:10:27 GMT):
You usually do that as an admin from a cli container

ahmad-raza (Thu, 21 Nov 2019 12:49:15 GMT):
Hi all can someone help???? There is error in peer logs

ahmad-raza (Thu, 21 Nov 2019 12:49:35 GMT):

Screenshot from 2019-11-21 17-47-58.png

ahmad-raza (Thu, 21 Nov 2019 12:49:44 GMT):
and in orderer logs

ahmad-raza (Thu, 21 Nov 2019 12:49:58 GMT):

Screenshot from 2019-11-21 17-48-25.png

ahmad-raza (Thu, 21 Nov 2019 12:50:24 GMT):
Channel is created and joined by peers

ahmad-raza (Thu, 21 Nov 2019 12:50:24 GMT):
Channel is created and joined by peers chaincode is installed on peers Instantiate proposal is good but failed to instantitate chaincode????

JulienTocci (Thu, 21 Nov 2019 13:04:19 GMT):
The last logs looks like you are missing a signature as it needs 1 of the Readers and it found none

ahmad-raza (Thu, 21 Nov 2019 13:07:32 GMT):
i have verified all certs . Created certs again . Using default configtx.yaml file but error remains same

BrettLogan (Thu, 21 Nov 2019 13:27:02 GMT):
https://github.com/golang/go/wiki/GOPATH

BrettLogan (Thu, 21 Nov 2019 13:28:27 GMT):
On your local machine when installing Go you can specify you own gopath, but in general projects are `/src/`

Swhit210 (Thu, 21 Nov 2019 13:30:45 GMT):
That was a good suggestion, but I can't find any '<' characters hanging around anywhere.

davidkel (Thu, 21 Nov 2019 13:50:08 GMT):
Looks like your couch system is contacting something that is returning an html response. I've seen this happen for example when the end point is a proxy. Try shelling into your peer container and doing a curl on the endpoint to see the response you are getting

davidkel (Thu, 21 Nov 2019 13:50:08 GMT):
Looks like your peer is contacting something that is returning an html response. I've seen this happen for example when the end point is a proxy. Try shelling into your peer container and doing a curl on the endpoint to see the response you are getting

davidkel (Thu, 21 Nov 2019 13:50:08 GMT):
Looks like your peer is contacting something that is returning an html response. I've seen this happen for example when the end point going to a proxy server. Try shelling into your peer container and doing a curl on the endpoint to see the response you are getting

davidkel (Thu, 21 Nov 2019 13:50:08 GMT):
Looks like your peer is contacting something that is returning an html response. I've seen this happen for example when the end point is going to a proxy server. Try shelling into your peer container and doing a curl on the endpoint to see the response you are getting

Swhit210 (Thu, 21 Nov 2019 14:00:34 GMT):
My peer won't actually spin up, the error is coming from docker logs once the peer container is down.

Swhit210 (Thu, 21 Nov 2019 14:00:34 GMT):
Alright I did that and got "Notification DNS Failure":

davidkel (Thu, 21 Nov 2019 14:02:02 GMT):
You could change your docker composer to start the peer image but run a shell rather than the peer command

davidkel (Thu, 21 Nov 2019 14:02:02 GMT):
You could change your docker compose file to start the peer image but run a shell rather than the peer command

davidkel (Thu, 21 Nov 2019 14:02:38 GMT):
then you would have a container you can try

Swhit210 (Thu, 21 Nov 2019 14:05:05 GMT):
Okay I did that and tried wget and got this response: `Proxy request sent, awaiting response... 200 OK` `Length: unspecified [text/html]` `Saving to: 'index.html'`

Swhit210 (Thu, 21 Nov 2019 14:05:13 GMT):
I think you are right about the html

Swhit210 (Thu, 21 Nov 2019 14:12:18 GMT):
`

The host name resolution (DNS lookup) for this host name ( couchdb0.ford.example.com ) has failed. The Internet address may be misspelled or obsolete, the host ( couchdb0.example.com ) may be temporarily unavailable, or the DNS server may be unresponsive.

`

Swhit210 (Thu, 21 Nov 2019 14:12:18 GMT):
`

The host name resolution (DNS lookup) for this host name ( couchdb0.ford.example.com ) has failed. The Internet address may be misspelled or obsolete, the host ( couchdb0.example.com ) may be temporarily unavailable, or the DNS server may be unresponsive.

`

Swhit210 (Thu, 21 Nov 2019 14:13:02 GMT):
Okay got that and curl my couchdb and received an HTML response with "Notification DNS Failure"

Swhit210 (Thu, 21 Nov 2019 14:13:02 GMT):
Okay got that and curled my couchdb and received an HTML response with "Notification DNS Failure"

Swhit210 (Thu, 21 Nov 2019 14:14:03 GMT):
Thanks, I will work on researching how to resolve DNS issues within containers.

trevoro1 (Thu, 21 Nov 2019 17:11:32 GMT):
I have a question about users on a byfn network. If I have a byfn network then how do I confirm the users on the network? Is this done by checking the yaml files, or is there a command to enter to check the users and the certificates?

MHBauer (Thu, 21 Nov 2019 20:46:30 GMT):
How do I use the new chaincode lifecycle?

MHBauer (Thu, 21 Nov 2019 20:46:45 GMT):
`error code 500, msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only`

MHBauer (Thu, 21 Nov 2019 20:47:04 GMT):
Trying to instantiate after installing.

MHBauer (Thu, 21 Nov 2019 20:47:24 GMT):
the design indicates that peer should have some "approve" type function, but I'm not finding it.

MHBauer (Thu, 21 Nov 2019 21:23:21 GMT):
the answer is "don't use peer chaincode" subcommand at all

kamranghyan (Fri, 22 Nov 2019 06:14:11 GMT):
Has joined the channel.

kamranghyan (Fri, 22 Nov 2019 06:14:12 GMT):
fabric implementation in nodejs project

kamranghyan (Fri, 22 Nov 2019 06:14:20 GMT):
need help please

maniankara (Fri, 22 Nov 2019 07:23:55 GMT):
https://chat.hyperledger.org/channel/fabric-documentation?msg=eAeng3vvca3h2WLr9

Ruiz-Tapiador (Fri, 22 Nov 2019 10:43:03 GMT):
Has joined the channel.

Hong3Nguyen (Fri, 22 Nov 2019 11:16:16 GMT):
Hello everyone, I have a problem when connect from a peer to orderer with this mess 2019-11-21 14:59:30.589 UTC [cli.common] readBlock -> INFO 064 Got status: &{BAD_REQUEST} 2019-11-21 14:59:30.592 UTC [channelCmd] InitCmdFactory -> INFO 065 Endorser and orderer connections initialized Error: timeout waiting for channel creation

msolefonte (Fri, 22 Nov 2019 12:24:52 GMT):
Has anyone deployed a network with raft without cryptogen?

lepar (Fri, 22 Nov 2019 12:28:06 GMT):
Yes

lepar (Fri, 22 Nov 2019 12:28:24 GMT):
https://github.com/lepar/hyperledger-fabric-generic-network+

lepar (Fri, 22 Nov 2019 12:28:24 GMT):
https://github.com/lepar/hyperledger-fabric-generic-network

SaurabhBhattacharya (Fri, 22 Nov 2019 12:30:37 GMT):
Has joined the channel.

SaurabhBhattacharya (Fri, 22 Nov 2019 12:30:38 GMT):
I need to install Hyperledger Fabric over Redhat Linux without using the docker images. Is there a source of binaries that can be directly deployed over Redhat?

maniankara (Fri, 22 Nov 2019 12:32:52 GMT):
@Hong3Nguyen Looks like a env var problem? When do you get this error? while issuing some commands in peer?

BrettLogan (Fri, 22 Nov 2019 12:34:04 GMT):
Our binaries are published on our GitHub release pages. They are OS independent, just grab the ones that correspond to your architecture

maniankara (Fri, 22 Nov 2019 12:34:09 GMT):
@SaurabhBhattacharya There is a way which uses systemd: https://upcloud.com/community/tutorials/hyperledger-fabric-systemd/

Hong3Nguyen (Fri, 22 Nov 2019 12:36:30 GMT):
Hi @maniankara,

Hong3Nguyen (Fri, 22 Nov 2019 12:37:08 GMT):
thank you for reply, I got this error when I try to set up a channel from a peer

Hong3Nguyen (Fri, 22 Nov 2019 12:38:00 GMT):
after running the orderer and peer on two separate machines, I try to set up a channel for my network

maniankara (Fri, 22 Nov 2019 12:39:03 GMT):
@Hong3Nguyen are you able to list the channel with `peer channel list` ? One option is to start your orderer in debug mode and try the same command

BrettLogan (Fri, 22 Nov 2019 12:39:52 GMT):
@maniankara generally changes are submitted to our 2.0 branch and then backported to release-1.4 if we feel they should be. You should submit to 2.0 and then the Maintainers will tell you to cherry pick to 1.4 if they think it should be. In regards to Gerrit, this morning we are moving the last of our projects off of Gerrit and onto GitHub. You can already go ahead and open a pull request in GitHub.

dhurkes (Fri, 22 Nov 2019 12:41:09 GMT):
chaincode instantiation is getting failed with the below error

Hong3Nguyen (Fri, 22 Nov 2019 12:41:22 GMT):
I tried to check the channel, but nothing is there. I think that I did not succesfully create a channel from my peer

dhurkes (Fri, 22 Nov 2019 12:42:34 GMT):
unable to instantiate the chaincode.. getting below error , installing chaincode is fine root@26f255a5ce37:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/hello/ 2019-11-22 12:30:32.543 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-11-22 12:30:32.544 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2019-11-22 12:30:32.833 UTC [chaincodeCmd] install -> INFO 003 Installed remotely response: root@26f255a5ce37:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.hm.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/hm.com/orderers/orderer.hm.com/msp/tlscacerts/tlsca.hm.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["name","Dhurkes"]}' -P "AND ('PESMSP.peer','DBSMSP.peer')" 2019-11-22 12:32:34.603 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-11-22 12:32:34.603 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/chaincode/hello chaincode/input/src/github.com/chaincode/hello/hello.go:83:5: too many arguments to return have (string, string, nil) want (string, error) "

maniankara (Fri, 22 Nov 2019 12:44:00 GMT):
@Hong3Nguyen Yes, but if you were able to run that command successfully, then you're good.

maniankara (Fri, 22 Nov 2019 12:44:48 GMT):
@Hong3Nguyen if you dont mind can you post the command which you are using for channel creation?

Hong3Nguyen (Fri, 22 Nov 2019 12:45:46 GMT):
I used this command to set up the channel "peer channel create -o orderer.example.com:7050 -c channelall -f /var/hyperledger/configs/channelall.tx"

maniankara (Fri, 22 Nov 2019 12:47:03 GMT):
are you able to `telnet orderer.example.com 7050` from the peer?

Hong3Nguyen (Fri, 22 Nov 2019 12:51:48 GMT):
I got a mess: "connection closed by foreign host"

maniankara (Fri, 22 Nov 2019 12:52:28 GMT):
I think your firewall is blocking may be.

Hong3Nguyen (Fri, 22 Nov 2019 12:54:04 GMT):
hum I try to disable the firewall with command "sudo ufw disable"

Hong3Nguyen (Fri, 22 Nov 2019 12:54:04 GMT):
hum I try to disable the firewall with command "sudo ufw disable" but it doesnot work also :(

SaurabhBhattacharya (Fri, 22 Nov 2019 13:06:33 GMT):
Thanks for the support. I will check and revert back.

maniankara (Fri, 22 Nov 2019 13:32:15 GMT):
@Hong3Nguyen did you mean the telnet? Then check if that service is running on the orderer hgost

maniankara (Fri, 22 Nov 2019 13:32:15 GMT):
@Hong3Nguyen did you mean the telnet? Then check if that service is running on the orderer host

Hong3Nguyen (Fri, 22 Nov 2019 13:58:39 GMT):
yeah let me check the connection betwene dockers

trevoro1 (Fri, 22 Nov 2019 14:36:24 GMT):
is there a recommended style or set of methods to writing chaincode in nodejs? I have seen several styles.

lepar (Fri, 22 Nov 2019 14:47:49 GMT):
There is not

heeropunjabi (Fri, 22 Nov 2019 14:52:41 GMT):
Hi Team

heeropunjabi (Fri, 22 Nov 2019 14:53:03 GMT):
Could you pls help me on the blockchain-analyzer fabricbeat issue ?

heeropunjabi (Fri, 22 Nov 2019 14:53:14 GMT):
@salmanbaset ?

heeropunjabi (Fri, 22 Nov 2019 14:54:17 GMT):

Screenshot 2019-11-22 at 20.23.36.png

KaseyAlusi (Fri, 22 Nov 2019 15:48:58 GMT):
Hi all, I just heard a rumor that chaincode support for Go is going to be deprecated and moved to Javascript is this true?

davidkel (Fri, 22 Nov 2019 16:07:19 GMT):
No this isn't true. Go will always be a first class language for developing chaincode

KaseyAlusi (Fri, 22 Nov 2019 16:08:12 GMT):
Thank you for the clarification!

davidkel (Fri, 22 Nov 2019 16:09:52 GMT):
Also note that Fabric offers the option to develop chaincode using javascript/typescript and java as well

samurai (Fri, 22 Nov 2019 16:32:14 GMT):
Has joined the channel.

samurai (Fri, 22 Nov 2019 16:32:15 GMT):
How do you setup hyperledger explorer to work with hyperledger fabric?

abityildiz (Fri, 22 Nov 2019 20:19:48 GMT):
hi all,i have a setup kafka network.i am use the node.js sdk.i get the all transaction list via node.js sdk but perfonmans very bad.there are 5000 transaction .how can i get all transaction ?

maniankara (Fri, 22 Nov 2019 20:49:12 GMT):
@samurai I had recently made some simplified instructions for a meetup here: https://github.com/maniankara/hyperledger-meetup (Look for Demo1 -> Setup hyperledger explorer)

BrettLogan (Fri, 22 Nov 2019 21:02:15 GMT):
Are you trying to query the entire history in a single transaction

BrettLogan (Fri, 22 Nov 2019 21:15:23 GMT):
If you are you should switch to query with pagination

samurai (Fri, 22 Nov 2019 21:36:26 GMT):
Maniankara, thank you so much.

samurai (Sat, 23 Nov 2019 04:54:02 GMT):

Screenshot at 2019-11-23 04-48-12.png

samurai (Sat, 23 Nov 2019 04:55:12 GMT):
The screenshot shows the error i encountered, please could you help in solving this problem and thanks in advance.

maniankara (Sat, 23 Nov 2019 14:54:41 GMT):
@samurai Are the fabric and explorer in the same n/w. `docker network ls`

samurai (Sat, 23 Nov 2019 17:37:33 GMT):
Sorry i don't understand the question

samurai (Sat, 23 Nov 2019 17:38:57 GMT):

Screenshot at 2019-11-23 17-37-46.png

samurai (Sat, 23 Nov 2019 17:39:22 GMT):
That is a screenshot of my docker images

mustName (Sat, 23 Nov 2019 19:09:36 GMT):
Has joined the channel.

mustName (Sat, 23 Nov 2019 19:09:37 GMT):
hi all

mustName (Sat, 23 Nov 2019 19:09:55 GMT):
hope somebody could help me

mustName (Sat, 23 Nov 2019 19:10:29 GMT):
i've done some changes on first-network, to add more orgs

mustName (Sat, 23 Nov 2019 19:11:43 GMT):
network ups ok, but when I try to invoke my chaincode (fabcar, javascript) using "query.js" I get this message: [Channel.js]: Channel:mychannel received discovery error:access denied 2019-11-23T19:11:28.960Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied 2019-11-23T19:11:28.961Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:mychannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:mychannel Discovery error:access denied

mustName (Sat, 23 Nov 2019 19:12:51 GMT):
If I invoke chaincode with "peer chaincode invoke" from "cli" I get sucessful response

mustName (Sat, 23 Nov 2019 19:13:55 GMT):
is the problem about certs files in local keystore or something similar?

abityildiz (Sat, 23 Nov 2019 20:09:40 GMT):
yes,i am try all the transcation in the query

maniankara (Sat, 23 Nov 2019 22:18:17 GMT):
@samurai No, I didnt ask you the list of images but output of that command. Nevertheless, looks like your peer(s) are not running? Can you send me the output of the commands: `docker ps -a` and also `docker network ls`

samurai (Sat, 23 Nov 2019 23:38:26 GMT):

Screenshot at 2019-11-23 23-33-07.png

samurai (Sat, 23 Nov 2019 23:38:32 GMT):

Screenshot at 2019-11-23 23-34-02.png

SatheeshNehru (Sun, 24 Nov 2019 03:53:45 GMT):
Is there any sdk to replace configtxgen configtxlator and docker operation?will be glad if sample code is shared?

maniankara (Sun, 24 Nov 2019 10:26:53 GMT):
@samurai Looks like your container/service `ca.example.com` is not running? If its not running due to 'Finding private ey/certificate' problems, you have to modify your `docker-compose` file under `ca.example.com` section under `environment` to reflect the same as those under `ls -al crypto-config/ordererOrganizations/example.com/ca/`. After

maniankara (Sun, 24 Nov 2019 10:27:16 GMT):
@samurai Please keep posted your results and observations.

samurai (Sun, 24 Nov 2019 11:47:12 GMT):
OK will work on it tonight and let you know the outcome. Thanks a lot for all your help

usamahabib95 (Sun, 24 Nov 2019 16:39:07 GMT):
Has joined the channel.

usamahabib95 (Sun, 24 Nov 2019 16:39:09 GMT):
hi everyone I am new hyperledger fabric I have installed it, have tried the examples given in fabric-samples now I want to build my own fabric based application but I don't know where and how to start I have tried googling but all I get is about the fabric-samples which i have tried can any one help me please?

usamahabib95 (Sun, 24 Nov 2019 16:39:09 GMT):
hi everyone I am new to hyperledger fabric I have installed it, have tried the examples given in fabric-samples now I want to build my own fabric based application but I don't know where and how to start, I have tried googling but all I get is about the fabric-samples which i have tried can any one help me please?

TurbeTao (Sun, 24 Nov 2019 16:40:56 GMT):
Has joined the channel.

TurbeTao (Sun, 24 Nov 2019 16:40:59 GMT):
hy all, i am a new learner of HF. I am confused are there any difference between fabric and composer?

BrettLogan (Mon, 25 Nov 2019 02:45:51 GMT):
Composer was a tool for deploying Fabric. It is however deprecated and development is no longer active

Talha_Wahid (Mon, 25 Nov 2019 05:01:58 GMT):
Has joined the channel.

savitrisonnad (Mon, 25 Nov 2019 06:42:02 GMT):
Has joined the channel.

savitrisonnad (Mon, 25 Nov 2019 06:42:19 GMT):
Hi all,

savitrisonnad (Mon, 25 Nov 2019 06:43:58 GMT):
I want to install and deploy hyperledger fabric in redhat linux. How can i do this wihout using docker images?

msolefonte (Mon, 25 Nov 2019 08:44:25 GMT):
Does orderer .crt files include public and private key or only private?

msolefonte (Mon, 25 Nov 2019 08:44:25 GMT):
Do orderer .crt files include public and private key or only private?

msolefonte (Mon, 25 Nov 2019 08:44:25 GMT):
Do orderer .crt files include public and private key or only public?

noorkhan_92 (Mon, 25 Nov 2019 08:57:06 GMT):
what does this error mean and why it is...?

noorkhan_92 (Mon, 25 Nov 2019 08:57:42 GMT):
throw error; ^ Error: The gRPC binary module was not installed. This may be fixed by running "npm rebuild" Original error: Cannot find module '/usr/local/hyperledger/fabric-samples/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node'

noorkhan_92 (Mon, 25 Nov 2019 08:58:13 GMT):
i tried npm rebuild and everything but not working

davidkel (Mon, 25 Nov 2019 09:04:19 GMT):
gRPC node module is a binary node module. Usually it can download a prebuilt binary version but for some reason it failed to do so in your case. So what it should do is try to compile it from the source node that is installed when the node module is downloaded but I guess that fails too meaning that it cannot install the gRPC node module

noorkhan_92 (Mon, 25 Nov 2019 09:08:47 GMT):
So now, do you have any alternative solution...? @davidkel

vishantkamboj (Mon, 25 Nov 2019 09:12:33 GMT):
Has joined the channel.

Taaanos (Mon, 25 Nov 2019 09:15:25 GMT):
What exactly do you want to achieve? Docker containers are a crucial part of Fabric's security model.

davidkel (Mon, 25 Nov 2019 09:15:55 GMT):
You will need to read the complete output of the install and determine why the binary download failed, if it's a valid issue that it cannot download it then you would need to determine why the compilation of the source code failed and search google for solutions.

vishantkamboj (Mon, 25 Nov 2019 09:17:03 GMT):
Client@123

Taaanos (Mon, 25 Nov 2019 09:21:58 GMT):
The usual case is that most of the time everyone starts by build on top of byfn.sh. Here are some other resources that might be of help. It really depends on what you want to do? Do you care about business logic - set up a basic network and build chaincodes Do you care about operations - read the operations section in fabric documentation and go through the commercial paper tutorial. You may find these useful https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html https://github.com/chainHero/heroes-service

msolefonte (Mon, 25 Nov 2019 09:22:42 GMT):
Can someone check this? Thanks https://stackoverflow.com/questions/59028371/tls-handshake-fails-when-raft-mode-is-enabled

Taaanos (Mon, 25 Nov 2019 09:24:52 GMT):
It looks like a certification issue. Potential issue: your peer doesn't have a certificate signed by its org. Or the org is not stated in the channel policy. Are you going to an example/tutorial?

maniankara (Mon, 25 Nov 2019 09:24:54 GMT):
@savitrisonnad I wrote a blog post about deploying it with `systemd` here: https://upcloud.com/community/tutorials/hyperledger-fabric-systemd/

Taaanos (Mon, 25 Nov 2019 09:26:42 GMT):
Interesting read :grinning:

Taaanos (Mon, 25 Nov 2019 09:35:33 GMT):
Not exactly what you are looking for but take a look at theseQ

Taaanos (Mon, 25 Nov 2019 09:35:33 GMT):
Not exactly what you are looking for but take a look at these: 1. New programming model for Java, Node and upcoming go https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=2ahUKEwj0l47zh4XmAhWkURUIHYwSDhoQFjADegQIAhAC&url=https%3A%2F%2Fjira.hyperledger.org%2Fsecure%2Fattachment%2F16735%2Ffabric-sdk-programming-model.pdf&usg=AOvVaw0BrgSA_eAVqR7niI3zzdbR 2. https://hgf18.sched.com/event/G8sF/chaincode-best-practices-sheehan-anderson-srinivasan-muralidharan-state-street

Taaanos (Mon, 25 Nov 2019 09:40:45 GMT):
As a matter of fact: https://github.com/hyperledger/fabric-rfcs/blob/master/text/0000-chaincode-go-new-programming-model.md Go will follow the new programming model

davidkel (Mon, 25 Nov 2019 10:06:31 GMT):
This new programming model is offered as an alternative rather than a replacement

usamahabib95 (Mon, 25 Nov 2019 11:15:42 GMT):
I have my own business logics so I want to ask is that I have to build my app on the byfn example because the app I am going to build is my academic project

banannn (Mon, 25 Nov 2019 11:51:59 GMT):
Has joined the channel.

banannn (Mon, 25 Nov 2019 11:52:17 GMT):
Hi everyone. I have a network with 4 orgs containing 1 peer each. Unfortunattely my peer-dockers was killed due to low hdd space. Stopped images were removed and now I am trying to recreate my peers and have some issues with it. I want to recreate same peers, with the same crypto material. I recreated my peers, joined existing channel using .block file. Next step I normally do with fresh network is updating anchors. This time im getting error (BAD_REQUEST -- error applying config update to existing channel 'settlementchannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application/ParkingOrgMSP be at version 0, but it is currently at version 1) I can install chaincodes on my peers, but I cant update it.. The CC version on the channel is still same. Here are the logs from peer after trying to update chaincode: 2019-11-25 11:47:04.538 UTC [committer.txvalidator] Validate -> INFO 7c55 [settlementchannel] Validated block [4444] in 0ms, 2019-11-25 11:46:24.583 UTC [gossip.privdata] fetchPrivateData -> WARN 7c47 Do not know any peer in the channel( settlementchannel ) that matches the policies , aborting, 2019-11-25 11:46:24.583 UTC [gossip.privdata] reconcile -> ERRO 7c48 reconciliation error when trying to fetch missing items from different peers: Empty membership, 2019-11-25 11:46:24.583 UTC [gossip.privdata] run -> ERRO 7c49 Failed to reconcile missing private info, error: Empty membership, 2019-11-25 11:46:30.099 UTC [endorser] callChaincode -> INFO 7c4a [][85a52d5f] Entry chaincode: name:"lscc" , 2019-11-25 11:46:30.121 UTC [lscc] executeInstall -> INFO 7c4b Installed Chaincode [orderscontract] Version [v86868688] to peer, 2019-11-25 11:46:30.121 UTC [endorser] callChaincode -> INFO 7c4c [][85a52d5f] Exit chaincode: name:"lscc" (22ms), 2019-11-25 11:46:30.121 UTC [comm.grpc.server] 1 -> INFO 7c4d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.176.16:50162 grpc.code=OK grpc.call_duration=24.782263ms, 2019-11-25 11:46:30.974 UTC [endorser] callChaincode -> INFO 7c4e [settlementchannel][32b9b3e3] Entry chaincode: name:"lscc" , 2019-11-25 11:46:33.987 UTC [gossip.privdata] StoreBlock -> WARN 7c4f [settlementchannel] Could not fetch all missing collection private write sets from remote peers. Will commit block [4443] with missing private write sets:[txID: 9916b77d960d31f624b93e34b7beffed980729813e3665595897a0e4fa93a6e6, seq: 0, namespace: orderscontract, collection: airportCollection, hash: 481347e96e7c0dac226044287db1c28f8bd5f0d061be2c9fffced1d70d1ed030, txID: 9916b77d960d31f624b93e34b7beffed980729813e3665595897a0e4fa93a6e6, seq: 0, namespace: orderscontract, collection: airportAirlineCollection, hash: 511f19f474853335d4e6c72a64253305c2006c074859b9b219c73c55a1cf6fea, 2019-11-25 11:46:34.012 UTC [statebasedval] ValidateAndPrepareBatch -> WARN 7c50 Block [4443] Transaction index [0] TxId [9916b77d960d31f624b93e34b7beffed980729813e3665595897a0e4fa93a6e6] marked as invalid by state validator. Reason code [MVCC_READ_CONFLICT], 2019-11-25 11:47:04.508 UTC [endorser] callChaincode -> INFO 7c51 [settlementchannel][32b9b3e3] Exit chaincode: name:"lscc" (33533ms), 2019-11-25 11:47:04.508 UTC [comm.grpc.server] 1 -> INFO 7c52 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.176.16:50174 grpc.code=OK grpc.call_duration=33.534206231s, 2019-11-25 11:47:04.537 UTC [gossip.privdata] StoreBlock -> INFO 7c54 [settlementchannel] Received block [4444] from buffer, 2019-11-25 11:47:04.537 UTC [kvledger] CommitWithPvtData -> INFO 7c53 [settlementchannel] Committed block [4443] with 1 transaction(s) in 30549ms (state_validation=24ms block_and_pvtdata_commit=7ms state_commit=30515ms) commitHash=[b029d9f2e3e5ef08a39b307703521d4b95fc611f9d6abb1929c4f4f1bd97599a], 2019-11-25 11:47:24.584 UTC [gossip.privdata] fetchPrivateData -> WARN 7c56 Do not know any peer in the channel( settlementchannel ) that matches the policies , aborting, 2019-11-25 11:47:24.584 UTC [gossip.privdata] reconcile -> ERRO 7c57 reconciliation error when trying to fetch missing items from different peers: Empty membership, 2019-11-25 11:47:24.584 UTC [gossip.privdata] run -> ERRO 7c58 Failed to reconcile missing private info, error: Empty membership I think that recreated peers doesnt know about each other and this is causing problems. Am I right? What steps should I do to recreate previously existed peer?

BrettLogan (Mon, 25 Nov 2019 14:20:27 GMT):
In 2.0 we will be providing a new Chaincode model that will allow you to run chaincode without Docker. It will be a lot like the build pack model Heroku popularized, wherein you provide us all the information we need to build and launch your Chaincode in any way you see fit, and anywhere you see fit. One of the community members is also working to bring a Chaincode server directly to the 2.0 codebase for running Chaincode natively as a first-class citizen

BrettLogan (Mon, 25 Nov 2019 14:20:27 GMT):
In 2.0 we will be providing a new Chaincode model that will allow you to run chaincode without Docker. It will be a lot like the build pack model Heroku popularized, wherein you provide us all the information we need to build and launch your Chaincode. One of the community members is also working to bring a Chaincode server directly to the 2.0 codebase for running Chaincode natively as a first-class citizen

samurai (Mon, 25 Nov 2019 17:07:55 GMT):

Screenshot at 2019-11-25 17-06-00.png

samurai (Mon, 25 Nov 2019 17:10:48 GMT):
I decided to try the demo 1 in my research office and the screenshot is how far i have got. when i type http://localhost:8080 i get an error. see second screenshot

samurai (Mon, 25 Nov 2019 17:10:56 GMT):

Screenshot at 2019-11-25 17-09-39.png

dayerra (Mon, 25 Nov 2019 17:21:32 GMT):
Has joined the channel.

athira (Mon, 25 Nov 2019 19:00:37 GMT):
Has joined the channel.

athira (Mon, 25 Nov 2019 19:00:56 GMT):
#indy

Koushik (Mon, 25 Nov 2019 19:34:53 GMT):
Hi Guys, I am having a hard time removing a organization from my channel. I have three organizations defined in the configtx.yaml, 1.) OrdererOrg, 2.) Org1 3.) Org2 both Org1 and Org2 are set as the consortiumn founders. I want to remove `Org2` from the channel as it is corrupted, however, when executing the command ```peer channel update -f update_in_envelope.pb -c my-channel -o orderer.example.com:7050 --tls --cafile $ORDERER_CA``` ```shell Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'example-channel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied ``` My question is does Org2 need to sign of the removal as well even though it is going to get removed? *These are the commands I have executed to remove Org1 from the channel. All of these commands are executed in Org1. ```shell # org1 peer channel fetch config config_block.pb -o orderer.example.com:7050 -c mychannel configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json # org1 jq 'del(.channel_group.groups.Application.groups.Org2MSP)' config.json > modified_config.json # org1 configtxlator proto_encode --input config.json --type common.Config --output config.pb configtxlator proto_encode --input modified_config.json --type common.Config --output modified_config.pb configtxlator compute_update --channel_id mychannel --original config.pb --updated modified_config.pb --output update.pb # org1 configtxlator proto_decode --input update.pb --type common.ConfigUpdate | jq . > update.json echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat update.json)'}}}' | jq . > update_in_envelope.json configtxlator proto_encode --input update_in_envelope.json --type common.Envelope --output update_in_envelope.pb # org1 peer channel signconfigtx -f update_in_envelope.pb peer channel update -f update_in_envelope.pb -c mychannel -o orderer.example.com:7050 # I get the error ```

Koushik (Mon, 25 Nov 2019 19:36:36 GMT):
Hi Guys, I am having a hard time removing a organization from my channel. I have three organizations defined in the configtx.yaml, 1.) OrdererOrg, 2.) Org1 3.) Org2 both Org1 and Org2 are set as the consortiumn founders. I want to remove `Org2` from the channel as it is corrupted, however, when executing the command shell ``` peer channel update -f update_in_envelope.pb -c my-channel -o orderer.example.com:7050 --tls --cafile $ORDERER_CA ``` ```shell Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'example-channel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied ``` My question is does Org2 need to sign of the removal as well even though it is going to get removed? *These are the commands I have executed to remove Org1 from the channel. All of these commands are executed in Org1. ```shell # org1 peer channel fetch config config_block.pb -o orderer.example.com:7050 -c mychannel configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json # org1 jq 'del(.channel_group.groups.Application.groups.Org2MSP)' config.json > modified_config.json # org1 configtxlator proto_encode --input config.json --type common.Config --output config.pb configtxlator proto_encode --input modified_config.json --type common.Config --output modified_config.pb configtxlator compute_update --channel_id mychannel --original config.pb --updated modified_config.pb --output update.pb # org1 configtxlator proto_decode --input update.pb --type common.ConfigUpdate | jq . > update.json echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat update.json)'}}}' | jq . > update_in_envelope.json configtxlator proto_encode --input update_in_envelope.json --type common.Envelope --output update_in_envelope.pb # org1 peer channel signconfigtx -f update_in_envelope.pb peer channel update -f update_in_envelope.pb -c mychannel -o orderer.example.com:7050 # I get the error ```

tengc (Mon, 25 Nov 2019 19:38:25 GMT):
Has joined the channel.

tengc (Mon, 25 Nov 2019 19:38:25 GMT):
Hi everyone, I have a Fabric network deployed using Docker Swarm in my local network. I'm trying to include a Fabric nodes from a different network. I'm trying to resolve this by making the Docker swarm manager nodes internet facing on both the local node and the remote node. Its at the point where both nodes can function properly as managers. Deploying the Fabric network does cause the containers to boot up. However, none of the containers on different hosts are capable of communicating with each other anymore. Does anyone have any ideas for resolving this or alternative approaches?

rpocase (Mon, 25 Nov 2019 20:17:43 GMT):
Is there any information about how to configure fabric events to only provide transactions to a user based on their permissions? https://hyperledger-fabric.readthedocs.io/en/release-1.4/peer_event_services.html SEEMS to indicate this is possible and defers to the SDK docs for how a client would register for events, but not seeing any more granular information about how to ensure a user only gets events on transactions that are relevant to them

rpocase (Mon, 25 Nov 2019 20:56:44 GMT):
The best I've been able to tell, you can only register for events through a peer, so any events the peer can see the end user would be able to see without manual filtering on the application side. Our use case is a common user base interacting with the fabric network through a GUI with the GUI providing permissions based on the HLF network (i.e., a user can login to the GUI if the fabric CA recognizes their credentials). I was hopeful that the permissions set at the CA could be used to filter events to users with a session

arun-94 (Tue, 26 Nov 2019 00:39:59 GMT):
Has joined the channel.

arun-94 (Tue, 26 Nov 2019 00:40:02 GMT):
Hi all, I have a question related to dynamically adding a new organization to my network. Currently the updated channel configuration object (channel-artifacts/xxxx.json) generated with a new network is getting synced between different containers via "docker volume feature". If I need to integrate a new organization on a different network do I have to add another layer on top of it which send the json file via a REST API, and then use it for processing? Also, how do I share the ordererOrganization information present in crypto-config to the new organization?

JustinShen (Tue, 26 Nov 2019 04:59:22 GMT):
Has joined the channel.

JustinShen (Tue, 26 Nov 2019 04:59:23 GMT):
hello everyone, I cant't start my order nodes, I am using kafka (4 kafka nodes, 3 zookeeper nodes), orderer nodes always exit after start about 4 minutes. And orderer nodes have error like " Cannot post CONNECT MESSAGE = dial tcp: i/o timeout panic: [channel: testchainid] Cannot post CONNECT message = dial tcp: i/o timeout go routine 37[running]: " And kafka nodes have error like " Invalid receive (size = 1195725856 larger than 104857600) "

JustinShen (Tue, 26 Nov 2019 04:59:58 GMT):
It's so strange , while orderer send message larger than 1GB to kafka

JustinShen (Tue, 26 Nov 2019 05:01:04 GMT):
my orderer(and other ) version is 1.4.0

BrettLogan (Tue, 26 Nov 2019 05:02:09 GMT):
Are you using your own Kafka images, or the fabric-kafka image?

JustinShen (Tue, 26 Nov 2019 05:02:51 GMT):
I am using the fabric-kafka image , version: 0.4.14

BrettLogan (Tue, 26 Nov 2019 05:03:45 GMT):
Are you overriding any of the default configuration parameters in it, or are you running it as-is?

JustinShen (Tue, 26 Nov 2019 05:05:11 GMT):
Thanks for response:grinning: ,

JustinShen (Tue, 26 Nov 2019 05:05:23 GMT):
you mean kafka or orderer ?

BrettLogan (Tue, 26 Nov 2019 05:07:46 GMT):
kafka

JustinShen (Tue, 26 Nov 2019 05:08:08 GMT):
for kafka, add somethings like this , environment: - TZ=Asia/Shanghai - KAFKA_MESSAGE_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 # 99 * 1024 * 1024 B - KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false - KAFKA_BROKER_ID=4 - KAFKA_MIN_INSYNC_REPLICAS=2 - KAFKA_DEFAULT_REPLICATION_FACTOR=3 - KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181

BrettLogan (Tue, 26 Nov 2019 05:18:00 GMT):
I am trying to recall from memory something Jason (maintains the orderer) said in a conversation we had once: You have your max message size set to ~100MB, the limit on the endpoint is a little less than 100MB. We send additional metadata across with the message and as such if your setting is 100MB and we add some other information to the message, you are over the endpoint max message size

BrettLogan (Tue, 26 Nov 2019 05:18:00 GMT):
I am trying to recall from memory something Jason (maintains the orderer) said in a conversation we had once: You have your max message size set to ~100MB, the limit on the grpc endpoint is a little less than 100MB. We send additional metadata across with the message and as such if your setting is 100MB and we add some other information to the message, you are over the grpc endpoint max message size

JustinShen (Tue, 26 Nov 2019 05:19:36 GMT):
so I can try to increase the KAFKA_MESSAGE_MAX_BYTES ?

JustinShen (Tue, 26 Nov 2019 05:19:36 GMT):
BatchTimeout: 2s BatchSize: MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB PreferredMaxBytes: 512 KB

BrettLogan (Tue, 26 Nov 2019 05:21:46 GMT):
what are the values of your batchsize in your configtx.yml

JustinShen (Tue, 26 Nov 2019 05:24:18 GMT):
BatchTimeout: 2s # Batch Size: Controls the number of messages batched into a block BatchSize: # Max Message Count: The maximum number of messages to permit in a batch MaxMessageCount: 10 AbsoluteMaxBytes: 98 MB # Preferred Max Bytes: The preferred maximum number of bytes allowed for # the serialized messages in a batch. A message larger than the preferred # max bytes will result in a batch larger than preferred max bytes. PreferredMaxBytes: 512 KB

JustinShen (Tue, 26 Nov 2019 05:24:43 GMT):
98 MB,

BrettLogan (Tue, 26 Nov 2019 05:24:45 GMT):
so I would decrease your AbsoluteMaxBytes

BrettLogan (Tue, 26 Nov 2019 05:24:54 GMT):
instead of editing the Kafka config

JustinShen (Tue, 26 Nov 2019 05:25:01 GMT):
Oh,

JustinShen (Tue, 26 Nov 2019 05:25:22 GMT):
so basicly, how much should be better

BrettLogan (Tue, 26 Nov 2019 05:25:32 GMT):
Your blocks are 98MB and then we decorate them which is probably pushing it over the kafka message limit

BrettLogan (Tue, 26 Nov 2019 05:27:10 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml#L281

BrettLogan (Tue, 26 Nov 2019 05:27:25 GMT):
These are our default values, and you also not the comment about setting the kafka properties

JustinShen (Tue, 26 Nov 2019 05:27:39 GMT):
I saw message larger than 1GB . this should because: 98MB * 10 ?

BrettLogan (Tue, 26 Nov 2019 05:28:26 GMT):
Oh, I missed a comma there, the message was 1GB

JustinShen (Tue, 26 Nov 2019 05:29:47 GMT):
yeah, I saw error from kafka node, said: invalid receive (size = 1195725856 larger than 104857600)

BrettLogan (Tue, 26 Nov 2019 05:29:52 GMT):
Yea, I see it now

BrettLogan (Tue, 26 Nov 2019 05:29:59 GMT):
I missed a comma when I was counting it

BrettLogan (Tue, 26 Nov 2019 05:31:14 GMT):
Do you have TLS enabled on your orderer?

JustinShen (Tue, 26 Nov 2019 05:32:02 GMT):
yeah, enabled TLS

JustinShen (Tue, 26 Nov 2019 05:32:27 GMT):
environment: - ORDERER_GENERAL_LOGLEVEL=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block - ORDERER_GENERAL_LOCALMSPID=OrdererMSP - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp # enabled TLS - ORDERER_GENERAL_TLS_ENABLED=true - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] - ORDERER_KAFKA_RETRY_LONGINTERVAL=10s - ORDERER_KAFKA_RETRY_LONGTOTAL=100s - ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s - ORDERER_KAFKA_RETRY_SHORTTOTAL=30s - ORDERER_KAFKA_VERBOSE=true working_dir: /opt/gopath/src/github.com/hyperledger/fabric

JustinShen (Tue, 26 Nov 2019 05:37:36 GMT):
BTW, even the orderer always start failed, but I can see from my kafka manager there is a topic named "testchainid"

BrettLogan (Tue, 26 Nov 2019 05:38:30 GMT):
Yea, I am shooting in the dark now, this is very much not my area of expertise, I will poke Jason in the office in the morning and have him take a look at this, see if anything stands out

BrettLogan (Tue, 26 Nov 2019 05:38:53 GMT):
If you could send me your orderer and kafka logs in a direct message, that would be great, just in case

JustinShen (Tue, 26 Nov 2019 05:41:37 GMT):
thanks for help :grinning:

JustinShen (Tue, 26 Nov 2019 05:42:19 GMT):
I can add two picture of kafka and orderer logs later. so I just add pictures here ?

BrettLogan (Tue, 26 Nov 2019 05:43:58 GMT):
Yea. Or send them to me directly. Either works

JustinShen (Tue, 26 Nov 2019 05:44:26 GMT):
Ok, will send later . Thanks for your time

BrettLogan (Tue, 26 Nov 2019 05:45:07 GMT):
No problem at all

wangcj (Tue, 26 Nov 2019 06:14:40 GMT):
Has joined the channel.

wangcj (Tue, 26 Nov 2019 06:14:41 GMT):
@BrettLogan hi, is there any docs about how to setup a fabric network by hand. The official docs using dockers techs is good but ...

wangcj (Tue, 26 Nov 2019 06:19:51 GMT):
Could anyone answer me a question?

dipeekapatil (Tue, 26 Nov 2019 06:21:37 GMT):
Has joined the channel.

skdeshmukh (Tue, 26 Nov 2019 06:43:37 GMT):
Thanks for the reply guys. I found this repo which helps you to capture logs from Hyperledger network to Kibana. I'm trying to get it working but not able to proceed further. Has any of us tried it successfully. Were any one of you able to see the logs from Hyperledger network/peers in Kibana dashboard?

skdeshmukh (Tue, 26 Nov 2019 06:43:37 GMT):
Thanks for the reply guys. I found this repo which helps you to capture logs from Hyperledger network to Kibana : https://github.com/hyperledger-labs/blockchain-analyzer. I'm trying to get it working but not able to proceed further. Has any of us tried it successfully. Were any one of you able to see the logs from Hyperledger network/peers in Kibana dashboard?

skdeshmukh (Tue, 26 Nov 2019 06:43:37 GMT):
Thanks for the reply guys. I found this repo which helps you to capture logs from Hyperledger network to Kibana : https://github.com/hyperledger-labs/blockchain-analyzer. I'm trying to get it working but not able to proceed further. Has any one of you tried it successfully. Were any one of you able to see the logs from Hyperledger network/peers in Kibana dashboard?

rcherukuri (Tue, 26 Nov 2019 07:25:58 GMT):
Has joined the channel.

rcherukuri (Tue, 26 Nov 2019 07:25:58 GMT):
Hello Team, this is Rishi

rcherukuri (Tue, 26 Nov 2019 07:26:20 GMT):
2019-11-26T07:24:56.970Z - error: [Channel.js]: Channel:channel-dcentrum-global received discovery error:failed constructing descriptor for chaincodes: 2019-11-26T07:24:56.972Z - error: [DiscoveryEndorsementHandler]: endorse - no endorsement plan found for {"chaincodes":[{"name":"dcentrum"}]} Failed to evaluate transaction: Error: No endorsement plan available for {"chaincodes":[{"name":"dcentrum"}]}

rcherukuri (Tue, 26 Nov 2019 07:26:51 GMT):
having a weird issue - trying to connect from node.js using fabric-client and gateway

rcherukuri (Tue, 26 Nov 2019 07:27:11 GMT):
the query is working fine, but when doing submitTransaction , getting the above error

rcherukuri (Tue, 26 Nov 2019 07:27:57 GMT):
in CCPJson , this was also added - "channels": { "channel-dcentrum-global": { "discover": true, "orderers": [ "orderer.dcentrum.com" ], "peers": { "peer0.org1.dcentrum.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true, "discover": true }

rcherukuri (Tue, 26 Nov 2019 07:27:57 GMT):
in CCPJson , this was also added - `"channels": { "channel-dcentrum-global": { "discover": true, "orderers": [ "orderer.dcentrum.com" ], "peers": { "peer0.org1.dcentrum.com": { "endorsingPeer": true, "chaincodeQuery": true, "eventSource": true, "discover": true }'

rcherukuri (Tue, 26 Nov 2019 07:30:08 GMT):
unable to find the equivalent of this in Gateway - "await channel.initialize({discover:true});" as per article here - https://fabric-sdk-node.github.io/release-1.4/tutorial-discovery.html

rcherukuri (Tue, 26 Nov 2019 07:30:48 GMT):
could some one help me fix this problem, is this in the right direction?

Niklaskkkk (Tue, 26 Nov 2019 08:51:14 GMT):
Hi everyone! I have a small fabric test network running. With the following nodes: Orderer - solo

Niklaskkkk (Tue, 26 Nov 2019 08:51:14 GMT):
Hi everyone! I have a small fabric test network running. With the following nodes: Orderer - solo CLI peer0 couchdb peer0.org1 However, when I go into peer0.org1 container and run the command peer channel list this error occur: 2019-11-26 08:49:53.648 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: Failed sending proposal, got rpc error: code = Unavailable desc = transport is closing Here is the error message from peer container log: 2019-11-22 15:26:28.319 UTC [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error handling CouchDB request. Error:unauthorized, Status Code:401, Reason:You are not a server admin. 2019-11-22 15:26:28.319 UTC [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: error handling CouchDB request. Error:unauthorized, Status Code:401, Reason:You are not a server admin.. Check the admin username and password.

trevoro1 (Tue, 26 Nov 2019 11:21:13 GMT):
is go officially endorsed in ver 1.4? I saw in the docs that it is not. I am confused because I see a lot of references to go and hyperledger. Has anyone could the actual facts about this?

davidkel (Tue, 26 Nov 2019 11:30:41 GMT):
what do you mean by `is go officially endorsed` ?

davidkel (Tue, 26 Nov 2019 11:38:47 GMT):
Hyperledger fabric is written in Go. From a programming experience point of view for hyperledger fabric developers you can write smart contracts in Go, Java or Node. You can write client applications in any language you desire as you can make direct grpc calls to the peers/orderers. There are currently 4 sdks that provide language specific capabilities to help you write client applications in those languages (ie not to have to make direct grpc calls). Node and Java have official releases. The Go SDK is currently tagged as beta and is lacking documentation. Not sure about the state of the python SDK.

davidkel (Tue, 26 Nov 2019 11:38:47 GMT):
Hyperledger fabric is written in Go. From a programming experience point of view for hyperledger fabric developers you can write smart contracts in Go, Java or Node. You can write client applications in any language you desire as you can make direct grpc calls to the peers/orderers (and http requests to the CA). There are currently 4 sdks that provide language specific capabilities to help you write client applications in those languages (ie not to have to make direct grpc calls). Node and Java have official releases. The Go SDK is currently tagged as beta and is lacking documentation. Not sure about the state of the python SDK.

maniankara (Tue, 26 Nov 2019 12:57:59 GMT):
@tengc There are better experts here, but if you want to try other approaches on multi-node env, one is to try it with k8s?

maniankara (Tue, 26 Nov 2019 13:05:12 GMT):
@wangcj I hope I am not advertising here, but I wrote a blog to setup fabric with `systemd`, may be thats a bit more useful: https://upcloud.com/community/tutorials/hyperledger-fabric-systemd/

maniankara (Tue, 26 Nov 2019 13:11:51 GMT):
@Niklaskkkk I would check: 1. If my `CORE_PEER_MSPCONFIGPATH` is set before issuing the command. E.g. `CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp` 2. If the right env variables are set in the peer. E.g. ``` - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0.org1.example.com:5984 - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=couchdb - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=couchdb ``` and in couchDB. E.g. ``` - COUCHDB_USER=couchdb - COUCHDB_PASSWORD=couchdb ``` and also the ports: `5984`

LouisSyro (Tue, 26 Nov 2019 13:17:38 GMT):
Has joined the channel.

LouisSyro (Tue, 26 Nov 2019 13:20:09 GMT):
hey everyone. I am having an issue that seems to be with filepaths on windows 10 pro. When I try to create a channel, it cannot load the certificates because the filepath has a combination of '/' and '\' in the address. I have highlighted the issue in this post: https://stackoverflow.com/questions/59051684/failed-to-load-certificates-while-trying-to-create-channel-following-hyperledger. Any help would be apprieciated

Hong3Nguyen (Tue, 26 Nov 2019 13:27:09 GMT):
Hi everyone, After install the chaincode in different machines, I try to execute the chaincode from another machine. However, I got an error like this one: Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 7bd2917cafe29e4faf2b11a40fd4f7c9f061b207245f1453d3d48ffee677a033: [channel channelall] could not launch chaincode mycc:v0: error starting container: error starting container: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: server misbehaving"

Hong3Nguyen (Tue, 26 Nov 2019 13:27:09 GMT):
Hi everyone, After install the chaincode in different machines, I try to execute the chaincode from another machine. However, I got an error like this one: Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 7bd2917cafe29e4faf2b11a40fd4f7c9f061b207245f1453d3d48ffee677a033: [channel channelall] could not launch chaincode mycc:v0: error starting container: error starting container: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: server misbehaving" Do you get any idea about it :(. Thank you

silveraid (Tue, 26 Nov 2019 13:32:35 GMT):
Has joined the channel.

IliasStergiou (Tue, 26 Nov 2019 14:11:31 GMT):
Has joined the channel.

junki (Tue, 26 Nov 2019 14:28:38 GMT):
Has joined the channel.

junki (Tue, 26 Nov 2019 14:32:41 GMT):
hi everyone,

junki (Tue, 26 Nov 2019 14:32:41 GMT):
hi everyone, How do I change the rootca certificate?

junki (Tue, 26 Nov 2019 14:32:41 GMT):
hi everyone, I am using CA, How do I change the rootca certificate?

junki (Tue, 26 Nov 2019 14:32:41 GMT):
hi everyone, I'm using ca, how do I change the rootca certificate? Sorry for the lack of explanation due to lack of English.

trevoro1 (Tue, 26 Nov 2019 15:10:01 GMT):
If I have a solidity smart contract, I can using mappings to struct hence I can create an array of structs. I am interested if I can do this using chaincode and nodejs - ie have a mapping and arrays.

trevoro1 (Tue, 26 Nov 2019 15:10:43 GMT):
is there a way to convert solidity to nodejs for smart contracts.

awjh (Tue, 26 Nov 2019 15:11:00 GMT):
I don't think Maps are supported in the Node work, arrays are though I believe

awjh (Tue, 26 Nov 2019 15:11:20 GMT):
In terms of taking the values in as parameters and returning them

vieiramanoel (Tue, 26 Nov 2019 19:38:42 GMT):
Hey guys, I'm still in that quest for enable pkcs11 at peers. Right now the BCCSP can find the private key inside HSM, yet I'm still getting this error ```2019-11-26 18:45:18.607 UTC [bccsp_p11] getSession -> DEBU 021 Reusing existing pkcs11 session 1 on slot 1 2019-11-26 18:45:18.878 UTC [msp] getSigningIdentityFromConf -> DEBU 023 Could not find SKI [aa2b0b7c777004535ac4b46e4e01e5876d7af085c6c046601e3d52f570435db1], trying KeyMaterial field: Key not found. This is a dummy KeyStore Failed getting key for SKI [[170 43 11 124 119 112 4 83 90 196 180 110 78 1 229 135 109 122 240 133 198 192 70 96 30 61 82 245 112 67 93 177]] github.com/hyperledger/fabric/bccsp/sw.(*CSP).GetKey /go/src/github.com/hyperledger/fabric/bccsp/sw/impl.go:170 github.com/hyperledger/fabric/bccsp/pkcs11.(*impl).GetKey /go/src/github.com/hyperledger/fabric/bccsp/pkcs11/impl.go:160 github.com/hyperledger/fabric/msp.(*bccspmsp).getSigningIdentityFromConf /go/src/github.com/hyperledger/fabric/msp/mspimpl.go:217 github.com/hyperledger/fabric/msp.(*bccspmsp).setupSigningIdentity . . ... ```

vieiramanoel (Tue, 26 Nov 2019 19:45:15 GMT):
This is all I got, apparently sw is dummy and it never changes, I don't know if it is misconfiguration of BCCSP ``` BCCSP: Default: PKCS11 SW: Hash: SHA2 Security: 256 FileKeyStore: KeyStore: "" PKCS11: Library: /lib/libtacndp11.so Pin: "********" Label: Dinamo HSM Hash: SHA2 Security: 256 FileKeyStore: KeyStore: "" ```

vieiramanoel (Tue, 26 Nov 2019 19:45:15 GMT):
This is all I got, apparently sw is dummy and it never changes, I don't know if it is some misconfiguration of BCCSP ``` BCCSP: Default: PKCS11 SW: Hash: SHA2 Security: 256 FileKeyStore: KeyStore: "" PKCS11: Library: /lib/libtacndp11.so Pin: "********" Label: Dinamo HSM Hash: SHA2 Security: 256 FileKeyStore: KeyStore: "" ```

ahmedsajid (Tue, 26 Nov 2019 20:38:11 GMT):
@vieiramanoel do you have Dinamo HSM tool to list the content of the HSM slot to see if there's any keypair in HSM with SKI `aa2b0b7c777004535ac4b46e4e01e5876d7af085c6c046601e3d52f570435db1`?

vieiramanoel (Tue, 26 Nov 2019 20:38:56 GMT):
@ahmedsajid, does public key need to be inside HSM?

vieiramanoel (Tue, 26 Nov 2019 20:39:13 GMT):
I've set CKA_ID and CKA_LABEL to private key

vieiramanoel (Tue, 26 Nov 2019 20:39:13 GMT):
I've set CKA_ID and CKA_LABEL into private key

ahmedsajid (Tue, 26 Nov 2019 20:39:13 GMT):
the private key needs to be at the least.

vieiramanoel (Tue, 26 Nov 2019 20:39:26 GMT):
and fabric can find it properly

vieiramanoel (Tue, 26 Nov 2019 20:40:07 GMT):
otherwise pkcs11 func `findKeyPairFromSKI` would fail

vieiramanoel (Tue, 26 Nov 2019 20:40:19 GMT):
yet this strange error occurs

ahmedsajid (Tue, 26 Nov 2019 20:41:02 GMT):
the error points to the fact that SW is still being used? https://github.com/hyperledger/fabric/blob/release-1.4/bccsp/sw/dummyks.go#L42

ahmedsajid (Tue, 26 Nov 2019 20:41:21 GMT):
what happens if you remove SW section?

vieiramanoel (Tue, 26 Nov 2019 20:41:53 GMT):
I can try

vieiramanoel (Tue, 26 Nov 2019 20:42:01 GMT):
I'll be back ina few minutes

vieiramanoel (Tue, 26 Nov 2019 21:06:21 GMT):
@ahmedsajid this happens 2019-11-26 21:04:37.035 UTC [main] InitCmd -> ERRO 00b Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/certs/msp: could not initialize BCCSP Factories: Failed initializing SW.BCCSP: Could not initialize BCCSP SW [Failed initializing configuration at [0,]: Hash Family not supported []]

ahmedsajid (Tue, 26 Nov 2019 21:09:50 GMT):
Fabric 1.4? I'll try to reproduce this in my environment.

vieiramanoel (Tue, 26 Nov 2019 21:10:39 GMT):
well, master version. Someone told me that releases branches does not have pkcs11

ahmedsajid (Tue, 26 Nov 2019 21:11:58 GMT):
by default yes but you can do `GO_TAGS="pkcs11" make docker` or something similar

ahmedsajid (Tue, 26 Nov 2019 21:12:07 GMT):
sorry not played with master yet.

vieiramanoel (Tue, 26 Nov 2019 21:12:17 GMT):
fair enough.

vieiramanoel (Tue, 26 Nov 2019 21:12:29 GMT):
I can try going to v1 .4

vieiramanoel (Tue, 26 Nov 2019 21:12:29 GMT):
I can try going to v1.4 and rebuilding the images to test

ahmedsajid (Tue, 26 Nov 2019 21:12:45 GMT):
good luck.

vieiramanoel (Tue, 26 Nov 2019 21:12:54 GMT):
thanks

vieiramanoel (Tue, 26 Nov 2019 21:14:07 GMT):
I dont _NEED_ to be at master, you know? I'm using just because I believed that I couldn't use pkcs11 at release branches haha

vieiramanoel (Tue, 26 Nov 2019 21:14:21 GMT):
I'll try here, thanks again

vieiramanoel (Tue, 26 Nov 2019 21:14:21 GMT):
I'll try the 1.4 test, thanks again

vieiramanoel (Tue, 26 Nov 2019 22:09:27 GMT):
@ahmedsajid, when I'm at 1.4 branch the error is `Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/certs/msp: could not initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PKCS11 [Failed initializing PKCS11 library /lib/libtacndp11.so Dinamo HSM: Instantiate failed [/lib/libtacndp11.so]]`

vieiramanoel (Tue, 26 Nov 2019 22:09:35 GMT):
same dockerfile

vieiramanoel (Tue, 26 Nov 2019 22:10:09 GMT):
I believe that it's due to no pkcs in releases branchs

vieiramanoel (Tue, 26 Nov 2019 22:11:34 GMT):
@smithbk

vieiramanoel (Tue, 26 Nov 2019 22:11:34 GMT):
@smithbk, can you take a look at this?

pschilakantitech (Wed, 27 Nov 2019 07:17:06 GMT):
Has joined the channel.

IliasStergiou (Wed, 27 Nov 2019 08:11:02 GMT):
Hello everyone, I am having the following problem. On a network that is newly created and works fine I change the endorsement policy from OR('AAAAAMSP.member','BBBBBMSP.member'…) to AND('AAAAAMSP.member','BBBBBMSP.member') by upgrading the chaincode. The transactions on my client are sent to both peers for endorsement. When the peers receive the block with the transaction from the orderer the following error message is produced in peer log: [cauthdsl] func2 -> DEBU 13d1ESC[0m 0xc0026ba8c0 signature for identity 1 is invalid: The signature is invalid [cauthdsl] func2 -> DEBU 13d2ESC[0m 0xc0026ba8c0 principal evaluation fails [cauthdsl] func1 -> DEBU 13d3ESC[0m 0xc0026ba8c0 gate 1574463954366971719 evaluation fails The transaction is stored in the ledger and the blocks include cat block-9.json | \ > jq '.data.data[0].payload.data.actions[0].payload.action.endorsements[]' { "endorser": "the certificate of peer AAAAAMSP", "signature": "MEQCIFEKWxzcuVnogLV/tx1io9AyN1o5J1kDEIGbFj75+TBJAiASsTuA+JlpAzV/7wHe/Z1ZHoYuOQxeeoZQ44cxEsb5pg==" } { "endorser": "the certificate of peer BBBBBMSP", "signature": "MEQCIBRjbSUJLI4dtgaaMEhLeIE92cNLUgHSNZs6O5q0wTFyAiBhXmAAA8nul4KrDQ38/yQMKDJYk4tT3X0hgovPwhcKXQ==" } Any hints on what may be wrong?

rcherukuri (Wed, 27 Nov 2019 09:04:42 GMT):
@team can any one help here to resolve this problem?

chamodilokuge (Wed, 27 Nov 2019 09:55:46 GMT):
Has joined the channel.

chamodilokuge (Wed, 27 Nov 2019 09:55:47 GMT):
Hello everyone!! Can we store pdf files directly on the hyperledger blockchain? or is it a must to use IPFS file system to store pdfs. Please note that i want to store health records. Thank you in advance!

palra (Wed, 27 Nov 2019 10:13:18 GMT):
Has joined the channel.

palra (Wed, 27 Nov 2019 10:27:44 GMT):
Hi everyone! Is there a guide for building a network from scratch? Or is it considered as good practice to bootstrap everything from the `fabric-samples`?

palra (Wed, 27 Nov 2019 10:30:57 GMT):
I don't think HLF is able to manage file storage. IPFS is a global distributed filesystem, so everything is accessible to anyone who gets the hash of the file. I don't think that's a viable solution for such sensitive data. Do you really need the health records to be globally available on the blockchain? My guess is that you could manage that in a centralized way, think twice about the real usefulness of shared availability of those files.

chamodilokuge (Wed, 27 Nov 2019 10:52:49 GMT):
Thanks for the reply.HLF is able to manage images as Base64 strings but still not sure whether i can manage pdfs. I need to share health records with authorized people via blockchain having the patient's contol over his health records. Records will be encrypted so only the people who has the key will be able to decrypt it.

chamodilokuge (Wed, 27 Nov 2019 10:53:57 GMT):
If you could suggest me a way to store pdfs in the hyperledger fabric blockchain, that'll be really helpful.

palra (Wed, 27 Nov 2019 10:54:31 GMT):
Well, why not encode them as base64 strings?

palra (Wed, 27 Nov 2019 10:55:46 GMT):
I'm not sure if a transaction can handle such a big request, but I guess you just gotta give it a try

prayagk (Wed, 27 Nov 2019 10:56:56 GMT):
does shim.Error() deprecated?

chamodilokuge (Wed, 27 Nov 2019 10:57:11 GMT):
Is it possible to encode pdfs as base644 strings?

chamodilokuge (Wed, 27 Nov 2019 10:57:11 GMT):
Is it possible to encode pdfs as base64 strings?

palra (Wed, 27 Nov 2019 10:59:30 GMT):
Yes you can! Just keep in mind that it will increase the size of the file of about +33%, because of that base64 encoding.

chamodilokuge (Wed, 27 Nov 2019 11:00:45 GMT):
I'll give it a try. Thankyou so much for responding.

RahulEth (Wed, 27 Nov 2019 12:49:03 GMT):
hi all is it possible if i get event_status : valid on application end and my transaction still not committed on peer.

ahmedsajid (Wed, 27 Nov 2019 13:43:46 GMT):
Not sure if this will help but can you try with DYNAMIC_LINK enabled `DOCKER_DYNAMIC_LINK=true GO_TAGS="pkcs11" make docker`

bertschneider (Wed, 27 Nov 2019 16:18:26 GMT):
Hi, is there a command to read the current channel endorsement policy?

palra (Wed, 27 Nov 2019 16:22:45 GMT):
Maybe `peer channel getinfo` ? Not sure

bertschneider (Wed, 27 Nov 2019 16:23:38 GMT):
Nope, tried that already :-)

palra (Wed, 27 Nov 2019 16:23:52 GMT):
Obviously ! :)

palra (Wed, 27 Nov 2019 16:24:09 GMT):
I'll let real experts answer haha

bertschneider (Wed, 27 Nov 2019 16:24:38 GMT):
No, thx for your hint!

Anuj 48 (Wed, 27 Nov 2019 16:58:15 GMT):
Could you help me with high level steps to convert a solo to kafka without any data loss?

tengc (Wed, 27 Nov 2019 17:54:25 GMT):
Can gossip protocol occur when there are NAT's in between the two peer nodes?

tengc (Wed, 27 Nov 2019 17:54:25 GMT):
Can gossip protocol occur when there are NATs in between the two peer nodes?

BrettLogan (Wed, 27 Nov 2019 18:01:12 GMT):
Just to be clear, we make it very clear in the doc, we do not support migration from solo. With that being said, your option is to setup a new network, and replay the transactions as invocations to the new network

Anuj 48 (Wed, 27 Nov 2019 18:03:49 GMT):
Ok. thank you.

delao (Wed, 27 Nov 2019 18:35:48 GMT):
If you policy requires both signatures, then, yes, org 2 should sign

yacovm (Wed, 27 Nov 2019 18:41:24 GMT):
yes but you need port forwarding to at least one of them

tengc (Wed, 27 Nov 2019 19:09:11 GMT):
Does this mean that in a cluster of nodes, dynamic leader election can't occur unless all nodes are internet facing?

yacovm (Wed, 27 Nov 2019 19:09:33 GMT):
no, that doesn't mean that

yacovm (Wed, 27 Nov 2019 19:09:42 GMT):
the leader can be behind a NAT

yacovm (Wed, 27 Nov 2019 19:11:37 GMT):
so, for peers `p` and `q` to connect one of them needs to be reachable

tengc (Wed, 27 Nov 2019 19:13:50 GMT):
That makes sense on a peer to peer level

tengc (Wed, 27 Nov 2019 19:15:27 GMT):
But how do you ensure that each communication between peer nodes during gossip dissemination will have at least one peer is reachable?

yacovm (Wed, 27 Nov 2019 19:15:38 GMT):
anchor peers for sure need to be exposed

yacovm (Wed, 27 Nov 2019 19:15:51 GMT):
how do you ensure? I don't know... it depends on many things

yacovm (Wed, 27 Nov 2019 19:16:04 GMT):
basically if 2 peers are behind NAT and no port forwarding rules between them

yacovm (Wed, 27 Nov 2019 19:16:10 GMT):
then it means they cannot communicate

yacovm (Wed, 27 Nov 2019 19:16:24 GMT):
life is hard :(

yacovm (Wed, 27 Nov 2019 19:16:38 GMT):
the peers, however - can receive blocks

yacovm (Wed, 27 Nov 2019 19:16:42 GMT):
indirectly via other peers

yacovm (Wed, 27 Nov 2019 19:16:46 GMT):
and other messages too

yacovm (Wed, 27 Nov 2019 19:16:50 GMT):
but not point to point messages

tengc (Wed, 27 Nov 2019 19:17:06 GMT):
Hmm... I see

tengc (Wed, 27 Nov 2019 19:17:30 GMT):
I have nodes set in different locations and I'm trying really hard to port forward nodes as little as possible

tengc (Wed, 27 Nov 2019 19:18:27 GMT):
Why can't everything have static ipv6 addresses already?

yacovm (Wed, 27 Nov 2019 19:19:21 GMT):
Static ipv6?

yacovm (Wed, 27 Nov 2019 19:19:31 GMT):
How does that solve port forwqrding

tengc (Wed, 27 Nov 2019 19:19:52 GMT):
Well not static, but rather global

tengc (Wed, 27 Nov 2019 19:20:11 GMT):
Since there are sufficient quantities of them availiable

yacovm (Wed, 27 Nov 2019 19:20:14 GMT):
You can use it

yacovm (Wed, 27 Nov 2019 19:20:31 GMT):
I never tried but we use ipv6 compatible parsing

yacovm (Wed, 27 Nov 2019 19:20:39 GMT):
So it should work

tengc (Wed, 27 Nov 2019 19:21:10 GMT):
The only problem I've had with that so far is that ISP's don't always provide them

tengc (Wed, 27 Nov 2019 19:21:47 GMT):
And then it just becomes an issue of buying them

tengc (Wed, 27 Nov 2019 19:23:31 GMT):
Anyhow, thanks for clarification regarding peer to peer communications

yacovm (Wed, 27 Nov 2019 21:45:21 GMT):
@tengc you can buy only 1 and then use several ports :P

vieiramanoel (Wed, 27 Nov 2019 21:49:58 GMT):
@ahmedsajid Changed to v1.4 branch Rebuild peer image with lib & pkcs11 Set `Ephemeral: true` to both SW and PKCS11 fields at `core.yaml`

vieiramanoel (Wed, 27 Nov 2019 21:50:11 GMT):
same error

vieiramanoel (Wed, 27 Nov 2019 21:50:32 GMT):
``` Could not find SKI [73b1419a82c5d71886086859a31033a30fdad6fa20c5ec86285e6851bc07ede9], trying KeyMaterial field: Key with SKI 73b1419a82c5d71886086859a31033a30fdad6fa20c5ec86285e6851bc07ede9 not found in keystore ```

vieiramanoel (Wed, 27 Nov 2019 21:53:04 GMT):
I really believe this is an error cause by core.yaml misconfig, but I couldn't find the reason inside the code. @nyet, have you ever saw this error on the last message?

vieiramanoel (Wed, 27 Nov 2019 21:53:04 GMT):
I really believe this is an error caused by core.yaml misconfig, but I couldn't find the reason inside the code. @nyet, have you ever saw this error on the last message?

vieiramanoel (Wed, 27 Nov 2019 21:53:46 GMT):
the original message, if needed:

vieiramanoel (Wed, 27 Nov 2019 21:53:46 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=N68PZdYSmny4CCmDM

vieiramanoel (Wed, 27 Nov 2019 21:53:46 GMT):
[original message](https://chat.hyperledger.org/channel/fabric-questions?msg=N68PZdYSmny4CCmDM) if needed

vieiramanoel (Wed, 27 Nov 2019 21:53:46 GMT):
[original message]() if needed

vieiramanoel (Wed, 27 Nov 2019 21:54:54 GMT):
[original message](https://chat.hyperledger.org/channel/fabric-questions?msg=N68PZdYSmny4CCmDM) if needed

ahmedsajid (Thu, 28 Nov 2019 03:37:24 GMT):
@vieiramanoel I did a quick test I had no issues with my test HSM (nCipher). ``` BCCSP: Default: PKCS11 # Settings for the SW crypto provider (i.e. when DEFAULT: SW) SW: # TODO: The default Hash and Security level needs refactoring to be # fully configurable. Changing these defaults requires coordination # SHA2 is hardcoded in several places, not only BCCSP Hash: SHA2 Security: 256 # Location of Key Store FileKeyStore: # If "", defaults to 'mspConfigPath'/keystore PKCS11: Library: "/opt/nfast/toolkits/pkcs11/libcknfast.so" Label: "test" Pin: "securekey" SensitiveKeys: true SoftwareVerify: true Hash: SHA2 Security: 256 ```

ahmedsajid (Thu, 28 Nov 2019 03:37:59 GMT):
but I used fabric-ca-client to perform enrollment.

jeanoLee (Thu, 28 Nov 2019 05:47:26 GMT):
Has joined the channel.

trevoro1 (Thu, 28 Nov 2019 08:02:57 GMT):
Has anyone details about how ordering works and how that compares with pbft and other well known consensus algorithms.

rcherukuri (Thu, 28 Nov 2019 08:38:46 GMT):
@team, since this questions is not answered here on this channel, what is an appropriate place to get help as we are stuck here?

chamodilokuge (Thu, 28 Nov 2019 09:12:47 GMT):
Can anyone please give me an example/sample where images or pdfs are stored in hyperledger fabric directly? ( as a base64 string)

palra (Thu, 28 Nov 2019 09:55:21 GMT):
Hi there, I'm trying to setup by hand a network from scratch. Given the "Building your First Network" guide, I should 1. setup a crypto-config.yaml file 2. setup a configtx.yaml file 3. generate all the materials with `cryptogen` and `configtxgen` 4. setup a `docker-compose` deployment 5. enjoy. No channels created, no chaincode running, just the bare network. First question : am I missing something? Second question : in the `crypto-config.yaml` file, I'm defining one orderer with the domain `mycompanydomain.com` and 5 peers with the same domain `mycompanydomain.com`. On the `basic-network` fabric sample, the peers are in a subdomain, like `org1.example.com`. I thought that each organization should use its own domain name? What if I want to add a peer organization with the domain `thatothercompanyname.com`? Am I overthinking this?

heenas06 (Thu, 28 Nov 2019 10:00:58 GMT):
Hello Guys...i am getting this error While generating genesis.block [ Error on outputBlock: Error writing genesis block: open ./artifacts/channel/genesis.block: no such file or directory]

palra (Thu, 28 Nov 2019 10:04:12 GMT):
Just had the same error, check that the folders exists, `configtxgen` doesn't create missing folders

Anuj 48 (Thu, 28 Nov 2019 10:17:51 GMT):
By default, directory name is channel-artifacts in BYFN. Make sure path is correct and it has correct permissions to write

heenas06 (Thu, 28 Nov 2019 10:47:18 GMT):
yeah mine path is correct

heenas06 (Thu, 28 Nov 2019 10:49:27 GMT):
./artifacts/channel/ this same path is present in my directory but its showing error why i am not getting

trevoro1 (Thu, 28 Nov 2019 11:22:31 GMT):
I am checking into the CA work in hyperledger fabric and I saw there are crt, pem, sk files. Is there some clarification on these numerous formats?

Anuj 48 (Thu, 28 Nov 2019 11:36:58 GMT):
Try by providing a complete directory path.

heenas06 (Thu, 28 Nov 2019 11:37:56 GMT):
Can anyone tried in hyperledger fabric to send multiple transaction in 1 single block......?

wangcj (Thu, 28 Nov 2019 12:45:12 GMT):
Hi. In case that many peers in the network that install a version of chaincode , if i moddify the code , would i install the new code as many times as the number of peers? There is a way which i install onece,then all peers upgraded?:innocent:

BranimirMalesevic (Thu, 28 Nov 2019 15:53:55 GMT):
Has joined the channel.

vieiramanoel (Thu, 28 Nov 2019 16:11:09 GMT):
@ahmedsajid I'm intrigued cuz this error doesn't make sense and again, there isn't enough logs to debug. Privatekey is found in hsm, but SW can't initialize keystore, even when ephemeral is true. I'll try to add sensitivekeys and software verify just to be sure we're using same config

vieiramanoel (Thu, 28 Nov 2019 16:11:30 GMT):
@yacovm would you know what is this strange error?

yacovm (Thu, 28 Nov 2019 16:12:22 GMT):
@vieiramanoel nope, no idea

yacovm (Thu, 28 Nov 2019 16:12:29 GMT):
but it says Dinamo HSM

vieiramanoel (Thu, 28 Nov 2019 16:13:34 GMT):
I don't think it is related to the hsm itself

vieiramanoel (Thu, 28 Nov 2019 16:13:51 GMT):
The function findkeypair exits successfully

skoret (Thu, 28 Nov 2019 17:13:58 GMT):
Has joined the channel.

vieiramanoel (Thu, 28 Nov 2019 18:24:44 GMT):
@ahmedsajid is your peer configured to get keys from hsm or your private keys are at keystore at init? no progress until now

ahmedsajid (Thu, 28 Nov 2019 18:25:10 GMT):
Its getting from HSM. I have no keys in my keystore directory

vieiramanoel (Thu, 28 Nov 2019 18:25:42 GMT):
Strange

vieiramanoel (Thu, 28 Nov 2019 18:31:29 GMT):
As repeating same config as you give same problem, I moved this to a jira https://jira.hyperledger.org/browse/FAB-17164

vieiramanoel (Thu, 28 Nov 2019 22:13:31 GMT):
@ahmedsajid, just for you to know, public key needs to be inside hsm too to work.

vieiramanoel (Thu, 28 Nov 2019 22:13:56 GMT):
Due to some corner cases we generate certs through REST API

vieiramanoel (Thu, 28 Nov 2019 22:13:56 GMT):
Due to some corner cases we generate certs through CA REST API

vieiramanoel (Thu, 28 Nov 2019 22:13:56 GMT):
Due to some corner cases we generate certs through ca REST API

ahmedsajid (Thu, 28 Nov 2019 22:14:08 GMT):
If using fabric-ca-client for enrollment, it generates the keypair

vieiramanoel (Thu, 28 Nov 2019 22:14:27 GMT):
so when it responds with pub cert

vieiramanoel (Thu, 28 Nov 2019 22:14:45 GMT):
well, fabric-sdk-go doesn't allow we to set some fields of csr

vieiramanoel (Thu, 28 Nov 2019 22:14:51 GMT):
such as SANs

vieiramanoel (Thu, 28 Nov 2019 22:15:24 GMT):
old problems, unfortunately

ahmedsajid (Thu, 28 Nov 2019 22:15:37 GMT):
I used `fabric-ca-client`

vieiramanoel (Thu, 28 Nov 2019 22:16:14 GMT):
Really fabric-ca-client would solve the problem

vieiramanoel (Thu, 28 Nov 2019 22:16:22 GMT):
but my net is dpeloyed by a system

ahmedsajid (Thu, 28 Nov 2019 22:16:28 GMT):
right

vieiramanoel (Thu, 28 Nov 2019 22:16:37 GMT):
it's ok

vieiramanoel (Thu, 28 Nov 2019 22:16:54 GMT):
i will import pub cert/key to hsm

vieiramanoel (Thu, 28 Nov 2019 22:17:01 GMT):
and everythink should work

vieiramanoel (Thu, 28 Nov 2019 22:17:16 GMT):
:call_me_hand:

ahmedsajid (Thu, 28 Nov 2019 22:17:35 GMT):
Cool

vieiramanoel (Thu, 28 Nov 2019 22:17:49 GMT):
thanks a lot for your help

ahmedsajid (Thu, 28 Nov 2019 22:17:56 GMT):
I didn't do much :)

vieiramanoel (Thu, 28 Nov 2019 22:19:03 GMT):
well, you helped me to debug things here :(

vieiramanoel (Thu, 28 Nov 2019 22:19:03 GMT):
well, you helped me to debug things here :)

ahmedsajid (Thu, 28 Nov 2019 22:22:29 GMT):
in that case, you are welcome :)

junki (Fri, 29 Nov 2019 01:28:52 GMT):
hello everyone.

chamodilokuge (Fri, 29 Nov 2019 03:58:39 GMT):
can we store images on hyperledger fabric as base64 string without using composer model?

chamodilokuge (Fri, 29 Nov 2019 05:02:09 GMT):
Hi everyone!! How can we store small text files directly in the hyperledger fabric blockchain? Thanlyou in advance

chamodilokuge (Fri, 29 Nov 2019 05:15:01 GMT):
Could anyone please tell me, what data types can be stored in hyperledger fabric blockchain

ferpzfresh (Fri, 29 Nov 2019 05:26:20 GMT):
Hello

karthikeyanb (Fri, 29 Nov 2019 06:10:28 GMT):
Has joined the channel.

karthikeyanb (Fri, 29 Nov 2019 06:10:29 GMT):
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied How to resolve this?

RahulEth (Fri, 29 Nov 2019 07:13:13 GMT):
hi all getting below error on my peer and my peer getting crash every time whenever this error occure ``` panic: runtime error: invalid memory address or nil pointer dereference ```

RahulEth (Fri, 29 Nov 2019 07:14:06 GMT):

peer0.ql.infotelconnect.png

yacovm (Fri, 29 Nov 2019 07:45:20 GMT):
@RahulEth what is the fabric version?

RahulEth (Fri, 29 Nov 2019 07:48:02 GMT):
@yacovm version is 1.4.2

yacovm (Fri, 29 Nov 2019 07:48:18 GMT):
yeah, i thought so. there is a bug in 1.4.2

yacovm (Fri, 29 Nov 2019 07:48:23 GMT):
use 1.4.3 or 1.4.4

RahulEth (Fri, 29 Nov 2019 07:49:23 GMT):
@yacovm thanks for kind support, could you let me know what type of bug this is?? i am facing this error for a long time

RahulEth (Fri, 29 Nov 2019 07:49:48 GMT):
@yacovm it's happen after every some days

yacovm (Fri, 29 Nov 2019 07:50:13 GMT):
I answered in stackoverflow

RahulEth (Fri, 29 Nov 2019 07:50:26 GMT):

dev-peer0.ql.infotelconnect.pref.png

RahulEth (Fri, 29 Nov 2019 07:50:47 GMT):
@yacovm here are my chaincode container logs that is alos getting crash

yacovm (Fri, 29 Nov 2019 07:50:55 GMT):
the chaincode crashes when the peer crashes

RahulEth (Fri, 29 Nov 2019 07:51:10 GMT):
could you share the link plz

yacovm (Fri, 29 Nov 2019 07:51:23 GMT):
https://stackoverflow.com/questions/59100447/peer-getting-crash-runtime-error-invalid-memory-address-or-nil-pointer-derefe/59100769#59100769

RahulEth (Fri, 29 Nov 2019 07:51:45 GMT):
yeah i know, i was wondering is there any other reason??

yacovm (Fri, 29 Nov 2019 07:51:57 GMT):
what???

yacovm (Fri, 29 Nov 2019 07:52:05 GMT):
I am telling you not to use 1.4.2

yacovm (Fri, 29 Nov 2019 07:52:11 GMT):
that's the reason

RahulEth (Fri, 29 Nov 2019 07:52:23 GMT):
yeah i asked the question many thanks for response

RahulEth (Fri, 29 Nov 2019 07:53:09 GMT):
thanks again boss!!

yacovm (Fri, 29 Nov 2019 07:53:44 GMT):
:joy:

RahulEth (Fri, 29 Nov 2019 07:55:30 GMT):
@yacovm this is my first time i am getting solution for my problem :smiley:

yacovm (Fri, 29 Nov 2019 07:56:47 GMT):
there is always a first time

SlowSense (Fri, 29 Nov 2019 10:01:10 GMT):
Has joined the channel.

SlowSense (Fri, 29 Nov 2019 10:01:11 GMT):
Hi all, we want to create a channel based on a consortium with two types of organizations (with differents rights). What is the best way to do this?

Ammu (Fri, 29 Nov 2019 11:20:44 GMT):
peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer working_dir: /opt/gopath/src/github.com/hyperledger/fabric command: peer node start # command: peer node start --peer-chaincodedev=true ports: - 7051:7051 - 7053:7053 what is the use of port 7053?

Salaria_77 (Fri, 29 Nov 2019 12:26:57 GMT):
Can we change ca for the organisation in a running network .

trevoro1 (Fri, 29 Nov 2019 12:50:26 GMT):
can the ordering service handle multiple genesis blocks

trevoro1 (Fri, 29 Nov 2019 12:50:45 GMT):
I assume the blockchain via the orderer will have all the ledger based txns regardless of channels

trevoro1 (Fri, 29 Nov 2019 13:14:39 GMT):
I think I have the answer, the solution is to have multiple genesis blocks at a channel level. Then we have in effect multiple blockchains.

sshKashyap (Fri, 29 Nov 2019 14:08:12 GMT):
Any reliable sources for building an applications on fabric-java-sdk with RESTapi calls to the application?

ANKITPODDAR (Fri, 29 Nov 2019 15:08:14 GMT):
Hi am tring to deploy hyperledger fabric network using kubernetes, but after running run.py script m getting error. please help me out

ANKITPODDAR (Fri, 29 Nov 2019 15:08:22 GMT):

Clipboard - November 29, 2019 8:38 PM

trevoro1 (Fri, 29 Nov 2019 15:13:59 GMT):
How does ordering work compared to pbft and other consensus algorithms?

palra (Fri, 29 Nov 2019 15:48:06 GMT):
You should read that part of the documentation : https://hyperledger-fabric.readthedocs.io/en/release-1.4/orderer/ordering_service.html

lucasmori (Fri, 29 Nov 2019 16:34:12 GMT):
Has joined the channel.

lucasmori (Fri, 29 Nov 2019 16:34:13 GMT):
Hi guys, I implemented a method to transfer an asset from org1 to org2, but i can't create a validation to verify if the org2 exists at the channel, for verify if the org1 exists i use this `ctx.stub.getCreator().getMspid().toString().toLowerCase()`. I don't know how to verify org 2

Roberto9 (Fri, 29 Nov 2019 22:07:44 GMT):
Has joined the channel.

Roberto9 (Fri, 29 Nov 2019 22:10:13 GMT):
Hi, I've been pulling my hair out trying to go through the sample of fabrics chaincode. I keep getting this error go build sacc.go:12:2: cannot find package "github.com/hyperledger/fabric-chaincode-go/shim" in any of: /opt/go/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOPATH) sacc.go:13:2: cannot find package "github.com/hyperledger/fabric-protos-go/peer" in any of: /opt/go/src/github.com/hyperledger/fabric-protos-go/peer (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric-protos-go/peer (from $GOPATH) # ^C

Roberto9 (Fri, 29 Nov 2019 22:10:28 GMT):
yes I've defined $gopath and have the fabric src in it,

Roberto9 (Fri, 29 Nov 2019 22:10:33 GMT):
I've tried putting it everywhere

Roberto9 (Fri, 29 Nov 2019 22:10:39 GMT):
even in /opt/gopath.. etc

Roberto9 (Fri, 29 Nov 2019 22:10:40 GMT):
still nothing

Roberto9 (Fri, 29 Nov 2019 22:10:58 GMT):
Any help would be greatly appreciated

BrettLogan (Fri, 29 Nov 2019 22:24:43 GMT):
You say you have the fabric source, but do you have the fabric protos and fabric shim downloaded and on the gopath as well? The shim and protos are not part of the core fabric project what is the output of `ls -ltr $GOPATH/src/github.com/hyperledger` youll note in the error the problem isn't finding the fabric repo, it's finding fabric-chaincode-go and fabric-protos-go that is the problem

Roberto9 (Fri, 29 Nov 2019 22:27:15 GMT):
root@rob-linuxmint:~# ls -ltr $GOPATH/src/github.com/hyperledger/ total 8 drwxr-xr-x 25 root root 4096 Nov 29 21:23 fabric drwxr-xr-x 7 root root 4096 Nov 29 21:38 fabric-chaincode-go root@rob-linuxmint:~# ^C root@rob-linuxmint:~#

Roberto9 (Fri, 29 Nov 2019 22:27:33 GMT):
do I need to git clone protos-go?

Roberto9 (Fri, 29 Nov 2019 23:14:09 GMT):
@BrettLogan

BrettLogan (Fri, 29 Nov 2019 23:16:02 GMT):
No, do `go get github.com/hyperledger/fabric-protos-go/...` and `go get github.com/hyperledger/fabric-chaincode-go/...`

BrettLogan (Fri, 29 Nov 2019 23:16:02 GMT):
No, do `go get -u github.com/hyperledger/fabric-protos-go` and `go get -u github.com/hyperledger/fabric-chaincode-go`

BrettLogan (Fri, 29 Nov 2019 23:16:02 GMT):
No, do `go get github.com/hyperledger/fabric-protos-go` and `go get github.com/hyperledger/fabric-chaincode-go`

BrettLogan (Fri, 29 Nov 2019 23:16:20 GMT):
Go will resolve the dependencies and add them to the gopath for you

BrettLogan (Fri, 29 Nov 2019 23:16:30 GMT):
@Roberto9

Roberto9 (Fri, 29 Nov 2019 23:19:02 GMT):
Now I'm getting this error

Roberto9 (Fri, 29 Nov 2019 23:19:03 GMT):
# go build ../../github.com/hyperledger/fabric-protos-go/peer/chaincode.pb.go:8:2: cannot find package "github.com/golang/protobuf/proto" in any of: /opt/go/src/github.com/golang/protobuf/proto (from $GOROOT) /opt/gopath/src/github.com/golang/protobuf/proto (from $GOPATH) ../../github.com/hyperledger/fabric-protos-go/peer/chaincode_shim.pb.go:10:2: cannot find package "github.com/golang/protobuf/ptypes/timestamp" in any of: /opt/go/src/github.com/golang/protobuf/ptypes/timestamp (from $GOROOT) /opt/gopath/src/github.com/golang/protobuf/ptypes/timestamp (from $GOPATH) sacc.go:12:2: cannot find package "github.com/hyperledger/fabric-chaincode-go/shim" in any of: /opt/go/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOROOT) /opt/gopath/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOPATH) ../../github.com/hyperledger/fabric-protos-go/peer/chaincode_shim.pb.go:11:2: cannot find package "google.golang.org/grpc" in any of: /opt/go/src/google.golang.org/grpc (from $GOROOT) /opt/gopath/src/google.golang.org/grpc (from $GOPATH) ../../github.com/hyperledger/fabric-protos-go/peer/chaincode_shim.pb.go:12:2: cannot find package "google.golang.org/grpc/codes" in any of: /opt/go/src/google.golang.org/grpc/codes (from $GOROOT) /opt/gopath/src/google.golang.org/grpc/codes (from $GOPATH) ../../github.com/hyperledger/fabric-protos-go/peer/chaincode_shim.pb.go:13:2: cannot find package "google.golang.org/grpc/status" in any of: /opt/go/src/google.golang.org/grpc/status (from $GOROOT) /opt/gopath/src/google.golang.org/grpc/status (from $GOPATH)

Roberto9 (Fri, 29 Nov 2019 23:20:56 GMT):
@BrettLogan

BrettLogan (Fri, 29 Nov 2019 23:22:55 GMT):
I've amended my original commands rerun them with the triple dot on the end @Roberto9

tengc (Fri, 29 Nov 2019 23:25:12 GMT):
Hi, I've been having some issues instantiating chaincode on my network. The error I've been getting from the CLI container is: "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0". The corresponding error on the peer container I'm calling instantiate on: "failed to invoke chaincode name:"lscc" , error: container exited with 0" The command I've given it is: peer chaincode instantiate -o orderer1:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n test_cc -l ${LANGUAGE} -v 4.9 -c '{"Args":["init"]}' Any ideas for the resolving this?

BrettLogan (Fri, 29 Nov 2019 23:25:27 GMT):
You will also need to vendor these dependencies before you package your Chaincode

BrettLogan (Fri, 29 Nov 2019 23:26:14 GMT):
What's in the peer log

Roberto9 (Fri, 29 Nov 2019 23:30:33 GMT):
Getting the same error I'm afraid @BrettLogan

Roberto9 (Fri, 29 Nov 2019 23:30:38 GMT):

Clipboard - November 29, 2019 11:30 PM

Roberto9 (Fri, 29 Nov 2019 23:30:43 GMT):

Clipboard - November 29, 2019 11:30 PM

lnbryan (Sat, 30 Nov 2019 02:12:53 GMT):
Has joined the channel.

lnbryan (Sat, 30 Nov 2019 02:13:09 GMT):
hello. please how can i start synching with BESU mainnet on my windows

knagware9 (Sat, 30 Nov 2019 08:36:57 GMT):
Fabric-shim moved out to different location ..you need to get that shim package

Roberto9 (Sat, 30 Nov 2019 08:37:28 GMT):
Where do I get the shim package? And where do I put it?

knagware9 (Sat, 30 Nov 2019 08:38:11 GMT):
in the fabric folder

Roberto9 (Sat, 30 Nov 2019 08:38:29 GMT):
Where do I get the shim package?

knagware9 (Sat, 30 Nov 2019 08:40:13 GMT):
I forgot the location, but earlier it was in fabric/code/chaincode/shim

Roberto9 (Sat, 30 Nov 2019 08:42:30 GMT):
Can't find any code folder or shim folder here

Roberto9 (Sat, 30 Nov 2019 08:42:30 GMT):
https://github.com/hyperledger/fabric

knagware9 (Sat, 30 Nov 2019 08:44:59 GMT):
fabric-chaincode-go/shim

knagware9 (Sat, 30 Nov 2019 08:45:25 GMT):
check this https://github.com/hyperledger/fabric-chaincode-go

Ammu (Sat, 30 Nov 2019 08:50:38 GMT):
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60) command used: docker-compose -f docker-compose.yml up

Roberto9 (Sat, 30 Nov 2019 09:07:43 GMT):
Well it made that error go away now I'm getting yet another @knagware9

Roberto9 (Sat, 30 Nov 2019 09:07:48 GMT):
# go build can't load package: package chaincode: no Go files in /opt/gopath/src/chain

Roberto9 (Sat, 30 Nov 2019 09:08:09 GMT):
# go build can't load package: package chaincode: no Go files in /opt/gopath/src/chaincode

BrettLogan (Sat, 30 Nov 2019 20:52:50 GMT):
Of course this doesn't work, you are totally ignoring how GOPATH works. You need to go out and familiarize yourself with gopath, in this instance you need to set gopath to another directory that properly resolves to the example Chaincode in fabric-samples. Or move the example Chaincode to the correct location in your existing gopath

mastersingh24 (Sat, 30 Nov 2019 22:49:46 GMT):
The error actually tells you what to do. The containers are likley actually running ... the issue is piping the output back to the command console ... set the env variable as directed if this continues to happen

zzocker (Sun, 01 Dec 2019 05:38:25 GMT):
how to connect locally hosted hyperledger network to website or app.

FengWenzhong (Sun, 01 Dec 2019 13:41:25 GMT):
Has joined the channel.

FengWenzhong (Sun, 01 Dec 2019 13:41:26 GMT):
Hi, All! How could I using a public CA in Fabric?

FengWenzhong (Sun, 01 Dec 2019 13:42:06 GMT):
That means my Fabric network could accept cert from a third CA.

shivesh86 (Sun, 01 Dec 2019 14:34:05 GMT):
Hi.

shivesh86 (Sun, 01 Dec 2019 14:34:24 GMT):
I am getting this error while downloading hyperledger sample binaries

shivesh86 (Sun, 01 Dec 2019 14:34:31 GMT):
curl -sSl http://bit.ly/2ysbOFE | bash -s bash: line 1: syntax error near unexpected token `newline' bash: line 1: `'

thanhphu (Mon, 02 Dec 2019 01:25:28 GMT):
Has joined the channel.

knagware9 (Mon, 02 Dec 2019 07:24:00 GMT):
Hi, In V1.4.4 fabric shim & protos package moved to seprate folder. While we do go build for chaincode its gives error that shim & protos package not found. When I checked in fabric repository those packages are missing but in the fabric-samples we still using old path "github.com/hyperledger/fabric/core/chaincode/shim" & github.com/hyperledger/fabric/protos/peer ... I think we should also change the fabric-sample chaincode, they still referring to old location.

knagware9 (Mon, 02 Dec 2019 07:24:06 GMT):
example_cc.go:7:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/kamlesh/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) example_cc.go:8:2: cannot find package "github.com/hyperledger/fabric/protos/peer" in any of: /usr/local/go/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT) /home/kamlesh/go/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)

knagware9 (Mon, 02 Dec 2019 07:24:27 GMT):
https://github.com/hyperledger/fabric-samples/blob/v1.4.4/chaincode/chaincode_example02/go/chaincode_example02.go

chamodilokuge (Mon, 02 Dec 2019 08:46:19 GMT):
Hi i have few questions

chamodilokuge (Mon, 02 Dec 2019 08:47:18 GMT):
Where does data stored in the hyperledger fabric? is it in couchdb? If not what's the difference between the ledger and couchdb?

chamodilokuge (Mon, 02 Dec 2019 08:48:56 GMT):
What is the storage limit of hyperledger blockchain if we are to store data on the chain?

chamodilokuge (Mon, 02 Dec 2019 08:49:16 GMT):
any help would be much appreciated

dcof (Mon, 02 Dec 2019 10:12:17 GMT):
Hi, i'm wondering how, for example, web applications interact with deployed chaincodes. As far as i have seen, there is no thing like an ABI like in ethereum, right? So would i have to set up a backend which uses the hyperledger SDK to make the calls to the chaincode? That would result in somethinlig like client --> backend --> hyperledger fabric node and vice versa.

palra (Mon, 02 Dec 2019 10:16:44 GMT):
Exactly! You can setup a REST endpoint or a GraphQL server that will interact with a given peer with the Fabric SDK. The official SDKs are for Node.js and Java, and they are unofficial implementations with Python and Go, even as a REST endpoint. You can take a look, but from my experience I'd recommend setting up your own backend, so you can add your own routes and authentication layer and everything

dcof (Mon, 02 Dec 2019 10:17:40 GMT):
Great, thank you for the fast reply, i really appreciate it!

barney2k7 (Mon, 02 Dec 2019 10:22:21 GMT):
"even as a REST endpoint" - do you happen to have a documentation link for that?

barney2k7 (Mon, 02 Dec 2019 10:23:44 GMT):
Or are you referring to https://github.com/hyperledger-archives/fabric-sdk-rest (which seems to be dead)?

palra (Mon, 02 Dec 2019 10:42:00 GMT):
@barney2k7 Actually just read it from the docs, but turns out the project isn't mainained anymore : https://github.com/hyperledger-archives/fabric-sdk-rest

barney2k7 (Mon, 02 Dec 2019 10:44:16 GMT):
Thanks for clarifying!

dcof (Mon, 02 Dec 2019 11:41:27 GMT):
So basically at the moment Node.js and Java SDK is maintained and could / should be used?

barney2k7 (Mon, 02 Dec 2019 11:51:51 GMT):
I think so. At least, that's what is documented here (which seems to be official): https://hyperledger-fabric.readthedocs.io/en/release-1.4/getting_started.html#hyperledger-fabric-application-sdks

dcof (Mon, 02 Dec 2019 11:52:40 GMT):
okay, meaning i would have to create a REST Endpoint for a possible WebApp myself which would then work via the SDK with the actual node, got it (i think^^)

SamYuan1990 (Mon, 02 Dec 2019 12:04:32 GMT):
hello, does anyone can help with # command-line-arguments [command-line-arguments.test]? issue when go test?

VadimInshakov (Mon, 02 Dec 2019 12:35:12 GMT):
**Why I need affiliation for GetAllIdentities()?** I registered users (with affiliation "org1.department1") using registrar Admin (without affiliation field). Then my admin is blocked because the wrong password was entered 10 times. I'm trying to get user identities using another admin (with affiliation field). Now I get error from this code block (dbaccessor.go, 592): ``` if util.ListContains(types, "*") { // If type is '*', allowed to get back of all types for requested affiliation query := "SELECT * FROM users WHERE ((affiliation = ?) OR (affiliation LIKE ?))" rows, err := d.db.Queryx("GetFilteredUsers", d.db.Rebind(query)) if err != nil { return nil, errors.Wrapf(err, "Failed to execute query '%s' for affiliation '%s' and types '%s'", query, affiliation, types) } return rows, nil } ``` Here is err message that I get: ``` 172.19.0.1:59830 GET /identities?ca=ca.rzd.wheelsets.ru 500 49 "Failed to get users by affiliation and type: Failed to execute query 'SELECT * FROM users WHERE ((affiliation = ?) OR (affiliation LIKE ?))' for affiliation 'org1.department1' and types '*': Not enough args to execute query. Expected 2, got 0." ``` Does it mean that I can't get users, that registered admin with another affiliation, right? I need to (1) change either Admin password or (2) create new admin, but in case (1) I can't issue modifyRequest, because it require affiliation (if I change it, I will lost ability to read registered identities) and in case (2) new issued admin will have affiliation field and will not be able to get identities.

palra (Mon, 02 Dec 2019 12:41:21 GMT):
You got it @dcof, that's the way to go

SamYuan1990 (Mon, 02 Dec 2019 12:44:36 GMT):
hello, can anyone help verify FAB-17151, FAB-17152, FAB-17149 are still issue on current master branch? I try to fix them with defer os.removeall(tempdir) but I back to latest master tested locally, can not reproduce. via go test . or do i need some specific script to run the test?

prasanths96 (Mon, 02 Dec 2019 13:28:01 GMT):
Hi, I'm wondering if there is a way to know inside the chaincode, if invoke was called from another chaincode using stub.InvokeChaincode()? I'm trying to create a modularized chaincode, where the tech logic like storing, reading etc. is taking care by one chaincode and business logics defining business flows exist in another chaincode. I only want business chaincode to access tech chaincode. Tech chaincode should not be access from SDK or externally.

prasanths96 (Mon, 02 Dec 2019 13:28:01 GMT):
Hi, I'm wondering if there is a way to know inside the chaincode, if invoke was called from another chaincode using stub.InvokeChaincode()? I'm trying to create a modularized chaincode, where the tech logic like storing, reading etc. is taking care by one chaincode and business logics defining business flows exist in another chaincode. I only want business chaincode to access tech chaincode. Tech chaincode should not be access from SDK or externally. Highly appreciate if anybody could help :slight_smile:

prasanths96 (Mon, 02 Dec 2019 13:28:01 GMT):
Hi, I'm wondering if there is a way to know inside the chaincode, if invoke was called from another chaincode using stub.InvokeChaincode()? I'm trying to create a modularized chaincode, where the tech logic like storing, reading etc. is taking care by one chaincode and business logics defining business flows exist in another chaincode. I only want business chaincode to access tech chaincode. Tech chaincode should not be accessed from SDK or externally. Highly appreciate if anybody could help :slight_smile:

santmukh (Mon, 02 Dec 2019 14:46:51 GMT):
Hi, I tried to create network with one static organization and 5 orderer based on Raft consensus. Peer is not able to connect to orderer. Attached is the file of errors.

santmukh (Mon, 02 Dec 2019 14:47:03 GMT):

Error-1.txt

Arindam (Mon, 02 Dec 2019 15:05:28 GMT):
Has joined the channel.

Arindam (Mon, 02 Dec 2019 15:05:29 GMT):
Hi Team, I am facing one issue during invoke transaction. after huge number of blocks created in network . invoke transaction is taking more than 6 seconds. It is two orgs two channel network.

chanjaljayaram (Mon, 02 Dec 2019 15:49:32 GMT):
Has joined the channel.

chanjaljayaram (Mon, 02 Dec 2019 15:49:34 GMT):
Hi Team,

chanjaljayaram (Mon, 02 Dec 2019 15:49:34 GMT):
Hi Team,``` Could you please let me know if there are any documentation on adding/removing new Orderer organizations into an existing network and existing Application Channel?``` Thanks ``` ```

Taaanos (Mon, 02 Dec 2019 15:52:43 GMT):
I get a 404 when I try to go to github.com/hyperledger/fabric/core/chaincode/shim

Taaanos (Mon, 02 Dec 2019 15:52:46 GMT):
any ideas?

lucasmori (Mon, 02 Dec 2019 17:13:46 GMT):
Hi guys, I implemented a method to transfer an asset from org1 to org2, but i can't create a validation to verify if the org2 exists at the channel, for verify if the org1 exists i use this `ctx.stub.getCreator().getMspid().toString().toLowerCase()`. I don't know how to verify org 2

CaioPinheiro (Mon, 02 Dec 2019 20:28:07 GMT):
Hello guys! Would you know how to retrieve information from the Fabric network (such as block height, for example) using nodejs?

wangcj (Tue, 03 Dec 2019 03:07:24 GMT):
Failed to initialize local MSP: administrators must be declared when no admin ou

Arindam (Tue, 03 Dec 2019 06:03:29 GMT):
Hi team, can anyone help me for this.

ken1110 (Tue, 03 Dec 2019 07:09:14 GMT):
Has joined the channel.

ken1110 (Tue, 03 Dec 2019 07:09:14 GMT):
Hi, Everyone, I would like to know if HLF network get an asset from other HLF networks?

palra (Tue, 03 Dec 2019 08:58:37 GMT):
I think you're looking to implement some kind of oracle : https://developer.ibm.com/articles/oracles-common-architectural-patterns-for-fabric/

sandman (Tue, 03 Dec 2019 09:08:19 GMT):
Heelo, for peers CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE environment variable, are there any alternate values besides network name?

sandman (Tue, 03 Dec 2019 09:08:19 GMT):
Hello, for peers CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE environment variable, are there any alternate values besides network name?

biligunb (Tue, 03 Dec 2019 10:08:02 GMT):
Hey gues I know that HLF can reach ~3000TPS. But is there any hardware related limits that I should be aware of? (Like linux ephemeral port range, or TCP connection limits etc...)

IliasStergiou (Tue, 03 Dec 2019 10:44:50 GMT):
Just for the record, I found the issue, the chaincode was using a non-deterministic function, therefore different endorsing peers produced different output. The reason I am sharing this is to explain that the javascript sdk did not verify the output from the endorsing peers and sent it to the orderer, the golang sdk did check the output of the endorsing peers, logged and returned an error without sending the transaction to the orderer,

VishalVerma (Tue, 03 Dec 2019 11:27:02 GMT):
Has joined the channel.

VishalVerma (Tue, 03 Dec 2019 11:27:04 GMT):
Hi Everyone, Is any separate channel for QA? So that I can ask into that channel.

jamartins (Tue, 03 Dec 2019 13:29:40 GMT):
Has joined the channel.

jamartins (Tue, 03 Dec 2019 13:29:41 GMT):
Hi guys, I'm having trouble using Caliper with more than 1 orderer, I get a NOT_FOUND return message from the 2nd orderer, does anyone have any experience with that? I can't even find a reference for that error online...

laues (Tue, 03 Dec 2019 15:08:51 GMT):
Has joined the channel.

ken1110 (Tue, 03 Dec 2019 15:57:02 GMT):
Thank you!

ikset (Tue, 03 Dec 2019 16:52:08 GMT):
Has joined the channel.

Silona (Tue, 03 Dec 2019 17:50:43 GMT):
The Hyperledger Fabric Developer (CHFD) exam is scheduled to launch in late Q1 2020 and we are now looking for Beta testers. Interested parties should complete the CHFD Beta Sign-up Form by January 15, 2020. The CHFD Beta is FREE for the first 20 who qualify and after that it will be available at the low discount of $100. https://training.linuxfoundation.org/certification/certified-hyperledger-fabric-developer/ https://docs.google.com/forms/d/e/1FAIpQLScPxgBt6GvuTcrtjYCkWqW2D6o-2YrNd4vR--KXFGUw-5Ctsw/viewform

KalyaniPullela (Tue, 03 Dec 2019 20:23:04 GMT):
Has joined the channel.

PremaGulp (Tue, 03 Dec 2019 20:52:31 GMT):
Has joined the channel.

tengc (Tue, 03 Dec 2019 22:54:33 GMT):
Hi, I would like to know if there is currently a GUI based method for adding and removing organizations from a Fabric network?

hemantsharma 2 (Wed, 04 Dec 2019 06:26:52 GMT):
Has joined the channel.

hemantsharma 2 (Wed, 04 Dec 2019 06:26:53 GMT):
what connection details need to connect with network from client app or hyperledger explorer

wangcj (Wed, 04 Dec 2019 07:20:15 GMT):
your blog is appreciated. Could you teach me more? master

Salaria_77 (Wed, 04 Dec 2019 08:36:34 GMT):
Hi all , Here is my issue related to the Ca server, please find the stack overflow link below. https://stackoverflow.com/questions/59171822/enabling-peer-client-admin-roles-in-the-policies-using-own-ca-server-not-crypt

lionelronaldo (Wed, 04 Dec 2019 09:09:28 GMT):
Has joined the channel.

ndviet (Wed, 04 Dec 2019 10:54:39 GMT):
Has joined the channel.

ndviet (Wed, 04 Dec 2019 10:59:57 GMT):
Hi guys , i've met the following issue https://stackoverflow.com/questions/57141085/hyperledger-fabric-in-kubernetes-not-able-to-instantiate-chaincode How can i solve this problem?

BrettLogan (Wed, 04 Dec 2019 15:03:16 GMT):
Are your pods privileged. The chaincode container runs an intance of DockerInDocker, so it needs access to the Docker socket, which can only occur in a Privileged pod

palra (Wed, 04 Dec 2019 15:57:02 GMT):
What is the difference between `peer chaincode query` and `peer chaincode invoke`? Doesn't both of them invoke the targeted chaincode?

epiccoleman (Wed, 04 Dec 2019 17:57:05 GMT):
Has joined the channel.

epiccoleman (Wed, 04 Dec 2019 17:57:07 GMT):
Hi everyone. I'm working on a blockchain poc project and have been implementing something very similar to the Fabcar demo, where data about my resources is stored on the blockchain. I've had some comments from a partner who insists that the data does _not_ belong on the chain, and that it should instead be stored "in the user's wallet." I've been trying to make sense of this comment but the Fabric docs seem to indicate that a wallet is just for user identification. I'm getting the feeling that one of us is misunderstanding something. I've read through the Fabric docs pretty thoroughly but I am pretty new to blockchain, so maybe I'm missing something. Is there some way to store data in a user's wallet? Does this question even make sense?

KingOfTheWorld (Wed, 04 Dec 2019 21:08:33 GMT):
Has joined the channel.

KingOfTheWorld (Wed, 04 Dec 2019 21:08:33 GMT):
Hi all, I am working through the Commercial Paper tutorial, and I am running into a problem instantiating java chaincode. If you pull release-1.4 and follow the instructions found here: https://github.com/hyperledger/fabric-samples/tree/release-1.4/commercial-paper through the instantiation step, I get the following error "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1". I believe all I've done thus far is just run the provided scripts. Is this reproducible or am I making a mistake somewhere?

KingOfTheWorld (Wed, 04 Dec 2019 21:08:33 GMT):
Hi all, I am working through the Commercial Paper tutorial, and I am running into a problem instantiating java chaincode. If you pull release-1.4 and follow the instructions found here: https://github.com/hyperledger/fabric-samples/tree/release-1.4/commercial-paper through the instantiation step (maybe 3 or 4 commands in), I get the following error "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1". I believe all I've done thus far is just run the provided scripts. Is this reproducible or am I making a mistake somewhere?

marcus.mello (Thu, 05 Dec 2019 00:56:04 GMT):
Has joined the channel.

ndviet (Thu, 05 Dec 2019 02:15:32 GMT):
Thank you!

UdkReddy (Thu, 05 Dec 2019 05:09:45 GMT):
Hello i was trying to add an org to existing fabric network , followed add org tutorial everything went fine and a new config block was created, but when i try to execute peer channel getinfo i was getting this error ```Error: received bad response, status 500: access denied for [GetChainInfo][channelall]: [Failed evaluating policy on signed data during check policy on channel [channelall] with policy [/Channel/Application/Readers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied] ``` could anyone help me why this error is ouccured

Qeven (Thu, 05 Dec 2019 06:59:19 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Thu, 05 Dec 2019 09:16:53 GMT):
query is used to get data from ledger, it means that doesnt make a new block. invoke is used to make an action against ledger( ussually to insert data, but can be used to read from ledger). This proccess make a new block.

AndresMartinezMelgar.itcl (Thu, 05 Dec 2019 09:16:53 GMT):
Query is used to get data from ledger, it means that doesnt make a new block. Invoke is used to make an action against ledger( ussually to insert data, but can be used to read from ledger). This proccess make a new block.

palra (Thu, 05 Dec 2019 09:19:18 GMT):
Ok thanks for the precision!

AndresMartinezMelgar.itcl (Thu, 05 Dec 2019 09:20:02 GMT):
hehe, no problem

Luxii (Thu, 05 Dec 2019 10:11:39 GMT):
Hi, Im getting following error while instantiating my chaincode. What could be the possible reason ? ``` ```

Luxii (Thu, 05 Dec 2019 10:11:39 GMT):
Hi, Im getting following error while instantiating my chaincode. What could be the possible reason ? ``` ^[[36m2019-12-05 08:26:50.194 UTC [lockbasedtxmgr] NewTxSimulator -> DEBU fad^[[0m constructing new tx simulator ^[[36m2019-12-05 08:26:50.195 UTC [lockbasedtxmgr] newLockBasedTxSimulator -> DEBU fae^[[0m constructing new tx simulator txid = [5d66aa9d76c2446847c4708ad764c206a888e176e66c940a2bd8293af4dd77ad] ^[[36m2019-12-05 08:26:50.195 UTC [endorser] SimulateProposal -> DEBU faf^[[0m [customchannel][5d66aa9d] Entry chaincode: name:"lscc" ^[[34m2019-12-05 08:26:50.195 UTC [endorser] callChaincode -> INFO fb0^[[0m [customchannel][5d66aa9d] Entry chaincode: name:"lscc" ^[[36m2019-12-05 08:26:50.195 UTC [chaincode] Execute -> DEBU fb1^[[0m Entry ^[[36m2019-12-05 08:26:50.196 UTC [chaincode] handleMessage -> DEBU fb2^[[0m [5d66aa9d] Fabric side handling ChaincodeMessage of type: GET_STATE in state ready ^[[36m2019-12-05 08:26:50.196 UTC [chaincode] HandleTransaction -> DEBU fb3^[[0m [5d66aa9d] handling GET_STATE from chaincode ^[[36m2019-12-05 08:26:50.197 UTC [chaincode] HandleGetState -> DEBU fb4^[[0m [5d66aa9d] getting state for chaincode lscc, key mycc, channel customchannel ^[[36m2019-12-05 08:26:50.197 UTC [stateleveldb] GetState -> DEBU fb5^[[0m GetState(). ns=lscc, key=mycc ^[[36m2019-12-05 08:26:50.197 UTC [chaincode] HandleGetState -> DEBU fb6^[[0m [5d66aa9d] No state associated with key: mycc. Sending RESPONSE with an empty payload ^[[36m2019-12-05 08:26:50.197 UTC [chaincode] HandleTransaction -> DEBU fb7^[[0m [5d66aa9d] Completed GET_STATE. Sending RESPONSE ^[[36m2019-12-05 08:26:50.198 UTC [msp] GetManagerForChain -> DEBU fb8^[[0m Returning existing manager for channel 'customchannel' ^[[36m2019-12-05 08:26:50.198 UTC [cauthdsl] func1 -> DEBU fb9^[[0m 0xc0030f1cd0 gate 1575534410198563798 evaluation starts ^[[36m2019-12-05 08:26:50.198 UTC [cauthdsl] func2 -> DEBU fba^[[0m 0xc0030f1cd0 signed by 0 principal evaluation starts (used [false]) ^[[36m2019-12-05 08:26:50.198 UTC [cauthdsl] func2 -> DEBU fbb^[[0m 0xc0030f1cd0 processing identity 0 with bytes of aa8b30 ^[[36m2019-12-05 08:26:50.199 UTC [cauthdsl] func2 -> DEBU fbc^[[0m 0xc0030f1cd0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrgbuyerMSP, got OrglenderMSP) ^[[36m2019-12-05 08:26:50.199 UTC [cauthdsl] func2 -> DEBU fbd^[[0m 0xc0030f1cd0 principal evaluation fails ^[[36m2019-12-05 08:26:50.199 UTC [cauthdsl] func2 -> DEBU fbe^[[0m 0xc0030f1cd0 signed by 1 principal evaluation starts (used [false]) ^[[36m2019-12-05 08:26:50.199 UTC [cauthdsl] func2 -> DEBU fbf^[[0m 0xc0030f1cd0 processing identity 0 with bytes of aa8b30 ^[[36m2019-12-05 08:26:50.199 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU fc0^[[0m Checking if identity satisfies ADMIN role for OrglenderMSP ^[[36m2019-12-05 08:26:50.200 UTC [cauthdsl] func2 -> DEBU fc1^[[0m 0xc0030f1cd0 identity 0 does not satisfy principal: This identity is not an admin ^[[36m2019-12-05 08:26:50.200 UTC [cauthdsl] func2 -> DEBU fc2^[[0m 0xc0030f1cd0 principal evaluation fails ^[[36m2019-12-05 08:26:50.200 UTC [cauthdsl] func2 -> DEBU fc3^[[0m 0xc0030f1cd0 signed by 2 principal evaluation starts (used [false]) ^[[36m2019-12-05 08:26:50.200 UTC [cauthdsl] func2 -> DEBU fc4^[[0m 0xc0030f1cd0 processing identity 0 with bytes of aa8b30 ^[[36m2019-12-05 08:26:50.200 UTC [cauthdsl] func2 -> DEBU fc5^[[0m 0xc0030f1cd0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected OrgsellerMSP, got OrglenderMSP) ^[[36m2019-12-05 08:26:50.201 UTC [cauthdsl] func2 -> DEBU fc6^[[0m 0xc0030f1cd0 principal evaluation fails ^[[36m2019-12-05 08:26:50.201 UTC [cauthdsl] func1 -> DEBU fc7^[[0m 0xc0030f1cd0 gate 1575534410198563798 evaluation fails ^[[36m2019-12-05 08:26:50.201 UTC [chaincode] handleMessage -> DEBU fc8^[[0m [5d66aa9d] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready ^[[36m2019-12-05 08:26:50.201 UTC [chaincode] Notify -> DEBU fc9^[[0m [5d66aa9d] notifying Txid:5d66aa9d76c2446847c4708ad764c206a888e176e66c940a2bd8293af4dd77ad, channelID:customchannel ^[[36m2019-12-05 08:26:50.201 UTC [chaincode] Execute -> DEBU fca^[[0m Exit ^[[34m2019-12-05 08:26:50.201 UTC [endorser] callChaincode -> INFO fcb^[[0m [customchannel][5d66aa9d] Exit chaincode: name:"lscc" (6ms) ^[[36m2019-12-05 08:26:50.201 UTC [lockbasedtxmgr] GetTxSimulationResults -> DEBU fcc^[[0m Simulation completed, getting simulation results ```

Talha_Wahid (Thu, 05 Dec 2019 10:52:44 GMT):
Hi is there a way to deploy fabric without using docker along with couchdb and custom chaincode?

Talha_Wahid (Thu, 05 Dec 2019 10:52:44 GMT):
Hi is there a way to deploy fabric without using docker along with couchdb and custom chaincode? https://upcloud.com/community/tutorials/hyperledger-fabric-systemd/ Above link shows how to do it but it does not show how to use couchdb from systemd

palra (Thu, 05 Dec 2019 11:02:22 GMT):
Just install CouchDB by yourself, and add inb the Environment section of your systemd service the credentials with the variables `CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME` and `CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD`

palra (Thu, 05 Dec 2019 11:02:22 GMT):
Just install CouchDB by yourself, and add in the Environment section of your systemd service the credentials with the variables `CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME` and `CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD`

palra (Thu, 05 Dec 2019 11:02:46 GMT):
That might be a good starting point : https://www.jamescoyle.net/how-to/2527-add-systemd-startup-script-for-couchdb

Talha_Wahid (Thu, 05 Dec 2019 11:03:07 GMT):
This is without docker?

palra (Thu, 05 Dec 2019 11:04:02 GMT):
Yep, the environment variables you need to set for the peer are the same in a Docker environment or not, as the binary is the same

Talha_Wahid (Thu, 05 Dec 2019 11:06:33 GMT):
Can we use this if there is no docker installed?

Paradox-AT (Thu, 05 Dec 2019 12:08:46 GMT):
Hey guys, is there any way to get the transaction parameters for historical states? I need to get the function name provided while invoking the transaction.

Paradox-AT (Thu, 05 Dec 2019 12:08:59 GMT):
Can Anyone help me on this: https://stackoverflow.com/questions/59194606/how-to-get-the-parameters-passed-to-the-transaction-for-the-historical-states

lucasmori (Thu, 05 Dec 2019 12:34:20 GMT):
Hi guys, I implemented a method to transfer an asset from org1 to org2, but i can't create a validation to verify if the org2 exists at the channel, for verify if the org1 exists i use this `ctx.stub.getCreator().getMspid().toString().toLowerCase()`. I don't know how to verify org 2

palra (Thu, 05 Dec 2019 13:46:32 GMT):
You should be able to, didn't tested that but give it a try you should be able to make it

ahmedsajid (Thu, 05 Dec 2019 15:18:52 GMT):
Hi All,

mastersingh24 (Thu, 05 Dec 2019 15:53:22 GMT):
your peer will not work without access to a Docker daemon ... that daemon can either be on your host or you can access one remotely via the remote API endpoint

palra (Thu, 05 Dec 2019 15:54:06 GMT):
Oh sure ... I had docker-compose in mind but sure you somehow need Docker

Tim (Thu, 05 Dec 2019 18:07:06 GMT):
Hi has someone got this erro failed to invoke chaincode name:"lscc" , error: container exited with 133

Tim (Thu, 05 Dec 2019 18:07:34 GMT):
it's when I try to instantiate a chaincode

Tim (Thu, 05 Dec 2019 18:12:23 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 133

Tim (Thu, 05 Dec 2019 19:34:25 GMT):
Okay find out that the problem cames from name I gave to the chaincode, so don't use camelCase :)

icarrascol (Thu, 05 Dec 2019 20:52:55 GMT):
hello everyone, how can we handle a massive sized ledger, considering that when a new org joins it retrieves all its data, so if we have a ledger that is really big it would take a long time to finish this transfer and also it could saturate the network, is there a way to maintain a manageable sized ledger, do we have options to split the ledger or something like that?

slavitch (Thu, 05 Dec 2019 21:17:48 GMT):
Has joined the channel.

slavitch (Thu, 05 Dec 2019 21:18:33 GMT):
Each channel is a different ledger.

slavitch (Thu, 05 Dec 2019 21:18:50 GMT):
Also, don't stuff things in the ledger that shouldn't be there.

tengc (Thu, 05 Dec 2019 21:59:10 GMT):
I've been told to bring this question here from Explorer, is there anyway to set names for peer nodes? I came across an issue when I deployed the network using IP addresses instead of hostnames for most of the environmental variables. This causes Explorer to remove nodes that have the same IP address, but connect using different ports. Is there anything I can do to resolve this?

trevoro1 (Fri, 06 Dec 2019 02:23:02 GMT):
I saw fabric-contract-api is a contract interface and fabric-shim is a chaincode interface but the differences are not that clear to me since the contract is chaincode. Has anyone more details about when to use fabric-shim and when to use fabric-contract-api?

VishalVerma (Fri, 06 Dec 2019 05:00:16 GMT):
Hi, Can we do vulnerability between peers and chaincode in hyperledger febric?

VishalVerma (Fri, 06 Dec 2019 05:00:16 GMT):
Hi, Can we do vulnerability between peers and chaincode in hyperledger fabric?

VishalVerma (Fri, 06 Dec 2019 05:00:16 GMT):
Hi, How can we test any vulnerability between peers and chaincode in hyperledger fabric? or How can we test any vulnerability between client and peers in hyperledger fabric?

hunterfred (Fri, 06 Dec 2019 07:20:55 GMT):
Has joined the channel.

hunterfred (Fri, 06 Dec 2019 07:20:56 GMT):
Hi everyone, I'm a new learner on Fabric and was following the tutorial on fabcar trying and decided to poke around the nodejs API's, I enrolled admin and user identities, and set up a Gateway connection as admin successfully, I was able to get couple of discovery APIs running such as `Channel.queryInfo`, `client.queryChannels`, however, I always receive access denied error on API `client.queryPeers`. Any help is appreciated! Code snippet is pasted below: ``` var client = gateway.getClient(); var peer0 = client.getPeer("peer0.org1.example.com"); var qp_resp = await client.queryPeers( { target: client.getPeer("peer0.org1.example.com"), useAdmin: true } ); ```

hunterfred (Fri, 06 Dec 2019 07:20:56 GMT):
Hi everyone, I'm a new learner on Fabric and was following the tutorial on fabcar and decided to poke around the nodejs APIs, I enrolled admin and user identities, and set up a Gateway connection as admin successfully. I was able to get couple of discovery APIs running such as `Channel.queryInfo`, `client.queryChannels`, however, I always receive access denied error on API `client.queryPeers`. Any help is appreciated! Code snippet is pasted below: ``` var client = gateway.getClient(); var qp_resp = await client.queryPeers( { target: client.getPeer("peer0.org1.example.com"), useAdmin: true } ); ```

abel23 (Fri, 06 Dec 2019 09:46:01 GMT):
How many consortiums are possible in Fabric? My wild guess is one. Am I right?

ahmad-raza (Fri, 06 Dec 2019 10:32:02 GMT):
How can we STRESS TEST the chaincode? Running 1000s of transactions simultaneously Querying chaincode 1000s of time simultaeously I am querying the chaincode through API 500 times using Jmeter but it TIMEOUTS failed to execute transaction 359bac57b6d49433e173b99e72d1675bfdcdaacfae68c11f7d3928f40e25941f: error sending: timeout expired while executing transaction ?

ahmad-raza (Fri, 06 Dec 2019 10:33:38 GMT):
Any workaround ?? Increasing timeout ?? etc??

santmukh (Fri, 06 Dec 2019 11:35:27 GMT):
Hi, can any one share the link of how to create RAFT over cluster VMs?

roberto.cangiamila (Fri, 06 Dec 2019 11:39:48 GMT):
Has joined the channel.

roberto.cangiamila (Fri, 06 Dec 2019 11:39:49 GMT):
Hi all .. i needs to ask you a question about chaincode event lister registration .. is there a way to pass an offset in registerChaincodeEventListener Channel class call?

roberto.cangiamila (Fri, 06 Dec 2019 11:41:06 GMT):
I'me developing a kafka connector that takes source element from chaincode event and propagate them to kafka topics ...

abel23 (Fri, 06 Dec 2019 11:46:23 GMT):
Is it possible or necessary to create different anchor peers for different channels?

ahmad-raza (Fri, 06 Dec 2019 12:21:29 GMT):

Screenshot from 2019-12-06 17-01-42.png

ahmad-raza (Fri, 06 Dec 2019 12:21:42 GMT):

Screenshot from 2019-12-06 17-20-11.png

ahmad-raza (Fri, 06 Dec 2019 12:21:52 GMT):
These are the logs of peer attached

ahmad-raza (Fri, 06 Dec 2019 12:22:32 GMT):
I want to make fabric network highly available??? millions or users can access ledger ??

savitrisonnad (Fri, 06 Dec 2019 12:59:15 GMT):
Hi guys,

roberto.cangiamila (Fri, 06 Dec 2019 13:35:47 GMT):
Anyone can help me or suggest me a documentation to looking for?

roberto.cangiamila (Fri, 06 Dec 2019 13:36:10 GMT):
.. i'm using fabric-sdk-java 1.4.7 ..

ahmad-raza (Fri, 06 Dec 2019 14:17:01 GMT):
@mastersingh24 can you please give some suggestions on this also??

SamYuan1990 (Fri, 06 Dec 2019 16:40:10 GMT):
Hi I have a question that I am now try with byfn release-1.4 and chaincode build error as some golang dep package not found

fdymylja (Fri, 06 Dec 2019 17:04:33 GMT):
Has joined the channel.

fdymylja (Fri, 06 Dec 2019 17:04:34 GMT):
Hello guys, while installing fabric with go (using go modules) I get a checksum mismatch error: verifying github.com/hyperledger/fabric@v1.4.4: checksum mismatch downloaded: h1:2m+tDXB5QWyZL1UTyYs3fxUhkgvKD88yVE6sIwYf1KM= sum.golang.org: h1:Joa6eO9HEGnzcuZF5RD+dZBPeYqxGF+ehYb7OSs3glY=

fdymylja (Fri, 06 Dec 2019 17:04:34 GMT):
Hello guys, while installing fabric with go (using go modules) I get a checksum mismatch error. command run: go get get github.com/hyperledger/fabric/core/chaincode/shim response: verifying github.com/hyperledger/fabric@v1.4.4: checksum mismatch downloaded: h1:2m+tDXB5QWyZL1UTyYs3fxUhkgvKD88yVE6sIwYf1KM= sum.golang.org: h1:Joa6eO9HEGnzcuZF5RD+dZBPeYqxGF+ehYb7OSs3glY=

fdymylja (Fri, 06 Dec 2019 17:04:34 GMT):
Hello guys, while installing fabric with go (using go modules) I get a checksum mismatch error. command run: go get github.com/hyperledger/fabric/core/chaincode/shim response: verifying github.com/hyperledger/fabric@v1.4.4: checksum mismatch downloaded: h1:2m+tDXB5QWyZL1UTyYs3fxUhkgvKD88yVE6sIwYf1KM= sum.golang.org: h1:Joa6eO9HEGnzcuZF5RD+dZBPeYqxGF+ehYb7OSs3glY=

icarrascol (Fri, 06 Dec 2019 18:59:52 GMT):
depends on how powerful is the machine i think, ive done the same tests and if you send a lot of transactions it starts to timeout on all of them because it cant process them fast enough, the maximmum tps i can get on a distributed network on amazon using raft consensus is like 120tps

icarrascol (Fri, 06 Dec 2019 19:01:04 GMT):
5 orderers and 4 peers

george-lime (Fri, 06 Dec 2019 19:21:37 GMT):
Has joined the channel.

JeffGutierrez (Sat, 07 Dec 2019 02:29:07 GMT):
@icarrascol have you tried in IBM Blockchain Platform? I'm keen to know more about this as well

JeffGutierrez (Sat, 07 Dec 2019 02:30:25 GMT):
in my local pc I saved around 200,000 record and right now its giving me timeout in single query but yesterday I was able to pull 10,000 on each pagination I'm not sure what is causing it

idiota101 (Sat, 07 Dec 2019 07:38:11 GMT):
hii everyone, I am having issue building fabric locally, I am using this command* make dist-clean all*

idiota101 (Sat, 07 Dec 2019 07:38:11 GMT):
hii everyone, I am having issue building fabric locally, I am using this command* make dist-clean all* can anyone help me plz.

idiota101 (Sat, 07 Dec 2019 07:40:42 GMT):

Screenshot from 2019-12-07 12-47-50.png

mastersingh24 (Sat, 07 Dec 2019 10:43:43 GMT):
what OS are you trying to build on?

mastersingh24 (Sat, 07 Dec 2019 10:44:24 GMT):
I just pulled down latest master and did not have that issue on my Mac

rodolfoleal (Sat, 07 Dec 2019 12:19:40 GMT):
I know we don't have block time hyperledger, but in documentation says that we have a time at the block header.

rodolfoleal (Sat, 07 Dec 2019 12:21:03 GMT):

u964J.png

rodolfoleal (Sat, 07 Dec 2019 12:21:08 GMT):
It's the commiting time?

rodolfoleal (Sat, 07 Dec 2019 12:21:26 GMT):
From the peer I'm querying? Or from the peer leader?

yacovm (Sat, 07 Dec 2019 15:12:43 GMT):
@rodolfoleal there is no such thing.... this is false.

rodolfoleal (Sat, 07 Dec 2019 15:13:09 GMT):
That is on fabric docs.

yacovm (Sat, 07 Dec 2019 15:13:26 GMT):
so?

yacovm (Sat, 07 Dec 2019 15:13:30 GMT):
doesn't mean that's right

rodolfoleal (Sat, 07 Dec 2019 15:13:49 GMT):
I also feeled strange...

yacovm (Sat, 07 Dec 2019 15:14:15 GMT):
the block metadata has several fields:

rodolfoleal (Sat, 07 Dec 2019 15:14:29 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/ledger/ledger.html#blocks

rodolfoleal (Sat, 07 Dec 2019 15:14:35 GMT):
There it is

yacovm (Sat, 07 Dec 2019 15:14:50 GMT):
- last config index - signatures - consensus specific metadata - bitmap where each bit tells is the transaction invalid or not, and why

yacovm (Sat, 07 Dec 2019 15:16:59 GMT):
@rodolfoleal I believe you it's in the official docs

yacovm (Sat, 07 Dec 2019 15:17:04 GMT):
it's just not true

rodolfoleal (Sat, 07 Dec 2019 15:17:46 GMT):
Yeah, I think so

rodolfoleal (Sat, 07 Dec 2019 15:18:25 GMT):
I looked a the block structure and only found the channel_header timestamp.

yacovm (Sat, 07 Dec 2019 15:19:03 GMT):
yeah, though: - The client can put whatever he wants, even 500 BC - No one checks it makes sense

rodolfoleal (Sat, 07 Dec 2019 15:19:28 GMT):
Do you know where it comes from?

rodolfoleal (Sat, 07 Dec 2019 15:20:59 GMT):

2019-12-07T13:18:35.802_2128994533725741591.png

yacovm (Sat, 07 Dec 2019 15:21:31 GMT):
> Do you know where it comes from? the client sets it

yacovm (Sat, 07 Dec 2019 15:21:46 GMT):
there is only 1 place in the code, where you verify the channel header

yacovm (Sat, 07 Dec 2019 15:21:52 GMT):
but that is not for Fabric transactions

yacovm (Sat, 07 Dec 2019 15:22:03 GMT):
it's for requests to pull blocks from orderer/peers

yacovm (Sat, 07 Dec 2019 15:22:18 GMT):
you put a timestamp, and if the timestamp is too in the past, then it rejects it.

yacovm (Sat, 07 Dec 2019 15:22:27 GMT):
we use it to prevent replay attacks

rodolfoleal (Sat, 07 Dec 2019 15:26:17 GMT):
Great. Thanks.

yacovm (Sat, 07 Dec 2019 15:36:41 GMT):
I pushed a fix https://github.com/hyperledger/fabric/pull/378

rodolfoleal (Sat, 07 Dec 2019 15:39:30 GMT):
Great

rodolfoleal (Sat, 07 Dec 2019 15:39:34 GMT):
Thanks again

idiota101 (Sat, 07 Dec 2019 16:01:01 GMT):
I am building it on Ubuntu 18.04.2 LTS, OS Type 64 bit, I did some research got something that might help you to understand the problem https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili

CJamie (Sat, 07 Dec 2019 16:10:48 GMT):
Has joined the channel.

OumarKouferidji (Sun, 08 Dec 2019 14:25:27 GMT):
Has joined the channel.

TBigjohn (Sun, 08 Dec 2019 17:10:54 GMT):
Hello, could someone explain me in detail how is affiliation is used when registering users ? For me affiliation is used to mention the organisation of which is part the user. We are using Hurley to generate our Fabric Network with 3 different organizations. We gave those organizations dedicated names, the network creation is working well. If I connect into the docker container of one of the CA and I launch the command "identity list", I can see that, the users created by Hurley are sowing an affiliation to "org1" which is not the name of any of the organizations of my network. Does anybody know where this org1 name is coming from ?

mustName (Sun, 08 Dec 2019 20:17:08 GMT):
hi all

mustName (Sun, 08 Dec 2019 20:17:34 GMT):
I have a silly question

mustName (Sun, 08 Dec 2019 20:18:11 GMT):
I have a fabric network with 4 MSP and their cas, peers, etc

mustName (Sun, 08 Dec 2019 20:18:24 GMT):
i want to install chaincode on the channel

mustName (Sun, 08 Dec 2019 20:18:38 GMT):
how many times I've to install chaincode? one for peer?

mustName (Sun, 08 Dec 2019 20:19:04 GMT):
how many times I've to instantiate chaincode? one, because there is only one channel?

mustName (Sun, 08 Dec 2019 20:19:29 GMT):
Im able to install and instantiate my chaincode from one of the peers

mustName (Sun, 08 Dec 2019 20:19:56 GMT):
from others, i cannot instantiate, i get an error

TBigjohn (Sun, 08 Dec 2019 20:51:04 GMT):
As far as I know you have to install the chaincode once per channel.

mustName (Sun, 08 Dec 2019 20:56:34 GMT):
but in fabcar example chaincode install for every organization (just in one peer)

mustName (Sun, 08 Dec 2019 20:56:45 GMT):
but instantiation is done once

VishalVerma (Mon, 09 Dec 2019 07:09:50 GMT):
Hi All, How can I check and verify endorsement policy in hyperledger fabric.

VishalVerma (Mon, 09 Dec 2019 07:09:50 GMT):
Hi All, How can I check and verify endorsement policy in hyperledger fabric?

VishalVerma (Mon, 09 Dec 2019 07:09:50 GMT):
Hi All, How can I verify endorsement policy in hyperledger fabric?

marinkovicvlado (Mon, 09 Dec 2019 08:22:31 GMT):
Hi, Can anyone share an information about hw requirements necessary to hit around 250tps. Currently, I am running 3orderes (kafka+zookeeper), 3org x 2 peers (6peers), 3 intermediate CA on k8s cluster. HW per peer: 2.5 vCPU, 8GB RAM HW per orderer: 4 vCPU, 8GB RAM We gain around 70tps...

yacovm (Mon, 09 Dec 2019 08:22:57 GMT):
are you using couchDB?

marinkovicvlado (Mon, 09 Dec 2019 08:23:10 GMT):
no leveldb

yacovm (Mon, 09 Dec 2019 08:23:28 GMT):
then I think you just need to put more pressure from the client side

marinkovicvlado (Mon, 09 Dec 2019 08:37:54 GMT):
@yacovm thanks more processes in caliper did the trick

mustName (Mon, 09 Dec 2019 09:05:07 GMT):
hi all

mustName (Mon, 09 Dec 2019 09:08:40 GMT):
I instantiated a chaincod which had errors. I stopped the network, fix the problem an started the network again. When I instantiate the chaincode in one of my peers, logs show the same error that chaincode had. But...if I install the same chaincode in other peer, it works ok

mustName (Mon, 09 Dec 2019 09:09:08 GMT):
Of course, i remove all docker containers when i shut down the network..

alkiimista (Mon, 09 Dec 2019 10:51:46 GMT):
Hello, does anyone know how to stringify the object that gets returned from the function getChannelConfigFromOrderer()? I keep getting TypeError: converting circular structure to JSON.

TBigjohn (Mon, 09 Dec 2019 11:56:19 GMT):
Hello, I also get this kind of circular error. If I remember well I used something like the following to fix it : var util = require('util'); util.inspect(returnedObject); Hope this can help

alkiimista (Mon, 09 Dec 2019 12:19:24 GMT):
Do you perhaps know how to send data to the configtxlator REST using superagent?

TBigjohn (Mon, 09 Dec 2019 12:50:23 GMT):
No sorry I even don't know what you mean by superagent ....

alkiimista (Mon, 09 Dec 2019 12:57:56 GMT):
an NPM package to send requests

icarrascol (Mon, 09 Dec 2019 13:05:04 GMT):
@JeffGutierrez we dont want to use ibm platform, we want to implement it ourselves, we are trying to get the project to production but there isnt any info on how to deploy and maintain the network

icarrascol (Mon, 09 Dec 2019 13:08:43 GMT):
obviously the size of the ledger is a problem because its replicated, hdd space is cheap but still when the ledger gets bigger there will be problems when u join a new org to the network

icarrascol (Mon, 09 Dec 2019 13:11:36 GMT):
also i remember there is a size limit on the request like about 10 mb

icarrascol (Mon, 09 Dec 2019 13:11:36 GMT):
also i remember there is a size limit on the response like about 10 mb

Paradox-AT (Mon, 09 Dec 2019 13:12:10 GMT):
Hey guys is it just me or everyone is not able to get go files?

Paradox-AT (Mon, 09 Dec 2019 13:12:11 GMT):
go get github.com/hyperledger/fabric/core/chaincode/shim go get github.com/hyperledger/fabric/core/chaincode/shim/ext/cid go get github.com/hyperledger/fabric/protos/peer

DollyVolley (Mon, 09 Dec 2019 14:14:10 GMT):
Has joined the channel.

fdymylja (Mon, 09 Dec 2019 15:28:11 GMT):
@Paradox-AT go get github.com/hyperledger/fabric-chaincode-go/shim

fdymylja (Mon, 09 Dec 2019 15:30:58 GMT):
While running chaincode-docker-devmode tutorial: i'm prompted with this error from CLI: cli | Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'myc': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1

herculan0 (Mon, 09 Dec 2019 17:15:17 GMT):
Has joined the channel.

herculan0 (Mon, 09 Dec 2019 17:15:20 GMT):
hello from brazill so i have installed all the required things, docker, docker compose, go, python, node and npm. I run the script for make docker images and install samples and binaries I already started the first-network. now i'm in the process to build a explorer from: https://github.com/hyperledger/blockchain-explorer but now i'm stucked in this part of the tutorial: Make sure to set the environment variables CORE_PEER_GOSSIP_BOOTSTRAP and CORE_PEER_GOSSIP_EXTERNALENDPOINT for each peer in the docker-compose.yaml file. These settings enable the Fabric discovery service, which is used by Hyperledger Explorer to discover the network topology.

tengc (Mon, 09 Dec 2019 17:15:34 GMT):
Are there any guides for deploying Fabric with k8 on Raspberry Pi's?

herculan0 (Mon, 09 Dec 2019 17:49:54 GMT):
https://github.com/mallikprojects/hyperledger-k8

tengc (Mon, 09 Dec 2019 17:54:45 GMT):
Thanks, I'll take a look at this.

tengc (Mon, 09 Dec 2019 18:38:29 GMT):
Has anyone used k3s to deploy Fabric?

delao (Mon, 09 Dec 2019 19:35:35 GMT):
You can use the discovery binary

herculan0 (Mon, 09 Dec 2019 20:39:13 GMT):
I'm installing Hyperledger Explorer for Hyperledger Fabric... But i do not know where should put and how the variables in that step: • Make sure to set the environment variables CORE_PEER_GOSSIP_BOOTSTRAP and CORE_PEER_GOSSIP_EXTERNALENDPOINT for each peer in the docker-compose.yaml file. These settings enable the Fabric discovery service, which is used by Hyperledger Explorer to discover the network topology.

yacovm (Mon, 09 Dec 2019 20:44:08 GMT):
@herculan0 - the bootstrap should point to other peer(s) and the external endpoint is just the endpoint of the peer itself

herculan0 (Mon, 09 Dec 2019 20:44:58 GMT):
thanks @yacovm.

PanosChtz (Mon, 09 Dec 2019 21:39:33 GMT):
Hello all, I went through the Hyperledger Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html on how to setup a first network. However this tutorial builds the whole network with docker images on a single machine. I am looking for a tutorial to setup a real Hyperledger Fabric network (either true separate machines or locally in separate VMs). Unfortunately to my surprise, I haven't managed to find any (besides some incomplete or partial suggestions here and there). In my simple example, I have 2 machines, hostnames are "hyperledger1" and "hyperledger2". I'm at the point where I have installed all the prerequisites, samples and docker images on both hosts. Using the example in the tutorial (/fabric-samples/first-network/) I'd like to set hyperledger1 as orderer and hyperledger2 as peer, only one organization. Can someone tell me which files I need to modify from the existing tutorial and how? Thanks..

Silona (Mon, 09 Dec 2019 21:47:20 GMT):
Reminder if you haven't submitted yet the Hyperledger Fabric Developer (CHFD) exam is scheduled to launch in late Q1 2020 and we are now looking for Beta testers. Interested parties should complete the CHFD Beta Sign-up Form by January 15, 2020. https://training.linuxfoundation.org/certification/certified-hyperledger-fabric-developer/ https://docs.google.com/forms/d/e/1FAIpQLScPxgBt6GvuTcrtjYCkWqW2D6o-2YrNd4vR--KXFGUw-5Ctsw/viewform

moulay (Mon, 09 Dec 2019 23:03:34 GMT):
Has joined the channel.

moulay (Mon, 09 Dec 2019 23:03:35 GMT):
how to create custom network

PanosChtz (Mon, 09 Dec 2019 23:40:32 GMT):
So I'm basically looking for a tutorial that sets up a network in 2 different machines - i.e. no "example.com" tutorials

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 06:17:46 GMT):
Has joined the channel.

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 06:17:48 GMT):
Hi all, I'm trying to setup my first-network on windows using Hyperledger Fabric "Install Samples, Binaries and Docker Images" using the tutorial https://hyperledger-fabric.readthedocs.io/en/latest/install.html . Followed the whole procedure. set format as unix Now while running the script shows the certification load error. Following image can show the error. Really need help for that, as i'm trying to resolve this issue from so many day. Plzzz

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 06:17:48 GMT):
It seems like path conflicts when trying to merge linux and windows path don't you think it'll be an issue later while working?

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 06:18:53 GMT):

Clipboard - December 9, 2019 4_43 PM.png

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 06:19:35 GMT):

Clipboard - December 9, 2019 4_43 PM.png

lehors (Tue, 10 Dec 2019 06:51:28 GMT):
hi, I'm not sure why you're getting these messages but these are not fatal errors because the queries actually succeed and the script completes

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 07:02:02 GMT):
It seems path conflict while trying to merge windows and Linux path Don't you think it'll cause issue later while working?

RahulEth (Tue, 10 Dec 2019 07:25:59 GMT):
hi all do someone have any idea about the error``` slow fdatasync channel=entity node=5 took=2.12409996s expected-duration=1s ```

RahulEth (Tue, 10 Dec 2019 07:25:59 GMT):
hi all do someone have any idea about the peer waring msg ``` slow fdatasync channel=entity node=5 took=2.12409996s expected-duration=1s ```

RahulEth (Tue, 10 Dec 2019 07:25:59 GMT):
hi all do someone have idea about below warning and how to resolve it, my peer getting sync very slow ``` slow fdatasync channel=entity node=5 took=2.12409996s expected-duration=1s ```

RahulEth (Tue, 10 Dec 2019 07:25:59 GMT):
hi all( @lehors ) do someone have idea about below warning and how to resolve it, my peer getting sync very slow ``` slow fdatasync channel=entity node=5 took=2.12409996s expected-duration=1s ```

alkiimista (Tue, 10 Dec 2019 09:34:58 GMT):
Hello, has anyone succeeded with creating a channel programmatically using the Node SDK?

Tim (Tue, 10 Dec 2019 12:07:57 GMT):
Hi guys, I don't understand why I need in the configtx.yml file aka the transactions configuration file, why I need the to declare the policies for the channel, cauz I declare it always in each organisation. So I'll be gratefull if someone can explain me that, thx

Tim (Tue, 10 Dec 2019 12:07:57 GMT):
Hi guys, I don't understand why I need in the configtx.yml file aka the transactions configuration file, why I need the to declare the policies for the channel, cauz I declare it already in each organisation. So I'll be gratefull if someone can explain me that, thx

Ali-Rizwan-Ashraf (Tue, 10 Dec 2019 13:20:15 GMT):
I found the hack at this link https://stackoverflow.com/questions/59051684/failed-to-load-certificates-while-trying-to-create-channel-following-hyperledger

stef050 (Tue, 10 Dec 2019 13:42:14 GMT):
Has joined the channel.

stef050 (Tue, 10 Dec 2019 13:42:15 GMT):
hi, i am trying to run through the first-network tutorial from your online instruction, when running ./byfn.sh up -l node i get:

stef050 (Tue, 10 Dec 2019 13:42:24 GMT):
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

stef050 (Tue, 10 Dec 2019 13:42:39 GMT):
could someone give a hint as to why this would be?

stef050 (Tue, 10 Dec 2019 13:45:39 GMT):
i also see further up the stack:

stef050 (Tue, 10 Dec 2019 13:45:40 GMT):
LOCAL_VERSION=2.0.0 DOCKER_IMAGE_VERSION=2.0.0-alpha =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. ===============================================

yacovm (Tue, 10 Dec 2019 13:58:44 GMT):
@stef050 check if the orderer container is up via `docker ps`

stef050 (Tue, 10 Dec 2019 14:10:10 GMT):
below is the docker ps output that comes out while sh script is running

stef050 (Tue, 10 Dec 2019 14:10:11 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 01651018909a hyperledger/fabric-tools:latest "/bin/bash" 1 second ago Up Less than a second cli 5a2f948180f9 hyperledger/fabric-peer:latest "peer node start" 3 seconds ago Up 1 second 0.0.0.0:7051->7051/tcp peer0.org1.example.com 685964714f67 hyperledger/fabric-orderer:latest "orderer" 3 seconds ago Exited (2) Less than a second ago orderer.example.com eaff4f65d259 hyperledger/fabric-peer:latest "peer node start" 3 seconds ago Up 1 second 7051/tcp, 0.0.0.0:10051->10051/tcp peer1.org2.example.com 4b45ce031e34 hyperledger/fabric-peer:latest "peer node start" 3 seconds ago Up 1 second 7051/tcp, 0.0.0.0:8051->8051/tcp peer1.org1.example.com 6944af095ded hyperledger/fabric-peer:latest "peer node start" 3 seconds ago Up 2 seconds 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com

stef050 (Tue, 10 Dec 2019 14:10:35 GMT):
so looks like the orderer is exiting during the up command

stef050 (Tue, 10 Dec 2019 14:10:59 GMT):
@yacovm

yacovm (Tue, 10 Dec 2019 14:29:38 GMT):
so do `docker logs orderer.example.com` and see why

stef050 (Tue, 10 Dec 2019 14:35:56 GMT):

stef050 - Tue Dec 10 2019 14:34:34 GMT+0000 (Greenwich Mean Time).txt

yacovm (Tue, 10 Dec 2019 14:46:17 GMT):
seems to me that you're using `fabric-samples` of a version that is too late than the docker images

yacovm (Tue, 10 Dec 2019 14:46:24 GMT):
that's also why you have that message (WARNING)

stef050 (Tue, 10 Dec 2019 14:51:19 GMT):
ok thanks

PanosChtz (Tue, 10 Dec 2019 15:46:13 GMT):
Hello all, I went through the Hyperledger Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html on how to setup a first network. However this tutorial builds the whole network with docker images on a single machine. I am looking for a tutorial to setup a real Hyperledger Fabric network (either true separate machines or locally in separate VMs). Unfortunately to my surprise, I haven't managed to find any (besides some incomplete or partial suggestions here and there). In my simple example, I have 2 machines, hostnames are "hyperledger1" and "hyperledger2". So I'm basically looking for a tutorial that sets up a network in 2 different machines - i.e. no "example.com" tutorials I'm at the point where I have installed all the prerequisites, samples and docker images on both hosts. Using the example in the tutorial (/fabric-samples/first-network/) I'd like to set hyperledger1 as orderer and hyperledger2 as peer, only one organization. Can someone tell me which files I need to modify from the existing tutorial and how? Thanks..

dan.gomez (Tue, 10 Dec 2019 19:38:08 GMT):
Has joined the channel.

dan.gomez (Tue, 10 Dec 2019 19:38:10 GMT):
Hello, I have completed the commercial-paper tutorial using the node.js application. I wanted to try to run it using the java application. When i try to run the AddToWallet.java I get AddToWallet.java:12: error: package org.hyperledger.fabric.gateway. Is there any good tutorials on how to run the commercial-paper tutorial in Java? Thanks

prakash04 (Tue, 10 Dec 2019 22:37:46 GMT):
I have multi-org and each org having 2 peer nodes in fabric setup . After setting up explorer I'm only able to see Org1 nodes not org2 node . Can anyone please help me on this

Ewkoll (Wed, 11 Dec 2019 03:22:49 GMT):
Has joined the channel.

kiranarshakota (Wed, 11 Dec 2019 05:34:23 GMT):
Hi Team, I am trying to do enryption of the fields according to the below sample , but i have three organizations and my endorsement policy is "AND" and i have getting endorsement policy issue while invoking the chaincode and if i use "OR" policy it is working fine

PraharshaBejju (Wed, 11 Dec 2019 08:39:33 GMT):
Hello all, I have an implemention with each user owning a channel. but I wanted to access/modify another channel data. DOes anyone know if that is possible?

PraharshaBejju (Wed, 11 Dec 2019 08:39:33 GMT):
Hello all, I have an implemention with each user owning a channel. but I wanted to access/modify another channel data. Does anyone know if that is possible?

G0D0T (Wed, 11 Dec 2019 16:00:54 GMT):
Has joined the channel.

G0D0T (Wed, 11 Dec 2019 17:25:16 GMT):
I'm a new fabric developer from Italy and I have a couple of questions, hope someone can help me :relaxed: 1) When is a block actually created? If I query (with some chaincode) the World State with a GET, will this operation issue a new block? I think a new block is added after a PUT or DELETE, right? 2) Let's suppose I have a certain chaincode (called X) that checks if some variable is greater than 100 and, if true, it sets that to 0. We also have another chaincode (Y), that, when invoked, sets that same variable of chaincode X to 0, without applying other logic. Is the RW set produced by chaincode X the same produced by chaincode Y? In other words, does the RW set consider which chaincode "read" itself? Thanks for the attention.

G0D0T (Wed, 11 Dec 2019 17:25:16 GMT):
I'm a new fabric developer from Italy and I have a couple of questions, hope someone can help me :relaxed: 1) When is a block actually created? If I query (with some chaincode) the World State with a GET, will this operation issue a new block? I think a new block is added after a PUT or DELETE, right? 2) Let's suppose I have a certain chaincode (called 'X') that checks if some variable is greater than 100 and, if true, it sets that to 0. We also have another chaincode ('Y'), that, when invoked, sets that same variable of chaincode X to 0, without applying other logic. Is the RW set produced by chaincode X the same produced by chaincode Y? In other words, does the RW set consider which chaincode "read" itself? Thanks for the attention.

george-lime (Wed, 11 Dec 2019 18:15:13 GMT):
Hey guys, I am observing a strange behaviour when creating a channel when using RAFT. I could not find any info neither on the docs or stackoverflow I have 3 organisations - OrdererOrg, Org1 and Org2. All 3 organisations have orderers connected in RAFT. Only Org1 and Org2 have peers (in a sense OrdererOrg is independent 3rd orderer). I have CLIs for both Org1 and Org2 When creating new channel (not the ordering system channel), consisting of Org1 & Org2: - Using the CLIs - when I invoke `peer channel create` and point it towards the orderer of OrdererOrg - all works correctly. Channel is created. - Using the CLIs - when I invoke `peer channel create` and point it towards any other orderer like org1.orderer - it fails with `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied`

george-lime (Wed, 11 Dec 2019 18:16:07 GMT):
Is my understanding that all orderers are created equal and me sending this to any organisation orderer should behave equivalently, correct?

tengc (Wed, 11 Dec 2019 21:15:50 GMT):
Odd question, but is there anyway to get latency data from transactions without being the process that initialized the transaction?

puneetkumar1010 (Thu, 12 Dec 2019 03:57:21 GMT):
Has joined the channel.

puneetkumar1010 (Thu, 12 Dec 2019 03:57:22 GMT):
Hi guyz! Is there any documentation or report regarding security of hyperledger fabric? or ANy resource ?

savitrisonnad (Thu, 12 Dec 2019 08:19:54 GMT):
Hi , I am also facing same issue...tried to resolve it by regenerating the certificates and changing the channel ID name.....but still it is not resolved.....

savitrisonnad (Thu, 12 Dec 2019 08:20:34 GMT):
was following this link to resolve it but no success....https://discourse.skcript.com/t/error-got-unexpected-status-forbidden-failed-to-reach-implicit-threshold-of-1-sub-policies-required-1-remaining-permission-denied/1680/13

geni (Thu, 12 Dec 2019 09:06:02 GMT):
Hi guys!

geni (Thu, 12 Dec 2019 09:06:39 GMT):
I am new to fabric. I am finding difficulty in writing chaincodes in go.

geni (Thu, 12 Dec 2019 09:07:27 GMT):
The Hyperledger fabric sample code of commercial paper is only available in Java and Javascript apparently.

Taaanos (Thu, 12 Dec 2019 09:49:16 GMT):
Haven't read it yet https://www.sciencedirect.com/science/article/abs/pii/S157411921830720X

alkiimista (Thu, 12 Dec 2019 10:37:23 GMT):
Hello guys, I'm trying to create new channels using the Node SDK. Currently I'm having issues with converting the ConfigEnvelope that is returned from the function getChannelConfigFromOrderer(). I'm trying to convert this to a Buffer so I can send it to the configtxlator. Any hints on why this conversion is not working?

Talha_Wahid (Thu, 12 Dec 2019 11:12:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=afqmNHxQ4fkLG6kGu) how to do it via a remote API endpoint?

Talha_Wahid (Thu, 12 Dec 2019 11:18:21 GMT):
I am trying it using the same approach but i am getting error at the time of channel creation....i am getting policy error....that policy is not getting validated...

Talha_Wahid (Thu, 12 Dec 2019 11:19:29 GMT):

channel_1.jpeg

Talha_Wahid (Thu, 12 Dec 2019 11:19:56 GMT):
@maniankara please advice

savitrisonnad (Thu, 12 Dec 2019 11:26:41 GMT):
I have followed the systemd approach for setting hyperledger fabric network but while creating cahnnel i am getting error that implicit policy evaluation failed -o sub-policies were satisfied, but this policy requires 1 of the Admins sub policies to be defined .

savitrisonnad (Thu, 12 Dec 2019 11:27:35 GMT):
I have not defined any policies in crypto-config.yaml and configtx.yaml files

savitrisonnad (Thu, 12 Dec 2019 11:28:44 GMT):
Do we need to specify policies in these yaml files?

mirkoilicbam (Thu, 12 Dec 2019 11:30:21 GMT):
Has joined the channel.

Tim (Thu, 12 Dec 2019 11:35:58 GMT):
Hi guys, small question, is it a well pratice to give a Client SDK App access to 2 channels ledgers, or is there antoher way ??

Samsid (Thu, 12 Dec 2019 12:09:57 GMT):
Has joined the channel.

Samsid (Thu, 12 Dec 2019 12:11:55 GMT):
I want to query chaincode using nodejs SDK and i am getting this error E1212 17:32:07.957008801 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:07.957053599 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:07.957063937 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:07.957068475 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7051' E1212 17:32:07.957073176 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:10.959Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-12-12T12:02:10.960Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 E1212 17:32:10.966436659 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:10.966497533 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:10.966518769 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:10.966526523 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7056' E1212 17:32:10.966534343 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:13.966Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056

Samsid (Thu, 12 Dec 2019 12:11:55 GMT):
I want to query chaincode using nodejs SDK and i am getting this error const network = await gateway.getNetwork('common'); E1212 17:32:07.957008801 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:07.957053599 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:07.957063937 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:07.957068475 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7051' E1212 17:32:07.957073176 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:10.959Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-12-12T12:02:10.960Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 E1212 17:32:10.966436659 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:10.966497533 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:10.966518769 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:10.966526523 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7056' E1212 17:32:10.966534343 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:13.966Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056

Samsid (Thu, 12 Dec 2019 12:11:55 GMT):
I want to query chaincode using nodejs SDK and i am using this const network = await gateway.getNetwork('common'); const contract = network.getContract('fabcar'); and i am getting this error E1212 17:32:07.957008801 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:07.957053599 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:07.957063937 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:07.957068475 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7051' E1212 17:32:07.957073176 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:10.959Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-12-12T12:02:10.960Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 E1212 17:32:10.966436659 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:10.966497533 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:10.966518769 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:10.966526523 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7056' E1212 17:32:10.966534343 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:13.966Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056

Samsid (Thu, 12 Dec 2019 12:11:55 GMT):
Hi Guys, I want to query chaincode using nodejs SDK and i am using this const network = await gateway.getNetwork('common'); const contract = network.getContract('fabcar'); and i am getting this error E1212 17:32:07.957008801 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:07.957053599 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:07.957063937 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:07.957068475 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7051' E1212 17:32:07.957073176 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:10.959Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-12-12T12:02:10.960Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 E1212 17:32:10.966436659 23425 ssl_transport_security.cc:636] Could not load any root certificate. E1212 17:32:10.966497533 23425 ssl_transport_security.cc:1702] Cannot load server root certificates. E1212 17:32:10.966518769 23425 ssl_security_connector.cc:113] Handshaker factory creation failed with TSI_INVALID_ARGUMENT. E1212 17:32:10.966526523 23425 secure_channel_create.cc:152] Failed to create secure subchannel for secure name 'localhost:7056' E1212 17:32:10.966534343 23425 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. 2019-12-12T12:02:13.966Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7056 2019-12-12T12:02:13.967Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7056

GayatriGaysh (Thu, 12 Dec 2019 12:22:32 GMT):
Has joined the channel.

palra (Thu, 12 Dec 2019 14:09:10 GMT):
Hey guys! i'm trying to deploy a network to Kubernetes. Some Google searches suggested putting all the crypto artifacts in an NFS server. Aren't k8s secrets enough? What is considered as good practice for storing all of those certificates?

mastersingh24 (Thu, 12 Dec 2019 15:06:03 GMT):
secrets works fine ... you should use something which encrypts Kube secrets though. This is pretty much the default for most Kube offering provided by major cloud vendors

tengc (Thu, 12 Dec 2019 19:09:50 GMT):
Is there any documentation on Event Hubs and how they function? I've been looking for a way to keep track of when transactions are committed for the channel.

silveraid (Thu, 12 Dec 2019 21:33:35 GMT):
Hey Guys, I am wondering if anybody has some experience with peers which panic due to that their previous block hash is different than the other.

silveraid (Thu, 12 Dec 2019 21:33:35 GMT):
panic: Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [dbfb38ff85217bcddf1e6b7145b6cb22a8173978fc0c49ac8f98b33ff29aa71b], PreviousHash referred in the latest block= [b7cd73e82ff1616ad3f94c106127c5c520c6672d12880fe49904c1d7a2e3dd5e]

silveraid (Thu, 12 Dec 2019 21:37:56 GMT):
Hi, take a look at the fabric-sdk-go project on github, https://github.com/hyperledger/fabric-sdk-go, it comes with examples as well.

silveraid (Thu, 12 Dec 2019 21:47:08 GMT):
I am just wondering if there is a way to repair the peer's filesystem with conventional tools. Tried to monkey around in the chains folder, but I was not really able to get anywhere.

yacovm (Thu, 12 Dec 2019 21:49:20 GMT):
holy hell, how did you get that???

yacovm (Thu, 12 Dec 2019 21:49:41 GMT):
this shouldn't happen

silveraid (Thu, 12 Dec 2019 21:50:42 GMT):
I don't really know, but it happened. This is a network with 10 orgs and 20 peers (2 peers for each orgs). 6 of them is somehow got the same issue.

yacovm (Thu, 12 Dec 2019 21:51:15 GMT):
what orderer type?

silveraid (Thu, 12 Dec 2019 21:51:27 GMT):
Kafka

yacovm (Thu, 12 Dec 2019 21:51:32 GMT):
oh.... kafka....

yacovm (Thu, 12 Dec 2019 21:51:39 GMT):
what fabric version?

silveraid (Thu, 12 Dec 2019 21:51:51 GMT):
Yeah, we had a lot of problem with that in the past.

yacovm (Thu, 12 Dec 2019 21:52:26 GMT):
is this a production environment?

silveraid (Thu, 12 Dec 2019 21:52:27 GMT):
Currently 1.4.3 I believe, but this network was updated from 1.2, maybe even from 1.1.

silveraid (Thu, 12 Dec 2019 21:52:43 GMT):
Not a production environment. It has over 1.4M blocks though :-)

yacovm (Thu, 12 Dec 2019 21:53:18 GMT):
i see.... so please open a JIRA, and if possible, supply the previous block before the Blockchain fork, and then the block of the fork itself in the JIRA

yacovm (Thu, 12 Dec 2019 21:53:25 GMT):
and tag me (yacovm) in the JIRA

yacovm (Thu, 12 Dec 2019 21:53:52 GMT):
in any case you should really use Raft orderer.... Kafka sucks :)

silveraid (Thu, 12 Dec 2019 21:54:51 GMT):
Yeah, so we think what happened here is that one of the orderer node went out of sync and these peers picked up data from that orderer.

silveraid (Thu, 12 Dec 2019 21:55:10 GMT):
That is the best explanation what we could have come up with so far.

yacovm (Thu, 12 Dec 2019 21:55:42 GMT):
oh.... hmmm

yacovm (Thu, 12 Dec 2019 21:56:13 GMT):
we had a bug in Kafka orderer that if it gets out of sync with Kafka then there is some thread safety issue

yacovm (Thu, 12 Dec 2019 21:56:22 GMT):
tell me please

yacovm (Thu, 12 Dec 2019 21:56:33 GMT):
is the hash by any chance, the hash of another block that is older?

silveraid (Thu, 12 Dec 2019 21:57:08 GMT):
I will try to take a look at this quickly. People are already working on it get it fixed, I hope I am not too late.

yacovm (Thu, 12 Dec 2019 21:57:24 GMT):
what do you mean working on it to get it fixed?

yacovm (Thu, 12 Dec 2019 21:57:27 GMT):
do you know what to od?

yacovm (Thu, 12 Dec 2019 21:57:29 GMT):
*do

silveraid (Thu, 12 Dec 2019 21:58:03 GMT):
Well, I don't , but we have noticed this peer node rollback command which showed up recently and we are trying to roll back the channel to a block where the hashes match.

yacovm (Thu, 12 Dec 2019 21:58:12 GMT):
it won't help

silveraid (Thu, 12 Dec 2019 21:58:17 GMT):
So the idea is that we roll back all of the peers

silveraid (Thu, 12 Dec 2019 21:58:20 GMT):
oh

yacovm (Thu, 12 Dec 2019 21:58:20 GMT):
hashes of block are set by orderers

yacovm (Thu, 12 Dec 2019 21:58:28 GMT):
you need to fix the orderers

yacovm (Thu, 12 Dec 2019 21:58:44 GMT):
these orderers are now forked for ever

yacovm (Thu, 12 Dec 2019 21:59:17 GMT):
i guess you can connect new orderers

silveraid (Thu, 12 Dec 2019 21:59:18 GMT):
So we took the orderer with the bad hash out of service.

yacovm (Thu, 12 Dec 2019 21:59:20 GMT):
and then make them sync

yacovm (Thu, 12 Dec 2019 21:59:23 GMT):
oh... good

yacovm (Thu, 12 Dec 2019 21:59:30 GMT):
so yes, then the rollback would fix the peers

silveraid (Thu, 12 Dec 2019 21:59:38 GMT):
ok, sounds good :-)

silveraid (Thu, 12 Dec 2019 21:59:46 GMT):
let me check the hashes until I can

silveraid (Thu, 12 Dec 2019 22:00:02 GMT):
Actually, what is the best way to get the hash of each blocks?

yacovm (Thu, 12 Dec 2019 22:00:20 GMT):
you need to pull it from the offending orderer with `peer fetch` command

silveraid (Thu, 12 Dec 2019 22:01:23 GMT):
huh, ok

silveraid (Thu, 12 Dec 2019 22:14:04 GMT):
I should look at the header.previous_hash in the block?

silveraid (Thu, 12 Dec 2019 22:14:23 GMT):
The orderers are down, but I managed to pull blocks from two different peers

yacovm (Thu, 12 Dec 2019 22:15:30 GMT):
did you see different header hashes @silveraid ?

yacovm (Thu, 12 Dec 2019 22:15:37 GMT):
i mean, prev header hashes

silveraid (Thu, 12 Dec 2019 22:15:44 GMT):
Yes :-(

yacovm (Thu, 12 Dec 2019 22:15:50 GMT):
you need to see if the prev header hash repeats in 2 consecutive blocks

silveraid (Thu, 12 Dec 2019 22:16:00 GMT):
... and I pulled 6 blocks and they are all different

yacovm (Thu, 12 Dec 2019 22:16:09 GMT):
different for the same index?

yacovm (Thu, 12 Dec 2019 22:16:20 GMT):
their metadata should be different

yacovm (Thu, 12 Dec 2019 22:16:28 GMT):
but the hash is not over the metadata

silveraid (Thu, 12 Dec 2019 22:16:30 GMT):
Yes, so seems like the fork happened some time ago.

yacovm (Thu, 12 Dec 2019 22:17:03 GMT):
let me quickly write up some program for you that opens a block and prints its hash ok?

silveraid (Thu, 12 Dec 2019 22:17:28 GMT):
Take a look at this:

silveraid (Thu, 12 Dec 2019 22:17:29 GMT):
configtxlator proto_decode --type=common.Block --input consortium_1437495.block | jq .header.previous_hash "kvYNMVFyz2x9OizqZR23u4UpEH9pOTRNEUqJla0me74=" configtxlator proto_decode --type=common.Block --input consortium_1437494.block | jq .header.previous_hash "pRTWUIKUWa055YbbWik5N66Fft3/g6GJAg/WbKZcGr0=" configtxlator proto_decode --type=common.Block --input consortium_1437493.block | jq .header.previous_hash "fPLpjE8ukNQ6utD/AnYTH+SeEBsK83rwQhYettSTRm4=" configtxlator proto_decode --type=common.Block --input consortium_1437492.block | jq .header.previous_hash "OOplBv+ubbWWIO2JP9hUeWNvnu3BXQrYbIr9evbjAWs=" configtxlator proto_decode --type=common.Block --input consortium_1437491.block | jq .header.previous_hash "KeEVXSMWW4ZhsTYyoiNfY7C9LiCtyoG6q9VpOGfjw38=" configtxlator proto_decode --type=common.Block --input consortium_1437490.block | jq .header.previous_hash "9G1AwDHCG7Ce4BedZs78uaSAwavZMKmW4Tixvb/d52g="

silveraid (Thu, 12 Dec 2019 22:17:47 GMT):
Is this something what you want?

yacovm (Thu, 12 Dec 2019 22:18:24 GMT):
no, it doesn't say the current block hash

silveraid (Thu, 12 Dec 2019 22:18:44 GMT):
Ah, let me take a look at that

silveraid (Thu, 12 Dec 2019 22:19:17 GMT):
There is something called "data_hash"?

yacovm (Thu, 12 Dec 2019 22:19:33 GMT):
yeah but i think it will be the same

yacovm (Thu, 12 Dec 2019 22:19:44 GMT):
unless there is a really huge problem

silveraid (Thu, 12 Dec 2019 22:20:46 GMT):
Yeah, the data hashes are matching!

yacovm (Thu, 12 Dec 2019 22:22:07 GMT):
hold on please ok?

silveraid (Thu, 12 Dec 2019 22:22:17 GMT):
ok

yacovm (Thu, 12 Dec 2019 22:38:12 GMT):
@silveraid still there?

silveraid (Thu, 12 Dec 2019 22:39:32 GMT):
Yes, but I have to step out in a minute.

yacovm (Thu, 12 Dec 2019 22:39:42 GMT):
wait

silveraid (Thu, 12 Dec 2019 22:39:52 GMT):
In the meantime we determined that the fork happened like a million blocks ago :-|

yacovm (Thu, 12 Dec 2019 22:40:19 GMT):
https://github.com/yacovm/fabutil

yacovm (Thu, 12 Dec 2019 22:40:24 GMT):
git clone this

yacovm (Thu, 12 Dec 2019 22:40:44 GMT):
I write a utility for you that given a file, it prints the current and prev block hash

silveraid (Thu, 12 Dec 2019 22:41:32 GMT):
ok

silveraid (Thu, 12 Dec 2019 22:42:01 GMT):
I will be back in a few minutes, just have to step out now.

yacovm (Thu, 12 Dec 2019 22:42:06 GMT):
with this, you can identify where the fork occurred

silveraid (Thu, 12 Dec 2019 23:14:39 GMT):
Okay, so we are too late, someone already determined it by comparing all of the previous hashes. Seems like the fork happened at 441,556, our current blockheight was 1,437,490.

yacovm (Thu, 12 Dec 2019 23:15:02 GMT):
but tell me *what* is the fork...?

yacovm (Thu, 12 Dec 2019 23:15:13 GMT):
is it a hash that repeats itself?

yacovm (Thu, 12 Dec 2019 23:15:16 GMT):
or not?

silveraid (Thu, 12 Dec 2019 23:26:30 GMT):
I have to check that. The orderers are currentl down. So I should find the current hash and the previous hash identical?

silveraid (Thu, 12 Dec 2019 23:27:39 GMT):
It does not seems like that the previous header hash repeats.

silveraid (Thu, 12 Dec 2019 23:28:05 GMT):
441555 "EKkD0N3VN9gyHaaeDVgacffalqwHnLhP0CDPv5Qm7vg=" "EKkD0N3VN9gyHaaeDVgacffalqwHnLhP0CDPv5Qm7vg=" "EKkD0N3VN9gyHaaeDVgacffalqwHnLhP0CDPv5Qm7vg=" 441556 "yL5awwrw6ID8UIBtU4e75sZNJhqStjUjhnISLdNzkcU=" "0s+Po6yuxjttmai9KgJm0/8+nEjxKrEbEmV2cvVPZgs=" "0s+Po6yuxjttmai9KgJm0/8+nEjxKrEbEmV2cvVPZgs="

yacovm (Thu, 12 Dec 2019 23:32:38 GMT):
@silveraid if you still have the logs, you can use https://github.com/yacovm/fabutil to print the hashes

yacovm (Thu, 12 Dec 2019 23:32:38 GMT):
@silveraid if you still have the blocks, you can use https://github.com/yacovm/fabutil to print the hashes

silveraid (Thu, 12 Dec 2019 23:47:09 GMT):
I will probably have the chance to inspect the orderers once the good orderers are back online and some of the peers recovered.

silveraid (Thu, 12 Dec 2019 23:47:21 GMT):
maybe just tomorrow though.

silveraid (Thu, 12 Dec 2019 23:49:15 GMT):
@yacovm , how long should it take for a peer to recover once we rolled back to a previous block height? It seems like that it is keep repeating the following message, and it is probably doing something at the backend, but not too informative:

silveraid (Thu, 12 Dec 2019 23:49:32 GMT):
2019-12-12 23:49:22.847 UTC [nodeCmd] resetLoop -> INFO 264 Ledger rebuild: Checking if current ledger heights surpass prereset ledger heights

silveraid (Fri, 13 Dec 2019 00:09:08 GMT):
Okay @yacovm, seems like I have the root cause (at least I think I do), the vm where this orderer was running run out of the disk space probably at the same time when the fork happened.

silveraid (Fri, 13 Dec 2019 00:09:20 GMT):
I still don't have the hashes.

silveraid (Fri, 13 Dec 2019 00:09:47 GMT):
It is just strange that the orderer continued to work and took almost a year to discover this issue.

silveraid (Fri, 13 Dec 2019 01:08:29 GMT):

Screen Shot 2019-12-12 at 7.57.51 PM.png

silveraid (Fri, 13 Dec 2019 01:09:54 GMT):
@yacovm , using your tool I started to compare the peer blocks, good peer on the left, bad peer on the right, and it seems like that even though their chains diverted it sometimes come back together again, which is super weird.

silveraid (Fri, 13 Dec 2019 01:10:29 GMT):

Screen Shot 2019-12-12 at 7.58.15 PM.png

silveraid (Fri, 13 Dec 2019 01:10:51 GMT):
... and they are in sync for a very long time again.

ThomasRalee (Fri, 13 Dec 2019 04:07:14 GMT):
Has joined the channel.

ThomasRalee (Fri, 13 Dec 2019 04:07:14 GMT):
Hello nice fellow fabric / blockchain enthusiast! I have a few question on fabric in general that i wish some nice soul will be willing to help me with: 1) From what i've understand organization or a consortium of organizations are connected in the same network through channels? 2) If the answer to question 1 is yes, does it means that an organizations can be part of multiple "network" at the same time, as long as it has different peer nodes connected to different channel 3) Can one peer node connect to multiple channels? Or is it strictly one peer node per channel?

ThomasRalee (Fri, 13 Dec 2019 04:07:14 GMT):
Good Morning to my fellow fabric / blockchain enthusiast! I have a few question on fabric in general that i wish some nice soul will be willing to help me with: 1) From what i've understand organization or a consortium of organizations are connected in the same network through channels? 2) If the answer to question 1 is yes, does it means that an organizations can be part of multiple "network" at the same time, as long as it has different peer nodes connected to different channel 3) Can one peer node connect to multiple channels? Or is it strictly one peer node per channel?

ThomasRalee (Fri, 13 Dec 2019 04:07:14 GMT):
Good Morning to my fellow fabric / blockchain enthusiast! I have a few question on fabric in general that i wish some kind soul would be willing to help me with: 1) From what i've understand organization or a consortium of organizations are connected in the same network through channels? 2) If the answer to question 1 is yes, does it means that an organizations can be part of multiple "network" at the same time, as long as it has different peer nodes connected to different channel 3) Can one peer node connect to multiple channels? Or is it strictly one peer node per channel?

puneetkumar1010 (Fri, 13 Dec 2019 04:37:40 GMT):
Yes an organization can be part of multiple networks. For ex -> if one organization have 4 peers you can make them join 4 different channels.

ThomasRalee (Fri, 13 Dec 2019 04:40:29 GMT):
Thank you for answering my question, is my assumption on Q1 correct? That networks are formed by organizations connecting through channels?

puneetkumar1010 (Fri, 13 Dec 2019 04:55:19 GMT):
Yes Q1 is correct from i what am getting u want to say. Lets take an example - You have 3 orgs -> org 1, org2, org3 Now all 3 organizations have 2 peers each. I want to create 2 separate private networks. Network 1 -> org1 and org2 , Network 2 -> org2 and org3 . So i will create

puneetkumar1010 (Fri, 13 Dec 2019 05:00:29 GMT):
Yes Q1 is correct from i what am getting u want to say. Lets take an example - You have 3 orgs -> org 1, org2, org3 Now all 3 organizations have 2 peers each. I want to create 2 separate private networks. Network 1 -> org1 and org2 , Network 2 -> org2 and org3 . So we will create 2 channels , channel 1 for org1 and org2 and channel 2 for org 2 and org3. So we can say that we have 1 hyperledger network having 3 organizations and 2 channels.

puneetkumar1010 (Fri, 13 Dec 2019 05:00:29 GMT):
Yes Q1 is correct from i what am getting u want to say. Lets take an example - You have 3 orgs -> org 1, org2, org3 Now all 3 organizations have 2 peers each. I want to create 2 separate private networks(Channel). Channel 1 -> org1 and org2 , Channel 2 -> org2 and org3 . So we will create 2 channels , channel 1 for org1 and org2 and channel 2 for org 2 and org3. So we can say that we have 1 hyperledger network having 3 organizations and 2 channels.

ThomasRalee (Fri, 13 Dec 2019 05:01:00 GMT):
ok thank you for answering my question

rra94 (Fri, 13 Dec 2019 05:02:13 GMT):
Has joined the channel.

rra94 (Fri, 13 Dec 2019 05:02:13 GMT):
Hi Guys I'm new to fabric and am trying to get my network to work with two orgs with one endorser each. So far I've been able to deploy the orgs-msp, endorsers, orderer and channel setup. When I update the chaincode, I'm able to install it on both peers and instantiate. Instantiate doesn't given any error but when I invoke I get "Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode marbles_chaincode has been successfully instantiated and try again: chaincode marbles_chaincode not found" Please help.

ThomasRalee (Fri, 13 Dec 2019 05:37:56 GMT):
can you run docker ps and check if there are 2 peer nodes?

ThomasRalee (Fri, 13 Dec 2019 05:37:56 GMT):
can you run docker ps and check if there are 2 of this records? dev-peer0.org2.example.com-mycc-2.0-c7aee9ad18dddc18319f5f00199f05d866f9e61dca40c9af3e226d434ac4a63c dev-peer0.org1.example.com-mycc-2.0-c7aee9ad18dddc18319f5f00199f05d866f9e61dca40c9af3e226d434ac4a63c

sshKashyap (Fri, 13 Dec 2019 07:03:49 GMT):
Need help in understanding consensus mechanisms

sshKashyap (Fri, 13 Dec 2019 07:04:14 GMT):
any resources, that highlight the key differences between the major blockchain players ?

Taaanos (Fri, 13 Dec 2019 08:31:04 GMT):
https://arxiv.org/pdf/1711.03936v2.pdf

JackeyChen (Fri, 13 Dec 2019 08:37:05 GMT):
Has joined the channel.

JackeyChen (Fri, 13 Dec 2019 08:37:05 GMT):
Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

JackeyChen (Fri, 13 Dec 2019 08:37:15 GMT):
I get this issue , how to fix it ??

Navaneethan (Fri, 13 Dec 2019 11:04:19 GMT):
Has joined the channel.

Navaneethan (Fri, 13 Dec 2019 11:04:20 GMT):
Hi All, Kindly help me to read and write data in fabric using Rest APIs. Please share me any documentation for that. Thanks

emony2019 (Fri, 13 Dec 2019 13:25:07 GMT):
Has joined the channel.

emony2019 (Fri, 13 Dec 2019 13:26:25 GMT):
I would like to create 3 organizational units under Org2 using the first network sample and configtx. After looking online (link:https://stackoverflow.com/questions/52982952/implementation-of-organization-unit-identifier-in-peer-organisation-causes-order/52991088) I found someone who did this but was not clear as to where I need to add the OU information. I have tried adding it to the crypto-config.yaml with no luck in seeing CA's developed in the msp directory for Org2. My ultimate goal would be to change the policy for my chaincode from using -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'')' to something like -P 'AND ('\''Org1MSP.department2'\'','\''Org2MSP.department3'\'')'. I want to be able to decide which nodes/peers belong to which department as well. Thanks in advance for your help!

emony2019 (Fri, 13 Dec 2019 13:26:25 GMT):
GOOD MORNING HYPERLEDGER GURUS, I would like to create 3 organizational units under Org2 using the first network sample and configtx. After looking online (link:https://stackoverflow.com/questions/52982952/implementation-of-organization-unit-identifier-in-peer-organisation-causes-order/52991088) I found someone who did this but was not clear as to where I need to add the OU information. I have tried adding it to the crypto-config.yaml with no luck in seeing CA's developed in the msp directory for Org2. My ultimate goal would be to change the policy for my chaincode from using -P 'AND ('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'')' to something like -P 'AND ('\''Org1MSP.department2'\'','\''Org2MSP.department3'\'')'. I want to be able to decide which nodes/peers belong to which department as well. Thanks in advance for your help!

emony2019 (Fri, 13 Dec 2019 13:29:27 GMT):
Are you trying to create ICA so that you can organizational units?

emony2019 (Fri, 13 Dec 2019 13:33:47 GMT):
Check your scripts2.sh and utils.sh (function name: instantiation) to confirm that you have sent the correct instantiation command and their aren't any missing arguments or mis-matches

rra94 (Fri, 13 Dec 2019 13:45:02 GMT):
Thanks I'm using my own bash file so this is what it looks like

rra94 (Fri, 13 Dec 2019 13:45:04 GMT):
peer chaincode instantiate -o $ORDERER_ADDRESS:7050 -C ffabric -n marbles_chaincode -v 1.0 -c $a -P $b

rra94 (Fri, 13 Dec 2019 13:45:13 GMT):
where

rra94 (Fri, 13 Dec 2019 13:45:15 GMT):
peer chaincode instantiate -o $ORDERER_ADDRESS:7050 -C ffabric -n marbles_chaincode -v 1.0 -c $a -P $b

rra94 (Fri, 13 Dec 2019 13:45:38 GMT):
b="AND\(\'Org1MSP.member\',\'Org2MSP.member\'\)" a="'{\"Args\":[\"init\"]}'"

rra94 (Fri, 13 Dec 2019 13:46:04 GMT):
a is the init and b is the policy

rra94 (Fri, 13 Dec 2019 13:46:30 GMT):
it runs fine and I don't see any errors in the endorser but I get yhis in the orderer

rra94 (Fri, 13 Dec 2019 13:47:39 GMT):
Error reading from 192.168.133.103:58798: rpc error: code = Canceled desc = context canceled

prashantnagawade (Fri, 13 Dec 2019 17:47:12 GMT):
Has joined the channel.

RuudJuffermans (Fri, 13 Dec 2019 19:40:07 GMT):
Has joined the channel.

RuudJuffermans (Fri, 13 Dec 2019 19:40:08 GMT):
My question is mostly about policy settings in the network and on the channels of hyperledger fabric, i think... hyperledger fabric usecase: this company wants to create a platform using fabric where users can sign up and, when accepted, get access to the platform. At this platform users can connect and create private transactions with eachother, these transactions are bound by rules set by the company My question is the following: Should the company be the owner of just the network, and the users are registerd as organizations, or should the company be the owner of the network and a organisation where every user is registered as a user under the organization. I am trying to convince myself that one architecture is better than the other, but i still cant figure it out. Is there a reason why i should pick one over the other. Thanks in advance

andz (Fri, 13 Dec 2019 19:42:46 GMT):
Hello, I try to download the binaries and it doesn't seem that they are available anymore: Pull Hyperledger Fabric binaries ===> Downloading version 1.4.4 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-linux-s390x-1.4.4.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 1.4.4 platform specific fabric binary is not available to download <----

andz (Fri, 13 Dec 2019 19:43:29 GMT):
same error for 1.4.3, 1.4.2 and 1.4.1

Tim (Sat, 14 Dec 2019 16:32:15 GMT):
Hi guys, what is the name of the levelDB database that is used on a peer ???

joserobleslima (Sat, 14 Dec 2019 18:29:34 GMT):
Has joined the channel.

stone-ch (Sun, 15 Dec 2019 04:40:09 GMT):
Has left the channel.

JackeyChen (Sun, 15 Dec 2019 08:07:55 GMT):
Hi ? Do u guys encountered issue that GetState() always return empty value ??

barides (Mon, 16 Dec 2019 06:29:51 GMT):
Has joined the channel.

barides (Mon, 16 Dec 2019 06:29:53 GMT):
Hi, I am using a single pantheon node with DEV definition and after running about 150 transaction on the same contract (transfer funds between users) I am getting out of gas errors? Any ideas

abityildiz (Mon, 16 Dec 2019 07:57:07 GMT):
hi all ,how can i learn world state record length in the chaincode?if i use the getStateByRange i can learn record lenght.Is there another easy way?

RonaldReagan (Mon, 16 Dec 2019 09:10:03 GMT):
Hi, I have fabric 1.1.0 in production. It's been on for about 3 months unfortunately the orderer server had a down time. Now this issues. *"Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition"* How can I solve this without deleting all data and starting from scratch?

kiranarshakota (Mon, 16 Dec 2019 10:26:04 GMT):
cannot enqueue envelope because = kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes.

kiranarshakota (Mon, 16 Dec 2019 10:26:14 GMT):
facing this issue

kiranarshakota (Mon, 16 Dec 2019 10:29:55 GMT):
any luck Ronald facing the same issue

Deepalisaraswat (Mon, 16 Dec 2019 10:41:50 GMT):
Has joined the channel.

Deepalisaraswat (Mon, 16 Dec 2019 10:45:03 GMT):
Hey, Is there any direct integration possible between hyperledger fabric and hyperledger indy?

yuvaraj-thanikachalam (Mon, 16 Dec 2019 11:43:34 GMT):
Has joined the channel.

yuvaraj-thanikachalam (Mon, 16 Dec 2019 11:43:35 GMT):
Please help me to fix "Failed to generate orderer genesis block..." error

mastersingh24 (Mon, 16 Dec 2019 11:44:32 GMT):
No there is not. The Indy protocols require an interaction model (you need to call out to a remote verifier) which does not currently fit well with the determinstic requirements Fabric has for validation. It's possible to create an MSP for Indy but we'd need to make some changes to how identities are validated during validation/commit

yuvaraj-thanikachalam (Mon, 16 Dec 2019 11:45:28 GMT):
I installed 1.4 version

yuvaraj-thanikachalam (Mon, 16 Dec 2019 11:45:40 GMT):
as per the instructions in this tutorial

yuvaraj-thanikachalam (Mon, 16 Dec 2019 11:45:42 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html

silveraid (Mon, 16 Dec 2019 14:40:13 GMT):
@yacovm, so seems like after what happened to our environment (one of the orderer forked the chain) it is impossible to recover. Even peers what we believed are good have diverted from their original chain, and later they returned. So seems like they were switching back and forth between the good and the bad chain. Now we have a bunch of private data on the side which seems like anchored using the wrong hashes :-(

yacovm (Mon, 16 Dec 2019 14:40:34 GMT):
ouch

yacovm (Mon, 16 Dec 2019 14:40:46 GMT):
but i think we solved that bug with Kafka

yacovm (Mon, 16 Dec 2019 14:42:47 GMT):
https://github.com/hyperledger/fabric/commit/3affc910eecc10ac4641365de1187ee6e52a5b27#diff-e4565f148c4ca8c39422571084ef6add

yacovm (Mon, 16 Dec 2019 14:43:00 GMT):
I think this is the bug that happened to you, no?

silveraid (Mon, 16 Dec 2019 14:44:40 GMT):
I think we just run out of the disk space on that kafka/orderer nodes which cause some anomaly.

vanitas92 (Mon, 16 Dec 2019 15:09:32 GMT):
Has anyone tested the EXTERNALBUILDERS feature for chaincode in 2.0.0 beta release?

BrettLogan (Mon, 16 Dec 2019 16:33:27 GMT):
v2.0-beta shipped with a chaincode-server (stand alone chaincode) which makes use of the external builder features.

BrettLogan (Mon, 16 Dec 2019 16:35:31 GMT):
https://hyperledger-fabric.readthedocs.io/en/master/cc_service.html

BrettLogan (Mon, 16 Dec 2019 16:43:28 GMT):
@andz As of 1.4.3 the community no longer provides artifacts for s390x or ppc64le. We still maintain the make targets for these platforms so you can build them yourself. To run samples on Z, you would need to download fabric 1.4.4 and run `make docker` and `make release/linux-s390x` and then copy the binaries from `./release/linux-s390x/bin` to your path. You would need to do the same for fabric-ca if you are going to use the CA portion of samples. If you are going to run node or java chaincode, you would need to clone those projects as well and build their docker images

BrettLogan (Mon, 16 Dec 2019 16:43:28 GMT):
@andz As of 1.4.3 the community no longer provides artifacts for s390x or ppc64le. We still maintain the make targets for these platforms so you can build them yourself. To run samples on Z, you would need to download fabric 1.4.4 and run `make docker` and `make release/linux-s390x` and then copy the binaries from `./release/linux-s390x/bin` to your path. You would need to do the same for fabric-ca if you are going to use the CA portion of samples. If you are going to run node chaincode clone fabric-chaincode node and run `node common/scripts/install-run-rush.js install && node common/scripts/install-run-rush.js rebuild`. If you are running Java chaincode then clone fabric-chaincode-java and run `./gradlew buildImage -x test`

vanitas92 (Mon, 16 Dec 2019 19:52:23 GMT):
sure and thats why if somebody has use it already, as i am trying to set it up but having issues with the CORE_CHAINCODE_EXTERNALBUILDERS env variable as it requieres an array and want to set it up in Kubernetes

BrettLogan (Mon, 16 Dec 2019 19:56:12 GMT):
So that array just tells the peer where to look and evaluate for buildpacks. All of the logic for launching using Kube would go into the launch scripts

BrettLogan (Mon, 16 Dec 2019 19:56:12 GMT):
So that array just tells the peer where to look for buildpacks. All of the logic for launching using Kube would go into the buildpack launch scripts

BrettLogan (Mon, 16 Dec 2019 19:56:12 GMT):
So that array just tells the peer where to look and evaluate for buildpacks. All of the logic for launching using Kube would go into the buildpack launch scripts

vanitas92 (Mon, 16 Dec 2019 20:02:31 GMT):
the problem is how to put this array as an env variable in a yaml for kubernetes, as i get consistent errors of evaluating the value of the variable. Get this error `Error: '': source data must be an array or slice, got string`

vanitas92 (Mon, 16 Dec 2019 20:03:13 GMT):
i configure the variable as follows: ``` - name: CORE_CHAINCODE_EXTERNALBUILDERS value: '[[name: golang-builder, path: /builders/golang]]' ```

vanitas92 (Mon, 16 Dec 2019 20:03:46 GMT):
surely i got badly formated probably

BrettLogan (Mon, 16 Dec 2019 20:06:56 GMT):
```[ { "name": "golang-builder", "path": "/builders/golang" } ]```

BrettLogan (Mon, 16 Dec 2019 20:06:56 GMT):
`[{name: golang-builder, path: /builders/golang}]`

BrettLogan (Mon, 16 Dec 2019 20:06:56 GMT):
`[ { "name":"golang-builder", "path":"/builders/golang" } ]`

BrettLogan (Mon, 16 Dec 2019 20:06:56 GMT):
```[ { "name":"golang-builder", "path":"/builders/golang" } ]```

BrettLogan (Mon, 16 Dec 2019 20:07:12 GMT):
it's an array of objects, not an array of arrays

vanitas92 (Mon, 16 Dec 2019 20:09:09 GMT):
let me try it

vanitas92 (Mon, 16 Dec 2019 20:10:40 GMT):
@BrettLogan got the same error message with the new format

vanitas92 (Mon, 16 Dec 2019 20:10:52 GMT):
oh does it has to be multiline?

BrettLogan (Mon, 16 Dec 2019 20:13:48 GMT):
It doesn't have to be multiline, and I've never tested Viper (the tool we use to parse the env variables) with an array of objects, so I'm not sure what the proper way to do it is. I'll get back to you after I test it

vanitas92 (Mon, 16 Dec 2019 20:16:32 GMT):
ok sure, i have checked the code and seems it has to be processed like this is ORDERER_GENERAL_TLS_ROOTCAS, which also expects an array, though with the value `'[/var/hyperledger/orderer/tls/ca.crt]'` is working fine. Just to let you know. Thank you for prompt response.

BrettLogan (Mon, 16 Dec 2019 20:20:21 GMT):
Rootcas is an array of strings, not an array of complex objects

vanitas92 (Mon, 16 Dec 2019 20:32:47 GMT):
oh did not know that, thank you

CT123 (Mon, 16 Dec 2019 20:37:52 GMT):
2.0.0 beta scripts vs. 1.4.4 scripts -- has anyone documented or diff'd the files? How many differences are there? We've updated all 14 scripts for our own network / purposes and would be nice to know what the LOE will be to make changes. Thanks

CT123 (Mon, 16 Dec 2019 22:15:03 GMT):
Also -- looking at utils.sh, has `instantiateChaincode()` been depreciated? IOW, are we no longer instantiating chaincodes?

ThomasRalee (Tue, 17 Dec 2019 02:42:50 GMT):
Hi! I tested the explorer on this network setup: 3 Org (OrgA, OrgB, OrgC) 2 Channel (ChannelAB, ChannelAC) Spinned up an explorer with 2 network-profile: 1. OrgA Peer0 ChannelAC 2. OrgB Peer0 ChannelAB Findings: 1. Login through Org A network profile => I can see both channels (AC, AB) - cool auto discovery through Orderer node 2. Login through Org B network profile => I can see both channels (AC, AB) - Something is wrong, i shouldnt see channel AC

ThomasRalee (Tue, 17 Dec 2019 02:42:59 GMT):
Can someone please tell me if this is a bug or something wrong with my config?

ThomasRalee (Tue, 17 Dec 2019 02:43:12 GMT):
Or was it my wrong understanding to share one explorer per network?

ThomasRalee (Tue, 17 Dec 2019 02:43:12 GMT):
Or was it my wrong understanding that its possible to use one explorer that is shared through the entire network?

grandhichaitanya (Tue, 17 Dec 2019 03:26:24 GMT):
Has joined the channel.

Shubham-koli (Tue, 17 Dec 2019 05:15:59 GMT):
Hello everyone,

Shubham-koli (Tue, 17 Dec 2019 05:15:59 GMT):
Hello everyone, I was wondering if it was possible to detach the channel from peer?

Shubham-koli (Tue, 17 Dec 2019 05:15:59 GMT):
Hello everyone, I was wondering if it was possible to detach the channel from peer? If Yes then how can we do that?

karthiknvlr (Tue, 17 Dec 2019 06:34:32 GMT):
Hi All, Can we able to use npm modules other than fabric-shrim and fabric-contract-api in chaincode? If so how the npm packages will install while instantiate?

Fama 5 (Tue, 17 Dec 2019 07:01:37 GMT):
Hi All, i am using the hyperledger fabric in one of our project, and using the client side farbric-node js, Is there any way sign the transaction offline ?

puneetkumar1010 (Tue, 17 Dec 2019 07:08:19 GMT):
There is a way if you are using Fabric SDK , link -> https://fabric-sdk-node.github.io/tutorial-sign-transaction-offline.html

AkshatAnand (Tue, 17 Dec 2019 07:16:03 GMT):
Has joined the channel.

AkshatAnand (Tue, 17 Dec 2019 07:17:33 GMT):
Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== Hello!! got an error while bringing up the network

Fama 5 (Tue, 17 Dec 2019 07:20:06 GMT):
does it works similar to ethereum cold wallet offline sign

Fama 5 (Tue, 17 Dec 2019 07:21:05 GMT):
Thanks for replay, bcoz fabric node js acts as a servcie

ShobhitSrivastava (Tue, 17 Dec 2019 07:30:42 GMT):
Hi All, I have to work with attribute based access control, for this I have to get cid package in my chaincode. Has anyone done it? Let me know the procedure

chamodilokuge (Tue, 17 Dec 2019 10:03:46 GMT):
Hi All, I need to send transaction data into the hyperledger fabric blockchain and get a hash. Does anyone have a sample code for this kind of similar scenario?

Tim (Tue, 17 Dec 2019 10:13:55 GMT):
Check if your struct vars first letters are uppercase, they have to be like this otherwise those datas can be exported and saved in a ledger

Tim (Tue, 17 Dec 2019 10:13:55 GMT):
Check if your struct vars have the first letter is an uppercase, they have to be like this otherwise those datas can be exported and saved in a ledger

DollyVolley (Tue, 17 Dec 2019 12:14:20 GMT):
I would also be very interested, since I have to do the same starting february next year!

DollyVolley (Tue, 17 Dec 2019 12:25:30 GMT):
Hello! I am working with HLF now quite a time, but out of the nothing I always get SIGSEGV fatal error on the peers during chaincode installation. The exact same code (tried it twice) works with a team mate. Deployment is also the same - we tried with our shell script and by hand. Are there some extra factors which can corrupt the chain code or invalidate the installation process? Chaincode is written in nodejs with (VS) Code HLF 1.3 on k8s 1.16. I'll put the logs in the Comments/Reply. Thanks!

DollyVolley (Tue, 17 Dec 2019 12:27:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=3owaiT3s8C5S6hoqd)
logs.txt

ShobhitSrivastava (Tue, 17 Dec 2019 13:15:33 GMT):
Please check #fabric-ca channel. There are few replies on my thread there

DollyVolley (Tue, 17 Dec 2019 13:17:05 GMT):
Thank you, I will!

amealwithbasil (Tue, 17 Dec 2019 15:45:36 GMT):
Not sure this is the right channel for a general question, but what are some good ways of staying in the loop on Fabric feature roadmap and release schedules?

jannesklee (Tue, 17 Dec 2019 15:46:26 GMT):
Has joined the channel.

yacovm (Tue, 17 Dec 2019 15:46:51 GMT):
subscribe to mailing list

stevenlam123 (Tue, 17 Dec 2019 16:55:16 GMT):
Has joined the channel.

stevenlam123 (Tue, 17 Dec 2019 16:55:17 GMT):
Writing chaincode nodejs is very slow. It need to install, initiate and then execute code waste 2 minutes around. Is there any faster method?

BrettLogan (Tue, 17 Dec 2019 20:03:39 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/peer-chaincode-devmode.html

BrettLogan (Tue, 17 Dec 2019 20:04:24 GMT):
You can run in devmode, it allows you to run your chaincode on the machine, iterations are much quickeer this way while figuring out your chaincode

stevenlam123 (Wed, 18 Dec 2019 02:19:55 GMT):
Thank you

vanitas92 (Wed, 18 Dec 2019 09:37:44 GMT):
@BrettLogan have you got the chance to test it?

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction using Java is much slower than using NodeJs. Do you face any similar problems?

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction from a client application using Java is much slower than using NodeJs. Do you face any similar problems?

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction from a client application using Java is much slower than using NodeJs. Do you face any similar problems? Even in the fabcar sample the performance is different.

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction from a client application using Java is much slower than using NodeJs. Do you face any similar problems? Even in the fabcar sample the performance is different. In details, what happens is: (Chaincode in Go) 1. Java client submits transaction 2. gets response from chaincode 3. java client prints default print after the submitTransaction call 4. java client is still running for a 5-10 seconds before it terminates

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction from a client application using Java is much slower than using NodeJs. Do you face any similar problems? Even in the fabcar sample the performance is different. In details, what happens is: (Chaincode in Go) 1. Java client submits transaction 2. gets response from chaincode 3. java client prints default print after the submitTransaction call 4. java client is still running for a 5-10 seconds before it terminates In javascript n.4 happens in 1 second

Unicow (Wed, 18 Dec 2019 12:05:51 GMT):
Do you have any performance issues using the Java SDK? I noticed that submitting a transaction from a client application using Java is much slower than using NodeJs. Do you face any similar problems? Even in the fabcar sample the performance is different. In details, what happens is: (Chaincode in Go) 1. Java client submits transaction 2. gets response from chaincode 3. java client prints default print after the submitTransaction call 4. java client is still running for a 5-10 seconds before it terminates In javascript n.4 happens in 1 second Does it have to do with the gRPC connection?

ashish.cppdev (Wed, 18 Dec 2019 20:14:25 GMT):
Hi everyone, I am trying to figure out if there is a way of using Fabric Node APIs to add a new org to an existing channel?

ashish.cppdev (Wed, 18 Dec 2019 20:14:58 GMT):
Any pointers would be helpful. I can do that using command line tools but was wondering if corresponding Node APIs exist

Tim (Wed, 18 Dec 2019 20:50:37 GMT):
Hi look at this: https://fabric-sdk-node.github.io/Organization.html

Tim (Wed, 18 Dec 2019 20:54:56 GMT):
And this to add the peers to the channel: https://fabric-sdk-node.github.io/Channel.html#addPeer__anchor

ashish.cppdev (Wed, 18 Dec 2019 20:57:09 GMT):
thanks

ashish.cppdev (Wed, 18 Dec 2019 20:57:20 GMT):
thanks

Randyshu2018 (Thu, 19 Dec 2019 02:46:27 GMT):
hi,How does tls work under client2peer, peer2peer, peer2order and gossip?

Basic (Thu, 19 Dec 2019 07:01:49 GMT):
Has joined the channel.

jinnyjinnyjinjin (Thu, 19 Dec 2019 07:59:50 GMT):
Has joined the channel.

jinnyjinnyjinjin (Thu, 19 Dec 2019 07:59:51 GMT):
Hi all, anyone knows what is the maximum peers that can be run in a single server?

muthumca (Thu, 19 Dec 2019 10:14:47 GMT):
Has joined the channel.

muthumca (Thu, 19 Dec 2019 10:14:48 GMT):
i got the following error when invoking smart contract function FAILED: Error: Error: no suitable peers available to initialize

muthumca (Thu, 19 Dec 2019 10:14:59 GMT):
its in local fabric network

DollyVolley (Thu, 19 Dec 2019 11:50:24 GMT):
[Hyperledger Fabric] Hello! I am currently storing Objects containing arrays on the world state. The arrays get initialized but it doesn't recognize these fields of the objects as array but rather undefined. I can test those local (off network) and it works fine. I already tried some variants of architecture (objects, arrays, checkings and so forth). Has anyone of you encountert the same issues or knows why this wont work on HLF? Best regards!

DollyVolley (Thu, 19 Dec 2019 11:51:23 GMT):
Isn't all communication done via Gossip Protocol or did I get that so wrong?

redegade (Thu, 19 Dec 2019 15:59:46 GMT):
It all depends on the resources available at the server (memory, storage, processor). I tried running a network of 4 peers and an orderer in AWS t2.micro and the server was not responding to any commands anymore.

Anuj 48 (Thu, 19 Dec 2019 17:41:48 GMT):
Hello. I am booting up a Kafka cluster on a single node for testing purpose. It is 5 node Zookeeper, 4 node Kafka, 5 OSN, 4 peers. The nodes boot fine. But when I try to create a channel, I continue to this error

Anuj 48 (Thu, 19 Dec 2019 17:41:50 GMT):
2019-12-19 17:40:10.566 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- backing Kafka cluster has not completed booting; try again later

jinnyjinnyjinjin (Fri, 20 Dec 2019 01:20:26 GMT):
thanks for the answer:slight_smile:

seraphiimx (Fri, 20 Dec 2019 02:45:40 GMT):
Has joined the channel.

Fama 5 (Fri, 20 Dec 2019 03:39:41 GMT):
what is minimum orderer required for one organisation for Raft consensus engine

smtter (Fri, 20 Dec 2019 04:48:02 GMT):
Has joined the channel.

smtter (Fri, 20 Dec 2019 04:48:03 GMT):
Hi all, quick question about clients; Do the clients also need a domain? Afaik, they only submit queries and transactions to peers, so I don't see why they would need a domain. Any link to an example using a client would be great. Thank you in advance.

smtter (Fri, 20 Dec 2019 04:55:10 GMT):
I am referring to ``` NodeOUs Enable: true ClientOUIdentifier: Certificate: ``` in the crypto-config file

smtter (Fri, 20 Dec 2019 04:55:10 GMT):
I am referring to ```NodeOUs``` in the crypto-config file

smtter (Fri, 20 Dec 2019 04:55:10 GMT):
I am referring to ``` NodeOUs Enable: true ClientOUIdentifier: Certificate: ``` in the crypto-config file

trinayanbhatt (Fri, 20 Dec 2019 06:30:57 GMT):
@Fama 5 there must be atleast 3 orderers for Raft setup

yacovm (Fri, 20 Dec 2019 12:29:52 GMT):
you can run a single Raft node

lepar (Fri, 20 Dec 2019 12:45:45 GMT):
You can run a single raft node but then you won't be able to add any more orderers after

yacovm (Fri, 20 Dec 2019 12:46:02 GMT):
of course you can

yacovm (Fri, 20 Dec 2019 12:46:16 GMT):
you can grow a node from any size to any size

lepar (Fri, 20 Dec 2019 12:47:18 GMT):
Not if you start out with 1 Raft orderer. I tried. Because as soon as you add a consenter to the channel update

lepar (Fri, 20 Dec 2019 12:48:14 GMT):
It'll try to communicate with the new orderer and you can't setup the new orderer without first generating the genesis block to start the orderer and that causes the raft to lose its leader, breaking the raft consensus

yacovm (Fri, 20 Dec 2019 12:48:43 GMT):
https://github.com/hyperledger/fabric/blob/master/integration/raft/config_test.go#L242-L412

yacovm (Fri, 20 Dec 2019 12:48:48 GMT):
look at this integration test ^

yacovm (Fri, 20 Dec 2019 12:49:16 GMT):
it starts with a single Raft node, then adds a node, and then adds another node

yacovm (Fri, 20 Dec 2019 12:50:05 GMT):
when you add new nodes, you don't give them the genesis block as the bootstrap block

lepar (Fri, 20 Dec 2019 12:50:06 GMT):
How? When I tried it broke the Raft consensus immediately

yacovm (Fri, 20 Dec 2019 12:50:16 GMT):
you give them the *last config* block of the system channel as the bootstrap block

yacovm (Fri, 20 Dec 2019 12:50:21 GMT):
this is explained in the guide

yacovm (Fri, 20 Dec 2019 12:50:28 GMT):
at least, I remember writing it....

yacovm (Fri, 20 Dec 2019 12:50:49 GMT):
I implemented the Raft onboarding of new nodes in Fabric

lepar (Fri, 20 Dec 2019 12:51:33 GMT):
Raft consensus is 2/3 of the participants right?

yacovm (Fri, 20 Dec 2019 12:51:35 GMT):

Clipboard - December 20, 2019 2:51 PM

yacovm (Fri, 20 Dec 2019 12:51:37 GMT):
look here ^

yacovm (Fri, 20 Dec 2019 12:52:03 GMT):
Raft needs an *ack* from a majority of the cluster

lepar (Fri, 20 Dec 2019 12:52:17 GMT):
I see. You have to first add it to the system-channel and NOT the app channel. I was doing both. I think that's why it was breaking

yacovm (Fri, 20 Dec 2019 12:52:28 GMT):
you need to add it to the system channel first

yacovm (Fri, 20 Dec 2019 12:52:47 GMT):
you can add it to application channels later on as well

lepar (Fri, 20 Dec 2019 12:53:06 GMT):
I was adding to both before starting the new orderer

yacovm (Fri, 20 Dec 2019 12:53:18 GMT):
but you gave it the genesis block of the system channel

yacovm (Fri, 20 Dec 2019 12:53:23 GMT):
you need to give it the latest config block

lepar (Fri, 20 Dec 2019 12:54:43 GMT):
What was happening is when I added it to both channels, the orderer would break without a raft leader because it would see 2 nodes and the second one wasn't started yet

yacovm (Fri, 20 Dec 2019 12:56:03 GMT):
I think that if the cluster is less than 3 then until the new node doesn't come up, you can't create new blocks

yacovm (Fri, 20 Dec 2019 12:56:07 GMT):
but you can still pull blocks

lepar (Fri, 20 Dec 2019 12:56:20 GMT):
Now I get it. My script was adding to the system channel and the application channel at the same time. That was the mistake

yacovm (Fri, 20 Dec 2019 12:56:37 GMT):
no, it's fine to do it at the same time

lepar (Fri, 20 Dec 2019 12:56:47 GMT):
But it broke without a raft leader

yacovm (Fri, 20 Dec 2019 12:56:58 GMT):
it recovers once the new leader onboards

yacovm (Fri, 20 Dec 2019 12:56:58 GMT):
it recovers once the new node onboards

lepar (Fri, 20 Dec 2019 12:57:35 GMT):
How long? Cus that wasn't happening with me

yacovm (Fri, 20 Dec 2019 12:58:04 GMT):
depends on how big is the blockchain

yacovm (Fri, 20 Dec 2019 12:58:09 GMT):
but you can run the test i linked

yacovm (Fri, 20 Dec 2019 12:58:12 GMT):
it works....

lepar (Fri, 20 Dec 2019 12:59:22 GMT):
I see. I probably wasn't waiting, I don't remember. Thanks for the info man

yacovm (Fri, 20 Dec 2019 12:59:30 GMT):
np

saurbhshrma (Fri, 20 Dec 2019 16:50:37 GMT):
We are trying to run first-network on a corporate network that provides internet access through proxy. I have added the proxy setting from this article

saurbhshrma (Fri, 20 Dec 2019 16:50:37 GMT):
We are trying to run first-network on a corporate network that provides internet access through proxy. I have added the proxy setting from this article https://www.google.com/url?sa=t&source=web&rct=j&url=https://access.redhat.com/solutions/1377973&ved=2ahUKEwjt7tay1MTmAhVTXSsKHXChB1sQFjADegQIBxAB&usg=AOvVaw1o8MQPaxvomvVn2rExM5P9&cshid=1576860652767

saurbhshrma (Fri, 20 Dec 2019 16:50:37 GMT):
We are trying to run fabcar node example from 1.4.4 branch on a corporate network that provides internet access through proxy. I have added the proxy setting from this article https://www.google.com/url?sa=t&source=web&rct=j&url=https://access.redhat.com/solutions/1377973&ved=2ahUKEwjt7tay1MTmAhVTXSsKHXChB1sQFjADegQIBxAB&usg=AOvVaw1o8MQPaxvomvVn2rExM5P9&cshid=1576860652767 but when it tries to create the chaincode container it exits with error err: EAI_AGAIN

saurbhshrma (Fri, 20 Dec 2019 16:54:46 GMT):
Though npm I fabric-contract-api is getting downloaded

manivannant (Sat, 21 Dec 2019 08:10:59 GMT):
Has joined the channel.

bigworld12 (Sat, 21 Dec 2019 18:31:14 GMT):
the documentation states that organizations have at least 1 peer

bigworld12 (Sat, 21 Dec 2019 18:32:31 GMT):
so is there a way to have an organization without a peer (its data would be on the ledger, but it won't have a peer to contribute in the network)

redegade (Sat, 21 Dec 2019 19:17:53 GMT):
Your hypothesis is wrong because the ledger exists only on the peer. So, in order to have the ledger you must contribute to the network with your resources - your peers. Moreover, an organization is only defined by the peers MSPs when joining a channel.

bigworld12 (Sat, 21 Dec 2019 19:22:42 GMT):
ok, so an alternative question, does the peer need to have a copy of ALL the data on the ledger ?

bigworld12 (Sat, 21 Dec 2019 19:23:54 GMT):
i.e. does every peer need to have a SEPARATE copy of the ledger, even if the peers are virtualized on the same physical device using docker

redegade (Sat, 21 Dec 2019 20:34:08 GMT):
Peers do copy all blocks of the ledger, and yes, each peer has their own physical copy of the ledger.

AsadSeeker (Sun, 22 Dec 2019 09:18:06 GMT):
Has joined the channel.

abityildiz (Sun, 22 Dec 2019 19:28:33 GMT):
hi all.i have setup fabric 2.0 bet version.i want to upgrade the chaincode.how can upgrade the chain code?this is my code : peer lifecycle chaincode commit -o orderer.example.com:7050 --channelID $CHANNEL_NAME --name fabcar --version 2.0 --sequence 2 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:9051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt

Fama 5 (Mon, 23 Dec 2019 02:03:33 GMT):
thank you all, to sort out my doubt

Fama 5 (Mon, 23 Dec 2019 02:35:08 GMT):
Hi everyone, I am facing issue, when creating the channel transaction. I have 3 channel, 2 organisation.ChannelA for orgA, Channel B for orgB channel-All to both organisation, each organisation have 3 raft cluster. Now when i up the network and create first channel-All transaction in network and then if i execute the channelA in orgA and channelB orgB transaction it works fine. But when i create channelA transaction for org A and channelB transaction to org B then if i want to create the channel-All transaction it fails. It throw me error. May i get any advise on this. how i can create the channel-All transaction, when the other channel in their organisation already running.

Fama 5 (Mon, 23 Dec 2019 02:35:08 GMT):
Hi everyone, I am facing issue, when creating the channel transaction. I have 3 channel, 2 organisation.ChannelA for orgA, Channel B for orgB and channel-All to both organisation, each organisation have 3 raft cluster. Now when i up the network and create first channel-All transaction in network and then if i execute the channelA in orgA and channelB orgB transaction it works fine. But when i create channelA transaction for org A and channelB transaction to org B then if i want to create the channel-All transaction it fails. It throw me error. May i get any advise on this. how i can create the channel-All transaction, when the other channel in their organisation already running.

jinnyjinnyjinjin (Mon, 23 Dec 2019 04:11:26 GMT):
Hello, everyone. Anyone have example codes how to subscribe events and get transaction result from eventHub using java sdk?

Thinker0024 (Mon, 23 Dec 2019 07:37:15 GMT):
Has joined the channel.

RahulEth (Mon, 23 Dec 2019 11:52:44 GMT):
geeting below error whenever i am making omre than 100 tx simultaneously. i have network of 7rgs, 7 orderer ```2019-12-23 09:52:01.856 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 7657 Failed to send StepRequest to 6, because: send queue overflown channel=chpreferences node=2```

HelmutHauschild (Mon, 23 Dec 2019 13:23:47 GMT):
Has joined the channel.

HelmutHauschild (Mon, 23 Dec 2019 13:23:48 GMT):
Has anyone successfully deployed the Java chaincode to the test network with 2.0.0-beta? My `network.sh deployCC` call get's to the point where it says `Committed chaincode definition for chaincode 'fabcar' on channel 'mychannel'`, but then during "initLedger" complains ´Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Undefined contract called"´

zglider (Mon, 23 Dec 2019 13:55:00 GMT):
Hi Folks, I'm getting a response to my 'getChainInfo' call in my own angular front end to the balance-transfer example, and it returns the ledger height, the currentBlockHash, and the previousBlockHash. The problem for me is that the in the JSON response the hashes are returned as buffers, and I'm struggling to get them 'decoded' or returned to their original hash form. i tried to toString() this: (Buffer.from(JSON.parse(JSON.stringify(response)).currentBlockHash.buffer.data);) but it's giving me garbled characters, and I tried StringDecoder on that to no effect. Anyone with experience on this?

mvkillu (Tue, 24 Dec 2019 00:34:54 GMT):
Has joined the channel.

icordoba (Tue, 24 Dec 2019 01:00:39 GMT):
Has joined the channel.

icordoba (Tue, 24 Dec 2019 01:00:39 GMT):
Hi... Fabric creates a specific Pod using DinD (Docker in Docker) when running on Kubernetes. A Dind Pod must be running for this to work... that is OK. But I see in my peer logs that the time zone of the peer node is the one I want, the log is in another time zone. How can I verify that the dind pod created for the chaincode (Java) has the correct timezone, and how to set that I want a specific time zone to be used? Thanks.

Imyaojie (Tue, 24 Dec 2019 02:02:27 GMT):
Has joined the channel.

Imyaojie (Tue, 24 Dec 2019 02:02:27 GMT):
Hello everyone, when I use fabric-sdk-java 1.4.1 version, installing the java chaincode is successful, but when instantiating the java chaincode, the error message is reported as docker build: Error returned from build: 255 "Not build.gralde nor pom.xml found in chaincode source, don't know how to build chaincode, I used the cli container to instantiate it successfully in the Linux server, but not through the java SDK

Khaled.MH (Tue, 24 Dec 2019 11:02:19 GMT):
Hell everyone can one not run the subsequent commands for network setup (such channel creation, joining a channel, chaincode installation etc.) by 'exec'-ing into the Docker container of the corresponding peers ?

awjh (Tue, 24 Dec 2019 11:48:52 GMT):
You can use the peer CLI via docker exec to setup channels, install and instantiate chaincode. You may need to delay between them as some seem to return before they are fully complete (e.g. instantiate the other peers aren't ready when it returns I've found)

awjh (Tue, 24 Dec 2019 11:53:04 GMT):
@Khaled.MH ^

Khaled.MH (Tue, 24 Dec 2019 12:01:48 GMT):
@awjh i want to run my network without CLI container and make every peer into container where every peer can joining a channel and make chaincode installation etc for each corresponding peers

deepaksingh04 (Tue, 24 Dec 2019 13:42:56 GMT):
Has joined the channel.

deepaksingh04 (Tue, 24 Dec 2019 13:42:57 GMT):
Hello All, Can we increase number of kafka in running network?

AbhijeetSamanta (Tue, 24 Dec 2019 19:57:24 GMT):
Hi All, I am trying to setup on HLF on EKS. I had setup till generate artefact and cryto material. also raft orderer running, but when I am creating the peers its give error as *" Could not connect to Endpoint: peer1-org1-service:7051, InternalEndpoint: peer1-org1-service:7051, PKI-ID: , Metadata: : context deadline exceeded"* Anybody help me to fix this issue. Let me know there is any further info. need?

abityildiz (Tue, 24 Dec 2019 20:09:15 GMT):

Clipboard - December 24, 2019 11:08 PM

stevenlam123 (Wed, 25 Dec 2019 11:23:36 GMT):
Can hyperledger fabirc using client side public key to generate a certificate, I would like to implement registration look like the etherum. I don't know why fabric generate the credential in server side and just use it? So how can we assure that the non repudiation of a transaction.

jackxu (Wed, 25 Dec 2019 13:58:14 GMT):
Has joined the channel.

jackxu (Wed, 25 Dec 2019 13:58:14 GMT):
hi, I have issue commands follow the Fabric CA Operations Guide. but I got error when I issue the commond 'peer chaincode instantiate'. the error log show 'Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Attribute 'abac.init' was not found'. how can I solve it? thanks.

dtomczyk (Wed, 25 Dec 2019 14:19:12 GMT):
Where are the sources for files generated in fabric-protos-go ?

dtomczyk (Wed, 25 Dec 2019 14:55:41 GMT):
Oh, I see fabric-protos

jackxu (Wed, 25 Dec 2019 15:42:39 GMT):
So, I've discovered the issue: The documentation is incorrect, instead of abac, I need to use chaincode_example02

jinnyjinnyjinjin (Thu, 26 Dec 2019 01:19:44 GMT):
Hi, Did you try with the correct function name and correct parameters of chaincode when you were instantiating it? And can you show me the whole command you tried? thanks.

Fama 5 (Thu, 26 Dec 2019 02:04:02 GMT):
Multi fabric network communication is possible ?

jackxu (Thu, 26 Dec 2019 02:35:45 GMT):
Thanks for your reply. I have solved the problem. the identity which instantiate the chaincode should have the abac.init attr. There are some problems in the operation guide.

geni (Thu, 26 Dec 2019 03:21:54 GMT):
DO we have a channel specific to chaincode??

root5533 (Thu, 26 Dec 2019 04:32:58 GMT):
Has joined the channel.

konda.kalyan (Thu, 26 Dec 2019 06:01:08 GMT):
Has joined the channel.

biligunb (Thu, 26 Dec 2019 07:06:37 GMT):
each chaincode is specific to 1 channel. you can install same chaincode to multiple channels though

geni (Thu, 26 Dec 2019 07:31:35 GMT):
I mean slack channel :D

DilipManjunatha (Thu, 26 Dec 2019 09:24:10 GMT):
How to add a new Org to existing Consortium(Orderer channel)?

AshutoshKumar7 (Thu, 26 Dec 2019 10:06:16 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html

kirikiri (Thu, 26 Dec 2019 10:49:55 GMT):
Has joined the channel.

kirikiri (Thu, 26 Dec 2019 10:49:56 GMT):
Hello and merry christmas, maybe somebody could help me I've stucked with the production deployment of fabric to kubernetes. I've created the network successfully and created all crypto materials for peers / orderer and ca and I've instantiated the chaincode. Now I'm trying to create users and send transactions from js code on behalf of of this users. I receive the error: `"message":"Failed to send transaction successfully to the orderer status:FORBIDDEN"` Could you please help or suggest some documentation where I can read about how to create users under orgs and assign rights to them or what does this error mean

kirikiri (Thu, 26 Dec 2019 10:49:57 GMT):
Thanks!

kirikiri (Thu, 26 Dec 2019 10:49:57 GMT):
The main problem is that I successfully send transactions from peer container but I cannot send this transaction from my local-computer via JS code. I see the error written above. Thanks!

RahulEth (Thu, 26 Dec 2019 11:59:12 GMT):
```2019-12-26 11:31:24.271 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 1257 Failed to send StepRequest to 7, because: aborted channel=chpreferences node=2 2019-12-26 11:31:24.273 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 1258 Failed to send StepRequest to 7, because: aborted channel=byfn-sys-channel node=2 2019-12-26 11:31:25.172 UTC [orderer.consensus.etcdraft] Step -> INFO 1259 2 [logterm: 153, index: 152, vote: 2] ignored MsgPreVote from 7 [logterm: 153, index: 152] at term 153: lease is not expired (remaining ticks: 6) channel=byfn-sys-channel node=2 2019-12-26 11:31:25.226 UTC [orderer.consensus.etcdraft] Step -> INFO 125a 2 [logterm: 153, index: 152, vote: 2] ignored MsgPreVote from 5 [logterm: 153, index: 152] at term 153: lease is not expired (remaining ticks: 6) channel=byfn-sys-channel node=2 2019-12-26 11:31:25.771 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125b Failed to send StepRequest to 5, because: aborted channel=chpreferences node=2 2019-12-26 11:31:25.771 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125c Failed to send StepRequest to 6, because: aborted channel=chpreferences node=2 2019-12-26 11:31:25.773 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125d Failed to send StepRequest to 5, because: aborted channel=byfn-sys-channel node=2 2019-12-26 11:31:25.773 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125e Failed to send StepRequest to 6, because: aborted channel=byfn-sys-channel node=2 ````

RahulEth (Thu, 26 Dec 2019 11:59:12 GMT):
have someone faced the issue```2019-12-26 11:31:24.271 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 1257 Failed to send StepRequest to 7, because: aborted channel=chpreferences node=2 2019-12-26 11:31:24.273 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 1258 Failed to send StepRequest to 7, because: aborted channel=byfn-sys-channel node=2 2019-12-26 11:31:25.172 UTC [orderer.consensus.etcdraft] Step -> INFO 1259 2 [logterm: 153, index: 152, vote: 2] ignored MsgPreVote from 7 [logterm: 153, index: 152] at term 153: lease is not expired (remaining ticks: 6) channel=byfn-sys-channel node=2 2019-12-26 11:31:25.226 UTC [orderer.consensus.etcdraft] Step -> INFO 125a 2 [logterm: 153, index: 152, vote: 2] ignored MsgPreVote from 5 [logterm: 153, index: 152] at term 153: lease is not expired (remaining ticks: 6) channel=byfn-sys-channel node=2 2019-12-26 11:31:25.771 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125b Failed to send StepRequest to 5, because: aborted channel=chpreferences node=2 2019-12-26 11:31:25.771 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125c Failed to send StepRequest to 6, because: aborted channel=chpreferences node=2 2019-12-26 11:31:25.773 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125d Failed to send StepRequest to 5, because: aborted channel=byfn-sys-channel node=2 2019-12-26 11:31:25.773 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 125e Failed to send StepRequest to 6, because: aborted channel=byfn-sys-channel node=2 ````

kirikiri (Thu, 26 Dec 2019 14:23:17 GMT):
#fabric-kubernetes

ashish.cppdev (Thu, 26 Dec 2019 17:49:19 GMT):
Hi - Organization object isn't exposed as a type in TypeScript. Any suggestions?

Manzik (Fri, 27 Dec 2019 04:57:53 GMT):
Has joined the channel.

csunitha (Fri, 27 Dec 2019 06:01:43 GMT):
Has joined the channel.

wangcj (Fri, 27 Dec 2019 08:02:28 GMT):
Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

wangcj (Fri, 27 Dec 2019 08:02:48 GMT):
how can i solve this error?

abityildiz (Fri, 27 Dec 2019 09:02:38 GMT):
hi all,i have a setup fabric 2.0 beta raft orderer type multi host network.when i approve,i get the this error : error:timed out waiting for txid on all peers..What is the mean?plase help me

Fama 5 (Fri, 27 Dec 2019 09:11:03 GMT):
Hi all does the fabric has Interoperability functionality to communicate between two different fabric networks. Where each network contains there own CA, orderer, Peers.

ruchisaluja (Fri, 27 Dec 2019 09:39:22 GMT):
Has joined the channel.

ruchisaluja (Fri, 27 Dec 2019 09:39:22 GMT):
hello, i got the following error on running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.4 1.4.4 0.4.18

ruchisaluja (Fri, 27 Dec 2019 09:45:54 GMT):
hello, i got an error while downloading the docker images for fabric samples. I had run the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.4 1.4.4 0.4.18``` All the binaries downloaded but the following error message was displayed for all docker images:``` Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=hyperledger%2Ffabric-peer&tag=1.4.4: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/hyperledger/fabric-peer:1.4.4/tag?repo=hyperledger%2Ffabric-peer&tag=latest: dial unix /var/run/docker.sock: connect: permission denied`````` ``` Could someone please suggest a fix for this? ``` ``` ``` ``` ``` ``` ```

BrettLogan (Fri, 27 Dec 2019 09:50:38 GMT):
@ruchisaluja What OS are you using?

biligunb (Fri, 27 Dec 2019 09:52:26 GMT):
@geni fabric-chaincode-dev this?

ruchisaluja (Fri, 27 Dec 2019 09:53:13 GMT):
@BrettLogan linux mint 19.2

barney2k7 (Fri, 27 Dec 2019 09:53:20 GMT):
"/var/run/docker.sock: connect: permission denied" usually indicates that the current user doesn't have enough permission to use docker - googling for that should lead you the the solution matching your env

BrettLogan (Fri, 27 Dec 2019 09:53:22 GMT):
Your user needs to be added to the docker user group `sudo usermod -aG docker ` then logout and log back in

BrettLogan (Fri, 27 Dec 2019 09:53:22 GMT):
Your user needs to be added to the docker user group `sudo usermod -aG docker ` then logout and log back in @ruchisaluja

ruchisaluja (Fri, 27 Dec 2019 09:55:30 GMT):
alright let me try that

ruchisaluja (Fri, 27 Dec 2019 10:14:36 GMT):
this command is not working. should i add the sudo groupname docker command too before this?

selvaraman (Fri, 27 Dec 2019 10:41:47 GMT):
Has joined the channel.

selvaraman (Fri, 27 Dec 2019 10:41:52 GMT):
Can I use fabric for ICO ? or burrow?

selvaraman (Fri, 27 Dec 2019 10:41:54 GMT):
which is right tool

razasikander (Fri, 27 Dec 2019 11:38:30 GMT):
Hello Guys i am fetching channel details with node sdk by var channel = client.getChannel(channel_name); but iam not getting the peer details Channel { _name: 'pmbctchannel', channelpeers: Map {}, anchorpeers: [], _orderers: Map { 'orderer.example.com'=>.... } Any idea where the problem can be?

shrivastava.amit (Fri, 27 Dec 2019 12:33:02 GMT):
Has joined the channel.

shrivastava.amit (Fri, 27 Dec 2019 12:33:12 GMT):
Hello Guys,

shrivastava.amit (Fri, 27 Dec 2019 12:34:34 GMT):
I am trying to use service discovery and when I am trying to fetch chaincode details from CLI, I am getting below error from peer `2019-12-27 12:32:02.350 UTC [discovery] chaincodeQuery -> ERRO 061 Failed constructing descriptor for chaincode chaincodes: ,: cannot satisfy any principal combination`

shrivastava.amit (Fri, 27 Dec 2019 12:35:03 GMT):
and from CLI logs `server returned: failed constructing descriptor for chaincodes:`

shrivastava.amit (Fri, 27 Dec 2019 12:35:56 GMT):
I have configured the anchor peer and `CORE_PEER_GOSSIP_BOOTSTRAP` and `CORE_PEER_GOSSIP_EXTERNALENDPOINT` also configured

shrivastava.amit (Fri, 27 Dec 2019 12:36:37 GMT):
When I am running `./byfn up`, I can discover the chaincode but with my setup I am getting this error.

shrivastava.amit (Fri, 27 Dec 2019 12:38:00 GMT):
Other then chaincode discovery, I can discover other configuration successfully like `peers` , `config`

shrivastava.amit (Fri, 27 Dec 2019 12:38:09 GMT):
Thanks in advance

ruchisaluja (Fri, 27 Dec 2019 13:58:42 GMT):
@BrettLogan thanks! this worked fine after rebooting.

someguy (Fri, 27 Dec 2019 18:12:57 GMT):
hello, can someone explain to me what are Non-Orderer organizations. I mean, i know that probably this refers to organizations that do not contribute to the network with Orderers, but i mean if a Consortium is a collection of non-orderer organizations and a blockchain network can be composed of one single consortia, who contributes with the Orderers? and how many Orderers do you need to keep a blockchain network fully functional?

prasad25 (Fri, 27 Dec 2019 18:36:19 GMT):
Has joined the channel.

prasad25 (Fri, 27 Dec 2019 18:36:21 GMT):
Hey,

prasad25 (Fri, 27 Dec 2019 18:36:40 GMT):
Hey

prasad25 (Fri, 27 Dec 2019 18:41:14 GMT):
hey, i'm new for hyperledger fabric. Can anyone suggest me a online course from where i can learn hyperledger fabric in details and able to develop a decentralized system. Please don't suggest the official tutorial of hyperledger fabric.

ALURUJAWAHAR (Fri, 27 Dec 2019 19:33:10 GMT):
While running ./byfn.sh up I got the below error:

ALURUJAWAHAR (Fri, 27 Dec 2019 19:33:12 GMT):
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim

ALURUJAWAHAR (Fri, 27 Dec 2019 19:33:34 GMT):
can anyone tell me workaround for this

BrettLogan (Sat, 28 Dec 2019 09:11:52 GMT):
I always recommend https://www.udemy.com/course/hyperledger-fabric-network-design-setup/

BrettLogan (Sat, 28 Dec 2019 10:19:00 GMT):
The same guy has a chaincode for developers tutorial as well I highly recommend

BrettLogan (Sat, 28 Dec 2019 10:25:06 GMT):
What is the directory structure of chaincode, the most likely cause of `go list` marking the package as incomplete is there being no entrypoint in the root of the project

BrettLogan (Sat, 28 Dec 2019 10:25:30 GMT):
Does your chaincode have a main method in its root

someguy (Sat, 28 Dec 2019 10:25:52 GMT):
hello, can someone explain to me what are Non-Orderer organizations. I mean, i know that probably this refers to organizations that do not contribute to the network with Orderers, but i mean if a Consortium is a collection of non-orderer organizations and a blockchain network can be composed of one single consortia, who contributes with the Orderers? and how many Orderers do you need to keep a blockchain network fully functional?

BrettLogan (Sat, 28 Dec 2019 10:36:01 GMT):
The consortia has to agree on some organization being an ordering organization. Non-orderer orgs simply refers to orgs in a consortia who do not operate orderers. For some consortia, for example large bank consortias, the banks may operate the orderers, but third parties, for example a service provider on the network have no stake in the ordering of the transactions, so they don't want or need to participate in the ordering of transactions. And with the current RAFT ordering service, a network can operate with 1 RAFT node, but a minimum of 5 nodes, distributed across multiple geographics regions is recommended for HA.

BrettLogan (Sat, 28 Dec 2019 10:41:25 GMT):
Of course, there may be consortias who don't want to operate their own orderers. Or where there is truly zero trust among participants to independently operate the orderers. In this case, there are third party companies who can operate the nodes as independent third parties with no stake in the consortia, and thus, no reason to manipulate the network

someguy (Sat, 28 Dec 2019 10:46:17 GMT):
thanks :)

yuqii (Sat, 28 Dec 2019 13:29:05 GMT):
Has joined the channel.

yuqii (Sat, 28 Dec 2019 13:29:05 GMT):
Hi! Does anyone knows what is the proper way to bind caliper with fabric? Have been following the commands according to the documentation but failed. I'm using MacOS

someguy (Sat, 28 Dec 2019 14:03:56 GMT):
hello again guys, does anyone know a article where it refers on How two/more organizations from different countries can participate in the same HF network?

someguy (Sat, 28 Dec 2019 14:03:56 GMT):
hello again guys, does anyone know a article where it refers on How two/more organizations from different countries can participate in the same HF network? Because im having trouble with this in the docker-compose/network part of this

someguy (Sat, 28 Dec 2019 14:19:17 GMT):
or in other words, how peers from 2/more orgs see and communicate with each other if they are in different machines/locations/countries.

abityildiz (Sat, 28 Dec 2019 14:44:21 GMT):
hi all,when i setup raft multi host organizations,i get the this error : Error:timed out waiting for txid all peers..what is the mean?

Rajatsharma (Sun, 29 Dec 2019 02:03:30 GMT):
[URGENT] Hello all, Has anyone deployed a fabric network using docker but without using swarm on multiple host machines.

jackxu (Sun, 29 Dec 2019 08:30:45 GMT):
hi, can someone help. i issue the commond that join the peer to one channel. the logs in cli container show 'Successfully submitted proposal to join channel'. but in the orderer container logs show '[channel: wdchannel] Client authorization revoked for deliver request from ip:port: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied'. How should policy be configured. regards. thanks.

Paradox-AT (Sun, 29 Dec 2019 08:54:50 GMT):
Check the certificate if it is expired if not then check the if the org is added to the channel

Paradox-AT (Sun, 29 Dec 2019 08:54:50 GMT):
Check the certificate if it is expired if not then check the if the org is added to the channel . There should be some issue with the config

Paradox-AT (Sun, 29 Dec 2019 08:57:10 GMT):
Hey Guys, How can I define the channel policies in such a way that the any update on the channel configuration requires endorsing by only one organization?

Paradox-AT (Sun, 29 Dec 2019 09:19:12 GMT):
They can just join a channel to communicate with each other. The peer location should not matter in a distributed network

Paradox-AT (Sun, 29 Dec 2019 09:21:01 GMT):
I've not yet worked on that usecase but it shouldnt be any problem with that. What issue are you getting?

someguy (Sun, 29 Dec 2019 15:26:18 GMT):
yep, ive done it. But in a really rudimentar way.

Paradox-AT (Sun, 29 Dec 2019 15:27:14 GMT):
what was the issue anyway?

someguy (Sun, 29 Dec 2019 15:29:52 GMT):
well my problem is exatcly that. I mean, i have done this already by using a repo from github, but the code was clunky and rudimentar. It recurred to a feature from docker called, extra_hosts, that allowed peers to know each other. this feature was deployed within the docker compose for the services running within that docker compose.

someguy (Sun, 29 Dec 2019 15:31:46 GMT):
they i did this was sourced from this bash script. https://github.com/Altoros/fabric-starter/blob/master/network.sh

someguy (Sun, 29 Dec 2019 15:31:46 GMT):
the way i did this was sourced from this bash script. https://github.com/Altoros/fabric-starter/blob/master/network.sh

someguy (Sun, 29 Dec 2019 15:32:45 GMT):
but i figured that it must be a simpler way to make this happen

someguy (Sun, 29 Dec 2019 15:32:45 GMT):
but i figured that there must be a simpler way to make this happen. And my issue is exactly how do i replace that extra_hosts feature, or

Paradox-AT (Sun, 29 Dec 2019 15:33:40 GMT):
ooh I am working on a single instance

Paradox-AT (Sun, 29 Dec 2019 15:33:57 GMT):
Not sure how to deal with that

someguy (Sun, 29 Dec 2019 15:35:38 GMT):
ahh, ok ok. no problem. i will try to figure it out. but yeah, my issue is really that, i mean, how can another person/organization, configure his HF components so he can contribute to an already existing and remote HF network.

Paradox-AT (Sun, 29 Dec 2019 15:36:17 GMT):
I am working on the same problem rt now

Paradox-AT (Sun, 29 Dec 2019 15:36:55 GMT):
Currently I am working on a bash script to add it to the organization

Paradox-AT (Sun, 29 Dec 2019 15:37:33 GMT):
After that I need to test it on another network

someguy (Sun, 29 Dec 2019 15:37:46 GMT):
well if you want something fast, you can use that repo i sent. it works. Ive made a POC from it. so it works. But its complex and rudimentar and there must be a simpler way

Paradox-AT (Sun, 29 Dec 2019 15:38:11 GMT):
I am working on a script to create the peers through a bash script

Paradox-AT (Sun, 29 Dec 2019 15:38:59 GMT):
Okay tomorrow I probably working on that

Paradox-AT (Sun, 29 Dec 2019 15:39:14 GMT):
Will keep you in loop

someguy (Sun, 29 Dec 2019 15:39:50 GMT):
sure, im too im working on that, but trying to figure out the simplest/best way to do this for production level

Paradox-AT (Sun, 29 Dec 2019 15:41:10 GMT):
Any clue about this: https://chat.hyperledger.org/channel/fabric-questions?msg=fWXrJwjENKLRgHi3E

someguy (Sun, 29 Dec 2019 15:43:20 GMT):
im still learning HF, but i would follow this doc https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html

uksnotabot (Mon, 30 Dec 2019 09:21:37 GMT):
Has joined the channel.

uksnotabot (Mon, 30 Dec 2019 09:21:38 GMT):
Hello, Im trying to build a POC for my company using fabric, and came up with a barrage of questions. One of the questions i have is, there is a need to put all business projects on the network. But each project would end after a stipulated time frame . For instance, i have a channel with vendor 1 and this project ends with vendor 1 after 6 months. After that is done, i don't go into business with him till about a year. After a year, I enter a new project with the same vendor 1 but with completely new requirements. Can I place him on the same channel and just update the chaincode with a new smart contract that only applies to this project?. If yes any ideas on how to do this? I was thinking I create a new channel for every new project, but that would result in me creating millions of channels in due course of time.

selvaraman (Mon, 30 Dec 2019 11:11:45 GMT):
fabric sdk

selvaraman (Mon, 30 Dec 2019 11:12:17 GMT):
good tutorial link for fabric sdk

Tim (Mon, 30 Dec 2019 22:41:16 GMT):
Hi guys, can someone explain me the terms: CORE_PEER_GOSSIP_BOOTSTRAP, CORE_PEER_GOSSIP_ENDPOINT, CORE_PEER_GOSSIP_EXTERNALENDPOINT please ?

Tim (Mon, 30 Dec 2019 22:54:39 GMT):
and CORE_PEER_GOSSIP_INTERNALENDPOINT please

BrettLogan (Mon, 30 Dec 2019 23:03:39 GMT):
They are explained quite well in this section of the doc: https://hyperledger-fabric.readthedocs.io/en/release-1.4/gossip.html#external-and-internal-endpoints

KoushKilla (Mon, 30 Dec 2019 23:09:18 GMT):
Hi Tim, in a very highlevel gossip is the communication between peers in the network, such as for peer discovery, etc ... https://hyperledger-fabric.readthedocs.io/en/release-1.4/gossip.html#gossip-protocol

Koushik (Mon, 30 Dec 2019 23:52:02 GMT):
Hi Guys, I am trying to extended from a solo consenter to three consenters in my HF Blockchain Network. These are the procedure I am going to follow after reading multiple stack overflow Q/A and official article on the hyper ledger website. Sources: * https://stackoverflow.com/questions/57571629/how-to-add-a-new-orderer-in-a-running-hyperledger-fabric-network-using-raft/57625802#57625802 * https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html 1. Generate new orderer certs (Consenters) 2. Add another orderer to the system channel - Append new cert information (TLS Cert for orderer) in the config.json file 3. Update the channel configuration 4. Bring up the new orderer container with the appropriate certs and with a new path to the recently fetched genesis.block 5. Add the endpoint of the orderer and update the channel again 6. Do the same process for the application channel My only question is do I need to change the configtx.yaml file and use the extracted artifact json file for the channel update, because none of the sources mention changing the configtx.yaml file and using the extracted json file.

LamSingjip (Tue, 31 Dec 2019 03:24:46 GMT):
Has joined the channel.

LamSingjip (Tue, 31 Dec 2019 03:24:48 GMT):
Hello everyone! I am a newbie to Fabric and i am trying to install the things i need to build a network. I did the things as this link (https://hyperledger-fabric.readthedocs.io/en/latest/install.html) shows, but I got an error "curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused" when I run the command "curl -sSL https://bit.ly/2ysbOFE | bash -s". I don't know what's wrong. Hope you guys can help me out. Thanks a lot. Have a good day!

Manzik (Tue, 31 Dec 2019 05:12:56 GMT):
Hey folks! Why is Hyperledger not good at multiple versions of node, npm and other dependencies?

BrettLogan (Tue, 31 Dec 2019 07:23:08 GMT):
Try this `curl -sSL https://raw.githubusercontent.com/btl5037/fabric/bootstrap_wget/scripts/bootstrap.sh | bash -s`

BrettLogan (Tue, 31 Dec 2019 07:23:49 GMT):
I really should have switched it to `wget` a long time ago. `curl` does not handle broken connections

BrettLogan (Tue, 31 Dec 2019 07:23:49 GMT):
I really should have switched it to `wget` a long time ago. `curl` does not handle broken connections well at all

LamSingjip (Tue, 31 Dec 2019 10:17:48 GMT):
Thanks! But I've tried this command before and it also doesn't work. My curl version is newest for ubuntu 18.04 and i've also tried in my windows system which still sent me the same error.

Tim (Tue, 31 Dec 2019 10:48:52 GMT):
Thanks a lot :)

BrettLogan (Tue, 31 Dec 2019 12:00:26 GMT):
Download the script I have you the link for, open it up, add `set -x` to the top of it, and run it, then send me the output so I can see what's happening. It's also be helpful if you could add `-vv` to the `wget` command so we could see what's happening on the failure

LamSingjip (Tue, 31 Dec 2019 12:36:30 GMT):
Hi, II try to add my SSH key to Github before retry and it works. But I got a new error.

LamSingjip (Tue, 31 Dec 2019 12:36:30 GMT):
Hi, I try to add my SSH key to Github before retry and it works. But I got a new error.

LamSingjip (Tue, 31 Dec 2019 12:37:10 GMT):
Cloning into 'fabric-samples'... remote: Enumerating objects: 4427, done. remote: Total 4427 (delta 0), reused 0 (delta 0), pack-reused 4427 Receiving objects: 100% (4427/4427), 1.61 MiB | 51.00 KiB/s, done. Resolving deltas: 100% (2179/2179), done. Note: checking out 'v1.4.4'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at bc72f3e Remove Stalebot Pull Hyperledger Fabric binaries ===> Downloading version 1.4.4 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-linux-amd64-1.4.4.tar.gz gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 1.4.4 platform specific fabric binary is not available to download <---

jaldipkansagara (Tue, 31 Dec 2019 13:02:46 GMT):
Has joined the channel.

jaldipkansagara (Tue, 31 Dec 2019 13:02:47 GMT):
Hello, I need to configure blockchain network. How I can install/configure hyperledger fabric on bare metal server? Also how can I use cloud platform like (AWS, GCP, Azure), within one network for decentralized blockchain network ?

zircoz (Tue, 31 Dec 2019 14:24:07 GMT):
Has joined the channel.

BrettLogan (Tue, 31 Dec 2019 16:28:40 GMT):
The raw binaries are available here: https://github.com/hyperledger/fabric/releases/tag/v1.4.4

BrettLogan (Tue, 31 Dec 2019 16:29:27 GMT):
But without using some container technology you'll need to handle the HA of the system for CFT.

BrettLogan (Tue, 31 Dec 2019 16:31:05 GMT):
The doc is very extensive, as are our examples, the config files take FQDN's of hosts, so instead of docker containers you just need to replace them with true FQDN, open the software firewall on the system, and the cloud software or hardware firewall for the required ports

BrettLogan (Tue, 31 Dec 2019 16:32:03 GMT):
DLT isn't a simple technology, it's something you are going to want to read the entire doc and work through the examples

BrettLogan (Tue, 31 Dec 2019 16:33:35 GMT):
This is the old script using curl, not the new one I wrote using wget

BrettLogan (Tue, 31 Dec 2019 16:33:38 GMT):
You would see header information on the download step of if it was a wget call

realaravinth (Tue, 31 Dec 2019 21:16:32 GMT):
Has joined the channel.

jaldipkansagara (Wed, 01 Jan 2020 05:07:16 GMT):
Thanks. I am clear to use docker for container technology. Now to biuld infrastructure, I am confused as how to start. The main question is how I can install hyperledger fabric on bare metal server ?

jaldipkansagara (Wed, 01 Jan 2020 05:08:01 GMT):
Also another question is how I can put all systems of cloud (AWS, GCP, Azure) within one platform/network ? is it possible through kubernets ?

jaldipkansagara (Wed, 01 Jan 2020 05:08:01 GMT):
Also another question is how I can put all systems of cloud (AWS, GCP, Azure) within one platform/network ? is it possible through kubernets ? If yes then how to use bare metal server for that and install fabric on it ?

nharshita (Wed, 01 Jan 2020 09:17:44 GMT):
Hello all, Is there any way to find the whether a query is been called using chaincode invoke or chaincode query command at the peer side (not at peer cli, but at the peer node/server side)

nharshita (Wed, 01 Jan 2020 09:17:44 GMT):
Hello all, Is there any way to find whether a query is been called using chaincode invoke or chaincode query command at the peer side (not at peer cli, but at the peer node/server side)

Rajatsharma (Wed, 01 Jan 2020 20:25:10 GMT):
Hi, I was trying to understand how does discovery service works in fabric. Can anyone share any nice link regarding the same. I had some conceptual doubts with discovery service: 1. What if the peer we had mentioned for the discovery service goes down. 2. If we have 2 organizations then does discovery service only give data for one(requesting) organizations' peers.

yacovm (Wed, 01 Jan 2020 21:48:29 GMT):
@Rajatsharma - did you look at the documentation? https://hyperledger-fabric.readthedocs.io/en/release-1.4/discovery-overview.html#how-service-discovery-works-in-fabric https://hyperledger-fabric.readthedocs.io/en/release-1.4/discovery-cli.html

yacovm (Wed, 01 Jan 2020 21:48:49 GMT):
> 1. What if the peer we had mentioned for the discovery service goes down. you can use several peers... no one limits you to use a single one

yacovm (Wed, 01 Jan 2020 21:49:36 GMT):
> 2. If we have 2 organizations then does discovery service only give data for one(requesting) organizations' peers. It gives information according to whether the client is allowed to invoke chaincode

yacovm (Wed, 01 Jan 2020 21:49:59 GMT):
Meaning, if the client has a WRITE policy in channel `foo` then it can make discovery queries to peers

yacovm (Wed, 01 Jan 2020 21:49:59 GMT):
Meaning, if the client has a WRITE permission in channel `foo` then it can make discovery queries to peers

yacovm (Wed, 01 Jan 2020 21:49:59 GMT):
Meaning, if the client has a WRITE permission in channel `foo` then it can make discovery queries to peers about channel `foo`

yacovm (Wed, 01 Jan 2020 21:50:22 GMT):
if the client has only a READ permission, then it can't use service discovery :(

yacovm (Wed, 01 Jan 2020 21:50:22 GMT):
if the client has only a READ permission, then it can't use service discovery

yacovm (Wed, 01 Jan 2020 21:51:12 GMT):
In addition, an admin of a peer can ask information about all peers regardless of the channel

LamSingjip (Thu, 02 Jan 2020 02:04:21 GMT):
Hi! How are you? I've downloaded the script you gave me and I've put set -x to the top of it and I run it. I got the following message and the error occurs at the bottom.

LamSingjip (Thu, 02 Jan 2020 02:05:10 GMT):

LamSingjip - Thu Jan 02 2020 10:04:37 GMT+0800 (China Standard Time).txt

Rajatsharma (Thu, 02 Jan 2020 06:17:09 GMT):
@yacovm I was building a POC so I was using the discovery service as: ``` return channel.initialize({discover:true, }) }).then((res) => { res.msps = {} console.log("discovery service response", JSON.stringify(res)) ``` but I'm getting the error ``` 2020-01-02T06:12:04.273Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://peer0.org1.rajat.com:7051 2020-01-02T06:12:04.274Z - warn: [DiscoveryEndorsementHandler]: _build_endorse_group_member >> G0:0 - endorsement failed - Error: Failed to connect before the deadline URL:grpc://peer0.org1.rajat.com:7051 ``` could you share any sample code on how to use service discovery

Aniket.1 (Thu, 02 Jan 2020 06:27:16 GMT):
Hi Experts, I have an architecture question. When we manage user's filesystem wallet on central server, what security parameters we should keep in mind. List or any such link will suffice. Thanks!

Navaneethan (Thu, 02 Jan 2020 10:33:26 GMT):
Hi everyone, I am seeking help to use java sdk to interact apis with fabric. pllease help!!

root10 (Thu, 02 Jan 2020 11:02:43 GMT):
Hi guys. Is it possible to use go sdk to sign an offline transaction like node sdk? my idea is to create transaction with backend, send it to client, sign it, return the signedProposal/Transaction to beckend and send it to the blockchain

trinayanbhatt (Thu, 02 Jan 2020 11:15:32 GMT):
Hi, I want to setup hyperledger fabric solution using kubernetes on GCE. Is there anyone who was prior experience in this type of setup?

trinayanbhatt (Thu, 02 Jan 2020 11:15:32 GMT):
Hi, I want to setup hyperledger fabric solution using kubernetes on GCE. Is there anyone who has prior experience in this type of setup?

jackxu (Thu, 02 Jan 2020 13:52:05 GMT):
hi all, the chaincode container name alway start by 'dev-'. How do i modify it.

Rajatsharma (Thu, 02 Jan 2020 14:44:56 GMT):
I want to use discovery service on a multi-host network but with the node service, not as a part of that fabric network. I get the container-name and port but I'll have to map that to a IP and port. Can anyone help me with this ... I guess I'll have to make changes in the connection.json, most probably here: ``` "peers": { "peer0.org1.rajat.com": { "url": "grpc://localhost:7081", "grpcOptions": { "ssl-target-name-override": "peer0.org1.rajat.com:7081", "hostnameOverride": "peer0.org1.rajat.com" } }, "peer1.org1.rajat.com": { "url": "grpc://localhost:8081", "grpcOptions": { "ssl-target-name-override": "peer1.org1.rajat.com", "hostnameOverride": "peer1.org1.rajat.com" } } } ``` But I'm not able to get what I'm doing incorreclty can anyone help me with this ?

Rajatsharma (Thu, 02 Jan 2020 17:48:14 GMT):
I wanted to use discovery service on a multi-host network(which we're using for production). But I wanted to run the node service in such a way, that even if I don't run the service in the same docker swarm, all the request go through. So I had looked the way people normally use fabric discovery : ``` await channel.initialize({discover:true, asLocalhost:true}) ``` I can't use it this as `asLocalhost`, replaces the hostname with localhost. Moreover, even if the port for peer is not mapped at 7051 the code does not work. So ideally I was looking for a way to map the returning hostname and port, with one in configuration. I looked inside the code https://github.com/hyperledger/fabric-sdk-node/blob/v1.4.4/fabric-client/lib/Channel.js#L253, I found out that if we're using service discovery there's no flag or a way to change the url mapping. So using fabric's service discovery with multi-host network is not possible ?

biligunb (Fri, 03 Jan 2020 05:31:11 GMT):
`channel.initialize` uses **X** peer as the starting point to send DISCOVER request

Rajatsharma (Fri, 03 Jan 2020 05:33:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=CMjDsF4DN4GBQXmWD) @biligunb I didn't get how will this solve my problem

biligunb (Fri, 03 Jan 2020 05:37:51 GMT):
it does not really matter if multi-host or NOT. given that they are in 1 network. (1 channel) Ex : AWS - EC2 instances - just need to use Private IP's in VPC and it should work

Rajatsharma (Fri, 03 Jan 2020 05:40:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9EXBhhDEB8tfSodrk) @biligunb See, if use asLocalhost then the hostname gets converted to localhost. This will not work for me. If i don't use that then fabric returns the container name and port. Which i can't connect to if I'm not part of that docker network. So that's where I'm stuck !

HemanthKumar1327 (Fri, 03 Jan 2020 06:23:14 GMT):
Has joined the channel.

HemanthKumar1327 (Fri, 03 Jan 2020 06:23:16 GMT):
hello

abityildiz (Fri, 03 Jan 2020 06:59:46 GMT):
hi all;i want to setup fabric 2.0 beta.my architecture is like this: host1: raft orderer (5) host2: org1 (2 peer) host2: org2 (2 peer) is it correct or not?

stevenlam123 (Fri, 03 Jan 2020 08:03:57 GMT):
The wallet are generated at server side. How to do the client side authentication if my application allow external user to register? Add username and password for authentication seems to break the PKI infrastructure.

Rajatsharma (Fri, 03 Jan 2020 08:21:40 GMT):
@yacovm could you help me with this.

yacovm (Fri, 03 Jan 2020 08:56:31 GMT):
@Rajatsharma nope, i dont know sdk

sakshibansal (Fri, 03 Jan 2020 09:36:45 GMT):
Hello Everyone, I am getting connection response as false always from this line of code when using channel event hub - *channel_event_hub.isconnected()* Despite of getting false response, i am able to registerBlockEvent listener and listen for new blocks as well. This is really a weird issue. Can anyone of you please help me out in this?

Esegarra (Fri, 03 Jan 2020 10:35:43 GMT):
Hello! I’m testing a blockchain network with the Fabric’s version 2.0-beta. In the moment of the chaincode approval for org (`peer lifecycle chaincode approveformyorg`) I’m getting the following error: ``` Error: proposal failed with status: 500 - cannot use new lifecycle for channel 'fabricdevchannel' as it does not have the required capabilities enabled ``` I’m using the new core.yaml as it’s recommended here (https://hyperledger-fabric.readthedocs.io/en/master/upgrading_your_components.html#overview) I’m also attached my configtx.yaml, where I added the new capabilities. I really appreciate any help in advance.

Esegarra (Fri, 03 Jan 2020 10:36:17 GMT):

configtx_v2-beta.zip

georges (Fri, 03 Jan 2020 14:54:45 GMT):
Has joined the channel.

georges (Fri, 03 Jan 2020 14:54:47 GMT):
hello

georges (Fri, 03 Jan 2020 14:54:55 GMT):
is there a slack channel for hyperledger?

georges (Fri, 03 Jan 2020 14:55:11 GMT):
I was signed in here from the LFID page.

mastersingh24 (Fri, 03 Jan 2020 15:53:07 GMT):
No ... Hyperledger currently uses RocketChat (which is where you are)

SimonJousse (Fri, 03 Jan 2020 16:25:32 GMT):
Has joined the channel.

JoseEdo (Fri, 03 Jan 2020 23:28:30 GMT):
Has joined the channel.

JoseEdo (Fri, 03 Jan 2020 23:38:22 GMT):
hi there, I am getting an error when I try to create a channel (./network.sh createChannel) in the test-network. I am using WSL in Windows 10

JoseEdo (Fri, 03 Jan 2020 23:38:22 GMT):
hi there, I am getting an error when I try to create a channel (./network.sh createChannel) in the test-network. I am using WSL in Windows 10 for the docker client and docker daemon installed in windows. The error i get is: Error: failed to create deliver client: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== Has anybody experienced the same issue before? thanks

javadh75 (Sat, 04 Jan 2020 09:51:56 GMT):
Has joined the channel.

SanjayDhonde (Sat, 04 Jan 2020 15:02:47 GMT):
Has joined the channel.

SanjayDhonde (Sat, 04 Jan 2020 15:02:54 GMT):
I am unable to deploy smart contract (ContractInterface) using Java fabric SDK. Can someone share sample code?

SanjayDhonde (Sat, 04 Jan 2020 15:02:54 GMT):
I am unable to deploy smart contract (ContractInterface) using Java fabric SDK. Can someone please share sample code?

CT123 (Sat, 04 Jan 2020 17:09:35 GMT):
See this which includes a examples directory `https://github.com/hyperledger/fabric-chaincode-java` and see this for documentation: `https://hyperledger.github.io/fabric-chaincode-java/`

BrettLogan (Sat, 04 Jan 2020 21:25:36 GMT):
Many people have had issues running this in WSL. WSL is just receiving mainstream support for docker and you need to make absolute sure you followed all of the steps in the docker deployment guide for deploying WSL2, note this is the second version, and it is still an edge release not an official release yet. Follow the doc here and make sure you have done it all to deploy wsl2 (though I can't 100% confirm even that will work): https://docs.docker.com/docker-for-windows/wsl-tech-preview/

Manzik (Sun, 05 Jan 2020 07:16:41 GMT):
I was going through hyperledger fabric commercial paper tutorial. while I start the basic-network with given ./start.sh script I got this Error. ``` Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org1MSP but was in the read set ``` Why "mychannel " is not being created??

Manzik (Sun, 05 Jan 2020 07:16:41 GMT):
I was going through hyperledger fabric *commercial paper tutorial.* while I start the basic-network with given ./start.sh script I got this Error. ``` Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org1MSP but was in the read set ``` Why "mychannel " is not being created??

pouya (Sun, 05 Jan 2020 12:39:04 GMT):
Has joined the channel.

selvaraman (Sun, 05 Jan 2020 14:54:03 GMT):
Can someone answer for problem please https://stackoverflow.com/questions/59592190/chaincode-stream-terminated-getstate-hyperledger-fabric-node-sdk

selvaraman (Sun, 05 Jan 2020 14:54:03 GMT):
Can someone answer for the problem please https://stackoverflow.com/questions/59592190/chaincode-stream-terminated-getstate-hyperledger-fabric-node-sdk

selvaraman (Sun, 05 Jan 2020 14:54:03 GMT):
Can someone solution for the problem please https://stackoverflow.com/questions/59592190/chaincode-stream-terminated-getstate-hyperledger-fabric-node-sdk

Piyush.Sharma (Sun, 05 Jan 2020 14:55:18 GMT):
Has joined the channel.

braduf (Sun, 05 Jan 2020 16:34:17 GMT):
Hi all, we are defining the infrastructure for our part of a production Fabric network. The cloud we need to use is AWS and we were thinking of creating a cluster of anchor peers and a cluster of internal peers, with every cluster having a load balancer. The load balancer for the anchor peers would be public and known by other orgs as the anchor peer IP to endorse txs initialized by other orgs. The load balancer for the internal cluster would be used by our own SDKs to endorse transactions coming from our clients. The network configurations of both clusters should still be set that direct communication between our peers is possible so the gossip keeps working. So the load balancers would only be for applications to use, but we have doubts if this setup makes sense because of the following questions we have: - Can the Fabric SDK be used with a load balancer in between the SDK app and the peers? How will the SDK be able to use gossip then if it only knows the IP of the load balancer and not of the peers directly? - What about an autoscaling group for our peer clusters, how can we manage the time a newly started peer needs to synchronize its ledger?

braduf (Sun, 05 Jan 2020 16:34:17 GMT):
Hi all, we are defining the infrastructure for our part of a production Fabric network. The cloud we need to use is AWS and we were thinking of creating a cluster of anchor peers and a cluster of internal peers, with every cluster having a load balancer. The load balancer for the anchor peers would be public and known by other orgs as the anchor peer IP to endorse txs initialized by other orgs. The load balancer for the internal cluster would be used by our own SDKs to endorse transactions coming from our clients. The network configurations of both clusters should still be set that direct communication between our peers is possible so the gossip keeps working. So the load balancers would only be for applications to use, but we have doubts if this setup makes sense because of the following questions we have: - Can the Fabric SDK be used with a load balancer in between the SDK app and the peers? How will the SDK be able to use gossip then if it only knows the IP of the load balancer and not of the peers directly? - What about an autoscaling group for our peer clusters, how can we manage the time a newly started peer needs to synchronize its ledger? Please let us know if anyone can answer our questions or if someone has more experience already with deploying a Fabric network in production with clusters of peers, load balancers etc... Thanks a lot!

braduf (Sun, 05 Jan 2020 16:34:17 GMT):
Hi all, we are defining the infrastructure for our part of a production Fabric network. The cloud we need to use is AWS and we were thinking of creating a cluster of anchor peers and a cluster of internal peers, with every cluster having a load balancer. The load balancer for the anchor peers would be public and known by other orgs as the anchor peer IP to endorse txs initialized by other orgs. The load balancer for the internal cluster would be used by our own SDKs to endorse transactions coming from our clients. The network configurations of both clusters should still be set that direct communication between our peers is possible so the gossip keeps working. So the load balancers would only be for applications to use, but we have doubts if this setup makes sense because of the following questions we have: - Can the Fabric SDK be used with a load balancer in between the SDK app and the peers? Will the SDK be able to use gossip and discovery if it only knows the IP of the load balancer and not of the peers directly? - What about an autoscaling group for our peer clusters, how can we manage the time a newly started peer needs to synchronize its ledger? - Is a load balancer and an autoscaling group of peers a good ID or is it recommended to have a static set of peers and let the SDK manage the peers it sends endorsements to instead of a load balancer? Please let us know if anyone can answer our questions or if someone has more experience already with deploying a Fabric network in production with clusters of peers, load balancers etc... Thanks a lot!

braduf (Sun, 05 Jan 2020 16:34:17 GMT):
Hi all, we are defining the infrastructure for our part of a production Fabric network. The cloud we need to use is AWS and we were thinking of creating a cluster of anchor peers and a cluster of internal peers, with every cluster having a load balancer. The load balancer for the anchor peers would be public and known by other orgs as the anchor peer IP to endorse txs initialized by other orgs. The load balancer for the internal cluster would be used by our own SDKs to endorse transactions coming from our clients. The network configurations of both clusters should still be set that direct communication between our peers is possible so the gossip keeps working. So the load balancers would only be for applications to use, but we have doubts if this setup makes sense because of the following questions we have: 1) Can the Fabric SDK be used with a load balancer in between the SDK app and the peers? Will the SDK be able to use gossip and discovery if it only knows the IP of the load balancer and not of the peers directly? 2) What about an autoscaling group for our peer clusters, how can we manage the time a newly started peer needs to synchronize its ledger? 3) Is a load balancer and an autoscaling group of peers a good ID or is it recommended to have a static set of peers and let the SDK manage the peers it sends endorsements to instead of a load balancer? Please let us know if anyone can answer our questions or if someone has more experience already with deploying a Fabric network in production with clusters of peers, load balancers etc... Thanks a lot!

yacovm (Sun, 05 Jan 2020 17:36:43 GMT):
Sadly discovery returns the information according to gossip... take a look at FAB-15297

braduf (Sun, 05 Jan 2020 19:17:59 GMT):
Ok, I think I understood, so if the SDK app goes through a load balancer and can not use gossip like that, it can also not discover other peers, from other orgs for example when endorsement by them is needed? Then my next question is if the Fabric SDK uses some kind of load balancing between the peers it knows already for consecutive endorsements or will it use the same peers everytime if they are up?

braduf (Sun, 05 Jan 2020 19:17:59 GMT):
Ok, I think I understood, so if the SDK app goes through a load balancer and can not use gossip like that, it can also not discover other peers, from other orgs for example when endorsement by them is needed? Then my next question is if the Fabric SDK uses some kind of load balancing between the peers it knows about for consecutive endorsements or will it use the same peers everytime if they are up?

braduf (Sun, 05 Jan 2020 19:17:59 GMT):
Ok, I think I understood, so if the SDK app goes through a load balancer and can not use gossip like that, it can also not discover other peers, from other orgs for example when endorsement by them is needed? Then my next question is if the Fabric SDK uses some kind of load balancing between the peers it knows about for consecutive endorsements or will it use the same peers everytime if they are up? Or how should we balance load between a set of peers?

braduf (Sun, 05 Jan 2020 19:17:59 GMT):
Ok,thank you, I think I understood: so if the SDK app goes through a load balancer and can not use gossip like that, it can also not discover other peers, from other orgs for example when endorsement by them is needed? Then my next question is if the Fabric SDK uses some kind of load balancing between the peers it knows about for consecutive endorsements or will it use the same peers everytime if they are up? Or how should we balance load between a set of peers?

yacovm (Sun, 05 Jan 2020 19:20:47 GMT):
I'm saying that you can't make discovery expose different information than what gossip uses. So if gossip doesn't go through the LB, then discovery can't expose this endpoint

yacovm (Sun, 05 Jan 2020 19:21:51 GMT):
> if the Fabric SDK uses some kind of load balancing between the peers it knows about for consecutive endorsements or will it use the same peers everytime if they are up? I don't know, it depends on the SDK. I think Go SDK randomly selects them according to discovery. I want to believe that other SDKs do that too, however I don't know

yacovm (Sun, 05 Jan 2020 19:22:13 GMT):
In general I don't think you need to load balance Fabric as it should load balance itself for you

yacovm (Sun, 05 Jan 2020 19:22:37 GMT):
TLDR - It's only harmful to do your own HA/LB in Fabric

braduf (Sun, 05 Jan 2020 19:24:37 GMT):
Ok, great, thanks a lot for your explications, that solves a lot of the doubts we were having!

yacovm (Sun, 05 Jan 2020 19:24:54 GMT):
np

emony2019 (Sun, 05 Jan 2020 23:11:38 GMT):
I have had similar issues using Ubuntu when I have 20+ peers

emony2019 (Sun, 05 Jan 2020 23:14:27 GMT):
I am not sure what the causes the problem. I created the blockchain network 7 times thinking that maybe it was a connection issue and was able to get the all the connections established after 6 attempts to start the blockchain network. I am not sure what the root cause of the problem is

emony2019 (Sun, 05 Jan 2020 23:48:14 GMT):
Good EVENING Hyperledger GURU's,

emony2019 (Sun, 05 Jan 2020 23:48:14 GMT):
Good EVENING Hyperledger GURU's, gCD, _ := stub.GetCreator() return shim.Error("GetCreator Data: " + string(gCD))

emony2019 (Sun, 05 Jan 2020 23:48:14 GMT):
Good EVENING Hyperledger GURU's, Below is the code I used to get and print the information regarding the peer that proposed the transaction. gCD, _ := stub.GetCreator() return shim.Error("GetCreator Data: " + string(gCD)) I am getting the error "Error: error endorsing chaincode: rpc error: code = Internal desc = grpc: error while marshaling: proto: field "protos.Response.Message" contains invalid UTF-8". Does anyone know how to print this information? Thank you in advance.

jinnyjinnyjinjin (Mon, 06 Jan 2020 02:17:35 GMT):
Hi, Does hyperledger have wallet function and sdk for that?

roclee (Mon, 06 Jan 2020 03:02:56 GMT):
Has joined the channel.

ZainabM (Mon, 06 Jan 2020 05:30:17 GMT):
shim.Error return error message. This error shows that the error message is a invalid string. If you just wants to print creator certificate in the logs. You can simply print using 'fmt.Printf("Get Creator's Identity: \n%s\n", string(gCD)).

geni (Mon, 06 Jan 2020 06:02:55 GMT):
Hi everyone I am getting this error: [2020-01-06 01:02:20.318] [ERROR] instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: chaincode registration failed: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/example_cc/go_projects/src/main.go:3:2: chaincode/input/src/github.com/example_cc/go_projects/src/vendor/Implementation/pro.go:1:1: expected 'package', found 'EOF' In my main file there is no issue and the package is already decalred

geni (Mon, 06 Jan 2020 06:02:55 GMT):
Hi everyone I am getting this error: [2020-01-06 01:02:20.318] [ERROR] instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: chaincode registration failed: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/example_cc/go_projects/src/main.go:3:2: chaincode/input/src/github.com/example_cc/go_projects/src/vendor/Implementation/pro.go:1:1: expected 'package', found 'EOF'

BrettLogan (Mon, 06 Jan 2020 06:06:28 GMT):
What is the content of `pro.go`

BrettLogan (Mon, 06 Jan 2020 06:06:47 GMT):
In your vendor directory?

BrettLogan (Mon, 06 Jan 2020 06:07:25 GMT):
Is this a dependency you meant to include, if not use go vendor to remove it

georges (Mon, 06 Jan 2020 08:41:23 GMT):
hello

geni (Mon, 06 Jan 2020 09:32:27 GMT):
hey @BrettLogan removed and got it solved

BirajenduSahu (Mon, 06 Jan 2020 09:35:57 GMT):
Has joined the channel.

BirajenduSahu (Mon, 06 Jan 2020 09:35:58 GMT):
Hi, I have just started hands on fabric, as looking for a POC of our our product. But I stuck up with the following error, 2020-01-02 09:08:12.473 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 003 Bootstrapping because no existing channels 2020-01-02 09:08:12.494 UTC [orderer.common.server] initializeServerConfig -> INFO 004 Starting orderer with TLS enabled 2020-01-02 09:08:12.496 UTC [orderer.common.server] configureClusterListener -> INFO 005 Cluster listener is not configured, defaulting to use the general listener on port 7050 2020-01-02 09:08:12.501 UTC [fsblkstorage] newBlockfileMgr -> INFO 006 Getting block information from block storage 2020-01-02 09:08:12.508 UTC [orderer.commmon.multichannel] checkResourcesOrPanic -> PANI 007 [channel system-channel] config requires unsupported orderer capabilities: Orderer capability V2_0 is required but not supported: Orderer capability V2_0 is required but not supported panic: [channel system-channel] config requires unsupported orderer capabilities: Orderer capability V2_0 is required but not supported: Orderer capability V2_0 is required but not supported goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000f5d90, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc000164258, 0x4, 0x1538999, 0xf, 0xc000264548, 0x2, 0x2, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x101 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...) /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 github.com/hyperledger/fabric/orderer/common/multichannel.checkResourcesOrPanic(0x16d9760, 0xc000281c80) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:58 +0x162 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).newLedgerResources(0xc000120000, 0xc00046fae0, 0xc00046fae0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:281 +0x36a github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc000120000, 0xc00024e030) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:160 +0x175 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000147a80, 0xc00015dd40, 0xc00021e880, 0x0, 0xc000401c20, 0x20e3980, 0xc000145950, 0x2, 0x2, 0xc000145960, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:659 +0x3f7 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc000394900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:177 +0xb5f github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20`

yacovm (Mon, 06 Jan 2020 10:24:52 GMT):
@BirajenduSahu you are using a v1.4 Fabric with a v2.0 `configtx.yaml`

rohand (Mon, 06 Jan 2020 12:43:31 GMT):
What do you prefer between cryptogen and fabric-ca-client tool for generation of crypto material?

georges (Mon, 06 Jan 2020 13:34:06 GMT):
hello

georges (Mon, 06 Jan 2020 13:34:18 GMT):
Could anyone help me compare corda and fabric?\

georges (Mon, 06 Jan 2020 13:34:42 GMT):
https://www.coindesk.com/blockchain-for-banks-startup-switches-from-hyperledger-to-r3s-corda

georges (Mon, 06 Jan 2020 13:34:49 GMT):
would that be a reason>?

georges (Mon, 06 Jan 2020 13:43:26 GMT):
@ahmetbilal

ahmetbilal (Mon, 06 Jan 2020 13:43:26 GMT):
Has joined the channel.

GabrieleOcyan (Mon, 06 Jan 2020 14:45:31 GMT):
Hi @georges , I have done quite some work on that so feel free to ping me on gabriele@ocyan.com and we can setup a 15 mins call on that. Hope to be helpful

emony2019 (Mon, 06 Jan 2020 18:40:15 GMT):
the problem lies in the variable gCD. go indicates it is a []byte and so does the library but when i run string(gCD) i get the error that it is not a proper UTF-8 byte

Baha-sk (Mon, 06 Jan 2020 18:59:51 GMT):
use %v and gCD as is (no string() scoping)

Baha-sk (Mon, 06 Jan 2020 18:59:51 GMT):
use %v and gCD as is (no string() scoping), change your return statement as follows: ```return fmt.Sprintf("Get Creator's Identity: '%v'", gCD)```

dan.gomez (Mon, 06 Jan 2020 19:37:16 GMT):
Hello All, I'm trying to adapt the commercial paper tutorial to use AWS components instead of using docker containers. Does anyone have any thoughts on what I am doing wrong? I have posted a more detailed question on stackoverflow. Thanks in advanced! https://stackoverflow.com/questions/59186379/errornetwork-no-suitable-peers-available-to-initialize-from-when-adapting-c

selvaraman (Tue, 07 Jan 2020 02:05:54 GMT):
sawtooth explorer

BirajenduSahu (Tue, 07 Jan 2020 02:48:48 GMT):
Yes, configtx.yaml has v2.0 , as I downloaded the latest sample

chamodilokuge (Tue, 07 Jan 2020 05:09:33 GMT):
Can enrollAdmin.js and registerUser.js from fabcar example be used for creating identity in production? Is it server side, if so is that way of creating identity is secure?

ZainabM (Tue, 07 Jan 2020 06:01:48 GMT):
if you want to return the value of gcd, then you don't have to convert it into string. It is enough to return as ' return shim.Response(gCD)', But if you just want to print it, then this 'fmt.Printf("Get Creator's Identity: \n%s\n", string(gCD))' should work.

nbasker (Tue, 07 Jan 2020 07:23:04 GMT):
Has joined the channel.

AbhijeetSamanta (Tue, 07 Jan 2020 08:00:59 GMT):
Hi All, I am stuck in one issue with connection profile. Let me tell what I am trying to do. I have created HL network on AWS EKS with on ca-root and 2 ca-client. I have 2 organisations which have 2 peer each. I am using the raft orderering sevice with 3 orderers. all the network running fine now I want to connect it with node applications API's for that I have created the connection profile, but it not connected I am getting issue as ``` ` `"2020-01-07T07:36:07.526Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ETIMEDOUT 10.100.81.135:7054], stack=Error: Calling enrollment endpoint failed with error [Error: connect ETIMEDOUT 10.100.81.135:7054] ```` anybody have any experience how to do it. I have tried all cased like loadbalance, clusterIP etc.

MohamadFazuan (Tue, 07 Jan 2020 09:21:36 GMT):
me too

MohamadFazuan (Tue, 07 Jan 2020 09:21:57 GMT):
can anyone help us? really appreciate it...

Rajatsharma (Tue, 07 Jan 2020 10:26:05 GMT):
Hi, Has anyone tried migrating CouchDb from normal setup to cluster. We don't set the variable `NODENAME`, now to run any node in a cluster I need that variable. I tried adding that variable and then re-initiating the containers , I'm getting the error `Database failed to load`. Can anyone suggest me a way to move from single couchDB node to a cluster

kulkarnikk (Tue, 07 Jan 2020 10:30:24 GMT):
dhonde

GabrieleOcyan (Tue, 07 Jan 2020 10:50:34 GMT):
@Rajatsharma I think we use it mononode at Ocyan, but I will check internally

GabrieleOcyan (Tue, 07 Jan 2020 10:50:52 GMT):
@marcello_romani_ocyan confirm?

Rajatsharma (Tue, 07 Jan 2020 10:51:55 GMT):
I want to run that in a cluster

marcello_romani_ocyan (Tue, 07 Jan 2020 10:53:23 GMT):
In our deployment every peer has a single couchdb instance

pritam_01 (Tue, 07 Jan 2020 11:12:52 GMT):
Has joined the channel.

pritam_01 (Tue, 07 Jan 2020 11:13:35 GMT):
Failed to register user + AdminV2 + : Error: Calling register endpoint failed with error [Error: self signed certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34) at TLSSocket.emit (events.js:210:5) at TLSSocket._finishInit (_tls_wrap.js:794:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) { code: 'DEPTH_ZERO_SELF_SIGNED_CERT' }] I am getting this error while registering new user using registred admin

BirajenduSahu (Tue, 07 Jan 2020 11:42:00 GMT):
after changing all capabilities to 1.4.4 also issue remain same

BirajenduSahu (Tue, 07 Jan 2020 11:42:04 GMT):
Capabilities: # Channel capabilities apply to both the orderers and the peers and must be # supported by both. # Set the value of the capability to true to require it. # Note that setting a later Channel version capability to true will also # implicitly set prior Channel version capabilities to true. There is no need # to set each version capability to true (prior version capabilities remain # in this sample only to provide the list of valid values). Channel: &ChannelCapabilities # V1.4.3 for Channel is a catchall flag for behavior which has been # determined to be desired for all orderers and peers running at the v1.4.3 # level, but which would be incompatible with orderers and peers from # prior releases. # Prior to enabling V1.4.3 channel capabilities, ensure that all # orderers and peers on a channel are at v1.4.3 or later. V1_4_4: true # V1.3 for Channel enables the new non-backwards compatible # features and fixes of fabric v1.3 V1_3: false # V1.1 for Channel enables the new non-backwards compatible # features and fixes of fabric v1.1 V1_1: false # Orderer capabilities apply only to the orderers, and may be safely # used with prior release peers. # Set the value of the capability to true to require it. # Note that setting a later Orderer version capability to true will also # implicitly set prior Orderer version capabilities to true. There is no need # to set each version capability to true (prior version capabilities remain # in this sample only to provide the list of valid values). Orderer: &OrdererCapabilities # V1.4.2 for Orderer is a catchall flag for behavior which has been # determined to be desired for all orderers running at the v1.4.2 # level, but which would be incompatible with orderers from prior releases. # Prior to enabling V1.4.2 orderer capabilities, ensure that all # orderers on a channel are at v1.4.2 or later. V1_4_4: true # V1.1 for Orderer enables the new non-backwards compatible # features and fixes of fabric v1.1 V1_1: false # Application capabilities apply only to the peer network, and may be safely # used with prior release orderers. # Set the value of the capability to true to require it. # Note that setting a later Application version capability to true will also # implicitly set prior Application version capabilities to true. There is no need # to set each version capability to true (prior version capabilities remain # in this sample only to provide the list of valid values). Application: &ApplicationCapabilities # V1.4.2 for Application enables the new non-backwards compatible # features and fixes of fabric v1.4.2 V1_4_4: true

ahmad-raza (Tue, 07 Jan 2020 12:21:31 GMT):
Hi all Any one can help ?? Raft based Ordering showing error in logs

ahmad-raza (Tue, 07 Jan 2020 12:21:47 GMT):

Screenshot from 2020-01-07 17-21-23.png

emony2019 (Tue, 07 Jan 2020 12:55:16 GMT):
Thank you. I realized this data wont help me.

Ayyalusamy (Tue, 07 Jan 2020 13:24:58 GMT):
Hi All, We are trying to design a Hyperledger Fabric application where we need to provide login for 10M Users. Can we register, entroll and manage 10M Users using Fabric CA? I need your suggestions. Thanks in Advance

jordy207 (Tue, 07 Jan 2020 13:28:49 GMT):
Has joined the channel.

jordy207 (Tue, 07 Jan 2020 13:28:50 GMT):
Hi, we have a question regarding Shim. We started to unit test our chaincode, however we noticed that in our chaincode we were using the old import for shim (github.com/hyperledger/fabric/core/chaincode/shim). So we changed this to the new link (github.com/hyperledger/fabric-chaincode-go/shim). Changing this made it so we can run 'go test' after using 'go get' to get shim. However, now our chaincode no longer works on the network because it says it can't locate the dependency in our $GOPATH within the CLI. We've tried numerous things to fix the issue without succes. Any here know how to fix this issue? Jordy

awjh (Tue, 07 Jan 2020 13:43:19 GMT):
Is this within a fabric docker image of some sort? The `github.com/hyperledger/fabric-chaincode-go/shim` package is not within those so you need to vendor the shim for use in those

jordy207 (Tue, 07 Jan 2020 14:24:55 GMT):
Yes it is within a docker image. We will look into how to vendor this. Many thanks!!

erwinvanthiel (Tue, 07 Jan 2020 15:31:13 GMT):
Has joined the channel.

erwinvanthiel (Tue, 07 Jan 2020 15:31:14 GMT):
Hi all, I am trying to run a fabric network on two host machines using docker swarm, 1 machine hosts the orderer and one organisation containing two peers and a ca. The other machine hosts another organisation consisting of two peers and a ca. When doing a chaincode invoke or a query via cli bash(on any of the 2 host machines) we dont run into any problems and the results become visible in the database(couchdb). When we are using a Node SDK script which was based on the one in fabcar (enrollAdmin, registerUser and an invoke) however, we get the error which is displayed below

erwinvanthiel (Tue, 07 Jan 2020 15:36:01 GMT):
Hi all, I am trying to run a fabric network on two host machines using docker swarm, 1 machine hosts the orderer and one organisation containing two peers and a ca. The other machine hosts another organisation consisting of two peers and a ca. When doing a chaincode invoke or a query via cli bash(on any of the 2 host machines) we dont run into any problems and the results become visible in the database(couchdb). When we are using a Node SDK script which was based on the one in fabcar (enrollAdmin, registerUser and an invoke) however, we get the error which is displayed below. The node application works fine when hosting all containers on one machine. We have tried turning both asLocalHost and discoveryEnabled on and off. The SDK appears to be unable to connect to any peer, does anybody happen to have an idea why this is not working?

erwinvanthiel (Tue, 07 Jan 2020 15:36:15 GMT):

error.png

Taaanos (Tue, 07 Jan 2020 16:12:21 GMT):
I fetch the the channel configuratetion block in my peer and then I try to join this channel. I get the following error though

Taaanos (Tue, 07 Jan 2020 16:12:21 GMT):
I fetch the the channel configuration block in my peer and then I try to join this channel. I get the following error though `Error: proposal failed (err: bad proposal response 500: access denied for [JoinChain][allarewelcome]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]])`

Taaanos (Tue, 07 Jan 2020 16:12:21 GMT):
I fetch the the channel configuration block in my peer and then I try to join this channel. I get the following error though `Error: proposal failed (err: bad proposal response 500: access denied for [JoinChain][allarewelcome]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]]) `

icarrascol (Tue, 07 Jan 2020 20:59:45 GMT):
why is the chaincode response on error not common to shim.error response? { Error: Endorsement has failed at DiscoveryEndorsementHandler._endorse (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/impl/DiscoveryEndorsementHandler.js:184:19) at endorsements: [ { Error: failed to execute transaction be3e250356d25114b0fcd9a22e53e198a53268ec45afc8d958daac6c5ce4a595: error sending: timeout expired while executing transaction at self._endorserClient.processProposal (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:845:24) status: 500, payload: , peer: [Object], isProposalResponse: true },

icarrascol (Tue, 07 Jan 2020 20:59:45 GMT):
why is the chaincode response on error not common to shim.error response? sometimes i get this error that i cant handle because it doesnt follow a proper structure. { Error: Endorsement has failed at DiscoveryEndorsementHandler._endorse (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/impl/DiscoveryEndorsementHandler.js:184:19) at endorsements: [ { Error: failed to execute transaction be3e250356d25114b0fcd9a22e53e198a53268ec45afc8d958daac6c5ce4a595: error sending: timeout expired while executing transaction at self._endorserClient.processProposal (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:845:24) status: 500, payload: , peer: [Object], isProposalResponse: true },

icarrascol (Tue, 07 Jan 2020 20:59:45 GMT):
why is the chaincode response on error not common to shim.error response? sometimes i get this error that i cant handle because it doesnt follow a proper structure. this is using node sdk. { Error: Endorsement has failed at DiscoveryEndorsementHandler._endorse (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/impl/DiscoveryEndorsementHandler.js:184:19) at endorsements: [ { Error: failed to execute transaction be3e250356d25114b0fcd9a22e53e198a53268ec45afc8d958daac6c5ce4a595: error sending: timeout expired while executing transaction at self._endorserClient.processProposal (/home/italo/Documentos/survey/api_chain_survey/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/home/italo/Documentos/survey/api_chain_survey/node_modules/grpc/src/client_interceptors.js:845:24) status: 500, payload: , peer: [Object], isProposalResponse: true },

icarrascol (Tue, 07 Jan 2020 20:59:45 GMT):
why is the chaincode response on error not common to shim.error response? sometimes i get this error that i cant handle because it doesnt follow a proper structure. this is using node sdk. { Error: Endorsement has failed at DiscoveryEndorsementHandler._endorse (/home/user/Documentos/survey/api/node_modules/fabric-client/lib/impl/DiscoveryEndorsementHandler.js:184:19) at endorsements: [ { Error: failed to execute transaction be3e250356d25114b0fcd9a22e53e198a53268ec45afc8d958daac6c5ce4a595: error sending: timeout expired while executing transaction at self._endorserClient.processProposal (/home/user/Documentos/survey/api/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/user/Documentos/survey/api/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/user/Documentos/survey/api/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/user/Documentos/survey/api/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/home/user/Documentos/survey/api/node_modules/grpc/src/client_interceptors.js:845:24) status: 500, payload: , peer: [Object], isProposalResponse: true },

braduf (Tue, 07 Jan 2020 21:53:28 GMT):
Hi all, we are working on our infrastructure for Fabric and we were wondering if it makes sense to have some autoscaling services for peers or if it is advised to have a static set of peers? The difficulties we are thinking about with autoscaling of peers are 1) the need to join the channel, install the chaincode, obtain a certificate and create its MSP automatically, 2) in the case of anchor peers, a network configuration should be done automatically too and 3) the time it takes for a peer to synchronize and to be able to endorse new transactions Allthough both 1 and 2 are not impossible and can be scripted, we would like to hear your experiences and recommendations before starting.

braduf (Tue, 07 Jan 2020 21:53:28 GMT):
Hi all, we are working on our infrastructure for Fabric and we were wondering if it makes sense to have some autoscaling services for peers or if it is advised to have a static set of peers? The difficulties we are thinking about with autoscaling of peers are 1) the need to join the channel, install the chaincode, obtain a certificate and create its MSP automatically, 2) in the case of anchor peers, a network configuration should be done automatically too and 3) the time it takes for a peer to synchronize and to be able to endorse new transactions Allthough both 1 and 2 are not impossible and can be scripted, we would like to hear your experiences and recommendations before starting. Thanks in advance!

braduf (Tue, 07 Jan 2020 21:53:28 GMT):
Hi all, we are working on our infrastructure for Fabric and we were wondering if it makes sense to have some autoscaling services for our peers or if it is advised to have a static set of peers? The difficulties we are thinking about with autoscaling of peers are 1) the need to join the channel, install the chaincode, obtain a certificate and create its MSP automatically, 2) in the case of anchor peers, a network configuration should be done automatically too and 3) the time it takes for a peer to synchronize and to be able to endorse new transactions Allthough both 1 and 2 are not impossible and can be scripted, we would like to hear your experiences and recommendations before starting. Thanks in advance!

yacovm (Tue, 07 Jan 2020 22:04:49 GMT):
@braduf don't forget when you add a peer you also need to wait a few days for it to sync :)

ZainabM (Wed, 08 Jan 2020 05:07:12 GMT):
Latest version of fabric supports the older import of shim. Up to now, new shim package is not supported. For your unit test you can use go modules.

ZainabM (Wed, 08 Jan 2020 05:14:10 GMT):
You can access the error message by using below statement: err.endorsements[0].message

ZainabM (Wed, 08 Jan 2020 05:14:10 GMT):
You can access the error message by using below statement: err.endorsements[0].message where 'err' thrown error object

ZainabM (Wed, 08 Jan 2020 05:14:10 GMT):
You can always read the error message using below statement: err.message You can access the detailed endorsements error message by using below statement: err.endorsements[0].message where 'err' is a thrown error object.

smtter (Wed, 08 Jan 2020 05:39:36 GMT):
Is it advised to run

smtter (Wed, 08 Jan 2020 05:39:59 GMT):
Is it advised to run raft in development (via docker-compose)?

Paradox-AT (Wed, 08 Jan 2020 07:55:51 GMT):
Hey Guys, I am trying to connect to a external network but when I am trying to connect to the orderer to fetch the genesis block then I am getting this error: ``` Error: failed to create deliver client: orderer client failed to connect to orderer0.transplace.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer0.transplace.com on 127.0.0.11:53: no such host" ``` There is nothing in the peer logs. Please help PS: The network is on a differernt machine.

Paradox-AT (Wed, 08 Jan 2020 07:55:51 GMT):
Hey Guys, I am trying to connect to a external network but when I am trying to connect to the orderer to fetch the genesis block then I am getting this error: ``` Error: failed to create deliver client: orderer client failed to connect to orderer0.transplace.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer0.transplace.com on 127.0.0.11:53: no such host" ``` I have added the address for orderer0.transplace.com:7050 in the hosts file and there is nothing in the peer logs. Please help PS: The network is on a differernt machine.

jordy207 (Wed, 08 Jan 2020 09:02:37 GMT):
@ZainabM We are running v1.4.4, do you mean this by latest version or do you mean v2

bertschneider (Wed, 08 Jan 2020 09:39:06 GMT):
Is there a known bug in the `approveformyorg` function? When I approve some chaincode the transaction seems to work fine, no errors in the peer or orderer logs, but the chaincode is still shown as not approved in `checkcommitreadiness`. Does someone has an idea why that could be the case? BTW the peer receives a new transaction from the orderer containing a `chaincode_proposal_payload` but I don't know how that should look like.

nSix (Wed, 08 Jan 2020 10:10:18 GMT):
Has joined the channel.

Esegarra (Wed, 08 Jan 2020 10:13:38 GMT):
@bertschneider I have the same error. I'm not able to commit the chaincode after approve it for every org. This is the message: `Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (billeteroMSP)`

Esegarra (Wed, 08 Jan 2020 10:13:38 GMT):
@bertschneider I have the same error. I'm not able to commit the chaincode after approve it for every org. This is the message: `Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (Org1MSP)`

bertschneider (Wed, 08 Jan 2020 10:20:53 GMT):
well, at least I am not alone :-)

ZainabM (Wed, 08 Jan 2020 10:23:22 GMT):
Yeah I mean .1.4.4. till this version fabric has old shim support only.

bertschneider (Wed, 08 Jan 2020 10:24:06 GMT):
The logs I see:`2020-01-08 10:21:19.797 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [36bbea96609b4b632b7b8603b1a276960cfe50759fd3ffff840810431eb7654e] committed with status (VALID) at peer0.org1.example.com:7051 2020-01-08 10:21:21.892 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [c76f1f9061003daea92be218965b5d57ebb8e79933cb7a384341a57b0c0d7e46] committed with status (VALID) at peer0.org2.example.com:9051 2020-01-08 10:21:24.019 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [05fc60b2e65b88e48e83785422e9c9b103bb99b91d83cd2beadc2302f75d8a06] committed with status (VALID) at peer0.org3.example.com:11051 Chaincode definition for chaincode 'pdc', version '1', sequence '1' on channel 'privatedatachannel' approval status by org: Org1MSP: false Org2MSP: false Org3MSP: false`

bertschneider (Wed, 08 Jan 2020 10:24:06 GMT):
The logs I see: ``` ```

bertschneider (Wed, 08 Jan 2020 10:24:06 GMT):
The logs I see: ``` 2020-01-08 10:21:19.797 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [36bbea96609b4b632b7b8603b1a276960cfe50759fd3ffff840810431eb7654e] committed with status (VALID) at peer0.org1.example.com:7051 2020-01-08 10:21:21.892 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [c76f1f9061003daea92be218965b5d57ebb8e79933cb7a384341a57b0c0d7e46] committed with status (VALID) at peer0.org2.example.com:9051 2020-01-08 10:21:24.019 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [05fc60b2e65b88e48e83785422e9c9b103bb99b91d83cd2beadc2302f75d8a06] committed with status (VALID) at peer0.org3.example.com:11051 Chaincode definition for chaincode 'pdc', version '1', sequence '1' on channel 'privatedatachannel' approval status by org: Org1MSP: false Org2MSP: false Org3MSP: false ```

Esegarra (Wed, 08 Jan 2020 10:31:15 GMT):
I see the same. Furthermore, if I try to approve again I get the following message: `2020-01-08 08:42:18.657 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [cb432c2558d1c815583c37e50701f49cb4490bf76ce4ac7d3b98b7726198c82c] committed with status (ENDORSEMENT_POLICY_FAILURE) at Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`

Esegarra (Wed, 08 Jan 2020 10:31:15 GMT):
I see the same. Furthermore, if I try to approve again I get the following message: ``` 2020-01-08 08:42:18.657 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [cb432c2558d1c815583c37e50701f49cb4490bf76ce4ac7d3b98b7726198c82c] committed with status (ENDORSEMENT_POLICY_FAILURE) at Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ```

bertschneider (Wed, 08 Jan 2020 10:34:00 GMT):
Yes, same here

abityildiz (Wed, 08 Jan 2020 11:02:42 GMT):
I'm getting the same error

abityildiz (Wed, 08 Jan 2020 11:03:23 GMT):
i am test the fabric 2.0 beta.i have setup multi organization.3 vm machine

dragan1 (Wed, 08 Jan 2020 11:16:29 GMT):
Has joined the channel.

dragan1 (Wed, 08 Jan 2020 11:16:31 GMT):
Hi all does anyone can help me with the following issue on Ubuntu : the command `./byfn.sh -m up` returns at the end the following error ``` ```

mastersingh24 (Wed, 08 Jan 2020 11:23:35 GMT):
can't see the rror message

dragan1 (Wed, 08 Jan 2020 11:42:46 GMT):
Hi all does anyone can help me with the following issue on Ubuntu : the command `./byfn.sh -m up` returns at the end the following error ``` Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

pouya (Wed, 08 Jan 2020 11:45:19 GMT):
try `./byfn.sh down` first and then `./byfn.sh up`

dragan1 (Wed, 08 Jan 2020 11:45:54 GMT):
ok thanks

dragan1 (Wed, 08 Jan 2020 11:51:05 GMT):
``` Error: endorsement failure during query. response: status:500 message:"failed to execute transaction c8bf08e95bf6a8466dbe1a1f960e7ead9ead39944d8133ac2f5fc6efb47d0b2f: [channel mychannel] could not launch chaincode mycc:1.0: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 \"/opt/go/pkg/tool/linux_amd64/link: signal: killed\n\"" !!!!!!!!!!!!!!! Query result on peer1.org2 is INVALID !!!!!!!!!!!!!!!! ================== ERROR !!! FAILED to execute End-2-End Scenario ================== ```

dragan1 (Wed, 08 Jan 2020 11:52:18 GMT):
``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ca5a5617c8d1 dev-peer0.org1.example.com-mycc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9 "chaincode -peer.add…" 4 minutes ago Up 4 minutes dev-peer0.org1.example.com-mycc-1.0 06f781069332 dev-peer0.org2.example.com-mycc-1.0-15b571b3ce849066b7ec74497da3b27e54e0df1345daff3951b94245ce09c42b "chaincode -peer.add…" 4 minutes ago Up 4 minutes dev-peer0.org2.example.com-mycc-1.0 2945ae1942b4 hyperledger/fabric-tools:latest "/bin/bash" 5 minutes ago Up 5 minutes cli 9934cda7430a hyperledger/fabric-peer:latest "peer node start" 5 minutes ago Up 5 minutes 0.0.0.0:10051->10051/tcp peer1.org2.example.com b6d2097d1d9a hyperledger/fabric-peer:latest "peer node start" 5 minutes ago Up 5 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com b30b7497b3d4 hyperledger/fabric-peer:latest "peer node start" 5 minutes ago Up 5 minutes 0.0.0.0:9051->9051/tcp peer0.org2.example.com 9111a0d2d3ac hyperledger/fabric-orderer:latest "orderer" 5 minutes ago Up 5 minutes 0.0.0.0:7050->7050/tcp orderer.example.com 0a43af761275 hyperledger/fabric-peer:latest "peer node start" 5 minutes ago Up 5 minutes 0.0.0.0:8051->8051/tcp peer1.org1.example.com dragan@dragan-VirtualBox:~/fabric-samples/first-network$ ```

dragan1 (Wed, 08 Jan 2020 11:53:08 GMT):
let me do the same again

dragan1 (Wed, 08 Jan 2020 12:00:25 GMT):
ok it works ! thanks

saanvijay (Wed, 08 Jan 2020 12:11:57 GMT):
Did you solve this issue ?

LFrvargas (Wed, 08 Jan 2020 15:21:08 GMT):
Has joined the channel.

LFrvargas (Wed, 08 Jan 2020 15:21:09 GMT):
I am trying to start the basic-network in the samples by running the start.sh script...after a few seconds it gets me back an error:

LFrvargas (Wed, 08 Jan 2020 15:21:34 GMT):
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx 2020-01-08 14:52:15.455 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Org1MSP but was in the read set

LFrvargas (Wed, 08 Jan 2020 15:21:49 GMT):
any ideas?

SanjayDhonde (Wed, 08 Jan 2020 16:01:48 GMT):
Thanks CT123 for your reply. Sorry, I asked wrong question. Actually my question was regarding smart contract instantiation and not about deployment. I am facing issue in instantiating smart contract with ContractInterface using java sdk. However I have no issue with smartcontract with ChaincodeBase. Also, no issues with command line. Any idea?

SanjayDhonde (Wed, 08 Jan 2020 16:04:59 GMT):
I see there are two methods of writing smart contracts in Java 1)By extending ChaincodeBase 2)By implementing ContractInterface interface. Whats difference between them? Which one should be used?

icarrascol (Wed, 08 Jan 2020 19:16:14 GMT):
@ZainabM how do you access the error field? , endorsement[0].message is a string with an object like this "message": "transaction returned with failure: {\"method\":\"storePoll\",\"response\":\"Error: This poll already exists: adbebe0f71896fc0a91a4bad2cb7695bb9b189d87ae4765113fdf93530a7d039\"}",

LFrvargas (Wed, 08 Jan 2020 22:48:04 GMT):
So I had the wrong version of the fabric samples, as per https://stackoverflow.com/questions/59435120/problem-running-hyperledger-fabric-basic-network-error-validating-readset. Executing git checkout v1.4.4 fixed the issue!

ibmstiggr (Thu, 09 Jan 2020 07:57:49 GMT):
Hi there, I am running a Local Fabric instance through VSCode with chaincode written in nodejs. However, when subitting data I get a Reference Error saying "ctx is not defined". I have been looking through the nodejs fabric modules, index.js, package.js and so on, but I am at odds with what is causing this error. I also have a function with an iterator throwing a Type Error saying "iterator.next is not a function". My suspicion is that there is a problem with my dependencies, though I am not sure why... Has anyone else encountered similar issues, or are at disposition to give me a qlue that I may have overlooked something? cheers

sergeikus (Thu, 09 Jan 2020 09:05:40 GMT):
Has joined the channel.

sergeikus (Thu, 09 Jan 2020 09:05:51 GMT):
LSCC

RamanM (Thu, 09 Jan 2020 09:08:48 GMT):
if you use fabric-contract-api, maybe you forgot write ctx in your methods, like `method(ctx){...}`. But it is difficult to say something without code example see tutorial here https://fabric-shim.github.io/master/tutorial-using-contractinterface.html

BirajenduSahu (Thu, 09 Jan 2020 09:08:54 GMT):
not yet

Retonator (Thu, 09 Jan 2020 09:14:48 GMT):
Has joined the channel.

Retonator (Thu, 09 Jan 2020 09:14:49 GMT):
I have a small question concerning AnchorsPeers It seems that when I create an new channel and the Config transaction contains an AnchorPeers value this value is not copied in the initial version of the channel configuration. Then to add an achor peer I need to create a seperate transaction containing the anchorpeer. Can anyone confirm this behaviour and is there some reasoning behind not including the AnchorPeers value in version 0 of the config?

Retonator (Thu, 09 Jan 2020 09:16:39 GMT):
ps: I don not use configtxgen to generate transactions, I generate them myself but I validated that the config included the anchorpeers

vanitas92 (Thu, 09 Jan 2020 09:52:02 GMT):
EXTERNALBUILDERS

Retonator (Thu, 09 Jan 2020 10:02:33 GMT):
I looks like only the MSP value of the org is copied to the new channel is that correct?

RamanM (Thu, 09 Jan 2020 12:04:41 GMT):
Hello, everybody. I got in stuck with revokation user process. After revoking user I successfully got CRL from approciate CA and populate it to all my peers(/etc/hyperledger/msp/peer/crls) and orderer(/etc/hyperledger/msp/{ORG}/msp/crls). Restarted my peers and orderers. But after all I can perform query and invoke operations to ledger with revoked certificate. Any help will be approciated

ibmstiggr (Thu, 09 Jan 2020 13:29:21 GMT):
thanks. I got a bit further in the debuggin, and found an error in the fabric-shim module. error code: "MODULE_NOT_FOUND" giving: "Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory: node-v79-darwin-x64-unknown Found: [node-v57-darwin-x64-unknown, node-v64-darwin-x64-unknown]"

ibmstiggr (Thu, 09 Jan 2020 13:29:40 GMT):
something you've encountered before?

ibmstiggr (Thu, 09 Jan 2020 13:29:59 GMT):
I am using node version as described in the prerequisites in the hyperledger documentation

ibmstiggr (Thu, 09 Jan 2020 13:31:01 GMT):
node 10.15.3 , that is

ibmstiggr (Thu, 09 Jan 2020 13:31:44 GMT):
node 10.15.3 , that is . I have also tried 8.9.4

ornit17 (Thu, 09 Jan 2020 18:57:46 GMT):
Has joined the channel.

ornit17 (Thu, 09 Jan 2020 18:57:48 GMT):
Hi, if anyone could help me with a quick question would be great!.. I am pulling a block trough Java Client but all content is in Java Array Byte. (Everything) even the hash information... (diferent when i pull from a node.js). When i try to decode the byte to string ( i tried allot types of encoding).. and always the hash output is very diferent than it should be... How could i pull the block with Java client in a readable way? Any help please?

Silona (Thu, 09 Jan 2020 20:17:47 GMT):
Last chance! The Linux Foundation worked with Hyperledger Fabric Developer subject matter expert volunteers to identify the core domains and competencies for the Certified Hyperledger Fabric Developer (CHFD) exam, scheduled to launch in March 2020. Are you interested in participating in the Beta and receiving an early peek? The CHFD Beta is FREE for the first 100 who take the exam. Complete the CHFD Beta Sign-up Form by January 15, 2020 for your chance. If you pass you will be CHFD Certified!

smithbk (Thu, 09 Jan 2020 20:24:02 GMT):
Has left the channel.

Rajatsharma (Fri, 10 Jan 2020 04:58:45 GMT):
When I fetcha block using `peer channel fetch` and convert that to JSON using configtxlator. I get metadata in the form ``` { "metadata": [ "CgoKABIGCgQIsZweEoUHCroGCp0GCgpPcmRlcmVyTVNQEo4GLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNFekNDQWJtZ0F3SUJBZ0lRQ0RzVlhEWmJEUjcvMFliV0YxeXpMREFLQmdncWhrak9QUVFEQWpCdE1Rc3cKQ1FZRFZRUUdFd0pWVXpFVE1CRUdBMVVFQ0JNS1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRUJ4TU5VMkZ1SUVaeQpZVzVqYVhOamJ6RVdNQlFHQTFVRUNoTU5jV0ZrYkhSc1lXSnpMbU52YlRFWk1CY0dBMVVFQXhNUVkyRXVjV0ZrCmJIUnNZV0p6TG1OdmJUQWVGdzB4T1RBMk1Ua3hNalExTURCYUZ3MHlPVEEyTVRZeE1qUTFNREJhTUZzeEN6QUoKQmdOVkJBWVRBbFZUTVJNd0VRWURWUVFJRXdwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSEV3MVRZVzRnUm5KaApibU5wYzJOdk1SOHdIUVlEVlFRREV4WnZjbVJsY21WeU1pNXhZV1JzZEd4aFluTXVZMjl0TUZrd0V3WUhLb1pJCnpqMENBUVlJS29aSXpqMERBUWNEUWdBRUZNeUE1cnpzelFCZEwvOXcyUXZBdUpGR0FYM1M0eCtQVDFjemtCWVgKOEU1MGhTZEtyRFBSZXBjZjVFTlFQZGc4RlE2VjBwV25vNnNucjJrQ2craTlJYU5OTUVzd0RnWURWUjBQQVFILwpCQVFEQWdlQU1Bd0dBMVVkRXdFQi93UUNNQUF3S3dZRFZSMGpCQ1F3SW9BZ0RvS1hxZWJNVlYweHR6S25yVE1iCmpxVVAxR1ZlVit5TWgyNFhBM1Q4Mzlnd0NnWUlLb1pJemowRUF3SURTQUF3UlFJaEFKQ0x4RWd5ZnZYMmZYcTAKMHVTbndGVExOTWFSUHNldlZpYjJCdm5tb3lkVEFpQW00dnJJSHcwSDlOenZaMkMySGZwRVFNOGlzNjY3UEdobAo4Sm5QbjhBVFZnPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQoSGLm/5UKDsnFtVxCUcQ3Mn8Ef0Iv6f7BBKRJGMEQCICPOenm5zsBJ7AwEenJXj05QrBa1D3YGbTwnsEVdqheAAiA9pDd9qcMjipgr/WzlFE4H6COl0RzVZIHvAcJeFVwkYA==", "", "CwsLCw==", "CgQIsZwe" ] } ``` How can I get this in readable form

geni (Fri, 10 Jan 2020 05:00:05 GMT):
Hey, i am interested. What to do?

Rajatsharma (Fri, 10 Jan 2020 05:08:26 GMT):
I want to fetch a transaction in readable form using CLI. So that I can verify, by what code it got committed.

Whatzhub (Fri, 10 Jan 2020 05:58:43 GMT):
Has joined the channel.

Whatzhub (Fri, 10 Jan 2020 05:58:43 GMT):
Hello everyone :)

biligunb (Fri, 10 Jan 2020 06:10:57 GMT):
that really just Docker issue. specifically Docker Swarm related?

sbkrish (Fri, 10 Jan 2020 08:12:33 GMT):
Has joined the channel.

ptelles (Fri, 10 Jan 2020 11:42:22 GMT):
Has joined the channel.

ptelles (Fri, 10 Jan 2020 11:42:23 GMT):
Hi everyone, In the LFS272 training, how can i use 'discover peers' command? To test, i have a single organization with 2 peers, where peer1 is the anchor peer. When i execute the command, a list with one peer (the server argument reference) returns without the other peer.

Esegarra (Fri, 10 Jan 2020 13:44:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bw9WxK8YahbchuccW) Hello! I’m still testing with the Fabric’s version 2.0 beta. I’m still stuck in the chaincode approval in the network. I make a change in the command to approve, I have remove the signature-policiy. My old command: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME \ --name testchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 \ --signature-policy "AND ('billeteroMSP.peer','negocioMSP.peer')" ``` My new command: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME \ --name testchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 ``` Doing that seems that I have achieved both orgs approves the chaincode: ``` bash-5.0# peer lifecycle chaincode checkcommitreadiness -o orderer0-fabric-net-dev:7050 --channelID fabricdevchannel --name testchaincode --version 1.0 Chaincode definition for chaincode 'testchaincode', version '1.0', sequence '1' on channel 'fabricdevchannel' approval status by org: Org1MSP: true Org2MSP: true ``` However, I’m still not able to commit the chaincode: ``` 2020-01-10 13:12:43.190 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [2e11fa747034e833b316a2326699825d2b9e68caa0f990a3c208626fd3d6abe9] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0-negocio-fabric-net-dev:7051 2020-01-10 13:12:43.191 UTC [chaincodeCmd] ClientWait -> INFO 002 txid [2e11fa747034e833b316a2326699825d2b9e68caa0f990a3c208626fd3d6abe9] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0-billetero-fabric-net-dev:7051 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ``` Any advice? Thanks!

Esegarra (Fri, 10 Jan 2020 13:44:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Bw9WxK8YahbchuccW) Hello! I’m still testing with the Fabric’s version 2.0 beta. I’m still stuck in the chaincode approval in the network. I make a change in the command to approve, I have remove the signature-policiy. My old command: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME \ --name testchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 \ --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` My new command: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME \ --name testchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 ``` Doing that seems that I have achieved both orgs approves the chaincode: ``` bash-5.0# peer lifecycle chaincode checkcommitreadiness -o orderer0-fabric-net-dev:7050 --channelID fabricdevchannel --name testchaincode --version 1.0 Chaincode definition for chaincode 'testchaincode', version '1.0', sequence '1' on channel 'fabricdevchannel' approval status by org: Org1MSP: true Org2MSP: true ``` However, I’m still not able to commit the chaincode: ``` 2020-01-10 13:12:43.190 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [2e11fa747034e833b316a2326699825d2b9e68caa0f990a3c208626fd3d6abe9] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0-org1-fabric-net-dev:7051 2020-01-10 13:12:43.191 UTC [chaincodeCmd] ClientWait -> INFO 002 txid [2e11fa747034e833b316a2326699825d2b9e68caa0f990a3c208626fd3d6abe9] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0-org2-fabric-net-dev:7051 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ``` Any advice? Thanks!

palra (Fri, 10 Jan 2020 14:31:22 GMT):
Hi there! Quick question : is the `peer node start` stateless or stateful? I'm trying to setup a network on a Kubernetes cluster, is there any folder other than the crypto stuff that I should keep accross executions?

palra (Fri, 10 Jan 2020 14:31:22 GMT):
Hi there! Quick question : is the `peer` command stateless or stateful? I'm trying to setup a network on a Kubernetes cluster, is there any folder other than the crypto stuff that I should keep accross executions?

Rajatsharma (Fri, 10 Jan 2020 17:15:44 GMT):
Can I use the fabric-SDK and the crypto-config directory to send transactions. I don't want to send a request to ca and get user registered. I was intending to use the certificates generated by crypto-config. To start the network.

Retonator (Fri, 10 Jan 2020 19:32:59 GMT):
It is base64 , most likely a base64 encoded protobuf. So if you know the proto type then you could base64 decode it and then unmarshal into a proto. I checked it for you and it is a base64 encoded protobuf.

Rajatsharma (Fri, 10 Jan 2020 19:41:25 GMT):
Hi everyone, I am experiencing a very different issue in fabric. I had set up a couchDB cluster, because in my case request were sent to any peer using load balance. So even if I was waiting for the eventhub in one peer and as soon as one transaction got committed, I was checking in the other peer I was not getting that data. So we thought of a setup where we will run couchDB in a cluster. But now we're getting MVCC on a regular basis. And that too in just one peer. This seems to be a really weird state. Could you help me out with this.

ZainabM (Sat, 11 Jan 2020 04:06:15 GMT):
I am also interested ..Where to register?

Rajatsharma (Sat, 11 Jan 2020 10:02:46 GMT):
@muralisr I had a very basic question. Will it be okay if the same block is getting committed with 0 code in one peer and 11 in one peer. I've gone through the code and my case, everything seems logical. But i want to know is this conceptually correct ?

muralisr (Sat, 11 Jan 2020 14:15:16 GMT):
@Rajatsharma As you know the word "commit" has very specific meaning..I'm not sure you intended to use it. I understand the question as - proposal sent to two peers who produce different results ? if thats accurate, it would interesting why that would be so. If the biz case demands that that's fine, but the client app will have to chose one of them to be committed. (in otherwords `same block is getting committed with 0 code in one peer and 11 in one peer.` wouldnt be possible)....

BrettLogan (Sat, 11 Jan 2020 17:48:50 GMT):
@geni @ZainabM https://training.linuxfoundation.org/certification/certified-hyperledger-fabric-developer/

BrettLogan (Sat, 11 Jan 2020 17:51:02 GMT):
@geni @ZainabM https://docs.google.com/forms/d/e/1FAIpQLScPxgBt6GvuTcrtjYCkWqW2D6o-2YrNd4vR--KXFGUw-5Ctsw/viewform

smtter (Sun, 12 Jan 2020 06:59:10 GMT):
Hi all, general architecture inquiry here. Is it bad design to not have any admins in my network? Maybe I am not understanding the difference between admin and peer, but my app currently only has a mix of client and peers. Any advice here would be great. Thanks in advance.

smtter (Sun, 12 Jan 2020 07:14:40 GMT):
I do have a peer who would be in charge of adding new peers to a channel but they also need to endorse (hence, they are a peer). Is it best advice to create another third party here to become an admin to oversee this endorser?

smtter (Sun, 12 Jan 2020 07:14:40 GMT):
Hi all, general architecture inquiry here. Is it bad design to not have any admins in my network? Maybe I am not understanding the difference between admin and peer, but my app currently only has a mix of client and peers. Any advice here would be great. Thanks in advance. I do have a peer who would be in charge of adding new peers to a channel but they also need to endorse (hence, they are a peer). Is it best advice to create another third party here to become an admin to oversee this endorser?

sunny_mnnit (Sun, 12 Jan 2020 11:09:41 GMT):
Has joined the channel.

sunny_mnnit (Sun, 12 Jan 2020 11:09:42 GMT):
When I am trying to run peer node it is showing this error panic: Error initializing ledger provider: unable to connect to CouchDB, check the hostname and port: error unmarshalling json data: invalid character '<' looking for beginning of value

ibmstiggr (Sun, 12 Jan 2020 16:17:24 GMT):
Hi there, I'm just writing again as I did not get any feedback on my last inquiry. Running the debugger for the IBM Blockchain Extension I get the following error: Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory: node-v79-darwin-x64-unknown Found: [node-v57-darwin-x64-unknown, node-v64-darwin-x64-unknown] This problem can often be fixed by running "npm rebuild" on the current system Original error: Cannot find module '/Users/stig/Documents/projects/TruckChain/truckChainPocContract/node_modules/fabric-shim/node_modules/grpc/src/node/extension_binary/node-v79-darwin-x64-unknown/grpc_node.node' Has anyone else encountered this problem, and arrived at some fix or solution?

sergeikus (Sun, 12 Jan 2020 17:47:12 GMT):
Hello! I am writing an Fabric SDK in Golang and trying to initiate communication with existing network. The network itself is a BYFN network (from tutorial) but without Fabric-CA. I don't need to have users (for now). And have a small problem with Fabric SDK setup. I get this error message: `2020/01/12 19:42:34 Ledger error: failed to create new channel client: failed to create channel context: failed to get client context to create channel client: getting private key from cert failed: Failed getting key for SKI [[29 23 96 158 92 133 160 202 48 85 63 248 138 47 252 213 246 111 231 60 152 251 9 165 160 45 150 58 78 148 2 1]]: Key with SKI 1d17609e5c85a0ca30553ff88a2ffcd5f66fe73c98fb09a5a02d963a4e940201 not found in keystore ` Maybe someone can suggest me possible problems ?

sergeikus (Sun, 12 Jan 2020 17:47:12 GMT):
Hello! I am writing an Fabric SDK in Golang and trying to initiate communication with existing network. The network itself is a BYFN network (from tutorial) but without Fabric-CA. I don't need to have users (for now). And have a small problem with Fabric SDK setup. I get this error message: ` 2020/01/12 19:42:34 Ledger error: failed to create new channel client: failed to create channel context: failed to get client context to create channel client: getting private key from cert failed: Failed getting key for SKI [[29 23 96 158 92 133 160 202 48 85 63 248 138 47 252 213 246 111 231 60 152 251 9 165 160 45 150 58 78 148 2 1]]: Key with SKI 1d17609e5c85a0ca30553ff88a2ffcd5f66fe73c98fb09a5a02d963a4e940201 not found in keystore` Maybe someone can suggest me possible problems ?

davidkel (Sun, 12 Jan 2020 19:35:46 GMT):
Suggest you raise an issue at https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues or try a stackoverflow question as the extension isn't from hyperledger

davidkel (Sun, 12 Jan 2020 19:35:46 GMT):
Suggest you raise an issue at https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues or try a stackoverflow question tagged ibp-vscode-extension as the extension isn't from hyperledger

ibmstiggr (Sun, 12 Jan 2020 21:25:14 GMT):
Thank you!

RonaldReagan (Mon, 13 Jan 2020 02:27:59 GMT):
Hi... I have worked with hyperledger fabric for a few months now. I understand that only the hash of the data is stored in the ledger (not the actual data). Where is the advantage in implementing a blockchain if the original data could still be stolen and/or tampered with. What's the best practices in storing and securing the original data? Also they say that it's possible to regenerate the world state from the ledger; how is expensive is this operation given that we have to compute all the linked previous block and transaction hashes?

Manzik (Mon, 13 Jan 2020 06:04:18 GMT):
In BYFN tutorial! What is cli container and what's the difference between cli and peer container?

Manzik (Mon, 13 Jan 2020 06:08:02 GMT):
In Fabric you can store confidential data as private data which can be accessed only through specified peers. You are right blockchain doesn't store real data only hash is stored and the authorization of that data is maintatined through blockchain. In case of public Blockchain. data are stored on IPFS which can be accessed by authorized users only.

hainguyen114 (Mon, 13 Jan 2020 07:18:19 GMT):
Has joined the channel.

hainguyen114 (Mon, 13 Jan 2020 07:18:20 GMT):
Hi, I am Hai, I am trying to practice with Fabric following the document https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel when I performed ./network.sh deployCC, I got this error: {code} {code}

hainguyen114 (Mon, 13 Jan 2020 07:18:20 GMT):
Hi, I am Hai, I am trying to practice with Fabric following the document https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel when I performed ./network.sh deployCC, I got this error: deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... ~/Downloads/fabric-samples/chaincode/fabcar/go ~/Downloads/fabric-samples/test-network go: unknown subcommand "mod" Run 'go help' for usage. ~/Downloads/fabric-samples/test-network Finished vendoring Go dependencies ++ peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: error getting chaincode bytes: listing deps for pacakge ../chaincode/fabcar/go/ failed: exit status 2 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed

hainguyen114 (Mon, 13 Jan 2020 07:18:20 GMT):
Hi, I am Hai, I am trying to practice with Fabric following the document https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel when I performed ./network.sh deployCC, I got this error: deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... \~/Downloads/fabric-samples/chaincode/fabcar/go \~/Downloads/fabric-samples/test-network go: unknown subcommand "mod" Run 'go help' for usage. ~/Downloads/fabric-samples/test-network Finished vendoring Go dependencies ++ peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: error getting chaincode bytes: listing deps for pacakge ../chaincode/fabcar/go/ failed: exit status 2 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed

hainguyen114 (Mon, 13 Jan 2020 07:20:04 GMT):
please help me to explain why and give me an advice, Thank you all!

mastersingh24 (Mon, 13 Jan 2020 09:25:50 GMT):
Check the version of Go you are using ...you need to be using Go 1.13+

sergeikus (Mon, 13 Jan 2020 09:44:08 GMT):
Hello! When I make a query to Hyperledger network I sometimes get this message: `2020/01/13 11:43:08 Client channel context is initiated... [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Greylist -> INFO Greylisting peer peer1.org2.example.com:10051 [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Accept -> INFO Rejecting peer peer1.org2.example.com:10051 2020/01/13 11:43:19 Response from Ledger is: 90 ` By sometimes I mean that query can be executed without this messages as well: `2020/01/13 11:40:00 Client channel context is initiated... 2020/01/13 11:40:00 Response from Ledger is: 90 ` What exactly greylisting means, and when/why it occurs ?

sergeikus (Mon, 13 Jan 2020 09:44:08 GMT):
Hello! When I make a query to Hyperledger network I sometimes get this message: `2020/01/13 11:43:08 Client channel context is initiated... [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Greylist -> INFO Greylisting peer peer1.org2.example.com:10051 [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Accept -> INFO Rejecting peer peer1.org2.example.com:10051 2020/01/13 11:43:19 Response from Ledger is: 90 ` By sometimes I mean that query can be executed without this messages as well: ` 2020/01/13 11:40:00 Client channel context is initiated... 2020/01/13 11:40:00 Response from Ledger is: 90 ` What exactly greylisting means, and when/why it occurs ?

sergeikus (Mon, 13 Jan 2020 09:44:08 GMT):
Hello! When I make a query to Hyperledger network I sometimes get this message: `2020/01/13 11:43:08 Client channel context is initiated... [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Greylist -> INFO Greylisting peer peer1.org2.example.com:10051 [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Accept -> INFO Rejecting peer peer1.org2.example.com:10051 2020/01/13 11:43:19 Response from Ledger is: 90` By sometimes I mean that query can be executed without this messages as well: `2020/01/13 11:40:00 Client channel context is initiated... 2020/01/13 11:40:00 Response from Ledger is: 90` What exactly greylisting means, and when/why it occurs ?

sergeikus (Mon, 13 Jan 2020 09:44:08 GMT):
Hello! When I make a query to Hyperledger network I sometimes get this message: ` 2020/01/13 11:43:08 Client channel context is initiated... [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Greylist -> INFO Greylisting peer peer1.org2.example.com:10051 [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Accept -> INFO Rejecting peer peer1.org2.example.com:10051 2020/01/13 11:43:19 Response from Ledger is: 90` By sometimes I mean that query can be executed without this messages as well: `2020/01/13 11:40:00 Client channel context is initiated... 2020/01/13 11:40:00 Response from Ledger is: 90` What exactly greylisting means, and when/why it occurs ?

sergeikus (Mon, 13 Jan 2020 09:44:08 GMT):
Hello! When I make a query to Hyperledger network I sometimes get this message: `2020/01/13 11:43:08 Client channel context is initiated... [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Greylist -> INFO Greylisting peer peer1.org2.example.com:10051 [fabsdk/client] 2020/01/13 09:43:19 UTC - greylist.(*Filter).Accept -> INFO Rejecting peer peer1.org2.example.com:10051 2020/01/13 11:43:19 Response from Ledger is: 90` By sometimes I mean that query can be executed without this messages as well: `2020/01/13 11:40:00 Client channel context is initiated... 2020/01/13 11:40:00 Response from Ledger is: 90` What exactly greylisting means, and when/why it occurs ?

hainguyen114 (Mon, 13 Jan 2020 09:50:08 GMT):

Clipboard - January 13, 2020 4:49 PM

hainguyen114 (Mon, 13 Jan 2020 09:51:08 GMT):
I have updated go and I also got a new error regarding the path, but I also added the go executable file into PATH

SafwenTrabelsi (Mon, 13 Jan 2020 12:45:01 GMT):
Has joined the channel.

SafwenTrabelsi (Mon, 13 Jan 2020 12:45:02 GMT):
Hello, I'm trying to update to Hyperledger fabric 2.0 and i keep facing an error in building the network on Kubernetes 2020-01-13 11:29:08.429 UTC [common.tools.configtxgen] main -> FATA 004 Error on outputBlock: could not create bootstrapper: could not create channel group: error adding policies to channel group: no policies defined

BrettLogan (Mon, 13 Jan 2020 13:22:44 GMT):
You're using `sudo` to package the Chaincode which uses the super users environment, not yours, so the path is different. Add the `-E` flag which will preserve you environment, or just don't use sudo to package it

sigma67 (Mon, 13 Jan 2020 14:10:33 GMT):
Hi, does anyone know why FabToken was removed from Fabric 2.0? And what release is being targeted now?

RamanM (Mon, 13 Jan 2020 14:14:51 GMT):
https://gerrit.hyperledger.org/r/c/fabric-samples/+/13687 I am trying to implement this solution with node-sdk. but I have Bad Request error at this step: ``` const config_update = await superagent .post("http://configtxlator:7059/configtxlator/compute/update-from-configs") .field({channel: chainId}) .attach("original", configPB) .attach("updated", configUpdatedPB);``` Does anybody know how to see configtxlator logs? Because I just see one log string ```2020-01-13 08:52:58.099 UTC [configtxlator] startServer -> INFO 001 Serving HTTP requests on [::]:7059```

Esegarra (Mon, 13 Jan 2020 15:57:09 GMT):
Hello everyone! @bertschneider @abityildiz Finally, I have find the problem related with the chaincode commit in the network My problem was that I should add EXACTLY THE SAME parameters in all the commands of the chaincode lifecycle. For example: If I approve the chaincode with a `--signature-policy`, and the `--init-required` flag: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 --init-required --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` Then, the another command to approve and the command to commit, they should have the SAME parameters: ``` peer lifecycle chaincode commit -o orderer0-fabric-net-dev:7050 --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --sequence 1 --init-required --tls true --cafile $ORDERER_CA --peerAddresses $CORE_PEER_ADDRESS --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE –peerAddresses $CORE_PEER_ADDRESS_2 --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE_2 --signature-policy "AND ('Org1MSP .peer','Org2MSP .peer')" ``` Hope It is useful!

Esegarra (Mon, 13 Jan 2020 15:57:09 GMT):
Hello everyone! @bertschneider @abityildiz Finally, I have find the problem related with the chaincode commit in the network My problem was that I should add EXACTLY THE SAME parameters in all the commands of the chaincode lifecycle. For example: If I approve the chaincode with a `--signature-policy`, and the `--init-required` flag: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 --init-required --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` Then, the another command to approve and the command to commit, they should have the SAME parameters: ``` peer lifecycle chaincode commit -o orderer0-fabric-net-dev:7050 --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --sequence 1 --init-required --tls true --cafile $ORDERER_CA --peerAddresses $CORE_PEER_ADDRESS --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE –peerAddresses $CORE_PEER_ADDRESS_2 --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE_2 --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` Hope It is useful!

Esegarra (Mon, 13 Jan 2020 15:57:09 GMT):
Hello everyone! @bertschneider @abityildiz Finally, I have find the problem related with the chaincode commit in the network My problem was that I should add EXACTLY THE SAME parameters in all the commands of the chaincode lifecycle. For example: If I approve the chaincode with a `--signature-policy`, and the `--init-required` flag: ``` peer lifecycle chaincode approveformyorg -o orderer0-fabric-net-dev:7050 --tls true --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --package-id $CC_PACKAGE_ID --sequence 1 --init-required --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` Then, the another command to approve and the command to commit, they should have the SAME parameters: ``` peer lifecycle chaincode commit -o orderer0-fabric-net-dev:7050 --channelID $CHANNEL_NAME --name addendumchaincode --version $VERSION --sequence 1 --init-required --tls true --cafile $ORDERER_CA --peerAddresses $CORE_PEER_ADDRESS --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE --peerAddresses $CORE_PEER_ADDRESS_2 --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE_2 --signature-policy "AND ('Org1MSP.peer','Org2MSP.peer')" ``` Hope It is useful!

ahmedsajid (Mon, 13 Jan 2020 16:00:09 GMT):
Hi, is there doc somewhere which has a detail guide on how to rollback and reset ledger? For example, what to do after a rollback? How to drop stateDB until a certain block?

ahmedsajid (Mon, 13 Jan 2020 16:03:57 GMT):
Found this doc, https://docs.google.com/document/d/1_-e4Bu42E9vfdttrYBmiSUeOdanH2SiSnuhM1oOn1TA/edit# But missing procedure etc. @manish-sethi @dave.enyeart

emony2019 (Mon, 13 Jan 2020 16:35:24 GMT):
Good Afternoon, I setup the byfn.sh and execute the invoke transaction 100 times and have noticed that at times I get an error message regarding ProposalResponsePayloads do not match. Is their a reason why this occurs only once in a while when I am invoking the same transaction over and over again?

DollyVolley (Mon, 13 Jan 2020 16:51:18 GMT):
Hello. I am wondering, how can a peer verify that a certain signature is valid. Does every peer have to have the certificates from everyone (which is quite hard to believe). Or is the certificate send everytime with the transaction? Thanks!

joaquimpedrooliveira (Mon, 13 Jan 2020 17:59:37 GMT):
Hi, all! I'm trying to create peer docker images with HSM support, but I'm getting an error. The steps I followed: - git clone https://github.com/hyperledger/fabric.git - edited `Makefile` to add `GO_TAGS ?= pkcs11` - edited `sampleconfig/core.yaml` to add BCCSP/Default to `PKCS11` and configured the BCSSP/PKCS11 section as: ``` # Settings for the PKCS#11 crypto provider (i.e. when DEFAULT: PKCS11) PKCS11: # Location of the PKCS11 module library Library: /usr/lib/libtacndp11.so # Token Label Label: Dinamo HSM # User PIN Pin: abcd1234 Hash: SHA2 Security: 256 FileKeyStore: KeyStore: msp/keystore ``` - edited images/peer/Dockerfile.in to add my HSM lib install instructions and ENV vars - generated peer docker image with `make -B peer-docker` But when I test with 'docker run --rm -it hyperledger/fabric-peer:latest` I get the folling message: ``` 2020-01-13 15:20:46.554 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not initialize BCCSP Factories: Failed initializing SW.BCCSP: Could not initialize BCCSP SW [Failed to initialize software key store: An invalid KeyStore path provided. Path cannot be an empty string.] ``` I'm using `v1.4.4` tag. What could be missing?

emony2019 (Mon, 13 Jan 2020 19:46:32 GMT):
I have found several people say it is because the chaincode was not properly installed. But then I would ask why does it not continuously fail?

Tim (Mon, 13 Jan 2020 21:21:38 GMT):
Hi, is there a way how I can set the chaincode policies to commit a transaction if 3 of 4 peers validated it, peers that are in the same oganisation, thx a lot

medikent (Mon, 13 Jan 2020 21:47:07 GMT):
Maybe `OutOf(3, 'Org1.member', 'Org1.member', 'Org1.member', 'Org1.member')` would work

Rajatsharma (Mon, 13 Jan 2020 22:10:28 GMT):
@muralisr I had set up a couchDB cluster, because in my case request were sent to any peer using load balance. So even if I was waiting for the eventhub in one peer and as soon as one transaction got committed, I was checking in the other peer I was not getting that data. So we thought of a setup where we will run couchDB in a cluster. But now we're getting MVCC on a regular basis. And that too in just one peer. This seems to be a really weird state. I know but this was the way we were using it.

Tim (Mon, 13 Jan 2020 22:24:22 GMT):
Thx, and do you have an Idea how I can declare exactly by ip or common domain name what a peer can do (like endorsement or validation or just commiting the block)

muralisr (Mon, 13 Jan 2020 22:36:16 GMT):
@Rajatsharma I think there are several layers here and anything I might say has a high likelyhood of being incorrect :-) ... If I were you , set aside couchdb concerns for a bit and start from the MVCC issue (which by definition suggests proposals altering same state in some fashion)... if you have never seen this before, could anything in the env (or chaincode modifications) that could cause this ?

medikent (Mon, 13 Jan 2020 22:36:52 GMT):
I believe a peer's role is defined in one of the YAML config files.

medikent (Mon, 13 Jan 2020 22:37:28 GMT):
I don't know for sure if that endorsement policy works. Will you tell me if it doesn't work? I'd like to help you find what works.

hainguyen114 (Tue, 14 Jan 2020 01:55:18 GMT):

Clipboard - January 14, 2020 8:55 AM

hainguyen114 (Tue, 14 Jan 2020 01:55:45 GMT):
If I don't use sudo, it returned permission denied

BrettLogan (Tue, 14 Jan 2020 01:58:51 GMT):
Multiple options, properly configure permissions on the necessary directories, or do a `sudo su` and configure your path and gopath and run it as the super user.

hainguyen114 (Tue, 14 Jan 2020 02:06:04 GMT):
it works, thank you

YashShukla (Tue, 14 Jan 2020 06:20:53 GMT):
Has joined the channel.

YashShukla (Tue, 14 Jan 2020 06:23:58 GMT):
I am working on a project on Hyperledger Fabric were the requirement, in short, is as follows Three organizations A, B, and C are on the same channel. All 3 organizations perform a transaction with a value `x`. There is a chaincode that chooses the organization whose value of `x` is the highest and declares it as a winner. All the organizations are the endorsers to keep the system *decentralized*. The problem is that the organizations will be able to see what the value x of other organizations and input there value accordingly. Is there any solution to it, which allows every organization to see other organization's input `x` only after the winner is declared while keeping the system *decentralized with trust*? and want it to do everything in *100 ms (real-time)*.

YashShukla (Tue, 14 Jan 2020 06:32:24 GMT):
Any hack ?

biligunb (Tue, 14 Jan 2020 07:14:29 GMT):
Hey guys is there any RDMS option for Hyperledger Fabric Node SDK? As far as i know there are file system, in memory and couchdb.

davidkel (Tue, 14 Jan 2020 07:18:38 GMT):
You could always populate an in memory wallet with the information from your RDMS when you app loads

Cherep (Tue, 14 Jan 2020 08:56:38 GMT):
Hello everyone

Cherep (Tue, 14 Jan 2020 08:56:38 GMT):
Hello everyone Have some one performed data migration? If I need to add new attributes to all already existing records, is it ok to do it in the init method during upgrade ( select all, add field, save), or separate chaincode transaction should be written? How to handle case when we need to migrate lots of data?

Rajatsharma (Tue, 14 Jan 2020 10:09:44 GMT):
@muralisr So the thing is we were running a production grade network. To speed up the queries we using design docs by directly hitting on the CouchDB. We were working on a network, where we only had one peer. For obvious reasons we thought of having more than one peers with a attached CouchDB. So when we introduced that, having all the design docs in place we stared working with now the both peers behind a load balancer. Now we had a functionality of auto-receive, so as soon as the application got one transaction we fired the next transaction. And it is in this case we started facing issue, we waited for the eventhub to commit transaction. As as soon as the response was send to the application, the next transaction was fired which trough the load balancer went to the other peer. And their data was not committed so we started facing issues.

Rajatsharma (Tue, 14 Jan 2020 10:09:44 GMT):
@muralisr So the thing is we were running a production grade network. To speed up the queries we using design docs by directly hitting on the CouchDB. We were working on a network, where we only had one peer. For obvious reasons we thought of having more than one peers with a attached CouchDB. So when we introduced that, having all the design docs in place we stared working with now the both peers behind a load balancer. Now we had a functionality of auto-forward, so as soon as the application got one transaction we fired the next transaction. And it is in this case we started facing issue, we waited for the eventhub to commit transaction. As as soon as the response was send to the application, the next transaction was fired which trough the load balancer went to the other peer. And their data was not committed so we started facing issues.

Rajatsharma (Tue, 14 Jan 2020 10:14:42 GMT):
So this was not abiding the business logic. So we thought that lets set up a CouchDB cluster, and point both the peers to that cluster. So in that case transaction was being send to one peer. But while committing the transaction on the other peer we started getting MVCC 409 from CouchDB and many errors. Could you suggest us anything. We wanted to run our network with more than one peers.

manish1635 (Tue, 14 Jan 2020 10:45:04 GMT):
Has joined the channel.

manish1635 (Tue, 14 Jan 2020 10:45:07 GMT):
I am developing a POC in hyperledger fabric. There is need to save user data which is sensetive and some of data is big like image. I have search storing taking and found 3 ways to store data: 1. Store all data in ledger 2. Store all data in ledger and replicate data in off-chain storage and further use data from off-chain storage when need to query 3. Store data in private data collection since it is user's private data and will be accessible only within organisation Apart from these, one more solution looks very convincing 1. Store all data in mongodb and save hash only in blockchain. Please suggest me better approach?

manish1635 (Tue, 14 Jan 2020 10:45:07 GMT):
I am developing a POC in hyperledger fabric. There is need to save user data which is sensetive and some of data is big like image. I have search storing technique and found 3 ways to store data: 1. Store all data in ledger 2. Store all data in ledger and replicate data in off-chain storage and further use data from off-chain storage for fast retrieval 3. Store data in private data collection since it is user's private data and will be accessible only within organisation Apart from these, one more solution looks very convincing 1. Store all data in mongodb and save hash only in blockchain. Please suggest me better approach?

YashShukla (Tue, 14 Jan 2020 10:56:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=o88W5zNosKEQYwtAv) please can someone help with this

YashShukla (Tue, 14 Jan 2020 10:56:57 GMT):
Consider it to be a bidding platform of 4 organisations where org1 publishes an item and org 2,3 and 4 bid for it(in dollars). 
and then there is a chaincode that checks the bids and compare them and declares the winner bidder (one with the highest bid) to make the platform decentralised we make all the three organisations as endorser peers so that each peer is able to see what others have bid . the problem is that : in a particular scenario being an endorser peer org2 can see the bid of org3 and then increase it’s bid accordingly what can I do to make the platform decentralised while avoiding this scenario. something like : the organisations are only able to see the bids after the winner is 
declared

adamos2468 (Tue, 14 Jan 2020 12:48:14 GMT):
Has joined the channel.

OleJankowski (Tue, 14 Jan 2020 12:58:11 GMT):
Has joined the channel.

OleJankowski (Tue, 14 Jan 2020 12:58:13 GMT):
Hi, I'm trying to check out hyperledger 1.4.4 but I'm getting the following error. Does anyone know a solution to this? I tired it on Windows as well as on Linux hyperledger-fabric-linux-amd64-1.4.4.tar.gz: Permission denied Cannot write to ‘hyperledger-fabric-linux-amd64-1.4.4.tar.gz’ (Success). tar (child): hyperledger-fabric-linux-amd64-1.4.4.tar.gz: Cannot open: No such f ile or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now rm: cannot remove 'hyperledger-fabric-linux-amd64-1.4.4.tar.gz': No such file or directory ==> There was an error downloading the binary file. ------> 1.4.4 platform specific fabric binary is not available to download <----

BrettLogan (Tue, 14 Jan 2020 14:14:38 GMT):
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s

BrettLogan (Tue, 14 Jan 2020 14:15:02 GMT):
@OleJankowski can you try this

BrettLogan (Tue, 14 Jan 2020 14:15:33 GMT):
I think I'm going to have to revert some changes we made

BrettLogan (Tue, 14 Jan 2020 14:30:39 GMT):
What is "x"? Is it modeling a real world asset? Is its value stored on the chain? You say other orgs, if they know my value, will just choose a larger one, of that's the case, what's the disincentive not to just choose the largest value possible from the start? I have about a million other questions I could ask, it's just not a very well fleshed out problem space with the information given.

BrettLogan (Tue, 14 Jan 2020 14:30:39 GMT):
What is "x"? Is it modeling a real world asset? Is its value stored on the chain? You say other orgs, if they know my value, will just choose a larger one, of that's the case, what's the disincentive go just choose the largest value possible from the start? I have about a million other questions I could ask, it's just not a very well fleshed out problem space with the information given.

joaquimpedrooliveira (Tue, 14 Jan 2020 15:13:39 GMT):
So I found this email (https://lists.hyperledger.org/g/fabric/topic/32212457) saying that __the pkcs11 tag you specified in your command was not actualy passed when you build docker image rather than building native binary, but I'm seeing this has been fixed in latest version 2.0.0 code.__ So, is it possible to build pkcs11enabled docker images for peer and orderer in Fabric `v1.4.4`?

joaquimpedrooliveira (Tue, 14 Jan 2020 15:13:39 GMT):
Looking in the web I found this email (https://lists.hyperledger.org/g/fabric/topic/32212457) saying that __the pkcs11 tag you specified in your command was not actualy passed when you build docker image rather than building native binary, but I'm seeing this has been fixed in latest version 2.0.0 code.__ So, is it possible to build pkcs11enabled docker images for peer and orderer in Fabric `v1.4.4`?

ahmedsajid (Tue, 14 Jan 2020 15:29:19 GMT):
It should be possible. This is how we build PKCS11 enabled artifacts ``` DOCKER_DYNAMIC_LINK=true EXPERIMENTAL=false GO_TAGS="pkcs11 pluginsenabled" make docker ```

joaquimpedrooliveira (Tue, 14 Jan 2020 16:19:23 GMT):
I compiled as you suggested and get the following error when do a `docker run --rm hyperledger/fabric-peer:latest`: ``` 2020-01-14 16:18:29.813 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not initialize BCCSP Factories: %!s() Could not find default `pkcs11` BCCSP ```

jarvis26 (Tue, 14 Jan 2020 16:19:36 GMT):
permission denied

joaquimpedrooliveira (Tue, 14 Jan 2020 16:25:55 GMT):
There was an error in `core.yaml`. I changed `Default: pkcs11` to `Default: PKCS11` (capital letters) and now the error is: ```2020-01-14 16:24:16.368 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo ```

joaquimpedrooliveira (Tue, 14 Jan 2020 16:26:22 GMT):
The PKCS11 keystore is configured as: `KeyStore: msp/keystore`

ahmedsajid (Tue, 14 Jan 2020 19:29:40 GMT):
Right. So does that folder have enrollment material? like /etc/hyperledger/fabric/msp/signcerts/cert.pem ?

joaquimpedrooliveira (Tue, 14 Jan 2020 20:14:49 GMT):
It has a default `peer.pem` added by the `payload` target. I was expecting it to be filled by the HSM integration

ahmedsajid (Tue, 14 Jan 2020 20:15:54 GMT):
right. what about the key? is that in HSM?

joaquimpedrooliveira (Tue, 14 Jan 2020 20:16:27 GMT):
But I'm now realising that these priv/pub certs for the peer should have been generated by the CA. Is it correct?

joaquimpedrooliveira (Tue, 14 Jan 2020 20:16:37 GMT):
CA with HSM integration

ahmedsajid (Tue, 14 Jan 2020 20:16:49 GMT):
So there has to be a separate process which generates cryto material to be used by the Peer.

ahmedsajid (Tue, 14 Jan 2020 20:16:57 GMT):
I.e., enrollment cert/key

joaquimpedrooliveira (Tue, 14 Jan 2020 20:17:28 GMT):
Yeah, I noticed this just now.

joaquimpedrooliveira (Tue, 14 Jan 2020 20:17:56 GMT):
I'll try to setup the whole process using the Fabric-CA to issue the orderer and peer credentials

ahmedsajid (Tue, 14 Jan 2020 20:18:38 GMT):
quickest thing would be to use `fabric-ca-client` to perform `enroll` using the same MSP path as peer. Of course `fabric-ca-client` would also need to be complied with PKCS11 support and enroll so that key material ends up in HSM.

ahmedsajid (Tue, 14 Jan 2020 20:19:42 GMT):
Yeah, so bring up the Fabric CA server up with peer and orderer credentials in config file (Or register credentials). Use these credentials to perform enrollment.

ahmedsajid (Tue, 14 Jan 2020 20:19:42 GMT):
Yeah, so bring up the Fabric CA server up with peer and orderer credentials in config file (Or register credentials). Use these credentials to perform enrollment using the same path

joaquimpedrooliveira (Tue, 14 Jan 2020 20:21:37 GMT):
That my idea: use `fabric-ca` and fabric-`ca-client`

joaquimpedrooliveira (Tue, 14 Jan 2020 20:21:59 GMT):
Just to confirm: `orderer` and `peer` images also need to be compiled and configured with proper HSM support, right?

ahmedsajid (Tue, 14 Jan 2020 20:22:42 GMT):
``` DOCKER_DYNAMIC_LINK=true EXPERIMENTAL=false GO_TAGS="pkcs11 pluginsenabled" make docker ``` This should compile orderer, peer, tools etc

ahmedsajid (Tue, 14 Jan 2020 20:22:42 GMT):
``` DOCKER_DYNAMIC_LINK=true EXPERIMENTAL=false GO_TAGS="pkcs11" make docker ``` This should compile orderer, peer, tools etc

ahmedsajid (Tue, 14 Jan 2020 20:24:11 GMT):
For fabric-ca you will probably have to use a hack like below :) `DOCKER_GO_LDFLAGS="\" -tags \"pkcs11 netgo caclient\" -ldflags \"" FABRIC_CA_DYNAMIC_LINK=true EXPERIMENTAL=false make docker`

ahmedsajid (Tue, 14 Jan 2020 20:25:04 GMT):
Or you can just edit Makefile under fabric-ca repo

ahmedsajid (Tue, 14 Jan 2020 20:25:09 GMT):
whatever works for you.

joaquimpedrooliveira (Tue, 14 Jan 2020 20:25:23 GMT):
Thank you very much, @ahmedsajid ! :)

ashish.cppdev (Tue, 14 Jan 2020 22:39:06 GMT):
Hi All, anyone come across the error "Failed to connect before the deadline URL: grpcs://localhost:7051" and docker logs that say "[core.comm] ServerHandshake -> ERRO 085 TLS handshake failed with error EOF server = PeerServer remoteaddress=IP:port"?

ashish.cppdev (Tue, 14 Jan 2020 22:40:16 GMT):
Any suggestions for resolving this? I am able to connect to this network (brought up by byfn.sh) using a connection profile (connection_org1.json) using one client application, but with another client application, I get the error I have described above.

ashish.cppdev (Tue, 14 Jan 2020 22:40:18 GMT):
Thanks

vanitas92 (Tue, 14 Jan 2020 22:47:07 GMT):
@BrettLogan were you able to look the EXTERNALBUILDERS env var problem in kubernetes yaml? thank you

Rajatsharma (Wed, 15 Jan 2020 04:29:41 GMT):
Has anyone encountered this error in peer `panic: error during state DB recovery: error unmarshalling json data: invalid character '<' looking for beginning of value`.

Rajatsharma (Wed, 15 Jan 2020 04:29:52 GMT):
I'm unable to restart that peer.

YashShukla (Wed, 15 Jan 2020 04:58:27 GMT):
consider it as a bidding platform where 4 different organisations are there. one of them publishes a item then the other 3 have to bid for that proposal and the one which bids the highest value(in dollars) gets the item. our requirement is to to make a chaincode that takes input form the 3 organisation and chooses the winner bidder in a decentralised way. the problem is that if we make each of the organisations a endorsers to make it decentralised then: if org1 sends a transaction specifying it's bid then org2 will be able to see it and change it's own bid accordingly

YashShukla (Wed, 15 Jan 2020 04:58:27 GMT):
Consider it to be a bidding platform of 4 organisations where org1 publishes an item and org 2,3 and 4 bid for it(in dollars). 
and then there is a chaincode that checks the bids and compare them and declares the winner bidder (one with the highest bid) to make the platform decentralised we make all the three organisations as endorser peers so that each peer is able to see what others have bid . the problem is that : in a particular scenario being an endorser peer org2 can see the bid of org3 and then increase it’s bid accordingly what can I do to make the platform decentralised while avoiding this scenario. something like : the organisations are only able to see the bids after the winner is 
declared

YashShukla (Wed, 15 Jan 2020 05:05:38 GMT):
Consider it to be a bidding platform of 4 organisations where org1 publishes an item and org 2,3 and 4 bid for it(in dollars). 
and then there is a chaincode that checks the bids and compare them and declares the winner bidder (one with the highest bid) to make the platform decentralised we make all the three organisations as endorser peers so that each peer is able to see what others have bid . the problem is that : in a particular scenario being an endorser peer org2 can see the bid of org3 and then increase it’s bid accordingly what can I do to make the platform decentralised while avoiding this scenario. something like : the organisations are only able to see the bids after the winner is 
declared

tickmatrix (Wed, 15 Jan 2020 09:25:16 GMT):
Has joined the channel.

Herry (Wed, 15 Jan 2020 11:56:44 GMT):
Has joined the channel.

Herry (Wed, 15 Jan 2020 11:56:45 GMT):
Hello 🙂 we developed our chaincode for a project in university but don't get the REST-API working. Which steps do we need to take? can you give us a hint?

mastersingh24 (Wed, 15 Jan 2020 13:13:33 GMT):
Are you using CouchDB? This might indicate that CouchDB is unreachable

icarrascol (Wed, 15 Jan 2020 13:29:07 GMT):
which is the best way to handle chaincode upgrades, if we have a chaincode that needs to do operations that are completely different to the old chaincode but with the same data, how do you handle this to not break what u had before

palra (Wed, 15 Jan 2020 14:41:32 GMT):
Hi there! Is there a way to check if a peer is effectively started? I need to have a startup probe for my Kubernetes deployment

Atomx (Wed, 15 Jan 2020 15:16:53 GMT):
Has joined the channel.

Atomx (Wed, 15 Jan 2020 15:22:58 GMT):
Hi there, I've two important question: The first about MSP, I don't understand in the deep how it works and what's in detail? Anyone has some good resources to understand well the concept? (beyond official doc) 2- I'm searching a tutorial for build a network from scratch (without preconfiguredd file .sh) to understand in the deep the topic, but I didn't find any tutorial updated. Do you have an updated guide to build from scratch all the components? Thank you very much.

OumarKouferidji (Wed, 15 Jan 2020 16:48:59 GMT):
I have problem when query chaincode:

OumarKouferidji (Wed, 15 Jan 2020 16:55:02 GMT):
Problem when query chaincode: I'm in on Virtual Box deploying a network of 4 peers E0115 16:16:46.632728333 29314 ssl_transport_security.cc:1237] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. 2020-01-15T15:16:47.269Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 timeout:3000 2020-01-15T15:16:47.269Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:8051 timeout:3000 2020-01-15T15:16:47.270Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:8051 timeout:3000

joaquimpedrooliveira (Wed, 15 Jan 2020 17:17:08 GMT):
You can use the health check URL if operations service is enabled: https://hyperledger-fabric.readthedocs.io/en/release-1.4/operations_service.html#health-checks

tjnakka (Wed, 15 Jan 2020 17:39:06 GMT):
Has joined the channel.

tjnakka (Wed, 15 Jan 2020 17:39:08 GMT):
hey guys,

tjnakka (Wed, 15 Jan 2020 17:44:26 GMT):
i have created my network and deployed it on docker and used node chaincode. i was able to add chaincode but when i instantiate it so me no error message and container is also deployed on fabric network. But when i try to query it shows me this error message 'endorsement failure during invoke. response: status:500 message:"make sure the chaincode c1cc has been successfully instantiated and try again: chaincode c1cc not found" '. And also when run this command "peer chaincode list -C bidchannel --instantiated" it also dosn't show up any chaincode

tjnakka (Wed, 15 Jan 2020 17:44:50 GMT):
please help guys

RonaldReagan (Thu, 16 Jan 2020 04:39:49 GMT):
@Manzik Thanks.. How do I get the history of a given asset from the ledger. Current state i can get from the statedb. The chaincodes don't seem to have this function..My app is designed around getting all the history of an object. Is this possible? And How. Thanks

OleJankowski (Thu, 16 Jan 2020 05:11:12 GMT):
@BrettLogan Thanks that helped

tjnakka (Thu, 16 Jan 2020 05:25:03 GMT):
Hey guys please reply to my query it is quiet urgent

geni (Thu, 16 Jan 2020 05:56:01 GMT):
Hey guys please reply to my query it is quiet urgent

geni (Thu, 16 Jan 2020 05:59:27 GMT):

errorkuber.PNG

geni (Thu, 16 Jan 2020 06:14:34 GMT):
Have you instantiated the chaincode properly. Your chaincodes are intalled but not instantiated. Can you tell me how you are doing it?

nharshita (Thu, 16 Jan 2020 06:47:55 GMT):
Hello all, Is there any way to find whether a query is been called using "peer chaincode invoke" or "peer chaincode query" command at the peer (node/server).

wangcj (Thu, 16 Jan 2020 08:34:31 GMT):
it should had a output on the console

tjnakka (Thu, 16 Jan 2020 09:24:29 GMT):
Through the docker cli by typing peer chaincode instantiate

tjnakka (Thu, 16 Jan 2020 09:24:48 GMT):
And passing in necessary parameters

tjnakka (Thu, 16 Jan 2020 09:25:44 GMT):
As shown in docs

tjnakka (Thu, 16 Jan 2020 09:27:36 GMT):
Instantiate command creates the docker container and also the newly created container of chaincode logs show that it is correctly running.

tjnakka (Thu, 16 Jan 2020 09:28:19 GMT):
But when i try to query the chaincode through peer chaincode invoke.

tjnakka (Thu, 16 Jan 2020 09:29:12 GMT):
It shows me error message with status code 500 and message as mentioned above

tjnakka (Thu, 16 Jan 2020 09:30:16 GMT):
But when i again check chaincode container logs it shows no error instead it says function was invoke and return the value to.peer

tjnakka (Thu, 16 Jan 2020 09:41:07 GMT):
Same problem as mentioned here https://github.com/aidtechnology/at-charts/issues/36

ZainabM (Thu, 16 Jan 2020 12:10:03 GMT):
Please make sure that chaincode name is same in peer chaincode invoke command as the name given when instantiating chaincode.

tjnakka (Thu, 16 Jan 2020 13:40:26 GMT):
The name is same as the everywhere

ahmedsajid (Thu, 16 Jan 2020 14:18:19 GMT):
bug

vanitas92 (Thu, 16 Jan 2020 14:37:54 GMT):
Has anyone tested the EXTERNALBUILDERS feature for chaincode in 2.0.0 beta release? I'm having trouble setting up the env var CORE_CHAINCODE_EXTERNALBUILDERS in yaml as i constantly got this error: Error: '': source data must be an array or slice, got string This is how i set it up: - name: CORE_CHAINCODE_EXTERNALBUILDERS value: '[{name: golang-builder, path: /builders/golang}]'

vanitas92 (Thu, 16 Jan 2020 14:38:29 GMT):
Has anyone tested the EXTERNALBUILDERS feature for chaincode in 2.0.0 beta release? I'm having trouble setting up the env var `CORE_CHAINCODE_EXTERNALBUILDERS` in yaml as i constantly got this error: `Error: '': source data must be an array or slice, got string` This is how i set it up: ``` - name: CORE_CHAINCODE_EXTERNALBUILDERS value: '[{name: golang-builder, path: /builders/golang}]' ```

sergeikus (Thu, 16 Jan 2020 19:40:30 GMT):
Hello! Is it possible to sign data with Idemix credential in typescript ? I saw that the Node.js SDK has a plan for that by implementing same methods from othar SDK-s (Go and Java), but is there any real possible to do that right now ? (For HLF version 2.0)

sergeikus (Thu, 16 Jan 2020 19:40:30 GMT):
Hello! Is it possible to sign data with Idemix credential in typescript/javascript ? I saw that the Node.js SDK has a plan for that by implementing same methods from othar SDK-s (Go and Java), but is there any real possible to do that right now ? (For HLF version 2.0)

sergeikus (Thu, 16 Jan 2020 19:40:30 GMT):
Hello! Is it possible to sign data with Idemix credential in typescript/javascript ? I saw that the Node.js SDK has a plan for that by implementing same methods from othar SDK-s (Go and Java), but is there any real possible to do that right now ? (For HLF version 2.0) If someone knows something about that, I would be really grateful

medikent (Thu, 16 Jan 2020 21:31:35 GMT):
What is the value proposition for signing with an Idemix credential?

davidkel (Thu, 16 Jan 2020 21:53:17 GMT):
If I remember correctly, someone from the community offered to provide an implementation but it never materialised. I am not aware of any other attempts to provide an implementation for the node-sdk.

medikent (Thu, 16 Jan 2020 21:54:02 GMT):
ok. Is Idemix better in some key way than the existing CA-based enroll & register flow?

davidkel (Thu, 16 Jan 2020 21:55:43 GMT):
It's the zero knowledge proof capability of hyperledger fabric

medikent (Thu, 16 Jan 2020 21:56:36 GMT):
That's cool. Have any links besides the docs you like on the Fabric ZKP capability?

davidkel (Thu, 16 Jan 2020 21:58:16 GMT):
I can only suggest of official HLF docs sorry

medikent (Thu, 16 Jan 2020 21:58:28 GMT):
cool, thanks for the heads up.

medikent (Thu, 16 Jan 2020 22:00:58 GMT):
Do you know of any examples using the Java SDK using Idemix?

davidkel (Thu, 16 Jan 2020 22:06:46 GMT):
Only place I am guessing would be the javasdk test suite

BhanuPriya (Fri, 17 Jan 2020 11:02:06 GMT):
Has joined the channel.

BhanuPriya (Fri, 17 Jan 2020 11:02:07 GMT):
Hi I am very new to Hyperledger fabric . I want to deploy a hyperledger fabric project (NodeJS) on linux Instance in GCP cloud . Can anyone guide me from where I should start ?

PauloQuerido (Fri, 17 Jan 2020 12:54:49 GMT):
Has joined the channel.

PauloQuerido (Fri, 17 Jan 2020 12:54:51 GMT):
Hi, I'm new to Hyperledger Fabric and in my first time trying to run the Fabcar example in Java i get the following error: "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1" Anyone knows how to fix this issue? I can run the code in javascript but not in java

SanjayDhonde (Fri, 17 Jan 2020 13:13:55 GMT):
dhonde

mauricio (Fri, 17 Jan 2020 13:28:15 GMT):
You should start configuring the basic components, fabric-ca, peer, orderer, also with the fabric-ca you should emit the right certificates for each components, you can see example on the hyperledger github repositories.

ibmstiggr (Fri, 17 Jan 2020 15:16:44 GMT):
Hey there, I am trying to use the getStateByRange with empty-string start-/endKey arguments, so as to get entries in the world state., but the iterator finds no next value. If I try with a set startKey it returns some elements. I am working with a composite data key but would like to retrieve everything in the world state. It is simply iterator.next() which returns null in the open range case. Anyone clear on what I could be doing wrong? I am using fabric 1.4 with nodeSDK

Atomx (Fri, 17 Jan 2020 16:35:04 GMT):
Hi everyone, I've an important issue to resolve. I've a project deployed in production with AWS Managed blockchain (fabric 1.2), there's an error that I can't explain to me, sometimes I get this error: "UNAVAILABLE TCP read file hyperledger fabric" What could be the problem? I can't find any solution, it could be the connection profile from my API? Thank you

manish-sethi (Fri, 17 Jan 2020 16:37:43 GMT):
Here is the doc for command - https://hyperledger-fabric.readthedocs.io/en/master/commands/peernode.html#example-usage Please feel free to open a Jira for improvement in docs if you think that there is a scope of improvement.

Koushik (Fri, 17 Jan 2020 19:58:09 GMT):
Hi Guys, I have a peculiar question. So I wanted to increase the chaincode exection timeout in a peer docker-compose.yaml file when I rebuild the container I noticed that I forgot to enabled disk mounting. So my peer got kicked out of the channel, I rejoined the channel and reinstalled the chaincode and did not instantiate it again because it was already instantiated. I did docker exec cli peer chaincode list --instantiated "channelname" to confirm it was the desired chaincode. To sum it up my question is when a peer joins the channel and installs the chaincode should there be a reinstantiation of the chaincode?

Jeremy (Fri, 17 Jan 2020 20:05:15 GMT):
Has joined the channel.

Jeremy (Fri, 17 Jan 2020 21:36:15 GMT):
Hi there. I am trying to come up with a recovery procedure for a 1.4.2 network using private data and raft orderers where the peer data is one or more blocks ahead of the orderer data. Some data loss is expected and acceptable. There's a few scenarios I'm considering where this could happen -- the most likely being when restoring a backup of the state of a running network without the ability to stop services beforehand. I could try to guarantee the orderer is ahead instead, but in this case it would be worse to be missing the private data than to lose a few blocks. I haven't gone too far in that direction since the existing code for peer rollback has been useful. Any suggestions?

yacovm (Fri, 17 Jan 2020 23:23:27 GMT):
@Koushik - the instantiate thing is just writing a key to `lscc`, so it's global to the channel, it has nothing to do with specific peers

yacovm (Fri, 17 Jan 2020 23:24:23 GMT):
@Jeremy - if the peer is ahead of the orderer you're screwed because it would mean the orderers would create new blocks and the peers would reject them - game over.

yacovm (Fri, 17 Jan 2020 23:24:47 GMT):
you have to make the orderers ahead of the peers, or equal to the peers - but you need to remember that if orderers are head of the peers then it means you have private data loss

Jeremy (Fri, 17 Jan 2020 23:45:05 GMT):
@yacovm Right, yeah. I was hoping I could find a way to roll back the peers to the height of the orderers offline then bring everything back up

yacovm (Fri, 17 Jan 2020 23:45:17 GMT):
you can do that

yacovm (Fri, 17 Jan 2020 23:45:33 GMT):
but i think you need surgical tools

yacovm (Fri, 17 Jan 2020 23:46:09 GMT):
`Rolls back a channel to a specified block number. When the command is executed, the peer must be offline. When the peer starts after the rollback, it will receive blocks, which got removed during the rollback, from an orderer or another peer to rebuild the block store and state database.`

Jeremy (Fri, 17 Jan 2020 23:46:12 GMT):
yeah, so I tried with the `peer node rollback` command and deleted the pre reset block marker.. that almost worked, but the private data was not rolled back so it conflicted

yacovm (Fri, 17 Jan 2020 23:46:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peernode.html

yacovm (Fri, 17 Jan 2020 23:46:24 GMT):
the private data wasn't rolled back? :O

Jeremy (Fri, 17 Jan 2020 23:46:31 GMT):
no, apparently that command does not do that

yacovm (Fri, 17 Jan 2020 23:46:42 GMT):
but isn't the private data accessed by hashes ?

yacovm (Fri, 17 Jan 2020 23:47:01 GMT):
@manish-sethi what do you make of this?

Jeremy (Fri, 17 Jan 2020 23:47:03 GMT):
it's indexed by block and transaction it seems from my experimentation

yacovm (Fri, 17 Jan 2020 23:47:07 GMT):
or @dave.enyeart

Jeremy (Fri, 17 Jan 2020 23:47:09 GMT):
so when a new block was cut it conflicted

Jeremy (Fri, 17 Jan 2020 23:47:54 GMT):
I am looking at trying it from the other direction and trying to find a way to roll back the orderer, though I don't think there is any tooling exposed for that right now

Jeremy (Fri, 17 Jan 2020 23:51:41 GMT):
I was reading the design docs for that command which call out that private data is not being rolled back by design https://docs.google.com/document/d/1_-e4Bu42E9vfdttrYBmiSUeOdanH2SiSnuhM1oOn1TA/edit

Jeremy (Fri, 17 Jan 2020 23:52:06 GMT):
I guess the main docs don't mention that though

Jeremy (Fri, 17 Jan 2020 23:52:06 GMT):
I guess the docs don't mention that though

Khoa (Sat, 18 Jan 2020 00:02:08 GMT):
Has joined the channel.

AAJones95 (Sat, 18 Jan 2020 01:50:05 GMT):
Has joined the channel.

AAJones95 (Sat, 18 Jan 2020 01:50:07 GMT):
Hello Everyone

AAJones95 (Sat, 18 Jan 2020 01:51:27 GMT):
I am new to developing with Hyperledger Fabric, I was wondering what is the difference between the images fabric-ca-orderer and fabric-orderer?

BrettLogan (Sat, 18 Jan 2020 03:40:16 GMT):
Fabric-ca-orderer is a legacy image. It's hasn't been used in many, many releases

BrettLogan (Sat, 18 Jan 2020 03:41:56 GMT):
1.2.1 was the last release

AAJones95 (Sat, 18 Jan 2020 07:57:33 GMT):
What images should I use when setting up my own custom network?

Marina1806 (Sat, 18 Jan 2020 08:31:36 GMT):
I faced an error when I was creating the channel using the peer command. peer channel create -o localhost:7050 -c acmechannel -f $CONFIG_DIRECTORY/acme-channel.tx The error I got: Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'acmechannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied I also got an error in the Ordering Service logs: ERRO 02b Principal deserialization failure (MSP AcmeMSP is unknown) for identity 0 Can someone please let me know why am I getting this error?

eduardosanzb (Sat, 18 Jan 2020 16:52:29 GMT):
Has joined the channel.

eduardosanzb (Sat, 18 Jan 2020 16:57:40 GMT):
Hello, does anyone have an example of a multi chaincode in typescript?

AAJones95 (Sat, 18 Jan 2020 20:44:49 GMT):
What is the image fabric-tools used for? And how do I use it?

BrettLogan (Sun, 19 Jan 2020 04:07:05 GMT):
It's an image that contains the fabric binaries. You simply run it and you can execute fabric commands without having to download the binaries to your machine.

idiota101 (Sun, 19 Jan 2020 09:11:15 GMT):
building hyperledger fabric locally

golam-shovon (Sun, 19 Jan 2020 11:49:08 GMT):
Has joined the channel.

golam-shovon (Sun, 19 Jan 2020 11:49:36 GMT):
I am trying to instiate a chaincode the name of the chaincode is foodcode v 1.0

golam-shovon (Sun, 19 Jan 2020 11:51:32 GMT):
i want to instiate a chaincode named foodchaincode v 1.0 the location of the code is src/chain/mediumchincode it intalls fine but when i try to instiate it throwes this errors chaincode/input/src/chain/mediumchaincode/sacc.go:93:6: main redeclared in this block previous declaration at chaincode/input/src/chain/mediumchaincode/food_ibm.go:140:6 chaincode/input/src/chain/mediumchaincode/shovon_foodtrust_chaincode.go:3:1: syntax error: non-declaration statement outside function body

golam-shovon (Sun, 19 Jan 2020 11:52:08 GMT):
there is no other files in that folder but it showes this i could not even find this files when i types ls in that folder

CT123 (Sun, 19 Jan 2020 17:43:14 GMT):
Ensure that your GOPATH is set correctly

andyke (Sun, 19 Jan 2020 21:29:36 GMT):
Has joined the channel.

andyke (Sun, 19 Jan 2020 21:29:39 GMT):
how can I solve this error? "Unable to create genesis block" due to orderer not fount? I have been stuck with this for days

BrettLogan (Sun, 19 Jan 2020 21:35:20 GMT):
Can you provide context around what you've done up to this point

Manzik (Mon, 20 Jan 2020 04:52:26 GMT):
For that you need to scrape the ledgerdb of that channel. I cannot say how. cuz i haven't gone through that. but you may wanna explore hyperledger blockchain explorer.

Manzik (Mon, 20 Jan 2020 04:52:31 GMT):
``` ```

Manzik (Mon, 20 Jan 2020 04:52:38 GMT):
``` https://github.com/hyperledger/blockchain-explorer ```

andyke (Mon, 20 Jan 2020 07:16:51 GMT):
yes, let me get it

andyke (Mon, 20 Jan 2020 07:29:19 GMT):
here is the error " Error on outputBlock: refusing to generate block which is missing orderer section"

BrettLogan (Mon, 20 Jan 2020 07:33:02 GMT):
I presume you didn't include the Orderer block in your input to configtxgen, take a look at a sample here: https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml

BrettLogan (Mon, 20 Jan 2020 07:33:02 GMT):
Well, I'm gonna guess you didn't include the Orderer block in you input to configtxgen, take a look at a sample here: https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml

BrettLogan (Mon, 20 Jan 2020 07:33:02 GMT):
Well, I'm gonna guess you didn't include the Orderer block in your input to configtxgen, take a look at a sample here: https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml

andyke (Mon, 20 Jan 2020 07:34:29 GMT):
I did. The error still persists. Let me look at the sample though. I have questions, I gave my orgs custom names, how do I account for that in the configtx.yaml file? Can I send you a sample that I wrote?

BrettLogan (Mon, 20 Jan 2020 07:37:17 GMT):
Unless there is something proprietary in your files you should post as much information about the steps you took up to this point (commands you've run) and your config files. There are many, many people here who love to help, but they often don't want to go fishing for info, so sharing as much as you can upfront will get you the quickest resolution

andyke (Mon, 20 Jan 2020 07:43:32 GMT):
Okay, I first created my crpto-config.yaml file and ran the command to generate the certs. Then uploaded the configtx.yaml file and ran export FABRIC_CFG_PATH=$PWD, then ran the command ../bin/configtxgen -profile ProfileName -outputBlock ./channel-artifacts/genesis.block and that's where the error is

Atomx (Mon, 20 Jan 2020 08:25:25 GMT):
Hi everyone, Anyone has an idea about these problems? I didn't find any solution from 1 month, others have the same problems but no one can help. (in particolar error 14 from first link) https://stackoverflow.com/questions/52773529/hyperledger-fabric-nodejs-sdk-eventhub-has-been-shutdown https://lists.hyperledger.org/g/fabric/topic/orderer_service_unavailable/29200613?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,29200613 Only when the network is deployed by Cloud provider. Thank you very much, i'm going crazy :persevere:

andyke (Mon, 20 Jan 2020 08:28:35 GMT):
Yay! I have fixed it. Thanks a lot

davidkel (Mon, 20 Jan 2020 08:43:57 GMT):
what version of fabric and node-sdk are you using ?

Atomx (Mon, 20 Jan 2020 08:54:29 GMT):
"fabric-ca-client": "1.2.2", "fabric-client": "1.2.2" Fabric version 1.2 (AWS Managed Blockchain)

davidkel (Mon, 20 Jan 2020 09:02:48 GMT):
Then the problem you are facing is likely to be GRPC not keeping connections alive You need to specify some grpc options to keep connections live ``` "grpcOptions": { "grpc.keepalive_time_ms": 120000, "grpc.http2.min_time_between_pings_ms": 120000, "grpc.keepalive_timeout_ms": 20000, "grpc.http2.max_pings_without_data": 0, "grpc.keepalive_permit_without_calls": 1 } ``` You can add these to your connection profile for every peer/orderer defined. Can't remember the exact format for the connection profile but it should be easy to find a reference to it somewher

davidkel (Mon, 20 Jan 2020 09:02:48 GMT):
Then the problem you are facing is likely to be GRPC not keeping connections alive You need to specify some grpc options to keep connections live ``` "grpcOptions": { "grpc.keepalive_time_ms": 120000, "grpc.http2.min_time_between_pings_ms": 120000, "grpc.keepalive_timeout_ms": 20000, "grpc.http2.max_pings_without_data": 0, "grpc.keepalive_permit_without_calls": 1 } ``` You can add these to your connection profile for every peer/orderer defined. Can't remember the exact format for the connection profile but it should be easy to find a reference to it somewhere

davidkel (Mon, 20 Jan 2020 09:02:48 GMT):
Then the problem you are facing is likely to be GRPC not keeping connections alive You need to specify some grpc options to keep connections live ``` "grpcOptions": { "grpc.keepalive_time_ms": 120000, "grpc.http2.min_time_between_pings_ms": 120000, "grpc.keepalive_timeout_ms": 20000, "grpc.http2.max_pings_without_data": 0, "grpc.keepalive_permit_without_calls": 1 } ``` You can add these to your connection profile for every peer/orderer defined. Can't remember the exact format for the connection profile but it should be easy to find a reference to it somewhere. They may need tweaking for your specific provider of course as it is your provider terminating the connections because it thinks they aren't being used.

davidkel (Mon, 20 Jan 2020 09:02:48 GMT):
Then the problem you are facing is likely to be GRPC not keeping connections alive You need to specify some grpc options to keep connections live ``` "grpcOptions": { "grpc.keepalive_time_ms": 120000, "grpc.http2.min_time_between_pings_ms": 120000, "grpc.keepalive_timeout_ms": 20000, "grpc.http2.max_pings_without_data": 0, "grpc.keepalive_permit_without_calls": 1 } ``` You can add these to your connection profile for every peer/orderer defined. Can't remember the exact format for the connection profile but it should be easy to find a reference to it somewhere. They may need tweaking for your specific provider of course as it is your provider terminating the connections because it thinks they aren't being used, so you might want to raise a support ticket with your provider.

Atomx (Mon, 20 Jan 2020 09:11:48 GMT):
I thought this is a network issue. (everyone replied so) this is similar to my connection profile , the problem only happens sometimes, or when it has not been used for some time https://github.com/aws-samples/non-profit-blockchain/blob/master/ngo-rest-api/connection-profile/ngo-connection-profile-sample.yaml thank you so much for your availability, I'm losing hope, and I don't know how to justify it

Atomx (Mon, 20 Jan 2020 09:12:56 GMT):
Sorry, I just saw the complete answer, thank you very much. I will try with this configuration :grinning:

davidkel (Mon, 20 Jan 2020 09:19:03 GMT):
I would expect your provider to have provided help on this either through a support ticket or via specific documentation so worth checking

Atomx (Mon, 20 Jan 2020 09:34:23 GMT):
I will never thank you enough :grinning: :ok_hand:

Atomx (Mon, 20 Jan 2020 11:18:49 GMT):
sorry, I have another question, I'm watching source code of fabric-client and this config seems to be set by default, isn't it right? fabric-client --> config/default.json { "request-timeout" : 45000, "crypto-hash-algo": "SHA2", "crypto-keysize": 256, "crypto-hsm": false, "crypto-suite-software": { "EC": "fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js" }, "crypto-suite-hsm": { "EC": "fabric-client/lib/impl/bccsp_pkcs11.js" }, "channel-name-regx-checker":{ "pattern":"^[a-z][a-z0-9.-]*$", "flags":"" }, "key-value-store": "fabric-client/lib/impl/FileKeyValueStore.js", "certificate-authority-client": "fabric-ca-client", "nonce-size" : 24, "grpc-ssl-cipher-suites": "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384", "connection-options": { "grpc.max_receive_message_length": -1, "grpc.max_send_message_length": -1, "grpc.keepalive_time_ms": 120000, "grpc.http2.min_time_between_pings_ms": 120000, "grpc.keepalive_timeout_ms": 20000, "grpc.http2.max_pings_without_data": 0, "grpc.keepalive_permit_without_calls": 1 }, "network-config-schema" : { "1.0": "./impl/NetworkConfig_1_0.js" }, "grpc-wait-for-ready-timeout": 3000, "discovery-as-localhost": false, "discovery-cache-life": 300000, "override-discovery-protocol": null, "endorsement-handler": "fabric-client/lib/impl/DiscoveryEndorsementHandler.js", "commit-handler": "fabric-client/lib/impl/BasicCommitHandler.js" }

Purbaja (Mon, 20 Jan 2020 11:35:07 GMT):
Hi All, in fabric node.js chaincode can we extend one chaincode from another chaincode?

dineshthemacho1 (Mon, 20 Jan 2020 12:16:36 GMT):
Has joined the channel.

davidkel (Mon, 20 Jan 2020 12:31:10 GMT):
That change wasn't in the 1.2 fabric-client

Atomx (Mon, 20 Jan 2020 13:21:13 GMT):
My mistake, I had updated the client. Really thank you for your help :grinning:

sahaparamjit (Mon, 20 Jan 2020 14:00:19 GMT):
Has joined the channel.

sudeepb02 (Mon, 20 Jan 2020 14:36:52 GMT):
Has joined the channel.

sudeepb02 (Mon, 20 Jan 2020 14:36:56 GMT):
Is this chat active? I'm facing an issue with the commercial paper tutorial

sergeikus (Mon, 20 Jan 2020 15:30:40 GMT):
Hello! I noticed some strange thing, in my chaincode container when logging mode is INFO, I can print only `fmt.Printf()` but `fmt.Print()` will be ignored, is it OK or it is a bug ?

usamahabib95 (Mon, 20 Jan 2020 16:07:34 GMT):
want a organization in my hperledger fabric network that should have both orderer and peer nodes so if anyone can guide me how to set it up. ?

usamahabib95 (Mon, 20 Jan 2020 16:07:34 GMT):
I want a organization in my hperledger fabric network that should have both orderer and peer nodes so if anyone can guide me how to set it up. ?

gt (Mon, 20 Jan 2020 16:14:46 GMT):
Hi All, I'm working on a LDAP connected CA, the connection is up and fine. How can i register on ldap an identity as `--id.type peer` is in the fabric ca client? Is there any way to do a conversion for this from LDAP?

gt (Mon, 20 Jan 2020 16:14:46 GMT):
Hi All, I'm working on a LDAP connected CA, the connection is up and fine. How can i register on ldap an identity as `--id.type peer` as in in the fabric ca client? Is there any way to do a conversion for this from LDAP?

gt (Mon, 20 Jan 2020 16:14:46 GMT):
Hi All, I'm working on a LDAP connected CA, the connection is up and fine. How can i register on ldap an identity as `--id.type peer` as in the fabric ca client? Is there any way to do a conversion for this from LDAP?

GabrieleOcyan (Mon, 20 Jan 2020 16:20:51 GMT):
more in general, what would be best practice to register identities for a LDAP server to be used by a CA?

Prygan (Mon, 20 Jan 2020 16:27:07 GMT):
Has joined the channel.

Prygan (Mon, 20 Jan 2020 16:27:09 GMT):
Hi all, Super noob question about how hyperledger fabric verify transactions. I know that a client can invoke (`peer chaincode invoke`) a chaincode to create a transaction. I assume that this transaction will be sent to the orderer and to the over peers. My question is : will those peers rerun the chaincode invoked with the same parameters to verify the result ? I'm asking the questions because i've set a private network. All peers have chaincode installed. I run `peer chaincode invoke [...]` one one peer. A docker container is started and run the chaincode. However, no container is started on the other peers (that makes me think that they do not run the chaincode)

csd3458 (Mon, 20 Jan 2020 18:30:44 GMT):
Has joined the channel.

csd3458 (Mon, 20 Jan 2020 18:34:21 GMT):
Im trying to invoke a transaction on basic network The error that I get is: ~~~ [discovery] chaincodeQuery -> ERRO 06c Failed constructing descriptor for chaincode chaincodes: ,: cannot satisfy any principal combination ~~~ After a search I did i found that this error occurs when the peer's enroll id type does not match the smart contract endorsement policy that was configured when the smart contract was instantiated on the channel. The fix for that as described on this link: https://cloud.ibm.com/docs/services/blockchain-rhos?topic=blockchain-rhos-ibp-v2-troubleshooting#ibp-v2-troubleshooting-anchor-peer is that the only way to resolve this error is to delete the peer and create a new one with an enroll id that has the correct type peer. How am I doing that? I have succesfully install, instantiated and run contracts on byfn(first network sample). Whats different on the basic network other than the existence of a CA container. Thats how I instantianted the contract: ~~~~ peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":[]}' -P "AND ('Org1MSP.peer')" ~~~~ Thanks in advance

BrettLogan (Mon, 20 Jan 2020 19:51:24 GMT):
The Chaincode containers are created as part of the install and instantiate process, not the invoke. For each peer you need to install and instantiate the chaincode

CT123 (Mon, 20 Jan 2020 20:16:03 GMT):
*Q on world state queries.* According to 2.0beta docs, smart contracts in different chaincodes can't directly access each other's world state. Then assuming World State A and World State B, can I create an app that: -- queries *both* world states, -- analyzes some stuff between them, -- based on results of analysis, conducts a transaction that gets dropped onto the blockchain??? IF this is possible, doesn't or wouldn't a third chaincode container be created with its own world state? Is there a solution here? Thanks.

Prygan (Mon, 20 Jan 2020 21:16:43 GMT):
To deploy a chaincode on a basic private network, should I instantiate it on every peer? Installation is OK on every peers. However, I can instantiate (`peer chaincode instantiate`) it only on one peer. On the others, I get this error: `error code 500, msg chaincode with name 'mycc' already exists`

Prygan (Mon, 20 Jan 2020 21:18:50 GMT):
The issue is that the docker container containing the chaincode is only started on the peer where chaincode has been instantiated. I believe runnong invoke/query on an other peer will make it start a container (with the chaincode) but in this case I don't understand how can transactions be verified if a container is not always up (am I clear?)

Prygan (Mon, 20 Jan 2020 21:28:34 GMT):
or should `peer chaincode instantiate` be runned on only one peer ? In this case, should it also make the other peers instantiate the chaincode themselves ?

CT123 (Mon, 20 Jan 2020 22:25:37 GMT):
Found it *however* -- invokeChaincode() API via endorsement policy - but only if both chaincodes are installed on same peer. So how does this work in RAFT scenario?

chamodilokuge (Tue, 21 Jan 2020 05:52:34 GMT):
Hi all!! Can we install and instantiate two chaincodes in the same channel when one chaincode written in go language and the other written in javascript?

chamodilokuge (Tue, 21 Jan 2020 05:54:48 GMT):
and i would be obliged if anyone of you can share how this can be implemented?

mastersingh24 (Tue, 21 Jan 2020 10:47:15 GMT):
Of course. You can install multiple chaincodes on the same peer and they can be written in multiple langauges. You can also instantiate multiple chaincodes on the same channel as well. There is nothing special to do ... just instantiate each chaincode you want individually

chamodilokuge (Tue, 21 Jan 2020 11:11:04 GMT):
Thanks a lot for the response

Javi (Tue, 21 Jan 2020 13:17:34 GMT):
hi all! I have a question regarding how to achieve HA in hyperledger fabric. I have a network with 3 orgs and raft cluster, each organization has 2 peers and all peers from all orgs share the same chaincode. The chaincode policy is 2 of the 3 orgs members sign

Javi (Tue, 21 Jan 2020 13:18:15 GMT):
I have a script to send transactions to the network, but if I remove for example peer1 from org3 the channel is automatically closed and no transactions are validated

Javi (Tue, 21 Jan 2020 13:19:46 GMT):
I think that with my current network setup the transactions should be submitted always, what I'm missing?

AmerHijazi (Wed, 22 Jan 2020 07:02:25 GMT):
Has joined the channel.

AmerHijazi (Wed, 22 Jan 2020 07:02:25 GMT):
Hey All could you help me form where I could start to setup a Hyperledger Fabric ordering service>

dachrillz (Wed, 22 Jan 2020 15:58:46 GMT):
Which is the best supported language for the client-side SDK currently? I was kind of excited to write most of my stuff using Go, but the documentation seems pretty bare-bones currently. Should I expect Node to have better support and more importantly better documentation in the near future?

SUBHRA7 (Wed, 22 Jan 2020 17:51:35 GMT):
Has joined the channel.

SUBHRA7 (Wed, 22 Jan 2020 17:51:38 GMT):
Hi All, Can anyone tell me where the Couchdb data is stored and how can I see it ? using Hyperledger fabric version:1.4.0

medikent (Wed, 22 Jan 2020 18:17:08 GMT):
There aren't any how-to articles specific enough to one topic like an orderer. A good option is reviewing examples. The FabCar example is a good place to start.

medikent (Wed, 22 Jan 2020 18:20:34 GMT):
It is stored on each of the peers in your fabric network. If you use the Fabric Examples like `basic-network` with *fabcar* you can use localhost:5984 (couchdb container) to use the Couchdb console to view your data. See `basic-network/docker-compose.yml` in the *fabric-samples* repo. You can also use the Hyperledger Explorer to view chain data: https://github.com/hyperledger/blockchain-explorer

medikent (Wed, 22 Jan 2020 18:21:01 GMT):
I use the Java SDK and recommend it. I'm sure the Node SDK is great as well. The Go SDK is lagging behind.

medikent (Wed, 22 Jan 2020 18:21:34 GMT):
What do you mean by submitted always?

Javi (Wed, 22 Jan 2020 18:22:56 GMT):
the transaction should be validated and saved if one peer fails

medikent (Wed, 22 Jan 2020 18:25:43 GMT):
Is the endorsement policy in use overly restrictive and thus causing transaction rejection?

Javi (Wed, 22 Jan 2020 18:29:01 GMT):
"OutOf(2, 'Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')"

Javi (Wed, 22 Jan 2020 18:29:19 GMT):
my chaincode is installed on all peers of 3 orgs

medikent (Wed, 22 Jan 2020 18:29:44 GMT):
Maybe your peers are not members. Have you tried Org#MSP.peer?

medikent (Wed, 22 Jan 2020 18:30:57 GMT):
From the docs: Here are a few examples of valid principals: 'Org0.admin': any administrator of the Org0 MSP 'Org1.member': any member of the Org1 MSP 'Org1.client': any client of the Org1 MSP 'Org1.peer': any peer of the Org1 MSP

medikent (Wed, 22 Jan 2020 18:31:04 GMT):
Here are a few examples of valid principals: 'Org0.admin': any administrator of the Org0 MSP 'Org1.member': any member of the Org1 MSP 'Org1.client': any client of the Org1 MSP 'Org1.peer': any peer of the Org1 MSP

medikent (Wed, 22 Jan 2020 18:31:17 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html#endorsement-policy-syntax

Javi (Wed, 22 Jan 2020 18:33:15 GMT):
same behavior using .peer

SUBHRA7 (Wed, 22 Jan 2020 18:34:22 GMT):
@medikent Thanks for you reply

Jeremy (Wed, 22 Jan 2020 18:58:57 GMT):
@yacovm Thanks for your help earlier. I tried rolling back the orderer by manually replacing the block data offline with data from a peer, but the raft indexes still reference the blocks I deleted, so that didn't work. I could also probably find a way to trim the raft data, but that seemed more complicated. Do you have any thoughts on this or about rolling back the private data on the peers?

yacovm (Wed, 22 Jan 2020 18:59:28 GMT):
Raft indices in the WAL?

Jeremy (Wed, 22 Jan 2020 19:00:03 GMT):
Yeah the blocks seem to be stored in the WAL as well

yacovm (Wed, 22 Jan 2020 19:00:14 GMT):
damn :facepalm:

yacovm (Wed, 22 Jan 2020 19:00:19 GMT):
I sometimes hate Raft

Jeremy (Wed, 22 Jan 2020 19:00:22 GMT):
Hah

Jeremy (Wed, 22 Jan 2020 19:00:45 GMT):
I was looking at adapting one of the raft tests to try to delete data offline, but I didn't get that far yesterday.

yacovm (Wed, 22 Jan 2020 19:01:17 GMT):
@guoger

yacovm (Wed, 22 Jan 2020 19:01:22 GMT):
you're the guy for Raft WALs

yacovm (Wed, 22 Jan 2020 19:01:29 GMT):
can you help him out? :thinking:

Jeremy (Wed, 22 Jan 2020 19:02:03 GMT):
Thanks. Not sure if this is the best approach still, but it seems like it might be simpler than messing with the private data and all related indexes on the peers.

yacovm (Wed, 22 Jan 2020 19:02:04 GMT):
sorry Jeremy I didn't implement the WAL in Raft so I don't know and too lazy to dig in the code today

Jeremy (Wed, 22 Jan 2020 19:02:32 GMT):
no worries, thanks for your help anyway

Antimttr (Wed, 22 Jan 2020 21:47:49 GMT):
any word on when a python client could be coming?

BrettLogan (Wed, 22 Jan 2020 22:13:12 GMT):
https://github.com/hyperledger/fabric-sdk-py

Antimttr (Wed, 22 Jan 2020 22:25:31 GMT):
nice

RaphD (Thu, 23 Jan 2020 00:32:31 GMT):
Has joined the channel.

RaphD (Thu, 23 Jan 2020 00:39:35 GMT):
I'm having problems deploying Fabric across multiple LAN's. I'm not quite sure how to handle firewalls when setting up a network like this. So far I've used a VPN to resolve this, but logically speaking this isn't a scaleable solution. Does anyone have suggestions?

iambatman (Thu, 23 Jan 2020 07:03:51 GMT):
Has joined the channel.

iambatman (Thu, 23 Jan 2020 07:03:51 GMT):
Does anybody have an answer to this question . https://stackoverflow.com/questions/59872122/hyperledger-fabric0-sub-policies-were-satisfied-but-this-policy-requires-1-of/59873070#59873070

YashwanthP (Thu, 23 Jan 2020 10:12:39 GMT):
Has joined the channel.

YashwanthP (Thu, 23 Jan 2020 10:12:40 GMT):
How to implement Search engine to search data in block chain(hyper ledger fabric)

YashwanthP (Thu, 23 Jan 2020 10:13:54 GMT):
it is better to use java sdk

orcunoruc (Thu, 23 Jan 2020 10:17:00 GMT):
Has joined the channel.

iambatman (Thu, 23 Jan 2020 10:17:52 GMT):
Anybody have an answer for this https://stackoverflow.com/questions/59876137/hyperledger-fabric-peer-update-failed-signature-set-did-not-satisfy-policy

sergeikus (Thu, 23 Jan 2020 10:24:42 GMT):
Hello, I'm executing invoke function in my Go-SDK but getting this message in SDK log `[fabsdk/client] 2020/01/23 10:19:09 UTC - invoke.(*SelectAndEndorseHandler).Handle -> WARN error getting additional endorsers: error getting additional endorsers: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes: chaincodes:` It takes some time to make the transaction, strangely too long but it finally gets successful result, so I think this message is somehow related to delay of the result. Maybe someone have a hint on what is wrong ? One thing that bothers me is that I actually don't have a chaincode named "_lifecycle".

yacovm (Thu, 23 Jan 2020 10:45:12 GMT):
@sergeikus - the _lifecycle is a built in chaincode in Fabric v2.0

yacovm (Thu, 23 Jan 2020 10:46:03 GMT):
@sstone1 / @bestbeforetoday - why is the SDK asking discovery for `_lifecycle` ?

bestbeforetoday (Thu, 23 Jan 2020 10:46:03 GMT):
Has joined the channel.

sstone1 (Thu, 23 Jan 2020 10:49:03 GMT):
@yacovm looks like a fix was merged for this in december: https://github.com/hyperledger/fabric-sdk-go/pull/3

sstone1 (Thu, 23 Jan 2020 10:49:03 GMT):
@yacovm looks like a fix was merged for this in december: https://github.com/hyperledger/fabric-sdk-go/pull/35

f23h (Thu, 23 Jan 2020 10:49:17 GMT):
Has joined the channel.

sergeikus (Thu, 23 Jan 2020 10:59:02 GMT):
hmm, I'm using `github.com/hyperledger/fabric-sdk-go v1.0.0-beta1` and still getting this message

f23h (Thu, 23 Jan 2020 10:59:27 GMT):
Hello, i have a question about go-sdk. How to create a configuration for my sdk example if i want to use a basic network?

f23h (Thu, 23 Jan 2020 10:59:27 GMT):
Hello, i have a question about go-sdk. How to create a configuration for my sdk example if i want to use a basic network? I tried to use the configuration from the Java SDK tutorial, but I have an error with initializing identity.

sstone1 (Thu, 23 Jan 2020 10:59:31 GMT):
beta1 was created before that PR was merged

sergeikus (Thu, 23 Jan 2020 11:00:08 GMT):
oke

sergeikus (Thu, 23 Jan 2020 11:01:37 GMT):
oh damn, yeah, beta1 was in september, is there a possibility to use latest code ?

sergeikus (Thu, 23 Jan 2020 11:16:15 GMT):
oke, sorry, this was a quite dumb question :(

yacovm (Thu, 23 Jan 2020 11:22:29 GMT):
thanks

mrudav.shukla (Thu, 23 Jan 2020 11:52:22 GMT):
I am facing an issue similar to this: https://stackoverflow.com/questions/56735065/chaincode-is-instantiated-but-doesnt-appear-in-the-list-of-instantiated-codes. In my case, I am able to fetch the blocks using peer channel fetch command. However, though instantiation is successful, I am not able to get the list of instantiated chaincodes. Has anyone faced similar issue? I am using aws eks.

adianimesh (Thu, 23 Jan 2020 16:30:51 GMT):
Has joined the channel.

adianimesh (Thu, 23 Jan 2020 16:30:52 GMT):
Hi all I am trying to integrate hyperledger fabric with HSM using PKCS 11 but I am getting an error during default channel creation. Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo. I would like to add that Peer, Orderer and CA are all up. Steps followed : generated peer , orderer and ca images with GOTAGS =pkcs11 I have changed core.yaml, orderer.yaml to use PKCS11 as default bccsp .

adianimesh (Thu, 23 Jan 2020 16:30:52 GMT):
` # BCCSP (Blockchain crypto provider): Select which crypto implementation or # library to use BCCSP: Default: PKCS11 # Settings for the SW crypto provider (i.e. when DEFAULT: SW) SW: # TODO: The default Hash and Security level needs refactoring to be # fully configurable. Changing these defaults requires coordination # SHA2 is hardcoded in several places, not only BCCSP Hash: SHA2 Security: 256 # Location of Key Store FileKeyStore: # If "", defaults to 'mspConfigPath'/keystore KeyStore: msp/keystore # Settings for the PKCS#11 crypto provider (i.e. when DEFAULT: PKCS11) PKCS11: # Location of the PKCS11 module library Library: /etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so # Token Label Label: test # User PIN Pin: Password Hash: SHA2 Security: 256 SoftwareVerify: true SensitiveKeys: true #FileKeyStore: # KeyStore: msp/keystore`

adianimesh (Thu, 23 Jan 2020 17:11:06 GMT):
Hello I am trying hyperledger fabric integration with HSM using PKCS11 as default BCCSP. Steps followed : configured peer and orderer nodes using `core.yaml` and `orderer.yaml` to use PKCS11 2. added `GOTAGS=pkcs11` during peer, orderer and ca image generation The ca, peer and orderer nodes are created and running. But during default channel creation I get an error `Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo` The command that is used is `peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block` . I found a similar issue https://jira.hyperledger.org/browse/FAB-15989. Can someone please provide me pointers for fixing the same ?

YashShukla (Fri, 24 Jan 2020 05:07:17 GMT):
Hey Guys I had a question. can the orderer nodes read all the transactions passing through them even the transactions from the channels of which they are not a part of?

YashShukla (Fri, 24 Jan 2020 05:07:17 GMT):
Hey Guys I have a question. can the orderer nodes read all the transactions passing through them even the transactions from the channels of which they are not a part of?

adianimesh (Fri, 24 Jan 2020 05:47:17 GMT):
[object Object]

adianimesh (Fri, 24 Jan 2020 05:49:07 GMT):
Hello I am trying hyperledger fabric integration with HSM using PKCS11 as default BCCSP. Steps followed : configured peer and orderer nodes using `core.yaml` and `orderer.yaml `to use PKCS11 2. added GOTAGS=pkcs11 during peer, orderer and ca image generation The ca, peer and orderer nodes are created and running. But during default channel creation I get an error `Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo` The command that is used is `peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block`. I found a similar issue https://jira.hyperledger.org/browse/FAB-15989. Can someone please provide me pointers if they have faced the same ?

lionelronaldo (Fri, 24 Jan 2020 08:22:16 GMT):
I think yes. Only if private data is used they cannot read it. But I'm not 100% sure.

mvkillu (Fri, 24 Jan 2020 11:26:10 GMT):
Hello there. Is Windows 10 supported for Hyperledger Fabric development, or should I switch to Ubuntu?

erjulioaguiar (Fri, 24 Jan 2020 11:50:31 GMT):
Has joined the channel.

erjulioaguiar (Fri, 24 Jan 2020 11:57:26 GMT):
Hi guys,``` I'm trying query a contract made in nodejs, however I've been trouble, it's returned the follow error: "* _initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied*".``` Apparently, the error is this code `const network = await gateway.getNetwork('healthchannel');` ``` ```

erjulioaguiar (Fri, 24 Jan 2020 11:57:26 GMT):
Hi guys,``` I'm trying query a contract made in nodejs, however I've been trouble, it's returned the follow error: "* _initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied*".``` Apparently, the error is this code `const network = await gateway.getNetwork('healthchannel');` ```

erjulioaguiar (Fri, 24 Jan 2020 11:57:26 GMT):
Hi guys,``` I'm trying query a contract made in nodejs, however I've been trouble, it's returned the follow error: "* _initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied*".``` Apparently, the error is this code `const network = await gateway.getNetwork('healthchannel');`

davidkel (Fri, 24 Jan 2020 12:01:50 GMT):
Personally I would use `ubuntu`, windows doesn't provide a great development experience at the moment especially around docker. Things will improve when windows ships with WSL2 and docker moves to using WSL2 which I guess is sometime this year

adianimesh (Fri, 24 Jan 2020 12:11:36 GMT):
Hi all, `I am trying hyperledger fabric integration with HSM using PKCS11 as default BCCSP. Steps followed : configured peer and orderer nodes using core.yaml and orderer.yaml to use PKCS11 2. added GOTAGS=pkcs11 during peer, orderer and ca image generation The ca, peer and orderer nodes are created and running. But during default channel creation I get an error Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo The command that is used is peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block.` I found a similar issue https://jira.hyperledger.org/browse/FAB-15989. Can someone please provide me pointers if they have faced the same ?

georgi (Fri, 24 Jan 2020 14:37:59 GMT):
Has joined the channel.

Antimttr (Fri, 24 Jan 2020 16:38:30 GMT):
So for the default docker images that are distributed with hyperledger fabric, like the peer and cli images, do they contain a version of python? I'm thinking about using python to script complex processes like joining an org to a channel. Is this possible with the image as it exists or would i need to do python installs as part of the process?

Antimttr (Fri, 24 Jan 2020 16:39:00 GMT):
tldr: can you use python out of the box to replace bash scripts to do complex processes?

BrettLogan (Fri, 24 Jan 2020 16:39:46 GMT):
fabric-tools does not contain a python installation

Antimttr (Fri, 24 Jan 2020 16:40:24 GMT):
do you see any major issues if i just install python inside like a cli or a peer docker image while its running?

BrettLogan (Fri, 24 Jan 2020 16:41:49 GMT):
You can install python. `tools` is just the golang alpine container with the fabric binaries in it

BrettLogan (Fri, 24 Jan 2020 16:41:49 GMT):
Nope. `tools` is just the golang alpine container with the fabric binaries in it

BrettLogan (Fri, 24 Jan 2020 16:41:49 GMT):
https://github.com/hyperledger/fabric/blob/master/images/tools/Dockerfile

SafwenTrabelsi (Fri, 24 Jan 2020 17:36:20 GMT):
Hello, I passed to fabric version 2.0 and I have a problem with the instantiation of the chaincode I get this error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'myc' has been migrated to the new lifecycle, LSCC is now read-only knowing that I update the capabilities, the channels and the application to 2_0 version

icordoba (Fri, 24 Jan 2020 19:15:02 GMT):
Hello, I get the following error sometimes in my Hyperledger Fabric peer node (v1.4). Some times the system works ok after it but once I have seen that the ContractRouter is started completely after that error, when the chaincode needs to be executed. Any idea what this may be cause with? Can it be a problem if the underlying docker container running the chaincode being restarted? (That would be pod nid1-blockchain-hapeer1-mrrc-0.9.8 as shown in logs)

icordoba (Fri, 24 Jan 2020 19:15:04 GMT):
How can I check the logs in the DinD docker (I use Kubernetes) of the dockers running chaincode? (I'm using Java chaincode):

icordoba (Fri, 24 Jan 2020 19:15:16 GMT):
2020-01-24 11:57:23.623 UTC [chaincode] ProcessStream -> ERRO 1fc9e handling chaincode support stream: rpc error: code = Canceled desc = context canceled receive failed github.com/hyperledger/fabric/core/chaincode.(*Handler).ProcessStream /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:442 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).HandleChaincodeStream /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:191 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Register /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:196 github.com/hyperledger/fabric/core/chaincode/accesscontrol.(*interceptor).Register /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/accesscontrol/interceptor.go:57 github.com/hyperledger/fabric/protos/peer._ChaincodeSupport_Register_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/chaincode_shim.pb.go:1069 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processStreamingRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1124 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1212 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1337 2020-01-24 11:57:23.693 UTC [dockercontroller] func2 -> INFO 1fc9f Container nid1-blockchain-hapeer1-mrrc-0.9.8 has closed its IO channel

greg2git (Sat, 25 Jan 2020 13:34:25 GMT):
agreed, MSFT are not interested in making Windows more open source, too much tech debt and too many vulnerabilities, imho

Tim (Sat, 25 Jan 2020 17:02:59 GMT):
Hi, when I send a request from the NodeJs Sdk with a connection profil, let's say I have two peers in this connection profil, which peer will be choosen ??

gentios (Sat, 25 Jan 2020 22:13:29 GMT):
Hi everyone I am getting the following error while I am trying to deploy HLF Network in Kubernetes: z

gentios (Sat, 25 Jan 2020 22:13:29 GMT):
Hi everyone I am getting the following error while I am trying to deploy HLF Network in Kubernetes: ```2020-01-19 11:59:34,968 misc INFO kubectl exec beta-peer1-hlf-peer-7f647985fc-tpbz7 -n beta -- peer channel list 2020-01-19 11:59:36,035 misc ERROR Command failed with CalledProcessError: 2020-01-19 11:59:36,036 misc ERROR 2020-01-19 10:59:35.162 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-01-19 10:59:35.165 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: error getting endorser client for channel: endorser client failed to connect to beta.nephos.local:443: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup beta.nephos.local on 10.96.0.10:53: no such host" command terminated with exit code 1 ```

gentios (Sat, 25 Jan 2020 22:13:29 GMT):
Hi everyone I am getting the following error while I am trying to deploy HLF Network in Kubernetes: ```2020-01-19 11:59:34,968 misc INFO kubectl exec beta-peer1-hlf-peer-7f647985fc-tpbz7 -n beta -- peer channel list 2020-01-19 11:59:36,035 misc ERROR Command failed with CalledProcessError: 2020-01-19 11:59:36,036 misc ERROR 2020-01-19 10:59:35.162 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-01-19 10:59:35.165 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: error getting endorser client for channel: endorser client failed to connect to beta.nephos.local:443: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup beta.nephos.local on 10.96.0.10:53: no such host" command terminated with exit code 1 ``` This is caused only if I am enabling an ingress controller to expose the peer. I am using Nephos from hyperledger-labs and DigitalOcean as a kubernetes provider

gentios (Sat, 25 Jan 2020 22:13:29 GMT):
Hi everyone I am getting the following error while I am trying to deploy HLF Network in Kubernetes: ```2020-01-19 11:59:34,968 misc INFO kubectl exec beta-peer1-hlf-peer-7f647985fc-tpbz7 -n beta -- peer channel list 2020-01-19 11:59:36,035 misc ERROR Command failed with CalledProcessError: 2020-01-19 11:59:36,036 misc ERROR 2020-01-19 10:59:35.162 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-01-19 10:59:35.165 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable Error: error getting endorser client for channel: endorser client failed to connect to beta.nephos.local:443: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup beta.nephos.local on 10.96.0.10:53: no such host" command terminated with exit code 1 ``` This is caused only if I am enabling an ingress controller to expose the peer. I am using Nephos from hyperledger-labs and DigitalOcean as a kubernetes provider and minikube for local deployments

nitishbhardwaj19 (Sun, 26 Jan 2020 09:07:50 GMT):
Hi, Has anyone ever tried integrating Azure Key-vault with Peers and Orderers? Theoretically, it's possible to connect any HSM service. But, I haven't found any references about an actual HSM service being integrated with Fabric components. Plus, Key-vault has it's own way to be accessed, not sure what would be the right configuration for Fabric components to connect with it. Please share your thoughts if anyone has ever tried this. It would be really helpful, thanks.

Alexoid83 (Sun, 26 Jan 2020 10:18:24 GMT):
Hi. When starting for example an orderer, you are able to overwrite orderer.yaml configuration values using environment variables. But why isn't it possible to provide configuration via env variable if the corresponding yaml entry is missing. I tried to provide an empty orderer.yaml (orderer also panics if there is no orderer.yaml at all) and set everything via environment variables. When starting the orderer the missing configuration values seem to be set to defaults, but I cannot overwrite / set them via env vars enymore (e.g. ORDERER_GENERAL_LOCALMSPDIR). Shouldn't the config tool (I guess viper) take env vars into consideration, if the yaml file does not provide them?

YashShukla (Sun, 26 Jan 2020 12:04:01 GMT):
is there any link for the dev mode to build compile and run java Chaincode? similar to this one `https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#testing-using-dev-mode` which is for go

leo5th (Sun, 26 Jan 2020 13:56:49 GMT):
Has joined the channel.

abityildiz (Sun, 26 Jan 2020 14:28:13 GMT):
hi all,i have a setup beta 2.0 HLf.i have setup raft orderer host1 machine.in the host2 machine,when i approving i get the this error: Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050 Error: timed out waiting for txid on all peers .Why do i get this error?Can you help me please?

RafaelAPB (Sun, 26 Jan 2020 14:29:48 GMT):
Has joined the channel.

RafaelAPB (Sun, 26 Jan 2020 14:29:49 GMT):
Hello. I'm running and adapting chaincode dev mode [https://github.com/hyperledger/fabric-samples/tree/master/chaincode-docker-devmode], for javascript chaincode, and for Fabric 2.0-beta. I launch the network and adapt the script.sh (client) to run: set -e peer channel create -c myc -f myc.tx -o orderer:7050 peer channel join -b myc.block cd chaincode peer lifecycle chaincode package chaincode.tar.gz --lang node --path ./ --label justicechain_1 peer lifecycle chaincode install chaincode.tar.gz Nonetheless, I find the following error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output cp: can't stat '/chaincode/input/src/.': No such file or directory " /opt/gopath/src/chaincodedev/chaincode # I couldn't find anything online regarding this issue. Any ideas?

RafaelAPB (Sun, 26 Jan 2020 14:29:49 GMT):
Hello. I'm running and adapting chaincode dev mode [https://github.com/hyperledger/fabric-samples/tree/master/chaincode-docker-devmode], for javascript chaincode, and for Fabric 2.0-beta. I launch the network and adapt the script.sh (client) to run: set -e peer channel create -c myc -f myc.tx -o orderer:7050 peer channel join -b myc.block cd chaincode peer lifecycle chaincode package chaincode.tar.gz --lang node --path ./ --label justicechain_1 peer lifecycle chaincode install chaincode.tar.gz Nonetheless, I find the following error: ** Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output cp: can't stat '/chaincode/input/src/.': No such file or directory " /opt/gopath/src/chaincodedev/chaincode # ** I couldn't find anything online regarding this issue. Any ideas?

RafaelAPB (Sun, 26 Jan 2020 14:29:49 GMT):
Hello. I'm running and adapting chaincode dev mode [https://github.com/hyperledger/fabric-samples/tree/master/chaincode-docker-devmode], for javascript chaincode, and for Fabric 2.0-beta. I launch the network and adapt the script.sh (client) to run: set -e peer channel create -c myc -f myc.tx -o orderer:7050 peer channel join -b myc.block cd chaincode peer lifecycle chaincode package chaincode.tar.gz --lang node --path ./ --label justicechain_1 peer lifecycle chaincode install chaincode.tar.gz Nonetheless, I find the following error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output cp: can't stat '/chaincode/input/src/.': No such file or directory " /opt/gopath/src/chaincodedev/chaincode # I couldn't find anything online regarding this issue. Any ideas?

OumarKouferidji (Sun, 26 Jan 2020 15:45:30 GMT):
Someone can help ?? Wallet path: /home/oumar/Blockchain/PING_Project/network/AIRBUS/enroll_register_query/airbus/wallet Failed to register user "user1": TypeError: Cannot read property 'EC' of undefined

BrettLogan (Sun, 26 Jan 2020 18:15:41 GMT):
The chief limitation is you need an HSM that implements the necessary functions on the PKCS11 interface. AWS HSM for example does not implement the entire PKCS11 interface and thus does not work with Fabric (at the moment, though there is work ongoing in Fabric to provide alternative methods for using it). Azure Key Vault is not an HSM, it is an HSM enabled Vault for storing secrets., i.e., it replaces Kubernetes secrets. You would need to use the Azure Dedicated HSM and then verify it has an available PKCS11 enabled library that you can download to be consumed by Fabric (all of this assuming it implements the entire PKCS11 interface)

BrettLogan (Sun, 26 Jan 2020 18:15:41 GMT):
The chief limitation is you need an HSM that implements the necessary functions on PKCS11 interface. AWS HSM for example does not implement the entire PKCS11 interface and thus does not work with Fabric. Azure Key Vault is not an HSM, it is an HSM enabled Vault for storing secrets., i.e., it replaces Kubernetes secrets. You would need to use the Azure Dedicated HSM and then verify it has an available PKCS11 enabled library that you can download to be consumed by Fabric (all of this assuming it implements the entire PKCS11 interface)

BrettLogan (Sun, 26 Jan 2020 18:15:41 GMT):
The chief limitation is you need an HSM that implements the necessary functions on the PKCS11 interface. AWS HSM for example does not implement the entire PKCS11 interface and thus does not work with Fabric. Azure Key Vault is not an HSM, it is an HSM enabled Vault for storing secrets., i.e., it replaces Kubernetes secrets. You would need to use the Azure Dedicated HSM and then verify it has an available PKCS11 enabled library that you can download to be consumed by Fabric (all of this assuming it implements the entire PKCS11 interface)

BrettLogan (Sun, 26 Jan 2020 18:17:05 GMT):
Supposedly Dedicated HSM has a PKCS11 library, but I can't say for sure it implements the entire interface: https://docs.microsoft.com/en-us/azure/dedicated-hsm/faq#q-what-sdks-apis-client-software-is-available-to-use-with-dedicated-hsm

BrettLogan (Sun, 26 Jan 2020 18:17:05 GMT):
Supposedly Dedicated HSM has a PKCS11 library, you just need to make sure it implements everything necessary https://docs.microsoft.com/en-us/azure/dedicated-hsm/faq#q-what-sdks-apis-client-software-is-available-to-use-with-dedicated-hsm

mvkillu (Mon, 27 Jan 2020 02:03:00 GMT):
I am having trouble running fabcar example on Windows 10 home. Could somebody help? https://stackoverflow.com/questions/59924467/cannot-run-fabcar-example-in-hyperledger-fabric-on-windows

nitishbhardwaj19 (Mon, 27 Jan 2020 04:13:24 GMT):
@BrettLogan Thanks for the detail explanation. I will check the details about Azure HSM and share my findings here, really appreciate your quick response.

lionelronaldo (Mon, 27 Jan 2020 07:11:48 GMT):
This seems as if beta.nephos.local is resolving to 10.96.0.10:53, but at this ClusterIP there is nothing. First look up your services with `kubectl get service -A`, and see if 10.96.0.10 exists. Why does it point to port 53? All ports I've come in contact with so far were ports 7050, 7051, 7053 and other high ports, but definitely not a low port like 53. I thought once you enable the ingress, it will point to an address outside of your cluster..? Just to make sure, you installed nginx-ingress controller beforehand right?

gentios (Mon, 27 Jan 2020 09:08:53 GMT):
Idk that's why it is confusing for me also

lionelronaldo (Mon, 27 Jan 2020 12:01:28 GMT):
Hi, does anyone know how I can interact with HF on a grpc level? For example by using grpcurl .

lionelronaldo (Mon, 27 Jan 2020 12:01:28 GMT):
Hi, does anyone know how I can interact with HF on a grpc level? For example by using "grpcurl"

lionelronaldo (Mon, 27 Jan 2020 12:01:28 GMT):
Hi, does anyone know how I can interact with HF on a grpc level? For example by using "grpcurl". I cannot find any grpc methods for HF :(

Rajatsharma (Mon, 27 Jan 2020 12:02:31 GMT):
Hi, I wanted to know What if I've lost the secret at registration. Is there anyway to retrieve that. Using the fabric-node-sdk ?

lionelronaldo (Mon, 27 Jan 2020 13:37:43 GMT):
What is the sense of using Idemix, if the organizational unit is always revealed? (https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemix.html) Aren't most of HF use cases based on different orgs wanting to interact with each other? Inside a company it has to be assumed that everything is known, so to preserve an identity just inside an organization doesn't provide a lot of value, does it?

d8bhatta (Mon, 27 Jan 2020 13:40:49 GMT):
Hello, what hyperledger product do you guys recommend me to use to develop supply chain management project? I have req. of supply chain management kid of PoC which needs to have web interface to interact by users

Javi (Mon, 27 Jan 2020 15:54:11 GMT):
regarding running hyperledger in k8s, how chaincode deployment is handled? do you need privileged containers?

gentios (Mon, 27 Jan 2020 16:04:22 GMT):
@Javi it depends, you can install them through the SDK or just copy them to the Peer POD and execute the commands

Javi (Mon, 27 Jan 2020 16:12:10 GMT):
yes, but if I choose to install them using the SDK or from the peer pod, both methods are executed from peers

Javi (Mon, 27 Jan 2020 16:13:08 GMT):
my issue is not how to install them in peers, is how chaincode communicates with peers

PauloQuerido (Mon, 27 Jan 2020 16:24:07 GMT):
Hi, I'm getting the following error in Windows 10 while trying to run the command to install samples, binaries, and Docker images.

PauloQuerido (Mon, 27 Jan 2020 16:25:19 GMT):
Hi, I'm getting the following error in Windows 10 while trying to run the command to install samples, binaries, and Docker images. `$ curl -sSL http://bit.ly/2ysbOFE | bash -s Clone hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo and checkout v1.4.4 Cloning into 'fabric-samples'... remote: Enumerating objects: 45, done. remote: Counting objects: 100% (45/45), done. remote: Compressing objects: 100% (41/41), done. remote: Total 4636 (delta 15), reused 9 (delta 4), pack-reused 4591 Receiving objects: 100% (4636/4636), 1.66 MiB | 3.04 MiB/s, done. Resolving deltas: 100% (2294/2294), done. Note: switching to 'v1.4.4'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at bc72f3e Remove Stalebot Pull Hyperledger Fabric binaries ===> Downloading version 1.4.4 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-windows-amd64-1.4.4.tar.gz main: line 70: wget: command not found tar (child): hyperledger-fabric-windows-amd64-1.4.4.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now rm: cannot remove 'hyperledger-fabric-windows-amd64-1.4.4.tar.gz': No such file or directory ==> There was an error downloading the binary file. ------> 1.4.4 platform specific fabric binary is not available to download <----`

imperialWalrus (Mon, 27 Jan 2020 17:52:18 GMT):
Has joined the channel.

imperialWalrus (Mon, 27 Jan 2020 17:52:18 GMT):
Hi! Has anyone managed to connect a remote peer into a ibm blockchainplatform? I wanted to connect my RPI into the swarm but not sure where to even begin

PauloQuerido (Mon, 27 Jan 2020 17:57:58 GMT):
Hi, I'm having problems cloning the samples, binaries and docker images. The error is the following: Pull Hyperledger Fabric binaries ===> Downloading version 1.4.4 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-windows-amd64-1.4.4.tar.gz main: line 70: wget: command not found tar (child): hyperledger-fabric-windows-amd64-1.4.4.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now rm: cannot remove 'hyperledger-fabric-windows-amd64-1.4.4.tar.gz': No such file or directory ==> There was an error downloading the binary file. ------> 1.4.4 platform specific fabric binary is not available to download <----

someguy (Mon, 27 Jan 2020 18:36:37 GMT):
hey, can someone tell me in simple words, what happens in Fabric if 2 blocks get the consensus for the same asset at the same time?

someguy (Mon, 27 Jan 2020 18:36:58 GMT):
does it create another ramification of the world state?

someguy (Mon, 27 Jan 2020 20:37:38 GMT):
nvm, I figured it out. it follows the model execute-order-validate

someguy (Mon, 27 Jan 2020 20:37:56 GMT):
its deterministic transactions

jtwalker2000 (Mon, 27 Jan 2020 20:40:44 GMT):
Suggestion / help for : HLF v 1.4 - Cannot instantiate chaincode . Error message: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network dacn not found. No errors in bringing network up, chaincode installed successfully. NOT USING the fabric samples configuration

jtwalker2000 (Mon, 27 Jan 2020 20:40:44 GMT):
Suggestion / help for : HLF v 1.4 - Cannot instantiate chaincode . Error message: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network dacn [ here dacn is my network ]not found. No errors in bringing network up, chaincode installed successfully. NOT USING the fabric samples configuration

erjulioaguiar (Mon, 27 Jan 2020 22:56:20 GMT):
When I request function getNetwork('channel') as from "fabric-network" Node Fabric SDK, I receive the follow error : *"initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:channel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied "*

erjulioaguiar (Mon, 27 Jan 2020 22:56:20 GMT):
When I request function getNetwork('channel') as from "fabric-network" Node Fabric SDK, I receive the follow error : *initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:channel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied *

erjulioaguiar (Mon, 27 Jan 2020 22:56:20 GMT):
When I request function getNetwork('channel') as from "fabric-network" Node Fabric SDK, I receive the follow error : ``` initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:channel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied ```

erjulioaguiar (Mon, 27 Jan 2020 22:56:20 GMT):
When I request function getNetwork('channel') as from "fabric-network" Node Fabric SDK, I receive the follow error : ``` initializeInternalChannel: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:channel Discovery error:access denied Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 4 Peers. Last error was Error: Channel:healthchannel Discovery error:access denied ``` Anybody know how to fix it?

csd3458 (Tue, 28 Jan 2020 02:26:35 GMT):
Hey guys I've created a network configuration with 2 orgs, each one with 1 peer and CA. I've successfully installed and instantiated my chaincode on both peers But after invoking a transaction this error occurs on both peers: peer0.org1.example.com|2020-01-27 21:32:00.531 UTC [committer.txvalidator] validateTx -> ERRO 047 VSCCValidateTx for transaction txId = d18ad9c8c5e6aada47b7c8677676b4d748bf2ae16256c093ae8f9dfb0bf17779 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy peer0.org2.example.com|2020-01-27 21:32:00.531 UTC [committer.txvalidator] validateTx -> ERRO 069 VSCCValidateTx for transaction txId = d18ad9c8c5e6aada47b7c8677676b4d748bf2ae16256c093ae8f9dfb0bf17779 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy that's how I installed the chaincode on both peers: peer chaincode install -n mycc -v 1.0 -l node -p /opt/gopath/src/github.com/mychaincodes/ that's how I instantiated my contract peer chaincode instantiate -o orderer.example.com:7050 --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":[]}' -P "AND ('Org1MSP.member','Org2MSP.member')" and that's how I invoked transaction peer chaincode invoke -o orderer.example.com:7050 --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/ca/ca.example.com-cert.pem -C mychannel -n mycc --peerAddresses peer0.org1.example.com:7051 --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem -c '{"Args":["createMyAsset","001","Model X"]}' Thanks in advance

Suseel_Menon (Tue, 28 Jan 2020 06:17:56 GMT):
Has joined the channel.

Suseel_Menon (Tue, 28 Jan 2020 06:17:57 GMT):
Hi! Just wanted to ask if there is anyway to develop on Fabric using Clojure?

ahmetbilal (Tue, 28 Jan 2020 06:52:42 GMT):
Is the ledger-update a single transaction or consists of 2 transactions (one for first proposal and one for sending endorsements)?

net0410 (Tue, 28 Jan 2020 07:26:04 GMT):
Has joined the channel.

AmerHijazi (Tue, 28 Jan 2020 08:10:19 GMT):
we found org1 (or org2) can install a new version of the chaincode in its peer nodes and upgrade it with a new endorsement policy which only needs its endorsement. Then the org1 can change the ledger by itself without org2's endorsement. So the new version of the chaincode can do some bad things. Is this a security problem? What's the proper way to prevent this from happening?

lzaouche (Tue, 28 Jan 2020 09:17:47 GMT):
Has joined the channel.

sanket1211 (Tue, 28 Jan 2020 09:58:07 GMT):
[orderer.consensus.etcdraft] logSendFailure -> ERRO 001 Failed to send StepRequest to 4, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer4.example.com on 127.0.0.11:53: no such host" channel=testchainid node=2

sanket1211 (Tue, 28 Jan 2020 11:16:14 GMT):
Chaincode_custom Invoke certify panic: runtime error: index out of range panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x999ebd] goroutine 53 [running]: github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).triggerNextState(0xc00007f140, 0x0, 0xc000097500) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:35 +0x4d github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction.func1.1(0xc00007f140, 0xc0000daf20, 0xc000097500) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:247 +0x42 panic(0xb2f000, 0x13d4c90) /opt/go/src/runtime/panic.go:522 +0x1b5 main.(*SimpleChaincode).certify(0x1445e80, 0xcef4a0, 0xc0004ca160, 0xc0000b0310, 0xb, 0xb, 0x0, 0x0, 0x0, 0x0, ...) /chaincode/input/src/github.com/example_cc/go/example_cc.go:105 +0x503 main.(*SimpleChaincode).Invoke(0x1445e80, 0xcef4a0, 0xc0004ca160, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /chaincode/input/src/github.com/example_cc/go/example_cc.go:50 +0x282 github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction.func1(0xc00007f140, 0xc000097500, 0xc000314280) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:273 +0x503 created by github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).handleTransaction /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:242 +0x53

ameyaosd (Tue, 28 Jan 2020 14:17:34 GMT):
Has joined the channel.

lionelronaldo (Tue, 28 Jan 2020 15:26:55 GMT):
Another question: Is it possible to assure access control such as ABAC also for the peer nodes? If let's say an Org is running a peer themselves, they can of course access all the data that they store themselves in the ledger. If they want, they can access data that is not meant for them all they want, because they just don't care about some access control. Or am I wrong, and the data is somehow encrypted so that only permissioned entities can decrypt it? Thank you for some honest discussion :slight_smile:

Khaled.MH (Tue, 28 Jan 2020 16:51:41 GMT):
Hello guys how can i get peer indentity ?

Khaled.MH (Tue, 28 Jan 2020 16:54:28 GMT):
is there a way to get peer identity using Shim functions ??

esalmon (Wed, 29 Jan 2020 04:33:11 GMT):
Has joined the channel.

esalmon (Wed, 29 Jan 2020 04:33:12 GMT):
Hi, I'm having some issues with the tutorial of "Build Your First Network" and I'm not really sure what's going on. After I enter: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

esalmon (Wed, 29 Jan 2020 04:33:12 GMT):
Hi, I'm having some issues with the tutorial of "Build Your First Network" and I'm not really sure what's going on. After I enter: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem I get the error of GOT STATUS & NOT FOUND for every line resulting in no genesis block being produced

esalmon (Wed, 29 Jan 2020 04:33:12 GMT):
Hi, I'm having some issues with the tutorial of "Build Your First Network" and I'm not really sure what's going on. After I enter: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem I get the error of GOT STATUS & NOT FOUND for every line resulting in no genesis block being produced edit: I did every step verbatim before it, including all prerequisites and samples

esalmon (Wed, 29 Jan 2020 04:33:12 GMT):
Hi, I'm having some issues with the tutorial of "Build Your First Network" and I'm not really sure what's going on. After I enter: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem I get this error: 2020-01-29 05:46:56.839 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-01-29 05:46:56.855 UTC [cli.common] readBlock -> INFO 002 Got status: &{NOT_FOUND} 2020-01-29 05:46:56.859 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2020-01-29 05:46:57.060 UTC [cli.common] readBlock -> INFO 004 Got status: &{NOT_FOUND} 2020-01-29 05:46:57.062 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2020-01-29 05:46:57.489 UTC [cli.common] readBlock -> INFO 006 Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:57.495 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2020-01-29 05:46:57.696 UTC [cli.common] readBlock -> INFO 008 Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:57.698 UTC [channelCmd] InitCmdFactory -> INFO 009 Endorser and orderer connections initialized 2020-01-29 05:46:57.900 UTC [cli.common] readBlock -> INFO 00a Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:57.903 UTC [channelCmd] InitCmdFactory -> INFO 00b Endorser and orderer connections initialized 2020-01-29 05:46:58.104 UTC [cli.common] readBlock -> INFO 00c Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:58.107 UTC [channelCmd] InitCmdFactory -> INFO 00d Endorser and orderer connections initialized 2020-01-29 05:46:58.308 UTC [cli.common] readBlock -> INFO 00e Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:58.312 UTC [channelCmd] InitCmdFactory -> INFO 00f Endorser and orderer connections initialized 2020-01-29 05:46:58.513 UTC [cli.common] readBlock -> INFO 010 Got status: &{SERVICE_UNAVAILABLE} 2020-01-29 05:46:58.515 UTC [channelCmd] InitCmdFactory -> INFO 011 Endorser and orderer connections initialized 2020-01-29 05:46:58.718 UTC [cli.common] readBlock -> INFO 012 Received block: 0 edit: I did every step verbatim before it, including all prerequisites and samples

ameyaosd (Wed, 29 Jan 2020 04:57:42 GMT):
Hi, im new to hyperledger and have read through the docs. I'm wondering what Orderers are and am not able to understand. Can anyone help me with this, what is the role of Orderers in the system?

knagware9 (Wed, 29 Jan 2020 04:57:43 GMT):
I prefer Hyperledger fabric, you can also have a look sawtooth/grid

ameyaosd (Wed, 29 Jan 2020 04:58:40 GMT):
Is there any PoC that's know to us that has been developed for Supply Chain Management that we can use and test?

adianimesh (Wed, 29 Jan 2020 09:29:37 GMT):
Hi all, I am trying hyperledger fabric integration with HSM using PKCS11 as default BCCSP. Steps followed : configured peer and orderer nodes using core.yaml and orderer.yaml to use PKCS11 2. added GOTAGS=pkcs11 during peer, orderer and ca image generation The ca, peer and orderer nodes are created and running. But during default channel creation I get an error ```Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo The command that is used is peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block```. I found a similar issue https://jira.hyperledger.org/browse/FAB-15989. Can someone please provide me pointers if they have faced the same ?

pankajcheema (Wed, 29 Jan 2020 11:44:57 GMT):
Hi All , I am performing load test on hyperledger fabric . I am using node js sdk 1.4 and chaincode in Golang but when i am trying to read 4000 recorsds within a second . Then i am getting error ```{"CODE":"Not Defined","MESSAGE":"Failed to Query chaincode. cause:No peers available to query. Errors: [\"2 UNKNOWN: Stream removed\",\"Failed to connect before the deadline URL:grpcs://peer1-quickbook:10051\"]."}```

pankajcheema (Wed, 29 Jan 2020 11:44:57 GMT):
Hi All , I am performing load test on hyperledger fabric . I am using node js sdk 1.4 and chaincode in Golang but when i am trying to read 4000 records within a second using apache jmeter . Then i am getting error ```{"CODE":"Not Defined","MESSAGE":"Failed to Query chaincode. cause:No peers available to query. Errors: [\"2 UNKNOWN: Stream removed\",\"Failed to connect before the deadline URL:grpcs://peer1-quickbook:10051\"]."}```

pankajcheema (Wed, 29 Jan 2020 11:44:57 GMT):
Hi All , I am performing load test on hyperledger fabric . I am using node js sdk 1.4 and chaincode in Golang but when i am trying to read 4000 records within a second using apache jmeter . Then i am getting error ```{"CODE":"Not Defined","MESSAGE":"Failed to Query chaincode. cause:No peers available to query. Errors: [\"2 UNKNOWN: Stream removed\",\"Failed to connect before the deadline URL:grpcs://peer1-xyz:10051\"]."}```

pankajcheema (Wed, 29 Jan 2020 11:48:09 GMT):
things are not fully bootstrapped that's why this is happening . No issue .

pankajcheema (Wed, 29 Jan 2020 11:51:37 GMT):
@knagware9 have ever tested the same

pankajcheema (Wed, 29 Jan 2020 11:51:37 GMT):
@knagware9 have you ever tested the same ?

knagware9 (Wed, 29 Jan 2020 12:02:10 GMT):
no... I didnt tested. but what do you mean by within a second ? just after invoking the chaincode

esalmon (Wed, 29 Jan 2020 21:50:02 GMT):
So, how do I resolve it?

pankajcheema (Thu, 30 Jan 2020 04:05:32 GMT):
Yes , I performed other operation as well not the the first one

pankajcheema (Thu, 30 Jan 2020 04:06:15 GMT):
after that configure Apache jmeter for hitting 400 Request within a second .

pankajcheema (Thu, 30 Jan 2020 04:06:28 GMT):
@knagware9

anaswar (Thu, 30 Jan 2020 06:15:23 GMT):

Clipboard - January 30, 2020 11:45 AM

anaswar (Thu, 30 Jan 2020 06:17:46 GMT):
*Question regarding Fabric CA and user certificates* In the BYFN example we use the *cryptogen* tool to generate the cryptographic material for our various network entities. and here (https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html) we are executing_ enrollAdmin.js_ and _registerUser.js_ to generate a different set of certificate and keys.

anaswar (Thu, 30 Jan 2020 06:17:46 GMT):
*Question regarding Fabric CA and user certificates* In the BYFN example we use the *cryptogen* tool to generate the cryptographic material for our various network entities. and here (https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html) we are executing _ enrollAdmin.js_ and _registerUser.js_ to generate a different set of certificate and keys.

anaswar (Thu, 30 Jan 2020 06:18:10 GMT):
What is the difference between these two sets of crypto- materials

anaswar (Thu, 30 Jan 2020 06:18:10 GMT):
What is the difference between these two sets of crypto- materials?

anaswar (Thu, 30 Jan 2020 06:18:53 GMT):

Clipboard - January 30, 2020 11:48 AM

anaswar (Thu, 30 Jan 2020 06:20:20 GMT):

Clipboard - January 30, 2020 11:49 AM

PrafullTilwankar (Thu, 30 Jan 2020 06:23:38 GMT):
Hello , How to deploy Hyperledger Fabric on multiple hosts for multiple organizations ? Thanks

knagware9 (Thu, 30 Jan 2020 07:04:58 GMT):
sorry ..I didnt aware about it

HogeLiu (Thu, 30 Jan 2020 07:12:10 GMT):
Has joined the channel.

HogeLiu (Thu, 30 Jan 2020 07:12:11 GMT):
you can try Download Binaries and Docker Images:

HogeLiu (Thu, 30 Jan 2020 07:12:31 GMT):
https://github.com/hyperledger/fabric-samples

lionelronaldo (Thu, 30 Jan 2020 08:55:20 GMT):
Depends on whether you want to do it on Kubernetes or not. If not, use docker's extra_hosts as described here https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4 and here https://medium.com/coinmonks/hyperledger-fabric-cluster-on-multiple-hosts-af093f00436

dcof (Thu, 30 Jan 2020 09:09:16 GMT):
Had anyone of you ever experienced an issue concerning couchdb not able to create the _users and _replicator databases? I have two identical VMs, on one machine the databases are created properly but not on the other one. i compared the setup, used images (latest) and compose file and found no differences. Do you guys have any idea what could be the problem here or experienced a similar issue?

diasabdraimovbtsd (Thu, 30 Jan 2020 09:26:25 GMT):
Has joined the channel.

geni (Thu, 30 Jan 2020 09:38:35 GMT):
You generate the crypto material on different hosts, create genesis block on master machine using the msps and then just run the join channel command

Javi (Thu, 30 Jan 2020 09:40:02 GMT):
hi all, there is any test project to test : External chaincode launcher of fabric version 2.0

NeonSilverr (Thu, 30 Jan 2020 10:56:49 GMT):
Has joined the channel.

NeonSilverr (Thu, 30 Jan 2020 10:56:50 GMT):
Hi, I'm currently doing the Getting Started of Hyperledger Fabric, and I can't seem to create './network.sh createChannel' a channel, the error is: "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========="

mastersingh24 (Thu, 30 Jan 2020 15:43:32 GMT):
Windows?

NeonSilverr (Thu, 30 Jan 2020 17:35:51 GMT):
yes

mrflame (Thu, 30 Jan 2020 18:39:44 GMT):
Has joined the channel.

iambatman (Fri, 31 Jan 2020 05:07:06 GMT):
_I am getting ` cannot import absolute path` error while installing chaincode

iambatman (Fri, 31 Jan 2020 05:07:35 GMT):
Here is the command i've used to install the chaincode `peer chaincode install -p /github.com/chaincode/chaincode/src/sacc -n mycc -v 1.0`

iambatman (Fri, 31 Jan 2020 05:07:47 GMT):
The path still valid one

BrettLogan (Fri, 31 Jan 2020 05:57:10 GMT):
dont put the first slash in the path before github.com

iambatman (Fri, 31 Jan 2020 05:58:48 GMT):
Let me try

iambatman (Fri, 31 Jan 2020 06:19:07 GMT):
Now that error is gone but getting another one `cannot find package "github.com/hyperledger/fabric-chaincode-go/shim" in any of`

iambatman (Fri, 31 Jan 2020 06:19:32 GMT):
my question do i have to build the files in the container again??

BrettLogan (Fri, 31 Jan 2020 06:43:56 GMT):
You need to either vendor your dependecies or use go modules

BrettLogan (Fri, 31 Jan 2020 06:45:21 GMT):
`go mod init && go mod vendor`

BrettLogan (Fri, 31 Jan 2020 06:45:37 GMT):
you need to run that from the root of your chaincode directory

BrettLogan (Fri, 31 Jan 2020 06:47:05 GMT):
Long story short, while you can use windows, the likelihood of getting it working is minimal. Instead, use virtualbox or something akin to it and use some flavor of Linux

iambatman (Fri, 31 Jan 2020 06:51:56 GMT):
do i have to run this from the container directory

iambatman (Fri, 31 Jan 2020 06:52:01 GMT):
or the loacal one

BrettLogan (Fri, 31 Jan 2020 06:59:41 GMT):
the local onee

iambatman (Fri, 31 Jan 2020 07:11:44 GMT):
`go mod init` returns `go: cannot determine module path for source directory`

iambatman (Fri, 31 Jan 2020 07:12:48 GMT):
actually i followed the official chaincode tutorial in their they haven't specifed a `go mod init`

iambatman (Fri, 31 Jan 2020 07:13:07 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html

BrettLogan (Fri, 31 Jan 2020 07:20:48 GMT):
`go mod init sacc && go mod vendor` your chaincode isnt on the gopath so it can't reesolve the module name automatically for you, so we need to specify it

BrettLogan (Fri, 31 Jan 2020 07:20:48 GMT):
`go mod init sacc && go mod vendor` your chaincode isnt on the gopath so it can't reesolve the module

BrettLogan (Fri, 31 Jan 2020 07:22:21 GMT):
And unfortunately our doc isn't perfect. We have to support two paths in release-1.4 and somethings dont exist in it. In particular, you'll note in the doc you linked has the old shim and protos references. It also doesn't account for the fact we removed the shim from the ccenv image, which is the problem you are seeing.

BrettLogan (Fri, 31 Jan 2020 07:23:39 GMT):
And you've always been reequired to vendor your dependencies historically with `govendor` we just used to include the shim in the docker image for convenience, which we no longer do

BrettLogan (Fri, 31 Jan 2020 07:23:39 GMT):
And you've always been reequired to vendor your dependencies historically with `govendor` we just used to include the shim in the docker image for convenience

BrettLogan (Fri, 31 Jan 2020 07:23:39 GMT):
And you've always been reequired to vendor your dependencies historically with `govendor` we just used to include shim in the docker image for convenience

BrettLogan (Fri, 31 Jan 2020 07:24:22 GMT):
Its the first deprecation notice here: https://github.com/hyperledger/fabric/blob/release-1.4/release_notes/v1.4.4.md#deprecations

BrettLogan (Fri, 31 Jan 2020 07:27:45 GMT):
There are many ways, `dep`, `govendor` `go mod` to vendor dependencies, but `go mod` is the standard for Go now and ships with the go distribbution

BrettLogan (Fri, 31 Jan 2020 07:27:45 GMT):
Theree are many ways, `dep`, `govendor` `go mod` to vendor dependencies, but `go mod` is the standard for Go now and ships with the go distribbution

iambatman (Fri, 31 Jan 2020 07:40:16 GMT):
Thanks for the detailed explanation @BrettLogan

Logi (Fri, 31 Jan 2020 07:57:08 GMT):
Hi All - Excited to see the updates with Hyperledger Fabric 2.0 & the latest features are very helpful, with respect to enterprise level network setup. I do have a question in "External chain-code launcher" - I understand that, chaincode can be accessed as external endpoint and user can host it separately then continue the normal process of committing the chaincode definition to the channel and invoking the chaincode.. How about "upgrade" Chaincode?, will it be like we need to update the chaincode & re-package it & run it on same endpoint?.. - If someone could share your inputs would be helpful.

adianimesh (Fri, 31 Jan 2020 09:07:02 GMT):
Hi all, I am trying hyperledger fabric integration with HSM using PKCS11 as default BCCSP. Steps followed : 1. configured peer and orderer nodes using core.yaml and orderer.yaml to use PKCS11 2. added GOTAGS=pkcs11 during peer, orderer and ca image generation 3. Mounted volumes to point to PKCS11 librarThe ca, peer and orderer containers are up and running. But during default channel creation I get an error ```Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo The command that is used is peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block``` `Can someone please tell me how do I tell fabric to use PKCS11 as bccsp for peer channel creation` ?

mastersingh24 (Fri, 31 Jan 2020 10:27:12 GMT):
where are you running this command?

SatheeshNehru (Fri, 31 Jan 2020 10:34:16 GMT):
does service-discovery list peer that are alive(health check)?

metadata (Fri, 31 Jan 2020 11:42:42 GMT):
Anyone tried `docker bench security` to check the docker vulnerabilities when deploying the fabric-network in production?

stevengoehler (Fri, 31 Jan 2020 12:18:36 GMT):
Has joined the channel.

stevengoehler (Fri, 31 Jan 2020 12:18:37 GMT):
Hi, I'm trying to follow the https://hyperledger-fabric.readthedocs.io/en/release-1.4/getting_started.html tutorial and installing it on a Windwos 10 pro machine. I have followed all of the necessary prerequisites for a windows installation. Currently I'm at the "Install Samples, Binaries and Docker Images" section of the guide, but when I try to execute the "curl -sSL http://bit.ly/2ysbOFE | bash -s" command i get the "The term 'bash' is not recognized as the name of a cmdlet, fynction...". Am I supposed to clone the Git repo manually before I try to run the command, of somehow open a docker session, then run the command inside there. I can run 'docker images' 'docker ls' without problem.

BrettLogan (Fri, 31 Jan 2020 14:17:54 GMT):
Are you working in the Docker Toolbox Terminal or on Command Prompt/PowerShell.

stevengoehler (Fri, 31 Jan 2020 14:22:43 GMT):
I've gotten a bit further now. But now it's unable to download and setup my binaries

BrettLogan (Fri, 31 Jan 2020 14:58:37 GMT):
@stevengoehler RocketChat isn't letting me continue our thread, what is the error you are seeing?

BrettLogan (Fri, 31 Jan 2020 14:58:48 GMT):
I'm going to guess its related to wget

adianimesh (Fri, 31 Jan 2020 19:52:16 GMT):
peer

ahmedsajid (Fri, 31 Jan 2020 21:24:50 GMT):
Hi All. Does anyone know if there's archive of gerrit.hyperledger.org?

ahmedsajid (Fri, 31 Jan 2020 21:24:50 GMT):
Hi All. Does anyone know if there's archive of https://gerrit.hyperledger.org?

BrettLogan (Sat, 01 Feb 2020 01:05:21 GMT):
https://github.com/btl5037/fabric-gerrit?files=1

BrettLogan (Sat, 01 Feb 2020 01:05:42 GMT):
You can use the GitHub search box on the page to search it

BrettLogan (Sat, 01 Feb 2020 01:05:55 GMT):
You can use the GitHub search box on the page to search it

BrettLogan (Sat, 01 Feb 2020 01:06:20 GMT):
We are working to get it transferred over to the Hyperledger org

csd3458 (Sat, 01 Feb 2020 05:04:46 GMT):
Hey guys I've created a network with 2orgs each one with 2peers and 1ca. After making the external an the bootstrap points correct i get errors of closing conntections to peers any ideas why

csd3458 (Sat, 01 Feb 2020 05:04:46 GMT):
Hey guys I've created a network with 2orgs each one with 2peers and 1ca. After making the external an the bootstrap points correct i get errors of closing conntections to peers any ideas why thanks in advance

csd3458 (Sat, 01 Feb 2020 05:04:46 GMT):
Hey guys I've created a network with 2orgs each one with 2peers and 1ca. After making the external an the bootstrap points correct i get errors of closing conntections to peers any ideas why Here's my stackoverflow question : https://stackoverflow.com/questions/59980484/gossip-discovery-closing-connection-to-endpoint/59981792?noredirect=1#comment106113284_59981792 thanks in advance

shiva2035 (Sat, 01 Feb 2020 08:15:20 GMT):
Has joined the channel.

shiva2035 (Sat, 01 Feb 2020 08:15:20 GMT):
Hey guys, I have created a network with one org(Org1) and two peers. and added a second org(Org2) to the existing network by following hyperledger documentation. When I install a chaincode on peer0 and peer1 of Org1 install proposal was good. But when I install Chaincode on Org2 proposal was good only on peer0 but not on peer1. I have recently started working on hyperledger fabric. Can anyone please explain me what to do to make my chaincode installation successful on any newly added organization.

abityildiz (Sat, 01 Feb 2020 12:13:33 GMT):
hi all,i get the this error: Error: timed out waiting for txid on all peers .What does it mean?can you help me please?

abityildiz (Sat, 01 Feb 2020 12:32:33 GMT):
this is fabric code page: https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/approveformyorg_test.go

Rajatsharma (Sun, 02 Feb 2020 03:40:14 GMT):
Hi everyone, In our setup to make the CouchDB false tolerant, we've configured that in a cluster. But we can't give a cluster URL in CouchDB so, if we'll give URL of one node of the cluster, still if that container or service goes down, the peer will go down. Can anyone suggest any workaround for this? This is really important to Hyperldger fabric in a cluster.

BrettLogan (Sun, 02 Feb 2020 05:11:19 GMT):
Ideally you'd put a load balancer in front of the nodes which can detect if the node it's going to send the request to is offline. Of course engineering the LB to be fault tolerant is an obstacle as well (though very possible)

mvkillu (Mon, 03 Feb 2020 00:22:35 GMT):
Hi there, when I am trying to run the fabcar example on HLF 2.0, I am getting the error ... 2020-02-03 00:21:21.320 UTC [grpc] HandleSubConnStateChange -> DEBU 02e pickfirstBalancer: HandleSubConnStateChange: 0xc00038abc0, CONNECTING Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing

mvkillu (Mon, 03 Feb 2020 00:22:51 GMT):
It looks like it is timedout when trying to install chaincode on peer0.org1

BrettLogan (Mon, 03 Feb 2020 01:05:24 GMT):
Which directions are you using for running fabcar (can you provide a link)? Assuming you haven't modified any of it is like to verify the instructions you are using and make sure we haven't missed something

mvkillu (Mon, 03 Feb 2020 01:32:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/write_first_app.html

mvkillu (Mon, 03 Feb 2020 02:30:29 GMT):
These are the steps I followed: 1. curl -sSL https://bit.ly/2ysbOFE | bash -s 2. cd fabric-samples/fabcar 3. ./startFabric.sh javascript

mvkillu (Mon, 03 Feb 2020 02:30:52 GMT):
These are the last few lines of the console log: ``` + docker exec -e CORE_PEER_LOCALMSPID=Org2MSP -e CORE_PEER_ADDRESS=peer0.org2.example.com:9051 -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt cli peer --tls=true --cafile=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --orderer=orderer.example.com:7050 lifecycle chaincode install fabcar.tar.gz Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing ```

guoger (Mon, 03 Feb 2020 03:37:07 GMT):
sorry for late response, what error do you see when you start orderer?

guoger (Mon, 03 Feb 2020 03:37:50 GMT):
also, how does happen at first place, where peer is ahead of orderer? the blocks are always produced at orderers and disseminated to peers

ag (Mon, 03 Feb 2020 04:53:03 GMT):
Has joined the channel.

AliaksandrLipnitski (Mon, 03 Feb 2020 06:17:42 GMT):
Has joined the channel.

AliaksandrLipnitski (Mon, 03 Feb 2020 06:17:42 GMT):
Hi, I want to implement mu custom MSP based on Decentralized Identity. Is it possible? Do you have any suggestions?

AliaksandrLipnitski (Mon, 03 Feb 2020 06:17:42 GMT):
Hi, I want to implement my custom MSP based on Decentralized Identity. Is it possible? Do you have any suggestions?

AliaksandrLipnitski (Mon, 03 Feb 2020 06:17:42 GMT):
Hi everyone, I want to implement my custom MSP based on Decentralized Identity. Is it possible? Do you have any suggestions?

Abhishek2700 (Mon, 03 Feb 2020 10:27:09 GMT):

Clipboard - February 3, 2020 3:45 PM

xDaTi (Mon, 03 Feb 2020 11:31:57 GMT):
Has joined the channel.

xDaTi (Mon, 03 Feb 2020 11:31:58 GMT):
Hi everyone, I am trying to start with hyperledger fabric but when getting all binaries I am getting this error: 1.4.4 platform specific fabric binary is not available to download. Any ideas on how to fix this issue ?

xDaTi (Mon, 03 Feb 2020 11:31:58 GMT):
Hi everyone, I am trying to start with hyperledger fabric but when getting all binaries I am getting this error: 1.4.4 platform specific fabric binary is not available to download. Any ideas on how to fix this issue ?

xDaTi (Mon, 03 Feb 2020 11:31:58 GMT):
Hi everyone, I am trying to start with hyperledger fabric but when getting all binaries I am getting this error: 1.4.4 platform specific fabric binary is not available to download. Any ideas on how to fix this issue ?

RafaelForte (Mon, 03 Feb 2020 12:06:17 GMT):
Has joined the channel.

RafaelForte (Mon, 03 Feb 2020 12:06:18 GMT):
Hello! I'm currently testing a blockchain that I deployed after doing some changes to the BYFN, right now it is running 2 orgs with 2 peers each. The problem happens when I stop the container of a peer, I can no longer perform transactions, it gives me a timeout error, but I can still add assets (it gives me a timeout error but the asset is added). Any ideia why this is happening?

BrettLogan (Mon, 03 Feb 2020 13:17:09 GMT):
Can you share the exact error you are seeing?

BrettLogan (Mon, 03 Feb 2020 13:17:09 GMT):
Can you share the exact command you are using?

BrettLogan (Mon, 03 Feb 2020 13:18:13 GMT):
Scratch that, I meant to say, can you share the exact error you are seeing?

BrettLogan (Mon, 03 Feb 2020 13:18:29 GMT):
RocketChat won't let me delete my previous comment

xDaTi (Mon, 03 Feb 2020 13:46:48 GMT):
Hello there :)

xDaTi (Mon, 03 Feb 2020 13:47:59 GMT):
So this is the full log I am getting when downloading binaries in the fabric-samples folder : https://pastebin.com/s7Pgmejw

xDaTi (Mon, 03 Feb 2020 13:49:29 GMT):
Running on Windows 10, Git version : 2.25.0

xDaTi (Mon, 03 Feb 2020 13:49:29 GMT):
Running on Windows 10, Git version : 2.25.0.windows.1 , curl version: 7.68.0, wget: 1.20.3

BrettLogan (Mon, 03 Feb 2020 13:50:53 GMT):
What terminal are using?

xDaTi (Mon, 03 Feb 2020 13:50:59 GMT):
Git Bash

xDaTi (Mon, 03 Feb 2020 13:52:43 GMT):
Maybe something with my .gitconfig : https://pastebin.com/NUyCWYQp

BrettLogan (Mon, 03 Feb 2020 13:53:35 GMT):
What is the output of `uname -s`

xDaTi (Mon, 03 Feb 2020 13:53:55 GMT):
MINGW32_NT-10.0-17763-WOW64

BrettLogan (Mon, 03 Feb 2020 13:56:35 GMT):
I'm not sure how you installed Git bash but you have the 32-bit version of GNUW. Did you install the 32-bit version of git bash

xDaTi (Mon, 03 Feb 2020 13:57:13 GMT):
I can install the 64 bit one as well , the 32 bit was just a tryout

BrettLogan (Mon, 03 Feb 2020 13:57:41 GMT):
If you want to try out the 32-bit I can give you an updated script that will correctly replace it, but I can't guarantee there won't be problems down the road

BrettLogan (Mon, 03 Feb 2020 13:58:51 GMT):
Long story short if you open the script you're trying to use you'll see MINGW64 just replace the 64 with 32 and it should work

xDaTi (Mon, 03 Feb 2020 13:58:52 GMT):
Hold on I have the 64-bit almost installed

xDaTi (Mon, 03 Feb 2020 13:59:18 GMT):
Now I have with uname : MINGW64_NT-10.0-17763

xDaTi (Mon, 03 Feb 2020 14:00:06 GMT):
Ok it's working ..

xDaTi (Mon, 03 Feb 2020 14:00:51 GMT):
I don't know what the issue was because I got the error on a 64-bit installation earlier as well

xDaTi (Mon, 03 Feb 2020 14:00:53 GMT):
Thanks for your time :)

BrettLogan (Mon, 03 Feb 2020 14:01:46 GMT):
Of course, good luck!

xDaTi (Mon, 03 Feb 2020 14:03:09 GMT):
Thanks :)

ahmedsajid (Mon, 03 Feb 2020 15:47:56 GMT):
Thanks! @BrettLogan

awjh (Mon, 03 Feb 2020 16:50:57 GMT):
I am trying to follow https://hyperledger-fabric.readthedocs.io/en/latest/cc_service.html to create a chaincode running as an external service. Not sure what I'm missing but for some reason my external builder script is not being run. I have added it to my core.yaml on the peer

awjh (Mon, 03 Feb 2020 16:51:11 GMT):
Anyone else faced this issue?

awjh (Mon, 03 Feb 2020 16:52:09 GMT):
``` chaincode: id: path: null name: null builder: '$(DOCKER_NS)/fabric-ccenv:$(TWO_DIGIT_VERSION)' pull: false golang: runtime: '$(DOCKER_NS)/fabric-baseos:$(TWO_DIGIT_VERSION)' dynamicLink: false java: runtime: '$(DOCKER_NS)/fabric-javaenv:$(TWO_DIGIT_VERSION)' node: runtime: '$(DOCKER_NS)/fabric-nodeenv:$(TWO_DIGIT_VERSION)' externalBuilders: - name: chaincodeserver path: /etc/hyperledger/builders/chaincodeserver installTimeout: 300s startuptimeout: 300s executetimeout: 30s mode: net keepalive: 0 system: _lifecycle: enable cscc: enable lscc: enable escc: enable vscc: enable qscc: enable logging: level: info shim: warning format: >- %{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} ```

awjh (Mon, 03 Feb 2020 16:52:20 GMT):
^ The chaincode secton of my core.yaml

awjh (Mon, 03 Feb 2020 17:05:51 GMT):
Error from install command: ``` peer lifecycle chaincode install /opt/gopath/src/github.com/hyperledger/fabric-chaincode-integration/chaincode_packages/Org1/simpleserver.tgz ``` ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: platform builder failed: Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL ```

awjh (Mon, 03 Feb 2020 17:05:51 GMT):
Error from install command: `peer lifecycle chaincode install /opt/gopath/src/github.com/hyperledger/fabric-chaincode-integration/chaincode_packages/Org1/simpleserver.tgz Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: platform builder failed: Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL`

awjh (Mon, 03 Feb 2020 17:16:47 GMT):
I updated the core.yaml externalBuilders section to not have a name and expected an error to be thrown but didn't get one

CT123 (Mon, 03 Feb 2020 17:17:45 GMT):
With 2.0 official is it still MANDATORY to install HLF in gopath/src/giihub.com/hyperledger .... blah, blah? Again, I'm looking for an official response as the docs are no longer clear -- TIA

BrettLogan (Mon, 03 Feb 2020 17:44:15 GMT):
Yes. Fabric does not support Go module mode

BrettLogan (Mon, 03 Feb 2020 17:44:15 GMT):
Yes. Fabric does not yet support Go module mode

BrettLogan (Mon, 03 Feb 2020 17:47:05 GMT):
Can you share the external builders section fro your yaml. I wrote the explicit check so I know it's there, I'll look into it

BrettLogan (Mon, 03 Feb 2020 17:47:46 GMT):
There must not be an escape on the error path

awjh (Mon, 03 Feb 2020 17:49:05 GMT):
``` externalBuilders: - name: chaincodeserver path: /etc/hyperledger/builders/chaincodeserver ```

awjh (Mon, 03 Feb 2020 17:49:49 GMT):
That is the one thats correct (but not working), to try and break it I removed name field and put the dash next to path

BrettLogan (Mon, 03 Feb 2020 18:04:57 GMT):
Can you tarball and shoot me the externalbuilder package you are trying to use, so I don't have to hobble one together to test this

BrettLogan (Mon, 03 Feb 2020 18:04:57 GMT):
Can you shoot me the externalbuilder package you are trying to use, so I don't have to hobble one together to test this

ahmedsajid (Mon, 03 Feb 2020 20:39:09 GMT):
Hi. Looks like nexus.hyperledger.org has disappeared?

ahmedsajid (Mon, 03 Feb 2020 20:45:40 GMT):
I found the fix in release-1.4 branch

adianimesh (Mon, 03 Feb 2020 20:50:33 GMT):
i.e. cli - container

adianimesh (Mon, 03 Feb 2020 21:20:54 GMT):
Do I need to generate a CSR for each role node '''./fabric-ca-client gencsr --csr.cn --mspdir --csr.names '''.

adianimesh (Mon, 03 Feb 2020 21:21:27 GMT):
`./fabric-ca-client gencsr --csr.cn --mspdir --csr.names `

adianimesh (Mon, 03 Feb 2020 21:24:22 GMT):
I referred following documents

adianimesh (Mon, 03 Feb 2020 21:24:24 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#configuring-an-hsm

adianimesh (Mon, 03 Feb 2020 21:24:41 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#create-and-join-channel

mvkillu (Mon, 03 Feb 2020 23:32:50 GMT):
In the fabcar example, they have inserted cars with keys as CAR0, CAR1, CAR etc.. Is it mandatory that we prepare keys so that they are in serial order? Can't we just use plain key, value pairs and fetch all keys ?

mvkillu (Mon, 03 Feb 2020 23:53:11 GMT):
2. I modified the fabcar example with my own business logic. How can I package this for deployment?

deniskartashov (Tue, 04 Feb 2020 00:53:02 GMT):
Has joined the channel.

GuilhermeLionzo (Tue, 04 Feb 2020 01:50:37 GMT):
Has joined the channel.

GuilhermeLionzo (Tue, 04 Feb 2020 01:50:42 GMT):
*[FACING PROBLEMS]* Error response from daemon: Mount denied: Hi guys, I'm following the _Commercial_ _Paper_ _Tutorial_ and I'm facing some problems running this command: `$ ./monitordocker.sh net_basic ` . Could you guys help me? *CMD RESULT:* ``` *User@Guilherme-PC MINGW64 ~/go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp/configuration/cli ((v1.4.4))* $ ./monitordocker.sh net_basic Starting monitoring on all containers on the network net_basic C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Mount denied: The source path "C:/Users/User/Git/var/run/docker.sock;C" doesn't exist and is not known to Docker. See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused ``` *TUTORIAL LINK:* https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

GuilhermeLionzo (Tue, 04 Feb 2020 01:50:42 GMT):
*[FACING PROBLEMS]* Error response from daemon: Mount denied: Hi guys, I'm following the _Commercial_ _Paper_ _Tutorial_ and I'm facing some problems running this command: `$ ./monitordocker.sh net_basic ` . Could you guys help me? *CMD RESULT:* ``` *User@Guilherme-PC MINGW64 ~/go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp/configuration/cli ((v1.4.4))* $ ./monitordocker.sh net_basic Starting monitoring on all containers on the network net_basic C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Mount denied: The source path "C:/Users/User/Git/var/run/docker.sock;C" doesn't exist and is not known to Docker. See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused ``` *TUTORIAL LINK:* https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

GuilhermeLionzo (Tue, 04 Feb 2020 01:50:42 GMT):
*[FACING PROBLEMS]* ERRO 003 Visit Path: no such file or directory Hi guys, I'm following the _Commercial_ _Paper_ _Tutorial_ and I'm facing some problems running this command: `docker exec cliMagnetoCorp peer chaincode install -n papercontract -v 0 -p /opt/gopath/src/github.com/contract -l node` . Could you guys help me? *CMD RESULT:* ``` User@Guilherme-PC MINGW64 ~/go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp/contract ((v1.4.4)) $ docker exec cliMagnetoCorp peer chaincode install -n papercontract -v 0 -p /opt/gopath/src/github.com/contract -l node 2020-02-04 03:29:26.881 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-02-04 03:29:26.881 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc 2020-02-04 03:29:26.882 UTC [container] func1 -> ERRO 003 Visit C:/Users/User/Git/opt/gopath/src/github.com/contract failed: lstat C:/Users/User/Git/opt/gopath/src/github.com/contract: no such file or directory 2020-02-04 03:29:26.883 UTC [container] WriteFolderToTarPackage -> INFO 004 Error walking rootDirectory: lstat C:/Users/User/Git/opt/gopath/src/github.com/contract: no such file or directory 2020-02-04 03:29:26.883 UTC [chaincode.platform.node] GetDeploymentPayload -> ERRO 005 Error writing folder to tar package lstat C:/Users/User/Git/opt/gopath/src/github.com/contract: no such file or directory Error: error getting chaincode code papercontract: error getting chaincode package bytes: Error writing Chaincode package contents: lstat C:/Users/User/Git/opt/gopath/src/github.com/contract: no such file or directory ``` *TUTORIAL LINK:* https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

BrettLogan (Tue, 04 Feb 2020 04:30:54 GMT):
You can use whatever you like for the keys, as long as they adhere to the DB naming conventions

BrettLogan (Tue, 04 Feb 2020 04:36:06 GMT):
Honestly, there are so many possible issues, we strongly, strongly recommend people don't try to do these tutorials on Windows (use VirtualBox and run Linux), there are just soooo many considerations when running Docker on Windows. We can take a quick run at it though: What version of Window's are you running, what version of Docker are you using (i.e., Docker Desktop or Docker Toolbox), have you properly configure the Docker shared drive, is your gopath a subset of this shared drive

Aman.jain (Tue, 04 Feb 2020 08:47:51 GMT):
akshay

glin (Tue, 04 Feb 2020 10:05:52 GMT):
Has joined the channel.

glin (Tue, 04 Feb 2020 10:05:53 GMT):
Hi, Is it possible to configure orderer/peer's metrics provider to both prometheus and statsd?

mastersingh24 (Tue, 04 Feb 2020 10:33:03 GMT):
no ... but you can use something like https://github.com/prometheus/statsd_exporter

kegesch (Tue, 04 Feb 2020 11:20:43 GMT):
Has joined the channel.

kegesch (Tue, 04 Feb 2020 11:20:44 GMT):
I am trying out the fabcar example. I have a VM in Azure running the server and I am trying to connect and run the fabcar example on my local Windows machine (I copied the connectionprofile). If I run the example on the vm itself everything works, but if i try to connect via the fabcar typescript example it fails to submit a transaction with the failure "Failed to connect before the deadline". I opened the ports on the VM so that should not be the problem. What am I missing? I found similar question to this on StackOverflow but either they were not answered or the answers didn't help.

RobinKlemens (Tue, 04 Feb 2020 11:26:49 GMT):
Has joined the channel.

RobinKlemens (Tue, 04 Feb 2020 11:26:51 GMT):
Could you also decribe the steps you've already done? How did you package the chaincode? Are you using dev mode? Would like to get in touch and share experciences about the external builder.

ArindamSaha (Tue, 04 Feb 2020 12:31:56 GMT):
Has joined the channel.

ArindamSaha (Tue, 04 Feb 2020 12:31:58 GMT):
Hello I am working on Hyperledger fabric using kubernetes in AWS, please help me someone to resolve the following error. This error I have found with the following chainnodes: test-fabric, fabric-test- marbles and test-fabric-marbles-workshop.

ArindamSaha (Tue, 04 Feb 2020 12:32:19 GMT):
Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.clientKey.file: open /data/tls/peer1-org1-cli-client.key: no such file or directory

ArindamSaha (Tue, 04 Feb 2020 12:32:54 GMT):
I have followed the link: https://github.com/aws-samples/hyperledger-on-kubernetes/blob/master/fabric-main/README.md

awjh (Tue, 04 Feb 2020 13:14:23 GMT):
So I managed to run the fabric integration tests locally and the external builder there is working. I assume that something is wrong with my setup somewhere. Do I need to switch anything in the peer to point to a core.yaml as maybe thats not being picked up?

awjh (Tue, 04 Feb 2020 13:15:11 GMT):
For some reason rocket chat wont let me upload a tgz

awjh (Tue, 04 Feb 2020 13:15:11 GMT):
For some reason rocket ca

adianimesh (Tue, 04 Feb 2020 13:27:44 GMT):
``

adianimesh (Tue, 04 Feb 2020 13:29:37 GMT):
Hi all, I am getting following error on running peer channel create during fabric integration with HSM using PKCS11. The peer, orderer and ca containers are up. ```Cannot run peer because error when setting up MSP of type bccsp from directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp: KeyMaterial not found in SigningIdentityInfo``` Please find detailed logs from my attempt to run the same command manually. I have followed the integration guide and done changes as mentioned.

adianimesh (Tue, 04 Feb 2020 13:34:06 GMT):

logs.pdf

BrettLogan (Tue, 04 Feb 2020 13:52:26 GMT):
Sorry. I didn't get to check this out yesterday. Can you send me the tarball and core.yaml youre using in Slack

kegesch (Tue, 04 Feb 2020 14:26:59 GMT):
I am currently exploring what the grpc error might and tried to send custom data to grpc with BloomRPC. But I always get "14 UNAVAILABLE: failed to connect to all adresses". What does that mean?

BrettLogan (Tue, 04 Feb 2020 16:08:30 GMT):
Ahhh, so you aren't using the raw external builder, you are using the `Chaincode as an External Service` which uses the externalbuilder framework for launch. You are trying to run you chaincode on a separate server and connect to it

awjh (Tue, 04 Feb 2020 16:09:40 GMT):
That is my end goal, I haven't quite got as far as starting the chaincode up since i needed the ccid from install and so far havent managed to get that command to use my external builder

garyclark (Tue, 04 Feb 2020 16:27:11 GMT):
Has joined the channel.

mastersingh24 (Tue, 04 Feb 2020 16:49:03 GMT):
Looks like the private key does not actually exist in the HSM. How did you generate the HSM key and public cert you are trying to use?

CT123 (Tue, 04 Feb 2020 19:48:08 GMT):
Running through normal tests for 2.0 release and following test-network docs to the letter. Upon brining up the network and adding a second channel, e.g. channel2, all goes well -- however queries FAIL: ``` ./network.sh createChannel -c channel2 Creating channel 'channel2'. ===================== Anchor peers updated for org 'Org1MSP' on channel 'channel2' ===================== ===================== Anchor peers updated for org 'Org2MSP' on channel 'channel2' ===================== ========= Channel successfully joined =========== ... ./network.sh deployCC -c channel2 deploying chaincode on channel 'channel2' ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... .... Querying chaincode on peer0.org1... ===================== Querying on peer0.org1 on channel 'channel2'... ===================== .... ```

CT123 (Tue, 04 Feb 2020 19:48:08 GMT):
Running through normal tests for 2.0 release and following test-network docs to the letter. Upon brining up the network and adding a second channel, e.g. channel2, all goes well -- however queries FAIL: ``` ./network.sh createChannel -c channel2 Creating channel 'channel2'. ===================== Anchor peers updated for org 'Org1MSP' on channel 'channel2' ===================== ===================== Anchor peers updated for org 'Org2MSP' on channel 'channel2' ===================== ========= Channel successfully joined =========== ... ./network.sh deployCC -c channel2 deploying chaincode on channel 'channel2' ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... .... Querying chaincode on peer0.org1... ===================== Querying on peer0.org1 on channel 'channel2'... ===================== ===================== Query successful on peer0.org1 on channel 'channel2' ===================== .... ```

CT123 (Tue, 04 Feb 2020 19:48:08 GMT):
Running through normal tests for 2.0 release and following test-network docs to the letter. Upon brining up the network and adding a second channel, e.g. channel2, all goes well -- however queries FAIL: ``` ./network.sh createChannel -c channel2 Creating channel 'channel2'. ===================== Anchor peers updated for org 'Org1MSP' on channel 'channel2' ===================== ===================== Anchor peers updated for org 'Org2MSP' on channel 'channel2' ===================== ========= Channel successfully joined =========== ... ./network.sh deployCC -c channel2 deploying chaincode on channel 'channel2' ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... .... Querying chaincode on peer0.org1... ===================== Querying on peer0.org1 on channel 'channel2'... ===================== ===================== Query successful on peer0.org1 on channel 'channel2' ===================== .... ``` ```

CT123 (Tue, 04 Feb 2020 19:48:08 GMT):
Running through normal tests for 2.0 release and following test-network docs to the letter. Upon bringing up the network and adding a second channel, e.g. channel2, all goes well -- however queries FAIL: ``` ./network.sh createChannel -c channel2 Creating channel 'channel2'. ===================== Anchor peers updated for org 'Org1MSP' on channel 'channel2' ===================== ===================== Anchor peers updated for org 'Org2MSP' on channel 'channel2' ===================== ========= Channel successfully joined =========== ... ./network.sh deployCC -c channel2 deploying chaincode on channel 'channel2' ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... .... Querying chaincode on peer0.org1... ===================== Querying on peer0.org1 on channel 'channel2'... ===================== ===================== Query successful on peer0.org1 on channel 'channel2' ===================== .... ``` ```

CT123 (Tue, 04 Feb 2020 19:50:56 GMT):
Results in this error: ```peer chaincode query -C channel2 -n fabcar -c '{"Args":["queryAllCars"]}' Error: error endorsing query: rpc error: code = Unknown desc = error validating proposal: access denied: channel [channel2] creator org [SampleOrg] - proposal response: ```

CT123 (Tue, 04 Feb 2020 19:51:36 GMT):
Channel2 exists and has chaincode correctly loaded -- why can't I query it?

garyclark (Tue, 04 Feb 2020 20:00:49 GMT):
New to hyperledger fabric. How many channels can be supported?

Estebanrestrepo (Tue, 04 Feb 2020 20:01:55 GMT):
Whast happened with Fabtokens module?

BrettLogan (Tue, 04 Feb 2020 20:02:32 GMT):
I just ran through your scenario to make sure we didn't miss something, I didn't have any problems. Are you sure you have the latest images and 2.0.0 image hash matches the latest tag has `docker image ls | grep hyperledger` make sure you have 2.0.0 and its hashes are the same as the ones that have been tagged as latest.Also make sure you don't have any stray docker volumes laying around `docker volume ls`

BrettLogan (Tue, 04 Feb 2020 20:02:32 GMT):
I just ran through your scenario to make sure we didn't miss something. Are you sure you have the latest images and 2.0.0 image hash matches the latest tag has `docker image ls | grep hyperledger` make sure you have 2.0.0 and its hashes are the same as the ones that have been tagged as latest.Also make sure you don't have any stray docker volumes laying around `docker volume ls`

CT123 (Tue, 04 Feb 2020 20:23:25 GMT):

CT123 - Tue Feb 04 2020 15:23:05 GMT-0500 (EST).txt

CT123 (Tue, 04 Feb 2020 20:24:28 GMT):
```docker volume ls DRIVER VOLUME NAME local 0bdded8a137f32fec50a0d66bf10e476cf8f168a76628b4bc69153e0f887bc6e local 4adcb2becde57113a3afb7cf3416b6f9b848af6479c7644e7c90133cad18ec82 local 6d3760f1b300838dcf3d2ef4dd3af1ac8a2e61f3cf1e8f29d487ee2e7c46ce05 local 594b1a4156f55ed912ccbb7963f491f20da0a9772191f453c32b24cb1391cab8 local 179909a5c2d97f8694d08a45eda0b6d8d69b82cc996c88d5a3886342fa0d5f47 local bba44684968e2a0ca59df62dd1143d4e5e227420333ef0a1a5edb6b85e2e97ec local net_orderer.example.com local net_peer0.org1.example.com local net_peer0.org2.example.com```

CT123 (Tue, 04 Feb 2020 20:25:14 GMT):
maybe prune everything and reinstall fresh?

BrettLogan (Tue, 04 Feb 2020 20:47:17 GMT):
Yea, so if you dont mind losing everything in your docker instance I generally run:

BrettLogan (Tue, 04 Feb 2020 20:47:19 GMT):
```docker kill $(docker ps -q) docker rm $(docker ps -a -q) echo “y” | docker system prune -a echo “y” | docker volume prune```

BrettLogan (Tue, 04 Feb 2020 20:47:34 GMT):
Which wipes out everything in docker

BrettLogan (Tue, 04 Feb 2020 20:48:11 GMT):
https://lists.hyperledger.org/g/fabric/message/6228

BrettLogan (Tue, 04 Feb 2020 20:49:22 GMT):
There is no hard-limit

garyclark (Tue, 04 Feb 2020 20:50:18 GMT):
ok cool. I guess no metrics.

CT123 (Tue, 04 Feb 2020 23:02:53 GMT):
@BrettLogan that worked. reloaded and re-ran test network tests. Bringing up ca however found ca orphans -- which would not have been on my docker as I blew it away so FWIW here's the error in case its helpful for others: ```WARNING: Found orphan containers (ca_org2, ca_orderer, ca_org1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.```

adianimesh (Wed, 05 Feb 2020 02:10:08 GMT):
Hello, trying integration of fabric 1.4 with HSM using PKCS11. Getting following error on peer channel creation though cli-container. ```Cannot run peer because error when setting up MSP of type bccsp from directory /u01/fd895b99-7e3a-4e0a-8dd8-f33163c1bce2/cm/msp: KeyMaterial not found in SigningIdentityInfo The command that is used is peer channel create -t 1800s -o 96eec90a-54b1-44cc-84e9-d5ede782f52a-orderer1:7050 -c default -f /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.tx --outputBlock /u01/96eec90a-54b1-44cc-84e9-d5ede782f52a/cm/channel.block```

adianimesh (Wed, 05 Feb 2020 02:13:53 GMT):
``` 2020-04-02 17:08:33.633 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 017 map[peer.BCCSP:map[Default:PKCS11 PKCS11:map[FileKeyStore:map[KeyStore:msp/keystore] Hash:SHA2 Label:obp-test Library:/etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so Pin:PasswordPO1 Security:256 SensitiveKeys:true SoftwareVerify:true]]] 2020-04-02 17:08:33.633 UTC [bccsp] initBCCSP -> DEBU 018 Initialize BCCSP [SW] 2020-04-02 17:08:33.633 UTC [bccsp_sw] createKeyStoreIfNotExists -> DEBU 019 KeyStore path [msp/keystore] missing [true]: [] 2020-04-02 17:08:33.633 UTC [bccsp_sw] createKeyStore -> DEBU 01a Creating KeyStore at [msp/keystore]... 2020-04-02 17:08:33.633 UTC [bccsp_sw] createKeyStore -> DEBU 01b KeyStore created at [msp/keystore]. 2020-04-02 17:08:33.633 UTC [bccsp_sw] openKeyStore -> DEBU 01c KeyStore opened at [msp/keystore]...done 2020-04-02 17:08:33.633 UTC [bccsp_p11] loadLib -> DEBU 01d Loading pkcs11 library [/etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so] 2020-04-02 17:08:43.237 UTC [bccsp_p11] loadLib -> DEBU 01e Looking for obp-test, found label obp-test 2020-04-02 17:08:43.879 UTC [bccsp_p11] loadLib -> DEBU 01f Created new pkcs11 session 1 on slot 3 2020-04-02 17:08:46.037 UTC [bccsp] initBCCSP -> DEBU 020 Initialize BCCSP [PKCS11] 2020-04-02 17:08:46.037 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/signcerts 2020-04-02 17:08:46.037 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/signcerts/cert.pem 2020-04-02 17:08:46.037 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/cacerts 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 024 Inspecting file /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/cacerts/da683817-fb3c-4e73-9f64-26666c1d6ef8-ca.pem 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/admincerts 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/admincerts/cert.pem 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/intermediatecerts 2020-04-02 17:08:46.038 UTC [msp] getMspConfig -> DEBU 028 Intermediate certs folder not found at [/u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/intermediatecerts]. Skipping. [stat /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/intermediatecerts: no such file or directory] 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/tlscacerts 2020-04-02 17:08:46.038 UTC [msp] getMspConfig -> DEBU 02a TLS CA certs folder not found at [/u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/tlsintermediatecerts]. Skipping and ignoring TLS intermediate CA folder. [stat /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/tlscacerts: no such file or directory] 2020-04-02 17:08:46.038 UTC [msp] getPemMaterialFromDir -> DEBU 02b Reading directory /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/crls 2020-04-02 17:08:46.038 UTC [msp] getMspConfig -> DEBU 02c crls folder not found at [/u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/crls]. Skipping. [stat /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/crls: no such file or directory] 2020-04-02 17:08:46.039 UTC [msp] getMspConfig -> DEBU 02d MSP configuration file not found at [/u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/config.yaml]: [stat /u01/da683817-fb3c-4e73-9f64-26666c1d6ef8/cm/msp/config.yaml: no such file or directory] 2020-04-02 17:08:46.039 UTC [msp] newBccspMsp -> DEBU 02e Creating BCCSP-based MSP instance 2020-04-02 17:08:46.039 UTC [msp] New -> DEBU 02f Creating Cache-MSP instance 2020-04-02 17:08:46.039 UTC [msp] loadLocaMSP -> DEBU 030 Created new local MSP 2020-04-02 17:08:46.040 UTC [msp] Setup -> DEBU 031 Setting up MSP instance F20 ```

adianimesh (Wed, 05 Feb 2020 02:14:24 GMT):
``` 2020-04-02 17:08:46.042 UTC [msp.identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIIBfzCCASWgAwIBAgIUVN3bthNL3GjHuakUsZwW0D47d0QwCgYIKoZIzj0EAwIw HDEMMAoGA1UEChMDRjIwMQwwCgYDVQQDEwNGMjAwHhcNMTkxMjIwMTQ1NTAwWhcN MzQxMjE2MTQ1NTAwWjAcMQwwCgYDVQQKEwNGMjAxDDAKBgNVBAMTA0YyMDBZMBMG ByqGSM49AgEGCCqGSM49AwEHA0IABEpt5B7JfclGyr1FIebB/yJbyuSCEEzxC7kc 0lXDYTmBoJx+2fpn5f1Ky7ickPr0ZregZp+Krw5FS3FXIA8QZUSjRTBDMA4GA1Ud DwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEBMB0GA1UdDgQWBBS02nub+XCj h0cZr5va/IGu9fqeTzAKBggqhkjOPQQDAgNIADBFAiEAsHLKErPuU2BLSUGvXCYl Etp7YZ476pwbVrJ503TuyXwCIAjj+synjR0epXftCmwBasW+k480/J82seJpRo/M ALdw -----END CERTIFICATE----- 2020-04-02 17:08:46.043 UTC [msp.identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIIB1zCCAX6gAwIBAgIUG7ursFvwI5MjHXZYVzWmNKhtqW0wCgYIKoZIzj0EAwIw HDEMMAoGA1UEChMDRjIwMQwwCgYDVQQDEwNGMjAwHhcNMTkxMjIwMTQ1NTAwWhcN MjAxMjE5MTUwMDAwWjAmMQ8wDQYDVQQLEwZjbGllbnQxEzARBgNVBAMTCkFuaW1l c2hCUE0wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASRFMaoN195CP4hEhG1nX9u 93V6zVVXysmHnSBUjoopUzbn638R/ZaOiJiulu8EVtFk1yIE+jIQ78+YD9bFPKyx o4GTMIGQMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBST 7Uo2EPcgqLaibLwQ+XZvPp9CGTAfBgNVHSMEGDAWgBS02nub+XCjh0cZr5va/IGu 9fqeTzAwBgNVHREEKTAngglsb2NhbGhvc3SCGmFuYWRpdHlhLW1hYy5pbi5vcmFj bGUuY29tMAoGCCqGSM49BAMCA0cAMEQCIAhGUWG69c/lxG4pqU6eo5dg3sh7zSJf lGD442InVC6dAiBU9lhM7UBVGmLPHDElwfmDBivuisQFpxToJPd30lklHA== -----END CERTIFICATE----- 2020-04-02 17:08:46.044 UTC [msp.identity] newIdentity -> DEBU 034 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIIB1zCCAX6gAwIBAgIUG7ursFvwI5MjHXZYVzWmNKhtqW0wCgYIKoZIzj0EAwIw HDEMMAoGA1UEChMDRjIwMQwwCgYDVQQDEwNGMjAwHhcNMTkxMjIwMTQ1NTAwWhcN MjAxMjE5MTUwMDAwWjAmMQ8wDQYDVQQLEwZjbGllbnQxEzARBgNVBAMTCkFuaW1l c2hCUE0wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASRFMaoN195CP4hEhG1nX9u 93V6zVVXysmHnSBUjoopUzbn638R/ZaOiJiulu8EVtFk1yIE+jIQ78+YD9bFPKyx o4GTMIGQMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBST 7Uo2EPcgqLaibLwQ+XZvPp9CGTAfBgNVHSMEGDAWgBS02nub+XCjh0cZr5va/IGu 9fqeTzAwBgNVHREEKTAngglsb2NhbGhvc3SCGmFuYWRpdHlhLW1hYy5pbi5vcmFj bGUuY29tMAoGCCqGSM49BAMCA0cAMEQCIAhGUWG69c/lxG4pqU6eo5dg3sh7zSJf lGD442InVC6dAiBU9lhM7UBVGmLPHDElwfmDBivuisQFpxToJPd30lklHA== -----END CERTIFICATE----- 2020-04-02 17:08:46.044 UTC [bccsp_p11] getSession -> DEBU 035 Reusing existing pkcs11 session 1 on slot 3 2020-04-02 17:08:48.906 UTC [bccsp_p11] getECKey -> DEBU 036 Private key not found [Key not found [00000000  42 da bd a2 79 2b 97 11  a1 9e 4e d5 c0 20 e2 c3  |B...y+....N.. ..| 00000010  f9 c2 36 4f 74 d7 c9 e5  82 bb cf 71 b3 33 c0 ef  |..6Ot......q.3..| ]] for SKI [42dabda2792b9711a19e4ed5c020e2c3f9c2364f74d7c9e582bbcf71b333c0ef], looking for Public key Failed getting key for SKI [[66 218 189 162 121 43 151 17 161 158 78 213 192 32 226 195 249 194 54 79 116 215 201 229 130 187 207 113 179 51 192 239]] ```

glin (Wed, 05 Feb 2020 06:49:40 GMT):
Hello, is it possible to configure orderer/peer nodes to send selected metrics to statsd?

glin (Wed, 05 Feb 2020 06:52:06 GMT):
Also, can the nodes be configured to add additional dimensions to the metrics?

GioG12 (Wed, 05 Feb 2020 06:52:27 GMT):
Hi guys, when installing chaincodes it crashes and throws V8 deprecation warnings, I installed node 10 and chaincodes build on local system but not in containers. How can I resolve this?

ArindamSaha (Wed, 05 Feb 2020 07:06:50 GMT):
Hello guys, is there anyone who can help us on this

rameshyadav444 (Wed, 05 Feb 2020 07:25:11 GMT):
Hi I just want to know whether Rich queries in Couch DB creates a new block? Currently when I query it is creating a new block, but simple get query is not creating any hash

BrajeshA (Wed, 05 Feb 2020 08:57:13 GMT):
Has joined the channel.

BrajeshA (Wed, 05 Feb 2020 08:59:19 GMT):
Hello can we have array of structs in chaincode and store in global state ?

G596 (Wed, 05 Feb 2020 09:05:17 GMT):
Hi I just wanted to know if it is possible to read/write between two chaincodes in the same channel?

awjh (Wed, 05 Feb 2020 09:29:06 GMT):
I don't believe you can access the world state of another chaincode directly however you can make a call to the other chaincode to call a function which would read/write that data. https://godoc.org/github.com/hyperledger/fabric-chaincode-go/shim#ChaincodeStub.InvokeChaincode

adianimesh (Wed, 05 Feb 2020 10:38:37 GMT):
Can someone please provide some guidance for the issue I am facing ?

awjh (Wed, 05 Feb 2020 10:55:41 GMT):
I am seeing an error when attempting to run chaincode-docker-devmode from fabric-samples. When I used the beta images it seems to work but when I use the 2.0.0 images the CLI container exits when trying to create the channel with `error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/SampleOrg but was in the read set` Anyone else seeing this?

awjh (Wed, 05 Feb 2020 10:57:39 GMT):
Actually seems that the issue is that latest for fabric-tools is a 3 month old image rather than the new 2.0 image

Konstantin_Lysenko (Wed, 05 Feb 2020 11:35:45 GMT):
Has joined the channel.

Konstantin_Lysenko (Wed, 05 Feb 2020 11:35:50 GMT):
Hi I want to implement BFT for Hyperledger Fabric Ordering Service. Should I implement https://github.com/hyperledger/fabric/blob/release-2.0/orderer/consensus/consensus.go? Right?

yacovm (Wed, 05 Feb 2020 11:41:36 GMT):
yes

rameshyadav444 (Wed, 05 Feb 2020 11:56:26 GMT):
Hi I just want to know whether Rich queries in Couch DB creates a new block? Currently when I query it is creating a new block, but simple get query is not creating any hash

RafaelForte (Wed, 05 Feb 2020 12:16:18 GMT):
Hi, I am having problems when adding a new peer to the channel. The peer is added to the channel and updates his ledger, but when I stop the other peers (to test the new peer) I cannot ping the network. I was following the tutorial BuildYour First Network. Why does the new peer doesn't respond?

BrettLogan (Wed, 05 Feb 2020 13:18:08 GMT):
Latest is the current LTS release, which is 1.4.4. We are also going to stop publishing the latest tag once LTS moves to 2.x to avoid this confusion. You can fix the issue by pulling the 2.0 fabric-tools and tagging it as latest for now.

BrettLogan (Wed, 05 Feb 2020 13:20:09 GMT):
Can you add the error to this thread, hunting it down in the chat history is proving impossible

garyclark (Wed, 05 Feb 2020 14:13:25 GMT):
Is 1.4.4 solid and good to go?

BrettLogan (Wed, 05 Feb 2020 14:25:03 GMT):
Yes 1.4.4. is our current supported Long-Term Release

garyclark (Wed, 05 Feb 2020 14:25:20 GMT):
Cool.

garyclark (Wed, 05 Feb 2020 15:44:46 GMT):
I am new to this however I have a simple question. The tutorials use a single machine to create a network with the help of docker containers. However in the real world I would want to deploy on separate centos machines. Say OrgA on 1 and OrgB on another. Is there a tutorial on how to accomplish this? I am using the script byfn.sh as my starting point.

Antimttr (Wed, 05 Feb 2020 15:45:56 GMT):
you mean without docker?

garyclark (Wed, 05 Feb 2020 16:03:42 GMT):
Not sure I can do this without docker? I thought it was prerequisite? I am trying to minimize my change so I can could decompose and reuse the tutorials except break the network from one machine to another.

Antimttr (Wed, 05 Feb 2020 16:04:54 GMT):
afaik docker is required, so you couldn't do it without that. otherwise its just a matter of making sure the nodes you put on the other machine are accessible to the nodes on the first machine, and vice versa

Antimttr (Wed, 05 Feb 2020 16:05:09 GMT):
i dont know of any specific tutorial for doing it on multiple machines

BrettLogan (Wed, 05 Feb 2020 16:06:38 GMT):
Docker isn't technically required, under the covers, all our docker images do is call the binary. If you are run without docker you just need to manage the fault tolerance of the program instead of docker automatically restarting for you

BrettLogan (Wed, 05 Feb 2020 16:09:07 GMT):
If you were going to modify BYFN and run the commands yourself, you would need to modify the configtx.yaml, core.yaml and orderer.yaml to have the correct IP addresses of you servers instead of docker hostnames, and then the commands you run would need to use your remote endpoints in them

BrettLogan (Wed, 05 Feb 2020 16:09:07 GMT):
If you were going to modify BYFN and run the commands yourself, you would need to modify the crypto-config.yml, configtx.yaml, core.yaml and orderer.yaml to have the correct IP addresses of you servers instead of docker hostnames, and then the commands you run would need to use your remote endpoints in them

BrettLogan (Wed, 05 Feb 2020 16:09:42 GMT):
And then when launching your docker containers on your server you would need to properly map the ports so they are accessible from the hosts IP rather than the containers hostname

garyclark (Wed, 05 Feb 2020 16:17:57 GMT):
Just thinking about this now....

garyclark (Wed, 05 Feb 2020 17:57:57 GMT):
Is this typically run with docker containers running on a single server in the real world?

Antimttr (Wed, 05 Feb 2020 18:01:45 GMT):
great question, i havent ever seen any "this is your typical production setup" type official documents

Antimttr (Wed, 05 Feb 2020 18:03:23 GMT):
so I can tell you what I'm currently planning for my implementation: multiple VPS's accross different AWS regions each hosting a full set of nodes for a single peer organization. That way if any two go down the peer org will be able to still perform its duties

BrettLogan (Wed, 05 Feb 2020 18:08:53 GMT):
Absolutely not. A large percentage of production networks we are aware of are running in Kubernetes

BrettLogan (Wed, 05 Feb 2020 18:13:02 GMT):
Assuming you have a decent understanding of networking, setting up a distributed Fabric network is just an exercise in configuring networks (IP's, hostnames, firewalls). All of this assuming you've taken the time to read the doc on configuring the nodes so you understand what fields you need to change in the config files to expose endpoints and point to endpoints

BrettLogan (Wed, 05 Feb 2020 18:15:27 GMT):
The doc workgroup has recently taken this up. Though its not meant to touch on network topologies, as that is very, very use case specific. It's goal is to provide best practices in configuration when deploying in production. This is the first in the series, the intent is to follow up with actual guides for deploying the nodes, totally divorced from docker, using only the binaries: https://github.com/hyperledger/fabric/blob/1bbea6b789ce359de12e3b8cc21124458da19e2c/docs/source/deployment_guide_overview.md

BrettLogan (Wed, 05 Feb 2020 18:15:27 GMT):
The doc workgroup has recently taken this up. Though its not meant to touch on network topologies, as that is very, very use case specific. It's goal is to provide best practices in configuration when deploying in production. This is the first in the series, the intent is to follow up with actual guides for deploying the nodes, totally divorced from docker, using only the binaries: https://github.com/hyperledger/fabric/pull/554

garyclark (Wed, 05 Feb 2020 18:30:34 GMT):
Yes I would like to see a production setup. A simple Org A to Org B. A peer on each. Do I have to know Kubernetes to manage hyperledger? I hope not. I only want to run between two machines with a single channel. Just something to get the green novice like me envisioning it being used in production instead of docker.

BrettLogan (Wed, 05 Feb 2020 18:33:50 GMT):
No you absolutely don't have to know kubernetes. That was just an example. Running the raw binaries on multiple VM's is absolutely possible, there are just different considerations than when using docker

BrettLogan (Wed, 05 Feb 2020 18:37:04 GMT):
Keep an eye on the GitHub Pull Requests for those operational guides the Doc teams are working on

garyclark (Wed, 05 Feb 2020 18:41:05 GMT):
I guess I would like to see a simple guide on this. The helloworld of hyperledger production systems. Yes I will keep an eye on it. I will go deeper into hyperledger and try to understand what I have to do.

Antimttr (Wed, 05 Feb 2020 18:44:28 GMT):
this document is actually pretty good, im reading it now

Antimttr (Wed, 05 Feb 2020 18:44:33 GMT):
has some info ive never seen before

garyclark (Wed, 05 Feb 2020 18:45:13 GMT):
OK I will download now and have a wee look at it.

BrettLogan (Wed, 05 Feb 2020 18:45:50 GMT):
https://github.com/hyperledger/fabric/blob/1bbea6b789ce359de12e3b8cc21124458da19e2c/docs/source/deployment_guide_overview.md

BrettLogan (Wed, 05 Feb 2020 18:45:55 GMT):
The formatted version

BrettLogan (Wed, 05 Feb 2020 18:46:01 GMT):
So you don't have download

BrettLogan (Wed, 05 Feb 2020 18:46:01 GMT):
So you don't have downlaod

garyclark (Wed, 05 Feb 2020 19:05:26 GMT):
Ok lets clone this puppy.

garyclark (Wed, 05 Feb 2020 19:09:52 GMT):
Much happier so far woof to that.

garyclark (Wed, 05 Feb 2020 19:25:15 GMT):
Some of the links are dead. Especially the test network?

BrettLogan (Wed, 05 Feb 2020 19:34:22 GMT):
If you want the links to properly resolve, you'll need to download the compiled HTML

BrettLogan (Wed, 05 Feb 2020 19:34:29 GMT):
https://artprodcus3.artifacts.visualstudio.com/Ab7c77127-c982-4162-96f4-c55408e9cb35/0227bd2c-c4f6-478f-be00-ee519f115180/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL0h5cGVybGVkZ2VyL3Byb2plY3RJZC8wMjI3YmQyYy1jNGY2LTQ3OGYtYmUwMC1lZTUxOWYxMTUxODAvYnVpbGRJZC82MTUxL2FydGlmYWN0TmFtZS9Eb2NCdWlsZA2/content?format=zip

BrettLogan (Wed, 05 Feb 2020 19:34:59 GMT):
The deployment guide page is in the root of the tarball when you open it

garyclark (Wed, 05 Feb 2020 19:35:21 GMT):
ok I will give it a whirl.

Antimttr (Wed, 05 Feb 2020 19:39:03 GMT):
that document is interesting, i finished reading through it. One thing i'll note is that it doesnt mention breaking orderers out into their own seperate organization

Antimttr (Wed, 05 Feb 2020 19:39:13 GMT):
which is something that's been stressed to me here

Antimttr (Wed, 05 Feb 2020 19:39:39 GMT):
peer orgs and orderer orgs should be completely seperated, with their own CA/TLSCA

Antimttr (Wed, 05 Feb 2020 19:56:28 GMT):
also it mentions that an enrollmentCA should be seperate from the IntermediateCA which is something I havent read yet, but thats a good tip

Antimttr (Wed, 05 Feb 2020 19:57:40 GMT):
if that's the case though the intermediate and rootca's can really both be taken offline after they issue their signatures

Antimttr (Wed, 05 Feb 2020 20:00:08 GMT):
So then for my network i would have: RootCA -> IntermediateCA -> EnrollmentCA1, EnrollmentCA2, EnrollmentCA3 / RootTLSCA -> IntermediateTLSCA -> EnrollmentTLSCA / OrdererRootCA -> OrdererIntermediateCA -> OrdererEnrollmentCA1, OrdererEnrollmentCA2

Antimttr (Wed, 05 Feb 2020 20:00:08 GMT):
So then for my network i would have: RootCA -> IntermediateCA -> EnrollmentCA1, EnrollmentCA2, EnrollmentCA3 / RootTLSCA -> IntermediateTLSCA -> EnrollmentTLSCA / OrdererRootCA -> OrdererIntermediateCA -> OrdererEnrollmentCA1, OrdererEnrollmentCA2 / OrdererRootTLSCA -> OrdererIntermediateTLSCA -> OrdererEnrollmentTLSCA

garyclark (Wed, 05 Feb 2020 20:16:47 GMT):
Is this all V2.0?

BrettLogan (Wed, 05 Feb 2020 20:24:23 GMT):
Is there something in particular you think is 2.0, I don't think there is anything in there specific to 2.0, but I could be wrong, I haven't read it in a week

garyclark (Wed, 05 Feb 2020 20:27:41 GMT):
The tutorials I think. The version I had did not have "test network".

BrettLogan (Wed, 05 Feb 2020 20:28:19 GMT):
Ah, yea, test network is 2.0.0, but that is our strategic "place to start" moving forward

garyclark (Wed, 05 Feb 2020 20:28:42 GMT):
oh got ya.

garyclark (Wed, 05 Feb 2020 20:34:38 GMT):
I'm going to spend some time going through it again. Hopefully the penny will drop.

BrettLogan (Wed, 05 Feb 2020 20:36:09 GMT):
test network was meant to be a much better version of BYFN with clearer instructions and better "here is why you are doing this"

BrettLogan (Wed, 05 Feb 2020 20:36:44 GMT):
It also gives you the option to use the Fabric CA instead of Cryptogen, so you get an actual Certificate Authority to use

Antimttr (Wed, 05 Feb 2020 20:36:58 GMT):
i would love to get some specifics on the benefits of using k8 over like a traditional host/docker setup

Antimttr (Wed, 05 Feb 2020 20:37:13 GMT):
unfortuantely my org has 0 k8 expertise so I'm probably not going to go down that route

Antimttr (Wed, 05 Feb 2020 20:38:38 GMT):
i followed this doc when designing my bootstrap scripts for the CAs: https://medium.com/ibm-garage/using-3rd-party-root-cas-in-hyperledger-fabric-3cafa91d1260

Antimttr (Wed, 05 Feb 2020 20:38:44 GMT):
i found it very helpful

Antimttr (Wed, 05 Feb 2020 20:39:08 GMT):
though it doesnt get into having seperate ICA / ECAs

garyclark (Wed, 05 Feb 2020 20:45:38 GMT):
Yeh I'm not sure. Just need to go back and dig in again.

BrettLogan (Wed, 05 Feb 2020 20:47:56 GMT):
With Kube you get failover, fault tolerance, HA and infrastructure management all baked in. Plus you can run in multiple datacenters around the world, but still operate on the same networking layer, so you don't have to handle all of the networking issues. It just does a decent job at solving many of the problems people see when trying to do this themselves

Antimttr (Wed, 05 Feb 2020 20:50:07 GMT):
do you know of any documentation that actually covers implementing HLF and k8 to take advantage of those things?

Antimttr (Wed, 05 Feb 2020 20:50:53 GMT):
i've read a number of articles about using k8 w/hlf but a lot of k8 expertise seems to be required in order to get all the advantages you mentioned in production

garyclark (Wed, 05 Feb 2020 21:22:00 GMT):
https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

garyclark (Wed, 05 Feb 2020 21:22:19 GMT):
I have not tried it but it looked interesting.

adianimesh (Thu, 06 Feb 2020 00:24:25 GMT):
Trying setup Hyperledger fabric with Safenet Gemalto Cloud HSM using PKCS11 and running into issues. Has anyone tried it before ?

GuilhermeLionzo (Thu, 06 Feb 2020 02:25:17 GMT):
Hi btl5037,

GuilhermeLionzo (Thu, 06 Feb 2020 02:28:43 GMT):
Hi Btl5037, Thank you for your suggestion. Using Linux I didn't have any problem :smile: . I wouldn't have lost so many days if I had used Linux.

saanvijay (Thu, 06 Feb 2020 07:38:52 GMT):
algorithm

RobinKlemens (Thu, 06 Feb 2020 09:12:43 GMT):
This tutorial is based and HLF1.4 and Docker Swarm. Keep in mind that the support for Docker Swarm will end within two years... Better to get used to K8s. https://boxboat.com/2019/12/10/migrate-docker-swarm-to-kubernetes/

midhun14 (Thu, 06 Feb 2020 10:42:10 GMT):
Any alternative for balance_transfer project in fabric 2.0?

janipartanen (Thu, 06 Feb 2020 11:26:12 GMT):
Has joined the channel.

usamahabib95 (Thu, 06 Feb 2020 12:40:56 GMT):
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfa2509] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0x1, 0x0, 0x194, 0x2140990) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc000244d40, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f375826a348, 0xc000244d40, 0x13f90a0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f375826a348, 0xc000244d40, 0xc000244d40) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:125 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc000164000, 0xc0004e7ce0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:156 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000119e40, 0xc00039e540, 0xc00022e900, 0x0, 0xc00046de60, 0x20e3980, 0xc0001162f0, 0x2, 0x2, 0xc000116300, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:659 +0x3f7 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc000512900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:177 +0xb5f github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

usamahabib95 (Thu, 06 Feb 2020 12:42:05 GMT):
I am getting this error when I try to bring up my network the ordering service fails to start I am using etcdraft ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfa2509] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0x1, 0x0, 0x194, 0x2140990) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc000244d40, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f375826a348, 0xc000244d40, 0x13f90a0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f375826a348, 0xc000244d40, 0xc000244d40) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:125 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc000164000, 0xc0004e7ce0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:156 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000119e40, 0xc00039e540, 0xc00022e900, 0x0, 0xc00046de60, 0x20e3980, 0xc0001162f0, 0x2, 0x2, 0xc000116300, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:659 +0x3f7 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc000512900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:177 +0xb5f github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 ```

usamahabib95 (Thu, 06 Feb 2020 12:42:05 GMT):
I am getting this error when I try to bring up my network the ordering service fails to start I am using etcdraft .Please help to resolve this isse thanks ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfa2509] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0x1, 0x0, 0x194, 0x2140990) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc000244d40, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f375826a348, 0xc000244d40, 0x13f90a0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f375826a348, 0xc000244d40, 0xc000244d40) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:125 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc000164000, 0xc0004e7ce0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:156 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000119e40, 0xc00039e540, 0xc00022e900, 0x0, 0xc00046de60, 0x20e3980, 0xc0001162f0, 0x2, 0x2, 0xc000116300, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:659 +0x3f7 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc000512900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:177 +0xb5f github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 ```

usamahabib95 (Thu, 06 Feb 2020 12:42:05 GMT):
I am getting this error when I try to bring up my network the ordering service fails to start I am using etcdraft .Please help to resolve this issue thanks ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfa2509] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0x1, 0x0, 0x194, 0x2140990) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc000244d40, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f375826a348, 0xc000244d40, 0x13f90a0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f375826a348, 0xc000244d40, 0xc000244d40) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:125 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc000164000, 0xc0004e7ce0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:156 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000119e40, 0xc00039e540, 0xc00022e900, 0x0, 0xc00046de60, 0x20e3980, 0xc0001162f0, 0x2, 0x2, 0xc000116300, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:659 +0x3f7 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc000512900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:177 +0xb5f github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 ```

garyclark (Thu, 06 Feb 2020 13:19:26 GMT):
Sounds good. Thanks for the link.

miribeiro (Thu, 06 Feb 2020 14:08:30 GMT):
Hi! I want to have two virtual machines running to have a fabric network with multiple hosts. Rigt now I have Ubuntu 18.04 on those machines, however my computer can't handle them at the same time. Do you recommend using Lubuntu instead of Ubuntu? Would it be lighter? Thanks in advance!

miribeiro (Thu, 06 Feb 2020 14:08:30 GMT):
Yes it is. It's to simulate a "real world" case. What I'm developing will be used across several computers in the future.

awjh (Thu, 06 Feb 2020 14:18:46 GMT):
The updated programming model for Go has been released at 1.0.0. It is designed to work with fabric 2.0. You can see more about this release here: https://github.com/hyperledger/fabric-contract-api-go/releases/tag/v1.0.0

garyclark (Thu, 06 Feb 2020 14:20:12 GMT):
Is node sdk in sync as well?

TimSweet (Thu, 06 Feb 2020 14:23:47 GMT):
Has joined the channel.

palra (Thu, 06 Feb 2020 15:07:27 GMT):
I suppose this is for development purposes. Why do you need to have a network with multiple hosts?

miribeiro (Thu, 06 Feb 2020 15:14:44 GMT):
Yes it is. It's to simulate a "real world" case. What I'm developing will be used across several computers in the future.

palra (Thu, 06 Feb 2020 15:25:12 GMT):
So you want to have two distinct VM right ? In two different networks ? For the VM, rolling up a fresh Ubuntu Server install would be enough, yet not really a "real world" like environment. What you're trying to test is a deployment where two (or more) peers communicate across different networks. In order simulate that, you'll need some DNS service reslving to their respective IPs. For me it looks like a time waste, because it's already tested and when you'll get the network running in production you'll have to design your networking again. If your network is working on a single node, it will work on multiple nodes, it's just a matter of configuration and it depends on how you'll deploy that. I don't know if you're getting my point haha

hiroichi (Thu, 06 Feb 2020 16:06:36 GMT):
Has joined the channel.

hiroichi (Thu, 06 Feb 2020 16:08:22 GMT):
https://hyperledger.github.io/fabric-sdk-node/release-1.4/global.html#Block https://hyperledger.github.io/fabric-sdk-node/release-1.4/global.html#SignatureHeader Does the IDBytes value tell which user signed the transaction?

miribeiro (Thu, 06 Feb 2020 16:32:58 GMT):
Yes I get your point! But it is that configuration that I want to try now to get the experience and to be able to do it when the real thing is deployed.

SamikSamik (Thu, 06 Feb 2020 17:15:12 GMT):
Has joined the channel.

SamikSamik (Thu, 06 Feb 2020 17:16:48 GMT):

Clipboard - February 6, 2020 6:16 PM

SamikSamik (Thu, 06 Feb 2020 17:19:02 GMT):
Hello, there is information on Hyperledger Composer release notes (https://github.com/hyperledger/composer/releases). My question is: How I can upgrade to newer version of Fabric? Is there some step by step tutorial please? I have Fabric v1.2 blockchain network created with Composer 0.20.9.

davidkel (Thu, 06 Feb 2020 17:42:50 GMT):
That fabric was a simple development fabric to help you get started when using composer. There is nothing special about it, so you should be able to upgrade it following standard fabric documentation, but why bother ? Composer doesn't even exploit capabilities in fabric 1.2. However you should consider porting your application off asap.

davidkel (Thu, 06 Feb 2020 17:42:50 GMT):
That fabric was a simple development fabric to help you get started when using composer. There is nothing special about it, so you should be able to upgrade it following standard fabric documentation, but why bother ? Composer doesn't even exploit capabilities in fabric 1.2. However you should consider porting your application off of composer asap

davidkel (Thu, 06 Feb 2020 17:42:50 GMT):
That fabric was a simple development fabric to help you get started when using composer. There is nothing special about it, so you should be able to upgrade it following standard fabric documentation, but why bother ? Composer doesn't even exploit capabilities in fabric 1.2. However you should port your application off of composer asap

davidkel (Thu, 06 Feb 2020 17:42:50 GMT):
That fabric was a simple development fabric to help you get started when using composer. There is nothing special about it, so you should be able to upgrade it following standard fabric documentation. However you should port your application off of composer asap

SamikSamik (Thu, 06 Feb 2020 17:54:18 GMT):
This is information that I find out quite late. In my thesis I use a combination of Fabric and Composer, because it is presented on the official website of Composer as a simple tool to build a blockchain network over Fabric. Composer was marked deprecated while writing the my paper. Is there an easy way to convert the network to Fabric and use the structure used in Composer? And to exploit the full potential of Fabric? Do you think that the MVCC_READ_CONFLICT error I currently encounter when sending multiple HTTP requests at once to the Composer REST Server is due to the use of the Dev version of Fabric 1.2? Thank you.

davidkel (Thu, 06 Feb 2020 18:23:30 GMT):
No, MVCC_READ_CONFLICT is not related to your use of fabric 1.2

SamikSamik (Thu, 06 Feb 2020 18:24:45 GMT):
So this issue is still a thing is Fabric 1.4.X ?

SamikSamik (Thu, 06 Feb 2020 18:24:45 GMT):
So this issue is still a thing is Fabric 1.4.X ? Still exists?

SamikSamik (Thu, 06 Feb 2020 18:24:45 GMT):
So this issue is still a thing in Fabric 1.4.X ? Still exists?

davidkel (Thu, 06 Feb 2020 18:31:17 GMT):
It's because your app is modifying the same key in 1 txn before a previous txn which has also modified the same key has been committed

SamikSamik (Thu, 06 Feb 2020 18:52:45 GMT):
Do you know some simple solution?

CT123 (Thu, 06 Feb 2020 22:00:42 GMT):
Running 2.0 and following "Writing Your First Application" e.g, fabcar. All good until: ```Enrolling the admin user Note The following two sections involve communication with the Certificate Authority. You may find it useful to stream the CA logs when running the upcoming programs by opening a new terminal shell and running docker logs -f ca.example.com. ``` There is NO ca.example.com that starts on docker. There are no logs to display. Dashboard shows peers0 & 1 for orgs1 and 2, couchdb's 0-3, orderers (orderer and orderer1-5), and ca_peerOrg1 and ca_peerOrg2. So what should I be logging ca_peerOrg1 or ca_peerOrg2 or? Thanks

KaseyAlusi (Thu, 06 Feb 2020 23:22:49 GMT):
I have a question about configtx.yaml policies and signing. We have a two member channel and were assuming that in order to add a third member to the channel, we'd need a signature from both members to update the configuration. I've read through several pages of the docs (we are specifically using 1.2 here) and I can find descriptions of how the configuration is supposed to look, but not really what each section controls. What blocks should we modify to require a majority of members to sign the channel update operations?

KaseyAlusi (Thu, 06 Feb 2020 23:23:27 GMT):
Also, is 1/2 in Fabric considered a majority?

KaseyAlusi (Thu, 06 Feb 2020 23:23:27 GMT):
Also, is 1 out of 2 in Fabric considered a majority?

TrinhTan (Fri, 07 Feb 2020 02:33:35 GMT):
Has joined the channel.

TrinhTan (Fri, 07 Feb 2020 02:33:49 GMT):
Hi guys! I'm deploying a fabric network with Raft ordering service on kubenetes, but I had some problems with TLS. Have you deployed Raft on K8s yet ? Please show me !!! Thanks

Antimttr (Fri, 07 Feb 2020 02:47:37 GMT):
I beleive it's 2 out of 2 for a majority, 2 out of 3, 3 out of 4, 3 out of 5, ect..

midhun14 (Fri, 07 Feb 2020 09:06:49 GMT):
Hi, which is the grpc version supported for Fabric 2.0

Aniket.1 (Fri, 07 Feb 2020 10:29:05 GMT):
Hello guys, I am getting this while joining a peer in channel: Error opening a new empty ledger. Unsetting under construction flag. Error: error handling CouchDB request. Error:unauthorized, Status Code:401, Reason:You are not a server admin my related configurations are: state: # stateDatabase - options are "goleveldb", "CouchDB" # goleveldb - default state database stored in goleveldb. # CouchDB - store state database in CouchDB stateDatabase: CouchDB # Limit on the number of records to return per query totalQueryLimit: 100000 couchDBConfig: # It is recommended to run CouchDB on the same server as the peer, and # not map the CouchDB container port to a server port in docker-compose. # Otherwise proper security must be provided on the connection between # CouchDB client (on the peer) and server. couchDBAddress: 127.0.0.1:5984 # This username must have read and write authority on CouchDB username: # The password is recommended to pass as an environment variable # during start up (eg CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD). # If it is stored here, the file must be access control protected # to prevent unintended users from discovering the password. password:

Aniket.1 (Fri, 07 Feb 2020 10:29:05 GMT):
Hello guys, I am getting this while joining a peer in channel: `Error opening a new empty ledger. Unsetting under construction flag. Error: error handling CouchDB request. Error:unauthorized, Status Code:401, Reason:You are not a server admin` my related configurations are: ``` state: # stateDatabase - options are "goleveldb", "CouchDB" # goleveldb - default state database stored in goleveldb. # CouchDB - store state database in CouchDB stateDatabase: CouchDB # Limit on the number of records to return per query totalQueryLimit: 100000 couchDBConfig: # It is recommended to run CouchDB on the same server as the peer, and # not map the CouchDB container port to a server port in docker-compose. # Otherwise proper security must be provided on the connection between # CouchDB client (on the peer) and server. couchDBAddress: 127.0.0.1:5984 # This username must have read and write authority on CouchDB username: # The password is recommended to pass as an environment variable # during start up (eg CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD). # If it is stored here, the file must be access control protected # to prevent unintended users from discovering the password. password: ```

Aniket.1 (Fri, 07 Feb 2020 10:29:50 GMT):
I am able to access couchDB UI on http://localhost:5984/_utils/#/_all_dbs . But peer join throwing this error even with same username and password on web and in core.yaml

Aniket.1 (Fri, 07 Feb 2020 10:30:14 GMT):
Has anyone setup and join peer with couchDB?

Starflow (Fri, 07 Feb 2020 10:45:45 GMT):
Has joined the channel.

nimmerjahn (Fri, 07 Feb 2020 10:48:19 GMT):
Has joined the channel.

nimmerjahn (Fri, 07 Feb 2020 10:48:20 GMT):
Hey guys, I'm running a hlf with 3 raft orderer nodes and at the moment one endorser. If I'm creating a new channel, I'm getting the following log messages: `2020-02-07 08:08:12.629 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-02-07 08:08:12.711 UTC [cli.common] readBlock -> INFO 002 Got status: &{NOT_FOUND} 2020-02-07 08:08:12.732 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2020-02-07 08:08:12.949 UTC [cli.common] readBlock -> INFO 004 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.000 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2020-02-07 08:08:13.204 UTC [cli.common] readBlock -> INFO 006 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.266 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2020-02-07 08:08:13.470 UTC [cli.common] readBlock -> INFO 008 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.512 UTC [channelCmd] InitCmdFactory -> INFO 009 Endorser and orderer connections initialized 2020-02-07 08:08:13.717 UTC [cli.common] readBlock -> INFO 00a Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.778 UTC [channelCmd] InitCmdFactory -> INFO 00b Endorser and orderer connections initialized 2020-02-07 08:08:13.998 UTC [cli.common] readBlock -> INFO 00c Received block: 0 ` Any idea why I'm getting "status: &{SERVICE_UNAVAILABLE}"? There are no error messages in the log.

nimmerjahn (Fri, 07 Feb 2020 10:48:20 GMT):
Hey guys, I'm running a hlf with 3 raft orderer nodes and at the moment one endorser. If I'm creating a new channel, I'm getting the following log messages: ` 2020-02-07 08:08:12.629 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-02-07 08:08:12.711 UTC [cli.common] readBlock -> INFO 002 Got status: &{NOT_FOUND} 2020-02-07 08:08:12.732 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2020-02-07 08:08:12.949 UTC [cli.common] readBlock -> INFO 004 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.000 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2020-02-07 08:08:13.204 UTC [cli.common] readBlock -> INFO 006 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.266 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2020-02-07 08:08:13.470 UTC [cli.common] readBlock -> INFO 008 Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.512 UTC [channelCmd] InitCmdFactory -> INFO 009 Endorser and orderer connections initialized 2020-02-07 08:08:13.717 UTC [cli.common] readBlock -> INFO 00a Got status: &{SERVICE_UNAVAILABLE} 2020-02-07 08:08:13.778 UTC [channelCmd] InitCmdFactory -> INFO 00b Endorser and orderer connections initialized 2020-02-07 08:08:13.998 UTC [cli.common] readBlock -> INFO 00c Received block: 0 ` Any idea why I'm getting "status: &{SERVICE_UNAVAILABLE}"? There are no error messages in the log.

nimmerjahn (Fri, 07 Feb 2020 10:50:55 GMT):
HLF Version: 1.4.4

Aniket.1 (Fri, 07 Feb 2020 11:06:29 GMT):
I also get these logs

kegesch (Fri, 07 Feb 2020 12:46:56 GMT):
Hey folks! I am trying to connect to my network with the Node SDK on Windows. That results in `Failed to connect before deadline...`. However I can connect with the Java SDK. Is there a known problem with the Node SDK?

ownspies (Fri, 07 Feb 2020 12:47:20 GMT):
I get these as well, I believe it is just waiting for everything to be fully online and ready; it has never caused a problem though

ownspies (Fri, 07 Feb 2020 12:47:59 GMT):
Can you be more specific about the problems? e.g. Error messages and such.

xxp5769437 (Fri, 07 Feb 2020 13:39:22 GMT):
Has joined the channel.

RobinKlemens (Fri, 07 Feb 2020 14:27:32 GMT):
I'm trying to use the external builder and launcher in HLF2.0. I followed the steps from the docs (modify core.yaml, mount external builder directory to peer (bin folder containing detect, build, releasem run etc.). However, the external build is not starting and fails in detecting the bin/detect file. I'm using the basic network and added the external builder as follows to the volumes of the peer. - ./../external-launcher/:/etc/hyperledger/external-launcher Screenshot of the logs of the peer is the replies.

RobinKlemens (Fri, 07 Feb 2020 14:27:32 GMT):
I'm trying to use the external builder and launcher in HLF2.0. I followed the steps from the docs (modify core.yaml, mount external builder directory to peer (bin folder containing detect, build, releasem run etc.). However, the external build is not starting and fails in detecting the bin/detect file. I'm using the basic network and added the external builder as follows to the volumes of the peer. - ./../external-launcher/:/etc/hyperledger/external-launcher

RobinKlemens (Fri, 07 Feb 2020 14:27:39 GMT):

Screenshot 2020-02-07 at 14.40.19.png

RobinKlemens (Fri, 07 Feb 2020 14:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mc9BhW5zsKQwTgNNv)
Logs-of-the-peer.png

RobinKlemens (Fri, 07 Feb 2020 14:29:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mc9BhW5zsKQwTgNNv)
Logs-of-the-peer.png

ownspies (Fri, 07 Feb 2020 14:56:33 GMT):
I would start with the simple things - file permissions, ownership, etc, and I would try to `ls -latr /etc/hyperledger/external-launcher/bin/` to make sure everything is there they way you expect

ownspies (Fri, 07 Feb 2020 14:56:33 GMT):
I would start with the simple things - file permissions, ownership, etc, and I would try to `ls -latr /etc/hyperledger/external-launcher/bin/` from inside the peer or tools container to make sure everything is there they way you expect

nimmerjahn (Fri, 07 Feb 2020 15:03:19 GMT):
ok, thanks.

garyclark (Fri, 07 Feb 2020 16:29:30 GMT):
Getting some warnings: 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewApplicationGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the application group in configtx.yaml 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewApplicationOrgGroup -> WARN 008 Default policy emission is deprecated, please include policy specifications for the application org group Org1MSP in configtx.yaml 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 009 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewApplicationGroup -> WARN 00a Default policy emission is deprecated, please include policy specifications for the application group in configtx.yaml 2020-02-07 03:04:56.556 CST [common.tools.configtxgen.encoder] NewApplicationOrgGroup -> WARN 00b Default policy emission is deprecated, please include policy specifications for the application org group Org1MSP in configtx.yaml

garyclark (Fri, 07 Feb 2020 16:30:57 GMT):
Its seems to generate just want to clean up the warnings. I think this is because the sample code I took was older than the hyperledger fabric 1.4.

palra (Fri, 07 Feb 2020 16:42:15 GMT):
You're missing the Policies definition in your configtx.yaml. Not an official document, but that's what I found, keep an eye on the Policies : https://gist.github.com/reasdom/2bdae4ccd97e459e6907f343aaa57f4f

garyclark (Fri, 07 Feb 2020 16:44:19 GMT):
Thanks Palra.

garyclark (Fri, 07 Feb 2020 17:32:26 GMT):
Down now to two warnings:

garyclark (Fri, 07 Feb 2020 17:32:26 GMT):
Down now to threewarnings:

garyclark (Fri, 07 Feb 2020 17:32:39 GMT):
2020-02-07 11:32:06.776 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 11:32:06.776 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 11:32:06.777 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 008 Writing new channel tx

garyclark (Fri, 07 Feb 2020 17:34:21 GMT):
2020-02-07 11:34:05.162 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 11:34:05.162 CST [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2020-02-07 11:34:05.163 CST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 008 Writing new channel tx

garyclark (Fri, 07 Feb 2020 17:34:42 GMT):
2 warning remain.

garyclark (Fri, 07 Feb 2020 18:56:27 GMT):
Ok fixed it phew.

garyclark (Fri, 07 Feb 2020 22:08:23 GMT):
Thanks again Palra.

divyasekaran (Sat, 08 Feb 2020 06:44:31 GMT):
Has joined the channel.

divyasekaran (Sat, 08 Feb 2020 06:46:12 GMT):
Hi, I deleted and reinstalled the fabric and i could not able to start up the first network. while running ./byfn up, getting error like Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim. How to resolve this?

divyasekaran (Sat, 08 Feb 2020 06:46:37 GMT):
Link in stack overflow: https://stackoverflow.com/questions/60109527/delete-and-reinstall-hyperledger-fabric

antonimassomola (Sat, 08 Feb 2020 09:05:21 GMT):
Has joined the channel.

antonimassomola (Sat, 08 Feb 2020 09:05:22 GMT):
I'm trying to create a new channel with the Fabric GO SDK. This is the code I'm using adminContext := sdk.Context( fabsdk.WithUser("Admin"), fabsdk.WithOrg("Org1"), ) chMgmtClient, err := resmgmt.New(adminContext) if err != nil { fmt.Printf("Failed to create resource management client %v: ", err) } mspClient, err := mspclient.New(sdk.Context(), mspclient.WithOrg(orgName)) if err != nil { log.Println(err) } adminIdentity, err := mspClient.GetSigningIdentity(orgAdmin) if err != nil { log.Println(err) } // create a channel for orgchannel.tx req := resmgmt.SaveChannelRequest{ChannelID: channelID, ChannelConfigPath: "orgchannel.tx", SigningIdentities: []msp.SigningIdentity{adminIdentity}} txID, err := chMgmtClient.SaveChannel(req, resmgmt.WithRetry(retry.DefaultResMgmtOpts)) if err != nil{ fmt.Printf("Error: %s", err) } fmt.Printf("%s", txID) The error I'm getting is Error: opening channel config file failed: open orgchannel.tx: no such file or directory{} If I'm trying to create a new channel why is it complaining that the file is missing? Thanks

usamahabib95 (Sat, 08 Feb 2020 11:30:37 GMT):
I am getting this error ERRO 038 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer when I run this command peer channel create -o orderer2.regulator.com:9091 -c mychannel -f ./channel-artifacts/channel.tx please help me Thanks

antonimassomola (Sat, 08 Feb 2020 13:22:40 GMT):
add the tls msp --tls --cafile=/etc/hyperledger/orderers/msp/tlscacerts/ca-root-7054.pem'

premib (Sat, 08 Feb 2020 14:48:39 GMT):
Has joined the channel.

premib (Sat, 08 Feb 2020 14:48:39 GMT):
Error: failed to endorse chaincode install = rpc error : code = unavailable desc = transport is closing, chaincode installation on peer0.org1 has failed i am getting this error whenever i start ./byfn.sh with ./byfn.sh up -l java command. everything works fine with golang(default) what should i do, i am extremely new to hyperledger fabric

someguy (Sat, 08 Feb 2020 15:28:31 GMT):
hello guys, anyone knows if Python SDK is stable yet?

ag (Sat, 08 Feb 2020 15:38:26 GMT):
Getting the following error when trying to bring first-network up `ESC[34m2020-02-08 15:29:11.176 UTC [orderer.common.server] TrackChain -> INFO 011ESC[0m Adding mychannel to the set of chains to track panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x90b217] goroutine 1 [running]: github.com/hyperledger/fabric/protoutil.GetMetadataFromBlock(0x0, 0x0, 0x194, 0x19c22a8, 0x0) /go/src/github.com/hyperledger/fabric/protoutil/blockutils.go:109 +0x37 github.com/hyperledger/fabric/protoutil.GetLastConfigIndexFromBlock(0x0, 0xc0006c3e80, 0xffffffffffffffff, 0x0) /go/src/github.com/hyperledger/fabric/protoutil/blockutils.go:167 +0x3a github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f2fd8da5b98, 0xc0006c3e80, 0xeef5a0) /go/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:116 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f2fd8da5b98, 0xc0006c3e80, 0xc0006c3e80) /go/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:129 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc0001de500, 0xc00072e2a0) /go/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:163 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000350400, 0xc0001c6300, 0xc0004c30a0, 0x0, 0x0, 0xc00022ac00, 0x394, 0x594, 0xc000388300, 0xf1, ...) /go/src/github.com/hyperledger/fabric/orderer/common/server/main.go:718 +0x38e github.com/hyperledger/fabric/orderer/common/server.Main() /go/src/github.com/hyperledger/fabric/orderer/common/server/main.go:199 +0xcdf main.main() /go/src/github.com/hyperledger/fabric/cmd/orderer/main.go:15 +0x20`

ag (Sat, 08 Feb 2020 15:38:43 GMT):
How can this be fixed?

someguy (Sat, 08 Feb 2020 18:38:18 GMT):
hello guys, anyone knows if Python SDK is stable yet?

abityildiz (Sat, 08 Feb 2020 20:21:25 GMT):
hi all,i have a setup multi host hlf 2.0 raft consensus.vm0 : orderer,vm01:org1,vm02:org2 .when i approving the chaincode i get the this error: Error: timed out waiting for txid on all peers..Can you any meet the this error?

abityildiz (Sat, 08 Feb 2020 20:21:25 GMT):
hi all,i have a setup multi host hlf 2.0 raft consensus.vm0 : orderer,vm01:org1,vm02:org2 .when i approving the chaincode i get the this error: Error: timed out waiting for txid on all peers..did you any meet the this error?

aditya520 (Sun, 09 Feb 2020 09:32:46 GMT):
I had to reinstall docker and docker-compose file to fix this.

usamahabib95 (Sun, 09 Feb 2020 11:04:46 GMT):
Hello Guys I am getting error when I bring up my network ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/regulator.com/users/Admin@regulator.com/msp" does not exist

usamahabib95 (Sun, 09 Feb 2020 11:06:21 GMT):
Reinstall docker and pull the fabric images again it will solve the issue

fabricDev (Sun, 09 Feb 2020 14:45:47 GMT):
Has joined the channel.

fabricDev (Sun, 09 Feb 2020 14:45:47 GMT):
Hi, i am using kubernetes for production deployment of fabric...My pods hosting peers once restarted all the channel configuration gets lost. How to make it to maintain the config details once pods gets restarted

thejoeflow (Sun, 09 Feb 2020 14:54:05 GMT):
Has joined the channel.

ag (Sun, 09 Feb 2020 16:06:02 GMT):
I pruned docker and reinstalled all images, but didn't help. Also, I noticed their images marked "latest" are older than "2.0.0". Tried 2.0.0 as well, but same result

ag (Sun, 09 Feb 2020 16:06:16 GMT):
seems like a bug in the code

ag (Sun, 09 Feb 2020 16:06:33 GMT):
where the block being passed around is nil

BrettLogan (Sun, 09 Feb 2020 16:16:00 GMT):
Latest is the current LTS release, 2.0 isnt LTS yet.

BrettLogan (Sun, 09 Feb 2020 16:16:34 GMT):
When you pruned docker, did you do a `docker volume prune` as well?

ag (Sun, 09 Feb 2020 16:19:42 GMT):
no, just system prune -a

BrettLogan (Sun, 09 Feb 2020 16:20:13 GMT):
first-network leaves behind a ton of volumes, you cannot do two ups in a row without clearing out the volumes, otherwise you end up with stale crypto

ag (Sun, 09 Feb 2020 16:20:32 GMT):
ok, let me try

BrettLogan (Sun, 09 Feb 2020 16:21:03 GMT):
In between every run of byfn you have to do `./byfn.sh down` which forcibly removes the volumes

BrettLogan (Sun, 09 Feb 2020 16:21:03 GMT):
In between every run of byfn you have to do `./byfn.sh down` which forcibbly removes the volumees

BrettLogan (Sun, 09 Feb 2020 16:23:50 GMT):
In 2.0 we introduced a new tutorial. So if you want to use 2.0, follow this guide: https://github.com/hyperledger/fabric-samples/tree/master/test-network

BrettLogan (Sun, 09 Feb 2020 16:23:50 GMT):
In 2.0 we introduced a new tutorial. So if you want to use 2.0, follow this guide: https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

BrettLogan (Sun, 09 Feb 2020 16:24:06 GMT):
We will be removing BYFN soon

BrettLogan (Sun, 09 Feb 2020 16:24:46 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

BrettLogan (Sun, 09 Feb 2020 16:24:51 GMT):
The doc for the tutorial

BrettLogan (Sun, 09 Feb 2020 16:25:29 GMT):
And if you do a system and volume prune, and delete your fabric-samples directory, you can use this command to set everything up `curl -sSL http://bit.ly/2ysbOFE | bash -s `

BrettLogan (Sun, 09 Feb 2020 16:25:29 GMT):
And if you do a system and volume prune, and delete your fabric-samples directory, you can use this command to set everything up `curl -sSL http://bit.ly/2ysbOFE | bash -s`

ag (Sun, 09 Feb 2020 16:26:06 GMT):
yea that's what I'm running right now. It's downloading all the images again

ag (Sun, 09 Feb 2020 16:26:28 GMT):
I've done a volume prune, so will give the test network a try and revert back

ag (Sun, 09 Feb 2020 16:26:43 GMT):
thanks for all the info :+1:

BrettLogan (Sun, 09 Feb 2020 16:26:45 GMT):
Also, you are on Linux?

BrettLogan (Sun, 09 Feb 2020 16:26:54 GMT):
Or Mac?

ag (Sun, 09 Feb 2020 16:26:58 GMT):
linux

BrettLogan (Sun, 09 Feb 2020 16:26:58 GMT):
Just not Windows, right?

BrettLogan (Sun, 09 Feb 2020 16:27:01 GMT):
Ok good

BrettLogan (Sun, 09 Feb 2020 16:27:36 GMT):
Tons of problems on Windows related to docker, and people spend half their lives working through those issues. If you continue to have issues tag me and I'll take a look

ag (Sun, 09 Feb 2020 16:28:42 GMT):
ya I've had first hand experience of that. Gave up and switched to linux

ag (Sun, 09 Feb 2020 16:33:42 GMT):
works now. Volumes were the issue as you suggested. Thanks a lot!

TBdori (Sun, 09 Feb 2020 21:23:37 GMT):
using AWS managed blockchain (v1.2) and i can install chaincodes ,no issue. but i can't instantiate them.

TBdori (Sun, 09 Feb 2020 21:29:22 GMT):
Error: error getting endorser client for instantiate: endorser client failed to connect to . ~~~ , managedblockchain.us-east-1.amazonaws.com:30003 : failed to create new connection: context deadline exceeded

TBdori (Sun, 09 Feb 2020 21:30:04 GMT):
tested with one sample chaincode ,it initiated ok.

TBdori (Sun, 09 Feb 2020 21:53:49 GMT):
any idea , anybody?

TBdori (Sun, 09 Feb 2020 21:54:12 GMT):
cd

BrettLogan (Sun, 09 Feb 2020 22:00:17 GMT):
Honestly, you're not going to have a lot of luck getting answers specific to AWS's offering, 1.2 is old and AWS is very behind, it's been out of support for a while. I recommend you choose one of the cloud vendors with an offering that is keeping up with our release schedule. You aren't going to get a lot of people who have experience debugging 1.2 anymore. That being said, that error is caused by the inability to establish the gRPC connection, are your firewalls correctly configured on the VM's to allow inbound traffic on the LB or however they are fronting the networkin. I'd like to assume AWS would properly configure the firewalls for you, but I won't make assumptions.

yacovm (Sun, 09 Feb 2020 22:13:52 GMT):
> I recommend you choose one of the cloud vendors with an offering that is keeping up with our release schedule. If only there was a cloud vendor that keeps up with Fabric's releases... :thinking:

TBdori (Mon, 10 Feb 2020 01:09:41 GMT):
thanks for that. i just don't understand why one chaincode was instantiated but the other doesn't.

conanoc (Mon, 10 Feb 2020 03:09:57 GMT):
Are you using persistent volume?

PulkitSarraf (Mon, 10 Feb 2020 04:25:38 GMT):
Hello..! While sending the transaction concurrently to create the connection of users with hyperledger using composer client, it returns me the keys of other user before sending it for one user.

PulkitSarraf (Mon, 10 Feb 2020 04:26:25 GMT):
Like i am getting the keys of user2 in response of user 1

fabricDev (Mon, 10 Feb 2020 04:58:09 GMT):
i am using azure share mount

divyasekaran (Mon, 10 Feb 2020 06:34:57 GMT):
Hello..!

divyasekaran (Mon, 10 Feb 2020 06:37:32 GMT):
Hello.. While bringing up the first-network I am receiving error like "error getting chaincode bytes: failed to calculate dependencies". Using ubuntu 16 and fabric version of 2.0.0. Tried pruning the images, and volumes and checked. Still same error. Any help?

vanitas92 (Mon, 10 Feb 2020 07:18:58 GMT):
make sure you add the go.mod and go.sum for the vendored packages, chaincode now does not include the packages, follow the chaincode structure of go.mod and go.sum like here https://github.com/hyperledger/fabric-samples/tree/master/chaincode/marbles02/go, then execute the following command to vendor the packages, `go mod download`

conanoc (Mon, 10 Feb 2020 07:19:46 GMT):
`/var/hyperledger/production` is the location where the peer data files stored. It should be mounted on the persistent volume you are using.

divyasekaran (Mon, 10 Feb 2020 09:11:14 GMT):
Thank you. It works

vanitas92 (Mon, 10 Feb 2020 09:45:53 GMT):
Hi everyone, i would like to setup the peers 2.0 version in kubernetes yaml the `CORE_CHAINCODE_EXTERNALBUILDERS` through env vars but i am contslanty getting the following error `Error: '': source data must be an array or slice, got string`. I put the following input: ``` I think that is because env var do not support arrays but i am not completely sure ```

vanitas92 (Mon, 10 Feb 2020 09:45:53 GMT):
Hi everyone, i would like to setup the peers 2.0 version in kubernetes yaml the `CORE_CHAINCODE_EXTERNALBUILDERS` through env vars but i am contslanty getting the following error `Error: '': source data must be an array or slice, got string`. I put the following input: ``` - name: CORE_CHAINCODE_EXTERNALBUILDERS value: '[{name: golang-builder, path: /builders/golang}]' ``` I think that is because env var do not support arrays but i am not completely sure. The docs suggest to modify the `core.yaml` file itself but that does not have a good approach with kubernetes: ``` externalBuilders: - name: myexternal path: ```

vanitas92 (Mon, 10 Feb 2020 09:45:53 GMT):
Hi everyone, i would like to setup the peers 2.0 version in kubernetes yaml the `CORE_CHAINCODE_EXTERNALBUILDERS` through env vars but i am contslanty getting the following error `Error: '': source data must be an array or slice, got string`. I put the following input: ``` - name: CORE_CHAINCODE_EXTERNALBUILDERS value: '[{name: golang-builder, path: /builders/golang}]' ``` I think that is because env var do not support arrays but i am not completely sure. The docs suggest to modify the `core.yaml` file itself but that does not have a good approach with kubernetes, though i have tried and it works: > Modify the chaincode stanza of the peer core.yaml file to include the externalBuilders configuration element: ``` externalBuilders: - name: myexternal path: ``` Does anyone have a better approach on this?

Hong3Nguyen (Mon, 10 Feb 2020 09:57:45 GMT):
Hi everyone, I have a problem when I try to instantiate an example chaincode (sacc) for my channel; however, I cannot do it :( do you have any idea? peer0.org2.example.com | 2020-02-10 09:52:11.356 UTC [endorser] callChaincode -> INFO 05d [mychannel][47d84e22] Entry chaincode: name:"lscc" peer0.org2.example.com | 2020-02-10 09:52:16.359 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 05e Error starting SimpleAsset chaincode: error trying to connect to local peer: context deadline exceeded2020-02-10 09:52:16.358 UTC [shim] userChaincodeStreamGetter -> ERRO 001 context deadline exceeded peer0.org2.example.com | 2020-02-10 09:52:16.359 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 05f error trying to connect to local peer peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 060 github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 061 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:112 peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 062 github.com/hyperledger/fabric/core/chaincode/shim.Start peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 063 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:151 peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 064 main.main peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 065 /chaincode/input/src/github.com/chaincode/sacc/sacc.go:94 peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 066 runtime.main peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 067 /opt/go/src/runtime/proc.go:200 peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 068 runtime.goexit peer0.org2.example.com | 2020-02-10 09:52:16.360 UTC [peer.chaincode.dev-peer0.org2.example.com-mycc-v0] func2 -> INFO 069 /opt/go/src/runtime/asm_amd64.s:1337 peer0.org2.example.com | 2020-02-10 09:52:16.481 UTC [dockercontroller] func2 -> INFO 06a Container dev-peer0.org2.example.com-mycc-v0 has closed its IO channel peer0.org2.example.com | 2020-02-10 09:52:17.113 UTC [endorser] callChaincode -> INFO 06b [mychannel][47d84e22] Exit chaincode: name:"lscc" (5757ms) peer0.org2.example.com | 2020-02-10 09:52:17.113 UTC [endorser] SimulateProposal -> ERRO 06c [mychannel][47d84e22] failed to invoke chaincode name:"lscc" , error: container exited with 0 peer0.org2.example.com | github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org2.example.com | /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org2.example.com | runtime.goexit peer0.org2.example.com | /opt/go/src/runtime/asm_amd64.s:1337 peer0.org2.example.com | chaincode registration failed

Hong3Nguyen (Mon, 10 Feb 2020 10:07:48 GMT):
From some points, I think that a docker container was created for the chaincode, but then it was removed However, I dont know why it happens :(

premib (Mon, 10 Feb 2020 10:26:47 GMT):
is test_network the new build your first network? should i go through byfn before moving to test_network or shall i move directly to test_network

RobinKlemens (Mon, 10 Feb 2020 13:57:18 GMT):
So, I figured out that bash is missing in the Alpine-based docker images in HLF2.0. First I tried to use the scripts as "#!/bin/sh" instead of "#!/bin/bash" as provided from the examples in the docs. However, in sh jq is not includedet. Thus, I added bash and jq to the docker image. Now I'm facing the next missing package (golang) to run "go build". Is there any workaround instead of installing and adding all the packages manually? Because if I blow up my Alpine-based docker image I don't get the sense of using Alpine anyway...

BrettLogan (Mon, 10 Feb 2020 14:02:55 GMT):
What are you trying to do that you need all these added tools? The `hyperledger/fabric-tools` image exists for this reason

BrettLogan (Mon, 10 Feb 2020 14:03:49 GMT):
What are you trying to do that you need all these added tools? The `hyperledger/fabric-tools` image exists for this reason

dcof (Mon, 10 Feb 2020 14:04:57 GMT):
Hi, i'm wondering about the purpose of the CLI container? What is the advantage in using a dedicated CLI container instead of connecting to the peers directly? Can anybody explain this to me or provide some reading on this topic?

BrettLogan (Mon, 10 Feb 2020 14:04:58 GMT):
None of these are missing, the images arent meant to be bloated and contain every tool you'll ever need, they contain exactly what's required to run the network

Prygan (Mon, 10 Feb 2020 14:24:30 GMT):
I everyone ! I was wondering if there is any tool to generate the `network.json` file needed by the SDK to interact with hyperleger fabric from a client (like this one: https://github.com/hyperledger/fabric-sdk-py/blob/master/test/fixtures/network.json). Anyone would have any infos on it ?

Prygan (Mon, 10 Feb 2020 14:33:02 GMT):
I guess this file is also called connection profile

Antimttr (Mon, 10 Feb 2020 15:50:38 GMT):
i beleive this would be a file you create by hand, or if you like write a tool to generate it

Antimttr (Mon, 10 Feb 2020 15:51:00 GMT):
afaik there's nothing like cryptogen for it where its generated automatically

Prygan (Mon, 10 Feb 2020 15:59:59 GMT):
I see, thanks :) that's sad cryptogen does not also generate it

Antimttr (Mon, 10 Feb 2020 16:05:48 GMT):
well cryptogen is kind of a trap in and of itself, its great for getting a test network off the ground, but you really shouldnt use it in production, so I ended up writing a bunch of python scripts to automate what it does using production best practices

Prygan (Mon, 10 Feb 2020 16:28:03 GMT):
Would you have any doc on why one should't use cryptogen in production ?

SamikSamik (Mon, 10 Feb 2020 16:28:16 GMT):
Hello, I would like to ask someone. When I am sanding transaction proposal by SDK (REST server), in wich phase it is responding whether the transaction was validated or invalidated. When it is immutably appended to the chain or in some earlier stage? In particular, I am referring to a situation when an MVCC error occurs. Thank you.

garyclark (Mon, 10 Feb 2020 17:03:03 GMT):
Anybody seen this error. Some configuration issue no doubt. I opened up all the ports. I did see some blurb about docker and NO_PROXY in the docker configuration. Attempting to connect to swarm. docker swarm join --token SWMTKN-1-2dzizeprxdmpvp4cx7z3ibvhw0ro19hl4qrh7dfia6bssu62oz-b9sjoso7m161aeg4oaseu59jm 192.168.1.110:2377 Error response from daemon: can't initialize raft node: rpc error: code = 2 desc = could not connect to prospective new cluster member using its advertised address: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 192.168.1.71:2377: connect: no route to host"

garyclark (Mon, 10 Feb 2020 17:07:32 GMT):
192.168.1.110 is where the swarm is initialized.

Antimttr (Mon, 10 Feb 2020 17:07:52 GMT):
i would check connectivity

Antimttr (Mon, 10 Feb 2020 17:08:23 GMT):
see if you can open up a raw socket using cli telnet from the box hosting the docker containers

Antimttr (Mon, 10 Feb 2020 17:12:18 GMT):
https://stackoverflow.com/questions/58551569/using-the-cryptogen-for-production-environment

garyclark (Mon, 10 Feb 2020 17:19:04 GMT):
telnet 192.168.1.110 2377 connects good.

garyclark (Mon, 10 Feb 2020 17:19:28 GMT):
Its something else.

Antimttr (Mon, 10 Feb 2020 17:22:01 GMT):
what about 192.168.1.71 2377 ?

garyclark (Mon, 10 Feb 2020 17:30:32 GMT):
Great. On machine 192.168.1.71 I can telnet to 192.168.1.110 on port 2377. On machine 192.168.1.110 I cannot telnet to 192.168.1.71 on port 2377.

Antimttr (Mon, 10 Feb 2020 17:31:05 GMT):
yeah so thats probably causing your error

Antimttr (Mon, 10 Feb 2020 17:31:26 GMT):
double check all your docker-composer files and docker ps for correct port numbers

Antimttr (Mon, 10 Feb 2020 17:31:29 GMT):
and your firewall rules

garyclark (Mon, 10 Feb 2020 17:31:36 GMT):
Sounds like a firewall issue.

garyclark (Mon, 10 Feb 2020 17:36:50 GMT):
Ok my bad all resolved added to the swarm. A firewall issue. Thanks Antimttr.

garyclark (Mon, 10 Feb 2020 17:37:09 GMT):
Ok let the games begin.

garyclark (Mon, 10 Feb 2020 17:43:36 GMT):
One more cup of tea and a big dive on this now.

garyclark (Mon, 10 Feb 2020 19:11:41 GMT):
docker run --rm -it --network="my-net" --name orderer.example.com -p 7050:7050 -e ORDERER_GENERAL_LOGLEVEL=debug -e ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 -e ORDERER_GENERAL_LISTENPORT=7050 -e ORDERER_GENERAL_GENESISMETHOD=file -e ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block -e ORDERER_GENERAL_LOCALMSPID=OrdererMSP -e ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp -e ORDERER_GENERAL_TLS_ENABLED=false -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -v $(pwd)/channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block -v $(pwd)/crypto-config/ordererOrganizations/heliosedge.com/orderers/orderer.heliosedge.com/msp:/var/hyperledger/orderer/msp -w /opt/gopath/src/github.com/hyperledger/fabric hyperledger/fabric-orderer orderer

garyclark (Mon, 10 Feb 2020 19:13:13 GMT):
I ran the CA Server without a hitch.

garyclark (Mon, 10 Feb 2020 19:13:34 GMT):
The Orderer is failing with:

garyclark (Mon, 10 Feb 2020 19:13:58 GMT):
020-02-10 19:09:28.593 UTC [orderer.common.server] Start -> PANI 003 Failed validating bootstrap block: cannot enable channel capabilities without orderer support first panic: Failed validating bootstrap block: cannot enable channel capabilities without orderer support first

Antimttr (Mon, 10 Feb 2020 19:14:52 GMT):
are you running this in the byfn environment? or one of the other samples? or are you rolling your own hlf?

garyclark (Mon, 10 Feb 2020 19:16:09 GMT):
Rolling my own. I went through some of the examples such as byfn and fabcar. Want to get it run on two separate machines. Not one.

Antimttr (Mon, 10 Feb 2020 19:16:40 GMT):
i would consult this guide, https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html

Antimttr (Mon, 10 Feb 2020 19:16:53 GMT):
from what you're pasting it looks like you've already generated the genesisblock?

Antimttr (Mon, 10 Feb 2020 19:17:02 GMT):
but it seems like that's what its complaining about not having

Antimttr (Mon, 10 Feb 2020 19:18:14 GMT):
did you use configtxgen to generate the genesis block?

garyclark (Mon, 10 Feb 2020 19:18:35 GMT):
Yes

Antimttr (Mon, 10 Feb 2020 19:21:08 GMT):
not really seeing to much on google

Antimttr (Mon, 10 Feb 2020 19:21:09 GMT):
https://stackoverflow.com/questions/53880142/hyperledger-fabric-channel-creation-failure

Antimttr (Mon, 10 Feb 2020 19:21:30 GMT):
might be your configtx.yaml is off, or you're setting some channel capabilities that arent enabled in the orderer config

garyclark (Mon, 10 Feb 2020 19:22:12 GMT):
Let me just check this genesis block is being generated.

garyclark (Mon, 10 Feb 2020 19:33:40 GMT):
is there a command to show what version has been installed? I am looking at the configtx.yaml. This could be the problem. Mismatched versions.

Antimttr (Mon, 10 Feb 2020 19:35:16 GMT):
version of what?

Antimttr (Mon, 10 Feb 2020 19:36:08 GMT):
``` $ configtxgen --version configtxgen: Version: 1.4.1 Commit SHA: 87074a7 Go version: go1.11.5 OS/Arch: linux/amd64 ```

garyclark (Mon, 10 Feb 2020 19:37:09 GMT):
docker run --rm hyperledger/fabric-peer:latest peer version

garyclark (Mon, 10 Feb 2020 19:41:21 GMT):
If the channel capabilities is V1_4_3:true should the orderer capabilities match to V1_4_3 also? I have V1_4_2:true.

rpocase (Mon, 10 Feb 2020 19:41:38 GMT):
Has left the channel.

Antimttr (Mon, 10 Feb 2020 19:42:46 GMT):
not sure on that one

garyclark (Mon, 10 Feb 2020 19:43:30 GMT):
Cool. It did not change the result.

garyclark (Mon, 10 Feb 2020 19:58:54 GMT):
Ok I think I found my problem. I had the orderersCapabiities line missing from teh .yaml file. I now have the orderer running and the ca server.

Antimttr (Mon, 10 Feb 2020 19:59:35 GMT):
nice

garyclark (Mon, 10 Feb 2020 19:59:37 GMT):

Clipboard - February 10, 2020 1:59 PM

zwartesokken (Mon, 10 Feb 2020 20:05:23 GMT):
Hi guys, I have a question about the transaction flow. Following the explanation on https://hyperledger-fabric.readthedocs.io/en/release-1.4/txflow.html . Point 6 it state `Each peer appends the block to the channel’s chain, and for each valid transaction the write sets are committed to current state database` Does that mean that the transaction is written to the blockchain and state database for instance like couchdb? I'm asking this because I noticed when creating a transaction to the blockchain and immediately after reading it, I'll get back an empty value, but if I read again it is there. As stated in the documentation I do wait for submitTransaction event to make sure it is actually written.

Antimttr (Mon, 10 Feb 2020 20:06:27 GMT):
the new block is written to the blockchain and the values in the couchdb are updated

Antimttr (Mon, 10 Feb 2020 20:06:46 GMT):
couchdb doesnt get a full copy of the transaction afaik

zwartesokken (Mon, 10 Feb 2020 20:08:07 GMT):
@Antimttr So I should get the value immediately after right? (If I implemented waiting for the submitTransaction event correctly)

Antimttr (Mon, 10 Feb 2020 20:09:01 GMT):
ahh depends on which peer you're querying, if you are doing one that you can see has already finished the transaction then it should be good to go

Antimttr (Mon, 10 Feb 2020 20:09:18 GMT):
peers in other orgs might take longer to update

zwartesokken (Mon, 10 Feb 2020 20:10:50 GMT):
This does indeed happen at other peers in the channel.

Antimttr (Mon, 10 Feb 2020 20:11:24 GMT):
you could setup an event listener and then wait for that to trigger

Antimttr (Mon, 10 Feb 2020 20:12:56 GMT):
oh i see you already did that?

Antimttr (Mon, 10 Feb 2020 20:13:24 GMT):
i think

Antimttr (Mon, 10 Feb 2020 20:13:31 GMT):
you can setup an event listener for each peer

Antimttr (Mon, 10 Feb 2020 20:13:47 GMT):
i havent done any of this but it would stand to reason

zwartesokken (Mon, 10 Feb 2020 20:14:10 GMT):
Yeah so the scenario is that one peer submits a transaction (and wait for the submittransaction event) if its done, it calls a rest endpoint and reads that key from the blockchain. And that last part is not consistent

zwartesokken (Mon, 10 Feb 2020 20:14:29 GMT):
and this is between two peers

Antimttr (Mon, 10 Feb 2020 20:18:02 GMT):
so if you wait long enough does it eventaully become consistant between all the peers?

zwartesokken (Mon, 10 Feb 2020 20:18:40 GMT):
yes, my 'hack' is to retry, but I'm not sure if that is the good to actually do it

ChrisSargent (Mon, 10 Feb 2020 20:37:24 GMT):
Has joined the channel.

conanoc (Tue, 11 Feb 2020 05:48:59 GMT):
@zwartesokken You could set connection option to wait for all peers of the network to commit. The default is waiting for all peers within the user's organization. See eventHandlerOptions.strategy in https://hyperledger-fabric.readthedocs.io/en/latest/developapps/connectionoptions.html#options

ameyaosd (Tue, 11 Feb 2020 10:42:31 GMT):
Hi, in the chaincode for developers(https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html) tutorial, i get error `go build github.com/hyperledger/fabric-samples/chaincode/sacc: open sacc: permission denied`

ameyaosd (Tue, 11 Feb 2020 10:42:53 GMT):
when I try to run `go build` from the second terminal

ameyaosd (Tue, 11 Feb 2020 10:43:21 GMT):
It seems that I dont have write permission here so the executable will not be written

ameyaosd (Tue, 11 Feb 2020 10:43:39 GMT):
how do I go about this issue? Could anyone please help me?

awjh (Tue, 11 Feb 2020 10:49:32 GMT):
On your host machine try running `chmod -R 766 sacc` in your fabric-samples/cahincode/sacc folder?

SamikSamik (Tue, 11 Feb 2020 10:50:42 GMT):
Hello, I would like to ask someone. When I am sanding transaction proposal by SDK (REST server), in wich phase it is responding whether the transaction was validated or invalidated. When it is immutably appended to the chain or in some earlier stage? In particular, I am referring to a situation when an MVCC error occurs. Thank you.

SamikSamik (Tue, 11 Feb 2020 10:53:13 GMT):
2020-02-07T15:29:21.231Z ERROR :HLFTxEventHandler :Peer localhost:7051 has r null$ 2020-02-07T15:29:21.232Z ERROR :HLFConnection :invokeChainCode() Failed to invoke business network with transaction id: f770132bac17be29767080436e8d3f7d164698131307c0a396cd9c4c5cf9a503 {}$ 2020-02-07T15:29:21.232Z ERROR :HLFConnection :invokeChainCode() {"message":"Peer localhost:7051 has rejected transaction 'f770132bac17be29767080436e8d3f7d164698131307c0a396cd9c4c5cf9a503' with code MVCC_READ_CONFLICT","stack":"Error: Peer localhost:7051 has rejected transaction 'f770132bac17be29767080436e8d3f7d164698131307c0a396cd9c4c5cf9a503' with code MVCC_READ_CONFLICT\n at EventRegistration.eh.registerTxEvent [as onEvent] (/home/sami/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlftxeventhandler.js:79:40)\n at ChannelEventHub._callTransactionListener (/home/sami/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:1092:14)\n at ChannelEventHub._processTxEvents (/home/sami/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:1079:10)\n at ClientDuplexStream. (/home/sami/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:360:11)\n at emitOne (events.js:116:13)\n at ClientDuplexStream.emit (events.js:211:7)\n at addChunk (_stream_readable.js:263:12)\n at readableAddChunk (_stream_readable.js:250:11)\n at ClientDuplexStream.Readable.push (_stream_readable.js:208:10)\n at readCallback (/home/sami/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/grpc/src/client.js:312:14)"}$

bellaj (Tue, 11 Feb 2020 10:54:16 GMT):
Has joined the channel.

bellaj (Tue, 11 Feb 2020 10:54:17 GMT):
Hello, I have a question: Did Hyperledger fabric moved to Utxo model for transaction storage ? I've read somewhere that's will be the case in Fabric 2.0

RobinKlemens (Tue, 11 Feb 2020 11:05:14 GMT):
You can have a look here. https://hyperledger-fabric.readthedocs.io/en/release-2.0/pluggable_endorsement_and_validation.html Hope this helps.

bellaj (Tue, 11 Feb 2020 11:22:32 GMT):
Thanks, but this part of the doc doesn't answer the question.

jaicompu (Tue, 11 Feb 2020 12:35:07 GMT):
Has joined the channel.

jaicompu (Tue, 11 Feb 2020 12:35:08 GMT):
Hi, I am using node sdk to create channel with test-network docker setup with CA of 2.0, and during join channel when its trying to call channel.getGenesisBlock(request) I am getting error Error: Invalid results returned ::SERVICE_UNAVAILABLE

abityildiz (Tue, 11 Feb 2020 12:49:27 GMT):
did you have a setup multi host fabric 2.0?is there any example?

dcof (Tue, 11 Feb 2020 12:51:13 GMT):
are there any changes regarding a multi host network for 2.0?

HLFPOC (Tue, 11 Feb 2020 13:49:18 GMT):
I installed the binaries and docker images for fabric version 2.0 by following https://hyperledger-fabric.readthedocs.io/en/release-2.0/install.html#install-samples-binaries-and-docker-images and it was successfully downloaded, however after running the `docker images` command, I can see same image with 3 different tags (v2.0, v2.0.0 and latest). Is this expected behavior ?

HLFPOC (Tue, 11 Feb 2020 13:49:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ApjCCYJvK3FMffCgc)
Clipboard - February 11, 2020 7:19 PM

LWIH (Tue, 11 Feb 2020 14:33:27 GMT):
Has joined the channel.

narendranathreddy (Tue, 11 Feb 2020 14:53:40 GMT):

Mastering Hyperledger Fabric - February 11, 2020 6:53 PM

narendranathreddy (Tue, 11 Feb 2020 14:59:13 GMT):
Mastering Hyperledger Fabric. A one-stop solution to become Master in the Hyperledger Fabric Key Features Detailed Explanation of One way TLS and mutual TLS Detailed Explanation of docker sockets (docker.sock) Exposed functionalities of Fabric CLI’s and SDK’s Enterprise level chaincode development Advanced examples of Node and golang Fabric SDK Onboard new organization using nodejs SDK (No more CLI) CI/CD for chaincode (Install chaincode directly onto peers from GitHub using Node.js) Fabric setup explanation with Different real time use cases Deployment of Hyperledger Fabric using docker swarm and kubernetes Setup and configure caliper to check benchmarks Monitor consortium with Prometheus and grafana Monitor docker and docker swarm using swarmpit and logspout Logging consortium with ELK/EFK stack Some interesting open source tools and some Bonus concepts Table of Contents Chapter1: Introduction to the Hyperledger Landscape Chapter2: The Disruptive Potential of TLS Chapter3: All about docker sockets Chapter4: Installation Guide Of Prerequisites Chapter5: All about fabric CLI Chapter6: All about SDK's (go lang and Node.js) Chapter7: Advanced Chaincode Chapter8: Running fabric consortium with Solo consensus using docker Chapter9: Running fabric Consortium with Kafka consensus using docker swarm Chapter10: Running fabric Consortium with Raft consensus using kubernetes Chapter11: Private Data Concept Chapter12: Setup and Benchmark Blockchain Consortium Using Caliper Chapter13: Monitoring Consortium with Prometheus and grafana Chapter14: Logging Consortium with ELK Stack Chapter15: Some Interesting tools Who this Book is For This Book benefits Software Engineers who are ready to shift their focus to distributed technologies and Blockchain. This book provides a comprehensive view of Solution Architecture so, it will be easy for architects to architect their solution. CTO’s around the world want to add hyperledger fabric to their technology stack. Managers to cope up with the latest trend. Faculty Professors in order to get industry insights. Even Engineering Students who want to be ready with the latest technologies. Book Description Mastering Hyperledger Fabric is a craving topic for all Hyperledger Fabric Developers around the world. Hyperledger Fabric is an open-source project that helps organizations create and maintain permissioned distributed Blockchain consortiums. This book is for readers who are looking for Hyperledger offerings to build end-to-end projects with growing complexity and functionalities. This book will be a one-stop solution for all developers who want to build blockchain consortiums using Hyperledger Fabric. Topics includes TLS, Unix sockets, caliper(Benchmark tool), raft consensus, advanced chaincode development, key collision and MVCC, chaincode access controls, chaincode encryption, node.js SDK, golang SDK, docker daemon API, private data concepts, onboarding organizations using node.js SDK, deploy hyperledger fabric using Kubernetes, deploy hyperledger fabric using docker swarm, monitoring hyperledger fabric, monitoring Kubernetes, monitoring docker swarm, logging hyperledger fabric. After reading this book the reader will be able to set up Production grade hyperledger fabric consortium using raft consensus mechanisms with monitoring using Prometheus and grafana, even logging. This book can be read by software engineers, blockchain engineers, university professors, university students, any level from beginner to master. A deep learning cure is there for beginners. This book explains so many key concepts of hyperledger fabric and written with three years of hyperledger fabric production experience.

garyclark (Tue, 11 Feb 2020 15:07:07 GMT):
docker run --rm -it --network="my-net" --link orderer.example.com:orderer.example.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer1.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGIG_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosSiteLabMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start 2020-02-11 15:05:11.416 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: could not read directory /etc/hyperledger/fabric/msp/signcerts: open /etc/hyperledger/fabric/msp/signcerts: permission denied

garyclark (Tue, 11 Feb 2020 15:08:17 GMT):
I am setting up the second peer. I can see my certificates in the path. The directory permissions are good? The first peer came up good? Any ideas would appreciated.

garyclark (Tue, 11 Feb 2020 15:48:44 GMT):
ok the CORE_PEER_MSPCONFIGPATH needed to be set.

informartin (Tue, 11 Feb 2020 15:54:33 GMT):
Has joined the channel.

informartin (Tue, 11 Feb 2020 15:54:34 GMT):
Hi everyone, I am wondering if it is possible to implement the feature of local collections proposed in https://jira.hyperledger.org/browse/FAB-7593 can be by applying the "Keeping transactors private" pattern described in https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html#private-data-sharing-patterns from Fabric 2.0 on?

informartin (Tue, 11 Feb 2020 15:54:34 GMT):
Hi everyone, I am wondering if it is possible to implement the feature of local collections proposed in https://jira.hyperledger.org/browse/FAB-7593 by applying the "Keeping transactors private" pattern described in https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html#private-data-sharing-patterns from Fabric 2.0 on?

yacovm (Tue, 11 Feb 2020 16:09:43 GMT):
@informartin - that's a great question

yacovm (Tue, 11 Feb 2020 16:10:04 GMT):
@aso @adc @elli-androulaki ^

elli-androulaki (Tue, 11 Feb 2020 16:10:04 GMT):
Has joined the channel.

yacovm (Tue, 11 Feb 2020 16:10:36 GMT):
may i ask why do you need it for, @informartin ?

informartin (Tue, 11 Feb 2020 16:15:21 GMT):
I would like to implement a scenario where participants of a channel cannot observe who is collaborating with who. Therefore, when a participant executes a chaincode containing private data, other participants of the channel should not be able to observe the members of that private data collection. From my understanding, such a use case could be implemented usuing local data collections as proposed, but the mentioned pattern may just do the job as well utilizing distinct organization-specific collections.

garyclark (Tue, 11 Feb 2020 16:17:19 GMT):
thats quite a proposal your suggesting informartin.

yacovm (Tue, 11 Feb 2020 16:17:44 GMT):
That's a proposal that was suggested in the past and was abandoned due to lack of interest from the.... community ;)

yacovm (Tue, 11 Feb 2020 16:17:52 GMT):
I suggest that you ask this in the Hyperledger Fabric mailing list

yacovm (Tue, 11 Feb 2020 16:18:04 GMT):
fabric@lists.hyperledger.org

yacovm (Tue, 11 Feb 2020 16:18:17 GMT):
and then we can raise awareness for this, and in the future - add this to Fabric

garyclark (Tue, 11 Feb 2020 16:18:20 GMT):
Private channel data sharing.

informartin (Tue, 11 Feb 2020 16:20:27 GMT):
Alright, thanks for the hint! I will ask in the mailing list and hope to find some collaborators ;)

yacovm (Tue, 11 Feb 2020 16:31:33 GMT):
you might find more than you can wish for, @informartin

PauloQuerido (Tue, 11 Feb 2020 17:15:27 GMT):
`public void`

PauloQuerido (Tue, 11 Feb 2020 17:19:26 GMT):
Hi guys, I'm trying to make consecutive calls to query.js on the fabcar example and i get the following error: `2020-02-11T17:02:43.945Z - warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer1.org1.example.com:8051" failed: message=cannot retrieve package for chaincode fabcar/1.0, error open /var/hyperledger/production/chaincodes/fabcar.1.0: no such file or directory, stack=Error: cannot retrieve package for chaincode fabcar/1.0, error open /var/hyperledger/production/chaincodes/fabcar.1.0: no such file or directory` `at self._endorserClient.processProposal (/home/paulo/fabric-samples/fabcar/apiserver/node_modules/fabric-client/lib/Peer.js:140:36)` `at Object.onReceiveStatus (/home/paulo/fabric-samples/fabcar/apiserver/node_modules/grpc/src/client_interceptors.js:1207:9)` `at InterceptingListener._callNext (/home/paulo/fabric-samples/fabcar/apiserver/node_modules/grpc/src/client_interceptors.js:568:42)` `at InterceptingListener.onReceiveStatus (/home/paulo/fabric-samples/fabcar/apiserver/node_modules/grpc/src/client_interceptors.js:618:8)` `at callback (/home/paulo/fabric-samples/fabcar/apiserver/node_modules/grpc/src/client_interceptors.js:845:24), status=500, , url=grpcs://localhost:8051, name=peer1.org1.example.com:8051, grpc.max_receive_message_length=-1, grpc.max_send_message_length=-1, grpc.keepalive_time_ms=120000, grpc.http2.min_time_between_pings_ms=120000, grpc.keepalive_timeout_ms=20000, grpc.http2.max_pings_without_data=0, grpc.keepalive_permit_without_calls=1, name=peer1.org1.example.com:8051, grpc.ssl_target_name_override=peer1.org1.example.com, grpc.default_authority=peer1.org1.example.com, isProposalResponse=true` `Failed to evaluate transaction: Error: cannot retrieve package for chaincode fabcar/1.0, error open /var/hyperledger/production/chaincodes/fabcar.1.0: no such file or directory`

garyclark (Tue, 11 Feb 2020 17:33:44 GMT):
Good for you.

Antimttr (Tue, 11 Feb 2020 17:39:11 GMT):
looks like it cant find the chaincode

PauloQuerido (Tue, 11 Feb 2020 17:48:26 GMT):
But it works most of time. I still haven't figured out why it happens.

Antimttr (Tue, 11 Feb 2020 17:49:18 GMT):
that is strange

garyclark (Tue, 11 Feb 2020 17:49:24 GMT):
Maybe where your running it from if its intermittent.

Antimttr (Tue, 11 Feb 2020 17:49:52 GMT):
well looks like its just running from a local docker environment

garyclark (Tue, 11 Feb 2020 17:50:01 GMT):
The directory?

PauloQuerido (Tue, 11 Feb 2020 17:50:43 GMT):
Which directory?

garyclark (Tue, 11 Feb 2020 17:54:07 GMT):
I am assuming your running node query.js from within the javascript directory?

PauloQuerido (Tue, 11 Feb 2020 17:54:20 GMT):
I am

garyclark (Tue, 11 Feb 2020 17:54:36 GMT):
Sometimes it works and sometime it does not?

PauloQuerido (Tue, 11 Feb 2020 17:54:56 GMT):
Correct

PauloQuerido (Tue, 11 Feb 2020 17:56:14 GMT):
It's weird because there's no pattern. Sometimes it happens right away, other times I can stress the network and it responds well

garyclark (Tue, 11 Feb 2020 17:56:21 GMT):
I have not seen this problem. Could be a bad Promise not sure.

garyclark (Tue, 11 Feb 2020 17:57:43 GMT):
I am new to this so just getting to know the pitfalls as well.

PauloQuerido (Tue, 11 Feb 2020 17:59:08 GMT):
The main goal of what I'm trying to do is to develop endpoints to communicate with the network. I tried using ExpressJS as a framework to do so but everytime this error happens the server crashes.

PauloQuerido (Tue, 11 Feb 2020 17:59:08 GMT):
The main goal of what I'm trying to do is implement endpoints to communicate with the network. I tried using ExpressJS as a framework to do so but everytime this error happens the server crashes.

garyclark (Tue, 11 Feb 2020 18:02:27 GMT):
Yeh make sure that you have an aligned version of node.js and the node sdk. That could be your problem.

garyclark (Tue, 11 Feb 2020 18:03:36 GMT):
I think there is something in the documentation of recommended version.

PauloQuerido (Tue, 11 Feb 2020 18:04:26 GMT):
I think I double checked everything. I have a fresh virtual machine running the network

garyclark (Tue, 11 Feb 2020 18:04:50 GMT):
ok

garyclark (Tue, 11 Feb 2020 18:16:20 GMT):
I have a quick question. Which will lead to a down pour of others. I am setting up a second peer on another machine. CouchDB is running like a champ. However the peer 1 container is going south. I did my google research and lo and behold the variable CORE_PEER_MSPCONFIGPATH needs to point the peer msp directory. I am seeing "/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp" not found. I know that directory exists. Is it a different directory it needs to use?

garyclark (Tue, 11 Feb 2020 18:18:35 GMT):
I am new to this so please excuse my ignorance.

ownspies (Tue, 11 Feb 2020 18:21:17 GMT):
Is it safe to assume you're trying to run peer0 and peer1 and that the directory you mentioned exists on both servers (_setting up a second peer on another machine._ implies peer0 is on serverA and peer1 is on serverB, correct me if that is inaccurate)?

garyclark (Tue, 11 Feb 2020 18:23:20 GMT):
Peer 0 is on ServerA, Peer 1 is on Server B.

garyclark (Tue, 11 Feb 2020 18:24:07 GMT):
CONFIG_ROOT=/opt/gopath/src/github.com/hyperledger/fabric/peer ORG1_MSPCONFIGPATH=${CONFIG_ROOT}/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp docker run --rm -it --network="my-net" --link orderer.heliosedge.com:orderer.heliosedge.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer0.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_PEER_MSPCONFIGPATH=${ORG1_MSPCONFIGPATH} -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGING_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.heliosedge.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosDsoMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliosdso.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliosdso.com/peers/peer0.heliosedge.heliosdso.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start

ownspies (Tue, 11 Feb 2020 18:24:47 GMT):
What are the permissions on everything in `$(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp`?

ownspies (Tue, 11 Feb 2020 18:26:03 GMT):
also, what does `ls -latr $(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts` show ?

abityildiz (Tue, 11 Feb 2020 18:28:42 GMT):
did you try setup a multi host network for 2.0?i get the this error.Error: timed out waiting for txid on all peers :. i think,fabric 2.0 has bug fix multi host

abityildiz (Tue, 11 Feb 2020 18:28:42 GMT):
did you try setup a multi host network for 2.0?i get the this error.Error: timed out waiting for txid on all peers :. i think,fabric 2.0 has bug multi host

ownspies (Tue, 11 Feb 2020 18:31:10 GMT):
also, this error `I am seeing "/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp" not found.` seems odd given that the other paths are all using something else, e.g. `-v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliosdso.com/peers/peer0.heliosedge.heliosdso.com/msp:/etc/hyperledger/fabric/msp` (you have `peerOrganizations/heliosedge.heliossitelab.com` vs `peerOrganizations/heliosedge.heliosdso.com`)

garyclark (Tue, 11 Feb 2020 18:32:22 GMT):

Clipboard - February 11, 2020 12:32 PM

ownspies (Tue, 11 Feb 2020 18:34:11 GMT):
what about on the peer1 server? (that looks to be peer0, if I read the CLI correctly)

ownspies (Tue, 11 Feb 2020 18:34:52 GMT):
also, are you running multiple TLDs for different peer orgs?

ownspies (Tue, 11 Feb 2020 18:35:42 GMT):
and if you are running multiple TLDs for different peer orgs, are peer0 and peer1 in the same org, or different orgs?

garyclark (Tue, 11 Feb 2020 18:35:42 GMT):
Ok there is a peer0 on one organization. That would be the dso and another peer0 on the sitelab.

garyclark (Tue, 11 Feb 2020 18:36:09 GMT):
1 peer per organization.

ownspies (Tue, 11 Feb 2020 18:36:15 GMT):
ahh, ok

ownspies (Tue, 11 Feb 2020 18:37:00 GMT):
well, the `docker run` you posted is for a different org / peer than the error you posted

ownspies (Tue, 11 Feb 2020 18:37:00 GMT):
well, the `docker run` you posted is for a different org / peer than the error you posted, or so it would seem

garyclark (Tue, 11 Feb 2020 18:37:07 GMT):
I know its a wee bit confusing.

ownspies (Tue, 11 Feb 2020 18:37:32 GMT):
need to align the `docker run` with the error

ownspies (Tue, 11 Feb 2020 18:38:58 GMT):
meaning, paste in the `docker run` command, and it's output, that generates the error...

garyclark (Tue, 11 Feb 2020 18:39:20 GMT):
ok will do.

garyclark (Tue, 11 Feb 2020 18:39:34 GMT):
ok wl do.

ownspies (Tue, 11 Feb 2020 18:41:08 GMT):
So I suspect you just have the wrong Docker volume mappings setup because `/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp` is the host path (from what I can gather) and I suspect the `docker run` is generating that error because that path doesn't exist on the server where you are executing the specific `docker run`

garyclark (Tue, 11 Feb 2020 18:41:31 GMT):
drwxr-xr-x. 4 gclark gclark 28 Feb 11 08:59 . drwxr-xr-x. 3 gclark gclark 48 Feb 11 08:59 ..

garyclark (Tue, 11 Feb 2020 18:44:09 GMT):
[gclark@peer0 HeliosBlockChain]$ docker run --rm -it --network="my-net" --link orderer.heliosedge.com:orderer.heliosedge.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer0.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_PEER_MSPCONFIGPATH=/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGING_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.heliosedge.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosDsoMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliosdso.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliosdso.com/peers/peer0.heliosedge.heliosdso.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start 2020-02-11 18:43:44.061 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp" does not exist

Antimttr (Tue, 11 Feb 2020 18:45:56 GMT):
shouldnt the peer be pointing to the peer's msp, with an admin cert inside of it instead of pointing to the admin user's msp?

ownspies (Tue, 11 Feb 2020 18:47:02 GMT):
here is your issue I believe...

ownspies (Tue, 11 Feb 2020 18:47:04 GMT):
```-e CORE_PEER_MSPCONFIGPATH=/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp ```

garyclark (Tue, 11 Feb 2020 18:47:26 GMT):
Wrong path?

ownspies (Tue, 11 Feb 2020 18:47:39 GMT):
that is an ENV inside the container so you're telling the process inside the container to use the full path *on the host*

ownspies (Tue, 11 Feb 2020 18:48:02 GMT):
you may want to adjust this:

ownspies (Tue, 11 Feb 2020 18:48:05 GMT):
```-v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliosdso.com/peers/peer0.heliosedge.heliosdso.com/msp:/etc/hyperledger/fabric/msp```

ownspies (Tue, 11 Feb 2020 18:48:05 GMT):
...

Antimttr (Tue, 11 Feb 2020 18:48:11 GMT):
right, you need to map that to a directory inside the container first

Antimttr (Tue, 11 Feb 2020 18:48:28 GMT):
yeah and change it to the peer's msp not the admin user's msp

garyclark (Tue, 11 Feb 2020 18:48:31 GMT):
Let me give i a spin.

ownspies (Tue, 11 Feb 2020 18:48:46 GMT):
you need to mount that admin user path inside the container

ownspies (Tue, 11 Feb 2020 18:48:55 GMT):
to make things simple I usually just do

ownspies (Tue, 11 Feb 2020 18:49:29 GMT):
`-v $(pwd)/crypto-config:/hyperledger/crypto-config` and then reference everything inside the container as `/hyperledger/crypto-config/peerOrganizations/...`

ownspies (Tue, 11 Feb 2020 18:49:38 GMT):
so

ownspies (Tue, 11 Feb 2020 18:49:52 GMT):
```-e CORE_PEER_MSPCONFIGPATH=/hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/users/Admin@heliosedge.heliossitelab.com/msp ```

ownspies (Tue, 11 Feb 2020 18:51:10 GMT):
that isn't production ready since you're effectively making *all* crypto material available to *all* peers (unless you selectively copy / generate the crypto material on each docker host)

ownspies (Tue, 11 Feb 2020 18:51:30 GMT):
but that is an easy way to do POC

garyclark (Tue, 11 Feb 2020 18:51:49 GMT):
For now I just copied the crypto since there was only two machines.

ownspies (Tue, 11 Feb 2020 18:52:27 GMT):
that is what I did, I had a `sync.sh` that actually synchronized the key paths from one admin machine to all the others; again that was POC only though

garyclark (Tue, 11 Feb 2020 18:52:48 GMT):
rsync?

ownspies (Tue, 11 Feb 2020 18:52:50 GMT):
also, make sure to see @Antimttr's comments about using peer MSP and not admin MSP

ownspies (Tue, 11 Feb 2020 18:53:09 GMT):
it was `sync.sh` that wrapped around rsync with my customizations

Antimttr (Tue, 11 Feb 2020 18:53:30 GMT):
according to the fabric-ca-server operations guide you can copy the admin's signing cert into the peer's msp

garyclark (Tue, 11 Feb 2020 18:53:34 GMT):
makes sense. Sorry new to this stuff.

Antimttr (Tue, 11 Feb 2020 18:54:13 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#enroll-org1-s-admin

Antimttr (Tue, 11 Feb 2020 18:54:17 GMT):
very helpful guide

ownspies (Tue, 11 Feb 2020 18:54:27 GMT):
yeah, @Antimttr I just made the entire crypto path available so I could pick and choose ... at least until we switched to K8S

ownspies (Tue, 11 Feb 2020 18:54:36 GMT):
now we just use K8S secrets and volumes

Antimttr (Tue, 11 Feb 2020 18:54:41 GMT):
see the bit in the link about copying the cert into the peer's msp

Antimttr (Tue, 11 Feb 2020 18:55:39 GMT):
yeah i wish i had experience with kub, i'd probably start using it, but for now im going with vps's hosting docker containers

ownspies (Tue, 11 Feb 2020 19:00:49 GMT):
ahh, yes, that part about copying the admin cert we have in the scripts we use

woodyjon (Tue, 11 Feb 2020 19:06:39 GMT):
Has joined the channel.

garyclark (Tue, 11 Feb 2020 19:07:13 GMT):
[gclark@peer0 HeliosBlockChain]$ docker run --rm -it --network="my-net" --link orderer.heliosedge.com:orderer.heliosedge.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer0.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_PEER_MSPCONFIGPATH=$(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGING_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.heliosedge.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosDsoMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliosdso.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer hyperledger/fabric-peer peer node start 2020-02-11 19:05:43.511 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/home/gclark/HeliosBlockChain/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp" does not exist [gclark@peer0 HeliosBlockChain]$

Antimttr (Tue, 11 Feb 2020 19:08:09 GMT):
looks like you're still passing in the hosts path not he container path?

ownspies (Tue, 11 Feb 2020 19:09:05 GMT):
the value of the CORE_PEER_MSP_PATH cannot point to a directory on the host server, it needs to be the path inside the container

ownspies (Tue, 11 Feb 2020 19:09:05 GMT):
the value of the CORE_PEER_MSPCONFIGPATH cannot point to a directory on the host server, it needs to be the path inside the container

ownspies (Tue, 11 Feb 2020 19:09:25 GMT):
try this

woodyjon (Tue, 11 Feb 2020 19:09:47 GMT):
Hello. Are you aware of some article, tuto or chart that implements a simple Fabric network v2.0 raft orderer on Kubernetes? I am trying to run the fabric-sample v2.0 test-network on kubernetes, but have no success.

ownspies (Tue, 11 Feb 2020 19:10:19 GMT):
```docker run --rm -it --network="my-net" --link orderer.heliosedge.com:orderer.heliosedge.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer0.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_PEER_MSPCONFIGPATH=/hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGING_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.heliosedge.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosDsoMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliosdso.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer -v $(pwd):/hyperledger hyperledger/fabric-peer peer node start ```

garyclark (Tue, 11 Feb 2020 19:11:45 GMT):
2020-02-11 19:10:55.267 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts 2020-02-11 19:10:55.267 UTC [main] InitCmd -> ERRO 01e Cannot run peer because error when setting up MSP of type bccsp from directory /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp: could not load a valid signer certificate from directory /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts: could not read directory /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts: open /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts: permission denied

garyclark (Tue, 11 Feb 2020 19:12:39 GMT):
its different which is good.

ownspies (Tue, 11 Feb 2020 19:13:01 GMT):
what does `ls -latr crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp` return ?

garyclark (Tue, 11 Feb 2020 19:14:39 GMT):

Clipboard - February 11, 2020 1:14 PM

Jeremy (Tue, 11 Feb 2020 19:21:27 GMT):
Has left the channel.

ownspies (Tue, 11 Feb 2020 19:22:05 GMT):
try this for debugging

ownspies (Tue, 11 Feb 2020 19:22:46 GMT):
```docker run --rm -it --network="my-net" --link orderer.heliosedge.com:orderer.heliosedge.com --link peer0.heliosedge.heliosdso.com:peer0.heliosedge.heliosdso.com --name peer0.heliosedge.heliossitelab.com -p 9051:7051 -p 9053:7053 -e CORE_LEDGER_STATE_STATEDATABASE=CouchDB -e CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 -e CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME= -e CORE_PEER_MSPCONFIGPATH=/hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp -e CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD= -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock -e FABRIC_LOGGING_SPEC=DEBUG -e CORE_PEER_NETWORKID=peer0.heliosedge.heliossitelab.com -e CORE_NEXT=true -e CORE_PEER_ENDORSER_ENABLED=true -e CORE_PEER_ID=peer0.heliosedge.heliossitelab.com -e CORE_PEER_PROFILE_ENABLED=true -e CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.heliosedge.com:7050 -e CORE_PEER_GOSSIP_ORGLEADER=true -e CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.heliosedge.heliossitelab.com:7051 -e CORE_PEER_GOSSIP_IGNORESECURITY=true -e CORE_PEER_LOCALMSPID=HeliosDsoMSP -e CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=my-net -e CORE_PEER_GOSSIP_BOOTSTRAP=peer0.heliosedge.heliosdso.com:7051 -e CORE_PEER_GOSSIP_USELEADERELECTION=false -e CORE_PEER_TLS_ENABLED=false -v /var/run/:/host/var/run/ -v $(pwd)/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp:/etc/hyperledger/fabric/msp -w /opt/gopath/src/github.com/hyperledger/fabric/peer -v $(pwd):/hyperledger hyperledger/fabric-peer ls -latr /hyperledger/crypto-config/peerOrganizations/heliosedge.heliossitelab.com/peers/peer0.heliosedge.heliossitelab.com/msp/signcerts```

garyclark (Tue, 11 Feb 2020 19:25:17 GMT):

Clipboard - February 11, 2020 1:25 PM

ownspies (Tue, 11 Feb 2020 19:26:17 GMT):
run that same command but change the end from `/msp/signcerts` to just `/msp`

garyclark (Tue, 11 Feb 2020 19:28:19 GMT):

Clipboard - February 11, 2020 1:28 PM

ownspies (Tue, 11 Feb 2020 19:29:12 GMT):
I would keep working my way up that `ls -latr` directory chain until it works

ownspies (Tue, 11 Feb 2020 19:29:35 GMT):
as which user is docker running? if it is not root, then the problem is probably directory permissions on your home directory

garyclark (Tue, 11 Feb 2020 22:21:41 GMT):

Clipboard - February 11, 2020 4:21 PM

garyclark (Tue, 11 Feb 2020 22:23:44 GMT):
The hyperledger has permissions with UID 1000. Does this need to be root? If so can I change this to be root user in docker or do I have to reinstall again using a root user? Thanks for the help.

Antimttr (Tue, 11 Feb 2020 22:24:34 GMT):
in my setup i have a docker group, so the ownership is just my user and then the docker group

Antimttr (Tue, 11 Feb 2020 22:24:53 GMT):
definitely not running docker as root if i can help it

garyclark (Tue, 11 Feb 2020 22:44:58 GMT):
sudo setenforce 0

garyclark (Tue, 11 Feb 2020 22:45:19 GMT):
FFS this needs to be set for Cent OS 7.

garyclark (Tue, 11 Feb 2020 22:45:36 GMT):
oh my lord.

garyclark (Tue, 11 Feb 2020 22:46:28 GMT):
ok I have 2 peers running now. Ugh

Antimttr (Tue, 11 Feb 2020 22:47:02 GMT):
nice!

BrettLogan (Tue, 11 Feb 2020 22:48:23 GMT):
If it were easy, everyone would be doing it :)

garyclark (Tue, 11 Feb 2020 22:48:42 GMT):
True that.

Sanjay_Nishank (Wed, 12 Feb 2020 04:37:27 GMT):
Need some help... I am sure, some of you might have deployed Fabric App, on Kubernetes cluster, where NFS is set up on a separate host m/c, other than the cluster nodes? We are trying to do it and have been facing some issues...Error message of "Connection timed out" or "Mounting error"..Can someone point in the direction of right resources or share some pointers on what might be the issues?

AakashVarma1995 (Wed, 12 Feb 2020 05:13:17 GMT):
Has joined the channel.

AakashVarma1995 (Wed, 12 Feb 2020 05:13:19 GMT):
Hi, I am very new to HF.. I am trying to run "Writing Your First Application" Tutorial.. After calling invoke.js for first time.. Tutorial says that I should get output like this `Wallet path: ...fabric-samples/fabcar/javascript/wallet 2018-12-11T14:11:40.935Z - info: [TransactionEventHandler]: _strategySuccess: strategy success for transaction "9076cd4279a71ecf99665aed0ed3590a25bba040fa6b4dd6d010f42bb26ff5d1" Transaction has been submitted ` But I don't see that second line (That line with random number) What am I doing wrong?

savitrisonnad (Wed, 12 Feb 2020 07:32:54 GMT):
Can anybody implemented GetStateByPartialCompositeKeyWithPagination in golang chaincode? I am facing some problem in this so please help me to accomplish this...

xhens (Wed, 12 Feb 2020 09:53:53 GMT):
Has joined the channel.

usi (Wed, 12 Feb 2020 15:19:25 GMT):
Has joined the channel.

usi (Wed, 12 Feb 2020 15:29:52 GMT):
Hi, we are implementing Hyperledger Fabric solutions for B2B customers. At some points we have issues at advanced Hyperledger Concepts. These are: How to enable TLS in order to use RAFT consensus algorithm? How to enable multi kubernetes cluster communication over ingress instead of plain LoadBalancers? Do you know anyone who could help us out at this points? We would also be open to give out monetary compensation for any support. Thanks (re-posted from general channel)

usamahabib95 (Wed, 12 Feb 2020 16:07:22 GMT):
Hi,``` I want to develop a web app for my Hyperledger Fabric network which can be used by admins and users to manage and interact with the network but I don't know where to start Please help me out. Any sort of help is appericiated.``` Thanks ``` ```

usamahabib95 (Wed, 12 Feb 2020 16:07:22 GMT):
Hi,``` I want to develop a web app for my Hyperledger Fabric network which can be used by admins and users to manage and interact with the network but I don't know where to start Please help me out. Any sort of help is appericiated.``` Thanks ```

usamahabib95 (Wed, 12 Feb 2020 16:07:22 GMT):
Hi,``` I want to develop a web app for my Hyperledger Fabric network which can be used by admins and users to manage and interact with the network but I don't know where to start Please help me out. Any sort of help is appericiated Thanks ```

duongtn811 (Wed, 12 Feb 2020 16:18:27 GMT):
Has joined the channel.

duongtn811 (Wed, 12 Feb 2020 16:18:28 GMT):
Hi guys. I am new and I am starting chaincode on test-network. Could anyone help me with this? ``` ===================== Checking the commit readiness of the chaincode definition successful on peer0.org2 on channel 'mychannel' ===================== ++ peer lifecycle chaincode commit -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls true --cafile /Users/duong.nguyen/Workspace/personal/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --channelID mychannel --name fabcar --peerAddresses localhost:9051 --tlsRootCertFiles /Users/duong.nguyen/Workspace/personal/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles /Users/duong.nguyen/Workspace/personal/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt --version 1 --sequence 1 --init-required ++ res=1 ++ set +x Error: failed to retrieve endorser client for commit: endorser client failed to connect to localhost:9051: failed to create new connection: context deadline exceeded ```

duongtn811 (Wed, 12 Feb 2020 16:19:02 GMT):
It happens after I tried to run `./network.sh deployCC`

Swhit210 (Wed, 12 Feb 2020 16:58:53 GMT):
I can take a shot. I can think of a few things that you need to do for enabling TLS for RAFT. You need to generate TLS certs and place them in the correct spot in the msp folder using either cryptogen or a TLS Certificate Authority. You need to set up the correct environment variables on your orderer, peer, and ca docker containers e.g. ORDERER_GENERAL_TLS_ENABLED ORDERER_GENERAL_TLS_PRIVATEKEY ORDERER_GENERAL_TLS_CERTIFICATE ORDERER_GENERAL_TLS_ROOTCAS ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY ORDERER_GENERAL_CLUSTER_ROOTCAS CORE_PEER_TLS_ENABLED CORE_PEER_TLS_CERT_FILE CORE_PEER_TLS_KEY_FILE CORE_PEER_TLS_ROOTCERT_FILE FABRIC_CA_SERVER_TLS_CERTFILE FABRIC_CA_SERVER_TLS_KEYFILE. When communicating between the peers and orderers on things such as peer channel fetch and peer channel join, you need to use the --tls and --cafile flags. You should be switching your protocols (http and grpc) to secure (https and grpcs) in your client config file.

Swhit210 (Wed, 12 Feb 2020 16:58:53 GMT):
I can take a shot. I can think of a few things that you need to do for enabling TLS for RAFT. You need to generate TLS certs and place them in the correct spot in the msp folder using either cryptogen or a TLS Certificate Authority. You need to set up the correct environment variables on your orderer, peer, and ca docker containers e.g.: ORDERER_GENERAL_TLS_ENABLED ORDERER_GENERAL_TLS_PRIVATEKEY ORDERER_GENERAL_TLS_CERTIFICATE ORDERER_GENERAL_TLS_ROOTCAS ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY ORDERER_GENERAL_CLUSTER_ROOTCAS CORE_PEER_TLS_ENABLED CORE_PEER_TLS_CERT_FILE CORE_PEER_TLS_KEY_FILE CORE_PEER_TLS_ROOTCERT_FILE FABRIC_CA_SERVER_TLS_CERTFILE FABRIC_CA_SERVER_TLS_KEYFILE When communicating between the peers and orderers on things such as peer channel fetch and peer channel join, you need to use the --tls and --cafile flags. You should be switching your protocols (http and grpc) to secure (https and grpcs) in your client config file.

Swhit210 (Wed, 12 Feb 2020 17:02:31 GMT):
For examples of most of this I just used the first-network example from fabric-samples: https://github.com/hyperledger/fabric-samples/tree/master/first-network

fasmat (Wed, 12 Feb 2020 17:21:44 GMT):
Has joined the channel.

fasmat (Wed, 12 Feb 2020 17:21:45 GMT):
Hi everyone! I'm experimenting with the byfn example and the fabric-sdk-go. I was already successful in starting the network with docker compose and using the provided script to invoke functions on the chaincode, but I'm stuck trying to invoke functions from my go client. Can someone help?

fasmat (Wed, 12 Feb 2020 17:26:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg2FmRW5ZdZS9Rix8)
fasmat - Wed Feb 12 2020 18:25:56 GMT+0100 (Central European Standard Time).txt

fasmat (Wed, 12 Feb 2020 17:26:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg2FmRW5ZdZS9Rix8)
fasmat - Wed Feb 12 2020 18:25:56 GMT+0100 (Central European Standard Time).txt

fasmat (Wed, 12 Feb 2020 17:26:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg2FmRW5ZdZS9Rix8)
fasmat - Wed Feb 12 2020 18:25:56 GMT+0100 (Central European Standard Time).txt

fasmat (Wed, 12 Feb 2020 17:28:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=sg2FmRW5ZdZS9Rix8)
config.yaml

fasmat (Wed, 12 Feb 2020 17:33:35 GMT):
f, err := os.Open("config.yaml") if err != nil { return nil, fmt.Errorf("could not initialize fabric: %w", err) } configProvider := config.FromReader(f, "yaml") sdk, err := fabsdk.New(configProvider) if err != nil { return nil, fmt.Errorf("failed to create sdk: %w", err) } ctx := sdk.ChannelContext(channelID, fabsdk.WithUser("Admin"), fabsdk.WithOrg("Org1")) client, err := channel.New(ctx) if err != nil { return fmt.Errorf("failed to connect to channel: %w", err) }

fasmat (Wed, 12 Feb 2020 17:33:35 GMT):
```go f, err := os.Open("config.yaml") if err != nil { return nil, fmt.Errorf("could not initialize fabric: %w", err) } configProvider := config.FromReader(f, "yaml") sdk, err := fabsdk.New(configProvider) if err != nil { return nil, fmt.Errorf("failed to create sdk: %w", err) } ctx := sdk.ChannelContext(channelID, fabsdk.WithUser("Admin"), fabsdk.WithOrg("Org1")) client, err := channel.New(ctx) if err != nil { return fmt.Errorf("failed to connect to channel: %w", err) } ```

fasmat (Wed, 12 Feb 2020 17:33:35 GMT):
```go f, err := os.Open("config.yaml") if err != nil { return nil, fmt.Errorf("could not initialize fabric: %w", err) } configProvider := config.FromReader(f, "yaml") sdk, err := fabsdk.New(configProvider) if err != nil { return nil, fmt.Errorf("failed to create sdk: %w", err) } ctx := sdk.ChannelContext(channelID, fabsdk.WithUser("Admin"), fabsdk.WithOrg("Org1")) client, err := channel.New(ctx) if err != nil { return fmt.Errorf("failed to connect to channel: %w", err) } ```

fasmat (Wed, 12 Feb 2020 17:33:35 GMT):
```go f, err := os.Open("config.yaml") if err != nil { return nil, fmt.Errorf("could not initialize fabric: %w", err) } configProvider := config.FromReader(f, "yaml") sdk, err := fabsdk.New(configProvider) if err != nil { return nil, fmt.Errorf("failed to create sdk: %w", err) } ctx := sdk.ChannelContext(channelID, fabsdk.WithUser("Admin"), fabsdk.WithOrg("Org1")) client, err := channel.New(ctx) if err != nil { return fmt.Errorf("failed to connect to channel: %w", err) } ```

fasmat (Wed, 12 Feb 2020 17:36:41 GMT):
It always fails with: ``` failed to connect to channel: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Multiple errors occurred: - Transaction processing for endorser [localhost:8051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:8051] - Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:7051] ````

giuzero (Wed, 12 Feb 2020 17:54:26 GMT):
Hi everyone, what if I would like to use raft ordererers following this guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html ? Is it possible? How to create the genesi.block for raft? Thanks

HLFPOC (Wed, 12 Feb 2020 18:30:25 GMT):
I am also facing the same issue. Below are the error logs from peer container of org2: 2020-02-12 12:35:22.718 UTC [core.comm] ServerHandshake -> ERRO 05a TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55272 2020-02-12 12:35:23.719 UTC [core.comm] ServerHandshake -> ERRO 05b TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55276 2020-02-12 12:35:25.422 UTC [core.comm] ServerHandshake -> ERRO 05c TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55280

HLFPOC (Wed, 12 Feb 2020 18:30:25 GMT):
I am also facing the same issue. Below are the error logs from peer container of org2: `2020-02-12 12:35:22.718 UTC [core.comm] ServerHandshake -> ERRO 05a TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55272 2020-02-12 12:35:23.719 UTC [core.comm] ServerHandshake -> ERRO 05b TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55276 2020-02-12 12:35:25.422 UTC [core.comm] ServerHandshake -> ERRO 05c TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55280`

HLFPOC (Wed, 12 Feb 2020 18:30:25 GMT):
I am also facing the same issue. Below are the error logs from peer container of org2: `2020-02-12 12:35:22.718 UTC [core.comm] ServerHandshake -> ERRO 05a TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55272` `2020-02-12 12:35:23.719 UTC [core.comm] ServerHandshake -> ERRO 05b TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55276` `2020-02-12 12:35:25.422 UTC [core.comm] ServerHandshake -> ERRO 05c TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:55280`

garyclark (Wed, 12 Feb 2020 18:36:53 GMT):
In the centos docker containers I am missing /bin/bash?

HLFPOC (Wed, 12 Feb 2020 18:40:30 GMT):
@BrettLogan any idea about this error ?

BrettLogan (Wed, 12 Feb 2020 18:42:11 GMT):
Let me poke the dev who wrote test-network

Antimttr (Wed, 12 Feb 2020 19:37:43 GMT):
I would start with writing a network client using one of the main sdks, (java/node). Then write a webapp that talks to that client via restful api (or some such),

Antimttr (Wed, 12 Feb 2020 20:03:58 GMT):
Does the peer setting "CORE_PEER_ID" need to match the username registered in the fabric-ca-server?

Antimttr (Wed, 12 Feb 2020 21:13:46 GMT):
Why would a peer need to map 2 ports instead of just the port that is specified in the CORE_PEER_ADDRESS parameter

BrettLogan (Wed, 12 Feb 2020 21:26:45 GMT):
Which ports are you mapping, I assume you are seeing this in a tutorial

Antimttr (Wed, 12 Feb 2020 21:28:46 GMT):
hey btl, yeah in the balance transfer sample, sec

Antimttr (Wed, 12 Feb 2020 21:29:28 GMT):
Here's one of the docker-composer definitions for the peer: ``` peer0.org2.example.com: container_name: peer0.org2.example.com extends: file: base.yaml service: peer-base environment: - CORE_PEER_ID=peer0.org2.example.com - CORE_PEER_LOCALMSPID=Org2MSP - CORE_PEER_ADDRESS=peer0.org2.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051 - CORE_LEDGER_STATE_STATEDATABASE=CouchDB - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984 - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=testuser - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=testpass ports: - 8051:7051 - 8053:7053 volumes: - ./channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/:/etc/hyperledger/crypto/peer depends_on: - orderer.example.com - couchdb2 ```

Antimttr (Wed, 12 Feb 2020 21:29:49 GMT):
you can see the 7051 corresponds to the port definied in the other parameters

Antimttr (Wed, 12 Feb 2020 21:29:57 GMT):
but what does 7053 do?

BrettLogan (Wed, 12 Feb 2020 21:34:58 GMT):
That is legacy, an artifact of bygone times, its not used anymore

BrettLogan (Wed, 12 Feb 2020 21:35:10 GMT):
So you don't need to map it

Antimttr (Wed, 12 Feb 2020 21:35:16 GMT):
ok cool

Antimttr (Wed, 12 Feb 2020 21:35:44 GMT):
you dont happen to know if core_peer_id needs to match the peer username/pw registered in the fabric-ca-server do you?

BrettLogan (Wed, 12 Feb 2020 21:38:32 GMT):
not necessary. It's used to provide context to the chaincode containers when they are named

Antimttr (Wed, 12 Feb 2020 21:39:03 GMT):
great! thanks

garyclark (Wed, 12 Feb 2020 21:57:24 GMT):
Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied Trying to connect to the orderer remotely. I can see it connecting just blowing up at the orderer.

garyclark (Wed, 12 Feb 2020 21:57:24 GMT):
Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied Trying to connect to the orderer remotely. I can see it connecting just blowing up at the orderer when trying to create a channel?

garyclark (Thu, 13 Feb 2020 01:22:20 GMT):
If someone can share a link/info to help me debug this that would be great. Thanks.

BrettLogan (Thu, 13 Feb 2020 01:50:05 GMT):
You are probably using the wrong crypto material, are you using the admin msp of the orderer. If not what msp are you using? and did you give the MSP the appropriate policies to enable access

garyclark (Thu, 13 Feb 2020 02:22:03 GMT):
Thanks for the help.

garyclark (Thu, 13 Feb 2020 02:27:27 GMT):
peer channel create -o 192.168.1.110:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx >&log.txt

garyclark (Thu, 13 Feb 2020 02:30:40 GMT):
I would like to know what is required for the orderer to accept the channel creation. It looks like I need to set the policies to align with the orderer? Just not sure what those are exactly.

BrettLogan (Thu, 13 Feb 2020 02:35:20 GMT):
What its saying is, thee MSP you are using to subbmit the transaction, doesnt have satisfy the writers policy, which is defined in configtx.yaml. So in there did you add the org you are submitting on behalf of to the policy

BrettLogan (Thu, 13 Feb 2020 02:35:20 GMT):
What its saying is, thee MSP you are using to subbmit the transaction, doesnt satisfy the writers policy, which is defined in configtx.yaml. So in there did you add the org you are submitting on behalf of to the policy

BrettLogan (Thu, 13 Feb 2020 02:35:22 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml#L50

BrettLogan (Thu, 13 Feb 2020 02:35:56 GMT):
Excuse all the double letter typos, I have one of the bad Mac keyboards and am too lazy to send it away to be fixed

garyclark (Thu, 13 Feb 2020 02:36:17 GMT):
All good and thanks.

BrettLogan (Thu, 13 Feb 2020 02:43:09 GMT):
https://gist.github.com/indirajith/7f664377ed24221d3e75d039cfef733e#file-configtx-yaml-L15

BrettLogan (Thu, 13 Feb 2020 02:43:21 GMT):
Here is another example with 2 orgs, and each org being granted writer permission

garyclark (Thu, 13 Feb 2020 02:46:20 GMT):

configtx.txt

garyclark (Thu, 13 Feb 2020 02:49:46 GMT):

configtx.txt

garyclark (Thu, 13 Feb 2020 02:50:35 GMT):
It would not accept yaml. However I convertted it into text.

BrettLogan (Thu, 13 Feb 2020 02:51:21 GMT):
What is the path of the MSP you are passing into the command?

BrettLogan (Thu, 13 Feb 2020 02:51:28 GMT):
Full path

garyclark (Thu, 13 Feb 2020 02:52:47 GMT):
peer channel create -o 192.168.1.110:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx >&log.txt

BrettLogan (Thu, 13 Feb 2020 02:53:29 GMT):
Also, you've both enabled and disable `V1_4_2 OrdererCapabilities`

BrettLogan (Thu, 13 Feb 2020 02:53:37 GMT):
you have bboth truee and false

garyclark (Thu, 13 Feb 2020 02:54:21 GMT):
thanks.

BrettLogan (Thu, 13 Feb 2020 02:54:37 GMT):
I also asked the wrong question...

BrettLogan (Thu, 13 Feb 2020 02:54:44 GMT):
How are you setting CORE_PEER_MSPCONFIGPATH and whats it value

BrettLogan (Thu, 13 Feb 2020 02:54:50 GMT):
That's what I wanted to know

garyclark (Thu, 13 Feb 2020 02:55:05 GMT):
Prior to creation:

garyclark (Thu, 13 Feb 2020 02:55:18 GMT):
setDsoGlobals () { CORE_PEER_LOCALMSPID="HeliosDsoMSP" CORE_PEER_TLS_ROOTCERT_FILE=/hyperledger/fabric/peer/crypto/peerOrganizations/peerOrganizations/heliosedge.heliosdso.com/peers/peer0.heliosedge.heliosdso.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/hyperledger/fabric/peer/crypto/peerOrganizations/heliosedge.heliosdso.com/users/Admin@heliosedge.heliosdso.com/msp CORE_PEER_ADDRESS=peer0.heliosedge.heliosdso.com:7051 env | grep CORE }

BrettLogan (Thu, 13 Feb 2020 02:55:37 GMT):
Let me walk through that quick, give me a second

garyclark (Thu, 13 Feb 2020 02:55:55 GMT):
ok.

garyclark (Thu, 13 Feb 2020 02:57:03 GMT):
I appreciate it.

BrettLogan (Thu, 13 Feb 2020 02:57:54 GMT):
Is the peer running on a VM or on docker

garyclark (Thu, 13 Feb 2020 02:58:53 GMT):
docker. Two separate machines. No vm.

garyclark (Thu, 13 Feb 2020 02:58:54 GMT):
Two separate machines no VM.

BrettLogan (Thu, 13 Feb 2020 02:59:47 GMT):
Is the peer command thats failing being run from a script, or are you running them yourself

BrettLogan (Thu, 13 Feb 2020 02:59:47 GMT):
Is the peer command thats failing in a script, or are you running them yourself

garyclark (Thu, 13 Feb 2020 03:00:00 GMT):
In a script.

BrettLogan (Thu, 13 Feb 2020 03:00:23 GMT):
let me test something

garyclark (Thu, 13 Feb 2020 03:00:48 GMT):
cool.

BrettLogan (Thu, 13 Feb 2020 03:03:09 GMT):
While I'm waiting, I can say, your config looks right to me, so I don't think thats it...I'm test something with Go to see if its a quirk of the languageee

garyclark (Thu, 13 Feb 2020 03:04:56 GMT):
I think its something stupid...really stupid. The more time you spend on it. The more stupid it is.

garyclark (Thu, 13 Feb 2020 03:06:09 GMT):
However I love to be told that its not something obvious.

garyclark (Thu, 13 Feb 2020 03:06:34 GMT):
Just not sure...

BrettLogan (Thu, 13 Feb 2020 03:09:42 GMT):
Not a quirk of Go, I am looking at the profiles section at the bottom of you configtx.yml though, I'm not sure its correct. I would love to say I have tons of experience with this but I don't

garyclark (Thu, 13 Feb 2020 03:10:41 GMT):
Its all good. I just appreciate another set of eyes.

BrettLogan (Thu, 13 Feb 2020 03:11:24 GMT):
Only HeliosEdge is part or the orderer org, and you trying to submit a channel creation request, which presumambly needs the Orderer Admin

BrettLogan (Thu, 13 Feb 2020 03:11:37 GMT):
not the Dso admin

BrettLogan (Thu, 13 Feb 2020 03:11:53 GMT):
Man, playing in Production is way different than writing the code

garyclark (Thu, 13 Feb 2020 03:12:04 GMT):
lol.hee, hee.

BrettLogan (Thu, 13 Feb 2020 03:12:39 GMT):
Let me poke Dave on this in the morning, he'll be able to tell me whats wrong in the blink of an eye

garyclark (Thu, 13 Feb 2020 03:12:39 GMT):
True that.

garyclark (Thu, 13 Feb 2020 03:13:07 GMT):
You cracked me up there. Brought a smile.

BrettLogan (Thu, 13 Feb 2020 03:13:29 GMT):
Dave is our release manager, a maintainer, and has been around since day one, so if he doesn't have the answer, I don't know who will

garyclark (Thu, 13 Feb 2020 03:13:50 GMT):
Ok cool. Again thanks.

BrettLogan (Thu, 13 Feb 2020 03:14:21 GMT):
I'm not sure where you are located, but we are East Coast US. Message me on here tomorrow morning and remind me to follow up on this

garyclark (Thu, 13 Feb 2020 03:14:40 GMT):
Saint Louis.

BrettLogan (Thu, 13 Feb 2020 03:14:56 GMT):
perfect. Tag me as well, it'll send me an email if you do

garyclark (Thu, 13 Feb 2020 03:15:06 GMT):
Awesome.

garyclark (Thu, 13 Feb 2020 03:16:04 GMT):
Have a good one.

BrettLogan (Thu, 13 Feb 2020 03:16:39 GMT):
Same to you

Antimttr (Thu, 13 Feb 2020 03:28:58 GMT):
and a good night to all

AakashVarma1995 (Thu, 13 Feb 2020 05:49:54 GMT):
Hi, I am very new to HF.. I am trying to run "Writing Your First Application" Tutorial.. After calling invoke.js for first time.. Tutorial says that I should get output like this: Wallet path: ...fabric-samples/fabcar/javascript/wallet 2018-12-11T14:11:40.935Z - info: [TransactionEventHandler]: _strategySuccess: strategy success for transaction "9076cd4279a71ecf99665aed0ed3590a25bba040fa6b4dd6d010f42bb26ff5d1" Transaction has been submitted But I don't see that second line (That line with random number) What am I doing wrong?

duongtn811 (Thu, 13 Feb 2020 06:23:41 GMT):
hi guys, I resolved the issue by pulling the new code. Thanks

ChrisSargent (Thu, 13 Feb 2020 08:54:57 GMT):
Hello, I would like to write a Go client application to interact with some chaincode running on the new 'test-network', does anyone know if the app would need to be running in a Docker container in the same Docker network as the test-network, or can it be run on the host machine? Thanks. (I'm asking because I'm constantly getting 'unauthorized' errors back right now).

avi23 (Thu, 13 Feb 2020 09:10:18 GMT):
Has joined the channel.

avi23 (Thu, 13 Feb 2020 09:58:16 GMT):
Hi , i am getting the below error while running join command for peer to join channel, its throwing the below error and exiting

avi23 (Thu, 13 Feb 2020 09:58:23 GMT):
2020-02-12 10:00:22.619 UTC [couchdb] CreateCouchDatabase -> ERRO 027 Error calling CouchDB CreateDatabaseIfNotExist() for dbName: mychannel_, error: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int panic: error during commit to txmgr: error decoding response body: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xcecbb6] goroutine 282 [running]: github.com/hyperledger/fabric/core/chaincode/shim.(*Handler).triggerNextState(0xc0000930e0, 0x0, 0xc001e32120) /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/handler.go:35 +0x26

avi23 (Thu, 13 Feb 2020 09:59:18 GMT):
can anyone please help on this?

andyke (Thu, 13 Feb 2020 11:27:10 GMT):

photo_2020-02-11_12-56-59.jpg

KartikChauhan (Thu, 13 Feb 2020 11:36:39 GMT):
Hello All, Does Fabric supports chinese letters in enrollment id during enrollment? I tried to register & enroll a user with the name 苏南 on Fabric-CA. The registration is getting successful but getting below error ``` error: [FabricCAClientService.js]: Failed to enroll 苏南, error:%o message=Enrollment failed with errors [[{"code":0,"message":"asn1: invalid UTF-8 string"}]], stack=Error: Enrollment failed with errors [[{"code":0,"message":"asn1: invalid UTF-8 string"}]] ``` The error clearly says that the letters are not supported in UTF-8 encoding. Can I change the default encoding while enrolling? If yes, which enoding scheme do I've to use to support chinese letters?

barney2k7 (Thu, 13 Feb 2020 11:37:42 GMT):
Too bad they don't include the actual error in the log message: https://github.com/hyperledger/fabric/blob/release-1.4/orderer/consensus/etcdraft/util.go#L604

andyke (Thu, 13 Feb 2020 11:41:54 GMT):
so what could be a fix for it?

andyke (Thu, 13 Feb 2020 11:42:13 GMT):
help me. I am at a fix.

barney2k7 (Thu, 13 Feb 2020 11:47:33 GMT):
Well, I'm not familiar with that code. From what I see I'd guess there's something wrong with your orderer config - but that would probably cause other errors long before that evictionSuspicion check kicks in

andyke (Thu, 13 Feb 2020 11:48:24 GMT):
Can I send you the error log? Everything looks fine in it before this starts

andyke (Thu, 13 Feb 2020 11:48:52 GMT):

ordererlogs.txt

barney2k7 (Thu, 13 Feb 2020 11:52:05 GMT):
Looks like your orderer nodes are not able to connect to each other - they never manage to elect a leader

barney2k7 (Thu, 13 Feb 2020 11:54:07 GMT):
You might want to go back to the 'first network' tutorial to see what a working orderer's log should look like

andyke (Thu, 13 Feb 2020 12:14:40 GMT):
I have just one orderer up. Do I need to remove the other ones that do not have a node?

andyke (Thu, 13 Feb 2020 12:15:01 GMT):
like remove them from the configtx.yaml file?

barney2k7 (Thu, 13 Feb 2020 12:41:36 GMT):
Your channel config must match exactly to your actual fabric network

Nikhil95 (Thu, 13 Feb 2020 12:44:19 GMT):
Has joined the channel.

andyke (Thu, 13 Feb 2020 12:49:03 GMT):
okay, I have removed them and I am trying the new config

andyke (Thu, 13 Feb 2020 13:02:57 GMT):
thanks, it is more than 10 minutes and it has not exited

usamahabib95 (Thu, 13 Feb 2020 13:14:42 GMT):
Thank You and if you have any example do share it Thanks alot again

giuzero (Thu, 13 Feb 2020 15:25:41 GMT):
How to create ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE, ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY and ORDERER_GENERAL_CLUSTER_ROOTCAS to generate the genesis block?

fasmat (Thu, 13 Feb 2020 16:11:15 GMT):
Anyone who can help with my connection fabric-sdk-go issue?

ChrisSargent (Thu, 13 Feb 2020 16:25:50 GMT):
I have been working on this too - I maybe able to help, what's the problem?

fasmat (Thu, 13 Feb 2020 16:26:56 GMT):
Hi Chris :-) I'm trying to invoke a function on a chaincode that is already instantiated in a channel

fasmat (Thu, 13 Feb 2020 16:27:17 GMT):
It works when I use the fabric-cli container, but it fails as soon as i try to use the fabric sdk with a timeout

fasmat (Thu, 13 Feb 2020 16:27:58 GMT):
Already when instantiating the channel with channel.New(channelprovider)

ChrisSargent (Thu, 13 Feb 2020 16:30:01 GMT):
Seems like exactly the issue I've been stuck with for what seems about a lifetime. :-)

fasmat (Thu, 13 Feb 2020 16:30:34 GMT):
do you know how I can set a timeout?

ChrisSargent (Thu, 13 Feb 2020 16:30:53 GMT):
how long is it taking?

fasmat (Thu, 13 Feb 2020 16:31:07 GMT):
it fails after about 5 seconds with a timeout error

ChrisSargent (Thu, 13 Feb 2020 16:32:26 GMT):
I believe you can set the timeouts in the connection profile

ChrisSargent (Thu, 13 Feb 2020 16:32:57 GMT):
However, I'd suspect you have some other config issue causing it to take that long

fasmat (Thu, 13 Feb 2020 16:33:22 GMT):
the yaml/json file that I use to initialize the sdk?

ChrisSargent (Thu, 13 Feb 2020 16:33:33 GMT):
I think so yes.

fasmat (Thu, 13 Feb 2020 16:37:05 GMT):
I use a slightly modified profile from the byfn example

fasmat (Thu, 13 Feb 2020 16:37:28 GMT):
I posted it yesterday: https://chat.hyperledger.org/channel/fabric-questions?msg=sg2FmRW5ZdZS9Rix8

fasmat (Thu, 13 Feb 2020 16:38:03 GMT):
It contains a timeout, but i noticed that the script used in the byfn example doesn't even use this profile :-(

Swhit210 (Thu, 13 Feb 2020 16:39:04 GMT):
helloi

Swhit210 (Thu, 13 Feb 2020 16:39:04 GMT):
These should be the TLS certs and keys. Check out this docker compose file in first-network example: https://github.com/hyperledger/fabric-samples/blob/master/first-network/base/peer-base.yaml

Swhit210 (Thu, 13 Feb 2020 16:39:04 GMT):
These should be the TLS certs and keys. Check out this docker compose file in first-network example and look at orderer-base: https://github.com/hyperledger/fabric-samples/blob/master/first-network/base/peer-base.yaml

Swhit210 (Thu, 13 Feb 2020 16:40:14 GMT):
These can be created using cryptogen or spinning up a fabric-ca

ChrisSargent (Thu, 13 Feb 2020 16:45:47 GMT):
hmm, sorry, I'm really not sure then.

ChrisSargent (Thu, 13 Feb 2020 16:53:09 GMT):
there is just an unbelievable amount of config involved

fasmat (Thu, 13 Feb 2020 16:55:00 GMT):
hm... lsof tells me that my peers are listening on the ports that I try to connect to

fasmat (Thu, 13 Feb 2020 16:55:37 GMT):
anyway you know of where I can test the grpc connection itself?

fasmat (Thu, 13 Feb 2020 16:55:47 GMT):
any hello world i can send to the peer on localhost:7051?

ChrisSargent (Thu, 13 Feb 2020 16:55:54 GMT):
not sure, sorry.

ChrisSargent (Thu, 13 Feb 2020 16:56:46 GMT):
do your peer logs give any clue?

fasmat (Thu, 13 Feb 2020 16:56:55 GMT):
where can I access them?

ChrisSargent (Thu, 13 Feb 2020 16:57:06 GMT):
from the docker containers.

Antimttr (Thu, 13 Feb 2020 16:57:13 GMT):
docker logs

fasmat (Thu, 13 Feb 2020 16:59:14 GMT):
ok give me a moment

ChrisSargent (Thu, 13 Feb 2020 17:01:45 GMT):
In my case, I don't see anything in the logs. Seems like the request is either not hitting the server at all or is being rejected by TLS without being logged.

ChrisSargent (Thu, 13 Feb 2020 17:03:26 GMT):
except for a bunch of `2020-02-13 17:03:10.838 UTC [comm.grpc.server] 1 -> INFO 162 unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2020-02-13T17:03:25.836Z grpc.peer_address=172.25.0.1:43184 grpc.code=OK grpc.call_duration=1.529991ms`

ChrisSargent (Thu, 13 Feb 2020 17:03:36 GMT):
but I don't think it's related.

fasmat (Thu, 13 Feb 2020 17:03:53 GMT):
I do see logs e.g. [my-channel] received block from buffer

fasmat (Thu, 13 Feb 2020 17:04:16 GMT):
at least when I execute the script provided with the byfn example

ChrisSargent (Thu, 13 Feb 2020 17:04:52 GMT):
yes, if I run from my cli I see it logged, but not from the app.

fasmat (Thu, 13 Feb 2020 17:05:51 GMT):
uh...

fasmat (Thu, 13 Feb 2020 17:05:55 GMT):
i'm receiving errors!!

fasmat (Thu, 13 Feb 2020 17:06:11 GMT):
2020-02-13 17:05:42.325 UTC [core.comm] ServerHandshake -> ERRO 078 TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.19.0.1:39342

fasmat (Thu, 13 Feb 2020 17:06:28 GMT):
so it is a tls issue

ChrisSargent (Thu, 13 Feb 2020 17:06:38 GMT):
seems so.

fasmat (Thu, 13 Feb 2020 17:07:33 GMT):
now i just need to find out why, but this already helps a lot, thanks chris! :thumbsup:

ChrisSargent (Thu, 13 Feb 2020 17:07:42 GMT):
the thing I don't see anywhere included in the nw profile is this var `CORE_PEER_TLS_ROOTCERT_FILE`

ChrisSargent (Thu, 13 Feb 2020 17:07:55 GMT):
^ would normally be used when querying from the cli.

fasmat (Thu, 13 Feb 2020 17:08:36 GMT):
yes it is set in the docker compose file for the cli container

ChrisSargent (Thu, 13 Feb 2020 17:10:18 GMT):
sorry, I meant I don't see a way to set it when using a client application in Go. There's no option for it in the config.yml files for example.

fasmat (Thu, 13 Feb 2020 17:12:05 GMT):
maybe I can provide it to the channel context?

ChrisSargent (Thu, 13 Feb 2020 17:18:36 GMT):
Not sure - in all of the repo it only seems to exist in a script or Docker file.

fasmat (Thu, 13 Feb 2020 17:18:51 GMT):
I'll try some things

fasmat (Thu, 13 Feb 2020 17:18:51 GMT):
the content of the file the environment variable points to is in the connection profile

ChrisSargent (Thu, 13 Feb 2020 17:19:10 GMT):
:ok_hand:

giuzero (Thu, 13 Feb 2020 17:31:50 GMT):
I'm trying with ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=ORDERER_GENERAL_TLS_CERTIFICATE ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=ORDERER_GENERAL_TLS_PRIVATEKEY ORDERER_GENERAL_TLS_ROOTCAS=ORDERER_GENERAL_CLUSTER_ROOTCAS

giuzero (Thu, 13 Feb 2020 17:32:21 GMT):
I'm not using cryptogen

fasmat (Thu, 13 Feb 2020 17:45:48 GMT):
its under orderers/orderer.example.com/tlsCACerts/pem

fasmat (Thu, 13 Feb 2020 17:47:21 GMT):
no forget what I just said

andyke (Thu, 13 Feb 2020 18:08:22 GMT):
Please what could be the cause of the error Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- initializing configtx manager failed: bad channel ID: channel ID 'OneTwoChannel' contains illegal characters ?

andyke (Thu, 13 Feb 2020 18:08:39 GMT):
I am stuck at this point

BrettLogan (Thu, 13 Feb 2020 18:21:11 GMT):
Channel names cannot have uppercase letters

BrettLogan (Thu, 13 Feb 2020 18:21:11 GMT):
Channels cannot have uppercase letters

BrettLogan (Thu, 13 Feb 2020 18:21:24 GMT):
The regex for channel names `"[a-z][a-z0-9.-]*"`

BrettLogan (Thu, 13 Feb 2020 18:21:42 GMT):
@andyke

andyke (Thu, 13 Feb 2020 19:49:41 GMT):
are the channel names the ones defined in the configtx.yaml file and the ones used to generate tx files?

ChrisSargent (Thu, 13 Feb 2020 23:55:23 GMT):
If anyone can shed any light on this, it would be much appreciated. Right now I'm at a bit of a dead-end. If I run my app on my host, it can communicate with the test-network CA and can register and enroll users. But whenever it tries to communicate with a peer, it simply can't find them (nothing appearing in the logs of the peers). If I run the application in a Docker container, in the same app and network as the peers, I can ping all the other containers but I can't do anything because the app won't communicate with the CAs. (Already spend a few days on this, updating, changing configs, comparing / decoding key and certfiles etc.). I can post up my configs and logs if anyone thinks they might help.

ChrisSargent (Thu, 13 Feb 2020 23:57:18 GMT):
Did you get anywhere with this?

BrettLogan (Fri, 14 Feb 2020 01:24:29 GMT):
When you run it in docker, do the peers respond to your app?

ZainabM (Fri, 14 Feb 2020 06:09:17 GMT):
Can we create channels dynamically? I mean we create channel.tx file using cryptogen tool first which is a manual process. Can we do it using SDK? Any other idea is also welcome.

ZainabM (Fri, 14 Feb 2020 06:09:17 GMT):
Can we create channels dynamically? I mean we create channel.tx file using configtxgen tool first which is a manual process. Can we do it using SDK? Any other idea is also welcome.

AakashVarma1995 (Fri, 14 Feb 2020 06:17:21 GMT):
Very unhelpful community :(

ChrisSargent (Fri, 14 Feb 2020 06:56:06 GMT):
Hey @BrettLogan - I'm actually not sure at this point as everything the app does goes through the CA first (as an enroll). I need to spend a few hours away this morning and then try something later. Any tips for checking?

vanitas92 (Fri, 14 Feb 2020 07:43:38 GMT):
aakashVarma1995

lionelronaldo (Fri, 14 Feb 2020 08:54:19 GMT):
usi

giuzero (Fri, 14 Feb 2020 09:18:50 GMT):
Hi guys, does a guide exist on how having on a two orgs network two orderers (solo or cluster), one for org1 and one for org2? Can't find much on official documentation

divyasekaran (Fri, 14 Feb 2020 09:26:38 GMT):
Hi, I have installed hyperledger fabric 2.0.0. When i try to run the fabcar example, I am getting an error like this "Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded". When I checked in docker logs using docker logs peer0.org1.example.com, It shows warning "Retrying couchdb request in 250ms. Error:Get http://couchdb0:5984/: dial tcp 172.22.0.8:5984: connect: connection refused". I pruned all the docker images and installed again. I gave tried adding dns search in .yml files. And tried checking docker network inspect. Kindly help to resolve this.

alicew104 (Fri, 14 Feb 2020 09:55:01 GMT):
Has joined the channel.

alicew104 (Fri, 14 Feb 2020 09:55:02 GMT):
hi, I am new to hl fabric and have just tried following the tutorials. I am on the 'chaincode for developers' section and when trying to run the chaincode using the command 'CORE_CHAINCODE_ID_NAME=mycc:0 CORE_PEER_TLS_ENABLED=false ./sacc -peer.address peer:7052', I am getting a permission denied error. Any idea why?

fasmat (Fri, 14 Feb 2020 12:42:30 GMT):
No unfortunatelly not yet :-( today I will try to import the certificate in my dev environment, if that doesn't work I will for now disable TLS and look for a way later

BrettLogan (Fri, 14 Feb 2020 13:34:09 GMT):
Did you prune volumes as well? Looks like the old volumes got mounted and you have old certificates

fasmat (Fri, 14 Feb 2020 14:02:10 GMT):
YES! this worked, I imported the ca.crt certificates for all peers with sudo update-ca-certificates and the handshake errors are gone

ChrisSargent (Fri, 14 Feb 2020 15:46:58 GMT):
Okay, so I've stripped back my app to use all the default test-network settings and the fabcar example. I've created a Node Docker container with the fabcar client code example loaded.

ChrisSargent (Fri, 14 Feb 2020 15:48:13 GMT):
That container is in the 'net_test' Docker network which is created by 'test-network'. The container is able to ping the peers and orderer, but not the CAs (they seem to be in a different Docker network)

BrettLogan (Fri, 14 Feb 2020 15:51:54 GMT):
@ChrisSargent can you do a `docker inspect ` and provide the output (sorry its not in the thread, Rocket.Chat is throwing 404's again when trying to reply to threads)

ChrisSargent (Fri, 14 Feb 2020 15:56:05 GMT):
Here: https://gist.github.com/ChrisSargent/b57e37ba2b8f1e8f02dff806fe1e6d52 I was just able to register the admin in the Fabcar app, but ONLY from my host machine.

BrettLogan (Fri, 14 Feb 2020 15:57:05 GMT):
Can you provide the same for one of your peers, I want to compare

BrettLogan (Fri, 14 Feb 2020 15:57:27 GMT):
I think I see the problem, but want to confirm

ChrisSargent (Fri, 14 Feb 2020 16:00:16 GMT):
sure, updated the Gist.

BrettLogan (Fri, 14 Feb 2020 16:04:03 GMT):
Hmmm, not what I thought, let me pull the test-network and take a look

BrettLogan (Fri, 14 Feb 2020 16:13:28 GMT):
Testing a fix now

BrettLogan (Fri, 14 Feb 2020 16:14:16 GMT):
```# Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # version: '2' networks: test: services: ca_org1: image: hyperledger/fabric-ca:$IMAGE_TAG environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-org1 - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_PORT=7054 ports: - "7054:7054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' volumes: - ../organizations/fabric-ca/org1:/etc/hyperledger/fabric-ca-server container_name: ca_org1 networks: - test ca_org2: image: hyperledger/fabric-ca:$IMAGE_TAG environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-org2 - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_PORT=8054 ports: - "8054:8054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' volumes: - ../organizations/fabric-ca/org2:/etc/hyperledger/fabric-ca-server container_name: ca_org2 networks: - test ca_orderer: image: hyperledger/fabric-ca:$IMAGE_TAG environment: - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server - FABRIC_CA_SERVER_CA_NAME=ca-orderer - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_PORT=9054 ports: - "9054:9054" command: sh -c 'fabric-ca-server start -b admin:adminpw -d' volumes: - ../organizations/fabric-ca/ordererOrg:/etc/hyperledger/fabric-ca-server container_name: ca_orderer networks: - test```

BrettLogan (Fri, 14 Feb 2020 16:14:41 GMT):
In test-network update your `./docker/docker-compose-ca.yml` to be this, it adds it to the test network

BrettLogan (Fri, 14 Feb 2020 16:14:41 GMT):
In test-network update your ./docker/docker-compose-ca.yml to be this, it adds it to the test network

BrettLogan (Fri, 14 Feb 2020 16:15:13 GMT):
Ill talk to Nik (the guy who wrote test-network) and see if there is a reason he didn't put the CA's on the same network as the rest of the network

BrettLogan (Fri, 14 Feb 2020 16:15:32 GMT):
Though I tested the entire e2e and it seemingly works fine

ChrisSargent (Fri, 14 Feb 2020 16:23:54 GMT):
will try it now, thanks - I was just thinking about the same...

BrettLogan (Fri, 14 Feb 2020 16:24:39 GMT):
I opened a PR here to update it

BrettLogan (Fri, 14 Feb 2020 16:24:40 GMT):
https://github.com/hyperledger/fabric-samples/pull/124

ChrisSargent (Fri, 14 Feb 2020 16:31:14 GMT):
Okay - I see them all on the same network in Docker now but I still can't ping them from my App container.

ChrisSargent (Fri, 14 Feb 2020 16:31:26 GMT):
I am able to ping the CAs from one of the peers though.

BrettLogan (Fri, 14 Feb 2020 16:32:13 GMT):
can you do a `docker network inspect net_test`

ChrisSargent (Fri, 14 Feb 2020 16:32:19 GMT):
In fact, from my app container, I can only ping the fqdn of the peers, not the localhost:7050 for example.

ChrisSargent (Fri, 14 Feb 2020 16:32:36 GMT):
`[ { "Name": "net_test", "Id": "5c12b5878abd2db5b9c0b5c4358cdf8a15ef9b3cdfd61c45cd073498c9056fb1", "Created": "2020-02-14T16:26:25.6306062Z", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "192.168.224.0/20", "Gateway": "192.168.224.1" } ] }, "Internal": false, "Attachable": false, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": { "1d2d58e584fb3ee570d3b5e00de3de83961bfb5f9b065a96a31e44bb53ccd9c0": { "Name": "api_org1", "EndpointID": "847654ab3ae7a9f4fc5386e1945c5f9275b5bf24e3e85e13989a9b4017ddd694", "MacAddress": "02:42:c0:a8:e0:08", "IPv4Address": "192.168.224.8/20", "IPv6Address": "" }, "353bf6a7d535fca080c57faf8dc5e414d8a124210382d05ee048e2e3a67543b6": { "Name": "ca_org2", "EndpointID": "c887b52dbb95f4ae59750d03c5606df7502e01bc73b9c11e317a47df55d93cf8", "MacAddress": "02:42:c0:a8:e0:02", "IPv4Address": "192.168.224.2/20", "IPv6Address": "" }, "570eaa6c4b2b110606ba1d3281022b3f7fb5078738473ebbb5a7b2be8eea66a3": { "Name": "ca_orderer", "EndpointID": "26a8178168c0a2414030c33becfb03620f6b59942830f11e437a4c29a81231d2", "MacAddress": "02:42:c0:a8:e0:04", "IPv4Address": "192.168.224.4/20", "IPv6Address": "" }, "8110c13ae5e1f41e00d5dd1c84ba97ede8f2ebe939c35287db511b804aea7c45": { "Name": "peer0.org2.example.com", "EndpointID": "4ea8d5257360c12de96a3067c089e375abb26a443a4534a62bd8b685034ec4f2", "MacAddress": "02:42:c0:a8:e0:07", "IPv4Address": "192.168.224.7/20", "IPv6Address": "" }, "acfc75c84391cb429a21f58f110210e94670d0db419c983adf6af04aa5b461de": { "Name": "peer0.org1.example.com", "EndpointID": "7d559c666dd39f9378e2d351248781e007aafbdee03d04f6ec30b299126e5347", "MacAddress": "02:42:c0:a8:e0:06", "IPv4Address": "192.168.224.6/20", "IPv6Address": "" }, "c3cfe1ac910754b79ef4689712fb99ba7d4e232d4a10d3e9c87ada9fed999ab7": { "Name": "orderer.example.com", "EndpointID": "499cc20dc9632c6cd3e43906a78d1465f0c5772ed41e486a9ca8cc8d77a8bd86", "MacAddress": "02:42:c0:a8:e0:05", "IPv4Address": "192.168.224.5/20", "IPv6Address": "" }, "d52104fd34eee14377cda2e1d1a4faee050b87af5c6fdbfaf9d4a4ad7b74e94f": { "Name": "ca_org1", "EndpointID": "20aaeea96508a20267fae036497b669434d1eda0a4cd15a9ba69f14d71d48f34", "MacAddress": "02:42:c0:a8:e0:03", "IPv4Address": "192.168.224.3/20", "IPv6Address": "" } }, "Options": {}, "Labels": {} } ] `

BrettLogan (Fri, 14 Feb 2020 16:32:39 GMT):
Ahh, yes, correct

BrettLogan (Fri, 14 Feb 2020 16:32:50 GMT):
I see what you are trying to do...

BrettLogan (Fri, 14 Feb 2020 16:35:38 GMT):
The test-network maps the localhost for you when running from your local machine, the same can't be said when running in docker. The way to make this work in both places is to use the FQDN in your app, and then on your local machine add entries in `/etc/host` for your containers. So you should inspect each container and get the IP and then put entries in /etc/hosts like ` peer0.org1.example.com`

ChrisSargent (Fri, 14 Feb 2020 16:35:52 GMT):
fwiw I can ping the fqdn or the localhost:port for other peers / ca_org1

ChrisSargent (Fri, 14 Feb 2020 16:37:53 GMT):
where `` is the containers ip address on my local machine? (so like 192.168.xxxx ?)

ChrisSargent (Fri, 14 Feb 2020 16:37:53 GMT):
where `` is the container's ip address on my local machine? (so like 192.168.xxxx ?)

BrettLogan (Fri, 14 Feb 2020 16:38:32 GMT):
Correct

BrettLogan (Fri, 14 Feb 2020 16:38:59 GMT):
The info is also available in the output of `network inspect` you gave me, probably easier to get it from there

ChrisSargent (Fri, 14 Feb 2020 16:40:27 GMT):
cool, thanks. So you're saying I should be able to run the app locally and it would work without this? I had read somewhere that the app would NEED to be in a Docker container... and that actually putting in a container would avoid the need to editing the hosts file.

ChrisSargent (Fri, 14 Feb 2020 16:42:01 GMT):
also, should I further update the docker-ca.yml files so the CAs have fqdns? (currently they're like ca_org2)

ChrisSargent (Fri, 14 Feb 2020 16:45:26 GMT):
because actually, I did something like this on my host machine last night to 'fudge it': `## HL Fabric Test Network - Start ## 127.0.0.1 peer0.org1.example.com 127.0.0.1 peer0.org2.example.com 127.0.0.1 orderer.example.com 127.0.0.1 ca.org1.example.com 127.0.0.1 ca.org2.example.com ## HL Fabric Test Network - End #ambassadors

ChrisSargent (Fri, 14 Feb 2020 16:45:26 GMT):
because actually, I did something like this on my host machine last night to 'fudge it': `## HL Fabric Test Network - Start ## 127.0.0.1 peer0.org1.example.com 127.0.0.1 peer0.org2.example.com 127.0.0.1 orderer.example.com 127.0.0.1 ca.org1.example.com 127.0.0.1 ca.org2.example.com ## HL Fabric Test Network - End

BrettLogan (Fri, 14 Feb 2020 16:48:54 GMT):
Yea, you should update the docker-ca files if you want an FQDN

BrettLogan (Fri, 14 Feb 2020 16:49:12 GMT):
And your /etc/hosts would probably work as well

ChrisSargent (Fri, 14 Feb 2020 18:10:00 GMT):
okay, so, now I've got a bit further with the Fabcar app - I was able to run enrollAdmin.js successfully. But when trying to run registerUser, or the query, I get a `Failed to register user "user1": TypeError: gateway.getClient is not a function` error. So it seems somehow it still can't connect. I will try a few things and let you know progress.

BrettLogan (Fri, 14 Feb 2020 18:11:21 GMT):
Which sdk is that, Node?

ChrisSargent (Fri, 14 Feb 2020 18:11:30 GMT):
wait a minute, I'm an idiot sorry, I haven't created the channel or deployed the CC yet!

salma_shalaby (Fri, 14 Feb 2020 18:25:06 GMT):
Has joined the channel.

salma_shalaby (Fri, 14 Feb 2020 18:25:07 GMT):
Hello

salma_shalaby (Fri, 14 Feb 2020 18:26:08 GMT):
I am trying to create a network with multiple channels where each of them will have a different block size

salma_shalaby (Fri, 14 Feb 2020 18:28:14 GMT):
i am using Raft ordering service, but teh problem is that all the orderers containers exits automatically after starting

salma_shalaby (Fri, 14 Feb 2020 18:28:29 GMT):
is there is a way to resolve this issue

Antimttr (Fri, 14 Feb 2020 18:29:53 GMT):
well i would start by looking at the logs of the orderer containers, omit the -d param when you launch them to launch in foreground so you can see the log before it dies.

ChrisSargent (Fri, 14 Feb 2020 18:31:09 GMT):
actually, still the same error

salma_shalaby (Fri, 14 Feb 2020 18:40:56 GMT):
I faced a problem when I was creating the configtx.yaml, in the orderer section I wanted to add another part similar to &ordererDefaults with one difference which is the block size but I got a syntax error. Can any one help with this? How can I define more than one block-size so each channel will have its own configuration

ChrisSargent (Fri, 14 Feb 2020 18:42:03 GMT):
Okay, I just tried it just using the byfn example (as in the tutorials) and I get the same error.

tongli (Fri, 14 Feb 2020 18:43:49 GMT):
If you are really struggling setting up the network you want, I think you can really give minifabric a try.

tongli (Fri, 14 Feb 2020 18:45:55 GMT):
To use different block size, you would need to create the channel then do channel update

tongli (Fri, 14 Feb 2020 18:46:49 GMT):
BTW, minifabric helps you to do that as well. You do not have to worry about how to proceed or make mistakes in the process.

tongli (Fri, 14 Feb 2020 18:47:36 GMT):
You just need to do channelquery, make a change to the json file produced by channelquery, then do channelsign and update.

tongli (Fri, 14 Feb 2020 18:48:46 GMT):
That will be all actions you need to take.

salma_shalaby (Fri, 14 Feb 2020 18:49:23 GMT):
what is minifabric?

tongli (Fri, 14 Feb 2020 18:50:02 GMT):
It is a tool I recently created really to help chaincode/fabric developers

tongli (Fri, 14 Feb 2020 18:50:57 GMT):
You can find it here https://github.com/litong01/minifabric

tongli (Fri, 14 Feb 2020 18:51:29 GMT):
Only requires a docker env

salma_shalaby (Fri, 14 Feb 2020 18:51:39 GMT):
So there is no way that I can define multiple configurations from the beginning?

tongli (Fri, 14 Feb 2020 18:51:46 GMT):
Works on both Linux and Mac OS X

salma_shalaby (Fri, 14 Feb 2020 18:52:03 GMT):
I will give it a try

tongli (Fri, 14 Feb 2020 18:52:30 GMT):
Configtx is more of a bootstrap thing.

tongli (Fri, 14 Feb 2020 18:53:51 GMT):
You can certainly do more with it. But these manual steps are very error pro. You can very easily make mistakes and do not even know where you made them

tongli (Fri, 14 Feb 2020 18:54:38 GMT):
Minifabric does all these timeous work for you and allow you to focus on what you care the most.

tongli (Fri, 14 Feb 2020 18:54:48 GMT):
Tedious work

tongli (Fri, 14 Feb 2020 18:55:45 GMT):
Minifabric does not hide all the actions it took to accomplish a task.

tongli (Fri, 14 Feb 2020 18:56:15 GMT):
It saves all the actions it took in a directory which you can inspect and learn from it.

salma_shalaby (Fri, 14 Feb 2020 19:00:31 GMT):
Sounds good. Thank you

ChrisSargent (Fri, 14 Feb 2020 19:10:41 GMT):
I will probably give it a go tomorrow. I've been working on this for about a week and haven't written a line of actual code yet.

ChrisSargent (Fri, 14 Feb 2020 19:11:21 GMT):
Someone needs to do the "create react app" of the hl fabric world :-)

tongli (Fri, 14 Feb 2020 19:22:05 GMT):
@ChrisSargent If you are still struggling with getting your network up running, I suggest you take a look at minifabric, it probably is already 'the react app'

ChrisSargent (Fri, 14 Feb 2020 19:22:41 GMT):
Don't actually seem to be able to find the getClient method anywhere in the node-sdk code.

davidkel (Fri, 14 Feb 2020 19:26:50 GMT):
It's a method on the gateway class in the 1.4 fabric-network implementation. I gather 2.0 of the node sdk is going to look a bit different

Antimttr (Fri, 14 Feb 2020 21:22:57 GMT):
does anyone know which components of HLF actually utilize the network-config.yaml?

Antimttr (Fri, 14 Feb 2020 21:23:51 GMT):
I know when i wrote my client it uses it to fill in the blanks about a lot of the details about the network but i built up all my nodes and none of them seem to need it to operate... so far.

Antimttr (Fri, 14 Feb 2020 21:31:01 GMT):
I think the answer is only the client according to the top of the sample file: ``` # The network connection profile provides client applications the information about the target # blockchain network that are necessary for the applications to interact with it. These are all # knowledge that must be acquired from out-of-band sources. This file provides such a source. #fabric-questions ```

Antimttr (Fri, 14 Feb 2020 21:31:41 GMT):
So this means i can customize it however i like

Antimttr (Fri, 14 Feb 2020 21:40:09 GMT):
or does the sdk actually need it... im hunting through my client code to see if i feed it anywhere, but lots of code...

tongli (Fri, 14 Feb 2020 22:08:54 GMT):
Without the connection profile, your client would not know where to send txs.

tongli (Fri, 14 Feb 2020 22:09:42 GMT):
The connection profile normally contains orderer node endpoints, at least some peer node endpoints to get you started.

Antimttr (Fri, 14 Feb 2020 22:17:42 GMT):
so is the connection profile defined by a peer parameter or something?

Antimttr (Fri, 14 Feb 2020 22:17:49 GMT):
because if it is I've totally missed it

Antimttr (Fri, 14 Feb 2020 22:17:55 GMT):
like how do you feed the connection profile to the peers?

Antimttr (Fri, 14 Feb 2020 22:19:22 GMT):
i thought they got that information by looking at the channel configuration

davidkel (Fri, 14 Feb 2020 22:25:52 GMT):
If you use discovery then you can discover the orderer end points, so you only need a list of peers to attempt discovery from

ChrisSargent (Fri, 14 Feb 2020 23:04:35 GMT):
I think that's correct about the peers - but the client doesn't technically have access to the chain or blocks.

ChrisSargent (Fri, 14 Feb 2020 23:19:34 GMT):
Okay... so I try to switch to the 1.4 branch and I have other issues.

ChrisSargent (Fri, 14 Feb 2020 23:22:38 GMT):
The core functionality and core code of this stuff is complicated enough without having to worry about this networking stuff. As a developer experience, for me this has been a nightmare so far. Missing this dependency or this config correct, or this setting incorrect, it's crazy. I really really want to get this working and get my head around HL but when you spend more than 24 hours chasing a bug that has nothing to do with your own code, it's painful.

Antimttr (Fri, 14 Feb 2020 23:28:38 GMT):
right, i asked in the java sdk channel about it and apparently if you just used low level api for your client (like i did) the connection profile is completely unnecessary

ChrisSargent (Fri, 14 Feb 2020 23:31:22 GMT):
oh really. I understood the opposite - i.e. the profile needed to be less complete with Node vs Go / Java for example.

Antimttr (Fri, 14 Feb 2020 23:32:25 GMT):
quoted: "The fabric-gateway-java probably mandates the use of a connection profile (don't know if it supports what you can do in the node sdk). However the fabric-sdk-java allows you to either use a connection profile or to create channel/peer/orderer objects programatically "

Antimttr (Fri, 14 Feb 2020 23:32:53 GMT):
and the last option is what i did

ChrisSargent (Fri, 14 Feb 2020 23:33:12 GMT):
https://cloud.ibm.com/docs/blockchain?topic=blockchain-ibp-console-app#ibp-console-app-low-level

ChrisSargent (Fri, 14 Feb 2020 23:33:40 GMT):
so maybe, this sentence is what you mean, " or use the node endpoint information to manually add peer and orderer objects"

ChrisSargent (Fri, 14 Feb 2020 23:34:14 GMT):
Frankly, I don't want to have to worry about the networking part for my _client applications_

ChrisSargent (Fri, 14 Feb 2020 23:35:40 GMT):
And now I even get this error trying to use 1.4 ------> 1.4.4 platform specific fabric binary is not available to download <----

ChrisSargent (Fri, 14 Feb 2020 23:37:18 GMT):
Sorry, don't mean to direct this to you!

ChrisSargent (Fri, 14 Feb 2020 23:53:48 GMT):
Managed to switch everything back to 1.4 and is working now from my host machine with the byfn network.

smtter (Sat, 15 Feb 2020 02:10:34 GMT):
Hi all. So I configured my configtx and added the channels that I wanted in the file. Why do I have to create channels again once I'm in the cli container?

smtter (Sat, 15 Feb 2020 02:10:34 GMT):
Hi all. So I configured my configtx (Consortiums section) and added the channels that I wanted in the file. Why do I have to create channels again once I'm in the cli container?

Antimttr (Sat, 15 Feb 2020 02:24:19 GMT):
well my client is more of a back end, my webapp is my front end

Antimttr (Sat, 15 Feb 2020 02:24:49 GMT):
i use the client for initializing the network and invoking chaincode and running audits and the like

Antimttr (Sat, 15 Feb 2020 02:25:16 GMT):
but the user experience will be abstracted by the webapp and the api's it provides

smtter (Sat, 15 Feb 2020 02:46:44 GMT):
Hi all, I'd really appreciate if someone can clarify the differences and use cases between a consortium vs a channel? Thank you!

Antimttr (Sat, 15 Feb 2020 03:32:14 GMT):
a consortium is the orgs in the network, a channel is a particular block chain on the network

smtter (Sat, 15 Feb 2020 03:35:55 GMT):
So what's the benefit of creating multiple channels vs multiple consortiums?

smtter (Sat, 15 Feb 2020 03:36:09 GMT):
So what's the benefit of creating multiple channels vs multiple consortiums?

Antimttr (Sat, 15 Feb 2020 03:37:16 GMT):
depends on your application, if your application requires multiple smartcontracts then maybe you would want multiple channels

Antimttr (Sat, 15 Feb 2020 03:38:14 GMT):
maybe you want different consortiums for each smart contract, then you create multiple

Antimttr (Sat, 15 Feb 2020 03:38:14 GMT):
maybe you want different consortiums for each smart contract, then you create multiple consortiums

smtter (Sat, 15 Feb 2020 03:42:23 GMT):
So channels allow for isolated ledger that is private. Do consortiums provide the same security?

Antimttr (Sat, 15 Feb 2020 03:43:03 GMT):
no consortiums dont allow for that afaik

Antimttr (Sat, 15 Feb 2020 03:43:16 GMT):
the world state is defined per channel

Antimttr (Sat, 15 Feb 2020 03:44:00 GMT):
any org that is part of a channel has access to that blockchain

smtter (Sat, 15 Feb 2020 03:44:19 GMT):
hmm, okay. That makes sense I guess. Any examples you can think of to have 1 vs multiple consortiums?

Antimttr (Sat, 15 Feb 2020 03:44:26 GMT):
no

Antimttr (Sat, 15 Feb 2020 03:44:30 GMT):
ive never seen anything like that

smtter (Sat, 15 Feb 2020 03:44:39 GMT):
so I should probably just use 1?

Antimttr (Sat, 15 Feb 2020 03:44:44 GMT):
but in theory its possible

Antimttr (Sat, 15 Feb 2020 03:44:49 GMT):
i just havent seen any of the samples do that

smtter (Sat, 15 Feb 2020 03:45:07 GMT):
Yeah, configtx allows you to make multiple consortiums.

Antimttr (Sat, 15 Feb 2020 03:45:17 GMT):
right

smtter (Sat, 15 Feb 2020 03:45:29 GMT):
But I guess, I should only use 1 and if necessary in the future, I'll change. Thank you!

Antimttr (Sat, 15 Feb 2020 03:45:38 GMT):
yeah

Antimttr (Sat, 15 Feb 2020 03:45:44 GMT):
think about your application

Antimttr (Sat, 15 Feb 2020 03:45:46 GMT):
and its requirements

ChrisSargent (Sat, 15 Feb 2020 08:36:34 GMT):
I finally got byfn up and running and working from both my host machine and docker. Thanks to everyone who helped, especially @BrettLogan :smiley:

kapilcool (Sat, 15 Feb 2020 12:54:05 GMT):
Has joined the channel.

kapilcool (Sat, 15 Feb 2020 12:54:05 GMT):
I am having issues (dependencies) on installing CommercialPaper sample on MacBook Pro. I have docker, test network etc all up and running. I face problem when I try to execute the following:Let’s install these packages with the npm install command – this may take up to a minute to complete: (isabella)$ cd commercial-paper/organization/magnetocorp/application/ (isabella)$ npm install ( ) extract:lodash: sill extract ansi-styles@3.2.1 (...) added 738 packages in 46.701s

kapilcool (Sat, 15 Feb 2020 12:55:32 GMT):
I get error : notsup Unsupported engine for fabric-network@2.0.0-beta.3

kapilcool (Sat, 15 Feb 2020 12:56:03 GMT):
output of the command: npm install npm WARN notsup Unsupported engine for fabric-network@2.0.0-beta.3: wanted: {"node":"^10.15.3 || ^12.13.1","npm":"^6.4.1"} (current: {"node":"13.6.0","npm":"6.13.6"}) npm WARN notsup Not compatible with your version of node/npm: fabric-network@2.0.0-beta.3 npm WARN notsup Unsupported engine for fabric-ca-client@2.0.0-beta.3: wanted: {"node":"^10.15.3 || ^12.13.1","npm":"^6.4.1"} (current: {"node":"13.6.0","npm":"6.13.6"}) npm WARN notsup Not compatible with your version of node/npm: fabric-ca-client@2.0.0-beta.3 npm WARN notsup Unsupported engine for fabric-common@2.0.0-beta.3: wanted: {"node":"^10.15.3 || ^12.13.1","npm":"^6.4.1"} (current: {"node":"13.6.0","npm":"6.13.6"}) npm WARN notsup Not compatible with your version of node/npm: fabric-common@2.0.0-beta.3 npm WARN notsup Unsupported engine for fabric-protos@2.0.0-beta.3: wanted: {"node":"^8.9.0 || ^10.15.3 || ^12.13.1","npm":"^5.5.1 || ^6.4.1"} (current: {"node":"13.6.0","npm":"6.13.6"}) npm WARN notsup Not compatible with your version of node/npm: fabric-protos@2.0.0-beta.3 npm WARN nodejs@1.0.0 No description npm WARN nodejs@1.0.0 No repository field. added 5 packages from 4 contributors, updated 6 packages, moved 2 packages and audited 1839 packages in 4.835s 1 package is looking for funding run `npm fund` for details found 0 vulnerabilities

kapilcool (Sat, 15 Feb 2020 13:09:26 GMT):
tried to add the wallet and hit with more errors: $node addToWallet.js /Users/xx/hyper-ledger-2/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/grpc/src/grpc_extension.js:58 throw e; ^ Error: Failed to load /Users/xx/hyper-ledger-2/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/grpc/src/node/extension_binary/node-v79-darwin-x64-unknown/grpc_node.node. Cannot find module '/Users/xx/hyper-ledger-2/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/grpc/src/node/extension_binary/node-v79-darwin-x64-unknown/grpc_node.node'

salma_shalaby (Sat, 15 Feb 2020 13:30:14 GMT):
Hello, I am trying to run first-network example using Raft ordering but all the orderers containers exits after starting, here are teh logs: 020-02-15 13:07:42.622 UTC [orderer.common.server] extractSysChanLastConfig -> INFO 003 Not bootstrapping because of 1 existing channels 2020-02-15 13:07:42.622 UTC [fsblkstorage] newBlockfileMgr -> INFO 004 Getting block information from block storage panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfa2509] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0x1, 0x0, 0x194, 0x2140990) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc00011b020, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7ff6e218ee78, 0xc00011b020, 0xc00011b020) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/server.extractSysChanLastConfig(0x16c5420, 0xc00011a2e0, 0xc000084e40, 0x16c5420) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:222 +0x2cf github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc0003ae900) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:110 +0x30a github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

ChrisSargent (Sat, 15 Feb 2020 13:32:00 GMT):
This is telling you your node version is incompatible.

ChrisSargent (Sat, 15 Feb 2020 13:32:23 GMT):
Are you using a node version manager?

kapilcool (Sat, 15 Feb 2020 14:58:59 GMT):
oh ok. node and nvm versions below: MacBook-Pro-2:application xx$ node --version v13.6.0 MacBook-Pro-2:application xx$ nvm --version 0.32.1 MacBook-Pro-2:application xx$

kapilcool (Sat, 15 Feb 2020 14:59:11 GMT):
what is the correct way of resolving the issue?

kapilcool (Sat, 15 Feb 2020 15:00:05 GMT):
what is the best way to resolve the issue?

BrettLogan (Sat, 15 Feb 2020 15:53:12 GMT):
You're running node 13. Uninstall node and reinstall node 10

ChrisSargent (Sat, 15 Feb 2020 17:07:41 GMT):
Since you’re running nvm, you just need to switch to Node 10, no need to uninstall anything. Run ‘nvm install 10’. I tend to use Node 10 as my default whilst doing anything hyperledger related. still (otherwise you have to constantly switch to it). To set it you just run ‘nvm alias default 10’

ChrisSargent (Sat, 15 Feb 2020 17:07:41 GMT):
Since you’re running nvm, you just need to switch to Node 10, no need to uninstall anything. Run ‘nvm install 10’. I tend to use Node 10 as my default whilst doing anything hyperledger related (otherwise you have to constantly switch to it). To set it you just run ‘nvm alias default 10’

kapilcool (Sat, 15 Feb 2020 18:52:19 GMT):
Thanks for your help Chris. Now the other issues are resolved but I still cannot the wallet installed as per the instructions on commercial paper sample. Details below: (isabella)$ node addToWallet.js

kapilcool (Sat, 15 Feb 2020 18:55:16 GMT):
looks like problem has been solved by doing $npm rebuild

kapilcool (Sat, 15 Feb 2020 18:55:20 GMT):
thanks

smtter (Sat, 15 Feb 2020 21:08:22 GMT):
Is phantom message with couchDB still a issue with v1. 4?

smtter (Sat, 15 Feb 2020 21:08:22 GMT):
Is phantom read with couchDB still a issue with v1. 4?

smtter (Sat, 15 Feb 2020 21:08:34 GMT):
Or 2.0?

usamahabib95 (Sat, 15 Feb 2020 21:12:12 GMT):
When I try to install smart contract package on peer node i get this erro

usamahabib95 (Sat, 15 Feb 2020 21:13:25 GMT):
when i tried to install smart contract on peer node i got this error ``` [chaincode.platform] func1 -> ERRO 022 docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input ``` ``` Please Help Thanks ```

kapilcool (Sun, 16 Feb 2020 02:04:27 GMT):
I have commercial-paper sample case all up and running now. I started configuring Hyperledger Explorer and had some issues. it looks like my config.json to configure n networks is wrong. Is there any way to generate config.json for explorer to match the commercial paper (https://hyperledger-fabric.readthedocs.io/en/release-2.0/tutorial/commercial_paper.html) use case?

premib (Sun, 16 Feb 2020 04:20:19 GMT):
Error: failed to endorse chaincode install = rpc error : code = unavailable desc = transport is closing, chaincode installation on peer0.org1 has failed i am getting this error whenever i start ./byfn.sh with ./byfn.sh up -l java command. everything works fine with golang(default)

BrettLogan (Sun, 16 Feb 2020 07:01:28 GMT):
Did you do a `./bynf.sh down` first. If you don't, then docker volumes get left behind and remounted with crypto that doesn't match the new network already on them

BrettLogan (Sun, 16 Feb 2020 07:01:45 GMT):
You need to run down in between every run of byfn

kapilcool (Sun, 16 Feb 2020 12:49:10 GMT):
Are there any pre-built docker images with hyper ledger 2.0 complied for differentsample use cases?

Antimttr (Sun, 16 Feb 2020 17:16:03 GMT):
i dont think the samples use custom docker images, they just use the default ones..

divyasekaran (Mon, 17 Feb 2020 04:14:08 GMT):
Yes I pruned volumes and networks too. But still same error

sukalpomitra (Mon, 17 Feb 2020 05:01:02 GMT):
Has joined the channel.

sukalpomitra (Mon, 17 Feb 2020 05:01:03 GMT):
is it possible to change the leader election policy or leader peer in the organisation?

misha (Mon, 17 Feb 2020 05:22:44 GMT):
Has joined the channel.

misha (Mon, 17 Feb 2020 05:22:45 GMT):
Hi All,

misha (Mon, 17 Feb 2020 05:23:11 GMT):
I was trying to deploy wasm code in fabric network(1.1) using the link https://github.com/hyperledger-labs/fabric-chaincode-wasm. I was able to install the code but during instantiation of the code got some errors as shown in the figure. It would be great if someone can help me for the same. Thanks in advance. :)

misha (Mon, 17 Feb 2020 05:23:36 GMT):

fabric_wasm_error.png

Purbaja (Mon, 17 Feb 2020 06:25:11 GMT):
Hi Team, in Hyperledger fabric 1.4.4 using raft ordering cluster can we setup non-TLS network( i.e. TLS_ENABLED = false) ?

chintanr11 (Mon, 17 Feb 2020 06:28:12 GMT):
Has joined the channel.

chintanr11 (Mon, 17 Feb 2020 06:28:13 GMT):
Also if I set a signature policy with some custom role, it gives me the following error: Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: could not create application group: error adding policies to application group: invalid signature policy rule 'OR('Org1MSP.admin', 'Org1MSP.client', 'Org1MSP.dept')': Unable to parse numeric value '.' to float64 How to enable NodeOUs using fabric CA but without config.yaml? I have explained my question more in detail in this thread: https://stackoverflow.com/questions/60256416/adding-custom-node-ous-with-hyperledger-fabric

chintanr11 (Mon, 17 Feb 2020 07:01:27 GMT):
How to add hf.Registrar.Roles attribute using cryptogen?

giuzero (Mon, 17 Feb 2020 11:47:04 GMT):
Hi guys, how to set up multiple solo orderers? One for each org

BrettLogan (Mon, 17 Feb 2020 13:34:17 GMT):
As the name "solo" implies, there is only ever one. Solo was only ever meant for testing purposes, and was replaced by RAFT where you can deploy a single node RAFT cluster, and then extend the network to multiple RAFT orderers

BrettLogan (Mon, 17 Feb 2020 13:36:20 GMT):
RAFT requires tls, from the docs `Raft nodes identify each other using TLS pinning, so in order to impersonate a Raft node, an attacker needs to obtain the private key of its TLS certificate. As a result, it is not possible to run a Raft node without a valid TLS configuration.`

BrettLogan (Mon, 17 Feb 2020 13:37:41 GMT):
What version of Go are you using `go version`

giuzero (Mon, 17 Feb 2020 13:58:34 GMT):
yes I've already done it with raft and it works on multihost. I'm trying to do something like this https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html#the-ordering-service

giuzero (Mon, 17 Feb 2020 13:59:19 GMT):
"A multi-organization ordering service"

mholdmann (Mon, 17 Feb 2020 16:27:42 GMT):
Has joined the channel.

dabeberman (Mon, 17 Feb 2020 16:39:08 GMT):
Has joined the channel.

spmcnamara (Mon, 17 Feb 2020 17:26:25 GMT):
Hi all. Is anyone developing chaincode using golang module functionality? I'm having a hard time getting a good development setup and workflow operating. Most articles/tutorials just dump the code into the github.com tree of the $GOSRC directory. I'd much rather think of chaincode as a separate compartmentalized go module. I think this should work, but am wondering if there is any prior art I can reference. Pointers?

BrettLogan (Mon, 17 Feb 2020 17:29:51 GMT):
Modules were not supported until Fabric 2.0, in 2.0 you can use modules to create chaincode

BrettLogan (Mon, 17 Feb 2020 17:31:01 GMT):
2.0 is only 2 weeks old, so you won't find many tutorials using 2.0 patterns yet.

spmcnamara (Mon, 17 Feb 2020 17:31:03 GMT):
Ugh. I was hoping not to have to tackle migration to 2.0 yet.

spmcnamara (Mon, 17 Feb 2020 17:31:46 GMT):
Any pointers to writing on good dev workflow setup? My process right now feels very clunky and a bit ad-hoc.

spmcnamara (Mon, 17 Feb 2020 17:33:03 GMT):
I'll probably stay 1.4 and deal with no-modules for now.

BrettLogan (Mon, 17 Feb 2020 17:33:04 GMT):
Have you tried the IBM Blockchain extension for VSCode? There you can stand up your network (or use the one built into the extension) and then install, instantiate, invoke and query right from the UI

spmcnamara (Mon, 17 Feb 2020 17:34:06 GMT):
I haven't used VSCode. I do all my other work in Emacs and was hoping to stay in that world, but perhaps the tooling makes it worth doing.

BrettLogan (Mon, 17 Feb 2020 17:34:56 GMT):
You can develop in Emacs and then just use VSCode for the functionality of installing chaincode

spmcnamara (Mon, 17 Feb 2020 17:35:20 GMT):
I'll pull down that extension now and take a look. Thanks for the tip.

supplychain (Mon, 17 Feb 2020 17:55:28 GMT):
Has joined the channel.

supplychain (Mon, 17 Feb 2020 17:55:29 GMT):
I have question I want to implement tractability system for supply chain in blockchain

supplychain (Mon, 17 Feb 2020 17:55:56 GMT):
how I would start?

JeffGutierrez (Tue, 18 Feb 2020 00:49:28 GMT):
Hi Everyone, does anyone here perform perform such queries like sorting?

ashlinSajan (Tue, 18 Feb 2020 05:30:53 GMT):
Anyone familiar with putting multiple chaincode into single package?(2.0 feature)

RazaDen (Tue, 18 Feb 2020 09:23:31 GMT):
Hello everyone! I am trying to setup a basic network with 1 organization that has 1 CA, 1 peer node and 1 orderer node without using the cryptogen tool. The crux of my problem is that I want it to have mutual TLS authentication enabled. I have managed to setup the network, however, I do get a very weird error when I am trying to instantiate one of my chaincodes (installation succeeds). By inspecting the logs of the peer I found the following: `2020-02-18 09:15:11.564 UTC [container] lockContainer -> DEBU 13b0 waiting for container(DELTA_OADR-0) lock 2020-02-18 09:15:11.564 UTC [container] lockContainer -> DEBU 13b1 got container (DELTA_OADR-0) lock 2020-02-18 09:15:11.564 UTC [dockercontroller] stopInternal -> DEBU 13b2 stopping container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b3 stop container result error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b4 killing container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b5 kill container result id=dev-peer0.certh.delta.com-DELTA_OADR-0 error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b6 removing container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b7 remove container result id=dev-peer0.certh.delta.com-DELTA_OADR-0 error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] createContainer -> DEBU 13b8 create container imageID=dev-peer0.certh.delta.com-delta_oadr-0-911f5872e5fbf77fdb1356d9d03bd7cd862d19907f42272e656df9b7b11a4391 containerID=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] getDockerHostConfig -> DEBU 13b9 docker container hostconfig NetworkMode: net_basic 2020-02-18 09:15:11.845 UTC [msp] GetDefaultSigningIdentity -> DEBU 13ba Obtaining default signing identity 2020-02-18 09:15:11.845 UTC [msp.identity] Sign -> DEBU 13bb Sign: plaintext: 18012A4F0A3E0A1A70656572302E6365...EE120D0899D0A9C2D1F39CFA1510F402 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13bc Sign: digest: 75BEFF322395FE2F1159A4CE3F05C1C1D3F4DAD300F5C6457ECA15DDEAD2EC79 2020-02-18 09:15:11.846 UTC [msp] GetDefaultSigningIdentity -> DEBU 13bd Obtaining default signing identity 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13be Sign: plaintext: 0A1A70656572302E63657274682E64656C74612E636F6D3A37303531 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13bf Sign: digest: A5315C7BE6004A3F1955476A34162AD85F95130E58046280148631BA3296F8B9 2020-02-18 09:15:12.315 UTC [dockercontroller] createContainer -> DEBU 13c0 created container imageID=dev-peer0.certh.delta.com-delta_oadr-0-911f5872e5fbf77fdb1356d9d03bd7cd862d19907f42272e656df9b7b11a4391 containerID=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:12.678 UTC [gossip.discovery] periodicalReconnectToDead -> DEBU 13c1 Sleeping 25s 2020-02-18 09:15:12.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 13c2 Obtaining default signing identity 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c3 Sign: plaintext: 18012A4F0A3E0A1A70656572302E6365...EE120D0899D0A9C2D1F39CFA1510F502 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c4 Sign: digest: 6C18A002B6153D67A8C728CC1D422C0D3FACC0C807799E482768BEEE6C35D42E 2020-02-18 09:15:12.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 13c5 Obtaining default signing identity 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c6 Sign: plaintext: 0A1A70656572302E63657274682E64656C74612E636F6D3A37303531 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c7 Sign: digest: A5315C7BE6004A3F1955476A34162AD85F95130E58046280148631BA3296F8B9 2020-02-18 09:15:12.818 UTC [gossip.discovery] periodicalSendAlive -> DEBU 13c8 Sleeping 5s 2020-02-18 09:15:13.578 UTC [core.comm] ServerHandshake -> ERRO 13c9 TLS handshake failed with error remote error: tls: bad certificate server=ChaincodeServer remoteaddress=192.168.32.6:54010 ` I am using an admin account to do this and I supply the certificate of the CA, the admin account and it's private key in the CLI's command line appropriate arguments (tls enabled as well). Can anyone please help me resolve this as I have no idea what's the problem?

RazaDen (Tue, 18 Feb 2020 09:23:31 GMT):
Hello everyone! I am trying to setup a basic network with 1 organization that has 1 CA, 1 peer node and 1 orderer node without using the cryptogen tool. The crux of my problem is that I want it to have mutual TLS authentication enabled. I have managed to setup the network, however, I do get a very weird error when I am trying to instantiate one of my chaincodes (installation succeeds). By inspecting the logs of the peer I found the following: ` 2020-02-18 09:15:11.564 UTC [container] lockContainer -> DEBU 13b0 waiting for container(DELTA_OADR-0) lock 2020-02-18 09:15:11.564 UTC [container] lockContainer -> DEBU 13b1 got container (DELTA_OADR-0) lock 2020-02-18 09:15:11.564 UTC [dockercontroller] stopInternal -> DEBU 13b2 stopping container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b3 stop container result error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b4 killing container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b5 kill container result id=dev-peer0.certh.delta.com-DELTA_OADR-0 error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b6 removing container id=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] stopInternal -> DEBU 13b7 remove container result id=dev-peer0.certh.delta.com-DELTA_OADR-0 error="No such container: dev-peer0.certh.delta.com-DELTA_OADR-0" 2020-02-18 09:15:11.565 UTC [dockercontroller] createContainer -> DEBU 13b8 create container imageID=dev-peer0.certh.delta.com-delta_oadr-0-911f5872e5fbf77fdb1356d9d03bd7cd862d19907f42272e656df9b7b11a4391 containerID=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:11.565 UTC [dockercontroller] getDockerHostConfig -> DEBU 13b9 docker container hostconfig NetworkMode: net_basic 2020-02-18 09:15:11.845 UTC [msp] GetDefaultSigningIdentity -> DEBU 13ba Obtaining default signing identity 2020-02-18 09:15:11.845 UTC [msp.identity] Sign -> DEBU 13bb Sign: plaintext: 18012A4F0A3E0A1A70656572302E6365...EE120D0899D0A9C2D1F39CFA1510F402 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13bc Sign: digest: 75BEFF322395FE2F1159A4CE3F05C1C1D3F4DAD300F5C6457ECA15DDEAD2EC79 2020-02-18 09:15:11.846 UTC [msp] GetDefaultSigningIdentity -> DEBU 13bd Obtaining default signing identity 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13be Sign: plaintext: 0A1A70656572302E63657274682E64656C74612E636F6D3A37303531 2020-02-18 09:15:11.846 UTC [msp.identity] Sign -> DEBU 13bf Sign: digest: A5315C7BE6004A3F1955476A34162AD85F95130E58046280148631BA3296F8B9 2020-02-18 09:15:12.315 UTC [dockercontroller] createContainer -> DEBU 13c0 created container imageID=dev-peer0.certh.delta.com-delta_oadr-0-911f5872e5fbf77fdb1356d9d03bd7cd862d19907f42272e656df9b7b11a4391 containerID=dev-peer0.certh.delta.com-DELTA_OADR-0 2020-02-18 09:15:12.678 UTC [gossip.discovery] periodicalReconnectToDead -> DEBU 13c1 Sleeping 25s 2020-02-18 09:15:12.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 13c2 Obtaining default signing identity 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c3 Sign: plaintext: 18012A4F0A3E0A1A70656572302E6365...EE120D0899D0A9C2D1F39CFA1510F502 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c4 Sign: digest: 6C18A002B6153D67A8C728CC1D422C0D3FACC0C807799E482768BEEE6C35D42E 2020-02-18 09:15:12.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 13c5 Obtaining default signing identity 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c6 Sign: plaintext: 0A1A70656572302E63657274682E64656C74612E636F6D3A37303531 2020-02-18 09:15:12.818 UTC [msp.identity] Sign -> DEBU 13c7 Sign: digest: A5315C7BE6004A3F1955476A34162AD85F95130E58046280148631BA3296F8B9 2020-02-18 09:15:12.818 UTC [gossip.discovery] periodicalSendAlive -> DEBU 13c8 Sleeping 5s 2020-02-18 09:15:13.578 UTC [core.comm] ServerHandshake -> ERRO 13c9 TLS handshake failed with error remote error: tls: bad certificate server=ChaincodeServer remoteaddress=192.168.32.6:54010 ` I am using an admin account to do this and I supply the certificate of the CA, the admin account and it's private key in the CLI's command line appropriate arguments (tls enabled as well). Can anyone please help me resolve this as I have no idea what's the problem?

giuzero (Tue, 18 Feb 2020 10:18:42 GMT):
Trying to create a channel... I got this error: Error: got unexpected status: SERVICE_UNAVAILABLE -- channel testchainid is not serviced by me What does it mean? How to solve it?

rpocase (Tue, 18 Feb 2020 14:21:22 GMT):
Has joined the channel.

rpocase (Tue, 18 Feb 2020 14:21:23 GMT):
I have a question about backup and restore. If I have a backup of the chain data (e.g. /var/hyperledger/production/orderer, /var/hyperledger/production/ledgersData, /var/hyperledger/production/chaincodes), can I restore this data to a consortium that was not included as part of the original chain? I expect the answer is no, but curious how people are tackling tasks like migrating to new naming schemes for orderers/peers or seeding a staging chain with production like data without requiring the original configtx

kortelyov (Tue, 18 Feb 2020 18:14:05 GMT):
Has joined the channel.

hmoazzem (Tue, 18 Feb 2020 18:18:40 GMT):
Hi all, I'm getting this error with orderer while starting a v2 network ``` Channel capability V2_0 is required but not supported ``` configtxgen ``` $ configtxgen --version configtxgen: Version: 2.0.0 Commit SHA: 0432c3e80 Go version: go1.13.4 OS/Arch: linux/amd64 ``` docker image `hyperledger/fabric-orderer:latest` configtx.yaml ``` Capabilities: Channel: &ChannelCapabilities V2_0: true Orderer: &OrdererCapabilities V2_0: true Application: &ApplicationCapabilities V2_0: true ``` Any suggestion what I might be doing wrong?

usamahabib95 (Tue, 18 Feb 2020 19:35:14 GMT):
``` ```

usamahabib95 (Tue, 18 Feb 2020 19:35:47 GMT):
Any solution to this error please help``` Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing ```

usamahabib95 (Tue, 18 Feb 2020 19:35:47 GMT):
Any solution to this error please help``` Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing ``` This error occurs when I run peer lifecycle chaincode install mychaincode.tar.gz

WagnerCruz (Wed, 19 Feb 2020 00:02:32 GMT):
Has joined the channel.

jona-sc (Wed, 19 Feb 2020 03:36:19 GMT):
Hello, any idea about why I might still be getting this error after changing my Application and Channel capabilities to `V2_0: true`? `cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled`

jona-sc (Wed, 19 Feb 2020 03:36:19 GMT):
Hello, any idea about why I might still be getting this error after changing my Application and Channel capabilities to `V2_0: true`? ` cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled `

jona-sc (Wed, 19 Feb 2020 03:36:19 GMT):
Hello, any idea about why I might still be getting this error after changing my Application and Channel capabilities to `V2_0: true`? `cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled`

jona-sc (Wed, 19 Feb 2020 03:36:19 GMT):
Hello, any idea about why I might still be getting this error after changing my Application and Channel capabilities to `V2_0: true`? ```cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled```

jona-sc (Wed, 19 Feb 2020 03:36:19 GMT):
Hello, any idea about why I might still be getting this error after changing my Application and Channel capabilities to `V2_0: true`? ```Error: proposal failed with status: 500 - cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled```

anilpaladuguvoltuswave (Wed, 19 Feb 2020 05:24:57 GMT):
Has joined the channel.

anilpaladuguvoltuswave (Wed, 19 Feb 2020 05:24:58 GMT):
Hi Hyperledger community!! , I Have questions regarding 2.0 chaincode installation in multi node . can any one please help me with fabric 2.0 installation in multiple instances multi node cluster .

JeffGutierrez (Wed, 19 Feb 2020 06:21:27 GMT):
Hi Everyone do you have any recommendation of Hyperledger Fabric Cloud Services that I could implement the system as far as I know IBM Blockchain Platform and AWS ,, do you have any other than these 2 big boys?

abityildiz (Wed, 19 Feb 2020 06:25:21 GMT):
i have try setup multi host fabric 2.0.but i did not setup.I need an example too

jona-sc (Wed, 19 Feb 2020 06:53:31 GMT):
Hi Jeff, I'm a little biased but we will be launching our solution on Fabric 2.0 in a couple of weeks. You can learn more here: http://chainstack.com/build-better-with-fabric/

anilpaladuguvoltuswave (Wed, 19 Feb 2020 06:59:09 GMT):
Could not connect to Endpoint: peer0.org2.example.com:7051, InternalEndpoint: peer0.org2.example.com:7051, PKI-ID: , Metadata: : context deadline exceeded , please can any one help me to fix this error

Aniket.1 (Wed, 19 Feb 2020 08:11:06 GMT):
With 2.0, what we need to provide as bootstrap system channel as with system channel, I cannot create a new channel, it says: `channel creation request not allowed because the orderer system channel is not yet defined`

ameyaosd (Wed, 19 Feb 2020 08:22:50 GMT):
Can we have two orgs on a channel who can both see the data in the channel but only org1 has WRITE permission for an asset and org2 has WRITE permission for another asset. They both have READ permission for both the assets in the Blockchain.

anilpaladuguvoltuswave (Wed, 19 Feb 2020 09:13:16 GMT):
Any solution to this error please help , Error: failed to retrieve endorser client for install: endorser client failed to connect to peer0.org2.example.com:7051: failed to create new connection: context deadline exceeded

Rajatsharma (Wed, 19 Feb 2020 09:27:25 GMT):
@muralisr I have been working on a system chaincode. Is there any way our system chaincode deployment follows the process of the user chaincode. I'm not able to leverage some functionalities like service discovery and private data. Can you help me out with this ?

Rajatsharma (Wed, 19 Feb 2020 09:27:25 GMT):
@muralisr I have been working on a system chaincode. Is there any way our system chaincode deployment follows the process of the user chaincode. I'm not able to leverage some functionalities like service discovery and private data. Can you help me out with this? I'm aware that system chaincodes don’t follow the same lifecycle as the user chaincode. It's just that I wanted to specifically leverage service discovery and private data in system chaincode too.

ajaykumar213 (Wed, 19 Feb 2020 11:35:44 GMT):
Is it possible to configure MSP and write own code for authentication?

Aniket.1 (Wed, 19 Feb 2020 13:08:26 GMT):
Can someone explain what it means? `msg Channel 'livwellchannel' has been migrated to the new lifecycle, LSCC is now read-only`

Aniket.1 (Wed, 19 Feb 2020 13:08:26 GMT):
Can someone explain what it means? `msg Channel 'livwellchannel' has been migrated to the new lifecycle, LSCC is now read-only`my

Aniket.1 (Wed, 19 Feb 2020 13:08:26 GMT):
Can someone explain what it means? `msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only`my

Aniket.1 (Wed, 19 Feb 2020 13:08:26 GMT):
Can someone explain what it means? `msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only`

Aniket.1 (Wed, 19 Feb 2020 13:08:35 GMT):
This comes while chaincode instantiation

BrettLogan (Wed, 19 Feb 2020 13:13:48 GMT):
lscc (Lifecycle System Chaincode) is the old, pre 2.0 lifecycle, you've presumably upgraded to the new 2.0 Lifecycle and it's Chaincode can now only be queried, not written

Aniket.1 (Wed, 19 Feb 2020 13:14:49 GMT):
I am setting up 2.0 network from scratch

Aniket.1 (Wed, 19 Feb 2020 13:16:38 GMT):
and instantiating chaincode giving this error

BrettLogan (Wed, 19 Feb 2020 13:19:30 GMT):
Do you have 2.0 capabilities enabled

BrettLogan (Wed, 19 Feb 2020 13:19:51 GMT):
It's an explicit setting

Aniket.1 (Wed, 19 Feb 2020 13:20:01 GMT):
yes

Aniket.1 (Wed, 19 Feb 2020 13:20:12 GMT):
should i remove this? https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L572

Aniket.1 (Wed, 19 Feb 2020 13:23:37 GMT):
What this error means actually?

PJHaga (Wed, 19 Feb 2020 13:28:09 GMT):
Question, till when is Hyperledger Fabric 1.4 supported? According to the documentation it has support 1 year from the release date (2019-01-10) which means that support stopped at 2020-01-10. This would also mean there was no supported version between 2020-01-10 and the release of fabric 2.0? So is 1.4 currently still supported or is 2.0 now the only supported version?

Aniket.1 (Wed, 19 Feb 2020 13:45:04 GMT):
``` Capabilities: # Channel capabilities apply to both the orderers and the peers and must be # supported by both. # Set the value of the capability to true to require it. Channel: &ChannelCapabilities # V2.0 for Channel is a catchall flag for behavior which has been # determined to be desired for all orderers and peers running at the v2.0.0 # level, but which would be incompatible with orderers and peers from # prior releases. # Prior to enabling V2.0 channel capabilities, ensure that all # orderers and peers on a channel are at v2.0.0 or later. V2_0: true # Orderer capabilities apply only to the orderers, and may be safely # used with prior release peers. # Set the value of the capability to true to require it. Orderer: &OrdererCapabilities # V1.1 for Orderer is a catchall flag for behavior which has been # determined to be desired for all orderers running at the v1.1.x # level, but which would be incompatible with orderers from prior releases. # Prior to enabling V2.0 orderer capabilities, ensure that all # orderers on a channel are at v2.0.0 or later. V2_0: true # Application capabilities apply only to the peer network, and may be safely # used with prior release orderers. # Set the value of the capability to true to require it. Application: &ApplicationCapabilities # V2.0 for Application enables the new non-backwards compatible # features and fixes of fabric v2.0. # Prior to enabling V2.0 orderer capabilities, ensure that all # orderers on a channel are at v2.0.0 or later. V2_0: true ```

Aniket.1 (Wed, 19 Feb 2020 13:45:58 GMT):
These are my capabilities. Do i need to add anything extra @BrettLogan

BrettLogan (Wed, 19 Feb 2020 13:46:47 GMT):
1.4 support has been extended until such a time that we announce a long-term support for 2.0lx. at which time will provide support for both 1.4 and 2.x for a period of time to allow for people to migrate

BrettLogan (Wed, 19 Feb 2020 13:46:47 GMT):
1.4 support has been extended until such a time that we announce a long-term support for 2.x. at which time we will provide support for both 1.4 and 2.x for a period of time to allow for people to migrate

BrettLogan (Wed, 19 Feb 2020 13:46:47 GMT):
1.4 support has been extended until such a time that we announce a long-term support for 2.x. at which time will provide support for both 1.4 and 2.x for a period of time to allow for people to migrate

BrettLogan (Wed, 19 Feb 2020 13:48:04 GMT):
Once I get to the office I'll ask for clarification from the lifecycle team. This isnt my area of expertise in the code

Aniket.1 (Wed, 19 Feb 2020 13:48:24 GMT):
ok, thanks

BrettLogan (Wed, 19 Feb 2020 13:56:20 GMT):
What command are you using for instantiating the chain code

Aniket.1 (Wed, 19 Feb 2020 13:57:38 GMT):
./peer chaincode instantiate -o orderer.example.org:7050 --tls --cafile ...... -C mychannel -n employee_chaincode -l node -v v1 -c '{"Args":[]}'

BrettLogan (Wed, 19 Feb 2020 13:58:49 GMT):
There's your problem, that is the LSCC pre-2.0 command.

BrettLogan (Wed, 19 Feb 2020 13:59:14 GMT):
2.0 uses `peer chaincode lifecycle instantiate`

BrettLogan (Wed, 19 Feb 2020 13:59:56 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/commands/peerlifecycle.html

Aniket.1 (Wed, 19 Feb 2020 13:59:58 GMT):
ohkay. I was going through https://hyperledger-fabric.readthedocs.io/en/release-2.0/commands/peerlifecycle.html#

Aniket.1 (Wed, 19 Feb 2020 14:00:14 GMT):
there is no command for instantiation

BrettLogan (Wed, 19 Feb 2020 14:00:24 GMT):
In 2.0 your organizations also have to approve the chain code

BrettLogan (Wed, 19 Feb 2020 14:00:24 GMT):
Into all your organizations also have to approve the chain code

PJHaga (Wed, 19 Feb 2020 14:01:42 GMT):
is there anywhere where I can find this information?

PJHaga (Wed, 19 Feb 2020 14:01:42 GMT):
@BrettLogan is there anywhere where I can find this information?

Aniket.1 (Wed, 19 Feb 2020 14:03:39 GMT):
ok

giuzero (Wed, 19 Feb 2020 15:16:40 GMT):
dirty certificates for oderder cluster at block creation time

giuzero (Wed, 19 Feb 2020 15:19:09 GMT):
Hi guys, I'm tryin to set up a Raft Cluster without using cryptogen. When I try to create an application channel I got: Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader Any hint about that?

giuzero (Wed, 19 Feb 2020 15:19:09 GMT):
Hi guys, I'm tryin to set up a Raft Cluster without using cryptogen. When I try to create an application channel I got: Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader Any hint about that? (HLF 1.4.4)

barney2k7 (Wed, 19 Feb 2020 15:28:15 GMT):
Do you have the proper TLS certificates of your orderer nodes in your configtx.yaml/channel config?

giuzero (Wed, 19 Feb 2020 15:32:42 GMT):
I think... - ORDERER_GENERAL_TLS_CERTIFICATE=/tmp/hyperledger/orderer/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_TLS_PRIVATEKEY=/tmp/hyperledger/orderer/tls-msp/keystore/key.pem - ORDERER_GENERAL_TLS_ROOTCAS=[/tmp/hyperledger/orderer/tls-msp/tlscacerts/tls-192-168-133-145-7052.pem] - ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/tmp/hyperledger/orderer/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/tmp/hyperledger/orderer/tls-msp/keystore/key.pem - ORDERER_GENERAL_CLUSTER_ROOTCAS=[/tmp/hyperledger/orderer/tls-msp/tlscacerts/tls-192-168-133-145-7052.pem] I tried to follow this guide, adding a raft: https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html

giuzero (Wed, 19 Feb 2020 15:32:42 GMT):
I think... for creating the block I used as conserters client and server TLS cert /orderer0/tls-msp/signcerts/cert.pem I tried to follow this guide, adding a raft: https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html So i added also in the docker-compose.yaml: - ORDERER_GENERAL_TLS_CERTIFICATE=/tmp/hyperledger/orderer/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_TLS_PRIVATEKEY=/tmp/hyperledger/orderer/tls-msp/keystore/key.pem - ORDERER_GENERAL_TLS_ROOTCAS=[/tmp/hyperledger/orderer/tls-msp/tlscacerts/tls-192-168-133-145-7052.pem] - ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/tmp/hyperledger/orderer/tls-msp/signcerts/cert.pem - ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/tmp/hyperledger/orderer/tls-msp/keystore/key.pem - ORDERER_GENERAL_CLUSTER_ROOTCAS=[/tmp/hyperledger/orderer/tls-msp/tlscacerts/tls-192-168-133-145-7052.pem]

barney2k7 (Wed, 19 Feb 2020 15:51:41 GMT):
Looks fine to me

barney2k7 (Wed, 19 Feb 2020 15:51:41 GMT):
Looks fine to me (assuming /orderer0/tls-msp/signcerts/cert.pem and /tmp/hyperledger/orderer/tls-msp/signcerts/cert.pem are actually the same cert)

barney2k7 (Wed, 19 Feb 2020 15:53:17 GMT):
Anything suspicious in the orderer node's log?

giuzero (Wed, 19 Feb 2020 15:56:09 GMT):
nope... just 2020-02-18 17:02:02.835 UTC [orderer.consensus.etcdraft] confirmSuspicion -> INFO 1470 Suspecting our own eviction from the channel for 26m53.694349506s channel=testchainid node=1 It seems that they don't see each other, but they know each others block height

barney2k7 (Wed, 19 Feb 2020 15:57:43 GMT):
no leader election for your channel?

giuzero (Wed, 19 Feb 2020 16:00:19 GMT):
Yes, no leader

giuzero (Wed, 19 Feb 2020 16:01:34 GMT):

giuzero - Wed Feb 19 2020 17:01:19 GMT+0100 (Central European Standard Time).txt

giuzero (Wed, 19 Feb 2020 16:02:33 GMT):
I'm trying to create an application channel when I got this error

barney2k7 (Wed, 19 Feb 2020 16:07:08 GMT):
That makes sense, creating an application channel requires a working system channel

giuzero (Wed, 19 Feb 2020 16:08:18 GMT):
I agree, but I don't have any error regarding the system channel testchainid

barney2k7 (Wed, 19 Feb 2020 16:09:31 GMT):
True, but the leader election is never successful

barney2k7 (Wed, 19 Feb 2020 16:09:59 GMT):
I'd suspect the vote message don't actually reach the other orderer nodes

giuzero (Wed, 19 Feb 2020 16:11:38 GMT):
Yes, it could be that, I got 4orderers on a host and one orderer on another host, neither the ones on the same host seem to reach the others

giuzero (Wed, 19 Feb 2020 16:12:55 GMT):
Yes, it could be that, I got 4orderers on a host and one orderer on another host, neither the ones on the same host seem to reach the others

Antimttr (Wed, 19 Feb 2020 16:13:22 GMT):
have you checked connectivity between the orderers?

Antimttr (Wed, 19 Feb 2020 16:13:53 GMT):
also were all the orderers addresses encoded in the channel genesis?

giuzero (Wed, 19 Feb 2020 16:18:51 GMT):
Yes.. is it enough doing this on genesis block profile in configtx.yaml? Raft: <<: *ChannelDefaults Capabilities: <<: *ChannelCapabilities Orderer: <<: *OrdererDefaults OrdererType: etcdraft EtcdRaft: Consenters: - Host: orderer0 Port: 7050 ClientTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer0/cert.pem ServerTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer0/cert.pem - Host: orderer1 Port: 8050 ClientTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer1/cert.pem ServerTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer1/cert.pem - Host: orderer2 Port: 9050 ClientTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer2/cert.pem ServerTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer2/cert.pem - Host: orderer3 Port: 10050 ClientTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer3/cert.pem ServerTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer3/cert.pem - Host: orderer-nome Port: 11050 ClientTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer-nome/cert.pem ServerTLSCert: ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATES/orderer-nome/cert.pem Addresses: - orderer0:7050 - orderer1:7050 - orderer2:7050 - orderer3:7050 - orderer-nome:7050

Antimttr (Wed, 19 Feb 2020 16:19:48 GMT):
are those addresses actually resolvable in the orderer containers?

giuzero (Wed, 19 Feb 2020 16:23:53 GMT):
yes, as swarm. In fact orderer0 resolves the swarm address of orderer1 2020-02-18 17:05:15.553 UTC [comm.grpc.server] 1 -> INFO 174d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=10.0.0.191:56482 grpc.peer_subject="CN=orderer1,OU=orderer+OU=acn,O=Hyperledger,ST=North Carolina,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=13.61594ms

giuzero (Wed, 19 Feb 2020 16:24:54 GMT):
test@VM1:~/TLS_NODE$ docker exec -it orderer1 bash root@c3f1c68748d9:/# cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 10.0.0.191 c3f1c68748d9 root@c3f1c68748d9:/#

Antimttr (Wed, 19 Feb 2020 16:26:28 GMT):
what about the ports, any issues opening up a socket? you can test with telnet usually if you use a cli container

giuzero (Wed, 19 Feb 2020 16:32:22 GMT):
can't use telnet in cli :(

Antimttr (Wed, 19 Feb 2020 16:32:47 GMT):
ahh, hmmm yeah you might have to modify the cli container to get that bin

Antimttr (Wed, 19 Feb 2020 16:33:04 GMT):
there needs to be an easier way to check connectivity of nodes

Antimttr (Wed, 19 Feb 2020 16:33:31 GMT):
i modified the cli container config already so it includes python so i can atleast write scripts to test connectivity if needed

Antimttr (Wed, 19 Feb 2020 16:37:56 GMT):
``` # Copyright Greg Haskins All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # FROM hyperledger/fabric-baseimage:amd64-0.4.18 as builder WORKDIR /opt/gopath RUN mkdir src && mkdir pkg && mkdir bin ADD . src/github.com/hyperledger/fabric WORKDIR /opt/gopath/src/github.com/hyperledger/fabric ENV EXECUTABLES go git curl RUN make configtxgen configtxlator cryptogen peer discover idemixgen RUN apt-get update && apt-get install -y --no-install-recommends \ python3.5 \ python3-pip \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* FROM hyperledger/fabric-baseimage:amd64-0.4.18 ENV FABRIC_CFG_PATH /etc/hyperledger/fabric RUN apt-get update && apt-get install -y jq VOLUME /etc/hyperledger/fabric COPY --from=builder /opt/gopath/src/github.com/hyperledger/fabric/.build/bin /usr/local/bin COPY --from=builder /opt/gopath/src/github.com/hyperledger/fabric/sampleconfig $FABRIC_CFG_PATH LABEL org.hyperledger.fabric.version=1.4.5 \ org.hyperledger.fabric.base.version=0.4.18 ```

Antimttr (Wed, 19 Feb 2020 16:38:04 GMT):
incase you wanted to build cli with python

Antimttr (Wed, 19 Feb 2020 16:38:09 GMT):
this is a Dockerfile to do it

Antimttr (Wed, 19 Feb 2020 16:38:12 GMT):
for 1.44

Antimttr (Wed, 19 Feb 2020 16:38:27 GMT):
change paths to reflect your gopath accordingly

Antimttr (Wed, 19 Feb 2020 16:38:47 GMT):
i think that should work out of the box though

giuzero (Wed, 19 Feb 2020 16:45:29 GMT):
I will, but I have to check connectivity between orderers

Antimttr (Wed, 19 Feb 2020 16:46:39 GMT):
if you're familiar with python you can write a small script to attempt to open a socket of the orderer container, if it times out then that would indicate there's some sort of firewall between the containers

KaseyAlusi (Wed, 19 Feb 2020 18:06:04 GMT):
Is there a risk in using the Fabric bootstrap user to create a channel? For example if that bootstrap user needs to be re-enrolled (key compromise or something) will that cause issues?

Antimttr (Wed, 19 Feb 2020 19:14:38 GMT):
How do you define a TLSCA in a network-config so that its differentiated from an org's regular CA?

JeffGutierrez (Wed, 19 Feb 2020 22:12:59 GMT):
Hi @jona-sc thanks a lot I will take a look on this and this is already in the latest version of fabric

jona-sc (Thu, 20 Feb 2020 01:17:08 GMT):
That's right. Feel free to reach out if you want to talk more about it.

sivasakthivel (Thu, 20 Feb 2020 08:02:35 GMT):
Has joined the channel.

sivasakthivel (Thu, 20 Feb 2020 08:02:36 GMT):
Hello, Can Hyperledger Fabric be deployed on Podman? Preferably HLF v2.0. Please let me know references / steps link if possible. Appreciate your quick reply. Thanks in Advance

smtter (Thu, 20 Feb 2020 08:06:13 GMT):
Hi all, i got my network up and running! When I create a channel (peer channel create), it prints this to stdout. But it does create a .block file and I can add peers to this block. All help is appreciated (code available on request)

smtter (Thu, 20 Feb 2020 08:06:26 GMT):

channel error

smtter (Thu, 20 Feb 2020 08:06:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EozGMwRyKFWzm6huJ)
channel err

smtter (Thu, 20 Feb 2020 08:08:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=uwwSJiyn49AJEh4xE)
orderer log

smtter (Thu, 20 Feb 2020 08:08:35 GMT):
Log response from orderer:

giuzero (Thu, 20 Feb 2020 08:35:34 GMT):
I got connectivity but stll no raft leader

smtter (Thu, 20 Feb 2020 08:40:49 GMT):
Hi all, I got my network up and running. When I create a channel (peer channel create), I receive this error (from peer side and orderer side). Any help with this is much appreciated. Thank you

smtter (Thu, 20 Feb 2020 08:41:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tmcwbkP2xBDRi6QHG)
peerError

smtter (Thu, 20 Feb 2020 08:42:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HHEbXvnSpXMeBT2GM)
orderer_log

Ishee (Thu, 20 Feb 2020 08:47:24 GMT):
Hi @smtter, can you add your config file here!?

smtter (Thu, 20 Feb 2020 08:47:50 GMT):
confixtx?

ascatox (Thu, 20 Feb 2020 08:49:34 GMT):
Hi All! I'm trying to setup the 2.0 version of HLF, but I'm encountering this error installing the Chaincode: Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ascatox (Thu, 20 Feb 2020 08:49:49 GMT):
Someone can help me!!! Thanks in advance!

Ishee (Thu, 20 Feb 2020 08:50:45 GMT):
Yes which are you using in channel and peer creation.

smtter (Thu, 20 Feb 2020 08:59:41 GMT):
``` ```

smtter (Thu, 20 Feb 2020 09:00:31 GMT):

configtxyaml

smtter (Thu, 20 Feb 2020 09:00:52 GMT):
@Ishee Thanks in advance

Ishee (Thu, 20 Feb 2020 09:05:44 GMT):
Have you check your docker ps logs? all require container running perfectly or not!?

smtter (Thu, 20 Feb 2020 09:06:25 GMT):
Yes, all containers are up and have never crashed

smtter (Thu, 20 Feb 2020 09:06:53 GMT):
The second image is from docker log for orderer

ChrisSargent (Thu, 20 Feb 2020 09:13:04 GMT):
Hello Again! In many of the chaincode examples, a single `Invoke` function exists which then uses string based switch / case statement is used to determine which function in the chaincode to run, e.g. https://github.com/hyperledger/fabric-samples/blob/master/chaincode/sacc/sacc.go. Then, subsequent client calls to the chaincode passes the required function name as a parameter. This feels a but icky. But, in the Fabcar example, https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/go/fabcar.go#L109, there is no Invoke switch statement but there are explicit functions like `QueryAllCars`. Which in turn, are then called by a client directly like: https://github.com/hyperledger/fabric-samples/blob/master/fabcar/javascript/query.js#L44 Am I missing something? Is there something being abstracted in the Fabcar example? Otherwise it seems a much cleaner way of doing it and not having the switch / case statement.

barney2k7 (Thu, 20 Feb 2020 09:16:07 GMT):
Looks like difference is whether or not github.com/hyperledger/fabric-contract-api-go is used

ChrisSargent (Thu, 20 Feb 2020 09:18:13 GMT):
ah yes! You're right, last commit https://github.com/hyperledger/fabric-samples/commit/429f087c5a2aa3f617ff4adc54349417d3554097

Ishee (Thu, 20 Feb 2020 09:20:58 GMT):
I thought error in order container Your config file look like good i had seen and there is no any error found!

Ishee (Thu, 20 Feb 2020 09:20:58 GMT):
I thought error in orderer container Your config file look like good i had seen and there is no any error found!

Ishee (Thu, 20 Feb 2020 09:20:58 GMT):
I thought error in orderer container. Your config file look like good i had seen and there is no any error found!

Ishee (Thu, 20 Feb 2020 09:20:58 GMT):
I thought error in orderer container. Your config file look like good i had seen and there were no any error found!

ChrisSargent (Thu, 20 Feb 2020 09:21:09 GMT):
and then actually makes a bit more sense (to me anyway) when looking at the JS chaincode - https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/javascript/lib/fabcar.js

smtter (Thu, 20 Feb 2020 09:22:38 GMT):
Should I just ignore that error? I can still use the block but some "delivery request" isn't being consented

Ishee (Thu, 20 Feb 2020 09:31:58 GMT):
In short, do you need multi-channel network ?

awjh (Thu, 20 Feb 2020 09:46:34 GMT):
Hi, fabric has been over the course of the past year introducing a new higher level programming model built on top of the lower level existing one. This has existed since v1.4 in both Node and Java and was introduced in Go for Fabric 2.0. The higher level model is designed to reduce the amount of boiler plate required by implementing the lower level for you. In the lower level you are required to have two functions in your chaincode Init and Invoke. In these you then perform routing and type conversion as necessary to call the required functions of the chaincode based on the string arguments passed to the transaction. The new higher level model implements invoke and init functions for you and these handle the routing and type conversion as required. The idea being that both are supported with it being easier to write in the higher level but for certain usecases it may be best to drop down a level for more control

ChrisSargent (Thu, 20 Feb 2020 09:56:29 GMT):
and is the higher level api stable?

awjh (Thu, 20 Feb 2020 09:56:45 GMT):
Yes, release a v1.0.0 last week

awjh (Thu, 20 Feb 2020 09:56:45 GMT):
Yes, released a v1.0.0 last week

ChrisSargent (Thu, 20 Feb 2020 09:57:07 GMT):
Nice.

ChrisSargent (Thu, 20 Feb 2020 09:57:12 GMT):
Thanks for that!

adianimesh (Thu, 20 Feb 2020 12:54:31 GMT):
I am trying PKCS11 integratioon with HSM. fabric ca client enroll is failing with error `Error: Failed to initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PKCS11 [Failed initializing PKCS11 library Could not find default `PKCS11` BCCSP`

adianimesh (Thu, 20 Feb 2020 12:56:45 GMT):
The bccsp section has been configured as follows : `bccsp: default: PKCS11 sw: hash: SHA2 security: 256 filekeystore: # The directory used for the software file-based keystore keystore: msp/keystore pkcs11: library: /etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so # Token Label label: obp-test # User PIN pin: PasswordPO1 hash: SHA2 security: 384 filekeystore: # The directory used for the software file-based keystore keystore: `

adianimesh (Thu, 20 Feb 2020 12:57:27 GMT):
fabric-ca-client-config.yaml bccsp

adianimesh (Thu, 20 Feb 2020 12:57:32 GMT):
`bccsp: default: PKCS11 sw: hash: SHA2 security: 256 filekeystore: # The directory used for the software file-based keystore keystore: msp/keystore pkcs11: library: /etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so # Token Label label: obp-test # User PIN pin: PasswordPO1 hash: SHA2 security: 384 filekeystore: # The directory used for the software file-based keystore keystore: `

adianimesh (Thu, 20 Feb 2020 12:57:49 GMT):
``` bccsp: default: PKCS11 sw: hash: SHA2 security: 256 filekeystore: # The directory used for the software file-based keystore keystore: msp/keystore pkcs11: library: /etc/hyperledger/fabric/dpod/obp-test/libs/64/libCryptoki2.so # Token Label label: obp-test # User PIN pin: PasswordPO1 hash: SHA2 security: 384 filekeystore: # The directory used for the software file-based keystore keystore: ```

adianimesh (Thu, 20 Feb 2020 12:59:12 GMT):
I do have mounted the hsm client directories onto ca docker and built fabric-ca-client with GO_TAGS=pkcs11

adianimesh (Thu, 20 Feb 2020 12:59:25 GMT):
what could be the missing piece ?

gentios (Thu, 20 Feb 2020 13:00:08 GMT):
Hi, I cannot instantiate chaincode in peer I get the following error: ```Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 254 command terminated with exit code 1```

gentios (Thu, 20 Feb 2020 13:00:25 GMT):
The command I am using is the following ```kubectl exec -n beta $PEER_POD -- bash -c "CORE_PEER_MSPCONFIGPATH=\$ADMIN_MSP_PATH peer chaincode instantiate -n mycc -o ord1-hlf-ord.alpha.svc.cluster.local:7050 -C foochannel -l node -v 1.0 -c '{\"Args\":[\"init\",\"a\",\"100\"]}' -P \"OR ('BetaMSP.member')\""```

Aniket.1 (Thu, 20 Feb 2020 13:02:20 GMT):
Hello everyone, I am getting this error while trying to approve chaincode for organization `2020-02-20 18:26:09.507 IST [vscc] Validate -> ERRO 087 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_Org1MSP chaincode _lifecycle in tx 8:0 failed: signature set did not satisfy policy`

Aniket.1 (Thu, 20 Feb 2020 13:02:20 GMT):
Hello everyone, I am getting this error while trying to approve chaincode for organization `2020-02-20 18:26:09.507 IST [vscc] Validate -> ERRO 087 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_Org1MSP chaincode _lifecycle in tx 8:0 failed: signature set did not satisfy policy` . can you help @BrettLogan

Aniket.1 (Thu, 20 Feb 2020 13:02:51 GMT):
It seems it is using private data collection internally.

gentios (Thu, 20 Feb 2020 13:31:57 GMT):
Fixed this `fabric-shim` was too old

adamalexandru4 (Thu, 20 Feb 2020 13:45:12 GMT):
Has joined the channel.

adamalexandru4 (Thu, 20 Feb 2020 13:45:17 GMT):
Hello, I'm new to blockchain technology and I'm trying to develop a voting system using Hyperledger (after a lot of pros and cons between it and Ethereum). Actually, I looked over and I found Besu and Fabric projects. My request would be to use the PoA consensus algorithm which looks available in Besu, but I don't want to use actually an Ethereum network due to the gas cost and the wallet prerequisites. So, is there any option in order to use another consensus algorithm in Hyperledger Fabric than the current one (ordering) ?

smtter (Thu, 20 Feb 2020 14:43:22 GMT):
Yes I do

smtter (Thu, 20 Feb 2020 14:50:57 GMT):
Yes, it is a must in this network. @Ishee

Antimttr (Thu, 20 Feb 2020 15:41:09 GMT):
@adamalexandru4 ordering can currently use raft or kafka

AngeloMassimino (Thu, 20 Feb 2020 16:24:13 GMT):
Has joined the channel.

AngeloMassimino (Thu, 20 Feb 2020 16:24:16 GMT):
Same problem here... NO RAFT LEADER :-(

garyclark (Thu, 20 Feb 2020 18:02:35 GMT):
I have two peers running on separate machines. I can join one of the peers and create a channel. However when attempting to join the channel remotely I cannot. Error: error getting endorser client for channel: endorser client failed to connect to peer0-RemoteMSP:7051: failed to create new connection: context deadline exceeded. I can telnet to this port. Just to confirm. What are the list of environment variables you need to set to authorize the join to occur. Note nothing is blocked in iptables. Using 1.4.4 version.

garyclark (Thu, 20 Feb 2020 18:04:16 GMT):
Ordering can also use Solo, but I understand not supported anymore.

Antimttr (Thu, 20 Feb 2020 18:12:59 GMT):
can you telnet to the port using that hostname peer0-RemoteMSP?

Antimttr (Thu, 20 Feb 2020 18:13:46 GMT):
solo is just for testing afaik,

garyclark (Thu, 20 Feb 2020 18:17:44 GMT):
Yes I can telnet. Yes testing, not production. However I am treating this as a stepping stone without TLS.

garyclark (Thu, 20 Feb 2020 18:18:34 GMT):
Raft brings its own bag of monkeys and slew of questions.

garyclark (Thu, 20 Feb 2020 18:19:47 GMT):
I need to document this solo setup once done. Im totally new to this and I have humbled many times so far.

garyclark (Thu, 20 Feb 2020 18:32:36 GMT):
I fixed my problem.

garyclark (Thu, 20 Feb 2020 18:32:50 GMT):
I got both peers to join now.

Antimttr (Thu, 20 Feb 2020 18:45:55 GMT):
what was the issue?

garyclark (Thu, 20 Feb 2020 18:48:23 GMT):
I had a label in my script that for some reason was not remoteMSP.

garyclark (Thu, 20 Feb 2020 18:49:16 GMT):
More fun and games.

garyclark (Thu, 20 Feb 2020 19:02:45 GMT):
Is "peer lifecycle" in 2.0 and not 1.4.4? Just trying to pack chain code?

Antimttr (Thu, 20 Feb 2020 19:50:16 GMT):
damn you're right gary, they just deprecated solo ordering with 1.4.5, too bad

garyclark (Thu, 20 Feb 2020 20:23:36 GMT):
Solo should be a stepping stone for people to jump to Raft/Kafka. Just too many points of failure especially if your new.

garyclark (Thu, 20 Feb 2020 20:29:30 GMT):
I will be sticking with 1.4.4 for a while.

Antimttr (Thu, 20 Feb 2020 20:55:44 GMT):
well no more stepping stone i guess

garyclark (Thu, 20 Feb 2020 21:16:06 GMT):
Yes just a big dive.

Antimttr (Thu, 20 Feb 2020 21:26:44 GMT):
im sticking with 1.4.x until they do an LTS 2.x release anyways, but im definitely going to raft in production, just not quite ready yet

garyclark (Thu, 20 Feb 2020 21:27:29 GMT):
I will be moving to raft next week. Right now just getting my fee wet with Solo.

garyclark (Thu, 20 Feb 2020 21:27:29 GMT):
I will be moving to raft next week. Right now just getting my feet wet with Solo.

garyclark (Thu, 20 Feb 2020 21:29:51 GMT):
I am trying to add fabcar example node.js code right now on my network two machines, two peers. Its instantiated just dont know what do next right now.

Antimttr (Thu, 20 Feb 2020 21:31:50 GMT):
well if you have a channel up and peers try and invoke a transaction

garyclark (Thu, 20 Feb 2020 21:34:07 GMT):
Sounds good.

adamalexandru4 (Thu, 20 Feb 2020 22:05:49 GMT):
In order to be more specific about an earlier question, let me ask you the following:

adamalexandru4 (Thu, 20 Feb 2020 22:06:35 GMT):
In order to be more specific about an earlier question, let me ask you the following: ``` For a voting system, why should I use Fabric not other solutions like (Besu or Ethereum network basic) ```

tongli (Thu, 20 Feb 2020 22:12:55 GMT):
I would say taking advantages of fabric policy so that each vote has to be validated by specific parties not any party.

garyclark (Thu, 20 Feb 2020 22:37:30 GMT):
what are the argument required to invoke? I am using peer chaincode invoke \ -o 192.168.1.110:7050 \ -C $CHANNEL_NAME \ -n fabcar \ -c '{"function":"initLedger","Args":[]}' \ --waitForEvent \ --peerAddresses 192.168.1.110:7051 \ --peerAddresses 192.168.1.71:7051

garyclark (Thu, 20 Feb 2020 22:37:50 GMT):
Its complaining.

sivasakthivel (Fri, 21 Feb 2020 07:15:43 GMT):
Hello, Can Hyperledger Fabric be deployed on Podman? Preferably HLF v2.0. Please let me know references / steps link if possible. Appreciate your quick reply. Thanks in Advance

giuzero (Fri, 21 Feb 2020 11:35:31 GMT):
check port forwrding of your consenter, my error was that orderer did not connect to each other because I put out port in consenter definition instead of the internal ones. CHEERS!!!

Manish209 (Fri, 21 Feb 2020 12:12:14 GMT):
Has joined the channel.

Manish209 (Fri, 21 Feb 2020 12:12:15 GMT):
Please guide me .. I am working with fabric 2.0 & I am adding new organization Org4 with new channel my3channel but getting problem... [2020-02-21 11:36:52.808] [DEBUG] Create-Channel - response ::{"status":"BAD_REQUEST","info":"Attempted to include a member which is not in the consortium"} [2020-02-21 11:36:52.808] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'my3channel' !!!!!!!!! [2020-02-21 11:36:52.809] [ERROR] Create-Channel - Error: Failed to create the channel 'my3channel'

Manish209 (Fri, 21 Feb 2020 12:12:15 GMT):
Please guide me ..Using node SDK, I am working with fabric 2.0 & I am adding new organization Org4 with new channel my3channel but getting problem... [2020-02-21 11:36:52.808] [DEBUG] Create-Channel - response ::{"status":"BAD_REQUEST","info":"Attempted to include a member which is not in the consortium"} [2020-02-21 11:36:52.808] [ERROR] Create-Channel - !!!!!!!!! Failed to create the channel 'my3channel' !!!!!!!!! [2020-02-21 11:36:52.809] [ERROR] Create-Channel - Error: Failed to create the channel 'my3channel'

garyclark (Fri, 21 Feb 2020 17:50:03 GMT):
Trying to track an issue. I see the orderer kicking out a 'warning' "policy requires 1 of the Readers sub-policies to be satisfied". However I the peer was joined the channel successfully.

garyclark (Fri, 21 Feb 2020 17:50:03 GMT):
Trying to track an issue. I see the orderer kicking out a 'warning' "policy requires 1 of the Readers sub-policies to be satisfied". However the peer was joined the channel successfully.

garyclark (Fri, 21 Feb 2020 17:50:03 GMT):
Trying to track an issue. I see the orderer kicking out a 'warning' "policy requires 1 of the Readers sub-policies to be satisfied". However the peer was joined channel successfully.

garyclark (Fri, 21 Feb 2020 19:03:48 GMT):
Had to fix my policies.

pjediny (Fri, 21 Feb 2020 19:50:06 GMT):
Can anyone help fixing go modules problem with proxy.golang.org having bad version of fabric v1.4.4?

BrettLogan (Fri, 21 Feb 2020 21:02:40 GMT):
Can you share what you're trying to do and the actual error you are seeing

garyclark (Fri, 21 Feb 2020 21:10:21 GMT):
[{"Key":"CAR0","Record":{"color":"blue","docType":"car","make":"Toyota","model":"Prius","owner":"Tomoko"}},{"Key":"CAR1","Record":{"color":"red","docType":"car","make":"Ford","model":"Mustang","owner":"Brad"}},{"Key":"CAR2","Record":{"color":"green","docType":"car","make":"Hyundai","model":"Tucson","owner":"Jin Soo"}},{"Key":"CAR3","Record":{"color":"yellow","docType":"car","make":"Volkswagen","model":"Passat","owner":"Max"}},{"Key":"CAR4","Record":{"color":"black","docType":"car","make":"Tesla","model":"S","owner":"Adriana"}},{"Key":"CAR5","Record":{"color":"purple","docType":"car","make":"Peugeot","model":"205","owner":"Michel"}},{"Key":"CAR6","Record":{"color":"white","docType":"car","make":"Chery","model":"S22L","owner":"Aarav"}},{"Key":"CAR7","Record":{"color":"violet","docType":"car","make":"Fiat","model":"Punto","owner":"Pari"}},{"Key":"CAR8","Record":{"color":"indigo","docType":"car","make":"Tata","model":"Nano","owner":"Valeria"}},{"Key":"CAR9","Record":{"color":"brown","docType":"car","make":"Holden","model":"Barina","owner":"Shotaro"}}] root@128768ab61f1:/opt/gopath/src/github.com/hyperledger/fabric/peer#

garyclark (Fri, 21 Feb 2020 21:10:30 GMT):
About Time.

garyclark (Fri, 21 Feb 2020 21:10:30 GMT):
I used Solo.

garyclark (Fri, 21 Feb 2020 21:10:32 GMT):
FFS.

garyclark (Fri, 21 Feb 2020 21:12:02 GMT):
I installed Fabcar on my own network. Two separate machines one peer per machine.

garyclark (Fri, 21 Feb 2020 21:12:02 GMT):
I installed Fabcar on my own network. Two separate machines one peer per machine. One channel.

garyclark (Fri, 21 Feb 2020 21:12:55 GMT):
I started learning this 2 weeks ago. Oh my lord.

garyclark (Fri, 21 Feb 2020 21:12:55 GMT):
Oh my lord.

garyclark (Fri, 21 Feb 2020 21:21:40 GMT):
Have a cup of tea now.

garyclark (Fri, 21 Feb 2020 21:21:40 GMT):
Have a cup of tea now. Long way to go but a good start.

garyclark (Fri, 21 Feb 2020 21:21:40 GMT):
Have a cup of tea now. Long way to go but a good start. One channel.

garyclark (Fri, 21 Feb 2020 21:21:40 GMT):
Have a cup of tea now. Long way to go but a good start.

neilmadhava (Sat, 22 Feb 2020 03:55:19 GMT):
Has joined the channel.

salma_shalaby (Sat, 22 Feb 2020 11:37:56 GMT):
Hello All

salma_shalaby (Sat, 22 Feb 2020 11:39:11 GMT):

Clipboard - February 22, 2020 2:38 PM

salma_shalaby (Sat, 22 Feb 2020 11:39:18 GMT):
I am trying to run a network using raft but the orderer container always exits right after starting

salma_shalaby (Sat, 22 Feb 2020 11:39:26 GMT):
I am using release 1.4

salma_shalaby (Sat, 22 Feb 2020 11:40:24 GMT):
but the other ordrers are still running

salma_shalaby (Sat, 22 Feb 2020 11:40:31 GMT):

Clipboard - February 22, 2020 2:40 PM

neel229 (Sat, 22 Feb 2020 13:25:03 GMT):
Has joined the channel.

neel229 (Sat, 22 Feb 2020 13:25:04 GMT):
what is the technical knowledge required to start building dapps with fabric.

BrettLogan (Sat, 22 Feb 2020 16:31:59 GMT):
https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

BrettLogan (Sat, 22 Feb 2020 16:32:20 GMT):
You'll be developing in minutes, no need to stand up your own network, it'll do it for you

ArtemSkliarov (Sat, 22 Feb 2020 18:18:47 GMT):
Hello! Guys, we started load testing for our application, and looking for a way to reset blockchain to genesis block before each new test to get proper statistics. Peer node has an option to reset blockchain - peer node reset. But! In the docs it says that peer has to be offline, as I understand stopped. But there is no command such peer node stop (only start). Our infrastructure based on CLI instance which controls all peers in the system. Can you advice how we can reset blockchain to genesis block from CLI? also, we cna't just stop peer, because it started in docker, and container will be stopped if we simply stop peer (like send sigterm to process). So, Im confused, how to reset blockchain if peer started in docker... in trough CLI. We can redeploy whole blockchain every time but it takes really long time to start, setup network, install chaincode and so on, so it will be a good thing to use reset, but we cannot see how... Many thanks for advices and solutions!

BrettLogan (Sat, 22 Feb 2020 18:58:28 GMT):
Remember, transactions are sent to the Orderer, which disseminates them to the peer. So stopping the docker containers and sending the reset transaction will reset the state with the Orderer and then when you restart the peers they will validate their state against the Orderer and rollback

ArtemSkliarov (Sat, 22 Feb 2020 21:01:46 GMT):
but how they can rollback if they don't have source of blockchain?

ArtemSkliarov (Sat, 22 Feb 2020 21:02:30 GMT):
anyway, so we can't downgrade blockchain to genesis?

Korey 5 (Sun, 23 Feb 2020 08:35:50 GMT):
Has joined the channel.

Korey 5 (Sun, 23 Feb 2020 08:37:03 GMT):
Hello guys! I'm new to Fabric and trying BYFN. I have done every step in the tutorial but face the following error.

Korey 5 (Sun, 23 Feb 2020 08:37:14 GMT):

44.png

Korey 5 (Sun, 23 Feb 2020 08:38:42 GMT):
Failed to calculate dependencies: incompete package "shim". Does anybody how to solve it?

Korey 5 (Sun, 23 Feb 2020 08:39:37 GMT):
Similar with the problem "https://jira.hyperledger.org/browse/FAB-15780?attachmentSortBy=fileName", but didn't solve by its way.

BrettLogan (Sun, 23 Feb 2020 16:22:51 GMT):
How did you download fabric samples. You have an old version of the chain code We moved the shim do its own repository. so the chain code can't resolve it because it's not in the core fabric project anymore

BrettLogan (Sun, 23 Feb 2020 16:23:26 GMT):
What is the output of `git branch` as well

garyclark (Sun, 23 Feb 2020 19:28:19 GMT):
Just spent teh last few hours running into a problem of instantiation->invoke->query of a blockchain. I had to add delays between the calls.

garyclark (Sun, 23 Feb 2020 19:28:19 GMT):
Just spent the last few hours running into a problem of instantiation->invoke->query of a blockchain. I had to add delays between the calls.

garyclark (Sun, 23 Feb 2020 19:28:19 GMT):
Just spent the last few hours running into a problem of instantiation->invoke->query of chaincode. I had to add delays between the calls.

BrettLogan (Sun, 23 Feb 2020 20:03:49 GMT):
Were you updating and querying the same key?

garyclark (Sun, 23 Feb 2020 20:44:07 GMT):
The same channel yes I suppose I was.

garyclark (Sun, 23 Feb 2020 20:44:45 GMT):
Not sure how long I was suppose to wait.

garyclark (Sun, 23 Feb 2020 20:45:12 GMT):
Caused a wee bit of drama and confusion.

BrettLogan (Sun, 23 Feb 2020 20:57:39 GMT):
About to catch a flight but if you remind me I'll explain to you how all of this works. These are architectural decisions you have to make when designing the network, as these are timeouts you set or were provided as part of the default core.yamil

garyclark (Sun, 23 Feb 2020 20:58:03 GMT):
Cool.

bigworld12 (Sun, 23 Feb 2020 20:58:19 GMT):
hey can anyone answer that ? https://stackoverflow.com/questions/60359582/how-to-prevent-access-to-the-state-database-outside-the-chaincode-process

garyclark (Sun, 23 Feb 2020 20:59:03 GMT):
It was the errors that given that were throwing me through a loop.

garyclark (Sun, 23 Feb 2020 20:59:03 GMT):
It was the errors that resulted that were throwing me through a loop.

garyclark (Sun, 23 Feb 2020 21:00:10 GMT):
I will have a look at the core.yaml. Lots to learn so far.

aditya520 (Mon, 24 Feb 2020 06:30:03 GMT):
getting error while approving the chaincode from organization Error: timed out waiting for txid on all peers

aditya520 (Mon, 24 Feb 2020 06:30:03 GMT):
getting an error while approving the chaincode from the organization Error: timed out waiting for txid on all peers

aditya520 (Mon, 24 Feb 2020 06:32:15 GMT):

Clipboard - February 24, 2020 12:01 PM

ShrutiHK (Mon, 24 Feb 2020 06:49:22 GMT):
Has joined the channel.

ShrutiHK (Mon, 24 Feb 2020 06:49:28 GMT):
Hi, We are working with java-sdk but while invoking chaincodes, sometimes we get the error - GatewayException: 'Failed to discover peer endpoint '. What can be done to avoid this error? Any pointers on this are appreciated. Thanks in advance.

Manish209 (Mon, 24 Feb 2020 07:03:17 GMT):
Any node SDK sample is available? for install chaincode using fabric 2.0 ?

shyam7 (Mon, 24 Feb 2020 08:21:53 GMT):
Has joined the channel.

fabricDev (Mon, 24 Feb 2020 10:28:12 GMT):
Hi, 2020-02-24 10:23:17.499 UTC [orderer/commmon/multichannel] newLedgerResources -> PANI 004 Error creating channelconfig bundle: initializing channelconfig failed: could not create channel Consor tiums sub-group config: setting up the MSP manager failed: admin 1 is invalid: could not obtain certification chain: An X509 certificate with Basic Constraint: Certificate Authority equals true cannot be used as an identity

fabricDev (Mon, 24 Feb 2020 10:28:22 GMT):
Have anyone faced the above error?

mehulshahnj (Mon, 24 Feb 2020 10:51:35 GMT):
Has joined the channel.

mehulshahnj (Mon, 24 Feb 2020 10:51:36 GMT):
fabric-ca-client was updated on Friday to 1.4.6, getting error messages as a consequence on programs that were working before

mehulshahnj (Mon, 24 Feb 2020 10:52:14 GMT):

Screenshot from 2020-02-24 05-51-04.png

mehulshahnj (Mon, 24 Feb 2020 10:53:52 GMT):
using "fabric-client": "^1.4.4", and "fabric-network": "^1.4.4" in package.json for node sdk

mehulshahnj (Mon, 24 Feb 2020 10:54:31 GMT):
same problem when using "fabric-shim": "~1.4.3" for fabric

mehulshahnj (Mon, 24 Feb 2020 10:56:16 GMT):
so basically any programs for enrolling and registering users with the CA are erroring out

davidkel (Mon, 24 Feb 2020 11:12:29 GMT):
@mehulshahnj There is an issue here about it here https://jira.hyperledger.org/browse/FABN-1500

mehulshahnj (Mon, 24 Feb 2020 11:48:33 GMT):
@davidkel thanks so much for the feedback.

dexhunter (Mon, 24 Feb 2020 12:42:36 GMT):
Has joined the channel.

dexhunter (Mon, 24 Feb 2020 12:43:06 GMT):
Hi, I wonder if there are "resume" operation in fabric? For example, if my network got down due to some problems, can I resume my network from a "checkpoint" or something (get the information about peers/orderes/channels)? Can someone point me to the right direction? Thank you in advance!

pjediny (Mon, 24 Feb 2020 13:47:08 GMT):
https://github.com/gomods/athens/issues/1470

tegie (Mon, 24 Feb 2020 13:47:57 GMT):
Hey, I have question is it possible to create and sign transaction on microcontroller in plain C? Do you maybe have structure of such transaction? Thank you

garyclark (Mon, 24 Feb 2020 13:49:22 GMT):
java, javasript, node.js, go

pjediny (Mon, 24 Feb 2020 13:51:48 GMT):
this is the description, the summary is the version 1.4.4 is different on github and cached version on proxy.golang.org and the cached proxy.golang.org version is the wrong one (you can download the data and make a diff), it looks like the 1.4.4 was re-released and the bad release stayed cached...

tegie (Mon, 24 Feb 2020 13:54:15 GMT):
I know there is no library for that, but I should be able to send gRCP request with transaction data created by our own solution?

garyclark (Mon, 24 Feb 2020 13:58:12 GMT):
My advise is to minimize the rabbit holes you go down. I know EOS block chain uses C++. If you still want to build an app that uses fabric. You could you use the curl lib and interface to fabric. Just ideas....

garyclark (Mon, 24 Feb 2020 13:59:48 GMT):
I am using fabric because it will be ideal for what I need.

tegie (Mon, 24 Feb 2020 14:11:19 GMT):
Ok, thank you

garyclark (Mon, 24 Feb 2020 14:11:45 GMT):
cool

garyclark (Mon, 24 Feb 2020 15:06:43 GMT):
Using 1.4.4 Fabric. I have two peers running. One peer per machine on the network. Each machine is an organization. I used the Fabcar chaincode as a starter. I can query, invoke and update the ledger from both peers. I would like now to have private data in a collection. I can see a marbles example written 'go'. However I want to do this in node.js. Any direction on this would be appreciated.

garyclark (Mon, 24 Feb 2020 15:06:43 GMT):
Using 1.4.4 Fabric. I have two peers running. One peer per machine on the network. Each machine is an organization. I used the Fabcar chaincode as a starter. I can query, invoke and update the ledger from both peers. I would like now to have private data in a collection. I can see a marbles example written in 'go'. However I want to do this in node.js. Any direction on this would be appreciated.

garyclark (Mon, 24 Feb 2020 15:06:43 GMT):
Using 1.4.4 Fabric. I have two peers running. One peer per machine on the network. Each machine is an organization. I used the Fabcar chaincode as a starter. I can query, invoke and update the ledger from both peers. I would like now to have private data in a collection. I can see a marbles example written in 'go'. However I want to do this in node.js. Any direction on this would be appreciated.

ZaKin 1 (Mon, 24 Feb 2020 15:17:49 GMT):
Has joined the channel.

garyclark (Mon, 24 Feb 2020 15:46:15 GMT):
From what I can gather. I need to create a collections file. This file contains parameters important such as lifetime of private data and policies. During instantiation of the channel you specify the collections file path. You should be able to use putPrivateData, getPrivateData commands on the peer.

CorentinPacaud (Mon, 24 Feb 2020 15:48:49 GMT):
Hey, did you find an answer to your issue ?

CorentinPacaud (Mon, 24 Feb 2020 17:25:54 GMT):
So, I found the problem

CorentinPacaud (Mon, 24 Feb 2020 17:26:14 GMT):
This is because you did not install the smartcontract on all the peer

CorentinPacaud (Mon, 24 Feb 2020 17:26:14 GMT):
This is because you did not install the smartcontract on all the peers

CorentinPacaud (Mon, 24 Feb 2020 17:26:58 GMT):
Typically, for org1, there is 2 peers, and you installed you SM on only the peer0 and not the peer 1.

Anu (Mon, 24 Feb 2020 18:00:07 GMT):
Has joined the channel.

Anu (Mon, 24 Feb 2020 18:00:07 GMT):
Hello, a question on gateway in fabric 1.4. Gateway instance reads network diagram on each connect. It also sets current identity during this call. It does not allow me to set new context, for each transaction. So I am making a new gateway instance for each transaction. Alternatively, I could used the underlying "getClient() call to set a user context, but that would make gateway and fabric client think different contexts.. Is my understanding right? Seems like for thread safety, the best practice would be to make a new gateway instance per connection.

garyclark (Mon, 24 Feb 2020 18:01:21 GMT):
Has anyone got a simple node.js chaincode function how to add a value to private data. I am seeing some third party (stubHelper)? Not sure unless there is an example in 2.0?

garyclark (Mon, 24 Feb 2020 18:01:21 GMT):
Has anyone got a simple node.js chaincode function how to add a value to private data. I am seeing stubHelper as a way? Not sure unless there is an example in 2.0?

braduf (Mon, 24 Feb 2020 19:11:42 GMT):
Hi all, I want to create a channel and join some peers to the channel. For the moment I do not have any applications using the SDK developed to do this. I want to use the "peer" cmd to do this, but I would like to know how and from where I should run it. Do I need to run those commands from within the fabric-tools container, from inside the container of the peer itself or can I just download the "peer" binary and run it locally? In the docs there is no flag to set the address of the peer I want to act upon. I have checked the main_test.go of the cmd/peer and there I see that some environment variables are set, one of them is CORE_PEER_LISTENADDRESS. Is this the only required environment variable to be able to run the "peer channel create -flags" command?

braduf (Mon, 24 Feb 2020 19:11:42 GMT):
Hi all, I want to create a channel and join some peers to the channel. For the moment I do not have any applications using the SDK developed to do this. I want to use the "peer" cmd to do this, but I would like to know how and from where I should run it. Do I need to run those commands from within the fabric-tools container, from inside the container of the peer itself or can I just download the "peer" binary and run it locally? In the docs there is no flag to set the address of the peer I want to act upon. I have checked the main_test.go of the cmd/peer and there I see that some environment variables are set, one of them is CORE_PEER_LISTENADDRESS. Is this the only required environment variable to be able to run the "peer channel create -flags" command? I think in the test-network the cli/tools container isn't used anymore, is that also correct? Thanks in advance!

Antimttr (Mon, 24 Feb 2020 19:12:47 GMT):
You'll probably want to spin up a CLI container and run the commands through that

braduf (Mon, 24 Feb 2020 19:13:16 GMT):
Is that really the only way?

braduf (Mon, 24 Feb 2020 19:13:34 GMT):
Do I need to run a container just to run those commands?

Antimttr (Mon, 24 Feb 2020 19:13:50 GMT):
that's the way i keep seeing it done in the tutorials/samples

Antimttr (Mon, 24 Feb 2020 19:14:34 GMT):
if you're talking about just spinning up a peer node, you can do that by starting a peer docker container with the correct enivronment set in the docker-compose.yaml file

Antimttr (Mon, 24 Feb 2020 19:14:48 GMT):
but if you want to give commands to an existing peer container the CLI container is the way to do that

braduf (Mon, 24 Feb 2020 19:15:22 GMT):
No no, I know how to run a peer node, I want to give commands to it. But running a container just for that... I think there is another way...

braduf (Mon, 24 Feb 2020 19:15:46 GMT):
In the end the CLI container also just uses the peer cmd

Antimttr (Mon, 24 Feb 2020 19:16:16 GMT):
i know its possible to run the go binaries outside of their docker containers but I've never done that so i don't have any information on how to do it :zipper_mouth:

braduf (Mon, 24 Feb 2020 19:18:09 GMT):
I will try it out, thanks!

braduf (Mon, 24 Feb 2020 19:27:25 GMT):
Yeah, I think the fabric-tools container has some other stuff inside, running peer channel alone gives me the following error: [main] InitCmd -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Config File "core" Not Found in

ownspies (Mon, 24 Feb 2020 20:42:19 GMT):
@braduf you can run the peer commands in any container that has the peer command (e.g. fabric-tools, fabric-cli, etc), you just have to correctly setup the working environment either through ENV vars or a config file. I often use a locally running fabric-tools docker instance to access our HLF network in the cloud; you also could run the container via Jenkins if you wanted. Again the key is just the CORE_PEER_* env vars which can be a PITA

ownspies (Mon, 24 Feb 2020 20:42:33 GMT):
fabric-ca-client is only available on the fabric-ca container IIRC

Antimttr (Mon, 24 Feb 2020 20:45:56 GMT):
fabric-ca-client can also be run natively on the host OS as well, just get the fabric-ca repo

Rein 35 (Mon, 24 Feb 2020 21:02:06 GMT):
Has joined the channel.

Rein 35 (Mon, 24 Feb 2020 21:02:06 GMT):
Could someone shed some light on the following matter: I've had to move the orderers DNS (other domain). For this I fetched the config of my application channel, made the changes in the channel config and sent the update with peer channel update ... I restarted every (orderer)node. However, they are still using the old domain names. Another issue that I have, is new orderer nodes try to communicate with orderer nodes that no longer exist (as the old domains are inside the genesis block?) I've tried fetching the "system-channel" configuration, but this always fails with 2020-02-24 20:40:22.474 UTC [cli.common] readBlock -> INFO 002 Got status: &{SERVICE_UNAVAILABLE}

ahmedsajid (Mon, 24 Feb 2020 21:30:23 GMT):
Assuming you also changed your TLS Certs? Are the Orderers actually running?

Rein 35 (Mon, 24 Feb 2020 21:30:55 GMT):
Yes, I updated both

Rein 35 (Mon, 24 Feb 2020 21:31:35 GMT):
In a bit more depth: It's deployed on a k8s cluster at first, it used internal dns names (orderer-1.hlf.svc.cluster.local)

Rein 35 (Mon, 24 Feb 2020 21:31:46 GMT):
but as we need these to be reachable from outside the cluster

Rein 35 (Mon, 24 Feb 2020 21:32:21 GMT):
I regenerated the cert's and added the domain in the Subject Alternative Name

Rein 35 (Mon, 24 Feb 2020 21:32:52 GMT):
Connections are passed throught nginx-ingress (tls passthrough + GRPCS protocol)

Rein 35 (Mon, 24 Feb 2020 21:33:34 GMT):
This seem to work fine for the peers

ahmedsajid (Mon, 24 Feb 2020 21:33:38 GMT):
SERVICE_UMAVAILABLE is an orderer message

ahmedsajid (Mon, 24 Feb 2020 21:33:38 GMT):
SERVICE_UNAVAILABLE is an orderer message

ahmedsajid (Mon, 24 Feb 2020 21:33:50 GMT):
I would look at Orderer logs and see if the request is coming in.

ahmedsajid (Mon, 24 Feb 2020 21:34:46 GMT):
Also I dont know changing domain name of existing Orderers is supported. If I was doing this, I would bring up new Orderers and join them to the channel and let the blocks sync over and turn off the older ones.

Rein 35 (Mon, 24 Feb 2020 21:35:33 GMT):
Ok, but how do you join them ?

Rein 35 (Mon, 24 Feb 2020 21:35:38 GMT):
They need a genesis block right ?

ahmedsajid (Mon, 24 Feb 2020 21:36:00 GMT):
not necessarily. I have joined Orderers using Latest Channel configuration block as well

Rein 35 (Mon, 24 Feb 2020 21:36:26 GMT):
hmm, how do you do that ?

ahmedsajid (Mon, 24 Feb 2020 21:37:15 GMT):
Just `peer fetch channel config -o ORDERER_URL` ...

ahmedsajid (Mon, 24 Feb 2020 21:37:15 GMT):
Just `peer fetch channel config -o ORDERER_URL -c system-channel` ...

Rein 35 (Mon, 24 Feb 2020 21:37:34 GMT):
does it need to be the system channel ?

ahmedsajid (Mon, 24 Feb 2020 21:37:37 GMT):
right

Rein 35 (Mon, 24 Feb 2020 21:37:40 GMT):
or any application channel

garyclark (Mon, 24 Feb 2020 21:37:42 GMT):
Can someone point me to link that shows how set/get private data using node.js 1.4.4. I instantiated the collection successfully. Just the blighter is breaking.

Rein 35 (Mon, 24 Feb 2020 21:37:53 GMT):
Ok, well that's where i'm stuck

ahmedsajid (Mon, 24 Feb 2020 21:38:10 GMT):
but you would fetch on current running Orderers before switch.

ahmedsajid (Mon, 24 Feb 2020 21:38:10 GMT):
but you would fetch on current running Orderers.

ahmedsajid (Mon, 24 Feb 2020 21:38:45 GMT):
is this Fabric 1.4 or 2.0?

Rein 35 (Mon, 24 Feb 2020 21:38:47 GMT):
You just swap the genesis block for the latest block then ?

Rein 35 (Mon, 24 Feb 2020 21:38:52 GMT):
1.4.2

ahmedsajid (Mon, 24 Feb 2020 21:38:52 GMT):
yeah

ahmedsajid (Mon, 24 Feb 2020 21:39:05 GMT):
latest config block.

ahmedsajid (Mon, 24 Feb 2020 21:39:54 GMT):
Any Orderer URL change would require override set in Peer config in case a new peer is added. https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/core.yaml#L333

Rein 35 (Mon, 24 Feb 2020 21:41:11 GMT):
[common.deliver] deliverBlocks -> WARN 11fe3d [channel: system-channel] Rejecting deliver request for 10.130.3.122:32880 because of consenter error

Rein 35 (Mon, 24 Feb 2020 21:41:29 GMT):
Is what i see in the orderer, when i run: peer channel fetch config -c system-channel --tls

Rein 35 (Mon, 24 Feb 2020 21:42:05 GMT):
Doesn't matter if I use the OrdererMSP or not, always the same error

Rein 35 (Mon, 24 Feb 2020 21:42:18 GMT):
I can fetch the application config without any issues

Rein 35 (Mon, 24 Feb 2020 21:42:28 GMT):
'application channel config'

ahmedsajid (Mon, 24 Feb 2020 21:42:28 GMT):
oh

ahmedsajid (Mon, 24 Feb 2020 21:42:40 GMT):
interesting...

ahmedsajid (Mon, 24 Feb 2020 21:43:25 GMT):
If there was a problem, I would expect all channels being unavailable.

ahmedsajid (Mon, 24 Feb 2020 21:43:49 GMT):
problem with missed step or configuration.

ahmedsajid (Mon, 24 Feb 2020 21:44:46 GMT):
anything in DEBUG?

ahmedsajid (Mon, 24 Feb 2020 21:44:46 GMT):
anything interesting when running in DEBUG?

Rein 35 (Mon, 24 Feb 2020 21:45:20 GMT):
let me see

Rein 35 (Mon, 24 Feb 2020 21:45:41 GMT):
just debug logs right ?

ahmedsajid (Mon, 24 Feb 2020 21:47:10 GMT):
Orderer DEBUG logs

ahmedsajid (Mon, 24 Feb 2020 21:47:17 GMT):
Just to see if anything stands out.

Rein 35 (Mon, 24 Feb 2020 21:47:45 GMT):
Can i update it without rebooting it ?

Rein 35 (Mon, 24 Feb 2020 21:47:49 GMT):
(log level)

Rein 35 (Mon, 24 Feb 2020 21:47:55 GMT):
Works with peers, but don't know about orderers

ahmedsajid (Mon, 24 Feb 2020 21:48:15 GMT):
How are you changing for peers? `peer logging setlevel...`?

Rein 35 (Mon, 24 Feb 2020 21:48:22 GMT):
yes

ahmedsajid (Mon, 24 Feb 2020 21:49:38 GMT):
not sure if something similar exists for Orderer....

Rein 35 (Mon, 24 Feb 2020 21:49:45 GMT):
seems like not

Rein 35 (Mon, 24 Feb 2020 21:49:48 GMT):
ok give me a sec to reboot

Rein 35 (Mon, 24 Feb 2020 21:54:33 GMT):
Takes some time on k8s to remount disks

Rein 35 (Mon, 24 Feb 2020 21:58:08 GMT):
Not really more info

Rein 35 (Mon, 24 Feb 2020 21:58:10 GMT):
2020-02-24 21:57:50.879 UTC [common.deliver] deliverBlocks -> WARN 22e [channel: system-channel] Rejecting deliver request for 10.130.0.105:55614 because of consenter error

Rein 35 (Mon, 24 Feb 2020 21:58:18 GMT):
2020-02-24 21:57:50.875 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-02-24 21:57:50.880 UTC [cli.common] readBlock -> INFO 002 Got status: &{SERVICE_UNAVAILABLE} Error: can't read the block: &{SERVICE_UNAVAILABLE}

Rein 35 (Mon, 24 Feb 2020 22:00:06 GMT):
Hmm

Rein 35 (Mon, 24 Feb 2020 22:00:08 GMT):
2020-02-24 21:58:45.819 UTC [orderer.common.cluster] ReplicateChains -> INFO 2a2 Found myself in 0 channels out of 1 : {[] [{system-channel 0xc00047a280}]} 2020-02-24 21:58:45.820 UTC [orderer.common.cluster] appendBlock -> INFO 2a3 Skipping commit of block [0] for channel system-channel because height is at 2 2020-02-24 21:58:45.820 UTC [orderer.common.cluster] PullChannel -> INFO 2a4 Pulling channel system-channel

ahmedsajid (Mon, 24 Feb 2020 22:01:24 GMT):
How many Orderers?

Rein 35 (Mon, 24 Feb 2020 22:01:30 GMT):
There are 3

ahmedsajid (Mon, 24 Feb 2020 22:03:50 GMT):
` Found myself in 0 channels out of 1` Looks like 1 of the Orderer is saying I'm not part of configuration so I'm not going to get block. Do you see this message on all peers?

ahmedsajid (Mon, 24 Feb 2020 22:03:50 GMT):
` Found myself in 0 channels out of 1` Looks like 1 of the Orderer is saying I'm not part of configuration so I'm not going to get block. Do you see this message on all orderers?

ahmedsajid (Mon, 24 Feb 2020 22:04:01 GMT):
How many Application channels?

Rein 35 (Mon, 24 Feb 2020 22:04:09 GMT):
there is 1 application channel

Rein 35 (Mon, 24 Feb 2020 22:04:14 GMT):
and i guess 1 system channel

ahmedsajid (Mon, 24 Feb 2020 22:04:18 GMT):
right

ahmedsajid (Mon, 24 Feb 2020 22:04:27 GMT):
Which one was changed first?

ahmedsajid (Mon, 24 Feb 2020 22:04:27 GMT):
Which one was updated first?

ahmedsajid (Mon, 24 Feb 2020 22:04:33 GMT):
System?

Rein 35 (Mon, 24 Feb 2020 22:04:46 GMT):
I've only been able to update the application channel

Rein 35 (Mon, 24 Feb 2020 22:04:52 GMT):
as i cannot fetch the system channel

Rein 35 (Mon, 24 Feb 2020 22:05:40 GMT):
oh, maybe i need to use the old certificates

ahmedsajid (Mon, 24 Feb 2020 22:05:41 GMT):
And the certs have been changed already?

ahmedsajid (Mon, 24 Feb 2020 22:05:43 GMT):
Yeah

Rein 35 (Mon, 24 Feb 2020 22:05:56 GMT):
Let me try that

ahmedsajid (Mon, 24 Feb 2020 22:05:58 GMT):
Dont change the certs until all channels are using the new URLs.

ahmedsajid (Mon, 24 Feb 2020 22:06:05 GMT):
I would suggest trying with System channel first.

Rein 35 (Mon, 24 Feb 2020 22:07:48 GMT):
That makes sense now

ahmedsajid (Mon, 24 Feb 2020 22:08:37 GMT):
Also I would recommend setting https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/core.yaml#L333 in your peer config.

Rein 35 (Mon, 24 Feb 2020 22:09:09 GMT):
I see

Rein 35 (Mon, 24 Feb 2020 22:09:11 GMT):
thanks !

ahmedsajid (Mon, 24 Feb 2020 22:09:14 GMT):
The peers are joined to the channel using genesis and genesis block of a channel in your case would contain old URLs.

ahmedsajid (Mon, 24 Feb 2020 22:09:30 GMT):
you probably would have to use a later Fabric 1.4 release which includes this option.

ahmedsajid (Mon, 24 Feb 2020 22:09:30 GMT):
you probably would have to use a later Fabric 1.4 release which supports this option.

braduf (Mon, 24 Feb 2020 22:11:11 GMT):
yeah, peer cmd also, only the core.yaml file was missing

braduf (Mon, 24 Feb 2020 22:11:23 GMT):
Thanks for the answers!

Rein 35 (Mon, 24 Feb 2020 22:11:24 GMT):
Does 1.4.2 not support that ?

ahmedsajid (Mon, 24 Feb 2020 22:11:52 GMT):
I dont believe so

Rein 35 (Mon, 24 Feb 2020 22:12:25 GMT):
Alrighty

Rein 35 (Mon, 24 Feb 2020 22:12:33 GMT):
I will give it a shot (might take some time)

Rein 35 (Mon, 24 Feb 2020 22:12:42 GMT):
I'll keep you posted

garyclark (Mon, 24 Feb 2020 22:14:15 GMT):
Does 1.4.4 Fabric support set/get of private data using node.js?

garyclark (Mon, 24 Feb 2020 22:14:15 GMT):
Does 1.4.4 Fabric support set/get of private data using node.js? Or is this just in go?

ownspies (Mon, 24 Feb 2020 22:19:40 GMT):
That is true but I prefer the Docker containers so I don't have to keep updating everything... just `docker run ...`

Rein 35 (Mon, 24 Feb 2020 22:40:34 GMT):
Indeed, i restarted the orderers with their old certificates

Rein 35 (Mon, 24 Feb 2020 22:40:39 GMT):
now i can fetch the system channel

ahmedsajid (Mon, 24 Feb 2020 22:41:17 GMT):
Sweet.

Rein 35 (Mon, 24 Feb 2020 22:43:19 GMT):
tricky business this thing :) But indeed, old urls are here

Rein 35 (Mon, 24 Feb 2020 22:43:35 GMT):
Thanks alot for your insights ! I owe you a beer somehow

ahmedsajid (Mon, 24 Feb 2020 22:43:58 GMT):
hehe :) I'm in Toronto :)

ahmedsajid (Mon, 24 Feb 2020 22:45:46 GMT):
glad I could help.

Koushik (Tue, 25 Feb 2020 01:16:30 GMT):
Hi guys, I am really preplexed right with a weird error. I am getting a endoresement error for only one of the chaincodes out of many. I used the same endoresement policy for all the chaincode.

Koushik (Tue, 25 Feb 2020 01:17:18 GMT):
```shell WARN 41b6 Endorsement policy failure for transaction txid=, err: signature set did not satisfy policy ```

Koushik (Tue, 25 Feb 2020 01:19:36 GMT):
The same chaincode seems to be working in our dev environment. Only difference is that in the environment in which we are getting this error, we do not have control of the second organization. (ie:certs, peers)

Koushik (Tue, 25 Feb 2020 01:19:50 GMT):
any thoughts?

Koushik (Tue, 25 Feb 2020 01:29:41 GMT):
is there a way to see the endoresement policy of a instantiated chaincode?

saikumar3349 (Tue, 25 Feb 2020 04:49:38 GMT):
Hi guys, How to remove users/peers from the hyperledger fabric network that are revoked in fabric-ca?

divyasekaran (Tue, 25 Feb 2020 05:02:32 GMT):
Hi, I am facing this error while running the fabcar chaincode at a particular interval of time, It works fine till 3 or 4 times, then it shows like 2020-02-24T10:33:09.018Z - warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer1.org1.example.com:8051" failed: message=cannot retrieve package for chaincode fabcar/1.0, error open /var/hyperledger/production/chaincodes/fabcar.1.0: no such file or directory, stack=Error: cannot retrieve package for chaincode fabcar/1.0, error open /var/hyperledger/production/chaincodes/fabcar.1.0: no such file or directory at self._endorserClient.processProposal (/home/djaxtech/fabric-samples/fabcar/javascript/node_modules/fabric-client/lib/Peer.js:140:36) at Object.onReceiveStatus (/home/djaxtech/fabric-samples/fabcar/javascript/node_modules/grpc/src/client_interceptors.js:1207:9) at InterceptingListener._callNext (/home/djaxtech/fabric-samples/fabcar/javascript/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/home/djaxtech/fabric-samples/fabcar/javascript/node_modules/grpc/src/client_interceptors.js:618:8) Please guide me, How to resolve this?

Senophields (Tue, 25 Feb 2020 05:54:25 GMT):
Has joined the channel.

Senophields (Tue, 25 Feb 2020 05:54:26 GMT):
Hi all, is it possible to ask questions about running the example fabcar application here?

Abhishek2700 (Tue, 25 Feb 2020 05:54:31 GMT):
Has joined the channel.

Abhishek2700 (Tue, 25 Feb 2020 05:54:43 GMT):
Hi All Is it possible to create multiple user in a single organization in fabric.

Aniket.1 (Tue, 25 Feb 2020 06:07:16 GMT):
I think a forum should be atleast well responsive when there is a release with breaking changes

Aniket.1 (Tue, 25 Feb 2020 06:15:21 GMT):
Anyone can help with error while invoking a method of committed chaincode: `Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction ca032000b58e71b3db909f43eb80d41ef85f6c39b1ec0659097ba8ac6cf17e93: invalid invocation: chaincode 'employee_chaincode' has not been initialized for this version, must call as init first`

SatheeshNehru (Tue, 25 Feb 2020 06:47:02 GMT):
RAm

DeepakMaurya (Tue, 25 Feb 2020 07:19:03 GMT):
Has joined the channel.

DeepakMaurya (Tue, 25 Feb 2020 07:19:05 GMT):
Hi All ,

glowd (Tue, 25 Feb 2020 07:48:36 GMT):
Has joined the channel.

glowd (Tue, 25 Feb 2020 07:55:48 GMT):
hi everyone , how to deploy a production network in fabric 1.4.4 ?

glowd (Tue, 25 Feb 2020 07:57:49 GMT):
I cannot find the doc about this at https://hyperledger-fabric.readthedocs.io/en/release-1.4/releases.html

glowd (Tue, 25 Feb 2020 07:59:11 GMT):
Do you have some tutorials about this, tks?

Logi (Tue, 25 Feb 2020 10:27:48 GMT):
We are facing an issue with new users onboarding, and there is an open issue ,, Just incase if someone facing the issue -> " Can't find module utils.js" while creating using credentials, please check this link -> https://jira.hyperledger.org/browse/FABN-1500

qwertlimframe (Tue, 25 Feb 2020 10:28:22 GMT):
Has joined the channel.

qwertlimframe (Tue, 25 Feb 2020 10:29:17 GMT):
Yes it is possible.

qwertlimframe (Tue, 25 Feb 2020 10:29:46 GMT):
How can I change the default hash function in hyperledger fabric?

SwapnilSinha (Tue, 25 Feb 2020 10:41:16 GMT):
Has joined the channel.

SwapnilSinha (Tue, 25 Feb 2020 10:43:20 GMT):
I am doing a project on hyperledger fabric.Is it possible to change the default hashing algorithm(SHA 2) on fabric??

Shubham-koli (Tue, 25 Feb 2020 12:44:09 GMT):
you need to fetch config block from orderer. then you can to edit the block as per your requirements. in your case you can change the hashing algorithms too. https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html#fetch-the-configuration

Shubham-koli (Tue, 25 Feb 2020 12:44:09 GMT):
you need to fetch config block from orderer. then you can to edit the block as per your requirements. in your case you can change the hashing algorithms too. https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html#fetch-the-configuration

Jelle.Diet (Tue, 25 Feb 2020 12:58:22 GMT):
Hi all, when saving an Asset with private data, without changing anything in the private data (but a property of the 'public' asset), the private data hash also changes. Is this normal? Using java sdk and chaincode

garyclark (Tue, 25 Feb 2020 13:10:01 GMT):
Does 1.4.4 Fabric support set/get of private data using node.js? Or is this just in go? Who is supporting this?

Jelle.Diet (Tue, 25 Feb 2020 13:13:23 GMT):
Does this not explain it? https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-private-data.html

garyclark (Tue, 25 Feb 2020 13:16:37 GMT):
No. I need to see an example of getPrivateData and setPrivateData. I was having problems with this yesterday and need a baseline to work from.

garyclark (Tue, 25 Feb 2020 13:18:10 GMT):
In node.js.

garyclark (Tue, 25 Feb 2020 13:19:35 GMT):
I can test and use the original fabcar node.js example like a champ. Missing setting and getting private data.

Jelle.Diet (Tue, 25 Feb 2020 13:21:19 GMT):
First you make a collections profile like this:

Jelle.Diet (Tue, 25 Feb 2020 13:21:22 GMT):
[ { "name": "PrivateDataCollection", "policy": { "identities": [ { "role": { "name": "member", "mspId": "Org1MSP" } }, { "role": { "name": "member", "mspId": "Org2MSP" } } ], "policy": { "1-of": [ { "signed-by": 0 }, { "signed-by": 1 } ] } }, "requiredPeerCount": 1, "maxPeerCount": 1, "blockToLive": 0 } ]

garyclark (Tue, 25 Feb 2020 13:21:35 GMT):
Yes done that.

Jelle.Diet (Tue, 25 Feb 2020 13:22:20 GMT):
then use putPrivateData(collection, key, value)

Jelle.Diet (Tue, 25 Feb 2020 13:22:49 GMT):
and getPrivateData(collection, key)

BrettLogan (Tue, 25 Feb 2020 13:22:59 GMT):
^

garyclark (Tue, 25 Feb 2020 13:23:04 GMT):
yes I want I tried that and it was breaking. I need an example.

garyclark (Tue, 25 Feb 2020 13:23:04 GMT):
yes I tried that and it was breaking. I need an example.

Jelle.Diet (Tue, 25 Feb 2020 13:24:07 GMT):
I will make one for you

garyclark (Tue, 25 Feb 2020 13:24:27 GMT):
I would appreciate that alot.

Shubham-koli (Tue, 25 Feb 2020 13:24:30 GMT):
+1

garyclark (Tue, 25 Feb 2020 13:25:50 GMT):
I would appreciate that. I am using 1.4.4 fabric.

fabricDev (Tue, 25 Feb 2020 13:53:12 GMT):
Hi, We have started our pilot with certificate created by cryptogen, now when we are planning to move it to live we got the certificate from the organization CA and replaced this with the cryptogen certificates. We backedup the /etc/hyperledger/production data and restored it. But, we are getting access denied error as the genesis block was created with the cryptogen certificates. Can someone provide suggestion on how to restore the data and use the updated certificates

Jelle.Diet (Tue, 25 Feb 2020 13:54:02 GMT):
Here's a (very basic) example for node chaincode: https://github.com/DietJelle/Fabric_Node_PrivateData_Chaincode

garyclark (Tue, 25 Feb 2020 13:54:23 GMT):
ok cool.

Jelle.Diet (Tue, 25 Feb 2020 13:54:41 GMT):
I tested it with VSCode

garyclark (Tue, 25 Feb 2020 13:56:17 GMT):
I am using linux. I will clone it and see if I can test this out. I just need to see how it sets and gets.

garyclark (Tue, 25 Feb 2020 13:59:12 GMT):
hmm just had a look at your code. Just a couple of lines.

garyclark (Tue, 25 Feb 2020 13:59:33 GMT):
In the getPrivateData and setPrivateData.

Jelle.Diet (Tue, 25 Feb 2020 14:01:47 GMT):
yes

Jelle.Diet (Tue, 25 Feb 2020 14:02:04 GMT):
You also want to read the data from the transient map preferrably

garyclark (Tue, 25 Feb 2020 15:17:35 GMT):
Is this in the example you provided?

Jelle.Diet (Tue, 25 Feb 2020 15:20:54 GMT):
no but I can add it if you want

Jelle.Diet (Tue, 25 Feb 2020 15:21:38 GMT):
if you use getTransient your private data will not be saved in the transaction at all (so it will not be visible once deleted)

garyclark (Tue, 25 Feb 2020 15:25:16 GMT):
Yes please Jelle. I will give it a whirl ncw done.

garyclark (Tue, 25 Feb 2020 15:25:16 GMT):
Yes please Jelle. I will give it a try once you do this.

garyclark (Tue, 25 Feb 2020 15:25:16 GMT):
Yes please Jelle.Diet I will give it a try once you do this.

garyclark (Tue, 25 Feb 2020 16:22:45 GMT):
[ { "name": "carDetails", "policy": "OR('HeliosDsoMSP.member', 'HeliosSiteLabMSP.member')", "requiredPeerCount": 0, "maxPeerCount": 2, "blockToLive":0 }, { "name": "carOwner", "policy": "OR('HeliosSiteLabMSP.member')", "requiredPeerCount": 0, "maxPeerCount": 2, "blockToLive":0 } ]

garyclark (Tue, 25 Feb 2020 16:25:00 GMT):
async testPrivateDetails(ctx, args) { let sample = "protocar"; await ctx.stub.putPrivateData("carDetails","CAR888",Buffer.from(sample.toString())); return sample; }

garyclark (Tue, 25 Feb 2020 16:43:25 GMT):
Do you still perform an invoke like the below:

garyclark (Tue, 25 Feb 2020 16:43:36 GMT):
peer chaincode invoke -o 192.168.1.110:7050 \ -C $CHANNEL_NAME \ -n fabcar \ -v 1.0 \ -c '{"function":"testPrivateDetails","Args":[]}' \ -P "OR('HeliosDsoMSP.member','HeliosSiteLab.member') " \ --waitForEvent

arun17 (Tue, 25 Feb 2020 16:50:53 GMT):
Has joined the channel.

arun17 (Tue, 25 Feb 2020 16:50:54 GMT):
Hyperledger-fabric2.0 run first-network failure. failed to read chaincode package at '.tar.gz' My steps 1.download fabric-samples 2.run byfn.sh generate in /fabric-sample/first-network/ this step is ok 3.run byfn.sh up then i got failure Failure ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... + peer lifecycle chaincode install .tar.gz + res=1 + set +x Error: failed to read chaincode package at '.tar.gz': open .tar.gz: no such file or directory !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== can some one help me out with the issue?

simone.slattery (Tue, 25 Feb 2020 17:44:48 GMT):
Has joined the channel.

garyclark (Tue, 25 Feb 2020 19:53:02 GMT):
I do apologize. What happened was that I needed to update the version of chaincode installed to get it to work. Been doing this 3 weeks now. So there is a lot of headbanging.

garyclark (Tue, 25 Feb 2020 19:53:02 GMT):
I do apologize. What happened was that I needed to update the version of chaincode installed to get it to work. So far been learning fabric for 3 weeks now. So there is a lot of headbanging going on.

garyclark (Tue, 25 Feb 2020 21:55:07 GMT):
Ok it works.

garyclark (Tue, 25 Feb 2020 21:55:43 GMT):
Thankyou for helping me give a baseline to work from.

monte97 (Tue, 25 Feb 2020 22:33:05 GMT):
Has joined the channel.

monte97 (Tue, 25 Feb 2020 22:33:08 GMT):
HI, i'm trying to expand PaperNet network. I want to create an app for DigiBank that get's notified everytime a new block is created. I'm following this tutorial https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-listening-to-events.html but when i try to run the node application i get this error: `error: [BlockEventListener]: _onEvent[1] - Error executing callback: TypeError: this.eventCallback is not a function`

Antimttr (Tue, 25 Feb 2020 22:37:04 GMT):
just guessing but is the variable you're feeding into the handler not actually a function?

monte97 (Tue, 25 Feb 2020 22:44:27 GMT):
I copied the code from the documentation without changing anything... this is the complete application code https://pastebin.com/quxQbWHf is the same of the buy application but instead of submitting the transaction I register a BlockListener

monte97 (Tue, 25 Feb 2020 23:21:41 GMT):
` const listener = await network.addBlockListener((p1, p2, p3, p4) => { console.log("new block") console.log(p1) console.log(p2) console.log(p3) console.log(p4) }, 'name') ` It works if listenerName and callback are swapped. p1 = errors, p2 = block heigth, p3 = transaction list, p4 = ?

Antimttr (Tue, 25 Feb 2020 23:22:15 GMT):
ahh so they got the ordering of the arguments wrong in the example

monte97 (Tue, 25 Feb 2020 23:26:46 GMT):
I think that the description is also wrong `the callback called when an event is triggered with signature (error, block)` i had to use a third parameter to see block's transactions (https://hyperledger.github.io/fabric-sdk-node/release-1.4/module-fabric-network.Network.html) I am using Fabric 2.0 installed following this guide

monte97 (Tue, 25 Feb 2020 23:26:46 GMT):
I think that the description is also wrong `the callback called when an event is triggered with signature (error, block)` i had to use a third parameter to see block's transactions (https://hyperledger.github.io/fabric-sdk-node/release-1.4/module-fabric-network.Network.html) I am using Fabric 2.0 installed following this guide https://hyperledger-fabric.readthedocs.io/en/latest/install.html

BrettLogan (Wed, 26 Feb 2020 02:27:45 GMT):
It's not you, there was a regression in the fabric-samples code, I've open a pull request to revert it, if you want to keep going right now you can do a `git reset --hard e204ebb3b2749b72621fa05fc753f4bea1ff7976` to drop the bad change

Shubham-koli (Wed, 26 Feb 2020 04:43:03 GMT):
@Jelle.Diet Thanks for the example man!!!

qwertlimframe (Wed, 26 Feb 2020 05:05:07 GMT):
Where does hashing take place in hyperledger fabric. Does hashing takes place only in during the orderer makes a block?

qwertlimframe (Wed, 26 Feb 2020 05:20:03 GMT):
which hash function is used in hashing the world state?

Aniket.1 (Wed, 26 Feb 2020 06:34:28 GMT):
I am getting this error with version 2.0, can someone help: `could not launch chaincode 'employee_chaincodev1:17e9cb503764a34587e8d81367eb3895e7613e46f83ab90fed931d86b32c57d7': chaincode registration failed: container exited with 0 `

Aniket.1 (Wed, 26 Feb 2020 06:34:28 GMT):
I am getting this error with version 2.0, can someone help: `could not launch chaincode employee_chaincodev1:17e9cb503764a34587e8d81367eb3895e7613e46f83ab90fed931d86b32c57d7: chaincode registration failed: container exited with 0 `

Aniket.1 (Wed, 26 Feb 2020 06:34:28 GMT):
I am getting this error with version 2.0, can someone help: ```could not launch chaincode employee_chaincodev1:17e9cb503764a34587e8d81367eb3895e7613e46f83ab90fed931d86b32c57d7: chaincode registration failed: container exited with 0 ```

Jelle.Diet (Wed, 26 Feb 2020 08:39:11 GMT):
I added the transient, it's very simple: let transientData = ctx.stub.getTransient(); var data = transientData.get('key'); //buffer

SwapnilSinha (Wed, 26 Feb 2020 10:59:37 GMT):
Thanks a lot!!

doomguy (Wed, 26 Feb 2020 12:27:26 GMT):
Has joined the channel.

doomguy (Wed, 26 Feb 2020 12:27:27 GMT):
Hello all ! I've found Cordenity project on github [https://github.com/hyperledger-labs/cordentity] to integrate Indy capabilities into the Corda platform. Is there something similar, but for HL Fabric ? I mean a seamless way to integrate Indy features into Fabric blockchain.

SatheeshNehru (Wed, 26 Feb 2020 12:45:45 GMT):
Where can I get Dockerfile for Hyperledger fabric docker images?

SatheeshNehru (Wed, 26 Feb 2020 12:46:22 GMT):
#fabric-chaincode-dev #fabric-sdk-node #fabric-java-chaincode

garyclark (Wed, 26 Feb 2020 13:39:43 GMT):
Very cool.Thanks.

garyclark (Wed, 26 Feb 2020 15:01:25 GMT):
I'm seeing unexpected Error: chaincode argument error: unexpected end of JSON input.

garyclark (Wed, 26 Feb 2020 15:01:51 GMT):
When trying to use the --transient flag

garyclark (Wed, 26 Feb 2020 15:02:20 GMT):
-c '{"function":"setPrivateCarTransientDetails","Args":["CAR001"]' --transient "{\"totalPrice\":\"10000\",\"Date\":\"1/20/2020\"}" \

garyclark (Wed, 26 Feb 2020 15:02:35 GMT):
Doing something silly I guess.

garyclark (Wed, 26 Feb 2020 15:03:22 GMT):
CAR001 is the key.

garyclark (Wed, 26 Feb 2020 15:31:25 GMT):
Ok it works. The base64 encoding threw me off. However its working now.

garyclark (Wed, 26 Feb 2020 16:22:12 GMT):
Cup of tea now as a reward.

BrettLogan (Wed, 26 Feb 2020 16:26:52 GMT):
Been a long 3 weeks but has to feel good getting here

garyclark (Wed, 26 Feb 2020 16:29:13 GMT):
Yes certainly is. I needed to see if it can work for needs we believe this was the best choice. Its not too bad, just a few gotchas. Like I said Raft will be next week. I only am using 3 machines in our lab for test so Solo works ok for that. Again thankyou.

garyclark (Wed, 26 Feb 2020 16:29:13 GMT):
Yes certainly is. I needed to see if it can work for our needs we believe this was the best choice. Its not too bad, just a few gotchas. Like I said Raft will be next week. I only am using 3 machines in our lab for test so Solo works ok for that. Again thank you.

garyclark (Wed, 26 Feb 2020 16:30:35 GMT):
I did bench mark a few other block chains as well.

garyclark (Wed, 26 Feb 2020 16:30:35 GMT):
I did bench mark a few other blockchain technologies as well.

garyclark (Wed, 26 Feb 2020 16:30:35 GMT):
I did benchmark a few other blockchain technologies as well.

braduf (Wed, 26 Feb 2020 16:59:05 GMT):
I have another question, to use the peer channel create cmd in the fabric-tools container, do I need to have a peer running already? Or can the CORE_PEER_TLS_CERT_FILE just be a TLS cert for the server where the fabric-tools container is running on?

garyclark (Wed, 26 Feb 2020 17:03:19 GMT):
I spin up a cli and then individually fire commands using the peer invoke/query.

garyclark (Wed, 26 Feb 2020 17:04:22 GMT):
I have 2 peers running and then use a cli to commence creation, instantiation and invoke/query commands using shell scripts.

ownspies (Wed, 26 Feb 2020 18:10:36 GMT):
@braduf you need to have completed the enroll process for a user and then create the channel on the orderer, so you don't necessarily need a peer, but you do need other stuff - * Orderer TLS chain * Admin MSP certificates and private keys (which in turn requires that you create the files using cryptogen or have a running CA with a user and have completed the enroll process)

ownspies (Wed, 26 Feb 2020 18:10:50 GMT):
I haven't actually done I that way, however, so there is some speculation in my ansswer

ownspies (Wed, 26 Feb 2020 18:10:50 GMT):
I haven't actually done I that way, however, so there is some speculation in my answer

braduf (Wed, 26 Feb 2020 19:12:15 GMT):
But the CORE_PEER_TLS_CLIENTCERT_FILE shouldn't really be of any peer, it is just a TLS cert that the cli itself will use to communicate with the orderer if clientAuth is true? Is that right?

ownspies (Wed, 26 Feb 2020 19:13:31 GMT):
if you're using mTLS then yes, the CA for your TLS certificates would be used to issue a TLS client cert for your admin MSP

ownspies (Wed, 26 Feb 2020 19:13:43 GMT):
and that cert/key pair would be used to authenticate with the orderer

ownspies (Wed, 26 Feb 2020 19:14:08 GMT):
you have to provide the ORDERER_TLS_CLIENT_ROOTCAS option to the orderer so it will accept your TLS client certificate

braduf (Wed, 26 Feb 2020 19:18:09 GMT):
yeah, I was doing that, but I always get a Bad Certificate (42), it looks like the peer cli doesn't send the certificate that I pass through -certfile when doing peer create channel

braduf (Wed, 26 Feb 2020 19:23:48 GMT):
Do you have any idea what could be wrong?

braduf (Wed, 26 Feb 2020 19:24:47 GMT):
If on the orderer I see this message: "TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=190.70.9.255:50047" does it mean that the certificate of the orderer is bad, or the certificate of the client?

ownspies (Wed, 26 Feb 2020 19:51:34 GMT):
@braduf I can't seem to reply in the thread, but if that error you posted appears in the log output from the orderer, it sounds like the TLS root CA ENV variable is not properly set

ownspies (Wed, 26 Feb 2020 19:51:42 GMT):
I believe that one also needs to be enclosed in brackets

ownspies (Wed, 26 Feb 2020 19:52:07 GMT):
`ORDERER_GENERAL_TLS_CLIENTROOTCAS: "[/var/hyperledger/tls/server/cert/cacert.pem]"`

ownspies (Wed, 26 Feb 2020 19:52:13 GMT):
that is how I set it

Antimttr (Wed, 26 Feb 2020 19:52:34 GMT):
ive also seen that contain the tlsca certs for the peer orgs as well

Antimttr (Wed, 26 Feb 2020 19:53:27 GMT):
that's how its configured in balance-transfer anyways

ownspies (Wed, 26 Feb 2020 19:54:27 GMT):
if you use a separate TLS CA for each org, or if you separate orderer TLS CA from all org CAs, then yes it will need both chains

ownspies (Wed, 26 Feb 2020 19:54:39 GMT):
the key I learned is that it had to be in braces / brackets

Sound-Steward (Thu, 27 Feb 2020 00:38:31 GMT):
Has joined the channel.

Sound-Steward (Thu, 27 Feb 2020 00:38:32 GMT):
Probably a derp--newer to Hyperledger--but I'm trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run `./network.sh up`, it tells me `:ERROR! Peer binary and configuration files not found..`

Antimttr (Thu, 27 Feb 2020 00:57:35 GMT):
what directory are you running it from?

CT123 (Thu, 27 Feb 2020 01:59:32 GMT):
Update to 2.x released today -- can anyone explain the deltas? Read the release notes and at least for us minimal changes but are there any under-the-hood considerations that would suggest we update?

BrettLogan (Thu, 27 Feb 2020 02:41:36 GMT):
Are you already on 2.0.0 and are you using private data?

BrettLogan (Thu, 27 Feb 2020 02:42:36 GMT):
can you do an `ls bin/ && ls config/` of the root of fabric-samples

passionofvc (Thu, 27 Feb 2020 05:09:59 GMT):
Has joined the channel.

passionofvc (Thu, 27 Feb 2020 05:10:01 GMT):
Hi I am newbie in HyperLedger, is there a tutorial without operate with docker? because I do not know docker. Or I can checkout github and build from scratch.

Antimttr (Thu, 27 Feb 2020 05:10:37 GMT):
most of the material out there uses docker

Antimttr (Thu, 27 Feb 2020 05:11:02 GMT):
its not too bad to learn, i suggest that as a starting point if you want to really dig deep into fabric

Antimttr (Thu, 27 Feb 2020 05:11:24 GMT):
if not you can always try using something like ibm blockchain

Antimttr (Thu, 27 Feb 2020 05:12:00 GMT):
which does all the infra for a hyperledger fabric but you can still create the chaincodes and define the networks

qwertlimframe (Thu, 27 Feb 2020 08:46:15 GMT):
Does changing the hash function in config block, also changes the hash function in all other places(like: ecdsa encryption algorithm)? Or do we need to change the

qwertlimframe (Thu, 27 Feb 2020 08:47:21 GMT):
Or do we need to change the hash function somewhere else as well?

ChrisSargent (Thu, 27 Feb 2020 09:07:30 GMT):
Hi @metadata - I am now doing the same thing - writing unit tests for my chaincode but almost all of them use some form of access control using the `cid`. Did you find a way to work with this?

ChrisSargent (Thu, 27 Feb 2020 09:07:30 GMT):
Hi @metadata - I am now doing the same thing - writing unit tests for my chaincode - but almost all of them use some form of access control using the `cid`. Did you find a way to work with this?

metadata (Thu, 27 Feb 2020 09:20:04 GMT):
no

ChrisSargent (Thu, 27 Feb 2020 09:21:53 GMT):
I just found this article https://medium.com/coinmonks/test-driven-hyperledger-fabric-golang-chaincode-development-dbec4cb78049, seems they have a package which extends the mock stub.

SateeshBangarugiri (Thu, 27 Feb 2020 10:20:36 GMT):
how to change peers addresses to different machines in a LAN??

SateeshBangarugiri (Thu, 27 Feb 2020 10:20:49 GMT):
and run the farbic network?

chmpmps (Thu, 27 Feb 2020 13:12:41 GMT):
Has joined the channel.

chmpmps (Thu, 27 Feb 2020 13:12:43 GMT):
Hi everyone! I m having a problem getting the transient data in the chaincode. I m using the nodejs function `stub.getTransient().get(‘key’)` but I get the following object:

```
transient data...   ByteBuffer {   buffer: ,   offset: 1135,   markedOffset: -1,   limit: 1339,   littleEndian: true,   noAssert: false } ``` I can see my information only when I m accessing `transientData.buffer.toString()`. I access this buffer, decode it and see, that it contains not only my payload as a string, but also name of OrgMSP, CERTIFICATE, channel information etc all in one block. My payload is at the end. I need to do some string manipulation to get it out of there since it’s not a JSON object. 

Is something else that I need to do here to access the payload?

chmpmps (Thu, 27 Feb 2020 13:12:43 GMT):
Hi everyone! I m having a problem getting the transient data in the chaincode. I m using the nodejs function `stub.getTransient().get(‘key’)` but I get the following object:

`
transient data...   ByteBuffer {   buffer: ,   offset: 1135,   markedOffset: -1,   limit: 1339,   littleEndian: true,   noAssert: false } ` I can see my information only when I m accessing `transientData.buffer.toString()`. I access this buffer, decode it and see, that it contains not only my payload as a string, but also name of OrgMSP, CERTIFICATE, channel information etc all in one block. My payload is at the end. I need to do some string manipulation to get it out of there since it’s not a JSON object. 

Is something else that I need to do here to access the payload?

chmpmps (Thu, 27 Feb 2020 13:12:43 GMT):
Hi everyone! I m having a problem getting the transient data in the chaincode. I m using the nodejs function `stub.getTransient().get(‘key’)` but I get the following object:

 `
transient data...   ByteBuffer {   buffer: ,   offset: 1135,   markedOffset: -1,   limit: 1339,   littleEndian: true,   noAssert: false } ` I can see my information only when I m accessing `transientData.buffer.toString()`. I access this buffer, decode it and see, that it contains not only my payload as a string, but also name of OrgMSP, CERTIFICATE, channel information etc all in one block. My payload is at the end. I need to do some string manipulation to get it out of there since it’s not a JSON object. 

Is something else that I need to do here to access the payload?

Jelle.Diet (Thu, 27 Feb 2020 13:19:49 GMT):
I use the object from getTransient().get('key') directly in putPrivateData , perhaps the getPrivateData handles this?

chmpmps (Thu, 27 Feb 2020 13:23:46 GMT):
I don't think so. I used the logic of the example you shared some time ago and I don't see my asset created in the couchdb. I see the id but not the right content

chmpmps (Thu, 27 Feb 2020 13:24:49 GMT):
did you retreive the assets that you created successfully after the creation?

Jelle.Diet (Thu, 27 Feb 2020 13:24:59 GMT):
yeah I did test it quick

Jelle.Diet (Thu, 27 Feb 2020 13:25:12 GMT):
remember that the asset won't be saved to the blockchain, just a hash of the data if using putPrivateData

Jelle.Diet (Thu, 27 Feb 2020 13:25:22 GMT):
the privatedatat is stored in a sidedb

Jelle.Diet (Thu, 27 Feb 2020 13:25:22 GMT):
the private data is stored in a sidedb

chmpmps (Thu, 27 Feb 2020 13:25:59 GMT):
yes did you check in the couchdb if it was saved? or were you able to query it back?

Jelle.Diet (Thu, 27 Feb 2020 13:26:11 GMT):
I didn't check couchdb but I could query it back

chmpmps (Thu, 27 Feb 2020 13:26:16 GMT):
hmm

chmpmps (Thu, 27 Feb 2020 13:26:43 GMT):
maybe then it's saving it differently in the couchdb

Jelle.Diet (Thu, 27 Feb 2020 13:27:06 GMT):
Yeah that's why I thought maybe getPrivateData handles the conversion

chmpmps (Thu, 27 Feb 2020 13:27:12 GMT):
I ll try to query whatever is created

chmpmps (Thu, 27 Feb 2020 13:27:32 GMT):
thanks :)

braduf (Thu, 27 Feb 2020 13:30:35 GMT):
You can build everything without docker, look at the Makefile in github

BrettLogan (Thu, 27 Feb 2020 14:22:17 GMT):
The raw binaries are also available in GitHub release section on GitHub

garyclark (Thu, 27 Feb 2020 15:52:14 GMT):
From my own experience its probably easier to learn docker which all the tutorials are based on and examples than not use docker. Its up to you. That is my 2 cents on this.

garyclark (Thu, 27 Feb 2020 15:52:14 GMT):
From my own experience its probably easier to learn docker which all the tutorials are based on and examples than not use docker. Its up to you. That is my 2 cents on this. I did not know docker also before the start.

SateeshBangarugiri (Thu, 27 Feb 2020 16:49:06 GMT):
hi anyone knows how to test fabric for transaction latency??

DeepakMaurya (Thu, 27 Feb 2020 19:48:12 GMT):
Is it possible to create multiple user in a single peer ?

DeepakMaurya (Thu, 27 Feb 2020 19:49:51 GMT):
Hi All I Got this error , how to resolve this issue. "LS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.28.0.7:34612"

ownspies (Thu, 27 Feb 2020 20:25:12 GMT):
Are you running the service behind a LoadBalancer with a health check?

ramorcicare1 (Thu, 27 Feb 2020 21:06:19 GMT):
Has joined the channel.

ramorcicare1 (Thu, 27 Feb 2020 21:06:20 GMT):
Hello, we have a Fabric 1.4.1 setup on Kubernetes with Hyperledger Composer v 0.20.8. It was working fine, but started seeing the error "Response from attempted peer comms was an error: Error: Failed to connect before the deadline " when trying to Upgrade a network with new BNA minor version. Fabric pods are looking fine, but composer not able to reach the event hub. Any support available?

mahbub97 (Fri, 28 Feb 2020 02:31:26 GMT):
Has joined the channel.

mahbub97 (Fri, 28 Feb 2020 02:31:27 GMT):
Hi i am trying to run fastfabric from this link https://github.com/cgorenflo/fabric/tree/fastfabric-1.4 , but i am confused about filling the custom parameter of custom_parameters.sh file in ./fastfabric/scripts folder.

mahbub97 (Fri, 28 Feb 2020 02:34:20 GMT):
particularly : ORDERER_ADDRESS, FAST_PEER_ADDRESS parameters

BrettLogan (Fri, 28 Feb 2020 03:27:00 GMT):
We don't maintain or support this in any way, but the file explains pretty clearly what it is. Your domain can be, "example.com" and then the peer and ordered are something like "peer0" and "orderer0" so they become "peer0.example.com"

braduf (Fri, 28 Feb 2020 03:58:41 GMT):
Hi all, when trying to generate the genesis block I get the following warnings: `2020-02-28 03:53:23.267 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-02-28 03:53:23.304 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2020-02-28 03:53:23.304 UTC [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: /hyperledger/config/configtx.yaml 2020-02-28 03:53:23.305 UTC [msp] loadCertificateAt -> WARN 004 Failed loading ClientOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.305 UTC [msp] loadCertificateAt -> WARN 005 Failed loading PeerOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.305 UTC [msp] loadCertificateAt -> WARN 006 Failed loading AdminOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.305 UTC [msp] loadCertificateAt -> WARN 007 Failed loading OrdererOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.306 UTC [msp] loadCertificateAt -> WARN 008 Failed loading ClientOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.306 UTC [msp] loadCertificateAt -> WARN 009 Failed loading PeerOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.306 UTC [msp] loadCertificateAt -> WARN 00a Failed loading AdminOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.307 UTC [msp] loadCertificateAt -> WARN 00b Failed loading OrdererOU certificate at [/hyperledger/bancolombia/msp]: [could not read file /hyperledger/bancolombia/msp: read /hyperledger/bancolombia/msp: is a directory] 2020-02-28 03:53:23.307 UTC [common.tools.configtxgen] doOutputBlock -> INFO 00c Generating genesis block 2020-02-28 03:53:23.308 UTC [common.tools.configtxgen] doOutputBlock -> INFO 00d Writing genesis block` I have a config.yaml file in the msp, but I have the Certificate parts commented out in the NodeOUs, is that the reason and can I ignore it, or is there something wrong? Thanks in advance!

SateeshBangarugiri (Fri, 28 Feb 2020 05:34:13 GMT):
hi anyone knows how to test network of Fabric for transaction latency??

Aniket.1 (Fri, 28 Feb 2020 06:05:41 GMT):
I am successfully running all the peer chaincode lifecycle steps, still my chaincode container is not up. Error it shows: ``` > node store.js "--peer.address" "peer1.org1.example.org:8052" 2020-02-28T05:57:04.039Z info [c-api:lib/chaincode.js] Registering with peer peer1.org1.example.org:8052 as chaincode "store2_chaincodev1:31fbb77d7783d683b1392e4498d5a9c16c555d643ff667e4cfa59aac59af03e9" 2020-02-28T05:57:04.052Z error [c-api:lib/handler.js] Chat stream with peer - on error: %j "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at ``` Its been 4 days, I am stuck here. If someone can give any kind of clue, it will be helpful.

AmanAgrawal (Fri, 28 Feb 2020 09:21:35 GMT):
Hi All, wanted to post a query regarding channel creation while working woth RAFT consensus. While i try to create the channel after my orderer and peers are up i am facing this below issue: 2020-02-28 08:37:47.221 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'channel1', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied Error: genesis block file not found open channel1.block: no such file or directory Error: got unexpected status: BAD_REQUEST -- Consortium config value missing Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [channel1] creator org [org1MSP] Any help on this is much appreciated. Thanks in Advance.

aaju (Fri, 28 Feb 2020 11:55:06 GMT):
Has joined the channel.

Aniket.1 (Fri, 28 Feb 2020 13:07:36 GMT):
@AmanAgrawal Have you setup your policy as ANY ?

barney2k7 (Fri, 28 Feb 2020 13:13:10 GMT):
Make sure you have set env variables CORE_PEER_LOCALMSPID and CORE_PEER_MSPCONFIGPATH set properly, i.e. the latter pointing to an admin's msp directory

barney2k7 (Fri, 28 Feb 2020 13:13:10 GMT):
Make sure you have the env variables CORE_PEER_LOCALMSPID and CORE_PEER_MSPCONFIGPATH set properly, i.e. the latter pointing to an admin's msp directory when invoking the channel creation command

AmanAgrawal (Fri, 28 Feb 2020 14:23:45 GMT):
@Aniket.1 yeah aniket.. tried setting up as ANY.. but same errors.

AmanAgrawal (Fri, 28 Feb 2020 14:24:44 GMT):
@barney2k7 tried this too.. doesnt help

CT123 (Fri, 28 Feb 2020 19:00:26 GMT):
yes

Antimttr (Fri, 28 Feb 2020 21:31:58 GMT):
so im starting my peer, and trying to bind to a particular ip address that the host os has in its interface list, however the peer keeps falling back to one of the other private network addresses that also has an interface on the host machine

Antimttr (Fri, 28 Feb 2020 21:32:05 GMT):
very frustrating

Antimttr (Fri, 28 Feb 2020 21:33:36 GMT):
in docker-compose.yaml im setting both CORE_PEER_ADDRESS and CORE_PEER_GOSSIP_EXTERNALENDPOINT to the correct ip address

Antimttr (Fri, 28 Feb 2020 22:41:46 GMT):
doesnt really matter what ip i bind to, even if its the correct one, always get connection refused when i try and open a raw socket to it

Antimttr (Fri, 28 Feb 2020 22:48:50 GMT):
what would stop a peer from listening on its assigned port number?

Antimttr (Fri, 28 Feb 2020 22:48:57 GMT):
keep in mind no firewalls

Antimttr (Fri, 28 Feb 2020 22:49:07 GMT):
netstat shows the port is listening on 0.0.0.0

Antimttr (Fri, 28 Feb 2020 22:49:21 GMT):
so this has to be in the peer software itself, refusing to accept the connection

qwertlimframe (Sat, 29 Feb 2020 11:07:41 GMT):
According to official website the transaction speed in fabric is supposed to be 3k tr/sec. But on running byfn I am getting 8 tr/sec. Why is it so?

japidei (Sat, 29 Feb 2020 12:01:14 GMT):
Use peer.listenAddress in core.yaml or CORE_PEER_LISTENADDRESS

PraveenKumar1984 (Sat, 29 Feb 2020 14:49:59 GMT):
Has joined the channel.

PraveenKumar1984 (Sat, 29 Feb 2020 14:50:00 GMT):
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"

PraveenKumar1984 (Sat, 29 Feb 2020 14:50:30 GMT):
I am getting the above error while executing project

PraveenKumar1984 (Sat, 29 Feb 2020 14:51:19 GMT):
any help on this would be appreciated

BrettLogan (Sat, 29 Feb 2020 15:54:39 GMT):
There are a ton of considerations in building a highly performant network. BYFN would never be able achieve high number. In particular you need not send transactions to all peers to have them committed, so having a large number of peer means you can send large numbers of transactions to subsets of the peers and spread the load around

Antimttr (Sat, 29 Feb 2020 16:23:26 GMT):
that did it! thanks!

Antimttr (Sat, 29 Feb 2020 16:23:41 GMT):
so weird that it wasnt in the balance transfer docker-composer.yaml example

SanjayDhonde (Sat, 29 Feb 2020 16:24:32 GMT):
On the endorsement policy syntax documentation on https://hyperledger-fabric.readthedocs.io/en/release-1.2/endorsement-policies.html it is stated that principals are defined as MSP.ROLE where MSP is the MSP ID and the ROLE is either member, admin, client or peer In the examples shown mostly member is used. It is states "MSP.member" would mean "any member", but what is a member? Currently, as most endorsement policy we use follow that syntax, we are assuming that it means any peer? But there is also the example of "MSP.peer". And as this is an endorsement policy where it checks transactions have been endorsed, when are "admin" and "client" used?? (as it does not seem possible for an admin or client to endorse a transaction). Is there a clear guide on when to use member, admin, client and peer for Endorsement Policies?

braduf (Sat, 29 Feb 2020 19:57:51 GMT):
Hi, I have seen that when trying to create a channel, not only the admin identity is checked for being a Writer, but also the orderer identity is checked on being a Writer. Does this mean an orderer should always be a Writer too?

braduf (Sat, 29 Feb 2020 19:57:51 GMT):
Hi, I have seen that when trying to create a channel, not only the admin identity is checked for being a Writer, but also the orderer identity is checked on being a Writer. Does this mean an orderer should always be a Writer too? Or does it depends of how other things are configured?

braduf (Sat, 29 Feb 2020 19:57:51 GMT):
Hi all, I just started using NodeOUs and I am wondering what the best policiy configurations are in the configtx.yaml file. And I was wondering if it makes sense to not only create a Writers, Readers, Admins and Endorsement policies at the organizational levels, but also Orderers so in the /Channel/Orderer/ policies, "Any Orderers" can be used instead of "Any Writers"? Is there any example of a more restrictive configured configtx.yaml file, making use of the NodeOUs?

braduf (Sat, 29 Feb 2020 19:57:51 GMT):
Hi all, I just started using NodeOUs and I am wondering what the best policiy configurations are in the configtx.yaml file. And I was wondering if it makes sense to not only create a Writers, Readers, Admins and Endorsement policies at the organizational levels, but also Orderers, so in the /Channel/Orderer/ policies, "Any Orderers" can be used instead of "Any Writers"? Is there any example of a more restrictive configured configtx.yaml file, making use of the NodeOUs?

Antimttr (Sun, 01 Mar 2020 04:11:43 GMT):
@braduf i'd love to see some good examples of configtx policy configurations, when i built my genesis block and channel tx i got warnings about not having policies in place but balance-transfer doesnt have any in their configtx.yaml either

Jax.dev (Sun, 01 Mar 2020 09:14:52 GMT):
Has joined the channel.

Jax.dev (Sun, 01 Mar 2020 09:14:53 GMT):
I'm trying to create channel using node sdk, when I try to executing i see the following error in orderer logs Rejecting broadcast of config message from 172.20.0.1:47456 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied appreciate your help

Jax.dev (Sun, 01 Mar 2020 09:14:53 GMT):
I'm trying to create channel using node sdk, when I try to executing i see the following error in orderer logs Rejecting broadcast of config message from 172.20.0.1:47456 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied When I try to execute startFabric.sh under fabcar, channel is creating without any errors, so I guess there will be any issue with configtx.yaml file appreciate your help

Jax.dev (Sun, 01 Mar 2020 09:14:53 GMT):
I'm trying to create channel using node sdk, when I try to execute i see the following error in orderer logs Rejecting broadcast of config message from 172.20.0.1:47456 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied When I try to execute startFabric.sh under fabcar, channel is creating without any errors, so I guess there will be any issue with configtx.yaml file appreciate your help

Antimttr (Sun, 01 Mar 2020 17:11:49 GMT):
probably using an admin certificate that isn't correct

Antimttr (Sun, 01 Mar 2020 17:12:14 GMT):
verify that the admin cert you're using is the same one in your ordererorg/msp/admincerts directory

braduf (Mon, 02 Mar 2020 02:48:54 GMT):
What are the warnings that you are seeing?

qwertlimframe (Mon, 02 Mar 2020 04:00:05 GMT):
I already know that, but even after other considerations the tr. speed should be about 1k tr/sec. I was never expecting this much less speed. Am I doing something wrong.

qwertlimframe (Mon, 02 Mar 2020 05:06:35 GMT):
While building a code nopkcs11.go in hyperledger fabric bccsp i am getting a error. # command-line-arguments ./nopkcs11.go:28:16: undefined: SwOpts

Antimttr (Mon, 02 Mar 2020 05:23:03 GMT):
that submitting configtx.yaml without policy is deprecated

abityildiz (Mon, 02 Mar 2020 06:18:14 GMT):
hi all,i did not found,hyperledger fabric 2.0 setup multi hosts example.is there anyone do it?

DeepakMaurya (Mon, 02 Mar 2020 07:27:30 GMT):
Hi All I'm facing the issue . when I have to communicate between nodes which are in same channel. 1 -Chaincode is installed and Instantiated on first node, when i'm trying to query the chaincode's arguements on 2nd node and getting error, 2nd node container does not have a file. "docker exec -it Datacli peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}' Error: endorsement failure during query. response: status:500 message:"cannot retrieve package for chaincode mycc/v0, error open /var/hyperledger/production/chaincodes/mycc.v0: no such file or directory"

georges (Mon, 02 Mar 2020 08:20:56 GMT):
hey

georges (Mon, 02 Mar 2020 08:21:01 GMT):
anyone online?

dineshthemacho1 (Mon, 02 Mar 2020 10:16:58 GMT):
Hi All, I have 2 functions in my chain code. How can i restrict my function to only one peer or organizations?????

HansrajRami (Mon, 02 Mar 2020 11:20:35 GMT):
Has joined the channel.

Jelle.Diet (Mon, 02 Mar 2020 13:06:23 GMT):
You can get the ClientIdentity from the ctx and use it in your function

palra (Mon, 02 Mar 2020 13:48:13 GMT):
Hi there! Did somebody had the occasion to perform e2e tests on a whole HLF based application?

SanjayDhonde (Mon, 02 Mar 2020 14:15:33 GMT):
Does HLF support Tokenization?

mahbub97 (Mon, 02 Mar 2020 17:45:24 GMT):
thank you for explaining

xhens (Mon, 02 Mar 2020 20:06:17 GMT):
Hello! I'm trying to set up the Fabric locally but I'm stuck. I followed the guide here: https://hyperledger-fabric.readthedocs.io/en/release-2.0/dev-setup/devenv.html but when trying to build (https://hyperledger-fabric.readthedocs.io/en/release-2.0/dev-setup/build.html) it fails with the error message: _can't load package: package github.com/hyperledger/fabric/cmd/orderer: cannot find package "github.com/hyperledger/fabric/cmd/orderer" in any of:_ . Can anyone please help me?

giuzero (Mon, 02 Mar 2020 20:07:23 GMT):
Hi any hint on how to solve this error? I got this error invoking a function of mycc from one of the to peers on the channel. Chaincode are installed by cli1 on peer1 and by cli2 on peer2 I can see them instantiated on both peers (peer chaincode list --instantiated -C mychannel gives the correct output on both peers ) 2020-03-02 20:01:26.848 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 04a ESCC invoke result: response: Error: endorsement failure during invoke. response: status:500 message:"failed to execute transaction e3bcb4d4aaf040782c91bf0a187d1d8a7e3ce46597df07e73783268782c071c3: [channel mychannel] failed to get chaincode container info for mycc:2.0: could not get chaincode code: chaincode fingerprint mismatch: data mismatch"

BrettLogan (Mon, 02 Mar 2020 20:41:09 GMT):
These instructions are for developers working on the actual codebase? Is this what you are trying to do, or do you actually want to deploy fabric, as the binaries are available of GitHub, and the docker images are on Dockerhub

smtter (Mon, 02 Mar 2020 21:19:12 GMT):
Best practices question for chaincodes: I am storing some assets into a key with a suffix changing the 'id' (ex: 'assest_1', 'asset_2'). To iterate through this in the future, I was goign to iterate over the suffix until no entires come up. Is there a better way of doing this? Should I simply create a json or an array to store all these transactions into one key? I'm worried about the scale of this, as when I have to get this large json in the chaincode, it might slow down the execution time. Thanks in advance!

BrettLogan (Mon, 02 Mar 2020 21:58:02 GMT):
Are they unique assets, or different iterations of the same asset?

xhens (Mon, 02 Mar 2020 22:01:57 GMT):
Yes, this is what I'm trying to do. I want to work on the actual codebase.

BrettLogan (Mon, 02 Mar 2020 22:03:46 GMT):
Can you share the entire error, and can you provide the output of `echo $GOPATH` and `pwd` from the root of the repo you checked out

xhens (Mon, 02 Mar 2020 22:16:40 GMT):

Clipboard - March 2, 2020 11:16 PM

xhens (Mon, 02 Mar 2020 22:17:19 GMT):
pwd output: `/home/xhens/go/src/github.com/xhens/fabric`

xhens (Mon, 02 Mar 2020 22:17:47 GMT):
$GOPATH output: ´/home/xhens/go´

xhens (Mon, 02 Mar 2020 22:17:47 GMT):
$GOPATH output: `/home/xhens/go`

smtter (Mon, 02 Mar 2020 22:19:36 GMT):
Speaking in golang types, they are of the same struct with different values. I'm thinking of using CouchDB and storing an array of json. Currently, I'm using LevelDB (default)

BrettLogan (Mon, 02 Mar 2020 22:20:28 GMT):
You've checked the project out into your local repository. You need to check it out into: `/home/xhens/go/src/github.com/hyperledger/fabric`

BrettLogan (Mon, 02 Mar 2020 22:21:16 GMT):
If you look inside all the go files you'll see imports, all of those imports are pads relative to your GoPath. So you'll see they all import based on the hyperledger-org not on your org na

BrettLogan (Mon, 02 Mar 2020 22:21:16 GMT):
If you look inside all the go files you'll see imports, all of those imports are paths relative to your GoPath. So you'll see they all import based on the hyperledger-org not on your org name

BrettLogan (Mon, 02 Mar 2020 22:21:16 GMT):
If you look inside all the go files you'll see imports, all of those imports are paths relative to your GoPath. So you'll see they all import based on the hyperledger-org not on your org na

BrettLogan (Mon, 02 Mar 2020 22:21:17 GMT):
If you look inside all the go files you'll see imports, all of those imports are pads relative to your GoPath. So you'll see they all import based on the hyperledger-org not on your org name

xhens (Mon, 02 Mar 2020 22:23:41 GMT):
Based on the documentation, there is stated that you must fork the repo and create these dirs: _mkdir -p github.com/_ _cd github.com/_ _git clone https://github.com//fabric_

xhens (Mon, 02 Mar 2020 22:23:41 GMT):
Based on the documentation, there is stated that you must fork the repo and create these dirs: _mkdir -p github.com/ cd github.com/ git clone https://github.com//fabric_

xhens (Mon, 02 Mar 2020 22:23:41 GMT):
Based on the documentation, there is stated that you must fork the repo and create these dirs: `mkdir -p github.com/` `cd github.com/` `git clone https://github.com//fabric`

BrettLogan (Mon, 02 Mar 2020 22:25:07 GMT):
Shoot me a link to that doc, I'm pretty sure I wrote it and it was an oversight on our part

xhens (Mon, 02 Mar 2020 22:25:23 GMT):
So, basically, someone should have both repos cloned right. The original provided from Hyperledger and it's fork

xhens (Mon, 02 Mar 2020 22:25:23 GMT):
So, basically, someone should have both repos cloned right. The original provided from Hyperledger and also its fork, right?

xhens (Mon, 02 Mar 2020 22:25:23 GMT):
So, basically, someone should have both repos cloned. The original provided from Hyperledger and also its fork, right?

xhens (Mon, 02 Mar 2020 22:26:03 GMT):
This is the link: https://hyperledger-fabric.readthedocs.io/en/release-2.0/dev-setup/devenv.html

xhens (Mon, 02 Mar 2020 22:26:39 GMT):
The section I'm getting confused is this one: https://hyperledger-fabric.readthedocs.io/en/release-2.0/dev-setup/devenv.html

BrettLogan (Mon, 02 Mar 2020 22:27:00 GMT):
That's actually not the doc I wrote, it's not correct. The issue with maintaining both repositories is that if you make a change in your local repository that code then is not referenced by the other parts of fabric that reference it

BrettLogan (Mon, 02 Mar 2020 22:27:00 GMT):
That's actually not the doc I wrote, it's not correct. The issue with maintaining both repositories is that if you make a change in your local repository that code then is not referenced by the other parts of fabric that reference it. so when you test the code you're testing the hyperledger code and not the code you wrote

BrettLogan (Mon, 02 Mar 2020 22:27:21 GMT):
If you were going to develop you should check it out in the hyperledger org and develop there

BrettLogan (Mon, 02 Mar 2020 22:27:21 GMT):
If you were going to develop you should check it out in the hyperledger and develop there

xhens (Mon, 02 Mar 2020 22:30:14 GMT):
So, I should only have a clone of the original repo, right?

BrettLogan (Mon, 02 Mar 2020 22:30:22 GMT):
Correct

BrettLogan (Mon, 02 Mar 2020 22:30:47 GMT):
No you would still fork it, you would just clone your fork into the hyperledger folder

BrettLogan (Mon, 02 Mar 2020 22:30:47 GMT):
No you would still fork it, you would just clone it into the hyperledger folder

smtter (Mon, 02 Mar 2020 22:32:54 GMT):
@BrettLogan

xhens (Mon, 02 Mar 2020 22:34:06 GMT):
Ah, I see. And then just run the `make dist-clean all`?

BrettLogan (Mon, 02 Mar 2020 22:35:24 GMT):
Correct

xhens (Mon, 02 Mar 2020 22:36:22 GMT):
Thank you very very much! I really appreciate it!

xhens (Mon, 02 Mar 2020 22:37:35 GMT):
I'm building the original repo now. I hope I don't need to bother you again

BrettLogan (Mon, 02 Mar 2020 22:37:46 GMT):
No problem at all, thats what we are here for

BrettLogan (Mon, 02 Mar 2020 22:41:00 GMT):
It's worth noting, that particular make target can take several hours to run, a better alternative to getting started is just doing unit tests `make unit-tests`

BrettLogan (Mon, 02 Mar 2020 22:41:28 GMT):
They take approximately 30 minutes, and there is a pull request currently open that will reduce it to less than 10

xhens (Mon, 02 Mar 2020 23:01:12 GMT):
I'm running the build since almost 20 mins now, so, I think I'll just let that finish. But will definitely check the open PR as it it very helpful to reduce the unit tests time to less than 10 mins

natewhiteblock (Mon, 02 Mar 2020 23:26:15 GMT):
Has joined the channel.

xhens (Mon, 02 Mar 2020 23:27:24 GMT):

Clipboard - March 3, 2020 12:27 AM

xhens (Mon, 02 Mar 2020 23:27:33 GMT):
It failed with this error message

BrettLogan (Mon, 02 Mar 2020 23:30:12 GMT):
Common test flake (this was in integration tests, not unit tests), nothing wrong, most people don't run integration tests locally, they open a PR where they are run against the PR.

BrettLogan (Mon, 02 Mar 2020 23:30:12 GMT):
Common test flake (this was in integration tests, not unit tests), nothing wrong, most people don't run integration test locally, they open a PR where they are run against the PR

BrettLogan (Mon, 02 Mar 2020 23:30:30 GMT):
https://jira.hyperledger.org/browse/FAB-17548?filter=12728

BrettLogan (Mon, 02 Mar 2020 23:30:45 GMT):
These are the open test flakes

BrettLogan (Mon, 02 Mar 2020 23:31:36 GMT):
Our CI splits the integration tests across 5 VM's that way if one tests fails you only have to rerun a small subset of the integration tests

BrettLogan (Mon, 02 Mar 2020 23:32:51 GMT):
We are working to reduce the number of test flakes actively, we have 2 fixes in PR now, and more are being worked on

xhens (Mon, 02 Mar 2020 23:35:06 GMT):
Oh okay. Even if this is failing, the code is supposed to work (taking into account that I've checked out the master branch)

xhens (Mon, 02 Mar 2020 23:36:05 GMT):
And there's something more that it's bothering me and I can't really seem to get it configured.

xhens (Mon, 02 Mar 2020 23:36:10 GMT):

Clipboard - March 3, 2020 12:36 AM

xhens (Mon, 02 Mar 2020 23:38:07 GMT):
I am doing something wrong with the configuration of Goland and/or IntelliJ Idea because the imports are always unresolved

BrettLogan (Mon, 02 Mar 2020 23:49:14 GMT):
Do you have module or vendor mode turned on in Goland? Go to preferences and check in the first section to see which is enabled

xhens (Mon, 02 Mar 2020 23:59:14 GMT):
Go Modules were turned on. This solved my issue :) If I want to do any core changes, is the way to test them by creating a test network or is there another way?

xhens (Mon, 02 Mar 2020 23:59:14 GMT):
Go Modules were turned on. This solved my issue by turning it off :) If I want to do any core changes, is the way to test them by creating a test network or is there another way?

heenas06 (Tue, 03 Mar 2020 05:34:11 GMT):
You need to clone fabric on root folder where your go installed it should be like this o /src/github.com/hyperledger/clone here ....this link https://github.com/hyperledger/fabric.git

Nikhil95 (Tue, 03 Mar 2020 07:14:10 GMT):
Hi all, I have a design question I want help with. A health insurance company forms a network and asks every hospital (Organizations with several doctors as members) to join it. Patients own the data and want to manage access to it, by giving rights to some or just one hospital to see it or update it. Other patients and hospitals shouldn't be able to view/edit another patient's data.

Nikhil95 (Tue, 03 Mar 2020 07:20:07 GMT):
Suppose there are four hospitals, H1, H2, H3 and H4, two patients P1 and P2, and an Insurance company IC. P1 gives access to IC, H1 and H2. P2 gives access to IC, H2 and H3. P1 shouldn't be able to see P2's data and vice versa. H1 shouldn't see P2's data because P2 didn't grant them access. Patients should also be able to grant and revoke access to hospitals as they wish.

Nikhil95 (Tue, 03 Mar 2020 07:34:05 GMT):
My initial model was to create a channel for every patient and let him manage the channel policy. He can add and remove other Orgs' peers at will. However, that would mean every patient running a peer which they can't. It would also mean a lot of channels, maybe in the order of millions, and will it scale?

Jelle.Diet (Tue, 03 Mar 2020 08:25:22 GMT):
You should look into adding indexes and docType to your asset

Jelle.Diet (Tue, 03 Mar 2020 08:36:40 GMT):
Perhaps this would be better solved with private data collections rather than creating so many channels?

Jelle.Diet (Tue, 03 Mar 2020 08:40:40 GMT):
You could create a collection for each possible combination of hospitals/insurance companies and then put the patient in the correct collection depending on their choices

Nikhil95 (Tue, 03 Mar 2020 09:40:57 GMT):
Hi Jelle, thanks for the reply. There are a lot of Hospitals and so, a lot of collections have to be created. I should move patients' details from one collection to the other whenever they change the access policy. it seems a bit tedious.

Jelle.Diet (Tue, 03 Mar 2020 09:46:20 GMT):
Hmm, that's a good point. What about using the ClientIdentity to check access in the chaincode?

Nikhil95 (Tue, 03 Mar 2020 09:57:42 GMT):
One of the approaches I am thinking of is exactly this. I will create a chaincode template with the patient name, data and permitted identities and install and instantiate one for every patient.

Nikhil95 (Tue, 03 Mar 2020 10:00:30 GMT):
chaincode template is a class containing fields like patient data, list of doctors along with access permissions and functions to manage patient data appropriately

Nikhil95 (Tue, 03 Mar 2020 10:02:51 GMT):
however, someone can look at the ledger and make out what the data is unless I encrypt it.

hmoazzem (Tue, 03 Mar 2020 12:48:01 GMT):
Hi all, how could we access identity of an user that invokes a transaction with new [fabric-contract-api-go](https://github.com/hyperledger/fabric-contract-api-go). For instance, how to access user identity that invokes `create` function in this tutorial https://github.com/hyperledger/fabric-contract-api-go/blob/master/tutorials/getting-started.md?

hmoazzem (Tue, 03 Mar 2020 12:48:01 GMT):
Hi all, how could we access identity of an user that invokes a transaction with new [fabric-contract-api-go](https://github.com/hyperledger/fabric-contract-api-go). For instance, how to access user identity that invokes `create` function in this tutorial https://github.com/hyperledger/fabric-contract-api-go/blob/master/tutorials/getting-started.md? Basically, I would like to know if there's way to set owner of an asset based on who created the asset in this tutorial https://github.com/hyperledger/fabric-contract-api-go/blob/master/tutorials/managing-objects.md

Jelle.Diet (Tue, 03 Mar 2020 14:05:01 GMT):
use ctx.getClientIdentity() to get the identity of the invoker

Antimttr (Tue, 03 Mar 2020 16:42:36 GMT):
if my tlsca is an intermediate CA with a chained certificate, would I use the chained certificate for peers in the org w/the `CORE_PEER_TLS_ROOTCERT_FILE` setting? or would I use the /tlscacerts/ the peer received when it enrolled?

Franz (Tue, 03 Mar 2020 17:20:05 GMT):
Has joined the channel.

Franz (Tue, 03 Mar 2020 17:20:06 GMT):
Hello everybody I'm new in Hyperledger community. I'm graduating in software engineering and I'm doing master thesis on hyperledger fabric integrating with solidity (so evm chaincode). I found just a few example and materiale about that and i found really unclear about the handling of roles, channels, peers and so on. some usefull advise about that ?

Antimttr (Tue, 03 Mar 2020 17:23:33 GMT):
any specific questions? those are kind of big topics

Franz (Tue, 03 Mar 2020 17:40:58 GMT):
the question is if someone could advise me well defined guide or examples to set up roles and permission using evm chaincode and solidity smart contract. Than how interact with the network(I found web3js using fab proxy, but I've some difficul to understand how to call transaction and handling the addresses and relatives permissions)

Tomas123213 (Tue, 03 Mar 2020 18:57:24 GMT):
Has joined the channel.

Tomas123213 (Tue, 03 Mar 2020 18:57:25 GMT):
Lets say I have a peer0.supplier peer that has TLS enabled and the ROOT_PEER_TLS_ROOTCERT_FILE comes from peerOrganizations/peer0.supplier.com/peers/peer0.supplier.com/tls, if I want to authenticate the Admin identity when trying to communicate with the peer (Admin user is in peerOrganizations/users/Admin@peer0.supplier.com/...), would I provide the tls certs of the Admin identity (../users/Admin@peer0..../tls) or of the peer itself (../peers/peer0.supplier.com/tls)?

Tomas123213 (Tue, 03 Mar 2020 18:57:25 GMT):
Lets say I have a peer0.supplier peer that has TLS enabled and the ROOT_PEER_TLS_ROOTCERT_FILE comes from peerOrganizations/peer0.supplier.com/peers/peer0.supplier.com/tls, if I want to authenticate the Admin identity when trying to communicate with the peer (Admin user is in peerOrganizations/peer0.supplier.com/users/Admin@peer0.supplier.com/...), would I provide the tls certs of the Admin identity (../users/Admin@peer0..../tls) or of the peer itself (../peers/peer0.supplier.com/tls)?

Tomas123213 (Tue, 03 Mar 2020 18:57:25 GMT):
Lets say I have a peer0.supplier peer that has TLS enabled and the CORE_PEER_TLS_ROOTCERT_FILE comes from peerOrganizations/peer0.supplier.com/peers/peer0.supplier.com/tls, if I want to authenticate the Admin identity when trying to communicate with the peer (Admin user is in peerOrganizations/peer0.supplier.com/users/Admin@peer0.supplier.com/...), would I provide the tls certs of the Admin identity (../users/Admin@peer0..../tls) or of the peer itself (../peers/peer0.supplier.com/tls)?

cmonkeydo (Tue, 03 Mar 2020 21:06:00 GMT):
Has joined the channel.

VladD 4 (Tue, 03 Mar 2020 22:12:54 GMT):
Has joined the channel.

VladD 4 (Tue, 03 Mar 2020 22:12:56 GMT):
Hi folks, Hyperledger fabric 1.4 . Fabric CA root cert is expired, which was valid for 1 year. We cant recreate from scratch the network setup, we need to somehow 1( renew rca cert 2( update the validity period . We have TLS enabled Any idea on how to approach this?

xhens (Tue, 03 Mar 2020 22:43:09 GMT):
I already did and the issue is solved now. I was getting confused by the documentation which was instructing to clone it on src/github.com//fabric

mexos (Wed, 04 Mar 2020 06:30:10 GMT):
Has joined the channel.

jinnyjinnyjinjin (Wed, 04 Mar 2020 07:58:30 GMT):
Hi, I've tried to build customized fabric network with latest version of `fabric-samples` and I've got this error when I create `genesis.block` with `configtxgen` command. `[common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID Failed to generate orderer genesis block...` I don't understand why channel ID needs to create genesis block which didn't need last time.. ` The command which I've tried is this -> `configtxgen -profile ProjectGenesis -outputBlock ./channel/genesis.block` Anyone know about this?

jinnyjinnyjinjin (Wed, 04 Mar 2020 07:58:30 GMT):
Hi, I've tried to build customized fabric network with latest version of `fabric-samples` and I've got this error when I create `genesis.block` with `configtxgen` command. `[common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID Failed to generate orderer genesis block...` I don't understand why channel ID needs to create genesis block which didn't need at configtxgen version 1.4. The command which I've tried is this -> `configtxgen -profile ProjectGenesis -outputBlock ./channel/genesis.block` Anyone know about this?

jinnyjinnyjinjin (Wed, 04 Mar 2020 07:58:30 GMT):
Hi, I've tried to build customized fabric network with latest version of `fabric-samples` and I've got this error when I create `genesis.block` with `configtxgen` command. `[common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID Failed to generate orderer genesis block...` I don't understand why channel ID needs to create genesis block which didn't need at configtxgen version 1.4. The command which I've tried is this -> `configtxgen -profile ProjectGenesis -outputBlock ./channel/genesis.block` Anyone know about this?

jinnyjinnyjinjin (Wed, 04 Mar 2020 07:59:08 GMT):
configtxgen version is 2.0.0

mexos (Wed, 04 Mar 2020 08:49:58 GMT):
Hi How do I see the complete ledger in fabric?

mexos (Wed, 04 Mar 2020 08:53:41 GMT):
If I am a participant inside the channel and I want to see all the transactions happened inside the ledger, is there a way apart from querying with the key value?

vineetmishra (Wed, 04 Mar 2020 08:59:59 GMT):
do you have idea about balance transfer release for fabric 2.0 for node.js

vineetmishra (Wed, 04 Mar 2020 09:01:46 GMT):
i am searching for install, commit chaincode nodejs scripts for fabric2.0 ? anyone know about it.Please helpo

vineetmishra (Wed, 04 Mar 2020 09:01:46 GMT):
i am searching for install, commit chaincode nodejs scripts for fabric2.0 ? anyone know about it.Please help

mexos (Wed, 04 Mar 2020 09:22:50 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/chaincode4ade.html

mexos (Wed, 04 Mar 2020 09:30:03 GMT):
peer chaincode install -n {chaincodename} -v ${VERSION} -l ${LANGUAGE} -p ${CC_SRC_PATH}

Jelle.Diet (Wed, 04 Mar 2020 09:35:50 GMT):
You could query the blocks and read their data

mexos (Wed, 04 Mar 2020 09:37:15 GMT):
If I want to see the transactional flow

mexos (Wed, 04 Mar 2020 09:37:23 GMT):
consider the case for a supply chaini

mexos (Wed, 04 Mar 2020 09:37:23 GMT):
consider the case for a supply chain

mexos (Wed, 04 Mar 2020 09:38:41 GMT):
I want to see all the stages for all the products because I'm conducting an audit may be, querying is the only way?

Jelle.Diet (Wed, 04 Mar 2020 09:50:50 GMT):
In this case maybe you could query for all the products, then loop over them and get their history using getHistoryForKey

mexos (Wed, 04 Mar 2020 09:52:49 GMT):
Hmm. May be this would solve my issue. Let me implement and get back to you

mexos (Wed, 04 Mar 2020 09:52:52 GMT):
Thanks

DeepakMaurya (Wed, 04 Mar 2020 10:58:47 GMT):
Hi All I have two node . chaincode install on first and second node . chaincode Instantiated on first node . and update chaincode agrument on second node . how to see the ledger transaction history ?.

mexos (Wed, 04 Mar 2020 12:06:56 GMT):
Query the ledger?

DeepakMaurya (Wed, 04 Mar 2020 12:14:18 GMT):
how to do this ?. can you explain in brief ?

chmpmps (Wed, 04 Mar 2020 13:13:02 GMT):
Hi everyone. I m working with private collections. Does anyone know where the transient data are stored and in which form in the peer till the block is received from the peer and the data are added to the couchdb?

chmpmps (Wed, 04 Mar 2020 13:13:02 GMT):
Hi everyone. I m working with private collections. Does anyone know where the transient data are stored and in which form in the peer till the block is received from the orderer and the data are added to the couchdb?

Taaanos (Wed, 04 Mar 2020 15:06:39 GMT):
Hi everyone, I'm trying the demo of commercial paper (2.0 version) I'm getting the following when I try to install the chaincode on the peer: ``` ```

Taaanos (Wed, 04 Mar 2020 15:06:39 GMT):
Hi everyone, I'm trying the demo of commercial paper (2.0 version) I'm getting the following when I try to install the chaincode on the peer: ``` Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing ```

Taaanos (Wed, 04 Mar 2020 15:23:47 GMT):
I think that there is a problem while creating the container for the chaincode

Taaanos (Wed, 04 Mar 2020 15:23:59 GMT):
I'm behind a proxy, so this might be an issue?/

Taaanos (Wed, 04 Mar 2020 15:23:59 GMT):
I'm behind a proxy, so this might be an issue?

Antimttr (Wed, 04 Mar 2020 17:00:38 GMT):
OK so I have a bunch of peers and fabric-ca's and the like all on one docker netowrk. None of them are setup to use port 7051 yet i am getting this constantly in my peer logs: ` UTC [gossip.discovery] func1 -> WARN 433 Could not connect to Endpoint: 127.0.0.1:7051, InternalEndpoint: 127.0.0.1:7051, PKI-ID: , Metadata: : context deadline exceeded`

Antimttr (Wed, 04 Mar 2020 17:00:51 GMT):
why would it be trying to connect to that port when nothing is on it ever...

Antimttr (Wed, 04 Mar 2020 17:08:32 GMT):
when the peer starts up i get this line: `2020-03-03 21:50:31.002 UTC [gossip.service] func1 -> INFO 0a4 Initialize gossip with endpoint peer1.org1.example.com:7011 and bootstrap set [127.0.0.1:7051]`

Antimttr (Wed, 04 Mar 2020 17:08:51 GMT):
why on earth qould it default to 7051 for its bootstrap, perhaps i need to set the parameter in env

Antimttr (Wed, 04 Mar 2020 17:15:01 GMT):
this seems to explain it: https://stackoverflow.com/questions/51377474/hyperledger-fabric-gossip-bootstrap-gossip-externalendpoints

Antimttr (Wed, 04 Mar 2020 17:15:15 GMT):
ok so i need to set my externalendpoint to the address of org2's anchor peer

Antimttr (Wed, 04 Mar 2020 17:15:34 GMT):
and i need to set my bootstrap to the list of the peers in the org

AliDar (Wed, 04 Mar 2020 20:10:03 GMT):
Has joined the channel.

AliDar (Wed, 04 Mar 2020 20:10:03 GMT):
HI Team, I brought my first network sample. Now trying to understand how it work. in script.sh file we define a path CC_SRC_PATH="github.com/chaincode/chaincode_example02/go/" -- I cant find folder github.com/ my path is /home/hlf/fabric-samples/chaincode/

salma_shalaby (Wed, 04 Mar 2020 21:22:59 GMT):
Hello,

Antimttr (Wed, 04 Mar 2020 21:23:26 GMT):
Hello, hello

salma_shalaby (Wed, 04 Mar 2020 21:23:30 GMT):
I am trying to develop my own chain code by following https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html

salma_shalaby (Wed, 04 Mar 2020 21:24:06 GMT):
The problem is that I am getting the following error: salma@salma-ThinkPad-T440s:~/go/src/patientcc$ go get -u github.com/hyperledger/fabric/core/chaincode/shim package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: /usr/lib/go-1.6/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT) /home/salma/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)

salma_shalaby (Wed, 04 Mar 2020 21:24:16 GMT):
any idea how i can resolve it?

Antimttr (Wed, 04 Mar 2020 21:24:53 GMT):
i think you want ot get the shim, have you downloaded the main hyperledger fabric repo? it is probably in their

salma_shalaby (Wed, 04 Mar 2020 21:25:00 GMT):
salma@salma-ThinkPad-T440s:~/go/src/patientcc$ echo $GOROOT salma@salma-ThinkPad-T440s:~/go/src/patientcc$ echo $GOPATH /home/salma/go

Antimttr (Wed, 04 Mar 2020 21:25:10 GMT):
i have never developed go based chaincode so i dont know too much about it

Antimttr (Wed, 04 Mar 2020 21:25:16 GMT):
i've stuck with node based chaincodes so far

Antimttr (Wed, 04 Mar 2020 21:25:51 GMT):
it'd be something like /home/youruser/go/src/github.com/hyperledger/fabric/

salma_shalaby (Wed, 04 Mar 2020 21:26:36 GMT):
once I run this command: go get -u github.com/hyperledger/fabric/core/chaincode/shim it downloads teh hyperledger repo

salma_shalaby (Wed, 04 Mar 2020 21:27:04 GMT):
but then I get this error

BrettLogan (Thu, 05 Mar 2020 00:43:55 GMT):
The shim has moved to `github.com/hyperledger/fabric-chaincode-go/shim` and protos have moved to `github.com/hyperledger/fabric-protos-go` so you'll need to `go get` them, then `go vendor` them into your chaincode and update the import statements

mahbub97 (Thu, 05 Mar 2020 05:30:42 GMT):
i am trying to setup fabric network without docker. when i ran peer channel create -o ${ORDERER_ADDRESS}:7050 -c ${CHANNEL} -f ./channel-artifacts/channel.txError reading from 127.0.0.1:47552: rpc error: code = Canceled desc = context canceled 2020-03-05 11:28:52.940 +06 [grpc] infof -> DEBU 014 transport: loopyWriter.run returning. connection error: desc = "transport is closing"

mahbub97 (Thu, 05 Mar 2020 05:30:42 GMT):
i am trying to setup fabric network without docker. when i ran peer channel create -o ${ORDERER_ADDRESS}:7050 -c ${CHANNEL} -f ./channel-artifacts/channel.tx ``` i got this error ``` Error reading from 127.0.0.1:47552: rpc error: code = Canceled desc = context canceled 2020-03-05 11:28:52.940 +06 [grpc] infof -> DEBU 014 transport: loopyWriter.run returning. connection error: desc = "transport is closing"

mahbub97 (Thu, 05 Mar 2020 05:31:15 GMT):
these error messeges pop out in orderer window

anaswar (Thu, 05 Mar 2020 06:46:13 GMT):
can anyone check what the issue is here? can you please help me out in this issue? https://stackoverflow.com/questions/60521531/unable-to-join-peer0-org2-to-channel-endorser-client-failed-to-connect-to-peer

barney2k7 (Thu, 05 Mar 2020 07:16:06 GMT):
I guess you're missing CORE_PEER_LISTENADDRESS on our peer, to let it actually listen on that port 10201

barney2k7 (Thu, 05 Mar 2020 07:16:06 GMT):
I guess you're missing CORE_PEER_LISTENADDRESS on your peer, to let it actually listen on that port 10201

barney2k7 (Thu, 05 Mar 2020 07:22:08 GMT):
When customizing ports, you need to make sure to override all relevant configurations, see https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml

Taaanos (Thu, 05 Mar 2020 08:12:04 GMT):
this should be under $GOPATH/src and $GOPATH=home/go

Taaanos (Thu, 05 Mar 2020 08:12:38 GMT):
Indeed, the problem was due to proxy

anaswar (Thu, 05 Mar 2020 09:55:00 GMT):
that was it, thanks!

anaswar (Thu, 05 Mar 2020 09:55:44 GMT):
can you post in as an answer in SO

anaswar (Thu, 05 Mar 2020 09:55:44 GMT):
can you post an answer in SO

barney2k7 (Thu, 05 Mar 2020 10:08:23 GMT):
Done

diasruipedro (Thu, 05 Mar 2020 11:56:43 GMT):
Has joined the channel.

mahbub97 (Thu, 05 Mar 2020 13:10:21 GMT):
i am trying to setup fabric network without docker. when i ran peer channel create -o ${ORDERER_ADDRESS}:7050 -c ${CHANNEL} -f ./channel-artifacts/channel.tx i got this error Error reading from 127.0.0.1:47552: rpc error: code = Canceled desc = context canceled 2020-03-05 11:28:52.940 +06 [grpc] infof -> DEBU 014 transport: loopyWriter.run returning. connection error: desc = "transport is closing"

mahbub97 (Thu, 05 Mar 2020 13:10:21 GMT):
i am trying to setup fabric network without docker. when i ran peer channel create -o ${ORDERER_ADDRESS}:7050 -c ${CHANNEL} -f ./channel-artifacts/channel.tx i got this error ```Error reading from 127.0.0.1:47552: rpc error: code = Canceled desc = context canceled 2020-03-05 11:28:52.940 +06 [grpc] infof -> DEBU 014 transport: loopyWriter.run returning. connection error: desc = "transport is closing"```

mahbub97 (Thu, 05 Mar 2020 13:10:21 GMT):
i am trying to setup fabric network without docker. when i ran peer channel create -o ${ORDERER_ADDRESS}:7050 -c ${CHANNEL} -f ./channel-artifacts/channel.tx i got this error ```Error reading from 127.0.0.1:47552: rpc error: code = Canceled desc = context canceled 2020-03-05 11:28:52.940 +06 [grpc] infof -> DEBU 014 transport: loopyWriter.run returning. connection error: desc = "transport is closing"``` the error was pop out in orderer window

bigworld12 (Thu, 05 Mar 2020 13:44:36 GMT):
should i add a role for application users that register using the application or do i just use the existing "user" Node OU

Jelle.Diet (Thu, 05 Mar 2020 14:31:59 GMT):
just using "user" will be fine

Jelle.Diet (Thu, 05 Mar 2020 14:47:07 GMT):
Working with files, I am storing a hash on the blockchain and the actual files themselves seperate, but was planning on using the Fabric private/public keypair for encrypting the files asymmetrically. Are there any security concerns with this?

Antimttr (Thu, 05 Mar 2020 16:06:49 GMT):
why when you give a peer command from within the peer's container does it have to connect via tls?

Antimttr (Thu, 05 Mar 2020 16:07:09 GMT):
is it one peer execution connecting to the restful api of the other peer in memory?

BrettLogan (Thu, 05 Mar 2020 16:09:12 GMT):
Correct, they are separate processes, the second command has no knowledge of the peer server running in memory

Antimttr (Thu, 05 Mar 2020 16:09:38 GMT):
hey btl, i've been having a lot of difficulty trying to give commands to my peer from within the container

BrettLogan (Thu, 05 Mar 2020 16:09:51 GMT):
We actually recommend you don't use the peer binary inside the peer container itself

BrettLogan (Thu, 05 Mar 2020 16:10:05 GMT):
You should launch fabric-tools and use that

Antimttr (Thu, 05 Mar 2020 16:10:14 GMT):
ok but either way i do it i get the same error message

Antimttr (Thu, 05 Mar 2020 16:10:16 GMT):
Err :connection error: desc = "transport: authentication handshake failed: x509: certificate is not valid for any names, but wanted to match peer1.org1.example.com". Reconnecting...

BrettLogan (Thu, 05 Mar 2020 16:10:16 GMT):
But, regardless, what issue are you seing

BrettLogan (Thu, 05 Mar 2020 16:10:30 GMT):
whats the full command you are using

Antimttr (Thu, 05 Mar 2020 16:10:44 GMT):
peer chaincode list --installed

Antimttr (Thu, 05 Mar 2020 16:11:12 GMT):
i can paste my configs here, and my cert info

Antimttr (Thu, 05 Mar 2020 16:11:20 GMT):
ive been over it all 10 times but clearly somethings off

Antimttr (Thu, 05 Mar 2020 16:12:43 GMT):
so would this be a tls issue?

Antimttr (Thu, 05 Mar 2020 16:13:00 GMT):
and how could it be a tls issue if the certs are exactly the same

BrettLogan (Thu, 05 Mar 2020 16:13:03 GMT):
Give me one minute to test this myself

Antimttr (Thu, 05 Mar 2020 16:13:05 GMT):
since its from within the same container

Antimttr (Thu, 05 Mar 2020 16:29:57 GMT):
same thing happens on any of the peers i try it on

Antimttr (Thu, 05 Mar 2020 16:33:32 GMT):
i've verified in my signcert i do have the ip address its trying to connect to

BrettLogan (Thu, 05 Mar 2020 16:33:45 GMT):
The ip address, or the hostname?

BrettLogan (Thu, 05 Mar 2020 16:33:53 GMT):
Sorry, just now getting to testing this?

Antimttr (Thu, 05 Mar 2020 16:34:01 GMT):
both

Antimttr (Thu, 05 Mar 2020 16:34:05 GMT):
the hostname is the CN

BrettLogan (Thu, 05 Mar 2020 16:34:06 GMT):
Ok, just making sure

Antimttr (Thu, 05 Mar 2020 16:34:10 GMT):
and the ip is in the SAN

Antimttr (Thu, 05 Mar 2020 16:34:23 GMT):
do i need the hostname in the san as well?

BrettLogan (Thu, 05 Mar 2020 16:34:35 GMT):
No, its satisfied by the CN

Antimttr (Thu, 05 Mar 2020 16:35:03 GMT):
but im not even sure its using the right cert because of this: ` x509: certificate is not valid for any names, but wanted to match peer1.org1.example.com`

Antimttr (Thu, 05 Mar 2020 16:35:25 GMT):
would it use the CORE_PEER_TLS_CERT_FILE to connect?

Antimttr (Thu, 05 Mar 2020 16:35:39 GMT):
would that even work to connect to itself?

BrettLogan (Thu, 05 Mar 2020 16:36:11 GMT):
when you call the peer command add the `--cafile` and `--certfile` flags and point them to your peers certs

Antimttr (Thu, 05 Mar 2020 16:36:40 GMT):
sorry something popped up then it disapeered

Antimttr (Thu, 05 Mar 2020 16:36:45 GMT):
which flags?

Antimttr (Thu, 05 Mar 2020 16:40:25 GMT):
looking at the arguments for peer it seems that --certfile is used for communication with the orderer

Antimttr (Thu, 05 Mar 2020 16:41:31 GMT):
i guess im wondering if this error message im getting is generated by communication with the peer api or the orderer api

Antimttr (Thu, 05 Mar 2020 16:41:35 GMT):
cuz the orderer logs are empty

Antimttr (Thu, 05 Mar 2020 16:45:07 GMT):
just tried it with the cli node and its the same error

diasruipedro (Thu, 05 Mar 2020 17:33:05 GMT):
Hi all. I'm trying to unit test a chaincode that I developed in Go, but when I try to invoke "stub.MockInvoke()", how can I pass the separated arguments? The chaincode method as the same signature as the CreateCar in fabcar chaincode. Thank you!

Antimttr (Thu, 05 Mar 2020 18:33:16 GMT):
https://github.com/golang/go/issues/24293

Antimttr (Thu, 05 Mar 2020 18:33:19 GMT):
this is interesting

Antimttr (Thu, 05 Mar 2020 18:33:32 GMT):
so basically if that thread is to be beleived the grpc in go doesnt even check CN for hostname

Antimttr (Thu, 05 Mar 2020 18:33:38 GMT):
or only as a last resort

Antimttr (Thu, 05 Mar 2020 18:33:50 GMT):
so it seems you HAVE to have the hostname in the SAN

Antimttr (Thu, 05 Mar 2020 18:41:00 GMT):
that was it! :owl:

BrettLogan (Thu, 05 Mar 2020 19:00:54 GMT):
That seems interesting. I'm going to run that by one of our SME's

Antimttr (Thu, 05 Mar 2020 19:01:20 GMT):
i checked the tls sign certs in the balance-transfer example

Antimttr (Thu, 05 Mar 2020 19:01:27 GMT):
and they also duplicate the CN to the SAN

BrettLogan (Thu, 05 Mar 2020 19:31:27 GMT):
https://www.digicert.com/subject-alternative-name-compatibility.htm

BrettLogan (Thu, 05 Mar 2020 19:31:50 GMT):
Did not know that you ignore the CN when a SAN is specified, I learned something today

Antimttr (Thu, 05 Mar 2020 19:33:17 GMT):
same

Antimttr (Thu, 05 Mar 2020 19:33:37 GMT):
glad im unstuck on that problem, now back to channel instantiation

Antimttr (Thu, 05 Mar 2020 22:01:09 GMT):
does anyone know if there's a way to seperate out the log types in the peer log, there's so much gossip noise that its hard to figure out anything from the logs

BrettLogan (Thu, 05 Mar 2020 22:42:57 GMT):
We actually had an hour long meeting today about the need for improvement in how we log. I'm not sure if you can pick just the log level of gossip to change or turn off. I'll ask in the office in the morning.

Antimttr (Thu, 05 Mar 2020 22:43:38 GMT):
do you have any any tips i could use for troubleshooting a chaincode instantiation issue?

Antimttr (Thu, 05 Mar 2020 22:44:04 GMT):
im just getting timeouts on all my proposals except to my first peer in org1

Antimttr (Thu, 05 Mar 2020 22:44:15 GMT):
which doesnt return any reason why it fails

BrettLogan (Thu, 05 Mar 2020 22:45:52 GMT):
What log level do you have on

Antimttr (Thu, 05 Mar 2020 22:45:59 GMT):
debug

Antimttr (Thu, 05 Mar 2020 22:46:02 GMT):
for my first peer

Antimttr (Thu, 05 Mar 2020 22:46:47 GMT):
i checked using cli and the chaincode is installed on to the peer

BrettLogan (Thu, 05 Mar 2020 22:47:38 GMT):
I just want to clarify cuz I'm a bit confused, did the instantiate fail on the first peer, or was it successful

Antimttr (Thu, 05 Mar 2020 22:47:58 GMT):
it failed, just with an empty message in the proposal response

Antimttr (Thu, 05 Mar 2020 22:48:07 GMT):
i know because i checked after

BrettLogan (Thu, 05 Mar 2020 22:48:08 GMT):
Can you share the log from the peer I'll take a look at it

Antimttr (Thu, 05 Mar 2020 22:48:14 GMT):
sure

Antimttr (Thu, 05 Mar 2020 22:49:41 GMT):
copying the log now i just sent a proposal at 22:48 UTC

Antimttr (Thu, 05 Mar 2020 22:50:30 GMT):
its about 24mb but i think you can skip to the end

Antimttr (Thu, 05 Mar 2020 22:51:16 GMT):
ill zip it up

BrettLogan (Thu, 05 Mar 2020 22:51:49 GMT):
If you zip it, name it with a `.txt` ending rocketchat rejects anything ending in .tar.gz, .tgz, or .zip

Antimttr (Thu, 05 Mar 2020 22:51:58 GMT):
ok

Antimttr (Thu, 05 Mar 2020 22:52:12 GMT):
you think i could email it to you? its got my vps ip in it,

BrettLogan (Thu, 05 Mar 2020 22:52:29 GMT):
Let me give ping you

Antimttr (Thu, 05 Mar 2020 22:54:54 GMT):
really appreciate you taking a look

ZainabM (Fri, 06 Mar 2020 05:51:44 GMT):
Join channel fails with the following error many a times when we run the start.sh script to setup the fabric network: Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.18.0.6:7051: connect: connection refused". And exit $? does not return any value. So how to to check if our join is success in the script?

RahulDesai (Fri, 06 Mar 2020 05:51:47 GMT):
Has joined the channel.

Amanullah68 (Fri, 06 Mar 2020 06:25:28 GMT):
Hi all, I've just started working on fabric 1.4

Amanullah68 (Fri, 06 Mar 2020 06:26:59 GMT):
I'm following official documentation. If anyone have any tutorial link or any other best possible that make my learning easy, share with me. thanks advance

totolouis (Fri, 06 Mar 2020 06:46:31 GMT):
Has joined the channel.

totolouis (Fri, 06 Mar 2020 06:57:04 GMT):
Hi, I have this error `error: [NetworkConfig]: buildPeer - Unable to connect to the endorser Org1Peer1 due to TypeError: Channel third argument (options) must be an object with string keys and integer or string values` when I am trying to connect to a gateway. Here is the connection lines: ``` const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'user1', discovery: { enabled: true, asLocalhost: true } }); const network = await gateway.getNetwork('mychannel'); ``` Thanks

totolouis (Fri, 06 Mar 2020 06:57:04 GMT):
Hi, I have this error `error: [NetworkConfig]: buildPeer - Unable to connect to the endorser Org1Peer1 due to TypeError: Channel third argument (options) must be an object with string keys and integer or string values` when I am trying to connect to a gateway. Here is the connection lines: ``` const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'user1', discovery: { enabled: true, asLocalhost: true } }); const network = await gateway.getNetwork('mychannel'); ``` Does someone know where does it come from ? The user1 and one admin are already present inside the network.

totolouis (Fri, 06 Mar 2020 06:57:04 GMT):
Hi, I have this error `error: [NetworkConfig]: buildPeer - Unable to connect to the endorser Org1Peer1 due to TypeError: Channel third argument (options) must be an object with string keys and integer or string values` when I am trying to connect to a gateway. Here is the connection lines: ``` const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: 'user1', discovery: { enabled: true, asLocalhost: true } }); const network = await gateway.getNetwork('mychannel'); ``` Does someone know where does it come from ? The user1 and one admin are already present inside the network. Thanks for your help.

irfanbaba (Fri, 06 Mar 2020 06:58:27 GMT):
Has joined the channel.

irfanbaba (Fri, 06 Mar 2020 06:58:29 GMT):
Hi am facing issue with couchdb as changed version latest to 2.2, when am trying to make network up getting warning message saying "connection pool is full, disconnecting to localhost" and peer containers getting exited throwing error "check host and port tcp connection refused please provide if any insights

barney2k7 (Fri, 06 Mar 2020 07:01:31 GMT):
are you using the couchdb container provided by fabric (hyperledger/fabric-couchdb)? That one 'just worked' for me. Not sure about other couchdb setups.

irfanbaba (Fri, 06 Mar 2020 07:02:00 GMT):
am using couchdb:2.2

irfanbaba (Fri, 06 Mar 2020 07:07:39 GMT):
when am using hyperledger/fabric-couchdb throwing eventhub error

mexos (Fri, 06 Mar 2020 07:29:17 GMT):
what does this container actually do? dev-peer0.org2.example.com-fabcar-1.0-

WhytNigga (Fri, 06 Mar 2020 08:24:00 GMT):
Has joined the channel.

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found..

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found..``` while on first-network : ./byfn generate results as ```

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found. while on first-network : ./byfn generate results as `./byfn.sh: line 312: /home/dude/fabric-samples/first-network/../bin/cryptogen: No such file or directory + res=127 + set +x Failed to generate certificates... `

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found. while on first-network : ./byfn generate results as `./byfn.sh generate: line 312: /home/dude/fabric-samples/first-network/../bin/cryptogen: No such file or directory + res=127 + set +x Failed to generate certificates... `

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found. while on first-network : ./byfn generate results as `./byfn.sh generate: line 312: /home/dude/fabric-samples/first-network/../bin/cryptogen: No such file or directory + res=127 + set +x Failed to generate certificates... ` please help...!

WhytNigga (Fri, 06 Mar 2020 08:24:01 GMT):
New to Hyperledger fabric v2.0 in alpine linux --while trying to get the test-network up and running from the fabric samples. I've gone through all the pre-reqs and got docker going, but when I run ./network.sh up, it tells me :ERROR! Peer binary and configuration files not found. while on first-network : ./byfn generate results as `./byfn.sh generate: line 312: /home/dude/fabric-samples/first-network/../bin/cryptogen: No such file or directory + res=127 + set +x Failed to generate certificates... ` please help...!

JazibAbdullah (Fri, 06 Mar 2020 08:29:47 GMT):
Has joined the channel.

JazibAbdullah (Fri, 06 Mar 2020 08:29:47 GMT):
Hello everyone .I am working on hyperledger with ibm vscode extension .now i got this error ``` ``` Error instantiating smart contract: chaincode registration failed: timeout expired while starting chaincode ``` ``` anyone can help?

msolefonte (Fri, 06 Mar 2020 08:31:08 GMT):
Hello

msolefonte (Fri, 06 Mar 2020 08:31:52 GMT):
Can someone take a look at this issue? It is related to `fabric-contract-api` (chaincode development in Node.js) https://stackoverflow.com/questions/60546916/unable-to-use-interfaces-in-fabric-contract-api

TBigjohn (Fri, 06 Mar 2020 08:59:46 GMT):
Hello, could someone explain me in detail how affiliation is used when registering users ? For me affiliation is used to mention the organisation of which is part the user. I am not sure if this is totally true, I thing there is a link with CN, or Organisation Unit, or ... We are using Hurley to generate our Fabric Network with 3 different organizations. We gave those organizations dedicated names, the network creation is working well. If I connect into the docker container of one of the CA and I launch the command "identity list", I can see that, the users created by Hurley are showing an affiliation to "org1" which is not the name of any of the organizations of my network. Does anybody know where this org1 name is coming from ? Is it a default value setup somewhere ? Thanks

barney2k7 (Fri, 06 Mar 2020 09:02:24 GMT):
org1 etc. is from the ca default config file, see https://github.com/hyperledger/fabric-ca/blob/release-1.4/cmd/fabric-ca-server/config.go#L277

barney2k7 (Fri, 06 Mar 2020 09:04:08 GMT):
I managed to prevent those from being created by setting FABRIC_CA_SERVER_AFFILIATIONS=[] (which overrides the default config). Not sure this is the 'official' way of handling this though...

TBigjohn (Fri, 06 Mar 2020 09:38:05 GMT):
Thanks. I will have a look to this.

barney2k7 (Fri, 06 Mar 2020 09:51:49 GMT):
Assuming you have separate CA certificates for your 3 different organizations, you probably don't need to use affiliations, as the issuer of the user certificate already represents one of the organizations. From what I understand affiliations are useful to represent subdivisions of an organization (and thus, of a CA certificate), which is also why the affiliation is represented in the user certificate as an OU attribute (organization unit).

barney2k7 (Fri, 06 Mar 2020 09:52:09 GMT):
Assuming you have separate CA certificates for your 3 different organizations, you probably don't need to use affiliations, as the issuer of the user certificate already represents one of the organizations. From what I understand affiliations are useful to represent subdivisions of an organization (and thus, of a CA certificate), which is also why the affiliation is represented in the user certificate as an OU attribute (organization unit).

barney2k7 (Fri, 06 Mar 2020 09:53:04 GMT):
But again, that's my (limited) understanding, not sure about how this is meant to work 'officially'

msolefonte (Fri, 06 Mar 2020 10:00:44 GMT):
Hello. I am developing a chaincode written in Typescript using `fabric-contract-api` and the IBM Blockchain Platform plugin for Visual Studio Code. My asset is called `Order` and, though tests pass perfectly, I am unable to instantiate it. The error I get is the following one: ``` [6/3/2020 10:51:34] [INFO] fabricvscodelocalfabric-Org1Peer1-06-chaincode-1.0.0|{ [Error: can't resolve reference Object from id Order#] [6/3/2020 10:51:34] [INFO] fabricvscodelocalfabric-Org1Peer1-06-chaincode-1.0.0| message: 'can\'t resolve reference Object from id Order#', [6/3/2020 10:51:34] [INFO] fabricvscodelocalfabric-Org1Peer1-06-chaincode-1.0.0| missingRef: 'Object', [6/3/2020 10:51:34] [INFO] fabricvscodelocalfabric-Org1Peer1-06-chaincode-1.0.0| missingSchema: 'Object' } ``` I think that the log is not clear enough and I am unable to locate the problem. What does it mean? Do anyone know how to solve it?

TBigjohn (Fri, 06 Mar 2020 10:27:32 GMT):
I succeeded to modify the ca config file within the ca container and I restarted the container. Still getting the following err msg: Failed getting affiliation 'myorg': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]]

barney2k7 (Fri, 06 Mar 2020 10:30:08 GMT):
Did you keep the database? It might be that the affiliations from the config file are only put into the database when the database is still empty, i.e. on the first ca container startup

barney2k7 (Fri, 06 Mar 2020 10:30:32 GMT):
You can however create new affiliations any time using the fabric-ca-client

erodotosd (Fri, 06 Mar 2020 10:35:14 GMT):
Has joined the channel.

ericripi (Fri, 06 Mar 2020 11:17:44 GMT):
Has joined the channel.

barney2k7 (Fri, 06 Mar 2020 11:38:13 GMT):
It seems I was wrong, the affiliations are checked on every startup (visible in log level DEBUG)

msolefonte (Fri, 06 Mar 2020 11:39:28 GMT):
Hello. Can someone take a look at this issue? https://stackoverflow.com/questions/60562546/hyperledger-fabric-node-js-chaincode-error-cant-resolve-reference-object-from

rushiraj111 (Fri, 06 Mar 2020 11:47:53 GMT):
Hi everyone, Can anyone let me know if it is possible to migrate from composer to NodeSDK without losing data?

TBigjohn (Fri, 06 Mar 2020 12:05:34 GMT):
ok I have been able to do it using "fabric-ca-client affiliation add". So modify manually the yaml config file of the ca doesn't seems to be the right way. Thanks for your help

jital (Fri, 06 Mar 2020 15:41:06 GMT):
Has joined the channel.

braduf (Fri, 06 Mar 2020 23:07:25 GMT):
Hi all, I have noticed that everytime I generate a genesis block, even from exactly the same configtx.yaml file, the hash of the block always changes. Shouldn't this always be the same so that every organization can generate the block independently in their own pipeline when a change to the configtx.yaml is done?

braduf (Fri, 06 Mar 2020 23:07:25 GMT):
Hi all, I have noticed that everytime I generate a genesis block, even from exactly the same configtx.yaml file, the hash of the block always changes. Shouldn't this always be the same so that every organization can generate the block independently in their own pipeline when a change to the configtx.yaml is done? Or are we doing something wrong? Can we do something so that every org can independently generate the exact same block just by having the configtx.yaml file?

braduf (Fri, 06 Mar 2020 23:14:30 GMT):
I've noticed that these are the differences between blocks: 1322c1322 < "timestamp": "2020-03-06T23:07:39Z", --- > "timestamp": "2020-03-06T14:43:07Z", 1324c1324 < "tx_id": "563d464d7de6635b16ed21a727920b72e94b34af4165e4edabc0c2c2718ddc19", --- > "tx_id": "c564d7ebd9fec7bf42ab7a346a79779e71280f3c366fefac5d67a9b47a57a4fa", 1330c1330 < "nonce": "oQcFMsJVlaoM5zgJRLDhsclrSf2u+9fw" --- > "nonce": "nXhSTJcx8qvK8e9+IcXtioRJHP38rvYa" 1339c1339 < "data_hash": "ir1+KQvQgeraK/ewMAidsbrbklOKHrkh+0qH79c2Mhg=", --- > "data_hash": "IIIOxI+99Kr6UWmbjDJfr4ZSCN0Qi+0pDrRn1S+IlWM=",

braduf (Fri, 06 Mar 2020 23:15:42 GMT):
does the tx_id and consecutevily the nonce and data_hash depend on the timestamp?

Antimttr (Fri, 06 Mar 2020 23:19:43 GMT):
AFAIK every org in the consortium doesn't generate their own genesis block for a channel,

Antimttr (Fri, 06 Mar 2020 23:20:28 GMT):
the ordering org will do that and then the peer orgs will join the channel once an orderer has been put online with the genesis block

braduf (Fri, 06 Mar 2020 23:20:50 GMT):
Or in other words: Will the block be the same if the timestamp would be the same? In that case, I think the timestamp should be part of the configtx.yaml file, so that the consortium can define together when the start of the network is and so every participant can generate the same block independently, instead of it being based on the moment the configtxgen is used... For me it is a major problem to have a descentralized network, because the whole network depends on one org to create the genesis block... What do you guys think?

braduf (Fri, 06 Mar 2020 23:21:16 GMT):
In a real decentralized production network there shouldn't exist just one ordering org...

Antimttr (Fri, 06 Mar 2020 23:21:30 GMT):
right there'll be mulitple ordering orgs

Antimttr (Fri, 06 Mar 2020 23:21:33 GMT):
but only one genesis block

Antimttr (Fri, 06 Mar 2020 23:21:50 GMT):
one of those orgs will generate it, and pass it to the others out of band

braduf (Fri, 06 Mar 2020 23:22:15 GMT):
Yes, I understand that, my point is that I think it shouldn't be like that

Antimttr (Fri, 06 Mar 2020 23:22:29 GMT):
you should submit a jira problem for it and see if it gets traction

Antimttr (Fri, 06 Mar 2020 23:22:40 GMT):
or maybe its not jira anymore, but whatever system they're using now

braduf (Fri, 06 Mar 2020 23:22:42 GMT):
I think that from the same configtx.yaml file, the block always should be the same

braduf (Fri, 06 Mar 2020 23:24:48 GMT):
then there is no dependency of one org to generate it and everyone can just mount its orderers independently, based on the same configtx.yaml, that can be shared in a repo. Like this you don't have to inspect the block you receive, because you already reviewed and approved the code of the configtx.yaml file in the repo.

ravinayag (Sat, 07 Mar 2020 03:58:07 GMT):
Hello, I'm using basic network sample of 1.4.2 binaries. I did chain code upgrades multiple times. I need a help on this. 1. Can we remove/delete old cc containers after cc upgrade ? E.x. mycc version 1.0 later mycc version 1.1 , 1.2 Can I delete version 1.0 container ? 2. Its vague , My cc upgrade taking/ creating random containers from previously deployed chain code. I don't know why ? Don't know how to trace it. The current workaround i do, full fab network down with volume prune and remove containers from docker image rm commands. Then start again from fresh... Is it expected behaviour ? Appreciate your help

braduf (Sat, 07 Mar 2020 21:07:31 GMT):
I think in v1.4.4 you had the option to use GenesisProfile instead of a genesis block. Was this the configtx.yaml file?

braduf (Sat, 07 Mar 2020 21:07:31 GMT):
I think in v1.4.4 you had the option to use GenesisProfile instead of a genesis block. Was this the configtx.yaml file? And what is the reason it got taken out of v2.0.x?

BrettLogan (Sat, 07 Mar 2020 21:58:24 GMT):
Why do you think it was removed @braduf

braduf (Sat, 07 Mar 2020 22:00:28 GMT):
I have seen it was not really what I needed either and I understand why it got removed, it was just for development and it would also just be for one orderer (org) in a test environment...

braduf (Sat, 07 Mar 2020 22:00:51 GMT):
It was not what I am proposing now

BrettLogan (Sat, 07 Mar 2020 22:01:34 GMT):
I ask because we didn't remove it, it still exists, the only change was renaming `GenesisMethod` to `BootstrapMethod`

braduf (Sat, 07 Mar 2020 22:02:01 GMT):
In the release notes of v2.0.0 it says it is removed...

braduf (Sat, 07 Mar 2020 22:02:26 GMT):
FAB-16722: The 'provisional' genesis method of generating the system channel for orderers has been removed. Existing users of the provisional genesis method should instead set BootstrapMethod to 'file', and generate a genesis block file using configtxgen. Orderer nodes will then use the generated file for the orderer system channel.

BrettLogan (Sat, 07 Mar 2020 22:05:12 GMT):
OK, I misunderstood what you were saying, we removed the `provisional` method not the GenesisProfile itself

BrettLogan (Sat, 07 Mar 2020 22:06:38 GMT):
We rewrote it to support the ability of starting Orderers without having to bootstrap them, so essentially you can start an orderer without it joining any channels, including system channels

braduf (Sat, 07 Mar 2020 22:09:02 GMT):
Yeah, i think it is a great feature to be able to start the orderer without genesis block, this way you can separate mounting your components from the artifacts part. Thank you for that! Btw, what do you think about every org being able to create the same genesis block independently and use the same timestamp for the channel header, like some sort of time of the foundation of the consortium... And that way not depending of one org to create the genesis block...

braduf (Sat, 07 Mar 2020 22:09:02 GMT):
Yeah, i think it is a great feature to be able to start the orderer without genesis block, this way you can separate mounting your components from the artifacts part. Thank you for that! Btw, what do you think about every org being able to create the same genesis block independently and use the same timestamp for the channel header, like some sort of time of the foundation of the consortium... And that way not depending on one org to create the genesis block...

braduf (Sat, 07 Mar 2020 22:09:02 GMT):
Yeah, i think it is a great feature to be able to start the orderer without genesis block, this way you can separate mounting your components from the artifacts part. Thank you for that! Btw, @BrettLogan , what do you think about every org being able to create the same genesis block independently and use the same timestamp for the channel header, like some sort of time of the foundation of the consortium... And that way not depending on one org to create the genesis block...

braduf (Sat, 07 Mar 2020 22:10:08 GMT):
I have just noticed in building consortiums that it is always a discussion and they always start doubting if it is decentralized if one org does something that others shouldn't...

jancumps (Sun, 08 Mar 2020 11:49:08 GMT):
Has joined the channel.

obelix (Sun, 08 Mar 2020 14:51:05 GMT):
Has joined the channel.

theDweeb (Sun, 08 Mar 2020 22:24:54 GMT):
can anyone point me towards a source to dynamically add organizations to a network without having to bring it down?

Antimttr (Mon, 09 Mar 2020 00:39:50 GMT):
ive never seen anything about bringing down the network when you add an org

Javi (Mon, 09 Mar 2020 08:20:25 GMT):
Hi all, I'm seeing this error in my network logs `[common.deliver] deliverBlocks -> ERRO bdb [channel: mychannel] Error reading from channel, cause was: NOT_FOUND`, but if I enter to my peer and execute `peer channel getinfo -c mychannel`, the response is `Blockchain info: {"height":1,"currentBlockHash":"+JvMVRdk6NHcY00OjVLAdsmDQ31hgpgHNvi0dIr00NM="}`, anyone know what happen?

Javi (Mon, 09 Mar 2020 08:20:25 GMT):
Hi all, I'm seeing this error in my network logs `[common.deliver] deliverBlocks -> ERRO bdb [channel: mychannel] Error reading from channel, cause was: NOT_FOUND`, but if I enter to my peer and execute `peer channel getinfo -c mychannel`, the response is `Blockchain info: {"height":1,"currentBlockHash":"+JvMVRdk6NHcY00OjVLAdsmDQ31hgpgHNvi0dIr00NM="}`, anyone know what happens?

Javi (Mon, 09 Mar 2020 08:23:59 GMT):
and if I execute `peer channel list`, the command output is: ``` Channels peers has joined: mychannel ```

vanitas92 (Mon, 09 Mar 2020 08:27:50 GMT):
Hi everyone, a colleague and I have made a post on how to implement the new feature of External Chaincodes in Kubernetes environments, take a look and happy to receive some feedback from it. Thanks! https://medium.com/@pau.aragones/how-to-implement-hyperledger-fabric-external-chaincodes-within-a-kubernetes-cluster-fd01d7544523

Bolzo 1 (Mon, 09 Mar 2020 11:27:46 GMT):
Hi, I've migrated to Fabric 2.0 and it seems that the chaincode approval is not working for me.. I've followed the documentation so I'm able to package, install and query the installed chaincode. It seems that I'm also able to execute the ```approveformyorg``` command for each organization. In fact, the command is for example: ``` peer lifecycle chaincode approveformyorg -o orderer.org2.ifin.it:7050 --tls --cafile $ORDERER_CA2 --peerAddresses peer0.org2.ifin.it:8051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ifin.it/peers/peer0.org2.ifin.it/tls/ca.crt --channelID agrifood-channel --name notarizationChaincode --version 1.0 --init-required --package-id NotarizationChaincode:75017bf9e0592e95c9e69d85a33aba9a697dfa7d19a5aee2a3ff839bb802d99d --sequence 1 --signature-policy "OutOf (2, 'Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')" ``` And I get this message, for all orgs: ``` [chaincodeCmd] ClientWait -> INFO 001 txid [464601cf4aa6a4d357702ad5d46b6eb843c03b8c001e8dbe83e6cd13bc5413da] committed with status (VALID) at peer0.org2.ifin.it:8051 ``` But when I try: ``` peer lifecycle chaincode checkcommitreadiness -o orderer.org1.ifin.it:7050 --channelID agrifood-channel --tls --cafile $ORDERER_CA1 --name notarizationChaincode --version 1.0 --init-required --sequence 1 ``` I get: ``` Chaincode definition for chaincode 'notarizationChaincode', version '1.0', sequence '1' on channel 'agrifood-channel' approval status by org: Org1MSP: false Org2MSP: false Org3MSP: false ``` I don't understand what I'm missing, can someone help me please?

Bolzo 1 (Mon, 09 Mar 2020 11:27:46 GMT):
Hi, I've migrated to Fabric 2.0 and it seems that the chaincode approval is not working for me.. I've followed the documentation so I'm able to package, install and query the installed chaincode. It seems that I'm also able to execute the ``` approveformyorg ``` command for each organization. In fact, the command is for example: ``` peer lifecycle chaincode approveformyorg -o orderer.org2.ifin.it:7050 --tls --cafile $ORDERER_CA2 --peerAddresses peer0.org2.ifin.it:8051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ifin.it/peers/peer0.org2.ifin.it/tls/ca.crt --channelID agrifood-channel --name notarizationChaincode --version 1.0 --init-required --package-id NotarizationChaincode:75017bf9e0592e95c9e69d85a33aba9a697dfa7d19a5aee2a3ff839bb802d99d --sequence 1 --signature-policy "OutOf (2, 'Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')" ``` And I get this message, for all orgs: ``` [chaincodeCmd] ClientWait -> INFO 001 txid [464601cf4aa6a4d357702ad5d46b6eb843c03b8c001e8dbe83e6cd13bc5413da] committed with status (VALID) at peer0.org2.ifin.it:8051 ``` But when I try: ``` peer lifecycle chaincode checkcommitreadiness -o orderer.org1.ifin.it:7050 --channelID agrifood-channel --tls --cafile $ORDERER_CA1 --name notarizationChaincode --version 1.0 --init-required --sequence 1 ``` I get: ``` Chaincode definition for chaincode 'notarizationChaincode', version '1.0', sequence '1' on channel 'agrifood-channel' approval status by org: Org1MSP: false Org2MSP: false Org3MSP: false ``` I don't understand what I'm missing, can someone help me please?

Bolzo 1 (Mon, 09 Mar 2020 11:27:46 GMT):
Hi, I've migrated to Fabric 2.0 and it seems that the chaincode approval is not working for me.. I've followed the documentation so I'm able to package, install and query the installed chaincode. It seems that I'm also able to execute the approveformyorg command for each organization. In fact, the command is for example: ``` peer lifecycle chaincode approveformyorg -o orderer.org2.ifin.it:7050 --tls --cafile $ORDERER_CA2 --peerAddresses peer0.org2.ifin.it:8051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.ifin.it/peers/peer0.org2.ifin.it/tls/ca.crt --channelID agrifood-channel --name notarizationChaincode --version 1.0 --init-required --package-id NotarizationChaincode:75017bf9e0592e95c9e69d85a33aba9a697dfa7d19a5aee2a3ff839bb802d99d --sequence 1 --signature-policy "OutOf (2, 'Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')" ``` And I get this message, for all orgs: ``` [chaincodeCmd] ClientWait -> INFO 001 txid [464601cf4aa6a4d357702ad5d46b6eb843c03b8c001e8dbe83e6cd13bc5413da] committed with status (VALID) at peer0.org2.ifin.it:8051 ``` But when I try: ``` peer lifecycle chaincode checkcommitreadiness -o orderer.org1.ifin.it:7050 --channelID agrifood-channel --tls --cafile $ORDERER_CA1 --name notarizationChaincode --version 1.0 --init-required --sequence 1 ``` I get: ``` Chaincode definition for chaincode 'notarizationChaincode', version '1.0', sequence '1' on channel 'agrifood-channel' approval status by org: Org1MSP: false Org2MSP: false Org3MSP: false ``` I don't understand what I'm missing, can someone help me please?

vanitas92 (Mon, 09 Mar 2020 12:11:06 GMT):
The `approveformyorg` command was done using the `--signature-policy "OutOf (2, 'Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')"` flag which sets the signature policy. You execute the `checkcommitreadiness` without this flag and this might be the cause of it. Can you try executing the `checkcommitreadiness` command adding the same signature-policy flag as `approveformyorg`?

Bolzo 1 (Mon, 09 Mar 2020 13:06:19 GMT):
Yes! that was the problem, thanks!

vanitas92 (Mon, 09 Mar 2020 13:08:45 GMT):
Happy to help, depending how your endorsment policy has been configured in the channel, it may fail when you do the `commit` command, even with the same `signature-policy` flag. Hope that does not happen to you.

Bolzo 1 (Mon, 09 Mar 2020 13:27:09 GMT):
In fact, it fails on the commit command even with the ```signature-policy``` option

Bolzo 1 (Mon, 09 Mar 2020 13:27:09 GMT):
In fact, it fails on the commit command even with the `signature-policy` option

vanitas92 (Mon, 09 Mar 2020 13:47:58 GMT):
That's what i feared, i eliminated the endorsement options in the application section in `configtx.yaml`. ``` Policies: &ApplicationDefaultPolicies Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" # LifecycleEndorsement: # Type: ImplicitMeta # Rule: "MAJORITY Endorsement" # Endorsement: # Type: ImplicitMeta # Rule: "MAJORITY Endorsement" ``` See if it that works for you

vanitas92 (Mon, 09 Mar 2020 13:49:13 GMT):
You will need to keep the signature policy flag in all commands if you do this otherwise they will fail

Bolzo 1 (Mon, 09 Mar 2020 13:49:36 GMT):
I'll try it right now, thanks

msolefonte (Mon, 09 Mar 2020 14:06:15 GMT):
Hello. When I try to instantiate one chaincode I get this error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1`. Does anyone know how to obtain more information/read a log?

Bolzo 1 (Mon, 09 Mar 2020 14:09:40 GMT):
With your suggestion I'm able to commit the chaincode, thanks! But I'm wondering why it doesn't work if i comment out the options you indicated

vanitas92 (Mon, 09 Mar 2020 14:10:37 GMT):
Me as well, i have to deep dive it and understand this change since it is a bit confusing from the documentation and tutorials in v2.0

Antimttr (Mon, 09 Mar 2020 14:55:37 GMT):
Hey everyone, trying to instantiate chaincode on my peers and getting this response from the peer log: ``` {"log":"\u001b[36m2020-03-05 22:48:43.657 UTC [chaincode] Execute -\u003e DEBU 801c0\u001b[0m Entry\n","stream":"stderr","time":"2020-03-05T22:48:43.657809092Z"} {"log":"\u001b[36m2020-03-05 22:48:43.657 UTC [chaincode] handleMessage -\u003e DEBU 801c1\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: GET_STATE in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.658092706Z"} {"log":"\u001b[36m2020-03-05 22:48:43.658 UTC [chaincode] HandleTransaction -\u003e DEBU 801c2\u001b[0m [9159c9aa] handling GET_STATE from chaincode\n","stream":"stderr","time":"2020-03-05T22:48:43.658152417Z"} {"log":"\u001b[36m2020-03-05 22:48:43.658 UTC [chaincode] HandleGetState -\u003e DEBU 801c3\u001b[0m [9159c9aa] getting state for chaincode lscc, key mcttrade, channel mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.658212168Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleGetState -\u003e DEBU 801cb\u001b[0m [9159c9aa] No state associated with key: mcttrade. Sending RESPONSE with an empty payload\n","stream":"stderr","time":"2020-03-05T22:48:43.709296106Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleTransaction -\u003e DEBU 801cc\u001b[0m [9159c9aa] Completed GET_STATE. Sending RESPONSE\n","stream":"stderr","time":"2020-03-05T22:48:43.709304507Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] handleMessage -\u003e DEBU 801d9\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: PUT_STATE in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.710238248Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleTransaction -\u003e DEBU 801da\u001b[0m [9159c9aa] handling PUT_STATE from chaincode\n","stream":"stderr","time":"2020-03-05T22:48:43.710318009Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] HandleTransaction -\u003e DEBU 801db\u001b[0m [9159c9aa] Completed PUT_STATE. Sending RESPONSE\n","stream":"stderr","time":"2020-03-05T22:48:43.710329459Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] handleMessage -\u003e DEBU 801dd\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.71034189Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Notify -\u003e DEBU 801de\u001b[0m [9159c9aa] notifying Txid:9159c9aa337cdb8f6bcd5a8828a08c98d0b53458cef45c2523e3b1c1c3cc9a0c, channelID:mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.71034748Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Execute -\u003e DEBU 801df\u001b[0m Exit\n","stream":"stderr","time":"2020-03-05T22:48:43.71035246Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Execute -\u003e DEBU 801e0\u001b[0m Entry\n","stream":"stderr","time":"2020-03-05T22:48:43.710512242Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] handleMessage -\u003e DEBU 801e1\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.745978111Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] Notify -\u003e DEBU 801e2\u001b[0m [9159c9aa] notifying Txid:9159c9aa337cdb8f6bcd5a8828a08c98d0b53458cef45c2523e3b1c1c3cc9a0c, channelID:mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.746016903Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] Execute -\u003e DEBU 801e3\u001b[0m Exit\n","stream":"stderr","time":"2020-03-05T22:48:43.746022843Z"} ```

Antimttr (Mon, 09 Mar 2020 14:56:04 GMT):
what would cause no state associated with the key?

Antimttr (Mon, 09 Mar 2020 15:03:11 GMT):
im getting an empty response from the proposal request from this peer, and all 3 other peers time out

Bolzo 1 (Mon, 09 Mar 2020 15:42:06 GMT):
Fabric 2.0 I've successfully commited the chaincode to the channel but when I try to invoke it i get the following error: ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction cd8ec2b2c0eb695e4f946b673845ccbf96ffda066c9a79797259733deb27bd46: could not launch chaincode NotarizationChaincode:75017bf9e0592e95c9e69d85a33aba9a697dfa7d19a5aee2a3ff839bb802d99d: error starting container: error starting container: API error (500): invalid cluster node while attaching to network" ``` Any ideas?

srinathLN7 (Mon, 09 Mar 2020 16:07:31 GMT):
Has joined the channel.

srinathLN7 (Mon, 09 Mar 2020 16:07:33 GMT):
On Hyperledger Fabric: Trying to instantiate a smart contract from the commerical paper tutorial as mentioned in the https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html#instantiate-contract through `docker exec cliMagnetoCorp peer chaincode instantiate -n papercontract -v 0 -l node -c '{"Args":["org.papernet.commercialpaper:instantiate"]}' -C mychannel -P "AND ('Org1MSP.member')" keeps returning the error: Failed to generate platform-specific docker build: Error returned from build: 1. gyp Err! Unable to verify the first certificate. npm Err! code ELIFECYCLE. errno1. Can someone please help me?

braduf (Mon, 09 Mar 2020 18:14:45 GMT):
Hi all,

braduf (Mon, 09 Mar 2020 18:14:45 GMT):
Hi all, I am trying to approve a chaincode and I thought this should be done with a network admin of my org, so that is what I am doing, but I get the following error: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` The curious thing is that when I use a peer admin, I get a [VALID] response: ``` ```

braduf (Mon, 09 Mar 2020 18:14:45 GMT):
Hi all, I am trying to approve a chaincode and I thought this should be done with a network admin of my org, so that is what I am doing, but I get the following error: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` The curious thing is that when I use a peer admin, I get a [VALID] response, eventhough when checking for commit readiness it says false... Can someone tell me what the local MSP during channelles check is, please... (I am using the cli container)

negupta (Mon, 09 Mar 2020 18:24:45 GMT):
I noticed that there are many questions on this channel and on the mailing list on the new chaincode lifecycle. I would like to let Fabric users know that there is a new tutorial in the Fabric docs discussing how to use the chaincode lifecycle with the Peer CLI in greater detail: https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html

negupta (Mon, 09 Mar 2020 18:25:22 GMT):
Please take advantage of this new resource and let us know if you have any feeback

BrettLogan (Mon, 09 Mar 2020 19:06:07 GMT):
Thanks Nik for your work on this!

rjones (Mon, 09 Mar 2020 19:07:01 GMT):
Has joined the channel.

rjones (Mon, 09 Mar 2020 19:07:04 GMT):
@FatfoutiAsma has some questions about IOT and fabric

FatfoutiAsma (Mon, 09 Mar 2020 19:07:04 GMT):
Has joined the channel.

braduf (Mon, 09 Mar 2020 19:08:24 GMT):
Thank you @negupta , I think I found my error already reading it: ` You cannot approve a chaincode definition with a client user.` My user is in the admincerts of my organization, but it has OU=client. So I assume the chaincode lifecycle uses OU's even if your org is not using NodeOU's, is that correct?

braduf (Mon, 09 Mar 2020 19:08:24 GMT):
Thank you @negupta , I think I found my error already reading it: ` You cannot approve a chaincode definition with a client user.` My user is in the admincerts of my organization, but it has OU=client. So I assume the chaincode lifecycle uses OU's even if your org is not using NodeOU's, and to approve for my org it needs to have OU=admin, is that correct?

rjones (Mon, 09 Mar 2020 19:09:23 GMT):
Has left the channel.

FatfoutiAsma (Mon, 09 Mar 2020 19:16:34 GMT):
hello everyone, is there any way to connect iot-objects simulated with node-red to a fabric network without using composer or cloud services like watson-iot-platform.

BrettLogan (Mon, 09 Mar 2020 19:21:42 GMT):
The Composer-Node-Red integration was written by the composer team, but there is nothing stopping you from writing your own flows for node-red of course.

BrettLogan (Mon, 09 Mar 2020 19:21:42 GMT):
Composer isn't going to help you here, it's simply a tool for deploying a Fabric network. There are hyperledger integrations such as https://flows.nodered.org/node/node-red-contrib-fabric#node-red-contrib-fabric though not sure how great they are. There is nothing stopping you from writing your own flows for node-red of course

BrettLogan (Mon, 09 Mar 2020 19:25:36 GMT):
It's also written for a specific scenario with a specific chaincode, its not agnostic for all chaincodes

BrettLogan (Mon, 09 Mar 2020 19:26:00 GMT):
You could take the code here though as a model and use it as the basis for writing your own node-red tool https://github.com/hyperledger-archives/composer-tools/tree/master/packages/node-red-contrib-composer

negupta (Mon, 09 Mar 2020 19:29:47 GMT):
When Node OUs are enabled, the role takes priority.

braduf (Mon, 09 Mar 2020 20:10:18 GMT):
@negupta Ok, but so normally the certificate should not contain OU=admin if NodeOUs aren't enabled? Because I just got the same error again trying to approve for my org: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` And still, when I use a peer administrator (not network admin), I do get: `txid [fb0d5b7c7c2c874114af9750fb1638827e19b504563a4634456ac5c5fb98fe51] committed with status (VALID) at ``` Do you have any idea what can be wrong? I am sure the user that gives the error is a network admin.... ```

braduf (Mon, 09 Mar 2020 20:10:18 GMT):
Thank you @negupta, but so normally the certificate should not contain OU=admin if NodeOUs aren't enabled? Because I just got the same error again trying to approve for my org: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` And still, when I use a peer administrator (not network admin), I do get: `txid [fb0d5b7c7c2c874114af9750fb1638827e19b504563a4634456ac5c5fb98fe51] committed with status (VALID) at ``` Do you have any idea what can be wrong? I am sure the user that gives the error is a network admin.... ```

braduf (Mon, 09 Mar 2020 20:10:18 GMT):
Thank you @negupta, but so normally the certificate should not contain OU=admin if NodeOUs aren't enabled? Because I just got the same error again trying to approve for my org: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` And still, when I use a peer administrator (not network admin), I do get: `txid [fb0d5b7c7c2c874114af9750fb1638827e19b504563a4634456ac5c5fb98fe51] committed with status (VALID) at ``` Do you have any idea what can be wrong? I am sure the user that gives the error is a network admin....

braduf (Mon, 09 Mar 2020 20:10:18 GMT):
Thank you @negupta, but so normally the certificate should not contain OU=admin if NodeOUs aren't enabled? Because I just got the same error again trying to approve for my org: ``` Error: proposal failed with status: 500 - Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin] ``` And still, when I use a peer administrator (not network admin), I do get: ``` txid [fb0d5b7c7c2c874114af9750fb1638827e19b504563a4634456ac5c5fb98fe51] committed with status (VALID) at ``` Do you have any idea what can be wrong? I am sure the user that gives the error is a network admin....

FatfoutiAsma (Mon, 09 Mar 2020 20:20:29 GMT):
thanks, but what i search is how to use devices simulated with node-red as participants in the fabric network not as assets. for example simulate two vehicles and then write the chaincode or the contract that describe the transactions between them such as sending a message contain some information like the distance between them. thing like that.

negupta (Mon, 09 Mar 2020 20:46:19 GMT):
Note sure. If you use Node OU, you can have our admin identities be admins of the channels and your nodes.

CyrilLeung (Tue, 10 Mar 2020 04:12:14 GMT):
Has joined the channel.

CyrilLeung (Tue, 10 Mar 2020 04:12:20 GMT):
Hi everyone, I would like to ask is there any online training is targeting latest certificate of hyperledger fabric developer (CHFD)? Since I am new to fabric and want to get some formal training and exam to attend. Thank you

mothukuriv (Tue, 10 Mar 2020 04:25:16 GMT):
Has joined the channel.

RobinKlemens (Tue, 10 Mar 2020 11:47:40 GMT):
Hi folks, I try to deploy Hyperledger Fabric 2.0 to OpenShift. By now, I'm using minishift with virtualbox on macOS for a local cluster. I make of use the deploCC.sh script from fabric-samples/test-network. Unfortunately, the function `chaincodeInvokeInit` fails with the following error. Until then, everything works as expected. I set up an external chaincode builder and launcher which should run the chaincode inside the peer container without starting a chaincode container. I verified my external chaincode builder in the test-network. Further, I checked, that the chaincode build is located at the peer in `/var/hyperledger/production/externalbuilder/builds/` ``` 2020-03-10 12:14:19.291 CET [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 042 ESCC invoke result: response: Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 5f25a0aacbf70ba3dc80b203ab4dcf01561784f9a00166a4917ba1cb9202bbf9: could not launch chaincode fabcar_3:9629a4f04de8c0ec0fa1c11b1996355800c7b5687867fb898bce3164a8fd3cec: chaincode registration failed: container exited with 0" !!!!!!!!!!!!!!! Invoke execution on org1.peer0 org2.peer0 failed !!!!!!!!!!!!!!!! command terminated with exit code 1 ``` I’d appreciate your help and/or ideas. Thank you very much :)

PraveenKumar1984 (Tue, 10 Mar 2020 13:47:56 GMT):
Error: Error trying invoke business network with transaction id fea39fce21be80ea6106a788f326b664acb38b250e0d1afa6ab92819bc5b6f6f. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: transaction returned with failure:

PraveenKumar1984 (Tue, 10 Mar 2020 13:48:10 GMT):
hi all i m getting the above error

Antimttr (Tue, 10 Mar 2020 14:35:08 GMT):
Hey everyone, trying to instantiate chaincode on my peers and getting this response from the peer log: ``` {"log":"\u001b[36m2020-03-05 22:48:43.657 UTC [chaincode] Execute -\u003e DEBU 801c0\u001b[0m Entry\n","stream":"stderr","time":"2020-03-05T22:48:43.657809092Z"} {"log":"\u001b[36m2020-03-05 22:48:43.657 UTC [chaincode] handleMessage -\u003e DEBU 801c1\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: GET_STATE in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.658092706Z"} {"log":"\u001b[36m2020-03-05 22:48:43.658 UTC [chaincode] HandleTransaction -\u003e DEBU 801c2\u001b[0m [9159c9aa] handling GET_STATE from chaincode\n","stream":"stderr","time":"2020-03-05T22:48:43.658152417Z"} {"log":"\u001b[36m2020-03-05 22:48:43.658 UTC [chaincode] HandleGetState -\u003e DEBU 801c3\u001b[0m [9159c9aa] getting state for chaincode lscc, key mcttrade, channel mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.658212168Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleGetState -\u003e DEBU 801cb\u001b[0m [9159c9aa] No state associated with key: mcttrade. Sending RESPONSE with an empty payload\n","stream":"stderr","time":"2020-03-05T22:48:43.709296106Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleTransaction -\u003e DEBU 801cc\u001b[0m [9159c9aa] Completed GET_STATE. Sending RESPONSE\n","stream":"stderr","time":"2020-03-05T22:48:43.709304507Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] handleMessage -\u003e DEBU 801d9\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: PUT_STATE in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.710238248Z"} {"log":"\u001b[36m2020-03-05 22:48:43.709 UTC [chaincode] HandleTransaction -\u003e DEBU 801da\u001b[0m [9159c9aa] handling PUT_STATE from chaincode\n","stream":"stderr","time":"2020-03-05T22:48:43.710318009Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] HandleTransaction -\u003e DEBU 801db\u001b[0m [9159c9aa] Completed PUT_STATE. Sending RESPONSE\n","stream":"stderr","time":"2020-03-05T22:48:43.710329459Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] handleMessage -\u003e DEBU 801dd\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.71034189Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Notify -\u003e DEBU 801de\u001b[0m [9159c9aa] notifying Txid:9159c9aa337cdb8f6bcd5a8828a08c98d0b53458cef45c2523e3b1c1c3cc9a0c, channelID:mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.71034748Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Execute -\u003e DEBU 801df\u001b[0m Exit\n","stream":"stderr","time":"2020-03-05T22:48:43.71035246Z"} {"log":"\u001b[36m2020-03-05 22:48:43.710 UTC [chaincode] Execute -\u003e DEBU 801e0\u001b[0m Entry\n","stream":"stderr","time":"2020-03-05T22:48:43.710512242Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] handleMessage -\u003e DEBU 801e1\u001b[0m [9159c9aa] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready\n","stream":"stderr","time":"2020-03-05T22:48:43.745978111Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] Notify -\u003e DEBU 801e2\u001b[0m [9159c9aa] notifying Txid:9159c9aa337cdb8f6bcd5a8828a08c98d0b53458cef45c2523e3b1c1c3cc9a0c, channelID:mychannel\n","stream":"stderr","time":"2020-03-05T22:48:43.746016903Z"} {"log":"\u001b[36m2020-03-05 22:48:43.743 UTC [chaincode] Execute -\u003e DEBU 801e3\u001b[0m Exit\n","stream":"stderr","time":"2020-03-05T22:48:43.746022843Z"} ```

Antimttr (Tue, 10 Mar 2020 14:35:26 GMT):
what would cause no state associated with the key? im getting an empty response from the proposal request from this peer, and all 3 other peers time out

RobinKlemens (Tue, 10 Mar 2020 14:39:52 GMT):
SOLVED: I had to remove `CORE_PEER_CHAINCODEADDRESS` and `CORE_PEER_CHAINCODELISTENADDRESS` from the peer.yaml files. I found this solution at https://stackoverflow.com/questions/60207056/fabric-v2-0-in-kubernetes-minikube-problem-running-docker-inside-peer-for-ru No I have a running HL Fabric 2.0 cluster on Openshift without any elevated privilege for the peer. Yay :)

Antimttr (Tue, 10 Mar 2020 15:52:47 GMT):
Does anyone know if the key its referring to is in the couchdb?

Antimttr (Tue, 10 Mar 2020 15:52:56 GMT):
i've got the couchdb interface up now im checking for keys

Antimttr (Tue, 10 Mar 2020 15:53:11 GMT):
i see mychannel_ and mychannel_lscc

Antimttr (Tue, 10 Mar 2020 15:53:27 GMT):
is mychannel_lscc supposed to have something in it if a chaincode is installed?

Antimttr (Tue, 10 Mar 2020 19:15:22 GMT):
I'm getting this message in my peer log when i set logging to warning: `[peer.gossip.mcs] Verify -> ERRO 017 Failed getting validated identity from peer identity cannot be validated. No MSP found able to do that.` then it has a big string of hex values, im guessing this is an issue with my peer from org1 talking to the anchor from org2

Antimttr (Tue, 10 Mar 2020 19:15:25 GMT):
is there any way to confirm this?

Antimttr (Tue, 10 Mar 2020 19:19:31 GMT):
also getting this when trying to query the peer for some chaincode state (invocation): `2020-03-10 19:18:23.789 UTC [protoutils] ValidateProposalMessage -> WARN 101 channel [mychannel]: MSP error: channel doesn't exist`

Antimttr (Tue, 10 Mar 2020 19:22:54 GMT):
it seems like, when i restarted the peer container suddenly its not part of the channel anymore

Antimttr (Tue, 10 Mar 2020 19:22:58 GMT):
and it lost its chaincode

d3v9 (Tue, 10 Mar 2020 19:49:49 GMT):
Has joined the channel.

d3v9 (Tue, 10 Mar 2020 19:49:51 GMT):
Does anyone know if AWS Fargate launch type for ECS is sutable for Hyperledger Fabric projects?

yacovm (Tue, 10 Mar 2020 21:15:56 GMT):
@Antimttr you didn't join the peers to the channels

Antimttr (Tue, 10 Mar 2020 21:18:48 GMT):
yeah my config was scrambled after i restarted a node after changing config

Antimttr (Tue, 10 Mar 2020 21:18:55 GMT):
i just wiped out all the nodes and started over again

aakzubaidi (Tue, 10 Mar 2020 21:39:41 GMT):
Hi, I have got very disappointing transactions rates. basically, I wrote a smart contract using Hyperledger Composer. It is complex and for every transaction, it does some queries. I deployed the BNA it to HLF 1.4.6. 2 orgs, with 2 peers for each ( typical first network configurations). I send transactions using Apache JMeter (100 concurrent threads). I get like only on average 10 transactions per seconds! What can be going wrong? is my testing conduct valid? like dealing with HLF network as black box by sending transactions and waiting for responses. Is it because of Hyperledger composer? is because of Javascript is single threaded and cannot cope with 100 concurrent threads?

aakzubaidi (Tue, 10 Mar 2020 21:39:49 GMT):

Clipboard - March 10, 2020 9:39 PM

aakzubaidi (Tue, 10 Mar 2020 21:41:10 GMT):

Clipboard - March 10, 2020 9:41 PM

aakzubaidi (Tue, 10 Mar 2020 21:41:49 GMT):
and this is my load distribution for the threads over time ( I add 20 threads every 2 minutes) and then decrease by 20 threads after reaching 100 threads. These threads submit the same transaction

aakzubaidi (Tue, 10 Mar 2020 21:42:51 GMT):
the network is able to handle 7273 transactions over approx. 26 minutes. How that sounds?

BrettLogan (Tue, 10 Mar 2020 22:33:44 GMT):
That's a very large number of clients for such small network. What was your endorsement policy? Without seeing your Chaincode it's nearly impossible to say. Is gossip enabled, are you using the discovery service? Which SDK are you using? Where are the peers and orderers hosted (on the same host, on different hosts, using docker, using the raw binaries, Kubernetes)? What resources have you given to the nodes? Are they on a high speed private network? Are you bounded by the public network interface speed? Are you monitoring network latency? It's really not a simple thing to do performance analysis of a Peer to Peer network without understanding absolutely every facet of the the software, hardware and network infrastructure

aakzubaidi (Tue, 10 Mar 2020 23:00:36 GMT):
Hi @BrettLogan very good questions you asked. The chaincode and everything at the application level is done with Hyperledger Composer which resulted in BNA file. I deployed that to HLF 1.4.6. Everything is in docker on my local machine. Docker is 3 cpus, Ram 2 GBs, 1.5 swap. I launched the network is any typical launch of the First network tutorial. I did not change anything in the configuration of the block except that, The consensus is RAFT with 5 orderers. No monitoring tool expect Apache Jmeter which measures latency and throughput of round-trip packets. The results are shown above. Happy to share the business logic with you in private.

BrettLogan (Tue, 10 Mar 2020 23:04:56 GMT):
Id start by saying your metrics are probably correct given that your hosting everything in docker on a single host. The amount of resources you've given to the Docker VM is considerably small, especially given the number of nodes you are running. It's likely youre deadlocking the processes while fighting over time slices of resources

aakzubaidi (Tue, 10 Mar 2020 23:09:16 GMT):
Thanks for giving time on this. I am just wondering is treating the HLF network as black box in my testing as I did, is a viable and comparable to what I see in other publications stating like thousands transactions per a second. Because I do not measure what really happens in the network separately. What I do basically is sending transactions from external entities through a restful server, and wait for response. So essentially I measure from the viewpoint of a client.

aakzubaidi (Tue, 10 Mar 2020 23:10:55 GMT):
So. for every client submitting a transaction, there happens several processing tasks. querying different assets and updating others.

aakzubaidi (Tue, 10 Mar 2020 23:11:36 GMT):
done by the smart contract

BrettLogan (Tue, 10 Mar 2020 23:14:22 GMT):
You can treat it as a black box until you need to work out bottlenecks in the networks. If deploy a true network and are getting 500 transactions/sec and you only need to achieve 100 there's little incentive to improve the performance. If you need 500 and are only getting 100 and you can rule out your client, then you'll need to dive into the network and follow the traffic to find your bottleneck. So you need to consider your actual use case, and what level of performance you actually need, and then see if a better architected network fits your needs out of the box

aakzubaidi (Tue, 10 Mar 2020 23:16:50 GMT):
Really useful answer. So, I think I will need to dive into network. What facets and factors I should be looking at. What tools allows me to collect their metrics and visualise them.

BrettLogan (Tue, 10 Mar 2020 23:18:00 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/operations_service.html

aakzubaidi (Tue, 10 Mar 2020 23:18:02 GMT):
is this of any use? https://github.com/hyperledger/fabric-test

BrettLogan (Tue, 10 Mar 2020 23:18:38 GMT):
Fabric has a metrics endpoint. You can enable it and ingest the data into Prometheus and then use Grafana to display it

BrettLogan (Tue, 10 Mar 2020 23:20:42 GMT):
I am actually the maintainer of fabric-test. We have tools to deploy production grade networks and then run invoke and query tests against the networks and report performance, but they are targeted at purely at Kubernetes.

BrettLogan (Tue, 10 Mar 2020 23:20:42 GMT):
I am actually the maintainer of fabric-test. We have tools to deploy production grade networks and then run invoke and query tests against the networks and report statistics and performance, but they are targeted at purely at Kubernetes.

aakzubaidi (Tue, 10 Mar 2020 23:20:47 GMT):
how about Caliper. Does add any thing to operations service

aakzubaidi (Tue, 10 Mar 2020 23:21:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=rFfnAXWoTwP72E9tq) Glad meeting you and have this conversation with you

BrettLogan (Tue, 10 Mar 2020 23:21:55 GMT):
Caliper works really well also, but you still need to design and deploy the network

aakzubaidi (Tue, 10 Mar 2020 23:22:46 GMT):
So I should be treating Caliper as a reporting tool after having done with everything

aakzubaidi (Tue, 10 Mar 2020 23:22:54 GMT):
is it safe to say so

BrettLogan (Tue, 10 Mar 2020 23:23:20 GMT):
Yes, Caliper is strictly for performance benchmarking of networks with a focus on repeatability

aakzubaidi (Tue, 10 Mar 2020 23:24:22 GMT):
Thanks mate. Really appreciate your detailed and responsive answers. salute!

Abhishekkishor (Wed, 11 Mar 2020 02:22:44 GMT):
Hello Guys, I have a question regarding the communication between the anchor peers of two organisations. Q. If the anchor peer of an organisation communicates with other peers through Gossip protocol, then which protocol are they using for the communication of two anchor peers of two different organizations?

hariomdebut (Wed, 11 Mar 2020 05:37:44 GMT):
Has joined the channel.

hariomdebut (Wed, 11 Mar 2020 05:40:49 GMT):
Hello Guys, I have a question regarding chain-code stub. Is there any way to query using couch view in golang chain-code. I have to sum the transactions total according to search filters with pagination. Some how, i am unable to find any solution. Thanks in advance.

ahmetbilal (Wed, 11 Mar 2020 07:05:25 GMT):
Hello I have a question

ahmetbilal (Wed, 11 Mar 2020 07:07:30 GMT):
Where do endorsement policies exist in the network? Are they located in a peer's state database?

yacovm (Wed, 11 Mar 2020 07:57:55 GMT):
yes

jmocholi (Wed, 11 Mar 2020 08:43:33 GMT):
Has joined the channel.

ahmetbilal (Wed, 11 Mar 2020 10:29:47 GMT):
As far as I know committer nodes need to know about the endorsement policy in order to commit transactions of a block. How do they get that knowledge?

ahmetbilal (Wed, 11 Mar 2020 11:12:14 GMT):
Ok I got it

ahmetbilal (Wed, 11 Mar 2020 11:12:46 GMT):
Committers have a chain and state database too

msolefonte (Wed, 11 Mar 2020 12:02:27 GMT):
https://stackoverflow.com/questions/60562546/hyperledger-fabric-node-js-chaincode-error-cant-resolve-reference-object-from?noredirect=1#comment107255272_60562546

GovindNavale (Wed, 11 Mar 2020 14:09:28 GMT):
Has joined the channel.

GovindNavale (Wed, 11 Mar 2020 14:09:28 GMT):
hello please help me,

GovindNavale (Wed, 11 Mar 2020 14:09:28 GMT):
I am getting the following error after running the first network 1) ./byfn.sh generate 2) ./byfn.sh up

GovindNavale (Wed, 11 Mar 2020 14:14:11 GMT):
2020-03-11 13:42:57.267 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-03-11 13:42:57.411 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-03-11 13:42:58.535 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed govind@govind-Predator-PH315-51:~/govind_hyp/fabric-samples/first-network$ ^C govind@govind-Predator-PH315-51:~/govind_hyp/fabric-samples/first-network$

AliDar (Wed, 11 Mar 2020 16:26:24 GMT):
Hi, getting this error when I create a channel

AliDar (Wed, 11 Mar 2020 16:26:40 GMT):
[2020-03-11 11:16:27.398] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Connect Failed\n at createStatusError (/opt/gpe/azurehlf1/hlf/network/chaincode/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/opt/gpe/azurehlf1/hlf/network/chaincode/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._readsDone (/opt/gpe/azurehlf1/hlf/network/chaincode/node_modules/grpc/src/client.js:236:8)\n at readCallback (/opt/gpe/azurehlf1/hlf/network/chaincode/node_modules/grpc/src/client.js:296:12)" [2020-03-11 11:16:27.429] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE

Antimttr (Wed, 11 Mar 2020 18:30:13 GMT):
Can orderer's use NodeOU config.yaml files as well as peers?

YusufDEDE (Wed, 11 Mar 2020 20:06:46 GMT):
Has joined the channel.

YusufDEDE (Wed, 11 Mar 2020 20:06:48 GMT):
system requirements for hyperledger fabric? server for deploy

YusufDEDE (Wed, 11 Mar 2020 20:07:38 GMT):
advance & minimum ?

Antimttr (Wed, 11 Mar 2020 20:10:42 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/prereqs.html

YusufDEDE (Wed, 11 Mar 2020 20:10:54 GMT):
thanks!

YusufDEDE (Wed, 11 Mar 2020 20:12:15 GMT):
but I mean hardware

Antimttr (Wed, 11 Mar 2020 20:12:47 GMT):
not too much for running First-Network, you could easily run it on a T3-medium in AWS

YusufDEDE (Wed, 11 Mar 2020 20:14:15 GMT):
understood. so if I want to run it on oceandigital or other server service?

Antimttr (Wed, 11 Mar 2020 20:15:04 GMT):
just wahtever their equivilant to t3-medium would be more than enough: https://aws.amazon.com/ec2/instance-types/t3/

YusufDEDE (Wed, 11 Mar 2020 20:15:51 GMT):
thank you so much! good cooding!

vdods (Wed, 11 Mar 2020 20:36:45 GMT):
Hi all, I want to understand what guarantees are provided by private collections regarding the availability of private collection data on various peers. In particular, in the docs https://hyperledger-fabric.readthedocs.io/en/release-1.4/private-data-arch.html it describes a scenario where private data written in one transaction may not have been disseminated to other peers by the time a second transaction attempts to access it. How exactly can this be dealt with? It seems like the guarantee provided by private collections is too weak to depend on reliably.

vdods (Wed, 11 Mar 2020 20:39:34 GMT):
To give a concrete example, say in the first transaction, sent to a random subset of my org's peers, I add an entry to some kind of access control list for a user to access some piece of data. That transaction is committed, and then that newly authorized user attempts to access the data by querying a random peer from my org (they don't know which peers received the transaction proposals, nor should they have to know). It seems unless there's some guarantee that the transaction simulation will wait on receiving the relevant private data, this will fail in a nondeterministic way. Am I missing something?

Antimttr (Wed, 11 Mar 2020 20:43:36 GMT):
im not positive but i remember reading something about peers using gossip to query a channel for private data they don't yet possess

vdods (Wed, 11 Mar 2020 21:27:41 GMT):
@Antimttr So upon querying, would the peer wait until it has the private data?

Antimttr (Wed, 11 Mar 2020 21:38:32 GMT):
that would be my guess but I haven't used private data yet (don't plan to).

Antimttr (Wed, 11 Mar 2020 21:39:51 GMT):
``` When authorized peers do not have a copy of the private data in their transient data store at commit time (either because they were not an endorsing peer or because they did not receive the private data via dissemination at endorsement time), they will attempt to pull the private data from another authorized peer, for a configurable amount of time based on the peer property peer.gossip.pvtData.pullRetryThreshold in the peer configuration core.yaml file. ```

yacovm (Wed, 11 Mar 2020 22:34:51 GMT):
> How exactly can this be dealt with? It seems like the guarantee provided by private collections is too weak to depend on reliably. You can ask a peer to disseminate to at least *K* different peers and if it fails, it also fails the endorsement

yacovm (Wed, 11 Mar 2020 22:35:07 GMT):
this ensures the public hashes do not get into the blockchain if not enough peers got this data

yacovm (Wed, 11 Mar 2020 22:35:57 GMT):
Peers pull private data they don't have once they see its hash in the commit of the block, and if they fail after some retries, they will try to do it again at a later point

yacovm (Wed, 11 Mar 2020 22:36:04 GMT):
@vdods

vdods (Thu, 12 Mar 2020 02:00:22 GMT):
@yacovm Ah ok, so if a peer is simulating a transaction that queries some private data via GetPrivateData (and assuming the hash of the private data has been committed in a block), it will wait until it's finished pulling that private data before the GetPrivateData call returns? But it will return with error if the peer.gossip.pvtData.pullRetryThreshold limit is exceeded?

crypto_beep (Thu, 12 Mar 2020 06:35:02 GMT):
Has joined the channel.

crypto_beep (Thu, 12 Mar 2020 06:35:03 GMT):
Hi greetings, hope you are doing great. Currently i'm doing research on BAAS( Blockchain as service ) where i want to use platform Hyperledger, Corda and Quorum. could you please let me know which cloud platform would be best for the same, just like if i want prefer AWS, Azure and Google Cloud. Thanks!

crypto_beep (Thu, 12 Mar 2020 06:35:03 GMT):
Hi greetings, hope you all are doing great. Currently i'm doing research on BAAS( Blockchain as service ) where i want to use platform Hyperledger, Corda and Quorum. could you please let me know which cloud platform would be best for the same, just like if i want prefer AWS, Azure and Google Cloud. Thanks!

Jelle.Diet (Thu, 12 Mar 2020 09:26:44 GMT):
For hyperledger I personally like the IBM cloud platform, although it does not support java chaincode (only node and Go). AWS is solid as well for the other two, but a bit behind on hyperledger

GioG12 (Thu, 12 Mar 2020 10:49:49 GMT):
Hi guys, how to read ByteBuffer payload response from chaincode?

jmocholi (Thu, 12 Mar 2020 11:14:43 GMT):
Hi! If you use js or ts, try payload.tostring(). Take a look at the chaincode generated by the IBM Blockchain Platform extension for VSCode, it's very helpful and it can also generate chaincode in GO

GioG12 (Thu, 12 Mar 2020 11:27:45 GMT):
Thanks for reply! Yes I use TS it works on regular response but if I invoke A chaincode from B it returns ByteBuffer as payload. .toString() does not work on that one :(

jmocholi (Thu, 12 Mar 2020 11:34:04 GMT):
In that case I have used the follwing code. I was expecting just a boolean but it may help you: ``` ```

jmocholi (Thu, 12 Mar 2020 11:34:04 GMT):
In that case I have used the follwing code. I was expecting just a boolean but it may help you:

jmocholi (Thu, 12 Mar 2020 11:34:26 GMT):
``` const buffer = await ctx.stub.invokeChaincode('chaincode_test', ['myAssetExists', id], 'mychannel'); // console.log(buffer.status, buffer.message, buffer.payload.toString('utf8')); return (!!buffer && buffer.status === 200 && buffer.payload.toString('utf8') === 'true'); ```

GioG12 (Thu, 12 Mar 2020 11:53:01 GMT):

Screen Shot 2020-03-12 at 15.52.38.png

GioG12 (Thu, 12 Mar 2020 11:53:35 GMT):
I'm waitting array of objects

GioG12 (Thu, 12 Mar 2020 12:32:49 GMT):
Oh thank you actually it worked, I was sending wrong response, my bad :D

tengc (Thu, 12 Mar 2020 13:33:51 GMT):
Hello, I'm trying to install chaincode onto a 2.0 network and I encountered this error: Error: error getting chaincode deployment spec for transaction-cc: exit status 1. Does anyone have any idea what caused this?

msolefonte (Thu, 12 Mar 2020 14:39:27 GMT):
Is there any way to debug this: `[34m2020-03-12 14:36:56.356 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-03-12 14:36:56.356 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1`

msolefonte (Thu, 12 Mar 2020 14:39:27 GMT):
Is there any way to debug this: ``` [34m2020-03-12 14:36:56.356 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-03-12 14:36:56.356 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ```

Antimttr (Thu, 12 Mar 2020 15:31:18 GMT):
ahh

Antimttr (Thu, 12 Mar 2020 15:31:23 GMT):
yeah @msolefonte

Antimttr (Thu, 12 Mar 2020 15:31:32 GMT):
i would first examine the logs of the chaincode container

Antimttr (Thu, 12 Mar 2020 15:31:47 GMT):
it should have some error in there indicating why it failed to start

msolefonte (Thu, 12 Mar 2020 15:32:04 GMT):
how can i? docker ps?

Antimttr (Thu, 12 Mar 2020 15:32:24 GMT):
think you need to do `docker container ls -a`

Antimttr (Thu, 12 Mar 2020 15:32:26 GMT):
something like that

Antimttr (Thu, 12 Mar 2020 15:32:32 GMT):
it will show you even offline containers

msolefonte (Thu, 12 Mar 2020 15:32:43 GMT):
yeah ok I get it

msolefonte (Thu, 12 Mar 2020 15:32:48 GMT):
So log is available in docker

Antimttr (Thu, 12 Mar 2020 15:32:55 GMT):
yes it should be

msolefonte (Thu, 12 Mar 2020 15:33:07 GMT):
I'll try. Thank you for your help

vsadriano (Thu, 12 Mar 2020 17:17:11 GMT):
Hi! Is there a special setting on `hyperledger/fabric-couchdb` image for Fabric? Can I use CouchDB official image?

vsadriano (Thu, 12 Mar 2020 17:17:11 GMT):
Hi! Is there a particular setting on `hyperledger/fabric-couchdb` image for Fabric? Can I use CouchDB official image?

eje211 (Thu, 12 Mar 2020 17:58:34 GMT):
Has joined the channel.

eje211 (Thu, 12 Mar 2020 17:58:35 GMT):
Hello, I cannot figure out why I have this response to `peer channel create`: `Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mainchannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group] /Channel/Application/Med2MSP but was in the read set` My channel.tx is here: https://pastebin.com/Mw91u9CF And, more strangely, all the envirnoment variables for the container are set to Med1. Where does Med2 come from? Also, the container has bash version 4.4.20 even though the `IMAGE_TAG` is set to `latest` and the docs say that then, bash should be version 5.0. Isn't that strange?

eje211 (Thu, 12 Mar 2020 18:43:45 GMT):
And `CORE_PEER_MSPCONFIGPATH` is set to `/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/med1.diro.umontreal.ca/users/Admin@med1.diro.umontreal.ca/msp`.

braduf (Thu, 12 Mar 2020 22:40:16 GMT):
Hi all, I am trying to use the discover cli, but I am getting the error that the key passed in --userKey can't be parsed: ``` failed to parse private key from ...: x509: failed to parse private key (use ParseECPrivateKey instead for this key format) ``` Does anybody know what can be the problem, please?

japidei (Thu, 12 Mar 2020 22:49:08 GMT):
You can also debug this (and avoid chasing the container) by sending the stdout/stderr of the containers to the peer logs using the option vm.docker.attachStdout in core.yaml

yacovm (Fri, 13 Mar 2020 08:07:46 GMT):
@braduf the private key needs to be in the same format cryptogen creates

yacovm (Fri, 13 Mar 2020 08:08:08 GMT):
how did you create the private key?

yacovm (Fri, 13 Mar 2020 08:08:22 GMT):
can you perhaps give me a sample private key?

yacovm (Fri, 13 Mar 2020 08:08:31 GMT):
Maybe i can make the code support both formats :thinking_face:

chintanr11 (Fri, 13 Mar 2020 08:30:30 GMT):
Hi, in the client applications (using Node/Go) we provide connection profile to identify the endpoints of endorsers. There we specify endpoint of peer in terms of grpc://localhost:port but actually gRPC runs on HTTP2 right? Then does the Fabric SDK convert the endpoint to a HTTP url or is it handled by fabric peer code? I mean how is grpc endpoint converted to an HTTP one? Or does the peer expose a grpc endpoint itself? If yes, how?

sreenith70 (Fri, 13 Mar 2020 10:55:02 GMT):
Has joined the channel.

sreenith70 (Fri, 13 Mar 2020 10:55:07 GMT):
hi everyone

NehaGhogale-inn (Fri, 13 Mar 2020 12:29:45 GMT):
Has joined the channel.

NehaGhogale-inn (Fri, 13 Mar 2020 12:29:46 GMT):
Hi, We are developing blockchain application on hyperledger fabric which consist of multiple organizations involved in the transaction and also one authorised organization which will monitor that transaction. In the above application, A transaction is made up of two blockchain transactions. Any two organizations can involve in one transaction.That transaction has a private data(this data shouldn't be part of distributed ledger as it should get purged) which can only be accessed by organizations involved in that transaction and authorised organization. When one organization make one blockchain transaction all the other organization receives it using event and concerned organization will act on it. After finishing development of the project. We started focusing on performance improvements. We used below things successfully to increase performance of the network. 1. Multiple workers for DLT client. 2. Reduced size of read-write set. 3. Block size tuning as per requirements 4. Optimization of code. 5. Validation pool size changes by GOMAXPROC. To increase the performance further, we wanted to establish 2nd peer for every organization But we are not able to do it as we are getting an error "Block not received". We tried below things to remove the error 1. Making changes in MAXPEERCOUNT and REQUIREDPEERCOUNT. 2. Divide peer responsibility by making only one peer endorser and another just a committer from which we will get our events. This fixed our issue but this decreased network throughput. We believe that adding one more peer will increase throughput of our network. Kindly guide us.

Rein 35 (Fri, 13 Mar 2020 12:37:24 GMT):
Hello everyone, I'd like to add ready or health checks to the peers / orderers (using k8s) Are there such calls to be made ? For the hlf-ca you can easely call /cainfo - however for the peers / orderers i'm scratching my head

braduf (Fri, 13 Mar 2020 13:03:15 GMT):
Hi @yacovm , the key was generated with openssl in the following way: `openssl ecparam -name prime256v1 -genkey -noout -out priv.pem` This makes a private key in the following format: ``` -----BEGIN EC PRIVATE KEY----- MHcCAQEEIOwCtOQIkowasuWoDQpXHgC547VHq+aBFaSyPOoV8mnGoAoGCCqGSM49 AwEHoUQDQgAEEsrroAkPez9reWvJukufUqyfouJjakrKuhNBYuclkldqsLZ/TO+w ZsQXrlIqlmNalfYPX+NDDELqlpXQBeEqnA== -----END EC PRIVATE KEY----- ``` Thanks a lot and let me know if you need any more info or if I can help with supporting both formats.

yacovm (Fri, 13 Mar 2020 16:04:10 GMT):
@braduf https://github.com/hyperledger/fabric/pull/854

ChrisSargent (Fri, 13 Mar 2020 16:38:09 GMT):
Anyone have a good strategy for mocking calls like `cid.GetID(stub)` when unit testing?

ChrisSargent (Fri, 13 Mar 2020 16:48:18 GMT):
or am I looking at it the wrong way, should I some how send a mocked user that the real `cid.GetID` can understand??

Antimttr (Fri, 13 Mar 2020 20:01:48 GMT):
@Rein 35 you could use the fabric-tools cli to perform checks like seeing what channels/chaincodes are installed

Antimttr (Fri, 13 Mar 2020 20:02:36 GMT):
you could also perform non committing chaincode queries, or pull ledger blocks

Antimttr (Fri, 13 Mar 2020 20:02:52 GMT):
or even check current blockchain height

hariomdebut (Sat, 14 Mar 2020 06:52:30 GMT):
Hi, Is there any event for fetching all new blocks at SDK level. Whenever a new block is added. Right now i am using newChannelEventHub, due to which some blocks get skipped. Like block 1000 is received but 1001-1002 skipped than 1003 received. These skipped blocks don't have any useful information but they are creating issue while syncing blocks.

smtter (Sat, 14 Mar 2020 07:58:39 GMT):
Situation: Chaincode A and B are installed on peer X. A invokes a function in B and this function invokes another function in A. Is this possible?

smtter (Sat, 14 Mar 2020 07:58:55 GMT):
My code is not working for some reason..

smtter (Sat, 14 Mar 2020 07:59:14 GMT):
A-->B-->A

smtter (Sat, 14 Mar 2020 08:17:01 GMT):
When I specifically call B however, it invokes A. So I know that it's not the code at fault. Why would this be an implementation? Is it security related?

smtter (Sun, 15 Mar 2020 00:44:17 GMT):
Hey all, help with that^ would be much appreciated

BrettLogan (Sun, 15 Mar 2020 02:05:55 GMT):
What error do you see when making the call?

smtter (Sun, 15 Mar 2020 02:57:08 GMT):
Rpc error

qwertlimframe (Sun, 15 Mar 2020 06:15:07 GMT):
Has hyperledger fabric been implemented on gpu?

YusufDEDE (Sun, 15 Mar 2020 12:08:44 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused"

YusufDEDE (Sun, 15 Mar 2020 12:09:14 GMT):
where is the docker-compose.yml ?

erodotos (Sun, 15 Mar 2020 19:24:58 GMT):
Has joined the channel.

erodotos (Sun, 15 Mar 2020 19:24:59 GMT):
Hello everyone, I would like to ask if it is possible to have influxDB as a state database on hyperledger fabric instead of couchdb.

Antimttr (Sun, 15 Mar 2020 23:16:13 GMT):
@YusufDEDE its usually in the artifacts directory

BrettLogan (Mon, 16 Mar 2020 03:04:43 GMT):
I strongly recommend you read our basic doc, Fabric is not bounded by CPU constraints like traditional PoW systems.

BrettLogan (Mon, 16 Mar 2020 03:05:19 GMT):
This was a major basis for Fabric, to remove the hardware requirements of traditional blockchains

PulkitSarraf (Mon, 16 Mar 2020 05:50:35 GMT):
Hi Is it possible to create a package of javascript chaincode without using a peer?

hariomdebut (Mon, 16 Mar 2020 08:30:55 GMT):
Hi, is that possible to run cron job at chaincode level. If so, please provide some tutorials. Outside of chaincode cron is working fine but it is not working inside chaincode. Is there anything in fabric which is preventing it to execute it

ubakan (Mon, 16 Mar 2020 13:36:47 GMT):
Has joined the channel.

ubakan (Mon, 16 Mar 2020 13:36:48 GMT):
Is this the best place to ask questions about the current (2.0.0) functionality of fabric-sdk-py?

msolefonte (Mon, 16 Mar 2020 13:57:33 GMT):
How can I access to the docker containers running inside of a peer? I enter inside of one and run `docker ps`, but I get a notification saying that docker is not installed there. Shouldn't it?

msolefonte (Mon, 16 Mar 2020 14:05:41 GMT):
Hello. How can I? I connected to the peer and executed `docker ps` but there is an error saying that docker is not installed. Shouldn't it? How can chaincode be executed if not?

Antimttr (Mon, 16 Mar 2020 14:12:53 GMT):
do docker ps from the host system

Antimttr (Mon, 16 Mar 2020 14:12:55 GMT):
not inside the peer

msolefonte (Mon, 16 Mar 2020 14:13:21 GMT):
I am running the network in Kubernetes

msolefonte (Mon, 16 Mar 2020 14:13:45 GMT):
Should I try to execute docker ps in each node of the network?

msolefonte (Mon, 16 Mar 2020 14:14:37 GMT):
Yeah it works

msolefonte (Mon, 16 Mar 2020 14:14:39 GMT):
Thank you

BrettLogan (Mon, 16 Mar 2020 18:18:45 GMT):
You don't need to use a peer, only the peer binary in 1.4. In 2.0 chaincode is simply a tarball

BrettLogan (Mon, 16 Mar 2020 18:18:45 GMT):
You don't need to use a peer, only the peer binary. In 2.0 chaincode is simply a tarball

BrettLogan (Mon, 16 Mar 2020 18:19:27 GMT):
#fabric-sdk-py would be best for that

braduf (Mon, 16 Mar 2020 19:47:05 GMT):
@yacovm That's great, thank you so much!

akshay.sood (Tue, 17 Mar 2020 05:05:20 GMT):
Hi Guys Is it is possible to query for the history of private data? Something like getHistoryForKey()?

shiseki (Tue, 17 Mar 2020 05:21:01 GMT):
Has joined the channel.

PrafullTilwankar (Tue, 17 Mar 2020 12:16:51 GMT):
Hi All

PrafullTilwankar (Tue, 17 Mar 2020 12:17:15 GMT):
How can we identify guilty node in permissioned network ?

lepar (Tue, 17 Mar 2020 12:18:40 GMT):
@akshay.sood You could query for the hashes history but not the data itself

lepar (Tue, 17 Mar 2020 12:19:40 GMT):
@PrafullTilwankar You mean malicious nodes? There's a couple of ways like monitoring too many rejected networks, requests from IPs and orgs not allowed on the channel

PrafullTilwankar (Tue, 17 Mar 2020 12:24:12 GMT):
@lepar Thanks for response. Yes malicious node. How can we monitor ? Do we have any in built monitoring functionality in Fabric or we need to use monitoring service if deployment is on cloud.

lepar (Tue, 17 Mar 2020 12:29:23 GMT):
Hyperledger Caliper is a network benchmarking tool, I've never used it so I'm not sure you can use it to monitor transactions but I know you can monitor nodes and accesses, you could start there

PrafullTilwankar (Tue, 17 Mar 2020 12:34:24 GMT):
Ok Thanks @lepar

lepar (Tue, 17 Mar 2020 12:36:45 GMT):
No problem

Rein 35 (Tue, 17 Mar 2020 19:47:19 GMT):
How can I join a channel on a peer, using the latest config ?

Rein 35 (Tue, 17 Mar 2020 19:47:41 GMT):
The orderers in the config 0 do no longer exist

Rein 35 (Tue, 17 Mar 2020 19:48:21 GMT):
i'm getting the following error: Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: Expected block number=0, received block number=11276) command terminated with exit code 1

Rein 35 (Tue, 17 Mar 2020 19:49:25 GMT):
peer channel fetch config ... peer channel join ... However when I use config 0: peer channel fetch 0 ... The can't fetch info from orderers, as they no longer exist (dns of the orderers changed)

yacovm (Tue, 17 Mar 2020 21:15:17 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L342-L351

yacovm (Tue, 17 Mar 2020 21:15:25 GMT):
@Rein 35 take a look at the above hacky override

Rein 35 (Tue, 17 Mar 2020 21:16:09 GMT):
is this available in 1.4.2 ?

yacovm (Tue, 17 Mar 2020 21:16:36 GMT):
i don't remember... look at the release notes

yacovm (Tue, 17 Mar 2020 21:16:50 GMT):
sorry, 1.4.2 was too long ago for me

yacovm (Tue, 17 Mar 2020 21:17:37 GMT):
oh i think it's only 1.4.4

yacovm (Tue, 17 Mar 2020 21:17:42 GMT):
https://github.com/hyperledger/fabric/releases

Rein 35 (Tue, 17 Mar 2020 21:19:28 GMT):
ok damn

Rein 35 (Tue, 17 Mar 2020 21:19:29 GMT):
thanks

Rein 35 (Tue, 17 Mar 2020 21:19:34 GMT):
Will have to upgrade then :(

Rein 35 (Tue, 17 Mar 2020 21:22:58 GMT):
thanks for the tip tho

LamSingjip (Wed, 18 Mar 2020 02:18:31 GMT):
Hi~ I am following the tutorial in fabric docs(https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html). I got an error when I run "./startFabric.sh javascript". The error says "Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing". I've tried to find the answer on the Internet but I can't find something useful. I don't know what's going on. Hope you guys give me a help. Thanks!

AldrinWilfred (Wed, 18 Mar 2020 04:37:09 GMT):
Has joined the channel.

AldrinWilfred (Wed, 18 Mar 2020 04:50:33 GMT):
Hi all, I am experimenting fabric, I m practising ERC20, So far, I have an "Admin" and an "User1", I have the chaincode installed and instantiated. I could create "accounts" and transfer points between them according various logic inside chaincode. I would like to know if i can any kind of use mechanisms to validate and "authenticate" the accounts which was created and authenticate to use the chaincode after that. I have a doubt over the User1 that was created and the accounts created using chaincode. Are these created accounts taking the "context" of the User1, like attaining the features of the User1? Right now im confused why I can't create More users like User1, User2, User3, User4..etc during run time. Could you please advice me over my understandings.

AldrinWilfred (Wed, 18 Mar 2020 04:50:33 GMT):
Hi all, I am experimenting fabric, I m practising ERC20, So far, I have an "Admin" and an "User1", I have the chaincode installed and instantiated. I could create "accounts" and transfer points between them according various logic inside chaincode. I would like to know if i can any kind of use mechanisms to validate and "authenticate" the accounts which was created and authenticate to use the chaincode after that. I have a confusions over the User1 that was created and the accounts created using chaincode. Are these created accounts taking the "context" of the User1, like attaining the features of the User1? Right now im confused why I can't create More users like User1, User2, User3, User4..etc during run time. Could you please advice me over my understandings.

AldrinWilfred (Wed, 18 Mar 2020 04:50:33 GMT):
Hi all, I am experimenting fabric, I m practising ERC20, So far, I have an "Admin" and an "User1", I have the chaincode installed and instantiated. I could create "accounts" and transfer points between them according various logic inside chaincode. I would like to know if i can any kind of use mechanisms to validate and "authenticate" the accounts which was created and authenticate to use the chaincode after that. I have a confusion over the User1 that was created and the accounts created using chaincode. Are these created accounts taking the "context" of the User1, like attaining the features of the User1? Right now im confused why I can't create More users like User1, User2, User3, User4..etc during run time. Could you please advice me over my understandings.

AldrinWilfred (Wed, 18 Mar 2020 04:50:33 GMT):
Hi all, I am experimenting fabric, I m practising ERC20, So far, I have an "Admin" and an "User1", I have the chaincode installed and instantiated. I could create "accounts" and transfer points between them according various logic inside chaincode. I would like to know if i can use any kind of mechanisms to validate and "authenticate" the accounts which was created and authenticate to use the chaincode after that. I have a confusion over the User1 that was created and the accounts created using chaincode. Are these created accounts taking the "context" of the User1, like attaining the features of the User1? Right now im confused why I can't create More users like User1, User2, User3, User4..etc during run time. Could you please advice me over my understandings.

KaushalKedilaya (Wed, 18 Mar 2020 07:32:59 GMT):
Has joined the channel.

KaushalKedilaya (Wed, 18 Mar 2020 07:33:00 GMT):
Hi all, I'm curious to know how each node in the network contact and communicate with each? I want to know the protocols/ procedure behind this.

KaushalKedilaya (Wed, 18 Mar 2020 07:33:00 GMT):
Hi all, I'm curious to know how each node in the network via http or https?

KaushalKedilaya (Wed, 18 Mar 2020 07:33:00 GMT):
Hi all, I'm curious to know how each node in the network communicate via http or https?

smtter (Wed, 18 Mar 2020 07:54:59 GMT):
Is it a bad design pattern to have a chaincode run once a minute to check CouchDB for any updates? Should it be the other way around, such that it gets invoked by the code that updates the DB?

smtter (Wed, 18 Mar 2020 07:55:18 GMT):
I'm wondering for chaincode channel Security. Thanks in advance!

smtter (Wed, 18 Mar 2020 07:55:18 GMT):
I'm wondering for the purpose of chaincode channel Security. Thanks in advance!

ericripi (Wed, 18 Mar 2020 10:31:05 GMT):
HI does

ericripi (Wed, 18 Mar 2020 10:35:49 GMT):
Can we install a chaincode in fabric2.0 without lifecycle ? i meet an error error " msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only "

ericripi (Wed, 18 Mar 2020 10:35:49 GMT):
Can we install a chaincode in fabric2.0 without lifecycle ? i meet an error " msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only "

SanthoshThomas (Wed, 18 Mar 2020 13:20:18 GMT):

Clipboard - March 18, 2020 6:50 PM

SanthoshThomas (Wed, 18 Mar 2020 13:20:24 GMT):
HI I am inserting a json to fabric using a client application. the data gets inserted successfully.

SanthoshThomas (Wed, 18 Mar 2020 13:20:43 GMT):
But when i retrieve it I am getting it like this.

SanthoshThomas (Wed, 18 Mar 2020 13:21:10 GMT):

Clipboard - March 18, 2020 6:51 PM

SanthoshThomas (Wed, 18 Mar 2020 13:21:43 GMT):
The additional \ before every value is creating the problem

SanthoshThomas (Wed, 18 Mar 2020 13:25:35 GMT):
can anyone help help me to understand why I am getting the additional \ and how to avoid it?

semosemo941 (Wed, 18 Mar 2020 13:57:08 GMT):
Has joined the channel.

BrettLogan (Wed, 18 Mar 2020 14:08:42 GMT):
Data in Fabric is strings, not complex Json objects. So when you submit the JSON object you are stringifying it. A double quote is a reserved character for a string, so it has to escape it so it's not treated as a series of dozens of strings. You need to pass the object back through JSON.parse to remove the escape sequences.

Djensonsan (Wed, 18 Mar 2020 14:29:27 GMT):
Has joined the channel.

Djensonsan (Wed, 18 Mar 2020 14:29:29 GMT):
Hi ~, I'm re-writing the commercial-paper example. I wanted to add two lists of different asset types to the transaction context. (See picture below) Adding/updating one of those lists works perfectly but the other throws the following error: "TypeError: Converting circular structure to JSON" `dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.757Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-083f6d01] TypeError: Converting circular structure to JSON dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.757Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-083f6d01] TypeError: Converting circular structure to JSON dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.762Z error [c-api:lib/handler.js] [mychannel-083f6d01] Calling chaincode Invoke() returned error response [TypeError: Converting circular structure to JSON dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at JSON.stringify () dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at Function.serialize (/usr/local/src/ledger-api/state.js:50:33) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at InstanceList.addState (/usr/local/src/ledger-api/statelist.js:33:26) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at InstanceList.addInstance (/usr/local/src/lib/instanceList.js:16:21) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at LicenseContract.createSoftwareInstance (/usr/local/src/lib/licensecontract.js:119:28) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at ChaincodeFromContract.invokeFunctionality (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/chaincodefromcontract.js:379:58) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at processTicksAndRejections (internal/process/task_queues.js:85:5)]. Sending ERROR message back to peer `

Djensonsan (Wed, 18 Mar 2020 14:29:29 GMT):
Hi ~, I'm re-writing the commercial-paper example. I wanted to add two lists of different asset types to the transaction context. Adding/updating one of those lists works perfectly but the other throws the following error: "TypeError: Converting circular structure to JSON" `dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.757Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-083f6d01] TypeError: Converting circular structure to JSON dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org2.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.757Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-083f6d01] TypeError: Converting circular structure to JSON dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4|2020-03-18T13:04:01.762Z error [c-api:lib/handler.js] [mychannel-083f6d01] Calling chaincode Invoke() returned error response [TypeError: Converting circular structure to JSON dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --> starting at object with constructor 'LicenseContext' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| | property 'licenseList' -> object with constructor 'LicenseList' dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| --- property 'ctx' closes the circle dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at JSON.stringify () dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at Function.serialize (/usr/local/src/ledger-api/state.js:50:33) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at InstanceList.addState (/usr/local/src/ledger-api/statelist.js:33:26) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at InstanceList.addInstance (/usr/local/src/lib/instanceList.js:16:21) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at LicenseContract.createSoftwareInstance (/usr/local/src/lib/licensecontract.js:119:28) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at ChaincodeFromContract.invokeFunctionality (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/chaincodefromcontract.js:379:58) dev-peer0.org1.example.com-cp_0-d20d4a5f93965786c156ba3b80b0348d27b1617d92809f51a67101b80b0dd0c4| at processTicksAndRejections (internal/process/task_queues.js:85:5)]. Sending ERROR message back to peer `

Djensonsan (Wed, 18 Mar 2020 14:35:00 GMT):
Hi ~, I'm rewriting the commercial-paper example. I added two lists of distinct assets to the context. One of the lists works perfectly (Updating/Adding assets) while the other throws "TypeError: Converting circular structure to JSON". More info can be found: https://stackoverflow.com/questions/60726890/hyperledger-fabric-error-converting-circular-structure-to-json. Anyone got a clue what I'm doing wrong? Any help is appreciated!

BrettLogan (Wed, 18 Mar 2020 14:36:38 GMT):
Can you share the JSON so we can see what the circular reference is

BrettLogan (Wed, 18 Mar 2020 14:37:54 GMT):
It's also worth noting, a circular reference isn't a Fabric concept, its a JSON concept, so you should simply google `NodeJS json circular reference`

abourget (Wed, 18 Mar 2020 17:48:53 GMT):
Has joined the channel.

abourget (Wed, 18 Mar 2020 17:48:53 GMT):
hey folks, I have a question, I might not use the vocabulary the right way .. excuse me for that. Is it possible that chaincode execution does a Query to CouchDB, and uses the returned elements as the returned read set? I was wondering if chain code couldn't base a decision on the absence of a row from query results, and in which case checking solely for read set collision wouldn't be sufficient to ensure the intent of the chaincode (and its write sets) would be coherent when applied.. if say a new key was inserted?

smtter (Wed, 18 Mar 2020 19:02:47 GMT):
Is it a bad design pattern to have a chaincode run once a minute to check CouchDB for any updates? Should it be the other way around, such that it gets invoked by the code that updates the DB?

smtter (Wed, 18 Mar 2020 19:03:14 GMT):
I'm wondering for the purpose of chaincode channel Security. Thanks in advance!

abourget (Wed, 18 Mar 2020 19:36:46 GMT):
hmm.. re-reading myself, probably isn't that clear :) In the docs, I read: > The chaincode is then executed against the current state database to produce transaction results including a response value, read set, and write set (i.e. key/value pairs representing an asset to create or update). > - https://hyperledger-fabric.readthedocs.io/en/release-2.0/txflow.html Could this `read set` be the result of a CouchDB query, is what I'm asking :)

ericripi (Thu, 19 Mar 2020 03:51:39 GMT):
hello , Is there a sample guide to start fabric network with k8s?

AldrinWilfred (Thu, 19 Mar 2020 04:42:48 GMT):
Hi, Can you please suggest me some tutorials to practice on end-users registration and authentication to access chaincode functions, using hyperledger fabric? It would be really helpful.. Thanks:slight_smile:

AldrinWilfred (Thu, 19 Mar 2020 04:42:48 GMT):
Hi, Can you please suggest me some tutorials to practice on end-users registration and authentication to access chaincode functions, using hyperledger fabric? Are these Users that were getting enrolled and registered after registering Admin? I have gone through some articles, that mentioned to enrol and register Admin and then Users. But, for example in Balance transfer chaincode, it involves two accounts ‘A’ and ‘B’ that has it’s hands on the chaincode. What is the use of the User1? I m quite confused with this now. Could you please clear me if my understandings were wrong? It would be really helpful.. Thanks:slight_smile:

AldrinWilfred (Thu, 19 Mar 2020 04:42:48 GMT):
Hi, 1) Can you please suggest me some tutorials to practice on end-users registration and authentication to access chaincode functions, using hyperledger fabric? It would be really helpful.. Thanks:slight_smile:

serial-coder (Thu, 19 Mar 2020 05:03:15 GMT):
Has joined the channel.

serial-coder (Thu, 19 Mar 2020 05:03:16 GMT):
Hi All, I'm trying to send multiple events from my Go chaincode using SetEvent(). I use NodeJS' registerChaincodeEvent() to subscribe events. I can receive an event from chaincode correctly if I emit just a single event. But, if I try to emit multiple events I will receive only the latest emitted event. This issue happens both when I emit events with the same event name or different names. Can anyone shed some light on this?

SanthoshThomas (Thu, 19 Mar 2020 06:22:25 GMT):
Thank you very much Brett.. Actually I am stringifying before inserting into fabric. and I am doing a JSON.PARSE. but still I am getting the issue.

SanthoshThomas (Thu, 19 Mar 2020 06:22:33 GMT):

Clipboard - March 19, 2020 11:52 AM

usamahabib95 (Thu, 19 Mar 2020 07:50:17 GMT):
I am adding a new org to existing Hyperledger Fabric network I have generated cryptographic material usinf Fabric Ca, started peer nodes successfully when I enter in cli container and run peer channel list I get this error everytime ``` Error: error getting endorser client for channel: endorser client failed to connect to peer0.org3.example.com:2051: failed to create new connection: context deadline exceeded ``` I have checked every file there is no mistake. Please Help

ChrisSargent (Thu, 19 Mar 2020 12:27:11 GMT):
mock

ChrisSargent (Thu, 19 Mar 2020 12:28:56 GMT):
Answerd this myself eventually, might help someone out: https://stackoverflow.com/questions/60744608/how-to-perform-unit-tests-on-hyperledger-fabric-go-chaincode-which-uses-acl-cont/60757248#60757248

Hana_Ch (Thu, 19 Mar 2020 13:05:29 GMT):
Hello Hyperledger Community .... i am running a problem those days on how to do the discovery of peers and orderers existant in the network with sdk with the same way done with the discovere command of the CLI .... does someone have an idea on howa to do so ... i want to list all existant peers available to sign and validate a transaction , in addition , i want to select a random peer ... i saw that we should configure a discovere peer on sdk in order to initalise the channel with the we use the channel command " sendTransactionProposalToEndorsers" . but this method returns always a nullpointer exception ... I need that answer as soon as possible please ... and thanks

RobinKlemens (Thu, 19 Mar 2020 13:58:21 GMT):
I'm also interested in the answer. Can someone provide a link to the `hyperledger/fabric-couchdb` Docker file?

barney2k7 (Thu, 19 Mar 2020 13:59:44 GMT):
I think you're looking for this: https://github.com/hyperledger/fabric-baseimage/tree/master/images/couchdb

Hana_Ch (Thu, 19 Mar 2020 14:09:59 GMT):
for me i am not searching a couchdb link ar explanation ... i need to understand how can i do the discovery from the sdk side .. and thanks :) :)

yacovm (Thu, 19 Mar 2020 14:38:33 GMT):
@Hana_Ch is this for java SDK?

Hana_Ch (Thu, 19 Mar 2020 14:39:13 GMT):
yes ... it's for java sdk

yacovm (Thu, 19 Mar 2020 14:39:29 GMT):
then ask in #fabric-sdk-java

Hana_Ch (Thu, 19 Mar 2020 14:39:42 GMT):
okey thanks :) :)

yacovm (Thu, 19 Mar 2020 14:40:56 GMT):
also i suggest to add the stack trace as well

yacovm (Thu, 19 Mar 2020 14:40:59 GMT):
in that channel

Hana_Ch (Thu, 19 Mar 2020 14:41:35 GMT):
ok .. good idea .. i'll do so too :) :)

BrettLogan (Thu, 19 Mar 2020 15:09:02 GMT):
Is that the only time you're touching the `po` object for manipulation (trying to figure out if it's gone through and transformations before making a recommendation)?

RaynielRamos (Thu, 19 Mar 2020 17:30:11 GMT):
Has joined the channel.

vanitas92 (Thu, 19 Mar 2020 19:48:41 GMT):
Hello community, after using the new lifecycle process for chaincodes i have came across this particular flag in the `peer chaincode invoke` command: ``` -I, --isInit Is this invocation for init (useful for supporting legacy chaincodes in the new lifecycle) ``` What does *legacy chaincodes* mean here? I searched for information in the docs and there is no definition to that term. Could somebody explain how legacy chaincodes look like and what are the new chaincodes concept? Thanks!

BrettLogan (Thu, 19 Mar 2020 20:01:19 GMT):
Legacy chaincode is chaincode that doesn't support the new programming model. In legacy chaincode you implement 2 funcitons, init and invoke. Init is called at instantiation time, and from then on out when you invoke or query chaincode, Invoke is always called. To implement logic "functions" which were the first argument to your invoke, they were really just strings and you would do a select statement on the string. In the new programming model, you can actually define separate functions, register those functions with the stub and then call them directly.

vanitas92 (Thu, 19 Mar 2020 20:10:10 GMT):
Hmm interesting, did not know about that. And how does a new chaincode look like? Can you point me how to get more information in the docs about the new chaincodes?

vanitas92 (Thu, 19 Mar 2020 20:11:37 GMT):
Hmm interesting. Where can i get more info about this in the official docs? Seems really a good approach.

braduf (Thu, 19 Mar 2020 20:25:46 GMT):
Hi all, when writing to an implicit_org private data collection, i imagine that the transaction needs to be endorsed by the owner of the implicit collection? So in that way it can be used as an alternative endorsement policy like state-based endorsement, but transaction specific instead of state specific. Can someone confirm if my reasoning is correct, please? (I am wondering if I need state-based endorsement or not...) Thanks a lot!

braduf (Thu, 19 Mar 2020 20:25:46 GMT):
Hi all, when writing to an implicit_org private data collection, i imagine that the transaction needs to be endorsed by the owner of the implicit collection? So in that way it can be used as an alternative endorsement policy like state-based endorsement, but transaction specific instead of state specific. Can someone confirm if my reasoning is correct, please? (I am figuring out if I need state-based endorsement or not in some transactions already writing to an implicit private collection...) Thanks a lot!

BrettLogan (Thu, 19 Mar 2020 20:37:45 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/whatsnew.html#improved-programming-model-for-developing-applications

Rajatsharma (Thu, 19 Mar 2020 23:43:19 GMT):
I'm facing a weird issue, I have a running fabric network. I don't know what's happening but I'm getting MVCC in a transaction where there's only 1 transaction in a block. How is this even possible ?

SanthoshThomas (Fri, 20 Mar 2020 02:46:04 GMT):
Hi Brett.. Thank you.. I could get this resolved... found that I was doing an additional stringify :) coding error.... Thanks a lot !!!!!

braduf (Fri, 20 Mar 2020 05:01:18 GMT):
Are you constantly writing to the same state (same key)? Then probably some transactions are endorsed around the same time and the first that gets included in a block changes the state that was read by the other transaction what makes that the read set does not match the state at commit time anymore. I think you should change the way you designed your chaincode so transactions can be endorsed in parrallel without MVCC errors. Check out this fabric-sample to get inspired: https://github.com/hyperledger/fabric-samples/tree/master/high-throughput And read about the UTXO model, what can also be implemented in Fabric to make parrallel transactions possible.

Rajatsharma (Fri, 20 Mar 2020 05:50:17 GMT):
Thanks for your response, I'll have a look !! UTXO is removed from 2.0, according to what I remember.

AldrinWilfred (Fri, 20 Mar 2020 07:29:11 GMT):
Could you please advice me on the below error? Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error executing build: API error (404): network hlf-aldo_basic not found "" Thanks in advance. -Aldrin

vanitas92 (Fri, 20 Mar 2020 08:37:21 GMT):
thank you!

AldrinWilfred (Fri, 20 Mar 2020 10:04:22 GMT):
Hi all, could you please suggest me some tuts or procedures for the below, to practice? for "openldap docker container with fabric-ca" Thanks.

braduf (Fri, 20 Mar 2020 13:54:03 GMT):
It has never been in it, with Fabric there is no enforced model, you can develop and use the states as you want, being it a UTXO model in which you consume inputs and create new outputs for every transaction or using an account model adding and resting to the same state acting as the account. There has never been anything in Fabric enforcing either one of the two.

braduf (Fri, 20 Mar 2020 13:54:03 GMT):
It has never been in it, with Fabric there is no enforced model, you can develop and use the states as you want, being it a UTXO model in which you consume inputs and create new outputs for every transaction or using an account model adding and resting to the same state acting as the account. There has never been anything in Fabric enforcing either one of the two, but you can implement both ways yourselve in the chaincode.

dachrillz (Fri, 20 Mar 2020 16:39:10 GMT):
Hello! I noticed that the "get block" calls in the sdk for the clients returns a timestamp. Who sets this timestamp? Is it the orderers? Does this mean that I can use this timestamp to timestamp data that is uploaded if I trust the ordering service to be correct? Many thanks!

dachrillz (Fri, 20 Mar 2020 16:39:10 GMT):
Hello! I noticed that the "get block" calls in the sdk for the clients return a timestamp. Who sets this timestamp? Is it the orderers? Does this mean that I can use this timestamp to timestamp data that is uploaded if I trust the ordering service to be correct? Many thanks!

dachrillz (Fri, 20 Mar 2020 16:39:10 GMT):
Hello! I noticed that the "get block" calls in the sdk for the clients return a timestamp. Who sets this timestamp? Is it the orderers? Does this mean that I can use this timestamp to timestamp data that is uploaded if I trust the ordering service to be correct? (API in question: https://hyperledger.github.io/fabric-sdk-node/release-1.4/global.html#Header) Many thanks!

Luxii (Fri, 20 Mar 2020 16:53:55 GMT):
Hi, I am getting this error while creating channel : `response ::{"status":"FORBIDDEN","info":"Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied"}` Can anyone please lead me to some direction ? I have tried changing policy section of configtx.yaml But its still the same

lepar (Sat, 21 Mar 2020 01:41:51 GMT):
@Luxii check your environment variables to see if the MSP config path points to an ADMIN user

HLFPOC (Sat, 21 Mar 2020 11:00:28 GMT):
can we implement new programming model for chaincodes written in goLang? If yes, is there any sample chaincode available implementing this model ?

Gowtham_Paramasivam (Sat, 21 Mar 2020 13:38:01 GMT):
Has joined the channel.

Gowtham_Paramasivam (Sat, 21 Mar 2020 13:38:02 GMT):
I am new to hyperledger fabric, I am trying to access the chain code through sdk, but i am getting the following error, can someone help me on this. I am using Java sdk. org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Channel Channel{id: 1, name: mychannel} Sending proposal with transaction: ff7d9a539984b678210f5290d68f446c905952a6555242761cc91e67c0b4a088 to Peer{ id: 2, name: peer0.org1.example.com, channelName: mychannel, url: grpcs://localhost:7051, mspid: Org1MSP} failed because of: gRPC failure=Status{code=UNKNOWN, description=error validating proposal: access denied: channel [mychannel] creator org [Org1MSP], cause=null}

Gowtham_Paramasivam (Sat, 21 Mar 2020 13:38:02 GMT):
I am new to hyperledger fabric 2.0, I am trying to access the chain code through sdk, but i am getting the following error, can someone help me on this. I am using Java sdk. org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Channel Channel{id: 1, name: mychannel} Sending proposal with transaction: ff7d9a539984b678210f5290d68f446c905952a6555242761cc91e67c0b4a088 to Peer{ id: 2, name: peer0.org1.example.com, channelName: mychannel, url: grpcs://localhost:7051, mspid: Org1MSP} failed because of: gRPC failure=Status{code=UNKNOWN, description=error validating proposal: access denied: channel [mychannel] creator org [Org1MSP], cause=null}

YusufDEDE (Sat, 21 Mar 2020 14:29:44 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1

BrettLogan (Sat, 21 Mar 2020 14:36:01 GMT):
You can, here is an example: https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/go/fabcar.go

BrettLogan (Sat, 21 Mar 2020 14:36:26 GMT):
@HLFPOC

DasunManathunga (Sat, 21 Mar 2020 20:13:23 GMT):
Has joined the channel.

DasunManathunga (Sat, 21 Mar 2020 20:14:30 GMT):

Screenshot from 2020-03-21 21-35-02.png

DasunManathunga (Sat, 21 Mar 2020 20:14:49 GMT):
Why i am receiving this error many times?

skyliulu (Sun, 22 Mar 2020 08:55:32 GMT):
Has joined the channel.

Roberto9 (Sun, 22 Mar 2020 17:53:06 GMT):
I'm trying to modify the fabcar example but having issues with the chaincode updating, I just want to change the queryAllCars function name to queryAllCars2 in chaincode/fabcar/javascript/lib/fabcar.js However when changing the query.js in /fabcar/javascript/query.js from querying "queryAllCars" to "queryAllCars2" *I get this error: Failed to evaluate transaction: Error: Invalid Smart Contract function name.* I have tried the online solutions of deleting docker containers, and re-running the fabcar startFabric.sh script, I've tried changing the version number in that .sh script and still the same error! :(

viragumathe5 (Sun, 22 Mar 2020 19:59:10 GMT):
Has joined the channel.

viragumathe5 (Sun, 22 Mar 2020 19:59:28 GMT):
Hi everyone I am new here to this community and learning things about it and really interested for the Hyperledger Mentorship Program and looking forwor for the project "Build a university course on Hyperledger Fabric using Hyperledger Umbra", anybody would please help me by addressing any other channel or should I start my discussion here ??

yeousunn (Mon, 23 Mar 2020 03:27:25 GMT):

Clipboard - March 23, 2020 8:57 AM

yeousunn (Mon, 23 Mar 2020 03:27:44 GMT):
Hi Guys, I have fresh installed fabric on centos running on VM. When testing byfn I am getting the following error when it runs create channel. ``` Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.24.0.2:7050: connect: no route to host" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

yeousunn (Mon, 23 Mar 2020 03:27:44 GMT):
Hi Guys, I have fresh installed fabric on centos running on VM. When testing byfn I am getting the following error when it runs create channel I get the following error. ``` Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.24.0.2:7050: connect: no route to host" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```

yeousunn (Mon, 23 Mar 2020 03:27:44 GMT):
Hi Guys, I have fresh installed fabric on centos running on VM. When testing byfn I am getting the following error when it runs create channel I get the following error. ``` Creating channel... + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.24.0.2:7050: connect: no route to host" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ``` I have tried adding entry to hosts file. but it did not help. Any idea what I can do here?

knagware9 (Mon, 23 Mar 2020 03:54:57 GMT):
you can show your intrest here https://wiki.hyperledger.org/display/INTERN/Build+a+university+course+on+Hyperledger+Fabric+using+Hyperledger+Umbra

PJHaga (Mon, 23 Mar 2020 14:09:54 GMT):
Has left the channel.

ManideepSadhu (Mon, 23 Mar 2020 14:42:38 GMT):
Has joined the channel.

ManideepSadhu (Mon, 23 Mar 2020 14:50:47 GMT):
Hello Guys, I had a question on changing the role in certificate issued by fabric-ca. How can we change the role that is used while registering with fabric ca, without re-enrolling the user .For example I registered a user with role buyer and enrolled him with fabric ca. Now his certificate has the info about his role in it. Now I want to change the role from buyer to supplier without re enrolling the user . Is this possbile? If so how can we achieve this?

garyclark (Mon, 23 Mar 2020 17:15:04 GMT):
Ensure that your port 7050 is open.

garyclark (Mon, 23 Mar 2020 17:16:23 GMT):
Ensure port 7050 is open on the firewall. Also since your using centos. I had "sudo setenforce 0".

garyclark (Mon, 23 Mar 2020 17:17:09 GMT):
Also when running the orderer can you telnet to 7050.

garyclark (Mon, 23 Mar 2020 17:17:09 GMT):
Also when running the orderer can you telnet to 7050 to rest that you can hit that port.

garyclark (Mon, 23 Mar 2020 17:21:06 GMT):
Got a quick question. I have setup a 3 peer machine network using hyperledger all dandy. Except on the invoke there is a command:

garyclark (Mon, 23 Mar 2020 17:21:06 GMT):
Got a quick question. I have setup a 3 peer machine network using hyperledger all dandy. Except on the invoke command there are arguments peeraddresses. i.e --waitForEvent --peerAddresses 192.168.1.110 --peerAddresses 192.168.1.120 is good. Is there a limit on the number of "peerAddresses" I can add? Adding the third peer it goes south.

Roberto9 (Mon, 23 Mar 2020 17:23:04 GMT):
startFabric.sh in the fabcar example is failing when using ./startFabric javascript, works fine when run on go. Here is the error, + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -l node -v 1.0 -c '{"Args":[]}' -P 'AND('\''Org1MSP.member'\'','\''Org2MSP.member'\'')' --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt 2020-03-23 17:18:34.320 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-03-23 17:18:34.321 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

Jax.dev (Mon, 23 Mar 2020 17:52:53 GMT):
Can someone help on this? https://stackoverflow.com/questions/60818594/how-to-load-fabric-client-certs-in-google-cloud-function

garyclark (Mon, 23 Mar 2020 18:01:14 GMT):
I managed to do everything using node.js. Did you install fabric-sdk-node-release-1.4? I am using version 1.4.

Roberto9 (Mon, 23 Mar 2020 18:01:40 GMT):
yeah I'm on 1.4

Roberto9 (Mon, 23 Mar 2020 18:02:20 GMT):
is there a way to see more logs, its such a useless error msg

garyclark (Mon, 23 Mar 2020 18:04:12 GMT):
Yes that is true. Plenty of rabbit holes.

garyclark (Mon, 23 Mar 2020 18:14:40 GMT):
your running 1.4 hyperledger. Do you have the node.js sdk installed?

garyclark (Mon, 23 Mar 2020 18:15:15 GMT):
I just ran it locally and it was good.

Jax.dev (Mon, 23 Mar 2020 18:15:17 GMT):
anyone tried creating google cloud function for fabric invoke transaction?

garyclark (Mon, 23 Mar 2020 18:16:57 GMT):
Your running 1.4 hyperledger? Have you installed the node.js sdk for this?

Roberto9 (Mon, 23 Mar 2020 18:17:19 GMT):
yea

garyclark (Mon, 23 Mar 2020 18:17:34 GMT):
I just ran it locally. Its sounds like a setup issue.

Roberto9 (Mon, 23 Mar 2020 18:17:58 GMT):
I can run the fabcar example smart contracts fine

Roberto9 (Mon, 23 Mar 2020 18:18:01 GMT):
node query.js and all

garyclark (Mon, 23 Mar 2020 18:18:29 GMT):
great.

Roberto9 (Mon, 23 Mar 2020 18:19:08 GMT):
But I am trying to modify the chaincode, in javascript and figured I need to run ./startscript with node not go

Roberto9 (Mon, 23 Mar 2020 18:19:13 GMT):
do I?

garyclark (Mon, 23 Mar 2020 18:20:58 GMT):
Yes the argument javascript switches to node.js in the script. It may have changed to node but you can determine that in the startscript.sh to see that.

garyclark (Mon, 23 Mar 2020 18:20:58 GMT):
Yes the argument javascript switches to node.js in the script. It may have changed to node but you can determine that in the startsFabric.sh to see that.

ManideepSadhu (Mon, 23 Mar 2020 18:31:09 GMT):
Hello Guys, I had a question on changing the role in certificate issued by fabric-ca. How can we change the role that is used while registering with fabric ca, without re-enrolling the user .For example I registered a user with role buyer and enrolled him with fabric ca. Now his certificate has the info about his role in it. Now I want to change the role from buyer to supplier without re enrolling the user . Is this possbile? If so how can we achieve this?

RaghavGupta (Mon, 23 Mar 2020 19:19:30 GMT):
Has joined the channel.

RaghavGupta (Mon, 23 Mar 2020 19:19:30 GMT):
2020-03-24 00:12:21.813 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/raghav/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: KeyMaterial not found in SigningIdentityInfo

RaghavGupta (Mon, 23 Mar 2020 19:20:22 GMT):
I started with "Getting Started" section. I have installed all binaries and images and all other prerequisites. While following the section "Use the fabric test network", I am having issues while using the "peer chaincode" command to interact with network. The error is as follows: ``` 2020-03-24 00:12:21.813 IST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/raghav/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: KeyMaterial not found in SigningIdentityInfo ```

RaghavGupta (Mon, 23 Mar 2020 19:20:57 GMT):
The command used was:``` peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}' ```

robmurgai (Tue, 24 Mar 2020 01:41:31 GMT):
@RaghavGupta are you playing with the new test-network here? https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html

aberwag (Tue, 24 Mar 2020 08:07:40 GMT):
Has joined the channel.

Hana_Ch (Tue, 24 Mar 2020 08:32:01 GMT):
Hello ... how can we replace this cli command in sdk please : discover --peerTLSCA tls/ca.crt --userKey msp/keystore/fa65ea6028ce47de4163fb37b5f21529f657d978cd669337248dbfe00a7f74ee_sk --userCert msp/signcerts/Admin@org1.example.com-cert.pem --MSP Org1MSP --tlsCert tls/client.crt --tlsKey tls/client.key peers --server peer0.org1.example.com:7051

AbdullahJoyia (Tue, 24 Mar 2020 08:55:21 GMT):
Has joined the channel.

AbdullahJoyia (Tue, 24 Mar 2020 08:55:22 GMT):
Hello everyone. I am facing issue in deployement of fabcar. I have installed hyperledger fabric 2.0.0. When I try to run the fabcar example, I am getting an error like this... Can anybody help me in that. Error: error getting chaincode deployment spec for fabcar: error getting chaincode package bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric/core/chaincode/shim

robmurgai (Tue, 24 Mar 2020 13:33:30 GMT):
Hi @AbdullahJoyia are you using the directions from here? https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html

Taaanos (Tue, 24 Mar 2020 13:39:40 GMT):
Can I use the `fabric-sdk-node` with go contracts?

Taaanos (Tue, 24 Mar 2020 13:39:40 GMT):
Can I use the `fabric-sdk-node` with `go` contracts?

kush-daga (Tue, 24 Mar 2020 14:21:35 GMT):
Has joined the channel.

garyclark (Tue, 24 Mar 2020 15:01:32 GMT):
I use fabric-sdk-node with node.js contracts.

garyclark (Tue, 24 Mar 2020 15:01:32 GMT):
I use fabric-sdk-node with node.js contracts. I never tried to mix them.

garyclark (Tue, 24 Mar 2020 15:07:02 GMT):
Please ensure that you have followed the instructions for installing the specific version of node.js. I installed 8.16.1 which was in the acceptable range for 1.4 fabric.

davidkel (Tue, 24 Mar 2020 15:29:04 GMT):
@Taaanos yes can can use fabric-sdk-node with Go contracts. There are no requirements to use the same language for smart contract development and client development. If you are using node for client side be aware that node 8 is now out of LTS so consider using node 10 or node 12. fabric-sdk-node 1.4 supports node 10 and 12 only now, see https://hyperledger.github.io/fabric-sdk-node/release-1.4/index.html#toc4__anchor

Taaanos (Tue, 24 Mar 2020 15:36:35 GMT):
Great, thank you

garyclark (Tue, 24 Mar 2020 17:04:32 GMT):
Great thanks. Good to know.

garyclark (Tue, 24 Mar 2020 17:13:22 GMT):

Clipboard - March 24, 2020 12:13 PM

garyclark (Tue, 24 Mar 2020 17:13:52 GMT):
Some pages may need to be updated?

garyclark (Tue, 24 Mar 2020 17:13:52 GMT):
Some pages may need to be updated to avoid confusion.

AbdullahJoyia (Tue, 24 Mar 2020 17:36:57 GMT):
NO

AbdullahJoyia (Tue, 24 Mar 2020 17:38:50 GMT):
but when i use this, there is another error on this command ./network.sh deployCC Error: error getting chaincode bytes: listing deps for pacakge ../chaincode/fabcar/go/ failed: exit status 2 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!!

davidkel (Tue, 24 Mar 2020 17:51:33 GMT):
Maybe raise this on the #fabric-sdk-node channel, or perhaps raise a jira issue about it ?

garyclark (Tue, 24 Mar 2020 17:54:31 GMT):
Yes there a lot more where that came from ;)

garyclark (Tue, 24 Mar 2020 18:03:09 GMT):
Ok mentioned it in that group.

robmurgai (Tue, 24 Mar 2020 23:02:29 GMT):
did you get any errors when you executed network.sh up or network.sh down?

jeevasang (Wed, 25 Mar 2020 07:17:40 GMT):
Has joined the channel.

jeevasang (Wed, 25 Mar 2020 07:17:41 GMT):
Hi, is it available for any open source wallet based UI application for fabric?

AbdullahJoyia (Wed, 25 Mar 2020 10:18:55 GMT):
when I down the Network this comes. Removing network net_test WARNING: Network net_test not found. Removing volume net_orderer.example.com Removing volume net_peer0.org1.example.com Removing volume net_peer0.org2.example.com Removing network net_test WARNING: Network net_test not found. Removing volume net_peer0.org3.example.com WARNING: Volume net_peer0.org3.example.com not found. ---- No containers available for deletion ---- ---- No images available for deletion ----

AbdullahJoyia (Wed, 25 Mar 2020 10:20:08 GMT):
and when I up the network it will run Successfully

Francesco_P (Wed, 25 Mar 2020 10:48:54 GMT):
Has joined the channel.

Francesco_P (Wed, 25 Mar 2020 10:59:00 GMT):
Hi, I'm using the java org.hyperledger.fabric_ca.sdk package to enroll the admin user but when i try to connect the connection goes times out. Below some snippets - HFCAClient caClient = HFCAClient.createNewInstance("http://{IP}:{port}", props); and then final EnrollmentRequest enrollmentRequestTLS = new EnrollmentRequest();- and then - Enrollment enrollment = caClient.enroll("admin", "adminpw", enrollmentRequestTLS);

dcof (Wed, 25 Mar 2020 13:54:02 GMT):
hi, can anyone explain the meaning of the CORE_NEXT env variable specified for peers in docker-compose files? I'm wondering what this is used for but could not find anything useful online, thanks in advance!

barney2k7 (Wed, 25 Mar 2020 13:56:54 GMT):
see here https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml (make sure to select the proper branch) - those are all configs for a peer AFAIK

robmurgai (Wed, 25 Mar 2020 13:56:59 GMT):
Excellent. I would recommend going throw the network.sh script, see what its doing, it will help you get more clarity on what the steps are.

icarrascol (Wed, 25 Mar 2020 14:51:44 GMT):
does anyone know which are the fabric shim changes in v2.0 vs 1.4, is there anything needed to do to upgrade my chaincode to v2?

barney2k7 (Wed, 25 Mar 2020 14:54:23 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/upgrade_to_newest_version.html#chaincode-shim-changes-go-chaincode-only

icarrascol (Wed, 25 Mar 2020 14:57:06 GMT):
thanks, so there is nothing special to do for chaincodes in node it seems

barney2k7 (Wed, 25 Mar 2020 15:03:36 GMT):
Not that I'm aware of (assuming the documentation is exhaustive

amaccis (Wed, 25 Mar 2020 21:49:27 GMT):
Has joined the channel.

amaccis (Wed, 25 Mar 2020 21:49:28 GMT):
hi all

amaccis (Wed, 25 Mar 2020 21:50:17 GMT):
I'm trying to setup HL fabric on mac os x, but after "make all" I got go get github.com/maxbrunsfeld/counterfeiter: copying /var/folders/_d/02k44s3s0qx5329vk2_pgg_r0000gn/T/go-build246868372/b001/exe/a.out: open /bin/counterfeiter: read-only file system make[1]: *** [gotool.counterfeiter] Error 1 make: *** [/bin/counterfeiter] Error 2

BrettLogan (Thu, 26 Mar 2020 02:30:37 GMT):
You need to set `GOBIN` to some directory you have access to, generally `export GOBIN=$GOPATH/bin` and then you need to put GOBIN on your path

joyqiaoyiwang (Thu, 26 Mar 2020 04:56:13 GMT):
Has joined the channel.

robmurgai (Thu, 26 Mar 2020 04:59:06 GMT):
@RaghavGupta are you running this command in the 'test-network' directory?

robmurgai (Thu, 26 Mar 2020 05:21:34 GMT):
And can you post the output from running ./network.sh deployCC before this peer command?

yeousunn (Thu, 26 Mar 2020 06:13:42 GMT):
thank you, for now I have changed the os to ubuntu 16.04 and it's working find.

TharinduSandaruwan1 (Thu, 26 Mar 2020 07:43:23 GMT):
``` ################################################################################ # # SECTION: Application # # - This section defines the values to encode into a config transaction or # genesis block for application related parameters # ################################################################################ Application: &ApplicationDefaults # Organizations is the list of orgs which are defined as participants on # the application side of the network Organizations: # Policies defines the set of policies at this level of the config tree # For Application policies, their canonical path is # /Channel/Application/ Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" LifecycleEndorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" Endorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" ``` If I want to change these policies how can I change it means. What should I put? Like Org1, Org1MSP, Org1MSP.admin, Org1MSP.peer

mexos (Thu, 26 Mar 2020 12:49:06 GMT):
Hi is anyone getting the issue when inserting a Stringified json into the Ledger and querying it back>?

mexos (Thu, 26 Mar 2020 12:50:12 GMT):
I've inserted fabcar and when I do Querycar the response gets returned like this r�h��ny�O*^q��jG��*-jjzS��(�w�N���\

przemyslaw.sanecki (Thu, 26 Mar 2020 13:04:35 GMT):
Has joined the channel.

przemyslaw.sanecki (Thu, 26 Mar 2020 13:05:47 GMT):
hi, having trouble with new v2 chaincode lifecycle, I am using docker vm dind endpoint https://127.0.0.1 with tls, peer has all docker client crypto set ``` CORE_VM_DOCKER_TLS_ENABLED=true CORE_VM_DOCKER_TLS_CERT=/tmp/org1/peer1/docker/cert.pem CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host CORE_VM_DOCKER_TLS_KEY=/tmp/org1/peer1/docker/key.pem CORE_VM_ENDPOINT=https://127.0.0.1:2376 CORE_VM_DOCKER_TLS_CA=/tmp/org1/peer1/docker/ca.pem ``` ``` peer lifecycle chaincode install patient_consent-v0.0.1-package.tar.gz \ --peerAddresses fabric-dev-peer1-org1:7051 --connTimeout 10s \ --tlsRootCertFiles /tmp/org1/peer1/tls/msp/cacerts/fabric-dev-tlsca-org1-7052.pem \ -o fabric-dev-orderer1-org1:7050 --tls --cafile /tmp/org1/peer1/tls/msp/cacerts/fabric-dev-tlsca-org1-7052.pem ``` gives me ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get https://127.0.0.1:2376/images/dev-peer1-org1-patient_consent-v0.0.1-9aedb4f5f58cb4bf18cf38f53751928caf9074c4bcb6859d8417fb37c09ab596-0acf342a6da8bfef85ec6b4d9dbe3ca4236ab9e52d903bb9fb014db836696d7b/json: remote error: tls: bad certificate ```

przemyslaw.sanecki (Thu, 26 Mar 2020 13:05:47 GMT):
@jyellick any hints? this runs in k8s on aws and I am trying to avoid mounting node socker inside the pod

przemyslaw.sanecki (Thu, 26 Mar 2020 13:07:30 GMT):
docker client certs are all good, as `docker --tlsverify ps` works fine with the same set up

Bolzo 1 (Thu, 26 Mar 2020 13:10:21 GMT):
Hi, I'm using `confitxgen` version 2

Bolzo 1 (Thu, 26 Mar 2020 13:12:37 GMT):
Hi, I'm using `configtxgen` version 2.0.1 and I cannot generate the genesis block, I get this weird error output and I can't uderstand how to solve the problem: ``` configtxgen -profile SampleMultiNodeRaft -channelID sys-channel -outputBlock ./config/genesis.block 2020-03-26 11:32:28.471 CET [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-03-26 11:32:28.557 CET [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft 2020-03-26 11:32:28.557 CET [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: /home/ifin-fabric/configtx.yaml 2020-03-26 11:32:28.560 CET [common.tools.configtxgen] func1 -> PANI 004 proto: Marshal called with nil panic: proto: Marshal called with nil [recovered] panic: proto: Marshal called with nil goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000cbc30, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00021a188, 0x4, 0xc0000df800, 0x1e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00021a190, 0xc000273880, 0x1, 0x1) /__w/1/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x99 main.main.func1() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:253 +0x176 panic(0xada6c0, 0xc0000a2350) /usr/local/go/src/runtime/panic.go:679 +0x1b2 github.com/hyperledger/fabric/protoutil.MarshalOrPanic(...) /__w/1/go/src/github.com/hyperledger/fabric/protoutil/commonutils.go:26 github.com/hyperledger/fabric/internal/configtxgen/encoder.addValue(0xc00018cdc0, 0xca2fa0, 0xc0000b1d60, 0xbc198a, 0x6) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:59 +0x1b5 github.com/hyperledger/fabric/internal/configtxgen/encoder.NewOrdererOrgGroup(0xc0003d54d0, 0xc0004d07b0, 0xc000038f18, 0x7) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:270 +0x20a github.com/hyperledger/fabric/internal/configtxgen/encoder.NewOrdererGroup(0xc0003d5200, 0xca2fa0, 0xc0003e9ba0, 0xbc198a) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:217 +0x565 github.com/hyperledger/fabric/internal/configtxgen/encoder.NewChannelGroup(0xc0000e6780, 0x0, 0x0, 0x1) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:154 +0x52e github.com/hyperledger/fabric/internal/configtxgen/encoder.NewBootstrapper(0xc0000e6780, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:595 +0xd6 main.doOutputBlock(0xc0000e6780, 0x7ffcce12d793, 0xb, 0x7ffcce12d7ac, 0x16, 0xc0000e6780, 0xc000038bb6) /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:35 +0x32 main.main() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:285 +0xddc ```

Jax.dev (Thu, 26 Mar 2020 13:17:42 GMT):
FileSystemWallet() not working in google cloud function, can anyone raise this bug in jira?

Jax.dev (Thu, 26 Mar 2020 13:17:42 GMT):
FileSystemWallet() not working in google cloud function, can anyone raise this bug in jira? I tried to implement invoke transaction using gateway which we need to use FileSystemWallet() to read the certs in the wallet folder, it always returns false.

Jax.dev (Thu, 26 Mar 2020 13:23:24 GMT):
https://stackoverflow.com/questions/60868269/filesystemwallet-not-working-in-google-cloud-function

Bolzo 1 (Thu, 26 Mar 2020 14:44:56 GMT):
I've resolved the issue: one of my orgs didn't have the admin cert in the msp folder

obelix (Thu, 26 Mar 2020 17:10:44 GMT):
Can somebody remind me what the -d option does in the command below. It does not seem to be documented anywhere: fabric-ca-client enroll -d -u http://$CA_ADMIN:$CA_PASSWORD@$SERVICE_DNS:7054'

obelix (Thu, 26 Mar 2020 17:10:44 GMT):
Can somebody remind me what the *-d *option does in the command below. It does not seem to be documented anywhere: fabric-ca-client enroll *-d *-u http://$CA_ADMIN:$CA_PASSWORD@$SERVICE_DNS:7054'

AbdullahJoyia (Thu, 26 Mar 2020 17:35:43 GMT):
Hi. i am using fabriv version 2.0, When i run the command ./network.sh deployCC it give the error ( peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: error getting chaincode bytes: listing deps for pacakge ../chaincode/fabcar/go/ failed: exit status 2 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... )

AbdullahJoyia (Thu, 26 Mar 2020 17:35:43 GMT):
Hi. i am using fabric version 2.0, When i run the command ./network.sh deployCC it give the error. Can anybody help me in that peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: error getting chaincode bytes: listing deps for pacakge ../chaincode/fabcar/go/ failed: exit status 2 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... )

BrettLogan (Thu, 26 Mar 2020 17:48:30 GMT):
Generally `-d` is `detach` meaning don't for an exit code

BrettLogan (Thu, 26 Mar 2020 17:49:09 GMT):
I don't see that we document it anywhere, but that's my assumption given what the flag does on the `fabric-ca-server`

obelix (Thu, 26 Mar 2020 17:53:38 GMT):
well, its not documented for fabric-ca-server

BrettLogan (Thu, 26 Mar 2020 17:53:40 GMT):
https://github.com/hyperledger/fabric-ca/blob/master/util/flag.go#L187

BrettLogan (Thu, 26 Mar 2020 17:53:45 GMT):
Enable debug logging

BrettLogan (Thu, 26 Mar 2020 17:54:08 GMT):
Not sure why we don't document it

obelix (Thu, 26 Mar 2020 17:54:56 GMT):
Got it. Thanks!

weiyih (Thu, 26 Mar 2020 18:24:12 GMT):
Has joined the channel.

ubakan (Thu, 26 Mar 2020 19:04:53 GMT):
Can someone tell me if fabric-sdk-py will work with Fabric 2.0.0? And if not, what is the projected date for that?

BrettLogan (Thu, 26 Mar 2020 19:16:08 GMT):
Best place is to ask #fabric-sdk-py

robmurgai (Thu, 26 Mar 2020 19:17:50 GMT):
@AbdullahJoyia could you post the full output of the command, please?

amaccis (Thu, 26 Mar 2020 19:23:23 GMT):
thanks!

weiyih (Thu, 26 Mar 2020 21:10:05 GMT):
are there any significant differences between the go-sdk and node-sdk for the chaincode?

weiyih (Thu, 26 Mar 2020 21:10:05 GMT):
are there any significant differences between the go-contact-api and node-contact api for the chaincode?

weiyih (Thu, 26 Mar 2020 21:11:31 GMT):
I'm will be using another node server with the node application sdk

weiyih (Thu, 26 Mar 2020 21:12:02 GMT):
would using node on the node and the server to manage the network be preferred, or it doesn't really matter

robmurgai (Thu, 26 Mar 2020 21:21:40 GMT):
and do a ```peer version as well, please. ```

robmurgai (Thu, 26 Mar 2020 21:21:40 GMT):
and do a ```peer version``` as well, please. ```

robmurgai (Thu, 26 Mar 2020 21:21:40 GMT):
and do a ```peer version``` as well, please.

BrettLogan (Thu, 26 Mar 2020 21:35:24 GMT):
The peer binary will be in the `bin` directory in the root of your fabric-samples repo. You'll need to change into there and execute the peer from there `./peer version`

braduf (Fri, 27 Mar 2020 02:38:09 GMT):
Hi all, since moving to v2.0.x and using the discovery service, we frequently get a transaction rejected at commit time message: Transaction commit was rejected by peer ``` Does anybody know what can be the cause of it?

braduf (Fri, 27 Mar 2020 02:38:09 GMT):
Hi all, since moving to v2.0.x and using the discovery service, we frequently get a transaction rejected at commit time message: Transaction commit was rejected by peer ``` Does anybody know what can be the cause of it? Most of the times it works, then we get a period that every tx gets this message, then some txs that get committed without problems, and so on...

VtpVlan-oo7 (Fri, 27 Mar 2020 12:42:38 GMT):
is there anyone experienced with BAAS or platform like Chainstack. i need to understand architecture like how can we use hyperledger fabric as a BAAS ?

pkirkinezis (Fri, 27 Mar 2020 13:12:40 GMT):
Has joined the channel.

pkirkinezis (Fri, 27 Mar 2020 13:14:16 GMT):
Hi to everyone after the test project with fab-car is any other more complex example ?

salma_shalaby (Fri, 27 Mar 2020 14:07:09 GMT):

Clipboard - March 27, 2020 5:07 PM

salma_shalaby (Fri, 27 Mar 2020 14:07:12 GMT):
Hello all. I am trying to run my network using raft using fabric v1.4.4, the problem is the orderers exits automatically few seconds after running them, any idea why is this happening?

MarkNewman (Fri, 27 Mar 2020 14:41:55 GMT):
Hi all, Does anyone know how to extend the default timeout period (5 minutes) when a chaincode is initialised? I'm running v1.4.3 and currently have a peer on a slow network connection which is taking slightly longer than 5 minutes to build & start it's container. I've had a look though the sample core.yaml for possible options to increase but none of them appear to work.

BrettLogan (Fri, 27 Mar 2020 15:47:56 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L550

BrettLogan (Fri, 27 Mar 2020 15:48:03 GMT):
In your core.yaml

BrettLogan (Fri, 27 Mar 2020 15:48:37 GMT):
or `CORE_CHAINCODE_INSTALLTIMEOUT` environment variable

MarkNewman (Fri, 27 Mar 2020 16:10:22 GMT):
how did I miss that!

MarkNewman (Fri, 27 Mar 2020 16:10:28 GMT):
thank you so much

RaghavGupta (Fri, 27 Mar 2020 17:41:28 GMT):
sudo ./network.sh deployCC results in the following error``` deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... ~/fabric-samples/chaincode/fabcar/go ~/fabric-samples/test-network scripts/deployCC.sh: line 24: go: command not found ~/fabric-samples/test-network Finished vendoring Go dependencies Using organization 1 ++ peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: failed to normalize chaincode path: failed to determine module root: exec: "go": executable file not found in $PATH !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed ```

RaghavGupta (Fri, 27 Mar 2020 17:42:55 GMT):
Please help. I have correctly set PATH variable in $HOME/.profile and $HOME/.bashrc``` go version gives the following ouput``` go version go1.14.1 linux/amd64 ``` ```

RaghavGupta (Fri, 27 Mar 2020 17:42:55 GMT):
Please help. I have correctly set PATH variable in $HOME/.profile and $HOME/.bashrcgo version gives the following ouput``` go version go1.14.1 linux/amd64 ``` ```

RaghavGupta (Fri, 27 Mar 2020 17:42:55 GMT):
Please help. I have correctly set PATH variable in $HOME/.profile and $HOME/.bashrc ``` go version gives the following ouput``` ``` go version go1.14.1 linux/amd64 ``` ```

BrettLogan (Fri, 27 Mar 2020 18:37:09 GMT):
You can't run it with sudo. When you run with pseudo you're using the root users environment not your environment

BrettLogan (Fri, 27 Mar 2020 18:37:26 GMT):
So all the things you've added to those bash files are overwritten by you calling sudo

robmurgai (Fri, 27 Mar 2020 18:40:04 GMT):
Yeah, what made you use sudo?

robmurgai (Fri, 27 Mar 2020 18:40:23 GMT):
was there an error when you did it from your account?

robmurgai (Fri, 27 Mar 2020 18:40:23 GMT):
was there an error when you did it from your account, instead of sudo I mean?

RaghavGupta (Fri, 27 Mar 2020 18:48:07 GMT):
I figured out. Thanks! Appreciate your help

DVasin (Fri, 27 Mar 2020 19:32:36 GMT):
Hi, guys. I'm getting a timeout executing chaincode. That's what in peer logs. ``` [mychannel][f80dc17a] failed to invoke chaincode name:"mycc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1250 ``` I'm writing a Java chaincode. When i `docker logs` chaincode container I don't see any logging of my cc, neither mine, nor defaul. Looks like tx is not event getting send to a cc container. Any tips on how to debug/fix it? Any helps is much appreciated. Thanks in advance!

DVasin (Fri, 27 Mar 2020 19:32:36 GMT):
Hi, guys. I'm getting a timeout executing chaincode. That's what in peer logs. ``` [mychannel][f80dc17a] failed to invoke chaincode name:"mycc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1250 ``` I'm writing a Java chaincode. When i `docker logs` chaincode container I don't see any logging of my cc, neither mine, nor defaul. Looks like tx is not event getting send to a cc container. Any tips on how to debu

jmaruti (Fri, 27 Mar 2020 19:46:15 GMT):
Has joined the channel.

jmaruti (Fri, 27 Mar 2020 19:46:22 GMT):
Just curious! How did you resolve it?

BrettLogan (Fri, 27 Mar 2020 19:56:22 GMT):
Stopped using sudo, or properly configured the root user to also have everything on its path

jmaruti (Fri, 27 Mar 2020 19:56:40 GMT):
ok

MarkNewman (Fri, 27 Mar 2020 22:01:29 GMT):
this doesn't appear to be an option in v1.4.3

davidkel (Fri, 27 Mar 2020 22:17:54 GMT):
That option looks like it came on 2.0. The ones you need to investigate are startupTimeout and executeTimeout.

davidkel (Fri, 27 Mar 2020 22:17:54 GMT):
That option looks like it came on 2.0. The ones you need to investigate are startupTimeout and executeTimeout for 1.4

MarkNewman (Fri, 27 Mar 2020 22:21:31 GMT):
I've tried both of those but they don't seem to affect the timeout that's applied when the chaincode is initialised.

snowch0x41in (Sat, 28 Mar 2020 08:33:24 GMT):
Hi everyone, I want to understand block building of fabric 1.4. I have to understand which files are relevant for an block creation to understand the structure. Is there a guide available for developers that explains the github directory structure? There are for example multiple peer directories existing. Which directorys I'm missing a documentation for it (sry, am rather new to GIT)

snowch0x41in (Sat, 28 Mar 2020 08:33:24 GMT):
Hi everyone, I want to understand block building of fabric 1.4. I have to understand which files are relevant for an block creation to understand the structure. Is there a guide available for developers that explains the github directory structure? There are for example multiple peer directories existing. Which directorys are relevant for what? I'm missing a documentation for it (sry, am rather new to GIT)

snowch0x41in (Sat, 28 Mar 2020 08:33:24 GMT):
Hi everyone, Is there a guide available for developers to explains the github directory structure of fabric?

garyclark (Sat, 28 Mar 2020 19:36:14 GMT):
I have a basic 3 peer network setup using hyperledger. I can install chaincode, perform instantiate, invoke and perform queries within docker. The chaincode I cannibalized is the fabcar.js. I now need to to application to hook into the network. I looked at the enrollAdmin.js. Its using a file called connecton-org1.json? Is this file generated or do I have to manually create this json file?

garyclark (Sat, 28 Mar 2020 19:36:14 GMT):
I have a basic 3 peer network (1 peer per machine) setup using hyperledger. I can install chaincode, perform instantiate, invoke and perform queries within the docker containers. The chaincode I cannibalized is the fabcar.js. I now need to to application to hook into the network. I looked at the enrollAdmin.js. Its using a file called connecton-org1.json? Is this file generated or do I have to manually create this json file?

BrettLogan (Sat, 28 Mar 2020 20:30:59 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/examples/cluster/config/core.yaml#L320

BrettLogan (Sat, 28 Mar 2020 20:31:36 GMT):
Here it is, had to ask someone on the team. Its not part of the default core.yaml, so you can't override it with an environment variable, so you will need to add it to your core.yaml

braduf (Sun, 29 Mar 2020 02:44:44 GMT):
Hi all, I just had a peer breaking down with the following error: ``` panic: Cannot commit block to the ledger due to Post http://couchdb0.bancolombia.com.co:5984/qr_dech/_all_docs?include_docs=true: dial tcp: lookup couchdb0.bancolombia.com.co on 127.0.0.11:53: dial udp 127.0.0.11:53: socket: too many open files commit failed github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock /go/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:227 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock /go/src/github.com/hyperledger/fabric/gossip/state/state.go:785 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:575 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 goroutine 553 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc004297130, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0002c4180, 0xc00688fe04, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc0002c4188, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1) /go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x7c github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc00295da00) /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 +0x4cf created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider /go/src/github.com/hyperledger/fabric/gossip/state/state.go:272 +0x85d ``` Is this a known issue or does anyone where it came from?

braduf (Sun, 29 Mar 2020 02:44:44 GMT):
Hi all, I just had a peer breaking down with the following error: ``` panic: Cannot commit block to the ledger due to Post http://couchdb0.org.com.co:5984/qr_dech/_all_docs?include_docs=true: dial tcp: lookup couchdb0.org.com.co on 127.0.0.11:53: dial udp 127.0.0.11:53: socket: too many open files commit failed github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock /go/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:227 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock /go/src/github.com/hyperledger/fabric/gossip/state/state.go:785 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:575 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 goroutine 553 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc004297130, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0002c4180, 0xc00688fe04, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc0002c4188, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1) /go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x7c github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc00295da00) /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 +0x4cf created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider /go/src/github.com/hyperledger/fabric/gossip/state/state.go:272 +0x85d ``` Is this a known issue or does anyone where it came from?

braduf (Sun, 29 Mar 2020 02:44:44 GMT):
Hi all, I just had a peer breaking down with the following error: ``` panic: Cannot commit block to the ledger due to Post http://couchdb0.org.com.co:5984/qr_dech/_all_docs?include_docs=true: dial tcp: lookup couchdb0.org.com.co on 127.0.0.11:53: dial udp 127.0.0.11:53: socket: too many open files commit failed github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock /go/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:227 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock /go/src/github.com/hyperledger/fabric/gossip/state/state.go:785 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:575 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 goroutine 553 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc004297130, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0002c4180, 0xc00688fe04, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc0002c4188, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1) /go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x7c github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc00295da00) /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 +0x4cf created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider /go/src/github.com/hyperledger/fabric/gossip/state/state.go:272 +0x85d ``` Is this a known issue an why could there be too many open files in the couchDB

braduf (Sun, 29 Mar 2020 02:44:44 GMT):
Hi all, I just had a peer breaking down with the following error: ``` panic: Cannot commit block to the ledger due to Post http://couchdb0.org.com.co:5984/qr_dech/_all_docs?include_docs=true: dial tcp: lookup couchdb0.org.com.co on 127.0.0.11:53: dial udp 127.0.0.11:53: socket: too many open files commit failed github.com/hyperledger/fabric/gossip/privdata.(*coordinator).StoreBlock /go/src/github.com/hyperledger/fabric/gossip/privdata/coordinator.go:227 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).commitBlock /go/src/github.com/hyperledger/fabric/gossip/state/state.go:785 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:575 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1357 goroutine 553 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc004297130, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0002c4180, 0xc00688fe04, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc0002c4188, 0x1a26946, 0x2c, 0xc00bb00490, 0x1, 0x1) /go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x7c github.com/hyperledger/fabric/gossip/state.(*GossipStateProviderImpl).deliverPayloads(0xc00295da00) /go/src/github.com/hyperledger/fabric/gossip/state/state.go:580 +0x4cf created by github.com/hyperledger/fabric/gossip/state.NewGossipStateProvider /go/src/github.com/hyperledger/fabric/gossip/state/state.go:272 +0x85d ``` Is this a known issue an why could there be too many open files in the couchDB?

DVasin (Sun, 29 Mar 2020 11:47:28 GMT):
Hi, guys. Question about Fabric CA

DVasin (Sun, 29 Mar 2020 11:47:45 GMT):
There is an opertion revoke, that is basically an opposite of enroll.

DVasin (Sun, 29 Mar 2020 11:47:57 GMT):
Is there an operation that's an opposite of register?

DVasin (Sun, 29 Mar 2020 11:48:14 GMT):
I.e. kind of unregister? I haven't found it in Java SDK

ascatox (Sun, 29 Mar 2020 14:53:19 GMT):
What's the best option to install Fabric in a Production Env? Docker, K8s, or using Cello? Someone has real experiences to share! Thanks all!

ascatox (Sun, 29 Mar 2020 14:53:19 GMT):
What's the best way to install Fabric in a Production Env? Docker, K8s, or using Cello? Someone has real experiences to share! Thanks all!

tongli (Sun, 29 Mar 2020 15:25:39 GMT):
Docker and k8s are the most popular options. Ibm services are all based on k8s

ascatox (Sun, 29 Mar 2020 15:31:30 GMT):
Do you have some good tutorial, book or other material to start with k8s? Thanks.

ascatox (Sun, 29 Mar 2020 15:31:30 GMT):
Do you have some good tutorial, book or other material to start with Fabric with k8s? Thanks.

PamudithaNavaratne (Sun, 29 Mar 2020 16:38:32 GMT):
Has joined the channel.

PamudithaNavaratne (Sun, 29 Mar 2020 16:38:33 GMT):
HI guys, The data im sending through the chaincode is not being saved in the couch db, Im able to run commands from the CLI and it returns a 200 OK but when I run a command to extract that data, its not present. Thanks in advance

nerotiger (Sun, 29 Mar 2020 18:54:24 GMT):
Has joined the channel.

nerotiger (Sun, 29 Mar 2020 18:54:25 GMT):
I have a problem in peer channel create

nerotiger (Sun, 29 Mar 2020 18:54:27 GMT):
Using below Profile and Channel, but got Error on peer channel create SampleSingleMSPSolo SampleSingleMSPChannel export CHANNEL_NAME=mycc bin/configtxgen -configPath ./config -profile SampleSingleMSPSolo -channelID mycc -outputBlock config/genesis.block bin/configtxgen -configPath ./config -profile SampleSingleMSPChannel -channelID mycc -outputCreateChannelTx channel-artifacts/channel.tx Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mycc': error authorizing update: error validating ReadSet: existing config does not contain element for [Value] /Channel/Consortium but was in the read set Version: 2.1.0 Commit SHA: b5be754 Go version: go1.14.1 OS/Arch: freebsd/amd64 Chaincode: Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger

georges (Sun, 29 Mar 2020 19:10:09 GMT):
@nerotiger dude this community is dead, I'm moving to Quorum or Corda even

nerotiger (Sun, 29 Mar 2020 19:12:27 GMT):
Anylink to Corda?

nerotiger (Sun, 29 Mar 2020 19:12:49 GMT):
I just want the network to be up and running.

georges (Sun, 29 Mar 2020 19:13:37 GMT):
we will get kicked if we advertise anothertech

georges (Sun, 29 Mar 2020 19:13:41 GMT):
its unrelated to hyperleger

georges (Sun, 29 Mar 2020 19:13:52 GMT):
it's peculiar as to why we are being ignored

georges (Sun, 29 Mar 2020 19:14:07 GMT):
it's freaking IBM they should have some more supp:p

georges (Sun, 29 Mar 2020 19:18:05 GMT):
reply private @nerotiger

braduf (Mon, 30 Mar 2020 03:06:54 GMT):
Hi @nerotiger , can you show the profiles that you have in your configtx.yaml, please? I think the problem maybe there...

santai (Mon, 30 Mar 2020 03:55:17 GMT):
santai

AshutoshKumar7 (Mon, 30 Mar 2020 04:46:42 GMT):
I am trying to setup fabric ca using this link https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html . While doing docker-compose up ca-tls I am getting error Unsupported config option for ca-tls: 'networks'. If I remove network part from file then it is able to start. I am using 2.0 .

knagware9 (Mon, 30 Mar 2020 05:03:05 GMT):
check this https://github.com/APGGroeiFabriek/PIVT

ascatox (Mon, 30 Mar 2020 08:05:50 GMT):
Hi All! I've a blockchain project with a lot of pilots to build upon. I want to use HLF. I've only on Org in my HLF but I'd like to use the channels to separate the data coming from different pilots. Do you think it may be a feasible architecture?

ascatox (Mon, 30 Mar 2020 08:05:50 GMT):
Hi All! I've a blockchain project with a lot of Pilots to build upon. I want to use HLF. I've only on Org in my HLF but I'd like to use the *channels* to separate the data coming from different Pilots. Do you think it may be a feasible architecture?

PrafullTilwankar (Mon, 30 Mar 2020 08:52:50 GMT):
Hi All . In supply chain scenario if 100 suppliers are external stakeholders do we need to create 100 state channels to maintain data privacy ?

PrafullTilwankar (Mon, 30 Mar 2020 08:52:50 GMT):
Hi All . In supply chain scenario if 100 suppliers are external stakeholders do we need to create 100 state channels to maintain data privacy ? Will there be any issue if more channels are created ? If not state channels , what is an alternate option if not channels ? Thanks in advance.

pkirkinezis (Mon, 30 Mar 2020 09:58:28 GMT):
Hi all ! Is there any management UI tool for hyperledger fabric ?

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue?

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue?

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue?

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client inside the container created from this image using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue?

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client inside the container created from this image using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue? my guess is it seems to have smth to do with it being alpine

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im actually using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client inside the container created from this image using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue? my guess is it seems to have smth to do with alpine

JayJong (Mon, 30 Mar 2020 10:05:26 GMT):
Hi all, im using docker image hyperledger/fabric-tools:2.0.1 and i installed fabric-ca-client inside the container created from this image using this command: `curl -s -L "https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-${OS_ARCH}-1.4.6.tar.gz" | tar xz || rc=$?` and inside the container, it says `bash: /go/bin/fabric-ca-client: No such file or directory`, anyone facing same issue? my guess is it seems to have smth to do with alpine

pritam_01 (Mon, 30 Mar 2020 12:44:23 GMT):
there is concept of Implicit Data Collections, to solve theprobelm of keeping multiple channels, Read more : https://medium.com/@kctheservant/private-data-implicit-data-collections-in-hyperledger-fabric-v2-0-f2ef41f0e99d

pritam_01 (Mon, 30 Mar 2020 12:45:38 GMT):
No, but you have look at ibm blockchain vscode extension.

pkirkinezis (Mon, 30 Mar 2020 12:57:09 GMT):
First thanks for your reply . So everything has to be CLI based ? I managed to find the add on . Is this works with the Linux foundation hyper ledger fabric ?

pkirkinezis (Mon, 30 Mar 2020 13:01:37 GMT):
As i can see the supported node is only 9.x and 10.x

pkirkinezis (Mon, 30 Mar 2020 13:01:41 GMT):
for the add on

BrettLogan (Mon, 30 Mar 2020 13:20:29 GMT):
Is the binary set executable `chmod +x /go/bin/fabric-ca-client`

JayJong (Mon, 30 Mar 2020 13:29:37 GMT):
yes its alr set executable, `-rwxrwxr-x 1 1000 1000 22964320 Mar 29 02:12 fabric-ca-client`

JayJong (Mon, 30 Mar 2020 13:29:37 GMT):
@BrettLogan yes its alr set executable, `-rwxrwxr-x 1 1000 1000 22964320 Mar 29 02:12 fabric-ca-client`

BrettLogan (Mon, 30 Mar 2020 13:30:23 GMT):
what happens if you change into thee directory and try to execute it directly?

BrettLogan (Mon, 30 Mar 2020 13:31:28 GMT):
I'm testing it now myself as well

JayJong (Mon, 30 Mar 2020 13:31:36 GMT):
same error

BrettLogan (Mon, 30 Mar 2020 13:35:35 GMT):
Not you, same problem here, let me investigate and get back to you, I'll republish the binary if necessary to github

BrettLogan (Mon, 30 Mar 2020 13:35:35 GMT):
Not, you, same problem here, let me investigate and get back to you, I'll republish the binary if necessary to githubb

BrettLogan (Mon, 30 Mar 2020 13:35:35 GMT):
Not you, same problem here, let me investigate and get back to you, I'll republish the binary if necessary to githubb

AshutoshKumar7 (Mon, 30 Mar 2020 13:37:45 GMT):
Does it work with fabric 2.0 ?

BrettLogan (Mon, 30 Mar 2020 13:39:44 GMT):
I'll probably need to recompile the with an additional setting to make the work with alpine. They work just fine with other distros (alpine uses musl as it C library which is what is causing the problem)

BrettLogan (Mon, 30 Mar 2020 13:44:44 GMT):
In the meantime, you can get around it by doing `apk add gcc` and `CGO_ENABLED=0 go get -u github.com/hyperledger/fabric-ca/cmd/fabric-ca-client`

BrettLogan (Mon, 30 Mar 2020 13:45:11 GMT):
after remove the existing one from /go/bin

BrettLogan (Mon, 30 Mar 2020 13:45:19 GMT):
This will download, compile and install it natively

BrettLogan (Mon, 30 Mar 2020 13:45:19 GMT):
This will download and install it natively

levanthanh3005 (Mon, 30 Mar 2020 18:31:26 GMT):
Has joined the channel.

levanthanh3005 (Mon, 30 Mar 2020 18:31:27 GMT):
Hi all, is there any fabric smart contract example which support level permissions ?

JayJong (Mon, 30 Mar 2020 18:43:20 GMT):
so weird i didnt have this issue last week, but anyways, the peer and orderer images have the same issue too

JayJong (Mon, 30 Mar 2020 18:43:20 GMT):
so weird i didnt have this issue last week, but anyways, the peer and orderer images have this same issue too

pkirkinezis (Mon, 30 Mar 2020 20:46:14 GMT):
Something else I would like to ask for Hyperledger Explorer . I am trying to install it and on npm run test i get an error " cannot find module node "

pkirkinezis (Mon, 30 Mar 2020 20:46:37 GMT):
i tried to install node manually but no luck

rakaar (Mon, 30 Mar 2020 21:13:32 GMT):
Has joined the channel.

pritam_01 (Tue, 31 Mar 2020 05:02:03 GMT):
it works but it is still using fabri (v1.4)

pkirkinezis (Tue, 31 Mar 2020 06:29:09 GMT):
I manage to setup my fabric newtork v2.0 test project and it recognize it fine?

pkirkinezis (Tue, 31 Mar 2020 06:29:32 GMT):
So i guess it can understand the test-network

JayJong (Tue, 31 Mar 2020 06:29:45 GMT):
@BrettLogan there's this error if i use the workaround in peer & orderer v2.0.1 images `loadinternal: cannot find runtime/cgo`

Bolzo 1 (Tue, 31 Mar 2020 07:04:21 GMT):
Hi, I'm generate certificates using fabric-ca I have 2 CA (for each org), one for TLS certs and one for normal certs. It seems that all the certs are generate correctly. The system-channel is created but when i try to create a channel i get this error: ``` implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied ``` I know this is a error about certificate, but i create only one admin user. I the msp path of the cli points to the admin folder, so I can't understand why I'm getting permission denied.

Aniket.1 (Tue, 31 Mar 2020 07:14:08 GMT):
Have setup policies as ANY on the place of MAJORITY @Bolzo 1 ?

barney2k7 (Tue, 31 Mar 2020 07:16:08 GMT):
Do you have nodeOUs active? If so, does the admin user certificate have the proper OU set?

Bolzo 1 (Tue, 31 Mar 2020 07:16:52 GMT):
I'm not sure about that, how can I see if it's active?

Bolzo 1 (Tue, 31 Mar 2020 07:18:08 GMT):
Nope it's MAJORITY

barney2k7 (Tue, 31 Mar 2020 07:24:10 GMT):
There would be a config file in the msp folder 'config.yaml'

barney2k7 (Tue, 31 Mar 2020 07:24:59 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/msp.html#identity-classification

Bolzo 1 (Tue, 31 Mar 2020 07:25:19 GMT):
I don't have this file, i need to create it?

barney2k7 (Tue, 31 Mar 2020 07:26:29 GMT):
cryptogen creates it. I'm not sure how to do this when creating certificates using the ca

Bolzo 1 (Tue, 31 Mar 2020 07:27:45 GMT):
But it's necessary? In the documentation of fabric-ca there is no mention of this file as I remember

Aniket.1 (Tue, 31 Mar 2020 07:28:24 GMT):
its `crypto-config.yaml`

barney2k7 (Tue, 31 Mar 2020 07:28:43 GMT):
it's not necessary, but then you have to make sure to include the 'admin' certificates in the 'admin' folder of the msp instead

Aniket.1 (Tue, 31 Mar 2020 07:28:52 GMT):
try making it `ANY`

Bolzo 1 (Tue, 31 Mar 2020 07:28:53 GMT):
crypto-config is used by cryptogen, I'm using fabric CA

barney2k7 (Tue, 31 Mar 2020 07:29:33 GMT):
From what I understand, nodeOUs are the 'new' way (more flexible), placing the certs in the admin folder is the 'old' way, but that should still work

Bolzo 1 (Tue, 31 Mar 2020 07:29:37 GMT):
I have the admin certs in de admin folder (both Admin@org folder and admincerts of every peer and orderer in the org)

barney2k7 (Tue, 31 Mar 2020 07:29:51 GMT):
ok, I guess then that's not your problem then...

barney2k7 (Tue, 31 Mar 2020 07:30:19 GMT):
The other thing you can try is activating debug logging

Bolzo 1 (Tue, 31 Mar 2020 07:30:25 GMT):
Maybe the documentation is not up-to-date

barney2k7 (Tue, 31 Mar 2020 07:30:38 GMT):
then you'll see which certificates are tried

Bolzo 1 (Tue, 31 Mar 2020 07:31:02 GMT):
ya, I'll try this way for now

georgeantony (Tue, 31 Mar 2020 07:45:54 GMT):
Has joined the channel.

PrafullTilwankar (Tue, 31 Mar 2020 08:04:18 GMT):
Thanks @Pritam 12

Bolzo 1 (Tue, 31 Mar 2020 08:08:56 GMT):
I've increased the log level and i get this: ``` 2020-03-31 07:52:06.437 UTC [policies] SignatureSetToValidIdentities -> DEBU 2a0 signature for identity 0 validated 2020-03-31 07:52:06.437 UTC [cauthdsl] func1 -> DEBU 2a1 0xc000c657e0 gate 1585641126437941813 evaluation starts 2020-03-31 07:52:06.438 UTC [cauthdsl] func2 -> DEBU 2a2 0xc000c657e0 signed by 0 principal evaluation starts (used [false]) 2020-03-31 07:52:06.438 UTC [cauthdsl] func2 -> DEBU 2a3 0xc000c657e0 processing identity 0 - &{Org2MSP e670cbf29ba4ba60ce452f9a96931b66cf61f3ca6c1faa680a3844315c65d2bf} 2020-03-31 07:52:06.438 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 2a4 Checking if identity satisfies ADMIN role for Org2MSP 2020-03-31 07:52:06.438 UTC [cauthdsl] func2 -> DEBU 2a5 0xc000c657e0 identity 0 does not satisfy principal: This identity is not an admin 2020-03-31 07:52:06.439 UTC [cauthdsl] func2 -> DEBU 2a6 0xc000c657e0 principal evaluation fails 2020-03-31 07:52:06.439 UTC [cauthdsl] func2 -> DEBU 2a7 0xc000c657e0 signed by 1 principal evaluation starts (used [false]) 2020-03-31 07:52:06.439 UTC [cauthdsl] func2 -> DEBU 2a8 0xc000c657e0 processing identity 0 - &{Org2MSP e670cbf29ba4ba60ce452f9a96931b66cf61f3ca6c1faa680a3844315c65d2bf} 2020-03-31 07:52:06.439 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 2a9 Checking if identity satisfies role [CLIENT] for Org2MSP 2020-03-31 07:52:06.440 UTC [msp] Validate -> DEBU 2aa MSP Org2MSP validating identity 2020-03-31 07:52:06.440 UTC [cauthdsl] func2 -> DEBU 2ab 0xc000c657e0 identity 0 does not satisfy principal: The identity is not a [CLIENT] under this MSP [Org2MSP]: NodeOUs not activated. Cannot tell apa rt identities. 2020-03-31 07:52:06.441 UTC [cauthdsl] func2 -> DEBU 2ac 0xc000c657e0 principal evaluation fails 2020-03-31 07:52:06.441 UTC [cauthdsl] func2 -> DEBU 2ad 0xc000c657e0 signed by 2 principal evaluation starts (used [false]) 2020-03-31 07:52:06.441 UTC [cauthdsl] func2 -> DEBU 2ae 0xc000c657e0 processing identity 0 - &{Org2MSP e670cbf29ba4ba60ce452f9a96931b66cf61f3ca6c1faa680a3844315c65d2bf} 2020-03-31 07:52:06.441 UTC [msp] satisfiesPrincipalInternalPreV13 -> DEBU 2af Checking if identity satisfies role [PEER] for Org2MSP 2020-03-31 07:52:06.442 UTC [msp] Validate -> DEBU 2b0 MSP Org2MSP validating identity 2020-03-31 07:52:06.442 UTC [cauthdsl] func2 -> DEBU 2b1 0xc000c657e0 identity 0 does not satisfy principal: The identity is not a [PEER] under this MSP [Org2MSP]: NodeOUs not activated. Cannot tell apart identities. 2020-03-31 07:52:06.442 UTC [cauthdsl] func2 -> DEBU 2b2 0xc000c657e0 principal evaluation fails 2020-03-31 07:52:06.443 UTC [cauthdsl] func1 -> DEBU 2b3 0xc000c657e0 gate 1585641126437941813 evaluation fails ```

Bolzo 1 (Tue, 31 Mar 2020 08:12:25 GMT):
and the certificate passed is an admin certifificate as i can see from `openssl x509 -in Admin@org2....pem -text -noout `. In fact in the output i get ``` {"attrs":{"abac.init":"true","admin":"true","hf.Affiliation":"","hf.EnrollmentID":"Admin@org2.mydomain.com","hf.Type":"admin"}} ```

pritam_01 (Tue, 31 Mar 2020 08:14:41 GMT):
it says NodeOUs not activated one question ? have used crypto material generated by cryptogen to set up you CA ?

Bolzo 1 (Tue, 31 Mar 2020 08:14:53 GMT):
As I can se NodeOU is not activated and the orderer cannot tell apart identities, so I suspect that is mandatory

Bolzo 1 (Tue, 31 Mar 2020 08:15:13 GMT):
No cryptogen is no involved in the process

Bolzo 1 (Tue, 31 Mar 2020 08:15:13 GMT):
No, cryptogen is not involved in the process

pritam_01 (Tue, 31 Mar 2020 08:17:37 GMT):
means you started with Root CA , then generated Peer crypto material?

Bolzo 1 (Tue, 31 Mar 2020 08:18:56 GMT):
Yes, and also the root CA use an external certificate in order to generate others certs. But this aspect is not relevant i think, it only means that the new certs are signed with my external cert

levanthanh3005 (Tue, 31 Mar 2020 08:42:14 GMT):
Hi all, in hyperledger compose, I can add ACL for levels of permisison, but I did not see the similar things in hyperledger fabric smart contract, how can I do ?

barney2k7 (Tue, 31 Mar 2020 10:01:34 GMT):
You might need to adapt you configtx.yaml to the fact that you're not using nodeOUs

barney2k7 (Tue, 31 Mar 2020 10:02:22 GMT):
https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/configtx.yaml#L38

barney2k7 (Tue, 31 Mar 2020 10:03:30 GMT):
Without nodeOU active, you can only use XXX.member and XXX.admin - but from the error message you seem to use XXX.client

feiyang_tan (Tue, 31 Mar 2020 12:16:43 GMT):
Has joined the channel.

MarkNewman (Tue, 31 Mar 2020 14:30:31 GMT):
That's great! I was starting to think it wasn't possible. Thanks for all your help.

Bolzo 1 (Tue, 31 Mar 2020 14:58:47 GMT):
I've enable node OUs and now the admin cert is accepted but, I still get the error. The orderer cert is evaluated and it's OU is "orderer". Each org has 2 peer and a orderer. The system-channel is created correctly but I can't understand why when i create a channel the orderer cert is evaluated by the orderer itself. It's like the cert is not treated as an ord orderer but as a common cert and obviously the policy evaluation fails.

Bolzo 1 (Tue, 31 Mar 2020 14:58:47 GMT):
I've enable node OUs and now the admin cert is accepted but, I still get the error. The orderer cert is evaluated and its OU is "orderer". Each org has 2 peers and a orderer. The system-channel is created correctly but I can't understand why when I create a channel, the orderer cert is evaluated by the orderer itself. It's like the cert is not treated as an orderer cert, but as a common cert and obviously the policy evaluation fails.

garyclark (Tue, 31 Mar 2020 15:50:10 GMT):
seeing a problem when trying to enroll an admin user. Using fabric-ca-client 1.4.7? Its complaining about: SSL_ROUTINES:SSL_GET_SERVER_HELLLO: unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827. What version of openssl should I use?

garyclark (Tue, 31 Mar 2020 15:50:10 GMT):
seeing a problem when trying to enroll an admin user. Using fabric-ca-client 1.4.7? Its complaining about: SSL_ROUTINES:SSL_GET_SERVER_HELLLO: unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827. What version of openssl should I use? Hmmm maybe its not that. I have no TLS enabled since using Solo.

Marc87 (Tue, 31 Mar 2020 16:51:29 GMT):
Has joined the channel.

Marc87 (Tue, 31 Mar 2020 16:51:36 GMT):
hi, i have a problem,when i cast: peer chaincode query -C mychannel -n fabcar -c "{"Args":["queryAllCars"]}" 2020-03-31 18:29:33.324 CEST [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/home/marco/Scrivania/fabric-samples/config/msp" does not exist

Marc87 (Tue, 31 Mar 2020 16:52:48 GMT):
i use hyperledger fabric 2.0

garyclark (Tue, 31 Mar 2020 17:34:43 GMT):
Looks your mappings are wrong. Are you using docker containers. If so then you need to map this path inside the container.

LWIH (Tue, 31 Mar 2020 17:35:56 GMT):
Two questions. 1. Is there any status/timeline on (https://jira.hyperledger.org/browse/FAB-12221). Very VERY interested in any information there is on FabToken architecture.

Marc87 (Tue, 31 Mar 2020 17:36:20 GMT):
i exported everything

Marc87 (Tue, 31 Mar 2020 17:37:32 GMT):
root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export PATH=${PWD}/../bin:${PWD}:$PATH root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export FABRIC_CFG_PATH=$PWD/../config/ root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export CORE_PEER_TLS_ENABLED=true root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export CORE_PEER_LOCALMSPID="Org1MSP" root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export CORE_PEER_MSOCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp root@marco-VirtualBox:/home/marco/Scrivania/fabric-samples/test-network# export CORE_PEER_ADDRESS=localhost:7051

LWIH (Tue, 31 Mar 2020 17:39:40 GMT):
2. Has anyone found any documentation on how a potentially 'currency/asset on HLF' is impacted by Fincen/Bitlicense regulation stateside? If there was a deployment of a 'stabletoken' asset how HLF in a marketplace application, whether it would be defined as a 'virtual currency' and subject to state-level rules.

LWIH (Tue, 31 Mar 2020 17:39:40 GMT):
2. Has anyone found any documentation on how a potentially 'currency/asset on HLF' is impacted by Fincen/Bitlicense regulation stateside? If there was a deployment of a 'stabletoken' asset on HLF in a marketplace application, whether it would be defined as a 'virtual currency' and subject to state-level rules.

Marc87 (Tue, 31 Mar 2020 17:49:17 GMT):
I'm starting to use fabric now, I followed the "Using The Fabric Test Network" guide from the official website, but at this point it gives me an error. I don't know how to proceed. I can't find a good guide that explains everything step by step

LWIH (Tue, 31 Mar 2020 17:49:55 GMT):
Oh, and actually a third question. 3. Minimizing transaction size. So this is a general question. But my understanding is with cert/data (client sigs/endorser id) requirements for chain-code 'transaction events', the size of that transaction against worldstate is at a minimum like 2.1kb, but likely higher**. If there were say millions, or tens of millions of 'transactions' within a HLF network, is there any documentation on efficiently storing that data>? Ive seen a lot of documentation on hypothetical network throughput, but at even 11.5 transactions a second over a 24 hour period is what like 3gb+ of transaction data that is going to start clogging world state pretty quickly/linearly. I've seen this FAB proposal (https://jira.hyperledger.org/browse/FAB-8007) Also, ive looked at some documentation about checkpointing network, moving off worldstate and kinda 'resetting it'. The transaction size / data-perpetuity seems to be a massive limiting factor in scaling a deployment that would utilize a high volume of inter-network transactions

LWIH (Tue, 31 Mar 2020 17:49:55 GMT):
Oh, and actually a third question. 3. Minimizing transaction size. So this is a general question. But my understanding is with cert/data (client sigs/endorser id) requirements for chain-code 'transaction events', the size of that transaction against worldstate is at a minimum like 2.1kb, but likely higher**. If there were say millions, or tens of millions of 'transactions' within a HLF network, is there any documentation on efficiently storing that data>? Ive seen a lot of documentation on hypothetical network throughput, but at even 11.5 transactions a second over a 24 hour period is what like 3gb+ of transaction data that is going to start clogging world state pretty quickly/linearly. Who cares if HLF can handle 30k TPS-throughput if the data-cost becomes astronomical? I've seen this FAB proposal (https://jira.hyperledger.org/browse/FAB-8007) Also, ive looked at some documentation about checkpointing network, moving off worldstate and kinda 'resetting it'. The transaction size / data-perpetuity seems to be a massive limiting factor in scaling a deployment that would utilize a high volume of inter-network transactions

garyclark (Tue, 31 Mar 2020 17:59:58 GMT):
Yeh its pretty crazy onboarding. I'm pretty new to this myself. However its telling you that the msp path does not exist. What I think is happenig is that you need to map your local crytpconfg directory on your mahine inside a docker container path it recognizes i.e /etc/hyperleder/cryto-config. I went down the same rabbit hole.

yacovm (Tue, 31 Mar 2020 18:51:18 GMT):
Where is the question though?

levanthanh3005 (Tue, 31 Mar 2020 18:52:57 GMT):
Hi, anyone helps me to solve the problem of ACL

LWIH (Tue, 31 Mar 2020 19:06:21 GMT):
Lol. Is transaction size going to be forever a limiting factor within HLF for high-volume transaction deployments

LWIH (Tue, 31 Mar 2020 19:24:36 GMT):
Will (for example) 1mm transactions never be less than (for example) 3.5gb of transaction data. Or are there solutions in the works, or being thought about that would reduce data-cost + impacts of data on performance.

garyclark (Tue, 31 Mar 2020 19:31:34 GMT):
Got a wee question on enrollment. enrollAdmin.js node_modules package-lock.json registerUser.js [gclark@peer0-HeliosDsoMSP heliosdso]$ node enrollAdmin.js Wallet path: /home/gclark/HeliosSolo/HeliosApps/heliosdso/wallet 2020-03-31T19:29:53.263Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]], stack=Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]] at IncomingMessage.response.on (/home/gclark/HeliosSolo/HeliosApps/heliosdso/node_modules/fabric-ca-client/lib/FabricCAClient.js:470:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin user "admin": Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]]

garyclark (Tue, 31 Mar 2020 19:31:34 GMT):
Got a wee question on enrollment. Seeing : enrollAdmin.js node_modules package-lock.json registerUser.js [gclark@peer0-HeliosDsoMSP heliosdso]$ node enrollAdmin.js Wallet path: /home/gclark/HeliosSolo/HeliosApps/heliosdso/wallet 2020-03-31T19:29:53.263Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]], stack=Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]] at IncomingMessage.response.on (/home/gclark/HeliosSolo/HeliosApps/heliosdso/node_modules/fabric-ca-client/lib/FabricCAClient.js:470:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin user "admin": Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]]

garyclark (Tue, 31 Mar 2020 19:31:34 GMT):
Got a wee question on enrollment. Seeing : enrollAdmin.js node_modules package-lock.json registerUser.js [gclark@peer0-HeliosDsoMSP heliosdso]$ node enrollAdmin.js Wallet path: /home/gclark/HeliosSolo/HeliosApps/heliosdso/wallet 2020-03-31T19:29:53.263Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]], stack=Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]] at IncomingMessage.response.on (/home/gclark/HeliosSolo/HeliosApps/heliosdso/node_modules/fabric-ca-client/lib/FabricCAClient.js:470:22) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Failed to enroll admin user "admin": Error: Enrollment failed with errors [[{"code":19,"message":"CA 'heliosDsoCa' does not exist"}]]

garyclark (Tue, 31 Mar 2020 19:39:35 GMT):
The error returned from the CA Server is the heliosDsoCa not exist. I want to make it exist. Any easy answers would be appreciated.

garyclark (Tue, 31 Mar 2020 19:51:35 GMT):
OK I fixed it. It was mapping of the name. Ugh! Moving on.

betasve (Tue, 31 Mar 2020 19:54:44 GMT):
Has joined the channel.

yacovm (Tue, 31 Mar 2020 20:47:12 GMT):
> Is transaction size going to be forever a limiting factor within HLF for high-volume transaction deployments @LWIH Nothing lasts for ever

yacovm (Tue, 31 Mar 2020 20:47:12 GMT):
> Is transaction size going to be forever a limiting factor within HLF for high-volume transaction deployments @LWIH Nothing lasts for ever

yacovm (Tue, 31 Mar 2020 20:47:45 GMT):
I opened that JIRA issue that you linked

yacovm (Tue, 31 Mar 2020 20:48:06 GMT):
it was 2 years ago

yacovm (Tue, 31 Mar 2020 20:48:15 GMT):
so...

LWIH (Tue, 31 Mar 2020 20:48:30 GMT):
:thumbsup: thanks!

yacovm (Tue, 31 Mar 2020 20:48:32 GMT):
I guess not enough people care

garyclark (Tue, 31 Mar 2020 20:53:43 GMT):
When registering a user. I am seeing en error "Error: Invalid common connection profile due to common connection profile has unknown version"

garyclark (Tue, 31 Mar 2020 20:54:09 GMT):
Can someone offer an explanation for this.

garyclark (Tue, 31 Mar 2020 20:54:19 GMT):
Much Appreciated.

garyclark (Tue, 31 Mar 2020 21:29:17 GMT):
Ok this problem I had to remove all contents of the wallet and star again.

garyclark (Tue, 31 Mar 2020 21:29:17 GMT):
Ok this problem I had to purge the wallet contents, enrollAdmin again regsiter user again.

garyclark (Tue, 31 Mar 2020 21:29:17 GMT):
Ok ti get past the above problem I had to purge the wallet contents, enrollAdmin again regsiter user again.

knagware9 (Wed, 01 Apr 2020 03:54:37 GMT):
only one org in HLF ? There should be atleast two orgs in the fabric network.Then you can use channel concept for data privacy

Jaque (Wed, 01 Apr 2020 06:10:17 GMT):
Has joined the channel.

Jaque (Wed, 01 Apr 2020 06:10:18 GMT):
Hello Guys, I am working on fabric version 1.4 where i running "balance transfer" example but i am ending with an error while creating channel. The error is basically my "testAPI.sh" scripts stucks there, when i look to the error. this is what i see(below) does any one has any idea please. My byfn script works properly recoveryParam: 0 } E0401 11:30:26.990322877 10259 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. 2020-04-01T06:00:26.992Z - error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at Object.exports.createStatusError (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client_interceptors.js:1311:15)\n at InterceptingListener._callNext (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/jaque/Blockchain/pro/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/jaque/Blockchain/pro/fabric-samples_1.4.6/balance-transfer/node_modules/grpc/src/client_interceptors.js:1127:18" [2020-04-01 11:30:26.993] [ERROR] Create-Channel - Error: SERVICE_UNAVAILABLE at ClientDuplexStream.broadcast.on (/home/jaque/Blockchain/pro1/fabric-samples_1.4.6/balance-transfer/node_modules/fabric-client/lib/Orderer.js:178:21)

HLFPOC (Wed, 01 Apr 2020 06:14:30 GMT):
Looks like orderer or peer container are down in the network. Before running the script, validate the services by running `docker ps -a` command.

Jaque (Wed, 01 Apr 2020 06:16:39 GMT):
thanks for your promt reply. all the services are up and running. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ae421ebc1f93 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com 4f1db9d79a6e hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com 50e9c4f66b89 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com 14aa614ba054 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 659a78b0f649 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 15 minutes ago Up 15 minutes 0.0.0.0:7054->7054/tcp ca_peerOrg1 57502544aa41 hyperledger/fabric-orderer "orderer" 15 minutes ago Up 15 minutes 0.0.0.0:7050->7050/tcp orderer.example.com 03d5ccf6e726 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 15 minutes ago Up 15 minutes 0.0.0.0:8054->7054/tcp ca_peerOrg2

Jaque (Wed, 01 Apr 2020 06:17:10 GMT):
thanks for your promt reply. all the services are up and running. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ae421ebc1f93 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com 4f1db9d79a6e hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com 50e9c4f66b89 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com 14aa614ba054 hyperledger/fabric-peer "peer node start" 15 minutes ago Up 15 minutes 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com 659a78b0f649 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 15 minutes ago Up 15 minutes 0.0.0.0:7054->7054/tcp ca_peerOrg1 57502544aa41 hyperledger/fabric-orderer "orderer" 15 minutes ago Up 15 minutes 0.0.0.0:7050->7050/tcp orderer.example.com 03d5ccf6e726 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 15 minutes ago Up 15 minutes 0.0.0.0:8054->7054/tcp ca_peerOrg2

chill37 (Wed, 01 Apr 2020 06:17:43 GMT):
Just a Question. Is it possible to access any web data directly from chaincode?

pritam_01 (Wed, 01 Apr 2020 07:55:06 GMT):
tls enabled ?? What I can see is "certificate verify failed." means you areusing wrong tls. could you send connection-profile.yaml of yours

Jaque (Wed, 01 Apr 2020 08:50:46 GMT):

network_config.txt

Jaque (Wed, 01 Apr 2020 08:51:16 GMT):
yes pritam the tls is enabled. please find the attached network config from balance transfer

pritam_01 (Wed, 01 Apr 2020 09:39:49 GMT):
rather then putting the location of crt file in tlsCACerts section use pem: | -----BEGIN CERTIFICATE----- '''''' ''''''''' -----END CERTIFICATE-----

przemyslaw.wasala (Wed, 01 Apr 2020 09:39:56 GMT):
Has joined the channel.

Jaque (Wed, 01 Apr 2020 09:51:26 GMT):
Sorry didnt get you, pem: | means

Jaque (Wed, 01 Apr 2020 09:51:42 GMT):
tlsCACerts: path: artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt

Jaque (Wed, 01 Apr 2020 09:52:12 GMT):
How do you want me to use this please?

pritam_01 (Wed, 01 Apr 2020 09:54:48 GMT):
https://tinyurl.com/sj9bdlp see this

RemisB (Wed, 01 Apr 2020 10:17:38 GMT):
Has joined the channel.

RemisB (Wed, 01 Apr 2020 10:17:39 GMT):
Hello I have to develop Fabric Chaincode app on 1.4 version and have chosen to use golang for chaincode development. I have done few SmartContracts but I can not find docs or samples on How to setup more than one smartcontract in one chaincode. Can anyone provide some hints or tips? Thanks in advance.

przemyslaw.wasala (Wed, 01 Apr 2020 10:22:51 GMT):
Hi, I have noticed that there is a potential bug in farbic-chaincode-java project. Probably the root cause is reading data from couchdb by executing particular function getState and getPrivateData. Reading 50kb data from NodeJs chaincode by executing getState/getPrivateData takes about 20ms, but from Java chaincode perspective there is a 30 seconds I will add that it was launched on Java 11, fabric v 2.0. Could you help me, please?

przemyslaw.wasala (Wed, 01 Apr 2020 10:22:51 GMT):
Hi, I have noticed that there is a potential bug in farbic-chaincode-java project. Probably the root cause is reading data from couchdb by executing particular function getState and getPrivateData. Reading 50kb data from NodeJs chaincode by executing getState/getPrivateData takes about 20ms, but from Java chaincode perspective there are 30 seconds I will add that it was launched on Java 11, fabric v 2.0. Could you help me, please?

Jaque (Wed, 01 Apr 2020 10:30:47 GMT):
unfortunatly it still gives me an same error

pritam_01 (Wed, 01 Apr 2020 10:31:55 GMT):
could you send the logs of peer

Jaque (Wed, 01 Apr 2020 10:32:28 GMT):
Sure

ascatox (Wed, 01 Apr 2020 13:44:32 GMT):
Hi All! I need to rent an Hosting Service to host my Fabric 2.0 Installation. I've 3 Orgs and one Peer and Orderer per Org with Raft as consensus service. What's the **minimal hardware requirement** for this type of Installation? Thanks in advance for the answers.

ascatox (Wed, 01 Apr 2020 13:44:32 GMT):
Hi All! I need to rent an **Hosting Service** to host my Fabric 2.0 Installation. I've 3 Orgs and one Peer and Orderer per Org with Raft as consensus service. What's the **minimal hardware requirement** for this type of Installation? Thanks in advance for the answers.

ascatox (Wed, 01 Apr 2020 13:44:32 GMT):
Hi All! I need to rent an **Hosting Service** to host my Fabric 2.0 Installation. I've 3 Orgs and one Peer and Orderer per Org with Raft as consensus service with CouchDB and a simple Chaincode registering a simple HASH for every transaction . What's the **minimal hardware requirement** for this type of Installation (RAM memory, number of CPUs and Disk space)? Thanks in advance for the answers.

ascatox (Wed, 01 Apr 2020 13:44:32 GMT):
Hi All! I need to rent an **Hosting Service** to host my Fabric 2.0 Installation. I've 3 Orgs and one Peer and Orderer per Org with Raft as consensus service with CouchDB and a simple Chaincode registering a simple HASH in each transaction. What's the **minimal hardware requirement** for this type of Installation (RAM memory, number of CPUs and Disk space)? Thanks in advance for the answers.

ascatox (Wed, 01 Apr 2020 13:44:32 GMT):
Hi All! I've in my Fabric Network 2 peers for Org and 4 Orgs I need an orderer for each Org? Thanks for the answers!!!

garyclark (Wed, 01 Apr 2020 14:45:56 GMT):
Registering a user for the first time on my own network. Seeing an affiliation error on the CA Server side . scode 404, code: 63, msg: Failed to get Affiliation: sql: now rows in result set. Not sure how to get past this problem. Any help on this would be appreciated.

garyclark (Wed, 01 Apr 2020 14:53:25 GMT):
FFS. Really its bootstrapped to use org1.department 1 lol.

garyclark (Wed, 01 Apr 2020 14:54:04 GMT):
I think there is an API I create a new affiliation.

garyclark (Wed, 01 Apr 2020 14:54:04 GMT):
I think there is an API to create a new affiliation.

garyclark (Wed, 01 Apr 2020 14:54:16 GMT):
https://stackoverflow.com/questions/45934704/failed-getting-affiliation-at-the-time-of-user-registration-using-fabric-client

HLFPOC (Wed, 01 Apr 2020 15:34:02 GMT):
How to ensure privacy between different users of a same organization ? For e.g in a typical supply chain use case, suppliers can be in hundreds, but it is not practical to deploy each supplier as a separate node in the consortium. If we keep single node for all suppliers, then how can we ensure that data of one supplier is not visible/accessible by other suppliers?

garyclark (Wed, 01 Apr 2020 16:19:29 GMT):
The only options I know of is to use private collections in conjunction with policies for a channel. You may need to be creative. I'm sure some of the fabric gurus can throw in their 2 cents.

HLFPOC (Wed, 01 Apr 2020 16:22:42 GMT):
Not sure how private collections can help in this case as all users are part of the same organization. Can you please elaborate ?

Hsequeda (Wed, 01 Apr 2020 16:24:33 GMT):
Has joined the channel.

garyclark (Wed, 01 Apr 2020 16:35:01 GMT):
The private collections along with policies is what is offered. Someone did propose on this chat about potentially proposing what you need. A private peer to peer of the same org on the same channel. Not sure what happened to that. Like I said you may need to be creative if you intend to move forward and this blockchain for your purpose.

garyclark (Wed, 01 Apr 2020 16:35:01 GMT):
The private collections along with policies is what is offered. Someone did propose on this chat about potentially proposing what you need. A private peer to peer on the same org on the same channel. Not sure what happened to that. Like I said you may need to be creative if you intend to move forward and use this blockchain for your purpose.

BrettLogan (Wed, 01 Apr 2020 16:48:13 GMT):
add the owning organizations name to the asset, and when they query, pull the invoking MSP off the stub and check it against the orgName tied to the asset

BrettLogan (Wed, 01 Apr 2020 16:48:13 GMT):
add the organizations name to the asset, and when they query, pull the invoking MSP off the stub and check it against the orgName tied to the asset

BrettLogan (Wed, 01 Apr 2020 16:52:52 GMT):
Are you putting it on raw VM's or Kubernetes?

HLFPOC (Wed, 01 Apr 2020 16:55:34 GMT):
yes, this can be one of the approach by handling access control on chaincode level. But again, as all users are part of same organization and data is already available in the peer ledger, is it possible that a user can directly access ledger (without going through chaincode) and see all the transactions ?

BrettLogan (Wed, 01 Apr 2020 16:58:03 GMT):
Are you granting the users access to the physical system or to query your database directly? If not, there is no mechanism for them to query the ledger remotely than through chaincode (assuming they aren't admins on the network and can't manipulate the network)

BrettLogan (Wed, 01 Apr 2020 16:58:03 GMT):
Are you granting the users access to the physical system or to query your database directly? If not, there is no mechanism for them to query the ledger remotely than through chaincode (assuming they don't have admins certs on the network and can't manipulate the network)

HLFPOC (Wed, 01 Apr 2020 17:06:09 GMT):
okay, got your point. Users will not access the physical server directly. They will be interacting through the SDK layer for reading/writing the data in the ledger. Thanks for your inputs.

musicmodes (Wed, 01 Apr 2020 17:15:33 GMT):
Has joined the channel.

musicmodes (Wed, 01 Apr 2020 17:15:33 GMT):
hi i facing hi i am facing some issue regarding adding peers to channel kindly help Error: error getting endorser client for channel: endorser client failed to connect to peer0.barber.model.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.64.3:8051: connect: connection refused"

musicmodes (Wed, 01 Apr 2020 17:16:07 GMT):
hi i am facing some issue regarding adding peers to channel kindly help Error: error getting endorser client for channel: endorser client failed to connect to peer0.barber.model.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.64.3:8051: connect: connection refused"

garyclark (Wed, 01 Apr 2020 17:38:12 GMT):
Have you tried to telnet to that port?

usamahabib95 (Wed, 01 Apr 2020 18:02:31 GMT):
when I try to approve chaincode definitio for my organization using peer lifecycle chaincode approveformyorg I got this error``` Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': could not serialize chaincode parameters to state: could not deserialize metadata for namespace namespaces/hei-authorization-contract#1: could not query metadata for namespace namespaces/hei-authorization-contract#1: GET_STATE failed: transaction ID: 85c9a7441cda90c5860c0d64b45e3d0fb3aaf963ccb2b3c0420e517c60880a5a: private data matching public hash version is not available. Public hash version = {BlockNum: 9, TxNum: 0}, Private data version = ```

usamahabib95 (Wed, 01 Apr 2020 18:03:21 GMT):
when I try to approve chaincode definitio for my organization using peer lifecycle chaincode approveformyorg I got this error``` Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': could not serialize chaincode parameters to state: could not deserialize metadata for namespace namespaces/hei-authorization-contract#1: could not query metadata for namespace namespaces/hei-authorization-contract#1: GET_STATE failed: transaction ID: 85c9a7441cda90c5860c0d64b45e3d0fb3aaf963ccb2b3c0420e517c60880a5a: private data matching public hash version is not available. Public hash version = {BlockNum: 9, TxNum: 0}, Private data version = ``` can someone please explain the cause of this error

musicmodes (Wed, 01 Apr 2020 18:03:46 GMT):
i didn't understand sir

garyclark (Wed, 01 Apr 2020 18:13:09 GMT):
Can you telnet to 192.168.64.3 8051 and see if its not a firewall issue?

garyclark (Wed, 01 Apr 2020 18:14:47 GMT):
I have had to open ports on the firewall to connect.

musicmodes (Wed, 01 Apr 2020 18:15:25 GMT):
ok sir let me check

musicmodes (Wed, 01 Apr 2020 18:29:09 GMT):
Trying 172.19.0.6... telnet: Unable to connect to remote host: Connection refused sir how to fix this

musicmodes (Wed, 01 Apr 2020 18:57:31 GMT):
and sir ufw is inactive in my ubuntu machine

garyclark (Wed, 01 Apr 2020 18:59:40 GMT):
Firewall. You have to open the port on iptables.

musicmodes (Wed, 01 Apr 2020 19:11:17 GMT):
ACCEPT tcp -- anywhere 172.19.0.6 tcp dpt:8051

musicmodes (Wed, 01 Apr 2020 19:11:45 GMT):
showing in iptables

garyclark (Wed, 01 Apr 2020 19:19:46 GMT):
you have to do this for both machines.

yeousunn (Thu, 02 Apr 2020 03:39:59 GMT):
Hi Guys, I am facing the following exception ``` 2020-04-01 04:28:08.287 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} managed channel isTerminated: false, isShutdown: false, state: TRANSIENT_FAILURE 2020-04-01 04:28:08.294 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : Received error org.hyperledger.fabric.sdk.OrdererClient$1@43c1b07f UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] io.grpc.StatusRuntimeException: UNAVAILABLE: io exception ... ... 2020-04-01 04:28:08.297 ERROR 23356 --- [nio-8181-exec-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} grpc status Code:io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], Description UNAVAILABLE, ... ... 2020-04-01 04:28:08.303 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Channel mychannel unsuccessful sendTransaction to orderer orderer1.example.com (grpcs://localhost:7050) 2020-04-01 04:28:08.307 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Future completed exceptionally: sendTransaction java.lang.Exception: Channel mychannel failed to place transaction aff067d1599f23052ef103ab9c9c610484c4b43d24a03ac270507ced1a8f0af0 on Orderer. Cause: UNSUCCESSFUL. at org.hyperledger.fabric.sdk.Channel.doSendTransaction(Channel.java:5415) [fabric-sdk-java-1.4.8.jar!/:na] ``` I have tried changing the hosts entry and also tried docker container IP address. The exception is thrown only when I try to invoke and write to the ledger, the query transaction works perfectly. thank you.

knagware9 (Thu, 02 Apr 2020 04:48:32 GMT):
and also you can write the data in encrpted format and when user use his private key to decrypt then some more priavcy can be added. For example each supplier has own public private key and while storing data in ledger store as encrpt format so even ledger will be accesble all supplier but they can read data

nileshv (Thu, 02 Apr 2020 06:00:16 GMT):
Has joined the channel.

nileshv (Thu, 02 Apr 2020 06:22:04 GMT):
Hi all, in the fabric documentation it says "For instance, when deployed within a single enterprise, or operated by a trusted authority, fully byzantine fault tolerant consensus might be considered unnecessary and an excessive drag on performance and throughput. In situations such as that, a crash fault-tolerant (CFT) consensus protocol might be more than adequate". I am curious why would some one want to use Fabric within a single enterprise or an enterprise operated by a trusted authority? What is a possible use case for that? Thanks in advance!

nileshv (Thu, 02 Apr 2020 06:22:04 GMT):
Hi all, in the fabric documentation it says "For instance, when deployed within a single enterprise, or operated by a trusted authority, fully byzantine fault tolerant consensus might be considered unnecessary and an excessive drag on performance and throughput. In situations such as that, a crash fault-tolerant (CFT) consensus protocol might be more than adequate". I am curious why would someone want to use Fabric within a single enterprise or an enterprise operated by a trusted authority? What is a possible use case for that? Thanks in advance!

AshutoshKumar7 (Thu, 02 Apr 2020 06:59:34 GMT):
Is there any guide for deploying fabric 2.0 on distributed kubernetes environment?

Tim (Thu, 02 Apr 2020 08:08:49 GMT):
Hi guys, quick question, how is the name(number) of a user pub/priv key generated which I can find in a wallet filesystem. example : 8cd90c0798f35f82efa4a812847eb3fe086ab7d353e4146c7328e3a6a50d7227-priv or 8cd90c0798f35f82efa4a812847eb3fe086ab7d353e4146c7328e3a6a50d7227-pub. Thx

vanitas92 (Thu, 02 Apr 2020 08:21:21 GMT):
Hi @AshutoshKumar7, i have made a tutorial of deploying an Hyperledger network 2.0 in kubernetes environment with External Chaincode feature, see if it meets with your needs: https://medium.com/swlh/how-to-implement-hyperledger-fabric-external-chaincodes-within-a-kubernetes-cluster-fd01d7544523?source=friends_link&sk=ba5bf75f1a7e92f5ac2ec93b27ddcd0f

musicmodes (Thu, 02 Apr 2020 08:30:15 GMT):
both machines sir

AshutoshKumar7 (Thu, 02 Apr 2020 08:33:21 GMT):
Thanks @vanitas92 . will take a look and revert back to you.

Amanullah68 (Thu, 02 Apr 2020 08:37:36 GMT):
Hi, I'm trying to create my own network in fabric 1.4 but I failed

Amanullah68 (Thu, 02 Apr 2020 08:38:08 GMT):
Whenever I'm running this command 'docker-compose -f docker-compose-cli.yaml up'

Amanullah68 (Thu, 02 Apr 2020 08:39:45 GMT):

Screenshot from 2020-04-02 13-38-29.png

musicmodes (Thu, 02 Apr 2020 08:41:26 GMT):
can u clear

Amanullah68 (Thu, 02 Apr 2020 12:51:58 GMT):
Hi, I got this error peers not connecting to each other

Amanullah68 (Thu, 02 Apr 2020 12:52:00 GMT):
peer0.banker-org:14051, PKI-ID: , Metadata: : context deadline exceeded

garyclark (Thu, 02 Apr 2020 13:36:45 GMT):
If your running on one machine your good to go. If you have a network of machines like I do you need to have both machines firewall configured to connect.

AshutoshKumar7 (Thu, 02 Apr 2020 14:05:23 GMT):
I am getting an error while setting up orderer following this link https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-orderer . Error is statusCode=401 (401 Unauthorized) Error: Response from server: Error Code: 20 - Authentication failure .

AshutoshKumar7 (Thu, 02 Apr 2020 14:05:45 GMT):
I am using fabric 2

AshutoshKumar7 (Thu, 02 Apr 2020 14:06:47 GMT):
Setting up of CA and Peers was success but Orderer is not working

musicmodes (Thu, 02 Apr 2020 17:23:22 GMT):
sir it is on one machine only

musicmodes (Thu, 02 Apr 2020 17:23:39 GMT):
now how can i resolve the issue

cryptopatrick (Thu, 02 Apr 2020 17:35:44 GMT):
Has joined the channel.

cryptopatrick (Thu, 02 Apr 2020 17:40:44 GMT):
Hi! For someone starting to learn Fabric, does it makes sense to learn Fabric 1.4, or is it better to jump straight to Fabric 2.0? Thanks!

Hsequeda (Thu, 02 Apr 2020 17:56:03 GMT):
Any Application example with Golang, the official documentation only has Java and Javascript.

cryptopatrick (Thu, 02 Apr 2020 18:01:31 GMT):
So, can I use Golang with Fabric 2.0 - but there's no docs for it in 2.0 so I have to look at 1.4? Is that correct?

musicmodes (Thu, 02 Apr 2020 18:19:49 GMT):
because it is showing that the port is open

ZappaBoy (Thu, 02 Apr 2020 18:21:12 GMT):
Has joined the channel.

ZappaBoy (Thu, 02 Apr 2020 18:21:13 GMT):
Hi all!

ZappaBoy (Thu, 02 Apr 2020 18:21:14 GMT):
I have a question: there's a way to deploy a full network (with ordering service, cli ecc) twice on two different machines without Kubernetes? I means, i can use a second machine as a fully backup of first?

musicmodes (Thu, 02 Apr 2020 18:25:17 GMT):

Screenshot from 2020-04-02 23-53-08.png

musicmodes (Thu, 02 Apr 2020 18:25:47 GMT):
but when i traced the path it is showing this

garyclark (Thu, 02 Apr 2020 18:27:59 GMT):
Can you telnet to that port?

musicmodes (Thu, 02 Apr 2020 18:29:04 GMT):
it is showing error while telnet

musicmodes (Thu, 02 Apr 2020 18:30:19 GMT):
connection refused

garyclark (Thu, 02 Apr 2020 18:36:08 GMT):
Are you using docker containers?

musicmodes (Thu, 02 Apr 2020 18:36:25 GMT):
yes sir

garyclark (Thu, 02 Apr 2020 18:36:43 GMT):
docker container ls

musicmodes (Thu, 02 Apr 2020 18:38:01 GMT):
it is showing the organisations

garyclark (Thu, 02 Apr 2020 18:38:18 GMT):
and the ports correct

musicmodes (Thu, 02 Apr 2020 18:38:36 GMT):
yes sir

garyclark (Thu, 02 Apr 2020 18:38:52 GMT):
Can you capture that

musicmodes (Thu, 02 Apr 2020 18:39:59 GMT):

Screenshot from 2020-04-03 00-09-32.png

garyclark (Thu, 02 Apr 2020 18:44:14 GMT):
It looks like the peer0-barber-model.com is the one that your failing to connect to on 8051.

musicmodes (Thu, 02 Apr 2020 18:44:29 GMT):
yes sir

garyclark (Thu, 02 Apr 2020 18:45:38 GMT):
try telnet to 7051.

musicmodes (Thu, 02 Apr 2020 18:47:44 GMT):

Screenshot from 2020-04-03 00-17-24.png

garyclark (Thu, 02 Apr 2020 19:01:50 GMT):
It looks like a firewall issue on 8051. Since you can connect to 7051.

musicmodes (Thu, 02 Apr 2020 19:03:00 GMT):
so i should change the port number

musicmodes (Thu, 02 Apr 2020 19:09:17 GMT):
sir when i joined peer of other organisation with different port it showed me the same error

musicmodes (Thu, 02 Apr 2020 19:09:37 GMT):

Screenshot from 2020-04-03 00-38-24.png

garyclark (Thu, 02 Apr 2020 19:13:09 GMT):
So what ports can you access?

garyclark (Thu, 02 Apr 2020 19:13:25 GMT):
via telnet.

musicmodes (Thu, 02 Apr 2020 19:24:15 GMT):
sir only 7050 and 7051

garyclark (Thu, 02 Apr 2020 19:30:00 GMT):
So one peer and one orderer is running.

garyclark (Thu, 02 Apr 2020 19:30:36 GMT):
whats the hostname of the machine your running on?

musicmodes (Thu, 02 Apr 2020 19:36:13 GMT):
wrath-machine

garyclark (Thu, 02 Apr 2020 19:36:58 GMT):
what does your /etc/hosts look like?

garyclark (Thu, 02 Apr 2020 19:44:07 GMT):
On the machine type: netstat -plnt

garyclark (Thu, 02 Apr 2020 19:44:55 GMT):
This will tell you what ports are listening.

musicmodes (Thu, 02 Apr 2020 19:46:28 GMT):

Screenshot from 2020-04-03 01-16-07.png

musicmodes (Thu, 02 Apr 2020 19:46:58 GMT):
sir should i send you my files

garyclark (Thu, 02 Apr 2020 19:49:17 GMT):
Err, no. I dont get paid for tech support.

musicmodes (Thu, 02 Apr 2020 19:50:10 GMT):
okay sir

musicmodes (Thu, 02 Apr 2020 19:51:00 GMT):
anything else i can do

musicmodes (Thu, 02 Apr 2020 19:53:25 GMT):
cause i really can't find a way through

garyclark (Thu, 02 Apr 2020 19:54:28 GMT):
can you stop the peer that running 7051.

musicmodes (Thu, 02 Apr 2020 19:57:03 GMT):
i would have to down the network

garyclark (Thu, 02 Apr 2020 19:57:46 GMT):
ok dont do that.

garyclark (Thu, 02 Apr 2020 19:58:19 GMT):
type: netstat -ltnp

garyclark (Thu, 02 Apr 2020 19:58:47 GMT):
This will tell us if another process is consuming that port 8051.

musicmodes (Thu, 02 Apr 2020 19:59:42 GMT):
sir pid/program name is blank

garyclark (Thu, 02 Apr 2020 19:59:52 GMT):
ok thats good.

musicmodes (Thu, 02 Apr 2020 20:01:22 GMT):
sir when i traced the route it showed me that the connection is closed

garyclark (Thu, 02 Apr 2020 20:01:46 GMT):
Type iptables -L

musicmodes (Thu, 02 Apr 2020 20:02:54 GMT):
it is showing the ports

garyclark (Thu, 02 Apr 2020 20:03:16 GMT):
can you show me.

musicmodes (Thu, 02 Apr 2020 20:03:24 GMT):
yeah

musicmodes (Thu, 02 Apr 2020 20:04:14 GMT):

Screenshot from 2020-04-03 01-33-53.png

garyclark (Thu, 02 Apr 2020 20:26:43 GMT):
Sorry just been thinking.

BrettLogan (Thu, 02 Apr 2020 20:38:14 GMT):
Of course you can write them in Go. All of the samples have equivalent Go, Java and Node chaincode in their directories in fabric-samples

BrettLogan (Thu, 02 Apr 2020 20:38:30 GMT):
All of the samples have equivalent Go, Java and Node chaincode in their directories in fabric-samples

BrettLogan (Thu, 02 Apr 2020 20:41:52 GMT):
Both the high-throughput and the interest_rate_swap examples are written in Go. https://github.com/hyperledger/fabric-samples/tree/master/interest_rate_swaps and https://github.com/hyperledger/fabric-samples/tree/master/high-throughput

BrettLogan (Thu, 02 Apr 2020 20:42:29 GMT):
Both the high-throughput and the interest_rate_swap examples are written in Go. https://github.com/hyperledger/fabric-samples/tree/master/interest_rate_swaps and https://github.com/hyperledger/fabric-samples/tree/master/high-throughput

garyclark (Thu, 02 Apr 2020 20:46:16 GMT):
what is your CORE_PEER_GOSSIP_EXTERNALENDPOINT

braduf (Thu, 02 Apr 2020 23:22:50 GMT):
Hi, does anybody know how to set mutual TLS for the Java SDK / Gateway, please? I have tried by setting properties to the clientKeyFile and clientCertFile for the channel, I have tried setting them as system variables, but nothing works. I also do not see anyway to add clientTlsIdentity to the gateway as is possible with the Node SDK. Thanks in advance!

braduf (Thu, 02 Apr 2020 23:22:50 GMT):
Hi, does anybody know how to set mutual TLS for the Java SDK / Gateway, please? I have tried by setting properties to the clientKeyFile and clientCertFile for the channel, I have tried setting them as system variables, but nothing works. I also do not see anyway to add clientTlsIdentity to the gateway as is possible with the Node SDK. Can somebody help me with this please?

braduf (Thu, 02 Apr 2020 23:22:50 GMT):
Hi, does anybody know how to set mutual TLS for the Java SDK / Gateway, please? I have tried by setting properties to the clientKeyFile and clientCertFile for the channel, I have tried setting them as system variables, but nothing works. I also do not see anyway to add clientTlsIdentity to the gateway as is possible with the Node SDK. Can somebody help me with this please? Thanks a lot!

gregorydaval (Fri, 03 Apr 2020 04:39:09 GMT):
Has joined the channel.

gregorydaval (Fri, 03 Apr 2020 04:39:11 GMT):
Hi all

gregorydaval (Fri, 03 Apr 2020 04:39:25 GMT):
Night night, how do I get started on Hyperledger Composer ?

gregorydaval (Fri, 03 Apr 2020 04:40:36 GMT):
This is my first time .. and I am trying to go through the tutorial.

gregorydaval (Fri, 03 Apr 2020 04:41:25 GMT):
https://composer-playground.mybluemix.net/

gregorydaval (Fri, 03 Apr 2020 04:41:44 GMT):
This url isnt working. Any help guys ?

Amanullah68 (Fri, 03 Apr 2020 04:43:33 GMT):
Hi, I'm facing this issue 'Could not connect to Endpoint: peer0.trader-org:10051, InternalEndpoint: peer0.trader-org:10051, PKI-ID: , Metadata: : context deadline exceeded'

Amanullah68 (Fri, 03 Apr 2020 04:43:53 GMT):
not able to connect with endpoint

gregorydaval (Fri, 03 Apr 2020 04:44:16 GMT):
@Amanullah68 are you using Hyperledger Composer ?

Amanullah68 (Fri, 03 Apr 2020 04:44:45 GMT):
No, I'm creating fabric network 1.4

gregorydaval (Fri, 03 Apr 2020 04:45:25 GMT):
Okay alright. Do you know how I would be able to us Composer playground ?

Amanullah68 (Fri, 03 Apr 2020 04:45:53 GMT):
better to work in HYperledger fabric

gregorydaval (Fri, 03 Apr 2020 04:46:29 GMT):
Okay alrightie, cools. I want to build a dApp.. but I dont know where to start.

gregorydaval (Fri, 03 Apr 2020 04:46:33 GMT):
Any suggestions ?

Amanullah68 (Fri, 03 Apr 2020 04:47:03 GMT):
Go through their official documentation https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html

gregorydaval (Fri, 03 Apr 2020 04:47:25 GMT):
Okay alrigtie, cools

gregorydaval (Fri, 03 Apr 2020 04:47:41 GMT):
Thanks , and this will help me with building a dApp ?

Amanullah68 (Fri, 03 Apr 2020 04:48:36 GMT):
I've worked in composer but now I start working in Fabric as composer updated version is depricated

Amanullah68 (Fri, 03 Apr 2020 04:49:01 GMT):
yes

gregorydaval (Fri, 03 Apr 2020 04:49:11 GMT):
Okay alrightie, cools. Yeah I see what you mean. Noted.

gregorydaval (Fri, 03 Apr 2020 04:49:28 GMT):
Alright, awesome.

gregorydaval (Fri, 03 Apr 2020 05:01:07 GMT):
And also @Amanullah68 , sorry to be a bit annoying, But does it also go through the tutorial of building a Frontend (UI) of the dApp as well ?

gregorydaval (Fri, 03 Apr 2020 05:01:49 GMT):
I'm going to go through it thoroughly but just wanted to see if it has that section as well.

gregorydaval (Fri, 03 Apr 2020 05:09:03 GMT):

Audio record.mp3

RemisB (Fri, 03 Apr 2020 07:29:14 GMT):
I has/ still have some issue. Golang chaincode code is least respected in the documentation/ samples and tutorials. It looks like they have abandoned it.

RemisB (Fri, 03 Apr 2020 07:29:14 GMT):
I has/ still have same issue. The Golang as programming language for chaincode is the least respected in the documentation/ samples and tutorials. It looks like they have abandoned it.

RemisB (Fri, 03 Apr 2020 07:30:31 GMT):
It looks that new chaincode programming model for fabric 1.4 was developed for JavaScript and Java. Regarding golang they left it unimplemented at all.

RemisB (Fri, 03 Apr 2020 07:32:04 GMT):
Right now I have 2 projects for ledger one for version 1.4 and another for version 2 and I have to use 2 differenct programming languages, JavaScript for 1.4 and golang for 2.0, it's crazy.

RemisB (Fri, 03 Apr 2020 07:40:10 GMT):
There is another example https://github.com/awjh-ibm/fabric-samples/blob/master/chaincode/fabcar/go/fabcar.go

RemisB (Fri, 03 Apr 2020 07:42:19 GMT):
BTW for you information new chaincode programming model where one chaincode is allowed to have more that one smartcontract on fabric 1.4 for golang is not supported. You can do that only on version 2.0 :(

Amanullah68 (Fri, 03 Apr 2020 07:58:35 GMT):
Hi, I'm facing this issue

Amanullah68 (Fri, 03 Apr 2020 07:58:37 GMT):
Failed to initialize local MSP: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory

PatrikStas (Fri, 03 Apr 2020 08:24:32 GMT):
Has left the channel.

Amanullah68 (Fri, 03 Apr 2020 09:20:14 GMT):
start from network, then chain code then node backend then front end

musicmodes (Fri, 03 Apr 2020 09:34:13 GMT):
peer0.barber.model.com:8051

musicmodes (Fri, 03 Apr 2020 09:37:17 GMT):
actually i have made four organisations

musicmodes (Fri, 03 Apr 2020 09:37:44 GMT):
canteen barber fruit stationary

musicmodes (Fri, 03 Apr 2020 09:38:06 GMT):
having one peer each that is peer0

cryptopatrick (Fri, 03 Apr 2020 09:46:58 GMT):
Can anyone support the impression that Golang as a chaincode langauge is seeing less support in Fabric 2.0, while Java and JavaScript is being promoted in documentation and tutorials? Just curious which languages have the most love from the dev teams.

cryptopatrick (Fri, 03 Apr 2020 09:48:34 GMT):
@RemisB Thanks for sharing. I can code in Go and in JS, but I'm less happy about coding in Java. I'm just interested to avoid coding a lot of Go chaincode only to see it being dropped - if that is something that might happen soon.

Taaanos (Fri, 03 Apr 2020 09:50:29 GMT):
I agree with you that `go` is behind `node` and `java`. On 2.0 they brought it closer to the other by introducing the `contract-api-go` that uses the low level `fabric-chaincode-go`.

cryptopatrick (Fri, 03 Apr 2020 09:50:33 GMT):
Can anyone share some words on Fabric 1.4 vs Fabric 2.0? Are most people continuing to build using 1.4 for now, or is there a strong selling point for making the jump to 2.0 at this point in time? Thanks for any feedback!

Taaanos (Fri, 03 Apr 2020 09:52:00 GMT):
Haven't done much with 1.4 but here are my 2c on what I like so far for Fabric 2.0 compared to 1.4. 1. `contract-api-go` 2. simpler and more straight forward `chaincode lifecycle`

Taaanos (Fri, 03 Apr 2020 09:52:00 GMT):
Haven't done much with 1.4 but here are my 2c on what I like so far for Fabric 2.0 compared to 1.4 1. `contract-api-go` 2. simpler and more straight forward `chaincode lifecycle`

Taaanos (Fri, 03 Apr 2020 09:53:25 GMT):
the `fabric-sdk-go` is definitely behind the others

Taaanos (Fri, 03 Apr 2020 09:53:25 GMT):
the `fabric-go-sdk` is definitely behind the others

cryptopatrick (Fri, 03 Apr 2020 09:55:38 GMT):
Thanks! That's very helpful! I'm started reading the 2.0 reference but there are so many tutorials for 1.4 that I'm a bit reluctant if I better spend my time learning 1.4 first.

Taaanos (Fri, 03 Apr 2020 09:57:26 GMT):
I find the `fabcar` and `commercial-paper` very insightful for 2.0

cryptopatrick (Fri, 03 Apr 2020 10:02:28 GMT):
Thanks! Will have a look at those. I have to code a poc so I'll simply go with 2.0 for now and cross my fingers.

Taaanos (Fri, 03 Apr 2020 10:03:14 GMT):
yes same here

cryptopatrick (Fri, 03 Apr 2020 10:29:21 GMT):
Have you tried using Docker to spawn a network, run chaincode and then tear it down? I created a simple Dockerfile but kept getting ./network.sh not found. Or are you developing straight on a local machine? Thanks

Taaanos (Fri, 03 Apr 2020 10:57:25 GMT):
If you don't need anything particular for a network and you want to focus on the chaincode you better start with: 1. Satisfying the prerequisites 2. in the `fabric-samples/test-network` launch the test-network 3. develop your chaincode 4. install it

Taaanos (Fri, 03 Apr 2020 10:58:19 GMT):
If your goal is to simply get started with the chaincode you can do that without a network, test it with mocks etc (check `commercial-paper`) and when it's ready you can install it on the test network

Francesco_P (Fri, 03 Apr 2020 11:14:07 GMT):
Hi, i'm executing "./network.sh deployCC" in the guide https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel

Francesco_P (Fri, 03 Apr 2020 11:21:02 GMT):
Hi, i'm executing "./network.sh deployCC" in the guide https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel . what is the sense of making 2 times the command "peer lifecycle chaincode install fabcar.tar.gz" ? it produces even the same package id

Francesco_P (Fri, 03 Apr 2020 11:21:02 GMT):
Hi, i'm executing "./network.sh deployCC" in the guide https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#starting-a-chaincode-on-the-channel . what is the sense of making 2 times the command "peer lifecycle chaincode install fabcar.tar.gz" ? it produces even the same package id . I expect that it give 2 different package id if it installs on 2 different peers... doesn't it ?

RemisB (Fri, 03 Apr 2020 11:39:02 GMT):
I do not expect that they will drop golang support for chaincode. I guess they do not have enough resources on that side or they fill that there are much more developers and interest for JavaScript and Java.

cryptopatrick (Fri, 03 Apr 2020 11:42:59 GMT):
Thanks! Very helpful! I'm currently making my way through 553 pages of docs so I hope that will clear up a lot about exactly how Fabric works under the hood.

RemisB (Fri, 03 Apr 2020 11:44:33 GMT):
Good luck. Take it easy. For me it took too long time to get some understanding and limitations. Still learning...

Hsequeda (Fri, 03 Apr 2020 12:01:24 GMT):
Hi, in the tuto Writing Your First Applicacion I tried to develop the Invoke program of Fabcar application in golang, because that is not present in the tuto, but when I trying to load the ConfigOption from the connections-org1.yml or connections-org1.json the program returns me this error : failed to initialize configuration: unable to load identity config: failed to initialize identity config from config backend: failed to create identity config from backends: failed to parse 'certificateAuthorities' config item to identityConfigEntity.CertificateAuthorities type: 1 error(s) decoding: * '[ca.org1.example.com].TLSCACerts.Pem': source data must be an array or slice, got string

Hsequeda (Fri, 03 Apr 2020 12:02:09 GMT):
😭😭😭

Taaanos (Fri, 03 Apr 2020 12:14:12 GMT):
No need to go through all the documentation. Understand the `transaction flow` to get the big picture of how fabric works.

Taaanos (Fri, 03 Apr 2020 12:15:19 GMT):
Fabric is very intimidating cause you need to setup everything yourself, fortunately the scripts for test-net etc help you focus on what you want

Taaanos (Fri, 03 Apr 2020 12:17:09 GMT):
The `test-network` brings up two Orgs (Org1 and Org2). You need to install the chaincode in each peer from the view point of each admin. Admin of Org1 installs the chaincode for their organization, similarly admin of Org2 does the same for their peer. Read the `chaincode lifecycle` and understand the endorsement policy.

Taaanos (Fri, 03 Apr 2020 12:18:54 GMT):
can you send the tutorial you are going through? Keep in mind before using the `peer` cli you need to set the right env vars to point to the right config paths and credentials

garyclark (Fri, 03 Apr 2020 14:27:17 GMT):
I have 3 organizations each 1 peer per org. Each one on a separate machine separate. Each one using 7051. The gossip channel.

garyclark (Fri, 03 Apr 2020 14:27:17 GMT):
I have 3 organizations each 1 peer per org. Each one on a separate machine separate. Each one using 7051. Gossip communication.

garyclark (Fri, 03 Apr 2020 15:39:41 GMT):
I assume you have added these orgs to your etc host file.

cryptopatrick (Fri, 03 Apr 2020 16:22:05 GMT):
Again, thanks! You've given me some great advice!

musicmodes (Fri, 03 Apr 2020 17:15:09 GMT):
can anyone help me with this Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (myacc:1.0)

Hsequeda (Fri, 03 Apr 2020 18:35:38 GMT):
I fallow this turorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

Hsequeda (Fri, 03 Apr 2020 18:36:17 GMT):
It's work, I tried with node.js example

Hsequeda (Fri, 03 Apr 2020 18:45:44 GMT):
The problem occurs to with the fabsdk.New() methods (in golang)

Taaanos (Fri, 03 Apr 2020 19:11:24 GMT):
as far as I am aware `fabric-sdk-go` does have support for `fabric 2.0` yet

Taaanos (Fri, 03 Apr 2020 19:11:24 GMT):
as far as I am aware `fabric-sdk-go` does not have support for `fabric 2.0` yet

Hsequeda (Fri, 03 Apr 2020 19:22:40 GMT):
Ohh, thanks

gregorydaval (Fri, 03 Apr 2020 23:46:37 GMT):
Hi all - good day , hope you guys are doing well

gregorydaval (Fri, 03 Apr 2020 23:47:04 GMT):
I'm going through the Hyperledger farbic tutorial

gregorydaval (Fri, 03 Apr 2020 23:50:25 GMT):
I'm on the section that speaks about "Using the Fabric Test Network " ---> "Interacting with the Network"

gregorydaval (Fri, 03 Apr 2020 23:51:13 GMT):
I'm getting this error: 2020-04-03 18:44:52.650 EST [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder

BrettLogan (Sat, 04 Apr 2020 00:49:53 GMT):
Can you share what you've done so far, and the entire output from the error, the context surrounding the error is generally as important as the error itself

BrettLogan (Sat, 04 Apr 2020 00:51:06 GMT):
You could use SDK Go, but only if you are using 1.4 capabilities. Is you convert to 2.0 lifecycle you won't find support for it. Though they are working diligently to implement it.

gregorydaval (Sat, 04 Apr 2020 08:13:49 GMT):
Okay alright , noteed. Thanks, will do @BrettLogan

gregorydaval (Sat, 04 Apr 2020 08:15:23 GMT):
This is the tutorial I am working with : https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

gregorydaval (Sat, 04 Apr 2020 08:16:35 GMT):
When I ran this code : peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}'

gregorydaval (Sat, 04 Apr 2020 08:16:45 GMT):
I got this error:

gregorydaval (Sat, 04 Apr 2020 08:17:16 GMT):

Screen Shot 2020-04-04 at 3.15.57 AM.png

Taaanos (Sat, 04 Apr 2020 10:15:18 GMT):
it looks like ta `bin/cryptogen` didn't generate the crypto material needed for the bin. This should be done automatically from the script

Taaanos (Sat, 04 Apr 2020 10:15:40 GMT):
Try and `down` everything and `up` again and check if you get any errors

garyclark (Sat, 04 Apr 2020 15:04:28 GMT):
I have enabled TLS on my network. I am seeing bad certificate server=Orderer remoteaddress=192.168.1.120 on the orderer. On the peer which is trying to create the channel "transport: authentication handshake failed: x509 certificate signed by unknown authority". Some help on understand why this happening?

gregorydaval (Sat, 04 Apr 2020 15:05:20 GMT):
Ohh oh okay, alright, Noted

gregorydaval (Sat, 04 Apr 2020 15:05:30 GMT):
I'm gonna down everything and then up again now.

gregorydaval (Sat, 04 Apr 2020 15:05:39 GMT):
I think i tried and i got an error before.

gregorydaval (Sat, 04 Apr 2020 15:05:53 GMT):
but gonna try again now @Taaanos

TzortzisPanagiotis (Sat, 04 Apr 2020 15:27:18 GMT):
Has joined the channel.

gregorydaval (Sat, 04 Apr 2020 15:47:37 GMT):
Yeah I'm still getting the error @Taaanos

gregorydaval (Sat, 04 Apr 2020 15:48:28 GMT):

Screen Shot 2020-04-04 at 10.47.21 AM.png

Taaanos (Sat, 04 Apr 2020 15:51:28 GMT):
I don't see the chaincodes installed

Taaanos (Sat, 04 Apr 2020 15:51:41 GMT):
do a `docker -ps`

Taaanos (Sat, 04 Apr 2020 15:52:04 GMT):
can you see 2 more containers for the peer0.org1 and org2?

gregorydaval (Sat, 04 Apr 2020 15:58:14 GMT):
Yeah they are running:

gregorydaval (Sat, 04 Apr 2020 15:58:25 GMT):

Screen Shot 2020-04-04 at 10.58.00 AM.png

Taaanos (Sat, 04 Apr 2020 15:58:46 GMT):
these are for the peers

Taaanos (Sat, 04 Apr 2020 15:59:03 GMT):
when you install a chaincode they spawn a container that runs it for each peer

Taaanos (Sat, 04 Apr 2020 15:59:09 GMT):
so you should have 5 containers now

gregorydaval (Sat, 04 Apr 2020 15:59:47 GMT):
Okay alright, noted. How do I install the chaincode ?

gregorydaval (Sat, 04 Apr 2020 16:00:20 GMT):
Would it be this command : ./network.sh deployCC

Taaanos (Sat, 04 Apr 2020 16:00:30 GMT):
did you follow the tutorial here?

Taaanos (Sat, 04 Apr 2020 16:00:30 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html

gregorydaval (Sat, 04 Apr 2020 16:04:34 GMT):
I am still on the Getting Started section .. havent reached there as yet.

gregorydaval (Sat, 04 Apr 2020 16:04:45 GMT):
This is where I'm at : https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

Taaanos (Sat, 04 Apr 2020 16:04:58 GMT):
it's a more elaborate tutorial for what you are trying to do

Taaanos (Sat, 04 Apr 2020 16:05:51 GMT):
ok I see

gregorydaval (Sat, 04 Apr 2020 16:07:16 GMT):
Okay, what is the best suggestion ? Should I jump to the tutorial or try to solve this now ?

Taaanos (Sat, 04 Apr 2020 16:08:07 GMT):
yes, move on, you will get more in depth In the one that I sent you

gregorydaval (Sat, 04 Apr 2020 16:10:33 GMT):
Okay alright, noted.

SharedMocha (Sat, 04 Apr 2020 16:47:38 GMT):

x509: ECDSA verification failure when using AWS and AZURE

SharedMocha (Sat, 04 Apr 2020 16:48:49 GMT):
Hi, We have a fabric setup with two orgs and one orderer running kafka that is causing below error when using Amazon AWS and Microsoft Azure clouds. Error:- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0 More Information on the error :- Our setup uses both AWS and AZURE. *ORG1* nodes(2) and Orderer(CA ORG1, CA ORG 2) runs on two separate EC2 instances on AWS while *ORG 2* nodes(2) run on AZURE linux instances. This error happens in the orderer logs when ORG2 bring their nodes up in AZURE. If both orgs are using AWS EC2 instances then we are not seeing this error. In our case ORG1 generates all MSP using cryptogen and shares with both orgs I tried below ways but no luck in solving the error- 1. Open All traffic on all ports for setup 2. Update docker to 18.x CE edition 3. Clean all docker containers 4. https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#troubleshooting Our environment – Fabric – Using latest images ubuntu@ip-10-0-0-28:~$ docker --version Docker version 19.03.8, build afacb8b7f0 ubuntu@ip-10-0-0-28:~$ go version go version go1.12.8 linux/amd64 ubuntu@ip-10-0-0-28:~$ node --version v8.10.0 ubuntu@ip-10-0-0-28:~$ python --version Python 2.7.17 ubuntu@ip-10-0-0-28:~$ sudo docker-compose --version docker-compose version 1.18.0, build 8dd22a9 Am I missing something in setup ?

cryptopatrick (Sat, 04 Apr 2020 18:51:39 GMT):
Fabric 1.4.0 7.3 Build Your First Network tutorial *After running:* ./byfn.sh generate ./byfn.sh up *I'm getting this error after running:* Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded peer0.org1 failed to join the channel, Retry after 3 seconds Any ideas on how to troubleshoot this?

garyclark (Sat, 04 Apr 2020 19:32:45 GMT):
Is the peer port open? docker container ls

garyclark (Sat, 04 Apr 2020 19:33:06 GMT):
Can you telnet to 7051?

garyclark (Sat, 04 Apr 2020 19:33:33 GMT):
Is the port open on your firewall?

cryptopatrick (Sat, 04 Apr 2020 19:37:56 GMT):
Hi Gary! Thank you so much for helping! I'll have a look. 1 sec

garyclark (Sat, 04 Apr 2020 19:38:30 GMT):
I'm new to this myself just maybe a couple of step ahead.

cryptopatrick (Sat, 04 Apr 2020 19:41:35 GMT):
Yeah, well I was reading earlier today how you were helping another gentleman and thought to myself - thank god there's a guy like Gary around!

cryptopatrick (Sat, 04 Apr 2020 19:42:02 GMT):

Screenshot from 2020-04-04 21-39-56.png

cryptopatrick (Sat, 04 Apr 2020 19:42:26 GMT):
Okay, so: docker container ls gives this.

garyclark (Sat, 04 Apr 2020 19:42:53 GMT):
ok your peer is not right. Just the orderer which is listening on 7050.

garyclark (Sat, 04 Apr 2020 19:42:53 GMT):
ok your peer is not running. Just the orderer which is listening on 7050.

cryptopatrick (Sat, 04 Apr 2020 19:43:44 GMT):
My ect/hosts looks like this:

cryptopatrick (Sat, 04 Apr 2020 19:43:50 GMT):
orderer.example.com:7050 peer0.org1.example.com:7051 peer0.org2.example.com:7051

garyclark (Sat, 04 Apr 2020 19:45:08 GMT):
Thats ok. But your peer docker is not running.

garyclark (Sat, 04 Apr 2020 19:45:52 GMT):
you should have 2 peers running docker containers of the same organization.

cryptopatrick (Sat, 04 Apr 2020 19:45:57 GMT):
Okay. I'll have a look at byfn.sh and perhaps start.sh?

cryptopatrick (Sat, 04 Apr 2020 19:46:13 GMT):
Could there be a timeout issue?

garyclark (Sat, 04 Apr 2020 19:47:41 GMT):
Your running them all on the same machine. The only issue maybe you have to open up the port 7051 on firewall. These all run on the same machine.

garyclark (Sat, 04 Apr 2020 19:47:41 GMT):
Your running them all on the same machine. The only issue maybe you have to open up the port 7051 on firewall.

garyclark (Sat, 04 Apr 2020 19:48:15 GMT):
Its the tutorial right.

cryptopatrick (Sat, 04 Apr 2020 19:49:03 GMT):
Yes! Correct!

cryptopatrick (Sat, 04 Apr 2020 19:49:13 GMT):
I'll try that

garyclark (Sat, 04 Apr 2020 19:49:29 GMT):
So network issues I doubt. Should be straight out of the can.

garyclark (Sat, 04 Apr 2020 19:52:02 GMT):
what platform are you running on?

cryptopatrick (Sat, 04 Apr 2020 19:52:06 GMT):
I did: sudo ufw allow 7051/tcp But still getting the same problem. I'm on ubuntu 18.04 I'll dig around a bit and see if I can solve it based on it possibly being related to firewall and network

cryptopatrick (Sat, 04 Apr 2020 19:53:23 GMT):
I just remember I did a docker prune earlier - might wave wiped some container I needed.

garyclark (Sat, 04 Apr 2020 19:54:08 GMT):
Try this ./byfn.sh down.

garyclark (Sat, 04 Apr 2020 19:54:57 GMT):
Then generate and up again. There may be some clean up.

cryptopatrick (Sat, 04 Apr 2020 19:56:17 GMT):
Yeah, I tried that but it do much. I'll try to get all the necessary containers up and running first. Thanks! You've been super helpful!

garyclark (Sat, 04 Apr 2020 19:56:50 GMT):
Good luck. I'm online and found a nice little spot in my own hell lol.

cryptopatrick (Sat, 04 Apr 2020 20:00:40 GMT):
Haha! I'm just happy I found this chat! I'm new to HL and things are very different from what I've been doing in the past. Started reading the 500 pages docs and hope it will clear things up. Again, thanks!

garyclark (Sat, 04 Apr 2020 20:03:36 GMT):
Yeh there are alot more trees than what people need to onboard. V. painful.

cryptopatrick (Sat, 04 Apr 2020 20:10:50 GMT):
Yeah, it's been like hitting a brick wall - the tradeoffs for making things permissioned are non-trivial to say the least. Feature creep to accomodate for all stakeholders requirements is another thing. Anyway, I'm hoping to add a Flutter application once (if) I get this running - I'm really looking forward to that. Perhaps others here are also looking at how to add a webapp to a HL network.

garyclark (Sat, 04 Apr 2020 20:12:04 GMT):
Well good with that. Sounds good.

garyclark (Sat, 04 Apr 2020 20:12:04 GMT):
Well good luck with that. Sounds good.

gregorydaval (Sat, 04 Apr 2020 22:04:59 GMT):
Hi all - for the "Package the Smart Contract" section of the hyperledger docs

gregorydaval (Sat, 04 Apr 2020 22:05:16 GMT):
Do we have to package all three of the programming languages used ?

gregorydaval (Sat, 04 Apr 2020 22:05:33 GMT):
Or can we just work with one and then move to the next step ?

gregorydaval (Sat, 04 Apr 2020 22:05:49 GMT):
This section of the doc : https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html#package-the-smart-contract

AshutoshKumar7 (Sun, 05 Apr 2020 02:28:30 GMT):
you can go with any one as you can deploy same chaincode only once

gregorydaval (Sun, 05 Apr 2020 03:20:06 GMT):
Okay alright, thank you! @AshutoshKumar7

pritam_01 (Sun, 05 Apr 2020 08:25:27 GMT):
One question while creating fabric applications. which of these option do you prefer 1st giving user cert and they create transactions from client side. Or 2nd all the certs of users are stored in separate db with password protection and when user requests for any transactions it gets signed from their corresponding certs that are stored in db.

pablobonet (Sun, 05 Apr 2020 13:44:33 GMT):
Has joined the channel.

pablobonet (Sun, 05 Apr 2020 13:44:34 GMT):
Hi! I'm developing a project using as template the blockchain application in java (https://github.com/IBM/blockchain-application-using-fabric-java-sdk)

pablobonet (Sun, 05 Apr 2020 13:45:07 GMT):
I would like to implement ZKP (Idemix) on it, but I don't know where to use the IdemixEnrollment calls

pablobonet (Sun, 05 Apr 2020 13:45:40 GMT):
It's step 3 (https://hyperledger-fabric.readthedocs.io/en/release-2.0/idemix.html)

garyclark (Sun, 05 Apr 2020 15:09:52 GMT):
I just want to confirm on fabric 1.4. I have network with 3 orgs, each 1 peer separate machine. I have it working but now I am going to enable TLS: I want to ensure these are the correct environment variables to set:

garyclark (Sun, 05 Apr 2020 15:09:52 GMT):
I just want to confirm on fabric 1.4. I have network setup with 3 orgs, each 1 peer per machine. I have it working but now I am going to enable TLS: I want to ensure these are the correct environment variables to set:

garyclark (Sun, 05 Apr 2020 15:09:52 GMT):
I just want to confirm on fabric 1.4. I have network setup with 3 orgs, each 1 peer per org and each on its own machine. I can create channel, invoke and query, but now I am going to enable TLS: I want to ensure these are the correct environment variables to set:

garyclark (Sun, 05 Apr 2020 15:11:33 GMT):
On the peer: CORE_PEER_TLS_ENABLED,CORE_PEER_TLS_CERT_FILE,CORE_PEER_TLS_KEY_FILE,CORE_PEER_TLS_ROOTCERT_FILE

garyclark (Sun, 05 Apr 2020 15:14:24 GMT):
On the orderer: ORDERER_GENERAL_TLS_ENABLED, ORDERER_GENERAL_TLS_PRIVATEKEY,ORDERER_GENERALTLS_CERTIFICATE,ORDERER_GENERAL_TLS_ROOTCAS,ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY, ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE

garyclark (Sun, 05 Apr 2020 15:15:35 GMT):
On the Cli Peer: CORE_PEER_TLS_ENABLED, CORE_PEER_TLS_ROOTCERT_FILE, CORE_PEER_TLS_CERT_FILE, CORE_PEER_TLS_KEY_FILE

garyclark (Sun, 05 Apr 2020 16:52:55 GMT):
Any confirmation would be good.

musicmodes (Sun, 05 Apr 2020 17:39:27 GMT):
how can i set path to my files to local system instead of providing github path in cli tool

garyclark (Sun, 05 Apr 2020 18:44:40 GMT):
Are you using docker?

musicmodes (Sun, 05 Apr 2020 18:45:16 GMT):
yes sir

garyclark (Sun, 05 Apr 2020 18:48:42 GMT):
To map your local to machine directory to an internal docker path you -v /home/musicmodes/fabric:/etc/hyperleder/fabric. If you want to see the internal structure of the docker container you can use "/bin/bash" within the docker container.

garyclark (Sun, 05 Apr 2020 18:50:10 GMT):
Does that make sense?

garyclark (Sun, 05 Apr 2020 19:13:54 GMT):
To map your local to machine directory to an internal docker path you -v /home/musicmodes/fabric:/etc/hyperleder/fabric. If you want to see the internal structure of the docker container you can use "/bin/bash" within the docker container. Does that make sense?

musicmodes (Sun, 05 Apr 2020 19:16:32 GMT):
so should i change the path or what?

garyclark (Sun, 05 Apr 2020 19:45:35 GMT):
Could you expand on your original questtion? Are you talking about PATH variable?

vanitas92 (Sun, 05 Apr 2020 20:15:13 GMT):
You are good to go!

Mms 11 (Sun, 05 Apr 2020 20:22:29 GMT):
Has joined the channel.

Mms 11 (Sun, 05 Apr 2020 20:28:11 GMT):
Hello Guys, nice to meet you and join the Hyperledger community. I have a question regarding chaincode testing. I'm building a PoC in my company and I'm trying to setup some integration tests that would enable me to test the integration with the chaincode. As till now, I only found the following for any reference: https://github.com/hyperledger/fabric-chaincode-java/tree/master/fabric-chaincode-integration-test But not talking bad about the author, this is a rather poor way of testing a number of different actions/chaincodes. Especially that I would like to based my development on these tests also rather then re install a new version of the chaincode each time I would like to test the interaction. Do you guys know about any better approaches?

sytcodes (Mon, 06 Apr 2020 01:33:28 GMT):
Has joined the channel.

Amanullah68 (Mon, 06 Apr 2020 06:49:21 GMT):
Hi guys, I've created my own network by following building your own network documentation, I can't see certificate authority in docker-compose-cli.yaml file, I've to create a seperate yaml file for CA or anything else??

musicmodes (Mon, 06 Apr 2020 06:56:20 GMT):
yes sir instead of writing the github path how i can provide the path to my local files in my system

Amanullah68 (Mon, 06 Apr 2020 11:10:08 GMT):
Hi, got this error while running enrollAdmin.js file

Amanullah68 (Mon, 06 Apr 2020 11:10:11 GMT):
2020-04-06T11:03:38.975Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: write EPROTO 139823695808320:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: ], stack=Error: Calling enrollment endpoint failed with error [Error: write EPROTO 139823695808320:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: ] at ClientRequest.request.on (/home/mwan/mwan/hyperledger_fabric_1.4/my_first_network/blockchain/node_modules/fabric-ca-client/lib/FabricCAClient.js:487:12) at ClientRequest.emit (events.js:198:13) at TLSSocket.socketErrorListener (_http_client.js:392:9) at TLSSocket.emit (events.js:198:13) at errorOrDestroy (internal/streams/destroy.js:107:12) at onwriteError (_stream_writable.js:436:5) at onwrite (_stream_writable.js:461:5) at _destroy (internal/streams/destroy.js:49:7) at TLSSocket.Socket._destroy (net.js:614:3) at TLSSocket.destroy (internal/streams/destroy.js:37:8) Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: write EPROTO 139823695808320:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: ]

tulip26 (Mon, 06 Apr 2020 12:17:46 GMT):
Has joined the channel.

tulip26 (Mon, 06 Apr 2020 12:17:47 GMT):
@pablobonet were you able to get started with idemix? I am in same boat. let me know if you were able to get some useful material.

tulip26 (Mon, 06 Apr 2020 12:27:39 GMT):
Hi I need a few pointers to get started with Idemix. the basic configuration using an IdemixMSP, and how should I use it for verification? How can I get a user sign transactions with different presentation tokens and how the verification would work? Can someone please guide me using fabric-samples

tulip26 (Mon, 06 Apr 2020 12:27:39 GMT):
Hi I need a few pointers to get started with Idemix. the basic configuration using an IdemixMSP, and how should I use it for verification? How can I get a user sign transactions with different presentation tokens and how the verification would work? Can someone please guide me using fabric-samples. I have seen https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemix.html but I don't find here enough to get started as a beginner

garyclark (Mon, 06 Apr 2020 13:45:35 GMT):
Thanks I will give a whirl.

francoisch (Mon, 06 Apr 2020 14:59:13 GMT):
Has joined the channel.

GouthamB (Mon, 06 Apr 2020 15:05:29 GMT):
Has joined the channel.

GouthamB (Mon, 06 Apr 2020 15:05:32 GMT):
Hey guys, I am new to the field of Blockchain. Where can I get free tutorials on Fabric?

garyclark (Mon, 06 Apr 2020 15:37:22 GMT):
musicmodes what github path are talking about and where?

garyclark (Mon, 06 Apr 2020 16:59:14 GMT):
Seeing transport error when connecting to the orderer: X509 cannot validate certifcate 192.168.1.110 because it doesnt have IP SANS?

garyclark (Mon, 06 Apr 2020 16:59:38 GMT):
Attempting to connect to the orderer using TLS.

musicmodes (Mon, 06 Apr 2020 17:53:41 GMT):
while passing the commands through terminal we locate the github directory many times

musicmodes (Mon, 06 Apr 2020 17:54:23 GMT):
for ex:

musicmodes (Mon, 06 Apr 2020 17:54:28 GMT):
peer channel update -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

garyclark (Mon, 06 Apr 2020 18:01:38 GMT):
The docker compose files have these mappings in them. Docker does not know about your local directories unless you map them. Have a look at the docker compose files.

garyclark (Mon, 06 Apr 2020 18:02:19 GMT):
I will be honest I am new to this myself.

garyclark (Mon, 06 Apr 2020 18:03:00 GMT):
I think your going to down the same path I went down.

musicmodes (Mon, 06 Apr 2020 18:03:10 GMT):
yes sir so inorder to change the path to my local files i have to change the path or what

musicmodes (Mon, 06 Apr 2020 18:03:16 GMT):
yes sir

garyclark (Mon, 06 Apr 2020 18:04:43 GMT):
ok have a wee look at the docker-compose-cli.yaml file.

garyclark (Mon, 06 Apr 2020 18:05:14 GMT):
specificallly in this section: volumes

musicmodes (Mon, 06 Apr 2020 18:05:25 GMT):
ok sir

garyclark (Mon, 06 Apr 2020 18:05:35 GMT):
You should see what your seeking.

musicmodes (Mon, 06 Apr 2020 18:06:33 GMT):
i am seeing my organisations

garyclark (Mon, 06 Apr 2020 18:09:34 GMT):
Please look at the section "volumes"

musicmodes (Mon, 06 Apr 2020 18:12:12 GMT):

Screenshot from 2020-04-06 23-41-46.png

garyclark (Mon, 06 Apr 2020 18:39:27 GMT):
Are these directories on your machines?

garyclark (Mon, 06 Apr 2020 18:39:27 GMT):
Are these directories on your machine

musicmodes (Mon, 06 Apr 2020 18:39:51 GMT):
yes sir

garyclark (Mon, 06 Apr 2020 18:41:29 GMT):
So if your want to map these to be used in docker like orderer.model.com:/etc/hyperledger/fabric/orderer.model.com

musicmodes (Mon, 06 Apr 2020 19:05:43 GMT):
so in volumes only i have to mention this

garyclark (Mon, 06 Apr 2020 19:28:33 GMT):
In volumes it overlaying (mapping) your local volumes to the docker volumes.

icarrascol (Mon, 06 Apr 2020 20:00:41 GMT):
hello everyone, does anyone know how to handle the ledger size in production, considering that it only keeps growing and needs more storage, trying to put the ledger on an efs impacts on tps by a lot

garyclark (Mon, 06 Apr 2020 20:14:44 GMT):
How do you add IP SANS to be used by the cryptogen? I am seeing x509 cannot validate certificate for 192.168.1.110 (orderer machine) because it does not contain any IP SANS.

garyclark (Mon, 06 Apr 2020 20:15:35 GMT):
Enabling TLS.

garyclark (Mon, 06 Apr 2020 20:26:01 GMT):
Ok I think you just have to specify it in the crypto-config.yaml. Under specs is SANS section. An example showing this is in balance transfer fabric examples.

garyclark (Mon, 06 Apr 2020 20:44:15 GMT):
When regenerating the certificates and adding the SANS. I now see client didn't provide a certificate server=Orderer remoteaddress=192.168.1.120 (peer).

SharedMocha (Mon, 06 Apr 2020 21:31:19 GMT):
Getting 'the supplied identity is not valid: x509: certificate signed by unknown authority' in orderer logs. This is happening when 'Org 2' nodes are coming up - Anything i am missing ? Error- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0

SharedMocha (Mon, 06 Apr 2020 21:31:19 GMT):
Getting 'the supplied identity is not valid: x509: certificate signed by unknown authority' in orderer logs. This is happening when 'Org 2' nodes are coming up and trying to connecting to their corresponding certificate authority - Anything I am missing in setup? Error- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0

SharedMocha (Mon, 06 Apr 2020 21:31:19 GMT):
Getting 'the supplied identity is not valid: x509: certificate signed by unknown authority' in **orderer logs**. This is happening when 'Org 2' nodes are coming up and trying to connecting to their corresponding certificate authority - Anything I am missing in setup? Error- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0

SharedMocha (Mon, 06 Apr 2020 21:31:19 GMT):
Getting 'the supplied identity is not valid: x509: certificate signed by unknown authority' in **orderer logs**. This is happening when **'Org 2' nodes are coming up and trying to connecting to their corresponding certificate authority** - Anything I am missing in setup? Error- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0

cavellt (Tue, 07 Apr 2020 00:33:28 GMT):
Has joined the channel.

cavellt (Tue, 07 Apr 2020 00:34:55 GMT):
Hello, I've been having some issues adding a new organization to an existing channel, specifically during the channel configuration update transaction. The error I got is:

cavellt (Tue, 07 Apr 2020 00:34:55 GMT):
Hello, I've been having some issues adding a new organization to an existing channel, specifically during the channel configuration update transaction. The error I got is: Principal deserialization failure (MSP manufacturerMSP is unknown) for identity error applying config update to existing channel 'allchannel': error authorizing update: error validating DeltaSet: invalid mod_policy for element [Group] /Channel/Application/manufacturerMSP: mod_policy not set

Amanullah68 (Tue, 07 Apr 2020 05:57:20 GMT):
No one here to help

Amanullah68 (Tue, 07 Apr 2020 05:57:38 GMT):
What's the purpose of this channel??

hmoazzem (Tue, 07 Apr 2020 06:55:03 GMT):
Hi all, how'd you modify the contract https://github.com/hyperledger/fabric-contract-api-go/blob/master/tutorials/getting-started.md to return client ID when, say, `read` method is invoked? There's a `cid.GetID(stub)` method in https://github.com/hyperledger/fabric-chaincode-go/tree/master/pkg/cid but I can't seem to figure this out.

Amanullah68 (Tue, 07 Apr 2020 08:14:51 GMT):
got this error ' Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: write EPROTO 139856417335104:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:' while running enrollAdmin.js file

Amanullah68 (Tue, 07 Apr 2020 11:04:50 GMT):
Failed to register user "user1": Error: Common connection profile is missing this client's organization and certificate authority

Nikhil95 (Tue, 07 Apr 2020 13:26:08 GMT):
hi everyone, can you please help me with generating cert file and key file using openssl to be used for starting a root ca server?

Nikhil95 (Tue, 07 Apr 2020 13:26:35 GMT):
i tried using elliptic curves to do it but failed

Nikhil95 (Tue, 07 Apr 2020 13:27:06 GMT):
root ca throws errors saying the cert file (pub key) and the private key don't match

Nikhil95 (Tue, 07 Apr 2020 13:28:19 GMT):
i tested another matching pair but got a different error

robmurgai (Tue, 07 Apr 2020 14:02:11 GMT):
Hi Gautham, - I would start with this Document to understand the basics. https://hyperledger-fabric.readthedocs.io/en/release-2.0/whatis.html - Then start your first network https://hyperledger-fabric.readthedocs.io/en/release-2.0/getting_started.html If you are new to Blockchain, be patient :), there are several concepts and it takes a little reading and playing with things to figure stuff out. I would reading through the links and trying out test-network and then referencing the Key Concepts (https://hyperledger-fabric.readthedocs.io/en/release-2.0/key_concepts.html) and What_Is (https://hyperledger-fabric.readthedocs.io/en/release-2.0/whatis.html) links as you need.

robmurgai (Tue, 07 Apr 2020 14:02:11 GMT):
Hi Gautham, - I would start with this Document to understand the basics. https://hyperledger-fabric.readthedocs.io/en/release-2.0/whatis.html - Then start your first network https://hyperledger-fabric.readthedocs.io/en/release-2.0/getting_started.html If you are new to Blockchain, be patient :), there are several concepts and it takes a little reading and playing with things to figure stuff out. I would read through the links and trying out test-network and then referenc the Key Concepts (https://hyperledger-fabric.readthedocs.io/en/release-2.0/key_concepts.html) and What_Is (https://hyperledger-fabric.readthedocs.io/en/release-2.0/whatis.html) links as you need.

BrettLogan (Tue, 07 Apr 2020 14:39:19 GMT):
We are actively working on this. Follow https://github.com/hyperledger/fabric-rfcs/pulls and you should see a proposal appear here soonish. But the work is actively being performed now: https://jira.hyperledger.org/browse/FAB-106

BrettLogan (Tue, 07 Apr 2020 14:46:40 GMT):
People have limited resources. Especially right now with COVID-19, we are balancing work, and our families (including young children) now being at home 24/7. This is an open source support forum where any help is voluntary. If you want the greatest chance of success in getting your questions answered, stop posting questions that says "here's my error, how do I fix it?" Start posting what you've done up to that point, post the snippets of your client code that caused the problem, give us your compose files, attach full logs. As someone who works on fabric, we are the ones most able to help, but I'm not going to spend my limited time hunting down all the information I need to help you with your problem.

garyclark (Tue, 07 Apr 2020 14:47:45 GMT):
:thumbsup:

Ivankaramazov (Tue, 07 Apr 2020 17:44:52 GMT):
Has joined the channel.

Ivankaramazov (Tue, 07 Apr 2020 17:44:53 GMT):
i am getting error running first-network in fabric incomplete package: github.com/hyperledger/fabric-chaincode-go/shim

Ivankaramazov (Tue, 07 Apr 2020 17:45:37 GMT):
i am able to run using javascript but how to run using golang

BrettLogan (Tue, 07 Apr 2020 18:14:06 GMT):
can you do a `go get -u github.com/hyperledger/fabric-chaincode-go/shim` and then run it again, if it fails please post your log

BrettLogan (Tue, 07 Apr 2020 18:14:06 GMT):
can you do a `go get -u github.com/fabric-chaincode-go/shim` and then run it again, if it fails please post your log

Ivankaramazov (Tue, 07 Apr 2020 18:35:33 GMT):
# cd .; git clone https://github.com/fabric-chaincode-go/shim /home/zero/go/src/github.com/fabric-chaincode-go/shim Cloning into '/home/zero/go/src/github.com/fabric-chaincode-go/shim'... fatal: could not read Username for 'https://github.com': terminal prompts disabled package github.com/fabric-chaincode-go/shim: exit status 128

BrettLogan (Tue, 07 Apr 2020 18:36:09 GMT):
Missed the org when I typed the command, sorry

BrettLogan (Tue, 07 Apr 2020 18:36:12 GMT):
Copy again

Ivankaramazov (Tue, 07 Apr 2020 18:37:24 GMT):
where should "org " come

BrettLogan (Tue, 07 Apr 2020 18:37:36 GMT):
I missed `hyperledger`

BrettLogan (Tue, 07 Apr 2020 18:37:47 GMT):
I edited the above command to include it

Ivankaramazov (Tue, 07 Apr 2020 18:54:31 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

BrettLogan (Tue, 07 Apr 2020 18:55:10 GMT):
what command are you running to start it, you need to stop the network first so it can destroy the artifacts

BrettLogan (Tue, 07 Apr 2020 18:55:16 GMT):
and then start it again

Ivankaramazov (Tue, 07 Apr 2020 19:01:05 GMT):
to start : ./byfn.sh up and to stop : ./byfn.sh down

Ivankaramazov (Tue, 07 Apr 2020 19:02:07 GMT):
i am getting this error again Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!

BrettLogan (Tue, 07 Apr 2020 19:03:28 GMT):
can you do an `echo $GOPATH`

BrettLogan (Tue, 07 Apr 2020 19:04:27 GMT):
and are you on 1.4 or 2.0 fabric?

Ivankaramazov (Tue, 07 Apr 2020 19:07:48 GMT):
"/usr/local/go" and fabric 2.0

BrettLogan (Tue, 07 Apr 2020 19:20:43 GMT):
and what is the path to your `fabric-samples`

Ivankaramazov (Tue, 07 Apr 2020 19:24:42 GMT):
" home/z/hyperledger/fabric-sample

Ivankaramazov (Tue, 07 Apr 2020 19:44:37 GMT):
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim this is the error i am getting , ignore the last one

BrettLogan (Tue, 07 Apr 2020 20:22:52 GMT):
Are you windows?

BrettLogan (Tue, 07 Apr 2020 20:22:52 GMT):
Are you on Windows?

SharedMocha (Tue, 07 Apr 2020 20:59:44 GMT):
Getting 'the supplied identity is not valid: x509: certificate signed by unknown authority' in orderer logs. This is happening when 'Org 2' nodes are coming up and trying to connecting to their corresponding certificate authority - Anything I am missing in setup? Error- 2020-04-03 18:15:53.474 UTC [cauthdsl] deduplicate -> ERRO 0ff Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")) for identity 0

BrettLogan (Wed, 08 Apr 2020 04:13:29 GMT):
Generally this is cause by not putting the fqdn in the SANS section of your crypto-config you generated

Amanullah68 (Wed, 08 Apr 2020 06:27:55 GMT):
Error: Common connection profile is missing this client's organization and certificate authority

Amanullah68 (Wed, 08 Apr 2020 06:28:24 GMT):
got this error when run registerUser.js file

JayJong (Wed, 08 Apr 2020 07:49:31 GMT):
Any faced this error before? this happens when i try to invoke, seems like the peer does not have permissions to receive the block `2020-04-07 18:16:48.757 UTC [common.deliver] deliverBlocks -> WARN cfdb [channel: mychannel] Client authorization revoked for deliver request from 10.32.0.1:21549: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied `

JayJong (Wed, 08 Apr 2020 07:49:31 GMT):
Any faced this error before? this happens when i try to invoke, seems like the peer does not have permissions to receive the block `2020-04-07 18:16:48.757 UTC [common.deliver] deliverBlocks -> WARN cfdb [channel: mychannel] Client authorization revoked for deliver request from 10.32.0.1:21549: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied`

JayJong (Wed, 08 Apr 2020 07:49:31 GMT):
Any faced this error before? this happens when i try to invoke, seems like the peer does not have permissions to receive the block, how do i solve this? `2020-04-07 18:16:48.757 UTC [common.deliver] deliverBlocks -> WARN cfdb [channel: mychannel] Client authorization revoked for deliver request from 10.32.0.1:21549: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied`

nitishbhardwaj19 (Wed, 08 Apr 2020 08:55:14 GMT):
Documentation says that RSA keys are not supported for identity certs (keystore and signcerts). But is it supported for TLS Certs?

Mms 11 (Wed, 08 Apr 2020 12:18:38 GMT):
Can someone help me with the orderer configtxgen setup ? I'm trying to generate the genesis block for SampleMultiNodeEtcdRaft profile from the first-network I'm getting `Error reading configuration: Unsupported Config Type ""`

Marc87 (Wed, 08 Apr 2020 14:31:49 GMT):

2020-04-08T13_47_45_418Z-debug.log

Marc87 (Wed, 08 Apr 2020 14:31:53 GMT):
I'm trying the tutorial release 2.0 write your first application but I get an error when I enter the command: npm install. this is a log of error:

Marc87 (Wed, 08 Apr 2020 15:13:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=4aj9vQkyoKpMeue7J) I'm trying the tutorial release 2.0 write your first application but I get an error when I enter the command: npm install. this is a log of error:

lepar (Wed, 08 Apr 2020 16:06:30 GMT):
@Marc87 what is your npm version?

lepar (Wed, 08 Apr 2020 16:06:58 GMT):
@Mms 11 most likely it's an identantation error

lepar (Wed, 08 Apr 2020 16:08:44 GMT):
@JayJong make sure the config path is set for the CORE_PEER_MSPCONFIGPATH is set to an Admin. For example: /etc/hyperledger/crypto-config/peerOrganizations/users/Admin@peer.com/msp

JayJong (Wed, 08 Apr 2020 16:32:42 GMT):
@lepar lets move our convo here. I think u are right about the CORE_PEER_MSPCONFIGPATH but can i ask u something about msp and ROLES, so there's 4 roles(peer, orderer, admin, client), am i right to say this is how they correspond: admin - /etc/hyperledger/crypto-config/peerOrganizations/org1.example.com/users/Admin@peer.com/msp peer - /etc/hyperledger/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp orderer - /etc/hyperledger/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp client - by default if role is not defined

lepar (Wed, 08 Apr 2020 16:38:48 GMT):
Yup, that's correct

arsulegai (Wed, 08 Apr 2020 18:10:37 GMT):
Has joined the channel.

arsulegai (Wed, 08 Apr 2020 18:10:54 GMT):
Is block pruning applicable for validated ledger as well along with the PeerLedger? Can somebody please point me to the corresponding 2.0 release documentation?

JayJong (Wed, 08 Apr 2020 19:34:11 GMT):
@lepar i seem to have this error when im creating the block `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` i cant seem to solve this

lepar (Wed, 08 Apr 2020 19:42:21 GMT):
Check the configtx.yaml and make sure there are Writers sub policy for the org

garyclark (Wed, 08 Apr 2020 19:52:56 GMT):
what line do you have when your creating your genesis block?

lepar (Wed, 08 Apr 2020 19:53:47 GMT):
Are you on version 1.4 or 2.0?

garyclark (Wed, 08 Apr 2020 19:55:50 GMT):
https://stackoverflow.com/questions/54716671/failed-to-reach-implicit-threshold-of-1-sub-policies-required-1-remaining-perm

garyclark (Wed, 08 Apr 2020 19:56:00 GMT):
Have a wee look at that.

garyclark (Wed, 08 Apr 2020 19:58:09 GMT):
I went down the same rabbit hole.

lepar (Wed, 08 Apr 2020 20:04:48 GMT):
Are you on version 1.4 or 2.0?

JayJong (Thu, 09 Apr 2020 03:13:46 GMT):
@lepar im using 2.0.1 for peer & orderer images but my capabilities in configtx.yaml is as follows: Channel: &ChannelCapabilities V1_4_3: true Orderer: &OrdererCapabilities V1_4_2: true Application: &ApplicationCapabilities V1_4_2: true

JayJong (Thu, 09 Apr 2020 03:13:46 GMT):
@lepar im using 2.0.1 for peer & orderer images but my capabilities in configtx.yaml are as follows: Channel: &ChannelCapabilities V1_4_3: true Orderer: &OrdererCapabilities V1_4_2: true Application: &ApplicationCapabilities V1_4_2: true

JayJong (Thu, 09 Apr 2020 03:16:45 GMT):
@garyclark `configtxgen -profile TwoOrgsOrdererGenesis -outputBlock $GENESIS_BLOCK_FILE -channelID first-sys-channel` `configtxgen -profile TwoOrgsChannel -outputCreateChannelTx $CHANNEL_TX_FILE -channelID mychannel` Yes i have seen that stackoverflow but it doesnt help

JayJong (Thu, 09 Apr 2020 03:16:45 GMT):
@garyclark `configtxgen -profile TwoOrgsOrdererGenesis -outputBlock $GENESIS_BLOCK_FILE -channelID first-sys-channel` `configtxgen -profile TwoOrgsChannel -outputCreateChannelTx $CHANNEL_TX_FILE -channelID mychannel` Yes i have seen that stackoverflow but it doesnt help

JayJong (Thu, 09 Apr 2020 04:39:06 GMT):
`2020-04-09 04:31:35.017 UTC [cauthdsl] func2 -> DEBU bde 0xc000dae2e0 identity 0 does not satisfy principal: The identity is not valid under this MSP [Orgorderer1MSP]: could not validate identity's OUs: certifiersIdentifier does not match: [orderer(E4C8E3A85E9364EB) org1(E4C8E3A85E9364EB)], MSP: [Orgorderer1MSP]`

lepar (Thu, 09 Apr 2020 04:48:55 GMT):
First, there's a difference between 1.4 and 2.0. Don't try to mix them together.

lepar (Thu, 09 Apr 2020 04:49:03 GMT):
Very big difference

JayJong (Thu, 09 Apr 2020 04:49:55 GMT):
im trying to use the old chaincode lifecycle with fabric2.0, it says that it is supported

lepar (Thu, 09 Apr 2020 04:52:27 GMT):
Version 1.4. to 2.0 changed the chaincode lifescycle. It'll never work

BrettLogan (Thu, 09 Apr 2020 05:15:00 GMT):
1.4 lifecycle is still supported in 2.0, as long as you haven't enabled 2.0 lifecycle at any point.

BrettLogan (Thu, 09 Apr 2020 05:15:24 GMT):
You can't go backwards though. Once 2.0 is enabled, that's it

JayJong (Thu, 09 Apr 2020 05:39:32 GMT):
@BrettLogan sorry for the confusion, now my error is with regards to the creation of channel, i think it shld not have been affected by the chaincode process

banoris (Thu, 09 Apr 2020 06:53:03 GMT):
Has joined the channel.

PamudithaNavaratne (Thu, 09 Apr 2020 07:20:09 GMT):
Hi Guys, Im trying to develop a network with 3 organizations, which i have done by changing the configuration files, the network is running without any issue,. HOWEVER the chain code does not save data in my couch db. Any ideas what i should check?

nkalichynskyi (Thu, 09 Apr 2020 07:32:11 GMT):
Has joined the channel.

akkolwalkar (Thu, 09 Apr 2020 08:46:06 GMT):
Has joined the channel.

akkolwalkar (Thu, 09 Apr 2020 08:47:06 GMT):
is anyone using hyperledger compose? I am a newbie what is that hyperledger compose does which hyper ledger fabric doesn't?

ascatox (Thu, 09 Apr 2020 08:51:25 GMT):
Hi All I've 4 Orgs in my HLF installation, I need an orderer for each Org? Thanks for the answers.

Amanullah68 (Thu, 09 Apr 2020 10:02:33 GMT):
Hi, facing this error while deploying contract using node.js 'UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined'

davidkel (Thu, 09 Apr 2020 10:13:56 GMT):
Hyperledger Composer is now end of life so you won't want to use it

Amanullah68 (Thu, 09 Apr 2020 11:02:24 GMT):
[ERROR] install-chaincode - Failed to install due to:Error: Invalid common connection profile due to missing configuration data

akkolwalkar (Thu, 09 Apr 2020 11:23:22 GMT):
yes I am aware hence how would you work with smart contracts?

davidkel (Thu, 09 Apr 2020 11:34:28 GMT):
Not sure I understand the question, wouldn't you just use hyperledger fabric ?

akkolwalkar (Thu, 09 Apr 2020 12:57:34 GMT):
why was composer there then if fabric could have smart contracts?

davidkel (Thu, 09 Apr 2020 13:02:21 GMT):
Composer provided a definition of a business network. It was a framework for implementing a common smart contract pattern with it's own smart contract api and client apis. It also provided development tools and a rest server implementation. It was technically independent of the underlying DLT but the only DLT it had plugins for were hyperledger fabric

caduellery (Thu, 09 Apr 2020 13:56:27 GMT):
Has left the channel.

garyclark (Thu, 09 Apr 2020 13:59:53 GMT):
When creating the genesis block did you remove the -channelD first-sys-channel?

Mms 11 (Thu, 09 Apr 2020 14:16:11 GMT):
Thanks man, Found out that the configtxgen needs for generating the genesis block the FABRIC_CFG_PATH variable set.

Mms 11 (Thu, 09 Apr 2020 14:18:51 GMT):
Question, to the experienced. How do you generate your entity id's inside the chaincode. For example I would like to make the fabcar store new cars and make an id for each new car. I have this problem that by using the uuid generator it produces for me a random value each time I call it. So each peer will get a different value. I'm thinking of using a hashcode function but maybe there is a better production ready approach. I don't want to pass the id from the outside world

BrettLogan (Thu, 09 Apr 2020 16:56:34 GMT):
What data would you hash over to create the unique ID? You are trying to create determinism from entropy

BrettLogan (Thu, 09 Apr 2020 16:56:34 GMT):
What data would you hash over to create the unique ID? You are trying to create determinism from randomness

Taaanos (Thu, 09 Apr 2020 17:02:56 GMT):
also interested in this. Are the fields of the car enough for this? It would be nice to be able to refer to the block that this car create invoke was included. Is it possible to get the transaction id that invoked this create?

Daniil (Thu, 09 Apr 2020 17:33:38 GMT):
Has joined the channel.

Daniil (Thu, 09 Apr 2020 17:33:39 GMT):
Hi, I tried to run a test-network and after the command (./byfn.sh generate) the terminal returns the error: [common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID' ... Failed to generate orderer genesis block Help

Daniil (Thu, 09 Apr 2020 17:33:39 GMT):
Hi, I tried to run a test-network and after the command (./byfn.sh generate) the terminal returns the error: [common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID' Failed to generate orderer genesis block Help

Daniil (Thu, 09 Apr 2020 17:33:39 GMT):
Hi, I tried to run a test-network and after the command (./byfn.sh generate) the terminal returns the error: [common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID' Failed to generate orderer genesis block Help.

MumtahinHabib (Thu, 09 Apr 2020 17:53:03 GMT):
Has joined the channel.

MumtahinHabib (Thu, 09 Apr 2020 17:53:04 GMT):
I was following the hyperledger documentation and was trying to run the test network ,but found following type of error: deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... ~/fabric-samples/chaincode/fabcar/go ~/fabric-samples/test-network scripts/deployCC.sh: line 24: go: command not found ~/fabric-samples/test-network Finished vendoring Go dependencies Using organization 1 ++ peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/go/ --lang golang --label fabcar_1 ++ res=1 ++ set +x Error: failed to normalize chaincode path: failed to determine module root: exec: "go": executable file not found in $PATH !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!! can someone please help me?

Mms 11 (Thu, 09 Apr 2020 19:44:44 GMT):
The fields that make the object is one of the examples. This may not be ideal. Because there maybe two identical objects, but one would like to have them divided by id. This would be much harder. The second idea I had would be a sequence list that each peer would produce on its own and take the next value (same as a db seq.)

Mms 11 (Thu, 09 Apr 2020 19:44:44 GMT):
The fields that make the object is one of the examples. This may not be ideal. There may be two identical objects, but one would like to have them divided by id. This would be much harder. The second idea I had would be a sequence list that each peer would produce on its own and take the next value (same as a db seq.)

BrettLogan (Thu, 09 Apr 2020 19:50:15 GMT):
How would the peer produce the sequence list?

BrettLogan (Thu, 09 Apr 2020 19:50:33 GMT):
It can't query the existing DB to get the last sequence

Mms 11 (Thu, 09 Apr 2020 19:50:37 GMT):
are you sure you have Go in path installed ?

BrettLogan (Thu, 09 Apr 2020 19:50:40 GMT):
And it can't store it in memory

BrettLogan (Thu, 09 Apr 2020 19:50:40 GMT):
And it can't store it in state

Mms 11 (Thu, 09 Apr 2020 19:51:10 GMT):
why wouldn't it get the last state from the db ?

BrettLogan (Thu, 09 Apr 2020 19:51:38 GMT):
Because, each peer maintains a copy of the DB, there is no guarantee that every peer has committed that block yet

Mms 11 (Thu, 09 Apr 2020 19:52:02 GMT):
ahh..

Mms 11 (Thu, 09 Apr 2020 19:52:08 GMT):
right. no transations :D

Mms 11 (Thu, 09 Apr 2020 19:52:08 GMT):
right. no transactions :D

BrettLogan (Thu, 09 Apr 2020 19:52:15 GMT):
So peer2 might not know of car09's existence...yet

Mms 11 (Thu, 09 Apr 2020 19:58:24 GMT):
alright, so preferred or most common approach is to give possibility to determine the entity identifier from out side the system ? It's the easiest but also puts a lot of responsibilities to the offchain systems to be sure that this key is unique.

Mms 11 (Thu, 09 Apr 2020 20:01:47 GMT):
Also are you using the cli -> fabric-tool image. If so, check the command there (`docker exec -it cli /bin/bash`, and call the line from there) Go enviroment should be installed there in my opionion. Else, check that you have Go on your PATH, the error states that you dont have the executable on the PATH

musicmodes (Thu, 09 Apr 2020 20:11:20 GMT):
how can i install my own chaincode on byfn

Mms 11 (Thu, 09 Apr 2020 20:30:53 GMT):
check that script and adopt it: https://github.com/hyperledger/fabric-samples/blob/master/first-network/scripts/script.sh#L98-141

musicmodes (Thu, 09 Apr 2020 20:32:30 GMT):
Actually i want to know where i have to make the changes in files

Mms 11 (Thu, 09 Apr 2020 20:45:57 GMT):
How do you guys setup the network and your chaincodes, are you building multiple chaincodes or trying to reduces to the maximum? I build a very basic network with chaincodes, two orgs, one peer per each org, two raft orders all that in a single channel. With this setup I noticed a big decrease in performance (both my machine but primarily the network). When I'm deploying and instantiating the second chaincode I see the fall in performance. I can build the poc with only one chaincode deployed, but I was hoping for a more DDD approach, making each chaincode encapsulating the business domain. Also, is the first-network example one that may have many configuration flaws? I based my setup on this example and as mentioned my machine gets it's ass beaten (I have a 16GB MacBookPro, so not the worst).

Mms 11 (Thu, 09 Apr 2020 20:46:25 GMT):
What do you mean? Where is the chaincode ?

musicmodes (Thu, 09 Apr 2020 20:47:25 GMT):
i have modifies the pre existing chaincode in the fabric samples

musicmodes (Thu, 09 Apr 2020 20:47:44 GMT):
now i just want to install on the peers

musicmodes (Thu, 09 Apr 2020 20:48:23 GMT):
so do i have to set the path and how can i do it

Mms 11 (Thu, 09 Apr 2020 20:49:31 GMT):
which sample: fabcar or commercial paper

musicmodes (Thu, 09 Apr 2020 20:49:54 GMT):
first network

musicmodes (Thu, 09 Apr 2020 20:50:17 GMT):
it is using the chaincode and i have modified it

Mms 11 (Thu, 09 Apr 2020 21:02:41 GMT):
I see it uses the chaincode from the folder ../chaincode/abstore/go

Mms 11 (Thu, 09 Apr 2020 21:02:51 GMT):
https://github.com/hyperledger/fabric-samples/blob/master/first-network/byfn.sh#L179

xiedezi (Fri, 10 Apr 2020 06:32:40 GMT):
Has joined the channel.

xiedezi (Fri, 10 Apr 2020 06:32:41 GMT):
2020-04-10 05:31:48.474 UTC [lifecycle] Work -> WARN 0f0 could not launch chaincode 'mycc_2:67258137900254a3955ccf5c61354888e446488fdf7a0ecf4fc8499ed5d0b6fd': chaincode registration failed: container exited with 0

ascatox (Fri, 10 Apr 2020 07:37:14 GMT):
Hi All' Im trying to commit a chaincode in HLF 2.0 but always I receive the same errror `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`

ascatox (Fri, 10 Apr 2020 07:37:14 GMT):
Hi All' Im trying to commit a chaincode in HLF 2.0 but always I receive the same errror `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)` `implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Endorsement' sub-policies to be satisfied`

ascatox (Fri, 10 Apr 2020 07:37:21 GMT):
Someone can help me?

genggjh (Fri, 10 Apr 2020 07:50:36 GMT):
Has joined the channel.

Mms 11 (Fri, 10 Apr 2020 08:16:34 GMT):
So I fixed that by checking what my orderes are doing (check if all your orders are working, and have been configured by the genesis.block correctly )

Mms 11 (Fri, 10 Apr 2020 08:16:49 GMT):
you can do it by docker logs

Mms 11 (Fri, 10 Apr 2020 08:18:11 GMT):
you may have some issues with the setup also (I had my genesis.block linked incorrectly to the docker container and later the certificates where invalidly created for admins that should have rights to setup the network)

ShobhitSrivastava (Fri, 10 Apr 2020 08:45:33 GMT):
same issue to me, is your peer able to join a channel? Or before that are you able to create a channel block

ascatox (Fri, 10 Apr 2020 08:46:13 GMT):
my peer ha correctly joined the channel

ascatox (Fri, 10 Apr 2020 08:46:37 GMT):
ma when I try to install a chaincode

ascatox (Fri, 10 Apr 2020 08:46:55 GMT):
in the commit phase this error arises.

ShobhitSrivastava (Fri, 10 Apr 2020 08:47:02 GMT):
okay whenever I am trying to create a channel block, i am getting below error

ShobhitSrivastava (Fri, 10 Apr 2020 08:47:03 GMT):
2020-04-10 08:27:23.672 UTC [orderer.common.broadcast] ProcessMessage -> WARN 014 [channel: mainchannel] Rejecting broadcast of config message from 172.18.0.11:39126 because of error: config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied 2020-04-10 08:27:23.673 UTC [comm.grpc.server] 1 -> INFO 015 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.11:39126 grpc.code=OK grpc.call_duration=2.345744ms 2020-04-10 08:27:23.676 UTC [common.deliver] Handle -> WARN 016 Error reading from 172.18.0.11:39124: rpc error: code = Canceled desc = context canceled

Amanullah68 (Fri, 10 Apr 2020 10:37:55 GMT):
Hi What to replace here let config = '-connection-profile-path';

MumtahinHabib (Fri, 10 Apr 2020 12:03:51 GMT):
@Mms 11 Yeah there was problem in path setting. tnx for your help

MumtahinHabib (Fri, 10 Apr 2020 12:53:21 GMT):
which ide is good for writing fabric smart contract?

BrettLogan (Fri, 10 Apr 2020 14:48:04 GMT):
VSCode, we (IBM) have an incredible extension for helping you develop smart contracts. It provides you templates, as well as the ability to standup a Fabric network for you and submit transactions to test your contract on the network right from the UI

BrettLogan (Fri, 10 Apr 2020 14:48:34 GMT):
https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

BrettLogan (Fri, 10 Apr 2020 14:50:30 GMT):
Did you check the logs of the chaincode and peer containers to see what happened

garyclark (Fri, 10 Apr 2020 15:31:06 GMT):
Using 1.4 Fabric. Enabled TLS. I can install chaincode on the remote peer. Its not complaining about instantiation from the cli. On the remore Peer I can that its indicating that it has installed chaincode. However when attempting to perform an invoke I am seeing the response status:500 message "make sure the chaincode fabcar has been successfully instantiated'. On the remote peer "Error verifying block with sequence number 1, due to No such policy: 'Orderer/BlockValidation'. Any ideas on this?

garyclark (Fri, 10 Apr 2020 15:31:06 GMT):
Using 1.4 Fabric. Enabled TLS. I can install chaincode on the remote peer. Its not complaining about instantiation from the cli. On the remote Peer I can that its indicating that it has installed chaincode. However when attempting to perform an invoke I am seeing the response status:500 message "make sure the chaincode fabcar has been successfully instantiated'. On the remote peer "Error verifying block with sequence number 1, due to No such policy: 'Orderer/BlockValidation'. Any ideas on this?

MumtahinHabib (Fri, 10 Apr 2020 15:49:12 GMT):
I was trying Hyper ledger go contract api documentation. here I was trying to run the chaincode. there was a note, Note: ensure you have the correct permissions configured on your contract-tutorial folder for docker to create files there. Running chmod -R 766 should set the correct permission levels.

MumtahinHabib (Fri, 10 Apr 2020 15:49:12 GMT):
I was trying Hyper ledger go contract api documentation. here I was trying to run the chaincode. there was a note, Note: ensure you have the correct permissions configured on your contract-tutorial folder for docker to create files there. Running chmod -R 766 should set the correct permission levels. I run that given command chmod -R 766 but then again while i tried go build, it showed permission denied

MumtahinHabib (Fri, 10 Apr 2020 15:49:12 GMT):
I was trying Hyper ledger go contract api documentation. here I was trying to run the chaincode. there was a note, Note: ensure you have the correct permissions configured on your contract-tutorial folder for docker to create files there. Running chmod -R 766 should set the correct permission levels. I run that given command chmod -R 766 but then again while i tried go build, it showed permission denied as following: go: writing go.sum: open /opt/gopath/src/chaincode/contract-tutorial/go.sum376246724.tmp: permission denied

Mms 11 (Fri, 10 Apr 2020 15:52:41 GMT):
How do you guys setup the network and your chaincodes, are you building multiple chaincodes or trying to reduces to the maximum? I build a very basic network with chaincodes, two orgs, one peer per each org, two raft orders all that in a single channel. With this setup I noticed a big decrease in performance (both my machine but primarily the network). When I'm deploying and instantiating the second chaincode I see the fall in performance. I can build the poc with only one chaincode deployed, but I was hoping for a more DDD approach, making each chaincode encapsulating the business domain. Also, is the first-network example one that may have many configuration flaws? I based my setup on this example and as mentioned my machine gets it's ass beaten (I have a 16GB MacBookPro, so not the worst).

Adhavpavan (Fri, 10 Apr 2020 16:35:10 GMT):
Hello Everyone, I am using fabric 2.0 and I have 3 orderers. When I run these services(RAFT orderers) they are not electing any leader among them. Error log form orderer 1: [orderer.consensus.etcdraft] logSendFailure -> ERRO 020 Failed to send StepRequest to 3, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 172.21.0.4:9050: connect: connection refused" channel=sys-channel node=1 The weird thing is when I run the same services with orderer image:1.4.4, It's working fine. Find the docker services here- https://www.codepile.net/raw/d2lN4zk3.js

garyclark (Fri, 10 Apr 2020 17:17:27 GMT):
Has anyone seen the error "Error verifying block with sequence number 1, due to No such policy : Orderer/Bloc Validation'. A peer is seeing this when attempting to add an anchor"? Any ideas. I have enabled TLS.

garyclark (Fri, 10 Apr 2020 17:17:27 GMT):
Has anyone seen the error "Error verifying block with sequence number 1, due to No such policy : Orderer/Bloc Validation'. A peer is incurring this when attempting to add an anchor"? Any ideas. I have enabled TLS on fabric 1.4.

garyclark (Fri, 10 Apr 2020 18:49:55 GMT):
I think I should change the the configtx.yaml file?

garyclark (Fri, 10 Apr 2020 21:56:11 GMT):
The problem was that the crypto-config Orderer channel needed a "BlockValidation" section.

chintanr11 (Sat, 11 Apr 2020 07:54:35 GMT):
Did you try running the first-network from the master branch using 2.0.0 fabric images?

nitishbhardwaj19 (Sat, 11 Apr 2020 07:55:01 GMT):
can anyone please specify the usage of this image: https://hub.docker.com/r/hyperledger/fabric-ca-peer?

Amanullah68 (Sat, 11 Apr 2020 08:55:39 GMT):
help me please

Amanullah68 (Sat, 11 Apr 2020 08:55:39 GMT):
I got this error when deploying contract '[ERROR] install-chaincode - Error: Invalid common connection profile due to missing configuration data'

Amanullah68 (Sat, 11 Apr 2020 08:55:40 GMT):
help much appreciated, thanks adv.

musicmodes (Sat, 11 Apr 2020 11:27:00 GMT):
i have run the byfn successfully but now i have made some changes in the chaincode and its not working

AbhijeetSamanta (Sat, 11 Apr 2020 16:08:46 GMT):
I need one help as I have confusion in one condition let's user register and enroll to the network and it's secret which is generate at time of registration saved in mongodb but somehow it's wallet got deleted so we need to register the user again or we can get wallet again just enroll user again with same secret?

garyclark (Sat, 11 Apr 2020 17:11:26 GMT):
I this one of the tutorials?

garyclark (Sat, 11 Apr 2020 17:11:26 GMT):
Is this one of the tutorials where you enroll an admin and register the user?

garyclark (Sat, 11 Apr 2020 17:13:36 GMT):
what is not working?

musicmodes (Sat, 11 Apr 2020 18:45:16 GMT):
my new chaincode

musicmodes (Sat, 11 Apr 2020 18:46:00 GMT):
so how can i install my own chaincode instead of the chaincode provided in the byfn

musicmodes (Sat, 11 Apr 2020 18:46:52 GMT):
where i need to make the changes in files or do i need to change the gopath or what

garyclark (Sat, 11 Apr 2020 21:09:36 GMT):
Are you running the first-network example?

Adhavpavan (Sun, 12 Apr 2020 03:58:42 GMT):
@chintanr11 , yes I tried with first network and test network as well, therer is only one raft orderer. when we create genesis block, thats it, we can start orderer so that they choose leader and start communication(even the whole network is not up, leader can send heartbeat message to followers continuously).

Adhavpavan (Sun, 12 Apr 2020 04:02:39 GMT):
@garyclark I have created all cryptomaterial using cryptogen tool. then generated genesis block, later I just starting orderers only to check communication between them(checking if leader is getting selected properly).

tulip26 (Sun, 12 Apr 2020 06:13:56 GMT):
idemix

chintanr11 (Sun, 12 Apr 2020 06:31:26 GMT):
In the first-network, there 5 ordering service nodes ..that become part of the RAFT cluster as far as I am sure. Also, when you are trying to build the network with 3 orderers, what is the configtx.yaml of yours? Can you link it here?

chintanr11 (Sun, 12 Apr 2020 06:31:26 GMT):
In the first-network, there are 5 ordering service nodes ..that become part of the RAFT cluster as far as I am sure. Also, when you are trying to build the network with 3 orderers, what is the configtx.yaml of yours? Can you link it here?

chintanr11 (Sun, 12 Apr 2020 06:33:18 GMT):
You can use one of the chaincodes in the fabric-sample repos. Try installing the fabcar chaincode from there ..onto your first network (ran by byfn.sh script)

chintanr11 (Sun, 12 Apr 2020 06:35:38 GMT):
Are you using any SDK to perform the install chaincode operation? If so, then please check the connection profile that you are supplying to connect to the network.

KuldeepSrivastava (Sun, 12 Apr 2020 06:52:10 GMT):
Has joined the channel.

KuldeepSrivastava (Sun, 12 Apr 2020 06:52:12 GMT):
Hello everyone, i got this error while invoking the chaincode `Error: endorsement failure during invoke. response: status:500 message:"failed to execute transaction ee0240822a56fc6ab8b140ee211a60ebbef3e539936d012a79f5739e3037f992: error sending: chaincode stream terminated" ` . Any help? Any reason?

chintanr11 (Sun, 12 Apr 2020 07:01:13 GMT):
What are your peer logs? Are you performing benchmarking tests?

KuldeepSrivastava (Sun, 12 Apr 2020 07:05:25 GMT):
logs here:

2020-04-12 06:34:59.002 UTC [endorser] callChaincode -> INFO 121 [mychannel][ee024082] Exit chaincode: name:"mycc4"  (42ms)
2020-04-12 06:34:59.002 UTC [endorser] SimulateProposal -> ERRO 122 [mychannel][ee024082] failed to invoke chaincode name:"mycc4" , error: chaincode stream terminated
github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1269
github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:313
github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:302
github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239
github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute
	/opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:147
github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode
	/opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:146
github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal
	/opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:247
github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal
	/opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:500
github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal
	/opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61
github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal
	/opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32
github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler.func1
	/opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:169
github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:31
github.com/hyperledger/fabric/core/comm.(*Throttle).UnaryServerIntercptor
	/opt/gopath/src/github.com/hyperledger/fabric/core/comm/throttle.go:54
github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1
	/opt/gopath/src/github.com/hyperledger/fabric/common/grpclogging/server.go:91
github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1
	/opt/gopath/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:30
github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:39
github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler
	/opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:171
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:982
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1208
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1
	/opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686
runtime.goexit
	/opt/go/src/runtime/asm_amd64.s:1337
error sending
failed to execute transaction ee0240822a56fc6ab8b140ee211a60ebbef3e539936d012a79f5739e3037f992

KuldeepSrivastava (Sun, 12 Apr 2020 07:05:49 GMT):
No such testing.

KuldeepSrivastava (Sun, 12 Apr 2020 07:06:40 GMT):
logs here: 2020-04-12 06:34:59.002 UTC [endorser] callChaincode -> INFO 121 [mychannel][ee024082] Exit chaincode: name:"mycc4" (42ms) 2020-04-12 06:34:59.002 UTC [endorser] SimulateProposal -> ERRO 122 [mychannel][ee024082] failed to invoke chaincode name:"mycc4" , error: chaincode stream terminated github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1269 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:313 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:302 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:239 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:147 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:146 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:247 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:500 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler.func1 /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:169 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:31 github.com/hyperledger/fabric/core/comm.(*Throttle).UnaryServerIntercptor /opt/gopath/src/github.com/hyperledger/fabric/core/comm/throttle.go:54 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpclogging/server.go:91 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1 /opt/gopath/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:30 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:39 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:171 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:982 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1208 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1337 error sending

chintanr11 (Sun, 12 Apr 2020 07:10:37 GMT):
Assuming this is the chaincode_example02 from fabric-samples .. what is your invoke command? Is it that you are using any SDK?

KuldeepSrivastava (Sun, 12 Apr 2020 07:11:30 GMT):
peer chaincode invoke -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc4 -c '{"Args":["createProduct","bag","black","25","100"]}'

chintanr11 (Sun, 12 Apr 2020 07:15:44 GMT):
Can you check if you have the "Init" and "Invoke" functions in your chaincode.

KuldeepSrivastava (Sun, 12 Apr 2020 07:17:39 GMT):
Yeah, it's there.

KuldeepSrivastava (Sun, 12 Apr 2020 07:18:07 GMT):
I am able to query, but not invoke.

chintanr11 (Sun, 12 Apr 2020 07:22:03 GMT):
There is some issue on the gRPC side .. please paster orderer logs too.

chintanr11 (Sun, 12 Apr 2020 07:22:03 GMT):
There is some issue on the gRPC side .. please paste orderer logs too.

KuldeepSrivastava (Sun, 12 Apr 2020 07:23:28 GMT):
2020-04-11 12:47:33.383 UTC [orderer.common.broadcast] Handle -> WARN 058 Error reading from 172.19.0.7:37322: rpc error: code = Canceled desc = context canceled 2020-04-11 12:47:33.383 UTC [comm.grpc.server] 1 -> INFO 059 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:37322 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=65.090212ms 2020-04-12 06:14:54.927 UTC [orderer.common.broadcast] Handle -> WARN 05a Error reading from 172.19.0.7:41240: rpc error: code = Canceled desc = context canceled 2020-04-12 06:14:54.927 UTC [comm.grpc.server] 1 -> INFO 05b streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41240 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=4.773262192s 2020-04-12 06:18:56.516 UTC [comm.grpc.server] 1 -> INFO 05c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41280 grpc.code=OK grpc.call_duration=4.70095609s 2020-04-12 06:25:12.652 UTC [orderer.common.broadcast] Handle -> WARN 05d Error reading from 172.19.0.7:41446: rpc error: code = Canceled desc = context canceled 2020-04-12 06:25:12.652 UTC [comm.grpc.server] 1 -> INFO 05e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41446 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=39.117909989s 2020-04-12 06:28:09.094 UTC [orderer.common.broadcast] Handle -> WARN 05f Error reading from 172.19.0.7:41486: rpc error: code = Canceled desc = context canceled 2020-04-12 06:28:09.095 UTC [comm.grpc.server] 1 -> INFO 060 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41486 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=35.875528051s 2020-04-12 06:34:41.576 UTC [orderer.common.broadcast] Handle -> WARN 061 Error reading from 172.19.0.7:41630: rpc error: code = Canceled desc = context canceled 2020-04-12 06:34:41.576 UTC [comm.grpc.server] 1 -> INFO 062 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41630 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=3.396196928s 2020-04-12 06:34:52.334 UTC [comm.grpc.server] 1 -> INFO 063 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41642 grpc.code=OK grpc.call_duration=2.826888ms 2020-04-12 06:34:59.003 UTC [comm.grpc.server] 1 -> INFO 064 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:41648 grpc.code=OK grpc.call_duration=44.513928ms 2020-04-12 07:13:13.052 UTC [orderer.common.broadcast] Handle -> WARN 065 Error reading from 172.19.0.7:42782: rpc error: code = Canceled desc = context canceled 2020-04-12 07:13:13.052 UTC [comm.grpc.server] 1 -> INFO 066 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.19.0.7:42782 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=3.755383241s

chintanr11 (Sun, 12 Apr 2020 07:28:34 GMT):
Please run this command: peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc4 -c '{"Args":["createProduct","bag","black","25","100"]}'

chintanr11 (Sun, 12 Apr 2020 07:34:39 GMT):
peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc4 --peerAddresses --tlsRootCertFiles --peerAddresses --tlsRootCertFiles -c '{"Args":["createProduct","bag","black","25","100"]}' If that gives error, then run this command. Modify peer addresses like you are having them in your network.

KuldeepSrivastava (Sun, 12 Apr 2020 07:35:39 GMT):
That gave error, i am adding certs path too.

chintanr11 (Sun, 12 Apr 2020 07:38:46 GMT):
Link your chaincode file here.

KuldeepSrivastava (Sun, 12 Apr 2020 07:39:56 GMT):
kk..

KuldeepSrivastava (Sun, 12 Apr 2020 07:42:37 GMT):
Oh - it's not allowing me to link .go file

chintanr11 (Sun, 12 Apr 2020 07:43:04 GMT):
save it as a .txt and link it

KuldeepSrivastava (Sun, 12 Apr 2020 07:43:42 GMT):

temp.txt

KuldeepSrivastava (Sun, 12 Apr 2020 07:43:48 GMT):
send

Paradox-AT (Sun, 12 Apr 2020 07:53:18 GMT):
I sometimes get this error when I have errors in the chaincode logic like using a map without initializing it

Paradox-AT (Sun, 12 Apr 2020 07:53:31 GMT):
Check the chaincode container logs

KuldeepSrivastava (Sun, 12 Apr 2020 07:55:20 GMT):
Ok, sure. Let me check.

KuldeepSrivastava (Sun, 12 Apr 2020 08:02:38 GMT):
Yeah, very much correct.

KuldeepSrivastava (Sun, 12 Apr 2020 08:02:54 GMT):
I have figured out the cause. Fixing it.

Paradox-AT (Sun, 12 Apr 2020 08:04:30 GMT):

cpu_utilization.png

Paradox-AT (Sun, 12 Apr 2020 08:04:30 GMT):

cpu_utilization.png

KuldeepSrivastava (Sun, 12 Apr 2020 08:09:49 GMT):
issue is bcoz of this: '{"Args":["createProduct","bag","black","25","100"]}' will 'createProduct' be considered as args[0]??

Paradox-AT (Sun, 12 Apr 2020 08:11:08 GMT):
that depends, if you are using getArgs() then yes otherwise no

KuldeepSrivastava (Sun, 12 Apr 2020 08:11:58 GMT):
not using getArgs(), using GetFunctionAndParameters()

Paradox-AT (Sun, 12 Apr 2020 08:12:22 GMT):
then args[0] should be "bag"

Paradox-AT (Sun, 12 Apr 2020 08:12:56 GMT):
just print it on logs

KuldeepSrivastava (Sun, 12 Apr 2020 08:13:50 GMT):
yeah, that's where i got confused. I did print and got the same result. now my invoke is successful. Thanks @Paradox-AT @chintanr11

Paradox-AT (Sun, 12 Apr 2020 08:15:17 GMT):
Any idea on this guys:https://chat.hyperledger.org/channel/fabric-questions?msg=W7riYMFtXyegaHJys

chintanr11 (Sun, 12 Apr 2020 08:16:23 GMT):
Can you link your connection profile file ?

Paradox-AT (Sun, 12 Apr 2020 08:17:56 GMT):

connection-profile.txt

Paradox-AT (Sun, 12 Apr 2020 08:18:16 GMT):

connection-profile.txt

KuldeepSrivastava (Sun, 12 Apr 2020 08:19:34 GMT):
Not right now. But as peer0 cud be anchor peer, that's why so mush load.

KuldeepSrivastava (Sun, 12 Apr 2020 08:19:34 GMT):
Not right now. But as peer0 cud be anchor peer, that's why so much load.

Paradox-AT (Sun, 12 Apr 2020 08:21:20 GMT):
@KuldeepSrivastava @chintanr11 Is there any way to distribute load

KuldeepSrivastava (Sun, 12 Apr 2020 08:23:58 GMT):
Really, i don't have any clue.

chintanr11 (Sun, 12 Apr 2020 08:34:15 GMT):
Try removing the channel section from the yaml and modify your SDK code accordingly to read the channels as well as peers that are being added to it.

Paradox-AT (Sun, 12 Apr 2020 08:36:03 GMT):
In our usecase we have n number of channels, the channel mentioned in the config is just a test channel

Paradox-AT (Sun, 12 Apr 2020 08:36:36 GMT):
all the peers will join all the channels to maintain the availability of data across all the peers

chintanr11 (Sun, 12 Apr 2020 08:38:09 GMT):
I think you can check out hyperledger caliper for network performance testing .. i have not worked on it personally but it is the prescribed one

Paradox-AT (Sun, 12 Apr 2020 08:47:24 GMT):
Yeah, I am trying to perform the load test via microservice.

Paradox-AT (Sun, 12 Apr 2020 08:47:24 GMT):
Yeah, but I am trying to perform the load test via microservice.

musicmodes (Sun, 12 Apr 2020 11:50:06 GMT):
yes i am running the first network example

musicmodes (Sun, 12 Apr 2020 11:50:51 GMT):
i have added more peers to the network

garyclark (Sun, 12 Apr 2020 14:22:01 GMT):
Just for sanity. Since your new like me. I had to crawl my way through this. Added more nodes is going to add a level of complexity which "may" take you down a path that would lead to whole lot of pain. In saying that the path to the chaincode is in the first-network/scripts/script.sh.

garyclark (Sun, 12 Apr 2020 14:22:01 GMT):
Just for sanity. Since your new like me. I had to crawl my way through this. Adding more nodes is going to add a level of complexity which "may" take you down a path that would lead to whole lot of pain. In saying that the path to the chaincode is in the first-network/scripts/script.sh.

Amanullah68 (Sun, 12 Apr 2020 14:24:39 GMT):
'Error: Invalid common connection profile due to missing configuration data'

Amanullah68 (Sun, 12 Apr 2020 14:24:39 GMT):
help me pleaxe

Amanullah68 (Sun, 12 Apr 2020 14:24:39 GMT):
It's now headache for meeeee

garyclark (Sun, 12 Apr 2020 14:45:03 GMT):
As chintanr11 stated get fabcar running which is a good baseline example to work from. I started with that chaincode and "inched" towards changing that. The rabbit holes and confusing error messages can and will drive you crazy. So there is alot of head scratching (that is my nicest comment).

garyclark (Sun, 12 Apr 2020 14:45:03 GMT):
As chintanr11 stated get fabcar running which is a good baseline example to work from. I started with that chaincode and "inched" towards changing that. The rabbit holes and confusing error messages can and will drive you crazy. So there is alot of head scratching. Just minimize change until you run.

artwes (Sun, 12 Apr 2020 14:59:37 GMT):
Has joined the channel.

artwes (Sun, 12 Apr 2020 14:59:39 GMT):
Hello everyone I am working on a Hlf Project and am trying to revoke a user certificate. I am using the node sdk with the vscode ibm extension tool. So far i got to the point that i can revoke users via the sdk. Then i'll need to generate the CRL and update the msp folder of the peer and the orderer. Since the generateCRL function of the sdk isn't working for me i generated the crl.pem file via the fabric-ca-client in the docker of ca.org1.example.com and copied it to the peer and the orderer. After restarting the docker container the user is still able to evaluate and submit transactions. What am i doing wrong? Would be really thankful if someone could help

Adhavpavan (Sun, 12 Apr 2020 15:00:37 GMT):
@chintanr11 Thank you so much for reply. I got my mistake, all orderers are running internally on 7050 and I added exposed port in configtx file, causing the issue.I corrected and its working fine.

Amanullah68 (Sun, 12 Apr 2020 20:11:15 GMT):
install-chaincode - Error: No credentialStore settings found

Mms 11 (Sun, 12 Apr 2020 20:33:31 GMT):
Hi guys, Can anybody help with this one; How do you guys setup the network and your chaincodes, are you building multiple chaincodes or trying to reduces to the maximum? I build a very basic network with chaincodes, two orgs, one peer per each org, two raft orders all that in a single channel. With this setup I noticed a big decrease in performance (both my machine but primarily the network). When I'm deploying and instantiating the second chaincode I see the fall in performance. I can build the poc with only one chaincode deployed, but I was hoping for a more DDD approach, making each chaincode encapsulating the business domain. Also, is the first-network example one that may have many configuration flaws? I based my setup on this example and as mentioned my machine gets it's ass beaten (I have a 16GB MacBookPro, so not the worst).

Mms 11 (Sun, 12 Apr 2020 20:33:52 GMT):
BTW, happy Easter! Hope everyone is healthy and safe!

chintanr11 (Mon, 13 Apr 2020 03:36:18 GMT):
generateCRL modifies the channel config too ..manually just updating peer/orderer MSPs wont work

MrPhenom (Mon, 13 Apr 2020 05:22:33 GMT):
Has joined the channel.

MrPhenom (Mon, 13 Apr 2020 05:24:47 GMT):
can I develope my dapp in kali instead of ubuntu ?what defers and how

Paradox-AT (Mon, 13 Apr 2020 05:26:16 GMT):
yeah you can do it on any docker compatible OS

MrPhenom (Mon, 13 Apr 2020 05:28:49 GMT):
it means I can do it also in window if im not mistaken ?

MrPhenom (Mon, 13 Apr 2020 05:31:18 GMT):
do you know any good tutorial for hyperledger

qchen (Mon, 13 Apr 2020 05:53:57 GMT):
Has joined the channel.

qchen (Mon, 13 Apr 2020 05:53:59 GMT):
Hello, everyone. I just follow the Docs of Getting Starts. I got the error when I run command "./network.sh createChannel". Is there someone could help about "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." I am working on Windows x64 machine. I already try to "./network.sh down" and "./network.sh up" again(No error with this two command). It would be greatly thankful if someone can help.

qchen (Mon, 13 Apr 2020 05:53:59 GMT):
Hello, everyone. I just follow the Docs of Getting Started. I got the error when I run command "./network.sh createChannel". Is there someone could help about this error: "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." I am working on Windows x64 machine. I already try to "./network.sh down" and "./network.sh up" again(No error with this two command). It would be greatly thankful if someone can help.

JayJong (Mon, 13 Apr 2020 08:02:17 GMT):
@garyclark i didnt remove, im following the test_network sample closely

Paradox-AT (Mon, 13 Apr 2020 08:06:20 GMT):
Yes, fabric-samples

Paradox-AT (Mon, 13 Apr 2020 08:07:43 GMT):
check the orderer log

chintanr11 (Mon, 13 Apr 2020 08:09:20 GMT):
I think there is TLS issue in communicating with the orderer. Logs would help along with snapshot of what the netowrk.sh script is doing on passing createChannel command.

charlielin (Mon, 13 Apr 2020 08:26:11 GMT):
Has joined the channel.

charlielin (Mon, 13 Apr 2020 08:26:11 GMT):
Hello, everyone.

charlielin (Mon, 13 Apr 2020 08:40:18 GMT):
hello, everyone. I am reading the hyperledger documents abount the Identity and MSP: https://hyperledger-fabric.readthedocs.io/en/release-2.0/membership/membership.html ![](https://tva1.sinaimg.cn/large/00831rSTgy1gdpa11g49ej313w0dk420.jpg) > signcert: For a peer or orderer node (or in a client’s local MSP) this folder contains the node’s *signing key*. This key matches cryptographically the node’s identity included in Node Identity folder and is used to *sign data* — for example to *sign* a transaction proposal response, as part of the endorsement phase. > This folder is mandatory for local MSPs, and must contain exactly one *public key*. Obviously, access to this folder must be limited only to the identities of users who have administrative responsibility on the peer. I am confused abount the describing about *signcert* and *sign key*. According to the documents, signcert contains sign key, sign key == public key, and using a public key to sign a transaction. But, when talking about the sign, shouldn't we use the private key instead?

qchen (Mon, 13 Apr 2020 09:33:11 GMT):
Thank you for the reply!:grinning: where I can check the orderer log:joy: , I'm really a newcomer.

qchen (Mon, 13 Apr 2020 09:33:11 GMT):
Thank you for the reply!:grinning:

qchen (Mon, 13 Apr 2020 09:34:38 GMT):
The log.txt(Under test-network) file just has the text what I pasted before.

qchen (Mon, 13 Apr 2020 09:34:38 GMT):
Maybe it's this(after I run ./network.sh createChannel):

qchen (Mon, 13 Apr 2020 09:38:32 GMT):
$ ./network.sh createChannel Creating channel 'mychannel'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb ### Generating channel configuration transaction 'mychannel.tx' ### + configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/mychannel.tx -channelID mychannel 2020-04-13 16:16:48.156 JST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-04-13 16:16:48.185 JST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: F:\Fabric\fabric-samples\test-network\configtx\configtx.yaml 2020-04-13 16:16:48.186 JST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-04-13 16:16:48.191 JST [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx + res=0 + set +x ### Generating channel configuration transaction 'mychannel.tx' ### ####### Generating anchor peer update for Org1MSP ########## + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP 2020-04-13 16:16:48.261 JST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-04-13 16:16:48.291 JST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: F:\Fabric\fabric-samples\test-network\configtx\configtx.yaml 2020-04-13 16:16:48.291 JST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Generating anchor peer update 2020-04-13 16:16:48.294 JST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 004 Writing anchor peer update + res=0 + set +x ####### Generating anchor peer update for Org2MSP ########## + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP 2020-04-13 16:16:48.362 JST [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-04-13 16:16:48.392 JST [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: F:\Fabric\fabric-samples\test-network\configtx\configtx.yaml 2020-04-13 16:16:48.393 JST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Generating anchor peer update 2020-04-13 16:16:48.396 JST [common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 004 Writing anchor peer update + res=0 + set +x Creating channel mychannel Using organization 1 + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /f/Fabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /f/Fabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /f/Fabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /f/Fabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed

chintanr11 (Mon, 13 Apr 2020 09:45:55 GMT):
What are you orderer logs?

chintanr11 (Mon, 13 Apr 2020 09:46:05 GMT):
Can you link them in .txt file here?

qchen (Mon, 13 Apr 2020 09:55:23 GMT):
https://www.dropbox.com/s/gawa8x85cla7wqa/runerror.txt?dl=0

qchen (Mon, 13 Apr 2020 09:55:50 GMT):
Thank you for the reply, where i can access orderer logs?

chintanr11 (Mon, 13 Apr 2020 09:56:21 GMT):
Just run the following command: docker logs

qchen (Mon, 13 Apr 2020 09:56:51 GMT):
got it, a mins

chintanr11 (Mon, 13 Apr 2020 09:57:20 GMT):
Also, why are you running peer channel create command so many times?

qchen (Mon, 13 Apr 2020 10:00:05 GMT):
Here id the orderer log: https://www.dropbox.com/s/2yry7s1bl605xaa/orderer_log.txt?dl=0

qchen (Mon, 13 Apr 2020 10:01:45 GMT):
Actually, I just run "./network.sh createChannel". Nothing else.

chintanr11 (Mon, 13 Apr 2020 10:01:46 GMT):
Your orderer container is not running: 2020-04-13 09:44:55.262 UTC [orderer.common.server] loadLocalMSP -> PANI 004 Failed to get local msp config: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory panic: Failed to get local msp config: could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat /var/hyperledger/orderer/msp/signcerts: no such file or directory The MSP that you are mounting to this docker container ..does not have any signcerts folder or is empty.

qchen (Mon, 13 Apr 2020 10:04:11 GMT):
I just checked. no this folder.

qchen (Mon, 13 Apr 2020 10:04:50 GMT):
maybe I'm in wrong machine? because the /var also no.

qchen (Mon, 13 Apr 2020 10:05:36 GMT):
should I run those command in docker quickstart terminal

Paradox-AT (Mon, 13 Apr 2020 10:06:17 GMT):
do: `tree /var/hyperledger/orderer/msp` on the machine and check the output

qchen (Mon, 13 Apr 2020 10:07:15 GMT):
command not found, I'm in a windows machine.

Paradox-AT (Mon, 13 Apr 2020 10:07:49 GMT):
get into the order machine

Paradox-AT (Mon, 13 Apr 2020 10:08:06 GMT):
docker exec -it {orderer_container_name} nash

Paradox-AT (Mon, 13 Apr 2020 10:08:06 GMT):
docker exec -it {orderer_container_name} bash

Paradox-AT (Mon, 13 Apr 2020 10:08:27 GMT):
then execute it

qchen (Mon, 13 Apr 2020 10:09:20 GMT):
it's not running.

qchen (Mon, 13 Apr 2020 10:10:13 GMT):
$ docker exec -it orderer.example.com bash Error response from daemon: Container 9bc52ab72bb6 is not running

Amanullah68 (Mon, 13 Apr 2020 10:11:25 GMT):
install proposal resulted in an error :: Error: access denied for [install]: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy

qchen (Mon, 13 Apr 2020 10:13:38 GMT):
but when I use "docker ps -a", it show this container.

qchen (Mon, 13 Apr 2020 10:17:46 GMT):
When I run "./network.sh up". the orderer will directly exit.like this " hyperledger/fabric-orderer:latest "orderer" 30 minutes ago Exited (2) Less than a second ago orderer.example.com"

Paradox-AT (Mon, 13 Apr 2020 10:18:37 GMT):
Your orderer is not running

Paradox-AT (Mon, 13 Apr 2020 10:18:55 GMT):
When you add `-a` then it'll show all the containers

Paradox-AT (Mon, 13 Apr 2020 10:19:06 GMT):
even which has stopped

Paradox-AT (Mon, 13 Apr 2020 10:19:34 GMT):
do `docker logs orderer.example.com`

Paradox-AT (Mon, 13 Apr 2020 10:19:41 GMT):
You'll get the error

qchen (Mon, 13 Apr 2020 10:21:27 GMT):
Yes, I go the error about local msp config

qchen (Mon, 13 Apr 2020 10:22:12 GMT):
could not load a valid signer certificate from directory /var/hyperledger/orderer/msp/signcerts: stat But I don't have the folder /var

Paradox-AT (Mon, 13 Apr 2020 10:22:28 GMT):
Yeah

Paradox-AT (Mon, 13 Apr 2020 10:22:43 GMT):
do a cleanup and generate the artifacts again

qchen (Mon, 13 Apr 2020 10:23:05 GMT):
you mean "./network.sh down"

qchen (Mon, 13 Apr 2020 10:23:05 GMT):
you mean "./network.sh down"? I tried serval times "./network.sh down" "./network.sh up"

qchen (Mon, 13 Apr 2020 10:26:34 GMT):
Or cleanup the docker image?

Amanullah68 (Mon, 13 Apr 2020 11:07:57 GMT):
ProcessProposal -> ERRO 02b [][426f198e] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: 426f198e8c14bf4dc417ab01759b07c5a7c538c3adffc3b6a6f2c6c9a2148e96

Jaque (Mon, 13 Apr 2020 11:29:20 GMT):
Hi Guys, I am unable to see the option "IBM Blockchain Platform: Package a Smart Contract Package" from vs code. I can see the other options but wont able to see this. what could be the reason? any gueses please?

artwes (Mon, 13 Apr 2020 12:17:16 GMT):
Hey :) Thanks for your answer! So if the generateCRL command already modifies the channel config, the last thing i would need to do is updating the channel config right?

chintanr11 (Mon, 13 Apr 2020 12:47:46 GMT):
Clean up everything .. docker volumes to. and then strt the network again

Amanullah68 (Mon, 13 Apr 2020 13:07:45 GMT):
Hi Guys,

Amanullah68 (Mon, 13 Apr 2020 13:07:58 GMT):
I got this error, please help me. thanks

Amanullah68 (Mon, 13 Apr 2020 13:07:59 GMT):
Create-Channel - Failed to create the channel. status:BAD_REQUEST reason:error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

Jaque (Mon, 13 Apr 2020 13:11:27 GMT):
HI Guys, I am using IBM cloud, IBM Blockchain platform while instantiating the chaincode i am getting below error, does anyone has any idea? error starting container: error starting container: Post http://localhost:2375/build?networkmode=host&t=dev-jdoe-ehrpackage02-1.2-278d5da74774b64550a6911d421d6a7e050b06df16d89e6a7a92fada4116ce37: Failed to generate platform-specific docker build: Error returned from build: 2 "Error attaching: configured logging driver does not support reading "

garyclark (Mon, 13 Apr 2020 15:11:43 GMT):
May need some clarification. Using 1.4 fabric. I have 3 nodes, 1 node on each machine. Enabled TLS. I can perform queries and invokes and create private data and get private data. I took the original fabcar chaincode and modified it. I can enroll and admin and register the user. However I cannot perform a query. allet path: /home/gclark/HeliosTLSSolo/HeliosApps/heliosdso/wallet 2020-04-12T21:42:00.603Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 2020-04-12T21:42:00.604Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 2020-04-12T21:42:00.604Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051

garyclark (Mon, 13 Apr 2020 15:11:43 GMT):
May need some clarification. Using 1.4 fabric. I have 3 nodes, 1 node on each machine. Enabled TLS. I can perform queries and invokes and create private data and get private data via docker cli. I took the original fabcar chaincode and modified it. I can enroll and admin and register the user. However I cannot perform a query. allet path: /home/gclark/HeliosTLSSolo/HeliosApps/heliosdso/wallet 2020-04-12T21:42:00.603Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 2020-04-12T21:42:00.604Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 2020-04-12T21:42:00.604Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051 Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://peer0.heliosedge.heliosdso.com:7051

garyclark (Mon, 13 Apr 2020 15:14:42 GMT):
I am told this may be a certificate issue. I can see that the query.js using a connection file which uses a peer .pem file. What is the relationship between the peers .ca file (it uses to communicate to pass to the orderer) and .pem file this node.js code is attempting t perform a query?

garyclark (Mon, 13 Apr 2020 15:14:42 GMT):
I am told this may be a certificate issue. I can see that the query.js using a connection file which uses a peer .pem file. What is the relationship between the peers .ca file (it uses to communicate to pass to the orderer) and .pem file this node.js code is attempting to perform a query?

Paradox-AT (Mon, 13 Apr 2020 15:16:00 GMT):
You've got to sign the transaction using one of the admin certificates

Paradox-AT (Mon, 13 Apr 2020 15:17:43 GMT):
I think you are trying to attach to the docker container. Since the logs of the container is redirected somewhere else you have to go there in order to see the logs.

Paradox-AT (Mon, 13 Apr 2020 15:20:35 GMT):
Assuming everything works fine in cli, this definitely is a certificate issue. Check if you are using correct certificate to initialize the ca.

Jaque (Mon, 13 Apr 2020 15:29:04 GMT):
no there is no docker container attached to it. I have one orderer, 2 orgs, peers and 2 ca's all created on IBM cloud

Paradox-AT (Mon, 13 Apr 2020 15:29:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=HjCggHoogKhMf9vwr) test

Paradox-AT (Mon, 13 Apr 2020 15:30:14 GMT):
you are trying to view the logs of the containers am I right?

Paradox-AT (Mon, 13 Apr 2020 15:30:14 GMT):
you are trying to view the logs of the containers am I right? @Jaque

Jaque (Mon, 13 Apr 2020 15:31:00 GMT):
no no, i am trying to instantiate chaincode on channel through IBM Blockchain platform

Paradox-AT (Mon, 13 Apr 2020 15:32:42 GMT):
That's weird, I got similar error when I redirected the logs to aws cloudwatch and even then tried to attach to the container to see logs

Jaque (Mon, 13 Apr 2020 15:33:38 GMT):
Yes it is, even i am not doing anything with docker container since everything i am doing over IBM cloud, its weird

garyclark (Mon, 13 Apr 2020 16:15:04 GMT):
I will have a quick look at the CA cert again.

garyclark (Mon, 13 Apr 2020 16:41:30 GMT):
When running the ca server its using the same CA pem file thats present in the Connection json file that contains certificateAuthorities and uses port 7054 to connect to the CA Server.

garyclark (Mon, 13 Apr 2020 16:41:30 GMT):
When running the ca server its using the same CA pem file thats present in the Connection json file that contains certificateAuthorities and uses port 7054 to connect to the CA Server. This connection file is referenced in the node.js query file.

Paradox-AT (Mon, 13 Apr 2020 16:52:23 GMT):
I've attached `crypto-config/peerOrganizations/org.co/ca/` to `/etc/hyperledger/fabric-ca-server-config` and `certfile = /etc/hyperledger/fabric-ca-server-config/ca.org.co-cert.pem` `keyfile = /etc/hyperledger/fabric-ca-server-config/${ORG_PRIVATE_KEY}`

Paradox-AT (Mon, 13 Apr 2020 16:52:47 GMT):
everything works fine under this config for my setup

garyclark (Mon, 13 Apr 2020 16:59:50 GMT):
Thanks Paradox-AT. I think I have that correct. Essentially the ca-server would barf if the key and .pem file were not aligned.

garyclark (Mon, 13 Apr 2020 17:01:07 GMT):
More research and shake n' bake and repeat to find this problem.

garyclark (Mon, 13 Apr 2020 17:01:07 GMT):
More research. Shake n' bake and repeat to find this problem.

FilipeSilva (Mon, 13 Apr 2020 19:27:48 GMT):
Has joined the channel.

FilipeSilva (Mon, 13 Apr 2020 19:28:12 GMT):
hi!

FilipeSilva (Mon, 13 Apr 2020 19:28:30 GMT):
what is the difference between the `public` and `root` certificate of CA?

FilipeSilva (Mon, 13 Apr 2020 19:29:01 GMT):
what I mean by public is the certificate found under `cacerts` folder while the root is the one assigned to environment variable `FABRIC_CA_CLIENT_TLS_CERTFILES` when enrolling CA's Admins

FilipeSilva (Mon, 13 Apr 2020 19:29:09 GMT):
are they the same?

paleozogt (Mon, 13 Apr 2020 20:21:42 GMT):
Has joined the channel.

paleozogt (Mon, 13 Apr 2020 20:21:43 GMT):
I'm interested in making HyperLedger Fabric's docker images multi-arch. In a fork I've made some modifications to the makefiles to support this. How should I go about moving this forward? A PR on the github page?

ftgha (Mon, 13 Apr 2020 20:53:26 GMT):
Has joined the channel.

paleozogt (Mon, 13 Apr 2020 21:14:26 GMT):
@rjones I see the ticket that references mult-arch images (https://jira.hyperledger.org/browse/FAB-9629) but its set to "Won't Do" without any commentary. Was that bc of lack of resources/interest?

paleozogt (Mon, 13 Apr 2020 21:14:26 GMT):
@rjones I see the ticket that references mult-arch images (https://jira.hyperledger.org/browse/FAB-9629) but Closed as "Won't Do" without any commentary. Was that bc of lack of resources/interest?

paleozogt (Mon, 13 Apr 2020 21:14:26 GMT):
@rjones I see the ticket that references mult-arch images (https://jira.hyperledger.org/browse/FAB-9629) but its Closed as "Won't Do" without any commentary. Was that bc of lack of resources/interest?

rjones (Mon, 13 Apr 2020 21:14:26 GMT):
Has joined the channel.

garyclark (Mon, 13 Apr 2020 21:21:51 GMT):
OK got it working. Mappings wrong in connection file.

garyclark (Mon, 13 Apr 2020 21:23:54 GMT):

Clipboard - April 13, 2020 4:23 PM

garyclark (Mon, 13 Apr 2020 21:24:30 GMT):
Got my network running using modified fabcar chaincode. Node.js and TLS. I am so happy right now!

garyclark (Mon, 13 Apr 2020 21:25:04 GMT):
The network has 3 peers, 1 peer per machine.

garyclark (Mon, 13 Apr 2020 21:25:47 GMT):
I can just my replace my own chaincode next.

rjones (Mon, 13 Apr 2020 22:03:15 GMT):
@paleozogt I'm not sure. Comment on the ticket and ask, maybe? @sykesm ?

FilipeSilva (Mon, 13 Apr 2020 23:22:54 GMT):
If you could take the time to answer the below question related to CA I would really appreciate it:

FilipeSilva (Mon, 13 Apr 2020 23:23:01 GMT):
https://stackoverflow.com/questions/61198312/should-an-organization-admin-always-be-assigned-the-type-admin

qchen (Tue, 14 Apr 2020 02:03:34 GMT):
Thank you very much for your guys' help. I will try to do that.

Taffies (Tue, 14 Apr 2020 02:55:34 GMT):
Hi, can a cert in signcert have more than one Node OU? Somehow my cert is being generated with both "client" and "orderer"/"peer"...

BrettLogan (Tue, 14 Apr 2020 04:09:15 GMT):
Until recently we actually publish s390x, ppc64le and x86 images with a multi-arch manifest. We stopped publishing ppc64le as the images were almost never used. When we migrated to Azure Pipelines, as there is no agent for IBM Z, we stopped publishing s390x (and the fact the vast main consumer was IBM itself). Anyone is free to build these images themselves on those platforms, the Make targets still exist. If you are looking for another platform, we have never had enough interest, or support to build say `arm` images. It's not just a matter of having the physical resources (which we do) to do it, you need the technical resources to maintain it. The Fabric maintainers haven't had a compelling enough reason (given our finite resources) to start publishing something like `arm` images and no organization has come forward with a commitment to maintain `arm` and to fix any problems that might arise in the code base as bi-product of supporting it

BrettLogan (Tue, 14 Apr 2020 04:09:15 GMT):
Until recently we actually publish s390x, ppc64le and x86 images. We stopped publishing ppc64le as the images were almost never used. When we migrated to Azure Pipelines, as there is no agent for IBM Z, we stopped publishing s390x (and the fact the main consumer was IBM itself). Anyone is free to build these images themselves on those platforms, the Make targets still exist. If you are looking for another platform, we have never had enough interest, or support to build say `arm` images. It's not just a matter of having the physical resources (which we do) to do it, you need the technical resources to maintain it. The Fabric maintainers haven't had a compelling enough reason (given our limited personnel resources) to start publishing something like `arm` images and no organization has come forward with a commitment to maintain `arm` and to fix any problems that might arise in the code base as bi-product of supporting it

BrettLogan (Tue, 14 Apr 2020 04:09:15 GMT):
Until recently we actually publish s390x, ppc64le and x86 images in a multi-arch image. We stopped publishing ppc64le as the images were almost never used. When we migrated to Azure Pipelines, as there is no agent for IBM Z, we stopped publishing s390x (and the fact the main consumer was IBM itself). Anyone is free to build these images themselves on those platforms, the Make targets still exist. If you are looking for another platform, we have never had enough interest, or support to build say `arm` images. It's not just a matter of having the physical resources (which we do) to do it, you need the technical resources to maintain it. The Fabric maintainers haven't had a compelling enough reason (given our limited personnel resources) to start publishing something like `arm` images and no organization has come forward with a commitment to maintain `arm` and to fix any problems that might arise in the code base as bi-product of supporting it

BrettLogan (Tue, 14 Apr 2020 04:09:15 GMT):
Until recently we actually publish s390x, ppc64le and x86 images with a multi-arch manifest. We stopped publishing ppc64le as the images were almost never used. When we migrated to Azure Pipelines, as there is no agent for IBM Z, we stopped publishing s390x (and the fact the main consumer was IBM itself). Anyone is free to build these images themselves on those platforms, the Make targets still exist. If you are looking for another platform, we have never had enough interest, or support to build say `arm` images. It's not just a matter of having the physical resources (which we do) to do it, you need the technical resources to maintain it. The Fabric maintainers haven't had a compelling enough reason (given our limited personnel resources) to start publishing something like `arm` images and no organization has come forward with a commitment to maintain `arm` and to fix any problems that might arise in the code base as bi-product of supporting it

BrettLogan (Tue, 14 Apr 2020 04:09:15 GMT):
Until recently we actually publish s390x, ppc64le and x86 images with a multi-arch manifest. We stopped publishing ppc64le as the images were almost never used. When we migrated to Azure Pipelines, as there is no agent for IBM Z, we stopped publishing s390x (and the fact the vast main consumer was IBM itself). Anyone is free to build these images themselves on those platforms, the Make targets still exist. If you are looking for another platform, we have never had enough interest, or support to build say `arm` images. It's not just a matter of having the physical resources (which we do) to do it, you need the technical resources to maintain it. The Fabric maintainers haven't had a compelling enough reason (given our limited personnel resources) to start publishing something like `arm` images and no organization has come forward with a commitment to maintain `arm` and to fix any problems that might arise in the code base as bi-product of supporting it

BrettLogan (Tue, 14 Apr 2020 04:11:26 GMT):
So it's not just a matter of adding the Dockerfiles, it requires a commitment from an individual, an org, or a company who has a history of investment in maintaining fabric and is willing to make a strategic investment in time to support not just the Dockerfiles, but the fabric codebase that those images are built upon

BrettLogan (Tue, 14 Apr 2020 04:11:26 GMT):
So it's not just a matter of adding the Dockerfiles, it requires a commitment from an individual, an org, or a company who has a background of maintaining fabric and is willing to make a strategic investment in time to support not just the Dockerfiles, but the fabric codebase that those images are built upon

BrettLogan (Tue, 14 Apr 2020 04:18:23 GMT):
And I'll add, in order to support a different architecture, there are 4 other repositories which need to have support added as well: `fabric-baseimage`, `fabric-chaincode-java`, `fabric-chaincode-node` and `fabric-ca`. End-to-End testing can't be performed without these images also existing

BrettLogan (Tue, 14 Apr 2020 04:18:23 GMT):
And I'll add, in order to support a different architecture, there are 4 other repositories which need to have support as well: `fabric-baseimage`, `fabric-chaincode-java`, `fabric-chaincode-node` and `fabric-ca`. End-to-End testing can't be performed without these images also existing

Taffies (Tue, 14 Apr 2020 04:53:23 GMT):
Does anyone know what this error is? I'm trying to create a channel but I keep getting stuck at this step. :( `identity 0 does not satisfy principal: The identity is not valid under this MSP [Orgorderer1MSP]: could not validate identity's OUs: certifiersIdentifier does not match: [orderer(D06114360B497E0E) org1(D06114360B497E0E)], MSP: [Orgorderer1MSP]`

smtter (Tue, 14 Apr 2020 05:43:50 GMT):
I thought this would be better fit in general but guess it belongs here

smtter (Tue, 14 Apr 2020 05:44:05 GMT):
It's a question about hlf in general

smtter (Tue, 14 Apr 2020 05:44:08 GMT):
What's the benefit of using hlf vs a huge centralized database with views and triggers. Like give certain entities certain views (channel functionality) and triggers (smart contract)

smtter (Tue, 14 Apr 2020 05:44:54 GMT):
Which can manipulate views and so forth

smtter (Tue, 14 Apr 2020 05:45:13 GMT):
It can scale vertically and nowzpostgres supports horizontal sharding too

smtter (Tue, 14 Apr 2020 05:45:13 GMT):
It can scale vertically and nowadays postgres supports horizontal sharding too

smtter (Tue, 14 Apr 2020 05:45:13 GMT):
It can scale vertically and now, postgres supports horizontal sharding too

BrettLogan (Tue, 14 Apr 2020 05:51:32 GMT):
How do you guarantee one of your node's doesn't manipulate the state of the database. Sharding doesn't prevent any one node from manipulating the data?

BrettLogan (Tue, 14 Apr 2020 05:51:32 GMT):
How do you guarantee one of your node's doesn't manipulate the state of the database. Sharding doesn't prevent one (byzantine) node from manipulating the data?

smtter (Tue, 14 Apr 2020 05:52:13 GMT):
Interesting prospect

smtter (Tue, 14 Apr 2020 05:52:34 GMT):
You cannot change views upstream

BrettLogan (Tue, 14 Apr 2020 05:52:50 GMT):
A blockchain by its very nature provides protections against any one (or more) parties from manipulating data

BrettLogan (Tue, 14 Apr 2020 05:53:14 GMT):
A blockchain by its very nature provides protections against any one (or more) parties from manipulating data

smtter (Tue, 14 Apr 2020 05:54:35 GMT):
So do views though

smtter (Tue, 14 Apr 2020 05:54:56 GMT):
I love hlf, I'm just arguing a devil's advocate

smtter (Tue, 14 Apr 2020 05:55:09 GMT):
After, first relational db was also invented by IBM

BrettLogan (Tue, 14 Apr 2020 05:57:51 GMT):
How, if I gain admin access to a node in a database, I can submit transactions to the DB. In HLF even if I gain admin access to the database, I can't manipulate the global state against which we are all consenting. The network will detect that one of the databases (ledgers) is "corrupt", and self-correct

BrettLogan (Tue, 14 Apr 2020 05:57:51 GMT):
How, if I gain admin access to a node in a database, I can submit transactions to the DB. In HLF even if I gain admin access to the database, I can't manipulate the global state against which we are all consenting. The network will detect that one of the databases (ledgers) is incorrect, and self-correct

smtter (Tue, 14 Apr 2020 06:03:36 GMT):
Fair, that makes sense. You are referring to the immutability and append only aspect of fabric

BrettLogan (Tue, 14 Apr 2020 06:11:11 GMT):
Truthfully, there is nothing stopping you from using a traditional database, and building out all the features you need to achieve what you want. But why in all of creation would you want to do that instead of using software that was purpose built for it and has teams of engineers backing it, is used by many of the largest companies in the world and many, many thousands of admins using it to provide some level of assurance that the implementation was done properly. As opposed to a small team of engineers retro-fitting a database to provide what a blockchain gives freely

smtter (Tue, 14 Apr 2020 06:14:50 GMT):
Yes, I agree with your sentiment. It's reinventing the wheel.

smtter (Tue, 14 Apr 2020 06:14:59 GMT):
Well, HLF has a long way to go

smtter (Tue, 14 Apr 2020 06:15:15 GMT):
I know implementing postgres is one of their goals too

BrettLogan (Tue, 14 Apr 2020 06:16:22 GMT):
Postgres isn't on our radar. We have no plans for extending the databases we support today.

BrettLogan (Tue, 14 Apr 2020 06:16:56 GMT):
We are actively working on tokenization and Byzantine fault tolerance. Those are our major goals in the coming months

BrettLogan (Tue, 14 Apr 2020 06:18:14 GMT):
You can follow our major proposals here: https://github.com/hyperledger/fabric-rfcs/pulls

BrettLogan (Tue, 14 Apr 2020 06:18:41 GMT):
Expect BFT and tokens to land here once the proposals are ready

BrettLogan (Tue, 14 Apr 2020 06:18:41 GMT):
Expect BFT and tokens in the near future to land here once the proposals are ready

smtter (Tue, 14 Apr 2020 06:19:26 GMT):
I see. I got that information from Ivan Vanok

smtter (Tue, 14 Apr 2020 06:19:59 GMT):
If I want to contribute, can I simply submit pull requests?

BrettLogan (Tue, 14 Apr 2020 06:20:24 GMT):
Absolutely. We freely welcome all contributions

BrettLogan (Tue, 14 Apr 2020 06:26:58 GMT):
Though, I should add, if you're thinking of doing something crazy, like implementing Postgres as the statedb, we do require proposals in the repo I linked for major architectural changes. We once had someone fully implement MongoDB with proposing it, and unfortunately he never went back and wrote the proposal and the work never moved forward.

BrettLogan (Tue, 14 Apr 2020 06:27:41 GMT):
But if it's just general improvements to the code or documentation, pull requests are happily accepted

smtter (Tue, 14 Apr 2020 06:27:54 GMT):
I see. Is it worth implementing postgres do you think?

smtter (Tue, 14 Apr 2020 06:28:02 GMT):
I can definitely see a need for it.

smtter (Tue, 14 Apr 2020 06:29:14 GMT):
I have no idea the considerations needed for that implementation. I'm currently using hlf for research but will have free time this summer. I will research then and reach out to you to determine the possibility and what not. It'd be exciting to lead.

BrettLogan (Tue, 14 Apr 2020 06:32:50 GMT):
It's not always about a need. We also have to find parties who have an investment and history with fabric who are going to maintain it and provide fixes for anything that goes wrong (forever). In the case of CouchDB (our current statedb) it made sense, many of the people who maintain the project are at IBM and we are able to work very close with them when we find problems on Couch to get them corrected in the Couch upstream repo.

BrettLogan (Tue, 14 Apr 2020 06:33:26 GMT):
So, for major changes there has to be some party who is invested in fabric willing to provide stewardship over that part of the project.

BrettLogan (Tue, 14 Apr 2020 06:35:56 GMT):
Or it has to be really compelling enough for us (the Fabric Maintainers) to take up the future maintenance of it. And that's why the proposal process exists.

smtter (Tue, 14 Apr 2020 06:38:26 GMT):
I see. I would say that Postgres would open a much larger audience. Couch and level are obscure but I'm sure were chosen for an important reason. But I have bookmarked that link and will post there when I have time.

chintanr11 (Tue, 14 Apr 2020 06:46:48 GMT):
Hi community, I have 2 HLF networks. The first one has let's say Kafka ordering service and some peers, chaincodes and their ledgers. Second network is null right now (let's say we will derive this network from network A). In network B, I want RAFT based ordering service, different number of peers (could be same too if hard-mandatory) and same transaction history. In short, I need to migrate network A data to network B (has RAFT orderers). What all changes are needed in network A? Should I convert this Kafka OSN to RAFT OSN first and then do a network migration? Followed by these changes, how can I migrate this network A (possibly modified) to network B?

Taffies (Tue, 14 Apr 2020 09:01:53 GMT):
Does anyone know what this error is? I'm trying to create a channel but I keep getting stuck at this step. 😞 `identity 0 does not satisfy principal: The identity is not valid under this MSP [Orgorderer1MSP]: could not validate identity's OUs: certifiersIdentifier does not match: [orderer(D06114360B497E0E) org1(D06114360B497E0E)], MSP: [Orgorderer1MSP]`

Francesco_P (Tue, 14 Apr 2020 09:14:32 GMT):
Hi, why in the guide https://hyperledger-fabric.readthedocs.io/en/release-2.0/developapps/connectionprofile.html#sample when i click on sample link the URL " https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/gateway/networkConnection.yaml " gives 404 ?

Amanullah68 (Tue, 14 Apr 2020 10:02:44 GMT):
Create-Channel - Failed to create the channel. status:BAD_REQUEST reason:error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

japidei (Tue, 14 Apr 2020 11:26:09 GMT):
Has left the channel.

AshutoshKumar7 (Tue, 14 Apr 2020 12:39:36 GMT):
Hi Is there any document/example for creation of production grade distributed network on docker or kubernetes ?

pkirkinezis (Tue, 14 Apr 2020 12:57:23 GMT):
Hi i am playing with test-sample .. I am currently trying to implement a dedicated channel only between org1 and org3 . I successfully created the channel but when i trying to deploy the chain code with a new deployCC file only containing org1 and org3 i get an error "!!!!!!!!!!!!!!! After 5 attempts, Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! " And above that only org1 is true { "approvals": { "Org1MSP": true, "Org3MSP": false } } The chaincode i am using is the default fabcar ..

pkirkinezis (Tue, 14 Apr 2020 12:57:23 GMT):
Hi i am playing with test-sample .. I am currently trying to implement a dedicated channel only between org1 and org3 . I successfully created the channel but when i trying to deploy the chain code with a new deployCC file only containing org1 and org3 i get an error "!!!!!!!!!!!!!!! After 5 attempts, Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! "

pkirkinezis (Tue, 14 Apr 2020 12:57:23 GMT):
Hi i am playing with test-sample .. I am currently trying to implement a dedicated channel only between org1 and org3 . I successfully created the channel but when i trying to deploy the chain code with a new deployCC file only containing org1 and org3 i get an error "!!!!!!!!!!!!!!! After 5 attempts, Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! " And above that only org1 is true { "approvals": { "Org1MSP": true, "Org3MSP": false } }

Anurag28 (Tue, 14 Apr 2020 15:05:04 GMT):
Has joined the channel.

Anurag28 (Tue, 14 Apr 2020 15:05:09 GMT):
Hi, I am trying to write a simple chaincode on Hyperledger Fabric v1.4 to print "hello world! " on terminal. I was able to create crypto materials from crypto-config.yaml & setup a network by configtx.yaml. I have also created a docker-compose file for all containers. But, now I am unable to proceed further. Can anyone please help in proceeding further? I am writing it in node.js. I got files from fabric-samples repository.

garyclark (Tue, 14 Apr 2020 15:35:43 GMT):
Start with fabcar example. Understand all the mappings how it starts up and shutsdown.

Anurag28 (Tue, 14 Apr 2020 15:57:32 GMT):
Thanks @garyclark. Going to do it now!

garyclark (Tue, 14 Apr 2020 15:58:06 GMT):
Cool.

garyclark (Tue, 14 Apr 2020 15:58:17 GMT):
Cool.

rjones (Tue, 14 Apr 2020 16:49:54 GMT):
Has left the channel.

musicmodes (Tue, 14 Apr 2020 18:19:04 GMT):
facing some issue with chaincode

musicmodes (Tue, 14 Apr 2020 18:20:07 GMT):
chaincode example 02 is calling chaincode example 04 and 05

musicmodes (Tue, 14 Apr 2020 18:20:33 GMT):
they both are not available in fabric samples

letch2010 (Tue, 14 Apr 2020 19:24:17 GMT):
Has joined the channel.

letch2010 (Tue, 14 Apr 2020 19:24:22 GMT):
Hello,

Amanullah68 (Tue, 14 Apr 2020 19:53:35 GMT):
Hi Guys

Amanullah68 (Tue, 14 Apr 2020 19:53:39 GMT):
Need help

Amanullah68 (Tue, 14 Apr 2020 19:53:46 GMT):
I got this error

Amanullah68 (Tue, 14 Apr 2020 19:53:49 GMT):
Create-Channel - Failed to create the channel. status:BAD_REQUEST reason:error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Capabilities not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied

Amanullah68 (Tue, 14 Apr 2020 19:53:59 GMT):
don't know what to do

Amanullah68 (Tue, 14 Apr 2020 19:54:13 GMT):
try hard but nothing works

Amanullah68 (Tue, 14 Apr 2020 19:55:25 GMT):
thanks adv.

smtter (Tue, 14 Apr 2020 23:10:44 GMT):
Do you guys think Fabric could scale to 1000s of channels?

smtter (Tue, 14 Apr 2020 23:11:53 GMT):
I ask because of implementations like smart cities

ftgha (Wed, 15 Apr 2020 00:19:54 GMT):
What'd be a good way to add more granularity to identities? i.e. have clients with different access rights

ftgha (Wed, 15 Apr 2020 00:37:30 GMT):
And I assume there's no way to set endorsement policies for key prefixes?

smtter (Wed, 15 Apr 2020 00:54:09 GMT):
ACL

akkolwalkar (Wed, 15 Apr 2020 07:51:57 GMT):
I am having a hard time with hyperledger fabric I am trying this https://github.com/IBM/evote/blob/master/docs/run-local.md example and it fails to work despite following step by step. I am not understanding how to make the CA certificates

akkolwalkar (Wed, 15 Apr 2020 07:52:16 GMT):
how to give identities.

akkolwalkar (Wed, 15 Apr 2020 07:53:03 GMT):

Clipboard - April 15, 2020 1:22 PM

akkolwalkar (Wed, 15 Apr 2020 07:53:27 GMT):

Clipboard - April 15, 2020 1:23 PM

DeepakMule (Wed, 15 Apr 2020 08:02:20 GMT):
I am facing issue when I try to connect HLF2.0 network with remote client (Fabcar), It works perfectly when i run it keeping it on same (local) VM. 2020-04-14T08:40:55.080Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer1.org1.test.com, url:grpcs://172.13.12.194:7051 2020-04-14T08:40:55.081Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.org1.test.com url:grpcs://172.13.12.194:7051 timeout:3000 2020-04-14T08:40:55.083Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer1.org1.test.com due to Error: Failed to connect before the deadline on Endorser- name: pee r1.org1.test.com, url:grpcs://172.13.12.194:7051 at checkState (C:\test\Fabric_sample\fabcar\node_modules\grpc\src\client.js:883:16) { connectFailed: true } 2020-04-14T08:40:58.084Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer2.org1.test.com, url:grpcs://172.13.12.194:7061 2020-04-14T08:40:58.084Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer2.org1.test.com url:grpcs://172.13.12.194:7061 timeout:3000 2020-04-14T08:40:58.085Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer2.org1.test.com due to Error: Failed to connect before the deadline on Endorser- name: pee r2.org1.test.com, url:grpcs://172.13.12.194:7061 at checkState (C:\test\Fabric_sample\fabcar\node_modules\grpc\src\client.js:883:16) { connectFailed: true }

AshutoshKumar7 (Wed, 15 Apr 2020 09:15:26 GMT):
Assuming you are running on cloud say aws , have you configured security group tp open the communication?

DeepakMule (Wed, 15 Apr 2020 09:17:49 GMT):
yes

DeepakMule (Wed, 15 Apr 2020 09:18:20 GMT):
it works properlly when I try to execte from remote it gives me above error

DeepakMule (Wed, 15 Apr 2020 09:19:24 GMT):
I used same connection JSON and changes it to IPaddress of node

DeepakMule (Wed, 15 Apr 2020 09:47:32 GMT):
Do we have sample connection json ?

AnkitKumar021 (Wed, 15 Apr 2020 09:56:12 GMT):
I want to perform private data transaction within a organization. I am having one organization with 4 peers, can I perform private data collection between any two specific peer(peer0.org1.example.com and peer1.org1.example.com) of same organization, If yes then how can I provide policy in config.json file.

Amanullah68 (Wed, 15 Apr 2020 12:23:40 GMT):
Create-Channel - Failed to create the channel. status:BAD_REQUEST reason:error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

Ivankaramazov (Wed, 15 Apr 2020 12:35:15 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

AnkitKumar021 (Wed, 15 Apr 2020 12:47:15 GMT):
I want to perform private data transaction within a organization. I am having one organization with 4 peers, can I perform private data collection between any two specific peer(peer0.org1.example.com and peer1.org1.example.com) of same organization, If yes then how can I provide policy in config.json file.

Taffies (Wed, 15 Apr 2020 13:50:50 GMT):
Hi, I have a question about Node OUs. After enabling OUs, I had this error message while trying to create channel The identity is not valid under this MSP [Orgorderer1MSP]: could not validate identity's OUs: certifiersIdentifier does not match: [orderer(69E26EF5CC944A24)], MSP: [Orgorderer1MSP] It seems that the OU is not recognized under that MSP, even though I have configured the config.yaml file correctly. Does anyone know why this error might occur?

Taffies (Wed, 15 Apr 2020 13:50:50 GMT):
Hi, I have a question about Node OUs. After enabling OUs, I had this error message while trying to create channel `The identity is not valid under this MSP [Orgorderer1MSP]: could not validate identity's OUs: certifiersIdentifier does not match: [orderer(69E26EF5CC944A24)], MSP: [Orgorderer1MSP]` It seems that the OU is not recognized under that MSP, even though I have configured the config.yaml file correctly. Does anyone know why this error might occur?

iqsarv (Wed, 15 Apr 2020 14:41:56 GMT):
Has joined the channel.

iqsarv (Wed, 15 Apr 2020 14:41:57 GMT):
If multiple organisations (say 10) are proposing to form a consortium and they wish each of them run a orderer for decentralization, doesn't this make it difficult for RAFT to scale (as RAFT does not perform well in a config of >7 nodes)?

Mms 11 (Wed, 15 Apr 2020 14:49:15 GMT):
Is there a configuration option that prevents or needs to be updated when deploying more than two chaincodes on one peer ? I have series difficulty with deploying the third chaincode on a two org network.

BrettLogan (Wed, 15 Apr 2020 17:25:31 GMT):
No, what issue are you seeing? Where are you running the peer, in a VM on Docker? Is it possible you are resource startved?

BrettLogan (Wed, 15 Apr 2020 17:26:40 GMT):
What makes you say RAFT doesn't perform well with > 7 nodes? I've never read that and would be interested in reading that

BrettLogan (Wed, 15 Apr 2020 17:33:53 GMT):
In general, Fabric has tested organizations with up to 100 Orderers. The clusters operated just fine, you do have to take into consideration that the leader has to send information to the 99 other nodes, so you may have to increase resources to maintain absolute performance, but you should be able to operate a network with no problem at 10 or even more. It's also worth noting, the fault tolerance you get on fabric has serious diminishing returns in configurations greater than 5 nodes in comparison to the overhead in running large orderer clusters

Tim (Wed, 15 Apr 2020 17:37:01 GMT):
Hi, I try to use the Idemix feature, I run a Fabric Ca Docker, inside I do the idemix enrollment command for the admin user. Next I setup the idemix inside the configtx.yaml, and copy from the Fabric Ca Both keys (IssuerPublicKey & RevocaPublicKey) in the right crypto-config directory (idemix.org1example.com). Now how can I use the node sdk to do some transactionSubmits with the idemix ?? By the way I got in the Fabric Ca Docker from the idemix enrollment a SignerConfig file which contain credentials, can I use them ? Like import in node sdk wallet and run some transactions ?? Thanks a lot.

Tim (Wed, 15 Apr 2020 17:37:01 GMT):
Hi, I try to use the Idemix feature, I run a Fabric Ca Docker, inside I do the idemix enrollment command for the admin user. Next I setup the idemix inside the configtx.yaml, and copy from the Fabric Ca Both keys (IssuerPublicKey & RevocaPublicKey) in the right crypto-config directory (idemix.org1.example.com). Now how can I use the node sdk to do some transactionSubmits with the idemix ?? By the way I got in the Fabric Ca Docker from the idemix enrollment a SignerConfig file which contain credentials, can I use them ? Like import in node sdk wallet and run some transactions ?? Thanks a lot.

davidkel (Wed, 15 Apr 2020 17:57:52 GMT):
From a client side, node sdk doesn't support idemix identities. The Java SDK does but the gateway apis that provide the wallet implementation don't support these types of identity. You won't be able to use the Java Gateway api. I am not sure if the Go SDK supports idemix or not.

Mms 11 (Wed, 15 Apr 2020 18:45:36 GMT):
I'm running them in a docker compose (all based on byfn and commercial paper scripts). When I deploy the 3 chaincode almost never gets passed.

Mms 11 (Wed, 15 Apr 2020 18:46:11 GMT):
Sometimes it will be timing out for 3-5 minutes.

Mms 11 (Wed, 15 Apr 2020 18:46:51 GMT):
Well from the resources monitor it doesn't look bad. I have 16GB (MacBookPro) and I have 12-13GB used + 50% cpu

BrettLogan (Wed, 15 Apr 2020 19:02:16 GMT):
What error are you seeing when installing the 3rd chaincode?

BrettLogan (Wed, 15 Apr 2020 19:02:48 GMT):
Does the 3rd container start? Or is it failing before the container starts

Mms 11 (Wed, 15 Apr 2020 19:05:17 GMT):
It doesn't get installed. Sometimes I need to push the deployment manually.

BrettLogan (Wed, 15 Apr 2020 19:06:03 GMT):
How does the 3rd chaincode differ from the first two: what language is it, what language is the first two?

Mms 11 (Wed, 15 Apr 2020 19:07:26 GMT):
All are very similar, (all are java) they store a list of records in cauchDb. Last time I tried deploying it caused each chaincode to re instantiate

BrettLogan (Wed, 15 Apr 2020 19:08:40 GMT):
What is the Log Level of your peer, if it's not in debug mode can you put it in debug, attempt to install the chaincode and then share the logs.

BrettLogan (Wed, 15 Apr 2020 19:08:54 GMT):
It's possible you may be hitting installation timeouts

Mms 11 (Wed, 15 Apr 2020 19:23:16 GMT):
So this is what I just reseved:

Mms 11 (Wed, 15 Apr 2020 19:23:16 GMT):
So this is what I just received : Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ mktemp -d + TMP_DIR=/tmp/tmp.cACOEp ++ find /chaincode/input -name .jar ++ paste -s -d : - + JARS= ++ wc -l ++ find /chaincode/input -name '*.jar' + NUM_JARS=1 Copying from /chaincode/input/src to /tmp/tmp.cACOEp + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + echo 'Copying from /chaincode/input/src to /tmp/tmp.cACOEp' + cd /chaincode/input/src + cd /tmp/tmp.cACOEp + tar cf - . + tar xf - + cd /tmp/tmp.cACOEp + echo 'Gradle build' + '[' -f ./gradlew ']' + chmod +x ./gradlew Gradle build + ./gradlew build shadowJar -x test Downloading https://services.gradle.org/distributions/gradle-6.3-all.zip Exception in thread "main" javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1322) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1160) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1063) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:402) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at org.gradle.wrapper.Download.downloadInternal(Download.java:67) at org.gradle.wrapper.Download.download(Download.java:52) at org.gradle.wrapper.Install$1.call(Install.java:62) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63) Caused by: java.io.EOFException: SSL peer shut down incorrectly at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:167) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:108) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1152) ... 15 more

Mms 11 (Wed, 15 Apr 2020 19:23:16 GMT):
So this is what I just received : ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ mktemp -d + TMP_DIR=/tmp/tmp.cACOEp ++ find /chaincode/input -name .jar ++ paste -s -d : - + JARS= ++ wc -l ++ find /chaincode/input -name '*.jar' + NUM_JARS=1 Copying from /chaincode/input/src to /tmp/tmp.cACOEp + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + echo 'Copying from /chaincode/input/src to /tmp/tmp.cACOEp' + cd /chaincode/input/src + cd /tmp/tmp.cACOEp + tar cf - . + tar xf - + cd /tmp/tmp.cACOEp + echo 'Gradle build' + '[' -f ./gradlew ']' + chmod +x ./gradlew Gradle build + ./gradlew build shadowJar -x test Downloading https://services.gradle.org/distributions/gradle-6.3-all.zip Exception in thread "main" javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1322) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1160) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1063) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:402) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at org.gradle.wrapper.Download.downloadInternal(Download.java:67) at org.gradle.wrapper.Download.download(Download.java:52) at org.gradle.wrapper.Install$1.call(Install.java:62) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63) Caused by: java.io.EOFException: SSL peer shut down incorrectly at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:167) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:108) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1152) ... 15 more ```

BrettLogan (Wed, 15 Apr 2020 19:41:45 GMT):
If you change into your chaincode and run `./gradlew build shadowJar -x test` do you get an error

Mms 11 (Wed, 15 Apr 2020 20:20:15 GMT):
no, the build runs successfully.

Mms 11 (Wed, 15 Apr 2020 20:26:20 GMT):
also, if I try to deploy and install the last chaincode first on the network it works great. The third, nevertheless which chaincode will be always problematic.

BrettLogan (Wed, 15 Apr 2020 20:32:53 GMT):
Can you send me your full log, and if the chaincode isn't proprietary, can you zip all 3 together and upload it to Google Drive or somewhere and shoot me a link in a private message. I'll run it through one of our internal tools to deploy it all and see if we encounter the same issue

BrettLogan (Wed, 15 Apr 2020 20:32:58 GMT):
Also what version of fabric are you on

FilipeSilva (Wed, 15 Apr 2020 20:55:48 GMT):
hi,

FilipeSilva (Wed, 15 Apr 2020 20:56:32 GMT):
even though logically makes sense speaking about the `channel` and `local MSP

FilipeSilva (Wed, 15 Apr 2020 20:56:32 GMT):
even though logically makes sense speaking about the `channel` and `local` MSP

FilipeSilva (Wed, 15 Apr 2020 20:56:32 GMT):
Even though logically makes sense speaking about the `channel` and `local` MSP

FilipeSilva (Wed, 15 Apr 2020 20:57:59 GMT):
are there two separate instances in the file system for these two logical units?

FilipeSilva (Wed, 15 Apr 2020 20:57:59 GMT):
Are there actually two separate instances in the file system for these two logical units?

FilipeSilva (Wed, 15 Apr 2020 21:19:37 GMT):
I think the `channel` MSP is somehow built from every `local` MSP and is stored maybe in the genesis block, yet, no physical manifestation of the `channel` MSP is available

FilipeSilva (Wed, 15 Apr 2020 21:20:38 GMT):
can you confirm my thesis?

darksidergod (Wed, 15 Apr 2020 21:21:07 GMT):
Has joined the channel.

darksidergod (Wed, 15 Apr 2020 21:21:09 GMT):
Hi, i'm new to hyperledger fabric, I wanted to add custom attributes to the identities issued by the fabric-ca. Please help.

FilipeSilva (Wed, 15 Apr 2020 22:45:38 GMT):
What is the purpose of `LOCALMSPID` when we have already the variable `CORE_PEER_MSPCONFIGPATH` ?

FilipeSilva (Wed, 15 Apr 2020 22:46:13 GMT):
Are not the `ID` and `path` referring to the same MSP?

braduf (Thu, 16 Apr 2020 00:27:40 GMT):
LOCALMSPID is the ID of the MSP it belongs to and CORE_PEER_MSPCONFIGPATH is the path to the criptographic material identifying this component. With the MSP defined at a channel level, all participants can verify that this cryptographic material is derived and so part of the MSP that is specified.

braduf (Thu, 16 Apr 2020 00:27:40 GMT):
LOCALMSPID is the ID of the MSP it belongs to and CORE_PEER_MSPCONFIGPATH is the path to the criptographic material identifying this component. With the MSP defined at a channel level, all participants can verify that this cryptographic material is derived from and so part of the MSP that is specified.

braduf (Thu, 16 Apr 2020 00:27:40 GMT):
LOCALMSPID is the ID of the MSP it belongs to and CORE_PEER_MSPCONFIGPATH is the path to the criptographic material identifying this component. With the MSP configured at a channel level, all participants can verify that this cryptographic material is derived from and so part of the MSP that is specified.

braduf (Thu, 16 Apr 2020 00:27:40 GMT):
LOCALMSPID is the ID of the MSP the component belongs to and CORE_PEER_MSPCONFIGPATH is the path to the criptographic material identifying this component. With the MSP configured at a channel level, all participants can verify that this cryptographic material is derived from and so part of the MSP that is specified.

MarioJung (Thu, 16 Apr 2020 03:45:43 GMT):
Has joined the channel.

MarioJung (Thu, 16 Apr 2020 03:45:45 GMT):
Hi, I want to decode a block data on java application. I've got the block data from my network. I can't decode block data(org.hyperledger.fabric.protos.common.Common.BlockData). Let me know the examples for decoding a hyperledger fabric block on java.

Jax.dev (Thu, 16 Apr 2020 05:39:05 GMT):
Trying to extract channel.tx file but facing issue -Illegal offset: 0 <= 1 (+1) <= 1 Code snippet: const Client = require('fabric-client'); const client = new Client(); let envelope_bytes = await getFileContent("/channel-artifacts/channel-artifacts/channel.tx", "fabriccerts"); //user defined function to get file content let config_update = client.extractChannelConfig(envelope_bytes); Can anyone help me where I'm doing wrong? This is on google cloud function using google bucket to store fabric certs

Tim (Thu, 16 Apr 2020 07:31:59 GMT):
Thanks David, ok so with the java sdk I can do idemix enrollment but after that I can't use that sdk to execute transactions. To use the enrolled idemix user and execute txs, I need to run in a terminal the peer binary command. Is there any other way to execute Idemix txs ??

davidkel (Thu, 16 Apr 2020 07:42:13 GMT):
You can use the Java SDK to send transaction proposals, collect those proposals and send them to the orderer (sometimes referred to as the low level api) what you can't use is the java-gateway api (sometimes referred to as the high level api)

Tim (Thu, 16 Apr 2020 07:45:38 GMT):
Ah ok my bad I misunderstood, I need to try out Thx

Paradox-AT (Thu, 16 Apr 2020 07:54:00 GMT):
Hey guys how do I get the certificates and key after enrolling? I mean suppose we corrupted the wallet folder the again want to get those certificates

MarioJung (Thu, 16 Apr 2020 08:51:31 GMT):
You can recreate your wallet with your new certificate and private key. See the following URL. https://hyperledger-fabric.readthedocs.io/en/release-2.0/developapps/wallet.html

Paradox-AT (Thu, 16 Apr 2020 08:53:49 GMT):
I can't, to reenroll the user I need current user certificates

Paradox-AT (Thu, 16 Apr 2020 08:55:01 GMT):
If I try enrolling I am getting already enrolled error

Paradox-AT (Thu, 16 Apr 2020 08:55:01 GMT):
If I try enrolling I am getting already enrolled error @MarioJung

MarioJung (Thu, 16 Apr 2020 08:55:57 GMT):
are you using a ca-server?

Paradox-AT (Thu, 16 Apr 2020 08:56:09 GMT):
yes

MarioJung (Thu, 16 Apr 2020 08:59:36 GMT):
your id have been registered on you ca-server already. you have to get certificate and private key again from ca. and you recreate wallet without enroll operation.

Paradox-AT (Thu, 16 Apr 2020 09:00:08 GMT):
How do I get the certificates and key again from the ca?

Paradox-AT (Thu, 16 Apr 2020 09:00:08 GMT):
How do I get the certificates and key again from the ca-server?

Paradox-AT (Thu, 16 Apr 2020 09:00:08 GMT):
How do I get the certificates and key again from the ca-server? @MarioJung

MarioJung (Thu, 16 Apr 2020 09:07:24 GMT):
you can use fabric-ca-client to get new cert info.

MarioJung (Thu, 16 Apr 2020 09:07:26 GMT):
bin/fabric-ca-client -u https://admin:adminpw@ca.example.com:7054

FilipeSilva (Thu, 16 Apr 2020 09:09:28 GMT):
Hi,

Paradox-AT (Thu, 16 Apr 2020 09:10:11 GMT):
but what command?

Paradox-AT (Thu, 16 Apr 2020 09:10:23 GMT):
``` Available Commands: affiliation Manage affiliations certificate Manage certificates enroll Enroll an identity gencrl Generate a CRL gencsr Generate a CSR getcainfo Get CA certificate chain and Idemix public key identity Manage identities reenroll Reenroll an identity register Register an identity revoke Revoke an identity version Prints Fabric CA Client version ```

MarioJung (Thu, 16 Apr 2020 09:10:47 GMT):
I don't know how to use the tool very well. But I think it will be easy to find on Google.

Paradox-AT (Thu, 16 Apr 2020 09:11:18 GMT):
I am trying to get it for a while now

Paradox-AT (Thu, 16 Apr 2020 09:11:21 GMT):
no success

Paradox-AT (Thu, 16 Apr 2020 09:12:14 GMT):
I just need to know the command, I'll check for the sdk by myself

FilipeSilva (Thu, 16 Apr 2020 09:23:44 GMT):
Something I cannot wrap my head around is how how applications validate a transaction proposal response of a given node if they do not have access to the node's signing certificate

FilipeSilva (Thu, 16 Apr 2020 09:23:44 GMT):
Something I cannot wrap my head around is how applications validate a `transaction proposal response` of a given node if they do not have access to the node's `signing certificate`

FilipeSilva (Thu, 16 Apr 2020 09:24:42 GMT):
As far as I know the node's signing certificate is inside the folder `signcerts` which is only availabe in the local MSP, is not it?

Paradox-AT (Thu, 16 Apr 2020 13:31:40 GMT):
You attach an identity to the gateway rt? That is used to validate it.

Paradox-AT (Thu, 16 Apr 2020 13:32:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KovgFtjpvfhZaMawv) Guys any leads..?

FilipeSilva (Thu, 16 Apr 2020 14:22:16 GMT):
I guess that identity is for the application not the endorsing peer

MumtahinHabib (Thu, 16 Apr 2020 14:43:55 GMT):
I was trying Hyper ledger go contract api documentation. here I was trying to run the chaincode. there was a note, Note: ensure you have the correct permissions configured on your contract-tutorial folder for docker to create files there. Running chmod -R 766 should set the correct permission levels. I run that given command chmod -R 766 but then again while i tried go build, it showed permission denied as following: go: writing go.sum: open /opt/gopath/src/chaincode/contract-tutorial/go.sum376246724.tmp: permission denied

MumtahinHabib (Thu, 16 Apr 2020 14:43:55 GMT):
I was trying Hyper ledger go contract api documentation. here I was trying to run the chaincode. there was a note, Note: ensure you have the correct permissions configured on your contract-tutorial folder for docker to create files there. Running chmod -R 766 should set the correct permission levels. I run that given command chmod -R 766 but then again while i tried go build, it showed permission denied as following: go: writing go.sum: open /opt/gopath/src/chaincode/contract-tutorial/go.sum376246724.tmp: permission denied can someone pls help me

valentine81 (Thu, 16 Apr 2020 16:20:49 GMT):
Has joined the channel.

valentine81 (Thu, 16 Apr 2020 16:20:51 GMT):
Hi All, I've installed hyperledger and used another app to build on the fabric network. Unfortunately cannot start it, as there's an error message. Any thoughts on it? `[error] (run-main-0) com.hacera.FabricContextException: Chaincode instantiation failed with code 500 (error starting container: error starting container: API error (404): network daml-on-fabric_default not found) `

valentine81 (Thu, 16 Apr 2020 16:20:51 GMT):
Hi All, I've installed hyperledger and used another app to build on the fabric network. Unfortunately cannot start it, as there's an error message. Seems docker issue somewhere. Any thoughts on it? `[error] (run-main-0) com.hacera.FabricContextException: Chaincode instantiation failed with code 500 (error starting container: error starting container: API error (404): network daml-on-fabric_default not found) `

valentine81 (Thu, 16 Apr 2020 16:20:54 GMT):
Thanks in advance

jaraujo (Thu, 16 Apr 2020 17:22:19 GMT):
Has joined the channel.

ftgha (Thu, 16 Apr 2020 18:39:39 GMT):
Is anyone else unable to package smart contracts with the current version (v1.0.26) of the vscode plugin?

ftgha (Thu, 16 Apr 2020 18:39:39 GMT):
Is anyone else unable to package (typescript) smart contracts with the current version (v1.0.26) of the vscode plugin?

jaraujo (Thu, 16 Apr 2020 19:19:51 GMT):
Hi guys! I've tried several times deploying a Java Contract using Fabric 2.0.1 but every time I commit the chaincode, Fabric can't instantiate a dev-peer. It's just a simple chaincode that implements ContractInterface. Does anyone know what could it be? I'm using Maven as a dependency tool

braduf (Thu, 16 Apr 2020 20:53:37 GMT):
Because the CA certs of the organization of the endorsing node (= the certificates of the Certificate Authorities that issued the signing certificate of the endorsing node) are configured in the blockchain. Since they are in the blockchain, all nodes and and also applications can know them and can validate that the signing cert was emited by the correct CA, and like this they can know to which organization the endorsing peer belongs, because the CA certs are defined in the MSP of a specific organization.

braduf (Thu, 16 Apr 2020 20:53:37 GMT):
Because the CA certs of the organization of the endorsing node (= the certificates of the Certificate Authorities that issued the signing certificate of the endorsing node) are configured in the blockchain. Since they are in the blockchain, all nodes and also applications can know them and can validate that the signing cert was emited by the correct CA, and like this they can know to which organization the endorsing peer belongs, because the CA certs are defined in the MSP of a specific organization.

braduf (Thu, 16 Apr 2020 20:55:23 GMT):
I think it is still something about permissions on your system and not something related to Fabric...

MHBauer (Thu, 16 Apr 2020 21:17:18 GMT):
Has left the channel.

FilipeSilva (Thu, 16 Apr 2020 22:23:54 GMT):
well, I thought the signature of the message by the endorsing node was done with the endorsing node's private key

FilipeSilva (Thu, 16 Apr 2020 22:25:12 GMT):
but based on what you have said the endorsing node signs the message with its signing certificate, is not it?

braduf (Thu, 16 Apr 2020 22:27:52 GMT):
No, you are right, signing is done with it's private key, but the public key of its signing certificate is derived from his private key, and it is included in the endorsement and like this his identity is known. The certificate gives the private key an identity...

braduf (Thu, 16 Apr 2020 22:27:52 GMT):
No, you are right, signing is done with the private key, but the public key of the signing certificate is derived from that private key, and it is included in the endorsement and like this his identity is known. The certificate gives the private key an identity...

FilipeSilva (Thu, 16 Apr 2020 22:34:07 GMT):
I am kind of confused

FilipeSilva (Thu, 16 Apr 2020 22:34:33 GMT):
so you sign the message with your private key and also attach your signing certificate, right?

braduf (Thu, 16 Apr 2020 22:43:54 GMT):
yes, that way it can be validated that it was really the identity of the certificate that signed the message. If another private key would be used to sign a message with the same certificate, the signature would be invalid.

braduf (Thu, 16 Apr 2020 22:47:18 GMT):
So you share the message, the certificate and the signature.

Jax.dev (Fri, 17 Apr 2020 04:03:43 GMT):
https://stackoverflow.com/questions/61243565/not-able-to-extract-channel-config-file-using-fabric-client request for help to fix this issue

JonnaMadhavi (Fri, 17 Apr 2020 07:43:16 GMT):
Has joined the channel.

JonnaMadhavi (Fri, 17 Apr 2020 07:43:17 GMT):
Hello pls help me what type of certificate need to procure from CA. Tried DV and it’s not supported. Need to know whether to go with OV, EV or any other specific. Root certificate should be ECC compliant. Key usage: Digital Signature, Key Encipherment, Certificate Signing, Off-line CRL Signing, CRL Signing (a6). Any third party CAs

FilipeSilva (Fri, 17 Apr 2020 08:21:08 GMT):
I think I got it finally

FilipeSilva (Fri, 17 Apr 2020 08:21:15 GMT):
thank you for your help

FilipeSilva (Fri, 17 Apr 2020 09:08:02 GMT):
why do we have to create a separate channel transaction for adding an anchor peer when starting a new channel from scratch

FilipeSilva (Fri, 17 Apr 2020 09:09:11 GMT):
should not the initial channel transaction grab that info from the `configtx.yaml`?

chintanr11 (Fri, 17 Apr 2020 14:04:26 GMT):
Hi, I am trying to migrate RAFT cluster (2n orderers) from one host to another. Switch to channel maintenance mode. I update the orderer Addresess (all) in host A, update (n+1) orderer TLS consenter certs. Repeat with app channel. Bring down entire network. Bring up the network on host B with the previous (n+1) orderers .. RAFT consensus is back so now update consenter TLS cert for rest of the (n-1) orderers in sys channel and app channel. Check for Raft election. Switch the STATE_NORMAL for both channels. But now I invoke chaincode from peer, it is successful but on querying it shows old record only. The ledger is not updated on Peer. https://stackoverflow.com/questions/61273503/migrating-raft-ordering-service-from-one-host-to-another

chintanr11 (Fri, 17 Apr 2020 14:04:26 GMT):
Hi, I am trying to migrate RAFT cluster (2n+1 orderers) from one host to another. Switch to channel maintenance mode. I update the orderer Addresess (all) in host A, update (n+1) orderer TLS consenter certs. Repeat with app channel. Bring down entire network. Bring up the network on host B with the previous (n+1) orderers .. RAFT consensus is back so now update consenter TLS cert for rest of the (n) orderers in sys channel and app channel. Check for Raft election. Switch the STATE_NORMAL for both channels. But now I invoke chaincode from peer, it is successful but on querying it shows old record only. The ledger is not updated on Peer. https://stackoverflow.com/questions/61273503/migrating-raft-ordering-service-from-one-host-to-another

Taaanos (Fri, 17 Apr 2020 14:20:09 GMT):
Can I use the `contract-api-go` for couchdb queries?

Taaanos (Fri, 17 Apr 2020 14:20:09 GMT):
Can I use the `fabric-contract-api` for couchdb queries?

Taaanos (Fri, 17 Apr 2020 14:20:09 GMT):
Can I use the `fabric-contract-api-go` for couchdb queries?

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I three machines. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to change these timers and extend the timeouts?

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to change these timers and extend the timeouts?

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to change these timers and extend the timeouts?GRPC_WAIT_FOR_READY_TIMEOUT is this it? Is the default 3 sec, i.e 3000ms.

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network in a 1.4 fabric. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to tune these timers and extend the timeouts? GRPC_WAIT_FOR_READY_TIMEOUT is this it? Is the default 3 sec, i.e 3000ms.

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network in a 1.4 fabric. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing a problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to tune these timers and extend the timeouts? GRPC_WAIT_FOR_READY_TIMEOUT is this it? Is the default 3 sec, i.e 3000ms.

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network in a 1.4 fabric. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing a problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to tune these timers and extend the timeouts? GRPC_WAIT_FOR_READY_TIMEOUT is this it? Is the default 3 sec, i.e 3000ms. - CORE_CHAINCODE_EXECUTETIMEOUT=60S - CORE_PEER_KEEPALIVE_CLIENT_TIMEOUT=60S - CORE_PEER_KEEPALIVE_DELIVERYCLIENT_TIMEOUT=60S

garyclark (Fri, 17 Apr 2020 14:45:47 GMT):
Hello, I have three machines in my network in a 1.4 fabric. Each machine is one organization with one peer. I have 2 machines working like a champ. The 3rd machine is slower. Its causing a problem when adding anchors port 7051. Hence timeouts are occurring. Failing to connect. What are the environment variable to tune these timers and extend the timeouts? GRPC_WAIT_FOR_READY_TIMEOUT is this it? Is the default 3 sec, i.e 3000ms. - CORE_CHAINCODE_EXECUTETIMEOUT=60S - CORE_PEER_KEEPALIVE_CLIENT_TIMEOU - CORE_PEER_KEEPALIVE_DELIVERYCLIENT_TIMEOUT=60S.

garyclark (Fri, 17 Apr 2020 14:54:00 GMT):
GRPC_WAIT_FOR_READY_TIMEOUT is this it?

garyclark (Fri, 17 Apr 2020 15:51:45 GMT):
I need to set the FABRIC_CFG_PATH to point to the core.yaml.

garyclark (Fri, 17 Apr 2020 15:51:45 GMT):
I need to set the FABRIC_CFG_PATH to point to my core.yaml and tune these timeouts. When using docker it has its own default /etc/hyperledger/fabric..

garyclark (Fri, 17 Apr 2020 15:51:45 GMT):
I need to set the FABRIC_CFG_PATH to point to my core.yaml and tune these timeouts. When using docker it has its own default /etc/hyperledger/fabric for FABRIC_CFG_PATH.

FilipeSilva (Fri, 17 Apr 2020 19:35:11 GMT):
when running the command `peer lifecycle chaincode approveformyorg --channelID $CHANNEL_NAME --name mycc --version 1.0 --init-required --package-id $CC_PACKAGE_ID --sequence 1 --tls true --cafile $PATH_TO_TLS`

FilipeSilva (Fri, 17 Apr 2020 19:35:11 GMT):
when running the command `peer lifecycle chaincode approveformyorg --channelID $CHANNEL_NAME ...`

FilipeSilva (Fri, 17 Apr 2020 19:36:12 GMT):
I am getting a message at the end like this `Error`

FilipeSilva (Fri, 17 Apr 2020 19:36:12 GMT):
I am getting a message at the end like this `Error: timed out waiting for txid on all peers`

FilipeSilva (Fri, 17 Apr 2020 19:38:25 GMT):
I suppose the peers within the Org are not endorsing this chaincode definition

FilipeSilva (Fri, 17 Apr 2020 19:38:38 GMT):
but how can I debug that? any clues?

Rachit-gaur (Fri, 17 Apr 2020 19:54:49 GMT):
Hi, Can anyone guide me what is the best way to take inputs in chaincode?

Rachit-gaur (Fri, 17 Apr 2020 19:55:20 GMT):
in array like [0,1,2,3,4,5] or in json as ['{a:0,b:1,c:2}']

Rachit-gaur (Fri, 17 Apr 2020 19:56:59 GMT):
I want to create/register owner for which i have to save 10 inputs. What would be the best case? shall i convert them into array at nodejs level or shall i send the json directly to the chaincode

Mms 11 (Fri, 17 Apr 2020 20:05:34 GMT):
I pass a json object when it comes to complex data or arrays of objects.

Mms 11 (Fri, 17 Apr 2020 20:06:11 GMT):
I don't know yet what is the max limit but so far everything works ;)

Rachit-gaur (Fri, 17 Apr 2020 21:37:54 GMT):
Anyone online?

YaswanthSorapalli (Sat, 18 Apr 2020 06:06:14 GMT):
Has joined the channel.

YaswanthSorapalli (Sat, 18 Apr 2020 06:06:33 GMT):
Can anyone tell me that where the credentials uploaded in server (which was hosted somewhere i.e. aws). Custom blockchain was deployed on that aws server. All the credentials uploaded by agents will be stored in server or not? If stored in which format (encoded or not)?

TimoGlastra (Sat, 18 Apr 2020 12:57:43 GMT):
Has left the channel.

nvxtien (Sat, 18 Apr 2020 15:54:09 GMT):
Hi there,

nvxtien (Sat, 18 Apr 2020 15:54:49 GMT):
I am deploying a fabric network using docker swarm.

nvxtien (Sat, 18 Apr 2020 15:55:20 GMT):
But port forwarding does not work.

nvxtien (Sat, 18 Apr 2020 15:55:45 GMT):
2020-04-18 15:40:03.307 UTC [peer] getLocalAddress -> INFO 01c Auto-detected peer address: 10.255.0.18:8051 2020-04-18 15:40:03.308 UTC [peer] getLocalAddress -> INFO 01d Returning peer0.org2.example.com:8051 2020-04-18 15:40:03.314 UTC [msp] GetDefaultSigningIdentity -> DEBU 01e Obtaining default signing identity 2020-04-18 15:40:03.318 UTC [nodeCmd] serve -> FATA 01f Failed to create peer server (listen tcp 10.0.0.2:8051: bind: cannot assign requested address)

nvxtien (Sat, 18 Apr 2020 15:56:13 GMT):
Could any help me on this problem?

musicmodes (Sat, 18 Apr 2020 18:11:26 GMT):
can i modify chaincode example 02

BrettLogan (Sat, 18 Apr 2020 21:55:35 GMT):
How many peers are you launching?

BrettLogan (Sat, 18 Apr 2020 21:56:17 GMT):
Presumably more than one, in which case you need to override the default ports, otherwise your second peer will be in conflict with your first peers ports

jaideep27 (Sat, 18 Apr 2020 22:49:59 GMT):
Has joined the channel.

jaideep27 (Sat, 18 Apr 2020 22:50:01 GMT):
hi i'm working on hyperledger fabric but i'm unable to start network getting error on running ./byfn.sh up ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied ERROR !!!! Unable to start network

NewAlexandria (Sun, 19 Apr 2020 01:29:54 GMT):
Has joined the channel.

nvxtien (Sun, 19 Apr 2020 09:24:36 GMT):
2 Orgs, 4 peers

musicmodes (Sun, 19 Apr 2020 10:18:50 GMT):
chaincode example 02 can be modified in hyperledger 1.x ?

musicmodes (Sun, 19 Apr 2020 10:29:25 GMT):
help

usamahabib95 (Sun, 19 Apr 2020 13:28:21 GMT):
Hi is there any method by which we can query ledger by transactionID using the nodejs SDK

NewAlexandria (Sun, 19 Apr 2020 15:06:46 GMT):
I remember reading that there was a way to configure all peers to accept a new node as a the genesis node. E.G. like 'block 21532 is the new genesis node'

NewAlexandria (Sun, 19 Apr 2020 15:07:08 GMT):
Does anyone else recall that? Can point me to a doc? I'm having a hard time looking it up

BrettLogan (Sun, 19 Apr 2020 18:53:20 GMT):
You can provide either the original genesis block, or more commonly the lastest config block to bootstrap a new orderer. So you can use the `peer channel fetch`with the `-config` option to fetch the latest config block from an existing node, and use that to bootstrap the orderer

MunjalPatel (Sun, 19 Apr 2020 19:35:57 GMT):
Has joined the channel.

MunjalPatel (Sun, 19 Apr 2020 19:36:00 GMT):
In Hyperledger Fabric 2.0, while approving chaincode definition step (using peer lifecycle chaincode approveformyorg command), I am getting 'Error: failed to retrieve broadcast client: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused"'. How can I solve this issue? Any clues?

NewAlexandria (Sun, 19 Apr 2020 22:46:21 GMT):
have you validated that client is available to the box that's calling it? THis sounds like an issue unrelated to the HLF or chaincode

Taffies (Mon, 20 Apr 2020 02:15:58 GMT):
Hello, when I'm trying to commit chaincode to channel in 2.0, I had this error message: `grpc: addrConn.createTransport failed to connect to {peer0.org2:7051 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate is valid for peer0.org2, not peer0.org1". Reconnecting...` which led to this other message: `Error: failed to retrieve endorser client for commit: endorser client failed to connect to peer0.org2:7051: failed to create new connection: context deadline exceeded` Does anyone know what this issue is & how I should solve it?

BrettLogan (Mon, 20 Apr 2020 03:34:31 GMT):
You presented the tls certificates for the wrong peer. You need the tls certs from the `peer0.org1` peer, you presented the certs for `peer0.org2` peer

BrettLogan (Mon, 20 Apr 2020 03:34:31 GMT):
You presented the tls certificates for the wrong peer. You need the tls certs from the `peer0.org1` mso

BrettLogan (Mon, 20 Apr 2020 03:34:31 GMT):
You presented the tls certificates for the wrong peer. You need the tls certs from the `peer0.org1`, you presented the certs for `peer0.org2`

Taffies (Mon, 20 Apr 2020 03:37:29 GMT):
I'm trying to connect to `peer0.org2` though.. I think my peers can't communicate with peers from other orgs from the container

Taffies (Mon, 20 Apr 2020 03:37:29 GMT):
I'm trying to connect to `peer0.org2` though.. I think my peers can't communicate with other peers from the container

BrettLogan (Mon, 20 Apr 2020 03:39:34 GMT):
What is the command you are running and what is the output of `env | grep peer`

BrettLogan (Mon, 20 Apr 2020 03:40:36 GMT):
The second error is exactly what you would expect to see if you presented the wrong tls cert. And the first error is literally saying, you are presenting the wrong cert. So something else is amiss

Taffies (Mon, 20 Apr 2020 03:41:54 GMT):
I'm running: `peer lifecycle chaincode commit -o orderer0.orgorderer1:7050 --tls true --cafile /data/orgorderer1-ca-chain.pem --clientauth true --keyfile /data/tls/org1-cli-client.key --certfile /data/tls/org1-cli-client.crt --channelID mychannel --name trade_cc1 --version 1.0 --init-required --sequence 1 --peerAddresses peer0.org1:7051 --tlsRootCertFiles /data/org1-ca-chain.pem --peerAddresses peer0.org2:7051 --tlsRootCertFiles /data/org2-ca-chain.pem` env | grep peer: ``` CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0.org1 CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1:7051 CORE_PEER_ID=peer0.org1 PWD=/opt/gopath/src/github.com/hyperledger/fabric/peer CORE_PEER_ADDRESS=peer0.org1:7051 ```

BrettLogan (Mon, 20 Apr 2020 03:43:14 GMT):
Your environment variables are still pointing to peer1

BrettLogan (Mon, 20 Apr 2020 03:43:21 GMT):
Update them to point to peer2

BrettLogan (Mon, 20 Apr 2020 03:43:36 GMT):
They override the values you are passing in

BrettLogan (Mon, 20 Apr 2020 03:44:08 GMT):
Or use `unset CORE_PEER_ADDRESS` to unset them

Taffies (Mon, 20 Apr 2020 03:44:13 GMT):
Oh! But I'm trying to connect to both peers for endorsement, if I update to the other peer, wouldn't the same error occur for the first peer?

BrettLogan (Mon, 20 Apr 2020 03:46:03 GMT):
To submit to multiple peers for endorsement the value of `--peerAddresses` is an array of strings

BrettLogan (Mon, 20 Apr 2020 03:46:03 GMT):
To submit to multiple peers for endorsement the value of `--peerAddress` is an array of strings

BrettLogan (Mon, 20 Apr 2020 03:47:26 GMT):
and then your tls certs are also an array, and they must be in the same order in which you specify the peers in the `--peerAddresses` flag

Taffies (Mon, 20 Apr 2020 03:51:35 GMT):
I removed the `CORE_PEER_TLS_SERVERHOSTOVERRIDE`, `CORE_PEER_CHAINCODELISTENADDRESS` and `CORE_PEER_ADDRESS`, I could connect to another peer without error.

Taffies (Mon, 20 Apr 2020 03:52:31 GMT):
Regarding the --peerAddresses and --tlsRootCertFiles, I followed the example on test-network/deploying a smart contract tutorial, so I don't think that's an issue. I will try again with multiple peers using the same format I'm using, and update this thread again

Taffies (Mon, 20 Apr 2020 03:53:20 GMT):
Thanks alot @BrettLogan! :grinning:

Taffies (Mon, 20 Apr 2020 04:13:29 GMT):
Yup, just tested it & the format I used works just fine for multiple peers and tls certs

chintanr11 (Mon, 20 Apr 2020 05:34:36 GMT):
Could anyone explain the reason for this error: panic: Told to write a config block with new config, but could not apply it: config currently at sequence 1, cannot validate config at sequence 3 I got it while performing system channel configuration update. The orderer node crashed with this error.

MunjalPatel (Mon, 20 Apr 2020 07:24:13 GMT):
Actually there is no issue with chaincode, since chaincode installation is successful in the peers. I am getting error only at next stage i.e chaincode approval part. All my orderer containers are running successfully. I also checked the orderer logs, there was no log of this issue there.

KoushKilla (Mon, 20 Apr 2020 09:00:54 GMT):
Hi all, Hope you and your loved ones are safe and sound :) I have a question regarding txValidation code. One of my team member decided to use the Block Global object in the node.js SDK to retrieve txValidation of certain Blocks, and we noticed that for some blocks they seem be *invalid* (MVCC read Conflict error) in Org1, while valid in Org2. Example: For Block #54 Org1: TxValidationCode of #11 (Invalid MVCC read Conflict error) Org2: Valid, TxValidationCode of #0 When I tried not using the node.js sdk to retrieve block information and directly got block information from the peer CLI. I noticed the these differences from responses *Differences* Response from the Node.js SDK global object `block` - Had the creator of the block as *OrdererMSP* - Had a txValidationCode in the BlockMetaData Response from the CLI in peer (used the peer fetch block_number -c channel_name then used the configxlator tool to inspect it) - Had the creator of the block as OrgMsp (corresponding to which org the peer belonged to) - Did *not* have a txValidationCode in BlockMetaData *Question: * 1. How is possible for Org1 to have a Invalid txValidationCode and Org2 to have Valid txValidationCode for the same BlockNumber 2. How come there is a difference in between the BlockMeta information when I receive the information from the Node.js SDk and from the peer cli? Are the informations supposed to be different? Any help or guidance in this issue would be much obliged. Thank you again for the taking the time to read this.

Amanullah68 (Mon, 20 Apr 2020 09:38:43 GMT):
instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]

musicmodes (Mon, 20 Apr 2020 11:06:01 GMT):
HOW CAN I UNSET GOROOT IN UBUNTU>

dougp314 (Mon, 20 Apr 2020 11:41:53 GMT):
Has joined the channel.

dougp314 (Mon, 20 Apr 2020 11:44:51 GMT):
Having issues getting first-network up and running. Everything appears fine until I get Instantiating chaincode on peer0.org2... + res=1 + set +x 2020-04-20 11:26:14.332 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-04-20 11:26:14.332 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Post http://unix.sock/containers/create?name=dev-peer0.org2.example.com-mycc-1.0: dial unix /host/var/run/docker.sock: connect: permission denied !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed I have set the permissions of the /var/run/docker file to 666. Same results. I have worked through the troubleshooting guide found at the end of https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html Same error. Obviously missing something....just not sure what

chintanr11 (Mon, 20 Apr 2020 11:58:12 GMT):
According to this message from Jason Yellick, lists.hyperledger.org/g/fabric/message/5812, can't we decode the "blockfile_00000" using configtxlator instead of getting ledger blocks one by one and decoding everyone separately?

chintanr11 (Mon, 20 Apr 2020 11:58:12 GMT):
According to this message from Jason Yellick, lists.hyperledger.org/g/fabric/message/5812, can't we decode the "blockfile_00000" using configtxlator instead of getting ledger blocks one by one and decoding everyone separately? NOTE: this blockfile is found at ledgersData/chains/chains/mychannel in the peer production directory.

Swhite215 (Mon, 20 Apr 2020 12:10:10 GMT):
Has joined the channel.

Swhite215 (Mon, 20 Apr 2020 12:11:35 GMT):
You can use the channel.queryTransaction(transactionID, peer) method

Swhite215 (Mon, 20 Apr 2020 12:11:35 GMT):
I have used the channel.queryTransaction(transactionID, peer) method. Link: https://hyperledger.github.io/fabric-sdk-node/release-1.4/Channel.html#queryTransaction__anchor

squeege (Mon, 20 Apr 2020 12:29:09 GMT):
Has joined the channel.

squeege (Mon, 20 Apr 2020 12:29:11 GMT):
Hi, can anybody assist with the following issue:

squeege (Mon, 20 Apr 2020 12:29:13 GMT):
Exception thrown: 'System.DllNotFoundException' in Hyperledger.Indy.Sdk.dll

squeege (Mon, 20 Apr 2020 12:29:35 GMT):
This is with the .Net wrapper obtained from NuGet

scmanjarrez (Mon, 20 Apr 2020 12:45:37 GMT):
Has joined the channel.

aakzubaidi (Mon, 20 Apr 2020 13:21:25 GMT):
a quick chaincode question (Java): I want the contract to stop functioning by date/time by itself to do some routine work (monthly billing) without needing for external entity to invoke such function. Is that possible?

aakzubaidi (Mon, 20 Apr 2020 13:23:21 GMT):
self-invoke probably what I am asking about

AnkitKumar021 (Mon, 20 Apr 2020 13:39:28 GMT):
This is my chaincode

AnkitKumar021 (Mon, 20 Apr 2020 13:40:08 GMT):
This is my chaincode func (t *Chaincode) invokeCustomerDetails(stub shim.ChaincodeStubInterface, args []string) pb.Response { var err error type transientcustomerPrivateDetails struct { Name string `json:"name"` Mobile string `json:"mobile"` EmailID string `json:"emailId"` RelationshipNo string `json:"relationshipNo"` Address string `json:"address"` District int `json:"district"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` Pincode string `json:"pincode"` Landmark string `json:"landmark"` } if len(args) != 0 { return shim.Error("Incorrect number of arguments. Private data must be passed in transient map.") } transMap, err := stub.GetTransient() if err != nil { return shim.Error("Error getting transient: " + err.Error()) } dataJSONBytes, ok := transMap["transient"] if !ok { return shim.Error("transient must be a key in the transient map") } var customerInput transientcustomerPrivateDetails err = json.Unmarshal(dataJSONBytes, &customerInput) if err != nil { return shim.Error("Failed to decode JSON of: " + string(dataJSONBytes)) } objectType := "customer details" customerPrivateDetails := &customerPrivateDetails{objectType, customerInput.Name, customerInput.Mobile, customerInput.EmailID, customerInput.RelationshipNo, customerInput.Address, customerInput.District, customerInput.City, customerInput.State, customerInput.Country, customerInput.Pincode, customerInput.Landmark} customerPrivateDetailsAsbytes, err := json.Marshal(customerPrivateDetails) if err != nil { return shim.Error(err.Error()) } err = stub.PutPrivateData("collectionCustomer", customerInput.RelationshipNo, customerPrivateDetailsAsbytes) if err != nil { return shim.Error(err.Error()) } return shim.Success(nil) } and this is my node sdk client for calling chaincode const transient = { name: Buffer.from('marble1'), mobile: Buffer.from('red'), emailId: Buffer.from('John'), relationshipNo: Buffer.from('85'), address: Buffer.from('99') district: Buffer.from('marble1'), city: Buffer.from('red'), state: Buffer.from('red'), country: Buffer.from('John'), pincode: Buffer.from('85'), landmark: Buffer.from('99') }; const result = await contract.createTransaction('invokeCustomerDetails') .setTransient(transient) .submit();

AnkitKumar021 (Mon, 20 Apr 2020 13:41:07 GMT):
I am using Private data collection, I am unable to invoke chaincode by node sdk This is my chaincode func (t *Chaincode) invokeCustomerDetails(stub shim.ChaincodeStubInterface, args []string) pb.Response { var err error type transientcustomerPrivateDetails struct { Name string json:"name" Mobile string json:"mobile" EmailID string json:"emailId" RelationshipNo string json:"relationshipNo" Address string json:"address" District int json:"district" City string json:"city" State string json:"state" Country string json:"country" Pincode string json:"pincode" Landmark string json:"landmark" } if len(args) != 0 { return shim.Error("Incorrect number of arguments. Private data must be passed in transient map.") } transMap, err := stub.GetTransient() if err != nil { return shim.Error("Error getting transient: " + err.Error()) } dataJSONBytes, ok := transMap["transient"] if !ok { return shim.Error("transient must be a key in the transient map") } var customerInput transientcustomerPrivateDetails err = json.Unmarshal(dataJSONBytes, &customerInput) if err != nil { return shim.Error("Failed to decode JSON of: " + string(dataJSONBytes)) } objectType := "customer details" customerPrivateDetails := &customerPrivateDetails{objectType, customerInput.Name, customerInput.Mobile, customerInput.EmailID, customerInput.RelationshipNo, customerInput.Address, customerInput.District, customerInput.City, customerInput.State, customerInput.Country, customerInput.Pincode, customerInput.Landmark} customerPrivateDetailsAsbytes, err := json.Marshal(customerPrivateDetails) if err != nil { return shim.Error(err.Error()) } err = stub.PutPrivateData("collectionCustomer", customerInput.RelationshipNo, customerPrivateDetailsAsbytes) if err != nil { return shim.Error(err.Error()) } return shim.Success(nil) } and this is my node sdk client for calling chaincode const transient = { name: Buffer.from('marble1'), mobile: Buffer.from('red'), emailId: Buffer.from('John'), relationshipNo: Buffer.from('85'), address: Buffer.from('99') district: Buffer.from('marble1'), city: Buffer.from('red'), state: Buffer.from('red'), country: Buffer.from('John'), pincode: Buffer.from('85'), landmark: Buffer.from('99') }; const result = await contract.createTransaction('invokeCustomerDetails') .setTransient(transient) .submit();

ZappaBoy (Mon, 20 Apr 2020 15:50:24 GMT):
Hi all, i need to add a remote peer to an existing network. I extended the network with cryptogen extend and create peer and couchdb dockers on remote host and now i'm logged in CLI but how i can define CORE_PEER_ADDRESS=peer2.org2.example.com:7051 to work on remote host? Can i simply replace peer2.org2.example.com with remote host ip?

cylon56 (Mon, 20 Apr 2020 16:50:22 GMT):
Has joined the channel.

cylon56 (Mon, 20 Apr 2020 16:50:23 GMT):
Does anyone know where I can find performance reports for Fabric private data? I saw there was a JIRA ticket for a test but don't where the results would be. https://jira.hyperledger.org/browse/FAB-12936

cylon56 (Mon, 20 Apr 2020 16:50:23 GMT):
Does anyone know where I can find performance reports for Fabric private data? I saw there was a JIRA ticket for a test but don't see where the results would be. https://jira.hyperledger.org/browse/FAB-12936

jenli3 (Mon, 20 Apr 2020 16:54:17 GMT):
Has joined the channel.

jenli3 (Mon, 20 Apr 2020 16:54:20 GMT):
Is there a way to retrieve the "_rev" and "version" reserved name fields when retrieving an asset from couchdb?

AliDar (Mon, 20 Apr 2020 17:16:03 GMT):
I have fabric network up on 1.1 version. Every time I restart my VM where my chaincode is installed, It get this message:

AliDar (Mon, 20 Apr 2020 17:16:19 GMT):
4:52:17 PM - error: Error: Private key missing from key store. Can not establish the signing identity for user Jim at _cryptoSuite.importKey.then.then (../node_modules/fabric-client/lib/User.js:255:11) at 4:52:17 PM - debug: ******** Query result:Error: Private key missing from key store. Can not establish the signing identity for user Jim 4:52:17 PM - debug: not JSON 4:52:17 PM - warn: Get Permission Details -> Error: Private key missing from key store. Can not establish the signing identity for user Ji

AliDar (Mon, 20 Apr 2020 17:16:53 GMT):
To fix this error I have to bring up the entire network. Which is not the right thing to do .

BrettLogan (Mon, 20 Apr 2020 18:41:04 GMT):
you shouldn't modify `/var/run/docker` you should instead add your user to the docker group ` sudo usermod -aG docker `

BrettLogan (Mon, 20 Apr 2020 18:43:28 GMT):
`unset GOROOT` but its probably set in your `.bashrc` or `.bash_profile`, as well, and Go uses GOROOT to find its standard library

BrettLogan (Mon, 20 Apr 2020 18:49:16 GMT):
MVCC errors happen at commit, so its possible peer1 hadn't yet committed the previous transaction which caused the MVCC error, and thus the transaction was valid. On peer2, it had already committed the previous transaction that modified the asset on which you are operating and thus you hit an MVCC as the RWSet at commit, didn't match the result from simulation. It's also worth noting, that the transactions contained in the blocks between two peers don't necessarily match. Its possible for one peer to have a different block height of another peer, depending on how you configure you block cutting parameters on each peer. And even then network latency can have a varying effect on time-based cutting parameters

Rachit-gaur (Mon, 20 Apr 2020 18:49:31 GMT):
Hi All, I am testing a software I created. I can create a hyperledger fabric network in just 5 mins for upto 1.4.4 If anyone urgently needs a network let me know. I'll be happy to create one.

KoushKilla (Mon, 20 Apr 2020 19:18:16 GMT):
@BrettLogan Hi

KoushKilla (Mon, 20 Apr 2020 19:22:49 GMT):
@BrettLogan Thanks again for the response. Please correct me if I am wrong in the understanding. The reason there was a MVCC read conflict in Org1 Peer1 while not in the Org2 Peer1 is because while Org1 Peer1 was still simulating the transaction, Org2 Peer1 was done and changed the state of the asset. Thus as result when Org1 peer1 was done with simulation and wanted to commit it became invalid due to the fact the asset status changed, and the read/write states did not match.

KoushKilla (Mon, 20 Apr 2020 19:24:35 GMT):
Another question when I do the command peer fetch block_number on the peer cli, it says the creator of the block is OrgMSP. Is it possible to get the block from the OrdererMSP, because when I use the sdk to fetch the block it says the OrdererMSP.

BrettLogan (Mon, 20 Apr 2020 19:53:46 GMT):
I don't know the answer to your second question, I would assume its possible to query the block from the orderer. However, I don't know that you can do it on the CLI.

BrettLogan (Mon, 20 Apr 2020 19:53:58 GMT):
In response to the first question..

BrettLogan (Mon, 20 Apr 2020 20:04:45 GMT):
I'm typing this up in an outside text editor, so give me a second :grin:

KoushKilla (Mon, 20 Apr 2020 20:06:19 GMT):
@BrettLogan no problem. Eagering waiting :)

KoushKilla (Mon, 20 Apr 2020 20:06:33 GMT):
*Eagerly

BrettLogan (Mon, 20 Apr 2020 20:10:50 GMT):
There are many scenarios you can introduce this problem, but we can look at a simple one. Let say you have 2 peers each in a separate org, like you said. You have an endorsement policy of 1 of 2, so you only need one of the peers to endorse the transaction. You submit transaction 1 (T1) and get your endorsement, in this case from Peer1 (this is important). You then submit T1 for ordering and it’s sent to both Peers. Peer1 receives it just fine, and updates its world state and ledger. Peer2 is experiencing network latency and the transaction is slow to arrive. Now you submit transaction 2 (T2) for endorsement, this time to Peer1 again. You get your endorsement, but remember, T1 hasn’t been committed yet on Peer2, this RWSet is against a world state peer2 isn’t aware of yet. You submit this transaction for oderering, and Peer1 commits the transaction just fine, Peer2 receives the transaction (this time with no network problems) and you get an MVCC conflict, as the asset state mentioned in the RWSet doesn’t yet exist. T2 is marked invalid and committed. T1 then arrives (late to the party) is verified valid and committed. Eventually T2 arrives via another mechanism (gossip), but you maintain the fact that an invalid transaction occurred in the ledger. Presumably (at least I assume) the state of the asset is the same on both your peers, even if you do see invalid transactions in your ledger

BrettLogan (Mon, 20 Apr 2020 20:12:00 GMT):
If you introduce threads, where things are happening truly concurrently, you can really see how this problem might occur, so the client needs to keep track of keys being operated on, and hold pending transactions to the same key

BrettLogan (Mon, 20 Apr 2020 20:12:30 GMT):
Or be willing to resubmit transactions that completely fail

BrettLogan (Mon, 20 Apr 2020 20:16:35 GMT):
You want the #indy channel

KoushKilla (Mon, 20 Apr 2020 20:18:52 GMT):
@BrettLogan interesting. Thanks.For nice explanation of MVCC error. But it is still striking to be the whole premise of a blockchain is synchronized ledger, where I can see that block #54 is valid in Org1 and invalid in Org2.

KoushKilla (Mon, 20 Apr 2020 20:20:20 GMT):
but hopefully the state of the ledger did not change

BrettLogan (Mon, 20 Apr 2020 20:23:04 GMT):
Its not that the block is invalid, a transaction contained in the block is invalid. Fabric records transactions that were marked invalid in the ledger (for auditing purposes) but these transactions do not update the world statee

BrettLogan (Mon, 20 Apr 2020 20:23:04 GMT):
Its not that the block itself is invalid, a transaction contained in the block is invalid. Fabric records transactions that were marked invalid in the ledger (for auditing purposes) but these transactions do not update the world state

BrettLogan (Mon, 20 Apr 2020 20:23:04 GMT):
Its not that the block is invalid, a transaction contained in the block is invalid. Fabric records transactions that were marked invalid in the ledger (for auditing purposes) but these transactions do not update the world state

KoushKilla (Mon, 20 Apr 2020 20:24:37 GMT):
in this case if the transaction is valid Org2, does the world state get updated in Org2 peer? While it is invalid in Org1?

KoushKilla (Mon, 20 Apr 2020 20:26:09 GMT):
My guess is that Org2 will update the worldstate and hence the ledger will get automatically get updated in Org1 as well

BrettLogan (Mon, 20 Apr 2020 20:26:15 GMT):
Correct, but Org1 will get the correct world state from Org2's peer

KoushKilla (Mon, 20 Apr 2020 20:26:26 GMT):
Thanks. 😊 you are a legend

KoushKilla (Mon, 20 Apr 2020 20:27:40 GMT):
I want to prove this, if I am using couchdb, can I see the assets in the ledger, using a gui? on the console?

BrettLogan (Mon, 20 Apr 2020 20:27:42 GMT):
This is why a Blockchain of 2 peers is a really bad idea. While it's possible to set it up, you would never do it in production, as there is very little (maybe even zero) fault tolerance

BrettLogan (Mon, 20 Apr 2020 20:27:57 GMT):
What version of Fabric are you using?

BrettLogan (Mon, 20 Apr 2020 20:29:03 GMT):
If you are on Fabric v1.4.x you can use: https://github.com/hyperledger/blockchain-explorer which is a dedicated GUI

BrettLogan (Mon, 20 Apr 2020 20:30:43 GMT):
otherwise you can use the CouchDB GUI called Fauxton, if you expose the port (assuming you are using docker) its on `:5984/_utils`

FilipeSilva (Mon, 20 Apr 2020 20:32:01 GMT):
How do you debug your `chaincode` before deploying it?

KoushKilla (Mon, 20 Apr 2020 20:32:17 GMT):
we have four peers just, used 2 peers one for each org as a example

BrettLogan (Mon, 20 Apr 2020 20:32:49 GMT):
https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

FilipeSilva (Mon, 20 Apr 2020 20:33:04 GMT):
AFAIK, we have to package, approve and commit every time a change is made to the source code

BrettLogan (Mon, 20 Apr 2020 20:33:42 GMT):
If you are on fabric v1.4

FilipeSilva (Mon, 20 Apr 2020 20:33:51 GMT):
Isn't there any way to streamline this process while coding the smart contract?

FilipeSilva (Mon, 20 Apr 2020 20:34:14 GMT):
fabric 2.0

BrettLogan (Mon, 20 Apr 2020 20:35:16 GMT):
There aren't any great options yet on 2.0. Since 1.4 is still our LTS release. We are working on Dev Tooling in VSCode to support Fabric 2.0 still

BrettLogan (Mon, 20 Apr 2020 20:36:19 GMT):
Historically there was a devmode built right into fabric, but that no longer works in 2.0 due to the lifecycle changes you mentioned

BrettLogan (Mon, 20 Apr 2020 20:36:19 GMT):
Historically there was a devmode bbuilt right into fabric, but that no longer works in 2.0 due to the lifecycle changes you mentioned

FilipeSilva (Mon, 20 Apr 2020 20:37:48 GMT):
So, for the time being as for v2.0 i have no other option that go through the package, approve and commit every time I change the source code?

FilipeSilva (Mon, 20 Apr 2020 20:37:48 GMT):
So, for the time being as for `v2.0` I have no other option that go through the package, approve and commit every time I change the source code?

FilipeSilva (Mon, 20 Apr 2020 20:37:48 GMT):
So, for the time being as for `v2.0` I have no other option than go through the package, approve and commit every time I change the source code?

BrettLogan (Mon, 20 Apr 2020 20:38:30 GMT):
Unfortunately thats correct. Are you using any of the new 2.0 features in chaincode that didn't exist in 1.4?

FilipeSilva (Mon, 20 Apr 2020 20:38:54 GMT):
Yes, the Raft orderer

BrettLogan (Mon, 20 Apr 2020 20:39:12 GMT):
That exists in 1.4, we introduceed it in 1.4.2

FilipeSilva (Mon, 20 Apr 2020 20:39:27 GMT):
ok, I did not know

FilipeSilva (Mon, 20 Apr 2020 20:39:54 GMT):
but I just followed along the tutorials and made sense to me using the latest version

BrettLogan (Mon, 20 Apr 2020 20:40:00 GMT):
Assuming you aren't using any of the chaincode feature (related to more granular private data collections) you can develop your chaincode on 1.4, and then install it in a 2.0 network.

BrettLogan (Mon, 20 Apr 2020 20:40:33 GMT):
So unless you are using the new private data model, you can make use of the VSCode extension

BrettLogan (Mon, 20 Apr 2020 20:40:50 GMT):
And I'll add the extension has its own tutorials as well you can learn from

FilipeSilva (Mon, 20 Apr 2020 20:43:14 GMT):
well, my network is using capabilities that are only available in 2.0 like the `OU` type for recognizing different users

FilipeSilva (Mon, 20 Apr 2020 20:43:58 GMT):
Can I still use that extension agains a network builf for 2.o?

FilipeSilva (Mon, 20 Apr 2020 20:43:58 GMT):
Can I still use that extension agains a network builf for 2.0?

BrettLogan (Mon, 20 Apr 2020 20:45:05 GMT):
Unfortunately no. 2.0 lifecycle processes aren't supported yet.

BrettLogan (Mon, 20 Apr 2020 20:45:29 GMT):
The best I can say, is watch out in the coming weeks for 2.0 support on the extension

BrettLogan (Mon, 20 Apr 2020 20:46:00 GMT):
This is why we haven't taken 2.x LTS yet, until we have all of the pieces available for developers to make use of it

FilipeSilva (Mon, 20 Apr 2020 20:46:17 GMT):
right, make ssense

FilipeSilva (Mon, 20 Apr 2020 20:46:17 GMT):
right, make sense

FilipeSilva (Mon, 20 Apr 2020 20:48:27 GMT):
is there any way to perform any syntactic validation before deploying the chaincode?

FilipeSilva (Mon, 20 Apr 2020 20:48:27 GMT):
is there any way to perform any syntactic validation before deploying the chaincode

FilipeSilva (Mon, 20 Apr 2020 20:48:27 GMT):
is there any way to perform any syntactic validation before deploying the chaincode?

BrettLogan (Mon, 20 Apr 2020 20:50:51 GMT):
What language is your chaincode

FilipeSilva (Mon, 20 Apr 2020 20:51:50 GMT):
I have not started yet

FilipeSilva (Mon, 20 Apr 2020 20:52:29 GMT):
but I intend to use javascript

BrettLogan (Mon, 20 Apr 2020 20:53:21 GMT):
In Javascript, you would simply use `ESLint` to verify the syntactic and semantic structure of your code is valid

BrettLogan (Mon, 20 Apr 2020 20:53:40 GMT):
There are other tools, but thats definitely the most popular

FilipeSilva (Mon, 20 Apr 2020 20:58:21 GMT):
ESLint also validates if I am invoking any unknown method

FilipeSilva (Mon, 20 Apr 2020 20:59:00 GMT):
suppose for instance I made a type in the function `getState` and called it `geState`

FilipeSilva (Mon, 20 Apr 2020 20:59:00 GMT):
suppose for instance I made a typo in the function `getState` and called it `geState`

BrettLogan (Mon, 20 Apr 2020 20:59:32 GMT):
correct

FilipeSilva (Mon, 20 Apr 2020 21:00:05 GMT):
great

FilipeSilva (Mon, 20 Apr 2020 21:00:47 GMT):
One last question

BrettLogan (Mon, 20 Apr 2020 21:00:57 GMT):
Of course

FilipeSilva (Mon, 20 Apr 2020 21:01:50 GMT):
I found some examples where the module `fabric-shim` is being imported while in the most recent ones that importation is not used anymore

BrettLogan (Mon, 20 Apr 2020 21:02:18 GMT):
Point me to one of those examples

BrettLogan (Mon, 20 Apr 2020 21:02:30 GMT):
They are probably using the new programming model

FilipeSilva (Mon, 20 Apr 2020 21:02:59 GMT):
`https://github.com/hyperledger/fabric-samples/blob/master/chaincode/abstore/javascript/abstore.js`

BrettLogan (Mon, 20 Apr 2020 21:03:00 GMT):
Both are supported fully in 2.0

FilipeSilva (Mon, 20 Apr 2020 21:04:16 GMT):
but in the `fabcar` example there is no longer mention to that importation but instead to the `fabric-contract-api`

BrettLogan (Mon, 20 Apr 2020 21:04:26 GMT):
Right, FabCar is using the new programming model

BrettLogan (Mon, 20 Apr 2020 21:05:42 GMT):
In the new model, which is wrapped inside of `contract-api`, you can name the functions you want to invoke, so instead of calling `invoke` and then the first parameter in the args is the function you want to invoke, you can simply call the function you want when doing an invoke

FilipeSilva (Mon, 20 Apr 2020 21:05:58 GMT):
so, `fabric-contract-api` and `fabric-shim` are complementar one from another or is the latter outdated and we should use `fabric-contract-api` from here on

FilipeSilva (Mon, 20 Apr 2020 21:05:58 GMT):
so, are `fabric-contract-api` and `fabric-shim` complementary one from another or is the latter outdated and we should use `fabric-contract-api` from here on

BrettLogan (Mon, 20 Apr 2020 21:06:26 GMT):
Both are still perfectly valid, bbut the new model is the way we will be moving forward

BrettLogan (Mon, 20 Apr 2020 21:06:28 GMT):
https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/javascript/lib/fabcar.js#L93

BrettLogan (Mon, 20 Apr 2020 21:06:53 GMT):
If you look at this line, you can see we actually have a function called `createCar`

BrettLogan (Mon, 20 Apr 2020 21:07:30 GMT):
In the old model you would have just had a large invoke function, and it would have looked for the function you want to call as the first argument passed to invoke, and then it would call `addCar` for you.

BrettLogan (Mon, 20 Apr 2020 21:07:30 GMT):
In the old model you would have just had a large invoke function, and it would have looked for the function you want to call as the first argument passed to invoke, and then it would call `createCar` for you.

BrettLogan (Mon, 20 Apr 2020 21:07:41 GMT):
Now you can just call createCar directlyy

FilipeSilva (Mon, 20 Apr 2020 21:08:07 GMT):
i see

FilipeSilva (Mon, 20 Apr 2020 21:08:07 GMT):
I see

FilipeSilva (Mon, 20 Apr 2020 21:08:44 GMT):
this new model makes our life easier :D

BrettLogan (Mon, 20 Apr 2020 21:08:52 GMT):
MUCH EASIER

BrettLogan (Mon, 20 Apr 2020 21:08:58 GMT):
^Intentionally capitalized lol

BrettLogan (Mon, 20 Apr 2020 21:09:24 GMT):
It also makes testing the chaincode easier, as you can test on individual functions now

FilipeSilva (Mon, 20 Apr 2020 21:09:33 GMT):
right

FilipeSilva (Mon, 20 Apr 2020 21:09:51 GMT):
thank you very much for your help

BrettLogan (Mon, 20 Apr 2020 21:09:55 GMT):
No problem

FilipeSilva (Mon, 20 Apr 2020 21:10:33 GMT):
Saved me a ton of time

BrettLogan (Mon, 20 Apr 2020 21:11:16 GMT):
We

BrettLogan (Mon, 20 Apr 2020 21:11:37 GMT):
We'll see about that :laughing:

FilipeSilva (Mon, 20 Apr 2020 21:12:11 GMT):
you should definitely mention somewhere that the development extension for `v2.0` will be realeased in the coming weeks

FilipeSilva (Mon, 20 Apr 2020 21:12:38 GMT):
otherwise people will keep asking the same question time after time

FilipeSilva (Mon, 20 Apr 2020 21:12:54 GMT):
and you will get annoyed most probably :D

SharedMocha (Mon, 20 Apr 2020 22:34:00 GMT):
Can anyone suggest good analytics/reporting application that can work across fabric peers running in multiple orgs ? It is getting harder for us to view the health of overall network as each org maintains their own health monitoring system. Any innovative or better solutions that can help to monitor entire network health?

SharedMocha (Mon, 20 Apr 2020 22:34:00 GMT):
Can anyone suggest a good analytics/reporting application that can work across fabric peers running in multiple orgs ? It is getting harder for us to view the health of the overall network as each org maintains their own health monitoring system. Any innovative or better solutions that can help to monitor entire network health? We use statsd but this is specific to one org-i am looking for something which can work in a decentralized fashion for health checks

SharedMocha (Mon, 20 Apr 2020 22:34:00 GMT):
Can anyone suggest a good analytics/reporting application that can work across fabric peers running in multiple orgs ? It is getting harder for us to view the health of the overall network as each org maintains their own health monitoring system. Any innovative or better solutions that can help to monitor entire network health? We use statsd but this is specific to one org-i am looking for something which can work in a decentralized fashion for health checks across organizations and peers

FilipeSilva (Mon, 20 Apr 2020 22:46:28 GMT):
It seems `eslint` cannot catch reference to `unknown functions`

FilipeSilva (Mon, 20 Apr 2020 22:46:28 GMT):
It seems `eslint` cannot catch references to `unknown functions`

FilipeSilva (Mon, 20 Apr 2020 23:09:37 GMT):
Well, it makes sense since it does not compile the code so it is not easy to find these cases

FilipeSilva (Mon, 20 Apr 2020 23:10:21 GMT):
waiting eagerly for your plugin/extension

FilipeSilva (Mon, 20 Apr 2020 23:10:22 GMT):
;)

RonaldReagan (Tue, 21 Apr 2020 04:49:46 GMT):
Hi blockchainers, has anyone successfully implemented off-chain data storage(not private data storage)? What are some of the best ideas towards achieving off-chain storage(programmatically)? Should we have only one central off-chain data store or each peer should maintain it's off-chain store? If I wrote smart contracts that would convert a transaction into a hash and store only the hash in the ledger and vise-versa, would that help to reduce storage space requirements hence eliminating the need for an off-chain storage? Any links would be appreciated. Stay safe :slight_smile:

Elaina (Tue, 21 Apr 2020 07:32:53 GMT):
Has joined the channel.

Elaina (Tue, 21 Apr 2020 07:32:55 GMT):
Hello everyone! I had a couple of questions to inquire the team so if anyone can help out, that would be highly appreciated :) 1. Request for information/documentations on Pluggable Crypto Service - Is there a set schedule for the release of the service? - If possible, please do share with us more details (interface, architecture, etc.) on the pluggable crypto service 2. Request for information on Aries-KMS - Please kindly share with us the release schedule for Aries-KMS - Please kindly share with us the architecture of Aries-KMS (documents for developers to review please)

knagware9 (Tue, 21 Apr 2020 10:28:28 GMT):
Valid suggestion, I think you can create a JIRA/issue for the clarification. I also belive this should be extracted from configtx.yaml file

knagware9 (Tue, 21 Apr 2020 10:32:04 GMT):
issue with docker daemon process.. restart docker service

Vgkmanju (Tue, 21 Apr 2020 10:38:25 GMT):
#hyperledger-caliper We are using hyperledger fabric (v.1.4.2) with 1 Org 2 Peer 1 orderer setup running in different VM. Now I'm trying to analyze the performance using hyperledger caliper (v.0.3.0). Can this be done? Or hyperledger caliper testing can be done only in dockerized environment?

Taaanos (Tue, 21 Apr 2020 10:50:47 GMT):
In the marbles example, how would I approach the following? I want to make a query for marbles by owner and act on the response from withing the chaincode. I would like for example to create another asset like a group of marbles and set a price. I would create an additional struct etc. I invoke this function from the peer passing the query. As a result the chaincode will need to handle the results of the query and create a new asset. My question here is, how would I handle the response of a rich query? Do I need to parse the string response to a structure that I can iterate on?

Taaanos (Tue, 21 Apr 2020 10:50:47 GMT):
In the marbles example, how would I approach the following? I want to make a query for marbles by owner and act on the response in chaincode. I would like for example to create another asset like a group of marbles and set a price. create an additional struct etc. I invoke this function from the peer passing the query. As a result the chaincode will need to handle the results of the query and create a new asset. My question here is, how would I handle the response of a rich query? Do I need to parse the string response to a structure that I can iterate on?

Taaanos (Tue, 21 Apr 2020 10:53:13 GMT):
It would be convenient to get responses from couchdb as marble structs and not strings. Any directions here?

usamahabib95 (Tue, 21 Apr 2020 11:32:40 GMT):
Thanks I got it

aakzubaidi (Tue, 21 Apr 2020 15:16:50 GMT):
Is there potentially any answer to this question?

uallknowmatt (Tue, 21 Apr 2020 15:34:27 GMT):
Has joined the channel.

uallknowmatt (Tue, 21 Apr 2020 15:34:28 GMT):
can i access the chaincode or call the chaincode/smart contract methods written in the language (go/java/javascript) directly with a rest call from outside the vm where the hyperledger 2.0 fabric is hosted ?

uallknowmatt (Tue, 21 Apr 2020 15:36:15 GMT):
do i have to create an intermediate layer written in fabric java sdk or node to call the chaincode in hyperledger and then expose that intermediate layer for outside application to call to indirectly access the smart contract

uallknowmatt (Tue, 21 Apr 2020 15:36:33 GMT):
what are the options

BrettLogan (Tue, 21 Apr 2020 16:23:17 GMT):
Chaincode doesn't implement the rest protocol, it implements the gRPC protocol. This is exactly what the SDK does for you, why would you want to call the chaincode directly.

BrettLogan (Tue, 21 Apr 2020 16:23:17 GMT):
Chaincode doesn't implement the rest protocol, it implements the gRPC protocol. So technically, if you knew exactly how to form the the request and present your credentials, sure, you could do it. But that is exactly what the SDK does for you

BrettLogan (Tue, 21 Apr 2020 16:32:13 GMT):
You can use the unmarshal calls in golang to convert strings to structs

BrettLogan (Tue, 21 Apr 2020 16:33:49 GMT):
This hannel is for hyperledger fabric, I think you want #aries

BrettLogan (Tue, 21 Apr 2020 16:34:57 GMT):
You want the #caliper channel. But yes, this can be done, as long as the endpoints are accesible from the machine you are running caliper on, you can run Fabric in whatever manner you want (raw binaries, Docker, Kubernetes), does not matter

BrettLogan (Tue, 21 Apr 2020 16:41:57 GMT):
It really depends on your use case. If you are storing large documents, then you may choose something like secured multi-tenant S3 storage solutions (and some people will even encrypt the documents before sending them to S3). You don't necessarily need to have separate stores, part of the transaction data you store can be the MSP's who have access to the data stored in S3, so before you ever retrieve the document from storage, you first validate if the party requesting is in the valid `accessors` list stored on the chain. As for it reducing the size, again it depends, if the data you're storing is substantially small, then the complexity of storing data off chain may outweigh the very minimal size reduction, if instead you are storing large documents, then absolutely, you are reducing the size of the ledger, and you are centralizing your large storage to a single location (S3) instead of storing it in many places and consuming that storage in multiple peers. Storing large items off chain is also a good use case when they are arbitrarily large. The gRPC protocol fabric uses for sending data only supports messages up to 100MB (and part of that is consumed by the transaction metadata). So if your documents are large enough, storing them off chain will allow you to bypass this limitation

BrettLogan (Tue, 21 Apr 2020 16:41:57 GMT):
It really depends on your use case. If you are storing large documents, then people tend to lean towards secured multi-tenant S3 storage solutions. You don't necessarily need to have separate stores, part of the transaction data you store can be the MSP's who have access to the data stored in S3, so before you ever retrieve the document from storage, you first validate if the party requesting is in the valid `accessors` list stored on the chain. As for it reducing the size, again it depends, if the data you're storing is substantially small, then the complexity of storing data off chain may outweigh the very minimal size reduction, if instead you are storing large documents, then absolutely, you are reducing the size of the ledger, and you are centralizing your large storage to a single location (S3) instead of storing it in many places and consuming that storage in multiple peers. Storing large items off chain is also a good use case when they are arbitrarily large. The gRPC protocol fabric uses for sending data only supports messages up to 100MB (and part of that is consumed by the transaction metadata). So if your documents are large enough, storing them off chain will allow you to bypass this limitation

uallknowmatt (Tue, 21 Apr 2020 16:51:48 GMT):
thanks @BrettLogan for your prompt replies

fk2 (Wed, 22 Apr 2020 03:00:21 GMT):
Has joined the channel.

fk2 (Wed, 22 Apr 2020 03:01:44 GMT):
Hello everyone ! I'm using hyperledger fabric 2.0.1. It is running single orderer(consensus: Raft) node in a enterprise environment. but I plan to configure three node in the future. What steps are required? I read this document but I didn't know what commands to execute. https://hyperledger-fabric.readthedocs.io/en/release-2.0/raft_configuration.html#reconfiguration

KaushalKedilaya (Wed, 22 Apr 2020 05:46:41 GMT):
Hello everyone! Suppose there are three peers, two channels and a peer in common in those two channels. Is it possible for that common peer of two channel to share data from one channel to another channel?

pbagdia (Wed, 22 Apr 2020 10:47:45 GMT):
Has joined the channel.

Vgkmanju (Wed, 22 Apr 2020 11:05:25 GMT):
Thanks, Actually I have already started my 2 peers and orderer in different VM like here am using 3 VM instances. I have joined peers to the channel also and installed, instantiated my chaincodes in the channel. To check the performance, I am trying to invoke and query my chaincode using caliper. For that I have installed caliper-benchmark. I have changed benchconfig file and network config file. In that network config file, I have removed docker start and end command, why because my network is already running state, then I placed my peer, orderer and channel configuration. Again I run caliper launch master command, it throws error like clients validator required. I don't have client credential key store. Now what should I need to do? Whether my approach is right or wrong? Orelse caliper only supports docker type? Can you please suggest? I was struck here. I walk through the architecture, In that they said you can write your own benchmarks and adapters. But the link they mentioned their is not working.

aakzubaidi (Wed, 22 Apr 2020 12:30:07 GMT):
is it possible for chaincode to invoke itself?

dougp314 (Wed, 22 Apr 2020 13:54:18 GMT):
Thanks.

Taaanos (Wed, 22 Apr 2020 13:57:59 GMT):
you mean to invoke a function of itself?

alefchaves (Wed, 22 Apr 2020 14:55:11 GMT):
Has joined the channel.

alefchaves (Wed, 22 Apr 2020 14:55:12 GMT):
Good afternoon everyone, I am a student of computer science and would like to know more about the feasibility of inserting BFT consensus on the hyperledger fabric platform

alefchaves (Wed, 22 Apr 2020 14:57:11 GMT):
I want to be able to test different BFT consensus than what is already available on the platform! help me

Taaanos (Wed, 22 Apr 2020 15:04:00 GMT):
ok, what exactly are you looking for? You can use your own consensus, that is true. Take a look here: https://hyperledger-fabric.readthedocs.io/en/latest/whatis.html?highlight=consensus#pluggable-consensus

alefchaves (Wed, 22 Apr 2020 15:06:42 GMT):
I will try to test some consensus algorithms developed in my research group, but I am new to the hyperledger platform, and I need to understand better how to do this

RobinKlemens (Wed, 22 Apr 2020 15:21:01 GMT):
Hi folks, I deployed a Hyplerledger Fabric 2.0 in OpenShift. All peers (2orgs, 2peers each) joined one channel and the network is using Raft with 3 orderers. TLS is enabled throughout the network. Further, I can invoke chaindecode. From my perspective everything works well until I checked the logs of the peers: ```2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d5 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.130.24.1:39374 2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d1 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.128.38.1:28584 2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d7 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.131.32.1:31948 2020-04-22 17:12:10.604 CEST [core.comm] ServerHandshake -> ERRO 0d8 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.130.36.1:40534``` Same for orderer ```2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 354 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.26.1:42822 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 357 TLS handshake failed with error EOF server=Orderer remoteaddress=10.130.24.1:34234 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 353 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.38.1:27434 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 355 TLS handshake failed with error EOF server=Orderer remoteaddress=10.131.10.1:5310 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 356 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.24.1:47246``` Does anyone have an idea about what could be the cause of this error? Thank you very much! Robin

RobinKlemens (Wed, 22 Apr 2020 15:21:01 GMT):
Hi folks, I deployed Hyplerledger Fabric 2.0 in OpenShift. All peers (2orgs, 2peers each) joined one channel and the network is using Raft with 3 orderers. TLS is enabled throughout the network. Further, I can invoke chaindecode. From my perspective everything works well until I checked the logs of the peers: ```2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d5 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.130.24.1:39374 2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d1 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.128.38.1:28584 2020-04-22 17:12:07.985 CEST [core.comm] ServerHandshake -> ERRO 0d7 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.131.32.1:31948 2020-04-22 17:12:10.604 CEST [core.comm] ServerHandshake -> ERRO 0d8 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.130.36.1:40534``` Same for orderer ```2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 354 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.26.1:42822 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 357 TLS handshake failed with error EOF server=Orderer remoteaddress=10.130.24.1:34234 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 353 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.38.1:27434 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 355 TLS handshake failed with error EOF server=Orderer remoteaddress=10.131.10.1:5310 2020-04-22 17:17:00.823 CEST [core.comm] ServerHandshake -> ERRO 356 TLS handshake failed with error EOF server=Orderer remoteaddress=10.128.24.1:47246``` Does anyone have an idea about what could be the cause of this error? Thank you very much! Robin

aakzubaidi (Wed, 22 Apr 2020 15:25:46 GMT):
yes

aakzubaidi (Wed, 22 Apr 2020 15:31:00 GMT):
I do not know, But I would like whether the tlscacerts are accessible or not

aakzubaidi (Wed, 22 Apr 2020 15:31:34 GMT):
***I would look into ...

RobinKlemens (Wed, 22 Apr 2020 15:36:58 GMT):
I've already double checked.... Seems that I'm not the only one facing this error. https://stackoverflow.com/questions/59208438/hyperledger-peers-with-tls-in-kubernetes-cluster-constantly-keep-throwing-tls-ha As edit to my origianl post. I generated the crypto material with the fabric ca, one for each org + ordererOrg

ZappaBoy (Wed, 22 Apr 2020 15:38:57 GMT):
I have similar error too

aakzubaidi (Wed, 22 Apr 2020 15:42:54 GMT):
and can you double check these generated crypto materials are where are supposed to as per defined in the YAML files (Core, orderer, compose-cli, etc..)

ZappaBoy (Wed, 22 Apr 2020 15:44:16 GMT):
This is my error:

ZappaBoy (Wed, 22 Apr 2020 15:44:16 GMT):
This is my error: `TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=IP`

ZappaBoy (Wed, 22 Apr 2020 15:44:16 GMT):
This is my error: `TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=IP` Anyone know where TLS cert are stored in peer? Fabric image version: 1.4.6

aakzubaidi (Wed, 22 Apr 2020 15:46:15 GMT):
for example: #- FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_TLS_ENABLED=true - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_PROFILE_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt and so on . in all related files

RobinKlemens (Wed, 22 Apr 2020 15:46:19 GMT):
Yes, they are. The peers can communicate as well as the orderer. As I mentioned, I'm able to invoke chaincode and ledger data is synchronized. If the certificates wouldn't be located as defined in the .yaml file I couldn't interact with the network.

RobinKlemens (Wed, 22 Apr 2020 15:46:19 GMT):
Yes, they are. The peers can communicate as well as the orderer. As I mentioned, I'm able to invoke chaincode and ledger data is synchronized. If the certificates wouldn't be located as defined in the .yaml file I couldn't interact with the network. Please, correct me if my assumption is wrong. I very much appreciate your help and your questions are the first questions I was asking myself.

Taaanos (Wed, 22 Apr 2020 15:47:21 GMT):
You are aiming for a consensus in the ordering service. Check the following material https://github.com/hyperledger/fabric/tree/master/orderer https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html?highlight=transaction%20flow https://hyperledger-fabric.readthedocs.io/en/latest/whatis.html?highlight=consensus /txflow.html?highlight=transaction%20flow

Taaanos (Wed, 22 Apr 2020 15:47:21 GMT):
You are aiming for a consensus in the ordering service. Check the following material https://github.com/hyperledger/fabric/tree/master/orderer https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html?highlight=transaction%20flow https://hyperledger-fabric.readthedocs.io/en/latest/whatis.html?highlight=consensus

Taaanos (Wed, 22 Apr 2020 15:49:54 GMT):
I haven't seen any 3rd party implementations around, someone else might be able to give directions

aakzubaidi (Wed, 22 Apr 2020 15:56:05 GMT):
Mysterious things can always happen. I am just trying to suggest what I would do for troubleshooting . Finding out that you already thinking the same way tells me that I am not insane yet :grinning: . Let us keep thinking about this, or someone else can suggest something better.

alefchaves (Wed, 22 Apr 2020 15:56:54 GMT):
I'll check it, thanks

BrettLogan (Wed, 22 Apr 2020 15:58:09 GMT):
It's worth noting, three nodes is no better than 1 in raft consensus. 5 nodes is the minimal deployment we recommend. If you have 3 nodes, and 1 goes offline, you now have 2 nodes, and a majority of 2 nodes, is 2 nodes. In a 5 node configuration, you can tolerate up to 2 nodes going offline, as a majority of 3 is 2 and you can still reach consensus

BrettLogan (Wed, 22 Apr 2020 15:59:01 GMT):
What version of OpenShift are you using?

RobinKlemens (Wed, 22 Apr 2020 15:59:11 GMT):
3.11

BrettLogan (Wed, 22 Apr 2020 16:03:37 GMT):
I'd have to go and look when it started becoming a problem, and I can't say for sure this is the issue you are facing, I haven't read everything you've posted, but EOF errors in openshift are a known problem. Internally (here at IBM) our OpenShift platform channel is filled with people who hit EOF errors for seemingly no reason at all. The platform team at IBM has an open ticket with RedHat (yes, same company now, but we still operate independently) investigating this problem, and unfortunately there still is no resolution

BrettLogan (Wed, 22 Apr 2020 16:04:57 GMT):
How did you deploy OpenShift, using a cloud provider, yourself on VM's, or is it MiniShift

RobinKlemens (Wed, 22 Apr 2020 16:05:59 GMT):
Thanks for youre answer. I deployed to cloud provider, which uses aws

BrettLogan (Wed, 22 Apr 2020 16:07:55 GMT):
Internally, we have a tool that can fix the problem when it occurs (involves recycling TLS certs), but it isn't open source, so I can't share it. But let me see if I can dredge up the ticket for the EOF problem, I believe it was opened in the public support system, not our internal, so you would be able to read it and see if it applies.

BrettLogan (Wed, 22 Apr 2020 16:10:51 GMT):
Actually, if you just google `Openshift EOF` you'll see hundreds of hits

BrettLogan (Wed, 22 Apr 2020 16:12:59 GMT):
You can follow one implementation being done by a team at IBM here: https://github.com/SmartBFT-Go/

BrettLogan (Wed, 22 Apr 2020 16:13:20 GMT):
Yacov (one of the Fabric maintainers is leading this work)

BrettLogan (Wed, 22 Apr 2020 16:14:37 GMT):
And this is a high performant version of BFT being developed at IBM that we expect will eventually become the BFT implementation Fabric implements (which will come later this year): https://github.com/IBM/mirbft

BrettLogan (Wed, 22 Apr 2020 16:14:37 GMT):
And this is a high performant version of BFT being developed at IBM that we expect will eventually become the BFT implementation Fabric implements (hopefully later this year): https://github.com/IBM/mirbft

BrettLogan (Wed, 22 Apr 2020 16:15:25 GMT):
The first implementation is nearing completion, and is implemented on the fork in the Org I shared

BrettLogan (Wed, 22 Apr 2020 16:18:43 GMT):
What operation were you performing. The fact that the peer is running means you have your certs configured properly. Whatever operation you were performing, you presented the incorrect certs from the client side

BrettLogan (Wed, 22 Apr 2020 16:20:10 GMT):
You can call one function from another. But "invoking" itself, no. Invocation involves going through the endorsement process

BrettLogan (Wed, 22 Apr 2020 16:20:26 GMT):
You can however invoke one chaincode from another

ZappaBoy (Wed, 22 Apr 2020 16:32:10 GMT):
I generate new certs with cryptogen extend and put them into docker volume. I'm trying to join the peer to the channel

ZappaBoy (Wed, 22 Apr 2020 16:32:10 GMT):
`export CHANNEL_NAME=my-channel CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/msp CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/tls/ca.crt CORE_PEER_ADDRESS=IP:11051 peer channel join -b my-channel.block`

ZappaBoy (Wed, 22 Apr 2020 16:34:31 GMT):
That's what i do in CLI

ZappaBoy (Wed, 22 Apr 2020 16:37:35 GMT):
I checked in PEER /etc/hyperledger/fabric/msp/signcerts/peer2.org1.example.com-cert.pem and are the same that i pass from CLI

BrettLogan (Wed, 22 Apr 2020 16:38:59 GMT):
and what is the output of `env | grep peer` to make sure your request is going to the peer you expect it is

alefchaves (Wed, 22 Apr 2020 16:40:50 GMT):
very good, I'll take a look here, thanks

ZappaBoy (Wed, 22 Apr 2020 16:45:52 GMT):
PEER: CORE_PEER_ID=peer2.org1.example.com CORE_PEER_ADDRESS=peer2.org1.example.com:7051 CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=peer2_byfn PWD=/opt/gopath/src/github.com/hyperledger/fabric/peer CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2.org1.example.com:7051 CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051 CLI: CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt PWD=/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/peer2.org1.example.com/msp CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/tls/ca.crt

ZappaBoy (Wed, 22 Apr 2020 16:45:52 GMT):
I changed CLI env to this:

ZappaBoy (Wed, 22 Apr 2020 16:45:52 GMT):
I changed CLI env to this: `CORE_PEER_TLS_KEY_FILE="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/tls/server.key" CORE_PEER_TLS_CERT_FILE="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/tls/server.crt"`

ZappaBoy (Wed, 22 Apr 2020 16:58:42 GMT):
But nothing

PamudithaNavaratne (Wed, 22 Apr 2020 17:38:09 GMT):
this is my error

PamudithaNavaratne (Wed, 22 Apr 2020 17:40:24 GMT):
This is my error error: [Transaction]: verifyArguments: Transaction arguments must be strings: "3f6878e0-84c0-11ea-bd86-9df485380151", "patient4@gmail.com", "clinic@gmail.com", "Durdans", "2020-04-22T17:39:42.062Z", "[{\"name\":\"heamoglobin\",\"reading\":\"12\"},{\"name\":\"mrc\",\"reading\":\"3.3\"},{\"name\":\"hct\",\"reading\":\"33\"}]" im trying to send an object array to my chaincode but the transaction fails.. Any ideas what I may be doing wrong here?

jital (Wed, 22 Apr 2020 17:59:02 GMT):
are multi org implicit private collections supported?

fk2 (Wed, 22 Apr 2020 23:59:21 GMT):
Thank you for your advice. I'm thinking of changing the raft to 5 node configuration. Do you know how to change the configuration from 1 node to 5 node?

BrettLogan (Thu, 23 Apr 2020 00:06:49 GMT):
https://medium.com/@kctheservant/add-an-orderer-to-a-running-raft-based-orderer-cluster-b6a432da138c

BrettLogan (Thu, 23 Apr 2020 00:06:57 GMT):
This is the general idea behind it

BrettLogan (Thu, 23 Apr 2020 00:07:11 GMT):
You're just adding more orderers to the mix

fk2 (Thu, 23 Apr 2020 00:12:24 GMT):
Thank you so much! It's exactly what I want to do. I'll try it just now.

chintanr11 (Thu, 23 Apr 2020 06:05:21 GMT):
How can we offline analyze the blocks of the ledger using the backed up data from any peer. let's say we want this for audibility puproses then how to achieve it without using any peer channel fetch and then decode command? As everything is happening offline outside the network.

adgupta011 (Thu, 23 Apr 2020 09:54:14 GMT):
Has joined the channel.

philschan (Thu, 23 Apr 2020 11:02:13 GMT):
Has joined the channel.

philschan (Thu, 23 Apr 2020 11:02:14 GMT):
Hello everyone! I am trying to deploy a multi-host network on 2 AWS EC2 instance, where each instance would be hosting 1 orderer and 1 peer: Instance 1: 172.31.32.120 is hosting orderer1.example.com and peer0.org1.example.com Instance 2: 172.31.39.164 is hosting orderer2.example.com and peer0.org2.example.com I am using docker swarm to create the network When I deploy I would generate all crypto info on instance 1 and copy them to instance 2, but every time when I started orderer2.example.com, it would terminate a few seconds after it was up, peer0.org2.example.com also could not make connection with orderer1.example.com Attached is the log and config files: ``

philschan (Thu, 23 Apr 2020 11:03:09 GMT):
Hello everyone! I am trying to deploy a multi-host network on 2 AWS EC2 instance, where each instance would be hosting 1 orderer and 1 peer:

Mms 11 (Thu, 23 Apr 2020 11:03:37 GMT):
can we have multiple organizations deployed on different networks (like in different clouds) but be connected with each other, via for example a channel ? So we have OrgA that is deployed on IBM, OrgB that is deployed on AWS and OrgC that is deployed in a in-house cloud solution and all three Orgs be part of a four network in a channel ?

Mms 11 (Thu, 23 Apr 2020 11:03:37 GMT):
can we have multiple organizations deployed on different networks (like in different clouds) but be connected with each other, via for example a channel? So we have OrgA that is deployed on IBM, OrgB that is deployed on AWS and OrgC that is deployed in an in-house cloud solution and all three Orgs be part of the fourth network in a channel?

knagware9 (Thu, 23 Apr 2020 11:35:06 GMT):
check your chaincode data structure, you declared chaincode stuct variable as string but passing interger from cli/SDK

knagware9 (Thu, 23 Apr 2020 11:38:25 GMT):
yes, you need to use docker swarm or kubernetes cluster to do tha

theblockstalk (Thu, 23 Apr 2020 13:25:58 GMT):
Has joined the channel.

BrettLogan (Thu, 23 Apr 2020 18:09:33 GMT):
You don't HAVE to use swarm of kube, you can use any method you want, including raw binaries. But Kubernetes is definitely the easiest way to achieve this, and this is how we at IBM build our cloud offering on Fabric.

BrettLogan (Thu, 23 Apr 2020 18:09:33 GMT):
You don't HAVE to use swarm or kube, you can use any method you want, including raw binaries. But Kubernetes is definitely the easiest way to achieve this, and this is how we at IBM build our cloud offering on Fabric.

garyclark (Thu, 23 Apr 2020 18:24:31 GMT):
Got a quick question. I am seeing a problem on instantiating chaincode I am replacing the fabcar example with my own. It looks like its installed on the peer but I am seeing 'Error could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited'. Anything obvious here I should look at?

theblockstalk (Thu, 23 Apr 2020 19:37:25 GMT):
when does a ledge in each channel create a new block? is this done at regular intervals or only when trxs exist?

Darren-Matthews (Thu, 23 Apr 2020 20:27:26 GMT):
Has joined the channel.

garyclark (Thu, 23 Apr 2020 20:45:43 GMT):
To install new chaincode with a different name from fabcar i.e test. What do I need to cleanup. Its not allowing the chaincode to register. I can use fabcar and replace all the functionality and increase the version and it will be accepted. When I change the name from fabcar to test. Its not registering the code during channel instantiation.

garyclark (Thu, 23 Apr 2020 20:45:43 GMT):
To install new chaincode with a different name from fabcar i.e test. What do I need to cleanup. Its not allowing the chaincode to register. I can use fabcar and replace all the functionality and increase the version and it will be instantiated and changes can be seen. When I change the name from fabcar to test. Its not registering the code during channel instantiation.

garyclark (Thu, 23 Apr 2020 20:45:43 GMT):
To install new chaincode with a different name from fabcar to "mychaincode". What do I need to cleanup. Its not allowing the chaincode to register. I can use fabcar and replace all the functionality and increase the version and it will be instantiated and changes can be seen. When I change the name from fabcar to test. Its not registering the code during channel instantiation.

garyclark (Thu, 23 Apr 2020 20:45:43 GMT):
To install new chaincode with a different name from fabcar to "mychaincode". What do I need to cleanup. Its not allowing the chaincode to register. I can use fabcar and replace all the functionality and increase the version and it will be instantiated and changes can be seen. When I change the name from "fabcar" Its not registering the code during channel instantiation.

garyclark (Thu, 23 Apr 2020 20:45:43 GMT):
To install new chaincode with a different name from fabcar to "mychaincode". What do I need to cleanup. Its not allowing the chaincode to register. I can use fabcar and replace all the functionality and increase the version and it will be instantiated and changes can be seen. When I change the name from "fabcar" Its not registering the code during channel instantiation.

icarrascol (Thu, 23 Apr 2020 22:08:11 GMT):
hello everyone i updated docker-compose to the latest version and now i am getting duplicated mount point error when i try to start orderer container, its set up like normal configuration but i added a new line to persist the production folder, it worked fine with older version of docker-compose, does anyone know how to fix it?

artwes (Thu, 23 Apr 2020 23:03:34 GMT):
Is it possible to reset the enrollment secret? Lets say we let the user decide his enrollment secret and we leave it up to him to store it. If he forgets/loses it, Is there any way of resetting it? Trying to enroll with an different secret wouldn't work because the secret given at registration doesn't match. Only way would be registering a new user, but the user data of the old identity would be lost

SharedMocha (Thu, 23 Apr 2020 23:33:39 GMT):
Is it possible to load balance multiple orderer nodes when running on kafka ? If yes, how should node.js connection profile be ?

ZappaBoy (Thu, 23 Apr 2020 23:44:21 GMT):
I fixed TLS problem but now i'm getting this: `grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client:`

ZappaBoy (Fri, 24 Apr 2020 00:44:55 GMT):
I disabled TLS to test and i got this error: ``[protoutils] ValidateProposalMessage -> WARN 57d channel []: MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")

ZappaBoy (Fri, 24 Apr 2020 00:50:04 GMT):
And also this: `[gossip.discovery] func1 -> WARN 903 Could not connect to Endpoint: IP:8051, InternalEndpoint: IP:8051, PKI-ID: , Metadata: : rpc error: code = Unavailable desc = transport is closing`

Adhavpavan (Fri, 24 Apr 2020 03:40:31 GMT):
Hello Experts, I am using fabric 2.1, with new client library fabric-network. I have configured network, created channel, installed chaincode, etc. I could invoke transactions through CLI. Fabric Version: 2.1 fabric-network:2.1 I have defined Event Handler Strategy as below 1) strategy: DefaultEventHandlerStrategies.MSPID_SCOPE_ANYFORTX 2) strategy: createTransactionEventHandler await gateway.connect(ccp, { wallet, identity: username, discovery: { enabled: true, asLocalhost: true }, transaction: { strategy: DefaultEventHandlerStrategies.MSPID_SCOPE_ANYFORTX } }); When I submit the transaction, getting an empty buffer in both cases instead of transaction id(Not sure if we get tx id). The invoked transaction is getting added to the blockchain. I confirmed it from CouchDB and querying the asset. let result = await contract.submitTransaction(fcn, args[0], args[1], args[2], args[3], args[4]); I tried with a custom event handler, but this function is not getting triggered. strategy: createTransactionEventHandler const createTransactionEventHandler = (transactionId, network) => { const mspId = network.getGateway().getIdentity().mspId; const myOrgPeers = network.getChannel().getEndorsers(mspId); console.log(`tx id : ${transactionId}`) return new MyTransactionEventHandler(transactionId, network, myOrgPeers); } Does anyone have any suggestions?

chintanr11 (Fri, 24 Apr 2020 04:54:44 GMT):
Please refer to this command: fabric-ca-client identity modify [flags]

chintanr11 (Fri, 24 Apr 2020 04:56:40 GMT):
Volume mounts might already be present. Please check with "docker volume ls" and see the volumes that already exist. Delete them (if they are not longer required) and restart the deployment.

chintanr11 (Fri, 24 Apr 2020 04:58:20 GMT):
If you wish to change the name, you must first install the chaincode with that name on the required peers. Then you instantiate using one of the peers.

Amanullah68 (Fri, 24 Apr 2020 07:41:36 GMT):
Failed to register the username Aman for organization Seller with::failed Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'Aman' failed in affiliation validation: Failed getting affiliation 'seller.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]]

ascii1011 (Fri, 24 Apr 2020 07:57:27 GMT):
Has joined the channel.

KoushKilla (Fri, 24 Apr 2020 08:09:03 GMT):
Hi all did anyone get a error of `Invoke catch:Error: SERVICE_UNAVAILABLE` when debugging?

RobinKlemens (Fri, 24 Apr 2020 09:05:31 GMT):
thanks @BrettLogan for all your insights. I would appreciate if you could send me the ticket for the EOF problem in the public support system so that I can track it myself. May I ask at which version of OpenShift you guys are operating at IBM? As long as it's just an OpenShift bug which doesn't affect the HL Fabric network I‘m simply gonna filter the EOF errors from the logs. Because the amount of EOF errors is immense.

Ashish (Fri, 24 Apr 2020 10:27:29 GMT):
Has joined the channel.

Ashish (Fri, 24 Apr 2020 10:27:34 GMT):
Hi Regardless of whatever consensus mechanism we choose, the endorsement policy is going to be there in fabric?? I mean we don't have PBFT at transaction endorsement level??

Ashish (Fri, 24 Apr 2020 10:27:34 GMT):
Hi Regardless of whatever consensus mechanism we choose, the endorsement policy ( yaml based) is always going to be there in fabric?? I mean we can't have PBFT at transaction endorsement level??

ZappaBoy (Fri, 24 Apr 2020 10:41:30 GMT):
Passing CORE_PEER_MSPCONFIGPATH="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/msp/" i got: simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid

ZappaBoy (Fri, 24 Apr 2020 10:42:17 GMT):
Passing CORE_PEER_MSPCONFIGPATH="/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/msp/" i got: simulateProposal() resulted in chaincode name:"cscc" response status 500 for txid

theblockstalk (Fri, 24 Apr 2020 10:43:57 GMT):
trying to connect hyperledger explorer to `first-network` seems to have a lot of steps. Do I need to install prometheus, and is there any more susinct tutorials?

iambatman (Fri, 24 Apr 2020 11:09:36 GMT):
does anybody have an answer for this https://stackoverflow.com/questions/61405242/hyperledger-fabric-2-0-chaincode-as-external-serviceunknown-chaincodetype-ext

iambatman (Fri, 24 Apr 2020 11:52:49 GMT):
This is the yaml format of externalBuilder configuration chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang environmentWhitelist: - GOPROXY How can I override this with `CORE` name This I got from the official doc example, peer.mspConfigPath configuration property can be specified by defining CORE_PEER_MSPCONFIGPATH environment variable

iambatman (Fri, 24 Apr 2020 11:52:49 GMT):
This is the yaml format of externalBuilder configuration `chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang environmentWhitelist: - GOPROXY` How can I override this with `CORE` name This I got from the official doc example, peer.mspConfigPath configuration property can be specified by defining CORE_PEER_MSPCONFIGPATH environment variable

iambatman (Fri, 24 Apr 2020 11:52:49 GMT):
This is the yaml format of externalBuilder configuration ```chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang environmentWhitelist: - GOPROXY``` How can I override this with `CORE` name This I got from the official doc example, peer.mspConfigPath configuration property can be specified by defining CORE_PEER_MSPCONFIGPATH environment variable

iambatman (Fri, 24 Apr 2020 11:52:49 GMT):
This is the yaml format of externalBuilder configuration ```chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang environmentWhitelist: - GOPROXY``` How can I override this with enviroment variable `CORE` This I got from the official doc example, peer.mspConfigPath configuration property can be specified by defining CORE_PEER_MSPCONFIGPATH environment variable

iambatman (Fri, 24 Apr 2020 11:54:04 GMT):
but there is no way how to define the array YAML file since the `externalBuilders ` is an array so i can't find proper way

Amanullah68 (Fri, 24 Apr 2020 11:59:48 GMT):
Kindly help me, got this error on initiating code [ERROR] instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: error starting container: error starting container: Failed to generate platform-specific docker build: Error executing build: API error (404): network artifacts_default not found ""

Taaanos (Fri, 24 Apr 2020 12:44:51 GMT):
which network are you using?

Bolzo 1 (Fri, 24 Apr 2020 12:53:50 GMT):
Hi, I'm using Fabric 2.0 and I'm trying to commit a chaincode to a channel. But I get `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`. The orderer log are these: ``` 2020-04-24 12:50:08.213 UTC [policies] SignatureSetToValidIdentities -> DEBU 5a6 signature for identity 0 validated 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5a7 0xc000ca2ad0 gate 1587732608213658142 evaluation starts 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a8 0xc000ca2ad0 signed by 0 principal evaluation starts (used [false]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a9 0xc000ca2ad0 processing identity 0 - &{MyOrgMSP da7c5ecfa6c3070127f5e36c5f39500c4f826af8f0b879f86e849b82058cc378} 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5aa 0xc000ca2ad0 principal evaluation succeeds for identity 0 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ab 0xc000ca2ad0 signed by 1 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ac 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ad 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ae 0xc000ca2ad0 signed by 2 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5af 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b0 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b1 0xc000ca2ad0 signed by 3 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b2 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b3 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5b4 0xc000ca2ad0 gate 1587732608213658142 evaluation succeeds 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b5 Signature set satisfies policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b6 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b7 Signature set satisfies policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b8 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b9 Signature set satisfies policy /Channel/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5ba == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Writers ```

Bolzo 1 (Fri, 24 Apr 2020 12:53:50 GMT):
Hi, I'm using Fabric 2.0 and I'm trying to commit a chaincode to a channel. But I get `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`. The orderer log are these: ``` 2020-04-24 12:50:08.213 UTC [policies] SignatureSetToValidIdentities -> DEBU 5a6 signature for identity 0 validated 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5a7 0xc000ca2ad0 gate 1587732608213658142 evaluation starts 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a8 0xc000ca2ad0 signed by 0 principal evaluation starts (used [false]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a9 0xc000ca2ad0 processing identity 0 - &{MyOrgMSP da7c5ecfa6c3070127f5e36c5f39500c4f826af8f0b879f86e849b82058cc378} 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5aa 0xc000ca2ad0 principal evaluation succeeds for identity 0 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ab 0xc000ca2ad0 signed by 1 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ac 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ad 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ae 0xc000ca2ad0 signed by 2 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5af 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b0 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b1 0xc000ca2ad0 signed by 3 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b2 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b3 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5b4 0xc000ca2ad0 gate 1587732608213658142 evaluation succeeds 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b5 Signature set satisfies policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b6 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b7 Signature set satisfies policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b8 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b9 Signature set satisfies policy /Channel/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5ba == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Writers ``` It seems that the identity is valid, in my configtx.yaml I have configured the `LifecycleEndorsment` like this: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` So I'm expecting to successfully commit the chaincode using only the admin identity of MyOrg (I've approved the chaincode definition only with this organization). Any idea?

Bolzo 1 (Fri, 24 Apr 2020 12:53:50 GMT):
Hi, I'm using Fabric 2.0 and I'm trying to commit a chaincode to a channel. But I get `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`. The orderer's logs are these: ``` 2020-04-24 12:50:08.213 UTC [policies] SignatureSetToValidIdentities -> DEBU 5a6 signature for identity 0 validated 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5a7 0xc000ca2ad0 gate 1587732608213658142 evaluation starts 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a8 0xc000ca2ad0 signed by 0 principal evaluation starts (used [false]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a9 0xc000ca2ad0 processing identity 0 - &{MyOrgMSP da7c5ecfa6c3070127f5e36c5f39500c4f826af8f0b879f86e849b82058cc378} 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5aa 0xc000ca2ad0 principal evaluation succeeds for identity 0 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ab 0xc000ca2ad0 signed by 1 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ac 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ad 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ae 0xc000ca2ad0 signed by 2 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5af 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b0 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b1 0xc000ca2ad0 signed by 3 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b2 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b3 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5b4 0xc000ca2ad0 gate 1587732608213658142 evaluation succeeds 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b5 Signature set satisfies policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b6 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/IfinPeerMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b7 Signature set satisfies policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b8 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b9 Signature set satisfies policy /Channel/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5ba == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Writers ``` It seems that the identity is valid, in my configtx.yaml I have configured the `LifecycleEndorsment` like this: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` So I'm expecting to successfully commit the chaincode using only the admin identity of MyOrg (I've approved the chaincode definition only with this organization). Any idea?

Bolzo 1 (Fri, 24 Apr 2020 12:53:50 GMT):
Hi, I'm using Fabric 2.0 and I'm trying to commit a chaincode to a channel. But I get `Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)`. The orderer's logs are these: ``` 2020-04-24 12:50:08.213 UTC [policies] SignatureSetToValidIdentities -> DEBU 5a6 signature for identity 0 validated 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5a7 0xc000ca2ad0 gate 1587732608213658142 evaluation starts 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a8 0xc000ca2ad0 signed by 0 principal evaluation starts (used [false]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5a9 0xc000ca2ad0 processing identity 0 - &{MyOrgMSP da7c5ecfa6c3070127f5e36c5f39500c4f826af8f0b879f86e849b82058cc378} 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5aa 0xc000ca2ad0 principal evaluation succeeds for identity 0 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ab 0xc000ca2ad0 signed by 1 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ac 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ad 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5ae 0xc000ca2ad0 signed by 2 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5af 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b0 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b1 0xc000ca2ad0 signed by 3 principal evaluation starts (used [true]) 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b2 0xc000ca2ad0 skipping identity 0 because it has already been used 2020-04-24 12:50:08.213 UTC [cauthdsl] func2 -> DEBU 5b3 0xc000ca2ad0 principal evaluation fails 2020-04-24 12:50:08.213 UTC [cauthdsl] func1 -> DEBU 5b4 0xc000ca2ad0 gate 1587732608213658142 evaluation succeeds 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b5 Signature set satisfies policy /Channel/Application/MyOrgMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b6 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/MyOrgMSP/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b7 Signature set satisfies policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b8 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5b9 Signature set satisfies policy /Channel/Writers 2020-04-24 12:50:08.213 UTC [policies] EvaluateSignedData -> DEBU 5ba == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Writers ``` It seems that the identity is valid, in my configtx.yaml I have configured the `LifecycleEndorsment` like this: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` So I'm expecting to successfully commit the chaincode using only the admin identity of MyOrg (I've approved the chaincode definition only with this organization). Any idea?

Amanullah68 (Fri, 24 Apr 2020 13:09:03 GMT):
byfn

BrettLogan (Fri, 24 Apr 2020 14:28:23 GMT):
can you share your full log, the error is referencing something that happened much earlier in flow

BrettLogan (Fri, 24 Apr 2020 14:29:32 GMT):
you can't, this one is not possible

ZappaBoy (Fri, 24 Apr 2020 14:57:44 GMT):
Any idea?

BrettLogan (Fri, 24 Apr 2020 15:12:43 GMT):
I cant reply in the thread anymore @ZappaBoy. How did you disable tls, RAFT requires it

ZappaBoy (Fri, 24 Apr 2020 15:21:41 GMT):
In Cli docker CORE_PEER_TLS_ENABLED=false

ZappaBoy (Fri, 24 Apr 2020 15:21:41 GMT):
This is only about peer connection, right?

BrettLogan (Fri, 24 Apr 2020 15:31:36 GMT):
My bad, forgot what command you were performing, this is correct

ZappaBoy (Fri, 24 Apr 2020 15:33:31 GMT):
OK, at least one thing I did right.

braduf (Fri, 24 Apr 2020 16:15:26 GMT):
Hi all, does anyone know why the first dash of the signature-policy flag is a longer type of dash, `—-signature-policy`: https://hyperledger-fabric.readthedocs.io/en/release-2.0/endorsement-policies.html?highlight=OutOf#setting-chaincode-level-endorsement-policies The strange thing is that one of my colleagues had to really use this long dash in his commands to get a `true` when approving chaincode with the signature-policy flag. I never had problems just using `--signature-policy`, but so does anyone know why he does and why the documentation has this long dash character for this flag only? Thanks in advance.

braduf (Fri, 24 Apr 2020 16:15:26 GMT):
Hi all, does anyone know why the first dash of the signature-policy flag is a longer type of dash in this part of the documentation, `—-signature-policy`: https://hyperledger-fabric.readthedocs.io/en/release-2.0/endorsement-policies.html?highlight=OutOf#setting-chaincode-level-endorsement-policies The strange thing is that one of my colleagues had to really use this long dash in his commands to get a `true` when approving chaincode with the signature-policy flag. I never had problems just using `--signature-policy`, but so does anyone know why he does and why the documentation has this long dash character for this flag only? Thanks in advance.

braduf (Fri, 24 Apr 2020 16:15:26 GMT):
Hi all, does anyone know why the first dash of the signature-policy flag is another type of dash in this part of the documentation, `—-signature-policy`: https://hyperledger-fabric.readthedocs.io/en/release-2.0/endorsement-policies.html?highlight=OutOf#setting-chaincode-level-endorsement-policies The strange thing is that one of my colleagues had to really use this long dash in his commands to get a `true` when approving chaincode with the signature-policy flag. I never had problems just using `--signature-policy`, but so does anyone know why he does and why the documentation has this long dash character for this flag only? Thanks in advance.

BrettLogan (Fri, 24 Apr 2020 16:19:52 GMT):
Let me get with the doc team on this, this is definitely not intended. And your college definitely could make it work with the normal dash? I'll convert it to ascii and see what the intended behaviour is

BrettLogan (Fri, 24 Apr 2020 16:21:24 GMT):
There are many weird characters in there, did he try and erase everything and just use normal dashes he typed himself, its likely if he tried to replace just the one dash there was a stray ascii character

BrettLogan (Fri, 24 Apr 2020 16:21:24 GMT):
There are many weird characters in there, did he try and erase everything and just use normal dashes he typed himself, its likely if he tried to replace just the one dash there was still a stray ascii character

braduf (Fri, 24 Apr 2020 16:22:41 GMT):
That is the strange thing about it, if he used a normal dash, everything seemed ok, but the `checkcommitreadiness` never returned `true` after approvement, just changing that one dash to the weird one from the docs, made him able to get a `true` and commit the chaincode. That's the weirdest thing...

BrettLogan (Fri, 24 Apr 2020 16:23:17 GMT):
Was he starting with the pasted command, or did he typee the entire thing out

BrettLogan (Fri, 24 Apr 2020 16:23:33 GMT):
there are a ton of weird characters in those commands, I'm submitting a patch now

braduf (Fri, 24 Apr 2020 16:23:57 GMT):
it was a pasted command, but not from those docs, a command that I typed out with normal dashes and that works just fine for me with normal dashes

braduf (Fri, 24 Apr 2020 16:24:10 GMT):
great, thanks a lot for the patch!

BrettLogan (Fri, 24 Apr 2020 16:24:38 GMT):
No, thank you for bringing it to our attention

braduf (Fri, 24 Apr 2020 16:24:40 GMT):
I will tell him to try again by himself typing all dashes

braduf (Fri, 24 Apr 2020 16:24:40 GMT):
I will tell him to try again by typing all dashes himself

braduf (Fri, 24 Apr 2020 16:24:40 GMT):
No problem, and I will tell him to try again by typing all dashes himself

BrettLogan (Fri, 24 Apr 2020 16:26:35 GMT):
There are a ton of commands with that accidental dash in it in our doc. My assumption is, someone wrote it Word or Google doc which converts `--` to `—` and then missed the fact it occurred and just added a second dash to make up for it

icarrascol (Fri, 24 Apr 2020 16:33:31 GMT):
which are the steps to upgrade to 2.1?

BrettLogan (Fri, 24 Apr 2020 16:37:40 GMT):
From what version?

icarrascol (Fri, 24 Apr 2020 16:38:56 GMT):
v2.0

BrettLogan (Fri, 24 Apr 2020 16:39:26 GMT):
It's a simple binary swap, just bring the components down and restart them with the 2.1 binary

BrettLogan (Fri, 24 Apr 2020 16:39:26 GMT):
It's a hot swap, just bring the components down and restart them with the 2.1 binary

BrettLogan (Fri, 24 Apr 2020 16:39:54 GMT):
If using docker, assuming you've properly configured volumes, stop your container, and relaunch it with the new image

icarrascol (Fri, 24 Apr 2020 16:40:22 GMT):
aah ok, thanks :thumbsup:

icarrascol (Fri, 24 Apr 2020 16:41:20 GMT):
i thought i needed to change the capabilities or something else

BrettLogan (Fri, 24 Apr 2020 16:41:25 GMT):
Only 1.4 -> 2.x has a slightly more complicated upgrade scenario as you have to manually upgrade your DB, and potentially enable v2.0 lifecycle if you are migrating to the new lifecycle

BrettLogan (Fri, 24 Apr 2020 16:41:44 GMT):
Only if you aren't already on 2.0 capabilities

icarrascol (Fri, 24 Apr 2020 18:20:07 GMT):
using node sdk v2.1 why is it needed for the internal and external ports of docker containers to be the same if you use discovery?, in sdk v1.4 that wasnt needed and discovery worked if you had different ports assigned

garyclark (Fri, 24 Apr 2020 18:49:17 GMT):

Clipboard - April 24, 2020 1:49 PM

garyclark (Fri, 24 Apr 2020 18:51:05 GMT):
Seeing the above when attempting to instantiate a new chaincode with a different node.js module. Fabcar is working like a champ. Do not know why this would happen? Suggestions would be welcome.

garyclark (Fri, 24 Apr 2020 18:51:37 GMT):
Using 1.4 fabric.

BrettLogan (Sat, 25 Apr 2020 02:04:41 GMT):
Got updates for the doc into all 2.x branches and master. Should be able to copy them with no problem now. Thanks for bringing to our attention

Amanullah68 (Sat, 25 Apr 2020 09:21:36 GMT):

Screenshot from 2020-04-25 14-20-57.png

Amanullah68 (Sat, 25 Apr 2020 09:21:48 GMT):
I'm trying to initiate chain-code after installing successfully

Mms 11 (Sat, 25 Apr 2020 10:04:06 GMT):
Is there any scheduler inside the fabric network ? I would like to schedule every day execution of some chaincodes. I can do it from outside, but this would be super good if the network would have something like that also.

yacovm (Sat, 25 Apr 2020 16:31:18 GMT):
no there isn't

braduf (Sat, 25 Apr 2020 16:34:31 GMT):
That's great, thank you!

Rachit-gaur (Sat, 25 Apr 2020 18:30:08 GMT):
I want to write a couchdb query to check if User's phone number or email already exists. Can anyone tell me how to do that? this is my user struct{Name:abc,Age:24,Phone:12345678,Email:xyz@gmail.com}

BrettLogan (Sat, 25 Apr 2020 23:02:33 GMT):
Are you doing it in chaincode, or in Mango directly on CouchDB

BrettLogan (Sat, 25 Apr 2020 23:18:05 GMT):
```{ "selector": { "$or": [ { "Phone": { "$ne": "" } }, { "Email": { "$ne": "" } } ] } }```

BrettLogan (Sat, 25 Apr 2020 23:19:37 GMT):
This assuming you've created the Email and Phone signature, and they are simply empty. Otherwise check if they are `"$ne": null`

hbksagar (Sun, 26 Apr 2020 08:10:00 GMT):
Has joined the channel.

hbksagar (Sun, 26 Apr 2020 08:14:47 GMT):
Hi Fabric Champs, I am new to Blockchain development and starting with Hyperledger fabric and was having trouble with how to start, what IDE to use and it wasn't straight forwards since 2.0 release composer is no more available and most of the first project example resources are based on composer. I finally found a resource from Horea (https://developer.ibm.com/technologies/blockchain/tutorials/ibm-blockchain-platform-vscode-smart-contract/). I am trying out the example and was interrupted by fsPath error in VScode which I am unable to find a solution online. (I am using windows 10 with WSL2 and trying to run the fabric on Ubuntu 18.04). I would appreciate some help. Thank you in advance

hbksagar (Sun, 26 Apr 2020 08:17:10 GMT):
Error while trying to create a package from open project. (Error: Cannot read property 'fsPath' of undefined)

yehuofirst (Sun, 26 Apr 2020 09:27:24 GMT):
Has joined the channel.

yehuofirst (Sun, 26 Apr 2020 09:27:25 GMT):
every invoke , order logs :kiss_ww: 2020-04-26 08:37:38.347 UTC [orderer.common.broadcast] Handle -> WARN 065 Error reading from 172.18.0.11:53966: rpc error: code = Canceled desc = context canceled

davidkel (Sun, 26 Apr 2020 11:13:00 GMT):
That specific issue is discussed here https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2193 Some people find it's fixed in 1.0.27 release. If you fond it's not fixed then maybe comment on this issue. An alternative is to downgrade to VS Code 1.39. Just for your awareness however the extension has not been tested with WSL2 on Windows. You may hit further problems. If so I would recommend running Ubuntu in a hypervisor such as virtualbox instead

hbksagar (Sun, 26 Apr 2020 12:12:03 GMT):
Thanks for the info @davidkel. Let me check and update here

lv_22 (Sun, 26 Apr 2020 16:38:22 GMT):
Has joined the channel.

lv_22 (Sun, 26 Apr 2020 16:38:23 GMT):
When creating a network with many organization (30+), do you assign each organization a peer, or can multiple organization be hosted on a single or small collection of peers? What is best practice for creating networks with many organizations (30+)

Amanullah68 (Sun, 26 Apr 2020 20:54:53 GMT):
Hi guy's, please help me on immediate basis. thanks

Amanullah68 (Sun, 26 Apr 2020 20:55:41 GMT):
I've successfully installed chaincode on peers. now trying to initiate chaincode but failed due to this error.

Amanullah68 (Sun, 26 Apr 2020 20:55:44 GMT):
"Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: error starting container: error starting container: Failed to generate platform-specific docker build: Error executing build: API error (404): network artifacts_default not found \"\""

Amanullah68 (Sun, 26 Apr 2020 20:56:00 GMT):
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=artifacts_default

Aniledger (Sun, 26 Apr 2020 22:33:55 GMT):
Has joined the channel.

BrettLogan (Mon, 27 Apr 2020 00:16:37 GMT):
It's worth mentioning, your objects aren't necessarily unique. If it's possible the phone number and email can be empty, then it's possible you can have two objects with the same data

BrettLogan (Mon, 27 Apr 2020 00:16:37 GMT):
It's worth mentioning, your objects aren't necessarily unique. If it's possible the phone number and email can be empty, then it's possible you can have two objects with the same signature

razasikander (Mon, 27 Apr 2020 04:34:07 GMT):
Hey guys how to do the work load balancing in the fabric peers?

JayJong (Mon, 27 Apr 2020 05:47:12 GMT):
Hi all, im using fabric 2.0.1 and my network is on a remote vm. When i try to invoke on my local, it returns this error. ```E0427 11:59:26.326763000 140736286528448 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. 2020-04-27T03:59:26.815Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001 2020-04-27T03:59:26.816Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0-org1 url:grpcs://:30001 timeout:3000 2020-04-27T03:59:26.821Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer0-org1 due to Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001``` Anyone knows how to solve this?

JayJong (Mon, 27 Apr 2020 05:47:12 GMT):
Hi all, im using fabric 2.0.1 and my network is on a remote vm. When i try to invoke on my local, it returns this error. ```E0427 11:59:26.326763000 140736286528448 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. 2020-04-27T03:59:26.815Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001 2020-04-27T03:59:26.816Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0-org1 url:grpcs://:30001 timeout:3000 2020-04-27T03:59:26.821Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer0-org1 due to Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001``` Btw, im using node@12.16.1, grpc@1.24.2, fabric-network@2.0.0-beta.4Anyone knows how to solve this?

JayJong (Mon, 27 Apr 2020 05:47:12 GMT):
Hi all, im using fabric 2.0.1 and my network is on a remote vm. When i try to invoke on my local, it returns this error. ```E0427 11:59:26.326763000 140736286528448 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed. 2020-04-27T03:59:26.815Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001 2020-04-27T03:59:26.816Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0-org1 url:grpcs://:30001 timeout:3000 2020-04-27T03:59:26.821Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer0-org1 due to Error: Failed to connect before the deadline on Endorser- name: peer0-org1, url:grpcs://:30001``` Btw, im using node@12.16.1, grpc@1.24.2, fabric-network@2.0.0-beta.4 Anyone knows how to solve this?

Bolzo 1 (Mon, 27 Apr 2020 06:39:00 GMT):
Noone?

Anurag28 (Mon, 27 Apr 2020 07:42:06 GMT):
Hi,

Anurag28 (Mon, 27 Apr 2020 07:45:25 GMT):
Hi, I'm using fabric v2.1. In the test-network repo, createChannel commad is giving the following error. Plz help!

Anurag28 (Mon, 27 Apr 2020 07:48:05 GMT):
Hi, I'm using fabric v2.1. In the test-network repo, createChannel commad is giving the following error. Plz help! Creating channel mychannel Using organization 1 + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /home/fabric/HLF/fabric-sample v2.1/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /home/fabric/HLF/fabric-sample v2.1/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /home/fabric/HLF/fabric-sample v2.1/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls true --cafile /home/fabric/HLF/fabric-sample v2.1/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home/fabric/HLF/fabric-sample: no such file or directory !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed

JayJong (Mon, 27 Apr 2020 11:12:37 GMT):
this is the clue, `Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home/fabric/HLF/fabric-sample: no such file or directory`, your script is simply not creating this file, double check your script for creation of orderer msp

Anurag28 (Mon, 27 Apr 2020 11:16:17 GMT):
Thanks @JayJong for quick reply. I cloned the repo from fabric-samples & didn't edited a single line in the script. So it must be possible that everyone would be facing the same issue?

JayJong (Mon, 27 Apr 2020 11:24:55 GMT):
can u give me the link to the repo u pulled from?

Anurag28 (Mon, 27 Apr 2020 11:28:56 GMT):
sure! https://github.com/hyperledger/fabric-samples/tree/v2.1.0/test-network

Anurag28 (Mon, 27 Apr 2020 11:30:07 GMT):
I ran the following command in the repo- ./network.sh createChannel

JayJong (Mon, 27 Apr 2020 11:32:15 GMT):
did u run `./network.sh up`?

Anurag28 (Mon, 27 Apr 2020 11:33:09 GMT):
Yes. 2 peers & a ordering node were successfully created

Anurag28 (Mon, 27 Apr 2020 11:34:03 GMT):
checked respective crypto-config yaml files & configtx yaml file, both seem good.

JayJong (Mon, 27 Apr 2020 11:44:41 GMT):
`fabric-sample v2.1`, i think might be your space when u are creating your directory. try removing the space

Anurag28 (Mon, 27 Apr 2020 11:46:19 GMT):
Okay, will try that.

Anurag28 (Mon, 27 Apr 2020 11:47:15 GMT):
But it's just a folder where I am storing all the repo samples, don't think will have much effect!

Anurag28 (Mon, 27 Apr 2020 11:53:27 GMT):
Hi @JayJong, tried it again. Same error!

BrettLogan (Mon, 27 Apr 2020 14:18:13 GMT):
Can you share the command you are running without the space in the path, as well as the output again. The space was definitely an issue

BrettLogan (Mon, 27 Apr 2020 14:18:37 GMT):
So now that you've removed it we will look at it again

Anurag28 (Mon, 27 Apr 2020 14:49:37 GMT):
Sure! In the directory of the terminal, I first ran the command *./network.sh up* to start the network. It successfully created 2 peers & 1 ordering node. Then, I ran the command *./network.sh createChannel* but it gave the error output as:

Anurag28 (Mon, 27 Apr 2020 14:49:37 GMT):
Sure! In the test-network directory of fabric-samples, I first ran the command *./network.sh up* to start the network. It successfully created 2 peers & 1 ordering node. Then, I ran the command *./network.sh createChannel* but it gave the error output as:

Anurag28 (Mon, 27 Apr 2020 14:50:01 GMT):
Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home/fabric/HLF/fabric-sample: no such file or directory !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed

ftgha (Mon, 27 Apr 2020 16:18:34 GMT):
Is the `test-network` the best setup for automated tests involving identities/endorsement?

ShiTzu7 (Mon, 27 Apr 2020 19:43:24 GMT):
Has joined the channel.

ShiTzu7 (Mon, 27 Apr 2020 19:43:26 GMT):
Hi all, I'm trying to create a channel from the test-network sample of Hyperledger Fabric v2.1. I have installed all the latest fabric binaries & docker images. The channel-artifacts, 2 peers and a ordering node were successfully created. But, the command ./network.sh createChannel gives the following error: Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Has anyone else had this issue and found a solution please? Very grateful for any advice

Siva_Kannan (Mon, 27 Apr 2020 21:55:49 GMT):
Has joined the channel.

ftgha (Tue, 28 Apr 2020 02:58:53 GMT):
I have a typescript chaincode and running `fabric-chaincode-node start` fails whenever I include a `BigInt` as a `@Properties()`. Is that intended? Does that mean that my chaincode cannot use this native typescript type?

KaushalKedilaya (Tue, 28 Apr 2020 03:33:10 GMT):
Hi all, I'm using contractapi in contract. How to get history of state? ctx.GetStub.GetHistoryForKey() says GetHistoryForKey() function not defined.

ajing008 (Tue, 28 Apr 2020 04:00:13 GMT):
Has joined the channel.

ajing008 (Tue, 28 Apr 2020 04:00:14 GMT):
Hello all, ​ I use ```./network.sh up``` to creates a Fabric network, but meet a error below ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen' ERROR! Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html ``` I have check ~/.bash_profile set this environment variable below. ``` export PATH=$WORKSPACE/fabric-samples/bin:$PATH ``` Could you tell me where's wrong?

hbksagar (Tue, 28 Apr 2020 04:29:07 GMT):
@davidkel I did the workaround, downgraded to 1.39.2 and everything worked like a charm and also left a comment on the Issue (https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2193#issuecomment-619543699). Thank you for your help

hbksagar (Tue, 28 Apr 2020 04:29:07 GMT):
@davidkel I did the workaround, downgraded the VSC to 1.39.2 and everything worked like a charm and also left a comment on the Issue (https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2193#issuecomment-619543699). Thank you for your help

KoushKilla (Tue, 28 Apr 2020 06:07:28 GMT):
Hi @ajing008 try using echo. so I have my fabric-samples here echo "export PATH=/opt/fabric-samples/bin/:$PATH" >> ~/.profile && source ~/.profile

KoushKilla (Tue, 28 Apr 2020 06:07:28 GMT):
Hi @ajing008 try using echo. so I have my fabric-samples here echo "export PATH=/opt/fabric-samples/bin/:$PATH" >> ~/.profile && source ~/.profile

Anurag28 (Tue, 28 Apr 2020 06:32:01 GMT):
Hi, I removed the space from the directory folder & it worked. Thanks for quick help!

Anurag28 (Tue, 28 Apr 2020 06:32:19 GMT):
*2020-04-28 12:00:12.938 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-04-28 12:00:13.040 IST [channelCmd] update -> INFO 002 Successfully submitted channel update ===================== Anchor peers updated for org 'Org2MSP' on channel 'mychannel' ===================== ========= Channel successfully joined =========== *

Taaanos (Tue, 28 Apr 2020 07:33:48 GMT):
could you check the logs from the peers? Try to bring the network down and up again and check if your peers give you any errors, then try to create the channel

Taaanos (Tue, 28 Apr 2020 07:33:48 GMT):
could you check the logs from the peers and orderer? Try to bring the network down and up again and check if the orderer gives you any errors, then try to create the channel

anjok (Tue, 28 Apr 2020 08:02:34 GMT):
Has joined the channel.

anjok (Tue, 28 Apr 2020 08:02:35 GMT):
hello,

anjok (Tue, 28 Apr 2020 08:04:09 GMT):
Our company has developed a fabric toolkit and would like to submit it to fabric-samples.

anjok (Tue, 28 Apr 2020 08:04:31 GMT):
it's link: https://github.com/zeoio/fabric-samples/tree/release-1.4/distributed-deploy

anjok (Tue, 28 Apr 2020 08:09:29 GMT):
hello ?

davidkel (Tue, 28 Apr 2020 08:26:16 GMT):
You might have to raise an RFC, check out https://github.com/hyperledger/fabric-rfcs

anjok (Tue, 28 Apr 2020 08:27:15 GMT):
ok

ShiTzu7 (Tue, 28 Apr 2020 08:27:28 GMT):
Hi Taaanos, thanks - will try that this evening and revert. Cheers.

albertkurian (Tue, 28 Apr 2020 08:43:54 GMT):
Has joined the channel.

albertkurian (Tue, 28 Apr 2020 08:43:55 GMT):
Hi All, Does anyone know an implementation for queryHistory using contractApi

LabibFarag (Tue, 28 Apr 2020 10:35:51 GMT):
I have problem while developing smart contract in type script , after create new class that extend Contract or annotating the class with @Object , the new classes and smart contract doesn't accessible after initiation of chain code ....... I tried to check what file metadata.json to check what is defined I can't see my new classes define in this file ... to generate this file I used the command `fabric-chaincode-node metadata generate -f metadata.json` any idea why metadata.json doesn't contains new classes and smart contract ?

iambatman (Tue, 28 Apr 2020 10:58:37 GMT):
I am trying to experiment new chain code life cycle,in the chaincode commit step i am getting the (ENDORSEMENT_POLICY_FAILURE) at peer error

iambatman (Tue, 28 Apr 2020 10:58:37 GMT):
I am trying to experiment new chain code life cycle,in the chaincode commit step i am getting the (ENDORSEMENT_POLICY_FAILURE) at peer error ```Application: &ApplicationDefaults Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" LifecycleEndorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" Endorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" BlockValidation: Type: ImplicitMeta Rule: "ANY Writers" ```

iambatman (Tue, 28 Apr 2020 10:58:37 GMT):
I am trying to experiment new chain code life cycle,in the chaincode commit step i am getting the (ENDORSEMENT_POLICY_FAILURE) at peer error. Here is the application policy ```Application: &ApplicationDefaults Organizations: Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" LifecycleEndorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" Endorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" BlockValidation: Type: ImplicitMeta Rule: "ANY Writers" ```

Rahul98 (Tue, 28 Apr 2020 11:10:42 GMT):
Has joined the channel.

Rahul98 (Tue, 28 Apr 2020 11:10:44 GMT):
Hey everyone need some help,I am trying to setup the docker on my network using the command docker-compose -f docker-compose-cli.yaml -f docker-compose-etcdraft2.yaml up but I am receiving an error stating - No such file or directory: u'./docker-compose-etcdraft2.yaml',whats going wrong?

iambatman (Tue, 28 Apr 2020 11:13:18 GMT):
the file docker-compose-etcdraft2.yaml is missing check the directory

SuneetBendre (Tue, 28 Apr 2020 12:38:16 GMT):
Has joined the channel.

Rachit-gaur (Tue, 28 Apr 2020 12:38:31 GMT):
I am getting the following error when i instantiate in the peer via fabric sdk

Rachit-gaur (Tue, 28 Apr 2020 12:38:33 GMT):
chaincode/input/src/github.com/example_cc/go/test.go:10:2: cannot find package "github.com/rs/xid" in any of: /opt/go/src/github.com/rs/xid (from $GOROOT) /chaincode/input/src/github.com/rs/xid (from $GOPATH) /opt/gopath/src/github.com/rs/xid

Rachit-gaur (Tue, 28 Apr 2020 12:39:05 GMT):
in the docker-compose I have mapped my - $GOPATH:/opt/gopath/ so that all the libraries are imported

Rachit-gaur (Tue, 28 Apr 2020 12:39:29 GMT):
and I can see the package inside the peer at the same location, but it is not being picked up

Rachit-gaur (Tue, 28 Apr 2020 12:39:44 GMT):
Does anyone know how to import packages inside peer?

Rachit-gaur (Tue, 28 Apr 2020 17:27:03 GMT):
Can anyone please help me on this?

Rachit-gaur (Tue, 28 Apr 2020 17:30:35 GMT):
$GOPATH/src/github.com/rs/xid is the exact location where the package is located in my system, so I mapped it inside the peer volumes $GOPATH:/opt/gopath

braduf (Tue, 28 Apr 2020 19:56:20 GMT):
Hi all,

braduf (Tue, 28 Apr 2020 19:56:20 GMT):
Hi all, can a transaction where private data is written to an implicit collection also be endorsed by other organizations than just the one of the implicit collection?

BrettLogan (Wed, 29 Apr 2020 00:50:33 GMT):
You don't map the deps. If you are Fabric 1.4.x you need to vendor your dependencies, if you are on fabric 2.x you can either vendor or use Go modules. But the point is, the dependencies have to bbe packages as part of the chaincode

lv_22 (Wed, 29 Apr 2020 04:19:50 GMT):
Can users within an organization transact with each other? Or are transactions limited between users of different organizations

madhu33413 (Wed, 29 Apr 2020 05:30:20 GMT):
Has joined the channel.

madhu33413 (Wed, 29 Apr 2020 05:30:21 GMT):
I installed hyperledger fabric 1.4.1 , trying to run java sample chaincode which is called simplechaincode.java , I am able to execute contract.evaluatetransaction() methods but submittransaction is failing, it says discover with channel is not enabled

madhu33413 (Wed, 29 Apr 2020 05:30:41 GMT):
can anyone give me more information about what the problem and how to solve this

jbam (Wed, 29 Apr 2020 06:06:51 GMT):
Has joined the channel.

aakzubaidi (Wed, 29 Apr 2020 06:22:27 GMT):
#caliper I am looking for an example of a benchmark scenario written in Java. All I can find are either in Go or node.js scripts. Though, I wonder that; will I be able to use node.js benchmark scenario with a Java chaincode?

Rachit-gaur (Wed, 29 Apr 2020 06:36:48 GMT):
Yes, I came accross go mod last night and tried to create go.mod file but the fabric 2.0 packages are being picekd

BrettLogan (Wed, 29 Apr 2020 06:39:08 GMT):
You can call `go get github.com/Hyperledger/fabric-protos-go@` from the root of your Chaincode to choose the version you want. This will update your go.mod

BrettLogan (Wed, 29 Apr 2020 06:39:22 GMT):
Assuming you are using fabric 2.0 or later of course

Rachit-gaur (Wed, 29 Apr 2020 06:39:36 GMT):
Let me try

Rachit-gaur (Wed, 29 Apr 2020 06:39:39 GMT):
thanks

davidkel (Wed, 29 Apr 2020 06:43:24 GMT):
Suggest you ask on the #caliper channel, rather than this channel

sashadasasha (Wed, 29 Apr 2020 07:03:28 GMT):
Has joined the channel.

SuneetBendre (Wed, 29 Apr 2020 07:27:14 GMT):
Hi.. we can discuss, i will try to help

Rachit-gaur (Wed, 29 Apr 2020 07:51:15 GMT):
it worked

Rachit-gaur (Wed, 29 Apr 2020 07:51:20 GMT):
thanks alot

madhu33413 (Wed, 29 Apr 2020 08:54:40 GMT):
Hi SuneetBendre

SuneetBendre (Wed, 29 Apr 2020 11:48:36 GMT):
Hi Madhu, Let connect on direct chat

madhu33413 (Wed, 29 Apr 2020 12:07:40 GMT):
Suneet, are you available now

SuneetBendre (Wed, 29 Apr 2020 13:33:12 GMT):
ya

Vgkmanju (Wed, 29 Apr 2020 13:43:53 GMT):
Hey, I have setup hyperledger fabric version 1.4.2 with 1 org 2 peers 1 orderer setup all are running in 3 different VMs natively. Now I am trying to implement caliper v0.3.0 in this fabric setup. Peers and Orderer are already up and peers are joined in the channel. I have already installed and instantiated chaincodes in the network. I have modified the network config file and benchconfig file in caliper according to my network. So I directly run the caliper using the flag "caliper-flow-only-test". While executing this, I am facing issues like error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at Object.exports.createStatusError (/home/xx/caliper-benchmarks/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1123:18" 2020.04.29-12:22:12.094 error [caliper] [caliper-engine] Error while performing "install" step: Error: Orderer error for instantiating W1CC@v0 in composerchannelrest: SERVICE_UNAVAILABLE Can you any one please suggest how to resolve this?

Vgkmanju (Wed, 29 Apr 2020 13:43:53 GMT):
Hey, I have setup hyperledger fabric version 1.4.2 with 1 org 2 peers 1 orderer setup all are running in 3 different VMs natively. Now I am trying to implement caliper v0.3.0 in this fabric setup. Peers and Orderer are already up and peers are joined in the channel. I have modified the network config file and benchconfig file in caliper according to my network. So I directly run the caliper using the flag "caliper-flow-only-install". While executing this, I am facing issues like error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at Object.exports.createStatusError (/home/xx/caliper-benchmarks/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1123:18" 2020.04.29-12:22:12.094 error [caliper] [caliper-engine] Error while performing "install" step: Error: Orderer error for instantiating W1CC@v0 in composerchannelrest: SERVICE_UNAVAILABLE Can you any one please suggest how to resolve this?

Vgkmanju (Wed, 29 Apr 2020 13:43:53 GMT):
Hey, I have setup hyperledger fabric version 1.4.2 with 1 org 2 peers 1 orderer setup all are running in 3 different VMs natively. Now I am trying to implement caliper v0.3.0 in this fabric setup. Peers and Orderer are already up and peers are joined in the channel. I have modified the network config file and benchconfig file in caliper according to my network. So I directly run the caliper using the flag "caliper-flow-only-install". While executing this, I am facing issues like error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at Object.exports.createStatusError (/home/xx/caliper-benchmarks/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1123:18" 2020.04.29-12:22:12.094 error [caliper] [caliper-engine] Error while performing "install" step: Error: Orderer error for instantiating W1CC@v0 in composerchannelrest: SERVICE_UNAVAILABLE while using caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/createPool.yaml --caliper-networkconfig networks/Azure_fabric-go.yaml --caliper-flow-only-test The following errors are I am facing, (node:44363) UnhandledPromiseRejectionWarning: Error: Could not find details for contract ID W1CC at Fabric.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/adaptor-versions/v1/fabric-v1.js:2122:23) at Fabric.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/fabric.js:113:34) at Blockchain.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/core/blockchain.js:113:33) at Object.module.exports.run (/home/xx/caliper-benchmarks/benchmarks/scenario/simple/addPool.js:115:15) at setImmediatePromise (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/worker/client/caliper-local-client.js:249:34) at Immediate.setImmediate [as onImmediate] (/home/xx/caliper-benchmarks/nodemodules/@hyperledger/caliper-core/lib/worker/client/caliper-local-client.js:226:17) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) (node:44363) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (node:44363) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Can you any one please suggest how to resolve this?

Vgkmanju (Wed, 29 Apr 2020 13:43:53 GMT):
Hey, I have setup hyperledger fabric version 1.4.2 with 1 org 2 peers 1 orderer setup all are running in 3 different VMs natively. Now I am trying to implement caliper v0.3.0 in this fabric setup. Peers and Orderer are already up and peers are joined in the channel. I have modified the network config file and benchconfig file in caliper according to my network. So I directly run the caliper using the flag "caliper-flow-only-install". While executing this, I am facing issues like error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: failed to connect to all addresses\n at Object.exports.createStatusError (/home/xx/caliper-benchmarks/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._receiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client.js:211:8)\n at Object.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1306:15)\n at InterceptingListener._callNext (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:568:42)\n at InterceptingListener.onReceiveStatus (/home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:618:8)\n at /home/xx/caliper-benchmarks/node_modules/grpc/src/client_interceptors.js:1123:18" 2020.04.29-12:22:12.094 error [caliper] [caliper-engine] Error while performing "install" step: Error: Orderer error for instantiating W1CC@v0 in composerchannelrest: SERVICE_UNAVAILABLE While trying to invoke and query with the existing installed chaincode in the network, using caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/createPool.yaml --caliper-networkconfig networks/Azure_fabric-go.yaml --caliper-flow-only-test The following errors are I am facing, (node:44363) UnhandledPromiseRejectionWarning: Error: Could not find details for contract ID W1CC at Fabric.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/adaptor-versions/v1/fabric-v1.js:2122:23) at Fabric.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/fabric.js:113:34) at Blockchain.invokeSmartContract (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/common/core/blockchain.js:113:33) at Object.module.exports.run (/home/xx/caliper-benchmarks/benchmarks/scenario/simple/addPool.js:115:15) at setImmediatePromise (/home/xx/caliper-benchmarks/node_modules/@hyperledger/caliper-core/lib/worker/client/caliper-local-client.js:249:34) at Immediate.setImmediate [as onImmediate] (/home/xx/caliper-benchmarks/nodemodules/@hyperledger/caliper-core/lib/worker/client/caliper-local-client.js:226:17) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) (node:44363) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (node:44363) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Can you any one please suggest how to resolve this?

ascatox (Wed, 29 Apr 2020 14:34:50 GMT):
Hi All!I'm implementing a Java Chaincode and I'm using the *ContractInterface* but in version 2.0 of HLF, Fabric is looking for a main() function, useless using that interface. In version 1.4.5 of HLF my Java chaincode works. Someone can explain me this behaviour of 2.0.0 HLF version? Thanks.

ascatox (Wed, 29 Apr 2020 14:34:50 GMT):
Hi All!I'm implementing a Java Chaincode and I'm using the *ContractInterface* as in [Fabcar Java example](https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/java/src/main/java/org/hyperledger/fabric/samples/fabcar/FabCar.java) but in version 2.0 of HLF, Fabric is looking for a main() function, useless using that interface. In version 1.4.5 of HLF my Java chaincode works. Someone can explain me this behaviour of 2.0.0 HLF version? Thanks.

BrettLogan (Wed, 29 Apr 2020 14:54:55 GMT):
You need to create an instance of your contract that is initialized in your main method

BrettLogan (Wed, 29 Apr 2020 14:54:55 GMT):
You need to create an instance of your contract that is initialized against the shim in your main method

madhu33413 (Wed, 29 Apr 2020 14:57:33 GMT):
Suneet, thank you very much for your help

madhu33413 (Wed, 29 Apr 2020 14:57:50 GMT):
it helped me a lot

Jax.dev (Wed, 29 Apr 2020 15:15:51 GMT):
did anyone tried fabric nodeSDK on serverless cloud function?

Jax.dev (Wed, 29 Apr 2020 15:16:29 GMT):
DHARMEN

AldrinWilfred (Wed, 29 Apr 2020 16:59:58 GMT):
Hi friends, I was trying deploying hlf onto aws. I could accompilsh the steps upto the below where i get error, https://docs.aws.amazon.com/managed-blockchain/latest/managementguide/get-started-create-channel.html When i try to generate the configtx peer block using: docker exec cli configtxgen \ -outputCreateChannelTx /opt/home/mychannel.pb \ -profile OneOrgChannel -channelID mychannel \ --configPath /opt/home/ i get the below error: 2020-04-29 16:49:39.398 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration 2020-04-29 16:49:39.398 UTC [common/tools/configtxgen/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type "" 2020-04-29 16:49:39.398 UTC [common/tools/configtxgen] func1 -> ERRO 003 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains configtx.yaml Kindly advice, what might be the cause and how can i resolve it? Could you please advice me? Thanks + i tried export FABRIC_CFG_PATH=$PWD, but it throws the same error..

BrettLogan (Wed, 29 Apr 2020 18:22:20 GMT):
You are using a container run the command, have you mounted all the appropriate files into the container, and what is the value of FABRIC_CFG_PATH inside the container, can you confirm FABRIC_CFG_PATH contains configtx.yaml

sureshappana (Wed, 29 Apr 2020 19:28:12 GMT):
Has joined the channel.

sureshappana (Wed, 29 Apr 2020 19:32:22 GMT):

peer logs.txt

sureshappana (Wed, 29 Apr 2020 19:32:27 GMT):
Hi, I am trying to run HLF in k8s cluster, I am at the instantiation step. Getting error *Error: could not send: EOF*, I see chaincode container started successfully (and also runs without quitting/restarting). But after few minutes peer is getting the above error message. I have attached peer logs above

sureshappana (Wed, 29 Apr 2020 19:34:00 GMT):
Running HLF 1.4.6

sureshappana (Wed, 29 Apr 2020 19:36:05 GMT):
Using golang chaincode (chaincode_example02) from fabric-samples

TzortzisPanagiotis (Thu, 30 Apr 2020 00:03:31 GMT):
Hello, in docker-compose files shipped with fabric samples the volumes section for peers is the following: volumes: - /var/run/:/host/var/run/ - ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp - ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production

TzortzisPanagiotis (Thu, 30 Apr 2020 00:03:31 GMT):
Hello, in docker-compose files shipped with fabric samples the volumes section for peers is the following: volumes: - /var/run/:/host/var/run/ - ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp - ../crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls - peer1.org1.example.com:/var/hyperledger/production What exactly does the last line do? Why should i volume peer1.org1.example.com to /var/hyperledger/production?

AldrinWilfred (Thu, 30 Apr 2020 03:47:25 GMT):
HI I have the configtx.yaml file in home/ec2-user

Adhavpavan (Thu, 30 Apr 2020 03:48:00 GMT):
Hello, Which logging package is recommended at chaincode? Previously there was logger under shim package, but I could not find in new 2.0 version. I tried "github.com/hyperledger/fabric/common/flogging", is this recommended one? Thanks in advance.

Adhavpavan (Thu, 30 Apr 2020 03:49:00 GMT):
flogging

AldrinWilfred (Thu, 30 Apr 2020 04:21:54 GMT):
yes the .yaml file is in the same directory

AldrinWilfred (Thu, 30 Apr 2020 04:43:37 GMT):
in the bash profile, under the volumes it is described - /home/ec2-user:/opt/home and i have placed the configtx.yaml file in the /home/ec2-user directory and i ran export FABRIC_CFG_PATH=$PWD before running the docker command.. ($PWD is the /home/ec2-user/ directory). could you please suggest what else might cause the issue..

braduf (Thu, 30 Apr 2020 05:05:25 GMT):
I received the following response from @dave.enyeart , thanks a lot for the clear answer Dave! ``` Client can send proposal to any peer (including private data in transient field). Any peer can execute and endorse the proposal request (including receiving the transient data that client sent it). However, after the endorsed transaction has been ordered and sent to all peers for commit, any transaction that was not endorsed by AT LEAST the required endorsers will be invalidated. that is, there is no error or invalidation if you collect EXTRA endorsements. ```

braduf (Thu, 30 Apr 2020 05:05:25 GMT):
I received the following response from @dave.enyeart , thanks a lot for the clear answer Dave! _Client can send proposal to any peer (including private data in transient field). Any peer can execute and endorse the proposal request (including receiving the transient data that client sent it). However, after the endorsed transaction has been ordered and sent to all peers for commit, any transaction that was not endorsed by AT LEAST the required endorsers will be invalidated. that is, there is no error or invalidation if you collect EXTRA endorsements._

AldrinWilfred (Thu, 30 Apr 2020 05:37:10 GMT):
in the docker_compose_cli.yaml, under the volumes it is described - /home/ec2-user:/opt/home and i have placed the configtx.yaml file in the /home/ec2-user directory and i ran export FABRIC_CFG_PATH=$PWD before running the docker command.. ($PWD is the /home/ec2-user/ directory). could you please suggest what else might cause the issue..

AshutoshKumar7 (Thu, 30 Apr 2020 05:54:02 GMT):
Hi , Regarding fabric gateway sdk java , How do I create a wallet on client side ? What should be directory structure? Which certificates I need to keep in client side?

Jax.dev (Thu, 30 Apr 2020 06:18:41 GMT):
https://stackoverflow.com/questions/61517029/fabric-sdk-on-serverless-cloud-function

Jax.dev (Thu, 30 Apr 2020 06:19:01 GMT):
any solution for this issue? Illegal offset while extracting channel config file

AldrinWilfred (Thu, 30 Apr 2020 08:17:28 GMT):
thanks @BrettLogan , i resolved it.. its a typo in docker_compose_cli.yaml

pkirkinezis (Thu, 30 Apr 2020 10:12:40 GMT):
Hi , is it possible to make my local host test-network to make it visible to the local network so I can join a node from another machine ? I tried to start the test-network with my local network ip 192.168.x.x but it organization 1 fails to create channel? Any suggestion would be grat

pkirkinezis (Thu, 30 Apr 2020 10:12:40 GMT):
Hi , is it possible my local host test-network from fabric-samples to make it visible to the local network so I can join a node from another machine ? I tried to start the test-network with my local network ip 192.168.x.x but the organization 1 fails to create channel? Any suggestion would be great

pkirkinezis (Thu, 30 Apr 2020 10:12:40 GMT):
Hi , is it possible to make my local host test-network to make it visible to the local network so I can join a node from another machine ? I tried to start the test-network with my local network ip 192.168.x.x but it organization 1 fails to create channel? Any suggestion would be great

knagware9 (Thu, 30 Apr 2020 10:44:35 GMT):
are you using openshifft here? If yes then there is standard error in openshift and already issued raised to redhat for the same.

SuneetBendre (Thu, 30 Apr 2020 11:02:38 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/upgrading_your_components.html#ledger-backup-and-restore to backup ledger data

sureshappana (Thu, 30 Apr 2020 14:08:00 GMT):
No, I am trying to deploy in 'Kind' cluster and IBM container service (IKS)

Bolzo 1 (Thu, 30 Apr 2020 14:22:38 GMT):
Hi, I'm having some troubles starting my fabric peer (version 2.0.1) here's the log: ``` UTC [main] InitCmd -> ERRO 018 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: the supplied identity is not valid: x509: certificate has expired or is not yet valid ``` The certificate is generated using `fabric-ca 1.4.6` and the expiring and validity date seem correct. So I cannot understand what is the real problem. Any idea?

KoushKilla (Thu, 30 Apr 2020 17:21:55 GMT):
can you try generating a cert and revoking the current cert

KoushKilla (Thu, 30 Apr 2020 17:24:02 GMT):
its to enable persistent disk mounting, not just back up ledger data. So if you were to comment out the last line volume section then and rebuild your containers by doing docker-compose up -d --build then you would see that the peer channel data is gone

Mms 11 (Thu, 30 Apr 2020 19:52:16 GMT):
Can anyone help with creating indexes on a Java based CC ? https://chat.hyperledger.org/channel/fabric-chaincode-dev?msg=9guiyHJZyv3EFHJ3E I'm stuck for some time now. Using Fabric 2.0.0

Mms 11 (Thu, 30 Apr 2020 19:52:16 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` I can find the META-INF file inside the jar that is being deploying on the peer 
the index json name is `pocServicesIdx.json` and it’s contents is: 
```
{ "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ```
 I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

skoret (Fri, 01 May 2020 01:28:26 GMT):
hi, zappa. how did you fix your initial tls problem?

skoret (Fri, 01 May 2020 01:43:24 GMT):
How can we offline analyze the blocks of the ledger using the backed up data from any peer. let's say we want this for audibility puproses t

crypto_beep (Fri, 01 May 2020 06:30:07 GMT):
Hi team greetings! I'm facing issue when i'm trying to connect fabric network with alibaba cloud-

crypto_beep (Fri, 01 May 2020 06:31:48 GMT):
[SDK.TimeoutError] The request timed out 4 times(4 for retry), perhaps we should have the threshold raised a little? Connect timeout. Please set a valid ConnectTimeout. caused by: Post https://ecs.us-east-1a.aliyuncs.com/?AccessKeyId=LTAI4GADeXR5ikqfubihuM4s&Action=DescribePrice&Format=JSON&ImageId=ubuntu_16_0402_64_20G_alibase_20170818.vhd&InstanceType=ecs.sn1ne.large&Period=1&PriceUnit=Hour&RegionId=us-east-1a&ResourceType=instance&Signature=NQ3D9VuWcniq%2FhVrBWur5Bhugzw%3D&SignatureMethod=HMAC-SHA1&SignatureNonce=4f3abdea936a2dec8a041e366deb37a4&SignatureType=&SignatureVersion=1.0&SystemDisk.Category=cloud_ssd&SystemDisk.Size=50&Timestamp=2020-05-01T05%3A34%3A21Z&Version=2014-05-26: dial tcp: lookup ecs.us-east-1a.aliyuncs.com on 127.0.0.11:53: no such host 0 [SDK.TimeoutError] The request timed out 4 times(4 for retry), perhaps we should have the threshold raised a little? Connect timeout. Please set a valid ConnectTimeout. caused by: Post https://ecs.us-east-1a.aliyuncs.com/?AccessKeyId=LTAI4GADeXR5ikqfubihuM4s&Action=DescribePrice&Format=JSON&ImageId=ubuntu_16_0402_64_20G_alibase_20170818.vhd&InstanceType=ecs.sn1ne.xlarge&Period=1&PriceUnit=Hour&RegionId=us-east-1a&ResourceType=instance&Signature=5TA%2BrYZjEsBP91bJ1TtdNHSa2VY%3D&SignatureMethod=HMAC-SHA1&SignatureNonce=e84ace4ac560291fa1e5d85a420e5ce9&SignatureType=&SignatureVersion=1.0&SystemDisk.Category=cloud_ssd&SystemDisk.Size=51&Timestamp=2020-05-01T05%3A34%3A21Z&Version=2014-05-26: dial tcp: lookup ecs.us-east-1a.aliyuncs.com on 127.0.0.11:53: no such host 0

crypto_beep (Fri, 01 May 2020 06:32:55 GMT):
Please let me know how could be fix ?

crypto_beep (Fri, 01 May 2020 06:32:55 GMT):
Please let me know how it could be fix ?

AldrinWilfred (Fri, 01 May 2020 06:38:42 GMT):
Hi, could you please clear my doubt? Over my understanding.. It was stated that it's requested to register and enroll admin and then users(user 1, user 2) identities, their certificates will be stored in respective directories (.hfc).. are these users, the end users like bank customers(for instance)? For example, in case of erc20 or balance transfer, will these users (user1, user2,...)be the actors transfering balances between themselves? Kindly advice. Thanks

abityildiz (Fri, 01 May 2020 06:44:46 GMT):
hi,i have meet the same error.Did you solve this error?

FilipeSilva (Fri, 01 May 2020 10:13:36 GMT):
Hi, every link in the documentation to a `connection profile` file seems to be broken. Can someone point me out to a valid link?

DimpleKanwar (Fri, 01 May 2020 11:18:04 GMT):
Has joined the channel.

DimpleKanwar (Fri, 01 May 2020 11:20:12 GMT):
Hello, I am trying to setup hyperledger explorer for my fabric network which includes 1 peer per organization. There are total 6 organizations. But I am getting only 1 node and 1 peer in the dashboard. I should get 6 nodes and 6 peers in the dashboard. Please tell me know how can i fix this issue?

DimpleKanwar (Fri, 01 May 2020 11:22:00 GMT):

Clipboard - May 1, 2020 4:51 PM

DimpleKanwar (Fri, 01 May 2020 11:22:03 GMT):
Please find the attached screenshot.

davidkel (Fri, 01 May 2020 12:41:19 GMT):
maybe you should ask on the #hyperledger-explorer channel

Benni (Fri, 01 May 2020 15:13:21 GMT):
Has joined the channel.

Benni (Fri, 01 May 2020 15:13:22 GMT):
I was wondering if someone could help me, I am required by my company to get certified in Linux CHFA. I have completed the linux foundation CHFA training https://training.linuxfoundation.org/training/hyperledger-fabric-administration-lfs272/ and was going to book the exam however the training covers Kafka and the exam specifically mentions being versed in Raft *Configure Ordering service (Raft) *it is a little bit misleading and I'm worried this is the case in other areas, has anyone taken the exam? if so do you know is it Kafka or Raft? Are there any other areas in the exam that are not covered in the training?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anybody help me with the indexes issue ? I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs, like the docs are stating: https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed My json file is named: pocServicesIdx.json and contains: { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } I tested this index syntax on Fauxton and it worked. Anybody ?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anybody help me with the indexes issue ? I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs, like the docs are stating: https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed My json file is named: pocServicesIdx.json and contains: ``` { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ``` I tested this index syntax on Fauxton and it worked. Anybody ?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
```
{ "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ```
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
```
{ "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ``` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
```
 { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ``` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
`
 { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
`
`` { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ``` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: 
`
` { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } `` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: `{ "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

Mms 11 (Fri, 01 May 2020 16:01:27 GMT):
Can anyone help? I'm trying to create indexes while using a Java based chaincode. I was following the documentation from there:
https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#verify-index-was-deployed I'm not able to get the index to be created while deploying the chaincode on the peer. 
I cannot see any log entry like "[couchdb] CreateIndex ->" when checking peer logs.

I’m trying to create a simple index, it’s stored in the following path: `root-dir/src/main/resources/META-INF/statedb/couchdb/indexes` 
the index json name is `pocServicesIdx.json` and it’s contents is: ``` { "index": { "fields": [ "projectId", "data_type" ] }, "ddoc": "pocServicesDoc", "name": "pocServicesIdx", "type": "json" } ``` 
I’m able to create an index manually doing it from the Fauxton admin console so the syntax should be valid. 
In fact I’m not getting any logs related to creating indexes when deploying the chaincode. 
Can anyone help me with this one?

lijiachuan (Fri, 01 May 2020 16:13:04 GMT):
Hi All, I am following the Linux Foundation's Fabric Lab training, and after updating the docker compose yaml to set peer's state DB to couchDB, restarting the containers, the peer is not in the channel, so I tried to re-join the peer to channel but encounter a problem. Below is the steps I did: 1. use "docker exec -it peer0.org1.example.com bash" to enter peer0's container 2. use "export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" to set the identification path to Org1's Admin 3. use "peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050" to pull the genesis block for current channel we would like to append our peer to, it returned below response `2020-05-01 15:56:26.505 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-05-01 15:56:26.509 UTC [cli.common] readBlock -> INFO 002 Received block: 0` 4. use "peer channel join -b allarewelcome.block" to join the channel, but it returned below error: `2020-05-01 15:56:40.344 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)` I used "docker logs orderer.example.com" to check orderer's log, as that is the only node included in above commands, and found below message `2020-05-01 15:56:26.521 UTC [common.deliver] Handle -> WARN 015 Error reading from 172.18.0.4:56084: rpc error: code = Canceled desc = context canceled 2020-05-01 15:56:26.521 UTC [comm.grpc.server] 1 -> INFO 016 streaming call completed {"grpc.start_time": "2020-05-01T15:56:26.506Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "172.18.0.4:56084", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "14.493278ms"}` Can I have someone's help to figure out what shall I check next? Thanks a lot.

lijiachuan (Fri, 01 May 2020 16:13:04 GMT):
Hi All, I am following the Linux Foundation's Fabric Lab training, and after updating the docker compose yaml to set peer's state DB to couchDB, restarting the containers, the peer is not in the channel, so I tried to re-join the peer to channel but encounter a problem. Below is the steps I did: 1. use "docker exec -it peer0.org1.example.com bash" to enter peer0's container 2. use "export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" to set the identification path to Org1's Admin 3. use "peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050" to pull the genesis block for current channel we would like to append our peer to, it returned below response `2020-05-01 15:56:26.505 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-05-01 15:56:26.509 UTC [cli.common] readBlock -> INFO 002 Received block: 0` 4. use "peer channel join -b allarewelcome.block" to join the channel, but it returned below error: `2020-05-01 15:56:40.344 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)` I used "docker logs orderer.example.com" to check orderer's log, as that is the only node included in above commands, and found below message ```2020-05-01 15:56:26.521 UTC [common.deliver] Handle -> WARN 015 Error reading from 172.18.0.4:56084: rpc error: code = Canceled desc = context canceled 2020-05-01 15:56:26.521 UTC [comm.grpc.server] 1 -> INFO 016 streaming call completed {"grpc.start_time": "2020-05-01T15:56:26.506Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "172.18.0.4:56084", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "14.493278ms"}``` Can I have someone's help to figure out what shall I check next? Thanks a lot.

lijiachuan (Fri, 01 May 2020 16:13:04 GMT):
Hi All, I am following the Linux Foundation's Fabric Lab training, and after updating the docker compose yaml to set peer's state DB to couchDB, restarting the containers, the peer is not in the channel, so I tried to re-join the peer to channel but encounter a problem. Below is the steps I did: 1. use "docker exec -it peer0.org1.example.com bash" to enter peer0's container 2. use "export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" to set the identification path to Org1's Admin 3. use "peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050" to pull the genesis block for current channel we would like to append our peer to, it returned below response ```2020-05-01 15:56:26.505 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-05-01 15:56:26.509 UTC [cli.common] readBlock -> INFO 002 Received block: 0``` 4. use "peer channel join -b allarewelcome.block" to join the channel, but it returned below error: ```2020-05-01 15:56:40.344 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)``` I used "docker logs orderer.example.com" to check orderer's log, as that is the only node included in above commands, and found below message ```2020-05-01 15:56:26.521 UTC [common.deliver] Handle -> WARN 015 Error reading from 172.18.0.4:56084: rpc error: code = Canceled desc = context canceled 2020-05-01 15:56:26.521 UTC [comm.grpc.server] 1 -> INFO 016 streaming call completed {"grpc.start_time": "2020-05-01T15:56:26.506Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "172.18.0.4:56084", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "14.493278ms"}``` Can I have someone's help to figure out what shall I check next? Thanks a lot.

Bolzo 1 (Fri, 01 May 2020 16:34:31 GMT):
Hi, I'm currently discussing this using the mailing list, here's the link if you wanna join: https://lists.hyperledger.org/g/fabric/topic/cannot_start_peer_due_to/73376381?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,73376381

psacchit (Fri, 01 May 2020 19:24:58 GMT):
Has joined the channel.

psacchit (Fri, 01 May 2020 19:24:59 GMT):
Hello I am having an issue with a fabric-ca-client. I am receiving the following error: ``` [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated 2020-05-01T19:06:19.581Z - error: [FabricCAClientService.js]: Failed to enroll AppAdmin, error:%o message=Enrollment failed with errors [[{"code":0,"message":"The following required attributes are missing: [id prvkey pubkey symkey]"}]], stack=Error: Enrollment failed with errors [[{"code":0,"message":"The following required attributes are missing: [id prvkey pubkey symkey]"}]] ```

psacchit (Fri, 01 May 2020 19:24:59 GMT):
Hello I am having an issue with a fabric-ca-client. I am receiving the following error: ``` [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated 2020-05-01T19:06:19.581Z - error: [FabricCAClientService.js]: Failed to enroll AppAdmin, error:%o message=Enrollment failed with errors [[{"code":0,"message":"The following required attributes are missing: [id prvkey pubkey symkey]"}]], stack=Error: Enrollment failed with errors [[{"code":0,"message":"The following required attributes are missing: [id prvkey pubkey symkey]"}]] ``` But the request matches one that works: `{"enrollmentID":"AppAdmin","enrollmentSecret":"pass0pass0","profile":"tls","attr_reqs":[{"name":"id"},{"name":"prvkey"},{"name":"pubkey"},{"name":"symkey"}]}` Any assistance would be appreciated.

BrettLogan (Fri, 01 May 2020 20:42:40 GMT):
Let me talk to someone at the Linux Foundation and see whats up on this

mit456 (Sat, 02 May 2020 07:14:36 GMT):
Has joined the channel.

mit456 (Sat, 02 May 2020 07:24:54 GMT):
``` ```

madhu33413 (Sat, 02 May 2020 07:57:19 GMT):
Hi, I am looking for sample code in hyperledger fabric to revoke identity of a user. I got sample code for registering user and was able to access chaincode with the registered identity. But for revoking user identity, invoke() in HFClient requires org.hyperledger.fabric.sdk.User object but I am not sure how to get that, can someone help me how to construct User object

MaBak (Sat, 02 May 2020 09:42:37 GMT):
Has joined the channel.

madhu33413 (Sun, 03 May 2020 07:23:47 GMT):
I am able to get sample code but when it is executed I am seeing following errors

madhu33413 (Sun, 03 May 2020 07:23:50 GMT):
java.security.InvalidKeyException: cannot identify EC private key: java.lang.NullPointerException

madhu33413 (Sun, 03 May 2020 07:24:31 GMT):
I see private key path proper in user directory but doesn't understand why this exception is coming

hmoazzem (Sun, 03 May 2020 08:43:58 GMT):
Hi all, how do we run the `chaincode-docker-devmode` for nodejs chaincode? I tried `fabric-chaincode-node --peer.address='peer:7051' --chaincode-id-name='erc' start` and getting this error `Missing required arguments: peer.address, chaincode-id-name`

memoshasinha (Sun, 03 May 2020 13:48:37 GMT):
Has joined the channel.

memoshasinha (Sun, 03 May 2020 13:48:37 GMT):
I have set ledgerQuery: true in connecting from nodejs app. But it gives error: Error: No peers defined in channel that have the ledger query role site

memoshasinha (Sun, 03 May 2020 13:51:32 GMT):
_initializeInternalChannel: No peers defined in channel that have the ledger query role Error: No peers defined in channel that have the ledger query role

hmoazzem (Sun, 03 May 2020 15:44:58 GMT):
Hello, could anyone tell me how to query couchDB using selector syntax? I tried with `fabric-contract-api` nodejs package ``` async getAll(ctx: Context) { let resultsAsBytes = await ctx.stub.getQueryResult(` { "selector": { "_id": { "$gt": null } } }`); return resultsAsBytes.toString(); } ``` And getting `[object Object]`. How do I extract the data in the array?

davidkel (Sun, 03 May 2020 16:02:21 GMT):
If you are using fabric 2.0, see this link https://hyperledger.github.io/fabric-chaincode-node/release-2.1/api/tutorial-using-iterators.html if you are using fabric 1.4, see this link https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/tutorial-using-iterators.html

hmoazzem (Sun, 03 May 2020 16:19:12 GMT):
thanks a lot :)

cavellt (Sun, 03 May 2020 16:55:23 GMT):
Hi, I've been having issues with endorsement policies when adding in a new organization to an existing channel using Fabric 1.4. During the instantiation phase, I passed empty quotes as the endorsement policy. I assumed that this would mean that there would be no policy. When I attempted to invoke from the new organization, I received this: [committer.txvalidator] validateTx -> ERRO 1df VSCCValidateTx for transaction txId = 931d6cd0dc34ab6bc0fab56a73200ef6c7d546c1cbf337aadc76a9984f1e00d7 returned error: VSCC error: endorsement policy failure, err: signature set did not satisfy policy Is there a default endorsement policy that I need to modify for the new organization?

someguy (Sun, 03 May 2020 18:47:17 GMT):
Hello guys, can someone explain me how can I define the configtx organizations section if I dont know the number of organizations that are apart of the network?

conanoc (Mon, 04 May 2020 02:03:56 GMT):
Define as much as you can and add other organizations later. You should define orderer organization to construct a network and edit the consortium config later using the orderer MSP. How to edit consortium config? See this: https://stackoverflow.com/questions/58622606/add-a-new-org-to-the-existing-consortium-hyperledger-fabric

homatthew (Mon, 04 May 2020 05:08:42 GMT):
Has joined the channel.

homatthew (Mon, 04 May 2020 05:08:43 GMT):
Is anyone familiar with obtaining the rwset from an endorsement proposal using the fabric-node-sdk? ``` const proposalResponse = await endorsement.send(endorsementOptions); ```

homatthew (Mon, 04 May 2020 05:08:43 GMT):
Is anyone familiar with obtaining the rwset from an endorsement proposal using the fabric-node-sdk? ``` const proposalResponse = await endorsement.send(endorsementOptions); const result = getResponsePayload(proposalResponse); ``` I've attempted to use the function decodeProposalResponsePayload from BlockDecoder.js but I receive the following error: ``` Error processing transaction. Error: Illegal GROUPEND after unknown group: 5 (15 expected) Error: Illegal GROUPEND after unknown group: 5 (15 expected) ```

homatthew (Mon, 04 May 2020 05:08:43 GMT):
Is anyone familiar with obtaining the rwset from an endorsement proposal using the fabric-node-sdk? ``` const proposalResponse = await endorsement.send(endorsementOptions); const result = getResponsePayload(proposalResponse); ``` I've attempted to call the function decodeProposalResponsePayload from BlockDecoder.js on the result but I receive the following error: ``` Error processing transaction. Error: Illegal GROUPEND after unknown group: 5 (15 expected) Error: Illegal GROUPEND after unknown group: 5 (15 expected) ```

Bolzo 1 (Mon, 04 May 2020 07:36:16 GMT):
I've specified a policy for the `LifecycleEndorsement` in my `configtx.yaml` and it is:``````

Bolzo 1 (Mon, 04 May 2020 07:36:16 GMT):
I've specified a policy for the `LifecycleEndorsement` in my `configtx.yaml` and it is: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the peer identity to be evaluated? The cli, from which I execute the command, has the ` CORE_PEER_MSPCONFIGPATH` is set to the org admin folder.

Bolzo 1 (Mon, 04 May 2020 07:36:16 GMT):
I've specified a policy for the `LifecycleEndorsement` in my `configtx.yaml` and it is: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the peer identity to be evaluated? The cli, from which I execute the command, has` CORE_PEER_MSPCONFIGPATH` set to the org admin folder.

Bolzo 1 (Mon, 04 May 2020 07:36:16 GMT):
I've specified a policy for the `LifecycleEndorsement` in my `configtx.yaml` and it is: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the peer identity to be evaluated? The cli, from which I execute the commit command, has` CORE_PEER_MSPCONFIGPATH` set to the org admin folder. The chaincode is approved only by `MyOrg` (and I expect that is enough considering the `LifecycleEndorsement` policy)

Bolzo 1 (Mon, 04 May 2020 07:36:16 GMT):
I've specified a policy for the `LifecycleEndorsement` in my `configtx.yaml` and it is: ``` LifecycleEndorsement: Type: Signature Rule: "OR('MyOrgMSP.admin')" ``` But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the admin identity to be evaluated? The cli, from which I execute the commit command, has` CORE_PEER_MSPCONFIGPATH` set to the org admin folder. The chaincode is approved only by `MyOrg` (and I expect that is enough considering the `LifecycleEndorsement` policy)

Richardowsky (Mon, 04 May 2020 08:36:16 GMT):
Has joined the channel.

Richardowsky (Mon, 04 May 2020 08:36:16 GMT):
Hi, need your help. I have a running Fabric network and have successfully connected to it using NodeJS. But now I'm trying to connect using Go, but I get an error: [fabsdk/fab] 2020/05/04 08:29:31 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration [fabsdk/fab] 2020/05/04 08:29:31 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples Expected no error from New, but got failed to initialize configuration: unable to load identity config: failed to initialize identity config from config backend: failed to create identity config from backends: failed to load all CA configs : failed to load server certs: open : no such file or directory If I understood correctly, config.yaml for JS and Go are very different, and in general GoSDK requires much more parameters for connecting to Fabric?

madhu33413 (Mon, 04 May 2020 09:50:10 GMT):
I want to know from fabric experts whether it is possible to write chaincode in Nodejs and access that code from sprint boot controller using java code

DimpleKanwar (Mon, 04 May 2020 11:02:54 GMT):
thanks @davidkel

KoushKilla (Mon, 04 May 2020 12:31:32 GMT):
Hi, can someone point me for in detailed description on the new data-privacy feature for HF 2.0 ?

KoushKilla (Mon, 04 May 2020 12:32:17 GMT):
In the hyper ledger website all it says is this ```text Data privacy on a need-to-know basis. In addition to the traditional use of channels and private data collections to share data among a subset of network members, the new implicit organization-specific private data collection feature in v2.0 allows organizations to privately share data with other organizations in the channel on a need-to-know basis, eliminating the need to define channels or private data collections for many combinations of members. Hashes on the channel ledger serve as transaction evidence to ensure that private data can be verified when shared, or later audited as needed. ```

pkirkinezis (Mon, 04 May 2020 15:34:16 GMT):
Hi has anyone encountered this error . I found some solution saying about docker logs and check capabilities ...Also to check cryptogen version how can i check cryptogen version ? "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded"

pkirkinezis (Mon, 04 May 2020 16:31:25 GMT):
I tried to delete everything and downlaod 2.0.1 binaries with no luck

garyclark (Mon, 04 May 2020 16:54:56 GMT):
7050 s the orderer port. Ensure that you have that port open on your firewall.

garyclark (Mon, 04 May 2020 16:54:56 GMT):
7050 is the orderer port. Ensure that you have that port open on your firewall.

pkirkinezis (Mon, 04 May 2020 16:55:41 GMT):
I am in centos and i open the port . I also did a telnet localhost 7050

pkirkinezis (Mon, 04 May 2020 16:55:45 GMT):
and responded

pkirkinezis (Mon, 04 May 2020 16:56:08 GMT):
i used firewallmd to add the port to list of ports open

garyclark (Mon, 04 May 2020 16:56:36 GMT):
Try: sudo setenforce 0 on centos as well.

pkirkinezis (Mon, 04 May 2020 16:57:42 GMT):
What will this do ?

garyclark (Mon, 04 May 2020 16:59:42 GMT):
Disables enhanced security Linux.

garyclark (Mon, 04 May 2020 17:00:08 GMT):
I had issues doing when this was set on cent os.

pkirkinezis (Mon, 04 May 2020 17:11:27 GMT):
So in the end you want to deploy the network in a centos server .It would be wise to have that off ?

pkirkinezis (Mon, 04 May 2020 17:11:27 GMT):
So in the end you want to deploy the network in a centos server .Is would be wise to have that off ?

garyclark (Mon, 04 May 2020 17:11:53 GMT):
I did in my network on centos.

garyclark (Mon, 04 May 2020 17:12:09 GMT):
Alot of people use Ubuntu. I do not.

pkirkinezis (Mon, 04 May 2020 17:43:14 GMT):
so is it safe to have it off?

garyclark (Mon, 04 May 2020 17:46:54 GMT):
well that is your call.

pkirkinezis (Mon, 04 May 2020 17:50:22 GMT):
I will try temprarly to set it off and then on again

pkirkinezis (Mon, 04 May 2020 17:52:16 GMT):
I did setenforce 0 but it didn't fixed the problem

garyclark (Mon, 04 May 2020 17:57:57 GMT):
So your seeing this problem in the docker peer

garyclark (Mon, 04 May 2020 17:58:32 GMT):
So your seeing this connection problem in the docker peer.

pkirkinezis (Mon, 04 May 2020 17:59:14 GMT):
First i do ./netework up with success

pkirkinezis (Mon, 04 May 2020 17:59:27 GMT):
Then ./network createChannel

garyclark (Mon, 04 May 2020 17:59:43 GMT):
Are you running an example or is this your own?

pkirkinezis (Mon, 04 May 2020 17:59:45 GMT):
and weh peer channel create is trying to run on Org1 i get this error

pkirkinezis (Mon, 04 May 2020 18:00:02 GMT):
the test-network example as pulled from repo

garyclark (Mon, 04 May 2020 18:01:02 GMT):
This is 2.0?

pkirkinezis (Mon, 04 May 2020 18:01:42 GMT):
i am currently on tag v2.0.1

pkirkinezis (Mon, 04 May 2020 18:01:53 GMT):
with binaries from 2.0

garyclark (Mon, 04 May 2020 18:05:06 GMT):
This may be a problem for IBM support. Normally these examples work straight out of the can.

pkirkinezis (Mon, 04 May 2020 18:05:54 GMT):
Yeah localy on my ubuntu vm and my main windows computer the example runs out of the box following the starting guide on read the docs

BrettLogan (Mon, 04 May 2020 18:32:39 GMT):
of course, the client is agnostic of the chaincode. All of the SDK's interact with the same fabric API's.

BrettLogan (Mon, 04 May 2020 18:34:13 GMT):
You would probably have much more luck asking on the #fabric-sdk-go channel.

Mms 11 (Mon, 04 May 2020 19:20:20 GMT):
Hi guys, I have a big problem with my chaincode that queries the CouchDB in a java chaincode. I'm observing 100% of cpu usage and long time response of a query result. I'm doing a simple query with two filters rings options: "{\"selector\": {\"projectId\": \"%s\",\"data_type\": \"debt_service\"}, \"use_index\": [\"_design/pocServicesDoc\",\"pocServicesIdx\"]}" There is an index established on these fields. No the problem, I'm trying to fetch 150 records from the db, it takes around 43-47 seconds to get the result back from the db. I'm my logs I can see a log entry specifing that GET_QUERY_RESULT is completed and response is being send back. `[36m2020-05-04 19:10:10.457 UTC[chaincode] HandleTransaction -> DEBU 2adf [efb2ae8e] Completed GET_QUERY_RESULT. Sending RESPONSE` After 44 seconds, I finally reseved the response in my peer. `19:10:10:463 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE` Can someone explain to me why the request to the couchDb can take 23 ms, but the response takes 44 seconds. ?

Mms 11 (Mon, 04 May 2020 19:20:20 GMT):
Hi guys, I have a big problem with my chaincode that queries the CouchDB in a java chaincode. I'm observing 100% of cpu usage and long time response of a query result. I'm doing a simple query with two filters options: "{\"selector\": {\"projectId\": \"%s\",\"data_type\": \"debt_service\"}, \"use_index\": [\"_design/pocServicesDoc\",\"pocServicesIdx\"]}" There is an index established on these fields. No the problem, I'm trying to fetch 150 records from the db, it takes around 43-47 seconds to get the result back from the db. I'm my logs I can see a log entry specifying that GET_QUERY_RESULT is completed and response is being sent back. `[36m2020-05-04 19:10:10.457 UTC[chaincode] HandleTransaction -> DEBU 2adf [efb2ae8e] Completed GET_QUERY_RESULT. Sending RESPONSE` After 44 seconds, I finally received a response in my peer. `19:10:10:463 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE` Can someone explain to me why the request to the CouchDB can take 23 ms, but the response takes 44 seconds. ?

Mms 11 (Mon, 04 May 2020 19:20:20 GMT):
Hi guys, I have a big problem with my chaincode that queries the CouchDB in a java chaincode. I'm observing 100% of cpu usage and long time response of a query result. I'm doing a simple query with two filters options: "{\"selector\": {\"projectId\": \"%s\",\"data_type\": \"debt_service\"}, \"use_index\": [\"_design/pocServicesDoc\",\"pocServicesIdx\"]}" There is an index established on these fields. Now the problem, I'm trying to fetch 150 records from the db, it takes around 43-47 seconds to get the result back from the db. I'm my logs I can see a log entry specifying that GET_QUERY_RESULT is completed and response is being sent back. `[36m2020-05-04 19:10:10.457 UTC[chaincode] HandleTransaction -> DEBU 2adf [efb2ae8e] Completed GET_QUERY_RESULT. Sending RESPONSE` After 44 seconds, I finally received a response in my peer. `19:10:10:463 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE` Can someone explain to me why the request to the CouchDB can take 23 ms, but the response takes 44 seconds. ?

psacchit (Mon, 04 May 2020 20:28:35 GMT):
Where might I look to figure out this error `[2020-05-04 20:24:11.733] [ERROR] chain_helper.js - TypeError: Illegal buffer at Function.module.exports.ByteBuffer.wrap (/opt/owner-mediated-records/common/utils/node_modules/bytebuffer/dist/bytebuffer-node.js:346:19) at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/opt/owner-mediated-records/common/utils/node_modules/protobufjs/dist/protobuf.js:1886:39) at new Map (/opt/owner-mediated-records/common/utils/node_modules/protobufjs/dist/protobuf.js:4984:46) at Field.ProtoBuf.Reflect.FieldPrototype.verifyValue (/opt/owner-mediated-records/common/utils/node_modules/protobufjs/dist/protobuf.js:3490:28) at Message.setter (/opt/owner-mediated-records/common/utils/node_modules/protobufjs/dist/protobuf.js:2582:77) at Object.module.exports.buildProposal (/opt/owner-mediated-records/common/utils/node_modules/fabric-client/lib/client-utils.js:36:14) at Function._buildSignedProposal (/opt/owner-mediated-records/common/utils/node_modules/fabric-client/lib/Channel.js:2850:33) at Function.sendTransactionProposal (/opt/owner-mediated-records/common/utils/node_modules/fabric-client/lib/Channel.js:2799:28) at Channel.sendTransactionProposal (/opt/owner-mediated-records/common/utils/node_modules/fabric-client/lib/Channel.js:2771:19) `

psacchit (Mon, 04 May 2020 21:12:57 GMT):
Here is the first part of the transactionID `{ "_nonce": { "type": "Buffer", "data": [...`

Mms 11 (Mon, 04 May 2020 21:15:50 GMT):
These are the logs from the network: https://drive.google.com/open?id=1fpjolxtfKYkDXvxyVqPVUAFS0SRBl1ll

Mms 11 (Mon, 04 May 2020 21:16:33 GMT):
Anyone could help? I'm struggling to find any possible fixes.

pplavetzki (Mon, 04 May 2020 23:45:49 GMT):
Has joined the channel.

pplavetzki (Mon, 04 May 2020 23:45:50 GMT):
Is it still a requirement to mount docker.sock if using the external builder lifecycle? I've installed everything into K8S and have v2.1.0 running, but when deploying the chaincode I receive the following: `Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer1-org1-abac-d0a786fa7122fb12926adb8bf41c4b1001284d05cc1b2f63589b8a1eb8261018-ddc3090bbcf8be60635a6bd465f3f0848a75acc286e7bb62e49b395ec68d2b0f/json": dial unix /var/run/docker.sock: connect: no such file or directory`

pplavetzki (Mon, 04 May 2020 23:45:50 GMT):
Is it still a requirement to mount docker.sock if using the external builder lifecycle? I've installed everything into K8S and have v2.1.0 running, but when deploying the chaincode I receive the following: `Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer1-org1-abac-d0a786fa7122fb12926adb8bf41c4b1001284d05cc1b2f63589b8a1eb8261018-ddc3090bbcf8be60635a6bd465f3f0848a75acc286e7bb62e49b395ec68d2b0f/json": dial unix /var/run/docker.sock: connect: no such file or directory` I've placed the required directory structure on the peer node and updated the core.yaml with the configuration for `externalBuilder` but I'm guessing I've just missed something, but I don't see any log errors or anthing suggesting what that is. Thank you!

pkirkinezis (Tue, 05 May 2020 05:24:54 GMT):
Where would be the best place to post my issue ?

Amanullah68 (Tue, 05 May 2020 06:28:03 GMT):
Is there any explorer for Fabric 1.4.6 to see transactions and blocks??

chintanr11 (Tue, 05 May 2020 06:31:54 GMT):
Hi, I wanted ask what happens in RAFT consensus, if for some reason due to configuration updates, the system channel becomes unserviceable while the application channel is still servicing and available? Do the transactions get ordered and committed or errors are thrown?

Mms 11 (Tue, 05 May 2020 07:20:38 GMT):
Hi, could someone help with the problem regarding long CouchDB responses in my local docker network?

eljoker7 (Tue, 05 May 2020 07:22:39 GMT):
Has joined the channel.

eljoker7 (Tue, 05 May 2020 07:22:40 GMT):
Hi, I have a question: I have two chaincodes deployed in the same channel of 5 peers. The first chaincode is installed on 3 peers, the second one is installed on other 2 peers. The first chaincode inits the ledger with some data, while the second one should query the ledger to take one of the elements stored in the ledger during the initialization. It seems that the ledger associated to the second smart contract is empty. From theory, I know that there is one ledger associated with the channel, but here it seems one ledger associated with the chaincode. Where am I wrong? Thank you in advance!

eljoker7 (Tue, 05 May 2020 07:23:12 GMT):
chaincodes

hmoazzem (Tue, 05 May 2020 08:24:36 GMT):
I'm playing with `test-network` in v2 fabric-samples. This example uses fabcar chaincode. If I now have a second contract like ``` import { Contract, Context } from 'fabric-contract-api'; export class SecondContract extends Contract { public key: string = 'value' async getValue(ctx: Context) { return await ctx.stub.getState(this.key); } } ``` I modify the `index.ts` like so ``` import { FabCar } from './fabcar'; export { FabCar } from './fabcar'; import { SecondContract } from './second-contract'; export { SecondContract } from './second-contract'; export const contracts: any[] = [ FabCar, SecondContract ]; ``` How'd I change the default arg `'{"Args":["queryAllCars"]}'` in `scripts/deployCC.sh` to return key value in `SecondContract`?

hmoazzem (Tue, 05 May 2020 08:24:36 GMT):
I'm playing with `test-network` in v2 fabric-samples. This example uses fabcar chaincode. If I now have a second contract like ``` import { Contract, Context } from 'fabric-contract-api'; export class SecondContract extends Contract { key: string = 'value' public async getValue(ctx: Context) { return await ctx.stub.getState(this.key); } } ``` I modify the `index.ts` like so ``` import { FabCar } from './fabcar'; export { FabCar } from './fabcar'; import { SecondContract } from './second-contract'; export { SecondContract } from './second-contract'; export const contracts: any[] = [ FabCar, SecondContract ]; ``` How'd I change the default arg `'{"Args":["queryAllCars"]}'` in `scripts/deployCC.sh` to return key value in `SecondContract`?

pkirkinezis (Tue, 05 May 2020 09:11:19 GMT):
It would be great if anyone can help . https://stackoverflow.com/questions/61608119/hyperledger-fabric-test-network-client-failed-to-connect

madhu33413 (Tue, 05 May 2020 09:11:44 GMT):
thank you for the information

madhu33413 (Tue, 05 May 2020 12:50:39 GMT):
I am facing following issue while starting basic_network through startFabric.sh which is provided with Hyperledger Fabric 1.41

madhu33413 (Tue, 05 May 2020 12:50:41 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 254

madhu33413 (Tue, 05 May 2020 12:51:09 GMT):
This was working fine sometime back but stopped working later

madhu33413 (Tue, 05 May 2020 12:51:24 GMT):
could anyone help me in resolving this issue

balazsprehoda (Tue, 05 May 2020 13:29:27 GMT):
Hi! I have a testing scenario where I want to run multiple benchmarks with the same initial network state. To achieve this, I created backups for peers and orderers (crypto, channel artifacts and production directory) and use them to restart the network. However, on start, each peer recommits all the blocks from the backup, which takes about 20 minutes. My question is: is it possible to avoid this somehow? E.g. as far as I know, this is necessary for synchronizing the world state database. Is it possible to bootstrap the world state database from a backup as well? (I am using Fabric 1.4.4 with CouchDB and raft ordering, everything inside Kubernetes.)

sahilsachdeva (Tue, 05 May 2020 13:31:00 GMT):
Has joined the channel.

sahilsachdeva (Tue, 05 May 2020 13:31:01 GMT):
Hello, does anyone know if there is a helm chart for a RAFT orderer?

LotfiBokhari (Tue, 05 May 2020 14:24:40 GMT):
Has joined the channel.

pplavetzki (Tue, 05 May 2020 14:36:48 GMT):
Have you looked into etcd operator: https://github.com/helm/charts/tree/master/stable/etcd-operator

arcynosure (Tue, 05 May 2020 14:49:41 GMT):
Has joined the channel.

arcynosure (Tue, 05 May 2020 14:49:42 GMT):
I have a 3 org 6 peer system with node SDK and 5 raft orderers. The raft is working fine, tried killing leaders and election takes place. The SDK also working well can invoke transactions. But the problem bothering me is while starting the network the ordering system is defaulting to the first orderer as the SDK is refferring to the zeroth index of the array say for example, orderer1.example.com and now if I kill this first orderer the next invocation of transaction fails while raft selects a new leader. When I try to invoke a transaction it shows connection failed, cannot connect to all addresses and service unavailable. What i am looking for is even if the SDK targets to the first orderer and if it is dead it should fetch the next live orderer to proccess the invocation request.

icarrascol (Tue, 05 May 2020 15:09:44 GMT):
hello everyone, on the new chaincode contract interface (v2.1) how are we supposed to handle errors and success responses? i am asking because in v1.4 we had shim.success/error

SuneetBendre (Tue, 05 May 2020 15:54:34 GMT):
Others to refer is needed, putting out solution which worked Problem: peer chaincode was not able to launch chaincode container successfully. becz of docker exec command Solution: - clean all docker images (docker system prune -a) - re download all fabric image and start the fabric

SuneetBendre (Tue, 05 May 2020 15:54:34 GMT):
For reference, putting out solution which worked Problem: peer chaincode was not able to launch chaincode container successfully. becz of docker exec command Solution: - clean all docker images (docker system prune -a) - re download all fabric image and start the fabric

garyclark (Tue, 05 May 2020 16:49:22 GMT):
Probably here. However I would double check your setup since you have it running on Ubuntu. Since they are both linux OS. Just need to mirror. Oranges and oranges.

pkirkinezis (Tue, 05 May 2020 16:51:47 GMT):
Is anything has to do with docker and firewalld ? I opened the ports but maybe its keeps blocking connection between peers ? Thanks a lot for your help i also posted a question to stackoverflow . https://stackoverflow.com/questions/61608119/hyperledger-fabric-test-network-client-failed-to-connect

pkirkinezis (Tue, 05 May 2020 16:51:47 GMT):
Is anything has to do with docker and firewalld ? I opened the ports but maybe its keeps blocking connection between peers ? Thanks a lot for your help i also posted a question to to stackoverflow . https://stackoverflow.com/questions/61608119/hyperledger-fabric-test-network-client-failed-to-connect

Mms 11 (Tue, 05 May 2020 20:43:23 GMT):
Can someone help me with a chaincode querying couchDb ? When calling the CouchDB from a java chaincode for a rather not large data collection (150), the processing of the result takes 50 seconds. I can see from logs that the ChaincodeInvocationTask.invoke got the response rather quick but when it is passed as a response this is taking a long time to process. This class is created from the response, QueryResultsIteratorImpl in the InvocationStubImpl. Anyone had this problem when calling InvocationStubImplgetQueryResult Is there some trick to handle the QueryResultsIteratorImpl to get access to the data without waiting so long ?

atoulme (Tue, 05 May 2020 22:03:53 GMT):
Has joined the channel.

atoulme (Tue, 05 May 2020 22:03:54 GMT):
I am trying to see if I can deploy a faulty chaincode and get notified when it starts throwing errors.

atoulme (Tue, 05 May 2020 22:04:09 GMT):
Which metric is best to capture this error?

BrettLogan (Wed, 06 May 2020 04:52:33 GMT):
Well it really depends on what you mean by faulty? Is it compilable, is it non-deterministic, does it create MVCC conflicts. When you'll see the issue depends on what you did to make it faulty

BrettLogan (Wed, 06 May 2020 04:56:08 GMT):
You return an error or nil

pkirkinezis (Wed, 06 May 2020 05:13:40 GMT):
Thank in advance for your time @garyclark

pkirkinezis (Wed, 06 May 2020 05:13:40 GMT):
Thank in advamce for your time @garyclark

Paradox-AT (Wed, 06 May 2020 08:19:51 GMT):
Hey guys, I have a fabric network with 3 raft orderers and 3 peers. Whenever I am trying to create a channel I am getting 'Error: no Raft leader' from the sdk, the orderer logs are flooded with

Paradox-AT (Wed, 06 May 2020 08:19:51 GMT):
Hey guys, I have a fabric network with 3 raft orderers and 3 peers. Whenever I am trying to create a channel I am getting 'Error: no Raft leader' from the sdk, the orderer logs are flooded with following errors: ``` 2020-05-06 08:03:32.783 UTC [common.deliver] deliverBlocks -> WARN 249385 [channel: channel-5689] Rejecting deliver request for 10.0.1.55:52354 because of consenter error ``` Can anyone help?

iambatman (Wed, 06 May 2020 09:39:49 GMT):
can you show yr configtx.file

iambatman (Wed, 06 May 2020 09:40:45 GMT):
Is it possible to delete leveldb in peers??

Paradox-AT (Wed, 06 May 2020 09:45:30 GMT):

config.tx

iambatman (Wed, 06 May 2020 09:57:25 GMT):
change the port address to diffreent and try

AldrinWilfred (Wed, 06 May 2020 11:40:34 GMT):
Hello friends, I would like to clarify one doubt: Scenario: After registering/enrolling users using fabric-ca, certs are stored in hfc-key-store. The folder has the certificates of Admin, user1,user2,user3.......etc., then, each user can create a owner (lets take the owner from the fabcar example)., User1 creates Owner as Alice with the details of the car, user2 and user3 respectively create their own owner and details of the car. My doubt: How can user1 gets, only the details given by him to the blockchain, like getting only the asset details of the owner created by user1 only. // User1 should not be able to access the details of the remaining owners created by other users.. ie, user1 can't be able to access the query results of the user2, and viceversa.... Could you please clarify?

AldrinWilfred (Wed, 06 May 2020 11:42:52 GMT):
+ I would like to be sure, if I'm going in a correct path to understand hlf... Thanks.

AshutoshKumar7 (Wed, 06 May 2020 14:52:14 GMT):
Is there any good book available for fabric?

SuneetBendre (Wed, 06 May 2020 16:27:00 GMT):
https://www.amazon.in/Mastering-Hyperledger-Fabric-Master-Kubernetes-ebook/dp/B084KZP9M7 @narendranathreddy

SuneetBendre (Wed, 06 May 2020 16:32:41 GMT):
https://hyperledger.github.io/fabric-chaincode-node/master/api/fabric-shim.ClientIdentity.html ClientIdentity represents information about the identity that submitted the transaction. You might want to check this and try as per your need

atoulme (Wed, 06 May 2020 16:52:05 GMT):
it returns shim.Errir

atoulme (Wed, 06 May 2020 16:52:05 GMT):
it returns shim.Error

elBondero (Wed, 06 May 2020 20:47:04 GMT):
Has joined the channel.

elBondero (Wed, 06 May 2020 20:56:20 GMT):
Hey there, I just started getting into Hyperledger and I think I blundered somewhere. I followed the documentation but somehow I'm only able to run ./network.sh up if I run it as root. Maybe a permission error as I'm not that familiar with Ubuntu. Can anyone help?

iambatman (Thu, 07 May 2020 06:03:43 GMT):
Anybody have an answer for this. https://stackoverflow.com/questions/61650955/hyperledger-fabric-removing-the-test-data-from-the-network

pkirkinezis (Thu, 07 May 2020 07:12:33 GMT):
https://stackoverflow.com/questions/61608119/hyperledger-fabric-test-network-client-failed-to-connect**

pkirkinezis (Thu, 07 May 2020 07:12:59 GMT):
I just found out that firewalld has also problems

shailaja.mahara (Thu, 07 May 2020 07:25:30 GMT):
update the chaincode and add a delete function.

shailaja.mahara (Thu, 07 May 2020 07:28:11 GMT):
update the chaincode and add a delete function.

FilipeSilva (Thu, 07 May 2020 09:15:50 GMT):
Does Fabric read the content of `core.yaml` while creating a channel?

FilipeSilva (Thu, 07 May 2020 09:15:50 GMT):
Does Fabric read the content of `core.yaml` when creating a channel?

FilipeSilva (Thu, 07 May 2020 09:15:50 GMT):
Does Fabric read the content of `core.yaml` when creating a channel? Well, I know the answer is yes because I got a warning for not having core.yaml in the directory pointed by `FABRIC_CFG_PATH`!

FilipeSilva (Thu, 07 May 2020 09:16:45 GMT):
If so, does it take into account the values updated via environment variables?

FilipeSilva (Thu, 07 May 2020 09:16:45 GMT):
If that is the case, how does it take into account the values updated via environment variables?

FilipeSilva (Thu, 07 May 2020 09:18:56 GMT):
I thought that the operation of channel creation would only require the block generated with `configtx`

SuneetBendre (Thu, 07 May 2020 09:51:44 GMT):
Yes during channel create 'configtx' is used to look at the configuration for the channel, but that channel information is also stored in ledger/block. Which means your fabric network should be upend running to update the ledger. Before channel create, network is created and entities involved are started based on docker compose. fabric sample command : ./network.sh *up *createChannel -ca -s couchdb network.sh up will bringup network based on docker files

SuneetBendre (Thu, 07 May 2020 09:52:37 GMT):
Can you mention what env variables you want to refer, you can pass them in docker yml .

FilipeSilva (Thu, 07 May 2020 10:03:41 GMT):
@SuneetBendre, if you assign a value to the variables `CORE_PEER_ADDRESS` or `CORE_PEEER_ID` in the docker-compose.yaml they will be different from what is in the file `core.yaml`

FilipeSilva (Thu, 07 May 2020 10:04:49 GMT):
So, why does the cannel creation command look into that file when the enviroment varaibles will be the actual source of true?

SuneetBendre (Thu, 07 May 2020 10:10:12 GMT):
we extend service in docker compose. so each peer service will have its variables set in the container. it should look at the env vari only. can you share what you are referring ? version and which sample

FilipeSilva (Thu, 07 May 2020 10:10:58 GMT):
when running the commando

FilipeSilva (Thu, 07 May 2020 10:10:58 GMT):
when running the command:

FilipeSilva (Thu, 07 May 2020 10:11:38 GMT):
`peer channel create ...`

FilipeSilva (Thu, 07 May 2020 10:13:30 GMT):
I am getting the message `Fatal error when initializing core config: Could not find config file. Please make sure that FABRIC_CFG_PATH is set to a path whcich contains core.yaml`

SuneetBendre (Thu, 07 May 2020 10:17:06 GMT):
it might be looking on cli machine

SuneetBendre (Thu, 07 May 2020 10:17:20 GMT):
FABRIC_CFG_PATH=${PWD}/configtx

SuneetBendre (Thu, 07 May 2020 10:17:29 GMT):
cli execute create channel

FilipeSilva (Thu, 07 May 2020 10:18:28 GMT):
I am using the scripts provided by the fabric-samples

SuneetBendre (Thu, 07 May 2020 10:18:45 GMT):
version ?

FilipeSilva (Thu, 07 May 2020 10:18:45 GMT):
so, I am running the commands from the host machine

FilipeSilva (Thu, 07 May 2020 10:19:47 GMT):
the release availabe on the master branch

SuneetBendre (Thu, 07 May 2020 10:21:51 GMT):
ok.. even you run from host, it execute on cli container docker exec cli

SuneetBendre (Thu, 07 May 2020 10:22:01 GMT):
what network you are running ? fabcar ?

FilipeSilva (Thu, 07 May 2020 10:25:01 GMT):
are you sure?

FilipeSilva (Thu, 07 May 2020 10:25:18 GMT):
there is no reference in the docker-compose files to the cli container

SuneetBendre (Thu, 07 May 2020 10:25:50 GMT):
cli will not have compose file

SuneetBendre (Thu, 07 May 2020 10:26:13 GMT):
can you tell network? fabcar or other ?

FilipeSilva (Thu, 07 May 2020 10:26:33 GMT):
test-network

FilipeSilva (Thu, 07 May 2020 10:27:19 GMT):
If you do not lauch a cli contaienr how do you run the scripts inside it?

FilipeSilva (Thu, 07 May 2020 10:27:19 GMT):
If you do not lauch a cli container how do you run the scripts inside it?

SuneetBendre (Thu, 07 May 2020 10:28:14 GMT):
let me check test network

musinit (Thu, 07 May 2020 10:55:21 GMT):
Has joined the channel.

musinit (Thu, 07 May 2020 10:55:22 GMT):
Hey! Please anyone can tell me, where I can read how am I going to write tests for my smart contract? I'am using go, there is not a word about it https://github.com/hyperledger/fabric-contract-api-go

SuneetBendre (Thu, 07 May 2020 10:55:31 GMT):
i see cli container not getting started in test-network , but with other network its has. Also peer command is not understandable on host machine

FilipeSilva (Thu, 07 May 2020 10:56:27 GMT):
I think it is

FilipeSilva (Thu, 07 May 2020 10:56:45 GMT):
because you download all the binaries in the beginning of the process and then update your path

FilipeSilva (Thu, 07 May 2020 10:56:58 GMT):
so that the host machine recognize that command

SuneetBendre (Thu, 07 May 2020 11:00:25 GMT):
binaries are docker images, try 'peer channel create' on host machine outside the fabric script. Becz at the load of the script 'docker exec cli scripts/script.sh' e.g firstnetwork execute on cli

SuneetBendre (Thu, 07 May 2020 11:00:40 GMT):
any ways we should try to solve your problem

SuneetBendre (Thu, 07 May 2020 11:02:20 GMT):
can you try this: 1. docker system prune -a 2. go inside fabcar and execute ./startFabric.sh

FilipeSilva (Thu, 07 May 2020 11:15:07 GMT):
what do you mean with go inside the fabcar?

SuneetBendre (Thu, 07 May 2020 12:06:16 GMT):
fabric-samples/fabcar/startFabric.sh

FilipeSilva (Thu, 07 May 2020 14:20:45 GMT):
@SuneetBendre , I have pinpointed exactly where the problem is

FilipeSilva (Thu, 07 May 2020 14:21:23 GMT):
and apparently I cannot join a cannel from a machine

FilipeSilva (Thu, 07 May 2020 14:21:44 GMT):
I got the following error:

FilipeSilva (Thu, 07 May 2020 14:22:47 GMT):
`Error: error getting endorser client for channel: endorser client failed to connect to 0.0.0.07051: failed to create new connection: context deadline exceeded`

FilipeSilva (Thu, 07 May 2020 14:23:02 GMT):
any clue for how to solve it=

FilipeSilva (Thu, 07 May 2020 14:23:02 GMT):
any clue?

SuneetBendre (Thu, 07 May 2020 14:25:01 GMT):
what was the issue ?

FilipeSilva (Thu, 07 May 2020 14:25:47 GMT):
How so?

Kosmoshub (Thu, 07 May 2020 14:25:49 GMT):
Has joined the channel.

SuneetBendre (Thu, 07 May 2020 14:26:31 GMT):
peer channel join is failing ?

FilipeSilva (Thu, 07 May 2020 14:26:42 GMT):
yes

FilipeSilva (Thu, 07 May 2020 14:26:52 GMT):
with the message I posted above

FilipeSilva (Thu, 07 May 2020 14:27:37 GMT):
meanwhile, after analysing the logs of the joining peer

FilipeSilva (Thu, 07 May 2020 14:27:47 GMT):
I saw these message:

FilipeSilva (Thu, 07 May 2020 14:28:55 GMT):
`ServerHandshake -> ERRO 03a TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.25.0.1:40754`

SuneetBendre (Thu, 07 May 2020 14:29:26 GMT):
should we have call ? diff just on message

FilipeSilva (Thu, 07 May 2020 14:30:14 GMT):
sorry?

SuneetBendre (Thu, 07 May 2020 14:31:07 GMT):
should we connect on anydesk/zoom/teams

FilipeSilva (Thu, 07 May 2020 14:31:50 GMT):
sure

SuneetBendre (Thu, 07 May 2020 14:33:30 GMT):
do you have zoom ?

FilipeSilva (Thu, 07 May 2020 14:33:35 GMT):
yes

SuneetBendre (Thu, 07 May 2020 14:33:44 GMT):
plz share id .. i will connect

FilipeSilva (Thu, 07 May 2020 14:35:05 GMT):
well

FilipeSilva (Thu, 07 May 2020 14:35:10 GMT):
try this instead

FilipeSilva (Thu, 07 May 2020 14:35:12 GMT):
https://meet.jit.si/lanche

BrettLogan (Thu, 07 May 2020 16:10:25 GMT):
What error do you see when you run it as a non-root user, can you share your logs

icarrascol (Thu, 07 May 2020 17:58:51 GMT):
hello everyone, when we have multiple smart contracts in a chaincode and we install this chaincode, what happens when we init it, do we need init functions in all the smart contracts?, which init is executed?

Kosmoshub (Thu, 07 May 2020 18:28:48 GMT):
I am getting this error while creating a channel 2020-05-07 16:59:57.321 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem]

Kosmoshub (Thu, 07 May 2020 18:29:15 GMT):
how to eliminate frontslash in git bash

SharedMocha (Thu, 07 May 2020 19:12:49 GMT):
Hi- What is the recommended log level setting for production (FATAL ? PANIC ? ERROR ? WARNING ? INFO ? DEBUG?) for peers,msp, gossip, and chaincode

deeprajpandey (Thu, 07 May 2020 19:14:35 GMT):
Has joined the channel.

Mms 11 (Thu, 07 May 2020 19:47:00 GMT):
The init is invoked on the chaincode level. It can be used to core example setup the env with some base data, or store something in the ledger. But rememebr that this data cannot influence your future calculations (no you dont get non-deterministic results).

icarrascol (Thu, 07 May 2020 21:08:07 GMT):
in the chaincodes for v2.0 (fabcar example) init method isnt defined, how can it require init on chaincode instantiation?

icarrascol (Thu, 07 May 2020 21:14:27 GMT):
like if i have 2 smart contracts in the same chaincode, using the cli commands how do i pick which smartcontract executes a method?

spartucus (Fri, 08 May 2020 05:27:08 GMT):
Hi guys, are there any docs about how to deploy multiple node of fabric 2.0 in multiple hosts?

AshutoshKumar7 (Fri, 08 May 2020 05:54:54 GMT):
Hi , any review of aws managed hyperledger block chain as compared to ibm ? Or self managed on kubernetes cluster ? What are pros and cons ? Which one enterprises prefer ?

aakzubaidi (Fri, 08 May 2020 06:06:32 GMT):
Hi everyone, I have this wiered MVCC-conflict issue. It appears occasionally as I benchmark my Java chaincode. I tried everything I possibly could to prevent its occurance. Now, I am going to list the chaincode functionality and what I did to to try prevent it. At the HLF network: The block batching is set to 1 second timeout, and one transaction per block! I even tried half second as well, and no avail. At client side, using Hyperledger Caliper, I only use one worker (client) that only submits one transaction per second. The network is composed of 2 org, one peer for each. Consensus is Raft, three orderer. At chaincode side, it programmed using Java The mothod under test, receives a key and updated value. it first, lock up the current state using the method "ctx.getStub().getStringState(key)". it takes, the value and do simple add operation to the value and then updates the ket with the new value as in this --- ctx.getStub().putStringState(key,value) --- simple as that! Now, given the extreme setting I explained before, such that client only submits one Tx per second, and the HLF block batching is set to take one T per block or half second timeout, I WONDER, why the MVCC conflict happens?? Sometimes I get this error: 2020.05.08-06:19:40.258 error [caliper] [adapters/fabric] Transaction[4a28362802] commit errors: - Commit error on peer0.org1.example.com with code MVCC_READ_CONFLICT - Commit error on peer0.org2.example.com with code MVCC_READ_CONFLICT Other times, I get this error. 2020-05-08T05:22:05.600Z - error: [Channel.js]: compareProposalResponseResults - read/writes result sets do not match index=1 Any explaination please

aakzubaidi (Fri, 08 May 2020 06:34:43 GMT):
I have been to the exam, but I think you should have no problem switching to Raft. It is simpler in principle. and probably as simple as defining the type of consensus to be Raft, and defining the orderers.

aakzubaidi (Fri, 08 May 2020 06:35:12 GMT):
I meant I have *NOT* to the exam .....

BrettLogan (Fri, 08 May 2020 07:24:18 GMT):
INFO is generally what people run on, unless they start to encounter issues and then you can use the operations server endpoint to switch the logs over to DEBUG if need. If you are just starting out and completely new to fabric, you should run in debug until you get the hang of it.

Pai (Fri, 08 May 2020 09:01:16 GMT):
Has joined the channel.

Pai (Fri, 08 May 2020 09:01:16 GMT):
:grinning:

mehulshahinnj (Fri, 08 May 2020 12:00:38 GMT):
Has joined the channel.

mehulshahinnj (Fri, 08 May 2020 12:00:39 GMT):
need some help with Fabric Node SDK, am using an Express server, when the transaction frequency increases i get the following error message

mehulshahinnj (Fri, 08 May 2020 12:00:39 GMT):
need some help with Fabric Node SDK, am using an Express server, when the transaction frequency increases i get the following error message Error: Cannot createCall with a closed Channel at getCall (/usr/src/app/node_modules/grpc/src/client_interceptors.js:655:22) at /usr/src/app/node_modules/grpc/src/client_interceptors.js:1098:16 at /usr/src/app/node_modules/grpc/src/client_interceptors.js:1402:14 at _buildChain (/usr/src/app/node_modules/grpc/src/client_interceptors.js:1405:33) at Object.getInterceptingCall (/usr/src/app/node_modules/grpc/src/client_interceptors.js:1367:10) at ServiceClient.Client.makeBidiStreamRequest (/usr/src/app/node_modules/grpc/src/client.js:836:47) at ServiceClient.method_func (/usr/src/app/node_modules/grpc/src/client.js:1000:43) at Promise (/usr/src/app/node_modules/fabric-network/node_modules/fabric-client/lib/Orderer.js:142:42) at new Promise () at Orderer.sendBroadcast (/usr/src/app/node_modules/fabric-network/node_modules/fabric-client/lib/Orderer.js:141:10) followed eventually by [Orderer.js]: sendBroadcast - on error: "Error: 2 UNKNOWN: Channel Destroyed\n at Object.exports.createStatusError (/usr/src/app/node_modules/grpc/src/common.js:91:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/src/app/node_modules/grpc/src/client.js:233:26)\n at ClientDuplexStream._readsDone (/usr/src/app/node_modules/grpc/src/client.js:199:8)\n at /usr/src/app/node_modules/grpc/src/client_interceptors.js:683:15" This locks up the REST server and the only option is to shutdown and restart the REST Server to process more transactions

Rachit-gaur (Fri, 08 May 2020 19:44:04 GMT):
Hi can someone help me with this error found 7 eventhubs for this organization companies I get these 7 errors first during instantiation [2020-05-09 01:10:52.933] [ERROR] instantiate-chaincode - Error: Received status message on the block stream. status:NOT_FOUND and then a success message instantiate-chaincode - The chaincode instantiate transaction has been committed on peer localhost:745

Rachit-gaur (Fri, 08 May 2020 19:44:33 GMT):
at last instantiate is successful, I have 8 peers in the system but only 2 on the channel.

Rachit-gaur (Fri, 08 May 2020 19:45:00 GMT):
same for invoke, so many errors make the api return error while at last the txn gets successful

tommyjay (Fri, 08 May 2020 19:58:29 GMT):
any idea what causes this: ``` 2020-05-08 19:57:39.383 UTC [chaincode] Deregister -> DEBU 3fe deregister handler: example_cc:1.0 2020-05-08 19:57:39.383 UTC [endorser] callChaincode -> INFO 3ff [sandbox][04623baa] Exit chaincode: name:"lscc" (3559ms) 2020-05-08 19:57:39.383 UTC [endorser] SimulateProposal -> ERRO 400 [sandbox][04623baa] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1337 chaincode registration failed ```

aakzubaidi (Fri, 08 May 2020 21:09:54 GMT):
Any thoughts on this

aakzubaidi (Fri, 08 May 2020 21:13:59 GMT):
Looks to me there is no chaincode deployed. you can check by executing this in the terminal: 'docker ps'

atoulme (Sat, 09 May 2020 01:04:11 GMT):
I'd like to instrument some chaincode, and I have placed a tracer in the Invoke method (in go). What is the lifecycle of that method? Is there a way for me to register a handler that gets triggered when the chaincode is destroyed?

spartucus (Sat, 09 May 2020 07:22:01 GMT):
"peer version" with error "Segmentation fault", any ideas why?

AbdullahJoyia (Sat, 09 May 2020 10:21:31 GMT):
Hello everyone. I am facing issue in setting gopath. I have installed hyperledger fabric 2.0. What can i do to change the path in Vim ~/.bashrc using terminal. Can anybody help me in that.

MaraoCabarao (Sat, 09 May 2020 12:36:54 GMT):
Has joined the channel.

MaraoCabarao (Sat, 09 May 2020 12:38:45 GMT):
Hello, is it a good practice to put an array of strings as one of the args of a chaincode function?

BrettLogan (Sun, 10 May 2020 03:03:33 GMT):
Where did you get your peer binary from? If you built it, what command did you use to build it? What OS are you on?

ChrisSargent (Sun, 10 May 2020 08:56:15 GMT):
`GetStateByRange` and Composite Keys: See: https://jira.hyperledger.org/browse/FABCN-175?jql=text%20~%20%22GetStateByRange%20composite%22. There are several discussions about this and despite proposals being put forward and all the issues being 'closed' they're actually all marked as stale. Couple of things I note: 1. This behaviour is not documented. Seems it would be a pretty simple change to make a note on the interface definitions that `GetStateByRange` won't find any values with composite keys. 2. Using the mock stub in GoLang, `GetStateByRange` unexpectedly finds items created with composite keys. i.e. in my project our unit tests were passing but then failing in the real world. For example, we had a single endpoint that we'd planned for debugging which just returned the result of `GetStateByRange("", "")` (the entire ledger) which worked with our mocks but not when running for real. I would like to comment on these issues but I can't because my LF login won't work in Jira, despite resetting the password.... (seems there is some auth migration going on)

scmanjarrez (Sun, 10 May 2020 11:19:35 GMT):
Hi, is it possible to create only one transaction with permissioned fields? Looking at marble_private example, it creates 2 transactions, one for "public" fields and another for "private" field. In my case, I have 2 fields that should be hidden if you don't have enough permissions, each field for different permissions meaning 3 transactions in total: 1 for public, 1 for role-A and 2 for role-B.

Amanullah68 (Sun, 10 May 2020 21:34:44 GMT):
Hi, got this error while running explorer error: [Channel.js]: refresh - failed:Error: Channel:mychannel Discovery error:access denied

Amanullah68 (Sun, 10 May 2020 21:34:59 GMT):
help me, thanks adv.

spartucus (Mon, 11 May 2020 01:02:37 GMT):
Hi, here are parameters: OS: Ubuntu 18.04.4 x64 I used bootstrap.sh to install binary: https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh I'm root user on system, but when i use command 'ls -l' to look binary, all binary in 'bin' folder have 1001 user and 1001 group, not root. After I chown and chgrp all binaries into root, "peer version" still failed with error "Segmentation fault".

noyalprakash (Mon, 11 May 2020 02:07:39 GMT):
Has joined the channel.

ongchinkai (Mon, 11 May 2020 03:02:10 GMT):
Has joined the channel.

ongchinkai (Mon, 11 May 2020 03:02:11 GMT):
Hi, I have a question regarding configtx.yaml, the bot directed me here

ongchinkai (Mon, 11 May 2020 03:04:02 GMT):
I am running three orderers on a single VM. Inside configtx.yaml, under MultiNodeEtcdRaft -> Orderer -> EtcdRaft -> Consenters, I have my three orderers, ord1.myorg.com, ord2.myorg.com, ord3.myorg.com

ongchinkai (Mon, 11 May 2020 03:05:28 GMT):
All three of their ports are currently listed as 7050. Will this cause a conflict?

BrettLogan (Mon, 11 May 2020 03:14:21 GMT):
It depends on how you are running them. Are they different VM's, are they different containers? If so, then there is no conflict. If you are instead, running 3 orderers on the same machine using the binary, then yes, this would cause a conflict.

rocky2010aaa (Mon, 11 May 2020 06:57:58 GMT):
Has joined the channel.

rocky2010aaa (Mon, 11 May 2020 06:58:11 GMT):
Hi. I have a question with hyperledger fabric. I need to make reenroll cert to prevent cert expiration but It doesn't work well. I mean I tried to update channel config after reenroll cert for orderer admin, peer admin and orderers. But cannot make it. Can I get any help?

Benni (Mon, 11 May 2020 09:29:11 GMT):
I'm reading through the HLF docs (Developing Applications section) and notice a few typos, is it possible to contribute fixes to the source code of the docs?

tommyjay (Mon, 11 May 2020 13:02:15 GMT):
it was an issue with the peer address being passed into the chaincode

ongchinkai (Mon, 11 May 2020 13:17:51 GMT):
Hi, I'm quite new to HLF. I have this exception message "Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel mychan, send transactions failed on orderer OrdererClient{id: 13, channel: mychan, name: orderer1.myorg.com:7050, url: grpcs://orderer1.myorg.com:7050}. Reason: timeout after 10000 ms." So it seems to me that the problem lies with the orderer but I'm not sure how to debug this. Can anyone give me some tips on what to look out for?

godeo (Mon, 11 May 2020 14:24:37 GMT):
Has joined the channel.

godeo (Mon, 11 May 2020 14:24:38 GMT):
Hi, i have installed Hyperledger Fabric 2.0 but i have the error token command is missing and also the fabtoken project referenced in the docs is not found in github. https://github.com/hyperledger/fabric-samples/tree/master/fabtoken

godeo (Mon, 11 May 2020 14:39:35 GMT):
Is tokenization available in version 2.0?

BrettLogan (Mon, 11 May 2020 15:45:40 GMT):
It is not, it existed in 2.0-alpha, but was removed in 2.0-beta

BrettLogan (Mon, 11 May 2020 15:46:36 GMT):
The work was scrapped as the implemented model needed a ton of work. A new implementation is being worked on and an RFC will be proposed when we are ready for public comment on the proposal

BrettLogan (Mon, 11 May 2020 15:47:46 GMT):
What were you doing when the error occurred: submitting a transaction, installing/instantiating chaincode, creating a channel?

godeo (Mon, 11 May 2020 15:57:47 GMT):
thanks for the response

ongchinkai (Mon, 11 May 2020 16:28:25 GMT):
I was submitting a transaction

BrettLogan (Mon, 11 May 2020 16:39:53 GMT):
What does the peer log show was happening in the same timeframe?

ongchinkai (Mon, 11 May 2020 16:41:33 GMT):
Is this information crucial? Because I didn't save that log so I'd have to down my BYFN and then start that network, it might take some time

BrettLogan (Mon, 11 May 2020 16:47:56 GMT):
There's no way to tell why the 10 second execution timeout was reached without seeing the logs (which should be in debug mode if you are experiencing issues)

ongchinkai (Mon, 11 May 2020 16:52:25 GMT):
Problem I have with debug mode is there's too much output and I don't know what to look out for

BrettLogan (Mon, 11 May 2020 16:58:56 GMT):
You can start by grepping the log for `[chaincode` which will return just the chaincode execution, and then look at the timestamp in the orderer log, and then look at the same timeframe in the peer logs after grepping

ongchinkai (Mon, 11 May 2020 17:02:34 GMT):
I am running the BYFN network for release 1.4. I am trying out the sample Gateway implementation code from https://hyperledger.github.io/fabric-gateway-java/release-1.4/. I get a very lengthy exception message as follows: Exception in thread "main" org.hyperledger.fabric.gateway.GatewayRuntimeException: org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel mychannel failed with peer peer0.org1.example.com. Status FAILURE, details: Channel Channel{id: 1, name: mychannel} Sending proposal with transaction: 15e63dc74daef91d6eef4ba6087ac079773949784abd9770372d6f49b220ef3c to Peer{ id: 2, name: peer0.org1.example.com, channelName: mychannel, url: grpcs://localhost:7051, mspid: Org1MSP} failed because of: gRPC failure=Status{code=UNAVAILABLE, description=io exception, cause=io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/0:0:0:0:0:0:0:1:7051 Is it a problem with my connection profile?

ongchinkai (Mon, 11 May 2020 17:03:21 GMT):
Ok, I will do this and reply with the output

ongchinkai (Mon, 11 May 2020 17:50:07 GMT):
Hi, I have uploaded to https://pastebin.com/BNv0XCe5

ongchinkai (Mon, 11 May 2020 17:50:40 GMT):
I got this output by running docker logs 95bd36cecc85 2>&1 | grep --line-buffered "\[chaincode" > output.txt

joncalvo (Mon, 11 May 2020 18:21:57 GMT):
Has joined the channel.

joncalvo (Mon, 11 May 2020 18:21:58 GMT):
Hello, I am new to HLF and I was wondering if there is a problem if I change the defined ports in the BYFN soution or I can use other ports?

joncalvo (Mon, 11 May 2020 18:21:58 GMT):
Hello, I am new to HLF and I was wondering if there is a problem if I change the defined ports in the BYFN solution or I can use other ports?

ongchinkai (Mon, 11 May 2020 18:49:29 GMT):
I have uploaded my full question to StackOverflow - https://stackoverflow.com/questions/61737052/hlf-unable-to-submit-transaction-because-connection-refused. I could really use some help with this as I've been struggling with this for some time now.

conanoc (Tue, 12 May 2020 02:14:07 GMT):
You can change the port numbers as you want if you assign them with the proper env variables. For example, default listen port of orderer is 7050 and you can change it with ORDERER_GENERAL_LISTENPORT. You can change the peer's with CORE_PEER_LISTENADDRESS and ca's with FABRIC_CA_SERVER_PORT.

ongchinkai (Tue, 12 May 2020 09:15:55 GMT):
When I try to view my Docker container logs, I am overwhelmed by too much output, mostly gossip. I want to hide all logging related to gossip. How should I do it?

Tim (Tue, 12 May 2020 09:23:27 GMT):
Hi guys, how can I enroll an already registered user, I'm using the nodeSDK ?

InRu (Tue, 12 May 2020 11:20:27 GMT):
Has joined the channel.

InRu (Tue, 12 May 2020 11:27:14 GMT):
HSM

knagware9 (Tue, 12 May 2020 12:07:44 GMT):
you can set the loggig level to Error so only error logging displayed

knagware9 (Tue, 12 May 2020 12:08:37 GMT):
details here https://hyperledger-fabric.readthedocs.io/en/release-2.0/logging-control.html

InRu (Tue, 12 May 2020 12:49:07 GMT):
Hi, I am trying to integrate a SoftHSM with PKCS#11 into my Orderer (Environment: Linux VM on Win10). Before start integrating I used the crypto material generated by cryptogen. Unfortunately I got the following error message, when starting the Orderer: [orderer.common.server] initializeLocalMsp -> FATA 0d9 Failed to initialize local MSP: could not initialize BCCSP Factories: Could not find default `PKCS11` BCCSP orderer.org.de exited with code 1 ---------------------------------------------------------------- Following the docs and "google" I've done the following stuff: 1. Installation of SoftHSM 2. Installation of OpenSC (for tool: pkcs11-tool) 3. Initialise Token of SoftHSM - softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin 1234 --pin 98765432 (new Slot ID 0x231267b0 = 588408752) 4. Test access to SoftHSM (HSM Lib) - sudo pkcs11-tool -v -L --module /usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so 5. Import the prvKeys (generated with cryptogen) of the Org Orderer and the Org Admin into the SoftHSM. I don't know accurate, what has to be present in the HSM and what stays in the previous used directories ?!? - pkcs11-tool --module /usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so -l --pin 98765432 --write-object ./4ea36183f09dca49c192839db279e075a4a8c30fa2aa83fbbd4323686deb22cc_sk --type privkey --id 588408752 - pkcs11-tool --module /usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so -l --pin 98765432 --write-object ./3f89ba51e920a1e0e7991a63aee8aae57eeda0fc985c505fc3fffed35a7be4e5_sk --type privkey --id 588408752 6. Check, if imported keys (actualle key pairs) are present - sudo pkcs11-tool -O -v --pin 98765432 --module /usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so 7. Build of Hyperledger Fabric V1.4.7 GO_TAGS=pkcs11 make dist-clean all 8. adopt the configuration file my_orderer.yaml I don't know, if the environment settings are still nessesary (special the ..GENERAL_LOCALMSP..) ?!? version: "3.5" networks: OverlayNetwork: external: true driver: overlay attachable: true services: orderer.org.de: container_name: orderer.org.de image: "hyperledger/fabric-orderer:${IMAGE_TAG}" environment: - SOFTHSM2_CONF=/etc/hyperledger/fabric/HSM_config/softhsm2.conf - FABRIC_LOGGING_SPEC=debug - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 - ORDERER_GENERAL_GENESISMETHOD=file - ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block - ORDERER_GENERAL_LOCALMSPID=OrgMSP - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp - ORDERER_GENERAL_BCCSP_DEFAULT=PKCS11 - ORDERER_GENERAL_BCCSP_PKCS11_HASH=SHA2 - ORDERER_GENERAL_BCCSP_PKCS11_SECURITY=256 - ORDERER_GENERAL_BCCSP_PKCS11_LIBRARY=/etc/hyperledger/fabric/HSM_lib/libsofthsm2.so - ORDERER_GENERAL_BCCSP_PKCS11_PIN=98765432 - ORDERER_GENERAL_BCCSP_PKCS11_LABEL=ForFabric working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer command: orderer ports: - 7050:7050 volumes: - $PROJECT_DIR/configTransactions/:/etc/hyperledger/configtx - $PROJECT_DIR/creatingCryptoMaterial/crypto-config/ordererOrganizations/org.de/orderers/orderer.org.de/:/etc/hyperledger/msp/orderer - /usr/lib/x86_64-linux-gnu/softhsm:/etc/hyperledger/fabric/HSM_lib - /home/fabric/.config/softhsm2:/etc/hyperledger/fabric/HSM_config networks: - OverlayNetwork 9. Generate Genesis-Block for Orderer (nessesary to start Orderer) - configtxgen -profile OneOrgOrdererGenesis -outputBlock $PROJECT_DIR/configTransactions/genesis.block -channelID mysystemchannel 9. start Orderer - docker-compose -f my_orderer.yaml up orderer.org.de

zircoz (Tue, 12 May 2020 13:16:43 GMT):
I am getting : ``` Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied ``` on running the curl command to install binaries and samples as given here https://hyperledger-fabric.readthedocs.io/en/latest/install.html

zircoz (Tue, 12 May 2020 13:16:57 GMT):
anyone has any idea how should I fix/get around it ?

vishnupradeepmahe (Tue, 12 May 2020 13:20:04 GMT):
Has joined the channel.

AbdullahJoyia (Tue, 12 May 2020 13:20:33 GMT):
Hello! I am facing issue in running the ./createChannel.sh It shows this error while running this command. Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home...no such file or directory

AbdullahJoyia (Tue, 12 May 2020 13:20:33 GMT):
Hello! I am facing issue in running the ./createChannel.sh I am working on Fabric bersion 2.0 and building a network. While running this command It shows this error. Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home...no such file or directory

InRu (Tue, 12 May 2020 14:03:07 GMT):
Has left the channel.

InRu (Tue, 12 May 2020 14:03:32 GMT):
Has joined the channel.

chintanr11 (Tue, 12 May 2020 14:06:21 GMT):
Hi, I would like to know the meaning and use of the following orderer metric: consensus_etcdraft_data_persist_duration ..states the following: The time taken for etcd/raft data to be persisted in storage (in seconds).

BrettLogan (Tue, 12 May 2020 16:01:53 GMT):
Your user needs to be added to the docker group `usermod -aG docker `

BrettLogan (Tue, 12 May 2020 16:03:37 GMT):
The default images we provide on DockerHub aren't built with PKCS11 enabled. You need to build the images yourself to enable it. Pull the fabric code and checkout the branch you want, then run `GO_TAGS=PKCS11 make docker`

BrettLogan (Tue, 12 May 2020 16:03:37 GMT):
The default images we provide on DockerHub aren't built with PKCS11 enabled. You need to build the images yourself to enable it. Pull the fabric code and checkout the branch you want, then run `GO_TAGS=pkcs11 make docker`

InRu (Tue, 12 May 2020 16:06:02 GMT):
Yes, I know and I build with:

InRu (Tue, 12 May 2020 16:07:31 GMT):
GO_TAGS=pkcs11 make dist-clean all I thought, this implizit executes the GO_TAGS=pkcs11 make docker too ?!

InRu (Tue, 12 May 2020 16:10:05 GMT):
If I execute GO_TAGS=pkcs11 make orderer , I got the result: make: .. nothing to do!

BrettLogan (Tue, 12 May 2020 16:10:37 GMT):
delete your `build` directory

BrettLogan (Tue, 12 May 2020 16:11:09 GMT):
But your first command should have worked

ongchinkai (Tue, 12 May 2020 16:13:08 GMT):
My logging level is currently set to "INFO:gossip=ERROR:chaincode=DEBUG". In my chaincode I have a line "stub.setEvent("createCert", "Certificate created".getBytes());", but I don't see any signs of my event in my peer and orderer container logs. Does this mean my logging level is not sufficient?

BrettLogan (Tue, 12 May 2020 16:13:12 GMT):
I see now where you said you already built with it. Did you modify your orderer.yaml to have a pkcs11 section, blank or otherwise

InRu (Tue, 12 May 2020 16:14:40 GMT):
ok, thanks! I'll try

Amanullah68 (Tue, 12 May 2020 19:55:22 GMT):
Hi guys, got this error while instantiating chaincode [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: chaincode registration failed: container exited with 0

joncalvo (Tue, 12 May 2020 21:49:20 GMT):
Oh thanks, I appreciate your help

alejoacosta (Tue, 12 May 2020 22:03:14 GMT):
Has joined the channel.

alejoacosta (Tue, 12 May 2020 22:03:16 GMT):
Hi there! I am trying to setup the HSM config as per described in the following guideline (https://hyperledger-fabric.readthedocs.io/en/release-1.4/hsm.html) . I have made new binaries as indicated: I have made new binaries as indicated: make docker GO_TAGS=pkcs11 But when I tried to run the docker-ca-server init, I keept getting the error below: /etc/hyperledger # fabric-ca-server init -b titoadm:titopw 2020/05/12 20:02:40 [DEBUG] Home directory: /etc/hyperledger/fabric-ca-server 2020/05/12 20:02:40 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2020/05/12 20:02:40 [DEBUG] Set log level: 2020/05/12 20:02:40 [INFO] Server Version: 2.0.0-snapshot-2d75a1a 2020/05/12 20:02:40 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2020/05/12 20:02:40 [DEBUG] Making server filenames absolute 2020/05/12 20:02:40 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca-server 2020/05/12 20:02:40 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca-server and config {Version:2.0.0-snapshot-2d75a1a Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name:ca-org2 Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc0004acd90 CSR:{CN:fabric-ca-server Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[e0c18d32b344 localhost] KeyRequest:0xc0004be400 CA:0xc0004be480 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1] }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }} } CSP:0xc0004c6000 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2020/05/12 20:02:40 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca-server 2020/05/12 20:02:40 [DEBUG] Checking configuration file version '2.0.0-snapshot-2d75a1a' against server version: '2.0.0-snapshot-2d75a1a' 2020/05/12 20:02:40 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts:0xc0000329c0 PluginOpts: Pkcs11Opts:} 2020/05/12 20:02:40 [DEBUG] Initializing BCCSP with software options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false FileKeystore:0xc0004c56e0 DummyKeystore: InmemKeystore:} 2020/05/12 20:02:40 [DEBUG] Closing server DBs 2020/05/12 20:02:40 [FATAL] Initialization failure: Failed to get BCCSP with opts: Could not initialize BCCSP PKCS11: Invalid confi Anybody knows how to overcome this? THere is very little information on google.

BrettLogan (Wed, 13 May 2020 01:33:30 GMT):
What does your ca config file BCCSP section look like?

BrettLogan (Wed, 13 May 2020 01:33:30 GMT):
What does your ca config file look like?

alejoacosta (Wed, 13 May 2020 02:06:20 GMT):
I have set the corresponding config via ENVIROMENT VARs. This is what I have: FABRIC_CA_SERVER_BCCSP_DEFAULT=PKCS11 FABRIC_CA_SERVER_BCCSP_PKCS11_LABEL=fabric FABRIC_CA_SERVER_BCCSP_PKCS11_SECURITY=256 FABRIC_CA_SERVER_BCCSP_PKCS11_INMUTABLE=false FABRIC_CA_SERVER_BCCSP_PKCS11_HASH=SHA2 SOFTHSM2_CONF=/etc/hyperledger/hsm/softhsm2.conf FABRIC_CA_SERVER_BCCSP_PKCS11_LIBRARY=/etc/hyperledger/hsm/libsofthsm2.so FABRIC_CA_SERVER_BCCSP_PKCS11_PIN=71811222

alejoacosta (Wed, 13 May 2020 02:07:22 GMT):
I have set the corresponding config via environmet variables, like this:

alejoacosta (Wed, 13 May 2020 02:07:26 GMT):
FABRIC_CA_SERVER_BCCSP_DEFAULT=PKCS11 FABRIC_CA_SERVER_BCCSP_PKCS11_LABEL=fabric FABRIC_CA_SERVER_BCCSP_PKCS11_SECURITY=256 FABRIC_CA_SERVER_BCCSP_PKCS11_INMUTABLE=false FABRIC_CA_SERVER_BCCSP_PKCS11_HASH=SHA2 SOFTHSM2_CONF=/etc/hyperledger/hsm/softhsm2.conf FABRIC_CA_SERVER_BCCSP_PKCS11_LIBRARY=/etc/hyperledger/hsm/libsofthsm2.so FABRIC_CA_SERVER_BCCSP_PKCS11_PIN=71811222

alejoacosta (Wed, 13 May 2020 02:14:32 GMT):
I did not edit the fabric-ca-server config file, because after rebuilding the fabric-ca image, the linux distribution is lacking all the text editors and utilities like apt-get

BrettLogan (Wed, 13 May 2020 02:14:59 GMT):
Fabric CA does not have a default PKCS11 section. In order to override it with environment variable, it must exist in the config

BrettLogan (Wed, 13 May 2020 02:15:34 GMT):
So you will need to mount a config into your container and add the PKCS11 section to it

alejoacosta (Wed, 13 May 2020 02:16:38 GMT):
oh, I see. Thanks for the hint. I will try it a.s.a.p.

alejoacosta (Wed, 13 May 2020 02:19:01 GMT):
By anychance, do you know how to re-build the fabric-ca docker image so it resembles the image created by the bootstrap script? Because issuing the command as depicted in the guideline (make docker GO_TAGS=pkcs11) leaves you with a very limited ubuntu image

AshishMalik (Wed, 13 May 2020 02:19:43 GMT):
Has joined the channel.

BrettLogan (Wed, 13 May 2020 02:21:24 GMT):
What differences are you talking about? I manage our artifacts, the images we build and published are built using the `make docker` command: https://github.com/hyperledger/fabric-ca/blob/release-1.4/ci/scripts/publish_docker.sh#L7

BrettLogan (Wed, 13 May 2020 02:21:24 GMT):
What differences are you talking about. I manage our artifacts, the images we build and published are built using the `make docker` command: https://github.com/hyperledger/fabric-ca/blob/release-1.4/ci/scripts/publish_docker.sh#L7

BrettLogan (Wed, 13 May 2020 02:21:45 GMT):
Are you seeing something different when building with the `pkcs11` build tag?

BrettLogan (Wed, 13 May 2020 02:21:45 GMT):
Are you seeing something different when building with the `pkcs11` build tag

alejoacosta (Wed, 13 May 2020 02:22:56 GMT):
Yes. After building with the pkcs11 tag, I got a docker image with no bash, no apt-get, etc

alejoacosta (Wed, 13 May 2020 02:23:57 GMT):
But the CA server and client are there though, and if you take a look at the logs I sent, it looks like the build works ok and also supports pkcs11

BrettLogan (Wed, 13 May 2020 02:24:45 GMT):
Ah, you are comparing 1.4 images to 2.x. In 1.4 we still used ubuntu, 2.x we switched to alpine

BrettLogan (Wed, 13 May 2020 02:25:08 GMT):
If you want the ubuntu images and Fabric CA 1.4, you should do a `git checkout release-1.4` before building

BrettLogan (Wed, 13 May 2020 02:25:08 GMT):
If you want the ubuntu images and Fabric 1.4, you should do a `git checkout release-1.4` before building

BrettLogan (Wed, 13 May 2020 02:25:42 GMT):
1.4 is the latest images we have published to Dockerhub, right now we have no intent to release 2.x Fabric-CA. So 1.4 is our current LTS release

BrettLogan (Wed, 13 May 2020 02:26:01 GMT):
Fabric 2.x works with Fabric CA 1.4.x

alejoacosta (Wed, 13 May 2020 02:26:55 GMT):
Good! That is the reason then :ok_hand:

alejoacosta (Wed, 13 May 2020 02:27:46 GMT):
thank you very much. I will give it a try.

BrettLogan (Wed, 13 May 2020 02:27:47 GMT):
You can modify the Dockerfile in `images/fabric-ca/Dockerfile` if you want to add bash

BrettLogan (Wed, 13 May 2020 02:27:55 GMT):
And use Fabric-CA 2.x

alejoacosta (Wed, 13 May 2020 02:29:53 GMT):
sorry, but what would be the complete path for that? I am not sure I follow

BrettLogan (Wed, 13 May 2020 02:30:24 GMT):
https://github.com/hyperledger/fabric-ca/blob/master/images/fabric-ca/Dockerfile

alejoacosta (Wed, 13 May 2020 02:30:49 GMT):
:thumbsup:

BrettLogan (Wed, 13 May 2020 02:31:35 GMT):
You would want to add `bash` beetween lines 14 and 15

BrettLogan (Wed, 13 May 2020 02:35:39 GMT):
You could also use this:

BrettLogan (Wed, 13 May 2020 02:35:42 GMT):
```git stash git checkout master git fetch origin refs/pull/82/head git checkout -b caduellery/fabc_892_include_pkcs11_bccsp_in_defaulCfgTemplate FETCH_HEAD```

BrettLogan (Wed, 13 May 2020 02:36:00 GMT):
This has the pkcs11 section in it already, so when you build it will be autogenerated in the config for you

BrettLogan (Wed, 13 May 2020 02:36:00 GMT):
This has the pkcs11 section in it already, so when you vuild it will be autogeneerated

alejoacosta (Wed, 13 May 2020 02:37:37 GMT):
If I use those git command, then I just need to run the 'make docker' command and that's it?

BrettLogan (Wed, 13 May 2020 02:37:58 GMT):
with `GO_TAGS=pkcs11` still

BrettLogan (Wed, 13 May 2020 02:38:05 GMT):
But you wont need to mount your own config file

alejoacosta (Wed, 13 May 2020 02:38:15 GMT):
good then

BrettLogan (Wed, 13 May 2020 02:38:31 GMT):
the environment variables will work for you with this one

BrettLogan (Wed, 13 May 2020 02:39:18 GMT):
I did discuss this with our teams today, we are going to remove the pkcs11 build tags and build with pkcs11 by default, I suspect I'll fix that tomorrow, so you wouldn't need to include the bbuild tag anymore

alejoacosta (Wed, 13 May 2020 02:39:56 GMT):
great. Good news. Thanks a lot again

alejoacosta (Wed, 13 May 2020 02:40:05 GMT):
Will try your suggestions

BrettLogan (Wed, 13 May 2020 02:40:08 GMT):
No problem, happy building!

alejoacosta (Wed, 13 May 2020 03:01:41 GMT):
I have done all the changes, build the new image and got the following log when running the fabric-ca-server init. Still will errors, though a bit different:

alejoacosta (Wed, 13 May 2020 03:01:45 GMT):
2020/05/13 03:00:26 [DEBUG] Home directory: /etc/hyperledger/fabric-ca-server 2020/05/13 03:00:26 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2020/05/13 03:00:26 [DEBUG] Set log level: 2020/05/13 03:00:26 [INFO] Server Version: 2.0.0-snapshot-7b99e7b 2020/05/13 03:00:26 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2020/05/13 03:00:26 [DEBUG] Making server filenames absolute 2020/05/13 03:00:26 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca-server 2020/05/13 03:00:26 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca-server and config {Version:2.0.0-snapshot-7b99e7b Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name:ca-org2 Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc0004aab70 CSR:{CN:fabric-ca-server Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[06724dff7792 localhost] KeyRequest:0xc0003e92c0 CA:0xc0003e9340 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1] }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }} } CSP:0xc0003e9840 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2020/05/13 03:00:26 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca-server 2020/05/13 03:00:26 [DEBUG] Checking configuration file version '2.0.0-snapshot-7b99e7b' against server version: '2.0.0-snapshot-7b99e7b' 2020/05/13 03:00:26 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts:0xc000032ec0 Pkcs11Opts:0xc00046b260} 2020/05/13 03:00:26 [DEBUG] Initializing BCCSP with software options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false FileKeystore:0xc0004aa870 DummyKeystore: InmemKeystore:} 2020/05/13 03:00:26 [DEBUG] Initializing BCCSP with PKCS11 options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false Library:/etc/hyperledger/hsm/libsofthsm2.so Label:fabric Pin:71811222 SoftVerify:false Immutable:false} 2020/05/13 03:00:26 [DEBUG] Closing server DBs 2020/05/13 03:00:26 [FATAL] Initialization failure: Failed to initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PKCS11 [Failed initializing PKCS11 library /etc/hyperledger/hsm/libsofthsm2.so fabric: Instantiate failed [/etc/hyperledger/hsm/libsofthsm2.so]] Could not find default `PKCS11` BCCSP

alejoacosta (Wed, 13 May 2020 03:02:14 GMT):
perhaps I still need to edit the config file?

BrettLogan (Wed, 13 May 2020 03:04:23 GMT):
Can you do a `docker run -it -d -v $(pwd):/etc/hyperledger/fabric-ca-server hyperledger/fabric-ca`

BrettLogan (Wed, 13 May 2020 03:04:44 GMT):
And then see what the bccsp section of the generated config file in your current directory contains

BrettLogan (Wed, 13 May 2020 03:06:01 GMT):
you can do a `git clean -ffd` to clean up the random files we just generated

BrettLogan (Wed, 13 May 2020 03:06:01 GMT):
you can do a `git clean -ffd` to clean up the random file we just generated

alejoacosta (Wed, 13 May 2020 03:07:22 GMT):
` ############################################################################# # BCCSP (BlockChain Crypto Service Provider) section is used to select which # crypto library implementation to use. Change "default:" value to match the # provider (SW or PKCS11). ############################################################################# bccsp: default: SW sw: hash: SHA2 security: 256 filekeystore: # The directory used for the software file-based keystore keystore: msp/keystore # PKCS11 provider definitions, for use with an HSM pkcs11: Library: Pin: Label: hash: SHA2 security: 256 filekeystore: keystore: `

alejoacosta (Wed, 13 May 2020 03:08:07 GMT):
is that what you expected to see?

BrettLogan (Wed, 13 May 2020 03:08:21 GMT):
can you edit that output and make the backticks triple backticks ``` ```

alejoacosta (Wed, 13 May 2020 03:08:29 GMT):
sure

BrettLogan (Wed, 13 May 2020 03:08:44 GMT):
I want it to pick up the indentation, as that matters

alejoacosta (Wed, 13 May 2020 03:08:51 GMT):
```############################################################################# # BCCSP (BlockChain Crypto Service Provider) section is used to select which # crypto library implementation to use. Change "default:" value to match the # provider (SW or PKCS11). ############################################################################# bccsp: default: SW sw: hash: SHA2 security: 256 filekeystore: # The directory used for the software file-based keystore keystore: msp/keystore # PKCS11 provider definitions, for use with an HSM pkcs11: Library: Pin: Label: hash: SHA2 security: 256 filekeystore: keystore: ```

BrettLogan (Wed, 13 May 2020 03:08:55 GMT):
thank you

BrettLogan (Wed, 13 May 2020 03:09:09 GMT):
And then can you paste your environment variables one more time

BrettLogan (Wed, 13 May 2020 03:09:09 GMT):
And then can you paste your environeemnt variables one more time

alejoacosta (Wed, 13 May 2020 03:09:46 GMT):
```/etc/hyperledger # env HOSTNAME=06724dff7792 FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem SHLVL=1 HOME=/root OLDPWD=/etc FABRIC_CA_SERVER_BCCSP_DEFAULT=PKCS11 FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/1a71696268b8d271c558f26da0407da633e80bc19f151ba898eb1f036b91c114_sk SOFTHSM2_CONF=/etc/hyperledger/hsm/softhsm2.conf FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server TERM=xterm FABRIC_CA_SERVER_BCCSP_PKCS11_LIBRARY=/etc/hyperledger/hsm/libsofthsm2.so PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin FABRIC_CA_SERVER_DEBUG=true FABRIC_CA_SERVER_CA_NAME=ca-org2 FABRIC_CA_SERVER_TLS_ENABLED=true FABRIC_CA_SERVER_BCCSP_PKCS11_PIN=71811222 PWD=/etc/hyperledger FABRIC_CA_SERVER_BCCSP_PKCS11_LABEL=fabric ```

BrettLogan (Wed, 13 May 2020 03:11:45 GMT):
Let me push a change you can pull to make this easier, I am going to remove the build tag for you

BrettLogan (Wed, 13 May 2020 03:11:51 GMT):
Something is still wrong

alejoacosta (Wed, 13 May 2020 03:12:44 GMT):
OK, great.

BrettLogan (Wed, 13 May 2020 03:12:46 GMT):
When you do `GO_TAGS=pkcs11 make docker` when it builds fabric, in the output, can you see `tags=pkcs11` on the step where it builds fabric

alejoacosta (Wed, 13 May 2020 03:14:16 GMT):
```tony@instance-1:~/mygit/fabric-ca$ make docker GO_TAGS=pkcs11 Docker: building fabric-ca image docker build -f images/fabric-ca/Dockerfile \ --build-arg GO_VER=1.13.4 \ --build-arg GO_TAGS=pkcs11 \ --build-arg GO_LDFLAGS="-X github.com/hyperledger/fabric-ca/lib/metadata.Version=2.0.0-snapshot-7b99e7b -linkmode external -extldflags '-lpthread'" \ --build-arg ALPINE_VER=3.10 \ -t hyperledger/fabric-ca . Sending build context to Docker daemon 56.9MB Step 1/14 : ARG GO_VER Step 2/14 : ARG ALPINE_VER Step 3/14 : FROM golang:${GO_VER}-alpine as builder 1.13.4-alpine: Pulling from library/golang 89d9c30c1d48: Pull complete 8ef94372a977: Pull complete 1ec62c064901: Pull complete a47b1e89d194: Pull complete bf1a3d234800: Pull complete Digest: sha256:9d2a7c5b6447f525da0a4f18efd2cb05bf7d70228f75d713b7a67345f30157ac Status: Downloaded newer image for golang:1.13.4-alpine ---> 3024b4e742b0 Step 4/14 : ARG GO_LDFLAGS ---> Running in 004033ff4d88 Removing intermediate container 004033ff4d88 ---> 91c58f40a684 Step 5/14 : ARG GO_TAGS ---> Running in 634b64e2982a Removing intermediate container 634b64e2982a ---> c74d3d23b65c Step 6/14 : RUN apk add --no-cache gcc git musl-dev; ---> Running in 1c389b6012b9 fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz (1/16) Installing binutils (2.32-r0) (2/16) Installing gmp (6.1.2-r1) (3/16) Installing isl (0.18-r0) (4/16) Installing libgomp (8.3.0-r0) (5/16) Installing libatomic (8.3.0-r0) (6/16) Installing libgcc (8.3.0-r0) (7/16) Installing mpfr3 (3.1.5-r1) (8/16) Installing mpc1 (1.1.0-r0) (9/16) Installing libstdc++ (8.3.0-r0) (10/16) Installing gcc (8.3.0-r0) (11/16) Installing nghttp2-libs (1.39.2-r0) (12/16) Installing libcurl (7.66.0-r0) (13/16) Installing expat (2.2.8-r0) (14/16) Installing pcre2 (10.33-r0) (15/16) Installing git (2.22.4-r0) (16/16) Installing musl-dev (1.1.22-r3) Executing busybox-1.30.1-r2.trigger OK: 118 MiB in 31 packages Removing intermediate container 1c389b6012b9 ---> 7160dc1e73aa Step 7/14 : ADD . $GOPATH/src/github.com/hyperledger/fabric-ca ---> b301bbc5a1b4 Step 8/14 : RUN go install -tags "${GO_TAGS}" -ldflags "${GO_LDFLAGS}" github.com/hyperledger/fabric-ca/cmd/fabric-ca-server && go install -tags "${GO_TAGS}" -ldflags "${GO_LDFLAGS}" github.com/hyperledger/fabric-ca/cmd/fabric-ca-client ---> Running in 44add3964242 Removing intermediate container 44add3964242 ---> aa80e80ab2f2 Step 9/14 : FROM alpine:${ALPINE_VER} 3.10: Pulling from library/alpine 21c83c524219: Pull complete Digest: sha256:f0e9534a598e501320957059cb2a23774b4d4072e37c7b2cf7e95b241f019e35 Status: Downloaded newer image for alpine:3.10 ---> be4e4bea2c2e Step 10/14 : RUN apk add --no-cache tzdata; ---> Running in f4b4ac79c9b3 fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz (1/1) Installing tzdata (2020a-r0) Executing busybox-1.30.1-r3.trigger OK: 9 MiB in 15 packages Removing intermediate container f4b4ac79c9b3 ---> be8cfd6935cf Step 11/14 : ENV FABRIC_CA_HOME /etc/hyperledger/fabric-ca-server ---> Running in a1a425829bd6 Removing intermediate container a1a425829bd6 ---> 7527b3947226 Step 12/14 : COPY --from=builder /go/bin /usr/local/bin ---> 95c3ae69008c Step 13/14 : EXPOSE 7054 ---> Running in b9de73754f2a Removing intermediate container b9de73754f2a ---> 7b676132ac42 Step 14/14 : CMD fabric-ca-server start -b admin:adminpw ---> Running in e6bb76133f2a Removing intermediate container e6bb76133f2a ---> ddf0d6a48885 Successfully built ddf0d6a48885 Successfully tagged hyperledger/fabric-ca:latest docker tag hyperledger/fabric-ca \ hyperledger/fabric-ca:2.0.0 docker tag hyperledger/fabric-ca \ hyperledger/fabric-ca:amd64-2.0.0-snapshot-7b99e7b ```

BrettLogan (Wed, 13 May 2020 03:16:10 GMT):
Ah, nevermind, I forgot we don't build it in CA the same way we do in fabric, so you cant see the output

BrettLogan (Wed, 13 May 2020 03:16:36 GMT):
give me 5 minutese and Ill have this for you

alejoacosta (Wed, 13 May 2020 03:16:58 GMT):
no rush. I think I will need to leave and take a rest

alejoacosta (Wed, 13 May 2020 03:17:05 GMT):
it is quite late for me

alejoacosta (Wed, 13 May 2020 03:17:32 GMT):
whenever you can, please drop me a line here or email me at alejoacos@gmail.com

alejoacosta (Wed, 13 May 2020 03:17:46 GMT):
and I will give it a try, ok?

alejoacosta (Wed, 13 May 2020 03:18:26 GMT):
thanks a lot Brent

BrettLogan (Wed, 13 May 2020 03:19:36 GMT):
absolutely

BrettLogan (Wed, 13 May 2020 03:24:47 GMT):
testing the new code now

Amanullah68 (Wed, 13 May 2020 04:32:45 GMT):
Hi guys, got this error while instantiating chaincode " [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: chaincode registration failed: container exited with 0 "

Steiner 1 (Wed, 13 May 2020 06:28:28 GMT):
Has joined the channel.

Amanullah68 (Wed, 13 May 2020 07:43:27 GMT):
Anyone here , please help me I got stuck here in instantiating node code on peer

Amanullah68 (Wed, 13 May 2020 07:43:39 GMT):
I got this error

Amanullah68 (Wed, 13 May 2020 07:43:41 GMT):
ERRO 35f2 [mychannel][73e7ae53] failed to invoke chaincode name:"lscc" , error: container exited with 0

aneenaalex (Wed, 13 May 2020 10:17:56 GMT):
Has joined the channel.

aneenaalex (Wed, 13 May 2020 10:18:01 GMT):
Anyone here.I have trouble installing fabric in ubuntu 19.04.Can't even install Curl.How to add the repositories

touqeershah (Wed, 13 May 2020 11:35:34 GMT):
Has joined the channel.

touqeershah (Wed, 13 May 2020 11:35:36 GMT):
Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode fabcar has been successfully defined on channel mychannel and try again: chaincode definition for 'fabcar' exists, but chaincode is not installed"

touqeershah (Wed, 13 May 2020 11:36:13 GMT):
facing this error in invoke command

greg2git (Wed, 13 May 2020 13:31:30 GMT):
@aneenaalex haven't tried 19 yet, but which version did you get it to work on before? both 16 and 18 have worked for me for fabric 1.4

pkirkinezis (Wed, 13 May 2020 13:33:03 GMT):
Hi am currently learning V 2.0 and trying different thinks to familiarize my self with fabric. I have 2 vm machines and I am confuised. My concept described bellow: Running the test-network on PC1 with the orderer , 2 orgs ,mychannel and fabcar chaincode(The example) From PC2 adding/ joining Org3 to mychannel and deploy the chaincode also for Org3 Add Org3 anchor Peer The scripts for Org3 require some material from Org1 and also Orderer. I managed to add orderer.example.com to the hosts of Ubuntu with the ip of PC1. But because the test-network is running in another machine there is no data on /organizations. I posted also in mail list . Any help or source to read would be useful.

Steiner 1 (Wed, 13 May 2020 14:35:35 GMT):
I added peer0 and peer nodes to the channel, peer0 was added successfully, and peer1 failed to be added. I want to know what is going on. root@e3b9ced411b1:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.22.0.3:7051: connect: connection refused"

ongchinkai (Wed, 13 May 2020 14:39:25 GMT):
In all the code samples of event hubs I come across, they create a new channel within the code, create an event hub from HFClient and add it to that channel before initializing. Is it possible to add an event hub to an already existing channel?

ongchinkai (Wed, 13 May 2020 14:42:46 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Ppse32fKjerBiJ2wm) Let me clarify my question: adding an event hub to an already existing channel -- can I do this in code?

braduf (Wed, 13 May 2020 15:56:17 GMT):
HI all, I was wondering if the return value of a chaincode function impacts the transaction size?

braduf (Wed, 13 May 2020 15:56:17 GMT):
HI all, I was wondering if the return value of a chaincode function impacts the transaction size or does it has a significant impact on performance?

InRu (Wed, 13 May 2020 16:29:44 GMT):
Hi, unfortunately I've the same problems/errors as before. What I've done: 1. I delete the .build directory 2. I rebuild GO_TAGS=pkcs11 make dist-clean all The build executes without errors but the unit-test fails as before: unit-test/run.sh pkcs11 ok github.com/hyperledger/fabric/bccsp 0.010s coverage: 68.2% of statements Trying configuration [0] --- FAIL: TestGetBCCSPFromOpts (0.08s) pkcs11_test.go:95: Error Trace: pkcs11_test.go:95 Error: Received unexpected error: Could not get Slot List [pkcs11: 0x190: CKR_CRYPTOKI_NOT_INITIALIZED] Failed initializing PKCS11 library /usr/lib/softhsm/libsofthsm2.so ForFabric It fails in the file/func github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go func loadLib(lib, pin, label string) (*pkcs11.Ctx, uint, *pkcs11.SessionHandle, error) { : : <== Lib could be loaded without errors! ctx := pkcs11.New(lib) <== New creates a new context and initializes the module/library for use. ctx.Initialize() <== Initialize initializes the Cryptoki library. slots, err := ctx.GetSlotList(true) <== GetSlotList obtains a list of slots in the system. if err != nil { return nil, slot, nil, fmt.Errorf("Could not get Slot List [%s]", err) } ctx.GetSlotList() fails. When I execute on console, access to the SoftHSM is possible: sudo pkcs11-tool -v -L --module /usr/lib/softhsm/libsofthsm2.so Q: is it maybe a problem with sudo/root permission?

pedroampuc (Wed, 13 May 2020 18:14:49 GMT):
Has joined the channel.

ongchinkai (Wed, 13 May 2020 18:43:37 GMT):
I check my debug logs to see why my EventHub isn't connecting, this is what I see: 2020-05-14 02:37:37 DEBUG EventHub:212 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} is connecting. 2020-05-14 02:37:37 DEBUG EventHub:341 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} connect is done with connect status: false 2020-05-14 02:37:37 WARN EventHub:280 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} terminated is false shutdown is false, retry count 1 has error UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]. 2020-05-14 02:37:37 WARN EventHub:294 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} :StatusRuntimeException Status Status{code=UNAVAILABLE, description=io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], cause=java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:247) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1140) at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Unknown Source) }. Description io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] What does this mean?

ongchinkai (Wed, 13 May 2020 18:43:37 GMT):
I check my debug logs to see why my EventHub isn't connecting, this is what I see: 2020-05-14 02:37:37 DEBUG EventHub:212 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} is connecting. 2020-05-14 02:37:37 DEBUG EventHub:341 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} connect is done with connect status: false 2020-05-14 02:37:37 WARN EventHub:280 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} terminated is false shutdown is false, retry count 1 has error UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]. 2020-05-14 02:37:37 WARN EventHub:294 - EventHub{id: 3, name: peer1.org1.isprint.com, channelName: isprintchannel, url: grpcs://127.0.0.1:7053} :StatusRuntimeException Status Status{code=UNAVAILABLE, description=io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], cause=java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:247) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1140) at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Unknown Source) }. Description io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] Quick Google search seems to suggest that this is a timeout issue. How do I change my timeout settings?

pedroampuc (Wed, 13 May 2020 19:03:50 GMT):
Hello everyone! First time here.... I'm using fabric 2.0 test-network to test some chaincode in nodejs implementations... I'm using fabric-samples/commercial-paper nodejs contract implementation design. I can getState and PutState just fine, but getStateByPartialCompositeKey always comes back empty.. I don't know what I'm doing wrong since I'm able to get a State using a full key... Here is my function that uses getStateByPartialCompositeKey: /** * @function getAllStatesFromPartialCompositeKey */ async getAllStatesFromPartialCompositeKey(partialArgument) { console.log('================ Called from beginning of getAllStatesFromPartialCompositeKey ================'); console.log('================ name => '+this.name); let key = this.ctx.stub.createCompositeKey(this.name,[partialArgument]); console.log('================ created partial key .....'); console.log(partialArgument); console.log(key); let response = await this.ctx.stub.getStateByPartialCompositeKey(this.name, [key]); //.toString('utf8') console.log('================ response below ================'); console.log(response); let results = await this.getAllResults(response); return results; }// fin getAllStatesFromPartialCompositeKey Here is how I invoke it: /home/ubilab/fabric2/fabric-samples/test-network$ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --channelID mychannel --name informed_consent_9 --tls true --cafile $ORDERER_CA --peerAddresses localhost:7051 --tlsRootCertFiles $ORG1_CA -c '{"Args":["csacmpcc:getAllStates","P03"]}' Response: chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 payload:"[]"

pedroampuc (Wed, 13 May 2020 19:03:50 GMT):
Hello everyone! First time here.... I'm using fabric 2.0 test-network to test some chaincode in nodejs implementations... I'm using fabric-samples/commercial-paper nodejs contract implementation design. I can getState and PutState just fine, but getStateByPartialCompositeKey always comes back empty.. I don't know what I'm doing wrong since I'm able to get a State using a full key... Here is my function that uses getStateByPartialCompositeKey: /** * @function getAllStatesFromPartialCompositeKey */ async getAllStatesFromPartialCompositeKey(partialArgument) { console.log('================ Called from beginning of getAllStatesFromPartialCompositeKey ================'); console.log('================ name => '+this.name); let key = this.ctx.stub.createCompositeKey(this.name,[partialArgument]); console.log('================ created partial key .....'); console.log(partialArgument); console.log(key); let response = await this.ctx.stub.getStateByPartialCompositeKey(this.name, [key]); //.toString('utf8') console.log('================ response below ================'); console.log(response); let results = await this.getAllResults(response); return results; }// fin getAllStatesFromPartialCompositeKey Here is how I invoke it: /home/ubilab/fabric2/fabric-samples/test-network$ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --channelID mychannel --name informed_consent_9 --tls true --cafile $ORDERER_CA --peerAddresses localhost:7051 --tlsRootCertFiles $ORG1_CA -c '{"Args":["csacmpcc:getAllStates","P03"]}' Response: chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 payload:"[]" Chaincode container logs: chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 payload:"[]" ================ Result inside getAllStates method ================ [] Couchdb Stored states: { "id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "key": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "value": { "rev": "1-74db76a10ad8251ce2ba49ad58710ad8" }, "doc": { "_id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "_rev": "1-74db76a10ad8251ce2ba49ad58710ad8", "class": "org.csa.informedconsentform", "consentStatus": "1", "currentState": null, "key": "\"P03\":\"R68\"", "patientID": "P03", "reserachID": "R68", "sensors": "{numberOfSensors:1,sensors:[{sensorID:s01,name:SPO2,startDate:5/12/2020,endDate:5/12/2021}]}", "~version": "CgMBZQA=" } }

pedroampuc (Wed, 13 May 2020 19:03:50 GMT):
Hello everyone! First time here.... I'm using fabric 2.0 test-network to test some chaincode in nodejs implementations... I'm using fabric-samples/commercial-paper nodejs contract implementation design. I can getState and PutState just fine, but getStateByPartialCompositeKey always comes back empty.. I don't know what I'm doing wrong since I'm able to get a State using a full key... Here is my function that uses getStateByPartialCompositeKey: /** * @function getAllStatesFromPartialCompositeKey */ async getAllStatesFromPartialCompositeKey(partialArgument) { console.log('================ Called from beginning of getAllStatesFromPartialCompositeKey ================'); console.log('================ name => '+this.name); let key = this.ctx.stub.createCompositeKey(this.name,[partialArgument]); console.log('================ created partial key .....'); console.log(partialArgument); console.log(key); let response = await this.ctx.stub.getStateByPartialCompositeKey(this.name, [key]); //.toString('utf8') console.log('================ response below ================'); console.log(response); let results = await this.getAllResults(response); return results; }// fin getAllStatesFromPartialCompositeKey Here is how I invoke it: /home/ubilab/fabric2/fabric-samples/test-network$ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --channelID mychannel --name informed_consent_9 --tls true --cafile $ORDERER_CA --peerAddresses localhost:7051 --tlsRootCertFiles $ORG1_CA -c '{"Args":["csacmpcc:getAllStates","P03"]}' Response: chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 payload:"[]" Chaincode container logs: ================ Result inside getAllStates method ================ [] Couchdb Stored states: { "id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "key": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "value": { "rev": "1-74db76a10ad8251ce2ba49ad58710ad8" }, "doc": { "_id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "_rev": "1-74db76a10ad8251ce2ba49ad58710ad8", "class": "org.csa.informedconsentform", "consentStatus": "1", "currentState": null, "key": "\"P03\":\"R68\"", "patientID": "P03", "reserachID": "R68", "sensors": "{numberOfSensors:1,sensors:[{sensorID:s01,name:SPO2,startDate:5/12/2020,endDate:5/12/2021}]}", "~version": "CgMBZQA=" } }

pedroampuc (Wed, 13 May 2020 19:03:50 GMT):
Hello everyone! First time here.... I'm using fabric 2.0 test-network to test some chaincode in nodejs implementations... I'm using fabric-samples/commercial-paper nodejs contract implementation design. I can getState and PutState just fine, but getStateByPartialCompositeKey always comes back empty.. I don't know what I'm doing wrong since I'm able to get a State using a full key... Here is my function that uses getStateByPartialCompositeKey: /** * @function getAllStatesFromPartialCompositeKey */ async getAllStatesFromPartialCompositeKey(partialArgument) { console.log('================ Called from beginning of getAllStatesFromPartialCompositeKey ================'); console.log('================ name => '+this.name); let key = this.ctx.stub.createCompositeKey(this.name,[partialArgument]); console.log('================ created partial key .....'); console.log(partialArgument); console.log(key); let response = await this.ctx.stub.getStateByPartialCompositeKey(this.name, [key]); //.toString('utf8') console.log('================ response below ================'); console.log(response); let results = await this.getAllResults(response); return results; }// fin getAllStatesFromPartialCompositeKey Here is how I invoke it: /home/ubilab/fabric2/fabric-samples/test-network$ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --channelID mychannel --name informed_consent_9 --tls true --cafile $ORDERER_CA --peerAddresses localhost:7051 --tlsRootCertFiles $ORG1_CA -c '{"Args":["csacmpcc:getAllStates","P03"]}' Response: chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 payload:"[]" Chaincode container logs: ================ Called from beginning of getAllStatesFromPartialCompositeKey ================ ================ name => org.csa.informedconsentformstatelist ================ created partial key ..... P03 org.csa.informedconsentformstatelistP03 ================ Result inside getAllStates method ================ [] Couchdb Stored states: { "id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "key": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "value": { "rev": "1-74db76a10ad8251ce2ba49ad58710ad8" }, "doc": { "_id": "\u0000org.csa.informedconsentformstatelist\u0000\"P03\"\u0000\"R68\"\u0000", "_rev": "1-74db76a10ad8251ce2ba49ad58710ad8", "class": "org.csa.informedconsentform", "consentStatus": "1", "currentState": null, "key": "\"P03\":\"R68\"", "patientID": "P03", "reserachID": "R68", "sensors": "{numberOfSensors:1,sensors:[{sensorID:s01,name:SPO2,startDate:5/12/2020,endDate:5/12/2021}]}", "~version": "CgMBZQA=" } }

robmurgai (Wed, 13 May 2020 20:28:45 GMT):
hi @AbdullahJoyia could you post the complete output from your ./createChannel.sh please? Also, when you say, you are running ./creatChannel.sh do you mean you mean you are running ./network.sh createChannel or are you calling ./creatChannel.sh directly?

joncalvo (Wed, 13 May 2020 21:47:27 GMT):
Hello everyone! im modifying the byfn project and I was wondering if i should change the variables that appears in the docker-compose-cli file, this bcause they are set with some github.com paths.

joncalvo (Wed, 13 May 2020 21:47:27 GMT):
Hello everyone! im modifying the byfn project and I was wondering if i should change the variables that appears in the docker-compose-cli file, this because they are set with some github.com paths.

alejoacosta (Thu, 14 May 2020 01:18:11 GMT):
Hi Brett

alejoacosta (Thu, 14 May 2020 01:18:47 GMT):
I have gone over the entire process again, still with no success

alejoacosta (Thu, 14 May 2020 01:19:07 GMT):
I follow the same build instructions you gave me yesterday

alejoacosta (Thu, 14 May 2020 01:19:33 GMT):
I will leave the logs here. Hopefully you can take a look and provide further hints about the CA HSM integration

alejoacosta (Thu, 14 May 2020 01:20:14 GMT):
```bash-5.0# fabric-ca-server init -b titoadm:titopw 2020/05/14 01:17:53 [DEBUG] Home directory: /etc/hyperledger/fabric-ca-server 2020/05/14 01:17:53 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml 2020/05/14 01:17:53 [DEBUG] Set log level: 2020/05/14 01:17:53 [INFO] Server Version: 2.0.0-snapshot-7b99e7b 2020/05/14 01:17:53 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2020/05/14 01:17:53 [DEBUG] Making server filenames absolute 2020/05/14 01:17:53 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca-server 2020/05/14 01:17:53 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca-server and config {Version:2.0.0-snapshot-7b99e7b Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name:ca-org2 Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc000488450 CSR:{CN:fabric-ca-server Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[d083179ad597 localhost] KeyRequest:0xc0003e7460 CA:0xc0003e74e0 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1] }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }} } CSP:0xc0004902e0 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2020/05/14 01:17:53 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca-server 2020/05/14 01:17:53 [DEBUG] Checking configuration file version '2.0.0-snapshot-7b99e7b' against server version: '2.0.0-snapshot-7b99e7b' 2020/05/14 01:17:53 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts: Pkcs11Opts:0xc000460fc0} 2020/05/14 01:17:53 [DEBUG] Initializing BCCSP with PKCS11 options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false Library:/etc/hyperledger/hsm/libsofthsm2.so Label:fabric Pin:71811222 SoftVerify:false Immutable:false} 2020/05/14 01:17:53 [DEBUG] Closing server DBs 2020/05/14 01:17:53 [FATAL] Initialization failure: Failed to initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PKCS11 [Failed initializing PKCS11 library /etc/hyperledger/hsm/libsofthsm2.so fabric: Instantiate failed [/etc/hyperledger/hsm/libsofthsm2.so]] Could not find default `PKCS11` BCCSP ```

alejoacosta (Thu, 14 May 2020 01:21:08 GMT):
This is my config file:

alejoacosta (Thu, 14 May 2020 01:21:16 GMT):
```############################################################################# # BCCSP (BlockChain Crypto Service Provider) section is used to select which # crypto library implementation to use. Change "default:" value to match the # provider (SW or PKCS11). ############################################################################# bccsp: default: PKCS11 # sw: # hash: SHA2 # security: 256 # filekeystore: # # The directory used for the software file-based keystore # keystore: msp/keystore # PKCS11 provider definitions, for use with an HSM pkcs11: Library: /etc/hyperledger/hsm/libsofthsm2.so Pin: 71811222 Label: fabric hash: SHA2 security: 256 filekeystore: keystore: ```

alejoacosta (Thu, 14 May 2020 01:21:50 GMT):
and environment:

alejoacosta (Thu, 14 May 2020 01:21:56 GMT):
```FABRIC_CA_SERVER_TLS_ENABLED=true HOSTNAME=d083179ad597 FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem FABRIC_CA_SERVER_DEBUG=true FABRIC_CA_SERVER_BCCSP_PKCS11_LIBRARY=/etc/hyperledger/hsm/libsofthsm2.so PWD=/etc/hyperledger/fabric-ca-server SOFTHSM2_CONF=/etc/hyperledger/hsm/softhsm2.conf HOME=/root FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server FABRIC_CA_SERVER_BCCSP_DEFAULT=PKCS11 FABRIC_CA_SERVER_BCCSP_PKCS11_LABEL=fabric FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/1a71696268b8d271c558f26da0407da633e80bc19f151ba898eb1f036b91c114_sk FABRIC_CA_SERVER_CA_NAME=ca-org2 TERM=xterm SHLVL=2 FABRIC_CA_SERVER_BCCSP_PKCS11_PIN=71811222 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin OLDPWD=/etc/hyperledger _=/usr/bin/env ```

alejoacosta (Thu, 14 May 2020 01:22:06 GMT):
thanks in advance!

alejoacosta (Thu, 14 May 2020 01:22:30 GMT):
You can also drop me an email: alejoacos@gmail.com

achrinza (Thu, 14 May 2020 03:16:38 GMT):
Has joined the channel.

Ryan.R 1 (Thu, 14 May 2020 04:00:08 GMT):
Has joined the channel.

Ryan.R 1 (Thu, 14 May 2020 04:00:11 GMT):
2020-05-14 11:54:29.595 CST [main] InitCmd -> ERRO 001 Fatal error when initializing core config : FABRIC_CFG_PATH /home/jun/workspace/golang/src/github.com/hyperledger/fabric-samples/test-network/../config/ does not exist !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

Ryan.R 1 (Thu, 14 May 2020 04:00:24 GMT):
hello, please help me

Ryan.R 1 (Thu, 14 May 2020 04:00:58 GMT):
fabric version is master, and i can

Ryan.R 1 (Thu, 14 May 2020 04:01:33 GMT):
and i can't find config exits with project

Ryan.R 1 (Thu, 14 May 2020 04:07:02 GMT):
hello,the problem is occus to me

Ryan.R 1 (Thu, 14 May 2020 04:07:33 GMT):
it output is 2020-05-14 12:04:07.044 CST [main] InitCmd -> ERRO 001 Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH is set to a path which contains core.yaml !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed

Ryan.R 1 (Thu, 14 May 2020 04:14:03 GMT):
I touch the config/core.yml and it can createChannel now. What is the core.yml?The document don't say anything about core.yml

Ryan.R 1 (Thu, 14 May 2020 04:31:02 GMT):
@robmurgai

chintanr11 (Thu, 14 May 2020 09:17:21 GMT):
Hi, I would like to know how to find out if the newly added orderer nodes have synced the blocks in a dynamic network ..I have explained my situation here: https://lists.hyperledger.org/g/fabric/message/8304 if anyone could help!

sahilsachdeva (Thu, 14 May 2020 09:45:54 GMT):
Hello

sahilsachdeva (Thu, 14 May 2020 09:46:49 GMT):
Does any one know how to install 1.4 chain code as a Kubernetes pod and connect it to the peer?

LabibFarag (Thu, 14 May 2020 10:23:17 GMT):
what is the max number of indexes can be used in couchDB without affecting performance ... according to https://hyperledger-fabric.readthedocs.io/en/release-2.0/couchdb_tutorial.html#cdb-best `Adding too many indexes, or using an excessive number of fields in an index, will degrade the performance `

musicmodes (Thu, 14 May 2020 11:52:39 GMT):
where i can find the ledger of the peer in channel

SachinGowda (Thu, 14 May 2020 12:05:09 GMT):
Has joined the channel.

SachinGowda (Thu, 14 May 2020 12:05:10 GMT):
Hi, tried to run run the peer from the peer binary natively and when tried to create the channel got the following error - `2020-05-14 11:29:40.187 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'cpuchannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1` don't understand how to fix this. Have dont know what other changes to make to the core.yaml file `peer version peer: Version: 2.1.0 Commit SHA: 1bdf97537 Go version: go1.14.1 OS/Arch: linux/amd64`

SachinGowda (Thu, 14 May 2020 12:05:10 GMT):
Hi, tried to run run the peer from the peer binary natively and when tried to create the channel got the following error - `2020-05-14 11:29:40.187 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'cpuchannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1` don't understand how to fix this. Have dont know what other changes to make to the core.yaml file `peer version peer: Version: 2.1.0 Commit SHA: 1bdf97537 Go version: go1.14.1 OS/Arch: linux/amd64` but can join a channel

SachinGowda (Thu, 14 May 2020 12:30:55 GMT):
it can join a channel as of now but cannot create one

Amanullah68 (Thu, 14 May 2020 18:49:37 GMT):
Hi guys, Is there any simple way to test node chaincodes instead of writing test cases everytime??

hazbiy97 (Thu, 14 May 2020 20:29:30 GMT):
Hello everyone, i’m in the middle of research about blockchain, can i ask you a question about why kafka is deprecated in the first place? In the documentation it said that raft is somewhat simpler to be implemented, but is there any technical reasons for this?

robmurgai (Thu, 14 May 2020 21:51:55 GMT):
@Ryan.R 1 can you try `./network.sh createChannel` and post the output here

Rachit-gaur (Thu, 14 May 2020 22:10:42 GMT):
Raft has better solution for crash fault tolerant (CFT) hence ensures high availability, I moved all my prod networks from kafka to raft

Rachit-gaur (Thu, 14 May 2020 22:28:36 GMT):
Can the instantiate chaincode fcn be called from some user other than admin?

AbdullahJoyia (Thu, 14 May 2020 22:30:47 GMT):
@robmurgai i am building the network, in which firstly i have created the crypto material, then genesis block etc... But my issue is when i give the command of channel creation, it create the channel but also it give this error Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /home...no such file or directory

robmurgai (Fri, 15 May 2020 03:27:26 GMT):
@AbdullahJoyia it feels like you are missing steps in your creation. Are you using ``./network.sh createChannel `` to create the channel, because I think if you run createChannel.sh directly, you are going to miss out on things like creating environment variables like `FABRIC_CFG_PATH`, generating MSPs etc. You may wanna comb through network.sh and see all that createChannel mode does.

robmurgai (Fri, 15 May 2020 03:27:26 GMT):
@AbdullahJoyia it feels like you are missing steps in your creation. Are you using `./network.sh createChannel ` to create the channel, because I think if you run `createChannel.sh` directly, you are going to miss out on things like creating environment variables like `FABRIC_CFG_PATH`, generating MSPs etc. You may wanna comb through `network.sh` and see all that createChannel mode does.

nkalichynskyi (Fri, 15 May 2020 05:42:56 GMT):
Hi everyone. Is there any information on chaincode server functionality for node.js chaincodes? I've found jira ticket https://jira.hyperledger.org/browse/FABCJ-215 but there is no activity there. Does anyone know if this is being implemented or at least planned?

BrettLogan (Fri, 15 May 2020 07:16:13 GMT):
The team at State Street who implemented the chaincode servers have left State Street to form their own company, several weeks back their company posted a news article that they were leaving the blockchain space all together to focus on Machine Learning. The two people who implemented it were/are fabric maintainers, but they have essentially disappeared from the face of the earth since January. I don't think we've discussed what we want to do with the chaincode server, as it was never finished being implemented in Fabric itself. We've been trying to reach out to the authors since January, but haven't been able to contact them since.

nkalichynskyi (Fri, 15 May 2020 07:20:42 GMT):
what do you mean " it was never finished being implemented in Fabric itself"? I saw that fabric 2.0 supports this server mode for golang chaincodes.

BrettLogan (Fri, 15 May 2020 07:24:36 GMT):
While you can make use of it (its there) the integration tests are missing (so we can't maintain it as there is no way to verify code changes don't break the functionality), as well as the SDK pieces missing. And since it makes use of the external builder, any change we made to the external builder since 2.0 has potentially changed the functionality of the chaincode server

BrettLogan (Fri, 15 May 2020 07:26:33 GMT):
Generally we wouldn't put unfinished work in a release, but we had assurances from two maintainers that they would finish the work after 2.0, as that's no longer the case, I'm not sure what we plan to do with it before 2.2 (finish the work ourselves, or otherwise)

nkalichynskyi (Fri, 15 May 2020 07:30:07 GMT):
ok, thanks

BrettLogan (Fri, 15 May 2020 07:31:22 GMT):
The overhead of managing kafka is nearly impossible (its something admins had been telling us for years). It also reduces the number of networking layers and thus increases throughput. From a cloud native standpoint, you can't run kafka in a multi-zone cluster as it can't support cross-zone storage volumes. Raft is pretty much completely hands off once its running, so from an admin standpoint, its maintenance is pretty non-existen

BrettLogan (Fri, 15 May 2020 07:31:22 GMT):
The overhead of managing kafka is nearly impossible (its something admins had been telling us for years). It also greatly reduces the number of network layers and this increases throughput. From a cloud native standpoint, you can't run kafka in a multi-zone cluster as it can't support cross-zone storage volumes. Raft is pretty much completely hands off once its running, so from and admin standpoint, its maintenance is pretty non-existent

dineshdsv3 (Fri, 15 May 2020 09:31:10 GMT):
Has joined the channel.

dineshdsv3 (Fri, 15 May 2020 09:31:11 GMT):
HI All, I've struck with the Error " Error: There was a problem with the eventhub ::Error: 14 UNAVAILABLE: Connect Failed" in hyperledger fabric v1.1. Please help me to solve this error

musicmodes (Fri, 15 May 2020 09:42:37 GMT):
where i can find the ledger of the peer in channel

musicmodes (Fri, 15 May 2020 09:42:48 GMT):
somebody help

AbdullahJoyia (Fri, 15 May 2020 11:04:29 GMT):
Yes, i am running ./createChannel.sh command. Is it work with network.sh ?

chintanr11 (Fri, 15 May 2020 13:39:43 GMT):
Hi, in this implementation in Node SDK here: https://hyperledger.github.io/fabric-sdk-node/release-1.4/Channel.html#removePeer, is the function responsible for removing a peer node from the channel (if I am not wrong)? Can I achieve the same using CLI container? Is there command to do so without the SDK?

hello2mao (Fri, 15 May 2020 14:29:28 GMT):
Has joined the channel.

srikumarcs (Fri, 15 May 2020 14:43:50 GMT):
Has joined the channel.

srikumarcs (Fri, 15 May 2020 14:43:51 GMT):
Hi All.. Is there a way to test the wiring of chain code written in java, prior to installing it on the network? I would like to employ some TDD practices when writing chaincode. Any pointers would be hugely appreciated.

MattB97 (Fri, 15 May 2020 15:30:39 GMT):
Has joined the channel.

SuneetBendre (Fri, 15 May 2020 17:27:31 GMT):
Hi, Can i read the *Block* from orderer node ? chain channel and orderer system channel ?

robmurgai (Fri, 15 May 2020 18:58:36 GMT):
Yes, it should. Run `>./network.sh createChannel` . Take a look at the Test Network Tutorial for details: https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html#creating-a-channel

robmurgai (Fri, 15 May 2020 18:58:36 GMT):
Yes, it should. Run `$./network.sh createChannel` . Take a look at the Test Network Tutorial for details: https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html#creating-a-channel

Rachit-gaur (Fri, 15 May 2020 21:16:55 GMT):
Hi, Technically speaking. can a fabric token be launched? I saw Metacoin which is based on fabric. Do crypto exchanges allow transaction apis instead of running a node/peer?

qwertlimframe (Sat, 16 May 2020 11:45:56 GMT):
How can I check which hash function is being used to create block hash in a running network.

dhruvaj-patil (Sat, 16 May 2020 15:07:16 GMT):
Has joined the channel.

dhruvaj-patil (Sat, 16 May 2020 15:07:17 GMT):
2020-05-16 20:28:37.736 IST [common.tools.configtxgen] main -> FATA 004 Error on outputBlock: could not create bootstrapper: could not create channel group: error adding policies to channel group: no policies defined

dhruvaj-patil (Sat, 16 May 2020 15:07:52 GMT):
Application: &ApplicationDefaults # Organizations is the list of orgs which are defined as participants on # the application side of the network Organizations: # Policies defines the set of policies at this level of the config tree # For Application policies, their canonical path is # /Channel/Application/ Policies: Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" LifecycleEndorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement" Endorsement: Type: ImplicitMeta Rule: "MAJORITY Endorsement"

dhruvaj-patil (Sat, 16 May 2020 15:08:01 GMT):
tried this but doesnt seem to work

dhruvaj-patil (Sat, 16 May 2020 15:08:24 GMT):
any idea where i might be going wrong ?

Rachit-gaur (Sat, 16 May 2020 16:09:28 GMT):
Hi, A general question. Can anyone help me understand this? Suppose the fabric blockchain servers are deployed on a network, can I remotely connect to it with the network config on my end? with the IPs

Rachit-gaur (Sat, 16 May 2020 16:10:17 GMT):
I mean any node app with network-config available can connect to it, right?

chintanr11 (Sun, 17 May 2020 07:04:24 GMT):
Found an issue when I try to join peer to the channel given that no orderer present in the genesis block .. is serving the channel now. Have described my issue here: https://stackoverflow.com/questions/61848037/adding-a-peer-node-when-no-genesis-block-orderer-exist-in-the-channel ... also create a JIRA for it: https://jira.hyperledger.org/browse/FAB-17909

chintanr11 (Sun, 17 May 2020 07:04:24 GMT):
Found an issue when I try to join peer to the channel given that no orderer present in the genesis block .. is serving the channel now. Have described my issue here: https://stackoverflow.com/questions/61848037/adding-a-peer-node-when-no-genesis-block-orderer-exist-in-the-channel ... also created a JIRA for it: https://jira.hyperledger.org/browse/FAB-17909

MumtahinHabib (Sun, 17 May 2020 18:11:07 GMT):
I was trying the hyperledger fabric official documentation. there I used the command npm install and found following error. can someone pls help me? thanks in advance - ~/fabric-samples/fabcar/javascript$ npm install > grpc@1.24.2 install /home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-linux-x64-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.24.2 and node@14.2.0 (node-v83 ABI, glibc) (falling back to source compile with node-gyp) gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:175:21) gyp ERR! System Linux 5.3.0-51-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd /home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc gyp ERR! node -v v14.2.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) node-pre-gyp ERR! System Linux 5.3.0-51-generic node-pre-gyp ERR! command "/usr/local/bin/node" "/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc node-pre-gyp ERR! node -v v14.2.0 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mumtahinhabib/fabric-samples/fabcar/javascript/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN fabcar@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.24.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/mumtahinhabib/.npm/_logs/2020-05-17T18_07_37_791Z-debug.log

conanoc (Mon, 18 May 2020 01:50:17 GMT):
Yes. You can. You need to set ssl-target-name-override grpcOption if you are using TLS. See https://hyperledger-fabric.readthedocs.io/en/latest/developapps/connectionprofile.html?highlight=connection-profile#sample

BrettLogan (Mon, 18 May 2020 02:46:45 GMT):
You are using Node 14, we don't currently support Node 14. Move back to Node 12, you are compiling a version of gRPC we don't support

ongchinkai (Mon, 18 May 2020 05:05:39 GMT):
I'm trying to run a block listener, but after it runs my peer eventing service shuts down soon after. What could be the causes for this?

ongchinkai (Mon, 18 May 2020 05:10:45 GMT):
I have a log file with some debug output, but I don't see any errors inside, so I'm not sure what to look out for.

ongchinkai (Mon, 18 May 2020 05:11:24 GMT):

output.log

chintanr11 (Mon, 18 May 2020 06:55:42 GMT):
Hi Team, facing this issue related adding a new peer node to the channel .. I feel its a bug rather than an issue .. if anyone throw more light on it: https://jira.hyperledger.org/browse/FAB-17909

chintanr11 (Mon, 18 May 2020 06:55:42 GMT):
Hi Team, facing this issue related adding a new peer node to the channel .. I feel its a bug rather than an issue .. if anyone can throw more light on it: https://jira.hyperledger.org/browse/FAB-17909

ashaikh14 (Mon, 18 May 2020 07:01:43 GMT):
Has joined the channel.

ashaikh14 (Mon, 18 May 2020 07:07:08 GMT):
Hi I am new to hyperledger. I want to deploy an app on Hyperledger. For that I also need chaincode so that it will run according to the button clicked in the app. How do I create chaincode from scratch ? Mostly I will be developing chaincode in Nodejs

ascatox (Mon, 18 May 2020 07:22:56 GMT):
Hi All, I've a question about the security of HLF, why we need to have different certificates in order to access by a client to HLF. One certificate to instance a TLS connection and another certificate for the identity. We need two certificates or it may be necessary only one certificate and if this's not possible, why this?

ongchinkai (Mon, 18 May 2020 08:13:41 GMT):
I see the following warning in my output log: 2020-05-18 16:05:11 WARN PeerEventServiceClient:339 - PeerEventServiceClient{id: 6, channel: isprintchannel, peerName: peer1.org1.isprint.com:7051, url: grpcs://peer1.org1.isprint.com:7051} Channel isprintchannel connect time exceeded for peer eventing service peer1.org1.isprint.com:7051, timed out at 5000 ms. Is this an indicator of anything that is causing my block event listener to shutdown prematurely?

SachinGowda (Mon, 18 May 2020 08:20:00 GMT):
when use dev-mode `i get 500 error LSCC is read only ` when i try to instantiate i get this error ~cpu-use~

SachinGowda (Mon, 18 May 2020 08:20:00 GMT):
when using dev-mode i get the following error when i try and instantiate ' 500 error LSCC is read only ` ~cpu-use~

SachinGowda (Mon, 18 May 2020 08:20:00 GMT):
when using dev-mode i get the following error when i try and instantiate `500 error LSCC is read only ` ~cpu-use~

SachinGowda (Mon, 18 May 2020 08:20:00 GMT):
hi guys, when using dev-mode i get the following error when i try and instantiate `500 error LSCC is read only ` ~cpu-use~, would really appreciate your assistance

SachinGowda (Mon, 18 May 2020 10:04:30 GMT):
https://github.com/hyperledger/fabric-chaincode-node/blob/master/TUTORIAL.md , look at the documentation as well

Utsav_Solanki (Mon, 18 May 2020 10:32:05 GMT):
getting error as -- channel does not exist

Utsav_Solanki (Mon, 18 May 2020 10:32:05 GMT):
getting error as

Utsav_Solanki (Mon, 18 May 2020 10:32:05 GMT):
While instantiate PEER CLI getting error as

Utsav_Solanki (Mon, 18 May 2020 10:32:05 GMT):
While instantiate chaincode in PEER CLI getting error as

Utsav_Solanki (Mon, 18 May 2020 10:32:39 GMT):
docker exec -it cli peer chaincode instantiate -o orderer.example.com:7050 -C channelall -n mycc github.com/chaincode -v v2 -c '{"Args": ["a", "100"]}' -P "OR('Org1MSP.member', 'Org2MSP.member','Org3MSP.member')" 2020-05-18 10:24:10.816 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 10:24:10.822 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 10:24:10.828 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2020-05-18 10:24:10.828 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: got unexpected status: NOT_FOUND -- channel does not exist

Utsav_Solanki (Mon, 18 May 2020 10:33:20 GMT):
But mycc channel is there in HLF

Utsav_Solanki (Mon, 18 May 2020 10:33:20 GMT):
But channelall channel is there in HLF

Utsav_Solanki (Mon, 18 May 2020 10:33:20 GMT):
But channelall channel is there in my HLF

Utsav_Solanki (Mon, 18 May 2020 10:33:20 GMT):
But channelall channel is there in my HLF newtwork

Utsav_Solanki (Mon, 18 May 2020 10:37:13 GMT):
docker exec cli peer channel list 2020-05-18 08:49:36.144 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 08:49:36.149 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 08:49:36.151 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Channels peers has joined: channelall

Utsav_Solanki (Mon, 18 May 2020 10:37:13 GMT):
docker exec cli peer channel list \\\\\\\\\\ 2020-05-18 08:49:36.144 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 08:49:36.149 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable 2020-05-18 08:49:36.151 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized Channels peers has joined: channelall

HarishKumarG (Mon, 18 May 2020 10:44:52 GMT):
Has joined the channel.

adeebna (Mon, 18 May 2020 12:45:00 GMT):
Has joined the channel.

adeebna (Mon, 18 May 2020 12:45:01 GMT):
How to run orderer or peer nodes in physically separate systems for hyperledger fabric network for eg "fabcar"?

SachinGowda (Mon, 18 May 2020 13:22:18 GMT):
does working on dev mode in fabric v2 require the application capabilities be set to false and have the capabilities be V1_4_* set to true in the configtx file to work?

knagware9 (Mon, 18 May 2020 13:49:56 GMT):
Hi , some one faced this issue earlier, 2020-05-18T13:41:54.553Z - error: [Orderer.js]: sendBroadcast - on error: "Error: 2 UNKNOWN: Stream removed\n at Object.exports.createStatusError (/root/Santosh_server/node_modules/grpc/src/common.js:91:15)\n

knagware9 (Mon, 18 May 2020 13:51:00 GMT):

fabric-stream-error.PNG

knagware9 (Mon, 18 May 2020 13:51:32 GMT):
I am getting this issue whenevr I try to process multiple transaction

samarth9201 (Tue, 19 May 2020 04:35:08 GMT):
Has joined the channel.

chintanr11 (Tue, 19 May 2020 06:01:33 GMT):
Hi, I facing the following issue that the newly added peer keeps getting online/offline messages along with old non-anchor peers ..I have mentioned my configuration and logs: https://stackoverflow.com/questions/61883603/newly-added-peer-getting-online-offline-messages-along-with-old-non-anchor-peers ... if anyone could please look up

chintanr11 (Tue, 19 May 2020 06:01:33 GMT):
Hi, I am facing the following issue that the newly added peer keeps getting online/offline messages along with old non-anchor peers ..I have mentioned my configuration and logs: https://stackoverflow.com/questions/61883603/newly-added-peer-getting-online-offline-messages-along-with-old-non-anchor-peers ... if anyone could please look up

musicmodes (Tue, 19 May 2020 07:28:52 GMT):
which api to use to connect to cli in hyperledger 1.4.4

Amanullah68 (Tue, 19 May 2020 10:17:14 GMT):
Hi guys, I need your help. thanks advance

Amanullah68 (Tue, 19 May 2020 10:17:45 GMT):
I'm enrolling new users but not able to assign roles and enrollement secret key

Amanullah68 (Tue, 19 May 2020 10:18:19 GMT):
I'm defining them but when I check the user profile it shows me null

Amanullah68 (Tue, 19 May 2020 10:18:21 GMT):
"roles":null,"affiliation":"","enrollmentSecret":""

Amanullah68 (Tue, 19 May 2020 10:18:49 GMT):
That's also cause an issue in endoresment policy.

Amanullah68 (Tue, 19 May 2020 10:19:07 GMT):
Kindly help me in th matter. regards & thanks

SachinGowda (Tue, 19 May 2020 11:34:51 GMT):
hey can someone help me figure out changing the read restriction of the LSCC in fabric version 2 for the dev mode, if its a configuration thing or something else i have tried running the peer in dev mode and attaching a chaincode container. But im not sure what problem im facing

adeebna (Tue, 19 May 2020 12:50:57 GMT):
I am getting an error "client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version " . after running network.sh in test-network

ascatox (Tue, 19 May 2020 14:10:00 GMT):
Hi All, I'm transfering a 1Mb file in my HLF blockchain, I receive only this error `Caused by: io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 5337112`.

ascatox (Tue, 19 May 2020 14:10:37 GMT):
Someone can tell me, what's the maximum size of data transmitted to HLF.

ascatox (Tue, 19 May 2020 14:10:37 GMT):
Someone can tell me, what's the maximum size of data transmitted to HLF?

ascatox (Tue, 19 May 2020 14:10:37 GMT):
Someone can help me, what's the maximum size of data transmitted to HLF?

ascatox (Tue, 19 May 2020 14:10:37 GMT):
Someone can help me, what's the maximum size of data trasmittable to HLF?

SwapnilSinha (Tue, 19 May 2020 15:35:05 GMT):
which standard tool can we use for analyzing the performance of Hperledger Fabric version 2.0??

icarrascol (Tue, 19 May 2020 17:04:30 GMT):
hello everyone is it possible to add two organizacions in an update transaction envelope?

sureshappana (Tue, 19 May 2020 17:06:22 GMT):
Hi, I am trying to setup HLF in K8s, when I run instantiation command, its starting the chaincode container successfully. But the instantiation step is exiting with EOF. When I perform any query execution I am getting the following error: ``` Error: endorsement failure during query. response: status:500 message:"make sure the chaincode test_cc has been successfully instantiated and try again: chaincode test_cc not found" ```

sureshappana (Tue, 19 May 2020 17:06:33 GMT):

query_logs.txt

sureshappana (Tue, 19 May 2020 17:06:36 GMT):

instantiation_logs.txt

selvaraman (Tue, 19 May 2020 18:03:29 GMT):
Is there any DAG chain implementation in hyperledger?

selvaraman (Tue, 19 May 2020 18:04:18 GMT):
Generally How to implement DAG chain applications

MumtahinHabib (Wed, 20 May 2020 05:57:34 GMT):
I was following the documentation of commercial-paper tutorial . In the magneto-corp end, I wanted to install my chaincode but now it failed to run go files of the contract and showing following error:

MumtahinHabib (Wed, 20 May 2020 05:57:34 GMT):
I was following the documentation of commercial-paper tutorial . In the magneto-corp end, I wanted to install my chaincode but now it failed to run go files of the contract and showing following error: /opt/gopath/src/github.com/hyperledger/fabric/peer # peer chaincode install -p chaincodedev/chaincode/contract-tutorial -n mycc -v 0 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode deployment spec for mycc: 'go list' failed: exec: "go": executable file not found in $PATH /opt/gopath/src/github.com/hyperledger/fabric/peer # go version sh: go: not found

MumtahinHabib (Wed, 20 May 2020 05:57:34 GMT):
I was following the documentation of commercial-paper tutorial . In the magneto-corp end, I wanted to install my chaincode but now it failed to run go files of the contract and showing following error: /opt/gopath/src/github.com/hyperledger/fabric/peer # peer chaincode install -p chaincodedev/chaincode/contract-tutorial -n mycc -v 0 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode deployment spec for mycc: 'go list' failed: exec: "go": executable file not found in $PATH /opt/gopath/src/github.com/hyperledger/fabric/peer # go version sh: go: not found but my go installation and path variable settings are done and it works finely from any other command line window except docker command line

MumtahinHabib (Wed, 20 May 2020 05:57:34 GMT):
I was following the documentation of commercial-paper tutorial . In the magneto-corp end, I wanted to install my chaincode but now it failed to run go files of the contract and showing following error: /opt/gopath/src/github.com/hyperledger/fabric/peer # peer chaincode install -p chaincodedev/chaincode/contract-tutorial -n mycc -v 0 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2020-05-20 05:45:55.560 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: error getting chaincode deployment spec for mycc: 'go list' failed: exec: "go": executable file not found in $PATH /opt/gopath/src/github.com/hyperledger/fabric/peer # go version sh: go: not found but my go installation and path variable settings are done and it works finely from any other command line window except docker command line. I tried to export the path from docker but it is not working . can anyone pls help me?

BrettLogan (Wed, 20 May 2020 06:27:56 GMT):
You need to have go installed wherever you are performing the call, this is performed on the local machine. We provide the image `hyperledger/fabric-tools:` to perform these operations

MumtahinHabib (Wed, 20 May 2020 07:07:22 GMT):
@BrettLogan thanks a lot for your help

MumtahinHabib (Wed, 20 May 2020 07:10:44 GMT):
I again got stuck while running the chaincode installation command: opt/gopath/src/github.com/hyperledger/fabric/peer # peer lifecycle chaincode package cp.tar.gz --lang node --path ./contract --la bel cp_0 2020-05-20 07:05:16.357 UTC [chaincode.platform.util] func1 -> ERRO 001 Visit contract failed: lstat contract: no such file or directory 2020-05-20 07:05:16.358 UTC [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat contract: no such file or directory 2020-05-20 07:05:16.359 UTC [chaincode.platform.node] GetDeploymentPayload -> ERRO 003 Error writing folder to tar package lstat contract: no such file or directory Error: error getting chaincode bytes: Error writing Chaincode package contents: lstat contract: no such file or directory

MumtahinHabib (Wed, 20 May 2020 07:10:44 GMT):
I again got stuck while installing the chaincode in commercial-paper tutorial: opt/gopath/src/github.com/hyperledger/fabric/peer # peer lifecycle chaincode package cp.tar.gz --lang node --path ./contract --la bel cp_0 2020-05-20 07:05:16.357 UTC [chaincode.platform.util] func1 -> ERRO 001 Visit contract failed: lstat contract: no such file or directory 2020-05-20 07:05:16.358 UTC [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat contract: no such file or directory 2020-05-20 07:05:16.359 UTC [chaincode.platform.node] GetDeploymentPayload -> ERRO 003 Error writing folder to tar package lstat contract: no such file or directory Error: error getting chaincode bytes: Error writing Chaincode package contents: lstat contract: no such file or directory

srikumarcs (Wed, 20 May 2020 10:37:41 GMT):
HI. I get an error when submitting a transaction from both the endorsing peers. It seems that the Java SDK is sumitting the transaction twice & the second one is getting rejected. Can anyone help me with this? `peer0.org2.example.com|2020-05-20 10:11:14.451 UTC [endorser] callChaincode -> INFO 0ad finished chaincode: amlchaincode duration: 0ms channel=mychannel txID=256e82e9 peer0.org2.example.com|2020-05-20 10:11:14.454 UTC [endorser] SimulateProposal -> ERRO 0ae failed to invoke chaincode amlchaincode, error: txid: 256e82e9d87c032defa087f7671e1ed59ba4818241cdf1548f1d8d5b2677e1b6(mychannel) exists peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*TransactionContexts).Create peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/transaction_contexts.go:45 peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1197 peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:272 peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:202 peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:155 peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126 peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode`

srikumarcs (Wed, 20 May 2020 10:38:51 GMT):
I am using fabric-gateway-java:2.1.0

c0deh0use (Wed, 20 May 2020 11:10:41 GMT):
Has joined the channel.

c0deh0use (Wed, 20 May 2020 11:10:42 GMT):
how is the actual version of the javaenv being choosen and taken ? We have already the javaenv version 2.1.1, but the fabric-peer is still 2.1.0. How can I force the chaincode to be deployed on the latest javaenv version ?

ooojerryooo (Wed, 20 May 2020 12:57:37 GMT):
How to remove the organization from the channel correctly? Execute with the following command, and it has succeeded. But the deleted organizational peer has been sending requests. How to solve it? ``` peer channel fetch config mychannel_config_block.pb -o orderer.yonyou.com:7050 -c mychannel --tls --cafile ${ORDERER_CA} configtxlator proto_decode --input mychannel_config_block.pb --type common.Block | jq .data.data[0].payload.data.config > mychannelconfig.json jq 'del(.channel_group.groups.Application.groups.'org2MSP')' mychannelconfig.json > modified_config.json configtxlator proto_encode --input mychannelconfig.json --type common.Config > original_config.pb configtxlator proto_encode --input modified_config.json --type common.Config > modified_config.pb configtxlator compute_update --channel_id mychannel --original original_config.pb --updated modified_config.pb > config_update.pb configtxlator proto_decode --input config_update.pb --type common.ConfigUpdate > config_update.json echo '{"payload":{"header":{"channel_header":{"channel_id":"'mychannel'", "type":2}},"data":{"config_update":'$(cat config_update.json)'}}}' | jq . > config_update_in_envelope.json configtxlator proto_encode --input config_update_in_envelope.json --type common.Envelope > org2_update_in_envelope.pb peer channel signconfigtx -f org2_update_in_envelope.pb ``` The orderer service keeps refreshing the log under the column. ``` 2020-05-20 20:39:30.655 CST [cauthdsl] deduplicate -> ERRO 0c4 Principal deserialization failure (MSP org2 is unknown) for identity 0 2020-05-20 20:39:30.655 CST [cauthdsl] deduplicate -> ERRO 0c5 Principal deserialization failure (MSP org2 is unknown) for identity 0 2020-05-20 20:39:30.655 CST [common.deliver] deliverBlocks -> WARN 0c6 [channel: yychannel] Client authorization revoked for deliver request from 172.20.48.217:33642: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied 2020-05-20 20:39:30.655 CST [comm.grpc.server] 1 -> INFO 0c7 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.20.48.217:33642 grpc.peer_subject="CN=peer0.org2.yonyou.com,OU=yonyou,L=Hai Dian,ST=Beijing,C=CN" grpc.code=OK grpc.call_duration=1h2m9.351241148s ``` The log for org1 indicates that the two peers were successfully removed.The following ``` 2020-05-20 20:47:50.845 CST [gossip.discovery] func4 -> INFO 989 Removing member: Endpoint: peer0.org2.yonyou.com:7051, InternalEndpoint: , PKIID: 9d096808f618854c6cb7d4a4ced2101280230ec4bcebb6e954c5581a3fd67b76 2020-05-20 20:47:50.845 CST [gossip.discovery] func4 -> INFO 98a Removing member: Endpoint: peer1.org2.yonyou.com:7151, InternalEndpoint: , PKIID: da8b3dc93f46e995fc0d08cff728d1946ff461af4abfe9e9d46a133e3682dbd0 ``` Then the peer of org1 keeps refreshing the following logs ``` 2020-05-20 20:48:05.958 CST [comm.grpc.server] 1 -> INFO 98d unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2020-05-20T20:48:07.958+08:00 grpc.peer_address=172.20.48.217:49008 grpc.code=OK grpc.call_duration=83.012µs 2020-05-20 20:48:05.964 CST [comm.grpc.server] 1 -> INFO 98e unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2020-05-20T20:48:07.963+08:00 grpc.peer_address=172.20.48.217:49010 grpc.code=OK grpc.call_duration=50.356µs 2020-05-20 20:48:05.964 CST [gossip.comm] authenticateRemotePeer -> WARN 98f 172.20.48.217:49010 didn't send TLS certificate 2020-05-20 20:48:05.964 CST [gossip.comm] GossipStream -> ERRO 990 Authentication failed: No TLS certificate 2020-05-20 20:48:05.964 CST [comm.grpc.server] 1 -> INFO 991 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=172.20.48.217:49010 error="No TLS certificate" grpc.code=Unknown grpc.call_duration=183.638µs ```

ooojerryooo (Wed, 20 May 2020 13:05:20 GMT):
The Peer of the deleted org2 is also continuously refreshing the log. ``` 2020-05-20 21:04:36.450 CST [deliveryClient] StartDeliverForChannel -> INFO 2a7 This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel yychannel 2020-05-20 21:04:36.455 CST [deliveryClient] RequestBlocks -> INFO 2a8 Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:36.457 CST [blocksProvider] DeliverBlocks -> ERRO 2a9 [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:36.564 CST [deliveryClient] RequestBlocks -> INFO 2aa Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:36.566 CST [blocksProvider] DeliverBlocks -> ERRO 2ab [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:36.772 CST [deliveryClient] RequestBlocks -> INFO 2ac Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:36.774 CST [blocksProvider] DeliverBlocks -> ERRO 2ad [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:37.179 CST [deliveryClient] RequestBlocks -> INFO 2ae Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:37.181 CST [blocksProvider] DeliverBlocks -> ERRO 2af [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:37.986 CST [deliveryClient] RequestBlocks -> INFO 2b0 Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:37.987 CST [blocksProvider] DeliverBlocks -> ERRO 2b1 [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:39.592 CST [deliveryClient] RequestBlocks -> INFO 2b2 Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:39.594 CST [blocksProvider] DeliverBlocks -> ERRO 2b3 [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:42.799 CST [deliveryClient] RequestBlocks -> INFO 2b4 Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:42.801 CST [blocksProvider] DeliverBlocks -> ERRO 2b5 [yychannel] Got error &{FORBIDDEN} 2020-05-20 21:04:49.206 CST [deliveryClient] RequestBlocks -> INFO 2b6 Starting deliver with block [5] for channel yychannel 2020-05-20 21:04:49.208 CST [blocksProvider] DeliverBlocks -> ERRO 2b7 [yychannel] Got error &{FORBIDDEN} ```

ooojerryooo (Wed, 20 May 2020 13:27:42 GMT):
How to unassociate a Peer from a channel, because the command below the Peer channel has only join and no other exit channel commands.

scmanjarrez (Wed, 20 May 2020 14:52:12 GMT):
How can I download fabric docker images for 2.0? When I run test-network.sh up it downloads 1.4.7 images and fails...

scmanjarrez (Wed, 20 May 2020 14:52:12 GMT):
How can I download fabric docker images for 2.0? When I run network.sh up it downloads 1.4.7 images and fails...

deployer21 (Wed, 20 May 2020 17:02:33 GMT):
Has joined the channel.

ongchinkai (Wed, 20 May 2020 18:02:53 GMT):
I have three orderer nodes running in a docker swarm. Orderer1 has exposed port 7050, orderer2 8050, and orderer3 9050. However, when I run my event listener, I see the following error messages: 2020-05-20T15:55:26.098Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer2.isprint.com:7050, url:grpcs://localhost:7050 2020-05-20T15:55:26.099Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer2.isprint.com:7050 url:grpcs://localhost:7050 timeout:3000 2020-05-20T15:55:26.099Z - error: [DiscoveryService]: _buildOrderer[isprintchannel] - Unable to connect to the discovered orderer orderer2.isprint.com:7050 due to Error: Failed to connect before the deadline on Committer- name: orderer2.isprint.com:7050, url:grpcs://localhost:7050 2020-05-20T15:55:29.102Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer3.isprint.com:7050, url:grpcs://localhost:7050 2020-05-20T15:55:29.102Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer3.isprint.com:7050 url:grpcs://localhost:7050 timeout:3000 2020-05-20T15:55:29.102Z - error: [DiscoveryService]: _buildOrderer[isprintchannel] - Unable to connect to the discovered orderer orderer3.isprint.com:7050 due to Error: Failed to connect before the deadline on Committer- name: orderer3.isprint.com:7050, url:grpcs://localhost:7050

ongchinkai (Wed, 20 May 2020 18:04:00 GMT):
How come my connection for both orderers 2 and 3 are going to 7050 instead of the ports I exposed? Is there some setting I missed?

LabibFarag (Wed, 20 May 2020 19:21:26 GMT):
hello I'm facing the same issue reported here https://lists.hyperledger.org/g/fabric/message/7645 any one can advise how to solve this ?

zZz (Thu, 21 May 2020 02:05:49 GMT):
Can I save the world state into memory or other databases like mogodb, postgres ...? Is there a problem if I do so?

ongchinkai (Thu, 21 May 2020 03:11:18 GMT):
I'm looking for evidence of block events in my log files. All I can see is this in my peer logs: `2020-05-21 03:01:13.666 UTC [committer.txvalidator] Validate -> INFO 0bb [isprintchannel] Validated block [7] in 1ms 2020-05-21 03:01:13.903 UTC [kvledger] CommitWithPvtData -> INFO 0bc [isprintchannel] Committed block [7] with 1 transaction(s) in 236ms (state_validation=58ms block_and_pvtdata_commit=4ms state_commit=172ms) commitHash=[480ef4439af65d51b02ac341420035d93cc55439f7469e362eb103e3c1cc0a8e]` Is this considered logging for block events?

deepakwipro (Thu, 21 May 2020 05:34:17 GMT):
Has joined the channel.

deepakwipro (Thu, 21 May 2020 05:34:21 GMT):
I was trying to upgrade my fabric 1.4 network to 2.0 , can you please explain how to vendor the shim in 1.4 chaincode as it is mentioned in first step of upgradation?

MumtahinHabib (Thu, 21 May 2020 06:17:02 GMT):
I again got stuck while installing the chaincode in commercial-paper tutorial: opt/gopath/src/github.com/hyperledger/fabric/peer # peer lifecycle chaincode package cp.tar.gz --lang node --path ./contract --la bel cp_0 2020-05-20 07:05:16.357 UTC [chaincode.platform.util] func1 -> ERRO 001 Visit contract failed: lstat contract: no such file or directory 2020-05-20 07:05:16.358 UTC [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat contract: no such file or directory 2020-05-20 07:05:16.359 UTC [chaincode.platform.node] GetDeploymentPayload -> ERRO 003 Error writing folder to tar package lstat contract: no such file or directory Error: error getting chaincode bytes: Error writing Chaincode package contents: lstat contract: no such file or directory

HunterJW (Thu, 21 May 2020 08:26:56 GMT):
Has joined the channel.

HunterJW (Thu, 21 May 2020 08:26:58 GMT):
I want to know whether I can create new channel dynamically using fabric-sdk-java ?:grinning:

scmanjarrez (Thu, 21 May 2020 15:07:58 GMT):
is there any way to debug chaincode (golang)?

BrettLogan (Fri, 22 May 2020 04:06:37 GMT):
You need to modify this line in your core.yaml: `https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L532` or the environment variable: `CORE_CHAINCODE_JAVA_RUNTIME`

BrettLogan (Fri, 22 May 2020 04:11:15 GMT):
In 2.0 we moved the shim to `github.com/hyperledger/fabric-chaincode-go/shim`, so you need to point your chaincode to that and we no longer include the shim in the ccenv image. If you are moving to 2.0, I recommend you move to modules, so you can change to the root of your project and do a, `GO111MODULE=on go mod init && GO111MODULE=on go mod tidy` this will create your `go.mod` and initialize your dependencies. You can also do a `GO111MODULE=on go mod vendor` to create you vendors directory explicitly, this will reduce the time it takes to build your chaincode

BrettLogan (Fri, 22 May 2020 04:13:34 GMT):
You mean you want to use Mongo as your world state DB or you want to extract the info and put it in one of these DB's (presumable to make querying easier). If its the first, you would need to modify fabric, but yes, it is 100% possible, someone has done Mongo once already but it was never merged. If it is the second, many people do this, they attach an event listener and when the data is successfully committed, they also add the data to a `side db` for querying purposes

zZz (Fri, 22 May 2020 04:15:50 GMT):
yes i'm following your 2nd but i'm having trouble listening to the event

zZz (Fri, 22 May 2020 04:16:01 GMT):
I am not getting the payload in listener :| Can someone tell me where I was wrong? This is the code in my chaincode: ``` err = ctx.GetStub().PutState(state.Key, state.GetBytes()) if err != nil { log.Println("Put state error with ", err) return err } err = ctx.GetStub().SetEvent("Invoke", state.GetBytes()) if err != nil { log.Println("Set event error with ", err) return err } return nil ``` I use fabric go sdk v1.0.0-beta1 and fabric 2.0 ``` Received CC event:: {"TxID":"2776ba8e87145f3aee7bfa5b790572266b556dc9801eac796fcd7e570a0dfd6d","ChaincodeID":"simple-db","EventName":"Invoke","Payload":null,"BlockNumber":12,"SourceURL":"localhost:7051"} ```

zZz (Fri, 22 May 2020 04:16:01 GMT):
I am not getting the payload in listener :| can you help me This is the code in my chaincode: ``` err = ctx.GetStub().PutState(state.Key, state.GetBytes()) if err != nil { log.Println("Put state error with ", err) return err } err = ctx.GetStub().SetEvent("Invoke", state.GetBytes()) if err != nil { log.Println("Set event error with ", err) return err } return nil ``` I use fabric go sdk v1.0.0-beta1 and fabric 2.0 ``` Received CC event:: {"TxID":"2776ba8e87145f3aee7bfa5b790572266b556dc9801eac796fcd7e570a0dfd6d","ChaincodeID":"simple-db","EventName":"Invoke","Payload":null,"BlockNumber":12,"SourceURL":"localhost:7051"} ```

BrettLogan (Fri, 22 May 2020 04:23:20 GMT):
Unfortunately I don't have experience with the Go SDK. It's not one of our official SDK's (yet) so I haven't taken the time to learn it yet.

BrettLogan (Fri, 22 May 2020 04:23:20 GMT):
Unfortunately I don't have experience with the Go SDK. It's not one of our official SDK's (yet) so I haven't taken the time to learn it at all.

zZz (Fri, 22 May 2020 04:24:10 GMT):
:sob: thanks you

deepakwipro (Fri, 22 May 2020 05:36:26 GMT):
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/Capabilities not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

deepakwipro (Fri, 22 May 2020 05:36:49 GMT):
i am getting this error when i am trying to submit config update transaction

conanoc (Fri, 22 May 2020 06:46:56 GMT):
In dev, make test codes using mock stub. In operation env, print logs or elaborate error messages. I recommend debugging with test codes.

deepakwipro (Fri, 22 May 2020 09:13:59 GMT):
I am new to fabric. I was trying to upgrade my network from 1.4 to 2.0 but when i am upgrading it, peer and orderer container upgraded to 2.0 but chaincode containers stopped. What we have to change in our chaincode before doing this? Please explain in detail. Please also mention the respective commands and steps to do it.

deepakwipro (Fri, 22 May 2020 09:26:37 GMT):
when i am executing this command for Submitting the config update transaction ``` peer channel update -f config_update_in_envelope.pb -c $CH_NAME -o $ORDERER_CONTAINER --tls true --cafile $TLS_ROOT_CA ``` then i am getting this error ``` Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/Capabilities not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied ```

mit456 (Fri, 22 May 2020 10:16:24 GMT):
Please have a look on this : https://stackoverflow.com/questions/61952372/channelmychannel-received-discovery-erroraccess-denied-for-role-member

Amanullah68 (Fri, 22 May 2020 10:45:32 GMT):
Hi guys, I need urgent help.

Amanullah68 (Fri, 22 May 2020 10:45:38 GMT):
invoke-chaincode - Failed to invoke chaincode. cause:ReferenceError: transient is not defined

Amanullah68 (Fri, 22 May 2020 10:45:56 GMT):
I'm writing chaincode in node.js

Amanullah68 (Fri, 22 May 2020 10:46:04 GMT):
kindly help me out, thanks

AbdullahJoyia (Fri, 22 May 2020 17:13:16 GMT):

error.png

AbdullahJoyia (Fri, 22 May 2020 17:13:49 GMT):

error.png

AbdullahJoyia (Fri, 22 May 2020 17:18:19 GMT):

err.png

musicmodes (Fri, 22 May 2020 20:14:20 GMT):
hello i have made my hyperledger network and now ,

musicmodes (Fri, 22 May 2020 20:15:58 GMT):
I want to call the CLI command with the help of REST API

musicmodes (Fri, 22 May 2020 20:17:42 GMT):
so that i can trigger them through POSTMAN

musicmodes (Fri, 22 May 2020 20:17:53 GMT):
Kindly help!!

serkanerkan (Sat, 23 May 2020 10:55:48 GMT):
User User_1 added by serkanerkan.

Emirchalghaf (Sat, 23 May 2020 14:22:03 GMT):
Has joined the channel.

Emirchalghaf (Sat, 23 May 2020 14:22:05 GMT):
Hallo I have a question, in a production network, is it possible to create the genesis block without using the configtx.yaml and the configtxgen tool, i.e. is it possible in a production network that the already known organizations create the genesis block collaboratively? is it possible to reach consensus on the first block, the genesis block, through some kind of transactions or do they have to do it out-of-band?

prokoshkina_a (Sat, 23 May 2020 14:41:22 GMT):
Has joined the channel.

prokoshkina_a (Sat, 23 May 2020 14:41:23 GMT):
hi! i`m trying to create channel using this tutorial https://hyperledger-fabric.readthedocs.io/en/latest/deploy_chaincode.html, but I get an error "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = 'transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it.'" what can be a reason? i searched for it, added rules in firewall, checked prerequisites, but nothing helped

RobinKlemens (Sat, 23 May 2020 14:58:10 GMT):
Hello! I'm facing an issue with the gateway class of the node SDK v2.1. (npm module: `"fabric-network": "^2.0.0-beta.4"`). I deployed a Hyperledger Fabric network (v2.0) in OpenShift 3.11 using a cloud provider. All peers (2orgs, 2peers each) joined one channel ("mychannel") and the network is using Raft with 3 orderers. TLS is enabled throughout the network. Further, I can invoke chaindecode from the fabric-CLI. When trying to get the channel, the service discovery fails. I try to connect to the network via the following command: ```const connectionProfileJson = (await fs.promises.readFile('connection-org1-oc.json')).toString(); const connectionProfile = JSON.parse(connectionProfileJson); const gateway = new Gateway(); await gateway.connect(connectionProfile, { wallet, identity: "User1@org1.example.com", discovery: {"enabled": true, "asLocalhost": false} }); const network = await gateway.getNetwork("mychannel");```` In the connection profile, I set the URL of the corresponding load balancer of the peer as well as TLS, etc.: ```{ "name": "first-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "org1peer0.xxx.svc.cluster.local" ] } }, "peers": { "org1peer0.xxx.svc.cluster.local": { "url": "grpcs://internal-xxxx.eu-central-1.elb.amazonaws.com:30110", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----xxx-----END CERTIFICATE-----" }, "grpcOptions": { "ssl-target-name-override": "org1peer0.xxx.svc.cluster.local", "hostnameOverride": "org1peer0.xxx.svc.cluster.local" } } } } ``` I receive the following logs/erros: ```2020-05-23T14:20:17.662Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer.xxx.svc.cluster.local:31010, url:grpcs://orderer.xxx.svc.cluster.local:31010 2020-05-23T14:20:17.663Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer.xxx.svc.cluster.local:31010 url:grpcs://orderer.xxx.svc.cluster.local:31010 timeout:3000 2020-05-23T14:20:17.664Z - error: [DiscoveryService]: _buildOrderer[mychannel] - Unable to connect to the discovered orderer orderer.xxx.svc.cluster.local:31010 due to Error: Failed to connect before the deadline on Committer- name: orderer.xxx.svc.cluster.local:31010, url:grpcs://orderer.xxx.svc.cluster.local:31010 2020-05-23T14:20:35.697Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: org1peer1.xxx.svc.cluster.local:30110, url:grpcs://org1peer1.xxx.svc.cluster.local:30110 2020-05-23T14:20:35.697Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server org1peer1.xxx.svc.cluster.local:30110 url:grpcs://org1peer1.xxx.svc.cluster.local:30110 timeout:3000 2020-05-23T14:20:35.697Z - error: [DiscoveryService]: _buildPeer[mychannel] - Unable to connect to the discovered peer org1peer1.xxx.svc.cluster.local:30110 due to Error: Failed to connect before the deadline``` From my point of view, the connection to `org1peer0.xxx.svc.cluster.local` via the load balancer works. However, service discovery fails. I double-checked my network settings, which I assume to be correct as full functionalities are accessible from the fabric-CLI inside the OpenShift Cluster. Has anyone successfully connected to a HL Fabric v2.0 network running inside a cloud with service discovery enabled? I would appreciate any recommendations as well as ideas about how to fix this. Thanks! /Robin

RobinKlemens (Sat, 23 May 2020 15:19:17 GMT):
Edit: When I run `discover --configFile conf.yaml peers --channel mychannel --server org1peer0.xxx.svc.cluster.local:30110`, service discovery works as expected. ```[ { "MSPID": "Org2MSP", "LedgerHeight": 8, "Endpoint": "org2peer0.xxx.svc.cluster.local:30110", "Identity": "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----\n", "Chaincodes": [ "marbles", "_lifecycle" ] }, { "MSPID": "Org2MSP", "LedgerHeight": 8, "Endpoint": "org2peer1.xxx.svc.cluster.local:30110", "Identity": "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----\n", "Chaincodes": [ "_lifecycle" ] }, { "MSPID": "Org1MSP", "LedgerHeight": 8, "Endpoint": "org1peer0.xxx.svc.cluster.local:30110", "Identity": "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----\n", "Chaincodes": [ "marbles", "_lifecycle" ] }, { "MSPID": "Org1MSP", "LedgerHeight": 8, "Endpoint": "org1peer1.xxx.svc.cluster.local:30110", "Identity": "-----BEGIN CERTIFICATE-----xxxx-----END CERTIFICATE-----\n", "Chaincodes": [ "_lifecycle" ] } ]```

Emirchalghaf (Sat, 23 May 2020 16:56:39 GMT):
Hi! is it possible to change the default policies naming ( Writers , Admins and Readers ) ?

AaronWilmoth (Sat, 23 May 2020 16:58:33 GMT):
Has joined the channel.

cryptopatrick (Sun, 24 May 2020 05:46:50 GMT):
Error says it can't find the file. Check that your path is correct.

timg51237 (Sun, 24 May 2020 06:18:36 GMT):
Has joined the channel.

timg51237 (Sun, 24 May 2020 06:18:38 GMT):
Hello, I am trying to follow the Using Fabric Test Network tutorial, and I'm stuck on the step where I am supposed to set the FABRIC_CFG_PATH variable.

timg51237 (Sun, 24 May 2020 06:18:38 GMT):
Hello, I am trying to follow the Using Fabric Test Network tutorial, and I'm stuck on the step where I am supposed to set the FABRIC_CFG_PATH variable. However' I'm getting an error that says 2020-05-23 23:12:54.697 PDT [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/timg/Documents/GitHub/fabric-samples/config/msp" does not exist or cannot be accessed: stat /Users/timg/Documents/GitHub/fabric-samples/config/msp: no such file or directory

timg51237 (Sun, 24 May 2020 06:19:54 GMT):
The FABRIC_CFG_PATH variable I have set right now is in my .zshrc is export FABRIC_CFG_PATH=/Users/timg/Documents/GitHub/fabric-samples/config

timg51237 (Sun, 24 May 2020 06:20:47 GMT):
I checked Finder to verify that my core.yaml file is in that directory, but somehow peer is not picking up that file. Has anyone previously encountered this problem and know what's going in?

timg51237 (Sun, 24 May 2020 06:20:47 GMT):
I checked Finder to verify that my core.yaml file is in that directory, but somehow peer is not picking up that file. Has anyone previously encountered this problem and know what's going on?

adeebna (Sun, 24 May 2020 13:22:41 GMT):
how to change the network setup of fabcar from 'test-network' to 'first-network' or any other network

AshutoshKumar7 (Mon, 25 May 2020 06:42:54 GMT):
how does sawtooth compares to fabric ? Are use cases different for these two or they complete for same type of use cases?

Matrixik (Mon, 25 May 2020 08:26:04 GMT):
Has joined the channel.

dixia (Mon, 25 May 2020 10:06:21 GMT):
Has joined the channel.

dixia (Mon, 25 May 2020 10:06:23 GMT):
hi all,I tried the Starting a chaincode on the channel section of getting started(https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html), but the script failed as i don't have a golang environment setup. Might be useful to add that to prerequisite as well

Emirchalghaf (Mon, 25 May 2020 12:35:09 GMT):
Hi! is it possible to change the default policies naming ( Writers , Admins and Readers ) ?

lohfu (Mon, 25 May 2020 14:30:56 GMT):
Has joined the channel.

lohfu (Mon, 25 May 2020 14:31:43 GMT):
hi, i posted a question in #fabric that i realise should probably have been posted here... the question was: how does one query blocks using the node sdk v2.0? according to release notes channel.queryBlock, channel.queryBlockByHash, channel.queryBlockByTxID etc have all been removed in v2.0....

adam0000345 (Tue, 26 May 2020 00:15:58 GMT):
Has joined the channel.

adam0000345 (Tue, 26 May 2020 00:15:59 GMT):
Hi I am trying to find where the cars data is set in the wallet for the test network in this sample, https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html, does anyone know where I can change this data? I have been looking through the code and cannot find it yet

ooojerryooo (Tue, 26 May 2020 01:56:01 GMT):
How to unassociate a Peer from a channel, because the command below the Peer channel has only join and no other exit channel commands.

SuneetBendre (Tue, 26 May 2020 03:46:30 GMT):
Just a guess, 1.remove/update the policy where peer is referred 2. remove peer docker running image

SuneetBendre (Tue, 26 May 2020 03:49:23 GMT):
taking an example of fabcar. in 'startFabric.sh' change the network. e.g pushd ../test-network ./network.sh down ./network.sh up createChannel -ca -s couchdb ./network.sh deployCC -l ${CC_SRC_LANGUAGE} popd above is referring to test-network. change to other network and its corresponding refrences

SuneetBendre (Tue, 26 May 2020 03:56:40 GMT):
this error occurs when i guess your orderer tls certs are not present while calling command. - ../organizations:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/

SuneetBendre (Tue, 26 May 2020 03:57:23 GMT):
Let me know if you need more help to investigate.

SuneetBendre (Tue, 26 May 2020 03:59:13 GMT):
you will have to write fabric client with sdk

SuneetBendre (Tue, 26 May 2020 04:01:34 GMT):
crypto path from your docker compose of cli or peercli

SuneetBendre (Tue, 26 May 2020 04:02:00 GMT):
connect if you need more help and not resolved

musicmodes (Tue, 26 May 2020 06:38:08 GMT):
how can i deploy my first network using go sdk

musicmodes (Tue, 26 May 2020 06:43:48 GMT):
version 1.4.4

AbdullahJoyia (Tue, 26 May 2020 07:33:24 GMT):
I have solved this issue and successfully created the channel as well. Now, i am facing an error while running ./deployChaincode.sh command , it shows vendoring go dependencies and give error on go mod, and not created the vendor folder.

cryptopatrick (Tue, 26 May 2020 08:41:35 GMT):
Can you post the error or the gist of it?

AbdullahJoyia (Tue, 26 May 2020 09:03:39 GMT):
I have solved this issue and successfully created the channel as well. Now, i am facing an error while running ./deployChaincode.sh command , it shows vendoring go dependencies and give error on go mod, and not created the vendor folder.

tusharson (Tue, 26 May 2020 09:46:25 GMT):
Has joined the channel.

tusharson (Tue, 26 May 2020 09:46:30 GMT):
Hello, I am following this video to setup hyperledger fabric in my baremetal kubernetes cluster - https://youtu.be/nlvMnedvcnM kubernetes version - 1.17.4 Helm version - 2.16.5 I have some issues with the same. Can anybody help me ?

tusharson (Tue, 26 May 2020 09:47:25 GMT):
@alexvicegrab

alexvicegrab (Tue, 26 May 2020 09:47:25 GMT):
Has joined the channel.

SamuelKitavi (Tue, 26 May 2020 12:25:33 GMT):
Has joined the channel.

Jax.dev (Tue, 26 May 2020 13:58:44 GMT):
Error: Missing "orderer" request parameter at Client.getTargetOrderer (/srv/node_modules/fabric-client/lib/Client.js:1809:10) at Client._createOrUpdateChannel (/srv/node_modules/fabric-client/lib/Client.js:792:24) at Client.updateChannel (/srv/node_modules/fabric-client/lib/Client.js:774:15) at Object.exports.updateAnchorPeers (updatechannel.js:200:28) at at process._tickDomainCallback (internal/process/next_tick.js:229:7) Did anyone faced this issue while updating channel for anchor peers using fabric sdk?

AbdullahJoyia (Tue, 26 May 2020 18:31:08 GMT):

vendor-issue.png

cryptopatrick (Tue, 26 May 2020 19:31:02 GMT):
What version of Go are you running? You can find out in the terminal: $ go version

AbdullahJoyia (Tue, 26 May 2020 19:31:41 GMT):
go version go1.10.4 linux/amd64

cryptopatrick (Tue, 26 May 2020 19:37:04 GMT):
go mod was introduced in Go 1.11 Try upgrading you versio of Go using your package manager.

cryptopatrick (Tue, 26 May 2020 19:37:57 GMT):
Are you on Ubuntu?

AbdullahJoyia (Tue, 26 May 2020 19:39:06 GMT):
yes using Ubuntu 18.04.4 LTS

AbdullahJoyia (Tue, 26 May 2020 19:41:23 GMT):
Can you share any link that will be helpful for updrading the package manager

AbdullahJoyia (Tue, 26 May 2020 19:41:23 GMT):
Can you share any link that will be helpful for upgrading the package manager

cryptopatrick (Tue, 26 May 2020 19:42:56 GMT):
Either follow the offical docs on how to upgrade to 1.14: https://golang.org/doc/install Or lookup some recent tutorial, like this one: https://tecadmin.net/install-go-on-ubuntu/

cryptopatrick (Tue, 26 May 2020 19:42:56 GMT):
Either follow the offical docs on how to upgrade to 1.14: https://golang.org/doc/install Or lookup some recent tutorial, like this one: https://tecadmin.net/install-go-on-ubuntu/ Choose based on the security needs of what you're working on.

cryptopatrick (Tue, 26 May 2020 19:45:06 GMT):
Here's another link from a forum: https://forum.golangbridge.org/t/go-unknown-subcommand-mod/15257/3

cryptopatrick (Tue, 26 May 2020 19:46:24 GMT):
Keep in mind that Fabric still needs GOPATH, even though Go does not.

AbdullahJoyia (Tue, 26 May 2020 19:53:43 GMT):
can i install go1.14.3 ?

cryptopatrick (Tue, 26 May 2020 20:07:31 GMT):
I think so, yes.

hazbiy97 (Tue, 26 May 2020 20:31:08 GMT):
im really sorry for late response as corona outbreak is spreading so much here, do you have any example or use case that happened to you in this case? i want to explain why raft is better for production with exact reason but i still got no different yet in my testing environment between RAFT and KAFKA implementation

hazbiy97 (Tue, 26 May 2020 20:37:49 GMT):
I'm really sorry for the late response as corona outbreak is spreading so much here, thank you very much for your detailed response. so by using KAFKA I can't distribute the workload of ordering nodes? as for the networking layers for RAFT and KAFKA, did you have any source or documentation for that? I want to learn deeper into these two architectures. But if RAFT is completely hands-off as you say, do admins don't need to handle the workload later when the system is scaling much bigger? I always thought the bigger the system is the heavier it's load and it affects the ordering nodes too.

BrettLogan (Wed, 27 May 2020 06:17:55 GMT):
Yes, 1.14.3 will work

BrettLogan (Wed, 27 May 2020 06:18:26 GMT):
And unless you are doing development on fabric, you don't actually need a GOPATH, since 2.0 we support modules for chaincode

BrettLogan (Wed, 27 May 2020 06:19:20 GMT):
And as a side note, as of the Fabric 2.2.0 upcoming release, fabric itself is module enabled

deepakwipro (Wed, 27 May 2020 07:08:26 GMT):
when i am upgrading fabric 1.4 to 2.0, my chaincode container also stopped so when i am doing transactions after updating capabilites it is showing ``` failed to execute transaction 2e0403756bbe10b75fcb4e52734aba3d89620816406fca9276ea4dcb088b2e81: could not launch chaincode mycc:v0: error building chaincode: error building image: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 \"/chaincode/input/src/github.com/example_cc/go/example_cc.go:24:2: cannot find package \"github.com/hyperledger/fabric/core/chaincode/shim\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/core/chaincode/shim\n/chaincode/input/src/github.com/example_cc/go/example_cc.go:25:2: cannot find package \"github.com/hyperledger/fabric/protos/peer\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/protos/peer\n\"" ```

deepakwipro (Wed, 27 May 2020 07:14:47 GMT):
endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 48424a7994f4700fd2bfbd8d5d38177b8da535b652f6a254776f4107f1648eff: could not launch chaincode mycc:v0: error building chaincode: error building image: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 \"/chaincode/input/src/github.com/example_cc/go/example_cc.go:24:2: cannot find package \"github.com/hyperledger/fabric/core/chaincode/shim\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/core/chaincode/shim\n/chaincode/input/src/github.com/example_cc/go/example_cc.go:25:2: cannot find package \"github.com/hyperledger/fabric/protos/peer\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/protos/peer\n\"" I updated the chaincode shim path but still looking for old path. I also upgraded the capabilities to 2.0. My chaincode container stopped while upgrading the peer binaries, how to revive them so that i can execute the transaction.

deepakwipro (Wed, 27 May 2020 07:14:47 GMT):
endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 48424a7994f4700fd2bfbd8d5d38177b8da535b652f6a254776f4107f1648eff: could not launch chaincode mycc:v0: error building chaincode: error building image: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 \"/chaincode/input/src/github.com/example_cc/go/example_cc.go:24:2: cannot find package \"github.com/hyperledger/fabric/core/chaincode/shim\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/core/chaincode/shim\n/chaincode/input/src/github.com/example_cc/go/example_cc.go:25:2: cannot find package \"github.com/hyperledger/fabric/protos/peer\" in any of:\n\t/usr/local/go/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT)\n\t/chaincode/input/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)\n\t/go/src/github.com/hyperledger/fabric/protos/peer\n\"" I updated the chaincode shim path but still looking for old path. I also upgraded the capabilities to 2.0. My chaincode container stopped while upgrading the peer binaries, how to revive them so that i can execute the transaction. @BrettLogan

BrettLogan (Wed, 27 May 2020 07:17:04 GMT):
You're still importing the wrong shim and protos. They are in fabric-chaincode-go and fabric-protod-go repos

BrettLogan (Wed, 27 May 2020 07:17:04 GMT):
You're still importing the wrong shim and protos. They are in fabric-chaincode-go and fabric-protos-go repos

deepakwipro (Wed, 27 May 2020 07:17:45 GMT):
please explain in detail how to change it.

deepakwipro (Wed, 27 May 2020 07:18:23 GMT):
should i change it before updating the capabilites or after it?

dbdagr8 (Wed, 27 May 2020 07:50:02 GMT):
Has joined the channel.

ioannis.balomenos (Wed, 27 May 2020 09:32:41 GMT):
Has joined the channel.

ioannis.balomenos (Wed, 27 May 2020 09:32:41 GMT):
Hello, our project is in the process of migrating from 1.4 to 2.0. We are using the "fabric-network" package v2.1.0 for nodejs. We found the functionality of "loadbalancing" between available peers and automatically managing peer crashes very convenient. However, in the case of events, if one peer goes down, all chaincode event listeners are removed, even from the peer that is still up. Is this something that is expected behaviour, if yes, are there any plans to manage peer outages on events also?

musicmodes (Wed, 27 May 2020 11:34:44 GMT):
how to deploy first network using go sdk

scmanjarrez (Wed, 27 May 2020 12:56:59 GMT):
thank you!

tusharson (Wed, 27 May 2020 13:38:44 GMT):
any updated documents, videos on deploying hyperledger fabric on kubernetes ?

AshutoshKumar7 (Wed, 27 May 2020 16:59:50 GMT):
I am planning to take scripts from test-network and make it reusable and generic . As of now it is hard coded for org1 and org2 . Any inputs is appreciated. Is there something similar already exist? What is preferred approach between writing a generic script and using SDk for netwrok creation?

y0zg (Wed, 27 May 2020 18:41:26 GMT):
Has joined the channel.

srinathLN7 (Wed, 27 May 2020 19:14:35 GMT):
Is there a way to identify which peer the chaincode is executed on within the cli container in Fabric? Like the clients identity can be retrieved by the cid package, anything similar to that?

divyasekaran (Thu, 28 May 2020 05:38:37 GMT):
Hello, I have modified fabcar example to save the data from an API. It works fine, now I need to create a UI with login and dashboard manage pages. I have used node SDK for the process of saving the data. Is there any sample documentation or sample apps available to develop a UI using HTML and Express JS on the basis of hyperledger fabric

gangadharjannu (Thu, 28 May 2020 06:24:34 GMT):
Has joined the channel.

Emirchalghaf (Thu, 28 May 2020 07:06:34 GMT):
Could someone explain me please, how is fabric deployed on a real world production network ? Note that this topic will discuss “setting up the network” as a holistic process from the perspective of a single individual. More likely than not, real world production networks will not be set up by a single individual but as a collaborative effort directed by several individuals (a collection of banks each setting up their own components, for example) instead.

Emirchalghaf (Thu, 28 May 2020 07:19:19 GMT):
Could you please explain to me, how is fabric deployed on a real-world production network, i.e. how can a network be set by multiple organization? how is then the genesis block created and how are the orders bootstrapped? In Hyperledger documentation it is written that: Note that this topic will discuss “setting up the network” as a holistic process from the perspective of a single individual. More likely than not, real-world production networks will not be set up by a single individual but as a collaborative effort directed by several individuals (a collection of banks each setting up their own components, for example) instead.

rheta (Thu, 28 May 2020 07:55:10 GMT):
Has joined the channel.

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 Node 10.15.3 npm 5.6.0 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric_samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java I'm getting a failure on `chaincodeInvokeInit()` of deployCC.sh. Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Undefined contract called" !!!!!!!!!!!!!!! Invoke execution on peer0.org1 peer0.org2 failed !!!!!!!!!!!!!!!! And the docker logs show the following. 05:30:26:388 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 05:30:26:403 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 05:30:26:446 SEVERE org.hyperledger.fabric.Logger error Undefined contract calledorg.hyperledger.fabric.contract.ContractRuntimeException: Undefined contract called at org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl.getContract(RoutingRegistryImpl.java:119) at org.hyperledger.fabric.contract.ContractRouter.getRouting(ContractRouter.java:146) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:107) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:131) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:89) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 05:30:26:453 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [8e6b54e8] Invoke failed with error code 500. Sending ERROR

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 Node 10.15.3 npm 5.6.0 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric_samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 Node 10.15.3 npm 5.6.0 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric_samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java I'm getting a failure on `chaincodeInvokeInit()` of deployCC.sh. Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Undefined contract called" !!!!!!!!!!!!!!! Invoke execution on peer0.org1 peer0.org2 failed !!!!!!!!!!!!!!!! And the docker logs show the following. 05:30:26:388 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 05:30:26:403 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 05:30:26:446 SEVERE org.hyperledger.fabric.Logger error Undefined contract calledorg.hyperledger.fabric.contract.ContractRuntimeException: Undefined contract called at org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl.getContract(RoutingRegistryImpl.java:119) at org.hyperledger.fabric.contract.ContractRouter.getRouting(ContractRouter.java:146) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:107) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:131) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:89) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 05:30:26:453 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [8e6b54e8] Invoke failed with error code 500. Sending ERROR

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric_samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java I'm getting a failure on `chaincodeInvokeInit()` of deployCC.sh. Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Undefined contract called" !!!!!!!!!!!!!!! Invoke execution on peer0.org1 peer0.org2 failed !!!!!!!!!!!!!!!! And the docker logs show the following. 05:30:26:388 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 05:30:26:403 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 05:30:26:446 SEVERE org.hyperledger.fabric.Logger error Undefined contract calledorg.hyperledger.fabric.contract.ContractRuntimeException: Undefined contract called at org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl.getContract(RoutingRegistryImpl.java:119) at org.hyperledger.fabric.contract.ContractRouter.getRouting(ContractRouter.java:146) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:107) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:131) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:89) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 05:30:26:453 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [8e6b54e8] Invoke failed with error code 500. Sending ERRO

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric_samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java I'm getting a failure on `chaincodeInvokeInit()` of deployCC.sh. Error: `endorsement failure during invoke`. response: status:500 message:"`error in simulation: transaction returned with failure: Undefined contract called`" !!!!!!!!!!!!!!! Invoke execution on peer0.org1 peer0.org2 failed !!!!!!!!!!!!!!!! And the docker logs show the following. 05:30:26:388 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 05:30:26:403 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 05:30:26:446 SEVERE org.hyperledger.fabric.Logger error Undefined contract calledorg.hyperledger.fabric.contract.ContractRuntimeException: Undefined contract called at org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl.getContract(RoutingRegistryImpl.java:119) at org.hyperledger.fabric.contract.ContractRouter.getRouting(ContractRouter.java:146) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:107) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:131) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:89) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 05:30:26:453 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [8e6b54e8] Invoke failed with error code 500. Sending ERRO

rheta (Thu, 28 May 2020 08:20:51 GMT):
Hi all! I'm just getting started with Hyperledger and was going through the Test Network example (https://hyperledger-fabric.readthedocs.io/en/release-2.1/test_network.html). I was able to complete the default Go and javascript ones but encountered the following error when I chose Java as the language. MacOS 10.14.6 Docker version 19.03.8 docker-compose version 1.25.5 #This is my script. Yes, it's only 4 lines. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.7 0.4.20 cd fabric-samples/test-network ./network.sh up createChannel ./network.sh deployCC -l java I'm getting a failure on `chaincodeInvokeInit()` of deployCC.sh. Error: `endorsement failure during invoke`. response: status:500 message:"`error in simulation: transaction returned with failure: Undefined contract called`" !!!!!!!!!!!!!!! Invoke execution on peer0.org1 peer0.org2 failed !!!!!!!!!!!!!!!! And the docker logs show the following. 05:30:26:388 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 05:30:26:403 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 05:30:26:446 SEVERE org.hyperledger.fabric.Logger error Undefined contract calledorg.hyperledger.fabric.contract.ContractRuntimeException: Undefined contract called at org.hyperledger.fabric.contract.routing.impl.RoutingRegistryImpl.getContract(RoutingRegistryImpl.java:119) at org.hyperledger.fabric.contract.ContractRouter.getRouting(ContractRouter.java:146) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:107) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:131) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:89) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 05:30:26:453 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [8e6b54e8] Invoke failed with error code 500. Sending ERRO

arijitmhptr (Thu, 28 May 2020 09:30:18 GMT):
Has joined the channel.

Abhishek2700 (Thu, 28 May 2020 11:25:51 GMT):

Clipboard - May 28, 2020 4:55 PM

Abhishek2700 (Thu, 28 May 2020 11:28:36 GMT):

Clipboard - May 28, 2020 4:56 PM

Abhishek2700 (Thu, 28 May 2020 11:28:36 GMT):

Clipboard - May 28, 2020 4:56 PM

Abhishek2700 (Thu, 28 May 2020 11:28:36 GMT):

Clipboard - May 28, 2020 4:56 PM

Abhishek2700 (Thu, 28 May 2020 11:31:22 GMT):

Clipboard - May 28, 2020 5:00 PM

Abhishek2700 (Thu, 28 May 2020 11:31:22 GMT):

Clipboard - May 28, 2020 5:00 PM

rheta (Thu, 28 May 2020 19:14:25 GMT):
Bumping this for visibility.

BrettLogan (Thu, 28 May 2020 22:22:56 GMT):
taking a run at it now

BrettLogan (Thu, 28 May 2020 22:33:26 GMT):
I had no issues, if you areent adverse to resetting your docker instance, doing `docker kill $(docker ps -q); docker rm $(docker ps -a -q); docker system prune --volumes --all --force` will clean up your docker instance, and then you can delete the fabric samples repo and rerun the installation script

BrettLogan (Thu, 28 May 2020 22:33:51 GMT):
This happens from time to time due to conflicting docker images from running multiple test networks

rheta (Thu, 28 May 2020 23:18:39 GMT):
I did the system-wide clean but am encountering the same issue. What JDK are you using?

BrettLogan (Thu, 28 May 2020 23:19:24 GMT):
11

BrettLogan (Thu, 28 May 2020 23:19:26 GMT):
opeenjdk

rheta (Thu, 28 May 2020 23:45:44 GMT):
I did a fresh install of Docker and the error remains. I guess I'll use the javascript version for now.

chintanr11 (Fri, 29 May 2020 13:53:09 GMT):
Hi folks, I am not able to instantiate upgrade NEW chaincodes on my HLF network using IBM Blockchain VS Code extension. It is not able to find the orderers. However, invoke and query of existing chaincodes works fine.

chintanr11 (Fri, 29 May 2020 13:53:09 GMT):
Hi folks, I am not able to instantiate upgrade NEW chaincodes on my HLF network using IBM Blockchain VS Code extension. It is not able to find the orderers. However, invoke and query of existing chaincodes works fine. Getting the error: [5/29/2020 3:16:47 PM] [ERROR] Error upgrading smart contract: Failed to find Fabric orderer(s) , , for channel mychannel

chintanr11 (Fri, 29 May 2020 13:53:09 GMT):
Hi, I am not able to instantiate upgrade NEW chaincodes on my HLF network using IBM Blockchain VS Code extension. It is not able to find the orderers. However, invoke and query of existing chaincodes works fine. Getting the error: [5/29/2020 3:16:47 PM] [ERROR] Error upgrading smart contract: Failed to find Fabric orderer(s) , , for channel mychannel

rohitroyrr8 (Sat, 30 May 2020 14:34:07 GMT):
Has joined the channel.

adam0000345 (Sat, 30 May 2020 21:46:57 GMT):
hi, for the fabcar javascript smart contract example, how much of the package.json is necessary for the smart contract to run? what does what?

adam0000345 (Sat, 30 May 2020 23:16:16 GMT):
I am trying to approve a chaincode definition

adam0000345 (Sat, 30 May 2020 23:16:35 GMT):
I am getting this issue

adam0000345 (Sat, 30 May 2020 23:16:36 GMT):
2020-05-30 16:16:25.282 PDT [chaincodeCmd] ClientWait -> INFO 001 txid [611178b279d928b9391b721c041338af39881cf9d624024ad17e6e3ad1bd61fe] committed with status (ENDORSEMENT_POLICY_FAILURE) at Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)

adam0000345 (Sat, 30 May 2020 23:16:39 GMT):
any suggestions

adam0000345 (Sat, 30 May 2020 23:45:55 GMT):
has anyone seen this issue before?

adam0000345 (Sat, 30 May 2020 23:45:56 GMT):
error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=2.047139s

adam0000345 (Sun, 31 May 2020 00:03:23 GMT):
or this?

adam0000345 (Sun, 31 May 2020 00:03:24 GMT):
failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused"

adam0000345 (Sun, 31 May 2020 00:46:55 GMT):
or this

adam0000345 (Sun, 31 May 2020 00:46:56 GMT):
Failed to setup local msp with config: KeyMaterial not found in SigningIdentityInfo panic: Failed to setup local msp with config: KeyMaterial not found in SigningIdentityInfo

rohitroyrr8 (Sun, 31 May 2020 09:27:42 GMT):
where can i find sample configtx.yaml file for fabric 2.0?

vishalgupta96 (Sun, 31 May 2020 14:37:44 GMT):
Hi Team, I am using fabric 2.1... and while installing the chaincode.. i am getting below error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: Error constructing Docker VM Name. 'dev-peer0.farmer.scm.com-fabcar_-073b9f314e6d11c4f4962b544386068ef1522d03e4c39ed0d2eb0dcbc2d46e8a-0a4bb8c413609fa6af361736e3e5907b740f327e619446b3739cab1c16607293' breaks Docker's repository naming rules

vishalgupta96 (Sun, 31 May 2020 14:37:52 GMT):
please help..

vishalgupta96 (Sun, 31 May 2020 14:46:13 GMT):
I was able to resolve. Pls ignore this question.

nbasker (Sun, 31 May 2020 17:05:51 GMT):
All: I use vim and installed vim-go, guru, gotags etc..., but I am unable to search all callers of a function or all the places from which a specific function is called. The GoCallers and GoCallees mentioned in vim-go/guru does not work for me. Found the following comment in vim-go-tutorial and the fabric seems go-module-aware.The tutorial does not yet explain some of the differences in behavior of the go tool and other community provided tools in GOPATH mode vs module aware mode. The vast majority of vim-go features work as described here with the exception of commands that rely on guru. guru only works as expected in GOPATH mode. Any pointers on options to set up the dev-environment to browse, build, debug code would help me a lot. Thanks,Nicholas.

vishalgupta96 (Sun, 31 May 2020 18:48:43 GMT):
Hi , I have a question regarding which all peer i need to mention while committing the chaincode (peer lifecycle chaincode commit ) . I have 5 orgs and in total 9 peers distributed among them. Do i need to mention only 1 peer for each org or i need to mention all 9 peers?

lotty02cho (Mon, 01 Jun 2020 03:05:46 GMT):
Does HLF 2.0 version supported REST-API? like chaincode install, instantiate? Let me know if you guys know about it or something about update.

rohitkohli (Mon, 01 Jun 2020 13:09:29 GMT):
Has joined the channel.

rohitkohli (Mon, 01 Jun 2020 13:10:39 GMT):
Hello everyone, i am running hyperldger fabric v1.4 with 4 nodes on docker swarm and i recently faced following issue - After creating dir - [/var/hyperledger/production/orderer/index/] exists panic: Error opening leveldb: resource temporarily unavailable

Swhite215 (Mon, 01 Jun 2020 17:08:13 GMT):
Hi, does anyone have any resources or material around best practices for creating mobile wallets on Android/iOS devices and connecting to a HL Fabric network?

Swhite215 (Mon, 01 Jun 2020 17:08:13 GMT):
Hi, does anyone have any resources or material around best practices for creating mobile wallets on Android/iOS devices and connecting to a HL Fabric network? In particular, I am looking for clarity around the process of a user opening a mobile app, using the SDK to retrieve credentials stored in the device wallet, and then use those credentials to invoke methods on the chaincode.

Swhite215 (Mon, 01 Jun 2020 17:08:13 GMT):
Hi, does anyone have any resources or materials around best practices for using the Node SDK to store an identity in a HL Fabric wallet, retrieve that identity, and then use that identity to invoke a chaincode method? E.g. should the credentials returned from the wallet be passed to client.setAdminSigningIdentity(private_key, certificate, mspid)?

lepar (Mon, 01 Jun 2020 18:49:31 GMT):
Node sdk 2.x it was removed because of limited resources and devs. So they focused on a new design for the chaincode lifecycle to be more dynamic. I'm not sure about golang or java though

EthanWaldo (Tue, 02 Jun 2020 00:35:43 GMT):
Has joined the channel.

EthanWaldo (Tue, 02 Jun 2020 00:35:43 GMT):
Hello. Let's say a chaincode with poor validation is approved by several orgs and their peers and a bad actor injects large key/value data thereby causing couchdb to overinflate, is there a way to somehow mark that data to not persist in the worldstate?

EthanWaldo (Tue, 02 Jun 2020 00:35:43 GMT):
Hello. Let's say a chaincode with poor validation is approved by several orgs and their peers and a bad actor injects large key/value data thereby causing couchdb to overinflate, is there a way to somehow mark that data to not persist in the worldstate for your specific org?

paraskhati22 (Tue, 02 Jun 2020 01:34:55 GMT):
Has joined the channel.

paraskhati22 (Tue, 02 Jun 2020 01:34:56 GMT):
Hello, Can someone give me the link of the hyperledger fabric tutorials for a network

EthanWaldo (Tue, 02 Jun 2020 01:35:37 GMT):
https://github.com/hyperledger/fabric-samples

paraskhati22 (Tue, 02 Jun 2020 01:36:07 GMT):
thanks

EthanWaldo (Tue, 02 Jun 2020 01:36:31 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/

bh4rtp (Tue, 02 Jun 2020 06:20:59 GMT):
hi, i am using vscode. it makes me trouble with tabs and spaces not the same as vim. so can anyone share me the solution, i.e. file edited by vscode and vim shows equal?

bh4rtp (Tue, 02 Jun 2020 06:20:59 GMT):
hi, i am using vscode. it makes me trouble with displaying tabs and spaces not the same as vim. so can anyone share me the solution, i.e. file edited by vscode and vim shows equal?

bh4rtp (Tue, 02 Jun 2020 08:06:28 GMT):
perfectly solve it by installing fira code font and setting tab size to be 8

NeelamRajesh (Tue, 02 Jun 2020 09:19:33 GMT):
Has joined the channel.

NeelamRajesh (Tue, 02 Jun 2020 09:19:34 GMT):
I am trying to add one org and two peers in existed network but facing the issue *Service ca.org1.example.com has neither an image nor a build context specified. At least one must be provided.

AdamovBoris (Tue, 02 Jun 2020 20:52:51 GMT):
Has joined the channel.

Jax.dev (Tue, 02 Jun 2020 23:00:34 GMT):
TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined facing this error when i try to install chaincode using fabric sdk node js. https://stackoverflow.com/questions/62162680/typeerror-err-invalid-arg-type-the-path-argument-must-be-of-type-string-re I have raised query here, please let me where im doing wrong.

madhu33413 (Wed, 03 Jun 2020 08:01:12 GMT):
I am observing following issue when running enrollAdmin.java that comes with fabric-samples in 2.1.1 version

madhu33413 (Wed, 03 Jun 2020 08:01:14 GMT):
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1903) at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1886) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1402) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

madhu33413 (Wed, 03 Jun 2020 08:01:40 GMT):
Any help is greatly appreciated

lotty02cho (Wed, 03 Jun 2020 08:29:00 GMT):
Hello, I'm trying to run HLF 2.0 using test-network . I have finished createChannel and deployCC and It is succeed. So, I wanna check my chaincode list. but here is the problem below. ``` hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export PATH=${PWD}/../bin:${PWD}:$PATH hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export FABRIC_CFG_PATH=$PWD/../config/ hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ # for peer command issued to peer0.org1.example.com hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_TLS_ENABLED=true hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_LOCALMSPID="Org1MSP" hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_ADDRESS=localhost:7051 hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer channel list 2020-06-03 01:22:31.092 PDT [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer chaincode list --installed Get installed chaincodes on peer: hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer chaincode list --instantiated -C mychannel Get instantiated chaincodes on channel mychannel: ``` how can I access my chaincode list? Does somebody know about this? Thanks, in advance.

lotty02cho (Wed, 03 Jun 2020 08:29:00 GMT):
Hello, I'm trying to run HLF 2.0 using test-network . I have finished createChannel and deployCC and It is succeed. So, I wanna check my chaincode list. I can check my channel list but the problem is, there is nothing about chaincode list. ``` hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export PATH=${PWD}/../bin:${PWD}:$PATH hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export FABRIC_CFG_PATH=$PWD/../config/ hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ # for peer command issued to peer0.org1.example.com hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_TLS_ENABLED=true hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_LOCALMSPID="Org1MSP" hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ export CORE_PEER_ADDRESS=localhost:7051 hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer channel list 2020-06-03 01:22:31.092 PDT [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer chaincode list --installed Get installed chaincodes on peer: hyper@ubuntu:/opt/gopath/src/github.com/hyperledger/fabric-samples/test-network$ peer chaincode list --instantiated -C mychannel Get instantiated chaincodes on channel mychannel: ``` how can I access my chaincode list? Does somebody know about this? Thanks, in advance.

rohitkohli (Wed, 03 Jun 2020 09:03:09 GMT):
After creating dir - [/var/hyperledger/production/orderer/index/] exists panic: Error opening leveldb: resource temporarily unavailable goroutine 1 [running]: github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.(*DB).Open(0xc000109240) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_helper.go:80 +0x248 github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.NewProvider(0xc0003650a0, 0xc0003650a0) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_provider.go:40 +0xdb github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.NewProvider(0xc00030f880, 0xc00030f8a0, 0x16c55a0, 0x2140990, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore_provider.go:36 +0xcb github.com/hyperledger/fabric/common/ledger/blockledger/file.New(0xc0003207e0, 0x23, 0x16c55a0, 0x2140990, 0xc000000180, 0x10e89f6) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blockledger/file/factory.go:72 +0x102 github.com/hyperledger/fabric/orderer/common/server.createLedgerFactory(0xc0002c7200, 0x16c55a0, 0x2140990, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/util.go:33 +0x1d2 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc0002c7200) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:109 +0x2d5 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

rohitkohli (Wed, 03 Jun 2020 09:03:56 GMT):
Hello everyone i am running hyperledger fabric v1.4 and facing following issues can some help me resolve the error: After creating dir - [/var/hyperledger/production/orderer/index/] exists panic: Error opening leveldb: resource temporarily unavailable goroutine 1 [running]: github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.(*DB).Open(0xc000109240) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_helper.go:80 +0x248 github.com/hyperledger/fabric/common/ledger/util/leveldbhelper.NewProvider(0xc0003650a0, 0xc0003650a0) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/util/leveldbhelper/leveldb_provider.go:40 +0xdb github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage.NewProvider(0xc00030f880, 0xc00030f8a0, 0x16c55a0, 0x2140990, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blkstorage/fsblkstorage/fs_blockstore_provider.go:36 +0xcb github.com/hyperledger/fabric/common/ledger/blockledger/file.New(0xc0003207e0, 0x23, 0x16c55a0, 0x2140990, 0xc000000180, 0x10e89f6) /opt/gopath/src/github.com/hyperledger/fabric/common/ledger/blockledger/file/factory.go:72 +0x102 github.com/hyperledger/fabric/orderer/common/server.createLedgerFactory(0xc0002c7200, 0x16c55a0, 0x2140990, 0x0, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/util.go:33 +0x1d2 github.com/hyperledger/fabric/orderer/common/server.Start(0x15309fe, 0x5, 0xc0002c7200) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:109 +0x2d5 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20

usamahabib95 (Wed, 03 Jun 2020 10:43:23 GMT):
try this peer lifecycle chaincode queryinstalled

pleerock (Wed, 03 Jun 2020 11:03:08 GMT):
Hi people! I created a basic webserver that executes a simple write chaincode (network as created based on "test network" fabric guide). My goal is to benchmark how fast operation can be with 1k user load (I do send 1k concurrent requests to the endpoint I created). I'm running everything on a single aws t2.medium instance. And I have a 17sec avg response time. Can you point me to the right direction - what should I do next to significantly decrease response time? (0.5sec maybe). Thanks!

lotty02cho (Wed, 03 Jun 2020 12:56:01 GMT):
HLF 2.0 doesn't supported these command? `peer chaincode list --installed`, `peer chaincode list --instantiated -C mychannel`?

lotty02cho (Wed, 03 Jun 2020 13:08:27 GMT):
I have a problem my network which is based on fabric-samples/test-network. Actually, I try to install and instantiate chaincode following deployCC.sh. but the problem is when I access `peer lifecycle chaincode checkcommitreadiness --channelID $CHANNEL_NAME --name fabcar --version ${VERSION} --sequence ${VERSION} --output json --init-required` command. it throws error. and approvals not changed. ``` { "Approvals": { "Org1MSP": false, "Org2MSP": false } } ``` how can I approvals change and check this things? let me know if you guys know about this issues. Always Thank you!

Abhishek2700 (Wed, 03 Jun 2020 13:10:31 GMT):
Hi people , i was running this example on my local machine https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer .I need to ask something regarding this. whenever i do any operation like creating a channel or joining a peer on the blockchain , i need to save the info regarding that in couchDB. for example , when i create a channel , i need to save info like creator's usernamee , his org and some more details in the transaction and save that in couchDB. And i should be able to see that info in a human readable format. Is that possible with a tool like fauxton. Is it possible to do so ? If yes , how should i go about doing it ? I know that details of operations like channel creation and peer joining would be there on the blokchain , but can i configure what data is stored during those transactions and see it using a tool like fauxton ? For example if the operation create channel stores only username and orgname in the db . How can i change that data to have one more field say userId and how do i confirm that those changes have been included in the blockchain ? Can anyone help e regarding this ?

scmanjarrez (Wed, 03 Jun 2020 13:40:23 GMT):
hi guys, can somebody answer me why is it necessary to set FABRIC_CFG_PATH? Is it specific for each fabric environment? what information does that file store? If I set other variables when invoking/querying chaincodes (ssl, url etc), why I need to indicate CFG_PATH as well? Thanks

scmanjarrez (Wed, 03 Jun 2020 13:40:23 GMT):
hi guys, can somebody answer me why it is necessary to set FABRIC_CFG_PATH. Is it specific for each fabric environment? what information does that file store? If I set other variables when invoking/querying chaincodes (ssl, url etc), why I need to indicate CFG_PATH as well? Thanks

scmanjarrez (Wed, 03 Jun 2020 13:40:23 GMT):
hi guys, can somebody answer me why is it necessary to set FABRIC_CFG_PATH. Is it specific for each fabric environment? what information does that file store? If I set other variables when invoking/querying chaincodes (ssl, url etc), why I need to indicate CFG_PATH as well? Thanks

scmanjarrez (Wed, 03 Jun 2020 13:40:23 GMT):
hi guys, can somebody tell me the need of FABRIC_CFG_PATH? Is it specific for each fabric environment? what information does that file store? If I set other variables when invoking/querying chaincodes (ssl, url etc), why I need to indicate CFG_PATH as well? Thanks

scmanjarrez (Wed, 03 Jun 2020 13:40:23 GMT):
hi guys, can somebody tell me the need of FABRIC_CFG_PATH? Is it specific for each fabric environment? what information does that file store? If I set other variables when invoking/querying chaincodes (ssl, url etc), why I need to indicate FABRIC_CFG_PATH as well? Thanks

BoazKabir (Wed, 03 Jun 2020 14:24:48 GMT):
Has joined the channel.

BoazKabir (Wed, 03 Jun 2020 14:24:49 GMT):
Hi everybody, I am new on Hyperledger Fabric, and I try my first network...but no success. Can someone please assist?

BoazKabir (Wed, 03 Jun 2020 14:25:18 GMT):
the error I get is:

BoazKabir (Wed, 03 Jun 2020 14:25:19 GMT):
bkabir@BOAZ-KABIR1 MINGW64 /c/workspace/hyperLedger/fabric-samples/first-network ((v1.2.1)) $ ./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.2.0 DOCKER_IMAGE_VERSION=2.1.1 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== Found orphan containers (couchdb, ca.example.com) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. peer1.org1.example.com is up-to-date peer0.org1.example.com is up-to-date peer0.org2.example.com is up-to-date orderer.example.com is up-to-date peer1.org2.example.com is up-to-date cli is up-to-date OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "no such file or directory": unknown ERROR !!!! Test failed bkabir@BOAZ-KABIR1 MINGW64 /c/workspace/hyperLedger/fabric-samples/first-network ((v1.2.1))

EthanWaldo (Wed, 03 Jun 2020 16:11:31 GMT):
Hello. Let's say a chaincode with poor validation is approved by several orgs and their peers and a bad actor injects large key/value data thereby causing couchdb to overinflate, is there a way to somehow mark that data to not persist in the worldstate for your specific org?

EthanWaldo (Wed, 03 Jun 2020 16:44:34 GMT):
Theoretically you could create a new transaction that changes the data, but if the nature of the transaction prevents a majority of peers from accepting, you're stuck with the data.

EthanWaldo (Wed, 03 Jun 2020 16:44:34 GMT):
Theoretically you could create a new transaction that changes the data, but if the nature of the transaction prevents a majority of peers from accepting the change, you're stuck with the data.

usamahabib95 (Wed, 03 Jun 2020 20:03:46 GMT):
No HLF 2.0 has introduced a new chaincode methodology . If you have installed chaincode using old commands then they won't work

usamahabib95 (Wed, 03 Jun 2020 20:04:27 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/commands/peerlifecycle.html follow this one

Swhite215 (Wed, 03 Jun 2020 21:41:55 GMT):
Has anyone successfully implemented offline transaction signing using either: https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-sign-transaction-offline.html or https://hyperledger.github.io/fabric-sdk-node/master/tutorial-sign-transaction-offline.html tutorial? I am running into an issue with this line: const { prvKeyHex } = KEYUTIL.getKey(privateKeyPEM)

Swhite215 (Wed, 03 Jun 2020 21:41:55 GMT):
Has anyone successfully implemented offline transaction signing using either: https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-sign-transaction-offline.html or https://hyperledger.github.io/fabric-sdk-node/master/tutorial-sign-transaction-offline.html tutorial? I am running into an issue with this line: `const { prvKeyHex } = KEYUTIL.getKey(privateKeyPEM)`

Swhite215 (Wed, 03 Jun 2020 21:41:55 GMT):
Has anyone successfully implemented offline transaction signing using either: https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-sign-transaction-offline.html or https://hyperledger.github.io/fabric-sdk-node/master/tutorial-sign-transaction-offline.html tutorial? I am running into an issue with this line: `const { prvKeyHex } = KEYUTIL.getKey(privateKeyPEM)` Instead of returning the hex encoded key, I get undefined. Any thoughts are appreciated!

lotty02cho (Thu, 04 Jun 2020 02:41:34 GMT):
Oh thanks for replying for me:) and now understand!

RahulEth (Thu, 04 Jun 2020 05:19:55 GMT):
is it possible by removing solo ordering service and attach raft orderering service in current network

geni (Thu, 04 Jun 2020 05:30:27 GMT):
Yes it is possible you need to upgrade your .yaml files and change the orderer number.

Abhishek2700 (Thu, 04 Jun 2020 05:33:30 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=r6PaoNup7eDHTGT4x) hi all , can someone please help me with this ?

SecondOne (Thu, 04 Jun 2020 05:51:54 GMT):
Has joined the channel.

SecondOne (Thu, 04 Jun 2020 05:51:54 GMT):
I have read through Hyperledger documentation searching for Ruby SDK but was frustrated when I saw it supports only Nodej, Java and Go. I have found only this repo https://rubygems.org/gems/hyperledger-fabric-sdk which doesn't seem to be Hyperledger's official gem. Any alternatives? RESTful APIs would be great if you have complete well documented one.

SecondOne (Thu, 04 Jun 2020 05:51:54 GMT):
I have read through Hyperledger documentation searching for Ruby SDK but was frustrated when I saw it supports only Nodej, Java and Go. I have found only this repo https://rubygems.org/gems/hyperledger-fabric-sdk which doesn't seem to be Hyperledger's official gem. Any alternatives?

lotty02cho (Thu, 04 Jun 2020 09:24:25 GMT):
hi all. I need to know about my error and have to fix this. actually, I make my network using test-network and start `./network.sh deployCC`. but the problem is ===================== Chaincode is installed on peer0.org3 ===================== Using organization 1 ++ peer lifecycle chaincode queryinstalled ++ res=0 ++ set +x Installed chaincodes on peer: Package ID: fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0, Label: fabcar_1 PackageID is fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0 ===================== Query installed successful on peer0.org1 on channel ===================== Using organization 1 ++ peer lifecycle chaincode approveformyorg -o localhost:7050 --ordererTLSHostnameOverride orderer.org1.example.com --tls true --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --channelID honeybeechannel --name fabcar --version 1 --init-required --package-id fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0 --sequence 1 ++ set +x 2020-06-04 18:21:08.326 KST [chaincodeCmd] ClientWait -> INFO 001 txid [6520a8b4645800152a3c5c765f8af8e8536d6922e7e5f663b3b55c7f3b829a64] committed with status (VALID) at ===================== Chaincode definition approved on peer0.org1 on channel 'honeybeechannel' ===================== Using organization 1 ===================== Checking the commit readiness of the chaincode definition on peer0.org1 on channel 'honeybeechannel'... ===================== Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x { "approvals": { "org1MSP": false, "org2MSP": false, "org3MSP": false } } !!!!!!!!!!!!!!! After 5 attempts, Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed

lotty02cho (Thu, 04 Jun 2020 09:29:37 GMT):
hi all. I need to know about my error and have to fix this. actually, I make my network using test-network using multi host and now I start `./network.sh deployCC.` cmd. but the problem is when I access `peer lifecycle chaincode queryinstalled -> approveformyorg ->checkcommitreadiness`. the error comes out when I start `checkcommitreadiness`. but I don't know where can I fix or change it. ``` ===================== Chaincode is installed on peer0.org3 ===================== Using organization 1 ++ peer lifecycle chaincode queryinstalled ++ res=0 ++ set +x Installed chaincodes on peer: Package ID: fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0, Label: fabcar_1 PackageID is fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0 ===================== Query installed successful on peer0.org1 on channel ===================== Using organization 1 ++ peer lifecycle chaincode approveformyorg -o localhost:7050 --ordererTLSHostnameOverride orderer.org1.example.com --tls true --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --channelID honeybeechannel --name fabcar --version 1 --init-required --package-id fabcar_1:65710fa851d5c73690faa4709ef40b798c085e7210c46d44f8b1e2d5a062c9b0 --sequence 1 ++ set +x 2020-06-04 18:21:08.326 KST [chaincodeCmd] ClientWait -> INFO 001 txid [6520a8b4645800152a3c5c765f8af8e8536d6922e7e5f663b3b55c7f3b829a64] committed with status (VALID) at ===================== Chaincode definition approved on peer0.org1 on channel 'honeybeechannel' ===================== Using organization 1 ===================== Checking the commit readiness of the chaincode definition on peer0.org1 on channel 'honeybeechannel'... ===================== Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x Attempting to check the commit readiness of the chaincode definition on peer0.org1 secs ++ peer lifecycle chaincode checkcommitreadiness --channelID honeybeechannel --signature-policy 'OR('\''org1MSP.peer'\'', '\''org2MSP.peer'\'', '\''org3MSP.peer'\'')' --name fabcar --version 1 --sequence 1 --output json --init-required --cafile /opt/gopath/src/github.com/hyperledger/honeybee-test-network-raft/organizations/ordererOrganizations/example.com/orderers/orderer.org1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ++ res=0 ++ set +x { "approvals": { "org1MSP": false, "org2MSP": false, "org3MSP": false } } !!!!!!!!!!!!!!! After 5 attempts, Check commit readiness result on peer0.org1 is INVALID !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed ``` Does anyone watched similar error? My boss really want to check this thing... so I need your help guys... PLEASE.. THANKS IN ADVANCE T_T/

lotty02cho (Thu, 04 Jun 2020 09:35:20 GMT):
This is suspicious warn peer logs ``` 2020-06-04 09:18:05.146 UTC [peer.orderers] Update -> WARN 054 Config defines both orderer org specific endpoints and global endpoints, global endpoints will be ignored channel=honeybeechannel 2020-06-04 09:18:05.147 UTC [gossip.gossip] JoinChan -> INFO 055 Joining gossip network of channel honeybeechannel with 3 organizations 2020-06-04 09:18:05.148 UTC [gossip.gossip] learnAnchorPeers -> INFO 056 Learning about the configured anchor peers of org1MSP for channel honeybeechannel : [{peer0.org1.honeybee.com 7051}] 2020-06-04 09:18:05.148 UTC [gossip.gossip] learnAnchorPeers -> INFO 057 Anchor peer with same endpoint, skipping connecting to myself 2020-06-04 09:18:05.148 UTC [gossip.gossip] learnAnchorPeers -> INFO 058 Learning about the configured anchor peers of org2MSP for channel honeybeechannel : [{peer0.org2.honeybee.com 7051}] 2020-06-04 09:18:05.148 UTC [gossip.gossip] learnAnchorPeers -> INFO 059 Learning about the configured anchor peers of org3MSP for channel honeybeechannel : [{peer0.org3.honeybee.com 7051}] 2020-06-04 09:18:05.149 UTC [committer.txvalidator] Validate -> INFO 05a [honeybeechannel] Validated block [3] in 15ms 2020-06-04 09:18:05.150 UTC [gossip.privdata] getTxInfoFromTransactionBytes -> WARN 05b Invalid transaction type: header type is not an endorser transaction 2020-06-04 09:18:05.150 UTC [gossip.privdata] prepareBlockPvtdata -> INFO 05c Successfully fetched all eligible collection private write sets for block [3] channel=honeybeechannel 2020-06-04 09:18:05.172 UTC [kvledger] CommitLegacy -> INFO 05d [honeybeechannel] Committed block [3] with 1 transaction(s) in 22ms (state_validation=0ms block_and_pvtdata_commit=15ms state_commit=2ms) commitHash=[37be5332b9300ef2e301f0e0e5385a0a729d3fef5c9ea4a7bd4766bb91998a31] 2020-06-04 09:18:05.206 UTC [comm.grpc.server] 1 -> INFO 05e unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2020-06-04T09:18:07.206Z grpc.peer_address=172.27.42.88:33720 grpc.peer_subject="CN=peer0.org3.honeybee.com,L=San Francisco,ST=California,C=US" grpc.code=OK grpc.call_duration=63.408µs ```

lotty02cho (Thu, 04 Jun 2020 09:37:06 GMT):
and this is suspicious warn orderer logs. ``` 2020-06-04 09:17:52.903 UTC [orderer.common.broadcast] Handle -> WARN 41c Error reading from 172.27.42.132:37146: rpc error: code = Canceled desc = context canceled 2020-06-04 09:17:52.903 UTC [comm.grpc.server] 1 -> INFO 41d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.27.42.132:37146 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=24.609702ms 2020-06-04 09:17:52.906 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 41e Writing block [1] (Raft index: 5) to ledger channel=honeybeechannel node=1 2020-06-04 09:17:59.006 UTC [comm.grpc.server] 1 -> INFO 41f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.27.42.132:37148 grpc.code=OK grpc.call_duration=18.146488ms 2020-06-04 09:17:59.018 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 420 Writing block [2] (Raft index: 6) to ledger channel=honeybeechannel node=1 2020-06-04 09:18:05.111 UTC [orderer.common.broadcast] Handle -> WARN 421 Error reading from 172.27.42.132:37152: rpc error: code = Canceled desc = context canceled 2020-06-04 09:18:05.111 UTC [comm.grpc.server] 1 -> INFO 422 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.27.42.132:37152 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=22.806762ms 2020-06-04 09:18:05.112 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 423 Writing block [3] (Raft index: 7) to ledger channel=honeybeechannel node=1 2020-06-04 09:21:08.309 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 424 Writing block [4] (Raft index: 8) to ledger channel=honeybeechannel node=1 2020-06-04 09:21:08.331 UTC [orderer.common.broadcast] Handle -> WARN 425 Error reading from 172.27.42.132:37180: rpc error: code = Canceled desc = context canceled ```

lotty02cho (Thu, 04 Jun 2020 09:37:06 GMT):
and this is suspicious warn orderer logs. ``` 2020-06-04 09:17:52.903 UTC [orderer.common.broadcast] Handle -> WARN 41c Error reading from 000.00.00.000:37146: rpc error: code = Canceled desc = context canceled 2020-06-04 09:17:52.903 UTC [comm.grpc.server] 1 -> INFO 41d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=000.00.00.000:37146 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=24.609702ms 2020-06-04 09:17:52.906 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 41e Writing block [1] (Raft index: 5) to ledger channel=honeybeechannel node=1 2020-06-04 09:17:59.006 UTC [comm.grpc.server] 1 -> INFO 41f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=000.00.00.000:37148 grpc.code=OK grpc.call_duration=18.146488ms 2020-06-04 09:17:59.018 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 420 Writing block [2] (Raft index: 6) to ledger channel=honeybeechannel node=1 2020-06-04 09:18:05.111 UTC [orderer.common.broadcast] Handle -> WARN 421 Error reading from 000.00.00.000:37152: rpc error: code = Canceled desc = context canceled 2020-06-04 09:18:05.111 UTC [comm.grpc.server] 1 -> INFO 422 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=000.00.00.000:37152 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=22.806762ms 2020-06-04 09:18:05.112 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 423 Writing block [3] (Raft index: 7) to ledger channel=honeybeechannel node=1 2020-06-04 09:21:08.309 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 424 Writing block [4] (Raft index: 8) to ledger channel=honeybeechannel node=1 2020-06-04 09:21:08.331 UTC [orderer.common.broadcast] Handle -> WARN 425 Error reading from 000.00.00.000:37180: rpc error: code = Canceled desc = context canceled ```

y0zg (Thu, 04 Jun 2020 12:18:27 GMT):
Hello, anyone knows how to deal with such timeout errors? 2020-06-03 21:56:08.138 INFO 1 --- [nio-9999-exec-9] c.i.c.c.fabric.FabricConnectorImpl : Querying chaincode: registry version: 0.21 function: getOwnPu with args:[null] 2020-06-03 21:56:18.143 ERROR 1 --- [nio-9999-exec-9] org.hyperledger.fabric.sdk.Channel : Channel Channel{id: 1, name: common} sending proposal with transaction 57a3751ae199fda32017b8b91f9bfd6dbafd3128c53af6f4537ba8136c64533c to Peer{ id: 3, name: org3peer1, channelName: common, url: grpcs://peer1.appdomain.cloud:7051, mspid: org3msp} failed because of timeout(10000 milliseconds) expiration

y0zg (Thu, 04 Jun 2020 12:18:27 GMT):
Hello, anyone knows how to deal with such timeout errors? ``` 2020-06-03 21:56:08.138 INFO 1 --- [nio-9999-exec-9] c.i.c.c.fabric.FabricConnectorImpl : Querying chaincode: registry version: 0.21 function: getOwnPu with args:[null] 2020-06-03 21:56:18.143 ERROR 1 --- [nio-9999-exec-9] org.hyperledger.fabric.sdk.Channel : Channel Channel{id: 1, name: common} sending proposal with transaction 57a3751ae199fda32017b8b91f9bfd6dbafd3128c53af6f4537ba8136c64533c to Peer{ id: 3, name: org3peer1, channelName: common, url: grpcs://peer1.appdomain.cloud:7051, mspid: org3msp} failed because of timeout(10000 milliseconds) expiration ```

madhu33413 (Thu, 04 Jun 2020 16:40:15 GMT):
I am observing following issue when running enrollAdmin.java that comes with fabric-samples in 2.1.1 version javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1903) at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1886) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1402) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) Any help is greatly appreciated

Hong3Nguyen (Thu, 04 Jun 2020 20:47:29 GMT):
Hi everyone, I got an error from fabric SDK as error: [AbstractStrategy]: constructor: No event hubs for strategy when I try to invoke a message. Do you have any idea? Thank you

Hong3Nguyen (Thu, 04 Jun 2020 20:47:29 GMT):
Hi everyone, I got an error from fabric SDK as:error: [AbstractStrategy]: constructor: No event hubs for strategy Failed to submit transaction: Error: No event hubs for strategywhen I try to invoke a message. Do you have any idea? Thank you

Hong3Nguyen (Thu, 04 Jun 2020 20:47:29 GMT):
Hi everyone, I got an error from fabric SDK when I try to invoke and query a message. Do you have any idea? Thank you error: [AbstractStrategy]: constructor: No event hubs for strategy Failed to submit transaction: Error: No event hubs for strategy and error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []

mrudav.shukla (Fri, 05 Jun 2020 05:11:02 GMT):
This might be because of the options set in connection profile for the peers. Have you tried checking if 'chaincodeQuery' is set to true for the peers?

mrudav.shukla (Fri, 05 Jun 2020 05:11:02 GMT):
Great. Also, do confirm if the TLS certs used in the connection profile matches with the ones with which respective peers are configured.

mrudav.shukla (Fri, 05 Jun 2020 05:11:02 GMT):
This might be because of the options set in connection profile for the peers. Have you tried checking if 'chaincodeQuery' is set to true for the peers?

Hong3Nguyen (Fri, 05 Jun 2020 05:23:44 GMT):
opp I see. Thank you so much for it. I find the problem :D

Hong3Nguyen (Fri, 05 Jun 2020 05:37:34 GMT):
Hi, I have a nother problem, I think related to TLS handshake.

Hong3Nguyen (Fri, 05 Jun 2020 05:37:34 GMT):
Hi, I have a nother problem, I think related to TLS handshake. I got Error: 2 UNKNOWN: Stream removed

mrudav.shukla (Fri, 05 Jun 2020 05:41:53 GMT):
Would be helpful if you paste some peer logs here.

Hong3Nguyen (Fri, 05 Jun 2020 05:45:21 GMT):
yeah, after use a query I got from the peer [core.comm] ServerHandshake -> ERRO 0bd TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=192.168.160.1:36572

Hong3Nguyen (Fri, 05 Jun 2020 05:49:41 GMT):
ah I found the solution. I think I have to change from grpc to grpcs and http to https to satisfy requirement of TLS

Hong3Nguyen (Fri, 05 Jun 2020 05:49:58 GMT):
anw, thank you so much for the support (y)

Hong3Nguyen (Fri, 05 Jun 2020 05:49:58 GMT):
anw, thank you so much for the support (y) cheeer and have a nice day :D

mrudav.shukla (Fri, 05 Jun 2020 05:52:05 GMT):
Great. Also, do confirm if the TLS certs used in the connection profile matches with the ones with which respective peers are configured.

Amanullah68 (Fri, 05 Jun 2020 09:06:32 GMT):
how to achieve privacy between users with in an org?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: ` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: ` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: ` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `` ` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied `` ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied `` ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied `` ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `` `2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied `` ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: `` 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

sergeikus (Fri, 05 Jun 2020 10:40:52 GMT):
Hello I have a HLF network created with Fabric CA with 3 organization (orderer-org, ea-org, auditor-org) and the main process of creating necessary crypto material is used from the Fabric CA guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html#setup-tls-ca The problem is when all peers have joined the channel, peers are showing me this warnings: ```2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 796 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 797 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 798 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 799 0xc00319ced0 signed by 1 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79a 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79b 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79c 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79d 0xc00319ced0 signed by 2 principal evaluation starts (used [false]) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79e 0xc00319ced0 processing identity 0 - &{ea-orgMSP 9d61b3b9b6a63c609aeae0d64c8c2e4908be42a53281c81b953b74e70a3b6828} 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 79f 0xc00319ced0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected auditor-orgMSP, got ea-orgMSP) 2020-06-05 10:30:37.993 UTC [cauthdsl] func2 -> DEBU 7a0 0xc00319ced0 principal evaluation fails 2020-06-05 10:30:37.993 UTC [cauthdsl] func1 -> DEBU 7a1 0xc00319ced0 gate 1591353037993416242 evaluation fails 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a2 Signature set did not satisfy policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a3 == Done Evaluating *cauthdsl.policy Policy /Channel/Application/auditor-org/Readers 2020-06-05 10:30:37.994 UTC [policies] func1 -> DEBU 7a4 Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ ea-org/Readers auditor-org/Readers ] 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a5 Signature set did not satisfy policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [policies] EvaluateSignedData -> DEBU 7a6 == Done Evaluating *policies.ImplicitMetaPolicy Policy /Channel/Application/Readers 2020-06-05 10:30:37.994 UTC [gossip.channel] func5 -> WARN 7a7 Peer {"CN":"peer2-ea-org","Issuer-CN":"ea-ca","Issuer-L-ST-C":"[]-[]-[US]","Issuer-OU":["Fabric"],"L-ST-C":"[]-[]-[US]","MSP":"ea-orgMSP","OU":["peer"]} isn't eligible for channel tiviledge : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ``` and looks like because of that I can't approve chaincode for organization as orderer keeps telling me the same reason as in the peers: 0-sub-policies were satisfied... Maybe someone knows what can be the cause ?

Adhavpavan (Fri, 05 Jun 2020 19:08:08 GMT):
Hello Guys, I am using fabric network sdk and fabric v2.1. When I try to query private data hash, getting weird string like (�t���־/�Yr=H��3��K��ܻ66�), What kind of encoding is this?

Amanullah68 (Fri, 05 Jun 2020 21:09:43 GMT):
how to achieve user level privacy??

JakeAJ (Fri, 05 Jun 2020 21:39:12 GMT):
Has joined the channel.

JakeAJ (Fri, 05 Jun 2020 21:39:12 GMT):
Question in regards to Hyperledger fabric Metrics for prometheus, anyone with ideas on how to measure throughput in transactions/second ? There is a value that can be scraped called 'ledger_transaction_count' - though I am not sure how this would show the true throughput of the network? A naive way would be to sum(rate of redger_transaction_count) though I am not sure whether this will reflect unique transaction in the ledger? Any suggestions? The hyperledger-fabric docs doesn't really emphasize how this is calculated which makes it harder to interpret what the value really indicates. Thanks. See metrics: https://hyperledger-fabric.readthedocs.io/en/release-2.0/metrics_reference.html

JakeAJ (Fri, 05 Jun 2020 21:39:12 GMT):
Question in regards to Hyperledger fabric Metrics for prometheus, anyone with ideas on how to measure throughput in transactions/second ? There is a value that can be scraped called 'ledger_transaction_count' - though I am not sure how this would show the true throughput of the network? A naive way would be to to use Grafana sum(rate of redger_transaction_count) though I am not sure whether this will reflect unique transactions in the ledger? Any suggestions? The hyperledger-fabric docs don't really emphasize how this is calculated which makes it harder to interpret what the value really indicates. The same applies for the latency of the transactions - which one of these would make sense to use for measuring average latency and how would you calculate it? Thanks. See metrics: https://hyperledger-fabric.readthedocs.io/en/release-2.0/metrics_reference.html

JakeAJ (Fri, 05 Jun 2020 21:43:49 GMT):
Probably because the sha256 hash is returned as byte array or something, try serializing it to a string

JakeAJ (Fri, 05 Jun 2020 22:00:22 GMT):
Question in regards to Hyperledger fabric Metrics for prometheus, anyone with ideas on how to measure throughput in transactions/second ? There is a value that can be scraped called 'ledger_transaction_count' - though I am not sure how this would show the true throughput of the network? A naive way would be to to use Grafana sum(rate of redger_transaction_count) though I am not sure whether this will reflect unique transactions in the ledger? Any suggestions? The hyperledger-fabric docs don't really emphasize how this is calculated which makes it harder to interpret what the value really indicates. The same applies for the latency of the transactions - which one of these would make sense to use for measuring average latency and how would you calculate it? Thanks. See metrics: https://hyperledger-fabric.readthedocs.io/en/release-2.0/metrics_reference.html

Khawlahssn (Sat, 06 Jun 2020 06:01:25 GMT):
Has joined the channel.

Khawlahssn (Sat, 06 Jun 2020 06:01:26 GMT):
hey everyone! why am i getting an Error 404 when i open the web composer playground? is anyone else having this issue?

lotty02cho (Sat, 06 Jun 2020 06:05:10 GMT):
If I have a problem about "Check commit readiness is INVALID", Which part do I have to check?

Adhavpavan (Sat, 06 Jun 2020 06:41:56 GMT):
@JakeAJ , right , it returning as buffer

davidkel (Sat, 06 Jun 2020 06:59:33 GMT):
The website has been taken down. Composer is now end of life

Khawlahssn (Sat, 06 Jun 2020 07:13:23 GMT):
well thats pretty sad *sigh* :( thanks tho

Khawlahssn (Sat, 06 Jun 2020 07:13:23 GMT):
well thats pretty sad *sigh* thanks tho

deepakbajaj (Sat, 06 Jun 2020 09:48:40 GMT):
Has joined the channel.

madhu33413 (Sat, 06 Jun 2020 10:54:14 GMT):
I am facing problem while enrolling admin in Hyperledger fabric 2..1.1

madhu33413 (Sat, 06 Jun 2020 10:54:20 GMT):
following is the error

madhu33413 (Sat, 06 Jun 2020 10:54:22 GMT):
Exception is org.hyperledger.fabric_ca.sdk.exception.InvalidArgumentException: Unable to add CA certificate, can't open certificate file /mnt/yaliyomo/Blockchain_seup/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem

madhu33413 (Sat, 06 Jun 2020 10:54:41 GMT):
I gave correct path but it still fails with above exception

madhu33413 (Sat, 06 Jun 2020 10:54:51 GMT):
any help is greatly appreciated

jonasfiorini (Sat, 06 Jun 2020 15:10:34 GMT):
Has joined the channel.

rohitroyrr8 (Sat, 06 Jun 2020 19:46:39 GMT):
can u confirm file permission for the user you are accessing from. looks like this .pem file has root permission only.

chbtt (Sat, 06 Jun 2020 21:47:43 GMT):
Has joined the channel.

rohitroyrr8 (Sat, 06 Jun 2020 22:39:52 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1` .....getting this error while upgrading chaincode. any help will be appreciated.

madhu33413 (Sun, 07 Jun 2020 09:19:55 GMT):
when I ran from fabric-samples that is setup with HLF , it works fine. I will check and let you know. Thanks a lot for the suggestion.

cybero (Sun, 07 Jun 2020 17:50:13 GMT):
Has joined the channel.

cybero (Sun, 07 Jun 2020 17:50:14 GMT):
hi

cybero (Sun, 07 Jun 2020 17:50:16 GMT):
I would like to learn how to deploy an Hyperledger Fabric network (with 2 or 3 organizations, each one on a different server) and install a .bna on it.

cybero (Sun, 07 Jun 2020 17:50:42 GMT):
I know how to deploy the network in one single server, but I don't know how to do it using different servers

cybero (Sun, 07 Jun 2020 17:50:51 GMT):
I can use docker compose for creating the network

cybero (Sun, 07 Jun 2020 17:51:02 GMT):
but how can I deploy the .bna in the whole network ?

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react frontend without destroying the format and fields? Each time I try to use res.send(proposal), I end up getting this Type Error: _TypeError: proposal.toBuffer is not a function_ when calling proposal.toBuffer(). `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` `const proposalBytes = proposal.toBuffer();` - line that causes a problem.

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react frontend without destroying the format and fields? Each time I try to use res.send(proposal), I end up getting this Type Error: _TypeError: proposal.toBuffer is not a function_ when calling proposal.toBuffer(). `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` - generating proposal server-side. `const proposalBytes = proposal.toBuffer();` - line that causes a problem on my client.

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react frontend without destroying the format, fields and methods? I am using Fabric-SDK-Node on the server-side to generate the proposal. I then send the proposal using res.send(proposal). Now when I try to run .toBuffer() on the client-side, I end up getting this Type Error: TypeError: proposal.toBuffer is not a function. `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` - generating proposal server-side with Fabric-SDK-Node `const proposalBytes = proposal.toBuffer();` - line that causes a problem on my client.

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react frontend without destroying the format, fields and methods? I am using Fabric-SDK-Node v1.4 on the server-side to generate the proposal. I then send the proposal using res.send(proposal). Now when I try to run .toBuffer() on the client-side, I end up getting this Type Error: TypeError: proposal.toBuffer is not a function. `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` - generating proposal server-side with Fabric-SDK-Node `const proposalBytes = proposal.toBuffer();` - line that causes a problem on my client.

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react-native frontend without destroying the format, fields and methods? I am using Fabric-SDK-Node v1.4 on the server-side to generate the proposal. I then send the proposal using res.send(proposal). Now when I try to run .toBuffer() on the client-side, I end up getting this Type Error: TypeError: proposal.toBuffer is not a function. `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` - generating proposal server-side with Fabric-SDK-Node `const proposalBytes = proposal.toBuffer();` - line that causes a problem on my client.

Swhite215 (Sun, 07 Jun 2020 19:55:20 GMT):
Does anyone have any advice on how to get the proposal in the below line, from an express middleware, to a react-native frontend without destroying the format, fields and methods? I am using Fabric-SDK-Node v1.4 on the server-side to generate the proposal. I then send the proposal using res.send(proposal). Now when I try to run .toBuffer() on the client-side, I end up getting this Type Error: TypeError: proposal.toBuffer is not a function. `let {proposal, txId } = channel.generateUnsignedProposal(transactionProposal, mspID, cert);` - generating proposal server-side with Fabric-SDK-Node `const proposalBytes = proposal.toBuffer();` - line that causes a problem on my client. The reason I am returning the proposal to the client, instead of doing everything on the middleware, is because I am looking to sign transactions offline with a private device key.

chintanr11 (Mon, 08 Jun 2020 05:56:04 GMT):
Hi, can anyone please confirm if this capability is available in v1.4? I want 4 intermediate CAs for a peer org: ICA1, ICA2, ICA3 and ICA4 - one for every Node OU (peer, orderer, admin and client). Let's say if I place ICA1 as the "cacerts" attribute in Peer Node OU of the channel config, then will a peer identity under a different ICA (2, 3 or 4), be able to satisfy a policy which says signature of "OrgMSP.peer"?

Mopack (Mon, 08 Jun 2020 07:34:40 GMT):
Has joined the channel.

madhu33413 (Mon, 08 Jun 2020 10:26:03 GMT):
thanks rohit , pointed reason is the root cause of error

Khawlahssn (Mon, 08 Jun 2020 11:35:11 GMT):
What do you recommend as a replacement for Hyperledger Composer?

davidkel (Mon, 08 Jun 2020 13:55:15 GMT):
There isn't anything that provides all the capabilities of composer in a single package (as composer did). Depends what specific capabilities of composer you were planning on using really

Khawlahssn (Tue, 09 Jun 2020 05:30:19 GMT):
Have you heard of Convector? they're promoting it as an alternative to composer hmm

davidkel (Tue, 09 Jun 2020 07:04:03 GMT):
I've heard of it, but never looked at or used it. Is it still going ? Is there still active development on it and an active community ?

Khawlahssn (Tue, 09 Jun 2020 07:10:14 GMT):
yes it is! i might start using it hmm but im weighing my options first. they have an active community on discord (https://discord.com/invite/twRwpWt)

chintanr11 (Tue, 09 Jun 2020 11:22:01 GMT):
The CRL will be generated based on the property given as "next update". Now the question is, is it possible to update the local MSPs of the nodes in the network with the latest CRL automatically? Does the peer nodes have a capability which will allow them periodically and automatically sync the CRL? Without having the org admin to fetch it from CA and manually update the local file system of the peer?

SamYuan1990 (Tue, 09 Jun 2020 15:09:51 GMT):
hi guys, I have a question about externalBuilders, I want to basing on byfn code install an external cc on my laptop and peer1.org2.example.com able to access it. As the chaincode I want to run as localhost:9999, so I suppose to return 0 for build,detect and release scripts. here is metadata.json ``` {"path":"","type":"external","label":"mycc"} ``` connection.json ``` { "address": "172.25.0.1:9999", "dial_timeout": "10s", "tls_required": "false", "client_auth_required": "false" } ``` ``` externalBuilders: - path: /bin name: mycc ``` two questions: 0) from config above, when I install the code.tar.gz it makes my peer1.org2.example.com container down... with nil pointer error. 1) may I able to make peer1.org1.example.com running chaincode in docker and peer1.org2.example.com as externalbuilder? thanks and regards

SamYuan1990 (Tue, 09 Jun 2020 15:41:21 GMT):
is that deal to I missed `bin/run scripts.` ?

seanas200 (Wed, 10 Jun 2020 05:06:36 GMT):
Has joined the channel.

seanas200 (Wed, 10 Jun 2020 05:06:37 GMT):
Hello, I am following the BYFN tutorial, and when I bring up the network using ./byfn.sh up, I encounter errors in failing to load certificates such as the ones below. I noticed that the path description is invalid where it is suppoed to be /ca... instead of \ca... I restarted the network by performing ./byfn.sh down and then ./byfn.sh up but it still doesn't work. Anyone experience this issue and know a solution? Thanks! `2020-06-10 05:01:17.072 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.080 UTC [msp] loadCertificateAt -> WARN 002 Failed loading PeerOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.087 UTC [msp] loadCertificateAt -> WARN 003 Failed loading AdminOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.093 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] `

seanas200 (Wed, 10 Jun 2020 05:06:37 GMT):
Hello, I am following the BYFN tutorial, and when I bring up the network using ./byfn.sh up, I encounter errors in failing to load certificates such as the ones below. I noticed that the path description is invalid where it is suppoed to be /ca... instead of \ca... I restarted the network by performing ./byfn.sh down and then ./byfn.sh up but it still doesn't work. Anyone experience this issue and know a solution? Thanks! OS: Windows 10 Version 2004 (latest) Docker version: 19.03.8 docker-compose version: 1.25.5 `2020-06-10 05:01:17.072 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.080 UTC [msp] loadCertificateAt -> WARN 002 Failed loading PeerOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.087 UTC [msp] loadCertificateAt -> WARN 003 Failed loading AdminOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.093 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] `

seanas200 (Wed, 10 Jun 2020 05:06:37 GMT):
Hello, I am following the BYFN tutorial, and when I bring up the network using ./byfn.sh up, I encounter errors in failing to load certificates such as the ones below. I noticed that the path description is invalid where it is suppoed to be /ca... instead of \ca... I restarted the network by performing ./byfn.sh down and then ./byfn.sh up but it still doesn't work. Anyone experience this issue and know a solution? Thanks! OS: Windows 10 Home Version 2004 64-bit (latest) Docker version: 19.03.8 docker-compose version: 1.25.5 `2020-06-10 05:01:17.072 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.080 UTC [msp] loadCertificateAt -> WARN 002 Failed loading PeerOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.087 UTC [msp] loadCertificateAt -> WARN 003 Failed loading AdminOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.093 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] `

seanas200 (Wed, 10 Jun 2020 05:06:37 GMT):
Hello, I am following the BYFN tutorial, and when I bring up the network using ./byfn.sh up, I encounter errors in failing to load certificates such as the ones below. I noticed that the path description is invalid where it is suppoed to be /ca... instead of \ca... I restarted the network by performing ./byfn.sh down and then ./byfn.sh up but it still doesn't work. Anyone experience this issue and know a solution? Thanks! OS: Windows 10 Home Version 2004 64-bit (latest) Docker version: 19.03.8 docker-compose version: 1.25.5 ``` 2020-06-10 05:01:17.072 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.080 UTC [msp] loadCertificateAt -> WARN 002 Failed loading PeerOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.087 UTC [msp] loadCertificateAt -> WARN 003 Failed loading AdminOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] 2020-06-10 05:01:17.093 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem: no such file or directory] ```

Amanullah68 (Wed, 10 Jun 2020 05:26:39 GMT):
hi guy's, how I query all from a private collection?? thanks advance

Amanullah68 (Wed, 10 Jun 2020 05:27:08 GMT):
I want to fetch all my data from a private collection ledger

pkirkinezis (Wed, 10 Jun 2020 07:19:31 GMT):
Hi to the community . I am currently having a fabric network setup . I use cryptogen to generate admin certification and then use them to raise a fabric-ca container using docker . docker run -d --network net_name --name host_name --hostname host_name --env-file env_file -v org_certs hyperledger/fabric-ca:latest But i am very confused of how to create new users additionally to admin.

chintanr11 (Wed, 10 Jun 2020 12:33:40 GMT):
Hi, what is the best way to identify the number of active nodes in RAFT cluster in HLF v1.4? I can identify if there is leader or not, but I need number of active nodes to check if let's say changes to RAFT cluster will make me loose current quorum or not?

BrettLogan (Wed, 10 Jun 2020 13:20:34 GMT):
You can see an example of enrolling and generating crypto for Admin, Peer, Orderer and Users here: https://raw.githubusercontent.com/btl5037/fabric-test/softhsm/regression/hsm/organizations/fabric-ca/registerEnroll.sh

BrettLogan (Wed, 10 Jun 2020 13:23:34 GMT):
There are in infinite number of issues using windows, its very difficult to debug as you have to be absolutely perfect when configuring your system. I recommend setting up a linux VM and using that

mtng (Wed, 10 Jun 2020 14:49:45 GMT):
Madrid18

alejoacosta (Wed, 10 Jun 2020 17:40:09 GMT):
Hello Fabric Team! This is a silly question I think. But I am not able to answer it my self. Can you have a Organisation with identities whose certificates are issued by different CAs? In other words, can you have 2 `fabric-ca` with one Organization? i.e., `peer1` with certificates issued by `ca1` and `peer2` with certificates issued by `ca2`

yacovm (Wed, 10 Jun 2020 18:20:45 GMT):
yes

dcof (Wed, 10 Jun 2020 20:57:21 GMT):
Hi, I hope this is the right place to ask a question about chaincode development: I'm currently checking the java FabCar chaincode implementation and some other examples on the web and i noticed two ways of passing parameters: as plain strings or as an args array of Strings. My question: Is it possible to pass, for example a List of Integers as parameters to a chaincode function? If yes, is there any documentation or tutorial available? In general, I find quite difficult to find some step by step tutorials for developing a chaincode. Any help is much appreciated

pkirkinezis (Thu, 11 Jun 2020 08:08:41 GMT):
thanks @BrettLogan i will take a look on that example. I am very confused also on the operation of a fabric-ca because the fabric-ca documentation exaplains a network with FABRIC-CA tls ca and also orderer ca and also peer fabric-ca

majety.1 (Thu, 11 Jun 2020 08:25:56 GMT):
Hello, I'm trying to use byfn using fabric 1.4 . I'm trying to use manual steps for building the network. I'm getting this error while trying to use the command Command : `peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem` Error: `2020-06-11 08:20:02.370 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist` The folder exists when I check it in the folder location. I'm using docker toolbox. Also the example runs fine if i use byfn script given.

majety.1 (Thu, 11 Jun 2020 08:35:28 GMT):
the contents in folder are not mounted completely although it has mentioned in volumes

majety.1 (Thu, 11 Jun 2020 08:35:28 GMT):
the contents in folder are not mounted completely although it has mentioned in volumes Given below is the volumes inside my dockercompose cli yaml file `volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts`

Bolzo 1 (Thu, 11 Jun 2020 10:22:49 GMT):
Hi, i'm trying to start a peer but I get the error reportet in the below log dump. I can't figure out how to solve it. ``` 2020-06-05 08:41:17.126 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 10.0.9.241:9151 2020-06-05 08:41:17.126 UTC [peer] getLocalAddress -> INFO 003 Returning peer1.org3.mydomain.com:9151 2020-06-05 08:41:17.137 UTC [nodeCmd] initGrpcSemaphores -> INFO 004 concurrency limit for endorser service is 2500 2020-06-05 08:41:17.137 UTC [nodeCmd] initGrpcSemaphores -> INFO 005 concurrency limit for deliver service is 2500 2020-06-05 08:41:17.137 UTC [nodeCmd] serve -> INFO 006 Starting peer with TLS enabled 2020-06-05 08:41:17.204 UTC [ledgermgmt] NewLedgerMgr -> INFO 007 Initializing LedgerMgr 2020-06-05 08:41:17.588 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 008 Created state database _replicator 2020-06-05 08:41:17.697 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 009 Created state database fabric__internal 2020-06-05 08:41:17.749 UTC [couchdb] runWarmIndexAllIndexes -> ERRO 00a Error detected during WarmIndexAllIndexes(): error handling CouchDB request. Error:not_found, Status Code:404, Reason:missing github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchInstance).handleRequest /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1921 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).handleRequest /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1730 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).ListIndex /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1231 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).WarmIndexAllIndexes /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1404 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).runWarmIndexAllIndexes /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1391 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:137 ```

Bolzo 1 (Thu, 11 Jun 2020 10:22:49 GMT):
Hi, I'm trying to start a peer but I get the error reported in the log dump below. I can't figure out how to solve it. ``` 2020-06-05 08:41:17.126 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 10.0.9.241:9151 2020-06-05 08:41:17.126 UTC [peer] getLocalAddress -> INFO 003 Returning peer1.org3.mydomain.com:9151 2020-06-05 08:41:17.137 UTC [nodeCmd] initGrpcSemaphores -> INFO 004 concurrency limit for endorser service is 2500 2020-06-05 08:41:17.137 UTC [nodeCmd] initGrpcSemaphores -> INFO 005 concurrency limit for deliver service is 2500 2020-06-05 08:41:17.137 UTC [nodeCmd] serve -> INFO 006 Starting peer with TLS enabled 2020-06-05 08:41:17.204 UTC [ledgermgmt] NewLedgerMgr -> INFO 007 Initializing LedgerMgr 2020-06-05 08:41:17.588 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 008 Created state database _replicator 2020-06-05 08:41:17.697 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 009 Created state database fabric__internal 2020-06-05 08:41:17.749 UTC [couchdb] runWarmIndexAllIndexes -> ERRO 00a Error detected during WarmIndexAllIndexes(): error handling CouchDB request. Error:not_found, Status Code:404, Reason:missing github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchInstance).handleRequest /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1921 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).handleRequest /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1730 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).ListIndex /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1231 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).WarmIndexAllIndexes /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1404 github.com/hyperledger/fabric/core/ledger/util/couchdb.(*CouchDatabase).runWarmIndexAllIndexes /go/src/github.com/hyperledger/fabric/core/ledger/util/couchdb/couchdb.go:1391 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:137 ```

JeffyJoseph (Thu, 11 Jun 2020 15:55:15 GMT):
Has joined the channel.

JeffyJoseph (Thu, 11 Jun 2020 15:55:15 GMT):
Hi all, I am currently running HLF 1.4.4. I'm trying to figure out a way to deal with expired/revoked node certificates. In this context, wanted to know if there is any alerting/notification mechanism from the nodes themselves when the certificates are expired/revoked? Or must the network administrator keep polling and switch out the certificates as required?

senthilkumarr (Thu, 11 Jun 2020 16:08:53 GMT):
could you please explain Certified Hyperledger Fabric Developer (CHFD) Exam model?

aas312 (Thu, 11 Jun 2020 19:27:27 GMT):
Has joined the channel.

aas312 (Thu, 11 Jun 2020 19:27:27 GMT):
Hello

aas312 (Thu, 11 Jun 2020 19:28:52 GMT):
I want to use logstash's https://www.elastic.co/guide/en/logstash/current/plugins-inputs-couchdb_changes.html couchdb plugin to import data from peer's couchdb into elasticsearch. is this a good idea?

liericiyan (Fri, 12 Jun 2020 08:32:59 GMT):
Has joined the channel.

liericiyan (Fri, 12 Jun 2020 08:33:00 GMT):
https://github.com/hyperledger/fabric/releases/download/v2.1.1/hyperledger-fabric-msys_nt-10.0-16299-amd64-2.1.1.tar.gz

liericiyan (Fri, 12 Jun 2020 08:33:09 GMT):
not found

liericiyan (Fri, 12 Jun 2020 08:33:27 GMT):
how can I do

davidkel (Fri, 12 Jun 2020 09:09:22 GMT):
Only windows based download I can find is https://github.com/hyperledger/fabric/releases/download/v2.1.1/hyperledger-fabric-windows-amd64-2.1.1.tar.gz

chintanr11 (Fri, 12 Jun 2020 11:30:30 GMT):
"if not specified at instantiation time, the endorsement policy defaults to “any member of the organizations in the channel”. For example, a channel with “Org1” and “Org2” would have a default endorsement policy of “OR(‘Org1.member’, ‘Org2.member’)”." Reading the above from documentation, what happens if in above scenario (i.e. default endorsement policy, I add a new peer org (Org3) to the channel and install chaincode on it with same version as on the channel, does the default endorsement policy modify on its own assuming this: "any member of the organizations in the channel"? Or still we need to send a chaincode upgrade command for that?

Amanullah68 (Fri, 12 Jun 2020 11:58:53 GMT):
I have 1000 of banks , Sellers, Traders, Buyers and shippers and they are still increasing. I want to know do I have to treat every single participant like there is 500 banks I can treat every single as an org means 500 orgs only for bank?

Amanullah68 (Fri, 12 Jun 2020 12:00:07 GMT):
Or I can make a generic bankMSP and treat banks as it's users like I have only single bank which includes 1000 of banks.

Amanullah68 (Fri, 12 Jun 2020 12:00:55 GMT):
But point here comes that how can I maintain privacy between these users so that no one can see each other data or just partially.

Amanullah68 (Fri, 12 Jun 2020 12:02:15 GMT):
If I can make 1000 of orgs only for bank, imagine there are 1000's of shippers, sellers, traders and buyers. How can I make millions of orgs and then create channel. It's nearly impossible.

Amanullah68 (Fri, 12 Jun 2020 12:02:33 GMT):
I need your suggestion guy's. Thanks advance

SpecialAgentCooper (Fri, 12 Jun 2020 12:14:42 GMT):
Has joined the channel.

govindvb (Fri, 12 Jun 2020 18:11:37 GMT):
Has joined the channel.

BrettLogan (Sat, 13 Jun 2020 04:04:55 GMT):
This appears to be a bug in the bootstrap script, what version of windows are you running the script on, we definitely don't have it listed in the bootstrap script

jam1729 (Mon, 15 Jun 2020 06:26:31 GMT):
Has joined the channel.

jam1729 (Mon, 15 Jun 2020 06:26:32 GMT):
Hello all, I am trying to find which part of the system chaincode reads / writes (makes API requests) to the CouchDB after the RWsets are verified. When I looked up QSCC, it only has functions related to the ledger and not the statedb. Please help me in locating the parts of code that does that. Correct me if I am wrong anywhere.

dcof (Mon, 15 Jun 2020 10:23:04 GMT):
hi. I currently working a bit on java chaincodes in version 1.4.3. I noticed, that in example02 chaincode, the implementation extends 'ChaincodeBase' while the fabcar example implements 'ContractInterface' and uses annotations. Can somebody explain me the difference and when to use what?

theblockstalk (Mon, 15 Jun 2020 17:54:23 GMT):
when a tx is made in a data collection, only a hash of the tx input is sent to the channel. This hash is sent in a transaction to the channel. Who signs this transaction, and what chaincode does it run in?

theblockstalk (Mon, 15 Jun 2020 20:17:43 GMT):
I am part of a working group writing a to-be-public report covering the data privacy properties of several blockchain data privacy solutions. We are writing a section on Hyperledger Fabric. Would somebody be able to help us ensure that what we have written is up to date with v2.0 and factually correct?

seanas200 (Tue, 16 Jun 2020 01:11:28 GMT):
Hello, I am trying to base my app on fabcar. In startFabric.sh, how do I point CC_SRC_PATH to my chaincode path. It is originally "CC_SRC_PATH=/opt/gopath/src/github.com/chaincode/fabcar/javascript". Thanks!

rmnattas (Tue, 16 Jun 2020 13:02:42 GMT):
Has joined the channel.

Amanullah68 (Wed, 17 Jun 2020 04:55:40 GMT):
Hi guys I'm upgrading my network to fabric 2.0. I got this error while commiting chaincode

Amanullah68 (Wed, 17 Jun 2020 04:56:59 GMT):
Chaincode is approved by all orgs successfully but still endorsement policy failure by all peers while commiting chaincode. don't know why?

Amanullah68 (Wed, 17 Jun 2020 04:57:22 GMT):
===================== Commiting chaincode definition to channel ===================== 2020-06-17 04:47:02.283 UTC [chaincodeCmd] ClientWait -> INFO 001 txid [09bf7d02df6d4ac65f66d2fb92358c8accd2ba7ffdad648e15b546de6af97b4d] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.trader.triterras.com:8051 2020-06-17 04:47:02.305 UTC [chaincodeCmd] ClientWait -> INFO 002 txid [09bf7d02df6d4ac65f66d2fb92358c8accd2ba7ffdad648e15b546de6af97b4d] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.seller.triterras.com:7051 2020-06-17 04:47:02.305 UTC [chaincodeCmd] ClientWait -> INFO 004 txid [09bf7d02df6d4ac65f66d2fb92358c8accd2ba7ffdad648e15b546de6af97b4d] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.banker.triterras.com:10051 2020-06-17 04:47:02.305 UTC [chaincodeCmd] ClientWait -> INFO 003 txid [09bf7d02df6d4ac65f66d2fb92358c8accd2ba7ffdad648e15b546de6af97b4d] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.shipper.triterras.com:11051 2020-06-17 04:47:02.307 UTC [chaincodeCmd] ClientWait -> INFO 005 txid [09bf7d02df6d4ac65f66d2fb92358c8accd2ba7ffdad648e15b546de6af97b4d] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.buyer.triterras.com:9051 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ===================== Chaincode definition committed =====================

theblockstalk (Wed, 17 Jun 2020 10:15:49 GMT):
@davidkel @BrettLogan any ideas for who could help with this?

SpecialAgentCooper (Wed, 17 Jun 2020 10:47:13 GMT):
have you looked at the docker logs for these nodes?

SpecialAgentCooper (Wed, 17 Jun 2020 11:08:32 GMT):
Can I change the names of the organisations on the test-network? It's not massively important, I'm just trying to find a way into customising the test-network before embarking on designing my own network (not sure where to start with this really, it would be nice to have an intermediate step between test-network and full production network)

Amanullah68 (Wed, 17 Jun 2020 11:08:37 GMT):
yes

Amanullah68 (Wed, 17 Jun 2020 11:08:52 GMT):

Screenshot from 2020-06-17 15-54-34.png

Amanullah68 (Wed, 17 Jun 2020 11:09:02 GMT):
taht's what I got

Amanullah68 (Wed, 17 Jun 2020 11:09:23 GMT):
that's*

Amanullah68 (Wed, 17 Jun 2020 11:09:55 GMT):
2020-06-17 10:49:27.829 UTC [vscc] Validate -> ERRO 779 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode _lifecycle in tx 10:0 failed: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 3 of the 'Endorsement' sub-policies to be satisfied 2020-06-17 10:49:27.829 UTC [committer.txvalidator] validateTx -> ERRO 77a Dispatch for transaction txId = 22e66c121069bd47a524c94a0ac27474a069413d95ef5e015c9d121dd22ef87c returned error: validation of endorsement policy for chaincode _lifecycle in tx 10:0 failed: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 3 of the 'Endorsement' sub-policies to be satisfied

Amanullah68 (Wed, 17 Jun 2020 11:12:51 GMT):
Let me know, how to achieve privacy between users of an org?? How fabric deal with this?

Amanullah68 (Wed, 17 Jun 2020 11:16:46 GMT):
I wish someone help me to get rid of this issue else I'm thinking to leave. I never found any help, it's useless for me so far. I have posted 50+ questions but never got any help. sad

Amanullah68 (Wed, 17 Jun 2020 11:17:07 GMT):

Screenshot from 2020-06-17 15-54-34.png

SpecialAgentCooper (Wed, 17 Jun 2020 11:36:45 GMT):
It looks like you're running this on a custom network rather than the test network - since the error is to do with your endorsement policy, it should be possible to fix this by inspecting your endorsement policy. I don't have any experience with anything other than the test network, so I don't think I can help much with this.

Amanullah68 (Wed, 17 Jun 2020 12:08:16 GMT):
ah, thanks

rakwaht (Wed, 17 Jun 2020 13:53:30 GMT):
Has joined the channel.

rakwaht (Wed, 17 Jun 2020 13:53:31 GMT):
when I package/install/approve a chaincode should I do it on every peer in the organization or just on one?

cylon56 (Wed, 17 Jun 2020 15:53:52 GMT):
I've got an open question. Which Chaincode Shim API is currently considered the most stable/supported? I know Golang was the original but I've seen more GitHub activity on the Node and Java packages lately. I'm also partial to NodeJS for the higher-level abstractions and TS definitions offered. I'm asking since I'm working to decide on which SDK to select for a corporate project. I'd appreciate any thoughts or opinions anyone has.

BrettLogan (Wed, 17 Jun 2020 16:42:08 GMT):
Node is by far the most tested. Though Java works just as well. We run all of the Fabric System Testing using the Node SDK, so I can say unequivocally that it works

TalesGomes (Wed, 17 Jun 2020 23:57:36 GMT):
Has joined the channel.

rakwaht (Thu, 18 Jun 2020 06:52:47 GMT):
Good morning, I posted a question on StackOverflow about an issue I am having deploying Fabric 2.1, here is the link if somone wants to check it out - https://stackoverflow.com/questions/62433109/hyperledger-fabric-join-channel-return-positive-but-does-not-work

JakeAJ (Thu, 18 Jun 2020 08:48:28 GMT):
As a best-practice you should use one MSP for each unique organization. If I were you I'd model the Banks as one bankMSP, alternatively if you have more banks you should have N bank MSPs. In each organization you should define policies on the application and system channel. Then you attach your users to the specific org - such as shippers in shipperIncMSP - privacy can be dealt with in the chaincode itself. Though, it is all up to you how you model the business in the network. However I'd like to point out that when scaling fabric to larger networks dealing and managing 1000 MSPs and different channels gets time-consuming and its not an error-free process. I'd argue that this is one of the largest challenges that comes with using fabric.

JakeAJ (Thu, 18 Jun 2020 08:49:04 GMT):
Java works like a charm, using it in our systems,

JakeAJ (Thu, 18 Jun 2020 08:49:51 GMT):
Ofcourse you can! Change the docker file definitions and ensure your msps/hostnames are updated accordingly

SpecialAgentCooper (Thu, 18 Jun 2020 09:37:27 GMT):
It is really that simple? From what I've found the org names are hard coded into a lot of the scripts so I didn't want to change them in case I broke them

SpecialAgentCooper (Thu, 18 Jun 2020 09:44:10 GMT):
There's a whole maze of subdirectories that seem to define everything about the peer organisations as if the names are not customisable. Are these generated by a tool or by hand? i.e. `fabric-samples/test-network/organizations/peerOrganizations` If I wanted to make my own custom version, how would I go about this?

semosemo941 (Thu, 18 Jun 2020 11:10:49 GMT):
I need to make custom 'fabric' with different name and property for education purpose can I edit 'fabcar.go' file immediately then deploy it https://hyperledger-fabric.readthedocs.io/en/latest/deploy_chaincode.html or there is another way ?

JakeAJ (Thu, 18 Jun 2020 11:18:09 GMT):
Well - it does require some script changes. Fabric is extremely focused on configuring stuff with scripts - i disagree with these solutions as it will be hard to maintain for cases like you have. Though I would suggest that you take a look into APG/PIVT project if you'd like to set up different customized networks within a short time. You don't really need to understand the concepts of Kuberenetes resource files for this. Have a look - https://github.com/APGGroeiFabriek/PIVT

SpecialAgentCooper (Thu, 18 Jun 2020 11:41:49 GMT):
Thanks for this, I'll look into it.

hieutrtr (Thu, 18 Jun 2020 13:52:14 GMT):
Has joined the channel.

hieutrtr (Thu, 18 Jun 2020 13:52:14 GMT):
Hi there, I got problem in instantiate step of fabric sambles tutorial. Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only I checked out tags/1.4.4 of fabric-samples. I see the docker images version is 1.4.3. not sure about bin files but I used curl -sSL http://bit.ly/2ysbOFE | bash -s to download them. anyone got same problem to me ? help help !

hieutrtr (Thu, 18 Jun 2020 13:52:14 GMT):
Hi there, I got problem in instantiate step of fabric sambles tutorial. `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only` I checked out `tags/1.4.4` of fabric-samples. I see the docker images version is 1.4.3. not sure about bin files but I used `curl -sSL http://bit.ly/2ysbOFE | bash -s` to download them. anyone got same problem to me ? help help !

haggis (Thu, 18 Jun 2020 15:49:08 GMT):
Hey guys! When I configure `csr.keyrequest.size` to be 512 instead of 256, I get the following error during fabric-ca bootsrap: `Error: Invalid ECDSA key size: 512'. However, Fabric docs suggest 512bit should be possible: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server What's wrong here?

haggis (Thu, 18 Jun 2020 15:49:08 GMT):
Hey guys! When I configure `csr.keyrequest.size` to be 512 instead of 256, I get the following error during fabric-ca bootsrap: `Error: Invalid ECDSA key size: 512`. However, Fabric docs suggest 512bit should be possible: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server What's wrong here?

haggis (Thu, 18 Jun 2020 15:49:08 GMT):
Hey guys! When I configure `csr.keyrequest.size` to be 512 instead of 256, I get the following error during fabric-ca bootsrap: `Error: Invalid ECDSA key size: 512`. However, Fabric doc is saying 512bit should be possible: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server What's wrong here?

haggis (Thu, 18 Jun 2020 15:49:08 GMT):
Hey guys! When I configure `csr.keyrequest.size` to be 512 instead of 256, I get the following error during fabric-ca bootsrap: `Error: Invalid ECDSA key size: 512`. However, Fabric doc says 512bit should be possible: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server What's wrong here?

haggis (Thu, 18 Jun 2020 15:49:08 GMT):
Hey guys! When I configure `csr.keyrequest.size` to be 512 instead of 256, I get the following error during fabric-ca bootsrap: `Error: Invalid ECDSA key size: 512`. However, Fabric doc says 512bit should be possible: https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server What's wrong here? Using CA 1.4.7

lihuawei (Thu, 18 Jun 2020 16:37:27 GMT):
Has joined the channel.

lihuawei (Thu, 18 Jun 2020 16:37:49 GMT):

Audio record.mp3

lihuawei (Thu, 18 Jun 2020 16:40:20 GMT):
when test Fabric CA Operations Guide, i exec : peer chaincode instantiate -C mychannel -n mycc -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -o orderer1-org0:7050 --tls --cafil e /tmp/hyperledger/org2/peer1/tls-msp/tlscacerts/tls-0-0-0-0-7052.pem i got err: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network guide_fabric-ca not found can anyone tell me why?

hazbiy97 (Thu, 18 Jun 2020 17:25:58 GMT):
hello everyone, i found this line in documentation "Kafka and Zookeeper are not designed to be run across large networks" from https://hyperledger-fabric.readthedocs.io/en/release-2.0/orderer/ordering_service.html. I still can't find what is the reason kafka can't run across large networks and make it one of the reason kafka being deprecated in HF 2.0. Can anyone of you help me?

ItaloCarrasco (Thu, 18 Jun 2020 19:08:25 GMT):
hello everyone just a moment ago my network was working perfectly and now i just tried to reset it and reisntall the chaincode and i am getting this error: 2020-06-18T18:58:08.316Z error [c-api:lib/handler.js] Chat stream with peer - on error: %j "Error: 14 UNAVAILABLE: No connection established\n at Object.callErrorFromStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call.js:31:26)\n at Object.onReceiveStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:387:49)\n at Object.onReceiveStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:305:181)\n at Http2CallStream.outputStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:117:74)\n at Http2CallStream.maybeOutputStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:156:22)\n at Http2CallStream.endCall (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:142:18)\n at Http2CallStream.cancelWithStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:458:14)\n at ChannelImplementation.tryPick (/usr/local/src/node_modules/@grpc/grpc-js/build/src/channel.js:238:32)\n at Object.updateState (/usr/local/src/node_modules/@grpc/grpc-js/build/src/channel.js:107:26)\n at ResolvingLoadBalancer.updateState (/usr/local/src/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js:181:35)"

ItaloCarrasco (Thu, 18 Jun 2020 19:08:25 GMT):
hello everyone just a moment ago my network was working perfectly and now i just tried to reset it and reisntall the chaincode and i am getting this error, log is from the chaincode container: 2020-06-18T18:58:08.316Z error [c-api:lib/handler.js] Chat stream with peer - on error: %j "Error: 14 UNAVAILABLE: No connection established\n at Object.callErrorFromStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call.js:31:26)\n at Object.onReceiveStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:387:49)\n at Object.onReceiveStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:305:181)\n at Http2CallStream.outputStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:117:74)\n at Http2CallStream.maybeOutputStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:156:22)\n at Http2CallStream.endCall (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:142:18)\n at Http2CallStream.cancelWithStatus (/usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:458:14)\n at ChannelImplementation.tryPick (/usr/local/src/node_modules/@grpc/grpc-js/build/src/channel.js:238:32)\n at Object.updateState (/usr/local/src/node_modules/@grpc/grpc-js/build/src/channel.js:107:26)\n at ResolvingLoadBalancer.updateState (/usr/local/src/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js:181:35)"

BalaSiddhartha (Fri, 19 Jun 2020 08:26:59 GMT):
Has joined the channel.

BalaSiddhartha (Fri, 19 Jun 2020 08:26:59 GMT):
Even I am facing the same issue, The containers stopped working all of a sudden. Even I am unable to access the fabric sample code. It is giving me the same error as @ItaloCarrasco mentioned

BalaSiddhartha (Fri, 19 Jun 2020 08:26:59 GMT):
I am facing the same issue, The containers stopped working all of a sudden. Even I am unable to access the fabric sample code. It is giving me the same error as @ItaloCarrasco mentioned

AshutoshKumar7 (Fri, 19 Jun 2020 10:04:05 GMT):
If I have 10 organisations do I need to copy files from msp folders of 9 organisations in each of these ?

i69676f72 (Fri, 19 Jun 2020 13:47:56 GMT):
Has joined the channel.

i69676f72 (Fri, 19 Jun 2020 13:48:13 GMT):
Hello folks, My goal is that all peers and child containers are created with different users than root. The peer container started with the correct user. But I don't know why the child containers are starting as root? My docker-compose looks like this: ` - CORE_CHAINCODE_GOLANG_RUNTIME = ibmblockchain / fabric-chaincode: 1.4.2 command: peer node start user: "appuser: appgroup"` Was it because the command came before the user?

i69676f72 (Fri, 19 Jun 2020 13:52:01 GMT):
The peer container started with correct user. However, the child containers are starting as root. why?

SachinGowda (Fri, 19 Jun 2020 14:20:57 GMT):
Hello Im trying to build the fabric binaries for armv7l i get this error `# github.com/hyperledger/fabric-amcl/amcl/FP256BN vendor/github.com/hyperledger/fabric-amcl/amcl/FP256BN/FP.go:110:18: constant 30564559323915749 overflows int` Is there a way to make it compatible for 32 bit architecture does changing the chunk type to int32 in `https://github.com/hyperledger/fabric-amcl/blob/master/amcl/FP256BN/ARCH.go` help me ?

giuzero (Fri, 19 Jun 2020 16:35:40 GMT):
hi I have a tlsCA an orderer_ca and a org1 ca similar to this https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html How should I write a connection profile for org1 client? Thanks

RafaelAPB (Fri, 19 Jun 2020 20:58:45 GMT):
Has left the channel.

Luxii (Fri, 19 Jun 2020 21:56:03 GMT):
I am receiving ``` ServerHandshake -> ERRO 059 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=10.0.1.28:42632```

Luxii (Fri, 19 Jun 2020 21:56:13 GMT):
In orderer logs after I run join channel Can anyone direct me towards somewhere ?

AldrinWilfred (Sat, 20 Jun 2020 08:57:10 GMT):
Hi all, I would like to have some ideas regarding the way to store admin and client certificates over database (not in local storage), and would like to retrieve the user context while logging in. I would really appreciate if any source is referred. Could you please advice? Thanks.

Harinishree-Muniraj (Sat, 20 Jun 2020 15:16:16 GMT):
Has joined the channel.

Harinishree-Muniraj (Sat, 20 Jun 2020 15:16:16 GMT):
hi all,

Harinishree-Muniraj (Sat, 20 Jun 2020 15:16:40 GMT):
i am trying to run node enrolladmin.js file at that time I am facing this issue

Harinishree-Muniraj (Sat, 20 Jun 2020 15:16:41 GMT):
error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

Harinishree-Muniraj (Sat, 20 Jun 2020 15:16:55 GMT):
could you please help me to resolve this issue

Harinishree-Muniraj (Sat, 20 Jun 2020 15:17:10 GMT):
my node version 8.15.1

Harinishree-Muniraj (Sat, 20 Jun 2020 15:17:28 GMT):
and npm version 6.4.1

JakeAJ (Sat, 20 Jun 2020 15:31:34 GMT):
Have you checked that your connection profile has correctly defined addresses for your network?

Harinishree-Muniraj (Sat, 20 Jun 2020 15:42:42 GMT):
could you please explain which connection profile I need to check

Harinishree-Muniraj (Sat, 20 Jun 2020 15:45:27 GMT):
which folder I need to chec

rra1994 (Sat, 20 Jun 2020 17:53:32 GMT):
Has joined the channel.

rra1994 (Sat, 20 Jun 2020 17:53:32 GMT):
Hi i have a setup with 3 endorser peers all registered to the same ORG. I'm trying to set a policy which requires 2/3 endorsements. I have it as OutOf(2, 'Org1.peer') but I get "Error: got unexpected status: BAD_REQUEST -- Tx did not adhere to endorsement policy" Can someone please help?

BrettLogan (Sat, 20 Jun 2020 18:06:10 GMT):
Both the Java and Node SDK's already implement a CouchDBWallet interface you can use for storing your credentials in CouchDB rather than in local storage

GabrielFemi (Sun, 21 Jun 2020 12:25:20 GMT):
Has joined the channel.

GabrielFemi (Sun, 21 Jun 2020 12:25:22 GMT):
Hello I am new here. I want to work on Fabric

BrettLogan (Sun, 21 Jun 2020 15:21:50 GMT):
This wont be guaranteed to function properly on 32-bit architectures.

BrettLogan (Sun, 21 Jun 2020 15:22:04 GMT):
We don't support it

BrettLogan (Sun, 21 Jun 2020 15:33:16 GMT):
Because of the underlying architecture of Kafka, it is not possible to have a decentralized ordering services when using Kafka, i.e., one organization owns the kafka cluster. To achieve truly decentralized ordering we implemented Etcd Raft as the ordering service. This provides the ability for networks to have truly decentralized ordering, with many organizations owning orderer nodes. But moreover, Kafka is an incredibly complex piece of software to run. It has thousands of moving parts in the way of configuration, making it extraordinarily complicated for small engineering teams to fine-tune the configuration for maximum performance and uptime. By removing Kafka from the picture we've also removed several networking layers, thus improving throughput on the ordering layer. You also no longer need to manage the upgrade lifecycle of your kafka clusters, with raft baked into the orderer, upgrading your network is now the only lifecycle you have to manage outside of your statedb if using couchdb.

BrettLogan (Sun, 21 Jun 2020 15:35:08 GMT):
We can speak from experience, our clients running Kafka in production networks struggled greatly with keeping their Kafka clusters running and healthy, even at large companies with entire teams dedicated to nothing else but running the clusters

Amanullah68 (Sun, 21 Jun 2020 18:51:15 GMT):
Hi guys, I want to know is Hyperledger remove fabtoken??

Amanullah68 (Sun, 21 Jun 2020 18:51:43 GMT):
I can't found any reliable source to implement it

BrettLogan (Mon, 22 Jun 2020 01:06:56 GMT):
Yes, fabtoken was removed, you can read about it here: https://lists.hyperledger.org/g/fabric/message/6228

BrettLogan (Mon, 22 Jun 2020 01:07:14 GMT):
A complete rearchitecting is underway

Amanullah68 (Mon, 22 Jun 2020 04:32:07 GMT):
oh thanks

Amanullah68 (Mon, 22 Jun 2020 05:18:03 GMT):
Hi, how to implement token in hyperledger fabric?

SachinGowda (Mon, 22 Jun 2020 06:43:44 GMT):
ok, so is there any work around? Is there no way to do it? i tried https://jira.hyperledger.org/secure/attachment/18103/18103_steps.txt but doesnt work with the latest fabric version, beacuse of the fabric-amcl i think

z3100 (Mon, 22 Jun 2020 07:05:46 GMT):
Has joined the channel.

vineetmishra (Mon, 22 Jun 2020 07:54:35 GMT):
Hi guys , i was trying to update private data policy in fabric 2.1 and if i add new organization in existing collection , all previous data from that collection not accessible by any organization . so is it correct behaviour ? please suggest .

manxiaqu (Mon, 22 Jun 2020 08:17:16 GMT):
Has joined the channel.

banhmi.eth (Mon, 22 Jun 2020 08:33:58 GMT):
Has joined the channel.

banhmi.eth (Mon, 22 Jun 2020 08:33:58 GMT):
Hello there, I am developing dapp that will run on Mobile + Fabric. Is there anyway to do wallet management on mobile ?

manxiaqu (Mon, 22 Jun 2020 08:37:26 GMT):
Hey everyone, I am trying to run fabric-sample/firstnetwork of version v1.4.6, but failed on instantiate chaincode by `./byfn.sh up`, the cli log is ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 !!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ``` anyone knows the problem is? I have check the peer logs. ``` {"log":"\u001b[36m2020-06-22 08:13:10.501 UTC [container] lockContainer -\u003e DEBU a35b\u001b[0m waiting for container(mycc-1.0) lock\n","stream":"stderr","time":"2020-06-22T08:13:10.501773781Z"} {"log":"\u001b[36m2020-06-22 08:13:10.501 UTC [container] lockContainer -\u003e DEBU a35c\u001b[0m got container (mycc-1.0) lock\n","stream":"stderr","time":"2020-06-22T08:13:10.501775926Z"} {"log":"\u001b[36m2020-06-22 08:13:10.502 UTC [dockercontroller] stopInternal -\u003e DEBU a35d\u001b[0m stopping container id=dev-peer0.org1.example.com-mycc-1.0\n","stream":"stderr","time":"2020-06-22T08:13:10.502982857Z"} {"log":"\u001b[36m2020-06-22 08:13:10.506 UTC [dockercontroller] stopInternal -\u003e DEBU a35e\u001b[0m stop container result error=\"No such container: dev-peer0.org1.example.com-mycc-1.0\"\n","stream":"stderr","time":"2020-06-22T08:13:10.507291286Z"} {"log":"\u001b[36m2020-06-22 08:13:10.507 UTC [dockercontroller] stopInternal -\u003e DEBU a35f\u001b[0m killing container id=dev-peer0.org1.example.com-mycc-1.0\n","stream":"stderr","time":"2020-06-22T08:13:10.507363099Z"} {"log":"\u001b[36m2020-06-22 08:13:10.509 UTC [dockercontroller] stopInternal -\u003e DEBU a360\u001b[0m kill container result id=dev-peer0.org1.example.com-mycc-1.0 error=\"No such container: dev-peer0.org1.example.com-mycc-1.0\"\n","stream":"stderr","time":"2020-06-22T08:13:10.509178806Z"} {"log":"\u001b[36m2020-06-22 08:13:10.509 UTC [dockercontroller] stopInternal -\u003e DEBU a361\u001b[0m removing container id=dev-peer0.org1.example.com-mycc-1.0\n","stream":"stderr","time":"2020-06-22T08:13:10.509199674Z"} {"log":"\u001b[36m2020-06-22 08:13:10.510 UTC [dockercontroller] stopInternal -\u003e DEBU a362\u001b[0m remove container result id=dev-peer0.org1.example.com-mycc-1.0 error=\"No such container: dev-peer0.org1.example.com-mycc-1.0\"\n","stream":"stderr","time":"2020-06-22T08:13:10.510552998Z"} {"log":"\u001b[36m2020-06-22 08:13:10.510 UTC [dockercontroller] createContainer -\u003e DEBU a363\u001b[0m create container imageID=dev-peer0.org1.example.com-mycc-1.0-384f11f484b9302df90b453200cfb25174305fce8f53f4e94d45ee3b6cab0ce9 containerID=dev-peer0.org1.example.com-mycc-1.0\n","stream":"stderr","time":"2020-06-22T08:13:10.510573274Z"} {"log":"\u001b[36m2020-06-22 08:13:10.510 UTC [dockercontroller] getDockerHostConfig -\u003e DEBU a364\u001b[0m docker container hostconfig NetworkMode: net_byfn\n","stream":"stderr","time":"2020-06-22T08:13:10.510949397Z"} ``` It seems the chaincode contain is killed, But I don't quite sure the reason is.

hilyds (Mon, 22 Jun 2020 09:33:23 GMT):
Has joined the channel.

SpecialAgentCooper (Mon, 22 Jun 2020 12:18:12 GMT):
Hi everyone, I'm getting the following issue when I try to install (node.js) chaincode this morning: https://github.com/winstonjs/winston/issues/1814 Is there a workaround for this for hyperledger fabric users?

narendranathreddy (Mon, 22 Jun 2020 12:19:19 GMT):
Hi iam experiencing a weird error in the fabric peer i have 2,50,000 blocks and peers went offline due to some VM issues peers ledger data is persisted when peers come online, peers are not responding when i see logs peer is recommiting blocks 2020-06-22 12:11:59.767 UTC [peer] Initialize -> INFO 02f Loading chain ucrnetchannel 2020-06-22 12:11:59.768 UTC [ledgermgmt] OpenLedger -> INFO 030 Opening ledger with id = ucrnetchannel 2020-06-22 12:11:59.909 UTC [kvledger] recommitLostBlocks -> INFO 031 Recommitting lost blocks - firstBlockNum=19, lastBlockNum=465621, recoverables=[]kvledger.recoverable{(*lockbasedtxmgr.LockBasedTxMgr)(0xc001faa510)} 2020-06-22 12:12:05.749 UTC [gossip.election] beLeader -> INFO 032 99021e650e66302177a0d0d385c95e1fcc053ffb2eb346b738810d7db4ce2a0e : Becoming a leader 2020-06-22 12:12:05.749 UTC [gossip.service] func1 -> INFO 033 Elected as a leader, starting delivery service for channel kycnetchannel 2020-06-22 12:12:05.750 UTC [deliveryClient] StartDeliverForChannel -> INFO 034 This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel kycnetchannel 2020-06-22 12:12:05.759 UTC [deliveryClient] RequestBlocks -> INFO 035 Starting deliver with block [7844] for channel kycnetchannel 2020-06-22 12:14:26.639 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 036 Recommitting block [1000] to state database 2020-06-22 12:17:23.566 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 037 Recommitting block [2000] to state database

narendranathreddy (Mon, 22 Jun 2020 12:22:59 GMT):
Observation: I know this is known behaviour, peer will not respond till it recommit all blocks, but it has been two days and it recommited all the blocks, sgill the peer is not responding

narendranathreddy (Mon, 22 Jun 2020 12:37:28 GMT):
Scenario: Restart peer with thousands of blocks committed, with statedb as couch. The peer starts building couchdb indexes for all the channels that it is part of. During this period, the peer is listening on the webserver for peerlisten address, but does not respond to any requests. sounds weird i waited nearly two days as my blocks are 2,50,000. Still peer is not responding iam experiencing this in 1.4.4 version

BrettLogan (Mon, 22 Jun 2020 14:03:29 GMT):
They are fixing this issue as we speak

BrettLogan (Mon, 22 Jun 2020 14:14:42 GMT):
Let me run some system tests against this scenario and try this out. I expect I can recreate this (as I think I've seen it before). If thats the case we will get a fix out

BrettLogan (Mon, 22 Jun 2020 14:57:21 GMT):
This was fixed in our 2.1 release. Essentially the issue was the grpc server was started before the peer was ready to accept requests. This caused the grpc server to go into a bad state while building the blocks if a request was submitted to the server while the rebuild was happening. We moved the start of the peer listener further down the stack, so the grpc server does not exist until the peer is actually ready to serve requests. I'll make a case for backporting the change to 1.4

Ric.Hard.87 (Mon, 22 Jun 2020 15:50:01 GMT):
Has joined the channel.

Ric.Hard.87 (Mon, 22 Jun 2020 15:50:01 GMT):
Hi, Im just trying to get started using fabric by trying to follow the getting started guide on Windows 10. I run until the point where I have to download the setup script, which is documented as "curl -sSL https://bit.ly/2ysbOFE | bash -s". This will pipe the command to WSL as I am expecting, which will not have docker installed, therefore throwing tons of errors. I guess I am not meant to use the script that way. How am I supposed to run the command using windows?

BrettLogan (Mon, 22 Jun 2020 15:50:50 GMT):
The WSL2 now supports running raw Docker, if you haven't upgraded to WSL2 I recommend going that path

BrettLogan (Mon, 22 Jun 2020 15:51:05 GMT):
We've confirmed our samples run flawlessly on WSL2

Ric.Hard.87 (Mon, 22 Jun 2020 15:51:11 GMT):
its only available in next windows build, which doesnt install on my machine atm

BrettLogan (Mon, 22 Jun 2020 15:52:06 GMT):
@davidkel What is the proper way to run the samples on Windows without WSL?

BrettLogan (Mon, 22 Jun 2020 15:52:24 GMT):
David will be able to give you a better answer on samples without WSL

BrettLogan (Mon, 22 Jun 2020 15:53:13 GMT):
The alternative is to run a VM running ubuntu on Virtualbox

Ric.Hard.87 (Mon, 22 Jun 2020 15:54:19 GMT):
so, atm its just not possible to run fabric on windows natively on build < 1904?

Ric.Hard.87 (Mon, 22 Jun 2020 16:02:45 GMT):
would it work to manually execute the commands under pullDockerImages() within windows natively?

bhasineeraj (Mon, 22 Jun 2020 16:23:32 GMT):
Has joined the channel.

bhasineeraj (Mon, 22 Jun 2020 16:23:33 GMT):
Hello, I have a question regarding the costing involved in deploying the application using the hyperledger fabric. What would be the recurring cost? How much it would cost me for peers in the form of incentives?

davidkel (Mon, 22 Jun 2020 16:32:19 GMT):
First off you have to have windows 10 pro or enterprise, then install docker for windows (not docker toolbox). Then you need to ensure you setup docker correctly as it will need SMB access to your filesystem. I would expect WSL 2 to make things much easier but I haven't tried it myself as it's not available for my machine either at the moment.

davidkel (Mon, 22 Jun 2020 16:32:19 GMT):
First off you have to have windows 10 pro or enterprise, then install docker for windows (not docker toolbox). Then you need to ensure you setup docker correctly as it will need SMB access to your filesystem. I would expect WSL 2 to make things much easier but I haven't tried it myself as it's not available for my machine either at the moment. You can't easily run the samples in WSL (as opposed to WSL2). It can be made to work but it's a real hassle. In the past it may have worked from something like git bash but I haven't tried in a long time. I run a linux VM for my work waiting to see what WSL2 will be like

rjones (Mon, 22 Jun 2020 17:55:16 GMT):
Has joined the channel.

rjones (Mon, 22 Jun 2020 17:55:17 GMT):
@bhasineeraj it is open source - it would depend on what platform provider you used

narendranathreddy (Mon, 22 Jun 2020 18:25:49 GMT):
HI @BrettLogan I don not want to change to 2.1 as my production system is heading with 1.4.x. Is there any way to fix this issue in 1.4.x ?

narendranathreddy (Mon, 22 Jun 2020 18:27:11 GMT):
Thank you very much please consider this fix in 1.4.8

narendranathreddy (Mon, 22 Jun 2020 18:27:26 GMT):
As we are in production and we are struck actually!

narendranathreddy (Mon, 22 Jun 2020 18:28:44 GMT):
sure thank you

BrettLogan (Mon, 22 Jun 2020 18:30:53 GMT):
Let me test it to confirm this fixed the issue in 2.1, and then see whether it can be backported without breaking functionality

narendranathreddy (Mon, 22 Jun 2020 18:30:54 GMT):
shall i create a jira issue ?

narendranathreddy (Mon, 22 Jun 2020 18:31:26 GMT):
Many thanks

BrettLogan (Mon, 22 Jun 2020 18:31:30 GMT):
No, I'll cherry pick off the previous Jira

bhasineeraj (Mon, 22 Jun 2020 18:31:58 GMT):
Thank you

narendranathreddy (Mon, 22 Jun 2020 18:49:46 GMT):
this will help you https://github.com/hyperledger/fabric/pull/527

narendranathreddy (Mon, 22 Jun 2020 18:50:02 GMT):
it closed on jan 23

BrettLogan (Mon, 22 Jun 2020 18:50:55 GMT):
That would be it, thank you, I'll test it and get back to you after I get out of this meeting

cliveb (Mon, 22 Jun 2020 21:02:45 GMT):
Has joined the channel.

freesam02 (Tue, 23 Jun 2020 00:34:14 GMT):
hi, i have a question..for fabric peer config..? we set up a fabric network by multi org and multi peer without anchor peer and i check a network by using discover peers cmd, org1(2 peer) shows 2 peer info, but the other org2 shows just 1 peer info... someone whos tells me why this differents happen...?

freesam02 (Tue, 23 Jun 2020 00:34:34 GMT):
thanks..n

ongchinkai (Tue, 23 Jun 2020 04:11:14 GMT):
I extract timestamp from a block via the following code: const dataArray = block.data.data for (var dataItem in dataArray) { const timestamp = dataArray[dataItem].payload.header.channel_header.timestamp ... Is there a similar way for me to extract transaction id from a block?

mohitthorat (Tue, 23 Jun 2020 05:06:02 GMT):
Has joined the channel.

AldrinWilfred (Tue, 23 Jun 2020 05:16:05 GMT):
Thanks Brett.. I have accomplished it... :-)

jital (Tue, 23 Jun 2020 06:23:24 GMT):
I need to do pagination for my GetPrivateDataByPartialCompositeKey API 1. Pagination is available for non private version of same API, is there a reason why it is not implemented for private 2. I tried solving this problem via GetPrivateDataByRange and writing a cursor based pagination myself, but it does not scan in composite key range, Please help here

jital (Tue, 23 Jun 2020 06:23:24 GMT):
GoLang Chaincode I need to do pagination for my GetPrivateDataByPartialCompositeKey API 1. Pagination is available for non private version of same API, is there a reason why it is not implemented for private 2. I tried solving this problem via GetPrivateDataByRange and writing a cursor based pagination myself, but it does not scan in composite key range, Please help here

jital (Tue, 23 Jun 2020 06:23:24 GMT):
Go Chaincode Question I need to do pagination for my GetPrivateDataByPartialCompositeKey API 1. Pagination is available for non private version of same API, is there a reason why it is not implemented for private 2. I tried solving this problem via GetPrivateDataByRange and writing a cursor based pagination myself, but it does not scan in composite key range, Please help here

Ric.Hard.87 (Tue, 23 Jun 2020 09:48:11 GMT):
Hi, thx for the answers. If you say I need a ubuntu VM you mean by that something like Virtual Box, right? Am I supposed to install docker within that VM too or how is the VM meant to comminicate down to Windows Docker? Also I guess the Documentation needs to be updated as it suggest using Docker Quick Start Terminal (Part of the Docker Toolbox) to run, and other pages hint on installing windows toolchains (windows curl etc) which hint to run windows natively.

ThieryARocket (Tue, 23 Jun 2020 09:49:49 GMT):
Has joined the channel.

davidkel (Tue, 23 Jun 2020 10:04:30 GMT):
I use virtualbox to run a complete linux distribution. It doesn't interact at all with my windows host.

davidkel (Tue, 23 Jun 2020 10:04:30 GMT):
I use virtualbox to run a complete linux distribution. It doesn't interact at all with my windows host. ie you install all the required software inside your linux system

Ric.Hard.87 (Tue, 23 Jun 2020 10:18:36 GMT):
thx. I guess I will wait until my machine can upgrade, since this will need so much additional time and disk space and added layers that its not practical for me atm. But thanks anyways for your time. Since I am just about to explore different BS Frameworks, I will use the time to just try another first then ;)

PJHaga (Tue, 23 Jun 2020 12:24:24 GMT):
Has joined the channel.

rjones (Tue, 23 Jun 2020 23:19:24 GMT):
Has left the channel.

mohanrajpb (Wed, 24 Jun 2020 03:12:25 GMT):
Has joined the channel.

mohanrajpb (Wed, 24 Jun 2020 03:12:25 GMT):
Created a 3 peer, 2 channel and 3 orderer RAFT based on test network, peer channel list successfully lists the channels to which the peers are connected, but when I run approveformyorg of deployCC.sh, i get a message - Error: failed to send transaction: got unexpected status: NOT_FOUND -- channel does not exist...any idea where this could have gone wrong..

Pham_Van_Chung (Wed, 24 Jun 2020 04:53:28 GMT):
Has joined the channel.

chintanr11 (Wed, 24 Jun 2020 05:16:07 GMT):
Hi, I was trying to use Fabric Node SDK (v1.4.4 node_modules for fabric-network) to send "query" requests to the HLF network. However, I am not able to set the endorsing peers, so that the query request is sent to only the endorsers and not the committing peers. However, I saw that in v1.4.9 of fabric-network node_module, there is capability to set endorsing peers for "transaction" object. However, my network HLF binaries are in version 1.4.4 (same docker images). So, will the SDK v1.4.9 be compatible to use with HLF binaries of v1.4.4? Or should I change the network compoenents too?

chintanr11 (Wed, 24 Jun 2020 05:16:07 GMT):
Hi, I was trying to use Fabric Node SDK (v1.4.4 node_modules for fabric-network) to send "query" requests to the HLF network. However, I am not able to set the endorsing peers, so that the query request is sent to only the endorsers and not the committing peers. However, I saw that in v1.4.9 of fabric-network node_module, there is capability to set endorsing peers for "transaction" object. However, my network HLF binaries are in version 1.4.4 (same docker images). So, will the SDK v1.4.9 be compatible to use with HLF binaries of v1.4.4? Or should I change the network components too?

shellp (Wed, 24 Jun 2020 06:12:00 GMT):
Has joined the channel.

shellp (Wed, 24 Jun 2020 06:12:01 GMT):
Hi Guys, Invoke to fabcar is succesful However queryAllCars returns empty results Image Docker logs on chaincode container shows the same. Logs: Committed chaincode definition for chaincode 'fabcar' on channel 'mychannel': Version: 1, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc, Approvals: [Org1MSP: true, Org2MSP: true] ===================== Query chaincode definition successful on peer0.org2 on channel 'mychannel' ===================== Using organization 1 Using organization 2 ++ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile /c/project/HyperledgerFabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabcar --peerAddresses localhost:7051 --tlsRootCertFiles /c/project/HyperledgerFabric/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles /c/project/HyperledgerFabric/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt --isInit -c '{"function":"initLedger","Args":[""]}' ++ res=0 ++ set +x 2020-06-24 11:16:27.179 IST [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 ===================== Invoke transaction successful on peer0.org1 peer0.org2 on channel 'mychannel' ===================== Querying chaincode on peer0.org1... Using organization 1 ===================== Querying on peer0.org1 on channel 'mychannel'... ===================== Attempting to Query peer0.org1, Retry after 3 seconds. ++ peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}' ++ res=0 ++ set +x []

narendranathreddy (Wed, 24 Jun 2020 07:31:54 GMT):
Hi BrettLogan Any update on this ?

vikiival (Wed, 24 Jun 2020 08:38:27 GMT):
Has joined the channel.

vikiival (Wed, 24 Jun 2020 08:49:56 GMT):
Hey guys, is there a way how to create `cli` docker container on test-network ? in my docker-compose-test-net.yaml i have ``` cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- FABRIC_LOGGING_SPEC=DEBUG - FABRIC_LOGGING_SPEC=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/hyperledger/fabric-samples/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com - peer0.org2.example.com networks: - test ``` however, when i try do something: I can access to container using: ``` docker exec -it cli bash ``` ``` ```

vikiival (Wed, 24 Jun 2020 08:49:56 GMT):
Hey guys, is there a way how to create `cli` docker container on test-network ? in my docker-compose-test-net.yaml i have ``` cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- FABRIC_LOGGING_SPEC=DEBUG - FABRIC_LOGGING_SPEC=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/hyperledger/fabric-samples/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com - peer0.org2.example.com networks: - test ``` I can access to container using: ``` docker exec -it cli bash ``` however, when i try do something: ``` $ peer channel join mychannel ``` I get error ``` 2020-06-24 08:44:46.926 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory ```

c0deh0use (Wed, 24 Jun 2020 09:34:28 GMT):
Hi guys, I'm trying to upload around 200-400 records to the blockchain via a chaincode.

c0deh0use (Wed, 24 Jun 2020 09:36:48 GMT):
Hi guys, I'm trying to upload around 200-400 records to the blockchain via a chaincode. This process takes about 3 minutes, while uploading around 40 records takes 3-5 seconds. I identified that such long time is because of the proposal time response. 
What is the reason for it and is there a way using configuration to speed it up?

c0deh0use (Wed, 24 Jun 2020 09:36:48 GMT):
Hi guys, I'm trying to upload around 200-400 records to the blockchain via a chaincode. This process takes about 3 minutes while uploading around 40 records takes 5-8 seconds. I identified that such a long time is because of the proposal time response. 
What is the reason for it and is there a way using configuration to speed it up?

c0deh0use (Wed, 24 Jun 2020 09:37:43 GMT):
running a 2 org setup with a single raft orderer.

c0deh0use (Wed, 24 Jun 2020 09:38:00 GMT):
HlF - 2.2.1 version

c0deh0use (Wed, 24 Jun 2020 09:38:00 GMT):
HLF - 2.2.1 version

Aniket.1 (Wed, 24 Jun 2020 09:45:55 GMT):
hello everyone, I ma getting this error while trying to commit the chaincode: `Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (OrgMSP)`

Aniket.1 (Wed, 24 Jun 2020 09:46:26 GMT):
even `checkcommitreadiness` show approval `true` for OrgMSP

Aniket.1 (Wed, 24 Jun 2020 09:46:35 GMT):
Can someone please help?

Amanullah68 (Wed, 24 Jun 2020 10:39:03 GMT):

Screenshot from 2020-06-24 15-23-13.png

JaffrayWilliams (Wed, 24 Jun 2020 10:53:56 GMT):
Has joined the channel.

JaffrayWilliams (Wed, 24 Jun 2020 10:57:43 GMT):
Hello. I am trying to install JAVA chaincode on peer as follows `peer lifecycle chaincode package joistocc.tar.gz --path /var/fabric/chaincode/joisto-chaincode/build/install/joisto-chaincode --lang java --label joistocc peer lifecycle chaincode install joistocc.tar.gz` and it fails with ERROR `Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 255 "Not build.gralde nor pom.xml found in chaincode source, don't know how to build chaincode Project folder content: drwxr-xr-x 3 root root 4096 Jun 24 10:49 /chaincode/input/src/ -rw-r--r-- 1 500 500 6026 Jan 1 1970 /chaincode/input/src/chaincode.jar drwxr-xr-x 2 root root 4096 Jun 24 10:49 /chaincode/input/src/lib -rw-r--r-- 1 500 500 68080 Jan 1 1970 /chaincode/input/src/lib/jackson-annotations-2.10.2.jar -rw-r--r-- 1 500 500 1403755 Jan 1 1970 /chaincode/input/src/lib/jackson-databind-2.10.2.jar -rw-r--r-- 1 500 500 65003 Jan 1 1970 /chaincode/input/src/lib/json-20190722.jar -rw-r--r-- 1 500 500 349074 Jan 1 1970 /chaincode/input/src/lib/jackson-core-2.10.2.jar "`

JaffrayWilliams (Wed, 24 Jun 2020 10:57:43 GMT):
Hello all. I am trying to install JAVA chaincode on peer as follows peer lifecycle chaincode package joistocc.tar.gz --path /var/fabric/chaincode/joisto-chaincode/build/install/joisto-chaincode --lang java --label joistocc peer lifecycle chaincode install joistocc.tar.gz and it fails with ERROR Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 255 "Not build.gralde nor pom.xml found in chaincode source, don't know how to build chaincode Project folder content: drwxr-xr-x 3 root root 4096 Jun 24 10:49 /chaincode/input/src/ -rw-r--r-- 1 500 500 6026 Jan 1 1970 /chaincode/input/src/chaincode.jar drwxr-xr-x 2 root root 4096 Jun 24 10:49 /chaincode/input/src/lib -rw-r--r-- 1 500 500 68080 Jan 1 1970 /chaincode/input/src/lib/jackson-annotations-2.10.2.jar -rw-r--r-- 1 500 500 1403755 Jan 1 1970 /chaincode/input/src/lib/jackson-databind-2.10.2.jar -rw-r--r-- 1 500 500 65003 Jan 1 1970 /chaincode/input/src/lib/json-20190722.jar -rw-r--r-- 1 500 500 349074 Jan 1 1970 /chaincode/input/src/lib/jackson-core-2.10.2.jar " What am I doing wrong?

JaffrayWilliams (Wed, 24 Jun 2020 11:02:06 GMT):
Trying to install JAVA chaincode on Fabric 2.0

Amanullah68 (Wed, 24 Jun 2020 11:10:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2uGqCw2qyZkYqdo8N) help me guys

vikiival (Wed, 24 Jun 2020 11:12:43 GMT):
FIxed: https://gist.github.com/vikiival/ae2781d6ba3d5959a44c90d5dda5bf76

vikiival (Wed, 24 Jun 2020 11:35:08 GMT):
@narendranathreddy I set up a CLI node, fetch works good but I cannot do invoke ``` peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar --peerAddresses localhost:7051 -c '{"Args":["createCar", "CAR123", "xxx", "xxx", "xxx" , "Viki"]}' Error: error getting endorser client for invoke: tls root cert file must be set ```

narendranathreddy (Wed, 24 Jun 2020 11:38:26 GMT):
seems like orderer is enabled with TLS so you must supply the tls cert

vikiival (Wed, 24 Jun 2020 11:42:33 GMT):
Is it possible to turn off tls cert. ?

narendranathreddy (Wed, 24 Jun 2020 11:43:31 GMT):
just supply your ca cert, its enough

narendranathreddy (Wed, 24 Jun 2020 11:43:45 GMT):
then you need to turn off TLS completly

vikiival (Wed, 24 Jun 2020 11:56:38 GMT):
``` peer chaincode invoke -o orderer.example.com:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabcar --peerAddresses localhost:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt -c '{"Args":["createCar", "CAR123", "xxx", "xxx", "xxx" , "Viki"]}' ``` ``` Error: error getting endorser client for invoke: endorser client failed to connect to localhost:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7051: connect: connection refused" ```

Chris_Fourie (Wed, 24 Jun 2020 12:26:17 GMT):
Has joined the channel.

Chris_Fourie (Wed, 24 Jun 2020 12:26:18 GMT):
Would Hyper Ledger Fabric be a suitable solution for General Ledger functionality in an organisation and if so has this been done before?

Kevin_Ko (Wed, 24 Jun 2020 13:36:12 GMT):
Has joined the channel.

Kevin_Ko (Wed, 24 Jun 2020 13:36:12 GMT):
Hello everyone. I was wondering, if blockchains grow forever because you only add data to them, what do I do with one that gets bigger than I can handle in my environment? And will the following ticket (https://jira.hyperledger.org/browse/FAB-106) help eliminate this problem or just delay it?

Diddy_O (Wed, 24 Jun 2020 15:06:40 GMT):
Has joined the channel.

Diddy_O (Wed, 24 Jun 2020 15:07:16 GMT):
hi all, I need to add an external oracle to fabric in go, but I'm a begginer in fabric, so you can suggest me something that could me start?

manojvenkateswararaja (Wed, 24 Jun 2020 15:14:14 GMT):
Has joined the channel.

manojvenkateswararaja (Wed, 24 Jun 2020 15:14:20 GMT):
I implemented a "for" loop inside chaincode for storing 1000 of records but if I try this looping outside the chaincode in invoke.js it takes above 15 mins to store all the records into the ledger. So can anyone advise me which will be the right way to implement this? Thanks in advance.

c0deh0use (Wed, 24 Jun 2020 20:39:00 GMT):
\Hi guys, any one could help?

bean-du (Thu, 25 Jun 2020 01:37:56 GMT):
Has joined the channel.

bean-du (Thu, 25 Jun 2020 01:37:57 GMT):
Hi. everybody how can I install Hyperledger Fabric platform-specific binaries

bean-du (Thu, 25 Jun 2020 01:40:49 GMT):
I use MacOS, please help me

Amanullah68 (Thu, 25 Jun 2020 04:25:32 GMT):
Hi, go to offivial documentation of HYperledger https://hyperledger-fabric.readthedocs.io/en/release-2.0/install.html

bean-du (Thu, 25 Jun 2020 05:07:16 GMT):
Oh~ I got a new error

bean-du (Thu, 25 Jun 2020 05:09:17 GMT):
My fabric Orderer start error and this is docker logs : Error reading genesis block file: read /var/hyperledger/orderer/orderer.genesis.block: is a directory

bean-du (Thu, 25 Jun 2020 05:10:18 GMT):
Thanks for that

AldrinWilfred (Thu, 25 Jun 2020 07:26:54 GMT):
Hi all, I would like to have some ideas regarding identities management over hardware wallet residing with the client user itself(hope to reduce the cost of db storage), and would like to retrieve the user context while logging in. I have practised storing it in couchdb wallet, local system wallet. I would really appreciate if any source is referred for hardware wallet. Could you please advice? Thanks.

AldrinWilfred (Thu, 25 Jun 2020 07:26:54 GMT):
Hi all, I would like to have some ideas regarding identities management over hardware wallet residing with the client user itself(hope to reduce the cost of db storage), and would like to retrieve the user context while logging in. I have practised storing it in couchdb wallet, local file system wallet. I would really appreciate if any source is referred for hardware wallet. Could you please advice? Thanks.

AldrinWilfred (Thu, 25 Jun 2020 07:26:54 GMT):
Hi all, I would like to have some ideas regarding identities management over hardware wallet residing with the client user itself(hope to reduce the cost of db storage), and would like to retrieve the user context while logging in. I have practised storing it in couchdb wallet, local file system wallet. I would really appreciate if any source is referred for hardware module. Could you please advice? Thanks.

RajeshKrishnan (Thu, 25 Jun 2020 08:11:35 GMT):
Has joined the channel.

RajeshKrishnan (Thu, 25 Jun 2020 08:11:36 GMT):
Hi Team, Would you all know of any Vendors in India who take care of Fabric Platform Support and Solution consulting for Enterprises?

colismit (Thu, 25 Jun 2020 08:27:53 GMT):
Has joined the channel.

Ivankaramazov (Thu, 25 Jun 2020 09:05:09 GMT):
i am getting error "go: command not found". even though i have installed go properly . can someone please help

Ivankaramazov (Thu, 25 Jun 2020 09:05:09 GMT):
i am getting error "go: command not found". even though i have installed go properly which running to invoke chaincode written in go . can someone please help

Ivankaramazov (Thu, 25 Jun 2020 09:05:09 GMT):
i am getting error "go: command not found". even though i have installed go properly while running to invoke chaincode written in go . can someone please help

Ivankaramazov (Thu, 25 Jun 2020 09:08:50 GMT):

Screenshot from 2020-06-25 14-23-56.png

Ivankaramazov (Thu, 25 Jun 2020 09:09:03 GMT):

Screenshot from 2020-06-25 14-22-54.png

Ivankaramazov (Thu, 25 Jun 2020 09:09:39 GMT):

Screenshot from 2020-06-25 14-24-46.png

ThieryARocket (Thu, 25 Jun 2020 09:31:05 GMT):
Hello guys, I'm new at HyperLedger Fabric and trying to customize the test-network provided in the demo https://github.com/hyperledger/fabric-samples/tree/master/test-network. I can't find a way to 1. add new users and peers to the docker network and 2. create private channels using the CLI or Java SDK. Could someone please help me ? A good tutorial to start would also be great. Thanks.

colismit (Thu, 25 Jun 2020 09:44:41 GMT):
Hi, I'm seeing an issue with the Fabric 2.0 - 2.1 discovery service, in that, when an individual peer is stopped/started, the chaincodes installed/instantiated on a channel are forgotten and don't appear in the Chaincodes list. Checking on the peer itself, the chaincode is both installed, and instantiated when it comes back up, and I can invoke the chaincode normally. i.e. it works normally. Is there a way to re-discover the instantiated chaincodes?

SachinGowda (Thu, 25 Jun 2020 12:50:47 GMT):
what is the timeline for the release of the fabric go sdk

pkirkinezis (Thu, 25 Jun 2020 13:53:40 GMT):
Hi any best practice on working with SSH public private key pair on a 5 node network . I have 5 ubuntu servers every one running a organization and one running the orderer nodes . Everything will give me access denied between nodes of different machines .

jsms01 (Thu, 25 Jun 2020 14:41:53 GMT):
Has joined the channel.

BrettLogan (Thu, 25 Jun 2020 14:58:18 GMT):
Can you open a Jira at jira.hyperledger.org, so this doesn't get lost. We should really investigate this

BrettLogan (Thu, 25 Jun 2020 14:58:30 GMT):
And I don't want to forget about it

BrettLogan (Thu, 25 Jun 2020 14:59:23 GMT):
Are you using `sudo` to run the script?

data_prime (Thu, 25 Jun 2020 19:03:46 GMT):
Has joined the channel.

data_prime (Thu, 25 Jun 2020 19:26:49 GMT):
has anyone created a docker image for their chaincode? would it be possible to create an image using docker and access the jar in the build folder to package the chaincode using the peer lifecycle? Has anyone done this or something similar? Thanks in advance 🙂

data_prime (Thu, 25 Jun 2020 19:27:02 GMT):
I want to build a custom chaincode from scratch that doesn't rely on fabric-samples. What do I need to do this? I have Java openjdk 11 and gradle 5.3. After running "gradle init" what dependencies do I need to add? Do I create a "main" method to keep the smart contract running or must the smart contract only implement or extend ContractInterface and the custom methods defined within? Any answers are much appreciated. Thanks in advance! 🙂

data_prime (Thu, 25 Jun 2020 19:27:34 GMT):
Is there any way to view the installed methods for a particular chaincode using peer?

Amanullah68 (Fri, 26 Jun 2020 05:26:43 GMT):

Screenshot from 2020-06-26 10-25-33.png

Amanullah68 (Fri, 26 Jun 2020 05:26:56 GMT):

Screenshot from 2020-06-26 10-25-22.png

BrettLogan (Fri, 26 Jun 2020 05:36:44 GMT):
Putting this here for anyone else who might come across this post: https://github.com/hyperledger/fabric/blob/v1.4.4/sampleconfig/core.yaml#L532 is used to configure how long the peer should wait to establish connection with the chaincode container before declaring a timeout

Amanullah68 (Fri, 26 Jun 2020 11:04:46 GMT):
Hi, got this error, anyone know how to solve it?

Amanullah68 (Fri, 26 Jun 2020 11:05:03 GMT):

Screenshot from 2020-06-26 16-04-10.png

Diddy_O (Fri, 26 Jun 2020 15:17:44 GMT):
I'm trying to build a client in golang starting from fabcar demo, but why I have this error? ``` go run query.go # command-line-arguments ./query.go:8:2: imported and not used: "github.com/hyperledger/fabric-sdk-go/pkg/gateway" ./query.go:15:13: undefined: Connect ./query.go:16:3: undefined: WithConfig ./query.go:16:14: undefined: config ./query.go:17:3: undefined: WithIdentity ``` this is my go script: ``` package main import ( "fmt" "os" "path/filepath" "github.com/hyperledger/fabric-sdk-go/pkg/gateway" ) func main() { walletPath := filepath.Join("...", "javascript", "wallet") ccpPath := filepath.Join("..", "..", "first-network", "connection-org1.json") gw, err := Connect( WithConfig(config.FromFile(filepath.Clean(ccpPath))), WithIdentity(walletPath, "appUser"), ) if err != nil { fmt.Printf("Failed to connect to gateway: %s\n", err) os.Exit(1) } defer gw.Close() } ```

manav-15 (Fri, 26 Jun 2020 16:53:34 GMT):
Has joined the channel.

BrettLogan (Fri, 26 Jun 2020 20:29:07 GMT):
There is an example here: https://github.com/hyperledger/fabric-samples/blob/master/fabcar/go/fabcar.go

BrettLogan (Fri, 26 Jun 2020 20:29:35 GMT):
You missed putting `gateway` in front of `Connect(`

BrettLogan (Fri, 26 Jun 2020 20:29:54 GMT):
And you also need to import `"github.com/hyperledger/fabric-sdk-go/pkg/core/config"`

kokolaki (Sun, 28 Jun 2020 10:44:56 GMT):
Has joined the channel.

jital (Mon, 29 Jun 2020 05:11:37 GMT):
Roadmap question Is there a plan to make all peers point to same couch db instance? That will allow to scale couch db horizontally

pkirkinezis (Mon, 29 Jun 2020 09:33:06 GMT):
Hi , is there any way to rename a channelid of an existing channel on the network ?

Matrixik (Mon, 29 Jun 2020 10:30:36 GMT):
Hi, I would like to know what is the fastest way of developing chaincode and fabric-node-sdk with fabric v2 at the same time? For now we are using `fabric-samples/test-network` but it's starting over 3 minutes (with some sed-ing in `test-network/scripts/deployCC.sh` for pointing it to our folder with chaincode, and copying certificate files to our rest api folder). I would like to have really fast restart of our whole backend for development, we are using typescript for rest api to communicate between frontend and blockchain. Now we simply restart only rest api on its code change (with ts-node-dev) but I would like to restart everything every time (so also restart everything on chaincode change). So I'm looking for fast way of starting whole blockchain part (something that start in under 10 seconds). I see there is `fabric-samples/chaincode-docker-devmode` but as I can see it's only for developing chaincode part (so not good for my needs, but it's starting fast). There is also Network Launcher (https://github.com/hyperledger/fabric-test/tree/master/tools/NL) but it's only for Fabric v1 so also not useful for me. Is there any other way for developing everything and that is fast to restart?

vikiival (Mon, 29 Jun 2020 12:20:04 GMT):
There should be also develop network with tls disabled, but I was unable to use it with javascript

AshutoshKumar7 (Mon, 29 Jun 2020 15:33:43 GMT):
I am experimenting with fabric-java-sdk , trying to run integration test cases. However it expects network ca (ca-org1 etc) to run on http. If I confgure https , it throws NPE. Comments section in HFCAClient says https is not implemented . Does that mean I need to disable TLS in my docker compose files for ca? Is it right thing to do ?

BrettLogan (Mon, 29 Jun 2020 17:47:50 GMT):
Are you including the installation in the 10 second window you are looking for?

BrettLogan (Mon, 29 Jun 2020 17:48:24 GMT):
If so, you are never going to get down to 10 seconds as installing chaincode is not a fairly quick process

BrettLogan (Mon, 29 Jun 2020 17:49:23 GMT):
That would seriously defeat the purpose of a decentralized peer-to-peer network

Matrixik (Mon, 29 Jun 2020 19:59:10 GMT):
I would like to auto install chaincode on it after every restart and I'm fine with precreated certs and other parts like in `fabric-samples/chaincode-docker-devmode`

Matrixik (Mon, 29 Jun 2020 20:00:17 GMT):
Basically anything that is faster than 3 minutes like `test-network` would be great, it's only for development

BrettLogan (Mon, 29 Jun 2020 20:03:34 GMT):
And do you want multiple peers, or is a single peer okay. I just want to give you a real benchmark on how long it will take (going to see what the actual startup time is for the new tool we have in fabric-test)

Matrixik (Mon, 29 Jun 2020 20:04:22 GMT):
one peer is ok, we can use test-network for more if we need

BrettLogan (Mon, 29 Jun 2020 20:30:55 GMT):
The new tool we have in Fabric-Test is ~40 seconds. This is from scratch, including generating all the artifacts all the way through sending an invoke and query for test. (it will automate sending an invoke and query). If you want are writing an app (not just chaincode) it will also give you your connection profile you can use for your app with the SDK. I'll get you the instructions on how to use, but it'll be later tonight for me to write it up (it's not complicated, it should be just two commands and set and environment variable, I just have to write it)

BrettLogan (Mon, 29 Jun 2020 20:30:55 GMT):
The new tool we have in Fabric-Test is ~40 seconds. This is from scratch, including generating all the artifacts all the way through sending an invoke and query for test. (it will automate sending an invoke and query). If you are writing an app (not just chaincode) it will also give you your connection profile you can use for your app with the SDK. I'll get you the instructions on how to use, but it'll be later tonight for me to write it up (it's not complicated, it should be just two commands and set and environment variable, I just have to write it)

BrettLogan (Mon, 29 Jun 2020 20:30:55 GMT):
The new tool we have in Fabric-Test is ~40 seconds. This is from scratch, including generating all the artifacts all the way through sending an invoke and query for test. (it will automate sending an invoke and query). If you are writing a client app using the SDK (not just chaincode) it will also give you your connection profile you can use for your app with the SDK. I'll get you the instructions on how to use, but it'll be later tonight for me to write it up (it's not complicated, it should be just two commands and set and environment variable, I just have to write it)

BrettLogan (Mon, 29 Jun 2020 20:34:18 GMT):
It also allows you to define your entire network, so as many orgs and peers as you want (its a simple yaml file) so if you later decide you want to test larger networks for some reason, its easy enough to modify.

BrettLogan (Mon, 29 Jun 2020 20:34:52 GMT):
The only prereqs are NodeJS 8/10/12, Docker, Docker-Compose, and Go 1.11+

BrettLogan (Mon, 29 Jun 2020 20:35:00 GMT):
I'll get you the instructions later tongith

BrettLogan (Mon, 29 Jun 2020 20:35:00 GMT):
I'll get you the instructions later tonight

jital (Mon, 29 Jun 2020 20:35:46 GMT):
peers of same org i meant here which we have brought up for case of HA

jital (Mon, 29 Jun 2020 20:35:46 GMT):
@BrettLogan peers of same org i meant here which we have brought up for case of HA

Matrixik (Mon, 29 Jun 2020 20:37:52 GMT):
Oh, that sound promising, thank you very much

Matrixik (Mon, 29 Jun 2020 20:40:01 GMT):
I will check it tomorrow because it's late at my time now

BrettLogan (Mon, 29 Jun 2020 20:40:10 GMT):
But the issue is, your entire org is susceptible to attack is you are using a single couch cluster. If someone gains admin access to your couch cluster, they can now edit the data for all of your statedbs across all of your peers. Whereas each peer maintaining its own couch instance means the attack vector is much more complicated as they have to break into multiple system

BrettLogan (Mon, 29 Jun 2020 20:40:10 GMT):
But the issue is, your entire org is susceptible to attack if you are using a single couch cluster. If someone gains admin access to your couch cluster, they can now edit the data for all of your statedbs across all of your peers. Whereas each peer maintaining its own couch instance means the attack vector is much more complicated as they have to break into multiple system

BrettLogan (Mon, 29 Jun 2020 20:40:10 GMT):
But the issue is, your entire org is susceptible to attack if you are using a single couch cluster. If someone gains admin access to your couch cluster, they can now much more easily edit the data for all of your statedbs across all of your peers. Whereas each peer maintaining its own couch instance means the attack vector is much more complicated as they have to break into multiple system

BrettLogan (Mon, 29 Jun 2020 20:42:06 GMT):
You're also introducing a much smaller failure surface. If your LB on your cluster goes down for some reason (or you lose DNS to that couch cluster), you've now lost your entire org

jital (Mon, 29 Jun 2020 20:48:34 GMT):
Yep that sounds fine, got the idea. Thanks @BrettLogan

bh4rtp (Tue, 30 Jun 2020 03:19:15 GMT):
hi, how to query public and private ledgers jointly? for example, contracts public ledger: ```{ _id, state // expired, signed, effective, questioned }``` private ledger: ```{ _id, price, quantity }``` i want to query the contracts with state = effective. how can i query the two ledgers efficiently?

bh4rtp (Tue, 30 Jun 2020 06:16:45 GMT):
@sykesm hi, can i use transient data by shimtest to do mockstub test?

bh4rtp (Tue, 30 Jun 2020 07:32:02 GMT):
transient data is done.

vikiival (Tue, 30 Jun 2020 08:39:46 GMT):
@BrettLogan where can we find that new tool ?

vikiival (Tue, 30 Jun 2020 08:40:23 GMT):

Screen Shot 2020-06-30 at 10.37.22.png

vikiival (Tue, 30 Jun 2020 08:40:28 GMT):

Screen Shot 2020-06-30 at 10.37.36.png

vikiival (Tue, 30 Jun 2020 08:40:30 GMT):
I’m still confused somehow in Wallets Wallet holds identities. In fabcar example we have one wallet with 2 identities if I want multiple identities should I create multiple directories (one directory for each wallet) ? What If I want multiple couchDB wallets ?

vimalViswan (Tue, 30 Jun 2020 09:09:08 GMT):
Has joined the channel.

knagware9 (Tue, 30 Jun 2020 09:28:43 GMT):
I think @BrettLogan talking about this tool https://github.com/hyperledger/fabric-test

vikiival (Tue, 30 Jun 2020 11:34:57 GMT):
What’s the difference between FabricCAServices.register and FabricCAServices.enroll ?

AldrinWilfred (Tue, 30 Jun 2020 12:01:59 GMT):
Hi ! I was wondering how can I deploy the application on a serverless service, such as AWS Lambda ? on setting up the wallet, Could you please suggest me any solutions or references.. It would be really helpful..

AldrinWilfred (Tue, 30 Jun 2020 12:02:02 GMT):
Thanks..

AldrinWilfred (Tue, 30 Jun 2020 12:05:47 GMT):
Hi ! I was wondering how can I deploy the application on a serverless service, such as AWS Lambda ? I am facing issues on setting up the wallet, I could retrieve user context only if i hard code the sample user, with the presence of priv, pub files in the wallet. But Lambda doesn't afford space to store multiple identities. Could you please suggest me any solutions or references.. It would be really helpful. Thanks...

AshutoshKumar7 (Tue, 30 Jun 2020 12:08:34 GMT):
https://stackoverflow.com/questions/50677021/what-is-diffrence-between-enrolling-and-registering-a-certificate-in-hyperledger

AshutoshKumar7 (Tue, 30 Jun 2020 12:17:19 GMT):
I think you can keep files on S3 or any aws database . Pass the references as env variables , integrated with aws secrets

AldrinWilfred (Tue, 30 Jun 2020 12:21:23 GMT):
I was struggling on this part for a while, i couldn't accomplish uploading the files to s3, and retrieving it back,.. Is there any source for reference? could u plz suggest, if u dont mind :-) ?

AldrinWilfred (Tue, 30 Jun 2020 12:21:44 GMT):
I was struggling on this part for a while, i couldn't accomplish uploading the files to s3, and retrieving it back,.. Is there any source for reference? could u plz suggest, if u dont mind 🙂 ?

manojvenkateswararaja (Tue, 30 Jun 2020 15:00:37 GMT):
Envronment - Multihost Env(4org,1 org hosting entire raft clusters) Followed the fabric-ca operations guide till genesis block everything went fine but while creating the docker for ordering service found the following error: [orderer.common.server] initializeServerConfig -> INFO 004 Starting orderer with TLS enabled orderer1-org0 | panic: runtime error: index out of range [1] with length 1 The below commands when executed confirm the hash for key,ca are same but doesn't match with tls-ca openssl pkey -in hyperledger/org2/peer1/tls-msp/keystore/key.pem -pubout -outform pem | sha256sum openssl x509 -in hyperledger/org2/peer1/tls-msp/signcerts/cert.pem -pubkey -noout -outform pem | sha256sum openssl x509 -in hyperledger/org2/peer1/tls-msp/tlscacerts/tls-orderer1-org0-7052.pem -pubkey -noout -outform pem | sha256sum Can you help identifying in which particular step in operation guid would have cause the error so that I can rerun from that if I need to restart completely then what is the change or caution that I need to consider.Note the passwords for the ca and tls-ca for certain identities are different as per the latest operation guide hope this didn't cause the issue.Attached the docker for the orderer and screenshot of the file.

manojvenkateswararaja (Tue, 30 Jun 2020 15:00:53 GMT):

Screenshot from 2020-06-30 20-12-18.png

manojvenkateswararaja (Tue, 30 Jun 2020 15:01:16 GMT):

Screenshot from 2020-06-30 20-12-28.png

manojvenkateswararaja (Tue, 30 Jun 2020 15:02:21 GMT):

Screenshot from 2020-06-30 20-12-18.png

manojvenkateswararaja (Tue, 30 Jun 2020 15:02:39 GMT):

Screenshot from 2020-06-30 20-12-28.png

Diddy_O (Tue, 30 Jun 2020 18:55:10 GMT):
I'm trying to build oracles for hyperledger fabric 1.4 in Go. I've written the initial peace of my client using gateway model, to extend fabcar demo and add an external service that should my oracle using gateway connect. ``` // A wallet existing in the 'wallet' folder wallet, err := NewFileSystemWallet("wallet") if err != nil { fmt.Printf("Failed to create wallet: %s\n", err) os.Exit(1) } // Path to the network config (CCP) file ccpPath := filepath.Join( "..", "connection-org1.yaml", ) // Connect to the gateway peer(s) using the network config and identity in the wallet gw, err := Connect( WithConfig( config.FromFile( filepath.Clean(ccpPath) ) ), WithIdentity(wallet, "appUser"), ) if err != nil { fmt.Printf("Failed to connect to gateway: %s\n", err) os.Exit(1) } defer gw.Close() ``` I'm starting from above code but I don't know how to go forward. I'm tryied to read [godocs][1] for hyperledger fabric, but I'm little bit confused, and I don't know if I'm on the good way, I've reader also this [ibm about oracles][2] article and this [hackernoon on convector suite][3] post, but online I have not found a really practical exemples, so I'm blocked on: The connection gateway is the correct way to create an oracle? The oracle is a simply client that retrieve data from external source and send it to chaincode? It has own user and need to connect new potential user to the existing wallet, or oracle, wallet and user are non related topic? The oracle need to be in the same network of chaincode? Or not? Can you give me a little example or tips of how I can continue with my oracle? [1]: https://godoc.org/github.com/hyperledger/fabric-sdk-go [2]: https://developer.ibm.com/technologies/blockchain/articles/oracles-common-architectural-patterns-for-fabric/ [3]: https://hackernoon.com/oracles-for-hyperledger-fabric-with-convector-suite-ay2u130w9

Diddy_O (Tue, 30 Jun 2020 18:55:10 GMT):
I'm trying to build oracles for hyperledger fabric 1.4 in Go. I've written the initial peace of my client using gateway model, to extend fabcar demo and add an external service that should my oracle using gateway connect. ``` // A wallet existing in the 'wallet' folder wallet, err := NewFileSystemWallet("wallet") if err != nil { fmt.Printf("Failed to create wallet: %s\n", err) os.Exit(1) } // Path to the network config (CCP) file ccpPath := filepath.Join( "..", "connection-org1.yaml", ) // Connect to the gateway peer(s) using the network config and identity in the wallet gw, err := Connect( WithConfig( config.FromFile( filepath.Clean(ccpPath) ) ), WithIdentity(wallet, "appUser"), ) if err != nil { fmt.Printf("Failed to connect to gateway: %s\n", err) os.Exit(1) } defer gw.Close() ``` I'm starting from above code but I don't know how to go forward. I'm tryied to read [godocs][1] for hyperledger fabric, but I'm little bit confused, and I don't know if I'm on the good way, I've reader also this [ibm about oracles][2] article and this [hackernoon on convector suite][3] post, but online I have not found a really practical exemples, so I'm blocked on: The connection gateway is the correct way to create an oracle? The oracle is a simply client that retrieve data from external source and send it to chaincode? It has own user and need to connect new potential user to the existing wallet, or oracle, wallet and user are non related topic? The oracle need to be in the same network of chaincode? Or not? Can you give me a little example or tips of how I can continue with my oracle? [1]: https://godoc.org/github.com/hyperledger/fabric-sdk-go [2]: https://developer.ibm.com/technologies/blockchain/articles/oracles-common-architectural-patterns-for-fabric/ [3]: https://hackernoon.com/oracles-for-hyperledger-fabric-with-convector-suite-ay2u130w9

Diddy_O (Tue, 30 Jun 2020 18:55:10 GMT):
I'm trying to build oracles for hyperledger fabric 1.4 in Go. I've written the initial peace of my client using gateway model, to extend fabcar demo and add an external service that should my oracle using gateway connect. ``` // A wallet existing in the 'wallet' folder wallet, err := NewFileSystemWallet("wallet") if err != nil { fmt.Printf("Failed to create wallet: %s\n", err) os.Exit(1) } // Path to the network config (CCP) file ccpPath := filepath.Join( "..", "connection-org1.yaml", ) // Connect to the gateway peer(s) using the network config and identity in the wallet gw, err := Connect( WithConfig( config.FromFile( filepath.Clean(ccpPath) ) ), WithIdentity(wallet, "appUser"), ) if err != nil { fmt.Printf("Failed to connect to gateway: %s\n", err) os.Exit(1) } defer gw.Close() ``` I'm starting from above code but I don't know how to go forward. I'm tryied to read [godocs][1] for hyperledger fabric, but I'm little bit confused, and I don't know if I'm on the good way, I've reader also this [ibm about oracles][2] article and this [hackernoon on convector suite][3] post, but online I have not found a really practical exemples, so I'm blocked on: The connection gateway is the correct way to create an oracle? The oracle is a simply client that retrieve data from external source and send it to chaincode? It has own user and need to connect new potential user to the existing wallet, or oracle, wallet and user are non related topic? The oracle need to be in the same network of chaincode? Or not? Can you give me a little example or tips of how I can continue with my oracle? [1]: https://godoc.org/github.com/hyperledger/fabric-sdk-go [2]: https://developer.ibm.com/technologies/blockchain/articles/oracles-common-architectural-patterns-for-fabric/ [3]: https://hackernoon.com/oracles-for-hyperledger-fabric-with-convector-suite-ay2u130w9

Diddy_O (Tue, 30 Jun 2020 18:55:10 GMT):
I'm trying to build oracles for hyperledger fabric 1.4 in Go. I've written the initial peace of my client using gateway model, to extend fabcar demo and add an external service that should my oracle using gateway connect. ``` // A wallet existing in the 'wallet' folder wallet, err := NewFileSystemWallet("wallet") if err != nil { fmt.Printf("Failed to create wallet: %s\n", err) os.Exit(1) } // Path to the network config (CCP) file ccpPath := filepath.Join( "..", "connection-org1.yaml", ) // Connect to the gateway peer(s) using the network config and identity in the wallet gw, err := Connect( WithConfig( config.FromFile( filepath.Clean(ccpPath) ) ), WithIdentity(wallet, "appUser"), ) if err != nil { fmt.Printf("Failed to connect to gateway: %s\n", err) os.Exit(1) } defer gw.Close() ``` I'm starting from above code but I don't know how to go forward. I'm tryied to read [godocs][1] for hyperledger fabric, but I'm little bit confused, and I don't know if I'm on the good way, but online I have not found a really practical exemples, so I'm blocked on: The connection gateway is the correct way to create an oracle? The oracle is a simply client that retrieve data from external source and send it to chaincode? It has own user and need to connect new potential user to the existing wallet, or oracle, wallet and user are non related topic? The oracle need to be in the same network of chaincode? Or not? Can you give me a little example or tips of how I can continue with my oracle?

jkalwar (Tue, 30 Jun 2020 19:20:53 GMT):
Has joined the channel.

ongchinkai (Wed, 01 Jul 2020 01:47:09 GMT):
After upgrading my chaincode, I am unable to query information created with the previous version, even though I see the information still in the ledger (according to couchdb). Is this normal?

AshutoshKumar7 (Wed, 01 Jul 2020 02:55:45 GMT):
https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example.html

AldrinWilfred (Wed, 01 Jul 2020 03:53:11 GMT):
I really appreciate it.. Thanks..

jkalwar (Wed, 01 Jul 2020 05:30:28 GMT):
hi , is there a way to create/update a private data collection dynamically that I can use within a chain code without instantiating a new version of chain code with the updated collection ?

jkalwar (Wed, 01 Jul 2020 05:30:28 GMT):
hi , I am exploring private data collections in HLF , is there a way to create/update a private data collection dynamically that I can use within a chain code without instantiating a new version of chain code with the updated collection ?

AndrewDu 2 (Wed, 01 Jul 2020 12:13:06 GMT):
Has joined the channel.

AndrewDu 2 (Wed, 01 Jul 2020 12:13:11 GMT):
Hey all, I'm getting an issue with a Hyperledger Fabric setup that was put in place before I started, I think I know the issue but not certain and don't exactly know how to fix it. The issue: We're getting errors raised even on basically all calls, including simple GET by id but GET all participants still responds fine. When we try to write back to the blockchain a transaction ID ( TrxID) isn't generated, which raises an error, but then it that participant, for instance, would be seen in the GET all call. There is one part of the error messages that's reoccurring, on a fetch by id: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: identity expired Or creating a participant: 0|gui-backend | error: [Channel.js]: sendTransactionProposal - Failed Proposal. Error: Error: 2 UNKNOWN: identity expired Which makes me believe that this is an "identity" authentication error, basically I think our certificate to access the "network" as a whole has expired.

ROHAN_SHROTHRIUM (Wed, 01 Jul 2020 12:53:10 GMT):
Has joined the channel.

ROHAN_SHROTHRIUM (Wed, 01 Jul 2020 12:53:11 GMT):
Hi all! I'm exploring qscc and wanted to know if there is a way to call any qscc functions through the peer chaincode and not through the cli or an sdk. Can anyone help me out with this?

danted (Wed, 01 Jul 2020 13:01:28 GMT):
Has joined the channel.

UmashankarSomasekar (Wed, 01 Jul 2020 17:40:10 GMT):
Has joined the channel.

UmashankarSomasekar (Wed, 01 Jul 2020 17:40:11 GMT):
Hi all, I am trying to persist data from the example test-network from fabric samples. after adding volumes in "docker-compose-test-net" am restarting the fabcar "startfabric.sh", i see all the data persisting but after restart peer doest communicaates with eachother

UmashankarSomasekar (Wed, 01 Jul 2020 17:41:32 GMT):
020-07-01T17:22:27.161Z - error: [DiscoveryService]: _buildOrderer[mychannel] - Unable to connect to the discovered orderer orderer.example.com:7050 due to Error: Failed to connect before the deadline on Committer- name: orderer.example.com:7050, url:grpcs://localhost:7050 E0701 22:52:27.172219449 5951 ssl_transport_security.cc:1245] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.

UmashankarSomasekar (Wed, 01 Jul 2020 17:42:15 GMT):
am using -ca option while starting the network

ginspctw (Wed, 01 Jul 2020 20:39:41 GMT):
Has joined the channel.

pikvik (Wed, 01 Jul 2020 20:41:57 GMT):
Hi There , I have been trying to integrate explorer to my fabric network deployed on k8s . I am getting all the data except the peer and channel ! Hepl would be highly appreciated

BrettLogan (Wed, 01 Jul 2020 21:17:59 GMT):
We removed the ability to call QSCC from chaincode in 2.1.1 as it was never intended to be invoked from chaincode: https://jira.hyperledger.org/browse/FAB-15285

Jackyeoh (Thu, 02 Jul 2020 02:11:53 GMT):
Has joined the channel.

Jackyeoh (Thu, 02 Jul 2020 02:11:53 GMT):
Hi there, I was wondering if most production implementation of Hyperledger Fabric forces their peers to run a node? I ask this because I couldn't find any mention of it in the case studies. If that's so, then: 1. How do they justify the cost of maintaining a peer to their consortium members? (the members would have to hire fabric experts to maintain it right?) 2. I'm aware that some are using managed blockchain such as AWS's Managed Blockchain, but isn't this centralizing control to say, AWS?

BrettLogan (Thu, 02 Jul 2020 04:19:57 GMT):
You can run peers on any cloud vendor. So you can use AWS but participate in a consortium running anywhere. And moving your peer to another location (another cloud, or your own data center) is as simple as standing up the new node, joining it to the network (letting it get all the blocks) and then shutting your other node down

BrettLogan (Thu, 02 Jul 2020 04:20:41 GMT):
That being said, not everyone who participates in the consortium needs to run a node. Take a banking consortium, the large banks may run the nodes, while the customers simple transact on the network

BrettLogan (Thu, 02 Jul 2020 04:22:04 GMT):
This is the case for many supply chain implementations. The large players (like Walmart, Kroger, and IBM) run the nodes, while the rest of the participants (farm, logistics, warehousing) simply transact on the network

BrettLogan (Thu, 02 Jul 2020 04:23:43 GMT):
Small players who don't have the money to hire an admin team, can also simply receive their crypto material from the admin org, and simply stand up their peer as a particpant. So their cost is born simply in just keeping the hardware up and running, they don't have to administrate the network

BrettLogan (Thu, 02 Jul 2020 04:23:43 GMT):
Small players who don't have the money to hire an admin team, can also simply receive their crypto material from the admin org, and simply stand up their peer as a particpant. So their cost is born simply in just keeping the hardware up and running, they don't have to administrate the network, so they don't need to be experts in running fabric

BrettLogan (Thu, 02 Jul 2020 04:23:43 GMT):
Small players who don't have the money to hire an admin team, can also simply receive their crypto material from the admin org, and simply stand up their peer as a particpant. So their cost is born simply in just keeping the hardware up and running, they don't have to administrate the network, so they don't need to be experts in running fabric components (orderers and CA's, as well as the complexities in bootstrapping the network)

BrettLogan (Thu, 02 Jul 2020 04:23:43 GMT):
Small players who don't have the capital to hire an admin team, can also simply receive their crypto material from the admin org, and simply stand up their peer as a particpant. So their cost is born simply in just keeping the hardware up and running, they don't have to administrate the network, so they don't need to be experts in running fabric components (orderers and CA's, as well as the complexities in bootstrapping the network)

lotty02cho (Thu, 02 Jul 2020 04:56:56 GMT):
I try to run test-network and install javascript chaincode. but here is my problem. ``` test-network$ ./network.sh deployCC -l javascript deploying chaincode on channel 'mychannel' Using organization 1 ++ peer lifecycle chaincode package fabcar.tar.gz --path ../chaincode/fabcar/javascript/ --lang node --label fabcar_1 ++ res=0 ++ set +x ===================== Chaincode is packaged on peer0.org1 ===================== Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output + cd /chaincode/output + '[' -f package-lock.json -o -f npm-shrinkwrap.json ] + npm install --production npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-contract-api failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-07-02T04_40_57_922Z-debug.log " !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed ``` Does anyone see or solve this error? please let me know.

UmashankarSomasekar (Thu, 02 Jul 2020 05:47:41 GMT):
@lotty02cho please run ./monitor.sh when you start the network, you will know more information to understand

UmashankarSomasekar (Thu, 02 Jul 2020 05:48:01 GMT):
EAI_AGAIN, comes sometimes the peer is not reachable

UmashankarSomasekar (Thu, 02 Jul 2020 05:48:38 GMT):
or simply you dont have internet up while running your application

UmashankarSomasekar (Thu, 02 Jul 2020 05:51:11 GMT):
your peer was not able to reach "https://registry.npmjs.org/fabric-contract-api", check your internet connection or firewall

JerkyzerGordon (Thu, 02 Jul 2020 06:56:54 GMT):
Has joined the channel.

JerkyzerGordon (Thu, 02 Jul 2020 06:56:54 GMT):
Good morning guys, I do not know exactly how to stop chain's data from

JerkyzerGordon (Thu, 02 Jul 2020 06:56:54 GMT):
Good morning guys, I do not know exactly how to stop chain's data from deleting after every time I run startFabric.sh

JerkyzerGordon (Thu, 02 Jul 2020 07:00:14 GMT):
I know that within the startFabric script are the commands to delete the docker containers but when I change them into "docker stop" instead of "docker down" the script fails, is there another solution to make the chain's data persist in hyperledger fabric 2.1?

c0deh0use (Thu, 02 Jul 2020 07:31:46 GMT):
How can one speed up the process of uploading a number of records to the blockchain? I have around 300 records to upload, nothing complex. The TransactionProposal takes so long it is getting timeouted by the blockchain. I was trying to change both the `BatchTimeout` - 10s and `BatchSize.MaxMessageCount` to 500, but nothing helped the proposal times. I'mm running on HLF 2.1.1, with two orgs, one raft orderer.

knagware9 (Thu, 02 Jul 2020 07:41:09 GMT):
you can use volume section in docker-compose file to persist data

JerkyzerGordon (Thu, 02 Jul 2020 07:44:26 GMT):
Thanks for your answer knag, but I don't know exactly how to do that. I am also new to docker, can you provide me some info or a proper guide?

knagware9 (Thu, 02 Jul 2020 07:46:20 GMT):
check this sample https://github.com/hyperledger/fabric-samples/blob/release/balance-transfer/artifacts/docker-compose.yaml

JerkyzerGordon (Thu, 02 Jul 2020 07:49:02 GMT):
Thanks again. So, if Im not mistaken, I should add a local path in the volume section of every orderer,peer and ca?

knagware9 (Thu, 02 Jul 2020 07:56:44 GMT):
yes, you need to mount your local path to peer, orderer, ca data paths

JerkyzerGordon (Thu, 02 Jul 2020 08:02:20 GMT):
Great, one last thing, I have multiple docker compose yaml files within the fabric-samples folder and I am using test-network, so should I edit all the yaml files or one specific?

JerkyzerGordon (Thu, 02 Jul 2020 08:02:33 GMT):
Sorry for my stupid questions!!

AndrewDu 2 (Thu, 02 Jul 2020 08:16:56 GMT):
I'm no fabric expert but I've got enough of docker experience to chip in. Generally speaking, Docker-compose is a way of spinning up multiple docker containers in one go, usually if you have multiple docker-compose files it's for something like different configurations for different environments i.e. a staging compose file, a production file etc. So I couldn't say with complete confidence without seeing the files you're referring to, but I suspect you only need to maintain one of the files you're actually using. The only case where you'd need multiple compose files that I can think of in this scenario, is if it's designed to deploy the different parts of fabric onto different machines but keep it all in one repo.

AlexM (Thu, 02 Jul 2020 08:28:53 GMT):
Has joined the channel.

AlexM (Thu, 02 Jul 2020 08:28:53 GMT):
I am writing an app in DAML. I was wondering if it is possible on Fabric to specific party access controls. Is it possible to specify that only certain parties can act as signatories on specific contracts? Thanks

AndrewDu 2 (Thu, 02 Jul 2020 08:29:13 GMT):
:wave: Hopefully a simple one, how do you refresh a certificate for fabric?

JerkyzerGordon (Thu, 02 Jul 2020 08:41:30 GMT):
The files that I mention are docker-compose-ca.yaml, compose-test-net.yaml, compocompose-ca.yamlse-couch.yaml , compose-e2e.yaml files within the test network folder, but I will try to edit one per time and see the outcome. Thanks Andrew!

RasDwivedi (Thu, 02 Jul 2020 08:43:49 GMT):
Has joined the channel.

RasDwivedi (Thu, 02 Jul 2020 08:43:49 GMT):
Hi guys, I am trying to implement a modified version of hash based time locks. I need to use last block number in the chaincode. Is it possible to get ledger height in the chaincode?

ps.agboola.ayodeji (Thu, 02 Jul 2020 09:54:14 GMT):
Has joined the channel.

ps.agboola.ayodeji (Thu, 02 Jul 2020 09:54:14 GMT):
Hello guys, I'm just picking up fabric and trying to understand how some things work and would appreciate some help getting some things clear

ps.agboola.ayodeji (Thu, 02 Jul 2020 09:55:43 GMT):
In the docker compose file docker-compose-test-net.yml, I see several volumes mounted for each peer and orderer and I can logically trace each volume except the volume: orderer.example.com:/var/hyperledger/production/orderer

ps.agboola.ayodeji (Thu, 02 Jul 2020 09:57:22 GMT):
when the configtx file is used to create all necessary files, folders etc, no folder called orderer.example.com is is created

ps.agboola.ayodeji (Thu, 02 Jul 2020 09:57:41 GMT):
at least not in the directory the volume is pointing to

Jackyeoh (Thu, 02 Jul 2020 11:15:08 GMT):
@BrettLogan Thanks for the insight! So I guess a good network implementation should be able to provide different packages to different players that might have different needs (large players might value their data more and thus wants complete ownership,etc)?

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 11:19:59 GMT):
Can this be done in v1.4??

VineethBoppudi (Thu, 02 Jul 2020 12:53:47 GMT):
Has joined the channel.

UmashankarSomasekar (Thu, 02 Jul 2020 13:21:54 GMT):
yes but volumes also failes after restarting

UmashankarSomasekar (Thu, 02 Jul 2020 13:22:19 GMT):
#- orderer.example.com:/var/hyperledger/production/orderer - /var/hyperledger/orderer:/var/hyperledger/production

UmashankarSomasekar (Thu, 02 Jul 2020 13:22:46 GMT):
i did this, the data persists, but after restart the peers dont communicate with eachother

UmashankarSomasekar (Thu, 02 Jul 2020 13:54:15 GMT):
your peer was not able to reach "https://registry.npmjs.org/fabric-contract-api", check your internet connection or firewall

BrettLogan (Thu, 02 Jul 2020 14:10:28 GMT):
It can

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 14:11:32 GMT):
Is there an example code which I could use?

BrettLogan (Thu, 02 Jul 2020 14:17:32 GMT):
There is not. Since it was never intended to be used and can deadlock your system we don't provide an example.

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 14:18:40 GMT):
What exactly is the problem of using a `getBlockInfo` for example, in a chaincode? How does it lead to deadlocks?

BrettLogan (Thu, 02 Jul 2020 14:25:06 GMT):
It's not a problem if you never have two transactions being submitted at the same time. If you have two happening at the same time it's possible the first holds a lock, that the second depends on, and the seconds holds a separate lock that first depends on. This neither process can complete

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 14:27:59 GMT):
Ohh okay thanks!

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 14:29:10 GMT):
Will it cause a problem if I commit something to the ledger whose write set has the block height?? (Mostly because one of the endorsing peer doesn't have all the blocks)

Shubh_awesome (Thu, 02 Jul 2020 14:37:05 GMT):
Has joined the channel.

BrettLogan (Thu, 02 Jul 2020 14:56:34 GMT):
If you query the block height, and put that in the RWSet, its possible the block height changes between simulation and validation. Thus the commit would be rejected

BrettLogan (Thu, 02 Jul 2020 14:57:40 GMT):
Even if it was possible, how would you make use of this. Between simulation and validation the block height could change, thus providing two different chaincode executions

Matrixik (Thu, 02 Jul 2020 15:15:58 GMT):
Hi @BrettLogan could you point me to this new tool in Fabric-Test?

ROHAN_SHROTHRIUM (Thu, 02 Jul 2020 15:53:38 GMT):
Ohh okay thanks!

sijo.c (Thu, 02 Jul 2020 17:50:49 GMT):
Has joined the channel.

AshutoshKumar7 (Fri, 03 Jul 2020 03:28:05 GMT):
this is empty directory thats get created. used later by orderer

rmnattas (Fri, 03 Jul 2020 17:06:36 GMT):
Hello! I'm trying to build fabric but it fails 3 unit tests, all with `An error is expected but got nil.` ``` --- FAIL: TestUnsuccessfulChannelTxFileCreation (0.06s) main_test.go:91: Error Trace: main_test.go:91 Error: An error is expected but got nil. Test: TestUnsuccessfulChannelTxFileCreation ... --- FAIL: Test_WriteFolderToTarPackageFailure4 (0.00s) writer_test.go:234: Error Trace: writer_test.go:234 Error: An error is expected but got nil. Test: Test_WriteFolderToTarPackageFailure4 Messages: Should have received error writing folder to package panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x104d3aec] ... --- FAIL: TestReplaceGenesisBlockFile (0.00s) --- FAIL: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable (0.00s) bootstrap_test.go:212: Error Trace: bootstrap_test.go:212 Error: An error is expected but got nil. Test: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable Messages: Fail to replace, backup panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1031c60c] ``` Any ideas why?

rmnattas (Fri, 03 Jul 2020 17:06:36 GMT):
Hello! I'm trying to build fabric but it fails 3 unit tests, all with `An error is expected but got nil.` ``` --- FAIL: TestUnsuccessfulChannelTxFileCreation (0.06s) main_test.go:91: Error Trace: main_test.go:91 Error: An error is expected but got nil. Test: TestUnsuccessfulChannelTxFileCreation ... --- FAIL: Test_WriteFolderToTarPackageFailure4 (0.00s) writer_test.go:234: Error Trace: writer_test.go:234 Error: An error is expected but got nil. Test: Test_WriteFolderToTarPackageFailure4 Messages: Should have received error writing folder to package panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x104d3aec] ... --- FAIL: TestReplaceGenesisBlockFile (0.00s) --- FAIL: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable (0.00s) bootstrap_test.go:212: Error Trace: bootstrap_test.go:212 Error: An error is expected but got nil. Test: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable Messages: Fail to replace, backup panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1031c60c] ``` Any ideas why? I'm using go 1.14.1

shreychaturvedi (Fri, 03 Jul 2020 17:10:52 GMT):
Has joined the channel.

shreychaturvedi (Fri, 03 Jul 2020 17:10:52 GMT):
Hey while following starting with tutorial , while createchannel i am getting below error: ./network.sh createChannel + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

knagware9 (Fri, 03 Jul 2020 18:17:20 GMT):
your peer not able to connect orderer, can you share more details. Or just just tear down network and clear docker container and rerun

rmnattas (Fri, 03 Jul 2020 18:43:49 GMT):
I'm trying to build fabric but I get 3 unit-test fails. All for `An error is expected but got nil.` ``` --- FAIL: TestUnsuccessfulChannelTxFileCreation (0.06s) main_test.go:91: Error Trace: main_test.go:91 Error: An error is expected but got nil. Test: TestUnsuccessfulChannelTxFileCreation ... --- FAIL: Test_WriteFolderToTarPackageFailure4 (0.00s) writer_test.go:234: Error Trace: writer_test.go:234 Error: An error is expected but got nil. Test: Test_WriteFolderToTarPackageFailure4 Messages: Should have received error writing folder to package panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x104d3aec] ... --- FAIL: TestReplaceGenesisBlockFile (0.00s) --- FAIL: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable (0.00s) bootstrap_test.go:212: Error Trace: bootstrap_test.go:212 Error: An error is expected but got nil. Test: TestReplaceGenesisBlockFile/Bad_-_backup_not_writable Messages: Fail to replace, backup panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1031c60c] ``` Any idea? I'm using go v1.14.1

BrettLogan (Fri, 03 Jul 2020 20:01:04 GMT):
You are running the tests a super user, with sudo-less privileges. Those test are checking that files that shouldn't have been written actually arent written. Since you had sudoless admin privileges the files were in fact written to disk, and thus the tests failed

BrettLogan (Fri, 03 Jul 2020 20:01:04 GMT):
You are running the tests a user, with sudo-less privileges. Those test are checking that files that shouldn't have been written actually arent written. Since you had sudoless admin privileges the files were in fact written to disk, and thus the tests failed

BrettLogan (Fri, 03 Jul 2020 20:01:04 GMT):
You are running the tests as a user with sudo-less privileges. Those test are checking that files that shouldn't have been written actually arent written. Since you had sudoless admin privileges the files were in fact written to disk, and thus the tests failed

BrettLogan (Fri, 03 Jul 2020 20:01:04 GMT):
You are running the tests as a user with sudo-less privileges. Those test are checking that files that shouldn't have been written (because you don't have permission) actually arent written. Since you had sudoless admin privileges the files were in fact written to disk, and thus the tests failed

ROHAN_SHROTHRIUM (Sat, 04 Jul 2020 11:56:55 GMT):
I installed fabric 2.0 and ran some chaincodes but now when I switched back to fabric 1.4 I keep getting an error `cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: GOPATH `..... When I do `go get github.com/hyperledger/fabric/core/chaincode/shim` in the cli it doesn't throw any errors

ROHAN_SHROTHRIUM (Sat, 04 Jul 2020 11:56:55 GMT):
I installed fabric 2.0 and ran some chaincodes but now when I switched back to fabric 1.4 I keep getting an error `cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of: GOPATH `..... When I do `go get github.com/hyperledger/fabric/core/chaincode/shim` in the cli it doesn't throw any errors Can someone help me out with this?

mohanrajpb (Sat, 04 Jul 2020 12:49:07 GMT):
Is there a solution for FABC-437: There is no way to change the CN for server's default tls certificate. In a multi host setup, tls certificates uses the containerid as subjects CN. Updating the fabric-ca-server-config.yaml or setting the HOSTNAME environment variable isn't having any affect. Due to this, subject-issuer in the certificates seems not getting linked properly. Any suggestions?

shreychaturvedi (Sat, 04 Jul 2020 16:05:40 GMT):
i tried troubleshoting restarting network ```Creating channel mychannel Using organization 1 + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed``` ```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 427211e0f9f4 hyperledger/fabric-orderer:latest "orderer" 23 hours ago Up 23 hours 0.0.0.0:7050->7050/tcp orderer.example.com 02fe6611a1c3 hyperledger/fabric-peer:latest "peer node start" 23 hours ago Up 23 hours 0.0.0.0:7051->7051/tcp peer0.org1.example.com 0c08b0df683e hyperledger/fabric-peer:latest "peer node start" 23 hours ago Up 23 hours 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com``` It does

shreychaturvedi (Sat, 04 Jul 2020 16:05:40 GMT):
i tried troubleshoting restarting network ```Creating channel mychannel Using organization 1 + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x + peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /Users/admin/Documents/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed``` ```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 427211e0f9f4 hyperledger/fabric-orderer:latest "orderer" 23 hours ago Up 23 hours 0.0.0.0:7050->7050/tcp orderer.example.com 02fe6611a1c3 hyperledger/fabric-peer:latest "peer node start" 23 hours ago Up 23 hours 0.0.0.0:7051->7051/tcp peer0.org1.example.com 0c08b0df683e hyperledger/fabric-peer:latest "peer node start" 23 hours ago Up 23 hours 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com``` It doesn't work, My host entry file ```127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost```

shreychaturvedi (Sat, 04 Jul 2020 16:07:25 GMT):
i tried these commands ``` ./network.sh down ./network.sh up ./network.sh createChannel```

BrettLogan (Sat, 04 Jul 2020 18:24:03 GMT):
While I don't see a way to override the start up config. You can generate your certs out of band (with openssl) and set the correct values in the CSR of those certs, and then bootstrap your CA from those certs

BrettLogan (Sat, 04 Jul 2020 18:24:03 GMT):
While I don't see a way to override the start up config. You can generate your certs out of band (with openssl for example) and set the correct values in the CSR of those certs, and then bootstrap your CA from those certs

BrettLogan (Sat, 04 Jul 2020 18:26:16 GMT):
Did you update your core.yaml to point to the `1.4` builders instead of the 2.0` builders

ROHAN_SHROTHRIUM (Sun, 05 Jul 2020 11:13:51 GMT):
Yes

kokolaki (Sun, 05 Jul 2020 11:40:49 GMT):
Hello Community, I am trying to set up hyperledger fabric on raspberry Pi armv7 archItecture, raspbian OS, following the instructions of the doc https://hyperledger-fabric.readthedocs.io/en/release-2.1/install.html to install platform specific binaries and docker iamges. But when I run the command curl -sSL https://bit.ly/2ysbOFE | bash - I get the following error: Downloading: https://github.com/hyperledger/fabric/releases/download/v2.1.1/hyperledger-fabric-linux-armv7l-2.1.1.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 24 0 --:--:-- --:--:-- --:--:-- 24 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 2.1.1 platform specific fabric binary is not available to download <---- It seems that there is no fabric binary available for armv7 architecture of raspberry. Does anyone know how it is possible to set up hyperledger fabric on raspberry pi? I need 64-bit architecture raspberry and 64-bit OS to isntall it? If I try other SDKs (node.js, java) I will have the same problem with this architecture of raspberry? Thank you in advance.

BrettLogan (Sun, 05 Jul 2020 15:26:08 GMT):
We don't support arm

RahulEth (Mon, 06 Jul 2020 07:08:35 GMT):
```_bulk_docs/put - damaged _rev causes uncaught exception```

RahulEth (Mon, 06 Jul 2020 07:08:35 GMT):
```_bulk_docs/put - damaged _rev causes uncaught exception``` do someone have any idea about it

kokolaki (Mon, 06 Jul 2020 07:29:30 GMT):
Thank you very much for your answer. In which raspberry pi can I install it? (OS, architecture)

kokolaki (Mon, 06 Jul 2020 07:29:30 GMT):
Thank you very much for your answer. In which raspberry pi can I install it? (OS, architecture). I ask that question, as I found in the internet that it has been set up on raspberry pi.

kokolaki (Mon, 06 Jul 2020 07:29:30 GMT):
Thank you very much for your answer. In which raspberry pi can I install it? (OS, architecture). I ask that question, as I found in the internet that it has been set up on raspberry pi, but they aren't provide the appropriate information.

kokolaki (Mon, 06 Jul 2020 10:27:45 GMT):
Thank you very much for your answer. In which raspberry pi can I install it? (OS, architecture). I ask that question, as I found in the internet that it has been set up on raspberry pi, but they aren't provide the appropriate information.

kokolaki (Mon, 06 Jul 2020 10:27:45 GMT):
Thank you very much for your answer. In which raspberry pi can I install it? (OS, architecture). I ask that question, as I found in the internet that it has been set up on raspberry pi, but they aren't provide the appropriate information. Do you how to install hyperledger fabric on raspberry pi?

kokolaki (Mon, 06 Jul 2020 10:27:45 GMT):
Thank you very much for your answer.. I ask that question, as I found in the internet that it has been set up on raspberry pi, but they aren't provide the appropriate information. Do you how to install hyperledger fabric on raspberry pi?

kokolaki (Mon, 06 Jul 2020 10:27:45 GMT):
Thank you for your answer.I asked that question, as I found in the internet that it has been set up on raspberry pi, but they aren't provide the appropriate information. Do you how to install hyperledger fabric on raspberry pi?

scmanjarrez (Mon, 06 Jul 2020 11:53:30 GMT):
Hi, I'm trying to set up the test-network but it doesn't work. I have used it the last days without problem, but after the last update, it doesn't start. Here is the log from the peers: ``````

scmanjarrez (Mon, 06 Jul 2020 11:53:30 GMT):
Hi, I'm trying to set up the test-network but it doesn't work. I have used it the last days without problem, but after the last update, it doesn't start. Here is the log from the peers: ``` 2020-07-06 11:31:24.798 UTC [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 00b Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error handling CouchDB request. Error:forbidden, Status Code:403, Reason:You can't edit the security object of the user database. 2020-07-06 11:31:24.798 UTC [couchdb] VerifyCouchConfig -> ERRO 00c Unable to connect to CouchDB, error: error handling CouchDB request. Error:forbidden, Status Code:403, Reason:You can't edit the security object of the user database.. Check the admin username and password. panic: Error in instantiating ledger provider: unable to connect to CouchDB. Check the admin username and password: error handling CouchDB request. Error:forbidden, Status Code:403, Reason:You can't edit the security object of the user database. goroutine 1 [running]: github.com/hyperledger/fabric/core/ledger/ledgermgmt.NewLedgerMgr(0xc000311960, 0x1b6a660) /go/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:79 +0x782 github.com/hyperledger/fabric/internal/peer/node.serve(0x25647c0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:420 +0x1f32 github.com/hyperledger/fabric/internal/peer/node.glob..func6(0x2432260, 0x25647c0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:128 +0x9c github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x2432260, 0x25647c0, 0x0, 0x0, 0x2432260, 0x25647c0) /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:826 +0x453 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x24329e0, 0xc0002dbf50, 0x1, 0x1) /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:914 +0x2fb github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(...) /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:864 main.main() /go/src/github.com/hyperledger/fabric/cmd/peer/main.go:54 +0x45b```

scmanjarrez (Mon, 06 Jul 2020 11:54:08 GMT):
Do you know what's the problem? I can't open an issue in the hyperledger fabric repo..

BrettLogan (Mon, 06 Jul 2020 13:05:43 GMT):
I know what change in core fabric caused this (I wrote the change in both fabric and fabric-samples) but I wouldn't have expected it to affect anyone yet. Can you give me the output of `docker images | grep hyperledger`

BrettLogan (Mon, 06 Jul 2020 13:07:17 GMT):
You would need to close the fabric repo, and build everything yourself.

BrettLogan (Mon, 06 Jul 2020 13:07:17 GMT):
You would need to clone the fabric repo, and build everything yourself.

scmanjarrez (Mon, 06 Jul 2020 13:43:16 GMT):

scmanjarrez - Mon Jul 06 2020 15:43:01 GMT+0200 (Central European Summer Time).txt

shreychaturvedi (Mon, 06 Jul 2020 13:44:30 GMT):
any updates where am i getting wrong?

scmanjarrez (Mon, 06 Jul 2020 13:45:30 GMT):
can you check the log of the peer? docker logs peer_container_id

shreychaturvedi (Mon, 06 Jul 2020 13:46:21 GMT):
```2020-07-03 16:57:51.183 UTC [gossip.gossip] New -> INFO 00e Creating gossip service with self membership of Endpoint: peer0.org1.example.com:7051, InternalEndpoint: peer0.org1.example.com:7051, PKI-ID: c5e1b55458637a3f2a6886bb589171b4412758e58189be234981f6ab82adfb4e, Metadata: 2020-07-03 16:57:51.184 UTC [lifecycle] InitializeLocalChaincodes -> INFO 00f Initialized lifecycle cache with 0 already installed chaincodes 2020-07-03 16:57:51.184 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 010 Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com 2020-07-03 16:57:51.184 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 011 Exit with ccEndpoint: peer0.org1.example.com:7052 2020-07-03 16:57:51.185 UTC [gossip.gossip] start -> INFO 012 Gossip instance peer0.org1.example.com:7051 started 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 013 deploying system chaincode 'lscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 014 deploying system chaincode 'cscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 015 deploying system chaincode 'qscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 016 deploying system chaincode '_lifecycle' 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 017 Deployed system chaincodes 2020-07-03 16:57:51.190 UTC [discovery] NewService -> INFO 018 Created with config TLS: true, authCacheMaxSize: 1000, authCachePurgeRatio: 0.750000 2020-07-03 16:57:51.190 UTC [nodeCmd] registerDiscoveryService -> INFO 019 Discovery service activated 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 01a Starting peer with ID=[peer0.org1.example.com], network ID=[dev], address=[peer0.org1.example.com:7051] 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 01b Started peer with ID=[peer0.org1.example.com], network ID=[dev], address=[peer0.org1.example.com:7051] 2020-07-03 16:57:51.190 UTC [kvledger] LoadPreResetHeight -> INFO 01c Loading prereset height from path [/var/hyperledger/production/ledgersData/chains] 2020-07-03 16:57:51.191 UTC [fsblkstorage] preResetHtFiles -> INFO 01d No active channels passed 2020-07-03 16:57:51.191 UTC [nodeCmd] func6 -> INFO 01e Starting profiling server with listenAddress = 0.0.0.0:6060```

shreychaturvedi (Mon, 06 Jul 2020 13:46:21 GMT):
```2020-07-03 16:57:51.088 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 172.19.0.4:7051 2020-07-03 16:57:51.090 UTC [peer] getLocalAddress -> INFO 003 Returning peer0.org1.example.com:7051 2020-07-03 16:57:51.117 UTC [nodeCmd] initGrpcSemaphores -> INFO 004 concurrency limit for endorser service is 2500 2020-07-03 16:57:51.117 UTC [nodeCmd] initGrpcSemaphores -> INFO 005 concurrency limit for deliver service is 2500 2020-07-03 16:57:51.118 UTC [nodeCmd] serve -> INFO 006 Starting peer with TLS enabled 2020-07-03 16:57:51.140 UTC [ledgermgmt] NewLedgerMgr -> INFO 007 Initializing LedgerMgr 2020-07-03 16:57:51.160 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 008 DB is empty Setting db format as 2.0 2020-07-03 16:57:51.161 UTC [fsblkstorage] NewProvider -> INFO 009 Creating new file ledger directory at /var/hyperledger/production/ledgersData/chains/chains 2020-07-03 16:57:51.168 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00a DB is empty Setting db format as 2.0 2020-07-03 16:57:51.177 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00b DB is empty Setting db format as 2.0 2020-07-03 16:57:51.177 UTC [ledgermgmt] NewLedgerMgr -> INFO 00c Initialized LedgerMgr 2020-07-03 16:57:51.183 UTC [gossip.service] New -> INFO 00d Initialize gossip with endpoint peer0.org1.example.com:7051 2020-07-03 16:57:51.183 UTC [gossip.gossip] New -> INFO 00e Creating gossip service with self membership of Endpoint: peer0.org1.example.com:7051, InternalEndpoint: peer0.org1.example.com:7051, PKI-ID: c5e1b55458637a3f2a6886bb589171b4412758e58189be234981f6ab82adfb4e, Metadata: 2020-07-03 16:57:51.184 UTC [lifecycle] InitializeLocalChaincodes -> INFO 00f Initialized lifecycle cache with 0 already installed chaincodes 2020-07-03 16:57:51.184 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 010 Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com 2020-07-03 16:57:51.184 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 011 Exit with ccEndpoint: peer0.org1.example.com:7052 2020-07-03 16:57:51.185 UTC [gossip.gossip] start -> INFO 012 Gossip instance peer0.org1.example.com:7051 started 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 013 deploying system chaincode 'lscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 014 deploying system chaincode 'cscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 015 deploying system chaincode 'qscc' 2020-07-03 16:57:51.190 UTC [sccapi] DeploySysCC -> INFO 016 deploying system chaincode '_lifecycle' 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 017 Deployed system chaincodes 2020-07-03 16:57:51.190 UTC [discovery] NewService -> INFO 018 Created with config TLS: true, authCacheMaxSize: 1000, authCachePurgeRatio: 0.750000 2020-07-03 16:57:51.190 UTC [nodeCmd] registerDiscoveryService -> INFO 019 Discovery service activated 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 01a Starting peer with ID=[peer0.org1.example.com], network ID=[dev], address=[peer0.org1.example.com:7051] 2020-07-03 16:57:51.190 UTC [nodeCmd] serve -> INFO 01b Started peer with ID=[peer0.org1.example.com], network ID=[dev], address=[peer0.org1.example.com:7051] 2020-07-03 16:57:51.190 UTC [kvledger] LoadPreResetHeight -> INFO 01c Loading prereset height from path [/var/hyperledger/production/ledgersData/chains] 2020-07-03 16:57:51.191 UTC [fsblkstorage] preResetHtFiles -> INFO 01d No active channels passed 2020-07-03 16:57:51.191 UTC [nodeCmd] func6 -> INFO 01e Starting profiling server with listenAddress = 0.0.0.0:6060```

BrettLogan (Mon, 06 Jul 2020 13:49:10 GMT):
And what is the output of `docker images | grep couchdb` in particular is there a `couchdb:3.1` image

scmanjarrez (Mon, 06 Jul 2020 13:49:50 GMT):
couchdb 3.1 7962d7fc8ed7 3 weeks ago 189MB hyperledger/fabric-couchdb 0.4 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.20 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb latest 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.18 d369d4eaa0fd 8 months ago 261MB

scmanjarrez (Mon, 06 Jul 2020 13:49:50 GMT):
couchdb 3.1 7962d7fc8ed7 3 weeks ago 189MB hyperledger/fabric-couchdb 0.4 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.20 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb latest 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.18 d369d4eaa0fd 8 months ago 261MB```

scmanjarrez (Mon, 06 Jul 2020 13:49:50 GMT):
``` couchdb 3.1 7962d7fc8ed7 3 weeks ago 189MB hyperledger/fabric-couchdb 0.4 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.20 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb latest 03ac1654afc5 4 months ago 261MB hyperledger/fabric-couchdb 0.4.18 d369d4eaa0fd 8 months ago 261MB```

BrettLogan (Mon, 06 Jul 2020 13:52:14 GMT):
Thank you, I'll get back to you in a couple minutes. Something is missing here. I wouldn't have expected this setup to fail

scmanjarrez (Mon, 06 Jul 2020 13:53:12 GMT):
Thank you too

shreychaturvedi (Mon, 06 Jul 2020 13:53:13 GMT):
its weird if i add 172.19.0.4 localhost in /etc/hosts i get `deadline exceeded error`

shreychaturvedi (Mon, 06 Jul 2020 13:53:13 GMT):
its weird if i add `172.19.0.4 localhost` in /etc/hosts i get `deadline exceeded error`

scmanjarrez (Mon, 06 Jul 2020 13:56:22 GMT):
can you run ```./network.sh up createChannel > logfile 2>&1``` and upload here the logfile?

scmanjarrez (Mon, 06 Jul 2020 13:56:22 GMT):
can you run ```./network down && ./network.sh up createChannel > logfile 2>&1``` and upload here the logfile?

shreychaturvedi (Mon, 06 Jul 2020 14:02:31 GMT):

log.txt

scmanjarrez (Mon, 06 Jul 2020 14:05:31 GMT):
can you post the output of docker ps -a?

scmanjarrez (Mon, 06 Jul 2020 14:05:31 GMT):
can you post the output of ```docker ps -a```?

shreychaturvedi (Mon, 06 Jul 2020 14:06:22 GMT):
```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0d57c6fb4fb1 hyperledger/fabric-peer:latest "peer node start" 8 minutes ago Up 8 minutes 0.0.0.0:7051->7051/tcp peer0.org1.example.com fce13ed479a0 hyperledger/fabric-orderer:latest "orderer" 8 minutes ago Up 8 minutes 0.0.0.0:7050->7050/tcp orderer.example.com b29b3c319481 hyperledger/fabric-peer:latest "peer node start" 8 minutes ago Up 8 minutes 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com dfbe609dfb8a hello-world "/hello" 3 days ago Exited (0) 3 days ago serene_lederberg```

scmanjarrez (Mon, 06 Jul 2020 14:13:06 GMT):
git log -1?

shreychaturvedi (Mon, 06 Jul 2020 14:13:44 GMT):
```commit 8b54e14ee43d2f0c4eb7dce037d9197a385144c8 (HEAD -> master, origin/master, origin/HEAD) Author: Brett Logan Date: Wed Jul 1 16:16:54 2020 -0400 Use Official CouchDB 3.1 Image Fabric 2.2 removes official support for CouchDB 2.x. The migration to 3.1 was to address fsync issues in the underlying storage implementation in Couch. This change moves to CouchDB 3.1 which requires the user to now set an admin identity at startup. Signed-off-by: Brett Logan ```

scmanjarrez (Mon, 06 Jul 2020 14:17:11 GMT):
output of docker log orderer_container_id?

scmanjarrez (Mon, 06 Jul 2020 14:18:00 GMT):
I think we should move to private messages, we are flooding this channel

scmanjarrez (Mon, 06 Jul 2020 14:18:00 GMT):
I think we should move to direct messages, we are flooding this channel

shreychaturvedi (Mon, 06 Jul 2020 14:20:48 GMT):

docker.txt

BrettLogan (Mon, 06 Jul 2020 14:25:41 GMT):
Ok, can you run `git fetch && git checkout 2.1.1` and then run `./network.sh down` to completely reset everything, and then you should be good

scmanjarrez (Mon, 06 Jul 2020 14:28:17 GMT):
Ok, thank you. I can't update then, right?

BrettLogan (Mon, 06 Jul 2020 14:31:59 GMT):
What do you mean by update?

scmanjarrez (Mon, 06 Jul 2020 14:32:47 GMT):
pull the latest commit to local repo

BrettLogan (Mon, 06 Jul 2020 14:33:53 GMT):
Correct, but are releasing Fabric 2.2 on Wednesday which will allow you to use the latest everything

scmanjarrez (Mon, 06 Jul 2020 14:34:14 GMT):
Perfect, thank you very much for your help!

BrettLogan (Mon, 06 Jul 2020 14:34:36 GMT):
And 2.2 will be our new Long Term Support release (superseding 1.4)

BrettLogan (Mon, 06 Jul 2020 14:34:44 GMT):
And 2.2 will be our new Long Term Support release (superseding 1.4)

mohanrajpb (Tue, 07 Jul 2020 00:10:43 GMT):
Receiving an error while bootstrapping the network - panic: Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority. This error is specific to the TLS CA root certificate. (crypto/ca-cert of TLSCA). Am I anything missing here?

punk8 (Tue, 07 Jul 2020 03:44:43 GMT):
Has joined the channel.

punk8 (Tue, 07 Jul 2020 03:44:43 GMT):
Hi guys, i want to know can we set "org1.admin" in endorsement policy during the instantiation of chaincode? And does it need us to sign the proposal by hands

ongchinkai (Tue, 07 Jul 2020 09:26:52 GMT):
How do I write an endorsement policy that requires all peers in the network to endorse?

ever-upwards (Tue, 07 Jul 2020 11:27:24 GMT):
Has joined the channel.

lynnrowe (Tue, 07 Jul 2020 11:41:25 GMT):
Has joined the channel.

lynnrowe (Tue, 07 Jul 2020 11:41:26 GMT):
peer channel create -o "$ORDERER_ADDRESS" -c "$CHANNEL_NAME" -f ./channel-artifacts/vehiclesharing_channel.tx --tls --cafile "$ORDERER_CA"

lynnrowe (Tue, 07 Jul 2020 11:41:45 GMT):
panic: runtime error: index out of range [1] with length 1 goroutine 1 [running]: github.com/hyperledger/fabric/msp.(*bccspmsp).sanitizeCert(0xc00042a280, 0xc000146b00, 0x1b77800, 0x178e140, 0xc00026d7a8) /go/src/github.com/hyperledger/fabric/msp/mspimpl.go:812 +0x1f8

lynnrowe (Tue, 07 Jul 2020 11:42:44 GMT):
how to solve it?

nolanjacobson (Tue, 07 Jul 2020 12:40:48 GMT):
Has joined the channel.

nolanjacobson (Tue, 07 Jul 2020 12:40:48 GMT):
Hey, I am trying to download binaries on Windows 10 and keep running into this issue when executing the bash script...

nolanjacobson (Tue, 07 Jul 2020 12:41:39 GMT):
```(23) Failed writing body ==> There was an error downloading the binary file. ------> 2.1.1 platform specific fabric binary is not available to download <----```

sergeikus (Tue, 07 Jul 2020 12:42:29 GMT):

sergeikus - Tue Jul 07 2020 15:42:14 GMT+0300 (Eastern European Summer Time).txt

sergeikus (Tue, 07 Jul 2020 12:44:42 GMT):
Hello! I am trying to connect to ledger network via Go SDK but keep getting this error: ``` [fabsdk/fab] 2020/07/07 12:35:35 UTC - fab.(*EndpointConfig).compileMatchers -> DEBU Matchers are: {matchers:map[]} [fabsdk/fab] 2020/07/07 12:35:35 UTC - fab.(*EndpointConfig).compileMatchers -> DEBU Entity matchers are not configured [fabsdk/fab] 2020/07/07 12:35:35 UTC - fab.(*EndpointConfig).loadTLSClientCerts -> DEBU Reading pk from config, unable to retrieve from cert: Could not find matching key for SKI: Failed getting key for SKI [[235 91 120 29 167 167 122 207 191 4 102 74 52 253 167 55 235 10 75 54 32 182 39 202 158 168 91 221 77 52 225 213]]: Key with SKI eb5b781da7a77acfbf04664a34fda737eb0a4b3620b627ca9ea85bdd4d34e1d5 not found in keystore [fabsdk/fab] 2020/07/07 12:35:35 UTC - fab.(*EndpointConfig).loadPrivateKeyFromConfig -> DEBU pk read from config successfully [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).loadIdentityConfigEntities -> DEBU Client is: {Organization:ea-org Logging:{Level:debug} CryptoConfig:{Path:/collector/crypto/msp} TLSCerts:{Client:{Key:{Path:/collector/crypto/tls-msp/keystore/key.pem Pem: bytes:[]} Cert:{Path:/collector/crypto/tls-msp/signcerts/cert.pem Pem: bytes:[]}} SystemCertPool:false} CredentialStore:{Path: CryptoStore:{Path:}}} [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).loadIdentityConfigEntities -> DEBU organizations are: map[auditor-org:{MSPID:AuditorOrgMSP CryptoPath: Users:map[] Peers:[peer1-auditor-org peer2-auditor-org] CertificateAuthorities:[]} ea-org:{MSPID:EAOrgMSP CryptoPath: Users:map[] Peers:[peer1-ea-org peer2-ea-org] CertificateAuthorities:[ea-ca tls-ca]}] [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).loadIdentityConfigEntities -> DEBU certificateAuthorities are: map[ea-ca:{ID: URL:https://0.0.0.0:7051 GRPCOptions:map[] TLSCACerts:{Pem:[-----BEGIN CERTIFICATE-----MIICFDCCAbqgAwIBAgIUZ8B6+I/3zBNC7yLiw4BOwmCR/rYwCgYIKoZIzj0EAwIwXjELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQKEwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMQ8wDQYDVQQDEwZ0bHMtY2EwHhcNMjAwNzA3MTE0OTAwWhcNMzUwNzA0MTE0OTAwWjBeMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xpbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMQ8wDQYDVQQLEwZGYWJyaWMxDzANBgNVBAMTBnRscy1jYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOUxjFCLYOlt2DR87Mx7WtiNvwZUkfXNH850eNC8lcaXBRKEcDPM7zB+/Vzb+iFbh9Xlmic/r775+M2NUY5p+FujVjBUMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEBMB0GA1UdDgQWBBTMCMejST0um1OThYX6zu6caEx5rTAPBgNVHREECDAGhwQAAAAAMAoGCCqGSM49BAMCA0gAMEUCIQDQZFyPrMVbadfxXy1M++ha2QbZ5qBjP/wwE4dCqAQUDgIgN6OcVy3UjpRZyeDjtnraA1kjsr4FA46u9VHzEPjH/+U=-----END CERTIFICATE-----] Path: Client:{Key:{Path: Pem: bytes:[]} Cert:{Path: Pem: bytes:[]}}} Registrar:{EnrollID: EnrollSecret:} CAName:ea-ca} tls-ca:{ID: URL:https://0.0.0.0:7050 GRPCOptions:map[] TLSCACerts:{Pem:[-----BEGIN CERTIFICATE-----MIICFDCCAbqgAwIBAgIUZ8B6+I/3zBNC7yLiw4BOwmCR/rYwCgYIKoZIzj0EAwIwXjELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQKEwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMQ8wDQYDVQQDEwZ0bHMtY2EwHhcNMjAwNzA3MTE0OTAwWhcNMzUwNzA0MTE0OTAwWjBeMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xpbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMQ8wDQYDVQQLEwZGYWJyaWMxDzANBgNVBAMTBnRscy1jYTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOUxjFCLYOlt2DR87Mx7WtiNvwZUkfXNH850eNC8lcaXBRKEcDPM7zB+/Vzb+iFbh9Xlmic/r775+M2NUY5p+FujVjBUMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEBMB0GA1UdDgQWBBTMCMejST0um1OThYX6zu6caEx5rTAPBgNVHREECDAGhwQAAAAAMAoGCCqGSM49BAMCA0gAMEUCIQDQZFyPrMVbadfxXy1M++ha2QbZ5qBjP/wwE4dCqAQUDgIgN6OcVy3UjpRZyeDjtnraA1kjsr4FA46u9VHzEPjH/+U=-----END CERTIFICATE-----] Path: Client:{Key:{Path: Pem: bytes:[]} Cert:{Path: Pem: bytes:[]}}} Registrar:{EnrollID: EnrollSecret:} CAName:tls-ca}] [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).compileMatchers -> DEBU Matchers are: {matchers:map[]} [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).loadAllCAConfigs -> DEBU Mapped Certificate Authority [ea-ca] [fabsdk/msp] 2020/07/07 12:35:35 UTC - msp.(*IdentityConfig).loadAllCAConfigs -> DEBU Mapped Certificate Authority [tls-ca] 2020/07/07 12:35:35 ledger error: can't initialize Fabric SDK: failed to initialize configuration: unable to load identity config: failed to initialize identity config from config backend: failed to create identity config from backends: failed to load TLS Cert Pool: Failed to process certificate ``` One hint is probably associated with .loadTLSClientCerts key fail, but I am not sure how exactly, maybe someone can hint me to something?

ever-upwards (Tue, 07 Jul 2020 13:01:05 GMT):
I'm following the Fabric test network tutorial at https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html. After invoking the fabcar chaincode to change the car owner, the tutorial directs us to query the chaincode to see the change. Is it possible to log on to one of the peer nodes in Docker and query the chaincode from there? e.g. `$docker exec -it [container ID] /bin/sh` then `#peer chaincode query ...` I tried, but got "error endorsing query" (truncated).

AndrewVV (Tue, 07 Jul 2020 14:36:17 GMT):
Has joined the channel.

nolanjacobson (Tue, 07 Jul 2020 16:08:28 GMT):
I am trying to set up a channel and am returned this output...

nolanjacobson (Tue, 07 Jul 2020 16:08:50 GMT):
``` ~/fabric-samples/test-network (master) $ ./network.sh createChannel -c channel1 Creating channel 'channel1'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb ### Generating channel create transaction 'channel1.tx' ### + configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel1.tx -channelID channel1 2020-07-07 12:04:13.914 EDT [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-07-07 12:04:13.932 EDT [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: C:\Users\14022\tao-fabric-one\fabric-samples\test-network\configtx\configtx.yaml 2020-07-07 12:04:13.932 EDT [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-07-07 12:04:13.933 EDT [common.tools.configtxgen] func1 -> PANI 004 proto: Marshal called with nil panic: proto: Marshal called with nil [recovered] panic: proto: Marshal called with nil goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000128000, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:230 +0x54c github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0006c0188, 0x4, 0xc00019ad20, 0x1e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x107 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0006c0190, 0xc00020f828, 0x1, 0x1) /__w/1/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0xa0 main.main.func1() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:253 +0x17d panic(0xa140e0, 0xc00006c370) /usr/local/go/src/runtime/panic.go:967 +0x174 github.com/hyperledger/fabric/protoutil.MarshalOrPanic(...) /__w/1/go/src/github.com/hyperledger/fabric/protoutil/commonutils.go:26 github.com/hyperledger/fabric/internal/configtxgen/encoder.addValue(0xc000493090, 0xbdad80, 0xc00017c420, 0xaf2a9c, 0x6) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:59 +0x1bc github.com/hyperledger/fabric/internal/configtxgen/encoder.NewApplicationOrgGroup(0xc00019d5f0, 0xbdad80, 0xc0000e1820, 0xaf2a9c) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:325 +0x200 github.com/hyperledger/fabric/internal/configtxgen/encoder.NewApplicationGroup(0xc00004b400, 0xbdad80, 0xc0000e16a0, 0xaf2a9c) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:297 +0x17f github.com/hyperledger/fabric/internal/configtxgen/encoder.NewChannelGroup(0xc00004b3c0, 0x782707, 0xc000128000, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:161 +0x40b github.com/hyperledger/fabric/internal/configtxgen/encoder.DefaultConfigTemplate(0xc00004b3c0, 0x0, 0xc00019a840, 0x1f) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:423 +0x36 github.com/hyperledger/fabric/internal/configtxgen/encoder.MakeChannelCreationTransaction(0xc000036180, 0x8, 0x0, 0x0, 0xc00004b3c0, 0xc0000f2a50, 0xc0000f2a80, 0xc0000f2ab0) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/encoder/encoder.go:490 +0x39 main.doOutputChannelCreateTx(0xc00004b3c0, 0x0, 0xc000036180, 0x8, 0xc0000324c0, 0x1f, 0xc000086ba6, 0x1) /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:61 +0x256 main.main() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:291 +0xd31 + res=2 + set +x Failed to generate channel configuration transaction... Error !!! Create channel failed ```

JohnD (Tue, 07 Jul 2020 16:23:16 GMT):
Has joined the channel.

ongchinkai (Wed, 08 Jul 2020 03:19:56 GMT):
I am trying to change the endorsement policy of my chaincode. First I run `peer chaincode install -n mychaincode -v 2.0 -l java -p /opt/gopath/src/github.com/chaincode` (same chaincode, different version), then I run `peer chaincode upgrade -o orderer1.example.com:7050 --tls true --cafile -C mychannel -n mychaincode -l java -v 2.0 -c '{"Args":[]}' -P "OutOf(2, 'Org1MSP.member')" -peerAddresses 192.168.100.1:7051 -peerAddresses 192.168.100.2:7051` Is this the correct way to do so? Or is there a better/correct way to do this?

conanoc (Wed, 08 Jul 2020 08:40:28 GMT):
The expiration date seems to be the 1 year after the enrollment date when I enroll a user from fabric-ca. Is there a way to specify an expiration date when enrolling a user?

conanoc (Wed, 08 Jul 2020 08:40:28 GMT):
The expiration date seems to be 1 year after the enrollment date when I enroll a user from fabric-ca. Is there a way to specify an expiration date when enrolling a user?

sergeikus (Wed, 08 Jul 2020 14:20:07 GMT):
Hello! One small question can I name peers on local machine as "peer-1-org1" or this should be "peer1.org1.com" ? Because when I am trying to connect to ledger via Go Fabric SDK I can't do that because my application says that it can't see any peers on channel this is probably due "discovery" service not able to find peers: ``` 2020/07/08 14:14:12 ledger error: failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: no channel peers configured for channel [tiviledge] ```

sergeikus (Wed, 08 Jul 2020 14:20:07 GMT):
Hello! One small question can I name peers on local machine as "peer-1-org1" or this should be "peer1.org1.com" ? Because when I am trying to connect to ledger via Go Fabric SDK I can't do that because my application says that it can't see any peers on channel. I think that this is probably due "discovery" service not able to find peers: ``` 2020/07/08 14:14:12 ledger error: failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: no channel peers configured for channel [tiviledge] ```

BilalAhmad (Wed, 08 Jul 2020 14:31:57 GMT):
Hi everyone i get this error while instantiating the chain code (syntax error: unexpected shim, expecting comma or ) it install just fine it was working fine i restarted the network and this error appeared

Bfrank_Epik (Wed, 08 Jul 2020 20:16:37 GMT):
Has joined the channel.

spore-engineering (Wed, 08 Jul 2020 23:18:54 GMT):
Has joined the channel.

lynnrowe (Thu, 09 Jul 2020 02:23:08 GMT):
how to modify java chaincode docker hosts?

lynnrowe (Thu, 09 Jul 2020 07:28:31 GMT):
found it *CORE_VM_DOCKER_HOSTCONFIG_EXTRAHOSTS*

Esegarra (Thu, 09 Jul 2020 09:48:16 GMT):
Hello! I need your help. I’m getting the following error when I’m trying to init the chaincode (I’m working with Fabric 2.0 using chaincode lifecycle): ```Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode XXX has been successfully defined on channel mychannel and try again: chaincode definition for 'XXX' exists, but chaincode is not installed"``` I’ve never found this error before. What is the reason?

SuneetBendre (Thu, 09 Jul 2020 10:50:16 GMT):
Can you share your script ? chaincode install and later steps

giuzero (Thu, 09 Jul 2020 11:15:22 GMT):
hlf 2.1.1 and couchdb3.1 seems to not work together... what version of couchdb should I use with hlf 2.1.1?

AldrinWilfred (Thu, 09 Jul 2020 12:08:50 GMT):
Hi All, Could you please share a sample for fabcar with aws lambda services, if any? I have accomplished ec2 implementations, local machine implementation so far, Im really struggling with lambda implementation and certificate storage, so thought to go from samples.. Kindly advice..

Vanitha (Thu, 09 Jul 2020 12:21:13 GMT):

Clipboard - July 9, 2020 5:20 AM

Vanitha (Thu, 09 Jul 2020 12:47:13 GMT):
Hello all I am getting error while invoking a transaction... invoking is working fine if I am performing that from cli.... but when I am invoking trough node sdk it is throwing error as attached... I have installed chaincode on every peer and then instantiated with endorsement policy -P "AND ('org1.member', ....) and then wrote connection profile and then performed enrollAdmin, register and invoke... PLease do suggest

BrettLogan (Thu, 09 Jul 2020 12:57:27 GMT):
I missed the `v` in `v2.1.1` when I tagged it. Can you do a `git checkout 2.1.1` that'll fix it. I'll update the tag in a few minutes

BrettLogan (Thu, 09 Jul 2020 14:20:11 GMT):
I retagged the release. So if you do a `git fetch && git checkout v2.1.1` you'll be good now

giuzero (Thu, 09 Jul 2020 14:32:14 GMT):
I downgraded to 2.0.0 and used hyperledger-fabric/couchdb:latest in the yaml. Tomorrow I'll with 2.1.1. Thanks

BrettLogan (Thu, 09 Jul 2020 14:52:54 GMT):
We are about to anounce 2.2.0 here any moment (we are working on the emails), which is our new long term support release (replacing 1.4.x). But all of the stuff is published already to use it. So I would recommend going right to that.

aths (Thu, 09 Jul 2020 15:35:04 GMT):
Has joined the channel.

aths (Thu, 09 Jul 2020 15:35:04 GMT):
Hello. I have trouble running the test-network

aths (Thu, 09 Jul 2020 15:35:48 GMT):
when ever I try to run ./network.sh, both peers and the orderer are up

aths (Thu, 09 Jul 2020 15:36:20 GMT):
but when i run docker ps -a, I find them exited

aths (Thu, 09 Jul 2020 15:36:31 GMT):
hence im not able to create a channel

aths (Thu, 09 Jul 2020 15:36:51 GMT):
I am following this guide: https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

rajpratheep (Thu, 09 Jul 2020 16:38:42 GMT):
Has joined the channel.

rajpratheep (Thu, 09 Jul 2020 16:38:43 GMT):
Hello, I have an issue while trying 'network.sh up' under test-network. Getting an error that "Error! Peer binary and configuration files not found". Has anyone faced this error before? Thanks in advance.

rajpratheep (Thu, 09 Jul 2020 16:38:43 GMT):
Hello, I am trying to bring up fabric 2.1.1. I have an issue while trying 'network.sh up' under test-network. Getting an error that "Error! Peer binary and configuration files not found". Has anyone faced this error before? Thanks in advance.

rajpratheep (Thu, 09 Jul 2020 16:38:43 GMT):
Hello, I am trying to bring up fabric 2.1.1. I have an issue while trying 'network.sh up' under test-network. Getting an error that "Error! Peer binary and configuration files not found". Has anyone faced this error before? Also, I am not seeing config folder in fabric-samples as well. Thanks in advance.

kulkarnikk (Thu, 09 Jul 2020 16:43:44 GMT):
Has left the channel.

BrettLogan (Thu, 09 Jul 2020 17:14:44 GMT):
How did you setup fabric-samples?

BrettLogan (Thu, 09 Jul 2020 17:15:38 GMT):
Did you use `curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.1 1.4.7 0.4.20`

rajpratheep (Fri, 10 Jul 2020 03:20:17 GMT):
@BrettLogan I have not specified the versions. Otherwise the same command I had used.

alexander.v.rivera (Fri, 10 Jul 2020 03:57:32 GMT):
Has joined the channel.

Abhishekkishor (Fri, 10 Jul 2020 05:24:33 GMT):
Hello Guys, Hope you are doing well. I need your help and guidance in Hyperledger Fabric. Can you please suggest me good resources on how to generate crypto materials (manualy) using fabric ca in hyperledger? Also the answers of few questions My questions are: 1) which testing framework to use for fabric contract api chaincode (node.js) testing? 2) How to handle crypto certificates in production projects? How to generate certificates ? Where & how to store certificates ? I'll be waiting for your all your response and suggestions. Thanks & regards, Abhishek

pkirkinezis (Fri, 10 Jul 2020 06:54:44 GMT):
Hi to the team . In the process of installing a chaincode to a channel . The approveformyorg produces any file that I can distribute to all the servers so they can approve it and make a final commit . I mean like the process of updating the channel configuration .

anish-edx (Fri, 10 Jul 2020 07:39:03 GMT):
Has joined the channel.

sergeikus (Fri, 10 Jul 2020 09:18:11 GMT):
Hi guys, I am having a problem with running "fabcar" with Go SDK, in fabric-samples repository: ``` ~/github/fabric-samples/fabcar/go$ go run fabcar.go [fabsdk/core] 2020/07/10 09:13:46 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation Failed to evaluate transaction: Failed to evaluate: Multiple errors occurred: - Transaction processing for endorser [peer0.org2.example.com:9051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [peer0.org2.example.com:9051]: connection is in TRANSIENT_FAILURE - Transaction processing for endorser [peer0.org1.example.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [peer0.org1.example.com:7051]: connection is in TRANSIENT_FAILURE exit status 1 ``` Can anyone hint to what can be the cause of this?

sergeikus (Fri, 10 Jul 2020 09:24:59 GMT):
Oke, I resolved issue with peers, I had to add entityMatchers in connection profile .yaml for them.

sergeikus (Fri, 10 Jul 2020 09:59:58 GMT):
Now I have a next problem. Orderer now drops connection as it mentions that the TLS certificate is bad: ``` ~/github/fabric-samples/fabcar/go$ go run fabcar.go [fabsdk/core] 2020/07/10 09:59:34 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation [{"Key":"CAR0","Record":{"make":"Toyota","model":"Prius","colour":"blue","owner":"Tomoko"}},{"Key":"CAR1","Record":{"make":"Ford","model":"Mustang","colour":"red","owner":"Brad"}},{"Key":"CAR12","Record":{"make":"Honda","model":"Accord","colour":"Black","owner":"Tom"}},{"Key":"CAR2","Record":{"make":"Hyundai","model":"Tucson","colour":"green","owner":"Jin Soo"}},{"Key":"CAR3","Record":{"make":"Volkswagen","model":"Passat","colour":"yellow","owner":"Max"}},{"Key":"CAR4","Record":{"make":"Tesla","model":"S","colour":"black","owner":"Adriana"}},{"Key":"CAR5","Record":{"make":"Peugeot","model":"205","colour":"purple","owner":"Michel"}},{"Key":"CAR6","Record":{"make":"Chery","model":"S22L","colour":"white","owner":"Aarav"}},{"Key":"CAR7","Record":{"make":"Fiat","model":"Punto","colour":"violet","owner":"Pari"}},{"Key":"CAR8","Record":{"make":"Tata","model":"Nano","colour":"indigo","owner":"Valeria"}},{"Key":"CAR9","Record":{"make":"Holden","model":"Barina","colour":"brown","owner":"Shotaro"}}] Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: calling orderer '127.0.0.1:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [127.0.0.1:7050]: connection is in TRANSIENT_FAILURE exit status 1 ```

sergeikus (Fri, 10 Jul 2020 10:00:29 GMT):
and the Orderer logs: ``` 020-07-10 09:59:32.364 UTC [orderer.consensus.etcdraft] Check -> DEBU 118a Current active nodes in cluster are: [1] channel=mychannel node=1 2020-07-10 09:59:33.155 UTC [orderer.consensus.etcdraft] Check -> DEBU 118b Current active nodes in cluster are: [1] channel=system-channel node=1 2020-07-10 09:59:34.364 UTC [orderer.consensus.etcdraft] Check -> DEBU 118c Current active nodes in cluster are: [1] channel=mychannel node=1 2020-07-10 09:59:34.495 UTC [core.comm] ServerHandshake -> ERRO 118d TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.25.0.1:38668 2020-07-10 09:59:34.495 UTC [grpc] Warningf -> DEBU 118e grpc: Server.Serve failed to complete security handshake from "172.25.0.1:38668": remote error: tls: bad certificate 2020-07-10 09:59:35.155 UTC [orderer.consensus.etcdraft] Check -> DEBU 118f Current active nodes in cluster are: [1] channel=system-channel node=1 ```

sergeikus (Fri, 10 Jul 2020 10:01:26 GMT):
How can be that in other implementations everything is ok and with Go SDK I get this error? I would be really thankful if someone could help me with this problem :(

kokolaki (Fri, 10 Jul 2020 10:06:21 GMT):
Hello community, I am trying to deploy fabcar chaincode in a channel, according to documentation here https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html. The first time I run the command ./network.sh deployCC, I get error Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed The second time I run the same command I get error : Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: no matching manifest for linux/arm64/v8 in the manifest list entries !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! Why that happens? I use (ARM64, ubuntu 18.04) Thanks in advance!

kokolaki (Fri, 10 Jul 2020 10:06:21 GMT):
Hello community, I am trying to deploy fabcar chaincode in a channel, according to documentation here https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html. The first time I run the command ./network.sh deployCC, I get error Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed The second time I run the same command I get error : Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: no matching manifest for linux/arm64/v8 in the manifest list entries !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! Why that happens? I use (ARM64, ubuntu 18.04) I have downloaded docker images from a hup repository and the fabric samples with the bin and config directories . Thanks in advance!

kokolaki (Fri, 10 Jul 2020 10:06:21 GMT):
Hello community, I am trying to deploy fabcar chaincode in a channel, according to documentation here https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html. The first time I run the command ./network.sh deployCC, I get error Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ERROR !!! Deploying chaincode failed The second time I run the same command I get error : Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ++ res=1 ++ set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: no matching manifest for linux/arm64/v8 in the manifest list entries !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! Why that happens? I use (ARM64, ubuntu 18.04) I have downloaded docker images from a hup repository and the fabric samples with the bin and config directories . I failed to build them all : Building docker baseimage docker build -f config/baseimage/Dockerfile \ -t hyperledger/fabric-baseimage \ -t hyperledger/fabric-baseimage:arm64-0.4.22 \ . Sending build context to Docker daemon 1.693MB Step 1/6 : FROM adoptopenjdk:8u222-b10-jdk-openj9-0.15.1 8u222-b10-jdk-openj9-0.15.1: Pulling from library/adoptopenjdk no matching manifest for linux/arm64/v8 in the manifest list entries Makefile:60: recipe for target 'build/docker/baseimage/.arm64-0.4.22' failed make: *** [build/docker/baseimage/.arm64-0.4.22] Error 1 . Moreover how can I install bin and config directories in fabric samples? Thanks in advance!

BrettLogan (Fri, 10 Jul 2020 15:46:07 GMT):
We dont support ARM, you would need to modify a lot of things to make this work with regards to the build process

AshutoshKumar7 (Fri, 10 Jul 2020 16:52:34 GMT):
I am getting a NPE in java sdk. I have network running with ca configured with tls. HFCAClient code (properties.containsKey("pemBytes")) throws NPE. Constructor for this class says in comments @param properties PEM used for SSL .. not implemented. What is going wrong here?

dcof (Fri, 10 Jul 2020 17:08:51 GMT):
i'm trying to install the example_02 java chaincode but i get "panic: runtime error: invalid memory address or nil pointer dereference" error when trying to install. Anybody has an idea what this could be? i already double and triple checked that the location of the path to the java directory is okay

spore-engineering (Fri, 10 Jul 2020 19:35:29 GMT):
hello, new here (sorry to get in the middle haha), may i ask, im following getting started docs, already managed to run all the test examples, now my question is, i need to perform a production scenario (really small, just for a small endeavour, nothing fancy, the minumun), this environment (production), follow the same installation rules from before?, i mean, i need to perform an installation outside docker?, or that implementation is "semi"-production ready?

AbhishekAadi (Fri, 10 Jul 2020 21:04:33 GMT):
Hey guys, I'm getting an error while creating channel.. INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'cvchannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group]  /Channel/Application be at version 0, but it is currently at version 1 Can anyone help me with this

BrettLogan (Sat, 11 Jul 2020 02:33:38 GMT):
hfcaclient hasn't implemented tls for the fabric-ca in java

BrettLogan (Sat, 11 Jul 2020 02:35:08 GMT):
Containers are a perfectly acceptable solution for running fabric. Of course in production you would run it on containers running on separate hosts

AshutoshKumar7 (Sat, 11 Jul 2020 03:54:09 GMT):
I tried to disable TLS in docker compose files. But it throws following error ."2020-07-11 03:30:50.088 UTC [common.tools.configtxgen] main -> FATA 006 Error on outputBlock: could not create bootstrapper: could not create channel group: could not create orderer group: cannot marshal metadata for orderer type etcdraft: cannot load client cert for consenter orderer.example.com:7050: open /home/ubuntu/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt: no such file or directory"

AshutoshKumar7 (Sat, 11 Jul 2020 03:54:38 GMT):
How to I disbale TLS on ca containers to debug with java sdk?

pratheep (Sat, 11 Jul 2020 04:58:30 GMT):
Has joined the channel.

smithjohn 1 (Sat, 11 Jul 2020 13:07:34 GMT):
Has joined the channel.

smithjohn 1 (Sat, 11 Jul 2020 13:07:34 GMT):
I am

smithjohn 1 (Sat, 11 Jul 2020 13:11:20 GMT):
I do tutorial commercial-paper, but I face error when peer lifecycle chaincode install cp.tar.gz. Please help me. env are fabric 2.1.0 zealous_poitras|go: github.com/go-openapi/jsonreference@v0.19.3: Get "https://proxy.golang.org/github.com/go-openapi/jsonreference/@v/v0.19.3.mod": dial tcp: lookup proxy.golang.org on 192.168.0.1:53: read udp 172.17.0.2:36136->192.168.0.1:53: i/o timeout peer0.org2.example.com|2020-07-11 12:37:30.539 UTC [chaincode.platform] func1 -> ERRO 04c docker build failed: Error returned from build: 1 "go: github.com/go-openapi/jsonreference@v0.19.3: Get "https://proxy.golang.org/github.com/go-openapi/jsonreference/@v/v0.19.3.mod": dial tcp: lookup proxy.golang.org on 192.168.0.1:53: read udp 172.17.0.2:36136->192.168.0.1:53: i/o timeout peer0.org2.example.com|" peer0.org2.example.com|2020-07-11 12:37:30.539 UTC [dockercontroller] buildImage -> ERRO 04d Error building image: docker build failed: Error returned from build: 1 "go: github.com/go-openapi/jsonreference@v0.19.3: Get "https://proxy.golang.org/github.com/go-openapi/jsonreference/@v/v0.19.3.mod": dial tcp: lookup proxy.golang.org on 192.168.0.1:53: read udp 172.17.0.2:36136->192.168.0.1:53: i/o timeout

BrettLogan (Sat, 11 Jul 2020 17:29:39 GMT):
what version of go do you have installed `go version`

spore-engineering (Sat, 11 Jul 2020 18:23:56 GMT):
thank you very much

AshutoshKumar7 (Sun, 12 Jul 2020 15:05:30 GMT):
I am getting an error Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:latest: API error (404): manifest for hyperledger/fabric-ccenv:latest not found: manifest unknown: manifest unknown

AshutoshKumar7 (Sun, 12 Jul 2020 15:06:20 GMT):
Even manually pulling latest docker image for hyperledger/fabric-ccenv:latest throws same error : manifest unknown

mrudav.shukla (Sun, 12 Jul 2020 15:09:39 GMT):
Facing the similar issue since last two days. The workaround I did was pulling 1.4 image and tagging that as latest in my machine.

BrettLogan (Sun, 12 Jul 2020 18:19:05 GMT):
You should be specifying proper tags for `chaincode.builder` and `chaincode..runtime` in your core.yaml files. We retired the latest tags in github because people were blindly using them thinking `latest` meant newest, which was not the case

BrettLogan (Sun, 12 Jul 2020 18:19:05 GMT):
You should be specifying proper images and tags for `chaincode.builder` and `chaincode..runtime` in your core.yaml files. We retired the latest tags in github because people were blindly using them thinking `latest` meant newest, which was not the case

BrettLogan (Sun, 12 Jul 2020 18:19:05 GMT):
You should be specifying proper images and tags for `chaincode.builder` and `chaincode..runtime` in your core.yaml files. We retired the latest tags in DockerHub because people were blindly using them thinking `latest` meant newest, which was not the case

AbhijeetBhowmik (Mon, 13 Jul 2020 03:05:32 GMT):
Has joined the channel.

AbhijeetBhowmik (Mon, 13 Jul 2020 03:05:32 GMT):
Hi all. I have been stuck at chaincode instantiate error since last 24 hrs. 1. while using hyperledger/fabric-ccenv:1.4.7 I face issue `uncaughtException: @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0` and when I upgrade to fabric-ccenv:2.0 or greater, I get error npm: not found. 2. while letting chaincode install dependency, error is `Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:latest: API error (404): manifest for hyperledger/fabric-ccenv:latest not found` 3. After pulling hyperledger/fabric-ccenv:2.2 and retagging it to hyperledger/fabric-ccenv:latest, error is `Error building image: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: npm: not found`. I am not gettig what's going on with ccenv versions and chaincode instantiation

AbhijeetBhowmik (Mon, 13 Jul 2020 03:07:48 GMT):
@mrudav.shukla I too tried doing that but then getting error @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0. Did you not get that error?

BrettLogan (Mon, 13 Jul 2020 03:17:40 GMT):
What version of fabric are you using?

AbhijeetBhowmik (Mon, 13 Jul 2020 03:18:58 GMT):
1.4.2

BrettLogan (Mon, 13 Jul 2020 03:19:44 GMT):
And what does you package.json `deps` section look like for your chaincode

BrettLogan (Mon, 13 Jul 2020 03:19:44 GMT):
And what does you package.json `dependencies ` section look like for your chaincode

BrettLogan (Mon, 13 Jul 2020 03:19:44 GMT):
And what does you package.json `dependencies` section look like for your chaincode

AbhijeetBhowmik (Mon, 13 Jul 2020 03:20:37 GMT):
`"name": "skynet.chaincode.itinerary", "version": "1.0.0", "description": "A chaincode to transact itineraries between participants", "main": "dist/index.js", "typings": "dist/index.d.ts", "engines": { "node": ">=8", "npm": ">=5" }, "scripts": { "pretest": "npm run lint", "lint": "tslint -c tslint.json 'src/**/*.ts'", "test": "mocha -r ts-node/register test/**/*.spec.ts", "start": "fabric-chaincode-node start", "mocha": "mocha test --recursive", "build": "tsc", "build:watch": "tsc -w", "prepublishOnly": "npm run build" }, "author": "Abhijeet Bhowmik", "license": "ISC", "dependencies": { "fabric-contract-api": "^2.0.0", "fabric-shim": "^2.0.0", "loadash": "^1.0.0", "uuid": "^8.2.0", "validator": "^13.1.1" }`

BrettLogan (Mon, 13 Jul 2020 03:21:02 GMT):
You are using incompatible versions of the contract-api and shim

BrettLogan (Mon, 13 Jul 2020 03:21:14 GMT):
```"dependencies": { "fabric-contract-api": "~1.4.0", "fabric-shim": "~1.4.0" },```

AbhijeetBhowmik (Mon, 13 Jul 2020 03:21:51 GMT):
So should I update my fabric docker images or downgrade npm dependencies?

BrettLogan (Mon, 13 Jul 2020 03:22:11 GMT):
downgrade npm deps, and change your image to use the `1.4` image

BrettLogan (Mon, 13 Jul 2020 03:22:30 GMT):
We drastically changed `ccenv` in the 2.0 release

AbhijeetBhowmik (Mon, 13 Jul 2020 03:22:30 GMT):
Alright. Thanks a lot. I will do that.

AbhijeetBhowmik (Mon, 13 Jul 2020 03:23:21 GMT):
So what if someone uses 2.0 release. Then I guess he must use npm deps 2.0 too.

BrettLogan (Mon, 13 Jul 2020 03:23:27 GMT):
correct

BrettLogan (Mon, 13 Jul 2020 03:24:10 GMT):
2.0 Node chaincodes no longer use `ccenv` to build their packages, they us `fabric-nodeenv` to both build and run the chaincode

BrettLogan (Mon, 13 Jul 2020 03:24:10 GMT):
2.0 Node chaincodes no longer use `ccenv` to build their packages, they use `fabric-nodeenv` to both build and run the chaincode

AbhijeetBhowmik (Mon, 13 Jul 2020 03:24:32 GMT):
ALright. Now it makes sense. I though fabric version and npm deps are not related. Thanks a lot.

BrettLogan (Mon, 13 Jul 2020 03:25:27 GMT):
Once you hit 2.0 they aren't really related anymore. And < 2.0 also aren't related. You just can't use a mismatch 1.4 and 2.x

BrettLogan (Mon, 13 Jul 2020 03:26:02 GMT):
So theoretically you can use any 1.4 npm dep and docker image, and any 2.x npm dep and docker image

AbhijeetBhowmik (Mon, 13 Jul 2020 03:26:51 GMT):
Thanks a lot for clarifying.

BrettLogan (Mon, 13 Jul 2020 03:27:15 GMT):
Ping me if you have any issues

AbhijeetBhowmik (Mon, 13 Jul 2020 03:27:47 GMT):
Alright.

AbhijeetBhowmik (Mon, 13 Jul 2020 03:50:49 GMT):
@BrettLogan It worked with 1.4 Thanks a lot for the help.

BrettLogan (Mon, 13 Jul 2020 03:51:08 GMT):
No problem, glad you got past it

lvjm (Mon, 13 Jul 2020 06:07:55 GMT):
Has joined the channel.

lvjm (Mon, 13 Jul 2020 06:07:55 GMT):
i want to know whether the fabric support one peer (not one organization )exit from channel or not

ZaneYork (Mon, 13 Jul 2020 07:29:58 GMT):
Has joined the channel.

ZaneYork (Mon, 13 Jul 2020 07:30:00 GMT):
``` Hello, how can i start a fabric 2.X network with a customized domain.Is there any deploy script available for multi-host environment? ```

matrix1986 (Mon, 13 Jul 2020 08:08:02 GMT):
Has joined the channel.

matrix1986 (Mon, 13 Jul 2020 08:08:03 GMT):
hello, how to call http request inner chaincode just like https://hyperledger.github.io/composer/v0.19/integrating/call-out ? any example or documation?

ever-upwards (Mon, 13 Jul 2020 08:22:47 GMT):
I'm following the Private Data Tutorial for Fabric 2.0 (https://hyperledger-fabric.readthedocs.io/en/release-2.0/private_data_tutorial.html#commit-the-chaincode-definition) and keep getting this error when trying to "init" the chaincode: `Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Function Init not found in contract SmartContract"` What might be triggering this? Since I'm just copying & pasting code, I'm assuming it's not a typo.

Ibrandis (Mon, 13 Jul 2020 08:48:58 GMT):
Has joined the channel.

Ibrandis (Mon, 13 Jul 2020 08:48:58 GMT):
Any one having an issue connecting org to channel when using -s couchdb?

Ibrandis (Mon, 13 Jul 2020 09:26:15 GMT):
regarding my earlier question changing timeout to 90 fixed the prob. it was telling me that it couldn't connect

ever-upwards (Mon, 13 Jul 2020 11:13:56 GMT):
Here is the command I'm running: https://pastebin.com/NnrkrqED and the logspout output: https://pastebin.com/M6J0N4PV

SpecialAgentCooper (Mon, 13 Jul 2020 12:04:09 GMT):
the command you are running is the initialisation command (`--isInit` and `{"Args":["Init"]}`) - this runs once to set up the initial state of the ledger. The error message says that the Init function is not found in the contract - are you certain you have installed the contract correctly? I haven't ran this sample myself so I'm not certain that it functions as intended (it should). You could try looking through the code which contains sample commands to invoke chaincode functions - you can find it at `fabric-samples/chaincode/marbles02_private/go` - have a look through the comments

Harinishree-Muniraj (Mon, 13 Jul 2020 12:15:58 GMT):
hi everyone while instantiate-chaincode they are using endrosement policy like this 'endorsement-policy': { identities: [ { role: { name: 'member', mspId: 'Org1MSP' }}, { role: { name: 'member', mspId: 'Org2MSP' }} ], policy: { '2-of':[{ 'signed-by': 0 }, { 'signed-by': 1 }] } } }; can u please briefly explain what is the purpose of using this Thanks in Advance

smithjohn 1 (Mon, 13 Jul 2020 12:31:50 GMT):
go 1.13.11 linux/amd64

sarva_v (Mon, 13 Jul 2020 12:36:40 GMT):
Has joined the channel.

sarva_v (Mon, 13 Jul 2020 12:46:46 GMT):
Hi everyone, what is the best way to unit test chaincode in javascript? Is it using the mocha framework described here https://github.com/ampretia/fabric-application-examples/blob/master/docs/Into-to-1.4-contract-programming.md ? The document is a more than a year old, so I was wondering whether this is the state of the art.

smithjohn 1 (Mon, 13 Jul 2020 12:47:41 GMT):
In case that I don't use CouchDB, all work is completed.

kokolaki (Mon, 13 Jul 2020 12:54:16 GMT):
Hello, How can I Install the Hyperledger Fabric platform-specific binaries and config files for the version specified into the /bin and /config directories of fabric-samples in a raspberry pi, without the instructions from the documentation?

ever-upwards (Mon, 13 Jul 2020 13:39:44 GMT):
@SpecialAgentCooper Thanks for your reply! It seems that the contract is installed correctly. When I commit I get a "committed with status (VALID)" response. Here are the commands that I'm running: https://pastebin.com/ZVYwbn5E and here is the output from the terminal: https://pastebin.com/jkJQ1x2D (It's long - if you open it you may want to start from the end.)

SpecialAgentCooper (Mon, 13 Jul 2020 15:10:51 GMT):
I can't spot anything wrong with what you're doing there. The only thing I can suggest is to look at the individual container logs and look for more detail on exactly what's going wrong. Get a list of the containers using `docker ps --format "{{.Names}}"` Then access the logs using the following where `$NAME` is the container name `docker logs -f $NAME >&log.txt` If you do this for the chaincode container you should see a detailed output of what went wrong.

SpecialAgentCooper (Mon, 13 Jul 2020 15:14:23 GMT):
Hi everyone, I have an app that uses a BlockListener to explore the blockchain - at the minute, it just prints out the headers for each block. I was alarmed to find that the previous hash of the _current block_ does not match the current hash of the _previous block_... How can this be the case? I was hoping to demonstrate the integrity of the chain this way, but it seems as though it has no integrity at all as the blocks are not linked in any meaningful way. Any information on this topic is appreciated.

SpecialAgentCooper (Mon, 13 Jul 2020 15:14:40 GMT):

Clipboard - July 13, 2020 4:14 PM

SpecialAgentCooper (Mon, 13 Jul 2020 16:31:37 GMT):
I've resolved this now - the `data_hash` is the hash of the `block_data` field of the block, whereas the `previous_hash` is the hash of the previous block's `header` field i.e. the combination of number, previous hash and data hash of that block. This stack overflow answer provides a function that can generate the hash of the current block based on its header - https://stackoverflow.com/a/51674154/12175612 Are there any plans to add this feature to the node js client api? Seems like a useful feature for audit

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data db and private data db? public data: { id: "CONTRACT-20200501", state: "EXECUTING" } private data: { id: "BIKE-95432"

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data db and private data db?

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data db and private data db? contract public data: { id: CONTRACT-20200501, state: EXECUTING } contract details private data: { id: CONTRACT-20200501, price: 253.233, quantity: 1000 } how can i make query the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data db and private data db? contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i make query the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i make query the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i make query the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i make query result of the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i get query result of the contract private details with the id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i get query result of the contract private details if contract id = "CONTRACT-20200501" and state = "EXECUTING" efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i get query result of the contract private details if contract id = `CONTRACT-20200501` and state = `EXECUTING` efficiently? thanks!

bh4rtp (Tue, 14 Jul 2020 01:37:49 GMT):
hi, about couchdb query, how to make `join query` from my public data and private data? for example, contract public data: ```{ id: CONTRACT-20200501, state: EXECUTING }``` contract details private data: ```{ id: CONTRACT-20200501, price: 253.233, quantity: 1000 }``` how can i get query result of the contract private details with contract id = `CONTRACT-20200501` and checking state = `EXECUTING` efficiently? thanks!

ever-upwards (Tue, 14 Jul 2020 02:05:17 GMT):
I don't think the chaincode containers are logging anything. There are two chaincode conainers (one for each peer), but when I run `docker logs -f [name]` the CLI just hangs, no output. I can view the logs for all the other containers, but I didn't see any hints there, just the same error mentioned above on the Org1 container log. Note that I'm running init from Org 2, but I get the error on Org 1's log. Container List: https://pastebin.com/jP53aNip Orderer log: https://pastebin.com/zZeAntGu Org1 log with error: https://pastebin.com/YgtctHfJ Org2 log: https://pastebin.com/59rSbSFn Query Committed chaincode on channel: https://pastebin.com/qdK84PBG

ever-upwards (Tue, 14 Jul 2020 02:05:17 GMT):
I don't think the chaincode containers are logging anything. There are two chaincode containers (one for each peer), but when I run `docker logs -f [name]` the CLI just hangs, no output. I can view the logs for all the other containers, but I didn't see any hints there, just the same error mentioned above on the Org1 container log. Note that I'm running init from Org 2, but I get the error on Org 1's log. Container List: https://pastebin.com/jP53aNip Orderer log: https://pastebin.com/zZeAntGu Org1 log with error: https://pastebin.com/YgtctHfJ Org2 log: https://pastebin.com/59rSbSFn Query Committed chaincode on channel: https://pastebin.com/qdK84PBG

ever-upwards (Tue, 14 Jul 2020 02:05:17 GMT):
I don't think the chaincode containers are logging anything. There are two chaincode containers (one for each peer), but when I run `docker logs -f [chaincode container name]` the CLI just hangs, no output. I can view the logs for all the other containers, but I didn't see any hints there, just the same error mentioned above on the Org1 container log. Note that I'm running init from Org 2, but I get the error on Org 1's log. Container List: https://pastebin.com/jP53aNip Orderer log: https://pastebin.com/zZeAntGu Org1 log with error: https://pastebin.com/YgtctHfJ Org2 log: https://pastebin.com/59rSbSFn Query Committed chaincode on channel: https://pastebin.com/qdK84PBG

SpecialAgentCooper (Tue, 14 Jul 2020 09:15:09 GMT):
Very odd. The function Init does exist and is required, I'm not getting any hints as to what is going wrong from these logs so I can only suggest two things: 1. play around further i.e. run the init transaction from org1; try running a different transaction like ``` export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64 | tr -d \\n) peer chaincode invoke -C mychannel -n marblesp -c '{"Args":["initMarble"]}' --transient "{\"marble\":\"$MARBLE\"}" ``` 2. Reinstall fabric-samples, make sure you pull the most recent docker images and try again. Hopefully someone else will read this and offer something more helpful but I'm stumped at this point I'm afraid. Good luck!

Teaaa (Tue, 14 Jul 2020 11:03:38 GMT):
Has joined the channel.

Teaaa (Tue, 14 Jul 2020 11:03:38 GMT):
Hi everyone, I have a question that sticks in my head after 2 months of learning about Hyperledger. *Why most tutorials require Ubuntu 16.04 while we're using docker?* I deployed a network using docker and my host machine is Ubuntu 20.04. Everything seems work pretty good 😃

Teaaa (Tue, 14 Jul 2020 11:03:38 GMT):
Hi everyone, I have a question that sticks in my head after 2 months of learning about Hyperledger. *Why most tutorials require Ubuntu 16.04 while we're using docker?* I deployed a network using docker and my host machine is Ubuntu 20.04. Everything seems to work pretty good 😃

BrettLogan (Tue, 14 Jul 2020 13:30:34 GMT):
Ubuntu 16 was LTS when most of the tutorials were written, the underlying OS shouldn't matter

kalyan824 (Tue, 14 Jul 2020 15:46:28 GMT):
Has joined the channel.

kalyan824 (Tue, 14 Jul 2020 15:46:28 GMT):
Hi all, Can we test the transactions and blocks created in Hyperledger Fabric? If YES, can I know the procedure?

prabhakaran.ak (Tue, 14 Jul 2020 19:12:32 GMT):
Has joined the channel.

prabhakaran.ak (Tue, 14 Jul 2020 19:12:32 GMT):
Hi all,

prabhakaran.ak (Tue, 14 Jul 2020 19:13:04 GMT):
Can anyone please guide me on how to install and instantiate multiple smartcontracts under same chaincode

BrettLogan (Tue, 14 Jul 2020 23:41:43 GMT):
Yes, this is still perfectly valid

spartucus (Wed, 15 Jul 2020 03:22:49 GMT):
Hi, how to implement a token chaincode in fabric 1.4, with access authority? for example: when A transfer 1 COIN to B, the chaincode should require authorization of A.

kalyan824 (Wed, 15 Jul 2020 08:02:04 GMT):
Hi all, Can we test the transactions and blocks created in Hyperledger Fabric? If YES, can I know the procedure?

huytn.it (Wed, 15 Jul 2020 08:45:37 GMT):
Has joined the channel.

huytn.it (Wed, 15 Jul 2020 08:45:38 GMT):
Hi all, I got error: [fabric@ip-10-0-0-96 go]$ ./runfabcar.sh ENV_DAL: DISCOVERY_AS_LOCALHOST=true run fabcar... [fabsdk/core] 2020/07/15 08:04:52 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation [{"Key":"CAR0","Record":{"make":"Toyota","model":"Prius","colour":"blue","owner":"Tomoko"}},{"Key":"CAR1","Record":{"make":"Ford","model":"Mustang","colour":"red","owner":"Brad"}},{"Key":"CAR2","Record":{"make":"Hyundai","model":"Tucson","colour":"green","owner":"Jin Soo"}},{"Key":"CAR3","Record":{"make":"Volkswagen","model":"Passat","colour":"yellow","owner":"Max"}},{"Key":"CAR4","Record":{"make":"Tesla","model":"S","colour":"black","owner":"Adriana"}},{"Key":"CAR5","Record":{"make":"Peugeot","model":"205","colour":"purple","owner":"Michel"}},{"Key":"CAR6","Record":{"make":"Chery","model":"S22L","colour":"white","owner":"Aarav"}},{"Key":"CAR7","Record":{"make":"Fiat","model":"Punto","colour":"violet","owner":"Pari"}},{"Key":"CAR8","Record":{"make":"Tata","model":"Nano","colour":"indigo","owner":"Valeria"}},{"Key":"CAR9","Record":{"make":"Holden","model":"Barina","colour":"brown","owner":"Shotaro"}}] Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: orderers is nil how to resolve this issue?

SpecialAgentCooper (Wed, 15 Jul 2020 09:35:44 GMT):
Why do HFL blocks have a nonce? There's no mining, so what it is for?

saif_32 (Wed, 15 Jul 2020 10:30:11 GMT):
Hello! can anyone help me with this issue - https://stackoverflow.com/questions/62912624/orderer-getting-exited-while-bootstrapping-the-hlf-network-using-certificates-ge

trinayanbhatt (Wed, 15 Jul 2020 11:07:12 GMT):
Error while restarting ca server in Hypeledger Fabric

HoneyShah (Wed, 15 Jul 2020 12:33:47 GMT):
Hello, I have one use case for implementing private blockchain . Can anyone help me out what should be the architecture for do that? One company deals with different vendors (unknown). Now, we want to make smart contract between the company and vendor to do further transactions. I will make one organization for the company. But what to with vendors? As vendors are not separate organization, they are individual entities.

sarva_v (Wed, 15 Jul 2020 12:40:40 GMT):
Thanks Brett. For others who might stumble of this thread, the yeoman fabric generator generates an example test which can be a good starting point https://github.com/IBM-Blockchain/generator-fabric/

pyguy (Wed, 15 Jul 2020 13:53:06 GMT):
Has joined the channel.

suncowbee (Wed, 15 Jul 2020 17:08:18 GMT):
Has joined the channel.

suncowbee (Wed, 15 Jul 2020 17:08:19 GMT):
hello

HLFPOC (Wed, 15 Jul 2020 19:55:58 GMT):
Hi Team, my chaincode container got crashed after successful installation on the peers. Got below error message while starting the chaincode. ``` panic: Error creating TTChaincode. Contracts are required to have at least 1 (non-ignored) public method. Contract tt.chaincode has none. Method names that have been ignored: GetAfterTransaction, GetBeforeTransaction, GetInfo, GetName, GetTransactionContextHandler, GetUnknownTransaction, GetIgnoredFunctions and GetEvaluateTransactions ``` Currently using fabric v2.1 and fabric-contract-api-go v1.0.0 for chaincode. Any suggestions what could be wrong/missing?

davidkel (Wed, 15 Jul 2020 21:01:59 GMT):
do you have any public methods in your contract ? Any method that doesn't start with a capital letter is not a public method in Go

atoulme (Thu, 16 Jul 2020 01:55:16 GMT):
Folks, I am trying to use a gateway with an existing client to connect. I connected first with the client, and stored the user profile there. I can't seem to be able to use the gateway, it shows this error `Error: identity 'admin' isn't enrolled, or loaded`. I tried to have the gateway use the same wallet as the client, but it's not exposed by the client. I seem to be doing all this wrong. Any help or code sample to reuse the gateway with the client?

ever-upwards (Thu, 16 Jul 2020 05:17:03 GMT):
I tried option #2 first, removed and re-cloned the fabric-samples git repo, and reinstalled the samples and binaries. So at that point, I was using the latest 2.2 release. After going through the same tutorial steps, I got the same error. I tried #1 next, (tried running the init from Org 1) and got the same error. I also tried the invoke command you gave, but didn't succeed (https://pastebin.com/T6NqtJrW).

ever-upwards (Thu, 16 Jul 2020 10:00:41 GMT):
Thanks for mentioning this. I've always wondered it too!

davidkel (Thu, 16 Jul 2020 10:08:52 GMT):
which sdk are you using ? if it's the go sdk then better to ask on #fabric-sdk-go, if it's the node-sdk then #fabric-sdk-node and if its the java sdk then #fabric-sdk-java

AlenHorvat (Thu, 16 Jul 2020 11:22:23 GMT):
Has joined the channel.

AlenHorvat (Thu, 16 Jul 2020 11:22:23 GMT):
Hi. Question about the Hyperledger Fabric: is all the node-to-node communication using gRPC (protobuf)?

yacovm (Thu, 16 Jul 2020 13:30:29 GMT):
@AlenHorvat yes

yacovm (Thu, 16 Jul 2020 13:30:39 GMT):
gRPC over TLS

Urko (Thu, 16 Jul 2020 13:37:27 GMT):
Has joined the channel.

Urko (Thu, 16 Jul 2020 13:37:27 GMT):
Hi, Question about the BFT implementation. Is there a date scheduled on the Road Map to implement it at Hyperledger Fabric?

yacovm (Thu, 16 Jul 2020 13:38:40 GMT):
@Urko there is no date yet but you can take a look at other forks of Fabric that have BFT implementations such as https://github.com/SmartBFT-Go

yacovm (Thu, 16 Jul 2020 13:39:00 GMT):
It's a fork of Fabric 1.4 with BFT ordering service that is similarly configured as Raft

Urko (Thu, 16 Jul 2020 13:42:24 GMT):
OK, thank you. I will take a look. I've been also reading about it at JIRA https://jira.hyperledger.org/browse/FAB-33

LazarLukic95 (Thu, 16 Jul 2020 13:50:41 GMT):
Has joined the channel.

LazarLukic95 (Thu, 16 Jul 2020 13:50:41 GMT):
Hey everyone, Does anyone have idea what this error represents? I am new to fabric 2.0. ` peer=peer0.org1.example.com:7051, status=500, message=Error handling success response. Value did not match schema: 1. return.0.leaseDetails: info,omitempty is required 2. return.0.leaseDetails: option,omitempty is required 3. return.0.leaseEquipment: equipmentQuoteDoc,omitempty is required` My function is returning a struct that has some fields which are `json:"info,omitempty"`.

LazarLukic95 (Thu, 16 Jul 2020 13:50:41 GMT):
Hey everyone, Does anyone have idea what this error represents? I am new to fabric 2.0. ` peer=peer0.org1.example.com:7051, status=500, message=Error handling success response. Value did not match schema: 1. return.0.leaseDetails: info,omitempty is required 2. return.0.leaseDetails: option,omitempty is required 3. return.0.leaseEquipment: equipmentQuoteDoc,omitempty is required` My function is returning a struct that has some fields which are `json:"info,omitempty"`. Thanks in advance

LazarLukic95 (Thu, 16 Jul 2020 13:56:43 GMT):
Feels like the new "serializer" doen't know about omitempy on struct fields. Am I wrong?

LazarLukic95 (Thu, 16 Jul 2020 14:06:32 GMT):
Definitely the error is caused by something in Fabric. Just before return I can print out the struct.

LazarLukic95 (Thu, 16 Jul 2020 14:30:54 GMT):
@awjh I saw that you are a committer on `fabric-contract-api-go` repo, can you help?

LazarLukic95 (Thu, 16 Jul 2020 14:30:54 GMT):
@awjh I saw that you are a committer on `fabric-contract-api-go` repo, can you help? And btw sorry if I am bothering

LazarLukic95 (Thu, 16 Jul 2020 15:13:56 GMT):
If I remove the `,omitempty` from json in struct, everything works fine. But then I have to provide values. Was this intended?

MaximusGit (Thu, 16 Jul 2020 16:32:24 GMT):
Has joined the channel.

MaximusGit (Thu, 16 Jul 2020 16:33:33 GMT):
Hello team! I am using addBlockListener, but every event comes with error and it's goves to this section if (err) { console.error(err); return; }

MaximusGit (Thu, 16 Jul 2020 16:33:40 GMT):

Screenshot_1.png

MaximusGit (Thu, 16 Jul 2020 16:33:52 GMT):
maybe somebody had this issue

davidkel (Thu, 16 Jul 2020 16:56:34 GMT):
suggest you ask on #fabric-sdk-node and provide a bit more detail, eg version of sdk and code snippet

mrudav.shukla (Thu, 16 Jul 2020 17:08:21 GMT):
No Abhijeet.

mrudav.shukla (Thu, 16 Jul 2020 17:09:17 GMT):
Were you able to solve that though?

BrettLogan (Thu, 16 Jul 2020 17:10:05 GMT):
You are using mismatched dependencies for the chaincode and the docker tag

BrettLogan (Thu, 16 Jul 2020 17:10:22 GMT):
When I get home I'll help you through this

deployer21 (Thu, 16 Jul 2020 17:19:25 GMT):
To deploy a production network, what is the start point? fabric-samples? or docker images?

MaximusGit (Thu, 16 Jul 2020 17:23:57 GMT):
i am using fabric-samples, test net

MaximusGit (Thu, 16 Jul 2020 17:24:18 GMT):
with docker images

MaximusGit (Thu, 16 Jul 2020 17:24:33 GMT):
sorry maybe i didn't understand your question

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ``` ```

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz``` When I connect the test machine to the Internet (it needs login to a proxy server), the "./startFabric.sh javascript" successfully completes.``` I checked the code of the "peer lifecycle chaincode install" at https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/install.go ``` ```

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz When I connect the test machine to the Internet (it needs login to a proxy server), the "./startFabric.sh javascript" successfully completes.``` I checked the code of the "peer lifecycle chaincode install" at https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/install.go ``` ```

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following: Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz When I connect the test machine to the Internet (it needs login to a proxy server), the "./startFabric.sh javascript" successfully completes.``` I checked the code of the "peer lifecycle chaincode install" at https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/install.go I couldn't see anything which needs Internet access. What gives?

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following: ``` Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ``` When I connect the test machine to the Internet (it needs login to a proxy server), the "./startFabric.sh javascript" successfully completes. I checked the code of the "peer lifecycle chaincode install" at https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/install.go I couldn't see anything which needs Internet access. What gives?

sarva_v (Thu, 16 Jul 2020 17:25:22 GMT):
Hi all, I have a strange issue. I am trying the Fabcar example on a machine which is not connected to the Internet. When I run "./startFabric.sh javascript", the process hangs at the following: ``` Installing chaincode on peer0.org1... Using organization 1 ++ peer lifecycle chaincode install fabcar.tar.gz ``` When I connect the machine to the Internet (it needs login to a proxy server), the "./startFabric.sh javascript" successfully completes. I checked the code of the "peer lifecycle chaincode install" at https://github.com/hyperledger/fabric/blob/master/internal/peer/lifecycle/chaincode/install.go I couldn't see anything which needs Internet access. What gives?

MaximusGit (Thu, 16 Jul 2020 17:30:20 GMT):
i am using original code https://github.com/hyperledger/fabric-samples/blob/master/off_chain_data/blockEventListener.js and follow readme instruction, sdk version is latest i think https://github.com/hyperledger/fabric-samples/blob/master/off_chain_data/package.json

MaximusGit (Thu, 16 Jul 2020 17:38:16 GMT):

Screenshot_2.png

MaximusGit (Thu, 16 Jul 2020 17:44:52 GMT):
every event go to err section

AshutoshKumar7 (Thu, 16 Jul 2020 17:51:03 GMT):
I think peer downloads docker images for chaincode containers

sarva_v (Thu, 16 Jul 2020 17:54:05 GMT):
Thanks Ashutosh. That would explain it. Is there some way to confirm this in the code?

itochterman (Thu, 16 Jul 2020 17:54:46 GMT):
Has joined the channel.

itochterman (Thu, 16 Jul 2020 17:56:33 GMT):

QueryBlockFail.png

AshutoshKumar7 (Thu, 16 Jul 2020 17:59:11 GMT):
you can see docker image details in core.yaml - chaincode builder section

MaximusGit (Thu, 16 Jul 2020 18:16:09 GMT):
i think i will duplicate it to fabric-sdk-node channel

atoulme (Thu, 16 Jul 2020 18:19:40 GMT):
I have a Java question. I have chaincode returning a list of objects, and when I run `evaluateTransaction`, the response is `{"empty":false}`. Should I have returned a native array of objects instead?

tomazbracic (Thu, 16 Jul 2020 19:11:30 GMT):
Has joined the channel.

tomazbracic (Thu, 16 Jul 2020 19:11:38 GMT):
Hi everyone

BrettLogan (Thu, 16 Jul 2020 19:27:49 GMT):
`./startFabric.sh` uses these docker files: https://github.com/hyperledger/fabric-samples/tree/master/test-network/docker

BrettLogan (Thu, 16 Jul 2020 19:29:35 GMT):
You also need the `fabric-ccenv`, `fabric-nodeenv` or `fabric-javaenv` image specified in `core.yaml`

BrettLogan (Thu, 16 Jul 2020 19:30:48 GMT):
These are bytes buffers, you need to read from them

BrettLogan (Thu, 16 Jul 2020 19:30:48 GMT):
These are byte buffers, you need to read from them

BrettLogan (Thu, 16 Jul 2020 20:17:43 GMT):
Can you share your package.json, and the version of the ccenv and runtime image you are using, and what version of Fabric you are on

BrettLogan (Thu, 16 Jul 2020 20:17:43 GMT):
Can you share your package.json, and the tag of the ccenv and runtime image you are using, and what version of Fabric you are on

liericiyan (Fri, 17 Jul 2020 02:00:20 GMT):
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: connection error : desc = "transport: error while dialing: dial tcp 127.0.0.1:7051: connect: connection refused" . when I run startFabric.sh javascript .

liericiyan (Fri, 17 Jul 2020 02:00:23 GMT):
docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6c2f052c077b hyperledger/fabric-peer:latest "peer node start" 28 minutes ago Exited (2) 2 seconds ago peer0.org2.example.com b83082d41db8 hyperledger/fabric-peer:latest "peer node start" 28 minutes ago Exited (2) 27 minutes ago peer0.org1.example.com 6daa7c52590a hyperledger/fabric-orderer:latest "orderer" 28 minutes ago Up 28 minutes 0.0.0.0:7050->7050/tcp orderer.example.com fdb0dab83e17 couchdb:3.1 "tini -- /docker-ent…" 28 minutes ago Up 28 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 bffe40011b54 couchdb:3.1 "tini -- /docker-ent…" 28 minutes ago Up 28 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb1 8d90dcf24323 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 28 minutes 7054/tcp, 0.0.0.0:9054->9054/tcp ca_orderer e64ef0ad018f hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 28 minutes 0.0.0.0:7054->7054/tcp ca_org1 81292bb93bdf hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 3 minutes 7054/tcp, 0.0.0.0:8054->8054/tcp ca_org2

liericiyan (Fri, 17 Jul 2020 02:00:23 GMT):
docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6c2f052c077b hyperledger/fabric-peer:latest "peer node start" 28 minutes ago Exited (2) 2 seconds ago peer0.org2.example.com b83082d41db8 hyperledger/fabric-peer:latest "peer node start" 28 minutes ago Exited (2) 27 minutes ago peer0.org1.example.com 6daa7c52590a hyperledger/fabric-orderer:latest "orderer" 28 minutes ago Up 28 minutes 0.0.0.0:7050->7050/tcp orderer.example.com fdb0dab83e17 couchdb:3.1 "tini -- /docker-ent…" 28 minutes ago Up 28 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0 bffe40011b54 couchdb:3.1 "tini -- /docker-ent…" 28 minutes ago Up 28 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb1 8d90dcf24323 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 28 minutes 7054/tcp, 0.0.0.0:9054->9054/tcp ca_orderer e64ef0ad018f hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 28 minutes 0.0.0.0:7054->7054/tcp ca_org1 81292bb93bdf hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 28 minutes ago Up 3 minutes 7054/tcp, 0.0.0.0:8054->8054/tcp ca_org2 I don't known why peer Exited.

BrettLogan (Fri, 17 Jul 2020 02:01:07 GMT):
what is the error in `docker logs 6c2f052c077b`

BrettLogan (Fri, 17 Jul 2020 02:01:30 GMT):
or you can `docker logs 6c2f052c077b &> output.txt` and upload the file

liericiyan (Fri, 17 Jul 2020 02:06:10 GMT):

qustion.txt

BrettLogan (Fri, 17 Jul 2020 02:08:06 GMT):
what is the output of `git branch`

BrettLogan (Fri, 17 Jul 2020 02:15:56 GMT):
run `git fetch && git checkout v2.1.1` you have the master branch checked out but 2.1 images

ever-upwards (Fri, 17 Jul 2020 02:35:49 GMT):
So, I finally got the init command to work and made it through the tutorial, although I can't say for sure what the underlying problem was. My original platform was Ubuntu 18.04. I just ran it again on a new Ubuntu 20.04 VPS (after installing the various dependencies) and completed it without problems. Could it possibly be a dependency mis-match? I'm happy to have it working, although still curious what the issue was.

HoneyShah (Fri, 17 Jul 2020 04:52:01 GMT):
Hello, I have one use case for implementing private blockchain . Can anyone help me out what should be the architecture for do that? One company deals with different vendors (unknown). Now, we want to make smart contract between the company and vendor to do further transactions. I will make one organization for the company. But what to with vendors? As vendors are not separate organization, they are individual entities. Please help

AshutoshKumar7 (Fri, 17 Jul 2020 05:17:43 GMT):
How will you do it without blockchain? Lets start from there

metadata (Fri, 17 Jul 2020 05:18:26 GMT):
Hello, I have a question about `implicit private data`. In case of `private collection`, we can set `blockToLive` to any number. In case of `implicit-private data`, Is there any way to set `blockToLive` property? Is there any concept of `blockToLive` in implicit-private data? I was going through an medium article and what I understand is that implicit-private data collection is predefined in each peer and it can stay there for indefinite time.

AlenHorvat (Fri, 17 Jul 2020 06:07:55 GMT):
Yes, howerver TLS is a transport security layer. I want to know if it is possible to monitor the p2p communication using "classical" firewalls. Namely, grpc serializes the content (protbuf), so one can monitor the communication using custom firewalls. Question is, is it possible to have the communication without the protobufs?

chintanr11 (Fri, 17 Jul 2020 06:37:07 GMT):
Hi Team, for the chaincode instantiation we pull the images dynamically from the docker hub. However, let's say if I have chaincode related images (e.g. fabric-ccenv, fabric-baseos, etc.) on a private registry, then how shall the peer code *validate or authenticate* to the registry? Is there any setting in core.yaml or other configuration changes that we can make to achieve that?

HoneyShah (Fri, 17 Jul 2020 06:39:16 GMT):
We will have separate registration for vendors. We will take some legal identity information from them to verify. Then we need to make sure that information added by vendors remain unaltered. If they alter it we should atleast have a log for that. And about contract, we need some paper work as well for contract which we can avoid by smart contract.

AshutoshKumar7 (Fri, 17 Jul 2020 08:26:22 GMT):
I think u can expose REST APIs for vendors to register. These APIs will talk to Smart contracts. You may need to use event listeners to notify vendors

awjh (Fri, 17 Jul 2020 08:27:34 GMT):
This is as intended, the json is compared against the metadata schema. By default all fields are required, using omitempty will mean that the JSON process will remove that field when it has no value. This means a required field will be missing. To fix this add a metadata tag to mark the field as optional `metadata:",optional"`

sarva_v (Fri, 17 Jul 2020 08:45:22 GMT):
Where is the code which is responsible for downloading the images when 'peer lifecycle chaincode install' is executed? I am trying to get a picture of where the lack of Internet was causing the problem.

LazarLukic95 (Fri, 17 Jul 2020 10:58:42 GMT):
@awjh Thanks

HoneyShah (Fri, 17 Jul 2020 11:03:45 GMT):
Yes, we can do that.

HoneyShah (Fri, 17 Jul 2020 11:05:02 GMT):
But I am wondering about what should be the architecture for implementing this.

HoneyShah (Fri, 17 Jul 2020 11:08:10 GMT):
Like I we can have one fabric organisation for our company and we can have one other client organisation where all vendors will enrol. And we can have smart contract between this two fabric orgs where the endorsement policy is such that both organisations needs to approve the transaction to succeed.

HoneyShah (Fri, 17 Jul 2020 11:08:32 GMT):
Does it make sense or I am going into wrong direction?

arjones (Fri, 17 Jul 2020 22:12:18 GMT):
Has joined the channel.

arjones (Fri, 17 Jul 2020 22:14:11 GMT):
Hello everyone,

arjones (Fri, 17 Jul 2020 22:17:42 GMT):
Hello everyone. I am new to Hyperledger Fabric, so I am still working on understanding how everything works and how to configure my own networks. I have a network with two organizations. Each organization has a CA (generated with cryptogen) and two peers (each with a couchdb instance). There is a single orderer. I am able to get this network up and running, create a channel, add all peers to the channel, and deploy chaincode to the channel all successfully. I then am trying to add a third organization to the running network, add it to the channel, and deploy chaincode to its peers as well. The process I am following is largely based on the hyperledger fabric documentation (https://hyperledger-fabric.readthedocs.io/en/release-2.0/channel_update_tutorial.html). I put the new organization’s peers up in the same network without fail. Then I compute the channel configuration .pb file, sign it by both organizations already in the channel, and then fetch the channel block as a peer in this third organization. The only thing left to do to join the channel is run the "peer channel join -b channel.block" command which fails with the following error message: "Error: error getting endorser client for channel: endorser client failed to connect to localhost:11051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:11051: connect: connection refused"" Note that port localhost:11051 is the address of the peer of the third organization I am trying to connect to the channel from, and this is being executed from within a cli docker container similarly to how they did it in the above link.

arjones (Fri, 17 Jul 2020 22:18:38 GMT):
Hello everyone. I am new to Hyperledger Fabric, so I am still working on understanding how everything works and how to configure my own networks. I have a network with two organizations. Each organization has a CA (generated with cryptogen) and two peers (each with a couchdb instance). There is a single orderer. I am able to get this network up and running, create a channel, add all peers to the channel, and deploy chaincode to the channel all successfully. I then am trying to add a third organization to the running network, add it to the channel, and deploy chaincode to its peers as well. The process I am following is largely based on the hyperledger fabric documentation (https://hyperledger-fabric.readthedocs.io/en/release-2.0/channel_update_tutorial.html). I put the new organization’s peers up in the same network without fail. Then I compute the channel configuration .pb file, sign it by both organizations already in the channel, and then fetch the channel block as a peer in this third organization. The only thing left to do to join the channel is run the "peer channel join -b channel.block" command which fails with the following error message: "Error: error getting endorser client for channel: endorser client failed to connect to localhost:11051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:11051: connect: connection refused"" Note that port localhost:11051 is the address of the peer of the third organization I am trying to connect to the channel from, and this is being executed from within a cli docker container similarly to how they did it in the above link. Any help would be much appreciated.

yj511608130 (Sat, 18 Jul 2020 00:48:15 GMT):
any one here? i want to know why change fabric 0.6 to fabric 1.0?what is the essential reason?

yj511608130 (Sat, 18 Jul 2020 00:48:34 GMT):
any one can help me》

ever-upwards (Sat, 18 Jul 2020 03:03:36 GMT):
I have a conceptual question about Fabric network databases. My understanding is that couchDB can be used for the world state dB to enable rich queries. However, since complex queries can degrade network performance, an off-chain copy of the database is preferred. If you have an off-chain copy of the database for data analysis, could you use LevelDB for the World State dB and convert the data to couchDB for the off-chain copy? Or does that cause problems with copying data off-chain?

akshay.sood (Sat, 18 Jul 2020 09:06:46 GMT):
Hello everyone, Does anyone here has experience with handling transient data in the javascript chaincode? I am facing some issue with it. I posted it on stackoverflow https://stackoverflow.com/questions/62966680/hyperledger-fabric-javascript-chaincode-read-transient-data

akshay.sood (Sat, 18 Jul 2020 19:41:43 GMT):
Found the solution const data = JSON.parse(new Buffer(transient.get('data').toArrayBuffer()).toString());

akshay.sood (Sat, 18 Jul 2020 19:41:43 GMT):
Found the solution ```const data = JSON.parse(new Buffer(transient.get('data').toArrayBuffer()).toString());```

BrettLogan (Sat, 18 Jul 2020 22:11:45 GMT):
??? `0.6` is a non-release version, meaning the software hasn't reached maturity yet. `1.0.0` essentially says the software has reached a stable release and it, and its API's are no longer in alpha/beta/pre-release

zainhasantirmizi (Sun, 19 Jul 2020 21:56:27 GMT):
Has joined the channel.

zainhasantirmizi (Sun, 19 Jul 2020 21:56:27 GMT):
Hi .. How can I use multiple objects in a Contract ... for example If I need to create 2 objects like items and customers. How would that work ? because while query in fabcar it just calls everything. How would I query each object separately?

giulianoholanda (Sun, 19 Jul 2020 23:08:35 GMT):
Has joined the channel.

BrettLogan (Mon, 20 Jul 2020 02:39:14 GMT):
Take a look here, you have to retrieve the contract, and then the individual chaincode as an overloaded argument to `getContract` https://stackoverflow.com/questions/48334334/multiple-smart-contracts-in-hyperledger-fabric

zhuowangy2k (Mon, 20 Jul 2020 02:54:49 GMT):
Has joined the channel.

NickName (Mon, 20 Jul 2020 09:12:47 GMT):
Has joined the channel.

NickName (Mon, 20 Jul 2020 09:12:47 GMT):
Hello, I was wondering what are the main differences between a production network and the test-network in the fabric samples. The test network peers seem to be using tls, I can also start the network using certificate authorities (I'm guessing they are double headed because there is only one per organization), so I can't really understand why the documentation says that the test-network is different from a production network. What are the differences?

SpecialAgentCooper (Mon, 20 Jul 2020 11:14:12 GMT):
I am also interested in this - what is the starting point for a production, or even just a customised, network?

SpecialAgentCooper (Mon, 20 Jul 2020 11:17:08 GMT):
Glad you got it working in the end, shame there's no explanation though! I'm on 18.04.4 and have not had this issue. HLF has quite a complex web of dependencies so it's quite likely that was the issue, but it's bizarre that it gave such a specific error message. Perhaps you could raise an issue on the JIRA boards

andrikur (Mon, 20 Jul 2020 11:58:30 GMT):
Has joined the channel.

andrikur (Mon, 20 Jul 2020 11:58:30 GMT):
Hello @BrettLogan , how to implement in golang language ? cause in fabric-chincode-go, we dont have contract namespace definition such as in java or node

deployer21 (Mon, 20 Jul 2020 14:16:54 GMT):
+1 interested. Anyone using kubernetes from the start? Or is it a later add-on?

BrettLogan (Mon, 20 Jul 2020 15:29:37 GMT):
The test-network is a valid network. But it all runs on a single host (obviously not something you would do in production). It also has a single person (you) administrating the network and controlling all of the private/public keys. None of this would occur in a real network. You would use decentralized, distributed components, probably with multiple admins, and each org would be responsible for generating and securing their own crypto, rather than a central party

NickName (Mon, 20 Jul 2020 15:42:49 GMT):
Ok, thank you. It's nice knowing that. I assumed that there were some important differences somewhere (in topology, or in the key generation process) but was unable to find any. And it was written in bold somewhere that it shouldn't be used in production so I assumed major differences :)

NickName (Mon, 20 Jul 2020 15:55:39 GMT):
I have a question regarding the key generation process. It is stated in the documentation that, to prevent the admin of a CA to get ahold of the private / public key combination of someone who wants to join the network, a two step process is used. In the first step, the admin of a CA registers a user and obtains an ID and a password. Afterwards, the admin must use a different channel (communication medium) to pass these credentials to the one who wants to join the network. My question is how is the admin restricted from enrolling and obtaining the private / public key combination, even if they knows the id / password combination?

NickName (Mon, 20 Jul 2020 15:55:39 GMT):
I have a question regarding the key generation process. It is stated in the documentation that, to prevent the admin of a CA to get ahold of the private / public key combination of someone who wants to join the network, a two step process is used. In the first step, the admin of a CA registers a user and obtains an ID and a password. Afterwards, the admin must use a different channel (communication medium) to pass these credentials to the one who wants to join the network. My question is how is the admin restricted from enrolling and obtaining the private / public key combination, even if they know the id / password combination?

oon (Mon, 20 Jul 2020 17:06:02 GMT):
Has joined the channel.

oon (Mon, 20 Jul 2020 17:06:02 GMT):
hi, first of all, congratulation for the new release LTS v2.2. I read the post and found "small bug", and the end of the article, the "code" still refer to version 1.4. hope someone read this and update the article. https://www.hyperledger.org/blog/2020/07/20/new-release-hyperledger-fabric-2-2-lts

BrettLogan (Mon, 20 Jul 2020 17:46:15 GMT):
It's not necessarily that they are restricted from doing this (though you could set max enrollment to 1 to the user ID and password are worthless after the first enrollment), but you have to remember how a permission Fabric blockchain differs from a public blockchain like Ethereum. Whereas on Ethereum identity is secret and no one has to know who any one is transacting on the network, a Fabric network is comprised of participants who know each other, have agreed to form a consortium together and who have a business stake in the success of the network. If your admin generates a private/public key combo and begins transaction on the network with that identity, the consortium would be aware of it, and the root of trust would be lost in the network. This is how fabric differs so much from traditional public blockchains, in that their is a inherent trust and a relationship at stake in the network participants

BrettLogan (Mon, 20 Jul 2020 17:46:15 GMT):
It's not necessarily that they are restricted from doing this (though you could set max enrollment to 1 to the user ID and password are worthless after the first enrollment), but you have to remember how a permissioned Fabric blockchain differs from a public blockchain like Ethereum. Whereas on Ethereum identity is secret and no one has to know who any one is transacting on the network, a Fabric network is comprised of participants who know each other, have been explicitly invited to particpate, have agreed to form a consortium together and who have a business stake in the success of the network. If your admin generates a private/public key combo and begins transaction on the network with that identity, the consortium would be aware of it, and the root of trust would be lost in the network. This is how fabric differs so much from traditional public blockchains, in that their is a inherent trust and a relationship at stake in the network participants

BrettLogan (Mon, 20 Jul 2020 17:53:09 GMT):
The admin has everything to lose from manipulating the network

BrettLogan (Mon, 20 Jul 2020 18:00:23 GMT):
You are correct, the SDK-Go passes the name as empty rather than letting you specify it (even though they implemented support for it), let me submit a PR to fix that

BrettLogan (Mon, 20 Jul 2020 18:00:25 GMT):
```func (n *Network) GetContract(chaincodeID string) *Contract { return newContract(n, chaincodeID, "") }```

BrettLogan (Mon, 20 Jul 2020 18:00:43 GMT):
It passes the last argument as `""` instead of accepting a `name` parameter

BrettLogan (Mon, 20 Jul 2020 18:02:20 GMT):
Ah, I was wrong, there is a second function `GetContractWithName` thats the method you want to be using

BrettLogan (Mon, 20 Jul 2020 18:02:20 GMT):
Tthere is a second function `GetContractWithName` thats the method you want to be using

BrettLogan (Mon, 20 Jul 2020 18:06:24 GMT):
As for creating multiple instance of a smart contract in a single chaincode you will need to use go routines to launch them

BrettLogan (Mon, 20 Jul 2020 18:09:02 GMT):
Very rudimentary but you can do something like:

BrettLogan (Mon, 20 Jul 2020 18:09:04 GMT):
```func main() { chaincodeOne, err := contractapi.NewChaincode(&SmartContract{}) if err != nil { fmt.Printf("Error create fabcar chaincode: %s", err.Error()) return } chaincodeTwo, err := contractapi.NewChaincode(&SmartContract{}) if err != nil { fmt.Printf("Error create fabcar chaincode: %s", err.Error()) return } go func() { err = chaincodeOne.Start() log.Panicf("Error starting fabcar chaincode: %v", err) }() err = chaincodeTwo.Start() if err != nil { log.Panicf("Error starting fabcar chaincode: %v", err) } }```

BrettLogan (Mon, 20 Jul 2020 18:10:55 GMT):
```func main() { chaincodeOne, err := contractapi.NewChaincode(&SmartContract{}) if err != nil { log.Panicf("Error create fabcar chaincode: %v", err) } chaincodeTwo, err := contractapi.NewChaincode(&SmartContract{}) if err != nil { log.Panicf("Error create fabcar chaincode: %v", err) } go func() { log.Panicf("Error starting fabcar chaincode: %v", chaincodeOne.Start()) }() log.Panicf("Error starting fabcar chaincode: %v", chaincodeTwo.Start()) } ```

BrettLogan (Mon, 20 Jul 2020 18:10:55 GMT):
```func main() { chaincodeOne, err := contractapi.NewChaincode(&SmartContractOne{}) if err != nil { log.Panicf("Error create fabcar chaincode: %v", err) } chaincodeTwo, err := contractapi.NewChaincode(&SmartContractTwo{}) if err != nil { log.Panicf("Error create fabcar chaincode: %v", err) } go func() { log.Panicf("Error starting fabcar chaincode: %v", chaincodeOne.Start()) }() log.Panicf("Error starting fabcar chaincode: %v", chaincodeTwo.Start()) } ```

andrikur (Mon, 20 Jul 2020 18:19:10 GMT):
thank you for your reply, Yes I acknowledge this method using the new fabric-contract-api-go package for fabric 2.X. But how about multi smart contract in fabric 1.4 that still using fabric-chaincode-go package.

BrettLogan (Mon, 20 Jul 2020 18:23:07 GMT):
I cant say for sure it works as even in 1.4 you should be using the new programming odel and contract-api-go which is available for 1.4. But you would do the same thing I did above just putting `shim.Start` in the go routine

andrikur (Mon, 20 Jul 2020 18:48:27 GMT):
in the documentation of fabric-contract-api-go, it said API for fabric 2.1, could I use it in fabric 1.4? another question is in fabric-contract-api-go, we could use simpleContract.Name = "org.example.com.SimpleContract" complexContract.Name = "org.example.com.ComplexContract" for give custom name contract that can be used as reference when calling smart contract but in package fabric-chaincode-go I got an error when try to implement that code. so how could I give custom name contract for multi smart contract in fabric 1.4? Thank you so much for your help. I'm trying to understand the whole concept of fabric chaincode in golang.

hazbiy97 (Mon, 20 Jul 2020 20:06:37 GMT):
hello everyone, thanks for the answer before, now i'm able to deploy on multihost using ec2 (t2.micro) using docker swarm, but because of very limited resource (ram 1gb), my network always failed when i instantiate chaincode (i run docker node ls and my host who own most docker nodes always unreachable and seems to restarted). is there any way to do this? i tested on my own laptop using exactly the same network (the only difference is all the hostname is my laptop's hostname) and it run great without problem, even using caliper. are the requirement to host hyperledger fabric must have at least 4 gb of ram to run smoothly?

hazbiy97 (Mon, 20 Jul 2020 20:06:37 GMT):
hello everyone, thanks for the answer before, now I'm able to deploy on multi-host using ec2 (t2.micro) using docker swarm, but because of a very limited resource (ram 1gb), my network always failed when I instantiate chaincode (i run docker node ls and my host who own most docker nodes always unreachable and seems to restarted). is there any way to work around this? (even when I use as few nodes as possible by using solo, my nodes keep crashing) I tested on my own laptop using exactly the same network (the only difference is all the hostname is my laptop's hostname) and it runs great without a problem, even using caliper. are the requirement to host hyperledger fabric must have at least 4 gb of ram to run smoothly?

BrettLogan (Mon, 20 Jul 2020 21:08:11 GMT):
1GB is incredibly small. On top of the Peer container, the chaincode container is launched by the peer and you have system resources. I can't say with 1GB totally dedicated to the Peer it will run, but that still doesn't account for the chaincode container and the system

hazbiy97 (Mon, 20 Jul 2020 21:16:57 GMT):
thanks for the reply! according to documentation, they recommended to have at least 4gb of ram, is that enough? it will mostly run 3-4 container on each host

hazbiy97 (Mon, 20 Jul 2020 21:19:42 GMT):
i have access to 32 gb ram, but i think with only 16gb of ram my laptop can run all the container in this system, so are 4 gb and 8gb is the best choices?

hazbiy97 (Mon, 20 Jul 2020 21:19:42 GMT):
i have access up to 32 gb of ram, but i think with only 16gb of ram my laptop can run all the container in this system, so are 4 gb and 8gb is the best choices?

hazbiy97 (Mon, 20 Jul 2020 21:19:42 GMT):
i have access up to 32 gb of ram, but i think with only 16gb of ram my laptop can run all the container in this system, are 4 gb and 8gb is the best choices?

MahaboobRaihan (Mon, 20 Jul 2020 22:08:59 GMT):
Has joined the channel.

MahaboobRaihan (Mon, 20 Jul 2020 22:08:59 GMT):
Hello everyone, I am very new to this and completely working out of my comfort zone, I am currently working on a Project that has Hyperledger Fabric specification. Project goals are: Build a network script that reflects two communicating nodes to 2 EDR device, which share events (for example similarly of the script as BYFN) I was wondering if anyone can explain or provide me with any direction as I'm very much a beginner Thanks

arjones (Tue, 21 Jul 2020 00:02:27 GMT):
I would check out the documentation to get started. https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html The key concepts page is helpful for big picture understanding.

arjones (Tue, 21 Jul 2020 00:04:28 GMT):
Can someone either explain or point me to some documentation that explains what core.yaml is being used for? I have used the one included in fabric-samples/config in my network and it seemed to work at first, but I'm running into errors and I suspect that is the cause. I have been using fabric-samples/config as FABRIC_CFG_PATH variable. Thanks in advance.

arjones (Tue, 21 Jul 2020 00:38:29 GMT):
Also, should each org have their own? Or can they share one?

MahaboobRaihan (Tue, 21 Jul 2020 00:51:32 GMT):
Thanks mate

hazbiy97 (Tue, 21 Jul 2020 02:04:14 GMT):
hello everyone, I think it's related to fabric. Right now I'm comparing the performance of multi hosts (4 hosts of ec 2 t2.medium 4 gb) and single node (16gb ram), but I'm confused why does my system on the cloud have better performance compared to my single node (201 TPS vs 87 TPS tested using caliper). when I tried to figure out just how fast is the connection between hosts by installing ping on peer and pinging hostname (peer1.org2.example.com on host B from peer0.org1.example.com on host A) and the ping was 0.078ms, but when i use ping outside of container with static IP (from host A to B) the ping was 0.92ms?? I'm confused right now, does that mean the connection between peer doesn't actually mean they connected between hosts? (because when i ping from inside the peer container, all of the other containers have IP 10.0.2.x even containers from different hosts, so I doubt they actually pinged the real host)

hazbiy97 (Tue, 21 Jul 2020 02:04:14 GMT):
hello everyone, I think it's related to fabric. Right now I'm comparing the performance of multi hosts (4 hosts of ec 2 t2.medium 4 gb) and single node (16gb ram), but I'm confused why does my system on the cloud have better performance compared to my single node (201 TPS vs 87 TPS tested using caliper). when I tried to figure out just how fast is the connection between hosts by installing ping on peer and pinging hostname (peer1.org2.example.com on host B from peer0.org1.example.com on host A) and the ping was 0.078ms, but when i use ping outside of container with static IP (from host A to B ) the ping was 0.92ms?? I'm confused right now, does that mean the connection between peer doesn't actually mean they connected between hosts? (because when i ping from inside the peer container, all of the other containers have IP 10.0.2.x even containers from different hosts, so I doubt they actually pinged the real host)

HansrajRami (Tue, 21 Jul 2020 02:09:17 GMT):
Hi all !!

HansrajRami (Tue, 21 Jul 2020 02:10:45 GMT):
Hi all !! Does hyperledger fabric peer supports Nginx reverse proxy when TLS is enabled

HansrajRami (Tue, 21 Jul 2020 02:10:45 GMT):
Hi all !! Does hyperledger fabric peer supports Nginx reverse proxy when TLS is enabled ? I am using fabric 2.1.0 with peer cli chaincode invoke is fine but with api it is not working .. there is error regarding channel service discovery and peer to peer communication in cross organization through gossip external endpoint

SivaramKannan (Tue, 21 Jul 2020 04:04:08 GMT):
Has joined the channel.

SivaramKannan (Tue, 21 Jul 2020 04:04:08 GMT):
Hello Team - Noob fabric question. I am following this document for taking a backup of my fabric network - https://docs.google.com/document/d/1dEhUpMcqOYfOngDvSlyXL6NIBuTKmhP5s0fr_--U_OA/edit#heading=h.1xk0vpzaqs4k. Is it necessary to take a backup of each peers separately? Considering each peer data is same, should taking the backup of one peer should be ok?

sergeikus (Tue, 21 Jul 2020 05:41:07 GMT):
Hello! I am trying to add new orderer to existing network (RAFT) and I have a problem, when I add the orderer to application channel. The existing orderer3.tiviledge.io starts logging that: ``` 2020-07-21 05:35:35.768 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 077 Failed to send StepRequest to 4, because: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup orderer4.tiviledge.io on 127.0.0.11:53: no such host" channel=tiviledge node=3 2020-07-21 05:35:39.314 UTC [orderer.consensus.etcdraft] send -> INFO 081 Successfully sent StepRequest to 4 after failed attempt(s) channel=tiviledge node=3 2020-07-21 05:35:40.314 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 082 Failed to send StepRequest to 4, because: aborted channel=tiviledge node=3 2020-07-21 05:35:40.815 UTC [orderer.consensus.etcdraft] send -> INFO 083 Successfully sent StepRequest to 4 after failed attempt(s) channel=tiviledge node=3 2020-07-21 05:35:41.814 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 084 Failed to send StepRequest to 4, because: aborted channel=tiviledge node=3 ``` And the new orderer4.tiviledge.io logs: ``` 2020-07-21 05:35:46.751 UTC [orderer.common.cluster] ReplicateChains -> INFO 07c Found myself in 0 channels out of 1 : {[] [{tiviledge 0xc00004ca40}]} 2020-07-21 05:35:46.751 UTC [orderer.common.cluster] appendBlock -> INFO 07d Skipping commit of block [0] for channel tiviledge because height is at 1 2020-07-21 05:35:46.751 UTC [orderer.common.cluster] PullChannel -> INFO 07e Channel system-channel shouldn't be pulled. Skipping it 2020-07-21 05:35:46.751 UTC [orderer.common.server] replicateDisabledChains -> INFO 07f Successfully replicated 0 chains: [] 2020-07-21 05:35:46.815 UTC [comm.grpc.server] 1 -> INFO 080 streaming call completed grpc.service=orderer.Cluster grpc.method=Step grpc.peer_address=172.30.0.7:42456 grpc.peer_subject="CN=orderer3,OU=orderer,O=Hyperledger,ST=North Carolina,C=US" error="channel tiviledge doesn't exist" grpc.code=Unknown grpc.call_duration=287.437µs 2020-07-21 05:35:48.315 UTC [comm.grpc.server] 1 -> INFO 081 streaming call completed grpc.service=orderer.Cluster grpc.method=Step grpc.peer_address=172.30.0.7:42456 grpc.peer_subject="CN=orderer3,OU=orderer,O=Hyperledger,ST=North Carolina,C=US" error="channel tiviledge doesn't exist" grpc.code=Unknown grpc.call_duration=327.557µs ``` Maybe someone can suggest where to look at ? Because it is a bit strange that the new orderer joined system channel without an issue, but on application channel encounters a provlem :(

NickName (Tue, 21 Jul 2020 07:00:30 GMT):
Ok, thank you

mvkillu (Tue, 21 Jul 2020 07:06:17 GMT):
The learning curve of Hyperledger Fabric is too steep for my skill level. I found the minifab project on github which provides a similar solution of bootstrapping a fabric network. My question is, will the project surivive and would it be a good idea to try it to deploy a project on production ?

lesleyannj (Tue, 21 Jul 2020 09:41:47 GMT):
Has joined the channel.

andrikur (Tue, 21 Jul 2020 09:51:39 GMT):
Never mind, I have been digging into the source and found myself an answer for my question.

qohelet (Tue, 21 Jul 2020 13:46:31 GMT):
Has joined the channel.

qohelet (Tue, 21 Jul 2020 13:46:31 GMT):
Hi, I'm trying to get the commercial-paper sample running, but there's something I can't figure out. https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html refers sometimes to `(magnetocorp admin)$` - how would I get to that stage? `fabric-samples/commercial-paper/organization/magnetocorp$ source magnetocorp.sh` just lists the environmental variables, but I can't execute `peer lifecycle chaincode package cp.tar.gz --lang java --path ./contract-java --label cp_0` None of the running Dockrers peer0.org1.example.com/peer0.org2.example.com seem to have an option to log in. What am I doing wrong?

Taaanos (Tue, 21 Jul 2020 14:26:28 GMT):
You effectively change identity by sourcing the MagnetoCorp and Digibank scripts, you set the env vars.

Taaanos (Tue, 21 Jul 2020 14:27:55 GMT):
you execute the `peer ....` cmd in the cli container

qohelet (Tue, 21 Jul 2020 14:40:54 GMT):
Just how? What's required to prepare? ``` schwaiger_m@mario1604:~/persistent/HyperLedger/fabric-samples/commercial-paper/organization/magnetocorp$ ./magnetocorp.sh Using organization 2 Using organization 2 export PATH="/home/schwaiger_m/persistent/HyperLedger/fabric-samples/commercial-paper/organization/magnetocorp/../../../bin:/home/schwaiger_m/persistent/HyperLedger/fabric-samples/test-network:/home/schwaiger_m/.opam/4.05.0/bin:/home/schwaiger_m/persistent/HyperLedger/fabric-samples/commercial-paper/organization/magnetocorp/../../../bin:/home/schwaiger_m/persistent/HyperLedger/fabric-samples/test-network:/home/schwaiger_m/bin:/home/schwaiger_m/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" schwaiger_m@mario1604:~/persistent/HyperLedger/fabric-samples/commercial-paper/organization/magnetocorp$ peer lifecycle chaincode package cp.tar.gz --lang java --path ./contract-java --label cp_0 No command 'peer' found, did you mean: Command 'peet' from package 'pipexec' (universe) Command 'pee' from package 'moreutils' (universe) Command 'beer' from package 'gerstensaft' (universe) Command 'pear' from package 'php-pear' (main) peer: command not found schwaiger_m@mario1604:~/persistent/HyperLedger/fabric-samples/commercial-paper/organization/magnetocorp$ docker exec peer0.org2.example.com peer lifecycle chaincode package cp.tar.gz --lang java --path contract-java --label cp_0 2020-07-21 14:37:51.123 UTC [chaincode.platform.util] func1 -> ERRO 001 Visit contract-java failed: lstat contract-java: no such file or directory 2020-07-21 14:37:51.124 UTC [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat contract-java: no such file or directory 2020-07-21 14:37:51.125 UTC [chaincode.platform.java] GetDeploymentPayload -> ERRO 003 Error writing java project to tar package lstat contract-java: no such file or directory Error: error getting chaincode bytes: failed to create chaincode package: lstat contract-java: no such file or directory ```

JaafarShhade (Tue, 21 Jul 2020 15:18:29 GMT):
Has joined the channel.

JaafarShhade (Tue, 21 Jul 2020 15:18:29 GMT):
Hello,

JaafarShhade (Tue, 21 Jul 2020 15:20:16 GMT):
Is it possible to use hyperledger fabric as a public network, where each users generates his keys on his mobile device and stores them in a wallet in their device, and from there they can issue transactions? It's more like metamask and ethereum but with no ether and with the power of hyperledger fabric's channels

andrikur (Tue, 21 Jul 2020 16:14:29 GMT):
yes, that would be possible. but why? hyperledger fabric known as permissioned blockchain. in your scenario it would be much easier to use well known public blockchain such as ethereum, stellar etc

BrettLogan (Tue, 21 Jul 2020 18:47:41 GMT):
What makes you think each peers data is the same? What if one peer has private data that the other isn't privy to? What if one peer is transacting on a channel another peer is not? What if one peer has committed a block the other peer has not yet committed? There are lots of scenarios where the data could be different

BrettLogan (Tue, 21 Jul 2020 18:52:06 GMT):
`core.yaml` is the individual peers configuration. So each peer should have its own config

BrettLogan (Tue, 21 Jul 2020 18:55:43 GMT):
No. Deploying your network on a single machine will never be "Production" ready. And not taking the time to learn how the configuration is handled is only going to cause you problems down the road when you don't know how to debug something. Is Fabric complex, yes, very, but if you are going to run it yourself you need to learn all of these things, or you're risking the integrity of your network and defeating the point of everything blockchain gives you. If you don't want to learn Fabric, but need to deploy it into production, then we would recommend you engage a third-party certified vendor where you can run the platform in their cloud but are protected by a service agreement, so if anything goes wrong they will help you recover or get past it.

arjones (Tue, 21 Jul 2020 19:13:41 GMT):
Thanks @BrettLogan. I wasn't able to find a clear answer to that. And I set it using the FABRIC_CFG_PATH variable?

BrettLogan (Tue, 21 Jul 2020 19:17:10 GMT):
We've discussed that `core.yaml` was a poor naming convention on our part (especially considering the other file is name orderer.yaml). We have a proposal that the when we do the major Config overhaul we would rename it to `peer.yaml` so its explicitly obvious what it is

arjones (Tue, 21 Jul 2020 19:18:14 GMT):
That would certainly be more clear. Thanks for the help.

ItaloCarrasco (Tue, 21 Jul 2020 21:01:32 GMT):
does anyone know using the chaincode contract api if is there a method to build the chaincode response like the shim response, instead of returning just a string

RaynielRamos (Tue, 21 Jul 2020 21:24:32 GMT):
Hi, I have a question and only find tricky solutions. How instantiate (in fabric 1.4.x) a chaincode (in node) without internet acces? Exists a good method for do this?

ItaloCarrasco (Tue, 21 Jul 2020 21:51:58 GMT):
is anyone having issues with service discovery, if you stop a peer or enough peers to still have a successfull endorsing?

Taaanos (Tue, 21 Jul 2020 22:32:14 GMT):
have you installed the fabric binaries? are they in your path?

Taaanos (Tue, 21 Jul 2020 22:32:47 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/install.html

BrettLogan (Tue, 21 Jul 2020 23:36:26 GMT):
You can return any object you want, it doesn't necessarily have to be a string. It can be an object, an array, anything.

BrettLogan (Tue, 21 Jul 2020 23:37:11 GMT):
You need to include a `.npmrc` file that points to a private registry on your network that has the modules you need installed

BrettLogan (Tue, 21 Jul 2020 23:37:11 GMT):
You need to include a `.npmrc` file in the root of your chaincode directory that points to a private registry on your network that has the modules you need installed

arjones (Wed, 22 Jul 2020 02:03:36 GMT):
How can I confirm my peers are using the correct core.yaml file in my peer docker containers? I mounted a volume with the correct files in the docker containers and set the FABRIC_CFG_PATH in the docker-compose.yaml. The variable is set correctly when I exec into the container, but /etc/hyperledger/fabric/core.yaml is the same default file. I'm not sure if the files in /etc/hyperledger/fabric are supposed to change, or if those are just defaults. Is core.yaml always set with the FABRIC_CFG_PATH variable?

mvkillu (Wed, 22 Jul 2020 05:01:48 GMT):
Thank you for taking the time to reply. So, I guess, I should take time and learn right from basics. I tried to follow the documentation twice, but lost interest midway as the concepts are way too advanced for me. Anyway, I will take my time, and will try to learn Fabric. Thank you.

BrettLogan (Wed, 22 Jul 2020 05:02:35 GMT):
What documentation are you following. The regular doc? Or are you starting with Fabric-Samples?

BrettLogan (Wed, 22 Jul 2020 05:04:40 GMT):
You can start with the fabric test-network tutorial (our official tutorial) and learn the aspects of fabric from first hand deployment experience: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

mvkillu (Wed, 22 Jul 2020 05:37:23 GMT):
I am going through the HLF documentation and have a question regarding channels. Let's suppose there are three organizations, A, B, and C. If A and B wants to have a channel, and A,B and C wants to have a seperate channel, do we have to create two consortiums, AB in one and ABC in another? Also, are consortiums just a general concept and not something that needs to be done technically while creating the network in HLF?

mvkillu (Wed, 22 Jul 2020 05:39:39 GMT):
I am going through this from start to end. https://hyperledger-fabric.readthedocs.io/en/release-2.2/whatis.html I tried this couple of times, but was stuck as I couldnt understand policies, MSP etc. few times. Starting from the begenning again.

Taaanos (Wed, 22 Jul 2020 06:30:23 GMT):
You have to create two separate channels one for AB and one for ABC. Each channel has its own blockchain. The consortium is a network of companies.

saif_32 (Wed, 22 Jul 2020 06:47:17 GMT):
I am getting this error in the orderer logs -

saif_32 (Wed, 22 Jul 2020 06:47:19 GMT):
TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.22.0.9:53048

saif_32 (Wed, 22 Jul 2020 06:47:30 GMT):
How to fix it ?

JaafarShhade (Wed, 22 Jul 2020 07:11:34 GMT):
I want to use it for organizations but with the ability for external users to use it, like the case of hospitals and patients, where each patient has his private key on his mobile device and he can use the hyperledger fabric network on specific channel

SivaramKannan (Wed, 22 Jul 2020 07:36:42 GMT):
still a noob. so, for a backup solution, I need to backup data from all the peers then

SivaramKannan (Wed, 22 Jul 2020 07:36:42 GMT):
I am still a noob, I don't understand all the scenarios. so, for a backup solution, I need to backup data from all the peers then

qohelet (Wed, 22 Jul 2020 08:17:16 GMT):
That was the issue. I downloaded the Fabric repo and executed `curl -sSL https://bit.ly/2ysbOFE | bash -s` in the commercial-paper-folder instead of the parent folder. I wondered as I had two sets of files.

dporto (Wed, 22 Jul 2020 09:08:38 GMT):
Has joined the channel.

andrikur (Wed, 22 Jul 2020 11:45:21 GMT):
For simplify version, Yes, it can do. For real world use, there are many factors to be considered

JaafarShhade (Wed, 22 Jul 2020 11:45:56 GMT):
May you explain more please? and how it can be done?

JaafarShhade (Wed, 22 Jul 2020 11:46:31 GMT):
Since registering and enrolling a new user requires an admin, so technically the user can't enroll himself

JaafarShhade (Wed, 22 Jul 2020 11:48:23 GMT):
And why the generally used structure considers using restful api instead of having the keys on the users side? Is there a specific reason for that?

andrikur (Wed, 22 Jul 2020 11:51:11 GMT):
For instance using rest-api that utilize fabric-ca-client nodeSDK to connect CA Server, register and enroll user

andrikur (Wed, 22 Jul 2020 11:51:40 GMT):
`const FabricCAServices = require('fabric-ca-client'); const { Wallets } = require('fabric-network'); const fs = require('fs'); const yaml = require('js-yaml'); const path = require('path'); async function main() { try { // load the network configuration let connectionProfile = yaml.safeLoad(fs.readFileSync('../gateway/connection-org2.yaml', 'utf8')); // Create a new CA client for interacting with the CA. const caInfo = connectionProfile.certificateAuthorities['ca.org2.example.com']; const caTLSCACerts = caInfo.tlsCACerts.pem; const ca = new FabricCAServices(caInfo.url, { trustedRoots: caTLSCACerts, verify: false }, caInfo.caName); // Create a new file system based wallet for managing identities. const walletPath = path.join(process.cwd(), '../identity/user/isabella/wallet'); const wallet = await Wallets.newFileSystemWallet(walletPath); console.log(`Wallet path: ${walletPath}`); // Check to see if we've already enrolled the admin user. const userExists = await wallet.get('isabella'); if (userExists) { console.log('An identity for the client user "user1" already exists in the wallet'); return; } // Enroll the admin user, and import the new identity into the wallet. const enrollment = await ca.enroll({ enrollmentID: 'user1', enrollmentSecret: 'user1pw' }); const x509Identity = { credentials: { certificate: enrollment.certificate, privateKey: enrollment.key.toBytes(), }, mspId: 'Org2MSP', type: 'X.509', }; await wallet.put('isabella', x509Identity); console.log('Successfully enrolled client user "isabella" and imported it into the wallet'); } catch (error) { console.error(`Failed to enroll client user "isabella": ${error}`); process.exit(1); } } main(); `

andrikur (Wed, 22 Jul 2020 11:52:03 GMT):
that code example from fabric-example repo

JaafarShhade (Wed, 22 Jul 2020 11:53:11 GMT):
aren't you supposed to register the user before enrolling him?

andrikur (Wed, 22 Jul 2020 12:01:08 GMT):
In fabric-ca-client sdk, they pack it in one command

JaafarShhade (Wed, 22 Jul 2020 14:46:30 GMT):
Okay so it worked as u mentioned, but this means i must pass the secret back to the user

JaafarShhade (Wed, 22 Jul 2020 14:46:43 GMT):
which is ok since enrollment can only be done once

andrikur (Wed, 22 Jul 2020 15:03:55 GMT):
yap, nice and easy

JaafarShhade (Wed, 22 Jul 2020 15:04:06 GMT):
in the FabricCAClient sdk nodejs, the enroll method, if I pass a CSR, this means that I have generated my privateKey and certificate manually write? and I just want to enroll with this certificated without creating a new one

andrikur (Wed, 22 Jul 2020 16:26:55 GMT):
Sorry i dont understand your question clearly

JaafarShhade (Wed, 22 Jul 2020 18:01:48 GMT):
I dont want the fabric-ca server to generate the private key for me, I want to use my own private key that I already have

JaafarShhade (Wed, 22 Jul 2020 18:02:14 GMT):
I worked it out, generated private key and csr using openssl for testing

JaafarShhade (Wed, 22 Jul 2020 18:02:48 GMT):
I am really thankful for your help, the code u sent above gave me the answer of a 1 week research

babiskg (Wed, 22 Jul 2020 19:25:07 GMT):
Has joined the channel.

babiskg (Wed, 22 Jul 2020 19:25:07 GMT):
hello , i have install all prerequisites of hyperledger fabric but giving this curl -sSL https://bit.ly/2ysbOFE | bash -s i receive this error :

babiskg (Wed, 22 Jul 2020 19:25:11 GMT):
Clone hyperledger/fabric-samples repo ===> Checking out v2.2.0 of hyperledger/fabric-samples fatal: Unable to create '/home/pi/fabric-samples/.git/index.lock': Permission denied Pull Hyperledger Fabric binaries ===> Downloading version 2.2.0 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.2.0/hyperledger-fabric-linux-armv7l-2.2.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 20 0 --:--:-- --:--:-- --:--:-- 20 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file.

babiskg (Wed, 22 Jul 2020 19:25:38 GMT):
what iam doing wrong?

raduke (Wed, 22 Jul 2020 20:34:52 GMT):
Has joined the channel.

BrettLogan (Wed, 22 Jul 2020 21:09:24 GMT):
We don't support running on ARM

BrettLogan (Wed, 22 Jul 2020 21:10:05 GMT):
You need to build all of the binaries and images yourself if you want to do this

BrettLogan (Wed, 22 Jul 2020 21:10:46 GMT):
And only on 64-bit is possible. Cryptographic libraries can't be run on 32-bit OS's like PI-32.

BrettLogan (Wed, 22 Jul 2020 21:12:01 GMT):
Correct. The consortium is just the group of people transacting on the same network, its just a concept. Channel's are sub-divisions within your consortium.

BrettLogan (Wed, 22 Jul 2020 21:12:37 GMT):
what did you set FABRIC_CFG_PATH to?

BrettLogan (Wed, 22 Jul 2020 21:13:42 GMT):
Are you setting FABRIC_CFG_PATH to a different path than `/etc/hyperledger/fabric`

BrettLogan (Wed, 22 Jul 2020 21:14:48 GMT):
It's probably more appropriate in this situation, unless you have a good reason for changing the path, to just mount your core.yaml directly into `/etc/hyperledger/fabric/core.yaml` in which case the peer will use yours directly and not generate a new one

BrettLogan (Wed, 22 Jul 2020 21:15:40 GMT):
Did you include `172.22.0.9` in the SANS section of your certificate when you generated it?

eduardopezzi (Wed, 22 Jul 2020 23:55:32 GMT):
Has joined the channel.

eduardopezzi (Wed, 22 Jul 2020 23:55:32 GMT):
I am adding a IBM Blockchain Platform node/peer to a open source HLF network and, therefore, to its channels. I was following IBM tutorial but its not so clear. does someone have any experience doing that?

arjones (Thu, 23 Jul 2020 00:19:10 GMT):
Yes I was setting to a directory in /opt. I will try mounting the core.yaml file directly to the directory in /etc to be sure I am using the correct one. Thanks.

BrettLogan (Thu, 23 Jul 2020 02:16:32 GMT):
Which tutorial are you following?

pratheep (Thu, 23 Jul 2020 02:55:52 GMT):

Screenshot (2).png

RaynielRamos (Thu, 23 Jul 2020 03:23:42 GMT):
or maybe i can customize the ccenv image... but this is another head pain. i suppose that i need to migrate to 2.x. thank you for your answer

RaynielRamos (Thu, 23 Jul 2020 03:27:23 GMT):
or maybe i can customize the ccenv image... but this is another head pain. i suppose that i need to migrate to 2.x. thank you for your answer

BrettLogan (Thu, 23 Jul 2020 03:28:48 GMT):
Customizing the ccenv image would work as well. But moving to 2.x would be much easier. You can just use an `external builder` where you build the chaincode binary or image yourself and then the peer just launches your prebuilt chaincode

RaynielRamos (Thu, 23 Jul 2020 03:29:56 GMT):
yes, i was reading the 2.x doc. thanks

AbhijeetBhowmik (Thu, 23 Jul 2020 03:39:46 GMT):
I am trying to enroll CA Admin via Fabric SDK nodes. I need to pass csr as argument to ca.enroll method. To generate CSR I used ‘node-forge’ fabric module CSR generate by the code is 


-----BEGIN CERTIFICATE REQUEST----- MIIC8jCCAdoCAQAwejEdMBsGA1UEAxMUY2FhZG1pbkBjb250cmFjdHMuaW8xCzAJ BgNVBAYTAklOMRcwFQYDVQQIEw5NYWRoeWEgUHJhZGVzaDEPMA0GA1UEBxMGSW5k b3JlMRUwEwYDVQQKEwxjb250cmFjdHMuaW8xCzAJBgNVBAsTAkNBMIIBIjANBgkq hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn/eXeesXL1ut0T8VL48/xU5HLWWbfEzm P7+qWA9gURrPMrU9pomn7YaQqGmwrNAwOzpnaXm5pmVngbTpjTDBn6xjSC+nfjj7 hqemwQ4KILDYRVedSfoGEEp5siiTnzWmpQN7z0PCmJ7tJd3bolO9449c3goBclIn svUEegilU31PqyainM2UWerlLQOtJJ04uhCE4Lt/H6b0Hirlia1GBtmk+Fd6k6oV +Lp62qnfxpxWu2GAZR6e1cFZEtJHS5S5IoJaLxhF2olTym54WgTB26BxPZEoIq+e cRFU2HoewUWgAK5yXpHuNbYq/rEn+B+5qIi+sZAs3TCpIwqAs0pabwIDAQABoDMw MQYJKoZIhvcNAQkOMSQwIjAgBgNVHREEGTAXghVhZG1pbi5jYS5jb250cmFjdHMu aW8wDQYJKoZIhvcNAQEFBQADggEBAC/MI9R0SnaeRwxBT2BBgK3sbG8yb4A89tk7 I6PdE64z+Av3vy17fA+yJILAXovU+CPMmuNkZh166i/1lvqTWVEguVwG8KGBX87i I2A4J2sjX3CE+s4teyazYZjGGquoJm/sBf+rsRgGqWz04CMuhfzxRMY2cZ7Qhoqr HHKn4jFRSKImNuPaGSqFRZvfli4E4XcA26LulykBriaHtg/GgcGCeDUzLliOZmie CrLaUphjK413DGLPsG8c/YppWnFKuMGRr/sbcRdQKTb4TTv2VAX7u/hzRpN2ZQEZ E0OxRWOipvBApxtyEBlnTBk47GrjFhRun4GdAgMuhizm9TcAR7U= -----END CERTIFICATE REQUEST----- But on calling ca.enroll with this as follows: const enrollment = await ca.enroll({ csr, enrollmentID: username, enrollmentSecret: password }); "Error: fabric-ca request enroll failed with errors [[ { code: 0,\n message:\n 'asn1: syntax error: PrintableString contains invalid character' } ]]\n at IncomingMessage.FabricCAClient.request.request._httpClient.request.response.on (/home/abhijeet/Documents/Blockchain/contracts.io/auth.io/application/node_modules/fabric-ca-client/lib/FabricCAClient.js:298:19)\n at IncomingMessage.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1092:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"

AbhijeetBhowmik (Thu, 23 Jul 2020 03:39:46 GMT):
I am trying to enroll CA Admin via Fabric SDK nodes. I need to pass csr as argument to ca.enroll method. To generate CSR I used ‘node-forge’ fabric module CSR generate by the code is 


-----BEGIN CERTIFICATE REQUEST----- MIIC8jCCAdoCAQAwejEdMBsGA1UEAxMUY2FhZG1pbkBjb250cmFjdHMuaW8xCzAJ BgNVBAYTAklOMRcwFQYDVQQIEw5NYWRoeWEgUHJhZGVzaDEPMA0GA1UEBxMGSW5k b3JlMRUwEwYDVQQKEwxjb250cmFjdHMuaW8xCzAJBgNVBAsTAkNBMIIBIjANBgkq hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn/eXeesXL1ut0T8VL48/xU5HLWWbfEzm P7+qWA9gURrPMrU9pomn7YaQqGmwrNAwOzpnaXm5pmVngbTpjTDBn6xjSC+nfjj7 hqemwQ4KILDYRVedSfoGEEp5siiTnzWmpQN7z0PCmJ7tJd3bolO9449c3goBclIn svUEegilU31PqyainM2UWerlLQOtJJ04uhCE4Lt/H6b0Hirlia1GBtmk+Fd6k6oV +Lp62qnfxpxWu2GAZR6e1cFZEtJHS5S5IoJaLxhF2olTym54WgTB26BxPZEoIq+e cRFU2HoewUWgAK5yXpHuNbYq/rEn+B+5qIi+sZAs3TCpIwqAs0pabwIDAQABoDMw MQYJKoZIhvcNAQkOMSQwIjAgBgNVHREEGTAXghVhZG1pbi5jYS5jb250cmFjdHMu aW8wDQYJKoZIhvcNAQEFBQADggEBAC/MI9R0SnaeRwxBT2BBgK3sbG8yb4A89tk7 I6PdE64z+Av3vy17fA+yJILAXovU+CPMmuNkZh166i/1lvqTWVEguVwG8KGBX87i I2A4J2sjX3CE+s4teyazYZjGGquoJm/sBf+rsRgGqWz04CMuhfzxRMY2cZ7Qhoqr HHKn4jFRSKImNuPaGSqFRZvfli4E4XcA26LulykBriaHtg/GgcGCeDUzLliOZmie CrLaUphjK413DGLPsG8c/YppWnFKuMGRr/sbcRdQKTb4TTv2VAX7u/hzRpN2ZQEZ E0OxRWOipvBApxtyEBlnTBk47GrjFhRun4GdAgMuhizm9TcAR7U= -----END CERTIFICATE REQUEST----- But on calling ca.enroll with this as follows: const enrollment = await ca.enroll({ csr, enrollmentID: username, enrollmentSecret: password }); "Error: fabric-ca request enroll failed with errors [[ { code: 0,\n message:\n 'asn1: syntax error: PrintableString contains invalid character' } ]]\n at IncomingMessage.FabricCAClient.request.request._httpClient.request.response.on (/home/abhijeet/Documents/Blockchain/contracts.io/auth.io/application/node_modules/fabric-ca-client/lib/FabricCAClient.js:298:19)\n at IncomingMessage.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1092:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"

HansrajRami (Thu, 23 Jul 2020 06:03:11 GMT):
How to invoke qscc system chaincode with nodejs SDK ?

giuzero (Thu, 23 Jul 2020 10:39:05 GMT):
Hi, i got a fabric network of 6 hosts. 5 of 6 have a docker orderer (raft). To commit a transaction I have to have at least 3 orderer up. How can I set everything to commit the transaction just with one orderer up? (How to avoid Error: error sending transaction for invoke: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader in this case?) Many thanks

stoffie (Thu, 23 Jul 2020 12:26:30 GMT):
Has joined the channel.

stoffie (Thu, 23 Jul 2020 12:26:31 GMT):
Hello everyone thank you for your contribution to the fabric project! Me and my teammates have been encountering synchronization error when sending commands to our ledger. The error we get is status code11 aka MVCC error, we understand why we get this error but we are not sure about what strategy should we implement to handle it: it appears that if we simply ignore the error and mark the command execution successful inside our off-chain app then everything works. This is fine but we are wondering if we are not missing something important or is this the desired behavior, since what we expected was that we had to manually reschedule the sending of the command in a new transaction, but we didn't. So we are kind of scratching our heads right now wondering if it's ok to simply ignore a status code 11. Thanks in advance

stoffie (Thu, 23 Jul 2020 12:26:31 GMT):
Hello everyone thank you for your contribution to the fabric project! Me and my teammates have been encountering synchronization errors when sending commands to our ledger. The error we get is status code11 aka MVCC error, we understand why we get this error but we are not sure about what strategy should we implement to handle it: it appears that if we simply ignore the error and mark the command execution successful inside our off-chain app then everything works. This is fine but we are wondering if we are not missing something important or is this the desired behavior, since what we expected was that we had to manually reschedule the sending of the command in a new transaction, but we didn't. So we are kind of scratching our heads right now wondering if it's ok to simply ignore a status code 11. Thanks in advance

eduardopezzi (Thu, 23 Jul 2020 14:46:50 GMT):
perhaps you need specify the binaries version

stoffie (Thu, 23 Jul 2020 14:58:14 GMT):
we are using version 2.1.1

mach-kernel (Thu, 23 Jul 2020 15:17:26 GMT):
Has joined the channel.

mach-kernel (Thu, 23 Jul 2020 15:17:26 GMT):
howdy, i'm a newcomer to hyperledger fabric and am having issues deploying a smart contract. here are logs from my peer: ``` [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com|2020-07-23 15:05:41.480 UTC [endorser] SimulateProposal -> ERRO 110 [mychannel][2cacbaaf] failed to invoke chaincode name:"lscc" , error: container exited with 1 [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com|runtime.goexit [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1337 [7/23/2020 11:05:41 AM] [INFO] dev_peer0.org1.example.com|chaincode registration failed ``` is there any way to get a more expressive log about what happened past `exit 1`?

Taaanos (Thu, 23 Jul 2020 15:20:35 GMT):
Did you get these logs straight from the container that exited?

mach-kernel (Thu, 23 Jul 2020 15:21:28 GMT):
via the vscode plugin, the container logs are: ``` 2020-07-23 15:03:48.021 UTC [comm.grpc.server] 1 -> INFO 10d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.1:49264 grpc.code=OK grpc.call_duration=2.0847ms 2020-07-23 15:03:48.033 UTC [endorser] callChaincode -> INFO 10e [mychannel][2cacbaaf] Entry chaincode: name:"lscc" 2020-07-23 15:05:41.480 UTC [endorser] callChaincode -> INFO 10f [mychannel][2cacbaaf] Exit chaincode: name:"lscc" (113584ms) 2020-07-23 15:05:41.480 UTC [endorser] SimulateProposal -> ERRO 110 [mychannel][2cacbaaf] failed to invoke chaincode name:"lscc" , error: container exited with 1 ```

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: `2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450`

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: `2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: ``2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450`` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: `2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: ` 2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450 ` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: `2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450 ` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:21:48 GMT):
I am working on setting up a test network by following this guide: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html. I am able to execute ./network.sh up correctly and ./network.sh createChannel within Fabric-Samples. When I attempt to do the same thing in my personal project, I am able to execute ./network.sh up and start ./network.sh createChannel but I am unable to join my peers to the channel. In my peer container, I see the following tls errors: ```2020-07-23 15:16:17.698 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55446 2020-07-23 15:16:19.265 UTC [core.comm] ServerHandshake -> ERRO 031 TLS handshake failed with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:55450 ``` I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist. Any thoughts?

Swhite215 (Thu, 23 Jul 2020 15:24:01 GMT):
I verified that the appropriate TLS environment variables exist on the peers in the docker-compose, and that the containers have access to the mounted directories in Docker file sharing. This is confirmed by exec'ing into the containers and verifying the directories exist.

NewAlexandria (Thu, 23 Jul 2020 15:26:25 GMT):
@Taaanos I"m interested in this too. Do you have another suggestion for how to approach this?

Taaanos (Thu, 23 Jul 2020 15:32:11 GMT):
I usually get verbose errors by getting the logs straight from the container that exited. There are DEBUG flags in yaml files like "- CORE_LOGGING_LEVEL=DEBUG"

Taaanos (Thu, 23 Jul 2020 15:32:28 GMT):
depends on the container and the service

Taaanos (Thu, 23 Jul 2020 15:35:05 GMT):
if you are getting the logs from docker plugin then it should be the same

Taaanos (Thu, 23 Jul 2020 15:40:40 GMT):
what changes have you made in your project?

mach-kernel (Thu, 23 Jul 2020 15:42:03 GMT):
it looks like the extension makes env with this playbook: https://github.com/IBM-Blockchain/blockchain-vscode-extension/tree/master/test/data/1%20Org%20Local%20Fabric

mach-kernel (Thu, 23 Jul 2020 15:43:35 GMT):
will try your suggestion with https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html seems easier to debug

Swhite215 (Thu, 23 Jul 2020 15:46:17 GMT):
Changed configtx.yaml files for each Org, changed docker-compose.yaml to match org name changes, and changed core.yaml localMspId.

hazbiy97 (Thu, 23 Jul 2020 18:15:23 GMT):
hello everyone, I don't know if this question is make sense, I know Raft is consensus algorithm and use etcd to distributed the data, and i know etcd in Raft Ordering Service have similar job with zookeeper in Kafka Ordering Service, but what I don't understand is, what kind of consensus used in Kafka ordering service? because ordering service can use Raft or Kafka, but Raft is consensus algorithm yet Kafka is not. Or actually both of them just part of consensus ordering phase? then what kind of consensus used in Fabric? i've read somewhere Fabric is not PBFT yet.

hazbiy97 (Thu, 23 Jul 2020 18:15:23 GMT):
hello everyone, I don't know if this question make sense, I know Raft is consensus algorithm and use etcd to distributed the data, and i know etcd in Raft Ordering Service have similar job with zookeeper in Kafka Ordering Service, but what I don't understand is, what kind of consensus used in Kafka ordering service? because ordering service can use Raft or Kafka, but Raft is consensus algorithm yet Kafka is not. Or actually both of them just part of consensus ordering phase? then what kind of consensus used in Fabric? i've read somewhere Fabric is not PBFT yet.

Taaanos (Thu, 23 Jul 2020 18:35:04 GMT):
Yes it's not BFT. Have you read this article? https://developer.ibm.com/articles/blockchain-hyperledger-fabric-ordering-decentralization/

Taaanos (Thu, 23 Jul 2020 18:39:00 GMT):
Also have a look at this, it's not ready yet https://github.com/IBM/mirbft

cjohnson57 (Thu, 23 Jul 2020 20:17:21 GMT):
Has joined the channel.

cjohnson57 (Thu, 23 Jul 2020 20:17:22 GMT):
Hello, I have a question that might be dumb but it's something I can't figure out how to do I'm trying to take some timings and running some code for the ordering service in isolation, but I can't figure out how to just make a new blank chain support but that will actually run the functions I looked in mocks and saw this, which is what I'm using right now, but it seems when I call functions on it (Ordered, WriteBlock, Append, etc.) it runs some other version of it rather than what would actually be run, and those also "get stuck" and never return anything I just want to declare a new chain in code with default everything and be able to add blocks/messages to it

cjohnson57 (Thu, 23 Jul 2020 20:17:25 GMT):

Clipboard - July 23, 2020 3:17 PM

AbhijeetBhowmik (Fri, 24 Jul 2020 02:52:45 GMT):
Is it mandatory to use ECDSA while generating a CSR to be signed by Fabric-CA ?

giuzero (Fri, 24 Jul 2020 07:36:04 GMT):
How to use "NOutOf" as policy?

pkirkinezis (Fri, 24 Jul 2020 10:33:41 GMT):
Hi to all how can I access coudb UI /_utils in hyperledger 2.2 docker and hyperledger/fabric-couchdb:latest . I tried locahost:5984/_utils but nothing is working

sarva_v (Fri, 24 Jul 2020 10:56:22 GMT):
Hi all, I created a new contract using the yeoman generator at https://github.com/IBM-Blockchain/generator-fabric/. I include a new function in the contract to query all my assets similar to the queryAllCars in the fabcar chaincode.

sarva_v (Fri, 24 Jul 2020 10:56:22 GMT):
Hi all, I created a new contract using the yeoman generator at https://github.com/IBM-Blockchain/generator-fabric/. I include a new function in the contract to query all my assets similar to the queryAllCars in the fabcar chaincode. ``` async queryAllAccounts(ctx) { const startKey = ''; const endKey = ''; const keyValList = []; for await (const {key, value} of ctx.stub.getStateByRange(startKey, endKey)) { const strValue = Buffer.from(value).toString('utf8'); let record; try { record = JSON.parse(strValue); } catch (err) { console.log(err); record = strValue; } keyValList.push({ Key: key, Record: record }); } return keyValList; } ``` When I run "npm run test", eslint reports an error "Parsing error: Unexpected token await". It is referring to the await in the "for await (const {key, value} of ctx.stub.getStateByRange(startKey, endKey)) ". How to get around this?

sarva_v (Fri, 24 Jul 2020 10:56:22 GMT):
Hi all, I created a new contract using the yeoman generator at https://github.com/IBM-Blockchain/generator-fabric/. I included a new function in the contract to query all my assets similar to the queryAllCars in the fabcar chaincode. ``` async queryAllAccounts(ctx) { const startKey = ''; const endKey = ''; const keyValList = []; for await (const {key, value} of ctx.stub.getStateByRange(startKey, endKey)) { const strValue = Buffer.from(value).toString('utf8'); let record; try { record = JSON.parse(strValue); } catch (err) { console.log(err); record = strValue; } keyValList.push({ Key: key, Record: record }); } return keyValList; } ``` When I run "npm run test", eslint reports an error "Parsing error: Unexpected token await". It is referring to the await in the "for await (const {key, value} of ctx.stub.getStateByRange(startKey, endKey)) ". How to get around this?

JaafarShhade (Fri, 24 Jul 2020 14:32:57 GMT):
Hello, I am using bip39 to generate mnemonic and privateKey, I want to generate a csr certificate from this privatekey, can anyone help? and does bip39 use ecdsa since I am willing to use it with hyperledger fabric

BrettLogan (Fri, 24 Jul 2020 18:58:36 GMT):
remove `await` its a mistake. I'm actually working on fixing this area of code. This entire function is wrong anyway, as getStateByRange returns an iterator not the underlying KV obect

BrettLogan (Fri, 24 Jul 2020 19:59:45 GMT):
```const allResults = []; const iterator = await ctx.stub.getStateByRange('', ''); let result = await iterator.next(); while (!result.done) { const strValue = Buffer.from(result.value.value.toString()).toString('utf8'); let record; try { record = JSON.parse(strValue); } catch (err) { console.log(err); record = strValue; } allResults.push({ Key: result.value.key, Record: record }); result = await iterator.next(); } return JSON.stringify(allResults);```

BrettLogan (Fri, 24 Jul 2020 19:59:50 GMT):
This is valid ^^^

vishnupradeepmahe (Fri, 24 Jul 2020 21:19:05 GMT):
Hi all, I have a slight latency at the time instantiation, i would like to make it minimum, chaincode is written in nodejs Is there any possibility that we can specify the directory path of node_modules for each peer in docker-compose file so that it would save time at the time of instantiation. Also any links of article or github that showcase on how revoke ca created by fabric is appreciated.

BrettLogan (Fri, 24 Jul 2020 21:43:50 GMT):
node_modules aren't always what you think they are. There are many sym-links and simply copying or mounting it doesn't actually preserve the required structure you need to make node_modules work. It's why even when you include the node_modules in your directory it still takes a while to instantiate because it still has to rebuild most of the modules because the symlinks have been lost. The best thing you can do is move to our latest LTS release where a lot of optimization has been done. It takes a lot less time to build the grpc module in newer versions of Node (this is what actually takes so long when using nodejs chaincode)

vishnupradeepmahe (Fri, 24 Jul 2020 22:19:43 GMT):
okay thank you

vishnupradeepmahe (Fri, 24 Jul 2020 22:29:57 GMT):
any material on revoking certs provided by fabric-ca?

AbhijeetBhowmik (Sat, 25 Jul 2020 01:46:17 GMT):
You can either use openssl to generate CSR, and to do the same programatically, there must be available language modules for instance nodejs has jsrsasign module. Refer to this answer on stackoverflow which clarifies the usage https://stackoverflow.com/questions/55687562/setting-pem-attributes-for-user-identities-in-hyperledger-fabric

sarva_v (Sat, 25 Jul 2020 02:36:06 GMT):
That worked. Thanks for the code. It would have been hard for me to figure out on my own.

sarva_v (Sat, 25 Jul 2020 02:45:20 GMT):
The corresponding test code is as follows. Someone might find it useful. ``` const johnDetails = { name: 'John Doe', }; const janeDetails = { name: 'Jane Doe', }; const allAccounts = [ { Key: '1001', Record: johnDetails }, { Key: '1002', Record: janeDetails } ]; function* accountIterator() { yield { key: '1001', value: JSON.stringify(johnDetails) }; yield { key: '1002', value: JSON.stringify(janeDetails) }; return null; } ``` In the `beforeEach` function, I put ``` ctx.stub.getStateByRange.withArgs('', '').resolves(accountIterator()); ``` Finally the test case is the following. ``` describe('#queryAllAccounts', () => { it('should return a list of accounts', async () => { await contract.queryAllAccounts(ctx).should.eventually.deep.equal(allAccounts); ctx.stub.getStateByRange.should.have.been.calledOnceWithExactly('',''); }); }); ``` The `catch` is not tested by this test case. So the `npm run test` may complain about not achieving 100% coverage in Statements and Lines. For now, I just reduced the thresholds to 95 in the `package.json`.

sarva_v (Sat, 25 Jul 2020 02:45:20 GMT):
The corresponding test code is as follows. Someone might find it useful. ``` const johnDetails = { name: 'John Doe' }; const janeDetails = { name: 'Jane Doe' }; const allAccounts = [ { Key: '1001', Record: johnDetails }, { Key: '1002', Record: janeDetails } ]; function* accountIterator() { yield { key: '1001', value: JSON.stringify(johnDetails) }; yield { key: '1002', value: JSON.stringify(janeDetails) }; return null; } ``` In the `beforeEach` function, I put ``` ctx.stub.getStateByRange.withArgs('', '').resolves(accountIterator()); ``` Finally the test case is the following. ``` describe('#queryAllAccounts', () => { it('should return a list of accounts', async () => { await contract.queryAllAccounts(ctx).should.eventually.deep.equal(allAccounts); ctx.stub.getStateByRange.should.have.been.calledOnceWithExactly('',''); }); }); ``` The `catch` is not tested by this test case. So the `npm run test` may complain about not achieving 100% coverage in Statements and Lines. For now, I just reduced the thresholds to 95 in the `package.json`.

nitinrawat_2 (Sat, 25 Jul 2020 12:11:37 GMT):
Has joined the channel.

nitinrawat_2 (Sat, 25 Jul 2020 12:11:37 GMT):
Hi Everyone facing issue while downloading hyperledger fabric binaries always some binaries stuck in downloading status in windows.

babiskg (Sat, 25 Jul 2020 14:58:17 GMT):
thank you BrettLogan , can you help me how i can build them?

BrettLogan (Sat, 25 Jul 2020 15:18:01 GMT):
What country are you located in?

eduardopezzi (Sat, 25 Jul 2020 19:40:27 GMT):
Hi There... I am joining a new org to the consortium and I am struggling to connect the new org, deployed in another cloud server, to the order peer in my local network. Any thought about that?

aqid (Sun, 26 Jul 2020 07:42:24 GMT):
Has joined the channel.

aqid (Sun, 26 Jul 2020 07:42:24 GMT):
Hi guys, anyone ever use the `peer node pause` command? I tried to use it via `docker exec` it gives me an error `Error: as another peer node command is executing, wait for that command to complete its execution or terminate it before retrying: lock is already acquired on file /var/hyperledger/production/ledgersData/fileLock` But if I tried to call it locally it gives me `panic: Error creating dir if missing: error creating dir [/var/hyperledger/production/ledgersData/fileLock/]: mkdir /var/hyperledger: permission denied` Any help would be appreciated :)

pronoob (Sun, 26 Jul 2020 11:28:56 GMT):
Has joined the channel.

pronoob (Sun, 26 Jul 2020 11:34:42 GMT):
Can anyone help me to get a boilerplate for fabric v2 golang. Im trying to use go-sdk. But don't know actually how to start. I read the first project tutorial and go-sdk example. But when trying to have a project from scratch, I'm struck at starting point. Don't spam on me for not getting it right. Want to create a project for college. Help is appreciated. Thanks

pronoob (Sun, 26 Jul 2020 11:36:23 GMT):
Get the start right

vkvaibhav669 (Sun, 26 Jul 2020 14:54:08 GMT):
Has joined the channel.

shreychaturvedi (Mon, 27 Jul 2020 02:48:05 GMT):
``` Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: Orderer Org OrdererOrg cannot contain endpoints value until V1_4_2+ capabilities have been enabled panic: Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: Orderer Org OrdererOrg cannot contain endpoints value until V1_4_2+ capabilities have been enabled goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00017fc30, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x546 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc000010258, 0x16bc804, 0x1566b99, 0x25, 0xc000269b58, 0x1, 0x1, 0x0, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(...) /opt/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...) /opt/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 github.com/hyperledger/fabric/orderer/common/server.Start(0x1544352, 0x5, 0xc000297200) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:98 +0xe3 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20``` Getting error while creating channel

BrettLogan (Mon, 27 Jul 2020 06:42:11 GMT):
I think we've answered this at length in the mailing list. You need to stop your peer and run the command. So add peer node pause before the launch command in docker compose and then remove it and restart again. You can't do it locally because the directories were created inside a container and thus have elevated permissions.

AldrinWilfred (Mon, 27 Jul 2020 07:19:10 GMT):
Hello friends, How could I implement Hyperledger fabric api intersection using AWS lambda. I have uploaded the certificates to S3, but having trouble on how to retrieve the use contexts from S3, to invoke and querying the chain code through AWS lambda. Could you please advice me on this?

aqid (Mon, 27 Jul 2020 07:31:08 GMT):
Thanks for the answer and mailing list pointer @BrettLogan :woo:

andrikur (Mon, 27 Jul 2020 13:45:47 GMT):
Hai, I have been doing fabric 1.4. When install golang chaincode using peer native binary MacOS, it give me an error some dependencies not found even though it's already in vendor folder in project structure. With the exact code in the same project folder, i successfully install using peer binary in docker fabric-tools. Does anyone have the reason of this behavior ? Or i miss something ?

BrettLogan (Mon, 27 Jul 2020 15:17:34 GMT):
Did you setup GOPATH correctly? What is the output of `echo $GOPATH` and what is the path to your chaincode

andrikur (Mon, 27 Jul 2020 15:18:44 GMT):
Yup, i can run go test the error said returned from build: 1 "chaincode/input/src/github.com/andribiz/airplanecc/vendor/google.golang.org/grpc/internal/channelz/types_linux.go:26:2: cannot find package "golang.org/x/sys/unix" in any of: /chaincode/input/src/github.com/andribiz/airplanecc/vendor/golang.org/x/sys/unix (vendor tree) /opt/go/src/golang.org/x/sys/unix (from $GOROOT) /chaincode/input/src/golang.org/x/sys/unix (from $GOPATH) /opt/gopath/src/golang.org/x/sys/unix

andrikur (Mon, 27 Jul 2020 15:19:41 GMT):
when running command peer chaincode instantiate

BrettLogan (Mon, 27 Jul 2020 15:23:06 GMT):
What version of `go` do you have installed `go version`

BrettLogan (Mon, 27 Jul 2020 15:23:06 GMT):
What version of `go` do you have installed, run `go version`

andrikur (Mon, 27 Jul 2020 15:36:39 GMT):
1.14

BrettLogan (Mon, 27 Jul 2020 16:04:00 GMT):
What version of fabric are you using?

BrettLogan (Mon, 27 Jul 2020 16:06:18 GMT):
Ah, right, missed you are on 1.4 fabric. This version requires you have this package installed locally. `go get golang.org/x/sys/unix`

andrikur (Mon, 27 Jul 2020 17:56:14 GMT):
I have try it with no luck. After 12 hours solid trial and error, i found the answer. Somehow peer chaincode install using golang env GOOS and GOARCH so after running this command env GOOS=linux GOARCH=amd64 peer chaincode install ........... I finally success to install chaincode Pheww... no documentation said that.

jbtwist (Mon, 27 Jul 2020 21:12:40 GMT):
Has joined the channel.

jbtwist (Mon, 27 Jul 2020 21:25:40 GMT):
Hi guys, i am studing teorically about all HL family, and I have a question about transaction speeds. This is something I havent seen written about anywhere. Can you tell me about how many transactions can process HL Fabrid and the other frameworks? There are benchmarking data anywhere?

arthuroz (Tue, 28 Jul 2020 01:25:32 GMT):
Has joined the channel.

arthuroz (Tue, 28 Jul 2020 01:25:32 GMT):
Hi guys, is there a way to query current endorsement policy on a chaincode? I am playing with the fabcar & addOrg3 sample and extended it to remove org3 from the channel. Afterwards, endorsement does not seem to work between org1 and org2. Invocation returned 200 and new blocks are added to the chain but the latest update is not returned when I query for all cars.

arthuroz (Tue, 28 Jul 2020 01:50:02 GMT):
found it

arthuroz (Tue, 28 Jul 2020 01:50:16 GMT):
peer lifecycle chaincode querycommitted -o orderer.example.com:7050 --tls --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name fabcar --output json { "sequence": 1, "version": "1.0", "endorsement_plugin": "escc", "validation_plugin": "vscc", "validation_parameter": "EiAvQ2hhbm5lbC9BcHBsaWNhdGlvbi9FbmRvcnNlbWVudA==", "collections": {}, "init_required": true, "approvals": { "Org1MSP": true, "Org2MSP": true } }

shreychaturvedi (Tue, 28 Jul 2020 10:52:04 GMT):
eer: Version: 2.1.1 Commit SHA: 6393adbb2 Go version: go1.14.1 OS/Arch: darwin/amd64 Chaincode: Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger

zyblockchain (Tue, 28 Jul 2020 11:10:47 GMT):
Has joined the channel.

zyblockchain (Tue, 28 Jul 2020 11:10:47 GMT):
Hi guys, I builded a cluster using Fabric 2.2.0 with three orgs on three servers. The first org can join the channel, the other two orgs can't join the channel with the same error "Error: error getting endorser client for channel: endorser client failed to connect to ledger0.tencent.hyledger.com:7051: failed to create new connection: context deadline exceeded". I have checked all the settings and even reinstalled the OS from Ubuntu to CentOS, but it didn't work. However, this bug didn't happen in the older version. Eager for your answers! The command is: peer channel join -b ./channel-artifacts/hypha-channel.block

kotbehemoth (Tue, 28 Jul 2020 16:22:04 GMT):
Has joined the channel.

kotbehemoth (Tue, 28 Jul 2020 16:22:04 GMT):
Guys, what Java sample is checked and ready to go with 2.2.0? I tried fabcar and failed multiple times (for js everything is fine).

BrettLogan (Tue, 28 Jul 2020 16:37:54 GMT):
We haven't finished the Java samples yet for 2.2.0, there is a major initiative underway. Fabcar is going away in 2.2 and being replaced with the new asset-transfer chaincodes that will show how to write real, production chaincode and applications

kotbehemoth (Tue, 28 Jul 2020 16:47:56 GMT):
@BrettLogan thanks, sounds good, but how to write java chaincode in the current situation? downgrade or something else? if downgrade - which version to use between 2.0 and 2.2 ?

arjones (Tue, 28 Jul 2020 20:07:20 GMT):
If I want to make an organization both a peer organization and an orderer organization, and I am using cryptogen to generate the crypto material, should that org be listed as both a peer and orderer organization in the crypto-config.yaml file? That way it generates different certs, which doesn't seem to be really what I want.

levanthanh3005 (Tue, 28 Jul 2020 21:07:39 GMT):
Hi, Is this possible to do "peer lifecycle chaincode commit" separately with each Org, For example, I will run commit for Org1: peer lifecycle chaincode commit \ -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com \ --tls $CORE_PEER_TLS_ENABLED \ --cafile ${ORDERER_CA} \ --channelID ${CHANNEL_NAME} \ --name fabcar \ --peerAddresses ${CORE_PEER_ADDRESS_1} \ --tlsRootCertFiles ${CORE_PEER_TLS_ROOTCERT_FILE_1} \ --version ${SMARTCONTRACTVERSION} \ --sequence ${CHAINCODEVERSION} \ --collections-config mno_collections_config.json \ --init-required And then run for Org2 peer lifecycle chaincode commit \ -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com \ --tls $CORE_PEER_TLS_ENABLED \ --cafile ${ORDERER_CA} \ --channelID ${CHANNEL_NAME} \ --name fabcar \ --peerAddresses ${CORE_PEER_ADDRESS_2} \ --tlsRootCertFiles ${CORE_PEER_TLS_ROOTCERT_FILE_2} \ --version ${SMARTCONTRACTVERSION} \ --sequence ${CHAINCODEVERSION} \ --collections-config mno_collections_config.json \ --init-required I run these commands, however it always ENDORSEMENT_POLICY_FAILURE, I know that this is the problem of signature policy when number of peer committing is not majority, But it will be nice if it peer can commit independently, or do you have any solutions for it ? Thank you

arthuroz (Wed, 29 Jul 2020 02:08:09 GMT):
Fabcar java works fine for me in 2.2.0

Fama 5 (Wed, 29 Jul 2020 04:04:56 GMT):
How to reset/recover if i lost fabric ca root password and username ?

Utsa_Roy25 (Wed, 29 Jul 2020 04:54:36 GMT):
Has joined the channel.

Utsa_Roy25 (Wed, 29 Jul 2020 04:54:37 GMT):
I am trying to implement hyperledger fabric on Raspberry Pi without docker but getting an error while executing the command below. cryptogen generate --config=./crypto-config.yaml but I got the following error bash /usr/local/bin/cryptogen: cannot execute binary file: Exec format error Please suggest a solution or alternative way to implement hyperledger fabric on Raspberry Pi without docker.

ysai (Wed, 29 Jul 2020 05:35:10 GMT):
Has joined the channel.

shishengjie (Wed, 29 Jul 2020 06:52:49 GMT):
Has joined the channel.

kotbehemoth (Wed, 29 Jul 2020 06:58:05 GMT):
@arthuroz in java? I have successfully deployed chaincode but it always get "undefined contract called" on every call.

kotbehemoth (Wed, 29 Jul 2020 06:58:05 GMT):
@arthuroz in java? I have successfully deployed chaincode but always get "undefined contract called" on every call.

HansrajRami (Wed, 29 Jul 2020 09:26:51 GMT):
I am running fabric network of 13 peers

HansrajRami (Wed, 29 Jul 2020 09:26:51 GMT):
I am running fabric network of 13 peers. There are 13 channels. in one channel all 13 peers are connected. And rest of 12 channels they all have only two peers. In channel which all peers has joined tx time is to long. Endorsement policy is majority. Tx time is too slow does it depends on no of orderer. Currently I am having 5 orderer. Any help is appreciated

andrikur (Wed, 29 Jul 2020 11:42:08 GMT):
Raspberry using ARM Architecture, HF Binary (that available in github) compiled using x64 architecture. So there is noway you could execute it in ARM/Raspberry Pi, except recompile the source code using ARM Architecture by yourself.

BrettLogan (Wed, 29 Jul 2020 12:50:06 GMT):
You also need to be on 2.x Fabric and using the external builder where you create your own chaincode launch methods or external server feature of chaincode, as without the external chaincode feature, installing/instantiating the chaincode requires docker, as the peer runs the chaincode in docker (even if the peer itself is not running in docker)

AbhijeetBhowmik (Wed, 29 Jul 2020 15:49:44 GMT):
I need some help with fabric-ca. I have specified ```FABRIC_CA_SERVER_CSR_HOSTS``` as env variable while booting fabric-ca as a docker container. But still SANS section of ca-cert.pem is empty. So when I try to call the fabric-ca and set verify: true, that is application attempts to verify CA cert, it throws error ```Error: Calling register endpoint failed with error [Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: 192.168.1.6 is not in the cert's list: ]\n``` Please help

AshutoshKumar7 (Wed, 29 Jul 2020 18:25:39 GMT):
Is there any example of contract listeners in java for 2.0+ ?

UmashankarSomasekar (Wed, 29 Jul 2020 19:11:31 GMT):
iterator object from hetHistoryForKey() contains Timestamp and value, but tx_id is always Undefined.. has anyone faced similar issue??

UmashankarSomasekar (Wed, 29 Jul 2020 19:11:39 GMT):
res.value.tx_id is Undefined

prabhakaran.ak (Wed, 29 Jul 2020 20:17:03 GMT):
If there are multiple smart-contracts inside a chaincode, how to call them from cli?

liericiyan (Thu, 30 Jul 2020 01:59:44 GMT):
Error: Failed to get client TLS config: Failed to read 'D:\d\fabric\fabric-samples\test-network\organizations\peerOrganizations\org1.example.com\d\fabric\fabric-samples\test-network\organizations\fabric-ca\org1\tls-cert.pem': open D:\d\fabric\fabric-samples\test-network\organizations\peerOrganizations\org1.example.com\d\fabric\fabric-samples\test-network\organizations\fabric-ca\org1\tls-cert.pem: The system cannot find the path specified. + set +x

UmashankarSomasekar (Thu, 30 Jul 2020 05:38:01 GMT):
https://stackoverflow.com/questions/63161195/transaction-id-from-gethistoryforkey-is-always-undefined-in-hyperledger-fabric

vramaiitkgp (Thu, 30 Jul 2020 06:30:46 GMT):
Has joined the channel.

vramaiitkgp (Thu, 30 Jul 2020 06:30:46 GMT):
Need some help on custom ESCC. I've been using one in my application for over a year, starting with Fabric 1.4.1. Everything worked fine until the images migrated to using Alpine as the base. Now (on Fabric 2.x) I'm unable to get a peer to load my custom ESCC plugin regardless of how I build it (I've tried various options, including building the plugin along with the peer executable in the Dockerfile shipped with the Fabric source.) The peer crashes, complaining about the plugin having been built with different version of one or the other library (the exact library mentioned in the stack trace changes across runs). Are there any guidelines and any working examples for using custom ESCC plugins I can check out? I know this feature is deprecated, but I have a critical need for it and would like to continue using it as long as possible. Thank you in advance!

Funbric (Thu, 30 Jul 2020 07:43:20 GMT):
Has joined the channel.

Funbric (Thu, 30 Jul 2020 07:59:02 GMT):
Hi, guys. Have you tried to add a third org to an existing channel using fabric-sdk-java? ```java channel.updateChannelConfiguration(updateChannelConfiguration, peerClient.getUpdateChannelConfigurationSignature(updateChannelConfiguration, peerAdmin)); ```

Funbric (Thu, 30 Jul 2020 08:03:40 GMT):
Hi, guys. Have you tried to add a third org to an existing channel using fabric-sdk-java? Here is the java code: `channel.updateChannelConfiguration(updateChannelConfiguration, peerClient.getUpdateChannelConfigurationSignature(updateChannelConfiguration, peerAdmin));` I draw out the `byte [] ` in `updateChannelConfiguration `, copy to my CentOS and run this command `peer channel update -f org2_update_in_envelope.pb -c channel23 -o orderer0.org3.com:8300 --ordererTLSHostnameOverride orderer0.org3.com --tls --cafile ${ORDERER3_CA}` to update the channel 23. And it succeed!

qohelet (Thu, 30 Jul 2020 08:18:17 GMT):
Is the cypto-config.yaml still existing in V 2.2? I can't find it in the fabric-samples any more

qohelet (Thu, 30 Jul 2020 08:19:51 GMT):
Is the crypto-config.yaml still relevant in V2.2? Why is it in the fabric-samples only present in the interest_rate_swaps?

Funbric (Thu, 30 Jul 2020 09:02:16 GMT):
Hi, guys. Have you tried to add a third “org” to an existing channel using fabric-sdk-java? When I do this I got an warn which rejecting my update action: ``` [52e916 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Application/MSP-org1/Writers [52e917 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *cauthdsl.policy Policy /Channel/Application/MSP-org1/Writers [52e918 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Application/Writers [52e919 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/Writers [52e91a 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Writers [52e91b 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers [52e91c 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> WARN [channel: channel109] Rejecting broadcast of config message from 124.160.109.242:15717 because of error: error applying config update to existing channel 'channel109': error authorizing update: proto: field "common.ConfigUpdate.channel_id" contains invalid UTF-8 [52e91d 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Closing Broadcast stream ``` Here is my java code: `channel.updateChannelConfiguration( updateChannelConfiguration, peerClient.getUpdateChannelConfigurationSignature( updateChannelConfiguration, peerAdmin));` I thought I make a wrong `org3_update_in_envelope.pb `. so, I draw out the `byte [] ` in `updateChannelConfiguration `, copy to my docker container `cli` save as `org3_update_in_envelope.pb ` and run this command `peer channel update -f org3_update_in_envelope.pb -c channel23 -o orderer0.org3.com:8300 --ordererTLSHostnameOverride orderer0.org3.com --tls --cafile ${ORDERER3_CA}` to update the channel23. And it succeed!!! This is makes me confused. I have the correct file for updating channel’s configuration, but why when i using sdk-java update the channel23, the orderer's log tells me `contains invalid UTF-8`.

Funbric (Thu, 30 Jul 2020 09:02:56 GMT):
Hi, guys. Have you tried to add a third “org” to an existing channel using fabric-sdk-java? When I do this I got an warn which rejecting my update action: ``` [52e916 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Application/MSP-org1/Writers [52e917 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *cauthdsl.policy Policy /Channel/Application/MSP-org1/Writers [52e918 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Application/Writers [52e919 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Application/Writers [52e91a 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Signature set satisfies policy /Channel/Writers [52e91b 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU == Done Evaluating *policies.implicitMetaPolicy Policy /Channel/Writers [52e91c 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> WARN [channel: channel109] Rejecting broadcast of config message from 124.160.109.242:15717 because of error: error applying config update to existing channel 'channel23': error authorizing update: proto: field "common.ConfigUpdate.channel_id" contains invalid UTF-8 [52e91d 07-30 16:58:41.25 CST] [%{longpkg}] %{callpath} -> DEBU Closing Broadcast stream ``` Here is my java code: `channel.updateChannelConfiguration(updateChannelConfiguration, peerClient.getUpdateChannelConfigurationSignature(updateChannelConfiguration, peerAdmin));` I thought I make a wrong `org3_update_in_envelope.pb `. so, I draw out the `byte [] ` in `updateChannelConfiguration `, copy to my docker container `cli` save as `org3_update_in_envelope.pb ` and run this command `peer channel update -f org3_update_in_envelope.pb -c channel23 -o orderer0.org3.com:8300 --ordererTLSHostnameOverride orderer0.org3.com --tls --cafile ${ORDERER3_CA}` to update the channel23. And it succeed! This is makes me confused. I have the correct file to update channel’s configuration, but why the log tells me `contains invalid UTF-8`.

Funbric (Thu, 30 Jul 2020 09:13:21 GMT):
Update existing channel in different way. In docker container using cmd, it can successfully updated, while using sdk-java, it failed. The weird thing is we using the same intermediate file.

YangMiranda (Thu, 30 Jul 2020 12:40:11 GMT):
Has joined the channel.

YangMiranda (Thu, 30 Jul 2020 12:55:03 GMT):
Hi, i am developing a solution based on Hyperledger Fabric and i have an issue on key management. There are 3 main methods to access an identity via Gateway object (fabric-sdk-java / fabric-network packages): • Filesystem • In memory • couchdb. Following the tutorials, the Filesystem is the most common on tutorials, i could also maintain the keys in memory after enroll them at Fabric CA instance, and CouchDb, that appears to centralize the key management. I'm new with blockchain e high security systems, but i have a insight that In Memory and CouchDB methods have some high point of failure of security. Filesystem still are the better method to end users and keep the keys securely in their machine and maybe even without know about them location. So anyone have a similar issue? Had a similar problem to keep the Wallets safe? I'd be grateful if someone could talk to me or give some direction to handle this issue.

begic (Thu, 30 Jul 2020 14:32:14 GMT):
Has joined the channel.

AshutoshKumar7 (Thu, 30 Jul 2020 18:12:51 GMT):
Error while running java chaincode -fabric 2.2.0 - I am trying to run java chaincode using faric-tools:2,2,0 . However I get this error: ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Do we need to install jdk on hyperledger/fabric-tools:2.2.0?

Sushilpaneru (Thu, 30 Jul 2020 21:32:12 GMT):
Has joined the channel.

Funbric (Fri, 31 Jul 2020 01:15:57 GMT):
Using Usb-key may help ensure the security? Our team are design an website which needs the end user can sign their proposal on their own side(browser). We haven't implements that, and fabric seems not providing the signature interface to developer. If we can sign a proporsal outside the fabric-sdk, may be fabric can be more decentralised in our situation .

AbhijeetBhowmik (Fri, 31 Jul 2020 02:43:47 GMT):
I too gave it a thought while I got caught up in a situation where I have to bet storing private key and certificates. Right now, I simply wrote a setter which encrypts certificate, private key and even mspId before storing them. Now since wallet is a key value pair, even realization of to whom the key belongs could be fatal for the owner's security. So even the key against which wallet identity is saved is encrypted. The complete encryption is carried out using AES and the password used for that is read from env variable which is read from env and then env variable is removed. Right now we are looking for better ways but the above criteria has helped us in passing Banking Compliances in past while storing banking related information in our database systems.

AbhijeetBhowmik (Fri, 31 Jul 2020 02:43:47 GMT):
I too gave it a thought while I got caught up in a situation where I have to be storing private key and certificates. Right now, I simply wrote a setter which encrypts certificate, private key and even mspId before storing them. Now since wallet is a key value pair, even realization of to whom the key belongs could be fatal for the owner's security. So even the key against which wallet identity is saved is encrypted. The complete encryption is carried out using AES and the password used for that is read from env variable which is read from env and then env variable is removed. Right now we are looking for better ways but the above criteria has helped us in passing Banking Compliances in past while storing banking related information in our database systems.

AbhijeetBhowmik (Fri, 31 Jul 2020 02:43:47 GMT):
I too gave it a thought while I got caught up in a situation where I have to be storing private key and certificates. Right now, I simply wrote a setter which encrypts certificate, private key and even mspId before storing them. Now since wallet is a key value pair, even realization of to whom the key belongs could be fatal for the owner's security. So even the key against which wallet identity is saved is encrypted. The complete encryption is carried out using AES and the password used for that is read from env variable which is read from env and then env variable is removed. Right now we are looking for better ways but the above criteria has helped us in passing Banking Security Compliances in past while storing banking related information in our database systems.

arthuroz (Fri, 31 Jul 2020 03:17:59 GMT):
yes, in Java. I am using test-network and using deployCC.sh to deploy fabcar -l java

AKUNNN (Fri, 31 Jul 2020 03:34:46 GMT):
Has joined the channel.

AKUNNN (Fri, 31 Jul 2020 03:34:46 GMT):
e2e

Vgkmanju (Fri, 31 Jul 2020 08:35:50 GMT):
Hi, In hyperledger fabric, We can take a backup of one's peer ledger from the mounted path mentioned in the core.yaml. How can i take a ledger backup for a particular user in a organization. Consider org1 which has two peers namely peer1 and peer2. Using fabric-ca, dynamically creating users for org1 and all the users are performed some action and stored all the records into the blockchain. One of the user, wants to take a backup means how can be done? Is this make sense? Can any one please clarify me and also suggest is there any possibility? Thanks in Advance.........

mbwhite (Fri, 31 Jul 2020 08:47:18 GMT):
Hello @AshutoshKumar7 would you be able to explain please a bit more about what you are doing? What are using fabric-tools for exactly?

sergeikus (Fri, 31 Jul 2020 10:57:00 GMT):
Hello! I am having an issue with querying private data from ledger. I have a setup with 2 organization and some collections are available only for one org, so in order to query the private data I must target only one organization peers (in my case it is peer0.ea.., and peer1.ea ....) and i specifically do so in the fabric-go-sdk by adding WithEndorsingPeers(....), but for some reason transaction is still endorsed from other organization peer (localhost:9051 which is peer0.auditor..) and receives and error that public hash version is not available. Here is the log first one is the log.Print(*Transaction) and other is response from ledger ``` 2020/07/31 11:53:24 &{0xc0004eee70 0xc00044dc20 [peer0.ea.io:7051 peer1.ea.io:8051] } 2020/07/31 11:53:24 failed to get data from ledger: Failed to evaluate: Transaction processing for endorser [localhost:9051]: Chaincode status Code: (500) UNKNOWN. Description: failed to get private data: GET_STATE failed: transaction ID: c45e4f058bc426c29bc6538be05d96055ac97c1f86ac99c621a215937e88b540: private data matching public hash version is not available. Public hash version = {BlockNum: 8, TxNum: 0}, Private data version = ``` Maybe I am missing something ?

sergeikus (Fri, 31 Jul 2020 10:57:00 GMT):
Hello! I am having an issue with querying private data from ledger. I have a setup with 2 organization and some collections are available only for one org, so in order to query the private data I must target only one organization peers (in my case it is peer0.ea.., and peer1.ea ....) and i specifically do so in the fabric-go-sdk by adding WithEndorsingPeers(....), but for some reason transaction is still endorsed from other organization peer (localhost:9051 which is peer0.auditor..) and receives and error that public hash version is not available. Here is the logs, first one is the log.Print(*Transaction) and other is response from ledger ``` 2020/07/31 11:53:24 &{0xc0004eee70 0xc00044dc20 [peer0.ea.io:7051 peer1.ea.io:8051] } 2020/07/31 11:53:24 failed to get data from ledger: Failed to evaluate: Transaction processing for endorser [localhost:9051]: Chaincode status Code: (500) UNKNOWN. Description: failed to get private data: GET_STATE failed: transaction ID: c45e4f058bc426c29bc6538be05d96055ac97c1f86ac99c621a215937e88b540: private data matching public hash version is not available. Public hash version = {BlockNum: 8, TxNum: 0}, Private data version = ``` Maybe I am missing something ?

Alen-Horvat (Fri, 31 Jul 2020 14:43:40 GMT):
Has joined the channel.

Alen-Horvat (Fri, 31 Jul 2020 14:43:40 GMT):
Hi. How to prove that the deployed chaincode is compiled from a given source code?

Alen-Horvat (Fri, 31 Jul 2020 14:43:40 GMT):
Hi. How to prove that the deployed chaincode is compiled from a given source code? (is compiling with the same compiler and same opts. the only way?)

AbhijeetBhowmik (Fri, 31 Jul 2020 14:48:17 GMT):
I too used to wonder how to do this. I mean I imagined a scenario wherein an org is asking for a proof if correct chaincode, which they agreed upon, is running on peers and no one has altered the code in anyway.

bestbeforetoday (Fri, 31 Jul 2020 14:52:05 GMT):
There are some options on storing keys. You could: - Write your own wallet store implementation to have the wallet store credentials using a mechanism of your choice. - Not use wallets to store credentials; instead use your own storage mechanism and pass the credentials directly to the Gateway connect (or in v1.4 put the credentials into a transient in-memory wallet just as a mechanism to pass them to the Gateway). - Use a Hardware Security Module to store private keys and do signing

bestbeforetoday (Fri, 31 Jul 2020 14:57:05 GMT):
It should be possible to provide your own signing implementation in both the Node and Java SDKs, either by using the lower level APIs (which can be quite a bit of work), or perhaps by slotting in your own cryptosuite implementation with your custom signing implementation (which is how signing is delegated to an HSM). This is more fiddly than I'd like and doesn't really lend itself so well to some scenarios. It's something I'd like to improve on in the future

LFIDSrikanth2020 (Fri, 31 Jul 2020 20:00:32 GMT):
Has joined the channel.

LFIDSrikanth2020 (Fri, 31 Jul 2020 20:00:32 GMT):
Checking out v1.4.8 of hyperledger/fabric-samples HEAD is now at 1343ccb FAB-17419 Fix off_chain_data sample error (#146)

LFIDSrikanth2020 (Fri, 31 Jul 2020 20:00:40 GMT):
please help on this error

DanyQ (Sat, 01 Aug 2020 04:59:19 GMT):
Has joined the channel.

DanyQ (Sat, 01 Aug 2020 04:59:19 GMT):
Hi! Can you tell me what programming languages are supported by Hyperledger Fabric?

AbhijeetBhowmik (Sat, 01 Aug 2020 05:34:11 GMT):
I suppose Go, JS, Java

AbhijeetBhowmik (Sat, 01 Aug 2020 05:34:11 GMT):
I suppose Go, NodeJS, Java

AbhijeetBhowmik (Sat, 01 Aug 2020 05:34:11 GMT):
I suppose Go, NodeJS, Java for chaincode development.

UnalAsil (Sat, 01 Aug 2020 16:05:31 GMT):
Has joined the channel.

UnalAsil (Sat, 01 Aug 2020 16:05:31 GMT):
Hi, I have a problem. Here is my output : Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "go: inconsistent vendoring in /chaincode/input/src: github.com/golang/protobuf@v1.3.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/fabric-chaincode-go@v0.0.0-20200424173110-d7076418f212: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/fabric-contract-api-go@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/hyperledger/fabric-protos-go@v0.0.0-20200424173316-dd554ba3746e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt github.com/stretchr/testify@v1.5.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory I cant find solution. What should i do ? Thank u for helping.

yehia67 (Sat, 01 Aug 2020 20:28:40 GMT):
Has joined the channel.

yehia67 (Sat, 01 Aug 2020 20:28:41 GMT):
Hello everyone, I am from a public Blockchain (Ethereum) background. I want to create Blockchain accounts for my users. In Etherum, I need to generate public/private key for users to make a blockchain account. For Hyperledger Fabric what is the best way to do so? (I found two options) option 1: Is using shim API 'clientIdentity' (https://hyperledger.github.io/fabric-chaincode-node/release-2.2/api/fabric-shim.ClientIdentity.html) is it a good option? Or it wouldn't matter because I am deploying my network on a single instance. option 2: Is to save users data as assets make their email as ID and encrypt their passwords and save them. Is that could be a better solution?

Adhavpavan (Sun, 02 Aug 2020 17:53:02 GMT):
I am invoking qscc from SDK(Fabric-Network) to get transaction details by transaction id. Network: Fabric : v2.0 Client SDK: Fabric-Network When I invoke qscc with function name GetTransactionByID with some tx id, I am getting buffer in proto encoded form like below. (I have added some of the part of data below) �" �" � � ���� ���� " mychannel*@eb00ec055803ca538fc32637e622caa62687c30e07c84d7002ad4e73a13e71b1: fabcarB M��5 ѪsS,z/�Pi" �_�I�\��Q �=)v � � Org1MSP � -----BEGIN CERTIFICATE----- MIICjzCCAjWgAwIBAgIUT40thzxsZH5YlVaIX8EJuSTfmDAwCgYIKoZIzj0EAwIw Is there anything in SDK(fabric-Network) to convert this encoded buffer to JSON? If not, Is there any other way to convert this proto encoded buffer to JSON format? Thank you so much in advance.

sebastiantf (Sun, 02 Aug 2020 21:38:10 GMT):
hey guys

sebastiantf (Sun, 02 Aug 2020 21:38:44 GMT):
when i run the query.js script, I get: `2020-08-02T21:27:27.297Z - error: [DiscoveryService]: send[supplychain] - Channel:supplychain received discovery error:access denied Failed to evaluate transaction: Error: DiscoveryService: supplychain error: access denied`

sebastiantf (Sun, 02 Aug 2020 21:38:44 GMT):
when i run the query.js script, I get: `2020-08-02T21:27:27.297Z - error: [DiscoveryService]: send[supplychain] - Channel:supplychain received discovery error:access denied Failed to evaluate transaction: Error: DiscoveryService: supplychain error: access denied`

sebastiantf (Sun, 02 Aug 2020 21:40:01 GMT):
looking at the logs of the CA container, I see `The specified CA certificate file /etc/hyperledger/fabric-ca-server/ca-cert.pem does not exist}`

sebastiantf (Sun, 02 Aug 2020 21:40:35 GMT):
what would be the pblm?

sebastiantf (Sun, 02 Aug 2020 21:43:07 GMT):
I was using cryptogen to generate the certificates for the peer orgs

sebastiantf (Sun, 02 Aug 2020 23:24:08 GMT):
Failed to submit transaction: Error: DiscoveryService: fabcar error: failed constructing descriptor for chaincodes:

sebastiantf (Sun, 02 Aug 2020 23:24:16 GMT):
What could be causing this?

sebastiantf (Mon, 03 Aug 2020 04:21:07 GMT):
Hey guys

sebastiantf (Mon, 03 Aug 2020 04:22:02 GMT):
If I define multiple smart contracts in the same chaincode, how can i use the peer chaincode invoke command to specify which contract i want to invoke?

sebastiantf (Mon, 03 Aug 2020 04:22:18 GMT):
Can someone help please?

JakeAJ (Mon, 03 Aug 2020 10:12:45 GMT):
Do u have an enrolled user identity when performing the query in the js code? Seems like a basic auth issue here

JakeAJ (Mon, 03 Aug 2020 10:13:25 GMT):
peer chaincode can specify names for each chaincode, each chaincode must have an unique name for it to be identifiable

JakeAJ (Mon, 03 Aug 2020 10:14:46 GMT):
You would probably have to do it with the trusted certificate authority, there are multiple ways of enrolling users, You could build and API on top of the fabric CA implementation to simplify the user enrollment

JakeAJ (Mon, 03 Aug 2020 10:17:20 GMT):
Look up the unit tests at the java sdk repo for hyperledger fabric, there you'll see examples on how to utilize contract listeners for client applicaitons

JakeAJ (Mon, 03 Aug 2020 10:33:26 GMT):
I guess this is handled by the new chaincode lifecycle through signatures of the source. Say company A wants to initiate a new business process. Upon signing the chaincode I guess there will be a hash or some OTC that can source as a way of verifying the source code. Not sure about the compiling parts of it though.

kokolaki (Mon, 03 Aug 2020 11:41:10 GMT):
Hello, I 'd line to ask how can I deploy a Hyperledger fabric network on multiple hosts using docker swarm? I tried this tutorial https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f but I don't get the correct results when I send a query in peer1 and I get confused about the procedure. Could anyone explain me how can I do it? Thanks in advance.

kokolaki (Mon, 03 Aug 2020 11:41:10 GMT):
Hello, I 'd like to ask how can I deploy a Hyperledger fabric network on multiple hosts using docker swarm? I tried this tutorial https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f but I don't get the correct results when I send a query in peer1 and I get confused about the procedure. Could anyone explain me how can I do it? Thanks in advance.

sebastiantf (Mon, 03 Aug 2020 12:08:45 GMT):
Yeah it was actually because the CA servers were not finding the correct pem files

sebastiantf (Mon, 03 Aug 2020 12:09:27 GMT):
the docker compose was actually mounting the wrong volumes

sebastiantf (Mon, 03 Aug 2020 12:09:52 GMT):
It seems we could use the `AssetContract:MyTransaction` format to specify the chaincode and transaction

sebastiantf (Mon, 03 Aug 2020 12:12:22 GMT):
Maybe these could help:

sebastiantf (Mon, 03 Aug 2020 12:12:24 GMT):
https://medium.com/@kctheservant/another-multi-node-setup-of-a-fabric-network-8d88e9b8d7c5

sebastiantf (Mon, 03 Aug 2020 12:12:31 GMT):
https://medium.com/@kctheservant/multi-host-setup-with-raft-based-ordering-service-29730788b171

rrishmawi (Mon, 03 Aug 2020 12:15:53 GMT):
Hi experts, we need to renew the fabric ca root ca, is this possible and how exactly, i cannot find this information anywhere.

kokolaki (Mon, 03 Aug 2020 12:16:02 GMT):
Thank you, I wiil deploy it in raspberry pi arm

braduf (Mon, 03 Aug 2020 19:25:13 GMT):
Hi @rrishmawi , yes it is possible, you should update the channel configurations of the channels you take part in (system and application channels). You can find out how on this link: https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html

cliveb (Mon, 03 Aug 2020 20:55:30 GMT):
Has left the channel.

yehia67 (Mon, 03 Aug 2020 21:12:11 GMT):
I decide to use CA implementation inside my API service/ directory ``` // addmember in service.js // Create a new gateway for connecting to our peer node. const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: appAdmin, discovery: gatewayDiscovery }); // Get the CA client object from the gateway for interacting with the CA. const ca = gateway.getClient().getCertificateAuthority(); const adminIdentity = gateway.getCurrentIdentity(); // Register the user, enroll the user, and import the new identity into the wallet. const secret = await ca.register({ affiliation: 'org1.department1', enrollmentID: cardId, role: 'client' }, adminIdentity); const enrollment = await ca.enroll({ enrollmentID: cardId, enrollmentSecret: secret }); const userIdentity = X509WalletMixin.createIdentity(orgMSPID, enrollment.certificate, enrollment.key.toBytes()); wallet.import(cardId, userIdentity); console.log('Successfully registered and enrolled admin user ' + cardId + ' and imported it into the wallet'); // Disconnect from the gateway. await gateway.disconnect(); ```

yehia67 (Mon, 03 Aug 2020 21:12:44 GMT):
@JakeAJ what do you think? Thanks :D

BrettLogan (Tue, 04 Aug 2020 00:20:02 GMT):
^^^With WASM coming soon

BrettLogan (Tue, 04 Aug 2020 00:20:02 GMT):
^^^With WASM (written in Rust) coming soon

arjones (Tue, 04 Aug 2020 00:51:17 GMT):
Hi everyone. I made a fabric network similar to the test-network provided in fabric-samples. When I bring up the docker containers with 'docker-compose up -d' all the containers show that they are coming up, but a 'docker ps' shows only the peers as up. Do the CA containers (I'm using cryptogen) need to stay up? What could be causing them, as well as the orderer container, to not stay up? Thanks in advance for your help.

AbhijeetBhowmik (Tue, 04 Aug 2020 03:54:20 GMT):
CA doesn't necessarily need to stay up unless you enroll / register new identities. Certificates / MSPs are standalone proof of identity when configured properly as long as certificates are from trusted CA's and not expired. Orderer might have crashed due to some configuration settings like genesis file not found or network errors like listening port unavailable. You can inspect orderer logs by running docker logs to see what possibly went wrong with orderer / cli

AbhijeetBhowmik (Tue, 04 Aug 2020 03:54:20 GMT):
CA doesn't necessarily need to stay up unless you enroll / register new identities. Certificates / MSPs are standalone proof of identity when configured properly as long as certificates are from trusted CA's and not expired. Orderer might have crashed due to some configuration settings like genesis file not found or network errors like listening port unavailable. You can inspect orderer logs by running `docker logs ` to see what possibly went wrong with orderer / cli

rokoko (Tue, 04 Aug 2020 05:18:40 GMT):
Has joined the channel.

rokoko (Tue, 04 Aug 2020 05:19:08 GMT):
Hello People, using the test-network of fabric-samples v2.1.1, trying to fetch records from couchdb using getQueryResults(query), only getting 100 results. Is there a limit? Checked the core.yaml wherein the default limits are way more.

donnie.stewart (Tue, 04 Aug 2020 05:51:32 GMT):
Has joined the channel.

donnie.stewart (Tue, 04 Aug 2020 05:51:33 GMT):
Hello everyone, when running the fabcar.go client application in fabric-samples I get this error "Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: orderers is nil exit status 1". This prevents me from submitting transactions but evaluating transactions with the client works. Additionally, on the same go-chain code I could use the javascript invoke.js file to submit transactions. Wondering why I am getting this error only with the go client application provided in fabric-samples and how to solve it.

AshutoshKumar7 (Tue, 04 Aug 2020 08:47:55 GMT):
you can do a docker ps -a . It will show terminated containers also . Then you can look for errors. For ca containers to come up I think you need to start with -ca command

AshutoshKumar7 (Tue, 04 Aug 2020 08:54:08 GMT):
I am using fabric-tools based containers for installing chain-codes through helm charts. I installed jdk using apk command and then gradle build . It works through this approach. Let me know whether this is correct way to do it. I

AshutoshKumar7 (Tue, 04 Aug 2020 08:54:08 GMT):
I am using fabric-tools based containers for installing chain-codes through helm charts. I installed jdk using apk command and then gradle build . It works through this approach. Let me know whether this is correct way to do it.

ks.cho (Tue, 04 Aug 2020 11:55:24 GMT):
Has joined the channel.

ks.cho (Tue, 04 Aug 2020 11:55:24 GMT):
In fabcar examples, how can I execute 'query' and 'invoke'? I success build up a java fabcar network ( ./startFabric.sh java) but I don't know how execute 'query' and 'invoke' command java query? Is it right? In javascript fabcar network(./startFabric.sh javascript), I typed command as 'node query', 'node invoke'. It was successful

arjones (Tue, 04 Aug 2020 22:23:41 GMT):
Thanks for the info everyone. I didn't know if CAs should stay up or not, so I guess that is not an issue. There was a simple typo in my docker-compose.yaml file that caused the orderer to not mount all the proper volumes.

banhmi.eth (Wed, 05 Aug 2020 03:13:49 GMT):
Hello there

banhmi.eth (Wed, 05 Aug 2020 03:14:01 GMT):
I am trying to use fabric sdk golang to send Transaction

banhmi.eth (Wed, 05 Aug 2020 03:14:19 GMT):
But i got this error

banhmi.eth (Wed, 05 Aug 2020 03:14:21 GMT):
CreateAndSendTransaction failed: SendTransaction failed: orderers is nil

banhmi.eth (Wed, 05 Aug 2020 03:14:27 GMT):
while peer cmd worked

banhmi.eth (Wed, 05 Aug 2020 03:14:34 GMT):
I m using fabric v 2.2

banhmi.eth (Wed, 05 Aug 2020 03:21:55 GMT):
Hello, did you solve this issues?

Sushilpaneru (Wed, 05 Aug 2020 03:40:41 GMT):
Hi everyone, I have question regarding concurrency of transactions. If every transaction deals with only one unique key (* one key in readWrite set*), are locks (shared read locks and exclusive write lock) required to ensure serializibility ?

Sushilpaneru (Wed, 05 Aug 2020 03:40:41 GMT):
Hi everyone, I have a question regarding concurrency of transactions. If every transaction deals with only one unique key (* one key in readWrite set*), are locks (shared read locks and exclusive write lock) required to ensure serializibility ?

Sushilpaneru (Wed, 05 Aug 2020 03:40:41 GMT):
Hi everyone, I have a question regarding concurrency of transactions. If every transaction deals with only one unique key (* one key in readWrite set*), are locks (shared read locks and exclusive write lock) required to ensure serializability ?

Sushilpaneru (Wed, 05 Aug 2020 03:41:43 GMT):
I was wandering if I could remove these locks to increase throughput of the system.

Sushilpaneru (Wed, 05 Aug 2020 03:41:43 GMT):
I was wondering if I could remove these locks to increase throughput of the system.

chintanr11 (Wed, 05 Aug 2020 06:57:35 GMT):
Hi Community. I recently learnt that the nexus.hyperledger.org URL is no longer valid. However, in v1.4.4 tree of the HLF, we still make use of it at least in Makefile to download (curl) the 'chaintool' files. I would want to know the new URL to pull that files as I am facing an issue while building the source code as described here: https://stackoverflow.com/questions/63258831/error-in-building-the-hyperledger-fabric-v1-4-4-source-code

rrishmawi (Wed, 05 Aug 2020 11:24:39 GMT):
Thank you for your reply @braduf, but i do not need to add a new organization, i want to update the certificate of the CA that issue identities

FahimDev (Wed, 05 Aug 2020 15:43:26 GMT):
Has joined the channel.

FahimDev (Wed, 05 Aug 2020 15:43:27 GMT):
Hello , I am totally a new learner . I have some questions related with development. When I am following the Documentation of Fabric I am getting the file "Fabric-Sample" and there are some example applications. such as , Fab-Car SDK , Test-Network , First Network etc. I have gone through all of them . My question is => is it the place where I can create my custom private blockchain network? OR , for custom development there is another process ? in the "First Network" I have customized the 'yaml' files with my custom domain name. But when I up the network I think I am having a clash with the docker Images. Someone please help me to find a proper path for Custom network development with this framework .

Sushilpaneru (Wed, 05 Aug 2020 16:36:35 GMT):
*Posting second time* Hi everyone, I have a question regarding concurrency of transactions. I have a chaincode that access/creates unique key for every transaction. so, if every transaction deals with only one unique key ( *one key in readWrite set *), are locks used by transaction manager to access statedb(shared read locks and exclusive write lock) required to ensure serializability of the transactions? I was wondering if I removed these locks from the source code and have a custom build, would the throughput of my system increase without affecting the correctness? PS: I'm only talking about my specific scenario where a transaction will have only one key in the readset.

rbole (Thu, 06 Aug 2020 05:49:05 GMT):
Hi everyone I‘m looking for someone who has passed or tried the Certified Hyperledger Fabric Developer Exam for knowledge sharing.

AbhijeetBhowmik (Thu, 06 Aug 2020 05:55:19 GMT):
It would be great if someone can share his experience and helpful preparatory tips and resources for CHFD and CHFA. @rbole Please let me know too if you find someone who is willing to help. I am also looking forward to appear for the certification exam.

AbhijeetBhowmik (Thu, 06 Aug 2020 05:55:19 GMT):
It would be great if someone can share his/her experience and helpful preparatory tips and resources for CHFD and CHFA. @rbole Please let me know too if you find someone who is willing to help. I am also looking forward to appear for the certification exam.

AshutoshKumar7 (Thu, 06 Aug 2020 07:38:58 GMT):
I am also interested .

mbwhite (Thu, 06 Aug 2020 07:42:21 GMT):
Hello; My advice would to gain practical experience with running things like the Test Network, Expanding the Commercial Paper scenario etc. Both client, fabric, and chaincode side.

mbwhite (Thu, 06 Aug 2020 07:43:02 GMT):
Disclaimer.. I contributed to the development of the exam.. so can't say more :-)

rbole (Thu, 06 Aug 2020 07:44:16 GMT):
Thanks; do you know many points to you need to pass the exam?

mbwhite (Thu, 06 Aug 2020 07:45:13 GMT):
I don't, no.

rbole (Thu, 06 Aug 2020 07:47:18 GMT):
Ok, but thanks for the hint, I will study the commercial paper scenario a bit more

mbwhite (Thu, 06 Aug 2020 07:48:56 GMT):
The fabric-tools container itself was being deprecated I think; reason is that from a Fabric perspective it doesn't add a lot; and it's a good practice to develop a Docker container for you own specific use cases. For example https://github.com/hyperledgendary/fabric-devenv is a community dev env that would include the peer commands for example

AbhijeetBhowmik (Thu, 06 Aug 2020 07:50:04 GMT):
@mbwhite Sir, are there possibilities to find mock tests as it would greatly help to cope up with the preparation work. I am unable to gain confidence as I constantly feel intimidated thinking what I know is just elementary. It would have been of more help if exam syllabus was more elaborated so that an aspirant can work on finer details.

rbole (Thu, 06 Aug 2020 08:06:21 GMT):
The reason why i haven‘t looked at this example so closely is, that the contract is not written in go. There are only node.js and java versions prepared ?

mbwhite (Thu, 06 Aug 2020 08:09:09 GMT):
Now there's a challenge... port the example to Go :-) Honestly that would be a great learning experience.

rbole (Thu, 06 Aug 2020 08:13:02 GMT):
Ok I will look into that and come back to you

mbwhite (Thu, 06 Aug 2020 08:14:07 GMT):
@AbhijeetBhowmik I would suggest anybody learning something like Fabric.. you need to practice the real thing. Small steps, no harm in asking questions etc.

mbwhite (Thu, 06 Aug 2020 08:17:53 GMT):
I would certainly not recommend doing this; I'm not an expert in the details of the peer but this could be dangerous. Though your are of course at liberty to try :-)

AbhijeetBhowmik (Thu, 06 Aug 2020 08:22:00 GMT):
@mbwhite Sir, I have been working on creating my own networks, peer, orderer, CA, from scratch, creating chaincode in Typescript and running them on peers. Lately I have picked up learning Kubernetes to manage containers of network peer and CA. I hope I tread the right path and achieve CHFA certificate by the end of the year. Thanks a lot for you help and suggestions.

mbwhite (Thu, 06 Aug 2020 08:41:25 GMT):
Excellent.. suspect you know a significant amount.

bassemmkh (Thu, 06 Aug 2020 09:37:21 GMT):
Has joined the channel.

bassemmkh (Thu, 06 Aug 2020 09:37:22 GMT):
Hi everyone so i'm upgrading my hyperledger fabric network to version 2.2 from 1.4 and now i got a problem upgrading my peer0 : after i did peer database upgrade i got this error when runnin the new peer container Error creating GRPC server: listen tcp: lookup peer0.orgtunisia.tledger.tech on 192.168.100.1:53: no such host Can anyone help me please ?

ongchinkai (Thu, 06 Aug 2020 10:39:09 GMT):
Quick question: can a single peer node belong in multiple organizations?

SpecialAgentCooper (Thu, 06 Aug 2020 12:21:34 GMT):
Can fabric images be operated inside a network using decrypt-to-decrypt to inspect all HTTPS traffic going into and out of the network? I ask because I'm trying (to no avail) to set up a fabric developer environment at my workplace by extending fabric docker images to trust our root certificates. This is an example of what I'm trying to do with the Dockerfiles: ``` FROM hyperledger/fabric-peer:2.2.0 RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* COPY --from={path to certs} / /usr/share/ca-certificates/mycerts WORKDIR /usr/share/ca-certificates RUN ls mycerts/* >> /etc/ca-certificates.conf && update-ca-certificates WORKDIR /home ``` Can anyone spot any issues with this approach? I can bring up a network (using minfab) but when I try to join a channel I get ``` Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied ```

SpecialAgentCooper (Thu, 06 Aug 2020 13:29:14 GMT):

Clipboard - August 6, 2020 2:29 PM

SpecialAgentCooper (Thu, 06 Aug 2020 13:30:11 GMT):
the orderer goes into a look where it spits out this error message repeatedly before exiting just after: ``` ```

SpecialAgentCooper (Thu, 06 Aug 2020 13:30:11 GMT):
the orderer goes into a look where it spits out this error message repeatedly before exiting just after: ``` 2020-08-06 13:22:21.960 UTC [orderer.common.cluster] ReplicateChains -> PANI 8bf Failed pulling system channel: failed obtaining the latest block for channel systemchannel panic: Failed pulling system channel: failed obtaining the latest block for channel systemchannel ```

SpecialAgentCooper (Thu, 06 Aug 2020 13:30:11 GMT):
the orderer goes into a loop where it spits out this error message repeatedly before exiting just after: ``` 2020-08-06 13:22:21.960 UTC [orderer.common.cluster] ReplicateChains -> PANI 8bf Failed pulling system channel: failed obtaining the latest block for channel systemchannel panic: Failed pulling system channel: failed obtaining the latest block for channel systemchannel ```

rbole (Thu, 06 Aug 2020 13:57:11 GMT):
Ok, I will do it, I will let you know when I am ready with my go chaincode.

AshutoshKumar7 (Thu, 06 Aug 2020 14:52:54 GMT):
are there visualisation tools that work with latest version of fabric . When network is deployed on Kubernetes (AKS or EKS)?

ItaloCarrasco (Thu, 06 Aug 2020 17:34:45 GMT):
does anyone know of guidelines to deploy fabric using kubernetes?

nasermirzaei89 (Thu, 06 Aug 2020 18:49:30 GMT):
Has joined the channel.

nasermirzaei89 (Thu, 06 Aug 2020 18:54:06 GMT):
Hi Anyone, I'm here to ask you some questions about interacting with a fabric network via web applications. First, all I found when I have searched about web applications was making a web server that is a client of fabric network and use that as a rest api. In this case how should I handle users private key to make requests? should I store it at server side?!!! or is there any BETTER solution?

cbhushann (Thu, 06 Aug 2020 20:21:40 GMT):
Has joined the channel.

AbhijeetBhowmik (Fri, 07 Aug 2020 03:24:29 GMT):
You have to securely store it on server side. A far better solution would be to use HSM, but that's an expensive deal.

AbhijeetBhowmik (Fri, 07 Aug 2020 03:24:29 GMT):
You have to securely store it on server side. The best solution would be to use HSM, but that's an expensive deal.

AbhijeetBhowmik (Fri, 07 Aug 2020 03:30:50 GMT):
I have ran into a confusion due to ambiguity in naming. While making requests to fabric-ca via fabric-ca-client, what should exactly be FABRIC_CA_CLIENT_TLS_CERTFILES ? is it the ca-cert.pem or tls-cert.pem found at root of crypto folder of fabric-ca server? I have a strong feeling that it should be tls-cert.pem but in operations guide, they have used ca-cert.pem. I have a notion tls-cert.pem is what CA uses to make SSL handshake, while ca-cert.pem is used as public certificate of CA itself.

AbhijeetBhowmik (Fri, 07 Aug 2020 03:30:50 GMT):
I have run into a confusion due to ambiguity in naming. While making requests to fabric-ca via fabric-ca-client, what should exactly be FABRIC_CA_CLIENT_TLS_CERTFILES ? is it the ca-cert.pem or tls-cert.pem found at root of crypto folder of fabric-ca server? I have a strong feeling that it should be tls-cert.pem but in operations guide, they have used ca-cert.pem. I have a notion tls-cert.pem is what CA uses to make SSL handshake, while ca-cert.pem is used as public certificate of CA itself.

liericiyan (Fri, 07 Aug 2020 05:32:46 GMT):
chaincode install failed with status: 500 error sending: timeout expired while executing transaction

liericiyan (Fri, 07 Aug 2020 05:46:15 GMT):
chaincode install failed with status: 500 - error in simulation: failed to execute transaction c8d62f692eaa2eabc760570440cfa3ea7b8e3263cd4aadb455e0b77756c09aa5: error sending: timeout expired while executing transaction

liericiyan (Fri, 07 Aug 2020 05:46:15 GMT):
failed to execute transaction c8d62f692eaa2eabc760570440cfa3ea7b8e3263cd4aadb455e0b77756c09aa5 github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:161 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:156 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:119 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:187 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:397 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:340 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1 /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107 github.com/hyperledger/fabric/internal/peer/node.unaryGrpcLimiter.func1 /go/src/github.com/hyperledger/fabric/internal/peer/node/grpc_limiters.go:51 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1 /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1 /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1082 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1405 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:746 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1373 channel= txID=c8d62f69 2020-08-07 05:44:34.310 UTC [comm.grpc.server] 1 -> INFO 130 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.32.1:57168 grpc.code=OK grpc.call_duration=5m0.001337649s

Jackyeoh (Fri, 07 Aug 2020 08:42:06 GMT):
Hi guys, Im currently working with some chaincodes that saves data in private data collection. It all runs perfectly fine when i send in a few transactions at a time, but strangely, when i start sending more loads (20+ txns per sec) i start to run into some issues: failed to read my_collection/37b5c0c9c473381bf8f77f088608b877648626067f3fece66ced4d8bb76b3b26 with error: GET_STATE failed: transaction ID: e07c7091ba218cad9cc2f5628cff6a2a522e3315530889b3a48cbaf051dd2e44: error while retrieving collection for collection criteria common.CollectionCriteria{Channel:"mychannel", TxId:"", Collection:"my_collection", Namespace:"pdcManager", XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}: this instance should not be used after calling Done() Has anybody ran into similar errors before? Currently I have one main chaincode which is performing some logic and some other chaincodes that deals with CRUD of data. This log is thrown from the CRUD chaincode that are suppose to save the data into a pdc. Would appreciate alot if anyone could help on this!

babiskg (Fri, 07 Aug 2020 10:37:18 GMT):
hello , i want to run test network from here https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html but when i gine command ./network.sh up createChannel -s couchdb i get this

babiskg (Fri, 07 Aug 2020 10:37:18 GMT):
hello , i want to run test network from here https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html but when i give command ./network.sh up createChannel -s couchdb i get this

babiskg (Fri, 07 Aug 2020 10:37:20 GMT):
rror: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

babiskg (Fri, 07 Aug 2020 10:37:20 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

babiskg (Fri, 07 Aug 2020 10:37:46 GMT):
can anybody help?

ginspctw (Fri, 07 Aug 2020 10:53:19 GMT):
We are building a project in which we are planning to use events to trigger various different tasks. My doubt is that due to some circumstances if the client goes down and when we bring back the client will the client can retrieve the missed chaincode events ?

AshutoshKumar7 (Fri, 07 Aug 2020 12:26:54 GMT):
https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-event-checkpointer.html

ginspctw (Fri, 07 Aug 2020 12:29:06 GMT):
Thank you

DavidMacFadyen (Fri, 07 Aug 2020 13:42:50 GMT):
Has joined the channel.

DavidMacFadyen (Fri, 07 Aug 2020 13:42:58 GMT):
Has anybody ever seen smart contracts for music sales / licensing / streaming written with Fabric?

Sushilpaneru (Fri, 07 Aug 2020 18:47:07 GMT):
Hi @mbwhite, is https://jira.hyperledger.org/browse/FABCJ-175 merged in fabric v1.4.1 ? I can seem to reproduce it with 5000 transaction @ 100tps with bulky inputs like set of sha values, signatures, etc.

nadhifikbarw (Fri, 07 Aug 2020 20:09:31 GMT):
Has joined the channel.

nadhifikbarw (Fri, 07 Aug 2020 20:09:31 GMT):
Hey, I've been reading the bootstrap[.]sh file https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh It seams that it has logic to checkout to fabric-samples repo to the same tag with latest (currently 2.2.0) when no parameter is specified but i noticed fabric-samples 2.x repo dont have 2.2.0 release yet https://github.com/hyperledger/fabric-samples/tags and causing an error error: pathspec 'v2.2.0' did not match any file(s) known to git can v2.1.1 used instead?

arjones (Fri, 07 Aug 2020 20:54:16 GMT):
The cryptogen tool makes a distinction between peer organizations and orderer organizations. How can I use the cryptogen tool to generate keys/certs for my organization while making the organization have both peer and orderer nodes? I understand why it is against best practices, but it makes sense in my use case to have an organization be both an orderer and a peer.

Sushilpaneru (Fri, 07 Aug 2020 20:59:09 GMT):
*Peer log*

Sushilpaneru (Fri, 07 Aug 2020 20:59:09 GMT):
*Peer log* hyperledger.fabric.contract.ContractRuntimeException: Error during contract method execution at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:75) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:98) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$1(Handler.java:290) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: [5307f23e]Unsuccessful response received. at org.hyperledger.fabric.shim.impl.Handler.invokeChaincodeSupport(Handler.java:431) at org.hyperledger.fabric.shim.impl.Handler.getState(Handler.java:316) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getState(ChaincodeStubImpl.java:165) at org.hyperledger.fabric.shim.ChaincodeStub.getStringState(ChaincodeStub.java:590) at org.hyperledger.fabric.samples.fabcar.FabCar.InsertVote(FabCar.java:178) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) ... 4 more .. caused by ..[5307f23e]Unsuccessful response received.java.lang.RuntimeException: [5307f23e]Unsuccessful response received. at org.hyperledger.fabric.shim.impl.Handler.invokeChaincodeSupport(Handler.java:431) at org.hyperledger.fabric.shim.impl.Handler.getState(Handler.java:316) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getState(ChaincodeStubImpl.java:165) at org.hyperledger.fabric.shim.ChaincodeStub.getStringState(ChaincodeStub.java:590) at org.hyperledger.fabric.samples.fabcar.FabCar.InsertVote(FabCar.java:178) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:98) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$1(Handler.java:290) at java.lang.Thread.run(Thread.java:748)

Sushilpaneru (Fri, 07 Aug 2020 20:59:09 GMT):
*Peer log* `hyperledger.fabric.contract.ContractRuntimeException: Error during contract method execution at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:75) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:98) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$1(Handler.java:290) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: [5307f23e]Unsuccessful response received. at org.hyperledger.fabric.shim.impl.Handler.invokeChaincodeSupport(Handler.java:431) at org.hyperledger.fabric.shim.impl.Handler.getState(Handler.java:316) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getState(ChaincodeStubImpl.java:165) at org.hyperledger.fabric.shim.ChaincodeStub.getStringState(ChaincodeStub.java:590) at org.hyperledger.fabric.samples.fabcar.FabCar.InsertVote(FabCar.java:178) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) ... 4 more .. caused by ..[5307f23e]Unsuccessful response received.java.lang.RuntimeException: [5307f23e]Unsuccessful response received. at org.hyperledger.fabric.shim.impl.Handler.invokeChaincodeSupport(Handler.java:431) at org.hyperledger.fabric.shim.impl.Handler.getState(Handler.java:316) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getState(ChaincodeStubImpl.java:165) at org.hyperledger.fabric.shim.ChaincodeStub.getStringState(ChaincodeStub.java:590) at org.hyperledger.fabric.samples.fabcar.FabCar.InsertVote(FabCar.java:178) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:98) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$1(Handler.java:290) at java.lang.Thread.run(Thread.java:748)`

Sushilpaneru (Fri, 07 Aug 2020 21:05:29 GMT):
*Chaincode log* Error during contract method executionorg.hyperledger.fabric.contract.ContractRuntimeException: Error during contract method execution at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:75) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:98) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$1(Handler.java:290) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: [5307f23e]Unsuccessful response received. at org.hyperledger.fabric.shim.impl.Handler.invokeChaincodeSupport(Handler.java:431) at org.hyperledger.fabric.shim.impl.Handler.getState(Handler.java:316) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getState(ChaincodeStubImpl.java:165) at org.hyperledger.fabric.shim.ChaincodeStub.getStringState(ChaincodeStub.java:590) at org.hyperledger.fabric.samples.fabcar.FabCar.InsertVote(FabCar.java:178) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) ... 4 more

yacovm (Fri, 07 Aug 2020 22:41:30 GMT):
@arjones just take the CA certificate of the orderers and put it inside the same folder of the CA certificate of the peers

yacovm (Fri, 07 Aug 2020 22:41:43 GMT):
so, in the MSP folder you have ca certificate folder

yacovm (Fri, 07 Aug 2020 22:41:48 GMT):
put there both certificates

yacovm (Fri, 07 Aug 2020 22:42:01 GMT):
then Fabric would recognize both orderers and peers with the same MSP ID

yacovm (Fri, 07 Aug 2020 22:42:06 GMT):
but they will have different root CAs

arjones (Fri, 07 Aug 2020 22:45:56 GMT):
Thanks!

arjones (Sat, 08 Aug 2020 00:41:38 GMT):
I recommend going through the scripts to see what they are actually doing. Then you can create your own yaml files and follow the a similar process as the examples to create your own network.

jkalwar (Sat, 08 Aug 2020 11:09:03 GMT):
Hi All , In the documentation for the transaction flow of hyperledger fabric , it is mentioned that "The ordering service does not need to inspect the entire content of a transaction in order to perform its operation, it simply receives transactions from all channels in the network, orders them chronologically by channel, and creates blocks of transactions per channel." , I have a couple of questions here 1. What does "chronological ordering mean" ? , Does it mean that the transactions for a channel are ordered depending on the time they are received at the OSN ?

babiskg (Sat, 08 Aug 2020 16:05:55 GMT):
Hi All , when i try to run first-network and when i give command peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/exam i receive *error endorsement failure during invoke* . what can i do ?

babiskg (Sat, 08 Aug 2020 16:05:55 GMT):
Hi All , when i try to run test-network and when i give command peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/exam i receive *error endorsement failure during invoke* . what can i do ?

babiskg (Sat, 08 Aug 2020 16:05:55 GMT):
Hi All , when i try to run test-network and when i give command peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n marblesp -c '{"Args":["InitMarble"]}' --transient "{\"marble\":\"$MARBLE\"}" i receive *error endorsement failure during invoke* . what can i do ?

KumarShantanu (Sun, 09 Aug 2020 09:55:16 GMT):
Has joined the channel.

KumarShantanu (Sun, 09 Aug 2020 09:55:17 GMT):
Has anyone tried hashicorp vault as a PKI engine for hyperledger fabric installation? Is there any documentation available around it ? #fabric-questions

aqid (Sun, 09 Aug 2020 11:17:17 GMT):
Hi guys, while trying to benchmark my test network, I encounter a concurrency limit `too many requests for /protos.Endorser, exceeding concurrency limit (2500)` - I then tried to change the concurrency configuration in `core.yaml` to 10000, and rebuild the test network but the same error persists. Anyone can give me a pointer about why this happens and how do I change this concurrency limit then? Thanks

letmein (Sun, 09 Aug 2020 11:25:25 GMT):
Has joined the channel.

letmein (Sun, 09 Aug 2020 11:25:25 GMT):
hi

letmein (Sun, 09 Aug 2020 11:25:54 GMT):
got this error while deploying chaincode uild github.com/hyperledger/fabric-samples/asset-transfer-basic/chaincode-go: cannot load encoding/json: malformed module path "encoding/json": missing dot in first path element: exit status 1 !!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!!

letmein (Sun, 09 Aug 2020 11:26:10 GMT):
followed this- https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

letmein (Sun, 09 Aug 2020 11:26:22 GMT):
can anyone please please help? thanks

letmein (Sun, 09 Aug 2020 11:29:03 GMT):
the command was- ./network.sh deployCC

sownak (Sun, 09 Aug 2020 16:39:24 GMT):
Has joined the channel.

sownak (Sun, 09 Aug 2020 16:40:59 GMT):
Hey, I think Vault is a secret store only. We have used Hashicorp Vault as the secret store for Fabric network in Blockchain Automation Framework.

sownak (Sun, 09 Aug 2020 16:44:20 GMT):
We

sownak (Sun, 09 Aug 2020 16:46:02 GMT):
In Blockchain Automation Framework, we have used Hashicorp Vault to store the user certs and then the rest server uses it. For clients you can then use a JWT maybe

sownak (Sun, 09 Aug 2020 16:49:59 GMT):
I don't think there is a Fabric official guideline. But you can check hyperledger-labs Blockchain Automation Framework which automatically deploys fabric on kubernetes.

KritheshBhandary (Sun, 09 Aug 2020 19:49:58 GMT):
Has joined the channel.

KritheshBhandary (Sun, 09 Aug 2020 19:49:59 GMT):
Hi guys, KritheshBhandary KritheshBhandary 1:18 AM I wanted to know how to setup hyperledger fabric network . Eg : in supplychain i will manufacturer, wholesaler and retailer 3 diiferent types . and then i will have multiple manufacturer like manufacturer1, manufacturer2,................,manufacturerN, Even wholesaler and retailer will have multiple users. , when i transact between manufacturer1 and wholesaler1 that particular transaction shouldn't shown to any other participant in the network, so can anyone help me out to understand this. Earlier i used to do in hyperledger composer . and i dont know how much organisation is required over here. please help me

mvkillu (Mon, 10 Aug 2020 02:53:05 GMT):
In Fabric 2.x, how do I install fabcar using the test-network. I ran the following commands ``` ./network.sh down ./network.sh up createChannel ./network.sh deployCC -ccn fabcar -ccp ../chaincode/fabcar -ccl javascript -cci initLedger ``` I am getting error: ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 06d079ab82c1ebdc99d4469e21d64fec2640d2ee9cf5714f1cc76d5549dd6d0e: could not launch chaincode fabcar_1.0:b7b3d38edf60deff04c6e0ee23cb12437f2067b54717614cfb879e73d46626b1: chaincode registration failed: container exited with 254" ```

HienDoan (Mon, 10 Aug 2020 03:08:02 GMT):
Has joined the channel.

BrettLogan (Mon, 10 Aug 2020 03:30:38 GMT):
Which tag do you have checked out

ss605 (Mon, 10 Aug 2020 08:24:09 GMT):
Has joined the channel.

ss605 (Mon, 10 Aug 2020 08:24:10 GMT):
Hi I am facing the following error: Error: endorsement failure during query. response: status:500 message:"make sure the chaincode fabcar has been successfully defined on channel mychannel and try again: chaincode fabcar not found" . Kindly please guide me how to resolve it.

masarliev (Mon, 10 Aug 2020 11:39:36 GMT):
Has joined the channel.

masarliev (Mon, 10 Aug 2020 11:39:37 GMT):
expired

masarliev (Mon, 10 Aug 2020 11:43:25 GMT):
Hi all, can i get some help here about HLF and composer

masarliev (Mon, 10 Aug 2020 11:44:48 GMT):
I have old installation of HLF with composer-rest-server. And these days stopped working with `Error: 2 UNKNOWN: identity expired`

masarliev (Mon, 10 Aug 2020 11:47:12 GMT):
I tried to import card again and now I get `x509: certificate signed by unknown authority`

AbhishekAadi (Mon, 10 Aug 2020 12:45:32 GMT):
Hello Guys, I'm getting an error in fabric: "tls handshake failed with error tls: no cypher suit supported by both client and server in hyperledger fabric" Can anyone help me with that? Thanks

AbhishekAadi (Mon, 10 Aug 2020 13:03:25 GMT):
*remote access

bassemmkh (Mon, 10 Aug 2020 13:37:25 GMT):
hey guys, is hyperledger explorer supported in fabric 2.2 ? will it work if i install it ?

jtonline (Mon, 10 Aug 2020 14:02:42 GMT):
Has joined the channel.

PJHaga (Mon, 10 Aug 2020 14:23:21 GMT):
Hi all, we are trying to add a second orderer to a running raft cluster (currently consisting of 1 orderer) we are following the steps as mentioned in the answer on https://stackoverflow.com/questions/57571629/how-to-add-a-new-orderer-in-a-running-hyperledger-fabric-network-using-raft. We are stuck at step 16 because the new orderer logs the following: `I do not belong to channel testchainid or am forbidden pulling it (not in the channel), skipping chain retrieval` Would any of you have an idea why we are getting this error, or more in general if there is an 'official' hyperledger fabric guide on how to add orderers to a running raft cluster?

robert.beerta (Mon, 10 Aug 2020 14:40:04 GMT):
Has joined the channel.

AshutoshKumar7 (Mon, 10 Aug 2020 16:50:46 GMT):
it works

AshutoshKumar7 (Mon, 10 Aug 2020 16:56:20 GMT):
you should be able to do it using private data .

AshutoshKumar7 (Mon, 10 Aug 2020 16:56:21 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/private-data/private-data.html

donnie.stewart (Mon, 10 Aug 2020 22:44:15 GMT):
In fabric-samples while running fabcar.go (the go application client) I get an error "Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: orderers is nil exit status 1" when trying to submit transactions. Tried adding orderers to the connection-org1.yaml file, and wondering if anyone else encountered this issue and found a solution.

mvkillu (Mon, 10 Aug 2020 23:04:24 GMT):
I am on the master branch

mvkillu (Mon, 10 Aug 2020 23:22:55 GMT):
nvm i got it. I was giving the incorrect chaincode folder.

mvkillu (Mon, 10 Aug 2020 23:51:00 GMT):
The test-network tutorial on HLF docs say that fabcar is the default contract that is installed. But it seems that is not the case with the master branch, right?

AbhijeetBhowmik (Tue, 11 Aug 2020 03:12:03 GMT):
Why is it required to give channelID while creating genesis block for configtxgen v2.2.0 ?

zhydev (Tue, 11 Aug 2020 03:37:44 GMT):
Has joined the channel.

zhydev (Tue, 11 Aug 2020 03:37:44 GMT):
Hello. how to instantiate nodejs chaincode offline v1.4.7?

zhydev (Tue, 11 Aug 2020 03:43:48 GMT):
on a local network

mvkillu (Tue, 11 Aug 2020 03:44:40 GMT):
When a peer is down for some time and was brought back up, does it automatically sync with the network? Or does the admin have to do anything manually?

PJHaga (Tue, 11 Aug 2020 07:07:51 GMT):
I believe it will be the name for the system channel which the orders use for configuration

RobinKlemens (Tue, 11 Aug 2020 07:41:04 GMT):
Hi folks 🙂 Does anybody know if the release of `Nodejs chaincode gRPC server` and `Java chaincode gRPC server` is already scheduled? Tasks in Jira: - Nodejs chaincode gRPC server: https://jira.hyperledger.org/browse/FABCN-406 - Java chaincode gRPC server: https://jira.hyperledger.org/browse/FABCJ-214 I'd appreciate any update on the current state. Thanks /Robin

dachrillz (Tue, 11 Aug 2020 09:17:23 GMT):
Hello all! I noticed that when I initiate a chaincode contract the 'init invocation' adds an item to the ledger. Namely,

dachrillz (Tue, 11 Aug 2020 09:17:23 GMT):
Hello all! I noticed that when I initiate a chaincode contract the 'init invocation' adds an item to the ledger. Namely, ``` [ { "Key": "\u0000􏿿initialized", "Record": 1 } ] ``` Anyone has any idea what this is? Thanks in advance

AbdullahJoyia (Tue, 11 Aug 2020 09:45:53 GMT):

nodemon.png

AbdullahJoyia (Tue, 11 Aug 2020 09:46:41 GMT):

nodemon.png

bassemmkh (Tue, 11 Aug 2020 12:15:49 GMT):
thank you i'll try

Tanguy_Racinet (Tue, 11 Aug 2020 15:25:15 GMT):
Has joined the channel.

arjones (Tue, 11 Aug 2020 20:21:30 GMT):
Hello, I'm trying to create a single organization with both orderer and peer nodes (at least one of each). I am using the cryptogen tool. Following the advice of someone here, I copied the orderer CA cert into the peers msp folder so that they can use the same mspid while having different root CAs. This seems to work, but I still have two distinct organizations defined in the configtx.yaml file. Does anyone know how I can achieve my desired configuration (single organization defined in configtx.yaml with both peer and orderer nodes). Thanks.

BrettLogan (Tue, 11 Aug 2020 20:31:20 GMT):
It is part of the network genesis, when you query the ledger, there is logic embedded to ignore this entry and reindex so it's as if it does not exist from a user standpoint

BrettLogan (Tue, 11 Aug 2020 20:32:33 GMT):
It will automatically re-sync

BrettLogan (Tue, 11 Aug 2020 20:34:12 GMT):
Correct, there is a major refactoring happening in samples right now. Fabcar is being removed and replaced with new `asset` chaincodes. These chaincodes cover various scenarios and provide real world applications for chaincode

BrettLogan (Tue, 11 Aug 2020 20:34:38 GMT):
The NodeJS implementation is done and has been added to the chaincode as a server doc in Fabric

BrettLogan (Tue, 11 Aug 2020 20:35:07 GMT):
You havent install log4js, `npm install --save log4js`

BrettLogan (Tue, 11 Aug 2020 20:35:20 GMT):
What application is this

braduf (Tue, 11 Aug 2020 20:48:59 GMT):
it is the same process. Obtain the latest configuration block, create a new configuration block with the new certificate, calculate the diference (compute_update), sign and send to the network

braduf (Tue, 11 Aug 2020 20:48:59 GMT):
it is the same process: Obtain the latest configuration block, create a new configuration block with the new certificate, calculate the diference (compute_update), sign and send to the network

arjones (Tue, 11 Aug 2020 20:58:14 GMT):
Hello, I'm trying to create a single organization with both orderer and peer nodes (at least one of each). I am using the cryptogen tool. Following the advice of someone here, I copied the orderer CA cert into the peers msp folder so that they can use the same mspid while having different root CAs. Unfortunately this causes endorsement errors when trying to create channels. "0 sub policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" I have changed the endorsement policies to be more permissive, but I can't seem to get it to work. Any ideas?

arjones (Tue, 11 Aug 2020 22:11:27 GMT):
Hello, I'm trying to create a single organization with both orderer and peer nodes (at least one of each). I am using the cryptogen tool. Following the advice of someone here, I copied the orderer CA cert into the peers msp folder so that they can use the same mspid while having different root CAs. Unfortunately this causes endorsement errors when trying to create channels using the orderer mspid. "0 sub policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied" I have changed the endorsement policies to allow endorsements from the orderer mspid, but then I get a error that I can't connect to the orderer. Any ideas?

ckong (Wed, 12 Aug 2020 01:51:38 GMT):
Has joined the channel.

datpp (Wed, 12 Aug 2020 04:25:47 GMT):
Has joined the channel.

RobinKlemens (Wed, 12 Aug 2020 05:56:24 GMT):
Hi @BrettLogan, thank you very much for your answer. I'll try to get the NodeJS Chaincode as a Service running asap. Can you also provide some information about the `Java chaincode gRPC server`? From what I can see in Jira the last update of the sub-task was on 29/Dec/19 and the sub-task is in state `IN CR REVIEW`for a while. Many thanks!

PJHaga (Wed, 12 Aug 2020 07:34:53 GMT):
seems like we had an error in the encoding/decoding of our certificates. Some whitespace threw us off

AbdullahJoyia (Wed, 12 Aug 2020 09:32:22 GMT):
VS code

AbdullahJoyia (Wed, 12 Aug 2020 09:32:35 GMT):
let me try

horacionunez (Wed, 12 Aug 2020 17:36:58 GMT):
Has joined the channel.

ItaloCarrasco (Wed, 12 Aug 2020 18:00:38 GMT):
does anyone know if there is a way to specify the name of a tls cert generated by the CA, i am having issues with the name of this file

PrabhatKSINGH (Thu, 13 Aug 2020 05:15:09 GMT):
Has joined the channel.

PrabhatKSINGH (Thu, 13 Aug 2020 05:15:10 GMT):
Is there a testnet for fabric

PrabhatKSINGH (Thu, 13 Aug 2020 05:15:10 GMT):
Is there a testnet for fabric?

Shivasai780 (Thu, 13 Aug 2020 07:25:40 GMT):
Has joined the channel.

Shivasai780 (Thu, 13 Aug 2020 07:33:00 GMT):
Do any one known what are handlers in grpc protocol which is used for communication peer and chaincode

sanjay1296 (Thu, 13 Aug 2020 08:11:12 GMT):
Has joined the channel.

sanjay1296 (Thu, 13 Aug 2020 08:11:13 GMT):
Hey Guys. I have a requirement to deploy my fabric app as two environment in the same virtual machine.( Test(stable version) & Development). Has anyone tried to change the ports of every docker containers (Peer,CA,Couchdb,Orderer) in order to utilize the application in two environments? I have raised a detailed question in stackoverflow. https://stackoverflow.com/questions/63374355/issues-while-setting-up-hyperledger-fabric-2-0-in-different-container-ports-tes/63374843?noredirect=1#comment112086720_63374843

kokolaki (Thu, 13 Aug 2020 09:46:56 GMT):
Hello Community, I 'd like to ask, what happened in case there is limited hard disk space for a fabric network. The data

kokolaki (Thu, 13 Aug 2020 09:46:56 GMT):
Hello Community, I 'd like to ask, what happened in case there is limited hard disk space for a fabric blockchain network. The data is no longer stored on blockchain? Thank you in advance.

kokolaki (Thu, 13 Aug 2020 09:46:56 GMT):
Hello Community, I 'd like to ask, what happens in case there is limited hard disk space for a fabric blockchain network. The data is no longer stored on blockchain? Thank you in advance.

AbdullahJoyia (Thu, 13 Aug 2020 11:10:06 GMT):

node module error.png

AndrewPark 1 (Thu, 13 Aug 2020 13:33:27 GMT):
Has joined the channel.

RobinKlemens (Thu, 13 Aug 2020 18:45:13 GMT):
Hello all. I have a general question about setting up peers and orderers in the right way. I personally don't like the idea of running the peers distributed across many organizations while running the orderer service in a so-called (single) "ordering organization". This would be a central approach that I want to avoid. I want to distribute the ordering nodes the same way as the peer nodes. Thus, each organization (let's say 5) run 2 peer nodes and 1 ordering node each. --> 10 peers total and 5 orderer nodes in total. As the fabric docs state concerning my goal "Although this is possible, it is a highly discouraged configuration. By default the /Channel/Orderer/BlockValidation policy allows any valid certificate of the ordering organizations to sign blocks. If an organization is acting both in an ordering and application role, then this policy should be updated to restrict block signers to the subset of certificates authorized for ordering." (https://hyperledger-fabric.readthedocs.io/en/release-2.2/Fabric-FAQ.html#ordering-service) However, if I use fabric-ca in combination with `NodeOUs` and set up the `configtx.yaml` file accordingly I don't get the points why not to configure the network this way. Also the actual version of the sample `configtx.yaml` file (https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml) puts orderer nodes and peer nodes in the same organization. I'd appreciate your thoughts as well as any clarification. Best /Robin

RobinKlemens (Thu, 13 Aug 2020 18:45:13 GMT):
Hello everyone. I have a general question about setting up peers and orderers in the right way in Hyperledger Fabric 2.2. I personally don't like the idea of running the peers distributed across many organizations while running the orderer service in a so-called (single) "ordering organization". This would lead to a central element in a distributed and redundant system that I would like to avoid. I want to distribute the ordering nodes the same way as the peer nodes. Thus, each organization (let's say 5) runs 2 peer nodes and 1 ordering node each. --> 10 peers and 5 orderer nodes in total. As the fabric docs state concerning my goal "Although this is possible, it is a highly discouraged configuration. By default the /Channel/Orderer/BlockValidation policy allows any valid certificate of the ordering organizations to sign blocks. If an organization is acting both in an ordering and application role, then this policy should be updated to restrict block signers to the subset of certificates authorized for ordering." (https://hyperledger-fabric.readthedocs.io/en/release-2.2/Fabric-FAQ.html#ordering-service) However, if I use fabric-ca in combination with `NodeOUs` and set up the `configtx.yaml` file accordingly I don't get the points why not to configure the network this way. Also the actual version of the sample `configtx.yaml` file (https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml) puts orderer nodes and peer nodes in the same organization. I'd appreciate your thoughts as well as any clarification. Best /Robin

RobinKlemens (Thu, 13 Aug 2020 18:45:13 GMT):
Hello everyone. I have a general question about setting up peers and orderers in the right way. I personally don't like the idea of running the peers distributed across many organizations while running the orderer service in a so-called (single) "ordering organization". This would lead to a central element in a distributed and redundant system that I would like to avoid. I want to distribute the ordering nodes the same way as the peer nodes. Thus, each organization (let's say 5) runs 2 peer nodes and 1 ordering node each. --> 10 peers and 5 orderer nodes in total. As the fabric docs state concerning my goal "Although this is possible, it is a highly discouraged configuration. By default the /Channel/Orderer/BlockValidation policy allows any valid certificate of the ordering organizations to sign blocks. If an organization is acting both in an ordering and application role, then this policy should be updated to restrict block signers to the subset of certificates authorized for ordering." (https://hyperledger-fabric.readthedocs.io/en/release-2.2/Fabric-FAQ.html#ordering-service) However, if I use fabric-ca in combination with `NodeOUs` and set up the `configtx.yaml` file accordingly I don't get the points why not to configure the network this way. Also the actual version of the sample `configtx.yaml` file (https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml) puts orderer nodes and peer nodes in the same organization. I'd appreciate your thoughts as well as any clarification. Best /Robin

neil97 (Thu, 13 Aug 2020 20:30:10 GMT):
Has joined the channel.

neil97 (Thu, 13 Aug 2020 20:30:10 GMT):
hello!

neil97 (Thu, 13 Aug 2020 20:30:54 GMT):
excuse me, I have a issue with the script ./network.sh deployCC

neil97 (Thu, 13 Aug 2020 20:31:06 GMT):
may somebody help me??

arjones (Thu, 13 Aug 2020 22:50:03 GMT):
The main reason I believe is because an organization that runs the ordering service may be able to theoretically influence the ordering of transactions. Check out this article https://developer.ibm.com/articles/blockchain-hyperledger-fabric-ordering-decentralization/

arjones (Thu, 13 Aug 2020 22:50:23 GMT):
The main reason I believe is because an organization that runs the ordering service may be able to theoretically influence the ordering of transactions. Check out this article https://developer.ibm.com/articles/blockchain-hyperledger-fabric-ordering-decentralization/.

arjones (Thu, 13 Aug 2020 22:51:53 GMT):
I'm actually creating a similar setup where the ordering service is not a separate organization, but I'm doing to create a more logical central authority.

neil97 (Fri, 14 Aug 2020 00:37:33 GMT):

Clipboard - 13 de agosto de 2020 19:36

neil97 (Fri, 14 Aug 2020 00:38:16 GMT):
But I have a issue, may somebody help me?

neil97 (Fri, 14 Aug 2020 00:40:01 GMT):
I am developing Fabric in a WSL, with Ubuntu 20.04

sahilgoel (Fri, 14 Aug 2020 04:29:25 GMT):
I am having an issue with the Fabric contract API go. I have defined a structure which is marshal and unmarshalled into JSON. So I added json tag in struct fields with "omitempty" property. `Name string "json:"name,omitempty""` But when I return the structure via Fabric chaincode Go then it returns the success response error saying that Addtional property is not allowed.

sahilgoel (Fri, 14 Aug 2020 04:29:25 GMT):
I am having an issue with the Fabric contract API go. I have defined a structure which is marshal and unmarshalled into JSON. So I added json tag in struct fields with "omitempty" property. `Name string "json:"name,omitempty"` But when I return the structure via Fabric chaincode Go then it returns the success response error saying that Addtional property is not allowed.

sahilgoel (Fri, 14 Aug 2020 04:29:25 GMT):
I am having an issue with the Fabric contract API go. I have defined a structure which is marshal and unmarshalled into JSON. So I added json tag in struct fields with "omitempty" property. `Name string "json:"name,omitempty"` But when I return the structure via Fabric chaincode Go then it returns the success response error saying that Additional property name is not allowed.

RobinKlemens (Fri, 14 Aug 2020 07:34:06 GMT):
Hi @arjones, thanks for answering. I was talking about Raft ordering service. Raft, as well as Kafka, follow a leader and follower model. Thus, the org that possesses the ordering node which is the current Raft leader might be able to influence the ordering of transactions. However, this applies to both scenarios (separate ordering org vs. peers&orderers in the same orgs) Could it be possible that the recommendation of the fabric docs is deprecated since Raft is available and Kafka is deprecated as of v 2.x?

jvdacasin (Fri, 14 Aug 2020 08:25:32 GMT):
Has joined the channel.

jvdacasin (Fri, 14 Aug 2020 08:25:35 GMT):
Hello, I am having an issue with cluster role binding.: Please refer to the error details below: FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (11 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (10 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (9 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (8 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (7 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (6 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (5 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (4 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (3 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (2 retries left). FAILED - RETRYING: Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding (1 retries left). fatal: [localhost]: FAILED! => {"attempts": 50, "changed": false, "resources": []} PLAY RECAP ************************************************************************************************************* localhost : ok=87 changed=23 unreachable=0 failed=1 skipped=131 rescued=0 ignored=1 -I am trying to deploy BAF using my local minikube. Any suggestions? I can provide the details of my config and network.yaml configurations. Here's the steps I have followed: https://blockchain-automation-framework.readthedocs.io/en/latest/developer/baf_minikube_setup.html

bh4rtp (Fri, 14 Aug 2020 14:07:10 GMT):
how to pass string variable for `--signature-policy` in `peer lifecycle chaincode approveformyorg`? i can run command using string parameter directly: ```peer lifecycle chaincode approveformyorg --signature-policy "OR('org1.member','org2.member')"...``` but it does not work for string variable: ```CCEP="\"OR('org1.member','org2.member')\"" peer lifecycle chaincode approveformyorg --signature-policy ${CCEP}...``` why?

bh4rtp (Fri, 14 Aug 2020 14:07:10 GMT):
how to pass string variable for `--signature-policy` in `peer lifecycle chaincode approveformyorg`? i can run command using string parameter directly: ```peer lifecycle chaincode approveformyorg --signature-policy "OR('org1.member','org2.member')"... ``` but it does not work for string variable: ```CCEP="\"OR('org1.member','org2.member')\"" peer lifecycle chaincode approveformyorg --signature-policy ${CCEP}...``` why?

bh4rtp (Fri, 14 Aug 2020 14:07:10 GMT):
how to pass string variable for `--signature-policy` in `peer lifecycle chaincode approveformyorg`? i can run command using string parameter directly: `peer lifecycle chaincode approveformyorg --signature-policy "OR('org1.member','org2.member')"... ` but it does not work for string variable: ```CCEP="\"OR('org1.member','org2.member')\"" peer lifecycle chaincode approveformyorg --signature-policy ${CCEP}...``` why?

bh4rtp (Fri, 14 Aug 2020 14:40:09 GMT):
it prompts an error: ```Error: invalid signature policy: "OR('org1','org2.member')"```

bh4rtp (Fri, 14 Aug 2020 14:40:09 GMT):
it prompts an error: ```Error: invalid signature policy: "OR('org1.member','org2.member')"```

pkirkinezis (Fri, 14 Aug 2020 15:56:14 GMT):
Hi to the community I would like to adress a question about if it is a best practice to save the identity secret to database to use afterwords for endrollment . My concept is to save to a database and then from Java SDK use the secret and UserId to enroll .

arjones (Fri, 14 Aug 2020 22:03:02 GMT):
Oh I see what you mean. Sorry, I don't have the answer to that. Good luck!

arjones (Fri, 14 Aug 2020 23:17:53 GMT):
Hello everyone. I am getting an error bringing up my orderer node. I get the error message ``` Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: Orderer Org OrdererMSP cannot contain endpoints value until V1_4_2+ capabilities have been enabled ```

arjones (Fri, 14 Aug 2020 23:19:37 GMT):
But in my configtx.yaml file I have the following lines``` Capabilities: Channel: &ChannelCapabilities V2_0: true Orderer: &OrdererCapabilities V2_0: true ```

arjones (Fri, 14 Aug 2020 23:19:37 GMT):
But in my configtx.yaml file I have the following lines``` Capabilities: Channel: &ChannelCapabilities V2_0: true Orderer: &OrdererCapabilities V2_0: true Application: &ApplicationCapabilities V2_0: true ``` Isn't 2.0 > 1.4.2? Any help would be much appreciated.

arjones (Fri, 14 Aug 2020 23:36:44 GMT):
Okay, I tried changing the V2_0 to V1_4_1, and the orderer comes up. Not really sure why V2_0 doesn't work, but oh well.

Shivasai780 (Sat, 15 Aug 2020 07:46:06 GMT):
Any one known the good recources to learn about the hyperledger fabric chaincode?Writing our own chaincode

iStrike (Sat, 15 Aug 2020 11:27:50 GMT):
Has joined the channel.

RobinKlemens (Sat, 15 Aug 2020 16:53:59 GMT):
What is the version of the Docker images you are using?

mvkillu (Sun, 16 Aug 2020 02:37:13 GMT):
I just created my first chaincode in NodeJS. But I'm having trouble running it, could someone please check if this is valid by running in your local system? https://github.com/mvkillu/telecom

HansrajRami (Sun, 16 Aug 2020 04:48:40 GMT):
Hi all !!

HansrajRami (Sun, 16 Aug 2020 04:48:40 GMT):
Hi all !! How to track in fabric that transaction is performed by which user ?

HansrajRami (Sun, 16 Aug 2020 04:48:40 GMT):
Hi all !! How to track in fabric that transaction is performed by which user ? Because in explorer also it is showing organization name not user

Cato9 (Sun, 16 Aug 2020 06:28:49 GMT):
Has joined the channel.

Cato9 (Sun, 16 Aug 2020 06:48:33 GMT):
From https://en.wikipedia.org/wiki/Byzantine_fault - it seems that BFT only ensures that data is consistently published to all participants, not that it is correct. The case of a malicious organisation owning the current leader would be best handled by security threat modelling, and deciding if you need extra security assurance on top of what Fabric and BFT give you. It's possible the docs don't consider more advanced scenarios like this, and I'd certainly expect the sample configs to be simplified for ease of learning.

Cato9 (Sun, 16 Aug 2020 06:48:33 GMT):
@RobinKlemens From https://en.wikipedia.org/wiki/Byzantine_fault - it seems that BFT only ensures that data is consistently published to all participants, not that it is correct. The case of a malicious organisation owning the current leader would be best handled by security threat modelling, and deciding if you need extra security assurance on top of what Fabric and BFT give you. It's possible the docs don't consider more advanced scenarios like this, and I'd certainly expect the sample configs to be simplified for ease of learning.

Cato9 (Sun, 16 Aug 2020 06:51:05 GMT):
NodeOUs seems like a valid approach - or if that's not secure enough for your threat model, you could consider multiple separate ordering-only Orgs (not same as peer Orgs) with separate CAs

Cato9 (Sun, 16 Aug 2020 06:51:05 GMT):
Enabling `NodeOUs` seems like a valid approach - or if that's not secure enough for your threat model, you could consider multiple separate ordering-only Orgs (not same as peer Orgs) with separate CAs

Cato9 (Sun, 16 Aug 2020 06:54:46 GMT):
My understanding is that the blockchain has to grow without limit, or it's not valid. You would need a storage system that can accommodate this, as well as trying to minimize size of data on blockchain - consider use of Private Data option, putting hash of this data on blockchain (then you could perhaps put older Private Data on lower-cost archive storage such as S3 Glacier in AWS).

Cato9 (Sun, 16 Aug 2020 06:57:21 GMT):
Pruning of old data from blockchains is a research topic, see https://people.cs.pitt.edu/~babay/courses/cs3551/papers/palm18_blockchain_pruning.pdf for example - Hyperledger Fabric doesn't support this but was extended for this research

kokolaki (Sun, 16 Aug 2020 06:58:43 GMT):
Thank you for your answer!

gilade (Sun, 16 Aug 2020 07:21:05 GMT):
Has joined the channel.

deployer21 (Sun, 16 Aug 2020 17:45:48 GMT):
hello everyone, how can blockchain be restored from the last checkpoint? I am using test-network, and after depoloying CC and query the chain, by adding and removing cars, and if I restart the network, all the changes are lost. Is it because of the InitLedger function? thanks in advance

deployer21 (Sun, 16 Aug 2020 17:48:01 GMT):
btw, a solution I tried, was to add to docker couch yaml: volumes: - /var/hyperledger/couchdb0:/opt/couchdb/data however, when deploying CC (deployCC) it returns the following error: Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': attempted to redefine uncommitted sequence (1) for namespace fabcar with unchanged content.

AbhijeetBhowmik (Mon, 17 Aug 2020 04:00:35 GMT):
Hey could anyone here help me with Kubernetes issue ? Sorry for asking Kube question here. But I am trying to deploy test network on kubernetes cluster but Kubernetes Volumes giving me a hard time.

SpecialAgentCooper (Mon, 17 Aug 2020 09:41:52 GMT):
you can't - if you are using the test network, the whole set up (all crypto assets, all data) is destroyed when you bring the network down. If you want to save the network state while bringing it offline, you'll have to write your own scripts or pause all of the docker containers

mvkillu (Mon, 17 Aug 2020 11:11:39 GMT):
I am looking for one too. Did you find any?

sanket1211 (Mon, 17 Aug 2020 14:46:13 GMT):
hey guys...how can we verify if certain peer is leader peer? i have checked the log of the peer but didnt see there..plz help!

eduardopezzi (Mon, 17 Aug 2020 17:27:56 GMT):
Hi there! I am trying to extend my network and when I tried do fetch the channel, it returns with the following error: Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

eduardopezzi (Mon, 17 Aug 2020 17:28:21 GMT):
Anyone has any thoughts about that?

KrrishnaShah (Mon, 17 Aug 2020 18:34:36 GMT):
Has joined the channel.

KrrishnaShah (Mon, 17 Aug 2020 18:34:36 GMT):
Hi everyone, I want to create a private network on Raspberry Pi. Can I create a partial Node for fabric similar to Ethereum supports?

JamesSchulte (Mon, 17 Aug 2020 18:37:48 GMT):
Has joined the channel.

ItaloCarrasco (Mon, 17 Aug 2020 19:11:22 GMT):
hi everyone, i am using the fabric CAs to generate all the certs for the network, the cli needs the peer admin msp files to execute peer commands, is there an easy way to get those files? like with fabric-ca-client?

YangMiranda (Mon, 17 Aug 2020 20:12:30 GMT):
Hi, i'm trying to use fabric-network and fabric-ca-client libraries inside ReactJS / VueJS applications and i'm getting some errors. Following the samples, i can use without problems with a ExpressJS app to build an REST API. It seems like the libraries only works on server side (NodeJS apps). Even with ElectronJS apps in the Main Renderer, the only import act for the libraries i was getting errors... I think the Webpack also does not suport something with these libraries. Does anyone have some idea on how to deal with it? Thanks

YangMiranda (Mon, 17 Aug 2020 20:12:30 GMT):
Hi, i'm trying to use fabric-network and fabric-ca-client libraries inside ReactJS / VueJS applications and i'm getting some errors. Following the samples, i can use without problems with a ExpressJS app to build an REST API. It seems like the libraries only works on server side (NodeJS apps). Even with ElectronJS apps in the Main Renderer, the simple import act for the libraries i was getting errors... I think the Webpack also does not suport something with these libraries. Does anyone have some idea on how to deal with it? Thanks

YangMiranda (Mon, 17 Aug 2020 20:14:20 GMT):
Have you tried add this address insede /etc/hosts? like 0.0.0.0 orderer.example.com

YangMiranda (Mon, 17 Aug 2020 20:15:16 GMT):
if you are using docker / docker-compose, it's a good idea to add ExtraHosts as the known hostnames too

arjones (Mon, 17 Aug 2020 20:33:19 GMT):
I'm using 1.4 for the

arjones (Mon, 17 Aug 2020 20:33:19 GMT):
I'm using 1.4 for the CA, and the latest tag for everything else

xixuejia (Tue, 18 Aug 2020 02:08:31 GMT):
Hi all, does Fabric support ed25519 curve?

Priya.P (Tue, 18 Aug 2020 07:01:09 GMT):
Has joined the channel.

Priya.P (Tue, 18 Aug 2020 07:14:41 GMT):
Hi everyone,

Priya.P (Tue, 18 Aug 2020 07:14:41 GMT):
``` Hi everyone ```

li0kaiyuan (Tue, 18 Aug 2020 07:18:17 GMT):
Has joined the channel.

li0kaiyuan (Tue, 18 Aug 2020 07:18:18 GMT):
Compilation failure [ERROR] /home/go/src/github.com/hyperledger/blockchain-application-using-fabric-java-sdk/java/src/main/java/org/example/client/ChannelClient.java:[49,8] error while writing org.example.client.ChannelClient: could not create parent directories

Priya.P (Tue, 18 Aug 2020 07:21:50 GMT):
Hi everyone How does organisation accepting a chaincode know that chaincode is different from one proposed by it (i.e. chaincode it is approving have some other organisations specific validations)?

SpecialAgentCooper (Tue, 18 Aug 2020 09:21:46 GMT):
I followed the docs and used fabric-samples, there are really good examples that ship with fabric. There are examples that related to each of fabric's features such as private data here https://github.com/hyperledger/fabric-samples

AndrewPark 1 (Tue, 18 Aug 2020 09:39:30 GMT):
Is there anyone know why fabric chaincode evm project stopped?

AndrewPark 1 (Tue, 18 Aug 2020 09:39:40 GMT):
https://github.com/hyperledger/fabric-chaincode-evm

RobinKlemens (Tue, 18 Aug 2020 09:48:49 GMT):
@Cato9 thank you very much for your detailed answer. I also thought about creating multiple orderer orgs with their own fabric-ca and 1 orderer node. This would prevent the possible threat that a peer organization which also runs a oderer node could access data from channels, where the peer org doesn't participate in. However, setting up multiple orderer orgs would increase the configurational effort and you need to find even more organizations which like to host Hyperledger Fabric infrastructure. Btw. Hyperledger Fabric's Raft consensus algorithm ist not BFT (yet). It is CFT - Crash Fault Tolerant

MadnessMac (Tue, 18 Aug 2020 12:24:47 GMT):
Has joined the channel.

MadnessMac (Tue, 18 Aug 2020 12:26:24 GMT):

Clipboard - August 18, 2020 5:56 PM

MadnessMac (Tue, 18 Aug 2020 12:26:26 GMT):
hi , when i try to run ./network.sh deployCC it throws this error can anyone please help ? thanks in advance

chintanr11 (Tue, 18 Aug 2020 12:34:02 GMT):
In the latest master version of CCENV dockerfile, I see that there is no node dependency placed in the alpine image. Do we know how we compile Node.js chaincodes in that case? https://github.com/hyperledger/fabric/blob/master/images/ccenv/Dockerfile

MadnessMac (Tue, 18 Aug 2020 12:45:34 GMT):
which is the stable version of fabric

MadnessMac (Tue, 18 Aug 2020 12:45:34 GMT):
which is the stable version of fabric ?

BrettLogan (Tue, 18 Aug 2020 13:18:44 GMT):
For those who might come across this later: this was caused by the settings of the `GO111MODULE` environment variable. The simplest solution is to upgrade to at least Go `1.14` which applies the correct default behavior of the Go Modules variable

chintanr11 (Tue, 18 Aug 2020 13:19:15 GMT):
In the latest master version of CCENV dockerfile, I see that there is no node dependency placed in the alpine image. Do we know how we compile Node.js chaincodes in that case? https://github.com/hyperledger/fabric/blob/master/images/ccenv/Dockerfile

BrettLogan (Tue, 18 Aug 2020 13:19:46 GMT):
Starting in 2.0 Node chaincode uses the `fabric-nodeenv` image as both its builder and runtime

BrettLogan (Tue, 18 Aug 2020 13:19:46 GMT):
Starting in 2.0.0 Fabric, Node chaincode uses the `fabric-nodeenv` image as both its builder and runtime

BrettLogan (Tue, 18 Aug 2020 13:20:19 GMT):
https://github.com/hyperledger/fabric-chaincode-node/blob/master/docker/fabric-nodeenv/Dockerfile

chintanr11 (Tue, 18 Aug 2020 13:20:58 GMT):
Oh okay! I just got confused with core.yaml file. I did not redirected to platform code.

chintanr11 (Tue, 18 Aug 2020 13:20:58 GMT):
Oh okay! I just got confused with core.yaml file. I did not redirect to platform code.

BrettLogan (Tue, 18 Aug 2020 13:23:31 GMT):
Right, in the case of Java and Node chaincode they have implemented builders. The ccenv is a fallback for languages that don't have implemented builders, today that is now just the Go chaincode

BrettLogan (Tue, 18 Aug 2020 13:24:23 GMT):
The maintainers of the project moved onto other work outside of the blockchain space unfortunately. I don't know if they intend on picking the work back up, but they've been absent for a while now.

chintanr11 (Tue, 18 Aug 2020 13:25:47 GMT):
I understood. What is the Node.js version we can use with release-1.4 for CC build .. I know NPM can be latest?

BrettLogan (Tue, 18 Aug 2020 13:26:54 GMT):
Hey Abhijeet, what issue are you facing with deploying Fabric on Kube?

BrettLogan (Tue, 18 Aug 2020 13:28:40 GMT):
Node 8

BrettLogan (Tue, 18 Aug 2020 13:28:41 GMT):
https://github.com/hyperledger/fabric-baseimage/blob/master/scripts/common/setup.sh#L70

BrettLogan (Tue, 18 Aug 2020 13:28:59 GMT):
The 1.4 ccenv image is based on this `baseimage`

BrettLogan (Tue, 18 Aug 2020 13:29:27 GMT):
https://github.com/hyperledger/fabric-baseimage/blob/master/config/baseimage/Dockerfile

BrettLogan (Tue, 18 Aug 2020 13:29:52 GMT):
We really cleaned up our images in 2.0 to make them all stand alone. 1.4 was a pretty big mess

chintanr11 (Tue, 18 Aug 2020 13:39:27 GMT):
Thats what I trying to do for 1.4. Cleaning up images. But for ccenv I am getting into deep issues in placing Node 8 and Golang 1.13.12 in same alpine image :(

chintanr11 (Tue, 18 Aug 2020 13:39:27 GMT):
Thats what I am trying to do for 1.4. Cleaning up images. But for ccenv I am getting into deep issues in placing Node 8 and Golang 1.13.12 in same alpine image :(

BrettLogan (Tue, 18 Aug 2020 14:27:01 GMT):
You should be using the latest tag, the fact they got published was an accident, we don't use latest anymore. The latest tag you have is actually a pointer to the 1.4 release, not a 2.x release which is why you can use 2.0 capabilities

BrettLogan (Tue, 18 Aug 2020 14:27:01 GMT):
You shouldn't be using the latest tag, the fact they got published was an accident, we don't use latest anymore. The latest tag you have is actually a pointer to the 1.4 release, not a 2.x release which is why you can use 2.0 capabilities

ItaloCarrasco (Tue, 18 Aug 2020 17:14:48 GMT):
hello i am trying to get a cert list using fabric-ca-client but i am getting this error: `fabric-ca-client certificate list -u http://localhost:7054 --id org1admin -M ${PWD}/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp --tls.certfiles ${PWD}/crypto-config/fabric-ca/org1/tls-cert.pem Error: invalid character 'C' looking for beginning of value` does anyone know what does it mean?

xzy1990 (Wed, 19 Aug 2020 01:36:31 GMT):
Has joined the channel.

xzy1990 (Wed, 19 Aug 2020 01:36:31 GMT):
When I instantiate the chaincode, I Got the Errro: "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'mycc2' has been migrated to the new lifecycle, LSCC is now read-only", the main idea is channel's status is read-only. how can I solve this problem?

AbhijeetBhowmik (Wed, 19 Aug 2020 05:27:35 GMT):
check what's in you tls-cert.pem try decode it and see if it's valid

AbhijeetBhowmik (Wed, 19 Aug 2020 05:27:35 GMT):
check what's in your tls-cert.pem try decode it and see if it's valid

TalhaAhmad209 (Wed, 19 Aug 2020 08:22:28 GMT):
Has joined the channel.

TalhaAhmad209 (Wed, 19 Aug 2020 08:22:29 GMT):
Hello, I am new to Hyperledger fabric and I am trying to create performance stats for my network, is there a way to check the time taken to reach consensus by all peers?

deployer21 (Wed, 19 Aug 2020 09:37:17 GMT):
Can someone explain the difference between fabric-sdk-java and fabric-gateway-java? Which Jar file should I use in my Java Application to interact with the network? Thx

AliciaKiran (Wed, 19 Aug 2020 10:32:09 GMT):
How to load bulk data from a file and query the same in fabric?

Vgkmanju (Wed, 19 Aug 2020 10:55:03 GMT):
Hi,

Vgkmanju (Wed, 19 Aug 2020 10:55:03 GMT):
Hi, In hyperledger fabric, consider peer0.org1 contains 5 users. How can we maintain data privacy among these users?

SuneetBendre (Wed, 19 Aug 2020 11:56:35 GMT):
private data collection is at org level, if your private data collection has org1, then these 5 users will have data but not other org

davidkel (Wed, 19 Aug 2020 12:41:29 GMT):
you might have better luck asking on #fabric-sdk-java channel is it's dedicated to discussions around the java client libraries

deployer21 (Wed, 19 Aug 2020 13:27:21 GMT):
thanks :)

BrettLogan (Wed, 19 Aug 2020 15:27:41 GMT):
What are you trying to do. The channel isn't read only, you are just trying to perform some transaction on the legacy lifecycle rather than the new lifecycle

BrettLogan (Wed, 19 Aug 2020 15:28:12 GMT):
1.4 and 2.2 are the LTS releases, 1.4 has about 7 months of support left

babiskg (Wed, 19 Aug 2020 16:19:34 GMT):
Hello , is it possible to export all data that is stored in hyperledger fabric? i want to create graphs from those data

arjones (Wed, 19 Aug 2020 19:58:20 GMT):
Okay that makes sense, thanks for the info.

arjones (Wed, 19 Aug 2020 21:18:51 GMT):
Hello. I am getting an error when attempting to create a channel``` orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded ``` docker logs orderer shows``` TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoateaddress=172.21.0.1:ports ``` I only ran into this error when making an organization have both a peer node and an orderer node. I am using cryptogen to create the certs/keys. I created a "peer organization" that I am using in both a peer and orderer role. Thank you.

BrettLogan (Thu, 20 Aug 2020 03:12:53 GMT):
If you want history you would need to do an open-ended chaincode query to fetch all assets and then query the history of each asset (unless you know the id's of all of your assets without a need to query them). So yes, it can be done, but would need to be done through chaincode

Vgkmanju (Thu, 20 Aug 2020 05:50:36 GMT):
Yeah private data collection is only at org level. But my question is peer level or within a organization. In a single org, how can we maintain data privacy among users? Consider peer0.org1 has user1, user2, user3, user4 and user5. Each user perform some action and store their data in peer ledger. user1 don't want to show his data to other users. If user2 wants to take a backup of a peer ledger due to some reason. In this case, he will get all the data which is stored in peer ledger. user1 don't want to show his data but user2 got . Is there any solution to maintain data privacy within a org

AshutoshKumar7 (Thu, 20 Aug 2020 07:31:37 GMT):
What about using attribute level access control with assigning roles to users ? I haven't tried this but looks like it should do .https://medium.com/coinmonks/attribute-based-access-control-abac-in-hyperledger-fabric-1eb81330f67a

HeMBaD (Thu, 20 Aug 2020 10:36:11 GMT):
Has joined the channel.

AshutoshKumar7 (Thu, 20 Aug 2020 10:39:39 GMT):
Has anyone tried Hyperledger Cello ? What are the observations?

SuneetBendre (Thu, 20 Aug 2020 10:45:48 GMT):
private data collection is not applicable to the peers in the org. All peer nodes will have data if part of private data collection. @AshutoshKumar7 : you can provide attribute level control to return data on api. but underline that peer holds the data .e,g i return data of only user who is requesting, but peer holds all data. (its filtering on application level)

SuneetBendre (Thu, 20 Aug 2020 10:46:30 GMT):
@Vgkmanju create different org if have such usecase

ItaloCarrasco (Thu, 20 Aug 2020 16:08:31 GMT):
hello everyone, is there a better way to get fabric CA sign certificate than just copying it from the docker volume?

lamnguyen (Thu, 20 Aug 2020 22:17:54 GMT):
Has joined the channel.

ecaldon (Thu, 20 Aug 2020 23:27:22 GMT):
Has joined the channel.

DavidRobledo (Fri, 21 Aug 2020 00:10:51 GMT):
Has joined the channel.

AlejandroCortesLeal (Fri, 21 Aug 2020 00:13:31 GMT):
Has joined the channel.

sadalmelik828 (Fri, 21 Aug 2020 00:15:01 GMT):
Has joined the channel.

lxhiguera (Fri, 21 Aug 2020 00:15:39 GMT):
Has joined the channel.

GiacomoTeruggi (Fri, 21 Aug 2020 00:19:26 GMT):
Has joined the channel.

GiacomoTeruggi (Fri, 21 Aug 2020 00:19:27 GMT):
Hi

gtorresgaz (Fri, 21 Aug 2020 00:20:36 GMT):
Has joined the channel.

gtorresgaz (Fri, 21 Aug 2020 00:20:36 GMT):
Hi

gtorresgaz (Fri, 21 Aug 2020 00:21:57 GMT):
what's the best language for writing chaincode on hyperledger?

sadalmelik828 (Fri, 21 Aug 2020 00:39:25 GMT):
The official language for chaincode is golang but that not prevents use java or node.js. Really the language use is critery or need based on business.

sadalmelik828 (Fri, 21 Aug 2020 00:39:25 GMT):
The official language for chaincode is golang but that not prevents use java or node.js. Really the language use is judgment and/or need based on business.

genesis3g (Fri, 21 Aug 2020 00:52:20 GMT):
Has joined the channel.

jaguarulises (Fri, 21 Aug 2020 01:02:02 GMT):
Has joined the channel.

jaguarulises (Fri, 21 Aug 2020 01:02:03 GMT):
¿Que precio tiene la certificación de hyperledger?

SofiaQuinones (Fri, 21 Aug 2020 01:02:42 GMT):
Has joined the channel.

SofiaQuinones (Fri, 21 Aug 2020 01:02:42 GMT):
Hyperledger fabric puede ser aplicado a cualquier caso de uso?

alejandrobotia (Fri, 21 Aug 2020 01:06:28 GMT):
Has joined the channel.

alejandrobotia (Fri, 21 Aug 2020 01:06:28 GMT):
hola

sadalmelik828 (Fri, 21 Aug 2020 01:20:39 GMT):
Hola, los precios de las certificaciones oficiales de Linux Foundation los puedes ver en el siguiente link: https://training.linuxfoundation.org/training/course-catalog/?_sft_topic_area=blockchain

sadalmelik828 (Fri, 21 Aug 2020 01:21:24 GMT):
Están expresados en doláres

sadalmelik828 (Fri, 21 Aug 2020 01:24:13 GMT):

BlockChainDecisionPath.png

SofiaQuinones (Fri, 21 Aug 2020 01:27:56 GMT):
pero en caso de que si sea idoneo

SofiaQuinones (Fri, 21 Aug 2020 01:28:00 GMT):
gracias

SergioArriagada (Fri, 21 Aug 2020 01:30:55 GMT):
Has joined the channel.

Rafael-Lizardo-2020 (Fri, 21 Aug 2020 01:52:24 GMT):
Has joined the channel.

nasermirzaei89 (Fri, 21 Aug 2020 09:16:14 GMT):
*How can I find who (client) did each transaction?*

AshutoshKumar7 (Fri, 21 Aug 2020 10:41:53 GMT):
is there any production use case and architecture available for reference for large organisations where I can see real world network ?

MadnessMac (Fri, 21 Aug 2020 15:56:25 GMT):

Clipboard - August 21, 2020 9:26 PM

MadnessMac (Fri, 21 Aug 2020 15:56:41 GMT):
*im geting this error while InstantiateChaincode*

MadnessMac (Fri, 21 Aug 2020 15:56:53 GMT):
thanks in advance

AshutoshKumar7 (Fri, 21 Aug 2020 16:12:33 GMT):
Check TransactionEvent . It should have creator info

nasermirzaei89 (Fri, 21 Aug 2020 18:40:32 GMT):
@AshutoshKumar7 I used `network.RegisterBlockEvent()` but the received event data is binary data (maybe protobuf)

nasermirzaei89 (Fri, 21 Aug 2020 18:40:32 GMT):
@AshutoshKumar7 I used `network.RegisterBlockEvent()` in *golang* but the received event data is binary (maybe protobuf)

adrianpatania (Fri, 21 Aug 2020 19:40:31 GMT):
Has joined the channel.

vojedav (Fri, 21 Aug 2020 19:49:27 GMT):
Has joined the channel.

ItaloCarrasco (Fri, 21 Aug 2020 20:29:37 GMT):
hello everyone, using the fabric CAs to get certs, when you generate the msp folder, the cacert file is named by the url of the ca you used to generate it, but if the url has dots, the filename changes those for dashes, is there a way to avoid this change?, how do you set up the msp config.yaml organizational units if the name of this cacert depends on the url of the ca?

SofiaQuinones (Sat, 22 Aug 2020 16:05:14 GMT):
como saber si hacer despliegue en la nube u on-premise?

babiskg (Sun, 23 Aug 2020 08:56:21 GMT):
hello , is it possible to save chaincode values to a specific file throw peer chaincode query?

babiskg (Sun, 23 Aug 2020 08:56:21 GMT):
hello , is it possible to save chaincode values to a specific file through peer chaincode query?

babiskg (Sun, 23 Aug 2020 09:01:46 GMT):
BrettLogan thank you, is it possible to save that data to a specific file ?

fayeeg (Sun, 23 Aug 2020 15:31:01 GMT):
Has joined the channel.

fayeeg (Sun, 23 Aug 2020 15:31:01 GMT):
Hello everyone! How do I programatically add organization or peer to the fabric network i.e without yaml config files? Is it possible? this is the possible scenario. An organization wants to be part of our consortium, does the registration via our web app, we deploy the node for them, add them to a channel etc.

fayeeg (Sun, 23 Aug 2020 15:31:01 GMT):
Hello everyone! How do I programatically add organization or peer to the fabric network i.e without yaml config files? Is it possible? this is the possible scenario. An organization wants to be part of our consortium, customer do the registration via our web app, we deploy the node for them, add them to a channel etc.

AbhijeetBhowmik (Mon, 24 Aug 2020 04:05:41 GMT):
make a template config.yaml. If you gonna use cryptogen, create a crypto-config.yaml template as well. Whatever arguments are passed by the organization i.e name, domain name, channel name etc., poopulate those values on the templates and then use that template to deploy peer/ca/channel. If you gonna use CA to issue certificates, use fabric-ca-client sdk to get certificates of the peers, move the certificates to the peer premise (maybe using nfs or ssh). Then deploy the peer.

AbhijeetBhowmik (Mon, 24 Aug 2020 04:05:41 GMT):
make a template config.yaml. If you gonna use cryptogen, create a crypto-config.yaml template as well. Whatever arguments are passed by the organization i.e name, domain name, SAN, channel name etc., poopulate those values on the templates and then use that template to deploy peer/ca/channel. If you gonna use CA to issue certificates, use fabric-ca-client sdk to get certificates of the peers, move the certificates to the peer premise (maybe using nfs or ssh). Then deploy the peer.

AbhijeetBhowmik (Mon, 24 Aug 2020 04:05:41 GMT):
make a template config.yaml. If you gonna use cryptogen, create a crypto-config.yaml template as well. Whatever arguments are passed by the organization i.e name, domain name, SAN, channel name etc., poopulate those values on the templates and then use that template to deploy peer/ca/channel. If you gonna use CA to issue certificates, use fabric-ca-client sdk to get certificates of the peers, move the certificates to the peer premise (maybe using nfs or ssh). Then deploy the peer. After that, create a update configtx transaction to add the organization to current policies, consortium, channels etc

AbhijeetBhowmik (Mon, 24 Aug 2020 04:13:23 GMT):
use `curl http:///api/v1/cainfo`

fayeeg (Mon, 24 Aug 2020 12:13:12 GMT):
Thanks for your response @AbhijeetBhowmik

fayeeg (Mon, 24 Aug 2020 12:13:52 GMT):
Have you successfully implemented any such scenario?

Cato9 (Mon, 24 Aug 2020 13:16:18 GMT):
Not exactly what you are looking for, but look at Blockchain Automation Framework which is Ansible and other code to deploy HLF on Kubernetes for production - has a channel here too

raushankumar (Mon, 24 Aug 2020 13:57:07 GMT):
Has joined the channel.

raushankumar (Mon, 24 Aug 2020 13:57:07 GMT):
I am looking for a way to deploy hyperledger fabric (version above 2.0.0) in kubernetes. Is there any open sourced project related to it?

AbhijeetBhowmik (Mon, 24 Aug 2020 14:51:07 GMT):
@BrettLogan I use nfs in persistent volume, then create persistent volume claim for that and then mount it to Deployment containers of orderer. But inside orderer, the mount points are nothing but empty directory while the actual exported nfs drives have orderer-config.yaml and crypto-config in it. Hence orderer fails to launch.

BrettLogan (Mon, 24 Aug 2020 14:53:26 GMT):
Can you share your pod spec?

AbhijeetBhowmik (Mon, 24 Aug 2020 14:54:53 GMT):
Sure. here is a link to my stackoverflow question which has the config yamls https://stackoverflow.com/questions/63461731/unable-to-mount-nfs-on-kubernetes-pod

crestrer (Tue, 25 Aug 2020 01:02:26 GMT):
Has joined the channel.

crestrer (Tue, 25 Aug 2020 01:02:26 GMT):
Hi everyone!!!, I have a question, Is possible to create a new RULE into policies? I Know, that we have Rule: - “Org1.admin” - “Org1.member” - “Org1.client” - “Org1.peer” - “Org1.orderer” But I can create a new Rule something like "Org1.newRule" ??

AbhijeetBhowmik (Tue, 25 Aug 2020 06:15:23 GMT):
Yes. create a new policy like `Policies: &ApplicationDefaultPolicies Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" MyPolicy: Type: Signature Rule: "OR('SampleOrg.admin')"` then use MyPolicy whereever you wish

AbhijeetBhowmik (Tue, 25 Aug 2020 06:15:23 GMT):
Yes. create a new policy like ```Policies: &ApplicationDefaultPolicies Readers: Type: ImplicitMeta Rule: "ANY Readers" Writers: Type: ImplicitMeta Rule: "ANY Writers" Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" MyPolicy: Type: Signature Rule: "OR('SampleOrg.admin')"``` then use MyPolicy whereever you wish

AbhijeetBhowmik (Tue, 25 Aug 2020 06:17:29 GMT):
Please note valid identity values are ```admin, peer, client ``` that is valid to whom the certificate belongs to

AbhijeetBhowmik (Tue, 25 Aug 2020 06:17:29 GMT):
Please note valid identity values are ```admin, peer, client ``` that is to whom the certificate belongs to

weishancc (Tue, 25 Aug 2020 07:11:23 GMT):
Has joined the channel.

weishancc (Tue, 25 Aug 2020 07:11:24 GMT):
Hi everyone! When i tried to use command "node query.js" as shown in fabcar samples,

weishancc (Tue, 25 Aug 2020 07:11:24 GMT):
Hi everyone! When i tried to use command "node query.js" as shown in fabcar samples, however i got the following error: ` error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`. Had someone met also ? Thx!!

weishancc (Tue, 25 Aug 2020 07:11:24 GMT):
Hi everyone! When i tried to use command "node query.js" as shown in fabcar samples, however i got the following error: ` error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`. (But i can run query function correctly with docker command) Had someone ever occured? Thx!!

weishancc (Tue, 25 Aug 2020 07:11:24 GMT):
Hi everyone! When i tried to use command "node query.js" as shown in fabcar samples, however i got the following error: ` error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []` (But i can run query function correctly with docker command) Had someone ever occured? Thx!!

trinayanbhatt (Tue, 25 Aug 2020 12:32:18 GMT):
Can we pass multiple sorting indexes as query parameters while querying in state level db? If yes, can anyone please tell me issue with this query:``` ``` `{"selector":{"info":{"organization_id":"ABC123"},"status":{"$in":["STATUS1","STATUS2","STATUS3"]},"docType":"doc_awa"},"use_index":["_design/biltiDoc","indexbiltino"],"sort":[{"creation_date":"desc"},{"doc_no":"desc"}]}`

Priya.P (Tue, 25 Aug 2020 13:04:13 GMT):
Hi everyone

Priya.P (Tue, 25 Aug 2020 13:06:04 GMT):
Hi everyone

Priya.P (Tue, 25 Aug 2020 13:06:30 GMT):
``` Hi everyone ```

Priya.P (Tue, 25 Aug 2020 13:06:43 GMT):
``` ```

Priya.P (Tue, 25 Aug 2020 13:11:26 GMT):
Hi everyone, I am following hyperledger fabric docs to create a network . Can someone please help me here I have downloaded docker images v2.2.0 but I am not able to get fabric samples v2.2.0 . Thus when I try test network from fabric samples network up fails.* I am getting OCI runtime create failed:container_linux.go*

crestrer (Tue, 25 Aug 2020 13:47:09 GMT):
But, I can´t create a new Identity?

crestrer (Tue, 25 Aug 2020 13:47:29 GMT):
"Org1.newRule""Org1.newCliente","Org1.crestreradmin"

trinayanbhatt (Tue, 25 Aug 2020 14:14:17 GMT):
https://stackoverflow.com/questions/63579186/query-state-level-db-in-hyperledger-fabric-using-mutiple-index-sorting

crestrer (Tue, 25 Aug 2020 14:15:27 GMT):
I Only can use ´´´ admin, member,client,peer,orderer ´´´

crestrer (Tue, 25 Aug 2020 14:15:27 GMT):
I Only can use ```admin, member, peer, client, orderer ```

crestrer (Tue, 25 Aug 2020 14:18:22 GMT):
I can´t create or add a new identity ```admin, member, peer, client, orderer, newIdentity1, newIdentity2```

crestrer (Tue, 25 Aug 2020 14:18:22 GMT):
I can´t create or add a new identity ```admin, member, peer, client, orderer, newIdentity1, newIdentity2``` That´s my question, I now that we can use Mypolicy, but in the Rule ``` MyPolicy: Type: Signature Rule: ``` I can define new Rule identities?

crestrer (Tue, 25 Aug 2020 14:18:22 GMT):
I can´t create or add a new identity ```admin, member, peer, client, orderer, newIdentity1, newIdentity2``` That´s my question, I now that we can use Mypolicy, but in the Rule ``` MyPolicy: Type: Signature Rule: ``` I can define new Rule identities?

crestrer (Tue, 25 Aug 2020 14:18:22 GMT):
I can´t create or add a new identity ```admin, member, peer, client, orderer, newIdentity1, newIdentity2```

crestrer (Tue, 25 Aug 2020 14:22:26 GMT):
That´s my question, I now that we can use Mypolicy, but in the Rule ``` MyPolicy: Type: Signature Rule: ``` I can define new Rule identities?

RobinKlemens (Tue, 25 Aug 2020 15:51:56 GMT):
client, peer, admin, and orderer are supported (see https://hyperledger-fabric.readthedocs.io/en/release-2.2/membership/membership.html#node-ou-roles-and-msps) I'm not sure if adding a new OU identifier to the following would work. But you could try and leave us your feedback :) ```NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/ca.sampleorg-cert.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/ca.sampleorg-cert.pem OrganizationalUnitIdentifier: peer AdminOUIdentifier: Certificate: cacerts/ca.sampleorg-cert.pem OrganizationalUnitIdentifier: admin OrdererOUIdentifier: Certificate: cacerts/ca.sampleorg-cert.pem OrganizationalUnitIdentifier: orderer````

RobinKlemens (Tue, 25 Aug 2020 15:51:56 GMT):
client, peer, admin, and orderer are the OU identifiers, that are currently supported. https://hyperledger-fabric.readthedocs.io/en/release-2.2/membership/membership.html#node-ou-roles-and-msps

akoita (Tue, 25 Aug 2020 19:59:57 GMT):
Hi, I have an error when trying to use NodeJS worker threads with Hyperledger Fabric Node SDK client: - fabric-node-sdk: 1.4.11 - NodeJS: 12.18.3 ``` error: uncaughtException: Failed to load node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node. Module did not self-register: 'node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node'. Error: Failed to load node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node. Module did not self-register: 'node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node'. at Object.Module._extensions..node (internal/modules/cjs/loader.js:1190:18) at Module.load (internal/modules/cjs/loader.js:976:32) at Function.Module._load (internal/modules/cjs/loader.js:884:14) at Module.require (internal/modules/cjs/loader.js:1016:19) at require (internal/modules/cjs/helpers.js:69:18) at Object. (/opt/api/node_modules/grpc/src/grpc_extension.js:32:13) at Module._compile (internal/modules/cjs/loader.js:1121:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10) at Module.load (internal/modules/cjs/loader.js:976:32) at Function.Module._load (internal/modules/cjs/loader.js:884:14) ``` Any idea how to solve this problem? Thanks

crestrer (Tue, 25 Aug 2020 20:23:59 GMT):
Thanks!! I'm gonna try.

ysai (Tue, 25 Aug 2020 23:26:27 GMT):
Hi everyone, does anyone have experience testing Typescript chaincode? My Fabric 2.2 chaincode uses a custom transaction context by overriding the createContext() method of Contract class. However, during test, I want to use a test context instead of the one created by createContext(), because the testContext is able to act as different test users and load test states. Currently I tried to stub createContext() using sinon.stub(contract, 'createContext').returns(testCtx);. But from the log I can still see the original createContext() being called. How can I substitute the custom context with a test context? Any help would be much appreciated!

ysai (Tue, 25 Aug 2020 23:26:27 GMT):
Hi everyone, does anyone have experience testing Typescript chaincode? My Fabric 2.2 chaincode uses a custom transaction context by overriding the `createContext()` method of `Contract` class. However, during test, I want to use a test context instead of the one created by `createContext()`, because the testContext is able to act as different test users and load test states. Currently I tried to stub `createContext()` using `sinon.stub(contract, 'createContext').returns(testCtx);`. But from the log I can still see the original `createContext()` being called. How can I substitute the custom context with a test context? Any help would be much appreciated!

ysai (Wed, 26 Aug 2020 01:20:46 GMT):
ok it seems although the original `createContext()` was called, but its output is not used as long as I pass testCtx to each transaction function as first argument during test. So I think it's all good now!

ysai (Wed, 26 Aug 2020 04:35:06 GMT):
Hi everyone, In the scenario where a client calls an intermediate chaincode, which in turn calls another chaincode using `invokeChaincode(chaincodeName, args, channel)`, the SDK document says the same transaction context would be forwarded to the second chaincode. I'm wondering if there is a way for the second chaincode to know whether the received transaction is from a client or an intermediate chaincode? Is it possible to inject info of the intermediate chaincode into the transaction context before calling `invokeChaincode(chaincodeName, args, channel)`? Thanks!

Rajatsharma (Wed, 26 Aug 2020 05:56:58 GMT):
You can get the name from the transaction context and check the name of the chaincode called. Then you can check if the context has any other name then the call is not made directly to the chaincode.

ysai (Wed, 26 Aug 2020 06:21:46 GMT):
@Rajatsharma could you tell me which api function I can use to get the target chaincode name from the transaction context?

ysai (Wed, 26 Aug 2020 06:21:46 GMT):
@Rajatsharma could you please tell me which api function I can use to get the target chaincode name from the transaction context? I went through the node sdk ChaincodeStub class but couldn't find which api would give me the name

Funbric (Wed, 26 Aug 2020 06:22:22 GMT):
Hello everyone, I have some question about the file `configtx.yaml` . Does fabric's channel can define it's own value about `BatchTimeout`, `BatchSize`? Or it just the feature of Orderer module.

Rajatsharma (Wed, 26 Aug 2020 06:25:11 GMT):
There's no built in function for this, you'll have to add this, on your own.

Rajatsharma (Wed, 26 Aug 2020 06:26:03 GMT):
You'll have to write a function to get the chaincode proposal and then extract the name from the proposal.

ysai (Wed, 26 Aug 2020 06:29:03 GMT):
Ah I see. I'll try add that. Thank you very much @Rajatsharma !

Rajatsharma (Wed, 26 Aug 2020 06:29:27 GMT):
Yes, let me know if you face any issues. I could help you with this.

ysai (Wed, 26 Aug 2020 06:55:01 GMT):
@Rajatsharma , there is a `getSignedProposal()` function that returns a [SignedProposal](https://hyperledger.github.io/fabric-chaincode-node/release-2.2/api/fabric-shim.SignedProposal.html), but I still couldn't find which field in the signed proposal contains the target cc name. How did you get the proposal?

crypto_beep (Wed, 26 Aug 2020 07:10:23 GMT):
HI Everyone, currently i'm facing issue of join channel with VMs, if i'm putting localhost then join channel working fine and when i'm putting this all over VM then getting this- Error: error getting endorser client for channel: endorser client failed to connect to 129.213.86.184:7051: failed to create new connection: context deadline exceeded.could anyone please let me know why I'm getting this error or how can i resolve this issue.

crypto_beep (Wed, 26 Aug 2020 07:10:23 GMT):
HI Everyone, currently i'm facing issue of join channel with VMs, if i'm putting localhost then join channel working fine and when i'm putting this all over VM then getting this- Error: error getting endorser client for channel: endorser client failed to connect to vm_ip:7051: failed to create new connection: context deadline exceeded.could anyone please let me know why I'm getting this error or how can i resolve this issue.

letmein (Wed, 26 Aug 2020 07:23:27 GMT):
hi

letmein (Wed, 26 Aug 2020 07:23:35 GMT):
anyone on?

Ahmeds168 (Wed, 26 Aug 2020 07:35:09 GMT):
Has joined the channel.

Ahmeds168 (Wed, 26 Aug 2020 07:35:09 GMT):
I have downloaded the latest fabric version which is 2.2.0 using the following command from hyperledger documentation website curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s But when it comes to run a test network using its network.sh file using the following command as directed by the hyperledger documentation website ./network.sh up I get the following error Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen' 2020-08-26 05:55:40.852 UTC [main] main -> INFO 001 Exiting..... LOCAL_VERSION=2.2.0 DOCKER_IMAGE_VERSION=1.1.0 =================== WARNING =================== Local fabric binaries and docker images are out of sync. This may cause problems. =============================================== ERROR! Fabric Docker image version of 1.1.0 does not match the versions supported by the test network.

Rajatsharma (Wed, 26 Aug 2020 07:41:27 GMT):
I had written this in go: `func GetChaincodeName(propsalBytes []byte) (string, error) { prop := &pb.Proposal{} proto.Unmarshal(propsalBytes, prop) if prop == nil { return "", errors.New(res.ProposalIsNil) } ccPropPayload := GetChaincodeProposalPayload(prop.Payload) cis := &pb.ChaincodeInvocationSpec{} err := proto.Unmarshal(ccPropPayload.Input, cis) if err != nil { return "", errors.New(res.ErrorUnmarshalingChaincodeInvocationSpec) } return cis.ChaincodeSpec.ChaincodeId.Name, nil } `

Rajatsharma (Wed, 26 Aug 2020 07:41:27 GMT):
I had written this in go: ```func GetChaincodeName(propsalBytes []byte) (string, error) { prop := &pb.Proposal{} proto.Unmarshal(propsalBytes, prop) if prop == nil { return "", errors.New(res.ProposalIsNil) } ccPropPayload := GetChaincodeProposalPayload(prop.Payload) cis := &pb.ChaincodeInvocationSpec{} err := proto.Unmarshal(ccPropPayload.Input, cis) if err != nil { return "", errors.New(res.ErrorUnmarshalingChaincodeInvocationSpec) } return cis.ChaincodeSpec.ChaincodeId.Name, nil } ```

ysai (Wed, 26 Aug 2020 07:59:34 GMT):
I've found the chaincode_id field. Thanks a lot!

ZappaBoy (Wed, 26 Aug 2020 08:46:41 GMT):
Try to define the images version something like this: `curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 2.2.0 1.4.8 -s`.

ZappaBoy (Wed, 26 Aug 2020 08:50:21 GMT):
Hi all, can anyone help me? I need to access to the endorsing transaction timestamp. I think that is possible trough Fabric Node SDK. Now I get the timestamp using `ctx.stub.getTxTimestamp()` but this is the proposal transaction i think.

ZappaBoy (Wed, 26 Aug 2020 08:51:36 GMT):
I need of the same time showed in Hyperledger Explorer, I think it's the same of the block that contains the transaction but i don't know how get it trough Node SDK

ZappaBoy (Wed, 26 Aug 2020 10:10:44 GMT):
Is there anyone?

Ahmeds168 (Wed, 26 Aug 2020 10:37:53 GMT):
thanks

tongli (Wed, 26 Aug 2020 11:38:22 GMT):
@Ahmeds168 take a look at minifabric, which is a lot easier and cleaner to do things with fabric.

tongli (Wed, 26 Aug 2020 11:39:14 GMT):
https://github.com/litong01/minifabric

tongli (Wed, 26 Aug 2020 11:40:16 GMT):
You will surely have a fabric network you want up running in few minutes

ZappaBoy (Wed, 26 Aug 2020 11:48:36 GMT):
Anyone can help me?

SpecialAgentCooper (Wed, 26 Aug 2020 12:02:37 GMT):
I was told by a bot to redirect here. It's not really a question, but rather an invitation to discuss hyperledger fabric and blockchain tech more generally: Hi, I work for an asset manager and my current project is a blockchain POC related to regulatory compliance. We have just finished the first stage and are now assessing the requirements of taking it forward i.e. how do we take the tech 'inside' with a view to releasing and supporting a blockchain in prod. I'm looking to make some contacts who have experience in this area. I would be delighted to hear from: - companies with blockchains in prod; developers, network operators, project managers - anyone involved. - consultancies with experience taking blockchain POCs to prod - hyperledger fabric contributors with a view of the landscape of private blockchain tech If that sounds like you and you would like to chat about your projects then send me a DM. Could be a good networking opportunity if nothing else, but I'm keen to hear about your experiences, the challenges you faced and your opinions about the state of blockchain tech (particular hyperledger fabric). Thanks 👍

PrajjwalMehta (Wed, 26 Aug 2020 12:41:30 GMT):
Has joined the channel.

PrajjwalMehta (Wed, 26 Aug 2020 12:41:30 GMT):
Hello.

PrajjwalMehta (Wed, 26 Aug 2020 12:41:59 GMT):
I need someone who can tell me about errors and faults while invoking and installing the chaincode.

PrajjwalMehta (Wed, 26 Aug 2020 12:42:44 GMT):
I am able to install, approve and commit but when i invoke the chaincode, it says only channel definition exists, chaincode is not installed.

GiorgiGelashvili (Wed, 26 Aug 2020 14:43:18 GMT):
Has joined the channel.

GiorgiGelashvili (Wed, 26 Aug 2020 14:44:17 GMT):

Screen Shot 2020-08-26 at 18.43.42.png

GiorgiGelashvili (Wed, 26 Aug 2020 14:45:01 GMT):
Hello, can anyone help me with this error. Fabric v2.1. This happens when I start transaction

fasmat (Wed, 26 Aug 2020 16:20:32 GMT):
Hi everyone! I have a use case where I would like to sign a fabric transaction with the users key offline and send it to the endorser. I know this is possible with the Node SDK: https://github.com/hyperledger/fabric-sdk-node/blob/master/docs/tutorials/sign-transaction-offline.md but can something like this also be done using the fabric-sdk-go?

bestbeforetoday (Wed, 26 Aug 2020 16:24:11 GMT):
If you are (or can) use Fabric v2, it might be worth trying the v2.2 Node SDK to see if that avoids the problem. The v2.2 Node SDK uses a newer, pure JavaScript gRPC implementation whereas the gRPC implementation used by v1.4 requires native libraries, which _might_ be what is causing this failure

bestbeforetoday (Wed, 26 Aug 2020 16:50:28 GMT):
You can get block events using a block listener: https://hyperledger.github.io/fabric-sdk-node/release-2.2/module-fabric-network.Network.html#addBlockListener The `blockData` property on those block events are the protobuf data, so you can navigate your way to any information contained in the block. Off the top of my head, I don't recall where in that structure any timestamps might be. The Fabric protobuf definitions do define the structure but are not particularly easy to pick apart: https://github.com/hyperledger/fabric-protos

akoita (Wed, 26 Aug 2020 18:21:07 GMT):
Okay, I see, but unfortunately we can't migrate to Fabric version 2 right now. Thanks for this information.

marcus.mello (Wed, 26 Aug 2020 20:04:57 GMT):
Hello everyone. I got a problem with an 1.4.6 Fabric network with a network (27 peers and 5 orderers) where there is one peer (anchor peer) in an Organization that stopped commiting transactions. I can't understand why it started showing this message without any updates on the network, but it was working normally before that. The message is: 2020-08-26 19:56:35.147 UTC [gossip.privdata] fetchPrivateData -> WARN fc2 Do not know any peer in the channel( xxxx ) that matches the policies , aborting 2020-08-26 19:56:35.147 UTC [gossip.privdata] fetchFromPeers -> WARN fc3 Failed fetching private data for block 743444 from peers: Empty membership 2020-08-26 19:56:36.149 UTC [gossip.privdata] fetchPrivateData -> WARN fc4 Do not know any peer in the channel( xxxx ) that matches the policies , aborting I know we should have other peers configured to disseminate the pvt data, but unfortunately we didn't did it and now i need to find a way to make this peer work again. All the others 26 are fine and they all have the same config (changing only the Organization). Can anyone help me to find a way to just make this peer accept and commit new transaction even if it causes some of the pvt data to be lost ?

chrisguoado (Wed, 26 Aug 2020 21:33:49 GMT):
Has joined the channel.

claudiocebpaz (Thu, 27 Aug 2020 01:08:45 GMT):
Has joined the channel.

Funbric (Thu, 27 Aug 2020 01:51:52 GMT):
Hi, everyone. Can I remove an orgnization from a channel?

bhuwanadhikari (Thu, 27 Aug 2020 04:15:23 GMT):
Has joined the channel.

bhuwanadhikari (Thu, 27 Aug 2020 04:15:23 GMT):
I found that the fabric samples in github has 2.0 as beta. I am beginner in hyperledger fabric. Which version should I start with?

BrettLogan (Thu, 27 Aug 2020 04:50:19 GMT):
Use this command to clone the samples repo and set everything up. `curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.7` While samples hasn't been tagged yet for 2.2, the current master branch (which is what this command will give you) is what works with our current 2.2 LTS release

BrettLogan (Thu, 27 Aug 2020 04:50:38 GMT):
This will bootstrap everything you need for running fabric-samples

bhuwanadhikari (Thu, 27 Aug 2020 04:51:19 GMT):
ahh thanks..

BrettLogan (Thu, 27 Aug 2020 04:52:26 GMT):
Can you throw this on our mailing list, you'll get a lot more traction there: fabric@lists.hyperledger.org

BrettLogan (Thu, 27 Aug 2020 04:56:43 GMT):
Have you tried doing an `npm rebuild` to rebuild the native gRPC module. Simply deleting the `node_modules` directory and reinstalling wont get you as far as doing an `npm install && npm rebuild` it sounds counterintuitive but it's worked. The native gRPC module was a nightmare and glad its almost behind us

BrettLogan (Thu, 27 Aug 2020 04:58:35 GMT):
Are you invoking on a peer you commited the chaincode to? Unlike in v1.4 where instantiation caused the chaincode to become active on all peer with it installed, 2.x allows the admin to choose when to activate the chaincode via a commit. If you are invoking on a peer different than the one you committed on this would cause this error.

BrettLogan (Thu, 27 Aug 2020 05:01:24 GMT):
Have you included the VM IP in the SANS section of your certificates when you generated them? Both the Fabric-CA and cryptogen support the use of SANS

BrettLogan (Thu, 27 Aug 2020 05:01:39 GMT):
If you haven't, the TLS handshake will fail

BrettLogan (Thu, 27 Aug 2020 05:02:28 GMT):
Many of the peer commands also have a `--ordererTLSHostnameOverride` that you can use at runtime to override the hostname (by using your ip) if you didn't put it in the SANS

BrettLogan (Thu, 27 Aug 2020 05:05:54 GMT):
Can you try removing the sort. Fabric expects to use the sort defined by your index, not one you provide at query time.

rbole (Thu, 27 Aug 2020 05:28:01 GMT):
Health check

sathyakplm (Thu, 27 Aug 2020 07:08:43 GMT):
Has joined the channel.

JeffyJoseph (Thu, 27 Aug 2020 08:03:05 GMT):
We use a custom CA implementation with Hyperledger Fabric taking Fabric CA as a reference. We have seen that enrollment certificates generated by Fabric CA do not have extended key usages. We have an internal certificate generation standards that flag this as it requires that all certificates generated have the minimum set of EKU Object Identifiers (OIDs) to enable the supported product or business scenario and the anyExtendedKeyUsage OID (2.5.29.37.0) is not allowed either. What is the minimum set of EKUs for enrollment certificates? Would id-kp-codeSigning be a correct EKU?

JeffyJoseph (Thu, 27 Aug 2020 08:04:19 GMT):
We use a custom CA implementation with Hyperledger Fabric taking Fabric CA as a reference. We have seen that enrollment certificates generat

pkirkinezis (Thu, 27 Aug 2020 08:59:05 GMT):
Did anyone has a clue of this error "{"result":"","errors":[{"code":0,"message":"The CSR subject common name must equal the enrollment ID"} ],"messages":[],"success":false}"

marcus.mello (Thu, 27 Aug 2020 11:49:18 GMT):
okay, thank you brett

mhgarcia (Thu, 27 Aug 2020 12:03:54 GMT):
Has joined the channel.

mhgarcia (Thu, 27 Aug 2020 12:03:54 GMT):
.

visheshgupta (Thu, 27 Aug 2020 12:44:45 GMT):
Has joined the channel.

VarunArya (Thu, 27 Aug 2020 12:55:12 GMT):
Has joined the channel.

akoita (Thu, 27 Aug 2020 13:32:31 GMT):
Hi Brett, I have used different combinations of npm install, npm rebuild, etc, but maybe not exactly as you say. When I have a moment I will try this combination. In the meantime I had to switch to child_process to parallelize my tasks, even if this is not the best solution. Thanks

JeffyJoseph (Thu, 27 Aug 2020 14:14:17 GMT):
We use a custom CA implementation with Hyperledger Fabric taking Fabric CA as a reference. We have seen that enrollment certificates generated by Fabric CA do not have extended key usages. We have an internal certificate generation standards that flag this as it requires that all certificates generated have the minimum set of EKU Object Identifiers (OIDs) to enable the supported product or business scenario and the anyExtendedKeyUsage OID (2.5.29.37.0) is not allowed either. What is the minimum set of EKUs for enrollment certificates? Would id-kp-codeSigning be a correct EKU?

HLFPOC (Thu, 27 Aug 2020 14:44:33 GMT):
Hi Team, What would be the best way to push multiple records (assets) in the ledger provided all of them will have unique keys? Looping through the SDK (sending every record as a single transaction in a loop from the SDK) or sending a single transaction to the chaincode with all the relevant data and put a loop in the chaincode? Quantity of the records would be somewhere around 300-600 along with 4-5 attributes per asset. Has anybody tried it before and can share suggestions on this?

bestbeforetoday (Thu, 27 Aug 2020 15:03:08 GMT):
I think within limits, batching multiple asset creates/updates is generally more performant as you are avoiding some overhead in processing larger numbers of transactions. But you will probably need to experiment to find a batch size that gives best results for your workload. There are some performance figures here: https://hyperledger.github.io/caliper-benchmarks/fabric/performance/2.1.0/nodeContract/nodeSDK/submit/batch-create-asset/

bestbeforetoday (Thu, 27 Aug 2020 15:03:08 GMT):
I think within limits, batching multiple asset creates/updates is generally more performant as you are avoiding some overhead in processing larger numbers of transactions. But you will probably need to experiment to find a batch size that gives best results for your workload. There are some performance comparison here: https://hyperledger.github.io/caliper-benchmarks/fabric/performance/2.1.0/nodeContract/nodeSDK/submit/batch-create-asset/

trinayanbhatt (Thu, 27 Aug 2020 15:08:28 GMT):
Yes, it worked without passing sort but the problem was in the index definition. It worked after properly defining the both the indexes in the required order.

trinayanbhatt (Thu, 27 Aug 2020 15:08:55 GMT):
Thanks for the help.

donnie.stewart (Thu, 27 Aug 2020 16:30:54 GMT):
Hi all, I am currently trying to Build Hyperledger Fabric. Building this is taking a long time and I was wondering if there are any ways to compile it faster?

qadahtm (Thu, 27 Aug 2020 16:59:04 GMT):
Has joined the channel.

Paradox-AT (Thu, 27 Aug 2020 18:20:24 GMT):
Hi @awjh, Can you redirect me to the documentation where this is referred? BTW thanks for the answer!

Paradox-AT (Thu, 27 Aug 2020 18:20:24 GMT):
Hi @awjh, Can you redirect me to the documentation where this is referred? I am still getting this: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ```

Paradox-AT (Thu, 27 Aug 2020 18:29:47 GMT):
Hey Guys, I was trying to query data with the 2.2 network but after getting all the data when it is returning the value I am getting: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ``` Anyone have any idea how to solve it? Earlier I was getting similar error but that was solved on (this)[https://chat.hyperledger.org/channel/fabric-questions/thread/7AMBPYzYA6XJvZ3Ft?msg=auZG5vWf5RChmewxW] thread Thanks @LazarLukic95 @awjh

Paradox-AT (Thu, 27 Aug 2020 18:29:47 GMT):
Hey Guys, I was trying to query data with the 2.2 network but after getting all the data when it is returning the value I am getting: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ``` Anyone have any idea how to solve it? Earlier I was getting similar error but that was solved on [this](https://chat.hyperledger.org/channel/fabric-questions/thread/7AMBPYzYA6XJvZ3Ft?msg=auZG5vWf5RChmewxW) thread Thanks @LazarLukic95 @awjh

Paradox-AT (Thu, 27 Aug 2020 18:29:47 GMT):
Hey Guys, I was trying to query data with the 2.2 network but after getting all the data when it is returning the value I am getting: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ``` Anyone have any idea how to solve it? Earlier I was getting similar error but that was solved on [this](https://chat.hyperledger.org/channel/fabric-questions/thread/7AMBPYzYA6XJvZ3Ft?msg=auZG5vWf5RChmewxW) thread I've to thank @LazarLukic95 and @awjh for that

Paradox-AT (Thu, 27 Aug 2020 18:29:47 GMT):
Hey Guys, I was trying to query data with the 2.2 network but after getting all the data when it is returning the value I am getting: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ``` Anyone have any idea how to solve it? Earlier I was getting similar error to [this](https://chat.hyperledger.org/channel/fabric-questions/thread/7AMBPYzYA6XJvZ3Ft?msg=auZG5vWf5RChmewxW) thread But after I've added the metadata property I am getting this error

Paradox-AT (Thu, 27 Aug 2020 18:29:47 GMT):
Hey Guys, I was trying to query data with the 2.2 network but after getting all the data when it is returning the value I am getting: ``` Error creating blockit chaincode: Cannot use metadata. Metadata did not match schema: 1. components.schemas.AssessmentReasons.required: Array must have at least 1 items 2. components.schemas.MetaData.required: Array must have at least 1 items 3. components.schemas.RiskAssessment.required: Array must have at least 1 items 4. components.schemas.User.required: Array must have at least 1 items% ``` Anyone have any idea how to solve it? Earlier I was getting similar error to [this](https://chat.hyperledger.org/channel/fabric-questions/thread/7AMBPYzYA6XJvZ3Ft?msg=auZG5vWf5RChmewxW) thread But after I've added the metadata property I am getting this error Any idea @awjh @LazarLukic95 ??

arjones (Thu, 27 Aug 2020 19:19:16 GMT):
Hello. Does anyone know the allowed characters for channel names? I wasn't able to find it online, and it seems like underscores and hyphens are not allowed.

donnie.stewart (Fri, 28 Aug 2020 01:10:33 GMT):
Hey everyone, I am Setting up the development environment to build fabric and I keep getting this error:`DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports LINT: Running code checks.. ./scripts/golinter.sh Checking with gofmt Checking with goimports ./scripts/golinter.sh: line 29: goimports: command not found make: *** [linter] Error 127 ` Can anyone help with solving this issue?

awjh (Fri, 28 Aug 2020 08:28:26 GMT):
Hi without seeing your code its hard to know fully what is going on but I am guessing the previous error you mention that matched the one in the thread was hiding this. This error seems to imply that you have an array type that in the JSON is being returned empty [] when the struct definition states it to have a length? Is this right? If so it may be that JSON returns an empty array for arrays rather than removes it as a field. I can't say I've tried anything such as that

weishancc (Fri, 28 Aug 2020 08:37:16 GMT):
Hi, Are there any bug issue of the fabric-node-sdk on the docker-swarm multihost environment? Sometimes i can run query.js and invoke.js correctly, whereas sometimes the bug occurred: `error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`

weishancc (Fri, 28 Aug 2020 08:37:16 GMT):
Hi, is there any bug issue of the fabric-node-sdk on the docker-swarm multihost environment? Sometimes i can run query.js and invoke.js correctly, whereas sometimes the bug occurred: `error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`

weishancc (Fri, 28 Aug 2020 08:37:16 GMT):
Hi, is there any bug issue of the fabric-node-sdk on the docker-swarm multihost environment? Sometimes i can run query.js and invoke.js correctly, whereas sometimes the bug occurred (fabric version = sdk= v1.4.1): `error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`

weishancc (Fri, 28 Aug 2020 08:37:16 GMT):
Hi, is there any bug issue of the fabric-node-sdk on the docker-swarm multihost environment? Sometimes i can run query.js and invoke.js correctly, whereas sometimes the bug occurred (fabric: v1.4.1, sdk: v1.4.11): `error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: [], stack=FabricError: No peers available to query. Errors: []`

visheshgupta (Fri, 28 Aug 2020 09:09:20 GMT):
hello everyone, i am trying to setup order and peers containers on different VM, but unable to make connections between them. Does anyone know how to setup this network

AshutoshKumar7 (Fri, 28 Aug 2020 10:28:24 GMT):
can u add more details. How are you making peers,orderers and CAs talk in different hosts? What error are you getting?I have tried on multiple kubernetes clsuters by exposing through ingress. It works

visheshgupta (Fri, 28 Aug 2020 10:39:41 GMT):
Hi Ashutosh,

visheshgupta (Fri, 28 Aug 2020 10:41:32 GMT):
I am using docker compose files for order and peer

visheshgupta (Fri, 28 Aug 2020 10:42:40 GMT):
and try to run one order container on server and peer on another but unable to make connections bw them

ricba (Fri, 28 Aug 2020 11:02:07 GMT):
Has joined the channel.

PrajjwalMehta (Fri, 28 Aug 2020 13:34:11 GMT):
Please share the orderer.yaml and core.yaml file that you are using.

rijulaggarwal (Fri, 28 Aug 2020 17:30:19 GMT):
Has joined the channel.

AshishBabar (Fri, 28 Aug 2020 18:18:32 GMT):
Has joined the channel.

BrettLogan (Sat, 29 Aug 2020 02:56:41 GMT):
You need to run `make gotools` to install all of the Golang Tooling you need

donnie.stewart (Sat, 29 Aug 2020 03:01:05 GMT):
When I run that command I get: "make: Nothing to be done for `gotools'." because I already installed these dependencies. Additionally, I noticed the goimports executable is in my $GOPATH/bin

BrettLogan (Sat, 29 Aug 2020 03:15:35 GMT):
is `$GOPATH/bin` on your `$PATH` variable

donnie.stewart (Sat, 29 Aug 2020 03:32:29 GMT):
Thank you that solved it

lihuawei (Sat, 29 Aug 2020 04:12:25 GMT):
hi there, does anyone know when fabric go sdk release?

AshutoshKumar7 (Sat, 29 Aug 2020 04:25:50 GMT):
I think u need to use docker swarm for multiple host machines. Does compose has a networking mechanism across hosts?

OdiljonErgashev (Sat, 29 Aug 2020 09:23:50 GMT):
Has joined the channel.

OdiljonErgashev (Sat, 29 Aug 2020 09:23:50 GMT):
Where is fabric-sdk-java channel ?

SubhodI (Sat, 29 Aug 2020 11:04:34 GMT):
I understand how fabric-gateway-sdk can pickup a wallet to submit transactions. As in the gateway documentation, Path walletDirectory = Paths.get("wallet"); Wallet wallet = Wallets.newFileSystemWallet(walletDirectory); // Path to a common connection profile describing the network. Path networkConfigFile = Paths.get("connection.json"); // Configure the gateway connection used to access the network. Gateway.Builder builder = Gateway.createBuilder() .identity(wallet, "user1") .networkConfig(networkConfigFile); How to create this `wallet` file? This wallet has to be registered with the CA too. Why don't gateway-sdk provide methods to register a user and create this wallet?

SubhodI (Sat, 29 Aug 2020 11:04:34 GMT):
I understand how fabric-gateway-sdk can pickup a wallet to submit transactions. As in the gateway documentation, ` Path walletDirectory = Paths.get("wallet"); Wallet wallet = Wallets.newFileSystemWallet(walletDirectory); // Path to a common connection profile describing the network. Path networkConfigFile = Paths.get("connection.json"); // Configure the gateway connection used to access the network. Gateway.Builder builder = Gateway.createBuilder() .identity(wallet, "user1") .networkConfig(networkConfigFile);` How to create this `wallet` file? This wallet has to be registered with the CA too. Why don't gateway-sdk provide methods to register a user and create this wallet?

SubhodI (Sat, 29 Aug 2020 11:04:34 GMT):
I understand how fabric-gateway-sdk can pickup a wallet to submit transactions. As in the gateway documentation, ``` Path walletDirectory = Paths.get("wallet"); Wallet wallet = Wallets.newFileSystemWallet(walletDirectory); // Path to a common connection profile describing the network. Path networkConfigFile = Paths.get("connection.json"); // Configure the gateway connection used to access the network. Gateway.Builder builder = Gateway.createBuilder() .identity(wallet, "user1") .networkConfig(networkConfigFile); ``` How to create this `wallet` file? This wallet has to be registered with the CA too. Why don't gateway-sdk provide methods to register a user and create this wallet?

SubhodI (Sat, 29 Aug 2020 11:04:34 GMT):
I understand how fabric-gateway-sdk can pickup a wallet to submit transactions. As in the gateway documentation, ``` Path walletDirectory = Paths.get("wallet"); Wallet wallet = Wallets.newFileSystemWallet(walletDirectory); // Path to a common connection profile describing the network. Path networkConfigFile = Paths.get("connection.json"); // Configure the gateway connection used to access the network. Gateway.Builder builder = Gateway.createBuilder() .identity(wallet, "user1") .networkConfig(networkConfigFile); ``` How to create this `wallet` file? This wallet has to be registered with the CA too. I am wondering how to register a user with the certificate authority and create a wallet file out of those?

NizomjonKhajiev (Sat, 29 Aug 2020 14:45:10 GMT):
Has joined the channel.

NizomjonKhajiev (Sat, 29 Aug 2020 14:45:10 GMT):
wallet means not file this one is folder, admin and users private and public keys stored

NizomjonKhajiev (Sat, 29 Aug 2020 14:45:26 GMT):
#fabric-questions

NizomjonKhajiev (Sat, 29 Aug 2020 14:45:52 GMT):
#fabric-sdk-java I have a issue

NizomjonKhajiev (Sat, 29 Aug 2020 15:09:05 GMT):
org.hyperledger.fabric_ca.sdk.HFCAClient$AllHostsSSLSocketFactory cannot be cast to org.apache.http.conn.socket.ConnectionSocketFactory How Can I resolve this issue ?

SubhodI (Sat, 29 Aug 2020 15:28:11 GMT):
In case if I would like to use another user account for submitting transaction, How can I create credential file under this wallet directory?

visheshgupta (Sat, 29 Aug 2020 15:28:27 GMT):
@AshutoshKumar7 Is there any way other than swarm or kubernetes?

visheshgupta (Sat, 29 Aug 2020 15:30:10 GMT):
i am using etc/hosts approach but during approve chaincode part i am facing some issues

visheshgupta (Sat, 29 Aug 2020 15:31:42 GMT):
@PrajjwalMehta i am using default file in fabric test network

NizomjonKhajiev (Sat, 29 Aug 2020 15:51:38 GMT):
you should bring your credential files to wallet folder, your file name should start with for ex ("user1")

NizomjonKhajiev (Sat, 29 Aug 2020 15:51:53 GMT):
.identity(wallet, "user1") looks from wallet folder

jesus.vega (Sat, 29 Aug 2020 16:04:37 GMT):
Has joined the channel.

jesus.vega (Sat, 29 Aug 2020 16:04:37 GMT):
hello

jesus.vega (Sat, 29 Aug 2020 16:05:25 GMT):
i have a problem with go sdk here i can make the question ?

jesus.vega (Sat, 29 Aug 2020 16:27:28 GMT):
UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes

babiskg (Sat, 29 Aug 2020 17:38:10 GMT):
hello, i want to use dashboard for my fabric network, which one do you suggest to me? where can i fin a tutorial?

babiskg (Sat, 29 Aug 2020 17:38:10 GMT):
hello, i want to use dashboard for my fabric network, which one do you suggest to me? where can i find a tutorial?``` ```

tongli (Sun, 30 Aug 2020 03:26:35 GMT):
@babiskg you can certainly look at minifabric and boot up explorer where you can see things happening on the network.

tongli (Sun, 30 Aug 2020 03:27:10 GMT):
https://github.com/litong01/minifabric

eduardopezzi (Sun, 30 Aug 2020 20:32:13 GMT):
Error: received bad response, status 500: access denied for [GetChainInfo][mychannel]: [Failed evaluating policy on signed data during check policy on channel [mychannel] with policy [/Channel/Application/Readers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied]]

benjykim (Mon, 31 Aug 2020 02:59:59 GMT):
Has joined the channel.

benjykim (Mon, 31 Aug 2020 02:59:59 GMT):
Hello I have a problem with python-sdk I want to send tx proposal like these "peers = ['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke(requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']...)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk?

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke(requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']...)) ``` #fabric-sdk-py Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk?

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke(requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']...)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk?

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke(requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']...)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk? #fabric-sdk-py

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke(requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com']...)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk? #fabric-questions #fabric-sdk-py

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke( requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com'], fcn="createCar", args=req.args)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk? #fabric-questions #fabric-sdk-py

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke( requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com'], fcn="createCar", args=req.args)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk? Or is there any examples about multi-host with python-sdk? #fabric-questions #fabric-sdk-py

benjykim (Mon, 31 Aug 2020 03:06:05 GMT):
Hello I want to ask some question about setting endorsing peers. In my code, I want to set like these... * environment peer0.org1 - node1(10.10.10.1) peer0.org2 - node2(10.10.10.2) peer0.org3 - node3(10.10.10.3) ``` response = loop.run_until_complete(cli.chaincode_invoke( requestor=org_admin, channel_name="mychannel", peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com'], fcn="createCar", args=req.args)) ``` Can the tx proposal be forwarded to the endorsing peer in another node? by using python sdk? Or is there any examples about multi-host with python-sdk? Also, I posted this question at 'https://stackoverflow.com/questions/63665493/hyperledger-fabric-can-transaction-proposal-be-forwarded-to-the-endorsing-peer' #fabric-questions #fabric-sdk-py

jaeseok3 (Mon, 31 Aug 2020 07:46:36 GMT):
Has joined the channel.

jaeseok3 (Mon, 31 Aug 2020 07:46:36 GMT):
hi, guys. I'm new to hyperledger fabric and I have some problems in installing the developing tools. I already did "make gotools" and now I want to do "make basic-checks integration-test-prereqs", but some error exists. First, A error log that "xargs: misspell : not found". And second, after i typed gofmt -l -s -w ... & goimports -l -w ... , the imports of msp/configbuilder.go was changed.

jaeseok3 (Mon, 31 Aug 2020 07:47:16 GMT):
I'm sorry for that I can't write english well cause i'm korean

jaeseok3 (Mon, 31 Aug 2020 07:54:22 GMT):
for example of msp/configbuilder.go file Before gofmt and goimports, in the imports part of code, there was a "gopkg.in/yaml.v2", but when i typed above two commands, the yaml line disappeared. So I doubt that the cause of this problem is goimports. but i don't know how to solve it. If someone solves this problem, it will be very glad to help me. :sob:

RobinKlemens (Mon, 31 Aug 2020 10:36:19 GMT):
@crestrer How ist your current state of development?

Adhavpavan (Mon, 31 Aug 2020 16:37:59 GMT):
@AshutoshKumar7 can you mention error you are getting while approving chaincode?

rbole (Mon, 31 Aug 2020 16:43:28 GMT):
How can I calculate the hardware requirements of a fabric network? How many CPUs, RAMs, etc ?

Adhavpavan (Mon, 31 Aug 2020 16:55:01 GMT):
When you get tx by tx id, it will have creator identity

Adhavpavan (Mon, 31 Aug 2020 16:58:35 GMT):
In Fabric sample, we have offchain data, its purpose is exactly same what you mentioned here, it is user to analytics. When block is committed to ledger, we register event Blocklistener and we get all block data, segregate it and save it

bhuwanadhikari (Mon, 31 Aug 2020 17:04:12 GMT):
am using fabric version 2.2 for upping a test network. I tried to up the test network as ``` ```

bhuwanadhikari (Mon, 31 Aug 2020 17:04:12 GMT):
am using fabric version 2.2 for upping a test network. I tried to up the test network as ``` ``` ./network.sh up -ca ``` but gives this error by saying ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'Certificate Authorities' LOCAL_VERSION=2.2.0 DOCKER_IMAGE_VERSION=2.2.0 Unable to find image 'hyperledger/fabric-ca:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown. See 'docker run --help'. CA_LOCAL_VERSION=1.4.8 CA_DOCKER_IMAGE_VERSION= Local fabric-ca binaries and docker images are out of sync. This may cause problems. Generate certificates using Fabric CA's Creating network "net_test" with the default driver Pulling ca_org1 (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown Create Org1 Identities Enroll the CA admin + fabric-ca-client en ```

bhuwanadhikari (Mon, 31 Aug 2020 17:04:12 GMT):
am using fabric version 2.2 for upping a test network. I tried to up the test network as ``` ``` ./network.sh up -ca ``` but gives this error by saying ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'Certificate Authorities' LOCAL_VERSION=2.2.0 DOCKER_IMAGE_VERSION=2.2.0 Unable to find image 'hyperledger/fabric-ca:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown. See 'docker run --help'. CA_LOCAL_VERSION=1.4.8 CA_DOCKER_IMAGE_VERSION= Local fabric-ca binaries and docker images are out of sync. This may cause problems. Generate certificates using Fabric CA's Creating network "net_test" with the default driver Pulling ca_org1 (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown Create Org1 Identities Enroll the CA admin + fabric-ca-client en ```

bhuwanadhikari (Mon, 31 Aug 2020 17:04:12 GMT):
am using fabric version 2.2 for upping a test network. I tried to up the test network as ``` ./network.sh up -ca ``` but gives this error by saying ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'Certificate Authorities' LOCAL_VERSION=2.2.0 DOCKER_IMAGE_VERSION=2.2.0 Unable to find image 'hyperledger/fabric-ca:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown. See 'docker run --help'. CA_LOCAL_VERSION=1.4.8 CA_DOCKER_IMAGE_VERSION= Local fabric-ca binaries and docker images are out of sync. This may cause problems. Generate certificates using Fabric CA's Creating network "net_test" with the default driver Pulling ca_org1 (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown Create Org1 Identities Enroll the CA admin + fabric-ca-client en ```

bhuwanadhikari (Mon, 31 Aug 2020 17:04:12 GMT):
am using fabric version 2.2 for upping a test network. I tried to up the test network as ``` ./network.sh up -ca ``` but gives this error by saying ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'Certificate Authorities' LOCAL_VERSION=2.2.0 DOCKER_IMAGE_VERSION=2.2.0 Unable to find image 'hyperledger/fabric-ca:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown. See 'docker run --help'. CA_LOCAL_VERSION=1.4.8 CA_DOCKER_IMAGE_VERSION= Local fabric-ca binaries and docker images are out of sync. This may cause problems. Generate certificates using Fabric CA's Creating network "net_test" with the default driver Pulling ca_org1 (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found: manifest unknown: manifest unknown Create Org1 Identities Enroll the CA admin + fabric-ca-client en ``` How to resolve this?? please help

tongli (Mon, 31 Aug 2020 17:25:46 GMT):
@bhuwanadhikari if you have like 5 minutes, may take a look at this new tool https://github.com/litong01/minifabric. You probably wont need to worry about these kind of errors.

bhuwanadhikari (Mon, 31 Aug 2020 17:27:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RrKpMTDsuwJmktTX3) is this even a solution of above?

bhuwanadhikari (Mon, 31 Aug 2020 17:27:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RrKpMTDsuwJmktTX3) is this even a solution of above? Do I need to use another version of hyperledger? Can I do a project of drug provenance with minifabric?

tongli (Mon, 31 Aug 2020 18:34:53 GMT):
@bhuwanadhikari minifabric helps you stand up your fabric network quick and easy. Not sure about your drug prevention thing.

tongli (Mon, 31 Aug 2020 18:35:26 GMT):
And it ensures that each time you do that, it will be always correct.

bhuwanadhikari (Tue, 01 Sep 2020 02:24:37 GMT):
well, okay I am try with fabrci, if I can't go forward, I will try mini fabric.

BrettLogan (Tue, 01 Sep 2020 02:26:13 GMT):
How did you bootstrap fabric-samples? using `curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.7`

BrettLogan (Tue, 01 Sep 2020 02:26:15 GMT):
?

bhuwanadhikari (Tue, 01 Sep 2020 02:26:45 GMT):
yeah I don't rememeber well

bhuwanadhikari (Tue, 01 Sep 2020 02:27:20 GMT):
@BrettLogan how should it be done?

BrettLogan (Tue, 01 Sep 2020 02:27:25 GMT):
Just run this command `curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.7 -s -b` this will redownload the images

bhuwanadhikari (Tue, 01 Sep 2020 02:27:38 GMT):
okay thanks..

bhuwanadhikari (Tue, 01 Sep 2020 02:27:50 GMT):
1.4.7 represents what?

BrettLogan (Tue, 01 Sep 2020 02:27:54 GMT):
And then run `./network.sh down` from the `test-network` directory and then you can run `./network.sh up -ca`

BrettLogan (Tue, 01 Sep 2020 02:27:57 GMT):
The version of Fabric-CA

BrettLogan (Tue, 01 Sep 2020 02:28:08 GMT):
2.2.0 is the Fabric version, 1.4.7 is the Fabric-CA

bhuwanadhikari (Tue, 01 Sep 2020 02:28:21 GMT):
ahh okay thanks..

BrettLogan (Tue, 01 Sep 2020 02:29:25 GMT):
What branch of fabric are you on, and what version of Go are you using?

BrettLogan (Tue, 01 Sep 2020 02:30:09 GMT):
Our bootstrap script will pull the fabric and fabric-ca images and then retag them as latest for you

bhuwanadhikari (Tue, 01 Sep 2020 02:30:31 GMT):
for this do I need to delete existing images?

BrettLogan (Tue, 01 Sep 2020 02:30:38 GMT):
No

bhuwanadhikari (Tue, 01 Sep 2020 02:30:40 GMT):
or repulling will replace them?

bhuwanadhikari (Tue, 01 Sep 2020 02:30:47 GMT):
okay..

BrettLogan (Tue, 01 Sep 2020 02:31:04 GMT):
You should be good with just running the script

bhuwanadhikari (Tue, 01 Sep 2020 03:03:04 GMT):
Thanks it work.

bhuwanadhikari (Tue, 01 Sep 2020 03:03:04 GMT):
Thanks it worked

foocil (Tue, 01 Sep 2020 08:16:16 GMT):

Clipboard - September 1, 2020 10:16 AM

foocil (Tue, 01 Sep 2020 08:17:08 GMT):
Has joined the channel.

foocil (Tue, 01 Sep 2020 08:17:09 GMT):
Hello, I am quite new with Hyperledger and I am trying to use the test-network, but when i run ./network.sh deployCC I have the following error: which seems to be a problem with go. I tried to export the path as it is written here https://golang.org/doc/install, reboot the computer but it is still not working. Anyone has an idea of what i am doing wrong?

huytn.it (Tue, 01 Sep 2020 09:10:49 GMT):
did anyone deploy hf-v2.2.0 on multi host?

bestbeforetoday (Tue, 01 Sep 2020 10:01:47 GMT):
Answered in #fabric-sdk-java channel: https://chat.hyperledger.org/channel/fabric-sdk-java?msg=Cpu7kzevmnZRDYsT5

kokolaki (Tue, 01 Sep 2020 12:55:14 GMT):

image1.png

kokolaki (Tue, 01 Sep 2020 12:55:24 GMT):
Hello Community, I am trying to deploy java chaincode fabcar. I run the script" ./startFabric.sh java" in the fabcar directory of fabric-samples, using the instructions from "Write your first application" tutorial https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html and I have the following errors when it tries to instantiate fabcar on mychannel:

kokolaki (Tue, 01 Sep 2020 12:55:37 GMT):

image1.png

kokolaki (Tue, 01 Sep 2020 12:55:43 GMT):

image2.png

kokolaki (Tue, 01 Sep 2020 12:57:12 GMT):
Could anyone help and tell me how to deploy fabcar chaincode in java? If anyone know any good tutorial, I 'd appreciate it. Thank you very much!

bestbeforetoday (Tue, 01 Sep 2020 13:09:23 GMT):
Are you sure you have the latest version of the Fabcar chaincode project? It looks like Gradle is trying to resolve *fabric-chaincode-shim:2.0.0-SNAPSHOT* from *nexus.hyperledger.org*, and this no longer exists. You should probably be depending on *fabric-chaincode-shim:2.2.0* from Maven Central. The Fabric staging (snapshot) repository is now at *hyperledger.jfrog.io/hyperledger/fabric-maven* rather than *nexus.hyperledger.org*, which is what the current Fabcar `build.gradle` in GitHub points to

bestbeforetoday (Tue, 01 Sep 2020 13:10:27 GMT):
The current `build.gradle` lists the dependency as *org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+* so I would expect it to be picking v2.2.0

bestbeforetoday (Tue, 01 Sep 2020 13:10:27 GMT):
The current `build.gradle` lists the dependency as `org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+` so I would expect it to be picking v2.2.0

kokolaki (Tue, 01 Sep 2020 13:10:54 GMT):
I have install version 1.4 of fabric

kokolaki (Tue, 01 Sep 2020 13:11:45 GMT):
java chaincode cannot be installed with that version?

bestbeforetoday (Tue, 01 Sep 2020 13:12:24 GMT):
The latest _release-1.4_ branch of the samples repo lists the dependency as `org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4+` and has `https://hyperledger.jfrog.io/hyperledger/fabric-maven` as one of the respositories, so your dependencies still look wrong. It shouldn't be pulling from *nexus.hyperledger.org*

bestbeforetoday (Tue, 01 Sep 2020 13:13:34 GMT):
I wonder if some old dependencies are still lying around in your local repository? Might be worth clearing our your local Gradle cache and trying again if your `build.gradle` looks like the right version

kokolaki (Tue, 01 Sep 2020 13:19:58 GMT):
ok, I noticed that. I use tag v1.4.2 of fabric-samples. I will try to fix it. Thank you very much.

DivyanshuVerma (Tue, 01 Sep 2020 15:02:55 GMT):
Has joined the channel.

DivyanshuVerma (Tue, 01 Sep 2020 15:02:56 GMT):
Hello Community, I'm writing a selector query in my chaincode : ``` const query = `{ "selector": { "doctype": "PurchaseOrder", "$not": { "confirmedDeliveryDate": "" }, "confirmedDeliveryDate": { "$gte": "${currentDate}", "$lt": "${endDate}" } } }`; ``` The confirmedDeliveryDate stored in the DB is of the format "YYYY-MM-DD" and currentDate/endDate have the same format too. However, when I call this from my middleware application I get the following error: `warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer0.org1.example.com:7051" failed: message=error in simulation: transaction returned with failure: RangeError: Invalid time value, stack=Error: error in simulation: transaction returned with failure: RangeError: Invalid time value` Can someone point me the right direction?

bhuwanadhikari (Tue, 01 Sep 2020 17:51:55 GMT):
I am using hyperledger 2.2.0 and following test network tutorial but when I reached the invoking the chaincode, I got an error as explained below. I successfully committed the chaincode to the channel as there was output as ``` Committed chaincode definition for chaincode 'basic' on channel 'mychannel': Version: 1.0, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc, Approvals: [Org1MSP: true, Org2MSP: true] ``` and then I entered this command to invoke the transaction ``` peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"initLedger","Args":[]}' ``` but gave the following error ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: You've asked to invoke a function that does not exist: initLedger" ``` What caused this problem and How to solve this? Please help..

bhuwanadhikari (Tue, 01 Sep 2020 17:51:55 GMT):
I am using hyperledger 2.2.0 and following test network tutorial but when I reached the invoking the chaincode, I got an error as explained below. First I successfully committed the chaincode to the channel as there was output as ``` Committed chaincode definition for chaincode 'basic' on channel 'mychannel': Version: 1.0, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc, Approvals: [Org1MSP: true, Org2MSP: true] ``` and then I entered this command to invoke the transaction ``` peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"initLedger","Args":[]}' ``` but gave the following error ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: You've asked to invoke a function that does not exist: initLedger" ``` What caused this problem and How to solve this? Please help..

BrettLogan (Tue, 01 Sep 2020 18:17:48 GMT):
What format are your dates?

jaeseok3 (Wed, 02 Sep 2020 03:40:16 GMT):
my go version is 1.14,7 and branch is 'release-2.2'. And yesterday i found more problem. When I forked fabric, last updated is 2 month ago. So I think carefully that the cause of these problems(misspell, goimports) is updated date

jaeseok3 (Wed, 02 Sep 2020 03:42:10 GMT):

스크린샷, 2020-09-02 12-41-41.png

jaeseok3 (Wed, 02 Sep 2020 03:43:42 GMT):
this is forked fabric repository picture. And it shows me last updated date is 2 months ago at the right side of this picture.

bhuwanadhikari (Wed, 02 Sep 2020 04:13:49 GMT):
Well I found out that the tutorial has 'initLedger' and the chaincode has 'InitLedger'. That's why it gave this error.

saitejavankayala (Wed, 02 Sep 2020 04:40:15 GMT):
Has joined the channel.

donnie.stewart (Wed, 02 Sep 2020 05:08:49 GMT):

screenshot.png

donnie.stewart (Wed, 02 Sep 2020 05:08:57 GMT):
While running "make dist-clean all" trying to build fabric, i get this error^

donnie.stewart (Wed, 02 Sep 2020 05:10:12 GMT):
Has anyone encountered this before?

DivyanshuVerma (Wed, 02 Sep 2020 06:58:13 GMT):
"YYYY-MM-DD", the issue is resolved now. currentDate was improperly formatted, when sent from the middleware application.

rohitroyrr8 (Wed, 02 Sep 2020 10:32:49 GMT):
backing kafka cluster has not completed booting try again later``` getting above error while updating chaincode, please help. ```

rohitroyrr8 (Wed, 02 Sep 2020 10:32:49 GMT):
``` getting above error while updating chaincode, please help. ```

rohitroyrr8 (Wed, 02 Sep 2020 10:32:49 GMT):
getting above error while updating chaincode, please help.```backing kafka cluster has not completed booting try again later ```

rohitroyrr8 (Wed, 02 Sep 2020 10:32:49 GMT):
getting below error while updating chaincode, please help.```backing kafka cluster has not completed booting try again later ```

kokolaki (Wed, 02 Sep 2020 11:01:59 GMT):
Hello community, I use version 1.4.2 of fabric images and bin files and I am trying to deploy fabcar chaincode in java using fabric-samples release 1.4. In folder fabcar I run ./startFabric.sh java. My problem with that release is that it cannot generate container for fabric orderer as you can see in the picture. ( hyperledger/fabric-orderer:latest "orderer" Exited (2)) With tag v1.4.2 of fabric-samples it generates the network in javascript, but there are problems in java as I mentioned in my previous post. What is the correct tag in fabric-samples to checkout? I need to run java chaincode and i want an example to start. Thank you in advance.

kokolaki (Wed, 02 Sep 2020 11:02:18 GMT):

image1.png

visheshgupta (Wed, 02 Sep 2020 11:03:41 GMT):
chaincode container not started during commit hyperledger fabric

VictorStroganov (Wed, 02 Sep 2020 11:07:58 GMT):
Hello! I have a GO chaincode. I need to pass some params into it using metadata.json and hyperledger-contract-api-go.GetInfo() method. But I get empty result. Can anybody help me?

kokolaki (Wed, 02 Sep 2020 11:10:06 GMT):
If order container doesn't start, it cannot start chaincode container (instantiate fabcar to mychannel)

kokolaki (Wed, 02 Sep 2020 11:10:06 GMT):
If orderer container doesn't start, it cannot start chaincode container (instantiate fabcar to mychannel)

visheshgupta (Wed, 02 Sep 2020 11:11:06 GMT):
order and peer containers are running fine

visheshgupta (Wed, 02 Sep 2020 11:12:37 GMT):
when i install chaincode its docker image is created but during commit command container not able to start

kokolaki (Wed, 02 Sep 2020 11:13:59 GMT):
sorry, you refer in my question?

visheshgupta (Wed, 02 Sep 2020 11:16:10 GMT):
oh sorry

kokolaki (Wed, 02 Sep 2020 11:16:45 GMT):
sorry, me too

Jonty16117 (Wed, 02 Sep 2020 13:32:14 GMT):
Has joined the channel.

Jonty16117 (Wed, 02 Sep 2020 13:35:31 GMT):
Hello community....I am learning about fabric since last week. I want to make a secure permissibile decentralised network to implement a distributed ledger system. Can anybody help me......

Jonty16117 (Wed, 02 Sep 2020 13:35:31 GMT):
Hello community....I am learning about fabric since last week. I want to make a secure permissibile decentralised network to implement a distributed ledger system. Can anybody help me......(I just need a good direction as I am not much experienced in blockchain technology)

bhuwanadhikari (Wed, 02 Sep 2020 14:27:52 GMT):
Hello, I am also beginner in blockchain and hasn't been more than two weeks since I started learning. What I did to learn was by learning basic theory and then following this tutorial: https://hlf.readthedocs.io/en/latest/test_network.html I think we can collaborate to learn hyperledger fabric. Please try to find me in twitter @luminousbhuwan or mail me to adhikaribhuwan97@gmail.com

ever-upwards (Wed, 02 Sep 2020 14:46:47 GMT):
Where is "OrdererAddresses" defined? I'm getting this error when trying to bring up an ordering node: ```[orderer.common.server] Start -> PANI 0f9 Failed validating bootstrap block: initializing channelconfig failed: Must set some OrdererAddresses``` I've tried looking for something related to OrdererAddresses in configtx.yaml (which defines the system channel genesis block) as well as the docker-compose file (that brings up the Orderer node), but haven't been able to figure this one out.

BrettLogan (Wed, 02 Sep 2020 20:00:50 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml#L262

ever-upwards (Wed, 02 Sep 2020 20:39:55 GMT):
Thank you, Brett! I didn't have that section in the configtx.yaml file I was referencing (which explains why I couldn't find it). (I was working off of a modified version from the test-network: https://github.com/hyperledger/fabric-samples/blob/master/test-network/configtx/configtx.yaml I'm assuming the sampleconfig you referred to should be my point of reference going forward.

BrettLogan (Wed, 02 Sep 2020 20:41:30 GMT):
It should. Fabric - samples is still on fabric 2.2. We started enforcing the ordereraddress section in 2.3

BrettLogan (Wed, 02 Sep 2020 20:41:30 GMT):
Correct. Fabric - samples is still on fabric 2.2. We started enforcing the ordereraddress section in 2.3

BrettLogan (Wed, 02 Sep 2020 20:41:30 GMT):
Correct. Fabric - samples is still on fabric 2.2. We started enforcing the ordereraddresses More recently

ever-upwards (Wed, 02 Sep 2020 20:45:19 GMT):
I see. Thank you for this explanation!

sunrungeng (Thu, 03 Sep 2020 02:46:47 GMT):
Has joined the channel.

sunrungeng (Thu, 03 Sep 2020 02:46:47 GMT):
i want to know why i run java-fabric-sdk so slowly

rohitroyrr8 (Thu, 03 Sep 2020 05:07:18 GMT):
I am getting below error while updating chaincode``` backing kafka cluster has not completed booting try again later ``` please help

visheshgupta (Thu, 03 Sep 2020 05:57:05 GMT):
hello community , during invoke chaincode i am facing this error - "Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode abac has been successfully defined on channel channelfinal and try again: chaincode definition for 'abac' exists, but chaincode is not installed" ******Failed in invoking****** "

weishancc (Thu, 03 Sep 2020 07:41:26 GMT):
Hi, everyone! Are there any suggest references of storing data off-chain(like images, audios) with hyperledger fabric? Thanks!

jaeseok3 (Thu, 03 Sep 2020 08:42:21 GMT):
When I forked fabric from github, my repository has not recently updated files. For example, the latest updated file shows "3 days ago" in fabric git, but my repository's latest updated file shows "2 months ago". Also, the number of branch and commit of fabric is different from my forked fabric. Why this happens? Or is anybody same as me?

bestbeforetoday (Thu, 03 Sep 2020 08:50:55 GMT):
A fork doesn't get automatically synchronized with the repository it's forked from. It's your own independent copy of the project, just with a reference to the project you've forked from to make it easier to push changes back there. Similar to how the copy of your fork you've probably cloned to your local machine is an independent repository that isn't necessarily in sync with what's in your fork

sandeep.gollapudi (Thu, 03 Sep 2020 10:28:35 GMT):
Has joined the channel.

chintanr11 (Thu, 03 Sep 2020 11:11:33 GMT):
Hi team, I am trying to identify security effects of extended key usages in node enrollment certificates. I want to add an extended key usage in my node enrollment certificate, but I am unsure about which usage to put up. I have added more info here: https://lists.hyperledger.org/g/fabric/message/8953

benkim 1 (Thu, 03 Sep 2020 14:24:52 GMT):
Has joined the channel.

benkim 1 (Thu, 03 Sep 2020 14:24:52 GMT):
Hello guys, I want to ask about fabric-sdk-py. I'm currently trying to execute chaincode invoke to 3 peers as follows: // (peer0.org1 at node1, peer0.org2 at node2, peer0.org3 at node3) * Endorsement policy : AND(org1.member, org2.member, org3.member) How can I invoke chaincode with 3 peers located in different nodes at once? Should I use OU(Organization Unit)? I want to use only 1 MSP in multiple organizations. Are there any suggest references about this? Thanks ``` org1_admin = cli.get_user(org_name='org1.example.com', name='Admin') # The response should be true if succeed response = loop.run_until_complete(cli.chaincode_invoke( requestor=org1_admin, channel_name=request.channelName, peers=['peer0.org1.example.com','peer0.org2.example.com','peer0.org3.example.com'], fcn=request.functionName, args=request.args, cc_name=request.chaincodeName, avg_latency=avg_latency, transient_map=None, # optional, for private data wait_for_event=True, # for being sure chaincode invocation has been commited in the ledger, default is on tx event )) ```

nkl199 (Thu, 03 Sep 2020 15:55:48 GMT):
Has joined the channel.

bhuwanadhikari (Thu, 03 Sep 2020 16:54:41 GMT):
Can anyone help me to understand what happens when the client app calls ```enrollAdmin```? It is said that it interacts with CA which then returns certificate and is stored in wallet. The thing I didn't understand is what's the purpose of admin. And How can we be sure that only a legit person or legit organization called ```enrollAdmin```?

bhuwanadhikari (Thu, 03 Sep 2020 16:54:41 GMT):
Can anyone help me to understand what happens when the client app calls ``enrollAdmin``? It is said that it interacts with CA which then returns certificate and is stored in wallet. The thing I didn't understand is what's the purpose of admin. And How can we be sure that only a legit person or legit organization called ``enrollAdmin``

bhuwanadhikari (Thu, 03 Sep 2020 16:54:41 GMT):
Can anyone help me to understand what happens when the client app calls `enrollAdmin`? It is said that it interacts with CA which then returns certificate and is stored in wallet. The thing I didn't understand is what's the purpose of admin. And How can we be sure that only a legit person or legit organization called `enrollAdmin`

Hong3Nguyen (Thu, 03 Sep 2020 19:12:20 GMT):
Hi everyone, I got the error when I try to join the channel do you have any idea for this error 😞 (I have restarted docker several times) docker exec cli peer channel join -b mychannel.block Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

crestrer (Thu, 03 Sep 2020 23:36:05 GMT):
Hi everyone! I have a problem in my Hyperledger Fabric. when I saw the log of my peer, I saw this WARN ``` UTC [gossip.channel] handleStateInfSnapshot -> WARN a15a#033[0m Channel privatechannel: Failed validating state info message: GossipMessage: Channel: , nonce: 0, tag: CHAN_OR_ORG state_info_message: Timestamp:inc_num:1599162129632664820 seq_num:1599163144092491820 PKI-id:8a7e26cbbcccf7d6.....c9d4d369d22b4ab4b1c channel MAC:f54c1......d52a2dab7 properties:ledger_height:5 chaincodes: , Envelope: 115 bytes, Signature: 70 bytes sent from f1f526e8a.......6338aa : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ``` Anyone knows why this happen??

crestrer (Thu, 03 Sep 2020 23:36:05 GMT):
Hi everyone! I have a problem in my Hyperledger Fabric. when I saw the log of my peer, I saw this WARN ``` UTC [gossip.channel] handleStateInfSnapshot -> WARN a15a#033[0m Channel privatechannel: Failed validating state info message: GossipMessage: Channel: , nonce: 0, tag: CHAN_OR_ORG state_info_message: Timestamp:inc_num:159.....0 seq_num:1599163144092491820 PKI-id:8a7e26cbbcccf7d6.....c9d4d369d22b4ab4b1c channel MAC:f54c1......d52a2dab7 properties:ledger_height:5 chaincodes: , Envelope: 115 bytes, Signature: 70 bytes sent from f1f526e8a.......6338aa : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ``` Anyone knows why this happen??

crestrer (Thu, 03 Sep 2020 23:36:05 GMT):
Hi everyone! I have a problem in my Hyperledger Fabric. when I saw the log of my peer, I saw this WARN ``` UTC [gossip.channel] handleStateInfSnapshot -> WARN a15a#033[0m Channel privatechannel: Failed validating state info message: GossipMessage: Channel: , nonce: 0, tag: CHAN_OR_ORG state_info_message: Timestamp:inc_num:159.....0 seq_num:159...0 PKI-id:8a7cf7d6.....c9d44ab4b1c channel MAC:f54c1......d52ab7 properties:ledger_height:5 chaincodes: , Envelope: 115 bytes, Signature: 70 bytes sent from f1fe8a.......633a : implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied ``` Anyone knows why this happen??

crestrer (Fri, 04 Sep 2020 00:04:51 GMT):
Hi everyone! I have a problem with my chaincodes in Hyperledger Fabric, when I saw : docker ps -a, all my installed chaincodes have ``` STATUS: Exited (0) ``` also when I saw the log of my peer, I have this: Anyone knows why this happen??

crestrer (Fri, 04 Sep 2020 00:04:51 GMT):
Hi everyone! I have a problem with my chaincodes in Hyperledger Fabric, when I saw : docker ps -a, all my installed chaincodes have ``` STATUS: Exited (0) ``` also when I saw the log of my peer, I have this: ``` UTC [lifecycle] Work -> WARN 0b9 could not launch chaincode 'car_1:bdd......34': chaincode registration failed: container exited with 0 ``` Anyone knows why this happen??

crestrer (Fri, 04 Sep 2020 00:04:51 GMT):
Hi everyone! I have a problem with my chaincodes in Hyperledger Fabric, when I saw : *docker ps -a*, all my installed chaincodes have ``` STATUS: Exited (0) ``` also when I saw the log of my peer, I have this: ``` UTC [lifecycle] Work -> WARN 0b9 could not launch chaincode 'car_1:bdd......34': chaincode registration failed: container exited with 0 ``` Anyone knows why this happen??

sheru (Fri, 04 Sep 2020 07:02:56 GMT):
Has left the channel.

zhouqingwen (Fri, 04 Sep 2020 07:42:11 GMT):
Has joined the channel.

AbhinavMakker (Fri, 04 Sep 2020 08:14:48 GMT):
Has joined the channel.

zhouqingwen (Fri, 04 Sep 2020 09:13:34 GMT):

Clipboard - 2020年9月4日下午5点13分

nkl199 (Fri, 04 Sep 2020 09:21:44 GMT):
are you able to get logs from the chaincode containers?

nkl199 (Fri, 04 Sep 2020 09:24:14 GMT):
what component versions do you have installed?

zhouqingwen (Fri, 04 Sep 2020 09:27:03 GMT):
not run chaincode project, this is run `npm install` to install chaincode project's dependencies

zhouqingwen (Fri, 04 Sep 2020 09:27:47 GMT):
node-gyp version? 0.4.7

nkl199 (Fri, 04 Sep 2020 09:35:37 GMT):
what version: - IBM Blockchain platform extension - NodeJS version

nkl199 (Fri, 04 Sep 2020 09:35:37 GMT):
what versions of the following: - IBM Blockchain platform extension - NodeJS version

zhouqingwen (Fri, 04 Sep 2020 09:37:04 GMT):

Clipboard - 2020年9月4日下午5点32分

zhouqingwen (Fri, 04 Sep 2020 09:37:55 GMT):
IBM: 1.0.37 nodejs: 8.9.0

zhouqingwen (Fri, 04 Sep 2020 09:39:45 GMT):
I use the `nvm` to switch the version of node. I can used [9.11.2, 10.19.0, 11.15.0,12.18.3 eg..]

nkl199 (Fri, 04 Sep 2020 09:56:10 GMT):
v8 and v10 are "supported" for the extensino that you have installed

zhouqingwen (Fri, 04 Sep 2020 09:58:00 GMT):
but install `@ampretia/x509` always faild

zhouqingwen (Fri, 04 Sep 2020 09:58:58 GMT):

Clipboard - 2020年9月4日下午5点58分

nkl199 (Fri, 04 Sep 2020 10:06:04 GMT):
are you creating your own project from scratch, or using the "project generator"?

nkl199 (Fri, 04 Sep 2020 10:06:04 GMT):
are you creating your own project from scratch, or using the "project generator" from within the extension?

davidkel (Fri, 04 Sep 2020 10:44:49 GMT):
@zhouqingwen I would suggest raising an issue at https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues and provide the full log output as the snippets you provide could be missing important information. However please make sure you have installed all the windows pre-reqs. eg see https://github.com/IBM-Blockchain/blockchain-vscode-extension#additional-requirements-for-windows

zhouqingwen (Fri, 04 Sep 2020 10:47:00 GMT):

Clipboard - 2020年9月4日晚上6点45分

Harinishree-Muniraj (Fri, 04 Sep 2020 12:03:04 GMT):
Hi everyone is there any method in shim package to get history of transaction data by passing value I explored for that I got Gethistoryforkey one method is there but in my scenario I need to implement by passing value(it is inside my json) I need to pass that value to fetch data

Harinishree-Muniraj (Fri, 04 Sep 2020 12:03:51 GMT):
example:{"userid":123{"request_id":"234"}}

Harinishree-Muniraj (Fri, 04 Sep 2020 12:05:32 GMT):
My key is userid but I need to fetch history of data by passing requestid

kokolaki (Fri, 04 Sep 2020 13:00:33 GMT):
I am trying to install fabric version 2.2.0 in raspperry pi. I cloned fabric repository and checkout to appropriate tag. when I run "make" I have the following error: # github.com/hyperledger/fabric/cmd/peer /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [Makefile:209: build/bin/peer] Error 2 Removing intermediate container d41a9d6e8573 The command '/bin/sh -c make peer GO_TAGS=${GO_TAGS}' returned a non-zero code: 2 Makefile:224: recipe for target 'build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54' failed make: *** [build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54] Error 2

kokolaki (Fri, 04 Sep 2020 13:00:33 GMT):
I am trying to install fabric version 2.2.0 in raspperry pi. I cloned fabric repository and checkout to appropriate tag. I use last version of golang go1.15.1 linux/arm64. when I run "make" I have the following error: # github.com/hyperledger/fabric/cmd/peer /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [Makefile:209: build/bin/peer] Error 2 Removing intermediate container d41a9d6e8573 The command '/bin/sh -c make peer GO_TAGS=${GO_TAGS}' returned a non-zero code: 2 Makefile:224: recipe for target 'build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54' failed make: *** [build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54] Error 2

kokolaki (Fri, 04 Sep 2020 13:00:33 GMT):
I am trying to install fabric version 2.2.0 on raspberry pi. I cloned fabric repository and checkout to appropriate tag. I use last version of golang go1.15.1 linux/arm64. when I run "make" I have the following error: # github.com/hyperledger/fabric/cmd/peer /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [Makefile:209: build/bin/peer] Error 2 Removing intermediate container d41a9d6e8573 The command '/bin/sh -c make peer GO_TAGS=${GO_TAGS}' returned a non-zero code: 2 Makefile:224: recipe for target 'build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54' failed make: *** [build/images/peer/.dummy-arm64-2.2.0-snapshot-5ea85bc54] Error 2

kokolaki (Fri, 04 Sep 2020 13:07:46 GMT):
Any help please?

crestrer (Fri, 04 Sep 2020 13:31:57 GMT):
I saw log to a specific Chain and I have this: ``` Error starting cargo chaincode: context deadline exceeded[ ```

nkl199 (Fri, 04 Sep 2020 13:43:45 GMT):
hmm, implies the chaincode was unable to talk to the peer ... are you using docker?

AmanAgrawal (Fri, 04 Sep 2020 15:24:44 GMT):
Hi All, Does anyone have idea how can we rotate Organizations peer root certificate and TLS root certificate before they expire? The org root certificates and child certificates are about to expire, and i do not want to create certificate from scratch, as i won't be able to update the existing application channel with these new root certificates(already tried and failed). Here is the error that i get when i try to update the application channel with new admin, root and tls root certificates under the Application section of the Organization MSP. error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Application/OrganizationMSP/MSP not satisfied: signature set did not satisfy policy. Any leads would be highly appreciated. Regards.

Aodh (Fri, 04 Sep 2020 15:35:56 GMT):
Has joined the channel.

BrettLogan (Fri, 04 Sep 2020 16:44:39 GMT):
How many RAFT orderers do you have?

AmanAgrawal (Fri, 04 Sep 2020 16:52:20 GMT):
3 orderers

BrettLogan (Fri, 04 Sep 2020 16:53:28 GMT):
And what process did you follow? did you first update the channel config?

AmanAgrawal (Fri, 04 Sep 2020 16:54:26 GMT):
yes.. updated the channel config new org msp and then executed update channel

BrettLogan (Fri, 04 Sep 2020 17:07:19 GMT):
And then you repalced the certs on the file system and restarted the orderer?

BrettLogan (Fri, 04 Sep 2020 17:07:19 GMT):
And then you repalced the certs on the file system and restarted the peer?

BrettLogan (Fri, 04 Sep 2020 17:07:19 GMT):
And then you repalced the certs on the file system and restarted the components?

BrettLogan (Fri, 04 Sep 2020 17:07:19 GMT):
And then you repalced the certs on the file system and restarted the node?

AmanAgrawal (Fri, 04 Sep 2020 18:02:38 GMT):
actually, this an external organizationMSP, i am trying to add our existing network configuration. since its certificates are expiring we are updating the channel configuration with the new admin,root and tls root certs. Not sure if this possible in real world scenario and this is where i am getting this error while channel update.

crestrer (Fri, 04 Sep 2020 19:16:00 GMT):

dockerps-a

crestrer (Fri, 04 Sep 2020 19:16:00 GMT):

dockerps-a

crestrer (Fri, 04 Sep 2020 19:16:33 GMT):
Yes I use docker, is crucial for the Chaincodes. My network was work 2 months, and in this week this problem appear. but, why this comunication problem?. When I use: *docker ps -a*

crestrer (Fri, 04 Sep 2020 19:16:54 GMT):

docker ps -a

crestrer (Fri, 04 Sep 2020 19:20:22 GMT):
I restart the Couchdb docker process, then I restart my peer service, and the result is, (Status) Exited.

crestrer (Fri, 04 Sep 2020 19:24:58 GMT):
also, when I launch my peer with DEBUG, I catch this info.

crestrer (Fri, 04 Sep 2020 19:25:04 GMT):

Debug peer

sichen (Fri, 04 Sep 2020 19:29:22 GMT):
Has joined the channel.

sichen (Fri, 04 Sep 2020 19:29:23 GMT):
Hello everybody, Could we get your advice on how to create and manage credentials for an app which interacts with a Hyperledger fabric ledger? This is all from our last Climate Accounting WG call: We're planning to have a REST interface interact with the ledger. Then a user-facing app would connect to the REST interface. So should we have 1. a REST api which creates credential (security key) from a certificate authority which the app is allowed to interact with 2. the REST api return the security key to the client app 3. the client app stores the security key for the user 4. the client app allows the user to call ledger chain code using the stored security key? Thank you for your advice.

crestrer (Fri, 04 Sep 2020 19:29:56 GMT):
Besides, for check, I created a new peer for my Organization, to validate, if CouchDb had problems, I configurated this machine, and the new peer ran but presented the same problem, Probably is problem for the orderer? Or the version of my couchdb?

Moolkothari (Sat, 05 Sep 2020 20:09:24 GMT):
Hello everyone, I am trying to rollback block using this command " peer node rollback -c mychannel -b 120" If I run this inside CLI container getting in an error "Validating the rollback parameters: ledgerID [mychannel], block number [0] Error: ledgerID [mychannel] does not exist". If i run inside peer0 it is giving " Error: as another peer node command is executing, wait for that command to complete its execution or terminate it before retrying: lock is already acquired on file /var/hyperledger/production/ledgersData/fileLock" I have tried different possible ways by stop and pausing the nodes but failed , can anyone guide me what is right way to perform this task. Thanks in Advance

Moolkothari (Sat, 05 Sep 2020 20:28:41 GMT):
https://stackoverflow.com/questions/63758181/hyperledger-fabric-peer-node-rollback

NRaj 2 (Sun, 06 Sep 2020 05:04:28 GMT):
Has joined the channel.

NRaj 2 (Sun, 06 Sep 2020 05:04:29 GMT):
Hi all, i was trying to upgrade my orderer using this tutorial *https://hyperledger-fabric.readthedocs.io/en/release-2.0/upgrading_your_components.html* and i do not understand the mening of *--env-file ./env.list* while trying this *docker run -d -v /opt/backup/$ORDERER_CONTAINER/:/var/hyperledger/production/orderer/ \ -v /opt/msp/:/etc/hyperledger/fabric/msp/ \ --env-file ./env.list \ --name $ORDERER_CONTAINER \ hyperledger/fabric-orderer:$IMAGE_TAG orderer* command as m=i am getting a file not found error Name of my orderer is orderer0.example.com please suggest what should be the name in *--env-file ./env.list* I tried my ordering node's name as *--env-file ./envorderer0.example.com.list* and got the same file not found error

NRaj 2 (Sun, 06 Sep 2020 05:04:29 GMT):
Hi all, i was trying to upgrade my orderer using this tutorial *https://hyperledger-fabric.readthedocs.io/en/release-2.0/upgrading_your_components.html* and i do not understand the mening of *--env-file ./env.list* while trying this *docker run -d -v /opt/backup/$ORDERER_CONTAINER/:/var/hyperledger/production/orderer/ \ -v /opt/msp/:/etc/hyperledger/fabric/msp/ \ --env-file ./env.list \ --name $ORDERER_CONTAINER \ hyperledger/fabric-orderer:$IMAGE_TAG orderer* command as I am getting a file not found error The name of my orderer is orderer0.example.com please suggest what should be the name in *--env-file ./env.list* I tried my ordering node's name as *--env-file ./envorderer0.example.com.list* and got the same file not found error

jorgeRodriguez (Sun, 06 Sep 2020 07:30:11 GMT):
Has joined the channel.

RobinKlemens (Sun, 06 Sep 2020 16:28:46 GMT):
Hi everyone,

RobinKlemens (Sun, 06 Sep 2020 16:50:31 GMT):
Hi everyone, I'm trying to get Hyperledger Fabric 2.2 running with softhsm in a docker-compose setup. I use fabric test-network. However, I'm not able to start the peer node with tls enabled because of missing `server.key`. ```peer0.org1.example.com | 2020-09-06 16:31:05.384 UTC [bccsp_p11] getSession -> DEBU 022 Reusing existing pkcs11 session 1 on slot 364118327 peer0.org1.example.com | 2020-09-06 16:31:05.389 UTC [nodeCmd] serve -> FATA 023 Error loading secure config for peer (error loading TLS key (open /etc/hyperledger/fabric/tls/server.key: no such file or directory))``` The error message above is correct because `CORE_PEER_PROFILE_ENABLED=true` and `CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key`. Since the private key of the peer is stored in the softhsm, the keystore folder remains empty. Thus the private key of `/tls/keystore/priv_sk` cannot be copied to `/tls/server.key` which gives the following logs in `registerEnroll.sh`: ```## Generate the peer0-tls certificates + fabric-ca-client enroll -u https://peer0.org1.example.com:peer0.org1.example.compw@localhost:7054 --caname ca-org1 -M /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls --enrollment.profile tls --csr.hosts peer0.org1.example.com --csr.hosts localhost --tls.certfiles /tmp/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem 2020/09/06 18:26:45 [INFO] TLS Enabled 2020/09/06 18:26:45 [INFO] generating key: &{A:ecdsa S:256} 2020-09-06 18:26:45.422 CEST [bccsp_p11] generateECKey -> INFO 001 Generated new P11 key, SKI 0f5a1592d435fbdda3f2c1747307d4be944141bd31b2ff69c63f9e1127cbe3c3 2020/09/06 18:26:45 [INFO] encoded CSR 2020/09/06 18:26:45 [INFO] Stored client certificate at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/signcerts/cert.pem 2020/09/06 18:26:45 [INFO] Stored TLS root CA certificate at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/tls-localhost-7054-ca-org1.pem 2020/09/06 18:26:45 [INFO] Stored Issuer public key at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerPublicKey 2020/09/06 18:26:45 [INFO] Stored Issuer revocation public key at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerRevocationPublicKey cp: /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/keystore/*: No such file or directory``` My question is how to reference the `server.key` with softhsm integration as env `CORE_PEER_TLS_KEY_FILE=???` Without TLS, the peer node is working. Many thanks in advance! Best Robin

RobinKlemens (Sun, 06 Sep 2020 16:50:31 GMT):
Hi everyone, I'm trying to get Hyperledger Fabric 2.2 running with softhsm in a docker-compose setup. I use the fabric test-network. However, I'm not able to start the peer node with tls enabled because of missing `server.key`. ```peer0.org1.example.com | 2020-09-06 16:31:05.384 UTC [bccsp_p11] getSession -> DEBU 022 Reusing existing pkcs11 session 1 on slot 364118327 peer0.org1.example.com | 2020-09-06 16:31:05.389 UTC [nodeCmd] serve -> FATA 023 Error loading secure config for peer (error loading TLS key (open /etc/hyperledger/fabric/tls/server.key: no such file or directory))``` The error message above is correct because `CORE_PEER_PROFILE_ENABLED=true` and `CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key`. Since the private key of the peer is stored in the softhsm, the keystore folder remains empty. Thus, I recieve the following logs in `registerEnroll.sh`: ```## Generate the peer0-tls certificates + fabric-ca-client enroll -u https://peer0.org1.example.com:peer0.org1.example.compw@localhost:7054 --caname ca-org1 -M /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls --enrollment.profile tls --csr.hosts peer0.org1.example.com --csr.hosts localhost --tls.certfiles /tmp/fabric-samples/test-network/organizations/fabric-ca/org1/tls-cert.pem 2020/09/06 18:26:45 [INFO] TLS Enabled 2020/09/06 18:26:45 [INFO] generating key: &{A:ecdsa S:256} 2020-09-06 18:26:45.422 CEST [bccsp_p11] generateECKey -> INFO 001 Generated new P11 key, SKI 0f5a1592d435fbdda3f2c1747307d4be944141bd31b2ff69c63f9e1127cbe3c3 2020/09/06 18:26:45 [INFO] encoded CSR 2020/09/06 18:26:45 [INFO] Stored client certificate at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/signcerts/cert.pem 2020/09/06 18:26:45 [INFO] Stored TLS root CA certificate at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/tls-localhost-7054-ca-org1.pem 2020/09/06 18:26:45 [INFO] Stored Issuer public key at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerPublicKey 2020/09/06 18:26:45 [INFO] Stored Issuer revocation public key at /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerRevocationPublicKey cp: /tmp/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/keystore/*: No such file or directory``` My question is how to reference the `server.key` with softhsm integration as env `CORE_PEER_TLS_KEY_FILE=???` Without TLS, the peer node is working. Many thanks in advance! Best Robin

babiskg (Sun, 06 Sep 2020 19:05:18 GMT):
Hello , i try to run prometheus on docker with this command : sudo docker run -d --name prometheus-server -p 9090:9090 \ -v /home/mccdev/prometheus/prometheus/prometheus.yml:/prometheus.yml \ prom/prometheus \ --config.file=/prometheus.yml but container is always exited immediatelly and i have no access to localhost:9090. What can i do to set container to 'up'?

jjchavarrg (Mon, 07 Sep 2020 01:18:53 GMT):
Has joined the channel.

jjchavarrg (Mon, 07 Sep 2020 01:18:53 GMT):
Hola, quiero realizar el curso Hyperledger Fabric y me gustaría saber si puedo obtener las diapositivas o videos de las primeras clase

RobinKlemens (Mon, 07 Sep 2020 08:37:15 GMT):
The same goes for orderer (Raft) where TLS is required. See the shortened logs below. ```orderer.example.com | 2020-09-07 08:33:38.648 UTC [orderer.common.server] prettyPrintStruct -> INFO 003 Orderer config values: orderer.example.com | General.ListenAddress = "0.0.0.0" orderer.example.com | General.ListenPort = 7050 orderer.example.com | General.TLS.Enabled = true orderer.example.com | General.TLS.PrivateKey = "/var/hyperledger/orderer/tls/server.key" orderer.example.com | General.TLS.Certificate = "/var/hyperledger/orderer/tls/server.crt" orderer.example.com | General.TLS.RootCAs = [/var/hyperledger/orderer/tls/ca.crt] orderer.example.com | General.TLS.ClientAuthRequired = false orderer.example.com | General.TLS.ClientRootCAs = [] orderer.example.com | General.TLS.TLSHandshakeTimeShift = 0s orderer.example.com | General.Cluster.ListenAddress = "" orderer.example.com | General.Cluster.ListenPort = 0 orderer.example.com | General.Cluster.ServerCertificate = "" orderer.example.com | General.Cluster.ServerPrivateKey = "" orderer.example.com | General.Cluster.ClientCertificate = "/var/hyperledger/orderer/tls/server.crt" orderer.example.com | General.Cluster.ClientPrivateKey = "/var/hyperledger/orderer/tls/server.key" orderer.example.com | General.Cluster.RootCAs = [/var/hyperledger/orderer/tls/ca.crt] orderer.example.com | General.LocalMSPDir = "/var/hyperledger/orderer/msp" orderer.example.com | General.LocalMSPID = "OrdererMSP" orderer.example.com | General.BCCSP.Default = "PKCS11" orderer.example.com | General.BCCSP.SW.Security = 256 orderer.example.com | General.BCCSP.SW.Hash = "SHA2" orderer.example.com | General.BCCSP.SW.FileKeystore = orderer.example.com | General.BCCSP.PKCS11.Security = 256 orderer.example.com | General.BCCSP.PKCS11.Hash = "SHA2" orderer.example.com | General.BCCSP.PKCS11.Library = "/usr/local/lib/softhsm/libsofthsm2.so" orderer.example.com | General.BCCSP.PKCS11.Label = "TestToken" orderer.example.com | General.BCCSP.PKCS11.Pin = "1111" orderer.example.com | General.BCCSP.PKCS11.SoftwareVerify = false orderer.example.com | General.BCCSP.PKCS11.Immutable = false orderer.example.com | General.BCCSP.PKCS11.sessionCacheSize = 0 orderer.example.com | General.BCCSP.PKCS11.createSessionRetries = 0 orderer.example.com | General.BCCSP.PKCS11.createSessionRetryDelay = 0 orderer.example.com | General.Authentication.TimeWindow = 15m0s orderer.example.com | General.Authentication.NoExpirationChecks = false orderer.example.com | FileLedger.Location = "/var/hyperledger/production/orderer" orderer.example.com | 2020-09-07 08:33:40.549 UTC [orderer.common.server] initializeServerConfig -> FATA 004 Failed to load PrivateKey file '/var/hyperledger/orderer/tls/server.key' (open /var/hyperledger/orderer/tls/server.key: no such file or directory) orderer.example.com exited with code 1```

RobinKlemens (Mon, 07 Sep 2020 08:37:15 GMT):
The same goes for orderer (Raft) where TLS is required. See the shortend logs below. ```orderer.example.com | 2020-09-07 08:33:38.648 UTC [orderer.common.server] prettyPrintStruct -> INFO 003 Orderer config values: orderer.example.com | General.ListenAddress = "0.0.0.0" orderer.example.com | General.ListenPort = 7050 orderer.example.com | General.TLS.Enabled = true orderer.example.com | General.TLS.PrivateKey = "/var/hyperledger/orderer/tls/server.key" orderer.example.com | General.TLS.Certificate = "/var/hyperledger/orderer/tls/server.crt" orderer.example.com | General.TLS.RootCAs = [/var/hyperledger/orderer/tls/ca.crt] orderer.example.com | General.TLS.ClientAuthRequired = false orderer.example.com | General.TLS.ClientRootCAs = [] orderer.example.com | General.TLS.TLSHandshakeTimeShift = 0s orderer.example.com | General.Cluster.ListenAddress = "" orderer.example.com | General.Cluster.ListenPort = 0 orderer.example.com | General.Cluster.ServerCertificate = "" orderer.example.com | General.Cluster.ServerPrivateKey = "" orderer.example.com | General.Cluster.ClientCertificate = "/var/hyperledger/orderer/tls/server.crt" orderer.example.com | General.Cluster.ClientPrivateKey = "/var/hyperledger/orderer/tls/server.key" orderer.example.com | General.Cluster.RootCAs = [/var/hyperledger/orderer/tls/ca.crt] orderer.example.com | General.LocalMSPDir = "/var/hyperledger/orderer/msp" orderer.example.com | General.LocalMSPID = "OrdererMSP" orderer.example.com | General.BCCSP.Default = "PKCS11" orderer.example.com | General.BCCSP.SW.Security = 256 orderer.example.com | General.BCCSP.SW.Hash = "SHA2" orderer.example.com | General.BCCSP.SW.FileKeystore = orderer.example.com | General.BCCSP.PKCS11.Security = 256 orderer.example.com | General.BCCSP.PKCS11.Hash = "SHA2" orderer.example.com | General.BCCSP.PKCS11.Library = "/usr/local/lib/softhsm/libsofthsm2.so" orderer.example.com | General.BCCSP.PKCS11.Label = "TestToken" orderer.example.com | General.BCCSP.PKCS11.Pin = "1111" orderer.example.com | General.BCCSP.PKCS11.SoftwareVerify = false orderer.example.com | General.BCCSP.PKCS11.Immutable = false orderer.example.com | General.BCCSP.PKCS11.sessionCacheSize = 0 orderer.example.com | General.BCCSP.PKCS11.createSessionRetries = 0 orderer.example.com | General.BCCSP.PKCS11.createSessionRetryDelay = 0 orderer.example.com | General.Authentication.TimeWindow = 15m0s orderer.example.com | General.Authentication.NoExpirationChecks = false orderer.example.com | FileLedger.Location = "/var/hyperledger/production/orderer" orderer.example.com | 2020-09-07 08:33:40.549 UTC [orderer.common.server] initializeServerConfig -> FATA 004 Failed to load PrivateKey file '/var/hyperledger/orderer/tls/server.key' (open /var/hyperledger/orderer/tls/server.key: no such file or directory) orderer.example.com exited with code 1```

ckong (Mon, 07 Sep 2020 08:48:31 GMT):
Need some help in understanding the following set of commands:

ckong (Mon, 07 Sep 2020 08:48:34 GMT):
configtxgen -profile MultiNodeEtcdRaft -channelID my-sys-channel -outputBlock ./channel-artifacts/genesis.block configtxgen -profile OrgChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID customchannel configtxgen -profile OrgChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID customchannel -asOrg Org1MSP

ckong (Mon, 07 Sep 2020 08:49:09 GMT):
Does this mean that the creation of channel "customchannel" is bootstrapped?

huytn.it (Mon, 07 Sep 2020 09:23:54 GMT):
how to deploy test-network on multi host?

huytn.it (Mon, 07 Sep 2020 09:23:54 GMT):
how to deploy test-network on multi hosts?

titaniumbumblebee (Mon, 07 Sep 2020 09:24:28 GMT):
Has joined the channel.

titaniumbumblebee (Mon, 07 Sep 2020 09:24:28 GMT):
Hello! Can someone direct me to ways of implementing gRPC server in HF? I have an Android app that I would like to communicate with my blockchain over gRPC. Thanks!

huytn.it (Mon, 07 Sep 2020 09:29:23 GMT):
follow https://github.com/hyperledger/fabric-samples/blob/master/fabcar/go/fabcar.go

Jakeeyturner (Mon, 07 Sep 2020 10:09:30 GMT):
Has joined the channel.

kokolaki (Mon, 07 Sep 2020 11:34:18 GMT):
I fixed build.gradle file with that dependencied and now I have the following error on instantiation of smart contract when I run: ./startFabric.sh java ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ find /chaincode/input -name .jar ++ paste -s -d : - + JARS= ++ find /chaincode/input -name '*.jar' ++ wc -l + NUM_JARS=1 + for DIR in '${INPUT_DIR}' '${INPUT_DIR}/src' + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in '${INPUT_DIR}' '${INPUT_DIR}/src' + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + cd /chaincode/input/src + echo 'Gradle build' Gradle build + '[' -f ./gradlew ']' + chmod +x ./gradlew + ./gradlew build shadowJar Downloading https://services.gradle.org/distributions/gradle-4.10.2-bin.zip .......................................................................... Welcome to Gradle 4.10.2! Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block For more details see https://docs.gradle.org/4.10.2/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) > Task :compileJava > Task :processResources NO-SOURCE > Task :classes > Task :jar > Task :assemble > Task :checkstyleMain FAILED FAILURE: Build failed with an exception. ```

kokolaki (Mon, 07 Sep 2020 11:36:13 GMT):
``` Execution failed for task ':checkstyleMain'. > Unable to create Root Module: config {/chaincode/input/src/config/checkstyle/checkstyle.xml}, classpath {/chaincode/input/src/build/classes/java/main:/chaincode/input/src/build/resources/main:/root/.gradle/caches/modules-2/files-2.1/org.hyperledger.fabric-chaincode-java/fabri ```

kokolaki (Mon, 07 Sep 2020 11:36:53 GMT):
``` ................ * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 2m 32s " ```

kokolaki (Mon, 07 Sep 2020 11:54:23 GMT):
Could you please help me if you know what are the problem? Thank you in advance.

kokolaki (Mon, 07 Sep 2020 11:58:38 GMT):
I use version 1.4.2 of fabric-samples and I fixed what you mentioned for build.gradle

kokolaki (Mon, 07 Sep 2020 12:00:03 GMT):
I use version 1.4 images and binaries of fabric

lordvins226 (Mon, 07 Sep 2020 12:27:35 GMT):
Has joined the channel.

kokolaki (Mon, 07 Sep 2020 13:03:01 GMT):
Hello Comminity, I have the following error when I try to run ./byfn.sh up -l java in first-network folder of fabric-samples when it tries to _Instantiating chaincode on peer0.org2_ ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ paste -s -d : - ++ find /chaincode/input -name .jar + JARS= ++ find /chaincode/input -name '*.jar' ++ wc -l + NUM_JARS=0 + for DIR in '${INPUT_DIR}' '${INPUT_DIR}/src' + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in '${INPUT_DIR}' '${INPUT_DIR}/src' + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + cd /chaincode/input/src + echo 'Gradle build' + '[' -f ./gradlew ']' Gradle build + gradle build shadowJar Welcome to Gradle 5.6.2! Here are the highlights of this release: - Incremental Groovy compilation - Groovy compile avoidance - Test fixtures for Java projects - Manage plugin versions via settings script For more details see https://docs.gradle.org/5.6.2/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: Method com/github/jengelman/gradle/plugins/shadow/internal/DependencyFileCollection.getBuildDependencies()Lorg/gradle/api/tasks/TaskDependency; is abstract * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 36s ```

kokolaki (Mon, 07 Sep 2020 13:03:34 GMT):
Any help please?

bhuwanadhikari (Mon, 07 Sep 2020 17:35:28 GMT):
I am following `papernet` tutorial. In page ```https://hlf.readthedocs.io/en/latest/developapps/application.html```, It is said that the connectionProfile can be found in github as: ```https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/gateway/networkConnection.yaml``` but while visiting to this url gives 404 page. Why is this happening?

bhuwanadhikari (Mon, 07 Sep 2020 17:35:28 GMT):
I am following `papernet` tutorial. In page `https://hlf.readthedocs.io/en/latest/developapps/application.html`, It is said that the connectionProfile can be found in github as: `https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/gateway/networkConnection.yaml` but while visiting to this url gives 404 page. Why is this happening?

bhuwanadhikari (Mon, 07 Sep 2020 17:35:28 GMT):
I am following `papernet` tutorial. In page `https://hlf.readthedocs.io/en/latest/developapps/application.html`, It is said that the connectionProfile can be found in github as: ```https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/organization/magnetocorp/gateway/networkConnection.yaml``` but while visiting to this url gives 404 page. Why is this happening?

VladyslavKhymenko (Mon, 07 Sep 2020 19:13:28 GMT):
Has joined the channel.

VladyslavKhymenko (Mon, 07 Sep 2020 19:13:28 GMT):
Hello there, hope you all are doing great, where can I ask a question about chaincode deployment using Node.js SDK for hyperledger fabric v1.4?

VladyslavKhymenko (Mon, 07 Sep 2020 19:23:15 GMT):
Basically, I have a network with 2 organizations each having 2 peers up and running after running `./byfn.sh up -c some-channel -s couchdb -o etcdraft -l node`. I can connect to it via script and/or VS Code IBM Blockchain extension. I installed new chaincode on each peer in each organizations. I can confirm it by querying installed chaincodes on a peer. But when I'm trying to instantiate the installed chaincode, I get an error from peers saying `Error: chaincode registration failed: container exited with 0`. When I look up peer container logs, I see only `failed to invoke chaincode name:"lscc" , error: container exited with 0` right after lines `deal-contract@1.0.2 start /usr/local/src`, `node deal-contract.js "--peer.address" "peer0.org1.example.com:7052"` and `Container dev-peer0.org1.example.com-deal-contract-1.0.2 has closed its IO channel`. So, the question is how do I instantiate an already installed chaincode correctly? I'm using Hyperledger Fabric v1.4, the chaincode is developed using fabric-contract-api

VladyslavKhymenko (Mon, 07 Sep 2020 19:26:05 GMT):
`lscc` stands for `lifecycle system chaincode` so I assume the error has something to do with the chaincode building process, but I can't figure it out. I've tried running `npm install` directly inside the chaincode folder before installing it on a peer. Also tried adding functions like `Init` and `Invoke` as I remember they were required some versions ago if developing using `fabric-shim`. Could you please give me any suggestions?

VladyslavKhymenko (Mon, 07 Sep 2020 19:32:24 GMT):
Also, logs of those containers' that are created during chaincode deployment (`ccenv`) do not show any errors.

BrettLogan (Tue, 08 Sep 2020 02:59:56 GMT):
Fabric doesn't use the HSM for TLS, the CA generated your private key

BrettLogan (Tue, 08 Sep 2020 03:00:31 GMT):
You can check out the Hyperledger fabric-test repo where I've modified the test-network to run on SoftHSM

BrettLogan (Tue, 08 Sep 2020 03:00:32 GMT):
https://github.com/hyperledger/fabric-test/tree/master/regression/hsm

BrettLogan (Tue, 08 Sep 2020 03:00:59 GMT):
In particular here is the script that generates the TLS certs (on an HSM enabled CA): https://github.com/hyperledger/fabric-test/blob/master/regression/hsm/organizations/fabric-ca/registerEnrollTLS.sh

BrettLogan (Tue, 08 Sep 2020 03:02:59 GMT):
Assuming you are using Docker, you need to append the command to the start up sequence to run before `peer node start` is called

BrettLogan (Tue, 08 Sep 2020 03:04:57 GMT):
You've created an orderer genesis block (this is the first block on the chain and defines the starting configuration), then you've create a block to create a channel, then you've created a block to make several peers anchor peers. You still need to submit the blocks to the orderer to have them appended to the ledger

BrettLogan (Tue, 08 Sep 2020 03:05:28 GMT):
https://github.com/hyperledger/fabric-java-sdk

BrettLogan (Tue, 08 Sep 2020 03:05:40 GMT):
You can use the Java SDK on Android to interact with a network

BrettLogan (Tue, 08 Sep 2020 03:08:39 GMT):
It doesn't exist on the remote, you need to run the tutorial and then examine it locally. A connection profile is specific to each run of the application, it changes each time, so it isn't included as part of the repo. That shouldn't actually be a link in the doc

BrettLogan (Tue, 08 Sep 2020 03:11:01 GMT):
Is your peer in debug mode, if not can you put it in debug mode and attach your logs?

toniyasundaram (Tue, 08 Sep 2020 03:26:28 GMT):
Has joined the channel.

SivaramKannan (Tue, 08 Sep 2020 03:34:17 GMT):
I have a HLF 1.4.2 cluster running in GKE with 3 orderers(raft) and 3 orgs(2 peers each). Couple of ago days the orderer's pvc hit disk full and all the orderes started failing. Since I could not expand the volume live, I scaled down the orderers, took a back of the data from the PVC's and restored on an expanded volumes. While restoring the volumes, I started the each orderer immediately after restoring the volume data. So, when the second orderer was started, the orderer got the quorum and peers started writing. So, when the 3rd orderer was brought up, it refused to join the cluster with the below error ```2020-08-25 13:17:33.891 UTC [orderer.consensus.etcdraft] Step -> INFO a2d 2 [term: 2] received a MsgHeartbeat message with higher term from 1 [term: 4] channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO a2e 2 became follower at term 4 channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] commitTo -> PANI a2f tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost? channel=mychannel node=2 panic: tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost?``` Since I was not sure how to recover this, I decided to restore all the 3 orderer with the earlier backup I had. After the restore, all the orderer's had successfully came back in quorum, but multiple peers started giving the below error ```2020-08-26 11:03:46.482 UTC [gossip.state] deliverPayloads -> PANI 03f Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [3e39ea03143fdb09a14fb92b6b429236f57dbe52acbeac9c797f6ebdeef1aa79], PreviousHash referred in the latest block= [1823042217af3f7836e7b6d9b933dc9c008fc71f85e5465c62b78217194a6b3a]``` I posted the same query in stack overflow and got a response - https://stackoverflow.com/questions/63628111/recovering-an-orderer-from-an-earlier-backup-caused-consistency-issues-with-peer/63631870#63631870. So, I did some experiments on this cluster to recover. One experiment that worked was to run `peer node reset` on a peer which reset the blocks and synced all the blocks from the orderer and the peer came back properly. This got me thinking, if I could recover the peer ledgerData, does it mean, I can only backup orderer data and will be able to do a DR with only orderer backup (assuming I recreate the cluster with same certs and keys)?

SivaramKannan (Tue, 08 Sep 2020 03:34:17 GMT):
I have a HLF 1.4.2 cluster running in GKE with 3 orderers(raft) and 3 orgs(2 peers each). Couple of ago days the orderer's pvc hit disk full and all the orderes started failing. Since I could not expand the volume live, I scaled down the orderers, took a back of the data from the PVC's and restored on an expanded volumes. While restoring the volumes, I started the each orderer immediately after restoring the volume data. So, when the second orderer was started, the orderer got the quorum and peers started writing. So, when the 3rd orderer was brought up, it refused to join the cluster with the below error ```2020-08-25 13:17:33.891 UTC [orderer.consensus.etcdraft] Step -> INFO a2d 2 [term: 2] received a MsgHeartbeat message with higher term from 1 [term: 4] channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO a2e 2 became follower at term 4 channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] commitTo -> PANI a2f tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost? channel=mychannel node=2 panic: tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost?``` Since I was not sure how to recover this, I decided to restore all the 3 orderer with the earlier backup I had. After the restore, all the orderer's had successfully came back in quorum, but multiple peers started giving the below error ```2020-08-26 11:03:46.482 UTC [gossip.state] deliverPayloads -> PANI 03f Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [3e39ea03143fdb09a14fb92b6b429236f57dbe52acbeac9c797f6ebdeef1aa79], PreviousHash referred in the latest block= [1823042217af3f7836e7b6d9b933dc9c008fc71f85e5465c62b78217194a6b3a]``` I posted the same query in stack overflow and got a response - https://stackoverflow.com/questions/63628111/recovering-an-orderer-from-an-earlier-backup-caused-consistency-issues-with-peer/63631870#63631870. So, I did some experiments on this cluster to recover. One experiment that worked was to run `peer node reset` on a peer which reset the blocks and synced all the blocks from the orderer and the peer came back properly. This got me thinking, if I could recover the peer ledgerData, does it mean, I can only backup orderer data and will be able to do a DR of the fabric network with only orderer backup (assuming I recreate the cluster with same certs and keys)?

SivaramKannan (Tue, 08 Sep 2020 03:34:17 GMT):
I have a HLF 1.4.2 cluster running in GKE with 3 orderers(raft) and 3 orgs(2 peers each). Couple of ago days the orderer's pvc hit disk full and all the orderes started failing. Since I could not expand the volume live, I scaled down the orderers, took a back of the data from the PVC's and restored on an expanded volumes. While restoring the volumes, I started the each orderer immediately after restoring the volume data. So, when the second orderer was started, the orderer got the quorum and peers started writing. So, when the 3rd orderer was brought up, it refused to join the cluster with the below error ```2020-08-25 13:17:33.891 UTC [orderer.consensus.etcdraft] Step -> INFO a2d 2 [term: 2] received a MsgHeartbeat message with higher term from 1 [term: 4] channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO a2e 2 became follower at term 4 channel=mychannel node=2 2020-08-25 13:17:33.892 UTC [orderer.consensus.etcdraft] commitTo -> PANI a2f tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost? channel=mychannel node=2 panic: tocommit(19) is out of range [lastIndex(17)]. Was the raft log corrupted, truncated, or lost?``` Since I was not sure how to recover this, I decided to restore all the 3 orderer with the earlier backup I had. After the restore, all the orderer's had successfully came back in quorum, but multiple peers started giving the below error ```2020-08-26 11:03:46.482 UTC [gossip.state] deliverPayloads -> PANI 03f Cannot commit block to the ledger due to unexpected Previous block hash. Expected PreviousHash = [3e39ea03143fdb09a14fb92b6b429236f57dbe52acbeac9c797f6ebdeef1aa79], PreviousHash referred in the latest block= [1823042217af3f7836e7b6d9b933dc9c008fc71f85e5465c62b78217194a6b3a]``` I posted the same query in stack overflow and got a response - https://stackoverflow.com/questions/63628111/recovering-an-orderer-from-an-earlier-backup-caused-consistency-issues-with-peer/63631870#63631870. So, I did some experiments on this cluster to recover based on the stackoverflow answer. One experiment that worked was to run `peer node reset` on a peer which reset the blocks and synced all the blocks from the orderer and the peer came back properly. This got me thinking, if I could recover the peer ledgerData, does it mean, I can only backup orderer data and will be able to do a DR of the fabric network with only orderer backup (assuming I recreate the cluster with same certs and keys)?

bhuwanadhikari (Tue, 08 Sep 2020 03:53:22 GMT):
so gateway/networkConnection.yaml is auto generated on running the network?

BrettLogan (Tue, 08 Sep 2020 04:00:28 GMT):
The core issue here was that the peers were ahead of the orderers, from a technical perspective, this simply can't happen (it's essentially a forked/modified ledger). You can absolutely backup peer data (and you should), but there is no reasonable way to protect against this type of error, fabric doesn't monitor disk space, and thus can't stop committing transactions when enough orderers are under disk pressure. You should use monitoring tools (like SysDig or I'm sure GCP has tooling for this) to alert you to when your disks are under pressure to prevent this from occurring. In this particular instance, you did the best you could to recover from the failed state.

BrettLogan (Tue, 08 Sep 2020 04:01:42 GMT):
This is one of the big reasons we moved to RAFT orderers, it's not expected that a single entity would manage all of the orderers (that a very dangerous and non-democratic game), so while one Orderer org may have ran out of disk space, hopefully the remaining orgs monitored and correctly handled the situation

BrettLogan (Tue, 08 Sep 2020 04:01:42 GMT):
This is one of the big reasons we moved to RAFT orderers, it's not expected that a single entity would manage all of the orderers (thats a very dangerous and non-democratic game), so while one Orderer org may have ran out of disk space, hopefully the remaining orgs monitored and correctly handled the situation

SivaramKannan (Tue, 08 Sep 2020 04:04:03 GMT):
we understand the mistakes we did and taking steps so this does not occur in future. my question is more towards a DR strategy here. Since there are so many moving parts it seems impossible to maintain consistency during a backup operation of orderers and peers(official backup/recovery documentation is really limited). My question is it a valid assumption that I will be able to recover the peer ledger data from orderers alone?

SivaramKannan (Tue, 08 Sep 2020 04:05:54 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/commands/peernode.html#peer-node-reset-example - the documentation does say that after `peer node reset` - the peer would pull the data from peers through gossip or orderers. So, if I am don't have any other peers running it should take the blocks from orderers right?

BrettLogan (Tue, 08 Sep 2020 04:06:39 GMT):
Correct

BrettLogan (Tue, 08 Sep 2020 04:07:45 GMT):
You also could have added a new orderer, and removed corrupted one. The danger here though is you were only running 3 orderers, so if one of your two remaining orderers went down while performing the addition the network would have been locked

BrettLogan (Tue, 08 Sep 2020 04:08:05 GMT):
This is why our production topology calls for 5 orderers to provide the most fault tolerance

SivaramKannan (Tue, 08 Sep 2020 04:08:34 GMT):
Yes, we have already updated out prod clusters to 5 orderes

SivaramKannan (Tue, 08 Sep 2020 04:08:50 GMT):
Thanks a lot for the answers. I have been struggling to understand and get a straight answer from any experts about DR.

BrettLogan (Tue, 08 Sep 2020 04:11:39 GMT):
From the standpoint of recovering from the situation you had, short of adding a new orderer and removing the corrupted one, you recovered in the way that you should have. Though you did probably lose some transactions

SivaramKannan (Tue, 08 Sep 2020 04:15:30 GMT):
yes, we did lose some transactions, I think that is an acceptable RPO.

SivaramKannan (Tue, 08 Sep 2020 04:15:30 GMT):
yes, we did lose some transactions, but I think that is an acceptable RPO.

ArpitKhurana (Tue, 08 Sep 2020 05:00:15 GMT):
Hello everyone , I am trying to migrate my cluster setup from kafka to raft on 1.4.2 (which went alright so far) . I wanted to have different servers for RAFT consensus and normal orderer operations . I was able to configure that , but due to this , the metrics module crashes

ArpitKhurana (Tue, 08 Sep 2020 05:00:22 GMT):
```panic: duplicate metrics collector registration attempted goroutine 1 [running]: github.com/hyperledger/fabric/vendor/github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0xc000135b30, 0xc000262910, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/prometheus/client_golang/prometheus/registry.go:387 +0xad github.com/hyperledger/fabric/vendor/github.com/prometheus/client_golang/prometheus.MustRegister(0xc000262910, 0x1, 0x1) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/prometheus/client_golang/prometheus/registry.go:172 +0x53 github.com/hyperledger/fabric/vendor/github.com/go-kit/kit/metrics/prometheus.NewCounterFrom(0x1014173, 0x4, 0x1014093, 0x4, 0x101a28b, 0xb, 0x1055ef0, 0x4f, 0x0, 0x0, ...) /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/go-kit/kit/metrics/prometheus/prometheus.go:24 +0xe3 github.com/hyperledger/fabric/common/metrics/prometheus.(*Provider).NewCounter(0x1b89950, 0x1014173, 0x4, 0x1014093, 0x4, 0x101a28b, 0xb, 0x1055ef0, 0x4f, 0x0, ...) /opt/gopath/src/github.com/hyperledger/fabric/common/metrics/prometheus/provider.go:20 +0x138 github.com/hyperledger/fabric/core/comm.NewServerStatsHandler(0x114b720, 0x1b89950, 0x2) /opt/gopath/src/github.com/hyperledger/fabric/core/comm/metrics.go:29 +0x74 github.com/hyperledger/fabric/core/comm.NewGRPCServerFromListener(0x11510e0, 0xc00000e8e0, 0x12a05f200, 0xc0001f8630, 0x1b25320, 0xc0004f12f0, 0x2, 0x2, 0xc0004f1300, 0x2, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/comm/server.go:152 +0x87e github.com/hyperledger/fabric/core/comm.NewGRPCServer(0xc0004a9930, 0xc, 0x0, 0xc0001f8630, 0x1b25320, 0xc0004f12f0, 0x2, 0x2, 0xc0004f1300, 0x2, ...) /opt/gopath/src/github.com/hyperledger/fabric/core/comm/server.go:55 +0x14b github.com/hyperledger/fabric/orderer/common/server.configureClusterListener(0xc0000ac480, 0x0, 0xc0001f85a0, 0x1b25320, 0xc0004f12f0, 0x2, 0x2, 0xc0004f1300, 0x2, 0x2, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:376 +0x78c github.com/hyperledger/fabric/orderer/common/server.Start(0x1015083, 0x5, 0xc0000ac480) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:141 +0xdf9 github.com/hyperledger/fabric/orderer/common/server.Main()```

ArpitKhurana (Tue, 08 Sep 2020 05:00:53 GMT):
Disabling the prometheous metrics from the config, fixes this problem but thats not the fix i want

ArpitKhurana (Tue, 08 Sep 2020 05:02:16 GMT):
It looks to me like , the metrics are instantiated once per GRPC server and since I have two servers (RAFT and other) , the metrics are registered twice which throws this error

ArpitKhurana (Tue, 08 Sep 2020 05:02:19 GMT):
Any hints?

Iliadis (Tue, 08 Sep 2020 05:06:43 GMT):
Has joined the channel.

Moolkothari (Tue, 08 Sep 2020 07:18:23 GMT):
Thanks for your response I have added command: peer node rollback -c mychannel -b 1 in docker compose file and it worked perfectly fine. I have commented above command for rollback and can see the log of successful rollback.

VladyslavKhymenko (Tue, 08 Sep 2020 07:22:05 GMT):
thanks for response! I have these added as env variables in `peer-base.yaml`: `- CORE_VM_DOCKER_ATTACHSTDOUT=true - CORE_CHAINCODE_LOGGING_SHIM=debug - CORE_CHAINCODE_LOGGING_LEVEL=debug`

VladyslavKhymenko (Tue, 08 Sep 2020 07:23:20 GMT):
how do I attach logs here so that it would be convenient for you to read them?

VladyslavKhymenko (Tue, 08 Sep 2020 07:25:37 GMT):
``` 2020-09-07 19:28:39.278 UTC [endorser] callChaincode -> INFO 130 [][ef051552] Entry chaincode: name:"lscc" 2020-09-07 19:28:39.281 UTC [lscc] executeInstall -> INFO 131 Installed Chaincode [deal-contract] Version [1.0.3] to peer 2020-09-07 19:28:39.281 UTC [endorser] callChaincode -> INFO 132 [][ef051552] Exit chaincode: name:"lscc" (3ms) 2020-09-07 19:28:39.281 UTC [comm.grpc.server] 1 -> INFO 133 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.32.1:53834 grpc.code=OK grpc.call_duration=3.567922ms 2020-09-07 19:29:24.450 UTC [comm.grpc.server] 1 -> INFO 134 unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=192.168.32.1:53962 grpc.code=OK grpc.call_duration=779.6µs 2020-09-07 19:29:24.466 UTC [comm.grpc.server] 1 -> INFO 135 unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=192.168.32.1:53962 grpc.code=OK grpc.call_duration=488.71µs 2020-09-07 19:29:24.480 UTC [endorser] callChaincode -> INFO 136 [some-channel][aab1269c] Entry chaincode: name:"lscc" 2020-09-07 19:30:06.205 UTC [peer.chaincode.dev-peer0.org1.example.com-deal-contract-1.0.3] func2 -> INFO 137 2020-09-07 19:30:06.205 UTC [peer.chaincode.dev-peer0.org1.example.com-deal-contract-1.0.3] func2 -> INFO 138 > deal-contract@1.0.3 start /usr/local/src 2020-09-07 19:30:06.205 UTC [peer.chaincode.dev-peer0.org1.example.com-deal-contract-1.0.3] func2 -> INFO 139 > node deal-contract.js "--peer.address" "peer0.org1.example.com:7052" 2020-09-07 19:30:06.205 UTC [peer.chaincode.dev-peer0.org1.example.com-deal-contract-1.0.3] func2 -> INFO 13a 2020-09-07 19:30:06.676 UTC [dockercontroller] func2 -> INFO 13b Container dev-peer0.org1.example.com-deal-contract-1.0.3 has closed its IO channel 2020-09-07 19:30:06.850 UTC [endorser] callChaincode -> INFO 13c [some-channel][aab1269c] Exit chaincode: name:"lscc" (42370ms) 2020-09-07 19:30:06.850 UTC [endorser] SimulateProposal -> ERRO 13d [some-channel][aab1269c] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1357 chaincode registration failed ```

VladyslavKhymenko (Tue, 08 Sep 2020 07:26:53 GMT):
so, @BrettLogan , I've attached logs from my peer, starting from successfull chaincode installation and then failure on instantiation

Gabalino (Tue, 08 Sep 2020 09:46:30 GMT):
Has joined the channel.

Gabalino (Tue, 08 Sep 2020 09:46:31 GMT):
Hello Comminity, I'm trying to create a test netetwork, command ./network.sh deployCC fails Error: timed out waiting for txid on all peers Chaincode definition approved on peer0.org1 on channel 'mychannel' failed Deploying chaincode failed Error on Docker logs [peer.blocksprovider] DeliverBlocks -> WARN 03e Could not connect to ordering service: could not dial endpoint 'orderer.example.com:7050': failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.23.0.4:7050: connect: no route to host" channel=mychannel

Gabalino (Tue, 08 Sep 2020 09:47:26 GMT):
Tell me how to solve the problem, please?

kokolaki (Tue, 08 Sep 2020 11:00:28 GMT):
I hava problems with the instantiation of java chaincode. I use fabric v1.4.2 and fabric-samples v1.4.2 form github. Can anyone help me?

kokolaki (Tue, 08 Sep 2020 11:01:34 GMT):

image1.png

kokolaki (Tue, 08 Sep 2020 11:01:40 GMT):

image2.png

kokolaki (Tue, 08 Sep 2020 11:03:38 GMT):
Also in fabcar example when I run ./startFabric.sh java I have the following error:

kokolaki (Tue, 08 Sep 2020 11:03:46 GMT):

image3.png

kokolaki (Tue, 08 Sep 2020 11:04:54 GMT):
How to instantiate java chaincode? what is the correct file of build.gradle?

schinivision (Tue, 08 Sep 2020 11:51:37 GMT):
Has joined the channel.

schinivision (Tue, 08 Sep 2020 11:51:38 GMT):
Hi Guys... what channel do you recommend to talk about chaincode?

schinivision (Tue, 08 Sep 2020 11:51:38 GMT):
Hi Guys... what channel do you recommend to talk about chaincode? In Particular... is there a limit on how large a history of a key can get? I am kind of irritated of a "magic" (100k entries in history).. I am somehow stuck on where to look for or in what kind of limitation I am running into?

schinivision (Tue, 08 Sep 2020 11:51:38 GMT):
Hi Guys... what channel do you recommend to talk about chaincode? In Particular... is there a limit on how large a history (number of entries) of a key can get? I am kind of irritated of a "magic" number (100k entries in history).. I am somehow stuck on where to look for or in what kind of limitation I am running into?

schinivision (Tue, 08 Sep 2020 11:57:00 GMT):
In Particular... is there a limit on how large a history of a key can get? I am kind of irritated of a "magic" (100k entries in history).. I am somehow stuck on where to look for or in what kind of limitation I am running into?

anuragp090 (Tue, 08 Sep 2020 11:57:41 GMT):
Hi

anuragp090 (Tue, 08 Sep 2020 12:03:06 GMT):
Hi, I am using Azure Hyperledger Fabric to create my blockchain network. And I am using a Java SDK. I am getting an Authentication error when trying to enroll the admin of one of the PeerOrg. I am not sure of the location of Admin key path, cert path and the peer TLS CA Cert. Also where can I find the admin username and password? Please help. I am stuck.

davidkel (Tue, 08 Sep 2020 12:14:32 GMT):
channel #fabric-chaincode-dev for Node and Go, #fabric-java-chaincode for java

schinivision (Tue, 08 Sep 2020 12:17:42 GMT):
Thanks

BrettLogan (Tue, 08 Sep 2020 12:34:10 GMT):
What command did you use to bootstrap fabric-samples. I just tested 1.4.2 and everything looks good on ubuntu?

VladyslavKhymenko (Tue, 08 Sep 2020 12:53:29 GMT):
Hello everybody, hope you are fine in good health, I've asked a question on SO about node chaincode instantiation on a channel using Node.js SDK, could you please take a look at it? It's about the error `failed to invoke chaincode name:"lscc" , error: container exited with 0` https://stackoverflow.com/questions/63793936/error-when-instantiating-a-node-chaincode-on-a-channel Thanks!

BrettLogan (Tue, 08 Sep 2020 13:11:20 GMT):
Your logs are still in INFO mode, you need to set `FABRIC_LOGGING_SPEC=debug` to get the information needed to debug this.

chrisckwong821 (Tue, 08 Sep 2020 13:15:37 GMT):
Has joined the channel.

VladyslavKhymenko (Tue, 08 Sep 2020 13:26:03 GMT):
thank you, will try at report back

VladyslavKhymenko (Tue, 08 Sep 2020 13:26:03 GMT):
thank you, will try and report back

VladyslavKhymenko (Tue, 08 Sep 2020 14:38:53 GMT):
@BrettLogan there are a lot of logs for those 2 seconds between sending a proposal and getting an error :) Mostly about gathering and verifying signatures from the identities, but then all of a sudden it says `DEBU 7ff90 stopping due to error while launching: container exited with 0`, and just before that ` INFO 7ff84 Container dev-peer0.org1.example.com-deal-1.0.0 has closed its IO channel`

ROHAN_SHROTHRIUM (Tue, 08 Sep 2020 14:47:24 GMT):
Hi guys! I'm trying to setup a network with raft consensus with five nodes but I keep getting this error: `2020-09-08 11:08:20.698 UTC [orderer.commmon.multichannel] newChainSupport -> PANI 009 [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration panic: [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration`

ROHAN_SHROTHRIUM (Tue, 08 Sep 2020 14:47:24 GMT):
Hi guys! I'm trying to setup a network with raft consensus with five nodes but I keep getting this error: ``` 2020-09-08 11:08:20.698 UTC [orderer.commmon.multichannel] newChainSupport -> PANI 009 [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration panic: [channel: byfn-sys-channel] Error creating consenter: failed to parse TickInterval () to time duration ``` Has anyone come across this problem?

VladyslavKhymenko (Tue, 08 Sep 2020 14:51:12 GMT):
Do you mind if I attach logs from the peer here for you to take a look? I would really appreciate this. I extracted the exact lines from sending the proposal to exiting with 0, so I tried to keep it as little as possible

BrettLogan (Tue, 08 Sep 2020 15:47:35 GMT):
Of course

BrettLogan (Tue, 08 Sep 2020 15:48:15 GMT):
what is the value of your tick interval in your orderer.yaml

VladyslavKhymenko (Tue, 08 Sep 2020 15:49:28 GMT):
I also tried installing and instantiating the chaincode that goes with BYFN examples (`chaincode_example02.js`) and after trying to instantiate it, I got a more desciptive error saying: ``` 2020-09-08 15:44:51.860 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac8e 2020-09-08 15:44:51.860 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac8f > example@1.0.1 start /usr/local/src 2020-09-08 15:44:51.860 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac90 > example.js "--peer.address" "peer0.org2.example.com:9052" 2020-09-08 15:44:51.860 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac91 2020-09-08 15:44:51.876 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac92 sh: 1: example.js: not found 2020-09-08 15:44:51.878 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac93 npm ERR! code ELIFECYCLE 2020-09-08 15:44:51.878 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac94 npm ERR! syscall spawn 2020-09-08 15:44:51.878 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac95 npm ERR! file sh 2020-09-08 15:44:51.878 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac96 npm ERR! errno ENOENT 2020-09-08 15:44:51.879 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac97 npm ERR! example@1.0.1 start: `example.js "--peer.address" "peer0.org2.example.com:9052"` 2020-09-08 15:44:51.879 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac98 npm ERR! spawn ENOENT 2020-09-08 15:44:51.879 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac99 npm ERR! 2020-09-08 15:44:51.879 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac9a npm ERR! Failed at the example@1.0.1 start script. 2020-09-08 15:44:51.879 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac9b npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 2020-09-08 15:44:51.883 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac9c 2020-09-08 15:44:51.883 UTC [peer.chaincode.dev-peer0.org2.example.com-example-1.0.1] func2 -> INFO 12ac9d npm ERR! ```

VladyslavKhymenko (Tue, 08 Sep 2020 15:50:02 GMT):
I installed it with new name and id of course

VladyslavKhymenko (Tue, 08 Sep 2020 15:51:58 GMT):
attaching the logs from previous attempts with my custom chaincode, which works fine with VS Code IBM Blockchain Extension

VladyslavKhymenko (Tue, 08 Sep 2020 15:52:17 GMT):

peer0org1-log.txt

VladyslavKhymenko (Tue, 08 Sep 2020 16:00:36 GMT):
I wonder why this fails here, but the exact same chaincode on the same network was installed and instantiated successfully by shell scripts used by `byfn.sh` `INFO 12ac9a npm ERR! Failed at the example@1.0.1 start script`

crestrer (Tue, 08 Sep 2020 16:34:28 GMT):
q

rajatshah (Tue, 08 Sep 2020 16:37:33 GMT):
Has joined the channel.

rajatshah (Tue, 08 Sep 2020 16:37:34 GMT):
Hi I have a working setup of Blockchain runinng on 2 host with single orgnazation .. Endorsement required from any of one peer .. When i am making other peer down my application is giving error

rajatshah (Tue, 08 Sep 2020 16:37:50 GMT):
Failed to connect before the deadline on Endorser- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true 2020-09-08T15:24:22.788Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.org1.example.com url:grpcs://localhost:8051 timeout:3000 2020-09-08T15:24:22.788Z - error: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer1.org1.example.com due to Error: Failed to connect before the deadline on Endorser- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true at checkState (/home/testteam/Client_App_Hyperledger/node_modules/@grpc/grpc-js/build/src/client.js:69:26) at Timeout._onTimeout (/home/testteam/Client_App_Hyperledger/node_modules/@grpc/grpc-js/build/src/channel.js:292:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) { connectFailed: true }

rajatshah (Tue, 08 Sep 2020 16:38:21 GMT):
while when i am removing peer1 from connection-org1.json it is working fine

rajatshah (Tue, 08 Sep 2020 16:38:38 GMT):
and Transaction is getting committed in peer

rajatshah (Tue, 08 Sep 2020 16:38:41 GMT):
ledger

rajatshah (Tue, 08 Sep 2020 16:39:19 GMT):
020-09-08T15:24:25.790Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Discoverer- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true 2020-09-08T15:24:25.790Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.org1.example.com url:grpcs://localhost:8051 timeout:3000 Getting error gateway.getNetwork: Error: Failed to connect before the deadline on Discoverer- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true Getting error: Error: Error: Failed to connect before the deadline on Discoverer- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true Error: Error: Error: Failed to connect before the deadline on Discoverer- name: peer1.org1.example.com, url:grpcs://localhost:8051, connected:false, connectAttempted:true at invokeTransaction (/home/testteam/Client_App_Hyperledger/invoke.js:127:13) at processTicksAndRejections (internal/process/task_queues.js:97:5)

rajatshah (Tue, 08 Sep 2020 16:39:51 GMT):
Can someone please help if i need to do something in my application to Handle this as i want Fault Tolerant system

BrettLogan (Tue, 08 Sep 2020 16:51:20 GMT):
The SDK teams are working on failover for discovery. This was taken up this morning as high priority. So even if one of the peers was inaccessible for some reason, it will exhaust the list of all peers before reporting failure.

BrettLogan (Tue, 08 Sep 2020 16:54:37 GMT):
Reading through this now, sorry was grabbing lunch

rajatshah (Tue, 08 Sep 2020 16:55:06 GMT):
@BrettLogan Thanks for your response ..Does it mean if connection to any one peer fail .chain code will not be able to commit the transaction

BrettLogan (Tue, 08 Sep 2020 16:56:04 GMT):
No, if the connection fails, it will try another peer, until it gets to a peer that works. Or, if none were available, only then would it fail. Of course all of this assumes you are using service discovery, which I assumed you were

VladyslavKhymenko (Tue, 08 Sep 2020 16:56:08 GMT):
okay, so I changed the `start` script in `package.json`and it got instantiated, but my other chaincode that was developed using `fabric-contract-api` has correct `start` script still can't be deployed, will investigate further

BrettLogan (Tue, 08 Sep 2020 16:57:21 GMT):
Is your dead chaincode container around still, can you share the logs of that as well

rijulaggarwal (Tue, 08 Sep 2020 16:57:32 GMT):
Hi everyone, are there weekly meeting still happening for fabric-samples workgroup? Or is there any other meeting you recommend to get started with samples? I'm interested in contributing to the project

VladyslavKhymenko (Tue, 08 Sep 2020 16:57:47 GMT):
points so far: 1) i installed and instantiated the chaincode that comes with `byfn` tutorial after changing `start` script in `package.json` 2) my other chaincode can't be instantiate due to some build errors

rajatshah (Tue, 08 Sep 2020 16:58:21 GMT):
I have peer0 and peer1 .Peer1 is down and peer0 is up when i try to invoke a transaction it is not committing in ledger using peer0 .Endorsement policy is to approval from single peer .

VladyslavKhymenko (Tue, 08 Sep 2020 16:58:35 GMT):
> Is your dead chaincode container around still, can you share the logs of that as well ccenv container had no errors, there was just `npm install`

rajatshah (Tue, 08 Sep 2020 16:59:14 GMT):
Fabric Network API is giving error as mentioned in question earlier

BrettLogan (Tue, 08 Sep 2020 16:59:30 GMT):
What version of fabric is this, 1.4 or 2.x

VladyslavKhymenko (Tue, 08 Sep 2020 16:59:44 GMT):
Is it possible that this version of hyperledger requires chaincodes to be developed with `shim` instead of `fabric-contract-api`? E.g. the network requires chaincodes to have `Init` and `Invoke` methods

BrettLogan (Tue, 08 Sep 2020 17:03:17 GMT):
Good afternoon, the fabric-samples workgroup is done for now. They have contributed all of the `asset` samples you see in the root of the repository. Additionally, users who want to contribute, you can feel free to translate the existing samples into other languages, so for example, https://github.com/hyperledger/fabric-samples/tree/master/asset-transfer-sbe has been translated into javascript and java but not Go yet

BrettLogan (Tue, 08 Sep 2020 17:04:16 GMT):
So if you are 1.4, it's possible you are hitting an issue here depending on versions

kokolaki (Tue, 08 Sep 2020 17:04:44 GMT):
I git clone fabric-samples repository: 1)git clone https://github.com/hyperledger/fabric-samples.git 2)cd fabric-samples 3)git checkout refs/tags/v1.4.2 4)cd fabcar 5)./startFabric.sh java

VladyslavKhymenko (Tue, 08 Sep 2020 17:05:07 GMT):
Yes, I'm on 1.4.x

VladyslavKhymenko (Tue, 08 Sep 2020 17:05:33 GMT):
so you think it's possible that it just requires the chaincode to have Init and Invoke, right?

VladyslavKhymenko (Tue, 08 Sep 2020 17:06:03 GMT):
will try instantiating other kinds of chaincodes tomorrow for full understanding

BrettLogan (Tue, 08 Sep 2020 17:06:07 GMT):
What version of fabric-contract-api are you using?

BrettLogan (Tue, 08 Sep 2020 17:06:27 GMT):
Trying to dig up our support matrix

VladyslavKhymenko (Tue, 08 Sep 2020 17:06:41 GMT):
"fabric-contract-api": "^1.4.5", "fabric-network": "^1.4.8", "fabric-shim": "~1.4.0",

VladyslavKhymenko (Tue, 08 Sep 2020 17:06:58 GMT):
i included the shim package just for attempt's sake

BrettLogan (Tue, 08 Sep 2020 17:07:38 GMT):
Can you jump over to the `fabric-sdk-node` and ask if those versions are supported together. You may not get answer today as all of the SDK devs are in the UK, but they are responsive and you will get an answer in their morning.

VladyslavKhymenko (Tue, 08 Sep 2020 17:07:39 GMT):
thank you so much for spending your time on this

BrettLogan (Tue, 08 Sep 2020 17:08:10 GMT):
I'll also ask them to take a look at this thread (which looking back on it is where we should have had this conversation)

VladyslavKhymenko (Tue, 08 Sep 2020 17:08:48 GMT):
okay thank you, I'm utc+2 so it's no problem :)

VladyslavKhymenko (Tue, 08 Sep 2020 17:09:53 GMT):
will ask tomorrow morning, will be AFK from now, thank you again

rijulaggarwal (Tue, 08 Sep 2020 17:28:32 GMT):
Thank you for the information

kokolaki (Tue, 08 Sep 2020 18:35:18 GMT):
I use golang version 1.12, java jdk 1.8, fabric binaries of version 1.4.2 I did some changes in build.gradle file of fabcar chaincode and the error are now:

kokolaki (Tue, 08 Sep 2020 18:35:41 GMT):

image2.png

kokolaki (Tue, 08 Sep 2020 18:35:49 GMT):

image3.png

kokolaki (Tue, 08 Sep 2020 18:36:34 GMT):
the build.gradle file after changes is:

kokolaki (Tue, 08 Sep 2020 18:36:44 GMT):

image1.png

kokolaki (Tue, 08 Sep 2020 18:37:05 GMT):
and my docker images are:

kokolaki (Tue, 08 Sep 2020 18:37:14 GMT):

images4.png

kokolaki (Tue, 08 Sep 2020 18:37:33 GMT):
What may cause the problem?

arjones (Tue, 08 Sep 2020 20:21:48 GMT):
Hi all, I have a question. Do I need to define a new consortium for each channel? Say I have 3 channels and 3 orgs. Channel A and B have a peer from each org participating, but channel C only has a peer from orgs 1 and 2. Assume each channel has a corresponding chaincode deployed on it. Do I need to define a consortium for each channel A, B, and C? Can I use the same consortium for channels A and B since the orgs who participate in each channel are identical? Thanks for the help.

akshay.sood (Wed, 09 Sep 2020 05:30:28 GMT):
Hi guys I am trying to update the private data collection (`blockToLive` to be specific) using `peer chaincode upgrade` command. But any changes to `blockToLive` in upgrade are not being honoured. Any suggestions?

aditya520 (Wed, 09 Sep 2020 05:45:46 GMT):
Hey Akshay, you can't upgrade that.* Note that you cannot update the collection name or the blockToLive property, since a consistent blockToLive is required regardless of a peer’s block height.*

aditya520 (Wed, 09 Sep 2020 05:45:46 GMT):
Hey Akshay, you can't upgrade that.* Note that you cannot update the collection name or the blockToLive property, since a consistent blockToLive is required regardless of a peer’s block height.* Reference: https://hyperledger-fabric.readthedocs.io/en/release-2.2/private-data-arch.html?highlight=blocktolive#updating-a-collection-definition

akshay.sood (Wed, 09 Sep 2020 05:46:44 GMT):
Thanks @aditya520

ROHAN_SHROTHRIUM (Wed, 09 Sep 2020 06:57:29 GMT):
I've set it to 500ms

ROHAN_SHROTHRIUM (Wed, 09 Sep 2020 06:59:23 GMT):
I'm currently using fabric v1.4.6 so the nomenclature is a bit different and tick interval only takes integer values Assuming its milliseconds I've set it as 500

VladyslavKhymenko (Wed, 09 Sep 2020 08:18:58 GMT):
hey @BrettLogan , just wanted to let you know that I have figured it out at last. The problem was that for some reason one of my custom chaincode classes did not inherit `Init()` and `Invoke()` methods after extending the `Chaincode` class from `fabric-shim`. I redeclared them in my chaincode explicitly and the chaincode got instantiated successfully. The main point here is: `Init()` and `Invoke()` MUST be in the chaincode class inheritance tree somewhere for the building stage to complete successfully.

Jonty16117 (Wed, 09 Sep 2020 11:50:05 GMT):
Hi community.....I want to know that is it ok if in my fabric network, to constantly make new channels and maybe close some of the old ones???

wolfstarblitzer (Wed, 09 Sep 2020 11:50:23 GMT):
Has joined the channel.

wolfstarblitzer (Wed, 09 Sep 2020 11:50:23 GMT):
Hi! how do I check to seek what chaincodes have been installed on my peer?

rbole (Wed, 09 Sep 2020 12:12:45 GMT):
do you found a solution for this?

wolfstarblitzer (Wed, 09 Sep 2020 13:09:13 GMT):
have not found a solution yet...

chrisckwong821 (Wed, 09 Sep 2020 14:21:37 GMT):
peer chaincode list --installed>

chrisckwong821 (Wed, 09 Sep 2020 14:21:37 GMT):
peer chaincode list --installed

crestrer (Wed, 09 Sep 2020 16:36:27 GMT):

Problem-CreateChannel

crestrer (Wed, 09 Sep 2020 16:36:35 GMT):

Clipboard - 9 de septiembre de 2020 11:36

crestrer (Wed, 09 Sep 2020 16:37:02 GMT):
Hi everyone, I have a problem when I create a Channel.

crestrer (Wed, 09 Sep 2020 16:37:02 GMT):
Hi everyone, I have a problem when I create a Channel. (IMG) in the Reply, Someone knows why this message appear ?

crestrer (Wed, 09 Sep 2020 16:37:02 GMT):

crestrer (Wed, 09 Sep 2020 16:37:21 GMT):

Clipboard - 9 de septiembre de 2020 11:37

crestrer (Wed, 09 Sep 2020 16:37:48 GMT):

Clipboard - 9 de septiembre de 2020 11:37

crestrer (Wed, 09 Sep 2020 16:44:55 GMT):

Clipboard - 9 de septiembre de 2020 11:44

rbole (Wed, 09 Sep 2020 16:46:21 GMT):
ok thanks

george9898 (Wed, 09 Sep 2020 19:38:40 GMT):
Has joined the channel.

chrisckwong821 (Thu, 10 Sep 2020 03:34:22 GMT):
channel A could has its own endorsement policy even though it has the same consortium with channel B

chrisckwong821 (Thu, 10 Sep 2020 03:34:22 GMT):
channel A could has its own endorsement policy even though it has the same consortium(set of orgs) with channel B

chrisckwong821 (Thu, 10 Sep 2020 03:34:22 GMT):
channel A could has its own endorsement policy even though it has the same consortium(the set of orgs) with channel B

SivaramKannan (Thu, 10 Sep 2020 06:19:37 GMT):
@BrettLogan mentioned this in one of the earlier conversation regarding recovering orderer - https://chat.hyperledger.org/channel/fabric-questions?msg=9hnmpRWnMkWQzJYgp. I just want to clarify ```1. Whether orderers nodes can be represented by multiple organizations? 2. Is there any recommendation on how to setup the orderers organization in production? 3. Is it a good practise to have separate organization for orderer alone?```

SivaramKannan (Thu, 10 Sep 2020 06:19:37 GMT):
@BrettLogan mentioned this in one of the earlier conversation regarding recovering orderer - https://chat.hyperledger.org/channel/fabric-questions?msg=9hnmpRWnMkWQzJYgp. I just want to clarify ```1. Whether orderers nodes can be represented by multiple organizations? 2. Is there any recommendation on how to setup the orderers organization in production? 3. Is it a good practice to have separate organization for orderer alone?```

SivaramKannan (Thu, 10 Sep 2020 06:25:04 GMT):
as far as I understand fabric, you cannot remove a channel from the network.

schinivision (Thu, 10 Sep 2020 07:15:55 GMT):
Hi. Is there any possibility to query the history with pagination to overcome the totalQueryLimit? How to extract a History that is above the totalQueryLimit? Is there any other way? Because raising the limit will only postpone the problem not solve it?

schinivision (Thu, 10 Sep 2020 07:15:55 GMT):
Hi. Is there any possibility to query the history with pagination to overcome the totalQueryLimit? How to extract a History that is above the totalQueryLimit? Is there any other way? Because raising the limit will only postpone the problem not solve it? (V1.3)

schinivision (Thu, 10 Sep 2020 08:12:54 GMT):
Is there any indication when this feature will be implemented? https://jira.hyperledger.org/browse/FAB-12881?jql=text%20~%20%22GetHistoryForKey%22

rajatshah (Thu, 10 Sep 2020 09:39:33 GMT):
Can some one tell me recommended consortium for orderer as i am running 3 orderer.2 on Host 1 and one on Host 2. But when i making Host1 down, host 2 is not allowing the transaction to be commited by giving error "Rejecting broadcast of normal message from 172.19.0.1:12262 with SERVICE_UNAVAILABLE: rejected by Order: no Raft leader"

huytn.it (Thu, 10 Sep 2020 09:56:49 GMT):
hi, I got error while joinning peer0.org1 to channel. I'm trying to deploy test-network on two hosts. - host1: orderer, ca-order, ca-org1, peer0.org1 - host2: ca-org2, peer0.org2 here is error message from peer: - 2020-09-10 09:47:42.022 UTC [core.comm] ServerHandshake -> ERRO 47d TLS handshake failed with error remote error: tls: bad certificate server=PeerServer remoteaddress=172.18.0.1:50098 here is error message from order: - 2020-09-10 09:40:12.369 UTC [common.deliver] Handle -> DEBU 713 Waiting for new SeekInfo from 172.18.0.1:34620 - 2020-09-10 09:40:12.369 UTC [common.deliver] Handle -> DEBU 714 Attempting to read seek info message from 172.18.0.1:34620 - 2020-09-10 09:40:12.375 UTC [common.deliver] Handle -> WARN 715 Error reading from 172.18.0.1:34620: rpc error: code = Canceled desc = context canceled - 2020-09-10 09:40:12.375 UTC [orderer.common.server] func1 -> DEBU 716 Closing Deliver stream how to resolve this issue?

rajatshah (Thu, 10 Sep 2020 10:04:25 GMT):
How host are communicating .Have you used docker swarn .How crypto material is generated

huytn.it (Thu, 10 Sep 2020 10:08:44 GMT):
yes, i used swarm and used twoorgsordergenesis profile to generate

rajatshah (Thu, 10 Sep 2020 10:29:47 GMT):
There must be some Crypto material mismatch

DiAnh (Thu, 10 Sep 2020 10:45:30 GMT):
hi, i would to ask about blockNumber. what is mean blockNum low, blockNumber high? thank for helping `{ header: { number: Long { low: 0, high: 0, unsigned: true }, previous_hash: , data_hash: }, data: { data: [ [Object] ] }, metadata: { metadata: [ [Object], {}, [Array], {}, ] } }`

DiAnh (Thu, 10 Sep 2020 10:45:30 GMT):
hi, i would to ask about blockNumber. what is mean blockNum low, blockNumber high? thank for helping ``` { header: { number: Long { low: 0, high: 0, unsigned: true }, previous_hash: , data_hash: }, data: { data: [ [Object] ] }, metadata: { metadata: [ [Object], {}, [Array], {}, ] } } ```

SivaramKannan (Thu, 10 Sep 2020 12:04:01 GMT):
In raft protocol, when you have 3 nodes, the crash tolerance is 1 node only. if you lose two nodes, the raft cluster won't work. you need atleast 2 out of 3 nodes up for your invoke to work

robert.beerta (Thu, 10 Sep 2020 13:07:16 GMT):
Hello, I'm having some issues adding a new peer to my network and i hope someone here can be of help. After adding all the correct cryto material and channel artifacts i am running into the following error when starting the peer: `2020-09-10 12:58:31.427 UTC [common.deliver] deliverBlocks -> ERRO 354dd62 [channel: my_channel] Error reading from channel, cause was: NOT_FOUND` I have verified that the crypto material is mounted correctly and that the peer has joined the channel Is anyone familiar what can cause this error? and maybe give me an avenue to fix this?

robert.beerta (Thu, 10 Sep 2020 13:07:16 GMT):
Hello, I'm having some issues adding a new peer to my network and i hope someone here can be of help. After adding all the correct cryto material and channel artifacts i am running into the following error when starting the peer: `2020-09-10 12:58:31.427 UTC [common.deliver] deliverBlocks -> ERRO 354dd62 [channel: my_channel] Error reading from channel, cause was: NOT_FOUND` I have verified that the crypto material is mounted correctly and that the peer has joined the channel Is anyone familiar what can cause this error? and maybe give me an avenue to fix this?

danywizzz (Thu, 10 Sep 2020 14:07:21 GMT):
Has joined the channel.

danywizzz (Thu, 10 Sep 2020 14:07:22 GMT):
Hi guys. I`m studing "Using the Fabric test network" guide and trying to stand up my test network. I`ve issue on the step "Creating a channel". When i ran a command "./network.sh createChannel" I have failed create channel. How can i fix it? I hope anyone can help me, please. + peer channel create -o localhost:7050 -c MyChannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/My Channel.tx --outputBlock ./channel-artifacts/MyChannel.block --tls --cafile /c/Users/dan/Desktop/HF/fabric-samples/test-network /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new co nnection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

danywizzz (Thu, 10 Sep 2020 14:07:22 GMT):
Hi guys. I`m studing Using the Fabric test network guide and trying to stand up my test network. I`ve issue on the step "Creating a channel". When i ran a command "./network.sh createChannel" I have failed create channel. How can i fix it? I hope anyone can help me, please. + peer channel create -o localhost:7050 -c MyChannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/My Channel.tx --outputBlock ./channel-artifacts/MyChannel.block --tls --cafile /c/Users/dan/Desktop/HF/fabric-samples/test-network /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new co nnection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

rajatshah (Thu, 10 Sep 2020 17:51:57 GMT):
if i run 2 orderer on each node will it work

rajatshah (Thu, 10 Sep 2020 17:52:03 GMT):
??

marxeb (Thu, 10 Sep 2020 18:58:52 GMT):
Has joined the channel.

marxeb (Thu, 10 Sep 2020 18:58:52 GMT):
Hi, knows

marxeb (Thu, 10 Sep 2020 19:00:43 GMT):
Hi, Is there a tutorial or documentation for design and deploy a network in kubernetes?

babiskg (Thu, 10 Sep 2020 19:16:40 GMT):
hello , does anyone know if i can get data that is stored in hyperledger fabric and then display them with prometheus?

saiteja12 (Thu, 10 Sep 2020 19:24:15 GMT):
Has joined the channel.

saiteja12 (Thu, 10 Sep 2020 19:24:15 GMT):
I have a quick question i am new to hyper ledger fabric , I started learning hyper ledger fabric 2 weeks before and i have learned a little bit my question is I am using the asset-transfer-baic module provided by the hyper ledger fabric and I am following the docs provided by the hyper ledger fabric.org and I was able to query all the aasests (which are written in assest-transfer-basic module)from the ledger and transfer the ownership of the assests but my question is whether this operations and update of this ledger will be recorded in the blockchain? my second question is can we write some data into the block chain using hyper ledger fabric and check whether that data is in the blockchain?

AspynP (Thu, 10 Sep 2020 22:29:35 GMT):
Has joined the channel.

huytn.it (Fri, 11 Sep 2020 02:53:30 GMT):
ah, crypto material is generated from CA

huytn.it (Fri, 11 Sep 2020 03:22:44 GMT):
it works, thanks @rajatshah

RahulEth (Fri, 11 Sep 2020 07:03:25 GMT):
Hi all in HLF All signing keys and certs getting store in wallet and it is hosted on back-end. I mean project Owner have access of the wallet and he can easily get all signing key and make the transaction on user behalf. My main concern is wallet security. how we can make it more secure and decentralise so that even Owner of the project can not have access of the wallet. All suggestion are welcome

jmocholi (Fri, 11 Sep 2020 09:29:56 GMT):
Hi @bh4rtp I am suffering the same problem. Did you manage to overcome it?

jmocholi (Fri, 11 Sep 2020 09:33:00 GMT):
Reviewing the `deployCC.sh` log, the command used for `approveformyorg` shows the following string: `--signature-policy 'AND('\''Org1MSP.peer'\'','\''Org2MSP.peer'\'')'`

jmocholi (Fri, 11 Sep 2020 09:34:42 GMT):
I don't understand way it is that way but it works for the test-network, but unfortunately not for mine.

jmocholi (Fri, 11 Sep 2020 09:40:32 GMT):
Hi there! I suppose you have an instance of the test-network up&running when you try to create an additional channel, right?

jmocholi (Fri, 11 Sep 2020 09:42:42 GMT):
Does the `peer channel list` command work fine?

danywizzz (Fri, 11 Sep 2020 10:42:28 GMT):
I have written you in direct

danywizzz (Fri, 11 Sep 2020 10:47:21 GMT):
I didnt have created addition channel I only followed guide and i suppose i tryied to create a main channel maybe What is command peer channel list? Console have not found this command If i use "docker ps -a" u can see this CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e39e5af1a71b hyperledger/fabric-orderer:latest "orderer" 16 minutes ago Exited (127) 16 minutes ago 0.0.0.0:7050->7050/tcp orderer.example.com 1551d1a74ba4 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 39 seconds 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com 9d856b9db13f hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 39 seconds 0.0.0.0:7051->7051/tcp peer0.org1.example.com

danywizzz (Fri, 11 Sep 2020 10:47:21 GMT):
I didnt have created addition channel. I only followed guide and i suppose i tried to create a main channel maybe What is command peer channel list? Console have not found this command If i use "docker ps -a" u can see this CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e39e5af1a71b hyperledger/fabric-orderer:latest "orderer" 16 minutes ago Exited (127) 16 minutes ago 0.0.0.0:7050->7050/tcp orderer.example.com 1551d1a74ba4 hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 39 seconds 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com 9d856b9db13f hyperledger/fabric-peer:latest "peer node start" 16 minutes ago Up 39 seconds 0.0.0.0:7051->7051/tcp peer0.org1.example.com

jmocholi (Fri, 11 Sep 2020 10:48:44 GMT):
My advice is that, first, bring down the network with `network.sh down` so there is no leftovers

danywizzz (Fri, 11 Sep 2020 10:49:40 GMT):
I have done it

jmocholi (Fri, 11 Sep 2020 10:49:54 GMT):
Then build a network with `./network.sh up createChannel -ca -c `

jmocholi (Fri, 11 Sep 2020 10:50:41 GMT):
everything should finish succesfully

jmocholi (Fri, 11 Sep 2020 10:52:04 GMT):
In order to be able to launch some peer command you have to set some env variables

jmocholi (Fri, 11 Sep 2020 10:52:46 GMT):
I've been using these to execute peer command in the peer0.Org1

jmocholi (Fri, 11 Sep 2020 10:52:49 GMT):
``` ```

jmocholi (Fri, 11 Sep 2020 10:52:49 GMT):
``` PATH=$PWD/../bin:$PATH FABRIC_CFG_PATH=$PWD/../config CORE_PEER_TLS_ENABLED=true ORDERER_CA=$PWD/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PWD/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=$PWD/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=localhost:7051 ```

jmocholi (Fri, 11 Sep 2020 10:54:10 GMT):
so, with thos env variables you should be able to check if peer0.Org1 has joined your channel with `peer channel list`

jmocholi (Fri, 11 Sep 2020 10:54:10 GMT):
so, with those env variables you should be able to check if peer0.Org1 has joined your channel with `peer channel list`

danywizzz (Fri, 11 Sep 2020 10:55:14 GMT):
Ok, at first. I have done this `./network.sh up createChannel -ca -c ` But i also have a error. `Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it." !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed `

jmocholi (Fri, 11 Sep 2020 10:56:31 GMT):
sorry, I've never faced that error. I've no idea what could cause it

danywizzz (Fri, 11 Sep 2020 10:57:19 GMT):
Ok. thank u for ur answer!

amolpednekar (Fri, 11 Sep 2020 11:10:46 GMT):
Try replacing *localhost* with the actual IP (if you are running from a VM..) sometimes localhost is not addresable

danywizzz (Fri, 11 Sep 2020 11:16:47 GMT):
I dont run from a VM. I only use docker toolbox and my operation system win 10

danywizzz (Fri, 11 Sep 2020 11:17:13 GMT):
Any ideas, bro?)

amolpednekar (Fri, 11 Sep 2020 11:17:52 GMT):
Why arent you using native Docker? Toolbox is for old windows versions

danywizzz (Fri, 11 Sep 2020 11:18:56 GMT):
Ok, i try to install it now

guolidong (Fri, 11 Sep 2020 11:24:10 GMT):
``` upgrade problem: from 1.4.2 to 1.4.3 , follow doc ,but,it's wrong: ``` 2020-09-11 11:15:03.937 UTC [cli.common] readBlock -> INFO 003 Received block: 2 2020-09-11 11:15:03.937 UTC [channelCmd] fetch -> INFO 004 Retrieving last config block: 2 Decoding config block to JSON and isolating config to config.json + set +x + configtxlator proto_decode --input config_block.pb --type common.Block + jq '.data.data[0].payload.data.config' + set +x + configtxlator proto_encode --input config.json --type common.Config + configtxlator proto_encode --input modified_config.json --type common.Config + configtxlator compute_update --channel_id byfn-sys-channel --original original_config.pb --updated modified_config.pb configtxlator: error: Error computing update: error computing config update: no differences detected between original and updated config + configtxlator proto_decode --input config_update.pb --type common.ConfigUpdate + jq . ++ cat config_update.json + echo '{"payload":{"header":{"channel_header":{"channel_id":"byfn-sys-channel", "type":2}},"data":{"config_update":{' '"channel_id":' '"",' '"isolated_data":' '{},' '"read_set":' null, '"write_set":' null '}}}}' + configtxlator proto_encode --input config_update_in_envelope.json --type common.Envelope + set +x + peer channel update -f config_update_in_envelope.pb -c byfn-sys-channel -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2020-09-11 11:15:04.169 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'byfn-sys-channel': error authorizing update: ConfigUpdate for channel '' but envelope for channel 'byfn-sys-channel' + res=1 + set +x !!!!!!!!!!!!!!! Config update for "orderer" on "byfn-sys-channel" failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ERROR !!!! Test failed [services@dev-chain-01 ~/fabric-samples/first-network]$

Harshupadhyay397 (Fri, 11 Sep 2020 13:11:07 GMT):
Has joined the channel.

Harshupadhyay397 (Fri, 11 Sep 2020 13:11:11 GMT):
Which blockchain should i choose to build healthcare project etherium or hyperleader fabric?

SpecialAgentCooper (Fri, 11 Sep 2020 15:48:47 GMT):
do you want to build a permissioned blockchain or one that is publicly accessible? If you plan to do business with healthcare companies, I would advise going down the private, permissioned route i.e. HLF. It depends entirely on what you healthcare project is aiming to do

SpecialAgentCooper (Fri, 11 Sep 2020 15:48:47 GMT):
do you want to build a permissioned blockchain or one that is publicly accessible? If you plan to do business with healthcare companies, I would advise going down the private, permissioned route i.e. HLF. It depends entirely on what your healthcare project is aiming to do

SpecialAgentCooper (Fri, 11 Sep 2020 15:50:43 GMT):
I'm working on deploying to kubernetes at the minute and I haven't found a comprehensive tutorial, but this library looks useful: https://github.com/hyperledger/fabric-test/tree/master/tools/operator

rijulaggarwal (Fri, 11 Sep 2020 17:54:26 GMT):
Hi, I was trying to folloow this doc: https://hyperledger-fabric.readthedocs.io/en/latest/install.html I do see the list of images at the end, however when I try to setup my test-network, (upon doing `./network up`) it fails as below: ``` Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen' Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html ``` Any ideas?

rijulaggarwal (Fri, 11 Sep 2020 18:39:26 GMT):
Resolved. Misread that I need to run that command before cloning the repository. It clones on its own.

Jonty16117 (Fri, 11 Sep 2020 21:05:09 GMT):
R u sure?

rijulaggarwal (Sat, 12 Sep 2020 19:00:16 GMT):
Hi all, I was trying to run the go sample application in the `fabric-samples` repository. However, I keep running into the following problem: ``` rijuls-mbp:application-go rijul$ go run assetTransfer.go 2020/09/12 14:48:51 ============ application-golang starts ============ [fabsdk/core] 2020/09/12 18:48:51 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation [fabsdk/fab] 2020/09/12 18:48:51 UTC - peer.(*peerEndorser).sendProposal -> ERRO process proposal failed [rpc error: code = Unknown desc = error validating proposal: access denied: channel [mychannel] creator org [Org1MSP]] 2020/09/12 14:48:51 Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [localhost:7051]: gRPC Transport Status Code: (2) Unknown. Description: error validating proposal: access denied: channel [mychannel] creator org [Org1MSP] exit status 1 ``` I've been able to successfully run the javascript sample, just not go. Is that sample out of date? Or I'm doing something wrong here?

kokolaki (Sun, 13 Sep 2020 06:26:16 GMT):
How did you resolved it? because i have the same problem on arm architecture. I just clone fabric-samples from repository "https://github.com/hyperledger/fabric-samples" and checkout in appropriate tag.

kokolaki (Sun, 13 Sep 2020 06:26:16 GMT):
How did you resolve it? because i have the same problem on arm architecture. I just clone fabric-samples from repository "https://github.com/hyperledger/fabric-samples" and checkout in appropriate tag.

kokolaki (Sun, 13 Sep 2020 06:26:57 GMT):
But i can't start the network.

kokolaki (Sun, 13 Sep 2020 13:01:06 GMT):
I run fabric on arm architecture...

babiskg (Sun, 13 Sep 2020 13:55:20 GMT):
Hello , is it possible to display data with charts or graphs inside couchdb fauxton ?

rijulaggarwal (Sun, 13 Sep 2020 16:50:17 GMT):
Actually I just ran `curl -sSL https://bit.ly/2ysbOFE | bash -s` in a new empty folder. The 1st step of the command clones the repository. I assumed my local existing clone was not up to date so I let it clone a fresh copy

BrettLogan (Mon, 14 Sep 2020 00:59:37 GMT):
What version of Go are you using?

kokolaki (Mon, 14 Sep 2020 06:45:48 GMT):
ok, but this command doesn't work on a raspberry. I just clone fabric-samples form github repository, but I have problems with them.

chintanr11 (Mon, 14 Sep 2020 07:29:48 GMT):
In HLF v1.4.x, I read here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/chaincodenamespace.html#channels that the peer if joined to multiple channels, and we instantiate the same chaincode on different channels then there will be single chaincode container, connected to the given different channels. I understand that ledger and world statedb will be different for sure. Now I am confused - that what happens if we upgrade the chaincode code on one of the channels? However, I do not want the same upgrade to pass on to another channel (essentially mapped with this chaincode container). Are the containers for chaincode split at this time dynamically?

lquintai (Mon, 14 Sep 2020 08:14:57 GMT):
Has joined the channel.

huytn.it (Mon, 14 Sep 2020 10:34:51 GMT):
did you resolve this issue, @Bolzo 1 ?

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries in arm and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: Peer binary and configuration files not found.. *_Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: Peer binary and configuration files not found.. *_Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for instructions.

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: *Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html * I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for instructions.

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: *Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html * I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for information.

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
1) hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: *Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html * I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for information. 2)Step of SoftHSM from here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/dev-setup/devenv.html is important to install it?

kokolaki (Mon, 14 Sep 2020 12:05:12 GMT):
1) hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem: *Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries: https://hyperledger-fabric.readthedocs.io/en/latest/install.html * I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for information. 2)Step of SoftHSM from here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/dev-setup/devenv.html is important to install it? Because i don't have it.

rijulaggarwal (Mon, 14 Sep 2020 12:25:47 GMT):
It doesn't work even if you download the script manually? All this command is doing is running the script. It's required because it builds binaries and loads configurations. Just cloning the repository is not enough

rijulaggarwal (Mon, 14 Sep 2020 12:28:06 GMT):
go version go1.15 darwin/amd64

David_MacFadyen (Mon, 14 Sep 2020 12:30:50 GMT):
Has joined the channel.

David_MacFadyen (Mon, 14 Sep 2020 12:30:50 GMT):
I have two simple, but frustrating, questions about HLF: (1) Has anybody seen a streaming music or video project on Fabric? I have not--nor can I find one. Several years ago, persumably because of the Dot Blockchain Media initiative, the HLF promotional materials always mentioned the benefits of Fabric for the music industry. They still do, in fact. However... Dot Blockchain media vanished after some legal drama, it seems, and has now reemerged partially as https://verifi.media/. (2) Has anybody seen an audio or video player that's compatible with Fabric and might help with a track-and-trace project, aiming eventually to establish micropayments for artists on a pay-per-play system?

David_MacFadyen (Mon, 14 Sep 2020 12:30:50 GMT):
I have two simple, but frustrating, questions about HLF: (1) *Has anybody seen a streaming music or video project on Fabric?* I have not--nor can I find one. Several years ago, persumably because of the Dot Blockchain Media initiative, the HLF promotional materials always mentioned the benefits of Fabric for the music industry. They still do, in fact. However... Dot Blockchain media vanished after some legal drama, it seems, and has now reemerged partially as https://verifi.media/. (2) *Has anybody seen an audio or video player that's compatible with Fabric* and might help with a track-and-trace project, aiming eventually to establish micropayments for artists on a pay-per-play system?

kokolaki (Mon, 14 Sep 2020 12:38:38 GMT):
how to download it? When I run the command i have the following errors: ``` curl -sSL https://bit.ly/2ysbOFE | bash -s Clone hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo and checkout v2.2.0 Cloning into 'fabric-samples'... remote: Enumerating objects: 6412, done. remote: Total 6412 (delta 0), reused 0 (delta 0), pack-reused 6412 Receiving objects: 100% (6412/6412), 3.68 MiB | 5.38 MiB/s, done. Resolving deltas: 100% (3342/3342), done. error: pathspec 'v2.2.0' did not match any file(s) known to git. Pull Hyperledger Fabric binaries ===> Downloading version 2.2.0 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.2.0/hyperledger-fabric-linux-aarch64-2.2.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 25 0 --:--:-- --:--:-- --:--:-- 25 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 2.2.0 platform specific fabric binary is not available to download <---- ```

rijulaggarwal (Mon, 14 Sep 2020 13:08:13 GMT):
Just visit `https://bit.ly/2ysbOFE` and you'll see the script. Maybe copy-paste to shell script if you'd like.

rijulaggarwal (Mon, 14 Sep 2020 13:10:19 GMT):
You can choose to do the failing steps manually, if it looks like an IoT specific issue. Also, try running on your desktop and see if it succeeds

rijulaggarwal (Mon, 14 Sep 2020 13:18:54 GMT):
tried with 1.14 too, still same error

ascatox (Mon, 14 Sep 2020 14:34:14 GMT):
Hi All! Someone knows if it's possible to develop some kind of interceptors, in order to execute some logic in a a transparent way in each chaincode method, importing a go lib or something of similar?

garyclark (Mon, 14 Sep 2020 17:39:54 GMT):
Hello, I have 2 basic question about scaling. Currently I have a couple of systems and the performance is not bad. However is there a limit on the number of peers you can have? When the couch.db ledger becomes too large, should you archive (if that is possible) or just accept blowing it away.

anitha10042 (Mon, 14 Sep 2020 17:54:27 GMT):
Has joined the channel.

anitha10042 (Mon, 14 Sep 2020 17:54:27 GMT):
try removing wallet and keystore folder and try once

BrettLogan (Mon, 14 Sep 2020 20:40:31 GMT):
Work is underway for creating tooling for pruning and archiving ledgers, no promise on a delivery date yet, but it is being actively worked on. And there is no limit on the number of peers

arjones (Mon, 14 Sep 2020 23:13:14 GMT):
Has anyone used Umbra to model fabric networks? If so, were you using fabric 2.x? On the documentation they only mention 1.4. Thanks.

huytn.it (Tue, 15 Sep 2020 02:34:05 GMT):
I got error message: Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': could not fetch uncommitted definition: could not query metadata for namespace namespaces/mychaincode#1: GET_STATE failed: transaction ID: 7a7e278d77a527c946cb4dfd7bfe4b90f03cb7f6790cef27e5780fa2898d2b10: error handling CouchDB request. Error:not_found, Status Code:404, Reason:Database does not exist.

huytn.it (Tue, 15 Sep 2020 02:34:05 GMT):
I got error message: Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': could not fetch uncommitted definition: could not query metadata for namespace namespaces/mychaincode#1: GET_STATE failed: transaction ID: 7a7e278d77a527c946cb4dfd7bfe4b90f03cb7f6790cef27e5780fa2898d2b10: error handling CouchDB request. Error:not_found, Status Code:404, Reason:Database does not exist. https://jira.hyperledger.org/browse/FAB-18231

garyclark (Tue, 15 Sep 2020 07:27:36 GMT):
Much appreciated Brett. Yes that would be great to a have a way to archive/ prune.

garyclark (Tue, 15 Sep 2020 07:27:36 GMT):
Much appreciated Brett. Yes that would be great to a have a way to archive/ prune. I am going to reduce the data going on the ledger for now.

bigdaronlee163 (Tue, 15 Sep 2020 08:11:53 GMT):
Has joined the channel.

bigdaronlee163 (Tue, 15 Sep 2020 08:11:54 GMT):
version of peer ,order, fabric-ca image is 1.4 ,but I got Fabric network is 1.1 。 question: * the relationship between peer order, fabric-ca‘s version and Fabric network? * some log : daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$ ./build.sh Stopping the previous network (if any) Stopping peer0.org1.example.com ... done Stopping peer1.org1.example.com ... done Stopping peer1.org2.example.com ... done Stopping peer0.org2.example.com ... done Stopping ca_peerOrg1 ... done Stopping orderer.example.com ... done Stopping ca_peerOrg2 ... done Removing peer0.org1.example.com ... done Removing peer1.org1.example.com ... done Removing peer1.org2.example.com ... done Removing peer0.org2.example.com ... done Removing ca_peerOrg1 ... done Removing orderer.example.com ... done Removing ca_peerOrg2 ... done Removing network network_custom Setting up the Hyperledger Fabric 1.1 network Creating network "network_custom" with the default driver Creating ca_peerOrg2 ... done Creating orderer.example.com ... done Creating ca_peerOrg1 ... done Creating peer0.org1.example.com ... done Creating peer1.org1.example.com ... done Creating peer1.org2.example.com ... done Creating peer0.org2.example.com ... done Network setup completed!! daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4bae8f3ba5ba hyperledger/fabric-peer:1.4 "peer node start" 4 hours ago Up 4 hours 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com 30cc6e510c6f hyperledger/fabric-peer:1.4 "peer node start" 4 hours ago Up 4 hours 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com d12a490efc2f hyperledger/fabric-peer:1.4 "peer node start" 4 hours ago Up 4 hours 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com ce33840c091a hyperledger/fabric-peer:1.4 "peer node start" 4 hours ago Up 4 hours 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com f464ebc0d1d2 hyperledger/fabric-ca:1.4 "sh -c 'fabric-ca-se…" 4 hours ago Up 4 hours 0.0.0.0:7054->7054/tcp ca_peerOrg1 ae5cb13f9690 hyperledger/fabric-ca:1.4 "sh -c 'fabric-ca-se…" 4 hours ago Up 4 hours 0.0.0.0:8054->7054/tcp ca_peerOrg2 49f89894c88f hyperledger/fabric-orderer:1.4 "orderer" 4 hours ago Up 4 hours 0.0.0.0:7050->7050/tcp orderer.example.com b6a52e0ded9d gliderlabs/logspout "/bin/logspout" 4 days ago Up 22 hours 127.0.0.1:8000->80/tcp logspout2 daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$

vineeta (Tue, 15 Sep 2020 08:19:09 GMT):
Has joined the channel.

munger (Tue, 15 Sep 2020 08:28:47 GMT):
Has joined the channel.

munger (Tue, 15 Sep 2020 08:28:48 GMT):
i have used the latest version test-network, but cant install javascript version chaincode

anitha10042 (Tue, 15 Sep 2020 08:33:11 GMT):
Hi All, in implicit PDC with 2 org setup , is it possible for org2 to perform read operation in org1's implicit collection; and if both involved in endorsement and performing read operation , how it works?

munger (Tue, 15 Sep 2020 08:53:50 GMT):
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript/ -ccv 1 -ccl javascript

munger (Tue, 15 Sep 2020 08:54:41 GMT):
and i will get

munger (Tue, 15 Sep 2020 08:54:41 GMT):
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output + cd /chaincode/output + '[' -f package-lock.json -o -f npm-shrinkwrap.json ] + npm install --production npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-contract-api failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

munger (Tue, 15 Sep 2020 10:05:09 GMT):
how is that

amolpednekar (Tue, 15 Sep 2020 11:13:41 GMT):
Most likely a network/proxy issue connecting to node registry

andrii482 (Tue, 15 Sep 2020 11:52:46 GMT):
Has joined the channel.

schinivision (Tue, 15 Sep 2020 13:19:06 GMT):
I have a question. I am trying to backup a fabric network.... I backed up crypto-config / channel-artefacts and the data generated by peers, orderer and couch db.. I then try to run the data locally on my machine with the same "network" and suddenly the chaincode fails when querying a keys history with the error message: `Iterator Error: QUERY_STATE_NEXT failed: transaction ID: 5a358f1dc1e22bca52563a77392cecb5b43ccf02aefb4eb5d22b2868a1828ce9: no ledger context` The thing is if I try to dry run the backup with a fresh local network and some test data the backup works fine and also the history works.. If i like to run the backup of our dev nodes (WAY more data) then i have an issue with the history... Querying the current state of a key works perfectly. Also inserting new data works... Just the history fails. is it neccesary to "stop" the network before backing up data or can this work "on the fly" HL 1.3 Thanks for your help

rijulaggarwal (Tue, 15 Sep 2020 14:14:04 GMT):
@anitha10042 Still the same error: ``` go run assetTransfer.go 2020/09/15 09:56:55 ============ application-golang starts ============ 2020/09/15 09:56:55 ============ Populating wallet ============ [fabsdk/core] 2020/09/15 13:56:55 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation 2020/09/15 09:56:56 failed to evaluate transaction: Failed to submit: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes: exit status 1 ```

sigma67 (Tue, 15 Sep 2020 17:08:41 GMT):
hey, did you find a solution for the problem? i'm facing the same

nasermirzaei89 (Tue, 15 Sep 2020 19:54:49 GMT):
Has left the channel.

ever-upwards (Tue, 15 Sep 2020 23:55:58 GMT):
What is the purpose of the Fabric Peer working_dir? (e.g. in Docker file: "working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer")

ever-upwards (Wed, 16 Sep 2020 01:15:46 GMT):
Answering my own question: Per [link](https://docs.docker.com/engine/reference/commandline/exec/), working_dir sets a custom directory for commands to be run. (Not really sure the significance of the particular "[/opt/gopath/src/github.com/hyperledger/fabric/peer](https://github.com/hyperledger/fabric-samples/blob/master/test-network/docker/docker-compose-test-net.yaml)" directory in a Docker container though, since it isn't bound to anything (so therefore is empty).

anitha10042 (Wed, 16 Sep 2020 07:11:02 GMT):
deploy chaincode and try once

omerakram (Wed, 16 Sep 2020 10:04:29 GMT):
Has joined the channel.

omerakram (Wed, 16 Sep 2020 10:27:58 GMT):
hello every one , can some one suggest me which language us suitable for fabric

anitha10042 (Wed, 16 Sep 2020 12:33:39 GMT):
Needs to stop the network before taking backup

anitha10042 (Wed, 16 Sep 2020 12:35:26 GMT):
Needs to stop the network before taking backup

anitha10042 (Wed, 16 Sep 2020 12:37:12 GMT):
You have vendor folder and u're using go modules. it is better to run go mod vendor command inside ur project. it will sync the dependencies

tongli (Wed, 16 Sep 2020 13:12:01 GMT):
@omerakram fabric itself was developed using golang. If you like to contribute to fabric, do not think you have much of a choice but using golang. If you want to develop application based on Fabric, then there are various SDKs such as node, go, java, python etc. you can choose from one of them.

schinivision (Wed, 16 Sep 2020 13:12:13 GMT):
I tried to stop it, make a backup and then try to start the backup.. But on the backup I still geht the same error.

schinivision (Wed, 16 Sep 2020 13:12:13 GMT):
@anitha10042 Thanks for the clarification. I tried to stop it, make a backup and then try to start the backup.. But on the backup I still geht the same error.

tongli (Wed, 16 Sep 2020 13:12:49 GMT):
There will be a talk to introduce Minifabric at 10:00am today, if you like to attend, here is the link. https://zoom.us/w/97342328890?tk=LjV3YBzpfwnHQyzF7TBxM9Jc1wV3BaDMXl4gHReeQn0.DQIAAAAWqg4QOhZoVF8xM3AxTVJhV2F4QUNEOW9ZOWVnAAAAAAAAAAAAAAAAAAAAAAAAAAAA&uuid=WN_Ck6aCqJOQ-u7wD-E63-erA

anitha10042 (Wed, 16 Sep 2020 13:12:58 GMT):
which os u r using

anitha10042 (Wed, 16 Sep 2020 13:13:58 GMT):
and can u share the command for backup

schinivision (Wed, 16 Sep 2020 13:16:38 GMT):
I am running Ubuntu 18.04.4 LTS and HL 1.3

anitha10042 (Wed, 16 Sep 2020 13:17:13 GMT):
have u used sudo cmd for taking backuo

schinivision (Wed, 16 Sep 2020 13:17:46 GMT):
no but it should not make any difference because the user that takes the backup is the owner of the files.

anitha10042 (Wed, 16 Sep 2020 13:18:08 GMT):
can u just try once

schinivision (Wed, 16 Sep 2020 13:18:15 GMT):
shure

schinivision (Wed, 16 Sep 2020 13:18:15 GMT):
sure

schinivision (Wed, 16 Sep 2020 13:33:50 GMT):
@anitha10042 I used sudo for backup but still i run in the same problem `2020-09-16 13:31:58.077 UTC [ThingDataCC] Infof -> INFO 004 Get history for OE-VEB for mission OE-VEB_20200817125252 2020-09-16 13:32:28.151 UTC [shim] handleQueryStateNext -> ERRO 005 [890b2d2a] Received ERROR 2020-09-16 13:32:28.151 UTC [shim] nextResult -> ERRO 006 Failed to fetch next results: QUERY_STATE_NEXT failed: transaction ID: 890b2d2a64a03ec3b046db5c02b951510350b08c1c449a5b8845a96a4e5415a4: no ledger context `

schinivision (Wed, 16 Sep 2020 13:33:50 GMT):
@anitha10042 I used sudo for backup but still i run in the same problem `2020-09-16 13:31:58.077 UTC [ThingDataCC] Infof -> INFO 004 Get history for .... for mission ...... 2020-09-16 13:32:28.151 UTC [shim] handleQueryStateNext -> ERRO 005 [890b2d2a] Received ERROR 2020-09-16 13:32:28.151 UTC [shim] nextResult -> ERRO 006 Failed to fetch next results: QUERY_STATE_NEXT failed: transaction ID: 890b2d2a64a03ec3b046db5c02b951510350b08c1c449a5b8845a96a4e5415a4: no ledger context `

schinivision (Wed, 16 Sep 2020 13:49:18 GMT):
@anitha10042 as the error occurres exactly 60 seconds after the chaincode is executed... Am I running into a timeout?

schinivision (Wed, 16 Sep 2020 13:49:18 GMT):
@anitha10042 as the error occurres exactly 30 seconds after the chaincode is executed... Am I running into a timeout?

schinivision (Wed, 16 Sep 2020 13:51:11 GMT):
The interesting part is that the backup works fine for everything except key history queries...

schinivision (Wed, 16 Sep 2020 13:56:52 GMT):
i should add that it is about 3GB of data that is going to be recovered

anitha10042 (Wed, 16 Sep 2020 14:35:12 GMT):
Hi All, in implicit PDC with 2 org setup , is it possible for org2 to perform read operation in org1's implicit collection; and if both involved in endorsement and performing read operation , how it works?

ferrany (Wed, 16 Sep 2020 18:45:42 GMT):
Has joined the channel.

ferrany (Wed, 16 Sep 2020 18:45:43 GMT):
Hello can someon gelp me, last commit helped with error Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: orderers is nil, but now i get failed to evaluate transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: calling orderer 'localhost:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7050]: connection is in TRANSIENT_FAILURE

ferrany (Wed, 16 Sep 2020 18:45:49 GMT):
Can someone please help me?

vishnupradeepmahe (Wed, 16 Sep 2020 19:51:41 GMT):
Hi, i have got an issue that occurs when i deploy my project using docker swarm, the creation of a new object in world state database happens fine but while updating that object sometimes a mvcc error occurs. When i checked the logs it shows that the database does not exist, I feel the issue might be because of peer communication and batch timeout (this is my guess). I am using 1.4.6 version of fabric. The same scenario, i had tried to recreate while deploying using docker compose but it doesn't occur there. Why is this happening? Is the issue because of docker swarm or improper network configurations? Is there any extra configuration that i have to do while doing a multi vm deployment?

vishnupradeepmahe (Wed, 16 Sep 2020 19:54:28 GMT):
hi i have the same issue have you solved it @Bolzo 1 ?

vishnupradeepmahe (Wed, 16 Sep 2020 20:06:50 GMT):
try dockerizing the sdk

Rajatsharma (Wed, 16 Sep 2020 20:08:00 GMT):
Yes. That's what we settled for that. But we could have this option in the sdk.

vishnupradeepmahe (Wed, 16 Sep 2020 20:10:17 GMT):
did you face any other issues like with couch db (database not found)?

Rajatsharma (Wed, 16 Sep 2020 20:11:15 GMT):
No No. CouchDb has nothing to do with that request.

vishnupradeepmahe (Wed, 16 Sep 2020 20:15:28 GMT):
thanks i got that i was asking regarding the production deployment i am currently facing an issue that occurs when i deploy my project using docker swarm, the creation of a new object in world state database happens fine but while updating that object sometimes a mvcc error occurs. When i checked the logs it shows that the database does not exist, I feel the issue might be because of peer communication and batch timeout (this is my guess). I am using 1.4.6 version of fabric. The same scenario, i had tried to recreate while deploying using docker compose but it doesn't occur there. Why is this happening? Is the issue because of docker swarm or improper network configurations? Is there any extra configuration that i have to do while doing a multi vm deployment?

Rajatsharma (Wed, 16 Sep 2020 20:17:35 GMT):
If you want to debug try changing the log level of couchdb and statedatabase loggers .. That'll give you a clear picture why you're getting that issue. I don't think this will happen due to any connectivity issue. As in that case you should not be getting MVCC.

Rajatsharma (Wed, 16 Sep 2020 20:18:01 GMT):
Just curious by chance, in your network are 2 peers pointing to the same couchDB ?

vishnupradeepmahe (Wed, 16 Sep 2020 20:18:22 GMT):
one org 2 peers 2 couchdb

Rajatsharma (Wed, 16 Sep 2020 20:19:00 GMT):
open logs of both couchdb and check if request is both the couch and what they're replying.

Rajatsharma (Wed, 16 Sep 2020 20:19:38 GMT):
Essentially debugging by changing the log level for couchdb and statedatabase logger will help.

vishnupradeepmahe (Wed, 16 Sep 2020 20:20:03 GMT):
https://stackoverflow.com/questions/63914704/docker-swarm-deployment-of-hyperledger-fabric i have shared the logs and configtx.yaml file if not a huge trouble could check if any issues are there

Rajatsharma (Wed, 16 Sep 2020 20:20:14 GMT):
I'm using Fabric in production from very long we have more than 18 lakh blocks I've never faced this issue.

vishnupradeepmahe (Wed, 16 Sep 2020 20:22:45 GMT):
I actually new to production grade (basically my first project in production)

Rajatsharma (Wed, 16 Sep 2020 20:23:26 GMT):
In logs you'll detect the issue by going 4-5 lines above this. The error trace won;t help that much

Rajatsharma (Wed, 16 Sep 2020 20:24:46 GMT):
I mean because if you're saying this could be due to connectivity issue then couch won't reply with NOT_FOUND. couch won't reply only

Nikhilck (Wed, 16 Sep 2020 20:28:54 GMT):
Has joined the channel.

vishnupradeepmahe (Wed, 16 Sep 2020 20:29:45 GMT):
Could it because of batchtimeout or any other configuration or limitation of the system? since it works absolutely fine with docker-compose even with single vm docker swarm it fails? can u share any resource material so that i can refer it for deploying?

Rajatsharma (Wed, 16 Sep 2020 20:32:45 GMT):
I don't have any documents over this. Well this should resolve after going through the logs.

vishnupradeepmahe (Wed, 16 Sep 2020 20:33:08 GMT):
okay thanks:innocent:

Rajatsharma (Wed, 16 Sep 2020 20:33:31 GMT):
Let me know, if you find the error. Or I could help.

vishnupradeepmahe (Wed, 16 Sep 2020 20:33:46 GMT):
sure

AjeethT (Thu, 17 Sep 2020 06:38:59 GMT):
Has joined the channel.

AjeethT (Thu, 17 Sep 2020 06:39:00 GMT):
can some one give the url for azure devops pipeline for fabric contract api

MinatoReturns (Thu, 17 Sep 2020 07:46:00 GMT):
Has joined the channel.

MinatoReturns (Thu, 17 Sep 2020 07:47:51 GMT):
Can we use "raft" as consensus type while using HSM(BCCSP provider PKCS11)?

smithjohn 1 (Thu, 17 Sep 2020 09:18:51 GMT):
I want to deploy fabric2.2.0 with helm chart. Where is Helm chart for fabric2.2.0 ? Have you ever seen?

dcof (Thu, 17 Sep 2020 09:53:43 GMT):
Hi, I have a problem in calling/understanding chaincodes. I have two Orgs with one peer each, which are part of the same channel. Org1 installed and instantiated a chaincode with a policy, that only Org1 must endorse this chaincode. I can interact with this via Org1 CLI perfectly. Org 2 also installed the chaincode on its peer. When I query the chaincode via Org2 CLI everything works fine. However, when I try to invoke the chaincode from Org2 CLI for a ledger change via peer chaincode invoke --tls --cafile pathToCertificate --peerAddresses peerOrgOne:7051 --tlsRootCertFiles pathToPeerOrg1TLS_ca.crt -C mychannel -n defaultChainCodeMyCC -c '{"Args":["invoke","a","b","10"]}' I get “expected MSP ID Org1MSP, received Org2MSP” and I get access denied. “ on the logs of peerOrgOne and later as a response to the call from CLI from Org2. Does anybody see where I’m going wrong or where to look at? Thanks in advance! (I did not provide the complete paths to the different certificates but I double checked that they point to the correct and existing files)

AshutoshKumar7 (Thu, 17 Sep 2020 11:28:00 GMT):
Is there any example of private data using gateway sdk

etaleo (Thu, 17 Sep 2020 11:32:48 GMT):
Has joined the channel.

JerkyzerGordon (Thu, 17 Sep 2020 11:34:51 GMT):
Hello guys, I am new to hyperledger fabric and I would like to ask if there is a guide in order to connect two machines (1 in my home and 1 in my cousin's home) without AWS. I am using fabric v2.2. Thanks in regards!

schinivision (Thu, 17 Sep 2020 12:42:24 GMT):
Can someone please point me at the grpc connection timout setting. I am querying a large batch and the connection times out after 35 seconds.. The Chaincode will return but can not hand over the data to the Applikation due to the closed connection. Error Msg: sending proposal with transaction 4ac1dc4ee1dd7e98636ed50e24b3f7169b06000eb01faea514d2103cb298cd48 to Peer{ id: 2, name: peer0, channelName: testChannel, url: grpc://} failed because of timeout(35000 milliseconds) expiration HL 1.3 using fabric-sdk-java 1.3.0 Thanks for you help

schinivision (Thu, 17 Sep 2020 12:42:24 GMT):
Can someone please point me at the grpc connection timout setting. I am querying a large batch and the connection times out after 35 seconds.. The Chaincode will return but can not hand over the data to the Applikation due to the closed connection. Error Msg: `sending proposal with transaction 4ac1dc4ee1dd7e98636ed50e24b3f7169b06000eb01faea514d2103cb298cd48 to Peer{ id: 2, name: peer0, channelName: testChannel, url: grpc://} failed because of timeout(35000 milliseconds) expiration` HL 1.3 using fabric-sdk-java 1.3.0 Thanks for you help

schinivision (Thu, 17 Sep 2020 12:42:24 GMT):
Can someone please point me at the grpc connection timout setting. I am querying a large batch and the connection times out after 35 seconds.. The Chaincode will return but can not hand over the data to the Applikation due to the closed connection. Error Msg: `sending proposal with transaction 4ac1dc4ee1dd7e98636ed50e24b3f7169b06000eb01faea514d2103cb298cd48 to Peer{ id: 2, name: peer0, channelName: testChannel, url: grpc://} failed because of timeout(35000 milliseconds) expiration` HL 1.3 using fabric-sdk-java 1.3.0 Thanks for your help

csmarques (Thu, 17 Sep 2020 14:15:57 GMT):
Has joined the channel.

csmarques (Thu, 17 Sep 2020 14:15:57 GMT):
Hello everyone ! I'm trying to find the versioning requirements to build a consortium ... For example ... Supposing I have my ordering service running v1.4.7 Can I join organizations running 1.2.x for example ? What are the requirements ?

vishnupradeepmahe (Thu, 17 Sep 2020 18:21:03 GMT):
@Rajatsharma Could resolve it thanks for the guidance can u suggest some ways to increase the tps

bh4rtp (Fri, 18 Sep 2020 02:29:41 GMT):
can you provide the endorsement policy and the tls path?

bh4rtp (Fri, 18 Sep 2020 02:29:41 GMT):
can you provide the endorsement policy and the tls ca cert path?

bh4rtp (Fri, 18 Sep 2020 02:29:41 GMT):
the tls root cert file path is not correct. you can try it with org2.

dcof (Fri, 18 Sep 2020 07:13:00 GMT):
thanks for your answer, i tried this but now i get tls handshake failed as it states a bad certificate. Also in the documentation it states that the tls root cert files are the ones matching the peers to connect to specified via --peerAddresses so I assume that, as i specified org1Peer to connect to, that i also specifiy the root tls cert for org1Peer?

bh4rtp (Fri, 18 Sep 2020 07:23:17 GMT):
yes. i think so. you can try it.

bh4rtp (Fri, 18 Sep 2020 07:25:31 GMT):
can you provide your endorsement policy?

dcof (Fri, 18 Sep 2020 07:30:36 GMT):
Sure, I configured it in a way that only the Org1 must endorse any transaction (I know that is not production like or smart but I just wanted to try a few things out :D ) so this is the policy I use when instantiating the chaincode: -P "OR ('Org1MSP.member')"

kokolaki (Fri, 18 Sep 2020 07:47:14 GMT):
Hello, I want to build hyperledger/fabric-javaenv:2.2.0 image for fabric v2.2.0 on arm architecture . I followed the instructions from repository: https://github.com/hyperledger/fabric-chaincode-java and when I run `./gradlew clean build install` I have the following error: > Configure project : 2.2.0 > Configure project :fabric-chaincode-shim Checking Licences... All remaining files have Apache 2.0 headers > Task :fabric-chaincode-protos:generateProto FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':fabric-chaincode-protos:generateProto'. > Could not resolve all files for configuration ':fabric-chaincode-protos:protobufToolsLocator_grpc'. > Could not find protoc-gen-grpc-java-linux-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.23.0). Searched in the following locations: https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.23.0/protoc-gen-grpc-java-1.23.0-linux-aarch_64.exe * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 4s 8 actionable tasks: 5 executed, 3 up-to-date

amolpednekar (Fri, 18 Sep 2020 07:55:45 GMT):
I have this question based on having 2 PDC with different endorsement policies in one function Lets say we define two private collections PC1Org1Only => EP: Org1 Only PC2Org1andOrg2 => EP: Org1 or Org2 (Could also be Org1 and Org2) then we have a chaincode function as below (similar to marbles 2 chaincode - https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html#writing-private-data foo(){ putPrivateData(PC2Org1OROrg2, "org1And2secret") putPrivateData(PC1Org1Only, "org1secret") } Lets say I send a transaction proposal to both org 1 and org 2, since PC2 says it is fine with either.. When org2 runs foo() .. wont it also be able to see data "org1secret" ? Thought it may not write it to its database... it is running the function so it can see transient data containing org1secret (if that chaincode is logging it for example) Isnt this a leak of privacy?

amolpednekar (Fri, 18 Sep 2020 07:55:45 GMT):
I have this question based on having 2 PDC with different endorsement policies in one function (similar to marbles 2 chaincode - https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html#writing-private-data ) Lets say we define two private collections PC1Org1Only => EP: Org1 Only PC2Org1andOrg2 => EP: Org1 or Org2 (Could also be Org1 and Org2) then we have a chaincode function as below foo(){ putPrivateData(PC2Org1OROrg2, "org1And2secret") putPrivateData(PC1Org1Only, "org1secret") } Lets say I send a transaction proposal to both org 1 and org 2, since PC2 says it is fine with either.. When org2 runs foo() .. wont it also be able to see data "org1secret" ? Thought it may not write it to its database... it is running the function so it can see transient data containing org1secret (if that chaincode is logging it for example) Isnt this a leak of privacy?

amolpednekar (Fri, 18 Sep 2020 07:55:45 GMT):
I have this question based on having 2 PDC with different endorsement policies in one function (similar to marbles 2 chaincode - https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html#writing-private-data ) Lets say we define two private collections PC1Org1Only => EP: Org1 Only PC2Org1andOrg2 => EP: Org1 or Org2 (Could also be Org1 and Org2) then we have a chaincode function as below foo(){ putPrivateData(PC2Org1OROrg2, "org1And2secret") putPrivateData(PC1Org1Only, "org1secret") } Lets say I send a transaction proposal to both org 1 and org 2, since PC2 says it is fine with either.. When org2 runs foo() .. wont it also be able to see data "org1secret" ? Thought it may not write it to its database... it is running the function so it can see transient data containing org1secret (if that chaincode is logging it for example) Isnt this a leak of privacy? @dave.enyeart @yacovm

amolpednekar (Fri, 18 Sep 2020 07:55:45 GMT):
I have this question based on having 2 PDC with different endorsement policies in one chaincode function (similar to marbles 2 chaincode "InitMarble" function - https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html#writing-private-data ) https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02_private/go/marbles_chaincode_private.go#L126 Lets say we define two private collections PC1Org1Only => EP: Org1 Only PC2Org1andOrg2 => EP: Org1 or Org2 (Could also be Org1 and Org2) then we have a chaincode function as below foo(){ putPrivateData(PC2Org1OROrg2, "org1And2secret") putPrivateData(PC1Org1Only, "org1secret") } Lets say I send a transaction proposal to both org 1 and org 2, since PC2 says it is fine with either.. When org2 runs foo() .. wont it also be able to see data "org1secret" ? Thought it may not write it to its database... it is running the function so it can see transient data containing org1secret (if that chaincode is logging it for example) Isnt this a leak of privacy? @dave.enyeart @yacovm

amolpednekar (Fri, 18 Sep 2020 07:55:45 GMT):
I have this question based on having 2 PDC with different endorsement policies in one chaincode function (similar to marbles 2 chaincode "InitMarble" function - https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html#writing-private-data ) https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02_private/go/marbles_chaincode_private.go#L126 Lets say we define two private collections PC1Org1Only => EP: Org1 Only PC2Org1andOrg2 => EP: Org1 or Org2 (Could also be Org1 and Org2) then we have a chaincode function as below foo(){ putPrivateData(PC2Org1OROrg2, "org1And2secret") putPrivateData(PC1Org1Only, "org1secret") } Lets say I send a transaction proposal to both org 1 and org 2, since PC2 says it is fine with either.. When org2 runs foo() .. wont it also be able to see data "org1secret" ? Though it may not write it to its database... it is running the function so it can see transient data containing org1secret (if that chaincode is logging it for example) Isnt this a leak of privacy? @dave.enyeart @yacovm

bh4rtp (Fri, 18 Sep 2020 08:03:52 GMT):
i am not sure how to fix the problem. but i faced it too. if not yet solved, you can change the policy to be "OR('Org1MSP.member', 'Org2MSP.member')"

dcof (Fri, 18 Sep 2020 08:05:28 GMT):
Yes, i thought about this as well, I will still try a few things but thanks anyway!

schinivision (Fri, 18 Sep 2020 08:39:20 GMT):
Hi. Could someone help me to compose the environment variable name for totalquerylimit -> https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L620 I would like to override this setting. LEDGER_TOTALQUERYLIMIT seems not to do anything. Thanks

amolpednekar (Fri, 18 Sep 2020 09:44:26 GMT):
You have to set it using CORE_LEDGER_STATE_TOTALQUERYLIMIT=X X = Limit that u want

schinivision (Fri, 18 Sep 2020 10:37:05 GMT):
Thanks @amolpednekar for the help. That worked :thumbsup:

schinivision (Fri, 18 Sep 2020 10:39:24 GMT):
If someone ever should encounter this. It is possible to change this timeout by increasing the Proposal wait time. `hyperledgerClient.newQueryProposalRequest().setProposalWaitTime(timeInMS)`

schinivision (Fri, 18 Sep 2020 10:41:15 GMT):
This Problem is also based on a timout that can be configured. This error message from the go code indicates that the query ran out of execution time due to a timeout. Use this setting on the peer container -> `- CORE_CHAINCODE_EXECUTETIMEOUT=300s`

dcof (Fri, 18 Sep 2020 12:02:13 GMT):
Hi, if I instantiate a chaincode with the policy -P "OR ('Org1MSP.member')" it means that if peers from other organizations than Org1, for example a peer in organization 2, musst make a invoke call to a peer of Org1, correct? The policy does not forbid Org2 to call this chaincode, does it?

dcof (Fri, 18 Sep 2020 12:18:58 GMT):
I just re-read the documentation where it is stated"_A new organization added to the channel after instantiation can query a chaincode (provided the query has appropriate authorization as defined by channel policies and any application level checks enforced by the chaincode) but will not be able to execute or endorse the chaincode. The endorsement policy needs to be modified to allow transactions to be committed with endorsements from the new organization_." So if I have a channel with two Orgs and define in the chaincode policy that only one organization must endorse/commit a transaction, the other organization is not allowed to invoke the chaincode but query it, is this correct?

BrettLogan (Fri, 18 Sep 2020 21:23:52 GMT):
You are confusing peers and client. A client from org2 can still submit a transaction to a peer or org1 and receive a successful endorsement on it

BrettLogan (Fri, 18 Sep 2020 21:23:52 GMT):
You are confusing peers and client. A client from org2 can still submit a transaction to a peer of org1 and receive a successful endorsement on it

chrisckwong821 (Sun, 20 Sep 2020 01:22:12 GMT):
Hi i am wondering for peer chaincode install -p [path] , what is the root of [path]? I see a lot of example using relative path, eg : -p chaincode/simple_chaincode

BrettLogan (Sun, 20 Sep 2020 21:11:25 GMT):
Those examples use your GOPATH as the root of the path. The latest versions of Fabric require you to use absolute paths now as we are migrating away from GOPATH's and onto GOMODULES

BrettLogan (Sun, 20 Sep 2020 21:17:14 GMT):
[ANN] We've formally released the Tech Preview of the Rust Smart Contracts and Wasm Chaincode Today; read more here https://lists.hyperledger.org/g/fabric/message/9031 and watch the demo https://www.youtube.com/watch?v=9QChDsuKwgc&feature=youtu.be

sathyakplm (Mon, 21 Sep 2020 07:03:08 GMT):
Hi folks, I am running test-network from fabric-samples. The peers are configured with LevelDB. Where can I get the instructions/credentials for connecting to the LevelDB of the peer? I just want to browse through the data of the level db to see how the data are getting stored.

erin-hughes (Mon, 21 Sep 2020 07:56:12 GMT):
Has joined the channel.

ewangplay (Mon, 21 Sep 2020 09:03:12 GMT):
Has joined the channel.

ewangplay (Mon, 21 Sep 2020 09:03:13 GMT):
return: Invalid type. Expected: array, given: string

dcof (Mon, 21 Sep 2020 09:06:19 GMT):
Oh okay, but from the CLI via a peer from org2, this does not work generally, did I understand that correctly?

liuxuancheng412 (Mon, 21 Sep 2020 12:32:09 GMT):
Has joined the channel.

liuxuancheng412 (Mon, 21 Sep 2020 12:34:01 GMT):
#### Title: When I used msp in fabric-sdk-go to register users with CA, an error occurred fabric release-1.4 The error is as follows: ``` Register return error: failed to register user: failed to register user: Response from server: Error Code: 20 - Authentication failure ``` The relevant part of the code is as follows: ```go import ( [...] mspclient "github.com/hyperledger/fabric-sdk-go/pkg/client/msp" [...] ) [...] func RegisterUser(sdk *fabsdk.FabricSDK, info *InitInfo, r *RegistrationRequest) (string, error) { clientContext := sdk.Context(fabsdk.WithUser(info.OrgAdmin), fabsdk.WithOrg(info.OrgName)) if clientContext == nil { return "", fmt.Errorf("根据指定的组织名称与管理员创建资源管理客户端Context失败") } // 创建一个新的msp客户端实例,并返回 c, err := mspclient.New(sdk.Context(), mspclient.WithOrg(info.OrgName)) if err != nil { return "", fmt.Errorf("根据指定的 OrgName 创建 Org MSP 客户端实例失败: %v", err) } request := mspclient.RegistrationRequest{ Name: r.Name, Type: r.Type, MaxEnrollments: r.MaxEnrollments, Affiliation: r.Affiliation, //Attributes: , CAName: r.CAName, Secret: r.Secret, } _, err = c.Register(&request) if err != nil { return "", fmt.Errorf("Register return error:\n %s\n", err) } return "enroll user is completed", nil } ```

liuxuancheng412 (Mon, 21 Sep 2020 12:38:18 GMT):
#### Title: When I used msp in fabric-sdk-go to register users with CA, an error occurred fabric release-1.4 The error is as follows: ``` Register return error: failed to register user: failed to register user: Response from server: Error Code: 20 - Authentication failure ``` The relevant part of the code is as follows: ```go import ( [...] mspclient "github.com/hyperledger/fabric-sdk-go/pkg/client/msp" [...] ) [...] func RegisterUser(sdk *fabsdk.FabricSDK, info *InitInfo, r *RegistrationRequest) (string, error) { clientContext := sdk.Context(fabsdk.WithUser(info.OrgAdmin), fabsdk.WithOrg(info.OrgName)) if clientContext == nil { return "", fmt.Errorf("根据指定的组织名称与管理员创建资源管理客户端Context失败") } // 创建一个新的msp客户端实例,并返回 c, err := mspclient.New(sdk.Context(), mspclient.WithOrg(info.OrgName)) if err != nil { return "", fmt.Errorf("根据指定的 OrgName 创建 Org MSP 客户端实例失败: %v", err) } request := mspclient.RegistrationRequest{ Name: r.Name, Type: r.Type, MaxEnrollments: r.MaxEnrollments, Affiliation: r.Affiliation, //Attributes: , CAName: r.CAName, Secret: r.Secret, } _, err = c.Register(&request) if err != nil { return "", fmt.Errorf("Register return error:\n %s\n", err) } return "enroll user is completed", nil } ``` In the stack overflow Forum, I also found that someone reported the same error, and some people answered that the user name and password do not match, but my code is a registered user, this reason should not appear. I hope someone can tell me what went wrong. Thank you very much

simnic (Mon, 21 Sep 2020 12:49:50 GMT):
Has joined the channel.

BrettLogan (Mon, 21 Sep 2020 15:13:10 GMT):
There is no simple way to do this. LevelDB is a file-based DB. So you would need to exec into the peer, and write your own program to read it. It's not designed for you "browse".

Bolzo 1 (Mon, 21 Sep 2020 15:23:04 GMT):
Hi, it's been a while since i resolved the issue but I'm pretty sure that after a complete delete of the peers and couch db containters the problem went away

ever-upwards (Mon, 21 Sep 2020 21:50:39 GMT):
I'm getting this error when trying to create a channel (on a network I'm building): ```/Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied.``` I've tried several changes in my configtx.yaml file, but haven't had any success so far. **Are there any obvious mistakes in the Policy configuration of my [configtx file](https://pastebin.com/Uyd7wK8G)?** Links to extra information: - [docker file](https://pastebin.com/vLNYyDgX) (for nodes and cli) - [Script & terminal commands](https://pastebin.com/sARkFzBC)(for creating genesis block, channel tx file, etc.)

ever-upwards (Mon, 21 Sep 2020 21:50:39 GMT):
I'm getting this error when trying to create a channel (on a network I'm building): ```/Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied.``` I've tried several changes in my configtx.yaml file, but haven't had any success so far. Are there any obvious mistakes in the Policy configuration of my [configtx file](https://pastebin.com/Uyd7wK8G)? Links to extra information: - [docker file](https://pastebin.com/vLNYyDgX) (for nodes and cli) - [Script & terminal commands](https://pastebin.com/sARkFzBC)(for creating genesis block, channel tx file, etc.)

DiAnh (Tue, 22 Sep 2020 03:57:47 GMT):
Hi, anyone can help me to query a specific block ? thank for your help

visheshgupta (Tue, 22 Sep 2020 08:36:40 GMT):
Hi,everyone can anyone tell me how to remove a peer node from the running organisation

sathyakplm (Tue, 22 Sep 2020 10:22:30 GMT):
Hi Folks, I am using the external chaincode server. What is the recommended way to monitor the external chaincode servers? Is there any liveness/readiness probe that we can do on the external chaincode server?

sn0flake777 (Tue, 22 Sep 2020 11:01:35 GMT):
Has joined the channel.

sn0flake777 (Tue, 22 Sep 2020 11:06:04 GMT):
Are there any restrictions on the chaincode language to be used when Idemix identities used for submitting transactions? I have used asset transfer basic chaincode from fabric samples with idemix identities. The go version of chaincode accepts transactions but the Java and Javascript versions throw errors similar to: > Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Could not create new client identity"

dcof (Tue, 22 Sep 2020 12:25:47 GMT):
Hi, I'm quite confused in terms of peers and clients. As far as I understand, a Client represent the end user and connects to a (set of) peers to invoke transactions. So, from my understanding, this would be an Application which uses the fabric SDK for Java, go, or whatever. Is this correct? But then I don't understand the command line commands for example for chaincode invocation. Are these some sort of shortcuts for command execution without clients? Are there any limitations on command line level that can only be done via client invocation? For example the invocation of chaincodes on multiple peers in different organizations. I know that there is a --peerAddress flag on the invocation command but it always resultsin MSP errors in my tests as when I invoke a chaincode from cli of Org1 on a peer from Org2, it is stated that the Org2 peer expects and Org2 MSP ID but got an Org1MSP Id. I feel like i didn't get the concept yet

mvkillu (Tue, 22 Sep 2020 15:11:21 GMT):
I am pretty new to fabric and struggling to run my first chaincode. Could someone let me know if there is any issue with this chaincode. ``` const { Contract } = require('fabric-contract-api'); class ExpContract extends Contract { constructor() { super("ExpContract") } async initLedger(ctx) { console.info('============= START : Initialize Ledger ==========='); await ctx.stub.putState("name", "vijay") console.info('============= END : Initialize Ledger ==========='); } async fetch(ctx, key) { const value = ctx.stub.getState(key) return value.toString() } async put(ctx,key,value) { await ctx.stub.putState(key, Buffer.from(value)) return value.toString() } } module.exports = ExpContract ``` I am getting an error with initialize. When I try to run ```minifab initialize -p \"initLedger\"```, I get the error ```non-zero return code Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction cc443de7602a252770eaa5c55bdc5aeec05d8b505d5e2e3621eab8b71f535920: could not launch chaincode exp_1.4:a457e9b07784c18464ad38bb0a0eae9c043b5c279269cc5fd80755155b5c02a7: chaincode registration failed: container exited with 1"```

ever-upwards (Tue, 22 Sep 2020 15:58:04 GMT):
I'm wondering if I am either using an incorrect certificate path (should I be using an org or node MSP?) or incorrectly identifying myself to the network.

mvkillu (Tue, 22 Sep 2020 17:00:44 GMT):
I figured out what the issue is.. I am missing the start script in my package.json.

lupass93 (Tue, 22 Sep 2020 17:30:10 GMT):
Has joined the channel.

donnie.stewart (Tue, 22 Sep 2020 17:57:49 GMT):
Hi all, I am trying to make changes to the peer which requires me to constantly rebuild it. What is the best way to continuously rebuild the peer in fabric?

ever-upwards (Tue, 22 Sep 2020 23:09:37 GMT):
When I run `configtxlator proto_decode –-type=common.Config --input=channel-artifacts/config_block.pb --output=sys-genesis_block.json` I get:``` configtxlator: error: unexpected –-type=common.Config, try --help``` Why would "–-type=common.Config" be unexpected since it is listed in the help? ``` bash-5.0# configtxlator proto_decode --help usage: configtxlator proto_decode --type=TYPE [] Converts a proto message to JSON. Flags: --help Show context-sensitive help (also try --help-long and --help-man). --type=TYPE The type of protobuf structure to decode from. For example, 'common.Config'. --input=/dev/stdin A file containing the proto message. --output=/dev/stdout A file to write the JSON document to. ```

gersonandres (Wed, 23 Sep 2020 04:10:20 GMT):
Has joined the channel.

ArpitKhurana (Wed, 23 Sep 2020 04:13:46 GMT):
Hi everyone is there any way to recover from this error , I restarted my kafka abruptly which caused this (although kafka has persistence) ```channel: testchainid] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition. ```

ArpitKhurana (Wed, 23 Sep 2020 04:17:17 GMT):
And if there is no way at all , how can I replay the blocks from the current setup to a new cluster

bassirpechaz (Wed, 23 Sep 2020 05:21:37 GMT):
Has joined the channel.

bassirpechaz (Wed, 23 Sep 2020 05:21:37 GMT):
Hi Guys, I'm new in Hyperledger Fabric. Is there any recommendation as start point?

mvkillu (Wed, 23 Sep 2020 05:52:15 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/

bassirpechaz (Wed, 23 Sep 2020 05:53:16 GMT):
thanks, but i need something practical.

bassirpechaz (Wed, 23 Sep 2020 05:53:39 GMT):
this doc good as advise

mvkillu (Wed, 23 Sep 2020 05:56:59 GMT):
https://www.youtube.com/playlist?list=PLSBNVhWU6KjW4qo1RlmR7cvvV8XIILub6

bassirpechaz (Wed, 23 Sep 2020 05:58:42 GMT):
Woooow, fantastic. so many thanks for your precious guide

Hong3Nguyen (Wed, 23 Sep 2020 06:37:24 GMT):
Hi I decide to use another consensus for hyperledger fabric. Do you have some where should I start to change it? Thanks in advance

Jonty16117 (Wed, 23 Sep 2020 07:51:34 GMT):
Hi guys....is a peer secure logically if it is physically located elsewhere??....

huytn.it (Wed, 23 Sep 2020 09:23:28 GMT):
yes. it is incorrect cert

huytn.it (Wed, 23 Sep 2020 09:52:34 GMT):
hi, I successfully brough up test-network on two hosts. Host1: ca-order, orderer, ca-org1, peer0.org1, couchdb1. Host2: ca-org2, peer0.org2, couchdb2. I installed fabcar chaincode, but I got error while run fabcar client: [fabsdk/core] 2020/09/23 09:19:55 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default SW implementation [fabsdk/fab] 2020/09/23 09:19:55 UTC - fab.detectDeprecatedNetworkConfig -> WARN Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration [fabsdk/fab] 2020/09/23 09:19:55 UTC - fab.detectDeprecatedNetworkConfig -> WARN visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples Failed to evaluate transaction: Failed to evaluate: Transaction processing for endorser [localhost:9051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:9051]: connection is in TRANSIENT_FAILURE What did i do wrong?

pallab-neogi (Wed, 23 Sep 2020 15:40:21 GMT):
Has joined the channel.

pallab-neogi (Wed, 23 Sep 2020 15:40:22 GMT):
Hi, I'm moving go application Go1.11 to Go1.15 version, but getting error from fabric go sdk below. Can anyone help me to fix the issue. "x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0 "

arjones (Wed, 23 Sep 2020 18:56:37 GMT):
Does using private data collection make transactions more efficient? I was thinking it could since the amount of data sent to the ordering service and then to anchor peers will be greatly decreased. Hashing could be a costly operation though, so I'm not sure. Thanks.

lupass93 (Wed, 23 Sep 2020 21:55:33 GMT):
Hi at all! I'm studying Hyperledger Fabric 2.2 and I'm from Hyperledger Fabric 1.4. I don't understand the core.yaml file. I have several question about it. Especially: - What is core.yaml file? - What good is that? - How it is used ? Thank you for help me. I would just like to understand more about it

marcosBaez (Thu, 24 Sep 2020 07:44:12 GMT):
Has joined the channel.

deployer21 (Thu, 24 Sep 2020 08:22:23 GMT):
Hello guys, I'm having trouble with fabric-samples default chaincode when querying the GetAllAssets() method. Here's my request: -isInit -c '{"Args":["AssetTransfer:GetAllAssets", "{}"]}' , here's the error: Error: >> endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error during contract method execution" << I haven't even change the default code, has anyone felt the same problem? @Transaction(intent = Transaction.TYPE.EVALUATE) public String GetAllAssets(final Context ctx) { ChaincodeStub stub = ctx.getStub(); List queryResults = new ArrayList(); // To retrieve all assets from the ledger use getStateByRange with empty startKey & endKey. // Giving empty startKey & endKey is interpreted as all the keys from beginning to end. // As another example, if you use startKey = 'asset0', endKey = 'asset9' , // then getStateByRange will retrieve asset with keys between asset0 (inclusive) and asset9 (exclusive) in lexical order. QueryResultsIterator results = stub.getStateByRange("", ""); for (KeyValue result: results) { Asset asset = genson.deserialize(result.getStringValue(), Asset.class); queryResults.add(asset); System.out.println(asset.toString()); } final String response = genson.serialize(queryResults); return response; }

sivsivsree (Thu, 24 Sep 2020 09:10:37 GMT):
Has joined the channel.

sivsivsree (Thu, 24 Sep 2020 09:10:38 GMT):
Hi

sivsivsree (Thu, 24 Sep 2020 09:13:07 GMT):
Hello, can anyone point what are the issues/challenges or why not 1. If I put one transaction per block. 2. A very large number of blocks

james604 (Thu, 24 Sep 2020 10:33:06 GMT):
Has joined the channel.

chasecheese (Thu, 24 Sep 2020 10:33:29 GMT):
Has joined the channel.

chasecheese (Thu, 24 Sep 2020 10:33:30 GMT):
Hi guys, I'm trying to use java to install chaincode in the offical sample firsrt-network, but always get an error.The version is Hyperledger fabeic 2.0. I think there is something wrong with the gradle, but I don't konw how to slove it. Can you guys help me, please? run the command "./byfn.sh up -l java" but get the error when installing chaincode on peer0.org1

chasecheese (Thu, 24 Sep 2020 10:33:34 GMT):
Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing !!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ===========

james604 (Thu, 24 Sep 2020 10:35:47 GMT):
Hi, I am new to Fabric. I'd like to build up network in Kubernetes, is there any step by step / walkthrough tutorials? or any yaml files I can refer? appreciate any help. Thanks.

tongli (Thu, 24 Sep 2020 10:57:00 GMT):
https://github.com/litong01/minifabric

tongli (Thu, 24 Sep 2020 10:57:19 GMT):
@chasecheese take a look at minifabric, you probably can get things going in few minutes. It is here https://github.com/litong01/minifabric

tongli (Thu, 24 Sep 2020 10:59:13 GMT):
Use minifab up to start up a network, once it is up running, place your Java chaincode in vars/chaincode/java directory, then run minifab install -l java command. That is all you have to do.

tongli (Thu, 24 Sep 2020 10:59:13 GMT):
Use minifab up to start up a network, once it is up running, place your Java chaincode in vars/chaincode/java/mycc directory, then run minifab install -l java -n mycc command. That is all you have to do.

tongli (Thu, 24 Sep 2020 11:00:01 GMT):
Also take a look at https://github.com/litong01/minifabric/docs/readme.md file for more information

tongli (Thu, 24 Sep 2020 11:00:34 GMT):
Minifabric supports all releases of fabric starting 1.4.1 to the newest.

tongli (Thu, 24 Sep 2020 11:01:11 GMT):
And you can do it on windows , Linux or OS X.

tongli (Thu, 24 Sep 2020 11:01:11 GMT):
And you can do it on windows 10, Linux or OS X.

tongli (Thu, 24 Sep 2020 11:22:54 GMT):
@chasecheese you can take your question to fabric-mini channel if you are interested in the tool.

chasecheese (Thu, 24 Sep 2020 11:36:33 GMT):
Thanks a lot, I will take a look, but I still want to konw how to slove the problem in first-network.:grin:

tongli (Thu, 24 Sep 2020 11:42:55 GMT):
Basically, when you install chaincode, you need to specify where chaincode is and what language the chaincode was written and its version, using minifabric, all these things are done for you, you can look at the deployment scripts found in vars/run/ccinstall.sh, which gets automatically generated by minifabric for you when you run install command, it does it for you and if you want to know how minifabric does it, look at the script, no secret. That is why it is a great tool for learning fabric. Day and night comparing to test-network or byfn.

GamerMax (Thu, 24 Sep 2020 13:46:42 GMT):
Has joined the channel.

GamerMax (Thu, 24 Sep 2020 13:46:42 GMT):
Hi, I am new to fabric. I tried installing it by following the official documentation on my Ubuntu 18.04, but it fails to download the binary files. I've addressed this issue in stackoverflow, but still could'nt find a solution.. can anyone help???

GamerMax (Thu, 24 Sep 2020 13:46:42 GMT):
Hi, I am new to fabric. I tried installing it by following the official documentation on my Ubuntu 18.04, but it fails to download the binary files. I've addressed this issue in stackoverflow, but still could'nt find a solution.. can anyone help??? psThis is the link to stackoverflow

GamerMax (Thu, 24 Sep 2020 13:46:42 GMT):
Hi, I am new to fabric. I tried installing it by following the official documentation on my Ubuntu 18.04, but it fails to download the binary files. I've addressed this issue in stackoverflow, but still could'nt find a solution.. can anyone help??? ps. This is the link to stackoverflow where I've given a derailed description of the problem https://stackoverflow.com/questions/63995635/error-while-downloading-platform-specific-binaries-for-hyperledger-fabric-in/64007487#64007487

GamerMax (Thu, 24 Sep 2020 13:46:42 GMT):
Hi, I am new to fabric. I tried installing it by following the official documentation on my Ubuntu 18.04, but it fails to download the binary files. I've addressed this issue in stackoverflow, but still could'nt find a solution.. can anyone help??? Thanks in advance.. ps. This is the link to stackoverflow where I've given a detailed description of the problem https://stackoverflow.com/questions/63995635/error-while-downloading-platform-specific-binaries-for-hyperledger-fabric-in/64007487#64007487

mvkillu (Thu, 24 Sep 2020 13:54:27 GMT):
Not directly related to your question, but do checkout [MiniFabric](https://github.com/litong01/minifabric) It's pretty easy to stand up a fabric network using Minifabric and the developer has shared six pretty good videos on how to stand up a fabric network.

GamerMax (Thu, 24 Sep 2020 13:59:27 GMT):
Thank you @mvkillu .. I'll check it out for sure.. but can you help me with the problem that I've posted..

BrettLogan (Thu, 24 Sep 2020 18:47:30 GMT):
@GamerMax Where are you located, we've seen issues with people trying to download depending on their geolocation

BrettLogan (Thu, 24 Sep 2020 18:48:56 GMT):
`core.yaml` is the configuration for a peer. Each peer has it's own `core.yaml`

BrettLogan (Thu, 24 Sep 2020 20:05:04 GMT):
Can you ask this question on the mailing list or in #fabric-orderer . We don't support Kafka anymore but the orderer maintainers will likely be able to answer your question

BrettLogan (Thu, 24 Sep 2020 20:05:39 GMT):
What kind of changes, you mean in code, or do you mean in config and you are restarting the peer

GamerMax (Fri, 25 Sep 2020 04:20:16 GMT):
@BrettLogan I'm from India..

BrettLogan (Fri, 25 Sep 2020 04:21:09 GMT):
Which is where most of the issues come from, give me a few, let me see if I can find the thread to use the other method for bootstrapping.

BrettLogan (Fri, 25 Sep 2020 04:22:49 GMT):
https://stackoverflow.com/questions/59670321/unable-to-download-latest-hyperledger-fabric-binaries/59689220#59689220

BrettLogan (Fri, 25 Sep 2020 04:23:46 GMT):
In particular this command: `curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s 2.2.0 1.4.7 0.4.18`

BrettLogan (Fri, 25 Sep 2020 04:24:20 GMT):
This will use wget instead of curl, it's hit or miss which users in India which works and which doesn't

BrettLogan (Fri, 25 Sep 2020 04:25:03 GMT):
And unfortunately, sometimes neither works

GamerMax (Fri, 25 Sep 2020 04:25:15 GMT):
@BrettLogan I'll try this and let u know in a couple of minutes..

BrettLogan (Fri, 25 Sep 2020 04:25:18 GMT):
It's a known problem with GitHubs CDN

BrettLogan (Fri, 25 Sep 2020 04:25:49 GMT):
I'm out for the night, but if that doesn't work let me know. Ill tell you how to manually fix the step that isn't working

GamerMax (Fri, 25 Sep 2020 04:27:12 GMT):
Thank you so much for helping out @BrettLogan

GamerMax (Fri, 25 Sep 2020 04:41:27 GMT):
@BrettLogan It still throws up the same error..

GamerMax (Fri, 25 Sep 2020 04:41:27 GMT):
@BrettLogan It still shows the same error..

sathyakplm (Fri, 25 Sep 2020 10:35:14 GMT):
Hello,

sathyakplm (Fri, 25 Sep 2020 10:38:02 GMT):
I am using HLF 2.2. I have installed two versions of same chaincode in my peer; I have also approved and committed the same. When I call `peer chaincode invoke`, which version will be called? If the invoke command is going to call the latest version, what is the point in having different versions installed?

adgupta011 (Fri, 25 Sep 2020 12:22:09 GMT):
Hi Team. We are trying to connect explorer with fabric 2.2 using docker composer. After following the instruction we are getting this error : [ERROR] FabricClient - Error: DiscoveryService: mychannel error: access denied . We have also checked within the container all the desired volumes are correctly mounted and our config file is rightly taken.

antoniovassell (Fri, 25 Sep 2020 13:17:11 GMT):
How can you regenerate a fabric ca root certifiate if it is expiried? and what components would need to be updated?

lupass93 (Fri, 25 Sep 2020 14:07:29 GMT):
Thank you very much! There is a guidelines or a doc to understand how configure core.yaml? I don't found nothing for it

BrettLogan (Fri, 25 Sep 2020 14:48:19 GMT):
Versions are used as upgrades. If you've installed a second version, its expected that version would supersede your first version. The second version doesn't become the one thats called until you commit the new version

BrettLogan (Fri, 25 Sep 2020 14:48:19 GMT):
Versions are used as major upgrades. If you've installed a second version, its expected that version would supersede your first version. The second version doesn't become the one thats called until you commit the new version

BrettLogan (Fri, 25 Sep 2020 14:50:06 GMT):
Sequences are used to deploy new patches of existing chaincode. So if you've made a minor change that doesn't affect functionality you can use the `--sequence` flag to commit an update to your existing chaincode

BrettLogan (Fri, 25 Sep 2020 14:51:13 GMT):
Unfortunately Composer is EOL and completely unsupported now. That being said, are that error arises from one of two scenarios, either you are trying to use a channel that doesn't exist, or you are using the certs of a user who doesn't have permission to access it.

BrettLogan (Fri, 25 Sep 2020 14:53:03 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#reenrolling-an-identity

BrettLogan (Fri, 25 Sep 2020 14:53:11 GMT):
You can use the `reenroll` command on the CLI

BrettLogan (Fri, 25 Sep 2020 15:00:18 GMT):
Here is a link to the doc our teams are working on for deploying Peers in production. This includes going over the values in core.yaml that users need to be concerned with: https://hyperledger-fabric--1803.org.readthedocs.build/en/1803/deploypeer/peerchecklist.html

BrettLogan (Fri, 25 Sep 2020 15:00:43 GMT):
These are the properties you must set for running the peer

BrettLogan (Fri, 25 Sep 2020 15:01:13 GMT):
And then here is the rest of the doc on deploying the peer which has some more info in it: https://hyperledger-fabric--1803.org.readthedocs.build/en/1803/deploypeer/peerdeploy.html

BrettLogan (Fri, 25 Sep 2020 15:01:45 GMT):
These are brand new doc (haven't even been merged yet into the official doc), and are very well written. I recommend you take a few minutes to read them

lupass93 (Fri, 25 Sep 2020 15:16:18 GMT):
Wow, that is great! Thank you so much! :grinning: I’m a bit confused about binary peer and docker deployment. If I use docker containers don’t I have to worry about core.yaml for binary peer? In my test projects I always use docker container, however I need to set FABRIC_CFG_PATH when using peer lifecycle chaincode

adgupta011 (Fri, 25 Sep 2020 15:36:22 GMT):
Thanks for the quick response. Yes the issue is fixed. One of the certificate was wrong.

donnie.stewart (Fri, 25 Sep 2020 19:35:02 GMT):
I am trying to make changes to fabric/cmd/peer/main.go, and want to know the fastest method to test those changes on a network. Currently, I call make peer, to remake the executable - make peer-docker-clean, make peer-docker, to remake the images - then restart the network. Wanted to know if there was a better/faster method to doing this.

yongmu-lol (Sat, 26 Sep 2020 12:10:28 GMT):
Has joined the channel.

yongmu-lol (Sat, 26 Sep 2020 12:10:49 GMT):
how to solve the problem “”2020-09-26T08:48:04.903Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]2020.09.26-16:48:04.904 error [caliper] [caliper-engine] Error while performing "init" step: Error: Couldn't enroll Org1's registrar or set it as user context: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

matanyahu (Sat, 26 Sep 2020 14:02:52 GMT):
We are trying to deploy HLF 1.4.8 with client TLS enabled behind a proxy. The proxy terminates incoming https/grpcs traffic from the Internet and then redirects it to an instance of an org Peer and Orderer to which the client is attempting to connect. Proxy is exposing TLS interface with a signed certificate issued by a trusted CA for *.hlf.domain.com. We generated local org network with certs issued by Fabric CA for orgX.hlf.domain.com. Technically speaking, the communication terminated by the proxy should be allowed to establish a connection between HLF SDK client and HLF network components. However, instead of that we receive a following grpc error: “transport: x509: certificate signed by unknown authority”. Any suggestion regarding possible ways to solve this matter would be greatly appreciated.

lupass93 (Sat, 26 Sep 2020 17:42:58 GMT):
Hello to you all! I have read and implemented the following guide https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html And it all went well! I have one doubt, though. Why does the guide install a CA for TLS certificates and a CA (for each organization) for enrollment certificates? Wouldn’t it be enough to have a CA TLS for every organization that issues TLS membership certificates for any organitazion memeber? I want to understand this... I quote a step in the guide: <> Thank you very much!

lupass93 (Sat, 26 Sep 2020 17:43:36 GMT):
member*

lupass93 (Sat, 26 Sep 2020 17:51:40 GMT):
have a CA TLS for each organization*

sivsivsree (Sun, 27 Sep 2020 11:12:51 GMT):
Do i have to restart the entire network, when i change the BatchTimeout?

GamerMax (Mon, 28 Sep 2020 05:04:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=EXT6BAdc5hscnSWQK) Stuck with this can anyone help??

gmpdtd95 (Mon, 28 Sep 2020 06:15:55 GMT):
Has joined the channel.

gmpdtd95 (Mon, 28 Sep 2020 06:15:56 GMT):
Will the community version support the SM2 algorithm in? Or do we get the relevant functions through payment, and how to calculate the cost?

sathyakplm (Mon, 28 Sep 2020 06:24:16 GMT):
Thanks Brett..

vitorduarte (Mon, 28 Sep 2020 15:02:43 GMT):
Hello, I'm trying to use mutual tls to secure my apps. Is it possible to use fabric-ca to sign a CSR to provide a certificate? The main key it is that I wouldn't like that fabric-ca have access to client's private key. All the interfaces that I found it is based on asking for fabric-ca to a public/certificate and private key.

vitorduarte (Mon, 28 Sep 2020 15:02:43 GMT):
Hello, I'm trying to use mutual tls to secure my apps. Is it possible to use fabric-ca to sign a CSR to provide a certificate? The main point it is that I wouldn't like that fabric-ca have access to client's private key. All the interfaces that I found it is based on asking for fabric-ca to a public/certificate and private key.

CT123 (Mon, 28 Sep 2020 21:52:35 GMT):
Cloning fabric for developers current version (2.x) -- do I REALLY need to drop the cloned install in a github.com directory? And is it possible to just download the folder without using git?

CT123 (Mon, 28 Sep 2020 21:56:06 GMT):
Actually, more clarity -- we are not developing against the HLF code base -- we are developing applications that USE HLF 2.x -- so can I just install the samples and binaries and call it a day?

CT123 (Mon, 28 Sep 2020 22:55:35 GMT):
docker network images, prune and BOOTSTRAP.sh???

CT123 (Mon, 28 Sep 2020 22:57:25 GMT):
I have a bunch of old fabric images running on my docker desktop -- I need to remove them. Under 1.4.x I would remove them (using appropriate docker commands) and then reload the correct ones using bootstrap.sh -- is there an equiv under 2.x??

CT123 (Mon, 28 Sep 2020 23:05:54 GMT):
Better Q -- how to *easily* reload 2.x images only to docker desktop?

yehuofirst (Tue, 29 Sep 2020 01:56:51 GMT):
the sample of asset-transfer-basic 2.2 of go version can not run ?please have you met?

harryheng (Tue, 29 Sep 2020 02:14:22 GMT):
Has joined the channel.

harryheng (Tue, 29 Sep 2020 02:14:23 GMT):
Error response from daemon: manifest for hyperledger/fabric-ca:2.0.0 not found: manifest unknown: manifest unknown 这个报错怎么解决?

hunterkiller1441 (Tue, 29 Sep 2020 04:09:36 GMT):
Has joined the channel.

hunterkiller1441 (Tue, 29 Sep 2020 04:10:19 GMT):
what can i do to get started with fabric development?

mvkillu (Tue, 29 Sep 2020 04:35:58 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/ is a good place to start. The documentation is comprehensive. There are also some youtube videos available on hyperledger fabric.

mvkillu (Tue, 29 Sep 2020 04:36:18 GMT):
If you are feeling overwhelmed, you can also checkout minifabric tool on github.

harryheng (Tue, 29 Sep 2020 06:27:39 GMT):
【活跃】存在的呼唤(490965354) 14:20:57 node create-channel.js 2020-09-29T06:20:05.894Z - info: [TestUtil]: ******************************************************************************* ******************************************************************************* * * Using temp dir: /root/fabric-sdk-node/test/temp * ******************************************************************************* ******************************************************************************* TAP version 13 # ***** SDK Built config update create flow ***** 2020-09-29T06:20:06.696Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/root/fabric-sdk-node/fabric-ca-client/lib/FabricCAClient.js:327:19) at ClientRequest.emit (events.js:315:20) at TLSSocket.socketErrorListener (_http_client.js:463:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:100:8) at emitErrorCloseNT (internal/streams/destroy.js:68:3) at processTicksAndRejections (internal/process/task_queues.js:84:21), errno=-111, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=7054 not ok 1 Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] --- operator: error expected: |- undefined actual: |- { [Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]] errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7054 } at: bound (/root/fabric-sdk-node/node_modules/tape-promise/node_modules/onetime/index.js:30:12) stack: |- Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest. (/root/fabric-sdk-node/fabric-ca-client/lib/FabricCAClient.js:327:19) at ClientRequest.emit (events.js:315:20) at TLSSocket.socketErrorListener (_http_client.js:463:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:100:8) at emitErrorCloseNT (internal/streams/destroy.js:68:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) ... 1..1 # tests 1 # pass 0 # fail 1 【活跃】存在的呼唤(490965354) 14:21:08 我用node自带sdk 报错

GamerMax (Tue, 29 Sep 2020 06:37:55 GMT):
ERROR: manifest for hyperledger/fabric-orderer:latest not found: manifest unknown: manifest unknown

GamerMax (Tue, 29 Sep 2020 06:37:55 GMT):
trying to run "./network.sh up" (wsl 2 ubuntu 20.04) but the following error pops up.. ERROR: manifest for hyperledger/fabric-orderer:latest not found: manifest unknown: manifest unknown.. can anyone help me solve this

Amanullah68 (Tue, 29 Sep 2020 07:44:20 GMT):
After registering few users, affiliation error arises what's the issue? Is there any limitation of users?

knagware9 (Tue, 29 Sep 2020 07:45:28 GMT):
Please share more details and error log

Amanullah68 (Tue, 29 Sep 2020 07:45:58 GMT):

Screenshot from 2020-09-29 12-45-44.png

chintanr11 (Tue, 29 Sep 2020 07:48:13 GMT):
Hi Team, I was trying to refer to integration tests in the HLF fabric repo. I was trying to identify if current integration tests also test for external builder scenario. I saw in the integration test folder that we have the builder bin directories - however, I am doubtful if actually the chaincodes are running as an external service. I also verified that in the CC source code (all the examples in the integration/chaincode folder), we are not starting a chaincode server. Can anyone please help me identify if this observation is correct - or if I am missing something then can you please point me to that segment of code in integration tests?

Amanullah68 (Tue, 29 Sep 2020 07:50:13 GMT):
I want to regisster user with password

knagware9 (Tue, 29 Sep 2020 07:50:54 GMT):
check this https://lists.hyperledger.org/g/fabric/topic/30173608

zhasni (Tue, 29 Sep 2020 08:36:57 GMT):
HI, I'm struggling to upgrade a V1.4.x network to V2.2.0, I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_components.html Since there's no script performing this upgrade anymore, like in earlier upgrade, so it's hard to understand... I use fabric-sample V1.4.8 to start a local fisrt network (5 raft orderers, 2 orgs with 2 peers each + couchdbs + cas) I've been able to backup ledgers and MSP from both orderers and peers, upprage dbs, orderers and peers container with V2.2.0 images. but when I check the logs even I can read that the pre-existing channel is detected nothing seem to work. the orderers keep starting an new election, each of them became pre-candidate and loop again the peers are failing to reach the orderers I don't know If I can continue with the Updating the capability level of a channel steps and even if it will fix my issues ? Do you know If I'm in good way or not ? Is there an end to end scenario available somewhere, to update a v1.4.x fabric network to V2.x ? thx !

zhasni (Tue, 29 Sep 2020 08:36:57 GMT):
HI, I'm struggling to upgrade a V1.4.x network to V2.2.0, I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_components.html It's hard to understand since, like in earlier upgrade, there's no script performing this upgrade anymore. I use fabric-sample V1.4.8 to start a local fisrt network (5 raft orderers, 2 orgs with 2 peers each + couchdbs + cas) I've been able to backup ledgers and MSP from both orderers and peers, upprage dbs, orderers and peers container with V2.2.0 images. but when I check the logs even I can read that the pre-existing channel is detected nothing seem to work. the orderers keep starting an new election, each of them became pre-candidate and loop again the peers are failing to reach the orderers I don't know If I can continue with the Updating the capability level of a channel steps and even if it will fix my issues ? Do you know If I'm in good way or not ? Is there an end to end scenario available somewhere, to update a v1.4.x fabric network to V2.x ? thx !

zhasni (Tue, 29 Sep 2020 08:36:57 GMT):
HI, I'm struggling to upgrade a V1.4.x network to V2.2.0, I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_components.html It's hard to understand since, like in earlier upgrade, there's no script performing this upgrade anymore. I use fabric-sample V1.4.8 to start a local fisrt network (5 raft orderers, 2 orgs with 2 peers each + couchdbs + cas) I've been able to backup ledgers and MSP from both orderers and peers, upprage dbs, orderers and peers container with V2.2.0 images. but when I check the logs even if I can read that the pre-existing channel is detected nothing seem to work. the orderers keeps starting an new election, each of them became pre-candidate and loop again the peers are failing to reach the orderers I don't know If I can continue with the Updating the capability level of a channel steps and even if it will fix my issues ? Do you know If I'm in good way or not ? Is there an end to end scenario available somewhere, to update a v1.4.x fabric network to V2.x ? thx !

zhasni (Tue, 29 Sep 2020 08:36:57 GMT):
HI, I'm struggling to upgrade a V1.4.x network to V2.2.0, I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_components.html It's hard to understand since, unlike in earlier upgrade, there's no script performing this upgrade anymore. I use fabric-sample V1.4.8 to start a local fisrt network (5 raft orderers, 2 orgs with 2 peers each + couchdbs + cas) I've been able to backup ledgers and MSP from both orderers and peers, upprage dbs, orderers and peers container with V2.2.0 images. but when I check the logs even if I can read that the pre-existing channel is detected nothing seem to work. the orderers keeps starting an new election, each of them became pre-candidate and loop again the peers are failing to reach the orderers I don't know If I can continue with the Updating the capability level of a channel steps and even if it will fix my issues ? Do you know If I'm in good way or not ? Is there an end to end scenario available somewhere, to update a v1.4.x fabric network to V2.x ? thx !

zhasni (Tue, 29 Sep 2020 08:36:57 GMT):
HI, I'm struggling to upgrade a V1.4.x network to V2.2.0, I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/upgrading_your_components.html It's hard to understand since, unlike in earlier upgrade, there's no script performing this upgrade anymore. I use fabric-sample V1.4.8 to start a local fisrt network (5 raft orderers, 2 orgs with 2 peers each + couchdbs + cas) I've been able to backup ledgers and MSP from both orderers and peers, upprage dbs, orderers and peers container with V2.2.0 images. but when I check the logs nothing seem to work even if I can read that the pre-existing channel is detected. the orderers keeps starting an new election, each of them became pre-candidate and loop again the peers are failing to reach the orderers... I don't know If I can continue with the Updating the capability level of a channel steps and even if it will fix my issues ? Do you know If I'm in good way or not ? Is there an end to end scenario available somewhere, to update a v1.4.x fabric network to V2.x ? thx !

antoniovassell (Tue, 29 Sep 2020 09:19:12 GMT):
Hi this @BrettLogan that reference is for the enrollment certificate. what I am referring to is the "root ca" certificate, the certificate that is required to make any calls to the CA.

antoniovassell (Tue, 29 Sep 2020 09:19:36 GMT):
Do you have any thoughts?

KartikChauhan (Tue, 29 Sep 2020 13:04:56 GMT):
How do I use BlockDecoder class? The class is not exported in fabric-client npm package. I'm using Fabric v1.4.2.

zhasni (Tue, 29 Sep 2020 13:43:25 GMT):
you have to create it ```echo "ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 ORDERER_GENERAL_GENESISMETHOD=file ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block ORDERER_GENERAL_LOCALMSPID=OrdererMSP ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp ORDERER_GENERAL_TLS_ENABLED=true ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]" > env_orderer0.example.com.list ``` relaunch your docker run CDE you should not see a file not found error again

CT123 (Tue, 29 Sep 2020 13:48:34 GMT):
Running HLF 2.2.0 on mac os with docker desktop -- I need to reload ONLY the docker images -- what is the commandline command to do that? Background -- I had 1.4.x fabric docker images loaded into docker so I needed to remove everything and prune both the system and volume. I need to reload only the docker images and the fabric-samples download is fresh. Again, only the commandline command to reload only the docker images. Thx

rany (Tue, 29 Sep 2020 13:57:48 GMT):
Has joined the channel.

rany (Tue, 29 Sep 2020 14:05:38 GMT):
Failed to Submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: calling orderer 'localhost:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7050]: connection is in TRANSIENT_FAILURE

rany (Tue, 29 Sep 2020 14:08:53 GMT):

Clipboard - 2020年9月29日晚上10点08分

rany (Tue, 29 Sep 2020 14:08:58 GMT):
I followed the tutorial, but get this error when run application-go under fabric-sample, how to solve that: Failed to Submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: calling orderer 'localhost:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7050]: connection is in TRANSIENT_FAILURE

soluchok (Tue, 29 Sep 2020 14:48:04 GMT):
Has joined the channel.

mcoblenz (Tue, 29 Sep 2020 15:26:32 GMT):
Hi, all. I'm trying to get the commercial-paper sample working on Fabric 2.2. I'm getting this error when I try to install the chaincode: `peer0.org1.example.com|* What went wrong: peer0.org1.example.com|Task 'shadowJar' not found in root project 'papercontract'.` Any guesses as to what I might be doing wrong?

mcoblenz (Tue, 29 Sep 2020 15:27:23 GMT):
I'm following the tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html

mcoblenz (Tue, 29 Sep 2020 15:27:31 GMT):
using the Java version of the chaincode.

CT123 (Tue, 29 Sep 2020 15:42:35 GMT):
Will this do what I need, re: pull ONY docker images? This is from `fabric-samples/ci/scripts/pullFabricImages.sh ` (have no idea what ci is or why it's there):

CT123 (Tue, 29 Sep 2020 15:42:47 GMT):
`more pullFabricImages.sh #!/bin/bash -e set -euo pipefail FABRIC_VERSION=${FABRIC_VERSION:-2.2} STABLE_TAG=amd64-${FABRIC_VERSION}-stable for image in baseos peer orderer ca tools orderer ccenv javaenv nodeenv tools; do docker pull -q "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" hyperledger/fabric-${image} docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" "hyperledger/fabric-${image}:${FABRIC_VERSION}" docker rmi -f "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" done docker pull -q couchdb:3.1 docker images | grep hyperledger`

CT123 (Tue, 29 Sep 2020 15:42:47 GMT):
` more pullFabricImages.sh #!/bin/bash -e set -euo pipefail FABRIC_VERSION=${FABRIC_VERSION:-2.2} STABLE_TAG=amd64-${FABRIC_VERSION}-stable for image in baseos peer orderer ca tools orderer ccenv javaenv nodeenv tools; do docker pull -q "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" hyperledger/fabric-${image} docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" "hyperledger/fabric-${image}:${FABRIC_VERSION}" docker rmi -f "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" done docker pull -q couchdb:3.1 docker images | grep hyperledger `

CT123 (Tue, 29 Sep 2020 15:42:47 GMT):
```more pullFabricImages.sh #!/bin/bash -e set -euo pipefail FABRIC_VERSION=${FABRIC_VERSION:-2.2} STABLE_TAG=amd64-${FABRIC_VERSION}-stable for image in baseos peer orderer ca tools orderer ccenv javaenv nodeenv tools; do docker pull -q "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" hyperledger/fabric-${image} docker tag "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" "hyperledger/fabric-${image}:${FABRIC_VERSION}" docker rmi -f "hyperledger-fabric.jfrog.io/fabric-${image}:${STABLE_TAG}" done docker pull -q couchdb:3.1 docker images | grep hyperledger ```

rany (Wed, 30 Sep 2020 04:32:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Adr34z4RuuhDTWpGX) Someone can help me:sob:

huytn.it (Wed, 30 Sep 2020 05:03:58 GMT):
hi, I got error while add org3 to mychannel 2020-09-30 03:45:23.413 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory but the /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp is existed What did i do wrong?

huytn.it (Wed, 30 Sep 2020 05:03:58 GMT):
hi, I got an error while add org3 to mychannel 2020-09-30 03:45:23.413 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory but the /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp is existed What did i do wrong?

huytn.it (Wed, 30 Sep 2020 05:03:58 GMT):
hi, I got an error while add org3 to mychannel ./addOrg3 up -c mychannel -s couchdb + peer channel fetch config config_block.pb -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com -c mychannel --tls --cafile /home/fabric/v2.2/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Fetching the most recent configuration block for the channel 2020-09-30 03:45:23.413 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory but the /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp is existed What did i do wrong?

huytn.it (Wed, 30 Sep 2020 05:03:58 GMT):
hi, I got an error while add org3 to mychannel ./addOrg3 up -c mychannel -s couchdb ...... + peer channel fetch config config_block.pb -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com -c mychannel --tls --cafile /home/fabric/v2.2/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem Fetching the most recent configuration block for the channel 2020-09-30 03:45:23.413 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory but the /home/fabric/v2.2/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp is existed What did i do wrong?

harryheng (Wed, 30 Sep 2020 07:28:29 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to orderer0.example.com:7050: failed to create new connection: context deadline exceeded

oneillal (Wed, 30 Sep 2020 10:45:47 GMT):
Has joined the channel.

oneillal (Wed, 30 Sep 2020 10:45:48 GMT):
cd ..

SivaramKannan (Wed, 30 Sep 2020 13:37:01 GMT):
Hi Team - I have a deployed Fabric 2.2 in Kubernetes 1.17 (AKS). I followed the lifecycle command to install and approve chaincode. although the "peer lifecycle chaincode queryinstalled" command says the chaincode is installed, I get the below error while issuing invoke command “Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode TestCC has been successfully defined on channel allchannel and try again: chaincode definition for ‘TestCC' exists, but chaincode is not installed” I check the underlying Host to check whether the chaincode is running as a container, but I don’t see it in the Host. Should I run the chaincode as an external chaincode? Is this a 2.x chaincode behaviour

BrettLogan (Wed, 30 Sep 2020 13:49:27 GMT):
Did you commit the chaincode after installing?

SivaramKannan (Wed, 30 Sep 2020 13:50:56 GMT):
yes. I got this output after commit

SivaramKannan (Wed, 30 Sep 2020 13:50:57 GMT):
Committed chaincode definition for chaincode ‘TestCC' on channel 'allchannel': Version: 1.0, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc, Approvals: [org1MSP: true, org2MSP: true]

SivaramKannan (Wed, 30 Sep 2020 13:50:57 GMT):
```Committed chaincode definition for chaincode ‘TestCC' on channel 'allchannel': Version: 1.0, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc, Approvals: [org1MSP: true, org2MSP: true]```

BrettLogan (Wed, 30 Sep 2020 13:51:51 GMT):
CI is CI, the directory contains all of the assets needed for performing Continuous Integration on Fabric Samples. This script is used by CI to bootstrap eveerything needed to test Pull Requests

BrettLogan (Wed, 30 Sep 2020 13:53:22 GMT):
This will give you what you need, but you should be using: `curl -sSL http://bit.ly/2ysbOFE | bash -s -- -s -b`

BrettLogan (Wed, 30 Sep 2020 13:58:07 GMT):
You are confusing external builder and external chaincode server. The tests you were looking at were for the "external builder". This is the test for the external chaincode server: https://github.com/hyperledger/fabric/commit/9ac4e5b2e799c005d2acd9d4b30f1b1c176c4834#diff-8941975a84ba87867599ecf18e38ffa7

zhasni (Wed, 30 Sep 2020 15:17:39 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgyxeQxAinRwjyzPP)
Screenshot from 2020-09-30 17-13-41.png

zhasni (Wed, 30 Sep 2020 15:17:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgyxeQxAinRwjyzPP) I've managed to upgrade my components to v2.2.0 (orderer peers cli) and can invoke and query old chaincode know I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/updating_capabilities.html#orderer-system-channel-capabilities I can't fetch the orderer system channel `config_block.pb`

zhasni (Wed, 30 Sep 2020 15:17:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgyxeQxAinRwjyzPP) I've managed to upgrade my components to v2.2.0 (orderer peers cli) and can invoke and query old chaincode know I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/updating_capabilities.html#orderer-system-channel-capabilities I can't fetch the orderer system channel `config_block.pb` the data is there : ```

zhasni (Wed, 30 Sep 2020 15:17:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=qgyxeQxAinRwjyzPP) I've managed to upgrade my components to v2.2.0 (orderer peers cli) and can invoke and query old chaincode know I'm following : https://hyperledger-fabric.readthedocs.io/en/latest/updating_capabilities.html#orderer-system-channel-capabilities I can't fetch the orderer system channel `config_block.pb` the data is there : ``` docker exec -it orderer.example.com sh /opt/gopath/src/github.com/hyperledger/fabric # ls /var/hyperledger/production/orderer/chains/byfn-sys-channel/ blockfile_000000 ``` and I'm able to fetch the other channel config block. Why can't I fetch this config block ? Am I doing something wrong ???

zhasni (Wed, 30 Sep 2020 15:19:02 GMT):

Screenshot from 2020-09-30 17-13-41.png

SivaramKannan (Wed, 30 Sep 2020 15:31:13 GMT):
does the above message means the docker container should have been launched on both the org's peer right?

SivaramKannan (Wed, 30 Sep 2020 15:45:51 GMT):
how can I debug this issue?

CT123 (Wed, 30 Sep 2020 16:25:18 GMT):
@brettlogan Thanks -- 2 Q's -- we are documenting for 2 different os's linux & osx -- so can you please sub a non-shortened URL as the actual URL AND can you please tell me what the post version -s and -b options indicate and why they only pull docker images? Finally, back to my original question -- will that script in CI do what I need for ONLY docker image pulls? Again, we are trying to get around "tool" usage to noting for our engineers only what they need to do *from the command line* for multi os envs. Thanks.

BrettLogan (Wed, 30 Sep 2020 16:36:00 GMT):
That script at the shortened URL is agnostic of the OS. It will correctly parse the OS. It is our official script for downloading fabric assets. The -b flag says skip downloading the fabric binaries,, and the -s flag skips downloading the samples repo. If what you want is just a script to download the images though, that's what you want, but you want to change the urls to dockerhub, today it points at our Artifactory with are our non-release images

SivaramKannan (Wed, 30 Sep 2020 17:55:21 GMT):
please ignore the question. The packaged was wrong. this is spot on - https://stackoverflow.com/questions/62780362/connection-between-cli-and-peer-orderer-not-working-properly-kubernetes-setup

SivaramKannan (Wed, 30 Sep 2020 17:55:21 GMT):
please ignore the question. The package-id was wrong. this is spot on - https://stackoverflow.com/questions/62780362/connection-between-cli-and-peer-orderer-not-working-properly-kubernetes-setup

CT123 (Wed, 30 Sep 2020 19:34:03 GMT):
@brettlogan -- thanks for info on the options, very helpful. My Q re: URL -- has nothing to do with OS, has everything to do with proper documentation on our end as ocassionally we have clients who *require* the correct shortened URL be disclosed, particularly when it points to a domain owned by a foreign gov and a .ly domain is one of them -- so a *direct* non-shortened URL makes our documentation not only complete but meets certain mandated security requirements -- tmi I know but necessary in some sits. Thx in advance.

BrettLogan (Wed, 30 Sep 2020 19:43:15 GMT):
https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh

BrettLogan (Thu, 01 Oct 2020 02:34:14 GMT):
You didn't properly bootstrap fabric samples

BrettLogan (Thu, 01 Oct 2020 02:35:51 GMT):
You need to run `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 2.2.1 1.4.9 -s -b` to pull the docker images

BrettLogan (Thu, 01 Oct 2020 02:38:03 GMT):
I would ask this question on the mailing, you are more likely to get an answer from one of our networking experts there

chintanr11 (Thu, 01 Oct 2020 04:43:08 GMT):
Yes right, I re-visited the doc and it got cleared. I also found a List thread from David about the integration tests for CC as an external service. That took me to that PR. Thanks a lot Brett :)

visheshgupta (Thu, 01 Oct 2020 09:13:09 GMT):
Hi, I am trying to setup 5 raft orderer nodes on different VM but when i try to create a channel from peer it gives me no raft leader error ^[[34m2020-10-01 09:08:51.048 UTC [channelCmd] InitCmdFactory -> INFO 001^[[0m Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader

curiousdude (Thu, 01 Oct 2020 11:52:33 GMT):
Has joined the channel.

curiousdude (Thu, 01 Oct 2020 11:52:47 GMT):
Any guide regarding how to install hyperledger fabric on raspberry pi 4?

kokolaki (Thu, 01 Oct 2020 12:32:19 GMT):
Hello, for version 2.2.0 of fabric, I use the images from here https://hub.docker.com/u/xlongit, except form image javaenv that you can download from here https://hub.docker.com/r/btl5037/fabric-javaenv/tags

kokolaki (Thu, 01 Oct 2020 12:33:47 GMT):
If you want to build images from your own, you must download fabric-baseimage repository, make appropriate changes https://jira.hyperledger.org/browse/FABB-62 https://jira.hyperledger.org/browse/FAB-10454 install docker compose:https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl

kokolaki (Thu, 01 Oct 2020 12:36:04 GMT):
then build fabric-ca from repository and finally build other images from here https://github.com/hyperledger/fabric

kokolaki (Thu, 01 Oct 2020 12:36:56 GMT):
use last repository to build binary images (make native) and to copy them to fabric samples directory

kokolaki (Thu, 01 Oct 2020 12:36:56 GMT):
use last repository to build binary files (make native) and to copy them to fabric samples directory

kokolaki (Thu, 01 Oct 2020 12:38:51 GMT):
in fabric-samples you need one more folder config, that is the same in with amd architecture, so just follow instructions from tutorial to download in amd architecture with ubuntu pc and then copy from there

kokolaki (Thu, 01 Oct 2020 12:38:51 GMT):
in fabric-samples you need one more folder config, that is the same in amd architecture, so just follow instructions from tutorial to download in amd architecture with ubuntu pc and then copy from there

kokolaki (Thu, 01 Oct 2020 12:39:20 GMT):
you need to install ubuntu operating system on your raspberry

kokolaki (Thu, 01 Oct 2020 12:41:14 GMT):
also for hyperledger fabric repository There are known issues with the linker on ARM, you can disable CGO to get around this, edit this line: https://github.com/hyperledger/fabric/blob/master/Makefile#L210 to be: GOBIN=$(abspath $(@D)) CGO_ENABLED=0 go install -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F)) To explicitly disable CGO.

kokolaki (Thu, 01 Oct 2020 12:45:05 GMT):
if run the write your first application and other tutorials from https://hyperledger-fabric.readthedocs.io/en/v2.2.0/write_first_app.html it need other names for images, so you can change rename them using docker tag in the appripriate name

kokolaki (Thu, 01 Oct 2020 12:45:05 GMT):
if you run the write your first application and other tutorials from https://hyperledger-fabric.readthedocs.io/en/v2.2.0/write_first_app.html it need other names for images, so you can change rename them using docker tag in the appripriate name

kokolaki (Thu, 01 Oct 2020 12:47:35 GMT):
if you create the application in java then there are need netty-tcnative libraries that are not build for arm. build them from source , but version 2.0.31 works https://netty.io/wiki/forked-tomcat-native.html#wiki-h2-7

kokolaki (Thu, 01 Oct 2020 12:49:22 GMT):
then make the appropriate changes in pom.xml to read these packages from local maven repository

kokolaki (Thu, 01 Oct 2020 12:51:08 GMT):
also for fabric-ca build the binaries you need from source and put then in bin folder with other binary files

MartinYeung (Thu, 01 Oct 2020 13:45:00 GMT):
Has joined the channel.

MartinYeung (Thu, 01 Oct 2020 13:45:01 GMT):
Hi all, i have a problem of the create channel, Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it."

MartinYeung (Thu, 01 Oct 2020 13:45:01 GMT):
Hi all, i have a problem of the create channel, When i type the command - $./network.sh createChannel i have receive the following error message. Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it."

MartinYeung (Thu, 01 Oct 2020 13:45:01 GMT):
Hi all, i have a problem of the create channel, When i type the command - $./network.sh createChannel i have received the following error message. Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it."

MartinYeung (Thu, 01 Oct 2020 13:45:01 GMT):
Hi all, i have a problem of the create channel, ====== Windows 8 latest version of Fabric ====== When i type the command - $./network.sh createChannel i have received the following error message. Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connectex: No connection could be made because the target machine actively refused it."

rijulaggarwal (Thu, 01 Oct 2020 18:57:50 GMT):
Have you done `./network.sh up` before?

fnparr (Fri, 02 Oct 2020 00:25:48 GMT):
Has joined the channel.

fnparr (Fri, 02 Oct 2020 00:25:49 GMT):
Have downloaded latest production fabric-samples on to Mac Catalina 10.15.6. docker 19.3.13 ; downloaded machine specific repo ,bin, config using curl cmd in docs; ./network.sh down OK; ./network.sh up OK; ./network.sh createChannel OK. ; ./network.sh deployCC get the following error message Vendoring Go dependencies at ../asset-transfer-basic/chaincode-go/ ~/git/fabric-samples/asset-transfer-basic/chaincode-go ~/git/fabric-samples/test-network ~/git/fabric-samples/test-network Finished vendoring Go dependencies Using organization 1 + peer lifecycle chaincode package basic.tar.gz --path ../asset-transfer-basic/chaincode-go/ --lang golang --label basic_1.0 + res=0 Chaincode is packaged on peer0.org1 Installing chaincode on peer0.org1... Using organization 1 + peer lifecycle chaincode install basic.tar.gz + res=1 Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed

fnparr (Fri, 02 Oct 2020 00:28:05 GMT):
docker compose version was 1.27.4

fnparr (Fri, 02 Oct 2020 00:30:14 GMT):
code was installed with curl -sSL https://bit.ly/2ysbOFE | bash -s

zhasni (Fri, 02 Oct 2020 10:25:35 GMT):

Screenshot from 2020-10-02 12-24-56.png

zhasni (Fri, 02 Oct 2020 10:26:06 GMT):
Hi, I'm facing an issue trying to Edit channel ACLs (optional) following : https://hyperledger-fabric.readthedocs.io/en/latest/enable_cc_lifecycle.html#application-channel-updates ``` bash-5.0# peer channel update -f config_update_in_envelope.pb -c $CH_NAME -o $ORDERER_CONTAINER:7050 --tls --cafile $TLS_ROOT_CA 2020-10-02 10:14:01.841 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck': error authorizing update: error validating DeltaSet: invalid mod_policy for element [Value] /Channel/Application/ACLs: mod_policy not set ```

zhasni (Fri, 02 Oct 2020 10:26:16 GMT):

Screenshot from 2020-10-02 12-24-56.png

RayanBarbara (Fri, 02 Oct 2020 16:57:33 GMT):
Has joined the channel.

RayanBarbara (Fri, 02 Oct 2020 16:57:33 GMT):
Does anybody has a tutorial about how implementing a front end for a hyperledger fabric smart contract ? I only found two little tutorials about how to do it with Hyperledger Composer, but this tool has been deprecated over one year ago :/ ...

bharatontech (Sat, 03 Oct 2020 06:11:35 GMT):
Has joined the channel.

MohamedRT (Sat, 03 Oct 2020 15:00:37 GMT):
Has joined the channel.

MohamedRT (Sat, 03 Oct 2020 15:00:37 GMT):
Any tutorials about implementing a front end for a hyperledger fabric smart contract ?

Tianxi 4 (Sat, 03 Oct 2020 17:15:51 GMT):
Has joined the channel.

Tianxi 4 (Sat, 03 Oct 2020 17:15:52 GMT):
Hi all, does anyone know how to optimize the performance of Hyperledger Fabric network? For example, upgrade the cpu and memory of peer nodes? Any other solutions?

fnparr (Sat, 03 Oct 2020 19:27:29 GMT):
I see that several other users have reported this error in https://jira.hyperledger.org/browse/FAB-18134 since aug 2020 but no recommendations or workaround posted there

ROHAN_SHROTHRIUM (Sun, 04 Oct 2020 09:55:17 GMT):
Hi all, I have been trying to instantiate a chaincode using fabric v1.4.6 and raft consensus but keep running into this error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error executing build: API error (404): network fixtures_default not found ""` Can someone help me out with this?

AdhamMohamed (Sun, 04 Oct 2020 17:28:35 GMT):
Has joined the channel.

AdhamMohamed (Sun, 04 Oct 2020 17:28:35 GMT):
Hi All, I am unable to download / install the binaries for the hyperledger fabric as per the documetation https://hyperledger-fabric.readthedocs.io/en/release-1.4/prereqs.html#id1 my docker version is 19.03.13, build 4484c46d9d and I am using Windows

AdhamMohamed (Sun, 04 Oct 2020 17:29:04 GMT):
====> hyperledger/fabric-tools:2.2.1 error during connect: Post https://192.168.99.100:2376/v1.40/images/create?fromImage=hyperledger%2Ffabric-tools&tag=2.2.1: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

donnie.stewart (Mon, 05 Oct 2020 01:33:52 GMT):
@BrettLogan Any ideas on how to do this?

ckong (Mon, 05 Oct 2020 07:19:02 GMT):
My orderers seems unable to connect to one another, I see the following error message: `Failed to send StepRequest to 3, because: connection to 3(orderer3.mydomain.com:7050) is in state CONNECTING channel=mysyschannel node=1` But I have already opened port 7050 on all three VMs. Is there something I am missing?

knagware9 (Mon, 05 Oct 2020 09:21:38 GMT):
you can front end in any language and call SDK/REST point to call smart contract

razasikander (Mon, 05 Oct 2020 10:03:21 GMT):
Hello my channel Event hub is getting when trying to record a transaction, the block is getting commited. and im able to query the tx with tx id error :kiss_mm: [2020-10-05T09:33:26.726] [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Error: ChannelEventHub has been shutdown

chintanr11 (Mon, 05 Oct 2020 10:36:04 GMT):
Hi Team, while cloning the Fabric GitHub repo, how do we check the validity of the code that is downloaded - similar to gpg keys for some repositories. Do we have similar checksum based validation for Fabric GitHub repo?

fnparr (Mon, 05 Oct 2020 14:19:28 GMT):
This problem cn be fixed on Mac OS by turning off the gRPC FUSE option in Docker as reported in https://github.com/docker/for-mac/issues/4955

adambach (Tue, 06 Oct 2020 01:53:03 GMT):
Has joined the channel.

adambach (Tue, 06 Oct 2020 02:00:44 GMT):
Trying to install the fabcar java chaincode on hlf 2.2 https://github.com/hyperledger/fabric-samples/tree/master/chaincode/fabcar/java Getting the shadowjar error on installation (running in docker). any ideas? `Welcome to Gradle 6.5.1! Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples For more details see https://docs.gradle.org/6.5.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. `

adambach (Tue, 06 Oct 2020 02:00:44 GMT):
Trying to install the fabcar java chaincode on hlf 2.2 https://github.com/hyperledger/fabric-samples/tree/master/chaincode/fabcar/java Getting the shadowjar error on installation (running in docker). any ideas? ``` Welcome to Gradle 6.5.1! Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples For more details see https://docs.gradle.org/6.5.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. ```

adambach (Tue, 06 Oct 2020 02:00:44 GMT):
Trying to install the fabcar java chaincode on hlf 2.2 https://github.com/hyperledger/fabric-samples/tree/master/chaincode/fabcar/java Getting the shadowjar error on installation (running in docker). any ideas? ``` Welcome to Gradle 6.5.1! Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples For more details see https://docs.gradle.org/6.5.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: Task 'shadowJar' not found in root project 'fabcar'. ```

toasterbath255 (Tue, 06 Oct 2020 05:05:44 GMT):
Has joined the channel.

toasterbath255 (Tue, 06 Oct 2020 05:07:59 GMT):
Hi it looks like Hyperledger Fabric 1.4 is not able to build now.

toasterbath255 (Tue, 06 Oct 2020 05:07:59 GMT):
```

toasterbath255 (Tue, 06 Oct 2020 05:07:59 GMT):
``` $ git clone git://github.com/hyperledger/fabric.git $ git checkout v1.4.9 $ make docker ... Err:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages Hash Sum mismatch Hashes of expected file: - Filesize:2102740 [weak] - SHA256:cceff4897bdb2ace31485a14ec510dad9f9452abc1e856e041b47383758ddab8 - SHA1:81f5ff5059e4e47d8c083cf8bc0534a2c18b1ff2 [weak] - MD5Sum:0bae54bad87874251f6333f3ea119269 [weak] Hashes of received file: - SHA256:31ab5edced684988541a2b51958eb98322f1d98dc2f8c9244134de6170436a6b - SHA1:8f8572a8f795e45c479000c74d285ee7cd390118 [weak] - MD5Sum:b9a12eb2488810be2fd327b8b5acc17d [weak] - Filesize:2102740 [weak] Last modification reported: Tue, 06 Oct 2020 00:55:22 +0000 Release file created at: Tue, 06 Oct 2020 04:32:30 +0000 Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [220 kB] Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB] Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB] Fetched 21.1 MB in 11s (1,861 kB/s) Reading package lists... E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/main/binary-amd64/by-hash/SHA256/6c77861403dedb0b715afeda93d8142926fa08806ccf22c1ce61e27c1703dcfc Hash Sum mismatch Hashes of expected file: - Filesize:1692729 [weak] - SHA256:6c77861403dedb0b715afeda93d8142926fa08806ccf22c1ce61e27c1703dcfc - SHA1:a73aaa7f4609a52fac8791ee287ac6ea3b81ec5a [weak] - MD5Sum:279f6f80f922961e156c205dcdfaeb84 [weak] Hashes of received file: - SHA256:fb32cee983b4b63b647dcf8cf9f6d53aa8043cc3e2f82e0d88337f96fa2c9983 - SHA1:49232e83bfb6b99969db67bf5b287dce0b1f1215 [weak] - MD5Sum:4864d25c1c525fb00285adccfd83a32f [weak] - Filesize:1692729 [weak] Last modification reported: Mon, 05 Oct 2020 17:14:00 +0000 Release file created at: Tue, 06 Oct 2020 04:31:34 +0000 E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/binary-amd64/by-hash/SHA256/cceff4897bdb2ace31485a14ec510dad9f9452abc1e856e041b47383758ddab8 Hash Sum mismatch Hashes of expected file: - Filesize:2102740 [weak] - SHA256:cceff4897bdb2ace31485a14ec510dad9f9452abc1e856e041b47383758ddab8 - SHA1:81f5ff5059e4e47d8c083cf8bc0534a2c18b1ff2 [weak] - MD5Sum:0bae54bad87874251f6333f3ea119269 [weak] Hashes of received file: - SHA256:31ab5edced684988541a2b51958eb98322f1d98dc2f8c9244134de6170436a6b - SHA1:8f8572a8f795e45c479000c74d285ee7cd390118 [weak] - MD5Sum:b9a12eb2488810be2fd327b8b5acc17d [weak] - Filesize:2102740 [weak] Last modification reported: Tue, 06 Oct 2020 00:55:22 +0000 Release file created at: Tue, 06 Oct 2020 04:32:30 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead. The command '/bin/sh -c apt-get update && apt-get install -y jq' returned a non-zero code: 100 make: *** [Makefile:301: .build/image/tools/.dummy-amd64-1.4.9-snapshot-da55272a7] Error 100 ```

toasterbath255 (Tue, 06 Oct 2020 05:10:16 GMT):
It looks like HL 1.4 is not able to build now, any workarounds? I could build successfully last week.

toasterbath255 (Tue, 06 Oct 2020 05:17:56 GMT):
I downloaded and checked that ubuntu dist, and checked sha256 hash, ``` 31ab5edced684988541a2b51958eb98322f1d98dc2f8c9244134de6170436a6b ``` which matches to 'Hashes of received file:' so maybe expected hash is incorrect?

csy 6 (Tue, 06 Oct 2020 06:05:46 GMT):
Has joined the channel.

csy 6 (Tue, 06 Oct 2020 06:05:46 GMT):
Nice to meet you. I'm a newbie in Hyperledger fabric While I was studying the Hyperledger Fabric, I had a question. Can there be errors between peers that determine that the transaction is invalid because the world state and the block chain are inconsistent? Isn't there a problem if these errors occur frequently?

davidkel (Tue, 06 Oct 2020 06:50:51 GMT):
That doesn't look like a problem with fabric, it looks like some issue with your ubuntu environment trying to get someone from the ubuntu repos. Maybe doing a `sudo apt update` would refresh your repo cache might help ?

davidkel (Tue, 06 Oct 2020 06:50:51 GMT):
That doesn't look like a problem with fabric, it looks like some issue with your ubuntu environment trying to get something from the ubuntu repos. Maybe doing a `sudo apt update` would refresh your repo cache might help ?

ckong (Tue, 06 Oct 2020 08:19:56 GMT):
I seem to have a problem with the Fabric Gateway connecting me to the wrong IP address, when I try to discover my orderers and peers. The full question can be found at https://stackoverflow.com/questions/64221892/dns-resolver-giving-wrong-ip-address-when-running-hyperledger-fabric-gateway. I would really appreciate if anyone could look at it and tell me what is happening!

ckong (Tue, 06 Oct 2020 18:06:00 GMT):
What does the error message "No targets provided" mean in the following context? ```2020-10-06T17:58:22.353Z - error: [BlockEventSource]: Failed to start event service message=No targets provided, stack=Error: No targets provided at EventService.setTargets (/root/nodejs/node_modules/fabric-common/lib/EventService.js:113:10) at EventServiceManager.newEventService (/root/nodejs/node_modules/fabric-network/lib/impl/event/eventservicemanager.js:70:22) at EventServiceManager.newDefaultEventService (/root/nodejs/node_modules/fabric-network/lib/impl/event/eventservicemanager.js:51:21) at BlockEventSource.start (/root/nodejs/node_modules/fabric-network/lib/impl/event/blockeventsource.js:59:58) at BlockEventSource.addBlockListener (/root/nodejs/node_modules/fabric-network/lib/impl/event/blockeventsource.js:41:20) at IsolatedBlockListenerSession.start (/root/nodejs/node_modules/fabric-network/lib/impl/event/isolatedblocklistenersession.js:15:32) at Object.addListener (/root/nodejs/node_modules/fabric-network/lib/impl/event/listenersession.js:14:23) at process._tickCallback (internal/process/next_tick.js:68:7) ```

toasterbath255 (Tue, 06 Oct 2020 23:31:01 GMT):
idk, I am building Hyperledger Fabric on Archlinux. Maybe something with dockerfile messed up?

toasterbath255 (Tue, 06 Oct 2020 23:31:01 GMT):
idk, I am building Hyperledger Fabric docker image on Archlinux. Maybe something with dockerfile messed up?

toasterbath255 (Tue, 06 Oct 2020 23:38:49 GMT):
Anyway, I can build without any errors this morning. So I guess Ubuntu package is updated and it's related to mirror updating things, thx

ygnr (Wed, 07 Oct 2020 00:13:31 GMT):

Clipboard - October 7, 2020 11:13 AM

ygnr (Wed, 07 Oct 2020 00:13:37 GMT):
When we run a qualys report on Azure container registry with hyperledger docker images, there are many security issues found for Hyperledger docker images, is there an remediation for this? It shows medium and High severity. Is Hyperledger looking to fix these issues?

ygnr (Wed, 07 Oct 2020 00:13:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mCiF8TzyaLAqD4LgE) When we run a qualys report on Azure container registry with hyperledger docker images, there are many security issues found for Hyperledger docker images, is there remediation for this? It shows medium and High severity. Is Hyperledger looking to fix these issues?

ygnr (Wed, 07 Oct 2020 00:14:54 GMT):
When we run a qualys report on Azure container registry with hyperledger docker images, there are many security issues found for Hyperledger docker images, is there remediation for this? It shows medium and High severity. Is Hyperledger looking to fix these issues?

ygnr (Wed, 07 Oct 2020 00:15:30 GMT):

Docker Image Security

bestbeforetoday (Wed, 07 Oct 2020 08:27:29 GMT):
It means that no peers were specified when starting the event service. Which in this case means that there are no peers at all in your channel, as far as the client is aware

ckong (Wed, 07 Oct 2020 08:29:01 GMT):
But when I bash into the peer and run `peer channel list`, I am able to see the channels I created.

bestbeforetoday (Wed, 07 Oct 2020 08:33:46 GMT):
For some reason the client is not aware of those peers. You can see in your stack trace that `EventServiceManager.newDefaultEventService` is being called. This finds peers for eventing by (1) Using all peers in the same organization (MSP ID) as the client identity; and (2) If no org peers are found, using all network peers. Your error only occurs if no peers are identified, which means the client does not know about any peers associated with this channel

bestbeforetoday (Wed, 07 Oct 2020 08:36:07 GMT):
Are you using discovery? If not, the client only knows about peers listed in your connection profile. If you are using discovery and the channel does have peers, perhaps there has been some error retrieving that discovery information. There might be something in client-side or server-side logs

ckong (Wed, 07 Oct 2020 09:07:32 GMT):
My FABRIC_LOGGING_SPEC is currently set to INFO. What is the level I should specify to view debug, but minus the gossip (and whatever other services that produce a lot of output)?

ckong (Wed, 07 Oct 2020 09:13:53 GMT):
Never mind I've found my answer in the documentation, will try FABRIC_LOGGING_SPEC=info:grpc=debug

curiousdude (Wed, 07 Oct 2020 11:34:49 GMT):
which mailing list? I am having the same error

dcof (Wed, 07 Oct 2020 12:01:52 GMT):
Hi, I'm currently working wht Hyperledger 1.4 and messing around with the Java SDK. I'm able to create a channel via the SDK and I'm able to join a set of peers of the org which creates the channel. However, I did not find a SDK function which allows me to join peers from different orgs to the before created channel. I'm missing the fetch and join command basically. Can anyone point me in the direction where I should look for this or how this is done?

ckong (Wed, 07 Oct 2020 13:55:22 GMT):
Does anyone know if I can revert to a previous version of chaincode (**upgrade** to a previous version)?

braduf (Wed, 07 Oct 2020 18:44:50 GMT):
Hi all, I have always used the mocks in shimtest to unit test my chaincode in Go. But I just noticed the following comment in the package: ``` // Deprecated: ShimTest will be removed in a future release. // Future development should make use of the ChaincodeStub Interface // for generating mocks ``` Does this mean the chaincode packages will not include any mocks anymore in the future? And does anyone know the reason or the problems with the mocks in shimtest because of which they will be deprecated? Just to not repeat the same in my own mocks of the ChaincodeStubInterface... Thanks a lot!

mdhossain1 (Thu, 08 Oct 2020 02:36:53 GMT):
Has joined the channel.

mdhossain1 (Thu, 08 Oct 2020 02:36:53 GMT):
how can i solve this problem -->Fatal error when initializing core config : FABRIC_CFG_PATH /home/golap/Desktop/demo/../config/ does not exist

lakshyakumar (Thu, 08 Oct 2020 03:48:23 GMT):

no raft leader.PNG

lakshyakumar (Thu, 08 Oct 2020 03:49:07 GMT):
Has joined the channel.

lakshyakumar (Thu, 08 Oct 2020 03:49:08 GMT):
Hi, I am trying to add an orderer to a network on raft consensus. I want to add atleast two orderers to keep the number of the orderer odd, after adding the tls for one orderer it is showing the error when trying to update the config for the second orderer. How much Time it takes to elect a leader

ckong (Thu, 08 Oct 2020 07:45:20 GMT):
When I run the command `discover config --configFile conf.yaml --channel mychannel --server peer1.org1.mycompany.com:7051` I get the error message `failed connecting to peer1.org1.mycompany.com:7051: failed connecting to discovery service: failed to create new connection: context deadline exceeded`. However I checked my peer and see that both `CORE_PEER_ADDRESS` and `CORE_PEER_GOSSIP_EXTERNALENDPOINT` are already set to the value `peer1.org1.mycompany.com:7051`. I'm not sure how to proceed with the troubleshooting from here. Can anyone guide me on what I should look for in where?

sanjaysb (Thu, 08 Oct 2020 07:46:25 GMT):
Hi @mdhossain1 the error says the directory does not exist. can you check if you can navigate to the directory?

athulramesh (Thu, 08 Oct 2020 09:07:40 GMT):
Has joined the channel.

abhishek.medhane (Thu, 08 Oct 2020 11:09:26 GMT):
Has joined the channel.

ginspctw (Thu, 08 Oct 2020 11:16:17 GMT):
Hi, I am trying to approve my chaincode using Hyperledger fabric2.0 peer lifecycle chaincode approveformyorg , but I am getting an error "Error: timed out waiting for txid on all peers " . I checked the connection between the peer and the orderer. Its all working fine and I don´t see any information in the logs also.

GioG12 (Thu, 08 Oct 2020 11:53:13 GMT):
Hello, when I submit transaction I get this error in client [Proposal]: send[user] - no targets are connected and in Peer this one - TLS handshake failed with error EOF server=PeerServer remoteaddress=212.x.x.x. It works on localhost but not on remote server. Can anyone help me?

bhuwanadhikari (Thu, 08 Oct 2020 13:00:35 GMT):
Hello, I modified the configs and .sh files for a custom 4-org network. After I did this and deployed asset-transfer-basic (javascript) chaincode gives the following problem: Initialization was successful ``GetAllAssets`` returned empty array but had to be a list of assets ``TransferAsset`` returned the following error: ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: The asset asset6 does not exist" ``` What is causing this problem? Please help me..

silveraid (Thu, 08 Oct 2020 18:56:09 GMT):
Hi, I am trying to figure out what would be the process to join peers to an existing network but without following the regular peer join process, but with copying the ledger folder over for example.

silveraid (Thu, 08 Oct 2020 18:57:51 GMT):
Also trying to figure out what these folder are for in the ledgerData folder on the peer, it does not seems like that there is any documentation available about this: drwxr-xr-x 2 peer peer 4096 Oct 8 01:50 bookkeeper drwxr-xr-x 4 peer peer 4096 Oct 7 14:23 chains drwxr-xr-x 2 peer peer 4096 Oct 7 13:58 configHistory drwxr-xr-x 2 peer peer 4096 Oct 7 13:58 fileLock drwxr-xr-x 2 peer peer 4096 Oct 8 02:21 historyLeveldb drwxr-xr-x 2 peer peer 4096 Oct 7 13:58 ledgerProvider drwxr-xr-x 2 peer peer 126976 Oct 8 13:05 pvtdataStore

silveraid (Thu, 08 Oct 2020 19:12:06 GMT):
Maybe I should just copy over the entire ledgerData folder :thinking_face:

SasinduFdo (Thu, 08 Oct 2020 19:18:14 GMT):
Has joined the channel.

SasinduFdo (Thu, 08 Oct 2020 19:18:15 GMT):
can someone help me with building a voting application ?

ckong (Thu, 08 Oct 2020 20:06:59 GMT):
I have three virtual machines, each containing one orderer and one peer. When I try to run `peer channel create...` on any one of the peers I get an error message `Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader`. When I try to follow the orderer log I see that it is stuck in a loop of start new election --> becomes pre-candidate -> received MsgPreVoteResp -> sent MsgPreVote request to 2 -> sent MsgPreVote request to 3 Am I right in thinking that my orderers are not able to communicate with one another?

silveraid (Thu, 08 Oct 2020 20:16:16 GMT):
Yes, I think you are right. The RAFT election does not succeed. There is something going on with the orderers.

ckong (Thu, 08 Oct 2020 20:17:11 GMT):
Are there any ports that I need to open to ensure that my orderers can communicate?

silveraid (Thu, 08 Oct 2020 22:29:02 GMT):
Yes, the orderers only talk to each other using the RAFT port. You either configure this port via environment variable (ORDERER_GENERAL_CLUSTER_LISTENADDRESS) or through the configuration file.

silveraid (Thu, 08 Oct 2020 22:29:41 GMT):
Here is an example how I configured it in one of the networks: ORDERER_GENERAL_CLUSTER_SENDBUFFERSIZE: "10" ORDERER_GENERAL_CLUSTER_LISTENADDRESS: "0.0.0.0" ORDERER_GENERAL_CLUSTER_LISTENPORT: "8050" ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE: "/opt/fabric/orderer/raft/client/cert.pem" ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY: "/opt/fabric/orderer/raft/client/key.pem" ORDERER_GENERAL_CLUSTER_SERVERCERTIFICATE: "/opt/fabric/orderer/raft/server/cert.pem" ORDERER_GENERAL_CLUSTER_SERVERPRIVATEKEY: "/opt/fabric/orderer/raft/server/key.pem" ORDERER_GENERAL_CLUSTER_ROOTCAS: "/opt/fabric/orderer/raft/ca_cert.pem" ORDERER_CONSENSUS_WALDIR: "/opt/fabric/orderer/raft/consensus/wal" ORDERER_CONSENSUS_SNAPDIR: "/opt/fabric/orderer/raft/consensus/snap"

silveraid (Thu, 08 Oct 2020 22:31:59 GMT):
The server and client cert is actually the same, make sure that the certificate has everything set to be able to do both. Root ca should be set to the ca certificate which signed the server certificate.

CyrilLeung (Fri, 09 Oct 2020 02:09:24 GMT):
Has left the channel.

ckong (Fri, 09 Oct 2020 10:53:23 GMT):
So it turns out that my orderers couldn't communicate because there were some ports in my Docker swarm nodes that I didn't open. This tutorial helped me - https://www.digitalocean.com/community/tutorials/how-to-configure-the-linux-firewall-for-docker-swarm-on-centos-7

ckong (Fri, 09 Oct 2020 11:38:19 GMT):
Please allow me to follow up on my previous question. Since then I have set up another network from scratch, with the same configuration - Docker swarm of three nodes each hosting an orderer and a peer with accompanying CouchDB and client. I have created two channels, and I have been able to populate both ledgers with some data. However, I still face the same problem as above. The first channel I created does not have this issue; I am able to do both `gateway.getNetwork()` and `network.addBlockListener()` and my listener works as intended. However, I still face this error with the second channel created. How is it that the first channel is alright but the second is not? I am not sure where to start looking. Would you have any insights on this?

dyyu (Sat, 10 Oct 2020 01:54:46 GMT):
Has joined the channel.

dyyu (Sat, 10 Oct 2020 01:54:51 GMT):
Hi, I want to apply Fabric in managing the transactions between warehouse management company and goods owner. Let the goods owner query the state of his goods easily. I wonder whether Fabric can solve the use case.

lzev (Sat, 10 Oct 2020 11:28:39 GMT):
Has joined the channel.

Adhavpavan (Sat, 10 Oct 2020 16:08:08 GMT):
@ckong can you show conf.yaml file?

Adhavpavan (Sat, 10 Oct 2020 16:17:28 GMT):
Generally it happen very fast. If orderers are not able to communicates with each other, we get mentioned error.

ckong (Mon, 12 Oct 2020 03:20:37 GMT):
```[centos@centos1 isprint]$ cat conf.yaml version: 0 tlsconfig: certpath: "" keypath: "" peercacertpath: /home/centos/fabric/isprint/crypto-config/peerOrganizations/org1.isprint.com/peers/peer1.org1.isprint.com/tls/ca.crt timeout: 0s signerconfig: mspid: Org1MSP identitypath: /home/centos/fabric/isprint/crypto-config/peerOrganizations/org1.isprint.com/users/User1@org1.isprint.com/msp/signcerts/User1@org1.isprint.com-cert.pem keypath: /home/centos/fabric/isprint/crypto-config/peerOrganizations/org1.isprint.com/users/User1@org1.isprint.com/msp/keystore/bb57e1bb2acef0d0a2ad509fdf98953bf4bc6086efaf146d72f892963ebb8f31_sk [centos@centos1 isprint]$```

bhuwanadhikari (Mon, 12 Oct 2020 03:26:49 GMT):
What causes this error: `Error: failed to validate peer connection parameters: number of peer addresses (1) does not match the number of TLS root cert files (4) `?

bhuwanadhikari (Mon, 12 Oct 2020 03:26:49 GMT):
What causes this error: ``Error: failed to validate peer connection parameters: number of peer addresses (1) does not match the number of TLS root cert files (4) ``?

bhuwanadhikari (Mon, 12 Oct 2020 03:26:49 GMT):
What causes this error: ```Error: failed to validate peer connection parameters: number of peer addresses (1) does not match the number of TLS root cert files (4) ```?

Adhavpavan (Mon, 12 Oct 2020 06:14:58 GMT):
@ckong Can you please try following 1) Peer membership query: discover --configFile conf.yaml peers --channel mychannel --server localhost:7051 2) Configuration query discover --configFile conf.yaml config --channel mychannel --server localhost:7051 3) Endorsers query discover --configFile conf.yaml endorsers --channel mychannel --server localhost:7051 --chaincode fabcar mention hostname as localhost. Let me know if still its not working, It perfectly working for me. Thank you

ckong (Mon, 12 Oct 2020 06:17:07 GMT):
Yes! localhost:7051 worked! But why is this so? I followed examples online and they all list peer1...:7051

Adhavpavan (Mon, 12 Oct 2020 06:24:18 GMT):
As per my knowledge, we can not communicate directly with host name like peer0.org1.example.com until we are in same network or that container should use host as network. You can do same query from inside container which is in the same network(driver)

ckong (Mon, 12 Oct 2020 08:01:42 GMT):
I have a question on how to listen to multiple channels using a single js listener file. The question can be found at https://stackoverflow.com/questions/64313807/fabric-how-to-listen-to-multiple-channels-in-a-single-listener, but the gist is that how can I change the `off-chain-data` listener in `fabric-samples` (https://github.com/hyperledger/fabric-samples/blob/master/off_chain_data/blockEventListener.js) from listening to just one channel, to listening to multiple channels.

knagware9 (Mon, 12 Oct 2020 10:11:53 GMT):
one simple way to re-install old chaincode with new version and then upgrade chain code. Second while you have upgraded to newer version and if previous chain code container not deleted I think you can use that container

ckong (Mon, 12 Oct 2020 10:14:37 GMT):
Seems like it is not possible to revert to a specified previous version of a chaincode...

chanioxaris (Mon, 12 Oct 2020 10:34:25 GMT):
Hello, can anyone guide me on how to enable the NodeOUs?

anweiss (Mon, 12 Oct 2020 14:24:14 GMT):
Has joined the channel.

bhuwanadhikari (Tue, 13 Oct 2020 03:54:14 GMT):
Which article should I follow for docker-chaincode dev mode? I couldn't find it in latest docs?

bhuwanadhikari (Tue, 13 Oct 2020 03:54:14 GMT):
Which article should I follow for docker-chaincode dev mode? I couldn't find it in latest docs.

SasinduFdo (Tue, 13 Oct 2020 06:34:11 GMT):
fdo@DESKTOP-I06RB4D:/mnt/c/users/sasindu fdo/desktop/Test project/blockchain-network$ ./createChannel.sh Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded

SasinduFdo (Tue, 13 Oct 2020 06:34:37 GMT):
can someone help me :(

mbwhite (Tue, 13 Oct 2020 07:28:45 GMT):
Can you give us a bit more please about what you're doing? Is this the test-network?

AswathK (Tue, 13 Oct 2020 09:05:05 GMT):
Has joined the channel.

bhuwanadhikari (Tue, 13 Oct 2020 17:41:45 GMT):
Hello, I want to write chaincode in node.js and I want to setup an environment for dev-mode, Which tutorial/docs should I follow? I couldn't find it in latest docs.

binny1024 (Wed, 14 Oct 2020 03:45:08 GMT):
Has joined the channel.

binny1024 (Wed, 14 Oct 2020 03:45:09 GMT):
how to use fabric-ca with fabric-node-sdk?someone who can provide one demo is bigger niuniu...

mbwhite (Wed, 14 Oct 2020 08:32:40 GMT):
Go look at the extension in vscode...

mbwhite (Wed, 14 Oct 2020 08:32:43 GMT):
https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

mbwhite (Wed, 14 Oct 2020 08:33:24 GMT):
what you attempting to do? there are some examples in the the fabric-samples repo that handle enrolling ids etc.

chasecheese (Wed, 14 Oct 2020 08:51:05 GMT):
Hi guys, I'm learning fabric2.0, is there any Message Queue in fabric? When many blocks are created, how to deal with?

mbwhite (Wed, 14 Oct 2020 08:52:20 GMT):
No there's no message queue...

chasecheese (Wed, 14 Oct 2020 08:57:06 GMT):
Thanks. When a new block arrives, but old block is being processed, how to deal with the new block?

mbwhite (Wed, 14 Oct 2020 08:57:56 GMT):
Not something you need to worry about with Fabric

chasecheese (Wed, 14 Oct 2020 09:07:39 GMT):
emmm, I'm trying to learn some principles of fabric, could you tell me how I can learn somgthing about how fabric deal with the problem I'm asking? :smile:

chasecheese (Wed, 14 Oct 2020 09:11:03 GMT):
Something like Kafka? It seems like fabric has already abdandon Kafka, what is the alternatives?

chasecheese (Wed, 14 Oct 2020 09:11:53 GMT):
Something like Kafka? It seems like fabric has already abdandon Kafka, what are the alternatives?:smiley:

mbwhite (Wed, 14 Oct 2020 09:13:19 GMT):
I'd start with https://hyperledger-fabric.readthedocs.io/en/latest/developapps/scenario.html

mbwhite (Wed, 14 Oct 2020 09:13:29 GMT):
or start with the vscode extenion's tutorials

mbwhite (Wed, 14 Oct 2020 09:14:08 GMT):
Kafka was used as part of the consensus system... it was replaced with other forms...

mbwhite (Wed, 14 Oct 2020 09:14:22 GMT):
so there's no really need to use messaging for Fabric's core function.

chasecheese (Wed, 14 Oct 2020 09:18:45 GMT):
Thanks a lot

SasinduFdo (Wed, 14 Oct 2020 11:59:00 GMT):
Can someone please refer me to a single org network tutorial or a doc? Thank you

mbwhite (Wed, 14 Oct 2020 12:33:14 GMT):
If you're just getting started with Fabric - try the VSCode extension

jugma (Wed, 14 Oct 2020 13:21:48 GMT):
Has joined the channel.

jugma (Wed, 14 Oct 2020 13:21:48 GMT):
I am trying to run the off_chain_data in the fabric-samples. I get the following error when I run startFabric.sh in the off_chain_data folder. Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-d128c9f0024fc2836066f8139a12987f41b33f6acab8c1a036f538c8ef13b405-aae949f8a54b37fbfa55174281557c815479a3779950ee11f097ab2f78d4caae/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed

dporto (Wed, 14 Oct 2020 15:31:06 GMT):
Hi there, Im running experiments with fabric and in my scenario I need to redeploy the a clean network a few times. I was trying to backup the containers but noticed that at the peers the chaincode has a different name for repository. I wish to avoid the external download of these containers by caching (saving) them. I wonder from where is the chaincode container for the peer is being downloaded and why they are different for each peer: dev-peer1.org2.example.com-fabcar-v0-80b68d3a5d35507df5aff4085d6f72e7e86a1cb844dde4502427e096b54d936c latest 8989419e438a 42 minutes ago 162MB hyperledger/fabric-peer a1e3874f338b 18 months ago 178MB at other nodes: hyperledger/fabric-peer a1e3874f338b 18 months ago 178MB dev-peer0.org2.example.com-fabcar-v0-081009e928de459e6fd3500fb528fd106697ccf5584276807a698a3b89145fb8 latest b83087896a37 25 minutes ago 162MB dev-peer1.org1.example.com-fabcar-v0-28d5a4cc491c59f4cd17216fc09656578cd236389ac6d632e3eb384a9c84e883 latest 35b1cf23ce2c 43 minutes ago 162MB dev-peer0.org1.example.com-fabcar-v0-b76a466fdafbf2397aadbe1fc9774e9671f1e1277b58c5e6b38eb755927a8491 latest bb3d06846f62 43 minutes ago 162MB

dporto (Wed, 14 Oct 2020 15:31:24 GMT):
are these dev-peers containers created locally based on the fabric-peer container ??

mbwhite (Wed, 14 Oct 2020 15:54:45 GMT):
Almost @dporto , the images are created locally for each chaincode...

mbwhite (Wed, 14 Oct 2020 15:54:54 GMT):
there are some base images that they are based from.

dporto (Wed, 14 Oct 2020 16:22:24 GMT):
thank you @mbwhite

mbwhite (Wed, 14 Oct 2020 16:22:54 GMT):
can sometimes trip you up.. if you've made a change to chaincode but the peer is using the old image.

ckong (Wed, 14 Oct 2020 16:37:08 GMT):
If I have to deploy three peer nodes on one single VM, should the ports for `CORE_PEER_ADDRESS` and `CORE_PEER_GOSSIP_EXTERNALENDPOINT` be the same for all three, or different?

dporto (Wed, 14 Oct 2020 17:05:47 GMT):
yeah, i got it, I will remove all dev-* but keep the base ones

sandhya-rayaprolu (Wed, 14 Oct 2020 19:10:53 GMT):
Has joined the channel.

sandhya-rayaprolu (Wed, 14 Oct 2020 19:10:53 GMT):
What would we need to do to develop a NIST/FIPS compliant application using Hyperledger Fabric? I came across two alternatives 1. Delegate cryptographic operations to a Hardware Security Module as per https://hyperledger-fabric.readthedocs.io/en/release-2.0/hsm.html 2. Use Go+BoringCrypto instead of Go Has anyone used either of these approaches? Is one better than the other? Are there any other ways? Any details on what steps need to be followed for 2 would be very helpful

pikvik (Wed, 14 Oct 2020 20:55:53 GMT):
Hello All , I require to deploy Hlf 2.2 version production on kubernetes ( AKS ) can someone help me with pointing to the update resource .

BrettLogan (Thu, 15 Oct 2020 00:48:49 GMT):
They should be different

BrettLogan (Thu, 15 Oct 2020 00:49:20 GMT):
Take a look at the official Hyperledger Lab for doing this in production on Kube: https://github.com/hyperledger-labs/blockchain-automation-framework

BrettLogan (Thu, 15 Oct 2020 00:50:19 GMT):
Automation tools for deploying production networks on Azure are included

BrettLogan (Thu, 15 Oct 2020 00:51:41 GMT):
Take a look at this thread. The latest version of Docker has a bug in it (which is already patched in the next upcoming release). You need to disable gRPC Fuse Filesharing in your docker settings: https://lists.hyperledger.org/g/fabric/topic/77229808#9108

BrettLogan (Thu, 15 Oct 2020 00:53:24 GMT):
Today we use a consensus protocol called RAFT in our orderer nodes. This node creates the definitive order for the blocks in the chain, no MQ required as Matt said.

BrettLogan (Thu, 15 Oct 2020 00:54:18 GMT):
I just merged the updates a few days ago let me find them...

BrettLogan (Thu, 15 Oct 2020 00:57:54 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/peer-chaincode-devmode.html

BrettLogan (Thu, 15 Oct 2020 00:59:47 GMT):
What commad are you running, you passed in only one peer address but 4 certs. The length of these two parameters must match

bhuwanadhikari (Thu, 15 Oct 2020 03:05:55 GMT):
I wasn't passing --tlscertificates, it's what caused the problem.

ckong (Thu, 15 Oct 2020 04:19:44 GMT):
So I tried changing the addresses but I am now experiencing conflicts

ckong (Thu, 15 Oct 2020 04:21:17 GMT):
```peer1: - CORE_PEER_ID=peer1.org1.isprint.com - CORE_PEER_ADDRESS=peer1.org1.isprint.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer2.org1.isprint.com:8051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.isprint.com:7051 peer2: - CORE_PEER_ID=peer2.org1.isprint.com - CORE_PEER_ADDRESS=peer2.org1.isprint.com:8051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.isprint.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2.org1.isprint.com:8051 peer3: - CORE_PEER_ID=peer3.org1.isprint.com - CORE_PEER_ADDRESS=peer3.org1.isprint.com:9051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.isprint.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer3.org1.isprint.com:9051 ```

sanjaysb (Thu, 15 Oct 2020 04:59:57 GMT):
Which commit of the fabric-samples repo should I use to test the explore the functionalities of fabric v2.2. There is no 2.2 tag in that repo and the latest commit in the master branch does not sync up with the documentation provided for v2.2 in readthedocs site.

sanjaysb (Thu, 15 Oct 2020 05:32:43 GMT):
The scrip which pulls in the repo tries to checkout to v2.2.1. But there is no such tag

sanjaysb (Thu, 15 Oct 2020 05:32:43 GMT):
The script as per the docs which pulls in the repo found here ( https://bit.ly/2ysbOFE ) tries to checkout to v2.2.1. But there is no such tag

tututt2 (Thu, 15 Oct 2020 05:37:34 GMT):
Has joined the channel.

tututt2 (Thu, 15 Oct 2020 05:37:34 GMT):
I got a error when I write chaincode with "github.com/hyperledger/fabric-contract-api-go/contractapi"` ``` type PaginatedQueryResult struct { Records []asset `json:"records"` FetchedRecordsCount int32 `json:"fetchedRecordsCount"` Bookmark string `json:"bookmark"` Completed bool `json:"completed"`} ``` when the Record is nil, report error: " asset_transfer_ledger chaincode Value did not match schema:\n 1. return.records: Invalid type. Expected: array, given: null", then I update PaginatedQueryResult struct like that: ``` type PaginatedQueryResult struct { Records []asset `json:"records,omitempty" metadata:",optional" ` FetchedRecordsCount int32 `json:"fetchedRecordsCount"` Bookmark string `json:"bookmark"` Completed bool `json:"completed"`} ``` if Records is nil, this is ok, but when Record is not nil, get a error: "Additional property records is not allowed"

ckong (Thu, 15 Oct 2020 06:12:17 GMT):
Or rather, it seems like the gossip service keeps throwing warnings like this: `sendToEndpoint -> WARN 31c Failed obtaining connection for peer3.org1.isprint.com:9051, PKIid:a29ebea2431f862ebbf0be8b478a9f22843254acd05807971f2e1dfac7fe020b reason: context deadline exceeded`

hugebawu (Thu, 15 Oct 2020 07:12:03 GMT):
Has joined the channel.

hugebawu (Thu, 15 Oct 2020 07:12:03 GMT):
dose the newest Fabric version already suppoert PBFT?

lcxlcxlcx5800 (Thu, 15 Oct 2020 07:22:37 GMT):
Has joined the channel.

mbwhite (Thu, 15 Oct 2020 08:17:56 GMT):
the master branch should have the latest samples for 2.2 as for the tag... @dave.enyeart might be best placed here

Kalaiyarasi (Thu, 15 Oct 2020 11:19:52 GMT):
Has joined the channel.

Kalaiyarasi (Thu, 15 Oct 2020 11:19:52 GMT):
Hi I am trying to get committers and endorsers in a channel using getCommitters(mspid) and getEndorsers(mspid) of channel Class in fabric-sdk version 2.2, I am getting an empty [] for getCommitters()..I had set the service discovery{ enabled : true} in gateway also

SasinduFdo (Thu, 15 Oct 2020 12:29:42 GMT):
can i register multiple users using the fabcar registerUser.js ? i can i assign different roles for each user? can i perform these two tasks using the rest api ?

jTheSeagull (Thu, 15 Oct 2020 18:45:11 GMT):
Has joined the channel.

jTheSeagull (Thu, 15 Oct 2020 18:45:12 GMT):
HI. I am new here. Can i ask non technical question here ? I am about to choose my master thesis i was wondering to know what related topic to hyperledger (probably fabric ) would be good for research? I am looking for general advise and idea from experts.

jTheSeagull (Thu, 15 Oct 2020 18:45:12 GMT):
HI. I am new here. Can i ask non technical question here ? I am about to choose my master thesis i was wondering to know what related topic to hyperledger fabric would be good for research? I am looking for general advise and idea from experts.

tennenjl (Thu, 15 Oct 2020 19:11:16 GMT):
Hi there, We are trying to run Fabric using Podman (podman-machine env), when we are seeing the error `Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint`. I was wondering if it was related to differences with Podman and Docker related to DIND? Thanks for any ideas!

mbwhite (Thu, 15 Oct 2020 19:27:21 GMT):
The peer will create a new docker image to host the chaincode. this is orchestrated by the peer - so with a different container system suspect this could be the issue... Worth looking at the chaincode builders in v2. that would give some flexability here.

hp203 (Thu, 15 Oct 2020 20:57:38 GMT):
Has joined the channel.

hp203 (Thu, 15 Oct 2020 20:57:39 GMT):
Hi there. I have a problem with my local HLF test network. I have a network in docker-compose containing one CA, one orderer and one peer (plan to add more peers to it, but for now one is enough). Basically, the problem is because then i m trying to send join proposal from peer to orderer, orderer rejects it saying that certificate is signed by unknown authority orderer.pb.com_1 | 2020-10-15 20:44:23.648 UTC [policies] SignatureSetToValidIdentities -> WARN 4af invalid identity: certificate subject=CN=peer0.org1.example.com,OU=COP,L=San Francisco,ST=California,C=US serialnumber=268337738708423250738667250199689187829 error="the supplied identity is not valid: x509: certificate signed by unknown authority" I have no idea where this certificate could come from because there is no *.example.com things in my network (also double-checked configs, also nothing similar). Also when i check the those certificate i can see that it's issuer is "ca.org1.example.com, org1.example.com". I have no clue where this certificate was generated, so pls can someone help me with this?

hp203 (Thu, 15 Oct 2020 20:57:39 GMT):
Hi there. I have a problem with my local HLF test network. I have a network in docker-compose containing one CA, one orderer and one peer (plan to add more peers to it, but for now one is enough). Basically, the problem is because then i m trying to send join proposal from peer to orderer, orderer rejects it saying that certificate is signed by unknown authority ```orderer.pb.com_1 | 2020-10-15 20:44:23.648 UTC [policies] SignatureSetToValidIdentities -> WARN 4af invalid identity: certificate subject=CN=peer0.org1.example.com,OU=COP,L=San Francisco,ST=California,C=US serialnumber=268337738708423250738667250199689187829 error="the supplied identity is not valid: x509: certificate signed by unknown authority"``` I have no idea where this certificate could come from because there is no *.example.com things in my network (also double-checked configs, also nothing similar). Also when i check the those certificate i can see that it's issuer is "ca.org1.example.com, org1.example.com". I have no clue where this certificate was generated, so pls can someone help me with this?

hp203 (Thu, 15 Oct 2020 20:57:39 GMT):
Hi there. I have a problem with my local HLF test network. I have a network in docker-compose containing one CA, one orderer and one peer (plan to add more peers to it, but for now one is enough). Basically, the problem is because then i m trying to send join proposal from peer to orderer, orderer rejects it saying that certificate is signed by unknown authority ```orderer.pb.com_1 | 2020-10-15 20:44:23.648 UTC [policies] SignatureSetToValidIdentities -> WARN 4af invalid identity: certificate subject=CN=peer0.org1.example.com,OU=COP,L=San Francisco,ST=California,C=US serialnumber=268337738708423250738667250199689187829 error="the supplied identity is not valid: x509: certificate signed by unknown authority"``` I have no idea where this certificate could come from because there is no *.example.com things in my network (also double-checked configs, also nothing similar). Also when i check those certificate i can see that it's issuer is "ca.org1.example.com, org1.example.com". I have no clue where this certificate was generated, so pls can someone help me with

hp203 (Thu, 15 Oct 2020 20:57:39 GMT):
Hi there. I have a problem with my local HLF test network. I have a network in docker-compose containing one CA, one orderer and one peer (plan to add more peers to it, but for now one is enough). Basically, the problem is because then i m trying to send join proposal from peer to orderer, orderer rejects it saying that certificate is signed by unknown authority ```orderer.pb.com_1 | 2020-10-15 20:44:23.648 UTC [policies] SignatureSetToValidIdentities -> WARN 4af invalid identity: certificate subject=CN=peer0.org1.example.com,OU=COP,L=San Francisco,ST=California,C=US serialnumber=268337738708423250738667250199689187829 error="the supplied identity is not valid: x509: certificate signed by unknown authority"``` I have no idea where this certificate could come from because there is no *.example.com things in my network (also double-checked configs, also nothing similar). Also when i check those certificate i can see that it's issuer is "ca.org1.example.com, org1.example.com". I have no clue where this certificate was generated, so pls can someone help me with it Ping me if need additional info

hp203 (Thu, 15 Oct 2020 20:57:39 GMT):
Hi there. I have a problem with my local HLF test network. I have a network in docker-compose containing one CA, one orderer and one peer (plan to add more peers to it, but for now one is enough). Basically, the problem is because then i m trying to send join proposal from peer to orderer, orderer rejects it saying that certificate is signed by unknown authority ```orderer.pb.com_1 | 2020-10-15 20:44:23.648 UTC [policies] SignatureSetToValidIdentities -> WARN 4af invalid identity: certificate subject=CN=peer0.org1.example.com,OU=COP,L=San Francisco,ST=California,C=US serialnumber=268337738708423250738667250199689187829 error="the supplied identity is not valid: x509: certificate signed by unknown authority"``` I have no idea where this certificate could come from because there is no *.example.com things in my network (also double-checked configs, also nothing similar). Also when i check those certificate i can see that it's issuer is "ca.org1.example.com, org1.example.com". I have no clue where this certificate was generated, so pls can someone help me with it Ping me if need additional info to answer the question

hp203 (Thu, 15 Oct 2020 20:59:39 GMT):
Using latest images for peer, orderer and CA

hp203 (Thu, 15 Oct 2020 21:06:03 GMT):
Also, peer channel join output is ```2020-10-15 20:44:16.288 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-10-15 20:44:16.313 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel ```

zzdxzhangzhi (Fri, 16 Oct 2020 03:24:19 GMT):
Has joined the channel.

zzdxzhangzhi (Fri, 16 Oct 2020 03:32:09 GMT):
what does below error messages means? `2020-10-16 03:00:05.368 UTC [comm.grpc.server] 1 -> INFO 6ab unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.request_deadline=2020-10-16T03:03:05.368Z grpc.peer_address=192.168.176.1:42560 error="identity expired" grpc.code=Unknown grpc.call_duration=326.988µs 2020-10-16 03:00:08.930 UTC [comm.grpc.server] 1 -> INFO 6ac unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2020-10-16T03:00:23.929Z grpc.peer_address=192.168.176.1:42560 grpc.code=OK grpc.call_duration=445.278µs`

zzdxzhangzhi (Fri, 16 Oct 2020 03:36:50 GMT):
Hi,I met a problem that I cannot start the fabric service correctly, the error messages are below: ``` 2020-10-16 03:00:05.368 UTC [comm.grpc.server] 1 -> INFO 6ab unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.request_deadline=2020-10-16T03:03:05.368Z grpc.peer_address=192.168.176.1:42560 error="identity expired" grpc.code=Unknown grpc.call_duration=326.988µs 2020-10-16 03:00:08.930 UTC [comm.grpc.server] 1 -> INFO 6ac unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2020-10-16T03:00:23.929Z grpc.peer_address=192.168.176.1:42560 grpc.code=OK grpc.call_duration=445.278µs ```

zzdxzhangzhi (Fri, 16 Oct 2020 03:38:04 GMT):
Which identity is expired in this case?

bhuwanadhikari (Fri, 16 Oct 2020 04:02:57 GMT):
gave this error while running this command: ```peer channel create -o 127.0.0.1:7050 -c ch1 -f ch1.tx ``` ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'ch1': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 ```

sanjaysb (Fri, 16 Oct 2020 04:14:17 GMT):
The master branch does not work for the test network sample with ca `./network.sh up -ca` Just brings up the node containers and does not bring up the ca containers @dave.enyeart

sanjaysb (Fri, 16 Oct 2020 04:14:17 GMT):
@dave.enyeart The master branch does not work for the test network sample with ca `./network.sh up -ca` Just brings up the node containers and does not bring up the ca containers

sanjaysb (Fri, 16 Oct 2020 04:19:37 GMT):
@dave.enyeart The master branch for fabric samples does not work for the test network sample with ca. `./network.sh up -ca` This command just brings up the node containers and does not bring up the ca containers. The documentation for release 2.2 says it will bring up additional ca containers. I have checked out to the master branch as there is no tag in the samples repo for v2.2

BrettLogan (Fri, 16 Oct 2020 04:19:55 GMT):
Looks like there is a bug in the launch script. If you use `./network.sh up createChannel -ca` and create the channel at launch it will work. We need to open a Jira

BrettLogan (Fri, 16 Oct 2020 04:20:08 GMT):
I just tested this: Looks like there is a bug in the launch script. If you use ./network.sh up createChannel -ca and create the channel at launch it will work. We need to open a Jira

BrettLogan (Fri, 16 Oct 2020 04:20:08 GMT):
I just tested this: Looks like there is a bug in the launch script. If you use `./network.sh up createChannel -ca` and create the channel at launch it will work. We need to open a Jira

sanjaysb (Fri, 16 Oct 2020 04:20:55 GMT):
ok. thanks

sanjaysb (Fri, 16 Oct 2020 04:48:21 GMT):
Hi @BrettLogan, Somehow the network.sh down command is not removing the artifacts and certificates in my local. I think that was the issue. I still have the "organizations/peerOrganizations" directory

sanjaysb (Fri, 16 Oct 2020 04:48:21 GMT):
Hi @BrettLogan, Somehow the network.sh down command is not removing the artifacts and certificates in my local. I think that was the issue. I still have the "organizations/peerOrganizations" directory after I run the command. This means next time I run createChannel command, it does not bring up the nodes

sanjaysb (Fri, 16 Oct 2020 05:03:23 GMT):
If I edit the networkDown function to remove the orderer block, ca and channel artifacts from my local. It works fine.

aim8526 (Fri, 16 Oct 2020 05:34:16 GMT):
Has joined the channel.

aim8526 (Fri, 16 Oct 2020 05:34:16 GMT):
Hi Team, I wanted to know about performance about HLF 2.2, with Node SDK. I had tested with Node and Java SDK at machine having Configration of 64GB RAM, 32 Core CPU. but found *10* TPS for 1 KB for Write transaction, and around *40* TPS for read or Query API. *2* Organizations having *4* peer with couchdb as state db, *2* orderer, 1 channel and 1 chaincode. Is there anything i am missing or is it the highest limit of TPS in HLF network.

aim8526 (Fri, 16 Oct 2020 05:34:23 GMT):
?

sudhasakshi (Fri, 16 Oct 2020 06:06:32 GMT):
Hi

sudhasakshi (Fri, 16 Oct 2020 06:10:33 GMT):
In fabric 2.2 I am able to create and join channel but while getting the channel form fabric-cleint Error: error: [DiscoveryService]: send[mychannel] - Channel:mychannel received discovery error:access denied ******** FAILED to run the application: Error: DiscoveryService: mychannel error: access denied.

sudhasakshi (Fri, 16 Oct 2020 06:11:00 GMT):
my peer logs : C [discovery] processQuery -> WARN 040 got query for channel mychannel from 172.19.0.1:60196 but it isn't eligible: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied

hp203 (Fri, 16 Oct 2020 06:47:22 GMT):
The problem was in bad tls certificates which were passed. Solved it

hp203 (Fri, 16 Oct 2020 06:51:28 GMT):
Hi Team. How can i deploy a custom CC to a channel where i have only one peer? Is it possible? Becoming `ENDORSEMENT_POLICY_FAILURE` error Assuming that the issue was in implicitmeta /channel/application/*endorsement policies i have changed it to `OR()` policy where i've listed all the organizations' members in a form of `OrgA_MSP.member`, `OrgB_MSP.member` and so on but getting the same error. Can someone help me with this?

hp203 (Fri, 16 Oct 2020 06:51:28 GMT):
Hi Team. How can i deploy a custom CC to a channel where i have only one peer? Is it possible? Becoming `ENDORSEMENT_POLICY_FAILURE` error Assuming that the issue was in implicitmeta /channel/application/*endorsement policies i have changed it to `OR()` signature policy where i've listed all the organizations' members in a form of `OrgA_MSP.member`, `OrgB_MSP.member` and so on but getting the same error. Can someone help me with this?

RahulEth (Fri, 16 Oct 2020 07:39:06 GMT):
Hi All, i am hosting my fabric network (1.4.x) using kubernetes. can someone help me to upgrade my network with 2.0. i am using below repository https://github.com/hyfen-nl/PIVT Thanks

SivaramKannan (Fri, 16 Oct 2020 12:54:54 GMT):
Hi Team - question regarding the "Disaster Recovery" of fabric. Say I have lost the whole network, but have backup of orderers and peers following this document - https://docs.google.com/document/d/1dEhUpMcqOYfOngDvSlyXL6NIBuTKmhP5s0fr_--U_OA/edit#. Would I be able to install a new cluster and use the backup data I have. How do we handle a DR scenario with Fabric?

alejoacosta (Fri, 16 Oct 2020 16:33:55 GMT):
Hi Team. We are trying to setup a test network using certificates provided by the organization (i.e., not generated by ```cryptogen``` nor by ```fabric-ca-server```). I have re-created the MSP for peer0, by placing all mentioned certificates and keys in the corresponding folder. When peer0 starts, throughs the following error: ```2020-10-16 14:33:34.269 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.314 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.325 UTC [bccsp_sw] openKeyStore -> DEBU 003 KeyStore opened at [/etc/hyperledger/fabric/msp/keystore]...done 2020-10-16 14:33:34.325 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/fabric/msp/signcerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/fabric/msp/signcerts/peer0.supplier.dlt.ericsson.com.cer 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/fabric/msp/cacerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/fabric/msp/cacerts/root-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/fabric/msp/admincerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/fabric/msp/intermediatecerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00a Inspecting file /etc/hyperledger/fabric/msp/intermediatecerts/intermediate-issuing-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/fabric/msp/tlscacerts 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00c TLS CA certs folder at [/etc/hyperledger/fabric/msp/tlsintermediatecerts] is empty. Skipping. 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/fabric/msp/crls 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00e crls folder not found at [/etc/hyperledger/fabric/msp/crls]. Skipping. [stat /etc/hyperledger/fabric/msp/crls: no such file or directory] 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00f Loading NodeOUs 2020-10-16 14:33:34.326 UTC [msp] newBccspMsp -> DEBU 010 Creating BCCSP-based MSP instance 2020-10-16 14:33:34.326 UTC [msp] New -> DEBU 011 Creating Cache-MSP instance 2020-10-16 14:33:34.326 UTC [msp] loadLocalMSP -> DEBU 012 Created new local MSP 2020-10-16 14:33:34.327 UTC [msp] Setup -> DEBU 013 Setting up MSP instance Org1MSP 2020-10-16 14:33:34.329 UTC [main] InitCmd -> ERRO 014 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Failed importing key with opts [&{true}]: Certificate's public key type not recognized. Supported keys: [ECDSA] ``` It seems that the provided certificates are not supported by Fabric. Is there any suggestion/guideline about the format of certificates to be valid in Fabric?

alejoacosta (Fri, 16 Oct 2020 16:33:55 GMT):
Hi Team. We are trying to setup a test network using certificates provided by the organization (i.e., not generated by `cryptogen` nor by `fabric-ca-server`). I have re-created the MSP for peer0, by placing all mentioned certificates and keys in the corresponding folder. When peer0 starts, throughs the following error: ``` 2020-10-16 14:33:34.269 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.314 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.325 UTC [bccsp_sw] openKeyStore -> DEBU 003 KeyStore opened at [/etc/hyperledger/fabric/msp/keystore]...done 2020-10-16 14:33:34.325 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/fabric/msp/signcerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/fabric/msp/signcerts/peer0.supplier.dlt.ericsson.com.cer 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/fabric/msp/cacerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/fabric/msp/cacerts/root-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/fabric/msp/admincerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/fabric/msp/intermediatecerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00a Inspecting file /etc/hyperledger/fabric/msp/intermediatecerts/intermediate-issuing-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/fabric/msp/tlscacerts 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00c TLS CA certs folder at [/etc/hyperledger/fabric/msp/tlsintermediatecerts] is empty. Skipping. 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/fabric/msp/crls 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00e crls folder not found at [/etc/hyperledger/fabric/msp/crls]. Skipping. [stat /etc/hyperledger/fabric/msp/crls: no such file or directory] 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00f Loading NodeOUs 2020-10-16 14:33:34.326 UTC [msp] newBccspMsp -> DEBU 010 Creating BCCSP-based MSP instance 2020-10-16 14:33:34.326 UTC [msp] New -> DEBU 011 Creating Cache-MSP instance 2020-10-16 14:33:34.326 UTC [msp] loadLocalMSP -> DEBU 012 Created new local MSP 2020-10-16 14:33:34.327 UTC [msp] Setup -> DEBU 013 Setting up MSP instance Org1MSP 2020-10-16 14:33:34.329 UTC [main] InitCmd -> ERRO 014 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Failed importing key with opts [&{true}]: Certificate's public key type not recognized. Supported keys: [ECDSA] ``` It seems that the provided certificates are not supported by Fabric. Is there any suggestion/guideline about the format of certificates to be valid in Fabric?

alejoacosta (Fri, 16 Oct 2020 16:33:55 GMT):
Hi Team. We are trying to setup a test network using certificates provided by the organization (i.e., not generated by `cryptogen` nor by `fabric-ca-server`). I have re-created the MSP for peer0, by placing all mentioned certificates and keys in the corresponding folder. When peer0 starts, throughs the following error: ``` 2020-10-16 14:33:34.269 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.314 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.325 UTC [bccsp_sw] openKeyStore -> DEBU 003 KeyStore opened at [/etc/hyperledger/fabric/msp/keystore]...done 2020-10-16 14:33:34.325 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/fabric/msp/signcerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/fabric/msp/signcerts/peer0.supplier.dlt.ericsson.com.cer 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/fabric/msp/cacerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/fabric/msp/cacerts/root-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/fabric/msp/admincerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/fabric/msp/intermediatecerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00a Inspecting file /etc/hyperledger/fabric/msp/intermediatecerts/intermediate-issuing-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/fabric/msp/tlscacerts 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00c TLS CA certs folder at [/etc/hyperledger/fabric/msp/tlsintermediatecerts] is empty. Skipping. 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/fabric/msp/crls 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00e crls folder not found at [/etc/hyperledger/fabric/msp/crls]. Skipping. [stat /etc/hyperledger/fabric/msp/crls: no such file or directory] 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00f Loading NodeOUs 2020-10-16 14:33:34.326 UTC [msp] newBccspMsp -> DEBU 010 Creating BCCSP-based MSP instance 2020-10-16 14:33:34.326 UTC [msp] New -> DEBU 011 Creating Cache-MSP instance 2020-10-16 14:33:34.326 UTC [msp] loadLocalMSP -> DEBU 012 Created new local MSP 2020-10-16 14:33:34.327 UTC [msp] Setup -> DEBU 013 Setting up MSP instance Org1MSP 2020-10-16 14:33:34.329 UTC [main] InitCmd -> ERRO 014 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Failed importing key with opts [&{true}]: Certificate's public key type not recognized. Supported keys: [ECDSA] ``` It seems that the provided certificates are not supported by Fabric. Is there any suggestion/guideline about the format of certificates to be valid in Fabric? The used certificate says: ```Signature Algorithm: sha256WithRSAEncryption``` ```Subject Public Key Info: Public Key Algorithm: id-ecPublicKey ```

alejoacosta (Fri, 16 Oct 2020 16:33:55 GMT):
Hi Team. We are trying to setup a test network using certificates provided by the organization (i.e., not generated by `cryptogen` nor by `fabric-ca-server`). I have re-created the MSP for peer0, by placing all mentioned certificates and keys in the corresponding folder. When peer0 starts, throughs the following error: ``` 2020-10-16 14:33:34.269 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.314 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-10-16 14:33:34.325 UTC [bccsp_sw] openKeyStore -> DEBU 003 KeyStore opened at [/etc/hyperledger/fabric/msp/keystore]...done 2020-10-16 14:33:34.325 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/fabric/msp/signcerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/fabric/msp/signcerts/peer0.supplier.dlt.ericsson.com.cer 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/fabric/msp/cacerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/fabric/msp/cacerts/root-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/fabric/msp/admincerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/fabric/msp/intermediatecerts 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00a Inspecting file /etc/hyperledger/fabric/msp/intermediatecerts/intermediate-issuing-ca.pem 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/fabric/msp/tlscacerts 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00c TLS CA certs folder at [/etc/hyperledger/fabric/msp/tlsintermediatecerts] is empty. Skipping. 2020-10-16 14:33:34.326 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/fabric/msp/crls 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00e crls folder not found at [/etc/hyperledger/fabric/msp/crls]. Skipping. [stat /etc/hyperledger/fabric/msp/crls: no such file or directory] 2020-10-16 14:33:34.326 UTC [msp] getMspConfig -> DEBU 00f Loading NodeOUs 2020-10-16 14:33:34.326 UTC [msp] newBccspMsp -> DEBU 010 Creating BCCSP-based MSP instance 2020-10-16 14:33:34.326 UTC [msp] New -> DEBU 011 Creating Cache-MSP instance 2020-10-16 14:33:34.326 UTC [msp] loadLocalMSP -> DEBU 012 Created new local MSP 2020-10-16 14:33:34.327 UTC [msp] Setup -> DEBU 013 Setting up MSP instance Org1MSP 2020-10-16 14:33:34.329 UTC [main] InitCmd -> ERRO 014 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Failed importing key with opts [&{true}]: Certificate's public key type not recognized. Supported keys: [ECDSA] ``` It seems that the provided certificates are not supported by Fabric. Is there any suggestion/guideline about the format of certificates to be valid in Fabric? The used certificate says: ```Signature Algorithm: sha256WithRSAEncryption``` ```Subject Public Key Info: Public Key Algorithm: id-ecPublicKey ```

yacovm (Fri, 16 Oct 2020 18:06:24 GMT):
ECDSA

tennenjl (Fri, 16 Oct 2020 18:51:44 GMT):
Hi Everyone, when deploying chaincode we're seeing the error ``` ```

tennenjl (Fri, 16 Oct 2020 18:51:44 GMT):
Hi Everyone, when deploying chaincode we're seeing the error ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error uploading input to container: write unix @->///tmp/podman.sock: write: broken pipe ``` Thanks for any ideas on how to debug.

angelparrales (Fri, 16 Oct 2020 19:13:42 GMT):
Has joined the channel.

tongli (Fri, 16 Oct 2020 19:18:35 GMT):
@tennenjl I normally build the chaincode first to catch any obvious issues.

tongli (Fri, 16 Oct 2020 19:19:45 GMT):
You can also use unit test to test each of the method.

tongli (Fri, 16 Oct 2020 19:20:10 GMT):
Use minifabric will get you started quickly.

tennenjl (Fri, 16 Oct 2020 19:39:10 GMT):
@tongli Thanks. Maybe we need to go the way of an external builder? We are starting to worry about podman APIs and working with archive files

tongli (Fri, 16 Oct 2020 20:15:53 GMT):
Minifab has a section in docs talking about that

tongli (Fri, 16 Oct 2020 20:16:23 GMT):
You can look at the section and see how you can do the external cc build

tongli (Fri, 16 Oct 2020 20:16:39 GMT):
@tennenjl ^^^

tennenjl (Fri, 16 Oct 2020 20:16:50 GMT):
@tongli Thanks! Will take a look. We are doing the external cc build now.

tongli (Fri, 16 Oct 2020 20:23:57 GMT):
@tennenjl there was also a closed issue specifically for that, you can go through by searching the list, not many issues for minifabric anyways.

alejoacosta (Sat, 17 Oct 2020 16:14:54 GMT):
#fabric-questions #RSA #signature Hi Team, this is a conceptual question: does Fabric support x509 certificates signed by root CA with RSA? Please bear in mind that in this case, the keys are EC. It is just the signature algorithm with RSA: ``` Certificate: Data: Version: 3 (0x2) Serial Number: 6d:00:00:04:94:4f:e5:7d:60:01:3e:a6:37:00:00:00:00:04:94 Signature Algorithm: sha256WithRSAEncryption Issuer: DC=se, DC=acme, CN=EGADIssuingCA3 Validity Not Before: Mar 2 11:42:43 2020 GMT Not After : Mar 2 11:42:43 2021 GMT Subject: C=SE, ST=Stockholm, L=Stockholm, O=acme, OU=IT, CN=peer0.acme.com Subject Public Key Info: Public Key Algorithm: id-ecPublicKey Public-Key: (384 bit) ASN1 OID: secp384r1 NIST CURVE: P-384 ```

alejoacosta (Sat, 17 Oct 2020 16:18:09 GMT):
When you say ECDSA, are you talking about the private key or the signature algorithm from the CA?

yacovm (Sat, 17 Oct 2020 16:18:50 GMT):
1.4 i think so but 2.x i think not

yacovm (Sat, 17 Oct 2020 16:19:17 GMT):
private key is P-256 curve

yacovm (Sat, 17 Oct 2020 16:19:30 GMT):
signature algorithm is ECSA

alejoacosta (Sat, 17 Oct 2020 16:44:57 GMT):
thanks for replying. P-256 is for private key or public key?

vinusheri (Sat, 17 Oct 2020 17:46:33 GMT):
Has joined the channel.

vinusheri (Sat, 17 Oct 2020 17:46:34 GMT):
Hi, I have an issue while issuing the composer network start command. It shows: Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: failed to execute transaction 5adc5b9c7ea0f0157362a4aab85d99d92621d1acea83ffe37ee5e26b6976755b: error starting container: error starting container: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:latest: API error (404): manifest for hyperledger/fabric-ccenv:latest not found: manifest unknown: manifest unknown Please help. Thanks

davidkel (Sat, 17 Oct 2020 18:38:16 GMT):
Composer is end of life now and the community has moved on I'm afraid, would highly recommend that you don't continue using composer

naveenvinoy (Sun, 18 Oct 2020 14:49:49 GMT):
Has joined the channel.

naveenvinoy (Sun, 18 Oct 2020 14:49:49 GMT):
Hi, I have an issue while using the javascript application of asset-transfer-basic. After installing the chaincode when i want to prepare the sample Asset Transfer Javascript application. After doing the npm install when i run node app.js I get an error. It shows: Failed to enroll admin user : Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] An identity for the admin user does not exist in the wallet Enroll the admin user before retrying ******** FAILED to run the application: Error: Identity not found in wallet: appUser Please help. Thanks

MohamadSolouki (Sun, 18 Oct 2020 19:06:27 GMT):
Has joined the channel.

MohamadSolouki (Sun, 18 Oct 2020 19:06:27 GMT):
hello there, I have a question... which programming language is the best option for Hyperledger development? and why? I have started a project in insurance industry and can not decide which language is suitable for me!

MohamadSolouki (Sun, 18 Oct 2020 19:06:27 GMT):
hello there, I have a question... which programming language is the best option for Hyperledger development? and why? I have started a project in insurance industry and can not decide which language is suitable for me! Golang or Java? which one do you recommend? many thanks

rjvsa (Mon, 19 Oct 2020 04:30:50 GMT):
Has joined the channel.

ckong (Mon, 19 Oct 2020 16:23:10 GMT):
I am trying to debug `EventService` timeout. Besides `export GRPC_TRACE=all` and `export GRPC_VERBOSITY=debug`, are there any other flags which might help me in debugging?

ckong (Mon, 19 Oct 2020 16:26:26 GMT):
```2020-10-19T16:12:25.607Z - error: [EventService]: EventService[peer1.org1.xxx.com,peer2.org1.xxx.com,peer3.org1.xxx.com] timed out after:3000 2020-10-19T16:12:25.607Z - error: [EventService]: send[peer1.org1.xxx.com,peer2.org1.xxx.com,peer3.org1.xxx.com] - #1 - Starting stream to peer3.org1.xxx.com failed 2020-10-19T16:12:25.607Z - error: [BlockEventSource]: Failed to start event service message=Event service timed out - Unable to start listening, stack=Error: Event service timed out - Unable to start listening at Timeout.setTimeout [as _onTimeout] (/home/centos/nodejs/node_modules/fabric-common/lib/EventService.js:408:12) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10) ``` Even after enabling the two flags mentioned earlier I don't see any errors in the output. How is this possible?

chintanr11 (Mon, 19 Oct 2020 17:48:13 GMT):
Hi Team, I was going over the fabric-ccenv image Dockerfile: https://github.com/hyperledger/fabric/blob/v2.2.0/images/ccenv/Dockerfile. Now, I was confused on why we need both gcc and g++ in the CCENV image? I understand GCC is mainly for CGO using .go files (for example, pkcs11). I am guessing we can build "CAR" type chaincodes from GCC and not explicitly require g++ for it. I am not able to identify some use case for g++ here. It will be really helpful if someone can correct above assumptions and point me to some additional use case I am missing here that helps us identify the actual requirement for g++.

BrettLogan (Tue, 20 Oct 2020 03:20:13 GMT):
Are you trying to decide for Chaincode development or application development? From a chaincode perspective, all of our supported languages are mature, though you will find Go to execute transaction faster. From an application perspective, the Go SDK is still in beta, so there are still some growing pains with it, but it is fully fleshed out. The Go SDK also supports 2.0 lifecycle capabilities for administrating you network, the Java SDK does not, you need to rely on the Peer CLI's to perform operations.

BrettLogan (Tue, 20 Oct 2020 03:21:00 GMT):
Did you start the test network with the `-ca` flag? Can you share the command you used to start it

BrettLogan (Tue, 20 Oct 2020 03:22:48 GMT):
As David said, you are going to want to move on to other tools. This is is caused by the fact we retired the latest tag in Fabric, long after Composer was EOL, so it was never updated. In the short term, you can pull the `hyperledger/fabric-ccenv:1.4` image and retag it as `latest` if you really want to keep using Composer, but the likelihood of support for any of the issues you encounter is next to none.

BrettLogan (Tue, 20 Oct 2020 03:34:04 GMT):
For other technical reasons we still haven't pulled in the commit from BCCSP that removed support for RSA in any either branch. Thats not to say we won't in the future, but right now we still support RSA

BrettLogan (Tue, 20 Oct 2020 03:34:04 GMT):
For other technical reasons we still haven't pulled in the commit from BCCSP that removed support for RSA in any either branch. Thats not to say we won't in the future, but right now we still support RSA on the 2.x versions as well

BrettLogan (Tue, 20 Oct 2020 03:34:04 GMT):
For other technical reasons we still haven't pulled in the commit from BCCSP that removed support for RSA in any either branch. Thats not to say we won't in the future, but right now we still support RSA on the 2.x versions as well if you are building the master branch (since we've never release CA 2.x)

BrettLogan (Tue, 20 Oct 2020 03:38:36 GMT):
I don't think docker is cross compatible with podman, only the other direction. Podman maps to docker, but docker does not map to podman

tennenjl (Tue, 20 Oct 2020 03:39:22 GMT):
thanks Brett :-)

alejoacosta (Tue, 20 Oct 2020 03:42:06 GMT):
Hi Brett. I am using 2.x with our own certificates signed by RSA. But peer container would crash with the following error: ``` 2020-10-20 02:24:38.309 UTC [msp] getMspConfig -> DEBU 010 Loading NodeOUs 2020-10-20 02:24:38.309 UTC [msp] newBccspMsp -> DEBU 011 Creating BCCSP-based MSP instance 2020-10-20 02:24:38.310 UTC [msp] New -> DEBU 012 Creating Cache-MSP instance 2020-10-20 02:24:38.310 UTC [msp] loadLocalMSP -> DEBU 013 Created new local MSP 2020-10-20 02:24:38.310 UTC [msp] Setup -> DEBU 014 Setting up MSP instance supplierOrgMSP 2020-10-20 02:24:38.310 UTC [main] InitCmd -> ERRO 015 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Failed importing key with opts [&{true}]: Certificate's public key type not recognized. Supported keys: [ECDSA] ```

BrettLogan (Tue, 20 Oct 2020 03:42:22 GMT):
Official benchmarks are here, but your results are not indicative of the real performance you can get: https://hyperledger.github.io/caliper-benchmarks/fabric/performance/

BrettLogan (Tue, 20 Oct 2020 03:42:51 GMT):
How are you benchmarking, are you waiting for full commit, or only submission to orderer.

alejoacosta (Tue, 20 Oct 2020 03:43:17 GMT):
Is that error pointing towards the fact the signcert is RSA encrypted? Or could be something else?

BrettLogan (Tue, 20 Oct 2020 03:43:24 GMT):
Caliper is the official benchmarking tool, if you want to see the performance you can get out of your Fabric network, I recommend you use this

aim8526 (Tue, 20 Oct 2020 05:38:22 GMT):
Thanks BrettLogan for your help full comment. *Q1.* How are you benchmarking ? I am waiting for full commit. and I am using Jmeter for Node SDK API testing, where I am waiting till I received Id of assets returned by Node SDK.

aim8526 (Tue, 20 Oct 2020 05:39:19 GMT):
@BrettLogan can u please provide any Tutorial docs or link which I can prefer to Implement Hyperledger Caliper ?

davidkel (Tue, 20 Oct 2020 07:57:24 GMT):
documentation for hyperledger caliper can be found here https://hyperledger.github.io/caliper/ there is also a rocket chat caliper channel #caliper for questions about caliper

aim8526 (Tue, 20 Oct 2020 07:58:29 GMT):
Thanks davidkel. Is it jemeter based testing is not suitable to measure TPS?

iambatman (Wed, 21 Oct 2020 06:33:10 GMT):
Hello everyone i am getting connection refused error while trying to submit transaction through nodejs sdk ```020-10-21T06:27:28.470Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer1.right.base, url:grpcs://localhost:9051, connected:false, connectAttempted:true 2020-10-21T06:27:28.471Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.right.base url:grpcs://localhost:9051 timeout:3000```

iambatman (Wed, 21 Oct 2020 06:33:10 GMT):
Hello everyone i am getting connection refused error while trying to submit transaction through nodejs sdk ```020-10-21T06:27:28.470Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer1.right.base, url:grpcs://localhost:9051, connected:false, connectAttempted:true 2020-10-21T06:27:28.471Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer1.right.base url:grpcs://localhost:9051 timeout:3000``` Can somebody help me on this?

aim8526 (Wed, 21 Oct 2020 07:27:41 GMT):
Hi Everyone. while i perform 100 to 200 calls for write transaction from Nodejs Client it give me the below error repeatedly. Error: Failed to connect before the deadline on Committer

aim8526 (Wed, 21 Oct 2020 07:28:33 GMT):
is this your localsetup?

iambatman (Wed, 21 Oct 2020 07:28:50 GMT):
Yes

iambatman (Wed, 21 Oct 2020 07:29:11 GMT):
all containers are up and running in local docker

aim8526 (Wed, 21 Oct 2020 07:29:21 GMT):
can u check port 9051 by telneting?

iambatman (Wed, 21 Oct 2020 07:29:58 GMT):
let me chek

aim8526 (Wed, 21 Oct 2020 07:31:53 GMT):
check with peer1.right.base also and if not work put peer1.right.base on /etc/hosts

iambatman (Wed, 21 Oct 2020 07:37:08 GMT):
telnet refusing connection

aim8526 (Wed, 21 Oct 2020 07:38:15 GMT):
telnet localhost 9051 for above command also

aim8526 (Wed, 21 Oct 2020 07:38:17 GMT):
?

iambatman (Wed, 21 Oct 2020 07:38:28 GMT):
yea

aim8526 (Wed, 21 Oct 2020 07:39:03 GMT):
I am facing the same issue but after putting load on node js from jmeter like concurrent 200-300 thread

aim8526 (Wed, 21 Oct 2020 07:39:37 GMT):
check peer containers log is it really up or running

iambatman (Wed, 21 Oct 2020 07:40:11 GMT):
Sry the telnet localhost 9051 is connecting

iambatman (Wed, 21 Oct 2020 07:40:27 GMT):
peer containers are up and running

aim8526 (Wed, 21 Oct 2020 07:41:33 GMT):
then other possibility is u have entered pem in ( connection-profile file) network.yaml file incorrectly

aim8526 (Wed, 21 Oct 2020 07:41:47 GMT):
https://stackoverflow.com/questions/61420539/hyperledger-fabric-2-0-1-error-failed-to-connect-before-the-deadline-on-discov

aim8526 (Wed, 21 Oct 2020 07:41:53 GMT):
see above link

iambatman (Wed, 21 Oct 2020 07:43:20 GMT):
pem is correct i double checked

aim8526 (Wed, 21 Oct 2020 07:44:49 GMT):
even a single request is not process?

iambatman (Wed, 21 Oct 2020 07:45:01 GMT):
yea

aim8526 (Wed, 21 Oct 2020 07:46:24 GMT):
discovery: { enabled: true, asLocalhost: false } u have added above param while connecting gatway.

iambatman (Wed, 21 Oct 2020 07:46:54 GMT):
yes its added

aim8526 (Wed, 21 Oct 2020 07:47:16 GMT):
discovery should be enable. and asLocalhost should be true for local environment

iambatman (Wed, 21 Oct 2020 07:47:38 GMT):
await gateway.connect(ccp, { wallet, identity: 'appUser', discovery: { enabled: true, asLocalhost: true } });

aim8526 (Wed, 21 Oct 2020 07:49:01 GMT):
Client looks like ok. can u check trnascation invocation on peer cli by commnad line?

iambatman (Wed, 21 Oct 2020 07:49:28 GMT):
let me try

aim8526 (Wed, 21 Oct 2020 07:51:27 GMT):
also check in peer docker compose file for the below env CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.right.base:9051 it is Important variable for discovery service

aim8526 (Wed, 21 Oct 2020 07:53:22 GMT):
and below options should be available in ccp file. grpcOptions: ssl-target-name-override: peer1.right.base

iambatman (Wed, 21 Oct 2020 07:58:29 GMT):
Thanks for awsome support :)

aim8526 (Wed, 21 Oct 2020 07:59:29 GMT):
Is it solve?

iambatman (Wed, 21 Oct 2020 07:59:59 GMT):
Nop still i m trying to run the transactions via cli

aim8526 (Wed, 21 Oct 2020 08:00:55 GMT):
u have modify your domain name. therefore u need to check docker compose firl for CORE_PEER_GOSSIP_EXTERNALENDPOINT variable and connection-profile for grpcsOptions

aim8526 (Wed, 21 Oct 2020 08:01:15 GMT):
just try 2 of them and let me know

dcof (Wed, 21 Oct 2020 09:22:55 GMT):
Hi, I have a question regarding the discovery functionality. I use the cli for that and created the required config file and then i use the `discover --configFile conf.yaml peers --channel` command to retrieve the existing peers on the channel. However, this query always returns only the peer I' connecting to. I know for a fact, that at least one more peer from a different org is configured on the channel. I double checked the external endpoint setting which seems fine. I also do not see any error in the peers log files. Does anyone have an idea, why I'm only able to discover my own peer but not the other anchor peers on the channel?

iambatman (Wed, 21 Oct 2020 09:54:50 GMT):
Just got an error on chaincode commit

iambatman (Wed, 21 Oct 2020 09:56:08 GMT):
```chaincode definition not agreed to by this org (LeftOrgMSP)`` However when i check the `checkcommitreadiness ` i will get true for `LeftOrgMSP` { "approvals": { "LeftOrgMSP": true, "RightOrgMSP": false } } ```

iambatman (Wed, 21 Oct 2020 09:56:08 GMT):
chaincode definition not agreed to by this org (LeftOrgMSP) However when i check the `checkcommitreadiness ` i will get true for `LeftOrgMSP` ```{ "approvals": { "LeftOrgMSP": true, "RightOrgMSP": false } } ```

sanket1211 (Wed, 21 Oct 2020 10:46:49 GMT):
2020-10-21T10:39:52.855Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051 2020-10-21T10:39:52.855Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.org1.example.com url:grpcs://localhost:7051 timeout:3000 Getting error: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051

iambatman (Wed, 21 Oct 2020 14:31:41 GMT):
`failed to retrieve endorser client for install: endorser client failed to connect ` does anybody know how to resolve this issue?

iambatman (Wed, 21 Oct 2020 14:32:05 GMT):
This occurs while try to install the chaincode in

iambatman (Wed, 21 Oct 2020 14:32:05 GMT):
This occurs while try to install the chaincode

iambatman (Wed, 21 Oct 2020 14:37:25 GMT):
I have completed the installation in one peer successfully this is getting from the second peer

aim8526 (Wed, 21 Oct 2020 15:53:51 GMT):
u have to approve for RightOrgMSP. u have to set below environment variable and run for RightOrgMSP $CORE_PEER_LOCALMSPID $CORE_PEER_TLS_ROOTCERT_FILE $CORE_PEER_MSPCONFIGPATH=msp config path of admin of peer $CORE_PEER_ADDRESS

aim8526 (Wed, 21 Oct 2020 15:54:28 GMT):
by following fabric-samples u can achieve easily by provided scripts

Jonathancj (Wed, 21 Oct 2020 23:54:55 GMT):
Has joined the channel.

Darren-Matthews (Wed, 21 Oct 2020 23:58:26 GMT):
Hi guys, I'm new to fabric. I tried to dabble in it last year but certain reasons I couldn't get as far as I wanted. I would like to know if playing around using Windows is ok. Or should I go solely for a Linux experience either through a VM, or dedicated machine or even using WSL? What is your guy's opinions for a smooth experience

ckong (Thu, 22 Oct 2020 02:24:25 GMT):
I notice that in CouchDB data there is a `is_deleted` flag, but how is this used in Fabric, since data is not removed?

aim8526 (Thu, 22 Oct 2020 04:47:25 GMT):
If u delete ur asset from smart contract shim function it will show is_deleted=true otherwise it will show false

ckong (Thu, 22 Oct 2020 04:48:42 GMT):
Is that the only usage of `is_deleted`? Are there any other ways in which assets can be deleted?

aim8526 (Thu, 22 Oct 2020 04:49:36 GMT):
as per my understanding u can only modify or delete assets by SmartContract Code

aim8526 (Thu, 22 Oct 2020 04:58:33 GMT):
u have to use Linux based OS or VM because lots of readymade scripts are designed for linux and u will cummunity supports as well

chintanr11 (Thu, 22 Oct 2020 05:53:02 GMT):
I saw that the latest version of documentation on MSP structure does not talk about msp/crls folder - like it was present in previous versions. https://hyperledger-fabric.readthedocs.io/en/latest/membership/membership.html#msp-structure Was this change made recently in code as well, that now the local MSPs in node, do not require CRLs folder?

iambatman (Thu, 22 Oct 2020 06:12:32 GMT):
Thanks its done however i m getting another error endorsment policy failed

aim8526 (Thu, 22 Oct 2020 06:14:36 GMT):
whats your endoresemen policy. by default it set to majority of available Orgs.

iambatman (Thu, 22 Oct 2020 06:16:15 GMT):
``` ```

iambatman (Thu, 22 Oct 2020 06:16:15 GMT):
``` Policies: Readers: Type: Signature Rule: "OR('LeftOrgMSP.admin', 'LeftOrgMSP.peer', 'LeftOrgMSP.client','LeftOrgMSP.member')" Writers: Type: Signature Rule: "OR('LeftOrgMSP.admin', 'LeftOrgMSP.client','LeftOrgMSP.peer','LeftOrgMSP.member')" Admins: Type: Signature Rule: "OR('LeftOrgMSP.admin','LeftOrgMSP.peer')" Endorsement: Type: Signature Rule: "OR('LeftOrgMSP.peer')" ```

aim8526 (Thu, 22 Oct 2020 06:16:22 GMT):
so u have to pass certificate of ( if 3 orgs u have to pass 2 org's peers certs)majority Orgs peers . or at Node client SDK if u enable discovery it automaticlly solve your issue.

aim8526 (Thu, 22 Oct 2020 06:17:32 GMT):
use discovey = ture from Node client

iambatman (Thu, 22 Oct 2020 06:18:01 GMT):
I have only one peer for each org

aim8526 (Thu, 22 Oct 2020 06:18:16 GMT):
Error:- endorser client failed to connect how u solve this issue

iambatman (Thu, 22 Oct 2020 06:19:02 GMT):
This is due to the peer address issue i exported the wrong listen address variable

aim8526 (Thu, 22 Oct 2020 06:19:12 GMT):
provide endorser peer certs and ip if u r running from Cli. or by Node sdk only discovery true is enough

iambatman (Thu, 22 Oct 2020 06:19:28 GMT):
``` peer lifecycle chaincode commit -o orderer1.base.order:7050 --channelID basechannel \ --name fabcar --version 1.0 \ --sequence 1 --tls true \ --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem \ --peerAddresses peer1.base.right:9051 \ --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.right/peers/peer1.base.right/tls/ca.crt \ --peerAddresses peer1.base.left:7051 \ --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/peers/peer1.base.left/tls/ca.crt ```

iambatman (Thu, 22 Oct 2020 06:19:39 GMT):
above is my commit command

aim8526 (Thu, 22 Oct 2020 06:20:13 GMT):
ohk thanks.

iambatman (Thu, 22 Oct 2020 06:21:20 GMT):
No worries

iambatman (Thu, 22 Oct 2020 06:25:11 GMT):
I didn't set any endorser peers

iambatman (Thu, 22 Oct 2020 06:25:19 GMT):
may be thats the problem??

aim8526 (Thu, 22 Oct 2020 06:25:51 GMT):
yes u have to define in configtx.yaml file

aim8526 (Thu, 22 Oct 2020 06:26:40 GMT):
and at docke_compose.yaml the CORE_PEER_GOSSIP_EXTERNALENDPOINT env set for the peer also

iambatman (Thu, 22 Oct 2020 06:26:46 GMT):
ahh okay let me try

iambatman (Thu, 22 Oct 2020 06:27:20 GMT):
so `CORE_PEER_GOSSIP_EXTERNALENDPOINT ` this should be the peeraddress in commit command/?

iambatman (Thu, 22 Oct 2020 06:27:20 GMT):
so `CORE_PEER_GOSSIP_EXTERNALENDPOINT ` this should be the peeraddress in commit command??

aim8526 (Thu, 22 Oct 2020 06:28:14 GMT):
it is the peer image env variable we have to set to detect peer in discovery service

iambatman (Thu, 22 Oct 2020 06:29:20 GMT):
okay so the peer address same address not the `CORE_PEER_GOSSIP_EXTERNALENDPOINT ` ??

iambatman (Thu, 22 Oct 2020 06:29:20 GMT):
okay so the peer address peer address not the `CORE_PEER_GOSSIP_EXTERNALENDPOINT ` ??

aim8526 (Thu, 22 Oct 2020 06:37:43 GMT):
no

iambatman (Thu, 22 Oct 2020 06:57:50 GMT):
Where exactly i need to add the anchor peer config, i cou'dn't find anything in the fabric sample https://github.com/hyperledger/fabric-samples/blob/master/test-network/configtx/configtx.yaml

aim8526 (Thu, 22 Oct 2020 06:59:15 GMT):
see line 75 -80 for Org1 and 109 - 114 for org2

iambatman (Thu, 22 Oct 2020 07:01:10 GMT):
Thats already been in my config

aim8526 (Thu, 22 Oct 2020 07:01:48 GMT):
that means u had anchor peer.

iambatman (Thu, 22 Oct 2020 07:02:51 GMT):
sorry not anchor peer endorsment peer config

aim8526 (Thu, 22 Oct 2020 07:03:48 GMT):
u have to invoke chaincode by node sdk

iambatman (Thu, 22 Oct 2020 07:04:31 GMT):
i am getting endorsment policy error on the commit transaction phase

iambatman (Thu, 22 Oct 2020 07:04:52 GMT):
Without a successfull commit how do i invoke?

aim8526 (Thu, 22 Oct 2020 07:05:21 GMT):
still chaincode not commited yet?

iambatman (Thu, 22 Oct 2020 07:05:42 GMT):
nop

aim8526 (Thu, 22 Oct 2020 07:06:01 GMT):
what's the result of commitreadyness of chaincode

iambatman (Thu, 22 Oct 2020 07:06:01 GMT):
im trying with CLI

iambatman (Thu, 22 Oct 2020 07:06:42 GMT):
both org approvals as true

aim8526 (Thu, 22 Oct 2020 07:07:09 GMT):
to do commit u have to specify all peers with with thier certs and address to in commit command

aim8526 (Thu, 22 Oct 2020 07:07:41 GMT):
like u had 2 Org then u need to specify both orgs peer in single command

iambatman (Thu, 22 Oct 2020 07:08:04 GMT):
This is my command ``` peer lifecycle chaincode commit -o orderer1.base.order:7050 --channelID basechannel \ --name fabcar --version 1.0 \ --sequence 1 --tls true \ --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem \ --peerAddresses peer1.base.right:9051 \ --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.right/peers/peer1.base.right/tls/ca.crt \ --peerAddresses peer1.base.left:7051 \ --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/peers/peer1.base.left/tls/ca.crt ```

iambatman (Thu, 22 Oct 2020 07:08:33 GMT):
i have added all peers certs as of now i have one peer each org

aim8526 (Thu, 22 Oct 2020 07:08:47 GMT):
let me check

aim8526 (Thu, 22 Oct 2020 07:10:57 GMT):
u r missung orderer address

aim8526 (Thu, 22 Oct 2020 07:11:00 GMT):
-o orderer0-service:7050

aim8526 (Thu, 22 Oct 2020 07:11:23 GMT):
add orderer ip and port in ur command and cehck

iambatman (Thu, 22 Oct 2020 07:11:46 GMT):
nop its there `-o orderer1.base.order:7050`

aim8526 (Thu, 22 Oct 2020 07:13:43 GMT):
peer lifecycle chaincode commit -o orderer0-service:7050 --tls --cafile /etc/hyperledger/orderers/msp/tlscacerts/tlsca.electreecity.in-cert.pem --peerAddresses $CORE_PEER_ADDRESS --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE --peerAddresses peer1-org1-service:7051 --tlsRootCertFiles $CORE_PEER_TLS_ROOTCERT_FILE --peerAddresses peer0-org2-service:7051 --tlsRootCertFiles /nfs/files/scripts/organizations/peerOrganizations/org2.electreecity.in/peers/peer0.org2.electreecity.in/tls/ca.crt --peerAddresses peer1-org2-service:7051 --tlsRootCertFiles /nfs/files/scripts/organizations/peerOrganizations/org2.electreecity.in/peers/peer0.org2.electreecity.in/tls/ca.crt --channelID mychannel --name tickets --version 1 --sequence 1 --init-required

aim8526 (Thu, 22 Oct 2020 07:14:16 GMT):
this is my commit command compare and check diff

iambatman (Thu, 22 Oct 2020 07:14:41 GMT):
okay

iambatman (Thu, 22 Oct 2020 07:33:22 GMT):
can you share your approve org command

aim8526 (Thu, 22 Oct 2020 07:33:56 GMT):
$CORE_PEER_LOCALMSPID $CORE_PEER_TLS_ROOTCERT_FILE $CORE_PEER_MSPCONFIGPATH $CORE_PEER_ADDRESS set these four variables

aim8526 (Thu, 22 Oct 2020 07:34:06 GMT):
peer lifecycle chaincode approveformyorg -o orderer0-service:7050 --tls --cafile /etc/hyperledger/orderers/msp/tlscacerts/tlsca.electreecity.in-cert.pem --channelID mychannel --name tickets --version 1 --package-id ticketChaincode_1:bb6349b38684ec979bdcc3e6ab296ee844edb2659c81c1be45de448b6c59f3e1 --sequence 1 --init-required

aim8526 (Thu, 22 Oct 2020 07:34:37 GMT):
do for both the Orgs

iambatman (Thu, 22 Oct 2020 07:34:42 GMT):
okay

Funbric (Thu, 22 Oct 2020 08:42:53 GMT):
If an organization dose not have any peer node, can it approve an chaincode

Funbric (Thu, 22 Oct 2020 08:48:41 GMT):
Hi team, I have a question. If an organization does not have any peer node, can this org approve a chaincode using other org's running peer?

chintanr11 (Thu, 22 Oct 2020 10:06:40 GMT):
I learnt recently about C2C communication. But I was more intrigued to know how the scenario works if lets say chaincode C1 is trying to invoke chaincode C2's function (this single call will do a read and write both)? However, important thing here is - this will be a PVTDATA read and PVTDATA write. Both of them are running on same channel in v1.4.4 network.

adityajoshi12 (Thu, 22 Oct 2020 10:21:23 GMT):
Has joined the channel.

adityajoshi12 (Thu, 22 Oct 2020 10:21:24 GMT):
Hi folks, I have a question. Consider I have an HLF network running for the last 5 years and it has around 5 million blocks now I want to keep the first 3 million blocks on off-chain storage (S3 or any database) as the data in the blockchain was causing performance issues in the application. I only want to keep only the remaining 2 million blocks in the chain. how can we do this in HLF?

dcof (Thu, 22 Oct 2020 13:22:46 GMT):
I found the error myself, I forgot to update the channel with the respective anchor peer transaction. Once I did this, the discovery works as expected.

Jonty16117 (Thu, 22 Oct 2020 13:41:39 GMT):
Hi, can anyone guide me how to include data hashes in peer ledger and store the actual data in a centralised database, instead of the whole copy of state data in every peer, to save space and improve scalability.

jtonline (Thu, 22 Oct 2020 15:52:54 GMT):
@Darren-Matthews you might be able to use the IBP vscode extension, which is an easy way to get started with Fabric. There are some instructions for using WSL2 here https://github.com/davidkel/davidkel.github.io/blob/master/docs/vscode/windows.md Alternatively, if you'd rather not use vscode, I use a vagrant/virtual box environment which should include everything you need to get started https://github.com/hyperledgendary/fabric-devenv

jtonline (Thu, 22 Oct 2020 15:57:40 GMT):
I'm not sure that is possible just yet, although there is an RFC for this kind of thing https://hyperledger.github.io/fabric-rfcs/text/0000-ledger-checkpointing.html

ItaloCarrasco (Thu, 22 Oct 2020 16:24:20 GMT):
hello everyone, i was trying to execute a rich query from the chaincode and it is failing with this error: 2020-10-22T16:17:49.872Z error [c-api:contracts-spi/chaincodefromcontract.js] [pagare-channel-f649ffea] Error: GET_QUERY_RESULT failed: transaction ID: f649ffeaa42a7b0b5b140c90bf1249efec2c4293e53bbce70d3eefd1d7a2bb2b: no ledger context 2020-10-22T16:17:49.873Z error [c-api:lib/handler.js] [pagare-channel-f649ffea] Calling chaincode Invoke() returned error response [Error: GET_QUERY_RESULT failed: transaction ID: f649ffeaa42a7b0b5b140c90bf1249efec2c4293e53bbce70d3eefd1d7a2bb2b: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:378:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:288:182) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:181:74]. Sending ERROR message back to peer it seems like the chaincode is using a lot of resources to execute my query, the thing is if i execute the same query directly in couchdb it works, considering that i only have 50 registers idk why it is failing like this and why is it using all the machine resources. does anyone have any solution to this?, should i just replicate ledger data on another kind of database to get faster queries?

Darren-Matthews (Thu, 22 Oct 2020 21:17:13 GMT):
Thank you, I appreciate this. I will probably use virtual box environment to begin with.

sarva_v (Fri, 23 Oct 2020 06:48:38 GMT):
Hi all, I am trying to setup a multimachine demo. I experienced some errors related to setting `asLocalhost` to `false` in the Gateway connection options in javascript. Here is a stackoverflow question detailing my issue. https://stackoverflow.com/questions/64494948/hyperledger-fabric-v2-1-fabcar-with-aslocalhost-set-to-false-in-gateway-connect Any help or hints are appreciated.

dcof (Fri, 23 Oct 2020 08:58:03 GMT):
Hi, I'm wondering: in the documentation for "building your first network" it is stated to use configtxgen to create configuration transaction as .tx files. But the configtxgen documentation itself states to create such transaction as .pb files. When I try to use the inspectChannelCreateTx function of configtxgen with the .tx file, I get an excpetion. My question is now: What to use .tx or .pb? Anf if .tx : is there a way to "decode" it to see it's content?

Jonty16117 (Fri, 23 Oct 2020 10:15:34 GMT):
Or more generally, an implementation of off chain storage will be very helpful

dcof (Fri, 23 Oct 2020 12:11:12 GMT):
Does anybody know, how use the the generated anchor peer transaction via the java SDK? If I just load the file and create a updateChannelConfiguration and use channel.updateChannelConfiguration the orderer states that there is an invalid UTF-8 char. When I use the same file via the cli, it works fine. Does anyone had a similar issue and a solution for thor this?

kokolaki (Fri, 23 Oct 2020 12:44:11 GMT):
Hello, is it possible to bring up the network in fabric-samples/test-network (and generally any fabric network) with java sdk instead of stripts (network.sh, createChannel.sh, deployCC.sh, etc)? If yes, is there any java tutorial and sdk for that? Or i have to use java code to execute these commands that exist in scripts? Thanks in advance.

AndrewPark 1 (Fri, 23 Oct 2020 13:44:36 GMT):
Is there any plan to adopt mir-BFT in fabric?

BrettLogan (Fri, 23 Oct 2020 13:50:47 GMT):
Well that RFC is for ledger checkpointing, which is only used for creating a logical bootstrap for new nodes. The part to point to in it the bottom where checkpointing would enable the ability to create a a tool for archiving and pruning blocks: https://hyperledger.github.io/fabric-rfcs/text/0000-ledger-checkpointing.html#future-anticipated-related-rfcs

BrettLogan (Fri, 23 Oct 2020 14:47:17 GMT):
I see you've accepted an answer on the StackOverflow post. This was the correct issue, you were referencing Docker FQDN's which werent avaiable from your local machine

jtonline (Fri, 23 Oct 2020 15:04:41 GMT):
Hi, have you created an index for your query? https://hyperledger-fabric.readthedocs.io/en/release-2.2/couchdb_tutorial.html

ItaloCarrasco (Fri, 23 Oct 2020 18:15:49 GMT):
i read you cant create an index for queries that use "or", i know the usage of "or" isnt recommended but still there are only 50 records and the chaincode times out.

rrishmawi (Sat, 24 Oct 2020 07:02:30 GMT):
Hey Experts, I am conducting a research about Chaincode vulnerabilities, and I am in need for a real world open source Chaincodes written in GoLang? Do you know of any, I looked up Github and most of the repositories so far only examples or tutorials. I appreciate your help.

iambatman (Sat, 24 Oct 2020 07:23:12 GMT):
Now got another error `chaincode definition not agreed to by this org (LeftOrgMSP)`

githubckgoh1439 (Sat, 24 Oct 2020 12:06:25 GMT):
Has joined the channel.

MohamadSolouki (Sat, 24 Oct 2020 17:17:05 GMT):
Thank you so much for your answer. We have in-house java coding skills and so looking for choosing Java. is there any limitations except life-cycle capabilities of going with Java compared to Go in both app development and chaincode development?

icordoba (Sat, 24 Oct 2020 17:38:18 GMT):
Hi, after some time running a 1.4 blockchain network I need to create a new one for a new project. I have gone through version 2.2/2.2.1 but looks like java chaincode is still not supported. Can anybody confirm so I simply fall back to 1.4 for now? (I need java chaincode). Thanks.

aim8526 (Sat, 24 Oct 2020 18:02:03 GMT):
what was the ouput of the checkcommitreadiness now

aim8526 (Sat, 24 Oct 2020 18:02:04 GMT):
?

aim8526 (Sat, 24 Oct 2020 18:07:47 GMT):
Hi, is asset backed token can be traceable? like from which assets it's generated and track all history owner of particular token owned by me.

dgt1nsty (Sun, 25 Oct 2020 10:46:57 GMT):
Has joined the channel.

koakh (Sun, 25 Oct 2020 16:04:55 GMT):
Hello I have a issue here with hyperledger fabric 1.4.8 network and Raft protocol, everything is working well, but I'm try to crash test the network, I can shutdown 2 of my 5 nodes (orderer2, orderer2, orederer3 and ordeder4 only), and everythiing works has exprected, the only problem is when I shutdown the node1 in this case orderer1 the network fails because tries to connect to int and can't connect ``` 2020-10-24 20:28:49.466 UTC [grpc] createTransport -> DEBU 0f3 grpc: addrConn.createTransport failed to connect to {orderer1.example.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 192.168.1.61:7050: connect: no route to host". Reconnecting... 2020-10-24 20:28:49.467 UTC [grpc] HandleSubConnStateChange -> DEBU 0f4 pickfirstBalancer: HandleSubConnStateChange: 0xc0003af7e0, TRANSIENT_FAILURE ``` any help or tip, why orderer1 is required? what is supposed in other test network that I work is any orederer can be shutdown thanks in advance

koakh (Sun, 25 Oct 2020 16:04:55 GMT):
Hello I have a issue here with hyperledger fabric 1.4.8 network and Raft protocol, everything is working well, but I'm try to crash test the network, I can shutdown 2 of my 5 nodes (orderer2, orderer2, orederer3 and ordeder4 only), and everythiing works has exprected, the only problem is when I shutdown the node1 in this case orderer1 the network fails because tries to connect to int and can't connect ``` 2020-10-24 20:28:49.466 UTC [grpc] createTransport -> DEBU 0f3 grpc: addrConn.createTransport failed to connect to {orderer1.example.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 192.168.1.61:7050: connect: no route to host". Reconnecting... 2020-10-24 20:28:49.467 UTC [grpc] HandleSubConnStateChange -> DEBU 0f4 pickfirstBalancer: HandleSubConnStateChange: 0xc0003af7e0, TRANSIENT_FAILURE ``` NOTE: orderer1.example.com have the ip address192.168.1.61 any help or tip, why orderer1 is required? what is supposed in other test network that I work is any orederer can be shutdown thanks in advance

koakh (Sun, 25 Oct 2020 16:04:55 GMT):
Hello I have a issue here with hyperledger fabric 1.4.8 network and Raft protocol, everything is working well, but I'm try to crash test the network, I can shutdown 2 of my 5 nodes (orderer2, orderer2, orederer3 and orderer4 only), and everythiing works has exprected, the only problem is when I shutdown the node1 in this case orderer1 the network fails because tries to connect to int and can't connect ``` 2020-10-24 20:28:49.466 UTC [grpc] createTransport -> DEBU 0f3 grpc: addrConn.createTransport failed to connect to {orderer1.example.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 192.168.1.61:7050: connect: no route to host". Reconnecting... 2020-10-24 20:28:49.467 UTC [grpc] HandleSubConnStateChange -> DEBU 0f4 pickfirstBalancer: HandleSubConnStateChange: 0xc0003af7e0, TRANSIENT_FAILURE ``` > NOTE: orderer1.example.com have the ip address `192.168.1.61` any help or tip, why orderer1 is required? what is supposed in other test network that I work is any orederer can be shutdown, with that problem my network is far from not immune to failures if node1 is shutdown thanks in advance

yacovm (Sun, 25 Oct 2020 23:38:15 GMT):
do you use the node SDK by chance?

BrettLogan (Mon, 26 Oct 2020 01:33:06 GMT):
It is supported, in both 1.4 and 2.x, someone pointed out we need to update our documentation.

iambatman (Mon, 26 Oct 2020 04:59:53 GMT):
There was error in the command i fixed it now i am getting commitreadyness true for both orgs

iambatman (Mon, 26 Oct 2020 05:00:29 GMT):
but still getting another error `Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (LeftOrgMSP`

Amanullah68 (Mon, 26 Oct 2020 05:20:31 GMT):
Hi, I got attribute must be an array , which is working fine 2 days ago, nothing change in the code

Amanullah68 (Mon, 26 Oct 2020 05:20:33 GMT):
"Failed to invoke chaincode. cause:invoke chaincode proposal resulted in an error :: Error: transaction returned with failure: Error: attributes must be an array"

Amanullah68 (Mon, 26 Oct 2020 05:20:53 GMT):
don't know what happened to it suddenly

AndrewPark 1 (Mon, 26 Oct 2020 06:29:00 GMT):
Is there any plan to integrate & release Fabtoken?

Amanullah68 (Mon, 26 Oct 2020 06:37:06 GMT):
solved

Rachit-gaur (Mon, 26 Oct 2020 07:17:14 GMT):
Getting the following error randomly sometimes on submitting transactions, for ex. works 5 out of 6 times, fails at 6 `[TransactionEventHandler]: strategyFail: commit failure for transaction "05d587c324470de145c0452fb3099e1657e30d20a1561422e396d3733b2c2d09": Error: Commit of transaction 05d587c324470de145c0452fb3099e1657e30d20a1561422e396d3733b2c2d09 failed on peer peer0.org1.example.com:7051 with status ENDORSEMENT_POLICY_FAILUREat TransactionEventHandler.eventCallback `

Rachit-gaur (Mon, 26 Oct 2020 07:17:32 GMT):
has someone got the same issue ?

andrew-coleman (Mon, 26 Oct 2020 11:26:54 GMT):
I'm sure it's possible, but not without writing a *lot* of code. Invoking the scripts from Java is exactly what we do in the gateway integration tests: https://github.com/hyperledger/fabric-gateway-java/blob/master/src/test/java/scenario/ScenarioSteps.java#L113

Soundarya_Ayyappan (Mon, 26 Oct 2020 11:53:05 GMT):
Has joined the channel.

Soundarya_Ayyappan (Mon, 26 Oct 2020 11:53:06 GMT):
Hi All, I have reached the password limit in my Fabric CA server. Getting the error "2020/10/26 10:59:25 [DEBUG] DB: Getting identity admin 2020/10/26[ERROR] Incorrect password entered 10 times, max incorrect password limit of 10 reached 2020/10/26[INFO] x.x.x.x:xxxx POST /api/v1/enroll 401 73 'Incorrect password entered 10 times, max incorrect password limit of 10 reached'". Can anyone please suggest any method to overcome this error. Also, can anyone please confirm increasing the value to 20 by setting the environment variable FABRIC_CA_SERVER_CFG_IDENTITIES_PASSWORDATTEMPTS is the right approach. Thanks in advance!

AshutoshKumar7 (Mon, 26 Oct 2020 11:58:57 GMT):
I tried this sometime back but could not find apis for network creation. It was at using the network, creation of channels and smart contracts level. Let me know if you find something.

AshutoshKumar7 (Mon, 26 Oct 2020 12:38:20 GMT):
One org can work on behalf of other stakeholders. Like if thousands of customer for a car loan are there. There can be an organization say Transport office working on behalf of all customers.

AshutoshKumar7 (Mon, 26 Oct 2020 12:42:26 GMT):
Do you mean private data is no more private when one chaincode invokes another through stub?

miribeiro (Mon, 26 Oct 2020 13:04:44 GMT):

Clipboard - 26 de Outubro de 2020 13:04

miribeiro (Mon, 26 Oct 2020 13:06:52 GMT):
Hi! I'm running 3 orgs, each one with 1 peer, across 3 different machines ( 1 org = 1 machine). Plus 1 orderer on machine 1. It all works as expected, but when I see the logs of the orderer after making an invoke on org3, this warning appears: * 2020-10-26 12:54:30.086 UTC [orderer.common.broadcast] Handle -> WARN 049 Error reading from 10.154.0.4:42010: rpc error: code = Canceled desc = context canceled 2020-10-26 12:54:30.086 UTC [comm.grpc.server] 1 -> INFO 04a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=10.154.0.4:42010 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=7.158676ms* What is exactly happening? Orderer is broadcasting or not really?

miribeiro (Mon, 26 Oct 2020 13:06:52 GMT):
Hi! I'm running 3 orgs, each one with 1 peer, across 3 different machines ( 1 org = 1 machine). Plus 1 orderer on machine 1. It all works as expected, but when I see the logs of the orderer after making an invoke on org3, this warning appears: 2020-10-26 12:54:30.086 UTC [orderer.common.broadcast] Handle -> WARN 049 Error reading from 10.154.0.4:42010: rpc error: code = Canceled desc = context canceled 2020-10-26 12:54:30.086 UTC [comm.grpc.server] 1 -> INFO 04a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=10.154.0.4:42010 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=7.158676ms What is exactly happening? Orderer is broadcasting or not really?

MikeBauer 1 (Mon, 26 Oct 2020 22:50:43 GMT):
Has joined the channel.

MikeBauer 1 (Mon, 26 Oct 2020 22:50:43 GMT):
hello all, I have a question about getStateByPartialCompositeKey in the node.js SDK... currently my object is being stored like so using createCompositeKey: { "id": "\u0000org.hyperledger.blockchain-carbon-accounting.emissionslist\u0000\"11208\"\u0000\"12345678901\"\u0000\"2020-10-01T00\u000000\u000000\"\u0000\"2020-10-26T16\u000009\u000014\"\u0000", "key": "\u0000org.hyperledger.blockchain-carbon-accounting.emissionslist\u0000\"11208\"\u0000\"12345678901\"\u0000\"2020-10-01T00\u000000\u000000\"\u0000\"2020-10-26T16\u000009\u000014\"\u0000", "value": { "rev": "1-b844da2dc0aa145266d6950de3b3c7fe" }, "doc": { "_id": "\u0000org.hyperledger.blockchain-carbon-accounting.emissionslist\u0000\"11208\"\u0000\"12345678901\"\u0000\"2020-10-01T00\u000000\u000000\"\u0000\"2020-10-26T16\u000009\u000014\"\u0000", "_rev": "1-b844da2dc0aa145266d6950de3b3c7fe", "class": "org.hyperledger.blockchain-carbon-accounting.emissionsrecord", "currentState": null, "emissionsAmount": 0.2137651591637609, "emissionsUom": "TONS", "fromDate": "2020-10-01T00:00:00", "key": "\"11208\":\"12345678901\":\"2020-10-01T00:00:00\":\"2020-10-26T16:09:14\"", "partyId": "12345678901", "thruDate": "2020-10-26T16:09:14", "utilityId": "11208", "~version": "CgMBCAA=" } } I am trying to retrieve it like so: const allResults = []; // range query with empty string for startKey and endKey does an open-ended query of all assets in the chaincode namespace. const iterator = await this.ctx.stub.getStateByPartialCompositeKey(this.name, ['11208']); let result = await iterator.next(); while (!result.done) { const strValue = Buffer.from(result.value.value.toString()).toString('utf8'); let record; try { record = JSON.parse(strValue); } catch (err) { console.log(err); record = strValue; } allResults.push({Key: result.value.key, Record: record}); result = await iterator.next(); } return JSON.stringify(allResults); But getting an empty array. Am I misunderstanding the documentation on this? this.name should refer to the correct object, and 11208 is part of the composite key

miribeiro (Tue, 27 Oct 2020 01:41:40 GMT):
Hello! I am facing similar issues. I tried to set asLocalhost to false on javascript gateway connection and set the grpcs of peers with the internal IP's of the machines. However, I got this error: [SingleQueryHandler]: evaluate: message=No peers available to query. Errors: ["14 UNAVAILABLE: failed to connect to all addresses"], stack=FabricError: No peers available to query. Errors: ["14 UNAVAILABLE: failed to connect to all addresses"] Did this also happened to you? Thank you in advance!

ckong (Tue, 27 Oct 2020 02:45:16 GMT):
Is there a guide I can follow on how to completely uninstall Hyperledger Fabric from my system?

sanket1211 (Tue, 27 Oct 2020 06:24:13 GMT):
Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051

davidkel (Tue, 27 Oct 2020 08:44:13 GMT):
what version of fabric-shim are you using ? due to a subtle change in the way iterators work between 1.4 and 2.x the above code would miss a value in 1.4 but work in 2.x

chintanr11 (Tue, 27 Oct 2020 11:21:55 GMT):
No, its just different use case. If you are using chaincode to chaincode for private data, for the first chaincode ( invoked from CLI, you can have the args passed as transient fields) - but for the second chaincode the call will be made using normal arguments as suggested in the InvokeChaincode function signature.

chintanr11 (Tue, 27 Oct 2020 11:23:03 GMT):
In the new Fabric 2.2.x, I wanted to know if we can configure specific logging spec over "info" mode in peers, to view the logs of execution of external chaincode builder scripts. Or do we any other mechanism to achieve the same?

deployer21 (Tue, 27 Oct 2020 13:13:43 GMT):
Hello, is it the normal behaviour when you create a new entry of ObjectA, it creates null objects of ObjectB and ObjectC? Because it's happening.. when I try to create a new entry, it creates null objects for other entries...

MikeBauer_1 (Tue, 27 Oct 2020 13:42:38 GMT):
my package.json says "fabric-shim": "^2.0.0"

davidkel (Tue, 27 Oct 2020 14:11:45 GMT):
If you are using a fabric 2.x network then I would suggest using the latest 2.2 shim, you would be using 2.0.0 which may have issues regardless

MikeBauer_1 (Tue, 27 Oct 2020 14:24:13 GMT):
thanks for all the replies. It actually looks like maybe I've been on 2.2 this whole time, was looking at an older package.json

jugma (Tue, 27 Oct 2020 14:59:56 GMT):
I am trying to run the off-chain-data example in fabric 2.2.1. When I run 'node blockEventListener.js' I get the following runtime error in line 119 (const listener = await network.addBlockListener( ....).

jugma (Tue, 27 Oct 2020 15:01:06 GMT):
{ blockNumber: Long { low: 1, high: 0, unsigned: true }, blockData: { header: { number: [Long], previous_hash: , data_hash: }, data: { data: [Array] }, metadata: { metadata: [Array] } }, getTransactionEvents: [Function (anonymous)] }

jugma (Tue, 27 Oct 2020 15:01:22 GMT):
Please help

MikeBauer_1 (Tue, 27 Oct 2020 17:41:54 GMT):
i finally solved this! The issue is that the args for key values needs to have literal quotation marks. So you must escape the values like so: const iterator = await this.ctx.stub.getStateByPartialCompositeKey(this.name, [`\"${utilityId}\"`, `\"${partyId}\"`]);

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X.

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel`

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: ` echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel ` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` /Users/pramitamitra/E.C.R.I.C.-Development/2020/hlfExample/fabricscripts/configtx.yaml Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below command: `echo Regenerating the config folder ` `configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid ` `configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel ` `configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel ` `configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

Swhite215 (Tue, 27 Oct 2020 17:46:54 GMT):
Hello, I am using HLF 1.4.X. When I try to run the below commands: `echo Regenerating the config folder ` `configtxgen -outputBlock config/genesis.block -profile LoanchainOrdererGenesis -channelID testchainid ` `configtxgen -outputCreateChannelTx config/channel.tx -profile LoanchainChannel -channelID mychannel ` `configtxgen -outputAnchorPeersUpdate config/engineeringMSPanchors.tx -profile LoanchainChannel -asOrg engineering -channelID mychannel ` `configtxgen -outputAnchorPeersUpdate config/manufacturedMSPanchors.tx -profile LoanchainChannel -asOrg manufacturing -channelID mychannel` I am seeing this error: `2020-10-27 13:37:24.987 EDT [common.tools.configtxgen] main -> FATA 004 Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined` Am I setting my policies incorrectly in my configtx.yaml?

vsadriano (Tue, 27 Oct 2020 17:48:09 GMT):
Hi! Is there a specific channel for chaincode instantiate operations? Tks!

vsadriano (Tue, 27 Oct 2020 17:48:09 GMT):
Hi! Is there a specific channel for chaincode instantiate operations questions? Tks!

phl (Wed, 28 Oct 2020 09:43:46 GMT):
Has joined the channel.

phl (Wed, 28 Oct 2020 09:43:46 GMT):
Hello, Is there special documentation for the different packages that are sent during the transaction flow? As in detailed structure and contents of these messages.

MrSE400 (Wed, 28 Oct 2020 10:29:59 GMT):
Has joined the channel.

sanjaysb (Wed, 28 Oct 2020 10:33:43 GMT):
This is a statement from hyperledger fabric node sdk v2.2 documentation in the section "Migrating client applications from v1.4 to v2.0": "Note that the SDK no longer aims to provide administrative and management capability. The command-line interface should be used for these operations." Does this mean that the new sdk does not support actions like install and instantiation. I understand that in v2.2 the chaincode lifecycle is different and the steps are package and install chaincode, approve and commit chaincode definition. Can these actions be performed using an sdk?

sanket1211 (Wed, 28 Oct 2020 14:15:38 GMT):
DiscoveryService: mychannel error: access denied

iambatman (Thu, 29 Oct 2020 10:50:23 GMT):
Is there any slack channel for fabric developers??

rbole (Thu, 29 Oct 2020 12:04:20 GMT):
Hi, has anybody successfully tried this external chaincode example https://github.com/hyperledger/fabric-samples/tree/master/asset-transfer-basic/chaincode-external ?

kokolaki (Thu, 29 Oct 2020 12:36:58 GMT):
Hello, does anyone have a tutorial to deploy fabric version 2.x network to multiple machines?

alejoacosta (Thu, 29 Oct 2020 15:38:26 GMT):
Hi team! When trying to instantiate sample chaincode

alejoacosta (Thu, 29 Oct 2020 15:41:09 GMT):
Hi team, when trying to `peer chaincode instantiate ` we get the following error at the CLI command line: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 ``` The peer logs show the following: ``` 2020-10-29 15:20:31.341 UTC [gossip.comm] Send -> DEBU 5ecf Entering, sending GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 90 bytes, Signature: 103 bytes to  1 peers 2020-10-29 15:20:31.341 UTC [gossip.comm] sendToEndpoint -> DEBU 5ed0 Entering, Sending to peer0.seller.dlt.ericsson.com:7051 , msg: GossipMessage: tag:EMPTY alive_msg: timestamp: > , Envelope: 90 bytes, Signature: 103 bytes 2020-10-29 15:20:31.341 UTC [gossip.comm] sendToEndpoint -> DEBU 5ed1 Exiting 2020-10-29 15:20:31.397 UTC [chaincode] Launch -> DEBU 5ed2 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1         /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit         /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed3 waiting for container(mycc-1.0) lock 2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed4 got container (mycc-1.0) lock 2020-10-29 15:20:31.397 UTC [dockercontroller] stopInternal -> DEBU 5ed5 stopping container id=dev-peer0.buyer.dlt.ericsson.com-mycc-1.0 2020-10-29 15:20:31.398 UTC [dockercontroller] stopInternal -> DEBU 5ed6 stop container result error="Container not running: dev-peer0.buyer.dlt.ericsson.com-mycc-1.0" 2020-10-29 15:20:31.398 UTC [dockercontroller] stopInternal -> DEBU 5ed7 killing container id=dev-peer0.buyer.dlt.ericsson.com-mycc-1.0 2020-10-29 15:20:31.398 UTC [dockercontroller] stopInternal -> DEBU 5ed8 kill container result id=dev-peer0.buyer.dlt.ericsson.com-mycc-1.0 error="Container not running: dev-peer0.buyer.dlt.ericsson.com-mycc-1.0" 2020-10-29 15:20:31.399 UTC [dockercontroller] stopInternal -> DEBU 5ed9 removing container id=dev-peer0.buyer.dlt.ericsson.com-mycc-1.0 2020-10-29 15:20:31.417 UTC [dockercontroller] stopInternal -> DEBU 5eda remove container result id=dev-peer0.buyer.dlt.ericsson.com-mycc-1.0 error=null 2020-10-29 15:20:31.417 UTC [container] unlockContainer -> DEBU 5edb container lock deleted(mycc-1.0) 2020-10-29 15:20:31.417 UTC [chaincode] Launch -> DEBU 5edc launch complete 2020-10-29 15:20:31.417 UTC [chaincode] Deregister -> DEBU 5edd deregister handler: mycc:1.0 2020-10-29 15:20:31.417 UTC [endorser] callChaincode -> INFO 5ede [mychannel][502c46f0] Exit chaincode: name:"lscc"  (35376ms) 2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> ERRO 5edf [mychannel][502c46f0] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1         /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit         /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> DEBU 5ee0 [mychannel][502c46f0] Exit 2020-10-29 15:20:31.417 UTC [lockbasedtxmgr] Done -> DEBU 5ee1 Done with transaction simulation / query execution [502c46f068a775e5966ee76e646b9444410e582877e12bd2b69aa89102061299] 2020-10-29 15:20:31.417 UTC [endorser] func1 -> DEBU 5ee2 Exit: request from 192.168.0.6:50290 ``` Any suggestions about where to look at?

alejoacosta (Thu, 29 Oct 2020 15:41:09 GMT):
Hi team, when trying to `peer chaincode instantiate ` we get the following error at the CLI command line: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 ``` The peer logs show the following: ``` 2020-10-29 15:20:31.397 UTC [chaincode] Launch -> DEBU 5ed2 stopping due to error while launching: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1         /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit         /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed3 waiting for container(mycc-1.0) lock 2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed4 got container (mycc-1.0) lock 2020-10-29 15:20:31.417 UTC [container] unlockContainer -> DEBU 5edb container lock deleted(mycc-1.0) 2020-10-29 15:20:31.417 UTC [chaincode] Launch -> DEBU 5edc launch complete 2020-10-29 15:20:31.417 UTC [chaincode] Deregister -> DEBU 5edd deregister handler: mycc:1.0 2020-10-29 15:20:31.417 UTC [endorser] callChaincode -> INFO 5ede [mychannel][502c46f0] Exit chaincode: name:"lscc"  (35376ms) 2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> ERRO 5edf [mychannel][502c46f0] failed to invoke chaincode name:"lscc" , error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1         /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit         /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed 2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> DEBU 5ee0 [mychannel][502c46f0] Exit 2020-10-29 15:20:31.417 UTC [lockbasedtxmgr] Done -> DEBU 5ee1 Done with transaction simulation / query execution [502c46f068a775e5966ee76e646b9444410e582877e12bd2b69aa89102061299] 2020-10-29 15:20:31.417 UTC [endorser] func1 -> DEBU 5ee2 Exit: request from 192.168.0.6:50290 ``` Any suggestions about where to look at?

Hong3Nguyen (Thu, 29 Oct 2020 18:27:06 GMT):
Hi I get the error do you know what is the main idea for it error: [Channel.js]: Channel:channel12 received discovery error:failed constructing descriptor for chaincodes: 2020-10-29T12:28:31.132Z - error: [DiscoveryEndorsementHandler]: endorse - no endorsement plan found for {"chaincodes":[{"name":"ticketCC-ticket0"}]} Failed to submit transaction: Error: No endorsement plan available for {"chaincodes":[{"name":"ticketCC-ticket0"}]} Failed constructing descriptor for chaincode chaincodes: ,: cannot satisfy any principal combination

user216 (Fri, 30 Oct 2020 14:59:33 GMT):
Has joined the channel.

user216 (Fri, 30 Oct 2020 14:59:34 GMT):
Hello. Is any fabric certificate managing app/system ? In which way (if I am an administrator of network) I should know that certificate is need to be updated in nearest future ?

chinmsay213211 (Fri, 30 Oct 2020 18:27:35 GMT):
Hi Alejoacosta, Seems there could be issue while chain code installation issue. Also please check if the version of chaincode while installation is same as chaincode instantiation.

BrettLogan (Sat, 31 Oct 2020 03:28:24 GMT):
The go-sdk supports admin operations. The Node SDK no longer does.

BrettLogan (Sat, 31 Oct 2020 03:30:23 GMT):
It really depends on how you installed it. What method did you use?

rbole (Sun, 01 Nov 2020 10:46:54 GMT):
I`m looking for an example for the External chaincode launcher without docker ?

koakh (Sun, 01 Nov 2020 15:30:11 GMT):
thanks @yacovm yes I use node sdk. but it is not related this error occur just by invoke anything in cli for ex. with peer invoke sorry for latte answear is this related with anchor node? thanks

BrettLogan (Mon, 02 Nov 2020 01:06:46 GMT):
What are you looking to use. Fabric has a built in external chaincode server you can use now (which makes use of the external builder under the covers). With this you build and start the chaincode server yourself, and then just provide the IP, Port, and TLS info if enabled for the chaincode server

BrettLogan (Mon, 02 Nov 2020 01:07:07 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.0/cc_service.html

BrettLogan (Mon, 02 Nov 2020 01:07:15 GMT):
The instructions are pretty extensive for it

ckong (Mon, 02 Nov 2020 02:10:47 GMT):
I followed the installation steps as detailed in https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html, with the command `curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.18 -s`

ckong (Mon, 02 Nov 2020 02:13:11 GMT):
Might be a dumb question, but what symbols can I use in naming my principals - e.g. `This-Org-MSP`, `That_Org_MSP`, `Another.MSP`?

BrettLogan (Mon, 02 Nov 2020 02:13:46 GMT):
Then you need only do a `./network.sh down` from the test network directory in the fabric samples directory to clean up docker, then simply delete the fabric-samples directory

BrettLogan (Mon, 02 Nov 2020 02:14:04 GMT):
You are free to delete any remaining docket images you have

ckong (Mon, 02 Nov 2020 02:14:34 GMT):
Sounds good, I'll do just that, thanks!

ckong (Mon, 02 Nov 2020 02:15:26 GMT):
Quick question, is there more than one way to install HLF?

rbole (Mon, 02 Nov 2020 06:23:18 GMT):
ok thanks, I know this docs, my question to this example is, which TLS cert is used by this shim.chaincode server. There is one CC server and we have some different peers as consumers. They connect to the chaincode server by the connection.json file, which is included in the tar.gz package. And this has to be individual by each peer, right?

AbhijeetSamanta (Mon, 02 Nov 2020 08:12:14 GMT):
Hi community,

AbhijeetSamanta (Mon, 02 Nov 2020 08:12:14 GMT):
Hi community, I want to implement Off Chain data in hyperledger fabric I checked https://github.com/hyperledger/fabric-samples/tree/release-1.4/off_chain_data however instead of couch_DB I want to implement on Amazon DynamoDB. Any help will be great for me.

danchi (Mon, 02 Nov 2020 08:42:09 GMT):
Has joined the channel.

danchi (Mon, 02 Nov 2020 08:42:10 GMT):
Hi, I need some help to understand how to implement REST API for fabric. I see there is documentation for old versions but for latest one there is no any documentation.

danchi (Mon, 02 Nov 2020 08:42:10 GMT):
Hi, I need some help to understand how to implement REST API for fabric. I see there is documentation for old versions but for latest one there is no any documentation for fabric-sdk-node

danchi (Mon, 02 Nov 2020 08:42:10 GMT):
Hi, I need some help to understand how to implement REST API for fabric. I see there is documentation for old versions but for latest one there is no any documentation.

AbhijeetSamanta (Mon, 02 Nov 2020 08:43:29 GMT):
Hi community, I want to implement Off Chain data in hyperledger fabric I checked https://github.com/hyperledger/fabric-samples/tree/release-1.4/off_chain_data however instead of couch_DB I want to implement on Amazon DynamoDB. Any help will be great for me.

heena066 (Mon, 02 Nov 2020 09:29:58 GMT):
Has joined the channel.

danchi (Mon, 02 Nov 2020 11:51:50 GMT):
#fabric-sdk-node: Hi, I need some help to understand how to implement REST API for fabric. I see there is documentation for old versions but for latest one there is no any documentation.

AnandhakumarPalanisamy (Mon, 02 Nov 2020 12:22:18 GMT):
Has joined the channel.

AnandhakumarPalanisamy (Mon, 02 Nov 2020 12:22:18 GMT):
Dear all, I have a doubt regarding the *minimum system requirements for hyperledger explorer*. I am using a system with 4GB RAM and 80 GB SSD. I am using the hyperledger explorer docker images with tag 1.1.2 *When I run the _top_ command* , I see a process with random name consuming 197% of CPU and 60% of memory (https://user-images.githubusercontent.com/30879156/97715100-46477d80-1ac2-11eb-92a3-a121e512d81e.png) *output of _docker stats_: *shows hyperleger explorer db service is consuming 197 % of CPU and 60% of memory (https://user-images.githubusercontent.com/30879156/97715625-ebfaec80-1ac2-11eb-993c-2e5c15b391ed.png) I am not sure whether that random process is linked with hyperledger_explorer_db container. If I remove the hyperledger explorer services, the random process disappears and CPU utilization and memory becomes normal . I initially thought my system was under DDoS Trojan attacks as specified here https://admin-ahead.com/forum/server-security-hardening/unix-trojan-ddos_xor-1-chinese-chicken-multiplatform-dos-botnets-trojan/ But now i doubt that the random process is linked with hyperledger explorer db. Why hyperledger explorer db docker container is starting a random process in the host machine and consumes 190 % of CPU and 60 % memory. ? I would require help for the following questions : - Does anyone have experienced this behavior when using hyperledger explorer ? - Is this a normal behaviour of hyperledger explorer db docker services to consume this much CPU and memory ? - What is the minimum system requirements to run hyperledger explorer docker services Thanks & regards, Anand

yacovm (Mon, 02 Nov 2020 20:55:36 GMT):
@BrettLogan - > For other technical reasons we still haven't pulled in the commit from BCCSP that removed support for RSA in any either branch. Thats not to say we won't in the future, but right now we still support RSA on the 2.x versions as well if you are building the master branch (since we've never release CA 2.x) it was removed in 2.0 branch

BrettLogan (Mon, 02 Nov 2020 21:04:31 GMT):
We were talking out of band, we were referring to the fact that the CA still supported RSA, so why doesn't fabric.

BrettLogan (Mon, 02 Nov 2020 21:04:31 GMT):
We were talking out of band, we were referring to the fact that the CA still supported RSA, so why doesn't fabric. Should have left my comment in that thread instead of here, as it was out of context

MikeBauer_1 (Mon, 02 Nov 2020 22:58:39 GMT):
Hi everyone, I am having an issue deploying chain code to an EC2 amazon instance. When deploying locally on mac os x, everything is working fine. When I deploy the same chain code using the same script on the ubuntu 16 EC2 node, I am not able to query the chain code locally and it is not showing up in the couch db. Has anyone experienced this?

phl (Tue, 03 Nov 2020 09:27:00 GMT):
Hello, Is there special documentation for the different packages that are sent during the transaction flow? As in detailed structure and contents of these messages.

phl (Tue, 03 Nov 2020 09:27:00 GMT):
Hello, Is there special documentation for the different packages that are sent during the transaction flow? I can not find any specific documentation on that. Is the source code the only documentation in that area?

PJHaga (Tue, 03 Nov 2020 10:15:23 GMT):
Hi all, is there an option within fabric to configure if a chaincode event is only send once for example? So in the case that I have 2 peers for an organization, only 1 of the peers sends the chaincode event?

AnandhakumarPalanisamy (Tue, 03 Nov 2020 10:17:45 GMT):
Dear all, I have a doubt regarding the *minimum system requirements for hyperledger explorer*. I am using a system with 4GB RAM and 80 GB SSD. I am using the hyperledger explorer docker images with tag 1.1.2 *When I run the _top_ command* , I see a process with random name consuming 197% of CPU and 60% of memory (https://user-images.githubusercontent.com/30879156/97715100-46477d80-1ac2-11eb-92a3-a121e512d81e.png) *output of _docker stats_: *shows hyperleger explorer db service is consuming 197 % of CPU and 60% of memory (https://user-images.githubusercontent.com/30879156/97715625-ebfaec80-1ac2-11eb-993c-2e5c15b391ed.png) I am not sure whether that random process is linked with hyperledger_explorer_db container. If I remove the hyperledger explorer services, the random process disappears and CPU utilization and memory becomes normal . I initially thought my system was under DDoS Trojan attacks as specified here https://admin-ahead.com/forum/server-security-hardening/unix-trojan-ddos_xor-1-chinese-chicken-multiplatform-dos-botnets-trojan/ But now i doubt that the random process is linked with hyperledger explorer db. Why hyperledger explorer db docker container is starting a random process in the host machine and consumes 190 % of CPU and 60 % memory. ? I would require help for the following questions : - Does anyone have experienced this behavior when using hyperledger explorer ? - Is this a normal behaviour of hyperledger explorer db docker services to consume this much CPU and memory ? - What is the minimum system requirements to run hyperledger explorer docker services Thanks & regards, Anand

SecMS (Tue, 03 Nov 2020 13:08:56 GMT):
Hi there, I'm looking for a (more detailed) design document of the hashgraph based ordering service - is there such a document? (checked the wiki, read the docs and some hedera documentations but could find anything useful)

bestbeforetoday (Tue, 03 Nov 2020 13:56:23 GMT):
There is some documentation on transaction flow here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/txflow.html

bestbeforetoday (Tue, 03 Nov 2020 13:57:35 GMT):
The protobuf messages passed around in those flows are defined in this project: https://github.com/hyperledger/fabric-protos

bestbeforetoday (Tue, 03 Nov 2020 13:58:49 GMT):
The protobuf definition files do contain some comments but it's not trivial to understand how they are structured. The SDKs are usually used to avoid the client application needing to know about the protobuf structure and how to coordinate the transaction flow

bestbeforetoday (Tue, 03 Nov 2020 14:01:16 GMT):
I'm not sure if it's spelled out in the documentation page above, but a query (where you invoke a transaction to read some ledger state but don't update the ledger) is achieved by just doing the endorsement steps of a transaction flow, and then not going on to send an endorsed transaction to the orderer to be committed. Again, the SDKs generally take care of these mechanics on behalf of a client application.

bestbeforetoday (Tue, 03 Nov 2020 14:03:36 GMT):
In case it's useful for anyone else... answered in the #fabric channel in this thread: https://chat.hyperledger.org/channel/fabric?msg=rTCdZnxN7CGgWrg4j

Benjamin (Tue, 03 Nov 2020 14:27:39 GMT):
Hi everyone. I have one question. Environment: org 1 Count, peer 1 Count, channel 1 Count peer lifecycle chaincode approveformyorg -o ord3.jica.or.kr:32201 --ordererTLSHostnameOverride ord3.jica.or.kr --tls --cafile $ORDERER_CA --channelID $CHNAME --name ${CCNAME} --version ${VERSION} --init-required --package-id ${PACKAGE_ID} --sequence ${SEQUENCE} --waitForEvent Result: 2020-11-03 20:09:43.861 KST [chaincodeCmd] ClientWait -> INFO 047 txid [3071bbcbf19c0c338dd2e993688329b621930d76423f09e8fa4eaed96233ed7c] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.org1.jica.or.kr:32101 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) Peer Log: ``` 2020-11-03 20:09:19.035 KST [vscc] Validate -> ERRO abc VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy 2020-11-03 20:09:19.035 KST [committer.txvalidator] validateTx -> ERRO abd Dispatch for transaction txId = 168176d715767d8aba0f0ca847ef8f9092490dac0e1d50aa3460cdcdf130b5cb returned error: validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy ``` https://hyperledger-fabric.readthedocs.io/ja/latest/deploy_chaincode.html#endorsement-policy-failure I also checked the solution provided by this link, but nothing else was set up. What could be the problem? Help me, please!! (T_T)

Benjamin (Tue, 03 Nov 2020 14:27:39 GMT):
Hi everyone. I have one question. Environment: org 1 Count, peer 1 Count, channel 1 Count ``` peer lifecycle chaincode approveformyorg -o ord3.jica.or.kr:32201 --ordererTLSHostnameOverride ord3.jica.or.kr --tls --cafile $ORDERER_CA --channelID $CHNAME --name ${CCNAME} --version ${VERSION} --init-required --package-id ${PACKAGE_ID} --sequence ${SEQUENCE} --waitForEvent ``` Result: ``` 2020-11-03 20:09:43.861 KST [chaincodeCmd] ClientWait -> INFO 047 txid [3071bbcbf19c0c338dd2e993688329b621930d76423f09e8fa4eaed96233ed7c] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.org1.jica.or.kr:32101 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ``` Peer Log: ``` 2020-11-03 20:09:19.035 KST [vscc] Validate -> ERRO abc VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy 2020-11-03 20:09:19.035 KST [committer.txvalidator] validateTx -> ERRO abd Dispatch for transaction txId = 168176d715767d8aba0f0ca847ef8f9092490dac0e1d50aa3460cdcdf130b5cb returned error: validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy ``` https://hyperledger-fabric.readthedocs.io/ja/latest/deploy_chaincode.html#endorsement-policy-failure I also checked the solution provided by this link, but nothing else was set up. What could be the problem? Help me, please!! (T_T)

Benjamin (Tue, 03 Nov 2020 14:27:39 GMT):
Hi everyone. I have one question. Environment: 1 org, 1 peer, 1 channel, 3 Orderers ``` peer lifecycle chaincode approveformyorg -o ord3.jica.or.kr:32201 --ordererTLSHostnameOverride ord3.jica.or.kr --tls --cafile $ORDERER_CA --channelID $CHNAME --name ${CCNAME} --version ${VERSION} --init-required --package-id ${PACKAGE_ID} --sequence ${SEQUENCE} --waitForEvent ``` Result: ``` 2020-11-03 20:09:43.861 KST [chaincodeCmd] ClientWait -> INFO 047 txid [3071bbcbf19c0c338dd2e993688329b621930d76423f09e8fa4eaed96233ed7c] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.org1.jica.or.kr:32101 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ``` Peer Log: ``` 2020-11-03 20:09:19.035 KST [vscc] Validate -> ERRO abc VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy 2020-11-03 20:09:19.035 KST [committer.txvalidator] validateTx -> ERRO abd Dispatch for transaction txId = 168176d715767d8aba0f0ca847ef8f9092490dac0e1d50aa3460cdcdf130b5cb returned error: validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy ``` https://hyperledger-fabric.readthedocs.io/ja/latest/deploy_chaincode.html#endorsement-policy-failure I also checked the solution provided by this link, but nothing else was set up. What could be the problem? Help me, please!! (T_T)

Benjamin (Tue, 03 Nov 2020 14:27:39 GMT):
Hi everyone. I have one question. Environment: 1 org, 1 peer, 1 channel, 3 Orderers ``` peer lifecycle chaincode approveformyorg -o ord3.jica.or.kr:32201 --ordererTLSHostnameOverride ord3.jica.or.kr --tls --cafile $ORDERER_CA --channelID $CHNAME --name ${CCNAME} --version ${VERSION} --init-required --package-id ${PACKAGE_ID} --sequence ${SEQUENCE} --waitForEvent ``` Result: ``` 2020-11-03 20:09:43.861 KST [chaincodeCmd] ClientWait -> INFO 047 txid [3071bbcbf19c0c338dd2e993688329b621930d76423f09e8fa4eaed96233ed7c] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer0.org1.jica.or.kr:32101 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE) ``` Peer Log: ``` 2020-11-03 20:09:19.035 KST [vscc] Validate -> ERRO abc VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy 2020-11-03 20:09:19.035 KST [committer.txvalidator] validateTx -> ERRO abd Dispatch for transaction txId = 168176d715767d8aba0f0ca847ef8f9092490dac0e1d50aa3460cdcdf130b5cb returned error: validation of endorsement policy for collection _implicit_org_org1MSP chaincode _lifecycle in tx 7:0 failed: signature set did not satisfy policy ``` https://hyperledger-fabric.readthedocs.io/ja/latest/deploy_chaincode.html#endorsement-policy-failure I also checked the solution provided by this link, but nothing else was set up. What could be the problem? Help me, please!! (T_T) Thanks for anyone advise me.

phl (Tue, 03 Nov 2020 14:48:12 GMT):
Thank you very much. The link to this specific repository really helps me. I don`t think I would have found it. Thanks for the note with the endorsement only transactions to read. Have a nice day

bhuwanadhikari (Tue, 03 Nov 2020 15:45:17 GMT):
Hello! I modified test-network to 4-org network but I can't use it with commercial paper. I now want modify commercial paper to 4-org, what should I do to make it 4-org network. I don't know from where pem in ``connection-org1.yaml`` came from. How to create same file for 3rd and 4th organization? Please help me

bestbeforetoday (Tue, 03 Nov 2020 17:56:08 GMT):
:thumbsup:

jainsamyak (Wed, 04 Nov 2020 08:07:50 GMT):
Has joined the channel.

jainsamyak (Wed, 04 Nov 2020 08:07:52 GMT):
Hello all, I've encountered an issue wile deploying a REST API on AWS Lambda to interact with the Fabric network . https://stackoverflow.com/questions/64676031/how-to-resolve-peer-orderer-and-ca-hostnames-for-rest-api-on-lambda. Appreciate your help. Thanks & Reagrds from India

manu461 (Wed, 04 Nov 2020 08:20:33 GMT):
Has joined the channel.

manu461 (Wed, 04 Nov 2020 08:20:48 GMT):
Hello Everyone, I have a question. Is there any way to delegate cryptographic operations performed by Hyperledger Fabric nodes(client nodes, orderer nodes, and peers) to Hashicorp Vault? Allowing peers and orderer nodes to sign and endorse transactions without exposing their private keys. Hyperledger Fabric officially supports HSM but I am unable to find any relevant document to do the same by replacing HSM with Hashicorp Vault. https://stackoverflow.com/questions/64636337/hyperledger-fabric-how-to-delegate-cryptographic-operations-to-hashicorp-vault

bestbeforetoday (Wed, 04 Nov 2020 09:32:37 GMT):
Reply to duplicate question in #fabric channel: https://chat.hyperledger.org/channel/fabric?msg=tMrwvvNrJPpwYWHwb

Vats 25 (Wed, 04 Nov 2020 10:02:47 GMT):
Has joined the channel.

Unicow (Wed, 04 Nov 2020 16:22:55 GMT):
Hello all, is there any tutorial/help/project that deploys HLF v2.x to Kubernetes? all the tutorials that i've found are on HLF v1.4 or older..

linuxjavier (Thu, 05 Nov 2020 10:33:28 GMT):
Has joined the channel.

linuxjavier (Thu, 05 Nov 2020 10:33:29 GMT):
hi everybody, i am learning about Hyperledger fabric release 2.2

linuxjavier (Thu, 05 Nov 2020 10:33:39 GMT):
and i am not able to interact with network through peer CLI

linuxjavier (Thu, 05 Nov 2020 10:34:06 GMT):
network.sh up, creatChannel, deployCC works

linuxjavier (Thu, 05 Nov 2020 10:34:37 GMT):
but when i tried to use peer chaincode invoke -o localhost:7050... to initialize ledger

linuxjavier (Thu, 05 Nov 2020 10:35:08 GMT):
if I run in my localhost powershell, windows aks me how I would like to open peer binary I suppose

linuxjavier (Thu, 05 Nov 2020 10:36:14 GMT):
if I run CLI in the peer, loadCertificates warnings

linuxjavier (Thu, 05 Nov 2020 10:36:19 GMT):
any help?

linuxjavier (Thu, 05 Nov 2020 10:37:38 GMT):
2020-11-05 10:35:44.490 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/etc/hyperledger/fabric/msp/cacerts\ca.org1.example.com-cert.pem]: [could not read file /etc/hyperledger/fabric/msp/cacerts\ca.org1.example.com-cert.pem: open /etc/hyperledger/fabric/msp/cacerts\ca.org1.example.com-cert.pem: no such file or directory]

linuxjavier (Thu, 05 Nov 2020 10:37:40 GMT):
thanks

linuxjavier (Thu, 05 Nov 2020 10:38:52 GMT):
i have tried to set up environment variables like export CORE_PEER_TLS_ENABLED=true export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=localhost:7051, https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html#interacting-with-the-network

linuxjavier (Thu, 05 Nov 2020 10:39:05 GMT):
i am in this point in the tutorial https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html#interacting-with-the-network

bestbeforetoday (Thu, 05 Nov 2020 14:00:51 GMT):
The mix of `/` and `\` path separators looks a little suspicious to me

sudobangbang (Thu, 05 Nov 2020 15:33:59 GMT):
Has joined the channel.

linuxjavier (Thu, 05 Nov 2020 15:59:48 GMT):
finally, i have decided to install hyperledger/fabric-samples in WSL2 Ubuntu

linuxjavier (Thu, 05 Nov 2020 15:59:52 GMT):
Docker installed in windows

linuxjavier (Thu, 05 Nov 2020 16:00:11 GMT):
and configuring linux groups to being able to use docker commands in Ubuntu

linuxjavier (Thu, 05 Nov 2020 16:00:15 GMT):
now it works

linuxjavier (Thu, 05 Nov 2020 16:00:23 GMT):
separators were key, true

linuxjavier (Thu, 05 Nov 2020 16:00:30 GMT):
i can carry on with tutorial

linuxjavier (Thu, 05 Nov 2020 16:00:33 GMT):
thanks

linuxjavier (Thu, 05 Nov 2020 16:01:16 GMT):
building peers from a linux distro, eliminates the problem of file not found erros for separators

mcoblenz (Thu, 05 Nov 2020 17:56:04 GMT):
Is there a current recommendation for which language one should start writing new smart contracts in? It seemed like Go used to be the best-supported, but I'm seeing a lot of talk about Node.js now. I'm also seeing conflicting documentation about which of those is considered low-level.

MikeBauer_1 (Thu, 05 Nov 2020 21:56:46 GMT):
hello everyone - I'm trying to enroll over an ec2 network where the remote node is being called like so: fabric-ca-client enroll -u https://admin:adminpw@:8054 --csr.hosts --caname ca-auditor2 --tls.certfiles ${PWD}/organizations/fabric-ca/auditor2/tls-cert.pem the result I'm getting however, is: x509: cannot validate certificate for because it doesn't contain any IP SANs Has anyone encountered this?

MikeBauer_1 (Thu, 05 Nov 2020 21:58:02 GMT):
this is showing up in the decrypted key: Subject Alternative Names: peer1.auditor1.carbonAccounting.com, localhost

randyshu (Fri, 06 Nov 2020 06:27:02 GMT):
Has joined the channel.

kokolaki (Fri, 06 Nov 2020 07:03:59 GMT):
Hello, I have a question. Over a period of time, the entire blockchain may become too large for a node to store it on its disk. How this is solved in hyperledger fabric? What are the solutions? Thanks in advance.

manu461 (Fri, 06 Nov 2020 09:11:51 GMT):
Can someone help me with this ?

bestbeforetoday (Fri, 06 Nov 2020 10:25:42 GMT):
I think both of those chaincode languages are well supported. When it comes to low-level, I think that generally refers to whether the chaincode is built using the (lower-level) Shim API or the (higher-level) Contract API. For Go that would be those two: - https://github.com/hyperledger/fabric-chaincode-go - https://github.com/hyperledger/fabric-contract-api-go

bestbeforetoday (Fri, 06 Nov 2020 10:28:05 GMT):
For Node, the lower and higher level APIs are: - https://www.npmjs.com/package/fabric-shim - https://www.npmjs.com/package/fabric-contract-api

mcoblenz (Fri, 06 Nov 2020 15:47:16 GMT):
Okay, thanks!

bhuwanadhikari (Fri, 06 Nov 2020 17:57:28 GMT):
I am following commercial paper tutorial to learn some chaincode things. It is said that there will be two things stored in database. First is the current state of the paper and second one is history of the paper's lifecycle, ie transaction data. But when I went through the couchdb, I only saw the current state of paper not the history of the paper. Even after running buy and redeem app, I couldn't see the transaction data stored there but only updates the current state of paper. Am I missing something here, what things did I miss so that I couldn't see the transaction data? Please help me.

aim8526 (Sat, 07 Nov 2020 16:48:56 GMT):
in ccp file add *ssl-target-name-override* with your domain name orderer.example.com: url: grpcs://localhost:7050 grpcOptions: ssl-target-name-override: orderer.example.com

BrettLogan (Sat, 07 Nov 2020 19:17:51 GMT):
Couch only stores the world state, i.e., the current state of all of your assets. The history is stored in a DB on the peer called the HistoryDB, which is implemented using LevelDB. You can find it on the peer filesystem, assuming the default path it would be in `/etc/hyperledger/fabric/ledgerData`

BrettLogan (Sat, 07 Nov 2020 19:20:40 GMT):
Work is ongoing in this area. A new feature called ledger snapshotting is nearly complete that will enable a new set of work called "ledger pruning and archive" to be possible. This new work would solve the problem you are referring to by allowing you archive old blocks that are no longer fundamental to the operation of your network.

Khahssn (Sun, 08 Nov 2020 08:41:47 GMT):
Has joined the channel.

Khahssn (Sun, 08 Nov 2020 08:41:48 GMT):
Hey everyone, i've used test-network as a template for my project but when i run the command "./network.sh deployCC" i get an error message saying that it can't load the chaincode package. Can anyone please help me figure out what went wrong?

manu461 (Sun, 08 Nov 2020 11:56:11 GMT):
Hi everyone, I was wondering if there is any possible way, to get the names of all the functions, which a deployed Chaincode contains, along with the arguments each of them expects, as well as their return-types. So that the client application can utilize it to minimize inconsistencies while calling them. https://stackoverflow.com/questions/64737770/hyperledger-fabric-how-to-get-names-of-all-the-functions-along-with-their-argum

icordoba (Sun, 08 Nov 2020 12:19:18 GMT):
Hi, can anybody confirm if external chaincode is supported for Java language in Fabric 2.2? If so, any tutorial or guide available? Thanks.

bhuwanadhikari (Sun, 08 Nov 2020 14:22:04 GMT):
how can i use chaincode functions to access those data? is there latest node.js docs for it?

yehia67 (Sun, 08 Nov 2020 15:08:35 GMT):
Hello, I am developing a hyperledger fabric project using JavaScript and expose endpoints using nodejs api. I have a Post call "Create asset" that takes json object and key then use putState to add them in fabric... The problem is the transaction takes 3 ~ 4 second which is too much. Is there a way too enhance submiTransaction() execution time? So it takes from 1 ~ 2 second. My network is similar to the following documentation https://cloud.ibm.com/docs/blockchain-sw-25?topic=blockchain-sw-25-ibp-console-build-network is increasing peer number will help? or increasing resources? Which resource of which component could make the transaction submission faster?

yehia67 (Sun, 08 Nov 2020 15:08:35 GMT):
Hello, I am developing a hyperledger fabric project using JavaScript and expose endpoints using nodejs api. I have a Post call "Create asset" that takes json object and key then use putState to add them in fabric... The problem is the transaction takes 3 ~ 4 second which is too much. Is there a way to enhance submiTransaction() execution time? So it takes from 1 ~ 2 second. My network is similar to the following documentation https://cloud.ibm.com/docs/blockchain-sw-25?topic=blockchain-sw-25-ibp-console-build-network is increasing peer number will help? or increasing resources? Which resource of which component could make the transaction submission faster?

yehia67 (Sun, 08 Nov 2020 15:08:35 GMT):
hello, I am developing a hyperledger fabric project using JavaScript and expose endpoints using nodejs api. I have a Post call "Create asset" that takes json object and key then use putState to add them in fabric... The problem is the transaction takes 3 ~ 4 second which is too much. Is there a way to enhance submiTransaction() execution time? So it takes from 1 ~ 2 second. My network is similar to the following documentation https://cloud.ibm.com/docs/blockchain-sw-25?topic=blockchain-sw-25-ibp-console-build-network is increasing peer number will help? or increasing resources? Which resource of which component could make the transaction submission faster?

yehia67 (Sun, 08 Nov 2020 15:08:35 GMT):
Hello, I am developing a hyperledger fabric project using JavaScript and expose endpoints using nodejs api. I have a Post call "Create asset" that takes json object and key then use putState to add them in fabric... The problem is the transaction takes 3 ~ 4 second which is too much. Is there a way to enhance submiTransaction() execution time? So it takes from 1 ~ 2 second. My network is similar to the following documentation https://cloud.ibm.com/docs/blockchain-sw-25?topic=blockchain-sw-25-ibp-console-build-network is increasing peer number will help? or increasing resources? Which resource of which component could make the transaction submission faster?

yehia67 (Sun, 08 Nov 2020 17:53:54 GMT):
Hello, I am developing a hyperledger fabric project using JavaScript and expose endpoints using nodejs api. I have a Post call "Create asset" that takes json object and key then use putState to add them in fabric... The problem is the transaction takes 3 4 second which is too much. Is there a way to enhance submiTransaction() execution time? So it takes from 1 2 second. My network is similar to the following documentation https://cloud.ibm.com/docs/blockchain-sw-25?topic=blockchain-sw-25-ibp-console-build-network is increasing peer number will help? or increasing resources? Which resource of which component could make the transaction submission faster?

chbtt (Sun, 08 Nov 2020 18:53:19 GMT):
Hey, while I know nothing about your setup, I suggest (for testing/development purposes) you could take a look at your orderer configuration. Check what you set as "BatchTimeout" (see https://github.com/hyperledger/fabric-samples/blob/master/test-network/configtx/configtx.yaml#L237 ). I believe submitTransaction() waits until the transaction has actually been commited and hence will take AT LEAST the time you specify in "BatchTimeout" (unless you have multiple transactions per batch which does not seem to be the case).

RafaelAPB (Sun, 08 Nov 2020 18:59:55 GMT):
Has joined the channel.

RafaelAPB (Sun, 08 Nov 2020 18:59:55 GMT):
Dear All, I've put together an open-source course on Enterprise Blockchain Technologies - with a focus on Fabric v2.2: https://github.com/hyperledger-labs/university-course. Please feel free to leverage these materials as you prefer. Also, I'm looking for contributors to extend this course, either the Hyperledger Fabric topics or other Hyperledger technologies. Feel free to reach out! Cheers

neha.jajodia (Mon, 09 Nov 2020 08:59:58 GMT):
Has joined the channel.

neha.jajodia (Mon, 09 Nov 2020 08:59:58 GMT):
Hi Everyone, So excited to join the group. As Julian Gordon, VP APAC, Hyperledger at the Linux Foundation suggested, I thought of dropping you a note and letting you know about the Hyperledger Fabric Bootcamp which is on 19th November 2PM HKT for the Hong Kong Blockchain Week 2020. To open the event, Julian will be sharing with us the latest news and development for Hyperledger Fabric and beyond. It is going to be a fun event with amazing learning. It will be great if you could share it with the group as we are trying to have a greater number of people coming in. We would love to see you there and work together to attempt to deploy the largest Hyperledger network to date. Register now 👉https://blockchain-bootcamp-hyperledger-fabric-v2.eventbrite.sg I hope to see you at the event. Best Wishes, Neha Jajodia Digital Marketing Associate | Chainstack

yehia67 (Mon, 09 Nov 2020 10:14:14 GMT):
hey @chbtt , it works thank you very mych.

bhuwanadhikari (Tue, 10 Nov 2020 08:09:11 GMT):
Someone please answer this question

bhuwanadhikari (Tue, 10 Nov 2020 08:09:11 GMT):
Someone please answer this question https://stackoverflow.com/questions/64762803/history-of-asset-in-hyperledger-fabric

A1kartikey (Tue, 10 Nov 2020 08:38:57 GMT):
Has joined the channel.

A1kartikey (Tue, 10 Nov 2020 08:38:58 GMT):
Successfully sent Proposal and received ProposalResponse: Status - 200, message - "", meta��� haÍ˧�k(�f������E�C���Gg����!��/��3�PO�)5��o�<���U� [2020-11-10 13:00:28.867] [DEBUG] invoke-chaincode - invokeEventPromise - setting up event [2020-11-10 13:00:28.883] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 0 } [2020-11-10 13:00:28.923] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature { r: , s: , recoveryParam: 1 } [2020-11-10 13:00:31.867] [ERROR] invoke-chaincode - REQUEST_TIMEOUT:localhost:7051 [2020-11-10 13:00:31.868] [ERROR] invoke-chaincode - Error: ChannelEventHub has been shutdown at ChannelEventHub.disconnect (/home/msr/code/msrit/BlockChain/Track-And-Trace-Chaincode/usecase/app/node_modules/fabric-client/lib/ChannelEventHub.js:610:21) at Timeout.setTimeout (/home/msr/code/msrit/BlockChain/Track-And-Trace-Chaincode/usecase/app/ApplicationModule/invoke-transaction.js:94:10) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5) [2020-11-10 13:00:31.869] [ERROR] invoke-chaincode - Error: ChannelEventHub has been shutdown at ChannelEventHub.disconnect (/home/msr/code/msrit/BlockChain/Track-And-Trace-Chaincode/usecase/app/node_modules/fabric-client/lib/ChannelEventHub.js:610:21) at Timeout.setTimeout (/home/msr/code/msrit/BlockChain/Track-And-Trace-Chaincode/usecase/app/ApplicationModule/invoke-transaction.js:94:10) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5) [2020-11-10 13:00:31.871] [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Error: ChannelEventHub has been shutdown

A1kartikey (Tue, 10 Nov 2020 08:39:51 GMT):
please anyone help me with this problem.

invalido (Tue, 10 Nov 2020 13:57:43 GMT):
Has joined the channel.

invalido (Tue, 10 Nov 2020 13:57:43 GMT):
Hi everyone. I've got a problem with CouchDB Indexes. As the Doc suggests, I created the META-INF/statedb/couchdb/indexes folder within my chaincode dir. But queries using that particular created index ("assetTypeIndex") fail: The query [{"limit":1000,"selector":{"client":{"$eq":"Org1MSP"},"id":{"$regex":"^User_.*"},"state":{"$eq":"live"},"use_index":["_design/assetTypeDoc","assetTypeIndex"]}] caused the following warning: [_design/assetTypeDoc, assetTypeIndex was not used because it is not a valid index for this query.]

invalido (Tue, 10 Nov 2020 13:57:56 GMT):
Anyone here to have a talk to me about that?

invalido (Tue, 10 Nov 2020 14:01:02 GMT):
Also, I do not the "created couchdb index in state database" message within the logs

invalido (Tue, 10 Nov 2020 14:01:21 GMT):
docker logs 2OrgLocalFabric_peer0.org1.example.com 2>&1 | grep "ouch" 2020-11-10 12:59:19.927 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 005 Created state database _users 2020-11-10 12:59:20.024 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 006 Created state database _replicator 2020-11-10 13:00:27.756 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 029 Created state database mychannel_ 2020-11-10 13:01:29.622 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 059 Created state database mychannel_lscc 2020-11-10 13:06:58.181 UTC [couchdb] CreateDatabaseIfNotExist -> INFO 09b Created state database mychannel_chaincode

invalido (Tue, 10 Nov 2020 14:01:55 GMT):
Im using vscode with the ibm blockchain platform

invalido (Tue, 10 Nov 2020 14:08:42 GMT):
Probably, I just placed the META-INF folder bad. General structure: > packages > chaincode > src > dist > META-INF package.json

nkl199 (Tue, 10 Nov 2020 14:34:05 GMT):
meta-inf directory looks good: `Indexes may be packaged alongside chaincode in a META-INF/statedb/couchdb/indexes directory.`

nkl199 (Tue, 10 Nov 2020 14:35:29 GMT):
it is possible that the index itself is not defined correctly

invalido (Tue, 10 Nov 2020 14:49:16 GMT):
hi nkl199. Thanks for answering! { "index": { "fields": ["assetType"] }, "ddoc": "assetTypeIndexDoc", "name": "assetTypeIndex", "type": "json" }

invalido (Tue, 10 Nov 2020 14:51:20 GMT):
field "assetType" is valid

invalido (Tue, 10 Nov 2020 14:53:03 GMT):
this shouldn' be the problem i guess. But I don't get the approval message that the index was created

nkl199 (Tue, 10 Nov 2020 14:53:54 GMT):
are you using the local fabric network?

invalido (Tue, 10 Nov 2020 14:53:59 GMT):
yes

nkl199 (Tue, 10 Nov 2020 14:55:02 GMT):
ok, so you can have a look in the couchDB directly to see if the index is present using a web browser: `http://127.0.0.1:/_utils/#/_all_dbs`

invalido (Tue, 10 Nov 2020 14:55:52 GMT):
No, it isnt there

nkl199 (Tue, 10 Nov 2020 14:56:46 GMT):
:thinking:

invalido (Tue, 10 Nov 2020 15:00:45 GMT):
chaincode src has the typescript code. chaindode dist has chaincode, common and server due to my structure

nkl199 (Tue, 10 Nov 2020 15:00:59 GMT):
what version of the extension?

invalido (Tue, 10 Nov 2020 15:01:34 GMT):
v1.0.39

invalido (Tue, 10 Nov 2020 15:03:48 GMT):

Screenshot from 2020-11-10 16-03-24.png

nkl199 (Tue, 10 Nov 2020 15:03:51 GMT):
ok, VSCode is bound to the fabric-sdk-node, seems there was a breaking change meaning that you need to rename 'META-INF' directory 'contract-metadata' (https://jira.hyperledger.org/browse/FABN-1654)

invalido (Tue, 10 Nov 2020 15:07:00 GMT):
Wooooohoooo! You saved my day!! That was it!

invalido (Tue, 10 Nov 2020 15:07:19 GMT):
Thank you so very much!

nkl199 (Tue, 10 Nov 2020 15:07:28 GMT):
:thumbup:

invalido (Tue, 10 Nov 2020 15:07:39 GMT):
Man, In guess all the readmes an examples should receive an update

nkl199 (Tue, 10 Nov 2020 15:08:13 GMT):
it's news to me too ... and i'm going to have to update my projects :joy:

invalido (Tue, 10 Nov 2020 15:08:23 GMT):
:D

invalido (Tue, 10 Nov 2020 15:08:56 GMT):
are you employed by ibm?

nkl199 (Tue, 10 Nov 2020 15:09:44 GMT):
yes :thumbup:

nkl199 (Tue, 10 Nov 2020 15:10:37 GMT):
ah, looks like the node docs had an entry for that: https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/tutorial-annotated-contract-metadata.html

invalido (Tue, 10 Nov 2020 15:10:38 GMT):
in case i'll have further questions. could I PM you directly?

nkl199 (Tue, 10 Nov 2020 15:11:06 GMT):
sure, though it's nice to keep these questions open as they can be searched and so could help others

invalido (Tue, 10 Nov 2020 15:11:58 GMT):
sure. in case the question is not embarassing, I'll ask it in public :)

invalido (Tue, 10 Nov 2020 15:12:13 GMT):
where are you located? US, EU?

nkl199 (Tue, 10 Nov 2020 15:12:32 GMT):
GMT time zone

invalido (Tue, 10 Nov 2020 15:13:54 GMT):
nice. so i could contact you via my working day. thanks again for helping me out on this! much appreciated. have a nice day

nkl199 (Tue, 10 Nov 2020 15:14:06 GMT):
you're welcome - you too :thumbup:

invalido (Tue, 10 Nov 2020 15:14:11 GMT):
thx

invalido (Tue, 10 Nov 2020 15:51:09 GMT):
quick follow-up: Best practice for using indexes: In case i want to query more than 1 field, should I have an couchdb-index especially for that?

invalido (Tue, 10 Nov 2020 15:51:50 GMT):
query fields: "id", "status" index: ["status"] or index: ["id", "status"]?

nkl199 (Tue, 10 Nov 2020 15:55:25 GMT):
Not sure on best practice for speed, but I have always gone with multiple fields for the index on a document type. If you have multiple indexes on a single document type couch will pick the first match and not necessarily the one you design specifically for it

invalido (Tue, 10 Nov 2020 15:56:59 GMT):
:thumbsup:

kokolaki (Tue, 10 Nov 2020 17:19:20 GMT):
Ok, and with the current version of fabric, in case I use a RPI with a 32-bit sd card, if the available space is filled with the data, then the rpi will show a message that "there is no free spece" or fabric will continue write blocks in the couchdb and leveldb databases removing the old ones?

BrettLogan (Tue, 10 Nov 2020 17:22:37 GMT):
Fabric does not overwrite existing data. And running out of disk is very dangerous. There is a bug in LevelDB (which is still used by the ledger even if you are using Couch as the stateDB) that will corrupt the ledger when you run out of disk, rendering your peer unrecoverable, so it will need to be replaced and replicated from another peer on your network

ItaloCarrasco (Tue, 10 Nov 2020 18:44:17 GMT):
hello everyone i am doing some testing on concurrent operations by users, i have a test that creates, updates, and lists some records, it runs simulating 30 users, i am having issues related to this 2020-11-10 18:24:17.276 UTC [validation] validateAndPrepareBatch -> WARN 118d Block [645] Transaction index [2] TxId [a1c22251cf93ba3cd425b8394ab09ad1a69c74147b740353d27bd68137108db9] marked as invalid by state validator. Reason code [MVCC_READ_CONFLICT] this mvcc error raises when the users start listing the documents, does anyone know how could i fix it?

Jemal (Wed, 11 Nov 2020 05:35:17 GMT):
Has joined the channel.

Jemal (Wed, 11 Nov 2020 05:45:23 GMT):
Hi guys, I am trying calculate the transaction latency as follows: *Transaction Latency = Transaction Confirmation time -submission time. * The submission time is simple. I consider it as the time the transaction is submitted by the client app. However, i don't know how to get the confirmation time ( the time the transaction is committed by orderers/included in a block). Is there a way to do that? I am using Fabric SDK for Java for my development.

nkl199 (Wed, 11 Nov 2020 09:27:07 GMT):
worth looking into the exported metrics that can be consumed by Prometheus

marcosBaez (Wed, 11 Nov 2020 15:54:52 GMT):
Hi everyone. I'm making my firsts step with the fabrik sdk for Java/Go.

marcosBaez (Wed, 11 Nov 2020 15:55:12 GMT):
I've already success creating and enrolling users to the CA

marcosBaez (Wed, 11 Nov 2020 15:55:53 GMT):
and my new move is trying to make a CA user password change with the SDK

marcosBaez (Wed, 11 Nov 2020 15:56:15 GMT):
Have anyone faced before to this task?

marcosBaez (Wed, 11 Nov 2020 15:56:19 GMT):
Thanks in advance!

dachrillz (Wed, 11 Nov 2020 16:41:41 GMT):
Hello everyone, We bumped our versions for the Node SDK to 2.2.3 and now we get the following error from client code: ``` Query failed. Errors: [\"Error: Peer peer0.example.com:7051 is not running chaincode qscc\",\"Error: Peer peer1.example.com:8051 is not running chaincode qscc\"] ``` Has qscc contracts been deprecated? I've seen some discussions about it being so, but from what I interpreted it should only affect user chaincode, and not qscc invoked from the Node SDK. Any pointers would be greatly appreciated

dachrillz (Wed, 11 Nov 2020 16:45:04 GMT):
Is it related to this PR? :) https://github.com/hyperledger/fabric-sdk-node/commit/cbb3ba0aa22d61be6ebe9e258a15e13e3b8ef0d4

dachrillz (Wed, 11 Nov 2020 16:49:21 GMT):
It seems this was a regression, and will be fixed soon! https://jira.hyperledger.org/projects/FABN/issues/FABN-1663

BrettLogan (Thu, 12 Nov 2020 00:43:28 GMT):
This is caused by two operations occurring on the same key at the same time. When one peer has simulated a transaction on a key, but not yet committed it. In that time another peer has committed a value that updated the key. When the first peer revalidates the transactions at committal, it finds that the current value of the key no longer matches the value in the RWSet and thus an MVCC_Conflict occurs. Your app needs to have logic to make sure a key is only operated on one at a time, or has logic to resubmit what a conflict does occur.

freesam02 (Thu, 12 Nov 2020 01:56:57 GMT):
Hi everyone, i'm trying to build new client server for hyperledger fabric. For user's convenience, when they try to create new channel. i want to create channel tx file from existed genesis block file not configtx.yaml with configtxgen. because they are belongs to ca server not peer server. so need to help to create channel tx file from exitsted block file. how can i do for this. thanks!

BrettLogan (Thu, 12 Nov 2020 02:46:26 GMT):
You can fetch the latest config block read it into a struct if you are using an SDK, or use something like `jq` to manipulate it on the CLI and the use that updated config block as your new block

BrettLogan (Thu, 12 Nov 2020 02:46:26 GMT):
You can fetch the latest config block read it into a struct or parse into JSON if you are using if you are using the Node SDK, or use something like `jq` to manipulate it on the CLI and the use that updated config block as your new block

BrettLogan (Thu, 12 Nov 2020 02:46:26 GMT):
You can fetch the latest config block read it into a struct or parse into JSON if you are using if you are using the Node SDK, or use something like `jq` to manipulate it on the CLI and then use that updated config block as your new block

christinaliaiping (Thu, 12 Nov 2020 03:07:45 GMT):
Has joined the channel.

christinaliaiping (Thu, 12 Nov 2020 03:07:45 GMT):
Hello,I am new to fabric and I wonder know why I failed to create channel, getting error like this "Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded". I've tried to stop firewall or restart network, but it still doesn't work.

user216 (Thu, 12 Nov 2020 03:16:20 GMT):
hello. Is any news about fabtoken?

freesam02 (Thu, 12 Nov 2020 04:21:05 GMT):
thanks for reply, i understand that you suggested answer for update channel, but In docs, channel update can't change channel name, so fetch existed block file that can't use for new create channel . is that right?

zhenbing (Thu, 12 Nov 2020 04:59:44 GMT):
Has left the channel.

S.pradeepkumar (Thu, 12 Nov 2020 09:29:30 GMT):
Hi everyone, does anyone have an idea how to reduce sync data between all peers

S.pradeepkumar (Thu, 12 Nov 2020 09:29:30 GMT):
Hi everyone, does anyone have an idea how to reduce sync data time between all peers

iocm (Thu, 12 Nov 2020 10:58:55 GMT):
Has joined the channel.

lyp830414 (Thu, 12 Nov 2020 12:00:52 GMT):
Has joined the channel.

lyp830414 (Thu, 12 Nov 2020 12:00:52 GMT):
Hi everyone, I met the issue about hyperledger blockchain explorer... I couldnot enable HTTPS ...

RahulEth (Fri, 13 Nov 2020 10:56:16 GMT):
2020-11-13 10:52:30.892 UTC [policies] SignatureSetToValidIdentities -> WARN 0f9 invalid identity: certificate subject=CN=appUser,OU=client+OU=org1+OU=department1 serialnumber=150083298905448042868740216105069774434983699191 error="MSP EdexaOrg00001 is not defined on channel" 2020-11-13 10:52:30.892 UTC [policies] SignatureSetToValidIdentities -> WARN 0fa invalid identity: certificate subject=CN=appUser,OU=client+OU=org1+OU=department1 serialnumber=150083298905448042868740216105069774434983699191 error="MSP EdexaOrg00001 is not defined on channel" 2020-11-13 10:52:30.893 UTC [policies] SignatureSetToValidIdentities -> WARN 0fb invalid identity: certificate subject=CN=appUser,OU=client+OU=org1+OU=department1 serialnumber=150083298905448042868740216105069774434983699191 error="MSP EdexaOrg00001 is not defined on channel" 2020-11-13 10:52:30.893 UTC [discovery] processQuery -> WARN 0fc got query for channel banjiappcap from 10.42.0.246:38494 but it isn't eligible: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied 2020-11-13 10:52:30.893 UTC [discovery] processQuery -> WARN 0fd got query for channel banjiappcap from 10.42.0.246:38494 but it isn't eligible: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied 2020-11-13 10:52:30.893 UTC [comm.grpc.server] 1 -> INFO 0fe unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=10.42.0.246:38494 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=1.934317ms

RahulEth (Fri, 13 Nov 2020 10:57:39 GMT):
facing above while doing trasaction in fabric 2.2.1 version

norb1969 (Fri, 13 Nov 2020 14:27:54 GMT):
Has joined the channel.

ChrisHarris 1 (Fri, 13 Nov 2020 16:48:10 GMT):
Has joined the channel.

ChrisHarris 1 (Fri, 13 Nov 2020 16:48:10 GMT):
hello, has anyone here used the IBM console do deploy go contracts in Hyperledger > 2.0? I am unsure if the docs say this can't be done or if I am just doing it wrong. I'm able to deploy JS chaincode no problem

Leila_M (Fri, 13 Nov 2020 19:43:11 GMT):
Has joined the channel.

Leila_M (Fri, 13 Nov 2020 19:43:11 GMT):
Hi, is there anyone who is expert in Sovrin and has time for a short interview for a master thesis regarding this subject and self-sovereign identities? I would appreciate it.

Suki (Mon, 16 Nov 2020 06:23:11 GMT):
Has joined the channel.

Suki (Mon, 16 Nov 2020 06:23:12 GMT):
Hi everyone! I am the new to the hyperledger fabric. when deploying the test network from the official website I encounter the problem as follow: `./network.sh up `runs well, but `./network.sh createChannel` failed,the messages are: *..................... Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded Channel creation failed Create channel failed* How can I solve it? Thanks

Suki (Mon, 16 Nov 2020 06:26:48 GMT):
Me too:handshake: . Do u solve it now?

nnAb (Mon, 16 Nov 2020 06:50:16 GMT):
Has joined the channel.

Rishalkp367 (Mon, 16 Nov 2020 06:51:58 GMT):
Has joined the channel.

Rishalkp367 (Mon, 16 Nov 2020 06:52:54 GMT):
hi all , I would like to know about the code procedures to submit a change in hyperledger fabric

Jakeeyturner (Mon, 16 Nov 2020 09:38:16 GMT):
You should be able to deploy a Go contract to the IBM Blockchain Platform 2.5.1 no problem - see https://cloud.ibm.com/docs/blockchain-sw-251?topic=blockchain-sw-251-ibp-console-smart-contracts-v2 for more information.

Jakeeyturner (Mon, 16 Nov 2020 09:38:25 GMT):
(there are a few extra steps you need to do for Go!)

MarkNewman (Mon, 16 Nov 2020 11:54:30 GMT):
Anyone know if it's possible to override lists using environment variables? e.g. I'd like to override the CSR values under `names` in my `fabric-ca-server-config.yaml` ``` csr: cn: ca.example.com names: - C: GB ST: "England" L: "London" O: example.com OU: ```

SasinduFdo (Mon, 16 Nov 2020 15:17:12 GMT):
can i register new users into the system through the rest api(Remotely enroll new identities) if i use the ibm vc extension to create the network ?

decatluther (Tue, 17 Nov 2020 10:26:27 GMT):
Has joined the channel.

cynicalsnail (Wed, 18 Nov 2020 07:02:32 GMT):
Has joined the channel.

Jax.dev (Wed, 18 Nov 2020 09:11:32 GMT):
Hello Experts, I'm trying to instantiate chaincode using fabric node sdk, I'm facing 2 different issues : 1. when I login to peer and execute peer chaincode list --instantiated -C mychannel - list showing empty. But when I do it using command line to instantiate chaincode its showing the list. 2. After sending request to instantiate chaincode, chaincode container is getting started, but it is not showing in list - peer chaincode list --instantiated -C mychannel. Even it is throwing the error in sdk - TIMEOUT after 45000. I'm using 1.4 fabric version. Any suggestions or recommendations would be appreciated.

vineetmishra (Wed, 18 Nov 2020 12:45:12 GMT):
Hello all , I am using external chaincode and facing error while running chaincode install commands , Error =>Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: platform builder failed: Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL

vineetmishra (Wed, 18 Nov 2020 12:45:22 GMT):
can anyone help me in this

Jax.dev (Wed, 18 Nov 2020 14:13:55 GMT):
This is fixed.

BhaskarDutta (Thu, 19 Nov 2020 06:41:18 GMT):
Has joined the channel.

chintanr11 (Thu, 19 Nov 2020 07:32:32 GMT):
Hi Team, I was searching for a command line equivalent support for `--isInit` flag in Fabric Node SDK v2.2.x. However, I could not find the same in the documentation. The other lifecycle commands can be performed using peer CLI, but as a part of supporting old SDK functionalities, as per peer CLI, I was hoping that this feature could be made available in Fabric Node SDK too. Please let me know your thoughts, or if I have missed it to be part of SDK already, it would be helpful if you can point me to the documentation on the same.

Jakeeyturner (Thu, 19 Nov 2020 09:16:07 GMT):
Worth looking at this message, regarding the Node SDK (v2) not having lifecycle APIs - https://chat.hyperledger.org/channel/fabric-sdk-node?msg=p4Dww7NCkcTrq4ktp

invalido (Thu, 19 Nov 2020 09:16:41 GMT):
Hello everyone, I've got an issue with a quite large calculation going on in my chaincode. Since lots of data is processed, the execution of that particular chaincode fails with: [mychannel][5fb4d227] Exit chaincode: name:"chaincode" (30000ms) [mychannel][5fb4d227] failed to invoke chaincode name:"chaincode" , error: timeout expired while executing transaction [chaincode] isValidTxSim -> ERRO dec9 no ledger context: mychannel 5fb4d22759dbc8114f0aeef1742aab2862b8475684b7c2874f043dc830cf7a39 I'm developing within the ibm blockchain extension for vscode and need help on howto increment that timeout of 30000ms. Any suggestions?

Jakeeyturner (Thu, 19 Nov 2020 09:21:10 GMT):
30 seconds is quite a long time for a transaction. I'm not sure if it's the correct timeout setting (as there are lots in Fabric!), but you could try bumping up the `ibm-blockchain-platform.fabric.chaincode.timeout` and `ibm-blockchain-platform.fabric.client.timeout` timeouts in your VS Code settings

Jakeeyturner (Thu, 19 Nov 2020 09:21:52 GMT):
(you can edit these in the User Settings > Extensions > Blockchain configuration section)

invalido (Thu, 19 Nov 2020 09:25:57 GMT):
Thanks. Will check on that. This particular transaction will be triggered once per day and is estimated to process ~20.000 Assets and perform calculations on ~2Mio Values. Dividing this into multiple transactions isn't really feasible. How would you solve this?

invalido (Thu, 19 Nov 2020 09:25:57 GMT):
Thanks. Will check on that. This particular transaction will be triggered once per day and is estimated to process approx 20.000 Assets and perform calculations on approx 2Mio Values. Dividing this into multiple transactions isn't really feasible. How would you solve this?

invalido (Thu, 19 Nov 2020 09:31:06 GMT):
Increasing `ibm-blockchain-platform.fabric.chaincode.timeout` and `ibm-blockchain-platform.fabric.client.timeout` to 3 Minutes didn't help. mychannel][37e8655b] Exit chaincode: name:"chaincode" (30000ms)

chintanr11 (Thu, 19 Nov 2020 09:34:04 GMT):
Right, but currently we already have a support for submit and evaluate transaction, i.e. executing the chaincode using latest fabric-network module. However, what it is missing the property, for example like `isInit` in the invoke or submit transaction API. I wanted to know the idea of implementing it in the Fabric Node SDK, as I had seen in peer CLI help command that the init-requirement is only for legacy chaincodes, i.e. those written in 1.4.x. I just wanted to confirm if this observation aligns with the absence of properties like `isInit` in the SDK.

chintanr11 (Thu, 19 Nov 2020 09:34:04 GMT):
Right, but currently we already have a support for submit and evaluate transaction, i.e. executing the chaincode using latest fabric-network module. However, what it is missing, is the property, for example like `isInit` in the invoke or submit transaction API. I wanted to know the idea of implementing it in the Fabric Node SDK, as I had seen in peer CLI help command that the init-requirement is only for legacy chaincodes, i.e. those written in 1.4.x. I just wanted to confirm if this observation aligns with the absence of properties like `isInit` in the SDK.

Jakeeyturner (Thu, 19 Nov 2020 09:35:56 GMT):
Updating 20000 entries in a database will take a while, so if you throw in a decentralised blockchain, your performance is going to tank with a transaction which does that much! Might be worth taking a look at https://hyperledger.github.io/caliper-benchmarks/ to see what I mean. Not sure how to solve it, other than to refactor / break it up into smaller batches.

invalido (Thu, 19 Nov 2020 09:48:47 GMT):
Is there an alternative way to increase this timeout for this specific contract?

nkl199 (Thu, 19 Nov 2020 09:50:53 GMT):
to my knowledge there are two timeouts: - on the peer (chaincode execute timeout) - on the transaction request itself

nkl199 (Thu, 19 Nov 2020 09:50:53 GMT):
to my knowledge there are two timeouts: - on the peer (chaincode execute timeout) - on the transaction request itself seems you are incrementing them both though

invalido (Thu, 19 Nov 2020 09:51:31 GMT):
There is the`CORE_CHAINCODE_EXECUTETIMEOUT` when starting networks via docker-compose. Is this "my" timeout?

invalido (Thu, 19 Nov 2020 09:51:43 GMT):
Yeah, I am

nkl199 (Thu, 19 Nov 2020 09:53:08 GMT):
yes, normally pushed up to `CORE_CHAINCODE_EXECUTETIMEOUT=999999`

nkl199 (Thu, 19 Nov 2020 09:53:50 GMT):
the other is in the client connection to the network (gateway, for the VSCode extension)

invalido (Thu, 19 Nov 2020 09:57:02 GMT):
To be found in: ~/.fabric-vscode/environments ?

Jakeeyturner (Thu, 19 Nov 2020 09:59:19 GMT):
If you go to your user settings in VS Code, there will be a 'client timeout' setting you can change

Jakeeyturner (Thu, 19 Nov 2020 09:59:57 GMT):
(and when you submit the transaction using the gateway in the extension, it will use that client timeout value)

invalido (Thu, 19 Nov 2020 10:04:04 GMT):
Both Ibm-blockchain-platform › Fabric › Chaincode: Timeout and Ibm-blockchain-platform › Fabric › Client: Timeout are increased to 5 minutes. Still Timeout seems to be set to 30000ms. Have restarted Environments and vscode. No effect

nkl199 (Thu, 19 Nov 2020 10:06:07 GMT):
sounds like there might be an issue in one of those settings being applied/respected

Jakeeyturner (Thu, 19 Nov 2020 10:48:25 GMT):
yeah, seems like the extension isn't changing the `CORE_CHAINCODE_EXECUTETIMEOUT` setting (I'm assuming you're using a local environment?)

Jakeeyturner (Thu, 19 Nov 2020 10:51:34 GMT):
As `Ibm-blockchain-platform › Fabric › Chaincode: Timeout` will only change the `CORE_CHAINCODE_EXECUTETIMEOUT` for local environments (I think you need to restart the environment as well)

Jakeeyturner (Thu, 19 Nov 2020 11:15:43 GMT):
Ah right, sorry, I was getting confused with the `init-required` property.

invalido (Thu, 19 Nov 2020 11:37:56 GMT):
Yes, for development i'm using a local environment. I did a restart of the network, a reboot of my machine. Nothing helped. [mychannel][a92bfc03] Exit chaincode: name:"chaincode" (30000ms)

Jakeeyturner (Thu, 19 Nov 2020 11:40:49 GMT):
I've raised an issue so we can track the work - https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2826

Jakeeyturner (Thu, 19 Nov 2020 11:41:24 GMT):
I guess a workaround would be to create your own network (where you can change CORE_CHAINCODE_EXECUTETIMEOUT) then import that into the extension.

invalido (Thu, 19 Nov 2020 11:44:38 GMT):
:thumbsup: thanks

aim8526 (Thu, 19 Nov 2020 14:38:40 GMT):
Is contract-api in go lang chaincode supports rich-query. or have I implement through shim-api only. can i use shim API and contract-api in same chaincode?

Jakeeyturner (Thu, 19 Nov 2020 14:46:23 GMT):
Worth taking a look at https://github.com/hyperledger/fabric-samples/blob/master/chaincode/fabcar/go/fabcar.go As you can see in the transactions there are `ctx.GetStub()` calls, which return the ChaincodeStub. Once you have the ChaincodeStub you can do `GetQueryResult` or whatever you want.

aim8526 (Thu, 19 Nov 2020 14:53:39 GMT):
i didn't notice contractapi.TransactionContextInterface internally uses shim.ChaincodeStubInterface interface. thanks @Jakeeyturner

invalido (Fri, 20 Nov 2020 10:07:36 GMT):
Hi nkl, did something change again with the CouchDB indexes? Seems like "contract-metadata" isn't working as expected but naming the folder "META-INF" works.

invalido (Fri, 20 Nov 2020 12:34:09 GMT):
Hi everyone, did something change again with the CouchDB indexes? Seems like folder name "contract-metadata" isn't working as expected but naming the folder "META-INF" works again. 10 days ago it was the other way round

davidkel (Fri, 20 Nov 2020 14:27:11 GMT):
Were you using the IBM IBP Blockchain extension in VSCode ?

invalido (Fri, 20 Nov 2020 14:28:03 GMT):
Exactly

davidkel (Fri, 20 Nov 2020 16:48:12 GMT):
1.0.40 was released that reverted a change in made in 1.0.39 around this area. Info is in the release notes. https://github.com/IBM-Blockchain/blockchain-vscode-extension/releases/tag/v1.0.40

davidkel (Fri, 20 Nov 2020 16:48:12 GMT):
1.0.40 was released that reverted a change made in 1.0.39 around this area. Info is in the release notes. https://github.com/IBM-Blockchain/blockchain-vscode-extension/releases/tag/v1.0.40

sidoussou (Sat, 21 Nov 2020 00:10:40 GMT):
Has joined the channel.

lethaldrizzle (Sat, 21 Nov 2020 12:52:51 GMT):
Has joined the channel.

lethaldrizzle (Sat, 21 Nov 2020 12:58:38 GMT):
Hi there, I am a first timer attempting the fabric test network tutorial and am unable to create a channel in the test network: ./network.sh up createChannel -c firstChannel As I continually get the following error Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open : The system cannot find the file specified.

lethaldrizzle (Sat, 21 Nov 2020 12:59:34 GMT):
Ive rebooted using the ./network.sh down many times and have set all env variables according to the tutorial. On windows 10

lethaldrizzle (Sat, 21 Nov 2020 13:00:03 GMT):
Im sure there is a really easy solution that many have encountered before but i simply cannot find this online

SasinduFdo (Sat, 21 Nov 2020 18:11:15 GMT):
I got this error when i was trying to instantiate the chaincode . im using the vs code extension = Error instantiating smart contract: chaincode registration failed: container exited with 1

tmazumdar (Sat, 21 Nov 2020 18:30:31 GMT):
Has joined the channel.

tmazumdar (Sat, 21 Nov 2020 18:30:31 GMT):
Here is the log from the docker container which exited just after creation (for orderer): 2020-11-21 17:20:07.968 UTC [orderer.common.server] Main -> PANI 004 Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.pharma-network.com") panic: Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.pharma-network.com") goroutine 1 [running]: go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0003c2160, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:230 +0x545 go.uber.org/zap.(*SugaredLogger).log(0xc000590130, 0x11aff04, 0x1025645, 0x25, 0xc0001178e8, 0x1, 0x1, 0x0, 0x0, 0x0) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100 go.uber.org/zap.(*SugaredLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...) /go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 github.com/hyperledger/fabric/orderer/common/server.Main() /go/src/github.com/hyperledger/fabric/orderer/common/server/main.go:118 +0x1c83 main.main() /go/src/github.com/hyperledger/fabric/cmd/orderer/main.go:15 +0x20

tmazumdar (Sat, 21 Nov 2020 18:30:54 GMT):
please help out!

alejoacosta (Mon, 23 Nov 2020 02:06:06 GMT):
Hi team, anybody knows what is the right openssl command to generate EC keys that are compatible with Fabric? We have used the following: Step1: generate ECPARAM.pem file ``` openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-384 -out ECPARAM.pem``` Step2: generate privateKey and CSR: ``` openssl req -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr ``` But when peer is started, outputs the following error: ``` 2020-11-22 22:28:14.635 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo ``` I suppose the problem is related to the format of the EC Key generated by openssl? Below a sample of the private key that is causing the error: ``` -----BEGIN ENCRYPTED PRIVATE KEY----- MIIBEzBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIQtU4Ouojj6MCAggA MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECC+I/OCseSp1BIHAeSmeCRFHlKzO Hw1RK5wQi8hSulmi4HZjMJC6rofFFwGqgbBCKo9dBbJXYYsYc1AukAKyo+w6W4a3 0BpTGNAP4/eVB0dsFm7oHpJiZ2jmvgsYTHtchCciCastVph7zOfyggobPfEO97cU iwtq3v1R5yGA1ic/2vIqtSxynnGzrTiUnwnrvPC0hXMYiDHmYfN66BK898bfcaXp MqnBFfOQSRAtVzN71hiBWjGjVm3Y4e/vDYse/GLsseDnPK9fw3XA -----END ENCRYPTED PRIVATE KEY----- ```

alejoacosta (Mon, 23 Nov 2020 02:06:06 GMT):
Hi team, anybody knows what is the right openssl command to generate EC keys that are compatible with Fabric? We have used the following: Step1: generate ECPARAM.pem file `` openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-384 -out ECPARAM.pem`` Step2: generate privateKey and CSR: ``` openssl req -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr ``` But when peer is started, outputs the following error: ``` 2020-11-22 22:28:14.635 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo ``` I suppose the problem is related to the format of the EC Key generated by openssl? Below a sample of the private key that is causing the error: ``` -----BEGIN ENCRYPTED PRIVATE KEY----- MIIBEzBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIQtU4Ouojj6MCAggA MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECC+I/OCseSp1BIHAeSmeCRFHlKzO Hw1RK5wQi8hSulmi4HZjMJC6rofFFwGqgbBCKo9dBbJXYYsYc1AukAKyo+w6W4a3 0BpTGNAP4/eVB0dsFm7oHpJiZ2jmvgsYTHtchCciCastVph7zOfyggobPfEO97cU iwtq3v1R5yGA1ic/2vIqtSxynnGzrTiUnwnrvPC0hXMYiDHmYfN66BK898bfcaXp MqnBFfOQSRAtVzN71hiBWjGjVm3Y4e/vDYse/GLsseDnPK9fw3XA -----END ENCRYPTED PRIVATE KEY----- ```

alejoacosta (Mon, 23 Nov 2020 02:06:06 GMT):
Hi team, anybody knows what is the right openssl command to generate EC keys that are compatible with Fabric? We have used the following: Step1: generate ECPARAM.pem file ` openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-384 -out ECPARAM.pem` Step2: generate privateKey and CSR: ` openssl req -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr ` But when peer is started, outputs the following error: ` 2020-11-22 22:28:14.635 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo ` I suppose the problem is related to the format of the EC Key generated by openssl? Below a sample of the private key that is causing the error: ` -----BEGIN ENCRYPTED PRIVATE KEY----- MIIBEzBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIQtU4Ouojj6MCAggA MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECC+I/OCseSp1BIHAeSmeCRFHlKzO Hw1RK5wQi8hSulmi4HZjMJC6rofFFwGqgbBCKo9dBbJXYYsYc1AukAKyo+w6W4a3 0BpTGNAP4/eVB0dsFm7oHpJiZ2jmvgsYTHtchCciCastVph7zOfyggobPfEO97cU iwtq3v1R5yGA1ic/2vIqtSxynnGzrTiUnwnrvPC0hXMYiDHmYfN66BK898bfcaXp MqnBFfOQSRAtVzN71hiBWjGjVm3Y4e/vDYse/GLsseDnPK9fw3XA -----END ENCRYPTED PRIVATE KEY----- `

alejoacosta (Mon, 23 Nov 2020 02:06:06 GMT):
Hi team, anybody knows what is the right *openssl *command to generate EC keys that are compatible with Fabric? We have used the following: Step1: generate ECPARAM.pem file ` openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-384 -out ECPARAM.pem` Step2: generate privateKey and CSR: ` openssl req -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr ` But when peer is started, outputs the following error: ` 2020-11-22 22:28:14.635 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo ` I suppose the problem is related to the format of the EC Key generated by openssl? Below a sample of the private key that is causing the error: `` -----BEGIN ENCRYPTED PRIVATE KEY----- MIIBEzBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIQtU4Ouojj6MCAggA MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECC+I/OCseSp1BIHAeSmeCRFHlKzO Hw1RK5wQi8hSulmi4HZjMJC6rofFFwGqgbBCKo9dBbJXYYsYc1AukAKyo+w6W4a3 0BpTGNAP4/eVB0dsFm7oHpJiZ2jmvgsYTHtchCciCastVph7zOfyggobPfEO97cU iwtq3v1R5yGA1ic/2vIqtSxynnGzrTiUnwnrvPC0hXMYiDHmYfN66BK898bfcaXp MqnBFfOQSRAtVzN71hiBWjGjVm3Y4e/vDYse/GLsseDnPK9fw3XA -----END ENCRYPTED PRIVATE KEY----- ``

alejoacosta (Mon, 23 Nov 2020 02:06:06 GMT):
Hi team, anybody knows what is the right *openssl *command to generate EC keys that are compatible with Fabric? We have used the following: Step1: generate ECPARAM.pem file ` openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-384 -out ECPARAM.pem` Step2: generate privateKey and CSR: ` openssl req -newkey ec:ECPARAM.pem -keyout PRIVATEKEY.key -out MYCSR.csr ` But when peer is started, outputs the following *error*: `2020-11-22 22:28:14.635 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: KeyMaterial not found in SigningIdentityInfo` I suppose the problem is related to the format of the EC Key generated by openssl? Below a sample of the private key that is causing the *error*: `` -----BEGIN ENCRYPTED PRIVATE KEY----- MIIBEzBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIQtU4Ouojj6MCAggA MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECC+I/OCseSp1BIHAeSmeCRFHlKzO Hw1RK5wQi8hSulmi4HZjMJC6rofFFwGqgbBCKo9dBbJXYYsYc1AukAKyo+w6W4a3 0BpTGNAP4/eVB0dsFm7oHpJiZ2jmvgsYTHtchCciCastVph7zOfyggobPfEO97cU iwtq3v1R5yGA1ic/2vIqtSxynnGzrTiUnwnrvPC0hXMYiDHmYfN66BK898bfcaXp MqnBFfOQSRAtVzN71hiBWjGjVm3Y4e/vDYse/GLsseDnPK9fw3XA -----END ENCRYPTED PRIVATE KEY----- ``

BrettLogan (Mon, 23 Nov 2020 02:22:23 GMT):
I can't say I've ever done this myself, but this doc mentions that the `genpkey` commands are not supported correctly by Go, it does go on to demo how to generate keys with the p384 curve using openSSL: https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/resources/create_EC_key_cert_for_testing.md

BrettLogan (Mon, 23 Nov 2020 02:24:34 GMT):
You will need to dump the logs of the actual container to determine why it failed

BrettLogan (Mon, 23 Nov 2020 02:25:37 GMT):
There is a really easy solution, and it is specific to windows (something dumb) I cannot for the life of me remember what the solution is, let me see if I can find it

BrettLogan (Mon, 23 Nov 2020 02:26:34 GMT):
https://lists.hyperledger.org/g/fabric/message/6286?p=,,,20,0,0,0::Created,,fabric+samples+windows,20,2,0,32095033

sudhan 25 (Mon, 23 Nov 2020 06:33:36 GMT):
Has joined the channel.

sudhan 25 (Mon, 23 Nov 2020 06:33:37 GMT):
hi team, I am trying to creating a channel in Hyperledger Fabric using the command of ./network.sh createChannel but I am facing some issues. `Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp [::1]:7050: connect: connection refused" Channel creation failed Create channel failed` Further information ./network.sh up `Creating network "net_test" with the default driver Creating volume "net_orderer.example.com" with default driver Creating volume "net_peer0.org1.example.com" with default driver Creating volume "net_peer0.org2.example.com" with default driver Creating orderer.example.com ... done Creating peer0.org1.example.com ... done Creating peer0.org2.example.com ... done CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1889c5b78128 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 0.0.0.0:7051->7051/tcp peer0.org1.example.com 811f754c9f67 hyperledger/fabric-peer:latest "peer node start" 2 seconds ago Up Less than a second 7051/tcp, 0.0.0.0:9051->9051/tcp peer0.org2.example.com d57de54dbee9 hyperledger/fabric-orderer:latest "orderer" 2 seconds ago Up Less than a second 0.0.0.0:7050->7050/tcp orderer.example.com ` Can you help what is a mistake I made?

sudhan 25 (Mon, 23 Nov 2020 06:34:34 GMT):
I'm struggling for past 2 week's

sudhan 25 (Mon, 23 Nov 2020 06:35:50 GMT):

Screenshot 2020-11-23 at 12.05.16 PM.png

sudhan 25 (Mon, 23 Nov 2020 06:37:04 GMT):

Screenshot 2020-11-23 at 12.06.28 PM.png

RahulEth (Mon, 23 Nov 2020 07:33:41 GMT):
is there any function in fabric 2.0 so we can calculate transaction history by transaction id? like it was in fabric 1.4.x thanks

RahulEth (Mon, 23 Nov 2020 07:33:41 GMT):
is there any function in fabric 2.0 node sdk so we can calculate transaction history by transaction id? like it was in fabric 1.4.x thanks

invalido (Mon, 23 Nov 2020 07:59:59 GMT):
Thanks for the clarification

CaJIbHuK (Mon, 23 Nov 2020 12:28:22 GMT):
Has joined the channel.

CaJIbHuK (Mon, 23 Nov 2020 12:41:14 GMT):
Hi everyone! Does anybody know why the block verification may fail with the following error? All peers in the channel are constantly restarting while trying to sync the latest block.

CaJIbHuK (Mon, 23 Nov 2020 12:42:32 GMT):

log.txt

CaJIbHuK (Mon, 23 Nov 2020 12:42:58 GMT):

Clipboard - 23 ноября 2020 г., 15:42

Benjamin (Tue, 24 Nov 2020 01:36:28 GMT):
Hello, I have a question!!! In the Test network, "addorg3" is an example of adding "Org3" to an existing channel. How to create a single channel for "Org3", not the existing channel? It seems like you need to add "Org3" in the consortium by taking the genesis block of the "Orderer", not the config block of the channel, but there is no such example.

Benjamin (Tue, 24 Nov 2020 01:36:28 GMT):
Hi, I have a question!!! In the Test network, "addorg3" is an example of adding "Org3" to an existing channel. How to create a single channel for "Org3", not the existing channel? It seems like you need to add "Org3" in the consortium by taking the genesis block of the "Orderer", not the config block of the channel, but there is no such example.

CaJIbHuK (Tue, 24 Nov 2020 05:20:56 GMT):
Yeah, you have to add Org3 to consortium. The actions are the same as for application channel. Here is a couple of links https://medium.com/thinkdecentralized/updating-the-consortium-definition-in-hyperledger-fabric-d1b6a9d079b0 https://medium.com/@rsripathi781/how-to-add-an-organization-dynamically-to-existing-consortium-hyperledger-fabric-36b4c923b937

CaJIbHuK (Tue, 24 Nov 2020 05:21:10 GMT):
Yeah, you have to add Org3 to consortium. The actions are the same as for application channel. Here is a couple of links https://medium.com/thinkdecentralized/updating-the-consortium-definition-in-hyperledger-fabric-d1b6a9d079b0 https://medium.com/@rsripathi781/how-to-add-an-organization-dynamically-to-existing-consortium-hyperledger-fabric-36b4c923b937

Benjamin (Tue, 24 Nov 2020 06:57:22 GMT):
Thank you. Have a nice day.

abhishekktpl (Tue, 24 Nov 2020 09:12:13 GMT):
Has joined the channel.

abhishekktpl (Tue, 24 Nov 2020 09:13:43 GMT):
is there an ssl implementation for fabric couchDB ?

c0deh0use (Tue, 24 Nov 2020 11:22:57 GMT):
Hello, is it possible to mix Fabric-CA with cryptogen. I'm setting up a new network on Kubernetes to which external applications connect using Gateway SDK(Java). I'm struggling with sending a proposal transaction to other peer organizations. I'm not able to be verified with TLS on orgs 2 and 3, where my org1 is all fine. The current setup is using cryptogen to generate all the keys but I'm only using the tls ca certs for the gateway setup and after registering and enrolling a user with FabricCA on the external tool I'm using the cert that I got back. This cert is only valid for the one Org-CA that I have registered for.

c0deh0use (Tue, 24 Nov 2020 11:22:57 GMT):
Hello, is it possible to mix Fabric-CA with cryptogen? I'm setting up a new network on Kubernetes to which external applications connect using Gateway SDK(Java). I'm struggling with sending a proposal transaction to other peer organizations. I'm not able to be verified with TLS on orgs 2 and 3, where my org1 is all fine. The current setup is using cryptogen to generate all the keys but I'm only using the tls ca certs for the gateway setup and after registering and enrolling a user with FabricCA on the external tool I'm using the cert that I got back. This cert is only valid for the one Org-CA that I have registered for.

c0deh0use (Tue, 24 Nov 2020 11:22:57 GMT):
Hello, is it possible to mix Fabric-CA with cryptogen? I'm setting up a new network on Kubernetes to which external applications connect using Gateway SDK(Java). I'm struggling with sending a proposal transaction to other peer organizations. I'm not able to be verified with TLS on orgs 2 and 3, where my org1 is all fine. The current setup is using cryptogen to generate all the keys but I'm only using the tls ca certs for the gateway setup and after registering and enrolling a user with FabricCA on the external tool I'm using the cert that I got back. This cert is only valid for the one Org-CA that I have registered for.

rohitroyrr8 (Tue, 24 Nov 2020 13:50:41 GMT):
queryChaincode: No peers is out of a total of 1 were available to query Error: No peers available to query. last error was Error: 2 UNKNOWN: invalid txid. got [random id ], expected [different ransom id] can someone help me out in this?

SamYuan1990 (Tue, 24 Nov 2020 15:33:54 GMT):
hi it seems that 2.3 binary is not match with 2.2 docker image, as I reproduced my ci error with fabric sample ci with PR here https://github.com/hyperledger/fabric-samples/pull/379

SamYuan1990 (Tue, 24 Nov 2020 15:33:54 GMT):
hi it seems that 2.3 binary does not match with 2.2 docker image, as I reproduced my ci error with fabric sample ci with PR here https://github.com/hyperledger/fabric-samples/pull/379

SamYuan1990 (Tue, 24 Nov 2020 15:33:55 GMT):
https://chat.hyperledger.org/file-upload/PiAf8CFRvbHK4bX9a/Clipboard%20-%202020%E5%B9%B411%E6%9C%8824%E6%97%A5%E6%99%9A%E4%B8%8A11%E7%82%B932%E5%88%86

SamYuan1990 (Tue, 24 Nov 2020 15:34:01 GMT):
can some one help

SamYuan1990 (Tue, 24 Nov 2020 15:34:01 GMT):
can some one help?

SamYuan1990 (Tue, 24 Nov 2020 15:36:34 GMT):
https://dev.azure.com/Hyperledger/Fabric-Samples/_build/results?buildId=25956&view=logs&j=da384fcf-90d4-5b80-43e1-e99336f28a8e&t=b9765d42-0282-54df-8521-24ae18744699&l=99

SamYuan1990 (Tue, 24 Nov 2020 16:07:33 GMT):
as it is midnight local time open https://jira.hyperledger.org/browse/FAB-18350 for track

Logi (Tue, 24 Nov 2020 16:37:08 GMT):
Good day!, is it possible to use decision rule engine such as Drools BRE as smart contract and deploy it with fabric eco system. any direction on this will be great.. thanks

piyushmaheshwari65 (Wed, 25 Nov 2020 04:11:30 GMT):
Has joined the channel.

AngChenun (Wed, 25 Nov 2020 07:47:00 GMT):
Has joined the channel.

AngChenun (Wed, 25 Nov 2020 07:47:09 GMT):
https://stackoverflow.com/questions/64993558/hyperledger-fabric2-2-1-when-i-install-the-chaincode-from-asset-transfer-basic

AngChenun (Wed, 25 Nov 2020 07:47:19 GMT):
anyone who knows how to fix it can help me !!

AngChenun (Wed, 25 Nov 2020 07:50:47 GMT):
hyperledger fabric2.2.1, when I install the chaincode from asset-transfer-basic/chaincode-java, I failed ! why?

AngChenun (Wed, 25 Nov 2020 07:51:12 GMT):
and why the docs for v2.2.1 don't have the java tutorials?? please help me to figure out,thanks!!

kokolaki (Wed, 25 Nov 2020 08:08:12 GMT):
Hello, do you have docker image javaenv 2.2.1? do you deploy it on a raspberry with ubuntu or on a server?

AngChenun (Wed, 25 Nov 2020 09:02:52 GMT):
I deployed it on vetual ubuntu 20.04

AngChenun (Wed, 25 Nov 2020 09:04:04 GMT):
I deployed in the virtual machine ubuntu 20.04

kokolaki (Wed, 25 Nov 2020 09:04:24 GMT):
do you have image javaenv?

AngChenun (Wed, 25 Nov 2020 09:04:51 GMT):
let me check

AngChenun (Wed, 25 Nov 2020 09:07:20 GMT):
yes, I have

AngChenun (Wed, 25 Nov 2020 09:07:24 GMT):
hyperledger/fabric-javaenv 2.2

AngChenun (Wed, 25 Nov 2020 09:08:36 GMT):
But there's no 2.2.1

AngChenun (Wed, 25 Nov 2020 09:22:00 GMT):
I pulled 2.2.1

AngChenun (Wed, 25 Nov 2020 09:22:29 GMT):
But,now i have new problem

kokolaki (Wed, 25 Nov 2020 09:22:36 GMT):
which one?

AngChenun (Wed, 25 Nov 2020 09:22:46 GMT):
Error: failed to retrieve endorser client for install: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded

AngChenun (Wed, 25 Nov 2020 09:23:17 GMT):
Why is that

kokolaki (Wed, 25 Nov 2020 09:26:33 GMT):
well, I had a similar problem with gradle build. but I use version 2.2.0 you bootstrap images with that command curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.1 1.4.9?

kokolaki (Wed, 25 Nov 2020 09:27:00 GMT):
maybe now there is a problem with tag name of docker images

kokolaki (Wed, 25 Nov 2020 09:28:42 GMT):

Χωρίς τίτλο.png

kokolaki (Wed, 25 Nov 2020 09:29:35 GMT):
make sure you have docker images names similar with the above names of my images

kokolaki (Wed, 25 Nov 2020 09:30:44 GMT):
Also I use java java -version openjdk version "1.8.0_275" OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~18.04-b01) OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)

kokolaki (Wed, 25 Nov 2020 09:33:06 GMT):
you can remane images with docker hub. but I think the versions must be the same. for example if you use version 2.2.1, you must pull image 2.2.1 and after to rename it..

kokolaki (Wed, 25 Nov 2020 09:33:06 GMT):
you can remane images with docker tag. but I think the versions must be the same. for example if you use version 2.2.1, you must pull image 2.2.1 and after to rename it..

AngChenun (Wed, 25 Nov 2020 09:35:37 GMT):

Clipboard - 2020年11月25日下午5点35分

AngChenun (Wed, 25 Nov 2020 09:36:20 GMT):
The Java version is the same as yours

PJHaga (Wed, 25 Nov 2020 09:45:08 GMT):
Hi all, is there information available on how to achieve zero-downtime chaincode upgrades?

PJHaga (Wed, 25 Nov 2020 09:45:08 GMT):
Hi all, is there information available on how to achieve zero-downtime chaincode upgrades (currently using HLF 2.x) ?

kokolaki (Wed, 25 Nov 2020 09:52:50 GMT):
you use some images of verison 2.3.0 and some other of version 2.2.1 . maybe that is the problem

kokolaki (Wed, 25 Nov 2020 09:53:52 GMT):
follow instructions from here

kokolaki (Wed, 25 Nov 2020 09:53:54 GMT):
https://hyperledger-fabric.readthedocs.io/en/v2.2.1/install.html

kokolaki (Wed, 25 Nov 2020 09:55:08 GMT):
delete them of version 2.3

kokolaki (Wed, 25 Nov 2020 09:55:49 GMT):
and rename those of 2.2.1 with 2.2 if necessary

Jemal (Wed, 25 Nov 2020 11:01:07 GMT):
Hi guys, i am using fabric Java SDK to connect to fabric network. I am getting the following error. Can you please help with that? INFO: java.util.concurrent.CompletableFuture@6b30ae15[Completed exceptionally: java.lang.Exception: Channel mychannel failed to place transaction 78ccfadd991097d76310f20b7502de3c64797da9f62326662e33db43a4f5483b on Orderer. Cause: UNSUCCESSFUL. ]

leo8a (Wed, 25 Nov 2020 11:02:47 GMT):
Has joined the channel.

leo8a (Wed, 25 Nov 2020 11:04:24 GMT):
Hi there, just spotted you're working already on supporting fabric 2.2 (https://github.com/hyperledger-labs/blockchain-automation-framework/tree/feature/fabric220) in BAF... is there any estimation on when this will be available? thanks!

MohitRakhade (Wed, 25 Nov 2020 11:22:31 GMT):
Has joined the channel.

AngChenun (Wed, 25 Nov 2020 11:30:01 GMT):
I deleted 2.3 and then reported another error

AngChenun (Wed, 25 Nov 2020 11:30:40 GMT):
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ mktemp -d + TMP_DIR=/tmp/tmp.ebJHJG ++ find /chaincode/input -name .jar ++ paste -s -d : - + JARS= ++ find /chaincode/input -name '*.jar' ++ wc -l + NUM_JARS=1 + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + echo 'Copying from /chaincode/input/src to /tmp/tmp.ebJHJG' + cd /chaincode/input/src Copying from /chaincode/input/src to /tmp/tmp.ebJHJG + tar cf + cd /tmp/tmp.ebJHJG + tar xf - - . + cd /tmp/tmp.ebJHJG + echo 'Gradle build' + '[' -f ./gradlew ']' + chmod +x ./gradlew Gradle build + ./gradlew build shadowJar -x test Downloading https://services.gradle.org/distributions/gradle-6.5.1-bin.zip Exception in thread "main" java.net.UnknownHostException: services.gradle.org at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) at java.base/java.net.Socket.connect(Socket.java:591) at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285) at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569) at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:265) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at org.gradle.wrapper.Download.downloadInternal(Download.java:67) at org.gradle.wrapper.Download.download(Download.java:52) at org.gradle.wrapper.Install$1.call(Install.java:62) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63) "

AngChenun (Wed, 25 Nov 2020 11:31:07 GMT):
so confused

kokolaki (Wed, 25 Nov 2020 11:37:56 GMT):
I use fabric-samples from master repo. I don't have any problem. Did you follow the installation instructions to pull images?

kokolaki (Wed, 25 Nov 2020 11:38:37 GMT):
and pull bin and config folders

kokolaki (Wed, 25 Nov 2020 11:38:40 GMT):
?

AngChenun (Wed, 25 Nov 2020 11:46:19 GMT):
but there is no java instructions about deploy chaincode for version 2.2.1

AngChenun (Wed, 25 Nov 2020 11:47:02 GMT):
I successfully pulled down the image

AngChenun (Wed, 25 Nov 2020 11:47:56 GMT):
Does this version not support dploy Java chaincode.

kokolaki (Wed, 25 Nov 2020 11:50:15 GMT):
there are't instructions for deploy java in any version

kokolaki (Wed, 25 Nov 2020 11:50:55 GMT):
but it is possible to deploy it. I don't know what you do wrong

AngChenun (Wed, 25 Nov 2020 11:54:55 GMT):

Clipboard - 2020年11月25日晚上7点54分

AngChenun (Wed, 25 Nov 2020 11:56:02 GMT):
I followed the tutorial, and at this point I made a mistake

AngChenun (Wed, 25 Nov 2020 11:56:40 GMT):
Because I want to be able to install Java chaincode

AngChenun (Wed, 25 Nov 2020 11:57:12 GMT):
Other versions have Java tutorials

AngChenun (Wed, 25 Nov 2020 11:57:51 GMT):

Clipboard - 2020年11月25日晚上7点57分

AngChenun (Wed, 25 Nov 2020 11:58:57 GMT):
Just like this

AngChenun (Wed, 25 Nov 2020 12:01:18 GMT):
Are you successfully deployed Java chaincode on version 2.2.1?

kokolaki (Wed, 25 Nov 2020 12:01:41 GMT):
i use version 2.2.0

AngChenun (Wed, 25 Nov 2020 12:02:53 GMT):
What are your steps

kokolaki (Wed, 25 Nov 2020 12:05:43 GMT):
i deploy it on a raspberry pi and the images are for arm archand I made some changes but for asset-transfer-basic example the steps are the same

kokolaki (Wed, 25 Nov 2020 12:09:15 GMT):
the build.gradle file is the same. try to build chaincode with ./gradlew installDist

kokolaki (Wed, 25 Nov 2020 12:09:37 GMT):
and after try again

AngChenun (Wed, 25 Nov 2020 12:10:47 GMT):
I already tryed this comand

AngChenun (Wed, 25 Nov 2020 12:11:18 GMT):
but I will try it again

kokolaki (Wed, 25 Nov 2020 12:16:36 GMT):
that command is executed from deployCC.sh file to build java chaincode. If you did it before and you had the above result, then the problem is another

AngChenun (Wed, 25 Nov 2020 12:18:31 GMT):
./network.sh down ./network.sh up createChannel ./gradlew installDist export .... peer lifecycle chaincode package basic.tar.gz --path ../asset-transfer-basic/chaincode-java/ --lang java --label basic_1.0 peer lifecycle chaincode install basic.tar.gz

AngChenun (Wed, 25 Nov 2020 12:20:20 GMT):
yean,I can use deployCC to make it.

AngChenun (Wed, 25 Nov 2020 12:20:57 GMT):
but why can't use the install command

AngChenun (Wed, 25 Nov 2020 12:21:25 GMT):
What steps did I miss

kokolaki (Wed, 25 Nov 2020 12:21:53 GMT):
after ./network.sh up createChannel command you run ./network.sh deployCC

AngChenun (Wed, 25 Nov 2020 12:22:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hJJ9bvxyBoNSPTW6b) That's the whole process. The last command is where I made a mistake

kokolaki (Wed, 25 Nov 2020 12:23:18 GMT):
you must run ./gradlew installDist inside the path of build.gradle fiel of chaincode

kokolaki (Wed, 25 Nov 2020 12:24:02 GMT):
fabric-samples/asset-transfer-basic/chaincode-java

AngChenun (Wed, 25 Nov 2020 12:24:08 GMT):
Yes, I must be in the right folder

kokolaki (Wed, 25 Nov 2020 12:24:42 GMT):
after ./network.sh up createChannel command you run ./network.sh deployCC

AngChenun (Wed, 25 Nov 2020 12:25:47 GMT):
The default is Golang

AngChenun (Wed, 25 Nov 2020 12:26:27 GMT):
./network.sh deployCC -ccl java

kokolaki (Wed, 25 Nov 2020 12:26:57 GMT):
./network.sh deployCC -ccn basic -ccl java

kokolaki (Wed, 25 Nov 2020 12:27:28 GMT):
there are instructions inside network.sh file

AngChenun (Wed, 25 Nov 2020 12:30:45 GMT):
I just want to try to package and install a particular Chaincode Java

AngChenun (Wed, 25 Nov 2020 12:31:20 GMT):
deplyCC put it all together

AngChenun (Wed, 25 Nov 2020 12:34:53 GMT):
but it can works

AngChenun (Wed, 25 Nov 2020 12:35:48 GMT):
:full_moon_with_face:

AngChenun (Wed, 25 Nov 2020 12:36:34 GMT):
'install' command can't be used in java ?

AngChenun (Wed, 25 Nov 2020 12:40:27 GMT):
maybe it is ture, anyway

AngChenun (Wed, 25 Nov 2020 12:40:57 GMT):
I really appreciate your help. I hope you have a good day

kokolaki (Wed, 25 Nov 2020 14:23:51 GMT):
Where on peers is kept the chaincode? it is on blockchain or another path?

kokolaki (Wed, 25 Nov 2020 14:23:51 GMT):
Where on peers is kept the chaincode? it is on blockchain or another path? in which path can i find it?

PJHaga (Wed, 25 Nov 2020 15:56:36 GMT):
should be in `/var/hyperledger/production/chaincodes/`

Unicow (Wed, 25 Nov 2020 19:21:23 GMT):
Hi guys, what's the proper way to create a network programmatically in Java instead of using the sample scripts to create channels, install/instantiate chaincode and join networks? Is there a tutorial for that?

Unicow (Wed, 25 Nov 2020 19:21:23 GMT):
Hi guys, what's the proper way to create a network programmatically in Java or nodejs instead of using the sample scripts to create channels, install/instantiate chaincode and join networks? Is there a tutorial for that?

sdavid14 (Wed, 25 Nov 2020 22:46:04 GMT):
Has joined the channel.

sdavid14 (Wed, 25 Nov 2020 22:51:14 GMT):
is it acceptable/common practice to create many (thousands of) private data collections in fabric 2.x ? for example, one collection per client? purpose would be to leave open the possibility of sharing just that client data with an org via its own channel.

AliciaKiran (Thu, 26 Nov 2020 04:54:06 GMT):
Hi Guys, Iam I am using Fabric 2.0, deployed the chaincode and iam using API to push and fetch data from the blockchain. But after 2 to 3 days of usage my entire blockchain network is crashing. And this happened almost 3 times in 2 weeks now. Any help would be appreciated

Robbi373 (Thu, 26 Nov 2020 08:57:07 GMT):
Has joined the channel.

Robbi373 (Thu, 26 Nov 2020 08:57:08 GMT):
Hi there, I'm trying to recreate the test network by hand (without the provided scripts, and no docker) and everytime when I try to create the first application channel, I get this error: `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied`

Robbi373 (Thu, 26 Nov 2020 08:57:08 GMT):
Hi there, I'm trying to recreate the test network by hand (without the provided scripts, and no docker) and everytime when I try to create the first application channel, I get this error: `Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied` Any ideas what I could try to fix it?

kokolaki (Thu, 26 Nov 2020 11:29:01 GMT):
Thank you. That means that they aren't installed on blockchain of peer, right?

kokolaki (Thu, 26 Nov 2020 11:29:01 GMT):
Thank you. That means that chaincode isn't installed on blockchain of peer, right?

kokolaki (Thu, 26 Nov 2020 11:29:01 GMT):
Thank you. I found it on path /var/hyperledger/production/lifecycle/chaincodes inside a package tar.gz. That means that chaincode isn't installed on blockchain of peer, right? And how ledger interact with it from tar folder? it doesn't need to extract it?

ItaloCarrasco (Thu, 26 Nov 2020 16:15:30 GMT):
hello everyone in this tutorial https://hyperledger-fabric.readthedocs.io/en/release-2.2/secured_asset_transfer/secured_private_asset_transfer_tutorial.html how is private data being used if there isnt a collection cofiguration file on the chaincode?

ItaloCarrasco (Thu, 26 Nov 2020 16:15:30 GMT):
hello everyone in this tutorial https://hyperledger-fabric.readthedocs.io/en/release-2.2/secured_asset_transfer/secured_private_asset_transfer_tutorial.html how is private data being used if there isnt a collection cofiguration file on the chaincode, what i mean is where is the read write access for the implicit collection defined, as in the chaincode the org1 writes to the private collection of org2

Soundarya_Ayyappan (Fri, 27 Nov 2020 09:15:40 GMT):
I have an hyperledger fabric network (v2.2.0) running in a kubernetes cluster deployed using baf. Initially the network had 5 orgs (Org1, Org2, Org3, Org4 and Org5), later I tried to join an org (Org6) into the network using the baf script. Since using baf script didn't add the org to the channel successfully, I have manually joined the org6 to the network using the configtxlator tool. Now during Chaincode installation, I am facing an issue. Tested the fabcar chaincode (from the github repo - fabric-samples-2.0.0-beta), this chaincode installation resulted in same package id for all the 6 orgs in the network. But when I tried to deploy my own chaincode, I am getting different package id for the newly added 6th org, and different package id for all the remaining 5 orgs. Can anyone explain the cause of this? Thanks in Advance!

sadok (Fri, 27 Nov 2020 09:25:40 GMT):
Has joined the channel.

sadok (Fri, 27 Nov 2020 09:25:40 GMT):
Hello, im currently writing a thesis about Hyperledger Fabric and i am looking for some IoT use-cases that are already in production, I have already looked at the use-cases mentioned here https://www.hyperledger.org/blog/2020/07/27/hyperledger-powered-internet-of-things-applications but i am still open for any suggestions. I would be very thankful if someone knows of such a use-case

venuvedam (Fri, 27 Nov 2020 11:20:38 GMT):
Has joined the channel.

venuvedam (Fri, 27 Nov 2020 11:20:38 GMT):
newbie question. trying to start with the "getting started" section. Can't find the first-network folder in fabric-samples folder. Documentation, however, is all about byfn.sh in that folder. Any pointers?

RodrigoAlejandroMelo (Fri, 27 Nov 2020 13:18:20 GMT):
Has joined the channel.

RodrigoAlejandroMelo (Fri, 27 Nov 2020 13:19:18 GMT):
Hi community. I am starting with Hyperledger Fabric. I want to understand how to deal with chaincodes practically. I mean, how to indicate conditions and trigger them from another chaincode? or automatically (ex: birthday). How to update a previous chaincode? Is not clear to me how to distribute the business logic around several chaincodes. Do you have a resource (something to read, an example) to recommend me? Take in account that I am newbie with that.

kokolaki (Fri, 27 Nov 2020 13:23:25 GMT):
when chaincode is committed in version 2.x, it is installed with the block that is created on blockchain? and with the code inside that block we interact when we invoke transactions? or just we interact with code that is packaged in the peer container inside path /var/hyperledger/production/lifecycle/chaincodes?

zachariah (Sat, 28 Nov 2020 02:46:36 GMT):
Has joined the channel.

guolidong (Sat, 28 Nov 2020 03:30:38 GMT):
When a peer joins multiple channels, do the channels exist as multiple processes or as multiple threads within peer?

HansrajRami (Sat, 28 Nov 2020 14:47:02 GMT):
Hi all ! I am having one scenario in which it is required that in a channel transaction will be confirmed if it is endorsed by multiple peers of single org How can we achieve that in fabric ??

divina10 (Sun, 29 Nov 2020 21:14:54 GMT):
Has joined the channel.

divina10 (Sun, 29 Nov 2020 21:14:54 GMT):
How do I find a transaction by txID? In version 1.4(Fabric Node SDK) there was a queryTransaction method, but in 2.0 it is not there anymore. Is there any replacement for it? (getState is not an option, because I putState by string that represents the business key. When I execute "await ctx.stub.getHistoryForKey(assetId)" the response to my api service is an array where every json object contains block trxID. I need to access the information referenced by the trxID. Does anyone know which is the proper method to do this in NodeJs SDK (HF 2.0)?

BrettLogan (Sun, 29 Nov 2020 23:41:09 GMT):
Which documentation are you using, it looks like you might have old documentation as we now use `test-network`

BrettLogan (Sun, 29 Nov 2020 23:42:51 GMT):
A chaincode package and installation is a hash over a tarball, which contains metadata itself. Did you use the same package or did you repackage the chaincode, if you repackaged it, the tar headers will be different due to time

BrettLogan (Sun, 29 Nov 2020 23:43:30 GMT):
Do you have debug logs for your peer you could share what happened at the time of the crash?

BrettLogan (Sun, 29 Nov 2020 23:44:26 GMT):
Fabric itself does not provide tooling to programmatically deploy a fabric network. There are many 3rd party software out there to do this

BrettLogan (Sun, 29 Nov 2020 23:47:08 GMT):
In fabric 2.x the chaincode tarball is streamed to a docker chaincode build container that is created at chaincode installation. There the binary is built, or node packages resolved, or maven packages resolved, and then the contents of that package is streamed to the chaincode runtime container where the chaincode now runs as an executable or a node/java package in this container

Adhavpavan (Mon, 30 Nov 2020 02:55:06 GMT):
PLease use Blockdecoder available in fabric-common package

Soundarya_Ayyappan (Mon, 30 Nov 2020 04:29:02 GMT):
I tried packaging the chaincode multiple number of times, since for the first time I got an issue with invoke and query

BrettLogan (Mon, 30 Nov 2020 04:32:51 GMT):
Everytime you package the chaincode, the ID will change

Soundarya_Ayyappan (Mon, 30 Nov 2020 04:35:26 GMT):
Yes I understand that. But each time when I package the chaincode in all the orgs, the package id I am getting is same for 5 orgs and different for the 6th org (the one that I have added newly to the channel)

Soundarya_Ayyappan (Mon, 30 Nov 2020 04:36:42 GMT):
Because the package id for the 6th org is different, I am unable to do invoke and query from the 6th org peer

Soundarya_Ayyappan (Mon, 30 Nov 2020 06:38:41 GMT):
Also, I need to quote a statement that I am using the chaincode that I was using in the fabric network v1.4.2

AngChenun (Mon, 30 Nov 2020 07:00:02 GMT):
Anybody know how to do the application-java like ‘/fabric-samples/asset-transfer-basic/application-java’,I'm new to it。

AngChenun (Mon, 30 Nov 2020 07:44:23 GMT):

Clipboard - 2020年11月30日下午3点44分

RobinKlemens (Mon, 30 Nov 2020 08:53:15 GMT):
Hi everybody. I get an error when running `./network.sh up createChannel -ca` in ./test-network of the master branch of fabric-samples. When starting orderer I get: ```ERROR: manifest for hyperledger/fabric-orderer:latest not found: manifest unknown: manifest unknown``` I suggest hard coding default image tag to the most current version of fabric in: https://github.com/hyperledger/fabric-samples/blob/b0ea1f64889a8305c0efce55935924243d3c3752/test-network/network.sh#L392 or extend the docs with the `-i ` flag as standard command in this section: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html#bring-up-the-test-network `./network.sh up -i 2.3`` Is anybody else facing this issue? What do you think?

invalido (Mon, 30 Nov 2020 14:36:55 GMT):
Hi everybody, I've got a strange ENDORSEMENT_POLICY_FAILURE. Network: PC1: 3 Peers, PC2: 1 Peer

invalido (Mon, 30 Nov 2020 14:36:55 GMT):
Hi everybody, I've got a strange ENDORSEMENT_POLICY_FAILURE. Network: PC1: 3 Peers, PC2: 1 Peer Policy: OutOf(2, 'PC1MSP.member', 'PC2MSP.member') PC2 peer0: "Sending COMPLETED message back to peer" PC1 peer0: "Sending COMPLETED message back to peer" PC2 peer1: VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode power-chain in tx 14503:0 failed: signature set did not satisfy policy How could I find out what caused this problem? Chaincode is identical on both machines

invalido (Mon, 30 Nov 2020 14:36:55 GMT):
Hi everybody, I've got a strange ENDORSEMENT_POLICY_FAILURE. Network: PC1: 3 Peers, PC2: 1 Peer Policy: OutOf(2, 'PC1MSP.member', 'PC2MSP.member') PC2 peer0: "Sending COMPLETED message back to peer" PC1 peer0: "Sending COMPLETED message back to peer" PC2 peer1: VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode power-chain in tx 14503:0 failed: signature set did not satisfy policy How could I find out what caused this problem? Chaincode is identical on both machines *edit* Strangely, peer2 of PC caused the error. Although, peer2 has no dedicated "dev-peer". I'm confused

invalido (Mon, 30 Nov 2020 14:36:55 GMT):
Hi everybody, I've got a strange ENDORSEMENT_POLICY_FAILURE. Network: PC1: 3 Peers, PC2: 1 Peer Policy: OutOf(2, 'PC1MSP.member', 'PC2MSP.member') PC1 peer0: "Sending COMPLETED message back to peer" PC2 peer1: VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode power-chain in tx 14503:0 failed: signature set did not satisfy policy How could I find out what caused this problem? Chaincode is identical on both machines *edit* Strangely, peer2 of PC1 caused the error. Although, peer2 has no dedicated "dev-peer". I'm confused

invalido (Mon, 30 Nov 2020 14:36:55 GMT):
Hi everybody, I've got a strange ENDORSEMENT_POLICY_FAILURE. Network: PC1: 3 Peers, PC2: 1 Peer Policy: OutOf(2, 'PC1MSP.member', 'PC2MSP.member') PC1 dev-peer0: "Sending COMPLETED message back to peer" PC1 dev-peer1: "Sending COMPLETED message back to peer"" PC1 dev-peer2: non existent PC2 dev-peer0: "Sending COMPLETED message back to peer" REST: warn: [TransactionEventHandler]: _strategyFail: strategy fail for transaction "147db6b6aac08c20cce516177c9d45553f2804c3367dd564d846b43e1b6be8ee": TransactionError: Peer peer2.pc1:9051 has rejected transaction "147db6b6aac08c20cce516177c9d45553f2804c3367dd564d846b43e1b6be8ee" with code "ENDORSEMENT_POLICY_FAILURE" { TransactionError: Peer peer2.pc1:9051 has rejected transaction "147db6b6aac08c20cce516177c9d45553f2804c3367dd564d846b43e1b6be8ee" with code "ENDORSEMENT_POLICY_FAILURE" How could I find out what caused this problem? Chaincode is identical on both machines *edit* Strangely, peer2 of PC1 caused the error. Although, peer2 has no dedicated "dev-peer". I'm confused

AngChenun (Tue, 01 Dec 2020 06:13:55 GMT):
Does Fabric follow the same process as his sample

Vgkmanju (Tue, 01 Dec 2020 06:30:53 GMT):
In fabric 2.2, I am tried to deploy a chaincode in two organization each org has one peer node. while chaincode package I am getting different package id for a chaincode. Why?

yehia67 (Tue, 01 Dec 2020 13:47:36 GMT):
Hello, I deployed a hyperledger fabric chaincode on an ec2 instance. I want to connect the chaincode with a nodejs app on my local machine. So copied the `connection.json` file and changed all localhost URL with the ec2 IP address ``` "certificateAuthorities": { "ca.org1.example.com": { "url": "https://:7054", "caName": "ca-org1", ``` ``` "peers": { "peer0.org1.example.com": { "url": "grpcs://:7051", "tlsCACerts": { ``` and I set the asLocalhost to false ``` discovery: { enabled: true, asLocalhost: false, }, ``` finally, I set my IP to `all traffic on the security group. and I still get refused connection error. Anyone have this issue before? Is it a connection issue? not that I deployed the server on the same ec2 and it works correctly. Should I change anything on the connection.json file expect the localhosts?

yehia67 (Tue, 01 Dec 2020 13:48:26 GMT):
find the full connection file here:

yehia67 (Tue, 01 Dec 2020 13:48:27 GMT):
{ "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMIICFjCCAb2gAwIBAgIUC1wTLtVK1buKIJTrQaUUq0MBi+UwCgYIKoZIzj0EAwIw\naDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK\nEwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMt\nY2Etc2VydmVyMB4XDTIwMTIwMTEwMDEwMFoXDTM1MTEyODEwMDEwMFowaDELMAkG\nA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQKEwtIeXBl\ncmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMtY2Etc2Vy\ndmVyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEL3TskfhfGNraph1pkH8vukAD\nf2fG1Q5E/yAm6xZlQNSj230tpSlviNpNrigLpsRIECTuhXcQGmiwb/kEyDQ9vaNF\nMEMwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYE\nFDasD6ydcjqTLiZGpEqoiRZcilyQMAoGCCqGSM49BAMCA0cAMEQCIB13NlamVqoe\n6eaW29KiDsRVLV+nNVzNYxyfT2b6R32RAiBPfOt760qA8WrKPDLhjai+gtTxN0Yc\nYZpv0YJCQMy0yQ==\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMIICFjCCAb2gAwIBAgIUC1wTLtVK1buKIJTrQaUUq0MBi+UwCgYIKoZIzj0EAwIw\naDELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQK\nEwtIeXBlcmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMt\nY2Etc2VydmVyMB4XDTIwMTIwMTEwMDEwMFoXDTM1MTEyODEwMDEwMFowaDELMAkG\nA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRQwEgYDVQQKEwtIeXBl\ncmxlZGdlcjEPMA0GA1UECxMGRmFicmljMRkwFwYDVQQDExBmYWJyaWMtY2Etc2Vy\ndmVyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEL3TskfhfGNraph1pkH8vukAD\nf2fG1Q5E/yAm6xZlQNSj230tpSlviNpNrigLpsRIECTuhXcQGmiwb/kEyDQ9vaNF\nMEMwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYE\nFDasD6ydcjqTLiZGpEqoiRZcilyQMAoGCCqGSM49BAMCA0cAMEQCIB13NlamVqoe\n6eaW29KiDsRVLV+nNVzNYxyfT2b6R32RAiBPfOt760qA8WrKPDLhjai+gtTxN0Yc\nYZpv0YJCQMy0yQ==\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } }

yehia67 (Tue, 01 Dec 2020 13:49:27 GMT):
{ "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://:7051", "tlsCACerts": { "pem": "" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["\n"] }, "httpOptions": { "verify": false } } } }

invalido (Tue, 01 Dec 2020 16:00:14 GMT):
Hi everyone, got a `rpc error` message: `warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer2.xxx.de:9051" failed: message=transaction returned with failure: [284cae0e] error sending RESPONSE: rpc error: code = ResourceExhausted desc = trying to send message larger than max (108471606 vs. 104857600), stack=Error: transaction returned with failure: [284cae0e] error sending RESPONSE: rpc error: code = ResourceExhausted desc = trying to send message larger than max (108471606 vs. 104857600) ` How can I increase this threshold?

invalido (Tue, 01 Dec 2020 16:00:14 GMT):
Hi everyone, got a `rpc error` message: warn: [Query]: evaluate: Query ID "[object Object]" of peer "peer2.xxx.de:9051" failed: message=transaction returned with failure: [284cae0e] error sending RESPONSE: rpc error: code = ResourceExhausted desc = trying to send message larger than max (108471606 vs. 104857600), stack=Error: transaction returned with failure: [284cae0e] error sending RESPONSE: rpc error: code = ResourceExhausted desc = trying to send message larger than max (108471606 vs. 104857600) at self._endorserClient.processProposal (/var/hyperledger/node_modules/fabric-client/lib/Peer.js:144:36) at Object.onReceiveStatus (/var/hyperledger/node_modules/grpc/src/client_interceptors.js:1212:9) at InterceptingListener._callNext (/var/hyperledger/node_modules/grpc/src/client_interceptors.js:568:42) at InterceptingListener.onReceiveStatus (/var/hyperledger/node_modules/grpc/src/client_interceptors.js:618:8) at callback (/var/hyperledger/node_modules/grpc/src/client_interceptors.js:847:24), status=500, , url=grpcs://peer2.xxx.de:9051, name=peer2.xxx.de:9051, grpc.max_receive_message_length=-1, grpc.max_send_message_length=-1, grpc.keepalive_time_ms=120000, grpc.http2.min_time_between_pings_ms=120000, grpc.keepalive_timeout_ms=20000, grpc.http2.max_pings_without_data=0, grpc.keepalive_permit_without_calls=1, name=peer2.core.blockwerke.de:9051, grpc.ssl_target_name_override=peer2.xxx.de, grpc.default_authority=peer2.xxx.de, isProposalResponse=true How can I increase this threshold?

invalido (Tue, 01 Dec 2020 16:04:54 GMT):
I know that the transaction is larger than transactions should be, but it cannot be reduced. Any suggestions how to increase the limitation?

arjones (Tue, 01 Dec 2020 21:50:19 GMT):
Hello everyone. I am trying to add an organization on my Fabric network to a channel. I have FABRIC_CFG_PATH defined as config/defaults, but that is the only place that directory is mentioned. When running chaincode, I get the error `Error: error getting endorser client for channel: failed to load config for PeerClient: unable to load peer.tls.rootcert.file: open /.../config/defaults/tls/ca.crt: no such file or directory here` I'm confused about where this directory is being mentioned. The command I'm running is `peer channel join -b /path/to/chamnnel.block`. All previous commands (creating channels, anchor peers, etc) execute without fail. Any idea where or why this directory is being referenced here?

arjones (Tue, 01 Dec 2020 21:50:19 GMT):
Hello everyone. I am trying to add an organization on my Fabric network to a channel. I have FABRIC_CFG_PATH defined as config/defaults, but that is the only place that directory is mentioned. When running chaincode, I get the error `Error: error getting endorser client for channel: failed to load config for PeerClient: unable to load peer.tls.rootcert.file: open /.../config/defaults/tls/ca.crt: no such file or directory here` I'm confused about where this directory is being mentioned. The command I'm running is `peer channel join -b /path/to/channnel.block`. All previous commands (creating channels, anchor peers, etc) execute without fail. Any idea where or why this directory is being referenced here?

ALURUJAWAHAR (Wed, 02 Dec 2020 05:53:07 GMT):
Did you bootstrapped orderer node?

ALURUJAWAHAR (Wed, 02 Dec 2020 05:53:37 GMT):
@arjones

AngChenun (Wed, 02 Dec 2020 06:29:54 GMT):
Hi guys, do you know how many chaincodeStubs a chaincode file can contain?

AngChenun (Wed, 02 Dec 2020 06:34:35 GMT):
I want to set up the same key for different mappings for different objects

AngChenun (Wed, 02 Dec 2020 06:38:51 GMT):
The language I use is Java

MuhammedHafilC (Wed, 02 Dec 2020 07:28:24 GMT):
Has joined the channel.

Vgkmanju (Wed, 02 Dec 2020 07:32:03 GMT):
Hi all, In hyperledger fabric 2.2, I have 2 org setup. Each org has one peer node. Now I have added a new organization into the existing network. When I am trying to deploy chaincode using chaincode lifecycle, during packaging newly added peer node returns different packageID but same label name. Command: I run this following command in all the 3 org peer, peer lifecycle chaincode package InvestCC.tar.gz --path github.com/chaincodes/InvestCC --lang golang --label InvestCC_1 After installation the peer node returns the following packageID, Newly add org peer node: PACKAGE_ID="InvestCC_6:0c9e9922893fffab374e24270d20122f86389e71eb243c522cc55a6e0fdffff9" Existing orgs peer node: PACKAGE_ID="InvestCC_6:e2632d763358fde47e50d887d7acdbcb669c33dc4156da659dd213d33c6c9bed" In this packageID,I got same label but different hash.Due to different package ID, I am not able to do invoke and query in the new org. It returns the chaincode has not installed on the peer. So I gave different label name while packaging the chaincode on the peers. Existing orgs peer node: peer lifecycle chaincode package InvestorCC.tar.gz --path github.com/chaincodes/InvestorCC --lang golang --label InvestorCC_6 Newly added org peer: peer lifecycle chaincode package InvestorCC.tar.gz --path github.com/chaincodes/InvestorCC --lang golang --label Investor1CC_6 After chaincode installation, it returns two different packageID with different label name. It looks like, Newly added org peer node: PACKAGE_ID="Investor1CC_6:0c9e9922893fffab374e24270d20122f86389e71eb243c522cc55a6e0fdffff9" Existing orgs peer node: PACKAGE_ID="InvestorCC_6:e2632d763358fde47e50d887d7acdbcb669c33dc4156da659dd213d33c6c9bed" After the chaincode deployment, I can able to do invoke and query in all the peer nodes. Is this a right way to deploy a chaincode in the newly added org peer nodes? Anyone can suggest why the packageID is getting different for newly added org?

usamaarshad (Wed, 02 Dec 2020 08:47:46 GMT):
Has joined the channel.

usamaarshad (Wed, 02 Dec 2020 08:47:47 GMT):
Hello all, I know hyperledger supports offline signing. but I wonder how can i sign transaction from multiple people and merge them?

rakwaht (Wed, 02 Dec 2020 11:12:11 GMT):
Is there a plan to support dev-mode for chaincode in HLF2.2?

A1kartikey (Wed, 02 Dec 2020 11:17:40 GMT):
i get this error sometimes can anyone help

A1kartikey (Wed, 02 Dec 2020 11:17:42 GMT):
Failed to invoke chaincode. cause:Error: ChannelEventHub has been shutdown

saanvijay (Wed, 02 Dec 2020 12:11:25 GMT):
Is it possible to move entire Hyperledger Fabric ledger from one framework to other framework. For example: I want to move my entire ledger data from AWS managed blockchain to IBM Blockchain Platform. However, both framework uses Hyperledger Fabric internally. In other way, I want to my entire ledger from private network to AWS managed blockchain ? so that i can perceive my old data as well.

saanvijay (Wed, 02 Dec 2020 12:11:25 GMT):
Is it possible to move entire Hyperledger Fabric ledger from one framework to other framework. For example: I want to move my entire ledger data from AWS managed blockchain to IBM Blockchain Platform. However, both framework uses Hyperledger Fabric internally. In other way, I want to move my entire ledger from private network to AWS managed blockchain ? so that i can perceive my old data as well.

saanvijay (Wed, 02 Dec 2020 12:11:25 GMT):
Is it possible to move entire Hyperledger Fabric ledger from one framework to other framework(basically ledger import). For example: I want to move my entire ledger data from AWS managed blockchain to IBM Blockchain Platform. However, both framework uses Hyperledger Fabric internally. In other way, I want to move my entire ledger from private network to AWS managed blockchain ? so that i can perceive my old data as well.

CaJIbHuK (Wed, 02 Dec 2020 16:58:29 GMT):
Hi guys! I have a fabric network with 1 channel. This channel includes multiple organizations (let's say 5). Each organization has it's own anchor peer. When I remove organization from the channel and shut down related peers, other peers start showing the following messages: ``` 2020-12-02 16:50:56.060 UTC [gossip.gossip] func3 -> WARN 4279 Failed determining organization of 60fbe6e7b0467cfa0cea041801a83635a5a008b6536b132b32d9ac9f38d0a24c 2020-12-02 16:50:58.094 UTC [peer.gossip.sa] OrgByPeerIdentity -> WARN 427a Peer Identity [7b 22 43 4e 22 3a 22 6e 64 2d 32 38 31 2d 38 37 39 2d 34 37 34 2e 72 67 2d 37 39 36 2d 36 33 37 2e 69 6e 74 2e 63 68 61 69 6e 73 74 61 63 6b 2e 63 6f 6d 22 2c 22 49 73 73 75 65 72 2d 43 4e 22 3a 22 63 61 2e 72 67 2d 37 39 36 2d 36 33 37 2e 69 6e 74 2e 63 68 61 69 6e 73 74 61 63 6b 2e 63 6f 6d 22 2c 22 49 73 73 75 65 72 2d 4c 2d 53 54 2d 43 22 3a 22 5b 4c 6f 6e 64 6f 6e 5d 2d 5b 5d 2d 5b 47 42 5d 22 2c 22 49 73 73 75 65 72 2d 4f 55 22 3a 6e 75 6c 6c 2c 22 4c 2d 53 54 2d 43 22 3a 22 5b 4c 6f 6e 64 6f 6e 5d 2d 5b 5d 2d 5b 47 42 5d 22 2c 22 4d 53 50 22 3a 22 52 47 2d 37 39 36 2d 36 33 37 2d 4d 53 50 22 2c 22 4f 55 22 3a 6e 75 6c 6c 7d] cannot be desirialized. No MSP found able to do that. 2020-12-02 16:50:58.094 UTC [gossip.gossip] func3 -> WARN 427b Failed determining organization of 60fbe6e7b0467cfa0cea041801a83635a5a008b6536b132b32d9ac9f38d0a24c 2020-12-02 16:50:58.798 UTC [gossip.gossip] func3 -> WARN 427c Unable to determine org of message tag:EMPTY alive_msg:\275\360" > timestamp: > ``` I checked the channel block and the output of the discovery-cli, this peer is not there as well as the corresponding organization. What is the correct set of actions when I want to remove an organization and all its peers from the network/channel.

mkhraisha (Wed, 02 Dec 2020 19:00:04 GMT):
Hi all, not sure if this is the correct channel but i'm running into an issue where I'm trying to bundle NodeJS chaincode and install it on a peer with no internet, I setup a slack overflow question that has more details, but i'd happily expand on them here if it helps. This is for AWS managed blockchain (HLF 1.4) https://stackoverflow.com/questions/64813879/aws-managed-blockchain-bundling-libraries-nodejs?noredirect=1#comment115059998_64813879

Nathan_Kor (Thu, 03 Dec 2020 07:24:38 GMT):
Has joined the channel.

Nathan_Kor (Thu, 03 Dec 2020 07:24:39 GMT):
Hi guys! I'm wondering that (in case of golang chaincode) the return types of chaincode function is allowed to use []byte or [][]byte types. Usually I used the structure object types as the return types. However to make the chaincode implementation clean, I used []byte type for 'Get' retrieve functions and [][]byte types for 'GetAllItems' retrieve functions.

raviteja_puvvada (Thu, 03 Dec 2020 12:11:17 GMT):
I am deploying a network 1.4.4 on to Kubernetes cluster with 2 nodes. Able to install chaincode and query from cli. But unable to do the same from node API deployed on the same cluster. I gave the internal IP from the services exposed to connection profile in API .but it says DNS resolution failed. How to fix this?

raviteja_puvvada (Thu, 03 Dec 2020 12:12:42 GMT):

WhatsApp Image 2020-12-03 at 12.23.11 PM.jpeg

CaJIbHuK (Thu, 03 Dec 2020 15:04:53 GMT):
After I restarted all the peers, these messages went away. I wonder, how to avoid such annoying caching

godofmyownreligion (Thu, 03 Dec 2020 16:10:48 GMT):
Has joined the channel.

sergeikus (Thu, 03 Dec 2020 17:02:57 GMT):
Hello! I have a question. Is it possible to `MockInvoke` a chaincode function which contains `GetStateByPartialCompositeKeyWithPagination` ? I'm asking because this functions returns for all 3 arguments (only in testing). Important to mention that the chaincode is written in Go language.

hmoazzem (Thu, 03 Dec 2020 23:44:58 GMT):
Hello, I'd very much appreciate if anyone could help me join https://hlf-learning.slack.com. for CHFA exam prep.

spmcnamara (Fri, 04 Dec 2020 00:11:05 GMT):
Perhaps a silly question, but: Following the directions and trying to deploy the javascript "basic" example with HLF 2.3, and the deployCC script is failing saying: ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-b359a077730d7f44d6a437ad49d1da951f6a01c6d1eed4f85b8b1f5a08617fe7-40e7bb7f8ee7f34afff742475a34eddac41427d0a83a545b2bb44d6ea8b53676/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed ``` I've searched and found some suggestions that turning off gRPC FUSE in Docker would fix this but that didn't work. I've checked docker and all components (CA, CA orderer, orderer, org1 peer, org2 peer) are all running. Hoping someone can point me in the right direction.

spmcnamara (Fri, 04 Dec 2020 00:11:05 GMT):
Perhaps a silly question, but: Following the directions and trying to deploy the javascript "basic" example with HLF 2.3, and the deployCC script is failing saying: ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-b359a077730d7f44d6a437ad49d1da951f6a01c6d1eed4f85b8b1f5a08617fe7-40e7bb7f8ee7f34afff742475a34eddac41427d0a83a545b2bb44d6ea8b53676/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed ``` I've searched and found some suggestions that turning off gRPC FUSE in Docker would fix this but that didn't work. I've checked docker and all components (CA, CA orderer, orderer, org1 peer, org2 peer) are all running. Hoping someone can point me in the right direction. Running on top of OS X

spmcnamara (Fri, 04 Dec 2020 00:11:05 GMT):
Perhaps a silly question, but: Following the directions and trying to deploy the javascript "basic" example with HLF 2.3, and the deployCC script is failing saying: ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-b359a077730d7f44d6a437ad49d1da951f6a01c6d1eed4f85b8b1f5a08617fe7-40e7bb7f8ee7f34afff742475a34eddac41427d0a83a545b2bb44d6ea8b53676/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed ``` I've searched and found some suggestions that turning off gRPC FUSE in Docker would fix this but that didn't work. I've checked docker and all components (CA, CA orderer, orderer, org1 peer, org2 peer) are all running. Hoping someone can point me in the right direction. Running on top of OS X. There is no "/host/var/run/docker.sock" file, but I do have /var/run/docker.sock

spmcnamara (Fri, 04 Dec 2020 00:11:05 GMT):
Perhaps a silly question, but: Following the directions and trying to deploy the javascript "basic" example with HLF 2.3, and the deployCC script is failing saying: ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-b359a077730d7f44d6a437ad49d1da951f6a01c6d1eed4f85b8b1f5a08617fe7-40e7bb7f8ee7f34afff742475a34eddac41427d0a83a545b2bb44d6ea8b53676/json": dial unix /host/var/run/docker.sock: connect: no such file or directory Chaincode installation on peer0.org1 has failed Deploying chaincode failed ``` I've searched and found some suggestions that turning off gRPC FUSE in Docker would fix this but that didn't work. I've checked docker and all components (CA, CA orderer, orderer, org1 peer, org2 peer) are all running. Hoping someone can point me in the right direction. Running on top of OS X. There is no "/host/var/run/docker.sock" file, but I do have /var/run/docker.sock Looking like this might be a docker issue rather than HLF. Previously was running HLF v1.4 fine, but trying to make the jump to v2.

aakzubaidi (Fri, 04 Dec 2020 01:00:18 GMT):
Just a random suggestions try this ``` ls -l /var/run/docker.sock ``` and then ``` sudo chmod 666 /var/run/docker.sock ``` hopefully it works now. if not, then maybe you want to disable K8s. Let me know if any of that works!

aakzubaidi (Fri, 04 Dec 2020 01:00:18 GMT):
Just a random suggestion try this ``` ls -l /var/run/docker.sock ``` and then ``` sudo chmod 666 /var/run/docker.sock ``` hopefully it works now. if not, then maybe you want to disable K8s. Let me know if any of that works!

spmcnamara (Fri, 04 Dec 2020 02:28:49 GMT):
k8 is already disabled on my docker. I tried chmodding (which really should be needed) but get the same thing. It appears to be a pathing issue where /host/var/... isn't mapping to /var/...

spmcnamara (Fri, 04 Dec 2020 02:29:14 GMT):
My Mac is old and I'm stuck at High Sierra so can't run the latest docker release. That could be part of the problem...

ankush1995 (Fri, 04 Dec 2020 13:05:03 GMT):
Has joined the channel.

RafaelAPB (Fri, 04 Dec 2020 16:05:45 GMT):
Does anybody know if it is possible to programatically set private data collections using fabric-client or other sdk?

Adhavpavan (Fri, 04 Dec 2020 17:13:43 GMT):
Hello Rafael, I tried to cover in video, please chek a and let me know for more info. https://www.youtube.com/watch?v=QSE9ucGOfDE&list=PLSBNVhWU6KjW4qo1RlmR7cvvV8XIILub6&index=48

julian (Fri, 04 Dec 2020 19:18:41 GMT):
I'm not sure where to put this one. #fabric-sdk-node, #fabric-kubernetes, #fabric ? We are using fabric 2.2 and the node SDK. We have our app working on a local dev 2 org fabric using the test-network and our own external node chaincode. We are using a node client to access the fabric. We are seeing issues when we try to move our app to K8. The 2 org fabric is up, and I’m able to invoke the chaincode from the CLI, where I explicitly state the peers. However from the node client we have discovery enabled via a gateway, we receive an endorsement policy error. 2020-12-04 16:15:34.976 UTC [discovery] chaincodeQuery -> ERRO 02c Failed constructing descriptor for chaincode chaincodes: ,: no peer combination can satisfy the endorsement policy Using the discovery CLI, and comparing our local dev fabric, and K8 fabric, I can see the K8 peers response doesn’t contain peers from the other org. This is probably why the endorsement policy is not satisfied. How do I go about ensuring all peers are discoverable? I have set CORE_PEER_GOSSIP_EXTERNALENDPOINT for all peers, but this was set after the fabric and channel was created. I can see in each peers logs that discovery is activated. Each peer only returns itself when I run a discovery against it.

yacovm (Fri, 04 Dec 2020 19:53:39 GMT):
@julian you have anchor peers?

julian (Fri, 04 Dec 2020 20:19:23 GMT):
@yacovm I have them set in the configtx.yaml when I create the genesis block and channel.

iLico (Fri, 04 Dec 2020 20:23:47 GMT):
hello folks, which channel do you suggest for preparation of LFS272 - Hyperledger Fabric Administration certificate?

yacovm (Fri, 04 Dec 2020 20:48:04 GMT):
@julian that doesn't work

yacovm (Fri, 04 Dec 2020 20:48:15 GMT):
you need to configure them manually via a config update

julian (Fri, 04 Dec 2020 20:56:08 GMT):
@yacovm something like this? configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/${orgmsp}anchors.tx -channelID $CHANNEL_NAME -asOrg ${orgmsp}

yacovm (Fri, 04 Dec 2020 21:37:23 GMT):
yes

HansrajRami (Sat, 05 Dec 2020 11:59:28 GMT):
I created fabric network with fabric ca, 3 orgs and orderers with raft While using root ca everything was working perfect But when I switched to intermediate ca in orderer it is giving error of bad certificate I gave also try changing ca certificate config in orderer But still not working out Anu suggestions for how to solve this error ???

zachariah (Sat, 05 Dec 2020 16:51:27 GMT):
Hi all,

zachariah (Sat, 05 Dec 2020 16:59:10 GMT):
Hi all, I'm trying to get the fabric test network up and fully functional but I am getting stuck trying to deploy chaincode. I've been able to get peer0.org1, peer0.org2, and the orderer up. I've also been able to create multiple channels. Now when I run "sudo ./network.sh deployCC" I get the error "

zachariah (Sat, 05 Dec 2020 16:59:10 GMT):
Hi all, I'm trying to get the fabric test network up and fully functional but I am getting stuck trying to deploy chaincode. I've been able to get peer0.org1, peer0.org2, and the orderer up. I've also been able to create multiple channels. Now when I run "sudo ./network.sh deployCC" I get the error: "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory" It seems that it is looking for the docker.sock file in /hosts/var/run but there is no such location. the docker.sock file is located in /var/run.

zachariah (Sat, 05 Dec 2020 16:59:10 GMT):
Hi all, I'm trying to get the fabric test network up and fully functional but I am getting stuck trying to deploy chaincode. I've been able to get peer0.org1, peer0.org2, and the orderer up. I've also been able to create multiple channels. Now when I run "sudo ./network.sh deployCC" I get the error: "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory" It seems that it is looking for the docker.sock file in /hosts/var/run but there is no such location. the docker.sock file is located in /var/run. I've looked through all of the scripts that seem related to the command I ran and I cannot find the script that is generating this error so I really have no idea how to go about fixing it. I tried creating the path /host/var/run and copying the docker.sock file to it but I keep getting and error that its a read only files system. Any help on this would be amazing. Thank you.

zachariah (Sat, 05 Dec 2020 16:59:10 GMT):
Hi all, I'm trying to get the fabric test network up and fully functional but I am getting stuck trying to deploy chaincode. I've been able to get peer0.org1, peer0.org2, and the orderer up. I've also been able to create multiple channels. Now when I run "sudo ./network.sh deployCC" I get the error: "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory" It seems that it is looking for the docker.sock file in /hosts/var/run but there is no such location. the docker.sock file is located in /var/run. I've looked through all of the scripts that seem related to the command I ran and I cannot find the script that is generating this error so I really have no idea how to go about fixing it. I tried creating the path /host/var/run and copying the docker.sock file to it but I keep getting and error that its a read only files system. I'm on OSX. Any help on this would be amazing. Thank you.

ohryan (Sat, 05 Dec 2020 18:43:47 GMT):
Has joined the channel.

ohryan (Sat, 05 Dec 2020 18:47:47 GMT):
@zachariah I just ran through that example yesterday on macos so I know it works. what's a `docker ps -a` look like and you sure you set the env vars correctly?

ohryan (Sat, 05 Dec 2020 18:49:24 GMT):
Hey `channel`. Is there a page of resources for Hyperledger Fabric, links to projects created by the community? I'm specifically looking for any UI applications to reference

zachariah (Sun, 06 Dec 2020 06:47:57 GMT):

Screen Shot 2020-12-05 at 10.38.03 PM.png

zachariah (Sun, 06 Dec 2020 06:48:22 GMT):

Screen Shot 2020-12-05 at 10.40.30 PM.png

zachariah (Sun, 06 Dec 2020 06:48:28 GMT):
@ohryan No I am not sure I have my environment variables correct. Here is my `docker ps -a` printout and my and my .bash_profile

davidkel (Sun, 06 Dec 2020 08:25:37 GMT):
The MacOS version of Docker has a problem, you need to disable a feature of it. see https://lists.hyperledger.org/g/fabric/topic/77402508?p=Created,,,20,2,0,0::recentpostdate%2Fsticky,,,20,2,0,77402508

yongmu-lol (Mon, 07 Dec 2020 02:46:19 GMT):
When i want to instantiate my chaincode,it shows"Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (mycc:0) ".But i have installed my chaincode before.Can somebody help me ?thank you

amalendusuresh (Mon, 07 Dec 2020 04:34:37 GMT):
Has joined the channel.

amalendusuresh (Mon, 07 Dec 2020 04:34:38 GMT):
I am trying to re-enroll a user and gets an error like this.. "Error: Invalid re-enroll request, \"currentUser\" is not a valid User object, missing \"getIdentity()\" method", Could anyone please help me with this?

amalendusuresh (Mon, 07 Dec 2020 04:34:38 GMT):
I am trying to re-enroll a user in fabricSDK and gets an error like this.. "Error: Invalid re-enroll request, \"currentUser\" is not a valid User object, missing \"getIdentity()\" method", Could anyone please help me with this?

BrettLogan (Mon, 07 Dec 2020 05:54:59 GMT):
After you disable fuse, did you completely destroy the test network and start over. Fuse is definitely the issue here, it's a pain and unfortunately we've done the best we can documenting it. If you've done all this and it still doesn't work, ping me tomorrow Eastern US time and I'd be happy to help you try and work through it

BrettLogan (Mon, 07 Dec 2020 05:56:46 GMT):
I assume you are using the old Mock stub. Fabric Samples has a sample where you can generate a full stub on the fly and is really the recommended way of testing chaincode now. Users should be using the old Mock stub

BrettLogan (Mon, 07 Dec 2020 05:58:13 GMT):
https://github.com/hyperledger/fabric-samples/tree/master/asset-transfer-basic/chaincode-go/chaincode

BrettLogan (Mon, 07 Dec 2020 05:59:46 GMT):
You can see the sample I wrote here. It uses counterfeiter to generate the mocks via the go:generate statements in the test file(for example https://github.com/hyperledger/fabric-samples/blob/master/asset-transfer-basic/chaincode-go/chaincode/smartcontract_test.go#L26). So you need to only replicate these, install counterfeiter with `go get` and then do a `go generate ./...` to generate the mocks

BrettLogan (Mon, 07 Dec 2020 06:01:12 GMT):
You can mock any of the chaincode interfaces you need via this method.

ZainabM (Mon, 07 Dec 2020 06:45:06 GMT):
When I start the hyper ledger network on a free Kubernetes classic cluster of IBM Cloud following the GitHub link https://github.com/IBM/blockchain-network-on-kubernetes.git, the chain code instantiates. But when I try to instantiate the chain code in IBM's VPC cluster, I am getting Post http://docker:2375/containers/create? i/o timeout Can anyone please help?

sergeikus (Mon, 07 Dec 2020 07:57:03 GMT):
Thank you! Will try that.

james-wallis (Mon, 07 Dec 2020 10:43:59 GMT):
Has joined the channel.

BrettLogan (Mon, 07 Dec 2020 14:25:41 GMT):
Dev mode is fixed in v2.2. The reason it didn't work was actually a documentation limitation (we missed adding something) and not a functional limitation. The latest documentation has recently been tested to work: https://hyperledger-fabric.readthedocs.io/en/latest/peer-chaincode-devmode.html

BrettLogan (Mon, 07 Dec 2020 14:25:41 GMT):
Dev mode does work in all 2.x versions of Fabric. The reason it didn't work was actually a documentation limitation (we missed adding something) and not a functional limitation. The latest documentation has recently been tested to work: https://hyperledger-fabric.readthedocs.io/en/latest/peer-chaincode-devmode.html

BrettLogan (Mon, 07 Dec 2020 14:28:19 GMT):
Hey @saanvijay, it is possible. Do you simply want to move ledger data to peers operating in IBP that join your AWS network, or do you want to move the entire network.

ohryan (Tue, 08 Dec 2020 04:37:48 GMT):
How could I spin up a fabric network without docker? (so I can play hack). Any general advice is appreciated else I'll just have to reverse whatever I see the Dockerfiles doing. I'm assuming I just need to spin up some nodes with proper certificates pointing to a valid `core.yaml` file.

Asutorufa (Tue, 08 Dec 2020 07:43:48 GMT):
Has joined the channel.

Asutorufa (Tue, 08 Dec 2020 07:43:50 GMT):
Is there an example of organization units(OUs)?

HansrajRami (Wed, 09 Dec 2020 12:39:45 GMT):
I am using fabric ca to generating crypto materials Earlier when I was using simple root ca everything was working perfect But now I am using intermediate CA then in orderer it started giving error like TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.20.0.4:60972 I have also tried setting the cert of intermediate CA in ORDERER_GENERAL_TLS_ROOTCAS and ORDERER_GENERAL_CLUSTER_ROOTCAS then it is giving error like Failed to send StepRequest to 3, because: aborted channel=ordererchannel node=1

vineetmishra (Thu, 10 Dec 2020 03:21:27 GMT):
Hello, Did anyone deploy the Hyperledger fabric netowrk on a mixed network ( multicloud & on premise), ie if Blcokchain nodes are deployed on different on seprate clouds ( aws, azure) & on premise then what are the network configuration has to followed like port configuartion , orderer configuration , comminication between Orderer & Peers in this network. Any thoughts will be helpful.

RahulEth (Thu, 10 Dec 2020 06:37:33 GMT):
i need to parse below data in nodejs(got it from getTransactionByID fn) ```resultByte � � � �Ƚ��Ӵ" mychannel*@83e5776d1120d8afd90caf3fc28fabbdbe0daf7f64759978a640086a3d14d18f: banjiB ��H���S���4���ܒ7�Gpq�dPYr�� � Org1MSP�-----BEGIN CERTIFICATE----- MIICKjCCAdCgAwIBAgIQFdzfFkUv5ffrc0DIUsA3ljAKBggqhkjOPQQDAjBzMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu b3JnMS5leGFtcGxlLmNvbTAeFw0yMDEyMDcwODM4MDBaFw0zMDEyMDUwODM4MDBa MGwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T YW4gRnJhbmNpc2NvMQ8wDQYDVQQLEwZjbGllbnQxHzAdBgNVBAMMFlVzZXIxQG9y ZzEuZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASiBO/9w8RP TWmq9iJdPQpk4EJo8rCvHVdJi9Mw84UQJ2dwhoUYcuNCN1bezwfsXCwrv/QoJATy SyJULswVRTuHo00wSzAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0TAQH/BAIwADArBgNV HSMEJDAigCBfCWte2m0SPTNjzHqehFwQPD9MoB6ofhIR16XISr1JEjAKBggqhkjO PQQDAgNIADBFAiEA9meqsg79G+BdoNvbCklRrJL7VJpi4ZrN3tFnwr0OTwUCIGzX TjJny8KxkilMxOACLqguRBPMbJoWs/oFGTxayT/g -----END CERTIFICATE----- ��P���n�8IF�Ad 1��m� � � � Org1MSP�-----BEGIN CERTIFICATE----- MIICKjCCAdCgAwIBAgIQFdzfFkUv5ffrc0DIUsA3ljAKBggqhkjOPQQDAjBzMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy YW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu b3JnMS5leGFtcGxlLmNvbTAeFw0yMDEyMDcwODM4MDBaFw0zMDEyMDUwODM4MDBa MGwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T YW4gRnJhbmNpc2NvMQ8wDQYDVQQLEwZjbGllbnQxHzAdBgNVBAMMFlVzZXIxQG9y ZzEuZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASiBO/9w8RP TWmq9iJdPQpk4EJo8rCvHVdJi9Mw84UQJ2dwhoUYcuNCN1bezwfsXCwrv/QoJATy SyJULswVRTuHo00wSzAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0TAQH/BAIwADArBgNV HSMEJDAigCBfCWte2m0SPTNjzHqehFwQPD9MoB6ofhIR16XISr1JEjAKBggqhkjO PQQDAgNIADBFAiEA9meqsg79G+BdoNvbCklRrJL7VJpi4ZrN3tFnwr0OTwUCIGzX TjJny8KxkilMxOACLqguRBPMbJoWs/oFGTxayT/g -----END CERTIFICATE----- ��P���n�8IF�Ad 1��m� M K banji< saveFileInfo arg1 arg2 args3 args4 arg5 arg6 arg7� � g�~�J��!�aD���ɜ!dZ�U?��/��0� �6 _lifecycle( & namespaces/fields/banji/Sequenc� banji{y arg1q{"password":"arg2","filedetails":"args3","description":"args4","hash":"arg5","latlong":"arg6","timestamp":"arg7"}� banji@83e5776d1120d8afd90caf3fc28fabbdbe0daf7f64759978a640086a3d14d18f saveFileInfo"q{"password":"arg2","filedetails":"args3","description":"args4","hash":"arg5","latlong":"arg6","timestamp":"arg7"}�^{"txId":"83e5776d1120d8afd90caf3fc28fabbdbe0daf7f64759978a640086a3d14d18f","status":"success"}" banji2.0� � Org2MSP�-----BEGIN CERTIFICATE----- MIICKDCCAc6gAwIBAgIQGEwwPz8EEvNkm71baT7bNzAKBggqhkjOPQQDAjBzMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy YW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu b3JnMi5leGFtcGxlLmNvbTAeFw0yMDEyMDcwODM4MDBaFw0zMDEyMDUwODM4MDBa MGoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T YW4gRnJhbmNpc2NvMQ0wCwYDVQQLEwRwZWVyMR8wHQYDVQQDExZwZWVyMC5vcmcy LmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEYDloLT8I1sRn Xuen9q4hTeegYSS3V6ZYYBeAhesKCiQi0NVDqmvIQo63zLacHXkOsQaQy+4cRFKi ukTN+FqBRqNNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0j BCQwIoAgtsVWur3Zpd9a8RuRCKVJXNOIAJgt0XytSWlns//VZVgwCgYIKoZIzj0E AwIDSAAwRQIhAPhZM3rX+qgirnORJ7vCpnSHgvlpyUaew5iZwkUGIGZoAiBXeCv+ LDb0hEoMOuV9EYDCSxHYVGXWa61ycsRamenC+g== -----END CERTIFICATE----- F0D :��)]�0�� ߣ�M�5��CL��t���: -U� �l8Q:G9)v��**dw�p�� �b(F0D ���ǯ��%�S�5�N%aoq��sFl������� ��џ<�u"w�,�Wؗ����� B�c�C�```

Vgkmanju (Thu, 10 Dec 2020 08:55:39 GMT):
Hi all, Using BAF, I have setup fabric 2.2.0 with 5 orgs and 1 orderer in a kubernetes cluster. Each org has one peer. Now I am trying to integrate Explorer v1.1.2 with nodejs v12.16.0 apline3.11, postgresql v10 by creating separate pod for explorer and postgresql. I am facing the following issue while starting the explorer app (main.js) [2020-12-10T16:20:39.267] [DEBUG] main - false ssl-certs /opt/explorer/ssl-certs [2020-12-10T16:20:39.359] [INFO] PgService - SSL to Postgresql disabled [2020-12-10T16:20:39.359] [INFO] PgService - connecting to Postgresql postgres://hppoc:******@explorerdb:5432/fabricexplorer [2020-12-10T16:20:39.958] [DEBUG] Platform - ***** Initialization started for hyperledger fabric platform **** [2020-12-10T16:20:39.958] [DEBUG] Platform - ***** Initialization started for hyperledger fabric platform ****, { Bankema: { name: 'Bankema', profile: './connection-profile/Bankema.json' } } [2020-12-10T16:20:39.959] [DEBUG] Platform - Setting admin organization enrolment files [2020-12-10T16:20:39.959] [INFO] Platform - client_configs.name Bankema client_configs.profile ./connection-profile/Bankema.json [2020-12-10T16:20:39.959] [DEBUG] Platform - Creating client [Bankema] >> { name: 'Bankema', profile: './connection-profile/Bankema.json' } [2020-12-10T16:20:39.959] [INFO] Platform - Disabled authentication [2020-12-10T16:20:39.960] [DEBUG] FabricUtils - ********** Initializing fabric client for [Bankema]********** [2020-12-10T16:20:39.960] [DEBUG] FabricClient - Client configuration [Bankema] ... this.client_config { name: 'Bankema', profile: './connection-profile/Bankema.json' } [2020-12-10T16:20:39.960] [INFO] FabricConfig - config.client.tlsEnable true [2020-12-10T16:20:39.960] [DEBUG] FabricGateway - LOADING CONFIGURATION [OBJECT OBJECT] [2020-12-10T16:20:39.961] [INFO] FabricConfig - FabricConfig, this.config.channels bankemachannel [2020-12-10T16:20:40.054] [INFO] FabricGateway - enrollUserIdentity: userName : user1 [2020-12-10T16:20:40.214] [ERROR] FabricGateway - TypeError: org.peers is not iterable [2020-12-10T16:20:40.215] [ERROR] FabricClient - ExplorerError: [ 'Failed to create wallet, please check the configuration, and valid file paths' ] at FabricGateway.initialize (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:135:10) [2020-12-10T16:20:40.216] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> [2020-12-10T16:20:40.216] [ERROR] main - Error : [ 'Invalid platform configuration, Please check the log' ] [2020-12-10T16:20:42.217] [INFO] main - Received kill signal, shutting down gracefully [2020-12-10T16:20:42.218] [INFO] main - Closed out connections Can anyone suggest how to resolve this?

gabrielodi (Thu, 10 Dec 2020 15:29:46 GMT):
Has joined the channel.

ItaloCarrasco (Thu, 10 Dec 2020 19:17:39 GMT):
hello everyone i am using javascript chaincode and i am passing to a method some transient data, in that same method i am getting the privatedatahash from a key, i am hashing using sha256 the transient object and comparing it to the privatedatahash, i dont know why the hash values are not the same. does anyone know how to do it? i printed the objects on console to check and here is what it shows: transient data: { class: 'org.pagare', amount: '100', id: '125', owner: 'org1' } transient hash: c29b9b457ec73633c5b99ffbef2ac27329c0762871f5471978a08d408c97df4b privatedatahash: 027d798fa011fc64a90f87d0546a377cdbd3649782d3980e02403c2706a6c319 privatedata: { class: 'org.pagare', amount: '100', id: '125', owner: 'org1' }

ravishankar.gu (Fri, 11 Dec 2020 08:15:09 GMT):
Has joined the channel.

ravishankar.gu (Fri, 11 Dec 2020 08:16:28 GMT):
Hello, using fabric node client 2.2 , how I can get current block number Or block information??

bestbeforetoday (Fri, 11 Dec 2020 10:44:07 GMT):
If you mean that you've called the `GetTransactionByID` function on the `qscc` system chaincode, the result is a serialized `peer.ProcessedTransaction` protobuf: https://github.com/hyperledger/fabric/blob/b2b4b0f133affc957c6fbd6c239b4168a1189ed2/core/ledger/kvledger/kv_ledger.go#L506

bestbeforetoday (Fri, 11 Dec 2020 10:48:31 GMT):
There are compiled JavaScript protobuf definitions in the `fabric-protos` package that can be used to `decode` (deserialize) the protobuf

hmoazzem (Sat, 12 Dec 2020 02:10:25 GMT):
I'm trying play around with SoftHSM2. I followed the instructions at https://github.com/opendnssec/SoftHSMv2 and successfully initialized a token. Then modify `fabric-ca-server-config.yaml` as described at https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#configuring-an-hsm ``` ... ... bccsp: default: PKCS11 pkcs11: Library: /usr/local/lib/softhsm/libsofthsm2.so Pin: 0987654321 Label: fabric-ca hash: SHA2 security: 256 filekeystore: keystore: msp/keystore ... ... ``` Then try to start ca-server ``` fabric-ca-server start -d -b admin:adminpw --port 7050 ``` But getting below error ``` 2020/12/12 02:03:05 [DEBUG] Home directory: /home/vagrant 2020/12/12 02:03:05 [INFO] Configuration file location: /home/vagrant/fabric-ca-server-config.yaml 2020/12/12 02:03:05 [INFO] Starting server in home directory: /home/vagrant 2020/12/12 02:03:05 [DEBUG] Set log level: 2020/12/12 02:03:05 [INFO] Server Version: 1.4.9 2020/12/12 02:03:05 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2020/12/12 02:03:05 [DEBUG] Making server filenames absolute 2020/12/12 02:03:05 [DEBUG] Initializing default CA in directory /home/vagrant 2020/12/12 02:03:05 [DEBUG] Init CA with home /home/vagrant and config {Version:1.4.9 Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name: Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc00034a430 CSR:{CN:fabric-ca-server Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[buster localhost] KeyRequest:0xc0002b3320 CA:0xc0002b33c0 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1] }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }} } CSP:0xc00034c180 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2020/12/12 02:03:05 [DEBUG] CA Home Directory: /home/vagrant 2020/12/12 02:03:05 [DEBUG] Checking configuration file version '1.4.9' against server version: '1.4.9' 2020/12/12 02:03:05 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts: PluginOpts:} 2020/12/12 02:03:05 [DEBUG] Closing server DBs Error: Failed to get BCCSP with opts: Could not find BCCSP, no 'PKCS11' provider ```

Hong3Nguyen (Sat, 12 Dec 2020 15:58:46 GMT):
Hi, I am trying to register a user but I got this error. Do you have any ideas? Thank you in advance "Registration of 'appUser' failed: : scode: 500, code: 45, msg: Failed to verify if user can act on type 'client': : scode: 403, local code: 42, local msg: 'admin' is not a registrar, remote code: 71, remote msg: Authorization failure"

neoice (Sat, 12 Dec 2020 19:52:12 GMT):
Has joined the channel.

moguzsen (Sat, 12 Dec 2020 20:58:53 GMT):
Has joined the channel.

moguzsen (Sat, 12 Dec 2020 20:58:54 GMT):
Hi, I am trying to run my java app which is based on asset-transfer-basic java app. I am stuck at this "java.lang.UnsupportedOperationException" runtime exception, while "builder.identity(wallet, "appUser").networkConfig(networkConfigPath).discovery(true);" code line is being executed. I checked and found my app gets wallets and ids (admin and appuser) without a problem. I suppose exception is thrown while executing networkConfig(networkConfigPath) function. I looked at SDK documentation and checked networkConfig gets networkConfigPath correctly (thus no IOException is thrown). I am really confused that same lines of code used for connection to blockchain network works in asset-transfer-basic sample but not in my app using test-network with same parameters. I will be much grateful, if anyone can help me.

moguzsen (Sat, 12 Dec 2020 22:31:42 GMT):
I tried running it back with original asset-transfer-basic java app code, but still same "java.lang.UnsupportedOperationException" runtime exception....

moguzsen (Sat, 12 Dec 2020 22:38:10 GMT):
Just changed build.gradle file and it worked! But I am still curious how it is related with build.gradle files,

moguzsen (Sat, 12 Dec 2020 22:40:56 GMT):

Clipboard

moguzsen (Sat, 12 Dec 2020 22:42:59 GMT):

Clipboard

amalendusuresh (Mon, 14 Dec 2020 06:36:22 GMT):
Could anyone share re-enroll code of fabric-sdk-node

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) We can use regular CAs (like Symantec or DigiCert)? Any disadvantage of using these 2) Can we use one CA to issue both Identity and TLS certificates? ```

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) We can use regular CAs (like Symantec or DigiCert)? Any disadvantage of using these 2) Can we use one CA to issue both Identity and TLS certificates? 3) What if more that one Org uses the same CA(s)? Does it mean the a certificate from the CA grants access to all the Orgs using the same CA(s)? ```

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) We can use regular CAs (like Symantec or DigiCert)? Any disadvantage of using these 2) Can we use one CA to issue both Identity and TLS certificates? 3) What if more than one Org uses the same CA? Does it mean that a certificate from the CA grants access to all the Orgs using the same CA? ```

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) We can use regular CAs (like Symantec or DigiCert)? Any advantages/disadvantage of using these? 2) Can we use one CA to issue both Identity and TLS certificates? 3) What if more than one Org uses the same CA? Does it mean that a certificate from the CA grants access to all the Orgs using the same CA? ```

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) Can I use regular CAs (like Symantec or DigiCert)? Any advantages/disadvantage of using these? 2) Can we use one CA to issue both Identity and TLS certificates? 3) What if more than one Org uses the same CA? Does it mean that a certificate from the CA grants access to all the Orgs using the same CA? ```

chanjaljayaram (Mon, 14 Dec 2020 15:00:35 GMT):
Can anyone help me understand the below items?``` 1) Can I use regular CAs (like Symantec or DigiCert)? Any advantages/disadvantage of using these? 2) Can I use one CA to issue both Identity and TLS certificates? Any advantages/disadvantage of using same CA for Identity and TLS? 3) What if more than one Org uses the same CA? Does it mean that a certificate from the CA grants access to all the Orgs using the same CA? ```

yacovm (Mon, 14 Dec 2020 19:11:44 GMT):
1) Yes. only advantages- you don't have to host your own CA 2) In theory yes, but, it's better to separate the two 3) It means that any issued identity can authenticate as both organizations. You can, however, define organizations with specific OUs

ckong (Mon, 14 Dec 2020 19:30:42 GMT):
I apologize if my question is too broad in scope, but how should I go about debugging a `[EventService]: on.data - unexpected deliverResponse status received - NOT_FOUND` error message?

davidkel (Mon, 14 Dec 2020 19:44:50 GMT):
Sounds like you are using the fabric node sdk ? would suggest you ask questions about that on #fabric-sdk-node. But you can also turn on logging as well see https://hyperledger.github.io/fabric-sdk-node/release-2.2/tutorial-logging.html for 2.2 and https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-logging.html for 1.4

chanjaljayaram (Tue, 15 Dec 2020 04:23:11 GMT):
Thanks @yacovm. So wrt #1 and #3 if organizations go with existing CAs like DigiCert and these organizations become part of different networks. In that scenario where we would need to separate the CAs for different network and within a network use separate CA for Identity and TLS (#2), we'll soon run out of CAs to get certificates from, right? Now we can use OU to distinguish networks/organizations that are using the same CA but what would be stopping an organization from getting a certificate with an OU value that another organization uses? In other words if I'm to use an existing public CA I can only hope that they don't give out other organizations or people certificates with an OU that I'm using for my HLF components? Is OU/CA the combination being checked or HLF checks the O/OU/CA combination? If it is O/OU/CA I think we should be good with using public CAs as they validate the O entry before issuing the certificate.

chanjaljayaram (Tue, 15 Dec 2020 04:23:11 GMT):
Thanks @yacovm. So wrt #1 and #3 if organizations go with existing CAs like DigiCert and these organizations become part of different networks. In that scenario where we would need to separate the CAs for different network and within a network use separate CA for Identity and TLS (#2), we'll soon run out of CAs to get certificates from, right? Now we can use OU to distinguish networks/organizations that are using the same CA but what would be stopping an organization from getting a certificate with an OU value that another organization uses? In other words if I'm to use an existing public CA I can only hope that they don't give out other organizations or people certificates with an OU that I'm using for my HLF components? Is OU/CA the combination being checked or HLF checks the O/OU/CA combination? If it is O/OU/CA I think we should be good with using public CAs as they validate the O entry before issuing the certificate. Also I believe if we were to use the same CA for Identity and TLS we could use one single certificate for Identity and TLS?

ckong (Tue, 15 Dec 2020 07:33:17 GMT):
This has been very helpful, thanks!

ckong (Tue, 15 Dec 2020 09:05:30 GMT):
Are there any other ways for a genesis block to disappear, short of someone/thing deleting it from the external volume which binds to the orderer container?

ckong (Tue, 15 Dec 2020 09:45:09 GMT):
If the ordering cluster is knocked out (for instance due to power outage), since the data remains untouched on the orderer and peer nodes, is there any way I can restore the network back to its previous state before the KO?

sudhasakshi (Tue, 15 Dec 2020 11:18:42 GMT):
Hi, I am getting Error: 2020-12-15 08:40:52.092 UTC [peer] getLocalAddress -> ERRO 002 local IP address not auto-detectable: no non-loopback, IPv4 interface detected Error: no non-loopback, IPv4 interface detected while starting peer.

FranklinRivero (Tue, 15 Dec 2020 17:47:07 GMT):
Has joined the channel.

FranklinRivero (Tue, 15 Dec 2020 17:47:07 GMT):
Hi, glad to be part of hyperledger community, I'm new and have a couple questions, I'm using hlf2.2 1. if running chaincode container as external, on same host as peer with network_mode: host, on the connection.json, should you put "address": "localhost:port", or do you still need to put something like "address": "marbles.dev.org1:8052"? 2. all examples I find are with a single peer, if more than 1 peer, each peer has its own chaincode container running, how does the approveformyorg works? should I approve all CCIDs on all peers in all org? example: 2 peers in org 1 with different CCID, 1 peer in org2 with another CCID. should I approve the 3 CCIS on both orgs? I get a different CCID on each peer when installing the chaincode, that's why I have 3 All options I've tried give me the following error when invoking: make sure the chaincode marbles has been successfully defined on channel verizon-apple-channel and try again: chaincode definition for 'marbles' exists, but chaincode is not installed. chaincode is installed on each peer, I believe I'm doing something wrong with approve for my org

FranklinRivero (Tue, 15 Dec 2020 19:58:31 GMT):
now I get something as cryptic as: failed to invoke backing implementation of 'QueryApprovedChaincodeDefinition': could not deserialize namespace metadata for marbles#5: could not query metadata for namespace namespaces/marbles#5: GET_STATE failed: transaction ID: f36f7f34cae172acc5819fadfaa58c27e4af0f5f3538b55332a012d332ca2096: private data matching public hash version is not available. Public hash version = {BlockNum: 25, TxNum: 0}, Private data version =

FranklinRivero (Tue, 15 Dec 2020 19:58:57 GMT):
approving a chaincode timedout and left me on this state that I can not do anything else on that peer anymore

FranklinRivero (Tue, 15 Dec 2020 20:02:59 GMT):
and when I do *peer lifecycle chaincode queryinstalled* new packageIds keep popping up without any intervention from me

Teaaa (Wed, 16 Dec 2020 03:55:48 GMT):
Hi everyone

Teaaa (Wed, 16 Dec 2020 03:55:48 GMT):
Hi everyone. Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and I feel so concerned *how we can generate the config file*, I couldn't find them anywhere. Can anyone help me?

Teaaa (Wed, 16 Dec 2020 03:55:48 GMT):
Hi everyone. Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and I feel so concerned *how we can generate the config file*, I couldn't find documents anywhere. Can anyone help me?

Teaaa (Wed, 16 Dec 2020 03:55:48 GMT):
Hi everyone. Currently, I'm working with Fabric SDK Go. I have some questions: 1. To work together with SDK we need a configuration file and I feel so concerned *how we can generate the config file*, I couldn't find documents anywhere. 2. I planned to save channel information to database. So that, Is it possible to use Fabric SDK Go *without* config file ? Can anyone help me? Thank you

Teaaa (Wed, 16 Dec 2020 03:59:06 GMT):
Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and my I feel so concerned how we can generate the config file, I couldn't find them anywhere. Can anyone help me

Teaaa (Wed, 16 Dec 2020 03:59:06 GMT):
Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and I feel so concerned how we can generate the config file, I couldn't find them anywhere. Can anyone help me

Teaaa (Wed, 16 Dec 2020 03:59:06 GMT):
Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and I feel so concerned how we can generate the config file, I couldn't find them anywhere. Can anyone help me?

Teaaa (Wed, 16 Dec 2020 03:59:06 GMT):
Currently, I'm working with Fabric SDK Go. To work together with SDK we need a configuration file and I feel so concerned *how we can generate the config file*, I couldn't find them anywhere. Can anyone help me?

Teaaa (Wed, 16 Dec 2020 03:59:28 GMT):
Thank you

qpqp (Wed, 16 Dec 2020 10:38:52 GMT):
Has joined the channel.

qpqp (Wed, 16 Dec 2020 10:38:56 GMT):
Hello there everyone, like many I am coming here to seek help from other fellow hyperledger developers, I am glad I found such a place. I was wondering if any of you is familiar with the following warnings and errors inside orderers containers' logs : "slow fdata sync" "Your disk is too slow and may cause loss of quorum and trigger leadership election" "Fail to send StepRequest because send queue overflown" But then the election fails and you have no Raft leader and there is no new elections and your network isn't working until your restart your orderer containers... I am working on Hlf1.4, is anyone familiar with such a problem ?

PJHaga (Wed, 16 Dec 2020 15:34:03 GMT):
Hi, I'm running a peer (1.4.1) in kubernetes in a pod which consists of 2 containers, the fabric-peer container and the docker container. In the docker container the chaincode container is ran with docker. When instantiating this chaincode container the process pulls 2 images hyperledger/fabric-ccenv:1.4.4 and hyperledger/fabric-baseimage:amd64-0.4.15. However, due to the recent introduction of pull rate limits of the public docker hub this causes issues. Therefore we want to host these images in a private repo and pull from there. I've added the authentication file for docker in $HOME/.docker/config.json and I'm able to pull the images when I exec into the container. However, the instantiate still fails with this error: Failed to pull /hyperledger/fabric-ccenv:1.4.4: API error (500): Get https:///hyperledger/fabric-ccenv/manifests/1.4.4: unauthorized. How do I setup this authentication?

PJHaga (Wed, 16 Dec 2020 16:19:22 GMT):
It seems that the code at some point does `level=error msg="Handler for POST /images/create returned error` and it seems that in order for this to succeed, I'd have to be able to add somekind of authentication header, but I haven't found any config for this so far

yehuofirst (Thu, 17 Dec 2020 01:36:05 GMT):
Hi, cello support fabric 2.2?

ckong (Thu, 17 Dec 2020 01:56:45 GMT):
I found this link that talks about disaster recovery methods in Fabric - https://www.skcript.com/svr/hyperledger-fabric-disaster-recovery-methods/. Is this the correct/recommended way to backup a network?

sigma67 (Thu, 17 Dec 2020 15:00:55 GMT):
Hey all, quick question regarding Fabric Metrics. I see there is a metric for gossip.comm.messages_sent, but I assume it only counts the total number of messages to all peers. Is there a way to get message counts for the connection to individual peers? I.e. a per-peer communication metric? Or any other way to track the communication between individual peers?

jital (Fri, 18 Dec 2020 05:16:14 GMT):
is there a way to differentiate, if a chaincode is invoked from another chaincode or from a client.? We have a chaincode that is invoked by clients of other organizations which in turn invokes another chaincode on the same peer. The issue is 2nd chaincode is invoked using the same credentials as the one used by the first. I need to stop direct access to 2nd chaincode from clients. It can be only accessed by other chaincodes

yacovm (Fri, 18 Dec 2020 09:37:36 GMT):
@jital you can define an authentication filter to block chaincodes from clients https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L380-L391

yacovm (Fri, 18 Dec 2020 09:38:20 GMT):
https://github.com/hyperledger/fabric/blob/master/core/handlers/auth/plugin/filter.go

adarshaJha (Fri, 18 Dec 2020 12:20:17 GMT):
HI suddenly all of my tlsca certs expired my network is on production what to do in order to start the network from same state how to renew my tls certs ? my orderer and peers all are giving bad certificate error

CaJIbHuK (Fri, 18 Dec 2020 14:21:44 GMT):
Guys, I'm trying to use VS Code IBM Extension 2.0.0-rc.1 to deploy a smarrt contract. It says that that contract is successfully installed on peer but approval fails. Does anyone know what is meant under ordererName?

CaJIbHuK (Fri, 18 Dec 2020 14:21:44 GMT):
Guys, I'm trying to use VS Code IBM Extension 2.0.0-rc.1 to deploy a smarrt contract. It says that the contract is successfully installed on peer but approval fails. Does anyone know what is meant under ordererName?the

CaJIbHuK (Fri, 18 Dec 2020 14:21:44 GMT):
Guys, I'm trying to use VS Code IBM Extension 2.0.0-rc.1 to deploy a smarrt contract. It says that the contract is successfully installed on peer but approval fails. Does anyone know what is meant under ordererName?

CaJIbHuK (Fri, 18 Dec 2020 14:21:50 GMT):

Clipboard - 18 декабря 2020 г., 17:21

davidkel (Fri, 18 Dec 2020 14:31:16 GMT):
I would suggest you raise a github issue here https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues

Jakeeyturner (Fri, 18 Dec 2020 14:35:52 GMT):
Hi @CaJIbHuK, it seems as if you need to add the orderer to the environment - otherwise the approval isn't able to take place.

Jakeeyturner (Fri, 18 Dec 2020 14:36:17 GMT):
(As technically it is submitting a transaction - which requires an orderer)

CaJIbHuK (Fri, 18 Dec 2020 14:39:52 GMT):
@Jakeeyturner Thanks for the response! Could you guide me how to add an orderer, shall I import it just like a peer node?

CaJIbHuK (Fri, 18 Dec 2020 14:39:53 GMT):

Clipboard - 18 декабря 2020 г., 17:39

Jakeeyturner (Fri, 18 Dec 2020 14:40:10 GMT):
yeah you need to import the orderer node (and associate it with the orderer admin)

Jakeeyturner (Fri, 18 Dec 2020 14:40:29 GMT):
exactly!

CaJIbHuK (Fri, 18 Dec 2020 14:45:15 GMT):
Is it trying to approve for all organizations? Is it possible to approve just for my organization that I have admin identity of? I used to use `peer lifecycle chaincode approveformyorg` for this purpose

CaJIbHuK (Fri, 18 Dec 2020 14:45:15 GMT):
Is it trying to approve for all organizations? Is it possible to approve just for my organization that I have admin identity of? I used to use `peer lifecycle chaincode approveformyorg` for this purpose with the admin identity of my own peer

CaJIbHuK (Fri, 18 Dec 2020 14:45:15 GMT):
Is it trying to approve for all organizations? Is it possible to approve just for my organization that I have admin identity of? I used to use `peer lifecycle chaincode approveformyorg` for this purpose with the admin identity of my peer

Jakeeyturner (Fri, 18 Dec 2020 14:46:19 GMT):
I believe it will only approve for the orgs it knows about - in your case you only have a single peer added, so it'll only know about that org.

Jakeeyturner (Fri, 18 Dec 2020 14:48:12 GMT):
If you added other peers (belonging to other orgs), then it would attempt to do the approval for them as well.

CaJIbHuK (Fri, 18 Dec 2020 14:52:36 GMT):
Cool, I added an orderer and associated with the **peer's admin identity**. And it worked! Thanks!

CaJIbHuK (Fri, 18 Dec 2020 14:52:53 GMT):

Clipboard - 18 декабря 2020 г., 17:52

CaJIbHuK (Fri, 18 Dec 2020 14:53:00 GMT):

Clipboard - 18 декабря 2020 г., 17:52

Jakeeyturner (Fri, 18 Dec 2020 14:53:03 GMT):
Awesome - let me know if you have any feedback regarding 2.0.0-rc.1 by the way!

ckong (Fri, 18 Dec 2020 19:36:17 GMT):
I'm trying to deploy a three-orderer two-peer network. I don't understand why only my first peer node logs `[core.comm] ServerHandshake -> ERRO 1dc TLS handshake failed with error remote error: tls: internal error server=PeerServer remoteaddress=10.11.65.1:39736` but my subsequent peers don't.

ckong (Fri, 18 Dec 2020 20:41:24 GMT):
More details posted to https://lists.hyperledger.org/g/fabric/topic/why_does_only_the_first_peer/79070043 - I really need some help with this...

Teaaa (Mon, 21 Dec 2020 04:00:18 GMT):
Hi @developer

Teaaa (Mon, 21 Dec 2020 04:01:47 GMT):
Hi, I'm looking for an answer from Hyperledger Developer. Here's my question. First, look up the code of generate anchorpeer update

Teaaa (Mon, 21 Dec 2020 04:01:47 GMT):
Hi, I'm looking for an answer from Hyperledger Developers. Here's my question. First, look up the code of generate anchorpeer update

Teaaa (Mon, 21 Dec 2020 04:01:47 GMT):
Hi, I'm looking for an answer from Hyperledger Developers. Here's my question. First, look into the code of generate anchorpeer update

Teaaa (Mon, 21 Dec 2020 04:01:51 GMT):

Clipboard - December 21, 2020 11:01 AM

Teaaa (Mon, 21 Dec 2020 04:02:54 GMT):
Can anyone explain for me why we generate *anchor peer for each ORG then update not all of them at once *?

Teaaa (Mon, 21 Dec 2020 04:02:54 GMT):
Can anyone explain for me why we generate *anchor peer for each ORG then update NOT all of them at once *?

sidoussou (Mon, 21 Dec 2020 23:24:40 GMT):
Hi, is there a full documentation on connection profiles (for the sdk), the one in "*_https://hyperledger-fabric.readthedocs.io/en/release-2.2/developapps/connectionprofile.html_*" doesn't have the full structure.

Teaaa (Tue, 22 Dec 2020 08:48:47 GMT):
What do you mean "full structure" ?

sidoussou (Tue, 22 Dec 2020 11:58:19 GMT):
yaml file full structure, every possible element(key-value combination). ex: in *"https://hyperledger-fabric.readthedocs.io/en/release-2.2/developapps/connectionprofile.html"* we don't have :

sidoussou (Tue, 22 Dec 2020 11:58:19 GMT):
yaml file full structure, every possible element(key-value combination). ex: in *"https://hyperledger-fabric.readthedocs.io/en/release-2.2/developapps/connectionprofile.html"* we don't have : cryptoPath: or tlsCACerts: ...

A1kartikey (Tue, 22 Dec 2020 12:52:10 GMT):
Can anyone help me with the following error .. [ERROR] invoke-chaincode - REQUEST_TIMEOUT:localhost:7051 [ERROR] invoke-chaincode - Error: ChannelEventHub has been shutdown

zhanglongjing (Tue, 22 Dec 2020 14:37:44 GMT):
i

zhanglongjing (Tue, 22 Dec 2020 14:43:46 GMT):
i rewrite fabric 2.0 source code .then go test the code,but i need make the all part work.i googled that .is BDDTest still correct way that i test my code?

yixinhuo (Tue, 22 Dec 2020 16:21:43 GMT):
Has joined the channel.

Teaaa (Wed, 23 Dec 2020 04:23:44 GMT):
did you try fabric-sample

Teaaa (Wed, 23 Dec 2020 04:23:58 GMT):
https://github.com/hyperledger/fabric-samples

sidoussou (Wed, 23 Dec 2020 22:00:11 GMT):
yes i did

ckong (Fri, 25 Dec 2020 16:53:15 GMT):
I have three peers each in their own VM, and all of them have port mappings 8051:7051. For the environment variables `CORE_PEER_GOSSIP_BOOTSTRAP` and `CORE_PEER_GOSSIP_EXTERNALENDPOINT`, the ports to connect to should be 8051, yes?

jital (Sat, 26 Dec 2020 06:25:45 GMT):
This looks good. Thanks @yacovm

Hong3Nguyen (Sat, 26 Dec 2020 14:58:20 GMT):
Hi everyone, I have an error with registration a new user as below (I have added org3 vs org3.department1). Do you have any idea? thank you in advance message: "Registration of 'appUser' failed in affiliation validation: Failed getting affiliation 'org3.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"

kapilcool (Sun, 27 Dec 2020 18:54:28 GMT):
how ca you get java code working on fabric

KumarShantanu (Mon, 28 Dec 2020 10:07:46 GMT):
Hello team, is there a how-to documentation around integration AWS** HSM with hyperledger fabric ?

kapilcool (Mon, 28 Dec 2020 10:38:36 GMT):
hello all, I have a question about a use case and what technology if Hyperledger to use. Can you please answer it? I want to store millions of transaction for private files in blockchain ledger (just the hash of file source etc) for audit. What technology s the best for it? There is only one organisation as well. The main purpose if to store the baseline for the files and provide audit trail of them through blockchain. I have been reading about Besu and fabric 2, but don't know which one is the best from performance (TPS0 perspective? I am also looking for a technology that can support java based code. Please provide your thoughts!

arun17 (Mon, 28 Dec 2020 11:33:13 GMT):
hello every one i am trying to integrate nodejs sdk with hyperledger fabric v2 is there any proper documentation for it since i am facing lots of issues with these.

kapilcool (Mon, 28 Dec 2020 14:39:18 GMT):
hello guys, I am having issues installing Cello and getting the following errors. Can someone help?

kapilcool (Mon, 28 Dec 2020 14:39:20 GMT):
Download required Docker images for Cello Services... Downloading the docker images for Cello services: VERSION=latest ARCH=x86_64 Check node:9.2 image. Pulling hyperledger/cello-dashboard:x86_64-latest from dockerhub Error response from daemon: manifest for hyperledger/cello-dashboard:x86_64-latest not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/cello-dashboard:x86_64-latest Pulling hyperledger/cello-nginx:x86_64-latest from dockerhub Error response from daemon: manifest for hyperledger/cello-nginx:x86_64-latest not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/cello-nginx:x86_64-latest Pulling hyperledger/cello-api-engine:x86_64-latest from dockerhub Error response from daemon: manifest for hyperledger/cello-api-engine:x86_64-latest not found: manifest unknown: manifest unknown Error response from daemon: No such image: hyperledger/cello-api-engine:x86_64-latest

Adhavpavan (Mon, 28 Dec 2020 15:14:25 GMT):
@Hong3Nguyen , In ca config file, default there are only two affiliation (Org1 and org2), please add org 3 affiliation in ca config file in org 3 ca container and restart container

Adhavpavan (Mon, 28 Dec 2020 15:29:15 GMT):
@RahulEth https://www.youtube.com/watch?v=SunyHjI1VIg&t=3s

Hong3Nguyen (Mon, 28 Dec 2020 16:12:47 GMT):
Hi Adhavpavan, thank you for you answer

Hong3Nguyen (Mon, 28 Dec 2020 16:12:47 GMT):
Hi Adhavpavan, thank you for your answer

KumarShantanu (Mon, 28 Dec 2020 16:36:06 GMT):
Has anyone used Hashicorp Vault as a CA for hyperledger fabric ?

KumarShantanu (Mon, 28 Dec 2020 16:36:06 GMT):
Has anyone used Hashicorp Vault as a CA for hyperledger fabric or can point to a documentation around that if it exists please.

FernandaSartori (Mon, 28 Dec 2020 18:02:00 GMT):
Hi everyone. I'm using fabric-shim v1.4.6 in my project and I need to know if its possible (and how) to get the mpsid of a peer which is executing a transaction (not the submitter peer's mspid). thank you all!

yehia67 (Wed, 30 Dec 2020 14:35:41 GMT):
Hello everyone, I had a problem with submitting a transaction as they take more than 2 seconds. So I solved this problem by disabling the commitListener using `eventHandlerOptions:{strategy:null}` in the connection option while setting up the gateway. ``` let connectionOptions = { identity: USER_ID, wallet: wallet, discovery: { enabled: false, asLocalhost: true }, eventHandlerOptions: { strategy: null } } await gateway.connect(connectionProfile, connectionOptions) ``` which cause a new error. Which is generating a key before submitting it to the blockchain. for example: 1- Action: submitTransaction to create an asset with key `1234`. Result: 200 submit asset successfully 2- Action: EvaluateTransaction to query the new asset with key `1234` Result: 404 not found 3- Action: wait for 0.5~1 second and repeat step 2. Result: 200 got asset successfully is there any way to fix this issue while keeping the transaction execute fast? It causes some serious bugs when you are creating an asset and uses it immediately.

knagware9 (Thu, 31 Dec 2020 05:46:47 GMT):
I would recommend fabric2.x, fabric Java smart contract and java SDK also available

Vgkmanju (Thu, 31 Dec 2020 06:35:10 GMT):
Hi, Using BAF, deployed fabric 2.2 setup with 6 orgs ( each org has one peer ) and 1 orderer. While client processing (trying to query ledger data) facing the following issue Error: Failed to authorize invocation due to failed ACL check: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [The identity is not an admin under this MSP [xyzMSP]: cannot test for classification, node ou for type [ADMIN], not defined, msp: [xyzMSP]] Can anyone suggest what is this error mean? how to resolve this?

akshay.sood (Sun, 03 Jan 2021 05:59:26 GMT):
Hey guys, I am trying to install golang chaincode but I am getting a weird error which I never saw before. ```Error: error getting chaincode code chaincode: error getting chaincode package bytes: Error obtaining imports: command : failed with error: "timed out after 1m0s"``` Does anyone here any idea about this error? Stackoverflow: https://stackoverflow.com/questions/65546943/hyperledger-fabric-chaincode-throwing-error-while-installation

nkalichynskyi (Mon, 04 Jan 2021 10:25:04 GMT):
Hi everyone, I have a question regarding local MSP reconfiguration, documentation states In subsequent releases we aim to offer online/dynamic reconfiguration. Is there any ticket for this? is it planned for some specific release?

ItaloCarrasco (Mon, 04 Jan 2021 19:42:55 GMT):
for the endorsing policy of the chaincode is there a way to define like if i want 2 peers of org1 and 1 peer of org2 to endorse a transaction?

Paradox-AT (Tue, 05 Jan 2021 03:46:45 GMT):
Hey guys, I am trying trying to add an organization to the channel , everything goes well until I send the update transaction. After sending I am getting the following error: ```Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'test': error authorizing update: error validating DeltaSet: attempt to set key [Group] /Channel/Application/SecuredIdBank to version 0, but key is at version 0``` Please help Thanks

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could you please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be a RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this mean the recommendation is to go with separate Certificate Authorities for each Fabric network? ```

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could you please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be a RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this also mean that the recommendation is to go with separate Certificate Authorities for each Fabric network (which would mean that each organization would have to setup a dedicated CA for each of their Fabric network) ? ```

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could you please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be a RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this also mean that the recommendation is to go with separate Certificate Authorities for each Fabric network (which would mean that each organization would have to setup a exclusive and dedicated CA for each of their Fabric network) ? ```

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could anyone please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be a RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this also mean that the recommendation is to go with separate Certificate Authorities for each Fabric network (which would mean that each organization would have to setup a exclusive and dedicated CA for each of their Fabric network) ? ```

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could anyone please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be an RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this also mean that the recommendation is to go with separate Certificate Authorities for each Fabric network (which would mean that each organization would have to setup a exclusive and dedicated CA for each of their Fabric network) ? ```

chanjaljayaram (Tue, 05 Jan 2021 04:25:34 GMT):
Could anyone please clarify few queries that I've around certificates and CAs in Hyperledger Fabric?``` 1) I see that Fabric doesn't support RSA certificates. Does this mean there shouldn't be an RSA certificate in the entire certificate chain? 2) If we have a single Certificate Authority issuing certificates to multiple Fabric networks (using NodeOU feature) does this mean that an organization in one of the Fabric networks can get access to other Fabric networks if they both are using the same CA and OU? Does this also mean that the recommendation is to go with separate Certificate Authorities for each Fabric network (which would mean that each organization would have to setup a exclusive and dedicated CA for each of the Fabric network that they are part of) ? ```

Paradox-AT (Tue, 05 Jan 2021 10:25:22 GMT):
this is intresting

Paradox-AT (Tue, 05 Jan 2021 10:32:45 GMT):
Hey guys, After adding an organization to the channel I am unable to get block 0 it says: ``` ```

Paradox-AT (Tue, 05 Jan 2021 10:32:45 GMT):
Hey guys, After adding an organization to the channel I am unable to get block 0 it says: ``` 2021-01-05 10:30:48.412 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-01-05 10:30:48.500 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} ```

Paradox-AT (Tue, 05 Jan 2021 10:32:45 GMT):
Hey guys, After adding an organization to the channel I am unable to get block 0 it says: ``` 2021-01-05 10:30:48.412 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-01-05 10:30:48.500 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} ``` Any idea how to resolve this? I am able to fetch the block with other organization peer

Paradox-AT (Tue, 05 Jan 2021 10:32:45 GMT):
Hey guys, After adding an organization to the channel I am unable to get block 0 it says: ``` 2021-01-05 10:30:48.412 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-01-05 10:30:48.500 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} ``` Any idea how to resolve this? I am able to fetch the block with other organisation's peer

sanket1211 (Wed, 06 Jan 2021 06:36:12 GMT):
m getting an error as ....SSL certificates cannot be trusted for orderer and peer service .....can anyone help me out to understand why is this vulnerability caused? is it something to do with docker?

kapilcool (Wed, 06 Jan 2021 09:57:20 GMT):
ok thanks. Is there any sample smart contract and links

kapilcool (Wed, 06 Jan 2021 09:57:27 GMT):
I will try to setup all

kapilcool (Wed, 06 Jan 2021 20:02:47 GMT):
did anyone got Fabcar web interface working with Fabric 2.0? The web interface source is : https://github.com/TheIanSim/FabCar

kapilcool (Wed, 06 Jan 2021 20:03:01 GMT):
it's work but always in disabled state

kapilcool (Wed, 06 Jan 2021 20:04:07 GMT):

Screenshot 2021-01-06 at 20.03.18.png

c0deh0use (Wed, 06 Jan 2021 20:41:07 GMT):
Can anyone help? I'm trying to setup the network, but the orderer is not starting. I'm getting this error: ``` Main -> PANI 005 Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: administrators must be declared when no admin ou classification is set panic: Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums sub-group config: setting up the MSP manager failed: administrators must be declared when no admin ou classification is set ``` I'm following a similar setup as the test-network from the samples: I have the Fabric-CA generating the certificates & using the NodeOUs: ``` NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/hlf-ca--amvoxdlt-7054.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/hlf-ca--amvoxdlt-7054.pem OrganizationalUnitIdentifier: peer AdminOUIdentifier: Certificate: cacerts/hlf-ca--amvoxdlt-7054.pem OrganizationalUnitIdentifier: admin OrdererOUIdentifier: Certificate: cacerts/hlf-ca--amvoxdlt-7054.pem OrganizationalUnitIdentifier: orderer ```

c0deh0use (Wed, 06 Jan 2021 20:44:05 GMT):
the config.yaml with the NodeOUs is in the msp dir where the orderer is launched.

c0deh0use (Thu, 07 Jan 2021 08:50:12 GMT):
Could anyone help here ?

sigma67 (Thu, 07 Jan 2021 15:54:01 GMT):
I have a question regarding CONFIG type transactions. Do they have a txhash just like any other transaction? The fabric-sdk-node is returning an empty tx_id for me

bh4rtp (Fri, 08 Jan 2021 00:58:49 GMT):
@Vgkmanju what is baf? sorry i am out:)

bdierberger (Fri, 08 Jan 2021 11:58:47 GMT):
Has joined the channel.

alejoacosta (Sat, 09 Jan 2021 21:18:39 GMT):
Hi team, We are struggling with the following issue, related to client SDK -peer node communication, SSL and Docker Swarm... See description of problem: We are trying to establish a grpcs (TLS) connection between a docker container running API server (based on Node.js) and another docker container running peer0 from Fabric network. All containers are orchestated by docker swarm, and both containers happen to be running on the same Linux host. The error log thrown by API container is the following: ```2021-01-07T18:27:38.110Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://10.0.1.2:9051 Query has completed, checking results error from query = { Error: Failed to connect before the deadline URL:grpcs://10.0.1.2:9051 at checkState (/usr/src/app/node_modules/grpc/src/client.js:833:16) connectFailed: true } sampleEvent ERROR : Error: 14 UNAVAILABLE: Connect Failed E0107 18:27:53.602719124 16 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. ``` And the error log thrown from peer0 is: ``` 2021-01-07 18:50:22.224 UTC [core.comm] ServerHandshake -> ERRO 043 TLS handshake failed with error EOF server=PeerServer remoteaddress=10.0.1.4:46212 ``` IP addresses layout IP address for API container is 10.0.1.94 IP address for peer0 container is 10.0.1.3 virtual IP address for docker service peer0 is 10.0.1.2 IP address for docker swarm load balancer endpoint is 10.0.1.4 Any suggestion of where to further troubleshoot? At this point is not clear if the problem is with the docker swarm internal networking, or an issue with ssl certificates in either side of the network.

alejoacosta (Sat, 09 Jan 2021 21:20:39 GMT):
this issue was also posted on stackoverflow.com here: https://stackoverflow.com/questions/65629811/hyperledger-fabric-and-docker-swarm-handshake-failed-with-fatal-error-ssl-error

adam0000345 (Sun, 10 Jan 2021 02:30:09 GMT):
I am getting the following error

adam0000345 (Sun, 10 Jan 2021 02:30:10 GMT):
ERROR: for orderer.example.com Cannot start service orderer.example.com: OCI runtime create failed: container_linux.go: 370: starting container process caused: exec: "orderer": executable file not found in $PATH: unknown ERROR: Encountered errors while bringing up the project.

adam0000345 (Sun, 10 Jan 2021 02:30:20 GMT):
any ideas on what is causing this?

Sandyzhanghs (Sun, 10 Jan 2021 04:59:15 GMT):
Has joined the channel.

HansrajRami (Sun, 10 Jan 2021 17:16:01 GMT):
Hi all !!! I am using fabric external chaincode with version 2.2.1 Network is working fine But while invoking chaincode facing this error 2021-01-10 15:01:42.532 UTC [endorser] SimulateProposal -> ERRO 0a0 failed to invoke chaincode samplecc, error: fork/exec /etc/hyperledger/fabric/chaincode-buildpack/bin/run: no such file or directory builder 'chaincode-buildpack' run failed to start I have done this setup before without run script and it was working I've tried putting run script at given path and restarted peer still having same issue Any help will be appreciated

ysai (Mon, 11 Jan 2021 04:11:22 GMT):
Hi everyone, Does anyone know if there is a standard/common way to encode event payload when calling setEvent() from the ChaincodeStub class? (The API docs show that setEvent() takes a byte array as payload). If not, how does a chaincode communicates its event encoding scheme so that the client application knows how to decode the payload? Any help will be much appreciated!

adarshaJha (Mon, 11 Jan 2021 11:15:05 GMT):
Error: got unexpected status: SERVICE_UNAVAILABLE -- update of more than one consenter at a time is not supported, requested changes: add 6 node(s), remove 6 node(s)

Kestutis_Gudynas (Tue, 12 Jan 2021 10:23:43 GMT):
Has joined the channel.

chintanr11 (Tue, 12 Jan 2021 11:35:51 GMT):
Hi, I am facing following error message in peer logs while running chaincode query command: ``` [chaincode] BuildQueryResponse -> ERRO Failed to get query result from iterator [chaincode] HandleTransaction -> ERRO Failed to handle QUERY_STATE_NEXT. error: net/http: request canceled (Client.Timeout exceeded while reading body) error reading response body ``` And the query command in peer logs end with status 500. We are performing Couch DB rich queries and fields set as filter in the query are indexed properly.

chintanr11 (Tue, 12 Jan 2021 11:35:51 GMT):
Hi, I am facing following error message in peer logs while running chaincode query command with HLF 1.4.4 and Node SDK 1.4.12: ``` [chaincode] BuildQueryResponse -> ERRO Failed to get query result from iterator [chaincode] HandleTransaction -> ERRO Failed to handle QUERY_STATE_NEXT. error: net/http: request canceled (Client.Timeout exceeded while reading body) error reading response body ``` And the query command in peer logs end with status 500. We are performing Couch DB rich queries and fields set as filter in the query are indexed properly.

chintanr11 (Tue, 12 Jan 2021 11:35:51 GMT):
Hi, I am facing following error message in peer logs while running chaincode query command with HLF 1.4.4 and Node SDK 1.4.14: ``` [chaincode] BuildQueryResponse -> ERRO Failed to get query result from iterator [chaincode] HandleTransaction -> ERRO Failed to handle QUERY_STATE_NEXT. error: net/http: request canceled (Client.Timeout exceeded while reading body) error reading response body ``` And the query command in peer logs end with status 500. We are performing Couch DB rich queries and fields set as filter in the query are indexed properly.

ckong (Thu, 14 Jan 2021 05:15:36 GMT):
Regarding the environment variable `CORE_PEER_CHAINCODELISTENADDRESS`, if I have two or more peer Docker containers running on a single machine, should the values for each peer be configured different from one another? (Current value in my Docker compose file is `0.0.0.0:7052`)

nkalichynskyi (Thu, 14 Jan 2021 06:59:18 GMT):
Hi everyone, I have a question regarding local MSP reconfiguration, documentation states `In subsequent releases we aim to offer online/dynamic reconfiguration.` Is there any ticket for this? is it planned for some specific release?

ravishankar.gu (Thu, 14 Jan 2021 12:39:20 GMT):
Hi All, I am trying to migrate chaincode from 1.4 to fabric 2.2 and facing issue in sending response with some data. Please find below the code snippet of the problem fabric 1.4 var buffer bytes.Buffer buffer.WriteString(string(100)) return shim.Success([]byte(buffer.String())) fabric 2.2 return contractapi.TransactionContextInterface.GetStub().PutState(req.id, Obj) I need a way to send data (string or integer) using contractapi.TransactionContextInterface. Like we have shim.Success() method is their a way we can use something similar in contractapi.TransactionContextInterface . Any help is well appreciated. Thanks in advance.

vyomzc (Thu, 14 Jan 2021 14:26:13 GMT):
Has joined the channel.

vyomzc (Thu, 14 Jan 2021 14:26:25 GMT):
Hi, I am using Hyperledger Fabric with test-network configuration, when after enrolling a user, even when I delete the from wallet folder, I cannot re-register the user I am get the following error - Failed to register user : Error: fabric-ca request register failed with errors [[ { code: 0, message: 'Registration of \'appUser\' failed: Identity \'appUser\' is already registered' } ]] ******** FAILED to run the application: Error: Identity not found in wallet: appUser

garyclark (Thu, 14 Jan 2021 18:27:20 GMT):
Did you restart your the ca_server?

atoulme (Thu, 14 Jan 2021 18:58:16 GMT):
I was wondering if there is a way to set environment variables in chaincode. Say I deploy chaincode and I want to change its logging or set an env var that toggles a feature. Is there a way to do that? I can think of maybe other ways to bake that in, through the initialization call maybe. What's seen as best practice there?

vyomzc (Thu, 14 Jan 2021 18:59:35 GMT):
Oh god, thank you so much, restarting the server did it for me.

vyomzc (Thu, 14 Jan 2021 18:59:45 GMT):
@garyclark thank you once again.

garyclark (Thu, 14 Jan 2021 19:04:16 GMT):
Very good.

garyclark (Thu, 14 Jan 2021 19:05:55 GMT):
I do not get on the chat too often now.

vyomzc (Thu, 14 Jan 2021 19:07:13 GMT):
Why so?

garyclark (Thu, 14 Jan 2021 19:10:12 GMT):
Too busy on other code.

BrettLogan (Thu, 14 Jan 2021 19:22:10 GMT):
Chaincode are static docker containers, if you use internal calls to update the logging spec, the next time the chaincode crashes you will lose it.

BrettLogan (Thu, 14 Jan 2021 19:22:10 GMT):
Chaincode are static docker containers, if you use internal calls to update the logging spec of whatever logging driver you are using, the next time the chaincode crashes you will lose it.

BrettLogan (Thu, 14 Jan 2021 19:22:10 GMT):
Chaincode are static docker containers, if you use internal calls to update the logging spec of whatever logging driver you are using, the next time the chaincode crashes you will lose your changes.

atoulme (Thu, 14 Jan 2021 19:23:02 GMT):
Sure - is there a way to specify env vars for the container?

atoulme (Thu, 14 Jan 2021 19:23:28 GMT):
To some extent, if you take a chaincode in a dev and prod env, how can you change its config for example?

BrettLogan (Thu, 14 Jan 2021 19:23:34 GMT):
Not using legacy chaincode. Using the new external chaincode feature you could

atoulme (Thu, 14 Jan 2021 19:23:49 GMT):
that sounds swell.

atoulme (Thu, 14 Jan 2021 19:24:08 GMT):
I'll try that out, just very busy making it all work right now.

BrettLogan (Thu, 14 Jan 2021 19:25:14 GMT):
https://github.com/hyperledger/fabric/blob/master/sampleconfig/core.yaml#L563

BrettLogan (Thu, 14 Jan 2021 19:25:31 GMT):
Here you can set variables to propogate from the peer's environment to chaincode environment

BrettLogan (Thu, 14 Jan 2021 19:25:31 GMT):
Here you can set variables to propogate from the peer's environment to chaincode environment when using external builders

atoulme (Thu, 14 Jan 2021 19:25:47 GMT):
thank you! That's what I needed. Appreciated.

atoulme (Thu, 14 Jan 2021 19:26:17 GMT):
I haven't looked at external builders before either.

BrettLogan (Thu, 14 Jan 2021 19:26:39 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html

BrettLogan (Thu, 14 Jan 2021 19:27:17 GMT):
This is an example, this runs it locally inside the peer. The external builder gives you the power to run chaincode literally however you want so people can break free from Docker

atoulme (Thu, 14 Jan 2021 19:28:47 GMT):
ok maybe a dumb question, and I need to look

atoulme (Thu, 14 Jan 2021 19:29:00 GMT):
have the existing builders be repackaged as default external builders?

atoulme (Thu, 14 Jan 2021 19:29:16 GMT):
meaning, is there a way for me to take the java chaincode builder and deviate ever so slightly from there?

BrettLogan (Thu, 14 Jan 2021 19:29:41 GMT):
We have `chaincode as a service` built in, let me find the doc

BrettLogan (Thu, 14 Jan 2021 19:30:12 GMT):
Chaincode as a service uses the external builder to create a standalone chaincode server

atoulme (Thu, 14 Jan 2021 19:30:17 GMT):
I see it. OK thank you, didn't know where to look.

atoulme (Thu, 14 Jan 2021 19:30:43 GMT):
that's a game changer :)

BrettLogan (Thu, 14 Jan 2021 19:30:48 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html

vyomzc (Thu, 14 Jan 2021 19:40:20 GMT):
I see, although keep being around here to help newbies like me ^^

garyclark (Thu, 14 Jan 2021 21:52:23 GMT):
This seems like a network problem. I have seen this problem and I have to clean up (leave the swarm) add then add the peers again to the docker swarm.

alejoacosta (Thu, 14 Jan 2021 23:23:40 GMT):
Thanks for the feedback Gary. I will give it a try

alejoacosta (Thu, 14 Jan 2021 23:28:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=56rukFNQ3tLD94PQi) I forgot to mention: I spinned up an isolated peer container (out of swarm) and I've got the same connection error when trying to stablish TLS from API... so I guess this time is not Swarm's fault

alejoacosta (Thu, 14 Jan 2021 23:28:26 GMT):
Any other suggestion where to look at?

ygnr (Fri, 15 Jan 2021 01:06:52 GMT):
I have raised an issue(https://jira.hyperledger.org/projects/FAB/issues/FAB-18396?filter=allopenissues), can any one form dev team have a look and see if it makes sense?

BrettLogan (Fri, 15 Jan 2021 06:23:08 GMT):
We've tested fabric on AKS. Are you using PVCs and if so are your PVCs mounted at parent directories of the ledger directory, otherwise they would fail when we try to acquire the locks

Kate256 (Fri, 15 Jan 2021 16:58:54 GMT):
Has joined the channel.

Kate256 (Fri, 15 Jan 2021 16:58:55 GMT):
@vyomzc how did you do the restart of your ca_server? (am also new in this topic)

ohryan (Sat, 16 Jan 2021 17:26:58 GMT):
in `fabric/core/peer/config.go` is ``` // StatsdAaddress provides the address for statsd server. StatsdAaddress string ``` a typo? (Aaddress)

Javi (Mon, 18 Jan 2021 09:26:20 GMT):
hi all, I'm seeing in my logs this error ` Error failed constructing descriptor for chaincodes:`, I'm using the fabric version 1.4.4 and seems that the error is fixed only for versions 2.x, it is planned to cherry pick this bug to the 1.4.x version family? (FAB-18194 and [this PR](https://github.com/hyperledger/fabric/pull/1844/files))

Javi (Mon, 18 Jan 2021 09:26:20 GMT):
hi all, I'm seeing in my logs this error ` Error failed constructing descriptor for chaincodes:`, I'm using the fabric version 1.4.4 and seems that the error is fixed only for versions 2.x, it is planned to cherry pick this bug to the 1.4.x version family? (FAB-18194 and [this PR](https://github.com/hyperledger/fabric/pull/1844/files) ), thanks in advance

CaptainIRS (Tue, 19 Jan 2021 08:10:23 GMT):
Has joined the channel.

cmhacker (Tue, 19 Jan 2021 14:38:20 GMT):
Has joined the channel.

KovacZan (Tue, 19 Jan 2021 21:58:10 GMT):
Has joined the channel.

ckong (Wed, 20 Jan 2021 03:29:25 GMT):
Hi, I would like to set up HA for my blockchain network. I came across this open-source tool called haproxy, but mention of it seems limited to the CA cluster. Is it not applicable for use on an ordering cluster?

jital (Wed, 20 Jan 2021 09:32:57 GMT):
``` Error Executing Function :Error Fetching data: GET_STATE failed: transaction ID: 06930b5553b3aed0f67e7592706f4c680eed3767fa841d750888fe90a7afcd6c: private data matching public hash version is not available. Public hash version = {BlockNum: 1713, TxNum: 0}, Private data version = ``` We can see a log before saying that the transaction has been committed. Is it possible that transaction is commited but private data isn't available ?

jital (Wed, 20 Jan 2021 09:32:57 GMT):
``` Error Executing Function :Error Fetching data: GET_STATE failed: transaction ID: 06930b5553b3aed0f67e7592706f4c680eed3767fa841d750888fe90a7afcd6c: private data matching public hash version is not available. Public hash version = {BlockNum: 1713, TxNum: 0}, Private data version = ``` We can see a log before this error saying that the transaction has been committed. Is it possible that transaction is commited but private data isn't available ?

jital (Wed, 20 Jan 2021 09:32:57 GMT):
``` Error Executing Function :Error Fetching data: GET_STATE failed: transaction ID: 06930b5553b3aed0f67e7592706f4c680eed3767fa841d750888fe90a7afcd6c: private data matching public hash version is not available. Public hash version = {BlockNum: 1713, TxNum: 0}, Private data version = ``` We can see a log before this error saying that the transaction has been committed. Is it possible that transaction is commited but private data isn't available ? Another question, is it possible that event set using stub.SetEvent() is fired before the private data written in same transaction is made available

davidkel (Wed, 20 Jan 2021 10:07:11 GMT):
Are you trying to query for the data after receiving an event telling you the data has been committed ?

ibanfi (Wed, 20 Jan 2021 14:07:04 GMT):
Hi all, I follow the doc here: https://hyperledger-fabric.readthedocs.io/en/release-2.3/channel_update_tutorial.html but when I try to update the current config, I get this: `Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'general': error authorizing update: error validating DeltaSet: attempt to set key [Value] /Channel/Orderer/BatchSize to version 0, but key is at version 0` Do you have any idea whac could be the problem?

ibanfi (Wed, 20 Jan 2021 14:08:31 GMT):
The key (in this case `/Channel/Orderer/BatchSize`) changes after each run

ibanfi (Wed, 20 Jan 2021 14:10:00 GMT):
the fabric version is 2.3

MrSE400 (Wed, 20 Jan 2021 19:56:40 GMT):
Hello, we are currently designing a performance test for a custom modification of fabric 1.4.8 and kafka 2.11-1.0.2 (for a student project). We are planing on testing the implementation on a network consisting of 3 zookeeper, 4 kafka brokers and 4 organizations, where each organization is consisting of 1 orderer and 4 peers. I've heard that it is recommended to place the orderer and peer nodes in different organizations. Since I did not find further reading material online, there are some questions left unanswered in my mind: 1. Should I create for each organization a separate orderer organization or is one orderer organization consisting of all 4 orderers sufficient? More importantly: 2. How can I tell the organization which orderer to connect to? Is the orderer node selected automatically or are there some possible settings (e.g in configtx.yaml) to specify the orderer?

c0deh0use (Wed, 20 Jan 2021 21:51:08 GMT):
Hi guys, I really need some help. Trying to setup the network but keep getting this: 2021-01-20 21:47:58.830 UTC [orderer.common.server] Main -> PANI 113 Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: administrators must be declared when no admin ou classification is set panic: Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: administrators must be declared when no admin ou classification is set the config.yaml is correct(it is used and picked up by the peer as well and works fine), the genesis block gets created. THis is the Profiles: ``` Profiles: amvox-channel: Consortium: AmvoxConsortium <<: *ChannelDefaults Application: <<: *ApplicationDefaults Organizations: - *Amvox - *Org2 - *Org3 OrdererGenesis: <<: *ChannelDefaults Orderer: <<: *OrdererDefaults Organizations: - *AmvoxDLT Application: <<: *ApplicationDefaults Organizations: - <<: *AmvoxDLT Consortiums: AmvoxConsortium: Organizations: - *Amvox - *Org2 - *Org3 ```

c0deh0use (Wed, 20 Jan 2021 21:51:26 GMT):
Anyone could help ? Im struggling for days on this now.

ygnr (Wed, 20 Jan 2021 22:48:05 GMT):
@BrettLogan Which version of AKS have you tested? Its failing for me on 1.18+. We use Azure file share for PVC. It works well on 1.17

arjones (Thu, 21 Jan 2021 20:09:49 GMT):
I am no authority, so take my answer with a grain of salt. However, I believe one orderer organization should be sufficient. Also, if you are running commands on the command line in the form of "peer chaincode invoke..." or something similar that you specify the orderer as an option "-o host:port".

arjones (Thu, 21 Jan 2021 20:09:49 GMT):
I am no authority, so take my answer with a grain of salt. However, I believe one orderer organization should be sufficient. Also, if you are running commands on the command line in the form of "peer chaincode invoke..." or something similar then you can specify the orderer as an option "-o host:port".

arjones (Thu, 21 Jan 2021 20:14:26 GMT):
Hello everyone. I have a Hyperledger Fabric network using Docker. The peer/orderer nodes all are running in containers; however, when I run commands (such as execute chaincode) I have been using the binaries directly (outside of Docker) and setting all of the environment variables directly. I want to make the next step to be able to access the blockchain network and execute chaincode from other programs. What is the best way to do this? Fabric SDK? This is all pretty new to me, so I really just need to be pushed in the right direction. Thanks.

greg2git (Thu, 21 Jan 2021 21:06:18 GMT):
@arjones seems like fabric sdk is the way to go and then javascript, at least for the time being

arjones (Thu, 21 Jan 2021 21:37:13 GMT):
Thanks. I can use Java instead of JS, can't I?

ckong (Fri, 22 Jan 2021 03:24:06 GMT):
If ALL the orderer nodes in a network go down, then is it still possible to access the previous data after the orderer nodes are brought back up again?

akshay.sood (Fri, 22 Jan 2021 04:28:23 GMT):
Hey guys

akshay.sood (Fri, 22 Jan 2021 04:31:33 GMT):
Hey guys I have more than 50k documents in my private collection (lets call them assets). I am trying to fetch all the assets from my private collection but I am unable to fetch them. The fabric sdk throws Request timeout error and I understand that it is because of the number of records. Is there any way to get these records? I also checked that page query is not available for private collections. So if you have these number of records, what will you do?

BrettLogan (Fri, 22 Jan 2021 05:48:37 GMT):
This was one of the major drawbacks of kafka, only a single organization can operator the kafka nodes. There are serious limitations to distributed kafka clusters and it's not possible. RAFT was introduced so that orders could be distributed and owned by multiple orgs.

jtonline (Fri, 22 Jan 2021 10:13:09 GMT):
Yes, you can use Java https://github.com/hyperledger/fabric-gateway-java

jtonline (Fri, 22 Jan 2021 10:27:45 GMT):
Hi, that sounds like it would be worth opening an issue on jira https://hyperledger-fabric.readthedocs.io/en/release-2.2/CONTRIBUTING.html#reporting-bugs

icarrascol (Fri, 22 Jan 2021 13:49:08 GMT):
isnt there a default limit of 1000 registers, so cant u cant retrieve them all anyways?

icarrascol (Fri, 22 Jan 2021 13:54:44 GMT):
also which kind of documents are you storing?, which is the size of them?, that could be related as on my case i was storing pdfs and i was getting high response times when i fetched all the registers, what i did is a custom query where i select the assets id and other stuff but not the pdf and it greatly improved the response time. Also like you said there is no pagination on private collections, i was trying to work on a way to do it but when i set a limit on the query it isnt respected by the ledger for some reason

akshay.sood (Fri, 22 Jan 2021 14:41:12 GMT):
@icarrascol they are just normal json documents/records

akshay.sood (Fri, 22 Jan 2021 14:41:12 GMT):
@icarrascol they are just normal json documents/records/objects

icarrascol (Fri, 22 Jan 2021 14:47:54 GMT):
you can check this on some alternatives for pagination https://jira.hyperledger.org/browse/FAB-11732 but i think you need to report that as a bug, ive never tried to retrieve 50k docs

chanjaljayaram (Sun, 24 Jan 2021 03:41:13 GMT):
Hi, I receiving the below error when trying to create a channel '''WARN e8c [channel: mychannel] Rejecting broadcast of config message from XX.XX.XX.XX:XXXXX because of error: consensus metadata update for channel creation is invalid: invalid new config metadata: duplicate consenter''' Can we not use wildcard or SAN certificates for TLS and/or Identity? I'm trying to use wildcard certificates (1 wildcard certificate for all Orderers TLS, 1 for all Orderers Identity, 1 for each Org TLS, and 1 for each Org Identity).

chanjaljayaram (Sun, 24 Jan 2021 03:41:13 GMT):
Hi, I receiving the below error when trying to create a channel WARN e8c [channel: mychannel] Rejecting broadcast of config message from XX.XX.XX.XX:XXXXX because of error: consensus metadata update for channel creation is invalid: invalid new config metadata: duplicate consenter Can we not use wildcard or SAN certificates for TLS and/or Identity? I'm trying to use wildcard certificates (1 wildcard certificate for all Orderers TLS, 1 for all Orderers Identity, 1 for each Org TLS, and 1 for each Org Identity).

chanjaljayaram (Sun, 24 Jan 2021 03:41:13 GMT):
Hi, I'm receiving the below error when trying to create a channel WARN e8c [channel: mychannel] Rejecting broadcast of config message from XX.XX.XX.XX:XXXXX because of error: consensus metadata update for channel creation is invalid: invalid new config metadata: duplicate consenter Can we not use wildcard or SAN certificates for TLS and/or Identity? I'm trying to use wildcard certificates (1 wildcard certificate for all Orderers TLS, 1 for all Orderers Identity, 1 for each Org TLS, and 1 for each Org Identity).

chanjaljayaram (Sun, 24 Jan 2021 03:41:13 GMT):
Hi, I'm receiving the below error when trying to create a channel WARN e8c [channel: mychannel] Rejecting broadcast of config message from XX.XX.XX.XX:XXXXX because of error: consensus metadata update for channel creation is invalid: invalid new config metadata: duplicate consenter Can we not use wildcard or SAN certificates for TLS and/or Identity? I'm trying to use wildcard certificates (1 wildcard certificate for TLS for each role in Orderer Org (orderer, admin) , 1 for Identity for each role in Orderer Org, similarly for other Orgs).

chanjaljayaram (Sun, 24 Jan 2021 11:54:25 GMT):
Looks like except for the Orderers TLS certificates every other component can use wildcard/SAN certificate (thereby giving the ability to run the network with minimal number of certificates)

chanjaljayaram (Sun, 24 Jan 2021 11:54:25 GMT):
Looks like except for the Orderers' TLS certificates every other component can use wildcard/SAN certificate (thereby giving the ability to run the network with minimal number of certificates)

ever-upwards (Mon, 25 Jan 2021 19:42:16 GMT):
How can I get a human-readable output of a transaction given a certain Transaction ID? I'm trying to find and list all transactions for a given asset (in a private collection). My Approach (based in part on this [post by David Enyeart](https://stackoverflow.com/a/54622596)): - save key to public collection - use GetHistoryForKey on key in public collection to get transactions - use QSCC GetBlockByTxID function to get block Not sure where to go from here (tried using configtxlator to decode block, but got an error as I believe the GetBlockByTxID output is actually a [struct](https://github.com/hyperledger/fabric-protos-go/blob/release-2.0/peer/transaction.pb.go#L159)? I considered writing a chaincode function using ctx.GetStub().GetState(TxID), but that won't return anything since TxID is not actually a valid key.

rtorrealba (Tue, 26 Jan 2021 12:31:06 GMT):
Has joined the channel.

bestbeforetoday (Tue, 26 Jan 2021 13:59:46 GMT):
The return value from GetBlockByTxID on the qscc chaincode is a *common.Block* protobuf, which is defined here: https://github.com/hyperledger/fabric-protos/blob/f44816d6f621f1f7615cb4fc65643791eb6d8ce6/common/common.proto#L142

bestbeforetoday (Tue, 26 Jan 2021 14:00:27 GMT):
You would have to use a suitable protobuf implementation for your client language to decode the serialized protobuf to object form

nkalichynskyi (Tue, 26 Jan 2021 14:05:29 GMT):
Hi everyone, I have a question regarding local MSP reconfiguration, documentation states `In subsequent releases we aim to offer online/dynamic reconfiguration`. Is there any ticket for this? is it planned for some specific release?

RodrigoAlejandroMelo (Tue, 26 Jan 2021 15:31:02 GMT):
Hi everybody. I am new with Hyperledger Fabric and blockchain in general, so sorry if I ask something obvious. All the examples that I found, are assuming that mi app is running at the same server that a test-network. My question is, how to deal with that in a real situation? With a server infrastructure for the blockchain and my app in another server? What I need to configure to run the following succesfully? ``` const caClient = buildCAClient(FabricCAServices, ccp, 'ca.org1.example.com'); // setup the wallet to hold the credentials of the application user const wallet = await buildWallet(Wallets, walletPath); // in a real application this would be done on an administrative flow, and only once await enrollAdmin(caClient, wallet, mspOrg1); ```

jinyu18 (Wed, 27 Jan 2021 01:15:33 GMT):
Hello everyone, I have a deployment connection issue about an internal peer by using https with hostname port access. I have an order cluster and peer0.org1 on internet,they connected well. But the peer0.org2 from other company is internal. Access from internet to peer0.org2 requires hostname and port by https (ex: https://hostname:port). Could I set the hostname in channel tx or docker yaml? I tried but failed. Then I try to use the nginx as agent. But also not work. Is there some experience about that? thank you

BlockCrasher (Wed, 27 Jan 2021 06:53:38 GMT):
Has joined the channel.

BlockCrasher (Wed, 27 Jan 2021 06:58:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ZrtiroGxDsjjRLteg) it depends on your network setup. in simple term you can replace "ca.org1.example.com" with your IP address in connection profile.

BlockCrasher (Wed, 27 Jan 2021 06:59:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7djY9S9NSYp2ruypg) have you tried to add host name in /etc/hosts file.

RodrigoAlejandroMelo (Wed, 27 Jan 2021 11:08:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=WdEEMX9it2oDsARAX) Yes, I assumed that, but it mustn't be enough. I mean, any person who guess "ca.org1.example.com" will be have access to my whole blockchain network? In the examples, which uses the test-network, several environment variables are set to fnd certificates. In my scenario, which I guess is more real (blockchain and app in separated servers), which are the values for the environment variables? Must be set in the app or fixed in the server? Any doc to point me?

BlockCrasher (Wed, 27 Jan 2021 11:52:14 GMT):
Yeah , I got your point. as far I deal with it. I done it in one of my project by putting middle ware b/w app (cline side) and fabric netwok(server side).

BlockCrasher (Wed, 27 Jan 2021 11:52:14 GMT):
Yeah , I got your point. as far I deal with it. I done it in one of my project by putting middle ware b/w app (cline side) and fabric netwok(server side). I did not find any doc related to this.

Adhavpavan (Wed, 27 Jan 2021 13:27:33 GMT):
@ever-upwards check if this help- https://www.youtube.com/watch?v=SunyHjI1VIg

Unicow (Wed, 27 Jan 2021 15:13:53 GMT):
Hi @yeousunn , any luck with this error?

ginspctw (Thu, 28 Jan 2021 13:21:41 GMT):
Hi everyone, I am trying to test the key level endorsementPolicy in the nodeJS chaincode. Please find the code below, await ctx.stub.putState(productNumber, Buffer.from(JSON.stringify(productData))); await ctx.stub.setStateValidationParameter(carNumber, Buffer.from("OR('Org1.member')")); But, I am facing an issue with ENDORSEMENT_POLICY_FAILURE. Can anyone please guide me, how to set key level endorsementPolicy in nodejs chaincode.

arjones (Fri, 29 Jan 2021 22:46:46 GMT):
Thanks for the link @jtonline

arjones (Fri, 29 Jan 2021 23:24:21 GMT):
I have a channel with 5 organizations. How can I go about giving 4 of them read/write access to the ledger, but the last one only read access? Thanks.

arjones (Fri, 29 Jan 2021 23:56:11 GMT):
I know you can tune a lot this with endorsement policies, but all I see is "AND", "OR" and "NOutOf" keywords. Is it possible to check the identity of who is running chaincode from within the chaincode? I would prefer an approach using policies, but all reads/writes to the ledger are done through the chaincode so that is an option as well.

BrettLogan (Fri, 29 Jan 2021 23:58:42 GMT):
You can create attributes in the certificates that fit your use case and then pull and check the attribute of the submitter to verify they have proper permissions for the operation they are performing

BrettLogan (Sat, 30 Jan 2021 00:00:10 GMT):
Here's a medium article on it: https://medium.com/coinmonks/attribute-based-access-control-abac-in-hyperledger-fabric-1eb81330f67a

arjones (Sat, 30 Jan 2021 00:00:41 GMT):
Thanks. I'll look into that.

k.s.558 (Sat, 30 Jan 2021 11:14:11 GMT):
Has joined the channel.

k.s.558 (Sat, 30 Jan 2021 11:15:02 GMT):
Hi all. Did someone of you ever had the problem, that the fabric sample network was running (without errors) and than suddenly you get an error like: ERROR: for orderer2.example.com a bytes-like object is required, not 'str' ? Any idea what I can do?

awa (Sun, 31 Jan 2021 12:24:52 GMT):
Hi, I'm trying to create a network with two organization each org has 2 orderers. There is no org dedicated to orderers.

awattez (Sun, 31 Jan 2021 12:33:13 GMT):
Has joined the channel.

awattez (Sun, 31 Jan 2021 13:13:31 GMT):
Hi, i would like to create a network with two orgs. Each org has his own orderer. Org1 (1 peer, 1 orderer) and Org2 (1 peer, 1 orderer). I have my basic network started with Org1. I would like to add Org2. I have to add Org2 to "system-channel" of Orderer and Org2 to my app channel "channel-awesome". I don't have trouble it's very well explained on the official doc. I just need help to setup Policies and implicitMetaPolicies. I want only Org1 to be able to perform a `peer channel update`, I want only admins of my Org1 to be allowed to modify channels "system-channel" and "channel-awesome". Can you help me please ?

awattez (Sun, 31 Jan 2021 13:13:31 GMT):
Hi, i would like to create a network with two orgs. Each org has his own orderer. Org1 (1 peer, 1 orderer) and Org2 (1 peer, 1 orderer). I have my basic network started with Org1. I would like to add Org2. I have to add Org2 to "system-channel" of Orderer and Org2 to my app channel "channel-awesome", it's very well explained on the official doc. I just need help to setup Policies and implicitMetaPolicies. I want only Org1 to be able to perform a `peer channel update`, I want only admins of my Org1 to be allowed to modify channels "system-channel" and "channel-awesome". Can you help me please ?

awattez (Sun, 31 Jan 2021 14:48:51 GMT):
I would like that Org2 can `peer channel fetch` and `join` and not `update`

adityajoshi12 (Sun, 31 Jan 2021 16:05:44 GMT):
Hey Folks, I have one doubt related to the deployment of my fabric network on kubernetes. I am planning to deploy my peers as statefulsets with 1 replica and in the near future i would be scaling them to 3 . I want to how the data replication between these statefulsets will happen and will scaling up work as they will not be in sync.

awattez (Sun, 31 Jan 2021 17:06:12 GMT):
I don't know if it's good idea to deploy peers as statefulset.

awattez (Sun, 31 Jan 2021 17:07:15 GMT):
Usually peers are deployed as deploymant and they are connected to a couchdb database.

awattez (Sun, 31 Jan 2021 17:07:53 GMT):
There is some good questions and links on #fabric-kubernetes channel

ginspctw (Mon, 01 Feb 2021 11:15:27 GMT):
Hi All, I am facing an issue with implicit Private Data Collection, I have 2 peers for Org1, but when I am trying to store an asset in the implicit PDC, I am getting an error, when I observed the peer logs, I see below warning in the both peer1 and peer2 of Org1 2021-02-01 11:06:13.534 UTC [gossip.privdata] fetchPrivateData -> WARN 37c404 Do not know any peer in the channel( my-channel ) that matches the policies , aborting 2021-02-01 11:06:13.534 UTC [gossip.privdata] populateFromRemotePeers -> WARN 37c405 Failed fetching private data from remote peers for dig2src:[map[{969c21e10e2651ef50b29bd69dbf65eef6488dad73d0418946a2a0c474cc0a00 partchaincc _implicit_org_Org1 I have joined the peers to the channel and configured both the peers as anchor peers, also configured the CORE_PEER_GOSSIP_BOOTSTRAP and CORE_PEER_GOSSIP_EXTERNALENDPOINT values for both peers correctly. Can anyone Please let me know, If I miss any other configuration ?

ckong (Tue, 02 Feb 2021 10:07:25 GMT):
I understand that the minimum system requirement for Docker on Linux is 512mb of RAM (recommended being 2gb). I'm using Hyperledger Fabric release-1.4. I'm in the process of instantiating a chaincode in a channel, and after the `Using default escc` and `Using default vscc` output, I get the error `Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing`. I see that all my containers have exited and restarted (they are deployed in a Docker swarm), and I see `handleSignals -> INFO 03a Received signal: 15 (terminated)` logged in my orderer. My other nodes just simply stopped working without any error messages, and this is after I enabled DEBUG logging. Would lack of RAM cause something like this to happen? Are there any other causes for this behavior?

garyclark (Tue, 02 Feb 2021 16:01:36 GMT):
The problem I would bet is the instantiating of the chaincode and how you are doing it.

garyclark (Tue, 02 Feb 2021 16:02:41 GMT):
Note you made need to increase the version number if you are replacing bad chaincode with good.

ckong (Wed, 03 Feb 2021 01:33:16 GMT):
@garyclark this is the command I'm using - `docker exec $(docker ps -aqf 'name=cli') peer chaincode instantiate -o orderer1.mycompany.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/mycompany.com/orderers/orderer1.mycompany.com/msp/tlscacerts/tlsca.mycompany.com-cert.pem -l java -v 0.1 -c '{"Args":[]}' -P "OR ('myMSP.member')" -C mychannel -n mycc`

ckong (Wed, 03 Feb 2021 01:48:55 GMT):

Clipboard - February 3, 2021 9:48 AM

garyclark (Wed, 03 Feb 2021 15:59:12 GMT):
Is that port open on that machine?

garyclark (Wed, 03 Feb 2021 15:59:40 GMT):
Can you telnet to 7051?

MKQaimari (Wed, 03 Feb 2021 19:15:36 GMT):
Good day everyone! I'm part of a team who are creating a product on fabric and currently we can't exceed the 140 TPS barrier (1 channel, we tried 2 and 4 peers per org). We read all the papers, we replicated experiments, and checked everything available out there on the InterWebs and it seems that the the bottleneck is in the fabric peers code, to be specific, the VSCC validator. Is VSCC parallel execution code production yet or is it still experimental? Comments found at this code of the peer core indicates it's already production and while we are using fabric 2.3.0, we can't break the 140 TPS barrier no matter how many CPU core, memory, or disk types we are using: https://github.com/hyperledger/fabric/blob/master/core/committer/txvalidator/v20/validator.go#L160 Most of our experiments are done by running a minifab networkon a digital ocean machine with 16 CPU cores, 16 GiB memory, and SSD hard drive.

BrettLogan (Wed, 03 Feb 2021 19:56:51 GMT):
So this is an unrealistic setup. Running everything on a single machine is never going to yield good results. Running MiniFab is going to yield even worse results. MiniFab uses Docker. I don't believe it sets container resource limits, so each peer and chaincode container will have full access to all of the system resource (memory/cpu/IO), so when you submit transactions your components are contending with each other for resources. Cryptographic operations are exceedingly resource intensive and multiple peers fighting over those resources along with chaincode execution and orderers doing work is never going to yield high performance.

BrettLogan (Wed, 03 Feb 2021 19:56:51 GMT):
So this is an unrealistic setup. Running everything on a single machine is never going to yield good results. Running MiniFab is going to yield even worse results. MiniFab uses Docker. I don't believe it sets container resource limits, so each peer, orderer and chaincode container will have full access to all of the system resource (memory/cpu/IO), so when you submit transactions your components are contending with each other for resources. Cryptographic operations are exceedingly resource intensive and multiple peers fighting over those resources along with chaincode execution and orderers doing work is never going to yield high performance.

BrettLogan (Wed, 03 Feb 2021 19:58:15 GMT):
Setting up a properly distributed network, with reasonable resource constraints, and properly load balancing transactions across your network will give you the best results possible

BrettLogan (Wed, 03 Feb 2021 19:59:15 GMT):
We know for a fact you can drive TPS to numbers far higher than this. But max-TPS is rarely a good measure performance.

aim8526 (Thu, 04 Feb 2021 06:08:09 GMT):
@BrettLogan I had tried the same on Kuberentes netowrk but I still get the low TPS around 60 - 70 TPS, and dedicated instance assign to peers and orderers pods, and if I increase the the stress on peer SDK connecting peer crashes and I have to resetup the peer to make network live again.

aim8526 (Thu, 04 Feb 2021 06:16:14 GMT):
Hi Team, I want to know is it necessary to run service discovery in every single transaction call from hyperledger SDK ?

swatim (Thu, 04 Feb 2021 08:56:49 GMT):
Has joined the channel.

swatim (Thu, 04 Feb 2021 09:00:49 GMT):
hello, i am beginner in hyperledger fabric and currently working in 2.3 version. i deployed the chaincode and my database is couchdb. i have created identities for wallet but i am confused how should peer of org 2 can interact with it. because only admin is able access not others identites. how they will interact with each other? can anyone please help me with it?

MKQaimari (Thu, 04 Feb 2021 12:07:40 GMT):
Hello again and thank you for your reply. We actually used multiple setups with limits on resources such as CPU and memory. We are testing k8s too and we are still hitting the same limit of 140 TPS.

MKQaimari (Thu, 04 Feb 2021 12:07:40 GMT):
Hello @BrettLogan and thank you for your reply. We actually used multiple setups with limits on resources such as CPU and memory. We are testing k8s too and we are still hitting the same limit of 140 TPS.

MKQaimari (Thu, 04 Feb 2021 12:38:12 GMT):
as for the minifab setup, we allocated 16 cores for the setup which were hardly used. Out of all the setup power we barely used 25% of the processing power avaulable.

MKQaimari (Thu, 04 Feb 2021 12:38:12 GMT):
as for the minifab setup, we allocated 16 cores for the setup which were hardly used. Out of all the setup power we barely used 25% of the processing power available.

MKQaimari (Thu, 04 Feb 2021 12:38:57 GMT):
But my question isn't about the setup itself. It's about the impression we got from the papers and code that there's a limit on the TPS for peers.

MKQaimari (Thu, 04 Feb 2021 12:39:28 GMT):
is there an open source piece of code/project where we can go to a higher TPS?

MKQaimari (Thu, 04 Feb 2021 12:41:34 GMT):
@aim8526 we have a similar setup and we assigned a lot of resources for each peer and orderer pod (Raft)

MKQaimari (Thu, 04 Feb 2021 12:41:51 GMT):
we didin't achieve the numbers we were hoping for either.

MKQaimari (Thu, 04 Feb 2021 12:42:09 GMT):
do you mind sharing more details about your experience?

MKQaimari (Thu, 04 Feb 2021 12:42:16 GMT):
we are using GCP btw

ever-upwards (Thu, 04 Feb 2021 15:21:59 GMT):
Thank you, @bestbeforetoday and @Adhavpavan for your feedback! I think the problem was related to me trying to do everything in bash. I switched to Node SDK and was able to pull the TX without errors. (I read somewhere that the CLI response may include extraneous chars which can confuse configtxlator.)

ever-upwards (Thu, 04 Feb 2021 15:21:59 GMT):
Thank you, @bestbeforetoday and @Adhavpavan for your feedback! I think the problem was related to me trying to do everything directly in bash with pipes. I switched to Node SDK and was able to pull the TX without errors. (I read somewhere that the CLI response may include extraneous chars which can confuse configtxlator.)

bestbeforetoday (Thu, 04 Feb 2021 16:06:27 GMT):
The answer may vary depending on which language SDK you are using. Certainly the Node and Java SDKs only refresh their local discovery information periodically, not necessarily on every transaction invocation

Javi (Thu, 04 Feb 2021 16:59:52 GMT):
I have the discover enabled for a network composed by 3 orgs, if I try to discover the `peers` from the `org1`, the result is `org1` and `org3`, but if I try the same command in the `org2` then the result is `org1`, `org2` and `org3`, is this normal? I'm using the `discover` binary

Javi (Thu, 04 Feb 2021 17:01:29 GMT):
all peers from the three organizations are in the same channel and have the same chaincode

AbhijeetSamanta (Thu, 04 Feb 2021 19:38:21 GMT):
Hi All, I am getting error while new organizations in existing Consortium in hyperledger fabric as` "Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'syschannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Consortiums not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied"`

nkalichynskyi (Fri, 05 Feb 2021 08:02:40 GMT):
this looks like update transaction was not signed by the correct admin identity, it should be signed by the admin whose certificate is recorder in the channel config.

nkalichynskyi (Fri, 05 Feb 2021 08:14:39 GMT):
@MKQaimari we had similar issue, turned out that our bottle neck was client application, once we created more replicas of client app our performance increased from 300 tps to 3300 tps and peers started consuming almost 100% of allocated resources. Also metrics highly depend on whether you are using wait-for-event flag in your application.

lebdron (Sat, 06 Feb 2021 14:12:28 GMT):
Has joined the channel.

lebdron (Sat, 06 Feb 2021 14:17:27 GMT):
Hello. I am getting the error with certificate expiry of unidentified node when I add a new orderer from a new organization to an existing channel. I add the new organization to Orderer and Consortium groups, and add the new orderer to consenters list. But the new orderer fails to fetch the blocks from the system channel of an existing deployment.

megh (Sat, 06 Feb 2021 20:00:29 GMT):
Has joined the channel.

megh (Sat, 06 Feb 2021 20:00:30 GMT):
hello, i am trying to run fabric on a arm64 bits system. I tried runing a test netwok but I am getting this error

megh (Sat, 06 Feb 2021 20:00:33 GMT):
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen' Peer binary and configuration files not found.. Follow the instructions in the Fabric docs to install the Fabric Binaries:

MKQaimari (Sun, 07 Feb 2021 12:33:06 GMT):
@nkalichynskyi thank you for your reply. Do you have a paper of something you guys relied on to setup the optimal environment? Our clients hold state, that means, client need an acknowledgement from at least one peer they are able to execute another transaction .It's a apyments system

MKQaimari (Sun, 07 Feb 2021 12:33:06 GMT):
@nkalichynskyi thank you for your reply. Do you have a paper of something you guys relied on to setup the optimal environment? Our clients hold state, that means, client need an acknowledgement from at least one peer they are able to execute another transaction .It's a payments system

nkalichynskyi (Mon, 08 Feb 2021 08:19:18 GMT):
@MKQaimari, we've figured out optimal environment for us by experimenting.

FilipeSilva (Mon, 08 Feb 2021 09:00:24 GMT):
Has left the channel.

chill37 (Wed, 10 Feb 2021 02:12:11 GMT):
Hi. Is it possible to make a 'chaincode invoke' every 10 min.(or any other timespan) without executing it from fabric sdk? So, I want to execute chaincode once via fabric-sdk, and then chaincode would be invoked every 10 min. As far as I know, it is not possible, but I wanted to ask just in case. THanks!

nkl199 (Wed, 10 Feb 2021 09:21:00 GMT):
There is no internal "cron job" within a Peer. Only explicit actions though an SDK or CLI

megh (Wed, 10 Feb 2021 10:17:31 GMT):
Hi All, I am getting error while compile fabric from the source with $make ./scripts/golinter.sh: line 19: goimports: command not found

megh (Wed, 10 Feb 2021 10:17:31 GMT):
Hi All, I am getting an error while compile fabric from the source with $make ./scripts/golinter.sh: line 19: goimports: command not found

megh (Wed, 10 Feb 2021 10:17:31 GMT):
Hi All, I am getting an error while compile fabric from the source with $make ./scripts/golinter.sh: line 19: goimports: command not found can anyone please help me with it? Thank you

barankilic (Wed, 10 Feb 2021 10:54:08 GMT):
Has joined the channel.

wiktNat (Wed, 10 Feb 2021 15:20:41 GMT):
Has joined the channel.

AshutoshKumar7 (Thu, 11 Feb 2021 07:03:20 GMT):
Please recommend approach / tool for deploying fabric on kubernetes - multiple clusters

METHAWEEYINGSUNG (Thu, 11 Feb 2021 07:48:16 GMT):
Has joined the channel.

METHAWEEYINGSUNG (Thu, 11 Feb 2021 07:48:16 GMT):
Hi, on fabric if I wanna use peer command via username and password of client that registed on peer How to do it?

aim8526 (Thu, 11 Feb 2021 07:59:07 GMT):
@bestbeforetoday can u please provide a sample code or link where where gateway object is prepared without Discovery service.

bestbeforetoday (Thu, 11 Feb 2021 09:49:43 GMT):
You can specify discovery options when connecting the Gateway: - Node: https://hyperledger.github.io/fabric-sdk-node/release-2.2/module-fabric-network.GatewayOptions.html - Java: https://hyperledger.github.io/fabric-gateway-java/release-2.2/org/hyperledger/fabric/gateway/Gateway.Builder.html

Vgkmanju (Thu, 11 Feb 2021 11:09:08 GMT):
Hi, I am using fabric 2.2 with nodesdk v2.1.0. When I tried to use discovery via nodesdk, I got the following error with error: Error: No discovery results found at DiscoveryService.getDiscoveryResults (/usr/lib/node_modules/fabric-network/node_modules/fabric-common/lib/DiscoveryService.js:355:10) at DiscoveryHandler.endorse (/usr/lib/node_modules/fabric-network/node_modules/fabric-common/lib/DiscoveryHandler.js:156:40) at Endorsement.send (/usr/lib/node_modules/fabric-network/node_modules/fabric-common/lib/Proposal.js:362:29) at Transaction.submit (/usr/lib/node_modules/fabric-network/lib/transaction.js:205:52) at Can anyone suggest how to resolve this?

redza610 (Thu, 11 Feb 2021 11:23:07 GMT):
Has joined the channel.

RafidAhsan (Thu, 11 Feb 2021 14:15:19 GMT):
Has joined the channel.

RafidAhsan (Thu, 11 Feb 2021 14:15:19 GMT):
Hlw.... Can anyone help me.... How to interact with front end.. Any suggestions

BrettLogan (Thu, 11 Feb 2021 16:13:30 GMT):
fabric has no native frontend

BrettLogan (Thu, 11 Feb 2021 16:13:45 GMT):
You use an sdk to interact with the network (and build a frontend)

wiktNat (Thu, 11 Feb 2021 18:16:22 GMT):
Hi guys, I am use the fabric node js SDK to interact with my chaincode. I have deployed two smart contracts within one chaincode, however when I query the chaincode it cannot access one of my contract's methods. Any ideas?

wiktNat (Thu, 11 Feb 2021 18:28:31 GMT):
nevermind, I was not prepending the method name with the contract name and colon

oliveruas (Fri, 12 Feb 2021 12:24:13 GMT):
Has joined the channel.

AbhijeetSamanta (Sun, 14 Feb 2021 19:25:09 GMT):
Hi All, I am getting error Getting error error: [Transaction]: Error: No valid responses from any peers. Errors: while submit transaction in hyperledger fabric 2.2. please anybody help me on this. I asked on stackoverlow also https://stackoverflow.com/questions/66199188/getting-error-error-transaction-error-no-valid-responses-from-any-peers-er

Kate256 (Sun, 14 Feb 2021 21:55:43 GMT):
Hi all, is there anyone who has some experiecne with using a HTTP POST in fabric to store data (via SMS) in the blockchain? I would need some recommendations / ideas. - Thank you!

chill37 (Mon, 15 Feb 2021 04:51:32 GMT):
I see. Thanks for clarifying!

AbhijeetSamanta (Mon, 15 Feb 2021 06:42:42 GMT):
Hi All, I want to run test-network in fabric sample without TLS. for that what I need to change in fabric-sample?

souptikmakarov (Mon, 15 Feb 2021 09:43:28 GMT):
Has joined the channel.

souptikmakarov (Mon, 15 Feb 2021 09:43:57 GMT):
Hi. Can someone help with this issue? https://stackoverflow.com/questions/66172170/hyperledger-fabric-2-3-error-failed-to-connect-before-the-deadline-on-endorser

Ashraful16 (Mon, 15 Feb 2021 21:52:46 GMT):
Has joined the channel.

Ashraful16 (Mon, 15 Feb 2021 21:52:47 GMT):
Hi, I have encountered the following problem when I try to add org2 in channel error getting endorser client for channel: endorser client failed to connect to localhost:9051: failed to create new connection: connection error: desc = "transport: authentication handshake failed: read tcp 127.0.0.1:53260->127.0.0.1:9051: read: connection reset by peer

Ashraful16 (Mon, 15 Feb 2021 21:52:47 GMT):
Solved.... Hi, I have encountered the following problem when I try to add org2 in channel error getting endorser client for channel: endorser client failed to connect to localhost:9051: failed to create new connection: connection error: desc = "transport: authentication handshake failed: read tcp 127.0.0.1:53260->127.0.0.1:9051: read: connection reset by peer

kgeonw (Tue, 16 Feb 2021 00:56:28 GMT):
Has joined the channel.

BrettLogan (Tue, 16 Feb 2021 05:51:03 GMT):
The current implementation of RAFT requires TLS, you can't get around this

bhuwanadhikari (Tue, 16 Feb 2021 07:44:31 GMT):
how to open the couchdb database portal in web?

nkaramolegos (Tue, 16 Feb 2021 09:20:46 GMT):
Has joined the channel.

nkaramolegos (Tue, 16 Feb 2021 09:20:47 GMT):
Hello, I would like to build a distributed network to multiple raspberry with fabric version >2.2. First things first, does somebody has experience on how to build and install this version to pi 4?

nkaramolegos (Tue, 16 Feb 2021 09:20:47 GMT):
Hello, I would like to build a distributed network to multiple raspberries with fabric version >2.2. First things first, does somebody has experience on how to build and install this version to pi 4?

nkaramolegos (Tue, 16 Feb 2021 10:08:52 GMT):
Also, what I see that the base image is deprecated. Therefore, what is the new version of this repo?

nkaramolegos (Tue, 16 Feb 2021 10:08:52 GMT):
Also, I see that the base image is deprecated. Therefore, what is the new version of this repo?

PauliusLT (Tue, 16 Feb 2021 11:03:05 GMT):
Has joined the channel.

PauliusLT (Tue, 16 Feb 2021 11:03:05 GMT):
Hello! I am trying to create simple network by using ansible script (exactly as described in https://cloud.ibm.com/docs/blockchain?topic=blockchain-ansible-build). I am using Visual Studio Code and invoke commands in built-in terminal. When the script build_network.sh is run it stops at 08-import-ordering-service.yml with message: TASK [Import the ordering service] ********************************************* fatal: [localhost]: FAILED! => {"changed": false, "msg": "Ordering service exists and appears to be managed by this console, refusing to continue"} what does it mean and how to resolve it and proceed with the rest of this script?

davidkel (Tue, 16 Feb 2021 11:09:40 GMT):
Ansible collection is specific to IBM Blockchain Platform and isn't part of hyperledger fabric. You will probably need to raise an issue with IBM support to get help.

PauliusLT (Tue, 16 Feb 2021 11:10:15 GMT):
understood, thank you!

nkaramolegos (Tue, 16 Feb 2021 13:13:33 GMT):
@BrettLogan ok so we can build from source the fabric for raspberry pi 4. However, is there any problem that the baseimage repo is deprecated?

BrettLogan (Tue, 16 Feb 2021 19:10:30 GMT):
Nothing is blocking it. If you are using the test-network you need to change the compose files to map the ports.

BrettLogan (Tue, 16 Feb 2021 19:10:59 GMT):
baseimage was only used in 1.4 fabric, not 2.x

BrettLogan (Tue, 16 Feb 2021 19:12:29 GMT):
Some changes were added to the fabric master branch today to support building on ARM64. You can clone fabric and run `make docker` on your PI4 to build the docker images.

BrettLogan (Tue, 16 Feb 2021 19:12:29 GMT):
Some changes were added to the fabric master branch today that make building on ARM64 possible. You can clone fabric and run `make docker` on your PI4 to build the docker images.

bhuwanadhikari (Wed, 17 Feb 2021 04:42:39 GMT):
instead of showing web page, it gives this data ```{ "couchdb": "Welcome", "version": "3.1.1", "git_sha": "ce596c65d", "uuid": "0464076f7677fc7d232ff73b06945a83", "features": [ "access-ready", "partitioned", "pluggable-storage-engines", "reshard", "scheduler" ], "vendor": { "name": "The Apache Software Foundation" } }```

bhuwanadhikari (Wed, 17 Feb 2021 04:53:52 GMT):
Hello, I am college student and my project is on Hyperledger Fabric. During the mid-term defense, professor asked me to show what is stored in blocks of the blockchain with the metadata of block. Is it possible to show what is stored in the blocks one by one?

cmhacker (Wed, 17 Feb 2021 07:21:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=ThXHnvE74CHwLZ9mY) Yes you can use blockchain explorer or use discovery services

nkaramolegos (Wed, 17 Feb 2021 10:40:51 GMT):
So there is no need to install the base image? Just cloning and make the main fabric repository is enough?

nkaramolegos (Wed, 17 Feb 2021 14:05:33 GMT):
Also, I have to build the fabric-chaincode-java docker image. First question what happens with the version? The latest fabric version is 2.3.1 version and the fabric-chaincode-java version is 2.3.0. Is there any problem? Also, when I am trying to build the the imafe for the java chaincode I have this error "Could not resolve all files for configuration ':fabric-chaincode-protos:protobufToolsLocator_grpc'.". I tried to install the codegen as

nkaramolegos (Wed, 17 Feb 2021 14:05:33 GMT):
Also, I have to build the fabric-chaincode-java docker image. First question what happens with the version? The latest fabric version is 2.3.1 version and the fabric-chaincode-java version is 2.3.0. Is there any problem? Also, when I am trying to build the the imafe for the java chaincode I have this error "Could not resolve all files for configuration ':fabric-chaincode-protos:protobufToolsLocator_grpc'.". I tried to install the codegen as described here https://github.com/grpc/grpc-java/tree/master/compiler but failed.

FenixH (Wed, 17 Feb 2021 17:02:04 GMT):
Hi, how can we update channel if current admin certs already expired? If we sign the transaction with the expired certs, we get this error: Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channeltest': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Application/EXAMPLEMSP/MSP not satisfied: signature set did not satisfy policy. Tried to sign it with newly enrolled certs and also tried to sign with Orderer msp, none is working. Anyone can help?

aim8526 (Wed, 17 Feb 2021 18:21:52 GMT):
u can use hyperledger fabric Explorer to show details avaialble on ledgers block

aim8526 (Wed, 17 Feb 2021 18:29:03 GMT):
`#!/bin/bash function printHelp() { echo "Usage: " echo " Modes:" echo " "$'\e[0;32m'install$'\e[0m' - install fabric-explorer on org1 echo " "$'\e[0;32m'start$'\e[0m' - Start existing fabric-explorer echo " "$'\e[0;32m'stop$'\e[0m' - Stop existing running fabric-explorer echo " "$'\e[0;32m'down$'\e[0m' - down and remove data of running fabric-explorer } function install() { if [ -d ${PWD}/../explorer ]; then stop rm -rf ${PWD}/../explorer fi mkdir -p ${PWD}/../explorer pushd ${PWD}/../explorer wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/master/examples/net1/config.json wget wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/master/examples/net1/connection-profile/test-network.json -P connection-profile wget https://raw.githubusercontent.com/hyperledger/blockchain-explorer/master/docker-compose.yaml sed -i 's|net_byfn|net_test|g' docker-compose.yaml sed -i 's|./examples/net1/config.json|./config.json|g' docker-compose.yaml sed -i 's|./examples/net1/connection-profile|./connection-profile|g' docker-compose.yaml sed -i 's|/fabric-path/fabric-samples/test-network/organizations|../test-network/organizations|g' docker-compose.yaml sed -i 's|8080:8080|8082:8080|g' docker-compose.yaml #sed -i 's|"enableAuthentication": false|"enableAuthentication": false,\n\t\t"adminCredential" : {\n\t\t\t"id": "admin",\n\t\t\t"password" : "adminpw",\n\t\t\t"affiliation" : "Org1MSP"\n\t\t}|g' connection-profile/test-network.json priv_sk=$(ls ../test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/ | grep _sk) echo $priv_sk sed -i 's|exploreradmin|admin|g' connection-profile/test-network.json sed -i 's|exploreradminpw|adminpw|g' connection-profile/test-network.json sed -i 's|/tmp/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem|/tmp/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/cert.pem|g' connection-profile/test-network.json sed -i "s|priv_sk|${priv_sk}|g" connection-profile/test-network.json docker-compose up -d popd } function start() { pushd ../explorer/ docker-compose up -d popd } function stop() { pushd ../explorer/ docker-compose stop popd } function down() { pushd ../explorer/ docker-compose stop docker rm explorer.mynetwork.com explorerdb.mynetwork.com popd rm -rf ../explorer/ } if [[ $# -lt 1 ]] ; then printHelp exit 0 else MODE=$1 if [ "$MODE" = "install" ]; then echo "Going to install fabric-explorer" install elif [ "$MODE" = "start" ]; then echo "Going to start existing fabric-explorer" start elif [ "$MODE" = "stop" ]; then echo "Going to start existing fabric-explorer" stop elif [ "$MODE" = "down" ]; then echo "Going to start existing fabric-explorer" down else echo "=============================================================================" echo "==============================Invalid Option=================================" echo "=============================================================================" fi fi ` save above script in explorer.sh file. Use this script to install fabric-explorer, ./explorer.sh install

aim8526 (Wed, 17 Feb 2021 18:31:16 GMT):
explorer.sh should place on test-network folder and run ./explorer.sh install and to run next time use below command ./explorer.sh start

MKQaimari (Wed, 17 Feb 2021 23:15:19 GMT):
Me and my team are building a single page application proof-of-concept. the goal of the PoC is to create a single page application which will have a key-pair stored on the browser and it will be able to invoke fabric directly. Anyone was able to accomplish such thing or even explored such idea. We are try to prove that we can build a single page web app or a mobile app that can invoke fabric where the key-pair don't leave the invoking device for privacy reasons.

MKQaimari (Wed, 17 Feb 2021 23:15:25 GMT):
Any help is appreciate :D

garyclark (Thu, 18 Feb 2021 15:20:07 GMT):
IBM has its own cloud technology for managing hyperledger fabric which I am told is costly. Currently we have been using docker swarm in our test lab. I was considering IBM but what other cloud based technologies should I research K8?

bh4rtp (Thu, 18 Feb 2021 16:26:37 GMT):
I am also using docker swarm with docker-machine. It is easier to orchestrate the fabric network. Is it possible to use docker swarm for production scenarios?

garyclark (Thu, 18 Feb 2021 18:15:19 GMT):
I think docker swarm is becoming obsolete.

garyclark (Thu, 18 Feb 2021 18:15:19 GMT):
I think docker swarm is deprecated.

garyclark (Thu, 18 Feb 2021 18:17:55 GMT):
https://medium.com/@markuman/is-docker-swarm-mode-eol-7a3f316116a3

garyclark (Thu, 18 Feb 2021 18:18:32 GMT):
Looks Like K8.

garyclark (Thu, 18 Feb 2021 18:18:32 GMT):
Looks Like K8 is a way forward for production.

greg2git (Thu, 18 Feb 2021 20:29:12 GMT):
K8 has 'deprecated' docker as far as i know but i believe all big cloud providers offer some kind of fabric version, even if not the most recent

avinashuttav (Fri, 19 Feb 2021 05:45:39 GMT):
Has joined the channel.

aim8526 (Fri, 19 Feb 2021 11:22:52 GMT):
http://localhost:5984/_utils/#database/

aim8526 (Fri, 19 Feb 2021 11:22:59 GMT):
use this url

knagware9 (Sat, 20 Feb 2021 10:46:48 GMT):
Yes, Oracle, AWS also offer fabric as a service

garyclark (Sat, 20 Feb 2021 20:24:25 GMT):
When we go to production this year it will be using K8 the cloud management provider may be AWS but not determined.

jithinjacob24x7 (Mon, 22 Feb 2021 06:34:36 GMT):
Has joined the channel.

jithinjacob24x7 (Mon, 22 Feb 2021 06:34:37 GMT):
Hi, Im just getting started with our new implementation on blockchain. We have already an existing application which is being really old and its basically a shop site and having a really good hits on transactions above 500k. So can you please help to me achieve this on blockchain. We have mysql db as for the old transactions.

anandls (Mon, 22 Feb 2021 11:42:48 GMT):
Has joined the channel.

anandls (Mon, 22 Feb 2021 11:42:48 GMT):
Any leads for in-depth understanding towards MSP in fabric. Help much appreciated. Cheers.

BrettLogan (Tue, 23 Feb 2021 03:33:21 GMT):
Here is the conceptual overview of what an MSP is: https://hyperledger-fabric.readthedocs.io/en/latest/membership/membership.html

JPonna (Tue, 23 Feb 2021 15:53:36 GMT):
Hi All, I am looking for a Hyperledger Fabric System Architecture Diagram thats very similar to the one contributed for Hyperldger Sawtooth. https://www.altoros.com/blog/hyperledgers-sawtooth-lake-bets-on-modular-blockchains-and-elapsed-time-consensus/

ever-upwards (Tue, 23 Feb 2021 16:30:48 GMT):
Hello, I'm hoping to clear up a question regarding the configuration of configtx.yaml for a multi-org channel. Am I correct in understanding that `Orderer.EtcdRaft.Consenters` is intended only for the organization ordering nodes while `Profiles.channelName.Consortium` is for channel consenters? For example, if I wanted to join 3 different organizations (each with a single ordering node) to the same application channel, should each org's configtx.yaml have only 1 (own org) ordering node listed in `Orderer.EtcdRaft.Consenters` while listing all 3 orgs ordering nodes in `Profiles.channelName.Consortium`?

ever-upwards (Tue, 23 Feb 2021 16:30:48 GMT):
Hello, I'm hoping to clear up a question regarding the configuration of configtx.yaml for a multi-org channel. Am I correct in understanding that `Orderer.EtcdRaft.Consenters` is intended only for the organization ordering nodes while `Profiles.channelName.Orderer.EtcdRaft.Consenters` is for channel consenters? For example, if I wanted to join 3 different organizations (each with a single ordering node) to the same application channel, should each org's configtx.yaml have only 1 (own org) ordering node listed in `Orderer.EtcdRaft.Consenters` while listing all 3 orgs ordering nodes in `Profiles.channelName.Orderer.EtcdRaft.Consenters`?

ever-upwards (Tue, 23 Feb 2021 16:30:48 GMT):
Hello, I'm hoping to clear up a question regarding the configuration of configtx.yaml for a multi-org channel. Am I correct in understanding that `Orderer.EtcdRaft.Consenters` is intended only for the organization ordering nodes while `Profiles.name.Orderer.EtcdRaft.Consenters` is for channel consenters? For example, if I wanted to join 3 different organizations (each with a single ordering node) to the same application channel, should each org's configtx.yaml have only 1 (own org) ordering node listed in `Orderer.EtcdRaft.Consenters` while listing all 3 orgs ordering nodes in `Profiles.name.Orderer.EtcdRaft.Consenters`?

ever-upwards (Tue, 23 Feb 2021 21:50:57 GMT):
If I am understanding the following line from the [create channel tutorial](https://hyperledger-fabric.readthedocs.io/en/latest/create_channel/create_channel_participation.html#profiles) correctly, then the top-level `Organizations` section must include all channel orderers of all orgs (not just own org). "...under the Orderer: section you simply include MSP ID of the ordering organization or organizations in the case of a multi-organization ordering service and list the peer organizations in Application: section that will be members of the channel. "

vanitas92 (Wed, 24 Feb 2021 09:56:28 GMT):
Hey everyone, When running a a 12 org, 1 peer per org, network in 2.2.1 in kubernetes we get continuously this same pattern of logs, although the network works fine: ``` 10:38:022021-02-24 09:38:01.252 UTC [core.comm] ServerHandshake -> ERRO 125090 TLS handshake failed with error EOF server=PeerServer remoteaddress=192.168.105.92:42500 ```

vanitas92 (Wed, 24 Feb 2021 09:56:28 GMT):
Hey everyone, When running a a 12 org, 1 peer per org, network in 2.2.1 in kubernetes we get continuously this same pattern of logs, although the network works fine: ``` 10:38:022021-02-24 09:38:01.252 UTC [core.comm] ServerHandshake -> ERRO 125090 TLS handshake failed with error EOF server=PeerServer remoteaddress=192.168.105.92:42500 ``` Does somebody know if we can safely ignore this logs or what is the real meaning of them? Thank you!

nkaramolegos (Wed, 24 Feb 2021 10:04:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PE2ZZApf7NEeJJEJE) Hello again, so guys you add support for raspberry in master branch of main fabric repository and the make docker image is successful. However, what about the other repositories? (i.e fabric-ca, fabric-chaincode-java). I used the master branch but I have problems. Also, as I can see in the following link https://hyperledger-fabric.readthedocs.io/en/latest/install.html the latest version of fabric is the 2.3.1 with the 1.4.9 version of fabric-ca. Studying the bash script I understand that the 2.3.1 version is used to fabric-chaincode-java too. However, in the repository of the fabric-chaincode-java there is no tag 2.3.1. Nevertheless, my target is to build the latest version (2.3.1) of fabric to a raspberry so I have to make a lot of changes to the makefiles of all these repositories (I need help on that). Finally, I have not seen any information about the compatible versions of the different repositories, for example can I use fabric 2.3.1 with the 2.2 fabric-chaincode-java or I would have a version mismatch? Thus, which versions are compatible with each other?

nkaramolegos (Wed, 24 Feb 2021 10:04:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PE2ZZApf7NEeJJEJE) Hello again, so guys you add support for raspberry in master branch of main fabric repository and the make docker image is successful. However, what about the other repositories? (i.e fabric-ca, fabric-chaincode-java). I used the master branch but I have problems. Also, as I can see in the following link https://hyperledger-fabric.readthedocs.io/en/latest/install.html the latest version of fabric is the 2.3.1 with the 1.4.9 version of fabric-ca. Studying the bash script I understand that the 2.3.1 version is used to fabric-chaincode-java too. However, in the repository of the fabric-chaincode-java there is no tag 2.3.1. Nevertheless, my target is to build the latest version (2.3.1) of fabric to a raspberry so I have to make a lot of changes to the makefiles (or Dockerfiles maybe using binutils-gold like https://github.com/hyperledger/fabric/commit/33886a4febc58f7d5f1278fe2246daffb31067a7#) of all these repositories (I need help on that). Finally, I have not seen any information about the compatible versions of the different repositories, for example can I use fabric 2.3.1 with the 2.2 fabric-chaincode-java or I would have a version mismatch? Thus, which versions are compatible with each other?

nkaramolegos (Wed, 24 Feb 2021 10:04:47 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=PE2ZZApf7NEeJJEJE) Hello again, so guys you add support for raspberry in master branch of main fabric repository and the make docker image is successful. However, what about the other repositories? (i.e fabric-ca, fabric-chaincode-java). I used the master branch but I have problems. Also, as I can see in the following link https://hyperledger-fabric.readthedocs.io/en/latest/install.html the latest version of fabric is the 2.3.1 with the 1.4.9 version of fabric-ca. Studying the bash script I understand that the 2.3.1 version is used to fabric-chaincode-java too. However, in the repository of the fabric-chaincode-java there is no tag 2.3.1. Nevertheless, my target is to build the latest version (2.3.1) of fabric to a raspberry so I have to make a lot of changes to the makefiles (or Dockerfiles maybe using binutils-gold like https://github.com/hyperledger/fabric/commit/33886a4febc58f7d5f1278fe2246daffb31067a7#) of all these repositories (I may need help on that). Finally, I have not seen any information about the compatible versions of the different repositories, for example can I use fabric 2.3.1 with the 2.2 fabric-chaincode-java or I would have a version mismatch? Thus, which versions are compatible with each other?

jbergdev (Wed, 24 Feb 2021 11:46:56 GMT):
Has joined the channel.

helderjnpinto (Wed, 24 Feb 2021 11:47:22 GMT):
Has joined the channel.

jbergdev (Wed, 24 Feb 2021 11:49:48 GMT):
Greetings, I would like to inquire about the project health of the FabToken project. From the Gerrit tracker every issue is closed with "Won't Do", and the last commit that I can officially find was in late 2019. Is the project officially discontinued, or is it shelved until a future release?

helderjnpinto (Wed, 24 Feb 2021 11:53:18 GMT):
Has left the channel.

garyclark (Wed, 24 Feb 2021 16:14:12 GMT):
Hello is there a guide to move from Solo to Raft using 1.4.4 . I have a 3 org setup with a single orderer with TLS enabled. It working fine but want to shift to Raft. Any help would be appreciated.

bhuwanadhikari (Thu, 25 Feb 2021 07:03:15 GMT):
I am using fabric test network tutorial and when I invoke chaincode, somtimes, it works but sometimes it gives following error. What might be the error? ```Commit of transaction aaeb6af60c1ddbc7e795beb62ffd98f7255cdd760c319e002e5ae2495d1e1787 failed on peer peer0.manufacturer.medicochain.com:7051 with status ENDORSEMENT_POLICY_FAILURE",```

rambott (Thu, 25 Feb 2021 07:32:00 GMT):
Has joined the channel.

rambott (Thu, 25 Feb 2021 07:32:01 GMT):
Hello, I want to know whether hyperledger fabric's block use Merkle tree?

gstephaneli (Thu, 25 Feb 2021 18:22:02 GMT):
Has joined the channel.

BrettLogan (Fri, 26 Feb 2021 00:25:13 GMT):
There are two general reasons for an endorsement failure, either you didn't gather enough signatures, or the rwset didnt match. Are you sure your chaincode is deterministic?

knagware9 (Fri, 26 Feb 2021 06:54:12 GMT):
you can fetch latest block from Channel and decode to json format to read its content

DominicG (Fri, 26 Feb 2021 07:30:36 GMT):
Has joined the channel.

DominicG (Fri, 26 Feb 2021 07:30:37 GMT):
Hello everyone, we are trying to deploy Fabric 2.0 on Kubernetes, and having hard time finding right samples of such installation, most of the info about v1.x. Can someone give a sample of Manifest for Fabric 2.0 on Kubernetes?

bhuwanadhikari (Fri, 26 Feb 2021 08:05:12 GMT):
yes, it works when called from peer cli but not with fabric-node-sdk

alejandroch 3 (Fri, 26 Feb 2021 12:26:15 GMT):
Has joined the channel.

alejandroch 3 (Fri, 26 Feb 2021 12:26:15 GMT):
I have a question, can I deploy a WebApp client to connect with the network of Hyperledger Fabric running in LAN?

phatpx (Fri, 26 Feb 2021 12:26:46 GMT):
Has joined the channel.

alejandroch 3 (Fri, 26 Feb 2021 12:28:13 GMT):
I'm using fabrik-sdk for go to build my APP and contractapi to build my SmartContract

ErnestoGomez (Fri, 26 Feb 2021 14:15:27 GMT):
Has joined the channel.

ErnestoGomez (Fri, 26 Feb 2021 14:15:28 GMT):
meta

rk-tpl (Fri, 26 Feb 2021 14:25:03 GMT):
Has joined the channel.

quanman01 (Fri, 26 Feb 2021 15:19:13 GMT):
Has joined the channel.

BrettLogan (Fri, 26 Feb 2021 16:06:13 GMT):
https://github.com/lindluni/fabric-test/raw/sample-k8s/tools/operator/config.tgz

rk-tpl (Fri, 26 Feb 2021 17:58:34 GMT):
I'm attempting to add an Org and it seems like no matter what set of key-material I use or how many signatures I accumulate via `peer channel signconfigtx`, the `peer channel update` is ultimately rejected with `implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied`. I have no idea what I could be missing or overlooking at this point. I feel like I've read every public result for that error message, including the source-code itself, `strace`ing the various binaries to make sure they use the key material I'm configuring...

rk-tpl (Fri, 26 Feb 2021 17:58:34 GMT):
I'm attempting to add an Org and it seems like no matter what set of key-material I use or how many signatures I accumulate via `peer channel signconfigtx`, the `peer channel update` is ultimately rejected with `implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied`. (notably using env vars like `CORE_PEER_LOCALMSPID` and `CORE_PEER_MSPCONFIGPATH` to select key-materials) I have no idea what I could be missing or overlooking at this point. I feel like I've read every public result for that error message, including the source-code itself, `strace`ing the various binaries to make sure they use the key material I'm configuring...

ever-upwards (Fri, 26 Feb 2021 21:57:38 GMT):
Hello, When I try joining an orderer to an application channel in a new network (using Fabric 2.3.1) with the following command: `osnadmin channel join --channelID $ChannelID --config-block $genesisBlock -o $listenAddress --ca-file $org_TLS_CA_ROOT_CERT --client-cert $ADMIN_TLS_SIGN_CERT --client-key $ADMIN_TLS_PRIVATE_KEY` I get this error: `Error: Post "https://localhost:7050/participation/v1/channels": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"` If I try re-running the same command, I sometimes also see this error: `Error: Post "https://localhost:7050/participation/v1/channels": write tcp 127.0.0.1:36646->127.0.0.1:7050: write: broken pipe` In the orderer log, I'm getting: `[core]grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: \"POST /participation/v1/c\""` Some searching of SO indicates this may be due to a TLS/cert issue ([1](https://stackoverflow.com/questions/47220446/orderer-received-bogus-greeting-from-client), [2](https://stackoverflow.com/questions/64775986/fabric-sdk-go-app-cant-connect-to-orderer-on-savechannel) ). In orderer.yaml, I have `General.TLS` enabled with ClientAuthRequired. The same for `Admin.TLS`. The orderer.yaml Admin cert/key are those generated by the orderer CA for an Admin user. I use this same keypair for the client TLS signCert and privateKey in the `osnadmin channel join` command. Are there any ideas of what I may be doing wrong? I would be grateful for any feedback on this issue! My relevant files (let me know if I left out anything) are available to view here: [orderer.yaml](https://pastebin.com/kj2Lwj0Y), [docker-compose-test-net.yaml](https://pastebin.com/FTENwY6X), [docker-compose-ca.yaml](https://pastebin.com/HdbyDAcn), [configtx.yaml](https://pastebin.com/iAtQ31QM), [core.yaml](https://pastebin.com/rbAg6x18)

ever-upwards (Sat, 27 Feb 2021 17:15:22 GMT):
Problem solved. It was a simple incorrect port used for the orderer listen address (should be 7053, not 7050).

anandls (Sun, 28 Feb 2021 07:43:01 GMT):
Much appreciated Brett. Cheers.

ndajiya (Sun, 28 Feb 2021 19:11:49 GMT):
Has joined the channel.

ndajiya (Sun, 28 Feb 2021 19:11:50 GMT):
Hello

tegie (Sun, 28 Feb 2021 19:55:45 GMT):
Hey, is it possible to generate unsiged transaction at backend application level (that has connection with peers) and then pass it to client/mobile app where user can sign it with his private key and certificate? Basically what I am asking if is it possible to generate and sign transaction without passing around user private key in case where the only access point to peers is by backend application? Thanks

saswatdas99 (Mon, 01 Mar 2021 11:24:58 GMT):
Has joined the channel.

saswatdas99 (Mon, 01 Mar 2021 11:24:58 GMT):
Hi. I am trying to follow the steps in the "Using the Fabric Test Network" Tutorial. Have followed all the instructions from the start and have been able to Bring up the Test network -> Create a Channel -> Start the Chaincode. But unable to export the peer binaries to the peer CLI. On using the command - export PATH=${PWD}/../bin:$PATH, I am getting the following error- "The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + export PATH=${PWD}/../bin:$PATH + ~~~~~~ + CategoryInfo : ObjectNotFound: (export:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Jakeeyturner (Mon, 01 Mar 2021 11:29:57 GMT):
I'm guessing you're on Windows (which is why it doesn't recognise 'export'), in which case it won't work.

saswatdas99 (Mon, 01 Mar 2021 12:50:17 GMT):
Yes. I am on windows. What would be the command that will work in windows?

rk-tpl (Mon, 01 Mar 2021 15:15:41 GMT):
I eventually cracked my issue with signing `configtx`, but it lead to more issues. it seems like `configtxlator compute_update` doesn't compute `version` updates properly? manually editing the config update envelope JSON is **extremely** tedious to get correct, but I eventually managed to get whack-a-mole all the `version`s to the correct number and successfully submit the configtx.

Jakeeyturner (Mon, 01 Mar 2021 15:18:44 GMT):
I believe 'set' is the Windows equivalent of 'export'.

maiconramones (Mon, 01 Mar 2021 17:27:22 GMT):
Has joined the channel.

maiconramones (Mon, 01 Mar 2021 17:27:23 GMT):
Hello. It's possible to listen events (block or transaction) emitted by a chaincode in another chaincode? For example: chaincode A send a transaction to the block -> commit -> chaincode B listen the commit and make something... In the documentation I found the listener in a client side way using SDK but I want to implement the listener inside of chaincode. Thanks.

GangZhao (Tue, 02 Mar 2021 02:03:32 GMT):
Has joined the channel.

GangZhao (Tue, 02 Mar 2021 02:03:32 GMT):
Hi, Is there any example to add org to an existing channel using fabric-sdk-go? My channel consits of 1peer (org1) and 1orderer, my step is : 1.fetch channel config 2.update channel config adding org2 3.serialize config update and sign with org1 4.send tx to the orderer But i received an error "signature for identity 0 is invalid: The signature is invalid" "error applying config update to existing channel 'ccc': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied"

purnima_ag (Tue, 02 Mar 2021 03:09:54 GMT):
Has joined the channel.

Tanveer5 (Tue, 02 Mar 2021 03:48:32 GMT):
Has joined the channel.

Tanveer5 (Tue, 02 Mar 2021 03:48:34 GMT):
hey sir anyone avaiable i need help

Tanveer5 (Tue, 02 Mar 2021 03:49:50 GMT):
anyone would like explain me how to install the fabric SDK

saswatdas99 (Tue, 02 Mar 2021 05:27:35 GMT):
Thanks a lot for the help. I am a functional consultant. Not a developer. Just wanted to set up a test network and see how fabric works.

saswatdas99 (Tue, 02 Mar 2021 06:39:17 GMT):
Hi. Got stuck again. After following all the instructions for setting up and deploying Fabric test network and have been able to Bring up the Test network -> Create a Channel -> Start the Chaincode -> Adding the peer binaries to the CLI path -> Setting FABRIC_CFG_PATH to point to core.yaml -> Setting the environment variables to operate peer CLI as Org1. While trying to initialize the ledger with assets with the following command -

saswatdas99 (Tue, 02 Mar 2021 06:39:17 GMT):
Hi. Got stuck again. After following all the instructions for setting up and deploying Fabric test network and have been able to Bring up the Test network -> Create a Channel -> Start the Chaincode -> Adding the peer binaries to the CLI path -> Setting FABRIC_CFG_PATH to point to core.yaml -> Setting the environment variables to operate peer CLI as Org1. While trying to initialize the ledger with assets with the following command - peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}' I am getting the following error -

saswatdas99 (Tue, 02 Mar 2021 06:39:17 GMT):
Hi. Got stuck again. After following all the instructions for setting up and deploying Fabric test network and have been able to Bring up the Test network -> Create a Channel -> Start the Chaincode -> Adding the peer binaries to the CLI path -> Setting FABRIC_CFG_PATH to point to core.yaml -> Setting the environment variables to operate peer CLI as Org1. While trying to initialize the ledger with assets with the following command - peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}' I am getting the following error -peer : The term 'peer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride ... + ~~~~ + CategoryInfo : ObjectNotFound: (peer:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

saswatdas99 (Tue, 02 Mar 2021 06:40:49 GMT):
Using Powershell on windows 10

kbambridge (Tue, 02 Mar 2021 07:16:16 GMT):
Has joined the channel.

sa905746066 (Tue, 02 Mar 2021 08:03:08 GMT):
Has joined the channel.

sa905746066 (Tue, 02 Mar 2021 08:03:08 GMT):
Sorry to interrupt you with this email, but I really need help when I am trying to import and use a C-written library (with a Go wrapper) in the Go-written chaincode on Fabric. It will be much appreciated if you have time to help me. The details of my current Fabric environment, imported C library (with a Go wrapper), experiment processes and encountered problem are listed as below. ***** Fabric environment: Hyperledger Fabric 2.2.1 and Fabric CA 1.4.9 (downloaded following the Fabric online document of Getting Started”, i.e., https://hyperledger-fabric.readthedocs.io/en/release-2.2/getting_started.html) ***** ***** Imported C library in chaincodes: a C-written library liboqs (https://github.com/open-quantum-safe/liboqs) with a Go wrapper (https://github.com/open-quantum-safe/liboqs-go), which uses pkg-config to find where liboqs is. *****

sa905746066 (Tue, 02 Mar 2021 08:03:54 GMT):
The problem is reported by Fabric as follows:

sa905746066 (Tue, 02 Mar 2021 08:04:09 GMT):

Clipboard - 2021年3月2日下午4点04分

sa905746066 (Tue, 02 Mar 2021 08:05:09 GMT):
Is there anything wrong when I try to add “pkd-config” in the newly-built image? Or is there any other place in the core.yaml that I should modify to specify the newly-build docker image as the execution environment for my chaincode? Or it is not supported to import and use a C library in the Go-written chaincode.

suosuidewenqing (Tue, 02 Mar 2021 08:27:14 GMT):
Has joined the channel.

severus-sn4pe (Tue, 02 Mar 2021 08:48:10 GMT):
Has joined the channel.

Jakeeyturner (Tue, 02 Mar 2021 09:25:00 GMT):
Hi,

Jakeeyturner (Tue, 02 Mar 2021 09:25:13 GMT):
I don't think it's possible / you'd want to do that.

Jakeeyturner (Tue, 02 Mar 2021 09:25:42 GMT):
I believe a listening application might be the best way of achieving this.

Jakeeyturner (Tue, 02 Mar 2021 09:26:54 GMT):
It doesn't look like you have the peer binaries installed - https://hyperledger-fabric.readthedocs.io/en/release-2.2/install.html

severus-sn4pe (Tue, 02 Mar 2021 09:43:48 GMT):
Hi. I try to run the _Writing Your First Application_ Tutorial, but it appears, that the CA is not correctly set up/started. When I try to run the application-javascript, I receive a `Failed to enroll admin user : Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]` error and docker ps shows that no container named `ca_org1` is running. I start the network with `./network up -ca` and `./network createChannel -ca`. I can't find any obvious errors that something failed while starting it. Any ideas what the problem might be?

severus-sn4pe (Tue, 02 Mar 2021 10:38:42 GMT):
ok, so I found the problem and a solution. the directories `organizations/ordererOrganizations` and `organizations/peerOrganizations` don't get deleted, when I run `./network.sh down`, which will cause the script in subsequent runs to not start the ca-containers again. I deleted those two folders manually and then starting with `up -ca` and `createChannel -ca` and all containers are now there. Now, should those directories get deleted when running `network.sh down`? I think this is currently not working, because they are located in `test-network/` and the code in `networkDown()` is looking for them in a `data/` dir (which does not exist). Is this a bug and should I open an issue on github? or did something else fail on my system and it should work in general?

severus-sn4pe (Tue, 02 Mar 2021 10:38:42 GMT):
ok, so I found the problem and a solution. the directories `organizations/ordererOrganizations` and `organizations/peerOrganizations` don't get deleted, when I run `./network.sh down`, which will cause the script in subsequent runs to not start the ca-containers again. I deleted those two folders manually and then starting with `up -ca` and `createChannel -ca` and all containers are now there and the application-javascript runs correctly. Now, should those directories get deleted when running `network.sh down`? I think this is currently not working, because they are located in `test-network/` and the code in `networkDown()` is looking for them in a `data/` dir (which does not exist). Is this a bug and should I open an issue on github? or did something else fail on my system and it should work in general?

Jakeeyturner (Tue, 02 Mar 2021 12:01:53 GMT):
If you're new to Fabric - I'd recommend taking a look at https://hyperledger-fabric.readthedocs.io/en/release-2.2/developapps/developing_applications.html and going through an example.

Jakeeyturner (Tue, 02 Mar 2021 12:02:12 GMT):
NodeJS SDK - https://hyperledger.github.io/fabric-sdk-node/

Jakeeyturner (Tue, 02 Mar 2021 12:02:16 GMT):
Java SDK - https://hyperledger.github.io/fabric-gateway-java/

RuHae (Tue, 02 Mar 2021 12:48:57 GMT):
Has joined the channel.

maiconramones (Tue, 02 Mar 2021 13:09:00 GMT):
Tks @Jakeeyturner I will implement a separated application to listening the events. The best approach is usin Peer channel-based event services? https://hyperledger-fabric.readthedocs.io/en/release-2.2/peer_event_services.html?highlight=peer-channel

Jakeeyturner (Tue, 02 Mar 2021 13:13:31 GMT):
Here's an example application which does event/contract listening - https://github.com/hyperledger/fabric-samples/tree/master/asset-transfer-events

maiconramones (Tue, 02 Mar 2021 14:17:37 GMT):
yes tks again @Jakeeyturner

saki.osive (Tue, 02 Mar 2021 16:04:12 GMT):
Has joined the channel.

rameshyadav444 (Tue, 02 Mar 2021 17:38:00 GMT):
*Hi, recently we have upgraded our AKS kubernetes v1.17 to 1.19.7 After that we got to know that docker is deprecated and no loner we can use it. Instead of that we can use containerD as runtime After doing below changes on my deployment.yaml file *volumeMounts: - mountPath: "/var/hyperledger/production/" name: volume0 - mountPath: "/mnt/azure" name: volume1 - mountPath: /run/containerd/containerd.sock name: dockersocket - name: CORE_VM_ENDPOINT value: unix:///run/containerd/containerd.sock* I am getting this error, please sugges how to fix this error Error: endorsement failure during query. response: status:500 message:"failed to execute transaction 43b3b9387a4e5e258ba21ca543703d446a6c682d7e10c0d82262526fb49afac0: error starting container: error starting container: Post http://unix.sock/containers/create?name=nid1-gate1-GSHIPMENTC9-4.3: net/http: HTTP/1.x transport connection broken: malformed HTTP response \"\\x00\\x00\\x06\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x05\\x00\\x00@\\x00\""*

Zohaib_Sohail (Tue, 02 Mar 2021 21:22:36 GMT):
Has joined the channel.

Zohaib_Sohail (Tue, 02 Mar 2021 21:47:49 GMT):
Hi, I have a question regarding the design/architecture of rest api server for interacting with fabric network. While interacting with the fabric network I have to use the wallet file of the user. So first I have to create a wallet for the user, the confusion is how we are going to decide while creating a user profile that this user belongs to which organization so that we use the respective connection profile of that organization? One solution that comes to my mind is to have a separate rest api server for each organization so that we know the request is for which organization. Kindly tell me if I am thinking right or is there any better approach?

Zohaib_Sohail (Tue, 02 Mar 2021 21:47:49 GMT):
Hi, I have a question regarding the design/architecture of rest api server for interacting with fabric network. While interacting with the fabric network I have to use the wallet file of the user. So first I have to create a wallet for the user, the confusion is how we are going to decide while creating a user profile that this user belongs to which organization so that we use the respective connection profile of that organization? One solution that comes to my mind is to have a separate rest api server for each organization so that we know the request is for which organization. Kindly tell me if I am thinking right or is there any better approach? Cheers!

upmagupta (Wed, 03 Mar 2021 13:45:42 GMT):
Has joined the channel.

upmagupta (Wed, 03 Mar 2021 13:45:42 GMT):
hi Team

upmagupta (Wed, 03 Mar 2021 13:46:00 GMT):
I am struggling with fuzzy logic on couchdb in fabric

upmagupta (Wed, 03 Mar 2021 13:46:06 GMT):
anyone has anyclue

zwindl (Wed, 03 Mar 2021 15:09:29 GMT):
Has joined the channel.

zwindl (Wed, 03 Mar 2021 15:09:30 GMT):
Hi, I'm getting stucked with Install chapter "Samples, Binaries, and Docker Images" of Getting Started document, I have no idea about what to do next after cloned the fabric-sample repo. Which instrucion should I follow to install all docker image and binaries mentioned in the docs? Thanks a lot.

zwindl (Wed, 03 Mar 2021 15:09:30 GMT):
Hi, I'm getting stucked with chapter "Samples, Binaries, and Docker Images" of Getting Started document, I have no idea about what to do next after cloned the fabric-sample repo. Which instrucion should I follow to install all docker image and binaries mentioned in the docs? Thanks a lot.

nmnm (Thu, 04 Mar 2021 03:07:53 GMT):
Has joined the channel.

nmnm (Thu, 04 Mar 2021 03:07:53 GMT):
I want to copy the wallet credentials and create another wallet. However, I am getting the error "Error: No wallet supplied from which to retrieve identity label". What should I do? The following source code can be executed normally. ```: const wallet = await buildWallet(Wallets, walletPath); await enrollAdmin(this.caClient, wallet, mspOrg1); const gateway = new Gateway(); await gateway.connect(ccp, { wallet, identity: "admin", discovery: { enabled: true, asLocalhost: true } }); ``` However, when I run the following source code, I get the error "Error: No wallet supplied from which to retrieve identity label" ```: const wallet = await buildWallet(Wallets, walletPath); await enrollAdmin(this.caClient, wallet, mspOrg1); const x509 = await wallet.get("admin") const copy_wallet = await Wallets.newInMemoryWallet(); await copy_wallet.put("admin", x509) const gateway = new Gateway(); await gateway.connect(ccp, { copy_wallet, identity: "admin", discovery: { enabled: true, asLocalhost: true } }); ``` When I check the contents, "wallet" and "copy_wallet" look like the same. What's wrong?

upmagupta (Thu, 04 Mar 2021 05:29:41 GMT):
hi guys

upmagupta (Thu, 04 Mar 2021 05:29:58 GMT):
are you aware of how to apply fuzzy logic in couchdb

davidkel (Thu, 04 Mar 2021 08:26:00 GMT):
try ``` await gateway.connect(ccp, { wallet: copy_wallet, identity: "admin", discovery: { enabled: true, asLocalhost: true } }); ```

GeorgePals (Thu, 04 Mar 2021 10:09:18 GMT):
Has joined the channel.

GeorgePals (Thu, 04 Mar 2021 10:09:19 GMT):
Hello! How can I fetch the current block number inside my chaincode (written in javascript)?

DominicG (Thu, 04 Mar 2021 10:31:02 GMT):
thank you we will get to it right away

hasanza 2 (Thu, 04 Mar 2021 10:40:06 GMT):
Has joined the channel.

hasanza 2 (Thu, 04 Mar 2021 10:40:07 GMT):
Hey, George! Which version of HLF are you using?

hasanza 2 (Thu, 04 Mar 2021 10:40:52 GMT):
2.2 ?

CaJIbHuK (Thu, 04 Mar 2021 10:52:06 GMT):
Guys, we are running fabric on k8s. What are the minimal/recommended amount of cpu/memory orderer/peer needs?

CaJIbHuK (Thu, 04 Mar 2021 10:52:06 GMT):
Guys, we are running fabric on k8s. What are the minimal/recommended amount of cpu/memory (preferably in millicores and megabytes) orderer/peer needs?

GeorgePals (Thu, 04 Mar 2021 10:53:11 GMT):
Hello @hasanza 2 Are you referring to me? Because I thought that I deleted my message much before you tagged me. XD

reinaa (Thu, 04 Mar 2021 11:37:42 GMT):
Has joined the channel.

reinaa (Thu, 04 Mar 2021 11:37:42 GMT):
Hey guys, I am interested in deploying Hylerledger 2.0.0 in Google Cloud on multiple nodes, I was wondering if anyone would have an idea on how to go about doing that. I couldn't really find much documentation. I would really appreciate any help.

tegie (Thu, 04 Mar 2021 12:02:43 GMT):
Hey, one more question is it possible to generate transaction proposal only with user signed certificate (without his private key)?

IvanV6 (Thu, 04 Mar 2021 12:04:42 GMT):
Hi, when the version 1.0 of cello will be released?

dcof (Thu, 04 Mar 2021 12:44:20 GMT):
Hey everyone, I have a somewhat theoretical question around consensus and peer validation. As far as I understand, the transaction flow is split into 3 phases. The second phase involves the ordering service. The ordering nodes which are working together to provide this service are using Raft as an leader election algorithm(aka consensus) right? The transaction, orderer by the ordering service are considered final, and will be evaluated and committed by each peer in a deterministic way, meaning the ledger cannot fork, correct? My questions is now the following: How does fabric deal with malicious peer modification, e.g. someone manipulates the ledger of his/hers own peer to be in a different state. Then this peer would not be able to apply all transactions from a given block, so it would fall behind? Also, if this modified peer would be taking part in endorsing transactions, it could also always return a false response which could, depending on the chaincode policy, lead to a kind of stop/break of the system. Are these assumption correct and how does fabric deal with these kind of scenarios? P.S. I feel like I'm missing some key points in understanding the system so any help is much appreciated!

GeorgePals (Thu, 04 Mar 2021 12:49:13 GMT):
I also asked before and then deleted my message... But, how may I fetch the current block through chaincode? I need to implement a "linked-list" and I need it to "connect the dots" =) Thanks!

GeorgePals (Thu, 04 Mar 2021 12:49:13 GMT):
I asked before and then deleted my message... But, how may I fetch the current block through chaincode? I need to implement a "linked-list" and I need it to "connect the dots" =) Thanks!

Jakeeyturner (Thu, 04 Mar 2021 12:57:12 GMT):
Best asked in the #cello channel

IvanV6 (Thu, 04 Mar 2021 13:02:46 GMT):
@Jakeeyturner thanks but no one reply to me :)

Unicow (Thu, 04 Mar 2021 14:01:31 GMT):
Has anyone seen the following error when running `approveformyorg` command from a peer?? ``` Error: proposal failed with status: 500 - endorsing with plugin failed: plugin with name escc could not be used: plugin with name escc wasn't found ```

Unicow (Thu, 04 Mar 2021 14:01:31 GMT):
Has anyone seen the following error when running `approveformyorg` command from a peer?? ``` Error: proposal failed with status: 500 - endorsing with plugin failed: plugin with name escc could not be used: plugin with name escc wasn't found ``` I'm using external chaincode

GeorgePals (Thu, 04 Mar 2021 14:29:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=s52uij5GmbXZE8yED) Should I use the available SDK inside the chaincode? I find it strange to not be able and make this simple action from inside the chaincode. I also need to query the blockchain and its blocks one-by-one through their indexes.

upmagupta (Thu, 04 Mar 2021 14:49:37 GMT):
Hi Guys

upmagupta (Thu, 04 Mar 2021 14:49:40 GMT):
please help

upmagupta (Thu, 04 Mar 2021 14:50:05 GMT):
is lucene apache supported in fabric ????

upmagupta (Thu, 04 Mar 2021 14:53:13 GMT):
hey guys

upmagupta (Thu, 04 Mar 2021 14:53:15 GMT):
good morning! need your help with something to confirm are you aware if the Apache lucene is supported in fabric ?

upmagupta (Thu, 04 Mar 2021 14:53:47 GMT):
please guys please need your help :)

upmagupta (Thu, 04 Mar 2021 15:18:59 GMT):
i did

BrettLogan (Thu, 04 Mar 2021 17:37:52 GMT):
Not natively. But you can implement it as a side-db, i.e., catch the block events and push the data out to lucene.

BrettLogan (Thu, 04 Mar 2021 17:37:52 GMT):
Not natively. But you can implement it as a sidedb, i.e., catch the block events and push the data out to lucene.

BrettLogan (Thu, 04 Mar 2021 17:37:52 GMT):
Not natively. But you can implement it as a sidedb, i.e., catch the block events and push the data out to lucene after its been committed to the fabric db.

BrettLogan (Thu, 04 Mar 2021 17:40:52 GMT):
While off the top of my head I don't know capabilities our system chaincodes have, you can invoke system chaincode from within user chaincode and get more granular information. I'll point out though, that two peers may differ on the current committed blocks.

BrettLogan (Thu, 04 Mar 2021 17:41:57 GMT):
It seems to me there would be much simpler ways using rich-queries and asset labels

BrettLogan (Thu, 04 Mar 2021 17:42:38 GMT):
Without more information on what you actually want to link, and the requirements, its hard to make an actual recomendation on achieving what you want

BrettLogan (Thu, 04 Mar 2021 17:45:09 GMT):
Part of reaching consensus is evaluating the each peers rwset against all other peers and evaluating the results against your endorsement policy. A well designed network will have enough peers and a common-sense enough endorsement policy such that one malicious peer cannot corrupt the network. In a simple network with 3 peers and an endorsement policy of `2of3`, no one comprimised peer could corrupt the network

BrettLogan (Thu, 04 Mar 2021 17:45:09 GMT):
Part of reaching consensus is evaluating each peers rwset against all other peers and evaluating the results against your endorsement policy. A well designed network will have enough peers and a common-sense enough endorsement policy such that one malicious peer cannot corrupt the network. In a simple network with 3 peers and an endorsement policy of `2of3`, no one comprimised peer could corrupt the network

davidkel (Thu, 04 Mar 2021 17:45:26 GMT):
@BrettLogan I thought fabric had removed the ability to invoke system chaincode from user chaincode ?

davidkel (Thu, 04 Mar 2021 17:45:26 GMT):
@BrettLogan I thought fabric had removed the ability to invoke system chaincode from user chaincode ? But as you say even if you could it could be non-deterministic

BrettLogan (Thu, 04 Mar 2021 17:46:07 GMT):
Ah, right, you can only invoke it from the SDK itself, you would have to do the lookup application side before submitting to the invocation to the peer

BrettLogan (Thu, 04 Mar 2021 17:46:48 GMT):
So as David points out, providing some more context on what you want to achieve would help us make better recommendations

dcof (Thu, 04 Mar 2021 17:48:38 GMT):
I see and I understand the example of the policy. Just for my understanding: You say that the rwset of each peers are compared against each other as part of reaching consensus. Is this check performed by the orderer, meaning the orderer node can, in case it sees that the rwsets are not matching, mark an transaction as invalid?

BrettLogan (Thu, 04 Mar 2021 17:50:27 GMT):
The consenters (which are peers) themselves validate the endorsement policy: https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html

BrettLogan (Thu, 04 Mar 2021 17:51:18 GMT):
The peer will report a `VSCC error` when it evaluates the endorsement policy.

BrettLogan (Thu, 04 Mar 2021 17:51:44 GMT):
The endorsements though are part of the block generated by the Orderer, so the peer cant manipulate that data

BrettLogan (Thu, 04 Mar 2021 17:53:43 GMT):
What version of fabric and couch are you on, there used to be some complication with searches, but I'd have to dig it up

dcof (Thu, 04 Mar 2021 17:55:28 GMT):
Right okay, and because the endorsements (which the rwsets are part of) are included in the transactions send to the orderer which perform the consensus as part of the ordering service via Raft, is it fair to say this? Also, I think I'm a bit confused with the term consensus. I thought that this applies only to the Raft algorithm used for the ordering service, but from what I read now, pretty much the the whole transaction flow with the three phases is part of the consensus in fabric to make it work in general?

BrettLogan (Thu, 04 Mar 2021 17:58:27 GMT):
A small paragraph that answers you question better than I ever could from our Doc (the short answer is correct, its the entire flow): https://hyperledger-fabric.readthedocs.io/en/release-2.2/fabric_model.html#consensus

BrettLogan (Thu, 04 Mar 2021 17:58:27 GMT):
A small paragraph that answers your question better than I ever could from our Doc (the short answer is correct, its the entire flow): https://hyperledger-fabric.readthedocs.io/en/release-2.2/fabric_model.html#consensus

BrettLogan (Thu, 04 Mar 2021 17:58:27 GMT):
A small paragraph that answers your question better than I ever could from our doc (the short answer is correct, its the entire flow): https://hyperledger-fabric.readthedocs.io/en/release-2.2/fabric_model.html#consensus

dcof (Thu, 04 Mar 2021 18:00:32 GMT):
Great, thank you very much for the help and providing the respective links, I was quite lost, so thank you :)

dcof (Thu, 04 Mar 2021 18:22:22 GMT):
Maybe another follow up question on how a malicious peer node would be resolved. Imaging that in a network with 3 peers, one is corrupted and the local ledger was modified. As the other 2 are correct, the network will function but peer 3 would not be able to apply the new changes due to possible version mismatches, correct? So it might fall behind? In this case, once this is detected, how would one proceed? Is there some sort of technical reset for the peer, or would it have to be terminated and the organisation would have to join a new peer to the respective channel? Is there some kind of best practise?

BrettLogan (Thu, 04 Mar 2021 18:58:10 GMT):
Depending on the corruption you can reset the peer pretty simply back to the genesis block and then let it replay the committed blocks from orderer, or other peers via Gossip with `peer node reset` you can also rollback to a previous block if you can identify where the corruption occurred with `peer node rollback`: https://hyperledger-fabric.readthedocs.io/en/release-2.2/commands/peernode.html#peer-node-reset-example

dcof (Thu, 04 Mar 2021 18:58:44 GMT):
okay, great, thank you again!

upmagupta (Fri, 05 Mar 2021 04:07:07 GMT):
couchdb version is not an issue

upmagupta (Fri, 05 Mar 2021 04:07:29 GMT):
we are in a very initial stage of designing solution

upmagupta (Fri, 05 Mar 2021 04:07:57 GMT):
fabric will be v2.x

upmagupta (Fri, 05 Mar 2021 04:08:25 GMT):
my requirement id to perform fuzzy and index searching on couchdb

upmagupta (Fri, 05 Mar 2021 04:08:49 GMT):
but i guess without lucene fuzzy search in couchdb is not possible

upmagupta (Fri, 05 Mar 2021 04:09:04 GMT):
so I wanted to check if lucene is a good alternative

upmagupta (Fri, 05 Mar 2021 04:09:28 GMT):
couchdb version is not an issue we are in a very initial stage of designing solution fabric will be v2.x my requirement id to perform fuzzy and index searching on couchdb but i guess without lucene fuzzy search in couchdb is not possible so I wanted to check if lucene is a good alternative

BrettLogan (Fri, 05 Mar 2021 04:29:48 GMT):
CouchDb version is an issue, as Couch only started supporting fully indexed fuzzy searches in 3.0, which versions of fabric before 2.2 didnt use unless users explicitly made that determination as it wasn't "supported" by fabric. But fuzzy searches don't require lucene to be directly integrated with fabric. Couch only requires an instance of Clouseau the clouseau plugin that can communicate with a Lucene sidedb installed alongside couch for couch to aggregate the docs to. None of this has anything to do with Fabric and occurs out of band. That being said, we had known issues with some of the earlier version of 2.x fabric supporting certain index-based query types.

abhishekktpl (Fri, 05 Mar 2021 05:20:47 GMT):
Hi All, I was trying to test some config changes, In the process I was able to change orderer Admin policy as one of the orgs in application, but now when I try to change the batchtimeout or revert back the same policy to Admins I am getting below error. [channel: testone] Rejecting broadcast of config message from 192.168.144.1:42158 because of error: error applying config update to existing channel 'testone': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchTimeout not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the '/Channel/Application/testoneMSP/Admins' sub-policies to be satisfied

abhishekktpl (Fri, 05 Mar 2021 05:21:51 GMT):
Is there any way the orderer Admin policy can be changed back?

barankilic (Fri, 05 Mar 2021 07:16:55 GMT):
https://github.com/hyperledger-labs/minifabric There is a tool called minifabric. You may use that to deploy Fabric but I do not actually know whether it supports multiple nodes. Recently, its developers added Kubernetes support. You may ask more about it in the channel #fabric-mini

GeorgePals (Fri, 05 Mar 2021 08:51:58 GMT):
Thank you for your support, both of you! My users will need to upload some files. These files can be of type A, B or C. Every time a new file, say of type A, is uploaded, it will me appended to a new block and it will be "linked" with the last block that stores inside it a type A file, with an "index" that keeps the number of this older block. But I am not sure if something like this can work; what if more than one users upload a new type A file at the same time? More probably, the "index" will not be correct. Or what if the creation of a new block does not include all these new "type A file" uploads, and includes just a bunch of them? The index of the n+1 block will, again, be wrong.

GeorgePals (Fri, 05 Mar 2021 08:58:16 GMT):
Maybe GetHistoryForKey(Key) could work, but what if, again, I have 2 concurrent updates of a file, from different users? Maybe I could solve this issue by having an external service that listens to block changes and keeps track of every change in the blockchain, before a new transaction is made; this way I could manage how many "type A" files are inside the same block.

GeorgePals (Fri, 05 Mar 2021 09:07:57 GMT):
All in all, I need to store, for e.g. type A files in a block and update an index that keeps track of the last block that also has type A files. IF many type A files are appended to the SAME block, then the index is updated only once; just to show the last block that also has type A files.

GeorgePals (Fri, 05 Mar 2021 09:39:15 GMT):
Update: Maybe every type A file could be saved with an unique key. This way I could import it to the BC no matter what and without any issue. But, what about the index? And how can I the latest block that has type A files?

GeorgePals (Fri, 05 Mar 2021 09:39:15 GMT):
Update: Maybe every file of, say, type A, could be saved with an unique key. This way I could import it to the BC no matter what and without any issue. But, what about the index? And how can I the latest block that has type A files?

GeorgePals (Fri, 05 Mar 2021 09:39:15 GMT):
Update: Maybe every file of, say, type A, could be saved with an unique key. This way I could import it to the BC no matter what and without any issue. But, what about the index? And how can I get the latest block that has type A files?

upmagupta (Fri, 05 Mar 2021 11:24:20 GMT):
BrettLogan thanks a lot

upmagupta (Fri, 05 Mar 2021 11:24:26 GMT):
for this useful mind

upmagupta (Fri, 05 Mar 2021 11:24:42 GMT):
information

upmagupta (Fri, 05 Mar 2021 11:24:52 GMT):
Actually we are on very initial stage

upmagupta (Fri, 05 Mar 2021 11:24:57 GMT):
and we are exploring

upmagupta (Fri, 05 Mar 2021 11:25:03 GMT):
the entire use case is

upmagupta (Fri, 05 Mar 2021 11:25:17 GMT):
and now they are saying even lucene is not feasible

upmagupta (Fri, 05 Mar 2021 11:25:25 GMT):
because it cannot search hashes

upmagupta (Fri, 05 Mar 2021 11:25:34 GMT):
I will tell you the complete use case

upmagupta (Fri, 05 Mar 2021 11:28:05 GMT):
USECASE : We need to insert the pi data in blockchain in the form of hash (because of legal constraints) we will be given a list of members and we need to check in our db if that person has a insurance. so in one company the name can be john and another company the name can be jon so spellings are different but it may be the same name. so we need to to mutilevel matching to find matches which are closer

upmagupta (Fri, 05 Mar 2021 11:28:22 GMT):
so we are thinking of a plan where we can do the following

upmagupta (Fri, 05 Mar 2021 11:28:33 GMT):
Flow 1: Adding rec to db step1: name cleaning step2: Phoenetic Algs (fn<>ln, ln, fn, ln fn, fn ln) step3: hashing other data (dob, gender .. ) step4: Add to DB Flow2: Match step1: Flow1(member to be matched) step2: search db with values from step 1 => gender(c) && (yob || state) => fn<>ln, ln, fn, ln fn, fn ln, (or) => dm (narrowing) step3: pass to custom algs.. step4: based on % o/p, create new json record in d/b stating this ID is a potential match with metadata(% match ..)

upmagupta (Fri, 05 Mar 2021 11:29:04 GMT):
can you help me with the possible approach for this use case

upmagupta (Fri, 05 Mar 2021 11:29:32 GMT):
even if i think of lucene it cannot do fuzzy search in hashes

RafaelAPB (Fri, 05 Mar 2021 13:20:48 GMT):
Hello everyone! Sharing an open-source Fabric course, feel free to check it! https://github.com/hyperledger-labs/university-course

cmhacker (Fri, 05 Mar 2021 13:47:30 GMT):
Great initiative

arun17 (Fri, 05 Mar 2021 14:01:08 GMT):
hello while querying the data i am getting these error can anyone help me out what is the root cause and possible solution

arun17 (Fri, 05 Mar 2021 14:01:53 GMT):

Screenshot 2021-03-05 at 5.05.59 PM.png

alxspectrum (Fri, 05 Mar 2021 17:11:55 GMT):
Has joined the channel.

alxspectrum (Fri, 05 Mar 2021 17:12:42 GMT):

Clipboard - March 5, 2021 7:12 PM

alxspectrum (Fri, 05 Mar 2021 17:13:37 GMT):
I have removed an organization from the channel configuration correctly, the same way that it is added. The problem is that the peers in 1 of the remaining orgs poststhese logs continously. I don't understand why the peers have anything related to the removed organization since the MSP is no longer in the channel configuration, like somehow they are getting messages even thought the removed org's peers are down. If I restart the peers, I get these logs in the 2nd screenshot. Why is this happening ??

alxspectrum (Fri, 05 Mar 2021 17:14:02 GMT):

Clipboard - March 5, 2021 7:13 PM

alxspectrum (Fri, 05 Mar 2021 17:14:13 GMT):

Clipboard - March 5, 2021 7:14 PM

GeorgePals (Sat, 06 Mar 2021 12:21:38 GMT):
Hello!

GeorgePals (Sat, 06 Mar 2021 12:21:38 GMT):
Hello! Any ideas please?

zub3r (Sun, 07 Mar 2021 12:44:28 GMT):
Has joined the channel.

zub3r (Sun, 07 Mar 2021 12:44:35 GMT):
Hi everyone

zub3r (Sun, 07 Mar 2021 12:45:13 GMT):
Can anyone help me? It’s my question: https://stackoverflow.com/q/66516248/5133852

zub3r (Sun, 07 Mar 2021 12:46:15 GMT):
:fabric:

MeenTech (Sun, 07 Mar 2021 22:36:53 GMT):
Has joined the channel.

MeenTech (Sun, 07 Mar 2021 22:36:54 GMT):
Can anyone help me with this error i'm getting after running node app.js

MeenTech (Sun, 07 Mar 2021 22:41:03 GMT):

Screen Shot 2021-03-07 at 11.35.58 PM.png

MeenTech (Sun, 07 Mar 2021 22:41:57 GMT):
I am using this link to learn https://hyperledger-fabric.readthedocs.io/en/release-2.2/write_first_app.html

normadani (Mon, 08 Mar 2021 03:58:54 GMT):
Has joined the channel.

normadani (Mon, 08 Mar 2021 03:58:55 GMT):
Hi everyone. Can anyone help me about this problem https://stackoverflow.com/questions/46775044/error-when-try-to-instantiate-chain-code-on-hyperledger-fabric ? I tried to run ``` peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"InitLedger","Args":[]}' ``` however i got the following error ```: error starting container: error starting container: API error (404): network _test not found" ``` as i found out that the running program didn't read the environment variables in the `.env` file in the `test-network` folder

abhishekktpl (Mon, 08 Mar 2021 07:31:24 GMT):
Hi All, I tried changing orderer config Admins policy with Implicitmeta policy pointing to the Application Admin, Now when I am trying to change the batch timeout I am not able to do that as I am getting policy unsatisfied error and also I am not able to revert back the orderer Admins policy back to Admins. Any idea how this can be rectified?

normadani (Mon, 08 Mar 2021 07:48:22 GMT):
I ve found the solution, we need to place our `env` file to the `docker` folder and it works

nkaramolegos (Mon, 08 Mar 2021 09:42:11 GMT):
Hyperledger Fabric what is the physical meaning of a peer? Specifically, an organization has multiple peers. Can somebody explain to me how to decide how many peer to use and what finally a peer represents? Specifically, in a use case what can be a peer of an organization (the sales department for example?)

nkaramolegos (Mon, 08 Mar 2021 09:42:11 GMT):
Hyperledger Fabric what is the physical meaning of a peer? Specifically, an organization has multiple peers. Can somebody explain to me how to decide how many peer to use and what finally a peer represents? Based on a use case what can be a peer of an organization (the sales department for example?)

ginspctw (Mon, 08 Mar 2021 10:20:36 GMT):
Hi All, I am facing an issue with calling chaincode to store asset after pushing few 100 records. I am getting an error in my node application logs. 2021-03-08T10:04:09.498Z - error: [EventService]: on.data [peer1.org1.example.com,peer1.org1.example.com] - #11- unexpected deliverResponse status received - 404 If I restart the node application, it starts working again for storing few 100 records and then the same issue comes back. I try to search in google regarding this, but I couldn´t find any helpful resource. Can anyone help me.

ginspctw (Mon, 08 Mar 2021 10:20:36 GMT):
Hi All, I am facing an issue with calling chaincode to store asset after pushing few 100 records. I am getting an error in my node application logs. ``` 2021-03-08T10:04:09.498Z - error: [EventService]: on.data [peer1.org1.example.com,peer1.org1.example.com] - #11- unexpected deliverResponse status received - 404 ``` If I restart the node application, it starts working again for storing few 100 records and then the same issue comes back. I try to search in google regarding this, but I couldn´t find any helpful resource. Can anyone help me.

Bolzo 1 (Mon, 08 Mar 2021 14:52:54 GMT):
Hi all, I have question about adding an org to a channel. I'm not sure if the vanilla procedure for adding the new organization involves that the latter organization will be an admin of the channel. In my network I have the need to add organizations to a channel without adding those orgs as admins, it is possible?

canenas (Mon, 08 Mar 2021 15:02:33 GMT):
Has joined the channel.

canenas (Mon, 08 Mar 2021 15:02:33 GMT):
Hi All I've got a question about adding a peer to a channel. After having created the genesis block and channel.tx on the orderer I'm moving the channel.tx to the peer where I to create the channel with this command: peer channel create -c mychannel -o orderer-service:7050 -f ./channel.tx --tls true --cafile tls-msp/tlscacerts/ca.pem. It fails with the following error from the Orderer that I really can't understand.: `*021-03-08 14:47:43.284 UTC [grpc] Infof -> DEBU 038 Channel Connectivity change to READY Error: got unexpected status: SERVICE_UNAVAILABLE -- channel orderer-system-channel is not serviced by me *` It's driving me mad and I don't see any references on google on this error.

canenas (Mon, 08 Mar 2021 15:02:33 GMT):
Hi All I've got a question about adding a peer to a channel. After having created the genesis block and channel.tx on the orderer I'm moving the channel.tx to the peer where I to create the channel with this command: peer channel create -c mychannel -o orderer-service:7050 -f ./channel.tx --tls true --cafile tls-msp/tlscacerts/ca.pem. It fails with the following error from the Orderer that I really can't understand.: *021-03-08 14:47:43.284 UTC [grpc] Infof -> DEBU 038 Channel Connectivity change to READY Error: got unexpected status: SERVICE_UNAVAILABLE -- channel orderer-system-channel is not serviced by me * It's driving me mad and I don't see any references on google on this error.

canenas (Mon, 08 Mar 2021 15:02:33 GMT):
Hi All I've got a question about adding a peer to a channel. After having created the genesis block and channel.tx on the orderer I'm moving the channel.tx to the peer where I to create the channel with this command: peer channel create -c mychannel -o orderer-service:7050 -f ./channel.tx --tls true --cafile tls-msp/tlscacerts/ca.pem. It fails with the following error from the Orderer that I really can't understand.: ```021-03-08 14:47:43.284 UTC [grpc] Infof -> DEBU 038 Channel Connectivity change to READY Error: got unexpected status: SERVICE_UNAVAILABLE -- channel orderer-system-channel is not serviced by me ``` It's driving me mad and I don't see any references on google on this error.

ginspctw (Mon, 08 Mar 2021 18:02:45 GMT):
which fabric version are you using ?

ginspctw (Mon, 08 Mar 2021 18:06:32 GMT):
yes, it is possible. You need to modify the channel configuration. by default it is set to Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" in the ChannelDefaults. you can use signature policy to specify the admins for the channel.

canenas (Mon, 08 Mar 2021 20:50:11 GMT):
2.2

canenas (Tue, 09 Mar 2021 00:44:22 GMT):
ah, got it . Bad configuration. TLS Certificate mismatch that i missed in the logs.

tegie (Tue, 09 Mar 2021 07:16:15 GMT):
Hey all, do you know some examples/strategies of storing user private keys on mobile/browser? Thanks

Bolzo 1 (Tue, 09 Mar 2021 08:16:47 GMT):
Thanks for the answer, I will try in the next days and let you know

nkalichynskyi (Tue, 09 Mar 2021 09:12:38 GMT):
Hi everyone, I'm having an issue with chaincode events. When I'm not doing any fabric related action(invoking chaincode) in response to chaincode event, this event is delivered on every restart of the client that listens to such events. For example, if I listen to event "on_data" and in the listener just print event data to console I will see last "on_data" event on every restart of the script that listens to this event. Replicated this issue with python and node sdk. Can anyone help with this?

jeffin7342 (Tue, 09 Mar 2021 09:16:37 GMT):
Has joined the channel.

jeffin7342 (Tue, 09 Mar 2021 09:16:39 GMT):
Hi everyone,I hope you are all doing fine Actually I had a query regarding Hyperledger fabric. Is it possible to implement an archival mechanism in the blockchain network? The thing is that due to the accumulation of a lot of transactions,the memory is getting bigger. When I read the documents,they said a mechanism of checkpointing.In that when a new peer joins the network,they will not have any historical data. Means,they will be connected to the last block and that block will be their genesis block.Not the entire network. Is there a way to delete or archive the data in hyperledger network?

davidkel (Tue, 09 Mar 2021 09:18:45 GMT):
Whenever you connect an eventhub it will return a block. If you don't specify which block then it returns the latest block available on the peer you have connected to. This is expected behaviour

Bolzo 1 (Tue, 09 Mar 2021 10:01:14 GMT):
Hello as @ginspctw told me, I'm trying to update the channel configuration in ordere to set the signature policy for channels administration instead of implicitmeta.. I think i have to update the system channel configuration (the policy should be valid for all new channels). Am I right? I fetched the channel configuration but I'm not sure what section I have to change, any ideas?

KieranYalland (Tue, 09 Mar 2021 18:06:22 GMT):
Has joined the channel.

KieranYalland (Tue, 09 Mar 2021 18:06:22 GMT):
Hi all, I've been attempting to create my own channel and keep getting this error: {Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused"}

KieranYalland (Tue, 09 Mar 2021 18:06:22 GMT):
Hi all, I've been attempting to create my own channel and keep getting this error: {Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused"} Any idea what im doing wrong? thanks

KieranYalland (Tue, 09 Mar 2021 18:06:22 GMT):
Hi all, I've been attempting to create my own channel and keep getting this error: : Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7050: connect: connection refused" Any idea what im doing wrong? thanks

BrettLogan (Tue, 09 Mar 2021 19:14:05 GMT):
Does your SANS section `localhost` or `127.0.0.1` in your cert, or are you passing the `--ordererTLSHostnameOverride` and passing in the hostname you are actually trying to reach rather than the one registered in the cert

JPonna (Tue, 09 Mar 2021 19:47:54 GMT):
Does the Fabric Client SDK in Fabric 2.0 handle System Admin Activity like Channel Instantiations, Network bootstrapping etc as well as the Client Transaction Requests and behind the scenes processing of the Transaction Request.

knagware9 (Wed, 10 Mar 2021 07:33:26 GMT):
Peer is node which runs fabric peer software, ledger data stored here etc.. Peer of organization means one computing node who will take part in blockchain transactions approval, ledger update etc.. 1 Peer is sufficient for one org but depending on the architecture and requirement can be multiple peers .. for example multiple peer can help for better data residency

knagware9 (Wed, 10 Mar 2021 07:33:26 GMT):
Peer is node which runs fabric peer software, ledger data stored here etc.. Peer of organization means one computing node who will take part in blockchain transactions approval, ledger update etc.. 1 Peer is sufficient for one org but depending on the architecture and requirement can be multiple peers .. for example multiple peer can help for better data resiliency

knagware9 (Wed, 10 Mar 2021 07:39:13 GMT):
Yes @jeffin7342 Please check Ledger snapshot feature here https://hyperledger-fabric.readthedocs.io/en/release-2.3/whatsnew.html

knagware9 (Wed, 10 Mar 2021 07:44:32 GMT):
Currently its not supported admin activity using SDK, CLI is preferred way. https://jira.hyperledger.org/browse/FABN-1416

knagware9 (Wed, 10 Mar 2021 07:47:12 GMT):
But there are some third party open source work, you can check here https://github.com/davidkhala/fabric-common/tree/master/nodejs/admin

rambott (Wed, 10 Mar 2021 07:52:43 GMT):
hello,I have the same question with you,I searched “merkle” in history message and found your question. Have you found the answer?

nkalichynskyi (Wed, 10 Mar 2021 08:06:51 GMT):
thanks

knagware9 (Wed, 10 Mar 2021 08:18:43 GMT):
Check this for mode details about storing data in fabric https://hyperledger-fabric.readthedocs.io/en/release-2.2/ledger/ledger.html#blocks

Bolzo 1 (Wed, 10 Mar 2021 09:13:41 GMT):
Hi all, Does involve any sort of problem if I update partially my network form version 2.1 to 2.2? The components that will be upgraded are the orderers and the endrosing peer. The other peers will remain at 2.1

angelsuarez (Wed, 10 Mar 2021 09:37:31 GMT):
Hi all

angelsuarez (Wed, 10 Mar 2021 09:39:16 GMT):
Does the FabToken solution support anonymity (assets, accounts and amounts)?

angelsuarez (Wed, 10 Mar 2021 09:39:16 GMT):
Does the FabToken solution support anonymity (assets, accounts and amounts) in the UTXO store on the DLT?

angelsuarez (Wed, 10 Mar 2021 09:39:16 GMT):
Does the FabToken solution support anonymity (assets, accounts and amounts) in the UTXO store on the DLT? Thanks.

greg2git (Wed, 10 Mar 2021 12:59:11 GMT):
is fabtoken back? i thought it was withdrawn in one of the earlier fabric versions

nkaramolegos (Wed, 10 Mar 2021 14:10:52 GMT):
So can you give an examplke based on a use case?

bessex (Wed, 10 Mar 2021 14:36:54 GMT):
Has joined the channel.

bessex (Wed, 10 Mar 2021 15:15:49 GMT):
Hey, quick question for you smart people. I've been following the instructions on the docs for running a test network in Fabric 2.3. I've followed everything exactly except I'm using a newer version of docker. When I run: `peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}'` I get the following error: `Error: error getting endorser client for invoke: unable to load TLS root cert file from "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": open "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": no such file or directory` I've checked StackOverflow, etc., and haven't found anything specific to this issue. Any thoughts, anyone?

bessex (Wed, 10 Mar 2021 15:15:49 GMT):
Hey, quick question for you smart people. I've been following the instructions on the docs for running a test network in Fabric 2.3. I've followed everything exactly except I'm using a newer version of docker. When I run: ```bash peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}'``` I get the following error: ```bash Error: error getting endorser client for invoke: unable to load TLS root cert file from "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": open "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": no such file or directory``` I've checked StackOverflow, etc., and haven't found anything specific to this issue. Any thoughts, anyone?

bessex (Wed, 10 Mar 2021 15:15:49 GMT):
Hey, quick question for you smart people. I've been following the instructions on the docs for running a test network in Fabric 2.3. I've followed everything exactly except I'm using a newer version of docker. When I run: ```bash peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}' ``` I get the following error: ```bash Error: error getting endorser client for invoke: unable to load TLS root cert file from "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": open "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": no such file or directory ``` I've checked StackOverflow, etc., and haven't found anything specific to this issue. Any thoughts, anyone?

bessex (Wed, 10 Mar 2021 15:15:49 GMT):
Hey, quick question for you smart people. I've been following the instructions on the docs for running a test network in Fabric 2.3. I've followed everything exactly except I'm using a newer version of docker. When I run: ```bash peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}' ``` I get the following error: ```bash Error: error getting endorser client for invoke: unable to load TLS root cert file from "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": open "/root/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt": no such file or directory ``` I've checked StackOverflow, etc., and haven't found anything specific to this issue. When I run `ls` or otherwise check for the existence of that file, I'm able to find it without a problem. Any thoughts, anyone?

bessex (Wed, 10 Mar 2021 19:25:37 GMT):
Fixed. Not sure exactly what the issue was; maybe something is up with my env variables. Here's what worked for me: ```bash peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ../test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ./organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ./organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"InitLedger","Args":[]}' ``` Result: ```bash [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 001 Chaincode invoke successful. result: status:200 ```

alvaropicazo (Thu, 11 Mar 2021 08:30:23 GMT):
Has joined the channel.

alvaropicazo (Thu, 11 Mar 2021 08:30:25 GMT):
Hi everyone, I wanted to add an org to an existing consortium, so in the orderer cli I added that org (doing the changes in the json files and all of that), and then the question is, does this .pb file has to be signed by everyone in the consortium before doing the update by the orderer? After that, if it is neccessary, I guess that the orderer has to do the update, as I said before. Using the syschannel for this steps.

ymo 7 (Thu, 11 Mar 2021 13:44:52 GMT):
Has joined the channel.

ymo 7 (Thu, 11 Mar 2021 13:45:15 GMT):
Howdy I am super new to hyper ledger and i am trying to get a java client talking to a hl cluster running inside k8s cluster. the cluster was created by the https://github.com/hyperledger/fabric-test operator tool

ymo 7 (Thu, 11 Mar 2021 13:46:13 GMT):
https://github.com/hyperledger/fabric-test/issues/304 I filed this ^^^ issue which i am thinking has more to do with the java SDK ..

ymo 7 (Thu, 11 Mar 2021 13:46:55 GMT):
I am thinkin i must be doing something silly ! can anyone help please ?

roberto.cangiamila (Thu, 11 Mar 2021 14:26:05 GMT):
Hello everybody .. i have to execute a query on ledger .. but i also need to execute it by discovery enabled .. there is a way? Thanks a lot .. i'm using release 1.4 ..

DominicG (Thu, 11 Mar 2021 14:51:41 GMT):

image213.png

DominicG (Thu, 11 Mar 2021 14:51:41 GMT):

image213.png

DominicG (Thu, 11 Mar 2021 14:51:41 GMT):

image213.png

BrettLogan (Thu, 11 Mar 2021 16:23:55 GMT):
While I maintain that tool, this really isn't in my wheelhouse. I would take it to the #fabric-sdk-java channel and see if they can help you there. There is also a sample of using the Java SDK to write an application here that would be of help: https://github.com/hyperledger/fabric-samples/tree/master/asset-transfer-basic/application-java

BrettLogan (Thu, 11 Mar 2021 16:27:28 GMT):
I replied to your issue and asked one the java sdk maintainers to have a look

ymo 7 (Thu, 11 Mar 2021 17:46:28 GMT):
superbe ! thank you so much for your help !

ymo 7 (Thu, 11 Mar 2021 17:47:32 GMT):
I was able to make some progress today :-) i left some comments in the issue. i am still not clear if the issue is with the fabric-test or somewhere else

haardikkk (Thu, 11 Mar 2021 22:08:40 GMT):
Has left the channel.

madris112 (Fri, 12 Mar 2021 06:22:02 GMT):
Has joined the channel.

madris112 (Fri, 12 Mar 2021 06:22:35 GMT):

madris112 - Fri Mar 12 2021 11:52:08 GMT+0530 (India Standard Time).txt

wiktNat (Fri, 12 Mar 2021 10:43:30 GMT):
Hey guys, I am getting the error "Error: chaincode argument error: json: cannot unmarshal array into Go struct field .Args of type string" what could this mean?

onkar1704 (Fri, 12 Mar 2021 14:34:53 GMT):
Has joined the channel.

onkar1704 (Fri, 12 Mar 2021 14:34:54 GMT):
Getting below error while instantiating the chaincode , kindly help in resolving the issue. Command: peer chaincode instantiate -n supplychain -v 0 -c '{"Args":["init"]}' -C supplychain Error: 2021-03-12 14:26:08.053 UTC [msp] Validate -> DEBU 036 MSP mfgMSP validating identity 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 037 parsed scheme: "" 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.060 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.060 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.060 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, CONNECTING 2021-03-12 14:26:08.069 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, READY 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.081 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.081 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.081 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, CONNECTING 2021-03-12 14:26:08.084 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, READY 2021-03-12 14:26:08.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AAA070A5B08011A0B0880F4AD820610...737570706C79636861696E636C656172 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 7D249B56CAAE153A1A9D2C85DC75EDFFF7D034B2947D0E867DEFDEE662AAF31A Error: error getting channel (supplychainclear) orderer endpoint: error bad proposal response 500: access denied for [GetConfigBlock][supplychainclear]: Failed to get policy manager for channel [supplychainclear] Steps Followed: created e2echannel peer0 joined the e2echannel haves set up the following before channel was joined CORE_PEER_ADDRESS=peer0.mfg.supplychain.com:7052 CORE_CHAINCODE_ID_NAME=supplychain:0 CORE_PEER_TLS_ENABLED=false ./supplychain -peer.address peer0.mfg.supplychain.com:7052 Now opened the cli for peer0 installed the chaincode supplychain while instantiating the chaincode the error occurs

onkar1704 (Fri, 12 Mar 2021 14:34:54 GMT):
Getting below error while instantiating the chaincode , kindly help in resolving the issue. Command: peer chaincode instantiate -n supplychain -v 0 -c '{"Args":["init"]}' -C supplychain Error: 2021-03-12 14:26:08.053 UTC [msp] Validate -> DEBU 036 MSP mfgMSP validating identity 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 037 parsed scheme: "" 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.060 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.060 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.060 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, CONNECTING 2021-03-12 14:26:08.069 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, READY 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.081 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.081 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.081 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, CONNECTING 2021-03-12 14:26:08.084 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, READY 2021-03-12 14:26:08.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AAA070A5B08011A0B0880F4AD820610...737570706C79636861696E636C656172 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 7D249B56CAAE153A1A9D2C85DC75EDFFF7D034B2947D0E867DEFDEE662AAF31A Error: error getting channel (supplychainclear) orderer endpoint: error bad proposal response 500: access denied for [GetConfigBlock][supplychainclear]: Failed to get policy manager for channel [supplychainclear] Steps Followed: created e2echannel peer0 joined the e2echannel haves set up the following before channel was joined CORE_PEER_ADDRESS=peer0.mfg.supplychain.com:7052 CORE_CHAINCODE_ID_NAME=supplychain:0 CORE_PEER_TLS_ENABLED=false ./supplychain -peer.address peer0.mfg.supplychain.com:7052 Now opened the cli for peer0 installed the chaincode supplychain while instantiating the chaincode the error occursG

anweiss (Fri, 12 Mar 2021 14:58:58 GMT):
hey all ... are there any examples out there of Fabric endorsement and/or validation plugins?

srachakonda (Fri, 12 Mar 2021 16:18:17 GMT):
Has joined the channel.

srachakonda (Fri, 12 Mar 2021 16:18:18 GMT):
Hi All,. is there any delay in 2.2 transaction data being shared between the PDC orgs ?, I see endorsement gets failed some times with record not found, if I try the same invoke after a minute It works fine. Note - before upgrading to HLF 2.2 everything was working fine

srachakonda (Fri, 12 Mar 2021 16:18:18 GMT):
Hi All,. is there any delay in 2.2 transaction data being shared between the PDC orgs ?, I see endorsement gets failed some times with record not found, if I try the same invoke after a minute It works fine. Note - For public collections, it is working fine in 2.2 also and it is before upgrading to HLF 2.2 everything was working fine

nizos (Sat, 13 Mar 2021 06:14:36 GMT):
Has joined the channel.

nizos (Sat, 13 Mar 2021 06:14:36 GMT):
Good morning!

nizos (Sat, 13 Mar 2021 06:15:59 GMT):
I have a number of questions that I would like to figure out.

nizos (Sat, 13 Mar 2021 06:17:21 GMT):

Overview

nizos (Sat, 13 Mar 2021 06:18:52 GMT):
We are 12 software students who have picked Fabric to build a blockchain based financial system for a customer and this is an overview of the solution we are going with.

nizos (Sat, 13 Mar 2021 06:21:53 GMT):
My first question is regarding wallets. I have read that there are three types: File system, memory and database. What is not clear to me is which file system is meant here. Is it the end-user's own computer file system? Or is it the Fabric host file system? I assume it is the user's device file system.

nizos (Sat, 13 Mar 2021 06:27:10 GMT):
If true, that leads me to my second question: In Bitcoin and Ethereum, wallets that are created are deterministic. The wallets use what is known as a bip-39 passphrase when created. It is a mnemonic sentence (list of words that are easy to remember). The reason wallets are created that way is so that in the case something happens to a wallet, it can be recreated by providing the phrase that was used when it was created.

nizos (Sat, 13 Mar 2021 06:32:48 GMT):
To the best of my knowledge, this mechanism is not used in permissioned blockchains. So my questions regarding wallets are: 1. If file system wallets are stored on the devices of users. What happens to the identities (addresses and assets there in) of a user if something happens to their wallet and they can't access it anymore? 2. What processes are typically used of implemented to mitigate such situations? Do you simply revoke the identities in the wallets? Provide them with a new wallet and issue them new identities, then transfer their funds/assets to the new ones?

upmagupta (Sat, 13 Mar 2021 06:52:23 GMT):
hi everyone I want to know what is the most efficient way of querying large data when couchdb is your underlying database

upmagupta (Sat, 13 Mar 2021 06:52:26 GMT):
in fabroc

upmagupta (Sat, 13 Mar 2021 06:52:29 GMT):
in fabric

upmagupta (Sat, 13 Mar 2021 07:30:11 GMT):
what is the difference between getStateResultwithpagination and getqueryresultwithpagination

upmagupta (Sat, 13 Mar 2021 12:21:57 GMT):
hi guys I am using fabric 2.2

upmagupta (Sat, 13 Mar 2021 12:22:24 GMT):
and its very difficult to everytime install chaincode with a different version just to test a small change

upmagupta (Sat, 13 Mar 2021 12:22:32 GMT):
is there any better way of doing the same

upmagupta (Sat, 13 Mar 2021 12:22:37 GMT):
please help

jeffin7342 (Sat, 13 Mar 2021 13:57:56 GMT):
thanks

zeminzhou (Sun, 14 Mar 2021 13:46:15 GMT):
Has joined the channel.

zeminzhou (Sun, 14 Mar 2021 13:46:16 GMT):
Where can I know when the fabric version supporting the BFT consensus algorithm will be released?

zeminzhou (Sun, 14 Mar 2021 13:49:34 GMT):
:woo:

yacovm (Sun, 14 Mar 2021 21:57:01 GMT):
There is no timeline but you can take a look at this https://github.com/SmartBFT-Go/fabric/ It's an unofficial fork of Fabric with BFT ordering service.

yacovm (Sun, 14 Mar 2021 21:57:29 GMT):
There are also docker images here https://hub.docker.com/u/smartbft

zeminzhou (Mon, 15 Mar 2021 01:38:31 GMT):
Thank you for your answer:grinning:

IvanV6 (Mon, 15 Mar 2021 09:16:27 GMT):
Dear all, i have a questions. I have a fabric network composed by two different nodes with this configuration:"peer1.orgx.example.com" `Node 1: fabric: peers: - "peer1.org0.example.com" - "peer2.org0.example.com" - "peer1.org1.example.com" - "peer2.org1.example.com" orderers: - "orderer1.example.com" - "orderer2.example.com" - "orderer3.example.com" Node 2: fabric: peers: "peer1.orgy.example.com" "peer2.orgy.example.com" orderers: "orderer4.example.com"` Lets suppose that for some reasons, the node 1 is disconnect from the internet connection. I have two questions: 1- It is possible to query the channel from node2 if the orderers are offline? 2- It is possible to query the channel from node1 which is offline?

onkar1704 (Tue, 16 Mar 2021 07:37:18 GMT):
Command - peer chaincode instantiate -n supplychain -v 0 -c '{"Args":["init"]}' -C supplychain Error: 2021-03-12 14:26:08.053 UTC [msp] Validate -> DEBU 036 MSP mfgMSP validating identity 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 037 parsed scheme: "" 2021-03-12 14:26:08.060 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.060 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.060 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.060 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, CONNECTING 2021-03-12 14:26:08.069 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc000486130, READY 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03d parsed scheme: "" 2021-03-12 14:26:08.081 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme 2021-03-12 14:26:08.081 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0.mfg.supplychain.com:7051 0 }] 2021-03-12 14:26:08.081 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first" 2021-03-12 14:26:08.081 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, CONNECTING 2021-03-12 14:26:08.084 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc000528690, READY 2021-03-12 14:26:08.087 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 044 Sign: plaintext: 0AAA070A5B08011A0B0880F4AD820610...737570706C79636861696E636C656172 2021-03-12 14:26:08.088 UTC [msp.identity] Sign -> DEBU 045 Sign: digest: 7D249B56CAAE153A1A9D2C85DC75EDFFF7D034B2947D0E867DEFDEE662AAF31A Error: error getting channel (supplychainclear) orderer endpoint: error bad proposal response 500: access denied for [GetConfigBlock][supplychainclear]: Failed to get policy manager for channel [supplychainclear] Steps: created e2echannel peer0 joined the e2echannel haves set up the following before channel was joined CORE_PEER_ADDRESS=peer0.mfg.supplychain.com:7052 CORE_CHAINCODE_ID_NAME=supplychain:0 CORE_PEER_TLS_ENABLED=false ./supplychain -peer.address peer0.mfg.supplychain.com:7052 Now opened the cli for peer0 installed the chaincode supplychain while instantiating the chaincode the error occurs

rtorres (Tue, 16 Mar 2021 11:18:30 GMT):
Has joined the channel.

rtorres (Tue, 16 Mar 2021 11:18:58 GMT):
Hi all, perhaps this is a question that has already been answered... Is it possible to define chaincodes that are automatically triggered at certain times? For example, a chainCode that retrieves certain information and adds it to the ledger. I've been reading through the documentation but I'm not sure if what I'm looking for are the so called "Chaincode for Operators". Thanks!

upmagupta (Tue, 16 Mar 2021 12:26:34 GMT):
hi Guys

upmagupta (Tue, 16 Mar 2021 12:26:52 GMT):
I need your help

upmagupta (Tue, 16 Mar 2021 12:27:06 GMT):
and stuck at this issue for more than 2 days now

upmagupta (Tue, 16 Mar 2021 12:27:17 GMT):
i am trying to post data in my couchdb

upmagupta (Tue, 16 Mar 2021 12:27:56 GMT):
public async createData(ctx: Context, key: string, value: string) { console.log(' the payload is', value); let bufferData = Buffer.from(value); await ctx.stub.putState(key, Buffer.from(bufferData)); console.log('The record is successfully inserted.'); }

upmagupta (Tue, 16 Mar 2021 12:28:26 GMT):
my value is string

upmagupta (Tue, 16 Mar 2021 12:28:31 GMT):
{"eventId":"47d30d84-b0d9-4c51-915f-86def5dee559","owner":"org1.department2","payload":{"fullname":"1.1960087951876192e+26","fn":"1167782498361","ln":"112669438682861","lnfn":"1.2520209000658014e+26","dmfullname":["LTNFTR","LTNFTR"],"dmreverse":["FTRLTN","FTRLTN"],"dmfn":["LTN","LTN"],"dmln":["FTR","FTR"],"cpfullname":"LTNFTRA111","cpreverse":"FTRLTN1111","cpfn":"LTN1111111","cpln":"FTRA111111","gender":"105172015","email":"1.3040236435052857e+36","yob":"49969396","mob":"5401","dob":"5100","date":"55230573365902066000","dateEnrolled":"2020-05-22","address":"1.4589669908760241e+38","state":"104123251391803","zip":"5781554767","department":"12072118104"}}

upmagupta (Tue, 16 Mar 2021 12:28:37 GMT):
and my key is

upmagupta (Tue, 16 Mar 2021 12:28:41 GMT):
payload.owner: org1.department2

upmagupta (Tue, 16 Mar 2021 12:28:56 GMT):
the response from the docker logs is also

upmagupta (Tue, 16 Mar 2021 12:29:17 GMT):
the payload is {"eventId":"47d30d84-b0d9-4c51-915f-86def5dee559","owner":"org1.department2","payload":{"fullname":"1.1960087951876192e+26","fn":"1167782498361","ln":"112669438682861","lnfn":"1.2520209000658014e+26","dmfullname":["LTNFTR","LTNFTR"],"dmreverse":["FTRLTN","FTRLTN"],"dmfn":["LTN","LTN"],"dmln":["FTR","FTR"],"cpfullname":"LTNFTRA111","cpreverse":"FTRLTN1111","cpfn":"LTN1111111","cpln":"FTRA111111","gender":"105172015","email":"1.3040236435052857e+36","yob":"49969396","mob":"5401","dob":"5100","date":"55230573365902066000","dateEnrolled":"2020-05-22","address":"1.4589669908760241e+38","state":"104123251391803","zip":"5781554767","department":"12072118104"}} The record is successfully inserted.

upmagupta (Tue, 16 Mar 2021 12:29:41 GMT):
the docker compose file i am using that of fabcar which is working fine

upmagupta (Tue, 16 Mar 2021 12:29:48 GMT):
i am using the same test-network folder

upmagupta (Tue, 16 Mar 2021 12:29:58 GMT):
but still my data is not getting posted

upmagupta (Tue, 16 Mar 2021 12:30:06 GMT):
its only intialized

upmagupta (Tue, 16 Mar 2021 12:30:11 GMT):
can anyone please suggest

upmagupta (Tue, 16 Mar 2021 13:41:17 GMT):
okay guys i am able to fix it

upmagupta (Tue, 16 Mar 2021 13:41:18 GMT):
thanks

TeepakornAthiphattarasakun (Tue, 16 Mar 2021 13:54:30 GMT):
Has joined the channel.

TeepakornAthiphattarasakun (Tue, 16 Mar 2021 13:54:31 GMT):
someone has sample js code to generate wallet and collect token ?

swatim (Tue, 16 Mar 2021 14:14:18 GMT):
I am working on hyperledger fabric 2.3 Whenever I try to deploy chaincode in javascript I get the problem while invoking it and I am also not able to use peer command outside the cli. ubuntu@ip-172-31-18-117:~/fabric-samples/test-network$ export PATH=${PWD}/../bin:$PATH ubuntu@ip-172-31-18-117:~/fabric-samples/test-network$ export FABRIC_CFG_PATH=$PWD/../config/ ubuntu@ip-172-31-18-117:~/fabric-samples/test-network$ peer chaincode invoke -o orderer.example.com:7050 --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt --isInit -c '{"function":"InitLedger","Args":[]}' then I got the error: Error: 2021-03-16 13:36:52.033 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/home/ubuntu/fabric-samples/config/msp" does not exist or cannot be accessed: stat /home/ubuntu/fabric-samples/config/msp: no such file or directory please do help I am stuck with this for a long time and when I try to invoke chaincode from CLI then it gives an error Error: 2021-03-16 13:34:14.062 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 05f ESCC invoke result: response: Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction ab91db0d7cfd1486060dd4eda3433a795420a586a22bb9be2b840d0c4991cadc: could not launch chaincode myccv1:ef37e8fd88cd288ac9fc1cc7a03584c798a8ee7577b6aac20d6c6722009dc631: error starting container: error starting container: API error (500): Could not attach to network test: rpc error: code = NotFound desc = network test not found"

Quek (Tue, 16 Mar 2021 17:03:05 GMT):
Has joined the channel.

tegie (Tue, 16 Mar 2021 18:29:46 GMT):
hey I am trying to create User with `fabric-common` with `createUser` function but I am getting TypeError: cryptoSuite.createKeyFromRaw is not a function error. Any idea what might be the issue here? fabric-common version 2.2.5

BaomeiFan (Wed, 17 Mar 2021 04:59:09 GMT):
Has joined the channel.

BaomeiFan (Wed, 17 Mar 2021 04:59:10 GMT):
Hello, I am trying with the samples but encountered the following error when running the command from this page https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html Could someone help take a look? Thanks! $ ./network.sh deployCC deploying chaincode on channel 'mychannel' executing with the following - CHANNEL_NAME: mychannel - CC_NAME: NA - CC_SRC_PATH: NA - CC_SRC_LANGUAGE: NA - CC_VERSION: 1.0 - CC_SEQUENCE: 1 - CC_END_POLICY: NA - CC_COLL_CONFIG: NA - CC_INIT_FCN: NA - DELAY: 3 - MAX_RETRY: 5 - VERBOSE: false No chaincode name was provided. Valid call example: ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go Deploying chaincode failed

BaomeiFan (Wed, 17 Mar 2021 04:59:10 GMT):
Hello, I am trying with the samples but encountered the following error when running the command from this page https://hyperledger-fabric.readthedocs.io/en/release-2.0/test_network.html Could someone help take a look? Is the command changes or did I miss something? Thanks! $ ./network.sh deployCC deploying chaincode on channel 'mychannel' executing with the following - CHANNEL_NAME: mychannel - CC_NAME: NA - CC_SRC_PATH: NA - CC_SRC_LANGUAGE: NA - CC_VERSION: 1.0 - CC_SEQUENCE: 1 - CC_END_POLICY: NA - CC_COLL_CONFIG: NA - CC_INIT_FCN: NA - DELAY: 3 - MAX_RETRY: 5 - VERBOSE: false No chaincode name was provided. Valid call example: ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go Deploying chaincode failed

arijitmhptr (Wed, 17 Mar 2021 07:17:45 GMT):
I am stuck in softHSM intehration. I have explained the issue on stackoverflow. Anyone who has worked on softHSM, kindly help me. https://stackoverflow.com/questions/66667847/softhsm-integration-with-hyperledger-fabric

arijitmhptr (Wed, 17 Mar 2021 07:17:45 GMT):
I am stuck in softHSM integration. I have explained the issue on StackOverflow. Anyone who has worked on softHSM, kindly help me. https://stackoverflow.com/questions/66667847/softhsm-integration-with-hyperledger-fabric

karan1108 (Wed, 17 Mar 2021 07:42:22 GMT):
Has joined the channel.

karan1108 (Wed, 17 Mar 2021 07:42:23 GMT):
I am trying to connect to a fabric network 1.4 using an application using the node sdk 2.x. The wallet that I have for connecting to the gateway was initially created for sdk 1.4 but I converted it to a wallet for 2.x using the wallet migration tool but still I am unable to connect to the gateway. I get this error "Error: PEM encoded certificate is required" . But I am pretty sure the identity file in wallet is correct . Can someone help me in what am I missing here ?

SoundaryaAyyappan (Wed, 17 Mar 2021 10:32:56 GMT):
Has joined the channel.

akshay.sood (Wed, 17 Mar 2021 11:20:37 GMT):
Hey guys Is there any document to update the tls certificates on a running network? The network consist of raft based 3 ordering nodes

akshay.sood (Wed, 17 Mar 2021 11:22:09 GMT):
I am thinking what would happen if the tls certificates expires. Would I be able to update the tls certs of orderers?

KieranYalland (Wed, 17 Mar 2021 12:10:10 GMT):
Hi guys, Anyone able to pass some knowledge my way. Im trying to create a channel

KieranYalland (Wed, 17 Mar 2021 12:14:12 GMT):
Hi guys, Anyone able to pass some knowledge my way? Im trying to create a channel for the first time using: peer channel create -o localhost:7050 -c medpatchannel --ordererTLSHostnameOverride healthchain.Healthchain.com -f ./channel-artifacts/med_pat_channel.tx --outputBlock ./channel-artifacts/med_pat_channel.block --tls --cafile $ORDERER_CA And seem to keep getting this error message: 2021-03-17 12:12:35.369 GMT [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'medpatchannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied any guidance would be great as Im new to fabric thank you.

Kestutis_Gudynas (Wed, 17 Mar 2021 14:12:04 GMT):
It shows that some of your go struct and JSON fields are of different types. In this case, one of your JSON fields is an array, but your go variable, that you assign the array to, is a string.

nkaramolegos (Wed, 17 Mar 2021 14:24:10 GMT):
Is fabric-java-chaincode room dead? Nobody answers

raylau12 (Thu, 18 Mar 2021 01:51:00 GMT):
Has joined the channel.

raylau12 (Thu, 18 Mar 2021 01:51:01 GMT):
hi all

raylau12 (Thu, 18 Mar 2021 01:51:04 GMT):
Grateful if someone can give me some tutorial how to replace fabric orderer & peer admin certificates (the certificates will be expired soon) ? 🙏 Many thanks

raylau12 (Thu, 18 Mar 2021 02:06:13 GMT):
I have tried to replace the certificates and updated the channel but I don't know why the old certificate would be still show in orderer logs?

JonKwok (Thu, 18 Mar 2021 06:18:22 GMT):
Has joined the channel.

Quek (Thu, 18 Mar 2021 07:58:37 GMT):
Hi guys,

Quek (Thu, 18 Mar 2021 07:59:48 GMT):
Hi guys, Anyone knows in what situation do we need to put multiple transactions in a block?

MemorXIE (Thu, 18 Mar 2021 11:21:38 GMT):
Has joined the channel.

MemorXIE (Thu, 18 Mar 2021 11:21:39 GMT):
hello everyone. I hava some troubles with the fabric sample. I followed the instructions in the docs of Writing Your First Application, when I run the `node app.js`, I got a error message: Loaded the network configuration located at /home/ubuntu/fabric-samples/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/connection-org1.json Built a CA Client named ca-org1 Built a file system wallet at /home/ubuntu/fabric-samples/fabric-samples/asset-transfer-basic/application-javascript/wallet An identity for the admin user already exists in the wallet An identity for the user appUser already exists in the wallet --> Submit Transaction: InitLedger, function creates the initial set of assets on the ledger 2021-03-18T11:09:42.138Z - error: [DiscoveryService]: send[basic] - Channel:mychannel received discovery error:failed constructing descriptor for chaincodes: ******** FAILED to run the application: Error: DiscoveryService: basic error: failed constructing descriptor for chaincodes:

MemorXIE (Thu, 18 Mar 2021 11:21:55 GMT):
can anyone help me? thx!

jiazekun (Thu, 18 Mar 2021 13:07:04 GMT):
Has joined the channel.

jiazekun (Thu, 18 Mar 2021 13:07:04 GMT):
when i created a channel with "./network.sh createChannel",i got an error that "Error: Post "https://localhost:7053/participation/v1/channels": read tcp 127.0.0.1:56872->127.0.0.1:7053: read: connection reset by peer Channel creation failed "I need your help

jiazekun (Thu, 18 Mar 2021 13:07:54 GMT):
Is anybody in there?

jiazekun (Thu, 18 Mar 2021 13:12:02 GMT):
:woo:

greg2git (Thu, 18 Mar 2021 14:19:07 GMT):
@jiazekun did you try it again 'from scratch'?

ymo 7 (Thu, 18 Mar 2021 14:20:49 GMT):
i could use some of you folks with trained eyes help :-) ``` + osnadmin channel list -o localhost:30000 --ca-file build/crypto-config/peerOrganizations/org1/tlsca/tlsca.org1-cert.pem --client-cert build/crypto-config/ordererOrganizations/ordererorg1/users/Admin@ordererorg1/tls/client.crt --client-key build/crypto-config/ordererOrganizations/ordererorg1/users/Admin@ordererorg1/tls/client.key Error: Get "https://localhost:30000/participation/v1/channels": x509: certificate signed by unknown authority ```

ymo 7 (Thu, 18 Mar 2021 14:21:22 GMT):
i am sure i am doing something stupid with the tls ca cert but i cant tell

ymo 7 (Thu, 18 Mar 2021 14:23:40 GMT):
@BrettLogan i am trying to use the fabric tools but i am still messing up with the tls certs. i can definitely talk to the ca-org but now i am trying to connect with the orderer while targetting a cluster that was stood by fabric-test. i am total newb in fabric and i could use your help in figuring how to connect the cli tools to the network stood up by fabric-test

S.pradeepkumar (Thu, 18 Mar 2021 15:46:41 GMT):
Does anyone have idea regarding parallel execution of transactions on fabric network

S.pradeepkumar (Thu, 18 Mar 2021 15:46:41 GMT):
Does anyone have idea regarding parallel execution of transactions

teana (Thu, 18 Mar 2021 18:42:20 GMT):
Has joined the channel.

teana (Thu, 18 Mar 2021 18:42:20 GMT):
My concern is if I have setup on different VMs. Having specific channel for a pair of peers. How and where to query information such as: How many channels are their in the network? what are their names? who can join (specific) channel? which chaindode is part of a specific channel? who has the right to initiate chaincode? how to check if any peer does not have the right to initiate chaincode but is trying to? how to check what happens while chaincode is running? how to check if any peer is trying to join a channel that they should not join? In general, how to query/select this information? All commands that i have seen allow to invoke chaincode or join channel and so on. What am i missing?

amalendusuresh (Fri, 19 Mar 2021 03:46:08 GMT):
Hi all, Im facing errors when i try to bring op the network in 2.0.. This is the error which Im getting and finally itz failing to craete genesis block... [common.tools.configtxgen.localconfig] Load -> PANI 002 Error reading configuration: While parsing config: yaml: line 36: did not find expected key 2021-03-16 06:27:37.350 UTC [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration: While parsing config: yaml: line 36: did not find expected key panic: Error reading configuration: While parsing config: yaml: line 36: did not find expected key [recovered] panic: Error reading configuration: While parsing config: yaml: line 36: did not find expected key Could anyone help me with this... Thanks in advance

swatim (Fri, 19 Mar 2021 06:00:01 GMT):
Does anyone know how I can deploy multiple smart contracts in javascripts in one chaincode and invoke all smart contracts with different files in CouchDB?

indirajith (Fri, 19 Mar 2021 08:11:12 GMT):
Hi all, in fabric 2.2 and 2.3 versions, shall we have orderers in the same organization as peers or should we need to have a seperate org for orderers? What is the best practice when designing the network? Or should we have two different orgs for peers and orderers for each participating orgs? Can anyone shed some light and point me to resources? Thanks in advance.

knagware9 (Fri, 19 Mar 2021 08:30:25 GMT):
depends on your policy which you defined during network setup if your policy is all orgs admin need to approve for any new org add then you will need all orgs approval to get added new org.

Adhavpavan (Fri, 19 Mar 2021 16:11:32 GMT):
I tried with in go lang. Check if this helps. https://www.youtube.com/watch?v=TZY2Gooh4f8&list=PLSBNVhWU6KjW4qo1RlmR7cvvV8XIILub6&index=59

vishnupradeepmahe (Fri, 19 Mar 2021 17:50:42 GMT):
Hi all, i am using 1.4.6 version of fabric in production in swarm mode facing issue as follows `panic: Error opening leveldb: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000008]` when researched the issue seemed to be because of Full disks not sure if this is the reason. Can anyone confirm this or tell what the issue is and a way to resolve this issue without data loss. thanks and regards

nmarco (Fri, 19 Mar 2021 18:48:20 GMT):
Wanted to confirm what validationCode 17 means: https://github.com/hyperledger/fabric/blob/v1.0.0/protos/peer/transaction.proto#L143 Does it mean failed transaction? (anything other than validationCode 0 is a failed tx?)

nmarco (Fri, 19 Mar 2021 19:57:58 GMT):
The reason I ask is i'm looking at old transactions and need a way to filter success / failure but it appears previous successes are now validationCode 17

nmarco (Fri, 19 Mar 2021 20:32:22 GMT):
unless they really are error and I can safely ignore them, hence the question above

nmarco (Fri, 19 Mar 2021 22:55:58 GMT):
I'm leaning toward the codes not meaning what the enum suggests. In addition to code validation code 17 appearing for seemingly valid transactions, all of the deploy LSCC transactions are validation code 10

nmarco (Fri, 19 Mar 2021 22:56:14 GMT):
Does anyone know where to find docs to clarify?

hgwxx (Sat, 20 Mar 2021 02:36:09 GMT):
Has joined the channel.

hgwxx (Sat, 20 Mar 2021 02:36:09 GMT):
Hi does anyone know how to solve this issue? *error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-contract-api-go/contractapi* after ./byfn up at the first-network subfolder

Sandyzhanghs (Sat, 20 Mar 2021 03:25:05 GMT):
Hello I have a design question.

Sandyzhanghs (Sat, 20 Mar 2021 03:25:56 GMT):
Hi I have a design question.

arun17 (Sat, 20 Mar 2021 18:26:27 GMT):
hi everyone can anyone help me out with the issue of TLS handshake failed with error EOF server=Ordere

vishnupradeepmahe (Sat, 20 Mar 2021 18:35:16 GMT):
why cant i use osnadmin in fabric-tools image

vishnupradeepmahe (Sat, 20 Mar 2021 18:35:16 GMT):
Hi all why can't i use osnadmin in fabric-tools image? how to create channel in 2.3.1 when running in containers?

zeminzhou (Sun, 21 Mar 2021 13:03:26 GMT):
hi yacovm,

zeminzhou (Sun, 21 Mar 2021 13:07:12 GMT):
感谢你的回复,我已经通过基于SmartBFT共识的fabric搭建一个fabirc网络。现在,我遇到新的问题,我想测试一下吞吐量。但是我不知道该怎么做?你对此有了解吗?

zeminzhou (Sun, 21 Mar 2021 13:07:48 GMT):
Thank you for your reply, I have built a fabirc network based on the SmartBFT consensus fabric. Now, I have a new problem, and I want to test the throughput. But I don’t know what to do? Do you understand this?

bh4rtp (Sun, 21 Mar 2021 13:16:57 GMT):
hi, i use `peer chaincode invoke --peerAddresses peer0:7051 --peerAddresses peer1:7051 --peerAddresses peer2:7051 ... `, why only chaincode on peer0 is actually invoked, the other two peer0 does not receive the invocation?

bh4rtp (Sun, 21 Mar 2021 13:16:57 GMT):
hi, i use `peer chaincode invoke --peerAddresses peer0:7051 ... --peerAddresses peer1:7051 ... --peerAddresses peer2:7051 ... `, why only chaincode on peer0 is actually invoked, the other two peer0 does not receive the invocation?

bh4rtp (Sun, 21 Mar 2021 13:16:57 GMT):
hi, i use `peer chaincode invoke --peerAddresses peer0:7051 ... --peerAddresses peer1:7051 ... --peerAddresses peer2:7051 ... `, why only chaincode on peer0 is actually invoked, the other two peers does not receive the invocation?

APat1234 (Sun, 21 Mar 2021 19:19:42 GMT):
Has joined the channel.

APat1234 (Sun, 21 Mar 2021 19:19:43 GMT):
anyone know how to solve "Failed loading OrdererOU certificate at" because of the following path it has with a random back slash '\': /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem

APat1234 (Sun, 21 Mar 2021 19:19:43 GMT):
anyone know how to solve "Failed loading OrdererOU certificate at" because of the following path it has with a random back slash '\': /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/cacerts\ca.org2.example.com-cert.pem I get this when I run ./byfn.sh up on the first_network under fabric_samples

DominicG (Mon, 22 Mar 2021 12:23:58 GMT):
Hello everyone, we are setting up Fabric 2.2.0 and having troubles with TLS CA. Any time we are trying to connect the network we are getting error: Server Handshake failed -> TLS handshake failed: first record does not look like a TLS handshake. Another issue that we can not make orderer look to the outside for the clients to connect to it.

shubhamirpachi (Mon, 22 Mar 2021 14:09:41 GMT):
Has joined the channel.

nkaramolegos (Mon, 22 Mar 2021 16:08:28 GMT):
When I am running docker run --rm hyperledger/fabric-peer:latest peer version the command does not return anything

nkaramolegos (Mon, 22 Mar 2021 16:08:28 GMT):
When I am running docker run --rm hyperledger/fabric-peer:latest peer version the command does not return anything. Why?

selvaraman (Tue, 23 Mar 2021 03:18:25 GMT):
Where can I get *working* sample network in hyperledger fabric 2.x that contains CA, RAFT. I can find sample RAFT without CA, and CA without RAFT.

K_I 1 (Tue, 23 Mar 2021 09:55:05 GMT):
Has joined the channel.

K_I 1 (Tue, 23 Mar 2021 09:55:06 GMT):
hello, i'd like to know how to make hyperledger fabric network expose a REST API?

K_I 1 (Tue, 23 Mar 2021 09:55:06 GMT):
hello, i'd like to know how to make hyperledger fabric (v2.2) network expose a REST API?

souptikmakarov (Tue, 23 Mar 2021 10:56:06 GMT):
Getting this error when trying to setup the test-network with fabric 2.3 ./network.sh up createChannel -c mychannel -ca Creating channel 'mychannel'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb with crypto from 'Certificate Authorities' Bringing up network LOCAL_VERSION=2.3.1 DOCKER_IMAGE_VERSION=2.3.1 CA_LOCAL_VERSION=1.4.9 CA_DOCKER_IMAGE_VERSION=1.4.9 Generating certificates using Fabric CA ERROR: Version in "./docker/docker-compose-ca.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

souptikmakarov (Tue, 23 Mar 2021 10:56:06 GMT):
Getting this error when trying to setup the test-network with fabric 2.3 ```./network.sh up createChannel -c mychannel -ca Creating channel 'mychannel'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb with crypto from 'Certificate Authorities' Bringing up network LOCAL_VERSION=2.3.1 DOCKER_IMAGE_VERSION=2.3.1 CA_LOCAL_VERSION=1.4.9 CA_DOCKER_IMAGE_VERSION=1.4.9 Generating certificates using Fabric CA ERROR: Version in "./docker/docker-compose-ca.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/```

constantine2021 (Tue, 23 Mar 2021 16:35:55 GMT):
Has joined the channel.

constantine2021 (Tue, 23 Mar 2021 16:35:55 GMT):
Does anyone know - can a chaincode write or "fork" one block, and write the results of the chaincode to two different blockchains?

suimi (Wed, 24 Mar 2021 06:33:10 GMT):
Has joined the channel.

suimi (Wed, 24 Mar 2021 06:33:11 GMT):
Hello everyone, when i try to setup a network with fabric 2.0.0, got the following error in orderer's logs: ``` 2021-03-24 06:20:02.302 UTC [common.deliver] deliverBlocks -> DEBU e7e Context canceled, aborting wait for next block 2021-03-24 06:20:02.302 UTC [orderer.common.server] func1 -> DEBU e7f Closing Deliver stream 2021-03-24 06:20:02.302 UTC [comm.grpc.server] 1 -> INFO e80 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=192.168.8.3:54038 grpc.peer_subject="CN=orderer3.orderer.amops.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=1.574441ms 2021-03-24 06:20:02.302 UTC [fsblkstorage] waitForBlock -> DEBU e81 Came out of wait. maxAvailaBlockNumber=[0] 2021-03-24 06:20:05.307 UTC [grpc] createTransport -> DEBU e82 grpc: addrConn.createTransport failed to connect to {orderer2.orderer.amops.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 52.128.23.153:7050: connect: connection timed out". Reconnecting... 2021-03-24 06:20:05.307 UTC [grpc] HandleSubConnStateChange -> DEBU e84 pickfirstBalancer: HandleSubConnStateChange: 0xc0003421e0, TRANSIENT_FAILURE 2021-03-24 06:20:05.307 UTC [grpc] createTransport -> DEBU e83 grpc: addrConn.createTransport failed to connect to {orderer1.orderer.amops.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 52.128.23.153:7050: connect: connection timed out". Reconnecting... 2021-03-24 06:20:05.307 UTC [grpc] HandleSubConnStateChange -> DEBU e85 pickfirstBalancer: HandleSubConnStateChange: 0xc0002df970, TRANSIENT_FAILURE 2021-03-24 06:20:06.307 UTC [grpc] HandleSubConnStateChange -> DEBU e86 pickfirstBalancer: HandleSubConnStateChange: 0xc0003421e0, CONNECTING 2021-03-24 06:20:06.307 UTC [grpc] HandleSubConnStateChange -> DEBU e87 pickfirstBalancer: HandleSubConnStateChange: 0xc0002df970, CONNECTING 2021-03-24 06:20:07.298 UTC [grpc] createTransport -> DEBU e88 grpc: addrConn.createTransport failed to connect to {orderer1.orderer.amops.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 52.128.23.153:7050: operation was canceled". Reconnecting... 2021-03-24 06:20:07.298 UTC [orderer.common.cluster.puller] probeEndpoint -> WARN e89 Failed connecting to {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.orderer.amops.com,O=orderer.amops.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer1.orderer.amops.com:7050"}: failed to create new connection: context deadline exceeded channel=amopsdeploy 2021-03-24 06:20:07.298 UTC [orderer.common.cluster.puller] func1 -> WARN e8a Received error of type 'failed to create new connection: context deadline exceeded' from {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.orderer.amops.com,O=orderer.amops.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer1.orderer.amops.com:7050"} channel=amopsdeploy 2021-03-24 06:20:07.298 UTC [grpc] createTransport -> DEBU e8b grpc: addrConn.createTransport failed to connect to {orderer2.orderer.amops.com:7050 0 }. Err :connection error: desc = "transport: error while dialing: dial tcp 52.128.23.153:7050: operation was canceled". Reconnecting... 2021-03-24 06:20:07.298 UTC [orderer.common.cluster.puller] probeEndpoint -> WARN e8c Failed connecting to {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.orderer.amops.com,O=orderer.amops.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer2.orderer.amops.com:7050"}: failed to create new connection: context deadline exceeded channel=amopsdeploy 2021-03-24 06:20:07.298 UTC [orderer.common.cluster.puller] func1 -> WARN e8d Received error of type 'failed to create new connection: context deadline exceeded' from {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.orderer.amops.com,O=orderer.amops.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer2.orderer.amops.com:7050"} channel=amopsdeploy 2021-03-24 06:20:07.298 UTC [orderer.common.cluster.puller] HeightsByEndpoints -> INFO e8e Returning the heights of OSNs mapped by endpoints map[orderer3.orderer.amops.com:7050:1] channel=amopsdeploy 2021-03-24 06:20:07.298 UTC [fsblkstorage] Next -> DEBU e8f Initializing block stream for iterator. itr.maxBlockNumAvailable=0 2021-03-24 06:20:07.298 UTC [grpc] infof -> DEBU e90 transport: loopyWriter.run returning. connection error: desc = "transport is closing" 2021-03-24 06:20:07.298 UTC [fsblkstorage] newBlockfileStream -> DEBU e91 newBlockfileStream(): filePath=[/var/hyperledger/production/orderer/chains/amopsdeploy/blockfile_000000], startOffset=[0] ```

suimi (Wed, 24 Mar 2021 06:34:28 GMT):
any idea can be solve it?

arpitsoman (Wed, 24 Mar 2021 07:47:46 GMT):
Has joined the channel.

arpitsoman (Wed, 24 Mar 2021 07:52:07 GMT):
I want to renew the peer, orderer certificates of my hlf network which has custom 3rd party ca, can someone help me with some pointers on how to start?

iambatman (Wed, 24 Mar 2021 12:10:31 GMT):
In our blockchain solution we are planning to keep the blockchain data(stateDB) in an off chain DB(MySQL) for better searching(ONLY READ), but doing that are we breaking the principle of immuatabilty

iambatman (Wed, 24 Mar 2021 12:10:31 GMT):
In our blockchain solution we are planning to keep the blockchain data(stateDB) in an off chain DB(MySQL) for better searching(ONLY READ), but doing that are we breaking the principle of immuatabilty???

iambatman (Wed, 24 Mar 2021 12:10:58 GMT):
On the relevant updates the offchain db is sync with queue implementation

iambatman (Wed, 24 Mar 2021 12:49:52 GMT):
The error is self explanory .`Version in "./docker/docker-compose-ca.yaml" is unsupported Either specify a supported version (e.g "2.2" or "3.3") `

iambatman (Wed, 24 Mar 2021 12:50:07 GMT):
Update the correct version

iambatman (Wed, 24 Mar 2021 12:51:10 GMT):
Checkout the fabric SDK docs

souptikmakarov (Wed, 24 Mar 2021 15:17:11 GMT):
This file is from the fabric samples. the version there is 2.4 which is valid given the version of docker engine i am using

HgSon (Thu, 25 Mar 2021 02:04:01 GMT):
Has joined the channel.

HgSon (Thu, 25 Mar 2021 02:04:01 GMT):
Hi, I got the error when I tried to join an orderer to channel with fabric 2.3.. I tried following command : ``` export OSN_TLS_CA_ROOT_CERT=$FABRIC_CFG_PATH/orgs/ordorg/users/ord1/msp/tlscacerts/ca.crt export ADMIN_TLS_SIGN_CERT=$FABRIC_CFG_PATH/orgs/ordorg/users/ord1/msp/signcerts/cert.pem export ADMIN_TLS_PRIVATE_KEY=$FABRIC_CFG_PATH/orgs/ordorg/users/ord1/msp/keystore/server.key osnadmin channel list -o localhost:7080 --ca-file $OSN_TLS_CA_ROOT_CERT --client-cert $ADMIN_TLS_SIGN_CERT --client-key $ADMIN_TLS_PRIVATE_KEY osnadmin channel join -o localhost:7080 --ca-file $OSN_TLS_CA_ROOT_CERT --client-cert $ADMIN_TLS_SIGN_CERT --client-key $ADMIN_TLS_PRIVATE_KEY --channelID channel00 --config-block genesis_block00.pb ``` and I got following error : ``` Status: 400 { "error": "invalid join block: cannot enable channel capabilities without orderer support first" } ``` How can I solve this problem?

sownak (Thu, 25 Mar 2021 17:14:38 GMT):
Hello, I have a question. so, I have added a new peer on an existing channel. And it seems that the new peer is not getting the latest block. ` peer channel getinfo -c mychannel Blockchain info: {"height":24,"currentBlockHash":"mHnlQM5drU5kLfNwf+QjM9ZbfnCcbPhB/NZ44+UQos4=","previousBlockHash":"qWxRnAfj5OrQ/1QOCfsXCf6mK2372lsupZ+c0vSqTL4="}`

sownak (Thu, 25 Mar 2021 17:14:38 GMT):
Hello, I have a question. so, I have added a new peer on an existing channel. And it seems that the new peer is not getting the latest block. ` peer channel getinfo -c mychannel Blockchain info: {"height":24,"currentBlockHash":"mHnlQM5drU5kLfNwf+QjM9ZbfnCcbPhB/NZ44+UQos4=","previousBlockHash":"qWxRnAfj5OrQ/1QOCfsXCf6mK2372lsupZ+c0vSqTL4="} `

sownak (Thu, 25 Mar 2021 17:14:38 GMT):
Hello, I have a question. so, I have added a new peer on an existing channel. And it seems that the new peer is not getting the latest block. ``` peer channel getinfo -c mychannel Blockchain info: {"height":24,"currentBlockHash":"mHnlQM5drU5kLfNwf+QjM9ZbfnCcbPhB/NZ44+UQos4=","previousBlockHash":"qWxRnAfj5OrQ/1QOCfsXCf6mK2372lsupZ+c0vSqTL4="} ```

sownak (Thu, 25 Mar 2021 17:14:38 GMT):
Hello, I have a question. so, I have added a new peer on an existing channel. And it seems that the new peer is not getting the latest block. ``` #In old peer peer channel getinfo -c mychannel Blockchain info: {"height":24,"currentBlockHash":"mHnlQM5drU5kLfNwf+QjM9ZbfnCcbPhB/NZ44+UQos4=","previousBlockHash":"qWxRnAfj5OrQ/1QOCfsXCf6mK2372lsupZ+c0vSqTL4="} #in new peer peer channel getinfo -c mychannel Blockchain info: {"height":1,"currentBlockHash":"KxPCjBonTiyOjC2cSlYXZtSAXxwxR3FhSiNVaNngqu8="} ```

sownak (Thu, 25 Mar 2021 17:38:03 GMT):
And on the peer this message is shown ``` WARN 056 Block [24] received from gossip wasn't added to payload buffer: Ledger height is at 1, cannot enqueue block with sequence of 24 ```

KieranYalland (Thu, 25 Mar 2021 20:24:57 GMT):
Hi guys Im getting this error when I attempt to bring up my channel: 2021-03-25 20:20:14.236 GMT [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- channel creation request not allowed because the orderer system channel is not defined wondered if anyone could land a hand? Thanks

AbhijeetSamanta (Fri, 26 Mar 2021 05:07:03 GMT):
How to migrate data from IBM blockchain to other hyperledger fabric cloud? Please see question on stackoverflow https://stackoverflow.com/questions/66796313/how-to-migrate-data-from-ibm-blockchain-to-other-hyperledger-fabric-cloud

abhishekktpl (Fri, 26 Mar 2021 09:49:13 GMT):
How can we configure the TLS algorithm? What are the options. Currently we only specify if its ON/OFF and Path to certs and key

Unicow (Fri, 26 Mar 2021 14:02:44 GMT):
Hello, is there a way to create a HLF network with channels etc from Java?

BrettLogan (Fri, 26 Mar 2021 14:05:09 GMT):
Add new components in the new cloud to the existing network, then start removing the old components until all that is left is your new stuff

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Has joined the channel.

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Hello. Using the JAVA SDK I have issues to submit a transaction with `byte[] mintTokensResult = contract.createTransaction("Mint").submit("1000");` It fails while trying to connect to orderer: ``` Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel erc20channel, send transaction failed on orderer OrdererClient{id: 12, channel: erc20channel, name: orderer.example.com:7050, url: grpcs://orderer.example.com:7050}. Reason: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: java.lang.RuntimeException: java.net.UnknownHostException: orderer.example.com: nodename nor servname provided, or not known ``` My connection.json looks like this: ``` { "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpcs://20.71.155.103:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://20.71.155.103:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMII...hI5Iy1T1hxE=\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://20.71.155.103:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMII...5Iy1T1hxE=\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } } ``` Does anyone experienced this before and knows how to solve it? Many thanks in advance!

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Hello. Running HLF 2.2.2 and using the JAVA SDK 2.2 I have issues to submit a transaction with `byte[] mintTokensResult = contract.createTransaction("Mint").submit("1000");` It fails while trying to connect to orderer: ``` Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel erc20channel, send transaction failed on orderer OrdererClient{id: 12, channel: erc20channel, name: orderer.example.com:7050, url: grpcs://orderer.example.com:7050}. Reason: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: java.lang.RuntimeException: java.net.UnknownHostException: orderer.example.com: nodename nor servname provided, or not known ``` My connection.json looks like this: ``` { "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpcs://localhost:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://localhost:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMII...hI5Iy1T1hxE=\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://localhost:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMII...5Iy1T1hxE=\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } } ``` Does anyone experienced this before and knows how to solve it? Many thanks in advance!

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Hello. Running HLF 2.2.2 and using the JAVA SDK 2.2 I have issues to submit a transaction with `byte[] mintTokensResult = contract.createTransaction("Mint").submit("1000");` It fails while trying to connect to orderer: ``` Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel erc20channel, send transaction failed on orderer OrdererClient{id: 12, channel: erc20channel, name: orderer.example.com:7050, url: grpcs://orderer.example.com:7050}. Reason: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: java.lang.RuntimeException: java.net.UnknownHostException: orderer.example.com: nodename nor servname provided, or not known ``` My connection.json looks like this: ``` { "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpcs://localhost:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://localhost:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMII...hI5Iy1T1hxE=\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://localhost:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMII...5Iy1T1hxE=\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } } ``` It also fails with connection.yaml Does anyone experienced this before and knows how to solve it? Many thanks in advance!

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Hello. Running HLF 2.2.2 and using the JAVA SDK 2.2 I have issues to submit a transaction with `byte[] mintTokensResult = contract.createTransaction("Mint").submit("1000");` It fails while trying to connect to orderer: ``` Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel erc20channel, send transaction failed on orderer OrdererClient{id: 12, channel: erc20channel, name: orderer.example.com:7050, url: grpcs://orderer.example.com:7050}. Reason: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: java.lang.RuntimeException: java.net.UnknownHostException: orderer.example.com: nodename nor servname provided, or not known ``` My connection.json looks like this: ``` { "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpcs://localhost:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://localhost:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMII...hI5Iy1T1hxE=\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://localhost:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMII...5Iy1T1hxE=\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } } ``` It also fails with connection.yaml ``` ``` Does anyone experienced this before and knows how to solve it? Many thanks in advance!

tac911 (Fri, 26 Mar 2021 22:36:06 GMT):
Hello. Running HLF 2.2.2 and using the JAVA SDK 2.2 I have issues to submit a transaction with `byte[] mintTokensResult = contract.createTransaction("Mint").submit("1000");` It fails while trying to connect to orderer: ``` Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel erc20channel, send transaction failed on orderer OrdererClient{id: 12, channel: erc20channel, name: orderer.example.com:7050, url: grpcs://orderer.example.com:7050}. Reason: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host orderer.example.com ... Caused by: java.lang.RuntimeException: java.net.UnknownHostException: orderer.example.com: nodename nor servname provided, or not known ``` My connection.json looks like this: ``` { "name": "test-network-org1", "version": "1.0.0", "client": { "organization": "Org1", "connection": { "timeout": { "peer": { "endorser": "300" } } } }, "organizations": { "Org1": { "mspid": "Org1MSP", "peers": [ "peer0.org1.example.com" ], "certificateAuthorities": [ "ca.org1.example.com" ] } }, "orderers": { "orderer.example.com": { "url": "grpcs://localhost:7050", "grpcOptions": { "ssl-target-name-override": "orderer.example.com" } } }, "peers": { "peer0.org1.example.com": { "url": "grpcs://localhost:7051", "tlsCACerts": { "pem": "-----BEGIN CERTIFICATE-----\nMII...hI5Iy1T1hxE=\n-----END CERTIFICATE-----\n" }, "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com", "hostnameOverride": "peer0.org1.example.com" } } }, "certificateAuthorities": { "ca.org1.example.com": { "url": "https://localhost:7054", "caName": "ca-org1", "tlsCACerts": { "pem": ["-----BEGIN CERTIFICATE-----\nMII...5Iy1T1hxE=\n-----END CERTIFICATE-----\n"] }, "httpOptions": { "verify": false } } } } ``` It also fails with connection.yaml ``` --- name: mint-network-org1 version: 1.0.0 client: organization: Org1 connection: timeout: peer: endorser: '300' organizations: Org1: mspid: Org1MSP peers: - peer0.org1.example.com certificateAuthorities: - ca.org1.example.com peers: peer0.org1.example.com: url: grpcs://localhost:7051 tlsCACerts: path: fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem grpcOptions: ssl-target-name-override: peer0.org1.example.com certificateAuthorities: ca.org1.example.com: url: https://localhost:7054 caName: ca-org1 tlsCACerts: path: fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem httpOptions: verify: false orderers: orderer.example.com: url: grpcs://localhost:7050 grpcOptions: ssl-target-name-override: orderer.example.com tlsCACerts: path: fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp/cacerts/tlsca.example.com-cert.pem # crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ``` Does anyone experienced this before and knows how to solve it? Many thanks in advance!

chasecheese (Sun, 28 Mar 2021 03:35:04 GMT):
Hey everyone, I'm using fabric2.0, can I use the Solo algorithm to deploy the network on multiple servers? one server for Orderer using solo,the others is Peer.

chasecheese (Sun, 28 Mar 2021 03:35:51 GMT):
I try to using solo, but there is some trouble when approve

chasecheese (Sun, 28 Mar 2021 03:39:24 GMT):
There is trouble when I try to use command "peer lifecycle chaincode approveformyorg", the hint is "timeout waiting for tx id on all peers"(using Solo consensus).

selvaraman (Sun, 28 Mar 2021 15:41:00 GMT):
const { arrayBuffer } = require("sjcl") func (s *SmartContract) CreateAsset(ctx contractapi.TransactionContextInterface, id string, color string, size int, owner string, appraisedValue int) error { exists, err := s.AssetExists(ctx, id) if err != nil { return err } if exists { return fmt.Errorf("the asset %s already exists", id) } asset := Asset{ ID: id, Color: color, Size: size, Owner: owner, AppraisedValue: appraisedValue, } assetJSON, err := json.Marshal(asset) if err != nil { return err } return ctx.GetStub().PutState(id, assetJSON) } This is what my chaincode to createAsset. And this is how I am submitting transaction from node js result = await contract.submitTransaction(fcn, args[0], args[1], args[2], args[3], args[4]); After successfull invoke, result.toString() gives empty array.

selvaraman (Sun, 28 Mar 2021 15:41:13 GMT):
How to get txid from result

YoussefARRASSEN (Sun, 28 Mar 2021 23:50:03 GMT):
Has joined the channel.

troyronda (Mon, 29 Mar 2021 16:36:54 GMT):
Has left the channel.

selvaraman (Tue, 30 Mar 2021 11:13:15 GMT):
I Knew I will not get answer from this channel. I have no other options :( All Hyperledger Fabric 1.4.4 Fails while Install chaincode | cannot get package for chaincode Two years ago I did many projects, changing this balance transfer code. Later I was not working due to latest tag in docker version. So I changed version to 1.4.4 for all ca, peer and orderer. Then It was worked. But now All projects are failing and returns the following error in node js console, 2021-03-30 16:20:32.791] [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0) [2021-03-30 16:20:32.792] [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0) [2021-03-30 16:20:32.792] [ERROR] instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0)

selvaraman (Tue, 30 Mar 2021 11:13:15 GMT):
I Knew I will not get answer from this channel. but I have no other options :( All Hyperledger Fabric 1.4.4 Fails while Install chaincode | cannot get package for chaincode Two years ago I did many projects, changing this balance transfer code. Later I was not working due to latest tag in docker version. So I changed version to 1.4.4 for all ca, peer and orderer. Then It was worked. But now All projects are failing and returns the following error in node js console, 2021-03-30 16:20:32.791] [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0) [2021-03-30 16:20:32.792] [ERROR] instantiate-chaincode - instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0) [2021-03-30 16:20:32.792] [ERROR] instantiate-chaincode - Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: cannot get package for chaincode (hscc:v0)

mariem_ch (Tue, 30 Mar 2021 12:45:22 GMT):
Has joined the channel.

mariem_ch (Tue, 30 Mar 2021 12:45:23 GMT):
Hi everyone ,I am trying to learn fabric . i faced this error while trying to deploy a custom chaincode . https://stackoverflow.com/questions/66869824/hyperledger-fabric-error-while-deploying-a-custom-chaincode

HLFPOC (Tue, 30 Mar 2021 18:36:46 GMT):
Hi Team, Has anyone tried running fabric (v2.x) network using AWS ECS and Fargate? Any pointers around it?

shubhamirpachi (Tue, 30 Mar 2021 18:39:10 GMT):
Hi everyone, I'm working on Fabric 1.4.4v. I'm trying to install a chaincode which is implemented with fabric-contract-api and it is failing. There are no logs about the installation on peer pods. The installation of the same chaincode when defined with fabric-shim (low level api) is working fine. As there were no logs on peer pods, I thought may be due to lack of resources peer pods are not able to handle the request. It's not working even after redeploying the peer pods with better resources(cpu: 1000m, memory: 1024Mi). Is there anything that I'm missing here. Not sure how to troubleshoot this issue as there are no logs. Note: Facing this issue only with chaincodes that are implemented with fabric-contract-api.

shubhamirpachi (Tue, 30 Mar 2021 18:39:10 GMT):
Hi everyone, I'm working on Fabric v1.4.4. I'm trying to install a chaincode which is implemented with fabric-contract-api and it is failing. There are no logs about the installation on peer pods. The installation of the same chaincode when defined with fabric-shim (low level api) is working fine. As there were no logs on peer pods, I thought may be due to lack of resources peer pods are not able to handle the request. It's not working even after redeploying the peer pods with better resources(cpu: 1000m, memory: 1024Mi). Is there anything that I'm missing here. Not sure how to troubleshoot this issue as there are no logs. Note: Facing this issue only with chaincodes that are implemented with fabric-contract-api.

RodrigoAlejandroMelo (Tue, 30 Mar 2021 18:47:07 GMT):
Hi. Can someone recommend me a link about how to perform a JOIN (I guess with a view? I don't know a lot about couchdb) using couchdb in hyperledger fabric? I need a doc, an example, something (I googled for it without success). Or if not possible, or not recommended, what strategy to use. Thanks

RodrigoAlejandroMelo (Tue, 30 Mar 2021 18:47:51 GMT):
FYI, I am working with version 2.2

RodrigoAlejandroMelo (Tue, 30 Mar 2021 18:54:05 GMT):
I understand your frustration... Maybe you can try at https://lists.hyperledger.org/g/fabric (I saw more activity). I know almost nothing to help :P but maybe useful.

radarlwd (Tue, 30 Mar 2021 19:59:30 GMT):
Has joined the channel.

radarlwd (Tue, 30 Mar 2021 20:09:36 GMT):
Hi! I am trying to develop and deploy a project using HLF. I have tried the test network locally. I noticed this statement in the documentation - "This test network is not meant to provide a blueprint for deploying production components, and should not be used as such, as it makes assumptions and decisions that production deployments will not make." Could you give me some ideas or examples about what assumptions or decisions made in the test network may not work in production deployment?

cmhacker (Wed, 31 Mar 2021 05:52:37 GMT):
For security purpose like you should not use in the production. but if you modify the network like you define your own policy, CA servers and organisation setup that would be better

cmhacker (Wed, 31 Mar 2021 05:52:37 GMT):
For security purpose you should not use test network in the production. but if you modify the network like you define your own policy, CA servers and organisation setup that would be better

radarlwd (Wed, 31 Mar 2021 05:58:50 GMT):
What would be any potential issues if I were to deploy a single peer node and the orderer into the same ec2 instance(assuming I will have only one peer node in the whole network and will not add more)? Would this work? Do I even need an orderer in this case?

radarlwd (Wed, 31 Mar 2021 05:58:50 GMT):
Would there be any potential issues if I were to deploy a single peer node and the orderer into the same ec2 instance(assuming I will have only one peer node in the whole network and will not add more)? Would this work? Do I even need an orderer in this case?

crismpmpsba (Wed, 31 Mar 2021 07:18:02 GMT):
Has joined the channel.

crismpmpsba (Wed, 31 Mar 2021 07:18:03 GMT):
hi everyone. In 1.4 when a cli command was failing for example `peer chaincode instantiate` you can see the error in the peer logs by setting `FABRIC_LOGGING_SPEC=ERROR` or even INFO or DEBUG will to show it ``` [lscc] executeDeployOrUpgrade -> ERRO 0b5 cannot get package for chaincode ``` On 2.2 there is the feedback from the peer command why it is failing but the peer doesn't show any logs related to this trigger. Is there an environment variable that makes this possible or it is not expected to be shown any more in the logs of the peer?

wiktNat (Wed, 31 Mar 2021 12:56:19 GMT):
Hi guys, is there currently any example of unit testing the hyperledger-fabric Node Js SDK?

HLFPOC (Wed, 31 Mar 2021 18:02:01 GMT):
Any inputs on this?

nkalichynskyi (Thu, 01 Apr 2021 06:44:42 GMT):
I'd recommend trying to run it locally with some simple external builder, that way you'll have better control over installation process and ability to write logs this helps with troubleshooting. Also for me sometimes installation fails if go.sum file is missing or invalid.

harshita (Thu, 01 Apr 2021 20:07:49 GMT):
Has joined the channel.

lijiachuan (Sat, 03 Apr 2021 01:49:06 GMT):
Hi All, good day! I have one question about SDK user's certificate, if the certificate was expired, how should we handle that? Is there way to regenerate one valid certificate and replace the expired one? Kindly advise. Thanks.

richardfelkl (Sat, 03 Apr 2021 21:19:25 GMT):
Hey Guys. I need help with upgrading the Fabric network from 1.4 to 2.3. I already updated peer and orderer images. I have updated the policies and capabilities as well. But when I'm trying to approve new version of the cc I'm getting following error "cannot use new lifecycle for channel 'uzk-otbkotdjymzm' as it does not have the required capabilities enabled". I am sure I updated the capabilities on all places in the application channel and in the system channel as well. This only happens when I'm doing the upgrade. I don't have this problem when deploying V2 channel on already bootstrapped V2 peers and orderers.

richardfelkl (Sat, 03 Apr 2021 21:19:25 GMT):
Hey Guys. I need help with upgrading the Fabric network from 1.4 to 2.3. I already updated peer and orderer images. I have updated the policies and capabilities as well. But when I'm trying to approve new version of the cc I'm getting following error "cannot use new lifecycle for channel 'uzk-otbkotdjymzm' as it does not have the required capabilities enabled". I am sure I updated the capabilities on all places in the application channel and in the system channel as well. This only happens when I'm doing the upgrade. I don't have this problem when deploying V2 channel on already bootstrapped V2 peers and orderers. Is there anyone who has seen this behavior before?

GaberAl-Absi (Tue, 06 Apr 2021 14:19:20 GMT):
Has joined the channel.

GaberAl-Absi (Tue, 06 Apr 2021 14:19:22 GMT):
As I know that Hyperledger composer has been deprecated so how to install chaincode in the peer? How to connect chaincode with blockchain (Hyperledger Fabric)? What I can use instead of composer to implement all concepts of HLF?

cmhacker (Wed, 07 Apr 2021 05:21:46 GMT):
eheap_alloc: Cannot allocate 177423032 bytes of memory (of type "old_heap"). Crash dump is being written to: erl_crash.dump...done [os_mon] cpu supervisor port (cpu_sup): Erlang has closed [os_mon] memory supervisor port (memsup): Erlang has closed Hi, My CouchDB suddenly stops working. I restarted the coudDB still encounter with same error

cmhacker (Wed, 07 Apr 2021 06:06:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Skw37K6stbvKD2aur) This issue is resolved

ganesh_nic (Wed, 07 Apr 2021 06:21:33 GMT):
Has joined the channel.

ganesh_nic (Wed, 07 Apr 2021 06:21:34 GMT):
we are trying to learn Hyperledger Fabric and start using it for supply chain management and other activities. PL guide us how to proceed. We have installed the Hyper ledger Fabric and getting errors like cannot run peer because error when setting up MSP of type bccsp from directory /home/fabric-samples/test-network/organizations/peerOrganizations/Org1.example.com/users/Admin@org1.example.com/msp:keyMaterial not found in SigningIdentityInfo during source ./lifecycle_setup_org1.sh This setup all required environment variables. Step 3: Now run below command to install your chaincode. peer lifecycle chaincode install hometransfer.tar.gz --peerAddresses peer0.org1.example.com:7051 Can you suggest some solutions. Ganesh

jital (Wed, 07 Apr 2021 06:54:32 GMT):
Yes @davidkel I am querying it on receiving event triggered from set event

davidkel (Wed, 07 Apr 2021 07:17:52 GMT):
Then you have to make sure you query the peer that emitted the event. You can only guarantee that that peer has the private data at that moment

K_I 1 (Wed, 07 Apr 2021 12:41:25 GMT):
hello, i'd like to know how to make hyperledger fabric network expose a REST API? I found that i have to use Nodejs SDK but does anyone has an exemple ?

K_I 1 (Wed, 07 Apr 2021 12:41:25 GMT):
hello, i'd like to know how to make hyperledger fabric network expose a REST API? I found that i have to use Nodejs SDK but does anyone has an exemple or tutorial? Thanks for help

nkaramolegos (Wed, 07 Apr 2021 12:53:29 GMT):
Hello, I would like to build an IoT network based on BC and the hyperledger fabric. The IoT sensors will send data to the gateway (raspberry) and I would like the gateway to forward this information to the BC network and write these measurements to the ledger. I am thinking to run in raspberry gateway a fabric application which writes the data (through chaincode) to the deployed hyperledger fabric network.Is this approach in the right direction?

nkaramolegos (Wed, 07 Apr 2021 12:53:29 GMT):
Hello, I would like to build an IoT network based on BC and the hyperledger fabric. The IoT sensors will send data to the gateway (raspberry) and I would like the gateway to forward this information to the BC network and write these measurements to the ledger. I am thinking to run in raspberry gateway a fabric application which writes the data (through chaincode) to the deployed hyperledger fabric network. Is this approach in the right direction?

nkaramolegos (Wed, 07 Apr 2021 12:53:29 GMT):
Hello, I would like to build an IoT network based on BC and the hyperledger fabric. The IoT sensors will send data to the gateway (raspberry) and I would like the gateway to forward this information to the BC network and write these measurements to the ledger. I am thinking to run a fabric application in the raspberry based gateway which writes the data (through chaincode) to the deployed hyperledger fabric network. Is this approach in the right direction?

Romern (Wed, 07 Apr 2021 12:58:09 GMT):
Has joined the channel.

teana (Thu, 08 Apr 2021 10:22:17 GMT):
Hi

teana (Thu, 08 Apr 2021 10:23:35 GMT):
ca anyone guide how to read docker logs for a peer, for example peer0.org1 ? When I try to see logs its an infite gossip related messages. What does it mean?

cmhacker (Thu, 08 Apr 2021 10:58:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Y6uME9niFzpbCmDwm) Thoes are all logs. if you want to see end logs then you can check using *docker logs --tail 100 container*

roberto.cangiamila (Thu, 08 Apr 2021 13:22:55 GMT):
Hello everyone .. i need to specify custom peeroptions to enabled registerEventsForFilteredBlocks.. how can i do that? can anyone suggest me? i'm using fabric-gateway-java and networkConfig..thank's!!!

roberto.cangiamila (Thu, 08 Apr 2021 15:23:54 GMT):
a little help?

nkl199 (Thu, 08 Apr 2021 16:17:53 GMT):
Has left the channel.

alex_p (Thu, 08 Apr 2021 18:03:35 GMT):
Has joined the channel.

alex_p (Thu, 08 Apr 2021 18:07:16 GMT):
Hi everyone, I tried 10 times enrollment with an invalid password, and then the Fabric CA locked my username. do you know how to unlock the username?

HLFPOC (Thu, 08 Apr 2021 19:30:25 GMT):
Hi , I am trying to update the system channel by adding a new org (Org3) in the network but getting below error while executing the peer channel update command from orderer. Command: ` peer channel update -f org3_update_in_envelope.pb -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com -c system-channel --tls --cafile $ORDERER_CA` Error: ` Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'system-channel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Consortiums/SampleConsortium not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied` Currently using fabric v2.2 and running 3 orderers on the same machine (RAFT). Any inputs to debug further and resolve this issue?

HLFPOC (Thu, 08 Apr 2021 19:30:25 GMT):
Hi , I am trying to update the system channel by adding a new org (Org3) in the network but getting below error while executing the peer channel update command from orderer. Command: ` peer channel update -f org3_update_in_envelope.pb -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com -c system-channel --tls --cafile $ORDERER_CA` Error: `Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'system-channel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Consortiums/SampleConsortium not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied` Currently using fabric v2.2 and running 3 orderers on the same machine (RAFT). Any inputs to debug further and resolve this issue?

canenas (Thu, 08 Apr 2021 23:24:05 GMT):
So I'm trying to install a sample chaincode on a peer running fabric 2.2 on my kubernetes cluster and I keep getting the following error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-org1-peer1-basic_1.0-110617b44c2d5113fc1a43aac3b19e185a4fe33216f6319f540132596be5b16d-cf3706591228b98f5e97bb30ba2eb0625842041faebbdeb4b10b5342902dd649/json": dial unix /var/run/docker.sock: connect: no such file or directory

canenas (Thu, 08 Apr 2021 23:24:05 GMT):
So I'm trying to install a sample chaincode on a peer running fabric 2.2 on my kubernetes cluster and I keep getting the following error: `Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-org1-peer1-basic_1.0-110617b44c2d5113fc1a43aac3b19e185a4fe33216f6319f540132596be5b16d-cf3706591228b98f5e97bb30ba2eb0625842041faebbdeb4b10b5342902dd649/json": dial unix /var/run/docker.sock: connect: no such file or directory'

canenas (Thu, 08 Apr 2021 23:24:05 GMT):
So I'm trying to install a sample chaincode on a peer running fabric 2.2 on my kubernetes cluster and I keep getting the following error: ~`Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-org1-peer1-basic_1.0-110617b44c2d5113fc1a43aac3b19e185a4fe33216f6319f540132596be5b16d-cf3706591228b98f5e97bb30ba2eb0625842041faebbdeb4b10b5342902dd649/json": dial unix /var/run/docker.sock: connect: no such file or directory'~

canenas (Thu, 08 Apr 2021 23:24:05 GMT):
So I'm trying to install a sample chaincode on a peer running fabric 2.2 on my kubernetes cluster and I keep getting the following error: *`Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-org1-peer1-basic_1.0-110617b44c2d5113fc1a43aac3b19e185a4fe33216f6319f540132596be5b16d-cf3706591228b98f5e97bb30ba2eb0625842041faebbdeb4b10b5342902dd649/json": dial unix /var/run/docker.sock: connect: no such file or directory'*

canenas (Thu, 08 Apr 2021 23:27:27 GMT):
Am I correct to infer that since there isn't a docker daemon to run the chaincode on the peer node, installing a chaincode like that will never work? Is it possible to run the chaincode on the peer pod without having to create a new container where th chaincode is executed?

BrettLogan (Fri, 09 Apr 2021 00:04:04 GMT):
You can user the external builder to run a chaincode however you want now, including having it run inside the peer pod, or as a separate kubernetes pod: https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html

BrettLogan (Fri, 09 Apr 2021 00:04:17 GMT):
Here is a prebuilt one you can use on Kube: https://github.com/vanitas92/fabric-external-chaincodes

canenas (Fri, 09 Apr 2021 00:23:45 GMT):
Thanks BrettLogan. Looks like I would need to manually deploy a chaincode pod for every single peer I'm running.

BrettLogan (Fri, 09 Apr 2021 00:24:32 GMT):
No the external launcher provides the logic to tell the peer how to launch the pod

BrettLogan (Fri, 09 Apr 2021 00:24:32 GMT):
No the external builder provides the logic to tell the peer how to launch the pod

BrettLogan (Fri, 09 Apr 2021 00:25:56 GMT):
An external builder is an app, written by you or someone else, that the peer runs to launch chaincode. And where that chaincode is launch is entirely up to the application developer who wrote the launcher.

canenas (Fri, 09 Apr 2021 00:31:16 GMT):
so either i'll need to talk to the kube server to launch a new pod and launch the chaincode there or have "worker" pods to run the chaincode - if that's possible.

canenas (Fri, 09 Apr 2021 00:36:17 GMT):
BrettLogan So something like https://github.com/postfinance/hlfabric-k8scc/

lijiachuan (Fri, 09 Apr 2021 04:57:07 GMT):
Hello, may I know anyone can help about my question? Thanks in advance.

canenas (Fri, 09 Apr 2021 08:22:59 GMT):
Hi all has anyone got any experience with deploying fabric 2 on k8? I find it impossible to replicate the deployment of chaincode as done on test-network.

alxspectrum (Sat, 10 Apr 2021 13:16:53 GMT):
Can you answer this issue please? https://stackoverflow.com/questions/67018537/set-channel-policies-using-ca-affiliation-v2-2

alxspectrum (Sun, 11 Apr 2021 10:53:25 GMT):
How do I reference organizational Unit Identifier in configtx.yaml policies??

RonaldReagan (Mon, 12 Apr 2021 01:17:04 GMT):
Hi...In order to avoid conflict with personal data protection laws and personal data breaches, what are the ways you are handling users's login(blockchian wallet registration) and personal information on? Keeping it unanimous while maintaining transparency?

elmira (Mon, 12 Apr 2021 10:30:17 GMT):
Is it possible that transactions are not executed in the order we intend? (trouble at the business level). For example, Transaction 1 called an external service earlier than Transaction 2, but Transaction 2's response came earlier and changed the blockchain state, which causes a situation that we do not want. More precisely, are these external calls asynchronous, or are they in order and synchronous? I found out from the documentation that the transactions are asynchronous so, I think this may happen, but I did not find an example of it, and I do not know how to deal with this issue. When the block is sent to the validator nodes by orderers, are the transactions validated in order that they placed in block, or can they validate transactions asynchronously?

alxspectrum (Mon, 12 Apr 2021 11:46:30 GMT):
How do I reference organizational units in channel config policies? Org1MSP.department.client does not work.

vanitas92 (Mon, 12 Apr 2021 14:17:18 GMT):
Use the following guide as base start for your production deployment: https://hyperledger-fabric.readthedocs.io/en/release-2.2/deployment_guide_overview.html

conanoc (Tue, 13 Apr 2021 02:00:19 GMT):
I think Org1MSP.department.client will not work. You could make another MSP and use departmentMSP.client.

conanoc (Tue, 13 Apr 2021 02:09:09 GMT):
You can enroll or reenroll another certificate for the user. https://hyperledger.github.io/fabric-sdk-node/release-2.2/FabricCAServices.html#reenroll__anchor

conanoc (Tue, 13 Apr 2021 02:27:59 GMT):
It depends how you call transactions. If you call the transaction using synchronous API, then it will be processed synchronously. AFAIK, fabric-network API's are synchronous.

conanoc (Tue, 13 Apr 2021 02:29:47 GMT):
I don't understand your problem. Could you elaborate?

elmira (Tue, 13 Apr 2021 05:53:11 GMT):
Hi I have a question; I would be very grateful if someone could answer it. In Fabric, Read-Your-Write semantics are not supported. Hence, if a transaction reads a key value, the committed state's value is returned even if the transaction has updated the value for the key before issuing the read. Can we use mutual exclusion for our code's critical part to prevent invalid transactions resulting from outdated data due to a lack of support for Read-Your-Writing semantics? Or is there a better way, in your opinion?

conanoc (Tue, 13 Apr 2021 06:42:54 GMT):
Interesting question. We could use locks like this: https://redis.io/topics/distlock

elmira (Tue, 13 Apr 2021 07:11:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QbZTdZ3Ms826vhnAo) Thanks a lot for answering my questions. I just read a little bit about the Redsync package. I am coding in Golang in the fabric, and I used the sync package. The code works properly, but in some cases, it causes a deadlock. If I understand correctly, Redsync package ensures that the deadlock conditions do not occur. Did I get it right?

conanoc (Tue, 13 Apr 2021 08:32:29 GMT):
I'm not familiar with Redlock. I suggested it because it works in a distributed environment. Deadlock seems to be another issue and I think I cannot help you.

pjturley (Tue, 13 Apr 2021 10:32:01 GMT):
Has joined the channel.

pjturley (Tue, 13 Apr 2021 10:32:02 GMT):
Does anyone have any suggestions/recommendations on the following setup. We have two supply chain channels: Channel 1 consists of three ORGS - ORG 1 that provides products to ORG 2, who in turn provides products to ORG 3. Channel 2 consists of three ORGS - ORG 1 that provides products to ORG 2, who in turn provides products to ORG 4. We cannot write any information to either channel for products supplied by ORG1 until we know the final ORG in the supply chain, otherwise we could write ORG 1 products to Channel 1, which ultimately end with ORG 4 (so the products should be written to Channel 2). We do not want to write all data to one Channel, as that will merge the Supply Chains together, and they are not related in anyway, other than ORG 4 and ORG 3 having the same suppliers.

RonaldReagan (Wed, 14 Apr 2021 01:00:36 GMT):
How do we handle users' registration on the blockchain. Do you encrypt users' personal information? Most countries have a 'personal information protection laws'. So how do we protect users' data to prevent fines. Or How do avoid using user's personal information at all but still being able to identify them on the blockchain.

conanoc (Wed, 14 Apr 2021 02:23:11 GMT):
I'm still not sure why you want to store user's information on the blockchain. You could store only the user's ID and some non-personal information on the blockchain if you need. You can keep the personal information somewhere else.

RonaldReagan (Wed, 14 Apr 2021 05:49:33 GMT):
I made an nft blockchain app. I am using the user's email address, first name, and last name to identify nft user and also for CA registration.

RonaldReagan (Wed, 14 Apr 2021 05:53:04 GMT):
I feel is should not use these personal info. Yet an nft owner should be know thoughout the blockchain, to allow for transfers of nft and etc. That's the dilema. I could use a ramdom ID to represent an nft owner(instead of email address) but it could be hard to remember this.

conanoc (Wed, 14 Apr 2021 06:31:09 GMT):
Blockchain services usually stores pubkey to identify the owner of an asset. No personal information is needed because the owner can prove him with his digital signature. You could store the hash of the email address to verify that the owner of the email address is the owner of the NFT, while not revealing the email address on the blockchain. But, identification depending only on the email address seems to be very weak for NFT.

alxspectrum (Wed, 14 Apr 2021 10:54:57 GMT):
I mean using 1 MSP, docs say it is possible but not how

ckong (Fri, 16 Apr 2021 08:19:42 GMT):
I'm trying to restore the data from my production network onto my staging network using the method in https://medium.com/@jariarud/hyperledger-fabric-backup-and-restore-3263561e259e. I snapshot the `/var/hyperledger/production` data in the orderer and peer containers, then copy them to the same folders in my staging network. When I try to run the services I encounter `SIGSEGV` error: ```2021-04-16 07:44:23.075 UTC [orderer.common.server] TrackChain -> INFO 019 Adding internalar2test-channel to the set of chains to track panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xfb10d9] goroutine 1 [running]: github.com/hyperledger/fabric/protos/utils.GetMetadataFromBlock(0x0, 0xc000000001, 0x1006413, 0x0, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:55 +0x39 github.com/hyperledger/fabric/protos/utils.GetLastConfigIndexFromBlock(0x0, 0xc00053b7a0, 0xffffffffffffffff, 0x0) /opt/gopath/src/github.com/hyperledger/fabric/protos/utils/blockutils.go:75 +0x37 github.com/hyperledger/fabric/orderer/common/multichannel.ConfigBlock(0x7f204529bdf8, 0xc00053b7a0, 0x13fdf60) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:112 +0x74 github.com/hyperledger/fabric/orderer/common/multichannel.configTx(0x7f204529bdf8, 0xc00053b7a0, 0xc00053b7a0) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:125 +0x35 github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc0001a2000, 0xc000603440) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/multichannel/registrar.go:156 +0x151 github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(0xc000306d80, 0xc0004a9920, 0xc00041c980, 0x0, 0xc0001ba630, 0x2028b40, 0xc000464890, 0x2, 0x2, 0xc0004648a0, ...) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:692 +0x4a5 github.com/hyperledger/fabric/orderer/common/server.Start(0x1548ad2, 0x5, 0xc000226480) /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:190 +0xae8 github.com/hyperledger/fabric/orderer/common/server.Main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/common/server/main.go:91 +0x208 main.main() /opt/gopath/src/github.com/hyperledger/fabric/orderer/main.go:15 +0x20 ``` I tried copying the genesis block over as well, but didn't work. Any one has any insight into this?

ash_linuxfoundation (Fri, 16 Apr 2021 09:29:55 GMT):
Has joined the channel.

ash_linuxfoundation (Fri, 16 Apr 2021 09:29:56 GMT):
Hi

ash_linuxfoundation (Fri, 16 Apr 2021 09:30:20 GMT):
I am in process to install HLF 1.4.7 images & binaries on LinuxONE (s390x architecture). I have gone through the documentation however couldn't find the download binary for s390x. Can some please help me to provide the download link?

shubhamirpachi (Fri, 16 Apr 2021 10:22:38 GMT):
Thank you! I'll try that

elmira (Fri, 16 Apr 2021 16:18:36 GMT):
Hi, What kind of external services are we allowed to use in fabric? Can we use ATM APIs? For example, an external service is a bank ATM API, and our transaction is calling the ATM withdrawal operation. We have defined in our policies that four endorsers must approve it. When the endorser nodes call that external service, are the withdrawal operations performed four times separately? (so we have trouble in the commitment phase) I know that If the external returns different results for different endorsers, endorsement will fail. The commitment phase is a kind of simulation that does not update the read /write set. However, these external calls will withdraw money and change the bank account's balance outside the blockchain each time, so we cant use this API. Am I true? How can we handle external calls?

noorkhan_92 (Sun, 18 Apr 2021 00:50:21 GMT):
Hi, I am facing this error while running my project. The orderer get exit instantly with the following error message in the orderer logs. see config files from this repo in config folder https://github.com/noorkhan-92/supply-network. panic: unable to bootstrap orderer. Error reading genesis block file: open /etc/hyperledger/fabric/genesisblock: no such file or directory

noorkhan_92 (Sun, 18 Apr 2021 00:51:49 GMT):
I know this is very common error reported many times with different variation on stackoverflow but there is no satisfactory answer.

aim8526 (Mon, 19 Apr 2021 05:22:00 GMT):
Hi, how can we query Transaction by transaction id in Node-sdk 2.0+, cause channel class does not have getTransaction function in 2.0's implementation. Even I tried manual implementation by Querying *Qscc * chaincode but not able to parse data because not able to import BlockDecoder class from fabric-common nor fabric-network.

aim8526 (Mon, 19 Apr 2021 08:13:18 GMT):
How can we get Information from ledger like ChainInfo, BlockInformationByBlockNo, GetTransactionByID, etc....?

aim8526 (Mon, 19 Apr 2021 08:13:42 GMT):
i am using node-sdk version 2.3

roberto.cangiamila (Mon, 19 Apr 2021 09:01:53 GMT):
Good morning, i would like to fork release-1.4 repo to implement new feature: to Enable/disable filterBlock. How can i do that? Thanks

roberto.cangiamila (Mon, 19 Apr 2021 09:06:40 GMT):
sorry .. this is the repo: https://github.com/hyperledger/fabric-sdk-java

SoundaryaAyyappan (Mon, 19 Apr 2021 11:49:21 GMT):
Hi, I have a network with 2 channels (firstchannel and secondchannel). Firstchannel has orgs org1 and org2. Secondchannel has orgs org1 and org3. I am trying to remove org3 from secondchannel. I have followed the steps in the article https://kctheservant.medium.com/remove-an-organization-from-a-running-fabric-network-55f52cd0a012. Until the steps of signing the update_in_envelope.pb file, it has worked fine and I have done those steps from org1 cli. As next step, I tried to update the channel with the signed pb file, but it resulted in an error like "Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'secondchannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied". This update step also I have done it from org1's cli, since org3 has to be removed from secondchannel. Can anyone please explain me the cause of the error? Thanks in Advance!

shubhamirpachi (Mon, 19 Apr 2021 18:44:35 GMT):
`const { BlockDecoder } = require('fabric-common'); const network = await gateway.getNetwork(channelCode); const systemChaincodeName = 'qscc'; const transactionExecutor = await network.getContract(systemChaincodeName); let transactionDetails = await transactionExecutor.evaluateTransaction('GetTransactionByID', channelCode, trxnID); let response_payload = BlockDecoder.decodeTransaction(transactionDetails);` Try to do like this, it worked for me

shubhamirpachi (Mon, 19 Apr 2021 18:45:54 GMT):
#fabric-sdk-node

tnkhanh (Wed, 21 Apr 2021 03:57:15 GMT):
Has joined the channel.

tnkhanh (Wed, 21 Apr 2021 04:11:56 GMT):
hi, I just figured out chaincode lifecycle is controlled with magic of the "peer" binary. Is that it?

tnkhanh (Wed, 21 Apr 2021 04:12:40 GMT):
the tutorial is just some bash scripts that I need to dive deeper

Cyanide4Breakfast (Wed, 21 Apr 2021 06:19:10 GMT):
Has joined the channel.

Cyanide4Breakfast (Wed, 21 Apr 2021 06:19:11 GMT):
Hi, I'm new to Fabric and wanted to inquire if the following is possible to implement in Fabric: Let's say there are organizations which belong to different subjects such as Math, Science, English etc and each organization has one endorsing peer. Suppose a student proposes a transaction "Promote me to next grade", supplying his grade sheet and full year report. An endorsing peer of a subject only endorses it if the student has sufficient marks/no backlogs etc. in that subject. We make the restriction that the student needs the endorsement of all organizations (subjects) to pass i.e for the transaction to be distributed to all peers by ordering node. Is it possible to implement in Fabric, I'm confused because I read that chaincode needs to deterministic and if all peers have same chaincode then how will each subject configure its own evaluation criteria to pass the student?

ishi08 (Wed, 21 Apr 2021 10:53:36 GMT):
Has joined the channel.

ishi08 (Wed, 21 Apr 2021 10:53:46 GMT):
hyy all

ishi08 (Wed, 21 Apr 2021 10:53:48 GMT):
i am working on hyperledger-fabric and wanted to know that in changeCarOwner() in fabcar I want to change the owner, price with id . but when i tried using 3 parametrs in the function it shows me error as it can takes only two argumnts. Can anybody tell me how can I use 3 paramter insted (P.S- I am using go language in fabcar as well as i chaincode)....Guys plzz do reply if anybody knowa

ravishankar.gu (Wed, 21 Apr 2021 11:01:27 GMT):
Hi all, I'm trying to implement hsm with fabric2. 2 , softhsm2 installed generate pin config, and fabric ca generate image for pkcs11 , after changes all when faric2. 2 up with ca showing error : failed to get bccsp : could not initialize bccsp pkcs11 : instantiation failed for libsofthsm2.so

jbkal (Wed, 21 Apr 2021 16:25:41 GMT):
Has joined the channel.

tnkhanh (Thu, 22 Apr 2021 00:01:41 GMT):
hmm, I only see questions, no answers :woo:

knagware9 (Thu, 22 Apr 2021 09:44:42 GMT):
changecarowner function accept only two args. you need to write one more fucntion in chaincode that will accept three args id,owner & price.

knagware9 (Thu, 22 Apr 2021 09:46:20 GMT):
chaincode life cycle command need peer binay to execute lifecycle commands

knagware9 (Thu, 22 Apr 2021 09:50:31 GMT):
If I get correctly you need different business logic in each peer/org, yes its currently available in latest fabric 2.x release. Chaincode logic could be different just it should give same result.

knagware9 (Thu, 22 Apr 2021 09:51:41 GMT):
Chaincode packages do not need to be identical across channel members: Organizations can extend a chaincode for their own use case, for example to perform different validations in the interest of their organization. As long as the required number of organizations endorse chaincode transactions with matching results, the transaction will be validated and committed to the ledger. This also allows organizations to individually roll out minor fixes on their own schedules without requiring the entire network to proceed in lock-step. https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html

christophe.charles (Thu, 22 Apr 2021 17:42:29 GMT):
Has joined the channel.

Sachith.Liyanagama (Thu, 22 Apr 2021 21:03:16 GMT):
Has joined the channel.

Sachith.Liyanagama (Thu, 22 Apr 2021 21:03:22 GMT):
Hello everyone i am new to Hyperledger. I've created a basic blockchain using the Vscode ibm plugin and successfully created a chaincode as well. Now i am working on a java based rest api using the vscode liberty plugin. Apparently i can only use evaluate transaction command in the JAVA SDK. Submit transaction seems to be not working. Anyone knows a solution for this?

SoundaryaAyyappan (Fri, 23 Apr 2021 09:11:45 GMT):
Hi, I have a hyperledger fabric network (v2.2.0) with 3 orgs (org1, org2 and org3) and singlechannel (testchannel) deployed in a kubernetes cluster. Installing the chaincode gives me an error "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint". Can anyone explain me the cause of the error?

abheekmaitra (Fri, 23 Apr 2021 14:17:57 GMT):
Has joined the channel.

abheekmaitra (Fri, 23 Apr 2021 14:18:25 GMT):
Hello, is there an update on when the 2.3 version of Fabric will be a LTS release?

BrettLogan (Fri, 23 Apr 2021 16:16:25 GMT):
It will not be, a future 2.x release will be made LTS once the new features and API have stabalized

greg2git (Sat, 24 Apr 2021 12:14:55 GMT):
i was under the impression that 2.2.x was the new LTS release, 'stepping into' 1.4.x , so to speak

HanumantMule (Sun, 25 Apr 2021 07:13:02 GMT):
Has joined the channel.

HanumantMule (Sun, 25 Apr 2021 07:13:02 GMT):
Hi all, I am new to hyperledger fabric and I want to implement raft consensus protocol using latest version of fabric. As the sample github repo : https://github.com/IBM/raft-fabric-sample is not updated or maintained. So can anyone help me by providing link to sample project with multiple orderes or the updated version of above mentioned repository. Any leads would be appreciated.

ChristianArz (Sun, 25 Apr 2021 10:34:20 GMT):
Has joined the channel.

ChristianArz (Sun, 25 Apr 2021 10:34:33 GMT):
Hi All! I'm currently working on a hyperledger application using fabric-sdk-py. Is keep gettin grpc exceptions when trying to connect to a peer: grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.UNAVAILABLE details = "failed to connect to all addresses" debug_error_string = "{"created":"@1619345836.556000000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":5420,"referenced_errors":[{"created":"@1619345836.556000000","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":398,"grpc_status":14}]}" Would anyone be down to help or tell me what further info I need to provide?

skymatrix (Sun, 25 Apr 2021 10:42:01 GMT):
Has joined the channel.

skymatrix (Sun, 25 Apr 2021 10:53:16 GMT):
What is best consensus for national electronic voting system please

srikumarcs (Mon, 26 Apr 2021 08:50:37 GMT):
Hi All.. We are looking at building smart contracts in Kotlin language, even though its not officially a supported language. The reasons are - 1: It compiles down to Java bytecode.. So from a JVM point of view, its no different to java 2: Its a very expressive language with a much better type system than java. 3: Its got first hand support for functional programming constructs. So, the question I have is not about technical feasibility - coz I know its not a problem. The question is, does anyone see any other issues with this approach? Perhaps anything core to Hyperledger Fabric which might cause issues further down the line? Also, curious if anyone else has tried this before in a production set up? Thanks

knagware9 (Tue, 27 Apr 2021 05:00:54 GMT):
2.2 is LTS, Bret meant that new LTS could be 2.3 or 2.4 or any 2.x release

ymo 7 (Tue, 27 Apr 2021 18:25:02 GMT):
can you generate all the enrollment and registration from a cli without standing a fabric-ca-server and using a fabric-ca-client against it ?

Djx (Tue, 27 Apr 2021 20:10:00 GMT):
Has joined the channel.

Djx (Tue, 27 Apr 2021 20:10:55 GMT):
Posting here since it seems to be the place for "questions". I've successfully downloaded and ran the test network sample for fabric 2.3 and am now trying to piece together my own implementation. Can anyone refer me to a summary or graphical workflow of the network setup process? From what I can see, each org (peer1, peer2, and orderer) all create their own CAs and enroll members then build a channel profile which points to each other. Are the MSPs of the original organization and orderer all passed to each other "out of band" in order to set things up?

Djx (Tue, 27 Apr 2021 20:11:36 GMT):
The configtx.yaml implies that the orderer would have access to the MSP directories of the peers, or at least a copy of them. And in production (where they're not all running in the same folder), I don't quite understand how this is supposed to happen.

armmarov (Tue, 27 Apr 2021 23:30:00 GMT):

Clipboard - April 28, 2021 7:29 AM

armmarov (Tue, 27 Apr 2021 23:30:12 GMT):
hi guys i just want to confirm if this statement is correct

armmarov (Tue, 27 Apr 2021 23:30:26 GMT):
ANY Endorsement don't need majority right ?

armmarov (Tue, 27 Apr 2021 23:30:47 GMT):
any org endorse then the transaction is already accepted i assume

armmarov (Tue, 27 Apr 2021 23:31:08 GMT):
this is the link where the image come from -> https://hyperledger-fabric.readthedocs.io/en/release-2.2/create_channel/channel_policies.html

lijiachuan (Wed, 28 Apr 2021 03:56:25 GMT):
Hi everyone, I follow the setup test network guideline https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html And I tried to install the typescript chaincode with command `./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-typescript -ccl typescript`, but after execution this command, the chain code containers were exit with below errors: ``` Error: Cannot find module '/usr/local/src/dist/index.js' Require stack: - /usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js - /usr/local/src/node_modules/fabric-shim/lib/cmds/metadata/lib/generate.js - /usr/local/src/node_modules/fabric-shim/lib/cmds/metadata.js - /usr/local/src/node_modules/yargs/index.js - /usr/local/src/node_modules/fabric-shim/cli.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) at Function.Module._load (internal/modules/cjs/loader.js:864:27) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Function.getInfoFromContract (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js:77:23) at Function.bootstrap (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js:54:63) at Object.exports.handler (/usr/local/src/node_modules/fabric-shim/lib/cmds/startCommand.js:46:40) at Object.runCommand (/usr/local/src/node_modules/yargs/build/lib/command.js:196:48) at Object.parseArgs [as _parseArgs] (/usr/local/src/node_modules/yargs/build/lib/yargs.js:1043:55) at Object.get [as argv] (/usr/local/src/node_modules/yargs/build/lib/yargs.js:986:25) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/src/node_modules/fabric-shim/lib/contract-spi/bootstrap.js', '/usr/local/src/node_modules/fabric-shim/lib/cmds/metadata/lib/generate.js', '/usr/local/src/node_modules/fabric-shim/lib/cmds/metadata.js', '/usr/local/src/node_modules/yargs/index.js', '/usr/local/src/node_modules/fabric-shim/cli.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! asset-transfer-basic@1.0.0 start: `fabric-chaincode-node start "--peer.address" "peer0.org2.example.com:9052"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the asset-transfer-basic@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-04-28T03_38_12_700Z-debug.log ``` Does anyone encounter this issue before? Thanks.

knagware9 (Wed, 28 Apr 2021 05:15:02 GMT):
It seems you using ship package in fabric 2.2 chaincode. You should use fabric contract & context API for chaincode

knagware9 (Wed, 28 Apr 2021 05:16:07 GMT):
Endorsment policy defined at the chaincode level and it can be majority of org and any one org or even more complex as per requirement

davidkel (Wed, 28 Apr 2021 08:07:19 GMT):
Looks like the code was not compiled to typescript prior to deployment. See https://github.com/hyperledger/fabric-samples/blob/9db8164f049b78cf2df881ce24fac3ea7646a54d/test-network/scripts/deployCC.sh#L79

davidkel (Wed, 28 Apr 2021 08:07:19 GMT):
Looks like the code was not compiled to javascript prior to deployment. See https://github.com/hyperledger/fabric-samples/blob/9db8164f049b78cf2df881ce24fac3ea7646a54d/test-network/scripts/deployCC.sh#L79

ymo 7 (Wed, 28 Apr 2021 17:33:44 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/operations_guide.html ^^^ this page used to have an image but it seems to reference an ima in `images/network_topology.png` but that image seems to be missing

ymo 7 (Wed, 28 Apr 2021 17:33:44 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/operations_guide.html ^^^ this page used to have an image that is missing. it seems to reference `images/network_topology.png` but that image seems to be missing

RonaldReagan (Thu, 29 Apr 2021 05:12:34 GMT):
Hi developers, Would be a futile effort trying to build an NFT marketplace (just like opensea) with hyperledger fabric as the blockchian? My dilema, I build an NFT app using Hyperledger fabric. We don't have tokens(cryptocurrency) in hyperledger. I could enable payments using credit card, but we wanted a system of giving users' points and using point to pay for the nft. Is it possible to use any of the public blockchains just to enable payments in cryptos; while using hyperledger fabric to run the nft transactions? Is there any better option? Please help a dev out :innocent:

HLFPOC (Thu, 29 Apr 2021 17:06:13 GMT):
Hi All, I am trying to setup a fabric network (v2.3.1) in AWS EKS environment using chaincode as an external service but getting below error message after running the `peer lifecycle chaincode install` command: Error: ``` Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0-org1-mycc -4e09ca97183ec70be708a4db7bf87295adf37c86f5d991ad82024a27f5df8d80-4794d06c41d224a533fdc93cfa93ed46abc5c4e679d0a803ad908a7e62ddfe54/json": dial unix /var/run/docker.sock: connect: no such file or directory ``` As per https://lists.hyperledger.org/g/fabric/topic/77402508?p=Created,,,20,2,0,0::recentpostdate%2Fsticky,,,20,2,0,77402508, it seems this error is because of some update by Docker desktop and it can be resolved by switching off the gRPC FUSE settings, but not able to figure out what needs to be done in case of managed kubernetes cluster (v1.19 EKS). Can anyone suggest how we can fix this error ?

lijiachuan (Fri, 30 Apr 2021 02:32:02 GMT):
thanks @knagware9 and @davidkel for your reply. I followed the v2.2 documentation about the test network. Do you have any suggestion about how to resolve this issue? Thanks.

nizos (Fri, 30 Apr 2021 07:34:49 GMT):
I need help setting up some user permissions. I am lost on whether to use attributes, OU, roles or what and whether or not it is possible to implement using a single org. I want three types of users: admins, departments, employees. admins can do everything including registering all kinds of users (other admins, departments, and employees) and can perform minting and burning. departments can only register employee users and then can only mint but not burn. employees can not register users and they can't mint or burn.

nizos (Fri, 30 Apr 2021 07:35:35 GMT):
What is the best way to go about implementing this system? Is it possible to do it using affiliations? Also, can registered user have multiple affiliations?

amalendusuresh (Mon, 03 May 2021 03:48:10 GMT):
Hi, I'm facing user when I am implementing wallet and gateway in hyperledger fabric 2,0.. Could anyone help me with this? Im getting an error as couldnot find connection-org.yaml ... But I am not able to know what is to be written in the connection-org.yaml..

jital (Mon, 03 May 2021 06:25:45 GMT):
Valid point

jital (Mon, 03 May 2021 06:25:54 GMT):
thanks

chasecheese (Mon, 03 May 2021 13:57:45 GMT):
Hi, I'm using raft in fabric2.0, peers should pull blocks from a orderer using deliver, but which orderer the peer should trun to? Is there a defalult endpoints list?

Bolzo 1 (Tue, 04 May 2021 06:42:52 GMT):
Hi, I have a problem with my peers and orderers. I generated the certificates for the MSP using fabric CA but today the peers and orderers cannot start beacause the certificate are exipired, is there a solution?

DawoodJehangir (Tue, 04 May 2021 11:17:23 GMT):
Hi. I want to register a network entity (peer/admin/user) using Fabric CA API directly through POSTMAN i.e. /api/v1/register, can anyone please tell me which things are required in the Authorization part of this POST request? As per my research, authorization requires two things: an enrollment certificate (but of which entity???) and a signature over the certificate & body of request (do we need to put the base64 encoded certificate and JSON request body into a new file e.g. .txt file, and then produce a digital signature using Openssl and finally, convert it into base64 format?).

HansrajRami (Tue, 04 May 2021 16:13:16 GMT):
Hi all!! Is there any example reference for developing Fabric HSM plugin in golang??

cmhacker (Wed, 05 May 2021 08:40:18 GMT):
Is it possible to change orderer policies in running fabric network??

cmhacker (Wed, 05 May 2021 08:40:18 GMT):
Is it possible to modify orderer policies in running fabric network??

Bolzo 1 (Wed, 05 May 2021 10:59:07 GMT):
Hi, i need to update the orderer org admin of the system channel, it's expired but i managed to start the orderer and peer following FAB-18384. Now i need to update the channel configuration but I have no clue on what to modify and how, can someone help me?

canenas (Fri, 07 May 2021 07:39:41 GMT):
Hi all, most tutorials i've seen only have 1 peer orgs. Are there any more out there with 2-3 peer nodes per org?

canenas (Fri, 07 May 2021 08:46:02 GMT):
Also on a simpler situation with a single org single peer setup, i'm getting the following error when trying to invoke the chaincode from a nodejs client: ''''2021-05-07 08:40:00.584 UTC [discovery] chaincodeQuery -> ERRO c721e Failed constructing descriptor for chaincode chaincodes: ,: no peer combination can satisfy the endorsement policy '''

canenas (Fri, 07 May 2021 08:46:02 GMT):
Also on a simpler situation with a single org single peer setup, i'm getting the following error when trying to invoke the chaincode from a nodejs client: `2021-05-07 08:40:00.584 UTC [discovery] chaincodeQuery -> ERRO c721e Failed constructing descriptor for chaincode chaincodes: ,: no peer combination can satisfy the endorsement policy `

OMayma (Fri, 07 May 2021 09:20:46 GMT):
Has joined the channel.

OMayma (Fri, 07 May 2021 09:20:47 GMT):
Hello, I want to create a channel by the command ./network.sh createChannel but I got this error message : Failed to generate channel configuration transaction... ! I am new to HyperLedger Fabric. Can anyone help me, please?

pranjay (Fri, 07 May 2021 10:12:09 GMT):
Has joined the channel.

SoundaryaAyyappan (Fri, 07 May 2021 11:38:22 GMT):
Hi, I am trying to do backup and restore of a hyperledger fabric network v2.2.0. To test this, I used test-network of fabric release - https://github.com/hyperledger/fabric-samples/archive/refs/tags/v2.2.0.tar.gz. First I brought up the network, created the channel, deployed CC and performed invoke, query. Then I took backup by following the article - https://www.devprovider.com/how-to-take-backup-from-hyperledger-fabric. Once done with the backup, I have deleted the network. Then I tried to restore from the backup data (crypto-materials of orderer, peers, channel-artifacts, peer data and the orderer data). I confirmed that the restoration was successful by comparing the channel height from the network I have deleted and the restored network. It was 8 at the time when I took backup. So to check if everything is working from Chaincode perspective, I have tried query which resulted in error, *Error: endorsement failure during query. response: status:500 message:"error in simulation: failed to execute transaction 392e33eaadd537650590479036a1018946dcbbebaf3d55cbddb288e243485e80: could not launch chaincode basic_1.0:4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad: error starting container: error starting container: API error (404): network _test not found"* Same error for invoke. Can anyone please guide me on how to overcome the failure of CC invoke and query? Thanks in Advance

zeminzhou (Fri, 07 May 2021 12:41:22 GMT):
Why is the throughput of Fabric measured by caliper only 4? 4 orderers with Smart-BFT consusen, 1 peer

yacovm (Fri, 07 May 2021 12:50:34 GMT):
what branch did you use?

yacovm (Fri, 07 May 2021 12:59:52 GMT):
in BFT, the nodes do not forward transactions immediately to the leader

yacovm (Fri, 07 May 2021 12:59:57 GMT):
you need to send to the leader

yacovm (Fri, 07 May 2021 13:00:07 GMT):
Unlike in Raft where you send to any node

yacovm (Fri, 07 May 2021 13:00:15 GMT):
in BFT you need to send to the leader or to everyone

zeminzhou (Fri, 07 May 2021 13:52:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=P4AGJbjYCQBEAyWc5) yes, it worked, thinks

AidanJones (Fri, 07 May 2021 22:16:35 GMT):
Has joined the channel.

deepaks (Sun, 09 May 2021 20:24:32 GMT):
Hi, How can we run cryptogen and other binaries on mac M1?

davidkel (Tue, 11 May 2021 09:00:03 GMT):
There are no published binaries for apple silicon and no plans that I know of, but contributions welcome to add support for it. I'm curious though, can rosetta 2 be used to run them ?

elmira (Wed, 12 May 2021 07:16:44 GMT):
Hi, Please give your opinion about the following, thank you Suppose our smart contract deducts $ 100 for each call from someone's account and returns true to who calls it. Now, if the three endorsers have to execute the smart contract, they deduct three-time, and they have all see the same result that is true, but we deduct three-time from that account, and it is not what we want. What will be the transaction life cycle? Is it deducted from the account all three times? I know that the endorsement phase is a simulation, meaning that no world state changes, but how does this happen because we are deducted from the account to execute each request? I want to know how the endorsement phase behaves with this contract scenario exactly.

adam0000345 (Wed, 12 May 2021 07:36:28 GMT):
Not sure if this would be the best place to post this but my team and I are on a mission to democratize the creation and understanding of smart contracts. To do this we have developed a visual programming language called Loki that should allow for rapid prototyping. https://www.lokicode.io

jimwheaty (Wed, 12 May 2021 09:38:42 GMT):
Has joined the channel.

DawoodJehangir (Wed, 12 May 2021 14:18:34 GMT):
Hi. I want to register a network entity (peer/admin/user) using Fabric CA API directly through POSTMAN i.e. /api/v1/register, can anyone please tell me which things are required in the Authorization part of this POST request? As per my research, authorization requires two things: an enrollment certificate (but of which entity???) and a signature over the certificate & body of request (do we need to put the base64 encoded certificate and JSON request body into a new file e.g. .txt file, and then produce a digital signature using Openssl and finally, convert it into base64 format?).

BrettLogan (Thu, 13 May 2021 23:26:45 GMT):
We've tested this, you can in fact use Rosetta, but with the latest branch of fabric you can also build the binaries natively on M1 now, we just don't maintain the arm binaries in official channels.

sa905746066 (Fri, 14 May 2021 05:12:48 GMT):
I ran into a problem with the Fabric -Go-SDK. For the same client code and smart contract, this error occurs when I have multiple organizations in my channel and it works fine when I have only one organization in my channel

sa905746066 (Fri, 14 May 2021 05:13:06 GMT):

YZ[L9HTK7E5~C[[T2QP~{8Q.png

BrettLogan (Sun, 16 May 2021 21:15:16 GMT):
Correct, your peers from separate orgs are arriving at different values in their chaincode execution. When you have only one org, this is no second org to compare it against in your endorsement policy. Check what you chaincode is doing, and what might cause your chaincode results to differ across orgs

kaakuu9 (Tue, 18 May 2021 02:56:20 GMT):
Has joined the channel.

kaakuu9 (Tue, 18 May 2021 02:56:44 GMT):
hi everyone! i try to enrollAdmin into test network and i've next error [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]. How to solve this error? thanks!

amalendusuresh (Tue, 18 May 2021 03:51:39 GMT):
Hi I had a running fabric network in my local ubuntu in kubernetes , I have migrated the network to the Azure Kubernetes with the same files and bring up all the pods using the kubectl command and it is the only method I can interact with AKS there is no SSH access to the cluster or the worker nodes in AKS. I am stuck with running the fabricSDK in AKS, Anyone suggest me the method to run the fabricSDK in Azure kubernetes .

cmhacker (Tue, 18 May 2021 05:14:19 GMT):
Check Your CA is running on 7054 port. If it's running make sure your port is expose on firewall.

canenas (Tue, 18 May 2021 18:23:46 GMT):
I have a question with regards to how an skd fabric client works. nodejs SDK specifically. In a multiorg network, does the connection profile need to specify details about peers of every organisation or by having discovery on, when I connect to an endorsing peer of a single organisation, with discovery set to true, i'll get details about the rest of the peers on all organisations?

canenas (Tue, 18 May 2021 18:23:46 GMT):
I have a question with regards to how an skd fabric client works. nodejs SDK specifically. In a multiorg network, does the connection profile need to specify details about peers of every organisation or by having discovery on, when I connect to a peer, with discovery set to true, i'll get details about the rest of the peers in the channels that peer is a member of, even if they belong to different orgs?

davidkel (Tue, 18 May 2021 21:38:40 GMT):
might be worth asking on #fabric-sdk-node

Rajatsharma (Wed, 19 May 2021 21:17:43 GMT):
Try using calliper and improve the chaincode.

canenas (Wed, 19 May 2021 22:53:33 GMT):
Should I be able to see the anchorpeers if i decode the genesis block? I'm having issues with the anchor peers and I'm under the impression that they aren't generated properly from my configtx.yaml.

yacovm (Wed, 19 May 2021 23:37:47 GMT):
@canenas the anchor peers should be added after genesis creation

yacovm (Wed, 19 May 2021 23:39:11 GMT):
https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/scripts/utils.sh#L71-L92

canenas (Thu, 20 May 2021 00:13:57 GMT):
@yacovm Thanks! Yes they should you are very right. I'm on 2.2 but it seems it's still the same. (although documentation says that configtxgen outputAnchorPeersUpdate will be deprecated at some point)

kaakuu9 (Thu, 20 May 2021 03:52:48 GMT):
thanks for your answer, I already solved the problem. Regards!

yacovm (Thu, 20 May 2021 10:36:44 GMT):
Yes it's the same @canenas

RafaelAPB (Thu, 20 May 2021 19:22:14 GMT):
Hello people! Does anybody knows what is the "- &Org3" reference in configtx.yaml (add org3)?

Vgkmanju (Tue, 25 May 2021 08:45:06 GMT):
Hi I am using hyperledger fabric 2.2 with 3orgs, 5 orderers and 3 channels. I used raft orderering service for my deployment. In the nodejs server config file, I have mentioned all the 5 orderers certs under orderers like the following, orderer1.example.com orderer2.example.com orderer3.example.com orderer4.example.com orderer5.example.com For testing how the raft consensus working, I stopped orderer2 and orderer3. The leader election goes fine and allocate a lead for each channel. When I stopped 3 out of 5 orderer, it is not working why because, it is not statisfying quorum. When I stopped one orderer out of 5 which is orderer1, I got service unavailable connection deadline exceed error. Why the node server always takes the first orderer in the list? If the first orderer goes down, it can take second, or some other orderer which are listed there but it is not doing that. Can anyone suggest how to configure that? Why it is happening? Thanks in Advance.

gut (Tue, 25 May 2021 16:48:19 GMT):
"deadline exceed error" is due to RPC, because you're getting no response from the server. Which is logical if the orderer1 is down. On the other hand, for the ordering not working I'd sugest (just trying to help) to review your channel configuration. I assume that orderer configuration, certs and orderer system channel are OK because they work when all up.

GeorgePals (Tue, 25 May 2021 17:58:24 GMT):
Hello! I have an issue with my nodejs client. I'm trying to connect with the Blockchain, but I'm getting a "PEM encoded certificate is required." error. Here you can see the codes: ``` const x509Identity = { credentials: { certificate: enrollment.certificate, privateKey: enrollment.key.toBytes() }, mspId: orgMspId, type: 'X.509' }; ``` ``` await gateway.connect(this.ccp, this.opts); --> this.opts is a {} which holds the identity, wallet, discovery ``` My CCP is very simple. I only hold the connection info, without any PEM (tlsca etc.) files The identity is saved successfully under the wallet and, yep, the file is ok. The structure of the file is: ``` { "credentials": { "certificate": "", "privateKey": "" }, "mspId": "", "type": "X.509 } ``` Any ideas? Thanks!

GeorgePals (Tue, 25 May 2021 17:58:24 GMT):
Hello! I have an issue with my nodejs client. I'm trying to connect with the Blockchain, but I'm getting a "PEM encoded certificate is required." error. Here you can see the codes: ``` const x509Identity = { credentials: { certificate: enrollment.certificate, privateKey: enrollment.key.toBytes() }, mspId: orgMspId, type: 'X.509' }; ``` ``` await gateway.connect(this.ccp, this.opts); --> this.opts is a {} which holds the identity, wallet, discovery ``` My CCP is very simple. I only hold the connection info, without any PEM (tlsca etc.) files The identity is saved successfully under the wallet and, yep, the file is ok. The structure of the file is: ``` { "credentials": { "certificate": "", "privateKey": "" }, "mspId": "", "type": "X.509" } ``` Any ideas? Thanks!

GeorgePals (Tue, 25 May 2021 17:58:24 GMT):
Hello! I have an issue with my nodejs client. I'm trying to connect with the Blockchain, but I'm getting a "PEM encoded certificate is required." error. Here you can see the codes: ``` const x509Identity = { credentials: { certificate: enrollment.certificate, privateKey: enrollment.key.toBytes() }, mspId: orgMspId, type: 'X.509' }; ``` ``` await gateway.connect(this.ccp, this.opts); --> this.opts is a {} which holds the identity, wallet, discovery ``` My CCP is very simple. I only hold the connection info, without any PEM (tlsca etc.) files The identity is saved successfully under the wallet and, yep, the file is ok. The structure of the file is: ``` { "credentials": { "certificate": "", "privateKey": "" }, "mspId": "", "type": "X.509" } ``` Here is my wallet: ``` { providerRegistry: IdentityProviderRegistry { providers: Map(1) { 'X.509' => [X509Provider] } }, store: FileSystemWalletStore { storePath: '/usr/src/api/wallets/user0' } } ``` Any ideas? Thanks!

IshaChaudhary (Tue, 25 May 2021 18:13:19 GMT):
Has joined the channel.

IshaChaudhary (Tue, 25 May 2021 18:13:20 GMT):
Hi! If I have a Fabric system with 4 orgs, 3 channels and I want to maintain a global world state to capture the details of all the transactions in all channels in that, how should I go about implementing it?

IshaChaudhary (Tue, 25 May 2021 18:15:35 GMT):
I want to sequence my transactions in the network according to the state of the asset, for which I think that the global world state might be useful

IshaChaudhary (Tue, 25 May 2021 18:15:55 GMT):
Any pointers on this will be very helpful. Thanks in advance.

davidkel (Tue, 25 May 2021 19:17:02 GMT):
suggest you post this to #fabric-sdk-node as it's more appropriate there

GeorgePals (Tue, 25 May 2021 19:23:10 GMT):
Thanks =)

canenas (Tue, 25 May 2021 23:44:43 GMT):
hi all I'm looking at metrics but i'm a bit lost. Apart from caliper or manually counting transactions per second is it possible to measure it from the orderer/peer stats?

AswathK (Wed, 26 May 2021 04:01:02 GMT):
Hai all. i am using 2.3 fabric version. i am facing error when peer channel update command to sign the update as the Org3 admin before submitting it to the orderer. this is the error i got when run the cmd root@ashii-pc:/home/fabric-samples/test-network# peer channel update -f anchor_update_in_envelope.pb -c channel1 -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2021-05-26 09:11:21.406 +0530 [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channel1': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1

knagware9 (Wed, 26 May 2021 15:10:07 GMT):
@Vgkmanju there is connection profile file where we add orderer endpoints and we need to add other orderer endpoints there and then node server should check from available list of oderer endpoints if first in the list not working.

knagware9 (Wed, 26 May 2021 15:14:14 GMT):
its not clear what is your requirement, but channel is separate ledger/blockchain in fabric terminologies so there would be three different world state for each channel,I am not sure what you talking about global world state for all channels and trx

RobertBetschinger (Fri, 28 May 2021 10:21:48 GMT):
Has joined the channel.

garyclark (Fri, 28 May 2021 20:34:10 GMT):
The version is at 1 and not version 0. Restart everything again. Looks like mixed versions.

canenas (Sat, 29 May 2021 21:49:19 GMT):
Hi all. What can be done to reduce transaction size? If all certificates from all endorsing nodes are kept , it can become quite large for multiorganisation setups. I'm seeing transactions to the size of 100s of kb.

sj1 4 (Sun, 30 May 2021 15:20:52 GMT):
Has joined the channel.

Shweta1 (Mon, 31 May 2021 13:24:34 GMT):
Has joined the channel.

HarshMultani (Tue, 01 Jun 2021 03:00:06 GMT):
Has joined the channel.

hs2361 (Tue, 01 Jun 2021 04:23:20 GMT):
Has joined the channel.

MaxFlowO2 (Tue, 01 Jun 2021 04:43:48 GMT):
Has joined the channel.

scmanjarrez (Wed, 02 Jun 2021 09:25:17 GMT):
hi, is it possible to get a list of identities of an organization? I want a list of public keys or at least, based on a given user, get his public key.

nkalichynskyi (Wed, 02 Jun 2021 15:24:54 GMT):
If you are using Fabric CA then you can get a list of identities using https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/clientcli.html

Skander_m (Wed, 02 Jun 2021 15:26:52 GMT):
Has joined the channel.

Skander_m (Wed, 02 Jun 2021 15:26:54 GMT):
Hi everyone, I'm new to hyperledger fabric and I have to create a demo app for a healthcare solution. I've watched many tutorials and still don't fully grasp the concept of membership or participants and channels. Is it a good idea to have a channel per patient that contains all his states ? Doctors, and different Institutions will be given access to that channel to read patient data and update their states.

HarshMultani (Thu, 03 Jun 2021 02:44:00 GMT):
Hi Everyone.

HarshMultani (Thu, 03 Jun 2021 02:44:12 GMT):
I am trying to create a fabric application using node. And so from the /fabric-samples/test-network directory, when I run the command - ./network.sh up. It starts the network and then the orderer is running on port 7053. Now, when I run the command - ./network.sh createChannel -c channel1 -ca It outputs, Error: Post "https://localhost:7053/participation/v1/channels": read tcp 127.0.0.1:60864->127.0.0.1:7053: read: connection reset by peer Channel creation failed Why is it occuring and how can it be resolved?

HarshMultani (Thu, 03 Jun 2021 02:45:24 GMT):
I researched about this on github/stackoverflow. But could not get any answers.

Quek (Thu, 03 Jun 2021 08:20:31 GMT):
Hi, anyone can suggest a good tutorial on hyperledger caliper?

Quek (Thu, 03 Jun 2021 08:20:54 GMT):
I would like to try how to setup with my hyperledger fabric network as performance measurement

Quek (Thu, 03 Jun 2021 08:20:54 GMT):
I would like to setup with my hyperledger fabric network as performance measurement

davidkel (Thu, 03 Jun 2021 08:41:13 GMT):
caliper has a tutorial here https://hyperledger.github.io/caliper/v0.4.2/fabric-tutorial/tutorials-fabric-existing/

Kirill_27 (Thu, 03 Jun 2021 13:04:42 GMT):
Has joined the channel.

Kirill_27 (Thu, 03 Jun 2021 13:05:05 GMT):
Hi guys, I have a HLF network with one orderer1 I want to add orderer2 to the system channel, but I get the following error: "Error: got unexpected status: BAD_REQUEST - error applying config update to existing channel 'system-channel': consensus metadata update for channel config update is invalid: verifying tls client cert with serial number 155150519166214528079313052098845916596083808282: x509: certificate signed by unknown authority" although tls certificates for orderer2 were issued by the same certification authority as for orderer1. Also, both orderers belong to the same organization, what may be the problem, please tell me.

Jannoshh (Thu, 03 Jun 2021 16:02:32 GMT):
Has joined the channel.

Unicow (Fri, 04 Jun 2021 14:22:41 GMT):
Hello everyone, I would like to deploy HLF on GCP. Are there any links/tutorials that I can follow? Thank you

greg2git (Sun, 06 Jun 2021 16:23:49 GMT):
i didn't try it myself, but i heard Azure has a good fabric platform unless it has been deprecated

pmorrall (Sun, 06 Jun 2021 18:44:11 GMT):
Has joined the channel.

Unicow (Sun, 06 Jun 2021 18:50:41 GMT):
Thank you! I think it's still supported, but I would prefer GCP.

scmanjarrez (Mon, 07 Jun 2021 11:07:38 GMT):
thank you very much

scmanjarrez (Mon, 07 Jun 2021 11:09:22 GMT):
Do I need to pass --signature-policy to peer lifecycle chaincode approveformyorg command? I've already declared it in collection_config.json (I'm following https://hyperledger-fabric.readthedocs.io/en/release-2.0/private_data_tutorial.html tutorial)

nkalichynskyi (Mon, 07 Jun 2021 11:14:09 GMT):
Fabric is checking validity of the cert by comparing signature with CA certificate stored in the file system. In your case if you have PKI service with multiple CA servers then cert for the new order can be signed by different CA cert. Also you need to have on the FS exact CA certificate used to sign your certs, not the root cert of higher level if such exists.

scmanjarrez (Mon, 07 Jun 2021 11:20:39 GMT):
Do I need to pass --signature-policy to peer lifecycle chaincode approveformyorg command? I've already declared it in collection_config.json (I'm following https://hyperledger-fabric.readthedocs.io/en/release-2.0/private_data_tutorial.html tutorial)

nkalichynskyi (Mon, 07 Jun 2021 11:24:08 GMT):
Probably not. You can end up with thousands of channels, this can impact performance and can be really hard to manage. You can look into https://hyperledger-fabric.readthedocs.io/en/release-2.2/private-data/private-data.html and use separate PVC per patient. You will probably have to use PVC for privacy and regulation compliance reasons since this is healthcare project and you will be storing patient data.

yacovm (Mon, 07 Jun 2021 12:05:15 GMT):
@kopaygorodsky

rbgtk (Mon, 07 Jun 2021 16:23:07 GMT):
Has joined the channel.

PulkitSarraf (Tue, 08 Jun 2021 12:46:51 GMT):
Hi Guys I am trying to update the anchor peer in my network which is setup on HLF 2.2.0 but when i update it using peer channel update command it gives me error: *Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'globalchannel': error authorizing update: error validating DeltaSet: invalid mod_policy for element [Group] /Channel/Application/wakandiMSP: mod_policy not set* Please help me out to figure out this. Thanks in advance

knagware9 (Tue, 08 Jun 2021 15:21:16 GMT):
@nkalichynskyi @Skander_m Private collection is also not good approach because in that case we need Org per Patient and which is very costly efforts.

zwindl (Wed, 09 Jun 2021 08:15:10 GMT):
Hi, friends, anyone knows how to metric the duration of the generation of a block with prometheus?

nkalichynskyi (Wed, 09 Jun 2021 09:17:52 GMT):
@knagware9 why would you need Org per patient? Although private data collections have limited access control but if channel access controls suits you there is high probability that private data approach will also work. Another limitation I can think of is that you would need to update chaincode definition every time you need to add a patient and in turn create new collection, although it's still simpler then creating a channel. I'm not advocating for private data approach, just trying to understand this case.

knagware9 (Wed, 09 Jun 2021 12:50:01 GMT):
if you want to use private data then you need org per patient

nkalichynskyi (Wed, 09 Jun 2021 12:59:27 GMT):
@knagware9, can you please elaborate why such case would require org per patient? Our team also has a case that might require multiple private collections. I'd like to understand reasoning behind org per patient. Maybe we would have to reconsider our approach as well.

knagware9 (Wed, 09 Jun 2021 13:01:44 GMT):
see how private data defined - "name": "Org1MSPPrivateCollection", "policy": "OR('Org1MSP.member')", "requiredPeerCount": 0, "maxPeerCount": 1, "blockToLive":3, "memberOnlyRead": true, "memberOnlyWrite": false, "endorsementPolicy": { "signaturePolicy": "OR('Org1MSP.member')" }

knagware9 (Wed, 09 Jun 2021 13:02:01 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/private_data_tutorial.html

knagware9 (Wed, 09 Jun 2021 13:02:34 GMT):
The Org1MSPPrivateCollection collection allows only peers of Org1 to have the private data in their private database, while the Org2MSPPrivateCollection collection can only be stored by the peers of Org2.

nkalichynskyi (Wed, 09 Jun 2021 13:13:11 GMT):
ok, but or example `assetCollection definition specifies that both Org1 and Org2 can store the collection on their peers.`. So data can be scored on peers of any participating organization. So in this case with healthcare app chaincode can be created with let's say 10 initial patients with separate private data collection for each of them. And this chaincode would be running on and storing data on let's say hospital org peers. Wouldn't this work?

knagware9 (Wed, 09 Jun 2021 13:15:42 GMT):
I mean to say private data at org level not user level,

yadavajita (Wed, 09 Jun 2021 15:38:38 GMT):
Has joined the channel.

yadavajita (Wed, 09 Jun 2021 15:38:39 GMT):
Hello All, I am trying to design fabric architecture for my organization and not able to find answers to following issue. There are multiple organizations which will communicate over multiple channels along with private data in each peer of organization. Main organization wants to access all ledger data along with private data. Is there any possible way to get access to all existing ledger as well as private data? Can someone please help with this.

ikegawa.koshi (Wed, 09 Jun 2021 15:43:00 GMT):
Has joined the channel.

zeminzhou (Thu, 10 Jun 2021 02:52:25 GMT):
hi guys I have a question about CA. I understand that every organization in the fabric has a CA, and no database is shared between CAs.

zeminzhou (Thu, 10 Jun 2021 02:53:48 GMT):
“https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#overview”, But said in it "All Hyperledger Fabric CA servers in a cluster share the same database for keeping track of identities and certificates. "

zeminzhou (Thu, 10 Jun 2021 02:55:29 GMT):
"A cluster" means a cluster within an organization?

nkalichynskyi (Thu, 10 Jun 2021 06:07:55 GMT):
so in this case such solution would be possible, where new private data collection is created for every patient?

Unicow (Thu, 10 Jun 2021 11:53:31 GMT):
Hi all, Do you have any idea what does this mean while starting the orderer ? ```panic: Failed validating bootstrap block: the block isn't a system channel block because it lacks ConsortiumsConfig```

knagware9 (Thu, 10 Jun 2021 11:58:29 GMT):
that main org should be part of every channel in network and as well part of all private data collection , I think thats way :)

knagware9 (Thu, 10 Jun 2021 12:00:34 GMT):
here cluster of fabric ca servers means if you need more security then could be have one root ca that have other child CAs to issue MSP & user credentials to work with fabric network

knagware9 (Thu, 10 Jun 2021 12:02:02 GMT):
it means orderer is not starting because it didn't find valid system channel block

Unicow (Thu, 10 Jun 2021 12:09:41 GMT):
ok, problem solved, I was using old version of the configtxgen command to create the genesis.block file

knagware9 (Thu, 10 Jun 2021 12:13:04 GMT):
ok

jpramirez (Fri, 11 Jun 2021 07:23:10 GMT):
Has joined the channel.

SoundaryaAyyappan (Fri, 11 Jun 2021 09:28:36 GMT):
Hi Everyone, Currently I am testing a Disaster Recovery Scenario - Restoring a whole hyperledger fabric network using the kubernetes recovery tool - Velero. Consider my network has 1 orderer organization (3 orderers) and 2 peer organizations (with 2 peers [peer0, peer1] each). The orderer organization and the peer org with one peer are deployed in Cluster A. The second peer in each peer org is deployed in Cluster B. The version of fabric is v2.2.0 and the baf release used is v0.8.1.0. I am able to successfully restore the fabric network deployed in Cluster A in an another new cluster (Cluster C) and network deployed in Cluster B is restored in another cluster (Cluster D). Though the channel height is same in all the peers after the restoration, when I tested invoke, out of 4 peers, only 3 peers got updated with the new data (peer1 of org1 is not committed with the new block). The peer1 of org1 has channel height as 12, but the actual height is 13 which is observed correctly in other peers (peer0org1, peer0org2, peer1org2). So I did scale down the statefulset of peer1org1, then scaled up. While coming up, I can see in the peer logs that 14th block got committed to this peer. Then I checked the channel height from peer1 org1, it got updated and the result is 13. Then I tested 3 invokes, those invoked data got updated in all the peers. But can anyone explain me the cause of why the non-sync of data happened in a peer after restoration?

SoundaryaAyyappan (Fri, 11 Jun 2021 09:28:36 GMT):
Hi Everyone, I have a network with 1 orderer organization (3 orderers) and 2 peer organizations (with 2 peers [peer0, peer1] each). The orderer organization and the peer org with one peer are deployed in Cluster A which is in East US region. The second peer in each peer org is deployed in Cluster B (West US). The version of fabric is v2.2.0 and the BAF release used is v0.8.1.0. I am able to successfully restore the fabric network deployed in Cluster A in an another new cluster (Cluster C - East US) and network deployed in Cluster B is restored in another cluster (Cluster D - West US). Though the channel height is same in all the peers after the restoration, when I tested invoke, out of 4 peers, only 3 peers got updated with the new data (peer1 of org1 is not committed with the new block). The peer1 of org1 has channel height as 12, but the actual height is 13 which is observed correctly in other peers (peer0org1, peer0org2, peer1org2). So I did scale down the statefulset of peer1org1, then scaled up. While coming up, I can see in the peer logs that 14th block got committed to this peer. Then I checked the channel height from peer1 org1, it got updated and the result is 13. Then I tested 3 invokes, those invoked data got updated in all the peers. But can anyone explain me the cause of why the non-sync of data happened in a peer after restoration?

SoundaryaAyyappan (Fri, 11 Jun 2021 11:15:25 GMT):
I deployed a network with version 2.2 with 1 orderer org and 2 peer org. For High Availability I deployed the 2nd peer of a each peer organization in a different kubernetes cluster. Sometime I face an issue that the peer2(cluster 2) would not sync correctly with the peer1(cluster 1). When I say it did not sync correctly, the peer2 will only have the genesis block and will not pull the rest of the blocks. If I restart the peer2 sometimes it starts syncing correctly, sometime I have to restart the peer1 to make it work. Although we have a workaround to make it work, the behaviour does not look correct. How can I make the data in sync between peer1 and peer2. I use the project BAF - git@github.com:hyperledger-labs/blockchain-automation-framework.git to make the deployment work as above

scmanjarrez (Fri, 11 Jun 2021 12:19:02 GMT):
Can I use a "empty" collections_config.json file? When I try to run the ApproveDefinition command, I get Error: invalid collection configuration in file cc/collections_config.json: invalid policy : Unexpected end of expression I'm not using collections, I using PutState

scmanjarrez (Fri, 11 Jun 2021 12:19:02 GMT):
Can I use an "empty" collections_config.json file? When I try to run the ApproveDefinition command, I get Error: invalid collection configuration in file cc/collections_config.json: invalid policy : Unexpected end of expression I'm not using collections, I using PutState

yadavajita (Fri, 11 Jun 2021 12:28:28 GMT):
But if there are so many organizations then there will be limitations to be part of each channel.

scmanjarrez (Fri, 11 Jun 2021 12:38:42 GMT):
Removing --collections-config flag did the job.

tac911 (Fri, 11 Jun 2021 14:32:04 GMT):
Why does this limitation exist in Fabric? It limits the development of smart contracts that can be called by other contracts. Listening to events defined in the called-contract is not possible and it requires to listen to the outer-most contract, which could be complicated if there are multiple ones. Anyone has an idea how to overcome this? https://hlf.readthedocs.io/en/latest/developapps/transactioncontext.html#stub setEvent(): Smart contracts use this API to add an event to a transaction response. Note that only a single event can be created in a transaction, and must originate from the outer-most contract when contracts invoke each other via invokeChaincode. ...

Skander_m (Fri, 11 Jun 2021 15:40:08 GMT):
Thank you for answering, I didn't see the thread lol. I'm still confused, My solution should be GDPR compliant, that's why I'm thinking of PVC (and they exist to prevent creating multiple channels). Plus patients are kind of independent from any organization. I don't know what would be the solution in such a use case.

vijaygopal (Fri, 11 Jun 2021 19:38:25 GMT):
Is it possible to use Couchbase as state database in Hyperledger instead of CouchDB ?

knagware9 (Sat, 12 Jun 2021 17:50:41 GMT):
yes,

tusharbansal (Sun, 13 Jun 2021 18:31:32 GMT):
Has joined the channel.

Unicow (Mon, 14 Jun 2021 10:24:24 GMT):
Hi, I have the same issue. Where did you change the port?

Unicow (Mon, 14 Jun 2021 12:03:25 GMT):
Hi guys, any ideas what does the following error mean? ``` Error: Post "https://orderer:30004/participation/v1/channels": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00 ``` This happens when I try to join the channel using the `osnadmin` command: ``` osnadmin channel join --channel-id=$CHANNEL_NAME --config-block ./channel-artifacts/${CHANNEL_NAME}.block -o orderer:30004 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY" ```

longdoan7421 (Mon, 14 Jun 2021 14:02:09 GMT):
Has joined the channel.

Gavimat (Mon, 14 Jun 2021 18:53:22 GMT):
Has joined the channel.

Gavimat (Mon, 14 Jun 2021 18:53:22 GMT):
Hey guys, I've been facing the following issue:

Gavimat (Mon, 14 Jun 2021 18:53:22 GMT):
Hey guys, I've been facing the following issue: '''' $ ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /c/Users/mathe/go/src/github.com/gavimat/fabric-samples/bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /c/Users/mathe/go/src/github.com/gavimat/fabric-samples/bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## + configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2021-06-14 12:08:18.232 -03 [common.tools.configtxgen] main -> FATA 001 Missing channelID, please specify it with '-channelID' + res=1 + set +x Failed to generate orderer genesis block... '''' Any ideas on how to fix it?

alxspectrum (Tue, 15 Jun 2021 09:10:27 GMT):
Hey guys I have a question, reenrolling with Node SDK requires SigningIdentity. The Signing Identity Object has a the .signer (Signer) property. Does this property contain the user's raw private key? If yes, the private key is sent with the request to the CA server which does not make sense. Is there a workaround for this?

sanket1211 (Tue, 15 Jun 2021 10:10:03 GMT):
Issue while Upgrading fabric from 1.4.4 to 2.2 we are able to update peer and orderer components to the latest version but while updating the channel capababilities to fetch the config block,peers are not able to connect with the orderer Error: could not not connect to ordering service:could not dial endpoint:dial tcp:lookup orderer.example.com on 192.168.0.1:53 :no such host channel=mychannel attaching the logs for more details

sanket1211 (Tue, 15 Jun 2021 10:10:15 GMT):

Screenshot from 2021-06-14 14-39-30.png

sanket1211 (Tue, 15 Jun 2021 10:10:16 GMT):

Screenshot from 2021-06-14 14-39-41.png

subhasisb (Tue, 15 Jun 2021 10:19:23 GMT):
Has joined the channel.

subhasisb (Tue, 15 Jun 2021 10:20:06 GMT):
I am facing the below issue in invoking private transaction from the Hyperledger Node SDK 2.2. This error occurs intermittently and is resolved whenever I try it once again. or several times unless it is successful. Error: status=500, message=make sure the chaincode asset_private has been successfully defined on channel devchannel and try again: chaincode definition for 'asset_private' exists, but chaincode is not installed I am using: Hyperledger Fabric 2.3 network with 2 peers and 3 orderers NodeSDK 2.2 Gateway based transaction mechanism If anyone has any leads here, please help me

alxspectrum (Tue, 15 Jun 2021 10:20:40 GMT):
Hey guys I have a question, reenrolling with Node SDK requires SigningIdentity. The Signing Identity Object has a the .signer (Signer) property. Does this property contain the user's raw private key? If yes, the private key is sent with the request to the CA server which does not make sense. Is there a workaround for this?

scmanjarrez (Tue, 15 Jun 2021 12:48:03 GMT):
hi everybody, do I need to execute approveformyorg if I want to install a chaincode in "my org" (just want to install a chaincode in 1 peer of a channel), or I need to approve in every peer of a channel?

scmanjarrez (Tue, 15 Jun 2021 12:49:10 GMT):
nvm, found the information in the doc, sorry! https://hyperledger-fabric.readthedocs.io/en/release-2.2/chaincode_lifecycle.html

Djx (Tue, 15 Jun 2021 15:43:31 GMT):
Does anyone know of a web-based front-end for acting as a client to HLF. Perhaps using a JS gRPC implementation to make a "Web3" application similar to https://www.myetherwallet.com/ so that a user could interact with their wallet via a website with their private key never going across the wire?

Djx (Tue, 15 Jun 2021 23:34:57 GMT):
Another question - is it possible for a client to rotate their own certificate with the Fabric CA? If I pre-generate a cert for someone, could they rotate it themselves to ensure they're the only one with the private key?

Javi (Wed, 16 Jun 2021 09:29:18 GMT):
hi, I'm trying to add a new organization to an existing channel. If I fetch the config and update it from the existing org, there are no problems at all, the configuration is applied. The problem is when I try to add the new organization to the channel, I got the following response: ``` 2021-06-16 07:47:02.908 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-06-16 07:47:02.910 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} ``` Any idea?. In the configtx.yaml of my new organization, in the policy section I have this rule `Rule: "OR('myorg.member')"`. I'm out of ideas....

Javi (Wed, 16 Jun 2021 09:31:01 GMT):
more info: the old organization was migrated from the v1.4 to the v2.2 without any problem. The capabilities were not migrated, only orderer, peer and couch data

Javi (Wed, 16 Jun 2021 09:32:41 GMT):
in the orderer logs I see: ``` 2021-06-16 09:31:59.503 UTC [common.deliver] deliverBlocks -> WARN 089 [channel: mychannel] Client 172.28.0.15:39356 is not authorized: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Readers' sub-policies to be satisfied: permission denied 2021-06-16 09:31:59.503 UTC [comm.grpc.server] 1 -> INFO 08a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.28.0.15:39356 grpc.code=OK grpc.call_duration=1.0447ms ```

scmanjarrez (Wed, 16 Jun 2021 09:43:32 GMT):
what's the default behaviour when using "peer chaincode invoke" related to the endorsers? I mean, if I don't provide --peerAddress, what would happen? Will it send the transaction to all peers?

Kirill_27 (Wed, 16 Jun 2021 10:11:16 GMT):
Thank you!

jeetparekh3005 (Wed, 16 Jun 2021 15:19:58 GMT):
Has joined the channel.

jeetparekh3005 (Wed, 16 Jun 2021 15:22:39 GMT):
Hi Guys, I am working on Private Data Collection. I want to understand what would be the best approach to query peer of another organization through SDK.

jeetparekh3005 (Wed, 16 Jun 2021 15:26:08 GMT):
Details: Let's say we have a configuration where membersOnlyRead is false. Org C is not a member of this PDC but should be able to query data. When I try to query normally, it won't return the data. Then I change Org C's connection-profile and change the peer's to Org A's peer and then it is able to read. Should I maintain a seperate connection-profile for reading this PDC or is there a better approach?

knagware9 (Thu, 17 Jun 2021 10:51:14 GMT):
Hyperledger Fabric Upgrade : Issue while Upgrading fabric from 1.4.4 to 2.2 I am trying to upgrade fabric 1.4 network to latest fabric stable version 2.2. In migration steps, I am able to update peer and orderer components to the latest version but while updating the channel capababilities to fetch the config block,peers are not able to connect with the orderer Error: could not not connect to ordering service:could not dial endpoint:dial tcp:lookup orderer.example.com on 192.168.x.xxxx :no such host channel=mychannel

GeorgePals (Thu, 17 Jun 2021 16:05:18 GMT):
How can someone add custom attributes through CA's registry? What I want to achieve is to have some default users with default custom attributes, that will be included to the certificate, so I can later approve access to chaincodes' functions. e.g.: ``` - name: customuser pass: customuserpw type: client affiliation: "" attrs: ---> role: "custom-role-name/value???" hf.Registrar.Roles: "" hf.Registrar.DelegateRoles: "" hf.Revoker: false hf.IntermediateCA: false hf.GenCRL: false hf.Registrar.Attributes: "" hf.AffiliationMgr: false ``` Thanks!

GeorgePals (Thu, 17 Jun 2021 16:05:18 GMT):
How can someone add custom attributes through CA's registry? What I want to achieve is to have some default users with default custom attributes, that will be included to the certificate, so I can later approve access to chaincodes' functions. e.g.: ``` - name: customuser pass: customuserpw type: client affiliation: "" attrs: ---> role: "custom-role-name/value???" hf.Registrar.Roles: "" hf.Registrar.DelegateRoles: "" hf.Revoker: false hf.IntermediateCA: false hf.GenCRL: false hf.Registrar.Attributes: "" hf.AffiliationMgr: false ``` Thanks!

GeorgePals (Thu, 17 Jun 2021 16:05:18 GMT):
How can someone add custom attributes through CA's registry? What I want to achieve is to have some default users with default custom attributes, that will be included to the certificate, so I can later approve access to chaincodes' functions. Is the below correct? Because I am not sure that it includes the "role" attribute to the cert . e.g.: ``` - name: customuser pass: customuserpw type: client affiliation: "" attrs: ---> role: "custom-role-name/value???" hf.Registrar.Roles: "" hf.Registrar.DelegateRoles: "" hf.Revoker: false hf.IntermediateCA: false hf.GenCRL: false hf.Registrar.Attributes: "" hf.AffiliationMgr: false ``` Thanks!

cmhacker (Fri, 18 Jun 2021 07:36:43 GMT):
```2021-06-18T07:28:58.998Z - error: [Transaction]: Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Endorsement has failed``` ??

cmhacker (Fri, 18 Jun 2021 07:36:43 GMT):
I have migrated fabric-client to the fabric-network gateway. I am able to perform query operations, but for invoking I am getting the below error ```2021-06-18T07:28:58.998Z - error: [Transaction]: Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Endorsement has failed``` ??

scmanjarrez (Fri, 18 Jun 2021 10:53:54 GMT):
I'm trying to do a cross chaincode, I'm executing a chaincode in channel A (org4 and org3) from org4, that chaincode then call another chaincode in channel B (org1, org2, and org3), but I'm getting the following error: `failed to handle INVOKE_CHAINCODE. error: Failed evaluating policy on signed data during check policy on channel [evidences] with policy [/Channel/Application/Writers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied]`, I'm just querying the ledger, but it asks for write permissions? Anyone can explains what's the meaning of the error?

tkuhrt (Fri, 18 Jun 2021 16:39:54 GMT):
Not positive as to why the error message, but org4 is not part of channel B, they should not be able to an invoke a chaincode on that channel.

vijaygopal (Sun, 20 Jun 2021 00:37:22 GMT):
Hello Team, I was exploring what databases in hyperledger can be used to persist world state. I am aware that CouchDB can be used. Can someone help answer these questions How to configure a different database to persist world state? Also can I use Couchbase in place of CouchDB?

knagware9 (Mon, 21 Jun 2021 07:56:10 GMT):
officially fabric provide only levelDB and couchdb as state db. Other can be implemented using interrface avaialble in fabric ledger

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. `For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. `

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. `For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. `

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode.

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. \blockquote For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. \blockquote

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. \blockquote{ For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode.}

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. \blockquote{ For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode.

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:07:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode if you're in the same channel (only query), only modifying the ledger require to be in the same channel. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode if you're in the same channel (only querying the ledger), if you want to modify the ledger, you must be in the same channel. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (channel to channel, peer in both channels, org3 peer), if the caller (org4) is in the first channel (only for querying the ledger). You're only required to be in both channels if the caller wants to modify the ledger. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (call chaincodeA in channel1 from chaincodeB in channel2), if the caller (org4) is in the first channel (only for querying the ledger) and the peer (org3) with the chaincode (A and B) is in both channels (1 and 2). You're only required to be in both channels if the caller wants to modify the ledger. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (call chaincodeA in channel1 from chaincodeB in channel2), if the caller (org4) is in the first channel (only for querying the ledger) and the peer (org3) with the chaincode (A and B) is in both channels (1 and 2\). You're only required to be in both channels if the caller wants to modify the ledger. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (call chaincodeA in channel1 from chaincodeB in channel2), if the caller (org4) is in the first channel (only for querying the ledger) and the peer (org3) with the chaincode (A and \B) is in both channels (1 and 2). You're only required to be in both channels if the caller wants to modify the ledger. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (call chaincodeA in channel1 from chaincodeB in channel2), if the caller (org4) is in the first channel (only for querying the ledger) and the peer (org3) with the chaincode (A and B ) is in both channels (1 and 2). You're only required to be in both channels if the caller wants to modify the ledger. ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

scmanjarrez (Mon, 21 Jun 2021 09:18:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zaq3bhxS2NWyao8JG) But I read you can cross invoke chaincode (call chaincodeA in channel1 from chaincodeB in channel2), if the caller (org4) is in the first channel (only for querying the ledger) and the peer (org3) with the chaincode (A and B ) is in both channels (1 and 2). You're only required to be in both channels if the caller wants to modify the ledger. From doc: ``` For chaincode to chaincode interactions using the invokeChaincode() API, both chaincodes must be installed on the same peer. For interactions that only require the called chaincode’s world state to be queried, the invocation can be in a different channel to the caller’s chaincode. For interactions that require the called chaincode’s world state to be updated, the invocation must be in the same channel as the caller’s chaincode. ```

hamzabht (Tue, 22 Jun 2021 04:52:23 GMT):
Has joined the channel.

hamzabht (Tue, 22 Jun 2021 04:52:26 GMT):
Hello Team, i'm using private collection and i wanna know what should i do to make data accessible only by data owner and not the entire organisation ? thanks in advance.

scmanjarrez (Tue, 22 Jun 2021 09:42:31 GMT):
Can I declare a policy to allow execution of chaincodes even if the caller is out of channel (I want to cross invoke chaincode, but the identity of the caller isn't in the channel, however, the peer that executes the chaincode and cross-invoke is in the channel).

vijaygopal (Tue, 22 Jun 2021 13:46:17 GMT):
Thanks @knagware9 for the response. Could you please point me to the documentation? That would be really helpful.

sofeijoo (Tue, 22 Jun 2021 17:09:40 GMT):
Has joined the channel.

sofeijoo (Tue, 22 Jun 2021 17:09:41 GMT):
Hi! Im doing some research and was wondering if its possible to use a consensus algorithm different from raft/kafka/solo. This came up while reading about the metacoin network, which is based in fabric. Any ideas? Thanks in advance!!

yacovm (Tue, 22 Jun 2021 21:16:57 GMT):
@sofeijoo you can try out https://smartbft-go.github.io/paper.pdf (implementation is in https://github.com/SmartBFT-Go/fabric/)

indirajith (Wed, 23 Jun 2021 09:31:53 GMT):
Hi, I am trying to create a channel through cli container, and it says x509 crtificate signed by unknown authority. can anyone help finding, where I make error?

Olli 44 (Wed, 23 Jun 2021 12:32:00 GMT):
Has joined the channel.

Olli 44 (Wed, 23 Jun 2021 12:32:01 GMT):
Hi all, Have to admit, I am completely new and I was going through the entire Key Concepts section of the docu but now I am lost: I can't wrap my head around this: https://hyperledger-fabric.readthedocs.io/en/latest/orderer/ordering_service.html#raft-concepts - especially the Quorum part. I am unsure what a log message is. Is it an actual proposal result sent from an application? Is a consenter set coming from the application, i.e. all _usual_ peers sending the chaincode result back to the application which gets "forwarded" to the ordering service? (Ugh, when I got the docu right this would never be the case as only the signed response will be sent to the ordering service if the result matches?) What does the Quorum part exactly do? _Describes the minimum number of consenters that need to affirm a proposal so that transactions can be ordered._ What does _can be ordered_ mean? Is this to process of finding a *valid order* in the majority of nodes? Apologies for the - most probably - stupid questions, as I said, I am just starting. :) Any help is HIGHLY appreciated!

Olli 44 (Wed, 23 Jun 2021 12:32:01 GMT):
Hi all, Have to admit, I am completely new and I was going through the entire Key Concepts section of the docu but now I am lost: I can't wrap my head around this: https://hyperledger-fabric.readthedocs.io/en/latest/orderer/ordering_service.html#raft-concepts - especially the Quorum part. I am unsure what a log message is. Is it an actual proposal result sent from an application? Is a consenter set coming from the application, i.e. all _usual_ peers sending the chaincode result back to the application which gets "forwarded" to the ordering service? (Ugh, when I got the docu right this would never be the case as only the signed response will be sent to the ordering service if the result matches?) What does the Quorum part exactly do? "_Describes the minimum number of consenters that need to affirm a proposal so that transactions can be ordered._" What does _can be ordered_ mean? Is this to process of finding a *valid order* in the majority of nodes? Apologies for the - most probably - stupid questions, as I said, I am just starting. :) Any help is HIGHLY appreciated!

Olli 44 (Wed, 23 Jun 2021 12:32:01 GMT):
Hi all, Have to admit, I am completely new and I was going through the entire Key Concepts section of the docu but now I am lost: I can't wrap my head around this: https://hyperledger-fabric.readthedocs.io/en/latest/orderer/ordering_service.html#raft-concepts - especially the Quorum part. I am unsure what a log message is. Is it an actual proposal result sent from an application? Is a consenter set coming from the application, i.e. all _usual_ peers sending the chaincode result back to the application which gets "forwarded" to the ordering service? (Ugh, when I got the docu right this would never be the case as only the signed response will be sent to the ordering service if the result matches?) What does the Quorum part exactly do? " _Describes the minimum number of consenters that need to affirm a proposal so that transactions can be ordered._ " What does _can be ordered_ mean? Is this the process of finding a *valid order* in the majority of nodes so the.... state is correct? Nah, I give up. I can't make sense of this. :( Apologies for the - most probably - stupid questions, as I said, I am just starting. :) Any help is HIGHLY appreciated!

hckkid (Wed, 23 Jun 2021 14:53:42 GMT):
Has joined the channel.

indirajith (Wed, 23 Jun 2021 20:26:04 GMT):
Hi all, I am trying to create a channel and encountering the following error. ``` [grpc] Infof -> DEBU 040 Channel Connectivity change to READY Error: got unexpected status: BAD_REQUEST -- consensus metadata update for channel creation is invalid: invalid new config metadata: verifying tls client cert with serial number 280322 988955805056619412110165950090557792693897: x509: certificate signed by unknown authority ``` I have checked the tls certificates of orderer and peer and they don't seems to have any problem. Error says the tls client cert of orderer is signed by unknown authority. Can anyone shed some light how to troubleshoot this problem?

indirajith (Wed, 23 Jun 2021 20:26:04 GMT):
Hi all, I am trying to create a channel and encountering the following error. ``` [grpc] Infof -> DEBU 040 Channel Connectivity change to READY Error: got unexpected status: BAD_REQUEST -- consensus metadata update for channel creation is invalid: invalid new config metadata: verifying tls client cert with serial number 280322 988955805056619412110165950090557792693897: x509: certificate signed by unknown authority ``` I have checked the tls certificates of orderer and peer and they don't seem to have any problem. The error says the tls client cert of orderer is signed by unknown authority. Can anyone shed some light how to troubleshoot this problem?

rvkdonuts (Thu, 24 Jun 2021 06:04:25 GMT):
Has joined the channel.

rvkdonuts (Thu, 24 Jun 2021 06:05:54 GMT):
I'm having trouble submitting a transaction- I've created a question on stackoverflow, anyone have an idea on how to solve this? https://stackoverflow.com/questions/68099021/hyperledger-fabric-java-contractexception-failed-to-send-transaction-to-the

jkneubuhl (Thu, 24 Jun 2021 16:11:42 GMT):
Has joined the channel.

megh (Fri, 25 Jun 2021 10:28:32 GMT):
Hi all,

megh (Fri, 25 Jun 2021 10:28:57 GMT):
Is there a way to create peer on the test-network of fabric?

megh (Fri, 25 Jun 2021 10:29:21 GMT):
Right now there is 2 peer can i create more?

AjayKalola (Fri, 25 Jun 2021 12:53:27 GMT):
Hello Team, I'm facing the issue while updating the chaincode. Can anyone help me to resolve it. `2021-06-25 12:16:55.458 UTC [msp/identity] Sign -> DEBU 0bf Sign: plaintext: 0A90090A7008031A0C08B792D7860610...324D53500A04657363630A0476736363 2021-06-25 12:16:55.459 UTC [msp/identity] Sign -> DEBU 0c0 Sign: digest: CA0260CE12250C900C831C630D58FC50CAE8296D79C754CAD8A61E4B96039C48 2021-06-25 12:16:55.466 UTC [chaincodeCmd] upgrade -> DEBU 0c1 endorse upgrade proposal, get response Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy` Thanks.

mathwalerp123 (Fri, 25 Jun 2021 15:01:04 GMT):
Has joined the channel.

mathwalerp123 (Fri, 25 Jun 2021 15:01:31 GMT):
Dear Team,I have created a PoC application using hyperledger fabric for three organizations. Most of the content on internet is instructing to use cloud for the deployment of the solution. https://juarezjunior.medium.com/how-to-deploy-your-first-hyperledger-fabric-components-with-azure-kubernetes-service-aks-760563d9d543 https://medium.com/google-cloud/fabric-on-google-cloud-platform-97525323457c https://www.youtube.com/watch?v=ubrA3W1JMk0 If peers, orderers,ca server of all organizations are deployed in a cloud then how come hyperledger fabric is distribued? Can this setup can be made in distributed , "in premise" infrastructure? Is there any source for reference/links to do this sort of setup? any suggestions/references will be very helpful

Skyquek (Fri, 25 Jun 2021 16:05:52 GMT):
Has joined the channel.

mahengct (Fri, 25 Jun 2021 21:18:15 GMT):
Has joined the channel.

knagware9 (Sat, 26 Jun 2021 09:49:34 GMT):
yes, you can add as many peer & org

knagware9 (Sat, 26 Jun 2021 09:53:47 GMT):
you can deploy your fabric network any where, cloud , on premises. To make decentralised deployment , you could have muliti cloud architecture,

megh (Sat, 26 Jun 2021 12:42:20 GMT):
How do i do that?

shanmuksai (Mon, 28 Jun 2021 18:51:28 GMT):

Clipboard - June 28, 2021 1:51 PM

shanmuksai (Mon, 28 Jun 2021 18:51:28 GMT):
Has joined the channel.

shanmuksai (Mon, 28 Jun 2021 18:51:29 GMT):
Hi all, I am trying to install Hyperledger Fabric-CA with by following official docs https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html in the first step of go get -u github.com/hyperledger/fabric-ca/cmd/... command i am facing some issue with one of the package which is used in those dependencies. can i get help in resolving this issue

JonathanPedigo (Mon, 28 Jun 2021 22:54:41 GMT):
Has joined the channel.

JonathanPedigo (Mon, 28 Jun 2021 22:54:41 GMT):
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.2 1.5.0

JonathanPedigo (Mon, 28 Jun 2021 22:54:46 GMT):
This command is failing for me

JonathanPedigo (Mon, 28 Jun 2021 22:54:51 GMT):
is it possible there is a typo?

JonathanPedigo (Mon, 28 Jun 2021 22:55:01 GMT):

Clipboard - June 28, 2021 5:55 PM

JonathanPedigo (Mon, 28 Jun 2021 22:55:19 GMT):

Clipboard - June 28, 2021 5:55 PM

JonathanPedigo (Mon, 28 Jun 2021 22:55:29 GMT):
Should it be amd instead of arm?

JonathanPedigo (Mon, 28 Jun 2021 22:55:36 GMT):
because amd exists

JonathanPedigo (Mon, 28 Jun 2021 22:57:16 GMT):

Clipboard - June 28, 2021 5:57 PM

knagware9 (Tue, 29 Jun 2021 04:23:37 GMT):
there are many ways, you can create configtx.yaml file with additional org and then create docker-compose file for the same. Another way you can add new org in running network https://hyperledger-fabric.readthedocs.io/en/release-2.2/channel_update_tutorial.html

megh (Tue, 29 Jun 2021 05:42:38 GMT):
Thank you @knagware9

megh (Tue, 29 Jun 2021 05:44:07 GMT):
But i am to creat 1 org and have multiple peers

knagware9 (Tue, 29 Jun 2021 07:50:09 GMT):
that you can also do same way l

megh (Tue, 29 Jun 2021 08:41:36 GMT):
I will follow the link

scmanjarrez (Tue, 29 Jun 2021 12:05:47 GMT):
is there a way to set policy to null? I mean, I don't want to check if chaincode caller has a valid identity or caller organization has joined the channel. I want a "public chaincode" to query the ledger.

scmanjarrez (Tue, 29 Jun 2021 12:05:47 GMT):
is there a way to set certain policy to null? I mean, I don't want to check if chaincode caller has a valid identity or caller organization has joined the channel. I want a "public chaincode" to query the ledger.

ume0202 (Tue, 29 Jun 2021 12:28:17 GMT):
Can we add a new node (peer0.org3) which is on HFE 2.2 to a running 1.4 network with (peer0.org1 and peer1.org2) setup - Means cross version of hyperledger-fabric to communicate. Or the other way of my question is.. If an org (old org) is already running on 1.4 and wants to join the network(new) which is running on 2.2..

Carloslm97 (Tue, 29 Jun 2021 14:16:06 GMT):
Has joined the channel.

Carloslm97 (Tue, 29 Jun 2021 18:18:53 GMT):
I am having problems with the Fabric test network. I don't get any error message when I use ./network.sh but when I try to use any chaincode request I get the following error: Error: error getting endorser client for invoke: endorser client failed to connect to localhost:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7051: connect: connection refused". The following error appears in the orderer logs: [orderer.common.broadcast] Handle -> WARN 018 [0m Error reading from 172.18.0.8:32938: rpc error: code = Canceled desc = context canceled [comm.grpc.server] 1 -> INFO 019 [0m streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.8:32938 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=38.98238ms I use the following versions: Ubuntu: 18.04 Fabric: 2.2.3 1.5.0 Docker: 20.10.7 Docker-compose: 1.27.4 Go: 1.15.5 Node: 12.16.1 NPM: 6.13.4 The logs are here: https://stackoverflow.com/questions/67989194/error-with-test-network-in-hyperledger-fabric-2-2-3

Carloslm97 (Tue, 29 Jun 2021 18:18:53 GMT):

benita (Wed, 30 Jun 2021 01:19:14 GMT):
Has joined the channel.

benita (Wed, 30 Jun 2021 01:19:15 GMT):
Hey there! I've been attempting to use the hyperledger fabric template on AWS to launch a network, and have been running into issues with the Cloud Formation stack template failing to create resources. The error reads Embedded stack -----FabricEC2CommonStack----- was not successfully created: The following resource(s) failed to create: [EC2InstanceForDev] The following resource(s) failed to create: [FabricEC2CommonStack] Is this something anyone has run into and has a well documented fix as to what specifically causes the failure?

scmanjarrez (Wed, 30 Jun 2021 09:30:05 GMT):
what command are you using?

Carloslm97 (Wed, 30 Jun 2021 14:05:35 GMT):
I'm following the tutorial of first network and when I invoke the chaincode in the cli container, I get this error. In the orderer logs the context canceled error appears since the creation of the channel.

Carloslm97 (Wed, 30 Jun 2021 14:05:35 GMT):
I'm following the tutorial of first network (first ./network up createChannel -ca and after ./network deployCC with the options specified in the documentation) and last when I invoke the chaincode in the cli container, I get this error. In the orderer logs the context canceled error appears since the creation of the channel.

ricba (Thu, 01 Jul 2021 08:21:46 GMT):
Hi, I have a question. Fabric introduced peer ledger snapshots. But what if I want to prune orderers instead? There is no feature for pruning orderer ledgers at the moment. I want maybe just 1 year of data and I cannot. Would it be possible in the future?

scmanjarrez (Thu, 01 Jul 2021 08:36:54 GMT):
Could you provide the full logs of network.sh? Send a pastebin link

davidkel (Thu, 01 Jul 2021 08:46:34 GMT):
An RFC was proposed and approved here https://github.com/hyperledger/fabric-rfcs/pull/44

ricba (Thu, 01 Jul 2021 09:08:35 GMT):
Thanks a lot :)

moteesh (Fri, 02 Jul 2021 11:42:07 GMT):
Has joined the channel.

rjones (Fri, 02 Jul 2021 23:09:10 GMT):

rjones (Fri, 02 Jul 2021 23:09:10 GMT):

rjones (Fri, 02 Jul 2021 23:09:10 GMT):

pmn2090 (Sat, 03 Jul 2021 01:08:19 GMT):
Has joined the channel.

saif_32 (Sat, 03 Jul 2021 04:01:56 GMT):
Hi All... ``` How do we share data from a private data collection from one org to another org ? ``` The Docs say - `Chaincode access control - You can implement access control in your chaincode, to specify which clients can query private data in a collection. For example, store an access control list for a private data collection key or range of keys, then in the chaincode get the client submitter’s credentials (using GetCreator() chaincode API or CID library API GetID() or GetMSPID() ), and verify they have access before returning the private data.` ``` Has any one done this ?? ```

vakster (Sat, 03 Jul 2021 07:01:03 GMT):
Has joined the channel.

BravoNatalie (Sat, 03 Jul 2021 10:55:01 GMT):
Has joined the channel.

saif_32 (Sat, 03 Jul 2021 10:55:38 GMT):
How can we re-compute the private data collection hash ?

AsifMesbah (Sun, 04 Jul 2021 01:00:45 GMT):
Has joined the channel.

chakri07 (Sun, 04 Jul 2021 11:58:29 GMT):
Has joined the channel.

IoanSlavu (Sun, 04 Jul 2021 17:21:29 GMT):
Has joined the channel.

sg1408 (Sun, 04 Jul 2021 19:01:33 GMT):
Has joined the channel.

bphan (Mon, 05 Jul 2021 05:00:24 GMT):
Has joined the channel.

mturetchi (Mon, 05 Jul 2021 10:53:36 GMT):
Has joined the channel.

sharkrit (Mon, 05 Jul 2021 18:20:50 GMT):
Has joined the channel.

QuasiStellar (Mon, 05 Jul 2021 19:00:35 GMT):
Has joined the channel.

LikithS (Mon, 05 Jul 2021 19:51:40 GMT):
Has joined the channel.

sakthi.raju (Tue, 06 Jul 2021 04:39:14 GMT):
Has joined the channel.

mahendraswain (Tue, 06 Jul 2021 05:15:07 GMT):
Has joined the channel.

shanest (Tue, 06 Jul 2021 05:25:59 GMT):
Has joined the channel.

yujinpark (Tue, 06 Jul 2021 05:50:18 GMT):
Has joined the channel.

vshawn (Tue, 06 Jul 2021 07:06:54 GMT):
Has joined the channel.

chhokra (Tue, 06 Jul 2021 09:38:57 GMT):
Has joined the channel.

cpsatav (Tue, 06 Jul 2021 10:14:17 GMT):
Has joined the channel.

mahendraswain (Tue, 06 Jul 2021 13:26:05 GMT):
Hi all, working on hyperledger fabric, i. getting error in golang version while trying to include chaincode. I

mahendraswain (Tue, 06 Jul 2021 13:27:57 GMT):
Hi all, could anyone guide us to write a new application on fabric and running on fabric. Also looking for visualization tool to monitor transaction. Thanks

Djx (Tue, 06 Jul 2021 13:39:44 GMT):
@mahendraswain - the docs have some good examples for creating an application. You can use the Hyperledger Explorer (https://www.hyperledger.org/use/explorer) for viewing the blockchain

vasile135 (Tue, 06 Jul 2021 15:36:45 GMT):
Has joined the channel.

CalebLiu (Wed, 07 Jul 2021 02:48:52 GMT):
Has joined the channel.

drewmattic (Wed, 07 Jul 2021 04:58:03 GMT):
Has joined the channel.

mahendraswain (Wed, 07 Jul 2021 05:03:11 GMT):
Hi All, Does hyperledger fabric supports RISC-V platform? Board like U540 .

amalendusuresh (Wed, 07 Jul 2021 07:52:43 GMT):
Hi All...I'm trying to regenerate the signing certificate of peers and orderers in ca, as it has expired.. How can i regenerate it... Could anyone please help me with this? Thanks in advance

SumitVedpathak (Wed, 07 Jul 2021 11:01:13 GMT):
Has joined the channel.

SumitVedpathak (Wed, 07 Jul 2021 11:04:56 GMT):
Hey Folks, I cannot see any installed code when i run `peer chaincode list --installed` Though i could see my installed code with `peer lifecycle chaincode queryinstalled` Why is that so? I know its the chaincode lifecycle in 2.2 but fabric docs does mentioned this that list gives installed chaincodes.

SumitVedpathak (Wed, 07 Jul 2021 11:05:00 GMT):
Any idea?

gt88 (Wed, 07 Jul 2021 11:40:04 GMT):
Has joined the channel.

tychobrailleur (Wed, 07 Jul 2021 12:26:05 GMT):
Has joined the channel.

alanveloso (Wed, 07 Jul 2021 12:52:15 GMT):
Has joined the channel.

lohan.spies (Wed, 07 Jul 2021 13:24:55 GMT):
Has joined the channel.

ReufRujevic (Wed, 07 Jul 2021 14:08:44 GMT):
Has joined the channel.

ankitm123 (Wed, 07 Jul 2021 17:13:48 GMT):
Has joined the channel.

SumitVedpathak (Wed, 07 Jul 2021 17:43:48 GMT):
Hey Folks, I cannot see any installed code when i run `peer chaincode list --installed` Though i could see my installed code with `peer l

megh (Wed, 07 Jul 2021 21:37:37 GMT):
Hi all, I have pulled a docker image for peer:2.3. I am making the changes needed in core.YAML file. I have run the command docker commit to save the changes which I made within the docker image. When I run the committed image, it doesn't have the modified core.YAML, instead it has the same core. YAML from the docker pull image. What am I missing?. Could anyone please help me with this? I appreciate any help you can provide.

AndreEsteves (Thu, 08 Jul 2021 10:56:17 GMT):
Has joined the channel.

mkm 14 (Thu, 08 Jul 2021 14:00:03 GMT):
Has joined the channel.

ankitm123 (Thu, 08 Jul 2021 15:38:06 GMT):
Looking at the codebase, it seems that the `peer chaincode list --installed` uses the `lifecycle system chaincode (lscc)` which used to manage chain code lifecycle for fabric 1.X. Source: https://github.com/hyperledger/fabric/blob/main/protoutil/proputils.go#L268. The `peer lifecycle chaincode queryinstalled` uses the more recent `_lifecycle` system chain code. Since you use fabric 2.2, makes sense that the former command does not wotk for you. Also this section sheds some light on the topic: https://hyperledger-fabric.readthedocs.io/en/release-2.3/smartcontract/smartcontract.html?highlight=lscc#system-chaincode

ankitm123 (Thu, 08 Jul 2021 15:38:06 GMT):
Looking at the codebase, it seems that the `peer chaincode list --installed` uses the `lifecycle system chaincode (lscc)` which used to manage chain code lifecycle for fabric 1.X. Source: https://github.com/hyperledger/fabric/blob/main/protoutil/proputils.go#L268. The `peer lifecycle chaincode queryinstalled` uses the more recent `_lifecycle` system chain code. Since you use fabric 2.2, makes sense that the former command does not work for you. Also this section sheds some light on the topic: https://hyperledger-fabric.readthedocs.io/en/release-2.3/smartcontract/smartcontract.html?highlight=lscc#system-chaincode

Cryptohash (Thu, 08 Jul 2021 16:11:07 GMT):
Has joined the channel.

msarres (Thu, 08 Jul 2021 18:42:01 GMT):
I do not know what is your purpose, but would not be better to keep the same image and change the core.yaml at docker-compose?

Najetbh83 (Thu, 08 Jul 2021 19:33:56 GMT):
Has joined the channel.

hoang-innomizetech (Fri, 09 Jul 2021 03:56:49 GMT):
Has joined the channel.

megh (Fri, 09 Jul 2021 06:02:00 GMT):
I am trying to create a production docker peer i am new to hylegerledger and docker

megh (Fri, 09 Jul 2021 06:03:08 GMT):
so i have pulled a docker image from docker hub and edited the core.yaml file within docker, and i have also run docker commit to have it

hoang-innomizetech (Fri, 09 Jul 2021 07:03:58 GMT):
Hi all, I am new the BAF, I have been trying to deploy the default network to K8S and currently I am getting retry timeout for CA pods. CA pods have been created but it cannot be started in K8S. Has anyone faced this issue before? How can I know why CA pods cannot be started?

hoang-innomizetech (Fri, 09 Jul 2021 07:04:51 GMT):
`TASK [Create CA tools for each organization] ********************************************************************************************************************************* TASK [waiting for the CA server to be created in supplychain-net] ************************************************************************************************************ TASK [/home/blockchain-automation-framework/platforms/hyperledger-fabric/configuration/../../shared/configuration/roles/check/helm_component : Wait for Pod ca in supplychain-net] *** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/home/blockchain-automation-framework/platforms/hyperledger-fabric/configuration/../../shared/configuration/roles/check/helm_component : Check for {{ job_title }} job on {{ component_name }}] *** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/home/blockchain-automation-framework/platforms/hyperledger-fabric/configuration/../../shared/configuration/roles/check/helm_component : Wait for Pod ca in supplychain-net] *** `

alvaropicazo (Fri, 09 Jul 2021 08:36:51 GMT):
Hi @hoang-innomizetech , for Blockchain Automation Framework queries go checkout their rocket-chat. https://chat.hyperledger.org/channel/blockchain-automation-framework

hoang-innomizetech (Fri, 09 Jul 2021 08:37:48 GMT):
Ok. Thank you!

SumitVedpathak (Fri, 09 Jul 2021 09:19:00 GMT):
Thanks Ankit. That answers my question. Appreciate!

SumitVedpathak (Fri, 09 Jul 2021 09:19:36 GMT):
Hi Folks,

SumitVedpathak (Fri, 09 Jul 2021 09:22:58 GMT):
Hi Folks, Is there any way that the smart contract which is written in nodejs can be compiled first and tested first, before installing and deploying it on network.

megh (Fri, 09 Jul 2021 10:39:56 GMT):
Hello yes you can use the test network to run your smart contarct

VishalUchil (Fri, 09 Jul 2021 17:58:51 GMT):
Has joined the channel.

VishalUchil (Fri, 09 Jul 2021 17:58:51 GMT):
Hey guys

VishalUchil (Fri, 09 Jul 2021 17:59:00 GMT):
Completely new to fabric here

VishalUchil (Fri, 09 Jul 2021 17:59:26 GMT):
Could any of you point me to a resource where I can create a voting app on hyperledger fabric 2.x

VishalUchil (Fri, 09 Jul 2021 17:59:59 GMT):
I find all tutorials and blog posts are using 1.4 along with composer

VishalUchil (Fri, 09 Jul 2021 18:00:36 GMT):
And since composer is deprecated, is there an alternative? Or is it easier to write chaincode and manage network on 2.x

AndrewStarling (Sat, 10 Jul 2021 03:58:53 GMT):
Has joined the channel.

ritikbhandari (Sat, 10 Jul 2021 09:48:21 GMT):
Has joined the channel.

atirikt (Sat, 10 Jul 2021 09:54:10 GMT):
Has joined the channel.

esumit (Sat, 10 Jul 2021 10:56:24 GMT):
Hey @VishalUchil , Step-1 : If you completely new then try to read this page end to end - 2-3 times and clarify your questions if in between comes through here or stackoverflow or etc - https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html Step-2 : Voting App ? -- In your Voting app what is the part of chaincode as smart contract ? , How many peers, how your constorium got built ?, is your app a sample app just exercising by yourself or a specific implementation for a buisness or org, what kind of voting here is etc ( So go to Step-1 and then have clear questions on Step-2 ), This channel here to help Hyperledger fabric related stuff.

esumit (Sat, 10 Jul 2021 10:59:23 GMT):
@SumitVedpathak Before deploying to network your meaning is to deploy on production environment ? , I will suggest test your chaincode on your Dev network before deploying to production of course. If your question referring to like without touching fabric network you can test that chaincode without any HLF stuff. Yes you can e.g. write small functions and see you are getting expected input/output in node.js environment but yeah you may not be able to use shim interface there . (I wrote here my quick comments , there may be some better way )

esumit (Sat, 10 Jul 2021 11:01:49 GMT):
@SumitVedpathak (You may need to work with mock stuff , I ever thought around it but never done that, only thing I do test my functions as small programs etc and play a bit with CouchDB queries with some samples scripts) - Try this to play with scripts etc : https://github.com/splunk/fabric-logger/tree/master/examples/vaccine-demo

esumit (Sat, 10 Jul 2021 11:03:37 GMT):
@mahendraswain For visualisation- It uses splunk to have very clear visualisation of fabric network. I have tested that by myself , it works as per the readme says. refer : https://github.com/splunk/fabric-logger/tree/master/examples/vaccine-demo

CopyBilla (Sat, 10 Jul 2021 14:18:07 GMT):
Has joined the channel.

danielszego (Sat, 10 Jul 2021 18:47:00 GMT):
Has joined the channel.

danielszego (Sat, 10 Jul 2021 18:52:33 GMT):
Hi all, I try to deploy external chaincode on kubernetes in a one org setup. I am wondering how it is possible to do it in a high availability mode, like if I have 2 peers for the same org, I would need two chaincode pods / containers. What I can do is to deploy the chaincode with a deployment and scale up to 2, however I am not sure if that is the official way to do it. Anybody having experience with that topic ? Thanks in advance

AkshatCy2012sn (Sat, 10 Jul 2021 21:14:31 GMT):
Has joined the channel.

tim-trutech (Sat, 10 Jul 2021 21:27:39 GMT):
Has joined the channel.

AfzaalLucky (Sun, 11 Jul 2021 15:10:07 GMT):
Has joined the channel.

TomRobertson1 (Sun, 11 Jul 2021 17:11:48 GMT):
Has joined the channel.

TomRobertson1 (Sun, 11 Jul 2021 17:24:10 GMT):
Hi i've been looking at fabric-samples/commercial paper and am trying to apply this to my own project where i've created a simple network in the IBM platform console and want to create a simple login/register function for my webapp I'm confused on the values to use as certificate and private key, eg: const identity = { credentials: { certificate, //pem privateKey //priv_sk }, mspId: 'org1msp', type: 'X.509' } await wallet.put(identityLabel, identity); for the certificate do i use the Org1 CA Value from the Org1 CA Admin.id file or Org1 CA Admin_identity.json? for the private key do i use the value from Org 1 MSP Admin_identity.json or Org1 MSP Admin.id? or something entirely different? such as the pem values under peers.tlsCACerts.pem or certificateAuthorities.tlsCACerts.pem in my connection profile for Org1 MSP

davidkel (Sun, 11 Jul 2021 18:54:01 GMT):
A member of an organisation (an identity) normally requires 2 things. A Certificate and a private key. You decide which identity you want to use (it could be the Org1 CA Admin as it is also a member of your organisation) or you could register and enroll (enrolling is the process of generating a certificate and private key) another user in Org 1 to use. I would suggest registering and enrolling a new user to act as your identity for your example

davidkel (Sun, 11 Jul 2021 18:54:01 GMT):
A member of an organisation (an identity) normally requires 2 things. A Certificate and a private key. You decide which identity you want to use (it could be the Org1 CA Admin as it is also a member of your organisation) or you could register and enroll (enrolling is the process of generating a certificate and private key) another user in Org 1 to use. I would suggest registering and enrolling a new user to act as your identity for your example You should take a look at https://cloud.ibm.com/docs/blockchain?topic=blockchain-ibp-console-app for more info

eharris128 (Sun, 11 Jul 2021 23:03:06 GMT):
Has joined the channel.

Vgkmanju (Mon, 12 Jul 2021 06:58:56 GMT):
Hi all, In kubernetes version 1.18.14, we had hyperledger fabric 2.2 setup using BAF. I am upgrading all the deployed chaincodes using external chaincode launcher. Till thursday (july 8 2021), I was able to do install chaincode using external chaincode launcher. But now when I am trying to install chaincode in the peer cli pod, I got the following error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: platform builder failed: Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL I checked the externalbuilder path. I have all the 3 scripts (detect, build, release) with execution permission. In the core.yaml file also contains externalbuilder. Can anyone please suggest how to resolve this? Why this happened?

TomRobertson1 (Mon, 12 Jul 2021 12:51:10 GMT):
Thanks very much for replying, makes sense :)

knagware9 (Mon, 12 Jul 2021 13:39:04 GMT):
Anybody tried Custom VSCC implementation ?

davidviejopomata (Mon, 12 Jul 2021 14:20:50 GMT):
Has joined the channel.

IV12 (Mon, 12 Jul 2021 15:09:54 GMT):
Has joined the channel.

IV12 (Mon, 12 Jul 2021 15:11:01 GMT):
hello everyone,

IV12 (Mon, 12 Jul 2021 15:11:23 GMT):
i have this problem when i invock my chaincode !!!

IV12 (Mon, 12 Jul 2021 15:11:44 GMT):
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction a425e282d063a291f149f28bee4694ac738bec51b3cd76b83c4ef9ef59c4c49a: could not launch chaincode basic_1.0:00e222266c03b270f9f0d8cad2909dd2b5e77f66ce78ea5aaf5ccf6b351990d3: chaincode registration failed: container exited with 1"

jmaric (Mon, 12 Jul 2021 15:47:59 GMT):
Has joined the channel.

piyushap (Mon, 12 Jul 2021 16:21:49 GMT):
Has joined the channel.

Aurelio 8 (Mon, 12 Jul 2021 20:21:13 GMT):
Has joined the channel.

NancyL 4 (Mon, 12 Jul 2021 20:24:03 GMT):
Has joined the channel.

mfrodriguezc (Mon, 12 Jul 2021 23:36:18 GMT):
Has joined the channel.

amalendusuresh (Tue, 13 Jul 2021 04:21:05 GMT):
Hi All...I'm trying to regenerate the signing certificate of peers and orderers in ca, as it has expired.. How can i regenerate it... Could anyone please help me with this? Thanks in advance

subhasisb (Tue, 13 Jul 2021 10:58:48 GMT):
Hi All, I am trying to add a new orderer to my channel in HLF 2.3 I came across this "If the organization of the new orderer is not already part of the channel configuration, a channel configuration update that adds the organization must be submitted (and signed by a set of signatures that satisfies the orderer group’s admins policy) before the new orderer can begin pulling blocks. " where it is possible to add an orderer from another organization. But I am not finding any relevant documents to perform the same and failing trying to follow: https://hyperledger-fabric.readthedocs.io/en/release-2.3/channel_update_tutorial.html

bt333 (Tue, 13 Jul 2021 11:42:30 GMT):
Has joined the channel.

awsl999 (Tue, 13 Jul 2021 12:46:10 GMT):
Has joined the channel.

awsl999 (Tue, 13 Jul 2021 12:46:10 GMT):
When a peer node pulls a block, does it randomly find an orderer node?

haniavis (Tue, 13 Jul 2021 17:32:28 GMT):
Has joined the channel.

haniavis (Tue, 13 Jul 2021 17:32:29 GMT):
Hi all, I am using Fabric in a project where we might need to use the snapshot feature. But we first need to study its requirements in terms of computational resources (cpu, ram storage). Until now, we are experimenting by invoking a batch of transactions to the default test network, ranging from 5 to 50k different keys in either levelDb or CouchDb and then taking snapshots. The result is always the same and it is very fast (almost instantaneous) so I am wondering if this is what is expected. In addition, are there any configuration parameters that are expected to impact the performance of the snapshot feature e.g. transactions per block, batchTimeout

lfrattini (Tue, 13 Jul 2021 19:26:13 GMT):
Has joined the channel.

alebaffa (Wed, 14 Jul 2021 05:15:47 GMT):
Has joined the channel.

TuureLainen (Wed, 14 Jul 2021 06:25:32 GMT):
Has joined the channel.

MartinAulich (Wed, 14 Jul 2021 07:14:56 GMT):
Has joined the channel.

PatrickHerbke-TUBerlin (Wed, 14 Jul 2021 08:22:49 GMT):
Has joined the channel.

umeraqeel (Wed, 14 Jul 2021 10:36:01 GMT):
Has joined the channel.

jkbpvsc (Wed, 14 Jul 2021 12:41:08 GMT):
Has joined the channel.

tonybka (Wed, 14 Jul 2021 14:03:54 GMT):
Has joined the channel.

XINGYUZHU (Wed, 14 Jul 2021 14:37:01 GMT):
Has joined the channel.

mosogrean (Wed, 14 Jul 2021 15:31:47 GMT):
Hi all, I am using Fabric v2.2 and i would like to connect Fabric sdk go to Fabric Network but testing in fabric sdk go source code is harder to learn. Who has document or anything will be help me? thank you.

janrockdev (Wed, 14 Jul 2021 15:53:07 GMT):
Has joined the channel.

rcraswell (Wed, 14 Jul 2021 23:13:00 GMT):
Has joined the channel.

Skander_m (Thu, 15 Jul 2021 00:50:36 GMT):
Hi all, I'm new to hyperledger Fabric: - Is it possible to give and revoke access dynamically to an organization ? - Is it possible to give access to a particular asset (a particular id) and not to the whole collection ? otherwise I will be obliged to create a private data collection per asset id (which can be thousands or millions)

ron.ky (Thu, 15 Jul 2021 04:35:53 GMT):
Has joined the channel.

ron.ky (Thu, 15 Jul 2021 04:35:54 GMT):
Hi everyone. I encountered a problem during the Deploying a smart contract tutorial (https://hyperledger-fabric.readthedocs.io/en/latest/deploy_chaincode.html). In Setup Logspout section, I run the monitordocker.sh and have the following error: ` ./monitordocker.sh fabric_test Starting monitoring on all containers on the network fabric_test 1b916915c9d3b265d92a2c8adf095f8608bc7bb92de56ef8d81e260c55a34bb0 docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination:\Program Files\Git\var\run\docker.sock Type:bind Source:/run/desktop/mnt/host/c/Program Files/Git/var/run/docker.sock;C Options:[rbind rprivate]}: mount destination \Program Files\Git\var\run\docker.sock not absolute: unknown. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused `

ron.ky (Thu, 15 Jul 2021 04:37:08 GMT):
Could anyone possibly figure out the problem ? Thanks for your kind help.

TIMO_ReDWit (Thu, 15 Jul 2021 05:42:03 GMT):
Has joined the channel.

UmashankarSomasekar (Thu, 15 Jul 2021 06:19:58 GMT):
Hi I see a lot of beginners asking for resource... I created a youtube channel for Hyperledger fabric especially for beginners ( https://www.youtube.com/channel/UCzgDXG_49Fc_8-h5P8tbl8A ) hope this helps some

TIMO_ReDWit (Thu, 15 Jul 2021 07:12:54 GMT):
Sub +1

IshaChaudhary (Thu, 15 Jul 2021 08:30:56 GMT):
Hi! I have a hyperledger fabric v 2.2 project, which I wish to make as a self-sufficient docker image and export to collaborators. I am using the test-network folder too. I tried keeping the bin folder containing the binaries for HL Fabric in my project folder and pushed to github to make docker images. On experimenting with that docker image, and setting the bin path correctly too, the code doesn't set up the network. I don't want my collaborators to install the binaries again, and just use the docker image to run my code. What to do for this? Any clues to this are highly appreciated. Thanks in advance!

esumit (Thu, 15 Jul 2021 08:56:36 GMT):
@UmashankarSomasekar Wonderful Work :ok_hand:

iambatman (Thu, 15 Jul 2021 11:58:36 GMT):
Pack your dependices as docker image

bharathkumar_m (Thu, 15 Jul 2021 14:13:58 GMT):
Has joined the channel.

bharathkumar_m (Thu, 15 Jul 2021 14:15:06 GMT):
hi all

alextrafimau (Thu, 15 Jul 2021 14:24:47 GMT):
Has joined the channel.

sgpokala (Thu, 15 Jul 2021 16:44:24 GMT):
Has joined the channel.

brett7297 (Thu, 15 Jul 2021 17:35:49 GMT):
Has joined the channel.

pranjal23 (Thu, 15 Jul 2021 19:04:08 GMT):
Has joined the channel.

pranjal23 (Thu, 15 Jul 2021 19:05:07 GMT):
hello, I need some help using the command "./network.sh down" , I'm facing some issues while running this command in git bash

pranjal23 (Thu, 15 Jul 2021 19:07:11 GMT):

Screenshot (45).png

richarde 7 (Fri, 16 Jul 2021 06:51:34 GMT):
Has joined the channel.

dominichawton (Fri, 16 Jul 2021 10:20:33 GMT):
Has joined the channel.

Sowjanya_Segu (Fri, 16 Jul 2021 10:45:50 GMT):
Has joined the channel.

subhasisb (Fri, 16 Jul 2021 12:50:14 GMT):
looks like an issue with your windows environment and has nothing to do with HLF

DmitryHalahayeu (Fri, 16 Jul 2021 13:23:57 GMT):
Has joined the channel.

mdhasan (Fri, 16 Jul 2021 13:48:06 GMT):
Has joined the channel.

Lupusalix (Fri, 16 Jul 2021 13:57:20 GMT):
Has joined the channel.

Laichonious (Fri, 16 Jul 2021 16:20:03 GMT):
Has joined the channel.

pSchlarb (Fri, 16 Jul 2021 16:43:32 GMT):
Has joined the channel.

ChandramouliMaduri (Fri, 16 Jul 2021 20:58:23 GMT):
Has joined the channel.

mostafafares (Fri, 16 Jul 2021 21:46:55 GMT):
Has joined the channel.

hackerunet (Sat, 17 Jul 2021 01:51:08 GMT):
Has joined the channel.

phamhung (Sat, 17 Jul 2021 02:00:11 GMT):
Has joined the channel.

phamhung (Sat, 17 Jul 2021 02:06:29 GMT):
Hello, can I know how to organization interact with each other and what is permission/privilege of organization, client in network?

ederro (Sat, 17 Jul 2021 02:08:49 GMT):
Has joined the channel.

noe305 (Sat, 17 Jul 2021 02:10:53 GMT):
Has joined the channel.

itsbalamurali (Sat, 17 Jul 2021 08:45:48 GMT):
Has joined the channel.

piratesmile (Sat, 17 Jul 2021 12:28:05 GMT):
Has joined the channel.

RajanHarshit (Sat, 17 Jul 2021 15:37:36 GMT):
Has joined the channel.

RajanHarshit (Sat, 17 Jul 2021 15:44:33 GMT):
Hi folks, I need some help regarding shim package I've imported shim version 1.4 ("github.com/hyperledger/fabric/core/chaincode/shim"). In this package, there's no any SetCreator() function. If anyone know how to set creator. Please guide me and suggest me best solution Thanks !!

RajanHarshit (Sat, 17 Jul 2021 15:44:33 GMT):
Hi folks, I need some help regarding shim package I've imported shim version 1.4 ("github.com/hyperledger/fabric/core/chaincode/shim"). In this package, there's no any SetCreator() function. I've search each and every file but didn't get any solution If anyone know how to set creator. Please guide me and suggest me best solution Thanks !!

otfreetime (Sun, 18 Jul 2021 06:37:28 GMT):
Has joined the channel.

kaushambi (Sun, 18 Jul 2021 06:40:33 GMT):
Has joined the channel.

igorkrupczynski (Sun, 18 Jul 2021 08:31:50 GMT):
Has joined the channel.

fghiasy (Mon, 19 Jul 2021 00:59:59 GMT):
Has joined the channel.

bhavesh.c (Mon, 19 Jul 2021 04:58:02 GMT):
Has joined the channel.

bhavesh.c (Mon, 19 Jul 2021 05:01:08 GMT):
Hey, I have recently gone through fabric-smart-client repo under hyperledger-labs, Have anyone worked or have experience with same ?

bhavesh.c (Mon, 19 Jul 2021 05:01:08 GMT):

grim 37 (Mon, 19 Jul 2021 08:27:10 GMT):
Has joined the channel.

grim 37 (Mon, 19 Jul 2021 08:44:37 GMT):
Has left the channel.

Steit (Mon, 19 Jul 2021 09:59:16 GMT):
Has joined the channel.

Steit (Mon, 19 Jul 2021 10:06:24 GMT):
Hi all, I've been setting up and developing with HFL for a few months now. Now I want to try some recovery tests. I have a k8s cluster of 3 masters, 3 nodes running HLF with 2 orgs. When I kill one of the nodes it does spin up again and restarts the orderer, raft leader and peer from that node. The state and peer data are stored on AWS EFS so that is recovered too. Still I do get frequent messages on that restarted node "channel not found" Joining the channel gives me "channel exists". Are there any pointers or tutorials how to recover from a crashed server?

sidnaik1989 (Mon, 19 Jul 2021 10:58:52 GMT):
Has joined the channel.

bhavesh.c (Mon, 19 Jul 2021 11:22:41 GMT):
Also I have understood basic of fabric-smart-client sdk and have gone through samples but cannot find sample / steps / docs specific to run a standalone FSC node to form a network, or production deploy fsc node and code. Anyone worked with Fabric smart client, lets have a quick discussion. Thanks, Bhavesh

bhavesh.c (Mon, 19 Jul 2021 11:26:57 GMT):
Hey, I have recently gone through fabric-smart-client repo under hyperledger-labs ,understood basic of fabric-smart-client sdk and have gone through samples but cannot find sample / steps / docs specific to run a standalone FSC node to form a network, or production deploy fsc node and code.Can anyone guide me to more docs or steps for same, also anyone worked with Fsc please revert, i want to get more clarity on few concepts. Thanks, Bhavesh

GuntherWalden (Mon, 19 Jul 2021 13:13:16 GMT):
Has joined the channel.

MatthiasGeihs.Perun (Mon, 19 Jul 2021 15:07:59 GMT):
Has joined the channel.

AtulPandeySaw (Tue, 20 Jul 2021 05:31:44 GMT):
Has joined the channel.

Prerana72 (Tue, 20 Jul 2021 05:43:25 GMT):
Has joined the channel.

JohnWick2704 (Tue, 20 Jul 2021 06:16:59 GMT):
Has joined the channel.

tulip26 (Tue, 20 Jul 2021 08:02:31 GMT):
Hi, I am interested to know if there are any use-cases of Hyperledger Fabric for energy trading? For example, for traceability of carbon credits?

RositsaKrasteva (Tue, 20 Jul 2021 08:34:03 GMT):
Has joined the channel.

MaternaDev (Tue, 20 Jul 2021 08:48:12 GMT):
Has joined the channel.

RyanEckersfield (Tue, 20 Jul 2021 08:52:58 GMT):
Has joined the channel.

MaternaDev (Tue, 20 Jul 2021 08:54:19 GMT):
Hi, im very new to Hyperledger Fabric and i have a problem. I want to develop a Web-Application with a Hyperledger Fabric backend. I also want the user store their priv and pub keys in a file on their system or in a hardware wallet. So if im not completely wrong, they need direkt acces to the Hyperledger Fabric SDK right? I wonder if it is possible to use the SDK in a browser, because i dont want to implement a Java client or smth like this? Im glad if someone can give me a hint :D

RyanEckersfield (Tue, 20 Jul 2021 08:54:59 GMT):
Hey everybody, can anybody tell me what the note for "peer node rollback" means? (https://hyperledger-fabric.readthedocs.io/fa/latest/commands/peernode.html) What is meant by "When the command is executed, the peer must be offline"? Is it enough to Having the channel pause that I wish to rollback?

RyanEckersfield (Tue, 20 Jul 2021 08:54:59 GMT):
Hey everybody, can anybody tell me what the note for "peer node rollback" means? (https://hyperledger-fabric.readthedocs.io/fa/latest/commands/peernode.html) What is meant by "When the command is executed, the peer must be offline"? Is it enough to have the channel pause that I wish to rollback?

RyanEckersfield (Tue, 20 Jul 2021 08:54:59 GMT):
Hey everybody, can anybody tell me what the note for "peer node rollback" means? (https://hyperledger-fabric.readthedocs.io/fa/latest/commands/peernode.html) What is meant by "When the command is executed, the peer must be offline"? Is it enough to have the channel paused that I wish to rollback?

indisateesh (Tue, 20 Jul 2021 11:05:21 GMT):
Has joined the channel.

DeepaliGupta (Tue, 20 Jul 2021 12:54:28 GMT):
Has joined the channel.

TomRobertson1 (Tue, 20 Jul 2021 13:06:09 GMT):
Hi, i've a question about the IBM example managing digital assets (https://github.com/IBM/Blockchain-for-maintaining-Digital-Assets/blob/master/README.md) which i've slightly modified for users to offer their own items. So i added an offers array to the chaincode etc. I've attached a pastebin with some of the code. Basically the front/end back end are all getting the right values and the methods seem to execute fine, but the offer is not being pushed to the offer array. Would appreciate any help its probably something basic but been stuck for a bit on this. https://pastebin.pl/view/3a79ec00

megh (Tue, 20 Jul 2021 15:02:04 GMT):
Hi Everyone, I am trying to setup a production nerwork for my application. I have Config Peer.yaml and Orderer.yaml. I am have troube generating admicret file in MSP as well as "panic: unable to bootstrap orderer. Error reading genesis block file: open genesisblock: no such file or directory" I would appreciate if you could guide me in generating genesis block and the admincrt. I appreciate any help you can provide. I am referencing the fabric "Deploying a production network."

gautamarora24 (Tue, 20 Jul 2021 16:14:54 GMT):
Has joined the channel.

palra (Tue, 20 Jul 2021 16:41:29 GMT):
Hi there! I'm tring to debug performance issues on our HLF network. We're getting from 200 to 600ms response time from `getStateByPartialCompositeKey` calls in our NodeJS chaincode. Is that an expected response time? It should be a kind of straightforward key lookup, so why does it takes so long? Considering that `getState` calls takes around 50ms from our measures.

palra (Tue, 20 Jul 2021 16:44:47 GMT):
The network is deployed on a Kubernetes cluster, on AWS with m4.large EC2 instances. We completely removed any CPU limits on the peer and chaincode pods (deployed as an external service) to make sure we don't hit any CPU throttling.

dhoffman32 (Tue, 20 Jul 2021 18:11:38 GMT):
Has joined the channel.

palra (Tue, 20 Jul 2021 18:45:35 GMT):
You should build your own backend, that will communicate with your HLF network. That's what the Fabric SDK is made for actually! Also, why do you have that hardware wallet requirement? HLF workflows are really different from public chains ones, so I'm pretty sure you won't actually need that. Usually, in HLF applications, the authentication layer is done both on the backend and on the HLF peer. At your backend level, it would be authentication for users that will use the network on behalf of your application, and the peer that will interact with the rest of the network will authenticate itself as a member of the organization it's enrolled to

Skander_m (Tue, 20 Jul 2021 23:56:10 GMT):
Hi all, I'm new to hyperledger Fabric: - Is it possible to give and revoke access dynamically to an organization ? - Is it possible to give access to a particular asset (a particular id) and not to the whole collection ? otherwise I will be obliged to create a private data collection per asset id (which can be thousands or millions)

romenon2703 (Wed, 21 Jul 2021 05:43:58 GMT):
Has joined the channel.

romenon2703 (Wed, 21 Jul 2021 05:47:07 GMT):
Hi, I am new to Blockchain and Fabric. I have 3 beginner's question. - Can anyone outside the consortium can get Read access to the data in the ledger? Wanted to give access to 3rd party vendors who are not necessarily contributing to the network but need to access data for analysis purpose. - Can we capture the log for every get request from the blockchain without invoking the chaincode? - Is it possible to have different data structure for each organization for the same individual

romenon2703 (Wed, 21 Jul 2021 05:47:53 GMT):
3. Is it possible to have different data structure for each of the organizations having similar objects?

nehajain20683 (Wed, 21 Jul 2021 07:19:55 GMT):
Has joined the channel.

yaozhaoyuan (Wed, 21 Jul 2021 07:57:05 GMT):
Has joined the channel.

bhaaratkhatri (Wed, 21 Jul 2021 08:22:16 GMT):
Has joined the channel.

janrockdev (Wed, 21 Jul 2021 08:49:26 GMT):
Has left the channel.

Maginaro (Wed, 21 Jul 2021 10:02:23 GMT):
Has joined the channel.

TomRobertson1 (Wed, 21 Jul 2021 12:07:40 GMT):
Hi, I've been editing: https://github.com/IBM/Blockchain-for-maintaining-Digital-Assets/blob/master/README.md for my masters dissertation, and trying to add an offers array to a digital asset object that allows users to make an offer. Having issues updating this array. Therefore I added an empty 'offers' array when a digital asset is created. The method to push to the array is called: let response = await networkObj.contract.submitTransaction('makeOffer', assetSaleId, assetOfferId); In the contract methods, the Id's are used to read the asset (all data returns/read correctly let assetSale = await this.readDigitalAsset(ctx, assetSaleId); let assetSaleAsset = assetSale.data; let assetOffer = await this.readDigitalAsset(ctx, assetOfferId); let assetOfferAsset = assetOffer.data; let offer = new Offer(assetOfferAsset.assetOwner, assetOfferAsset.assetId); assetSaleAsset['offers'].push(JSON.stringify(offer)); also tried: // assetSaleAsset.offers.push(offer); //doesnt work // assetSaleAsset.offers.push(JSON.stringify(offer)); //doesnt work // assetSaleAsset['offers'].push(offer);

yo-va-ni (Wed, 21 Jul 2021 18:06:55 GMT):
Has joined the channel.

gentios (Thu, 22 Jul 2021 11:34:53 GMT):
Hi everyone, I am getting an error on the peer: ```unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=10.244.2.83:49488 error="identity expired" grpc.code=Unknown grpc.call_duration=347.628µs ```

gentios (Thu, 22 Jul 2021 11:34:53 GMT):
Hi everyone, I am getting an error on the peer: ```unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=10.244.2.83:49488 error="identity expired" grpc.code=Unknown grpc.call_duration=347.628µs ``` I enrolled again the peer certificates but I don't know why its saying this, any help

ideree (Thu, 22 Jul 2021 11:41:44 GMT):
Has joined the channel.

anjalinaik (Thu, 22 Jul 2021 12:29:40 GMT):
Hi All, can someone please guide me if i need to have an AND endorsement policy, how do i update the channel configuration

GGWP (Thu, 22 Jul 2021 13:00:06 GMT):
Has joined the channel.

GGWP (Thu, 22 Jul 2021 13:00:07 GMT):
Hey, does anyone know why my second org peer is not receiving any invoke routing requests? Is it a orderer issue?

septcinquante (Thu, 22 Jul 2021 15:21:41 GMT):
Has joined the channel.

mianko (Thu, 22 Jul 2021 15:52:29 GMT):
Has joined the channel.

faizulbari (Thu, 22 Jul 2021 16:00:29 GMT):
Has joined the channel.

AmarSrivastava1 (Thu, 22 Jul 2021 16:16:52 GMT):
Has joined the channel.

IV12 (Thu, 22 Jul 2021 16:31:15 GMT):
Hi everyone,

IV12 (Thu, 22 Jul 2021 16:31:28 GMT):
I would like to know how can one do to use the second organization (ORG2) another different machine. and I specify (V: 2.2) because it is completely different from version 1.4 (ORG1) on a machine (ORG2) another machine

IV12 (Thu, 22 Jul 2021 16:31:42 GMT):
I prescribe: these commands do not exist in V 2.2: (byfn.sh) (./byfn.sh generate)...

IV12 (Thu, 22 Jul 2021 16:31:58 GMT):
My structure: folder -bin : () folder -config : (configtx.yaml), (core.yaml), (orderer.yaml) folder -network : [ folder -configtx : (configtx.yaml) folder -docker : (docker-compose-ca.yaml), (docker-compose-couch.yaml), (docker- compose-test-net) folder -organiszations : [ (ccp-template.yaml) folder -cryptogen : (), (), () folder -fabric-ca : (), (), () ] ]

IV12 (Thu, 22 Jul 2021 16:32:11 GMT):
when I run the script (./network.sh): I manage to create two orgs (1ORG) and (ORG2), I have managed to deploy my chaincode above on the channel (mychannel). But now, what i am looking for is how to be able to do all of this with one (ORG2) on another machine. with a simple method please.

IV12 (Thu, 22 Jul 2021 16:32:31 GMT):
V2.2 !!!

cpux07 (Thu, 22 Jul 2021 18:49:09 GMT):
Has joined the channel.

playswithblocks (Thu, 22 Jul 2021 19:06:31 GMT):
Has joined the channel.

allysonugarte (Thu, 22 Jul 2021 19:21:05 GMT):
Has joined the channel.

LucyLow (Fri, 23 Jul 2021 01:10:07 GMT):
Has joined the channel.

ManojTaleka (Fri, 23 Jul 2021 06:29:27 GMT):
Has joined the channel.

GrahamLeach (Fri, 23 Jul 2021 08:17:28 GMT):
Has joined the channel.

Shania-xian (Fri, 23 Jul 2021 10:28:15 GMT):
Has joined the channel.

Seyle (Fri, 23 Jul 2021 17:05:14 GMT):
Has joined the channel.

Seyle (Fri, 23 Jul 2021 17:05:14 GMT):
Hi all, I am working on a chaincode and I'm using java SDK, and I want to use events to know when a transaction is pushed to the blockchain. I know I need to set the event in the chaincode, at the end when the transaction has been successfully executed, and then with the SDK use addContractListener. This is where I'm stuck, I don't know how to implement/use it. It takes as parameter Consumer, this parameter I don't know where to get it from too? Or perhaps I am wrong and should use something else to get the events ? Hoping someone can help me, thanks to you 🙂!

Jess_Hurwitz (Fri, 23 Jul 2021 22:42:49 GMT):
Has joined the channel.

Alameenb (Sat, 24 Jul 2021 00:15:36 GMT):
Has joined the channel.

merq (Sat, 24 Jul 2021 01:14:08 GMT):
Has joined the channel.

ashutoshsharma01 (Sat, 24 Jul 2021 07:02:26 GMT):
Has joined the channel.

ashutosh1 (Sat, 24 Jul 2021 12:35:39 GMT):
Has joined the channel.

db2127 (Sat, 24 Jul 2021 15:04:14 GMT):
Has joined the channel.

slsanc (Sat, 24 Jul 2021 16:32:12 GMT):
Has joined the channel.

slsanc (Sat, 24 Jul 2021 16:33:36 GMT):
Is there a guide anywhere for how to deploy a production instance of a Hyperledger network on physical computers?

mirshahzad (Sat, 24 Jul 2021 16:33:57 GMT):
Has joined the channel.

slsanc (Sat, 24 Jul 2021 16:34:52 GMT):
I've gone through the tutorials in the docs, but the test network they give is an emulation only it seems; it uses docker containers to simulate having multiple computers. .

slsanc (Sat, 24 Jul 2021 16:34:52 GMT):
I've gone through the tutorials in the docs, but the test network they give is an emulation only it seems; it uses docker containers to simulate having multiple computers.

slsanc (Sat, 24 Jul 2021 16:35:37 GMT):
I actually have five PCs here and would like to use them to set a network.

slsanc (Sat, 24 Jul 2021 16:35:37 GMT):
I actually have five PCs here and would like to use them to set a Hyperledger network.

slsanc (Sat, 24 Jul 2021 16:36:04 GMT):
Is there any guide that would help me do that?

mengxi123 (Sun, 25 Jul 2021 05:17:02 GMT):
Has joined the channel.

qiqo (Sun, 25 Jul 2021 05:17:10 GMT):
Has joined the channel.

mengxi123 (Sun, 25 Jul 2021 05:23:42 GMT):
Start the container through docker-compose, and then the container with only one node in each organization can be started. It has been started several times, and only one of the two nodes in each organization can be started. Sometimes it is the first node, sometimes it is the second node. The container error message is panic: Error opening leveldb: resource temporarily unavailable

HarshMultani (Sun, 25 Jul 2021 09:21:01 GMT):
Hi Everyone, I am facing the following issue, when the gateway is trying to connect using the connection profile and gateway options.

HarshMultani (Sun, 25 Jul 2021 09:21:03 GMT):
2021-07-24T13:39:03.866Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-07-24T13:39:03.867Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.org1.example.com url:grpcs://localhost:7051 timeout:3000 2021-07-24T13:39:03.893Z - info: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer0.org1.example.com due to Error: Failed to connect before the deadline on Endorser- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true at checkState (/home/user/Documents/Learnings/aries-learning/aries-javascript/aries-framework-javascript/node_modules/@grpc/grpc-js/src/client.ts:169:18) at Timeout._onTimeout (/home/user/Documents/Learnings/aries-learning/aries-javascript/aries-framework-javascript/node_modules/@grpc/grpc-js/src/channel.ts:579:9) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) { connectFailed: true } 2021-07-24T13:39:07.452Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-07-24T13:39:07.452Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.org1.example.com url:grpcs://localhost:7051 timeout:3000 2021-07-24T13:39:07.453Z - error: [ServiceEndpoint]: ServiceEndpoint grpcs://localhost:7051 reset connection failed :: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-07-24T13:39:07.453Z - error: [DiscoveryService]: send[mychannel] - no discovery results

HarshMultani (Sun, 25 Jul 2021 09:21:28 GMT):
Can anyone tell why is it occuring and how can it be resolved?

HarshMultani (Sun, 25 Jul 2021 09:21:28 GMT):
Can anyone tell why is it occurring and how can it be resolved?

NajetBENHAMOUDA (Sun, 25 Jul 2021 11:15:46 GMT):
Has joined the channel.

lavaicer (Sun, 25 Jul 2021 12:04:59 GMT):
Has joined the channel.

shumpeishimizu (Mon, 26 Jul 2021 04:21:04 GMT):
Has joined the channel.

amarnadh (Mon, 26 Jul 2021 10:53:22 GMT):
Has joined the channel.

amarnadh (Mon, 26 Jul 2021 10:55:33 GMT):
I was trying out BAF for HLF, TASK [/home/blockchain-automation-framework/platforms/hyperledger-fabric/configuration/../../shared/configuration/roles/check/k8_component : Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding , this error is occuring. Can anyone tell me why could this be happening?

amarnadh (Mon, 26 Jul 2021 10:55:33 GMT):
I was trying out BAF for HLF, TASK [/home/blockchain-automation-framework/platforms/hyperledger-fabric/configuration/../../shared/configuration/roles/check/k8_component : Wait for ClusterRoleBinding supplychain-net-role-tokenreview-binding , this error is occuring. Can anyone tell me why could this be happening? I am running site.yaml in with network.yaml in samples. Also git push is giving error even though I have given all the data in gitops correctly. Can someone please help troubleshoot the issues?

aspannag (Mon, 26 Jul 2021 11:41:04 GMT):
Has joined the channel.

IV12 (Mon, 26 Jul 2021 12:36:30 GMT):
Hello, I'm in the same situation as you. I am looking to deploy two organizations each in two different machines. Did you get any answers?

HelliHell (Mon, 26 Jul 2021 14:56:24 GMT):
Has joined the channel.

sukrutsathaye (Mon, 26 Jul 2021 16:24:15 GMT):
Has joined the channel.

cel (Mon, 26 Jul 2021 19:37:55 GMT):
Has joined the channel.

tkuhrt (Mon, 26 Jul 2021 21:44:06 GMT):
@amarnadh : Have you asked in the #blockchain-automation-framework channel?

aymankhan (Tue, 27 Jul 2021 10:36:19 GMT):
Has joined the channel.

gentios (Tue, 27 Jul 2021 11:50:43 GMT):
Hi guys, I am exporting the `export CORE_CHAINCODE_BUILDER="hyperledger/fabric-ccenv:1.4"` but it does not override the `fabric-ccenv:latest` I still get ```Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:latest: API error (404): manifest for hyperledger/fabric-ccenv:latest not found: manifest unknown: manifest unknown ```

gentios (Tue, 27 Jul 2021 11:51:14 GMT):
The issue arise in `k8s` `peer pod`

gentios (Tue, 27 Jul 2021 12:45:22 GMT):
anyone any help, it is about a prod network and I need to solve it ASAP :exploding_head:

gentios (Tue, 27 Jul 2021 12:49:54 GMT):
my peer version: ```peer: Version: 1.4.1 Commit SHA: 87074a7 Go version: go1.11.5 OS/Arch: linux/amd64 Chaincode: Base Image Version: 0.4.15 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger ```

ueesha (Tue, 27 Jul 2021 14:15:30 GMT):
Has joined the channel.

ShashankKulkarni1 (Tue, 27 Jul 2021 14:41:48 GMT):
Has joined the channel.

pSchlarb (Tue, 27 Jul 2021 15:47:50 GMT):
Has left the channel.

db2127 (Tue, 27 Jul 2021 18:13:46 GMT):
Hello Everyone... how can we update private data against a key in HL 1.4?

gentios (Tue, 27 Jul 2021 18:17:52 GMT):
what do you mean with update private data ?

DecentralLabs (Tue, 27 Jul 2021 19:41:05 GMT):
Has joined the channel.

robnik911 (Tue, 27 Jul 2021 21:10:20 GMT):
Has joined the channel.

knagware (Wed, 28 Jul 2021 04:38:44 GMT):
Has joined the channel.

db2127 (Wed, 28 Jul 2021 08:12:20 GMT):
We have a private collection for one org only. When we are trying to have getPrivateData and PutPrivateData in the same transaction, it gives Endorsement Policy Failure.

prakash04 (Wed, 28 Jul 2021 08:26:49 GMT):
Hello Everyone . I am using HLF 1.4 node sdk and getting SimulateProposal Error with high input send rate. 2021-07-28 07:46:34.211 UTC [endorser] callChaincode -> INFO 98e [mychannel][cb17f6a5] Exit chaincode: name:"mycc" (500002ms) 2021-07-28 07:46:34.212 UTC [endorser] SimulateProposal -> ERRO 98f [mychannel][cb17f6a5] failed to invoke chaincode name:"mycc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1225 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:313

prakash04 (Wed, 28 Jul 2021 08:27:11 GMT):
Can someone please help troubleshooting this timeout issue ?

matthieublottiere (Wed, 28 Jul 2021 10:20:31 GMT):
Has joined the channel.

matthieublottiere (Wed, 28 Jul 2021 10:20:31 GMT):
Hello there, regarding couchdb index: the documentation only mentions the inclusion of the index in the chaincode package. What about external service chaincode? Should we create the index through couchdb API ?

AbhijeetSamanta (Wed, 28 Jul 2021 10:45:33 GMT):
Hi Team, I am Getting error when sumbit transaction on hyperledger fabric 2.x in orderer as rejected by Consenter: channel mainchannel is not serviced by me on orderer however all orderer is running fine

AbhijeetSamanta (Wed, 28 Jul 2021 10:45:53 GMT):
please help me someone it

prakash04 (Wed, 28 Jul 2021 11:01:08 GMT):
Any help on this would be highly appreciated

SudheerKaspa (Wed, 28 Jul 2021 11:18:47 GMT):
Hi I am trying to run this but there is no such function Client.newPeer https://hyperledger.github.io/fabric-sdk-node/release-2.2/tutorial-grpc-settings.html

SudheerKaspa (Wed, 28 Jul 2021 11:19:41 GMT):
Hi Also in the new fabric-node-sdk-2.2 https://hyperledger.github.io/fabric-sdk-node/release-2.2

SudheerKaspa (Wed, 28 Jul 2021 11:20:19 GMT):
I dont see support for many functions which were supported by https://hyperledger.github.io/fabric-sdk-node/release-1.4/

venzi (Wed, 28 Jul 2021 12:47:06 GMT):
Has joined the channel.

Gavimat (Wed, 28 Jul 2021 13:47:53 GMT):
Hi, I was wondering whether I could ask some questions about Hyperledger Explorer on this channel.

RafaelAPB (Wed, 28 Jul 2021 14:45:01 GMT):
Will the ledger snapshot functionality be exposed in a future version of the SDK?

ChristosPaschalidis (Wed, 28 Jul 2021 14:48:59 GMT):
Has joined the channel.

IV12 (Wed, 28 Jul 2021 16:49:45 GMT):
Is there a guide anywhere for how to deploy a production instance of a Hyperledger network on physical computers?

IV12 (Wed, 28 Jul 2021 16:49:48 GMT):
I would like to know how can one do to use the second organization (ORG2) another different machine. and I specify (V: 2.2) because it is completely different from version 1.4 (ORG1) on a machine (ORG2) another machine I prescribe: these commands do not exist in V 2.2: (byfn.sh) (./byfn.sh generate)...

cpux07 (Wed, 28 Jul 2021 17:22:17 GMT):
Hi does anyone know if there are fabric 2.3.2 build for s390x arc available? I am trying to build a fabric nextwork on one one o these machines and this is what I am getting when i run ./bootstrap.sh script``` `linux1@ubuntu01:~/fabric/scripts$ ./bootstrap.sh Clone hyperledger/fabric-samples repo ===> Changing directory to fabric-samples fabric-samples v2.3.2 does not exist, defaulting main Pull Hyperledger Fabric binaries ===> Downloading version 2.3.2 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.3.2/hyperledger-fabric-linux-s390x-2.3.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 71 0 --:--:-- --:--:-- --:--:-- 71 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 2.3.2 platform specific fabric binary is not available to download <----` ```

ankitm123 (Wed, 28 Jul 2021 17:43:37 GMT):
Seems like it's only amd64 atm (for windows, linux and macOS): github.com/hyperledger/fabric/releases

dwatkins123 (Wed, 28 Jul 2021 18:37:55 GMT):
Has joined the channel.

aspannag (Wed, 28 Jul 2021 18:56:23 GMT):
Has left the channel.

davidfdr (Wed, 28 Jul 2021 20:33:10 GMT):
Has joined the channel.

zenilvaghasiya (Wed, 28 Jul 2021 22:40:55 GMT):
Has joined the channel.

hs2361 (Thu, 29 Jul 2021 05:45:20 GMT):
@MaternaDev I'm working on an end-to-end project using Hyperledger Fabric. I'm using Node and Express for the backend, where I am also using the Fabric Node SDKs to authenticate users and interact with the chaincode. The frontend is made with Svelte. Feel free to check it out if you need an example: https://github.com/hs2361/examnet

hs2361 (Thu, 29 Jul 2021 06:01:52 GMT):
Hi everyone! I am using composite key queries using Fabric and LevelDB. I have an index name of "answerSheetId~examId", where the first part of the key is the ID of an answer sheet, and the second part is the ID of an exam. I can use the `getStateByPartialCompositeKey("answerSheetId~examId", [answerSheetId])` to get all the records with the given answer sheet ID. However, I would also like to query using just the latter part of my key (i.e. the examId) to find all records with the given examId (without knowing the answer sheet ID). Could someone here please help me out and tell me how I can do that? Or do I need to create a new composite key alongside the first one (namely, "examId~answerSheetId")? Thanks in advance :) !

nedaa2020 (Thu, 29 Jul 2021 07:19:48 GMT):
Has joined the channel.

LeslytH (Thu, 29 Jul 2021 08:01:25 GMT):
Has joined the channel.

joarder97 (Thu, 29 Jul 2021 09:14:14 GMT):
Has joined the channel.

Drilmo (Thu, 29 Jul 2021 11:58:15 GMT):
Has joined the channel.

thongtran (Thu, 29 Jul 2021 15:57:18 GMT):
Has joined the channel.

thiagooggioni (Thu, 29 Jul 2021 17:35:50 GMT):
Has joined the channel.

thiagooggioni (Thu, 29 Jul 2021 17:35:51 GMT):
channel failed

agentcooper75 (Thu, 29 Jul 2021 18:31:00 GMT):
Has joined the channel.

AnuragChauhan (Fri, 30 Jul 2021 03:29:17 GMT):
Has joined the channel.

JuanEstrada (Fri, 30 Jul 2021 03:36:38 GMT):
Has joined the channel.

rsharmajp (Fri, 30 Jul 2021 07:59:53 GMT):
Has joined the channel.

rsharmajp (Fri, 30 Jul 2021 08:02:02 GMT):
Hi All,

rsharmajp (Fri, 30 Jul 2021 08:03:25 GMT):
I am using HL 2.3 and with non docker network setup . Network is working fine and even I can create the Asset and do all the CRUD operation.

rsharmajp (Fri, 30 Jul 2021 08:04:33 GMT):
However, to access the Network through RestAPi/Getway I am trying to register and enroll the ADMIN user

rsharmajp (Fri, 30 Jul 2021 08:04:40 GMT):
But I am getting below error

rsharmajp (Fri, 30 Jul 2021 08:04:40 GMT):
But I am getting below error while enrolling the Admin user.

rsharmajp (Fri, 30 Jul 2021 08:04:40 GMT):
But I am getting below error while enrolling the Admin user.``` *Java code File Name: EnrollAdmin.java``` Enrollment enrollment = caClient.enroll("Admin", "adminpw", enrollmentRequestTLS);* ``` ``` ``` *Error as below* ```

rsharmajp (Fri, 30 Jul 2021 08:04:40 GMT):
But I am getting below error while enrolling the Admin user.``` *Code Line : Enrollment enrollment = caClient.enroll("Admin", "adminpw", enrollmentRequestTLS);* ```

rsharmajp (Fri, 30 Jul 2021 08:05:24 GMT):
Exception in thread "main" org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Url:http://127.0.0.1:8052, Failed to enroll user admin at org.hyperledger.fabric_ca.sdk.HFCAClient.enroll(HFCAClient.java:518) at fabricjavaclient.EnrollAdmin.main(EnrollAdmin.java:50) Caused by: java.net.SocketException: Connection reset

rsharmajp (Fri, 30 Jul 2021 08:05:24 GMT):
Exception in thread "main" org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Url:http://127.0.0.1:8052, *Failed to enroll user admin* at org.hyperledger.fabric_ca.sdk.HFCAClient.enroll(HFCAClient.java:518) at fabricjavaclient.EnrollAdmin.main(EnrollAdmin.java:50) *Caused by: java.net.SocketException: Connection reset*

rsharmajp (Fri, 30 Jul 2021 08:05:24 GMT):
Error as below ``` ``` Exception in thread "main" org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Url:http://127.0.0.1:8052, *Failed to enroll user admin* at org.hyperledger.fabric_ca.sdk.HFCAClient.enroll(HFCAClient.java:518) at fabricjavaclient.EnrollAdmin.main(EnrollAdmin.java:50) *Caused by: java.net.SocketException: Connection reset*

rsharmajp (Fri, 30 Jul 2021 08:05:24 GMT):
Error as below ``` Exception in thread "main" org.hyperledger.fabric_ca.sdk.exception.EnrollmentException: Url:http://127.0.0.1:8052, *Failed to enroll user admin* at org.hyperledger.fabric_ca.sdk.HFCAClient.enroll(HFCAClient.java:518) at fabricjavaclient.EnrollAdmin.main(EnrollAdmin.java:50) *Caused by: java.net.SocketException: Connection reset* ```

rsharmajp (Fri, 30 Jul 2021 08:05:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=eBPbWWGr7aEGBcMja) Please help on this

SoundaryaAyyappan (Fri, 30 Jul 2021 08:06:14 GMT):
You can also include the CORE_CHAINCODE_BUILDER by adding new field called "env" in the peer deployment yaml, using kubectl edit deploy -n

pp371 (Fri, 30 Jul 2021 09:42:26 GMT):
Has joined the channel.

pp371 (Fri, 30 Jul 2021 09:44:36 GMT):
Hello! I'm new to Fabric and I'm trying to enroll an admin in the test-network via Java. But I'm always receiving this error: Connect to localhost:7054 ... failed: Connection refused(failed: Connection refused)

pp371 (Fri, 30 Jul 2021 09:44:54 GMT):
What could be wrong?

LeslytH (Fri, 30 Jul 2021 12:19:40 GMT):
from where are you trying to enroll? I think I have gotten a similar issue. Try doing it with admin permissions or open as administrator

pp371 (Fri, 30 Jul 2021 12:24:06 GMT):
I'm trying to enroll the admin with the Java SDK

LeslytH (Fri, 30 Jul 2021 12:51:33 GMT):
Hmm, do you have a screenshot how you are doing it and the exact error?

pp371 (Fri, 30 Jul 2021 14:46:50 GMT):

Clipboard - 30. Juli 2021 15_20.png

pp371 (Fri, 30 Jul 2021 14:47:17 GMT):

Clipboard - 30. Juli 2021 15_21.png

janathraveendra (Fri, 30 Jul 2021 15:07:50 GMT):
Has joined the channel.

janathraveendra (Fri, 30 Jul 2021 15:19:21 GMT):

Clipboard - July 30, 2021 11:19 PM

janathraveendra (Fri, 30 Jul 2021 15:19:29 GMT):
Hi All, I tried to install chaincode on two peers running on EKS. EKS does not have internet so images are pulling from ECR. Chaincode was successfully installed on peer0. but it failed on peer1. Can anyone help on this?

janathraveendra (Fri, 30 Jul 2021 15:20:23 GMT):

Clipboard - July 30, 2021 11:20 PM

SelvamaniGovindaraj (Fri, 30 Jul 2021 16:01:55 GMT):
Has joined the channel.

proberge (Fri, 30 Jul 2021 19:34:05 GMT):
Has joined the channel.

Minnu (Fri, 30 Jul 2021 20:15:39 GMT):
Has joined the channel.

Minnu (Fri, 30 Jul 2021 20:18:50 GMT):
Hi all, I want to know how we can add new organizations and peers dynamically to HF network in version 2.2?

ankitm123 (Sat, 31 Jul 2021 21:58:43 GMT):
The url of the registry is not ECR, but just docker registry, may be u need to configure it properly for the second node.

janathraveendra (Sun, 01 Aug 2021 04:08:22 GMT):
Thanks for the feedback. Can you advise on how to configure the url on second node? btw, I did not configure the url in first node but it works.

rohithkumar (Sun, 01 Aug 2021 07:39:02 GMT):
2021-08-01 07:10:38.788 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 001 Failed to send StepRequest to 5, because: connection to 5(orderer4.example.com:7050) is in state CONNECTING channel=byfn-sys-channel node=1 2021-08-01 07:10:38.788 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 002 Failed to send StepRequest to 2, because: connection to 2(orderer1.example.com:7050) is in state CONNECTING channel=byfn-sys-channel node=1 2021-08-01 07:10:38.788 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 003 Failed to send StepRequest to 3, because: connection to 3(orderer2.example.com:7050) is in state CONNECTING channel=byfn-sys-channel node=1 2021-08-01 07:10:39.787 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 004 Failed to send StepRequest to 2, because: connection to 2(orderer1.example.com:7050) is in state CONNECTING channel=mychannel node=1 2021-08-01 07:10:39.787 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 005 Failed to send StepRequest to 3, because: connection to 3(orderer2.example.com:7050) is in state CONNECTING channel=mychannel node=1 2021-08-01 07:10:39.787 UTC [orderer.consensus.etcdraft] logSendFailure -> ERRO 006 Failed to send StepRequest to 5, because: connection to 5(orderer4.example.com:7050) is in state CONNECTING channel=mychannel node=1

rohithkumar (Sun, 01 Aug 2021 07:40:17 GMT):
Suddenly My VM restarted , when i bring back the fabric network , Orderer is not reachable... when i checked orderer logs , it is failing t connect to the other orderers

akash242891 (Sun, 01 Aug 2021 12:35:50 GMT):
Has joined the channel.

smfk (Sun, 01 Aug 2021 18:52:58 GMT):
Has joined the channel.

fboris (Sun, 01 Aug 2021 19:07:49 GMT):
Has joined the channel.

udaya.rkrish (Sun, 01 Aug 2021 21:44:55 GMT):
Has joined the channel.

Gavimat (Mon, 02 Aug 2021 00:27:14 GMT):
Am starting with Hyperledger, I've been reading a lot but just ain't feeling confident about my skills. Any ideas on how to learn from the beginning and start building my own networks?

KentBull (Mon, 02 Aug 2021 01:54:03 GMT):
Has joined the channel.

NgugsJohn (Mon, 02 Aug 2021 02:32:03 GMT):
Has joined the channel.

maurolionp (Mon, 02 Aug 2021 06:39:07 GMT):
Has joined the channel.

wcc19840827 (Mon, 02 Aug 2021 07:55:33 GMT):
Has joined the channel.

rsharmajp (Mon, 02 Aug 2021 12:46:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=LKnjrFGzddd3xZ7Mm) Anyone please help on this , currently this is roadblock for us ? Quick help will be highly appreciated.

DanielHaren (Mon, 02 Aug 2021 14:20:47 GMT):
Has joined the channel.

AlessandraC (Mon, 02 Aug 2021 14:33:10 GMT):
Has joined the channel.

GabrieleVitae (Mon, 02 Aug 2021 14:53:19 GMT):
Has joined the channel.

cod3rfabric (Mon, 02 Aug 2021 16:35:01 GMT):
Has joined the channel.

cod3rfabric (Mon, 02 Aug 2021 16:36:02 GMT):
Can you all guide me about the connection between the web server and the fabric network! For example, webserver and fabric network are on the same machine, the connection will look like this: "peer/orderer.example.com: url: grpcs://localhost:XXXX ..." So if the webserver and fabric network are located on two different machines, how should I configure in peer/orderer docker compose files? I tried to change url: grpcs://localhost to grpcs://IP in connection file, but it didn't work. I think that services expose in 127.0.0.1:XXXX so when i changed to IP it is failed. This is my infrastructure: https://github.com/70G37H3R/fabricswarm. I used Docker swarm for deployment.

unnati (Mon, 02 Aug 2021 17:32:16 GMT):
Has joined the channel.

praveenkpandu (Mon, 02 Aug 2021 22:40:58 GMT):
Has joined the channel.

rubix982 (Tue, 03 Aug 2021 02:30:46 GMT):
Has joined the channel.

areyal (Tue, 03 Aug 2021 05:06:06 GMT):
Has joined the channel.

pavithra8895 (Tue, 03 Aug 2021 05:49:09 GMT):
Has joined the channel.

pavithra8895 (Tue, 03 Aug 2021 05:49:32 GMT):
someone please help me

pavithra8895 (Tue, 03 Aug 2021 05:49:53 GMT):
I am getting this error on windows 10 and the command I am using is "./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript/ -ccl javascript" and the error I am getting is : Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Chaincode installation on peer0.org1 has failed Deploying chaincode failed Docker version 20.10.7, build f0df350 docker-compose version 1.29.2, build 5becea4c

pavithra8895 (Tue, 03 Aug 2021 05:50:51 GMT):
I am new to hyledger-fabric

AboliShinde (Tue, 03 Aug 2021 08:34:03 GMT):
Has joined the channel.

iambatman (Tue, 03 Aug 2021 08:43:37 GMT):
Does anybody has an answer to this question

iambatman (Tue, 03 Aug 2021 08:43:39 GMT):
https://stackoverflow.com/questions/68630909/hyperledger-fabric-2-0-identity-0-does-not-satisfy-principal-the-identity-is-a

Bandana 1 (Tue, 03 Aug 2021 13:08:30 GMT):
Has joined the channel.

Bandana 1 (Tue, 03 Aug 2021 13:17:04 GMT):
I am facing an issue where the peer is trying to communicate to the orderer using the host ip and port. The entire network is setup in the same VM in AWS EC2. Getting error while instantiating the chaincode

Bandana 1 (Tue, 03 Aug 2021 13:17:06 GMT):
2021-08-03 12:21:39.767 UTC [protoutils] ValidateProposalMessage -> WARN 071 channel [testchannel2]: MSP error: channel doesn't exist 2021-08-03 12:21:39.767 UTC [comm.grpc.server] 1 -> INFO 072 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.1:33308 error="access denied: channel [testchannel2] creator org [nodeaMSP]" grpc.code=Unknown grpc.call_duration=368.3µs 2021-08-03 12:21:39.786 UTC [comm.grpc.server] 1 -> INFO 073 streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.19.0.1:33312 grpc.code=OK grpc.call_duration=102.903µs 2021-08-03 12:21:39.796 UTC [protoutils] ValidateProposalMessage -> WARN 074 channel [testchannel2]: MSP error: channel doesn't exist 2021-08-03 12:21:39.796 UTC [comm.grpc.server] 1 -> INFO 075 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.1:33308 error="access denied: channel [testchannel2] creator org [nodeaMSP]" grpc.code=Unknown grpc.call_duration=366.38µs 2021-08-03 12:33:25.327 UTC [endorser] callChaincode -> INFO 076 [][ae24e534] Entry chaincode: name:"lscc" 2021-08-03 12:33:25.327 UTC [endorser] callChaincode -> INFO 077 [][ae24e534] Exit chaincode: name:"lscc" (0ms) 2021-08-03 12:33:25.327 UTC [endorser] ProcessProposal -> ERRO 078 [][ae24e534] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: ae24e534be8d7851a77070850acf5eacda822e9ee6186d84142c89089d8489e3 2021-08-03 12:33:25.328 UTC [comm.grpc.server] 1 -> INFO 079 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.4:44570 grpc.code=OK grpc.call_duration=805.215µs 2021-08-03 12:43:47.062 UTC [ConnProducer] NewConnection -> ERRO 07a Failed connecting to {10.160.44.13:8001 [orderer8MSP]} , error: context deadline exceeded 2021-08-03 12:43:47.063 UTC [ConnProducer] NewConnection -> ERRO 07b Could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] 2021-08-03 12:43:47.063 UTC [deliveryClient] connect -> ERRO 07c Failed obtaining connection: could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] 2021-08-03 12:43:47.063 UTC [deliveryClient] func2 -> WARN 07d peer is a static leader, ignoring peer.deliveryclient.reconnectTotalTimeThreshold 2021-08-03 12:43:47.063 UTC [deliveryClient] try -> WARN 07e Got error: could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] , at 13 attempt. Retrying in 1h0m0s

BrunoMartins3 (Tue, 03 Aug 2021 13:48:04 GMT):
Has joined the channel.

msarres (Tue, 03 Aug 2021 14:39:44 GMT):
Some hints: Check the docker internal ports of the orderer (HL uses 7050 as default); Check the access from direct IP from inside the container, docker network may need to access different addresses than your hosts. Try a ´telnet 10.160.44.13 8001´ from inside the peer container. Check the orderer container to verify if there is any helpful logs (put the FABRIC_LOGGING_SPEC=debug ) Hope it helps

PedroBranco (Tue, 03 Aug 2021 16:44:32 GMT):
Has joined the channel.

LAYLeangsros (Tue, 03 Aug 2021 17:01:19 GMT):
Has joined the channel.

rud9321 (Tue, 03 Aug 2021 19:32:31 GMT):
Has joined the channel.

Bandana 1 (Wed, 04 Aug 2021 04:41:35 GMT):
Thanks a lot msarres for your inputs. In my case Telnet from within the peer container to 10.160.44.13:8001 is not working. Is there any specific configuration to be done in AWS, to make telnet work from within the container. We are using wget command to check the connectivity.

LuisaB 2 (Wed, 04 Aug 2021 05:19:24 GMT):
Has joined the channel.

iambatman (Wed, 04 Aug 2021 07:14:42 GMT):
`2021-08-04 06:36:29.755 UTC [committer.txvalidator] validateTx -> ERRO 004 Dispatch for transaction txId = ebca06fc317ef078d896182e7814f3d9e847266b2fa4a80ae443e17a9ad976da returned error: validation of endorsement policy for chaincode _lifecycle in tx 8:0 failed: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 2 of the 'Endorsement' sub-policies to be satisfied `

iambatman (Wed, 04 Aug 2021 07:14:42 GMT):
`2021-08-04 06:36:29.755 UTC [committer.txvalidator] validateTx -> ERRO 004 Dispatch for transaction txId = ebca06fc317ef078d896182e7814f3d9e847266b2fa4a80ae443e17a9ad976da returned error: validation of endorsement policy for chaincode _lifecycle in tx 8:0 failed: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 2 of the 'Endorsement' sub-policies to be satisfied ` Can somebody help me on this error

iambatman (Wed, 04 Aug 2021 07:15:18 GMT):
I m using chaincode lifecyle 2.0

areyal (Wed, 04 Aug 2021 07:26:44 GMT):
Hi everyone, I had setup and running a fabric blockchain V2.2.0 , when the peer node crashes and restart or manually restarted the peer node the ledger_transaction_count metric data is reset to 0 also same in case of endorser_proposals_received counter . How can we preserve this value, is there any config that I missed? Any help will be appreciated. Thanks in advance.

mcourtin (Wed, 04 Aug 2021 07:41:46 GMT):
Has joined the channel.

luis.settlemint (Wed, 04 Aug 2021 08:55:56 GMT):
Has joined the channel.

luis.settlemint (Wed, 04 Aug 2021 08:55:56 GMT):
Hi, perhaps someone has this issue before. I'm trying to start an ordering service using the new approach mentioned in v2.3 (without a system channel), the problem I have is that when I send the transaction to the first orderer I receive a response like the following ``` Status: 201 { "name": "luishlf01-channel", "url": "/participation/v1/channels/luishlf01-channel", "consensusRelation": "follower", "status": "onboarding", "height": 0 } ```

luis.settlemint (Wed, 04 Aug 2021 08:56:50 GMT):
and the orderer logs ``` 2021-08-04 10:56:15.152 CEST [comm.grpc.server] 1 -> INFO 3e1 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=10.0.118.149:26200 grpc.peer_subject="CN=luishlf01orderer01-0f42,OU=orderer" grpc.code=OK grpc.call_duration=79.053µs 2021-08-04 10:56:15.152 CEST [orderer.common.cluster.puller] fetchLastBlockSeq -> WARN 3e2 Received status:NOT_FOUND from luishlf01orderer01-0f42p.settlemint.com:7050: faulty node, received: status:NOT_FOUND channel=luishlf01-channel 2021-08-04 10:56:15.152 CEST [orderer.common.cluster.puller] func1 -> WARN 3e3 Received error of type 'faulty node, received: status:NOT_FOUND ' from luishlf01orderer01-0f42p.settlemint.com:7050 channel=luishlf01-channel 2021-08-04 10:56:15.152 CEST [orderer.common.cluster.puller] connectToSomeEndpoint -> WARN 3e4 Could not connect to any endpoint of [{"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=luishlf01-02b6,OU=Fabric,O=SettleMint,L=Leuven,ST=Flemish Brabant,C=BE"}],"Endpoint":"luishlf01orderer01-0f42p.settlemint.com:7050"}] channel=luishlf01-channel ```

luis.settlemint (Wed, 04 Aug 2021 08:57:26 GMT):
Could it be that it is just a networking problem ?

luis.settlemint (Wed, 04 Aug 2021 09:00:26 GMT):
I can provide configtx content and the genesis block decoded if someone wants to inspect it

jlochman (Wed, 04 Aug 2021 09:03:13 GMT):
Has joined the channel.

luis.settlemint (Wed, 04 Aug 2021 09:54:11 GMT):
If you are running in docker you need to link volume

luis.settlemint (Wed, 04 Aug 2021 09:54:39 GMT):
in K8s I link a PV and PVC

areyal (Wed, 04 Aug 2021 09:57:02 GMT):
I am using k8s and Yes, I have mounted a PVC in the pods. inspite of it the counters are reset in the metrics but the blockchain data are still there.

luis.settlemint (Wed, 04 Aug 2021 09:59:45 GMT):
Oh is the metrics server the one that is losing the data. IDK where it stores that data sorry

areyal (Wed, 04 Aug 2021 10:02:55 GMT):
you mean operator inside peer nodes?

luis.settlemint (Wed, 04 Aug 2021 10:03:48 GMT):
exactly, I understand that it is a separate server

amitpadmani-awts (Wed, 04 Aug 2021 12:39:19 GMT):
Has joined the channel.

amunoz (Wed, 04 Aug 2021 19:53:23 GMT):
Has joined the channel.

conanoc (Thu, 05 Aug 2021 01:47:54 GMT):
I'm not sure but you'd better check if you are using the right certificates for the client.

conanoc (Thu, 05 Aug 2021 01:48:16 GMT):
I'm not sure but you'd better check if you are using the right certificates for the client.

cmstonecse (Thu, 05 Aug 2021 03:29:31 GMT):
Has joined the channel.

AjayKalola (Thu, 05 Aug 2021 04:08:26 GMT):
Hello Team, I'm facing the issue while updating the chaincode. Can anyone help me to resolve it. `2021-06-25 12:16:55.458 UTC [msp/identity] Sign -> DEBU 0bf Sign: plaintext: 0A90090A7008031A0C08B792D7860610...324D53500A04657363630A0476736363 2021-06-25 12:16:55.459 UTC [msp/identity] Sign -> DEBU 0c0 Sign: digest: CA0260CE12250C900C831C630D58FC50CAE8296D79C754CAD8A61E4B96039C48 2021-06-25 12:16:55.466 UTC [chaincodeCmd] upgrade -> DEBU 0c1 endorse upgrade proposal, get response Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy` I'm using below command for update the chaincode. peer chaincode upgrade \ --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA \ --clientauth --keyfile ${KEYFILE} \ --certfile ${CERTFILE} \ -n $CHAINCODE_NAME -v $VERSION -c '{"Args":[""]}' -C CHANNEL_NAME -P "AND ('oderer1MSP.member','orderer2MSP.member')" Can anyone please help me as its in production. Thanks.

AjayKalola (Thu, 05 Aug 2021 04:08:26 GMT):
Hello Team, I'm facing the issue while updating the chaincode. Can anyone help me to resolve it. `2021-06-25 12:16:55.458 UTC [msp/identity] Sign -> DEBU 0bf Sign: plaintext: 0A90090A7008031A0C08B792D7860610...324D53500A04657363630A0476736363 2021-06-25 12:16:55.459 UTC [msp/identity] Sign -> DEBU 0c0 Sign: digest: CA0260CE12250C900C831C630D58FC50CAE8296D79C754CAD8A61E4B96039C48 2021-06-25 12:16:55.466 UTC [chaincodeCmd] upgrade -> DEBU 0c1 endorse upgrade proposal, get response Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy` I'm using below command for update the chaincode. `peer chaincode upgrade \ --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA \ --clientauth --keyfile ${KEYFILE} \ --certfile ${CERTFILE} \ -n $CHAINCODE_NAME -v $VERSION -c '{"Args":[""]}' -C CHANNEL_NAME -P "AND ('oderer1MSP.member','orderer2MSP.member')"` Can anyone please help me as its in production. Thanks.

AjayKalola (Thu, 05 Aug 2021 04:08:26 GMT):
Hello Team, I'm facing the issue while updating the chaincode. Can anyone help me to resolve it. I had setup and running a fabric blockchain V1.3 `2021-06-25 12:16:55.458 UTC [msp/identity] Sign -> DEBU 0bf Sign: plaintext: 0A90090A7008031A0C08B792D7860610...324D53500A04657363630A0476736363 2021-06-25 12:16:55.459 UTC [msp/identity] Sign -> DEBU 0c0 Sign: digest: CA0260CE12250C900C831C630D58FC50CAE8296D79C754CAD8A61E4B96039C48 2021-06-25 12:16:55.466 UTC [chaincodeCmd] upgrade -> DEBU 0c1 endorse upgrade proposal, get response Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy` I'm using below command for update the chaincode. `peer chaincode upgrade \ --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA \ --clientauth --keyfile ${KEYFILE} \ --certfile ${CERTFILE} \ -n $CHAINCODE_NAME -v $VERSION -c '{"Args":[""]}' -C CHANNEL_NAME -P "AND ('oderer1MSP.member','orderer2MSP.member')"` Can anyone please help me as its in production. Thanks.

Bandana 1 (Thu, 05 Aug 2021 04:16:36 GMT):
I am facing an issue where the peer is trying to communicate to the orderer using the host ip and port. The entire network is setup in the same VM in AWS EC2. Getting error while instantiating the chaincode. 2021-08-03 12:21:39.767 UTC [protoutils] ValidateProposalMessage -> WARN 071 channel [testchannel2]: MSP error: channel doesn't exist 2021-08-03 12:21:39.767 UTC [comm.grpc.server] 1 -> INFO 072 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.1:33308 error="access denied: channel [testchannel2] creator org [nodeaMSP]" grpc.code=Unknown grpc.call_duration=368.3µs 2021-08-03 12:21:39.786 UTC [comm.grpc.server] 1 -> INFO 073 streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.19.0.1:33312 grpc.code=OK grpc.call_duration=102.903µs 2021-08-03 12:21:39.796 UTC [protoutils] ValidateProposalMessage -> WARN 074 channel [testchannel2]: MSP error: channel doesn't exist 2021-08-03 12:21:39.796 UTC [comm.grpc.server] 1 -> INFO 075 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.1:33308 error="access denied: channel [testchannel2] creator org [nodeaMSP]" grpc.code=Unknown grpc.call_duration=366.38µs 2021-08-03 12:33:25.327 UTC [endorser] callChaincode -> INFO 076 [][ae24e534] Entry chaincode: name:"lscc" 2021-08-03 12:33:25.327 UTC [endorser] callChaincode -> INFO 077 [][ae24e534] Exit chaincode: name:"lscc" (0ms) 2021-08-03 12:33:25.327 UTC [endorser] ProcessProposal -> ERRO 078 [][ae24e534] simulateProposal() resulted in chaincode name:"lscc" response status 500 for txid: ae24e534be8d7851a77070850acf5eacda822e9ee6186d84142c89089d8489e3 2021-08-03 12:33:25.328 UTC [comm.grpc.server] 1 -> INFO 079 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.4:44570 grpc.code=OK grpc.call_duration=805.215µs 2021-08-03 12:43:47.062 UTC [ConnProducer] NewConnection -> ERRO 07a Failed connecting to {10.160.44.13:8001 [orderer8MSP]} , error: context deadline exceeded 2021-08-03 12:43:47.063 UTC [ConnProducer] NewConnection -> ERRO 07b Could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] 2021-08-03 12:43:47.063 UTC [deliveryClient] connect -> ERRO 07c Failed obtaining connection: could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] 2021-08-03 12:43:47.063 UTC [deliveryClient] func2 -> WARN 07d peer is a static leader, ignoring peer.deliveryclient.reconnectTotalTimeThreshold 2021-08-03 12:43:47.063 UTC [deliveryClient] try -> WARN 07e Got error: could not connect to any of the endpoints: [{10.160.44.13:8001 [orderer8MSP]}] , at 13 attempt. Retrying in 1h0m0s

Bandana 1 (Thu, 05 Aug 2021 04:19:05 GMT):
I have even tried to telnet from the docker container to the host ip and port 10.160.44.13:8001. But not able to connect to hostip. If any one has done a HLF network setup in AWS , is there any specific iptables rules that has to be defined. Please suggest if anyone of you has experienced such an issue

iambatman (Thu, 05 Aug 2021 05:03:38 GMT):
for the commit step i am using the following config `export ORDER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem export LEFT_PEER_ADDRESS=peer1.base.left:8003 export RIGHT_PEER_ADDRESS=peer1.base.right:8004 export LEFT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/peers/peer1.base.left/tls/ca.crt export RIGHT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.right/peers/peer1.base.right/tls/ca.crt`

iambatman (Thu, 05 Aug 2021 05:05:39 GMT):
While checking the commit readyness i am getting true for both orgs

conanoc (Thu, 05 Aug 2021 05:56:29 GMT):
and CORE_PEER_MSPCONFIGPATH ?

conanoc (Thu, 05 Aug 2021 06:02:10 GMT):
"for the commit step" what did you do? Can you show your commit command and parameters?

conanoc (Thu, 05 Aug 2021 06:47:18 GMT):
You need to use SignedCDS to upgrade the chaincode because you have two MSPs to sign the upgrade. Make a SignedCDS and install it to peers. Then, you can upgrade it as before. See https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html#creating-the-package

iambatman (Thu, 05 Aug 2021 08:46:49 GMT):
#!/bin/sh set -x export ORDER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem export LEFT_PEER_ADDRESS=peer1.base.left:8003 export RIGHT_PEER_ADDRESS=peer1.base.right:8004 export LEFT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/peers/peer1.base.left/tls/ca.crt export RIGHT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.right/peers/peer1.base.right/tls/ca.crt peer lifecycle chaincode checkcommitreadiness --channelID basechannel --name fabcar --version $1 --sequence 1 --tls --cafile $ORDER_CA --signature-policy "OR ('RightOrgMSP.member','LeftOrgMSP.member')" --output json peer lifecycle chaincode commit \ --peerAddresses $LEFT_PEER_ADDRESS --tlsRootCertFiles $LEFT_PEER_TLS_ROOTCERT_FILE \ --peerAddresses $RIGHT_PEER_ADDRESS --tlsRootCertFiles $RIGHT_PEER_TLS_ROOTCERT_FILE \ --channelID basechannel --tls \ --cafile $ORDER_CA --orderer orderer1.base.order:8000 \ --name fabcar --version $1 \ --signature-policy "OR ('RightOrgMSP.member','LeftOrgMSP.member')" \ --sequence 1 exit;

iambatman (Thu, 05 Aug 2021 08:46:49 GMT):
`#!/bin/sh set -x export ORDER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem export LEFT_PEER_ADDRESS=peer1.base.left:8003 export RIGHT_PEER_ADDRESS=peer1.base.right:8004 export LEFT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/peers/peer1.base.left/tls/ca.crt export RIGHT_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.right/peers/peer1.base.right/tls/ca.crt peer lifecycle chaincode checkcommitreadiness --channelID basechannel --name fabcar --version $1 --sequence 1 --tls --cafile $ORDER_CA --signature-policy "OR ('RightOrgMSP.member','LeftOrgMSP.member')" --output json peer lifecycle chaincode commit \ --peerAddresses $LEFT_PEER_ADDRESS --tlsRootCertFiles $LEFT_PEER_TLS_ROOTCERT_FILE \ --peerAddresses $RIGHT_PEER_ADDRESS --tlsRootCertFiles $RIGHT_PEER_TLS_ROOTCERT_FILE \ --channelID basechannel --tls \ --cafile $ORDER_CA --orderer orderer1.base.order:8000 \ --name fabcar --version $1 \ --signature-policy "OR ('RightOrgMSP.member','LeftOrgMSP.member')" \ --sequence 1 exit;`

iambatman (Thu, 05 Aug 2021 08:47:37 GMT):
@conanoc I have updated my commit scripts

woodymk (Thu, 05 Aug 2021 09:33:03 GMT):
Has joined the channel.

sagaracharya (Thu, 05 Aug 2021 10:28:18 GMT):
Has joined the channel.

woodymk (Thu, 05 Aug 2021 10:50:58 GMT):
Hi everyone, i have some questions about replacing fabric-ca for the TLS part. Please take a look at my stackoverflow question: https://stackoverflow.com/questions/68665127/hyperledger-fabric-3rd-party-tls-ca-setup-or-disable-tls

abraxasccs (Thu, 05 Aug 2021 11:02:57 GMT):
Has joined the channel.

rsebastiany (Thu, 05 Aug 2021 11:27:48 GMT):
Has joined the channel.

MithunH 3 (Thu, 05 Aug 2021 12:17:28 GMT):
Has joined the channel.

merakh (Thu, 05 Aug 2021 17:39:32 GMT):
Has joined the channel.

oussema.gharsallaoui (Thu, 05 Aug 2021 17:48:40 GMT):
Has joined the channel.

oussema.gharsallaoui (Thu, 05 Aug 2021 17:53:45 GMT):
Hello I'm facing this issue: 2021/08/05 18:22:35 Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: target(s) required

patricioibarrag (Thu, 05 Aug 2021 18:56:29 GMT):
Has joined the channel.

conanoc (Fri, 06 Aug 2021 00:56:19 GMT):
You should also set CORE_PEER_MSPCONFIGPATH with the admin MSP.

iambatman (Fri, 06 Aug 2021 04:54:30 GMT):
I have added the path export `CORE_PEER_ADDRESS=peer1.base.left:8003 export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/base.left/users/Admin@base.left/msp export CORE_PEER_LOCALMSPID=LeftOrgMSP`

iambatman (Fri, 06 Aug 2021 04:54:35 GMT):
But still the same error

conanoc (Fri, 06 Aug 2021 09:03:59 GMT):
Strange. I can see no problem here.

zhasni (Fri, 06 Aug 2021 09:04:30 GMT):
Hi, I would like to know if there's a possibility to check the actual endorsment policy installed/used by the peers or CCs containers it's has to be written somewhere ? or it is on the orderers ? thx in advance !

zhasni (Fri, 06 Aug 2021 09:04:30 GMT):
Hi, On v1.4.9 network I would like to know if there's a possibility to check the actual endorsment policy installed/used by the peers or CCs containers it's has to be written somewhere ? or it is on the orderers ? thx in advance !

iambatman (Fri, 06 Aug 2021 09:21:09 GMT):
Thats what i am also confused

iambatman (Fri, 06 Aug 2021 10:04:04 GMT):
This is my entire source code https://github.com/shamonshan/fabric-2.0-external-chaincode.git

DanteCullari (Sat, 07 Aug 2021 07:09:31 GMT):
Has joined the channel.

wifimarketingsolutions (Sat, 07 Aug 2021 09:34:54 GMT):
Has joined the channel.

JesusMG (Sat, 07 Aug 2021 15:42:02 GMT):
Has joined the channel.

JesusMG (Sat, 07 Aug 2021 16:46:40 GMT):
Hi, I have a problem with fabric-chaincode-java. I am trying to configure my machine to have a smart contract in java. For this I am cloning the repository of git fabric-chaincode-java in version 1.4.6, I am doing it in an Amazon EC2 instance. When executing the command ./gradlew clean build install I get the following error:

JesusMG (Sat, 07 Aug 2021 16:46:45 GMT):

Clipboard - 7 de agosto de 2021 18:46

JesusMG (Sat, 07 Aug 2021 16:49:01 GMT):
fabric-chaincode-java buildImage problem

vova777 (Sat, 07 Aug 2021 18:57:30 GMT):
Has joined the channel.

IshanChowdhury (Sun, 08 Aug 2021 10:04:34 GMT):
Has joined the channel.

IshanChowdhury (Sun, 08 Aug 2021 10:17:05 GMT):
Hi Community, Pls let me know what I am doing wrong here. Below is the error I'm getting while Downloading Platform specific fabric binaries on lubuntu 20.04. Thanks in advance ********************************************************************************************************** abc@abc-H81:~$ curl -sSL http://bit.ly/2ysbOFE | bash -s 2.0.0 Clone hyperledger/fabric-samples repo ===> Changing directory to fabric-samples ===> Checking out v2.0.0 of hyperledger/fabric-samples Pull Hyperledger Fabric binaries ===> Downloading version 2.0.0 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.0.0/hyperledger-fabric-linux-i686-2.0.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 20 0 --:--:-- --:--:-- --:--:-- 20 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 2.0.0 platform specific fabric binary is not available to download <---- abc@abc-H81:~$

luisabrunhosa (Sun, 08 Aug 2021 21:55:45 GMT):
Has joined the channel.

ahmedalsalih (Mon, 09 Aug 2021 03:32:48 GMT):
Has joined the channel.

nskishore1993 (Mon, 09 Aug 2021 07:13:15 GMT):
Has joined the channel.

anhduck (Mon, 09 Aug 2021 08:41:24 GMT):
Has joined the channel.

Mr.S (Mon, 09 Aug 2021 09:43:29 GMT):
Has joined the channel.

TomRobertson1 (Mon, 09 Aug 2021 11:44:56 GMT):
Hi - i'm trying to run tests for my smart contract. I have generated them from the vs code extension but cant run them as in the tutorial by clicking above each method with the node runner extension as it seems to longer exist. How can i run these tests?

Mr.S (Mon, 09 Aug 2021 13:14:47 GMT):
Hello all, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the fabric-sample(https://github.com/hyperledger/fabric-samples). Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. Short summary: 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. 1. try In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. **** files 1. and 2.***** Then I created the 'crypto materials' for the second peer on the second machine via the fabric CA server of the organization 'Org1', which is hosted from the 1st Ubuntu machine. After that, using my docker-compose, I started the second peer. Then I tried to bring the peer into the channel using the following commands: And got the following error after that: I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other.

Mr.S (Mon, 09 Aug 2021 13:17:55 GMT):
Hello all, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the fabric-sample(https://github.com/hyperledger/fabric-samples). Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. Short summary: 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. 1. try In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. **** files 1. and 2.***** Then, on the second machine, I created the 'Crypto-Materials' for the second peer using the Fabric-CA server of the organization 'Org1', which is hosted from the 1st Ubuntu machine. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: `export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=$PWD/organizations/peerOrganizations/org1.actiware.com/peers/peer1.org1.actiware.com/tls/ca.cert export CORE_PEER_MSPCONFIGPATH=$PWD/organizations/peerOrganizations/org1.actiware.com/users/Admin@org1.actiware.com/msp export CORE_PEER_ADDRESS=localhost:8051 export FABRIC_CFG_PATH=$PWD/newPeer/config BLOCKFILE=$PWD/channel-artifacts/awchannel.block echo "use core.yaml from: $FABRIC_CFG_PATH" echo "Use core peer localmspid: $CORE_PEER_LOCALMSPID" echo "USe tls rootcertfiel: $CORE_PEER_TLS_ROOTCERT_FILE" echo "Use Mspconfigpath: $CORE_PEER_MSPCONFIGPATH" echo "Use adress: $CORE_PEER_ADDRESS" echo "channel fetch genesis block" peer channel fetch config -o 82.165.107.123:7050 --ordererTLSHostnameOverride orderer.actiware.com -c awchannel --tls --cafile $PWD/organizations/ordererOrganizations/actiware.com/orderers/orderer.actiware.com/msp/tlscacerts/tlsca.actiware.com-cert.pem } joinChannel` And got the following error after that: I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other.

Mr.S (Mon, 09 Aug 2021 13:56:31 GMT):

ordererfailur.png

Mr.S (Mon, 09 Aug 2021 14:58:55 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the \href{https://github.com/hyperledger/fabric-samples}{\fabric-sample}. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. try* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: `joinChannel() { ##### Set environment variables ##### # ask where the configtx.yaml is located and set the environment variable FABRIC_CFG_PATH #read -p "Where is the core.yaml for the peer to add to the channel: " configtxpath export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=$PWD/organizations/peerOrganizations/org1.actiware.com/peers/peer1.org1.actiware.com/tls/ca.cert export CORE_PEER_MSPCONFIGPATH=$PWD/organizations/peerOrganizations/org1.actiware.com/users/Admin@org1.actiware.com/msp export CORE_PEER_ADDRESS=localhost:8051 export FABRIC_CFG_PATH=$PWD/newPeer/config BLOCKFILE=$PWD/channel-artifacts/awchannel.block echo "channel fetch genesis block" peer channel fetch config -o [IP of 1st Ubuntu Machine]:7050 --ordererTLSHostnameOverride orderer.actiware.com -c awchannel --tls --cafile $PWD/organizations/ordererOrganizations/actiware.com/orderers/orderer.actiware.com/msp/tlscacerts/tlsca.actiware.com-cert.pem DELAY=3 MAX_RETRY=5 local rc=1 local COUNTER=1 ## Sometimes Join takes time, hence retry while [ $rc -ne 0 -a $COUNTER -lt $MAX_RETRY ]; do sleep $DELAY peer channel join -b $BLOCKFILE res=$? let rc=$res COUNTER=$(expr $COUNTER + 1) done } joinChannel` *And got the following error after that on orderer docker container:* -> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine *And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. try* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*.

Mr.S (Mon, 09 Aug 2021 15:08:08 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the \href{https://github.com/hyperledger/fabric-samples}{\fabric-sample}. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. What I have done the 3rd attempts you can find in the attachment below

Mr.S (Mon, 09 Aug 2021 15:08:08 GMT):

Mr.S (Mon, 09 Aug 2021 15:13:54 GMT):

Mr.S - Mon Aug 09 2021 17:13:14 GMT+0200 (Mitteleuropäische Sommerzeit).txt

Mr.S (Mon, 09 Aug 2021 15:14:40 GMT):

ordererfailur.png

Mr.S (Mon, 09 Aug 2021 15:14:56 GMT):

peerFailur.png

Mr.S (Mon, 09 Aug 2021 15:15:38 GMT):

error_install_cc.png

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the \href{https://github.com/hyperledger/fabric-samples}{\fabric-sample}. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. try* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: *-> Skrip1: Peer1 joining channel* *And got the following error after that on orderer docker container:* -> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine *And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. try* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*. *3rd try* Then in the last attempt I wanted clarity if it wasn't due to some configuration error. So I decided to do everything the same as in the fabric-sample only that I don't install it in docker containers but natively again. For this I took all configuration files from the fabric sample and wrote or copy/pasted the following script: *-> Skript2: Last Attempt to Setup Fabric without Docker* The scripts registerEnroll.sh and create-ccp.sh are the same as from the fabric-sample repo. But I had problems to create the channel on the orderer. I get the error "Bad Certificate". Then I just tried to install the chaincode for fun and it worked... Unfortunately I can not use this as a solution, because I need the channel. But again the question is how is it possible that this is possible? I am still quite inexperienced with Hyperledger Fabric.... I am already almost sure that I made one or more configuration errors somewhere. Unfortunately I've reached a point where I can't get any further. Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know. Unfortunately I can't upload .zip files here. Otherwise I would have uploaded my configuration files and scripts for the respective attempts.

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the \href{https://github.com/hyperledger/fabric-samples}{\fabric-sample}. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. try* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: *-> Skrip1: Peer1 joining channel* And got the following error after that on orderer docker container: *-> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine* And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine* I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. try* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*. *3rd try* Then in the last attempt I wanted clarity if it wasn't due to some configuration error. So I decided to do everything the same as in the fabric-sample only that I don't install it in docker containers but natively again. For this I took all configuration files from the fabric sample and wrote or copy/pasted the following script: *-> Skript2: Last Attempt to Setup Fabric without Docker* The scripts registerEnroll.sh and create-ccp.sh are the same as from the fabric-sample repo. But I had problems to create the channel on the orderer. I get the error "Bad Certificate". Then I just tried to install the chaincode for fun and it worked... Unfortunately I can not use this as a solution, because I need the channel. But again the question is how is it possible that this is possible? I am still quite inexperienced with Hyperledger Fabric.... I am already almost sure that I made one or more configuration errors somewhere. Unfortunately I've reached a point where I can't get any further. Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know. Unfortunately I can't upload .zip files here. Otherwise I would have uploaded my configuration files and scripts for the respective attempts.

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the \href{https://github.com/hyperledger/fabric-samples}{\fabric-sample}. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. try* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: *-> Skript1: Peer1 joining channel* And got the following error after that on orderer docker container: *-> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine* And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine* I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. try* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*. *3rd try* Then in the last attempt I wanted clarity if it wasn't due to some configuration error. So I decided to do everything the same as in the fabric-sample only that I don't install it in docker containers but natively again. For this I took all configuration files from the fabric sample and wrote or copy/pasted the following script: *-> Skript2: Last Attempt to Setup Fabric without Docker* The scripts registerEnroll.sh and create-ccp.sh are the same as from the fabric-sample repo. But I had problems to create the channel on the orderer. I get the error "Bad Certificate". Then I just tried to install the chaincode for fun and it worked... Unfortunately I can not use this as a solution, because I need the channel. But again the question is how is it possible that this is possible? I am still quite inexperienced with Hyperledger Fabric.... I am already almost sure that I made one or more configuration errors somewhere. Unfortunately I've reached a point where I can't get any further. Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know. Unfortunately I can't upload .zip files here. Otherwise I would have uploaded my configuration files and scripts for the respective attempts.

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the fabric-samples Repo https://github.com/hyperledger/fabric-samples. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. try* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: *-> Skript1: Peer1 joining channel* And got the following error after that on orderer docker container: *-> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine* And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine* I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. try* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*. *3rd try* Then in the last attempt I wanted clarity if it wasn't due to some configuration error. So I decided to do everything the same as in the fabric-sample only that I don't install it in docker containers but natively again. For this I took all configuration files from the fabric sample and wrote or copy/pasted the following script: *-> Skript2: Last Attempt to Setup Fabric without Docker* The scripts registerEnroll.sh and create-ccp.sh are the same as from the fabric-sample repo. But I had problems to create the channel on the orderer. I get the error "Bad Certificate". Then I just tried to install the chaincode for fun and it worked... Unfortunately I can not use this as a solution, because I need the channel. But again the question is how is it possible that this is possible? I am still quite inexperienced with Hyperledger Fabric.... I am already almost sure that I made one or more configuration errors somewhere. Unfortunately I've reached a point where I can't get any further. Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know. Unfortunately I can't upload .zip files here. Otherwise I would have uploaded my configuration files and scripts for the respective attempts.

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):
Hello Community, I have set up a blockchain test network on an Ubuntu 20.04 machine hosted by an internet provider. The network was built and set up according to the fabric-samples Repo https://github.com/hyperledger/fabric-samples. Fabric version is 2.3.0 and Fabric CA version is 1.4.9. My goal now is to set up a second peer on another machine to integrate the peer into my existing network. So that I can also install my samrtcontract/chaincode there and test my queries on the second peer as well. The other machine is only accessible via a VPN of my company. *Short summary:* 1st Ubuntu 20.04 machine with one peer, one orderer and one ca server each for peer and orderer. Runs at an internet provider 2. ubuntu 20.04 machine with one peer. Is only accessible via our company VPN, because the machine is in our company network. I have now made 3 different attempts to build or extend the network. *1. Attempt* In the first attempt I set up the network already described above on the 1st Ubuntu machine, created a channel and installed/deployed my chaincode/smartcontract. At the same time I also generated the "Crypto-Materials" for the second peer via the Fabric-CA server from the organization "Org 1". Then I copied the previously generated "Crypto-Materials" to the 2nd Ubuntu server. After that, using my docker-compose, I started the second peer. Then I tried to get the peer into the channel using the following commands: *-> Skript1: Peer1 joining channel* And got the following error after that on orderer docker container: *-> Graphic1: Logs of Orderer Container on 1. Ubuntu Maschine* And this failur of the peer docker container on the 2. Ubuntu Maschine* -> Graphic2: Logs of Peer Container on 2. Ubuntu Maschine* I did not get this error resolved. I guess because Docker gives the containers their own IP's again, the Docker containers from the orderer on the 1st Ubuntu machine and the peer from the 2nd Ubuntu machine can't communicate directly with each other. *2. Attempt* On the second try I then tried to set it up natively on the servers. Restarted with the 1st Ubuntu machine I then instead of setting the configuration parameters via environment variables. I set these directly in the files provided for it (core.yaml, orderer.yaml and config.tx). Of course, I only set the ones that were also set as environment variables in the docker-compose files. Of course, the same goes for the fabric-ca servers and their respective configuration files. Then I started the fabric-ca servers natively and generated the "crypto material" using the registerEnroll.sh script. Then I started the orderer and peer using the environment variable FABRIC_CFG_PATH. Last but not least, I then wanted to create the channel and install the chaincode as in the Docker attempt. I was able to successfully create the channel on the orderer and the peer was able to join it. However, when I tried to install the chaincode via the CLI commands with `peer chaincode lifecycle` I got an error: -> *Graphic3: Error installing Chaincode*. *3. Attempt* Then in the last attempt I wanted clarity if it wasn't due to some configuration error. So I decided to do everything the same as in the fabric-sample only that I don't install it in docker containers but natively again. For this I took all configuration files from the fabric sample and wrote or copy/pasted the following script: *-> Skript2: Last Attempt to Setup Fabric without Docker* The scripts registerEnroll.sh and create-ccp.sh are the same as from the fabric-sample repo. But I had problems to create the channel on the orderer. I get the error "Bad Certificate". Then I just tried to install the chaincode for fun and it worked... Unfortunately I can not use this as a solution, because I need the channel. But again the question is how is it possible that this is possible? I am still quite inexperienced with Hyperledger Fabric.... I am already almost sure that I made one or more configuration errors somewhere. Unfortunately I've reached a point where I can't get any further. Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know. Unfortunately I can't upload .zip files here. Otherwise I would have uploaded my configuration files and scripts for the respective attempts.

Mr.S (Mon, 09 Aug 2021 15:23:07 GMT):

Mr.S (Mon, 09 Aug 2021 15:27:03 GMT):

testscript - Kopie.txt

Mr.S (Mon, 09 Aug 2021 15:27:38 GMT):

testscript.txt

Mr.S (Mon, 09 Aug 2021 15:27:57 GMT):

ordererfailur.png

Mr.S (Mon, 09 Aug 2021 15:28:08 GMT):

peerFailur.png

Mr.S (Mon, 09 Aug 2021 15:28:21 GMT):

error_install_cc.png

Mr.S (Mon, 09 Aug 2021 15:30:01 GMT):

utils.txt

Mr.S (Mon, 09 Aug 2021 15:30:03 GMT):

completeNativBlockchainSetup.txt

Amit18 (Tue, 10 Aug 2021 07:01:00 GMT):
Has joined the channel.

PuneetSivananda (Tue, 10 Aug 2021 11:36:50 GMT):
Has joined the channel.

nmoskaleva (Tue, 10 Aug 2021 18:56:53 GMT):
Has joined the channel.

roshan.joseph (Tue, 10 Aug 2021 22:00:31 GMT):
Has joined the channel.

fernandobender (Tue, 10 Aug 2021 22:48:10 GMT):
Has joined the channel.

fernandobender (Tue, 10 Aug 2021 22:50:27 GMT):
hello, fellows. i've just downloaded the latest fabric images, docker, etc. from https://hyperledger-fabric.readthedocs.io/en/latest/install.html. i'm now on https://hyperledger-fabric.readthedocs.io/en/latest/install.html, i'd like to use go sdk. however, its documentation says it works with fabric 2.1, while i believe the latest is 2.3. is it compatible? thank you.

fernandobender (Tue, 10 Aug 2021 23:07:35 GMT):
well... i went directly here https://github.com/hyperledger/fabric-contract-api-go/blob/v1.1.1/tutorials/getting-started.md i'm following it. so far, so good.

kkaur01 (Tue, 10 Aug 2021 23:48:31 GMT):
Has joined the channel.

fernandobender (Wed, 11 Aug 2021 00:14:18 GMT):
hello. i'm not finding this folder `chaincode-docker-devmode`. it is meant to be within `fabric-samples`. any help is much appreciated. thank you.

VikiAnand (Wed, 11 Aug 2021 04:14:57 GMT):
Has joined the channel.

AndreyShevchenko (Wed, 11 Aug 2021 11:35:09 GMT):
Has joined the channel.

SandeepVankala (Wed, 11 Aug 2021 12:30:45 GMT):
Has joined the channel.

SandeepVankala (Wed, 11 Aug 2021 12:34:30 GMT):
Has left the channel.

luis.settlemint (Wed, 11 Aug 2021 12:46:13 GMT):
I imagine the docs are outdated

luis.settlemint (Wed, 11 Aug 2021 12:46:57 GMT):
just clone fabric-samples repo and start the test-network

luis.settlemint (Wed, 11 Aug 2021 12:48:07 GMT):
to use the version 2.3.2 I had to replace `:latest` with `:2.3.2`. Also for the CA I'm using v1.5.0

luis.settlemint (Wed, 11 Aug 2021 12:48:56 GMT):
then you can use the sample app asset-transfer-basic in Go

luis.settlemint (Wed, 11 Aug 2021 12:49:13 GMT):
I have not used it but I assume it works as the TS app

BrettLogan (Wed, 11 Aug 2021 15:53:10 GMT):
Which doc are you looking at, I can't find a reference to that directory in our doc

zenilvaghasiya (Wed, 11 Aug 2021 17:17:14 GMT):
hello. I am facing difficulty when I try set up hyper ledger in VS code. I am getting error when I install npm . your dependency is deprecated.

pavithra8895 (Wed, 11 Aug 2021 18:54:58 GMT):
hi, help please How to get all the organizations of a channel in node js application ?

pavithra8895 (Wed, 11 Aug 2021 18:54:58 GMT):
hi, help please, How to get all the organizations of a channel in node js application ?

BrianRani (Wed, 11 Aug 2021 19:13:50 GMT):
Has joined the channel.

luis.settlemint (Wed, 11 Aug 2021 19:32:25 GMT):
here > https://github.com/hyperledger/fabric-samples/

luis.settlemint (Wed, 11 Aug 2021 19:32:44 GMT):
and https://hyperledger-fabric.readthedocs.io/en/release-2.3/test_network.html

luis.settlemint (Wed, 11 Aug 2021 19:33:54 GMT):
Oh! perhaps you are asking a diff thing

luis.settlemint (Wed, 11 Aug 2021 19:34:42 GMT):
I imagine is this Doc > https://github.com/hyperledger/fabric-contract-api-go/blob/main/tutorials/getting-started.md#testing-your-chaincode-as-a-developer

bentoumia (Wed, 11 Aug 2021 21:53:59 GMT):
Has joined the channel.

manfredmeyer (Thu, 12 Aug 2021 09:21:25 GMT):
Has joined the channel.

marcocomo (Thu, 12 Aug 2021 11:16:31 GMT):
Has joined the channel.

marcocomo (Thu, 12 Aug 2021 14:06:28 GMT):
Hi! I'm trying to install hyperledger on my windows and it's giving me some trouble when I try to run the `test-network`

marcocomo (Thu, 12 Aug 2021 14:07:48 GMT):
Can someone help me please? I installed all of the software required in the `prerequisite software` section

andreolf1 (Thu, 12 Aug 2021 16:49:11 GMT):
Has joined the channel.

phalves (Thu, 12 Aug 2021 17:08:11 GMT):
Has joined the channel.

conanoc (Fri, 13 Aug 2021 01:24:01 GMT):
What's your trouble?

phearaeun (Fri, 13 Aug 2021 02:26:03 GMT):
Has joined the channel.

ahmetcakmak606 (Fri, 13 Aug 2021 08:19:02 GMT):
Has joined the channel.

ahmetcakmak606 (Fri, 13 Aug 2021 08:25:26 GMT):
Hi, has anyone successfully run fabric on openshift 4? I've tried many times but it seems that the permissions required by docker cannot be allowed on openshift 4. Afaik Redhat does not feel obligated about being compatible with fabric but solving this issue provides new opportunities for hyperledger fabric.

ataberkozek (Fri, 13 Aug 2021 08:30:39 GMT):
Has joined the channel.

schlagtim (Fri, 13 Aug 2021 10:28:48 GMT):
Has joined the channel.

OzodbekXomidbekov (Fri, 13 Aug 2021 12:02:21 GMT):
Has joined the channel.

sebaleoperez (Fri, 13 Aug 2021 14:59:08 GMT):
Has joined the channel.

Mr.S (Fri, 13 Aug 2021 17:14:37 GMT):
Hello again Community, last time i posted a big text of my Problem. Now i wrote it down on Stack Overflow and deleted here. Here is the link: https://stackoverflow.com/questions/68776073/hyperledger-fabric-setup-two-peers-of-same-org-on-different-physical-machines Maybe someone can help me. If you have any questions about one of the above attempts or if you need the configuration files, just let me know.

aakzubaidi (Sat, 14 Aug 2021 04:55:46 GMT):
For the first attempt, How about using Docker Swarm to enable communication between containers living in separate hosts?

aakzubaidi (Sat, 14 Aug 2021 04:56:04 GMT):
For the first attempt, How about using Docker Swarm to enable communication between containers living in separate hosts?

surya7 (Sat, 14 Aug 2021 14:17:58 GMT):
Has joined the channel.

nishantchandla (Sat, 14 Aug 2021 15:02:30 GMT):
Has joined the channel.

nits2k (Sun, 15 Aug 2021 02:44:42 GMT):
Has joined the channel.

ApoorvSingal (Sun, 15 Aug 2021 17:08:03 GMT):
Has joined the channel.

jeaninejue1 (Sun, 15 Aug 2021 21:54:05 GMT):
Has joined the channel.

fftkim (Mon, 16 Aug 2021 04:30:18 GMT):
Has joined the channel.

esther_pan (Mon, 16 Aug 2021 07:39:18 GMT):
Has joined the channel.

Mr.S (Mon, 16 Aug 2021 08:13:18 GMT):
Unfortunately, I have no experience with Docker Swarm and would have to learn the ropes myself. I was hoping that there would be a solution without directly using Docker Swarm or even Docker Container. In my research regarding this problem, I found solutions in Docker Swarm. However, the functionalities of Swarm are completely unknown to me...

Mr.S (Mon, 16 Aug 2021 08:13:18 GMT):
Unfortunately, I have no experience with Docker Swarm and would have to learn the ropes myself. I was hoping that there would be a solution without directly using Docker Swarm or even Docker Container. In my research regarding this problem, I found solutions in Docker Swarm. However, the functionalities of Swarm are completely unknown to me... But the way the situation looks so far. It will probably come down to this

mklarmann (Mon, 16 Aug 2021 08:31:19 GMT):
Has joined the channel.

aditya.21991 (Mon, 16 Aug 2021 09:43:26 GMT):
Has joined the channel.

luandt1809 (Tue, 17 Aug 2021 04:08:57 GMT):
Has joined the channel.

N_Mizuki (Tue, 17 Aug 2021 05:12:47 GMT):
Has joined the channel.

N_Mizuki (Tue, 17 Aug 2021 05:15:05 GMT):
Hello! I have a question and I think someone could give me the anwer.

N_Mizuki (Tue, 17 Aug 2021 05:22:06 GMT):
I tried to "npm start" on Car Transfer sample. After browsing the entry Web page, when I moved to Car-Listing screen, I got an error message: info: [blockchainServiceHelper]: try enroll:admin (node:3305) UnhandledPromiseRejectionWarning: Error: Calling enrollment endpoint failed with error [Error: connect ETIMEDOUT 198.168.33.10:57610][ListCars[args : undefined] + [txid is : undefined] at ClientRequest. (/home/vagrant/fabric1.4.4/car_transfer/devapp-client-master/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:711:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9)

N_Mizuki (Tue, 17 Aug 2021 05:24:52 GMT):
Additionally, my docker status is below; docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9479c8a5d91a hyperledger/fabric-peer:latest "peer node start" 2 weeks ago Exited (0) 2 weeks ago peer1.org2.example.com c674a5e972b3 hyperledger/fabric-peer:latest "peer node start" 2 weeks ago Exited (0) 2 weeks ago peer1.org1.example.com e1c98523ca51 hyperledger/fabric-couchdb "tini -- /docker-ent…" 2 weeks ago Exited (143) 2 weeks ago couchdb3 71894bac9277 hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 2 weeks ago Exited (2) 2 weeks ago ca_peerOrg1 833dd27b7e68 hyperledger/fabric-couchdb "tini -- /docker-ent…" 2 weeks ago Exited (143) 2 weeks ago couchdb1 10deead4ea92 hyperledger/fabric-couchdb "tini -- /docker-ent…" 2 weeks ago Exited (143) 2 weeks ago couchdb0 bff99205919e hyperledger/fabric-ca:latest "sh -c 'fabric-ca-se…" 2 weeks ago Exited (2) 2 weeks ago ca_peerOrg2 5198c7435483 hyperledger/fabric-couchdb "tini -- /docker-ent…" 2 weeks ago Exited (143) 2 weeks ago couchdb2

N_Mizuki (Tue, 17 Aug 2021 05:26:32 GMT):
And I can not find "registerAdmin.js" through command of "locate registerAdmin.js" .

N_Mizuki (Tue, 17 Aug 2021 05:28:16 GMT):
How I can solve the problem?

hoily.dev (Tue, 17 Aug 2021 07:09:27 GMT):
Has joined the channel.

atodorov_kiwi (Tue, 17 Aug 2021 07:53:28 GMT):
Has joined the channel.

GuoshenKuang (Tue, 17 Aug 2021 09:14:36 GMT):
Has joined the channel.

samie (Tue, 17 Aug 2021 11:18:37 GMT):
Has joined the channel.

KevinKerkhoven (Tue, 17 Aug 2021 11:24:11 GMT):
Has joined the channel.

ydkishore30 (Tue, 17 Aug 2021 11:30:17 GMT):
Has joined the channel.

ydkishore30 (Tue, 17 Aug 2021 11:30:18 GMT):
Hello everyone. I am building hyperledger network. In a general user login scenario,all username and password are into tables by hashing.

ydkishore30 (Tue, 17 Aug 2021 11:31:05 GMT):
But with hyperledger we are all user details into certificate authority

ydkishore30 (Tue, 17 Aug 2021 11:31:46 GMT):
how do user authenticate and login blockchain network

ydkishore30 (Tue, 17 Aug 2021 11:31:46 GMT):
how do user authenticate and login using hyperledger login

ydkishore30 (Tue, 17 Aug 2021 11:34:48 GMT):
does username and password login into hyperledger fabric is not in scope

bharadwajambati172 (Tue, 17 Aug 2021 12:19:54 GMT):
Has joined the channel.

bharadwajambati172 (Tue, 17 Aug 2021 12:22:03 GMT):
@channel I am facing this issue while querying data from ledger. Can any one able to help me out to find the root cause for this issue? 2021-07-26T14:59:07.624Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - Received error response from: grpcs://tst-peer-01.esi.accums.aws.coalescehealth.org:7051 error: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted 2021-07-26T14:59:07.625Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted �[32m[2021-07-26T14:59:07.995] [INFO] Accumulator-History-Controller - �[39mLeaving app.get() for /accumulator/history/contract. 2021-07-26T14:59:49.981Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - Received error response from: grpcs://tst-peer-01.esi.accums.aws.coalescehealth.org:7051 error: Error: 13 INTERNAL: Received RST_STREAM with code 0 2021-07-26T14:59:49.981Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - rejecting with: Error: 13 INTERNAL: Received RST_STREAM with code 0 2021-07-26T14:59:49.996Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - Received error response from: grpcs://tst-peer-01.esi.accums.aws.coalescehealth.org:7051 error: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted 2021-07-26T14:59:49.996Z - �[31merror�[39m: [Endorser]: sendProposal[tst-peer-01.esi.accums.aws.coalescehealth.org] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: Bandwidth exhausted And I am not getting this issue continuously, but its happening sometimes randomly

GereonHinz (Tue, 17 Aug 2021 13:34:45 GMT):
Has joined the channel.

HamzaHijazi (Tue, 17 Aug 2021 17:14:28 GMT):
Has joined the channel.

kevinhill (Tue, 17 Aug 2021 19:55:51 GMT):
Has joined the channel.

BouXez (Wed, 18 Aug 2021 09:35:01 GMT):
Has joined the channel.

BouXez (Wed, 18 Aug 2021 09:36:29 GMT):
Hello, i have started experiment with fabcar chaincode and i am wondering if there are other similar complete chaincode examples?

aakzubaidi (Wed, 18 Aug 2021 17:54:16 GMT):
I would check ```grpc-max-send-message-length ```from grpcOptions listed under Orderer in network-config.yaml

aakzubaidi (Wed, 18 Aug 2021 18:11:18 GMT):
I guess this would have something related to gRPC settings either at the client side or the blockchain side. I would look for that in the configurations such as core.yaml or orderer.yaml and see what properties are related such as max messages, and so on. I would then examine the client side and see whether there is a set limit on on gRPC settings. I am also curious to know what causes this problem, so please update us on that matter.

aakzubaidi (Wed, 18 Aug 2021 18:18:55 GMT):
Interesting! Well, If I were you, I would think of providing end users with their Prv key, certs, .. or I provide them with a custodial service that stored their their keys while providing them with typical username/passkey credentials. It is really a matter of purpose and architecture. Either-way, this is something has to be facilitated at the client side. In the first case, where users have their own key, then there is really no need for middleware, in the second case, you would have an extra layer that stored the keys and regulates authentication on on behalf of endusers.

aakzubaidi (Wed, 18 Aug 2021 18:18:55 GMT):
Interesting! Well, If I were you, I would think of providing end users with their Prv key, certs, .. or I provide them with a custodial service that stored their their keys while providing them with typical username/passkey credentials. It is really a matter of purpose and architecture. Assuming identities are first issued at the CA first, then enrolment (should) be facilitated at the client side. In the first case, where users have their own keys, then there is really no need for middleware. Using a proper client SDK, you can enrol identities to the CA and import into a wallet at the client side. In the second case, you would have an extra layer that does this on behalf of end users. keys would be kept by the middleware, while users are given usernames and passkeys, which are mapped to these keys.

aakzubaidi (Wed, 18 Aug 2021 18:18:55 GMT):
Interesting! Well, If I were you, I would think of providing end users with their Prv key, certs, .. or I provide them with a custodial service that stored their their keys while providing them with typical username/passkey credentials. It is really a matter of purpose and architecture. Assuming identities are issued at the CA first, then enrolment (should) be facilitated at the client side. In the first case, where users have their own keys, then there is really no need for middleware. Using a proper client SDK, you can enrol identities to the CA and import into a wallet at the client side. In the second case, you would have an extra layer that does this on behalf of end users. keys would be kept by the middleware, while users are given usernames and passkeys, which are mapped to these keys.

aakzubaidi (Wed, 18 Aug 2021 18:18:55 GMT):
Interesting! Well, If I were you, I would think of providing end users with their Prv key, certs, .. or I provide them with a custodial service that stores their their keys while providing them with typical username/passkey credentials. It is really a matter of purpose and architecture. Assuming identities are issued at the CA first, then enrolment (should) be facilitated at the client side. In the first case, where users have their own keys, then there is really no need for middleware. Using a proper client SDK, you can enrol identities to the CA and import into a wallet at the client side. In the second case, you would have an extra layer that does this on behalf of end users. keys would be kept by the middleware, while users are given usernames and passkeys, which are mapped to these keys.

gangadharjannu (Wed, 18 Aug 2021 18:37:29 GMT):
Hello All, I am trying to setup fabric network using the `curl` command given in fabric test network. It was working two days ago and now it stopped working and throwing error. I have checked the fabric releases and binaries for linux and windows are missing for 1.5.0. I have raised the issue in github. https://github.com/hyperledger/fabric-ca/issues/245 Has anybody experienced this ?

bsustudent (Wed, 18 Aug 2021 19:39:15 GMT):
Has joined the channel.

bsustudent (Wed, 18 Aug 2021 19:42:20 GMT):
Hello, I'm new to Fabric. I got a network running but when I try to create a channel using ./network.sh createChannel, I get the following error: Creating channel 'mychannel'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb Generating channel genesis block 'mychannel.block' /c/Users/Yoonsu/Desktop/fabric/fabric-samples/bin/configtxgen + configtxgen -profile TwoOrgsApplicationGenesis -outputBlock ./channel-artifacts/mychannel.block -channelID mychannel 2021-08-18 13:27:14.339 MDT [common.tools.configtxgen] main -> INFO 001 Loading configuration 2021-08-18 13:27:14.341 MDT [viperutil] ReadInConfig -> ERRO 002 Unable to open the config file: 2021-08-18 13:27:14.341 MDT [common.tools.configtxgen.localconfig] Load -> PANI 003 Error reading configuration: open : The system cannot find the file specified. 2021-08-18 13:27:14.341 MDT [common.tools.configtxgen] func1 -> PANI 004 Error reading configuration: open : The system cannot find the file specified. panic: Error reading configuration: open : The system cannot find the file specified. [recovered] panic: Error reading configuration: open : The system cannot find the file specified. goroutine 1 [running]: go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000dfd90, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:230 +0x55f go.uber.org/zap.(*SugaredLogger).log(0xc0005d2198, 0x4, 0xc00000dc20, 0x4e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x107 go.uber.org/zap.(*SugaredLogger).Panicf(...) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0005d21a0, 0xc00016f910, 0x1, 0x1) /__w/1/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0xa5 main.main.func1() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:261 +0x185 panic(0xa19e80, 0xc000178ad0) /usr/local/go/src/runtime/panic.go:969 +0x1c7 go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000dfd90, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:230 +0x55f go.uber.org/zap.(*SugaredLogger).log(0xc0005d2178, 0xbb1f04, 0xb182d6, 0x1f, 0xc00016fdb8, 0x1, 0x1, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x107 go.uber.org/zap.(*SugaredLogger).Panicf(...) /__w/1/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...) /__w/1/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 github.com/hyperledger/fabric/internal/configtxgen/genesisconfig.Load(0xc0000a0140, 0x19, 0x0, 0x0, 0x0, 0x0) /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/genesisconfig/config.go:238 +0x1e6 main.main() /__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:279 +0x106c + res=2 Failed to generate channel configuration transaction... *Error starts on the 7th line where it says "2021-08-18 13:27:14.341 MDT [viperutil] ReadInConfig -> ERRO 002 Unable to open the config file:" Any feedback would be appreciated, thank you.

tkuhrt (Wed, 18 Aug 2021 20:17:01 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xtp3wCxxenoRdKttT) There has never been a 1.5.0 release of Hyperledger Fabric: https://github.com/hyperledger/fabric/releases

davidkel (Wed, 18 Aug 2021 21:01:47 GMT):
That issue should be fixed. the script should have been updated now to download 1.5.1

sudng (Wed, 18 Aug 2021 21:49:59 GMT):
Has joined the channel.

Gavimat (Wed, 18 Aug 2021 22:41:12 GMT):
Hello guys! I'd like to know if anyone could help me with the Fabcar example. I just wanted to know if there's a way to check some information about the ledger itself, like timestamp of transactions, the ledger itself, the blocks that were created and hashes. I've already been able to run the example, but I couldn't access these infos. I'd appreciate it very much if anyone could help me. Thanks!

aakzubaidi (Thu, 19 Aug 2021 00:43:12 GMT):
I would suggest integration with Hyperledger explorer. Hope this helps

Gavimat (Thu, 19 Aug 2021 00:44:05 GMT):
I already tried it, but unfortunately it didn't work :pensive:

Gavimat (Thu, 19 Aug 2021 00:44:43 GMT):
Isn't there a way to maybe access it by the terminal itself?

hiroyukihonda (Thu, 19 Aug 2021 01:08:28 GMT):
Has joined the channel.

aakzubaidi (Thu, 19 Aug 2021 01:09:06 GMT):
There is, but cumbersome to deal with. You can see about existing binaries such as peer CLI to fetch a block from orderer and using configtxlator to translate the output. You have to verify that because I do not recall exactly. If you do not want to use Explorer, then you still can leverage a fabric SDK. But anyway I would go for explorer, and maybe can provide help if you elaborate on what problems you faced with it.

aakzubaidi (Thu, 19 Aug 2021 01:09:06 GMT):
There is, but cumbersome to deal with. You can see about existing binaries such as peer CLI to fetch a block and using configtxlator to translate the output. You have to verify that because I do not recall exactly. If you do not want to use Explorer, then you still can leverage a fabric SDK. But anyway I would go for explorer, and maybe can provide help if you elaborate on what problems you faced with it.

Gavimat (Thu, 19 Aug 2021 01:11:41 GMT):
Thanks a lot @aakzubaidi. If you check this link, it shows what I've been facing when trying to run Blockchain Explorer. I've tried a bunch of times, and didn't succeed though. Link: https://stackoverflow.com/questions/68565020/hyperledger-explorer-not-succeeded

aakzubaidi (Thu, 19 Aug 2021 01:24:38 GMT):
I had a quick look, and just wondering, are they (Fabric & Explorer) working just fine, but cannot find each other? are they on the same machine? if not then that is a networking issue and you have to make sure they accessible (correct IP/hostname and port)

Gavimat (Thu, 19 Aug 2021 01:29:40 GMT):
I'm using a virtual machine to work with Ubuntu. After I run the test-network (network.sh up) and create the channels, following the Hyperledger Docs tutorial, or even this tutorial on that link about the integration with Explorer, even if I run the Explorer itself (cd blockchain-explorer/start.sh), they don't match themselves. And if I run the stop.sh it shows the error that "no process name hyperledger-explorer found".

Gavimat (Thu, 19 Aug 2021 01:30:57 GMT):
It's really awkward and I just can't find the way to fix it. A guy said that it could be a Postgresql issue, but I already tried reinstalling it and updating it, no fix though.

aakzubaidi (Thu, 19 Aug 2021 01:32:23 GMT):
I will find an opportunity to refresh my memory about it and see the latest advancement of Explorer. If you would like we can meet on Zoom and try to deploy it again and see what went wrong. Such a thing can go for various reasons!

Gavimat (Thu, 19 Aug 2021 01:34:35 GMT):
I'd really like to do that, could you send me your contact (email, Whatsapp, anything), so we could keep in touch? I'll let you take a look at the advancements of Explorer and then we could schedule a Zoom meeting to talk about it.

aakzubaidi (Thu, 19 Aug 2021 01:35:55 GMT):
I will DM you for that.

Gavimat (Thu, 19 Aug 2021 01:36:08 GMT):
Alright, thank you!

HUOH 1 (Thu, 19 Aug 2021 02:15:59 GMT):
Has joined the channel.

ckong (Thu, 19 Aug 2021 03:39:06 GMT):
I have questions regarding the Gateway SDK at https://hyperledger.github.io/fabric-gateway-java/ - should I post my questions in #fabric-sdk-java ?

sidnaik1989 (Thu, 19 Aug 2021 06:33:35 GMT):
The fabric PDC document at https://hyperledger-fabric.readthedocs.io/en/release-2.2/private-data/private-data.html under 'Transaction Flow' mentions "The client application submits a proposal request to invoke a chaincode function (reading or writing private data) to *endorsing peers which are part of authorized organizations* of the collection" However in a following section it mentions "First, you don’t necessarily have to be a member of a collection to write to a key in a collection, as long as the endorsement policy is satisfied" These seem contradictory. Does an endorser have to be a part of authorized collection members?

sidnaik1989 (Thu, 19 Aug 2021 06:33:35 GMT):
The fabric PDC document at https://hyperledger-fabric.readthedocs.io/en/release-2.2/private-data/private-data.html under 'Transaction Flow' mentions "The client application submits a proposal request to invoke a chaincode function (reading or writing private data) to *endorsing peers which are part of authorized organizations* of the collection" However in a following section it mentions "First, *you don’t necessarily have to be a member of a collection to write to a key in a collection*, as long as the endorsement policy is satisfied" These seem contradictory. Does an endorser have to be a part of authorized collection members?

aravindrajck (Thu, 19 Aug 2021 07:51:51 GMT):
Has joined the channel.

gangadharjannu (Thu, 19 Aug 2021 07:55:55 GMT):
Yes, it is fixed. Thank you

kaveri (Thu, 19 Aug 2021 08:28:35 GMT):
Has joined the channel.

tuyendev (Thu, 19 Aug 2021 09:48:02 GMT):
Has joined the channel.

tuyendev (Thu, 19 Aug 2021 10:22:29 GMT):
Good afternoon, friends. I seem misunderstood this transaction flow till reading the docs https://hyperledger-fabric.readthedocs.io/en/release-2.2/txflow.html. Also, have some concerns - First, a client will send the *proposal request* to all endorser peers, it means they *must know 'em all in the channel?* - Second, the process above 's already done by SDK, and the client app does not need an extra call? Cause I only invoke/call chain-code function once. - Third, what if peer A( belong to org A) install chaincode S1, peer B ( belong to org B) install chaincode (S1' extends S1), the method M1 will be different between each peer. What happens next? Any help is appreciated. P/s: _I was thinking the client app sends the transaction to peer then peer send to orderer for a long time, my gosh :( _

tuyendev (Thu, 19 Aug 2021 10:22:29 GMT):
Good afternoon, friends. I seem misunderstood this transaction flow till reading the docs https://hyperledger-fabric.readthedocs.io/en/release-2.2/txflow.html. Also, have some concerns - First, a client will send the *proposal request* to all endorser peers, it means they *must know 'em all in the channel?* - Second, the process above 's already done by SDK, and the client app does not need an extra call? Cause I only invoke/call chain-code function once. - Third, what if peer A( belong to org A) install chaincode S1, peer B ( belong to org B ) install chaincode (S1' extends S1), the method M1 will be different between each peer. What happens next? Any help is appreciated. P/s: _I was thinking the client app sends the transaction to peer then peer send to orderer for a long time, my gosh :( _

amitpadmani-awts (Thu, 19 Aug 2021 10:36:40 GMT):
Has left the channel.

DianaTique (Thu, 19 Aug 2021 17:36:55 GMT):
Has joined the channel.

mona15 (Thu, 19 Aug 2021 22:12:40 GMT):
Has joined the channel.

huangxiaoqi (Fri, 20 Aug 2021 01:48:24 GMT):
Has joined the channel.

GaberAl-Absi (Fri, 20 Aug 2021 03:34:09 GMT):
Hello every one, I'm new in Hyperledger Fabric, I tried to deploy Chaincode but I faced this error. Please your help is highly appreciated. This is the error: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output + cp -R /chaincode/input/src/. /chaincode/output + cd /chaincode/output + '[' -f package-lock.json -o -f npm-shrinkwrap.json ] + npm ci '--only=production' npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-contract-api/-/fabric-contract-api-1.4.6.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-08-20T01_53_35_503Z-debug.log " Chaincode installation on peer0.hosp1 has failed Deploying chaincode failed

AnuragKumar10 (Fri, 20 Aug 2021 04:08:24 GMT):
Has joined the channel.

MatanNahmani (Fri, 20 Aug 2021 05:06:58 GMT):
Has joined the channel.

norswap (Fri, 20 Aug 2021 08:53:23 GMT):
Has joined the channel.

yigemaser (Fri, 20 Aug 2021 10:42:58 GMT):
Has joined the channel.

yigemaser (Fri, 20 Aug 2021 10:45:29 GMT):
hello,i am new here ,i have stuck by this problem two days

yigemaser (Fri, 20 Aug 2021 10:48:00 GMT):
the env is: windows10, run test-network ,run ./network.sh up , ok ,run ./network.sh createChannel -c mytest ,ok ,run ./network.sh deployCC -c mytest -ccn basic -ccp ../asset-transfer-basic/chaincode-java -ccl java not ok

yigemaser (Fri, 20 Aug 2021 10:48:39 GMT):
+ peer lifecycle chaincode install basic.tar.gz + res=1 Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Chaincode installation on peer0.org1 has failed Deploying chaincode failed

yigemaser (Fri, 20 Aug 2021 10:52:06 GMT):
windows docker is newest , all env is newest, by the way,last day ,i run old docker and old fabric and example ,it get same problem. so ,i replace all with newest, include: docker , fabric images, fabric binaries ,fabric-sample

yigemaser (Fri, 20 Aug 2021 10:52:24 GMT):
is some body help!

hishmad (Fri, 20 Aug 2021 11:10:38 GMT):
Has joined the channel.

bsu (Fri, 20 Aug 2021 11:45:15 GMT):
Has joined the channel.

w1g0 (Fri, 20 Aug 2021 13:28:40 GMT):
Has joined the channel.

Crispin-Sharkaroo (Fri, 20 Aug 2021 18:04:34 GMT):
Has joined the channel.

elman27 (Fri, 20 Aug 2021 19:11:11 GMT):
Has joined the channel.

drhan (Sat, 21 Aug 2021 15:35:58 GMT):
Has joined the channel.

drhan (Sat, 21 Aug 2021 15:35:58 GMT):
sdk node 2.2

yogesh.yadav (Sun, 22 Aug 2021 17:12:21 GMT):
Has joined the channel.

mikexiour (Mon, 23 Aug 2021 06:39:14 GMT):
Has joined the channel.

Anasalamin (Mon, 23 Aug 2021 07:00:24 GMT):
Has joined the channel.

malarflower23 (Mon, 23 Aug 2021 07:37:24 GMT):
Has joined the channel.

malarflower23 (Mon, 23 Aug 2021 07:37:56 GMT):
when i trying to download fabric binaries im getting the belwo error

malarflower23 (Mon, 23 Aug 2021 07:37:58 GMT):
plz suggest

malarflower23 (Mon, 23 Aug 2021 07:38:08 GMT):
gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 1.4.7 platform specific fabric binary is not available to download <----

cinhtw (Mon, 23 Aug 2021 09:45:20 GMT):
Has joined the channel.

wonderwoman11 (Mon, 23 Aug 2021 12:40:04 GMT):
Has joined the channel.

wonderwoman11 (Mon, 23 Aug 2021 12:51:11 GMT):
Hey I am also facing same problem. did you find any solution for hfc module error?

ffendt (Mon, 23 Aug 2021 13:02:03 GMT):
Has joined the channel.

wonderwoman11 (Mon, 23 Aug 2021 13:02:16 GMT):
Hey , I am trying to install *npm install hfc* https://hyperledger-fabric.readthedocs.io/en/v0.6/nodeSDK/node-sdk-indepth.html When I run the command *npm install hfc* getting grpc error.

mikexiour (Mon, 23 Aug 2021 13:03:46 GMT):
Hello i have been learning about Hyperledger Fabric for a while as i have a project on it and i have some questions is there someone i could email or chat with to get some clarifying answers ?

msarres (Mon, 23 Aug 2021 13:34:50 GMT):
Send you doubts to marcos.sarres@goledger.com.br, maybe I can help you somehow.

svitzebec (Mon, 23 Aug 2021 13:43:53 GMT):
Has joined the channel.

biswa1 (Mon, 23 Aug 2021 18:24:07 GMT):
Has joined the channel.

no_one13 (Mon, 23 Aug 2021 20:13:35 GMT):
Has joined the channel.

no_one13 (Mon, 23 Aug 2021 20:18:29 GMT):
Hello all, i have been learning about Hyperledger Fabric , but i have got a error like "received discovery error:failed constructing descriptor for chaincodes" when using fabric-sdk with node , i dont know why this error occurs can anybody help me in this . thank you

Oliver_Tahir (Tue, 24 Aug 2021 05:02:40 GMT):
Has joined the channel.

Oliver_Tahir (Tue, 24 Aug 2021 05:07:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=QmBaDE9cdF76wpyK3) I believe you are hitting an issue that was fixed in v2.2.1 and mentioned in the release notes: https://github.com/hyperledger/fabric/releases/tag/v2.2.1

mikexiour (Tue, 24 Aug 2021 05:12:40 GMT):
Just to give some context. I am working on a project that will use Hyperledger Fabric to create a smart contract (chaincode) tenant network where each tenant will be able to sell their bandwidth between them. I am thinking of creating it in Go and use NodeJs to create a small frontend for the presentation as I am part of the backend. Now to ask some questions. If I use the Fabric platform will I need to create a blockchain(Backend)? Do I need to have a Server to set up the Developer production? As I was running into some problems with my workstation only when following the Running chaincode in development mode tutorial. if I set up a production network and follow the tutorials and other codes written and expand on them, would you be able to give me some feedback either on this email within stacks overflow? Is it possible to create an Auction based consensus algorithm in Fabric? Do you have some suggestions on the following project on what I should focus on and what I should avoid? Kind Regards,

Matannah 1 (Tue, 24 Aug 2021 05:17:41 GMT):
Has joined the channel.

Matannah 1 (Tue, 24 Aug 2021 05:20:37 GMT):
Hey all, i am trying to invoke a contract method from different contract but always get the following error: Error: You've asked to invoke a function that does not exist: 0 I am trying to call from users contract to keys contract using the following method: const func = await ctx.stub.invokeChaincode('keys:KeysContract:readKeys', ['0']); running readKeys standalone works fine but trying to invoke it form different contracts dosen't seem to work i am able to invoke this method ctx.stub.invokeChaincode('keys:GetMetadata', []); but i get empy data object

no_one13 (Tue, 24 Aug 2021 06:36:25 GMT):
hi , i have used v2.2.1 but still getting this error, is there any other reason possible for error.Thank you

mirgaon (Tue, 24 Aug 2021 06:46:36 GMT):
Has joined the channel.

tinkerbell (Tue, 24 Aug 2021 07:26:58 GMT):
Has joined the channel.

tinkerbell (Tue, 24 Aug 2021 07:35:32 GMT):
Hi! I'm going through the set up docs and ran into an issue with running `curl -sSL https://bit.ly/2ysbOFE | bash -s` https://hyperledger-fabric.readthedocs.io/en/latest/install.html I'm getting this: ``` Clone hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo Cloning into 'fabric-samples'... remote: Enumerating objects: 7688, done. remote: Total 7688 (delta 0), reused 0 (delta 0), pack-reused 7688 Receiving objects: 100% (7688/7688), 4.50 MiB | 5.58 MiB/s, done. Resolving deltas: 100% (4020/4020), done. fabric-samples v2.3.2 does not exist, defaulting main Pull Hyperledger Fabric binaries ===> Downloading version 2.3.2 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.3.2/hyperledger-fabric-darwin-arm64-2.3.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9 100 9 0 0 17 0 --:--:-- --:--:-- --:--:-- 17 tar: Error opening archive: Unrecognized archive format ==> There was an error downloading the binary file. ------> 2.3.2 platform specific fabric binary is not available to download <---- ``` I don't see anything glaringly wrong with the archive in GitHub. Any advice or work arounds?

tinkerbell (Tue, 24 Aug 2021 07:38:28 GMT):
Also, I'm not sure why it's looking for a v2.3.2 when v2.2.3 is the latest?

no_one13 (Tue, 24 Aug 2021 07:39:55 GMT):
Hello all, i have been learning about Hyperledger Fabric , but i have got a error like "received discovery error:failed constructing descriptor for chaincodes" when using fabric-sdk with node , i dont know why this error occurs can anybody help me in this . thank you

mikexiour (Tue, 24 Aug 2021 07:41:19 GMT):
maybe you specified the wrong version when using your curl command

mikexiour (Tue, 24 Aug 2021 07:41:30 GMT):
could you post what you used to start the download ?

mikexiour (Tue, 24 Aug 2021 07:41:53 GMT):
sorry just saw it above should be correct try

mikexiour (Tue, 24 Aug 2021 07:44:04 GMT):
try this

mikexiour (Tue, 24 Aug 2021 07:44:05 GMT):
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.2 1.5.0

Jianglh (Tue, 24 Aug 2021 08:50:41 GMT):
Has joined the channel.

hfjohann (Tue, 24 Aug 2021 08:55:47 GMT):
Has joined the channel.

tinkerbell (Tue, 24 Aug 2021 09:05:45 GMT):
Still the same issue but I think it's because one repo was mistakenly tagged with a different version. Also -O was missing from the curl in the download function. I made a PR https://github.com/hyperledger/fabric/pull/2852 :slight_smile:

mikexiour (Tue, 24 Aug 2021 09:08:34 GMT):
must of been a recent change they made as it was working last week i think when i re downloaded the repo

RuiYang (Tue, 24 Aug 2021 10:03:03 GMT):
Has joined the channel.

deathgod86 (Tue, 24 Aug 2021 10:42:31 GMT):
Has joined the channel.

deathgod86 (Tue, 24 Aug 2021 10:51:38 GMT):
Hello, good day ... I am trying to setup the HLF without docker on Oracle Linux 8.4 ... I am also trying to understand how it works by NOT using teh fabric-ca ... So far I managed to create my own certificate hierarchy and chains and those MSP directories ... With above certificate chains, I also managed to - generate the genesis block using cryptotxgen - started the orderer and it is ready to serve - create a new channel using cryptotxgen - started the peer and joined the new channel However, I am keep getting problem on the chaincode ... I am trying to install Java chaincode using, both peer lifecycle chaincode package, peer lifecycle chaincode install VS peer chaincode package, peer chaincode install ... without any luck it keep prompting me with docker error message, example "chaincode installed to peer but could not build chaincode: docker build failed: docker image inspection failed" How can I deploy my chaincode without docker ? I have tried starting the peer with --peer-chaincodedev ... but also without any luck

deathgod86 (Tue, 24 Aug 2021 10:58:00 GMT):
if you need version 2.2.3, you may try curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/v2.2.3/scripts/bootstrap.sh | bash -s 2.2.3 2.2.x which is also LTS

deathgod86 (Tue, 24 Aug 2021 11:00:14 GMT):
By the way, I am using fabric 2.2.3 from github releases

fdiarra (Tue, 24 Aug 2021 11:04:45 GMT):
Has joined the channel.

drewmarshburn (Tue, 24 Aug 2021 12:00:05 GMT):
Has joined the channel.

Matannah 1 (Tue, 24 Aug 2021 13:56:31 GMT):
Anyone mind explaining how to use ctx.stub.invokeChaincode i always hit error msg ( Error: You've asked to invoke a function that does not exist: )

Matannah 1 (Tue, 24 Aug 2021 14:08:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=RHa3u6bH29bjctBQB) Good resources. https://bitbucket.org/beyondi-bbd/workspace/snippets/7n5MoM https://stackoverflow.com/questions/49878297/hyperledger-fabric-invokechaincode-in-nodesdk-returning-object-object

IV12 (Tue, 24 Aug 2021 14:12:37 GMT):
Hello everyone, I am training on this example simple enough to deploy on two machines : https://www.rapidqube.com/hyperledger-fabric-2-0-on-multiple-hosts/ I'm trying to test it on two machines, I do everything, and when I run (createChannel.sh) I have this error: Successfully submitted proposal to join channel Error: error getting endorser client for channel: endorser client failed to connect to localhost: 9051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:9051: connect: connection refused" Error: error getting endorser client for channel: endorser client failed to connect to localhost: 10051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:10051: connect: connection refused"

IV12 (Tue, 24 Aug 2021 14:12:39 GMT):
could someone tell me why? and how to correct this error?

kirstygoodary (Tue, 24 Aug 2021 15:25:49 GMT):
Has joined the channel.

anuragsingh (Tue, 24 Aug 2021 18:31:42 GMT):
Has joined the channel.

pavithra8895 (Tue, 24 Aug 2021 19:38:06 GMT):
Hi, is there any possibility to search an asset with partial id ? for example : my id : 'abc123' I can search with bc12 or abc or 123 but I should get the result matching

jjordan-quantum (Tue, 24 Aug 2021 19:49:38 GMT):
Has joined the channel.

jjordan-quantum (Tue, 24 Aug 2021 19:54:50 GMT):
anyone know if its possible to have 1 sec block times with a hyperledger private network?

j-s (Tue, 24 Aug 2021 20:46:22 GMT):
Has joined the channel.

conanoc (Wed, 25 Aug 2021 02:00:27 GMT):
I'm not sure what do you mean by "private network" but you can set block time here: https://github.com/hyperledger/fabric/blob/main/sampleconfig/configtx.yaml#L273

prathampatil8119 (Wed, 25 Aug 2021 04:24:32 GMT):
Has joined the channel.

VisheshRaj (Wed, 25 Aug 2021 07:37:36 GMT):
Has joined the channel.

deathgod86 (Wed, 25 Aug 2021 08:27:13 GMT):
By the way, I am using fabric 2.2.3 from github releases

deathgod86 (Wed, 25 Aug 2021 08:27:59 GMT):
eventually i found out that the chaincode got installed

deathgod86 (Wed, 25 Aug 2021 08:28:58 GMT):
however when i try to instantiate the chaincode on my channel ... it failed with [root@hyperledgerfabric ~]# /appl/hyperledger-fabric/bin/peer chaincode instantiate -C orderer-channel -l java -n TestHLF -v 1.0.0 --peerAddresses localhost:7051 -o localhost:7050 -c '{"function":"init","Args":[]}' 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'my-channel' has been migrated to the new lifecycle, LSCC is now read-only

deathgod86 (Wed, 25 Aug 2021 08:29:59 GMT):
however when i try to instantiate the chaincode on my channel ... it failed with [root@hyperledgerfabric ~]# /appl/hyperledger-fabric/bin/peer chaincode instantiate -C orderer-channel -l java -n TestHLF -v 1.0.0 --peerAddresses localhost:7051 -o localhost:7050 -c '{"function":"init","Args":[]}' 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'my-channel' has been migrated to the new lifecycle, LSCC is now read-only

deathgod86 (Wed, 25 Aug 2021 08:30:22 GMT):
however when i try to instantiate the chaincode on my channel ... it failed with `[root@hyperledgerfabric ~]# /appl/hyperledger-fabric/bin/peer chaincode instantiate -C orderer-channel -l java -n TestHLF -v 1.0.0 --peerAddresses localhost:7051 -o localhost:7050 -c '{"function":"init","Args":[]}' 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'my-channel' has been migrated to the new lifecycle, LSCC is now read-only`

deathgod86 (Wed, 25 Aug 2021 08:31:07 GMT):
On my orderer, the error shown as this `Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.843 +08 [orderer.common.server] Broadcast -> DEBU 52b Starting new Broadcast handler Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.843 +08 [orderer.common.broadcast] Handle -> DEBU 52c Starting new broadcast loop for [::1]:41800 Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.845 +08 [orderer.common.broadcast] Handle -> WARN 52d Error reading from [::1]:41800: rpc error: code = Canceled desc = context canceled Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [orderer.common.server] func1 -> DEBU 52e Closing Broadcast stream Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [comm.grpc.server] 1 -> INFO 52f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=[::1]:41800 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=2.883671ms Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [grpc] infof -> DEBU 530 transport: loopyWriter.run returning. connection error: desc = "transport is closing" `

deathgod86 (Wed, 25 Aug 2021 08:32:25 GMT):
however when i try to instantiate the chaincode on my channel ... it failed with ``` [root@hyperledgerfabric ~]# /appl/hyperledger-fabric/bin/peer chaincode instantiate -C orderer-channel -l java -n TestHLF -v 1.0.0 --peerAddresses localhost:7051 -o localhost:7050 -c '{"function":"init","Args":[]}' 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2021-08-25 16:25:36.841 +08 [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'my-channel' has been migrated to the new lifecycle, LSCC is now read-only ```

deathgod86 (Wed, 25 Aug 2021 08:32:56 GMT):
and then i checked at the log in orderer ... it gave me this error ``` Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.843 +08 [orderer.common.server] Broadcast -> DEBU 52b Starting new Broadcast handler Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.843 +08 [orderer.common.broadcast] Handle -> DEBU 52c Starting new broadcast loop for [::1]:41800 Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.845 +08 [orderer.common.broadcast] Handle -> WARN 52d Error reading from [::1]:41800: rpc error: code = Canceled desc = context canceled Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [orderer.common.server] func1 -> DEBU 52e Closing Broadcast stream Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [comm.grpc.server] 1 -> INFO 52f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=[::1]:41800 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=2.883671ms Aug 25 16:25:36 hyperledgerfabric orderer[882]: 2021-08-25 16:25:36.846 +08 [grpc] infof -> DEBU 530 transport: loopyWriter.run returning. connection error: desc = "transport is closing" ```

cpsatav (Wed, 25 Aug 2021 08:57:16 GMT):
Hello all! I wan to broadcast a message from client node to other nodes in HLF, how to develope chaincode for the same? how to approach the issue ?Desperately needed help.

cpsatav (Wed, 25 Aug 2021 08:57:16 GMT):
Hello all! I want to broadcast a message from client node to other nodes in HLF, how to develope chaincode for the same? how to approach the issue ? Desperately needed help.

AlkaidCC (Wed, 25 Aug 2021 10:11:46 GMT):
Has joined the channel.

huzhiyang (Wed, 25 Aug 2021 12:29:30 GMT):
Has joined the channel.

RahulEth (Wed, 25 Aug 2021 12:38:49 GMT):
Any one know how to make a peer read only?

IV12 (Wed, 25 Aug 2021 13:23:14 GMT):
Hello everyone, I am training on this example simple enough to deploy on two machines : https://www.rapidqube.com/hyperledger-fabric-2-0-on-multiple-hosts/ I'm trying to test it on two machines, I do everything, and when I run (createChannel.sh) I have this error: Successfully submitted proposal to join channel Error: error getting endorser client for channel: endorser client failed to connect to localhost: 9051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:9051: connect: connection refused" Error: error getting endorser client for channel: endorser client failed to connect to localhost: 10051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:10051: connect: connection refused" could someone tell me why? and how to correct this error?

balaji7777 (Wed, 25 Aug 2021 15:22:34 GMT):
Has joined the channel.

balaji7777 (Wed, 25 Aug 2021 15:25:26 GMT):
trying to install fabric using baf and getting into docker rate limit.. I've upgraded the docker account to pro, got access token and used that in network.yaml, and still getting this issue . auth="{map[hyperledgerlabs:]}" err="toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit" ref=hyperledger/fabric-orderer:x86_64-1.1.1.. Anyone has faced this and solved in any way ?

j-s (Wed, 25 Aug 2021 15:36:48 GMT):
If this channel doesn't know, #blockchain-automation-framework might

ShubhamUmate (Wed, 25 Aug 2021 17:01:14 GMT):
Has joined the channel.

ShubhamUmate (Wed, 25 Aug 2021 17:03:06 GMT):
How to include multiple smart contracts in single java chaincode?

ShubhamUmate (Wed, 25 Aug 2021 17:04:36 GMT):
Can you check whether ports are exposed from both the machines?

IV12 (Wed, 25 Aug 2021 18:08:01 GMT):
How will I know if the ports are open on both machines ?

IV12 (Wed, 25 Aug 2021 18:08:16 GMT):
sudo iptables -L ?

NimiCorp (Wed, 25 Aug 2021 20:55:19 GMT):
Has joined the channel.

ashishspg (Thu, 26 Aug 2021 05:22:22 GMT):
Has joined the channel.

AskarAlmabek (Thu, 26 Aug 2021 06:02:22 GMT):
Has joined the channel.

Hasib_Linux (Thu, 26 Aug 2021 07:28:01 GMT):
Has joined the channel.

JongHyunPark (Thu, 26 Aug 2021 08:38:03 GMT):
Has joined the channel.

Gavimat (Thu, 26 Aug 2021 12:33:59 GMT):
Hello, is there anyone who has already some experience with Blockchain Explorer and would like to catch up?

IV12 (Thu, 26 Aug 2021 12:40:14 GMT):
Hello everyone, I am training on this example simple enough to deploy on two machines : https://www.rapidqube.com/hyperledger-fabric-2-0-on-multiple-hosts/ I'm trying to test it on two machines, I do everything, and when I run (createChannel.sh) I have this error: Successfully submitted proposal to join channel Error: error getting endorser client for channel: endorser client failed to connect to localhost: 9051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:9051: connect: connection refused" Error: error getting endorser client for channel: endorser client failed to connect to localhost: 10051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:10051: connect: connection refused" could someone tell me why? and how to correct this error?

ShubhamUmate (Thu, 26 Aug 2021 13:42:01 GMT):
Hey, How can I help you?

ShubhamUmate (Thu, 26 Aug 2021 13:43:08 GMT):
Please check firewall and ports are exposed

ShubhamUmate (Thu, 26 Aug 2021 13:45:37 GMT):
you can use telnet

ShubhamUmate (Thu, 26 Aug 2021 13:46:17 GMT):
If you are using vm then by configuring firewall you can expose ports.

SatyamGupta1 (Thu, 26 Aug 2021 13:56:49 GMT):
Has joined the channel.

Gavimat (Thu, 26 Aug 2021 14:12:38 GMT):
@ShubhamUmate I sent you my questions by DM

IV12 (Thu, 26 Aug 2021 14:13:57 GMT):
Currently I'm using two real machines (not VMs), with two real IP addresses, so I'm on (iptables). When you say with telnet, which port are you talking about? (9051), or docker ports? (2377, 7946, 4789)

IV12 (Thu, 26 Aug 2021 14:16:25 GMT):
can you test it? is it fast enough, or at least see what needs to be changed? here is the link: https://www.rapidqube.com/hyperledger-fabric-2-0-on-multiple-hosts/

Minnu (Thu, 26 Aug 2021 14:50:31 GMT):
Why chaincode not support Solidity language, but only go, java, nodejs ?

bestbeforetoday (Thu, 26 Aug 2021 15:09:56 GMT):
I think it should just be a case of annotating more than one class as a `@Contract` and making sure each contract has a different name. At most one contract class within the chaincode package can also be annotated as being the `@Default` contract. At the client end, non-default contracts are namespaced with their contract name. The default contract does not use a namespace

ElhamShammar (Thu, 26 Aug 2021 15:30:45 GMT):
Has joined the channel.

balaji7777 (Thu, 26 Aug 2021 16:30:28 GMT):
thx.

Princekumar4812 (Fri, 27 Aug 2021 03:02:21 GMT):
Has joined the channel.

bhuwanupadhyay (Fri, 27 Aug 2021 06:37:11 GMT):
Has joined the channel.

mohsinanees (Fri, 27 Aug 2021 09:51:06 GMT):
Has joined the channel.

IV12 (Fri, 27 Aug 2021 11:32:30 GMT):
Hello everyone, I am training on this example simple enough to deploy on two machines : https://www.rapidqube.com/hyperledger-fabric-2-0-on-multiple-hosts/ I'm trying to test it on two machines, I do everything, and when I run (createChannel.sh) I have this error: Successfully submitted proposal to join channel Error: error getting endorser client for channel: endorser client failed to connect to localhost: 9051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:9051: connect: connection refused" Error: error getting endorser client for channel: endorser client failed to connect to localhost: 10051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:10051: connect: connection refused" could someone tell me why? and how to correct this error?

ShubhamUmate (Fri, 27 Aug 2021 12:45:09 GMT):
I was also facing same issues with local machine. So I tried in vm and exposed required ports. It worked

ShubhamUmate (Fri, 27 Aug 2021 12:45:41 GMT):
I wasn't able to find any solution for local vm.

ShubhamUmate (Fri, 27 Aug 2021 12:47:22 GMT):
I tried this method but getting error like "undefined contract method called " on non @Default annotated contract methods.

mikexiour (Fri, 27 Aug 2021 13:04:54 GMT):
anyone using MiniFabric ?

bestbeforetoday (Fri, 27 Aug 2021 14:05:58 GMT):
So you deploy the chaincode OK but this is an error you get back when you try to invoke the transaction function? Remember that at the client end you need to get the non-default smart contract with ``` Contract contract = network.getContract(chaincodeId, contractName); byte[] result = contract.submitTransaction(txName); ```

davidfdr (Fri, 27 Aug 2021 14:49:30 GMT):
Dear friends, sorry by the dumb question, but I am learning abou fabric. I have a question about NodeOus. Reading registerEnroll.sh script from fabric-samples, I notice the following lines: echo 'NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: peer AdminOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: admin OrdererOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: orderer' >${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml

davidfdr (Fri, 27 Aug 2021 14:49:30 GMT):
Dear friends, sorry by the dumb question, but I am learning abou fabric. I have a question about NodeOus. Reading registerEnroll.sh script from fabric-samples, I notice the following lines: echo 'NodeOUs: Enable: true ClientOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: client PeerOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: peer AdminOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: admin OrdererOUIdentifier: Certificate: cacerts/localhost-9054-ca-orderer.pem OrganizationalUnitIdentifier: orderer' >${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml . Whats the diference using NodeOus or not? Reading https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/operations_guide.html#create-and-join-channel do not have this "teaching".

IV12 (Fri, 27 Aug 2021 16:39:13 GMT):
honestly, you absolutely do not answer my question !! I understood that you have to use docker swarm, but I tell you that I have an example and I give it to you, try it? it's quite simple! I am not using a VM in my case, I am using two real machines on this example! try it and answer me! and if you have an example that works share it and it will be much easier ...

ShubhamUmate (Fri, 27 Aug 2021 18:17:03 GMT):
Hey even in the example you shared, it is clearly mentioned that author is using ec2 instance. I have tested same in both ec2 and GCP. It works like a charm.

ShubhamUmate (Fri, 27 Aug 2021 18:19:34 GMT):
What I suggest you to do is create a gcp account(You will get $300 credit). You can test the same thing there. I am afraid that there will be consequences if you expose ports of your local machine.

sashankh (Fri, 27 Aug 2021 18:58:05 GMT):
Has joined the channel.

canenas (Fri, 27 Aug 2021 20:50:59 GMT):
Hi I'm trying to understand how private collections work. Is the collection state db a simple KV store? the data is not ordered or put in blocks right? So its a way to store data "off-chain" even if it lives on the actual node. Am i thinking right?

ShafiqIslam (Fri, 27 Aug 2021 22:34:38 GMT):
Has joined the channel.

thonexin (Sat, 28 Aug 2021 04:41:22 GMT):
Has joined the channel.

thonexin (Sat, 28 Aug 2021 05:00:24 GMT):
abac

TrishPat (Sat, 28 Aug 2021 07:55:35 GMT):
Has joined the channel.

TrishPat (Sat, 28 Aug 2021 08:04:21 GMT):
Hi all, Focus : a blockchain solution to manage a loyalty programme. Reward users with points (displayed in €) that users can use to buy services within the ecosystem. Choice is Hyperledger Fabric, chaincode for smart contracts and for points/€ equivalent Questions : What is the best way to manage identity ? Is there a wallet within Fabric ? Can it be a solution outside the platform ? Must if be integrated ?

jk-tonycui (Sun, 29 Aug 2021 02:14:52 GMT):
Has joined the channel.

samson9993 (Sun, 29 Aug 2021 08:19:53 GMT):
Has joined the channel.

maurosala (Mon, 30 Aug 2021 07:09:49 GMT):
Has joined the channel.

N_Mizuki (Mon, 30 Aug 2021 07:16:07 GMT):
Hello! This is the issue of fabcar sample in fabric1.4.4, just after I startted fabcar by './sartFabric.sh', 'node enrollAdmin.js, 'node registerUser.js'. I tried 'changeCarOwner' on 'CAR0'. But the result shows that owner of 'CAR0' is not changed and another 'CAR0' data aeemed to be added. What is happening? $ node queryall.js Wallet path: /home/vagrant/fabric1.4.4/fabric-samples/fabcar/javascript/wallet Transaction has been evaluated, result is: [{"Key":"CAR0", "Record":{"colour":"blue","make":"Toyota","model":"Prius","owner":"Tomoko"}},{"Key":"CAR0,", "Record":{"colour":"","make":"","model":"","owner":"Akiko"}},{"Key":"CAR1", "Record":{"colour":"red","make":"Ford","model":"Mustang","owner":"Brad"}},{"Key":"CAR2", "Record":{"colour":"green","make":"Hyundai","model":"Tucson","owner":"Jin Soo"}},{"Key":"CAR3", "Record":{"colour":"yellow","make":"Volkswagen","model":"Passat","owner":"Max"}},{"Key":"CAR4", "Record":{"colour":"black","make":"Tesla","model":"S","owner":"Adriana"}},{"Key":"CAR5", "Record":{"colour":"purple","make":"Peugeot","model":"205","owner":"Michel"}},{"Key":"CAR6", "Record":{"colour":"white","make":"Chery","model":"S22L","owner":"Aarav"}},{"Key":"CAR7", "Record":{"colour":"violet","make":"Fiat","model":"Punto","owner":"Pari"}},{"Key":"CAR8", "Record":{"colour":"indigo","make":"Tata","model":"Nano","owner":"Valeria"}},{"Key":"CAR9", "Record":{"colour":"brown","make":"Holden","model":"Barina","owner":"Shotaro"}}]

dsam82 (Mon, 30 Aug 2021 08:53:39 GMT):
Has joined the channel.

rroman 1 (Mon, 30 Aug 2021 09:12:34 GMT):
Has joined the channel.

sidnaik1989 (Mon, 30 Aug 2021 11:41:19 GMT):
We are working on a solution which uses Private data collections to store some asset data. The number of assets handled by a party could be in millions. However I don't see any way to query data from the collection in a paginated way. This would be a major blocker for our scenario. Is there any limitation with PDC implementation that does not allow data to be queried in a paginated fashion? If not, is there a plan to add this functionality in near future? Are there any workarounds to get past this limitation? Would be great to have some clarity to be able to decide where to use Private data collections in this scenario

peppelinux (Mon, 30 Aug 2021 14:04:26 GMT):
Has joined the channel.

JongHyunPark (Tue, 31 Aug 2021 05:39:50 GMT):
Hello, I'm newbie to use hlf.

JongHyunPark (Tue, 31 Aug 2021 05:43:27 GMT):
Hello, I'm newbie to using hlf. I want to config the endorsement peer like "peer1 and peer2 you guys have to be endorsing the transactions in channelA" What should I config for this?

JongHyunPark (Tue, 31 Aug 2021 05:43:27 GMT):
Hello, I'm newbie to using hlf. I want to config the endorsement peers like "peer1 and peer2 you guys have to be endorsing the transactions in channelA" What should I config for this?

WillimJames (Tue, 31 Aug 2021 05:56:25 GMT):
Has joined the channel.

WillimJames (Tue, 31 Aug 2021 05:58:35 GMT):
Hello,what's the requirements of fabric for hardware

pipscobie (Tue, 31 Aug 2021 11:16:04 GMT):
Has joined the channel.

giorgiomecca (Tue, 31 Aug 2021 12:31:16 GMT):
Has joined the channel.

Jess_Hurwitz (Tue, 31 Aug 2021 14:23:52 GMT):
Hi! Does anyone know if AWS plans to upgrade their Fabric version to 2.2 on their AWS Managed Blockchain Service?

Jess_Hurwitz (Tue, 31 Aug 2021 14:33:21 GMT):
The current version is 1.4. We have a need to be on 2.2 but would rather use the AWS service rather than rely on our own deployment or be forced to use 1.4.

JJeffrey (Tue, 31 Aug 2021 14:35:26 GMT):
Has joined the channel.

MarioSavard (Tue, 31 Aug 2021 19:10:46 GMT):
I have a high level question about deploying a consortium. For instance, let say I have 2 organizations. In example network.yaml, all information for both organization are their (token, password, etc). In real life, I guess this is not something you want. So how do you deploy for each organization only their components without having a single "administrator" deploying for all organizations? Do you need to create 1 network.yaml for each organization? if so, what is common and what is different for each organization?

birjoossh (Wed, 01 Sep 2021 00:53:18 GMT):
Has joined the channel.

clemhumb (Wed, 01 Sep 2021 06:20:02 GMT):
Has joined the channel.

roviso (Wed, 01 Sep 2021 07:05:06 GMT):
Has joined the channel.

sunchiye (Wed, 01 Sep 2021 07:46:35 GMT):
Has joined the channel.

ohthemboats (Wed, 01 Sep 2021 08:03:49 GMT):
Has joined the channel.

MahaQahtani (Wed, 01 Sep 2021 08:38:23 GMT):
Has joined the channel.

Jess_Hurwitz (Wed, 01 Sep 2021 19:00:22 GMT):
Does anyone actually reply or answer questions in this chat forum?

SheharYar (Wed, 01 Sep 2021 20:43:21 GMT):
Has joined the channel.

atoulme (Thu, 02 Sep 2021 00:11:15 GMT):
@Jess_Hurwitz might be best to ask the AWS team, nobody from Fabric talks for them.

Harsh_Vekariya (Thu, 02 Sep 2021 05:31:49 GMT):
Has joined the channel.

ShekharGuptaEN (Thu, 02 Sep 2021 05:47:21 GMT):
Has joined the channel.

martinmaurer (Thu, 02 Sep 2021 06:11:09 GMT):
Has joined the channel.

nkalichynskyi (Thu, 02 Sep 2021 09:30:01 GMT):
What exactly is network.yaml file you are referring to? When you are deploying nodes of some organisation for each node you need to provide config(via env variables ot file) and it's MSP(basically set of certs) how you do it would depend on the env you are deploying into.

nkalichynskyi (Thu, 02 Sep 2021 09:44:50 GMT):
Yes, your conclusions are correct, private data is technically stored in the same database as public data and if you are using levelDB lives on the node, but it's represented in the transaction only by it's hash.

nkalichynskyi (Thu, 02 Sep 2021 09:53:30 GMT):
Using NodeOU allows you to simplify some flows, for example by specifying AdminOUIdentifier you state that any user with role admin(signed by correct CA of course) can perform admin actions on the node, if you don't have NodeOU configured you need to specifically place admin certificates on the node and only those users whose certs are present on the node would have admin access and to add new admin you'd need to place new cert into the node and restart it.

vineetmishra (Thu, 02 Sep 2021 10:16:14 GMT):
i Guys , how to increase discovery service timeout for error sendDiscovery[peer0.test.com] - timed out after:3000

vineetmishra (Thu, 02 Sep 2021 10:16:14 GMT):
Hi Guys , how to increase discovery service timeout for error sendDiscovery[peer0.test.com] - timed out after:3000

SumitVedpathak (Thu, 02 Sep 2021 11:31:18 GMT):
Hi Guys,

SumitVedpathak (Thu, 02 Sep 2021 11:35:36 GMT):
Hey Guys, I have an query where i am trying to use getPrivateDataByPartialCompositeKey and putState API in same transaction. But Fabric always complains about "Error: PUT_STATE failed: Transaction has already performed queries on pvt data. Writes are not allowed". Why this i not allowed in same transaction?

ArchitaDasgupta (Thu, 02 Sep 2021 11:45:25 GMT):
Has joined the channel.

MarioSavard (Thu, 02 Sep 2021 12:30:12 GMT):
Sorry I had in mind the blockchain automation framework but that was an hyperledger fabric question at the basis.. kind of mixed the two.

Jess_Hurwitz (Thu, 02 Sep 2021 14:14:20 GMT):
Got it! Thank you! I would have thought that they might have someone in the community.

smyyihvn (Thu, 02 Sep 2021 15:08:15 GMT):
Has joined the channel.

smyyihvn (Thu, 02 Sep 2021 15:10:09 GMT):
hi guys, i getting error try to create chaincode with go version 1.15.6 i am working on windows 10 Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Chaincode installation on peer0.org1 has failed Deploying chaincode failed

smyyihvn (Thu, 02 Sep 2021 15:11:29 GMT):
I checked the forums there are some response from mac docker but i could not find any specific answer for windows, is there anybody know solution for that?

ShubhamUmate (Thu, 02 Sep 2021 17:00:24 GMT):
I have designed chaincode and client sdk in java. But when it is taking more than 30 seconds for single transaction from client sdk. How can I optimize it's performance?

ShubhamUmate (Thu, 02 Sep 2021 17:00:24 GMT):
I have designed chaincode and client sdk in java. But it is taking more than 30 seconds for single transaction from client sdk. How can I optimize it's performance?

ramu450 (Fri, 03 Sep 2021 05:12:52 GMT):
Has joined the channel.

ramu450 (Fri, 03 Sep 2021 05:14:57 GMT):

Clipboard - September 3, 2021 12:13 AM

Omen 8 (Fri, 03 Sep 2021 05:34:42 GMT):
Has joined the channel.

Omen 8 (Fri, 03 Sep 2021 05:36:36 GMT):
Hey Guys, I'm interested on minting NFTs on fabric. Is this possible and can i later list them in places like open sea. actually first my tokens are not artworks but proof of authenticity of items. of luxury clothes for example.

nkalichynskyi (Fri, 03 Sep 2021 06:01:51 GMT):
Not using Windows would be a pretty good solution :grin: Jokes aside although I don't know exact solution my advise would to start here https://github.com/hyperledger/fabric/blob/main/sampleconfig/core.yaml#L501 this setting can bw overridden by `CORE_VM_ENDPOINT`.

matthieublottiere (Fri, 03 Sep 2021 07:50:51 GMT):
Any idea where I can find the source of https://hub.docker.com/r/hyperledger/fabric-couchdb ?

matthieublottiere (Fri, 03 Sep 2021 08:02:37 GMT):
this used to be there: https://github.com/hyperledger/fabric-baseimage apparently

nkalichynskyi (Fri, 03 Sep 2021 08:25:24 GMT):
From Fabric Release notes ... fabric-couchdb docker image will not be updated to v3.1.0 and will no longer be updated, maintained, or published. Users can utilize the official CouchDB docker image maintained by the Apache CouchDB project instead.

matthieublottiere (Fri, 03 Sep 2021 08:39:39 GMT):
ok thanks

AdityaGupta150 (Fri, 03 Sep 2021 12:15:59 GMT):
Has joined the channel.

anil8753 (Fri, 03 Sep 2021 15:21:54 GMT):
Has joined the channel.

anil8753 (Fri, 03 Sep 2021 15:24:25 GMT):
Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Multiple errors occurred: - Transaction processing for endorser [peer2.org0.example.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [peer2.org0.example.com:7051]: connection is in TRANSIENT_FAILURE - Transaction processing for endorser [peer1.org0.example.com:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description

leebradley (Fri, 03 Sep 2021 15:42:06 GMT):
Has joined the channel.

FoamCactus (Fri, 03 Sep 2021 15:54:09 GMT):
Has joined the channel.

alagiesellu (Fri, 03 Sep 2021 20:27:03 GMT):
Has joined the channel.

rlnrajesh (Sat, 04 Sep 2021 03:27:10 GMT):
Has joined the channel.

frank-student (Sat, 04 Sep 2021 03:41:46 GMT):
Has joined the channel.

kutya (Sat, 04 Sep 2021 09:47:06 GMT):
Has joined the channel.

MiryangJung (Sat, 04 Sep 2021 14:41:21 GMT):
Has joined the channel.

pseudoyu (Sat, 04 Sep 2021 15:10:22 GMT):
Has joined the channel.

rohitcha (Sun, 05 Sep 2021 09:05:42 GMT):
Has joined the channel.

RahulRajBarnwal (Sun, 05 Sep 2021 16:21:29 GMT):
Has joined the channel.

bhathiya (Sun, 05 Sep 2021 17:58:03 GMT):
Has joined the channel.

scnale (Sun, 05 Sep 2021 23:39:04 GMT):
Has joined the channel.

taccatisid (Mon, 06 Sep 2021 03:30:43 GMT):
Has joined the channel.

BovTricera (Mon, 06 Sep 2021 04:11:43 GMT):
Has joined the channel.

XINGYUZHU (Mon, 06 Sep 2021 05:47:52 GMT):
Hi, does anyone know how to inspect which peer of my Org endorsed the specific transaction(in case I'm the network manager)

amarnadh (Mon, 06 Sep 2021 09:48:34 GMT):
I am trying to deploy HLF in kubernetes. I have 2 orgs each having its own cluster, each having 1 orderer each. org1 have 1 peer and org 2 has 2 peers. Using Raft, I am getting error saying no raft leader. How do I verify that raft leader is elected ?

ShaharinAhmed (Mon, 06 Sep 2021 09:52:58 GMT):
Has joined the channel.

iffathossain (Mon, 06 Sep 2021 09:53:01 GMT):
Has joined the channel.

rohitcha (Mon, 06 Sep 2021 10:11:16 GMT):
Hey There, Guys need help. I have a year old Network running, which has all its certificates expired. How do I upgrade the certificates without losing(or rendering useless) the existing data and keys?

omerabbas (Mon, 06 Sep 2021 11:09:05 GMT):
Has joined the channel.

omerabbas (Mon, 06 Sep 2021 11:14:19 GMT):
Hello guys, I am new to Hyperledger Fabric and blockchain as well, Trying to create private data collection and got a question. Can we store Users (Fabric Client) base data in private collection?

Junior22 (Mon, 06 Sep 2021 11:48:05 GMT):
Has joined the channel.

michael1203 (Tue, 07 Sep 2021 01:46:39 GMT):
Has joined the channel.

sasikanuri (Tue, 07 Sep 2021 03:15:10 GMT):
Has joined the channel.

MarcoOliveira (Tue, 07 Sep 2021 10:06:37 GMT):
Has joined the channel.

manish-sethi (Tue, 07 Sep 2021 16:17:07 GMT):
You can inspect the proposoal response for the endorsers identity in this field - https://github.com/hyperledger/fabric-protos-go/blob/e9e1b9f969d8a08396a9e2f8482594b4fbc045b6/peer/transaction.pb.go#L382

manish-sethi (Tue, 07 Sep 2021 16:21:46 GMT):
What you store in a private data collection depends on your application design. Not sure if there is some specific question or concern here.

manish-sethi (Tue, 07 Sep 2021 16:27:13 GMT):
If you created the original certificates using Fabric-CA, the latest release allows re-enrollment - (https://github.com/hyperledger/fabric-ca/releases/tag/v1.5.1)

regiseloi (Tue, 07 Sep 2021 18:25:34 GMT):
Has joined the channel.

BGerb27 (Wed, 08 Sep 2021 11:29:49 GMT):
Has joined the channel.

bfrech (Wed, 08 Sep 2021 12:00:08 GMT):
Has joined the channel.

fangxin (Wed, 08 Sep 2021 13:12:44 GMT):
Has joined the channel.

fangxin (Wed, 08 Sep 2021 13:13:15 GMT):
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/chaincode/sacccc/vendor/pbc /usr/bin/ld: cannot find -lpbc /usr/bin/ld: cannot find -lgmp collect2: error: ld returned 1 exit status

fangxin (Wed, 08 Sep 2021 13:14:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=2s5pkp8egDoHNos27) When I was instantiating the chaincode, I encountered this problem, can you help me?

danilp (Wed, 08 Sep 2021 15:04:09 GMT):
Has joined the channel.

jan-law (Wed, 08 Sep 2021 21:36:37 GMT):
Has joined the channel.

Jason.Leach (Wed, 08 Sep 2021 22:06:04 GMT):
Has joined the channel.

Kharvok (Thu, 09 Sep 2021 00:43:08 GMT):
Has joined the channel.

Kharvok (Thu, 09 Sep 2021 00:45:49 GMT):
I am currently experiencing this same issue. No luck with any available documentation.

Kharvok (Thu, 09 Sep 2021 00:52:45 GMT):
I can ping the localhost from the container, but it's stil refusing the connection

subashnair (Thu, 09 Sep 2021 05:21:41 GMT):
Has joined the channel.

gseront (Thu, 09 Sep 2021 08:19:42 GMT):
Has joined the channel.

gseront (Thu, 09 Sep 2021 08:27:41 GMT):
Fabric Private Chaincode (#FPC) : adding a new identity to the dev environement. Hi, I'm using the dev docker image of FPC as described in FPC doc. I noticed that there are no user certificate in the msp. I wanted to add a new identity, but I also noticed that the msp has not been generated with cryptogen since the organisation name inside integration/config/crypto-config.yaml is not the same as the one in the msp. I couldn't track down where these certifcate are generated. How would you add a new user identity?

mianhammad (Thu, 09 Sep 2021 08:47:43 GMT):
Has joined the channel.

mianhammad (Thu, 09 Sep 2021 08:52:10 GMT):
Hi Everyone! I want to benchmark our ethereum private network and would like to use the caliper for this. I have the configuration file for it but it's giving me error "You must provide the json interface of the contract when instantiating a contract object" I have pasted my network configuration file code and command. Can you please help me out in solving this. `{ "caliper": { "blockchain": "ethereum", "command" : {} }, "ethereum": { "url": "ws://localhost:7545", "contractDeployerAddress": "0x5B14D7452573edB2ABe4941286618Fc09F1Ae085", "contractDeployerAddressPassword": "a0969bdb33adfb905d0d94cf4d6b1f63ebee447a17b80972f16e178bd0b219df", "fromAddress": "0x5B14D7452573edB2ABe4941286618Fc09F1Ae085", "fromAddressPassword": "a0969bdb33adfb905d0d94cf4d6b1f63ebee447a17b80972f16e178bd0b219df", "transactionConfirmationBlocks": 2, "contracts": { "simple": { "path": "../../../src/ethereum/simple/simple.json", "estimateGas": true, "gas": { "query": 100000, "transfer": 70000 } } } } } ` Command `caliper launch manager --caliper-workspace ./ --caliper-networkconfig ./networks/ethereum/1node-clique/networkconfig.json --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-flow-only-test --caliper-fabric-gateway-enabled`

BGerb27 (Thu, 09 Sep 2021 09:44:33 GMT):
Hi All. I am trying to work through the Commercial paper tutorial here https://hyperledger-fabric.readthedocs.io/en/release-2.3/tutorial/commercial_paper.html#prerequisites and when i use the ./network-starter.sh script to start the test network, no containers are made, in fact it appears to remove containers

akankshadixit (Thu, 09 Sep 2021 10:31:26 GMT):
Has joined the channel.

davidfdr (Thu, 09 Sep 2021 14:21:17 GMT):
Thank you. Without node ous I have to create the folder admincerts under msp correct? like fabric 1.4. Thank you very much.

Kharvok (Thu, 09 Sep 2021 15:31:14 GMT):
I am encountering: *desc = "transport: error while dialing: dial tcp 127.0.0.1:7051: connect: connection refused"** when trying to instantiate the ledger in the peer CLI. I'm following the test-network documentation exactly. This is posted on Stack Overflow and some other non-english language forums in the last 30 days with no resolution. The Docker logs also reveal nothing other than that the TLS handshake failed. I have no firewall enabled.

sharkrit (Thu, 09 Sep 2021 17:41:12 GMT):
Did anyone know how to migrate data from AWS Managed Service Hyperledger Fabric v1.4 to Self-Managed Hyperledger Fabric v2.2 ?

manish-sethi (Thu, 09 Sep 2021 21:24:51 GMT):
Please post this to caliper channel - https://chat.hyperledger.org/channel/caliper

justiny (Fri, 10 Sep 2021 01:27:50 GMT):
Has joined the channel.

Fang.Fang (Fri, 10 Sep 2021 02:13:31 GMT):
Has joined the channel.

LakshmanPalli (Fri, 10 Sep 2021 15:40:44 GMT):
Has joined the channel.

LakshmanPalli (Fri, 10 Sep 2021 15:47:39 GMT):
Very bad see, people leaving and the deprecation of composer followed with playground :(

LakshmanPalli (Fri, 10 Sep 2021 15:49:15 GMT):

Screenshot (347)_LI.jpg

ricc.zappoli (Fri, 10 Sep 2021 16:16:02 GMT):
Has joined the channel.

Kharvok (Fri, 10 Sep 2021 18:50:07 GMT):
`docker ps -a` has no containers?

Kharvok (Fri, 10 Sep 2021 18:51:24 GMT):
what do your logs say for peer2?

Kharvok (Fri, 10 Sep 2021 18:51:24 GMT):
what do your logs say for peer2? `docker logs peer2.org0.example.com`

davidkel (Fri, 10 Sep 2021 19:00:13 GMT):
Windows doesn't really get any testing. If you have to use native windows then try git bash rather than powershell, but I would recommend not using native windows at all and use WSL2 in windows or install linux in a hyper-v/virtualbox/vmware and use that instead

davidkel (Fri, 10 Sep 2021 19:00:13 GMT):
Windows doesn't really get any testing. If you have to use native windows then try git bash rather than powershell, but I would recommend not using native windows at all and use WSL2 in windows or install linux in a hyper-v/virtualbox/vmware and use that instead. WSL2 requires a bit more effort with docker as it's a lightweight linux env

Charly88554 (Fri, 10 Sep 2021 20:41:02 GMT):
Has joined the channel.

gameprofits (Fri, 10 Sep 2021 22:17:35 GMT):
Has joined the channel.

BlockchainTrainer (Sat, 11 Sep 2021 02:58:26 GMT):
Has joined the channel.

Pankil_Patel (Sat, 11 Sep 2021 06:27:52 GMT):
Has joined the channel.

fernandosilvap96 (Sun, 12 Sep 2021 00:14:48 GMT):
Has joined the channel.

HarithKza (Sun, 12 Sep 2021 03:47:23 GMT):
Has joined the channel.

IbrahimBroachwala (Sun, 12 Sep 2021 11:28:00 GMT):
Has joined the channel.

Tkonno (Mon, 13 Sep 2021 00:58:08 GMT):
Has joined the channel.

takehypotenuses (Mon, 13 Sep 2021 01:12:41 GMT):
Has joined the channel.

indirajith (Mon, 13 Sep 2021 02:19:02 GMT):
Hi all, when I try to connect to the chaincode from client application I get timeout error at client side ``` error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer2, url:grpcs://peer2-org2-map:7051, connected:false, connectAttempted:true error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer2 url:grpcs://peer2-org2-map:7051 timeout:3000 info: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer2 due to Error: Failed to connect before the deadline on Endorser- name: peer2, url:grpcs://peer2-org2-map:7051, connected:false, connectAttempted:true at checkState (/home/vfilipe/Documents/Projects/fabric-samples/fabcar/javascript/node_modules/@grpc/grpc-js/build/src/client.js:69:26) at Timeout._onTimeout (/home/vfilipe/Documents/Projects/fabric-samples/fabcar/javascript/node_modules/@grpc/grpc-js/build/src/channel.js:292:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) { connectFailed: true } error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer, url:grpcs://ord1-org2-map:7050, connected:false, connectAttempted:true error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer url:grpcs://ord1-org2-map:7050 timeout:3000 info: [NetworkConfig]: buildOrderer - Unable to connect to the committer orderer due to Error: Failed to connect before the deadline on Committer- name: orderer, url:grpcs://ord1-org2-map:7050, connected:false, connectAttempted:true``` and the folowing error in the peer logs ```Server TLS handshake failed in 3.566890298s with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=``` I have TLS enabled and can anyone explain what might be the problem here?

fmy1993 (Mon, 13 Sep 2021 03:47:47 GMT):
Has joined the channel.

fmy1993 (Mon, 13 Sep 2021 03:48:06 GMT):

Clipboard - 2021年9月13日中午11点47分

fmy1993 (Mon, 13 Sep 2021 03:49:11 GMT):
hi all,I am learning HF ,it is really cool,I am trying to use docker exec -e command to change environment in cli container,it did be modified,but cli container still response unfinded path,and I enter cli and cd this path,it really exit,so what shall I do to make it effect?

fmy1993 (Mon, 13 Sep 2021 03:50:41 GMT):
HF images and bin are all 1.4.4

fmy1993 (Mon, 13 Sep 2021 03:51:27 GMT):

Clipboard - 2021年9月13日中午11点51分

fmy1993 (Mon, 13 Sep 2021 03:51:47 GMT):

Clipboard - 2021年9月13日中午11点51分

fmy1993 (Mon, 13 Sep 2021 03:51:59 GMT):
docker compose version

rsayon (Mon, 13 Sep 2021 04:05:56 GMT):
Has joined the channel.

mianhammad (Mon, 13 Sep 2021 06:35:38 GMT):
Hi Everyone! How can I setup hyperledger caliper for ethereum? Can anyone guide me?

vlaca (Mon, 13 Sep 2021 08:56:35 GMT):
Has joined the channel.

siladu (Mon, 13 Sep 2021 12:45:23 GMT):
Has joined the channel.

SargisDudaklyan (Mon, 13 Sep 2021 17:44:12 GMT):
Has joined the channel.

souptikmakarov (Mon, 13 Sep 2021 18:06:25 GMT):
Hi. I am trying to setup the development environment as described here https://hyperledger-fabric.readthedocs.io/en/release-2.3/dev-setup/devenv.html . I am getting an issue at this stage "make basic-checks integration-test-prereqs" All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... xargs: misspell: No such file or directory spell checker passed Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh mktemp: failed to create directory via template ‘check_deps.sh-XXXXX’: Permission denied make: *** [Makefile:191: check-deps] Error 1

souptikmakarov (Mon, 13 Sep 2021 18:36:08 GMT):
Getting similar error while "make dist-clean all" Building build/bin/orderer mkdir: cannot create directory ‘build’: Permission denied make: *** [Makefile:230: build/bin/orderer] Error 1

mukulverm4 (Mon, 13 Sep 2021 18:50:43 GMT):
Has joined the channel.

j-s (Mon, 13 Sep 2021 22:19:39 GMT):
Hello, I have a conceptual question that I haven't seen an answer to yet. General consensus is that widely-used cryptocurrencies like Bitcoin are just about as failure-resistant as the Internet as a whole, since it would take a whole lot to shut down, destroy, or corrupt more than 50% of its nodes at this point. But what about Fabric (and Indy and other Hyperledger blockchains for that matter)? We can assume that a smaller blockchain deployment is much more vulnerable. So is there a *protocol for consistency / recovery* if all Fabric nodes go down but can be brought back online later, maybe due to some regular server downtime? What about a small network whose nodes are all stored in one data center, and all the nodes are somehow completely destroyed? Is there some kind of off-network *ledger recovery* in that kind of situation? It's sort of against the spirit of distributed democratic systems to allow a history update from one (outside!) source, but maybe there is some paradigm I just don't know about. And, if there turns out to be no precedent for *recovering an entire network* (even a small, private one), what are some best practices and guarantees for making sure such a failure never happens?

ajitspendse (Tue, 14 Sep 2021 04:03:56 GMT):
Has joined the channel.

conanoc (Tue, 14 Sep 2021 07:10:19 GMT):
Regular backup and restore? Check this out: https://hyperledger-fabric.readthedocs.io/en/release-2.2/upgrading_your_components.html#ledger-backup-and-restore

vlaca (Tue, 14 Sep 2021 08:30:18 GMT):
you can find some infos here that will help you

vlaca (Tue, 14 Sep 2021 08:30:18 GMT):
you can find some infos here that will help you here https://hyperledger.github.io/caliper/v0.4.2/ethereum-config/

vlaca (Tue, 14 Sep 2021 08:33:38 GMT):
the process is the same used for fabric https://hyperledger.github.io/caliper/v0.4.2/fabric-tutorial/tutorials-fabric-existing/ but with slight changes and using the configuration file specified here https://hyperledger.github.io/caliper/v0.4.2/ethereum-config/

fabio.henriques (Tue, 14 Sep 2021 08:33:40 GMT):
Has joined the channel.

vlaca (Tue, 14 Sep 2021 08:38:44 GMT):
From the peer log seams you can see that the client is terminating the connection, which usually means a TLS verification issue. The issue could be the TLS field is missing in the docker-compose file of the CLI service. Try adding the following field if you are using CLI for installing and invoking the chaincode. CORE_PEER_TLS_ENABLED=true CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.com/peers/peer0.com/tls/server.crt CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.com/peers/peer0.com/tls/server.key CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org.com/peers/peer0.com/tls/ca.crt

vlaca (Tue, 14 Sep 2021 08:50:54 GMT):
It could be that you are outside your home dir. Note that most locations outside your home dir. require superuser (root user) privileges in order to create files or directories - that's why you ran into the Permission denied error.

vlaca (Tue, 14 Sep 2021 08:51:04 GMT):
Solution Store things inside of a folder that the user running the build has permissions to. Change the ownership of the directory with the chown command before trying to write to it. We recommend the first solution. If you decide to go with the second solution then a command like this should work in both MacOS and Linux builds. chown -R $USER:$USER /path/to/directory $USER is a global environment variable that refers to the current logged in user. /path/to/directory should be replaced with the path to where you want to write to.

vlaca (Tue, 14 Sep 2021 08:52:05 GMT):
answered hers https://chat.hyperledger.org/channel/fabric-questions?msg=YnvkKmr7pmwyem9PP

vlaca (Tue, 14 Sep 2021 08:53:11 GMT):
It could be that you are outside your home dir. Note that most locations outside your home dir. require superuser (root user) privileges in order to create files or directories - that's why you ran into the Permission denied error. Solution Store things inside of a folder that the user running the build has permissions to. Change the ownership of the directory with the chown command before trying to write to it. We recommend the first solution. If you decide to go with the second solution then a command like this should work in both MacOS and Linux builds. chown -R $USER:$USER /path/to/directory $USER is a global environment variable that refers to the current logged in user. /path/to/directory should be replaced with the path to where you want to write to.

vlaca (Tue, 14 Sep 2021 08:57:46 GMT):
next time post here #caliper please

vlaca (Tue, 14 Sep 2021 09:01:02 GMT):
This is a problem with mingw64 which is messing with the filepaths. The solution is to set the following environment variable before running startFabric.sh : export MSYS_NO_PATHCONV=1 A fix was just submitted to fabric to do that for you so if you pull the latest version from the master branch it should work. Otherwise, just set that variable and that should solve your problem.

vlaca (Tue, 14 Sep 2021 09:03:42 GMT):
did it help?

fmy1993 (Tue, 14 Sep 2021 09:05:39 GMT):
Thank u, sir,I have fixed it by switch to using cli container

fmy1993 (Tue, 14 Sep 2021 09:05:55 GMT):
but I have another question

fmy1993 (Tue, 14 Sep 2021 09:07:02 GMT):

Clipboard - September 14, 2021 5:06 PM

fmy1993 (Tue, 14 Sep 2021 09:11:45 GMT):

Clipboard - September 14, 2021 5:11 PM

vlaca (Tue, 14 Sep 2021 09:12:28 GMT):
Have you follow all the register an admin?

vlaca (Tue, 14 Sep 2021 09:12:47 GMT):
1. Registering the org admin with the CA.

vlaca (Tue, 14 Sep 2021 09:13:16 GMT):
2. Register the peer with the CA. 3. Enrolling as admin from the peer. cp ${ORG_ADMIN_HOME}/msp/signcerts/* ${ORG_ADMIN_HOME}/msp/admincerts .

vlaca (Tue, 14 Sep 2021 09:13:33 GMT):
4. Enroll as the peer from the peer with a new FABRIC_CA_CLIENT_HOME=/path/to/peer.

vlaca (Tue, 14 Sep 2021 09:13:40 GMT):
5. Expose CORE_PEER_MSPCONFIGPATH=/path/to/peer/msp

vlaca (Tue, 14 Sep 2021 09:13:51 GMT):
6. Running the peer with peer node start.

vlaca (Tue, 14 Sep 2021 09:13:58 GMT):
7. On the cli, enroll as admin and set CORE_PEER_ADDRESS and other variables to the peer ones.

fmy1993 (Tue, 14 Sep 2021 09:14:28 GMT):
2 peers in one org,the first can join,but another can not

fmy1993 (Tue, 14 Sep 2021 09:15:07 GMT):
could you please provide some link about this part knowledge?

fmy1993 (Tue, 14 Sep 2021 09:16:00 GMT):

Clipboard - September 14, 2021 5:15 PM

fmy1993 (Tue, 14 Sep 2021 09:16:17 GMT):
there is the docker compose file

fmy1993 (Tue, 14 Sep 2021 09:17:02 GMT):
I will google this part

fmy1993 (Tue, 14 Sep 2021 09:18:02 GMT):
thank u, sir,have a good day

vlaca (Tue, 14 Sep 2021 09:19:31 GMT):
sounds like the indentity wasn't created correctly there's a field in the identities that can be used to indicate what type of identity this is Admin etc...

vlaca (Tue, 14 Sep 2021 09:20:06 GMT):
it could be that you've created the test network on old versions and not correctly cleanedup

fmy1993 (Tue, 14 Sep 2021 09:21:25 GMT):
fabric version is 1.4.4

fmy1993 (Tue, 14 Sep 2021 09:21:37 GMT):
images version

fmy1993 (Tue, 14 Sep 2021 09:22:24 GMT):
I have check the msp path provide to channel

fmy1993 (Tue, 14 Sep 2021 09:22:51 GMT):
maybe I will check it more carefully

souptikmakarov (Tue, 14 Sep 2021 10:38:16 GMT):
I have cloned my fork under /home/username/github.com/username/fabric and hte fabric folder has the permissions drwxr-xr-x

souptikmakarov (Tue, 14 Sep 2021 10:39:58 GMT):
and the chown command above gives me "chown: changing ownership of '/home/username/github.com/username/fabric': Operation not permitted"

vlaca (Tue, 14 Sep 2021 10:55:36 GMT):
try executing "chmod 777 -R "

souptikmakarov (Tue, 14 Sep 2021 11:33:22 GMT):
still says operation not permitted

souptikmakarov (Tue, 14 Sep 2021 11:36:56 GMT):
so i did sudo chod and it worked and i am not getting that error anymore

souptikmakarov (Tue, 14 Sep 2021 11:36:56 GMT):
so i did sudo chmod and it worked and i am not getting that error anymore

souptikmakarov (Tue, 14 Sep 2021 11:37:39 GMT):
But now getting this error Please replace the Apache license header comment text with: SPDX-License-Identifier: Apache-2.0 Checking committed files for traditional Apache License headers ... The following files are missing traditional Apache 2.0 headers: docs/.gitignore docs/Makefile Fatal Error - All files must have a license header make: *** [Makefile:135: license] Error 1

souptikmakarov (Tue, 14 Sep 2021 12:27:47 GMT):
I found this ticket https://jira.hyperledger.org/browse/FAB-5282 and according to it replaced the old apache headers with the new format in the files

souptikmakarov (Tue, 14 Sep 2021 12:28:07 GMT):
Now only 2 files remain docs/.gitignore docs/Makefile

souptikmakarov (Tue, 14 Sep 2021 12:28:16 GMT):
What to do about these?

gfunchal (Tue, 14 Sep 2021 12:28:34 GMT):
Has joined the channel.

souptikmakarov (Tue, 14 Sep 2021 16:30:43 GMT):
Building Docker image hyperledger/fabric-baseos docker build --force-rm -f images/baseos/Dockerfile \ --build-arg GO_VER=1.16.7 \ --build-arg ALPINE_VER=3.14 \ \ -t hyperledger/fabric-baseos ./images/baseos Sending build context to Docker daemon 2.048kB Step 1/6 : ARG GO_VER Step 2/6 : ARG ALPINE_VER Step 3/6 : FROM alpine:${ALPINE_VER} as base ---> 14119a10abf4 Step 4/6 : RUN apk add --no-cache tzdata ---> Running in ba61b97570e8 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: DNS lookup error WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: DNS lookup error ERROR: unable to select packages: tzdata (no such package): required by: world[tzdata] Removing intermediate container ba61b97570e8 The command '/bin/sh -c apk add --no-cache tzdata' returned a non-zero code: 1 make: *** [Makefile:249: build/images/baseos/.dummy-amd64-2.4.0-snapshot-e55a3885f] Error 1

blessingkp (Tue, 14 Sep 2021 17:15:16 GMT):
Has joined the channel.

hjpn (Tue, 14 Sep 2021 19:10:07 GMT):
Has joined the channel.

asif123 (Wed, 15 Sep 2021 02:24:24 GMT):
Has joined the channel.

claracavalcante (Wed, 15 Sep 2021 07:46:45 GMT):
Has joined the channel.

Chem (Wed, 15 Sep 2021 07:47:18 GMT):
How to generate a fabric network with n number of organizations dynamically.(input n from user)

fkossiaras (Wed, 15 Sep 2021 09:27:00 GMT):
Has joined the channel.

vlaca (Wed, 15 Sep 2021 09:39:36 GMT):
try installing tz data

vlaca (Wed, 15 Sep 2021 09:40:16 GMT):
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata

hjpn (Wed, 15 Sep 2021 09:41:36 GMT):
Has left the channel.

fmy1993 (Wed, 15 Sep 2021 11:08:55 GMT):

Clipboard - 2021年9月15日晚上7点08分

fmy1993 (Wed, 15 Sep 2021 11:09:06 GMT):
how to fix this issue when I use fabric 1.4.4 and Instantiate chaincode

moisesjaramillo (Wed, 15 Sep 2021 16:28:31 GMT):
Has joined the channel.

bobbh (Wed, 15 Sep 2021 16:57:52 GMT):
Has joined the channel.

npc0405 (Thu, 16 Sep 2021 00:31:40 GMT):
Hi Team, I am trying to setup test-network in my local machine, it creates container and required artifacts but failing while creating channel. It says "scripts/createChannel.sh: line 40: osnadmin: command not found Channel creation failed" Any idea what could go wrong here ? Any help would be greatly appreciated. Thanks

CherryHsu (Thu, 16 Sep 2021 02:55:52 GMT):
Has joined the channel.

mnill2 (Thu, 16 Sep 2021 06:21:38 GMT):
Has joined the channel.

souptikmakarov (Thu, 16 Sep 2021 06:54:47 GMT):
It worked. Thanks

kingstenzzz (Thu, 16 Sep 2021 07:04:06 GMT):
Has joined the channel.

kingstenzzz (Thu, 16 Sep 2021 07:06:07 GMT):
When、

kingstenzzz (Thu, 16 Sep 2021 07:06:07 GMT):
When I launch my chaincode,the output as shown

kingstenzzz (Thu, 16 Sep 2021 07:09:09 GMT):

Clipboard - 2021年9月16日下午3点09分

kingstenzzz (Thu, 16 Sep 2021 07:09:34 GMT):
How to fix it?

fabio.henriques (Thu, 16 Sep 2021 08:14:10 GMT):
Hi there! What Fabric version are you using?

vlaca (Thu, 16 Sep 2021 08:20:07 GMT):
had the same problem

vlaca (Thu, 16 Sep 2021 08:21:15 GMT):
you may have a confict between the binary installed

vlaca (Thu, 16 Sep 2021 08:21:17 GMT):
do git branch release-

vlaca (Thu, 16 Sep 2021 08:23:32 GMT):
and make sure to shut down the network properly before restarting. ensure that both docker images are stopped and removed docker kill $(docker ps -q) docker rm $(docker ps -aq) `docker volume prune` also there's a directory in the test-network organizations I think that it's worth deleting you can also try to run ./network.sh down several times

fmy1993 (Thu, 16 Sep 2021 13:02:24 GMT):
hi all,how to fix go local subforder issue when I install chaincode?

fmy1993 (Thu, 16 Sep 2021 13:03:06 GMT):

Clipboard - 2021年9月16日晚上9点03分

fmy1993 (Thu, 16 Sep 2021 13:03:15 GMT):
something like this

fmy1993 (Thu, 16 Sep 2021 13:04:01 GMT):

Clipboard - 2021年9月16日晚上9点03分

fmy1993 (Thu, 16 Sep 2021 13:04:24 GMT):
already use god mod and execute go vendor

smbkd6 (Thu, 16 Sep 2021 15:00:06 GMT):
Has joined the channel.

aaronrbg (Thu, 16 Sep 2021 18:28:04 GMT):
Has joined the channel.

amarnadh (Fri, 17 Sep 2021 05:49:53 GMT):
While trying to install Javascript chaincode in HLF in Kubernetes (eks) , I am getting the following error : Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/fabric-contract-api/-/fabric-contract-api-2.2.0.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org Can someone please help with this. The same network works fine when golang chaincode is used.

indirajith (Fri, 17 Sep 2021 08:28:12 GMT):
Thank you very much for your response. I am connecting using node sdk client application and figuring out how to include this. I have a doubt, when a client application tries to connect it should have its own tls cert right?

vberg 2 (Fri, 17 Sep 2021 08:48:16 GMT):
Has joined the channel.

vlaca (Fri, 17 Sep 2021 09:29:15 GMT):
i guess its a dns lookup which is failing. I think when package installers do so many dns lookups it probaly times out. so its best to set it manually in /etc/hosts if you have this type of problem happening.

amarnadh (Fri, 17 Sep 2021 09:29:49 GMT):
Tried that

amarnadh (Fri, 17 Sep 2021 09:29:53 GMT):
But did not work

amarnadh (Fri, 17 Sep 2021 09:30:22 GMT):
I updated the /etc/hosts inside my peer container and tried to install the chaincode manually. That did not help

vlaca (Fri, 17 Sep 2021 09:30:48 GMT):
It could be a problem that is occurring due to the combination of both the internet proxy settings and the DNS servers configured with your internet connection. Solutions: 1. Switching my internet connection to some other network. 2. Changing configured DNS servers (i.e. Automatic, in my case) to manually that I entered (i.e. to Google's DNS servers).

vlaca (Fri, 17 Sep 2021 09:32:17 GMT):
Have you tried just restarting the network? restarting docker/computer?

vlaca (Fri, 17 Sep 2021 09:33:41 GMT):
yep

amarnadh (Fri, 17 Sep 2021 09:35:23 GMT):
Restarted N/w multiple time. I am running in the network in Kubernetes cluster

sharukh (Fri, 17 Sep 2021 11:21:58 GMT):
Has joined the channel.

indirajith (Fri, 17 Sep 2021 12:01:29 GMT):
Can you provide our point to some examples where a client gets it's both certs, e cert and t cert?

OscarTBallester (Fri, 17 Sep 2021 13:07:44 GMT):
Has joined the channel.

MullaAlmas (Fri, 17 Sep 2021 14:41:12 GMT):
Has joined the channel.

MullaAlmas (Fri, 17 Sep 2021 14:43:00 GMT):
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 8626d956d3720ebbddb454a0e6194b672d1bcaea62abdcf1f53272f76b87e067: could not launch chaincode fabcar_1:6ab85d9d0ab315198d930d1b0eb8cf8c3f59849549226a86553e29eb1fbc0a12: chaincode registration failed: container exited with 0" Invoke execution on peer0.org1 peer0.org2 failed Deploying chaincode failed

MullaAlmas (Fri, 17 Sep 2021 14:43:23 GMT):
Hi,please help me with this issue

MullaAlmas (Fri, 17 Sep 2021 14:43:23 GMT):
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 8626d956d3720ebbddb454a0e6194b672d1bcaea62abdcf1f53272f76b87e067: could not launch chaincode fabcar_1:6ab85d9d0ab315198d930d1b0eb8cf8c3f59849549226a86553e29eb1fbc0a12: chaincode registration failed: container exited with 0" Invoke execution on peer0.org1 peer0.org2 failed Deploying chaincode failed Hi,please help me with this issue strucked for long time

MullaAlmas (Fri, 17 Sep 2021 14:43:46 GMT):
strucked for long time

chikai (Fri, 17 Sep 2021 14:57:07 GMT):
Has joined the channel.

javieronishi (Fri, 17 Sep 2021 16:08:33 GMT):
Has joined the channel.

mollayii (Fri, 17 Sep 2021 16:32:04 GMT):
Has joined the channel.

sanskarkhare (Fri, 17 Sep 2021 18:08:04 GMT):
Has joined the channel.

Shweta1 (Fri, 17 Sep 2021 19:04:48 GMT):

Clipboard - September 18, 2021 12:35 AM

Shweta1 (Fri, 17 Sep 2021 19:04:53 GMT):
Hi team I am doing hlf 2.2 multihost setup using crypto gen.but not able to install chaincode on peer .Getting attached error.Pls help.

mirshahzad (Sat, 18 Sep 2021 03:52:17 GMT):

yoman error.PNG

mirshahzad (Sat, 18 Sep 2021 03:52:19 GMT):

startfabric issue.PNG

mirshahzad (Sat, 18 Sep 2021 03:53:10 GMT):
I have these error when I am trying to develop an application on fabric. Could anyone please guide me. Thanks!

Clippo 2 (Sat, 18 Sep 2021 04:26:19 GMT):
Has joined the channel.

Nufail (Sat, 18 Sep 2021 06:00:24 GMT):
Has joined the channel.

handao (Sat, 18 Sep 2021 06:30:13 GMT):
Has joined the channel.

davidkel (Sat, 18 Sep 2021 07:05:11 GMT):
You are trying to use hyperledger composer, that was stopped being developed ages ago and the community and developers have all moved on now. I would suggest you don't use it and look at hyperledger fabric instead

davidkel (Sat, 18 Sep 2021 07:05:11 GMT):
You are trying to use hyperledger composer, that was stopped being developed ages ago and the community and developers have all moved on now. I would suggest you don't use it and look at hyperledger fabric instead https://hyperledger-fabric.readthedocs.io/en/release-2.2/getting_started.html

mirshahzad (Sat, 18 Sep 2021 15:37:21 GMT):
I am very thankful for your appreciable respponse.

iros75 (Sat, 18 Sep 2021 20:37:23 GMT):
Has joined the channel.

iros75 (Sat, 18 Sep 2021 20:40:36 GMT):
I am trying to run the fabric-example and while they work ok with go in java I get Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Undefined contract called" when I invoke the following command peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt" -c '{"function":"InitLedger","Args":[]}'

iros75 (Sat, 18 Sep 2021 20:40:47 GMT):
any idea?

bardia (Sun, 19 Sep 2021 05:39:03 GMT):
Has joined the channel.

bardia (Sun, 19 Sep 2021 05:39:30 GMT):
How do I fix the following error? :tears: This happens when I fail to login 20 times failed to enroll user: enroll failed: enroll failed: Response from server: Error Code: 73 - Incorrect password entered 10 times, max incorrect password limit of 10 reached

littlemouse (Sun, 19 Sep 2021 05:55:21 GMT):
Has joined the channel.

MrChainBlockz (Sun, 19 Sep 2021 06:52:42 GMT):
Has joined the channel.

littlemouse (Sun, 19 Sep 2021 08:53:57 GMT):

1.png

littlemouse (Sun, 19 Sep 2021 08:54:05 GMT):

2.png

littlemouse (Sun, 19 Sep 2021 08:54:18 GMT):
Hi all,I’m learning about Running chaincode in development mode tutorial-https://hyperledger-fabric.readthedocs.io/en/release-2.3/peer-chaincode-devmode.html#Start the orderer ,I get an error when running the ‘ORDERER_GENERAL_GENESISPROFILE=SampleDevModeSolo orderer’command to start the orderer with the SampleDevModeSolo profile and start the ordering service.How to sovle?Any idea?

littlemouse (Sun, 19 Sep 2021 08:55:46 GMT):
Hi all,I’m learning about Running chaincode in development mode tutorial -https://hyperledger-fabric.readthedocs.io/en/release-2.3/peer-chaincode-devmode.html#Start the orderer, I get an error when running the ‘ORDERER_GENERAL_GENESISPROFILE=SampleDevModeSolo orderer’command to start the orderer with the SampleDevModeSolo profile and start the ordering service.How to sovle?Any idea?

arrey_damn (Sun, 19 Sep 2021 09:32:25 GMT):
Has joined the channel.

arrey_damn (Sun, 19 Sep 2021 09:35:23 GMT):

Capture2.PNG

arrey_damn (Sun, 19 Sep 2021 09:35:25 GMT):

Capture.PNG

arrey_damn (Sun, 19 Sep 2021 09:36:55 GMT):
Am trying to understand the channel configuration in configtx.yaml. I was going through the documentation and found that we can name the policies as per our wish. I want to understand if the default policy names Readers, Admins and Writers are used or would it still work if i change the policy names

AmshumaanVarma (Sun, 19 Sep 2021 13:14:41 GMT):
Has joined the channel.

iros75 (Sun, 19 Sep 2021 21:13:19 GMT):
Giving up using this with Java. Examples seem to be broken with missing files. There is a mismatch between documentation and files. So far tried fabler and asset-transfer-basic. Has anyone ever managed to run this? if yes which version with which version of java and fabric? I spent almost a week first to get it running on a new A1 MacBook (impossible task too) and after on an old mac but also impossible to run. Please advice if there is any clear documentation to get started that works.

fmy1993 (Mon, 20 Sep 2021 00:03:58 GMT):
hi,all,it is possible to use relative path in go-sdk config.yaml file?

jcarlosusa (Mon, 20 Sep 2021 02:47:47 GMT):
Has joined the channel.

bardia (Mon, 20 Sep 2021 04:25:07 GMT):
How do I fix the following error? :tears: This happens when I fail to login 20 times failed to enroll user: enroll failed: enroll failed: Response from server: Error Code: 73 - Incorrect password entered 10 times, max incorrect password limit of 10 reached

nkalichynskyi (Mon, 20 Sep 2021 07:41:32 GMT):
You can try and check `CORE_VM_ENDPOINT` env variable or corresponding config entry in core.yaml, by default it's set to `unix:///host/var/run/docker.sock` so there might be an issue with it on Windows

fabio.henriques (Mon, 20 Sep 2021 09:25:53 GMT):
h

souptikmakarov (Mon, 20 Sep 2021 09:30:23 GMT):
Hi facing this issue while setting up the development enironment > make dist-clean all All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... xargs: misspell: No such file or directory spell checker passed Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports ./scripts/golinter.sh: line 19: goimports: command not found make: *** [Makefile:186: linter] Error 127 go get golang.org/x/tools/cmd/goimports go get: installing executables with 'go get' in module mode is deprecated. To adjust and download dependencies of the current module, use 'go get -d'. To install using requirements of the current module, use 'go install'. To install ignoring the current module, use 'go install' with a version, like 'go install example.com/cmd@latest'. For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

souptikmakarov (Mon, 20 Sep 2021 09:30:23 GMT):
Hi facing this issue while setting up the development enironment > make dist-clean all All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... xargs: misspell: No such file or directory spell checker passed Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports ./scripts/golinter.sh: line 19: goimports: command not found make: *** [Makefile:186: linter] Error 127 So when I try to install goimports like this go get golang.org/x/tools/cmd/goimports go get: installing executables with 'go get' in module mode is deprecated. To adjust and download dependencies of the current module, use 'go get -d'. To install using requirements of the current module, use 'go install'. To install ignoring the current module, use 'go install' with a version, like 'go install example.com/cmd@latest'. For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

souptikmakarov (Mon, 20 Sep 2021 09:30:23 GMT):
Hi facing this issue while setting up the development enironment > make dist-clean all All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... xargs: misspell: No such file or directory spell checker passed Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports ./scripts/golinter.sh: line 19: goimports: command not found make: *** [Makefile:186: linter] Error 127 So when I try to install goimports like this > go get golang.org/x/tools/cmd/goimports go get: installing executables with 'go get' in module mode is deprecated. To adjust and download dependencies of the current module, use 'go get -d'. To install using requirements of the current module, use 'go install'. To install ignoring the current module, use 'go install' with a version, like 'go install example.com/cmd@latest'. For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

indirajith (Mon, 20 Sep 2021 11:15:51 GMT):
Hi all, I made a spelling mistake in docker-compose.yaml file for a peer container, and I have to change an environment variable, is there a way to do this without restarting the peer node. Ideally in blockchain restarting any one node should not be problem, I would like to know if there are anyway to accomplish this. https://chat.hyperledger.org/channel/fabric-sdk-node?msg=jCaXM2CFketw5WF2L

indirajith (Mon, 20 Sep 2021 11:48:42 GMT):
Do we need to rejoin the channels again if we restart a peer? Thank you!

indirajith (Mon, 20 Sep 2021 11:48:42 GMT):
Hi all, Do we need to rejoin the channels again if we restart a peer? Thank you!

cattanep (Mon, 20 Sep 2021 12:44:02 GMT):
Has joined the channel.

Noc0r (Mon, 20 Sep 2021 12:51:47 GMT):
Has joined the channel.

BrettLogan (Mon, 20 Sep 2021 13:44:25 GMT):
Not if you setup persistent storage when you configured your containers

BrettLogan (Mon, 20 Sep 2021 13:45:52 GMT):
It is not possible, you can't hot-swap variables

BrettLogan (Mon, 20 Sep 2021 13:46:51 GMT):
Have you configured a GOBIN variable and placed that path on your PATH variable

indirajith (Mon, 20 Sep 2021 13:56:51 GMT):
I am using couchDB for the world state. Is the persistent storage you are referring to is something different than this one?

indirajith (Mon, 20 Sep 2021 13:57:32 GMT):
Thank you BrettLogan!

souptikmakarov (Mon, 20 Sep 2021 17:13:29 GMT):
No. I did this > whereis go go: /usr/local/go /usr/local/go/bin/go > export GOBIN=/usr/local/go/bin/ > echo $GOBIN /usr/local/go/bin/ > echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin Still getting the same error

chesta0703 (Mon, 20 Sep 2021 18:09:10 GMT):
Has joined the channel.

gravin10 (Mon, 20 Sep 2021 19:36:12 GMT):
Has joined the channel.

gravin10 (Mon, 20 Sep 2021 19:36:32 GMT):
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Chaincode installation on peer0.org1 has failed Deploying chaincode failed

gravin10 (Mon, 20 Sep 2021 19:36:57 GMT):
I am getting this when i try to run ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go

gravin10 (Mon, 20 Sep 2021 19:37:01 GMT):
in windows

Zarquan314 (Tue, 21 Sep 2021 05:23:02 GMT):
Has joined the channel.

barankilic (Tue, 21 Sep 2021 07:22:31 GMT):
Hi, The chaincode I wrote gives "ProposalResponsePayloads do not match" error sometimes. How can I debug it? I looked at all logs of containers in Docker for the "test-network" (from fabric-samples repo) and none of them shows an error. How can I see the two different proposals? My chaincode is deterministic as far as I know. So, there aren't any random numbers or timestamps in it. The details are here: https://stackoverflow.com/questions/69145363/proposalresponsepayloads-do-not-match-erc-1155-chaincode-fabric-samples

F4NES (Tue, 21 Sep 2021 08:16:37 GMT):
Has joined the channel.

F4NES (Tue, 21 Sep 2021 08:21:16 GMT):
Hello. I deployed a cluster in k8s and today it broke. Please tell me how to correctly collect full logs so that you can ask someone for advice. In short, the peer responds that there is no channel(there is a channel and blocks for it and worked before)

MullaAlmas (Tue, 21 Sep 2021 09:58:20 GMT):
please help me

MullaAlmas (Tue, 21 Sep 2021 09:58:30 GMT):
anyone in the team

fabio.henriques (Tue, 21 Sep 2021 10:07:06 GMT):
Send container logs please

MeSSeRz (Tue, 21 Sep 2021 12:54:28 GMT):
Hello. I have a Hyperledger Fabric deployed on AWS with Kubernetes (EKS). I need to deploy another HL Fabric implementation on a separate AWS account and connect it to the first account. E.g. Org1 on the first account and Org2 on the second. How can I connect them to the same channel? Do I need to look at the Ingress or something else?

TejaBanton (Tue, 21 Sep 2021 13:50:19 GMT):
Has joined the channel.

souptikmakarov (Tue, 21 Sep 2021 13:50:54 GMT):
Ok. So after setting GOBIN, GOPATH and GOROOT properly this error was resolved

souptikmakarov (Tue, 21 Sep 2021 13:55:21 GMT):
make dist-clean all All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... The following files are have spelling errors: common/ledger/blkstorage/blockfile_mgr_test.go:196:42: "existant" is a misspelling of "existent" core/chaincode/lifecycle/cache_test.go:919:8: "supresses" is a misspelling of "suppresses" core/chaincode/lifecycle/cache_test.go:931:8: "supresses" is a misspelling of "suppresses" core/chaincode/lifecycle/cache_test.go:943:8: "supresses" is a misspelling of "suppresses" core/ledger/pvtdatastorage/store.go:552:23: "funciton" is a misspelling of "function" docs/source/developapps/scenario.md:18:22: "commerical" is a misspelling of "commercial" docs/source/docs_guide.md:77:40: "becuase" is a misspelling of "because" docs/source/private_data_tutorial.rst:360:69: "collecton" is a misspelling of "collection" docs/source/private_data_tutorial.rst:979:64: "implict" is a misspelling of "implicit" Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports The following files contain goimports errors bccsp/factory/nopkcs11.go bccsp/factory/nopkcs11_test.go bccsp/factory/pkcs11.go bccsp/factory/pkcs11_test.go bccsp/factory/pkcs11factory.go bccsp/factory/pkcs11factory_test.go bccsp/pkcs11/pkcs11_test.go core/handlers/library/noplugin_test.go core/handlers/library/plugin.go core/handlers/library/plugin_stub.go core/handlers/library/race_test.go integration/ledger/ledger_generate_test.go internal/peer/node/signals.go internal/peer/node/signals_windows.go orderer/common/server/signals.go orderer/common/server/signals_windows.go The goimports command 'goimports -l -w' must be run for these files make: *** [Makefile:186: linter] Error 1

souptikmakarov (Tue, 21 Sep 2021 13:55:21 GMT):
Any idea how to fix this issue? I found one jira thread from 2016 but couldn't find any solution make dist-clean all All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... The following files are have spelling errors: common/ledger/blkstorage/blockfile_mgr_test.go:196:42: "existant" is a misspelling of "existent" core/chaincode/lifecycle/cache_test.go:919:8: "supresses" is a misspelling of "suppresses" core/chaincode/lifecycle/cache_test.go:931:8: "supresses" is a misspelling of "suppresses" core/chaincode/lifecycle/cache_test.go:943:8: "supresses" is a misspelling of "suppresses" core/ledger/pvtdatastorage/store.go:552:23: "funciton" is a misspelling of "function" docs/source/developapps/scenario.md:18:22: "commerical" is a misspelling of "commercial" docs/source/docs_guide.md:77:40: "becuase" is a misspelling of "because" docs/source/private_data_tutorial.rst:360:69: "collecton" is a misspelling of "collection" docs/source/private_data_tutorial.rst:979:64: "implict" is a misspelling of "implicit" Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports The following files contain goimports errors bccsp/factory/nopkcs11.go bccsp/factory/nopkcs11_test.go bccsp/factory/pkcs11.go bccsp/factory/pkcs11_test.go bccsp/factory/pkcs11factory.go bccsp/factory/pkcs11factory_test.go bccsp/pkcs11/pkcs11_test.go core/handlers/library/noplugin_test.go core/handlers/library/plugin.go core/handlers/library/plugin_stub.go core/handlers/library/race_test.go integration/ledger/ledger_generate_test.go internal/peer/node/signals.go internal/peer/node/signals_windows.go orderer/common/server/signals.go orderer/common/server/signals_windows.go The goimports command 'goimports -l -w' must be run for these files make: *** [Makefile:186: linter] Error 1

jcastrence (Tue, 21 Sep 2021 14:26:16 GMT):
Has joined the channel.

hiromaily (Tue, 21 Sep 2021 15:10:47 GMT):
Has joined the channel.

jcastrence (Tue, 21 Sep 2021 15:46:54 GMT):
@souptikmakarov What branch are you on?

jcastrence (Tue, 21 Sep 2021 16:29:50 GMT):
I ran both make checks and make dist-clean all locally on main and didn't run into any issues, might be something with your branch. Also went ahead and pushed a PR to fix those misspellings: https://github.com/hyperledger/fabric/pull/2939 so once that gets merged just try again from the latest pull. If you intend to submit a PR on this branch you first need to satisfy the linter. Simply run the goimports command that was logged back, 'goimports -l -w' on all of the files under the line that says 'The following files contain goimports errors' to make sure everything is formatted to the standards of fabric.

jcastrence (Tue, 21 Sep 2021 17:12:23 GMT):
@souptikmakarov After further investigation, it seems that spell check only checks files that have been edited in the current branch. So since you touched those files in this branch, even though those pre-existing misspellings weren't raising errors before, they are now being caught by the checker. In the future, if you notice there are misspellings in your current branch, it's usually best to just fix those along with your changes.

JonathanScialpi (Tue, 21 Sep 2021 17:42:49 GMT):
Has joined the channel.

scaraclette (Tue, 21 Sep 2021 21:43:44 GMT):
Has joined the channel.

souptikmakarov (Wed, 22 Sep 2021 05:58:33 GMT):
I had forked the main branch

souptikmakarov (Wed, 22 Sep 2021 05:59:04 GMT):
I fixed those spelling mistakes in all the files. I did a replace all of the wrong spellings

souptikmakarov (Wed, 22 Sep 2021 05:59:56 GMT):
How do I run the goimports command on each of the files? go into that directory and then run 'goimports -l -w' or do I need to specify the filename

a-i-to (Wed, 22 Sep 2021 06:19:38 GMT):
Has joined the channel.

littlemouse (Wed, 22 Sep 2021 07:59:57 GMT):
I'm now worring about how to run chaincode in development mode,any idea?

kongwu 2 (Wed, 22 Sep 2021 08:50:33 GMT):
Has joined the channel.

bardia (Wed, 22 Sep 2021 09:07:53 GMT):
How do I fix the following error? :tears: This happens when I fail to login 20 times failed to enroll user: enroll failed: enroll failed: Response from server: Error Code: 73 - Incorrect password entered 10 times, max incorrect password limit of 10 reached

kosarlatif (Wed, 22 Sep 2021 10:26:27 GMT):
Has joined the channel.

kosarlatif (Wed, 22 Sep 2021 10:31:33 GMT):
Explorer Fabric integration

kosarlatif (Wed, 22 Sep 2021 10:45:38 GMT):
Getting some issue with Explorer Fabric integration, Can any one please assist.

davidkel (Wed, 22 Sep 2021 11:12:57 GMT):
try the #hyperledger-explorer channel maybe more explorer people there

kosarlatif (Wed, 22 Sep 2021 12:38:40 GMT):
Thnx

souptikmakarov (Wed, 22 Sep 2021 13:15:04 GMT):
I did 'goimports -l -w' in the fabric folder itself and it has been running for over 6 hrs now and nothing has happened. It is not even logging anything

Shweta1 (Wed, 22 Sep 2021 13:43:41 GMT):

Clipboard - September 22, 2021 7:13 PM

oding (Wed, 22 Sep 2021 14:21:00 GMT):
Has joined the channel.

fayeeg (Wed, 22 Sep 2021 16:06:41 GMT):
Hello Fabric experts In a use-case of multi org and each org having its own dedicated CA, how to list all users/identities in the network registered in each CA server?

fayeeg (Wed, 22 Sep 2021 16:06:41 GMT):
Hello Fabric experts In a use-case of multi org and each org having its own dedicated CA, how to list all users/identities in the network registered in each CA server using the SDK?

CollinMeese (Wed, 22 Sep 2021 16:16:02 GMT):
Has joined the channel.

Andre_Augusto (Wed, 22 Sep 2021 16:27:21 GMT):
Has joined the channel.

jcastrence (Wed, 22 Sep 2021 17:20:20 GMT):
Just append the name of the file to the command, so for example 'goimports -l -w bccsp/factory/nopkcs11.go'. You can also run 'goimports --help' to look at usage help.

jcastrence (Wed, 22 Sep 2021 17:22:17 GMT):
Can you please give some more context to this situation?

PowellAndy (Wed, 22 Sep 2021 17:31:30 GMT):
Has joined the channel.

jcastrence (Wed, 22 Sep 2021 17:35:25 GMT):
What version SDK are you using and which language? You can find documentation for Node.js and Java here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/fabric-sdks.html

SamKrew (Wed, 22 Sep 2021 17:52:57 GMT):
Has joined the channel.

fayeeg (Thu, 23 Sep 2021 04:58:43 GMT):
@jcastrence using node sdk. however would like to understand the concept irrespective of the sdk language. It seems to my understanding that identity management in Fabric is not decentralized in such case how can we have a view of combined list of identities created in each CA server by the respective Org?

fayeeg (Thu, 23 Sep 2021 05:03:49 GMT):
my requirement is to list the channel users ( retrieved from user registry ) in the front end so that User 1 in Org 1 can select User 2 in Org 2 to transfer asset.

MullaAlmas (Thu, 23 Sep 2021 06:25:49 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 06:44:43 GMT):

Screenshot for chat.png

MullaAlmas (Thu, 23 Sep 2021 06:47:54 GMT):
sir please have a look sir

ssmxmss (Thu, 23 Sep 2021 07:52:49 GMT):
Has joined the channel.

Rafailk (Thu, 23 Sep 2021 08:00:03 GMT):
Has joined the channel.

vonpmg (Thu, 23 Sep 2021 08:31:17 GMT):
Has joined the channel.

fabio.henriques (Thu, 23 Sep 2021 08:31:40 GMT):
Execute docker ps -a --filter "status=exited" please

fabio.henriques (Thu, 23 Sep 2021 08:31:47 GMT):
And send output

MullaAlmas (Thu, 23 Sep 2021 08:52:09 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 08:54:05 GMT):

Screenshot from 2021-09-23 14-23-33.png

MullaAlmas (Thu, 23 Sep 2021 08:54:30 GMT):
sir here it is sir...please sir

MullaAlmas (Thu, 23 Sep 2021 08:54:38 GMT):
TQ sir

fabio.henriques (Thu, 23 Sep 2021 08:55:49 GMT):
Now execute docker logs d8e8eaae319f

MullaAlmas (Thu, 23 Sep 2021 08:56:04 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 08:57:21 GMT):

Screenshot from 2021-09-23 14-27-02.png

MullaAlmas (Thu, 23 Sep 2021 08:57:43 GMT):
sir please sir

fabio.henriques (Thu, 23 Sep 2021 08:58:43 GMT):
Show your docker-compose.yaml file please

MullaAlmas (Thu, 23 Sep 2021 08:58:54 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 09:03:34 GMT):
sir please wait sir

MullaAlmas (Thu, 23 Sep 2021 09:03:41 GMT):
Iam in process

fabio.henriques (Thu, 23 Sep 2021 09:03:48 GMT):
No problem

MullaAlmas (Thu, 23 Sep 2021 09:04:54 GMT):

Screenshot from 2021-09-23 14-34-24.png

MullaAlmas (Thu, 23 Sep 2021 09:04:56 GMT):

Screenshot from 2021-09-23 14-34-14.png

MullaAlmas (Thu, 23 Sep 2021 09:04:57 GMT):

Screenshot from 2021-09-23 14-34-01.png

MullaAlmas (Thu, 23 Sep 2021 09:05:53 GMT):
Really Iam very glad to be in touch with u sir

MullaAlmas (Thu, 23 Sep 2021 09:06:09 GMT):
I was sufferin from lon time with this fabric sir

MullaAlmas (Thu, 23 Sep 2021 09:08:07 GMT):

Screenshot from 2021-09-23 14-37-43.png

MullaAlmas (Thu, 23 Sep 2021 09:08:16 GMT):

Screenshot from 2021-09-23 14-37-39.png

MullaAlmas (Thu, 23 Sep 2021 09:08:17 GMT):

Screenshot from 2021-09-23 14-37-31.png

MullaAlmas (Thu, 23 Sep 2021 09:11:05 GMT):

Screenshot from 2021-09-23 14-40-40.png

MullaAlmas (Thu, 23 Sep 2021 09:11:06 GMT):

Screenshot from 2021-09-23 14-40-33.png

MullaAlmas (Thu, 23 Sep 2021 09:11:06 GMT):

Screenshot from 2021-09-23 14-40-23.png

MullaAlmas (Thu, 23 Sep 2021 09:11:09 GMT):

Screenshot from 2021-09-23 14-40-14.png

MullaAlmas (Thu, 23 Sep 2021 09:11:10 GMT):

Screenshot from 2021-09-23 14-40-05.png

MullaAlmas (Thu, 23 Sep 2021 09:11:29 GMT):
Tq sir

fabio.henriques (Thu, 23 Sep 2021 09:13:56 GMT):
execute docker inspect d8e8eaae319f

MullaAlmas (Thu, 23 Sep 2021 09:17:03 GMT):

Screenshot from 2021-09-23 14-46-00.png

MullaAlmas (Thu, 23 Sep 2021 09:17:04 GMT):

Screenshot from 2021-09-23 14-45-48.png

fabio.henriques (Thu, 23 Sep 2021 09:19:15 GMT):
Run docker network ls

MullaAlmas (Thu, 23 Sep 2021 09:20:07 GMT):

Screenshot from 2021-09-23 14-47-49.png

MullaAlmas (Thu, 23 Sep 2021 09:20:08 GMT):

Screenshot from 2021-09-23 14-46-00.png

MullaAlmas (Thu, 23 Sep 2021 09:20:09 GMT):

Screenshot from 2021-09-23 14-45-48.png

fabio.henriques (Thu, 23 Sep 2021 09:20:52 GMT):
These are the same prints

MullaAlmas (Thu, 23 Sep 2021 09:21:03 GMT):
ohh

MullaAlmas (Thu, 23 Sep 2021 09:21:04 GMT):
ok

MullaAlmas (Thu, 23 Sep 2021 09:21:07 GMT):
sir

MullaAlmas (Thu, 23 Sep 2021 09:21:11 GMT):
I will check

MullaAlmas (Thu, 23 Sep 2021 09:21:25 GMT):
I have runned docker network ls

MullaAlmas (Thu, 23 Sep 2021 09:21:42 GMT):

Screenshot from 2021-09-23 14-50-53.png

MullaAlmas (Thu, 23 Sep 2021 09:25:11 GMT):

Screenshot from 2021-09-23 14-54-31.png

MullaAlmas (Thu, 23 Sep 2021 09:25:12 GMT):

Screenshot from 2021-09-23 14-54-24.png

MullaAlmas (Thu, 23 Sep 2021 09:25:14 GMT):

Screenshot from 2021-09-23 14-54-15.png

MullaAlmas (Thu, 23 Sep 2021 09:25:15 GMT):

Screenshot from 2021-09-23 14-54-05.png

MullaAlmas (Thu, 23 Sep 2021 09:25:16 GMT):

Screenshot from 2021-09-23 14-53-53.png

MullaAlmas (Thu, 23 Sep 2021 09:25:17 GMT):

Screenshot from 2021-09-23 14-53-26.png

MullaAlmas (Thu, 23 Sep 2021 09:25:19 GMT):

Screenshot from 2021-09-23 14-53-11.png

MullaAlmas (Thu, 23 Sep 2021 09:29:45 GMT):
sir, its time for class sir

fabio.henriques (Thu, 23 Sep 2021 09:32:21 GMT):
Ok sir

fabio.henriques (Thu, 23 Sep 2021 09:32:43 GMT):

print

GiovanniZanol (Thu, 23 Sep 2021 12:41:37 GMT):
Has joined the channel.

souptikmakarov (Thu, 23 Sep 2021 13:33:06 GMT):
This worked! Thanks

souptikmakarov (Thu, 23 Sep 2021 13:34:06 GMT):
New error on 'make dist-clean all' All files have SPDX-License-Identifier headers Building github.com/client9/misspell/cmd/misspell -> misspell Checking changed go files for spelling errors ... spell checker passed Checking for go:generate parent path references Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh Building golang.org/x/tools/cmd/goimports -> goimports Building mvdan.cc/gofumpt -> gofumpt Building honnef.co/go/tools/cmd/staticcheck -> staticcheck LINT: Running code checks.. ./scripts/golinter.sh Checking with goimports Checking with gofumpt Checking for golang.org/x/net/context Checking for github.com/gogo/protobuf Checking with go vet Checking with staticcheck The following staticcheck issues were flagged vendor/github.com/dustin/go-humanize/number.go:76:9: constant overflow (compile) vendor/github.com/onsi/ginkgo/internal/leafnodes/benchmarker.go:82:25: constant overflow (compile) make: *** [Makefile:186: linter] Error 1

danielpenagos (Thu, 23 Sep 2021 15:38:31 GMT):
Has joined the channel.

MullaAlmas (Thu, 23 Sep 2021 15:48:14 GMT):
no sir

MullaAlmas (Thu, 23 Sep 2021 15:49:03 GMT):
but I get error message like handshake failed

MullaAlmas (Thu, 23 Sep 2021 15:49:19 GMT):
when I start the network

danielpenagos (Thu, 23 Sep 2021 15:52:41 GMT):
hello... Question.. If I want a new orderer in the system channel ... how this new orderer get the public certificates from the other orderers to do the handshake.. it is not possible to get them from the system channel, because it is not part of the channel yet.

MullaAlmas (Thu, 23 Sep 2021 15:56:37 GMT):
again sometimes I get that message

MullaAlmas (Thu, 23 Sep 2021 15:56:49 GMT):
otherwise

MullaAlmas (Thu, 23 Sep 2021 15:56:52 GMT):
no sir

MullaAlmas (Thu, 23 Sep 2021 15:58:04 GMT):
sirrrrr

fabio.henriques (Thu, 23 Sep 2021 15:58:04 GMT):
Hello. You don't need the certificates from the other orderers. Only the TLS CA certificate of the orderers organization

MullaAlmas (Thu, 23 Sep 2021 15:58:16 GMT):
yes sir Iam getting that warning sir

MullaAlmas (Thu, 23 Sep 2021 15:59:06 GMT):

Screenshot from 2021-09-23 21-27-53.png

MullaAlmas (Thu, 23 Sep 2021 15:59:20 GMT):
This one sir

danielpenagos (Thu, 23 Sep 2021 15:59:57 GMT):
so we do need to have the TLS CA's certificates for the new orderer. But the new orderer will take them from the genesis block.. ... so that is the reason why we must put a transaction to update the TLS CA orgs, is that correct?

danielpenagos (Thu, 23 Sep 2021 16:00:59 GMT):
and with the new genesis block exported from the system channel, the new orderer take this file and it will have all the information to start up... is that correct?

fabio.henriques (Thu, 23 Sep 2021 16:01:58 GMT):
execute export DOCKER_SOCK=/var/run

fabio.henriques (Thu, 23 Sep 2021 16:02:02 GMT):
And then start the network

MullaAlmas (Thu, 23 Sep 2021 16:02:06 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 16:13:03 GMT):
sir

MullaAlmas (Thu, 23 Sep 2021 16:13:14 GMT):
again same error sir

fabio.henriques (Thu, 23 Sep 2021 16:13:28 GMT):
DOCKER_SOCK warning?

MullaAlmas (Thu, 23 Sep 2021 16:13:30 GMT):
and getting that warning also sir

MullaAlmas (Thu, 23 Sep 2021 16:14:26 GMT):

Screenshot from 2021-09-23 21-44-01.png

fabio.henriques (Thu, 23 Sep 2021 16:15:43 GMT):
That's not the reason. The reason is that the other orderers must know that a new orderer is going to join them

fabio.henriques (Thu, 23 Sep 2021 16:15:58 GMT):
You can get the cert from Service Discovery instead, it's better

fabio.henriques (Thu, 23 Sep 2021 16:16:15 GMT):
I think that's correct

danielpenagos (Thu, 23 Sep 2021 16:16:38 GMT):
thank you

fabio.henriques (Thu, 23 Sep 2021 16:16:49 GMT):
do you have an .env file?

MullaAlmas (Thu, 23 Sep 2021 16:17:14 GMT):
in which folder we find it sir

MullaAlmas (Thu, 23 Sep 2021 16:17:36 GMT):
.env file

fabio.henriques (Thu, 23 Sep 2021 16:17:49 GMT):
Sorry, I made a mistake. You don't need to get the TLS CA cert from the Service discovery. You receive it when you enroll the new orderer on the TLS CA

fabio.henriques (Thu, 23 Sep 2021 16:17:49 GMT):
Sorry, I made a mistake. You don't need to get the TLS CA cert from the Service discovery. You need to have it to register and enroll the orderer

fabio.henriques (Thu, 23 Sep 2021 16:18:03 GMT):
same as the docker-compose.yaml file

MullaAlmas (Thu, 23 Sep 2021 16:18:23 GMT):
let me check sir in docker folder

MullaAlmas (Thu, 23 Sep 2021 16:19:57 GMT):
no sir

MullaAlmas (Thu, 23 Sep 2021 16:20:11 GMT):
I didnt find sir

MullaAlmas (Thu, 23 Sep 2021 16:20:22 GMT):
with .env extension file

fabio.henriques (Thu, 23 Sep 2021 16:20:32 GMT):
It's not an extension

MullaAlmas (Thu, 23 Sep 2021 16:20:32 GMT):
in docker

fabio.henriques (Thu, 23 Sep 2021 16:20:36 GMT):
It's the name of the file

fabio.henriques (Thu, 23 Sep 2021 16:20:39 GMT):
And it's hidden

MullaAlmas (Thu, 23 Sep 2021 16:20:46 GMT):
ohh

fabio.henriques (Thu, 23 Sep 2021 16:20:50 GMT):
You need to use the command "ls -a" to see it

MullaAlmas (Thu, 23 Sep 2021 16:24:47 GMT):

Screenshot from 2021-09-23 21-54-27.png

fabio.henriques (Thu, 23 Sep 2021 16:25:15 GMT):
It is probably on the docker folder

fabio.henriques (Thu, 23 Sep 2021 16:25:15 GMT):
It is probably in the docker folder

MullaAlmas (Thu, 23 Sep 2021 16:25:23 GMT):
setOrgEnv.sh

fabio.henriques (Thu, 23 Sep 2021 16:25:40 GMT):
SHow me that script

MullaAlmas (Thu, 23 Sep 2021 16:25:50 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 16:26:37 GMT):

Screenshot from 2021-09-23 21-56-14.png

MullaAlmas (Thu, 23 Sep 2021 16:26:38 GMT):

Screenshot from 2021-09-23 21-56-05.png

fabio.henriques (Thu, 23 Sep 2021 16:26:50 GMT):
it's not that

MullaAlmas (Thu, 23 Sep 2021 16:26:55 GMT):
hav a look sir

fabio.henriques (Thu, 23 Sep 2021 16:26:55 GMT):
check in the docker folder

MullaAlmas (Thu, 23 Sep 2021 16:27:32 GMT):

Screenshot from 2021-09-23 21-57-13.png

MullaAlmas (Thu, 23 Sep 2021 16:27:49 GMT):
only this three files I hav in docker sir

fabio.henriques (Thu, 23 Sep 2021 16:28:05 GMT):
even hidden files?

MullaAlmas (Thu, 23 Sep 2021 16:29:09 GMT):
nothing hidden in docker folder sir

danielpenagos (Thu, 23 Sep 2021 16:29:22 GMT):
I have another question... in these links, https://kctheservant.medium.com/add-an-orderer-to-a-running-raft-based-orderer-cluster-b6a432da138c, https://stackoverflow.com/questions/57571629/how-to-add-a-new-orderer-in-a-running-hyperledger-fabric-network-using-raft, I can see that we must use two transactions to include the configuration to add a new orderer...

MullaAlmas (Thu, 23 Sep 2021 16:29:27 GMT):
only this three files Iam getting sir

danielpenagos (Thu, 23 Sep 2021 16:30:03 GMT):
why two transactions instead of using only one transaction to do that?

fabio.henriques (Thu, 23 Sep 2021 16:31:47 GMT):
I can only see one transaction

fabio.henriques (Thu, 23 Sep 2021 16:31:55 GMT):
The only update is at the end

danielpenagos (Thu, 23 Sep 2021 16:33:13 GMT):
blocks 2 and 3 in the system channel

fabio.henriques (Thu, 23 Sep 2021 16:34:48 GMT):
Where are you seeing that

fabio.henriques (Thu, 23 Sep 2021 16:35:44 GMT):
Where is the startFabric.sh script?

MullaAlmas (Thu, 23 Sep 2021 16:36:01 GMT):
in fabcar

MullaAlmas (Thu, 23 Sep 2021 16:36:03 GMT):
sir

fabio.henriques (Thu, 23 Sep 2021 16:37:30 GMT):
the .env is probably in that folder

MullaAlmas (Thu, 23 Sep 2021 16:37:45 GMT):

Screenshot from 2021-09-23 22-06-56.png

MullaAlmas (Thu, 23 Sep 2021 16:37:46 GMT):

Screenshot from 2021-09-23 22-06-47.png

MullaAlmas (Thu, 23 Sep 2021 16:37:48 GMT):

Screenshot from 2021-09-23 22-06-36.png

MullaAlmas (Thu, 23 Sep 2021 16:37:51 GMT):

Screenshot from 2021-09-23 22-06-28.png

fabio.henriques (Thu, 23 Sep 2021 16:38:41 GMT):
You need to find the .env file

MullaAlmas (Thu, 23 Sep 2021 16:39:08 GMT):
in which folder sir

fabio.henriques (Thu, 23 Sep 2021 16:39:31 GMT):
I don't know

fabio.henriques (Thu, 23 Sep 2021 16:39:41 GMT):
Search

MullaAlmas (Thu, 23 Sep 2021 16:39:53 GMT):
ok sir

MullaAlmas (Thu, 23 Sep 2021 16:40:13 GMT):
I will check all the hidden files sir

MullaAlmas (Thu, 23 Sep 2021 16:40:19 GMT):
tq sir

MullaAlmas (Thu, 23 Sep 2021 16:40:35 GMT):
sorry sir

MullaAlmas (Thu, 23 Sep 2021 16:43:29 GMT):
is that file name envVar.sh sir

MullaAlmas (Thu, 23 Sep 2021 16:43:46 GMT):
I hav that file in scripts sir

fabio.henriques (Thu, 23 Sep 2021 16:43:59 GMT):
probably

fabio.henriques (Thu, 23 Sep 2021 16:44:05 GMT):
show it please

MullaAlmas (Thu, 23 Sep 2021 16:44:19 GMT):

Screenshot from 2021-09-23 22-13-56.png

fabio.henriques (Thu, 23 Sep 2021 16:44:44 GMT):
show the script please

MullaAlmas (Thu, 23 Sep 2021 16:45:17 GMT):

Screenshot from 2021-09-23 22-14-51.png

MullaAlmas (Thu, 23 Sep 2021 16:45:17 GMT):

Screenshot from 2021-09-23 22-14-45.png

MullaAlmas (Thu, 23 Sep 2021 16:45:18 GMT):

Screenshot from 2021-09-23 22-14-38.png

MullaAlmas (Thu, 23 Sep 2021 16:45:19 GMT):

Screenshot from 2021-09-23 22-14-28.png

fabio.henriques (Thu, 23 Sep 2021 16:46:11 GMT):
Forget ir

fabio.henriques (Thu, 23 Sep 2021 16:46:14 GMT):
it*

fabio.henriques (Thu, 23 Sep 2021 16:46:36 GMT):
Go to the docker-compose-yaml file and change the ${DOCKER_SOCK} to /var/run

MullaAlmas (Thu, 23 Sep 2021 16:47:01 GMT):
ok

MullaAlmas (Thu, 23 Sep 2021 16:47:05 GMT):
sir

MullaAlmas (Thu, 23 Sep 2021 16:52:24 GMT):

Screenshot from 2021-09-23 22-21-44.png

MullaAlmas (Thu, 23 Sep 2021 16:52:37 GMT):
chaned sir at line number 88

MullaAlmas (Thu, 23 Sep 2021 16:53:06 GMT):
changed

fabio.henriques (Thu, 23 Sep 2021 16:53:28 GMT):
It's the only line that it appears?

MullaAlmas (Thu, 23 Sep 2021 16:53:42 GMT):
yes sir

fabio.henriques (Thu, 23 Sep 2021 16:53:45 GMT):
Nice

fabio.henriques (Thu, 23 Sep 2021 16:53:47 GMT):
Start the network

MullaAlmas (Thu, 23 Sep 2021 16:54:08 GMT):
wait sir

MullaAlmas (Thu, 23 Sep 2021 16:54:18 GMT):
in line number 127 also

MullaAlmas (Thu, 23 Sep 2021 16:54:24 GMT):
let me change sir

MullaAlmas (Thu, 23 Sep 2021 16:59:04 GMT):
done sir

fabio.henriques (Thu, 23 Sep 2021 17:00:20 GMT):
Does it start?

MullaAlmas (Thu, 23 Sep 2021 17:00:42 GMT):
shall I start the network sir

MullaAlmas (Thu, 23 Sep 2021 17:00:47 GMT):
I will

fabio.henriques (Thu, 23 Sep 2021 17:02:23 GMT):
Yes

MullaAlmas (Thu, 23 Sep 2021 17:02:44 GMT):
network has started sir

MullaAlmas (Thu, 23 Sep 2021 17:02:52 GMT):
its building

fabio.henriques (Thu, 23 Sep 2021 17:03:04 GMT):
Ok

MullaAlmas (Thu, 23 Sep 2021 17:04:07 GMT):
got new error sir

MullaAlmas (Thu, 23 Sep 2021 17:04:24 GMT):

Screenshot from 2021-09-23 22-33-55.png

fabio.henriques (Thu, 23 Sep 2021 17:05:54 GMT):
That is peer is up?

fabio.henriques (Thu, 23 Sep 2021 17:05:54 GMT):
is that peer is up?

MullaAlmas (Thu, 23 Sep 2021 17:07:25 GMT):

Screenshot from 2021-09-23 22-37-05.png

raushan.kumar (Thu, 23 Sep 2021 17:10:54 GMT):
Has joined the channel.

MullaAlmas (Thu, 23 Sep 2021 17:11:30 GMT):
sir

fabio.henriques (Thu, 23 Sep 2021 17:12:00 GMT):
It's not

MullaAlmas (Thu, 23 Sep 2021 17:12:08 GMT):
hmm

fabio.henriques (Thu, 23 Sep 2021 17:12:14 GMT):
It has probably failed

fabio.henriques (Thu, 23 Sep 2021 17:12:29 GMT):
Do ls /var/run/

fabio.henriques (Thu, 23 Sep 2021 17:12:31 GMT):
And show me

MullaAlmas (Thu, 23 Sep 2021 17:13:21 GMT):
in compose file sir

fabio.henriques (Thu, 23 Sep 2021 17:13:33 GMT):
No

fabio.henriques (Thu, 23 Sep 2021 17:13:40 GMT):
IN the terminal

fabio.henriques (Thu, 23 Sep 2021 17:13:48 GMT):
Just execute ls /var/run

MullaAlmas (Thu, 23 Sep 2021 17:15:03 GMT):
no such file or directory sir

MullaAlmas (Thu, 23 Sep 2021 17:15:12 GMT):
error

raushan.kumar (Thu, 23 Sep 2021 17:16:31 GMT):
We are facing a quite unique situation with hyperledger fabric orderers. We were running 3 orderer of raft which was brought up together exactly a year. Today their identity has expired and currently all three orderers are down. I am trying to bring these orderers up. Any way forward ??

MullaAlmas (Thu, 23 Sep 2021 17:18:01 GMT):
sir

MullaAlmas (Thu, 23 Sep 2021 17:20:25 GMT):
sir, before this changes to compose file sir.....everything was good sir.....but atlast chaincode deployment failed error sir

danielpenagos (Thu, 23 Sep 2021 17:20:47 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html#reconfiguration

MullaAlmas (Thu, 23 Sep 2021 17:21:28 GMT):
but now at the beinging itself failed at channel connection sir

raushan.kumar (Fri, 24 Sep 2021 02:46:27 GMT):
This will only work for add new orderer. currently my all orderer is failing to restart with error `Failed to setup local msp with config: signing identity expired 21h19m50.670308513s ago panic: Failed to setup local msp with config: signing identity expired 21h19m50.670308513s ago`

raushan.kumar (Fri, 24 Sep 2021 02:46:50 GMT):
`Failed to setup local msp with config: signing identity expired 21h19m50.670308513s ago panic: Failed to setup local msp with config: signing identity expired 21h19m50.670308513s ago`

raushan.kumar (Fri, 24 Sep 2021 03:06:20 GMT):
Failed to setup local msp with config: signing identity expired 21h19m50.670308513s ago all orderers' restart is failing with above error. Any possible solution to retry ??

fayeeg (Fri, 24 Sep 2021 04:49:57 GMT):
Got the answer from an expert that all identities are available in wallets.

lcc 3 (Fri, 24 Sep 2021 06:51:23 GMT):
Has joined the channel.

indirajith (Fri, 24 Sep 2021 08:22:26 GMT):
HI all, I am encountering the following problem where the network name is something different from what I have specified in the docker-compose file for the peer. Can anyone help me find where and how the name for the netowrk went wrong? ``` failed to invoke chaincode mapchaincode, error: API error (404): network msp_map-fab-net not found error starting container error starting container ```

fabio.henriques (Fri, 24 Sep 2021 10:23:08 GMT):
sir it's not the changed that did that sir

fabio.henriques (Fri, 24 Sep 2021 10:23:08 GMT):
sir it's not the change that did that sir

fabio.henriques (Fri, 24 Sep 2021 10:23:08 GMT):
it's not the change that did that

fabio.henriques (Fri, 24 Sep 2021 10:23:25 GMT):
But change it back sir and see if it solves it sir

fabio.henriques (Fri, 24 Sep 2021 10:23:25 GMT):
But change it back sir and see if it solves it

fabio.henriques (Fri, 24 Sep 2021 10:23:25 GMT):
But change it back and see if it solves it

Bertho (Fri, 24 Sep 2021 10:23:54 GMT):
Has joined the channel.

MullaAlmas (Fri, 24 Sep 2021 10:27:30 GMT):
no sir

MullaAlmas (Fri, 24 Sep 2021 10:27:40 GMT):
generally Iam sayin

MullaAlmas (Fri, 24 Sep 2021 10:28:08 GMT):
what may be wron sir

MullaAlmas (Fri, 24 Sep 2021 10:28:19 GMT):
wrong

fabio.henriques (Fri, 24 Sep 2021 10:30:13 GMT):
Find the /var/run folder

fabio.henriques (Fri, 24 Sep 2021 10:30:20 GMT):
It has to exists

fabio.henriques (Fri, 24 Sep 2021 10:30:20 GMT):
It has to exist

MullaAlmas (Fri, 24 Sep 2021 10:32:18 GMT):
ok

MullaAlmas (Fri, 24 Sep 2021 10:32:20 GMT):
sir

lainio (Fri, 24 Sep 2021 11:47:07 GMT):
Has joined the channel.

alvarodelaiglesia (Fri, 24 Sep 2021 13:40:38 GMT):
Has joined the channel.

t3x (Fri, 24 Sep 2021 13:48:28 GMT):
Has joined the channel.

ArnoldsBogdanovs (Fri, 24 Sep 2021 14:06:53 GMT):
Has joined the channel.

spandolfi (Fri, 24 Sep 2021 14:32:00 GMT):
Has joined the channel.

JNeedham (Fri, 24 Sep 2021 15:05:17 GMT):
Has joined the channel.

shadownetz (Sat, 25 Sep 2021 01:32:11 GMT):
Has joined the channel.

mohammed.alzuharey (Sat, 25 Sep 2021 11:11:57 GMT):
Has joined the channel.

mohammed.alzuharey (Sat, 25 Sep 2021 11:14:19 GMT):
hello for every one

mohammed.alzuharey (Sat, 25 Sep 2021 11:14:40 GMT):
I have question please

mohammed.alzuharey (Sat, 25 Sep 2021 11:16:06 GMT):
when run test network i have this error "Error: Post "https://localhost:7053/participation/v1/channels": dial tcp 127.0.0.1:7053: connect: connection refused"Channel creation failed

mohammed.alzuharey (Sat, 25 Sep 2021 11:16:06 GMT):
when run test network i have this error "Error: proposal failed with status: 500 - channel 'mychannel' not found Chaincode definition approved on peer0.org1 on channel 'mychannel' failed Deploying chaincode failed

mohammed.alzuharey (Sat, 25 Sep 2021 11:16:06 GMT):

mohammed.alzuharey (Sat, 25 Sep 2021 11:16:14 GMT):
how to solve it

mohammed.alzuharey (Sat, 25 Sep 2021 11:16:14 GMT):
how to solve it ... thanks a lot

chesta (Sat, 25 Sep 2021 13:34:38 GMT):
Has joined the channel.

PeterSkogh (Sat, 25 Sep 2021 20:33:01 GMT):
Has joined the channel.

Gavimat (Sat, 25 Sep 2021 20:52:37 GMT):
Hello guys! I'm facing an error when trying to approve the chaincode into an organization. I'm getting the following error: Error: invalid collection configuration in file --cafile: could not read file '--cafile': open --cafile: no such file or directory

Gavimat (Sat, 25 Sep 2021 20:53:30 GMT):
But, I have created this file by using cryptogen, and it's saved under the path I gave:

Gavimat (Sat, 25 Sep 2021 20:53:52 GMT):
peer lifecycle chaincode approveformyorg -o localhost:7050 \ --ordererTLSHostnameOverride orderer.example.com --tls \ --collections-config $PRIVATE_DATA_CONFIG --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name ${CC_NAME} --version ${VERSION} \ --init-required --package-id ${PACKAGE_ID} \ --sequence ${VERSION}

Gavimat (Sat, 25 Sep 2021 20:54:35 GMT):
I exported the ORDERER_CA variable as: export ORDERER_CA=${PWD}/artifacts/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

Gavimat (Sat, 25 Sep 2021 20:55:25 GMT):
I hope I can hear from anyone soon, I really need to fix this problem asap. Thanks a lot!

Gavimat (Sat, 25 Sep 2021 20:55:25 GMT):
I hope I can hear from someone soon, I really need to fix this problem asap. Thanks a lot!

GergelyLengyel (Sat, 25 Sep 2021 21:49:33 GMT):
Has joined the channel.

GergelyLengyel (Sat, 25 Sep 2021 21:50:42 GMT):
Hi, do I have to use the same language for the chaincode and the application?

hs2361 (Sun, 26 Sep 2021 04:10:31 GMT):
No, you don't need to use the same language. So long as the application has a Fabric SDK built for it, it should work.

GergelyLengyel (Sun, 26 Sep 2021 10:48:58 GMT):
Thanks

sasschicken69 (Sun, 26 Sep 2021 11:36:44 GMT):
Has joined the channel.

fmy1993 (Sun, 26 Sep 2021 12:19:36 GMT):

Clipboard - 2021年9月26日晚上8点19分

fmy1993 (Sun, 26 Sep 2021 12:19:49 GMT):
when I run createdb.sh, error occur in centos cloud server

fmy1993 (Sun, 26 Sep 2021 12:20:02 GMT):
explorer

davidkel (Sun, 26 Sep 2021 12:25:21 GMT):
for hyperledger explorer questions I suggest you try #hyperledger-explorer channel

fmy1993 (Sun, 26 Sep 2021 12:26:15 GMT):
ok

brandongomezsanchez (Mon, 27 Sep 2021 00:45:04 GMT):
Has joined the channel.

mirshahzad (Mon, 27 Sep 2021 02:35:16 GMT):
I am trying to create admin and non-admin users to interact with smart contracts, but this error occurs. How can I solve it? Thanks,

mirshahzad (Mon, 27 Sep 2021 02:35:31 GMT):

Capture.PNG

Adisa123 (Mon, 27 Sep 2021 04:38:33 GMT):
Has joined the channel.

karayel (Mon, 27 Sep 2021 07:35:19 GMT):
Has joined the channel.

jtonline (Mon, 27 Sep 2021 09:46:13 GMT):
How did you run the test network? You can create the default 'mychannel' channel when starting the network using `./network.sh up createChannel`, or with a separate `./network.sh createChannel` command after `./network.sh up` It would be worth checking the channel is ok using the peer command or asnadmin depending which version you're using. If everything looks like it's running ok, is there anything in the logs which would help?

jtonline (Mon, 27 Sep 2021 09:46:13 GMT):
How did you run the test network? You can create the default 'mychannel' channel when starting the network using `./network.sh up createChannel`, or with a separate `./network.sh createChannel` command after `./network.sh up` It would be worth checking the channel is ok using the peer command or osnadmin depending which version you're using. If everything looks like it's running ok, is there anything in the logs which would help?

jtonline (Mon, 27 Sep 2021 09:53:19 GMT):
I'm a bit confused by the error message which mentions the collection configuration but the --cafile option. I wonder if there's a problem with the $PRIVATE_DATA_CONFIG variable and the command is trying to read the collections config from a file called "--cafile"

adn-misa (Mon, 27 Sep 2021 09:58:22 GMT):
Has joined the channel.

indirajith (Mon, 27 Sep 2021 10:36:49 GMT):
Hi all, can anyone shed some light on the issue I am facing? https://chat.hyperledger.org/channel/fabric-peer-endorser-committer?msg=xLPoKYQfhZLF3QFyR

indirajith (Mon, 27 Sep 2021 10:37:36 GMT):
Hi all,can anyone shed some light on the issue I am facing with a peer? https://chat.hyperledger.org/channel/fabric-peer-endorser-committer?msg=xLPoKYQfhZLF3QFyR

indirajith (Mon, 27 Sep 2021 10:38:41 GMT):
Hi can anyone shed some light on the issue I am facing with a peer? https://chat.hyperledger.org/channel/fabric?msg=oqMCi3qDeeTtLgnJF

sapthasurendran (Mon, 27 Sep 2021 12:51:28 GMT):
Has joined the channel.

oussema.gharsallaoui (Mon, 27 Sep 2021 13:51:21 GMT):
can anyone help me with this problem ? https://stackoverflow.com/questions/69347685/failed-to-catch-a-chaincode-event-when-the-the-first-chaincode-who-set-the-event

ShubhamUmate (Mon, 27 Sep 2021 14:28:13 GMT):
We are using java for both gateway sdk and chaincode language. It is taking more than 40 seconds for a single transaction. How can we improve performance?

Gavimat (Mon, 27 Sep 2021 14:53:49 GMT):
Yes, that was exactly the problem

Gavimat (Mon, 27 Sep 2021 14:54:24 GMT):
I hadn't configured $PRIVATE_DATA_CONFIG, and because of that I was facing this error

Gavimat (Mon, 27 Sep 2021 14:54:39 GMT):
Thank you for your help @jtonline

weiiv (Mon, 27 Sep 2021 15:00:56 GMT):
Has joined the channel.

weiiv (Mon, 27 Sep 2021 15:02:20 GMT):
Has left the channel.

srihari.r (Mon, 27 Sep 2021 15:38:03 GMT):
Has joined the channel.

upmagupta (Mon, 27 Sep 2021 17:46:46 GMT):
sorry to bother you but now i am getting this error

upmagupta (Mon, 27 Sep 2021 17:46:47 GMT):
Error: an error occurred - rolling back changes... Error: docker-compose up -d Failed [1] Creating network "firefly_fabric_default" with the default driver

upmagupta (Mon, 27 Sep 2021 17:48:00 GMT):
sorry wrong window

HokitTang (Tue, 28 Sep 2021 02:18:02 GMT):
Has joined the channel.

Rafailk (Tue, 28 Sep 2021 07:20:35 GMT):
Hello everyone. After I recreated my minifab network, I am unable to enroll the admin in the ca container. I use the following command : `fabric-ca-client enroll -u https://Admin:adminpw@localhost:7054 --tls.certfiles /certs/ca/ca.betax.ebsi.eu-cert.pem`

Rafailk (Tue, 28 Sep 2021 07:20:35 GMT):
Hello everyone. After I recreated my minifab network, I am unable to enroll the admin in the ca container. I use the following command : `fabric-ca-client enroll -u https://Admin:adminpw@localhost:7054 --tls.certfiles /certs/ca/ca.betax.ebsi.eu-cert.pem`. And I always get Error Post failure of request, localhost:/7054/enroll. And at the end the error `post http:/localhost:7054/enroll x509: certificate is valid for someip not localhost`. I tried with the ips that it is suggesting but still nothing. Any ideas

Oznfc (Tue, 28 Sep 2021 08:33:26 GMT):
Has joined the channel.

XM.Jin (Tue, 28 Sep 2021 08:47:37 GMT):
Has joined the channel.

SamRutten (Tue, 28 Sep 2021 10:09:17 GMT):
Has joined the channel.

SamRutten (Tue, 28 Sep 2021 10:12:22 GMT):
Hello everyone, i'm trying to install hyperledger fabric on an ubuntu system. I've installed all the prerequiquisites and i'm getting the erreo 2.3.3 platform specific fabric binary is not available to download. Anyone who can help me?

jtonline (Tue, 28 Sep 2021 11:19:11 GMT):
Are you getting that error running the bootstrap script, and if so can you see which binary it's trying to download? (I had similar issues with the fabric-ca v1.5.0 binary recently which is missing.)

srihari.r (Tue, 28 Sep 2021 11:22:50 GMT):
Hi Experts, we have an error for our HLF deployment on K8. While executing a transaction from one the peers, following error is thrown. Any pointers for a root cause, appreciated please. This is the error in orderer log after running the network for few days : [orderer.consensus.etcdraft] commitTo -> PANI 033 tocommit(7) is out of range [lastIndex(5)]. Was the raft log corrupted, truncated, or lost? channel=system-channel node=1 panic: tocommit(7) is out of range [lastIndex(5)]. Was the raft log corrupted, truncated, or lost?

ranjan_paul (Tue, 28 Sep 2021 13:16:15 GMT):
Has joined the channel.

ranjan_paul (Tue, 28 Sep 2021 13:30:57 GMT):
Hi .. I am very beginner of this development section. i have been trying to start network with " fabric-samples/fabcar " directory. where startFabric.sh script i have run and its showing :

ranjan_paul (Tue, 28 Sep 2021 13:31:03 GMT):
+ osnadmin channel join --channelID mychannel --config-block ./channel-artifacts/mychannel.block -o localhost:7053 --ca-file /home/ranjan/testfolder/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --client-cert /home/ranjan/testfolder/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt --client-key /home/ranjan/testfolder/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.key + res=127 scripts/createChannel.sh: line 40: osnadmin: command not found Channel creation failed

ranjan_paul (Tue, 28 Sep 2021 13:32:08 GMT):
can any one tell why it can not found this command

souptikmakarov (Tue, 28 Sep 2021 14:15:09 GMT):
@BrettLogan @jcastrence any idea on this one?

kylegrobinson (Tue, 28 Sep 2021 17:28:47 GMT):
Has joined the channel.

mirshahzad (Wed, 29 Sep 2021 03:41:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7pfXzJDzo3RED3ZGZ) I need answer, kindly guide me. Thanks!

mirshahzad (Wed, 29 Sep 2021 03:41:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7pfXzJDzo3RED3ZGZ) I need guidance, kindly guide me. Thanks!

jtonline (Wed, 29 Sep 2021 09:22:03 GMT):
Hi, my guess is that you haven't installed the fabric binaries, or that the version of fabric you installed does not match the fabric-samples branch you're using- I've hit this problem when using fabric 2.2 but forgetting to check out the release-2.2 branch in fabric-samples

souptikmakarov (Wed, 29 Sep 2021 10:42:31 GMT):

souptikmakarov - Wed Sep 29 2021 16:12:01 GMT+0530 (India Standard Time).txt

vsadriano (Wed, 29 Sep 2021 11:19:15 GMT):
Hi! I would like to know more about the best practices to backing up the data when using private data collections (PDC). Currently, I'm following the [ledger backup and restore](https://hyperledger-fabric.readthedocs.io/en/release-2.3/upgrading_your_components.html?highlight=backup#ledger-backup-and-restore) as well as [storage considerations](https://hyperledger-fabric.readthedocs.io/en/release-2.3/deploypeer/peerplan.html#storage-considerations) and I've any questions: - Is there any PDC related data stored on peer filesystem (e.g. `/var/hyperledger/production/ledgersData/pvtdataStore`)? - What's the best strategy to back up and restore statedb data considering a disaster recovery approach? Tks!

vsadriano (Wed, 29 Sep 2021 11:19:15 GMT):
Hi! I would like to know more about the best practices to backing up the data when using private data collections (PDC). Currently, I'm following the [ledger backup and restore](https://hyperledger-fabric.readthedocs.io/en/release-2.3/upgrading_your_components.html?highlight=backup#ledger-backup-and-restore) as well as [storage considerations](https://hyperledger-fabric.readthedocs.io/en/release-2.3/deploypeer/peerplan.html#storage-considerations) and I've any questions: - Is there any PDC related data stored on peer filesystem (e.g. `/var/hyperledger/production/ledgersData/pvtdataStore`)? - What's the best strategy to back up and restore statedb data focusing on a disaster recovery approach? Tks!

sapthasurendran (Wed, 29 Sep 2021 11:46:36 GMT):
I think you haven't installed the fabric binaries. Please follow https://hyperledger-fabric.readthedocs.io/en/latest/install.html

matheus27 (Wed, 29 Sep 2021 20:14:39 GMT):
Has joined the channel.

Parthavs (Thu, 30 Sep 2021 01:01:59 GMT):
Has joined the channel.

mirshahzad (Thu, 30 Sep 2021 03:06:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=9o3AJBCvLyHcQGL8b) Hi jtonline, Thanks you for your response. I will re-check it, and will let you know. Can I send you direct message for guidance, if you don't mind? Thanks,

bardia (Thu, 30 Sep 2021 05:17:57 GMT):
How do I fix the following error? :tears: This happens when I fail to login 20 times failed to enroll user: enroll failed: enroll failed: Response from server: Error Code: 73 - Incorrect password entered 10 times, max incorrect password limit of 10 reached

ranjan_paul (Thu, 30 Sep 2021 07:32:28 GMT):
@jtonline Thanks for response. I have just used for downloading whole fabric sample repo and binary files with this command . "curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-2.2/scripts/bootstrap.sh | bash -s -- 2.2.4 1.5.2 " . And I got it. after that i just navigate with fabric-samples/fabcar and Run startFabric.sh . Is that ok for initiate the network ?

conanoc (Thu, 30 Sep 2021 08:43:35 GMT):
How about delete and re-create that user?

jtonline (Thu, 30 Sep 2021 09:14:40 GMT):
In that case you definitely need to make sure you're on the `release-2.2` branch of fabric-samples, otherwise you'll get that osnadmin not found error. `git status` should tell you which branch you're on, and you need this one... https://github.com/hyperledger/fabric-samples/tree/release-2.2

souptikmakarov (Thu, 30 Sep 2021 10:50:13 GMT):
Getting this error during 'make dist-clean all' --- FAIL: TestGetBCCSPFromOpts (0.00s) pkcs11_test.go:68: Error Trace: pkcs11_test.go:68 Error: Received unexpected error: pkcs11: library path not provided Could not initialize BCCSP PKCS11 github.com/hyperledger/fabric/bccsp/factory.GetBCCSPFromOpts /home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11.go:94 github.com/hyperledger/fabric/bccsp/factory.TestGetBCCSPFromOpts /home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11_test.go:58 testing.tRunner /usr/local/go/src/testing/testing.go:1193 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1371 Test: TestGetBCCSPFromOpts

ranjan_paul (Thu, 30 Sep 2021 12:29:08 GMT):
yes I have changed the branch and checked on release-2.2 , but now I am facing another problem. i run startFabric.sh for javascript . its shows the following error

ranjan_paul (Thu, 30 Sep 2021 12:30:53 GMT):

Screenshot from 2021-09-30 18-30-28.png

barnold (Thu, 30 Sep 2021 13:43:27 GMT):
Has joined the channel.

souptikmakarov (Thu, 30 Sep 2021 17:22:51 GMT):
Testing with pkcs11... Trying configuration [0] --- FAIL: TestGetBCCSPFromOpts (0.00s) pkcs11_test.go:67: Error Trace: pkcs11_test.go:67 Error: Received unexpected error: pkcs11: library path not provided Could not initialize BCCSP PKCS11 github.com/hyperledger/fabric/bccsp/factory.GetBCCSPFromOpts /home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11.go:93 github.com/hyperledger/fabric/bccsp/factory.TestGetBCCSPFromOpts /home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11_test.go:57 testing.tRunner /usr/local/go/src/testing/testing.go:1193 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1371 Test: TestGetBCCSPFromOpts --- FAIL: TestPKCS11FactoryGet (0.00s) pkcs11factory_test.go:48: Error Trace: pkcs11factory_test.go:48 Error: Received unexpected error: pkcs11: library path not provided Test: TestPKCS11FactoryGet --- FAIL: TestPKCS11FactoryGetEmptyKeyStorePath (0.00s) pkcs11factory_test.go:66: Error Trace: pkcs11factory_test.go:66 Error: Received unexpected error: pkcs11: library path not provided Test: TestPKCS11FactoryGetEmptyKeyStorePath FAIL

NkNs (Thu, 30 Sep 2021 18:23:32 GMT):
Has joined the channel.

AdrianAvila (Thu, 30 Sep 2021 21:32:58 GMT):
Has joined the channel.

JagannathAlur (Fri, 01 Oct 2021 01:11:21 GMT):
Has joined the channel.

bardia (Fri, 01 Oct 2021 06:47:49 GMT):
no just when login

bardia (Fri, 01 Oct 2021 06:48:49 GMT):
For example, I mistype the password 10 times, this happens

conanoc (Fri, 01 Oct 2021 08:48:37 GMT):
Try search "passwordattempts" in this doc https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/serverconfig.html

conanoc (Fri, 01 Oct 2021 08:51:13 GMT):
And you could use "fabric-ca" channel instead of "fabric-questions" channel for this type of questions.

bardia (Fri, 01 Oct 2021 10:12:39 GMT):
tnx

AnuragKumar_10 (Fri, 01 Oct 2021 11:16:53 GMT):
Has joined the channel.

anilhelvaci (Fri, 01 Oct 2021 11:23:28 GMT):
Has joined the channel.

anilhelvaci (Fri, 01 Oct 2021 12:11:07 GMT):
Hello everyone, I am currently developing a tool which takes required configuration information from the user via a GUI and creates a local fabric test network according to the given information. The app also has features like installing, approving and committing chaincodes, joining channels, creating ca or peer nodes. The tech stack is as follows; * GUI: Vue.js 3 * Backend: Node 14 LTS * Fabric: 2.3.1 * Ubuntu: 20.04 My problem is when I am installing a chaincode to a peer Firefox throws the following error; "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:5000/prepareCommit. (Reason: CORS request did not succeed)." The strange thing is that I handle cors issues in my backend (using cors packege with express.js) and only when the code hits where I call peer lifecycle chaincode install firefox throws this error. But when I disable the line where I call install command or I run another command like peer channel list Firefox does not throw any error. Also this error does not happen when test with Chrome or Postman. My Firefox version: 92.0(64-bit) for Ubuntu canonical - 1.0 Full Error Messages: * Browser: `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:5000/prepareCommit. (Reason: CORS request did not succeed).` * Client Code: `Type-Error: Network Error when attempting to fetch resources` The MDN docs say that it is possible addons, adblockers or extensions might be causing this since the error message indicates the error happened either network or protocol level. So here are the things I have tried; * Run firefox in the troubleshoot mode (Still threw the error) * Test using CHROME and POSTMAN (No error occurred) * Run different code other than `peer lifecycle chaincode install` such as `peer channel list` (No error) * Make the code wait 120 seconds in order to eliminate timeout related issues (No error) I don't come across this issue when running other peer commands. So my belief is that `peer lifecycle chaincode install` command somehow breaks the connection between firefox and my server. Is there anyone who has any idea what the cause of this error might be? Any help would be appreciated. Thanks in advance

jtonline (Fri, 01 Oct 2021 13:20:42 GMT):
It looks like there might be a problem with the version- I think name for networks was introduced in https://docs.docker.com/compose/compose-file/compose-versioning/#version-35 This seems to have been fixed in the main branch but not release-2.2 https://github.com/hyperledger/fabric-samples/pull/482 Could you try editing the docker compose files and open an issue on fabric-samples if that is the problem? Thanks

dmckay (Fri, 01 Oct 2021 14:11:13 GMT):
Has joined the channel.

puneetkumar1010 (Fri, 01 Oct 2021 14:21:13 GMT):
Hello guys!

puneetkumar1010 (Fri, 01 Oct 2021 14:25:04 GMT):
I created a network with 3 organizations with 2 peers each. I packaged the chaincode , installed it and commit ready it for 1 peer only for each organization. I wanted to know that will the second peer stay idle ? Or won't participate in endorsing or commiting transaction ?

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem.

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples] (https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode will failed because the peer does not know the url of external chaincode service.

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples] (https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode will failed because the peer does not know the url of external chaincode service. But if I manually add the content to the empty connection.json file, the invoking works fine.

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples](https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode will failed because the peer does not know the url of external chaincode service. But if I manually add the content to the empty connection.json file, the invoking works fine.

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples](https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode will failed because the peer does not know the url of external chaincode service. But if I manually add the content to the empty connection.json file, the invoking works fine. I tried to debug the external builder by redirecting stdout to stderr in release script. The script do copy the connect.json to /tmp/{{chaincodeID}}/release but for some reason it is not correctly copied back to /var/hyperledger/production/.... Any one has solution for this? Thanks!

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples](https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode invoke will failed because the peer does not know the url of external chaincode service. But if I manually add the content to the empty connection.json file, the invoking works fine. I tried to debug the external builder by redirecting stdout to stderr in release script. The script do copy the connect.json to /tmp/{{chaincodeID}}/release but for some reason it is not correctly copied back to /var/hyperledger/production/.... Any one has solution for this? Thanks!

roclee (Fri, 01 Oct 2021 15:14:35 GMT):
Hello everyone. I am deploying a fabric network to Kubernetes with external chaincode service. But I met a quite weird problem. I am using the same `detect` `build` and `release` script as [fabric-samples](https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/chaincode-external/sampleBuilder/bin), and the connection.json is like ``` { "address": "chaincode-org1.fabric.svc.cluster.local:3000", "dial_timeout": "10s", "tls_required": false } ``` The chaincode install works fine but after installing I found that there is a connection.json under `/var/hyperledger/production/externalbuilder/builds/{{chaincodeID}}/release/chaincode/server/` but nothing in the json file. So the chaincode invoke will failed because the peer does not know the url of external chaincode service. But if I manually add the content to the empty connection.json file, the invoking works fine. I tried to debug the external builder by redirecting stdout to stderr in release script. The script do copy the `connection.json`(not empty) to /tmp/{{chaincodeID}}/release but for some reason it is not correctly copied back to /var/hyperledger/production/.... Any one has solution for this? Thanks!

roclee (Fri, 01 Oct 2021 15:33:15 GMT):
I tried to debug the external builder by redirecting stdout to stderr in `release` script. The script do copy the connect.json to `/tmp/{{chaincodeID}}/release` but for some reason it is not correctly copied back to `/var/hyperledger/production/...`. Any one has solution for this? Thanks!

RocMax (Fri, 01 Oct 2021 16:35:12 GMT):
Has joined the channel.

geekcharming (Fri, 01 Oct 2021 16:45:31 GMT):
Has joined the channel.

azhang919 (Fri, 01 Oct 2021 17:26:38 GMT):
Has joined the channel.

mahnoormmalik (Fri, 01 Oct 2021 17:32:27 GMT):
Has joined the channel.

CrystalChun (Fri, 01 Oct 2021 17:35:32 GMT):
Has joined the channel.

imchaves10 (Fri, 01 Oct 2021 19:10:34 GMT):
Has joined the channel.

mirshahzad (Fri, 01 Oct 2021 20:07:57 GMT):
I want to build an app on hyperledger fabric. Could you please recommend step-wise guide of any medium article or youtube tutorial? Thanks,

Leeyoungone (Fri, 01 Oct 2021 23:09:17 GMT):
Has joined the channel.

elenipartakki (Fri, 01 Oct 2021 23:24:02 GMT):
Has joined the channel.

guri (Sat, 02 Oct 2021 04:10:58 GMT):
Has joined the channel.

Z3R0097 (Sat, 02 Oct 2021 06:22:58 GMT):
Has joined the channel.

RakshitaKaulgud (Sat, 02 Oct 2021 18:42:24 GMT):
Has joined the channel.

fallenvalkyrie17 (Sat, 02 Oct 2021 19:14:15 GMT):
Has joined the channel.

mohammed.alzuharey (Sat, 02 Oct 2021 21:33:34 GMT):
thanks @jtonline . now every think OK

OmarKhodr (Sun, 03 Oct 2021 06:52:58 GMT):
Has joined the channel.

quyenld176859 (Sun, 03 Oct 2021 08:39:28 GMT):
Has joined the channel.

Hong3Nguyen (Sun, 03 Oct 2021 11:06:32 GMT):
Hi, I have an issue as "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "no required module provides packagego.mod file not found in current directory or any parent directory; see 'go help modules'" Do you have any idea? thank in advance.

DanielHaren1 (Sun, 03 Oct 2021 11:42:34 GMT):
Has joined the channel.

Pankaj_1 (Mon, 04 Oct 2021 06:31:48 GMT):
Has joined the channel.

glehmann (Mon, 04 Oct 2021 07:05:34 GMT):
Has joined the channel.

glehmann (Mon, 04 Oct 2021 07:11:31 GMT):
Hi :) I'm struggling to figure out the source of this error: `/ # env CORE_PEER_MSPCONFIGPATH=/var/hyperledger/admin_msp peer lifecycle chaincode approveformyorg \ > -o orderer1-hlf-ord.orderer:7050 \ > --channelID star \ > --name fabcar \ > --version 1 \ > --package-id fabcar:2e4d0a92317fe0c2d5f8de3ea74f01e7e990bec11336335e3bd29d0cde06035d \ > --sequence 1 \ > --tls \ > --cafile /var/hyperledger/tls/ord/cert/cacert.pem Error: proposal failed with status: 500 - endorsing with plugin failed: plugin with name escc could not be used: plugin with name escc wasn't found ` Would someone have an idea of what may cause that?

glehmann (Mon, 04 Oct 2021 07:11:31 GMT):
Hi :) I'm struggling to figure out the source of this error: ```/ # env CORE_PEER_MSPCONFIGPATH=/var/hyperledger/admin_msp peer lifecycle chaincode approveformyorg \ > -o orderer1-hlf-ord.orderer:7050 \ > --channelID star \ > --name fabcar \ > --version 1 \ > --package-id fabcar:2e4d0a92317fe0c2d5f8de3ea74f01e7e990bec11336335e3bd29d0cde06035d \ > --sequence 1 \ > --tls \ > --cafile /var/hyperledger/tls/ord/cert/cacert.pem Error: proposal failed with status: 500 - endorsing with plugin failed: plugin with name escc could not be used: plugin with name escc wasn't found ``` Would someone have an idea of what may cause that?

mbwhite (Mon, 04 Oct 2021 11:13:58 GMT):
Hello;; this repo might be of help... it's very similar to Fabric...

mbwhite (Mon, 04 Oct 2021 11:14:30 GMT):
Plus we've a PR about to come into fabric-samples that has a test network based on KIND that solely uses the external chaincode

mbwhite (Mon, 04 Oct 2021 11:35:12 GMT):
..and the link would helpful https://github.com/hyperledgendary/contract-as-a-service

roclee (Mon, 04 Oct 2021 11:37:30 GMT):
I appreciate your prompt reply

roclee (Mon, 04 Oct 2021 11:37:30 GMT):
I appreciate your reply

roclee (Mon, 04 Oct 2021 11:37:30 GMT):
I appreciate your reply,Actually I am developing my project based on the KIND repository. I will check the `contract as a service` project too. For now it seems like the problem is not in the external chaincode runtime, but inside the peer. If the `connection.json` is correctly copied to the `release` folder everything will be fine. I will keep trying to solve the problem and update this thread if I found something new. Thanks again for your help !

roclee (Mon, 04 Oct 2021 11:37:30 GMT):
I appreciate your reply,Actually I am developing my project based on the `test-network-kind` in `fabric-sample`. Do you mean that there will be a new example for this? I will check the `contract as a service` project too. For now it seems like the problem is not in the external chaincode runtime, but inside the peer. If the `connection.json` is correctly copied to the `release` folder everything will be fine. I will keep trying to solve the problem and update this thread if I found something new. Thanks again for your help !

jkneubuhl (Mon, 04 Oct 2021 12:19:38 GMT):
Roclee if you would like to try out the new Kubernetes Test Network, we would love to hear feedback on your experience with the platform and linking in the external chaincode services. The PR just hit the samples project at https://github.com/hyperledger/fabric-samples/pull/498

jkneubuhl (Mon, 04 Oct 2021 12:21:19 GMT):
In particular, we found that configuration of the external chaincode builders with the public Fabric images was very ... "fiddly." Instead of executing one-off scripts as in the fabric-samples example, the peers in the new test network are configured with a default, embedded chaincode builder based on the golang binaries in https://github.com/hyperledgendary/fabric-ccs-builder

jkneubuhl (Mon, 04 Oct 2021 12:24:12 GMT):
Early release to the test network is available at this branch: https://github.com/jkneubuh/fabric-samples/tree/feature/test-network-k8s/test-network-k8s - please let us know if this helps to smooth over the rough edges of working with External Chaincode and Kubernetes. Cheers!

roclee (Mon, 04 Oct 2021 12:48:52 GMT):
Thanks for the information! I do feel that it is a little difficult to integrated the external builder part into the peer, I am now storing the detect, build and release scripts in a configmap and mounting them into the peer deploment. I think `fabric-ccs-builder` is a better way to do that (hope it will be published to docker hub soon). And I will check the `test-network-k8s` branch.

jkneubuhl (Mon, 04 Oct 2021 13:10:12 GMT):
For the external builders, the fabric-ccs-builder is not available at the public docker hub, but it *IS*available at the GitHub container registry ghcr.io/hyperledgendary/fabric-ccs-builder . That said, overall the approach is still to brittle and we are looking forward to embedding a default builder into the peer in an upcoming Fabric release.

jkneubuhl (Mon, 04 Oct 2021 13:10:12 GMT):
For the external builders, the fabric-ccs-builder is not available at the public docker hub, but it *IS*available at the GitHub container registry ghcr.io/hyperledgendary/fabric-ccs-builder . That said, overall the approach is still too brittle and we are looking forward to embedding a default builder into the peer in an upcoming Fabric release.

roclee (Mon, 04 Oct 2021 13:19:02 GMT):
That's fantastic! Looking forward to the new release. And I saw that the external builder will be correctly configured by the environment variable `CORE_CHAINCODE_EXTERNALBUILDERS` in 2.4. With these two improvements the external chaincode part will be much easier to deploy.

roclee (Mon, 04 Oct 2021 13:44:50 GMT):
I tried the `fabric-ccs-builder` and the connection.json is correctly copied to the release folder, every thing works like a charm, problem solved! Thank you all! you saved my day.

Priyadaharan107 (Mon, 04 Oct 2021 17:20:07 GMT):
Has joined the channel.

analia_meira (Mon, 04 Oct 2021 18:17:47 GMT):
Has joined the channel.

mohammed.alzuharey (Mon, 04 Oct 2021 20:01:31 GMT):
Good night

mohammed.alzuharey (Mon, 04 Oct 2021 20:01:31 GMT):
Good night . when i start and Bring up Org3 components to the network will be have " ERROR: for peer0.org3.example.com Cannot create container for service peer0.org3.example.com: create .: volume name is too short, names should be at least two alphanumeric characters

mohammed.alzuharey (Mon, 04 Oct 2021 20:08:07 GMT):

Screenshot from 2021-10-04 21-04-40.png

mohammed.alzuharey (Mon, 04 Oct 2021 20:08:07 GMT):
Good night . when i start and Bring up Org3 components to the network will be have " ERROR: for peer0.org3.example.com Cannot create container for service peer0.org3.example.com: create .: volume name is too short, names should be at least two alphanumeric characters " how can solve that
Screenshot from 2021-10-04 21-04-40.png

ringo156 (Tue, 05 Oct 2021 04:18:42 GMT):
Has joined the channel.

sbyits (Tue, 05 Oct 2021 05:04:25 GMT):
Has joined the channel.

sbyits (Tue, 05 Oct 2021 05:09:16 GMT):
Hi everyone! I am an new hyperledger developer. Question: When I create the blockchain in hyperleder fabric, and I decided to open the "Block_00001" file to check, but I do not know the specification of the blockchain dat.file so I can not verify if the blockchain file is generated as I expected. Is there any way to know the block file specification or the source code section(part) for generating the blockchain in hyperledger fabric? Thanks a lot. So I can verify the block structure like header hash, body hash and .etc in dat.file.

Param-S (Tue, 05 Oct 2021 06:04:03 GMT):
Has joined the channel.

shivamraj6288 (Tue, 05 Oct 2021 19:51:47 GMT):
Has joined the channel.

conanoc (Wed, 06 Oct 2021 00:52:11 GMT):
Take a look at https://github.com/hyperledger/fabric/blob/main/common/ledger/blkstorage/block_serialization.go#L46 and https://github.com/hyperledger/fabric-protos-go/blob/main/common/common.pb.go#L597

sbyits (Wed, 06 Oct 2021 00:53:24 GMT):
Thank you so much, that is exactly what I expected.

guidam (Wed, 06 Oct 2021 08:22:46 GMT):
Has joined the channel.

hugebing (Wed, 06 Oct 2021 09:05:33 GMT):
Has joined the channel.

Rafailk (Wed, 06 Oct 2021 10:13:30 GMT):
How can I create a new channel in the same network and add only the two out of the three organizations that I have in my current network? I tried by deleting from my spec.yaml file the third org but always when I enter the join command it joins all the orgs.

anil8753 (Wed, 06 Oct 2021 20:33:10 GMT):
Assume we have 100+ organizations in Hyperledger fabric network. One Org can choose another Org randomly and perform a transaction. The transaction includes sensitive information that should be only accessible by the 2 Orgs involved in the transaction. How can we achieve this functionality, hide the transaction details from other Orgs.

x6ein (Wed, 06 Oct 2021 20:52:18 GMT):
Has joined the channel.

x6ein (Wed, 06 Oct 2021 20:58:06 GMT):
Hello. I downloaded HLF and I can't run test network...I am gettin an error: LOCAL_VERSION=2.2.2 DOCKER_IMAGE_VERSION= Local fabric binaries and docker images are out of sync. This may cause problems. Pulling orderer.example.com (hyperledger/fabric-orderer:latest)... ERROR: manifest for hyperledger/fabric-orderer:latest not found: manifest unknown: manifest unknown I was looking for a way in the internet but these solutions didn't work(They are mostly from 2017/2018 maybe these solutions are out of date or sth)... Can you help me? I am new :cold_face:

davidkel (Wed, 06 Oct 2021 21:23:13 GMT):
you need to follow the instructions here https://hyperledger-fabric.readthedocs.io/en/release-2.2/install.html to download the docker images which ensures they are tagged as latest so that when you start test network it can use the images.

conanoc (Thu, 07 Oct 2021 03:15:14 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html

aravindrajck (Thu, 07 Oct 2021 04:35:37 GMT):
hi everyone , i am trying bring up a new v2.2 peer and join it to the channels with 1.4x network, then once it is caught up i would retire the old v1.4 peer(s) once all data is synced up with 2.2 peer but i am struggling to get exact procedures for it in the internet. please point me in a right direction

CristianLorenzetto (Thu, 07 Oct 2021 06:05:40 GMT):
Has joined the channel.

damianlluch (Thu, 07 Oct 2021 08:56:44 GMT):
Has joined the channel.

Aneesha (Thu, 07 Oct 2021 08:59:12 GMT):
Has joined the channel.

GeorgePals (Thu, 07 Oct 2021 09:31:33 GMT):
Right now, in order to connect with the HF's nodes, there is a backend which: - receives requests from clients that want to submit something to HF - implements a `queue` mechanism, to avoid a large number of concurrent users submitting to the HF The current issue is that this backend **can not be trusted**. Thus, the only thing that the backend should, actually, do is to just forward the signed proposal/transaction envelope to the endorsing peers/orderers. However, this is not feasible. E.g. 1. The proposal is constructed at the backend and is then forwarded back to the clients 2. Client receives the proposal, signs it and sends it back to the backend 3. Backend receives the signed proposal and forwards it to the blockchain The very first step is where the main security issue comes from. I don't want the backend to construct the proposal. I need the client to do it. Also, if the client wanted to commit the endorsements to an orderer, the steps above needs to be repeated. Very tedious procedure. All of the above issues, even the need for a `queue` system (if I'm not mistaken), are solved through the new [Fabric Gateway][1]. So, 1. Is there any way for the proposal/transaction envelope to be created and signed by the clients themselves and let the backend just forward the requests to the HF? 2. Is it safe to use the new Fabric Gateway, that is found at the 2.4-beta? Is it functional enough to cover my needs? Do we know how much it will take for the new Gateway feature to actually reach "release/production ready level"? Any suggestions or ideas will be much appreciated.

GeorgePals (Thu, 07 Oct 2021 09:31:33 GMT):
Right now, in order to connect with the HF's nodes, there is a backend which: - receives requests from clients that want to submit something to HF - implements a `queue` mechanism, to avoid a large number of concurrent users submitting to the HF The current issue is that this backend **can not be trusted**. Thus, the only thing that the backend should, actually, do is to just forward the signed proposal/transaction envelope to the endorsing peers/orderers. However, this is not feasible. E.g. 1. The proposal is constructed at the backend and is then forwarded back to the clients 2. Client receives the proposal, signs it and sends it back to the backend 3. Backend receives the signed proposal and forwards it to the blockchain The very first step is where the main security issue comes from. I don't want the backend to construct the proposal. I need the client to do it. Also, if the client wanted to commit the endorsements to an orderer, the steps above need to be repeated. Very tedious procedure. All of the above issues, even the need for a `queue` system (if I'm not mistaken), are solved through the new [Fabric Gateway][1]. So, 1. Is there any way for the proposal/transaction envelope to be created and signed by the clients themselves and let the backend just forward the requests to the HF? 2. Is it safe to use the new Fabric Gateway, that is found at the 2.4-beta? Is it functional enough to cover my needs? Do we know how much it will take for the new Gateway feature to actually reach "release/production ready level"? Any suggestions or ideas will be much appreciated.

GeorgePals (Thu, 07 Oct 2021 09:31:33 GMT):
Right now, in order to connect with the HF's nodes, there is a backend which: - receives requests from clients that want to submit something to HF - implements a `queue` mechanism, to avoid a large number of concurrent users submitting to the HF The current issue is that this backend **can not be trusted**. Thus, the only thing that the backend should, actually, do is to just forward the signed proposal/transaction envelope to the endorsing peers/orderers. However, this is not feasible. E.g. 1. The proposal is constructed at the backend and is then forwarded back to the clients 2. Client receives the proposal, signs it and sends it back to the backend 3. Backend receives the signed proposal and forwards it to the blockchain The very first step is where the main security issue comes from. I don't want the backend to construct the proposal. I need the client to do it. Also, if the client wanted to commit the endorsements to an orderer, the steps above need to be repeated. Very tedious procedure. All of the above issues, even the need for a `queue` system (if I'm not mistaken), are solved through the new Fabric Gateway. So, 1. Is there any way for the proposal/transaction envelope to be created and signed by the clients themselves and let the backend just forward the requests to the HF? 2. Is it safe to use the new Fabric Gateway, that is found at the 2.4-beta? Is it functional enough to cover my needs? Do we know how much it will take for the new Gateway feature to actually reach "release/production ready level"? Any suggestions or ideas will be much appreciated.

justiny (Thu, 07 Oct 2021 12:56:09 GMT):
Hi, I've been setting up the dev environment for fabric on macOS. I tried to build with 'make' but I couldn't pass the pkcs11 test with softhsm2 v.2.6.1.

justiny (Thu, 07 Oct 2021 12:56:45 GMT):
Is there anyone who has a dev environment using softhsm2 v2.6.1?

justiny (Thu, 07 Oct 2021 12:58:11 GMT):
Once I tried softhsm2 v2.5.0 by installation with source code. I passed that pkcs11 test.

justiny (Thu, 07 Oct 2021 13:03:05 GMT):
on macOS not linux.

justiny (Thu, 07 Oct 2021 13:10:29 GMT):
davidkel said there are known issues with v2.6 in https://github.com/hyperledger/fabric/issues/2960.

anil8753 (Thu, 07 Oct 2021 15:30:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=obzZiXTgL9JXihNT4) Can we choose private data participating Orgs at run time? Example, as a buyer you can any seller.

anil8753 (Thu, 07 Oct 2021 15:30:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=obzZiXTgL9JXihNT4) Can we choose private data participating Orgs at run time? Example, as a buyer you can any seller just before making the transaction.

anil8753 (Thu, 07 Oct 2021 17:24:09 GMT):
not sure if I am writing to a bot, I know this link.

jyfregramer (Thu, 07 Oct 2021 17:45:05 GMT):
Has joined the channel.

x6ein (Thu, 07 Oct 2021 20:24:08 GMT):
Thank you, i did fail with installation of docker-compose. I have repaired it

nataliasofia (Thu, 07 Oct 2021 20:29:22 GMT):
Has joined the channel.

yianco (Thu, 07 Oct 2021 22:28:22 GMT):
Has joined the channel.

yianco (Thu, 07 Oct 2021 22:37:20 GMT):
Hi All, I've been trying to set up the v2.3.2 test network (based on the Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html) *with TLS disabled***. I've gone through the various .yaml files and set all instances of TLS_ENABLED to false. However, when trying to run the test network and do something as simple as create a channel, I'm getting a "connection refused" error. I see these errors across all commands in the tutorial, whether to/from the orderer or peer nodes. Is there something I'm missing? One thing I noticed is that requests are still getting sent over https, e.g., *https://localhost:7053/...*. Any thoughts?

yianco (Thu, 07 Oct 2021 22:37:20 GMT):
Hi All, I've been trying to set up the v2.3.2 test network (based on the Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html) *with TLS disabled*. I've gone through the various .yaml files and set all instances of TLS_ENABLED to false. However, when trying to run the test network and do something as simple as create a channel, I'm getting a "connection refused" error. I see these errors across all commands in the tutorial, whether to/from the orderer or peer nodes. Is there something I'm missing? One thing I noticed is that requests are still getting sent over https, e.g., *https://localhost:7053/...*. Any thoughts?

yianco (Thu, 07 Oct 2021 22:37:20 GMT):
Hi All, I've been trying to set up the v2.3.2 test network (based on the Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html) *with TLS disabled*. I've gone through the various .yaml files and set all instances of TLS_ENABLED to false. However, when trying to run the test network and do something as simple as create a channel, I'm getting a "connection refused" error. I see these errors across all commands in the tutorial, whether to/from the orderer or peer nodes. Is there something I'm missing? One thing I noticed is that requests are still getting sent over https, e.g., *https:*//localhost:7053/.... Any thoughts?

yianco (Thu, 07 Oct 2021 22:37:20 GMT):
Hi All, I've been trying to set up the v2.3.2 test network (based on the Fabric tutorial at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html) *with TLS disabled*. I've gone through the various .yaml files and set all instances of TLS_ENABLED to false. However, when trying to run the test network and do something as simple as create a channel, I'm getting a "connection refused" error. I see these errors across all commands in the tutorial, whether to/from the orderer or peer nodes. Is there something I'm missing? I'm running in an Ubuntu 18.04 VM. One thing I noticed is that requests are still getting sent over https, e.g., *https:*//localhost:7053/.... Any thoughts?

ThinCrusts (Fri, 08 Oct 2021 01:37:34 GMT):
Has joined the channel.

ThinCrusts (Fri, 08 Oct 2021 01:39:42 GMT):
Hello! Hope you're all doing well, I'm new to HL and just came across this blog post (https://blog.iota.org/integrate-hyperledger-fabric-with-the-iota-tangle-9bc3ac873e82/) and I was wondering if such a thing is still viable? I am in the process of setting up both networks using AWS and wondering if it would be possible for me to link the two networks together. Thanks in advance!!

stephaneJ (Fri, 08 Oct 2021 07:50:44 GMT):
Has joined the channel.

Vgkmanju (Fri, 08 Oct 2021 10:29:34 GMT):
Hi All, We are using Azure kubernetes cluster 1.20.9. In that we created hyperledger fabric 2.2.0 network with 2orgs and 1 peer for each org using BAF. I have enabled external builder launcher in peer pods. After packaging the chaincode, when i trying to install chaincode in the peer, I got the following error Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Can anyone suggest how to resolve this? and while installation( it contains only connection.json(servicer name, cert) and metadata.json(chaincode type as external, and label) file) does the peer needs docker?

Vgkmanju (Fri, 08 Oct 2021 10:54:32 GMT):
Issue resolved. I gave permission to external builder script files (build, detect, release)

eugenluft (Fri, 08 Oct 2021 11:05:42 GMT):
Has joined the channel.

RahulToraskar (Fri, 08 Oct 2021 11:44:19 GMT):
Has joined the channel.

RahulToraskar (Fri, 08 Oct 2021 11:50:47 GMT):
Hi All, We need to use Kubernetes cluster with version 1.20 where docker is not supported. We considered using chaincode as external service but it doesn't support 'java'. Does anyone know workaround for this problem?

mauricio (Fri, 08 Oct 2021 14:46:43 GMT):
Hi, we've a network from 3 orgs and 3 peers each. I want to know to get the chaincode's endorsers peers from fabric-sdk-go? In the past we implemented this function https://github.com/hyperledger/fabric-sdk-go/pull/169/files, but it only works for local peers. I really appreciate any help you can provide.

Camilo12987 (Fri, 08 Oct 2021 15:21:30 GMT):
Has joined the channel.

hiromaily (Sat, 09 Oct 2021 06:24:08 GMT):
Hi there, I'm using `external builders` and only docker image `hyperledger/fabric-peer:2.3` doesn't install `connection.json` into peer container properly. After install command `peer lifecycle chaincode install` run, `connection.json` is supposed to be installed in `/var/hyperledger/production/externalbuilder/builds/{{.CC_PACKAGE_ID}}/release/chaincode/server/connection.json` There is `connection.json`, but this file is 0 byte. I tried to check different version as well. ``` 2.2.0 -> OK 2.2.1 -> not checked, but must be OK 2.2.2 -> not checked, but must be OK 2.2.3 -> not checked, but must be OK 2.2.4 -> OK 2.3.0 -> OK 2.3.1 -> OK 2.3.2 -> Failed ``` It looks something happened from version 2.3.2 in `hyperledger/fabric-peer` for this functionality.

hiromaily (Sat, 09 Oct 2021 06:24:08 GMT):
Hi there, I'm using `external builders` and only docker image `hyperledger/fabric-peer:2.3` doesn't install `connection.json` into peer container properly. After install command `peer lifecycle chaincode install` run, `connection.json` is supposed to be installed in `/var/hyperledger/production/externalbuilder/builds/{{.CC_PACKAGE_ID}}/release/chaincode/server/connection.json` There is `connection.json`, but this file is 0 byte. I tried to check different version as well. ``` 2.2.0 -> OK 2.2.1 -> OK 2.2.2 -> OK 2.2.3 -> Failed 2.2.4 -> OK 2.3.0 -> OK 2.3.1 -> OK 2.3.2 -> Failed ``` It looks something happened from version 2.3.2 in `hyperledger/fabric-peer` for this functionality.

jackmacloud (Sat, 09 Oct 2021 06:35:59 GMT):
Has joined the channel.

bardia (Sun, 10 Oct 2021 12:20:20 GMT):
I have an api for the following update ``` curl --request PUT \ --url http://localhost:8080/user/3/tags \ --header 'Content-Type: application/json' \ --data '[ { "id": "1", "name": "www", } ]' ``` This is the code on the chaincode ``` func (s *smartContract) UpdateXXXTag(ctx contractapi.TransactionContextInterface, id, name string) error { check, err := s.CheckPermissions(ctx, "XXX") if err != nil { return fmt.Errorf("error on check role XXX: %w", err) } if check { m := ModbusTag{ ID: id, } assetJSON, err := ctx.GetStub().GetState(m.Key()) if err != nil { return fmt.Errorf("failed to read from world state: %v", err) //nolint:errorlint } if assetJSON == nil { return fmt.Errorf("the asset %s does not exist", id) } err = json.Unmarshal(assetJSON, &m) if err != nil { return nil //nolint:nilerr } m.Name = name bytes, err := json.Marshal(m) if err != nil { return fmt.Errorf("error on marshal XXX struct: %w", err) } err = ctx.GetStub().PutState(id, bytes) if err != nil { return fmt.Errorf("error on put state to stub: %w", err) } return nil } return ErrAccessPermission{Permission: "XXX"} } ``` But it does not update the name. Where is the problem?

HokitTang (Sun, 10 Oct 2021 16:54:48 GMT):
I have a problem about peer channel join,when i run `peer channel join -b $BLOCKFILE >&log.txt` it shows ` ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/tanghj/go/fabric/aberic/config/msp" does not exist or cannot be accessed: stat /Users/tanghj/go/fabric/aberic/config/msp: no such file or directory`,but i have exported configs i use this ` CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG1_CA CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 else CORE_PEER_ADDRESS=peer1.org1.adbc.com:8051 fi`

HokitTang (Sun, 10 Oct 2021 16:54:48 GMT):
I have a problem about peer channel join,when i run `peer channel join -b $BLOCKFILE >&log.txt` it shows ` ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/tanghj/go/fabric/aberic/config/msp" does not exist or cannot be accessed: stat /Users/tanghj/go/fabric/aberic/config/msp: no such file or directory`,but i have exported configs i use this `CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG1_CA CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 else CORE_PEER_ADDRESS=peer1.org1.adbc.com:8051 fi`

HokitTang (Sun, 10 Oct 2021 16:54:48 GMT):
I have a problem about peer channel join,when i run `peer channel join -b $BLOCKFILE >&log.txt` it shows ` ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/tanghj/go/fabric/aberic/config/msp" does not exist or cannot be accessed: stat /Users/tanghj/go/fabric/aberic/config/msp: no such file or directory`,but i have exported configs i use this `CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG1_CA CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp if [ $PEER -eq 0 ]; then CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 else CORE_PEER_ADDRESS=peer1.org1.adbc.com:8051 fi` then ,i run the shell like this `docker exec -ti cli sh -c "CORE_PEER_MSPCONFIGPATH=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/peers/peer0.org1.adbc.com/tls/ca.crt peer channel join -b ./channel-artifacts/mychannel.block"` it shows that `"/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp" does not exist ` but it really exists,what should i do ?

HokitTang (Sun, 10 Oct 2021 16:54:48 GMT):
I have a problem about peer channel join,when i run `peer channel join -b $BLOCKFILE >&log.txt` it shows ` ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/tanghj/go/fabric/aberic/config/msp" does not exist or cannot be accessed: stat /Users/tanghj/go/fabric/aberic/config/msp: no such file or directory`,but i have exported configs i use this `CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG1_CA CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051` ``` ``` then ,i run the shell like this `docker exec -ti cli sh -c "CORE_PEER_MSPCONFIGPATH=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/peers/peer0.org1.adbc.com/tls/ca.crt peer channel join -b ./channel-artifacts/mychannel.block"` it shows that `"/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp" does not exist ` but it really exists,what should i do ?

HokitTang (Sun, 10 Oct 2021 16:54:48 GMT):
I have a problem about peer channel join,when i run `peer channel join -b $BLOCKFILE >&log.txt` it shows ` ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/tanghj/go/fabric/aberic/config/msp" does not exist or cannot be accessed: stat /Users/tanghj/go/fabric/aberic/config/msp: no such file or directory`,but i have exported configs i use this `CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG1_CA CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 ` then ,i run the shell like this `docker exec -ti cli sh -c "CORE_PEER_MSPCONFIGPATH=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/peers/peer0.org1.adbc.com/tls/ca.crt peer channel join -b ./channel-artifacts/mychannel.block"` it shows that `"/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp" does not exist ` but it really exists,what should i do ?

HokitTang (Sun, 10 Oct 2021 17:01:22 GMT):
~~

HokitTang (Mon, 11 Oct 2021 00:46:50 GMT):
hi ,I have a problem like this.the shell is `docker exec -ti cli sh -c "CORE_PEER_MSPCONFIGPATH=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/peers/peer0.org1.adbc.com/tls/ca.crt peer channel join -b ./channel-artifacts/mychannel.block" ` it shows Cannot run peer because cannot init crypto,specified path doesn't exist. the path

HokitTang (Mon, 11 Oct 2021 00:46:50 GMT):
hi ,I have a problem like this.the shell is `docker exec -ti cli sh -c "CORE_PEER_MSPCONFIGPATH=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/users/Admin@org1.adbc.com/msp CORE_PEER_ADDRESS=peer0.org1.adbc.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/Users/tanghj/go/fabric/aberic/organizations/peerOrganizations/org1.adbc.com/peers/peer0.org1.adbc.com/tls/ca.crt peer channel join -b ./channel-artifacts/mychannel.block" ` it shows Cannot run peer because cannot init crypto,specified path doesn't exist. but the path really exists.

baxihemant (Mon, 11 Oct 2021 01:11:49 GMT):
Has joined the channel.

Bhawikchawda (Mon, 11 Oct 2021 06:49:17 GMT):
Has joined the channel.

OmarSaad (Mon, 11 Oct 2021 07:07:52 GMT):
Has joined the channel.

OmarSaad (Mon, 11 Oct 2021 07:08:13 GMT):
Hey,

OmarSaad (Mon, 11 Oct 2021 07:08:20 GMT):
This is Omar

OmarSaad (Mon, 11 Oct 2021 07:12:12 GMT):
I have a question and hope to get a clear answer. if I develop app based on fabric focusing on privacy preserving, how this app can be evaluated and validated?

barankilic (Mon, 11 Oct 2021 12:07:31 GMT):
The struct "m" has no "Name" field?

Sa_Block98 (Mon, 11 Oct 2021 14:01:59 GMT):
Has joined the channel.

Sa_Block98 (Mon, 11 Oct 2021 14:06:24 GMT):
hello i'm new using hyperledger and blockchain development and i wonder if hyperledger fabric chaincode and configuration could be written in python. If not, what other hyperledger alternatives recommend?

chris2222 (Mon, 11 Oct 2021 14:07:16 GMT):
Has joined the channel.

moorada (Mon, 11 Oct 2021 15:38:16 GMT):
Has joined the channel.

MANARKASSOU (Mon, 11 Oct 2021 20:17:03 GMT):
Has joined the channel.

JoseeeM (Mon, 11 Oct 2021 22:04:27 GMT):
Has joined the channel.

zero0097 (Tue, 12 Oct 2021 04:50:24 GMT):
Has joined the channel.

zero0097 (Tue, 12 Oct 2021 04:54:22 GMT):
Hello, im new to hyperledger fabric and sorry if i asked silly question but i hope you people will help `IST [main] InitCmd -> ERRO 001 Cannot run peer because the local MSP must have an ID.` after starting orderer and trying to join the channel using peer. Thank You.

bardia (Tue, 12 Oct 2021 07:02:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=KxTHxvqPTkA6z64Tv) No, not updated again:crying_cat_face:

prasadmnd (Tue, 12 Oct 2021 09:49:02 GMT):
Has joined the channel.

canenas (Tue, 12 Oct 2021 10:27:05 GMT):
Hi all I'm having issues with high memory usage on peers when running high load transactions

canenas (Tue, 12 Oct 2021 10:52:35 GMT):
i've got hundreds of clients running on a cluster with fabric 2.2. I notice that the memory usage increases up to 5GB on all peer nodes that are receiving transactions. The limit on the container is around 5GB so at that point the TPS rate goes down almost to 0 and often the chaincode container will crash.

canenas (Tue, 12 Oct 2021 10:53:46 GMT):
the issue is that even after reducing the number of clients connected and transactions submitted, I don't see any reduction in memory usage.

canenas (Tue, 12 Oct 2021 10:53:46 GMT):
the issue is that even after reducing the number of clients connected and transactions submitted, I don't see any reduction in memory usage. I know there was an issue in 1.4.4 but i haven't found anything relevant for 2.2

WeCanBeFriends (Tue, 12 Oct 2021 14:38:02 GMT):
Has joined the channel.

SumitVedpathak (Tue, 12 Oct 2021 15:35:17 GMT):
Hi Guys, I am facing some issues suddenly while bringing up the test network. At the time of bringing up the network with below command ./network.sh up createChannel -ca -s couchdb fabric is complaining about osnadmin scripts/createChannel.sh: line 40: osnadmin: command not found Channel creation failed I remember, last time i had the same issue, and i was able to resolve this by clearing/removing/deleting all containers and its volumes. But this time its not working. Any idea on this?

frostyfrog (Tue, 12 Oct 2021 20:23:39 GMT):
Has joined the channel.

conanoc (Wed, 13 Oct 2021 01:33:06 GMT):
AFAIK, it's not possible. You could share the private information out of band btw the two orgs and save only the hash of the information in the channel.

HokitTang (Wed, 13 Oct 2021 02:35:18 GMT):
hi guys, there is a question,Chaincode must be installed in each peer that is part of the channel and instantiated.Is that means if a channel has 4 peers of 2 orgs,4 peers should install the chaincode?

axays007 (Wed, 13 Oct 2021 05:22:53 GMT):
Has joined the channel.

FrancescoUrbano (Wed, 13 Oct 2021 08:01:18 GMT):
Has joined the channel.

fabio.henriques (Wed, 13 Oct 2021 08:16:40 GMT):
Hi, which version os Hyperledger are you using?

arman19940326 (Wed, 13 Oct 2021 11:02:57 GMT):
Has joined the channel.

arman19940326 (Wed, 13 Oct 2021 11:02:57 GMT):
Hi, Is there any tool (static or dynamic) that can check HLF chaincodes for security vulnerabilities?

zero0097 (Wed, 13 Oct 2021 12:24:49 GMT):
add osadmin binary to your binary folder which contain orderer, cryptogen, configtxgen and other binary and set its path to local termianl or set it into ~/.bashrc ``` export PATH=$PATH:~/Testing/hyperledger/fabric-samples/bin ``` close the restart the terminal or use command `source ~/.bashrc` and you are good to go

zero0097 (Wed, 13 Oct 2021 12:24:49 GMT):
add osadmin binary to your binary folder which contain orderer, cryptogen, configtxgen and other binary and set its path to local termianl or set it into ~/.bashrc ``` export PATH=$PATH:~/Testing/hyperledger/fabric-samples/bin ``` restart the terminal or use command `source ~/.bashrc` and you are good to go

yianco (Wed, 13 Oct 2021 16:37:42 GMT):
Hi All, I just wanted to follow up from post about running the Fabric test network with tls disabled. Here's a link to my original post. Any help would be greatly appreciated! https://chat.hyperledger.org/channel/fabric-questions?msg=y78WP7sppFeD8Zp4p

yianco (Wed, 13 Oct 2021 16:37:42 GMT):
Hi All, I just wanted to follow up from my post about running the Fabric test network with tls disabled. Here's a link to my original post. Any help would be greatly appreciated! https://chat.hyperledger.org/channel/fabric-questions?msg=y78WP7sppFeD8Zp4p

yianco (Wed, 13 Oct 2021 16:37:42 GMT):
deleted

yianco (Wed, 13 Oct 2021 16:37:42 GMT):
...

Ilikecodes (Wed, 13 Oct 2021 17:04:56 GMT):
Has joined the channel.

priamv (Wed, 13 Oct 2021 18:11:35 GMT):
Has joined the channel.

Dazpel (Wed, 13 Oct 2021 18:19:00 GMT):
Has joined the channel.

rolandtyler (Wed, 13 Oct 2021 20:43:37 GMT):
Has joined the channel.

bs (Wed, 13 Oct 2021 21:07:42 GMT):
Has joined the channel.

r0g1er (Thu, 14 Oct 2021 07:09:04 GMT):
Has joined the channel.

r0g1er (Thu, 14 Oct 2021 07:18:16 GMT):
Hello All, I have a question about the upgrade from 1.4 to 2.2. We have a system in production and want to upgrade it. We make use of zookeeper and kafka. We really want to get rid of that. Can we just follow the standard upgrade guide, since 2.2 is standard without kafka, or do we need to migrate to raft first?

alekseishcherbin (Thu, 14 Oct 2021 07:22:56 GMT):
Has joined the channel.

awa (Thu, 14 Oct 2021 08:08:44 GMT):
Hello everybody, We have a hyperledger fabric network spread over two k8s clusters. Is it possible to have documentation, pointers to meetups or conferences that provide feedback on the difficulty of maintaining a Hyperledger network in production. I am trying to have the necessary documentation to go serenely on a hyperledger fabric stack in production, monitoring alerting, restart procedure etc ...

iorveth (Thu, 14 Oct 2021 08:51:06 GMT):
Has joined the channel.

FrancescoMemola (Thu, 14 Oct 2021 09:50:57 GMT):
Has joined the channel.

FrancescoMemola (Thu, 14 Oct 2021 09:53:32 GMT):
Hi guys, how can i choose which port i use for different organizations (for example if i already have two org with port 7051 and 9051, how i continue for org 3 and 4 ?)

PJHaga (Thu, 14 Oct 2021 13:45:37 GMT):
Hi all, anyone had issues with running multiple join peer commands in parallel for a given peer? In our setup a peer needs to join multiple channels. some transactions succeed whereas others fail. The ones that fail also can't be retried it seems, because its in a broken state where the channel is like 'half' joined. It seems that the join channel transaction is not atomic in that sense. When we run the join channel in sequence 1 by 1 its not a problem. Does this sound familiar to anyone, and does anyone have any suggestions how to mitigate this (besides running in sequence..)?

ataberkozek (Thu, 14 Oct 2021 13:50:54 GMT):
Hi, I am trying to create an external chaincode but in the samples there is a field for ccid (mycc:hash). Where can I get this information?

thejas.pavithran (Thu, 14 Oct 2021 14:35:31 GMT):
Has joined the channel.

EC983 (Thu, 14 Oct 2021 19:02:10 GMT):
Has joined the channel.

yianco (Thu, 14 Oct 2021 23:51:29 GMT):
Can anyone get the test network tutorial to run with TLS disabled? Please... help... https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

yianco (Thu, 14 Oct 2021 23:51:29 GMT):
Can anyone get the test network tutorial to run with TLS disabled? Please... help... I have disabled TLS throughout the varoius .yaml files, but nothing seems to work. Trying to create a channel returns a "refused connection" response with a post request to *https*://localhost... https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

yianco (Thu, 14 Oct 2021 23:51:29 GMT):
Can anyone get the test network tutorial to run with TLS disabled? Please... help... I have disabled TLS throughout the varoius .yaml files, but nothing seems to work. Trying to create a channel returns a "refused connection" response with a post request to *https*://localhost... No matter what I do, every request still goes to *https*... https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

yianco (Thu, 14 Oct 2021 23:51:29 GMT):
Can anyone get the test network tutorial to run with TLS disabled? Please... help... I have disabled TLS throughout the varoius .yaml files, but nothing seems to work. Trying to create a channel returns a "refused connection" response with a post request to *https*://localhost... No matter what I do, every request still uses *https*... https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html

conanoc (Fri, 15 Oct 2021 01:34:38 GMT):
Why do you want to disable TLS? It's mandatory in fabric 2.x.

conanoc (Fri, 15 Oct 2021 01:41:38 GMT):
Yes. All peers should install the chaincode.

conanoc (Fri, 15 Oct 2021 01:49:48 GMT):
You can use any port you like for your peers. The test-network in the sample uses different ports for orgs because it use the same host for the two peers. So, use the same port if the host is different, use any different port if the host is the same.

hyper-curious (Fri, 15 Oct 2021 02:06:15 GMT):
Has joined the channel.

spaturu2305 (Fri, 15 Oct 2021 02:47:16 GMT):
Has joined the channel.

davidkel (Fri, 15 Oct 2021 07:45:28 GMT):
technically TLS isn't mandatory for fabric, it becomes mandatory for the orderers if you have more than one raft orderer because they use TLS when communicating with each other. Therefore you can create a fabric network that doesn't use TLS. I don't know if minifab (hyperledger-labs) can create a network without TLS, but you can take a look at the IBM Blockchain platform extension for VSCode which will create a network using microfab which doesn't use TLS.

davidkel (Fri, 15 Oct 2021 07:45:28 GMT):
technically TLS isn't mandatory for fabric, it becomes mandatory for the orderers if you have more than one raft orderer because they mandate TLS when communicating with each other. Therefore you can create a fabric network that doesn't use TLS. I don't know if minifab (hyperledger-labs) can create a network without TLS, but you can take a look at the IBM Blockchain platform extension for VSCode which will create a network using microfab which doesn't use TLS.

Gavimat (Fri, 15 Oct 2021 12:35:10 GMT):
Has anyone already tried to use Fabric with IPFS?

natedl98 (Sat, 16 Oct 2021 03:22:50 GMT):
Has joined the channel.

NaufalAlexander (Sat, 16 Oct 2021 04:26:33 GMT):
Has joined the channel.

kondo (Sat, 16 Oct 2021 05:05:52 GMT):
Has joined the channel.

ThomasTeo (Sat, 16 Oct 2021 08:09:32 GMT):
Has joined the channel.

AyhanSunar (Sat, 16 Oct 2021 14:12:31 GMT):
Has joined the channel.

hellboy03 (Sat, 16 Oct 2021 18:18:02 GMT):
Has joined the channel.

kdahya (Sun, 17 Oct 2021 02:50:45 GMT):
Has joined the channel.

sagarmylavarapu (Sun, 17 Oct 2021 10:26:43 GMT):
Has joined the channel.

manvendra (Sun, 17 Oct 2021 19:19:42 GMT):
Has joined the channel.

baxihemant (Sun, 17 Oct 2021 19:26:13 GMT):
Hi.. I am simply trying to run test-network using https://hyperledger-fabric.readthedocs.io/en/latest/test_network.htmlhttps://hyperledger-fabric.readthedocs.io/en/latest/test_network.html .. When I run ./network.sh createChannel .. I am getting this error -

baxihemant (Sun, 17 Oct 2021 19:26:14 GMT):
2021-10-17 15:11:09.693 EDT [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/Users/hemantbaxi/go/src/github.com/hemantbaxi/fabric-samples/config/msp" does not exist or cannot be accessed: stat /Users/hemantbaxi/go/src/github.com/hemantbaxi/fabric-samples/config/msp: no such file or directory

baxihemant (Sun, 17 Oct 2021 19:26:36 GMT):
I do not see msp directory present.. so question is how is this supposed to be created..

baxihemant (Sun, 17 Oct 2021 19:26:45 GMT):
I had done ./network.sh up --ca

baxihemant (Sun, 17 Oct 2021 20:03:34 GMT):
This is fixed.. The problem is I am running on Mac M1 and some of the scripts didn't run successfully because of wrong formatting..

lfklupp (Mon, 18 Oct 2021 03:15:52 GMT):
Has joined the channel.

lfklupp (Mon, 18 Oct 2021 03:19:07 GMT):
Hello guys! I need to implement a blockchain network, and I want to use Fabric. What is the easiest way to implement it? Using Cello or using only Fabric itself? ... Researching about cello, I found some divergent documentation, I'm having a bit of trouble getting it to run and implement correctly. Thanks

John.Greenan (Mon, 18 Oct 2021 04:38:47 GMT):
Has joined the channel.

dave.enyeart (Mon, 18 Oct 2021 04:44:27 GMT):
You may be interested in the Fabric k8 Working Group that is being started, checkout out the Oct 13th contributor meeting for more details - https://wiki.hyperledger.org/display/fabric/Contributor+Meetings+2021

dave.enyeart (Mon, 18 Oct 2021 04:48:07 GMT):
You can switch from Kafka to Raft before or after the v2.2 upgrade. Most people do it before the upgrade since Kafka isn't much used by v2.x users, and therefore not much tested by v2.x users. Not having Kafka in the mix simply removes one more variable in the upgrade.

indong (Mon, 18 Oct 2021 06:08:00 GMT):
Has joined the channel.

starjara (Mon, 18 Oct 2021 08:10:16 GMT):
Has joined the channel.

lev_jac (Mon, 18 Oct 2021 09:50:26 GMT):
Has joined the channel.

hossein.namazian (Mon, 18 Oct 2021 15:30:32 GMT):
Has joined the channel.

jkneubuhl (Mon, 18 Oct 2021 16:36:06 GMT):
The CC_ID hash value is a sha-256 hash of the chaincode tar.gz archive installed to the peer. You can retrieve this by scraping the STDOUT of the `peer cc install`, querying for installed chaincode, or running an external checksum on the chaincode archive (e.g. `shasum -a 256 my-cc.tar.gz`)

jkneubuhl (Mon, 18 Oct 2021 16:37:27 GMT):
Also if you have not tried the new Kubernetes Test Network, we recommend using this for external chaincode and external chaincode builders. It should be set up and ready to go with external builders configured for a local development platform. https://github.com/hyperledger/fabric-samples/tree/main/test-network-k8s

lawrenceabeyta (Mon, 18 Oct 2021 21:53:11 GMT):
Has joined the channel.

Vanderscycle (Mon, 18 Oct 2021 22:30:20 GMT):
Has joined the channel.

conanoc (Tue, 19 Oct 2021 03:14:28 GMT):
Using cloud service is the easiest way, or you also could try minifabric: https://github.com/hyperledger-labs/minifabric

multijik (Tue, 19 Oct 2021 03:18:18 GMT):
Has joined the channel.

pattycode (Tue, 19 Oct 2021 05:03:11 GMT):
Has joined the channel.

indongkim (Tue, 19 Oct 2021 06:29:53 GMT):
Has joined the channel.

amitchandra01 (Tue, 19 Oct 2021 08:08:24 GMT):
Has joined the channel.

mateokurti (Tue, 19 Oct 2021 08:41:26 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 10:43:46 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 10:52:16 GMT):
Hello, I am using minifabric to deploy the following network in two different computers: ############## # Computer 1 # ############## - ca01.org1.domain1.net - peer01.org1.domain1.net - peer02.org1.domain1.net - orderer01.domain1.net ############## # Computer 2 # ############## - ca01.org2.domain2.es - peer01.org2.domain2.es - peer02.org2.domain2.es - orderer01.domain2.es My question is How can I join both organizations? If I try to join with both orderers I get error.

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 10:55:56 GMT):
I've used the following docs: https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 10:58:18 GMT):
Thanks for any help

davidkel (Tue, 19 Oct 2021 11:54:06 GMT):
would suggest you ask on #fabric-mini

EliasKim (Tue, 19 Oct 2021 13:57:36 GMT):
Has joined the channel.

david.liu (Tue, 19 Oct 2021 16:47:32 GMT):
Has joined the channel.

yianco (Tue, 19 Oct 2021 17:12:44 GMT):
I was hoping to disable TLS on the test network to get more insight into some of the orderer-peer communication.

yianco (Tue, 19 Oct 2021 17:14:01 GMT):
However, changing the TLS_ENABLED properties across the orderer and peer configurations (to FALSE) in the test-network .yaml file does not do the trick. I get "Connection Refused" errors and requests are still sent via https.

OsamaAzmy (Tue, 19 Oct 2021 22:48:03 GMT):
Has joined the channel.

ralvarezalvarez (Wed, 20 Oct 2021 03:25:43 GMT):
Has joined the channel.

ralvarezalvarez (Wed, 20 Oct 2021 03:25:50 GMT):
hi

ralvarezalvarez (Wed, 20 Oct 2021 03:26:26 GMT):
Channel 'mychannel' created Joining org1 peer to the channel... Using organization 1 + peer channel join -b ./channel-artifacts/mychannel.block + res=0 2021-10-20 00:16:44.066 -03 [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-10-20 00:16:44.105 -03 [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Joining org2 peer to the channel... Using organization 2 + peer channel join -b ./channel-artifacts/mychannel.block + res=0 2021-10-20 00:16:47.281 -03 [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-10-20 00:16:47.318 -03 [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Setting anchor peer for org1... OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown Setting anchor peer for org2... OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown Channel 'mychannel' joined

ralvarezalvarez (Wed, 20 Oct 2021 03:26:59 GMT):
do you know what is it happend in this case? OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown

subin8899 (Wed, 20 Oct 2021 04:34:00 GMT):
Has joined the channel.

nbAmit (Wed, 20 Oct 2021 04:52:25 GMT):
Has joined the channel.

DarshilPatel (Wed, 20 Oct 2021 11:19:50 GMT):
Has joined the channel.

DarshilPatel (Wed, 20 Oct 2021 11:47:52 GMT):
I'm struggling to figure out the source of this error:

DarshilPatel (Wed, 20 Oct 2021 11:47:58 GMT):
fabcar_1:fa7e7e2ea114da58eacc06fd451e011f34bb6453d9c18180ee348b7c89d30a5b: chaincode registration fail ed: container exited with 0"

DarshilPatel (Wed, 20 Oct 2021 11:49:50 GMT):
I want to add different functions in hyper ledger fabric-sample file of fabcar and implement it, but as soon as alter the code , the chaincode execution failed , please let me know if anyone has the solution to this problem.

deepakgerawipro (Wed, 20 Oct 2021 12:13:08 GMT):
Has joined the channel.

ralvarezalvarez (Wed, 20 Oct 2021 12:58:02 GMT):
hi Channel 'mychannel' created Joining org1 peer to the channel... Using organization 1 + peer channel join -b ./channel-artifacts/mychannel.block + res=0 2021-10-20 00:16:44.066 -03 [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-10-20 00:16:44.105 -03 [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Joining org2 peer to the channel... Using organization 2 + peer channel join -b ./channel-artifacts/mychannel.block + res=0 2021-10-20 00:16:47.281 -03 [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-10-20 00:16:47.318 -03 [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel Setting anchor peer for org1... OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown Setting anchor peer for org2... OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown Channel 'mychannel' joined do you know what is it happend in this case? OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown

webspeller (Wed, 20 Oct 2021 19:44:54 GMT):
Has joined the channel.

ralvarezalvarez (Wed, 20 Oct 2021 19:56:04 GMT):
Hi to All, I've resolved it. Just I needed download the last version of Github.

webspeller (Wed, 20 Oct 2021 19:58:15 GMT):
:slight_smile:

yianco (Wed, 20 Oct 2021 20:58:31 GMT):
Any thoughts?

alieghmazi (Wed, 20 Oct 2021 21:07:41 GMT):
Has joined the channel.

alieghmazi (Wed, 20 Oct 2021 21:11:34 GMT):
Hi. I'm working with hyperledger fabric. everything is working well but I have added another function to smart contract and I have added that to the api paprt too. but when I 'm working with that function I revived this error. "result": "No valid responses from any peers. Errors:\n peer=peer0.org2.example.com:9051, status=500, message=Function getLocationOnly not found in contract SmartContract\n peer=peer0.org1.example.com:7051, status=500, message=Function getLocationOnly not found in contract SmartContract". other function works but this is not working. can anybody help me ???

jason_jaan (Wed, 20 Oct 2021 22:54:52 GMT):
Has joined the channel.

leonfrank (Thu, 21 Oct 2021 07:24:13 GMT):
Has joined the channel.

tpluck (Thu, 21 Oct 2021 07:56:07 GMT):
Has joined the channel.

garthr (Thu, 21 Oct 2021 08:34:40 GMT):
Has joined the channel.

sjana0 (Thu, 21 Oct 2021 10:34:40 GMT):
Has joined the channel.

sjana0 (Thu, 21 Oct 2021 12:07:14 GMT):
Hi, I'm working with Hyperlefger-fabric 2.2.2. Everything works fine. But when I am trying to enroll admin it shows connection refused error ``` ```

sjana0 (Thu, 21 Oct 2021 12:07:37 GMT):
Hi, I'm working with Hyperlefger-fabric 2.2.2. Everything works fine. But when I am trying to enroll admin it shows connection refused error

sjana0 (Thu, 21 Oct 2021 12:07:37 GMT):
Hi, I'm working with Hyperlefger-fabric 2.2.2. Everything works fine. But when I am trying to enroll admin it shows connection refused error particularly in `await ca1.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' });` function call and the error is `error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]` ``` errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7054 ```

sjana0 (Thu, 21 Oct 2021 12:07:37 GMT):
Hi, I'm working with Hyperlefger-fabric 2.2.2. Everything works fine. But when I am trying to enroll admin it shows connection refused error particularly in `await ca1.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' });` function call and the error is ``` error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] ``` ``` errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7054 ```

sjana0 (Thu, 21 Oct 2021 12:07:37 GMT):
Hi, I'm working with Hyperlefger-fabric 2.2.2. Everything works fine. But when I am trying to enroll admin it shows connection refused error particularly in `await ca1.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' });` function call and the error is ``` error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054], stack=Error: Calling enroll endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] ``` ``` errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7054 ``` Any advise on how this error can occur or advise on any system configuration necessary for the solution of this error, would be a great help thank you,

outsidethecode (Thu, 21 Oct 2021 13:20:11 GMT):
Has joined the channel.

reddevil (Thu, 21 Oct 2021 14:53:04 GMT):
Has joined the channel.

reddevil (Thu, 21 Oct 2021 14:56:00 GMT):
Hi there - I noticed that npm package version `2.2.9` for `fabric-ca-client` and `fabric-common` still have an old version of `jsrsasign` ``` └─┬ fabric-ca-client@2.2.9 ├─┬ fabric-common@2.2.9 │ └── jsrsasign@8.0.24 └── jsrsasign@8.0.24 ```

reddevil (Thu, 21 Oct 2021 14:57:32 GMT):
The `release-2.2` branch in `fabric-sdk-node` appears to have the patch to fix it: https://github.com/hyperledger/fabric-sdk-node/commits/release-2.2 . Is it possible to cut a new version with an updated `jsrsasign` pkg please?

weihong.ou (Thu, 21 Oct 2021 18:00:10 GMT):
Has joined the channel.

lukasgem (Thu, 21 Oct 2021 20:46:16 GMT):
Has joined the channel.

cvarjao (Thu, 21 Oct 2021 22:24:45 GMT):
Has joined the channel.

sfiguereo (Fri, 22 Oct 2021 01:11:56 GMT):
Has joined the channel.

andra1996 (Fri, 22 Oct 2021 08:25:47 GMT):
Has joined the channel.

bestbeforetoday (Fri, 22 Oct 2021 09:36:48 GMT):
v2.2.10 is out now, which uses jsrsasign@10.4.1: https://github.com/hyperledger/fabric-sdk-node/releases/tag/v2.2.10

ralvarezalvarez (Fri, 22 Oct 2021 12:40:49 GMT):
Hi to All! Happy Fridays. Someone of you know how do I fixed this exception? Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint

fabio.henriques (Fri, 22 Oct 2021 12:54:36 GMT):
It looks like you're not mounting docker sock onto the peers

fabio.henriques (Fri, 22 Oct 2021 12:54:46 GMT):
can you show me your docker-compose file?

ralvarezalvarez (Fri, 22 Oct 2021 12:58:09 GMT):
Hi Fabio thanks you for your quick response!

ralvarezalvarez (Fri, 22 Oct 2021 12:58:22 GMT):

ralvarezalvarez - Fri Oct 22 2021 09:58:13 GMT-0300 (Chile Summer Time).txt

fabio.henriques (Fri, 22 Oct 2021 12:59:34 GMT):
is it from fabric-samples?

ralvarezalvarez (Fri, 22 Oct 2021 12:59:44 GMT):
yeap.

ralvarezalvarez (Fri, 22 Oct 2021 12:59:57 GMT):
my blockchain it's up

fabio.henriques (Fri, 22 Oct 2021 13:00:46 GMT):
you didn't saw any warning about DOCKER_SOCK env variable when you started the network?

ralvarezalvarez (Fri, 22 Oct 2021 13:02:43 GMT):
but when I am going to upload a chaincode it's refuse me

fabio.henriques (Fri, 22 Oct 2021 13:02:57 GMT):
I know

NikunjPurohit (Fri, 22 Oct 2021 13:47:05 GMT):
Has joined the channel.

khamdb (Fri, 22 Oct 2021 13:47:56 GMT):
Has joined the channel.

GeluUngur (Fri, 22 Oct 2021 18:05:31 GMT):
Has joined the channel.

GeluUngur (Fri, 22 Oct 2021 18:08:48 GMT):
Hi, I'm having the same problem. Any solutions found?

ralvarezalvarez (Fri, 22 Oct 2021 18:09:28 GMT):
not yet GeluUngur

GeluUngur (Fri, 22 Oct 2021 18:09:33 GMT):
I managed to get my network up, created a channel, but I'm getting the same error when trying to start the chaincode

ralvarezalvarez (Fri, 22 Oct 2021 18:09:40 GMT):
I'am surfing on internet

GeluUngur (Fri, 22 Oct 2021 18:10:13 GMT):
I've been searching too for hours, but no luck. Let me know if you find something

ralvarezalvarez (Fri, 22 Oct 2021 18:10:57 GMT):
sure! I'll do it

GeluUngur (Fri, 22 Oct 2021 18:50:30 GMT):
Do you have any docker-compose file in the root of the fabric-sample folder?

GeluUngur (Fri, 22 Oct 2021 18:53:48 GMT):
I'm also getting a warning when closind the network (./network.sh down): `time="2021-10-22T21:42:37+03:00" level=warning msg="The \"DOCKER_SOCK\" variable is not set. Defaulting to a blank string.` I'm not sure where should I put that variable, and what value to assign to it

ralvarezalvarez (Fri, 22 Oct 2021 18:54:06 GMT):
a,mmm let me see

ralvarezalvarez (Fri, 22 Oct 2021 18:54:26 GMT):
I'm gonna execute the same command

ralvarezalvarez (Fri, 22 Oct 2021 18:56:55 GMT):
it's declared

ralvarezalvarez (Fri, 22 Oct 2021 18:56:56 GMT):
${DOCKER_SOCK}:/host/var/run/docker.sock

GeluUngur (Fri, 22 Oct 2021 18:57:26 GMT):
where can you see it's declaration? in which file?

ralvarezalvarez (Fri, 22 Oct 2021 18:57:31 GMT):
to peers and order

ralvarezalvarez (Fri, 22 Oct 2021 18:58:01 GMT):
fabric-samples\test-network\docker\docker-compose-test-net.yaml

GeluUngur (Fri, 22 Oct 2021 19:02:03 GMT):
Are you using wsl2?

acantrell (Fri, 22 Oct 2021 19:12:44 GMT):
Has joined the channel.

ralvarezalvarez (Fri, 22 Oct 2021 19:34:33 GMT):
yes

ralvarezalvarez (Fri, 22 Oct 2021 19:35:03 GMT):
$ docker version Client: Cloud integration: 1.0.17 Version: 20.10.8 API version: 1.41 Go version: go1.16.6 Git commit: 3967b7d Built: Fri Jul 30 19:58:50 2021 OS/Arch: windows/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.8 API version: 1.41 (minimum version 1.12) Go version: go1.16.6 Git commit: 75249d8 Built: Fri Jul 30 19:52:10 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.9 GitCommit: e25210fe30a0a703442421b0f60afac609f950a3 runc: Version: 1.0.1 GitCommit: v1.0.1-0-g4144b63 docker-init: Version: 0.19.0

ralvarezalvarez (Fri, 22 Oct 2021 19:35:08 GMT):
versión de docker

GeluUngur (Fri, 22 Oct 2021 19:37:11 GMT):
Can anyone please help on @ralvarezalvarez 's issue? We're both trying to fix it, but no success...

palacios (Fri, 22 Oct 2021 19:48:36 GMT):
Has joined the channel.

davidkel (Fri, 22 Oct 2021 20:16:38 GMT):
you need to install docker in wsl2 itself, not the docker windows desktop. Google how to do this because docker in WSL2 wont start automatically

BrianBauska (Sat, 23 Oct 2021 05:16:31 GMT):
Has joined the channel.

marchelbudi.k (Sat, 23 Oct 2021 05:47:39 GMT):
Has joined the channel.

KiranLakhotia (Sat, 23 Oct 2021 08:49:55 GMT):
Has joined the channel.

webzest (Sat, 23 Oct 2021 12:29:03 GMT):
Has joined the channel.

fabio.henriques (Sat, 23 Oct 2021 13:08:50 GMT):
@GeluUngur you DOCKER_SOCK is not defined, that's the problem

fabio.henriques (Sat, 23 Oct 2021 13:09:03 GMT):
You have to find it on the Linux folders

fabio.henriques (Sat, 23 Oct 2021 13:10:03 GMT):
It is probaly on the folder /var/run/

jrojek (Sun, 24 Oct 2021 05:27:44 GMT):
Has joined the channel.

jrd10 (Sun, 24 Oct 2021 06:04:32 GMT):
Has joined the channel.

lincyaw (Sun, 24 Oct 2021 08:03:37 GMT):
Has joined the channel.

akshay.sood (Sun, 24 Oct 2021 14:44:43 GMT):
Hi guys, I have a very case-specific query related to the implementation of private data collection and I am seeking recommendations/suggestions from the experts here. We have a product running on Hyperledger Fabric 2.3.3 and the platform can have any number of organizations. For instance, initially, there will be 4 organizations, next week 10 more organizations can join the network. The problem arises when these organizations start transactions with each other. These transactions can have a number of objects that need to be private between these organizations only. 

For this, we can create private data collections with names:
 ```
 collection_org1 collection_org2 collection_org3 collection_org1_org2 collection_org1_org3 collection_org1_org2_org3 collection_org2_org3 ``` Assume if the network has 20 organizations as participants, how many private data collection combinations will be there. This is because, at a given time, any organization can begin a transaction with another organization or a series of organizations in the network. The problem here is that we have to create a large number of private data collections using the pattern and maintain it. Because of this problem, we removed this implementation and used the implicit private data collection for each organization. Now if there is an object that should be shared only with org1, org2 & org3, the object is pushed to `collection_org1`, `collection_org2`, `collection_org3`. We did this using setting `memberOnlyRead: false` and memberOnlyWrite: false` and added the validations at the chaincode level.

This implementation solved the above problem but has created a new problem. Now, we wanted to implement key-level endorsement policy such that if org1 changes a private object that is shared among org2 & org3, the org1 has to obtain the endorsements from org2 & org3 peers. This means that the peers will read the object from their own private data collection resulting in a different read-set in endorsement proposal response which further leads to an error saying `read/write sets do not match`. For example, org1 during the endorsement proposal will read object key: `key1` from its own private data collection `collection_org1`. In a similar way, org2 will read the same key during endorsement from its own collection `collection_org2`, and likewise for org3. This leads to a different read-set in the endorsement proposal. 
I am seeking suggestions to implement this whole functionality in a better way. 

Please let me know your suggestions/recommendations. I have also posted this query on stackoverflow: https://stackoverflow.com/questions/69697833/desiging-better-private-data-collections-in-hyperledger-fabric

akshay.sood (Sun, 24 Oct 2021 14:44:43 GMT):
Hi guys, I have a very case-specific query related to the implementation of private data collection and I am seeking recommendations/suggestions from the experts here. We have a product running on Hyperledger Fabric 2.3.3 and the platform can have any number of organizations. For instance, initially, there will be 4 organizations, next week 10 more organizations can join the network. The problem arises when these organizations start transactions with each other. These transactions can have a number of objects that need to be private between these organizations only. 

For this, we can create private data collections with names:
 ```
 collection_org1 collection_org2 collection_org3 collection_org1_org2 collection_org1_org3 collection_org1_org2_org3 collection_org2_org3 ``` Assume if the network has 20 organizations as participants, how many private data collection combinations will be there. This is because, at a given time, any organization can begin a transaction with another organization or a series of organizations in the network. The problem here is that we have to create a large number of private data collections using the pattern and maintain it. Because of this problem, we removed this implementation and used the implicit private data collection for each organization. Now if there is an object that should be shared only with org1, org2 & org3, the object is pushed to `collection_org1`, `collection_org2`, `collection_org3`. We did this using setting `memberOnlyRead: false` and `memberOnlyWrite: false` and added the validations at the chaincode level.

This implementation solved the above problem but has created a new problem. Now, we wanted to implement key-level endorsement policy such that if org1 changes a private object that is shared among org2 & org3, the org1 has to obtain the endorsements from org2 & org3 peers. This means that the peers will read the object from their own private data collection resulting in a different read-set in endorsement proposal response which further leads to an error saying `read/write sets do not match`. For example, org1 during the endorsement proposal will read object key: `key1` from its own private data collection `collection_org1`. In a similar way, org2 will read the same key during endorsement from its own collection `collection_org2`, and likewise for org3. This leads to a different read-set in the endorsement proposal. 
I am seeking suggestions to implement this whole functionality in a better way. 

Please let me know your suggestions/recommendations. I have also posted this query on stackoverflow: https://stackoverflow.com/questions/69697833/desiging-better-private-data-collections-in-hyperledger-fabric

akshay.sood (Sun, 24 Oct 2021 14:44:43 GMT):
Hi guys, I have a very case-specific query related to the implementation of private data collection and I am seeking recommendations/suggestions from the experts here. We have a product running on Hyperledger Fabric 2.3.3 and the platform can have any number of organizations. For instance, initially, there will be 4 organizations, next week 10 more organizations can join the network. The problem arises when these organizations start transactions with each other. These transactions can have a number of objects that need to be private between these organizations only. 

For this, we can create private data collections with names:
 ``` collection_org1 collection_org2 collection_org3 collection_org1_org2 collection_org1_org3 collection_org1_org2_org3 collection_org2_org3 ``` Assume if the network has 20 organizations as participants, how many private data collection combinations will be there. This is because, at a given time, any organization can begin a transaction with another organization or a series of organizations in the network. The problem here is that we have to create a large number of private data collections using the pattern and maintain it. Because of this problem, we removed this implementation and used the implicit private data collection for each organization. Now if there is an object that should be shared only with org1, org2 & org3, the object is pushed to `collection_org1`, `collection_org2`, `collection_org3`. We did this using setting `memberOnlyRead: false` and `memberOnlyWrite: false` and added the validations at the chaincode level.

This implementation solved the above problem but has created a new problem. Now, we wanted to implement key-level endorsement policy such that if org1 changes a private object that is shared among org2 & org3, the org1 has to obtain the endorsements from org2 & org3 peers. This means that the peers will read the object from their own private data collection resulting in a different read-set in endorsement proposal response which further leads to an error saying `read/write sets do not match`. For example, org1 during the endorsement proposal will read object key: `key1` from its own private data collection `collection_org1`. In a similar way, org2 will read the same key during endorsement from its own collection `collection_org2`, and likewise for org3. This leads to a different read-set in the endorsement proposal. 
I am seeking suggestions to implement this whole functionality in a better way. 

Please let me know your suggestions/recommendations. I have also posted this query on stackoverflow: https://stackoverflow.com/questions/69697833/desiging-better-private-data-collections-in-hyperledger-fabric

amankr1619 (Sun, 24 Oct 2021 20:21:37 GMT):
Has joined the channel.

JorgeLuisAcosta (Mon, 25 Oct 2021 07:00:46 GMT):
Has joined the channel.

dovanan95 (Mon, 25 Oct 2021 08:26:33 GMT):
Has joined the channel.

AtlasSMT (Mon, 25 Oct 2021 10:11:08 GMT):
Has joined the channel.

shadiayoub (Mon, 25 Oct 2021 11:24:53 GMT):
Has joined the channel.

jean-claudedalot (Mon, 25 Oct 2021 13:50:08 GMT):
Has joined the channel.

flaviocal (Mon, 25 Oct 2021 14:24:36 GMT):
Has joined the channel.

spunkymandar (Mon, 25 Oct 2021 16:50:38 GMT):
Has joined the channel.

dmimaz (Mon, 25 Oct 2021 17:36:09 GMT):
Has joined the channel.

ralvarezalvarez (Mon, 25 Oct 2021 17:57:48 GMT):
tnk fabio , i'm gonna see it!

Tenno (Tue, 26 Oct 2021 03:42:20 GMT):
Has joined the channel.

kamalraj2000 (Tue, 26 Oct 2021 07:17:43 GMT):
Has joined the channel.

dheerajbudhiraja (Tue, 26 Oct 2021 08:09:02 GMT):
Has joined the channel.

Tenno (Tue, 26 Oct 2021 08:13:08 GMT):
Hello guys,

mohammed.alzuharey (Tue, 26 Oct 2021 10:12:24 GMT):
Hello everyone Im working on blockchain application .every thing well. But when need to generating a REST server (create the REST API) run the command : ubuntu@ubuntu-VirtualBox:~/EHRUsingBlockchain-master/healthcare$ *composer-rest-server* get this error: /home/ubuntu/.nvm/versions/node/v8.17.0/lib/node_modules/composer-rest-server /node_modules/formdata-node/lib/cjs/Blob.js:80 for await (const chunk of (0, blobHelpers_1.consumeBlobParts) (__classPrivateFieldGet(this, _Blob_parts, "f"))) { ^^^^^ SyntaxError: Unexpected reserved word at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/home/ubuntu/.nvm/versions/node/v8.17.0/lib/node_modules/composer-rest-server/node_modules/formdata-node/lib/cjs/File.js:16:16) Operating system : I used Ubuntu Linux 16.04 LTS (virtual machine) How i can fix that ... please any one can help me ? Thanks

Ishee (Tue, 26 Oct 2021 10:19:17 GMT):
Hey @mohammed.alzuharey, It looks like, you did not create a async function, Can you please add your chaincode here ? so it will help to figure out an error. Thanks.

kosarlatif (Tue, 26 Oct 2021 10:29:15 GMT):
How to we update a chaincode can any assist with example

kosarlatif (Tue, 26 Oct 2021 10:40:08 GMT):
I am trying to upgrade chaincode but unable to deploy and run.

mohammed.alzuharey (Tue, 26 Oct 2021 10:49:33 GMT):
Thanks @Ishee for your response

mohammed.alzuharey (Tue, 26 Oct 2021 10:58:18 GMT):

chaincode_shim1.txt

mohammed.alzuharey (Tue, 26 Oct 2021 11:01:45 GMT):

chaincode2.txt

mohammed.alzuharey (Tue, 26 Oct 2021 11:02:06 GMT):

chaincode_event3.txt

Ishee (Tue, 26 Oct 2021 11:04:19 GMT):
Hey @kosarlatif, Here is command for upgrade chaincode. https://hyperledger-fabric.readthedocs.io/en/release-2.2/deploy_chaincode.html#upgrading-a-smart-contract

artemgorev (Tue, 26 Oct 2021 18:18:08 GMT):
Has joined the channel.

trilawney (Tue, 26 Oct 2021 19:08:54 GMT):
Has joined the channel.

tomaspozo (Tue, 26 Oct 2021 21:55:29 GMT):
Has joined the channel.

Eric.Lin (Tue, 26 Oct 2021 23:27:04 GMT):
Has joined the channel.

ralvarezalvarez (Tue, 26 Oct 2021 23:30:11 GMT):
hi fabio. Docker_Sock is fine configurated, I am gonna see other options

webspeller (Tue, 26 Oct 2021 23:37:31 GMT):
How valid do you guys think this critique is? : https://thenextweb.com/news/ibms-hyperledger-isnt-a-real-blockchain-heres-why

ralvarezalvarez (Wed, 27 Oct 2021 00:52:00 GMT):
I am decide move to Linux! i was reading that it's better option than working under windows

Tenno (Wed, 27 Oct 2021 06:19:32 GMT):
./network-start.sh deployCC -ccn ${CHAINCODE_NAME} \ -ccv ${CHAINCODE_VERSION} \ -ccl ${CHAINCODE_LANGUAGE} \ -ccp ${CHAINCODE_PATH} \ -ccs $n popd

Tenno (Wed, 27 Oct 2021 06:21:48 GMT):
I don't care it is or not. I only use its Distributed ledger

Tenno (Wed, 27 Oct 2021 06:24:17 GMT):
Any one tried to add a new Org in an exist fabric net?

lyc9702 (Wed, 27 Oct 2021 06:36:20 GMT):
Has joined the channel.

Ferdinand.wittmann (Wed, 27 Oct 2021 09:39:25 GMT):
Has joined the channel.

AjayKalola (Wed, 27 Oct 2021 10:55:45 GMT):
Hello Team

AjayKalola (Wed, 27 Oct 2021 10:55:45 GMT):
Hello Team, I'm trying to upgrade the chaincode but in update chaincode command I'm receiving below error after a successfull installation of the chaincode on both peers. Can anyone help me to resolve it. I had setup and running a fabric blockchain V1.3 `2021-06-25 12:16:55.458 UTC [msp/identity] Sign -> DEBU 0bf Sign: plaintext: 0A90090A7008031A0C08B792D7860610...324D53500A04657363630A0476736363 2021-06-25 12:16:55.459 UTC [msp/identity] Sign -> DEBU 0c0 Sign: digest: CA0260CE12250C900C831C630D58FC50CAE8296D79C754CAD8A61E4B96039C48 2021-06-25 12:16:55.466 UTC [chaincodeCmd] upgrade -> DEBU 0c1 endorse upgrade proposal, get response Error: could not assemble transaction, err proposal response was not successful, error code 500, msg instantiation policy violation: signature set did not satisfy policy` I'm using below command for update the chaincode. `peer chaincode upgrade \ --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA \ --clientauth --keyfile ${KEYFILE} \ --certfile ${CERTFILE} \ -n $CHAINCODE_NAME -v $VERSION -c '{"Args":[""]}' -C CHANNEL_NAME -P "AND ('oderer1MSP.member','orderer2MSP.member')"` Note: I have updated the tls certificate of ca-orderer and ca-peer before some time, is this a cause of the error? Can anyone please help me as its in production. Thanks.

MontassarNAGHMOUCHI (Wed, 27 Oct 2021 11:35:53 GMT):
Has joined the channel.

MontassarNAGHMOUCHI (Wed, 27 Oct 2021 11:39:48 GMT):
Hi community, I have a small problem with smart contracts I have created 3 separate smart contracts, exported them in the index file correctly and packaged them in the same chaincode and deployed it. Invoking functionalities form smart contract 1 works perfeclty, but invoking from the two others gives an error : Error: You've asked to invoke a function that does not exist. When i submit a transaction to get all defined functions on the network, I can clearly see that all function exist. Any ideas?

viktor.pulyak (Wed, 27 Oct 2021 15:31:36 GMT):
Has joined the channel.

viktor.pulyak (Wed, 27 Oct 2021 15:37:11 GMT):
Hello team need help with a problem we use a network with peer Version: 2.2.1 sometimes when we try to submit a transaction we receive the error on the Node.js client: ``` 2021-10-27T01:35:15.426Z - warn: [TransactionEventHandler]: strategyFail: commit failure for transaction "95073583cc6250857802e5c710c018aa2b74b12c1ebb912b01b60a870aaf6eb9": TimeoutError: Event strategy not satisfied within the timeout period. No response received from peers: peer0.groupCosec.flact.com at TransactionEventHandler.timeoutFail (/app/node_modules/fabric-network/lib/impl/event/transactioneventhandler.js:125:23) at Timeout._onTimeout (/app/node_modules/fabric-network/lib/impl/event/transactioneventhandler.js:112:18) 2021-10-27T01:35:15.427Z - error: [TransactionEventHandler]: setListenTimeout - event handler timed out at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) { transactionId: '95073583cc6250857802e5c710c018aa2b74b12c1ebb912b01b60a870aaf6eb9' } ``` on the peer there is this log ``` 2021-10-27 01:30:15.392 UTC [endorser] callChaincode -> INFO 0cc finished chaincode: groupCosecflactcc duration: 895ms channel=groupcosecchannel txID=95073583 2021-10-27 01:30:15.393 UTC [comm.grpc.server] 1 -> INFO 0cd unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.19.0.1:42132 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=1.248605926s ``` and only after 54 minutes the peer logs that receives block ``` 2021-10-27 02:24:40.722 UTC [gossip.privdata] StoreBlock -> INFO 0de [groupcosecchannel] Received block [1268] from buffer 2021-10-27 02:24:40.901 UTC [committer.txvalidator] Validate -> INFO 0df [groupcosecchannel] Validated block [1268] in 145ms 2021-10-27 02:24:42.098 UTC [kvledger] CommitLegacy -> INFO 0e0 [groupcosecchannel] Committed block [1268] with 1 transaction(s) in 1175ms (state_validation=0ms block_and_pvtdata_commit=9ms state_commit=1153ms) commitHash=[a67005736c7651f8a3350047dc60c4efb733b638629113cd3ef358ef9ba94396] ```

viktor.pulyak (Wed, 27 Oct 2021 15:38:15 GMT):
any ideas where the problem can be?

rolandw (Wed, 27 Oct 2021 17:09:36 GMT):
Has joined the channel.

mohammed.alzuharey (Wed, 27 Oct 2021 17:50:53 GMT):
Good night @Ishee

fabio.henriques (Wed, 27 Oct 2021 18:19:54 GMT):
It is

fabio.henriques (Wed, 27 Oct 2021 18:20:04 GMT):
But if you use WSL everything works fine

fabio.henriques (Wed, 27 Oct 2021 18:20:13 GMT):
I have a network running on it

ralvarezalvarez (Thu, 28 Oct 2021 00:23:59 GMT):
Tnk Fabio, but i've migrated to Linux, it works perfect with one shoot..

ravinayag (Thu, 28 Oct 2021 05:07:13 GMT):

ravinayag - Thu Oct 28 2021 10:37:02 GMT+0530 (India Standard Time).txt

ravinayag (Thu, 28 Oct 2021 05:08:12 GMT):
How to reproduce : 1, Clone the fabrice samples, 2, goto fabricsamples\fabcar and start the network. 3, Copy the relevant files and the connection files, fabcar\java- src, pom.xml 4, Run the java client for fabcar from a different machine. ( in may case windows ) Response : Able to add the Wallets, but getting below grpc comm error. Steps tried : Added the org2 peer in connection.yaml file still not resolving.. Added DNS entries, no improvement expecting: Grpcs should take the hostname/fqdn peer name from the configured variable from the docker-compose file. Any alternate options to override the setting ? How can i override the hostname setting from the grpcs://localhost:9051 ? For Error , refer the attachment error file.txt

viktor.p (Thu, 28 Oct 2021 06:25:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zXjD9aT6YPLxAabmX) Hi guys it seems that this is not the place when we can receive an answer to the questions about a problem. Maybe there is a place where it would be more correct to ask this kind of question? I will be very grateful for your help

Jotenks (Thu, 28 Oct 2021 10:16:27 GMT):
Has joined the channel.

important (Thu, 28 Oct 2021 11:05:10 GMT):
Has joined the channel.

important (Thu, 28 Oct 2021 11:07:09 GMT):
Hi guys I am working on a chat application. I want to fetch transaction ID for every transaction happening on chaincode like registering user, sending message. How can I fetch this TxID for every transaction?

yukesong (Thu, 28 Oct 2021 12:20:46 GMT):
Has joined the channel.

Acarcan (Thu, 28 Oct 2021 14:17:47 GMT):
Has joined the channel.

AlessandroPagliaro (Thu, 28 Oct 2021 15:06:02 GMT):
Has joined the channel.

Mellywins (Thu, 28 Oct 2021 15:28:18 GMT):
Has joined the channel.

webspeller (Thu, 28 Oct 2021 16:22:58 GMT):
Is it faster enough? I mean comparing to Aeternity and Kadena?

TaylorBelk1 (Thu, 28 Oct 2021 16:57:52 GMT):
Has joined the channel.

TaylorBelk1 (Thu, 28 Oct 2021 16:59:22 GMT):
Hey guys I am trying to do the tutorial for using the fabric test network and I cannot get the curl -sSL https://bit.ly/2ysbOFE | bash -s to work? I receiver this error: C:\Users\TBLK\go\src\github.com\TaylorBelk1>curl -sSL https://bit.ly/2ysbOFE | bash -s Clone hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo main: line 62: git: command not found fabric-samples v2.3.3 does not exist, defaulting to main. fabric-samples main branch is intended to work with recent versions of fabric. main: line 70: git: command not found Pull Hyperledger Fabric binaries ===> Downloading version 2.3.3 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.3.3/hyperledger-fabric-linux-amd64-2.3.3.tar.gz main: line 79: curl: command not found tar: invalid magic tar: short read ==> There was an error downloading the binary file. ------> 2.3.3 platform specific fabric binary is not available to download <----

ravinayag (Thu, 28 Oct 2021 18:41:37 GMT):
i think you running on windows system calling bash. hence throwing error. Check for windows version link..

ravinayag (Thu, 28 Oct 2021 18:41:37 GMT):
@TaylorBelk1 i think you running on windows system calling bash. hence throwing error. Check for windows version link..

chadmott (Thu, 28 Oct 2021 20:49:49 GMT):
Has joined the channel.

Tenno (Fri, 29 Oct 2021 01:25:43 GMT):
You can try to download zip from web and unzip to /bin and /config file . Also ,I seen a solution is Compile source fabric code to get the binary file/ You can try this. Hope it can help you

Tenno (Fri, 29 Oct 2021 01:28:50 GMT):
As i know , registering user doesnt has a TXID. Have you seen the config_block.pb file? there contains the transactions , use configtxlator to see it .

Tenno (Fri, 29 Oct 2021 01:30:57 GMT):
Yes,I've been here for several days,and to be honest , this place doenst give me much help

Tenno (Fri, 29 Oct 2021 01:37:08 GMT):
I'm using 2.2.1 same .but I didnt meet this error by now. Can you describe more detils?like what command uesd?

Tenno (Fri, 29 Oct 2021 01:43:59 GMT):
I assume you have tried command: peer lifecycle chaincode queryinstalled ``` and received like: ``` CC_NAME:CC_ID;label:CC_LABEL after these , try switch to different peer ,and make sure the chaincode is installed. ``` ```

Tenno (Fri, 29 Oct 2021 01:48:25 GMT):
Dont use the* peer chaincode upgrade* command! The official doc is wrong , I tried this for almost one week . If you want upgrade the cc ,use this : ``` pushd ../network ./network-start.sh deployCC -ccn ${CHAINCODE_NAME} \ -ccv ${CHAINCODE_VERSION} \ -ccl ${CHAINCODE_LANGUAGE} \ -ccp ${CHAINCODE_PATH} \ -ccs $n popd ```

AjayKalola (Fri, 29 Oct 2021 04:31:18 GMT):
Okay thanks let me try it.

KaranKulwal (Fri, 29 Oct 2021 05:07:15 GMT):
Has joined the channel.

hblockchain (Fri, 29 Oct 2021 05:50:01 GMT):
Has joined the channel.

viktor.p (Fri, 29 Oct 2021 06:19:49 GMT):
@Tenno do you know about any other place where where more chances to receive the answer? )

AjayKalola (Fri, 29 Oct 2021 07:33:14 GMT):
Hello Tenno I'm unable to understand above code. can you please share the example or link of the document?? One more thing my server is up and running. I created this network about 1.5 years back and after 1 year tls certificates of ca-orderer, ca-peer, orderers and peers are expired. So I have updated all certificates through fabric-ca-client again. I have all new certificates but when I'm updating the chaincode above error arrives and in the debug log I can check that it take old admins of ca-orderer,ca-peers certificate So do i need to replace anything else??

kosarlatif (Fri, 29 Oct 2021 07:36:46 GMT):
Hi Guys: Couchdb has Warehouse { "_id": "926_Stock", "_rev": "1-6c847ab7ca4c57383303913c02acc3a1", "w_id": 1, "date_done": "2021-10-28 05:24:50", "doc_type": "Stock", "location_id": 8, "name": "Te01/IN/00002", "note": false, "~version": "CgMBCAA=" } Stock_Location { "_id": "45_Stock_Location", "_rev": "1-61bb0fdc9c1823c11ad1b63c1e642115", "id": "8", "doc_type": "Stock_Location", "location": "Test location, street 1", "~version": "CgMBCgA=" } I want to join these documents and view warehouses alongwith location string. How to do this in chaincode. can we create a view in couchdb using chaincode or generate a query to join these documents ?

BabitaBisht1 (Fri, 29 Oct 2021 07:54:34 GMT):
Has joined the channel.

Tenno (Fri, 29 Oct 2021 07:57:07 GMT):
@viktor.p I'm using stackOverflow

MikaLammi (Fri, 29 Oct 2021 08:01:00 GMT):
Has joined the channel.

Tenno (Fri, 29 Oct 2021 08:08:19 GMT):
*1. *I noticed you said that you are using fabric-v1.3, while i'm using v2.2.1, so maybe there are some code changed . deployCC is a command in *./network.sh* which offical said. and $n is sequence of the chaincode . Like if the CC is first installed ,then $n =1;if CC is second installed which we called upgrade ,then $n=2 *2. * if all the certificate needed to be upgrade, then you should change the path that check the *.cert* file . I never meet this situation, but in my view ,dont delet the old cert file,there must be a command used to meet the path.

AjayKalola (Fri, 29 Oct 2021 08:11:09 GMT):
I haven't changed the path. I just replaced the certificates with new one.

AjayKalola (Fri, 29 Oct 2021 08:11:44 GMT):
Anyways thanks for the help.

MontassarNAGHMOUCHI (Fri, 29 Oct 2021 09:13:46 GMT):
the chaincode is installed on all peers and works perfectly, the problem is that my chaincode package contain 3 smart contracts, and I correctly exported all 3, after chaincode deployment, when I invoke say function F from smart contract 1 it works, but function G from smart contract 2 doesn't work, it is like the chaincode contains one single smart contract

MontassarNAGHMOUCHI (Fri, 29 Oct 2021 09:15:12 GMT):
when I submit the following `contract.submitTransaction('org.hyperledger.fabric:GetMetadata')` to get the metadata, I can see that all smart contracts are there and the functions are defined

MontassarNAGHMOUCHI (Fri, 29 Oct 2021 09:15:24 GMT):
here is my metadata

MontassarNAGHMOUCHI (Fri, 29 Oct 2021 09:16:45 GMT):
`Connect to Fabric gateway. Use network channel: mychannel. { '$schema': 'https://hyperledger.github.io/fabric-chaincode-node/release-2.1/api/contract-schema.json', contracts: { 'org.shadow.shopcontract': { name: 'org.shadow.shopcontract', contractInstance: [Object], transactions: [Array], info: [Object] }, 'org.shadow.clientcontrolcontract': { name: 'org.shadow.clientcontrolcontract', contractInstance: [Object], transactions: [Array], info: [Object] }, 'org.shadow.connectedobjectcontract': { name: 'org.shadow.connectedobjectcontract', contractInstance: [Object], transactions: [Array], info: [Object] }, 'org.hyperledger.fabric': { name: 'org.hyperledger.fabric', contractInstance: [Object], transactions: [Array], info: [Object] } }, info: { version: '0.0.1', title: 'shadow-js' }, components: { schemas: {} } }`

AjayKalola (Fri, 29 Oct 2021 09:19:41 GMT):
Here is the orderer log `2021-10-29 09:17:53.373 UTC [orderer/common/server] Broadcast -> DEBU 3d12d Starting new Broadcast handler 2021-10-29 09:17:53.373 UTC [orderer/common/broadcast] Handle -> DEBU 3d12e Starting new broadcast loop for 10.0.1.9:49344 2021-10-29 09:17:53.389 UTC [orderer/common/broadcast] Handle -> WARN 3d12f Error reading from 10.0.1.9:49344: rpc error: code = Canceled desc = context canceled 2021-10-29 09:17:53.390 UTC [orderer/common/server] func1 -> DEBU 3d130 Closing Broadcast stream 2021-10-29 09:17:53.390 UTC [grpc] infof -> DEBU 3d131 transport: loopyWriter.run returning. connection error: desc = "transport is closing"`

kosarlatif (Fri, 29 Oct 2021 09:19:43 GMT):
any one?

marcus.schoeller (Fri, 29 Oct 2021 10:17:04 GMT):
Has joined the channel.

important (Fri, 29 Oct 2021 12:25:55 GMT):
thank you @Tenno for helping me out. Then config_block.pb must be a temp file. Pls let me know its path.

hailx (Fri, 29 Oct 2021 12:59:32 GMT):
Has joined the channel.

Natinasss (Fri, 29 Oct 2021 13:07:38 GMT):
Has joined the channel.

RajeshNavagare (Fri, 29 Oct 2021 16:39:54 GMT):
Has joined the channel.

deoalade (Fri, 29 Oct 2021 17:16:53 GMT):
Has joined the channel.

dan13 (Sat, 30 Oct 2021 00:43:36 GMT):
anyone aware of production-grade (or close to it) terraform modules for HLF 2.x networks?

omago123 (Sat, 30 Oct 2021 06:56:59 GMT):
Has joined the channel.

omago123 (Sat, 30 Oct 2021 06:57:38 GMT):
docker exec -it cli bash root@11ca6cab51b4:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.acornpub.com:7050 -c channelsales1 -f /etc/hyperledger/configtx/channel1.tx Error: failed to create deliver client: orderer client failed to connect to orderer.acornpub.com:7050: failed to create new connection: context deadline exceeded root@11ca6cab51b4:/opt/gopath/src/github.com/hyperledger/fabric/peer# ls

omago123 (Sat, 30 Oct 2021 06:58:01 GMT):
he guy anbody know this error ?

omago123 (Sat, 30 Oct 2021 06:58:19 GMT):
thanks in advance

Kazuya.N (Sat, 30 Oct 2021 07:31:27 GMT):
Has joined the channel.

efrain (Sat, 30 Oct 2021 09:28:41 GMT):
Has joined the channel.

efrain (Sat, 30 Oct 2021 09:30:49 GMT):
In fabric, the private keys created by the CA are stored by the CA's organisation. Is it possible to let the end users or clients manage the keys? I am looking for a decentralized key management.

efrain (Sat, 30 Oct 2021 09:30:49 GMT):
In fabric, the private keys created for the users by the CA are stored by the CA's organisation. Is it possible to let the end users or clients manage the keys? I am looking for a decentralized key management.

knagware9 (Sat, 30 Oct 2021 10:23:33 GMT):
@efrain check this mentorship project, similar being implemented https://wiki.hyperledger.org/display/INTERN/Project+Plan+-+Implement+Client+Side+Security+for+Climate+SIG+Fabric+Application

edouardfrance (Sat, 30 Oct 2021 14:40:05 GMT):
Has joined the channel.

dan13 (Sat, 30 Oct 2021 18:06:17 GMT):
Sounds familiar -- did you google it? IIRC has to do with your docker being stale

Santiagotwm99 (Sat, 30 Oct 2021 21:18:54 GMT):
Has joined the channel.

Sa_Block98 (Sat, 30 Oct 2021 21:19:19 GMT):
hello, can i retrieve the non hashed data saved before from a hyperledger fabric blockchain?

JeremyChou0314 (Sun, 31 Oct 2021 11:12:35 GMT):
Has joined the channel.

tleonard1941 (Sun, 31 Oct 2021 17:06:14 GMT):
Has joined the channel.

rohan333 (Mon, 01 Nov 2021 03:55:24 GMT):
Has joined the channel.

Tenno (Mon, 01 Nov 2021 05:35:59 GMT):
have you tried tls and cafile?

Tenno (Mon, 01 Nov 2021 05:38:24 GMT):
you mean the database or ledger ?

bardia (Mon, 01 Nov 2021 05:40:45 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=occgTKXcmn78WhDb4) How can I unlock the user in golang?

RajeshNavagare (Mon, 01 Nov 2021 06:16:34 GMT):
Can anyone provide link or reference on details of non-deterministic transactions in hyperledger fabric?

HokitTang (Mon, 01 Nov 2021 10:24:17 GMT):
hi,guys.when i use fabric-sdk-go to connect my local network, it doesn't work beacause tls.certificate does not exist or empty for peer peer1.org1.adbc.com. The message like this: `Failed to connect to gateway: Failed to apply config option: failed to initialize configuration: unable to load endpoint config: failed to initialize endpoint config from config backend: network configuration load failed: failed to load channel configs: failed to load channel peers: tls.certificate does not exist or empty for peer peer1.org1.adbc.com` But everything can run normally when I use the shell,, and the invoke command can be called on each node. What should I do?

HokitTang (Mon, 01 Nov 2021 10:24:43 GMT):
Thanks

msedzinski (Mon, 01 Nov 2021 11:07:16 GMT):
Has joined the channel.

szbalazs (Mon, 01 Nov 2021 11:12:11 GMT):
Has joined the channel.

pperez (Mon, 01 Nov 2021 11:23:58 GMT):
Has joined the channel.

RajeshNavagare (Mon, 01 Nov 2021 14:43:08 GMT):
When I am setting ```peer0-org1:7051``` it works..

RajeshNavagare (Mon, 01 Nov 2021 14:44:11 GMT):
When i use dns address set by ingress *www.grpc.dsgauditreadonly.com:7051*, it fails with ```Error: error getting endorser client for channel: endorser client failed to connect to www.grpc.dsgauditreadonly.com:7051: failed to create new connection: context deadline exceeded```

RajeshNavagare (Mon, 01 Nov 2021 14:44:11 GMT):
When i use dns address set by ingress *www.grpc.dsgrets.com:7051*, it fails with ```Error: error getting endorser client for channel: endorser client failed to connect to www.grpc.dsgauditreadonly.com:7051: failed to create new connection: context deadline exceeded```

RajeshNavagare (Mon, 01 Nov 2021 14:44:11 GMT):
When i use dns address set by ingress *www.grpc.dsgrets.com:7051*, it fails with ```Error: error getting endorser client for channel: endorser client failed to connect to www.grpc.dsgrets.com:7051: failed to create new connection: context deadline exceeded```

GeluUngur (Mon, 01 Nov 2021 15:32:10 GMT):
Hi all, I'm trying to rule the Java application from the fabric-samples folder. However, whenever I run the main() method from App.java I get this error: `> Task :App.main() Successfully enrolled user "admin" and imported it into the wallet Successfully enrolled user "appUser" and imported it into the wallet Submit Transaction: InitLedger creates the initial set of assets on the ledger. Error failed constructing descriptor for chaincodes: Error failed constructing descriptor for chaincodes: org.hyperledger.fabric.gateway.GatewayRuntimeException: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: Failed to find any endorsers for chaincode basic. See logs for details ` I just ran the `./network.sh up createChannel -ca` command in the terminal to initalize the network and then ran the app from Intellij. Is there something that needs changed?

GeluUngur (Mon, 01 Nov 2021 15:32:10 GMT):
Hi all, I'm trying to rule the Java application from the fabric-samples folder. However, whenever I run the main() method from App.java I get this error: `> Task :App.main() Successfully enrolled user "admin" and imported it into the wallet Successfully enrolled user "appUser" and imported it into the wallet Submit Transaction: InitLedger creates the initial set of assets on the ledger. Error failed constructing descriptor for chaincodes: Error failed constructing descriptor for chaincodes: org.hyperledger.fabric.gateway.GatewayRuntimeException: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: Failed to find any endorsers for chaincode basic. See logs for details` I just ran the `./network.sh up createChannel -ca` command in the terminal to initalize the network and then ran the app from Intellij. Is there something that needs changed?

keithyweethy (Mon, 01 Nov 2021 16:52:11 GMT):
Has joined the channel.

tleonard1941 (Mon, 01 Nov 2021 20:18:39 GMT):
can i install hyperledger fabric onUbuntu 20.04.3 LTS

Tenno (Tue, 02 Nov 2021 01:33:49 GMT):
I meet this error too. I think it may caused by ip transmit , You can try add www.grpc.dsgrets.com in hosts file

Tenno (Tue, 02 Nov 2021 01:39:19 GMT):
*./network.sh createChannel -ca *

teerakiat (Tue, 02 Nov 2021 05:00:40 GMT):
Has joined the channel.

Rigwarl (Tue, 02 Nov 2021 06:26:36 GMT):
Has joined the channel.

vinodhini (Tue, 02 Nov 2021 06:32:40 GMT):
Has joined the channel.

AjayKalola (Tue, 02 Nov 2021 06:53:38 GMT):

Clipboard - November 2, 2021 12:22 PM

AjayKalola (Tue, 02 Nov 2021 06:53:38 GMT):

Clipboard - November 2, 2021 12:22 PM

AjayKalola (Tue, 02 Nov 2021 06:53:59 GMT):
Hello all, can any one help to understand issue??

kosarlatif (Tue, 02 Nov 2021 07:26:15 GMT):
Hi everyone: Can we create a mapping function, join query , or view for couchdb in chaincode ?

Rigwarl (Tue, 02 Nov 2021 07:34:32 GMT):
Hello everyone, can any one meet this issue? When I try to set an anchor peer, it says permission denied Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass final checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

Tenno (Tue, 02 Nov 2021 08:33:27 GMT):
Do you used scripts/setAnchorPeer.sh?

Tenno (Tue, 02 Nov 2021 08:35:37 GMT):
You can try ``` resultIterators, err := ctx.GetStub().GetHistoryForKey(messageNumber) ```

Rigwarl (Tue, 02 Nov 2021 08:42:23 GMT):
I followed the steps in scripts/setAnchorPeer.sh on my own docker container, but I didn't use it directly

kosarlatif (Tue, 02 Nov 2021 11:49:31 GMT):
this functions gives the history of actions done on a specific record.

kosarlatif (Tue, 02 Nov 2021 11:49:48 GMT):
what I want is something similar to join in mysql

kosarlatif (Tue, 02 Nov 2021 11:49:59 GMT):
join two documents

kosarlatif (Tue, 02 Nov 2021 11:50:44 GMT):
suppose one warehouse has many locations.

kosarlatif (Tue, 02 Nov 2021 11:52:05 GMT):
Warehouse { "_id": "926_warehouse", "_rev": "1-6c847ab7ca4c57383303913c02acc3a1", "name": "Warehouse one", "doc_type": "Warehouse", "~version": "CgMBCAA=" } Location { "_id": "45_Location", "_rev": "1-61bb0fdc9c1823c11ad1b63c1e642115", "doc_type": "Stock_Location", "name": "Test location, street 1", "~version": "CgMBCgA=" }

y8l (Tue, 02 Nov 2021 11:57:16 GMT):
Has joined the channel.

rafaadan6 (Tue, 02 Nov 2021 18:08:34 GMT):
Has joined the channel.

GeluUngur (Tue, 02 Nov 2021 19:06:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=tKfSdZbWzFCLdn8uu) What do you mean? Should I run the createChannel command separately?

imillar99 (Tue, 02 Nov 2021 20:43:53 GMT):
Has joined the channel.

aarjav (Tue, 02 Nov 2021 20:54:47 GMT):
Has joined the channel.

TaylorBelk1 (Tue, 02 Nov 2021 21:25:29 GMT):
I was able to get past this guys thank you

TaylorBelk1 (Tue, 02 Nov 2021 21:28:20 GMT):
I have a new issue now guys. Can you provide any insight? I am trying to run through the test-network tutorial and when I try to set up the chainCode I get this: $ ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript -ccl javascript deploying chaincode on channel 'mychannel' executing with the following - CHANNEL_NAME: mychannel - CC_NAME: basic - CC_SRC_PATH: ../asset-transfer-basic/chaincode-javascript - CC_SRC_LANGUAGE: javascript - CC_VERSION: 1.0 - CC_SEQUENCE: 1 - CC_END_POLICY: NA - CC_COLL_CONFIG: NA - CC_INIT_FCN: NA - DELAY: 3 - MAX_RETRY: 5 - VERBOSE: false + peer lifecycle chaincode package basic.tar.gz --path ../asset-transfer-basic/chaincode-javascript --lang node --label basic_1.0 + res=0 Chaincode is packaged Installing chaincode on peer0.org1... Using organization 1 + peer lifecycle chaincode install basic.tar.gz + res=1 Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint Chaincode installation on peer0.org1 has failed Deploying chaincode failed PS I am on windows 10

ElisJacobson (Tue, 02 Nov 2021 23:06:13 GMT):
Has joined the channel.

Tenno (Wed, 03 Nov 2021 01:44:00 GMT):
have you check the images version? ` LOCAL_VERSION=$(peer version | sed -ne 's/ Version: //p') DOCKER_IMAGE_VERSION=$(docker run --rm hyperledger/fabric-tools:$IMAGETAG peer version | sed -ne 's/ Version: //p' | head -1)`

terexitarius (Wed, 03 Nov 2021 02:45:43 GMT):
Has joined the channel.

Howie001 (Wed, 03 Nov 2021 02:48:24 GMT):
Has joined the channel.

Howie001 (Wed, 03 Nov 2021 02:52:12 GMT):
Hi everyone, I encountered an error of connecting a peer to a channel. I created a testchannel and tried to join peer to it using the codes below. export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer1.org1.example.com:7051 peer channel join -b testchannel.block But this connection error occured. Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.18.0.3:7051: connect: connection refused" Anyone saw this error? Thanks!

Howie001 (Wed, 03 Nov 2021 02:52:12 GMT):
Hi everyone, I encountered an error of connecting a peer to a channel. I created a testchannel and tried to join peer to it using the codes below. export CORE_PEER_LOCALMSPID="Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ADDRESS=peer1.org1.example.com:7051 peer channel join -b testchannel.block But this connection error occured. Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.18.0.3:7051: connect: connection refused" Anyone know about this error? Thanks!

frankliawesome (Wed, 03 Nov 2021 03:37:57 GMT):
Has joined the channel.

jaysonr (Wed, 03 Nov 2021 03:39:30 GMT):
Has joined the channel.

jaysonr (Wed, 03 Nov 2021 03:41:12 GMT):
Hi I'm trying to invoke a chaincode but I'm getting an error status:500 message:"make sure the chaincode enroll has been successfully defined on channel channel1 and try again: chaincode definition for 'enroll' exists, but chaincode is not installed"

jaysonr (Wed, 03 Nov 2021 03:41:33 GMT):
thing is that I already installed, approve and commit successfully

jaysonr (Wed, 03 Nov 2021 03:41:58 GMT):
appreciate any help. thanks

Tenno (Wed, 03 Nov 2021 05:41:58 GMT):
Submit chaincode needs More than half orgs approve ,did you check this?

Tenno (Wed, 03 Nov 2021 05:45:03 GMT):
Try localhost:7051

SriniGovindaswamy (Wed, 03 Nov 2021 06:01:00 GMT):
Has joined the channel.

hhgfgg (Wed, 03 Nov 2021 12:05:55 GMT):
Has joined the channel.

JiriPeinlich (Wed, 03 Nov 2021 14:35:25 GMT):
Has joined the channel.

GeluUngur (Wed, 03 Nov 2021 14:48:54 GMT):
I had that problem too. The only solution was switching to Linux, which I recommend.

TaylorBelk1 (Wed, 03 Nov 2021 15:17:06 GMT):
local and docker image versions are both 2.3.3 Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' LOCAL_VERSION=2.3.3 DOCKER_IMAGE_VERSION=2.3.3 GeluUngur, not really possible. I have to use a company PC and they dont support linux. Plus this works for my boss and he is on Windows 10 as well, so it must be possible.

Stevedimaras (Wed, 03 Nov 2021 17:05:20 GMT):
Has joined the channel.

alfahami (Wed, 03 Nov 2021 17:55:33 GMT):
Has joined the channel.

alfahami (Wed, 03 Nov 2021 17:56:03 GMT):
check your commit status by executing: peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1

alfahami (Wed, 03 Nov 2021 17:56:03 GMT):
check your commit status by executing: peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name nameOfSmartCOntract -v 0 --sequence 1

alfahami (Wed, 03 Nov 2021 17:56:03 GMT):
check your commit status on every org you've got by executing: peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name nameOfSmartCOntract -v 0 --sequence 1 Once defined and approved by both org, you need to commit your chaincode by running peer lifecycle chaincode commit .

alfahami (Wed, 03 Nov 2021 17:58:28 GMT):
.

alfahami (Wed, 03 Nov 2021 18:00:21 GMT):
Hi, Has anyone successfully run the commercial paper using java ? I've got an IllegalThreadException in all my transactions

hellipps (Wed, 03 Nov 2021 18:03:46 GMT):
Has joined the channel.

GeluUngur (Wed, 03 Nov 2021 19:36:52 GMT):
It's because the DOCKER_SOCK env variable is not properly set. I'll leave you a link from stackoverflow of my question. Someone explained exactly what was going, so maybe it'll help you find a solution: https://stackoverflow.com/questions/69686333/chaincode-deploying-fails-on-hyperledger-fabric

GeluUngur (Wed, 03 Nov 2021 19:37:39 GMT):
Found the problem. Apparently, I forgot to compile and install the chaincode into the peers.

jaysonr (Wed, 03 Nov 2021 21:55:15 GMT):
I did the commitreadiness

jaysonr (Wed, 03 Nov 2021 21:55:52 GMT):
peer lifecycle chaincode checkcommitreadiness --channelID $CHANNEL_NAME --name $CHAINCODE_NAME --version $CHAINCODE_VERSION --sequence $SEQUENCE --signature-policy "OR('Peer1MSP.peer','Peer2MSP.peer')" --output json

jaysonr (Wed, 03 Nov 2021 21:56:54 GMT):
and was able to see my peerMSP as true

cemmurphy (Wed, 03 Nov 2021 21:59:32 GMT):
Has joined the channel.

yianco (Wed, 03 Nov 2021 23:42:06 GMT):
In the Hyperledger Fabric test network, can I use RSA instead of ECSDA (for TLS)? If so, does anyone know how to configure the test network to use RSA?

yianco (Wed, 03 Nov 2021 23:42:06 GMT):
In the Hyperledger Fabric test network, can I use RSA instead of ECDSA (for TLS)? If so, does anyone know how to configure the test network to use RSA?

minsecprisoner (Thu, 04 Nov 2021 09:53:49 GMT):
Has joined the channel.

CarlosGarcia.Briones (Thu, 04 Nov 2021 10:26:27 GMT):
Has joined the channel.

yacovm (Thu, 04 Nov 2021 14:00:03 GMT):
@yianco you can use RSA for TLS

yacovm (Thu, 04 Nov 2021 14:00:22 GMT):
just use RSA certificates in TLS that's all you need

mafer_027 (Thu, 04 Nov 2021 15:38:06 GMT):
Has joined the channel.

yianco (Thu, 04 Nov 2021 15:54:12 GMT):
@yacovm Thanks for the reply. I'm looking to use RSA when spinning up the test network per the Fabric tutorial (https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html). I don't see anything that will allow me to define the specific encryption algorithm. Would I just bring up the test network with CAs (and not use the cryptogen tool)? Everything I see is certs as .pem and PKs as ECDSA...

brohamgoham (Thu, 04 Nov 2021 18:11:15 GMT):
Has joined the channel.

brohamgoham (Thu, 04 Nov 2021 18:11:15 GMT):
hello

dave.enyeart (Fri, 05 Nov 2021 02:46:15 GMT):
to update anchor peers, the config transaction must be submitted from the admin of the org that you are trying to update.

deathdealer007 (Fri, 05 Nov 2021 03:11:16 GMT):
Has joined the channel.

ksgr5566 (Fri, 05 Nov 2021 04:30:16 GMT):
Has joined the channel.

alvone01 (Fri, 05 Nov 2021 06:58:44 GMT):
Has joined the channel.

surabhi17 (Fri, 05 Nov 2021 08:45:59 GMT):
Has joined the channel.

tperes (Fri, 05 Nov 2021 10:56:14 GMT):
Has joined the channel.

yacovm (Fri, 05 Nov 2021 12:26:52 GMT):
Fabric tools generate everything ECDSA

yacovm (Fri, 05 Nov 2021 12:27:02 GMT):
but you can use your own certificates

Rigwarl (Fri, 05 Nov 2021 12:46:54 GMT):
Hi, everyone, how to commit a chaincode in the distribute system except transferring the TLS files. When I tried to commit the chaincode on one server, it showed 2021-11-05 12:28:48.028 UTC [chaincodeCmd] ClientWait -> INFO 04b txid [8280416920a9e6d0a0399a73d18c4b533613a3444c601671eea57eb3e0e77dda] committed with status (ENDORSEMENT_POLICY_FAILURE) at peer1.org1.example.com:7152 Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE)

Rigwarl (Fri, 05 Nov 2021 12:49:45 GMT):
Thanks, I found the error that the OrgID in configtx.yaml does not match the id in Policy in that file

Makabongwe (Fri, 05 Nov 2021 14:39:29 GMT):
Has joined the channel.

Ilikecodes (Fri, 05 Nov 2021 15:01:52 GMT):
1

elDanielain (Fri, 05 Nov 2021 15:59:55 GMT):
Has joined the channel.

elDanielain (Fri, 05 Nov 2021 16:02:49 GMT):
Hello. Something rare is happening to me: when I try to access an specific asset via chaincode I always get MVCC_READ_CONFLICT, altough no one else is accessing it. This only happens with this specific asset.

venzi (Fri, 05 Nov 2021 17:54:36 GMT):
Would anybody know how to check which Golang version a peer uses to compile the chaincode for the dev-peer container?

SySagar (Sun, 07 Nov 2021 04:25:26 GMT):
Has joined the channel.

suisingLai (Sun, 07 Nov 2021 14:07:21 GMT):
Has joined the channel.

ceejaymi (Sun, 07 Nov 2021 18:42:13 GMT):
Has joined the channel.

Ezzah 1 (Mon, 08 Nov 2021 01:10:36 GMT):
Has joined the channel.

Jangto (Mon, 08 Nov 2021 03:27:46 GMT):
Has joined the channel.

ffendt (Mon, 08 Nov 2021 06:19:33 GMT):
Has left the channel.

bardia (Mon, 08 Nov 2021 06:24:25 GMT):
How can I get the *password* *attempts* problem in golang? When I login 10 times unsuccessfully, I can no longer login 11 times with the correct specifications Gives the following message failed to enroll user: enroll failed: enroll failed: Response from server: Error Code: 73 - Incorrect password entered 10 times, max incorrect password limit of 10 reached

ThinhPhan (Mon, 08 Nov 2021 07:28:00 GMT):
Has joined the channel.

sristhiassudani (Mon, 08 Nov 2021 09:22:21 GMT):
Has joined the channel.

NSagar (Mon, 08 Nov 2021 12:25:57 GMT):
Has joined the channel.

NSagar (Mon, 08 Nov 2021 12:26:39 GMT):
Hey Everyone I have started with HL Fabric

NSagar (Mon, 08 Nov 2021 12:27:16 GMT):
Have got an error as "curl: (6) Could not resolve host: bit.ly"

NSagar (Mon, 08 Nov 2021 12:27:36 GMT):
Any idea how do we fix it ?

GergelyLengyel (Mon, 08 Nov 2021 16:03:12 GMT):
What is the purpose of the reenroll function in Fabric?

RyanJJones10 (Mon, 08 Nov 2021 17:13:45 GMT):
Has joined the channel.

shin1yama (Tue, 09 Nov 2021 07:02:16 GMT):
Has joined the channel.

shin1yama (Tue, 09 Nov 2021 07:07:46 GMT):
Hello. The TLS certificate for our environment has expired. I put the new TLS certificate in CA server, Order, Peer, but it is service unavailable. What else do I need to do?

LakshmiMurali (Tue, 09 Nov 2021 07:50:21 GMT):
Has joined the channel.

Aljone (Tue, 09 Nov 2021 15:58:35 GMT):
Has joined the channel.

rockson (Tue, 09 Nov 2021 17:02:09 GMT):
Has joined the channel.

rockson (Tue, 09 Nov 2021 17:04:00 GMT):
Hello all. Does the Hyperledger framework provide information about the operating system on which it is running and blockchain network info such as number of transactions or blocks being processed per unit time?

knguyenBC (Tue, 09 Nov 2021 17:17:59 GMT):
Has joined the channel.

ghastly (Tue, 09 Nov 2021 17:32:50 GMT):
Has joined the channel.

sdunstan (Tue, 09 Nov 2021 20:47:43 GMT):
Has joined the channel.

yianco (Tue, 09 Nov 2021 21:55:48 GMT):
I'm seeing that Fabric 2.x does NOT support RSA (and only ECDSA). Is that the case?

yianco (Tue, 09 Nov 2021 21:55:48 GMT):
@yacovm I'm seeing that Fabric 2.x does NOT support RSA (and only ECDSA). Is that the case?

yianco (Tue, 09 Nov 2021 21:56:01 GMT):
I'm seeing that Fabric 2.x does NOT support RSA (and only ECDSA). Is that the case?

LEOISHere (Wed, 10 Nov 2021 00:03:22 GMT):
Has joined the channel.

ffabregas (Wed, 10 Nov 2021 03:56:07 GMT):
Has joined the channel.

DeepromSomkiadcharoen (Wed, 10 Nov 2021 03:56:07 GMT):
Has joined the channel.

SySagar (Wed, 10 Nov 2021 05:08:04 GMT):
hey!can anyone help me in configuring the softSHM?

SySagar (Wed, 10 Nov 2021 05:18:21 GMT):
hey! can anyone help me in configuring the softshm?

conanoc (Wed, 10 Nov 2021 05:22:15 GMT):
Check this out: https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#reenrolling-an-identity

Luis_Manuel_Cortes_Tirado (Wed, 10 Nov 2021 07:51:55 GMT):
Good morning, I have an issue with Minifabric and I need to be able to resolve it. I have the following infrastructure generated on two different computers: --> Computer 1: - CA: "ca01.domain01.net" - Peer 1: "peer01.org01.domain01.net". - Peer 2: "peer02.org01.domain01.net" - Orderer: "ord-fabric01.domain01.net" --> Computer 2: - CA: "ca01.domain02.es" - Peer 1: "peer01.org02.domain02.es" - Peer 2: "peer02.org02.domain02.es" - Orderer: "ord-fabric01.domain02.es" I have joined both organisations by following tutorials such as the following: https://www.youtube.com/watch?v=c1Ab57IrgZg https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md When I finish, both organisations are joined correctly, but I start the "Hyperledger Explorer" tool and only the orderer of the first organisation appears and I need both orderers to appear. How can I make both orderers join the same channel? Thank you for your time and dedication.

yianco (Wed, 10 Nov 2021 15:34:37 GMT):
Has anyone had any success/know how to disable TLS in Fabric's test network (v2.x)? There's a nice article that shows how to do this in the old BYFN tutorial for Fabric v1.4, but it's not as intuitive in Fabric v2.x. I have updated .yaml files to set the TLS_ENABLED param to FALSE, and I have also updated various commands to omit the --tls flag, but nothing seems to work. I still get "refused connection" errors and I see CLI requests are being sent via https.

yianco (Wed, 10 Nov 2021 15:34:37 GMT):
Has anyone had any success/know how to disable TLS in Fabric's test network (v2.x)? There's a nice article that shows how to do this in the old BYFN tutorial for Fabric v1.4 (https://www.devprovider.com/hyperledger-fabric-tls-disabled/), but it's not as intuitive in Fabric v2.x. I have updated .yaml files to set the TLS_ENABLED param to FALSE, and I have also updated various commands to omit the --tls flag, but nothing seems to work. I still get "refused connection" errors and I see CLI requests are being sent via https.

yianco (Wed, 10 Nov 2021 15:34:37 GMT):
Has anyone had any success/know how to disable TLS in Fabric's test network (v2.x)? There's a nice article that shows how to do this in the old BYFN tutorial for Fabric v1.4 (https://www.devprovider.com/hyperledger-fabric-tls-disabled/), but it's not as intuitive in Fabric v2.x. I have updated .yaml files to set the TLS_ENABLED params to FALSE, and I have also updated various commands to omit the --tls flag, but nothing seems to work. I still get "refused connection" errors and I see CLI requests are being sent via https.

yianco (Wed, 10 Nov 2021 15:34:37 GMT):
Has anyone had any success/know how to disable TLS in Fabric's test network (v2.x)? There's a nice article that shows how to do this in the old BYFN tutorial for Fabric v1.4 (https://www.devprovider.com/hyperledger-fabric-tls-disabled/), but it's not as intuitive in Fabric v2.x. I have updated .yaml files to set the TLS_ENABLED params to FALSE, and I have also updated various commands to omit the --tls flag, but nothing seems to work. I still get "refused connection" errors, and I see CLI requests are being sent via https.

Strohhut (Wed, 10 Nov 2021 17:27:06 GMT):
Has joined the channel.

loziniak (Thu, 11 Nov 2021 00:32:27 GMT):
Has joined the channel.

ChangmingLiu (Thu, 11 Nov 2021 01:38:01 GMT):
Has joined the channel.

newbieTech (Thu, 11 Nov 2021 02:56:28 GMT):
Has joined the channel.

uguroney (Thu, 11 Nov 2021 08:38:29 GMT):
Has joined the channel.

rockson (Thu, 11 Nov 2021 09:12:54 GMT):
I had success in disabling TLS but it did not work for the RAFT consensus algorithm but it worked with KAFKA

Monavari (Thu, 11 Nov 2021 11:18:16 GMT):
Has joined the channel.

leostereo (Thu, 11 Nov 2021 13:42:39 GMT):
Has joined the channel.

anuj-kh (Thu, 11 Nov 2021 14:01:40 GMT):
Has joined the channel.

sebposselt (Thu, 11 Nov 2021 14:44:53 GMT):
Has joined the channel.

fab-10 (Thu, 11 Nov 2021 15:10:10 GMT):
Has joined the channel.

yianco (Thu, 11 Nov 2021 15:39:31 GMT):
Would you be able to provide some guidance on how to set that up?

yianco (Thu, 11 Nov 2021 15:39:31 GMT):
@rockson Would you be able to provide some guidance on how to set that up?

yianco (Thu, 11 Nov 2021 15:41:18 GMT):
I have set various *TLS_ENABLED configuration parameters to false, but I still get "connection refused" errors when running, e.g., `./network.sh createChannel`.

yianco (Thu, 11 Nov 2021 15:42:57 GMT):
Also, it looks like KAFKA is deprecated in Fabric v2.x...

rockson (Thu, 11 Nov 2021 16:42:42 GMT):
Yeah, when I was setting it up, I was told that KAFKA should only be used for development and testing. Are you setting up your blockchain on multiple hosts or on a single PC? I would be glad to help.

ArhangelSky999 (Thu, 11 Nov 2021 16:47:21 GMT):
Has joined the channel.

yianco (Thu, 11 Nov 2021 17:56:11 GMT):
Right on! I'm just setting it up in an Ubuntu 18 VM using the test network tutorial found here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

rockson (Thu, 11 Nov 2021 18:39:21 GMT):
My setup was with Fabric 2.1. Can you run the scripts again and send me a screenshot of the error so that I have a look?

yianco (Thu, 11 Nov 2021 19:02:22 GMT):
OK, cool. I'll get Fabric 2.1 running and send you screenshots of the error(s). Did you need to modify any of the configuration params in the .yaml file to run the ordering node with KAFKA?

rockson (Thu, 11 Nov 2021 19:21:24 GMT):
Yes. I had to modify the channel configuration files for it to work with the kafka ordering

rockson (Thu, 11 Nov 2021 19:22:06 GMT):
WHich Hyperledger version were you working with previously?

yianco (Thu, 11 Nov 2021 19:38:35 GMT):
v2.2 and v2.3.2

rockson (Thu, 11 Nov 2021 19:59:14 GMT):
I just downloaded and run v2.2.1 and realized that it doesn't use TLS by default. So please perform the experiment again and let's see a screenshot of the error.

yianco (Thu, 11 Nov 2021 20:01:21 GMT):
Ok, cool. Are you just pulling everything down like the following: `curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.1 1.5.2`

yianco (Thu, 11 Nov 2021 20:10:42 GMT):
and then running the network (from the `fabric-samples/test-network` dir) with `./network.sh up`

rockson (Thu, 11 Nov 2021 20:25:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=NmPn7vqPFDAwLNLkQ) Yeah but I guess mine was 2.2.1 1.4.9

rockson (Thu, 11 Nov 2021 20:26:10 GMT):
Could you share with me your error screen?

yianco (Thu, 11 Nov 2021 20:26:57 GMT):
Yeah, I'll get it spun up and see if it reproduces the error when I try to create a channel (e.g., with `./network.sh createChannel`).

yianco (Thu, 11 Nov 2021 20:30:31 GMT):
To clarify, I should be running 2.2.1, right? NOT 2.1...?

rockson (Thu, 11 Nov 2021 20:32:19 GMT):
Yeah because I just run 2.2.1

yianco (Thu, 11 Nov 2021 20:32:42 GMT):
Cool

yianco (Thu, 11 Nov 2021 21:00:00 GMT):

Clipboard - November 11, 2021 1:59 PM

yianco (Thu, 11 Nov 2021 21:01:21 GMT):
That's what I get after disabling TLS on all nodes (e.g., peer1, peer2, and orderer) in the docker-compose-test-net.yaml file and changing all instances of grpcs to grpc.

yianco (Thu, 11 Nov 2021 21:01:21 GMT):
That's what I get after disabling TLS on all nodes (e.g., peer1, peer2, and orderer) in the `docker-compose-test-net.yaml` file and changing all instances of grpcs to grpc.

rockson (Thu, 11 Nov 2021 21:04:42 GMT):
That means the orderer is either not running or running on a different port

rockson (Thu, 11 Nov 2021 21:05:58 GMT):
could you start the network and try "telnet localhost 7050"

yianco (Thu, 11 Nov 2021 21:09:16 GMT):
I get a "could not resolve..." error. Would http_proxy and https_proxy settings cause issues on the loopback interface?

rockson (Thu, 11 Nov 2021 21:09:24 GMT):

hlf connection.png

yianco (Thu, 11 Nov 2021 21:10:04 GMT):
yup, exactly the same

yianco (Thu, 11 Nov 2021 21:11:01 GMT):
If I set the TLS enabled params = true, things work as expected.

rockson (Thu, 11 Nov 2021 21:12:23 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=W5yEc34B4anQufBeu) I'm not sure but are you behind a proxy network? Since this is a single host host setup

yianco (Thu, 11 Nov 2021 21:12:40 GMT):
yeah i'm behind a corporate proxy

yianco (Thu, 11 Nov 2021 21:14:23 GMT):
Well, I'm running a VM on my host machine, but I NAT adapter going in my VM network settings with proxy settings in my guest Ubuntu VM.

yianco (Thu, 11 Nov 2021 21:14:23 GMT):
Well, I'm running a VM on my host machine, but I set up a NAT adapter in my VM network settings, along with proxy settings in my guest Ubuntu VM (e.g., https_proxy=).

yianco (Thu, 11 Nov 2021 21:14:30 GMT):
And I'm running Fabric in the Ubuntu VM.

rockson (Thu, 11 Nov 2021 21:17:48 GMT):
can you also start the network try "telnet 127.0.0.1 7051"

yianco (Thu, 11 Nov 2021 21:20:36 GMT):
``` fabric-samples/test-network$ telnet localhost 7051 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. @Connection closed by foreign host. ```

yianco (Thu, 11 Nov 2021 21:21:22 GMT):
but with 7050, see below:

yianco (Thu, 11 Nov 2021 21:21:29 GMT):
``` fabric-samples/test-network$ telnet localhost 7050 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused ```

yianco (Thu, 11 Nov 2021 21:22:01 GMT):
so with orderer on 7050, connection is refused, but not so to the peer on 7051...

yianco (Thu, 11 Nov 2021 21:22:30 GMT):
is that because it's a RAFT service?

yianco (Thu, 11 Nov 2021 21:22:42 GMT):
(and from what I understand, RAFT requires TLS)

rockson (Thu, 11 Nov 2021 21:28:18 GMT):
I don't think so

rockson (Thu, 11 Nov 2021 21:32:10 GMT):
The RAFT won't start with TLS enabled.

rockson (Thu, 11 Nov 2021 21:32:43 GMT):
Please check the binding address of the orderer and bind it to 127.0.0.1

yianco (Thu, 11 Nov 2021 21:34:40 GMT):
Can you clarify how I go about doing that?

yianco (Thu, 11 Nov 2021 21:35:41 GMT):
https://stackoverflow.com/a/59266294

yianco (Thu, 11 Nov 2021 21:35:52 GMT):
link above is regarding RAFT and TLS

rockson (Thu, 11 Nov 2021 21:39:13 GMT):
Yeah but could you please clarify your request?

yianco (Thu, 11 Nov 2021 21:39:55 GMT):
To bind the orderer to 127.0.0.1... Isn't that already handled in the docker-compose-test-net.yaml file?

rockson (Thu, 11 Nov 2021 21:40:07 GMT):
Let me check

yianco (Thu, 11 Nov 2021 21:44:31 GMT):
It's in `fabric-samples/config/orderer.yaml`

yianco (Thu, 11 Nov 2021 21:44:42 GMT):

Clipboard - November 11, 2021 2:44 PM

knichols (Thu, 11 Nov 2021 21:59:13 GMT):
Has joined the channel.

yianco (Thu, 11 Nov 2021 22:06:11 GMT):
and for what it's worth, my purpose is to be able to see comm across orderer/peers/cli in plain text

yianco (Thu, 11 Nov 2021 22:06:11 GMT):
and for what it's worth, my purpose is to be able to see comms across orderer/peers/cli in plain text

maurorambo (Fri, 12 Nov 2021 00:34:02 GMT):
Has joined the channel.

ChrisPaterson (Fri, 12 Nov 2021 02:35:32 GMT):
Has joined the channel.

rockson (Fri, 12 Nov 2021 06:56:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=zhdyFJN3y3QRQhk58) Sorry, bind it to 0.0.0.0 instead

sekinosekai (Fri, 12 Nov 2021 09:17:01 GMT):
Has joined the channel.

Makabongwe (Fri, 12 Nov 2021 10:16:48 GMT):
Hi there everyone:smiley:

Makabongwe (Fri, 12 Nov 2021 10:18:40 GMT):
Does anyone know how I can fix the following error?: cannot use s.DeleteAsset(APIstub, args) (type error) as type peer.Response in return argument. I am implementing a smart contract using golang but I'm getting that error when I'm trying to deploy.

MontassarNAGHMOUCHI (Fri, 12 Nov 2021 10:39:31 GMT):
Hi, I have deployed multiple smart contracts within the same chaincode. The idea is that I can invoke a function within SmartC1 in smartC2, any ideas on how to do it?

RomanBorisov (Fri, 12 Nov 2021 14:04:59 GMT):
Has joined the channel.

somaningp (Fri, 12 Nov 2021 14:29:25 GMT):
Has joined the channel.

somaningp (Fri, 12 Nov 2021 14:30:05 GMT):
vagrant@vagrant:test-network$ peer channel list 2021-11-12 14:24:56.097 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, specified path "/vagrant/F2P-Infrastructure/template/config/msp" does not exist or cannot be accessed: stat /vagrant/F2P-Infrastructure/template/config/msp: no such file or directory vagrant@vagrant:test-network$ ls /vagrant/F2P-Infrastructure/template/config/mspls: cannot access '/vagrant/F2P-Infrastructure/template/config/msp': No such file or directoryvagrant@vagrant:test-network$ ls /vagrant/F2P-Infrastructure/template/config/msp ls: cannot access '/vagrant/F2P-Infrastructure/template/config/msp': No such file or directory vagrant@vagrant:test-network$ cd /vagrant/F2P-Infrastructure/template/config/

somaningp (Fri, 12 Nov 2021 14:30:39 GMT):
Using peer 0 + peer channel create -o localhost:17050 -c farmtoplate-channel -f ./channel-artifacts/farmtoplate-channel.tx --outputBlock ./channel-artifacts/farmtoplate-channel.block --tls --cafile /vagrant/F2P-Infrastructure/template/test-network/organizations/ordererOrganizations/paramountsoft.net/orderers/orderer1.paramountsoft.net/tls/ca.crt + res=0 2021-11-12 14:24:24.278 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-11-12 14:24:24.389 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} 2021-11-12 14:24:24.419 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 2021-11-12 14:24:24.622 UTC [cli.common] readBlock -> INFO 004 Expect block, but got status: &{SERVICE_UNAVAILABLE} 2021-11-12 14:24:24.635 UTC [channelCmd] InitCmdFactory -> INFO 005 Endorser and orderer connections initialized 2021-11-12 14:24:24.840 UTC [cli.common] readBlock -> INFO 006 Expect block, but got status: &{SERVICE_UNAVAILABLE} 2021-11-12 14:24:24.851 UTC [channelCmd] InitCmdFactory -> INFO 007 Endorser and orderer connections initialized 2021-11-12 14:24:25.065 UTC [cli.common] readBlock -> INFO 008 Expect block, but got status: &{SERVICE_UNAVAILABLE} 2021-11-12 14:24:25.078 UTC [channelCmd] InitCmdFactory -> INFO 009 Endorser and orderer connections initialized 2021-11-12 14:24:25.282 UTC [cli.common] readBlock -> INFO 00a Expect block, but got status: &{SERVICE_UNAVAILABLE} 2021-11-12 14:24:25.292 UTC [channelCmd] InitCmdFactory -> INFO 00b Endorser and orderer connections initialized 2021-11-12 14:24:25.497 UTC [cli.common] readBlock -> INFO 00c Expect block, but got status: &{SERVICE_UNAVAILABLE} 2021-11-12 14:24:25.510 UTC [channelCmd] InitCmdFactory -> INFO 00d Endorser and orderer connections initialized 2021-11-12 14:24:25.724 UTC [cli.common] readBlock -> INFO 00e Received block: 0 Channel 'farmtoplate-channel' created Joining Manifacturers peer0 to the channel... Using organization Manifacturers Using peer 0 + peer channel join -b ./channel-artifacts/farmtoplate-channel.block + res=1 + peer channel join -b ./channel-artifacts/farmtoplate-channel.block nnel'

somaningp (Fri, 12 Nov 2021 14:31:10 GMT):
facing error while creating and joining the chanel, pls help

loziniak (Fri, 12 Nov 2021 15:39:11 GMT):
Has left the channel.

Andrewval (Fri, 12 Nov 2021 16:46:22 GMT):
Has joined the channel.

Andrewval (Fri, 12 Nov 2021 17:23:43 GMT):
Hello Everyone, what do you think about https://cryptozombies.io/? is it a great way be start learning about blockchain technology and coding?

ChheunPhearaeun (Fri, 12 Nov 2021 17:48:40 GMT):
Has joined the channel.

Gavimat (Fri, 12 Nov 2021 17:56:22 GMT):
Any tips on how to start developing Multi-Host networks? That's my next step to learn, so I'd appreciate any feedbacks on how to start. Thanks guys!

Clippo 3 (Fri, 12 Nov 2021 17:56:22 GMT):
Has joined the channel.

matt.nelson.csi (Fri, 12 Nov 2021 20:56:07 GMT):
Has joined the channel.

luoyu 1 (Fri, 12 Nov 2021 22:32:26 GMT):
Has joined the channel.

chandra100100 (Sat, 13 Nov 2021 06:58:25 GMT):
Has joined the channel.

Beshir (Sat, 13 Nov 2021 08:44:54 GMT):
Has joined the channel.

VladimirRadeski (Sat, 13 Nov 2021 09:32:26 GMT):
Has joined the channel.

manolaz (Sun, 14 Nov 2021 04:51:26 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Mon, 15 Nov 2021 07:21:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=mPMDzc8a56ZGjxhcv) https://kctheservant.medium.com/multi-host-deployment-for-first-network-hyperledger-fabric-v2-273b794ff3d

Luis_Manuel_Cortes_Tirado (Mon, 15 Nov 2021 07:21:55 GMT):
https://kctheservant.medium.com/multi-host-deployment-for-first-network-hyperledger-fabric-v2-273b794ff3d

xeon123 (Mon, 15 Nov 2021 08:54:54 GMT):
Has joined the channel.

Salt4f (Mon, 15 Nov 2021 09:46:53 GMT):
Has joined the channel.

ybuser (Mon, 15 Nov 2021 12:06:48 GMT):
Has joined the channel.

matijasipek (Mon, 15 Nov 2021 12:21:34 GMT):
Has joined the channel.

amit1nayak (Mon, 15 Nov 2021 12:33:31 GMT):
Has joined the channel.

RajaDhanushkodi (Mon, 15 Nov 2021 12:48:59 GMT):
Has joined the channel.

ritikbhandari (Mon, 15 Nov 2021 13:10:49 GMT):
hi everybody !! I am new to this open source world and would be grateful to seek guidance from u all

ritikbhandari (Mon, 15 Nov 2021 13:11:07 GMT):
can i know what are 'graduated projects'?

sidharthan.j (Mon, 15 Nov 2021 14:08:36 GMT):
Has joined the channel.

MarioMichel (Mon, 15 Nov 2021 14:19:46 GMT):
Has joined the channel.

matejstern (Mon, 15 Nov 2021 14:57:24 GMT):
Has joined the channel.

elenaizaguirre (Mon, 15 Nov 2021 15:54:06 GMT):
Has joined the channel.

tkuhrt (Mon, 15 Nov 2021 15:59:49 GMT):
This might be useful: https://tsc.hyperledger.org/project-lifecycle.html#graduated -- it are projects that have met the [incubation exit criteria](https://tsc.hyperledger.org/project-incubation-exit.html) and that have requested from the TSC to graduate.

matisalimba (Mon, 15 Nov 2021 17:24:38 GMT):
Has joined the channel.

RafaelAPB (Mon, 15 Nov 2021 18:06:28 GMT):
obtained the following error when attempting to perform a snapshot: Error: failed to retrieve snapshot client: snapshot client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded /opt/gopath/src/github.com/hyperledger/fabric/peer # ping peer0.org1.example.com:7051 Any ideas on how to solve this? Perhaps because we don't expose port 9944? https://github.com/hyperledger/cactus/commit/1a5edeae834bc275252e588379f214324977a3ff#diff-fcfac284e3cf9d1cc8e3d0de3beff271ab3594e9f7543baae3b3468471b9169b

RyanKoch (Mon, 15 Nov 2021 19:51:01 GMT):
Has joined the channel.

AlexTran (Mon, 15 Nov 2021 20:58:47 GMT):
Has joined the channel.

panicstyle (Tue, 16 Nov 2021 01:02:10 GMT):
Has joined the channel.

mamba2017 (Tue, 16 Nov 2021 02:24:05 GMT):
Has joined the channel.

PHAGUNJAIN (Tue, 16 Nov 2021 08:43:43 GMT):
Has joined the channel.

MiguelCabeza (Tue, 16 Nov 2021 10:17:07 GMT):
Has joined the channel.

Helsonkumar (Tue, 16 Nov 2021 13:49:35 GMT):
Has joined the channel.

xlswirlds (Tue, 16 Nov 2021 15:31:16 GMT):
Has joined the channel.

yianco (Tue, 16 Nov 2021 16:58:33 GMT):
(sorry for the delayed response) OK, I'll give that a shot. Also, Did you say 2.2.1 is running a Kafka-based ordering service by default?

yianco (Tue, 16 Nov 2021 16:59:34 GMT):
If not, do you 1) know of a 2.x instance that is, or 2) know how to easily make the configuration change in the test network to use Kafka (instead of RAFT)?

smannathan (Tue, 16 Nov 2021 17:11:28 GMT):
Has joined the channel.

antoniovassell (Tue, 16 Nov 2021 17:22:51 GMT):
Hey everyone, where is the best place to store network connection profiles? for eg are they usually stored in the repository, or stored in secrets and loaded as files?

rockson (Tue, 16 Nov 2021 21:52:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=hXdxWYFhbDysfYD3D) Yes I think I said 2.2.1 run kafka by default but please forgive me. I referred to a configuration which I may have mistakenly modified. The default is raft.

rockson (Tue, 16 Nov 2021 21:54:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=c9acNSF3x97Fp9aQD) I also wanted to achieve the same purpose and I succeeded in doing so with v 2.1.1 but using solo instead of kafka. Sorry for the misinformation.

rockson (Tue, 16 Nov 2021 21:55:43 GMT):

channel_config_file.png

yianco (Tue, 16 Nov 2021 21:56:38 GMT):
OK, no problem. So solo with 2.1.1 is the way to go?

yianco (Tue, 16 Nov 2021 21:57:02 GMT):
I appreciate all the help!

rockson (Tue, 16 Nov 2021 21:57:43 GMT):
Yes it worked for me. You're welcome.

rockson (Tue, 16 Nov 2021 21:58:02 GMT):
If I may ask, are you involved in any academic research of some sort?

yianco (Tue, 16 Nov 2021 22:12:59 GMT):
No, I'm just doing some self-study on Fabric. I'm new to the field.

hegde.rahul (Wed, 17 Nov 2021 01:20:10 GMT):
Has joined the channel.

Bert (Wed, 17 Nov 2021 01:53:41 GMT):
Has joined the channel.

Bert (Wed, 17 Nov 2021 01:55:14 GMT):
TRANSIENT_FAILURE

Bert (Wed, 17 Nov 2021 02:01:12 GMT):
Hi everybody!

Bert (Wed, 17 Nov 2021 02:11:07 GMT):
I’m developing fabric-based applications using fabric-idk-go and Goland. In addition, I used two computers to build a network of fabric. But when I want to write a config file called 'config.yaml' to connect my fabric network, it works wrong. And I used debug function finding that the developing envir

Bert (Wed, 17 Nov 2021 02:17:33 GMT):

Clipboard - 2021年11月17日上午10点16分

Bert (Wed, 17 Nov 2021 02:19:20 GMT):
Hi everybody! I’m developing fabric-based applications using fabric-idk-go and Goland. In addition, I used two computers to build a network of fabric. But when I want to write a config file called 'config.yaml' to connect my fabric network, it works wrong. And I used debug function finding that the developing environment can't connect to my fabric network. It shows errors like this: 'create channel failed: create channel failed: SendEnvelope failing orderer 'localhost:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7050]: connection is in TRANSIENT_FAILURE'. And debug show like above. Any ideas on how to solve this? Think guys!

Bert (Wed, 17 Nov 2021 03:05:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=TQavuKDtxGDXqisXE) Thanks everyone!

Bert (Wed, 17 Nov 2021 06:26:46 GMT):
Hi, everybody! I'm very happy to find this forum/community that members can discuss some questions about doubt of study. Emmm……I study the fabric and how to develop the related applications based on fabric and go. I want to know you how to use your development environment such as Goland to connect to our fabric network? Thanks guys!

Bert (Wed, 17 Nov 2021 06:28:14 GMT):
guys, please help me, thanks!

Bert (Wed, 17 Nov 2021 08:24:03 GMT):
I'm so sad that i meet a familiar question when I use config.yaml that I wrote to connect to the fabric network.

Bert (Wed, 17 Nov 2021 08:31:04 GMT):
Oh, no. I meet familiar error too. I write a config.yaml to connect to my local fabric network based on fabric-sdk-go. I want to test it with creating a new channel. But it fails with `create channel failed: create channel failed: SendEnvelope failing orderer 'localhost:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7050]: connection is in TRANSIENT_FAILURE`.

Bert (Wed, 17 Nov 2021 08:35:56 GMT):
about your error, I think you can check your firewall and transport. In addition, you may delete your docker dangling images if you use docker.

Arjen (Wed, 17 Nov 2021 09:23:29 GMT):
Has joined the channel.

navachaitanya (Wed, 17 Nov 2021 10:15:41 GMT):
Has joined the channel.

navachaitanya (Wed, 17 Nov 2021 10:15:41 GMT):
Hi Guys, I have question in Hyperledger Fabric network with 2-Orgs and 1 peer each and my block height is 500k and I want to add another peer for my Org1 and now my question is if I add a new peer and make that new peer as anchor peer, will there is any issue for the transaction during the blocks sync with new peer.

navachaitanya (Wed, 17 Nov 2021 10:15:41 GMT):
Hi Guys, I have a question in Hyperledger Fabric network with 2-Orgs and 1 peer each and my block height is 500k and I want to add another peer for my Org1 and now my question is if I add a new peer and make that new peer as anchor peer, will there is any issue for the transaction during the blocks sync with new peer and existing peer?

navachaitanya (Wed, 17 Nov 2021 10:15:41 GMT):
Hi Guys, I have a question in Hyperledger Fabric network with 2-Orgs and 1 peer each and my block height is 500k and I want to add another peer for my Org1 and now my question is if I add a new peer and make that new peer as anchor peer, will there be any issues for the transaction during the blocks sync with new peer and existing peer? Fabric Version is 1.4.9

Bert (Wed, 17 Nov 2021 12:33:04 GMT):
my fabric version is 2.0.0

beeraaron81 (Wed, 17 Nov 2021 13:01:11 GMT):
Has joined the channel.

samsonlarsson (Wed, 17 Nov 2021 14:02:08 GMT):
Has joined the channel.

EmilioFL (Wed, 17 Nov 2021 22:13:16 GMT):
Has joined the channel.

EmilioFL (Wed, 17 Nov 2021 22:22:27 GMT):
Hi everybody, I need help and hope find here.. I need deliver a final paper at 12/05, this paper is about a Hyperledger Fabric, but i have some troubles and I can't go forward . Someone can help me. My comunication in english not is so good, sorry...

Bert (Thu, 18 Nov 2021 01:58:09 GMT):
I feel the forum / community is not good because members of that is few.

xujiaming (Thu, 18 Nov 2021 05:29:54 GMT):
Has joined the channel.

xujiaming (Thu, 18 Nov 2021 05:29:55 GMT):
So what is the trouble you have

joymondal (Thu, 18 Nov 2021 10:34:15 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Thu, 18 Nov 2021 12:44:52 GMT):
Hello, I'm trying to edit the file ORG1MSPanchors.tx, so I've executed the following commands: -> configtxlator proto_decode --input ./channel-artifacts/ORG1MSPanchors.tx --type common.Envelope >channel-artifacts/ORG1MSPanchors.json -> nano channel-artifacts/ORG1MSPanchors.json -> configtxlator proto_encode --input ./channel-artifacts/ORG1MSPanchors.json --type common.Envelope >./channel-artifacts/ORG1MSPanchors.tx But the changes are not made in ORG1MSPanchors.tx. Does anyone know why this might be? Thanks...

ArneGebert (Thu, 18 Nov 2021 14:31:05 GMT):
Has joined the channel.

beeraaron81 (Thu, 18 Nov 2021 15:01:31 GMT):
Hello Everyone! I have a serious Issue with getting my Fabric Network with a TLS Chain of Trust of multiple Fabric CA Servers to work. I already spent close to 2 Months trying to figure out a solution, so any help would be very much needed! :blush: Here is my GitHub Issue describing my Problem and all the Files needed: https://github.com/hyperledger/fabric-ca/issues/266 Thank you very much in advance!!! :star2:

ayushraj8271 (Thu, 18 Nov 2021 15:52:47 GMT):
Has joined the channel.

hitesh.sharma.06 (Thu, 18 Nov 2021 17:03:45 GMT):
Has joined the channel.

AshokkumarMdx (Thu, 18 Nov 2021 17:46:21 GMT):
Has joined the channel.

Adyntec (Thu, 18 Nov 2021 20:09:37 GMT):
Has joined the channel.

SanjayRS (Fri, 19 Nov 2021 07:44:05 GMT):
Has joined the channel.

maciej_ol (Fri, 19 Nov 2021 10:41:31 GMT):
Has joined the channel.

maciej_ol (Fri, 19 Nov 2021 10:42:37 GMT):
hi, I got a question about fabric peer deployment - is there a way to avoid docker.sock requirement?

maciej_ol (Fri, 19 Nov 2021 10:42:37 GMT):
hi, I got a question about fabric peer deployment using provided docker images - is there a way to avoid docker.sock requirement or is it hardcoded?

Gavimat (Fri, 19 Nov 2021 11:45:24 GMT):
Hey guys! I've managed to develop a single-host blockchain network with 2 Orgs, with 2 Peers each and 1 Orderer. My next step would be to go to production environment. I don't want to add dynamicity on my network right now, I just wanted to deploy the network in cloud and work with it by developing a web user-friendly interface. To start, I'd like to be able to invoke transactions and query only. Any tips on how to start doing it?

bondasoup (Fri, 19 Nov 2021 12:43:12 GMT):
Has joined the channel.

davidfdr (Fri, 19 Nov 2021 13:04:00 GMT):
Hello guys. I´am trying build HLF latest (2.4) from scratch and setting up the contributor environment. I am facing some issues (maybe due to my lack of knowledge). Help wold be appreciated: Let´s go to the erros: 1 - https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html - Running make basic-checks integration-test-prereqs fails with following: GOBIN=/vagrant/go/src/github.com/hyperledger/davidfdr/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.4.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=a1c13d8ac -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer --- docs/source/commands/peerversion.md 2021-11-19 10:38:16.590501500 +0000 +++ /tmp/peer_version_preamble.md.QAYxg 2021-11-19 11:04:54.085324993 +0000 @@ -26,13 +26,7 @@ ## peer version ``` -Print current version of the fabric peer server. - -Usage: - peer version [flags] - -Flags: - -h, --help help for version +scripts/help_docs.sh: line 35: build/bin/peer: Permission denied ``` 2 - So. I try to build directly anyway with : make dist-clean all Checking with goimports Checking with gofumpt Checking for golang.org/x/net/context Checking for github.com/gogo/protobuf Checking with go vet Checking with staticcheck METRICS: Checking for outdated reference documentation.. ./scripts/metrics_doc.sh check Building github.com/go-swagger/go-swagger/cmd/swagger -> swagger SWAGGER: Checking for outdated swagger... ./scripts/swagger.sh check ./scripts/swagger.sh: line 13: /vagrant/go/bin/swagger: Permission denied make: *** [Makefile:204: check-swagger] Error 126 vagrant@vagrant:/vagrant/go/src/github.com/hyperledger/davidfdr/fabric$ I try to look inside the scripts and I was unable to debug the error. Running on release-2.3 branch everything works ok.

davidfdr (Fri, 19 Nov 2021 13:04:00 GMT):
Hello guys. I´am trying build HLF latest (2.4) from scratch and setting up the contributor environment. I am facing some issues (maybe due to my lack of knowledge). Help wold be appreciated: Let´s go to the erros: 1 - https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html - Running make basic-checks integration-test-prereqs fails with following: GOBIN=/vagrant/go/src/github.com/hyperledger/davidfdr/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.4.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=a1c13d8ac -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer --- docs/source/commands/peerversion.md 2021-11-19 10:38:16.590501500 +0000 +++ /tmp/peer_version_preamble.md.QAYxg 2021-11-19 11:04:54.085324993 +0000 @@ -26,13 +26,7 @@ ## peer version ``` -Print current version of the fabric peer server. - -Usage: - peer version [flags] - -Flags: - -h, --help help for version +scripts/help_docs.sh: line 35: build/bin/peer: Permission denied ``` The command line help docs are out of date and need to be regenerated make: *** [Makefile:121: check-help-docs] Error 2 2 - So. I try to build directly anyway with : make dist-clean all Checking with goimports Checking with gofumpt Checking for golang.org/x/net/context Checking for github.com/gogo/protobuf Checking with go vet Checking with staticcheck METRICS: Checking for outdated reference documentation.. ./scripts/metrics_doc.sh check Building github.com/go-swagger/go-swagger/cmd/swagger -> swagger SWAGGER: Checking for outdated swagger... ./scripts/swagger.sh check ./scripts/swagger.sh: line 13: /vagrant/go/bin/swagger: Permission denied make: *** [Makefile:204: check-swagger] Error 126 vagrant@vagrant:/vagrant/go/src/github.com/hyperledger/davidfdr/fabric$ I try to look inside the scripts and I was unable to debug the error. Running on release-2.3 branch everything works ok.

davidfdr (Fri, 19 Nov 2021 13:04:00 GMT):
Hello guys. I´am trying build HLF latest (2.4) from scratch and setting up the contributor environment. I am facing some issues (maybe due to my lack of knowledge). Help would be appreciated: Let´s go to the erros: 1 - https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html - Running make basic-checks integration-test-prereqs fails with following: GOBIN=/vagrant/go/src/github.com/hyperledger/davidfdr/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.4.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=a1c13d8ac -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer --- docs/source/commands/peerversion.md 2021-11-19 10:38:16.590501500 +0000 +++ /tmp/peer_version_preamble.md.QAYxg 2021-11-19 11:04:54.085324993 +0000 @@ -26,13 +26,7 @@ ## peer version ``` -Print current version of the fabric peer server. - -Usage: - peer version [flags] - -Flags: - -h, --help help for version +scripts/help_docs.sh: line 35: build/bin/peer: Permission denied ``` The command line help docs are out of date and need to be regenerated make: *** [Makefile:121: check-help-docs] Error 2 2 - So. I try to build directly anyway with : make dist-clean all Checking with goimports Checking with gofumpt Checking for golang.org/x/net/context Checking for github.com/gogo/protobuf Checking with go vet Checking with staticcheck METRICS: Checking for outdated reference documentation.. ./scripts/metrics_doc.sh check Building github.com/go-swagger/go-swagger/cmd/swagger -> swagger SWAGGER: Checking for outdated swagger... ./scripts/swagger.sh check ./scripts/swagger.sh: line 13: /vagrant/go/bin/swagger: Permission denied make: *** [Makefile:204: check-swagger] Error 126 vagrant@vagrant:/vagrant/go/src/github.com/hyperledger/davidfdr/fabric$ I try to look inside the scripts and I was unable to debug the error. Running on release-2.3 branch everything works ok.u

davidfdr (Fri, 19 Nov 2021 13:04:00 GMT):
Hello guys. I´am trying build HLF latest (2.4) from scratch and setting up the contributor environment. I am facing some issues (maybe due to my lack of knowledge). Help would be appreciated: Let´s go to the erros: 1 - https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html - Running make basic-checks integration-test-prereqs fails with following: GOBIN=/vagrant/go/src/github.com/hyperledger/davidfdr/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.4.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=a1c13d8ac -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer --- docs/source/commands/peerversion.md 2021-11-19 10:38:16.590501500 +0000 +++ /tmp/peer_version_preamble.md.QAYxg 2021-11-19 11:04:54.085324993 +0000 @@ -26,13 +26,7 @@ ## peer version ``` -Print current version of the fabric peer server. - -Usage: - peer version [flags] - -Flags: - -h, --help help for version +scripts/help_docs.sh: line 35: build/bin/peer: Permission denied ``` The command line help docs are out of date and need to be regenerated make: *** [Makefile:121: check-help-docs] Error 2 2 - So. I try to build directly anyway with : make dist-clean all Checking with goimports Checking with gofumpt Checking for golang.org/x/net/context Checking for github.com/gogo/protobuf Checking with go vet Checking with staticcheck METRICS: Checking for outdated reference documentation.. ./scripts/metrics_doc.sh check Building github.com/go-swagger/go-swagger/cmd/swagger -> swagger SWAGGER: Checking for outdated swagger... ./scripts/swagger.sh check ./scripts/swagger.sh: line 13: /vagrant/go/bin/swagger: Permission denied make: *** [Makefile:204: check-swagger] Error 126 vagrant@vagrant:/vagrant/go/src/github.com/hyperledger/davidfdr/fabric$ I try to look inside the scripts and I was unable to debug the error. Running on release-2.3 branch everything works ok.

Tim98390383 (Fri, 19 Nov 2021 20:53:22 GMT):
Has joined the channel.

uvdsl (Fri, 19 Nov 2021 22:24:46 GMT):
Has joined the channel.

Kanishk-Kumar24 (Sat, 20 Nov 2021 05:45:20 GMT):
Has joined the channel.

lonis (Sat, 20 Nov 2021 18:09:02 GMT):
Has joined the channel.

danilp (Sat, 20 Nov 2021 18:16:13 GMT):
Hey everyone. How can I call a Fabric Smart Contract functions from a python script?

barankilic (Sun, 21 Nov 2021 15:01:18 GMT):
I have never used the Python SDK, so I am not familiar with it, but I found a tutorial: https://github.com/hyperledger/fabric-sdk-py/blob/master/Tutorial.ipynb

barankilic (Sun, 21 Nov 2021 15:02:35 GMT):
At the end of it, there are `chaincode_invoke` and `chaincode_query` functions as examples.

knagware9 (Mon, 22 Nov 2021 04:12:14 GMT):
@navachaitanya NO issue if your new peer is not part of endorsment policy , during edorsment if this new peer's endorsment required then it endorsment will fail during block sync

knagware9 (Mon, 22 Nov 2021 04:13:07 GMT):
@EmilioFL Let me know what help u needed, happy to help

ShumanCapote (Mon, 22 Nov 2021 05:12:12 GMT):
Has joined the channel.

ThomasRitter (Mon, 22 Nov 2021 05:28:23 GMT):
Has joined the channel.

ThomasRitter (Mon, 22 Nov 2021 05:59:51 GMT):
Hello All, Hope you all doing well and thank you for your contributions to open source projects like this. It is refreshing to see a community of people dedicated to creating solutions that drive a lasting impact in our world. Currently, we're working with a College of Engineering at a University within the State of Florida's University System to build a prototype that has the capability to enable a user to elect to receive their Government benefits via their preferred currency (Ideally a CBDC). We have a specific use case in mind based off our team's experience building applications for this Government entity and are exploring building some of this in Hyperledger Fabric. If possible or if the relevant parties are receptive, we're hoping to get an idea of some of the existing projects that it might make sense for us to collaborate with. What is recommended to teams like ours that are seeking to explore collaboration with Hyperledger communities?

saurabhSAG (Mon, 22 Nov 2021 08:31:14 GMT):
Has joined the channel.

saurabhSAG (Mon, 22 Nov 2021 08:34:09 GMT):
Hello all, can someone please share the link to the Fabric console that was announced to be open sourced in June? https://www.ibm.com/blogs/blockchain/2021/06/reinforcing-ibms-commitment-to-open-source-hyperledger-fabric/ I looked around and could not find a link to it.

Sharonmunyao (Mon, 22 Nov 2021 09:46:40 GMT):
Has joined the channel.

Bert (Mon, 22 Nov 2021 10:20:33 GMT):
Thanks, I have addressed it with two days.

Bert (Mon, 22 Nov 2021 10:21:11 GMT):
Me too.

Bert (Mon, 22 Nov 2021 10:22:19 GMT):
Oh, I have addressed it with two days.

Bert (Mon, 22 Nov 2021 10:35:55 GMT):
I browse your description of problem. I wrote a config file called 'config.yaml' to let development env connect to my multiple pc network. If your Fabric CA work normally, I think it will success, but it doesn't rule out that your network config or other env have some subtle errors.

Joesv (Mon, 22 Nov 2021 16:24:44 GMT):
Has joined the channel.

krishnabayanna (Mon, 22 Nov 2021 17:14:52 GMT):
Has joined the channel.

krishnabayanna (Mon, 22 Nov 2021 17:16:57 GMT):
I am getting this error for "Vault status" command : $ vault status Error checking seal status: Get "https://127.0.0.1:8200/v1/sys/seal-status": http: server gave HTTP response to HTTPS client

krishnabayanna (Mon, 22 Nov 2021 17:17:58 GMT):
I am running this on Windows 10 , I am able to run "http://localhost:8200" and login successfully with root Key.

krishnabayanna (Mon, 22 Nov 2021 17:19:26 GMT):
What config changes are required to run Vault web page in https mode ?

krishnabayanna (Mon, 22 Nov 2021 17:24:59 GMT):
All commands are in Admin Mode , running Docker tool box : Server: Docker Engine - Community Engine: Version: 19.03.12 API version: 1.40 (minimum version 1.12) Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:49:35 2020 OS/Arch: linux/amd64

TheoKneen (Mon, 22 Nov 2021 17:25:27 GMT):
Has joined the channel.

krishnabayanna (Mon, 22 Nov 2021 17:28:52 GMT):
I am able to build successfully the hyprlogic image. However when I run the Docker run command : C:\Users\Administrator\project\blockchain-automation-framework>docker run -it -v /blockchain-automation-framework:/home/blockchain-automation-framework/ hyperledgerlabs/baf-build I am getting error message : standard_init_linux.go:211: exec user process caused "no such file or directory" Please let me know , what the reason for error message.

RobinBeltran (Mon, 22 Nov 2021 18:49:35 GMT):
Has joined the channel.

jfbourque (Mon, 22 Nov 2021 19:18:55 GMT):
Has joined the channel.

LeonQiao (Tue, 23 Nov 2021 02:08:26 GMT):
Has joined the channel.

bjwswangmail (Tue, 23 Nov 2021 03:24:15 GMT):
Has joined the channel.

g.mishra-blockgemini (Tue, 23 Nov 2021 05:21:26 GMT):
Has joined the channel.

g.mishra-blockgemini (Tue, 23 Nov 2021 05:21:32 GMT):
Hi

g.mishra-blockgemini (Tue, 23 Nov 2021 05:23:56 GMT):
I am trying to perform tls certificate rotation or orderer in a RAFT based network. I am able to perform certificate rotation for byfn-sys-channel for 3 orderers out of 5. While performing for the 4th Orderer I am getting below error

g.mishra-blockgemini (Tue, 23 Nov 2021 05:23:56 GMT):
I am trying to perform tls certificate rotation or orderer in a RAFT based network. I am able to perform certificate rotation for byfn-sys-channel for 3 orderers out of 5. While performing for the 4th Orderer I am getting below error : *2021-11-23 05:08:44.040 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader* Awaiting for response

beeraaron81 (Tue, 23 Nov 2021 07:23:12 GMT):
Thank you for your answer! It seems that you might have slightly missunderstood my problem. I have a full Fabric-Network up and running. You can even look into it and deploy it yourself: https://github.com/aaronbeer81/fabric-network

beeraaron81 (Tue, 23 Nov 2021 07:25:56 GMT):
I know that my problems come from the realm of the FabricCA's and the TLS Certificates generated by them. I just don't quite know where. And thats where you could help me: Pointing out what I am doing wrong with my FabricCA's and/or the TLS Certificates. Thank you for your help!

Prasad8 2 (Tue, 23 Nov 2021 08:58:22 GMT):
Has joined the channel.

cbfh (Tue, 23 Nov 2021 10:11:29 GMT):
Has joined the channel.

cbfh (Tue, 23 Nov 2021 10:29:34 GMT):
Hi, when invoking chaincode from a python application, would using the python SDK be a better option than directly calling shell commands?

GoreTushar (Tue, 23 Nov 2021 11:24:47 GMT):
Has joined the channel.

skenaja (Tue, 23 Nov 2021 11:56:45 GMT):
Has joined the channel.

jyoti.patel (Tue, 23 Nov 2021 15:31:25 GMT):
Has joined the channel.

anipaul2 (Tue, 23 Nov 2021 19:08:23 GMT):
Has joined the channel.

dantetti (Tue, 23 Nov 2021 23:55:00 GMT):
Has joined the channel.

hacke (Wed, 24 Nov 2021 07:34:00 GMT):
Has joined the channel.

g.mishra-blockgemini (Wed, 24 Nov 2021 08:58:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=7fPjo84zeqiRFe2Nx) Awaiting for response

KurosakiIchigo (Wed, 24 Nov 2021 09:14:58 GMT):
Has joined the channel.

Kmm 4 (Wed, 24 Nov 2021 13:49:10 GMT):
Has joined the channel.

ShengChillie (Wed, 24 Nov 2021 14:05:45 GMT):
Has joined the channel.

john.h.o.mantaring (Wed, 24 Nov 2021 15:02:17 GMT):
Has joined the channel.

FrancescoMemola (Wed, 24 Nov 2021 17:28:50 GMT):

image_2021-11-24_18-27-52.png

shinnosuke.sonoda (Thu, 25 Nov 2021 01:12:32 GMT):
Has joined the channel.

RitikaKakkar (Thu, 25 Nov 2021 04:53:49 GMT):
Has joined the channel.

abhisheksavaliya (Thu, 25 Nov 2021 06:03:02 GMT):
Has joined the channel.

berserkr (Thu, 25 Nov 2021 07:45:13 GMT):
Has joined the channel.

berserkr (Thu, 25 Nov 2021 07:45:13 GMT):
Hi all, quick question. Do committers re-execute the transaction before committing or do they simply check endoresment data?

berserkr (Thu, 25 Nov 2021 07:45:20 GMT):
I am talking about 2.3+

berserkr (Thu, 25 Nov 2021 07:46:31 GMT):
Yes... always use the sdk

kosarlatif (Thu, 25 Nov 2021 08:38:57 GMT):
Hi

kosarlatif (Thu, 25 Nov 2021 08:38:57 GMT):
do we have functionality similar to ctx.stub.getHistoryForKeyWithPagination() as we have one for ctx.stub.getQueryResultWithPagination ?

Haniff (Thu, 25 Nov 2021 09:33:10 GMT):
Has joined the channel.

gurkhaman (Thu, 25 Nov 2021 11:02:06 GMT):
Has joined the channel.

gurkhaman (Thu, 25 Nov 2021 11:03:17 GMT):
I have made some changes to the fabric source code and is built locally. How do I direct the SDK to the local custom version of fabric? Is it possible to do so? Thank you!

neves 2 (Thu, 25 Nov 2021 11:19:29 GMT):
Has joined the channel.

AvinashSingh2 (Thu, 25 Nov 2021 11:46:51 GMT):
Has joined the channel.

AvinashSingh2 (Thu, 25 Nov 2021 11:46:52 GMT):
Hi all, I am using golang fabric sdk for creating the fabric client to invoke the chaincode. I am trying to use the signing identity while creating the client. I am not using any external Sign or Verify function, I want to create the signing identity by passing the mspid, private key and x509. What is understand from the fabric go SDK is, I need to implement all the interface in SigningIdentity and Identifier. I am taking the help from this link https://medium.com/kompitech/hyperledger-fabric-sdk-go-with-vault-transit-engine-8b3dcaedd63d which uses hashicorp vault for signing. Is there any implementation already being done or any simple way to achieve this task. Please provide some example and any references. I want to use this functionality `sdk, err := fabsdk.New(config.FromFile(configPath), fabsdk.WithCorePkg(core)) channelContext := sdk.ChannelContext(channelName, fabsdk.WithOrg(mspid), fabsdk.WithIdentity(signingIdentity)) ` @mastersingh24 please help me out.

AvinashSingh2 (Thu, 25 Nov 2021 11:46:52 GMT):
Hi all, I am using golang fabric sdk for creating the fabric client to invoke the chaincode. I am trying to use the signing identity while creating the client. I am not using any external Sign or Verify function, I want to create the signing identity by passing the mspid, private key and x509. What is understand from the fabric go SDK is, I need to implement all the interface in SigningIdentity and Identifier. I am taking the help from this link https://medium.com/kompitech/hyperledger-fabric-sdk-go-with-vault-transit-engine-8b3dcaedd63d which uses hashicorp vault for signing. Is there any implementation already being done or any simple way to achieve this task. Please provide some example and any references. I want to use this functionality `sdk, err := fabsdk.New(config.FromFile(configPath), fabsdk.WithCorePkg(core)) channelContext := sdk.ChannelContext(channelName, fabsdk.WithOrg(mspid), fabsdk.WithIdentity(signingIdentity))` @mastersingh24 please help me out.

deetho (Thu, 25 Nov 2021 11:49:03 GMT):
Has joined the channel.

atsveloso (Thu, 25 Nov 2021 12:08:49 GMT):
Has joined the channel.

zhengxilong (Thu, 25 Nov 2021 12:21:09 GMT):
Has joined the channel.

zhengxilong (Thu, 25 Nov 2021 12:22:21 GMT):
https://github.com/hyperledger-labs/fabric-operations-console

canenas (Thu, 25 Nov 2021 13:21:22 GMT):
Hi all, I'm trying to understand if I can setup fabric gatway as a service on it's own running on top of a fabric 2.2 network, or do I need to upgrade to 2.4 and setup a peer node as the "gateway" server. Thanks.

davidkel (Thu, 25 Nov 2021 14:11:21 GMT):
Although not tested, it may be possible to add a 2.4 peer to your existing 2.2 network to act as a gateway peer.

davidkel (Thu, 25 Nov 2021 14:11:21 GMT):
Although not tested, it should be possible to add a 2.4 peer to your existing 2.2 network to act as a gateway peer.

davidkel (Thu, 25 Nov 2021 14:11:21 GMT):
Although not tested, it should be possible to add a 2.4 peer to your existing 2.2 network to act as a gateway peer, but as this isn't tested there could always be some unexpected edge cases

canenas (Thu, 25 Nov 2021 14:35:36 GMT):
Thanks @davidkel Is gateway only available on 2.4 beta or i can get away with 2.3?

ap13 (Thu, 25 Nov 2021 15:28:50 GMT):
Has joined the channel.

ap13 (Thu, 25 Nov 2021 15:37:14 GMT):
Hi all, I can not figure out how to solve this problem, my setup is a single org with fabric-ca with tls enabled, a single peer and a n orderer. I registered and enrolled an admin using fabric-ca, and registered and enrolled the orderer and the peer with the tls admin cert generated before. Once the orderer starts it crash with the following message: `Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: CA Certificate did not have the CA attribute, (SN: 67fa9547978e2bdda72ea1fb13a20ccc1e30e13b)`. I probably misunderstand so please help me

krishna2752 (Thu, 25 Nov 2021 15:40:15 GMT):
Has joined the channel.

krishna2752 (Thu, 25 Nov 2021 15:47:54 GMT):
Hello all, I have just begun setting up the Hyperledger Fabric test network and have run the curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9 command as per the tutorial in the docs followed by ./network.sh up createChannel. However, the next command ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript -ccl javascript to install and deploy the chaincode is giving me a timed out error as 'Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction: : error sending: timeout expired while executing transaction.' This happens following peer lifecycle chaincode install basic.tar.gz. I have tried removing Hyperledger fabric entirely and starting again but the error still persists. I am running on Ubuntu version 20.04. Please help me proceed.

davidkel (Thu, 25 Nov 2021 16:39:46 GMT):
gateway peer is coming in 2.4. It is available in the 2.4 beta but you would have to use the equivalent beta thin client as well to work with it. 2.4 official release should be coming soon

davidkel (Thu, 25 Nov 2021 16:39:46 GMT):
gateway peer is coming in 2.4. It is available in the 2.4 beta (it's not in 2.3) but you would have to use the equivalent beta thin client as well to work with it. 2.4 official release should be coming soon

Gavimat (Thu, 25 Nov 2021 17:00:49 GMT):
Hey guys! I've managed to develop a single-host blockchain network with 2 Orgs, with 2 Peers each and 1 Orderer. My next step would be to go to production environment. I don't want to add dynamicity on my network right now, I just wanted to deploy the network in cloud and work with it by developing a web user-friendly interface. To start, I'd like to be able to invoke transactions and query only. Any tips on how to start doing it?

Gavimat (Thu, 25 Nov 2021 17:01:26 GMT):
Should I try to use Azure services?

Gavimat (Thu, 25 Nov 2021 17:04:13 GMT):
To be more clear: I want to deploy this network on cloud and try to work with the network by using UIs that we are going to develop using Node.js. So my question is: how could I run a HF network on cloud?

SiddharthGupta (Fri, 26 Nov 2021 01:13:46 GMT):
Has joined the channel.

SiddharthGupta (Fri, 26 Nov 2021 01:14:41 GMT):
Hii Guys,

SiddharthGupta (Fri, 26 Nov 2021 01:16:26 GMT):
I have one query, regarding unit testing of chaincode. Which is the best framework for testing, we can use in golang to test our chaincode.

csum112 (Fri, 26 Nov 2021 08:20:05 GMT):
Has joined the channel.

Kayaba.Keita (Fri, 26 Nov 2021 10:38:47 GMT):
Has joined the channel.

Gavimat (Fri, 26 Nov 2021 12:48:40 GMT):
What are the main steps to be able to work with production based networks? For now, I'm able to build a simple network with 2 orgs, 1 or 3 orderers and invoke/query transactions by using the terminal on my localhost. What should it be my next step? Trying to run this network on Cloud or I'd still have to do something more before taking this step?

ankitsaurabh (Fri, 26 Nov 2021 21:47:21 GMT):
Has joined the channel.

GeluUngur (Sat, 27 Nov 2021 14:33:32 GMT):
Hi, does anybody know how can I add/edit/get attributes of an existing user with Java SDK?

GeluUngur (Sat, 27 Nov 2021 14:35:33 GMT):
If possible, without reenrolling the user

anil8753 (Sun, 28 Nov 2021 18:36:07 GMT):
Sharing private data with other collections - You could ‘share’ the private data on-chain with chaincode that creates a matching key/value in the other organization’s private data collection. You’d pass the private data key/value to chaincode via transient field, and the chaincode could confirm a hash of the passed private data matches the on-chain hash from your collection using GetPrivateDataHash(), and then write the private data to the other organization’s private data collection.

anil8753 (Sun, 28 Nov 2021 18:36:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=adsMRg45eamc7uhLo) How to achieve this. Any sample code will be helpful

SiddharthGupta (Mon, 29 Nov 2021 03:04:27 GMT):
please help me on this, it is urgent and important

iamchris1688 (Mon, 29 Nov 2021 03:43:53 GMT):
Has joined the channel.

knagware9 (Mon, 29 Nov 2021 04:28:55 GMT):
You can see some CBDC projects here https://wiki.hyperledger.org/display/events/Global+CBDC+Challenge

SubashAnbazhagan (Mon, 29 Nov 2021 04:49:37 GMT):
Has joined the channel.

laolao (Mon, 29 Nov 2021 05:27:07 GMT):
Has joined the channel.

amithkk (Mon, 29 Nov 2021 06:05:41 GMT):
Has joined the channel.

nkaramolegos (Mon, 29 Nov 2021 11:35:04 GMT):
Hello, can I use different language for the client application than this used in chaincode? For example GO for chaincode and java for application.

s.vahidi (Mon, 29 Nov 2021 12:14:35 GMT):
Has joined the channel.

s.vahidi (Mon, 29 Nov 2021 12:14:47 GMT):
hi every body

s.vahidi (Mon, 29 Nov 2021 12:20:45 GMT):
please help me :How to install hyperledger fabric 2.2. or 2.3 without Docker. Because Docker was installed as a free version and has a limit on install chaincode?

FotisMichalopoulos (Mon, 29 Nov 2021 13:51:49 GMT):
Has joined the channel.

MohammadHT (Mon, 29 Nov 2021 14:27:03 GMT):
Has joined the channel.

barankilic (Tue, 30 Nov 2021 06:38:10 GMT):
Yes, you can use different languages for client app and chaincode.

kosarlatif (Tue, 30 Nov 2021 07:16:15 GMT):
Hi Everyone, Can anyone please assist me with the following error? 2021-11-30T07:13:21.451Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Endorser- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-11-30T07:13:21.452Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.org1.example.com url:grpcs://localhost:7051 timeout:3000 2021-11-30T07:13:21.454Z - info: [NetworkConfig]: buildPeer - Unable to connect to the endorser peer0.org1.example.com due to Error: Failed to connect before the deadline on Endorser- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true at checkState (/home/fabric-samples/fabcar/javascript/node_modules/@grpc/grpc-js/build/src/client.js:74:26) at Timeout._onTimeout (/home/fabric-samples/fabcar/javascript/node_modules/@grpc/grpc-js/build/src/channel.js:450:17) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { connectFailed: true } 2021-11-30T07:13:24.473Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-11-30T07:13:24.473Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server peer0.org1.example.com url:grpcs://localhost:7051 timeout:3000 2021-11-30T07:13:24.473Z - error: [ServiceEndpoint]: ServiceEndpoint grpcs://localhost:7051 reset connection failed :: Error: Failed to connect before the deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectAttempted:true 2021-11-30T07:13:24.473Z - error: [DiscoveryService]: send[mychannel] - no discovery results Failed to evaluate transaction: Error: DiscoveryService has failed to return results

dalan 2 (Tue, 30 Nov 2021 10:07:28 GMT):
Has joined the channel.

RouteSagar (Tue, 30 Nov 2021 12:08:10 GMT):
Has joined the channel.

RouteSagar (Tue, 30 Nov 2021 12:09:53 GMT):
Hi , Has anyone encountered the below error , actual I am trying to createChannel and tried all possible and known fixes to me but no luck [root@localhost supply-network]# docker exec -it cli ./scripts/channel/createChannel.sh Creating channel... 2021-11-30 11:55:09.449 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/producer.example.com/users/Admin@producer.example.com/msp" does not exist Channel created, joining Producer... 2021-11-30 11:55:09.487 UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/producer.example.com/users/Admin@producer.example.com/msp" does not exist

caglayan45 (Tue, 30 Nov 2021 20:00:07 GMT):
Has joined the channel.

Tenno (Wed, 01 Dec 2021 01:59:00 GMT):
It means you didn't create MSP file before, maybe you should check create_channel command like : peer channel create -o localhost:7050 -c $CHANNEL_NAME --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/${CHANNEL_NAME}.tx --outputBlock $BLOCKFILE --tls --cafile $ORDERER_CA

JunkF (Wed, 01 Dec 2021 02:58:09 GMT):
Has joined the channel.

caglayan45 (Wed, 01 Dec 2021 06:43:58 GMT):
Hi All, I am new at here, I want to do developing in the hyperledger fabric. How can I start ? Can you help me ? Thanks.

caglayan45 (Wed, 01 Dec 2021 06:48:18 GMT):
I setup a infrastructure, it has 3 org, 1 channel and 1 orderer.

lventi (Wed, 01 Dec 2021 12:41:31 GMT):
Has joined the channel.

joey_gogo (Wed, 01 Dec 2021 13:50:13 GMT):
Has joined the channel.

BigmoneyJoe (Wed, 01 Dec 2021 15:52:38 GMT):
Has joined the channel.

JosephPotts (Wed, 01 Dec 2021 19:36:12 GMT):
Has joined the channel.

thusithathilina (Wed, 01 Dec 2021 23:27:49 GMT):
Has joined the channel.

Rp27 (Thu, 02 Dec 2021 03:52:55 GMT):
Has joined the channel.

Bhemeswararaoxcubelabs.com (Thu, 02 Dec 2021 06:27:15 GMT):
Has joined the channel.

BoJacobs (Thu, 02 Dec 2021 13:29:52 GMT):
Has joined the channel.

kudzaishezana (Thu, 02 Dec 2021 15:45:47 GMT):
Has joined the channel.

anil8753 (Thu, 02 Dec 2021 18:12:15 GMT):
Has anyone used Fabric Smart Client for production-grade applications? I am looking for peer-to-peer private communication to build an Amazon kind of e-commerce platform. https://github.com/hyperledger-labs/fabric-smart-client

The_Science (Thu, 02 Dec 2021 18:28:15 GMT):
Has joined the channel.

yianco (Thu, 02 Dec 2021 18:42:40 GMT):
Hey @rockson, just wanted to check in. I tried configuring configtx.yaml to use a solo ordering service, and set the tls_enabled properties to false in docker-compose-test-net.yaml, but I'm still getting errors when trying to create a channel. See below:

yianco (Thu, 02 Dec 2021 18:43:13 GMT):
```+ peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls false --cafile /home/jcpavla/git/fabric_2.1.1/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 + set +x Error: failed to create deliver client for orderer: orderer client failed to connect to localhost:7050: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! Error !!! Create channel failed ```

yianco (Thu, 02 Dec 2021 18:43:32 GMT):
I'm using v2.1.1, fwiw.

F.Florian (Thu, 02 Dec 2021 23:11:39 GMT):
Has joined the channel.

yianco (Fri, 03 Dec 2021 00:27:33 GMT):
My mistake... The command in the createChannel script included a --tls flag that was causing the error. Looks like it's working now. Thanks again for the help!

yianco (Fri, 03 Dec 2021 00:27:33 GMT):
My mistake... The command in the createChannel script included a `--tls` flag that was causing the error. Looks like it's working now. Thanks again for the help!

PalanisamyChellappan (Fri, 03 Dec 2021 05:17:09 GMT):
Has joined the channel.

ipepoi (Fri, 03 Dec 2021 07:07:26 GMT):
Has joined the channel.

rockson (Fri, 03 Dec 2021 07:32:39 GMT):
I'm glad you're progressing. Best Wishes.

rohitsaikrishnan (Fri, 03 Dec 2021 08:22:32 GMT):
Has joined the channel.

NB-PrasadKatkar (Fri, 03 Dec 2021 08:57:12 GMT):
Has joined the channel.

RouteSagar (Fri, 03 Dec 2021 09:17:25 GMT):
Hey Folks,

RouteSagar (Fri, 03 Dec 2021 09:18:30 GMT):
Another error :blush: Error: The required parameter 'sequence' is empty. Rerun the command with --sequence flag Usage: peer lifecycle chaincode approveformyorg [flags] although sequence variable mein stored hai even tried explicitly passing but fir bhi error hai

RouteSagar (Fri, 03 Dec 2021 09:19:58 GMT):
Hey Folks, Another error 😊 Error: The required parameter 'sequence' is empty. Rerun the command with --sequence flag Usage: peer lifecycle chaincode approveformyorg [flags] although sequence is stored in variable and even tried explicitly passing but still no luck anybody encountered this error ??

cmalbas (Fri, 03 Dec 2021 14:06:03 GMT):
Has joined the channel.

KodeKamper (Fri, 03 Dec 2021 14:15:39 GMT):
Has joined the channel.

x4v13r (Fri, 03 Dec 2021 15:44:30 GMT):
Has joined the channel.

SudeshBanskota (Fri, 03 Dec 2021 15:45:04 GMT):
Has joined the channel.

lazaridis.com (Sat, 04 Dec 2021 07:08:56 GMT):
Has joined the channel.

mirshahzad (Sun, 05 Dec 2021 13:34:42 GMT):
Please follow the steps of official website, it is very clear and helpful.

saibot940 (Sun, 05 Dec 2021 14:38:29 GMT):
Has joined the channel.

bhupatbheda (Sun, 05 Dec 2021 17:52:18 GMT):
Has joined the channel.

bhupatbheda (Sun, 05 Dec 2021 17:53:46 GMT):
Hi All, I want to Verifiable Credentials using hyperleder fabric with aws managedblockchain, can any one guide here?

babamatmat (Mon, 06 Dec 2021 04:21:50 GMT):
Has joined the channel.

conanoc (Mon, 06 Dec 2021 07:30:53 GMT):
Take a look at hyperledger indy instead of hyperledger fabric.

bhupatbheda (Mon, 06 Dec 2021 07:31:43 GMT):
Thanks @conanoc is indy support on aws managed blockchain ?

conanoc (Mon, 06 Dec 2021 07:33:03 GMT):
No, as far as I know.

bhupatbheda (Mon, 06 Dec 2021 07:33:22 GMT):
Got it

JOHNNYDOE (Mon, 06 Dec 2021 13:49:27 GMT):
Has joined the channel.

binodpandey (Mon, 06 Dec 2021 16:25:52 GMT):
Has joined the channel.

gustavosales (Mon, 06 Dec 2021 17:45:42 GMT):
Has joined the channel.

janrockdev (Mon, 06 Dec 2021 23:49:32 GMT):
Has joined the channel.

janrockdev (Mon, 06 Dec 2021 23:49:32 GMT):
Hi, is someone interested/working on KDB+ integration with Fabric (trading book real-time dump)? Golang connector for KDB+/Fabric with React/CouchDB GUI.

janrockdev (Mon, 06 Dec 2021 23:49:56 GMT):

Screenshot 2021-12-06 at 23.24.20.png

tuan072090 (Tue, 07 Dec 2021 02:56:51 GMT):
Has joined the channel.

YeMyint (Tue, 07 Dec 2021 05:22:48 GMT):
Has joined the channel.

bardia (Tue, 07 Dec 2021 06:05:17 GMT):
How can I increase the number of deploy in the chain code version?

jainamsha (Tue, 07 Dec 2021 07:31:49 GMT):
Has joined the channel.

jandaman (Tue, 07 Dec 2021 08:57:31 GMT):
Has joined the channel.

TejaSatyanarayana (Tue, 07 Dec 2021 09:31:34 GMT):
Has joined the channel.

ashritha2410 (Tue, 07 Dec 2021 10:06:29 GMT):
Has joined the channel.

Ivanaa9 (Tue, 07 Dec 2021 10:13:47 GMT):
Has joined the channel.

urahara (Tue, 07 Dec 2021 10:17:32 GMT):
Has joined the channel.

carlosalca94 (Tue, 07 Dec 2021 14:14:31 GMT):
Has joined the channel.

vasiksim (Tue, 07 Dec 2021 20:06:35 GMT):
Has joined the channel.

kennylau89 (Wed, 08 Dec 2021 01:27:05 GMT):
Has joined the channel.

AJAR (Wed, 08 Dec 2021 05:31:44 GMT):
Has joined the channel.

bajerm (Wed, 08 Dec 2021 08:40:13 GMT):
Has joined the channel.

StrangeDays (Wed, 08 Dec 2021 09:19:24 GMT):
Has joined the channel.

SujithSu 2 (Wed, 08 Dec 2021 12:18:46 GMT):
Has joined the channel.

MateC89 (Wed, 08 Dec 2021 13:30:45 GMT):
Has joined the channel.

mdshahbazalam (Wed, 08 Dec 2021 17:33:10 GMT):
Has joined the channel.

george.patterson (Thu, 09 Dec 2021 01:37:44 GMT):
Has joined the channel.

Jerry.Bach (Thu, 09 Dec 2021 03:22:18 GMT):
Has joined the channel.

Jerry.Bach (Thu, 09 Dec 2021 03:24:20 GMT):
Hello Guys, I'd like to change the chaincode container after do "peer lifecycle chaincode install" from "dev-peer0.xxx" (as default) to custom name like "prod-peer0...."

Jerry.Bach (Thu, 09 Dec 2021 03:24:31 GMT):
can anyone help me? thank you very much

JamesYL (Thu, 09 Dec 2021 05:38:09 GMT):
Has joined the channel.

SubashAnbazhagan (Thu, 09 Dec 2021 07:25:41 GMT):
can anyone tell me how i do ekyc verification process using hyperledger fabric

SubashAnbazhagan (Thu, 09 Dec 2021 07:25:51 GMT):
in angular

SubashAnbazhagan (Thu, 09 Dec 2021 07:27:49 GMT):
when user upload kyc image file

nathanbn (Thu, 09 Dec 2021 11:48:02 GMT):
Has joined the channel.

murilo_silva (Thu, 09 Dec 2021 15:07:10 GMT):
Has joined the channel.

KMM 6 (Thu, 09 Dec 2021 15:13:09 GMT):
Has joined the channel.

diane.lockhart2 (Thu, 09 Dec 2021 16:26:07 GMT):
Has joined the channel.

nikusingh (Thu, 09 Dec 2021 18:01:55 GMT):
Has joined the channel.

mahdiabdian (Thu, 09 Dec 2021 20:40:22 GMT):
Has joined the channel.

BoranCar (Thu, 09 Dec 2021 21:45:50 GMT):
Has joined the channel.

mvasavi (Fri, 10 Dec 2021 03:07:24 GMT):
Has joined the channel.

mvasavi (Fri, 10 Dec 2021 03:09:04 GMT):
Hi I am trying to get the Hyperledger fabric setup 2.x installed on my new Mac apple chip (m1) but it is erroring out saying "Error opening archive: Unrecognized archive format". Please help

Aqusa (Fri, 10 Dec 2021 03:42:38 GMT):
Has joined the channel.

rmdnsd (Fri, 10 Dec 2021 11:29:45 GMT):
Has joined the channel.

nebucaz (Fri, 10 Dec 2021 12:24:43 GMT):
Has joined the channel.

RouteSagar (Fri, 10 Dec 2021 13:22:32 GMT):
Hey ,

RouteSagar (Fri, 10 Dec 2021 13:23:46 GMT):
Is Docker really necessary for fabric that needs to be deployed in production network ?? I mean can it be done without Docker ??

davidkel (Fri, 10 Dec 2021 14:06:20 GMT):
No Docker is not necessary, you can deploy fabric using docker images or as native binaries. For chaincode lifecycle fabric has an inbuilt mechanism that uses docker but you don't have to use it, you have a choice of using external builders or chaincode as a service. https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html?highlight=external%20builder#external-builders-and-launchers https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html?highlight=chaincode%20as%20a%20service#chaincode-as-an-external-service

davidkel (Fri, 10 Dec 2021 14:06:20 GMT):
No Docker is not necessary, you can deploy fabric using docker images (hyperledger fabric provides test images in dockerhub, ie should not be used for production) or as native binaries. For chaincode lifecycle fabric has an inbuilt mechanism that uses docker but you don't have to use it, you have a choice of using external builders or chaincode as a service. https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html?highlight=external%20builder#external-builders-and-launchers https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html?highlight=chaincode%20as%20a%20service#chaincode-as-an-external-service

wlhowell (Fri, 10 Dec 2021 14:40:39 GMT):
Has joined the channel.

tabouzid (Fri, 10 Dec 2021 15:19:06 GMT):
Has joined the channel.

AutoMAttic (Fri, 10 Dec 2021 19:10:31 GMT):
Has joined the channel.

bestbeforetoday (Fri, 10 Dec 2021 23:57:31 GMT):
https://stackoverflow.com/questions/69314626/why-do-i-get-a-tar-error-opening-archive-unrecognized-archive-format-error-w

HyperledgerNewbie (Sat, 11 Dec 2021 23:52:04 GMT):
Has joined the channel.

brnhrd89 (Sun, 12 Dec 2021 03:18:25 GMT):
Has joined the channel.

sairanjitaw (Sun, 12 Dec 2021 13:47:07 GMT):
Has joined the channel.

HyperledgerNewbie (Sun, 12 Dec 2021 13:52:20 GMT):
Hello, We are considering the use of Hyperledger but not sure which "version" to use. We believe Fabric may be the best option given our goals. That being said, can someone tell me the following: 1) Does Fabric have the ability to leverage Hyperledger functionality on a private network (nodes) and interact with the Solana (SOL) Main Net, when necessary? For example, we would have a private ecosystem that facilitates transactions amongst users but leverages a SOL token. That would require calls to SOL main net for balances or transfers but the remaining transactions would be private within our ecosystem. Is this possible with Fabric?

pranjay (Sun, 12 Dec 2021 18:12:04 GMT):
Has left the channel.

conanoc (Mon, 13 Dec 2021 09:00:29 GMT):
You could also use k8s. https://github.com/hyperledger/fabric-samples/tree/main/test-network-k8s

PaulHaynes (Mon, 13 Dec 2021 12:55:48 GMT):
Has joined the channel.

mbwhite (Mon, 13 Dec 2021 13:59:45 GMT):
Hello, there aren't any specific integrations between Fabric and other networks; though there several places intergation could happen. I don't have knowledge of Solana to be able to offer specific thoughts

arshdebian (Mon, 13 Dec 2021 14:44:02 GMT):
Has joined the channel.

arshdebian (Mon, 13 Dec 2021 14:46:12 GMT):
please , Could not connect to Endpoint: peer0.colorful1.org:11051, InternalEndpoint: peer0.colorful1.org:11051, PKI-ID: , Metadata: : context deadline exceeded, is it because "TLS mutual authentication "?

Param-S (Mon, 13 Dec 2021 15:11:38 GMT):
It means the endpoint is not reachable. Look at the peer logs for any errors related to TLS connection/certificates.

Dazel (Mon, 13 Dec 2021 20:51:53 GMT):
Has joined the channel.

Dazel (Mon, 13 Dec 2021 20:51:53 GMT):
Hey there! How should I approach implementing a token that depends on the users' public-private key pairs? My contract is currently based on the erc-20 contract in the fabric-samples repository, so I only have left using and address-based system instead of client IDs. Thanks for the help in advance.

talgar (Mon, 13 Dec 2021 23:33:21 GMT):
Has joined the channel.

arshdebian (Tue, 14 Dec 2021 05:27:55 GMT):
i have joined the channel use onsadmin and `peer join` ,it happened when i user `peer join` , 2021-12-13 01:37:15.654 UTC [gossip.gossip] func1 -> WARN 0f8 Deep probe of peer0.colorful1.org:11051 for channel sys-channel failed: context deadline exceeded, 2021-12-13 01:37:15.654 UTC [gossip.gossip] func1 -> WARN 0f9 Deep probe of peer0.colorful2.org:11051 for channel sys-channel failed: context deadline exceeded, 2021-12-13 01:37:15.654 UTC [gossip.discovery] func1 -> WARN 0fb Could not connect to Endpoint: peer0.colorful2.org:11051, InternalEndpoint: peer0.colorful2.org:11051, PKI-ID: , Metadata: : context deadline exceeded, 2021-12-13 01:37:15.654 UTC [gossip.discovery] func1 -> WARN 0fa Could not connect to Endpoint: peer0.colorful1.org:11051, InternalEndpoint: peer0.colorful1.org:11051, PKI-ID: , Metadata: : context deadline exceeded, 2021-12-13 01:37:20.053 UTC [core.comm] ServerHandshake -> ERRO 0fc Server TLS handshake failed in 1.08671ms with error remote error: tls: bad certificate server=PeerServer remoteaddress=10.10.12.135:59826, 2021-12-13 01:37:21.056 UTC [core.comm] ServerHandshake -> ERRO 0fd Server TLS handshake failed in 1.106276ms with error remote error: tls: bad certificate server=PeerServer remoteaddress=10.10.12.135:59830 2021-12-13 01:37:24.779 UTC [core.comm] ServerHandshake -> ERRO 0ff Server TLS handshake failed in 1.170615ms with error remote error: tls: bad certificate server=PeerServer remoteaddress=10.10.12.162:56634 >>打开DEBUG后 2021-12-13 08:28:24.364 UTC [grpc] WarningDepth -> DEBU 622 [core]grpc: addrConn.createTransport failed to connect to {peer0.colorful2.org:11051 peer0.colorful2.org:11051 0 }. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")". Reconnecting..., 2021-12-13 08:28:24.364 UTC [grpc] InfoDepth -> DEBU 623 [core]Subchannel Connectivity change to TRANSIENT_FAILURE, 2021-12-13 08:28:24.364 UTC [grpc] InfoDepth -> DEBU 624 [core]pickfirstBalancer: UpdateSubConnState: 0xc0004b2fe0, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")"}, 2021-12-13 08:28:24.365 UTC [grpc] WarningDepth -> DEBU 626 [core]grpc: addrConn.createTransport failed to connect to {peer0.colorful1.org:11051 peer0.colorful1.org:11051 0 }. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")". Reconnecting..., 2021-12-13 08:28:24.365 UTC [grpc] InfoDepth -> DEBU 627 [core]Subchannel Connectivity change to TRANSIENT_FAILURE, 2021-12-13 08:28:24.365 UTC [grpc] InfoDepth -> DEBU 628 [core]pickfirstBalancer: UpdateSubConnState: 0xc002c00fd0, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")"}, 2021-12-13 08:28:24.364 UTC [grpc] InfoDepth -> DEBU 625 [core]Channel Connectivity change to TRANSIENT_FAILURE

arshdebian (Tue, 14 Dec 2021 05:31:03 GMT):
the topology is :three host2,use domian mapping in /ets/hosts .each org has own CA , i wonder how to communicate with eachother when the donnt belong to the same CA organition ,thus the TLS root ca is diffenrent

kbyokin (Tue, 14 Dec 2021 07:22:31 GMT):
Has joined the channel.

Param-S (Tue, 14 Dec 2021 07:56:15 GMT):
error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")". It seems to me, there is misconfiguration or incorrect TLS certificates configured which causes the n/w communication failure. Please check the correct TLS key, certificates configured in peer. You can refer this doc for more info: https://hyperledger-fabric.readthedocs.io/en/release-2.2/enable_tls.html

arshdebian (Tue, 14 Dec 2021 08:04:20 GMT):
thank you ,i try it now

MehdiIda (Tue, 14 Dec 2021 08:12:14 GMT):
Has joined the channel.

arshdebian (Tue, 14 Dec 2021 09:16:29 GMT):

Clipboard - 2021年12月14日下午5点15分

arshdebian (Tue, 14 Dec 2021 09:17:23 GMT):

Clipboard - 2021年12月14日下午5点17分

arshdebian (Tue, 14 Dec 2021 09:20:55 GMT):

Clipboard - 2021年12月14日下午5点21分

RafaelAPB (Tue, 14 Dec 2021 10:03:12 GMT):
Does anybody know what is the use for the nonce in Fabric? When is it checked? I'm having trouble finding it on the official docs

barankilic (Tue, 14 Dec 2021 10:34:56 GMT):
I don't have any information about nonce, but I found this sentence in the doc: "For practical purposes, a nonce is a random number generated by the client application and incorporated in a cryptographic hash." (https://hyperledger-fabric.readthedocs.io/en/latest/developapps/transactioncontext.html)

barankilic (Tue, 14 Dec 2021 10:38:46 GMT):
If you mean the nonce in client SDKs, there is what I found: https://github.com/hyperledger/fabric-sdk-node/blob/14a901ad0f4ed5dfee9c2d325f8b3bbbf500fbba/fabric-common/lib/Utils.js#L417 https://github.com/hyperledger/fabric-sdk-node/blob/14a901ad0f4ed5dfee9c2d325f8b3bbbf500fbba/fabric-common/lib/IdentityContext.js#L57

bestbeforetoday (Tue, 14 Dec 2021 11:49:47 GMT):
As you might be able to figure out from the code linked above, the transaction ID is derived from the client credentials and the nonce. The nonce is included in the signed transaction proposal, and the peer checks the transaction ID matches the credentials and nonce

arshdebian (Tue, 14 Dec 2021 12:15:39 GMT):
@mbwhite could you help me with this question?thank you a lot

mbwhite (Tue, 14 Dec 2021 12:16:51 GMT):
we'll need a lot more information about what your probelm is please.

arshdebian (Tue, 14 Dec 2021 12:17:40 GMT):
i have upload the log and my config above

arshdebian (Tue, 14 Dec 2021 12:17:42 GMT):

Clipboard - 2021年12月14日晚上8点17分

arshdebian (Tue, 14 Dec 2021 12:18:54 GMT):
:pray:

arshdebian (Tue, 14 Dec 2021 12:21:29 GMT):
@mbwhite I have three servers ,each server has an independent organization with a peer node . one orderer org include three orderer peers,each server has a orderer peer

mbwhite (Tue, 14 Dec 2021 12:21:47 GMT):
"transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"ca-org\")". that error often means that the Root Certificate provided isn't the correct certificate in some way. either the wrong CA, from a different run or missing entirely

arshdebian (Tue, 14 Dec 2021 12:25:48 GMT):
@mbwhite but in the real environment ,the organizations should be independent each other,thus i think they should have their own CA servers,but the question is if they have the diffenrent CA,how can they communicate each other ,the TLS cers are from diffrent CA

arshdebian (Tue, 14 Dec 2021 12:25:52 GMT):
in the real environment ,the organizations should be independent each other,thus i think they should have their own CA servers,but the question is if they have the diffenrent CA,how can they communicate each other ,the TLS cers are from diffrent CA

arshdebian (Tue, 14 Dec 2021 12:31:55 GMT):
is there any Hyperledger Fabric forum?

fabric (Tue, 14 Dec 2021 12:40:25 GMT):
Has joined the channel.

fabric (Tue, 14 Dec 2021 12:43:11 GMT):
Hello everyone, I am a graduate student studying consensus algorithms. I have made some changes to PBFT consensus algorithm and would like to test my consensus algorithm on Fabric V1.4. Can I do this on Fabric V1.4

mbwhite (Tue, 14 Dec 2021 13:27:44 GMT):
This is TLS, so there has to be shared trusted root CA somewhere in the certificate chain; just the way TLS is

whcjst (Tue, 14 Dec 2021 13:34:17 GMT):
Has joined the channel.

arshdebian (Tue, 14 Dec 2021 13:53:48 GMT):

123.png

arshdebian (Tue, 14 Dec 2021 13:53:53 GMT):
@mbwhite

arshdebian (Tue, 14 Dec 2021 13:57:57 GMT):
is it just because they are in one server and they both set the `--csr.hosts localhost` field,so they can communicate??

mbwhite (Tue, 14 Dec 2021 14:01:28 GMT):
can't really comment as I don't know the precise setup... TLS problems are hard to debug; the best approach is review all the configuration very carefully.

arshdebian (Tue, 14 Dec 2021 14:02:26 GMT):
thank you very much ,i will continue find out the problem

yacovm (Tue, 14 Dec 2021 16:22:31 GMT):
https://arxiv.org/abs/2107.06922

yacovm (Tue, 14 Dec 2021 16:22:57 GMT):
https://github.com/SmartBFT-Go/fabric/

TarsoQueiroz (Tue, 14 Dec 2021 16:52:33 GMT):
Has joined the channel.

Vgkmanju (Tue, 14 Dec 2021 16:55:08 GMT):
Hi all, Currently I am implementing (hyperledger fabric 2.2) chaincode deployment as external service in kubernetes cluster by manually login to peercli pod and run all the install, approve, commit, init invoke operations. Is there any way to automate (hyperledger fabric 2.2.x) chaincode deployment as external service in kubernetes cluster?

mbwhite (Tue, 14 Dec 2021 17:14:45 GMT):
I'd suggest taking a look at the test-network-k8s, also there are some PRs in works at present that will make these things a lot easier

mbwhite (Tue, 14 Dec 2021 17:15:13 GMT):
in terms of pure automation this is domain of things such as HLFConsole for example

MattProto (Tue, 14 Dec 2021 22:34:58 GMT):
Has joined the channel.

AshwiniD 1 (Wed, 15 Dec 2021 05:14:59 GMT):
Has joined the channel.

baron0426 (Wed, 15 Dec 2021 08:47:45 GMT):
Has joined the channel.

baron0426 (Wed, 15 Dec 2021 08:54:27 GMT):
Hello, I'm currently building a smart contract using go api from scratch and I'm reading this....https://github.com/hyperledger/fabric-contract-api-go/blob/main/tutorials/getting-started.md It involves a step where I need files from fabric-samples/chaincode-docker-devmode but there is no chaincode-docker-devmode in the newest version of fabric-samples, how can it be so?

davidkel (Wed, 15 Dec 2021 08:59:40 GMT):
The contract api docs are out of date. that sample was in the 1.4 release of fabric samples but has been removed. Suggest you raise a github issue at https://github.com/hyperledger/fabric-contract-api-go/issues to update the readme

davidkel (Wed, 15 Dec 2021 08:59:40 GMT):
The contract api docs are out of date. that sample was in the 1.4 release of fabric samples but has been removed in the 2.2 and main versions of fabric-samples. Suggest you raise a github issue at https://github.com/hyperledger/fabric-contract-api-go/issues to update the readme

baron0426 (Wed, 15 Dec 2021 09:03:56 GMT):
thank you

baron0426 (Wed, 15 Dec 2021 09:04:33 GMT):
do you know the equivalent way of using "chaincode-docker-devmode" in fabric 2.2?

davidkel (Wed, 15 Dec 2021 09:07:25 GMT):
It's not documented in the 2.2 fabric doc, but in the latest docs there is something here https://hyperledger-fabric.readthedocs.io/en/latest/peer-chaincode-devmode.html whether it works in 2.2 or this has been fixed in later releases I don't know

baron0426 (Wed, 15 Dec 2021 09:08:49 GMT):
thank you

HarshMultani (Wed, 15 Dec 2021 12:02:48 GMT):
Hi Everyone, Can anyone point me to a code example that fetches record from Fabric using getQueryResultWithPagination. I basically want to fetch records from fabric using pagination and sorting.

Anthony022 (Thu, 16 Dec 2021 02:50:23 GMT):
Has joined the channel.

fabric (Thu, 16 Dec 2021 04:08:02 GMT):
Thank you very much for your help.

fabric (Thu, 16 Dec 2021 04:11:56 GMT):
I have a question, why should smart contracts be executed in containers or virtual machines? Is it to prevent illegal calls? If so, can access to contracts be controlled through permission control?

beifangfazhanlu (Thu, 16 Dec 2021 08:33:00 GMT):
Has joined the channel.

StepniowskiP (Thu, 16 Dec 2021 08:52:14 GMT):
Has joined the channel.

mbwhite (Thu, 16 Dec 2021 08:54:04 GMT):
There are endorsement policies in fabric, both at a chaincode level, also state level. This controls the ogranizations that need to endorse the transaction. For specific users access control could be implemented in the smart contract itself

fabric (Thu, 16 Dec 2021 09:05:38 GMT):
Thank you very much for your answer, but can I manage the rights of the contract interface to achieve access control of the smart contract? For example, I don't want some people to directly invoke a contract. I hope that before invoking the contract, the system can have an access control module to audit the user and the calling behavior, and then grant the user corresponding permissions. Finally, the user can invoke the contract according to the permissions they have.

mbwhite (Thu, 16 Dec 2021 09:11:18 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/Fabric-FAQ.html?highlight=access%20control#security-access-control

mbwhite (Thu, 16 Dec 2021 09:11:26 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/Fabric-FAQ.html?highlight=access%20control#security-access-control

mbwhite (Thu, 16 Dec 2021 09:11:44 GMT):
For individual users, that does need to be coded within the contract

mbwhite (Thu, 16 Dec 2021 09:12:58 GMT):
It's a perfectly reasonable thing for a contract to do.. and I'm sure I saw an example of doing this somewhere..

fabric (Thu, 16 Dec 2021 09:20:43 GMT):
So can I put the access control logic for contract B into contract A? Even more boldly, can I control user access to a contract through a consensus group? Thanks again for your answer!

mbwhite (Thu, 16 Dec 2021 09:22:06 GMT):
depends on whether contract B is in the same chaincode definition as contract A.

mbwhite (Thu, 16 Dec 2021 09:22:36 GMT):
not sure exactly what consensus group is refering to - not a Fabric concept

fabric (Thu, 16 Dec 2021 09:27:14 GMT):
A consensus group is a group of nodes that participate in the consensus process

mbwhite (Thu, 16 Dec 2021 09:36:53 GMT):
ah right I see what you mean

fabric (Thu, 16 Dec 2021 09:48:14 GMT):
:smile:

leonardoPereira (Thu, 16 Dec 2021 14:08:15 GMT):
Has joined the channel.

tdiesler (Thu, 16 Dec 2021 17:24:25 GMT):
Has joined the channel.

Dazel (Thu, 16 Dec 2021 18:24:01 GMT):
As far as I understand, the Fabric Python SDK is not compatible with Fabric 2.x+; what are my options if I need to call Fabric smart contracts on an existing network from a python program?

grzegorz.drozda (Thu, 16 Dec 2021 18:54:11 GMT):
Has joined the channel.

zeminzhou (Fri, 17 Dec 2021 03:04:15 GMT):
When I

zeminzhou (Fri, 17 Dec 2021 03:06:53 GMT):
When I instantiate my chaincode, I got "failed to invoke chaincode name:"lscc" , error: container exited with 0". My fabric version(peer and orderer) is 1.4.7.

zeminzhou (Fri, 17 Dec 2021 03:09:24 GMT):
Strangely, I was able to run fabric and instantiate my chain code three months ago. But now the same environment cannot instantiate the chain code.

zeminzhou (Fri, 17 Dec 2021 03:10:04 GMT):
Where is the possible problem?

zeminzhou (Fri, 17 Dec 2021 03:15:51 GMT):
I can see through the “docker images" and "docker ps -a" that the docker image has been created, but it has not been run.

zeminzhou (Fri, 17 Dec 2021 03:18:23 GMT):

2021-12-17 11-17-49屏幕截图.png

daiki.nakashima (Fri, 17 Dec 2021 04:18:29 GMT):
Has joined the channel.

bardia (Fri, 17 Dec 2021 06:11:53 GMT):
How to change affiliation name on ca-server HLF?

Abcold (Fri, 17 Dec 2021 06:11:55 GMT):
Has joined the channel.

mbwhite (Fri, 17 Dec 2021 08:31:56 GMT):
In what why is it not compatible? I would contact the maintainers of the repo direct via github

mbwhite (Fri, 17 Dec 2021 08:33:06 GMT):
The advice is to check the docker container logs for anything that's amiss. Would recommend using the `monitorDocker.sh` script that is in fabric-samples. This will track all docker containers even those that only live briefly

Amits1 (Fri, 17 Dec 2021 11:10:59 GMT):
Has joined the channel.

UnparagonedWisdom (Fri, 17 Dec 2021 13:02:27 GMT):
Has joined the channel.

ThreeJam (Fri, 17 Dec 2021 18:02:54 GMT):
Has joined the channel.

barcellosrod (Fri, 17 Dec 2021 21:24:19 GMT):
Has joined the channel.

TheRealJimShady (Sat, 18 Dec 2021 15:33:55 GMT):
Has joined the channel.

EdditLemons (Sat, 18 Dec 2021 17:43:11 GMT):
Has joined the channel.

Dazel (Sat, 18 Dec 2021 18:16:28 GMT):
As I have seen, there wasn't a jump from Fabric 1.4.X to 2.X.X, but both 1.4.X and 2.X.X versions where released alternatively. Is there a reason for this?

davidkel (Sat, 18 Dec 2021 21:11:25 GMT):
1.4 was the 1.x LTS release, 2.2 is the current 2.x LTS release. 1.4 remained supported for 1 year after the 2.2 LTS release was made so updates continued. 1.4 is now out of LTS so no further releases of 1.4 will be done

JeenaDevasia (Sun, 19 Dec 2021 13:23:35 GMT):
Has joined the channel.

ayushridhar (Sun, 19 Dec 2021 18:02:22 GMT):
Has joined the channel.

samih 5 (Sun, 19 Dec 2021 18:04:25 GMT):
Has joined the channel.

jkvargas (Sun, 19 Dec 2021 18:52:01 GMT):
Has joined the channel.

jkvargas (Sun, 19 Dec 2021 18:53:35 GMT):
hi guys, noob question. Tutorial is saying to me that I should download a repository fabric-samples and use some docker-images. Is this the "official" way to start with it? Manjaro/Arch provide an AUR for hyperledger fabric, which install a bunch of files inside the /usr/bin, /etc and so on.

davidkel (Sun, 19 Dec 2021 22:34:49 GMT):
definitely if you want to get started with a test network and are following the hyperledger fabric documentation

ShobhitSrivastava (Mon, 20 Dec 2021 11:51:12 GMT):
Hi, I am also stuck over here. After I removed signature-policy from approveformyorg, it passes but failed at commit stage after giving ENDORSEMENT_POLICY_FAILURE

sbohanlf (Mon, 20 Dec 2021 14:06:18 GMT):
Has joined the channel.

FabienFF (Mon, 20 Dec 2021 16:35:30 GMT):
Has joined the channel.

MBurnes (Mon, 20 Dec 2021 23:42:47 GMT):
Has joined the channel.

Yangshuangxi (Tue, 21 Dec 2021 06:57:19 GMT):
Has joined the channel.

elchastro (Tue, 21 Dec 2021 10:46:26 GMT):
Has joined the channel.

fabric (Tue, 21 Dec 2021 13:40:49 GMT):
Hello, everyone! How to solve this problem?

fabric (Tue, 21 Dec 2021 13:41:19 GMT):

Clipboard - 2021-12-21 9:40

fabric (Tue, 21 Dec 2021 13:41:56 GMT):
I don't know how to solve this problem.

skbalahere (Tue, 21 Dec 2021 16:49:35 GMT):
Has joined the channel.

skbalahere (Tue, 21 Dec 2021 16:51:57 GMT):
Hello Everyone, I am new to Hyperledger and while installation facing issue like this.

skbalahere (Tue, 21 Dec 2021 16:52:14 GMT):

Clipboard - December 21, 2021 10:21 PM

davidkel (Tue, 21 Dec 2021 17:15:00 GMT):
The scripts are designed for bash so won't work on windows command line or powershell. The fabric documentation on using windows is broken. I recommend you either use a hypervisor such as virtualbox or vmware to run a linux distribution or you use WSL2 in windows (to run the docker daemon in WSL2 requires a little more work than standard linux so would suggest you google it)

skbalahere (Tue, 21 Dec 2021 17:15:52 GMT):
ok thanks a lot

a-p-petrosyan (Wed, 22 Dec 2021 08:11:42 GMT):
Has joined the channel.

ammaarpatel99 (Wed, 22 Dec 2021 10:07:16 GMT):
Has joined the channel.

Abhi-Mynam (Wed, 22 Dec 2021 11:34:09 GMT):
Has joined the channel.

DinuraSeneviratne1 (Wed, 22 Dec 2021 12:16:11 GMT):
Has joined the channel.

p.amrith (Thu, 23 Dec 2021 05:18:54 GMT):
Has joined the channel.

krishna1982 (Thu, 23 Dec 2021 06:20:21 GMT):
Has joined the channel.

RouteSagar (Thu, 23 Dec 2021 06:41:25 GMT):
Hello, Orderers get exited within few seconds after docker compose up.... Any idea how it can be fixed

RouteSagar (Thu, 23 Dec 2021 06:41:51 GMT):
and ports assigned to them vanishes

Dixit 13 (Thu, 23 Dec 2021 07:06:44 GMT):
Has joined the channel.

KavyaR (Thu, 23 Dec 2021 11:44:40 GMT):
Has joined the channel.

tahyonline (Thu, 23 Dec 2021 16:40:53 GMT):
Has joined the channel.

SkandaGurunathanR (Thu, 23 Dec 2021 19:10:44 GMT):
Has joined the channel.

mgrant (Fri, 24 Dec 2021 12:14:53 GMT):
Has joined the channel.

nandrews283 (Fri, 24 Dec 2021 13:59:04 GMT):
Has joined the channel.

lvillar (Sun, 26 Dec 2021 03:30:53 GMT):
Has joined the channel.

friendlyhacker (Sun, 26 Dec 2021 07:12:36 GMT):
Has joined the channel.

skittlez1522 (Mon, 27 Dec 2021 03:32:38 GMT):
Has joined the channel.

sudharsan.s (Mon, 27 Dec 2021 09:42:17 GMT):
Has joined the channel.

yogi-cw (Mon, 27 Dec 2021 12:07:41 GMT):
Has joined the channel.

marya1 (Mon, 27 Dec 2021 14:19:56 GMT):
Has joined the channel.

marya1 (Mon, 27 Dec 2021 14:26:12 GMT):
Hello.I'm working on a project in hyperledger fabric and I need help.I have a project in hyperledger composer and I need to integrate my project with idemix ( https://hyperledger-fabric.readthedocs.io/en/release-2.2/idemix.html ), but I'm a beginner in hyperledger fabric and although I read this link and any other websites about idemix, I can't understand anything about how to use it in my project. So could someone help me and tell me that how can I use idemix in my project in detail and step by step? I can't find answer to this question anywhere and I need someone who has experience in working with idemix. Thank you in advance

davidkel (Mon, 27 Dec 2021 14:38:25 GMT):
The first step would be to migrate your composer application to being a native fabric application (composer is deprecated and it also has no support for idemix). I know the that the java client sdk provides support for idemix, node client sdk definitely doesn't and I don't know about the Go client SDK.

davidkel (Mon, 27 Dec 2021 14:38:25 GMT):
The first step would be to migrate your composer application to being a native fabric application (composer is deprecated and it also has no support for idemix). I know the that the java client sdk provides support for idemix, node client sdk definitely doesn't and I don't know about the Go client SDK. You would need to code your client using an SDK that supports idemix.

davidkel (Mon, 27 Dec 2021 14:38:25 GMT):
The first step would be to migrate your composer application to being a native fabric application (composer is end of life and it also has no support for idemix). I know the that the java client sdk provides support for idemix, node client sdk definitely doesn't and I don't know about the Go client SDK. You would need to code your client using an SDK that supports idemix.

davidkel (Mon, 27 Dec 2021 14:38:25 GMT):
The first step would be to migrate your composer application to being a native fabric application (composer is end of life and it also has no support for idemix). I know the that the java client sdk provides support for idemix, node client sdk definitely doesn't and I don't know about the Go client SDK. You would need to code your client using an SDK that supports idemix. If you need to anything special with creator idemix identities then you will have to use Go for your chaincode

GrzegorzDrozda (Mon, 27 Dec 2021 19:18:55 GMT):
Has joined the channel.

omkar-mohanty (Tue, 28 Dec 2021 04:07:33 GMT):
Has joined the channel.

hejte (Tue, 28 Dec 2021 11:00:16 GMT):
Has joined the channel.

hejte (Tue, 28 Dec 2021 11:05:01 GMT):
Hello, I'm working on a little projekt for university. Is there a simple way to get more than 3 organizations in the test-network? I was changing all the org3 data in the addOrg3-Scripts, but then I failed in adding Org4 with CA to a new channel with the existing three organizations. Or can I just set up a new network with more organizations from the beginning?

davidkel (Tue, 28 Dec 2021 11:10:13 GMT):
minifabric may be worth having a look at https://github.com/hyperledger-labs/minifabric

hejte (Tue, 28 Dec 2021 11:26:09 GMT):
Is there another way?

hejte (Tue, 28 Dec 2021 11:29:36 GMT):
My org4 & ca4 was starting and the docker container running. But in the end I couldn't join to my channel. With Org3 (and the delivered script) it was easy to create the org3 and join channel before

davidkel (Tue, 28 Dec 2021 11:31:24 GMT):
hyperledger fabric only provides test-network as an example on how to create your own networks and shows how to add a further org to an existing network. You could modify test-network to create more than 2 orgs from scratch. Hyperledger has other projects to help build fabric networks such as minifabric, cello, bevel but bevel and cello may be overkill for what you want

hejte (Tue, 28 Dec 2021 11:33:10 GMT):
And how could I change the files, so I can build my network from scratch with more organizations?

davidkel (Tue, 28 Dec 2021 11:40:09 GMT):
hyperledger fabric doesn't have a tutorial as such on how to do that, best I can offer is to read the hyperledger fabric documentation and examine the various files used by network-test to work it out. The community may have examples as well, so try a google search

davidkel (Tue, 28 Dec 2021 11:40:55 GMT):
I thought minifabric made this sort of thing much easier, but I've never used it

hejte (Tue, 28 Dec 2021 11:42:44 GMT):
ok thanks a lot

EmSpireInc (Tue, 28 Dec 2021 11:52:59 GMT):
Has joined the channel.

hejte (Tue, 28 Dec 2021 12:10:27 GMT):
2021-12-28 12:07:31.675 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists) After 7 attempts, peer0.org4 has failed to join channel 'mychannel' ERROR !!!! Unable to join Org4 peers to network This is the error after joining org4 to a channel with org1, org2 & org3 with an edited script from addorg3.sh

Xcerla (Tue, 28 Dec 2021 21:24:50 GMT):
Has joined the channel.

davidkel (Wed, 29 Dec 2021 08:35:05 GMT):
Looks like that peer already knows about the channel

Ranbowhu (Wed, 29 Dec 2021 14:25:52 GMT):
Has joined the channel.

conanoc (Thu, 30 Dec 2021 06:46:13 GMT):
@hejte Can you show your `test-network/scripts/org3-scripts/joinChannel.sh` file ?

IraqReshi (Thu, 30 Dec 2021 07:27:29 GMT):
Has joined the channel.

dev2020 (Thu, 30 Dec 2021 09:09:04 GMT):
Has joined the channel.

dev2020 (Thu, 30 Dec 2021 09:14:31 GMT):
Hi Everyone, I need help, I'm facing an issue while reenrolling expired identity. *I used below method using nodejs fabric ca client:* reenroll(currentIdentity, [{name: 'hf.Registrar.Roles',value: 'client'},{name: 'hf.Registrar.Attributes',value: 'hf.Registrar.Roles, hf.Registrar.Attributes'}]) *Error from CA server:* Error: fabric-ca request reenroll failed with errors [[{"code":20,"message":"Authentication failure"}]]

dev2020 (Thu, 30 Dec 2021 09:14:31 GMT):
Hi @all, I need help, I'm facing an issue while reenrolling expired identity. *I used below method using nodejs fabric ca client:* reenroll(currentIdentity, [{name: 'hf.Registrar.Roles',value: 'client'},{name: 'hf.Registrar.Attributes',value: 'hf.Registrar.Roles, hf.Registrar.Attributes'}]) *Error from CA server:* Error: fabric-ca request reenroll failed with errors [[{"code":20,"message":"Authentication failure"}]]

dev2020 (Thu, 30 Dec 2021 09:14:31 GMT):
Hi @all, I need help, I'm facing an issue while reenrolling expired identity. *I used below method using nodejs fabric ca client:* reenroll(currentIdentity, [{name: 'hf.Registrar.Roles',value: 'client'},{name: 'hf.Registrar.Attributes',value: 'hf.Registrar.Roles, hf.Registrar.Attributes'}]) *Error from CA server:* Error: fabric-ca request reenroll failed with errors [[{"code":20,"message":"Authentication failure"}]] *Log in CA Server:* POST /api/v1/reenroll 401 26 "Untrusted certificate: Failed to verify certificate: x509: certificate has expired or is not yet valid" Version: Fabric 1.4.0

dev2020 (Thu, 30 Dec 2021 09:14:31 GMT):
Hi @all, I need help, I'm facing an issue while reenrolling expired identity. *I used below method using nodejs fabric ca client:* await this.fabric_ca.reenroll(currentIdentity, [{name: 'hf.Registrar.Roles',value: 'client'},{name: 'hf.Registrar.Attributes',value: 'hf.Registrar.Roles, hf.Registrar.Attributes'}]) *Error from CA server:* Error: fabric-ca request reenroll failed with errors [[{"code":20,"message":"Authentication failure"}]] *Log in CA Server:* POST /api/v1/reenroll 401 26 "Untrusted certificate: Failed to verify certificate: x509: certificate has expired or is not yet valid" Version: Fabric 1.4.0

dev2020 (Thu, 30 Dec 2021 09:14:31 GMT):
Hi @all, I need help, I'm facing an issue while reenrolling expired identity. *I used below method using nodejs fabric ca client:* await this.fabric_ca.reenroll(currentIdentity, [ ]) *Error from CA server:* Error: fabric-ca request reenroll failed with errors [[{"code":20,"message":"Authentication failure"}]] *Log in CA Server:* POST /api/v1/reenroll 401 26 "Untrusted certificate: Failed to verify certificate: x509: certificate has expired or is not yet valid" Version: Fabric 1.4.0

davidkel (Thu, 30 Dec 2021 10:13:44 GMT):
the ability to re-enroll an expired identity was introduced into fabric-ca 1.5.1, see https://github.com/hyperledger/fabric-ca/releases/tag/v1.5.1

dev2020 (Thu, 30 Dec 2021 10:16:28 GMT):
Thank you @davidkel. can i use enroll instead of reenroll. will it have any impact ?

dev2020 (Thu, 30 Dec 2021 10:16:28 GMT):
Thank you @davidkel. We will migrate to 1.51 can i use enroll instead of reenroll. will it have any impact ?

dev2020 (Thu, 30 Dec 2021 10:16:28 GMT):
Thank you @davidkel. We will migrate to 1.51 For now, can i use enroll instead of reenroll. will it have any impact ?

dev2020 (Thu, 30 Dec 2021 10:16:28 GMT):
Thank you @davidkel. We will migrate to 1.5.1 For now, can i use enroll instead of reenroll. will it have any impact ?

davidkel (Thu, 30 Dec 2021 10:47:05 GMT):
enroll would require that 1. You still have the secret 2. You didn't specify a limit to the number of enrolls when you registered the user

davidkel (Thu, 30 Dec 2021 10:47:25 GMT):
Also note that fabric-ca 1.5.2 is available

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments=0 at the time of ca.register() So, now when a user expired, i will call a method which set enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for the user. Is that fine?

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments=0 at the time of ca.register() So, now when a user expired, i will call a method which set enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for current user. Is that fine?

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments=0 at the time of ca.register() So, now when a user certificate expire, i will call a method which set enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for current user. Is that fine?

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments=0 at the time of ca.register() So, now when a user certificate expire, i will call a method which set enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for current user using 'mysecret' & identity Is that fine?

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments at the time of ca.register() So, now when a user certificate expire, i will call a method which set enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for current user using 'mysecret' & identity Is that fine?

dev2020 (Thu, 30 Dec 2021 10:54:01 GMT):
we didn't set enrollmentSecret & maxEnrollments at the time of ca.register() So, now when a user certificate expire, i will call a method which update enrollmentSecret='mysecret' & maxEnrollments=0 for the current user using admin identity. Then i will call enroll for current user using 'mysecret' & identity Is that fine?

dev2020 (Thu, 30 Dec 2021 10:55:18 GMT):
since already our system in running, i have no choice, any suggestion on this please.

RouteSagar (Thu, 30 Dec 2021 11:27:36 GMT):
I have setup an fabric network with 3 Orgs 2 days ago... While now when I am I am trying to ping those peers from cli bash its saying as bad request due to which I am unable to deploy new chaincode let me know if anyone has any leads of how do we fix

davidkel (Thu, 30 Dec 2021 11:36:30 GMT):
If it works and you are happy with that as a temporary measure

dev2020 (Thu, 30 Dec 2021 12:19:36 GMT):
Cool. Thank you so much your support @davidkel

dev2020 (Thu, 30 Dec 2021 12:19:36 GMT):
Cool. Thank you so much for your support @davidkel

jkvargas (Thu, 30 Dec 2021 17:47:57 GMT):
hi, I'm trying to follow the basic tutorial available at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html#before-you-begin. after creating a channel I am trying to run "peer channel list" which returns me Client TLS handshake failed after 1.865032ms with error: x509: certificate signed by unknown authority remoteaddress=[::1]:9051 Now, I have the fabric samples under $home/dev/fabric-samples my env vars, PATH=/home/vargasj/dev/fabric-samples/bin... FABRIC_CFG_PATH=/home/vargasj/dev/fabric-samples/config CORE_PEER_TLS_ROOTCERT_FILE=/home/vargasj/dev/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_MSPCONFIGPATH=/home/vargasj/dev/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_TLS_ENABLED=true CORE_PEER_LOCALMSPID=Org1MSP CORE_PEER_ADDRESS=localhost:9051 Am I missing something?

gaurav471 (Thu, 30 Dec 2021 19:06:16 GMT):
Has joined the channel.

conanoc (Fri, 31 Dec 2021 01:15:00 GMT):
You used wrong port. Use 7051, not 9051.

MojoCoderBo (Fri, 31 Dec 2021 07:11:55 GMT):
Has joined the channel.

Ojas365 (Fri, 31 Dec 2021 09:16:25 GMT):
Has joined the channel.

parnika24 (Fri, 31 Dec 2021 10:59:12 GMT):
Has joined the channel.

parnika24 (Fri, 31 Dec 2021 11:00:18 GMT):
Hi .. How can we fetch the History for a Private Data Asset?

davidkel (Fri, 31 Dec 2021 11:39:19 GMT):
Unfortunately you can't it's not implemented yet in fabric

davidkel (Fri, 31 Dec 2021 11:39:19 GMT):
Unfortunately you can't it's not implemented yet in fabric, you would need to implement your own mechanism to do so

davidkel (Fri, 31 Dec 2021 11:39:19 GMT):
Unfortunately the capability (equivalent to getHistoryForKey) is not implemented yet in fabric, you would need to implement your own mechanism to do so

kareemikassab (Fri, 31 Dec 2021 12:33:00 GMT):
Has joined the channel.

MaximeBarbet (Fri, 31 Dec 2021 15:16:54 GMT):
Has joined the channel.

vp10905353 (Fri, 31 Dec 2021 19:14:17 GMT):
Has joined the channel.

jsolderitsch (Fri, 31 Dec 2021 21:49:56 GMT):
Has joined the channel.

manjinder98 (Sat, 01 Jan 2022 14:36:47 GMT):
Has joined the channel.

bshada (Sat, 01 Jan 2022 20:36:04 GMT):
Has joined the channel.

kma-blockchain (Sun, 02 Jan 2022 09:20:05 GMT):
Has joined the channel.

yangzifeng1995 (Sun, 02 Jan 2022 10:14:14 GMT):
Has joined the channel.

ManjinderSingh (Sun, 02 Jan 2022 10:43:32 GMT):
Has joined the channel.

Nishantsharma12 (Sun, 02 Jan 2022 13:25:13 GMT):
Has joined the channel.

HackyCoder0951 (Mon, 03 Jan 2022 08:24:19 GMT):
Has joined the channel.

tanujdev (Mon, 03 Jan 2022 16:22:38 GMT):
Has joined the channel.

kinagimanju (Mon, 03 Jan 2022 16:42:30 GMT):
Has joined the channel.

kinagimanju (Mon, 03 Jan 2022 16:42:54 GMT):
Hello

kinagimanju (Mon, 03 Jan 2022 16:43:43 GMT):
I need help in deploying chaincode ... I'm getting error when i run the deploy command

kinagimanju (Mon, 03 Jan 2022 16:43:55 GMT):
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go

kinagimanju (Mon, 03 Jan 2022 16:44:59 GMT):
Error: failed to normalize chaincode path: 'go list' failed with: go tool: no such tool "compile": exit status 2

richardspeter (Mon, 03 Jan 2022 19:05:44 GMT):
Has joined the channel.

oliveruas (Mon, 03 Jan 2022 19:26:35 GMT):
Hello and Happy new year to everyone, I am developing a University project. After following the docs' steps of deploying a production network, I think I finally achieve the goal (without mutual TLS) in a local environment (5 orderers, 5 peers, 5 CAs and 5 TLSCA). Problems appear when I use the application with this network configuration. Both enrollUser.js and registerUser.js works but submitTransaction does not. It looks like the tx proposal is sent 3 times to the same peer because I attached the 5 dev-peers docker containers and only one executes the function of the chaincode. However, if I execute the peer invoke command using the bash, the tx updates the world state. I do not know what is wrong I have searched on Google but I can not solve this problem. Any help would be appreciated. And the submitTransaction.js 'use strict'; const fs = require('fs'); const path = require('path'); const { Wallets, Gateway } = require('fabric-network'); const testNetworkRoot = path.resolve(require('os').homedir(), 'go/src/github.com/hyperledger/fabric-samples/tfm/tfm-network/fabric-ca/'); async function main() { const gateway = new Gateway(); const wallet = await Wallets.newFileSystemWallet('./wallet');

oliveruas (Mon, 03 Jan 2022 19:31:37 GMT):
Hello and Happy new year to everyone, I am developing a University project. After following the docs' steps of deploying a production network, I think I finally achieve the goal (without mutual TLS) in a local environment (5 orderers, 5 peers, 5 CAs and 5 TLSCA). Problems appear when I use the application with this network configuration. Both enrollUser.js and registerUser.js works but submitTransaction does not. It looks like the tx proposal is sent 3 times to the same peer because I attached the 5 dev-peers docker containers and only one executes the function of the chaincode. However, if I execute the peer invoke command using the bash, the tx updates the world state. I do not know what is wrong in my files, I have searched on Google but I can not solve this problem. Any help would be appreciated.

oliveruas (Mon, 03 Jan 2022 19:36:31 GMT):
Hello and Happy new year to everyone, I am developing a University project. After following the docs' steps of deploying a production network, I think I finally achieve the goal (without mutual TLS) in a local environment (5 orderers, 5 peers, 5 CAs and 5 TLSCA) using docker containers. Problems appear when I use the application with this network configuration. Both enrollUser.js and registerUser.js works but submitTransaction does not. It looks like the tx proposal is sent 3 times to the same peer because I attached the 5 dev-peers docker containers and only one executes the function of the chaincode. However, if I execute the peer invoke command using the bash, the tx updates the world state. I do not know what is wrong in my files, I have searched on Google but I can not solve this problem. Any help would be appreciated. I attach the error printed. This is the submitTransaction (as those of application examples): `'use strict'; const fs = require('fs'); const path = require('path'); const { Wallets, Gateway } = require('fabric-network'); const testNetworkRoot = path.resolve(require('os').homedir(), 'go/src/github.com/hyperledger/fabric-samples/tfm/tfm-network/fabric-ca/'); async function main() { const gateway = new Gateway(); const wallet = await Wallets.newFileSystemWallet('./wallet'); try { let args = process.argv.slice(2); const identityLabel = args[0]; const functionName = args[1]; const chaincodeArgs = args.slice(2); // const orgName = identityLabel.split('@')[1]; const orgNameWithoutDomain = 'originator'; let connectionProfile = JSON.parse(fs.readFileSync( path.join(testNetworkRoot, orgNameWithoutDomain, `/connection-${orgNameWithoutDomain}.json`), 'utf8') ); let connectionOptions = { identity: identityLabel, wallet: wallet, // clientTlsIdentity: 'tlsadmin@originator', discovery: {enabled: true, asLocalhost: true} }; console.log("Here"); console.log('Connect to a Hyperledger Fabric gateway.'); await gateway.connect(connectionProfile, connectionOptions); console.log('Use channel "securitization".'); const network = await gateway.getNetwork('securitization'); console.log('Use Origination.'); const contract = network.getContract('securitizationcode'); console.log('Submit ' + functionName + ' transaction.'); contract.createTransaction(functionName) // const response = await contract.createTransaction(functionName, ...chaincodeArgs); const response = await contract.submitTransaction(functionName, ...chaincodeArgs); if (`${response}` !== '') { console.log(`Response from ${functionName}: ${response}`); } } catch (error) { console.log(`Error processing transaction. ${error}`); console.log(error.stack); } finally { console.log('Disconnect from the gateway.'); gateway.disconnect(); } } main();`

oliveruas (Mon, 03 Jan 2022 19:37:45 GMT):

application_logs.txt

oliveruas (Mon, 03 Jan 2022 19:38:32 GMT):

peer_logs.txt

oliveruas (Mon, 03 Jan 2022 19:38:35 GMT):

peer_logs.txt

oliveruas (Mon, 03 Jan 2022 19:38:36 GMT):

peer_logs.txt

oliveruas (Mon, 03 Jan 2022 19:38:38 GMT):

peer_logs.txt

loganb 6 (Mon, 03 Jan 2022 21:45:18 GMT):
Has joined the channel.

loganb 6 (Mon, 03 Jan 2022 21:45:47 GMT):
hi everyone. is this the community chat for hyperledger? i'm looking for other people working on Fabric projects

haruharu (Tue, 04 Jan 2022 01:10:29 GMT):
Has joined the channel.

zondervan.v.calvez (Tue, 04 Jan 2022 01:43:37 GMT):
Has joined the channel.

micoferdinand (Tue, 04 Jan 2022 01:50:08 GMT):
Has joined the channel.

aldous.arvin.alvarez (Tue, 04 Jan 2022 01:53:10 GMT):
Has joined the channel.

charellesandig (Tue, 04 Jan 2022 02:09:52 GMT):
Has joined the channel.

conanoc (Tue, 04 Jan 2022 02:33:24 GMT):
What's the endorsement policy of your channel `securitization`?

Tenno (Tue, 04 Jan 2022 07:31:25 GMT):
What kind of projects ?

Tenno (Tue, 04 Jan 2022 07:40:04 GMT):
If you can invoke by using bash,that means the peer you are using is working good .But ,you say the application's submit goes wrong,I think it may because the endorsement policy OR tls files .You can check both of these ,hope you find the solution.

Tenno (Tue, 04 Jan 2022 07:43:01 GMT):
TRY THIS:

Tenno (Tue, 04 Jan 2022 07:43:03 GMT):
./network-start.sh deployCC -ccn project_test -ccv 1 -cci initLedger -ccl ${CC_SRC_LANGUAGE} -ccp ${CC_SRC_PATH}

Tenno (Tue, 04 Jan 2022 07:49:11 GMT):
Are you setup the network on VMware OR you close your server ,It will cause the docker container DOWN.IF you want reup these containers , try $ docker start ID/NAME

suomea (Tue, 04 Jan 2022 08:36:08 GMT):
Has joined the channel.

mr3e (Tue, 04 Jan 2022 09:23:40 GMT):
Has joined the channel.

vborisik (Tue, 04 Jan 2022 11:18:11 GMT):
Has joined the channel.

RouteSagar (Tue, 04 Jan 2022 12:20:11 GMT):
I tried on that it worked for me , Thanks Tenno

RouteSagar (Tue, 04 Jan 2022 12:20:48 GMT):
Yes it works I tried it on same day, Thanks Tenno !!

RouteSagar (Tue, 04 Jan 2022 12:23:38 GMT):
I am deploying the fabcar using custom chaincode in Java but it will fails as below when I try to deploy "Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input * What went wrong: Task 'shadowJar' not found in root project 'fabcar'." If anyone encountered such error pls let me know the fix

RouteSagar (Tue, 04 Jan 2022 12:26:07 GMT):
Note :- I tried to rename the "build.gradle" to "shadow-build.gradle" in this case the CC gets packaged & even installed but the build for gradle fails with error "* What went wrong: Task 'installDist' not found in root project 'fabcar'."

RouteSagar (Tue, 04 Jan 2022 12:28:46 GMT):
@Tenno FYS please if you came across this erro...

AlaeEddineLahlali (Tue, 04 Jan 2022 14:04:34 GMT):
Has joined the channel.

AlaeEddineLahlali (Tue, 04 Jan 2022 14:05:34 GMT):
Hi everyone, there is any code source for FabToken? thanks

tkuhrt (Tue, 04 Jan 2022 14:41:42 GMT):
https://github.com/hyperledger-labs/fabric-token-sdk

billet75 (Tue, 04 Jan 2022 15:14:29 GMT):
Has joined the channel.

arvieira (Tue, 04 Jan 2022 15:41:51 GMT):
Has joined the channel.

loganb 6 (Tue, 04 Jan 2022 18:01:43 GMT):
all kinds really! i'm working on a side project using the Fabric and am curious to see what others are building

damiandennis (Tue, 04 Jan 2022 18:46:57 GMT):
Has joined the channel.

Nocturne (Wed, 05 Jan 2022 00:22:10 GMT):
Has joined the channel.

Nocturne (Wed, 05 Jan 2022 00:36:09 GMT):
Hi. When the fabric nodes (peer, orderer) have a lot of blocks, too many files are created in one directory. In a specific file system, if there are too many files in one directory, there is an issue that the speed of reading files becomes slow. These are blockfile_xxxxxx files in the '/hyperledger/production/ledgersData/chains/chains/' directory. Is there any way to solve this? Or can the Hyperledger Fabric foundation update the related logic and release it? Or is it okay to register as an issue on github.com/hyperledger/fabric?

Tenno (Wed, 05 Jan 2022 01:27:23 GMT):
Make sure you have this file:java\build.gradle,which you can find `plugins { id 'com.github.johnrengelman.shadow' version '5.1.0' id 'java' }`on the top of it,and run the shadowJar. This file will *Import dependency into jar package*

PunleuChomnan (Wed, 05 Jan 2022 09:22:18 GMT):
Has joined the channel.

AlaeEddineLahlali (Wed, 05 Jan 2022 09:23:01 GMT):
thanks you, please if i can ask you! can we create private blockchain + private cryptocurrency with fabrik-token-sdk?

AlaeEddineLahlali (Wed, 05 Jan 2022 11:30:13 GMT):
hello, can we create private blockchain + private cryptocurrency with fabrik-token-sdk?

VenessaK (Wed, 05 Jan 2022 14:38:11 GMT):
Has joined the channel.

VenessaK (Wed, 05 Jan 2022 14:43:07 GMT):
Hi, How Chaincode features works? How following chaincode features are achieved Chaincode lifecycle flow is used in 2.x where all the organization have their say in chaincode to be used in channel in which chaincode definition is committed to ledger. At what point this committed chaincode definition is used? Is this chaincode definition committed to channel later used by peer and orderer when ordering the transaction to check if there are correct endorsements? Lifecycle 2.x allows to add different chaincode logic on the peers and checkcommit readiness still returns true when organization even approves different chaincode packages. How this works? Why different fingerprint is not detected as was detected in v1.4? At what point this fingerprint check is done

oliveruas (Wed, 05 Jan 2022 15:47:46 GMT):

configtx.txt

oliveruas (Wed, 05 Jan 2022 15:47:46 GMT):

configtx.txt

Zeddrich (Wed, 05 Jan 2022 15:59:11 GMT):
Has joined the channel.

Zeddrich (Wed, 05 Jan 2022 16:03:14 GMT):
Hi I've been struggling for a while with something. I try to implement a digital signature algorithm to protect the execution of my smart contracts, however when I try to run the chaincode it keeps telling me that it's unable to find the file "/dev/tpmrm0". I'm currently trying to find the file that is responsible for the docker container in which the chaincode runs such that I can mount the file. Sadly, my endeavor wasn't very fruitfull, so does anyone know where I can find the file?

Zeddrich (Wed, 05 Jan 2022 16:04:57 GMT):
I'm using go btw and I'm running ubuntu 20.04

PureBlack (Thu, 06 Jan 2022 01:07:47 GMT):
Has joined the channel.

esainty (Thu, 06 Jan 2022 01:20:07 GMT):
Has joined the channel.

pvsmagbojos (Thu, 06 Jan 2022 04:37:42 GMT):
Has joined the channel.

pvsmagbojos (Thu, 06 Jan 2022 04:40:12 GMT):
Hello, Im a newbie developer that just got started with Fabric, I was following the tutorials but seem to have gotten stuck with the installation of the fabric and fabric samples due to this error: curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.4.0 1.5.2 Clone hyperledger/fabric-samples repo ===> Cloning hyperledger/fabric-samples repo main: line 62: git: command not found fabric-samples v2.4.0 does not exist, defaulting to main. fabric-samples main branch is intended to work with recent versions of fabric. main: line 70: git: command not found Pull Hyperledger Fabric binaries ===> Downloading version 2.4.0 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.4.0/hyperledger-fabric-linux-amd64-2.4.0.tar.gz main: line 79: curl: command not found tar: invalid magic tar: short read ==> There was an error downloading the binary file. ------> 2.4.0 platform specific fabric binary is not available to download <----

ntlm (Thu, 06 Jan 2022 05:38:38 GMT):
Has joined the channel.

Tenno (Thu, 06 Jan 2022 05:46:26 GMT):
Seems like some logic error ,you can use anther way to download the binary file: open the link with browser,download the tar and send to your server

obioram (Thu, 06 Jan 2022 06:36:50 GMT):
Has joined the channel.

ayush5936 (Thu, 06 Jan 2022 06:38:39 GMT):
Has joined the channel.

conanoc (Thu, 06 Jan 2022 08:50:06 GMT):
Yeah. What I expected was that signature policy for your chaincode. I'm not sure but `OUTOF` should be `OutOf`. And you should use `member` role instead of `peer` role if the OU(Organizational Units) is not enabled. So, try with is: --signature-policy "OutOf(3,'originatorMSP.member','farmerMSP.member','ratingagencyMSP.member','spvMSP.member', 'investorMSP.member')"

Teharjula (Thu, 06 Jan 2022 09:59:20 GMT):
Has joined the channel.

Teharjula (Thu, 06 Jan 2022 10:03:29 GMT):
Hello! The same problem here as well. So how to do it manually? Really would like to get this work.

Teharjula (Thu, 06 Jan 2022 10:03:29 GMT):
Hello! The same problem here as well. So how to do it manually?

pvsmagbojos (Thu, 06 Jan 2022 11:19:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xf7RnoFopB4Qv58kZ) This may sound very ignorant but may I get an explanation how I would send the tar to the server, and if I am missing any other steps that were supposed to be covered by the curl command?

pvsmagbojos (Thu, 06 Jan 2022 11:19:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xf7RnoFopB4Qv58kZ) Do you mind if you can explanation how I would send the tar to the server, and if I am missing any other steps that were supposed to be covered by the curl command? I may be missing a lot of things as I truly am inexperienced in any of this :<

pvsmagbojos (Thu, 06 Jan 2022 11:19:52 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=Xf7RnoFopB4Qv58kZ) Do you mind if you can explain how I would send the tar to the server, and if I am missing any other steps that were supposed to be covered by the curl command? I may be missing a lot of things as I truly am inexperienced in any of this :<

DIBYENDUBAG (Thu, 06 Jan 2022 11:51:23 GMT):
Has joined the channel.

Paul_Tabled (Thu, 06 Jan 2022 12:09:12 GMT):
Has joined the channel.

jas191 (Thu, 06 Jan 2022 14:12:47 GMT):
Has joined the channel.

jas191 (Thu, 06 Jan 2022 14:16:55 GMT):
Good morning guys, I been trying to troubleshoot this issue for days now and was woundering if anyone any tips for a solution. trying to upload a image file via firefly using: curl --location --request POST 'http://35.175.18.83:5000/api/v1/namespaces/default/data' \ --form 'file=@"/C:/Users/mbarbuzzi/Downloads/sleeping-mask.png"' and pull the image file and it's information so we display in our app. however I can't figure how to do that using the Data Exchange API I try using /data as a path or the blob hash but keeping no blob found. Like: http://35.17.184.83:5105/api/v1/blobs/aacd217811aae10798bb53357f2d4b914762819e3d6b767a337b5b15c079e6c6 not sure which group is best to ask this question.

MyeongheeJoung (Thu, 06 Jan 2022 18:37:47 GMT):
Has joined the channel.

Sergioco 2 (Thu, 06 Jan 2022 19:50:04 GMT):
Has joined the channel.

Sergioco 2 (Thu, 06 Jan 2022 20:01:19 GMT):
I have 2 assets, and using this function to try find if asset x exist to create asset y async relationExists(ctx, relationId) { const buffer = await ctx.stub.getState(relationId); return (!!buffer && buffer.length > 0); } when i create the asset x(relation) on the ibm extension that code work, but when i create the asset with the sample on fabcar dont work https://github.com/hyperledger/fabric-samples/blob/main/fabcar/javascript/invoke.js

Sergioco 2 (Thu, 06 Jan 2022 20:01:19 GMT):
I have 2 assets, and using this function to try find in asset y if asset x exist to create asset y async relationExists(ctx, relationId) { const buffer = await ctx.stub.getState(relationId); return (!!buffer && buffer.length > 0); } when i create the asset x(relation) on the ibm extension that code work, but when i create the asset with the sample on fabcar dont work https://github.com/hyperledger/fabric-samples/blob/main/fabcar/javascript/invoke.js

Sergioco 2 (Thu, 06 Jan 2022 20:01:19 GMT):
I have 2 assets, and using this function to try find in asset y if asset x exist to create asset y async relationExists(ctx, relationId) { const buffer = await ctx.stub.getState(relationId); return (!!buffer && buffer.length > 0); } when i create the asset x(relation) on the ibm extension that code work, but when i create the asset with the sample on fabcar dont work on asset y, but work using asset x chaincode https://github.com/hyperledger/fabric-samples/blob/main/fabcar/javascript/invoke.js

tkuhrt (Thu, 06 Jan 2022 22:51:42 GMT):
I see two errors in your output that needs to be addressed: 1. main: line 62: git: command not found 2. main: line 79: curl: command not found

tkuhrt (Thu, 06 Jan 2022 22:51:53 GMT):
What operating system are using? Have you installed git and curl?

tkuhrt (Thu, 06 Jan 2022 22:52:36 GMT):
Check out the prerequisites: https://hyperledger-fabric.readthedocs.io/en/release-2.2/prereqs.html

tkuhrt (Thu, 06 Jan 2022 22:53:54 GMT):
Did you ask in the #firefly channel?

Teharjula (Fri, 07 Jan 2022 06:12:10 GMT):
git version 2.34.1.windows.1

Teharjula (Fri, 07 Jan 2022 06:12:10 GMT):
These versions I have currently: git version 2.34.1.windows.1 curl 7.80.0 And using Windows 10.

Teharjula (Fri, 07 Jan 2022 06:12:10 GMT):
These versions I have currently: - git version 2.34.1.windows.1 - curl 7.80.0 And using Windows 10.

Teharjula (Fri, 07 Jan 2022 06:12:10 GMT):
These versions I have currently: - git version 2.34.1.windows.1 - curl 7.80.0 And using Windows 10.``` I have tried to follow those prerequisites... ```

Teharjula (Fri, 07 Jan 2022 06:12:10 GMT):
These versions I have currently: - git version 2.34.1.windows.1 - curl 7.80.0 And using Windows 10. I have tried to follow those prerequisites...

Teharjula (Fri, 07 Jan 2022 09:45:19 GMT):
git clone -b main https://github.com/hyperledger/fabric-samples.git && cd fabric-samples <=line 62, seems to work directly from command prompt

Teharjula (Fri, 07 Jan 2022 09:48:37 GMT):
curl -L --retry 5 --retry-delay 3 "https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh" | tar xz || rc=$? <= line 79 what this rc should be?

DeepakMule (Fri, 07 Jan 2022 14:16:21 GMT):
I am using HLF version 2.2. I have multi ORG network setup as ORG1, ORG2, ORG3 I have installed chaincode with signature policy ORG1 & ORG2. From API, i am receiving multiple transaction data where each transaction is depend on earlier transaction state. I am invoking chaincode for each transaction from received transaction list after receiving chaincode invocation response. for some transaction I am getting follow error 2022-01-07T08:30:47.993Z - error: [DiscoveryHandler]: compareProposalResponseResults[undefined] - read/writes result sets do not match index=1 2022-01-07T08:30:47.993Z - error: [Transaction]: Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Peer endorsements do not match error while invoking chaincode : Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Peer endorsements do not match at newEndorsementError (\node_modules\fabric-network\lib\transaction.js:49:12) at getResponsePayload (\node_modules\fabric-network\lib\transaction.js:17:23) at Transaction.submit (\node_modules\fabric-network\lib\transaction.js:212:28) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async TransactionService.invokeChaincode (\api\services\common\TransactionService.js:120:25) { responses: [], errors: [ Error: Peer endorsements do not match at DiscoveryHandler._endorse (\node_modules\fabric-common\lib\DiscoveryHandler.js:295:14) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Endorsement.send (\node_modules\fabric-common\lib\Proposal.js:409:15) at async Transaction.submit (\node_modules\fabric-network\lib\transaction.js:210:34) at async TransactionService.invokeChaincode (\api\services\common\TransactionService.js:120:25) { endorsements: [Array] } ] } is there any mechanism in Fabric Node SDK to wait / confirm that earlier transaction is committed on endorsing peers ?

DeepakMule (Fri, 07 Jan 2022 14:16:21 GMT):
Multi ORG endorsement failure for sequential dependent transaction execution I am using HLF version 2.2. I have multi ORG network setup as ORG1, ORG2, ORG3 I have installed chaincode with signature policy ORG1 & ORG2. From API, i am receiving multiple transaction data where each transaction is depend on earlier transaction state. I am invoking chaincode for each transaction from received transaction list after receiving chaincode invocation response. for some transaction I am getting follow error 2022-01-07T08:30:47.993Z - error: [DiscoveryHandler]: compareProposalResponseResults[undefined] - read/writes result sets do not match index=1 2022-01-07T08:30:47.993Z - error: [Transaction]: Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Peer endorsements do not match error while invoking chaincode : Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Peer endorsements do not match at newEndorsementError (\node_modules\fabric-network\lib\transaction.js:49:12) at getResponsePayload (\node_modules\fabric-network\lib\transaction.js:17:23) at Transaction.submit (\node_modules\fabric-network\lib\transaction.js:212:28) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async TransactionService.invokeChaincode (\api\services\common\TransactionService.js:120:25) { responses: [], errors: [ Error: Peer endorsements do not match at DiscoveryHandler._endorse (\node_modules\fabric-common\lib\DiscoveryHandler.js:295:14) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Endorsement.send (\node_modules\fabric-common\lib\Proposal.js:409:15) at async Transaction.submit (\node_modules\fabric-network\lib\transaction.js:210:34) at async TransactionService.invokeChaincode (\api\services\common\TransactionService.js:120:25) { endorsements: [Array] } ] } is there any mechanism in Fabric Node SDK to wait / confirm that earlier transaction is committed on endorsing peers ?

tkuhrt (Fri, 07 Jan 2022 15:44:09 GMT):
Sorry, I am not a Windows user. Make sure you are running the shell script in a way that understands bash commands. $? is the exit status of the last executed command in bash

oliveruas (Fri, 07 Jan 2022 15:51:43 GMT):
Hi @DeepakMule try to point endorsers with contract.createTransaction(functionName).setEndorsingPeers(['peername.org1name.domain','peername.org2name.domain']). I've got that same problem and finally solved it using that.

oliveruas (Fri, 07 Jan 2022 15:53:00 GMT):
Hi @conanoc , thank you for your advice. I finally solved it using setEndorsingPeers()

mzago (Fri, 07 Jan 2022 16:04:36 GMT):
Has joined the channel.

KentBull (Fri, 07 Jan 2022 16:16:39 GMT):
Did upgrading to 1.5.1 resolve your issue @dev2020 ?

KentBull (Fri, 07 Jan 2022 16:20:07 GMT):
@rohitcha Did upgrading to 1.5.1 resolve your issue?

KentBull (Fri, 07 Jan 2022 16:20:24 GMT):
Also, @manish-sethi have you used the re-enrollment API?

KentBull (Fri, 07 Jan 2022 16:21:43 GMT):
@raylau12 were you able to resolve your issue? We are facing the expiration problem now as well and are looking for solutions.

pawlak (Fri, 07 Jan 2022 17:12:47 GMT):
Has joined the channel.

gouthamdk (Sat, 08 Jan 2022 07:03:23 GMT):
Has joined the channel.

iraq17 (Sat, 08 Jan 2022 09:47:37 GMT):
Has joined the channel.

iraq17 (Sat, 08 Jan 2022 09:48:15 GMT):
Pull Hyperledger Fabric binaries ===> Downloading version 2.4.0 platform specific fabric binaries ===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.4.0/hyperledger-fabric-linux-amd64-2.4.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 680 100 680 0 0 1422 0 --:--:-- --:--:-- --:--:-- 1419 0 0 0 0 0 0 0 0 --:--:-- 0:00:15 --:--:-- 0 curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to objects.githubusercontent.com:443 gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now ==> There was an error downloading the binary file. ------> 2.4.0 platform specific fabric binary is not available to download <---

iraq17 (Sat, 08 Jan 2022 09:48:47 GMT):
I am facing the above error while installing Fabric can anyone help me out please?

iraq17 (Sat, 08 Jan 2022 09:59:02 GMT):
hyperledger/fabric-ca:1.5.2 Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=hyperledger%2Ffabric-ca&tag=1.5.2": dial unix /var/run/docker.sock: connect: permission denied

iraq17 (Sat, 08 Jan 2022 09:59:12 GMT):
and this

neetusharma (Sat, 08 Jan 2022 11:26:00 GMT):
Has joined the channel.

iraq17 (Sat, 08 Jan 2022 12:01:02 GMT):
+ res=1 Error: Post "https://localhost:7053/participation/v1/channels": read tcp 127.0.0.1:36498->127.0.0.1:7053: read: connection reset by peer Channel creation failed

iraq17 (Sat, 08 Jan 2022 12:01:02 GMT):
Channel creation failed./network.sh createChannel -c channel1 Creating channel 'channel1'.+ res=1...... Error: Post "https://localhost:7053/participation/v1/channels": read tcp 127.0.0.1:36498->127.0.0.1:7053: read: connection reset by peer Can anyone help regarding channel creation

Teharjula (Sat, 08 Jan 2022 16:04:11 GMT):
Changed machine where I have windows 11. I made everything same way and now script works fine. No idea what was the problem with windows 10...

mjs19780 (Sat, 08 Jan 2022 20:14:40 GMT):
Has joined the channel.

SAYED94 (Sat, 08 Jan 2022 20:33:45 GMT):
Has joined the channel.

wifisunset94 (Sat, 08 Jan 2022 22:06:03 GMT):
Has joined the channel.

sayraj (Sun, 09 Jan 2022 08:49:21 GMT):
Has joined the channel.

Tushar199 1 (Sun, 09 Jan 2022 13:26:11 GMT):
Has joined the channel.

Tushar199 1 (Sun, 09 Jan 2022 16:17:24 GMT):
anyone up?

Tenno (Mon, 10 Jan 2022 01:35:22 GMT):
check your scripts/createChannel file ,find the mothod name createChannel ,make sure your (peer channel create ...... )code is right.

Tenno (Mon, 10 Jan 2022 01:40:32 GMT):
It is your net problem .The best solution is download the binaries from web and copy to your fabric file

ayush5936 (Mon, 10 Jan 2022 04:43:11 GMT):
Hello everyone,how to create the new organisation in fabric samples example. Please let me know

DeepakMule (Mon, 10 Jan 2022 04:55:59 GMT):
Thanks for your input. I am already using this method Code snippet as below "await contract.createTransaction(fcn).setEndorsingOrganizations(...config.endorsingOrgs).submit(args);"

DeepakMule (Mon, 10 Jan 2022 04:55:59 GMT):
Thanks for your input. I am alreay using this method before submitting transaction. Code snippet as below "await contract.createTransaction(fcn).setEndorsingOrganizations(...config.endorsingOrgs).submit(args);"

Tenno (Mon, 10 Jan 2022 05:38:38 GMT):
In official code(fabric-sample)There is a file /test-network/addOrg3, You can follow that

iraq17 (Mon, 10 Jan 2022 05:49:50 GMT):
i am running the test channel script

oliveruas (Mon, 10 Jan 2022 06:50:13 GMT):
and still not working?

ayush5936 (Mon, 10 Jan 2022 07:14:08 GMT):
when i create new organisation it throw an error Command 'peer' not found, did you mean:

DeepakMule (Mon, 10 Jan 2022 07:22:41 GMT):
not working

DeepakMule (Mon, 10 Jan 2022 07:27:00 GMT):
in my case I have set of transactions to execute on network one after another and those transactions are depends on earlier transaction state. The ORG which submit this transaction is waiting to update the state on offchain DB state to update via BlockListener. but there is no way that I can confirm whether the earlier transaction is committed on other ORG's

akhmad_219 (Mon, 10 Jan 2022 08:27:50 GMT):
Has joined the channel.

akhmad_219 (Mon, 10 Jan 2022 08:30:38 GMT):
hello everyone, can hyperledger fabric achieve high availability as a database?

oliveruas (Mon, 10 Jan 2022 08:32:13 GMT):
Check the method addCommitListener. And also check the logs of the containers which have installed chaincode (it is likely that just one peer is executing the transaction proposal). If this does not work, I unfortunately cannot anymore help you.

Tenno (Mon, 10 Jan 2022 09:02:08 GMT):
I dont think they can be put together.You can say Hyperledger fabric as fast as Other blockChain product.Or you say mysql as fast as TDEngine,But you cant compare fabric with a database

akhmad_219 (Mon, 10 Jan 2022 09:04:09 GMT):
okay, but we still can provide data on each peer

akhmad_219 (Mon, 10 Jan 2022 09:05:54 GMT):
I wanna ask again how do we manage endorsment policies so that only 1 organization approval is required in each transaction?

akhmad_219 (Mon, 10 Jan 2022 09:06:46 GMT):
sorry, i am newbie here

iamit-singh (Mon, 10 Jan 2022 09:18:23 GMT):
Has joined the channel.

arieger (Mon, 10 Jan 2022 10:44:51 GMT):
Has joined the channel.

iraq17 (Mon, 10 Jan 2022 11:03:38 GMT):
which hyperledger version is better to start with as a newbie. i have to use for research purpose

amitgarg12 (Mon, 10 Jan 2022 11:44:30 GMT):
Has joined the channel.

antauloglou (Mon, 10 Jan 2022 15:38:19 GMT):
Has joined the channel.

tkuhrt (Mon, 10 Jan 2022 16:08:35 GMT):
Glad you got it resolved

inttrading (Mon, 10 Jan 2022 17:11:44 GMT):
Has joined the channel.

Tenno (Tue, 11 Jan 2022 01:09:10 GMT):
try 2.20

samyakjain (Tue, 11 Jan 2022 04:42:54 GMT):
Has joined the channel.

KodeCracker (Tue, 11 Jan 2022 04:52:15 GMT):
Has joined the channel.

KodeCracker (Tue, 11 Jan 2022 04:55:01 GMT):
failing to start hyperledger explorer. Both the docker and manual

KodeCracker (Tue, 11 Jan 2022 04:55:20 GMT):
Can anyone help?

KodeCracker (Tue, 11 Jan 2022 05:09:31 GMT):
./network.sh down

KodeCracker (Tue, 11 Jan 2022 05:09:43 GMT):
./network.sh up

KodeCracker (Tue, 11 Jan 2022 05:10:07 GMT):
./network.sh createChannel -c mycoolchannel

KodeCracker (Tue, 11 Jan 2022 05:10:19 GMT):
Try that

KodeCracker (Tue, 11 Jan 2022 05:41:23 GMT):
[2022-01-11T07:40:07.968] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> [2022-01-11T07:40:07.968] [ERROR] main - Error : [ 'Default client peer is down and no channel details available database' ]

Tenno (Tue, 11 Jan 2022 05:55:18 GMT):
Make sure you have changed your test-network.json file and copy organizations file to your explorer

KodeCracker (Tue, 11 Jan 2022 06:06:38 GMT):
I copy from which file?

KodeCracker (Tue, 11 Jan 2022 06:09:28 GMT):
And paste to which file

Tushar199 1 (Tue, 11 Jan 2022 06:12:46 GMT):
$ ./network.sh createChannel Creating channel 'mychannel'. If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb Generating channel genesis block 'mychannel.block' /c/Users/Tushar/Desktop/Capstone/fabric-samples/bin/configtxgen + configtxgen -profile TwoOrgsApplicationGenesis -outputBlock ./channel-artifacts/mychannel.block -channelID mychannel 2022-01-11 11:41:05.242 IST 0001 INFO [common.tools.configtxgen] main -> Loading configuration 2022-01-11 11:41:05.242 IST 0002 ERRO [viperutil] ReadInConfig -> Unable to open the config file: 2022-01-11 11:41:05.242 IST 0003 PANI [common.tools.configtxgen.localconfig] Load -> Error reading configuration: open : The system cannot find the file specified. 2022-01-11 11:41:05.242 IST 0004 PANI [common.tools.configtxgen] func1 -> Error reading configuration: open : The system cannot find the file specified. panic: Error reading configuration: open : The system cannot find the file specified. [recovered] panic: Error reading configuration: open : The system cannot find the file specified.

Tushar199 1 (Tue, 11 Jan 2022 06:13:20 GMT):
Failed to generate channel configuration transaction...

Tushar199 1 (Tue, 11 Jan 2022 06:14:47 GMT):
anyone please help

tongYuSir (Tue, 11 Jan 2022 06:49:37 GMT):
Has joined the channel.

Tenno (Tue, 11 Jan 2022 07:36:55 GMT):
It is written in explorer official doc,you need to have a running fabric network ,and copy the /organizations to explorer.I can't paste a img, if you still don't understand ,go to see the official doc

hrishiballal (Tue, 11 Jan 2022 08:54:28 GMT):
Has joined the channel.

prashantr (Tue, 11 Jan 2022 09:26:11 GMT):
Has joined the channel.

Rahul11132133 (Tue, 11 Jan 2022 10:29:42 GMT):
Has joined the channel.

p10010 (Tue, 11 Jan 2022 12:10:09 GMT):
Has joined the channel.

samyak314 (Tue, 11 Jan 2022 12:35:59 GMT):
Has joined the channel.

samyak314 (Tue, 11 Jan 2022 12:37:41 GMT):
Hello everyone

samyak314 (Tue, 11 Jan 2022 12:39:04 GMT):
During Service up of network my ordered node is exiting from network container

samyak314 (Tue, 11 Jan 2022 12:39:09 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ccba0c928a1b hyperledger/fabric-peer:2.1 "peer node start" 48 minutes ago Up 48 minutes 0.0.0.0:7051->7051/tcp, :::7051->7051/tcp peer0.Pune.cdac-network.com 6509248ec6a9 hyperledger/fabric-couchdb "tini -- /docker-ent…" 49 minutes ago Up 48 minutes 4369/tcp, 9100/tcp, 0.0.0.0:8984->5984/tcp, :::8984->5984/tcp couchdb3 0e2e554eaa49 hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 49 minutes ago Up 48 minutes 0.0.0.0:8054->7054/tcp, :::8054->7054/tcp ca.Hyderabad.cdac-network.com f9a600e1a7ee hyperledger/fabric-couchdb "tini -- /docker-ent…" 49 minutes ago Up 48 minutes 4369/tcp, 9100/tcp, 0.0.0.0:6984->5984/tcp, :::6984->5984/tcp couchdb1 0911986ad5db hyperledger/fabric-couchdb "tini -- /docker-ent…" 49 minutes ago Up 48 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp, :::7984->5984/tcp couchdb2 39828094f1b3 hyperledger/fabric-orderer:2.3 "orderer" 49 minutes ago Exited (2) 48 minutes ago orderer3.cdac-network.com cc07fca4be4b hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 49 minutes ago Up 48 minutes 0.0.0.0:7054->7054/tcp, :::7054->7054/tcp ca.Pune.cdac-network.com b4016661a9c5 hyperledger/fabric-orderer:2.3 "orderer" 49 minutes ago Exited (2) 48 minutes ago orderer2.cdac-network.com 39688249609f hyperledger/fabric-peer:2.1 "peer node start" 49 minutes ago Up 48 minutes 7051/tcp, 0.0.0.0:8051->8051/tcp, :::8051->8051/tcp peer1.Pune.cdac-network.com 8ef5b2fd072b hyperledger/fabric-peer:2.1 "peer node start" 49 minutes ago Up 48 minutes 7051/tcp, 0.0.0.0:9051->9051/tcp, :::9051->9051/tcp peer0.Hyderabad.cdac-network.com e6d62d669c3c hyperledger/fabric-peer:2.1 "peer node start" 49 minutes ago Up 48 minutes 7051/tcp, 0.0.0.0:10051->10051/tcp, :::10051->10051/tcp peer1.Hyderabad.cdac-network.com 0a055c83892e hyperledger/fabric-orderer:2.3 "orderer" 49 minutes ago Exited (2) 48 minutes ago orderer.cdac-network.com 58d9d830d323 hyperledger/fabric-couchdb "tini -- /docker-ent…" 49 minutes ago Up 48 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp, :::5984->5984/tcp couchdb0

vborisik (Tue, 11 Jan 2022 13:38:57 GMT):
do a docker logs for this container and post some output

Ammar1974 (Tue, 11 Jan 2022 18:20:46 GMT):
Has joined the channel.

Ammar1974 (Tue, 11 Jan 2022 18:28:21 GMT):
Hello, I am facing a problem in a multi-node system. If I shutdown a node and start it again the peer on that node stops receiving chaincode requests from the client even though it seems to be on the gossip network. Strangely enough, this doesn't have if I simply reboot the system or bring the peer container up and down again.

raghunathanp95 (Tue, 11 Jan 2022 20:17:40 GMT):
Has joined the channel.

Tenno (Wed, 12 Jan 2022 01:16:05 GMT):
restart the docker container

JeffCantores (Wed, 12 Jan 2022 02:56:07 GMT):
Has joined the channel.

JeffCantores (Wed, 12 Jan 2022 02:57:53 GMT):

Clipboard - January 12, 2022 10:57 AM

JeffCantores (Wed, 12 Jan 2022 02:57:53 GMT):

Clipboard - January 12, 2022 10:57 AM

JeffCantores (Wed, 12 Jan 2022 02:58:15 GMT):
I am currently facing this problem, and I don't know what to do. Can anyone ahelp me?

JeffCantores (Wed, 12 Jan 2022 02:58:15 GMT):
I am currently facing this problem, and I don't know what to do. Can anyone help me?

Tenno (Wed, 12 Jan 2022 03:38:14 GMT):
The error means you haven't download binary file , use ``` $curl -sSL https://bit.ly/2ysbOFE | bash -s -- ```

JeffCantores (Wed, 12 Jan 2022 03:40:41 GMT):

Clipboard - January 12, 2022 11:39 AM

JeffCantores (Wed, 12 Jan 2022 03:41:46 GMT):
But when I tried to run the `test-network` folder using the `./network.sh up` the error I posted earlier shows up

Tenno (Wed, 12 Jan 2022 05:41:33 GMT):
There is a checkPrereqs() function in test-network/network-start.sh , Your error is happend when it find the config file .Maybe is your file path problem.

JeffCantores (Wed, 12 Jan 2022 05:42:53 GMT):
I will check it out. thanks

samyak314 (Wed, 12 Jan 2022 08:28:44 GMT):

samyak314 - Wed Jan 12 2022 21:58:07 GMT+0530 (India Standard Time).txt

nikolas (Wed, 12 Jan 2022 09:07:00 GMT):
@DeepakMule can you make sure that single org endorsement with the same config works regardless who is set as endorser? Try setting the endorser as org1, make sure it works, then try to set endorser org2 and check if it works. This might help you narrow down a configuration issue.

bestbeforetoday (Wed, 12 Jan 2022 09:40:07 GMT):
You can configure whatever endorsement policy is appropriate for your network: https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html

bestbeforetoday (Wed, 12 Jan 2022 09:44:27 GMT):
I would suggest v2.4. That allows you to use the new Fabric Gateway client APIs, which makes things easier and more consistent across client application programming languages: https://hyperledger-fabric.readthedocs.io/en/latest/gateway.html

samyak314 (Wed, 12 Jan 2022 11:35:22 GMT):

samyak314 - Thu Jan 13 2022 01:04:49 GMT+0530 (India Standard Time).txt

ataberkozek (Wed, 12 Jan 2022 14:08:45 GMT):
Did you add the binaries to your path? Or do you get any result when you run "peer version" command

lbradley (Wed, 12 Jan 2022 14:29:31 GMT):
Has joined the channel.

JeffCantores (Wed, 12 Jan 2022 14:56:37 GMT):
Hello @ataberkozek ! How can I add the binaries to my path?

JeffCantores (Wed, 12 Jan 2022 14:57:20 GMT):
Should I run the `peer version` command in the same CLI?

JeffCantores (Wed, 12 Jan 2022 14:58:32 GMT):

Clipboard - January 12, 2022 10:58 PM

akshitgoyal (Wed, 12 Jan 2022 17:26:12 GMT):
Has joined the channel.

StefanBratanov93 (Wed, 12 Jan 2022 19:26:57 GMT):
Has joined the channel.

Dazel (Thu, 13 Jan 2022 01:23:59 GMT):
Hey everyone. I accidentally deleted a user identity from my wallet. How can I "unregister" an identity from a CA client, so that I can register and enroll it again to get my user into the wallet? Sorry if the question is confusing, I'm a bit confused about how this works myself.

conanoc (Thu, 13 Jan 2022 01:28:26 GMT):
Just enroll the identity again. You don't have to unregister and register the identity again.

Dazel (Thu, 13 Jan 2022 01:29:59 GMT):
In the sample code I'm initially following the enroll method needs a enrollementSecret parameter, which is obtained throught the register method. How can I get that variable?

conanoc (Thu, 13 Jan 2022 01:40:58 GMT):
You can change the secret of the identity with fabric-ca-client. `fabric-ca-client identity modify user1 --id.secret 12345` Or you could remove the identity if you want. `fabric-ca-client identity remove user1` https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/clientcli.html#identity-command

Dazel (Thu, 13 Jan 2022 01:43:44 GMT):
I'll try this out, thanks for the help

HaBerber (Thu, 13 Jan 2022 07:59:20 GMT):
Has joined the channel.

oliveruas (Thu, 13 Jan 2022 08:51:21 GMT):
Binaries are in fabric-samples/bin folder. Try: export PATH=${HOME}/PathToBinaries:$PATH

shaikh47 (Thu, 13 Jan 2022 10:12:01 GMT):
Has joined the channel.

rfleschenberg (Thu, 13 Jan 2022 16:01:53 GMT):
Has joined the channel.

canenas (Thu, 13 Jan 2022 23:07:44 GMT):
Hello, I've got a couply of newbie questions with regards to the ordering service. I'm trying to understand as to who owns the ordering service. Also with regards to architecture, should each organization maintain their own orderer? These orderers would have their identities registered with the orderer MSP and not the organization MSP correct? Also what's the point of having multiple ordering nodes, running the raft protocol apart from redundancy?

yacovm (Thu, 13 Jan 2022 23:45:35 GMT):
> Also what's the point of having multiple ordering nodes, running the raft protocol apart from redundancy? no point other than redundancy

yacovm (Thu, 13 Jan 2022 23:45:55 GMT):
> should each organization maintain their own orderer? No, only if the organization can afford it.

yacovm (Thu, 13 Jan 2022 23:46:25 GMT):
> These orderers would have their identities registered with the orderer MSP and not the organization MSP correct? Right like here: https://github.com/hyperledger/fabric/blob/main/sampleconfig/configtx.yaml#L66

canenas (Fri, 14 Jan 2022 00:59:18 GMT):
Fantastic Thanks for your response

JeffCantores (Fri, 14 Jan 2022 03:35:40 GMT):
Thank you for answering my questions! I tried downloading the `fabric-samples` folder using the command `curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh| bash -s` , and when I looked at the `bin` folder, I see that the binary files has the file extension .exe on it. It seems to work now, but I am currently facing a new blocker:

JeffCantores (Fri, 14 Jan 2022 03:37:35 GMT):

Clipboard - January 14, 2022 11:36 AM

iamit-singh (Fri, 14 Jan 2022 04:17:51 GMT):
Hi everyone, we are facing this issue with the Gateway implementation of fabric node SDK. In our app, we have multiple users parallelly submitting transactions to the blockchain. Every user identity needs a separate gateway instance. Creating a new Gateway object takes time and we are only able to process about 5-10 requests per second at max. Creating more gateway instances in parallel execution throws connection request/connection timeout errors. Is there room for improvement in the Fabric Node SDK or are we doing something wrong?

iliketurtles69 (Fri, 14 Jan 2022 05:09:12 GMT):
Has joined the channel.

huonghope (Fri, 14 Jan 2022 08:48:14 GMT):
Has joined the channel.

nitishbhardwaj19 (Fri, 14 Jan 2022 09:07:01 GMT):
Hi Everyone, I found a really interesting behavior in Hyperledger Fabric. I am using a test network of v2.4 with 2 org, 2 peer setup. I noticed that the *worldstate isn't being used to compute the chaincode result.* I have a chaincode which _+1 to the current value_ of a field. At the time of chaincode initialization, I set the default _value of an asset to be 100_. Execute a normal transaction and_ value gets updated to 101_. Now, I _accessed CouchDB _and *changed 101 to 10* to 1st org's peer. Try execute another transaction and this time, strangely the endorsement from 1st org peer (Same peer who's worldstate was updated) *endorses the transaction for 101 instead of 10*. The writeset of it's endorsement gets 102 as an output rather than 11. I tried to repeat the experiment by changing world state again to 10. This time I *just read the value from SDK-gateway* by using chaincode. *It returns 102 *itself instead of _10_. I am really not sure from where it's pickup the the right value even though the world state has some different value. Could anyone please explain how world state is being accessed and used in cases like this where someone tries to mess up with it. Thanks

nitishbhardwaj19 (Fri, 14 Jan 2022 09:07:01 GMT):
Hi Everyone, I found a really interesting behavior in Hyperledger Fabric. I am using a test network of v2.4 with 2 org, 2 peer setup. I noticed that the *worldstate isn't being used to compute the chaincode result.* I have a chaincode which _+1 to the current value_ of a field. At the time of chaincode initialization, I set the default _value of an asset to be 100_. Execute a normal transaction and_ value gets updated to 101_. Now, I _accessed CouchDB _and *changed 101 to 10* to 1st org's peer. Try execute another transaction and this time, strangely the endorsement from 1st org peer (Same peer who's worldstate was updated) *endorses the transaction for 101 instead of 10*. The writeset of it's endorsement gets 102 as an output rather than 11. I tried to repeat the experiment by changing world state again to 10. This time I *just read the value from SDK-gateway* by using chaincode. *It returns 102 *itself instead of _10_. I am really not sure from where it's pickup the the right value even though the world state has some different value. Could anyone please explain how world state is being accessed and used in cases like this where someone tries to mess up with it. Thanks FYI - @rickr, @nyet, @SpecialAgentCooper, @bestbeforetoday

veaceslav.dimitroglo (Fri, 14 Jan 2022 10:07:17 GMT):
Has joined the channel.

bestbeforetoday (Fri, 14 Jan 2022 10:12:28 GMT):
I guess there may also be the issue of trust. If only one organization runs the orderers, all the participating organizations in the network need to trust them to order transactions and cut blocks

bestbeforetoday (Fri, 14 Jan 2022 10:18:54 GMT):
You are correct that each identity needs its own Gateway instance, and creating a Gateway instance establishes (and then discards on close) at least one new gRPC connection, which is a relatively expensive operation

bestbeforetoday (Fri, 14 Jan 2022 10:21:54 GMT):
I would suggest maintaining a pool of Gateway instances that can be reused by its associated client identity for subsequent interactions. You likely will need to think about bounds for this pool, and a scheme to manage removal of members

bestbeforetoday (Fri, 14 Jan 2022 10:27:31 GMT):
You're also correct that there is room for improvement. With Fabric v2.4 the new Fabric Gateway client API provides a very similar API to the existing SDKs but has been architected to allow all Gateway instances (and all operations performed by those Gateway instances) to be carried out using only one persistent gRPC connection. You can still use multiple gRPC connection if you want to partition work across multiple connections, but you have control of that

bestbeforetoday (Fri, 14 Jan 2022 10:28:29 GMT):
If you are using (or can use) Fabric v2.4, I would recommend taking a look at the Fabric Gateway client API in preference to the older SDKs: https://github.com/hyperledger/fabric-gateway

bestbeforetoday (Fri, 14 Jan 2022 10:28:29 GMT):
If you are using (or can use) Fabric v2.4, I would recommend taking a look at the Fabric Gateway client API in preference to the older SDKs: https://hyperledger.github.io/fabric-gateway/

bestbeforetoday (Fri, 14 Jan 2022 10:30:51 GMT):
An example of using the new client API is in the main Fabric v2.4 documentation here: https://hyperledger-fabric.readthedocs.io/en/release-2.4/write_first_app.html

tdiesler (Fri, 14 Jan 2022 10:42:16 GMT):
Has left the channel.

iamit-singh (Fri, 14 Jan 2022 11:29:39 GMT):
Thanks @bestbeforetoday for your response

iamit-singh (Fri, 14 Jan 2022 11:33:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=YLdWNJpXggo6qv4db) We implemented the exact same workaround already 😀

iamit-singh (Fri, 14 Jan 2022 11:34:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-questions?msg=bgZPRP9rRZpH3wQs4) That's great news

kimzter (Fri, 14 Jan 2022 12:58:17 GMT):
Has joined the channel.

bestbeforetoday (Fri, 14 Jan 2022 13:09:06 GMT):
I'm not sure of the reason. It might be the value is cached. Either way, you're dealing with an immutable ledger, not a database where you can just change records within it. Modifying the world state database is not something you should be doing. You update state by submitting transactions that modify ledger keys

Cassius87 (Fri, 14 Jan 2022 13:23:53 GMT):
Has joined the channel.

Cassius87 (Fri, 14 Jan 2022 13:33:32 GMT):
Orderer Service Peer and Smart Contract

Cassius87 (Fri, 14 Jan 2022 13:38:00 GMT):
Hi, My names is Antonio and i come from Italy. In this days i'm designing an fabric architecture for an iimportant project. My network will have one channel that represents a community of n peer. This later can endor the transaction and to do basic operations. In that community there will be and Administrator. It will be the orderer , the Channel configurator and network configurator. The administrator will receive the reward from external national institutions. The idea is to distribute that reward to the peer in the community with a smart contract. The Administratir, therefore ordere, will receive the reward then the smart contract automatically distribute the reward based on some parameters. The question is: The smart contract can receive the events from orderer, therefore administrator network and channel, of reward received and automatically distribute the reward? Antonio

nitishbhardwaj19 (Fri, 14 Jan 2022 13:55:40 GMT):
I completely agree. This exercise was to ensure that even if someone tampers with world state, the system would be able to identify and deal with it. You are absolutely right. From v2.2, peer has a cache which works as default with memory size of 64MB. The value is being picked from cache at peer level to endorse the transaction. To validate this theory, I changed the default cache size on Peer to 0MB. Modified the world state again and executed the transaction. This time, both Peers successfully endorsed the transaction but their results were different. Gateway ensured this by checking their resultset along with their endorsement status and thrown an error that Endorsement doesn't match before it even hits the orderer. This works like a charm as it's supposed to. I wasn't aware of Peer cache which led to this confusion. Thanks for your support.

bestbeforetoday (Fri, 14 Jan 2022 14:00:47 GMT):
Thanks for sharing the results of your investigation too! The idea of an endorsement policy requiring multiple endorsements (from different organizations) is to avoid a peer (or organization) being able to manipulate the data in this way. The proposal responses need to match exactly for a transaction to be successfully committed

SeanConnolly (Fri, 14 Jan 2022 17:39:19 GMT):
Has joined the channel.

dhruvsharma (Fri, 14 Jan 2022 19:22:13 GMT):
Has joined the channel.

AdamEikman (Fri, 14 Jan 2022 19:45:20 GMT):
Has joined the channel.

JeffCantores (Sat, 15 Jan 2022 03:28:03 GMT):
Update on this one: I managed to fix this problem by adding this line inside the `network.sh` file inside the `test-network` folder: `export MSYS_NO_PATHCONV=1`

JeffCantores (Sat, 15 Jan 2022 03:28:56 GMT):

Clipboard - January 15, 2022 11:28 AM

JeffCantores (Sat, 15 Jan 2022 04:09:25 GMT):

Clipboard - January 15, 2022 12:08 PM

JeffCantores (Sat, 15 Jan 2022 04:09:25 GMT):

Clipboard - January 15, 2022 12:08 PM

JeffCantores (Sat, 15 Jan 2022 04:09:25 GMT):

Clipboard - January 15, 2022 12:08 PM

JeffCantores (Sat, 15 Jan 2022 04:09:25 GMT):

Clipboard - January 15, 2022 12:08 PM

dakata (Sat, 15 Jan 2022 13:56:52 GMT):
Has joined the channel.

luisnaranjo733 (Sat, 15 Jan 2022 15:34:28 GMT):
Has joined the channel.

Teharjula (Sat, 15 Jan 2022 17:37:29 GMT):
Hi, Need help for running sample app: asset-transfer-basic/application-gateway-typescript - test network is running successfully ( ./network.sh up createChannel -c mychannel -ca ) - Ubuntu - npm version 6.14.4 - node version 10.19.0 Getting this kind of error when performing npm start: asset-transfer-basic@1.0.0 start /home/teemu/go/src/github.com/teharjula/fabric-samples/asset-transfer-basic/application-gateway-typescript > node dist/app.js /home/teemu/go/src/github.com/teharjula/fabric-samples/asset-transfer-basic/application-gateway-typescript/node_modules/@hyperledger/fabric-gateway/dist/status.js:14 exports.StatusNames = Object.freeze(Object.fromEntries(Object.entries(exports.StatusCode) ^ TypeError: Object.fromEntries is not a function at Object. (/home/teemu/go/src/github.com/teharjula/fabric-samples/asset-transfer-basic/application-gateway-typescript/node_modules/@hyperledger/fabric-gateway/dist/status.js:14:44) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/home/teemu/go/src/github.com/teharjula/fabric-samples/asset-transfer-basic/application-gateway-typescript/node_modules/@hyperledger/fabric-gateway/dist/commiterror.js:9:18) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! asset-transfer-basic@1.0.0 start: `node dist/app.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the asset-transfer-basic@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/teemu/.npm/_logs/2022-01-15T17_30_45_525Z-debug.log

bestbeforetoday (Sat, 15 Jan 2022 20:30:19 GMT):
You need Node 14 or 16

bestbeforetoday (Sat, 15 Jan 2022 20:30:19 GMT):
You need Node 14 or 16: https://hyperledger.github.io/fabric-gateway/

bestbeforetoday (Sat, 15 Jan 2022 20:32:23 GMT):
There is a Node version requirement in the package.json that should have triggered a warning during the `npm install`, but it's easy to miss: https://github.com/hyperledger/fabric-samples/blob/29ff95e2c6200677b2bc0d4cad647ebff058ebb9/asset-transfer-basic/application-gateway-typescript/package.json#L7-L9

canenas (Sun, 16 Jan 2022 00:03:14 GMT):
So If i understand what you are saying correctly the current implementation of Fabric Gateway does not fully implement the RFC. From what i gathered the rfc says that the gateway has its own identity from the org's MSP but an actual client will sign the proposals it sends with its own certificates.

g4gekkouga (Sun, 16 Jan 2022 07:36:04 GMT):
Has joined the channel.

bestbeforetoday (Sun, 16 Jan 2022 08:13:30 GMT):
When the RFC was originally produced, we planned to build the Gateway service as a separate component. It would have required its own identity to interact with the discovery and deliver services of peers. What has actually been implemented is a service within the peer, so discovery and ledger information for the peer are directly available to the Gateway service and no additional identity is required

bestbeforetoday (Sun, 16 Jan 2022 09:04:37 GMT):
Or you could think of the gateway identity being the same as the peer identity

bestbeforetoday (Sun, 16 Jan 2022 09:05:25 GMT):
The client does all the signing of proposals and transactions

boozden (Sun, 16 Jan 2022 10:11:09 GMT):
Has joined the channel.

roberto.porfiro (Sun, 16 Jan 2022 11:11:38 GMT):
Has joined the channel.

Teharjula (Sun, 16 Jan 2022 14:10:34 GMT):
thanks! Now it works.

HuzMS (Sun, 16 Jan 2022 22:42:31 GMT):
Has joined the channel.

HuzMS (Sun, 16 Jan 2022 22:48:58 GMT):
Peace be upon you all. I am building a website for verifying claims/'facts' on the internet by building cases against those claims and would like to know which hyperledger to use The main requirements for this would be:

HuzMS (Sun, 16 Jan 2022 22:48:58 GMT):
Peace be upon you all. I am building a website for verifying claims/'facts' on the internet by building cases against those claims and would like to know which hyper-ledger to use The main requirements for this would be: 1. Verifiable documents or videos or other pieces of evidences 2. Verifiable editors' identities who build the case

ckong (Mon, 17 Jan 2022 01:55:06 GMT):
Hi everyone, in my fabric-ca-server-config.yaml the signing expiry is currently set to one year, but I would like to generate certificate with longer validity. Can this be done without changing the CA configuration and restarting the CA?

ckong (Mon, 17 Jan 2022 01:57:03 GMT):
I looked at documentation for the CLI of both server (https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/servercli.html) and client (https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/clientcli.html) but I don't see any options available for that.

nitishbhardwaj19 (Mon, 17 Jan 2022 04:26:07 GMT):
Awesome, thanks a lot. I knew this works but I just wanted to explore and verify it :) It's always interesting to see how distributed computing ensures consistency in action. Thanks for your awesome contribution to fabric-gateway. It's a remarkable utility. Great job, keep up the good work. \m/

samyak314 (Mon, 17 Jan 2022 04:55:47 GMT):
please check the config folder path exported or not, may it cause problem

samyak314 (Mon, 17 Jan 2022 04:58:47 GMT):
ordere node exiting in service please check text file

samyak314 (Mon, 17 Jan 2022 04:59:35 GMT):

samyak314 - Mon Jan 17 2022 18:29:11 GMT+0530 (India Standard Time).txt

conanoc (Mon, 17 Jan 2022 07:41:53 GMT):
I wonder if you know that hyperledger fabric does not have native crypto currency.

Luis_Manuel_Cortes_Tirado (Mon, 17 Jan 2022 13:16:15 GMT):
Hello, good morning, I have modified some parameters of the FabCar chaincode in Java and launched it on my private network. When I invoke the chaincode with initLedger I get the following error: Error: endorsement failure during invoke. response: status:500 message: "Undefined contract called". Does anyone know what could be the cause of this error? Thanks

ataberkozek (Mon, 17 Jan 2022 13:48:33 GMT):
Did you change the -ccn (chaincode name) while deploying the chaincode? If you did make sure to change the -ccn argument while invoking any function.

Luis_Manuel_Cortes_Tirado (Mon, 17 Jan 2022 13:50:13 GMT):
Yes, I have taken care of changing both the chaincodename and the channelname.

sajidhz1 (Mon, 17 Jan 2022 14:25:53 GMT):
Has joined the channel.

sajidhz1 (Mon, 17 Jan 2022 14:25:54 GMT):
Hello good morning, I am facing the following issue when creating a peer node hlf version 2.2.2 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/crypto/msp: sanitizeCert failed the supplied identity is not valid: x509: certificate signed by unknown authority the issue happens when CA signed certs are used (in our setup we have a root CA and a Intermediate CA), but the issue doesn't occur when self signed certs are used instead of CA signed has anyone has faced this or knows how to solve this issue ?

AAlzaabi (Mon, 17 Jan 2022 14:41:17 GMT):
Has joined the channel.

newbusybee (Tue, 18 Jan 2022 01:01:56 GMT):
Has joined the channel.

JeffCantores (Tue, 18 Jan 2022 03:47:36 GMT):
Hello @samyak314, How should I do that?

conanoc (Tue, 18 Jan 2022 05:22:22 GMT):
You could see more detailed error messages in the logs of the peer container.

sudojhill (Tue, 18 Jan 2022 05:37:15 GMT):
Has joined the channel.

DevalShah (Tue, 18 Jan 2022 07:05:12 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Tue, 18 Jan 2022 08:27:52 GMT):
Thread[main,5,main] 07:06:35:940 INFO org.hyperledger.fabric.contract.ContractRouter main Starting chaincode as client SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

adaephonben (Tue, 18 Jan 2022 08:40:16 GMT):
Has joined the channel.

christianatmueller (Tue, 18 Jan 2022 14:10:19 GMT):
Has joined the channel.

Affin-Ajanthan (Tue, 18 Jan 2022 14:35:03 GMT):
Has joined the channel.

nglf (Tue, 18 Jan 2022 15:23:36 GMT):
Has joined the channel.

Ravjot (Tue, 18 Jan 2022 17:38:41 GMT):
Has joined the channel.

HariN 35 (Wed, 19 Jan 2022 03:44:49 GMT):
Has joined the channel.

harikrishnashk (Wed, 19 Jan 2022 06:29:39 GMT):
Has joined the channel.

sumiteshnaithani (Wed, 19 Jan 2022 07:18:44 GMT):
Has joined the channel.

seancm69 (Wed, 19 Jan 2022 07:24:45 GMT):
Has joined the channel.

Tipu_Singh (Wed, 19 Jan 2022 07:41:33 GMT):
Has joined the channel.

sergedh (Wed, 19 Jan 2022 07:57:50 GMT):
Has joined the channel.

DeepakMule (Wed, 19 Jan 2022 08:34:07 GMT):
thanks for your input with single ORG endorsement it work perfectly. I also checked with adding listener to "addCommitListener" but for failed transactions error generated before listener code executed I checked fabric-network->transaction.js-> submit method code exception is thrown at line const result = getResponsePayload(proposalResponse); which is just above const eventHandler = this.eventHandlerStrategyFactory(endorsement.getTransactionId(), this.contract.network); await eventHandler.startListening(); so i am not clear is it a issue of chaincode / network? if it is a issue of chaincode then it should fail same transaction every time, but this is not a case. transactions getting failed randomly and some time it succeed.

DeepakMule (Wed, 19 Jan 2022 08:34:07 GMT):
thanks for your input with single ORG endorsement it work perfectly. I also checked with adding listener to "addCommitListener" but for failed transactions error generated before listener code executed I checked fabric-network->transaction.js-> submit method code exception is thrown at line const result = getResponsePayload(proposalResponse); which is just above const eventHandler = this.eventHandlerStrategyFactory(endorsement.getTransactionId(), this.contract.network); await eventHandler.startListening(); so i am not clear, is it a issue of chaincode / network? if it is a issue of chaincode then it should fail same transaction every time, but this is not a case. transactions getting failed randomly and some time it succeed.

souksou (Wed, 19 Jan 2022 10:06:12 GMT):
Has joined the channel.

anilhelvaci (Wed, 19 Jan 2022 12:57:13 GMT):
Hello everybody, Can somebody tell me for the Fabric v2.3 what are differences between a channel level admin and an org admin? Do you have any docs that explains this subject in more detail? I can't seem to find anything in the official docs. Also some best practices for managing org admin identities would be awesome. Any answer would be greatly appreciated

ouyangwenli (Wed, 19 Jan 2022 13:46:59 GMT):
Has joined the channel.

bh4rtp (Wed, 19 Jan 2022 14:25:23 GMT):
Does fabric-ca 1.5.2 support tls for pkcs11? I found the keystore is empty when enrolling an identity.

akhmad_219 (Wed, 19 Jan 2022 14:43:00 GMT):
Hello, I want to know how to create "select where" query function in the chaincode. Is it okay if I query all data then check the data? or is there a function to make it easier?

jas191 (Wed, 19 Jan 2022 15:58:17 GMT):
Good Morning everyone, After you upload a blob and Broadcast the uploaded data using the firefly API. how do you pull the Transaction Hash that would be linked via blockchain? currently data goes to IPFS for storage and I can see the Transaction within the UI. however I need to pull that info after we broadcast the data so we can add Transaction hash with a link to block chain in our dashboard

davidkel (Wed, 19 Jan 2022 16:06:28 GMT):
Not sure what you are asking here so could you be more explicit on what you are trying to do. I will point out that an TLS cert used with fabric cannot be generated with an HSM (via pkcs11) because the BCCSP in fabric is not involved with managing TLS connections

robbesettlemint (Wed, 19 Jan 2022 16:15:05 GMT):
Has joined the channel.

Gluwa_DavidLebee (Wed, 19 Jan 2022 17:42:11 GMT):
Has joined the channel.

ManishReddyN (Wed, 19 Jan 2022 18:03:16 GMT):
Has joined the channel.

norbertrogers (Wed, 19 Jan 2022 18:19:01 GMT):
Has joined the channel.

x4v13r (Wed, 19 Jan 2022 22:24:07 GMT):
im trying to deploy and test a simpleContract on the testnetwork , however i am running into problems with defining all the environment variables for Org1MSP. when I try and set the FABRIC_CFG_PATH using $PWD/../config/ the msp folder that the InitCmd requires is not inside the config folder inside fabric-samples directory. I've downloaded all fabric binaries. For refrence i am doing the Linux foundation hyperledger course and this is apart of lab 4.1

x4v13r (Wed, 19 Jan 2022 22:24:07 GMT):
im trying to deploy and test a simpleContract on the testnetwork , however i am running into problems with defining all the environment variables for Org1MSP. when I try and set the FABRIC_CFG_PATH using $PWD/../config/ the msp folder that the InitCmd requires it is not inside the config folder inside fabric-samples directory. I've downloaded all fabric binaries. For reference I am doing the Linux foundation hyperledger course and this is a part of lab 4.1

x4v13r (Wed, 19 Jan 2022 22:24:07 GMT):
im trying to deploy and test a simpleContract on the testnetwork , however i am running into problems with defining all the environment variables for Org1MSP. when I try and set the FABRIC_CFG_PATH using $PWD/../config/ the msp folder that the InitCmd requires it is not inside the config folder inside fabric-samples directory. I've downloaded all fabric binaries. For reference I am doing the Linux foundation hyperledger course and this is a part of lab 4.1. If anyone is willing to help out please reach out

canenas (Thu, 20 Jan 2022 00:37:55 GMT):
hi all what's the difference between ORDERER_GENERAL_GENESISMETHOD and ORDERER_GENERAL_BOOTSTRAPMETHOD?

mgdotonl (Thu, 20 Jan 2022 01:20:36 GMT):
Has joined the channel.

fl0x (Thu, 20 Jan 2022 06:32:13 GMT):
Has joined the channel.

sung-il (Thu, 20 Jan 2022 07:35:18 GMT):
Has joined the channel.

daohan (Thu, 20 Jan 2022 07:59:47 GMT):
Has joined the channel.

fsatsuki (Thu, 20 Jan 2022 08:00:18 GMT):
Has joined the channel.

bardia (Thu, 20 Jan 2022 08:30:17 GMT):
How to set a password for a fabric-ca-server.db database file?

bardia (Thu, 20 Jan 2022 08:35:46 GMT):
How to add a field to a fabric-ca-server.db database file؟

guodadada (Thu, 20 Jan 2022 08:41:12 GMT):
Has joined the channel.

ESiat (Thu, 20 Jan 2022 09:03:41 GMT):
Has joined the channel.

SebastianKe (Thu, 20 Jan 2022 09:53:18 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Thu, 20 Jan 2022 10:06:46 GMT):
Hello, good morning, I have modified some parameters of the FabCar chaincode in Java and launched it on my private network. When I invoke the chaincode with initLedger I get the following error: Error: endorsement failure during invoke. response: status:500 message: "Undefined contract called". Does anyone know what could be the cause of this error? Thanks

Luis_Manuel_Cortes_Tirado (Thu, 20 Jan 2022 10:12:45 GMT):
Hello, good morning, I have modified some parameters of the FabCar chaincode in Java and launched it on my private network. When I invoke the chaincode with initLedger I get the following error: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. I have added the following line in the build.gradle file in the dependencies section: compileOnly 'org.slf4j:slf4j-nop:1.7.32' Afterwards, I ran "./gradlew installDist" again successfully, but when invoking the chaincode I still get the same error. Does anyone know what could be the cause of this error? Thanks

prasanthdotv (Thu, 20 Jan 2022 11:17:16 GMT):
Has joined the channel.

ShubhamShukla31752 (Thu, 20 Jan 2022 13:07:58 GMT):
Has joined the channel.

ShubhamShukla31752 (Thu, 20 Jan 2022 13:09:10 GMT):
Hi Guys, Can u confirm me which image tag can be used with fabric 1.4.2 ? Is it possible to inlcude the latest couchdb image 3.1.1 with fabric 1.4.2

HaBerber (Thu, 20 Jan 2022 14:39:27 GMT):
Hi,Gays,

HaBerber (Thu, 20 Jan 2022 14:39:27 GMT):
Hi,Guys,

HaBerber (Thu, 20 Jan 2022 14:42:09 GMT):
I wanna to change the Consensus algorithm of fabric v2.1.0. But I don't have any idea. Where can I find the way to do this work? I can' find any good blogs or article. Thank U:fabric:

HaBerber (Thu, 20 Jan 2022 14:42:09 GMT):
I wanna change the Consensus algorithm of fabric v2.1.0. But I don't have any idea. Where can I find the way to do this work? I can' find any good blogs or article. Thank U:fabric:

bh4rtp (Thu, 20 Jan 2022 15:44:35 GMT):
Can I setup one CA for tls and another CA for Org using pkcs11 BCCSP?

ScottHarris (Thu, 20 Jan 2022 15:51:38 GMT):
Has joined the channel.

adipata (Thu, 20 Jan 2022 15:55:27 GMT):
Has joined the channel.

ffuentes (Thu, 20 Jan 2022 16:00:49 GMT):
Has joined the channel.

mks4343 (Thu, 20 Jan 2022 16:02:24 GMT):
Has joined the channel.

shehanp72 (Thu, 20 Jan 2022 16:02:58 GMT):
Has joined the channel.

singhhp1069 (Thu, 20 Jan 2022 16:04:33 GMT):
Has joined the channel.

paulyp (Thu, 20 Jan 2022 16:05:00 GMT):
Has joined the channel.

rz (Thu, 20 Jan 2022 16:06:26 GMT):
Has joined the channel.

awuttke (Thu, 20 Jan 2022 16:07:46 GMT):
Has joined the channel.

davidkel (Thu, 20 Jan 2022 16:11:36 GMT):
So you want 2 CAs, one to sign TLS certs and one to sign Org Certs and you want the CA Root certs to be HSM managed ? That should be possible

davidkel (Thu, 20 Jan 2022 16:11:36 GMT):
So you want 2 CAs, one to sign TLS certs and one to sign Org Certs and you want the CA Root certs to be HSM managed ? I think that could be possible

davidkel (Thu, 20 Jan 2022 16:11:36 GMT):
So you want 2 CAs, one to sign TLS certs and one to sign Org Certs and you want the CA Root certs to be HSM managed ? I think that should be possible

Torben.Zick (Thu, 20 Jan 2022 16:14:57 GMT):
Has joined the channel.

malfaris (Thu, 20 Jan 2022 16:17:17 GMT):
Has joined the channel.

bp99 (Thu, 20 Jan 2022 16:33:15 GMT):
Has joined the channel.

sanjikumar (Thu, 20 Jan 2022 16:39:22 GMT):
Has joined the channel.

aymanejabrane (Thu, 20 Jan 2022 17:04:32 GMT):
Has joined the channel.

CharlesDS (Thu, 20 Jan 2022 17:29:39 GMT):
Has joined the channel.

bh4rtp (Thu, 20 Jan 2022 22:45:50 GMT):
Ok, thanks!

jackiepeters (Fri, 21 Jan 2022 02:02:21 GMT):
Has joined the channel.

shashwot2 (Fri, 21 Jan 2022 04:55:58 GMT):
Has joined the channel.

RouteSagar (Fri, 21 Jan 2022 06:38:52 GMT):
Does anyone have any reference script that shows bulk insert into Hyperledger Fabric network

RouteSagar (Fri, 21 Jan 2022 06:38:59 GMT):
Need it urgently

GiorgosSiachamis (Fri, 21 Jan 2022 08:05:19 GMT):
Has joined the channel.

AnanayNarang (Fri, 21 Jan 2022 08:10:42 GMT):
Has joined the channel.

VNCheck (Fri, 21 Jan 2022 08:19:23 GMT):
Has joined the channel.

VNCheck (Fri, 21 Jan 2022 08:20:03 GMT):
I need a developer

MinMail (Fri, 21 Jan 2022 09:32:24 GMT):
Has joined the channel.

conanoc (Fri, 21 Jan 2022 09:45:30 GMT):
Take a look at this: https://github.com/hyperledger-labs/mirbft

Haniff (Fri, 21 Jan 2022 11:25:07 GMT):
Hi, is there anyone that knows how to start/building an access control mechanism in Fabric that authorizes users based on their nft?

JonasKreusch (Fri, 21 Jan 2022 12:02:42 GMT):
Has joined the channel.

JonasKreusch (Fri, 21 Jan 2022 12:04:53 GMT):
I'm getting an error when executing a fabric java app: java.lang.NoSuchMethodError: 'void org.bouncycastle.asn1.DERSequenceGenerator.addObject(org.bouncycastle.asn1.ASN1Primitive)' at org.hyperledger.fabric.sdk.security.CryptoPrimitives.ecdsaSignToBytes (CryptoPrimitives.java:765) anyone ever seen this?

Nischitha (Fri, 21 Jan 2022 13:22:25 GMT):
Has joined the channel.

RodrigoGarcia1 (Fri, 21 Jan 2022 14:18:10 GMT):
Has joined the channel.

mpg (Fri, 21 Jan 2022 14:40:27 GMT):
Has joined the channel.

HaBerber (Fri, 21 Jan 2022 15:04:47 GMT):
Thank U:woo:

Dazel (Fri, 21 Jan 2022 16:08:40 GMT):
Hey everyone. I have a Fabric network deployed on a remote kubernetes cluster. I can connect to the network when using gateway.connect() through the Node SDK, but when I try to call "gateway.getNetwork()" the following error appears: "Failed to connect before the deadline on Commiter", followed by the local orderer URL inside the k8s cluster. Do I have to add the external URL to the connection profile to be able to connect to the network? What could be causing such error?

Gag 131 (Fri, 21 Jan 2022 17:07:25 GMT):
Has joined the channel.

jkneubuhl (Fri, 21 Jan 2022 17:47:37 GMT):
Hi Dazel. There are a number of issues that may prevent your application from connecting to the remote gateway peer. Here are a few things to check: - Do you have a valid network route from your client application to the target gateway peer URL? (i.e.. through an ingress controller or k8s port-forward) - Has the peer's TLS certificate been issued with a hostname / SAN matching your target URL? Are you passing a valid CA certificate? - Are there any error messages in the peer log output? (E.g. Failed TLS handshake, diagnostics, or other errors.)

Dazel (Fri, 21 Jan 2022 18:49:49 GMT):
As far as I'm concerned, the first two things are correct. The only error message I've found has been "chaincodeQuery -> Failed constructing descriptor for chaincode", but I don't think that's the issue, as the SDK error appears before trying to access the chaincode

angmunoz (Fri, 21 Jan 2022 19:02:22 GMT):
Has joined the channel.

Dazel (Fri, 21 Jan 2022 19:15:58 GMT):
Also I should add, a while before I had been trying to connect with a connection profile with the work certs, and "gateway.connect()" was where the errors appeared; with the "fixed" certs the error appears on "gateway.getNetwork()", after calling connect()

ramkapoor (Fri, 21 Jan 2022 19:47:14 GMT):
Has joined the channel.

ebaldivias (Fri, 21 Jan 2022 21:16:05 GMT):
Has joined the channel.

Vamsikn (Fri, 21 Jan 2022 21:26:43 GMT):
Has joined the channel.

himanisingla (Fri, 21 Jan 2022 21:29:50 GMT):
Has joined the channel.

mgamal (Sat, 22 Jan 2022 09:42:06 GMT):
Has joined the channel.

saif_32 (Sat, 22 Jan 2022 14:09:24 GMT):
Hello! How can we change the exchange the existing encryption/hashing algorithm used in fabric ?

pratikc (Sun, 23 Jan 2022 13:46:53 GMT):
Has joined the channel.

rtatton (Sun, 23 Jan 2022 15:58:22 GMT):
Has joined the channel.

dave-beck (Sun, 23 Jan 2022 17:17:47 GMT):
Has joined the channel.

anilraj27 (Sun, 23 Jan 2022 20:09:17 GMT):
Has joined the channel.

bweymouth (Mon, 24 Jan 2022 01:53:56 GMT):
Has joined the channel.

jaymhc (Mon, 24 Jan 2022 03:46:27 GMT):
Has joined the channel.

sumiteshnaithani (Mon, 24 Jan 2022 05:00:32 GMT):
Hi ! I have minifabric network running on EC2 instance and i am trying to connect to that network using local client app(Java SDK). Client app is able to connect to CA and successfully enroll admin and appuser but while invoking transaction it gives a error => ''Channel Channel{id: 1, name: mychannel} Sending proposal with transaction: 6729d6ac528da6695808607886f380032c85aa33dbd4f270f2f4bec65365c4ec to Peer{ id: 3, name: peer2.org0.example.com, channelName: mychannel, url: grpcs://xx.xx.xx.xx:7003, mspid: org0-example-com} failed because of: gRPC failure=Status{code=UNAVAILABLE, description=io exception, cause=io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection timed out: /xx.xx.xx.xx:7003". I have exposed endpoints using -e flag as well while launching minifab network. Any help is appreciated. Thanks

jjlee (Mon, 24 Jan 2022 07:22:44 GMT):
Has joined the channel.

jechae (Mon, 24 Jan 2022 08:04:13 GMT):
Has joined the channel.

gentios (Mon, 24 Jan 2022 11:41:13 GMT):
hi, why I cannot register a new type admin I keep getting ```2022/01/24 11:13:07 [DEBUG] No affiliation provided in registration request, will default to using registrar's affiliation of '' 2022/01/24 11:13:07 [DEBUG] canRegister - Check to see if user 'admin' can register 2022/01/24 11:13:07 [DEBUG] Checking to see if caller 'admin' can act on type 'admin' 2022/01/24 11:13:07 [DEBUG] Checking to see if caller 'admin' is a registrar 2022/01/24 11:13:07 [DEBUG] Caller with types '[peer orderer client user]' is not authorized to act on 'admin' 2022/01/24 11:13:07 [DEBUG] Registration of 'vlsadmin' failed: : scode: 403, local code: 44, local msg: Registrar does not have authority to act on type 'admin', remote code: 71, remote msg: Authorization failure ``` how do I register a new admin role or a use that has `--id.type admin`

akhmad_219 (Mon, 24 Jan 2022 13:35:41 GMT):
Hello, when i run bulk init with more than 20000 data i get `Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: error sending: timeout expired while executing transaction"` in the docker logs, i found the data invoke only up to 14410 transactions `Added <--> 340014810 2022-01-24T13:26:23.196Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-60ace955] Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context 2022-01-24T13:26:23.215Z error [c-api:lib/handler.js] [mychannel-60ace955] Calling chaincode Invoke() returned error response [Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:382:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74]. Sending ERROR message back to peer` is there a way to extend the timeout?

akhmad_219 (Mon, 24 Jan 2022 13:35:41 GMT):
Hello, when i run bulk init with more than 20000 data i get ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: error sending: timeout expired while executing transaction"` in the docker logs, i found the data invoke only up to 14410 transactions `Added <--> 340014810 2022-01-24T13:26:23.196Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-60ace955] Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context 2022-01-24T13:26:23.215Z error [c-api:lib/handler.js] [mychannel-60ace955] Calling chaincode Invoke() returned error response [Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:382:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74]. Sending ERROR message back to peer ``` is there a way to extend the timeout?

akhmad_219 (Mon, 24 Jan 2022 13:35:41 GMT):
Hello, when i run bulk init with more than 20000 data i get `Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: error sending: timeout expired while executing transaction"` in the docker logs, i found the data invoke only up to 14410 transactions ```Added <--> 340014810 2022-01-24T13:26:23.196Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-60ace955] Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context 2022-01-24T13:26:23.215Z error [c-api:lib/handler.js] [mychannel-60ace955] Calling chaincode Invoke() returned error response [Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:382:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74]. Sending ERROR message back to peer ``` is there a way to extend the timeout?

akhmad_219 (Mon, 24 Jan 2022 13:35:41 GMT):
Hello, when i run bulk init with more than 20000 data i get ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: error sending: timeout expired while executing transaction" ``` in the docker logs, i found the data invoke only up to 14410 transactions ```Added <--> 340014810 2022-01-24T13:26:23.196Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-60ace955] Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context 2022-01-24T13:26:23.215Z error [c-api:lib/handler.js] [mychannel-60ace955] Calling chaincode Invoke() returned error response [Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:382:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74]. Sending ERROR message back to peer ``` is there a way to extend the timeout?

akhmad_219 (Mon, 24 Jan 2022 13:35:41 GMT):
Hello, i want to ask about my problem i want to add bulk data to ledger but when i run bulk init with more than 20000 data i get ``` Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: error sending: timeout expired while executing transaction" ``` in the docker logs, i found the data invoke only up to 14410 transactions ```Added <--> 340014810 2022-01-24T13:26:23.196Z error [c-api:contracts-spi/chaincodefromcontract.js] [mychannel-60ace955] Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context 2022-01-24T13:26:23.215Z error [c-api:lib/handler.js] [mychannel-60ace955] Calling chaincode Invoke() returned error response [Error: PUT_STATE failed: transaction ID: 60ace955ea4e1d7f1ffea40ea5722acd36faa0c40ba55bf66f4e572a7fdf6218: no ledger context at parseResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:738:15) at MsgQueueHandler.handleMsgResponse (/usr/local/src/node_modules/fabric-shim/lib/handler.js:142:40) at ClientDuplexStreamImpl. (/usr/local/src/node_modules/fabric-shim/lib/handler.js:324:46) at ClientDuplexStreamImpl.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at ClientDuplexStreamImpl.Readable.push (_stream_readable.js:209:10) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client.js:382:24) at Object.onReceiveMessage (/usr/local/src/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178) at /usr/local/src/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74]. Sending ERROR message back to peer ``` is there a way to extend the timeout?

harikrishnashk (Mon, 24 Jan 2022 15:56:13 GMT):
Hi , How can we implement dynamic endorsement policy in fabric

pbusch42 (Mon, 24 Jan 2022 16:50:12 GMT):
Has joined the channel.

Dazel (Mon, 24 Jan 2022 18:37:39 GMT):
Hey everyone, when calling "gateway.getNetwork()" through the Node SDK, the network object doesn't have any chaincode in it (the 'contracts' field). I'm 100% certain the chaincode is deployed in the correct channel; what might be the issue here?

ftrsau (Tue, 25 Jan 2022 03:15:59 GMT):
Has joined the channel.

ftrsau (Tue, 25 Jan 2022 03:22:50 GMT):
Hi, am researching blockchain projects and came across this one. it looks really nice, but since am new to this I thought I validate my usecase of the product. We are looking to build a closed source crypto exchange, were we can issue new tokens that resemble physical products and allow people to speculate on the prices. So the plan include: 1- to be able to issue new tokens (preferably of no value in the outer public blockchain to limit the risks). 2- To be able to launch ICO like flows. 3- wallets that hold the tokens ad accessible by their owners (our clients) 4- have smart contracts that control certain aspects of the tokens, like longevity and min/max amount of tokens to be acquired by a given address. 5- real time prices and exchange functionality

ftrsau (Tue, 25 Jan 2022 03:22:50 GMT):
Hi, am researching blockchain projects and came across this one. it looks really nice, but since am new to this I thought I validate my usecase of the product. We are looking to build a closed source crypto exchange, were we can issue new tokens that resemble physical products and allow people to speculate on the prices. So the plan include: 1- to be able to issue new tokens (preferably of no value in the outer public blockchain to limit the risks). 2- To be able to launch ICO like flows. 3- wallets that hold the tokens ad accessible by their owners (our clients) 4- have smart contracts that control certain aspects of the tokens, like longevity and min/max amount of tokens to be acquired by a given address. 5- real time prices and exchange functionality. would this be doable using fabric

ftrsau (Tue, 25 Jan 2022 03:22:50 GMT):
Hi, am researching blockchain projects and came across this one. it looks really nice, but since am new to this I thought I validate my usecase of the product. We are looking to build a closed source crypto exchange, were we can issue new tokens that resemble physical products and allow people to speculate on the prices. So the plan include: 1- to be able to issue new tokens (preferably of no value in the outer public blockchain to limit the risks). 2- To be able to launch ICO like flows. 3- wallets that hold the tokens ad accessible by their owners (our clients) 4- have smart contracts that control certain aspects of the tokens, like longevity and min/max amount of tokens to be acquired by a given address. 5- real time prices and exchange functionality. would this be doable using fabric? Thanks in advance :)

errorfourten (Tue, 25 Jan 2022 03:25:47 GMT):
Has joined the channel.

ravip.singh (Tue, 25 Jan 2022 06:29:02 GMT):
Has joined the channel.

aj3 (Tue, 25 Jan 2022 09:06:33 GMT):
Has joined the channel.

RouteSagar (Tue, 25 Jan 2022 09:38:41 GMT):
Can we use any other DB other than CouchDB on Hyperledger Fabric

bestbeforetoday (Tue, 25 Jan 2022 11:30:12 GMT):
I'm not sure exactly what you're trying to achieve but perhaps key-level endorsement policies might be useful for you: https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html#setting-key-level-endorsement-policies

bestbeforetoday (Tue, 25 Jan 2022 11:33:19 GMT):
You don't access the private internal `contracts` field directly on the Network to get a contract. You call `getContract()`, and can then submit transactions using the returned Contract object

bestbeforetoday (Tue, 25 Jan 2022 11:34:23 GMT):
Have a look at the sample code on the front page of the API documentation: https://hyperledger.github.io/fabric-sdk-node/release-2.2/module-fabric-network.html

bestbeforetoday (Tue, 25 Jan 2022 11:35:52 GMT):
Or the samples in the fabric-samples repository: https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/application-typescript

bestbeforetoday (Tue, 25 Jan 2022 11:36:32 GMT):
Or, if you are using Fabric v2.4, use the newer Fabric Gateway client API instead: https://hyperledger.github.io/fabric-gateway/

Dazel (Tue, 25 Jan 2022 18:11:07 GMT):
My issue here is that calling `getContract()`, and then calling `evaluateTransaction()` on the returned contract with a valid function name, I get an error: `2022-01-25T18:08:30.029Z - error: [SingleQueryHandler]: evaluate: message=Query failed. Errors: [], stack=FabricError: Query failed. Errors: [] at SingleQueryHandler.evaluate (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/impl/query/singlequeryhandler.js:66:23) at Transaction.evaluate (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/transaction.js:319:49) at ContractImpl.evaluateTransaction (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/contract.js:209:45) at submitTransaction (/home/dani/dev/deustotech/api-new/src/utils/gateway.js:85:30) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /home/dani/dev/deustotech/api-new/src/controllers/fabric.js:7:16, name=FabricError FabricError: Query failed. Errors: [] at SingleQueryHandler.evaluate (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/impl/query/singlequeryhandler.js:66:23) at Transaction.evaluate (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/transaction.js:319:49) at ContractImpl.evaluateTransaction (/home/dani/dev/deustotech/api-new/node_modules/fabric-network/lib/contract.js:209:45) at submitTransaction (/home/dani/dev/deustotech/api-new/src/utils/gateway.js:85:30) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /home/dani/dev/deustotech/api-new/src/controllers/fabric.js:7:16`

bestbeforetoday (Tue, 25 Jan 2022 18:25:57 GMT):
Query failure with no errors listed seems like there were no peers that the client could use to evaluate the query. It might be worth checking which query handler strategy is used. You could also enable debug logging and see what peers are listed in the debug log for the query handler constructor

dave.enyeart (Wed, 26 Jan 2022 06:57:53 GMT):
https://hyperledger-fabric.readthedocs.io/en/latest/ledger/ledger.html#world-state-database-options

GergelyLengyel (Wed, 26 Jan 2022 09:35:16 GMT):
Are there any other already implemented consensus algorithms for Fabric besides Raft and Kafka?

AravindVoruganti (Wed, 26 Jan 2022 14:16:16 GMT):
Has joined the channel.

conanoc (Thu, 27 Jan 2022 03:05:20 GMT):
https://labs.hyperledger.org/labs/mir-bft.html

sandeep20 (Thu, 27 Jan 2022 04:32:36 GMT):
Has joined the channel.

neetusharma (Thu, 27 Jan 2022 09:08:54 GMT):
Am getting error "ERROR: for chaincode Cannot start service chaincode: b'OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory:" When i was using fabric 1.4.3, i didn't get this error but installation of fabric 2.2 is giving. Plz suggest to resolve this issue

Alen_Sebastian (Thu, 27 Jan 2022 09:14:31 GMT):
Has joined the channel.

winterking (Thu, 27 Jan 2022 09:50:12 GMT):
Has joined the channel.

scmanjarrez (Thu, 27 Jan 2022 09:51:54 GMT):
hi, I can't find a test network using idemix, is there any example? I'd like to test idemix with the current test network (2 orgs + 1 ord), but I don't know how to enable irt

scmanjarrez (Thu, 27 Jan 2022 09:51:54 GMT):
hi, I can't find a test network using idemix, is there any example? I'd like to test idemix with the current test network (2 orgs + 1 ord), but I don't know how to enable it

StefanBratanov (Thu, 27 Jan 2022 09:52:26 GMT):
Has joined the channel.

rejnol93 (Thu, 27 Jan 2022 10:01:21 GMT):
Has joined the channel.

neetusharma (Thu, 27 Jan 2022 13:29:02 GMT):
Am getting error while making my project network up in fabric 2.2 version. "ERROR: for chaincode Cannot start service chaincode: b'OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory:" When i was using fabric 1.4.3, i didn't get any error but installation of fabric 2.2 to launch is giving this error. Plz suggest to resolve this issue. Do i need to make any changes in the docker files in which command: \bin\bash is defined for chaincode container.

neetusharma (Thu, 27 Jan 2022 13:29:22 GMT):

Screenshot from 2022-01-27 17-42-21.png

isavelli (Thu, 27 Jan 2022 14:27:07 GMT):
Has joined the channel.

bestbeforetoday (Thu, 27 Jan 2022 17:26:58 GMT):
There is also SmartBFT: - https://github.com/SmartBFT-Go/consensus Which looks to have a fork of Fabric that integrates the SmartBFT consensus algorithm: - https://github.com/SmartBFT-Go/fabric I have no idea how usable (or not) any of these options are! They aren't part of the core Fabric codebase.

dci (Thu, 27 Jan 2022 20:36:06 GMT):
Has joined the channel.

alamin25 1 (Thu, 27 Jan 2022 20:53:14 GMT):
Has joined the channel.

LunarM 1 (Thu, 27 Jan 2022 21:44:15 GMT):
Has joined the channel.

brettd (Fri, 28 Jan 2022 01:21:56 GMT):
Has joined the channel.

heysatya (Fri, 28 Jan 2022 07:01:53 GMT):
Has joined the channel.

Avijeet_15 (Fri, 28 Jan 2022 13:35:22 GMT):
Has joined the channel.

romanr (Fri, 28 Jan 2022 14:51:38 GMT):
Has joined the channel.

sergedh (Fri, 28 Jan 2022 19:40:59 GMT):
Hello, has anybody any idea where can I find the list of all operations / commands available in Hyperledger? Thanks!

knagware9 (Sat, 29 Jan 2022 07:31:38 GMT):
you mean hyperledger fabric commands --https://hyperledger-fabric.readthedocs.io/en/release-2.2/command_ref.html

sergedh (Sat, 29 Jan 2022 10:10:09 GMT):
thanks for sharing me the link! Is there a reference also for commands setting up the hyperledger fabric environment?

knagware9 (Sat, 29 Jan 2022 10:11:19 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/getting_started.html

knagware9 (Sat, 29 Jan 2022 10:11:49 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

sergedh (Sat, 29 Jan 2022 10:12:51 GMT):
ok thanks alot, I appreciate your swift reply!

Trisham_Bharat_Patil (Sat, 29 Jan 2022 16:57:36 GMT):
Has joined the channel.

aminst (Sat, 29 Jan 2022 19:03:00 GMT):
Has joined the channel.

aminst (Sat, 29 Jan 2022 19:11:00 GMT):
Hi, I was starting to use the new 2.4 way of creating channel artifacts as it does not need to create an initial system channel. Creating the artifacts using configtxgen was fine, but after I wanted to start a new orderer the following error was issued: Failed validating bootstrap block: the block isn't a system channel block because it lacks ConsortiumsConfig. As I understood from the docs, ConsortiumsConfig was removed from the yml in the newest version. I also checked my hyperledger-orderer docker image to be the latest version. Is the orderer implementation outdated and not matching the newest version of configtxgen or am I doing something wrong? thanks a lot for your help

rajan-31 (Sat, 29 Jan 2022 19:20:18 GMT):
Has joined the channel.

jannesklee (Sun, 30 Jan 2022 10:20:45 GMT):
Hi, I am following the tutorial, but unfortunately get an error message, when I want to initialize the ledger with assets described in [test-network-tutorial](https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html). peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"InitLedger","Args":[]}' Unfortunately I get the following error message which does not help me at all: Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 2882b9a2e413e06daa98806bfed46007dbec29631d7b375d99db343a27616e4a: could not launch chaincode basic_1.0:4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad: error starting container: error starting container: API error (404): network _test not found"

jannesklee (Sun, 30 Jan 2022 10:20:45 GMT):
Hi, I am following the tutorial, but unfortunately get an error message, when I want to initialize the ledger with assets described in [test-network-tutorial](https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html). peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"InitLedger","Args":[]}' I get the following error message which does not help me at all: Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 2882b9a2e413e06daa98806bfed46007dbec29631d7b375d99db343a27616e4a: could not launch chaincode basic_1.0:4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad: error starting container: error starting container: API error (404): network _test not found I am guessing the space in "network _test" may cause some error, but do not know were it is coming from.

davidkel (Sun, 30 Jan 2022 11:12:33 GMT):
@jannesklee does this section of the docker-compose file you are using match this ? ``` peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer:latest labels: service: hyperledger-fabric environment: #Generic peer variables - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test ``` Specifically `CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE`. If not then it looks like you may not be upto date with the test-network code

jannesklee (Sun, 30 Jan 2022 11:28:20 GMT):
@davidkel Thank you for the answer. The docker-compose-test-net.yaml file that I guess is loaded looks like this ``` peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer:$IMAGE_TAG environment: #Generic peer variables - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test ``` I am also pretty certain it is not the most recent version, but at the beginning of the tutorial it states the following command has to be run. ``` curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9 ``` Is this correct?

jannesklee (Sun, 30 Jan 2022 11:28:20 GMT):
@davidkel Thank you for the answer. The docker-compose-test-net.yaml file that I guess is loaded looks like this ``` peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer:$IMAGE_TAG environment: #Generic peer variables - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock # the following setting starts chaincode containers on the same # bridge network as the peers # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test ``` I am also pretty certain it is not the most recent version, but at the beginning of the tutorial it states the following command has to be run. ``` curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9 ``` Is this correct?

davidkel (Sun, 30 Jan 2022 11:31:32 GMT):
In your fabric samples directory what branch are you on `git branch -v`

jannesklee (Sun, 30 Jan 2022 11:32:19 GMT):
* (HEAD detached at v2.2.2) 5b8c439 Cleanup of register/enroll script

jannesklee (Sun, 30 Jan 2022 11:32:19 GMT):
``` * (HEAD detached at v2.2.2) 5b8c439 Cleanup of register/enroll script main 730976a Fix CHAINCODE_AS_A_SERVICE_TUTORIAL.md (#598) ```

davidkel (Sun, 30 Jan 2022 11:35:45 GMT):
try checking out `release-2.2`. The tagged 2.2.2 version uses an option which I think is now broken on Mac/Docker Desktop

jannesklee (Sun, 30 Jan 2022 11:37:02 GMT):
Ok, thank you I will give it a try

jannesklee (Sun, 30 Jan 2022 11:45:49 GMT):
@davidkel `release-2.2 `and `main` both are working. Perfect, thanks again! Should I change the version in the documentation?

davidkel (Sun, 30 Jan 2022 11:55:06 GMT):
The latest 2.2 version is 2.2.5 but it looks like there is no 2.2.5 tag for fabric-samples so it might be worth mentioning that in an issue if you submit a PR for the docs

davidkel (Sun, 30 Jan 2022 11:55:06 GMT):
The latest 2.2 version is 2.2.5 but it looks like there is no 2.2.5 tag for fabric-samples so it might be worth mentioning that in an issue if you submit a PR for the docs (also latest ca version is 1.5.2)

davidkel (Sun, 30 Jan 2022 11:57:42 GMT):
Actually I just looked at the 2.2 docs and they do say to use 2.2.5 and 1.5.2 https://hyperledger-fabric.readthedocs.io/en/release-2.2/install.html

jannesklee (Sun, 30 Jan 2022 12:00:52 GMT):
Ok, I looked here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

jannesklee (Sun, 30 Jan 2022 12:01:32 GMT):
In the very beginning there is a Before you begin section, where it states to install 2.2.2

davidkel (Sun, 30 Jan 2022 12:19:32 GMT):
I'm guessing tutorials don't generally get updated, so worth seeing if you could get it updated. I'm guessing you are using a mac and docker desktop ?

jannesklee (Sun, 30 Jan 2022 12:30:59 GMT):
No, I have Linux installed

jannesklee (Sun, 30 Jan 2022 12:32:03 GMT):
`lsb_release -a` ``` LSB Version: 1.4 Distributor ID: Arch Description: Arch Linux Release: rolling Codename: n/a ``` `docker --version` ``` Docker version 20.10.12, build e91ed5707e ```

davidkel (Sun, 30 Jan 2022 12:35:35 GMT):
Must be down to the version of docker-compose then.

jannesklee (Sun, 30 Jan 2022 12:56:25 GMT):
`docker-compose --version` ``` Docker Compose version 2.2.3 ```

davidkel (Sun, 30 Jan 2022 13:12:00 GMT):
Can't explain why it causes a problem for you then, but please submit a PR to fix the docs and see what the maintainers say

cxk934 (Sun, 30 Jan 2022 13:42:46 GMT):
Has joined the channel.

ShubhamShukla31752 (Mon, 31 Jan 2022 06:05:03 GMT):
Hello All, I am trying to setup the fabric 1.4.2 network on two host machine using the docker swarm. I am getting the following error while bringg up the containers : "Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: Setup error: nil conf reference" Can anyone please guide, what could be the possible issue for this. I have checked the volume mappings and msp names, they r correct

oliveruas (Mon, 31 Jan 2022 11:18:08 GMT):
Hi, I am reading Event listeners topic and I am facing the following problem. Let's imagine we have a network of 2 orgs and 1 peer per org, such as that of test-network and 'org1-client' invokes 'function1' which sets an Event, 'function1Event'. Is it possible to listen that chaincode Event from 'peer.org2' in order to submit a transaction every time an event like this arrives? How can I do it? I know how to listen to chaincode Events from 'org1-client' peer but no idea on how to solve this problem. Thanks in advance

Junior-nitcheu (Mon, 31 Jan 2022 11:36:29 GMT):
Has joined the channel.

rameshmiriyala (Mon, 31 Jan 2022 12:45:56 GMT):
Has joined the channel.

hamoT (Mon, 31 Jan 2022 15:25:05 GMT):
Has joined the channel.

sudarsan.immadi (Tue, 01 Feb 2022 01:30:46 GMT):
Has joined the channel.

SobhikaR (Tue, 01 Feb 2022 08:59:55 GMT):
Has joined the channel.

bestbeforetoday (Tue, 01 Feb 2022 09:28:10 GMT):
The event is emitted at the point the transaction is committed in a block. Every peer that commits the block (which should be all peer that are members of the channel) emits the same event. It doesn't matter which peer you listen to

bestbeforetoday (Tue, 01 Feb 2022 09:33:12 GMT):
You don't listen for events in the peer (or the smart contract). A client listens for events and then will typically invoke some business process in response to the event emitted by a committed transaction. This business process may involve submitting subsequent transactions

oliveruas (Tue, 01 Feb 2022 09:46:03 GMT):
OK, thanks @bestbeforetoday . Now I come up with another doubt: it is a good practice to not use non deterministic parameters inside smart contract logic like date, how about prior parameters checking inside application and not inside smart contract (e.g. check if a parameter is an empty string)? Thanks (again) in advance for your help

bestbeforetoday (Tue, 01 Feb 2022 10:52:56 GMT):
I think checking validity of parameters within a smart contract is fine. No harm in checking that at the client end too though, before you event try to invoke the transaction

MathiasBaumgartinger (Tue, 01 Feb 2022 10:53:02 GMT):
Has joined the channel.

bestbeforetoday (Tue, 01 Feb 2022 10:54:22 GMT):
The smart contract logic must be deterministic. In general, any peer that invokes the transaction should produce the same ledger updates and results. Endorsement relies on this. You need identical endorsements from enough organisations to satisfy the endorsement policy

bestbeforetoday (Tue, 01 Feb 2022 10:56:15 GMT):
This even extends to formatting of data written to the ledger or returned by the transaction function. If you're using JSON for these values then it needs to be byte-for-byte identical for each of the endorsing peers. So in this case, you might need to use some deterministic JSON serialiser to ensure elements are ordered and formatted the same each time

oliveruas (Tue, 01 Feb 2022 11:15:07 GMT):
Ok, thanks. Doubt resolved

Biradi (Tue, 01 Feb 2022 13:01:56 GMT):
Has joined the channel.

yusakrabin (Tue, 01 Feb 2022 14:09:36 GMT):
Has joined the channel.

dovidkopel (Tue, 01 Feb 2022 14:48:39 GMT):
Has joined the channel.

jacobgorman613 (Tue, 01 Feb 2022 20:57:20 GMT):
Has joined the channel.

BalarajuBalu (Wed, 02 Feb 2022 06:08:42 GMT):
Has joined the channel.

chetanambi (Wed, 02 Feb 2022 07:52:31 GMT):
Has joined the channel.

chetanambi (Wed, 02 Feb 2022 07:54:55 GMT):
I am following the test-network sample from the official page. I am stuck when interacting with the network. I have added my question here. Can someone please guide me? https://github.com/hyperledger/fabric-samples/issues/613

chetanambi (Wed, 02 Feb 2022 07:55:51 GMT):
`[ec2-user@ip-172-31-89-114 test-network]$ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n basic --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"InitLedger","Args":[]}' Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction b40c29594e4462cb6d42e92b9df8b8db0ad7b10c4f08ad71fd52afafa0090ffd: could not launch chaincode basic_1.0:4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad: error starting container: error starting container: API error (404): network _test not found"`

chetanambi (Wed, 02 Feb 2022 09:27:09 GMT):
@jannesklee I am also running into the same error. Can you please help me with the steps you followed to resolve this issue?

EduOliveira (Wed, 02 Feb 2022 10:40:26 GMT):
Has joined the channel.

GiacomoDisalvo (Wed, 02 Feb 2022 11:01:23 GMT):
Has joined the channel.

devratapuri (Wed, 02 Feb 2022 13:41:17 GMT):
Has joined the channel.

Hemachandra (Wed, 02 Feb 2022 14:30:57 GMT):
Has joined the channel.

Hemachandra (Wed, 02 Feb 2022 14:30:57 GMT):
:bangbang: :bangbang: :interrobang: Hi community, We have a working fabric application with and org containing 2 peers, Intermediate CA with TLS enabled and are now planning to implement HSM. I read from official doc that to use HSM we need to have PKCS11 enabled centOS docker images. 1) Can we setup HSM w/o disturbing the existing network? 2) Does peer's couchDB container requires to be reconfigured as well if the answer for Q1 is "yes"? 3) How do we transfer the available private keys from local MSP keystore to HSM slots? 4) What are the points to take care while implementing HSM along with TLS/TLS enable existing keys? 5) Do we have a ready script for this operation in any samples (I did not find it so far)? Also please do provide a "take care" points before starting this operation. Thanks in adv :slight_smile:

herbertabdillah (Wed, 02 Feb 2022 14:38:05 GMT):
Has joined the channel.

jayzhan (Wed, 02 Feb 2022 14:40:12 GMT):
Has joined the channel.

Shweta1 (Wed, 02 Feb 2022 14:55:42 GMT):
Hi Team,i have hlf 2.2 network setup and crypto certs generated from fabric ca.i am able to deployed chaincode successfully.From java sdk,i am able to enroll and register user but when i try to invoke chaincode getting error "Input stream doesn't contain valid certificates".kindly sugggest

chetanhanda (Wed, 02 Feb 2022 16:24:09 GMT):
Has joined the channel.

ksl2europe (Wed, 02 Feb 2022 18:22:07 GMT):
Has joined the channel.

mayurthosar11 (Wed, 02 Feb 2022 19:20:43 GMT):
Has joined the channel.

wontondon (Wed, 02 Feb 2022 19:59:39 GMT):
Has joined the channel.

kakaupke (Thu, 03 Feb 2022 00:01:39 GMT):
Has joined the channel.

dioxis (Thu, 03 Feb 2022 01:05:00 GMT):
Has joined the channel.

vsh1982 (Thu, 03 Feb 2022 02:59:35 GMT):
Has joined the channel.

Hemachandra (Thu, 03 Feb 2022 05:48:09 GMT):
Hi, I am seeking for an answer for above question. Can anyone kindly answer it?!

Hemachandra (Thu, 03 Feb 2022 05:48:36 GMT):
This... We have a working fabric application with and org containing 2 peers, Intermediate CA with TLS enabled and are now planning to implement HSM. I read from official doc that to use HSM we need to have PKCS11 enabled centOS docker images. 1) Can we setup HSM w/o disturbing the existing network? 2) Does peer's couchDB container requires to be reconfigured as well if the answer for Q1 is "yes"? 3) How do we transfer the available private keys from local MSP keystore to HSM slots? 4) What are the points to take care while implementing HSM along with TLS/TLS enable existing keys? 5) Do we have a ready script for this operation in any samples (I did not find it so far)? Also please do provide a "take care" points before starting this operation.

Hemachandra (Thu, 03 Feb 2022 05:48:53 GMT):
fabric 2.2 in use

drichard2 (Thu, 03 Feb 2022 10:06:52 GMT):
Has joined the channel.

sebstar (Thu, 03 Feb 2022 10:41:31 GMT):
Has joined the channel.

sebstar (Thu, 03 Feb 2022 10:42:19 GMT):
Are there any plans to update the Go smart contract API? I [posted an issue](https://github.com/hyperledger/fabric-contract-api-go/issues/61), feel free to answer there. (Already posted to #fabric but didn't receive any response.)

davidkel (Thu, 03 Feb 2022 10:44:31 GMT):
What problems are you having ? I've been using it on fabric 2.4 without issue

sebstar (Thu, 03 Feb 2022 11:15:02 GMT):
I'm not encountering issues (yet) but it seems strange that issues are not worked on, pull requests being ignored and that there wasn't a release in over a year. Looks abandoned to me. When evaluation to use something, it's important to also take into account that the stuff you decide to depend on is not unmaintained. Code always evolves. Just like there are new Fabric releases every now and then.

davidkel (Thu, 03 Feb 2022 11:51:34 GMT):
On the release side I don't believe there has been anything to release. It's not tied to a version of fabric so there would only be a release if there was an update to the contract-api itself

davidkel (Thu, 03 Feb 2022 11:51:34 GMT):
On the release side I don't believe there has been anything to release. It's not tied to a version of fabric so there would only be a release if there was an update to the contract-api itself worth creating a release for

makikato (Thu, 03 Feb 2022 13:08:31 GMT):
Has joined the channel.

kaissfr (Thu, 03 Feb 2022 13:08:36 GMT):
Has joined the channel.

canenas (Thu, 03 Feb 2022 13:17:04 GMT):
Hi all, fabric gateway enabled on fabric 2.3 or should I move to 2.4?

sohansamant (Thu, 03 Feb 2022 14:39:21 GMT):
Has joined the channel.

devg (Thu, 03 Feb 2022 15:09:54 GMT):
Has joined the channel.

Siltes (Thu, 03 Feb 2022 15:17:33 GMT):
Has joined the channel.

agiove (Thu, 03 Feb 2022 15:57:35 GMT):
Has joined the channel.

grittyronin (Thu, 03 Feb 2022 16:06:59 GMT):
Has joined the channel.

adambabs (Thu, 03 Feb 2022 16:10:23 GMT):
Has joined the channel.

sergm (Thu, 03 Feb 2022 16:11:39 GMT):
Has joined the channel.

kyilintun (Thu, 03 Feb 2022 16:11:50 GMT):
Has joined the channel.

adambabs (Thu, 03 Feb 2022 16:12:21 GMT):

Clipboard - February 3, 2022 5:12 PM

adambabs (Thu, 03 Feb 2022 16:12:24 GMT):
Hi, I am setting up hyperledger (just started to learn) and I have the following issue:

adambabs (Thu, 03 Feb 2022 16:12:47 GMT):
I've tried everywhere but can't find the solution

adambabs (Thu, 03 Feb 2022 16:12:52 GMT):
I have exported all variables etc.

gosankar (Thu, 03 Feb 2022 16:13:26 GMT):
Has joined the channel.

senthil.akshay27 (Thu, 03 Feb 2022 16:15:02 GMT):
Has joined the channel.

mepeltier (Thu, 03 Feb 2022 16:15:06 GMT):
Has joined the channel.

devin007 (Thu, 03 Feb 2022 16:23:20 GMT):
Has joined the channel.

ngwlf (Thu, 03 Feb 2022 16:23:38 GMT):
Has joined the channel.

sanjichained (Thu, 03 Feb 2022 16:26:36 GMT):
Has joined the channel.

canenas (Thu, 03 Feb 2022 16:28:27 GMT):
looks to me you haven't got golang installed.

canenas (Thu, 03 Feb 2022 16:28:36 GMT):
or at least it's not in the path.

Ben208N (Thu, 03 Feb 2022 17:03:03 GMT):
Has joined the channel.

kwollo (Thu, 03 Feb 2022 18:07:33 GMT):
Has joined the channel.

DurgaKVS (Thu, 03 Feb 2022 19:55:03 GMT):
Has joined the channel.

JonasRasmussen (Fri, 04 Feb 2022 08:20:18 GMT):
Has joined the channel.

ThomasFR89 (Fri, 04 Feb 2022 08:20:26 GMT):
Has joined the channel.

LucasCanaro (Fri, 04 Feb 2022 08:29:03 GMT):
Has joined the channel.

jayzhan (Fri, 04 Feb 2022 09:17:53 GMT):
Is there any project working on decentralized identity for fabric so we can use one DID for different fabric network, and even replace CA in fabric to achieve further decentralization? Thanks

iamchirag45 (Fri, 04 Feb 2022 12:18:56 GMT):
Has joined the channel.

sapthasurendran (Fri, 04 Feb 2022 13:22:24 GMT):
Fabric-gateway is available with version 2.4.

knagware9 (Fri, 04 Feb 2022 14:50:47 GMT):
In last year mentorship project we tried to use fabric as a ledger to issue did using hyperledger Aries m. Also there is proposed lab to open source that code

freddylarag (Fri, 04 Feb 2022 16:39:07 GMT):
Has joined the channel.

LucasCosta (Fri, 04 Feb 2022 19:16:52 GMT):
Has joined the channel.

LucasCosta (Fri, 04 Feb 2022 19:22:47 GMT):
What exactly is the endorsement hierarchy on Hyperledger fabric? There is the channel endorsement rule, chaincode endorsement rule and collections endorsement rule. In a method invocation which one will overwrite the others? Situation: I'm developing a chaincode in go that has an array as one of the asset structure attributes, in which I can read an asset info and just append some more info to the array. At first, everything was fine until I decided to implement private collections to it. Because an invoke forces peers to verify and agree to the result on my method, but not all peers can access the private data and add information to it, the endorsement fails. I thought I could use a private collection specific endorsement rule, where I only need one member of the private collection's signature to accept the invoke, but it did not work. I'm running the program on minifabric in it's standard network configuration, and this is the collections configuration file: [ { "name": "collectionPublic", "policy": "OR( 'org0-example-com.member', 'org1-example-com.member' )", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":1000000, "memberOnlyRead": true }, { "name": "collectionPrivate", "policy": "OR( 'org0-example-com.member' )", "requiredPeerCount": 0, "maxPeerCount": 3, "blockToLive":3, "memberOnlyRead": true, "endorsementPolicy": { "signaturePolicy": "OR( 'org0-example-com.member' )" } } ]

jayzhan (Sat, 05 Feb 2022 01:11:58 GMT):
Do you mean this one? https://github.com/HarshMultani/aries-fabric-wrapper I found this but not sure what is the state of the project.

rizy (Sat, 05 Feb 2022 03:21:39 GMT):
Has joined the channel.

DeepakMuthekar (Sat, 05 Feb 2022 11:48:50 GMT):
Has joined the channel.

gentios (Sat, 05 Feb 2022 15:51:39 GMT):
@jayzhan at vulos.io we are using Fabric for DID with vulos digital identity

alih27140 (Sat, 05 Feb 2022 15:53:04 GMT):
Has joined the channel.

VasileiosK (Sat, 05 Feb 2022 17:19:54 GMT):
Has joined the channel.

jmb (Sat, 05 Feb 2022 19:15:48 GMT):
Has joined the channel.

gaganbabber (Sun, 06 Feb 2022 01:01:24 GMT):
Has joined the channel.

Rafeu (Sun, 06 Feb 2022 08:03:42 GMT):
Has joined the channel.

Rafeu (Sun, 06 Feb 2022 08:04:19 GMT):
Is there any tutorial for Smart Contracts in Fabric ?

siddhantprateek (Sun, 06 Feb 2022 09:28:57 GMT):
Has joined the channel.

degex (Sun, 06 Feb 2022 10:31:26 GMT):
Has joined the channel.

govindlahoti (Sun, 06 Feb 2022 12:42:13 GMT):
Has joined the channel.

YU.I (Sun, 06 Feb 2022 13:52:22 GMT):
Has joined the channel.

png_savvy (Sun, 06 Feb 2022 19:40:48 GMT):
Has joined the channel.

png_savvy (Sun, 06 Feb 2022 19:42:22 GMT):
Does anyone have some good info on how to query the ledger by block? seems like it should be super easy but I haven't been able to find any clear info in the documentation or elsewhere on this that works.

PhilippThater (Sun, 06 Feb 2022 22:25:30 GMT):
Has joined the channel.

rramon (Sun, 06 Feb 2022 22:41:17 GMT):
Has joined the channel.

abwh2 (Mon, 07 Feb 2022 03:19:20 GMT):
Has joined the channel.

ShubhamShukla31752 (Mon, 07 Feb 2022 05:27:47 GMT):
Issue : failed to create new connection: context deadline exceeded Scenario: I am trying to send the invoke command using the cli container . The fabric network is 1.4.12 using docker swarm in a multihost environment. Please help

cacaocal (Mon, 07 Feb 2022 09:28:28 GMT):
Has joined the channel.

cacaocal (Mon, 07 Feb 2022 09:31:20 GMT):
hi my fabric network certificate will be due , how to change the certificate

cacaocal (Mon, 07 Feb 2022 10:03:41 GMT):
@ShubhamShukla31752 you maybe need use docker DNS

GeluUngur (Mon, 07 Feb 2022 12:04:55 GMT):
HI everyone, I have 2 Contract classes in my Java application. How can I deploy both of them in a single channel? From my tests, I need to specify the @Default annotation on exactly one class, but that would imply that I need to manually change the code before every deployment

AntonYamkovoy (Mon, 07 Feb 2022 12:16:33 GMT):
Has joined the channel.

GeluUngur (Mon, 07 Feb 2022 12:20:02 GMT):
the first contract deploys without problems, but whenever I want to deploy the second I get the `error in simulation: transaction returned with failure: Undefined contract method called` error

AhmadKh (Mon, 07 Feb 2022 14:08:44 GMT):
Has joined the channel.

AhmadKh (Mon, 07 Feb 2022 14:18:41 GMT):
Hello I created a fabric network on k8s, and I packaged the myAsset java chaincode from fabric samples, also I made installed, approve, and commit on the Anchore peers, but when I try to invoke the chaincode I get the following error could not launch chaincode myasset_1:oi8fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b872by: chaincode registration failed: container exited with 0 also, I get an error on the peer pod logs and a warning, here it is: WARN:- `WARN 084 could not launch chaincode 'cbdc_1:af4fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b878ad': chaincode registration failed: container exited with 0` [endorser] SimulateProposal -> ERRO 093 failed to invoke chaincode myasset, error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /go/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:118 runtime.goexit

AhmadKh (Mon, 07 Feb 2022 14:18:41 GMT):
Hello I created a fabric network on k8s, and I packaged the myAsset java chaincode from fabric samples, also I made installed, approve, and commit on the Anchore peers, but when I try to invoke the chaincode I get the following error could not launch chaincode myasset_1:oi8fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b872by: chaincode registration failed: container exited with 0 also, I get an error on the peer pod logs and a warning, here it is: WARN:- `WARN 084 could not launch chaincode 'myasset_1:af4fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b878ad': chaincode registration failed: container exited with 0` Error:- `[endorser] SimulateProposal -> ERRO 093 failed to invoke chaincode myasset, error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /go/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:118 runtime.goexit`

AhmadKh (Mon, 07 Feb 2022 14:18:41 GMT):
Hello I created a fabric network on k8s, and I packaged the myAsset java chaincode from fabric samples, also I made installed, approve, and commit on the Anchore peers, but when I try to invoke the chaincode I get the following error could not launch chaincode myasset_1:oi8fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b872by: chaincode registration failed: container exited with 0 also, I get an error on the peer pod logs and a warning, here it is: WARN:- `WARN 084 could not launch chaincode 'myasset_1:oi8fa0d60b780229de7a3a1e4e2f7866b0adcfa30850d3782584551422b872by': chaincode registration failed: container exited with 0` Error:- `[endorser] SimulateProposal -> ERRO 093 failed to invoke chaincode myasset, error: container exited with 0 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /go/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:118 runtime.goexit`

AhmadKh (Mon, 07 Feb 2022 14:19:51 GMT):
Can anyone help me with this error please?

AhmadKh (Mon, 07 Feb 2022 14:22:02 GMT):
One more thing, we can install the chaincode package on the peer direct we don't need to make the chaincode as external service on K8s, right?

jonathan1204 (Mon, 07 Feb 2022 15:02:12 GMT):
Has joined the channel.

salikzquidz (Mon, 07 Feb 2022 16:54:17 GMT):
Has joined the channel.

gabrielsdev (Mon, 07 Feb 2022 17:17:01 GMT):
Has joined the channel.

samyakjain (Mon, 07 Feb 2022 19:30:40 GMT):

Clipboard - February 8, 2022 1:00 AM

samyakjain (Mon, 07 Feb 2022 19:30:49 GMT):
I am not able to enroll the admin in javascript (when i run node enrollAdmin.js)

samyakjain (Mon, 07 Feb 2022 19:30:49 GMT):
I am not able to enroll the admin in javascript (when i run node enrollAdmin.js) This is the enroll admin.js code

samyakjain (Mon, 07 Feb 2022 19:34:35 GMT):
`/* eslint-disable quotes */ /* * Copyright IBM Corp. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const { Utils: utils } = require('fabric-common'); const FabricCAServices = require('fabric-ca-client'); const { Wallets } = require('fabric-network'); const fs = require('fs'); const path = require('path'); let config=utils.getConfig(); config.file(path.resolve(__dirname,'config.json')); async function main() { try { // load the network configuration const ccpPath = path.resolve(__dirname, '..', '..', 'supply-chain-network', 'organizations', 'peerOrganizations', 'manufacturer.example.com', 'connection-manufacturer.json'); const ccp = JSON.parse(fs.readFileSync(ccpPath, 'utf8')); // Create a new CA client for interacting with the CA. const caInfo = ccp.certificateAuthorities['ca.manufacturer.example.com']; const caTLSCACerts = caInfo.tlsCACerts.pem; const ca = new FabricCAServices(caInfo.url, { trustedRoots: caTLSCACerts, verify: false }, caInfo.caName); console.log(caInfo,"CA INFO",ca); // Create a new file system based wallet for managing identities. const walletPath = path.join(process.cwd(), 'wallet'); const wallet = await Wallets.newFileSystemWallet(walletPath); console.log(`Wallet path: ${walletPath}`); // Check to see if we've already enrolled the admin user. const identity = await wallet.get('admin'); if (identity) { console.log('An identity for the admin user "admin" already exists in the wallet'); return; } // Enroll the admin user, and import the new identity into the wallet. const enrollment = await ca.enroll({ enrollmentID: 'admin', enrollmentSecret: 'adminpw' }); console.log('enrollment= ', enrollment); const x509Identity = { credentials: { certificate: enrollment.certificate, privateKey: enrollment.key.toBytes(), }, mspId: 'MaufacturerMSP', type: 'X.509', }; await wallet.put('admin', x509Identity); console.log('Successfully enrolled admin user "admin" and imported it into the wallet'); } catch (error) { console.error(`Failed to enroll admin user "admin": ${error}`); process.exit(1); } } main(); `

samyakjain (Mon, 07 Feb 2022 19:36:26 GMT):

configtx.txt

samyakjain (Mon, 07 Feb 2022 19:36:43 GMT):
This is my configtx file

sapthasurendran (Mon, 07 Feb 2022 19:42:15 GMT):
You need to install golang.

sapthasurendran (Mon, 07 Feb 2022 20:01:31 GMT):
Please refer: https://hyperledger-fabric.readthedocs.io/en/latest/developapps/smartcontract.html

cacaocal (Tue, 08 Feb 2022 01:15:15 GMT):
hi my fabric network certificate will be due , how to change the certificate

khushalkunjir (Tue, 08 Feb 2022 05:51:44 GMT):
Has joined the channel.

conanoc (Tue, 08 Feb 2022 06:12:54 GMT):
It depends on your k8s cluster. test-network-k8s in fabric-samples only supports external chaincode.

AhmadKh (Tue, 08 Feb 2022 07:53:29 GMT):
@conanoc can you explain more please, what do you mean by `it depends on your k8s cluster`? How can I install the package chaincode on the peer directly, What do I need in my cluster to allow for me too?

conanoc (Tue, 08 Feb 2022 08:29:34 GMT):
You need to set a CORE_VM_ENDPOINT variable in the peer. https://github.com/hyperledger/fabric-samples/blob/main/test-network/docker/docker-compose-test-net.yaml#L69

AhmadKh (Tue, 08 Feb 2022 08:31:13 GMT):
@conanoc I will check this one, thanks a lot :D

sapthasurendran (Tue, 08 Feb 2022 10:21:16 GMT):
You can have a look at the doc that explains all the endorsement policies and how they override each other: https://hyperledger-fabric.readthedocs.io/en/release-2.4/endorsement-policies.html

sapthasurendran (Tue, 08 Feb 2022 10:22:49 GMT):
Also the below doc explains how the gateway takes care of all of this on behalf of the client: https://hyperledger-fabric.readthedocs.io/en/release-2.4/gateway.html#how-the-gateway-endorses-your-transaction-proposal

bestbeforetoday (Tue, 08 Feb 2022 10:28:23 GMT):
If you are using a version of Fabric earlier than v2.4, or are continuing to use the legacy SDKs, you will likely need to either declare a discovery interest so the client knows which private data collections will be used by a specific contract, or explicitly select endorsing organisations or peers (depending on capabilities of whichever client language SDK you are using). Only the Fabric Gateway client API with Fabric v2.4 has the magic that automatically selects the correct endorsers for transactions involving private data collections and state-based endorsement policies

bestbeforetoday (Tue, 08 Feb 2022 10:33:26 GMT):
There is a chaincode named `qscc` available on all peers. You can obtain a specific number block by evaluating the qscc chaincode's `GetBlockByNumber` transaction function: https://github.com/hyperledger/fabric/blob/a1de4dc94e3eb5c9d13edaf73346766fd12d67fb/core/scc/qscc/query.go#L119-L120 You will probably need to unmarshal the returned protobuf message to do anything useful with it

bestbeforetoday (Tue, 08 Feb 2022 10:34:18 GMT):
Alternatively, you can use block eventing to listen for events with a specific start block. If you only want one block, just stop listening after receiving the first block

bestbeforetoday (Tue, 08 Feb 2022 10:39:15 GMT):
When you deploy the chaincode package, all the contained contracts are deployed and can be invoked by client applications. The @Default just indicates that you don't need to specify the contract name. To access non-default contracts, you specify both the chaincode and contract name when getting the contract using the client API: - https://hyperledger.github.io/fabric-gateway/main/api/node/interfaces/Network.html#getContract - https://pkg.go.dev/github.com/hyperledger/fabric-gateway/pkg/client#Network.GetContractWithName - https://hyperledger.github.io/fabric-gateway/main/api/java/org/hyperledger/fabric/client/Network.html#getContract(java.lang.String,java.lang.String)

SwapnilDeshmukh (Tue, 08 Feb 2022 11:17:38 GMT):
Has joined the channel.

Cai 238 (Tue, 08 Feb 2022 11:32:34 GMT):
Has joined the channel.

jtonline (Tue, 08 Feb 2022 12:12:18 GMT):
I don't think there is much information about certificate renewal in the Fabric documentation but IBM's Blockchain Platform is based on Fabric and there are some docs for that which may be of use, e.g. https://cloud.ibm.com/docs/blockchain?topic=blockchain-cert-mgmt

bruno_evaristo (Tue, 08 Feb 2022 19:58:25 GMT):
Has joined the channel.

HamidTariq (Tue, 08 Feb 2022 23:50:34 GMT):
Has joined the channel.

MuteMan (Wed, 09 Feb 2022 07:59:41 GMT):
Has joined the channel.

MuteMan (Wed, 09 Feb 2022 08:00:47 GMT):
what's the best practice to handle concurrency in chaincode?

cacaocal (Wed, 09 Feb 2022 08:56:47 GMT):
No specific steps

harikishantk (Wed, 09 Feb 2022 09:22:36 GMT):
Has joined the channel.

jtonline (Wed, 09 Feb 2022 11:00:33 GMT):
What sort of concurrency do you mean? Within a single transaction, or across transactions? If it's the latter the high throughput samples might be useful https://github.com/hyperledger/fabric-samples/tree/main/high-throughput

theNatassa (Wed, 09 Feb 2022 12:34:36 GMT):
Has joined the channel.

theNatassa (Wed, 09 Feb 2022 12:45:21 GMT):
Hi, do you know where I can find guidelines on how to deploy the open source distribution of Hyperledger Fabric 2.2 on OpenShift 4? OpenShift 4 uses podman/cri-o as a container engine instead of Docker so the deployment is a bit tricky to me. Is there any more relevant channel to ask this question ? Thanks ahead!

RouteSagar (Wed, 09 Feb 2022 12:54:50 GMT):
My fabric net till now is on 4 different VM 's as Org1 Org2 Org 3 and Orderer but now I want the client application to be run on different system and connect to fabric network... So is it not possible now for me to connect my any other physical computer as a client to the existing fabric network ??? If any one has done it ...please do let me know

SwapnilPakhare (Wed, 09 Feb 2022 16:55:54 GMT):
Has joined the channel.

LiXu 17 (Wed, 09 Feb 2022 18:06:50 GMT):
Has joined the channel.

joseucarvajal (Wed, 09 Feb 2022 23:16:07 GMT):
Has joined the channel.

knagware9 (Thu, 10 Feb 2022 06:19:03 GMT):
@jayzhan Yes, Now we are creating hyperledger labs. https://github.com/hyperledger-labs/hyperledger-labs.github.io/pull/183

kaushikkumarbora (Thu, 10 Feb 2022 06:25:59 GMT):
Has joined the channel.

kaushikkumarbora (Thu, 10 Feb 2022 06:29:02 GMT):
Hi, I have a fix to a minor bug. I found it while using hyperledger/fabric-samples v2.2.5 LTS. Do I create a PR to release-2.2 branch or to the main branch? Does someone backport changes to the release branches?

kaushikkumarbora (Thu, 10 Feb 2022 06:29:02 GMT):
Hi, I have a fix to a minor bug in hyperledger/fabric-samples. I found it while using hyperledger/fabric-samples v2.2.5 LTS. Do I create a PR to release-2.2 branch or to the main branch? Does someone backport changes to the release branches?

kaushikkumarbora (Thu, 10 Feb 2022 06:29:02 GMT):
Hi, I have a fix to a minor bug in hyperledger/fabric-samples. I found it while using hyperledger/fabric-samples v2.2.5 LTS. Do I create a PR to hyperledger/fabric-samples release-2.2 branch or to the main branch? Does someone backport changes to the release branches?

eeeeegik (Thu, 10 Feb 2022 07:38:30 GMT):
Has joined the channel.

bestbeforetoday (Thu, 10 Feb 2022 09:19:57 GMT):
If the issue exists in the *main* branch, I would suggest raising a PR there. If it's only in the *release-2.2* branch then of course raise it there. I'm not sure whether fixes typically get cherry-picked back so, to be safe, you could raise a second PR for the cherry-pick after the first is accepted

Koraycill (Thu, 10 Feb 2022 11:49:56 GMT):
Has joined the channel.

jann2005 (Thu, 10 Feb 2022 12:07:43 GMT):
Has joined the channel.

AngelEscudero (Thu, 10 Feb 2022 12:58:13 GMT):
Has joined the channel.

GeluUngur (Fri, 11 Feb 2022 08:55:32 GMT):
Does anybody know why do I get this error when trying to deploy a chaincode? `class file for org.hyperledger.fabric.protos.peer.ChaincodeShim not found` I'm trying to use the getQueryResultWithPagination method which seems to rely on that class.

mgmgwi (Fri, 11 Feb 2022 09:22:19 GMT):
Has joined the channel.

ethereal1m (Fri, 11 Feb 2022 09:38:56 GMT):
Has joined the channel.

jtonline (Fri, 11 Feb 2022 09:47:43 GMT):
I'm not sure why you would be getting that error without knowing a bit more about your chaincode. I would definitely recommend building and testing your chaincode and packaging prebuilt jars which will make debugging this kind of thing much simpler. See https://hyperledgendary.github.io/docs/goodpractice/java_chaincode_packaging.html for more details.

adambabs (Fri, 11 Feb 2022 10:22:31 GMT):
Hi, I am doing this tutorial: https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html and when I am downloading binaries and images in the fabric-samples directory, I don't get the "first-network" folder

adambabs (Fri, 11 Feb 2022 10:22:46 GMT):
therefore I can't go to further steps, any ideas why that happens?

bestbeforetoday (Fri, 11 Feb 2022 10:27:15 GMT):
I think running the install script without any arguments you are going to get the latest release (main branch) of the samples. If you really want to use the old v1.4 release then I think you will need to specify the v1.4 versions explicitly. The tutorial you linked has an example command to do that

bestbeforetoday (Fri, 11 Feb 2022 10:28:35 GMT):
If you can, I would definitely encourage you to use the latest Fabric version (v2.4)

bestbeforetoday (Fri, 11 Feb 2022 10:29:42 GMT):
Latest install docs: https://hyperledger-fabric.readthedocs.io/en/latest/install.html

adambabs (Fri, 11 Feb 2022 10:32:41 GMT):
ahh yes thanks a lot! I was just following the tutorial so I thought it has the updated reference links! thank you!

adambabs (Fri, 11 Feb 2022 10:43:55 GMT):
but still no first-network directory

bestbeforetoday (Fri, 11 Feb 2022 10:44:36 GMT):
If you follow the tutorials in the version of the docs I linked, you'll see it refers to `test-network`, not `first-network` anymore

bestbeforetoday (Fri, 11 Feb 2022 10:45:00 GMT):
If you want to use the old tutorial, you need to use the old version of Fabric and fabric-samples

adambabs (Fri, 11 Feb 2022 11:41:42 GMT):
hi, is there a repo I can post solutions to errors encountered during the tutorial?

adambabs (Fri, 11 Feb 2022 11:42:06 GMT):
there is a number I've found and solved them by myself since there was no similar things available

RouteSagar (Fri, 11 Feb 2022 11:54:34 GMT):
Hi, you can alternatively create medium article it would helpful...if uts repo the Hyperledger team can comment on it...

bestbeforetoday (Fri, 11 Feb 2022 11:58:56 GMT):
The documentation (including tutorials) are in the `docs` directory of the Fabric GitHub repoisitory: https://github.com/hyperledger/fabric

bestbeforetoday (Fri, 11 Feb 2022 11:59:32 GMT):
If there are errors in the tutorials then you can raise a PR with a fix. Or at the very least report the problem by raising an issue

rjones (Sun, 13 Feb 2022 01:31:23 GMT):
Has joined the channel.

rjones (Sun, 13 Feb 2022 01:31:26 GMT):
[Please get an account on the Hyperledger discord](https://discord.gg), then join [Fabric Questions](https://discord.com/channels/905194001349627914/942231382594322452)

rjones (Sun, 13 Feb 2022 01:33:30 GMT):
Has left the channel.

lintocn (Tue, 22 Feb 2022 01:18:29 GMT):
Has joined the channel.

ferenit (Wed, 16 Mar 2022 12:07:29 GMT):
Has joined the channel.